hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
adb691655fc12ff7d80057fa19269c27649eb209 | 9,236 | cpp | C++ | dev/mesh.cpp | 22427/oflibs | 9e84ad98835799584f88d117bf06116cedd68068 | [
"MIT"
] | 2 | 2018-09-03T13:40:39.000Z | 2020-08-25T15:16:48.000Z | dev/mesh.cpp | 22427/oflibs | 9e84ad98835799584f88d117bf06116cedd68068 | [
"MIT"
] | null | null | null | dev/mesh.cpp | 22427/oflibs | 9e84ad98835799584f88d117bf06116cedd68068 | [
"MIT"
] | 1 | 2020-08-25T15:16:52.000Z | 2020-08-25T15:16:52.000Z |
#include "mesh.h"
#include <set>
#include <algorithm>
namespace ofl
{
using namespace glm;
int addVtx(std::map<vec3,int,Comperator<vec3>>& map ,const vec3& pos, std::vector<MeshVertex>& vtxs)
{
if(map.find(pos)== map.end())
{
map[pos] = static_cast<int>(vtxs.size());
vtxs.push_back(MeshVertex(pos));
}
return ... | 19.043299 | 120 | 0.628844 | 22427 |
adba37535e38816fc7518c752559ae680918631c | 1,627 | cpp | C++ | C++/matrix-zigzag-traversal.cpp | xenron/sandbox-dev-lintcode | 114145723af43eafc84ff602ad3ac7b353a9fc38 | [
"MIT"
] | 695 | 2015-04-18T16:11:56.000Z | 2022-03-11T13:28:44.000Z | C++/matrix-zigzag-traversal.cpp | Abd-Elrazek/LintCode | 8f6ee0ff38cb7cf8bf9fca800243823931604155 | [
"MIT"
] | 4 | 2015-07-04T13:07:35.000Z | 2020-08-11T11:32:29.000Z | C++/matrix-zigzag-traversal.cpp | Abd-Elrazek/LintCode | 8f6ee0ff38cb7cf8bf9fca800243823931604155 | [
"MIT"
] | 338 | 2015-04-28T04:39:03.000Z | 2022-03-16T03:00:15.000Z | // Time: O(m * n)
// Space: O(1)
class Solution {
public:
/**
* @param matrix: a matrix of integers
* @return: a vector of integers
*/
vector<int> printZMatrix(vector<vector<int>> &matrix) {
vector<int> zigzag;
const int m = matrix.size(), n = matrix[0].size();
for (int... | 26.241935 | 75 | 0.372465 | xenron |
adbc5e37c3060f8308e47de0ff7c5b816c5a425b | 632 | cpp | C++ | usermanual.cpp | athenabjorg/sacr | f923d91cd754258af53d65448e9e870cec274c2e | [
"MIT"
] | 1 | 2016-11-29T10:55:55.000Z | 2016-11-29T10:55:55.000Z | usermanual.cpp | athenabjorg/sacr | f923d91cd754258af53d65448e9e870cec274c2e | [
"MIT"
] | null | null | null | usermanual.cpp | athenabjorg/sacr | f923d91cd754258af53d65448e9e870cec274c2e | [
"MIT"
] | 1 | 2016-11-29T10:40:25.000Z | 2016-11-29T10:40:25.000Z | #include "usermanual.h"
#include "ui_usermanual.h"
using namespace std;
UserManual::UserManual(QWidget *parent) :
QDialog(parent),
ui(new Ui::UserManual)
{
ui->setupUi(this);
printLogo();
ui->userManualText->setStyleSheet("background-color: rgba( 255, 255, 255, 0% );");
}
UserManual::~UserManua... | 21.066667 | 86 | 0.685127 | athenabjorg |
adbdb7ef02966eed2920cf5186186e737e302caf | 4,050 | hpp | C++ | Axis.SystemBase/string_traits.hpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | 2 | 2021-07-23T08:49:54.000Z | 2021-07-29T22:07:30.000Z | Axis.SystemBase/string_traits.hpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | Axis.SystemBase/string_traits.hpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | #pragma once
#include <tchar.h>
#include <xstring>
#include <iosfwd>
#include "AxisString.hpp"
template <> struct std::iterator_traits<axis::AsciiString::iterator> {
typedef axis::AsciiString::iterator::difference_type difference_type;
typedef axis::AsciiString::iterator::value_type value_type;
typedef axis::Asc... | 31.153846 | 119 | 0.678519 | renato-yuzup |
adc10cb466176a6e3fd48945a5d4d65b37285630 | 7,150 | cpp | C++ | src/api.cpp | Veeloxfire/Axle | 39ae2a830fb866e43d1f8f8e3bddd124f7309c16 | [
"MIT"
] | 2 | 2022-02-01T11:23:40.000Z | 2022-02-06T14:46:21.000Z | src/api.cpp | Veeloxfire/Axle | 39ae2a830fb866e43d1f8f8e3bddd124f7309c16 | [
"MIT"
] | null | null | null | src/api.cpp | Veeloxfire/Axle | 39ae2a830fb866e43d1f8f8e3bddd124f7309c16 | [
"MIT"
] | null | null | null |
static_assert(sizeof(void*) == 8, "Currently only builds in 64 bit");
#include "PE_file_format.h"
#include "api.h"
#include "vm.h"
#include "bytecode.h"
#include "parser.h"
#include "compiler.h"
#include "strings.h"
#include "ast.h"
#include "windows_specifics.h"
#include "files.h"
#include "backends.h"
#include... | 26 | 130 | 0.653007 | Veeloxfire |
adcb892dbb2a4e5c59d9a8190867708152721004 | 476 | cpp | C++ | ABC/abc124/b.cpp | EnsekiTT/atcoder | 6b40332d1b2493d1b6c00c9f1912895a67a3bbcb | [
"MIT"
] | null | null | null | ABC/abc124/b.cpp | EnsekiTT/atcoder | 6b40332d1b2493d1b6c00c9f1912895a67a3bbcb | [
"MIT"
] | null | null | null | ABC/abc124/b.cpp | EnsekiTT/atcoder | 6b40332d1b2493d1b6c00c9f1912895a67a3bbcb | [
"MIT"
] | null | null | null | #include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<cmath>
#include <climits>
using namespace std;
int main()
{
int N;
cin >> N;
vector<int> H(N);
for(int i=0; i<N; i++){
cin >> H[i];
}
int count = 1;
int look = 1;
for(int i=1; i<N; i++){
int look = 1;
for(in... | 13.6 | 27 | 0.487395 | EnsekiTT |
add2f23c4327f0f2446c0666ba6ef540c0e936c7 | 495 | cpp | C++ | solution/205/sol1.cpp | PerfectPan/LeetCode | 2fb56b8eab1acecf7fe82ef3f637117d11e9e969 | [
"MIT"
] | null | null | null | solution/205/sol1.cpp | PerfectPan/LeetCode | 2fb56b8eab1acecf7fe82ef3f637117d11e9e969 | [
"MIT"
] | null | null | null | solution/205/sol1.cpp | PerfectPan/LeetCode | 2fb56b8eab1acecf7fe82ef3f637117d11e9e969 | [
"MIT"
] | null | null | null | class Solution {
public:
bool isIsomorphic(string s, string t) {
unordered_map<char, int> trans;
unordered_map<char, bool> vis;
for (int i = 0; i < s.length(); ++i) {
int idxa = s[i] - 'a', idxb = t[i] - 'a';
if (trans.find(idxa) != trans.end() && trans[idxa] != idxb) {
return false;
... | 24.75 | 67 | 0.513131 | PerfectPan |
adda9a2823271e1e0fd09d72ee34d647095d4583 | 5,043 | cpp | C++ | src/processor.cpp | RICSecLab/coresight-decoder | 3b0aebd1a09436727daa5897305d691b35e66c68 | [
"Apache-2.0"
] | 2 | 2021-11-11T02:37:29.000Z | 2021-11-11T08:08:27.000Z | src/processor.cpp | RICSecLab/coresight-decoder | 3b0aebd1a09436727daa5897305d691b35e66c68 | [
"Apache-2.0"
] | null | null | null | src/processor.cpp | RICSecLab/coresight-decoder | 3b0aebd1a09436727daa5897305d691b35e66c68 | [
"Apache-2.0"
] | null | null | null | /* SPDX-License-Identifier: Apache-2.0 */
/* Copyright 2021 Ricerca Security, Inc. All rights reserved. */
#include <cassert>
#include <cstdint>
#include <cstring>
#include <iostream>
#include <linux/limits.h>
#include <vector>
#include "bitmap.hpp"
#include "cache.hpp"
#include "common.hpp"
#include "decoder.hpp"
#i... | 33.177632 | 80 | 0.60579 | RICSecLab |
addd8f539aef180b4845ffcb2f847a8770aa9f99 | 7,390 | hpp | C++ | agency/cuda/execution/detail/kernel/bulk_then_execute_concurrent_kernel.hpp | ccecka/agency | 729f5346e842c9cef3ad6f34d18d17a96a001a75 | [
"BSD-3-Clause"
] | null | null | null | agency/cuda/execution/detail/kernel/bulk_then_execute_concurrent_kernel.hpp | ccecka/agency | 729f5346e842c9cef3ad6f34d18d17a96a001a75 | [
"BSD-3-Clause"
] | null | null | null | agency/cuda/execution/detail/kernel/bulk_then_execute_concurrent_kernel.hpp | ccecka/agency | 729f5346e842c9cef3ad6f34d18d17a96a001a75 | [
"BSD-3-Clause"
] | 1 | 2019-06-10T06:21:44.000Z | 2019-06-10T06:21:44.000Z | #pragma once
#include <agency/detail/config.hpp>
#include <agency/cuda/execution/detail/kernel/launch_cooperative_kernel.hpp>
#include <agency/cuda/execution/detail/kernel/bulk_then_execute_kernel.hpp>
#include <agency/cuda/detail/future/async_future.hpp>
#include <agency/cuda/device.hpp>
#include <agency/coordinate/d... | 56.412214 | 325 | 0.775643 | ccecka |
ade472329c1cf8892045a8eb3a43595b13e6957e | 13,387 | cpp | C++ | src/Tools/libpsid64/libpsid-theme.cpp | slajerek/RetroDebugger | e761e4f9efd103a05e65ef283423b142fa4324c7 | [
"Apache-2.0",
"MIT"
] | 34 | 2021-05-29T07:04:17.000Z | 2022-03-10T20:16:03.000Z | src/Tools/libpsid64/libpsid-theme.cpp | slajerek/RetroDebugger | e761e4f9efd103a05e65ef283423b142fa4324c7 | [
"Apache-2.0",
"MIT"
] | 6 | 2021-12-25T13:05:21.000Z | 2022-01-19T17:35:17.000Z | src/Tools/libpsid64/libpsid-theme.cpp | slajerek/RetroDebugger | e761e4f9efd103a05e65ef283423b142fa4324c7 | [
"Apache-2.0",
"MIT"
] | 6 | 2021-12-24T18:37:41.000Z | 2022-02-06T23:06:02.000Z | /*
$Id$
psid64 - create a C64 executable from a PSID file
Copyright (C) 2014 Roland Hermans <rolandh@users.sourceforge.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; e... | 32.571776 | 78 | 0.629118 | slajerek |
ade5660dd369dfea275483e4be70f9970cbbaba2 | 2,231 | cpp | C++ | src/camera/cfirstpersoncamera.cpp | sajis997/realtimecameras | f4c3a532d5c5c2747f68dd45cdf3fbf1aebf403f | [
"Unlicense",
"MIT"
] | 1 | 2021-07-22T10:35:35.000Z | 2021-07-22T10:35:35.000Z | src/camera/cfirstpersoncamera.cpp | sajis997/realtimecameras | f4c3a532d5c5c2747f68dd45cdf3fbf1aebf403f | [
"Unlicense",
"MIT"
] | null | null | null | src/camera/cfirstpersoncamera.cpp | sajis997/realtimecameras | f4c3a532d5c5c2747f68dd45cdf3fbf1aebf403f | [
"Unlicense",
"MIT"
] | 1 | 2020-01-10T14:59:52.000Z | 2020-01-10T14:59:52.000Z | #include "camera/cfirstpersoncamera.h"
#include "input/ccontrolmanager.h"
#include "ogrecamera.h"
#include "ogrevector3.h"
//------------------------------------------------------------------------------------------
using namespace rtc;
using namespace Ogre;
//----------------------------------------------------... | 34.323077 | 113 | 0.537875 | sajis997 |
ade93053b3feb6bf136a5229d29b859f5fd23acf | 520 | hpp | C++ | include/Screeps/Structure.hpp | UltraCoderRU/screepsxx | b249748d28764f706c4a210fbbf6abfe8684c7a3 | [
"MIT"
] | 5 | 2021-06-12T22:27:27.000Z | 2022-01-02T18:38:46.000Z | include/Screeps/Structure.hpp | UltraCoderRU/screepsxx | b249748d28764f706c4a210fbbf6abfe8684c7a3 | [
"MIT"
] | 1 | 2021-06-17T22:44:26.000Z | 2022-02-02T00:48:35.000Z | include/Screeps/Structure.hpp | UltraCoderRU/screepsxx | b249748d28764f706c4a210fbbf6abfe8684c7a3 | [
"MIT"
] | null | null | null | #ifndef SCREEPS_STRUCTURE_HPP
#define SCREEPS_STRUCTURE_HPP
#include "Constants.hpp"
#include "RoomObject.hpp"
namespace Screeps {
class Structure : public RoomObject
{
public:
explicit Structure(JS::Value value);
int hits() const;
int hitsMax() const;
std::string id() const;
std::string structureType() con... | 15.294118 | 58 | 0.746154 | UltraCoderRU |
adeb88e7395cc4fd6266b51ddfd8b133dc5c1275 | 304 | hpp | C++ | brain/plugins/vis/GraphicsSystem.hpp | elysia/elysia | 0cb48fa4ff1a27bc246263a18118df1f46b3b873 | [
"BSD-3-Clause"
] | 9 | 2015-08-08T05:16:45.000Z | 2022-02-09T09:53:22.000Z | brain/plugins/vis/GraphicsSystem.hpp | elysia/elysia | 0cb48fa4ff1a27bc246263a18118df1f46b3b873 | [
"BSD-3-Clause"
] | null | null | null | brain/plugins/vis/GraphicsSystem.hpp | elysia/elysia | 0cb48fa4ff1a27bc246263a18118df1f46b3b873 | [
"BSD-3-Clause"
] | 3 | 2015-10-21T11:11:11.000Z | 2021-01-11T19:08:29.000Z | #include <thread>
namespace Elysia {
class GraphicsSystem {
std::shared_ptr<std::thread> mRenderThread;
public:
int getWidth()const;
int getHeight()const;
GraphicsSystem();
~GraphicsSystem();
};
extern int glutKeyDown[256];
extern int glutSpecialKeyDown[256];
void Deinitialize();
}
| 19 | 47 | 0.717105 | elysia |
aded10fce4089897b5d62f3779b8bc830a868b1c | 2,013 | hpp | C++ | backend/interface/include/agiledisruption/server.hpp | Cyclic3/AgileDisruption | babc8f8607adf560806edd90681923af239085ba | [
"MIT"
] | null | null | null | backend/interface/include/agiledisruption/server.hpp | Cyclic3/AgileDisruption | babc8f8607adf560806edd90681923af239085ba | [
"MIT"
] | 1 | 2018-09-11T09:30:10.000Z | 2018-09-11T09:36:24.000Z | backend/interface/include/agiledisruption/server.hpp | FSCompSoc/AgileDisruption | babc8f8607adf560806edd90681923af239085ba | [
"MIT"
] | null | null | null | #pragma once
#include "agiledisruption/internal/common.hpp"
#include <unordered_map>
#include <functional>
#include <string>
#include <optional>
#include <shared_mutex>
#include <memory>
#define AGILEDISRUPTION_DEFINE_INTERFACE(...) \
std::shared_ptr<agiledisruption::api> interface = std::make_shared<agiledisruptio... | 27.575342 | 101 | 0.686538 | Cyclic3 |
adfa84dd24033ffd6963b8f6b459e7c67c3ae779 | 3,101 | cpp | C++ | Component Demo/BBox.cpp | dbechrd/CompositionDemo | 6a43aef15e6a63f00695dfc1434051ca50109dfe | [
"MIT"
] | 2 | 2015-01-23T06:08:36.000Z | 2016-12-29T18:15:31.000Z | Component Demo/BBox.cpp | dbechrd/CompositionDemo | 6a43aef15e6a63f00695dfc1434051ca50109dfe | [
"MIT"
] | null | null | null | Component Demo/BBox.cpp | dbechrd/CompositionDemo | 6a43aef15e6a63f00695dfc1434051ca50109dfe | [
"MIT"
] | null | null | null | #include "BBox.h"
#include "Vertex.h"
BBox::BBox(float x, float y, float z, float w, float h, float l)
{
//x, y, and z are center points
x -= (w/2);
y -= (h/2);
z -= (l/2);
//Add vertices
if(l == 0.0) {
vertices.push_back(new Vertex( x, y + h, z, 1.0f, 1.0f, 1.0f, TEX_BOTTOM_LEFT));
vertices.push_back(ne... | 43.069444 | 90 | 0.593035 | dbechrd |
adfe90873303d23629d95fa4ce79a59991053a51 | 3,223 | cpp | C++ | Tools/pdfcompare2/libhistogram/distribution.cpp | PETAMC/MDPI-Applied-Sciences-2021 | 25c7de4e1356ff69350409995085d7471d991cbd | [
"Apache-2.0"
] | 1 | 2021-06-02T17:45:37.000Z | 2021-06-02T17:45:37.000Z | Tools/pdfcompare2/libhistogram/distribution.cpp | PETAMC/MDPI-Applied-Sciences-2021 | 25c7de4e1356ff69350409995085d7471d991cbd | [
"Apache-2.0"
] | null | null | null | Tools/pdfcompare2/libhistogram/distribution.cpp | PETAMC/MDPI-Applied-Sciences-2021 | 25c7de4e1356ff69350409995085d7471d991cbd | [
"Apache-2.0"
] | null | null | null | #include <distribution.hpp>
#include <iostream>
#include <fstream>
#include <string>
#include <limits>
Distribution::Distribution(const char *path)
{
this->LoadSamples(path);
}
Distribution::~Distribution()
{
}
long Distribution::ParseLine(const std::string &line) const
{
size_t begin = line.find_first_of("... | 21.777027 | 85 | 0.512256 | PETAMC |
bc051b7f904fccb02916dd1b49fd1297bddcc56a | 1,869 | cpp | C++ | 2021/5/b.cpp | kidonm/advent-of-code | b304d99d60dcdd9d67105964f2c6a6d8729ecfd6 | [
"Apache-2.0"
] | null | null | null | 2021/5/b.cpp | kidonm/advent-of-code | b304d99d60dcdd9d67105964f2c6a6d8729ecfd6 | [
"Apache-2.0"
] | null | null | null | 2021/5/b.cpp | kidonm/advent-of-code | b304d99d60dcdd9d67105964f2c6a6d8729ecfd6 | [
"Apache-2.0"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using namespace std;
int sign(int i) {
if (i > 0) return 1;
if (i < 0) return -1;
return 0;
}
void swap(int &a, int &b... | 17.8 | 80 | 0.435527 | kidonm |
bc05aef1c8a307e9a1a24e479581f484bed514bd | 4,416 | cpp | C++ | source/Game/AI/Reasoner.cpp | Fabrice-Lainard-Programming/SubWorld | a8eb784232fa0e5257f07ec78021021558a956f4 | [
"MIT"
] | null | null | null | source/Game/AI/Reasoner.cpp | Fabrice-Lainard-Programming/SubWorld | a8eb784232fa0e5257f07ec78021021558a956f4 | [
"MIT"
] | null | null | null | source/Game/AI/Reasoner.cpp | Fabrice-Lainard-Programming/SubWorld | a8eb784232fa0e5257f07ec78021021558a956f4 | [
"MIT"
] | null | null | null |
// ----------------------------------------------------------------------------
//
//
// SubWorld -- SubMarine Game
//
// Copyright (c) 2020, F.Lainard
// Original author: F.Lainard
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation file... | 24.533333 | 79 | 0.5625 | Fabrice-Lainard-Programming |
bc0b7ab6f3750e16e9fa8c43afcef1d0517b20ff | 521 | cpp | C++ | Geometry/Sphere.cpp | mohsani/Geometry | 5682305c0be1883e84175c5cb9d7f559293e8d25 | [
"MIT"
] | null | null | null | Geometry/Sphere.cpp | mohsani/Geometry | 5682305c0be1883e84175c5cb9d7f559293e8d25 | [
"MIT"
] | null | null | null | Geometry/Sphere.cpp | mohsani/Geometry | 5682305c0be1883e84175c5cb9d7f559293e8d25 | [
"MIT"
] | null | null | null | #include "Sphere.h"
Sphere::Sphere(string color, float centerX, float centerY, float centerZ, float radius)
: ThreeDimensional(color, centerX, centerY, centerZ)
{
this->radius = radius;
cout << "A sphere was created!\n";
}
float Sphere::area()
{
return (4 * PI * radius * radius);
}
float Sphere::vo... | 17.965517 | 88 | 0.639155 | mohsani |
bc12b6c31281b9d6de00596d83d4796efadfa614 | 602 | cpp | C++ | projects/abuild/cache/module_partition.cpp | agnesoft/adev-alt | 3df0329939e3048bbf5db252efb5f74de9c0f061 | [
"Apache-2.0"
] | null | null | null | projects/abuild/cache/module_partition.cpp | agnesoft/adev-alt | 3df0329939e3048bbf5db252efb5f74de9c0f061 | [
"Apache-2.0"
] | null | null | null | projects/abuild/cache/module_partition.cpp | agnesoft/adev-alt | 3df0329939e3048bbf5db252efb5f74de9c0f061 | [
"Apache-2.0"
] | null | null | null | #ifndef __clang__
export module abuild.cache:module_partition;
export import :file;
#endif
namespace abuild
{
export struct Module;
export struct SourceFile;
//! The `ModulePartition` is C++ module partition.
export struct ModulePartition
{
//! Name of the partition.
std::string name;
//! Underlying sour... | 20.066667 | 51 | 0.709302 | agnesoft |
bc22fdc4b942b89820e416004b34911fd35ea282 | 748 | hpp | C++ | gui/widgets/fwVisualWidget.hpp | erythrocyte/bleqt | 4abd7b2991e77d2cc344ecf3a1c3ee47d9d559d5 | [
"MIT"
] | null | null | null | gui/widgets/fwVisualWidget.hpp | erythrocyte/bleqt | 4abd7b2991e77d2cc344ecf3a1c3ee47d9d559d5 | [
"MIT"
] | 71 | 2020-09-04T13:52:54.000Z | 2022-01-04T20:19:49.000Z | gui/widgets/fwVisualWidget.hpp | erythrocyte/ble | b9e00bd02a3493de24fdb8d4edff4effcd62daa8 | [
"MIT"
] | null | null | null | #ifndef BLE_GUI_WIDGETS_FWVISUALWIDGET_H_
#define BLE_GUI_WIDGETS_FWVISUALWIDGET_H_
#include <functional>
#include <iostream>
#include <memory>
#include <vector>
#include "models/fwModel.hpp"
#include "uis/ui_fwVisualWidget.hpp"
using namespace QtCharts;
namespace ble::gui::widgets {
class FwVisualWidget : public Q... | 18.7 | 61 | 0.72861 | erythrocyte |
bc24c5ca7dcaab8db2b25916e6acaf4582736061 | 2,606 | cpp | C++ | Section7/Vectors/main.cpp | Yash-Singh1/cpp-programming | 696c1dcff18af8e798fae6126a3b13f6259af4b7 | [
"MIT"
] | null | null | null | Section7/Vectors/main.cpp | Yash-Singh1/cpp-programming | 696c1dcff18af8e798fae6126a3b13f6259af4b7 | [
"MIT"
] | null | null | null | Section7/Vectors/main.cpp | Yash-Singh1/cpp-programming | 696c1dcff18af8e798fae6126a3b13f6259af4b7 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
int main()
{
// vector <char> vowels; // empty
// vector <char> vowels (5); // 5 elements, all 0
vector <char> vowels {'a', 'e', 'i', 'o', 'u'};
cout << vowels[0] << endl;
cout << vowels[4] << endl;
// vector <int> test_scores (3... | 31.02381 | 88 | 0.558327 | Yash-Singh1 |
bc2c8fc0f8b32beb5c6f670a3c049c59c3ddaf8b | 11,609 | cpp | C++ | logic/GeDouJia.cpp | chntujia/CodfiyAsteriatedGrailClient | 5e148f2f31783fcf4ecb6b46d94245a8d2f9a8f6 | [
"MIT"
] | 23 | 2016-01-14T01:44:18.000Z | 2021-11-07T05:36:21.000Z | logic/GeDouJia.cpp | chntujia/CodfiyAsteriatedGrailClient | 5e148f2f31783fcf4ecb6b46d94245a8d2f9a8f6 | [
"MIT"
] | null | null | null | logic/GeDouJia.cpp | chntujia/CodfiyAsteriatedGrailClient | 5e148f2f31783fcf4ecb6b46d94245a8d2f9a8f6 | [
"MIT"
] | 8 | 2016-01-11T06:28:06.000Z | 2020-05-17T11:03:53.000Z | #include "GeDouJia.h"
enum CAUSE{
NIAN_QI_LI_CHANG = 2001,
XU_LI_YI_JI = 2002,
NIAN_DAN = 2003,
NIAN_DAN_SELF = 2031,
BAI_SHI_HUAN_LONG_QUAN = 2004,
CANG_YAN_ZHI_HUN = 2005,
DOU_SHEN_TIAN_QU = 2006,
XU_LI_CANG_YAN = 2025,
BAI_SHI_DOU_SHEN = 2046
};
GeDouJia::GeDouJia()... | 25.855234 | 72 | 0.544922 | chntujia |
bc2cb49950b5e19572e9c1deb38160ef3fb56a90 | 23,355 | cpp | C++ | qt/app/notificator.cpp | qbit-t/qb | c1fd82df3838f8526fc5e335254529ab6f953f78 | [
"MIT"
] | 1 | 2021-02-14T04:04:50.000Z | 2021-02-14T04:04:50.000Z | qt/app/notificator.cpp | qbit-t/qb | c1fd82df3838f8526fc5e335254529ab6f953f78 | [
"MIT"
] | null | null | null | qt/app/notificator.cpp | qbit-t/qb | c1fd82df3838f8526fc5e335254529ab6f953f78 | [
"MIT"
] | 1 | 2021-08-28T07:42:43.000Z | 2021-08-28T07:42:43.000Z | #include "notificator.h"
#include "notificator_p.h"
#include "client.h"
#include <QtGui>
#include <QGraphicsOpacityEffect>
namespace {
const float WINDOW_TRANSPARENT_OPACITY = 0.9;
const float WINDOW_NONTRANSPARENT_OPACITY = 1.0;
const int NOTIFICATION_MARGIN = 10;
const int DEFAULT_MESSAGE_SHOW_TIME = 10000;
}
... | 33.412017 | 240 | 0.699037 | qbit-t |
bc2d22b122c0195b42a530fbe1b44f9423a05d8a | 1,124 | hpp | C++ | src/speciesinfo/species_info.hpp | gyselax/gyselalibxx | 5f9b4b1e20050f87e2a9f05d510bedf0f9a15b34 | [
"MIT"
] | 3 | 2022-02-28T08:47:07.000Z | 2022-03-01T10:29:08.000Z | src/speciesinfo/species_info.hpp | gyselax/gyselalibxx | 5f9b4b1e20050f87e2a9f05d510bedf0f9a15b34 | [
"MIT"
] | null | null | null | src/speciesinfo/species_info.hpp | gyselax/gyselalibxx | 5f9b4b1e20050f87e2a9f05d510bedf0f9a15b34 | [
"MIT"
] | null | null | null | // SPDX-License-Identifier: MIT
#pragma once
#include "geometry.hpp"
class SpeciesInformation
{
private:
// charge of the particles (kinetic + adiabatic)
FieldSp<int> const m_charge;
// mass of the particles of all kinetic species
FieldSp<double> const m_mass;
// Initial perturbation amplitude ... | 20.436364 | 69 | 0.641459 | gyselax |
bc342e81ebb8c93ce4bb618c99f0d179478b94a6 | 580 | hpp | C++ | knights/table/user/item4sale.hpp | bada-studio/knights_contract | 8b90d5a90dec7b5ac44061f7537a52185fbc3789 | [
"MIT",
"Unlicense"
] | 141 | 2018-07-23T16:59:08.000Z | 2021-12-03T03:51:59.000Z | knights/table/user/item4sale.hpp | the-oasis-protocol/knights_contract | 8b90d5a90dec7b5ac44061f7537a52185fbc3789 | [
"Unlicense",
"MIT"
] | 59 | 2018-07-26T07:09:38.000Z | 2020-10-27T13:28:41.000Z | knights/table/user/item4sale.hpp | the-oasis-protocol/knights_contract | 8b90d5a90dec7b5ac44061f7537a52185fbc3789 | [
"Unlicense",
"MIT"
] | 49 | 2018-07-24T01:13:59.000Z | 2022-01-10T09:20:52.000Z | //@abi table item4sale i64
// 40 bytes
struct item4sale {
uint64_t cid = 0;
name player;
asset price;
uint16_t code = 0;
uint32_t dna = 0;
uint8_t level = 0;
uint8_t exp = 0;
uint64_t primary_key() const {
return cid;
}
item4sale()
: price(0, S(4, EOS)) {
}
... | 17.575758 | 69 | 0.494828 | bada-studio |
bc352629b32efb4089d8e32ee649566e3192e03a | 4,129 | cpp | C++ | Section 5.1/Starry Night/starry.cpp | memset0x3f/usaco | 9b3029e33afa441b823ac2c75eabb0ccdae70b0d | [
"MIT"
] | 14 | 2016-05-12T12:19:33.000Z | 2021-12-12T02:39:54.000Z | Section 5.1/Starry Night/starry.cpp | akommula/usaco | 9b3029e33afa441b823ac2c75eabb0ccdae70b0d | [
"MIT"
] | null | null | null | Section 5.1/Starry Night/starry.cpp | akommula/usaco | 9b3029e33afa441b823ac2c75eabb0ccdae70b0d | [
"MIT"
] | 18 | 2017-04-23T01:29:44.000Z | 2022-03-20T03:45:53.000Z | /*
ID: cloudzf2
PROG: starry
LANG: C++11
*/
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <string>
#include <unordered_map>
#include <cstring>
#include <vector>
#include <algorithm>
#include <unordered_map>
#include <queue>
#include <unordered_set>
#include <set>
#include <map>
#include <ioman... | 27.344371 | 90 | 0.426011 | memset0x3f |
bc39a335946e7a5cfdb76f9f2f63669d3af387bc | 4,906 | cxx | C++ | sources/cores/src/avx512/dmlc_compare_8u_k0.cxx | jinjunzh/DML | 0c5103dce053fc75f007bc4761359b03cff0c1dc | [
"MIT"
] | null | null | null | sources/cores/src/avx512/dmlc_compare_8u_k0.cxx | jinjunzh/DML | 0c5103dce053fc75f007bc4761359b03cff0c1dc | [
"MIT"
] | null | null | null | sources/cores/src/avx512/dmlc_compare_8u_k0.cxx | jinjunzh/DML | 0c5103dce053fc75f007bc4761359b03cff0c1dc | [
"MIT"
] | null | null | null | /*
* Copyright 2020-2021 Intel Corporation.
*
* This software and the related documents are Intel copyrighted materials,
* and your use of them is governed by the express license under which they
* were provided to you ("License"). Unless the License provides otherwise,
* you may not use, modify, copy, publish, d... | 32.706667 | 95 | 0.624745 | jinjunzh |
bc3a05fce37b55c5a9620f374f2dae769adfa50a | 72 | cpp | C++ | GDCpp/GDCpp/Runtime/Tools/FileStream.cpp | mohajain/GDevelop | 8e8d96dd3a5957221fb3d0ec28a694620149d835 | [
"MIT"
] | 4 | 2021-03-18T22:26:31.000Z | 2021-07-16T00:12:15.000Z | GDCpp/GDCpp/Runtime/Tools/FileStream.cpp | mohajain/GDevelop | 8e8d96dd3a5957221fb3d0ec28a694620149d835 | [
"MIT"
] | 9 | 2020-04-04T19:26:47.000Z | 2022-03-25T18:41:20.000Z | GDCpp/GDCpp/Runtime/Tools/FileStream.cpp | mohajain/GDevelop | 8e8d96dd3a5957221fb3d0ec28a694620149d835 | [
"MIT"
] | 2 | 2020-03-02T05:20:41.000Z | 2021-05-10T03:59:05.000Z | #if !defined(GD_IDE_ONLY)
#include "GDCore/Tools/FileStream.cpp"
#endif
| 18 | 38 | 0.777778 | mohajain |
bc3fd1f5b4d67e359992953571de49a85c539946 | 1,188 | ipp | C++ | ThirdParty/oglplus-develop/implement/oglplus/enums/ext/nv_path_fill_cover_mode_range.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/nv_path_fill_cover_mode_range.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/nv_path_fill_cover_mode_range.ipp | vif/3D-STG | 721402e76a9b9b99b88ba3eb06beb6abb17a9254 | [
"MIT"
] | 9 | 2015-06-08T22:04:15.000Z | 2021-08-16T03:52:11.000Z | /*
* .file oglplus/enums/ext/nv_path_fill_cover_mode_range.ipp
*
* Automatically generated header file. DO NOT modify manually,
* edit 'source/enums/oglplus/ext/nv_path_fill_cover_mode.txt' instead.
*
* Copyright 2010-2013 Matus Chochlik. Distributed under the Boost
* Software License, Version 1.0. (See acc... | 25.826087 | 73 | 0.79798 | vif |
bc40a3ca8e4e70408ed85e3e1959036d43927b29 | 3,230 | cpp | C++ | source/renderer/gl1/GL1Buffer.cpp | mkapusnik/duel6r | 1e5ed50035b1c2878622c9129ee8255a5abf9227 | [
"BSD-3-Clause"
] | 12 | 2015-06-21T14:57:53.000Z | 2021-11-30T23:32:27.000Z | source/renderer/gl1/GL1Buffer.cpp | mkapusnik/duel6r | 1e5ed50035b1c2878622c9129ee8255a5abf9227 | [
"BSD-3-Clause"
] | 37 | 2015-01-04T18:21:13.000Z | 2020-11-02T15:50:38.000Z | source/renderer/gl1/GL1Buffer.cpp | mkapusnik/duel6r | 1e5ed50035b1c2878622c9129ee8255a5abf9227 | [
"BSD-3-Clause"
] | 10 | 2015-03-12T23:31:31.000Z | 2020-02-25T23:19:44.000Z | /*
* Copyright (c) 2006, Ondrej Danek (www.ondrej-danek.net)
* 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, ... | 41.410256 | 115 | 0.66935 | mkapusnik |
bc40e284991dc526bd8e36e65af0e8ce85d7a6bb | 7,812 | hh | C++ | src/Xi-Core/include/Xi/Global.hh | ElSamaritan/blockchain-OLD | ca3422c8873613226db99b7e6735c5ea1fac9f1a | [
"Apache-2.0"
] | null | null | null | src/Xi-Core/include/Xi/Global.hh | ElSamaritan/blockchain-OLD | ca3422c8873613226db99b7e6735c5ea1fac9f1a | [
"Apache-2.0"
] | null | null | null | src/Xi-Core/include/Xi/Global.hh | ElSamaritan/blockchain-OLD | ca3422c8873613226db99b7e6735c5ea1fac9f1a | [
"Apache-2.0"
] | null | null | null | /* ============================================================================================== *
* *
* Galaxia Blockchain *
* ... | 42.688525 | 116 | 0.410522 | ElSamaritan |
a4b71ed2a6a3f82cc9094a4fed4f93e41a10d392 | 13,641 | cpp | C++ | syscoin.cpp | Whiteblock/syscoin_test | 4bdc913f32f2b35b0c7b66415641c8a28076db84 | [
"MIT"
] | null | null | null | syscoin.cpp | Whiteblock/syscoin_test | 4bdc913f32f2b35b0c7b66415641c8a28076db84 | [
"MIT"
] | null | null | null | syscoin.cpp | Whiteblock/syscoin_test | 4bdc913f32f2b35b0c7b66415641c8a28076db84 | [
"MIT"
] | null | null | null | #include "syscoin.h"
#include <queue>
#include <memory>
#include <tuple>
#include <chrono>
#include <ostream>
#include <utility>
#include <mutex>
#include <algorithm>
#include <iterator>
#include <boost/multiprecision/cpp_int.hpp>
#include <boost/multiprecision/cpp_dec_float.hpp>
#include <rapidjson/document.h>
#inc... | 36.279255 | 159 | 0.61909 | Whiteblock |
a4b843ce1606001b5209c84bb8580be755bf078f | 562 | cpp | C++ | array/leetcode_array/1_two_sum.cpp | Hadleyhzy/data_structure_and_algorithm | 0e610ba78dcb216323d9434a0f182756780ce5c0 | [
"MIT"
] | 1 | 2020-10-12T19:18:19.000Z | 2020-10-12T19:18:19.000Z | array/leetcode_array/1_two_sum.cpp | Hadleyhzy/data_structure_and_algorithm | 0e610ba78dcb216323d9434a0f182756780ce5c0 | [
"MIT"
] | null | null | null | array/leetcode_array/1_two_sum.cpp | Hadleyhzy/data_structure_and_algorithm | 0e610ba78dcb216323d9434a0f182756780ce5c0 | [
"MIT"
] | 1 | 2020-10-12T19:18:04.000Z | 2020-10-12T19:18:04.000Z | //
// 1_two_sum.cpp
// leetcode_array
//
// Created by Hadley on 16.04.20.
// Copyright © 2020 Hadley. All rights reserved.
//
#include <stdio.h>
#include <vector>
#include <iostream>
using namespace std;
class Solution1 {
public:
vector<int> twoSum(vector<int>& nums, int target) {
for(int i=0;i<nums... | 20.071429 | 55 | 0.521352 | Hadleyhzy |
a4b8fb121096487bcb2888bbccda0b86568fac22 | 455 | cpp | C++ | src/source/implementation/scenes/scenePrimary/gui/Minimap.cpp | Eknah/Forradia | fcea0da619dd10350a6feb0d1f50fe569b19cc4f | [
"MIT"
] | 3 | 2022-03-25T10:13:04.000Z | 2022-03-27T14:30:45.000Z | src/source/implementation/scenes/scenePrimary/gui/Minimap.cpp | Eknah/Forradia | fcea0da619dd10350a6feb0d1f50fe569b19cc4f | [
"MIT"
] | 1 | 2022-03-28T00:10:20.000Z | 2022-03-28T00:10:20.000Z | src/source/implementation/scenes/scenePrimary/gui/Minimap.cpp | Eknah/Forradia | fcea0da619dd10350a6feb0d1f50fe569b19cc4f | [
"MIT"
] | null | null | null | // Copyright (C) 2022 Andreas Åkerberg
// This code is licensed under MIT license (see LICENSE for details)
#include "Minimap.h"
#include "Engine.h"
namespace Forradia
{
void Minimap::Render()
{
using namespace Palette;
auto minimapSizeF = utils.ConvertToFloat(minimapSize);
e.FillRe... | 25.277778 | 78 | 0.681319 | Eknah |
a4ba4f527de4e8f67733fbe22c75b3047f954dda | 4,689 | hpp | C++ | src/globalinclude/commonFunc/Timer.hpp | tangtgithub/common_robotframe | f098d688bde1d2b2d5d6fac430c98b952621b7c1 | [
"MIT"
] | 5 | 2021-07-21T11:38:09.000Z | 2021-11-26T03:16:09.000Z | src/globalinclude/commonFunc/Timer.hpp | tangtgithub/common_robotframe | f098d688bde1d2b2d5d6fac430c98b952621b7c1 | [
"MIT"
] | null | null | null | src/globalinclude/commonFunc/Timer.hpp | tangtgithub/common_robotframe | f098d688bde1d2b2d5d6fac430c98b952621b7c1 | [
"MIT"
] | null | null | null | /** *******************************************************
* @brief : 定时器相关的封装
* @author :tangt
* @date :2020-06-22
* @copyright :Copyright (C) 2021 - All Rights Reserved
* @note :
**********************************************************/
#ifndef __COMMONTIMER_H
#define __COMMONTIMER... | 25.763736 | 120 | 0.484325 | tangtgithub |
a4bac61ec2d4339390ee6e581e2a9290adc07dd7 | 2,216 | hpp | C++ | hw/api_sysclock.hpp | JehTeh/jel | 2c43cf23ea7b89e7ec0f7c2e9549be74ab0bbc4b | [
"MIT"
] | 14 | 2018-10-09T00:08:26.000Z | 2021-09-24T19:49:42.000Z | hw/api_sysclock.hpp | JehTeh/jel | 2c43cf23ea7b89e7ec0f7c2e9549be74ab0bbc4b | [
"MIT"
] | null | null | null | hw/api_sysclock.hpp | JehTeh/jel | 2c43cf23ea7b89e7ec0f7c2e9549be74ab0bbc4b | [
"MIT"
] | null | null | null | /** @file hw/api_sysclock.hpp
* @brief System steady clock interface definitions.
*
* @detail
* The system steady clock source is used by jel for all basic timing purposes. It is required
* that the steady clock be a free running counter that is always incrementing, with at least 1
* microsecond of res... | 36.933333 | 100 | 0.73917 | JehTeh |
a4bff6a471f1f93cfb6fd4a37f9fb56f5f3b26ce | 724 | cpp | C++ | main.cpp | Lovely-Qianyun/Qt-IDE | 41360c22da80fd92e4f4e7ec3542d6eee2cb5772 | [
"MIT"
] | null | null | null | main.cpp | Lovely-Qianyun/Qt-IDE | 41360c22da80fd92e4f4e7ec3542d6eee2cb5772 | [
"MIT"
] | null | null | null | main.cpp | Lovely-Qianyun/Qt-IDE | 41360c22da80fd92e4f4e7ec3542d6eee2cb5772 | [
"MIT"
] | null | null | null | #include "mainwindow.h"
#include <QApplication>
#include <QtDebug>
#include <QDesktopWidget>
#include <QTextCodec>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
//设置编码为utf-8
QTextCodec::setCodecForLocale(QTextCodec::codecForName("utf-8"));
QSettings setting("config.ini", QSettings::In... | 28.96 | 98 | 0.653315 | Lovely-Qianyun |
a4c2dc1d134382c27b8e11d42529f817b4227dd8 | 3,186 | cpp | C++ | src/area.cpp | tripolskypetr/qt-magic-wand-tool | 40430c8d55acea0316e4d72032af5f07146e1eca | [
"MIT"
] | 3 | 2019-12-29T05:13:17.000Z | 2021-01-20T12:00:49.000Z | src/area.cpp | tripolskypetr/qt-magic-wand-tool | 40430c8d55acea0316e4d72032af5f07146e1eca | [
"MIT"
] | null | null | null | src/area.cpp | tripolskypetr/qt-magic-wand-tool | 40430c8d55acea0316e4d72032af5f07146e1eca | [
"MIT"
] | null | null | null | #include "area.h"
namespace MagicWandTool {
/*****************************************************************************/
Label::Label(QWidget *parent)
: QLabel(parent) {
qDebug() << "Label ctor";
}
/*---------------------------------------------------------------------------*/
Label::~Label() {
qDebug... | 30.342857 | 79 | 0.515694 | tripolskypetr |
a4c85f570b0b807902b572e509eb9d344bd7286e | 732 | cpp | C++ | 07. Stack/Stack (Array)/Push.cpp | IjlalAhmad845/DSA-Programs | 0d6c585e40a8d8e55f5e4a42727efd68026151c9 | [
"MIT"
] | 8 | 2021-10-02T16:44:39.000Z | 2022-03-13T18:32:07.000Z | 07. Stack/Stack (Array)/Push.cpp | IjlalAhmad845/DSA-Programs | 0d6c585e40a8d8e55f5e4a42727efd68026151c9 | [
"MIT"
] | null | null | null | 07. Stack/Stack (Array)/Push.cpp | IjlalAhmad845/DSA-Programs | 0d6c585e40a8d8e55f5e4a42727efd68026151c9 | [
"MIT"
] | 1 | 2021-10-05T14:14:25.000Z | 2021-10-05T14:14:25.000Z | #include<iostream>
using namespace std;
void display(int arr[],int n){
cout << endl;
for (int i = 0; i < n;i++)
cout << arr[i] << " ";
}
void push(int element,int arr[],int *top,int mSize){
//element always enter from top
if(*top<mSize)
{
for (int i = *top; i>0;i--)
... | 17.853659 | 52 | 0.480874 | IjlalAhmad845 |
a4d1866c436b4288e17fc6edcb850f9399fb4b27 | 757 | hpp | C++ | src/LibCraft/renderEngine/include/Sauvegarde.hpp | leodlplq/IMACraft | 5fec1729238e7e428bd39543dfd1fad521e16047 | [
"MIT"
] | 1 | 2021-11-24T16:49:48.000Z | 2021-11-24T16:49:48.000Z | src/LibCraft/renderEngine/include/Sauvegarde.hpp | leodlplq/IMACraft | 5fec1729238e7e428bd39543dfd1fad521e16047 | [
"MIT"
] | null | null | null | src/LibCraft/renderEngine/include/Sauvegarde.hpp | leodlplq/IMACraft | 5fec1729238e7e428bd39543dfd1fad521e16047 | [
"MIT"
] | null | null | null | //
// Created by valen on 30/12/2021.
//
#pragma once
#include <iostream>
#include <fstream>
#include <string>
#include <utility>
#include <vector>
#include "LibCraft/coreEngine/include/Player.hpp"
class Sauvegarde {
public:
Sauvegarde() = default;
Sauvegarde(std::string scorePath, std::string pseudoPath, st... | 22.939394 | 91 | 0.704095 | leodlplq |
a4d96d52260c73086e697bb8ac5cc22e52d12c4b | 4,108 | hpp | C++ | hdf/HDFRegionTableWriter.hpp | ggraham/blasr_libcpp | 4abef36585bbb677ebc4acb9d4e44e82331d59f7 | [
"RSA-MD"
] | 4 | 2015-07-03T11:59:54.000Z | 2018-05-17T00:03:22.000Z | hdf/HDFRegionTableWriter.hpp | ggraham/blasr_libcpp | 4abef36585bbb677ebc4acb9d4e44e82331d59f7 | [
"RSA-MD"
] | 79 | 2015-06-29T18:07:21.000Z | 2018-09-19T13:38:39.000Z | hdf/HDFRegionTableWriter.hpp | ggraham/blasr_libcpp | 4abef36585bbb677ebc4acb9d4e44e82331d59f7 | [
"RSA-MD"
] | 19 | 2015-06-23T08:43:29.000Z | 2021-04-28T18:37:47.000Z | #ifndef _BLASR_HDF_REGION_TABLE_WRITER_HPP_
#define _BLASR_HDF_REGION_TABLE_WRITER_HPP_
#include <string>
#include <pbdata/Enumerations.h>
#include <hdf/HDF2DArray.hpp>
#include <hdf/HDFArray.hpp>
#include <hdf/HDFAtom.hpp>
#include <hdf/HDFFile.hpp>
#include <pbdata/reads/RegionTable.hpp>
using namespace H5;
class... | 28.527778 | 93 | 0.596884 | ggraham |
a4e1a080146c9782a5af004b94ac18f16f00ac4e | 2,441 | cpp | C++ | src/game.cpp | skatto/fase_shooting_game | c466c144c663c1fafd63bac01fd0576d576e09e7 | [
"MIT"
] | null | null | null | src/game.cpp | skatto/fase_shooting_game | c466c144c663c1fafd63bac01fd0576d576e09e7 | [
"MIT"
] | null | null | null | src/game.cpp | skatto/fase_shooting_game | c466c144c663c1fafd63bac01fd0576d576e09e7 | [
"MIT"
] | null | null | null |
#include "game.h"
#include <chrono>
#include <cmath>
#include <thread>
namespace {
// clang-format off
constexpr static char vertex_shader_code[] = R"(
#version 330 core
layout(location = 0) in vec3 vertexPosition_modelspace;
void main() {
gl_Position.xyz = vertexPosition_modelspace;
gl_Position.w = 1.0;... | 21.60177 | 80 | 0.619418 | skatto |
a4e239dc56de98b24641dada2398433c28788ca0 | 125,903 | cpp | C++ | src/benchmarks/synthetic.cpp | MaximeRobeyns/OPTK | de776f9eacd6231b5841c6d9b382fdd726065b57 | [
"ECL-2.0"
] | 1 | 2020-12-07T06:13:10.000Z | 2020-12-07T06:13:10.000Z | src/benchmarks/synthetic.cpp | MaximeRobeyns/OPTK | de776f9eacd6231b5841c6d9b382fdd726065b57 | [
"ECL-2.0"
] | null | null | null | src/benchmarks/synthetic.cpp | MaximeRobeyns/OPTK | de776f9eacd6231b5841c6d9b382fdd726065b57 | [
"ECL-2.0"
] | null | null | null | /**
* Copyright (C) 2020 Maxime Robeyns <maximerobeyns@gmail.com>
*
* Written for the ACRC, University of Bristol
*
* Licensed under the Educational Community 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
*
* h... | 28.542961 | 92 | 0.508773 | MaximeRobeyns |
a4e2df629187896517fd8de15cc78073423106f7 | 4,846 | cpp | C++ | src/prod/src/Management/healthmanager/ProcessReportEntityJobItem.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | 1 | 2018-03-15T02:09:21.000Z | 2018-03-15T02:09:21.000Z | src/prod/src/Management/healthmanager/ProcessReportEntityJobItem.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | null | null | null | src/prod/src/Management/healthmanager/ProcessReportEntityJobItem.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | null | null | null | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
using nam... | 31.881579 | 188 | 0.689435 | AnthonyM |
a4e5735fad5d1d2fc83dc47e48bab0c5ac778d33 | 16,498 | cpp | C++ | KRender/Internal/Vulkan/KVulkanShader.cpp | King19931229/KApp | f7f855b209348f835de9e5f57844d4fb6491b0a1 | [
"MIT"
] | 13 | 2019-10-19T17:41:19.000Z | 2021-11-04T18:50:03.000Z | KRender/Internal/Vulkan/KVulkanShader.cpp | King19931229/KApp | f7f855b209348f835de9e5f57844d4fb6491b0a1 | [
"MIT"
] | 3 | 2019-12-09T06:22:43.000Z | 2020-05-28T09:33:44.000Z | KRender/Internal/Vulkan/KVulkanShader.cpp | King19931229/KApp | f7f855b209348f835de9e5f57844d4fb6491b0a1 | [
"MIT"
] | null | null | null | #include "KVulkanShader.h"
#include "KVulkanGlobal.h"
#include "KBase/Interface/IKLog.h"
#include "KBase/Interface/IKDataStream.h"
#include "KBase/Interface/IKFileSystem.h"
#include "KBase/Publish/KStringParser.h"
#include "KBase/Publish/KStringUtil.h"
#include "KBase/Publish/KFileTool.h"
#include "KBase/Publish/KSys... | 26.957516 | 125 | 0.754334 | King19931229 |
a4e6178c21ea82c68c94151b54824abd87c55b61 | 328 | cpp | C++ | Controller/Runner.cpp | PearsonAnimates/C-by-the-wild-yai-yell-ayama | 0e50175b104fa1a90bec214ff98c6e917b08e314 | [
"Unlicense"
] | null | null | null | Controller/Runner.cpp | PearsonAnimates/C-by-the-wild-yai-yell-ayama | 0e50175b104fa1a90bec214ff98c6e917b08e314 | [
"Unlicense"
] | null | null | null | Controller/Runner.cpp | PearsonAnimates/C-by-the-wild-yai-yell-ayama | 0e50175b104fa1a90bec214ff98c6e917b08e314 | [
"Unlicense"
] | null | null | null | //
// Runner.cpp
// MyFirstCPP
//
// Created by Amaya Penunuri, Yael on 1/23/18.
// Copyright © 2018 Amaya Penunuri, Yael. All rights reserved.
//
#include "Controller.hpp"
int main()
{
Controller app;
app.start();
Controller * appPointer = new Controller();
appPointer->start();
retu... | 15.619048 | 63 | 0.615854 | PearsonAnimates |
a4e795fa6b19bb671c127a2a8a6bca845c26ef3a | 5,435 | cpp | C++ | test_refactor_edit_control_02/src/edit_control/intellisense_system/parsers/minecraft_nbt_path/minecraft_nbt_path.cpp | danijel1023/MC_Command_IDE-Alpha | 3bbd403851fcf8f974a136fe27feea4e97e445e2 | [
"MIT"
] | null | null | null | test_refactor_edit_control_02/src/edit_control/intellisense_system/parsers/minecraft_nbt_path/minecraft_nbt_path.cpp | danijel1023/MC_Command_IDE-Alpha | 3bbd403851fcf8f974a136fe27feea4e97e445e2 | [
"MIT"
] | null | null | null | test_refactor_edit_control_02/src/edit_control/intellisense_system/parsers/minecraft_nbt_path/minecraft_nbt_path.cpp | danijel1023/MC_Command_IDE-Alpha | 3bbd403851fcf8f974a136fe27feea4e97e445e2 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "intelisense.h"
static bool Extract_Elements(std::wstring& Word, std::vector<std::wstring>* Elements, std::wstring* Error);
static bool Check_Element(std::wstring& Word, std::wstring* Error, bool Is_Obj = false);
bool IntelliSense::Minecraft_Nbt_Path(std::wstring& Word) {
std::vector<std... | 25.162037 | 130 | 0.437902 | danijel1023 |
a4f0c7638526189f6e6a6e0fffc397d289abc492 | 1,086 | cpp | C++ | src/framework/shared/support/fxstring.cpp | IT-Enthusiast-Nepal/Windows-Driver-Frameworks | bfee6134f30f92a90dbf96e98d54582ecb993996 | [
"MIT"
] | 994 | 2015-03-18T21:37:07.000Z | 2019-04-26T04:04:14.000Z | src/framework/shared/support/fxstring.cpp | IT-Enthusiast-Nepal/Windows-Driver-Frameworks | bfee6134f30f92a90dbf96e98d54582ecb993996 | [
"MIT"
] | 13 | 2019-06-13T15:58:03.000Z | 2022-02-18T22:53:35.000Z | src/framework/shared/support/fxstring.cpp | IT-Enthusiast-Nepal/Windows-Driver-Frameworks | bfee6134f30f92a90dbf96e98d54582ecb993996 | [
"MIT"
] | 350 | 2015-03-19T04:29:46.000Z | 2019-05-05T23:26:50.000Z | /*++
Copyright (c) Microsoft Corporation
Module Name:
FxString.cpp
Abstract:
This module implements a simple string class to operate on
unicode strings.
Author:
Environment:
Both kernel and user mode
Revision History:
--*/
#include "FxSupportPch.hpp"
FxString::FxString(
__in PFX_DRIVER... | 15.970588 | 63 | 0.678637 | IT-Enthusiast-Nepal |
a4f3f87ff997bdd06cc6ca34cc41d7eed3e05833 | 1,281 | cpp | C++ | test/src/math/gaussian_elimination/system_of_linear_equations.test.cpp | suisen-cp/cp-library-cpp | 8fbbdcdbceb60f5adc56ff4740549ce3c1a1ea43 | [
"CC0-1.0"
] | 2 | 2021-10-04T15:46:56.000Z | 2022-01-14T19:28:43.000Z | test/src/math/gaussian_elimination/system_of_linear_equations.test.cpp | suisen-cp/cp-library-cpp | 8fbbdcdbceb60f5adc56ff4740549ce3c1a1ea43 | [
"CC0-1.0"
] | null | null | null | test/src/math/gaussian_elimination/system_of_linear_equations.test.cpp | suisen-cp/cp-library-cpp | 8fbbdcdbceb60f5adc56ff4740549ce3c1a1ea43 | [
"CC0-1.0"
] | null | null | null | #define PROBLEM "https://judge.yosupo.jp/problem/system_of_linear_equations"
#include <iostream>
#include <atcoder/modint>
#include "library/math/gaussian_elimination.hpp"
using mint = atcoder::modint998244353;
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(nullptr);
int n, m;
std::cin... | 26.6875 | 76 | 0.469945 | suisen-cp |
3500c2541180b4ca70590ef404306eccd6001f29 | 788 | cpp | C++ | nanosrv/demo_syslog.cpp | zolotov-av/nanosoft | 2aebb09d7d8a424d4de9b57d7586dbb72eed9fa0 | [
"MIT"
] | 1 | 2019-11-19T14:31:37.000Z | 2019-11-19T14:31:37.000Z | nanosrv/demo_syslog.cpp | zolotov-av/nanosoft | 2aebb09d7d8a424d4de9b57d7586dbb72eed9fa0 | [
"MIT"
] | null | null | null | nanosrv/demo_syslog.cpp | zolotov-av/nanosoft | 2aebb09d7d8a424d4de9b57d7586dbb72eed9fa0 | [
"MIT"
] | 1 | 2020-01-14T10:30:59.000Z | 2020-01-14T10:30:59.000Z |
#include <nanosoft/core/netdaemon.h>
#include <nanosoft/syslog/syslogserver.h>
#include <stdio.h>
class MySyslogServer: public SyslogServer
{
protected:
/**
* Обработка очередного log-сообщения
*/
virtual void onMessage(const char *ip, const char *message)
{
printf("[%s]: %s\n", ip, message);
}
};
int main(... | 18.325581 | 63 | 0.661168 | zolotov-av |
35046de24ab03c3a1567074cdc2f89d5f740524a | 3,889 | cpp | C++ | libs/hwdrivers/src/aria/src/ArMutex_WIN.cpp | yhexie/mrpt | 0bece2883aa51ad3dc88cb8bb84df571034ed261 | [
"OLDAP-2.3"
] | null | null | null | libs/hwdrivers/src/aria/src/ArMutex_WIN.cpp | yhexie/mrpt | 0bece2883aa51ad3dc88cb8bb84df571034ed261 | [
"OLDAP-2.3"
] | null | null | null | libs/hwdrivers/src/aria/src/ArMutex_WIN.cpp | yhexie/mrpt | 0bece2883aa51ad3dc88cb8bb84df571034ed261 | [
"OLDAP-2.3"
] | 1 | 2021-08-16T11:50:47.000Z | 2021-08-16T11:50:47.000Z | /* +---------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| ... | 29.462121 | 210 | 0.617125 | yhexie |
350ac2b13cb61b2e914ac40c3f38cdaa5ee5e7aa | 2,423 | cpp | C++ | game/server/Angelscript/CHLASServerInitializer.cpp | HLSources/HLEnhanced | 7510a8f7049293b5094b9c6e14e0aa0869c8dba2 | [
"Unlicense"
] | 83 | 2016-06-10T20:49:23.000Z | 2022-02-13T18:05:11.000Z | game/server/Angelscript/CHLASServerInitializer.cpp | HLSources/HLEnhanced | 7510a8f7049293b5094b9c6e14e0aa0869c8dba2 | [
"Unlicense"
] | 26 | 2016-06-16T22:27:24.000Z | 2019-04-30T19:25:51.000Z | game/server/Angelscript/CHLASServerInitializer.cpp | HLSources/HLEnhanced | 7510a8f7049293b5094b9c6e14e0aa0869c8dba2 | [
"Unlicense"
] | 58 | 2016-06-10T23:52:33.000Z | 2021-12-30T02:30:50.000Z | #include "extdll.h"
#include "util.h"
#include "cbase.h"
#include "client.h"
#include "entities/plats/CPathTrack.h"
#include "Angelscript/CHLASManager.h"
#include "Angelscript/ScriptAPI/ASPluginInterface.h"
#include "Angelscript/ScriptAPI/Entities/ASEntityFuncs.h"
#include "Angelscript/ScriptAPI/Entities/ASCPathTra... | 24.72449 | 92 | 0.793644 | HLSources |
350b0711be3a3ac39ca18d2d7be92aac3bd18d9b | 274 | hpp | C++ | source/filecheck.hpp | SenseiHiraku/gmsv_serversecure | 129e6a9b214ce12f97e3017a3ebe698fdccab8b0 | [
"BSD-3-Clause"
] | null | null | null | source/filecheck.hpp | SenseiHiraku/gmsv_serversecure | 129e6a9b214ce12f97e3017a3ebe698fdccab8b0 | [
"BSD-3-Clause"
] | null | null | null | source/filecheck.hpp | SenseiHiraku/gmsv_serversecure | 129e6a9b214ce12f97e3017a3ebe698fdccab8b0 | [
"BSD-3-Clause"
] | null | null | null | #ifndef FILECHECK_HPP
#define FILECHECK_HPP
#pragma once
namespace GarrysMod::Lua {
class ILuaBase;
} // namespace GarrysMod::Lua
namespace filecheck {
void Initialize(GarrysMod::Lua::ILuaBase *LUA);
void Deinitialize();
} // namespace filecheck
#endif // FILECHECK_HPP
| 17.125 | 47 | 0.766423 | SenseiHiraku |
35113637ae29afb0149e316a9a21f8d8d13b7d19 | 208 | hxx | C++ | src/rng/IEnergyDistribution.hxx | luketpickering/NuFluxTools | 359379d984f9c046b652333916eeb3c520b2fad9 | [
"MIT"
] | null | null | null | src/rng/IEnergyDistribution.hxx | luketpickering/NuFluxTools | 359379d984f9c046b652333916eeb3c520b2fad9 | [
"MIT"
] | null | null | null | src/rng/IEnergyDistribution.hxx | luketpickering/NuFluxTools | 359379d984f9c046b652333916eeb3c520b2fad9 | [
"MIT"
] | 2 | 2019-11-24T03:51:45.000Z | 2021-08-30T19:38:46.000Z | #pragma once
namespace nft {
namespace rng {
class IEnergyDistribution {
public:
virtual double GetRandomEnergy() const = 0;
virtual ~IEnergyDistribution(){}
};
} // namespace utils
} // namespace nft
| 14.857143 | 45 | 0.721154 | luketpickering |
3522b831ad3e89923c82cf0596c273f3ec62f3b6 | 5,137 | cpp | C++ | YorozuyaGSLib/source/CWeeklyGuildRankInfo.cpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | YorozuyaGSLib/source/CWeeklyGuildRankInfo.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | YorozuyaGSLib/source/CWeeklyGuildRankInfo.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | #include <CWeeklyGuildRankInfo.hpp>
START_ATF_NAMESPACE
CWeeklyGuildRankInfo::CWeeklyGuildRankInfo()
{
using org_ptr = void (WINAPIV*)(struct CWeeklyGuildRankInfo*);
(org_ptr(0x1402ca640L))(this);
};
void CWeeklyGuildRankInfo::ctor_CWeeklyGuildRankInfo()
{
using org_ptr = v... | 42.454545 | 123 | 0.689118 | lemkova |
3522bd78419c5bc0d56a70b14de873999acf88a8 | 2,145 | cpp | C++ | Asteroids/AsteroidsGame.cpp | kyranet/Asteroids | 9ec0ccadb28f9d7a6f3a2fa50c470e31dc80a643 | [
"MIT"
] | 1 | 2019-08-27T00:58:17.000Z | 2019-08-27T00:58:17.000Z | Asteroids/AsteroidsGame.cpp | kyranet/Asteroids | 9ec0ccadb28f9d7a6f3a2fa50c470e31dc80a643 | [
"MIT"
] | null | null | null | Asteroids/AsteroidsGame.cpp | kyranet/Asteroids | 9ec0ccadb28f9d7a6f3a2fa50c470e31dc80a643 | [
"MIT"
] | null | null | null | #include "AsteroidsGame.h"
#include "InputHandler.h"
#include "Logger.h"
using namespace std;
AsteroidsGame::AsteroidsGame()
: SDLGame("Asteroids", _WINDOW_WIDTH_, _WINDOW_HEIGHT_),
exit_(false),
fighter_(this, 75, 75,
{static_cast<double>(getWindowWidth()) / 2.0,
static... | 23.571429 | 63 | 0.675058 | kyranet |
352bc17d882b39637a4dbc372fa4ebed57b0e4bc | 713 | hpp | C++ | Jagerts.Kaleid.Physics/Collider.hpp | Jagreaper/Kaleid | 4fd28f5921d54048d9dfd75f1640abe68a09f580 | [
"MIT"
] | null | null | null | Jagerts.Kaleid.Physics/Collider.hpp | Jagreaper/Kaleid | 4fd28f5921d54048d9dfd75f1640abe68a09f580 | [
"MIT"
] | null | null | null | Jagerts.Kaleid.Physics/Collider.hpp | Jagreaper/Kaleid | 4fd28f5921d54048d9dfd75f1640abe68a09f580 | [
"MIT"
] | null | null | null | #pragma once
#include "Jagerts.Kaleid.Shared/Common.hpp"
#include "Jagerts.Kaleid.Math/Transform.hpp"
#include "Jagerts.Kaleid.Geometry/Line.hpp"
class JAGERTS_KALEID_PHYSICS_API Collider : Jagerts::Kaleid::Math::TransformableObject
{
public:
virtual bool Intersects(Collider* const collider) = 0;
virtual bool Inter... | 39.611111 | 86 | 0.781206 | Jagreaper |
3532b2d18509827072b0922fba62708801474c03 | 1,079 | cpp | C++ | 15. Tree/SortedArrayToBST.cpp | LikhithaTadikonda/DSA-cpp | 51ba2e1fe2cc832d55d2f6316498581efac65581 | [
"MIT"
] | 149 | 2021-09-17T17:11:06.000Z | 2021-10-01T17:32:18.000Z | 15. Tree/SortedArrayToBST.cpp | LikhithaTadikonda/DSA-cpp | 51ba2e1fe2cc832d55d2f6316498581efac65581 | [
"MIT"
] | 138 | 2021-09-29T14:04:05.000Z | 2021-10-01T17:43:18.000Z | 15. Tree/SortedArrayToBST.cpp | LikhithaTadikonda/DSA-cpp | 51ba2e1fe2cc832d55d2f6316498581efac65581 | [
"MIT"
] | 410 | 2021-09-27T03:13:55.000Z | 2021-10-01T17:59:42.000Z | #include <bits/stdc++.h>
using namespace std;
//Problem link : https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode() : val(0), left(nullptr), right(nullptr) {}
TreeNode(int x) : val(x), left(nullptr), right(... | 24.522727 | 90 | 0.598703 | LikhithaTadikonda |
3532f8fd1cda837e5d96733a0643fb2c4013f83d | 153 | cpp | C++ | learn_opengl_test/src/tools/ImageViewerTest.cpp | Dongee-W/learnOpenGL | 8289b3fbd88bbe561c0f1fad5bd2acb09ea60e7f | [
"MIT"
] | null | null | null | learn_opengl_test/src/tools/ImageViewerTest.cpp | Dongee-W/learnOpenGL | 8289b3fbd88bbe561c0f1fad5bd2acb09ea60e7f | [
"MIT"
] | null | null | null | learn_opengl_test/src/tools/ImageViewerTest.cpp | Dongee-W/learnOpenGL | 8289b3fbd88bbe561c0f1fad5bd2acb09ea60e7f | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include "tools/ImageViewerApp.h"
TEST(Tools, ImageViewer) {
int success = runImageViewer();
EXPECT_EQ(success, 0);
}
| 17 | 35 | 0.69281 | Dongee-W |
35333aff0e2e1a66daba1c93073dd39deb19f1b3 | 1,133 | cpp | C++ | src/knapsack_bnb.cpp | fhamonic/knapsack | c5105720b3770fc76d54f14d5001fcc7ac3ec69a | [
"BSL-1.0"
] | 1 | 2021-09-23T09:49:15.000Z | 2021-09-23T09:49:15.000Z | src/knapsack_bnb.cpp | fhamonic/knapsack | c5105720b3770fc76d54f14d5001fcc7ac3ec69a | [
"BSL-1.0"
] | null | null | null | src/knapsack_bnb.cpp | fhamonic/knapsack | c5105720b3770fc76d54f14d5001fcc7ac3ec69a | [
"BSL-1.0"
] | null | null | null | #include <filesystem>
#include <iostream>
#include "knapsack/branch_and_bound.hpp"
// #include "knapsack/parallel_branch_and_bound.hpp"
#include "utils/chrono.hpp"
#include "utils/instance_parsers.hpp"
namespace Knapsack = fhamonic::knapsack;
int main(int argc, const char * argv[]) {
if(argc < 2) {
std:... | 30.621622 | 80 | 0.66549 | fhamonic |
353560a99e56a56757ac5dd6421073cf1705e7a8 | 869 | hpp | C++ | Ponce/src/formTaintWindow.hpp | fcccode/Ponce | fc25268592027af0c71c898f87a347418c5ad475 | [
"BSL-1.0"
] | 1 | 2019-12-30T00:19:08.000Z | 2019-12-30T00:19:08.000Z | Ponce/src/formTaintWindow.hpp | ZhuHuiBeiShaDiao/Ponce | fc25268592027af0c71c898f87a347418c5ad475 | [
"BSL-1.0"
] | null | null | null | Ponce/src/formTaintWindow.hpp | ZhuHuiBeiShaDiao/Ponce | fc25268592027af0c71c898f87a347418c5ad475 | [
"BSL-1.0"
] | null | null | null | //! \file
/*
** Copyright (c) 2016 - Ponce
** Authors:
** Alberto Garcia Illera agarciaillera@gmail.com
** Francisco Oca francisco.oca.gonzalez@gmail.com
**
** This program is under the terms of the BSD License.
*/
#pragma once
#include <vector>
#include "kernwin.hpp"
struct i... | 16.092593 | 72 | 0.653625 | fcccode |
353a902e730ec1063579a8a44b035e43c3d7d580 | 3,515 | cpp | C++ | nmake/tyfirc-server/tyfirc-ircserverapp.cpp | lllemanet/tyfirc | c82d3a5dde7c327e9259f5f6c5bbbd4bca5e556a | [
"MIT"
] | null | null | null | nmake/tyfirc-server/tyfirc-ircserverapp.cpp | lllemanet/tyfirc | c82d3a5dde7c327e9259f5f6c5bbbd4bca5e556a | [
"MIT"
] | null | null | null | nmake/tyfirc-server/tyfirc-ircserverapp.cpp | lllemanet/tyfirc | c82d3a5dde7c327e9259f5f6c5bbbd4bca5e556a | [
"MIT"
] | null | null | null | // (c)2020 Ruslan Shemietov
// This code is licensed under MIT license (see LICENSE.txt for details)
//
// Defines class methods for building and use server app. Name of file could be
// changed.
#include <vector>
#include <algorithm>
#include <boost/optional.hpp>
#include <boost/bind.hpp>
#include <boost/asio.hpp>
#... | 30.042735 | 84 | 0.702134 | lllemanet |
353af7a8b2061e3c527da16aafcec01954554df4 | 3,667 | cpp | C++ | cpp-projects/exvr-designer/widgets/components/config_parameters/fov_simulator_pw.cpp | FlorianLance/exvr | 4d210780737479e9576c90e9c80391c958787f44 | [
"MIT"
] | null | null | null | cpp-projects/exvr-designer/widgets/components/config_parameters/fov_simulator_pw.cpp | FlorianLance/exvr | 4d210780737479e9576c90e9c80391c958787f44 | [
"MIT"
] | null | null | null | cpp-projects/exvr-designer/widgets/components/config_parameters/fov_simulator_pw.cpp | FlorianLance/exvr | 4d210780737479e9576c90e9c80391c958787f44 | [
"MIT"
] | null | null | null |
/***********************************************************************************
** exvr-designer **
** MIT License **
** Copyright (c) [2018] [Florian Lance][EPFL-LNCO] ... | 58.206349 | 147 | 0.583583 | FlorianLance |
354166dd76e807f8c61ab9e7cd292d64a24ef128 | 696 | cpp | C++ | Practica semanal 8/C.cpp | Tresillo2017/IOE2 | 6d191f0085a67b0b187851ad2d73b61040b74e87 | [
"MIT"
] | null | null | null | Practica semanal 8/C.cpp | Tresillo2017/IOE2 | 6d191f0085a67b0b187851ad2d73b61040b74e87 | [
"MIT"
] | null | null | null | Practica semanal 8/C.cpp | Tresillo2017/IOE2 | 6d191f0085a67b0b187851ad2d73b61040b74e87 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <set>
using namespace std;
int main()
{
int n, m;
cin >> n;
set<int> a, b;
for (int i = 0; i < n; i++)
{
int elemento;
cin >> elemento;
a.insert(elemento);
}
cin >> m;
for (int i = 0; i < m; i++)
{
... | 16.186047 | 50 | 0.406609 | Tresillo2017 |
354172902cd73a97db8f30bab343759ca5e8dbf6 | 4,774 | cpp | C++ | chapter23/ex01-4_more_mail.cpp | ClassAteam/stroustrup-ppp | ea9e85d4ea9890038eb5611c3bc82734c8706ce7 | [
"MIT"
] | 124 | 2018-06-23T10:16:56.000Z | 2022-03-19T15:16:12.000Z | chapter23/ex01-4_more_mail.cpp | therootfolder/stroustrup-ppp | b1e936c9a67b9205fdc9712c42496b45200514e2 | [
"MIT"
] | 23 | 2018-02-08T20:57:46.000Z | 2021-10-08T13:58:29.000Z | chapter23/ex01-4_more_mail.cpp | ClassAteam/stroustrup-ppp | ea9e85d4ea9890038eb5611c3bc82734c8706ce7 | [
"MIT"
] | 65 | 2019-05-27T03:05:56.000Z | 2022-03-26T03:43:05.000Z | //
// Stroustrup - Programming Principles & Practice
//
// Chapter 23 Exercise 1 - More Mail File Fun
//
// Get the email file example to run and test it with a larger file of emails.
// Try to break the program with extra addresses, several messages with same
// address and/or subjects etc.
//
// Exercise 2 - Input Su... | 28.248521 | 79 | 0.556137 | ClassAteam |
3542ddf12ed36e6cffd7a7151f6197e594aee369 | 750 | cpp | C++ | Source/Graphics/VisualScreenSpace/VisualScreenSpaceVk.cpp | narendraumate/Sandbox | 7b7cef7a1876bfa3cfe2c79ff5e6daede1d50b13 | [
"MIT"
] | null | null | null | Source/Graphics/VisualScreenSpace/VisualScreenSpaceVk.cpp | narendraumate/Sandbox | 7b7cef7a1876bfa3cfe2c79ff5e6daede1d50b13 | [
"MIT"
] | null | null | null | Source/Graphics/VisualScreenSpace/VisualScreenSpaceVk.cpp | narendraumate/Sandbox | 7b7cef7a1876bfa3cfe2c79ff5e6daede1d50b13 | [
"MIT"
] | null | null | null | //
// VkVisualScreenSpace.cpp
//
//
// Created by Narendra Umate on 10/16/16.
//
//
#include "VisualScreenSpaceVk.h"
VkVisualScreenSpace::VkVisualScreenSpace(const Effect& effect)
: VisualScreenSpace(effect) {
m_visualEffect = new VisualEffectVk(effect);
std::vector<P4N4T4B4T2P2> vertices;
m_vertexBuffer = new V... | 22.058824 | 71 | 0.744 | narendraumate |
3547223016e4005f754adc5f91a1ac7c2eaf213d | 16,087 | cpp | C++ | src/pdfp/PDFDocument.cpp | sandym/pdfp | 7f3173acd43177599a148dc5e9be4229504f7831 | [
"MIT"
] | null | null | null | src/pdfp/PDFDocument.cpp | sandym/pdfp | 7f3173acd43177599a148dc5e9be4229504f7831 | [
"MIT"
] | null | null | null | src/pdfp/PDFDocument.cpp | sandym/pdfp | 7f3173acd43177599a148dc5e9be4229504f7831 | [
"MIT"
] | null | null | null | /*
* PDFDocument.cpp
* pdfp
*
* Created by Sandy Martel on 06-10-20.
* Copyright 2006 Sandy Martel. All rights reserved.
*
*/
#include "pdfp/PDFDocument.h"
#include <string>
#include <regex>
#include <cassert>
#include "impl/Parser.h"
#include "security/SecurityHandler.h"
#include "su/log/logger.h"
namespa... | 21.622312 | 77 | 0.58799 | sandym |
354ed5f648e8404bbc38f7f88560725d23689ee3 | 8,245 | cpp | C++ | IntegerToEnglishNumbers(0-1000).cpp | mobeenyaqub/seniorcitizens | 20dadfa1a38f0788922804c03eb4d400753643f3 | [
"MIT"
] | null | null | null | IntegerToEnglishNumbers(0-1000).cpp | mobeenyaqub/seniorcitizens | 20dadfa1a38f0788922804c03eb4d400753643f3 | [
"MIT"
] | null | null | null | IntegerToEnglishNumbers(0-1000).cpp | mobeenyaqub/seniorcitizens | 20dadfa1a38f0788922804c03eb4d400753643f3 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
void units(int);
void tens(int);
void hundreds(int);
int main()
{
int number{};
char choice{};
cout << "\n\t\t\t\tInteger to english number conversion (1-1000)\n\n";
do {
cout << "\nEnter an integer to convert to english number : ";
... | 18.738636 | 79 | 0.48393 | mobeenyaqub |
354f795b859ae33716adf88ff7e5d4b43993ef7a | 275 | cpp | C++ | Kernel/Interrupts/IRQHandler.cpp | UltraOS/Ultra | 287035fea303767285e48e5c7867d147790ff55b | [
"Apache-2.0"
] | 44 | 2020-07-09T07:31:43.000Z | 2022-03-29T20:55:01.000Z | Kernel/Interrupts/IRQHandler.cpp | 8infy/UltraOS | 2ed2879c96a7095b5077df5ba5db5b30a6565417 | [
"Apache-2.0"
] | 3 | 2021-04-24T13:53:53.000Z | 2021-09-27T05:50:28.000Z | Kernel/Interrupts/IRQHandler.cpp | 8infy/UltraOS | 2ed2879c96a7095b5077df5ba5db5b30a6565417 | [
"Apache-2.0"
] | 3 | 2021-03-01T09:29:12.000Z | 2021-06-25T17:06:27.000Z | #include "IRQHandler.h"
#include "IRQManager.h"
namespace kernel {
IRQHandler::IRQHandler(Type type, u16 vector)
: m_type(type)
{
IRQManager::the().register_handler(*this, vector);
}
IRQHandler::~IRQHandler()
{
IRQManager::the().unregister_handler(*this);
}
} | 16.176471 | 54 | 0.698182 | UltraOS |
35502b76d14176e53ed4289df9bf9184f33fa82f | 517 | cpp | C++ | src/coherence/component/net/extend/protocol/invocation/InvocationServiceRequest.cpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-01T21:38:30.000Z | 2021-11-03T01:35:11.000Z | src/coherence/component/net/extend/protocol/invocation/InvocationServiceRequest.cpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 1 | 2020-07-24T17:29:22.000Z | 2020-07-24T18:29:04.000Z | src/coherence/component/net/extend/protocol/invocation/InvocationServiceRequest.cpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-10T18:40:58.000Z | 2022-02-18T01:23:40.000Z | /*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
#include "private/coherence/component/net/extend/protocol/invocation/InvocationServiceRequest.hpp"
COH_OPEN_NAMESPACE6(coherence,component,net... | 27.210526 | 98 | 0.682785 | chpatel3 |
3553b265dd299d5cee42dc9f8b597c6c36985faf | 1,863 | cpp | C++ | graph-source-code/400-D/5956083.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/400-D/5956083.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/400-D/5956083.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: GNU C++
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <vector>
using namespace std;
int n,m,k,u[100001],v[100001],x[100001],c[501],ui,vi,check,p[100001],r[100001];
int d[505][505],t,par,cnt;
vector<int> V;
int fnd(int i){
if(p[i]==i)
return i;
else return p[i];
}
void... | 16.633929 | 80 | 0.435856 | AmrARaouf |
35546062b16d078812664485ce99fdf7e6fa9a98 | 12,903 | cpp | C++ | Origin/src/Origin/Renderer/Renderer2D.cpp | UnNabbo/OriginEngine | d4b51f8cf0e716e2b5dee739de20d49f0e24872a | [
"Apache-2.0"
] | 2 | 2022-02-04T09:26:47.000Z | 2022-02-04T20:31:12.000Z | Origin/src/Origin/Renderer/Renderer2D.cpp | UnNabbo/OriginEngine | d4b51f8cf0e716e2b5dee739de20d49f0e24872a | [
"Apache-2.0"
] | null | null | null | Origin/src/Origin/Renderer/Renderer2D.cpp | UnNabbo/OriginEngine | d4b51f8cf0e716e2b5dee739de20d49f0e24872a | [
"Apache-2.0"
] | null | null | null | #include "OGpch.h"
#include "Renderer2D.h"
#include "Origin/Core/Math/Math.h"
#include "Origin/Scene/Entity.h"
#include "glm/gtc/quaternion.hpp"
#include "glm/gtx/quaternion.hpp"
namespace Origin {
struct QuadVertex {
glm::vec3 Position;
glm::vec4 Color;
glm::vec2 TexCoord;
float TexIndex;
float TilingFact... | 32.419598 | 222 | 0.699295 | UnNabbo |
35562a264126c296b3a3500aa90a0450abc5816a | 1,418 | cpp | C++ | tour/4_classes/complex.cpp | pathtrk/c-playground | 9ed298c91220ec1c686d028581af1f2bb51b1a2c | [
"MIT"
] | null | null | null | tour/4_classes/complex.cpp | pathtrk/c-playground | 9ed298c91220ec1c686d028581af1f2bb51b1a2c | [
"MIT"
] | null | null | null | tour/4_classes/complex.cpp | pathtrk/c-playground | 9ed298c91220ec1c686d028581af1f2bb51b1a2c | [
"MIT"
] | null | null | null | class complex {
double re, im;
public:
complex(double r, double i) :re{r}, im{i}
{
// construct complex from two scalars
}
complex(double r) :re{r}, im{0}
{
// construct complex from one scalar
}
complex() :re{0}, im{0}
{
... | 18.179487 | 56 | 0.502116 | pathtrk |
355edbc3b1adbffe8a18ed4c694e2caa68c27260 | 9,450 | cpp | C++ | src/FluidoApp.cpp | gaborpapp/Fluido | 518e4ee665532a4b853c034163643c69003a4a75 | [
"Unlicense",
"MIT"
] | 5 | 2016-06-18T11:00:54.000Z | 2018-06-15T11:52:23.000Z | src/FluidoApp.cpp | gaborpapp/Fluido | 518e4ee665532a4b853c034163643c69003a4a75 | [
"Unlicense",
"MIT"
] | null | null | null | src/FluidoApp.cpp | gaborpapp/Fluido | 518e4ee665532a4b853c034163643c69003a4a75 | [
"Unlicense",
"MIT"
] | 1 | 2019-04-30T09:35:41.000Z | 2019-04-30T09:35:41.000Z | #include "cinder/app/App.h"
#include "cinder/app/RendererGl.h"
#include "cinder/gl/gl.h"
#include "cinder/System.h"
#include "cinder/ImageIo.h"
#include "gpGpuFrameBuffer.h"
#include "cinder/Utilities.h"
#include "cinder/params/Params.h"
#include "cinder/Capture.h"
#include "Fluido.h"
using namespace ci;
using names... | 28.208955 | 124 | 0.595238 | gaborpapp |
3562823ac658d75ba3b0459af47a9059b9e01f5f | 12,946 | cpp | C++ | src/dummy.cpp | dkormalev/cefal | 95b583ad569274172ae53c14511861f602051dd8 | [
"BSD-3-Clause"
] | 52 | 2020-03-31T23:53:45.000Z | 2021-10-25T00:00:27.000Z | src/dummy.cpp | dkormalev/cefal | 95b583ad569274172ae53c14511861f602051dd8 | [
"BSD-3-Clause"
] | 4 | 2020-04-01T00:15:32.000Z | 2020-06-06T23:45:34.000Z | src/dummy.cpp | dkormalev/cefal | 95b583ad569274172ae53c14511861f602051dd8 | [
"BSD-3-Clause"
] | 5 | 2020-03-31T23:53:50.000Z | 2021-10-25T00:00:28.000Z | #include "cefal/everything.h"
#include <cefal/helpers/std_containers.h>
#include <iostream>
#include <set>
#include <unordered_set>
#include <vector>
#include <chrono>
#include <ranges>
using namespace cefal;
template <concepts::Monoid T>
struct ImplementedMethods {
T value;
static ImplementedMethods unit(T... | 44.487973 | 154 | 0.516916 | dkormalev |
83159ab3230d8085374039a2ad94e70898018ceb | 601 | hpp | C++ | supervisor/src/network/websocket/events/MessageBroadcastRequest.hpp | mdziekon/eiti-tin-ftp-stattr | c8b8c119f6731045f90281d607b98d7a5ffb3bd2 | [
"MIT"
] | 1 | 2018-11-12T02:48:46.000Z | 2018-11-12T02:48:46.000Z | supervisor/src/network/websocket/events/MessageBroadcastRequest.hpp | mdziekon/eiti-tin-ftp-stattr | c8b8c119f6731045f90281d607b98d7a5ffb3bd2 | [
"MIT"
] | null | null | null | supervisor/src/network/websocket/events/MessageBroadcastRequest.hpp | mdziekon/eiti-tin-ftp-stattr | c8b8c119f6731045f90281d607b98d7a5ffb3bd2 | [
"MIT"
] | null | null | null | #ifndef TIN_NETWORK_WEBSOCKET_EVENTS_MESSAGEBROADCASTREQUEST_HPP
#define TIN_NETWORK_WEBSOCKET_EVENTS_MESSAGEBROADCASTREQUEST_HPP
#include <string>
#include "../Event.hpp"
namespace tin { namespace network { namespace websocket { namespace events
{
struct MessageBroadcastRequest: public tin::network::websocket::... | 27.318182 | 78 | 0.757072 | mdziekon |
831cac02711913d59941e6037a7dc0cfae612dbb | 26,700 | cpp | C++ | src/filters/transform/MPCVideoDec/DXVADecoder.cpp | chinajeffery/MPC-BE--1.2.3 | 2229fde5535f565ba4a496a7f73267bd2c1ad338 | [
"MIT"
] | null | null | null | src/filters/transform/MPCVideoDec/DXVADecoder.cpp | chinajeffery/MPC-BE--1.2.3 | 2229fde5535f565ba4a496a7f73267bd2c1ad338 | [
"MIT"
] | 1 | 2019-11-14T04:18:32.000Z | 2019-11-14T04:18:32.000Z | src/filters/transform/MPCVideoDec/DXVADecoder.cpp | chinajeffery/MPC-BE--1.2.3 | 2229fde5535f565ba4a496a7f73267bd2c1ad338 | [
"MIT"
] | null | null | null | /*
* $Id: DXVADecoder.cpp 2900 2013-06-14 19:27:48Z szl $
*
* (C) 2006-2013 see Authors.txt
*
* This file is part of MPC-BE.
*
* MPC-BE 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 3... | 33.167702 | 197 | 0.739326 | chinajeffery |
831d0814e96ce4ca0952f6a1662aaf2abdad107b | 1,433 | cpp | C++ | src/WavInfo/main.cpp | wieslawsoltes/AvsDec | 64c5a82c9a6a97af2238fba42f7333f3635bbe44 | [
"MIT"
] | 7 | 2018-01-03T18:09:05.000Z | 2020-12-10T03:06:06.000Z | src/WavInfo/main.cpp | wieslawsoltes/AvsDec | 64c5a82c9a6a97af2238fba42f7333f3635bbe44 | [
"MIT"
] | 6 | 2018-01-01T18:12:00.000Z | 2019-03-05T07:10:42.000Z | src/WavInfo/main.cpp | wieslawsoltes/AvsDec | 64c5a82c9a6a97af2238fba42f7333f3635bbe44 | [
"MIT"
] | 1 | 2021-04-06T12:31:15.000Z | 2021-04-06T12:31:15.000Z | #define WIN32_LEAN_AND_MEAN
#include <SDKDDKVer.h>
#include <windows.h>
#include <stdlib.h>
#include <stdio.h>
#include <tchar.h>
#include "version.h"
#include "WavInfo.h"
void Info(FILE *log)
{
_ftprintf(log, _T("%s v%s (%s %s %s, %s %s)\n"),
_T(PRODUCTNAME),
_T(VERSION),
#if defined(_WIN32) & ... | 19.902778 | 70 | 0.545708 | wieslawsoltes |
831d75dc4e7e277bc7766c6a600fdcf30e853e25 | 443 | cpp | C++ | android-ndk-r10b/tests/device/test-stlport_static-exception/jni/eh41.cpp | perezite/Boost4Android | 9ed03a45815aead156c129da1927cc04b8caa6a3 | [
"BSL-1.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | android-ndk-r10b/tests/device/test-stlport_static-exception/jni/eh41.cpp | perezite/Boost4Android | 9ed03a45815aead156c129da1927cc04b8caa6a3 | [
"BSL-1.0"
] | null | null | null | android-ndk-r10b/tests/device/test-stlport_static-exception/jni/eh41.cpp | perezite/Boost4Android | 9ed03a45815aead156c129da1927cc04b8caa6a3 | [
"BSL-1.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | // { dg-do run { xfail sparc64-*-elf arm-*-pe } }
// { dg-options "-fexceptions" }
int fail = 0;
struct A {
A () { a = 'a'; b = 'b'; c = 'c'; }
~ A () {
if ( a != 'a' ) fail = 1;
if ( b != 'b' ) fail = 1;
if ( c != 'c' ) fail = 1;
}
char a, b, c;
};
void some_init () { throw 1; }
struc... | 14.766667 | 49 | 0.397291 | perezite |
832e1011d8a241d1754040e3be000a366d0594a2 | 452 | cpp | C++ | test/old_tests/UnitTests/sdk.cpp | sylveon/cppwinrt | 4d5c5ae3de386ce1f18c3410a27b9ceb40aa524d | [
"MIT"
] | 859 | 2016-10-13T00:11:52.000Z | 2019-05-06T15:45:46.000Z | test/old_tests/UnitTests/sdk.cpp | shinsetsu/cppwinrt | ae0378373d2318d91448b8697a91d5b65a1fb2e5 | [
"MIT"
] | 655 | 2019-10-08T12:15:16.000Z | 2022-03-31T18:26:40.000Z | test/old_tests/UnitTests/sdk.cpp | shinsetsu/cppwinrt | ae0378373d2318d91448b8697a91d5b65a1fb2e5 | [
"MIT"
] | 137 | 2016-10-13T04:19:59.000Z | 2018-11-09T05:08:03.000Z | #include "pch.h"
static_assert(sizeof(SLIST_ENTRY) == sizeof(winrt::impl::slist_entry));
static_assert(std::alignment_of_v<SLIST_ENTRY> == std::alignment_of_v<winrt::impl::slist_entry>);
static_assert(sizeof(SLIST_HEADER) == sizeof(winrt::impl::slist_header));
static_assert(std::alignment_of_v<SLIST_HEADER> == std::... | 45.2 | 99 | 0.794248 | sylveon |
83395e458bc87a7dc389b9fe9544122f043d7630 | 1,232 | cpp | C++ | Frameworks/Helmet/Workbench/src/I_MenuBar.cpp | hatboysoftware/helmet | 97f26d134742fdb732abc6177bb2adaeb67b3187 | [
"Zlib"
] | 2 | 2018-02-07T01:19:37.000Z | 2018-02-09T14:27:48.000Z | Frameworks/Helmet/Workbench/src/I_MenuBar.cpp | hatboysoftware/helmet | 97f26d134742fdb732abc6177bb2adaeb67b3187 | [
"Zlib"
] | null | null | null | Frameworks/Helmet/Workbench/src/I_MenuBar.cpp | hatboysoftware/helmet | 97f26d134742fdb732abc6177bb2adaeb67b3187 | [
"Zlib"
] | null | null | null | //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
// Helmet Software Framework
//
// Copyright (C) 2018 Hat Boy Software, Inc.
//
// @author Matthew Alan Gray - <mgray@hatboysoftware.com>
// @author Tony Richards - <trichards@indiezen.com>
//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-... | 47.384615 | 80 | 0.299513 | hatboysoftware |
8341fadb84ea4c72af2ebaec93625f46a3d72144 | 1,072 | cpp | C++ | array.cpp | user1095108/ca | 709df1c83b664c855a7298129e27cc1f766f434a | [
"Unlicense"
] | 2 | 2022-02-11T00:56:04.000Z | 2022-02-11T00:56:18.000Z | array.cpp | user1095108/ca | 709df1c83b664c855a7298129e27cc1f766f434a | [
"Unlicense"
] | null | null | null | array.cpp | user1095108/ca | 709df1c83b664c855a7298129e27cc1f766f434a | [
"Unlicense"
] | null | null | null | #include <iostream>
#include "array.hpp"
int main()
{
ca::array<int, 4> ca;
ca.push_front(1);
ca.push_back(2);
ca.push_back(3);
ca.push_front(4);
ca.sort();
std::cout << "size: " << ca.size() << std::endl;
std::cout << "full: " << ca.full() << std::endl;
std::for_each(
ca.cbegin(),
ca.ce... | 17.57377 | 104 | 0.479478 | user1095108 |
834847fa254d3065c66cea2d64f52d4fa334c28a | 2,839 | cpp | C++ | src/base/SignalEvent.cpp | 7956968/miniRtspServer | 1de66d613941cd036d63ef32e7284ed68cb4b8a4 | [
"MIT"
] | 10 | 2020-07-28T01:14:49.000Z | 2021-08-19T04:33:49.000Z | src/base/SignalEvent.cpp | TaoistLuo/miniRtspServer | 1de66d613941cd036d63ef32e7284ed68cb4b8a4 | [
"MIT"
] | null | null | null | src/base/SignalEvent.cpp | TaoistLuo/miniRtspServer | 1de66d613941cd036d63ef32e7284ed68cb4b8a4 | [
"MIT"
] | 3 | 2020-09-15T11:14:55.000Z | 2020-09-30T08:39:45.000Z | /*************************************************************************
Copyright (c) 2020 Taoist Luo
Create by: Taoist Luo
CSDN:https://blog.csdn.net/daichanzhang9734/article/details/107549026
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentatio... | 29.884211 | 78 | 0.645298 | 7956968 |
834e554ca28892aa7c5ac9e6643f7fb6325880e3 | 186 | cpp | C++ | 05_recursion/11_factorial_loop.cpp | akshaykhadse/DataStructuresAndAlgorithms | beba7483cf14404f8eb73121886b8aedc4f1731a | [
"MIT"
] | null | null | null | 05_recursion/11_factorial_loop.cpp | akshaykhadse/DataStructuresAndAlgorithms | beba7483cf14404f8eb73121886b8aedc4f1731a | [
"MIT"
] | null | null | null | 05_recursion/11_factorial_loop.cpp | akshaykhadse/DataStructuresAndAlgorithms | beba7483cf14404f8eb73121886b8aedc4f1731a | [
"MIT"
] | null | null | null | #include <iostream>
int fact(int n) {
int f = 1;
for (int i = 1; i <= n; i++) {
f = f * i;
}
return f;
}
int main() {
std::cout << fact(3) << std::endl;
} | 12.4 | 38 | 0.419355 | akshaykhadse |
8353b68b440fb2b373b3381c1d3594a93a8f32d5 | 2,630 | cpp | C++ | middleware/src/gschema/embedded/embedded.cpp | TerraGraphics/TerraEngine | 874165a22ab7dd3774a6cfdeb023485a552d9860 | [
"Apache-2.0"
] | 5 | 2019-12-24T21:43:13.000Z | 2020-06-16T03:44:16.000Z | middleware/src/gschema/embedded/embedded.cpp | TerraGraphics/TerraEngine | 874165a22ab7dd3774a6cfdeb023485a552d9860 | [
"Apache-2.0"
] | null | null | null | middleware/src/gschema/embedded/embedded.cpp | TerraGraphics/TerraEngine | 874165a22ab7dd3774a6cfdeb023485a552d9860 | [
"Apache-2.0"
] | 1 | 2020-03-30T00:17:27.000Z | 2020-03-30T00:17:27.000Z | #include "middleware/gschema/embedded/embedded.h"
#include <vector>
#include <cstdint>
#include <stdexcept>
#include "eigen/core.h"
#include "middleware/gschema/meta/gs_define.h"
#include "middleware/gschema/graph/gs_types.h"
#include "middleware/gschema/embedded/func_add.h"
#include "middleware/gschema/embedded/func... | 33.291139 | 101 | 0.675285 | TerraGraphics |
83556f7f03906b27fe99c949ab4cf3136b4dce31 | 954 | cpp | C++ | test/MemoryTests.cpp | szborows/bflang-cpp-dojo | ee77e9c79e60e5688e9568aaf7c07b28bfc197d5 | [
"Apache-2.0"
] | null | null | null | test/MemoryTests.cpp | szborows/bflang-cpp-dojo | ee77e9c79e60e5688e9568aaf7c07b28bfc197d5 | [
"Apache-2.0"
] | null | null | null | test/MemoryTests.cpp | szborows/bflang-cpp-dojo | ee77e9c79e60e5688e9568aaf7c07b28bfc197d5 | [
"Apache-2.0"
] | null | null | null | #include <catch.hpp>
#include "Memory.hpp"
TEST_CASE( "initially memory cells are set to 0", "[memory]" ) {
Memory memory;
REQUIRE( memory.get() == Memory::MemoryCell{0} );
}
TEST_CASE( "getting after setting gives the same value", "[memory]" ) {
Memory memory;
constexpr auto value = 42;
memory.s... | 19.875 | 75 | 0.566038 | szborows |
835c62ebd4872897d97a2657f8f63e649044336e | 2,391 | hpp | C++ | libng/core/src/libng_core/libcxx/util/StringUtil.hpp | gapry/libng | 8fbf927e5bb73f105bddbb618430d3e1bf2cf877 | [
"MIT"
] | null | null | null | libng/core/src/libng_core/libcxx/util/StringUtil.hpp | gapry/libng | 8fbf927e5bb73f105bddbb618430d3e1bf2cf877 | [
"MIT"
] | null | null | null | libng/core/src/libng_core/libcxx/util/StringUtil.hpp | gapry/libng | 8fbf927e5bb73f105bddbb618430d3e1bf2cf877 | [
"MIT"
] | null | null | null | #pragma once
#include <libng_core/libcxx/fmt.hpp>
#include <libng_core/libcxx/span.hpp>
#include <libng_core/libcxx/string.hpp>
#include <libng_core/libcxx/string_view.hpp>
#include <libng_core/types/function.hpp>
#include <libng_core/types/number.hpp>
namespace libng {
struct StringUtil {
StringUtil() = delete;
... | 28.807229 | 97 | 0.700125 | gapry |
835c63405e24a68c918c689ab3a15a7f89e39db7 | 5,307 | hpp | C++ | include/microscopes/lda/model.hpp | tdhopper/lda | 595346f190c10d318dfe540395f1e17a4fa8a061 | [
"BSD-3-Clause"
] | null | null | null | include/microscopes/lda/model.hpp | tdhopper/lda | 595346f190c10d318dfe540395f1e17a4fa8a061 | [
"BSD-3-Clause"
] | null | null | null | include/microscopes/lda/model.hpp | tdhopper/lda | 595346f190c10d318dfe540395f1e17a4fa8a061 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#pragma once
#include <microscopes/common/util.hpp>
#include <microscopes/common/typedefs.hpp>
#include <microscopes/common/assert.hpp>
#include <microscopes/lda/util.hpp>
#include <math.h>
#include <vector>
#include <set>
#include <map>
namespace microscopes {
namespace lda {
typedef std::vector<std::... | 29.983051 | 121 | 0.654796 | tdhopper |
835e01effa160765ebe69c5d7543f8e808d459fe | 528 | cpp | C++ | module01/ex06/main.cpp | JLL32/piscine-cpp | d1d3296d8e25a1c33f7c92df4f61e6f76b8dab8c | [
"MIT"
] | null | null | null | module01/ex06/main.cpp | JLL32/piscine-cpp | d1d3296d8e25a1c33f7c92df4f61e6f76b8dab8c | [
"MIT"
] | null | null | null | module01/ex06/main.cpp | JLL32/piscine-cpp | d1d3296d8e25a1c33f7c92df4f61e6f76b8dab8c | [
"MIT"
] | null | null | null | #include "Karen.hpp"
#include <iostream>
enum {
DEBUG,
INFO,
WARNING,
ERROR,
};
int main(int argc, char *argv[]) {
if (argc != 2) {
std::cout << "Invalid ARG" << std::endl;
return 1;
}
Karen karen;
switch (Karen::level_to_index(argv[1])) {
case DEBUG:
karen.complain("DEBUG");
case INF... | 16 | 46 | 0.587121 | JLL32 |
83690dbf54a0641ee949cbd38a64a62381dd3d7f | 617 | hpp | C++ | src/sdm/utils/value_function/update_operator/vupdate/lb_tabular_update.hpp | SDMStudio/sdms | 43a86973081ffd86c091aed69b332f0087f59361 | [
"MIT"
] | null | null | null | src/sdm/utils/value_function/update_operator/vupdate/lb_tabular_update.hpp | SDMStudio/sdms | 43a86973081ffd86c091aed69b332f0087f59361 | [
"MIT"
] | null | null | null | src/sdm/utils/value_function/update_operator/vupdate/lb_tabular_update.hpp | SDMStudio/sdms | 43a86973081ffd86c091aed69b332f0087f59361 | [
"MIT"
] | null | null | null | #pragma once
#include <sdm/utils/value_function/vfunction/tabular_value_function.hpp>
#include <sdm/utils/value_function/update_operator/vupdate/tabular_update.hpp>
namespace sdm
{
namespace update
{
class LowerBoundTabularUpdate : public TabularUpdate
{
public:
LowerBoundT... | 34.277778 | 110 | 0.701783 | SDMStudio |
836f6920baf5cee3eaad98c025e641a056f96eca | 289 | hpp | C++ | src/friends.hpp | GeorgeA93/luasteam | 9495a895cae018e51496198a6c868be2ecd2094e | [
"MIT"
] | 61 | 2018-10-17T10:12:01.000Z | 2022-03-21T14:03:40.000Z | src/friends.hpp | GeorgeA93/luasteam | 9495a895cae018e51496198a6c868be2ecd2094e | [
"MIT"
] | 22 | 2018-08-21T20:43:25.000Z | 2022-02-01T18:11:14.000Z | src/friends.hpp | GeorgeA93/luasteam | 9495a895cae018e51496198a6c868be2ecd2094e | [
"MIT"
] | 12 | 2018-09-12T20:03:25.000Z | 2021-09-30T18:50:35.000Z | #ifndef LUASTEAM_FRIENDS
#define LUASTEAM_FRIENDS
#include "common.hpp"
namespace luasteam {
// Adds functions from ISteamFriends
void add_friends(lua_State *L);
void init_friends(lua_State *L);
void shutdown_friends(lua_State *L);
} // namespace luasteam
#endif // LUASTEAM_FRIENDS
| 17 | 36 | 0.782007 | GeorgeA93 |
836f9e3a66ab6a2e1e15f71c4121ae1c5781486c | 843 | cpp | C++ | Grafuri/Grafuri orientate/Verificare Lant/main.cpp | RegusAl/School | 87deb27f241aab1a93fd1cab0de2c7d8ee93df71 | [
"MIT"
] | 2 | 2021-04-20T21:22:37.000Z | 2021-04-20T21:23:09.000Z | Grafuri/Grafuri orientate/Verificare Lant/main.cpp | RegusAl/School | 87deb27f241aab1a93fd1cab0de2c7d8ee93df71 | [
"MIT"
] | null | null | null | Grafuri/Grafuri orientate/Verificare Lant/main.cpp | RegusAl/School | 87deb27f241aab1a93fd1cab0de2c7d8ee93df71 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
using namespace std;
int a[100][100], v[50], n, k;
void citire()
{
ifstream fin("matrice.in");
fin>>n;
for(int i=1; i<=n; i++)
for(int j=1; j<=n; j++)
fin>>a[i][j];
}
void afisare()
{
for(int i=1; i<=n; i++)
{
for(int j=1; j<=n; ... | 14.534483 | 34 | 0.457888 | RegusAl |
8373f1e5d838f91d7458bc29ceae25f3ba828d06 | 3,531 | hpp | C++ | PPreflection/viable_functions.hpp | Petkr/PPreflection | 9e2e3fd3dcae0b1acf75e6c0913a22d257a9c805 | [
"MIT"
] | null | null | null | PPreflection/viable_functions.hpp | Petkr/PPreflection | 9e2e3fd3dcae0b1acf75e6c0913a22d257a9c805 | [
"MIT"
] | null | null | null | PPreflection/viable_functions.hpp | Petkr/PPreflection | 9e2e3fd3dcae0b1acf75e6c0913a22d257a9c805 | [
"MIT"
] | null | null | null | #pragma once
#include <initializer_list>
#include "PP/reference_wrapper.hpp"
#include "PP/small_optimized_vector.hpp"
#include "PP/transform_view.hpp"
#include "PP/view_equal.hpp"
#include "args_to_types.hpp"
#include "overload_resolution.h"
#include "reflect.h"
namespace PPreflection
{
///
/// @brief An optimizatio... | 28.707317 | 74 | 0.669216 | Petkr |
8375f8fd45172ab1a06235e278352f3cf8b42784 | 2,826 | hpp | C++ | tests/common/include/coherence/tests/SimplePerson.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-01T21:38:30.000Z | 2021-11-03T01:35:11.000Z | tests/common/include/coherence/tests/SimplePerson.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 1 | 2020-07-24T17:29:22.000Z | 2020-07-24T18:29:04.000Z | tests/common/include/coherence/tests/SimplePerson.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-10T18:40:58.000Z | 2022-02-18T01:23:40.000Z | /*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
#ifndef COH_SIMPLE_PERSON_HPP
#define COH_SIMPLE_PERSON_HPP
#include "coherence/lang.ns"
#include "coherence/io/pof/PofReader.hpp"
#include "... | 25.690909 | 77 | 0.552017 | chpatel3 |
837b389e521017f5dcc8cbe843addbd69c4000f3 | 57 | hpp | C++ | src/boost_bimap_container_adaptor_set_adaptor.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_bimap_container_adaptor_set_adaptor.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_bimap_container_adaptor_set_adaptor.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/bimap/container_adaptor/set_adaptor.hpp>
| 28.5 | 56 | 0.842105 | miathedev |
837e67f6fa774d6b10c2b9dd563a364143df4643 | 8,723 | cpp | C++ | source/mango/image/image_pnm.cpp | heiligeslama/mango | 6528e151fa70c1b02871f1e7972e6c162c945350 | [
"Zlib"
] | null | null | null | source/mango/image/image_pnm.cpp | heiligeslama/mango | 6528e151fa70c1b02871f1e7972e6c162c945350 | [
"Zlib"
] | null | null | null | source/mango/image/image_pnm.cpp | heiligeslama/mango | 6528e151fa70c1b02871f1e7972e6c162c945350 | [
"Zlib"
] | null | null | null | /*
MANGO Multimedia Development Platform
Copyright (C) 2012-2018 Twilight Finland 3D Oy Ltd. All rights reserved.
*/
#include <cmath>
#include <cctype>
#include <mango/core/pointer.hpp>
#include <mango/core/buffer.hpp>
#include <mango/core/exception.hpp>
#include <mango/core/system.hpp>
#include <mango/image/im... | 28.884106 | 95 | 0.396309 | heiligeslama |
83817b90ddfc00e73cab1ccce1bb578bf4beca5b | 705 | hpp | C++ | include/eepp/system/cmutex.hpp | dogtwelve/eepp | dd672ff0e108ae1e08449ca918dc144018fb4ba4 | [
"MIT"
] | null | null | null | include/eepp/system/cmutex.hpp | dogtwelve/eepp | dd672ff0e108ae1e08449ca918dc144018fb4ba4 | [
"MIT"
] | null | null | null | include/eepp/system/cmutex.hpp | dogtwelve/eepp | dd672ff0e108ae1e08449ca918dc144018fb4ba4 | [
"MIT"
] | null | null | null | #ifndef EE_SYSTEMCMUTEX_H
#define EE_SYSTEMCMUTEX_H
#include <eepp/base.hpp>
#include <eepp/base/noncopyable.hpp>
namespace EE { namespace System {
namespace Platform { class cMutexImpl; }
/** @brief Blocks concurrent access to shared resources from multiple threads */
class EE_API cMutex : NonCopyable {
public:
... | 19.583333 | 80 | 0.693617 | dogtwelve |
838221c8a314075e3653f2a86b5ecfe9f525e418 | 1,685 | cpp | C++ | semana2/arquivoEscritaComTread.cpp | luisrodrigoads/objetosDistribuidos | a00b9c91c0c7f7f21dab6450d2fe756925cdda2d | [
"MIT"
] | null | null | null | semana2/arquivoEscritaComTread.cpp | luisrodrigoads/objetosDistribuidos | a00b9c91c0c7f7f21dab6450d2fe756925cdda2d | [
"MIT"
] | null | null | null | semana2/arquivoEscritaComTread.cpp | luisrodrigoads/objetosDistribuidos | a00b9c91c0c7f7f21dab6450d2fe756925cdda2d | [
"MIT"
] | null | null | null | #include<stdio.h>
#include<string.h>
#include<pthread.h>
#include <stdlib.h>
void *multiplosde3(void *th){
int y;
FILE *file;
printf("executando a thread nro %d\n", th);
file = fopen("multiplosde3.txt","w+");
for(y=1;y <= 9000000;y++){
if(y%3 == 0)
fprintf(file,"%d\n",y);
}
fclose(file);
printf("thread %d ... | 21.602564 | 59 | 0.639169 | luisrodrigoads |
838681355402f1ab74a26bb16c4d5277e7bcdd4a | 1,898 | cpp | C++ | c++/lowest_common_ancestor_of_a_binary_search_tree.cpp | SongZhao/leetcode | 4a2b4f554e91f6a2167b336f8a69b80fa9f3f920 | [
"Apache-2.0"
] | null | null | null | c++/lowest_common_ancestor_of_a_binary_search_tree.cpp | SongZhao/leetcode | 4a2b4f554e91f6a2167b336f8a69b80fa9f3f920 | [
"Apache-2.0"
] | null | null | null | c++/lowest_common_ancestor_of_a_binary_search_tree.cpp | SongZhao/leetcode | 4a2b4f554e91f6a2167b336f8a69b80fa9f3f920 | [
"Apache-2.0"
] | null | null | null | /*
Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST.
According to the definition of LCA on Wikipedia: “The lowest common ancestor is defined between two nodes v and w
as the lowest node in T that has both v and w as descendants (where we allow a node to be a descen... | 31.633333 | 122 | 0.579557 | SongZhao |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.