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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
908241c20ae52b86fb518762f2d582a4da8114d3 | 1,306 | cpp | C++ | MasterThesis/src/core/engine/System.cpp | tomaslori/AbsolutEngine | b8aec615b6d87af40d8e3fe4d4ec407c78c510fc | [
"MIT"
] | null | null | null | MasterThesis/src/core/engine/System.cpp | tomaslori/AbsolutEngine | b8aec615b6d87af40d8e3fe4d4ec407c78c510fc | [
"MIT"
] | null | null | null | MasterThesis/src/core/engine/System.cpp | tomaslori/AbsolutEngine | b8aec615b6d87af40d8e3fe4d4ec407c78c510fc | [
"MIT"
] | null | null | null | #include "System.h"
#include <string>
#include <fstream>
#include <sstream>
#include <iostream>
namespace AbsolutEngine {
template <class T> System<T>::System() : m_handleManager(std::make_unique<HandleManager>()), m_components(UINT16_MAX) {
static_assert(std::is_base_of<Component, T>::value, "T not derived from ... | 31.853659 | 133 | 0.702144 | tomaslori |
9082927e5f7f5931944bae4b2bd1e4a6ecc6a780 | 897 | cpp | C++ | graph/bfs,dfs/connectedcompo.cpp | SiverPineValley/algo | 29c75c6b226fdb15a3b6695e763ee49d4871094e | [
"Apache-2.0"
] | null | null | null | graph/bfs,dfs/connectedcompo.cpp | SiverPineValley/algo | 29c75c6b226fdb15a3b6695e763ee49d4871094e | [
"Apache-2.0"
] | null | null | null | graph/bfs,dfs/connectedcompo.cpp | SiverPineValley/algo | 29c75c6b226fdb15a3b6695e763ee49d4871094e | [
"Apache-2.0"
] | null | null | null | // 11724
#include<iostream>
#include<stack>
#include<vector>
#include<algorithm>
using namespace std;
int n, m;
vector<vector<int>> e(1001);
bool check[1001];
void dfs(int f)
{
stack<pair<int,int>> s;
s.push(make_pair(f,0));
check[f] = true;
while(!s.empty())
{
int node = s.top().first;
int start = s.top().sec... | 15.465517 | 45 | 0.528428 | SiverPineValley |
9087ff3f74d2792c42f04d54b3ac2e7c5d946f86 | 431 | cpp | C++ | Software/SoftwareAtmega328P/SleepM.cpp | sulkith/BCDWristWatch | 4f80a6b92dabbd479b9f19544f7ee0d5ccddf36b | [
"MIT"
] | 3 | 2019-05-08T09:21:02.000Z | 2019-05-30T10:33:58.000Z | Software/SoftwareAtmega328P/SleepM.cpp | sulkith/BCDWristWatch | 4f80a6b92dabbd479b9f19544f7ee0d5ccddf36b | [
"MIT"
] | null | null | null | Software/SoftwareAtmega328P/SleepM.cpp | sulkith/BCDWristWatch | 4f80a6b92dabbd479b9f19544f7ee0d5ccddf36b | [
"MIT"
] | null | null | null | #include "SleepM.h"
SleepM *SleepM::instance = 0;
void SleepM::cyclic()
{
if(ClockM::getInstance().getCtr() > sleepTime)
{
for(uint8_t i=0;i<numSubscriber;++i)
{
subscriber[i]->executeSleepSubscription();
}
while(hal->HAL_sleep()==0);
wakeupTime = ClockM::getInstance().getCtr();
slee... | 20.52381 | 48 | 0.640371 | sulkith |
908955c6713af0c7e859efcda3309dc2902bc798 | 5,053 | hpp | C++ | core/Bp.hpp | lkpworkspace/SoftwareFactory | 578b7a7541b8e818097ca7948a1dbc7957e248ee | [
"MIT"
] | 2 | 2022-02-10T20:27:26.000Z | 2022-03-10T01:21:50.000Z | core/Bp.hpp | lkpworkspace/SoftwareFactory | 578b7a7541b8e818097ca7948a1dbc7957e248ee | [
"MIT"
] | null | null | null | core/Bp.hpp | lkpworkspace/SoftwareFactory | 578b7a7541b8e818097ca7948a1dbc7957e248ee | [
"MIT"
] | 1 | 2022-02-11T14:17:53.000Z | 2022-02-11T14:17:53.000Z | #pragma once
#include <string>
#include <memory>
#include <unordered_map>
#include <functional>
#include <jsoncpp/json/json.h>
#include "BpVariable.hpp"
#include "BpNode.hpp"
namespace bp {
/// 加载保存返回状态
enum class LoadSaveState : int {
OK = 0,
ERR_OPEN_FILE,
ERR_PARSE,
ERR_VERSION,
ERR_VA... | 26.455497 | 146 | 0.651098 | lkpworkspace |
9089847ae348c0a35bbfbff0ef2e40eb425d69e7 | 3,168 | hpp | C++ | i23dSFM/sfm/pipelines/global/GlobalSfM_translation_averaging.hpp | zyxrrr/GraphSfM | 1af22ec17950ffc8a5c737a6a46f4465c40aa470 | [
"BSD-3-Clause"
] | null | null | null | i23dSFM/sfm/pipelines/global/GlobalSfM_translation_averaging.hpp | zyxrrr/GraphSfM | 1af22ec17950ffc8a5c737a6a46f4465c40aa470 | [
"BSD-3-Clause"
] | null | null | null | i23dSFM/sfm/pipelines/global/GlobalSfM_translation_averaging.hpp | zyxrrr/GraphSfM | 1af22ec17950ffc8a5c737a6a46f4465c40aa470 | [
"BSD-3-Clause"
] | 1 | 2019-02-18T09:49:32.000Z | 2019-02-18T09:49:32.000Z |
// Copyright (c) 2015 Pierre MOULON.
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef I23DSFM_SFM_GLOBAL_ENGINE_PIPELINES_GLOBAL_TRANSLATION_AVERAGING_HPP
#... | 34.064516 | 90 | 0.780934 | zyxrrr |
9090d539ebc010c544af5a88c16c568ad2346514 | 166 | cpp | C++ | GLFramework/Helper/MathHelper.cpp | Illation/GLFramework | 2b9d3d67d4e951e2ff5ace0241750a438d6e743f | [
"MIT"
] | 39 | 2016-03-23T00:39:46.000Z | 2022-02-07T21:26:05.000Z | GLFramework/Helper/MathHelper.cpp | Illation/GLFramework | 2b9d3d67d4e951e2ff5ace0241750a438d6e743f | [
"MIT"
] | 1 | 2016-03-24T14:39:45.000Z | 2016-03-24T17:34:39.000Z | GLFramework/Helper/MathHelper.cpp | Illation/GLFramework | 2b9d3d67d4e951e2ff5ace0241750a438d6e743f | [
"MIT"
] | 3 | 2016-08-15T01:27:13.000Z | 2021-12-29T01:37:51.000Z | #pragma once
#include "stdafx.hpp"
#include "MathHelper.hpp"
string to_string(vec3 in)
{
return to_string(in.x) + ", " + to_string(in.y) + ", " + to_string(in.z);
} | 20.75 | 74 | 0.656627 | Illation |
90960decb048675d46b9f98e29121cfd6b2ce4f5 | 3,051 | cpp | C++ | oceanus/src/v20190422/model/DeleteResourceConfigsRequest.cpp | sinjoywong/tencentcloud-sdk-cpp | 1b931d20956a90b15a6720f924e5c69f8786f9f4 | [
"Apache-2.0"
] | 43 | 2019-08-14T08:14:12.000Z | 2022-03-30T12:35:09.000Z | oceanus/src/v20190422/model/DeleteResourceConfigsRequest.cpp | sinjoywong/tencentcloud-sdk-cpp | 1b931d20956a90b15a6720f924e5c69f8786f9f4 | [
"Apache-2.0"
] | 12 | 2019-07-15T10:44:59.000Z | 2021-11-02T12:35:00.000Z | oceanus/src/v20190422/model/DeleteResourceConfigsRequest.cpp | sinjoywong/tencentcloud-sdk-cpp | 1b931d20956a90b15a6720f924e5c69f8786f9f4 | [
"Apache-2.0"
] | 28 | 2019-07-12T09:06:22.000Z | 2022-03-30T08:04:18.000Z | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 30.51 | 108 | 0.745329 | sinjoywong |
9098cbd0e89101bf2006153bde3d980e0f3fdee3 | 1,428 | cpp | C++ | online judge solution of trie tree/lightOJ_1224.cpp | shiningflash/Advance-Data-Structure | 87f1813c5bcfb2ad77b8f1f2d8f0259d3f87371a | [
"MIT"
] | 3 | 2020-11-09T18:36:48.000Z | 2020-12-31T03:51:08.000Z | online judge solution of trie tree/lightOJ_1224.cpp | shiningflash/data-structure | 87f1813c5bcfb2ad77b8f1f2d8f0259d3f87371a | [
"MIT"
] | null | null | null | online judge solution of trie tree/lightOJ_1224.cpp | shiningflash/data-structure | 87f1813c5bcfb2ad77b8f1f2d8f0259d3f87371a | [
"MIT"
] | 3 | 2020-10-11T19:13:56.000Z | 2021-06-20T19:01:04.000Z | #include <bits/stdc++.h>
using namespace std;
map <char, int> mp;
struct node {
int cnt;
bool mark;
node *next[4];
node() {
cnt = 0;
mark = false;
for (int i = 0; i < 4; next[i] = NULL, i++);
}
} * root;
void insert(string s) {
node *cur = root;
for (int i = 0; s[i... | 19.833333 | 62 | 0.398459 | shiningflash |
909b18c6fdd51b869fb9063912122caaa447c6bc | 2,387 | hpp | C++ | include/edlib/Op/NodeMV_MKL.hpp | cecri/ExactDiagonalization | a168ed2f60149b1c3e5bd9ae46a5d169aea76773 | [
"MIT"
] | null | null | null | include/edlib/Op/NodeMV_MKL.hpp | cecri/ExactDiagonalization | a168ed2f60149b1c3e5bd9ae46a5d169aea76773 | [
"MIT"
] | null | null | null | include/edlib/Op/NodeMV_MKL.hpp | cecri/ExactDiagonalization | a168ed2f60149b1c3e5bd9ae46a5d169aea76773 | [
"MIT"
] | null | null | null | #pragma once
#include "exceptions.hpp"
#include <mkl.h>
#include <algorithm>
#include <cstdlib>
#include <utility>
#include <vector>
namespace edlib
{
class NodeMV
{
private:
size_t dim_;
size_t row_start_;
size_t rows_;
std::vector<double> values;
std::vector<int> colIdx;
std::vector<int> ... | 27.125 | 91 | 0.596146 | cecri |
909baacd9b41f11ba7cc45d4743fe06201ae10a5 | 7,966 | hpp | C++ | ports/cgl/out/build/x64-Debug/vcpkg_installed/x64-windows/include/Coin/CoinError.hpp | sparshsaxenain/vcpkg | 10f979604a2d6b5ac0249df65d11690e25f53a4d | [
"MIT"
] | 7 | 2020-07-04T01:50:12.000Z | 2021-06-03T21:54:52.000Z | PO_class/assignment_2/or-tools/include/coin/CoinError.hpp | ItamarRocha/Operations-Research | 55c4d54959555c3b9d54641e76eb6cfb2c011a2c | [
"MIT"
] | null | null | null | PO_class/assignment_2/or-tools/include/coin/CoinError.hpp | ItamarRocha/Operations-Research | 55c4d54959555c3b9d54641e76eb6cfb2c011a2c | [
"MIT"
] | null | null | null | /* $Id$ */
// Copyright (C) 2000, International Business Machines
// Corporation and others. All Rights Reserved.
// This code is licensed under the terms of the Eclipse Public License (EPL).
#ifndef CoinError_H
#define CoinError_H
#include <string>
#include <iostream>
#include <cassert>
#include <cstring>
#include... | 28.967273 | 80 | 0.489204 | sparshsaxenain |
909d09701373bb54d5ec6cac96f6e8ece32238f7 | 1,147 | cpp | C++ | pvl/abridged/graphs/lca/binary_lifting.cpp | bullybutcher/progvar-library | 4d4b351c8a2540c522d00138e1bcf0edc528b540 | [
"MIT"
] | 3 | 2021-10-16T13:22:58.000Z | 2021-10-29T22:03:44.000Z | pvl/abridged/graphs/lca/binary_lifting.cpp | bullybutcher/progvar-library | 4d4b351c8a2540c522d00138e1bcf0edc528b540 | [
"MIT"
] | 19 | 2021-11-27T14:40:00.000Z | 2022-03-30T07:14:59.000Z | pvl/abridged/graphs/lca/binary_lifting.cpp | bullybutcher/progvar-library | 4d4b351c8a2540c522d00138e1bcf0edc528b540 | [
"MIT"
] | 2 | 2022-03-11T20:53:41.000Z | 2022-03-20T07:08:46.000Z | struct graph {
int n, logn, *dep, **par;
std::vector<int> *adj;
graph(int n, int logn=20) : n(n), logn(logn) {
adj = new std::vector<int>[n];
dep = new int[n];
par = new int*[n];
for (int i = 0; i < n; ++i) par[i] = new int[logn]; }
void dfs(int u, int p, int d) {
dep[u] = d;
p... | 33.735294 | 58 | 0.428945 | bullybutcher |
909d1258015d1af34dd1e21ff0993800573e239e | 40,778 | cpp | C++ | src/Views/CViewDataDump.cpp | slajerek/RetroDebugger | e761e4f9efd103a05e65ef283423b142fa4324c7 | [
"Apache-2.0",
"MIT"
] | 34 | 2021-05-29T07:04:17.000Z | 2022-03-10T20:16:03.000Z | src/Views/CViewDataDump.cpp | slajerek/RetroDebugger | e761e4f9efd103a05e65ef283423b142fa4324c7 | [
"Apache-2.0",
"MIT"
] | 6 | 2021-12-25T13:05:21.000Z | 2022-01-19T17:35:17.000Z | src/Views/CViewDataDump.cpp | slajerek/RetroDebugger | e761e4f9efd103a05e65ef283423b142fa4324c7 | [
"Apache-2.0",
"MIT"
] | 6 | 2021-12-24T18:37:41.000Z | 2022-02-06T23:06:02.000Z | #include <math.h>
#include "GUI_Main.h"
#include "CViewDataDump.h"
#include "RES_ResourceManager.h"
#include "CDataAdapter.h"
#include "CSlrString.h"
#include "SYS_KeyCodes.h"
#include "CViewC64.h"
#include "CViewMemoryMap.h"
#include "C64Tools.h"
#include "SYS_Threading.h"
#include "CGuiEditHex.h"
#include "VID_ImageB... | 24.229352 | 161 | 0.676468 | slajerek |
90a3fc555e01506e31ad8911f353fec51af94c5d | 992 | cpp | C++ | src/common/BbWorklist.cpp | fogshot/relational-analysis | f954fc3637709e30e7844c2e28b5d32709e7f6b1 | [
"MIT"
] | 1 | 2018-11-26T00:51:43.000Z | 2018-11-26T00:51:43.000Z | src/common/BbWorklist.cpp | fogshot/relational-analysis | f954fc3637709e30e7844c2e28b5d32709e7f6b1 | [
"MIT"
] | null | null | null | src/common/BbWorklist.cpp | fogshot/relational-analysis | f954fc3637709e30e7844c2e28b5d32709e7f6b1 | [
"MIT"
] | 1 | 2018-11-30T17:50:40.000Z | 2018-11-30T17:50:40.000Z | #include "BbWorklist.h"
#include "State.h"
using namespace llvm;
namespace bra {
void BbWorkList::push(BasicBlock *bb) {
if (inWorklist.find(bb) == inWorklist.end()) {
worklist.push(bb);
inWorklist.insert(bb);
}
}
BasicBlock *BbWorkList::pop() {
auto temp =... | 24.8 | 80 | 0.534274 | fogshot |
90a8f5649365f2279a5b23defeeddb9e90b7685b | 5,322 | cpp | C++ | src/engine/game.cpp | philong6297/tetravex-solver | 3d427f00a697c22c2231c57445140c7f1bb76572 | [
"MIT"
] | null | null | null | src/engine/game.cpp | philong6297/tetravex-solver | 3d427f00a697c22c2231c57445140c7f1bb76572 | [
"MIT"
] | null | null | null | src/engine/game.cpp | philong6297/tetravex-solver | 3d427f00a697c22c2231c57445140c7f1bb76572 | [
"MIT"
] | null | null | null | #include "engine/game.h"
#include <stddef.h>
#include <iostream>
#include <string>
Game::Game() : Game(0) {}
Game::Game(const size_t size) :
size_(size),
pieces_(size * size, Piece()), // initialize pieces with default data
board_(size * size, kInvalidPieceId) // initislize empty board
{}
... | 31.868263 | 97 | 0.651635 | philong6297 |
90aa5a1961c49e9a41608fb70534b76198cedba1 | 7,497 | cpp | C++ | global/src/fortests/PetscSetupUtils.cpp | ktunya/ChasteMod | 88ac65b00473cd730d348c783bd74b2b39de5f69 | [
"Apache-2.0"
] | null | null | null | global/src/fortests/PetscSetupUtils.cpp | ktunya/ChasteMod | 88ac65b00473cd730d348c783bd74b2b39de5f69 | [
"Apache-2.0"
] | null | null | null | global/src/fortests/PetscSetupUtils.cpp | ktunya/ChasteMod | 88ac65b00473cd730d348c783bd74b2b39de5f69 | [
"Apache-2.0"
] | null | null | null | /*
Copyright (c) 2005-2015, University of Oxford.
All rights reserved.
University of Oxford means the Chancellor, Masters and Scholars of the
University of Oxford, having an administrative office at Wellington
Square, Oxford OX1 2JD, UK.
This file is part of Chaste.
Redistribution and use in source and binary forms... | 43.33526 | 130 | 0.624383 | ktunya |
90ac48969d5d4d59f4d8eb61bf5f779813113b7a | 2,609 | cpp | C++ | src/match.cpp | KiLJ4EdeN/face_recognition_cpp | ef4657c9b589ef23c6e72cdecc2051324ef78def | [
"MIT"
] | 8 | 2020-11-10T10:08:18.000Z | 2021-11-15T11:20:11.000Z | src/match.cpp | KiLJ4EdeN/face_recognition_cpp | ef4657c9b589ef23c6e72cdecc2051324ef78def | [
"MIT"
] | null | null | null | src/match.cpp | KiLJ4EdeN/face_recognition_cpp | ef4657c9b589ef23c6e72cdecc2051324ef78def | [
"MIT"
] | null | null | null | #include <insightface.hpp>
#include <string>
#include <vector>
#include <opencv2/opencv.hpp>
#include <sys/time.h>
unsigned long getCurTime() {
struct timeval tv;
unsigned long ts;
gettimeofday(&tv, NULL);
ts = tv.tv_sec * 1000000 + tv.tv_usec;
return ts;
}
float cosine_similarity( std::vector<float> A, std... | 28.988889 | 97 | 0.596397 | KiLJ4EdeN |
90aefab0e06d35137166bbf2d11df957b9daca2e | 822 | hpp | C++ | lib/libcpp/FadalightMesh/FadalightMesh/curvedboundarydescriptionnozzle.hpp | beckerrh/simfemsrc | d857eb6f6f8627412d4f9d89a871834c756537db | [
"MIT"
] | null | null | null | lib/libcpp/FadalightMesh/FadalightMesh/curvedboundarydescriptionnozzle.hpp | beckerrh/simfemsrc | d857eb6f6f8627412d4f9d89a871834c756537db | [
"MIT"
] | 1 | 2019-01-31T10:59:11.000Z | 2019-01-31T10:59:11.000Z | lib/libcpp/FadalightMesh/FadalightMesh/curvedboundarydescriptionnozzle.hpp | beckerrh/simfemsrc | d857eb6f6f8627412d4f9d89a871834c756537db | [
"MIT"
] | null | null | null | #ifndef __FadalightMesh_CurvedBoundaryDescriptionNozzle_h
#define __FadalightMesh_CurvedBoundaryDescriptionNozzle_h
#include "curvedboundarydescriptionbase.hpp"
/*---------------------------------------------------*/
namespace FadalightMesh
{
class CurvedBoundaryDescriptionNozzle : public CurvedBoundaryDescript... | 31.615385 | 102 | 0.693431 | beckerrh |
90af9e5377f42bddf1cc8da244be5f040cc30df7 | 3,028 | hpp | C++ | Pods/Realm/include/util/bson/regular_expression.hpp | taptalk-io/meettalk-ios | 9300303a7ecc8280af6b84ece32a3defe68f841d | [
"MIT"
] | 127 | 2016-07-29T20:59:40.000Z | 2021-07-19T19:28:24.000Z | Pods/Realm/include/util/bson/regular_expression.hpp | taptalk-io/meettalk-ios | 9300303a7ecc8280af6b84ece32a3defe68f841d | [
"MIT"
] | 645 | 2016-07-29T21:15:02.000Z | 2021-04-22T11:21:37.000Z | Pods/Realm/include/util/bson/regular_expression.hpp | taptalk-io/meettalk-ios | 9300303a7ecc8280af6b84ece32a3defe68f841d | [
"MIT"
] | 38 | 2016-08-09T14:29:08.000Z | 2022-03-13T19:43:01.000Z | /*************************************************************************
*
* Copyright 2020 Realm 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/LIC... | 33.644444 | 99 | 0.666446 | taptalk-io |
ff99435595b819d0326662a8897301b257879fcc | 536 | cpp | C++ | solutions/AtCoder/chokudai_S002/F.cpp | yumeno-ukihashi/competitive-programming | 5cc3a7938b62133d8dc71a179cb11dfe985315d3 | [
"Unlicense"
] | null | null | null | solutions/AtCoder/chokudai_S002/F.cpp | yumeno-ukihashi/competitive-programming | 5cc3a7938b62133d8dc71a179cb11dfe985315d3 | [
"Unlicense"
] | null | null | null | solutions/AtCoder/chokudai_S002/F.cpp | yumeno-ukihashi/competitive-programming | 5cc3a7938b62133d8dc71a179cb11dfe985315d3 | [
"Unlicense"
] | null | null | null | #include<bits/stdc++.h>
#define REP(x,y,z) for(int x=y;x<=z;x++)
#define MSET(x,y) memset(x,y,sizeof(x))
#define M
using namespace std;
int main()
{
int n,a,b,ans;
map<pair<int,int>,bool> mp;
while (~scanf("%d", &n)) {
ans = 0;
mp.clear();
REP(i,1,n) {
scanf("%d %d",&a,&... | 21.44 | 42 | 0.421642 | yumeno-ukihashi |
ff999e963ff484271e20ded8e052e6c0bdb5569f | 481 | hpp | C++ | RefReleaser.hpp | fightling/decklink-debugger | 796be29a62a02593cf7b53e695b2f53f04a2fc75 | [
"MIT"
] | 18 | 2018-01-07T19:19:59.000Z | 2021-12-27T14:11:32.000Z | RefReleaser.hpp | fightling/decklink-debugger | 796be29a62a02593cf7b53e695b2f53f04a2fc75 | [
"MIT"
] | 8 | 2018-01-10T23:28:11.000Z | 2021-07-15T22:12:50.000Z | RefReleaser.hpp | fightling/decklink-debugger | 796be29a62a02593cf7b53e695b2f53f04a2fc75 | [
"MIT"
] | 10 | 2018-05-10T19:53:30.000Z | 2020-12-05T11:54:20.000Z | #ifndef __RefReleaser__
#define __RefReleaser__
#include "log.h"
template <class T>
class RefReleaser
{
public:
RefReleaser(T **ptr) : m_ptr(ptr) {};
~RefReleaser() {
if((m_ptr != nullptr) && ((*m_ptr) != nullptr)) {
ULONG nRef = (*m_ptr)->Release();
if(nRef == 0) {
LOG(DEBUG3) << __PRETTY_FUNCTION__ <<... | 17.178571 | 76 | 0.594595 | fightling |
ffa000303c19a72bacb19a0cc6310d3ccfb5fc0b | 1,680 | cpp | C++ | server/uhpsqld.cpp | eraft-io/UHP-SQL | cc0ba91b6b24cee7be35576b213d65dd345d0751 | [
"Apache-2.0"
] | 10 | 2022-01-03T05:47:55.000Z | 2022-03-16T05:14:48.000Z | server/uhpsqld.cpp | eraft-io/UHP-SQL | cc0ba91b6b24cee7be35576b213d65dd345d0751 | [
"Apache-2.0"
] | null | null | null | server/uhpsqld.cpp | eraft-io/UHP-SQL | cc0ba91b6b24cee7be35576b213d65dd345d0751 | [
"Apache-2.0"
] | 3 | 2022-01-27T02:54:09.000Z | 2022-03-29T11:15:36.000Z | // Copyright 2022 The uhp-sql Authors
//
// 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 agree... | 23.661972 | 78 | 0.707143 | eraft-io |
ffa413aa28bd07414b2a21d378b33c5cc724c08c | 1,049 | cpp | C++ | test/main.cpp | yvz/iocplusplus | b7305fc45ba3c7e2c978d1fae6032bf1d90e5f1e | [
"BSL-1.0"
] | 1 | 2016-08-28T21:52:18.000Z | 2016-08-28T21:52:18.000Z | test/main.cpp | yvz/iocplusplus | b7305fc45ba3c7e2c978d1fae6032bf1d90e5f1e | [
"BSL-1.0"
] | null | null | null | test/main.cpp | yvz/iocplusplus | b7305fc45ba3c7e2c978d1fae6032bf1d90e5f1e | [
"BSL-1.0"
] | null | null | null | #include <crtdbg.h>
#include <gtest/gtest.h>
namespace testing
{
#ifdef _DEBUG
class MemoryLeakDetector : public EmptyTestEventListener
{
public:
virtual void OnTestStart(const TestInfo&)
{
_CrtMemCheckpoint(&m_onStart);
}
virtual void OnTestEnd(const TestInfo&... | 21.854167 | 90 | 0.550048 | yvz |
ffacbe4ebc952c789afd1856a9082cceec38be20 | 3,476 | cpp | C++ | test/t3.t.cpp | sheehamj13/task | 67ed9cadfcbccf1f1071fc1b04cde61a2aba2f69 | [
"MIT"
] | null | null | null | test/t3.t.cpp | sheehamj13/task | 67ed9cadfcbccf1f1071fc1b04cde61a2aba2f69 | [
"MIT"
] | null | null | null | test/t3.t.cpp | sheehamj13/task | 67ed9cadfcbccf1f1071fc1b04cde61a2aba2f69 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
//
// Copyright 2006 - 2015, Paul Beckingham, Federico Hernandez.
//
// 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... | 41.380952 | 130 | 0.593211 | sheehamj13 |
ffaf33fc6312b18a32324793d62f945e4ed97126 | 3,298 | cpp | C++ | xiablo/Plugins/SketchFabPlugin/Source/GLTFExporter/Private/Converters/GLTFMeshData.cpp | jing-interactive/ucd | 8fc8722291f086a0c0037a94d11c14562375e862 | [
"MIT"
] | 1 | 2022-02-02T23:36:07.000Z | 2022-02-02T23:36:07.000Z | xiablo/Plugins/SketchFabPlugin/Source/GLTFExporter/Private/Converters/GLTFMeshData.cpp | jing-interactive/ucd | 8fc8722291f086a0c0037a94d11c14562375e862 | [
"MIT"
] | null | null | null | xiablo/Plugins/SketchFabPlugin/Source/GLTFExporter/Private/Converters/GLTFMeshData.cpp | jing-interactive/ucd | 8fc8722291f086a0c0037a94d11c14562375e862 | [
"MIT"
] | null | null | null | // Copyright Epic Games, Inc. All Rights Reserved.
#include "Converters/SKGLTFMeshData.h"
#include "Converters/SKGLTFNameUtility.h"
#include "Converters/SKGLTFMeshUtility.h"
#include "StaticMeshAttributes.h"
#include "Developer/MeshMergeUtilities/Private/MeshMergeHelpers.h"
#include "Rendering/SkeletalMeshRende... | 38.348837 | 155 | 0.766828 | jing-interactive |
ffb5a9711b1c1986661c1094075ed62aea83001a | 357 | hpp | C++ | library/ATF/CVariantBoolPair.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/CVariantBoolPair.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/CVariantBoolPair.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
START_ATF_NAMESPACE
#pragma pack(push, 8)
struct CVariantBoolPair
{
int *m_pbool;
__int16 *m_pvarbool;
int m_bOwnBOOLMem;
};
... | 21 | 108 | 0.683473 | lemkova |
ffb5e64038d39551cb073fdfe82a2d070847ac71 | 3,791 | cpp | C++ | app/checkforupdatesdialog.cpp | pgeorgiev98/5Com | b24e28fc92fa692d5292c29ff22dc312d3fe5cf6 | [
"MIT"
] | 2 | 2019-02-21T18:24:08.000Z | 2019-03-23T06:29:59.000Z | app/checkforupdatesdialog.cpp | pgeorgiev98/5Com | b24e28fc92fa692d5292c29ff22dc312d3fe5cf6 | [
"MIT"
] | null | null | null | app/checkforupdatesdialog.cpp | pgeorgiev98/5Com | b24e28fc92fa692d5292c29ff22dc312d3fe5cf6 | [
"MIT"
] | null | null | null | #include "checkforupdatesdialog.h"
#include "common.h"
#ifdef Q_OS_WIN
#include "autoupdatedialog.h"
#endif
#include <QVBoxLayout>
#include <QStackedLayout>
#include <QLabel>
#include <QPushButton>
#include <QProgressBar>
CheckForUpdatesDialog::CheckForUpdatesDialog(const LatestReleaseChecker::Release *release, QWi... | 30.821138 | 107 | 0.746505 | pgeorgiev98 |
ffbd02cde54f1c3103d707ef36573fae9985a9b0 | 8,988 | cpp | C++ | APIs/samples/ScanerAPI/SampleCom/NTComunication/NTComunication.cpp | AVSGuillaume/SCANeR-Samples-Pack | fb872ebb77d2faeae25e74ad11a2e947cd0e0ff5 | [
"MIT"
] | null | null | null | APIs/samples/ScanerAPI/SampleCom/NTComunication/NTComunication.cpp | AVSGuillaume/SCANeR-Samples-Pack | fb872ebb77d2faeae25e74ad11a2e947cd0e0ff5 | [
"MIT"
] | null | null | null | APIs/samples/ScanerAPI/SampleCom/NTComunication/NTComunication.cpp | AVSGuillaume/SCANeR-Samples-Pack | fb872ebb77d2faeae25e74ad11a2e947cd0e0ff5 | [
"MIT"
] | 5 | 2022-02-01T06:27:22.000Z | 2022-03-16T13:19:49.000Z | /*! includes **/
#include <windows.h>
#include <string>
#include <iostream>
#include <conio.h>
#include "scanerAPI/scanerAPI_DLL_C.h"
#include "scanerAPI/ScanerAPImessagesNetwork.h"
#include "NightTest/NightTest.h"
#include "NightTest/Product.h"
#include "NightTest/OpticalFunction.h"
#include "NightTest/Projector.h"
#i... | 34.305344 | 218 | 0.662439 | AVSGuillaume |
ffc19f72ea56bbd7a0833267058edbed2953e3be | 2,446 | hpp | C++ | Encoder.hpp | rainerschoe/ZeroCopyMessagePack | 283e283a312f4eb49858e033c96f6d684d26e27d | [
"Apache-2.0"
] | 1 | 2021-11-06T23:31:38.000Z | 2021-11-06T23:31:38.000Z | Encoder.hpp | rainerschoe/ZeroCopyMessagePack | 283e283a312f4eb49858e033c96f6d684d26e27d | [
"Apache-2.0"
] | 2 | 2021-11-07T01:15:26.000Z | 2021-11-07T13:35:07.000Z | Encoder.hpp | rainerschoe/ZeroCopyMessagePack | 283e283a312f4eb49858e033c96f6d684d26e27d | [
"Apache-2.0"
] | 2 | 2021-11-06T23:14:36.000Z | 2022-03-24T17:13:45.000Z | // Copyright 2021 Rainer Schoenberger
//
// 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 ag... | 34.450704 | 99 | 0.661079 | rainerschoe |
ffc3d63f973ba269318cf562c09d139070329c1e | 994 | hpp | C++ | 3DApp/Vertex.hpp | aleios/3dapp | 1593ebd58ef1fd143752481ff1f0b8ce6b69a5ed | [
"MIT"
] | null | null | null | 3DApp/Vertex.hpp | aleios/3dapp | 1593ebd58ef1fd143752481ff1f0b8ce6b69a5ed | [
"MIT"
] | null | null | null | 3DApp/Vertex.hpp | aleios/3dapp | 1593ebd58ef1fd143752481ff1f0b8ce6b69a5ed | [
"MIT"
] | null | null | null | #pragma once
#ifndef VERTEX_HPP
#define VERTEX_HPP
#include "AEmath.hpp"
#include "Color.hpp"
class Vertex
{
public:
Vertex()
: pos(0.0f, 0.0f, 0.0f), normal(1.0f, 1.0f, 1.0f), tangent(1.0f, 1.0f, 1.0f), bitangent(0.0f, 0.0f, 0.0f), texcoords(0.0f, 0.0f), col(255, 255, 255, 255)
{
}
Vertex(co... | 24.243902 | 161 | 0.618712 | aleios |
ffc6b134c90b4791d98a0df992d68c7b1e65cba6 | 16,756 | cpp | C++ | RLSimion/Lib/controller.cpp | xcillero001/SimionZoo | b343b08f3356e1aa230d4132b0abb58aac4c5e98 | [
"MIT"
] | 1 | 2019-02-21T10:40:28.000Z | 2019-02-21T10:40:28.000Z | RLSimion/Lib/controller.cpp | JosuGom3z/SimionZoo | b343b08f3356e1aa230d4132b0abb58aac4c5e98 | [
"MIT"
] | null | null | null | RLSimion/Lib/controller.cpp | JosuGom3z/SimionZoo | b343b08f3356e1aa230d4132b0abb58aac4c5e98 | [
"MIT"
] | null | null | null | #include "controller.h"
#include "../Common/named-var-set.h"
#include "worlds/world.h"
#include "config.h"
#include "parameters-numeric.h"
#include "app.h"
#include "experiment.h"
#include <algorithm>
#include <math.h>
vector<double>& Controller::evaluate(const State* s, const Action* a)
{
for (unsigned int output = ... | 38.255708 | 165 | 0.687754 | xcillero001 |
ffc6cd27baf34a108c17e432018168c2d9562082 | 1,910 | cpp | C++ | Opponent.cpp | LeonidFedorenko/SpaceBattle | ab8a1e70e02ec5fd6ff486d4f5af55ca85825f5f | [
"MIT"
] | null | null | null | Opponent.cpp | LeonidFedorenko/SpaceBattle | ab8a1e70e02ec5fd6ff486d4f5af55ca85825f5f | [
"MIT"
] | null | null | null | Opponent.cpp | LeonidFedorenko/SpaceBattle | ab8a1e70e02ec5fd6ff486d4f5af55ca85825f5f | [
"MIT"
] | null | null | null | #include "Opponent.hpp"
void Opponent::initAnyVar()
{ // переменные
float sE = rand() % 10 + 1; // переменная для разной скорости
this->pointEnemyCount = rand() % 21 + 5; // здоровье врага (от 4 до 12)
this-> typeEnemy = 0; // тип фигуры врага
this-> speedEnemy = sE / 10; // скорость движения врага
this-> health... | 25.810811 | 83 | 0.702094 | LeonidFedorenko |
ffcb52fa3f4ee13394c76b160fe4aea621d15ce3 | 6,476 | cpp | C++ | projects/2_alg_dan/asd_lab_4/realty2.cpp | GodBastardNeil/somethings | 56a25ab2a3150658356924b00fed7d97ad76a9cb | [
"BSD-3-Clause"
] | null | null | null | projects/2_alg_dan/asd_lab_4/realty2.cpp | GodBastardNeil/somethings | 56a25ab2a3150658356924b00fed7d97ad76a9cb | [
"BSD-3-Clause"
] | null | null | null | projects/2_alg_dan/asd_lab_4/realty2.cpp | GodBastardNeil/somethings | 56a25ab2a3150658356924b00fed7d97ad76a9cb | [
"BSD-3-Clause"
] | null | null | null | #include "realty2.h"
void realty2::data_checker(std::string data)
{
if (data.size() > 8) { throw data_8(); }
}
void realty2::element_checker(const realty2::size_type &i) const { if (i >= size()) { throw no_element(); } }
realty2::realty2(std::string d, const std::string &N, const std::initializer_list<value_type>... | 26.112903 | 131 | 0.516523 | GodBastardNeil |
ffccdaa9e3f20a0ead5c46270de7bc67634b618e | 290 | hpp | C++ | src/parser/prebuilt/math_function/exceptions.hpp | cmargiotta/ratl | 84d76f23bbc52d3e581cfbb5e5a3dd04993e74c2 | [
"MIT"
] | null | null | null | src/parser/prebuilt/math_function/exceptions.hpp | cmargiotta/ratl | 84d76f23bbc52d3e581cfbb5e5a3dd04993e74c2 | [
"MIT"
] | null | null | null | src/parser/prebuilt/math_function/exceptions.hpp | cmargiotta/ratl | 84d76f23bbc52d3e581cfbb5e5a3dd04993e74c2 | [
"MIT"
] | null | null | null | #ifndef PARSER_PREBUILT_MATH_FUNCTION_EXECPTIONS_HPP
#define PARSER_PREBUILT_MATH_FUNCTION_EXECPTIONS_HPP
#include <stdexcept>
namespace ratl::math_function
{
class not_simplifiable
{
};
}// namespace ratl::math_function
#endif// PARSER_PREBUILT_MATH_FUNCTION_EXECPTIONS_HPP
| 20.714286 | 53 | 0.82069 | cmargiotta |
ffcdeb697c0e5559fd5e81eb1bd2cd296c171ea6 | 1,208 | cpp | C++ | src/model/HttpOptions.cpp | severin-toldo/m242_security_system | 4dffe6482eeeff0712b4e6be448e52c1a0ec5dc5 | [
"MIT"
] | 2 | 2021-03-26T12:10:09.000Z | 2021-05-25T10:47:32.000Z | src/model/HttpOptions.cpp | severin-toldo/m242_security_system | 4dffe6482eeeff0712b4e6be448e52c1a0ec5dc5 | [
"MIT"
] | 1 | 2021-05-25T10:47:08.000Z | 2021-05-25T11:10:32.000Z | src/model/HttpOptions.cpp | severin-toldo/m242_security_system | 4dffe6482eeeff0712b4e6be448e52c1a0ec5dc5 | [
"MIT"
] | null | null | null | #include <string>
#include <vector>
#pragma once
class HttpOptions {
private: std::vector<std::pair<std::string, std::string>> headers;
private: std::vector<std::pair<std::string, std::string>> queryParams;
public: std::vector<std::pair<std::string, std::string>> getHeaders() {
return headers;
... | 28.761905 | 95 | 0.63245 | severin-toldo |
ffd0d7c4af9cf543762e357639a3a9978d8c09d4 | 788 | cpp | C++ | C++/max_heap.cpp | singlapriyanka315/DataStruture-and-algroithms-program | 6dbfd3d78fb27a5e9f36879aa644f5a9bbf45d64 | [
"MIT"
] | 80 | 2021-10-05T08:30:07.000Z | 2022-03-04T19:42:53.000Z | C++/max_heap.cpp | singlapriyanka315/DataStruture-and-algroithms-program | 6dbfd3d78fb27a5e9f36879aa644f5a9bbf45d64 | [
"MIT"
] | 182 | 2021-10-05T08:50:50.000Z | 2022-01-31T17:53:04.000Z | C++/max_heap.cpp | singlapriyanka315/DataStruture-and-algroithms-program | 6dbfd3d78fb27a5e9f36879aa644f5a9bbf45d64 | [
"MIT"
] | 104 | 2021-10-05T08:45:31.000Z | 2022-01-24T10:16:37.000Z | #include <iostream>
using namespace std;
void max_heap(int *a, int m, int n) {
int j, t;
t = a[m];
j = 2 * m;
while (j <= n) {
if (j < n && a[j+1] > a[j])
j = j + 1;
if (t > a[j])
break;
else if (t <= a[j]) {
a[j / 2] = a[j];
j = 2 * j;
... | 19.7 | 46 | 0.384518 | singlapriyanka315 |
ffdc4a978246c2e32722d8e53b98054df5f96b01 | 592 | hpp | C++ | src/bots/randombot.hpp | Thanduriel/quixo | 8e0c47dcafd534a2c9ed3194137a1bb461909393 | [
"MIT"
] | null | null | null | src/bots/randombot.hpp | Thanduriel/quixo | 8e0c47dcafd534a2c9ed3194137a1bb461909393 | [
"MIT"
] | null | null | null | src/bots/randombot.hpp | Thanduriel/quixo | 8e0c47dcafd534a2c9ed3194137a1bb461909393 | [
"MIT"
] | null | null | null | #pragma once
#include "bot.hpp"
#include "utils/random.hpp"
namespace Bots {
class RandomBot : public BasicBot
{
public:
using BasicBot::BasicBot;
Game::Turn Step(const Game::Board& _state) override
{
using namespace Game;
const Action* action;
do{
action = &Board::ACTIONS[Utils::g_random.Unif... | 21.925926 | 102 | 0.673986 | Thanduriel |
ffdec6d679ebdf853cf90fcf8e84d61c2b42a533 | 533 | hpp | C++ | include/RED4ext/Scripting/Natives/Generated/shared/MenuCollection.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 42 | 2020-12-25T08:33:00.000Z | 2022-03-22T14:47:07.000Z | include/RED4ext/Scripting/Natives/Generated/shared/MenuCollection.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 38 | 2020-12-28T22:36:06.000Z | 2022-02-16T11:25:47.000Z | include/RED4ext/Scripting/Natives/Generated/shared/MenuCollection.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 20 | 2020-12-28T22:17:38.000Z | 2022-03-22T17:19:01.000Z | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/DynArray.hpp>
#include <RED4ext/Scripting/Natives/Generated/shared/MenuItem.hpp>
namespace RED4ext
{
namespace shared {
struct MenuCollection
{
static constexpr const char* N... | 23.173913 | 66 | 0.754221 | jackhumbert |
ffded80b8894d52bb9079e352fd755d079f64412 | 1,351 | cpp | C++ | src/m2_btn.cpp | csBlueChip/m2_io | aa7a5d23ee2215c7a1c5099027767a056e1b9554 | [
"MIT"
] | null | null | null | src/m2_btn.cpp | csBlueChip/m2_io | aa7a5d23ee2215c7a1c5099027767a056e1b9554 | [
"MIT"
] | null | null | null | src/m2_btn.cpp | csBlueChip/m2_io | aa7a5d23ee2215c7a1c5099027767a056e1b9554 | [
"MIT"
] | null | null | null | #include <stdint.h>
#include "m2_btn.h"
unsigned int btnTimer[BTN_CNT];
uint8_t btnState[BTN_CNT];
unsigned int btnDebounce;
//+============================================================================= =======================================
int btn_get (btn_t btn)
{
unsigned i... | 28.744681 | 121 | 0.432272 | csBlueChip |
ffe0d8784d56388733b057f8de939c37478996d0 | 278 | hpp | C++ | src/include/zombye/physics/collision_shape.hpp | kasoki/project-zombye | 30d3dc0b7e6a929162fa0ddfb77dd10bc9bf4f05 | [
"MIT"
] | 1 | 2019-05-29T01:37:44.000Z | 2019-05-29T01:37:44.000Z | src/include/zombye/physics/collision_shape.hpp | atomicptr/project-zombye | 30d3dc0b7e6a929162fa0ddfb77dd10bc9bf4f05 | [
"MIT"
] | 1 | 2015-08-31T22:44:27.000Z | 2015-08-31T22:44:27.000Z | src/include/zombye/physics/collision_shape.hpp | kasoki/project-zombye | 30d3dc0b7e6a929162fa0ddfb77dd10bc9bf4f05 | [
"MIT"
] | null | null | null | #ifndef __ZOMBYE_COLLISION_SHAPE_HPP__
#define __ZOMBYE_COLLISION_SHAPE_HPP__
#include <memory>
#include <utility>
#include <btBulletDynamicsCommon.h>
namespace zombye {
class collision_shape {
public:
virtual btCollisionShape* shape() = 0;
};
}
#endif
| 15.444444 | 46 | 0.733813 | kasoki |
ffe28f93898b3bbe30ff9ca10c5f2f6885a9f292 | 2,409 | hpp | C++ | PrivacyAmplification/vuda/state/node_device.hpp | nicoboss/PrivacyAmplification | efd47ebb41c983434affb0dba1426eb31d78d22c | [
"Apache-2.0"
] | null | null | null | PrivacyAmplification/vuda/state/node_device.hpp | nicoboss/PrivacyAmplification | efd47ebb41c983434affb0dba1426eb31d78d22c | [
"Apache-2.0"
] | null | null | null | PrivacyAmplification/vuda/state/node_device.hpp | nicoboss/PrivacyAmplification | efd47ebb41c983434affb0dba1426eb31d78d22c | [
"Apache-2.0"
] | null | null | null | #pragma once
namespace vuda
{
namespace detail
{
/*
device_buffer_node holds a buffer that is backed by device local memory
NOTE: since vuda must return a pointer to memory which can be passed to e.g. a kernel
and vulkan does not support a natural way to get unique... | 35.426471 | 152 | 0.535907 | nicoboss |
ffe463572761c04d144f082fa0959b00a0499483 | 367 | hpp | C++ | utils/include/file.hpp | MichaleAnderson/beldex-storage-server | ce8ddba5b339cc64ef604a0be607aa1a439893f4 | [
"MIT"
] | 2 | 2021-08-15T17:07:06.000Z | 2021-08-25T10:34:04.000Z | utils/include/file.hpp | MichaleAnderson/beldex-storage-server | ce8ddba5b339cc64ef604a0be607aa1a439893f4 | [
"MIT"
] | null | null | null | utils/include/file.hpp | MichaleAnderson/beldex-storage-server | ce8ddba5b339cc64ef604a0be607aa1a439893f4 | [
"MIT"
] | 9 | 2021-07-22T10:38:33.000Z | 2022-01-27T10:22:18.000Z | #pragma once
#include <filesystem>
#include <string>
#include <string_view>
namespace beldex {
// Reads a file into a string. Throws on error.
std::string slurp_file(const std::filesystem::path& file);
// Dumps a string to a file, overwriting if it already exists. Throws on error.
void dump_file(const std::filesys... | 24.466667 | 80 | 0.741144 | MichaleAnderson |
ffe76ad80f2da4b620d45c68c0bb105f64bf6fc1 | 11,556 | cpp | C++ | source/jbridge.cpp | taogashi/mlib | 56d0ac08205b3a09cac7ed97209454cc6262c924 | [
"Unlicense",
"MIT"
] | 12 | 2020-07-08T04:21:44.000Z | 2022-03-24T10:02:03.000Z | source/jbridge.cpp | taogashi/mlib | 56d0ac08205b3a09cac7ed97209454cc6262c924 | [
"Unlicense",
"MIT"
] | null | null | null | source/jbridge.cpp | taogashi/mlib | 56d0ac08205b3a09cac7ed97209454cc6262c924 | [
"Unlicense",
"MIT"
] | 2 | 2020-07-22T09:00:40.000Z | 2021-06-29T13:54:10.000Z | /*!
\file jbridge.cpp Implementation of JSONBridge class
(c) Mircea Neacsu 2017
*/
#include <memory.h>
#include <string.h>
#include <mlib/jbridge.h>
#include <mlib/trace.h>
#include <mlib/critsect.h>
using namespace std;
namespace mlib {
#define MAX_JSONRESPONSE 8192
// Sizes of data elements (same order a... | 23.204819 | 96 | 0.568363 | taogashi |
ffe7f85238626d03e60b9ac778afc83a018cdf2a | 5,053 | cpp | C++ | game/server/Angelscript/Entities/ASCustomEntitiesUtils.cpp | HLSources/HLEnhanced | 7510a8f7049293b5094b9c6e14e0aa0869c8dba2 | [
"Unlicense"
] | 83 | 2016-06-10T20:49:23.000Z | 2022-02-13T18:05:11.000Z | game/server/Angelscript/Entities/ASCustomEntitiesUtils.cpp | HLSources/HLEnhanced | 7510a8f7049293b5094b9c6e14e0aa0869c8dba2 | [
"Unlicense"
] | 26 | 2016-06-16T22:27:24.000Z | 2019-04-30T19:25:51.000Z | game/server/Angelscript/Entities/ASCustomEntitiesUtils.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 "ASCustomEntitiesUtils.h"
void CASBaseClassCreator::GenerateCommonBaseClassContents( CASClassWriter& writer, const char* const pszEntityClass, const char* const pszBaseClass )
{
ASSERT( pszEntityClass );
ASSERT( pszBaseClass );
const std::string sz... | 32.811688 | 149 | 0.730259 | HLSources |
ffe8863691bbc9f7288fe1a3b1034d21fa8caee5 | 4,240 | cpp | C++ | ros-ws-two/src/order/src/order.cpp | alpsark/ROS-Term-Carry-Order-and-Place- | 903148d0376f32dcbd3a200e9336630829b454eb | [
"MIT"
] | null | null | null | ros-ws-two/src/order/src/order.cpp | alpsark/ROS-Term-Carry-Order-and-Place- | 903148d0376f32dcbd3a200e9336630829b454eb | [
"MIT"
] | null | null | null | ros-ws-two/src/order/src/order.cpp | alpsark/ROS-Term-Carry-Order-and-Place- | 903148d0376f32dcbd3a200e9336630829b454eb | [
"MIT"
] | null | null | null | #include <ros/ros.h>
#include <std_msgs/Bool.h>
#include <std_msgs/String.h>
#include <std_msgs/Float32.h>
#include <sensor_msgs/LaserScan.h>
#include <geometry_msgs/Twist.h>
#include <geometry_msgs/Pose.h>
#include <geometry_msgs/PoseWithCovarianceStamped.h>
#include <geometry_msgs/PoseWithCovariance.h>
#include <tf/t... | 25.853659 | 126 | 0.695519 | alpsark |
ffea7807055d63382a1b99e5c8ef3e71aa9badfb | 3,970 | cpp | C++ | CS4000/main.cpp | monty20python/school_projects | 05672eb9381196dce662bf7a31a6de4a333e35f0 | [
"MIT"
] | null | null | null | CS4000/main.cpp | monty20python/school_projects | 05672eb9381196dce662bf7a31a6de4a333e35f0 | [
"MIT"
] | null | null | null | CS4000/main.cpp | monty20python/school_projects | 05672eb9381196dce662bf7a31a6de4a333e35f0 | [
"MIT"
] | null | null | null | #include<iostream>
#include<climits>
#include<random>
#include<chrono>
#include<fstream>
#include<vector>
#include<cmath>
#include<string>
#include "dijkstra.h"
#include "floyd_warshall.h"
#include "file.h"
#include "graph_gen.h"
int main()
{
std::vector<std::vector<int> > graph;
int choice;
int N, weight;
std::... | 25.286624 | 99 | 0.588665 | monty20python |
ffeb5b079ff8ec21cb85bc8c43be2dcc479333a2 | 90,056 | cpp | C++ | src/nimbro_robotcontrol/util/rot_conv/src/rot_conv.cpp | ssr-yuki/humanoid_op_ros | e8be8c445ead8c0d470c7998fdc28446ca9eb47a | [
"BSD-3-Clause"
] | 45 | 2015-11-04T01:29:12.000Z | 2022-02-11T05:37:42.000Z | src/nimbro_robotcontrol/util/rot_conv/src/rot_conv.cpp | ssr-yuki/humanoid_op_ros | e8be8c445ead8c0d470c7998fdc28446ca9eb47a | [
"BSD-3-Clause"
] | 1 | 2016-08-10T04:00:32.000Z | 2016-08-10T12:59:36.000Z | src/nimbro_robotcontrol/util/rot_conv/src/rot_conv.cpp | ssr-yuki/humanoid_op_ros | e8be8c445ead8c0d470c7998fdc28446ca9eb47a | [
"BSD-3-Clause"
] | 20 | 2016-03-05T14:28:45.000Z | 2021-01-30T00:50:47.000Z | // Rotations conversion library
// File: rot_conv.cpp
// Author: Philipp Allgeuer <pallgeuer@ais.uni-bonn.de>
// Includes
#include <rot_conv/rot_conv.h>
#include <Eigen/Eigenvalues>
#include <algorithm>
#include <cfloat>
// Defines
#define M_2PI (2.0*M_PI)
// Rotations conversion namespace
namespace rot_conv
{
// #... | 28.725997 | 530 | 0.628964 | ssr-yuki |
ffed2dfbc0f2ab84e81b096d46e77309bd102fd4 | 16,546 | cpp | C++ | src/mysql/mysql_simple_pool.cpp | fankux/rellaf | d45d9b54ed558f07662797b75152e3b7d24377c4 | [
"Apache-2.0"
] | 49 | 2018-11-12T03:40:52.000Z | 2022-01-16T14:06:15.000Z | src/mysql/mysql_simple_pool.cpp | fankux/rellaf | d45d9b54ed558f07662797b75152e3b7d24377c4 | [
"Apache-2.0"
] | null | null | null | src/mysql/mysql_simple_pool.cpp | fankux/rellaf | d45d9b54ed558f07662797b75152e3b7d24377c4 | [
"Apache-2.0"
] | 8 | 2019-02-08T04:51:58.000Z | 2020-08-06T11:11:36.000Z | // Copyright 2018 Fankux
//
// 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 writi... | 28.926573 | 103 | 0.592228 | fankux |
ffee53a670e0ced7c2891038136d6ac8c3954b27 | 753 | hpp | C++ | core/painter/impl/PaintBase.hpp | tiansongyu/TUGUI | 1ce3bfa222d87615ebe1d28a07fc2308f549a46c | [
"MIT"
] | null | null | null | core/painter/impl/PaintBase.hpp | tiansongyu/TUGUI | 1ce3bfa222d87615ebe1d28a07fc2308f549a46c | [
"MIT"
] | null | null | null | core/painter/impl/PaintBase.hpp | tiansongyu/TUGUI | 1ce3bfa222d87615ebe1d28a07fc2308f549a46c | [
"MIT"
] | null | null | null | #ifndef __PAINT_BASE_HPP__TUGUI
#define __PAINT_BASE_HPP__TUGUI
#include <platform/BaseInterface.hpp>
#include <core/painter/impl/colors/color.hpp>
namespace TUGUI {
struct PaintBase {
static void clearScreen() {
INTERFACE::gBaseInterfacePtr->clearScrean();
}
static void drawPixel(uint32_t x, ui... | 25.965517 | 78 | 0.713147 | tiansongyu |
ffef07e0f9f7581eb552bec409a649eb135b4a6d | 1,349 | cpp | C++ | rocket/libs/text/rigger_base.cpp | xcodecraft/youbar | 7fe5073138848e2cff0f3bcd22842c2cad3d0390 | [
"Apache-2.0"
] | null | null | null | rocket/libs/text/rigger_base.cpp | xcodecraft/youbar | 7fe5073138848e2cff0f3bcd22842c2cad3d0390 | [
"Apache-2.0"
] | null | null | null | rocket/libs/text/rigger_base.cpp | xcodecraft/youbar | 7fe5073138848e2cff0f3bcd22842c2cad3d0390 | [
"Apache-2.0"
] | 1 | 2018-12-28T03:33:54.000Z | 2018-12-28T03:33:54.000Z | #include <boost/config/warning_disable.hpp>
#include <iostream>
#include <sstream>
#include <string>
#include <map>
#include <vector>
#include <list>
#include "utls.h"
#include "text/rigger.h"
#include "text/text.h"
#include "rigger_impl.h"
#include <boost/foreach.hpp>
#include "error/error.h"
#include <fstream>
//#inc... | 27.530612 | 112 | 0.602669 | xcodecraft |
fff067a1d9d91bb0ed713b0628ffc6de9bd46508 | 3,228 | cpp | C++ | Code/Projects/Eldritch/src/Components/wbcompeldpowerteleport.cpp | kas1e/Eldritch | 032b4ac52f7508c89efa407d6fe60f40c6281fd9 | [
"Zlib"
] | null | null | null | Code/Projects/Eldritch/src/Components/wbcompeldpowerteleport.cpp | kas1e/Eldritch | 032b4ac52f7508c89efa407d6fe60f40c6281fd9 | [
"Zlib"
] | null | null | null | Code/Projects/Eldritch/src/Components/wbcompeldpowerteleport.cpp | kas1e/Eldritch | 032b4ac52f7508c89efa407d6fe60f40c6281fd9 | [
"Zlib"
] | null | null | null | #include "core.h"
#include "wbcompeldpowerteleport.h"
#include "wbeventmanager.h"
#include "idatastream.h"
#include "Components/wbcompeldtransform.h"
#include "Components/wbcompeldcollision.h"
#include "Components/wbcompowner.h"
#include "eldritchworld.h"
#include "collisioninfo.h"
WBCompEldPowerTeleport::WBCompEldPow... | 26.9 | 79 | 0.737299 | kas1e |
fff25c46e20216932d45d16e7547c5705be8e595 | 674 | cpp | C++ | src/imports/urihandler/urihandler_plugin.cpp | task-jp/qtmultiprocesssystem | 697af92672a4b413a1db1b50aeb779a1837d8077 | [
"BSD-3-Clause"
] | null | null | null | src/imports/urihandler/urihandler_plugin.cpp | task-jp/qtmultiprocesssystem | 697af92672a4b413a1db1b50aeb779a1837d8077 | [
"BSD-3-Clause"
] | null | null | null | src/imports/urihandler/urihandler_plugin.cpp | task-jp/qtmultiprocesssystem | 697af92672a4b413a1db1b50aeb779a1837d8077 | [
"BSD-3-Clause"
] | null | null | null | #include <QtQml/QQmlExtensionPlugin>
#include <QtMultiProcessSystem/QMpsUriHandler>
#include <QtQml/qqml.h>
class UriHandlerPlugin : public QQmlExtensionPlugin
{
Q_OBJECT
Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
public:
explicit UriHandlerPlugin(QObject *parent = nullptr);
void registerTypes(c... | 24.962963 | 67 | 0.759644 | task-jp |
fff7f0d4be093810addc568a21a32fe141d688c8 | 611 | cpp | C++ | NNGameFramework/ProjectWugargar/LoadingScene.cpp | quxn6/wugargar | 79e71a83e1240052ec4217d5223359ca5f1c3890 | [
"MIT"
] | 1 | 2017-02-13T06:09:17.000Z | 2017-02-13T06:09:17.000Z | NNGameFramework/ProjectWugargar/LoadingScene.cpp | quxn6/wugargar | 79e71a83e1240052ec4217d5223359ca5f1c3890 | [
"MIT"
] | null | null | null | NNGameFramework/ProjectWugargar/LoadingScene.cpp | quxn6/wugargar | 79e71a83e1240052ec4217d5223359ca5f1c3890 | [
"MIT"
] | null | null | null | #include "LoadingScene.h"
#include "NNSceneDirector.h"
#include "PlayScene.h"
#include "NNSprite.h"
CLoadingScene::CLoadingScene(void)
{
elapsed_time = 0.0f;
NNSprite *tmp = NNSprite::Create(L"wugargar/Loading/Loading4.jpg");
tmp->SetPosition(0,0);
AddChild(tmp);
}
CLoadingScene::~CLoading... | 15.666667 | 74 | 0.671031 | quxn6 |
fffcda753346a34422fe48665fc779c912b3647c | 5,059 | cpp | C++ | src/framework/shared/support/fxcollection.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/fxcollection.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/fxcollection.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:
FxCollection.cpp
Abstract:
This module implements a simple collection class to operate on
objects derived from FxObject.
Author:
Environment:
Both kernel and user mode
Revision History:
--*/
#include "FxSupportPch.hpp"
FxCollectionInter... | 17.688811 | 79 | 0.63135 | IT-Enthusiast-Nepal |
fffd3e352fffa3401a6181d53d246e2473999ba9 | 36,250 | cc | C++ | hackt_docker/hackt/src/Object/lang/CHP_event_alloc.cc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/Object/lang/CHP_event_alloc.cc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/Object/lang/CHP_event_alloc.cc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | /**
\file "Object/lang/CHP_event_alloc.cc"
Copy-ripped from "sim/chpsim/StateConstructor.cc"
$Id: CHP_event_alloc.cc,v 1.3 2008/10/11 06:35:11 fang Exp $
*/
#define ENABLE_STACKTRACE 0
#include <iostream>
#include <iterator>
#include "Object/lang/CHP_event_alloc.hh"
#include "Object/lang/CHP.hh"
#include "Obje... | 34.922929 | 79 | 0.685241 | broken-wheel |
fffda4146b870931c1ef8456fc58ef58ea80c1ad | 3,350 | hh | C++ | tests/catch/include/hip_test_filesystem.hh | pghafari/HIP1 | 327695fcca1b06cdebd42d94c6eaa06b7d9149ca | [
"MIT"
] | 1,935 | 2017-05-28T04:52:18.000Z | 2022-03-30T23:50:43.000Z | tests/catch/include/hip_test_filesystem.hh | pghafari/HIP1 | 327695fcca1b06cdebd42d94c6eaa06b7d9149ca | [
"MIT"
] | 1,310 | 2017-05-30T22:16:09.000Z | 2022-03-31T08:25:58.000Z | tests/catch/include/hip_test_filesystem.hh | pghafari/HIP1 | 327695fcca1b06cdebd42d94c6eaa06b7d9149ca | [
"MIT"
] | 495 | 2017-06-01T01:26:27.000Z | 2022-03-28T16:36:51.000Z |
/*
Copyright (c) 2021 Advanced Micro Devices, Inc. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, ... | 37.640449 | 77 | 0.795224 | pghafari |
08086e68c3c3be78daf6cd126dd5e116812fd7a2 | 452 | cpp | C++ | VariavelPonteiro/ponteiroParaEstrutura.cpp | VitorVeector/Projetos-Estacio | e54f6f765e8c552cba27819a2f6fae3d819fb0e8 | [
"MIT"
] | null | null | null | VariavelPonteiro/ponteiroParaEstrutura.cpp | VitorVeector/Projetos-Estacio | e54f6f765e8c552cba27819a2f6fae3d819fb0e8 | [
"MIT"
] | null | null | null | VariavelPonteiro/ponteiroParaEstrutura.cpp | VitorVeector/Projetos-Estacio | e54f6f765e8c552cba27819a2f6fae3d819fb0e8 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstring>
using namespace std;
struct data
{
int dia, mes, ano;
};
int main()
{
data dataNasc, *ptr;
int d;
cout << "Digite sua data de nascimento no formato aaaammdd: " << endl;
cin >> d;
ptr=&dataNasc;
ptr->dia=d/10000;
ptr->mes=(d/100) % 100;
ptr... | 17.384615 | 93 | 0.557522 | VitorVeector |
080d936cf2c0f2afa7d7440c81836bd01d7958b4 | 5,505 | cpp | C++ | tc 160+/SignificanceArithmetic.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 3 | 2015-05-25T06:24:37.000Z | 2016-09-10T07:58:00.000Z | tc 160+/SignificanceArithmetic.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | null | null | null | tc 160+/SignificanceArithmetic.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 5 | 2015-05-25T06:24:40.000Z | 2021-08-19T19:22:29.000Z | #include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
using namespace std;
vector<string> cutUp(const string &s, const string &delim=" ") {
int lastPos = 0, pos = 0;
vector<string> ret;
while (pos+deli... | 32.192982 | 413 | 0.542053 | ibudiselic |
080f068a8c61848be478b9723bd72ab2b7dac9bc | 5,566 | cpp | C++ | pwiz/utility/misc/IterationListener.cpp | edyp-lab/pwiz-mzdb | d13ce17f4061596c7e3daf9cf5671167b5996831 | [
"Apache-2.0"
] | 11 | 2015-01-08T08:33:44.000Z | 2019-07-12T06:14:54.000Z | pwiz/utility/misc/IterationListener.cpp | edyp-lab/pwiz-mzdb | d13ce17f4061596c7e3daf9cf5671167b5996831 | [
"Apache-2.0"
] | 61 | 2015-05-27T11:20:11.000Z | 2019-12-20T15:06:21.000Z | pwiz/utility/misc/IterationListener.cpp | edyp-lab/pwiz-mzdb | d13ce17f4061596c7e3daf9cf5671167b5996831 | [
"Apache-2.0"
] | 4 | 2016-02-03T09:41:16.000Z | 2021-08-01T18:42:36.000Z | //
// $Id: IterationListener.cpp 10827 2017-05-11 21:01:58Z chambm $
//
//
// Original author: Darren Kessner <darren@proteowizard.org>
//
// Copyright 2008 Spielberg Family Center for Applied Proteomics
// Cedars Sinai Medical Center, Los Angeles, California 90048
//
// Licensed under the Apache License, Version 2.... | 30.582418 | 187 | 0.672476 | edyp-lab |
080f8c1f7fcf1c314fe8fa3aedad30fb125b89c1 | 20,943 | inl | C++ | FFTL/Code/Source/Core/Math/SSE/MathCommon_AVX.inl | CoreyShay/FFTL | 1758020715e5b5b3c085c6429cf866b1e21c290a | [
"Unlicense"
] | 2 | 2017-06-02T11:13:31.000Z | 2020-05-28T18:40:37.000Z | FFTL/Code/Source/Core/Math/SSE/MathCommon_AVX.inl | CoreyShay/FFTL | 1758020715e5b5b3c085c6429cf866b1e21c290a | [
"Unlicense"
] | null | null | null | FFTL/Code/Source/Core/Math/SSE/MathCommon_AVX.inl | CoreyShay/FFTL | 1758020715e5b5b3c085c6429cf866b1e21c290a | [
"Unlicense"
] | null | null | null | /*
Original author:
Corey Shay
corey@signalflowtechnologies.com
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-comm... | 31.165179 | 142 | 0.744592 | CoreyShay |
0812a1c9e014aae7925cd5fa541c277221c0beeb | 2,526 | hpp | C++ | Allocator/smart_pointer.hpp | chestnutme/MiniSTL | d8b8b5f51d13623490aceb58f3fdb623d38d8e24 | [
"MIT"
] | 2 | 2019-02-24T09:47:04.000Z | 2020-08-06T02:35:03.000Z | Allocator/smart_pointer.hpp | chestnutme/MiniSTL | d8b8b5f51d13623490aceb58f3fdb623d38d8e24 | [
"MIT"
] | null | null | null | Allocator/smart_pointer.hpp | chestnutme/MiniSTL | d8b8b5f51d13623490aceb58f3fdb623d38d8e24 | [
"MIT"
] | null | null | null | #pragma once
namespace Unused {
// auto_ptr(Deprecated in C++11) is a smart pointer that manages an object obtained
// via new expression and deletes that object when auto_ptr
// itself is destroyed. It may be used to provide exception safety
// for dynamically-allocated objects, for passing ownership of
// dynami... | 23.607477 | 84 | 0.604909 | chestnutme |
08135d06bc462c16e0e637c79f454b3ac45a5780 | 5,121 | cpp | C++ | src/AgentTaskWindow.cpp | membranesoftware/membrane-control | 103aee09a505df4a4984cb9d2867e8e750f01bcd | [
"BSD-3-Clause"
] | null | null | null | src/AgentTaskWindow.cpp | membranesoftware/membrane-control | 103aee09a505df4a4984cb9d2867e8e750f01bcd | [
"BSD-3-Clause"
] | null | null | null | src/AgentTaskWindow.cpp | membranesoftware/membrane-control | 103aee09a505df4a4984cb9d2867e8e750f01bcd | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2018-2021 Membrane Software <author@membranesoftware.com> https://membranesoftware.com
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright... | 37.933333 | 290 | 0.753954 | membranesoftware |
08155d7f2dde6dfbcb9888fdce2fff86fca27be0 | 13,556 | cpp | C++ | sta-src/SEM/PayloadSubsystem.cpp | hoehnp/SpaceDesignTool | 9abd34048274b2ce9dbbb685124177b02d6a34ca | [
"IJG"
] | 6 | 2018-09-05T12:41:59.000Z | 2021-07-01T05:34:23.000Z | sta-src/SEM/PayloadSubsystem.cpp | hoehnp/SpaceDesignTool | 9abd34048274b2ce9dbbb685124177b02d6a34ca | [
"IJG"
] | 2 | 2015-02-07T19:09:21.000Z | 2015-08-14T03:15:42.000Z | sta-src/SEM/PayloadSubsystem.cpp | hoehnp/SpaceDesignTool | 9abd34048274b2ce9dbbb685124177b02d6a34ca | [
"IJG"
] | 2 | 2015-03-25T15:50:31.000Z | 2017-12-06T12:16:47.000Z | /*
This program is free software; you can redistribute it and/or modify it under
the terms of the European Union Public Licence - EUPL v.1.1 as published by
the European Commission.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of... | 29.72807 | 92 | 0.596784 | hoehnp |
08157be698cbd622ade1c9d891312742965cfc52 | 1,611 | cc | C++ | libs/web/legacy-test-cache.cc | sandtreader/obtools | 2382e2d90bb62c9665433d6d01bbd31b8ad66641 | [
"MIT"
] | null | null | null | libs/web/legacy-test-cache.cc | sandtreader/obtools | 2382e2d90bb62c9665433d6d01bbd31b8ad66641 | [
"MIT"
] | null | null | null | libs/web/legacy-test-cache.cc | sandtreader/obtools | 2382e2d90bb62c9665433d6d01bbd31b8ad66641 | [
"MIT"
] | null | null | null | //==========================================================================
// ObTools::Web:: test-cache.cc
//
// Test harness for HTTP cache functions
//
// Copyright (c) 2009 ObTools Limited. All rights reserved
// This code comes with NO WARRANTY and is subject to licence agreement
//==============================... | 20.1375 | 76 | 0.516449 | sandtreader |
0819a9da1f32d133eb1940974814d4b33a560e05 | 6,750 | cpp | C++ | constants.cpp | Leporacanthicus/lacsap | 5a74a26a67af344c8764c630430062d53734392b | [
"0BSD"
] | 25 | 2015-03-07T05:12:30.000Z | 2021-07-14T21:39:39.000Z | constants.cpp | Leporacanthicus/lacsap | 5a74a26a67af344c8764c630430062d53734392b | [
"0BSD"
] | 1 | 2021-05-20T01:41:29.000Z | 2021-11-05T22:07:37.000Z | constants.cpp | Leporacanthicus/lacsap | 5a74a26a67af344c8764c630430062d53734392b | [
"0BSD"
] | 5 | 2018-08-25T22:10:09.000Z | 2022-01-03T12:31:47.000Z | #include "constants.h"
#include "token.h"
#include <llvm/Support/Casting.h>
#include <iostream>
Token Constants::IntConstDecl::Translate() const
{
return Token(Token::Integer, loc, value);
}
void Constants::IntConstDecl::dump() const
{
std::cerr << "IntConstDecl: " << Value() << std::endl;
}
Token Constants... | 27.108434 | 97 | 0.65763 | Leporacanthicus |
0830227434bc697426b4c9bc1070fd1211b99b54 | 1,803 | hpp | C++ | include/codegen/include/Zenject/ZenInjectMethod.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/Zenject/ZenInjectMethod.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/Zenject/ZenInjectMethod.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:40 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.MulticastDelegate
#include "System/MulticastDelegate.... | 41.930233 | 148 | 0.717138 | Futuremappermydud |
083390187358965154f68f607e4d88350b0886f0 | 1,973 | cpp | C++ | Codeforces/1461B.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | Codeforces/1461B.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | Codeforces/1461B.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | // Problem : B. Find the Spruce
// Contest : Codeforces - Codeforces Round #689 (Div. 2, based on Zed Code Competition)
// URL : https://codeforces.com/contest/1461/problem/B
// Memory Limit : 256 MB
// Time Limit : 1000 ms
// Powered by CP Editor (https://github.com/cpeditor/cpeditor)
#include<bits/stdc++.h>
#define y... | 22.678161 | 87 | 0.519513 | DT3264 |
08350d875d993f4db1a199443b68612c8ed02042 | 1,393 | cpp | C++ | Source/attacks/basic_attack.cpp | vif/3D-STG | 721402e76a9b9b99b88ba3eb06beb6abb17a9254 | [
"MIT"
] | null | null | null | Source/attacks/basic_attack.cpp | vif/3D-STG | 721402e76a9b9b99b88ba3eb06beb6abb17a9254 | [
"MIT"
] | null | null | null | Source/attacks/basic_attack.cpp | vif/3D-STG | 721402e76a9b9b99b88ba3eb06beb6abb17a9254 | [
"MIT"
] | null | null | null | #include "basic_attack.hpp"
#include <utilities/ShaderManager/shadermanager.hpp>
#include <utilities/MathConversions/math_conversions.hpp>
BasicAttack::BasicAttack(double damage, double expiration_time_delta, glm::vec3 init_position, glm::quat init_rotation, glm::vec3 direction, Model::Model* model)
{
this->damage = ... | 33.97561 | 161 | 0.784637 | vif |
08372b34f46bcf440c3fc4bb0e9b03163d289866 | 8,818 | cpp | C++ | Source/Graphics/Shader.cpp | igorlev91/DemoEngine | 8aaef0d3504826c9dcabe0a826a54613fca81c87 | [
"Apache-2.0"
] | null | null | null | Source/Graphics/Shader.cpp | igorlev91/DemoEngine | 8aaef0d3504826c9dcabe0a826a54613fca81c87 | [
"Apache-2.0"
] | null | null | null | Source/Graphics/Shader.cpp | igorlev91/DemoEngine | 8aaef0d3504826c9dcabe0a826a54613fca81c87 | [
"Apache-2.0"
] | null | null | null | #include "Precompiled.hpp"
#include "Graphics/Shader.hpp"
#include "Graphics/RenderContext.hpp"
using namespace Graphics;
namespace
{
// Available shader types.
struct ShaderType
{
const char* name;
const char* define;
GLenum type;
};
const int ShaderTypeCount = 3;
cons... | 26.884146 | 95 | 0.598435 | igorlev91 |
083767da97c37994b45d1e5cb472bca5ce7ddcbf | 110 | cpp | C++ | Source/CRenderer3D.cpp | DegitechWorldClass/Who-am-I_Game | ae90c7a60b747667d6571557c72e2b29dc1fc767 | [
"Apache-2.0"
] | null | null | null | Source/CRenderer3D.cpp | DegitechWorldClass/Who-am-I_Game | ae90c7a60b747667d6571557c72e2b29dc1fc767 | [
"Apache-2.0"
] | null | null | null | Source/CRenderer3D.cpp | DegitechWorldClass/Who-am-I_Game | ae90c7a60b747667d6571557c72e2b29dc1fc767 | [
"Apache-2.0"
] | null | null | null | #include "DXUT.h"
#include "CRenderer3D.h"
CRenderer3D::CRenderer3D()
{
}
CRenderer3D::~CRenderer3D()
{
}
| 8.461538 | 27 | 0.681818 | DegitechWorldClass |
36b15444474c609f624f1e588303136889565a51 | 5,118 | hpp | C++ | src/verify/geom.hpp | jacketsj/cgshop2022-gitastrophe | 89410fbdbb97511881ee4830d28604fcffa0c314 | [
"MIT"
] | null | null | null | src/verify/geom.hpp | jacketsj/cgshop2022-gitastrophe | 89410fbdbb97511881ee4830d28604fcffa0c314 | [
"MIT"
] | null | null | null | src/verify/geom.hpp | jacketsj/cgshop2022-gitastrophe | 89410fbdbb97511881ee4830d28604fcffa0c314 | [
"MIT"
] | null | null | null | #pragma once
#include <array>
#include <cstdint>
#include <iostream>
#include <optional>
#include <utility>
namespace boi {
/**
* Represents a point with integer coordinates.
*/
struct Point {
Point() noexcept = default;
Point(std::int64_t x, std::int64_t y) noexcept : x(x), y(y) {}
bool operator<(const Point& ... | 25.718593 | 80 | 0.581673 | jacketsj |
36b33662abe0f44c0b17451477ce4c62fa98fcfa | 2,099 | hpp | C++ | src/kernel/arch/x86_64/elf.hpp | Abb1x/tisix | f79de11dae657b2b5e082c4a0057192763d6c15a | [
"MIT"
] | 13 | 2021-11-14T00:42:36.000Z | 2022-02-21T14:19:50.000Z | src/kernel/arch/x86_64/elf.hpp | Abb1x/tisix | f79de11dae657b2b5e082c4a0057192763d6c15a | [
"MIT"
] | null | null | null | src/kernel/arch/x86_64/elf.hpp | Abb1x/tisix | f79de11dae657b2b5e082c4a0057192763d6c15a | [
"MIT"
] | 1 | 2021-11-20T16:15:45.000Z | 2021-11-20T16:15:45.000Z | #pragma once
#include <tisix/std.hpp>
#define ELF_HEADER_MAGIC "\177ELF"
namespace tisix
{
enum ElfClass
{
ELF_CLASS_INVALID = 0,
ELF_CLASS_32 = 1,
ELF_CLASS_64 = 2,
};
enum ElfEncoding
{
ELF_ENCODING_INVALID = 0,
ELF_ENCODING_LITTLE_ENDIAN = 1,
ELF_ENCODING_BIG_ENDIAN = 2,
};
enum ElfType
{... | 19.256881 | 51 | 0.703668 | Abb1x |
36b6fb6ab5fafe74471bce4bd34893cd4263c96d | 465 | cpp | C++ | apps/scheduler/api/assfire/scheduler/api/WaybillScheduler.cpp | Eaglegor/assfire-suite | 6c8140e848932b6ce22b6addd07a93abba652c01 | [
"MIT"
] | null | null | null | apps/scheduler/api/assfire/scheduler/api/WaybillScheduler.cpp | Eaglegor/assfire-suite | 6c8140e848932b6ce22b6addd07a93abba652c01 | [
"MIT"
] | null | null | null | apps/scheduler/api/assfire/scheduler/api/WaybillScheduler.cpp | Eaglegor/assfire-suite | 6c8140e848932b6ce22b6addd07a93abba652c01 | [
"MIT"
] | null | null | null | #include "WaybillScheduler.hpp"
using namespace assfire::scheduler;
WaybillScheduler::WaybillScheduler(AlgorithmPtr algorithm)
: algorithm(std::move(algorithm)) {}
Waybill WaybillScheduler::scheduleWaybill(const Waybill &waybill_prototype) const {
Waybill copy(waybill_prototype);
scheduleWaybillInPla... | 27.352941 | 83 | 0.778495 | Eaglegor |
36b81407aaf9414dc1f8aaced9b222eb7ccfa2b2 | 1,719 | cc | C++ | onnxruntime/core/providers/mkldnn/mkldnn_provider_factory.cc | srkreddy1238/onnxruntime | 6d80253502686208190c81e21053caeb78f797c9 | [
"MIT"
] | null | null | null | onnxruntime/core/providers/mkldnn/mkldnn_provider_factory.cc | srkreddy1238/onnxruntime | 6d80253502686208190c81e21053caeb78f797c9 | [
"MIT"
] | null | null | null | onnxruntime/core/providers/mkldnn/mkldnn_provider_factory.cc | srkreddy1238/onnxruntime | 6d80253502686208190c81e21053caeb78f797c9 | [
"MIT"
] | null | null | null | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "core/providers/mkldnn/mkldnn_provider_factory.h"
#include <atomic>
#include "mkldnn_execution_provider.h"
using namespace onnxruntime;
namespace {
struct MkldnnProviderFactory {
const ONNXRuntimeProviderFactor... | 31.254545 | 143 | 0.784759 | srkreddy1238 |
36b83a944587e1d76e232e5e8afcc616bf90fd14 | 2,777 | cpp | C++ | src/armed/PropMesh.cpp | retrowork/wme | 54cf8905091736aef0a35fe6d3e05b818441f3c8 | [
"MIT"
] | null | null | null | src/armed/PropMesh.cpp | retrowork/wme | 54cf8905091736aef0a35fe6d3e05b818441f3c8 | [
"MIT"
] | null | null | null | src/armed/PropMesh.cpp | retrowork/wme | 54cf8905091736aef0a35fe6d3e05b818441f3c8 | [
"MIT"
] | null | null | null | // This file is part of Wintermute Engine
// For conditions of distribution and use, see copyright notice in license.txt
#include "StdAfx.h"
#include "PropMesh.h"
#include "MeshEntity.h"
#include "QtUtil.h"
namespace Armed
{
//////////////////////////////////////////////////////////////////////////
P... | 25.477064 | 90 | 0.552035 | retrowork |
36bb69330f04a5f4136c9f9c297afc54f932af4e | 726 | cpp | C++ | MainBrain/src/Model/Siren/Siren.cpp | smit-happens/YCP_EVOS | cecfa8aaa3c73945106786c44aa78d4fe872e3c3 | [
"MIT"
] | 10 | 2017-07-30T21:26:32.000Z | 2021-05-04T14:33:29.000Z | MainBrain/src/Model/Siren/Siren.cpp | smit-happens/YCP_EVOS | cecfa8aaa3c73945106786c44aa78d4fe872e3c3 | [
"MIT"
] | 122 | 2017-07-30T15:55:55.000Z | 2019-05-19T20:29:13.000Z | MainBrain/src/Model/Siren/Siren.cpp | smit-happens/YCP_EVOS | cecfa8aaa3c73945106786c44aa78d4fe872e3c3 | [
"MIT"
] | 3 | 2018-03-10T20:01:10.000Z | 2019-06-07T18:02:38.000Z | /** Siren used for playing the startup sound of the car
*
* Bspd.cpp
* Created 12-20-17 By: Smitty
*
* A longer description.
*/
#include "Siren.hpp"
/**
* @brief Siren constructor
*/
Siren::Siren(void)
{
pinMode(MB_SIREN, OUTPUT);
}
/**
* @brief Pretty self explanitory
* @note Play the sound ... | 17.285714 | 64 | 0.630854 | smit-happens |
36bce17fbb3a1b853354a4f0b80415d573f05350 | 4,981 | hpp | C++ | externals/stlsoft-1.9.118/include/stlsoft/obsolete/outer_initialiser.hpp | betasheet/diffingo | 285d21b16c118155e5c149b20fcb20a20276f3d7 | [
"MIT"
] | 17 | 2015-03-26T14:10:25.000Z | 2022-02-09T20:55:04.000Z | externals/stlsoft-1.9.118/include/stlsoft/obsolete/outer_initialiser.hpp | betasheet/diffingo | 285d21b16c118155e5c149b20fcb20a20276f3d7 | [
"MIT"
] | null | null | null | externals/stlsoft-1.9.118/include/stlsoft/obsolete/outer_initialiser.hpp | betasheet/diffingo | 285d21b16c118155e5c149b20fcb20a20276f3d7 | [
"MIT"
] | 3 | 2019-05-05T22:10:56.000Z | 2019-08-22T22:24:23.000Z | /* /////////////////////////////////////////////////////////////////////////
* File: stlsoft/obsolete/outer_initialiser.hpp
*
* Purpose: Contains the outer_initialiser template class.
*
* Created: 9th July 2004
* Updated: 10th August 2009
*
* Home: http://stlsoft.org/
*
* C... | 33.655405 | 81 | 0.604698 | betasheet |
36c1f54ac2d3fc9f856f252de6d97e94aee6329d | 2,648 | hpp | C++ | include/ranges-gpu/view/take.hpp | pdziepak/ranges-gpu | a04c5f3992f33a047d2db481a05fe50ec5c34138 | [
"MIT"
] | 18 | 2019-02-13T07:59:02.000Z | 2021-04-02T02:12:17.000Z | include/ranges-gpu/view/take.hpp | pdziepak/ranges-gpu | a04c5f3992f33a047d2db481a05fe50ec5c34138 | [
"MIT"
] | null | null | null | include/ranges-gpu/view/take.hpp | pdziepak/ranges-gpu | a04c5f3992f33a047d2db481a05fe50ec5c34138 | [
"MIT"
] | 2 | 2019-09-04T19:33:23.000Z | 2019-09-05T04:36:53.000Z | /*
* Copyright © 2019 Paweł Dziepak
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish... | 31.903614 | 100 | 0.720166 | pdziepak |
36c36867529b24b8086f3c76a24194f6e173a90f | 12,557 | cpp | C++ | dlls/xen.cpp | QuakeEngines/halflife-sdk-2019 | 10b494deaef5433245213851634db1361f1ba4ce | [
"Unlicense"
] | 77 | 2018-09-02T20:32:32.000Z | 2022-03-31T00:25:33.000Z | dlls/xen.cpp | QuakeEngines/halflife-sdk-2019 | 10b494deaef5433245213851634db1361f1ba4ce | [
"Unlicense"
] | 79 | 2019-09-01T12:47:26.000Z | 2022-03-28T11:02:16.000Z | dlls/xen.cpp | QuakeEngines/halflife-sdk-2019 | 10b494deaef5433245213851634db1361f1ba4ce | [
"Unlicense"
] | 51 | 2018-09-02T22:02:04.000Z | 2022-03-30T09:08:41.000Z | /***
*
* Copyright (c) 1996-2001, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* Use, distribution, and modification of this source code and/or resulting
* obje... | 21.283051 | 130 | 0.712352 | QuakeEngines |
36c3fbabb8c09268eea5518c01b59ab240af5f94 | 1,856 | cpp | C++ | source/Dream/Network/OutputStream.cpp | kurocha/dream-network | 279028c8a1c1531c020919e66dcd644060f43133 | [
"Unlicense",
"MIT"
] | null | null | null | source/Dream/Network/OutputStream.cpp | kurocha/dream-network | 279028c8a1c1531c020919e66dcd644060f43133 | [
"Unlicense",
"MIT"
] | null | null | null | source/Dream/Network/OutputStream.cpp | kurocha/dream-network | 279028c8a1c1531c020919e66dcd644060f43133 | [
"Unlicense",
"MIT"
] | null | null | null | //
// OutputStream.cpp
// File file is part of the "Dream" project and released under the MIT License.
//
// Created by Samuel Williams on 23/6/2017.
// Copyright, 2017, by Samuel Williams. All rights reserved.
//
#include "OutputStream.hpp"
#include <sys/types.h>
#include <sys/uio.h>
#include <unistd.h>
namespa... | 22.634146 | 80 | 0.608836 | kurocha |
36c4a82f4a32f4040ed6d23311c8d1ce8e391974 | 570 | cpp | C++ | Tests/ExchangeRatesRepositoryTest.cpp | sergeylenkov/Clerk | b220864e89559207c5eeea113668891236fcbfb9 | [
"MIT"
] | 14 | 2016-11-01T15:48:02.000Z | 2020-07-15T13:00:27.000Z | Tests/ExchangeRatesRepositoryTest.cpp | sergeylenkov/Clerk | b220864e89559207c5eeea113668891236fcbfb9 | [
"MIT"
] | 29 | 2017-11-16T04:15:33.000Z | 2021-12-22T07:15:42.000Z | Tests/ExchangeRatesRepositoryTest.cpp | sergeylenkov/Clerk | b220864e89559207c5eeea113668891236fcbfb9 | [
"MIT"
] | 2 | 2018-08-15T15:25:11.000Z | 2019-01-28T12:49:50.000Z | #include "pch.h"
#include "../Clerk/Data/Repositories/ExchangeRatesRepository.h"
#include "Fixture.cpp"
class ExchangeRatesRepositoryTest : public Fixture {
public:
void SetUp() override {
SetUpConnection();
repository = new ExchangeRatesRepository(*connection);
}
void TearDown() override... | 22.8 | 63 | 0.705263 | sergeylenkov |
36c8665c444da9af0b2177bb228a6c69ce1cc314 | 38,705 | cc | C++ | tensorflow/core/protobuf/debug.pb.cc | daiab/Read-Tensorflow-Source-Code | 469dba7d66ba656d375551742d6661f260d45c66 | [
"Apache-2.0"
] | null | null | null | tensorflow/core/protobuf/debug.pb.cc | daiab/Read-Tensorflow-Source-Code | 469dba7d66ba656d375551742d6661f260d45c66 | [
"Apache-2.0"
] | null | null | null | tensorflow/core/protobuf/debug.pb.cc | daiab/Read-Tensorflow-Source-Code | 469dba7d66ba656d375551742d6661f260d45c66 | [
"Apache-2.0"
] | null | null | null | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/protobuf/debug.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "tensorflow/core/protobuf/debug.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#inclu... | 38.397817 | 152 | 0.743418 | daiab |
36c8a7e9dcf8dbdd09f08484a37860498404a3b7 | 607 | cpp | C++ | project2D/PlusDot.cpp | AlexMollard/PacMan | 03d6d0996d89652375abd7e0d604f609fae5f95b | [
"MIT"
] | null | null | null | project2D/PlusDot.cpp | AlexMollard/PacMan | 03d6d0996d89652375abd7e0d604f609fae5f95b | [
"MIT"
] | null | null | null | project2D/PlusDot.cpp | AlexMollard/PacMan | 03d6d0996d89652375abd7e0d604f609fae5f95b | [
"MIT"
] | null | null | null | #include "PlusDot.h"
PlusDot::PlusDot(const char* FileName, Grid* _Grid) : GameObject(FileName, _Grid)
{
_Collider = new Collider(Vector2(-25, -25) / 4, Vector2(25, 25) / 4);
_Texture = new aie::Texture("./textures/Dot.png");
_DotTexture = new aie::Texture("./textures/Dot.png");
SetName("PlusDot");
_E... | 18.393939 | 82 | 0.622735 | AlexMollard |
36cac46aa878505067b3f802b563882bdb6657da | 23,041 | cpp | C++ | src/lib/webview/tabwidget.cpp | sys9kdr/QupZilla | 1d7916e455e14fadd03ab430eec7cdf4eef65ece | [
"BSD-3-Clause"
] | 1 | 2015-11-03T03:24:41.000Z | 2015-11-03T03:24:41.000Z | src/lib/webview/tabwidget.cpp | sys9kdr/QupZilla | 1d7916e455e14fadd03ab430eec7cdf4eef65ece | [
"BSD-3-Clause"
] | null | null | null | src/lib/webview/tabwidget.cpp | sys9kdr/QupZilla | 1d7916e455e14fadd03ab430eec7cdf4eef65ece | [
"BSD-3-Clause"
] | null | null | null | /* ============================================================
* QupZilla - WebKit based browser
* Copyright (C) 2010-2013 David Rosca <nowrep@gmail.com>
*
* 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 ... | 26.123583 | 138 | 0.630355 | sys9kdr |
36cb13a58d3cb1c9a4305c5aa6ac5d81cc55a41e | 43,924 | cpp | C++ | dali/internal/input/tizen-wayland/input-method-context-impl-ecore-wl.cpp | Coquinho/dali-adaptor | a8006aea66b316a5eb710e634db30f566acda144 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | dali/internal/input/tizen-wayland/input-method-context-impl-ecore-wl.cpp | Coquinho/dali-adaptor | a8006aea66b316a5eb710e634db30f566acda144 | [
"Apache-2.0",
"BSD-3-Clause"
] | 2 | 2020-10-19T13:45:40.000Z | 2020-12-10T20:21:03.000Z | dali/internal/input/tizen-wayland/input-method-context-impl-ecore-wl.cpp | expertisesolutions/dali-adaptor | 810bf4dea833ea7dfbd2a0c82193bc0b3b155011 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2020 Samsung Electronics Co., Ltd.
*
* 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... | 33.125189 | 360 | 0.730717 | Coquinho |
36d03f2ed194c8cef749837d2d72e2a25d7594a4 | 1,327 | cpp | C++ | src/Block.cpp | igagis/sintezator | ca409e045154295d00898970c82484041dcc0e6a | [
"MIT"
] | null | null | null | src/Block.cpp | igagis/sintezator | ca409e045154295d00898970c82484041dcc0e6a | [
"MIT"
] | null | null | null | src/Block.cpp | igagis/sintezator | ca409e045154295d00898970c82484041dcc0e6a | [
"MIT"
] | 1 | 2018-01-19T05:07:00.000Z | 2018-01-19T05:07:00.000Z | #include "Block.hpp"
#include <morda/widgets/label/nine_patch.hpp>
#include <morda/widgets/proxy/mouse_proxy.hpp>
namespace{
const auto blockLayout_c = treeml::read(R"qwertyuiop(
@mouse_proxy{
id{mouseProxy}
layout{dx{fill} dy{fill}}
}
@nine_patch{
id{ninePatch}
image{morda_npt_window_bg}
left{${morda_... | 23.280702 | 98 | 0.706104 | igagis |
36d10342442c27bc672dc728890c90f2aed7524e | 7,130 | hpp | C++ | crogine/src/graphics/shaders/GBuffer.hpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 41 | 2017-08-29T12:14:36.000Z | 2022-02-04T23:49:48.000Z | crogine/src/graphics/shaders/GBuffer.hpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 11 | 2017-09-02T15:32:45.000Z | 2021-12-27T13:34:56.000Z | crogine/src/graphics/shaders/GBuffer.hpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 5 | 2020-01-25T17:51:45.000Z | 2022-03-01T05:20:30.000Z | /*-----------------------------------------------------------------------
Matt Marchant 2017 - 2021
http://trederia.blogspot.com
crogine - Zlib license.
This software is provided 'as-is', without any express or
implied warranty.In no event will the authors be held
liable for any damages arising from the use of this ... | 29.957983 | 110 | 0.610238 | fallahn |
36d3260cb78991d9799102171085f88315876dd0 | 4,161 | cpp | C++ | tests/src/decode_traits_tests.cpp | Flow86/jsoncons | 137be2a5fbe90861fd75f24553dc139560fb12c5 | [
"BSL-1.0"
] | null | null | null | tests/src/decode_traits_tests.cpp | Flow86/jsoncons | 137be2a5fbe90861fd75f24553dc139560fb12c5 | [
"BSL-1.0"
] | null | null | null | tests/src/decode_traits_tests.cpp | Flow86/jsoncons | 137be2a5fbe90861fd75f24553dc139560fb12c5 | [
"BSL-1.0"
] | null | null | null | // Copyright 2020 Daniel Parker
// Distributed under Boost license
#include <jsoncons/json.hpp>
#include <catch/catch.hpp>
#include <vector>
#include <map>
#include <utility>
using namespace jsoncons;
TEST_CASE("decode_traits primitive")
{
SECTION("is_primitive")
{
CHECK(type_traits::is_primitive<uin... | 27.375 | 78 | 0.586157 | Flow86 |
36d614e1310bd179aabe67b465abf8ce1d459b76 | 1,885 | cpp | C++ | 1.Brute-Force/1.1.Iterative-Brute-Force/CodeForces 88A - Chord.cpp | mograby3500/psolving-paradigms | 073aa13bc9ee1eb2bf77dd7054388f93bd98d8da | [
"MIT"
] | 22 | 2021-07-01T00:27:15.000Z | 2021-08-10T11:20:22.000Z | 1.brute-force/1.1.iterative-brute-force/CodeForces 88A - Chord.cpp | AHR9N/Solving-Paradigms | d1baa51df262170c9b7cc802ea2f9f1ccfc6a427 | [
"MIT"
] | null | null | null | 1.brute-force/1.1.iterative-brute-force/CodeForces 88A - Chord.cpp | AHR9N/Solving-Paradigms | d1baa51df262170c9b7cc802ea2f9f1ccfc6a427 | [
"MIT"
] | 2 | 2022-01-30T23:25:17.000Z | 2022-02-05T14:47:51.000Z | #include <bits/stdc++.h>
using namespace std;
#define pi acos(-1)
#define inc(a) a.begin(), a.end()
#define dec(a) a.rbegin(), a.rend()
#define Unique(n) (n).erase(unique(inc(n)), (n).end())
#define what_is(x) cerr << #x << " is " << x << '\n';
#define to(i, a, n) f... | 35.566038 | 88 | 0.450928 | mograby3500 |
36e24c86ed44c8c0c70185ff62e601ff06e430fc | 5,542 | hpp | C++ | include/snap/utility/traits.hpp | robclu/snap | a717bc153a1ab97ab478e20c67b4ba38ffd4af95 | [
"MIT"
] | null | null | null | include/snap/utility/traits.hpp | robclu/snap | a717bc153a1ab97ab478e20c67b4ba38ffd4af95 | [
"MIT"
] | null | null | null | include/snap/utility/traits.hpp | robclu/snap | a717bc153a1ab97ab478e20c67b4ba38ffd4af95 | [
"MIT"
] | null | null | null | //---- snap/utility/traits.hpp ----------------------------- -*- C++ -*- ----//
//
// Snap
//
// Copyright (c) 2016 Rob Clucas
// Distributed under the MIT License
// (See accompanying file LICENSE o... | 35.754839 | 79 | 0.653374 | robclu |
36e6fc67751c08cd319085c2e786ea8fd8eed78f | 24,254 | cpp | C++ | ui/CxChartCtrl/OleDateTime.cpp | johnzcdGitHub/SuperCxHMI | e897b7bdf30cfe3bfeb5b8738e10c7205ebcd665 | [
"MIT"
] | 118 | 2015-05-19T09:19:01.000Z | 2022-02-24T15:18:51.000Z | ui/CxChartCtrl/OleDateTime.cpp | PythonYanshenguan/SuperCxHMI | 19f681583fca56c528b51b5821fe842c80bcae24 | [
"MIT"
] | 1 | 2016-10-24T02:48:03.000Z | 2020-04-20T01:53:31.000Z | ui/CxChartCtrl/OleDateTime.cpp | PythonYanshenguan/SuperCxHMI | 19f681583fca56c528b51b5821fe842c80bcae24 | [
"MIT"
] | 98 | 2015-02-11T07:16:47.000Z | 2022-02-24T02:15:27.000Z | // OleDateTime.cpp: implementation of the COleDateTime class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "OleDateTime.h"
#include <math.h>
#define MAX_TIME_BUFFER_SIZE 128 // matches that in timecore.cpp
#define MIN_DATE (-657434L)... | 24.375879 | 99 | 0.676466 | johnzcdGitHub |
36e72538476d2f58abf12b420dc6549b62ed92e0 | 5,291 | cpp | C++ | LZW_Core_Tests/src/BitBufferTest.cpp | KyrietS/lzw | a6924203ff7b9252c296d40a31a9813c25d4370c | [
"MIT"
] | null | null | null | LZW_Core_Tests/src/BitBufferTest.cpp | KyrietS/lzw | a6924203ff7b9252c296d40a31a9813c25d4370c | [
"MIT"
] | null | null | null | LZW_Core_Tests/src/BitBufferTest.cpp | KyrietS/lzw | a6924203ff7b9252c296d40a31a9813c25d4370c | [
"MIT"
] | null | null | null | #include <catch2/catch.hpp>
#include <stdexcept>
#include <cstdlib> // rand
#include <ctime> // time
#include "Utils/BitBuffer.hpp"
#pragma warning( disable : 6237 6319 )
TEST_CASE("Creating bit buffer with fixed size", "[BitBuffer]")
{
SECTION("Valid (positive) capacity")
{
int validCapacity = GENERATE(1, 2, 3, ... | 21.50813 | 89 | 0.629371 | KyrietS |
36e7ce68d2da5337bd9f11e73bc863157ab3005f | 1,724 | hpp | C++ | OptiX-Path-Tracer/host_includes/camera.hpp | trevortheblack/OptiX-Path-Tracer | e52394a80966057f8968c008078f0372277fdc8e | [
"Apache-2.0"
] | 77 | 2018-11-27T12:17:52.000Z | 2022-02-22T23:25:06.000Z | OptiX-Path-Tracer/host_includes/camera.hpp | trevortheblack/OptiX-Path-Tracer | e52394a80966057f8968c008078f0372277fdc8e | [
"Apache-2.0"
] | 1 | 2019-06-14T18:43:07.000Z | 2019-06-14T18:43:07.000Z | OptiX-Path-Tracer/host_includes/camera.hpp | trevortheblack/OptiX-Path-Tracer | e52394a80966057f8968c008078f0372277fdc8e | [
"Apache-2.0"
] | 3 | 2019-06-14T15:28:58.000Z | 2021-10-13T16:32:09.000Z | #ifndef CAMERAH
#define CAMERAH
// camera.hpp: Define camera class and functions
#include "host_common.hpp"
// Create Camera
class Camera {
public:
Camera() {}
Camera(const float3 &lookfrom, const float3 &lookat, const float3 &vup,
float vfov, float aspect, float aperture, float focus_dist, float t0,
... | 27.365079 | 78 | 0.655452 | trevortheblack |
36e93a463bf5b0942029d73cf2d671aafb495e27 | 17,456 | cpp | C++ | ares/ps1/cpu/recompiler.cpp | Kawa-oneechan/ares | 764a881d36a5561a30d9c27d75b9ab0e4f565ea1 | [
"0BSD"
] | 1 | 2021-07-02T07:30:47.000Z | 2021-07-02T07:30:47.000Z | ares/ps1/cpu/recompiler.cpp | jbo-85/ares | 8a7ac00d033e9dc3ebc145b4253dd0f289c783e1 | [
"0BSD"
] | null | null | null | ares/ps1/cpu/recompiler.cpp | jbo-85/ares | 8a7ac00d033e9dc3ebc145b4253dd0f289c783e1 | [
"0BSD"
] | null | null | null | auto CPU::Recompiler::pool(u32 address) -> Pool* {
auto& pool = pools[address >> 8 & 0x1fffff];
if(!pool) pool = (Pool*)allocator.acquire(sizeof(Pool));
return pool;
}
auto CPU::Recompiler::block(u32 address) -> Block* {
if(auto block = pool(address)->blocks[address >> 2 & 0x3f]) return block;
auto block = e... | 15.585714 | 98 | 0.523373 | Kawa-oneechan |
36e9f3836ca9fd6dca713a8cb5efa31a7f5794bf | 954 | hpp | C++ | include/vks/DebugUtilsMessenger.hpp | underdoeg/controller | 8789f443dfd1ab32b603ec8cc69f9fc2d41088b0 | [
"Unlicense"
] | 5 | 2021-06-05T15:33:35.000Z | 2022-02-09T16:54:32.000Z | include/vks/DebugUtilsMessenger.hpp | underdoeg/controller | 8789f443dfd1ab32b603ec8cc69f9fc2d41088b0 | [
"Unlicense"
] | 2 | 2021-06-05T19:27:44.000Z | 2021-09-29T04:32:21.000Z | include/vks/DebugUtilsMessenger.hpp | florianvazelle/VulkanStarter | 9fd5c6d44b11ff5e63d86e35570bfd1d66e2fadb | [
"Unlicense"
] | 1 | 2022-01-01T04:10:21.000Z | 2022-01-01T04:10:21.000Z | #ifndef DEBUGUTILSMESSENGER_HPP
#define DEBUGUTILSMESSENGER_HPP
#include <vulkan/vulkan.h>
#include <NonCopyable.hpp>
namespace vks {
class Instance;
class DebugUtilsMessenger : public NonCopyable {
public:
explicit DebugUtilsMessenger(const Instance& instance);
~DebugUtilsMessenger() noexcept(false)... | 28.058824 | 97 | 0.75891 | underdoeg |
36ea4e044f6271473bbf3781fe866777b7c8d834 | 3,543 | cpp | C++ | mpags-cipher.cpp | MPAGS-CPP-2019/mpags-day-2-PSwallow1 | 0431d2323c3df67e0ab362694c3321594ca7006d | [
"MIT"
] | null | null | null | mpags-cipher.cpp | MPAGS-CPP-2019/mpags-day-2-PSwallow1 | 0431d2323c3df67e0ab362694c3321594ca7006d | [
"MIT"
] | null | null | null | mpags-cipher.cpp | MPAGS-CPP-2019/mpags-day-2-PSwallow1 | 0431d2323c3df67e0ab362694c3321594ca7006d | [
"MIT"
] | null | null | null | // Standard Library includes
#include <fstream>
#include <string>
#include <vector>
#include "MPAGScipher/TransformChar.hpp"
#include "MPAGScipher/ProcessCmndLine.hpp"
#include "MPAGScipher/runCaesarCipher.hpp"
// For std::isalpha and std::isupper
#include <cctype>
// Main function of the mpags-cipher program
int mai... | 34.735294 | 125 | 0.603726 | MPAGS-CPP-2019 |
36f796d3ee803d945278322415c668a2d0a7a2dc | 1,124 | cpp | C++ | C++ for Games/Exercise 1/Ex1/String.cpp | JorxSS/UPCMaster | 374e9bd0cc940ee867d37c74f9a6b5ec0c5b2cdf | [
"MIT"
] | null | null | null | C++ for Games/Exercise 1/Ex1/String.cpp | JorxSS/UPCMaster | 374e9bd0cc940ee867d37c74f9a6b5ec0c5b2cdf | [
"MIT"
] | null | null | null | C++ for Games/Exercise 1/Ex1/String.cpp | JorxSS/UPCMaster | 374e9bd0cc940ee867d37c74f9a6b5ec0c5b2cdf | [
"MIT"
] | null | null | null | #include "String.h"
#include <iostream>
#include <stdio.h>
#include <assert.h>
using namespace std;
String::String(const char* src) {
assert(src != NULL);
nlength = strlen(src) + 1;
str = new char[nlength];
char* ptr = str;
while (*ptr++ = *src++);
}
String::String(const String &src) {
nlength = src.nlength;
s... | 19.37931 | 57 | 0.592527 | JorxSS |
36f856ad439579eb21a959be09c8570228dd1c30 | 9,627 | hh | C++ | include/webserve.hh | smirolo/tero | 8db171a22e6723bc1eed0b235f17cc962528b93d | [
"BSD-3-Clause"
] | 1 | 2020-06-27T00:27:10.000Z | 2020-06-27T00:27:10.000Z | include/webserve.hh | smirolo/tero | 8db171a22e6723bc1eed0b235f17cc962528b93d | [
"BSD-3-Clause"
] | null | null | null | include/webserve.hh | smirolo/tero | 8db171a22e6723bc1eed0b235f17cc962528b93d | [
"BSD-3-Clause"
] | null | null | null | /* Copyright (c) 2009-2013, Fortylines LLC
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 condi... | 32.744898 | 104 | 0.604861 | smirolo |
36fe491c160d548b90a3a1de35cf09feef3beb71 | 1,302 | cpp | C++ | Equinox/ModuleCameraManager.cpp | jowie94/EquinoxEngine | 45f5efaa00e35a264bf3537ec3bdfe8b221325bf | [
"MIT"
] | null | null | null | Equinox/ModuleCameraManager.cpp | jowie94/EquinoxEngine | 45f5efaa00e35a264bf3537ec3bdfe8b221325bf | [
"MIT"
] | null | null | null | Equinox/ModuleCameraManager.cpp | jowie94/EquinoxEngine | 45f5efaa00e35a264bf3537ec3bdfe8b221325bf | [
"MIT"
] | 1 | 2018-10-16T20:12:59.000Z | 2018-10-16T20:12:59.000Z | #include "ModuleCameraManager.h"
#include "Engine.h"
#include "ModuleWindow.h"
ModuleCameraManager::ModuleCameraManager()
{
}
ModuleCameraManager::~ModuleCameraManager()
{
}
int ModuleCameraManager::AddCamera(CameraComponent* camera)
{
assert(camera != nullptr && "Camera is null");
assert(_cameras.find(camera->Ge... | 20.34375 | 93 | 0.745776 | jowie94 |
36ff0fefd05bf123315a9ca58710e71c8a04cbd1 | 4,768 | cpp | C++ | HelperFunctions/getVkPipelineViewportStateCreateInfo.cpp | dkaip/jvulkan-natives-Linux-x86_64 | ea7932f74e828953c712feea11e0b01751f9dc9b | [
"Apache-2.0"
] | null | null | null | HelperFunctions/getVkPipelineViewportStateCreateInfo.cpp | dkaip/jvulkan-natives-Linux-x86_64 | ea7932f74e828953c712feea11e0b01751f9dc9b | [
"Apache-2.0"
] | null | null | null | HelperFunctions/getVkPipelineViewportStateCreateInfo.cpp | dkaip/jvulkan-natives-Linux-x86_64 | ea7932f74e828953c712feea11e0b01751f9dc9b | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019-2020 Douglas Kaip
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 34.302158 | 123 | 0.566485 | dkaip |
3c009c3cd3a13a38bdaa4d01d868228c8f56f225 | 4,857 | cc | C++ | src/rime/composition.cc | mengzhisuoliu/librime | 9eeeffcc0fa24d9dbfd6d58f936eb9fe60be3e70 | [
"BSD-3-Clause"
] | 2,326 | 2015-01-26T13:34:46.000Z | 2022-03-30T06:53:47.000Z | src/rime/composition.cc | mengzhisuoliu/librime | 9eeeffcc0fa24d9dbfd6d58f936eb9fe60be3e70 | [
"BSD-3-Clause"
] | 440 | 2015-01-26T12:29:17.000Z | 2022-03-31T13:21:59.000Z | src/rime/composition.cc | mengzhisuoliu/librime | 9eeeffcc0fa24d9dbfd6d58f936eb9fe60be3e70 | [
"BSD-3-Clause"
] | 491 | 2015-01-24T17:58:21.000Z | 2022-03-27T21:17:37.000Z | //
// Copyright RIME Developers
// Distributed under the BSD License
//
// 2011-06-19 GONG Chen <chen.sst@gmail.com>
//
#include <boost/algorithm/string.hpp>
#include <boost/range/adaptor/reversed.hpp>
#include <rime/candidate.h>
#include <rime/composition.h>
#include <rime/menu.h>
namespace rime {
bool Composition::... | 26.834254 | 75 | 0.569899 | mengzhisuoliu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.