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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
288bbb5bca80b34fecf6d2073e61b5c8eeefa761 | 355 | cpp | C++ | chapter_03/question_7/main.cpp | chichi9527/C-Plus-Plus-Primer-Plus-Answers | 82c88a16ea7283109a3d44332c1322b05d3aec35 | [
"MIT"
] | null | null | null | chapter_03/question_7/main.cpp | chichi9527/C-Plus-Plus-Primer-Plus-Answers | 82c88a16ea7283109a3d44332c1322b05d3aec35 | [
"MIT"
] | null | null | null | chapter_03/question_7/main.cpp | chichi9527/C-Plus-Plus-Primer-Plus-Answers | 82c88a16ea7283109a3d44332c1322b05d3aec35 | [
"MIT"
] | null | null | null | #include <iostream>
int main(void) {
using std::cout;
using std::endl;
using std::cin;
double lper100km;
cout << "Enter the gasoline consumption of the car(L / 100 km): ";
cin >> lper100km;
cout << "The car is " << 100 * 3.875 / lper100km * 0.6214;
cout << " miles per ga... | 20.882353 | 71 | 0.549296 | chichi9527 |
288c3a30fccd51cc1e19ce9f866d5e68e6a45347 | 897 | cpp | C++ | Codeforces/286/B.cpp | Mindjolt2406/Competitive-Programming | d000d98bf7005ee4fb809bcea2f110e4c4793b80 | [
"MIT"
] | 2 | 2018-12-11T14:37:24.000Z | 2022-01-23T18:11:54.000Z | Codeforces/286/B.cpp | Mindjolt2406/Competitive-Programming | d000d98bf7005ee4fb809bcea2f110e4c4793b80 | [
"MIT"
] | null | null | null | Codeforces/286/B.cpp | Mindjolt2406/Competitive-Programming | d000d98bf7005ee4fb809bcea2f110e4c4793b80 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#define pu push_back
using namespace std;
void addEdge(vector<int>*adj,int u,int v)
{
adj[u].pu(v);
adj[v].pu(u);
}
int dfs(vector<int> *adj,int* visited,int u,int v)
{
if(visited[u]) return 0;
visited[u] = 1;
for(int i=0;i<adj[u].size();i++)
{
if(adj[u][i]==v) return 1;
el... | 16.924528 | 54 | 0.512821 | Mindjolt2406 |
288cea20cf1be1d8054b4fe61140e0f6a1ab7b4a | 305 | cpp | C++ | src/examples/11_module/02_dynamic_memory/main.cpp | acc-cosc-1337-spring-2020-hl/acc-cosc-1337-spring-2020-hl-acc-cosc-1337-spring-2020-94919311 | 0d5b19456063a304d4c20040ee2d3b21a1f6b131 | [
"MIT"
] | null | null | null | src/examples/11_module/02_dynamic_memory/main.cpp | acc-cosc-1337-spring-2020-hl/acc-cosc-1337-spring-2020-hl-acc-cosc-1337-spring-2020-94919311 | 0d5b19456063a304d4c20040ee2d3b21a1f6b131 | [
"MIT"
] | null | null | null | src/examples/11_module/02_dynamic_memory/main.cpp | acc-cosc-1337-spring-2020-hl/acc-cosc-1337-spring-2020-hl-acc-cosc-1337-spring-2020-94919311 | 0d5b19456063a304d4c20040ee2d3b21a1f6b131 | [
"MIT"
] | null | null | null | #include <iostream>
using std::cout;
int main()
{
int* ptr_num = new int(5);
cout << &ptr_num << "\n"; // displays the adress where ptr_num is stored
cout << ptr_num << "\n"; // displays the adress where 5 is stored
cout << *ptr_num << "\n";
delete ptr_num;
ptr_num = nullptr;
return 0;
} | 16.944444 | 73 | 0.619672 | acc-cosc-1337-spring-2020-hl |
288d471aeeb3429bb905e6e9bc60f60bd387d2bc | 5,524 | cc | C++ | third_party/blink/renderer/core/style/style_fetched_image_set.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/blink/renderer/core/style/style_fetched_image_set.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/blink/renderer/core/style/style_fetched_image_set.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2021-01-05T23:43:46.000Z | 2021-01-07T23:36:34.000Z | /*
* Copyright (C) 2012 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... | 36.104575 | 83 | 0.745474 | mghgroup |
288db0de853572e3d2b344a5cfae9b74dac2b7cd | 23,470 | cpp | C++ | examples/getting_started.cpp | cfRod/oneDNN | 7981216b8341b8603e54472f5a0dd7a12ef9cf67 | [
"Apache-2.0"
] | 1,327 | 2018-01-25T21:23:47.000Z | 2020-04-03T09:39:30.000Z | examples/getting_started.cpp | cfRod/oneDNN | 7981216b8341b8603e54472f5a0dd7a12ef9cf67 | [
"Apache-2.0"
] | 498 | 2018-01-25T00:14:48.000Z | 2020-04-03T16:21:44.000Z | examples/getting_started.cpp | cfRod/oneDNN | 7981216b8341b8603e54472f5a0dd7a12ef9cf67 | [
"Apache-2.0"
] | 365 | 2018-01-29T16:12:36.000Z | 2020-04-03T08:32:27.000Z | /*******************************************************************************
* Copyright 2019-2022 Intel Corporation
*
* 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.apa... | 43.869159 | 93 | 0.636983 | cfRod |
288ea5640b18708b758b0e5e3d9f2b49cb4ef1be | 1,863 | cpp | C++ | common/operations/TopK_V2Validation.cpp | riscv-android-src/platform-packages-modules-NeuralNetworks | 32a7fbe0cec3a17f9cdd8c6f11d94ae77e30add5 | [
"Apache-2.0"
] | null | null | null | common/operations/TopK_V2Validation.cpp | riscv-android-src/platform-packages-modules-NeuralNetworks | 32a7fbe0cec3a17f9cdd8c6f11d94ae77e30add5 | [
"Apache-2.0"
] | null | null | null | common/operations/TopK_V2Validation.cpp | riscv-android-src/platform-packages-modules-NeuralNetworks | 32a7fbe0cec3a17f9cdd8c6f11d94ae77e30add5 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 39.638298 | 87 | 0.725174 | riscv-android-src |
288ee43169bd0ad8e64146f57dbe6b869b773cd8 | 2,976 | cpp | C++ | CS 1337/Assignment 4/CS_1337_Assignment_4/CS_1337_Assignment_4/Aircraft.cpp | deisterhold/UT-Dallas | 71d1db9c91c6382423f4c0b13d1a156b905ac42a | [
"Unlicense"
] | 2 | 2020-02-23T05:33:45.000Z | 2021-03-29T00:44:25.000Z | CS 1337/Assignment 4/CS_1337_Assignment_4/CS_1337_Assignment_4/Aircraft.cpp | deisterhold/UT-Dallas | 71d1db9c91c6382423f4c0b13d1a156b905ac42a | [
"Unlicense"
] | null | null | null | CS 1337/Assignment 4/CS_1337_Assignment_4/CS_1337_Assignment_4/Aircraft.cpp | deisterhold/UT-Dallas | 71d1db9c91c6382423f4c0b13d1a156b905ac42a | [
"Unlicense"
] | 5 | 2017-04-26T03:20:19.000Z | 2020-04-02T03:08:39.000Z | //
// Aircraft.cpp
// CS_1337_Assignment_4
//
// Created by Daniel Eisterhold on 3/23/14.
// Copyright (c) 2014 Daniel Eisterhold. All rights reserved.
//
#include "Aircraft.h"
//Constructor and Destructor
Aircraft::Aircraft()
{
numberOfEngines = 0;
numberOfPilots = 0;
numberOfPassengers = 0;
airc... | 20.524138 | 79 | 0.713038 | deisterhold |
28922c9d37b139aa037d986965a60af8970079b5 | 10,802 | cpp | C++ | watchman/cmds/debug.cpp | chadaustin/watchman | b01a841f3eca5ebaf5ce4a62e1937c95851f450e | [
"MIT"
] | 9,308 | 2015-01-03T13:33:47.000Z | 2022-03-31T06:45:26.000Z | watchman/cmds/debug.cpp | Supsource/watchman | ec86705a934ef970b99413787a5c8f374c2fdb10 | [
"MIT"
] | 878 | 2015-01-07T15:28:33.000Z | 2022-03-30T09:30:10.000Z | watchman/cmds/debug.cpp | Supsource/watchman | ec86705a934ef970b99413787a5c8f374c2fdb10 | [
"MIT"
] | 932 | 2015-01-05T08:25:00.000Z | 2022-03-25T11:11:42.000Z | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <folly/chrono/Conv.h>
#include <iomanip>
#include "watchman/InMemoryView.h"
#include "watchman/LRUCache.h"
#include "watch... | 28.959786 | 80 | 0.686817 | chadaustin |
28932eeac777f7cc7e89b3919c9e199e12d6f464 | 7,293 | cc | C++ | src/btree/keys.cc | zadcha/rethinkdb | bb4f5cc28242dc1e29e9a46a8a931ec54420070c | [
"Apache-2.0"
] | 21,684 | 2015-01-01T03:42:20.000Z | 2022-03-30T13:32:44.000Z | src/btree/keys.cc | RethonkDB/rethonkdb | 8c9c1ddc71b1b891fdb8aad7ca5891fc036b80ee | [
"Apache-2.0"
] | 4,067 | 2015-01-01T00:04:51.000Z | 2022-03-30T13:42:56.000Z | src/btree/keys.cc | RethonkDB/rethonkdb | 8c9c1ddc71b1b891fdb8aad7ca5891fc036b80ee | [
"Apache-2.0"
] | 1,901 | 2015-01-01T21:05:59.000Z | 2022-03-21T08:14:25.000Z | // Copyright 2010-2014 RethinkDB, all rights reserved.
#include "btree/keys.hpp"
#include <algorithm>
#include "debug.hpp"
#include "math.hpp"
#include "utils.hpp"
std::string key_range_t::print() const {
printf_buffer_t buf;
debug_print(&buf, *this);
return buf.c_str();
}
// fast-ish non-null terminate... | 29.055777 | 101 | 0.600576 | zadcha |
2895386a8a449851d627f38ddf3572df66c5f6ef | 5,006 | hpp | C++ | contracts/oaclib/varint.hpp | openaichain/openaichain | 14f144afa1bb4db5e4bf75a5ad836f4e408cfc95 | [
"MIT"
] | 15 | 2018-06-09T14:15:53.000Z | 2021-03-05T09:56:42.000Z | contracts/oaclib/varint.hpp | openaichain/openaichain | 14f144afa1bb4db5e4bf75a5ad836f4e408cfc95 | [
"MIT"
] | null | null | null | contracts/oaclib/varint.hpp | openaichain/openaichain | 14f144afa1bb4db5e4bf75a5ad836f4e408cfc95 | [
"MIT"
] | 2 | 2019-12-06T00:46:15.000Z | 2020-03-18T10:47:45.000Z | /**
* @file
* @copyright defined in oac/LICENSE.txt
*/
#pragma once
/**
* @defgroup varint Variable Length Integer
* @ingroup types
* @{
*/
struct unsigned_int {
unsigned_int( uint32_t v = 0 ):value(v){}
template<typename T>
unsigned_int( T v ):value(v){}
//operator uint32_t()const { retur... | 38.507692 | 105 | 0.590691 | openaichain |
2895d2761432c174e2ec63caa60ee4c8d07b2c75 | 11,856 | cxx | C++ | Plugins/VR/extra/vtkVRPropertyStyle.cxx | mathstuf/ParaView | e867e280545ada10c4ed137f6a966d9d2f3db4cb | [
"Apache-2.0"
] | 1 | 2020-05-21T20:20:59.000Z | 2020-05-21T20:20:59.000Z | Plugins/VR/extra/vtkVRPropertyStyle.cxx | mathstuf/ParaView | e867e280545ada10c4ed137f6a966d9d2f3db4cb | [
"Apache-2.0"
] | null | null | null | Plugins/VR/extra/vtkVRPropertyStyle.cxx | mathstuf/ParaView | e867e280545ada10c4ed137f6a966d9d2f3db4cb | [
"Apache-2.0"
] | 5 | 2016-04-14T13:42:37.000Z | 2021-05-22T04:59:42.000Z | /*=========================================================================
Program: ParaView
Module: $RCSfile$
Copyright (c) 2005,2006 Sandia Corporation, Kitware Inc.
All rights reserved.
ParaView is a free software; you can redistribute it and/or modify it
under the terms of the ParaView lice... | 31.785523 | 96 | 0.550186 | mathstuf |
28998ce8db4464326726659d0da6945bc37c1115 | 10,440 | cpp | C++ | roxe.cdt/roxe_llvm/tools/clang/lib/CodeGen/CGLoopInfo.cpp | APFDev/actc | be5c1c0539d30a3745a725b0027767448ef8e1f6 | [
"MIT"
] | 427 | 2018-05-29T14:21:02.000Z | 2022-03-16T03:17:54.000Z | roxe.cdt/roxe_llvm/tools/clang/lib/CodeGen/CGLoopInfo.cpp | APFDev/actc | be5c1c0539d30a3745a725b0027767448ef8e1f6 | [
"MIT"
] | 25 | 2018-07-23T08:34:15.000Z | 2021-11-05T07:13:36.000Z | roxe.cdt/roxe_llvm/tools/clang/lib/CodeGen/CGLoopInfo.cpp | APFDev/actc | be5c1c0539d30a3745a725b0027767448ef8e1f6 | [
"MIT"
] | 52 | 2018-07-19T19:57:32.000Z | 2022-03-11T16:05:38.000Z | //===---- CGLoopInfo.cpp - LLVM CodeGen for loop metadata -*- C++ -*-------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 34.117647 | 80 | 0.629215 | APFDev |
2899bb4e89da513fc76519576a0779debb6dcba9 | 1,346 | cpp | C++ | CnprNSPDistribution.cpp | mhoopmann/NeoProtXMLParser | f34b71cfb6bd2a366f405891bd68661d399d944d | [
"Apache-2.0"
] | null | null | null | CnprNSPDistribution.cpp | mhoopmann/NeoProtXMLParser | f34b71cfb6bd2a366f405891bd68661d399d944d | [
"Apache-2.0"
] | null | null | null | CnprNSPDistribution.cpp | mhoopmann/NeoProtXMLParser | f34b71cfb6bd2a366f405891bd68661d399d944d | [
"Apache-2.0"
] | null | null | null | #include "CnprNSPDistribution.h"
using namespace std;
CnprNSPDistribution::CnprNSPDistribution(){
bin_no=-1;
nsp_lower_bound_incl=-1;
nsp_lower_bound_excl=-1;
pos_freq=-1;
neg_freq=-1;
pos_to_neg_ratio=-1;
alt_pos_to_neg_ratio=-1;
}
void CnprNSPDistribution::write(FILE* f, int tabs){
//required
str... | 36.378378 | 110 | 0.700594 | mhoopmann |
2899c095fd4f65e32909eb2bc439c2072d3ababf | 13,088 | cpp | C++ | QueryEngine/JoinHashTable/JoinHashTableQueryRuntime.cpp | prutskov/omniscidb | 9a1e79cfeed4f6801f3f9805a0759569ae777ae8 | [
"Apache-2.0"
] | 1 | 2022-03-11T04:01:30.000Z | 2022-03-11T04:01:30.000Z | QueryEngine/JoinHashTable/JoinHashTableQueryRuntime.cpp | gridgentoo/MapD | 9a1e79cfeed4f6801f3f9805a0759569ae777ae8 | [
"Apache-2.0"
] | null | null | null | QueryEngine/JoinHashTable/JoinHashTableQueryRuntime.cpp | gridgentoo/MapD | 9a1e79cfeed4f6801f3f9805a0759569ae777ae8 | [
"Apache-2.0"
] | 1 | 2020-11-29T01:27:38.000Z | 2020-11-29T01:27:38.000Z | /*
* Copyright 2017 MapD Technologies, 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 o... | 36.456825 | 90 | 0.616519 | prutskov |
289d54622039d287da8637277706c9b57f53d599 | 6,890 | cpp | C++ | storage/src/tests/persistence/persistencequeuetest.cpp | amahussein/vespa | 29d266ae1e5c95e25002b97822953fdd02b1451e | [
"Apache-2.0"
] | null | null | null | storage/src/tests/persistence/persistencequeuetest.cpp | amahussein/vespa | 29d266ae1e5c95e25002b97822953fdd02b1451e | [
"Apache-2.0"
] | 1 | 2021-03-31T22:24:20.000Z | 2021-03-31T22:24:20.000Z | storage/src/tests/persistence/persistencequeuetest.cpp | amahussein/vespa | 29d266ae1e5c95e25002b97822953fdd02b1451e | [
"Apache-2.0"
] | 1 | 2020-09-03T11:39:52.000Z | 2020-09-03T11:39:52.000Z | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/persistence/dummyimpl/dummypersistence.h>
#include <tests/persistence/common/filestortestfixture.h>
#include <tests/persistence/filestorage/forwardingmessagesender.h>
#include <vespa/d... | 40.292398 | 131 | 0.727431 | amahussein |
80bd13633edd1e8d0d547d706c12f3f720faf748 | 2,866 | cpp | C++ | xo_test/performance_test.cpp | mitkof6/xo | b097e3043241676b4d11aa8db5160b2af3012f33 | [
"MIT"
] | null | null | null | xo_test/performance_test.cpp | mitkof6/xo | b097e3043241676b4d11aa8db5160b2af3012f33 | [
"MIT"
] | null | null | null | xo_test/performance_test.cpp | mitkof6/xo | b097e3043241676b4d11aa8db5160b2af3012f33 | [
"MIT"
] | null | null | null | #include <cmath>
#include "xo/time/stopwatch.h"
#include "xo/numerical/functions.h"
#include "xo/system/log.h"
#include "xo/container/prop_node.h"
#include "xo/system/test_case.h"
#include "xo/numerical/random.h"
#include "xo/container/array.h"
#include "xo/numerical/bounds.h"
#include "xo/geometry/quat.h"
#include "te... | 28.376238 | 87 | 0.614445 | mitkof6 |
80bec6dd355213fec861d7034756ea4444e505e3 | 179 | cc | C++ | main.cc | jeffersonsylva/deltaforce | b79743b6f8b24436d663982915438fa115b025a9 | [
"Apache-2.0"
] | null | null | null | main.cc | jeffersonsylva/deltaforce | b79743b6f8b24436d663982915438fa115b025a9 | [
"Apache-2.0"
] | null | null | null | main.cc | jeffersonsylva/deltaforce | b79743b6f8b24436d663982915438fa115b025a9 | [
"Apache-2.0"
] | null | null | null | #include "Allegro.h"
int main()
{
Allegro *allegro = new Allegro();
allegro->init();
allegro->createWindow(60.0, 640, 480);
allegro->gameLoop();
return 0;
}
| 12.785714 | 41 | 0.597765 | jeffersonsylva |
80bf2c050afd9ca59178a60ef7d542619da13af2 | 5,637 | cpp | C++ | target/TestEnclave/Enclave/Edger8rSyntax/Pointers.cpp | kandeldipak06/CacheZoom | dd8cb2796cf2ee632a0c60e7f443c83b61976973 | [
"MIT"
] | 13 | 2017-07-07T02:48:57.000Z | 2021-12-09T06:32:47.000Z | target/TestEnclave/Enclave/Edger8rSyntax/Pointers.cpp | ksutcr18/CacheZoom | 510848da73e1728663e094cb7bb8cf5b349eb0b0 | [
"MIT"
] | null | null | null | target/TestEnclave/Enclave/Edger8rSyntax/Pointers.cpp | ksutcr18/CacheZoom | 510848da73e1728663e094cb7bb8cf5b349eb0b0 | [
"MIT"
] | 6 | 2017-10-15T19:23:15.000Z | 2022-01-27T08:33:41.000Z | /*
* Copyright (C) 2011-2016 Intel Corporation. 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... | 26.097222 | 87 | 0.660635 | kandeldipak06 |
80c0142ad95d3f1e63653864dfae4883ff624e9f | 2,764 | inl | C++ | opencl/test/unit_test/api/cl_enqueue_verify_memory.inl | demarle/compute-runtime | 12458fb183d651f74873ebe835b10fc4a3e3a614 | [
"MIT"
] | null | null | null | opencl/test/unit_test/api/cl_enqueue_verify_memory.inl | demarle/compute-runtime | 12458fb183d651f74873ebe835b10fc4a3e3a614 | [
"MIT"
] | null | null | null | opencl/test/unit_test/api/cl_enqueue_verify_memory.inl | demarle/compute-runtime | 12458fb183d651f74873ebe835b10fc4a3e3a614 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2017-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/aub_mem_dump/aub_services.h"
#include "opencl/extensions/public/cl_ext_private.h"
#include "opencl/test/unit_test/api/cl_api_tests.h"
#include "opencl/test/unit_test/mocks/mock_csr.h"
#include "test.h"
u... | 43.1875 | 133 | 0.818379 | demarle |
80c04e99399c6ea94341ae462e5410a39d6d9160 | 23,104 | cpp | C++ | visa/iga/GEDLibrary/GED_external/build/autogen-intel64/ged_model_xe_hpc_a.cpp | mateuszchudyk/intel-graphics-compiler | d0e75bad9778a428a7a43768084852e3b4414e0e | [
"Intel",
"MIT"
] | null | null | null | visa/iga/GEDLibrary/GED_external/build/autogen-intel64/ged_model_xe_hpc_a.cpp | mateuszchudyk/intel-graphics-compiler | d0e75bad9778a428a7a43768084852e3b4414e0e | [
"Intel",
"MIT"
] | null | null | null | visa/iga/GEDLibrary/GED_external/build/autogen-intel64/ged_model_xe_hpc_a.cpp | mateuszchudyk/intel-graphics-compiler | d0e75bad9778a428a7a43768084852e3b4414e0e | [
"Intel",
"MIT"
] | null | null | null | /*========================== begin_copyright_notice ============================
Copyright (C) 2017-2021 Intel Corporation
SPDX-License-Identifier: MIT
============================= end_copyright_notice ===========================*/
/*
* !!! DO NOT EDIT THIS FILE !!!
*
* This file was automagically crafted by GE... | 65.450425 | 225 | 0.82081 | mateuszchudyk |
80c2525c7ccfe4737eedeeea3d6f477f7f2e864f | 16,281 | hpp | C++ | include/System/Net/Sockets/Socket_--c.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | include/System/Net/Sockets/Socket_--c.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | include/System/Net/Sockets/Socket_--c.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.Net.Soc... | 61.206767 | 198 | 0.697684 | marksteward |
80c31544389e2cfaff807ed3037a2bcf0f4907d1 | 10,828 | cc | C++ | crp_test.cc | redpony/cpyp | 7ecb1801af3636f9d5ae008799ae412d476153e2 | [
"Apache-2.0"
] | 29 | 2015-01-21T07:18:16.000Z | 2021-06-10T00:57:54.000Z | crp_test.cc | redpony/cpyp | 7ecb1801af3636f9d5ae008799ae412d476153e2 | [
"Apache-2.0"
] | null | null | null | crp_test.cc | redpony/cpyp | 7ecb1801af3636f9d5ae008799ae412d476153e2 | [
"Apache-2.0"
] | 8 | 2015-02-25T06:02:46.000Z | 2021-06-10T00:57:38.000Z | #include <iostream>
#include <vector>
#include <cassert>
#include <string>
#include "cpyp/crp.h"
#include "cpyp/mf_crp.h"
#include "cpyp/random.h"
using namespace std;
static const double p0[] = { 0.1, 0.2, 0.7 }; // actual base distribution
static const double q0[] = { 0.5, 0.4, 0.1 }; // proposal base distributi... | 32.322388 | 200 | 0.526782 | redpony |
80c3c99bb8fbb974fe76f636a384b37d2accd24e | 3,059 | cpp | C++ | abserv/abserv/DataProvider.cpp | pablokawan/ABx | 064d6df265c48c667ce81b0a83f84e5e22a7ff53 | [
"MIT"
] | null | null | null | abserv/abserv/DataProvider.cpp | pablokawan/ABx | 064d6df265c48c667ce81b0a83f84e5e22a7ff53 | [
"MIT"
] | null | null | null | abserv/abserv/DataProvider.cpp | pablokawan/ABx | 064d6df265c48c667ce81b0a83f84e5e22a7ff53 | [
"MIT"
] | null | null | null | /**
* Copyright 2017-2020 Stefan Ascher
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pub... | 28.324074 | 91 | 0.692056 | pablokawan |
80c45048c0b03a0a5cb03a4be780850e063a2fc8 | 353 | cpp | C++ | src/protocol/cert_finish.cpp | Vieraw/auth | 5ed546a9b65289abc91c42813f66e59e363dd2d3 | [
"MIT"
] | 2 | 2021-12-04T11:19:45.000Z | 2021-12-30T11:56:14.000Z | src/protocol/cert_finish.cpp | Vieraw/auth | 5ed546a9b65289abc91c42813f66e59e363dd2d3 | [
"MIT"
] | null | null | null | src/protocol/cert_finish.cpp | Vieraw/auth | 5ed546a9b65289abc91c42813f66e59e363dd2d3 | [
"MIT"
] | 1 | 2021-12-04T11:19:53.000Z | 2021-12-04T11:19:53.000Z |
#include "cert_finish.h"
#include "../auth_client.h"
namespace protocol {
factory_register<cert_finish> cert_finish::_add{548};
void cert_finish::read(util::bytestream &data) {}
void cert_finish::write() {
util::bytestream body;
body << retcode;
body << reserved1;
getCli... | 19.611111 | 57 | 0.623229 | Vieraw |
80c45440fb79603392d8c3fb2dfedd7578bf96f4 | 999 | hpp | C++ | stan/math/rev/fun/log1m_exp.hpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | null | null | null | stan/math/rev/fun/log1m_exp.hpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | null | null | null | stan/math/rev/fun/log1m_exp.hpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | null | null | null | #ifndef STAN_MATH_REV_FUN_LOG1M_EXP_HPP
#define STAN_MATH_REV_FUN_LOG1M_EXP_HPP
#include <stan/math/rev/meta.hpp>
#include <stan/math/rev/core.hpp>
#include <stan/math/prim/fun/expm1.hpp>
#include <stan/math/prim/fun/log1m_exp.hpp>
namespace stan {
namespace math {
/**
* Return the log of 1 minus the exponential of... | 28.542857 | 78 | 0.706707 | LaudateCorpus1 |
80c5705892d3879fdb643006e681262e6a5dae41 | 4,774 | hpp | C++ | boost/interprocess/detail/utilities.hpp | Ron2014/boost_1_48_0 | 19673f69677ffcba7c7bd6e08ec07ee3962f161c | [
"BSL-1.0"
] | 1 | 2022-01-30T18:41:39.000Z | 2022-01-30T18:41:39.000Z | boost/interprocess/detail/utilities.hpp | Ron2014/boost_1_48_0 | 19673f69677ffcba7c7bd6e08ec07ee3962f161c | [
"BSL-1.0"
] | null | null | null | boost/interprocess/detail/utilities.hpp | Ron2014/boost_1_48_0 | 19673f69677ffcba7c7bd6e08ec07ee3962f161c | [
"BSL-1.0"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2005-2009.
// (C) Copyright Gennaro Prota 2003 - 2004.
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LIC... | 27.28 | 89 | 0.679514 | Ron2014 |
80c5c096561a8f2d4ed4e997bedb70ca4b2dc125 | 18,845 | cpp | C++ | src/libtriton/engines/synthesis/synthesizer.cpp | o2e/Triton | 0753a0c097fe637beb25b428ff2f0983f14f96d9 | [
"Apache-2.0"
] | null | null | null | src/libtriton/engines/synthesis/synthesizer.cpp | o2e/Triton | 0753a0c097fe637beb25b428ff2f0983f14f96d9 | [
"Apache-2.0"
] | null | null | null | src/libtriton/engines/synthesis/synthesizer.cpp | o2e/Triton | 0753a0c097fe637beb25b428ff2f0983f14f96d9 | [
"Apache-2.0"
] | null | null | null | //! \file
/*
** Copyright (C) - Triton
**
** This program is under the terms of the Apache License 2.0.
*/
#include <chrono>
#include <stack>
#include <unordered_set>
#include <vector>
#include <triton/ast.hpp>
#include <triton/exceptions.hpp>
#include <triton/oracleEntry.hpp>
#include <triton/symbolicVariable.hpp>... | 42.064732 | 176 | 0.586628 | o2e |
80c5e27c99695ceda55e522514a07e7363b88883 | 4,360 | cpp | C++ | src/vendor/mariadb-10.6.7/storage/columnstore/columnstore/dbcon/execplan/tdriver23.cpp | zettadb/zettalib | 3d5f96dc9e3e4aa255f4e6105489758944d37cc4 | [
"Apache-2.0"
] | null | null | null | src/vendor/mariadb-10.6.7/storage/columnstore/columnstore/dbcon/execplan/tdriver23.cpp | zettadb/zettalib | 3d5f96dc9e3e4aa255f4e6105489758944d37cc4 | [
"Apache-2.0"
] | null | null | null | src/vendor/mariadb-10.6.7/storage/columnstore/columnstore/dbcon/execplan/tdriver23.cpp | zettadb/zettalib | 3d5f96dc9e3e4aa255f4e6105489758944d37cc4 | [
"Apache-2.0"
] | 2 | 2022-02-27T14:00:01.000Z | 2022-03-31T06:24:22.000Z | /* Copyright (C) 2014 InfiniDB, Inc.
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; version 2 of
the License.
This program is distributed in the hope that it will be useful,
but W... | 28.684211 | 103 | 0.623853 | zettadb |
80c87ce8a6964225c2340f1c74b12eba28d8f14f | 55,153 | cpp | C++ | src/DjvuLib.Shared/libdjvu/DjVuDocument.cpp | eadordzhiev/DjvuLib | cbbe626708630e8d2abe5ba3ffed1d1d744700ca | [
"Apache-2.0"
] | 1 | 2018-01-14T23:21:13.000Z | 2018-01-14T23:21:13.000Z | src/DjvuLib.Shared/libdjvu/DjVuDocument.cpp | eadordzhiev/DjvuLib | cbbe626708630e8d2abe5ba3ffed1d1d744700ca | [
"Apache-2.0"
] | null | null | null | src/DjvuLib.Shared/libdjvu/DjVuDocument.cpp | eadordzhiev/DjvuLib | cbbe626708630e8d2abe5ba3ffed1d1d744700ca | [
"Apache-2.0"
] | null | null | null | //C- -*- C++ -*-
//C- -------------------------------------------------------------------
//C- DjVuLibre-3.5
//C- Copyright (c) 2002 Leon Bottou and Yann Le Cun.
//C- Copyright (c) 2001 AT&T
//C-
//C- This software is subject to, and may be distributed under, the
//C- GNU General Public License, either Version 2 of ... | 29.446343 | 176 | 0.608145 | eadordzhiev |
80cc82c4ba7e1394b737e9be368d245622335d3c | 17,386 | cpp | C++ | tests/cpu/ParseUtils_tests.cpp | kartik1000/OpenColorIO | 9d6089faaae5f69d94fe73ac25f336d04216abb1 | [
"BSD-3-Clause"
] | null | null | null | tests/cpu/ParseUtils_tests.cpp | kartik1000/OpenColorIO | 9d6089faaae5f69d94fe73ac25f336d04216abb1 | [
"BSD-3-Clause"
] | 1 | 2020-06-12T19:10:09.000Z | 2020-06-12T19:10:09.000Z | tests/cpu/ParseUtils_tests.cpp | kartik1000/OpenColorIO | 9d6089faaae5f69d94fe73ac25f336d04216abb1 | [
"BSD-3-Clause"
] | null | null | null | // SPDX-License-Identifier: BSD-3-Clause
// Copyright Contributors to the OpenColorIO Project.
#include "ParseUtils.cpp"
#include "UnitTest.h"
namespace OCIO = OCIO_NAMESPACE;
OCIO_ADD_TEST(ParseUtils, xml_text)
{
const std::string in("abc \" def ' ghi < jkl > mnop & efg");
const std::string ref("abc "... | 36.220833 | 85 | 0.702979 | kartik1000 |
80d0be1980485086c8e5aeb0adaca0a7239c1eaf | 2,107 | hpp | C++ | openstudiocore/src/openstudio_lib/HorizontalTabWidget.hpp | pepsi7959/OpenstudioThai | fb18afb8b983f71dd5eb171e753dac7d9a4b811b | [
"blessing"
] | 1 | 2015-06-28T09:06:24.000Z | 2015-06-28T09:06:24.000Z | openstudiocore/src/openstudio_lib/HorizontalTabWidget.hpp | pepsi7959/OpenstudioThai | fb18afb8b983f71dd5eb171e753dac7d9a4b811b | [
"blessing"
] | 11 | 2015-05-05T16:16:33.000Z | 2017-08-10T08:15:50.000Z | openstudiocore/src/openstudio_lib/HorizontalTabWidget.hpp | pepsi7959/OpenstudioThai | fb18afb8b983f71dd5eb171e753dac7d9a4b811b | [
"blessing"
] | 1 | 2017-09-23T12:51:13.000Z | 2017-09-23T12:51:13.000Z | /**********************************************************************
* Copyright (c) 2008-2015, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published ... | 23.411111 | 82 | 0.675842 | pepsi7959 |
80d1b44d76b1add0944c033d96825ddca4fbdf10 | 2,949 | cpp | C++ | code/engine.vc2008/xrGame/AI_PhraseDialogManager.cpp | porames25/xray-oxygen | 1f3f46a7a1ffc2be1de04a1ec665862127894ef7 | [
"Apache-2.0"
] | 6 | 2020-07-06T13:34:28.000Z | 2021-07-12T10:36:23.000Z | code/engine.vc2008/xrGame/AI_PhraseDialogManager.cpp | porames25/xray-oxygen | 1f3f46a7a1ffc2be1de04a1ec665862127894ef7 | [
"Apache-2.0"
] | null | null | null | code/engine.vc2008/xrGame/AI_PhraseDialogManager.cpp | porames25/xray-oxygen | 1f3f46a7a1ffc2be1de04a1ec665862127894ef7 | [
"Apache-2.0"
] | 5 | 2020-10-18T11:55:26.000Z | 2022-03-28T07:21:35.000Z | ///////////////////////////////////////////////////////////////
// AI_PhraseDialogManager.cpp
// Класс, от которого наследуются NPC персонажи, ведущие диалог
// с актером
//
///////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "AI_PhraseDialogManager.h"
#include "PhraseDialog.h"... | 28.355769 | 92 | 0.736521 | porames25 |
80d29f73134baa27448883e898832e37bf3bf9ac | 12,079 | cpp | C++ | connectors/dds4ccm/tests/apc/gen_comp/components/publisher/publisher_exec.cpp | jwillemsen/ciaox11 | 483dd0f189a92615068366f566ea8354a1baf7a3 | [
"MIT"
] | 7 | 2016-04-12T15:09:33.000Z | 2022-01-26T02:28:28.000Z | connectors/dds4ccm/tests/apc/gen_comp/components/publisher/publisher_exec.cpp | jwillemsen/ciaox11 | 483dd0f189a92615068366f566ea8354a1baf7a3 | [
"MIT"
] | 10 | 2019-11-26T15:24:01.000Z | 2022-03-28T11:45:14.000Z | connectors/dds4ccm/tests/apc/gen_comp/components/publisher/publisher_exec.cpp | jwillemsen/ciaox11 | 483dd0f189a92615068366f566ea8354a1baf7a3 | [
"MIT"
] | 5 | 2016-04-12T18:40:44.000Z | 2019-12-18T14:27:52.000Z | // -*- C++ -*-
/**
* @file publisher_exec.cpp
* @author Johnny Willemsen
*
* @copyright Copyright (c) Remedy IT Expertise BV
*/
//@@{__RIDL_REGEN_MARKER__} - HEADER_END : publisher_impl.cpp[Header]
#include "publisher_exec.h"
//@@{__RIDL_REGEN_MARKER__} - BEGIN : publisher_comp_Impl[user_includes]
#include "... | 39.996689 | 147 | 0.729448 | jwillemsen |
80d328452693b877a78c9eff5438f191f165420d | 6,182 | cpp | C++ | src/modules/imageProc/RotCrop.cpp | Opticalp/instrumentall | f952c1cd54f375dc4cb258fec5af34d14c2b8044 | [
"MIT"
] | 1 | 2020-05-19T02:06:55.000Z | 2020-05-19T02:06:55.000Z | src/modules/imageProc/RotCrop.cpp | Opticalp/instrumentall | f952c1cd54f375dc4cb258fec5af34d14c2b8044 | [
"MIT"
] | 16 | 2015-11-18T13:25:30.000Z | 2018-05-17T19:25:46.000Z | src/modules/imageProc/RotCrop.cpp | Opticalp/instrumentall | f952c1cd54f375dc4cb258fec5af34d14c2b8044 | [
"MIT"
] | null | null | null | /**
* @file src/modules/imageProc/RotCrop.cpp
* @date Jan. 2017
* @author PhRG - opticalp.fr
*/
/*
Copyright (c) 2017 Ph. Renaud-Goud / Opticalp
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 Sof... | 27.972851 | 90 | 0.645746 | Opticalp |
80d3611d33fade77f36797e37b841fe48c50b679 | 3,084 | cpp | C++ | src/dist/topology.cpp | cbassem/resilient-icnc | 9f94b185358f2af133244fc8c877190bd15ed413 | [
"BSD-3-Clause"
] | null | null | null | src/dist/topology.cpp | cbassem/resilient-icnc | 9f94b185358f2af133244fc8c877190bd15ed413 | [
"BSD-3-Clause"
] | null | null | null | src/dist/topology.cpp | cbassem/resilient-icnc | 9f94b185358f2af133244fc8c877190bd15ed413 | [
"BSD-3-Clause"
] | null | null | null | /* *******************************************************************************
* Copyright (c) 2010-2014, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source c... | 42.246575 | 82 | 0.530156 | cbassem |
80d3ad01420370aa00ff7f9ff4025ff5a8703111 | 114,394 | cc | C++ | bssopenapi/src/BssOpenApiClient.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 89 | 2018-02-02T03:54:39.000Z | 2021-12-13T01:32:55.000Z | bssopenapi/src/BssOpenApiClient.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 89 | 2018-03-14T07:44:54.000Z | 2021-11-26T07:43:25.000Z | bssopenapi/src/BssOpenApiClient.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 69 | 2018-01-22T09:45:52.000Z | 2022-03-28T07:58:38.000Z | /*
* Copyright 2009-2017 Alibaba Cloud 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... | 36.315556 | 247 | 0.792935 | aliyun |
80d6c3c5f9a375b04891a005ad03dde5c82aaa65 | 1,033 | cpp | C++ | src/ieme/raw_fraction.test.cpp | Adjacence/Ieme | be411b0a5d6048c7f6f3213e199ab982e0040ce7 | [
"MIT"
] | null | null | null | src/ieme/raw_fraction.test.cpp | Adjacence/Ieme | be411b0a5d6048c7f6f3213e199ab982e0040ce7 | [
"MIT"
] | null | null | null | src/ieme/raw_fraction.test.cpp | Adjacence/Ieme | be411b0a5d6048c7f6f3213e199ab982e0040ce7 | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <ieme/raw_fraction.hpp>
using namespace ieme;
TEST_CASE("A raw fraction can be constructed from a numerator and denominator",
"[raw_fraction]")
{
const auto rf = raw_fraction(34, -21);
REQUIRE(rf.numerator == 34);
REQUIRE(rf.denominato... | 21.081633 | 79 | 0.666989 | Adjacence |
80d7c8e1e3e7056cfefc53dc281bc1eff730d850 | 1,162 | cpp | C++ | data_struct/sort/shell_sort.cpp | AMDyesIntelno/c_cpp_code | 972b452976a67be0c9c1fdac8caffa4baf00c5cf | [
"MIT"
] | null | null | null | data_struct/sort/shell_sort.cpp | AMDyesIntelno/c_cpp_code | 972b452976a67be0c9c1fdac8caffa4baf00c5cf | [
"MIT"
] | null | null | null | data_struct/sort/shell_sort.cpp | AMDyesIntelno/c_cpp_code | 972b452976a67be0c9c1fdac8caffa4baf00c5cf | [
"MIT"
] | null | null | null | #include"shell_sort.h"
void shell_sort(int *array, int len) {//希尔排序
for (int shell = len / 2; shell > 0; shell /= 2) {//切片
for (int i = shell; i < len; ++i) {//片后递增
int j;
int temp = array[i];
for (j = i; j >= shell && array[j - shell] > temp; j -= shell) {//修改为部分片段有序
... | 25.822222 | 87 | 0.444062 | AMDyesIntelno |
80d8653295e044ee07bbb17b96bf6d26500cff9d | 5,587 | cc | C++ | cpp_src/net/connection.cc | andyoknen/reindexer | ff1b2bcc0a80c4692361c9c184243d74a920ead7 | [
"Apache-2.0"
] | null | null | null | cpp_src/net/connection.cc | andyoknen/reindexer | ff1b2bcc0a80c4692361c9c184243d74a920ead7 | [
"Apache-2.0"
] | null | null | null | cpp_src/net/connection.cc | andyoknen/reindexer | ff1b2bcc0a80c4692361c9c184243d74a920ead7 | [
"Apache-2.0"
] | null | null | null |
#include "connection.h"
#include <errno.h>
namespace reindexer {
namespace net {
constexpr double kStatsUpdatePeriod = 1.0;
template <typename Mutex>
Connection<Mutex>::Connection(int fd, ev::dynamic_loop &loop, bool enableStat, size_t readBufSize, size_t writeBufSize)
: sock_(fd), curEvents_(0), wrBuf_(writeBufS... | 26.860577 | 134 | 0.696975 | andyoknen |
80d94cd2b09b249f103fe349d7ad276cfb120747 | 1,338 | cpp | C++ | tests/unit/util/bind/bind_eq2_test.cpp | kempj/hpx | ffdbfed5dfa029a0f2e97e7367cb66d12103df67 | [
"BSL-1.0"
] | null | null | null | tests/unit/util/bind/bind_eq2_test.cpp | kempj/hpx | ffdbfed5dfa029a0f2e97e7367cb66d12103df67 | [
"BSL-1.0"
] | null | null | null | tests/unit/util/bind/bind_eq2_test.cpp | kempj/hpx | ffdbfed5dfa029a0f2e97e7367cb66d12103df67 | [
"BSL-1.0"
] | null | null | null | #include <hpx/hpx_init.hpp>
#if defined(BOOST_MSVC)
#pragma warning(disable: 4786) // identifier truncated in debug info
#pragma warning(disable: 4710) // function not inlined
#pragma warning(disable: 4711) // function selected for automatic inline expansion
#pragma warning(disable: 4514) // unreferenced inline re... | 24.777778 | 84 | 0.705531 | kempj |
80daf695d8bb249fe240e7bc79ca7bfa2345912c | 1,111 | hpp | C++ | engine/graphics/opengl/android/OGLRenderDeviceAndroid.hpp | tsukoyumi/ouzel | 43f4f4871d49a310529366a4a4db061a96097164 | [
"Unlicense"
] | null | null | null | engine/graphics/opengl/android/OGLRenderDeviceAndroid.hpp | tsukoyumi/ouzel | 43f4f4871d49a310529366a4a4db061a96097164 | [
"Unlicense"
] | null | null | null | engine/graphics/opengl/android/OGLRenderDeviceAndroid.hpp | tsukoyumi/ouzel | 43f4f4871d49a310529366a4a4db061a96097164 | [
"Unlicense"
] | null | null | null | // Ouzel by Elviss Strazdins
#ifndef OUZEL_GRAPHICS_OGLRENDERDEVICEANDROID_HPP
#define OUZEL_GRAPHICS_OGLRENDERDEVICEANDROID_HPP
#include "../../../core/Setup.h"
#if defined(__ANDROID__) && OUZEL_COMPILE_OPENGL
#include <atomic>
#include <thread>
#include "EGL/egl.h"
#include "EGL/eglext.h"
#include "../OGLRenderDe... | 23.638298 | 57 | 0.663366 | tsukoyumi |
80daf8b21bab6bff7f87e994cf44ffaa0d3c6150 | 18,584 | cc | C++ | src/voxel.cc | c-lamas/voxel_packing | eb3f9b8de086982524d0c92d90a522fbd8acc2f1 | [
"MIT"
] | null | null | null | src/voxel.cc | c-lamas/voxel_packing | eb3f9b8de086982524d0c92d90a522fbd8acc2f1 | [
"MIT"
] | null | null | null | src/voxel.cc | c-lamas/voxel_packing | eb3f9b8de086982524d0c92d90a522fbd8acc2f1 | [
"MIT"
] | null | null | null | #include "3dlib.h"
#include <string>
#include <fstream>
#include <iostream>
#include <cmath>
using namespace std;
VOXEL::VOXEL()
{
init = false;
resolution = 0.1;
creationTime = -1;
rotAngle.assign(3, 0);
cornerInd.assign(3, 0);
corner.assign(3, 0);
name = "empty dir";
// cout << "Initialized voxel!" << endl;... | 25.353342 | 126 | 0.556877 | c-lamas |
80db2b04153406f97e4ff94b441f4a186a9e2baf | 15,651 | cpp | C++ | cpp/benchmarks/core/Hashmap.cpp | Dudulle/Open3D | ffed2d1bee6d45b6acc4b7ae7133752e50d6ecab | [
"MIT"
] | 8 | 2021-03-17T14:24:12.000Z | 2022-03-30T15:35:27.000Z | cpp/benchmarks/core/Hashmap.cpp | Dudulle/Open3D | ffed2d1bee6d45b6acc4b7ae7133752e50d6ecab | [
"MIT"
] | 1 | 2021-11-04T09:22:25.000Z | 2022-02-14T01:32:31.000Z | cpp/benchmarks/core/Hashmap.cpp | Dudulle/Open3D | ffed2d1bee6d45b6acc4b7ae7133752e50d6ecab | [
"MIT"
] | 2 | 2021-08-24T18:06:55.000Z | 2021-12-17T10:48:34.000Z | // ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2018 www.open3d.org
//
// Permissio... | 35.25 | 80 | 0.566481 | Dudulle |
80dcbb4d66b4bfaa14e106657536ce4da581394e | 1,986 | cpp | C++ | contests/1579/c.cpp | Peppa-Peddler/graph-theory | ed022859a1378386d8dba4e7ade6a96a7d683827 | [
"MIT"
] | null | null | null | contests/1579/c.cpp | Peppa-Peddler/graph-theory | ed022859a1378386d8dba4e7ade6a96a7d683827 | [
"MIT"
] | null | null | null | contests/1579/c.cpp | Peppa-Peddler/graph-theory | ed022859a1378386d8dba4e7ade6a96a7d683827 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#define LL long long
#define PII pair<int, int>
#define VI vector<int>
#define PB push_back
#define PQ priority_queue
#define MP make_pair
#define F first
#define S second
#define MOD 1000000007
#define N6 1000006
#define N5 100005
#define N4 10004
#define N3 1003
#define PI 3.1415926535897... | 20.060606 | 115 | 0.376636 | Peppa-Peddler |
80dd316621eee700deb9e18f3fc3bff98a7900c9 | 3,965 | cpp | C++ | crank_nicolson_solver.cpp | hamchiy/yya_pde_solver | bb8390031a761ccdc829893728cd7c6906811a1a | [
"BSD-3-Clause"
] | null | null | null | crank_nicolson_solver.cpp | hamchiy/yya_pde_solver | bb8390031a761ccdc829893728cd7c6906811a1a | [
"BSD-3-Clause"
] | null | null | null | crank_nicolson_solver.cpp | hamchiy/yya_pde_solver | bb8390031a761ccdc829893728cd7c6906811a1a | [
"BSD-3-Clause"
] | null | null | null | #include "crank_nicolson_solver.hpp"
using namespace std;
void gauss(vector<vector<double>>& augmented_matrix) {
int n = augmented_matrix.size();
for(int i=0; i<n; ++i) {
// find row from i with largest value at i
int tr = i;
for(int j=i+1; j<n; ++j) {
if(fabs(augmented_mat... | 31.975806 | 115 | 0.545271 | hamchiy |
80dd643c24851f355702d9f18f3c131795a108d2 | 477 | cpp | C++ | himan-lib/source/logger.cpp | jrintala/fmi-data | 625f0a44919e6406440349425ee0b3f1a64a923d | [
"MIT"
] | null | null | null | himan-lib/source/logger.cpp | jrintala/fmi-data | 625f0a44919e6406440349425ee0b3f1a64a923d | [
"MIT"
] | null | null | null | himan-lib/source/logger.cpp | jrintala/fmi-data | 625f0a44919e6406440349425ee0b3f1a64a923d | [
"MIT"
] | null | null | null | /*
* logger.cpp
*
*/
#include "logger.h"
namespace himan
{
HPDebugState logger::MainDebugState = himan::kInfoMsg;
logger::logger() : itsDebugState(kInfoMsg), itsUserName("HimanDefaultLogger") {}
logger::logger(const std::string& theUserName)
: itsDebugState(MainDebugState), itsUserName(theUserName)
{
}
logge... | 19.875 | 80 | 0.742138 | jrintala |
80de7970282a63cd314ca79d0b1925857a40d4f4 | 2,168 | hh | C++ | src/gui/plugins/modules/EntityContextMenu.hh | jasmeet0915/ign-gazebo | fc2a98ec5e1b149d773eeb6cae4a407bd82a81a2 | [
"ECL-2.0",
"Apache-2.0"
] | 198 | 2020-04-15T16:56:09.000Z | 2022-03-27T12:31:08.000Z | src/gui/plugins/modules/EntityContextMenu.hh | jasmeet0915/ign-gazebo | fc2a98ec5e1b149d773eeb6cae4a407bd82a81a2 | [
"ECL-2.0",
"Apache-2.0"
] | 1,220 | 2020-04-15T18:10:29.000Z | 2022-03-31T22:37:06.000Z | src/gui/plugins/modules/EntityContextMenu.hh | jasmeet0915/ign-gazebo | fc2a98ec5e1b149d773eeb6cae4a407bd82a81a2 | [
"ECL-2.0",
"Apache-2.0"
] | 134 | 2020-04-15T16:59:57.000Z | 2022-03-26T08:51:31.000Z | /*
* Copyright (C) 2019 Open Source Robotics Foundation
*
* 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 appl... | 28.526316 | 78 | 0.712177 | jasmeet0915 |
80e15bd68625c2e3ab665ad7ea889a66daadba5a | 8,292 | cpp | C++ | samples/server/petstore/cpp-pistache/api/PetApi.cpp | therockstorm/openapi-generator | 01d0b5d4780ebe2d6025e2b443ec136c6ce16c45 | [
"Apache-2.0"
] | 4 | 2021-02-20T21:39:04.000Z | 2021-08-24T13:54:15.000Z | samples/server/petstore/cpp-pistache/api/PetApi.cpp | therockstorm/openapi-generator | 01d0b5d4780ebe2d6025e2b443ec136c6ce16c45 | [
"Apache-2.0"
] | 27 | 2021-04-07T07:22:02.000Z | 2022-03-31T05:10:11.000Z | samples/server/petstore/cpp-pistache/api/PetApi.cpp | therockstorm/openapi-generator | 01d0b5d4780ebe2d6025e2b443ec136c6ce16c45 | [
"Apache-2.0"
] | 5 | 2020-11-26T05:13:41.000Z | 2021-04-09T15:58:18.000Z | /**
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-ge... | 34.987342 | 132 | 0.643391 | therockstorm |
80e1da0d8c4ecb61f2a1fdce91d01618dc6538a4 | 5,258 | cc | C++ | Contrib/dmk/dsk2dmk.cc | D15C0DE/openMSX | 5119a9657de4b82115c745f670cdc55dc7363133 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 4 | 2015-06-19T04:49:29.000Z | 2022-02-16T15:02:04.000Z | Contrib/dmk/dsk2dmk.cc | D15C0DE/openMSX | 5119a9657de4b82115c745f670cdc55dc7363133 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 1 | 2016-01-02T15:55:29.000Z | 2016-01-02T15:55:29.000Z | Contrib/dmk/dsk2dmk.cc | D15C0DE/openMSX | 5119a9657de4b82115c745f670cdc55dc7363133 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 2 | 2020-01-17T02:06:13.000Z | 2021-06-10T17:13:07.000Z | #include <string>
#include <stdexcept>
#include <vector>
#include <cassert>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <sys/stat.h>
#include <sys/types.h>
using namespace std;
typedef unsigned char byte; // 8 bit
typedef unsigned short word; // 16 bit
static const unsigned int TRACK_LENGTH = ... | 23.9 | 77 | 0.600228 | D15C0DE |
80e4541a51b3b1e778812eb10ccb11277a1180c4 | 1,386 | hpp | C++ | src/lib/Host/ClkCtrl/ClkCtrl.hpp | GaloisInc/BESSPIN-BSC | 21a0a8cba9e643ef5afcb87eac164cc33ea83e94 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 1 | 2022-02-11T01:52:42.000Z | 2022-02-11T01:52:42.000Z | src/lib/Host/ClkCtrl/ClkCtrl.hpp | GaloisInc/BESSPIN-BSC | 21a0a8cba9e643ef5afcb87eac164cc33ea83e94 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | src/lib/Host/ClkCtrl/ClkCtrl.hpp | GaloisInc/BESSPIN-BSC | 21a0a8cba9e643ef5afcb87eac164cc33ea83e94 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2013-2016, Bluespec, Inc. ALL RIGHTS RESERVED
#pragma once
// C++ transactor side for the ClkCtrlServer module in BSVSource
#include <inttypes.h>
#include <deque>
// -----
struct ClkCtrlStatus {
uint64_t cycle;
bool running;
bool free_running;
unsigned int edges;
};
// -----
class ClkCtr... | 23.896552 | 117 | 0.707792 | GaloisInc |
80e52a4c1c3408fc4f939f10db771133a42d2293 | 1,737 | hpp | C++ | test/unittest/ast/TypeTest.hpp | denisw/soyac | 2531e16e8dfbfa966931b774f9d79af528d16ff9 | [
"MIT"
] | 1 | 2019-06-17T07:16:01.000Z | 2019-06-17T07:16:01.000Z | test/unittest/ast/TypeTest.hpp | denisw/soyac | 2531e16e8dfbfa966931b774f9d79af528d16ff9 | [
"MIT"
] | null | null | null | test/unittest/ast/TypeTest.hpp | denisw/soyac | 2531e16e8dfbfa966931b774f9d79af528d16ff9 | [
"MIT"
] | null | null | null | /*
* soyac - The Soya programming language compiler
* Copyright (c) 2009 Denis Washington <dwashington@gmx.net>
*
* This file is distributed under the terms of the MIT license.
* See LICENSE.txt for details.
*/
#ifndef _TYPE_DECLARATION_TEST_HPP
#define _TYPE_DECLARATION_TEST_HPP
#include <cppunit/TestFixture.h... | 21.7125 | 72 | 0.685665 | denisw |
80e640db29bb7cd4d51acbf82f90ad063f62a50a | 2,771 | ipp | C++ | ThirdParty/oglplus-develop/implement/oglplus/enums/ext/compat_attrib_group_names.ipp | vif/3D-STG | 721402e76a9b9b99b88ba3eb06beb6abb17a9254 | [
"MIT"
] | 24 | 2015-01-31T15:30:49.000Z | 2022-01-29T08:36:42.000Z | ThirdParty/oglplus-develop/implement/oglplus/enums/ext/compat_attrib_group_names.ipp | vif/3D-STG | 721402e76a9b9b99b88ba3eb06beb6abb17a9254 | [
"MIT"
] | 4 | 2015-08-21T02:29:15.000Z | 2020-05-02T13:50:36.000Z | ThirdParty/oglplus-develop/implement/oglplus/enums/ext/compat_attrib_group_names.ipp | vif/3D-STG | 721402e76a9b9b99b88ba3eb06beb6abb17a9254 | [
"MIT"
] | 9 | 2015-06-08T22:04:15.000Z | 2021-08-16T03:52:11.000Z | /*
* .file oglplus/enums/ext/compat_attrib_group_names.ipp
*
* Automatically generated header file. DO NOT modify manually,
* edit 'source/enums/oglplus/ext/compat_attrib_group.txt' instead.
*
* Copyright 2010-2013 Matus Chochlik. Distributed under the Boost
* Software License, Version 1.0. (See accompanyin... | 27.989899 | 73 | 0.799711 | vif |
80e6498b78010eff5a4b5cd93b14da69a061aaee | 7,930 | cpp | C++ | test/unit/multithread_simple.cpp | jsoniq/jsoniq | f7af29417f809d64d1f0b2622d880bc4d87f2e42 | [
"Apache-2.0"
] | 94 | 2015-01-18T09:40:36.000Z | 2022-03-02T21:14:55.000Z | test/unit/multithread_simple.cpp | jsoniq/jsoniq | f7af29417f809d64d1f0b2622d880bc4d87f2e42 | [
"Apache-2.0"
] | 72 | 2015-01-05T22:00:31.000Z | 2021-07-17T11:35:03.000Z | test/unit/multithread_simple.cpp | jsoniq/jsoniq | f7af29417f809d64d1f0b2622d880bc4d87f2e42 | [
"Apache-2.0"
] | 27 | 2015-01-18T20:20:54.000Z | 2020-11-01T18:01:07.000Z | /*
* Copyright 2006-2008 The FLWOR Foundation.
*
* 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... | 22.464589 | 114 | 0.621438 | jsoniq |
80e6b0ae1b1addd9b76ad9c10d68f0b76f3f186f | 382 | cpp | C++ | opencl/source/gen11/sampler_gen11.cpp | troels/compute-runtime | 3269e719a3ee7bcd97c50ec2cfe78fc8674adec0 | [
"Intel",
"MIT"
] | 778 | 2017-09-29T20:02:43.000Z | 2022-03-31T15:35:28.000Z | opencl/source/gen11/sampler_gen11.cpp | troels/compute-runtime | 3269e719a3ee7bcd97c50ec2cfe78fc8674adec0 | [
"Intel",
"MIT"
] | 478 | 2018-01-26T16:06:45.000Z | 2022-03-30T10:19:10.000Z | opencl/source/gen11/sampler_gen11.cpp | troels/compute-runtime | 3269e719a3ee7bcd97c50ec2cfe78fc8674adec0 | [
"Intel",
"MIT"
] | 215 | 2018-01-30T08:39:32.000Z | 2022-03-29T11:08:51.000Z | /*
* Copyright (C) 2019-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/gen11/hw_cmds.h"
#include "opencl/source/sampler/sampler.h"
#include "opencl/source/sampler/sampler.inl"
namespace NEO {
typedef ICLFamily Family;
static auto gfxCore = IGFX_GEN11_CORE;
#include "openc... | 19.1 | 57 | 0.751309 | troels |
80e9d41143bfb645b20bd879fd615d868e98fac0 | 6,085 | cpp | C++ | codecs/png.cpp | mattvchandler/asciiart | 65eeb38aa42b98d49ce15bb2cc3a98950edb18cc | [
"MIT"
] | 5 | 2020-06-02T18:05:43.000Z | 2022-02-19T10:44:47.000Z | codecs/png.cpp | mattvchandler/asciiart | 65eeb38aa42b98d49ce15bb2cc3a98950edb18cc | [
"MIT"
] | null | null | null | codecs/png.cpp | mattvchandler/asciiart | 65eeb38aa42b98d49ce15bb2cc3a98950edb18cc | [
"MIT"
] | 1 | 2021-11-29T15:32:54.000Z | 2021-11-29T15:32:54.000Z | #include "png.hpp"
#include <iostream>
#include <stdexcept>
#include <csetjmp>
#include <png.h>
#ifdef EXIF_FOUND
#include "exif.hpp"
#endif
void read_fn(png_structp png_ptr, png_bytep data, png_size_t length) noexcept
{
auto in = static_cast<std::istream *>(png_get_io_ptr(png_ptr));
if(!in)
std::l... | 31.045918 | 134 | 0.652588 | mattvchandler |
80eae8dda71122b56fbf3c238af4f2ecccd455a5 | 13,517 | cpp | C++ | allocator/buddyallocator.cpp | StiliyanDr/allocator | eb83302d52b1992509556cfa7044c4b99884ad2a | [
"MIT"
] | null | null | null | allocator/buddyallocator.cpp | StiliyanDr/allocator | eb83302d52b1992509556cfa7044c4b99884ad2a | [
"MIT"
] | null | null | null | allocator/buddyallocator.cpp | StiliyanDr/allocator | eb83302d52b1992509556cfa7044c4b99884ad2a | [
"MIT"
] | null | null | null | #include "buddyallocator.hpp"
#include <assert.h>
#include <memory>
#include <stdexcept>
#include <utility>
#include "insufficientmemory.hpp"
namespace allocator
{
BuddyAllocator::BuddyAllocator() :
free_lists(nullptr)
{
}
BuddyAllocator::BuddyAllocator(void* memory, std::size_t size)
... | 26.246602 | 81 | 0.55138 | StiliyanDr |
80ec17755f43662457c317253e9ce7457fcd021b | 82,820 | cpp | C++ | code/tools/dbg/peframework/src/peloader.read.cpp | thorium-cfx/fivem | 587eb7c12066a2ebf8631bde7bb39ee2df1b5a0c | [
"MIT"
] | 5,411 | 2017-04-14T08:57:56.000Z | 2022-03-30T19:35:15.000Z | code/tools/dbg/peframework/src/peloader.read.cpp | thorium-cfx/fivem | 587eb7c12066a2ebf8631bde7bb39ee2df1b5a0c | [
"MIT"
] | 802 | 2017-04-21T14:18:36.000Z | 2022-03-31T21:20:48.000Z | code/tools/dbg/peframework/src/peloader.read.cpp | thorium-cfx/fivem | 587eb7c12066a2ebf8631bde7bb39ee2df1b5a0c | [
"MIT"
] | 2,011 | 2017-04-14T09:44:15.000Z | 2022-03-31T15:40:39.000Z | // I am (more or less) thankful of certain other people that have done research on PE loading aswell,
// such as...
// http://python-pefile.sourcearchive.com/
// https://code.google.com/archive/p/corkami/wikis/PE.wiki
// Deserialization of PE files.
#include "peframework.h"
#include "peloader.internal.hxx"
void PE... | 40.360624 | 196 | 0.545122 | thorium-cfx |
80eebff4c2f169f306f44a799f400ce44f25fd20 | 3,795 | cpp | C++ | emulator/src/mame/machine/asteroid.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | 1 | 2022-01-15T21:38:38.000Z | 2022-01-15T21:38:38.000Z | emulator/src/mame/machine/asteroid.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | emulator/src/mame/machine/asteroid.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | // license:BSD-3-Clause
// copyright-holders:Brad Oliver, Bernd Wiebelt, Allard van der Bas
/***************************************************************************
machine.c
Functions to emulate general aspects of the machine (RAM, ROM, interrupts,
I/O ports)
**********************************************... | 22.455621 | 76 | 0.645323 | rjw57 |
80ef0c9370db2488cac6a2d292106e0d7f4291ec | 469 | cpp | C++ | pre_ast/nodes/statement_with_two_bodies.cpp | kahveciderin/cornpiler | b6f843eb44e7b79ef74b0943ec9792ab1cb4740c | [
"Unlicense"
] | null | null | null | pre_ast/nodes/statement_with_two_bodies.cpp | kahveciderin/cornpiler | b6f843eb44e7b79ef74b0943ec9792ab1cb4740c | [
"Unlicense"
] | null | null | null | pre_ast/nodes/statement_with_two_bodies.cpp | kahveciderin/cornpiler | b6f843eb44e7b79ef74b0943ec9792ab1cb4740c | [
"Unlicense"
] | null | null | null | #include "statement_with_two_bodies.hpp"
ast_types::statement_with_two_bodies::statement_with_two_bodies() { act = act_type::statement_with_two_bodies; }
std::string ast_types::statement_with_two_bodies::print_node() {
return "\"statement_with_two_bodies\": {\"name\":" + this->name.print_node() +
",\"args\"... | 52.111111 | 112 | 0.663113 | kahveciderin |
80f2405fa92fe83e58f69c27345bb4323bbb5bb3 | 27,406 | cpp | C++ | src/mongo/s/metadata_loader_test.cpp | edaniels/mongo | 60f9f92f966d7bfabe722d96bc6e196292a4d051 | [
"Apache-2.0"
] | null | null | null | src/mongo/s/metadata_loader_test.cpp | edaniels/mongo | 60f9f92f966d7bfabe722d96bc6e196292a4d051 | [
"Apache-2.0"
] | null | null | null | src/mongo/s/metadata_loader_test.cpp | edaniels/mongo | 60f9f92f966d7bfabe722d96bc6e196292a4d051 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2012 10gen Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful... | 41.15015 | 100 | 0.563234 | edaniels |
80f6022056824e14f3d3d63c443688449a0a547f | 11,182 | cpp | C++ | util/stringutils.cpp | velezladonna/mwc-qt-wallet | bd241b91d28350e17e52a10208e663fcb992d7cc | [
"Apache-2.0"
] | 1 | 2020-03-19T10:02:16.000Z | 2020-03-19T10:02:16.000Z | util/stringutils.cpp | velezladonna/mwc-qt-wallet | bd241b91d28350e17e52a10208e663fcb992d7cc | [
"Apache-2.0"
] | null | null | null | util/stringutils.cpp | velezladonna/mwc-qt-wallet | bd241b91d28350e17e52a10208e663fcb992d7cc | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 The MWC Developers
//
// 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... | 28.025063 | 153 | 0.57682 | velezladonna |
80f6e80ae172b31325dd4d0436339854d817c833 | 2,888 | cc | C++ | Core/DianYing/Source/Component/Internal/Script/Widget/FDyWidgetScriptStatus.cc | liliilli/DianYing | 6e19f67e5d932e346a0ce63a648bed1a04ef618e | [
"MIT"
] | 4 | 2019-03-17T19:46:54.000Z | 2019-12-09T20:11:01.000Z | Core/DianYing/Source/Component/Internal/Script/Widget/FDyWidgetScriptStatus.cc | liliilli/DianYing | 6e19f67e5d932e346a0ce63a648bed1a04ef618e | [
"MIT"
] | null | null | null | Core/DianYing/Source/Component/Internal/Script/Widget/FDyWidgetScriptStatus.cc | liliilli/DianYing | 6e19f67e5d932e346a0ce63a648bed1a04ef618e | [
"MIT"
] | null | null | null | #include <precompiled.h>
///
/// MIT License
/// Copyright (c) 2018-2019 Jongmin Yun
///
/// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
/// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL... | 32.449438 | 110 | 0.756579 | liliilli |
80fada4c7d6401f7b62c4c0bc6b181761cbb14e4 | 12,388 | cpp | C++ | core/sql/qms/QmsGroupLattice.cpp | CoderSong2015/Apache-Trafodion | 889631aae9cdcd38fca92418d633f2dedc0be619 | [
"Apache-2.0"
] | 148 | 2015-06-18T21:26:04.000Z | 2017-12-25T01:47:01.000Z | core/sql/qms/QmsGroupLattice.cpp | CoderSong2015/Apache-Trafodion | 889631aae9cdcd38fca92418d633f2dedc0be619 | [
"Apache-2.0"
] | 1,352 | 2015-06-20T03:05:01.000Z | 2017-12-25T14:13:18.000Z | core/sql/qms/QmsGroupLattice.cpp | CoderSong2015/Apache-Trafodion | 889631aae9cdcd38fca92418d633f2dedc0be619 | [
"Apache-2.0"
] | 166 | 2015-06-19T18:52:10.000Z | 2017-12-27T06:19:32.000Z | // **********************************************************************
// @@@ START COPYRIGHT @@@
//
// 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.... | 34.99435 | 105 | 0.642396 | CoderSong2015 |
80fbdfc39197bacf52a50250240993dbf19c38dc | 16,849 | cpp | C++ | latte-dock/app/main.cpp | VaughnValle/lush-pop | cdfe9d7b6a7ebb89ba036ab9a4f07d8db6817355 | [
"MIT"
] | 64 | 2020-07-08T18:49:29.000Z | 2022-03-23T22:58:49.000Z | latte-dock/app/main.cpp | VaughnValle/kanji-pop | 0153059f0c62a8aeb809545c040225da5d249bb8 | [
"MIT"
] | 1 | 2021-04-02T04:39:45.000Z | 2021-09-25T11:53:18.000Z | latte-dock/app/main.cpp | VaughnValle/kanji-pop | 0153059f0c62a8aeb809545c040225da5d249bb8 | [
"MIT"
] | 11 | 2020-12-04T18:19:11.000Z | 2022-01-10T08:50:08.000Z | /*
* Copyright 2016 Smith AR <audoban@openmailbox.org>
* Michail Vourlakos <mvourlakos@gmail.com>
*
* This file is part of Latte-Dock
*
* Latte-Dock 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 F... | 41.5 | 368 | 0.664372 | VaughnValle |
80fc7bfb1628a0a5e5d32e2bc1b5b4585493cb0a | 1,024 | hpp | C++ | include/acd/interpolation.hpp | acdemiralp/acd | 72e90230efb502a982bd954c494afd82dc2404c9 | [
"MIT"
] | 28 | 2018-11-11T08:19:37.000Z | 2022-02-06T12:00:32.000Z | include/acd/interpolation.hpp | acdemiralp/acd | 72e90230efb502a982bd954c494afd82dc2404c9 | [
"MIT"
] | null | null | null | include/acd/interpolation.hpp | acdemiralp/acd | 72e90230efb502a982bd954c494afd82dc2404c9 | [
"MIT"
] | 1 | 2018-11-11T13:35:33.000Z | 2018-11-11T13:35:33.000Z | #ifndef ACD_INTERPOLATION_HPP
#define ACD_INTERPOLATION_HPP
#include <algorithm>
#include <cmath>
#include <numeric>
namespace acd
{
template<typename type, typename weight_type>
type lerp (const type& a, const type& b, weight_type w)
{
type result;
std::transform(a.begin(), a.end(), b.begin(), result.begin(), [... | 28.444444 | 112 | 0.655273 | acdemiralp |
440059144dfea91aa588a1c33aa055eb6e5a1794 | 6,842 | hpp | C++ | src/vlGraphics/Renderer.hpp | zpc930/visualizationlibrary | c81fa75c720a3d04d295b977a1f5dc4624428b53 | [
"BSD-2-Clause"
] | null | null | null | src/vlGraphics/Renderer.hpp | zpc930/visualizationlibrary | c81fa75c720a3d04d295b977a1f5dc4624428b53 | [
"BSD-2-Clause"
] | null | null | null | src/vlGraphics/Renderer.hpp | zpc930/visualizationlibrary | c81fa75c720a3d04d295b977a1f5dc4624428b53 | [
"BSD-2-Clause"
] | null | null | null | /**************************************************************************************/
/* */
/* Visualization Library */
/* http://www.visualizationlibrary.org ... | 60.017544 | 132 | 0.573078 | zpc930 |
4401567eae0607d0b71e5b00f955a186a4f62695 | 1,786 | hpp | C++ | libraries/include/msgpack/v1/adaptor/cpp17/byte.hpp | red-panda-productions/SDALib | ff5505b3454374792589529de1c45308c4d119e7 | [
"MIT"
] | null | null | null | libraries/include/msgpack/v1/adaptor/cpp17/byte.hpp | red-panda-productions/SDALib | ff5505b3454374792589529de1c45308c4d119e7 | [
"MIT"
] | null | null | null | libraries/include/msgpack/v1/adaptor/cpp17/byte.hpp | red-panda-productions/SDALib | ff5505b3454374792589529de1c45308c4d119e7 | [
"MIT"
] | null | null | null | //
// MessagePack for C++ static resolution routine
//
// Copyright (C) 2018 KONDO Takatoshi
//
// 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)
//
#ifndef MSGPACK_V1_TYPE_BYTE_HPP
#define MSGPACK_V1_TYPE... | 23.194805 | 88 | 0.68645 | red-panda-productions |
4404670291faa8763a29228118cdff20781281d7 | 788 | cpp | C++ | src/food.cpp | prinsij/RogueReborn | 20e6ba4d2e61a47283747ba207a758e604fa89d9 | [
"BSD-3-Clause"
] | null | null | null | src/food.cpp | prinsij/RogueReborn | 20e6ba4d2e61a47283747ba207a758e604fa89d9 | [
"BSD-3-Clause"
] | null | null | null | src/food.cpp | prinsij/RogueReborn | 20e6ba4d2e61a47283747ba207a758e604fa89d9 | [
"BSD-3-Clause"
] | null | null | null | /**
* @file food.cpp
* @author Team Rogue++
* @date December 08, 2016
*
* @brief Member definitions for the Food class
*/
#include "include/coord.h"
#include "include/food.h"
#include "include/item.h"
#include "include/random.h"
Food::Food(Coord location, Item::Context context)
: Item(':', location, context, ... | 24.625 | 95 | 0.690355 | prinsij |
440559e3e29644adb9734a22294458b7efbc6715 | 4,229 | cpp | C++ | python/handwritten/geometry/Rot3.cpp | karamach/gtsam | 35f9b710163a1d14d8dc4fcf50b8dce6e0bf7e5b | [
"BSD-3-Clause"
] | 40 | 2018-04-23T02:03:40.000Z | 2022-02-09T14:41:03.000Z | trunk/python/handwritten/geometry/Rot3.cpp | shaolinbit/PPP-BayesTree | 6f469775277a1a33447bf4c19603c796c2c63c75 | [
"MIT"
] | 2 | 2019-01-02T15:03:54.000Z | 2021-11-23T03:04:04.000Z | trunk/python/handwritten/geometry/Rot3.cpp | shaolinbit/PPP-BayesTree | 6f469775277a1a33447bf4c19603c796c2c63c75 | [
"MIT"
] | 16 | 2018-05-18T05:59:00.000Z | 2022-03-07T13:51:18.000Z | /* ----------------------------------------------------------------------------
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
* Atlanta, Georgia 30332-0415
* All Rights Reserved
* Authors: Frank Dellaert, et al. (see THANKS for the full author list)
* See LICENSE for the license information
* ----... | 36.456897 | 200 | 0.641996 | karamach |
440aa7a009f8e2a62af872a157ed6468a3926321 | 3,814 | cc | C++ | y2014_bot3/output/motor_writer.cc | Ewpratten/frc_971_mirror | 3a8a0c4359f284d29547962c2b4c43d290d8065c | [
"BSD-2-Clause"
] | null | null | null | y2014_bot3/output/motor_writer.cc | Ewpratten/frc_971_mirror | 3a8a0c4359f284d29547962c2b4c43d290d8065c | [
"BSD-2-Clause"
] | null | null | null | y2014_bot3/output/motor_writer.cc | Ewpratten/frc_971_mirror | 3a8a0c4359f284d29547962c2b4c43d290d8065c | [
"BSD-2-Clause"
] | null | null | null | #include <stdio.h>
#include <string.h>
#include <unistd.h>
#include "aos/output/motor_output.h"
#include "aos/logging/logging.h"
#include "aos/init.h"
#include "aos/util/log_interval.h"
#include "aos/time/time.h"
#include "aos/logging/queue_logging.h"
#include "aos/controls/output_check.q.h"
#include "bot3/control_lo... | 31.00813 | 77 | 0.667278 | Ewpratten |
440c078334872159b62ad7668efd952d6af5bceb | 2,685 | cpp | C++ | Binary Search Trees/Check BT is BST or not 3.cpp | hidayat7z/Data-Structures-and-Algorithms | b78fc9c09b55f6ce9e92edeb48b5069792c4341b | [
"MIT"
] | 22 | 2020-09-13T15:12:50.000Z | 2021-01-29T08:29:57.000Z | Binary Search Trees/Check BT is BST or not 3.cpp | hidayat7z/Data-Structures-and-Algorithms | b78fc9c09b55f6ce9e92edeb48b5069792c4341b | [
"MIT"
] | null | null | null | Binary Search Trees/Check BT is BST or not 3.cpp | hidayat7z/Data-Structures-and-Algorithms | b78fc9c09b55f6ce9e92edeb48b5069792c4341b | [
"MIT"
] | 6 | 2020-09-13T15:34:38.000Z | 2021-01-29T08:30:01.000Z | /*
Input taken in the BST with same method as Binary Tree
*/
#include<iostream>
#include<queue>
using namespace std;
template<typename T>
class BinaryTreeNode
{
public:
T data;
BinaryTreeNode* left;
BinaryTreeNode* right;
BinaryTreeNode(T data)
{
this->data= data;
left= NU... | 17.664474 | 74 | 0.579516 | hidayat7z |
440c97e732155826204f90fb3ffbf0f3ee204cf7 | 2,668 | cpp | C++ | src/tests/hello_xr/d3d_common.cpp | chrdavis/OpenXR-SDK-Source | 304c28c2f534375b2fd2a7d5e43b50ddc76495e6 | [
"Apache-2.0"
] | 1 | 2020-03-25T03:47:02.000Z | 2020-03-25T03:47:02.000Z | src/tests/hello_xr/d3d_common.cpp | chrdavis/OpenXR-SDK-Source | 304c28c2f534375b2fd2a7d5e43b50ddc76495e6 | [
"Apache-2.0"
] | null | null | null | src/tests/hello_xr/d3d_common.cpp | chrdavis/OpenXR-SDK-Source | 304c28c2f534375b2fd2a7d5e43b50ddc76495e6 | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include "common.h"
#if defined(XR_USE_GRAPHICS_API_D3D11) || defined(XR_USE_GRAPHICS_API_D3D12)
#include <common/xr_linear.h>
#include <DirectXColors.h>
#include <D3Dcompiler.h>
#include "d3d_common.h"
using namespace Microsoft::WRL;
using namespace DirectX;
XMMATRIX XM_CALLCONV LoadXrPose(const ... | 39.235294 | 125 | 0.708396 | chrdavis |
4411db54c23103b2369bc4d42bf76f6d37b00cd8 | 2,289 | hpp | C++ | lib/SelbaWard/PieChart.hpp | BridgeFan/bridgefan-tbs-game | 062593cf3094cc6fe9858b5575dd76d020774698 | [
"MIT"
] | null | null | null | lib/SelbaWard/PieChart.hpp | BridgeFan/bridgefan-tbs-game | 062593cf3094cc6fe9858b5575dd76d020774698 | [
"MIT"
] | 1 | 2020-08-16T18:01:37.000Z | 2020-08-16T18:01:37.000Z | lib/SelbaWard/PieChart.hpp | BridgeFan/bridgefan-tbs-game | 062593cf3094cc6fe9858b5575dd76d020774698 | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////
//
// Selba Ward (https://github.com/Hapaxia/SelbaWard)
// --
//
// Pie Chart
//
// Copyright(c) 2015-2019 M.J.Silk
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held lia... | 24.094737 | 78 | 0.68152 | BridgeFan |
4412f332753945241e0008f90d7a093b46e3e773 | 442 | cpp | C++ | clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct.default/p8.cpp | mkinsner/llvm | 589d48844edb12cd357b3024248b93d64b6760bf | [
"Apache-2.0"
] | 2,338 | 2018-06-19T17:34:51.000Z | 2022-03-31T11:00:37.000Z | clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct.default/p8.cpp | mkinsner/llvm | 589d48844edb12cd357b3024248b93d64b6760bf | [
"Apache-2.0"
] | 3,740 | 2019-01-23T15:36:48.000Z | 2022-03-31T22:01:13.000Z | clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct.default/p8.cpp | mkinsner/llvm | 589d48844edb12cd357b3024248b93d64b6760bf | [
"Apache-2.0"
] | 500 | 2019-01-23T07:49:22.000Z | 2022-03-30T02:59:37.000Z | // RUN: %clang_cc1 -fsyntax-only -verify %s
class A {
void f(A* p = this) { } // expected-error{{invalid use of 'this'}}
void test();
};
void A::test() {
void g(int = this);
// expected-error@-1 {{cannot initialize a parameter of type 'int' with an rvalue of type 'A *'}}
// expected-note@-2 {{passing argum... | 27.625 | 99 | 0.626697 | mkinsner |
4415da814c141209ad4ec869f6e50a5dcb905fc0 | 179 | cpp | C++ | third-party/Empirical/tests/Evolve/World_iterator.cpp | koellingh/empirical-p53-simulator | aa6232f661e8fc65852ab6d3e809339557af521b | [
"MIT"
] | null | null | null | third-party/Empirical/tests/Evolve/World_iterator.cpp | koellingh/empirical-p53-simulator | aa6232f661e8fc65852ab6d3e809339557af521b | [
"MIT"
] | null | null | null | third-party/Empirical/tests/Evolve/World_iterator.cpp | koellingh/empirical-p53-simulator | aa6232f661e8fc65852ab6d3e809339557af521b | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN
#include "third-party/Catch/single_include/catch2/catch.hpp"
#include "emp/Evolve/World_iterator.hpp"
TEST_CASE("Test World_iterator", "[Evolve]")
{
} | 19.888889 | 60 | 0.776536 | koellingh |
4417001ac890b32726630402c98f71955543c4e2 | 915 | cpp | C++ | src/cpp/SbfMw.cpp | james-rank/sbf | f2b3ce8c4a324110a22cb880970d2a34bd22ef27 | [
"MIT"
] | null | null | null | src/cpp/SbfMw.cpp | james-rank/sbf | f2b3ce8c4a324110a22cb880970d2a34bd22ef27 | [
"MIT"
] | null | null | null | src/cpp/SbfMw.cpp | james-rank/sbf | f2b3ce8c4a324110a22cb880970d2a34bd22ef27 | [
"MIT"
] | null | null | null | #include "SbfMw.hpp"
neueda::SbfMw::SbfMw (SbfLog* log, SbfKeyValue* properties) :
mLog(log),
mProperties(properties)
{
mValue = sbfMw_create (log->getHandle(), properties->getHandle());
}
neueda::SbfMw::~SbfMw ()
{
if (getHandle () != NULL)
sbfMw_destroy (getHandle ());
}
sbfMw neueda::SbfMw... | 17.941176 | 70 | 0.64153 | james-rank |
44182530c71af2c4c5b5a8b4c8769dc98a8911cc | 410 | hpp | C++ | src/plugin/pcm/Decoder.hpp | media-io/plugins | 44de503eba18425e8592e9177b42921fbe2e5c5b | [
"MIT"
] | null | null | null | src/plugin/pcm/Decoder.hpp | media-io/plugins | 44de503eba18425e8592e9177b42921fbe2e5c5b | [
"MIT"
] | null | null | null | src/plugin/pcm/Decoder.hpp | media-io/plugins | 44de503eba18425e8592e9177b42921fbe2e5c5b | [
"MIT"
] | null | null | null | #ifndef _MEDIAIO_PLUGIN_PCM_DECODER_HPP_
#define _MEDIAIO_PLUGIN_PCM_DECODER_HPP_
#include <mediaio/api/decoder/decoder.h>
typedef void * opj_codec_t;
struct opj_dparameters;
class Decoder
{
public:
Decoder();
~Decoder();
MediaioStatus configure( const Metadata* parameters );
MediaioStatus decode(CodedData* un... | 16.4 | 75 | 0.790244 | media-io |
4418a7d1b0930aedfca9464f4d77d05ba47ef46b | 1,508 | cpp | C++ | Spades Game/Game/UI/NotificationItem.cpp | jmasterx/StemwaterSpades | 05e5d7c6d380d2f5986bd91269887f16c3e71962 | [
"Unlicense"
] | 6 | 2017-01-04T22:40:50.000Z | 2019-11-24T15:37:46.000Z | Spades Game/Game/UI/NotificationItem.cpp | jmasterx/StemwaterSpades | 05e5d7c6d380d2f5986bd91269887f16c3e71962 | [
"Unlicense"
] | 1 | 2016-09-18T19:10:01.000Z | 2017-08-04T23:53:38.000Z | Spades Game/Game/UI/NotificationItem.cpp | jmasterx/StemwaterSpades | 05e5d7c6d380d2f5986bd91269887f16c3e71962 | [
"Unlicense"
] | 2 | 2015-11-21T16:42:18.000Z | 2019-04-21T20:41:39.000Z | #include "Game/UI/NotificationItem.hpp"
namespace cge
{
NotificationItem::NotificationItem(void)
: m_notify(NOTIFY_NOT_SET),m_tableNo(-1)
{
setUsernameColor(agui::Color(0,0,0));
}
NotificationItem::~NotificationItem(void)
{
}
const std::string& NotificationItem::getFirstText() const
{
return m_firstText... | 17.741176 | 74 | 0.724138 | jmasterx |
44190ecdf839c7267ea30fcff5eead0b35e32028 | 9,731 | cpp | C++ | iceoryx_posh/source/roudi/roudi_cmd_line_parser.cpp | ijnek/iceoryx | 638b710fdbe5b39d58ecec3712cff0cea88c5f33 | [
"Apache-2.0"
] | 560 | 2021-01-09T11:09:16.000Z | 2022-03-29T15:55:08.000Z | iceoryx_posh/source/roudi/roudi_cmd_line_parser.cpp | ijnek/iceoryx | 638b710fdbe5b39d58ecec3712cff0cea88c5f33 | [
"Apache-2.0"
] | 779 | 2021-01-05T08:46:43.000Z | 2022-03-31T17:45:11.000Z | iceoryx_posh/source/roudi/roudi_cmd_line_parser.cpp | boschglobal/iceoryx | eb0256407e3cf0baed1efdee6f8eeacf4d3514da | [
"Apache-2.0"
] | 122 | 2021-01-11T02:06:26.000Z | 2022-03-31T20:00:26.000Z | // Copyright (c) 2020 by Robert Bosch GmbH, Apex.AI Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Un... | 43.441964 | 119 | 0.47138 | ijnek |
441ad7cd64cc977e9c907e9cb636d80c20a3c046 | 36,332 | cc | C++ | src/net/disk_cache/simple/simple_backend_impl.cc | Chilledheart/naiveproxy | 9d28da89b325a90d33add830f4202c8b17c7c3e3 | [
"BSD-3-Clause"
] | null | null | null | src/net/disk_cache/simple/simple_backend_impl.cc | Chilledheart/naiveproxy | 9d28da89b325a90d33add830f4202c8b17c7c3e3 | [
"BSD-3-Clause"
] | null | null | null | src/net/disk_cache/simple/simple_backend_impl.cc | Chilledheart/naiveproxy | 9d28da89b325a90d33add830f4202c8b17c7c3e3 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2013 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 "net/disk_cache/simple/simple_backend_impl.h"
#include <algorithm>
#include <cstdlib>
#include <functional>
#include <limits>
#include "bas... | 39.663755 | 80 | 0.70142 | Chilledheart |
441bfa9628c3045eb98ff61b53500e9b1c67241a | 500 | cpp | C++ | performance/ejercicio01/authentication.cpp | gerardogtn/Calidad-y-Pruebas-de-Software | ed338b5627a343b7dee366aaa36cd735f74e53af | [
"MIT"
] | null | null | null | performance/ejercicio01/authentication.cpp | gerardogtn/Calidad-y-Pruebas-de-Software | ed338b5627a343b7dee366aaa36cd735f74e53af | [
"MIT"
] | null | null | null | performance/ejercicio01/authentication.cpp | gerardogtn/Calidad-y-Pruebas-de-Software | ed338b5627a343b7dee366aaa36cd735f74e53af | [
"MIT"
] | null | null | null | // Copyright 2017 Gerardo Teruel
#include <cstdio>
#include <cstring>
// If you overflow temp, then you'd modify out variable. Thus getting a one,
// and indicating a valid authentication
int fun(char* pass) {
int out = 0;
char temp[8];
strcpy(temp, pass);
if (strcmp(temp, "1234567") == 0) {
out = 1;
}... | 17.857143 | 76 | 0.608 | gerardogtn |
441e9666264f525af9b608b19b74932f81900a6b | 3,466 | cc | C++ | pagespeed/opt/ads/ads_util.cc | arunvc/incubator-pagespeed-mod | 10cb54ab31c2b153a20b2e70e56f7b2dfe0dfc00 | [
"Apache-2.0"
] | 535 | 2015-04-08T20:39:06.000Z | 2018-01-04T03:19:47.000Z | pagespeed/opt/ads/ads_util.cc | pagespeed/modpagespeed | 6199d78ec7bbff506d497d880fbf0ac9e917c0aa | [
"MIT"
] | 672 | 2015-04-08T13:15:58.000Z | 2018-01-07T16:39:58.000Z | pagespeed/opt/ads/ads_util.cc | pagespeed/modpagespeed | 6199d78ec7bbff506d497d880fbf0ac9e917c0aa | [
"MIT"
] | 100 | 2018-01-08T11:49:19.000Z | 2022-02-13T05:53:04.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 ... | 33.980392 | 80 | 0.748702 | arunvc |
441f5ba748deb3bbb0cb5b1790b130fa8a2e51c6 | 522 | cpp | C++ | source/common/quploaddeletecommand.cpp | c6supper/json_serialize_deserialize_qt | c70e89056900835221309f7c54dcca2e9fefe498 | [
"Apache-2.0"
] | null | null | null | source/common/quploaddeletecommand.cpp | c6supper/json_serialize_deserialize_qt | c70e89056900835221309f7c54dcca2e9fefe498 | [
"Apache-2.0"
] | null | null | null | source/common/quploaddeletecommand.cpp | c6supper/json_serialize_deserialize_qt | c70e89056900835221309f7c54dcca2e9fefe498 | [
"Apache-2.0"
] | null | null | null | #include "quploaddeletecommand.h"
#include "qobjectfactory.h"
using namespace QRserver;
QObjectSelfRegisteration<QUploadDeleteCommand> registerQUploadDeleteCommand;
QUploadDeleteCommand::QUploadDeleteCommand(QObject *parent)
: QUploadCommand(parent)
{
}
QUploadDeleteCommand::QUploadDeleteCommand(QObject *parent... | 21.75 | 83 | 0.795019 | c6supper |
44213ad99d5c907952549fe9e5b7271ecfd4fdad | 478 | cpp | C++ | src/TREngine/Core/Render/RawShader.cpp | CXUtk/TRV2 | 945950012e2385aeb24e80bf5e876703445ba423 | [
"Apache-2.0"
] | null | null | null | src/TREngine/Core/Render/RawShader.cpp | CXUtk/TRV2 | 945950012e2385aeb24e80bf5e876703445ba423 | [
"Apache-2.0"
] | 15 | 2021-09-04T13:02:51.000Z | 2021-10-05T05:51:31.000Z | src/TREngine/Core/Render/RawShader.cpp | CXUtk/TRV2 | 945950012e2385aeb24e80bf5e876703445ba423 | [
"Apache-2.0"
] | null | null | null | #include "RawShader.h"
#include <Core/Utils/Utils.h>
#include <array>
TRV2_NAMESPACE_BEGIN
RawShader::RawShader(IGraphicsResourceManager* resourceManager, const char* code, ShaderType shaderType, const char* fileName)
: IGraphicsResource(resourceManager), _type(shaderType), _fileName(fileName)
{
_handle = r... | 26.555556 | 126 | 0.784519 | CXUtk |
44220366f6eaebe87faf674f6c2511a30e537fb2 | 10,182 | cpp | C++ | XVrII/src/aircraft/SsgB748.cpp | ryan1336/VRInsight-Xplane-Interface | 72e77d0f1f355350c5ec9f66783e8d0eb61c0449 | [
"MIT"
] | null | null | null | XVrII/src/aircraft/SsgB748.cpp | ryan1336/VRInsight-Xplane-Interface | 72e77d0f1f355350c5ec9f66783e8d0eb61c0449 | [
"MIT"
] | null | null | null | XVrII/src/aircraft/SsgB748.cpp | ryan1336/VRInsight-Xplane-Interface | 72e77d0f1f355350c5ec9f66783e8d0eb61c0449 | [
"MIT"
] | null | null | null | #include "SsgB748.h"
#include <XPLM/XPLMProcessing.h>
#include "logger.h"
#include <list>
#include "VRiCommPort.h"
//const char *SsgB748::LAM_B747_ND = "laminar/B747/nd/";
//const char *SsgB748::LAM_B747_EFIS = "laminar/B747/efis/";
//const char *SsgB748::LAM_B747_TOGGLE = "laminar/B747/toggle_switch/";
SsgB748::Ssg... | 29.427746 | 192 | 0.760067 | ryan1336 |
442365162689b70a872f4c11540530d3afcb31cb | 6,941 | cpp | C++ | examples/camera_example.cpp | alexandre-bernier/coro-eyes-sdk | b552bf32e51d2b22ddf71dbaaf75f08f47f230a9 | [
"BSD-3-Clause"
] | 1 | 2022-03-27T01:12:30.000Z | 2022-03-27T01:12:30.000Z | examples/camera_example.cpp | alexandre-bernier/coro_eyes_sdk | b552bf32e51d2b22ddf71dbaaf75f08f47f230a9 | [
"BSD-3-Clause"
] | null | null | null | examples/camera_example.cpp | alexandre-bernier/coro_eyes_sdk | b552bf32e51d2b22ddf71dbaaf75f08f47f230a9 | [
"BSD-3-Clause"
] | null | null | null | /** @file camera_example.cpp
* @brief Example showing how to use the camera api.
* @copyright BSD-3-Clause License
* @example camera_example.cpp
*/
#include <iostream>
#include "coro_eyes_sdk.h"
/**
* @brief Structure used as a callback argument.
*/
struct FrameInfo {
std::string cv_window_name; ///< Nam... | 22.318328 | 123 | 0.598185 | alexandre-bernier |
4423c37abc98fe337369a704d932fe8484285552 | 30,041 | cpp | C++ | plugins/ipmidirect/ipmi_con_lan.cpp | openhpi2/openhpi_apr25 | 720d4043124ac44d17715db4ffb735c623c08e38 | [
"BSD-3-Clause"
] | 5 | 2018-12-18T01:32:53.000Z | 2021-11-15T10:41:48.000Z | plugins/ipmidirect/ipmi_con_lan.cpp | openhpi2/openhpi_apr25 | 720d4043124ac44d17715db4ffb735c623c08e38 | [
"BSD-3-Clause"
] | 34 | 2018-05-11T21:31:33.000Z | 2021-01-12T07:13:46.000Z | plugins/ipmidirect/ipmi_con_lan.cpp | openhpi2/openhpi_apr25 | 720d4043124ac44d17715db4ffb735c623c08e38 | [
"BSD-3-Clause"
] | 8 | 2018-08-27T22:48:44.000Z | 2022-03-15T03:49:55.000Z | /*
*
* Copyright (c) 2003,2004 by FORCE Computers
* Copyright (c) 2005 by ESO Technologies.
*
* Note that this file is based on parts of OpenIPMI
* written by Corey Minyard <minyard@mvista.com>
* of MontaVista Software. Corey's code was helpful
* and many thanks go to him. He gave the permission
* to use this ... | 24.148714 | 94 | 0.562598 | openhpi2 |
44259b41eb61f86c0c7dde484327e9df1b7ead74 | 4,708 | hpp | C++ | core/src/api/BigInt.hpp | kodxana/lib-ledger-core | 96f04d378b7747e1b80b49da7ae637eb33b23678 | [
"MIT"
] | null | null | null | core/src/api/BigInt.hpp | kodxana/lib-ledger-core | 96f04d378b7747e1b80b49da7ae637eb33b23678 | [
"MIT"
] | null | null | null | core/src/api/BigInt.hpp | kodxana/lib-ledger-core | 96f04d378b7747e1b80b49da7ae637eb33b23678 | [
"MIT"
] | null | null | null | // AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from big_int.djinni
#ifndef DJINNI_GENERATED_BIGINT_HPP
#define DJINNI_GENERATED_BIGINT_HPP
#include <cstdint>
#include <memory>
#include <string>
#include <vector>
namespace ledger { namespace core { namespace api {
/** Immutable class represe... | 39.898305 | 140 | 0.681181 | kodxana |
4427607a6d61d2217340657e0e84bb15145faf4a | 5,216 | cpp | C++ | src/BlocksWorldExample.cpp | buele/pop | 34dd8d7d4d6ec7d8cd3546b83bb3c77c0b23667c | [
"MIT"
] | 2 | 2021-12-07T03:57:54.000Z | 2022-02-08T07:20:36.000Z | src/BlocksWorldExample.cpp | buele/pop | 34dd8d7d4d6ec7d8cd3546b83bb3c77c0b23667c | [
"MIT"
] | null | null | null | src/BlocksWorldExample.cpp | buele/pop | 34dd8d7d4d6ec7d8cd3546b83bb3c77c0b23667c | [
"MIT"
] | 1 | 2020-02-10T16:33:55.000Z | 2020-02-10T16:33:55.000Z | /*
* The MIT License
*
* Copyright 2017 buele.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... | 30.682353 | 86 | 0.66737 | buele |
442adbe163d82a859895194188910f721db32ea3 | 4,785 | cc | C++ | stats/rtcstatsreport_unittest.cc | imxiangpeng/webrtc | 8078c53c2f8ed487b1c6bbdf3d541f7a5884ed70 | [
"DOC",
"BSD-3-Clause"
] | 2 | 2019-09-10T03:51:29.000Z | 2022-03-17T02:49:27.000Z | stats/rtcstatsreport_unittest.cc | imxiangpeng/webrtc | 8078c53c2f8ed487b1c6bbdf3d541f7a5884ed70 | [
"DOC",
"BSD-3-Clause"
] | 1 | 2017-06-02T10:10:09.000Z | 2017-07-24T20:50:51.000Z | stats/rtcstatsreport_unittest.cc | imxiangpeng/webrtc | 8078c53c2f8ed487b1c6bbdf3d541f7a5884ed70 | [
"DOC",
"BSD-3-Clause"
] | 3 | 2019-05-29T13:26:26.000Z | 2019-12-19T11:39:33.000Z | /*
* Copyright 2016 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing ... | 35.183824 | 80 | 0.703239 | imxiangpeng |
442c7e8002da47505f832a4c1b84bc69ecddae3a | 846 | cpp | C++ | C++_Essential_Training/Chap03/bitfields.cpp | MarkWMavis/developer_practice | a10a11874454eb805e4cea8cbbdbc315c9791996 | [
"MIT"
] | 1 | 2020-07-20T15:28:50.000Z | 2020-07-20T15:28:50.000Z | C++_Essential_Training/Chap03/bitfields.cpp | MarkWMavis/developer_practice | a10a11874454eb805e4cea8cbbdbc315c9791996 | [
"MIT"
] | 1 | 2022-03-02T13:16:03.000Z | 2022-03-02T13:16:03.000Z | C++/LinkedInLearning/Exercise Files/Chap03/bitfields.cpp | Youngermaster/Learning-Programming-Languages | b94d3d85abc6c107877b11b42a3862d4aae8e3ee | [
"MIT"
] | null | null | null | // bitfields.cpp by Bill Weinman <http://bw.org/>
// updated 2020-06-24
#include <cstdio>
struct Prefs {
bool likesMusic : 1;
bool hasHair : 1;
bool hasInternet : 1;
bool hasDinosaur : 1;
unsigned int numberOfChildren : 4;
};
int main() {
Prefs homer;
homer.likesMusic = true;
homer.has... | 26.4375 | 62 | 0.640662 | MarkWMavis |
442e5307ae4de5ceb81b2384dbd56cd80b3caf7c | 138 | cpp | C++ | tests/test_default_arg.cpp | Time0o/fire-llvm | 5694116ff64ccc6e8f17a7220c1f3015b548173e | [
"MIT"
] | 23 | 2021-12-27T14:56:07.000Z | 2022-03-07T18:42:56.000Z | tests/test_default_arg.cpp | Time0o/fire-llvm | 5694116ff64ccc6e8f17a7220c1f3015b548173e | [
"MIT"
] | null | null | null | tests/test_default_arg.cpp | Time0o/fire-llvm | 5694116ff64ccc6e8f17a7220c1f3015b548173e | [
"MIT"
] | 2 | 2021-12-28T07:11:41.000Z | 2022-03-24T07:20:47.000Z | #include <fire-llvm/fire.hpp>
namespace {
int default_arg(int d = 0)
{
return d;
}
}
int main()
{
fire::fire_llvm(default_arg);
}
| 8.625 | 31 | 0.637681 | Time0o |
442f0685ce92721a6ab9079bab74c6dc481b16d0 | 936 | cpp | C++ | src/rally/rally.cpp | mpinto70/rally-clone-game | 04a48e2eef0212356deb14c6ae972df22f238220 | [
"MIT"
] | null | null | null | src/rally/rally.cpp | mpinto70/rally-clone-game | 04a48e2eef0212356deb14c6ae972df22f238220 | [
"MIT"
] | null | null | null | src/rally/rally.cpp | mpinto70/rally-clone-game | 04a48e2eef0212356deb14c6ae972df22f238220 | [
"MIT"
] | null | null | null | #include "game/Controller.h"
#include "gamelib/allegro/GameLib.h"
#include "util/Exception.h"
#include <iostream>
#include <memory>
namespace {
constexpr unsigned int UTIL_W = 640, UTIL_H = 480;
}
std::string getRallyDir() {
const char* home = getenv("HOME");
if (home == nullptr) {
throw util::Except... | 26 | 86 | 0.602564 | mpinto70 |
442f22207ddcc4d241a3f68e3803040d6b2d4059 | 2,192 | cpp | C++ | Core/GDCore/IDE/PlatformLoader.cpp | psydox/GDevelop | cf462f6c6eede34faa5282158c2bd6a1b784d1bc | [
"MIT"
] | 2,990 | 2018-09-10T19:49:49.000Z | 2022-03-31T05:01:42.000Z | Core/GDCore/IDE/PlatformLoader.cpp | TheGemDev/GDevelop | 6350b035e3f6ce6ecb985f02b1a591927dffe7e2 | [
"MIT"
] | 2,614 | 2018-09-09T21:37:47.000Z | 2022-03-31T22:09:25.000Z | Core/GDCore/IDE/PlatformLoader.cpp | TheGemDev/GDevelop | 6350b035e3f6ce6ecb985f02b1a591927dffe7e2 | [
"MIT"
] | 566 | 2018-09-11T17:48:13.000Z | 2022-03-27T07:59:48.000Z | /*
* GDevelop Core
* Copyright 2008-2016 Florian Rival (Florian.Rival@gmail.com). All rights
* reserved. This project is released under the MIT License.
*/
#include "GDCore/IDE/PlatformLoader.h"
#include "GDCore/CommonTools.h"
#include "GDCore/Extensions/Platform.h"
#include "GDCore/IDE/ExtensionsLoader.h... | 33.212121 | 77 | 0.656022 | psydox |
4434004cb2a135e2962d0cd355d31585af27bfe7 | 1,402 | cpp | C++ | codeforce3/514D. R2D2 and Droid Army.cpp | khaled-farouk/My_problem_solving_solutions | 46ed6481fc9b424d0714bc717cd0ba050a6638ef | [
"MIT"
] | null | null | null | codeforce3/514D. R2D2 and Droid Army.cpp | khaled-farouk/My_problem_solving_solutions | 46ed6481fc9b424d0714bc717cd0ba050a6638ef | [
"MIT"
] | null | null | null | codeforce3/514D. R2D2 and Droid Army.cpp | khaled-farouk/My_problem_solving_solutions | 46ed6481fc9b424d0714bc717cd0ba050a6638ef | [
"MIT"
] | null | null | null | /*
Idea:
- Using Segment tree to calculate the maximum in range.
- Then using Two pointers to calculate the maximum segment.
*/
#include <bits/stdc++.h>
using namespace std;
int const N = 1e5 + 10;
int n, m, k, a[N][6], sum[N], seg[4 * N][6];
void build(int at, int l, int r) {
if(l == r) {
for(int i = 1; i ... | 17.308642 | 64 | 0.442225 | khaled-farouk |
44368b0c2549b557d5d84f1863103f09e2ca90a3 | 3,499 | hpp | C++ | include/eagine/shapes/value_tree.hpp | matus-chochlik/eagine-shapes | d77a5e92517771a0bcdc409668bae4d274115e84 | [
"BSL-1.0"
] | null | null | null | include/eagine/shapes/value_tree.hpp | matus-chochlik/eagine-shapes | d77a5e92517771a0bcdc409668bae4d274115e84 | [
"BSL-1.0"
] | null | null | null | include/eagine/shapes/value_tree.hpp | matus-chochlik/eagine-shapes | d77a5e92517771a0bcdc409668bae4d274115e84 | [
"BSL-1.0"
] | null | null | null | /// @file
///
/// Copyright Matus Chochlik.
/// 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
///
#ifndef EAGINE_SHAPES_VALUE_TREE_HPP
#define EAGINE_SHAPES_VALUE_TREE_HPP
#include "config/basic.hpp"
#include "... | 34.303922 | 81 | 0.707631 | matus-chochlik |
4437a1d3ef26e66b7eb504af8c42de527c9ba7d2 | 7,612 | cpp | C++ | Studies/Graphics/OpenGL/src/main.cpp | iota97/Misc | fa72d84f0f63d4f5f30c538dba0bf97834018039 | [
"MIT"
] | 1 | 2019-05-09T09:54:04.000Z | 2019-05-09T09:54:04.000Z | Studies/Graphics/OpenGL/src/main.cpp | iota97/Misc | fa72d84f0f63d4f5f30c538dba0bf97834018039 | [
"MIT"
] | null | null | null | Studies/Graphics/OpenGL/src/main.cpp | iota97/Misc | fa72d84f0f63d4f5f30c538dba0bf97834018039 | [
"MIT"
] | null | null | null | #include "GPU/glad/glad.h"
#include "GPU/stb_image/stb_image.h"
#include "GPU/Shader.h"
#include "GPU/Camera.h"
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <GLFW/glfw3.h>
#include <stdio.h>
void framebuffer_size_callback(GLFWwindow* window, int width, int hei... | 30.943089 | 112 | 0.65515 | iota97 |
443815f88fead02b7458e81e0e3a88f1fbbe35b2 | 1,192 | hpp | C++ | examples/platformer/src/inc/game.hpp | YeyaSwizaw/teabag | 20a44414a6cf628426b17651f59d92c4455f312f | [
"Apache-2.0"
] | null | null | null | examples/platformer/src/inc/game.hpp | YeyaSwizaw/teabag | 20a44414a6cf628426b17651f59d92c4455f312f | [
"Apache-2.0"
] | null | null | null | examples/platformer/src/inc/game.hpp | YeyaSwizaw/teabag | 20a44414a6cf628426b17651f59d92c4455f312f | [
"Apache-2.0"
] | null | null | null | #ifndef PLATFORMER_GAME_HPP
#define PLATFORMER_GAME_HPP
#include "teabag/game.hpp"
#include "teabag/collision.hpp"
#include <string>
#include <functional>
#include <algorithm>
#include <iostream>
#include <unordered_set>
#include <SFML/Window.hpp>
class Game {
public:
void run();
private:
static const floa... | 20.20339 | 60 | 0.69547 | YeyaSwizaw |
44388c959bd10eee21482fce40b905f2cf0c1f9c | 8,435 | cpp | C++ | packages/peripheralsInterface/src/IMU/Yocto3DModule.cpp | Falcons-Robocup/code | 2281a8569e7f11cbd3238b7cc7341c09e2e16249 | [
"Apache-2.0"
] | 2 | 2021-01-15T13:27:19.000Z | 2021-08-04T08:40:52.000Z | packages/peripheralsInterface/src/IMU/Yocto3DModule.cpp | Falcons-Robocup/code | 2281a8569e7f11cbd3238b7cc7341c09e2e16249 | [
"Apache-2.0"
] | null | null | null | packages/peripheralsInterface/src/IMU/Yocto3DModule.cpp | Falcons-Robocup/code | 2281a8569e7f11cbd3238b7cc7341c09e2e16249 | [
"Apache-2.0"
] | 5 | 2018-05-01T10:39:31.000Z | 2022-03-25T03:02:35.000Z | // Copyright 2016 Edwin (Falcons)
// SPDX-License-Identifier: Apache-2.0
/*
* Yocto3DModule.cpp
*
* Created on: 16 feb. 2016
* Author: Edwin Schreuder
*/
#include <exception>
#include <iostream>
#include <cmath>
#include <string>
#include "int/IMU/Yocto3DModule.hpp"
#include "tf/LinearMath/Vector3.h"
#in... | 29.186851 | 117 | 0.71725 | Falcons-Robocup |
443a6805bbd1ab9b0f2cf2b6e36ccd63ca2569d2 | 1,530 | cpp | C++ | src/brain/util/tf_session_entity/tf_session_entity_io.cpp | 17zhangw/peloton | 484d76df9344cb5c153a2c361c5d5018912d4cf4 | [
"Apache-2.0"
] | 3 | 2018-01-08T01:06:17.000Z | 2019-06-17T23:14:36.000Z | src/brain/util/tf_session_entity/tf_session_entity_io.cpp | 17zhangw/peloton | 484d76df9344cb5c153a2c361c5d5018912d4cf4 | [
"Apache-2.0"
] | 1 | 2017-04-04T17:03:59.000Z | 2017-04-04T17:03:59.000Z | src/brain/util/tf_session_entity/tf_session_entity_io.cpp | 17zhangw/peloton | 484d76df9344cb5c153a2c361c5d5018912d4cf4 | [
"Apache-2.0"
] | 3 | 2018-02-25T23:30:33.000Z | 2018-04-08T10:11:42.000Z | //===----------------------------------------------------------------------===//
//
// Peloton
//
// tf_session_entity_io.cpp
//
// Identification: src/brain/util/tf_session_entity/tf_session_entity_io.cpp
//
// Copyright (c) 2015-2018, Carnegie Mellon University Database Group
//
//===---------... | 30 | 80 | 0.643137 | 17zhangw |