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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
89fd6fa89e947f387464f62ff992561bb592573a | 1,660 | cpp | C++ | chapter18/purrForAllMammal13.cpp | not-sponsored/Sams-Cpp-in-24hrs-Exercises | 2e63e2ca31f5309cc1d593f29c8b47037be150fb | [
"Fair"
] | 2 | 2022-01-08T03:31:25.000Z | 2022-03-09T01:21:54.000Z | chapter18/purrForAllMammal13.cpp | not-sponsored/Sams-Cpp-in-24hrs-Exercises | 2e63e2ca31f5309cc1d593f29c8b47037be150fb | [
"Fair"
] | null | null | null | chapter18/purrForAllMammal13.cpp | not-sponsored/Sams-Cpp-in-24hrs-Exercises | 2e63e2ca31f5309cc1d593f29c8b47037be150fb | [
"Fair"
] | 1 | 2022-03-09T01:26:01.000Z | 2022-03-09T01:26:01.000Z | /*********************************************************
*
* Answer to exercise 1 in chapter 18
*
* Modified 18.5 Sams Teach Yourself C++ in 24 Hours by Rogers Cadenhead
* and Jesse Liberty
*
* Somehow, the dynamic cast appears to work and purr() is called regardless
* if the Mammal is actually a Cat. So it fails ... | 19.761905 | 75 | 0.54759 | not-sponsored |
d600dea9b75219920534179fafb08bd200957a2a | 859 | cpp | C++ | src/modules/lib/WindowPreferencesType.cpp | Thorsten-Geppert/Warehouse | b064e5b422d0b484ca702cc4433cbda90f40e009 | [
"BSD-3-Clause"
] | null | null | null | src/modules/lib/WindowPreferencesType.cpp | Thorsten-Geppert/Warehouse | b064e5b422d0b484ca702cc4433cbda90f40e009 | [
"BSD-3-Clause"
] | null | null | null | src/modules/lib/WindowPreferencesType.cpp | Thorsten-Geppert/Warehouse | b064e5b422d0b484ca702cc4433cbda90f40e009 | [
"BSD-3-Clause"
] | null | null | null | #include "WindowPreferencesType.h"
void WindowPreferencesType::SetSize(const wxSize &size) {
this->size = size;
}
void WindowPreferencesType::SetSize(const int width, const int height) {
this->size = wxSize(width, height);
}
wxSize WindowPreferencesType::GetSize() const {
return size;
}
void WindowPreferencesTy... | 22.605263 | 72 | 0.724098 | Thorsten-Geppert |
d605180119604473436bf1c43a587259c5ab063b | 3,467 | cpp | C++ | collection/cp/bcw_codebook-master/Contest/ASC38/pF.cpp | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | 1 | 2019-03-24T13:12:01.000Z | 2019-03-24T13:12:01.000Z | collection/cp/bcw_codebook-master/Contest/ASC38/pF.cpp | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | null | null | null | collection/cp/bcw_codebook-master/Contest/ASC38/pF.cpp | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | null | null | null | #include<bits/stdc++.h>
#include<unistd.h>
using namespace std;
#define FZ(n) memset((n),0,sizeof(n))
#define FMO(n) memset((n),-1,sizeof(n))
#define F first
#define S second
#define PB push_back
#define ALL(x) begin(x),end(x)
#define SZ(x) ((int)(x).size())
#define IOS ios_base::sync_with_stdio(0); cin.tie(0)
#ifdef O... | 17.688776 | 54 | 0.534756 | daemonslayer |
d605ce279eafa590152236ce7bc86eaccd9f24a0 | 4,831 | cpp | C++ | Src/sound/SoundPlayerPool.cpp | ericblade/luna-sysmgr | 82d5d7ced4ba21d3802eb2c8ae063236b6562331 | [
"Apache-2.0"
] | 3 | 2018-11-16T14:51:17.000Z | 2019-11-21T10:55:24.000Z | Src/sound/SoundPlayerPool.cpp | penk/luna-sysmgr | 60c7056a734cdb55a718507f3a739839c9d74edf | [
"Apache-2.0"
] | 1 | 2021-02-20T13:12:15.000Z | 2021-02-20T13:12:15.000Z | Src/sound/SoundPlayerPool.cpp | ericblade/luna-sysmgr | 82d5d7ced4ba21d3802eb2c8ae063236b6562331 | [
"Apache-2.0"
] | null | null | null | /* @@@LICENSE
*
* Copyright (c) 2008-2012 Hewlett-Packard Development Company, L.P.
*
* 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
*
* Unl... | 23.004762 | 95 | 0.700683 | ericblade |
d609dc7e2a977550b6fdeaeafaf7f4b0e60652e6 | 395 | cpp | C++ | 005_codechef/1_Easy/progB20_Splitting_candies.cpp | Sahil1515/coding | 2bd2a2257c8cac5a5c00b37e79bbb68a24e186d4 | [
"RSA-MD"
] | null | null | null | 005_codechef/1_Easy/progB20_Splitting_candies.cpp | Sahil1515/coding | 2bd2a2257c8cac5a5c00b37e79bbb68a24e186d4 | [
"RSA-MD"
] | null | null | null | 005_codechef/1_Easy/progB20_Splitting_candies.cpp | Sahil1515/coding | 2bd2a2257c8cac5a5c00b37e79bbb68a24e186d4 | [
"RSA-MD"
] | null | null | null | #include <stdio.h>
int main(void)
{
// your code goes here
int t;
scanf("%d", &t);
while (t != 0)
{
long int a, b;
long int stu = 0;
long int teac = 0;
scanf("%ld%ld", &a, &b);
if (b == 0)
{
teac = a;
}
else
{
stu = a / b;
teac = a % b;
}
printf("%ld %ld\n", stu, teac);
t--;
}
... | 9.634146 | 33 | 0.443038 | Sahil1515 |
d60a28e235d70c4e0ba79013915aed2e71dca6dc | 3,077 | cxx | C++ | examples/particle_advection/ParticleAdvection.cxx | yisyuanliou/VTK-m | cc483c8c2319a78b58b3ab849da8ca448e896220 | [
"BSD-3-Clause"
] | 1 | 2021-07-21T07:15:44.000Z | 2021-07-21T07:15:44.000Z | examples/particle_advection/ParticleAdvection.cxx | yisyuanliou/VTK-m | cc483c8c2319a78b58b3ab849da8ca448e896220 | [
"BSD-3-Clause"
] | null | null | null | examples/particle_advection/ParticleAdvection.cxx | yisyuanliou/VTK-m | cc483c8c2319a78b58b3ab849da8ca448e896220 | [
"BSD-3-Clause"
] | null | null | null | //============================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURP... | 33.813187 | 97 | 0.648684 | yisyuanliou |
d611412ad071de87aa25b1aebe142691e723a33d | 64 | cpp | C++ | src/cxxperfcounter/MetricRegistry.cpp | bigc2000/cxxperfcounter | 827fbf87a5fb594c1b3f0dbc9bdde215e8627350 | [
"MIT"
] | null | null | null | src/cxxperfcounter/MetricRegistry.cpp | bigc2000/cxxperfcounter | 827fbf87a5fb594c1b3f0dbc9bdde215e8627350 | [
"MIT"
] | null | null | null | src/cxxperfcounter/MetricRegistry.cpp | bigc2000/cxxperfcounter | 827fbf87a5fb594c1b3f0dbc9bdde215e8627350 | [
"MIT"
] | null | null | null | //
// Created by wx on 18-8-11.
//
#include "MetricRegistry.h"
| 10.666667 | 28 | 0.625 | bigc2000 |
d61a0f64c65d4fac738adf5370ce84207009e02b | 4,685 | cpp | C++ | libs/zswagcl/src/zsr-client.cpp | Klebert-Engineering/zswag | 39c63bd4d2c4be5e95ddcc6f4573022dac9924e5 | [
"BSD-3-Clause"
] | 8 | 2021-03-17T01:41:58.000Z | 2022-02-22T13:26:13.000Z | libs/zswagcl/src/zsr-client.cpp | Klebert-Engineering/zswag | 39c63bd4d2c4be5e95ddcc6f4573022dac9924e5 | [
"BSD-3-Clause"
] | 38 | 2020-05-04T08:57:40.000Z | 2022-02-21T11:22:57.000Z | libs/zswagcl/src/zsr-client.cpp | Klebert-Engineering/zswag | 39c63bd4d2c4be5e95ddcc6f4573022dac9924e5 | [
"BSD-3-Clause"
] | 4 | 2020-06-03T15:07:44.000Z | 2021-10-04T07:55:39.000Z | #include "zsr-client.hpp"
#include <zsr/find.hpp>
#include <zsr/introspectable.hpp>
#include <cassert>
#include "stx/format.h"
namespace zswagcl
{
ZsrClient::ZsrClient(zswagcl::OpenAPIConfig config,
std::unique_ptr<httpcl::IHttpClient> client,
httpcl::Config httpConfig)
... | 28.919753 | 132 | 0.5746 | Klebert-Engineering |
d61cc7eb1000b561be5b254c8daff0cf01066ca9 | 26 | cpp | C++ | llarp/link_layer.cpp | KeeJef/loki-network | f5dbbaf832d11b88d351e3de7ab584465a28f6bf | [
"Zlib"
] | null | null | null | llarp/link_layer.cpp | KeeJef/loki-network | f5dbbaf832d11b88d351e3de7ab584465a28f6bf | [
"Zlib"
] | null | null | null | llarp/link_layer.cpp | KeeJef/loki-network | f5dbbaf832d11b88d351e3de7ab584465a28f6bf | [
"Zlib"
] | null | null | null | #include <link_layer.hpp>
| 13 | 25 | 0.769231 | KeeJef |
d625f5723d65d8618f7c6e03d980b741ecdd84ea | 9,344 | cpp | C++ | raytracer.cpp | ShadowMitia/raytracer-upsud | 4ac6ee21959438b5ee84612777b97ec6b7749820 | [
"MIT"
] | 1 | 2022-01-19T07:03:05.000Z | 2022-01-19T07:03:05.000Z | raytracer.cpp | ShadowMitia/raytracer-upsud | 4ac6ee21959438b5ee84612777b97ec6b7749820 | [
"MIT"
] | null | null | null | raytracer.cpp | ShadowMitia/raytracer-upsud | 4ac6ee21959438b5ee84612777b97ec6b7749820 | [
"MIT"
] | null | null | null | //
// Framework for a raytracer
// File: raytracer.cpp
//
// Created for the Computer Science course "Introduction Computer Graphics"
// taught at the University of Groningen by Tobias Isenberg.
//
// Author: Maarten Everts
//
// This framework is inspired by and uses code of the raytracer framework of
// Bert F... | 25.955556 | 116 | 0.583369 | ShadowMitia |
d62c2bbd83902ad83217fd0dc50816675632f65b | 3,746 | cpp | C++ | src/ReactNative/SDK/Manifest/ManifestRuntimeLibrary.cpp | microsoft/continuity | 8f65d165444b7f4cf3b37f2f239938b1d1094294 | [
"MIT"
] | 6 | 2020-03-06T00:06:38.000Z | 2021-09-30T00:14:24.000Z | src/ReactNative/SDK/Manifest/ManifestRuntimeLibrary.cpp | microsoft/continuity | 8f65d165444b7f4cf3b37f2f239938b1d1094294 | [
"MIT"
] | 8 | 2020-03-17T08:36:08.000Z | 2020-09-15T22:21:25.000Z | src/ReactNative/SDK/Manifest/ManifestRuntimeLibrary.cpp | microsoft/continuity | 8f65d165444b7f4cf3b37f2f239938b1d1094294 | [
"MIT"
] | 5 | 2020-04-09T01:53:15.000Z | 2020-12-16T11:47:22.000Z | #include "DynamicReader.h"
#include "ManifestRuntimeLibrary.h"
namespace Microsoft::ReactNative
{
constexpr const char* const c_RuntimeLibraryNameProperty = "name";
constexpr const char* const c_RuntimeLibraryPathProperty = "path";
ManifestRuntimeLibrary::ManifestRuntimeLibrary(std::string&& name) noexcept
: _... | 27.144928 | 95 | 0.656434 | microsoft |
d62d6e850b3e84a22b12bc11f60c44510ad5e941 | 3,555 | cpp | C++ | code/tools/gtkradiant/plugins/brushexport/plugin.cpp | raynorpat/xreal | 2fcbf9179fa22dc6e808bb65b879ac2ee7616ebd | [
"BSD-3-Clause"
] | 11 | 2016-06-03T07:46:15.000Z | 2021-09-09T19:35:32.000Z | code/tools/gtkradiant/plugins/brushexport/plugin.cpp | raynorpat/xreal | 2fcbf9179fa22dc6e808bb65b879ac2ee7616ebd | [
"BSD-3-Clause"
] | 1 | 2016-10-14T23:06:19.000Z | 2016-10-14T23:06:19.000Z | code/tools/gtkradiant/plugins/brushexport/plugin.cpp | raynorpat/xreal | 2fcbf9179fa22dc6e808bb65b879ac2ee7616ebd | [
"BSD-3-Clause"
] | 5 | 2016-10-13T04:43:58.000Z | 2019-08-24T14:03:35.000Z | /*
Copyright (C) 2006, Thomas Nitschke.
All Rights Reserved.
This file is part of GtkRadiant.
GtkRadiant is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(... | 27.773438 | 123 | 0.755837 | raynorpat |
d62ff8a071bd1e679752ca42bd679f9e57ec8a70 | 3,985 | cpp | C++ | Level.cpp | georgelam6/TinyRoguelike | ce7592851b8b39ae598799a7bad742e49bd8e125 | [
"MIT"
] | null | null | null | Level.cpp | georgelam6/TinyRoguelike | ce7592851b8b39ae598799a7bad742e49bd8e125 | [
"MIT"
] | null | null | null | Level.cpp | georgelam6/TinyRoguelike | ce7592851b8b39ae598799a7bad742e49bd8e125 | [
"MIT"
] | null | null | null | #include "Level.h"
#include "globals.h"
#include <iostream>
#include <ctime>
#include <cstdlib>
Level::Level() {}
Level::Level(SDL_Texture* spritesheet)
{
this->CreateLevel();
this->image = spritesheet;
this->wallSrcRect = { 16, 0, 8, 8 };
this->enemySrcRect = { 8, 0, 8, 8 };
this->stairSrcRect = { 25, 0, 8, 8... | 22.26257 | 139 | 0.597742 | georgelam6 |
d6304268ad92ff3b0d548318336ee52ef9d7b19e | 18,011 | cpp | C++ | master/core/third/cxxtools/src/string.cpp | importlib/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | 4 | 2017-12-04T08:22:48.000Z | 2019-10-26T21:44:59.000Z | master/core/third/cxxtools/src/string.cpp | isuhao/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | null | null | null | master/core/third/cxxtools/src/string.cpp | isuhao/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | 4 | 2017-12-04T08:22:49.000Z | 2018-12-27T03:20:31.000Z | /*
* Copyright (C) 2004-2007 Marc Boris Duerner
* Copyright (C) 2011 Tommi Maekitalo
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at ... | 23.855629 | 136 | 0.589251 | importlib |
d6319c1a730b8d1ecc51a5182ef7749c0b2c0669 | 256 | cpp | C++ | LeetCode/C++/0124._Binary_Tree_Maximum_Path_Sum/example.cpp | icgw/LeetCode | cb70ca87aa4604d1aec83d4224b3489eacebba75 | [
"MIT"
] | 4 | 2018-09-12T09:32:17.000Z | 2018-12-06T03:17:38.000Z | LeetCode/C++/0124._Binary_Tree_Maximum_Path_Sum/example.cpp | icgw/algorithm | cb70ca87aa4604d1aec83d4224b3489eacebba75 | [
"MIT"
] | null | null | null | LeetCode/C++/0124._Binary_Tree_Maximum_Path_Sum/example.cpp | icgw/algorithm | cb70ca87aa4604d1aec83d4224b3489eacebba75 | [
"MIT"
] | null | null | null | #include <iostream>
#include "solution.hpp"
void run_example() {
Solution s;
std::cout << s.maxPathSum(stringToTreeNode("[1, 2, 3]")) << std::endl;
std::cout << s.maxPathSum(stringToTreeNode("[-10, 9, 20, null, null, 15, 7]")) << std::endl;
}
| 28.444444 | 96 | 0.617188 | icgw |
d636df85302e5055264d14e6483465a79af74bb6 | 1,600 | cpp | C++ | 02 Arrays and Vectors/Advanced/pairSum.cpp | akritisneh/OnAndOn | a14f964c14d6a7a5fbef43db99f61a357b1f52f8 | [
"MIT"
] | 13 | 2021-10-05T15:50:21.000Z | 2022-03-04T19:43:18.000Z | 02 Arrays and Vectors/Advanced/pairSum.cpp | akritisneh/OnAndOn | a14f964c14d6a7a5fbef43db99f61a357b1f52f8 | [
"MIT"
] | 18 | 2021-10-05T14:43:14.000Z | 2021-10-21T04:19:34.000Z | 02 Arrays and Vectors/Advanced/pairSum.cpp | akritisneh/OnAndOn | a14f964c14d6a7a5fbef43db99f61a357b1f52f8 | [
"MIT"
] | 21 | 2021-10-05T14:34:25.000Z | 2021-10-17T09:07:46.000Z | /*Given an array containing N integers and a number S denoting a target sum.
Find two distinct integers that can pair up to form target sum.
Let us assume there will be only one such pair.
Input:
array = [10,5,2,3,-6,9,11]
Output
[10,-6]
Approach 1 - Brute Force
Comparing every digit from all other digits
Time Complexi... | 23.529412 | 99 | 0.678125 | akritisneh |
d637eb51ebfb6c7e4cfab281c3819a07637f9fc8 | 3,361 | cpp | C++ | src/source/data structures/MeshStructures.cpp | Gregjksmith/Global-Illumination | c8a2c98f3f9b810df18c49956e723a2df9b27a40 | [
"MIT"
] | null | null | null | src/source/data structures/MeshStructures.cpp | Gregjksmith/Global-Illumination | c8a2c98f3f9b810df18c49956e723a2df9b27a40 | [
"MIT"
] | null | null | null | src/source/data structures/MeshStructures.cpp | Gregjksmith/Global-Illumination | c8a2c98f3f9b810df18c49956e723a2df9b27a40 | [
"MIT"
] | null | null | null | #include "data structures\MeshStructures.h"
#include <cstdlib>
#include <typeinfo>
#include <cmath>
#include <GL\glew.h>
#include <stdio.h>
#include <ctime>
Vertex::Vertex()
{
}
Vertex::Vertex(GLfloat x, GLfloat y, GLfloat z)
{
pos[0] = x;
pos[1] = y;
pos[2] = z;
}
TexCoord::TexCoord()
{
}
... | 22.557047 | 135 | 0.545968 | Gregjksmith |
d6391ca730108e83bbb6b021de0926d129f6634f | 775 | cpp | C++ | Camion.cpp | dennisalejandro/progra3_Lab4_DennisChirinos | 5f647e58578b7fd9e4ef17afd66e2a0f493b6d53 | [
"MIT"
] | null | null | null | Camion.cpp | dennisalejandro/progra3_Lab4_DennisChirinos | 5f647e58578b7fd9e4ef17afd66e2a0f493b6d53 | [
"MIT"
] | null | null | null | Camion.cpp | dennisalejandro/progra3_Lab4_DennisChirinos | 5f647e58578b7fd9e4ef17afd66e2a0f493b6d53 | [
"MIT"
] | null | null | null | #include <stdlib.h>
#include <iostream>
#include <string>
#include "Bicicleta.h"
#include "Llanta.h"
#include "Camion.h"
using namespace std;
Camion::Camion(int n){
setSize(n);
}
void Camion::setSize(int n) {
int width = 0;
int length = 0;
width = n;
if ((n % 4)==0) {
length = n + (0.75*n);
} else if ((n % 2)==0... | 18.023256 | 44 | 0.607742 | dennisalejandro |
d63eb1d2480e3b24310062b982d993c82b4a049d | 2,838 | cpp | C++ | src/net/NAT64Adapter.cpp | carlbrown/scraps | 78925a738540415ec04b9cbe23cb319421f44978 | [
"Apache-2.0"
] | null | null | null | src/net/NAT64Adapter.cpp | carlbrown/scraps | 78925a738540415ec04b9cbe23cb319421f44978 | [
"Apache-2.0"
] | null | null | null | src/net/NAT64Adapter.cpp | carlbrown/scraps | 78925a738540415ec04b9cbe23cb319421f44978 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2016 BitTorrent Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 35.475 | 127 | 0.692389 | carlbrown |
d6418fb95bc1813c5927848aa5e5a8c71a7d427e | 313 | hpp | C++ | include/partition.hpp | justcppdev/rb_tree | 353ab0c0e07043df8e90d7cd0ae45ff753a461e5 | [
"MIT"
] | null | null | null | include/partition.hpp | justcppdev/rb_tree | 353ab0c0e07043df8e90d7cd0ae45ff753a461e5 | [
"MIT"
] | null | null | null | include/partition.hpp | justcppdev/rb_tree | 353ab0c0e07043df8e90d7cd0ae45ff753a461e5 | [
"MIT"
] | null | null | null | #ifndef PARTITION_HPP
#define PARTITION_HPP
template <typename _Iterator>
struct range_t
{
_Iterator begin;
typename _Iterator::difference_type size;
};
template <typename _Iterator>
struct parition_t
{
range_t<_Iterator> less;
range_t<_Iterator> equal;
range_t<_Iterator> great;
};
#endif
| 15.65 | 45 | 0.747604 | justcppdev |
d643f59f5c8410069c11f0d38683a32959f60473 | 3,853 | cpp | C++ | src/Source Code/MO_Sound.cpp | MayKoder/TFG-Miquel_Suau_Gonzalez | c0d0a7a71a709ec3514c9ff20be272ac9e66d1e2 | [
"Apache-2.0"
] | null | null | null | src/Source Code/MO_Sound.cpp | MayKoder/TFG-Miquel_Suau_Gonzalez | c0d0a7a71a709ec3514c9ff20be272ac9e66d1e2 | [
"Apache-2.0"
] | null | null | null | src/Source Code/MO_Sound.cpp | MayKoder/TFG-Miquel_Suau_Gonzalez | c0d0a7a71a709ec3514c9ff20be272ac9e66d1e2 | [
"Apache-2.0"
] | null | null | null | #include "MO_Sound.h"
#include <stdlib.h>
#include <assert.h>
#include <inttypes.h>
#include <limits.h>
#include <stdio.h>
#include "sndfile/include/sndfile.h"
#include "OpenAL/include/AL/al.h"
#include "OpenAL/include/AL/alc.h"
#include "OpenAL/include/AL/alext.h"
#include "alhelpers.h"
#pragma comment (lib, "sndf... | 23.493902 | 129 | 0.680768 | MayKoder |
d64484cd689b5287dca8b4dff6135138fb411fe7 | 2,762 | cpp | C++ | akwarium/aquarium.cpp | matis11/-CG-Aquarium | d78556f01288719112f25ce510cf53f88efbfd62 | [
"MIT"
] | null | null | null | akwarium/aquarium.cpp | matis11/-CG-Aquarium | d78556f01288719112f25ce510cf53f88efbfd62 | [
"MIT"
] | null | null | null | akwarium/aquarium.cpp | matis11/-CG-Aquarium | d78556f01288719112f25ce510cf53f88efbfd62 | [
"MIT"
] | null | null | null | #include"aquarium.h"
float fbspeed = 0; // front-back speed
int ymove = 0;
int xmove = 0;
GLfloat angle_y = -90.0f;
GLfloat angle_x = 0.0f;
GLfloat cameraSpeed = 0.05f;
vec3 cameraPos = vec3(0.0f, 0.0f, 10.0f);
vec3 cameraLooksAt = vec3(0.0f, 0.0f, 0.0f);
mat4 P = perspective(10.0f*PI / 90.0f, 2.0f, 1.0f, ... | 29.382979 | 89 | 0.56155 | matis11 |
d644f2dee9d259e974a61dc08a263f55590836ea | 1,633 | cpp | C++ | src/main.cpp | dniklaus/lights-on | 329f003e2f7a1ef0f24468b63985bf7d4f1bb107 | [
"MIT"
] | null | null | null | src/main.cpp | dniklaus/lights-on | 329f003e2f7a1ef0f24468b63985bf7d4f1bb107 | [
"MIT"
] | 1 | 2021-03-11T23:41:51.000Z | 2021-03-11T23:41:51.000Z | src/main.cpp | dniklaus/lights-on | 329f003e2f7a1ef0f24468b63985bf7d4f1bb107 | [
"MIT"
] | null | null | null | /*
* main.cpp
*
* Created on: 19.01.2021
* Author: Dieter Niklaus
*/
#include <Arduino.h>
// PlatformIO libraries
#include <SerialCommand.h> // pio lib install 173, lib details see https://github.com/kroimon/Arduino-SerialCommand
#include <SpinTimer.h> // pio lib install 11599, lib details see https:... | 24.373134 | 116 | 0.679118 | dniklaus |
d64bfe1c0bba8db3668deffe4eb0586fea84229c | 4,832 | cpp | C++ | src/daemon/security/ldapplugin/LdapGroup.cpp | HanixNicolas/app-mesh | 8ee77a6adb1091b3a0afcbc34d271b4b9508840e | [
"MIT"
] | 90 | 2020-06-06T12:11:33.000Z | 2022-01-04T11:30:24.000Z | src/daemon/security/ldapplugin/LdapGroup.cpp | HanixNicolas/app-mesh | 8ee77a6adb1091b3a0afcbc34d271b4b9508840e | [
"MIT"
] | 80 | 2020-05-19T14:33:34.000Z | 2022-03-25T08:00:54.000Z | src/daemon/security/ldapplugin/LdapGroup.cpp | HanixNicolas/app-mesh | 8ee77a6adb1091b3a0afcbc34d271b4b9508840e | [
"MIT"
] | 14 | 2020-07-16T11:35:47.000Z | 2022-01-04T03:10:44.000Z | #include <map>
#include <memory>
#include <mutex>
#include <set>
#include <string>
#include <cpprest/json.h>
#include "../../../common/Utility.h"
#include "../Role.h"
#include "LdapGroup.h"
//////////////////////////////////////////////////////////////////////////
/// LDAP Group
/////////////////////////////////////... | 31.376623 | 157 | 0.596854 | HanixNicolas |
d64c5872a5203290a2859dc01a6c7f3cbf771ad8 | 2,308 | cpp | C++ | Algorithm/TSP_problem.cpp | Kenshin-Y/competitive | 9035b86d772e4a48973309dbe45c3355ac18dbcb | [
"MIT"
] | null | null | null | Algorithm/TSP_problem.cpp | Kenshin-Y/competitive | 9035b86d772e4a48973309dbe45c3355ac18dbcb | [
"MIT"
] | null | null | null | Algorithm/TSP_problem.cpp | Kenshin-Y/competitive | 9035b86d772e4a48973309dbe45c3355ac18dbcb | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
// あとで整備する
#define ll long long
#define ALL(a) (a).begin(),(a).end()
#define rep(i,n) for(int i=0;i<(n);i++)
#define rrep(i,n) for(int i=n-1;i>=0;i--)
//有向グラフ上巡回セールスマン問題
//verified
//どこから始めても一緒なので、今回は0から始める。
const ll INF=1e18;
signed main(){
int n,m; cin >> n >> m;
... | 23.793814 | 67 | 0.40078 | Kenshin-Y |
d64c74aff38a61c8f5ef4b21d083fd5bc3316953 | 16,712 | cpp | C++ | source/request/DescribeCoverage.cpp | fmidev/smartmet-plugin-wcs | 60aee4d3ef9d2bba5de44b4a871f669fc1b47d08 | [
"MIT"
] | null | null | null | source/request/DescribeCoverage.cpp | fmidev/smartmet-plugin-wcs | 60aee4d3ef9d2bba5de44b4a871f669fc1b47d08 | [
"MIT"
] | 8 | 2017-04-07T13:14:46.000Z | 2018-04-25T08:04:22.000Z | source/request/DescribeCoverage.cpp | fmidev/smartmet-plugin-wcs | 60aee4d3ef9d2bba5de44b4a871f669fc1b47d08 | [
"MIT"
] | 1 | 2017-06-03T19:07:22.000Z | 2017-06-03T19:07:22.000Z | #include "request/DescribeCoverage.h"
#include "QueryBase.h"
#include "WcsConst.h"
#include "WcsConvenience.h"
#include "WcsException.h"
#include "xml/XmlUtils.h"
#include <boost/algorithm/string.hpp>
#include <ctpp2/CDT.hpp>
#include <macgyver/StringConversion.h>
#include <macgyver/TypeName.h>
namespace SmartMet
{
na... | 33.761616 | 99 | 0.667724 | fmidev |
d64fc3c539acd3594015b28f899f6df3e1cd2a6e | 1,835 | cpp | C++ | Engine/Plugins/Messaging/MessagingDebugger/Source/MessagingDebugger/Private/Widgets/Breakpoints/SMessagingBreakpointsTableRow.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | 1 | 2022-01-29T18:36:12.000Z | 2022-01-29T18:36:12.000Z | Engine/Plugins/Messaging/MessagingDebugger/Source/MessagingDebugger/Private/Widgets/Breakpoints/SMessagingBreakpointsTableRow.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | Engine/Plugins/Messaging/MessagingDebugger/Source/MessagingDebugger/Private/Widgets/Breakpoints/SMessagingBreakpointsTableRow.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "Widgets/Breakpoints/SMessagingBreakpointsTableRow.h"
#include "IMessageTracerBreakpoint.h"
#include "SlateOptMacros.h"
#include "Styling/ISlateStyle.h"
#include "Widgets/Images/SImage.h"
#include "Widgets/Input/SCheckBox.h"
#include "Widgets/Text/... | 25.84507 | 201 | 0.691008 | windystrife |
d6503925dffc6637f7422b6c49203558f3cc464e | 250 | cpp | C++ | c++/forRoop/breakTest.cpp | taku-xhift/labo | 89dc28fdb602c7992c6f31920714225f83a11218 | [
"MIT"
] | null | null | null | c++/forRoop/breakTest.cpp | taku-xhift/labo | 89dc28fdb602c7992c6f31920714225f83a11218 | [
"MIT"
] | null | null | null | c++/forRoop/breakTest.cpp | taku-xhift/labo | 89dc28fdb602c7992c6f31920714225f83a11218 | [
"MIT"
] | null | null | null |
#include <iostream>
int main()
{
for (int i = 0; i < 10; ++i) {
for (int j = 0; j < 10; ++j) {
std::cout << "(i, j) = (" << i << ", " << j << ")" << std::endl;
if (j >= 2) {
break;
}
}
}
return 0;
}
| 10.869565 | 68 | 0.32 | taku-xhift |
d650f71c471d525127c95fdadfe92418c66cdab0 | 925 | cpp | C++ | poj/2551/main.cpp | nimitz871016/acm | a59aba6333e48473f9ef3c3702965b5ba2c4d741 | [
"MIT"
] | null | null | null | poj/2551/main.cpp | nimitz871016/acm | a59aba6333e48473f9ef3c3702965b5ba2c4d741 | [
"MIT"
] | null | null | null | poj/2551/main.cpp | nimitz871016/acm | a59aba6333e48473f9ef3c3702965b5ba2c4d741 | [
"MIT"
] | null | null | null | //
// main.cpp
// 2551
// 水题,找到规律就很简单啦。分解 11111 = 10*1111 + 1,递进搜索,避免高精度运算
// Created by Nimitz_007 on 16/7/31.
// Copyright © 2016年 Fujian Ruijie Networks Co., Ltd. All rights reserved.
//
#include <iostream>
#include <math.h>
int digitOfNum(long num){
int count = 1;
while(num >= pow(10.0,count)){
... | 19.270833 | 75 | 0.460541 | nimitz871016 |
d651a7d057fe78b9c18ef1ab0096efc59e9dd2e0 | 1,256 | hpp | C++ | program/program/dx.hpp | agehama/graphics_experiments | f79bc33d306017ab928d2c7bbcbcfc884f2b5f98 | [
"Unlicense"
] | null | null | null | program/program/dx.hpp | agehama/graphics_experiments | f79bc33d306017ab928d2c7bbcbcfc884f2b5f98 | [
"Unlicense"
] | null | null | null | program/program/dx.hpp | agehama/graphics_experiments | f79bc33d306017ab928d2c7bbcbcfc884f2b5f98 | [
"Unlicense"
] | null | null | null | #pragma once
#include <array>
#include <optional>
#include <Windows.h>
#include <d3d12.h>
#include <dxgi1_6.h>
class Mesh;
class ShaderPipeline;
class Dx
{
public:
static Dx& instance()
{
static Dx i;
return i;
}
bool init(HWND hwnd, int width, int height);
bool frameBegin();... | 18.470588 | 87 | 0.691083 | agehama |
d653c263a4664572df582d9ffb1d4e48452d346c | 1,224 | cpp | C++ | Scription/src/Scription/Layer/LayerHandler.cpp | MJTodge/Scription | 530e4055ca4689f0b0ff80356b377ef9008f5f7c | [
"Apache-2.0"
] | null | null | null | Scription/src/Scription/Layer/LayerHandler.cpp | MJTodge/Scription | 530e4055ca4689f0b0ff80356b377ef9008f5f7c | [
"Apache-2.0"
] | null | null | null | Scription/src/Scription/Layer/LayerHandler.cpp | MJTodge/Scription | 530e4055ca4689f0b0ff80356b377ef9008f5f7c | [
"Apache-2.0"
] | null | null | null | #include "scrpch.h"
#include "Scription/Layer/LayerHandler.h"
namespace SCR
{
LayerHandler::~LayerHandler()
{
for (auto layer : _Layers)
delete layer;
}
void LayerHandler::AttachLayer(Layer* layer)
{
_Layers.emplace(_Layers.begin() + _Insert, layer);
_Insert++;
layer->OnAttach();
}
... | 19.741935 | 64 | 0.591503 | MJTodge |
d65952e4209c3725add87b31272269e9f8cba3b7 | 3,943 | cpp | C++ | msj_archives/code/MSJApr97.src/Tips on Tooltips/TTDemo/TitleTip.cpp | sarangbaheti/misc-code | d47a8d1cc41f19701ce628c9f15976bb5baa239d | [
"Unlicense"
] | 1 | 2020-10-22T12:58:55.000Z | 2020-10-22T12:58:55.000Z | msj_archives/code/MSJApr97.src/Tips on Tooltips/TTDemo/TitleTip.cpp | sarangbaheti/misc-code | d47a8d1cc41f19701ce628c9f15976bb5baa239d | [
"Unlicense"
] | null | null | null | msj_archives/code/MSJApr97.src/Tips on Tooltips/TTDemo/TitleTip.cpp | sarangbaheti/misc-code | d47a8d1cc41f19701ce628c9f15976bb5baa239d | [
"Unlicense"
] | 2 | 2020-10-19T23:36:26.000Z | 2020-10-22T12:59:37.000Z | // TitleTip.cpp : implementation file
//
#include "stdafx.h"
#include "TitleTip.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CTitleTip
LPCSTR CTitleTip::m_pszWndClass = NULL;
CTitl... | 22.531429 | 87 | 0.696424 | sarangbaheti |
d65df2544fb591982e18a406f758b57c568f2b9e | 4,500 | hpp | C++ | external/mapnik/include/mapnik/renderer_common/process_building_symbolizer.hpp | baiyicanggou/mapnik_mvt | 9bde52fa9958d81361c015c816858534ec0931bb | [
"Apache-2.0"
] | null | null | null | external/mapnik/include/mapnik/renderer_common/process_building_symbolizer.hpp | baiyicanggou/mapnik_mvt | 9bde52fa9958d81361c015c816858534ec0931bb | [
"Apache-2.0"
] | null | null | null | external/mapnik/include/mapnik/renderer_common/process_building_symbolizer.hpp | baiyicanggou/mapnik_mvt | 9bde52fa9958d81361c015c816858534ec0931bb | [
"Apache-2.0"
] | null | null | null | /*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2015 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as p... | 31.468531 | 136 | 0.590222 | baiyicanggou |
d65f07d7f706025df2a02402fce4056a390d6f30 | 1,498 | cpp | C++ | multiview/multiview_cpp/src/testcases/geometry/normalize_tc.cpp | prcvlabs/multiview | 1a03e14855292967ffb0c0ec7fff855c5abbc9d2 | [
"Apache-2.0"
] | 5 | 2021-09-03T23:12:08.000Z | 2022-03-04T21:43:32.000Z | multiview/multiview_cpp/src/testcases/geometry/normalize_tc.cpp | prcvlabs/multiview | 1a03e14855292967ffb0c0ec7fff855c5abbc9d2 | [
"Apache-2.0"
] | 3 | 2021-09-08T02:57:46.000Z | 2022-02-26T05:33:02.000Z | multiview/multiview_cpp/src/testcases/geometry/normalize_tc.cpp | prcvlabs/multiview | 1a03e14855292967ffb0c0ec7fff855c5abbc9d2 | [
"Apache-2.0"
] | 2 | 2021-09-26T03:14:40.000Z | 2022-01-26T06:42:52.000Z |
#define CATCH_CONFIG_PREFIX_ALL
#include <algorithm>
#include <deque>
#include <iterator>
#include "perceive/contrib/catch.hpp"
#include "perceive/geometry.hpp"
#include "perceive/geometry/normalize-data.hpp"
#include "perceive/utils/eigen-helpers.hpp"
#include "perceive/utils/math.hpp"
namespace perceive
{
CATCH_T... | 27.236364 | 67 | 0.524032 | prcvlabs |
d65fa3f00bc8b2e83bc0944fe4881783ed59ccd7 | 109 | cpp | C++ | test/src/BreakIntoDebugger.test.cpp | AMS21/CppBase | a6ec5542682bcebf5958d54557af1e03752a132f | [
"CC0-1.0"
] | null | null | null | test/src/BreakIntoDebugger.test.cpp | AMS21/CppBase | a6ec5542682bcebf5958d54557af1e03752a132f | [
"CC0-1.0"
] | 1 | 2020-05-12T19:48:20.000Z | 2020-05-12T19:48:20.000Z | test/src/BreakIntoDebugger.test.cpp | AMS21/CppBase | a6ec5542682bcebf5958d54557af1e03752a132f | [
"CC0-1.0"
] | null | null | null | #include <cpp/BreakIntoDebugger.hpp>
void BreakIntoDebuggerCompileTest()
{
CPP_BREAK_INTO_DEBUGGER();
}
| 15.571429 | 36 | 0.779817 | AMS21 |
d65fb206822704484c3b9df696ee5854bbce6bc8 | 1,118 | cpp | C++ | vijos/p1605.cpp | huanghongxun/ACM | b7595bbe6c0d82ceb271e81fca3e787dc4060a55 | [
"Unlicense"
] | 3 | 2018-06-05T13:57:13.000Z | 2020-08-05T14:19:02.000Z | vijos/p1605.cpp | huanghongxun/ACM | b7595bbe6c0d82ceb271e81fca3e787dc4060a55 | [
"Unlicense"
] | null | null | null | vijos/p1605.cpp | huanghongxun/ACM | b7595bbe6c0d82ceb271e81fca3e787dc4060a55 | [
"Unlicense"
] | null | null | null | #include<cstdio>
#include<iostream>
#include<algorithm>
using namespace std;
int p [1010],col[1010],Min[1010],pai[3][1010],l[3],wei[10010],las[10010],too[10010];
int n,t=0,should=1;
void line(int x,int y) {
las[++t] = wei[x]; wei[x] = t; too[t] = y;
las[++t] = wei[y]; wei[y] = t; too[t] = x;
}
void draw(int x,int c) ... | 32.882353 | 84 | 0.507156 | huanghongxun |
d666dba2d256ede57812699115c18cec8538da60 | 1,830 | cc | C++ | src/connectivity/wlan/drivers/lib/components/cpp/frame_container.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | 5 | 2022-01-10T20:22:17.000Z | 2022-01-21T20:14:17.000Z | src/connectivity/wlan/drivers/lib/components/cpp/frame_container.cc | PlugFox/fuchsia | 39afe5230d41628b3c736a6e384393df954968c8 | [
"BSD-2-Clause"
] | 2 | 2021-09-19T21:55:09.000Z | 2021-12-19T03:34:53.000Z | src/connectivity/wlan/drivers/lib/components/cpp/frame_container.cc | PlugFox/fuchsia | 39afe5230d41628b3c736a6e384393df954968c8 | [
"BSD-2-Clause"
] | null | null | null | // Copyright 2021 The Fuchsia 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 <wlan/drivers/components/frame_container.h>
#include <wlan/drivers/components/frame_storage.h>
namespace wlan::drivers::components {
void FrameCont... | 36.6 | 100 | 0.684699 | allansrc |
d6679901ea9a336fb3ff448834f30bc2ccc5ca13 | 2,355 | cpp | C++ | code/310.cpp | Nightwish-cn/my_leetcode | 40f206e346f3f734fb28f52b9cde0e0041436973 | [
"MIT"
] | 23 | 2020-03-30T05:44:56.000Z | 2021-09-04T16:00:57.000Z | code/310.cpp | Nightwish-cn/my_leetcode | 40f206e346f3f734fb28f52b9cde0e0041436973 | [
"MIT"
] | 1 | 2020-05-10T15:04:05.000Z | 2020-06-14T01:21:44.000Z | code/310.cpp | Nightwish-cn/my_leetcode | 40f206e346f3f734fb28f52b9cde0e0041436973 | [
"MIT"
] | 6 | 2020-03-30T05:45:04.000Z | 2020-08-13T10:01:39.000Z | #include <bits/stdc++.h>
#define INF 2000000000
using namespace std;
typedef long long ll;
int read(){
int f = 1, x = 0;
char c = getchar();
while(c < '0' || c > '9'){if(c == '-') f = -f; c = getchar();}
while(c >= '0' && c <= '9')x = x * 10 + c - '0', c = getchar();
return f * x;
}
int to[100005], nxt[100005], ... | 27.705882 | 71 | 0.385563 | Nightwish-cn |
d66d864e74946714748d755613cdbab36218cd0f | 59,264 | cpp | C++ | src/ff_eam_dmd.cpp | sinamoeini/mapp4py | 923ef57ee5bdb6231bec2885c09a58993b6c0f1f | [
"MIT"
] | 3 | 2018-06-06T05:43:36.000Z | 2020-07-18T14:31:37.000Z | src/ff_eam_dmd.cpp | sinamoeini/mapp4py | 923ef57ee5bdb6231bec2885c09a58993b6c0f1f | [
"MIT"
] | null | null | null | src/ff_eam_dmd.cpp | sinamoeini/mapp4py | 923ef57ee5bdb6231bec2885c09a58993b6c0f1f | [
"MIT"
] | 7 | 2018-01-16T03:21:20.000Z | 2020-07-20T19:36:13.000Z | #include "ff_eam_dmd.h"
#include <stdlib.h>
#include "neighbor_dmd.h"
#include "elements.h"
#include "memory.h"
#include "xmath.h"
#include "atoms_dmd.h"
#include "MAPP.h"
#include "dynamic_dmd.h"
#include "import_eam.h"
#include <limits>
#define PI_IN_SQ 0.564189583547756286948079451561
using namespace MAPP_NS;
/*----... | 30.564208 | 440 | 0.507846 | sinamoeini |
699094516198e04a858eeb1077c196ac5ae92b09 | 251 | cc | C++ | BOJ/17175.cc | Yaminyam/Algorithm | fe49b37b4b310f03273864bcd193fe88139f1c01 | [
"MIT"
] | 1 | 2019-05-18T00:02:12.000Z | 2019-05-18T00:02:12.000Z | BOJ/17175.cc | siontama/Algorithm | bb419e0d4dd09682bd4542f90038b492ee232bd2 | [
"MIT"
] | null | null | null | BOJ/17175.cc | siontama/Algorithm | bb419e0d4dd09682bd4542f90038b492ee232bd2 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int main()
{
int t;
int a;
long long p[51];
p[0] = 1;
p[1] = 1;
for (int i = 2; i < 51; i++)
{
p[i] = p[i - 1] + p[i - 2] + 1;
}
scanf("%d", &a);
printf("%d", p[a]%1000000007);
} | 13.210526 | 34 | 0.442231 | Yaminyam |
6991505e8b288b910acb427d5a3dab68419f9922 | 3,764 | cpp | C++ | src/tsp/symmetric/lagrangean.cpp | Alexander-Ignatyev/optimer | fc0fb8ffd35e6326f60d77c144cfe7635a6edaa7 | [
"BSD-3-Clause"
] | null | null | null | src/tsp/symmetric/lagrangean.cpp | Alexander-Ignatyev/optimer | fc0fb8ffd35e6326f60d77c144cfe7635a6edaa7 | [
"BSD-3-Clause"
] | null | null | null | src/tsp/symmetric/lagrangean.cpp | Alexander-Ignatyev/optimer | fc0fb8ffd35e6326f60d77c144cfe7635a6edaa7 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2013-2014 Alexander Ignatyev. All rights reserved.
#include "lagrangean.h"
#include <cstring>
#include <cmath>
#include <numeric>
namespace stsp {
std::pair<MSOneTree::Solution<value_type>, size_t> LagrangeanRelaxation::solve(
const std::vector<value_type> &initial_matrix
, size_t d... | 33.607143 | 79 | 0.559511 | Alexander-Ignatyev |
6992f67ae9ef3036cb0c38773280ea32c27a75d3 | 1,236 | cpp | C++ | BOJ_solve/16026.cpp | python-programmer1512/Code_of_gunwookim | e72e6724fb9ee6ccf2e1064583956fa954ba0282 | [
"MIT"
] | 4 | 2021-01-27T11:51:30.000Z | 2021-01-30T17:02:55.000Z | BOJ_solve/16026.cpp | python-programmer1512/Code_of_gunwookim | e72e6724fb9ee6ccf2e1064583956fa954ba0282 | [
"MIT"
] | null | null | null | BOJ_solve/16026.cpp | python-programmer1512/Code_of_gunwookim | e72e6724fb9ee6ccf2e1064583956fa954ba0282 | [
"MIT"
] | 5 | 2021-01-27T11:46:12.000Z | 2021-05-06T05:37:47.000Z | #include <bits/stdc++.h>
#define x first
#define y second
#define pb push_back
#define all(v) v.begin(),v.end()
#pragma gcc optimize("O3")
#pragma gcc optimize("Ofast")
#pragma gcc optimize("unroll-loops")
using namespace std;
const int INF = 1e9;
const long long llINF = 1e18;
long long mod = 1e9+7;
typedef long long ... | 25.22449 | 79 | 0.559871 | python-programmer1512 |
6993ebffba140bb41fdcd09482cfa1b21db37b0e | 484 | cpp | C++ | Ch 12/12.11.cpp | Felon03/CppPrimer | 7dc2daf59f0ae7ec5670def15cb5fab174fe9780 | [
"Apache-2.0"
] | null | null | null | Ch 12/12.11.cpp | Felon03/CppPrimer | 7dc2daf59f0ae7ec5670def15cb5fab174fe9780 | [
"Apache-2.0"
] | null | null | null | Ch 12/12.11.cpp | Felon03/CppPrimer | 7dc2daf59f0ae7ec5670def15cb5fab174fe9780 | [
"Apache-2.0"
] | null | null | null | /*如果像下面这样调用process,会发生什么?*/
// 报错,当p被销毁时,p指向的内存会被第二次delete
#include<iostream>
#include<memory>
using namespace std;
void process(shared_ptr<int> ptr)
{
cout << "inside the process function: " << ptr.use_count() << endl;
}
int main()
{
shared_ptr<int> p(new int(42));
process(shared_ptr<int>(p.get()));
// shared... | 18.615385 | 68 | 0.714876 | Felon03 |
69a1e7e66e16df70151ef057986ee0e05be7b6e7 | 2,454 | hpp | C++ | src/Main/Help/HelpPage.hpp | voxie-viewer/voxie | d2b5e6760519782e9ef2e51f5322a3baa0cb1198 | [
"MIT"
] | 4 | 2016-06-03T18:41:43.000Z | 2020-04-17T20:28:58.000Z | src/Main/Help/HelpPage.hpp | voxie-viewer/voxie | d2b5e6760519782e9ef2e51f5322a3baa0cb1198 | [
"MIT"
] | null | null | null | src/Main/Help/HelpPage.hpp | voxie-viewer/voxie | d2b5e6760519782e9ef2e51f5322a3baa0cb1198 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2014-2022 The Voxie Authors
*
* 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, mer... | 31.87013 | 80 | 0.734311 | voxie-viewer |
69a2c00ff1dbf9c1ba8e1a8486bd7d0df9989c6d | 2,616 | cpp | C++ | gui/GUIWindowsComponents.cpp | grumat/urbackup_frontend_wx | a5d086f6c1a0544965ac7d9a3db94363ab2b936b | [
"RSA-MD"
] | 65 | 2015-07-29T13:45:31.000Z | 2022-03-30T15:42:33.000Z | gui/GUIWindowsComponents.cpp | grumat/urbackup_frontend_wx | a5d086f6c1a0544965ac7d9a3db94363ab2b936b | [
"RSA-MD"
] | 7 | 2016-06-13T11:41:22.000Z | 2020-07-11T14:21:21.000Z | gui/GUIWindowsComponents.cpp | grumat/urbackup_frontend_wx | a5d086f6c1a0544965ac7d9a3db94363ab2b936b | [
"RSA-MD"
] | 39 | 2015-02-03T20:44:00.000Z | 2022-03-30T15:42:34.000Z | ///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Jun 17 2015)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
#include "GUIWindowsCompon... | 44.338983 | 203 | 0.686162 | grumat |
69a886b8a51eced02855337b7bf4936b1f7bcf92 | 3,495 | cpp | C++ | source/efcinfo.cpp | adamrehn/encrypted-file-container | 75ef92e88cd65fe4e9bb3964409a3f0a66467272 | [
"MIT"
] | 2 | 2015-11-29T14:01:08.000Z | 2021-12-05T12:22:32.000Z | source/efcinfo.cpp | adamrehn/encrypted-file-container | 75ef92e88cd65fe4e9bb3964409a3f0a66467272 | [
"MIT"
] | null | null | null | source/efcinfo.cpp | adamrehn/encrypted-file-container | 75ef92e88cd65fe4e9bb3964409a3f0a66467272 | [
"MIT"
] | 2 | 2021-07-22T03:40:57.000Z | 2021-12-05T12:22:33.000Z | /*
// Encrypted File Container
// Copyright (c) 2011, Adam Rehn
//
// 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
// t... | 36.40625 | 130 | 0.690701 | adamrehn |
69afe8dba0ec5da8a79ec509ac76e4dfb9ee812e | 2,305 | hpp | C++ | src/Environment.hpp | KipHamiltons/NUClear | 1c6147b3fda26c3796f133881f0bf626261db574 | [
"MIT"
] | 6 | 2015-04-09T04:23:58.000Z | 2020-12-10T04:35:13.000Z | src/Environment.hpp | KipHamiltons/NUClear | 1c6147b3fda26c3796f133881f0bf626261db574 | [
"MIT"
] | 12 | 2015-01-21T16:42:43.000Z | 2021-09-29T10:06:45.000Z | src/Environment.hpp | KipHamiltons/NUClear | 1c6147b3fda26c3796f133881f0bf626261db574 | [
"MIT"
] | 15 | 2015-04-10T00:33:38.000Z | 2021-09-24T23:42:55.000Z | /*
* Copyright (C) 2013 Trent Houliston <trent@houliston.me>, Jake Woods <jake.f.woods@gmail.com>
* 2014-2017 Trent Houliston <trent@houliston.me>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software... | 37.786885 | 120 | 0.748373 | KipHamiltons |
69b5ebba04f8850e8349c058f453f4aea7dc685a | 458 | cpp | C++ | regression/esbmc-cpp/vector/vector3/main.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 143 | 2015-06-22T12:30:01.000Z | 2022-03-21T08:41:17.000Z | regression/esbmc-cpp/vector/vector3/main.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 542 | 2017-06-02T13:46:26.000Z | 2022-03-31T16:35:17.000Z | regression/esbmc-cpp/vector/vector3/main.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 81 | 2015-10-21T22:21:59.000Z | 2022-03-24T14:07:55.000Z | #include <iostream>
#include <vector>
using namespace std;
int main()
{
vector<double> student_marks;
double mark;
char answer;
cout << "Enter marks (y/n)? " << endl;
cin >> answer;
while (answer == 'y' || answer == 'Y')
{
cout << "Enter value: " << endl;
cin >> mark;
... | 16.962963 | 48 | 0.510917 | shmarovfedor |
69b67ca7d032f3175af516a931ae53a0258e218e | 358 | cpp | C++ | projects/codility/max_profit/src/MaxProfit.cpp | antaljanosbenjamin/miscellaneous | 56d2f0030d1d8ff0dd6dd077c3d1ec981f6c2747 | [
"MIT"
] | 2 | 2021-06-24T21:46:56.000Z | 2021-09-24T07:51:04.000Z | projects/codility/max_profit/src/MaxProfit.cpp | antaljanosbenjamin/miscellaneous | 56d2f0030d1d8ff0dd6dd077c3d1ec981f6c2747 | [
"MIT"
] | null | null | null | projects/codility/max_profit/src/MaxProfit.cpp | antaljanosbenjamin/miscellaneous | 56d2f0030d1d8ff0dd6dd077c3d1ec981f6c2747 | [
"MIT"
] | null | null | null | #include "MaxProfit.hpp"
#include <algorithm>
namespace MaxProfit {
int solution(std::vector<int> &A) {
if (A.empty()) {
return 0;
}
auto minValue = A[0];
auto maxProfit = 0;
for (const auto &a: A) {
maxProfit = std::max(maxProfit, a - minValue);
minValue = std::min(minValue, a);
}
return m... | 17.047619 | 50 | 0.622905 | antaljanosbenjamin |
69be0a5d4c811512717ff52f19f36f6cd70648f1 | 576 | cpp | C++ | Sources/Kore/Graphics4/TextureArray.cpp | darmie/Kinc | 29b32fcab7fcf1e6ae1215f59f08f601c993dd9f | [
"Zlib"
] | 1 | 2020-11-11T15:11:27.000Z | 2020-11-11T15:11:27.000Z | Sources/Kore/Graphics4/TextureArray.cpp | darmie/Kinc | 29b32fcab7fcf1e6ae1215f59f08f601c993dd9f | [
"Zlib"
] | null | null | null | Sources/Kore/Graphics4/TextureArray.cpp | darmie/Kinc | 29b32fcab7fcf1e6ae1215f59f08f601c993dd9f | [
"Zlib"
] | null | null | null | #include "pch.h"
#include <Kore/Graphics4/TextureArray.h>
Kore::Graphics4::TextureArray::TextureArray(Image** textures, int count) {
kinc_image_t images[16];
for (int i = 0; i < count; ++i) {
kinc_image_init(&images[i], textures[i]->data, textures[i]->width, textures[i]->height, (kinc_image_format_t)textur... | 30.315789 | 133 | 0.6875 | darmie |
69be5eec5348e2a2004f1a0f69eb6990a649160f | 3,300 | hpp | C++ | src/NewTypeHandling.hpp | jfmherokiller/CallPapyrusFunctions | c7a286fb2eb89afbf2c5ea2da7079b5b5862fe25 | [
"MIT"
] | 2 | 2021-08-07T21:04:14.000Z | 2021-08-08T15:29:32.000Z | src/NewTypeHandling.hpp | jfmherokiller/QuickjsSKSE64Plugin | c7a286fb2eb89afbf2c5ea2da7079b5b5862fe25 | [
"MIT"
] | null | null | null | src/NewTypeHandling.hpp | jfmherokiller/QuickjsSKSE64Plugin | c7a286fb2eb89afbf2c5ea2da7079b5b5862fe25 | [
"MIT"
] | 1 | 2022-01-14T04:04:08.000Z | 2022-01-14T04:04:08.000Z | //
// Created by peter on 7/8/21.
//
#pragma once
namespace MakeFunctionArgs
{
class FunctionArguments: public RE::BSScript::IFunctionArguments
{
private:
RE::BSScrapArray<RE::BSScript::Variable> m_Variables;
public:
FunctionArguments() noexcept = default;
FunctionArguments(si... | 29.20354 | 140 | 0.506364 | jfmherokiller |
69c63f187664d9cef6646afaad07ac05c00a2868 | 23,077 | cpp | C++ | static_analysis/src/vtable_hierarchy.cpp | RUB-SysSec/VPS | c85437facf6d25c285f6e0a7c820d235a4afc8ca | [
"MIT"
] | 7 | 2019-11-01T07:26:54.000Z | 2021-07-25T13:59:15.000Z | static_analysis/src/vtable_hierarchy.cpp | RUB-SysSec/VPS | c85437facf6d25c285f6e0a7c820d235a4afc8ca | [
"MIT"
] | null | null | null | static_analysis/src/vtable_hierarchy.cpp | RUB-SysSec/VPS | c85437facf6d25c285f6e0a7c820d235a4afc8ca | [
"MIT"
] | 3 | 2020-03-18T19:54:23.000Z | 2021-11-19T08:29:13.000Z | //
// Created by sqall on 23.02.16.
//
#include <algorithm>
#include <fstream>
#include <sstream>
#include "vtable_hierarchy.h"
using namespace std;
VTableHierarchies::VTableHierarchies(const FileFormatType file_format,
const VTableFile &vtable_file,
... | 34.289747 | 84 | 0.547385 | RUB-SysSec |
69c935efddcb011e17c04dac4bd518d0c8590500 | 10,770 | cc | C++ | mysql-server/sql/item_regexp_func.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/sql/item_regexp_func.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/sql/item_regexp_func.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | /* Copyright (c) 2017, 2020, Oracle and/or its affiliates.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certain software (including... | 34.082278 | 80 | 0.691829 | silenc3502 |
69ca19f7af653feb1788c535abc914e59ac20e51 | 3,874 | inl | C++ | Phoenix3D/PX2Graphics/PX2Movable.inl | PheonixFoundation/Phoenix3D | bfb2e3757bf61ac461aeeda9216bf8c8fdf76d99 | [
"BSL-1.0"
] | 36 | 2016-04-24T01:40:38.000Z | 2022-01-18T07:32:26.000Z | Phoenix3D/PX2Graphics/PX2Movable.inl | PheonixFoundation/Phoenix3D | bfb2e3757bf61ac461aeeda9216bf8c8fdf76d99 | [
"BSL-1.0"
] | null | null | null | Phoenix3D/PX2Graphics/PX2Movable.inl | PheonixFoundation/Phoenix3D | bfb2e3757bf61ac461aeeda9216bf8c8fdf76d99 | [
"BSL-1.0"
] | 16 | 2016-06-13T08:43:51.000Z | 2020-09-15T13:25:58.000Z | // PX2Movable.inl
//----------------------------------------------------------------------------
inline void Movable::SetAlphaSelfCtrled (bool selfCtrled)
{
mIsAlphaSelfCtrled = selfCtrled;
}
//----------------------------------------------------------------------------
inline void Movable::SetColorSelfCtrled (bool s... | 32.830508 | 78 | 0.403975 | PheonixFoundation |
69cae42aed2071c140c200045d15819559eaee44 | 3,095 | cpp | C++ | musicplayer/plugins/ayflyplugin/ayfly/src/gui/windows/ayfly_main.cpp | Osmose/moseamp | 8357daf2c93bc903c8041cc82bf3567e8d085a60 | [
"MIT"
] | 6 | 2017-04-19T19:06:03.000Z | 2022-01-11T14:44:14.000Z | plugins/ayflyplugin/ayfly/src/gui/windows/ayfly_main.cpp | sasq64/musicplayer | 372852c2f4e3231a09db2628fc4b7e7c2bfeec67 | [
"MIT"
] | 4 | 2018-04-04T20:27:32.000Z | 2020-04-25T10:46:21.000Z | musicplayer/plugins/ayflyplugin/ayfly/src/gui/windows/ayfly_main.cpp | Osmose/moseamp | 8357daf2c93bc903c8041cc82bf3567e8d085a60 | [
"MIT"
] | 2 | 2018-06-08T15:20:48.000Z | 2020-08-19T14:24:21.000Z | /***************************************************************************
* Copyright (C) 2008 by Deryabin Andrew *
* andrew@it-optima.ru *
* *
* This pr... | 37.289157 | 150 | 0.517286 | Osmose |
69d023f846eadea905e64fd230610fb74ef454ca | 1,847 | cc | C++ | base/allocator/malloc_zone_functions_mac_unittest.cc | Lynskylate/chromium-base-bazel | e68247d002809f0359e28ee7fc6c5c33de93ce9d | [
"BSD-3-Clause"
] | null | null | null | base/allocator/malloc_zone_functions_mac_unittest.cc | Lynskylate/chromium-base-bazel | e68247d002809f0359e28ee7fc6c5c33de93ce9d | [
"BSD-3-Clause"
] | null | null | null | base/allocator/malloc_zone_functions_mac_unittest.cc | Lynskylate/chromium-base-bazel | e68247d002809f0359e28ee7fc6c5c33de93ce9d | [
"BSD-3-Clause"
] | 1 | 2020-04-30T08:12:46.000Z | 2020-04-30T08:12:46.000Z | // Copyright 2017 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 "base/allocator/malloc_zone_functions_mac.h"
#include "gtest/gtest.h"
namespace base {
namespace allocator {
class MallocZoneFunctionsTest : pu... | 31.844828 | 73 | 0.763942 | Lynskylate |
69d1a8b165ca250b65ebd2a77660dabdae3c10b5 | 418 | hpp | C++ | gui_logo.hpp | thatoddmailbox/duck_hero | d96e379491b165dc0bb868ab2a0e4ef6f2365986 | [
"MIT"
] | 1 | 2021-02-19T05:09:10.000Z | 2021-02-19T05:09:10.000Z | gui_logo.hpp | thatoddmailbox/duck_hero | d96e379491b165dc0bb868ab2a0e4ef6f2365986 | [
"MIT"
] | 2 | 2021-02-18T22:13:47.000Z | 2021-02-18T22:30:41.000Z | gui_logo.hpp | thatoddmailbox/duck_hero | d96e379491b165dc0bb868ab2a0e4ef6f2365986 | [
"MIT"
] | null | null | null | #ifndef _GUI_LOGO_HPP
#define _GUI_LOGO_HPP
#include "gui.hpp"
#include "gui_helper.hpp"
#include <SDL.h>
namespace duckhero
{
class GUILogo : public GUIElement
{
private:
SDL_Texture * _text_texture;
SDL_Rect _text_rect;
SDL_Rect _logo_rect;
public:
GUILogo();
~GUILogo();
bool Update(SDL_Renderer * ... | 16.076923 | 41 | 0.72488 | thatoddmailbox |
69d442f099915922c0638994efd53b1c5ef8d7b6 | 3,233 | cpp | C++ | Engine/Particles/ParticleSystems.cpp | vitei/Usa | c44f893d5b3d8080529ecf0e227f983fddb829d4 | [
"MIT"
] | 47 | 2018-04-27T02:16:26.000Z | 2022-02-28T05:21:24.000Z | Engine/Particles/ParticleSystems.cpp | vitei/Usa | c44f893d5b3d8080529ecf0e227f983fddb829d4 | [
"MIT"
] | 2 | 2018-11-13T18:46:41.000Z | 2022-03-12T00:04:44.000Z | Engine/Particles/ParticleSystems.cpp | vitei/Usa | c44f893d5b3d8080529ecf0e227f983fddb829d4 | [
"MIT"
] | 6 | 2019-08-10T21:56:23.000Z | 2020-10-21T11:18:29.000Z | /****************************************************************************
// Usagi Engine, Copyright © Vitei, Inc. 2013
****************************************************************************/
#include "Engine/Common/Common.h"
#include "Engine/Maths/Matrix4x4.h"
#include "Engine/Scene/Scene.h"
#include "Engine... | 31.086538 | 148 | 0.670894 | vitei |
69d6ac465c7a1b1d4fa6c19630aa6bbc904c0712 | 4,753 | cpp | C++ | src/third_party/VisionWorks-1.6-Demos/nvxio/src/NVX/ConfigParser.cpp | reveriel/cuda_scheduling_examiner_mirror | 16d2404c0dc8d72f7a13e4a167d3db4c86128a26 | [
"BSD-2-Clause-FreeBSD"
] | 39 | 2017-05-23T00:27:50.000Z | 2022-02-16T07:56:07.000Z | src/third_party/VisionWorks-1.6-Demos/nvxio/src/NVX/ConfigParser.cpp | reveriel/cuda_scheduling_examiner_mirror | 16d2404c0dc8d72f7a13e4a167d3db4c86128a26 | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2019-10-22T13:47:39.000Z | 2020-04-03T16:09:04.000Z | src/third_party/VisionWorks-1.6-Demos/nvxio/src/NVX/ConfigParser.cpp | reveriel/cuda_scheduling_examiner_mirror | 16d2404c0dc8d72f7a13e4a167d3db4c86128a26 | [
"BSD-2-Clause-FreeBSD"
] | 14 | 2017-09-11T19:59:19.000Z | 2021-02-03T10:00:22.000Z | /*
# Copyright (c) 2014-2015, NVIDIA 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 list of cond... | 31.476821 | 106 | 0.61498 | reveriel |
69dc0b97472ed9f8e67d1342d5cda56b6794ddba | 8,442 | cc | C++ | CondTools/Ecal/src/EcalPulseShapesXMLTranslator.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | CondTools/Ecal/src/EcalPulseShapesXMLTranslator.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | CondTools/Ecal/src/EcalPulseShapesXMLTranslator.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | #include <iostream>
#include <sstream>
#include <fstream>
#include <xercesc/dom/DOMNode.hpp>
#include <xercesc/dom/DOM.hpp>
#include <xercesc/parsers/XercesDOMParser.hpp>
#include "Utilities/Xerces/interface/Xerces.h"
#include "Utilities/Xerces/interface/XercesStrUtils.h"
#include <xercesc/util/XMLString.hpp>
#include ... | 40.980583 | 117 | 0.688344 | ckamtsikis |
69e193f1ab4a32437a72bde3ae316e8d27297faa | 1,405 | hpp | C++ | check/core/matrix/dense/dense_vector/test.hpp | emfomy/mcnla | 9f9717f4d6449bbd467c186651856d6212035667 | [
"MIT"
] | null | null | null | check/core/matrix/dense/dense_vector/test.hpp | emfomy/mcnla | 9f9717f4d6449bbd467c186651856d6212035667 | [
"MIT"
] | null | null | null | check/core/matrix/dense/dense_vector/test.hpp | emfomy/mcnla | 9f9717f4d6449bbd467c186651856d6212035667 | [
"MIT"
] | null | null | null | #pragma once
#include <gtest/gtest.h>
#include <mcnla/core/matrix.hpp>
#include <mcnla/core/la.hpp>
using MyTypes = testing::Types<float, double, std::complex<float>, std::complex<double>>;
template <typename _Val, mcnla::index_t _len, mcnla::index_t _stride, mcnla::index_t _memsize, mcnla::index_t _offset>
class De... | 29.270833 | 118 | 0.733096 | emfomy |
69e2c6431d8f34a8d1645f263dba26b1ab29d1de | 2,090 | hpp | C++ | cuda/stubs/event.hpp | josephwinston/hpxcl | ebd18f245beea46be943ffa22e2fb8145b0b2836 | [
"BSL-1.0"
] | null | null | null | cuda/stubs/event.hpp | josephwinston/hpxcl | ebd18f245beea46be943ffa22e2fb8145b0b2836 | [
"BSL-1.0"
] | null | null | null | cuda/stubs/event.hpp | josephwinston/hpxcl | ebd18f245beea46be943ffa22e2fb8145b0b2836 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2013 Damond Howard
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt
#if !defined(EVEMT_3_HPP)
#define EVENT_3_HPP
#include <hpx/runtime/components/stubs/stub_base.hpp>
#include <hpx/runtime/appl... | 31.19403 | 94 | 0.520096 | josephwinston |
69e5d04ca0261fa98c8b3a2a198fd81ea7ed0b87 | 6,524 | cpp | C++ | src/network/oni-network-peer.cpp | sina-/granite | 95b873bc545cd4925b5cea8c632a82f2d815be6e | [
"MIT"
] | 2 | 2019-08-01T09:18:49.000Z | 2020-03-26T05:59:52.000Z | src/network/oni-network-peer.cpp | sina-/granite | 95b873bc545cd4925b5cea8c632a82f2d815be6e | [
"MIT"
] | null | null | null | src/network/oni-network-peer.cpp | sina-/granite | 95b873bc545cd4925b5cea8c632a82f2d815be6e | [
"MIT"
] | 1 | 2020-03-26T05:59:53.000Z | 2020-03-26T05:59:53.000Z | #include <oni-core/network/oni-network-peer.h>
#include <enet/enet.h>
namespace oni {
Peer::Peer() = default;
Peer::Peer(const Address *address,
u8 peerCount,
u8 channelLimit,
u32 incomingBandwidth,
u32 outgoingBandwidth) {
auto result = e... | 31.365385 | 115 | 0.520999 | sina- |
69e7f5d3e4fe2eed406a3c36d313894971371e64 | 631 | hpp | C++ | external/boost_1_60_0/qsboost/type_traits/add_lvalue_reference.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | 1 | 2019-06-27T17:54:13.000Z | 2019-06-27T17:54:13.000Z | external/boost_1_60_0/qsboost/type_traits/add_lvalue_reference.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | null | null | null | external/boost_1_60_0/qsboost/type_traits/add_lvalue_reference.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | null | null | null | // Copyright 2010 John Maddock
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt
#ifndef QSBOOST_TYPE_TRAITS_EXT_ADD_LVALUE_REFERENCE__HPP
#define QSBOOST_TYPE_TRAITS_EXT_ADD_LVALUE_REFERENCE__HPP
#include <qsboost/type_traits/add_reference.hpp>
namespace q... | 22.535714 | 62 | 0.800317 | wouterboomsma |
69e970b4d65dd87be0fddfce6896b1f27a6cdd41 | 7,573 | cxx | C++ | src/ptclib/psasl.cxx | suxinde2009/ptlib | 3d185e55144b98aa46903d48468745ffd07b2a9d | [
"Beerware"
] | 2 | 2020-04-16T02:04:35.000Z | 2021-07-20T03:39:44.000Z | src/ptclib/psasl.cxx | suxinde2009/ptlib | 3d185e55144b98aa46903d48468745ffd07b2a9d | [
"Beerware"
] | null | null | null | src/ptclib/psasl.cxx | suxinde2009/ptlib | 3d185e55144b98aa46903d48468745ffd07b2a9d | [
"Beerware"
] | 3 | 2019-10-15T19:43:07.000Z | 2022-01-06T16:53:25.000Z | /*
* sasl.cxx
*
* Simple Authentication Security Layer interface classes
*
* Portable Windows Library
*
* Copyright (c) 2004 Reitek S.p.A.
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.0 (the "License"); you may not use this file except in
* compliance with the License. ... | 22.53869 | 111 | 0.625908 | suxinde2009 |
69f3d46c9df699f7ed20d2a27f0153a1441c9094 | 4,253 | cpp | C++ | pin-3.22-98547-g7a303a835-gcc-linux/source/tools/ToolUnitTests/exception_context_monitor.cpp | ArthasZhang007/15418FinalProject | a71f698ea48ebbc446111734c198f16a55633669 | [
"MIT"
] | null | null | null | pin-3.22-98547-g7a303a835-gcc-linux/source/tools/ToolUnitTests/exception_context_monitor.cpp | ArthasZhang007/15418FinalProject | a71f698ea48ebbc446111734c198f16a55633669 | [
"MIT"
] | null | null | null | pin-3.22-98547-g7a303a835-gcc-linux/source/tools/ToolUnitTests/exception_context_monitor.cpp | ArthasZhang007/15418FinalProject | a71f698ea48ebbc446111734c198f16a55633669 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2008-2021 Intel Corporation.
* SPDX-License-Identifier: MIT
*/
/*! @file
* A pin tool that intercepts exception and verifies the exception context.
* It works in pair with the win_exception_context application, that raises two
* exceptions. The context of the second exception should have a... | 29.741259 | 129 | 0.650364 | ArthasZhang007 |
69f69cddcb5faf4dfe3b61999f7a0dbe16902631 | 19,074 | cpp | C++ | source/UI/Automap.cpp | BodbDearg/phoenix_doom | 9648b1cc742634d5aefc18cd3699cd7cb2c0e21c | [
"MIT"
] | 29 | 2019-09-25T06:29:07.000Z | 2022-02-20T23:52:36.000Z | source/UI/Automap.cpp | monyarm/phoenix_doom | 78c75f985803b94b981469ac32764169ed56aee4 | [
"MIT"
] | 4 | 2019-09-25T03:24:31.000Z | 2020-09-07T18:38:32.000Z | source/UI/Automap.cpp | monyarm/phoenix_doom | 78c75f985803b94b981469ac32764169ed56aee4 | [
"MIT"
] | 4 | 2019-09-26T06:43:12.000Z | 2020-09-05T16:25:03.000Z | #include "Automap.h"
#include "Base/Tables.h"
#include "Game/Controls.h"
#include "Game/Data.h"
#include "Game/Tick.h"
#include "GFX/Blit.h"
#include "GFX/Video.h"
#include "Map/MapData.h"
#include "Things/MapObj.h"
static constexpr Fixed STEPVALUE = (2 << FRACBITS); // Speed to move around in the map (Fixed)... | 44.88 | 141 | 0.520185 | BodbDearg |
69f6fb8ba95987889c2b000bacb410030d1b6d10 | 1,460 | cc | C++ | src/bin/fstdraw.cc | entn-at/openfst | 10ab103134b1872e475800fd5ea37747d1c0c858 | [
"Apache-2.0"
] | 336 | 2018-11-06T14:03:32.000Z | 2022-03-31T00:48:03.000Z | src/bin/fstdraw.cc | entn-at/openfst | 10ab103134b1872e475800fd5ea37747d1c0c858 | [
"Apache-2.0"
] | 43 | 2017-07-13T21:04:44.000Z | 2022-02-16T19:47:53.000Z | src/bin/fstdraw.cc | entn-at/openfst | 10ab103134b1872e475800fd5ea37747d1c0c858 | [
"Apache-2.0"
] | 77 | 2018-11-07T06:43:10.000Z | 2021-12-10T04:16:43.000Z | // See www.openfst.org for extensive documentation on this weighted
// finite-state transducer library.
#include <fst/flags.h>
DEFINE_bool(acceptor, false, "Input in acceptor format");
DEFINE_string(isymbols, "", "Input label symbol table");
DEFINE_string(osymbols, "", "Output label symbol table");
DEFINE_string(ssym... | 45.625 | 79 | 0.713699 | entn-at |
69f98c91379842f52a50ae79070751d206bcdc88 | 1,714 | cpp | C++ | tests/transpose.cpp | marwage/alzheimer | b58688ea91f9b2ca4ae5457858b0fcc2a6e3e041 | [
"CC0-1.0"
] | null | null | null | tests/transpose.cpp | marwage/alzheimer | b58688ea91f9b2ca4ae5457858b0fcc2a6e3e041 | [
"CC0-1.0"
] | null | null | null | tests/transpose.cpp | marwage/alzheimer | b58688ea91f9b2ca4ae5457858b0fcc2a6e3e041 | [
"CC0-1.0"
] | null | null | null | // Copyright 2020 Marcel Wagenländer
#include "helper.hpp"
#include "tensors.hpp"
#include "catch2/catch.hpp"
#include <string>
int test_transpose(long rows, long columns, bool to_col_major) {
std::string home = std::getenv("HOME");
std::string dir_path = home + "/gpu_memory_reduction/alzheimer/data";
s... | 29.050847 | 145 | 0.673862 | marwage |
69fb985fcf574afac46217a338aa283cf72eb187 | 2,362 | cpp | C++ | arch/am335x/hal/concurrency/Thread.cpp | antisvin/er-301 | 54d1e553651b5b653afa318189d813f0b7e12a96 | [
"MIT"
] | 102 | 2021-03-01T10:39:56.000Z | 2022-03-31T00:28:15.000Z | arch/am335x/hal/concurrency/Thread.cpp | antisvin/er-301 | 54d1e553651b5b653afa318189d813f0b7e12a96 | [
"MIT"
] | 62 | 2021-03-01T19:38:54.000Z | 2022-03-21T00:51:24.000Z | arch/am335x/hal/concurrency/Thread.cpp | antisvin/er-301 | 54d1e553651b5b653afa318189d813f0b7e12a96 | [
"MIT"
] | 19 | 2021-03-01T19:52:10.000Z | 2021-07-29T03:25:19.000Z | #include <hal/concurrency/Thread.h>
#include <hal/log.h>
#include <od/extras/ReferenceCounted.h>
#include <ti/sysbios/knl/Task.h>
#include <ti/sysbios/knl/Event.h>
#include <ti/sysbios/BIOS.h>
#ifdef BUILDOPT_VERBOSE
#include <typeinfo>
#endif
namespace od
{
struct ThreadRunner
{
static Void ... | 22.283019 | 84 | 0.606266 | antisvin |
69fb9e8dc0e981d82382d0035ff479be44917f7c | 871 | cpp | C++ | src/SystemDaemon.cpp | nathanmentley/EssexEngineSystemDaemon | c88926183a4bbbf59331efbcc79f7d2dfe2c78f9 | [
"BSD-2-Clause"
] | null | null | null | src/SystemDaemon.cpp | nathanmentley/EssexEngineSystemDaemon | c88926183a4bbbf59331efbcc79f7d2dfe2c78f9 | [
"BSD-2-Clause"
] | null | null | null | src/SystemDaemon.cpp | nathanmentley/EssexEngineSystemDaemon | c88926183a4bbbf59331efbcc79f7d2dfe2c78f9 | [
"BSD-2-Clause"
] | null | null | null | /*
* Essex Engine
*
* Copyright (C) 2018 Nathan Mentley - All Rights Reserved
* You may use, distribute and modify this code under the
* terms of the BSD license.
*
* You should have received a copy of the BSD license with
* this file. If not, please visit: https://github.com/nathanmentley/EssexEngine
*/
#i... | 30.034483 | 111 | 0.741676 | nathanmentley |
69ffe1a6db4e8c4b33c3af64023f90e647acf975 | 2,248 | hpp | C++ | src/Conversion/KrnlToAffine/ConvertKrnlToAffine.hpp | redbopo/onnx-mlir | 3305a13ddcdfa73ddd6c241b64c8d856e78b9455 | [
"Apache-2.0"
] | null | null | null | src/Conversion/KrnlToAffine/ConvertKrnlToAffine.hpp | redbopo/onnx-mlir | 3305a13ddcdfa73ddd6c241b64c8d856e78b9455 | [
"Apache-2.0"
] | null | null | null | src/Conversion/KrnlToAffine/ConvertKrnlToAffine.hpp | redbopo/onnx-mlir | 3305a13ddcdfa73ddd6c241b64c8d856e78b9455 | [
"Apache-2.0"
] | null | null | null | /*
* SPDX-License-Identifier: Apache-2.0
*/
//====------ ConvertKrnlToAffine.hpp - Krnl Dialect Lowering --------------===//
//
// Copyright 2019-2022 The IBM Research Authors.
//
// =============================================================================
//
// This file declares the lowering of Krnl operations... | 36.852459 | 80 | 0.733541 | redbopo |
0e07cd8890b052e5ade4bf87cda43c95a6b6f7d9 | 1,049 | cpp | C++ | src/game/events.cpp | cbosoft/geas | 9451b7fd4924d5bc3f21f3c9cc053540953b95c0 | [
"MIT"
] | null | null | null | src/game/events.cpp | cbosoft/geas | 9451b7fd4924d5bc3f21f3c9cc053540953b95c0 | [
"MIT"
] | null | null | null | src/game/events.cpp | cbosoft/geas | 9451b7fd4924d5bc3f21f3c9cc053540953b95c0 | [
"MIT"
] | null | null | null | #include "game.hpp"
void Game::push_event(Event *event)
{
std::scoped_lock<std::mutex> _sl(this->mutex);
this->events_queue.push_back(event);
}
void Game::events_thread_worker()
{
while (this->is_alive()) {
std::list<Event *> events_copy;
{
std::scoped_lock<std::mutex> _sl(th... | 24.395349 | 88 | 0.532888 | cbosoft |
0e0851bb50aa5cc6aa0046a0e2911c66c4e7b8bd | 1,207 | cpp | C++ | src/htsettings.cpp | hualet/NeteaseMusicForLinux | f0662203658add8c48f474cc67a19da88fe12339 | [
"MIT"
] | 15 | 2015-04-19T13:43:11.000Z | 2020-08-13T08:17:31.000Z | src/htsettings.cpp | hualet/NeteaseMusicForLinux | f0662203658add8c48f474cc67a19da88fe12339 | [
"MIT"
] | 3 | 2015-05-13T14:14:32.000Z | 2018-08-29T10:17:24.000Z | src/htsettings.cpp | hualet/NeteaseMusicForLinux | f0662203658add8c48f474cc67a19da88fe12339 | [
"MIT"
] | 8 | 2015-04-27T14:20:17.000Z | 2021-05-12T10:17:43.000Z | #include "htsettings.h"
#include <QDebug>
HTSettings::HTSettings(QObject *parent) :
QSettings(parent)
{
}
double HTSettings::volume()
{
return value("General/volume").toDouble();
}
void HTSettings::setVolume(double volume)
{
setValue("General/volume", QVariant(volume));
}
QString HTSettings::lastSong() ... | 19.786885 | 61 | 0.724938 | hualet |
0e1034acc2ba7bffa4a982ba7f1679b401540955 | 3,369 | cpp | C++ | common/actiongroup.cpp | pastillilabs/situations-symbian | 909da8a2067ad33ab8d290a6420a9e8f0abd96e6 | [
"Unlicense"
] | 4 | 2016-06-04T20:56:27.000Z | 2016-10-11T11:39:27.000Z | common/actiongroup.cpp | pastillilabs/situations-symbian | 909da8a2067ad33ab8d290a6420a9e8f0abd96e6 | [
"Unlicense"
] | null | null | null | common/actiongroup.cpp | pastillilabs/situations-symbian | 909da8a2067ad33ab8d290a6420a9e8f0abd96e6 | [
"Unlicense"
] | null | null | null | #include "actiongroup.h"
#include "action.h"
#include "identifiers.h"
ActionGroup::ActionGroup(ActionPlugin& plugin, QObject* parent)
: QAbstractListModel(parent)
, mPlugin(plugin)
, mRunning(false)
{
QHash<int, QByteArray> roles;
roles[ActionRole] = "action";
setRoleNames(roles);
}
ActionGrou... | 21.458599 | 89 | 0.629267 | pastillilabs |
97ba387b440834afc5d46fff68da32b9ab61eb08 | 960 | hpp | C++ | shared_model/backend/protobuf/queries/proto_get_pending_transactions.hpp | truongnmt/iroha | e9b969df9a0eb6ce62eae3ab62c5c3f046a5e6e1 | [
"Apache-2.0"
] | 31 | 2019-04-17T19:32:05.000Z | 2022-02-05T01:35:02.000Z | shared_model/backend/protobuf/queries/proto_get_pending_transactions.hpp | truongnmt/iroha | e9b969df9a0eb6ce62eae3ab62c5c3f046a5e6e1 | [
"Apache-2.0"
] | 11 | 2016-10-13T10:09:55.000Z | 2019-06-13T08:49:11.000Z | shared_model/backend/protobuf/queries/proto_get_pending_transactions.hpp | truongnmt/iroha | e9b969df9a0eb6ce62eae3ab62c5c3f046a5e6e1 | [
"Apache-2.0"
] | 12 | 2019-06-03T10:31:31.000Z | 2021-12-13T12:17:15.000Z | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef IROHA_PROTO_GET_PENDING_TRANSACTIONS_HPP
#define IROHA_PROTO_GET_PENDING_TRANSACTIONS_HPP
#include "backend/protobuf/common_objects/trivial_proto.hpp"
#include "interfaces/queries/get_pending_transactions.hpp"... | 30.967742 | 66 | 0.725 | truongnmt |
97ba90e6a07c55da10cd7b24c7d979906af7608e | 4,254 | cpp | C++ | ukpsummarizer-be/cplex/cplex/examples/src/cpp/iloadmipex3.cpp | UKPLab/vldb2018-sherlock | 74f34ca074e72ad9137b60f921588585256e0eac | [
"Apache-2.0"
] | 2 | 2018-11-26T01:49:30.000Z | 2019-01-31T10:04:00.000Z | ukpsummarizer-be/cplex/cplex/examples/src/cpp/iloadmipex3.cpp | AIPHES/vldb2018-sherlock | 3746efa35c4c1769cc4aaeb15aeb9453564e1226 | [
"Apache-2.0"
] | null | null | null | ukpsummarizer-be/cplex/cplex/examples/src/cpp/iloadmipex3.cpp | AIPHES/vldb2018-sherlock | 3746efa35c4c1769cc4aaeb15aeb9453564e1226 | [
"Apache-2.0"
] | 4 | 2018-11-06T16:12:55.000Z | 2019-08-21T13:22:32.000Z | // -------------------------------------------------------------- -*- C++ -*-
// File: iloadmipex3.cpp
// Version 12.8.0
// --------------------------------------------------------------------------
// Licensed Materials - Property of IBM
// 5725-A06 5725-A29 5724-Y48 5724-Y49 5724-Y54 5724-Y55 5655-Y21
// Copyright ... | 27.445161 | 77 | 0.476023 | UKPLab |
97bbc93df9b0d4d29fb4a3bd79c7ee98bfdc2078 | 2,087 | cc | C++ | tests/neuron_rng_uniform/neuron_rng_uniform_CODE/init.cc | 9inpachi/genn-opencl | 33231225a72611c7b629ef1d13f325f35d4ae2f7 | [
"MIT"
] | 1 | 2020-06-28T19:48:48.000Z | 2020-06-28T19:48:48.000Z | tests/neuron_rng_uniform/neuron_rng_uniform_CODE/init.cc | 9inpachi/genn-opencl | 33231225a72611c7b629ef1d13f325f35d4ae2f7 | [
"MIT"
] | 1 | 2020-02-10T15:26:29.000Z | 2020-02-10T15:26:29.000Z | tests/neuron_rng_uniform/neuron_rng_uniform_CODE/init.cc | 9inpachi/genn-opencl | 33231225a72611c7b629ef1d13f325f35d4ae2f7 | [
"MIT"
] | 1 | 2020-02-10T10:47:12.000Z | 2020-02-10T10:47:12.000Z | #include "definitionsInternal.h"
extern "C" const char* initProgramSrc = R"(typedef float scalar;
#define fmodf fmod
#define TIME_MIN 1.175494351e-38f
#define TIME_MAX 3.402823466e+38f
__kernel void initializeKernel(__global unsigned int* d_glbSpkCntPop, __global unsigned int* d_glbSpkPop, __global scalar* d_xPop, ... | 31.621212 | 160 | 0.586488 | 9inpachi |
97be94d9d6ca6268c3ad9884428f99d1c8e2d7bb | 1,122 | cc | C++ | src/test/heartbeat_map.cc | rpratap-bot/ceph | 9834961a66927ae856935591f2fd51082e2ee484 | [
"MIT"
] | 4 | 2020-04-08T03:42:02.000Z | 2020-10-01T20:34:48.000Z | src/test/heartbeat_map.cc | rpratap-bot/ceph | 9834961a66927ae856935591f2fd51082e2ee484 | [
"MIT"
] | 93 | 2020-03-26T14:29:14.000Z | 2020-11-12T05:54:55.000Z | src/test/heartbeat_map.cc | rpratap-bot/ceph | 9834961a66927ae856935591f2fd51082e2ee484 | [
"MIT"
] | 23 | 2020-03-24T10:28:44.000Z | 2020-09-24T09:42:19.000Z | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2011 New Dream Network
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License ... | 24.391304 | 70 | 0.705882 | rpratap-bot |
97bfd6b1afa3c9b4e7424549c0c9a5b3504573fc | 3,152 | cpp | C++ | Proj_Android/app/src/main/cpp/FAssetResolutionConfigurator.cpp | nraptis/Metal_OpenGL_MobileGameEngine | cc36682676a9797df8b3a7ee235b99be3ae2f666 | [
"MIT"
] | 3 | 2019-10-10T19:25:42.000Z | 2019-12-17T10:51:23.000Z | Framework/[C++ Core]/FAssetResolutionConfigurator.cpp | nraptis/Metal_OpenGL_MobileGameEngine | cc36682676a9797df8b3a7ee235b99be3ae2f666 | [
"MIT"
] | null | null | null | Framework/[C++ Core]/FAssetResolutionConfigurator.cpp | nraptis/Metal_OpenGL_MobileGameEngine | cc36682676a9797df8b3a7ee235b99be3ae2f666 | [
"MIT"
] | 1 | 2021-11-16T15:29:40.000Z | 2021-11-16T15:29:40.000Z | //
// FAssetResolutionConfigurator.cpp
// Crazy Darts 2 Mac
//
// Created by Nicholas Raptis on 8/24/19.
// Copyright © 2019 Froggy Studios. All rights reserved.
//
#include "FAssetResolutionConfigurator.hpp"
#include "core_includes.h"
FAssetResolutionConfigurator::FAssetResolutionConfigurator() {
mAssetScale... | 26.711864 | 138 | 0.618338 | nraptis |
97c00ffe046fd1a28516d261c40f835d364d2472 | 4,754 | cpp | C++ | lib/Transform/Mixed/DILoopRetriever.cpp | yukatan1701/tsar | a6f95cdaeb117ccd5fcb775b471b1aa17c45f4e8 | [
"Apache-2.0"
] | 14 | 2019-11-04T15:03:40.000Z | 2021-09-07T17:29:40.000Z | lib/Transform/Mixed/DILoopRetriever.cpp | yukatan1701/tsar | a6f95cdaeb117ccd5fcb775b471b1aa17c45f4e8 | [
"Apache-2.0"
] | 11 | 2019-11-29T21:18:12.000Z | 2021-12-22T21:36:40.000Z | lib/Transform/Mixed/DILoopRetriever.cpp | yukatan1701/tsar | a6f95cdaeb117ccd5fcb775b471b1aa17c45f4e8 | [
"Apache-2.0"
] | 17 | 2019-10-15T13:56:35.000Z | 2021-10-20T17:21:14.000Z | //===- DILoopRetriever.cpp - Loop Debug Info Retriever ----------*- C++ -*-===//
//
// Traits Static Analyzer (SAPFOR)
//
// Copyright 2018 DVM System Group
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// ... | 35.214815 | 80 | 0.657131 | yukatan1701 |
97c2319d0196bcbe3e6bc37de43e03e7692e9ba7 | 5,662 | hpp | C++ | include/eve/module/bessel/regular/impl/cyl_bessel_i1.hpp | clayne/eve | dc268b5db474376e1c53f5a474f5bb42b7c4cb59 | [
"MIT"
] | null | null | null | include/eve/module/bessel/regular/impl/cyl_bessel_i1.hpp | clayne/eve | dc268b5db474376e1c53f5a474f5bb42b7c4cb59 | [
"MIT"
] | null | null | null | include/eve/module/bessel/regular/impl/cyl_bessel_i1.hpp | clayne/eve | dc268b5db474376e1c53f5a474f5bb42b7c4cb59 | [
"MIT"
] | null | null | null | //==================================================================================================
/**
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
**/
//==================================================================================================
#... | 33.502959 | 102 | 0.475274 | clayne |
97c3f9f388f29a31d560c68312af51bfb687b671 | 1,632 | cpp | C++ | source/Libraries/AES/MyAES.cpp | febrihendra88/whatsapp-viewer | 2b4e727dfba3ad7847a13588854364ca97e4725b | [
"MIT"
] | 3 | 2018-12-21T14:46:32.000Z | 2019-02-03T14:12:26.000Z | source/Libraries/AES/MyAES.cpp | febrihendra88/whatsapp-viewer | 2b4e727dfba3ad7847a13588854364ca97e4725b | [
"MIT"
] | null | null | null | source/Libraries/AES/MyAES.cpp | febrihendra88/whatsapp-viewer | 2b4e727dfba3ad7847a13588854364ca97e4725b | [
"MIT"
] | 3 | 2018-10-27T13:28:29.000Z | 2021-04-05T15:35:50.000Z | #include "mbedtls/aes.h"
#include "mbedtls/gcm.h"
#include "../../Exceptions/Exception.h"
int aesBlocksize = 16;
void decrypt_aes_cbc_192(const unsigned char *input, unsigned char *output, int length, const unsigned char *key, unsigned char *initVector)
{
mbedtls_aes_context context;
mbedtls_aes_setkey_dec(&contex... | 32.64 | 140 | 0.753676 | febrihendra88 |
97c671b04ca89750abeaa38411289ce93a02a286 | 6,388 | cpp | C++ | kernel/pager.cpp | shockkolate/shockk-os | 1cbe2e14be6a8dd4bbe808e199284b6979dacdff | [
"Apache-2.0"
] | 2 | 2015-11-16T07:30:38.000Z | 2016-03-26T21:14:42.000Z | kernel/pager.cpp | shockkolate/shockk-os | 1cbe2e14be6a8dd4bbe808e199284b6979dacdff | [
"Apache-2.0"
] | null | null | null | kernel/pager.cpp | shockkolate/shockk-os | 1cbe2e14be6a8dd4bbe808e199284b6979dacdff | [
"Apache-2.0"
] | null | null | null | #include <kernel/pager.h>
////////////////////
// Pager::Context //
////////////////////
Pager::Context::Context(Pager *parent, Directory *dir, bool copy_kernel_pages)
: parent(parent), directory(dir) {
// initialize directory
for(unsigned int table = 0; table < 1024; ++table) {
directory->t... | 28.391111 | 94 | 0.673294 | shockkolate |
97ca1c91bc78f5044677d73567326e1b39acfedc | 507 | cpp | C++ | llistTests.cpp | iankronquist/llist | b04b2af49e5104426b457358bdae2c96540fa27c | [
"MIT"
] | 1 | 2019-04-08T05:16:56.000Z | 2019-04-08T05:16:56.000Z | llistTests.cpp | iankronquist/llist | b04b2af49e5104426b457358bdae2c96540fa27c | [
"MIT"
] | null | null | null | llistTests.cpp | iankronquist/llist | b04b2af49e5104426b457358bdae2c96540fa27c | [
"MIT"
] | null | null | null | #include "llist.hpp"
#include <cstdio>
#include <cassert>
bool testllistCreationAndDestruction();
int main()
{
bool passed = true;
passed = testllistCreationAndDestruction();
return 0;
}
bool testllistCreationAndDestruction()
{
int array[10] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
//struct llist* arr = llistCreate... | 19.5 | 52 | 0.690335 | iankronquist |
97d3f3c46d065b2086da8484f4aac86cdd69623a | 2,999 | cpp | C++ | trie.cpp | kuznetsovlv/sf_dictionary | 2305cfebdac00c6aa51238f0fff18507ba33ecda | [
"MIT"
] | null | null | null | trie.cpp | kuznetsovlv/sf_dictionary | 2305cfebdac00c6aa51238f0fff18507ba33ecda | [
"MIT"
] | null | null | null | trie.cpp | kuznetsovlv/sf_dictionary | 2305cfebdac00c6aa51238f0fff18507ba33ecda | [
"MIT"
] | null | null | null | #include <map>
#include <vector>
#include <string>
#include "trie.h"
Node::Node(const size_t size):_endOfWord(false)
{
for(size_t i = 0; i < size; ++i)
{
_children.push_back(nullptr);
}
}
Node::~Node()
{
for(Node *child: _children)
{
if(child)
{
delete child;
}
}
}
Trie::Trie(const std::wstring& let... | 13.509009 | 111 | 0.6012 | kuznetsovlv |
97d94fea5abee56700846d38dcc06c4c5aeec400 | 3,751 | cpp | C++ | src/newuser.cpp | dmakian/FlashcardPro | 0537e7483015cd0c0ec6bc01875f9d592a9f284d | [
"MIT"
] | null | null | null | src/newuser.cpp | dmakian/FlashcardPro | 0537e7483015cd0c0ec6bc01875f9d592a9f284d | [
"MIT"
] | null | null | null | src/newuser.cpp | dmakian/FlashcardPro | 0537e7483015cd0c0ec6bc01875f9d592a9f284d | [
"MIT"
] | null | null | null | #include "newuser.h"
#include <QtWidgets>
NewUser::NewUser(QStackedWidget* pages_in, LogIn* parent_in, UserSelect* select_parent)
{
QFrame();
pages = pages_in;
parent = parent_in;
select = select_parent;
//qDebug() << "making new user ";
QLabel* title = new QLabel("Create New User");
QFont ... | 25.868966 | 103 | 0.642229 | dmakian |
97da700cc22468835e5f39229270fa1bf8071776 | 173 | hpp | C++ | events/teleport.hpp | ErikBehar/randballs | ae29c22ba46a22f6ee11902043f7fce37c600bcc | [
"MIT"
] | 29 | 2018-05-17T14:08:16.000Z | 2021-12-01T08:15:03.000Z | events/teleport.hpp | ErikBehar/randballs | ae29c22ba46a22f6ee11902043f7fce37c600bcc | [
"MIT"
] | 4 | 2018-09-04T13:46:19.000Z | 2020-05-15T16:05:35.000Z | events/teleport.hpp | ErikBehar/randballs | ae29c22ba46a22f6ee11902043f7fce37c600bcc | [
"MIT"
] | 2 | 2020-03-30T05:19:37.000Z | 2020-04-24T03:02:25.000Z | #pragma once
namespace GameEvent
{
struct Teleport
{
Teleport(unsigned int who, unsigned int where) : who(who), where(where)
{
}
unsigned int who, where;
};
};
| 12.357143 | 73 | 0.66474 | ErikBehar |
97dcf41ab942e4beb8c620ced8ca785e6143dfcb | 127 | hpp | C++ | source/color.hpp | Lucius-sama/programmiersprachen-aufgabenblatt-2 | 35c98e73aece7c490269db35d0bfd595086a473a | [
"MIT"
] | null | null | null | source/color.hpp | Lucius-sama/programmiersprachen-aufgabenblatt-2 | 35c98e73aece7c490269db35d0bfd595086a473a | [
"MIT"
] | null | null | null | source/color.hpp | Lucius-sama/programmiersprachen-aufgabenblatt-2 | 35c98e73aece7c490269db35d0bfd595086a473a | [
"MIT"
] | null | null | null | #ifndef COLOR_HPP
#define COLOR_HPP
struct Color
{
float r = 0.5f;
float g = 0.5f;
float b = 0.5f;
};
#endif // !COLOR_HPP
| 11.545455 | 20 | 0.645669 | Lucius-sama |
97dfc03653ffcc1d82c73587bd2e248a122c209f | 3,669 | cpp | C++ | src/Model3D/Texture.cpp | lsfcin/air-guitar-framework | eb3e00a9496e52f9df95364b11e6c9dd6501bb01 | [
"MIT"
] | null | null | null | src/Model3D/Texture.cpp | lsfcin/air-guitar-framework | eb3e00a9496e52f9df95364b11e6c9dd6501bb01 | [
"MIT"
] | null | null | null | src/Model3D/Texture.cpp | lsfcin/air-guitar-framework | eb3e00a9496e52f9df95364b11e6c9dd6501bb01 | [
"MIT"
] | null | null | null | /*
* ---------------- www.spacesimulator.net --------------
* ---- Space simulators and 3d engine tutorials ----
*
* Author: Damiano Vitulli <info@spacesimulator.net>
*
* ALL RIGHTS RESERVED
*
*
* Tutorial 4: 3d engine - 3ds models loader
*
* Include File: texture.cpp
*
*/
#include "Texture.h"
/***... | 37.060606 | 152 | 0.638321 | lsfcin |
97e172c08281b1c234a9b8aa91330e585fca8216 | 2,126 | cpp | C++ | libcxx/test/std/ranges/range.adaptors/range.lazy.split/ctor.copy_move.pass.cpp | ornata/llvm-project | 494913b8b4e4bce0b3525e5569d8e486e82b9a52 | [
"Apache-2.0"
] | null | null | null | libcxx/test/std/ranges/range.adaptors/range.lazy.split/ctor.copy_move.pass.cpp | ornata/llvm-project | 494913b8b4e4bce0b3525e5569d8e486e82b9a52 | [
"Apache-2.0"
] | null | null | null | libcxx/test/std/ranges/range.adaptors/range.lazy.split/ctor.copy_move.pass.cpp | ornata/llvm-project | 494913b8b4e4bce0b3525e5569d8e486e82b9a52 | [
"Apache-2.0"
] | null | null | null | //===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 23.362637 | 108 | 0.545155 | ornata |
97e24797d4aef427bd2d45913ac1933b8419f4e8 | 5,276 | cpp | C++ | Nacro/SDK/FN_ItemUIFunctionLibrary_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_ItemUIFunctionLibrary_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2021-08-11T18:40:26.000Z | 2021-08-11T18:40:26.000Z | Nacro/SDK/FN_ItemUIFunctionLibrary_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | // Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Functions
//---------------------------------------------------------------------------
// Function ItemUIFunctionLibrary.ItemUI... | 40.584615 | 190 | 0.692381 | Milxnor |
97e25aafdba6a94e229f6983ee9b048916919aec | 2,418 | cc | C++ | pigasus/software/src/ports/port_group.cc | zhipengzhaocmu/fpga2022_artifact | 0ac088a5b04c5c75ae6aef25202b66b0f674acd3 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | pigasus/software/src/ports/port_group.cc | zhipengzhaocmu/fpga2022_artifact | 0ac088a5b04c5c75ae6aef25202b66b0f674acd3 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | pigasus/software/src/ports/port_group.cc | zhipengzhaocmu/fpga2022_artifact | 0ac088a5b04c5c75ae6aef25202b66b0f674acd3 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | //--------------------------------------------------------------------------
// Copyright (C) 2014-2018 Cisco and/or its affiliates. All rights reserved.
// Copyright (C) 2002-2013 Sourcefire, Inc.
//
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public... | 26.282609 | 76 | 0.623656 | zhipengzhaocmu |
97e31f538b4048f9b7a0a361cb3896672e4fc411 | 1,687 | cpp | C++ | YaMang/YaMangClient/YaMangClient/YaMangClient/MapManager.cpp | zrma/2014-01-HUDIGAME-EunJaRim | 3fd9785f8d33b255c6c4b5800bae5aafce666be4 | [
"MIT"
] | null | null | null | YaMang/YaMangClient/YaMangClient/YaMangClient/MapManager.cpp | zrma/2014-01-HUDIGAME-EunJaRim | 3fd9785f8d33b255c6c4b5800bae5aafce666be4 | [
"MIT"
] | null | null | null | YaMang/YaMangClient/YaMangClient/YaMangClient/MapManager.cpp | zrma/2014-01-HUDIGAME-EunJaRim | 3fd9785f8d33b255c6c4b5800bae5aafce666be4 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "MapManager.h"
#include "yaMangDxDll.h"
#include "Logger.h"
#include "GlobalVar.h"
MapManager::MapManager()
{
}
MapManager::~MapManager()
{
}
float MapManager::GetHeightByPosition( float x, float z )
{
if ( !m_HeightMap )
{
return 0.0f;
}
x /= m_PixelSize;
z /= m_PixelSize;
x... | 21.909091 | 92 | 0.632484 | zrma |
97e64781e44a9fb43c1038bebf3cff2369684e86 | 150 | cc | C++ | spectator/common_refs.cc | dmuino/spectatord | 6f0165ffb27dbe03cde316aaec85957f8c333522 | [
"Apache-2.0"
] | null | null | null | spectator/common_refs.cc | dmuino/spectatord | 6f0165ffb27dbe03cde316aaec85957f8c333522 | [
"Apache-2.0"
] | null | null | null | spectator/common_refs.cc | dmuino/spectatord | 6f0165ffb27dbe03cde316aaec85957f8c333522 | [
"Apache-2.0"
] | null | null | null | #include "common_refs.h"
namespace spectator {
Refs& refs() {
static auto* the_refs = new Refs();
return *the_refs;
}
} // namespace spectator | 15 | 37 | 0.68 | dmuino |
97f02180ee282f87987d33bfc3d249fcbc045da8 | 352 | cpp | C++ | tutorial/expl-19.cpp | qPCR4vir/sdsl-lite | 3ae7ac30c3837553cf20243cc3df8ee658b9f00f | [
"BSD-3-Clause"
] | 20 | 2017-12-26T16:04:18.000Z | 2022-02-09T03:30:13.000Z | tutorial/expl-19.cpp | Irallia/sdsl-lite | 9a0d5676fd09fb8b52af214eca2d5809c9a32dbe | [
"BSD-3-Clause"
] | 6 | 2018-11-12T15:14:24.000Z | 2021-04-29T14:07:13.000Z | tutorial/expl-19.cpp | Irallia/sdsl-lite | 9a0d5676fd09fb8b52af214eca2d5809c9a32dbe | [
"BSD-3-Clause"
] | 4 | 2018-11-12T14:36:34.000Z | 2021-01-26T22:16:32.000Z | #include <sdsl/suffix_arrays.hpp>
#include <iostream>
#include <algorithm>
using namespace std;
using namespace sdsl;
int main()
{
csa_wt<wt_int<rrr_vector<63>>> csa;
construct_im(csa, "1 8 15 23 1 8 23 11 8", 'd');
cout << " i SA ISA PSI LF BWT T[SA[i]..SA[i]-1]" << endl;
csXprintf(cout, "%2I %2S %... | 23.466667 | 63 | 0.613636 | qPCR4vir |
97f5a8bae7fb3e4b5b36b837b4d4ee34bd3a9fed | 1,109 | hpp | C++ | library/include/darcel/reactors/none_reactor.hpp | spiretrading/darcel | a9c32989ad9c1571edaa41c7c3a86b276b782c0d | [
"MIT"
] | null | null | null | library/include/darcel/reactors/none_reactor.hpp | spiretrading/darcel | a9c32989ad9c1571edaa41c7c3a86b276b782c0d | [
"MIT"
] | null | null | null | library/include/darcel/reactors/none_reactor.hpp | spiretrading/darcel | a9c32989ad9c1571edaa41c7c3a86b276b782c0d | [
"MIT"
] | 1 | 2020-04-17T13:25:25.000Z | 2020-04-17T13:25:25.000Z | #ifndef DARCEL_NONE_REACTOR_HPP
#define DARCEL_NONE_REACTOR_HPP
#include <memory>
#include "darcel/reactors/reactor.hpp"
#include "darcel/reactors/reactor_unavailable_exception.hpp"
#include "darcel/reactors/reactors.hpp"
namespace darcel {
//! A reactor that never produces an evaluation.
template<typename T>
c... | 23.104167 | 62 | 0.704238 | spiretrading |
3f03a4c58a3b54235c29b6398a4a68ca05bf86de | 5,580 | cpp | C++ | testogl.cpp | twareintor/Spaceship-simulator | 9b960eebbf86d36bad908e822f481a87247424c1 | [
"MIT"
] | null | null | null | testogl.cpp | twareintor/Spaceship-simulator | 9b960eebbf86d36bad908e822f481a87247424c1 | [
"MIT"
] | null | null | null | testogl.cpp | twareintor/Spaceship-simulator | 9b960eebbf86d36bad908e822f481a87247424c1 | [
"MIT"
] | null | null | null | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////... | 46.115702 | 130 | 0.3 | twareintor |
3f04d3a1ab1a2e4a2d80d90cb77aae08ffd5f12c | 28,768 | cpp | C++ | 8 Puzzle/Main.cpp | CaiGwatkin/CPP_AI8Puzzle | 8c98a48eb6aa75d8da8254d57297039101833122 | [
"MIT"
] | null | null | null | 8 Puzzle/Main.cpp | CaiGwatkin/CPP_AI8Puzzle | 8c98a48eb6aa75d8da8254d57297039101833122 | [
"MIT"
] | null | null | null | 8 Puzzle/Main.cpp | CaiGwatkin/CPP_AI8Puzzle | 8c98a48eb6aa75d8da8254d57297039101833122 | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////////////////
// 8-PUZZLE PROBLEM
//
// Start-up codes by n.h.reyes@massey.ac.nz
//
// Name(s): Cai Gwatkin - 15146508
// Date:
//
//////////////////////////////////////////////////////////////////////////
#include <windows.h>
#include <stdio.h>
#incl... | 57.767068 | 308 | 0.459017 | CaiGwatkin |
3f053570b45d96020f9f006c691383e5311de321 | 12,093 | cpp | C++ | src/bkGL/texture/TextureCubeMap.cpp | BenKoehler/bk | 53d9ce99cf54fe01dbb3b22ff2418cd102e20ee3 | [
"MIT"
] | 4 | 2018-12-08T15:35:38.000Z | 2021-08-06T03:23:06.000Z | src/bkGL/texture/TextureCubeMap.cpp | BenKoehler/bk | 53d9ce99cf54fe01dbb3b22ff2418cd102e20ee3 | [
"MIT"
] | null | null | null | src/bkGL/texture/TextureCubeMap.cpp | BenKoehler/bk | 53d9ce99cf54fe01dbb3b22ff2418cd102e20ee3 | [
"MIT"
] | null | null | null | /*
* MIT License
*
* Copyright (c) 2018-2019 Benjamin Köhler
*
* 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, c... | 42.135889 | 669 | 0.563797 | BenKoehler |