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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9dc718db7c954e7c425e24963ed9b7d28279db8d | 102,450 | cpp | C++ | ssrounding.cpp | xmuriqui/muriqui | ff1492c70e297077c9450ef9175e5a80c6627140 | [
"MIT"
] | 5 | 2021-12-04T04:42:32.000Z | 2022-01-21T13:23:47.000Z | ssrounding.cpp | xmuriqui/muriqui | ff1492c70e297077c9450ef9175e5a80c6627140 | [
"MIT"
] | null | null | null | ssrounding.cpp | xmuriqui/muriqui | ff1492c70e297077c9450ef9175e5a80c6627140 | [
"MIT"
] | null | null | null | /*
* This file implements the structured stochastic rounding heurist. An experimental feasibility heuristic from our heads
*
* 02, September, 2020
*
* Author: Wendel Melo
*/
#include <cassert>
#include <cstdlib>
#include <cmath>
#include <ctime>
#include <iostream>
#include <new>
#include "MRQ_algClasses.hp... | 36.394316 | 980 | 0.552025 | xmuriqui |
9dd509d3b1d33d66d013245fae5c7fb30442a6ed | 14,191 | cpp | C++ | Common/network/src/worker_thread.cpp | deeptexas-ai/test | f06b798d18f2d53c9206df41406d02647004ce84 | [
"MIT"
] | 4 | 2021-10-20T09:18:06.000Z | 2022-03-27T05:08:26.000Z | Common/network/src/worker_thread.cpp | deeptexas-ai/test | f06b798d18f2d53c9206df41406d02647004ce84 | [
"MIT"
] | 1 | 2021-11-05T03:28:41.000Z | 2021-11-06T07:48:05.000Z | Common/network/src/worker_thread.cpp | deeptexas-ai/test | f06b798d18f2d53c9206df41406d02647004ce84 | [
"MIT"
] | 1 | 2021-12-13T16:04:22.000Z | 2021-12-13T16:04:22.000Z | #include "worker_thread.h"
#include "socket_manager.h"
namespace network
{
CWorkerThread::CWorkerThread()
{
m_nNotifyReadFd = INVALID_SOCKET;
m_nNotifySendFd = INVALID_SOCKET;
m_base = NULL;
}
CWorkerThread::~CWorkerThread()
{
if(INVALID_SOCKET != m_nNoti... | 35.389027 | 198 | 0.549503 | deeptexas-ai |
9dd9cbda5f437b167f3828e590502a2766fe4e92 | 639 | cpp | C++ | source/Ch18/drill/chapter18.2.cpp | TangoPango2008/UDProg-Introduction | 3d98eb5c6fd9896e5c8bbd939bcf7061370b9a5c | [
"CC0-1.0"
] | null | null | null | source/Ch18/drill/chapter18.2.cpp | TangoPango2008/UDProg-Introduction | 3d98eb5c6fd9896e5c8bbd939bcf7061370b9a5c | [
"CC0-1.0"
] | null | null | null | source/Ch18/drill/chapter18.2.cpp | TangoPango2008/UDProg-Introduction | 3d98eb5c6fd9896e5c8bbd939bcf7061370b9a5c | [
"CC0-1.0"
] | null | null | null | #include "../std_lib_facilities.h"
vector<int> gv{1,2,4,8,16,31,64,128,256,512};
/*void initialize(vector<int> vr){
for(int i = 0; i < vr.size(); i ++)
vr[i] = pow(2,i);
}*/
void f(vector<int>& vr){
vector<int> lv(10);
for(int i = 0; i < lv.size(); i ++)
lv[i] = vr[i];
for(int i = 0; i < lv.size(); i ++)
... | 16.384615 | 45 | 0.494523 | TangoPango2008 |
9ddf8608c4c60af12c876f221d5734553df3a7ed | 394 | cpp | C++ | source/Highscore.cpp | JROB774/block-fever | 9977ac6725e1adf5f86706e04da725e3df8a9c69 | [
"MIT"
] | 1 | 2022-01-14T01:10:02.000Z | 2022-01-14T01:10:02.000Z | source/Highscore.cpp | JROB774/block-fever | 9977ac6725e1adf5f86706e04da725e3df8a9c69 | [
"MIT"
] | null | null | null | source/Highscore.cpp | JROB774/block-fever | 9977ac6725e1adf5f86706e04da725e3df8a9c69 | [
"MIT"
] | null | null | null | int Highscore::highscore;
void Highscore::setScore (const int arg_highscore) {
highscore = arg_highscore;
}
int Highscore::getScore (void) {
return highscore;
}
bool Highscore::addScore (const int arg_score) {
bool newBest = (arg_score > highscore);
if (newBest) { highscore = arg_score; }
... | 13.133333 | 52 | 0.667513 | JROB774 |
9de029d03df9d6015c2060a20fd98321b2cadb2e | 299 | cpp | C++ | vlr-util/util.AutoCleanupBase.cpp | nick42/vlr-util | 937f53dd4d3e15b23d615b085f5bf4a8e6b9cd91 | [
"Artistic-2.0"
] | null | null | null | vlr-util/util.AutoCleanupBase.cpp | nick42/vlr-util | 937f53dd4d3e15b23d615b085f5bf4a8e6b9cd91 | [
"Artistic-2.0"
] | null | null | null | vlr-util/util.AutoCleanupBase.cpp | nick42/vlr-util | 937f53dd4d3e15b23d615b085f5bf4a8e6b9cd91 | [
"Artistic-2.0"
] | null | null | null | #include "pch.h"
#include "util.AutoCleanupBase.h"
NAMESPACE_BEGIN( vlr )
NAMESPACE_BEGIN( util )
HRESULT CAutoCleanupBase::OnDestroy_DoCleanup()
{
m_bDoCleanupCalled = true;
if (!m_bDoCleanup)
{
return S_FALSE;
}
return DoCleanup();
}
NAMESPACE_END //( util )
NAMESPACE_END //( vlr )
| 13 | 47 | 0.715719 | nick42 |
9de5202d1d5bde83729ab91a78fad9f1ca7d1902 | 13,578 | cpp | C++ | libs/hwdrivers/src/aria/src/ArSocket_LIN.cpp | yhexie/mrpt | 0bece2883aa51ad3dc88cb8bb84df571034ed261 | [
"OLDAP-2.3"
] | null | null | null | libs/hwdrivers/src/aria/src/ArSocket_LIN.cpp | yhexie/mrpt | 0bece2883aa51ad3dc88cb8bb84df571034ed261 | [
"OLDAP-2.3"
] | null | null | null | libs/hwdrivers/src/aria/src/ArSocket_LIN.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/ |
| ... | 22.442975 | 83 | 0.625423 | yhexie |
9de941dbce1feace4f6f6f220917ac3b755808d0 | 752 | cpp | C++ | src/gameLoopDriver.cpp | jacobrs/risk-game | 29ed2a58a9d5cf2fd28881876e1fabe4ed0e8ee5 | [
"MIT"
] | null | null | null | src/gameLoopDriver.cpp | jacobrs/risk-game | 29ed2a58a9d5cf2fd28881876e1fabe4ed0e8ee5 | [
"MIT"
] | null | null | null | src/gameLoopDriver.cpp | jacobrs/risk-game | 29ed2a58a9d5cf2fd28881876e1fabe4ed0e8ee5 | [
"MIT"
] | null | null | null | #include <iostream>
#include "./headers/Game.h"
#include "./headers/GameMap.h"
#include "./headers/MapLoader.h"
using namespace std;
int main(int args, char** argv){
// Initialize a new game with a valid map
MapLoader* loader = new MapLoader("./src/map/World.map");
loader->importMap();
GameMap* map = loade... | 25.931034 | 59 | 0.68484 | jacobrs |
9df3872b428bbb1a548e4547d54e1a4ea7b3d499 | 1,581 | cpp | C++ | details/pbkdf2.cpp | VlinderSoftware/securitylayer | 0daef0efe08af2649b164affcbdd30845a7806cd | [
"Apache-2.0"
] | 1 | 2020-07-16T01:34:06.000Z | 2020-07-16T01:34:06.000Z | details/pbkdf2.cpp | blytkerchan/securitylayer | 0daef0efe08af2649b164affcbdd30845a7806cd | [
"Apache-2.0"
] | 1 | 2020-07-23T02:55:31.000Z | 2020-07-23T02:55:31.000Z | details/pbkdf2.cpp | blytkerchan/securitylayer | 0daef0efe08af2649b164affcbdd30845a7806cd | [
"Apache-2.0"
] | 1 | 2020-07-03T00:06:20.000Z | 2020-07-03T00:06:20.000Z | /* Copyright 2020 Ronald Landheer-Cieslak
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 32.9375 | 152 | 0.683112 | VlinderSoftware |
9df43eb3a77ee94dfb0d61a5da7fcf9890aa3f42 | 4,933 | cpp | C++ | src/brokerlib/message/handler/src/ServiceRegistryRegisterRequestHandler.cpp | chrissmith-mcafee/opendxl-broker | a3f985fc19699ab8fcff726bbd1974290eb6e044 | [
"Apache-2.0",
"MIT"
] | 13 | 2017-10-15T14:32:34.000Z | 2022-02-17T08:25:26.000Z | src/brokerlib/message/handler/src/ServiceRegistryRegisterRequestHandler.cpp | vkrish-mcafee/opendxl-broker | 39c5d06c233dbe01146f0db781eccfd67bbaafbf | [
"Apache-2.0",
"MIT"
] | 14 | 2017-10-17T18:23:50.000Z | 2021-12-10T22:05:25.000Z | src/brokerlib/message/handler/src/ServiceRegistryRegisterRequestHandler.cpp | vkrish-mcafee/opendxl-broker | 39c5d06c233dbe01146f0db781eccfd67bbaafbf | [
"Apache-2.0",
"MIT"
] | 26 | 2017-10-27T00:27:29.000Z | 2021-09-02T16:57:55.000Z | /******************************************************************************
* Copyright (c) 2018 McAfee, LLC - All Rights Reserved.
*****************************************************************************/
#include "include/BrokerSettings.h"
#include "include/SimpleLog.h"
#include "json/include/JsonService.... | 40.105691 | 120 | 0.668964 | chrissmith-mcafee |
9df61e9e192f873c21543dd272661bfb11d3dd01 | 6,890 | cpp | C++ | CSGOSimple/features/skins.cpp | lukizel/baluware | 5d76d5616537d9812ee38bbb41b3abf596cb8830 | [
"Unlicense"
] | null | null | null | CSGOSimple/features/skins.cpp | lukizel/baluware | 5d76d5616537d9812ee38bbb41b3abf596cb8830 | [
"Unlicense"
] | null | null | null | CSGOSimple/features/skins.cpp | lukizel/baluware | 5d76d5616537d9812ee38bbb41b3abf596cb8830 | [
"Unlicense"
] | 1 | 2020-12-04T20:36:19.000Z | 2020-12-04T20:36:19.000Z | #include "skins.hpp"
static auto erase_override_if_exists_by_index( const int definition_index ) -> void {
if( k_weapon_info.count( definition_index ) ) {
auto& icon_override_map = g_Options.skins.m_icon_overrides;
const auto& original_item = k_weapon_info.at( definition_index );
if( original_item.icon && icon_o... | 43.333333 | 159 | 0.730914 | lukizel |
9df94a3925d8d6c6bf4f6423dd18cbcdac719f3c | 2,427 | cpp | C++ | AIO/tennis robot/tennis.cpp | eddiegz/Personal-C | f7869826216e5c665f8f646502141f0dc680e545 | [
"MIT"
] | 3 | 2021-05-15T08:18:09.000Z | 2021-05-17T04:41:57.000Z | AIO/tennis robot/tennis.cpp | eddiegz/Personal-C | f7869826216e5c665f8f646502141f0dc680e545 | [
"MIT"
] | null | null | null | AIO/tennis robot/tennis.cpp | eddiegz/Personal-C | f7869826216e5c665f8f646502141f0dc680e545 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using ll=long long;
using pii=pair<int,int>;
#define ff first
#define ss second
//#define DEBUG
const int MAXN=1e5+5;
bool done[MAXN];
priority_queue<pii,vector<pii>,greater<pii>> order;
ll ans=0;ll ind=1;
ll b,n;
void solve();
int main(){
ios::sync_with_stdio(false... | 23.563107 | 51 | 0.347342 | eddiegz |
9dfcfe0cde70b39c4f35a71c91688fa83f9c78f1 | 797 | hpp | C++ | include/Pomdog/Input/GamepadButtons.hpp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | include/Pomdog/Input/GamepadButtons.hpp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | include/Pomdog/Input/GamepadButtons.hpp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | // Copyright (c) 2013-2015 mogemimi.
// Distributed under the MIT license. See LICENSE.md file for details.
#ifndef POMDOG_GAMEPADBUTTONS_7EF60FA0_HPP
#define POMDOG_GAMEPADBUTTONS_7EF60FA0_HPP
#include "ButtonState.hpp"
#include <cstdint>
namespace Pomdog {
class GamepadButtons {
public:
ButtonState A = Button... | 28.464286 | 70 | 0.769134 | bis83 |
9dfe4bbf5abf8a747614274f7bed7a27280f9299 | 1,863 | hpp | C++ | ModSource/breakingpoint_ui/LoadingScreenBase.hpp | nrailuj/breakingpointmod | e102e106b849ca78deb3cb299f3ae18c91c3bfe9 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 70 | 2017-06-23T21:25:05.000Z | 2022-03-27T02:39:33.000Z | ModSource/breakingpoint_ui/LoadingScreenBase.hpp | nrailuj/breakingpointmod | e102e106b849ca78deb3cb299f3ae18c91c3bfe9 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 84 | 2017-08-26T22:06:28.000Z | 2021-09-09T15:32:56.000Z | ModSource/breakingpoint_ui/LoadingScreenBase.hpp | nrailuj/breakingpointmod | e102e106b849ca78deb3cb299f3ae18c91c3bfe9 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 71 | 2017-06-24T01:10:42.000Z | 2022-03-18T23:02:00.000Z | /*
Breaking Point Mod for Arma 3
Released under Arma Public Share Like Licence (APL-SA)
https://www.bistudio.com/community/licenses/arma-public-license-share-alike
Alderon Games Pty Ltd
*/
idd = 101;
onLoad = "[""onLoad"",_this,""RscDisplayLoading""] call compile preprocessfilelinenumbers ""breakingpoint_ui\scri... | 22.445783 | 154 | 0.656468 | nrailuj |
3b044568e4bab00c1c92c7ab908b910c6b3f9536 | 4,786 | cpp | C++ | src/bind/file/explorer_util.cpp | e-ntro-py/win-vind | 1ec805420732c82a46e2c79720db728ded792814 | [
"MIT"
] | null | null | null | src/bind/file/explorer_util.cpp | e-ntro-py/win-vind | 1ec805420732c82a46e2c79720db728ded792814 | [
"MIT"
] | null | null | null | src/bind/file/explorer_util.cpp | e-ntro-py/win-vind | 1ec805420732c82a46e2c79720db728ded792814 | [
"MIT"
] | null | null | null | #include "explorer_util.hpp"
#include <filesystem>
#include <memory>
#include <exdisp.h>
#include <shlobj.h>
#include "core/errlogger.hpp"
#include "util/def.hpp"
#include "util/smartcom.hpp"
#include "util/string.hpp"
#include "util/winwrap.hpp"
namespace vind
{
namespace bind {
//This is based on htt... | 37.390625 | 129 | 0.516924 | e-ntro-py |
3b0764534c0184331705ea13e0cbacbefdc3ba0e | 989 | hpp | C++ | include/gui/Button.hpp | Kihau/GoGame | db6b2dfcf373b3cc07d76d6551d83e0e9a73d6c5 | [
"MIT"
] | null | null | null | include/gui/Button.hpp | Kihau/GoGame | db6b2dfcf373b3cc07d76d6551d83e0e9a73d6c5 | [
"MIT"
] | null | null | null | include/gui/Button.hpp | Kihau/GoGame | db6b2dfcf373b3cc07d76d6551d83e0e9a73d6c5 | [
"MIT"
] | null | null | null | #ifndef BUTTON_H
#define BUTTON_H
#include "gui/GuiComponent.hpp"
// TODO: To implement either of the systems
// 1. Add c#-like callback event system (and use lamba expression to add callbacks)
// 2. Create fields for all button events, return their reault via callback methods (if callback method return true - execut... | 29.969697 | 136 | 0.703741 | Kihau |
3b0edc5dbfb4cbcfc3e15b030794300154e55356 | 337 | cpp | C++ | Olamundo/for/main.cpp | tosantos1/LIP | 7dbc045afa02729f4e2f2f1d3b29baebf5be72ad | [
"MIT"
] | null | null | null | Olamundo/for/main.cpp | tosantos1/LIP | 7dbc045afa02729f4e2f2f1d3b29baebf5be72ad | [
"MIT"
] | null | null | null | Olamundo/for/main.cpp | tosantos1/LIP | 7dbc045afa02729f4e2f2f1d3b29baebf5be72ad | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int x, n, resultado = 1;
cout << "Informe a base: ";
cin >> x;
cout << "Informe o expoente: ";
cin >> n;
for(int cont = 0;cont < n ; cont ++){
resultado = resultado * x;
}
cout << "Resultado: " << resultado << endl;
... | 12.481481 | 47 | 0.504451 | tosantos1 |
3b16176f55073f6c49713121e4807033f10f1bd4 | 969 | cpp | C++ | Contests/Codeforces/CF1011/C.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | 4 | 2017-10-31T14:25:18.000Z | 2018-06-10T16:10:17.000Z | Contests/Codeforces/CF1011/C.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | Contests/Codeforces/CF1011/C.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<algorithm>
using namespace std;
#define ll long long
#define ld long double
#define mem(Arr,x) memset(Arr,x,sizeof(Arr))
const int maxN=1010;
const ld eps=1e-6;
const int inf=2147483647;
int n,m;
int A[maxN],B[maxN];
bool Check(ld fuel... | 17.944444 | 44 | 0.597523 | SYCstudio |
3b1832611024fb775e8dbaf17e7a8171b5ac5884 | 9,162 | cc | C++ | cpp/src/arrow/ipc/file.cc | DonaldFoss/ApacheArrow | 4226adfbc6b3dff10b3fe7a6691b30bcc94140bd | [
"Apache-2.0"
] | 1 | 2020-04-23T01:11:36.000Z | 2020-04-23T01:11:36.000Z | cpp/src/arrow/ipc/file.cc | DonaldFoss/ApacheArrow | 4226adfbc6b3dff10b3fe7a6691b30bcc94140bd | [
"Apache-2.0"
] | 1 | 2021-12-09T23:06:13.000Z | 2021-12-09T23:06:14.000Z | cpp/src/arrow/ipc/file.cc | DonaldFoss/ApacheArrow | 4226adfbc6b3dff10b3fe7a6691b30bcc94140bd | [
"Apache-2.0"
] | null | null | null | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | 31.163265 | 90 | 0.712726 | DonaldFoss |
3b1a2072dde5c79af4b33b31479b7aed692d8418 | 473 | cpp | C++ | Unrest-iOS/Line.cpp | arvindrajayadav/unrest | d89f20e95fbcdef37a47ab1454b2479522a0e43f | [
"MIT"
] | 11 | 2020-08-04T08:37:46.000Z | 2022-03-31T22:35:15.000Z | CRAB/Line.cpp | arvindrajayadav/unrest | d89f20e95fbcdef37a47ab1454b2479522a0e43f | [
"MIT"
] | 1 | 2020-12-16T16:51:52.000Z | 2020-12-18T06:35:38.000Z | Unrest-iOS/Line.cpp | arvindrajayadav/unrest | d89f20e95fbcdef37a47ab1454b2479522a0e43f | [
"MIT"
] | 7 | 2020-08-04T09:34:20.000Z | 2021-09-11T03:00:16.000Z | #include "stdafx.h"
#include "Line.h"
//------------------------------------------------------------------------
// Purpose: Draw a line from start to end
//------------------------------------------------------------------------
void DrawLine(const int &x1, const int &y1, const int &x2, const int &y2,
const Uint... | 39.416667 | 74 | 0.469345 | arvindrajayadav |
3b1ac9dda4777a3a580d8f60463a3e14f5405b78 | 7,881 | cc | C++ | src/xqp/interact.cc | DouglasRMiles/QuProlog | 798d86f87fb4372b8918ef582ef2f0fc0181af2d | [
"Apache-2.0"
] | 5 | 2019-11-20T02:05:31.000Z | 2022-01-06T18:59:16.000Z | src/xqp/interact.cc | logicmoo/QuProlog | 798d86f87fb4372b8918ef582ef2f0fc0181af2d | [
"Apache-2.0"
] | null | null | null | src/xqp/interact.cc | logicmoo/QuProlog | 798d86f87fb4372b8918ef582ef2f0fc0181af2d | [
"Apache-2.0"
] | 2 | 2022-01-08T13:52:24.000Z | 2022-03-07T17:41:37.000Z | /***************************************************************************
interact.cc - QP interaction widget
-------------------
begin : April 2004
copyright : (C) 2004 by Peter Robinson
email : pjr@itee.uq... | 23.455357 | 91 | 0.572643 | DouglasRMiles |
3b238c796f289e927cbc5cd078f6372d39ea3cc8 | 1,294 | hh | C++ | include/netpoll.hh | henglinli/runtime | 2ec1981113f35dee1ea793dad2fab197152d5e08 | [
"BSD-3-Clause"
] | 1 | 2016-08-24T16:57:21.000Z | 2016-08-24T16:57:21.000Z | include/netpoll.hh | henglinli/runtime | 2ec1981113f35dee1ea793dad2fab197152d5e08 | [
"BSD-3-Clause"
] | null | null | null | include/netpoll.hh | henglinli/runtime | 2ec1981113f35dee1ea793dad2fab197152d5e08 | [
"BSD-3-Clause"
] | null | null | null | // -*-coding:utf-8-unix;-*-
//
#pragma once
//
#include "macros.hh"
//
namespace NAMESPACE {
//
template<typename Impl>
class NetPoll {
public:
//
NetPoll() = default;
~NetPoll() = default;
//
auto Init() -> int {
return static_cast<Impl*>(this)->init();
}
//
auto Open(int fd, void *ptr) -> int {
... | 19.313433 | 67 | 0.618238 | henglinli |
3b2420953d8544cfa292505e8536ffda0ffe47e1 | 1,085 | cc | C++ | example/udp_example.cc | jiejieTop/doralib | bf587aab93860a84e6d3cedf1dad206a44834f2e | [
"Apache-2.0"
] | 4 | 2020-11-04T04:44:08.000Z | 2021-12-16T08:38:05.000Z | example/udp_example.cc | jiejieTop/doralib | bf587aab93860a84e6d3cedf1dad206a44834f2e | [
"Apache-2.0"
] | 1 | 2020-11-04T14:29:43.000Z | 2020-11-05T04:51:33.000Z | example/udp_example.cc | jiejieTop/doralib | bf587aab93860a84e6d3cedf1dad206a44834f2e | [
"Apache-2.0"
] | 2 | 2020-11-25T17:27:33.000Z | 2021-02-24T09:31:00.000Z | /*
* @Author: jiejie
* @GitHub: https://github.com/jiejieTop
* @Date: 2020-10-27 18:34:01
* @LastEditors: jiejie
* @LastEditTime: 2020-11-15 11:46:20
* @Description: the code belongs to jiejie, please keep the author information and source code according to the license.
*/
#include "dora_socket.h"
#include "dor... | 25.232558 | 121 | 0.576037 | jiejieTop |
3b2541469df1539733a74e9a7850caedac2e44a1 | 6,500 | cpp | C++ | ClockWork_Engine/GameObject.cpp | xsiro/NewClockWork_Engine | 8da27311b179c6812e52d62cacbdd8ba7b538d9a | [
"MIT"
] | null | null | null | ClockWork_Engine/GameObject.cpp | xsiro/NewClockWork_Engine | 8da27311b179c6812e52d62cacbdd8ba7b538d9a | [
"MIT"
] | null | null | null | ClockWork_Engine/GameObject.cpp | xsiro/NewClockWork_Engine | 8da27311b179c6812e52d62cacbdd8ba7b538d9a | [
"MIT"
] | null | null | null | #include "GameObject.h"
#include "ModuleComponent.h"
#include "ModuleTransform.h"
#include "ModuleMesh.h"
#include "ModuleMaterial.h"
#include "imgui.h"
#include "Application.h"
#include "Cam.h"
#include "JSON.h"
#include "MathGeoLib/include/MathGeoLib.h"
#include <vector>
GameObject::GameObject() : enabled(true), n... | 19.061584 | 134 | 0.687692 | xsiro |
3b255d7d62fc90118f6999020039bb50710658ab | 31,837 | cpp | C++ | libgambatte/src/memory.cpp | Gorialis/BizHawk | 096277122553d38d87fa11c0cfe4d45e2682b939 | [
"MIT"
] | null | null | null | libgambatte/src/memory.cpp | Gorialis/BizHawk | 096277122553d38d87fa11c0cfe4d45e2682b939 | [
"MIT"
] | null | null | null | libgambatte/src/memory.cpp | Gorialis/BizHawk | 096277122553d38d87fa11c0cfe4d45e2682b939 | [
"MIT"
] | null | null | null | //
// Copyright (C) 2007 by sinamas <sinamas at 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 version 2 as
// published by the Free Software Foundation.
//
// This program is distributed in the hope tha... | 24.17388 | 109 | 0.675001 | Gorialis |
3b2abbdc675cc379208cf0ac240f906852675bfe | 1,713 | cpp | C++ | third_party/libigl/include/igl/orient_halfedges.cpp | chefmramos85/monster-mash | 239a41f6f178ca83c4be638331e32f23606b0381 | [
"Apache-2.0"
] | 1,125 | 2021-02-01T09:51:56.000Z | 2022-03-31T01:50:40.000Z | third_party/libigl/include/igl/orient_halfedges.cpp | ryan-cranfill/monster-mash | c1b906d996885f8a4011bdf7558e62e968e1e914 | [
"Apache-2.0"
] | 19 | 2021-02-01T12:36:30.000Z | 2022-03-19T14:02:50.000Z | third_party/libigl/include/igl/orient_halfedges.cpp | ryan-cranfill/monster-mash | c1b906d996885f8a4011bdf7558e62e968e1e914 | [
"Apache-2.0"
] | 148 | 2021-02-13T10:54:31.000Z | 2022-03-28T11:55:20.000Z | // This file is part of libigl, a simple c++ geometry processing library.
//
// Copyright (C) 2020 Oded Stein <oded.stein@columbia.edu>
//
// 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://mo... | 34.959184 | 350 | 0.638646 | chefmramos85 |
3b2d2515bc65e7317ef6348de67ea288b25eade0 | 1,082 | cpp | C++ | sandbox/ardupilot/libraries/AP_HAL_AVR_SITL/utility/print_vprintf.cpp | prabhu-dev/LineDetectorLengthFix | 2450bae17eb8bfbf0e3b942d765c5c4954715bde | [
"MIT"
] | null | null | null | sandbox/ardupilot/libraries/AP_HAL_AVR_SITL/utility/print_vprintf.cpp | prabhu-dev/LineDetectorLengthFix | 2450bae17eb8bfbf0e3b942d765c5c4954715bde | [
"MIT"
] | null | null | null | sandbox/ardupilot/libraries/AP_HAL_AVR_SITL/utility/print_vprintf.cpp | prabhu-dev/LineDetectorLengthFix | 2450bae17eb8bfbf0e3b942d765c5c4954715bde | [
"MIT"
] | null | null | null | // -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
/*
* vprintf for SITL
*
* This firmware is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (... | 27.05 | 91 | 0.554529 | prabhu-dev |
3b2e518527a3f0b45f97e73a0bea9f5f94ce10d0 | 944 | cpp | C++ | Chapter01/unique_ptr_3/unique_ptr_3.cpp | Vaibhav-Kashyap/-Learning-CPP-Functional-Programming-packt | 3c7ef5fcfb161870b644595c69fdb3a3522d8411 | [
"MIT"
] | 41 | 2017-08-25T07:13:57.000Z | 2022-01-06T12:28:33.000Z | Chapter01/unique_ptr_3/unique_ptr_3.cpp | Vaibhav-Kashyap/-Learning-CPP-Functional-Programming-packt | 3c7ef5fcfb161870b644595c69fdb3a3522d8411 | [
"MIT"
] | null | null | null | Chapter01/unique_ptr_3/unique_ptr_3.cpp | Vaibhav-Kashyap/-Learning-CPP-Functional-Programming-packt | 3c7ef5fcfb161870b644595c69fdb3a3522d8411 | [
"MIT"
] | 26 | 2017-08-10T21:12:25.000Z | 2021-11-17T07:25:04.000Z | /* unique_ptr_3.cpp */
#include <memory>
#include <iostream>
using namespace std;
struct BodyMass
{
int Id;
float Weight;
BodyMass(int id, float weight) :
Id(id),
Weight(weight)
{
cout << "BodyMass is constructed!" << endl;
cout << "Id = " << Id << endl;
cout <... | 17.811321 | 60 | 0.576271 | Vaibhav-Kashyap |
3b2ee455cae2e0886c62e163dada2132d3255fc6 | 11,549 | cc | C++ | src/Publisher_TEST.cc | amtj/ign-transport | 3b386bf46efd2fc0b847aa7fd3911b1d9d27546c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/Publisher_TEST.cc | amtj/ign-transport | 3b386bf46efd2fc0b847aa7fd3911b1d9d27546c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/Publisher_TEST.cc | amtj/ign-transport | 3b386bf46efd2fc0b847aa7fd3911b1d9d27546c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2015 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 37.618893 | 75 | 0.707334 | amtj |
3b320c221eb4a7ead447225e0a7a17c50466a9ce | 8,123 | cpp | C++ | wbsTools/MatchStations/MatchStationView.cpp | RNCan/WeatherBasedSimulationFramework | 19df207d11b1dddf414d78e52bece77f31d45df8 | [
"MIT"
] | 6 | 2017-05-26T21:19:41.000Z | 2021-09-03T14:17:29.000Z | wbsTools/MatchStations/MatchStationView.cpp | RNCan/WeatherBasedSimulationFramework | 19df207d11b1dddf414d78e52bece77f31d45df8 | [
"MIT"
] | 5 | 2016-02-18T12:39:58.000Z | 2016-03-13T12:57:45.000Z | wbsTools/MatchStations/MatchStationView.cpp | RNCan/WeatherBasedSimulationFramework | 19df207d11b1dddf414d78e52bece77f31d45df8 | [
"MIT"
] | 1 | 2019-06-16T02:49:20.000Z | 2019-06-16T02:49:20.000Z |
// BioSIMView.cpp : implementation of the CDPTView class
//
#include "stdafx.h"
#include "MatchStationDoc.h"
#include "MatchStationView.h"
#include "resource.h"
#include "CommonRes.h"
//#include "StudiesDefinitionsDlg.h"
#include "MainFrm.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
using names... | 26.118971 | 175 | 0.688416 | RNCan |
3b328a615d674927e3346252a3a0993be5362697 | 240 | inl | C++ | include/AKLib/Math/Math.inl | xXAKShredder8Xx/AKLib | b85d116203f6670e1f7a80c9d5396d4dc1a71f2c | [
"Apache-2.0",
"MIT"
] | null | null | null | include/AKLib/Math/Math.inl | xXAKShredder8Xx/AKLib | b85d116203f6670e1f7a80c9d5396d4dc1a71f2c | [
"Apache-2.0",
"MIT"
] | null | null | null | include/AKLib/Math/Math.inl | xXAKShredder8Xx/AKLib | b85d116203f6670e1f7a80c9d5396d4dc1a71f2c | [
"Apache-2.0",
"MIT"
] | null | null | null |
NSB(AKLib)
NSB(Math)
template <typename T>
AKL_INLINE T Interpolate(T goal, T current, T dt)
{
T diff = goal - current;
if (diff > dt)
return current + dt;
else if (diff < -dt)
return current - dt;
return goal;
}
NSE()
NSE() | 11.428571 | 50 | 0.633333 | xXAKShredder8Xx |
3b379f14f51d5b4d3c2e1c6c6f7111629aa4f1a6 | 374 | cpp | C++ | TitaniumRose/src/TitaniumRose/ImGui/ImGuiLayer.cpp | Zinadore/Hazel-D3D12 | 084cf9a473b6c66a2890f107667f687d6c7ed0a0 | [
"Apache-2.0"
] | null | null | null | TitaniumRose/src/TitaniumRose/ImGui/ImGuiLayer.cpp | Zinadore/Hazel-D3D12 | 084cf9a473b6c66a2890f107667f687d6c7ed0a0 | [
"Apache-2.0"
] | null | null | null | TitaniumRose/src/TitaniumRose/ImGui/ImGuiLayer.cpp | Zinadore/Hazel-D3D12 | 084cf9a473b6c66a2890f107667f687d6c7ed0a0 | [
"Apache-2.0"
] | null | null | null | #include "trpch.h"
#include "TitaniumRose/Core/Application.h"
#include "TitaniumRose/ImGui/ImGuiLayer.h"
#include "Platform/D3D12/ImGui/D3D12ImGuiLayer.h"
#include "Platform/D3D12/D3D12Renderer.h"
namespace Roses {
ImGuiLayer::ImGuiLayer()
: Layer("ImGuiLayer")
{
}
ImGuiLayer* ImGuiLayer::Initialize()
{
ret... | 19.684211 | 53 | 0.751337 | Zinadore |
3b37e0b30f21af95462d0a795b0951952a41f91a | 905 | cpp | C++ | widgets/demos/ex-pixmap-puzzle/main.cpp | sfaure-witekio/qt-training-material | d166e4ed9cc5f5faab85b0337c5844c4cdcb206e | [
"BSD-3-Clause"
] | 16 | 2017-01-11T17:28:03.000Z | 2021-09-27T16:12:01.000Z | widgets/demos/ex-pixmap-puzzle/main.cpp | sfaure-witekio/qt-training-material | d166e4ed9cc5f5faab85b0337c5844c4cdcb206e | [
"BSD-3-Clause"
] | null | null | null | widgets/demos/ex-pixmap-puzzle/main.cpp | sfaure-witekio/qt-training-material | d166e4ed9cc5f5faab85b0337c5844c4cdcb206e | [
"BSD-3-Clause"
] | 4 | 2017-03-17T02:44:32.000Z | 2021-01-22T07:57:34.000Z | /*************************************************************************
*
* Copyright (c) 2016 The Qt Company
* All rights reserved.
*
* See the LICENSE.txt file shipped along with this file for the license.
*
*************************************************************************/
#include <QApplication>
... | 24.459459 | 77 | 0.558011 | sfaure-witekio |
3b4322c6f705b67ed97afeb8531cfa7f6b73476f | 1,499 | cpp | C++ | YorozuyaGSLib/source/CNationCodeStrTable.cpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | YorozuyaGSLib/source/CNationCodeStrTable.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | YorozuyaGSLib/source/CNationCodeStrTable.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | #include <CNationCodeStrTable.hpp>
START_ATF_NAMESPACE
CNationCodeStrTable::CNationCodeStrTable()
{
using org_ptr = void (WINAPIV*)(struct CNationCodeStrTable*);
(org_ptr(0x140204ad0L))(this);
};
void CNationCodeStrTable::ctor_CNationCodeStrTable()
{
using org_ptr = void (W... | 32.586957 | 75 | 0.656438 | lemkova |
3b45bf22611ddbfab35ceb9a29144266fef5de08 | 3,240 | cpp | C++ | Plugins/UPIDController/Source/UPIDController/Private/PIDController.cpp | yukilikespie/RobCoG_FleX-4.16 | a6d1e8c0abb8ac1e36c5967cb886de8c154b2948 | [
"BSD-3-Clause"
] | null | null | null | Plugins/UPIDController/Source/UPIDController/Private/PIDController.cpp | yukilikespie/RobCoG_FleX-4.16 | a6d1e8c0abb8ac1e36c5967cb886de8c154b2948 | [
"BSD-3-Clause"
] | null | null | null | Plugins/UPIDController/Source/UPIDController/Private/PIDController.cpp | yukilikespie/RobCoG_FleX-4.16 | a6d1e8c0abb8ac1e36c5967cb886de8c154b2948 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2017, Institute for Artificial Intelligence - University of Bremen
// Author: Andrei Haidu (http://haidu.eu)
#include "PIDController.h"
// Default constructor
PIDController::PIDController()
{
}
// Constructor
PIDController::PIDController(float ProportionalVal, float IntegralVal, float DerivativeVal,
f... | 19.171598 | 92 | 0.678395 | yukilikespie |
8dc733651fdb8c8b76d1b8b6948c7f664ef06090 | 2,493 | cpp | C++ | timus/task1003_b.cpp | greendwin/puzzles | 5df1175f178d0c3e1ffa765160057d90e9da37cd | [
"MIT"
] | null | null | null | timus/task1003_b.cpp | greendwin/puzzles | 5df1175f178d0c3e1ffa765160057d90e9da37cd | [
"MIT"
] | null | null | null | timus/task1003_b.cpp | greendwin/puzzles | 5df1175f178d0c3e1ffa765160057d90e9da37cd | [
"MIT"
] | null | null | null |
#include <iostream>
#include <string>
#include <vector>
#include <list>
#include <map>
#include <queue>
#include <algorithm>
#include <iterator>
#include <cassert>
#pragma warning(disable : 4018)
#ifdef ONLINE_JUDGE
typedef long long INT64;
typedef unsigned long long UINT64;
#else
typedef __int64 ... | 18.744361 | 112 | 0.503811 | greendwin |
8dc88f5b26149aaab6708a59350ed317f96aeabb | 5,657 | cpp | C++ | src/TestXE/XETInput/WindowState.cpp | devxkh/FrankE | 72faca02759b54aaec842831f3c7a051e7cf5335 | [
"MIT"
] | 11 | 2017-01-17T15:02:25.000Z | 2020-11-27T16:54:42.000Z | src/TestXE/XETInput/WindowState.cpp | devxkh/FrankE | 72faca02759b54aaec842831f3c7a051e7cf5335 | [
"MIT"
] | 9 | 2016-10-23T20:15:38.000Z | 2018-02-06T11:23:17.000Z | src/TestXE/XETInput/WindowState.cpp | devxkh/FrankE | 72faca02759b54aaec842831f3c7a051e7cf5335 | [
"MIT"
] | 2 | 2019-08-29T10:23:51.000Z | 2020-04-03T06:08:34.000Z | #include "WindowState.hpp"
#include <memory>
#include <iostream>
void WindowState::createFrameListener(void)
{
}
WindowState::WindowState(XE::XEngine& engine, bool replace)
: XE::XEState(engine, replace)
{
XE::LogManager::getSingleton().logMessage("InitState - Initialization");
//SetResource();
//------------... | 35.136646 | 149 | 0.688704 | devxkh |
8dca289b3ce427d887e1719af626f72e11d5a62d | 522 | cpp | C++ | src/render/src/sge_render/backend/dx11/Render_DX11_Common.cpp | SimpleTalkCpp/SimpleGameEngine | 755c989995d07768bdc77175404fdcb2eb69c2e6 | [
"MIT"
] | null | null | null | src/render/src/sge_render/backend/dx11/Render_DX11_Common.cpp | SimpleTalkCpp/SimpleGameEngine | 755c989995d07768bdc77175404fdcb2eb69c2e6 | [
"MIT"
] | null | null | null | src/render/src/sge_render/backend/dx11/Render_DX11_Common.cpp | SimpleTalkCpp/SimpleGameEngine | 755c989995d07768bdc77175404fdcb2eb69c2e6 | [
"MIT"
] | null | null | null | #include "Render_DX11_Common.h"
namespace sge {
VertexSemanticType DX11Util::parseDxSemanticName(StrView s) {
VertexSemanticType v;
if (s == "SV_POSITION") {
return VertexSemanticType::POSITION;
}
if (!enumTryParse(v, s)) {
throw SGE_ERROR("unknown VertexLayout_SemanticType {}", s);
}
return... | 20.076923 | 64 | 0.678161 | SimpleTalkCpp |
8dd093bfb7016552fb0124648615203ed8bf11e9 | 1,948 | cpp | C++ | source/tests/cpp_tests/destructors_errors_test.cpp | Panzerschrek/U-00DC-Sprache | eb677a66d178985433a62eb6b8a50ce2cdb14b1a | [
"BSD-3-Clause"
] | 45 | 2016-06-21T22:28:43.000Z | 2022-03-26T12:21:46.000Z | source/tests/cpp_tests/destructors_errors_test.cpp | Panzerschrek/U-00DC-Sprache | eb677a66d178985433a62eb6b8a50ce2cdb14b1a | [
"BSD-3-Clause"
] | 6 | 2020-07-12T18:00:10.000Z | 2021-11-30T11:20:14.000Z | source/tests/cpp_tests/destructors_errors_test.cpp | Panzerschrek/U-00DC-Sprache | eb677a66d178985433a62eb6b8a50ce2cdb14b1a | [
"BSD-3-Clause"
] | 5 | 2019-09-03T17:20:34.000Z | 2022-01-30T15:10:21.000Z | #include "tests.hpp"
namespace U
{
U_TEST( FunctionBodyDuplication_ForDestructors_Test0 )
{
static const char c_program_text[]=
R"(
class S
{
fn destructor(){}
fn destructor(){}
}
)";
const ErrorTestBuildResult build_result= BuildProgramWithErrors( c_program_text );
U_TEST_ASSERT( !build_result.erro... | 25.298701 | 93 | 0.752567 | Panzerschrek |
8dd193192e7f4983194d254cd907dc06a61b57fc | 375 | cpp | C++ | belts/yellow/week_3/sum_reverse_sort/sum_reverse_sort.cpp | vlasenckov/cpp_garbage_collector | 6c10dad0f780c608336ef107e9a3b6a2d4bf3909 | [
"MIT"
] | null | null | null | belts/yellow/week_3/sum_reverse_sort/sum_reverse_sort.cpp | vlasenckov/cpp_garbage_collector | 6c10dad0f780c608336ef107e9a3b6a2d4bf3909 | [
"MIT"
] | null | null | null | belts/yellow/week_3/sum_reverse_sort/sum_reverse_sort.cpp | vlasenckov/cpp_garbage_collector | 6c10dad0f780c608336ef107e9a3b6a2d4bf3909 | [
"MIT"
] | null | null | null | #include "sum_reverse_sort.h"
#include <algorithm>
int Sum(int x, int y) {
return x + y;
}
std::string Reverse(std::string s)
{
int size = s.size(), temp;
for (int i = 0; i < size/2; i++) {
temp = s[i];
s[i] = s[size-1-i];
s[size-1-i] = temp;
}
return s;
};
void Sort(std::... | 17.045455 | 38 | 0.506667 | vlasenckov |
8dd53f5cea3bfb2dd5bdd4e104227a105c762b90 | 3,185 | cpp | C++ | src/rendering/engine/engine/resource_factory.cpp | Bargor/tempest | 94837c6dcfef036827076446101e59afb7792f5d | [
"Apache-2.0",
"MIT"
] | null | null | null | src/rendering/engine/engine/resource_factory.cpp | Bargor/tempest | 94837c6dcfef036827076446101e59afb7792f5d | [
"Apache-2.0",
"MIT"
] | 1 | 2019-12-02T20:17:52.000Z | 2019-12-02T20:17:52.000Z | src/rendering/engine/engine/resource_factory.cpp | Bargor/tempest | 94837c6dcfef036827076446101e59afb7792f5d | [
"Apache-2.0",
"MIT"
] | null | null | null | // This file is part of Tempest-engine project
// Author: Karol Kontny
#include "resource_factory.h"
#include "engine/device.h"
namespace tst {
namespace engine {
resource_factory::resource_factory(device& device, application::data_loader& dataLoader)
: api::resource_factory(device.create_resource_facto... | 47.537313 | 126 | 0.626688 | Bargor |
8dd833372205c02c079c9cf4db195727d59d5110 | 3,024 | cpp | C++ | src/DTC/parallelStorageFreqDTC.cpp | Seideman-Group/chiML | 9ace5dccdbc6c173e8383f6a31ff421b4fefffdf | [
"MIT"
] | 1 | 2019-04-27T05:25:27.000Z | 2019-04-27T05:25:27.000Z | src/DTC/parallelStorageFreqDTC.cpp | Seideman-Group/chiML | 9ace5dccdbc6c173e8383f6a31ff421b4fefffdf | [
"MIT"
] | null | null | null | src/DTC/parallelStorageFreqDTC.cpp | Seideman-Group/chiML | 9ace5dccdbc6c173e8383f6a31ff421b4fefffdf | [
"MIT"
] | 2 | 2019-04-03T10:08:21.000Z | 2019-09-30T22:40:28.000Z | /** @file DTC/parallelStorageFreqDTC.cpp
* @brief A class that collects the FDTD field information across all processes to one process to Fourier transform and place it in a Grid for outputting
*
* Collects FDTD filed information from all processes, Fourier transforms it and transfers
* it into one place to be o... | 48.774194 | 218 | 0.72619 | Seideman-Group |
8dd8cb72589c86c64dfb5d0a7a1367447f695af2 | 2,433 | cpp | C++ | sample/TestLibWin32/ParticleBufferObject.cpp | CYBORUS/SDL2TK | 22ea239b57f9a6409ec8fea70c5497554df8069f | [
"Unlicense"
] | 1 | 2015-06-06T12:19:14.000Z | 2015-06-06T12:19:14.000Z | sample/TestLibWin32/ParticleBufferObject.cpp | CYBORUS/SDL2TK | 22ea239b57f9a6409ec8fea70c5497554df8069f | [
"Unlicense"
] | null | null | null | sample/TestLibWin32/ParticleBufferObject.cpp | CYBORUS/SDL2TK | 22ea239b57f9a6409ec8fea70c5497554df8069f | [
"Unlicense"
] | null | null | null | #include "ParticleBufferObject.hpp"
#include "ParticleBuilder.hpp"
#include "ParticleProgram.hpp"
#include <iostream>
static constexpr GLvoid* Offset(size_t offset)
{
return (GLfloat*)0 + offset;
}
ParticleBufferObject::ParticleBufferObject()
: _buffer(0)
, _count(0)
{
}
ParticleBufferObject::ParticleBuf... | 26.16129 | 76 | 0.697904 | CYBORUS |
8de06bf141bd7a9ac0cff678fcc40221307028d4 | 289 | cpp | C++ | 191.cpp | nitin-maharana/LeetCode | d5e99fa313df3fda65bf385f46f8a62b6d061306 | [
"MIT"
] | 4 | 2016-02-28T17:09:14.000Z | 2017-04-15T15:56:08.000Z | 191.cpp | nitin-maharana/LeetCode | d5e99fa313df3fda65bf385f46f8a62b6d061306 | [
"MIT"
] | null | null | null | 191.cpp | nitin-maharana/LeetCode | d5e99fa313df3fda65bf385f46f8a62b6d061306 | [
"MIT"
] | null | null | null | /*
* Written by Nitin Kumar Maharana
* nitin.maharana@gmail.com
*/
class Solution {
public:
int hammingWeight(uint32_t n) {
int count = 0;
while(n)
{
count++;
n = n & (n-1);
}
return count;
}
};
| 14.45 | 35 | 0.439446 | nitin-maharana |
8de327d1313d53d56138416aec6145c5e6f94dfb | 702 | cpp | C++ | NoExceptAuto/NoExceptAuto.cpp | jbcoe/CppSandbox | 574dc31bbd3640a8cf1b7642c4a449bee687cce5 | [
"MIT"
] | 7 | 2015-01-18T13:30:09.000Z | 2021-08-21T19:50:26.000Z | NoExceptAuto/NoExceptAuto.cpp | jbcoe/CppSandbox | 574dc31bbd3640a8cf1b7642c4a449bee687cce5 | [
"MIT"
] | 1 | 2016-03-13T21:26:37.000Z | 2016-03-13T21:26:37.000Z | NoExceptAuto/NoExceptAuto.cpp | jbcoe/CppSandbox | 574dc31bbd3640a8cf1b7642c4a449bee687cce5 | [
"MIT"
] | 1 | 2016-02-16T04:56:25.000Z | 2016-02-16T04:56:25.000Z | #include <iostream>
int f()
{
return 1;
}
int noexcept_f() noexcept
{
return 1;
}
auto g()
{
return noexcept_f();
}
auto conditional_noexcept_g() noexcept(noexcept(noexcept_f()))
{
return noexcept_f();
}
int main(int argc, char* argv[])
{
std::cout << std::boolalpha << "f is noexcept: " << noexcept(f())
... | 20.057143 | 71 | 0.582621 | jbcoe |
8de3df29716d3e64c625ae2493b60263efab1b73 | 261,446 | hpp | C++ | flite/lang/us_rms/us_rms_cg_f0_trees.hpp | Barath-Kannan/flite | 236f91a9a1e60fd25f1deed6d48022567cd7100f | [
"Apache-2.0"
] | 7 | 2017-12-10T23:02:22.000Z | 2021-08-05T21:12:11.000Z | flite/lang/us_rms/us_rms_cg_f0_trees.hpp | Barath-Kannan/flite | 236f91a9a1e60fd25f1deed6d48022567cd7100f | [
"Apache-2.0"
] | null | null | null | flite/lang/us_rms/us_rms_cg_f0_trees.hpp | Barath-Kannan/flite | 236f91a9a1e60fd25f1deed6d48022567cd7100f | [
"Apache-2.0"
] | 3 | 2018-10-28T03:47:09.000Z | 2020-06-04T08:54:23.000Z | #pragma once
#include "flite/utils/val_const.hpp"
DEF_STATIC_CONST_VAL_FLOAT(val_0000, 0.556047);
DEF_STATIC_CONST_VAL_FLOAT(val_0001, 110.412003);
#define CTNODE_cmu_us_rms_f0_zh_204_NO_0000 2
DEF_STATIC_CONST_VAL_FLOAT(val_0002, 97.185600);
DEF_STATIC_CONST_VAL_FLOAT(val_0003, 100.119003);
DEF_STATIC_CONST_VAL_FLOA... | 47.656945 | 49 | 0.878495 | Barath-Kannan |
8de6b8f2da582c498765deac51c0c290866ece8f | 1,530 | cpp | C++ | g.cpp | llwwns/atcoder-past-3 | a022382cacd5a726909ca844ce885d7ae598cf1c | [
"MIT"
] | null | null | null | g.cpp | llwwns/atcoder-past-3 | a022382cacd5a726909ca844ce885d7ae598cf1c | [
"MIT"
] | null | null | null | g.cpp | llwwns/atcoder-past-3 | a022382cacd5a726909ca844ce885d7ae598cf1c | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <queue>
#include <tuple>
using namespace std;
int main() {
int n, x, y;
cin >> n >> x >> y;
vector<vector<bool>> p(405, vector<bool>(405, false));
for (int i = 0; i < n; i++) {
int px, py;
cin >> px >> py;
p[px + 202][py + 202] = t... | 27.321429 | 86 | 0.388235 | llwwns |
8de8c619615594f648376d9bad5c87a6a4d7dc39 | 274 | cpp | C++ | src/pola/gui/View.cpp | lij0511/pandora | 5988618f29d2f1ba418ef54a02e227903c1e7108 | [
"Apache-2.0"
] | null | null | null | src/pola/gui/View.cpp | lij0511/pandora | 5988618f29d2f1ba418ef54a02e227903c1e7108 | [
"Apache-2.0"
] | null | null | null | src/pola/gui/View.cpp | lij0511/pandora | 5988618f29d2f1ba418ef54a02e227903c1e7108 | [
"Apache-2.0"
] | null | null | null | /*
* View.cpp
*
* Created on: 2016年5月25日
* Author: lijing
*/
#include "pola/gui/View.h"
namespace pola {
namespace gui {
View::View() {
}
View::~View() {
}
void View::onDraw(graphic::GraphicContext* graphic) {
}
} /* namespace gui */
} /* namespace pola */
| 11.416667 | 53 | 0.60219 | lij0511 |
8df61ce703f6b4cc70ed365bb85048e83a4f4feb | 3,152 | hpp | C++ | src/seed_tracker.hpp | skovaka/nanopore_aligner | 0ebd606d941db0bb82f14c17b453f27269a38716 | [
"MIT"
] | 489 | 2018-11-02T14:04:10.000Z | 2022-03-25T07:31:59.000Z | src/seed_tracker.hpp | skovaka/nanopore_aligner | 0ebd606d941db0bb82f14c17b453f27269a38716 | [
"MIT"
] | 39 | 2019-11-11T00:49:51.000Z | 2022-03-22T18:04:01.000Z | src/seed_tracker.hpp | skovaka/nanopore_aligner | 0ebd606d941db0bb82f14c17b453f27269a38716 | [
"MIT"
] | 45 | 2018-11-08T20:41:21.000Z | 2022-03-15T00:53:28.000Z | /* MIT License
*
* Copyright (c) 2018 Sam Kovaka <skovaka@gmail.com>
*
* 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... | 27.893805 | 81 | 0.708439 | skovaka |
8df794657ea1e8fd0e2b6a33f6c7ce1c0ce1cd09 | 671 | hh | C++ | hefur/scrape-response.hh | sot-tech/hefur | 6307015793ef4b24f0124c393c0e6f3a573a3590 | [
"MIT"
] | 126 | 2015-02-16T13:14:03.000Z | 2022-03-27T14:46:19.000Z | hefur/scrape-response.hh | sot-tech/hefur | 6307015793ef4b24f0124c393c0e6f3a573a3590 | [
"MIT"
] | 35 | 2015-03-31T20:20:34.000Z | 2022-02-02T13:55:36.000Z | hefur/scrape-response.hh | sot-tech/hefur | 6307015793ef4b24f0124c393c0e6f3a573a3590 | [
"MIT"
] | 31 | 2015-05-28T02:04:48.000Z | 2022-02-02T13:48:03.000Z | #pragma once
#include <string>
#include <vector>
#include <mimosa/ref-countable.hh>
#include "info-hash.hh"
#include "namespace-helper.hh"
namespace hefur {
/**
* This class represents a scrape response.
* It is used by both http(s) server and upd server.
*/
struct ScrapeResponse : public m::RefCo... | 20.333333 | 67 | 0.643815 | sot-tech |
8dfaf13cc05e1dfeded6c3df3248b9cf8d9854cb | 6,139 | hpp | C++ | Controllers/UART/stm32f1_UART.hpp | 7bnx/Embedded | afb83151500b27066b571336c32aaddd9fa97fd7 | [
"MIT"
] | null | null | null | Controllers/UART/stm32f1_UART.hpp | 7bnx/Embedded | afb83151500b27066b571336c32aaddd9fa97fd7 | [
"MIT"
] | null | null | null | Controllers/UART/stm32f1_UART.hpp | 7bnx/Embedded | afb83151500b27066b571336c32aaddd9fa97fd7 | [
"MIT"
] | null | null | null | //----------------------------------------------------------------------------------
// Author: Semyon Ivanov
// e-mail: agreement90@mail.ru
// github: https://github.com/7bnx/Embedded
// Description: Driver for UART. STM32F1-series
// TODO:
//----------------------------------------------------... | 34.488764 | 104 | 0.653364 | 7bnx |
8dfb853f14d950344cfe17a994815eb3fb5015d6 | 1,997 | cpp | C++ | Engine/sdk/src/lwDirectoryBrowser.cpp | ruuuubi/corsairs-client | ddbcd293d6ef3f58ff02290c02382cbb7e0939a2 | [
"Apache-2.0"
] | 1 | 2021-06-14T09:34:08.000Z | 2021-06-14T09:34:08.000Z | Engine/sdk/src/lwDirectoryBrowser.cpp | ruuuubi/corsairs-client | ddbcd293d6ef3f58ff02290c02382cbb7e0939a2 | [
"Apache-2.0"
] | null | null | null | Engine/sdk/src/lwDirectoryBrowser.cpp | ruuuubi/corsairs-client | ddbcd293d6ef3f58ff02290c02382cbb7e0939a2 | [
"Apache-2.0"
] | null | null | null | //
#include "lwDirectoryBrowser.h"
LW_BEGIN
// lwDirectoryBrowser
LW_STD_IMPLEMENTATION(lwDirectoryBrowser)
lwDirectoryBrowser::lwDirectoryBrowser()
: _proc(0), _param(0)
{
}
LW_RESULT lwDirectoryBrowser::_Go(const char* file, DWORD flag)
{
LW_RESULT ret = LW_RET_OK;
WIN32_FIND_DATA wfd;
HANDLE hand... | 20.377551 | 99 | 0.522784 | ruuuubi |
5c03011bc9dfc923634572952542be6a6434e68b | 4,381 | hh | C++ | trex/utils/TREXversion.hh | miatauro/trex2-agent | d896f8335f3194237a8bba49949e86f5488feddb | [
"BSD-3-Clause"
] | null | null | null | trex/utils/TREXversion.hh | miatauro/trex2-agent | d896f8335f3194237a8bba49949e86f5488feddb | [
"BSD-3-Clause"
] | null | null | null | trex/utils/TREXversion.hh | miatauro/trex2-agent | d896f8335f3194237a8bba49949e86f5488feddb | [
"BSD-3-Clause"
] | null | null | null | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2011, MBARI.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions... | 33.7 | 81 | 0.654645 | miatauro |
5c05bda0a11c0cbacefed0d2d310cb395808b744 | 6,900 | hxx | C++ | opencascade/IGESDraw_ConnectPoint.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | opencascade/IGESDraw_ConnectPoint.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | opencascade/IGESDraw_ConnectPoint.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | // Created on: 1993-01-11
// Created by: CKY / Contract Toubro-Larsen ( Niraj RANGWALA )
// Copyright (c) 1993-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify... | 38.333333 | 587 | 0.764058 | mgreminger |
5c08ce28e508537c679695090e5706aa0ba58a56 | 1,950 | hpp | C++ | xxhr/session.hpp | jamesgrantham/xxhr | 0d33abce7e87bb8b78141fcf6f918158a436660c | [
"MIT"
] | 15 | 2017-03-13T08:19:27.000Z | 2022-02-02T21:18:57.000Z | xxhr/session.hpp | jamesgrantham/xxhr | 0d33abce7e87bb8b78141fcf6f918158a436660c | [
"MIT"
] | 6 | 2018-06-29T12:00:12.000Z | 2021-12-17T19:45:47.000Z | xxhr/session.hpp | jamesgrantham/xxhr | 0d33abce7e87bb8b78141fcf6f918158a436660c | [
"MIT"
] | 3 | 2018-09-28T00:37:29.000Z | 2020-12-04T09:05:23.000Z | #ifndef XXHR_SESSION_H
#define XXHR_SESSION_H
#include <cstdint>
#include <memory>
#include "auth.hpp"
#include "body.hpp"
#include "cookies.hpp"
#include "xxhrtypes.hpp"
#include "digest.hpp"
#include "max_redirects.hpp"
#include "multipart.hpp"
#include "parameters.hpp"
#include "response.hpp"
#include "timeout.hpp... | 25 | 60 | 0.73641 | jamesgrantham |
5c099ecdff969eb49657fa26055ec0e53a52cc6f | 3,865 | hpp | C++ | src/parsers/parser_blat.hpp | danielnavarrogomez/Anaquin | 563dbeb25aff15a55e4309432a967812cbfa0c98 | [
"BSD-3-Clause"
] | null | null | null | src/parsers/parser_blat.hpp | danielnavarrogomez/Anaquin | 563dbeb25aff15a55e4309432a967812cbfa0c98 | [
"BSD-3-Clause"
] | null | null | null | src/parsers/parser_blat.hpp | danielnavarrogomez/Anaquin | 563dbeb25aff15a55e4309432a967812cbfa0c98 | [
"BSD-3-Clause"
] | null | null | null | #ifndef PARSER_BLAT_HPP
#define PARSER_BLAT_HPP
#include <functional>
#include "data/data.hpp"
#include "data/reader.hpp"
#include "data/tokens.hpp"
#include "parsers/parser.hpp"
#include <boost/algorithm/string.hpp>
#include <iostream>
namespace Anaquin
{
struct ParserBlat
{
enum Field
{
... | 27.805755 | 74 | 0.398189 | danielnavarrogomez |
5c0ae9e77e1f600db070b10913a9ef27abb15c09 | 843 | cpp | C++ | runtime/src/aderite/scripting/InternalCalls.cpp | nfwGytautas/aderite | 87a6a5c24a6dcaca80088cb7a4fca1f846a7f22c | [
"MIT"
] | null | null | null | runtime/src/aderite/scripting/InternalCalls.cpp | nfwGytautas/aderite | 87a6a5c24a6dcaca80088cb7a4fca1f846a7f22c | [
"MIT"
] | null | null | null | runtime/src/aderite/scripting/InternalCalls.cpp | nfwGytautas/aderite | 87a6a5c24a6dcaca80088cb7a4fca1f846a7f22c | [
"MIT"
] | null | null | null | #include "InternalCalls.hpp"
#include "aderite/scripting/internals/ScriptAudio.hpp"
#include "aderite/scripting/internals/ScriptComponents.hpp"
#include "aderite/scripting/internals/ScriptDebug.hpp"
#include "aderite/scripting/internals/ScriptEntity.hpp"
#include "aderite/scripting/internals/ScriptInput.hpp"
#include ... | 27.193548 | 64 | 0.766311 | nfwGytautas |
5c0f1d6b70455ebc9f373d60620e9c2911c86c1e | 1,054 | cc | C++ | game/src/gui/app/layout_helper.cc | chunseoklee/mengde | 7261e45dab9e02d4bf18b4542767f4b50a5616a0 | [
"MIT"
] | 1 | 2018-03-02T03:36:59.000Z | 2018-03-02T03:36:59.000Z | game/src/gui/app/layout_helper.cc | chunseoklee/mengde | 7261e45dab9e02d4bf18b4542767f4b50a5616a0 | [
"MIT"
] | 1 | 2018-04-17T01:43:02.000Z | 2018-04-17T01:43:02.000Z | game/src/gui/app/layout_helper.cc | chunseoklee/mengde | 7261e45dab9e02d4bf18b4542767f4b50a5616a0 | [
"MIT"
] | null | null | null | #include "layout_helper.h"
#include "gui/foundation/rect.h"
#include "util/common.h"
namespace mengde {
namespace gui {
namespace app {
namespace layout {
Vec2D CalcPositionNearUnit(Vec2D element_size, Vec2D frame_size, Vec2D camera_coords, Vec2D unit_cell) {
const int kCellSize = 48; // FIXME hardcoded cell siz... | 30.114286 | 104 | 0.6537 | chunseoklee |
5c164135be53b45a0b8dd74ce9176453fbcd18c7 | 639 | cpp | C++ | ch16/exer16_51.cpp | imshenzhuo/CppPrimer | 87c74c0a36223e86571c2aedd9da428c06b04f4d | [
"CC0-1.0"
] | 3 | 2019-09-21T13:03:57.000Z | 2020-04-05T02:42:53.000Z | ch16/exer16_51.cpp | imshenzhuo/CppPrimer | 87c74c0a36223e86571c2aedd9da428c06b04f4d | [
"CC0-1.0"
] | null | null | null | ch16/exer16_51.cpp | imshenzhuo/CppPrimer | 87c74c0a36223e86571c2aedd9da428c06b04f4d | [
"CC0-1.0"
] | null | null | null | /*************************************************************************
> File Name: exer16_51.cpp
> Author: shenzhuo
> Mail: im.shenzhuo@gmail.com
> Created Time: 2019年09月26日 星期四 09时40分28秒
************************************************************************/
#include<iostream>
#include<string... | 23.666667 | 74 | 0.463224 | imshenzhuo |
5c21de73201313ec1b80293568b94fe22b358a62 | 612 | hpp | C++ | src/NetWidgets/ProgressBar.hpp | frc3512/DriverStationDisplay | c6b5eb263ec1d1701a3d48a915b7b106c982323d | [
"BSD-3-Clause"
] | null | null | null | src/NetWidgets/ProgressBar.hpp | frc3512/DriverStationDisplay | c6b5eb263ec1d1701a3d48a915b7b106c982323d | [
"BSD-3-Clause"
] | null | null | null | src/NetWidgets/ProgressBar.hpp | frc3512/DriverStationDisplay | c6b5eb263ec1d1701a3d48a915b7b106c982323d | [
"BSD-3-Clause"
] | 1 | 2017-03-14T02:13:29.000Z | 2017-03-14T02:13:29.000Z | // Copyright (c) 2012-2018 FRC Team 3512. All Rights Reserved.
#pragma once
#include <string>
#include <QProgressBar>
#include <QVBoxLayout>
#include "NetWidget.hpp"
#include "Text.hpp"
/**
* Provides an interface to a progress bar
*/
class ProgressBar : public QWidget, public NetWidget {
Q_OBJECT
public:
... | 18 | 68 | 0.697712 | frc3512 |
5c21e6f13de9912235666e55e22abcf74401ac26 | 1,955 | cpp | C++ | gui/src/models/dialogs-list/dialoginfo.cpp | sqglobe/SecureDialogues | bde56c7a62fb72b1cdfba8cebc0a770157b5f751 | [
"MIT"
] | 3 | 2019-07-05T12:01:36.000Z | 2021-03-19T22:48:48.000Z | gui/src/models/dialogs-list/dialoginfo.cpp | sqglobe/SecureDialogues | bde56c7a62fb72b1cdfba8cebc0a770157b5f751 | [
"MIT"
] | 41 | 2019-11-26T18:59:54.000Z | 2020-05-01T10:52:47.000Z | gui/src/models/dialogs-list/dialoginfo.cpp | sqglobe/SecureDialogues | bde56c7a62fb72b1cdfba8cebc0a770157b5f751 | [
"MIT"
] | 3 | 2019-05-21T17:48:16.000Z | 2021-03-19T22:48:49.000Z | #include "dialoginfo.h"
#include "primitives/contact.h"
std::string DialogInfo::name() const {
return mName;
}
std::string DialogInfo::address() const {
return mAddress;
}
std::string DialogInfo::moniker() const {
return mMoniker;
}
std::string DialogInfo::dialogId() const {
return mDialogId;
}
std::strin... | 24.746835 | 71 | 0.711509 | sqglobe |
5c298102243dec2849eb61a190ac353c5315f5e6 | 272 | hpp | C++ | include/output/Mixer.hpp | medium-endian/multipid | 41ab0c810de04fc48923edf31e3c971826abbaf3 | [
"MIT"
] | 15 | 2018-06-25T23:06:57.000Z | 2022-03-31T06:00:35.000Z | include/output/Mixer.hpp | medium-endian/multipid | 41ab0c810de04fc48923edf31e3c971826abbaf3 | [
"MIT"
] | 3 | 2017-11-20T23:00:03.000Z | 2018-01-19T16:22:39.000Z | include/output/Mixer.hpp | medium-endian/multipid | 41ab0c810de04fc48923edf31e3c971826abbaf3 | [
"MIT"
] | 1 | 2020-08-24T13:24:39.000Z | 2020-08-24T13:24:39.000Z | #ifndef MIXER_H
#define MIXER_H
class Mixer {
public:
float throttle_volume;
float roll_volume;
float pitch_volume;
float yaw_volume;
Mixer(float thr_vol, float roll_vol, float pitch_vol, float yaw_vol);
};
#endif //MIXER_H
| 17 | 77 | 0.654412 | medium-endian |
5c29e44aff1e4903ec5714907aa7d61f8cf0283d | 1,352 | cpp | C++ | Source/Fabric/Private/MoPubFunctions.cpp | getsetgames/Fabric | c57937511ecd700a28ba088e26e1a61d794c8a66 | [
"MIT"
] | 13 | 2015-06-17T14:39:37.000Z | 2021-12-02T15:21:19.000Z | Source/Fabric/Private/MoPubFunctions.cpp | denfrost/Fabric | c57937511ecd700a28ba088e26e1a61d794c8a66 | [
"MIT"
] | 2 | 2015-06-17T12:13:17.000Z | 2016-11-03T02:40:23.000Z | Source/Fabric/Private/MoPubFunctions.cpp | denfrost/Fabric | c57937511ecd700a28ba088e26e1a61d794c8a66 | [
"MIT"
] | 10 | 2015-06-17T14:43:56.000Z | 2020-07-01T02:11:07.000Z | //
// Created by Derek van Vliet on 2014-12-10.
// Copyright (c) 2015 Get Set Games Inc. All rights reserved.
//
#include "MoPubFunctions.h"
#include "FabricPrivatePCH.h"
#if PLATFORM_IOS
static NSMutableDictionary* AdCache = [NSMutableDictionary dictionary];
#endif
bool UMoPubFunctions::MoPubHasInterstitial(FStri... | 26 | 133 | 0.782544 | getsetgames |
5c2b656adc28b905c8d41693ec76a04dd3f6b74e | 384 | cpp | C++ | Way_Too_Long_Words.cpp | amit9amarwanshi/The_Quiet_Revolution | 7713787ef27c0c144e4c2d852d826ee1c4176a95 | [
"MIT"
] | null | null | null | Way_Too_Long_Words.cpp | amit9amarwanshi/The_Quiet_Revolution | 7713787ef27c0c144e4c2d852d826ee1c4176a95 | [
"MIT"
] | null | null | null | Way_Too_Long_Words.cpp | amit9amarwanshi/The_Quiet_Revolution | 7713787ef27c0c144e4c2d852d826ee1c4176a95 | [
"MIT"
] | null | null | null | #include <iostream>
#include<string>
using namespace std;
int main()
{
unsigned int n,x;
cin>>n;
if(n<101)
{
while(n--)
{
string s;
cin>>s;
x=s.length();
if(x<101)
{ if(x>10)
{
cout<<s[0]<<x-2<<s[x-1];
}
else
{
cout<<... | 11.636364 | 35 | 0.372396 | amit9amarwanshi |
5c2e494f3b64838cca4aa1da5583aaf9eaab496b | 2,543 | cc | C++ | src/count_bits_set.cc | OpenEye-Contrib/Flush | 71fc76cdf3348006d13d53a26fd0a6e1bc55addd | [
"BSD-3-Clause"
] | 5 | 2016-05-11T09:09:29.000Z | 2022-03-30T11:06:19.000Z | src/count_bits_set.cc | OpenEye-Contrib/Flush | 71fc76cdf3348006d13d53a26fd0a6e1bc55addd | [
"BSD-3-Clause"
] | null | null | null | src/count_bits_set.cc | OpenEye-Contrib/Flush | 71fc76cdf3348006d13d53a26fd0a6e1bc55addd | [
"BSD-3-Clause"
] | 2 | 2018-03-19T21:59:43.000Z | 2019-01-31T03:10:50.000Z | // take a flush fp file and write out the number of bits set in each cpd.
// takes 1 command line argument, the name of the fp file.
#include <fstream>
#include <iostream>
#include <stdio.h>
#include "ByteSwapper.H"
#include "Fingerprint.H"
using namespace std;
#include "AbstractPoint.H"
int AbstractPoint::next_seq_... | 28.897727 | 78 | 0.613055 | OpenEye-Contrib |
5c32c4a33031552d792c472253b2bc82610af017 | 33,992 | cpp | C++ | src/RTL/Component/ModifierChain/IFXModifierChainState.cpp | alemuntoni/u3d | 7907b907464a2db53dac03fdc137dcb46d447513 | [
"Apache-2.0"
] | 44 | 2016-05-06T00:47:11.000Z | 2022-02-11T06:51:37.000Z | src/RTL/Component/ModifierChain/IFXModifierChainState.cpp | alemuntoni/u3d | 7907b907464a2db53dac03fdc137dcb46d447513 | [
"Apache-2.0"
] | 3 | 2016-06-27T12:37:31.000Z | 2021-03-24T12:39:48.000Z | src/RTL/Component/ModifierChain/IFXModifierChainState.cpp | alemuntoni/u3d | 7907b907464a2db53dac03fdc137dcb46d447513 | [
"Apache-2.0"
] | 15 | 2016-02-28T11:08:30.000Z | 2021-06-01T03:32:01.000Z | //***************************************************************************
//
// Copyright (c) 1999 - 2006 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// ... | 25.829787 | 112 | 0.705695 | alemuntoni |
5c420197519741bd5d396af42b2a59c22254ac3b | 3,228 | cpp | C++ | src/org/apache/poi/util/ShortField.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/util/ShortField.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/util/ShortField.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /POI/java/org/apache/poi/util/ShortField.java
#include <org/apache/poi/util/ShortField.hpp>
#include <java/lang/ArrayIndexOutOfBoundsException.hpp>
#include <java/lang/String.hpp>
#include <java/lang/StringBuilder.hpp>
#include <org/apache/poi/util/LittleEndian.hpp>
poi::util::ShortField::ShortField... | 28.069565 | 152 | 0.703841 | pebble2015 |
5c42ca7bb0f4595b1a2817fda887cf080c6f291c | 1,119 | cpp | C++ | beecrowd/C++/basico/1021.cpp | MateusdeNovaesSantos/Tecnologias | 0a4d55f82942e33ed86202c58596f03d0dddbf6d | [
"MIT"
] | null | null | null | beecrowd/C++/basico/1021.cpp | MateusdeNovaesSantos/Tecnologias | 0a4d55f82942e33ed86202c58596f03d0dddbf6d | [
"MIT"
] | null | null | null | beecrowd/C++/basico/1021.cpp | MateusdeNovaesSantos/Tecnologias | 0a4d55f82942e33ed86202c58596f03d0dddbf6d | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(){
double N;
long int NINT;
cin >> N;
N = N * 100;
NINT = N;
cout << "NOTAS:" << endl;
cout << NINT / 10000 << " nota(s) de R$ 100.00" << endl;
NINT %= 10000;
cout << NINT / 5000 << " nota(s) de R$ 50.00" << endl;
NINT ... | 16.701493 | 60 | 0.449508 | MateusdeNovaesSantos |
5c45b1f6fa955a76c9ba95c608399dc707462bd6 | 2,874 | hpp | C++ | lib/headers/Optimisation/LevenbergMarquardt.hpp | JackHunt/GaussianProcess | 64820259608229ebc324904ec2f6213f205af804 | [
"BSD-3-Clause"
] | null | null | null | lib/headers/Optimisation/LevenbergMarquardt.hpp | JackHunt/GaussianProcess | 64820259608229ebc324904ec2f6213f205af804 | [
"BSD-3-Clause"
] | null | null | null | lib/headers/Optimisation/LevenbergMarquardt.hpp | JackHunt/GaussianProcess | 64820259608229ebc324904ec2f6213f205af804 | [
"BSD-3-Clause"
] | null | null | null | /*
BSD 3-Clause License
Copyright (c) 2020, Jack Miles Hunt
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 conditi... | 34.214286 | 78 | 0.68302 | JackHunt |
5c4e24a82ebe72dfde7af5dfcec8238079f3dc1c | 964 | cpp | C++ | test/std/input.output/iostreams.base/ios/basic.ios.members/rdbuf_streambuf.pass.cpp | ontio/libcxx-mirror | 4b4f32ea383deb28911f5618126c6ea6c110b5e4 | [
"Apache-2.0"
] | null | null | null | test/std/input.output/iostreams.base/ios/basic.ios.members/rdbuf_streambuf.pass.cpp | ontio/libcxx-mirror | 4b4f32ea383deb28911f5618126c6ea6c110b5e4 | [
"Apache-2.0"
] | 1 | 2019-04-21T16:53:33.000Z | 2019-04-21T17:15:25.000Z | test/std/input.output/iostreams.base/ios/basic.ios.members/rdbuf_streambuf.pass.cpp | ontio/libcxx-mirror | 4b4f32ea383deb28911f5618126c6ea6c110b5e4 | [
"Apache-2.0"
] | 1 | 2020-09-09T07:40:32.000Z | 2020-09-09T07:40:32.000Z | //===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 26.777778 | 80 | 0.529046 | ontio |
5c52fdef8f92ca574f0357e0caa4b8a4e4624efb | 363 | hpp | C++ | frontend/typing/normalisation.hpp | NicolaiLS/becarre | cf23e80041f856f50b9f96c087819780dfe1792c | [
"MIT"
] | null | null | null | frontend/typing/normalisation.hpp | NicolaiLS/becarre | cf23e80041f856f50b9f96c087819780dfe1792c | [
"MIT"
] | null | null | null | frontend/typing/normalisation.hpp | NicolaiLS/becarre | cf23e80041f856f50b9f96c087819780dfe1792c | [
"MIT"
] | null | null | null | #if !defined(BECARRE_FRONTEND_TYPING_NORMALISATION_HPP)
#define BECARRE_FRONTEND_TYPING_NORMALISATION_HPP
#include <optional>
namespace becarre::frontend::typing
{
struct Type;
namespace normalisation
{
void apply(Type &);
} // namespace normalisation
} // namespace becarre::frontend::typing
#endif // !defined(... | 17.285714 | 61 | 0.804408 | NicolaiLS |
5c53076c74b580736f75fc95f36cf1da164c6427 | 8,160 | cpp | C++ | libadb/src/libadb/api/channel/channel-api.cpp | faserg1/adb | 65507dc17589ac6ec00caf2ecd80f6dbc4026ad4 | [
"MIT"
] | 1 | 2022-03-10T15:14:13.000Z | 2022-03-10T15:14:13.000Z | libadb/src/libadb/api/channel/channel-api.cpp | faserg1/adb | 65507dc17589ac6ec00caf2ecd80f6dbc4026ad4 | [
"MIT"
] | 9 | 2022-03-07T21:00:08.000Z | 2022-03-15T23:14:52.000Z | libadb/src/libadb/api/channel/channel-api.cpp | faserg1/adb | 65507dc17589ac6ec00caf2ecd80f6dbc4026ad4 | [
"MIT"
] | null | null | null | #include <libadb/api/channel/channel-api.hpp>
#include <libadb/api/context/context.hpp>
#include <nlohmann/json.hpp>
#include <libadb/api/auth/token-bot.hpp>
#include <libadb/api/utils/fill-reason.hpp>
#include <libadb/api/utils/message-session.hpp>
#include <libadb/api/utils/read-response.hpp>
#include <fmt/core.h>
#i... | 37.090909 | 137 | 0.673039 | faserg1 |
5c5682b447ab378307987a121bfaabc74b405d8d | 149 | cpp | C++ | source/lib/memory/unused_memory_fea0_feff.cpp | olduf/gb-emu | 37a2195fa67a2656cc11541eb75b1f7a548057b2 | [
"Unlicense"
] | null | null | null | source/lib/memory/unused_memory_fea0_feff.cpp | olduf/gb-emu | 37a2195fa67a2656cc11541eb75b1f7a548057b2 | [
"Unlicense"
] | null | null | null | source/lib/memory/unused_memory_fea0_feff.cpp | olduf/gb-emu | 37a2195fa67a2656cc11541eb75b1f7a548057b2 | [
"Unlicense"
] | null | null | null | #include "lib/memory/unused_memory_fea0_feff.hpp"
namespace gb_lib {
uint8_t UnusedMemoryFEA0_FEFF::getByte(uint16_t address)
{
return 0;
}
}
| 13.545455 | 56 | 0.765101 | olduf |
5c58eaae8401922d30075897bb5bc28bde474f7a | 867 | cpp | C++ | src/deco.cpp | mrnoda/first-demo | d89b6f4fbe02073aab16365d9f57eae4a695e554 | [
"MIT"
] | null | null | null | src/deco.cpp | mrnoda/first-demo | d89b6f4fbe02073aab16365d9f57eae4a695e554 | [
"MIT"
] | 2 | 2015-04-18T19:58:14.000Z | 2015-04-18T19:59:00.000Z | src/deco.cpp | mrnoda/first-demo | d89b6f4fbe02073aab16365d9f57eae4a695e554 | [
"MIT"
] | null | null | null | #include <stdexcept>
#include "deco.h"
#include "utility.h"
namespace effects
{
Deco::Deco(sf::RenderWindow &window)
: Effect(window), border_colour_(sf::Color(100, 20, 100))
{
auto window_size = window.getSize();
auto thickness = window_size.y / 60.0f;
sf::RectangleShape bord... | 21.146341 | 75 | 0.580161 | mrnoda |
5c59b70c8d06b7c1b020f24832aa684e9c943679 | 2,132 | cpp | C++ | udsc2/src/api/phoneme.cpp | utkucandogan/udsc2 | ced007c0760ce0c3a4b2fbdd14672e38bd58d6d6 | [
"Apache-2.0"
] | null | null | null | udsc2/src/api/phoneme.cpp | utkucandogan/udsc2 | ced007c0760ce0c3a4b2fbdd14672e38bd58d6d6 | [
"Apache-2.0"
] | null | null | null | udsc2/src/api/phoneme.cpp | utkucandogan/udsc2 | ced007c0760ce0c3a4b2fbdd14672e38bd58d6d6 | [
"Apache-2.0"
] | null | null | null | #include <udsc2/phoneme/phoneme.h>
#include "phoneme.hpp"
#include "util/bit.h"
#include <limits>
namespace udsc2::api
{
int phoneme_difference(const api::PhonemeProperties pLeft, const api::PhonemeProperties pRight,
const api::PhonemeProperties ignore)
{
// These are tecnical 'Phonemes' s... | 30.898551 | 95 | 0.583959 | utkucandogan |
5c5b199d7a305e11547eae8647633d9fb5de9575 | 463 | cpp | C++ | query/scorer/BM25.cpp | Da-Huang/Search-Engine | 5f1faed6c49adb7f3cc2199c33dbe6bc7094c932 | [
"Apache-2.0"
] | 1 | 2015-02-07T13:11:43.000Z | 2015-02-07T13:11:43.000Z | query/scorer/BM25.cpp | Da-Huang/Search-Engine | 5f1faed6c49adb7f3cc2199c33dbe6bc7094c932 | [
"Apache-2.0"
] | 1 | 2015-04-14T05:04:19.000Z | 2015-04-14T05:04:19.000Z | query/scorer/BM25.cpp | Da-Huang/Search-Engine | 5f1faed6c49adb7f3cc2199c33dbe6bc7094c932 | [
"Apache-2.0"
] | null | null | null | #include <cmath>
#include <BM25.h>
double BM25::R(size_t tf, size_t dl, double avgdl) {
const double K = k1 * (1 - b + b * dl / avgdl);
return tf * (k1 + 1) / (tf + K);
}
double BM25::idf(size_t df, size_t DOC_NUM) {
return log(1 +
(DOC_NUM - df + double(0.5)) /
(df + double(0.5))
);
return 0;
}
double ... | 18.52 | 52 | 0.598272 | Da-Huang |
5c635061262edc0077c26515342ef1dc851a84a7 | 1,107 | cc | C++ | src/Basevector.cc | Amjadhpc/w2rap-contigger | 221f6cabedd19743046ee5dec18e6feb85130218 | [
"MIT"
] | 48 | 2016-04-26T16:52:59.000Z | 2022-01-15T09:18:17.000Z | src/Basevector.cc | Amjadhpc/w2rap-contigger | 221f6cabedd19743046ee5dec18e6feb85130218 | [
"MIT"
] | 45 | 2016-04-27T08:20:56.000Z | 2022-02-14T07:47:11.000Z | src/Basevector.cc | Amjadhpc/w2rap-contigger | 221f6cabedd19743046ee5dec18e6feb85130218 | [
"MIT"
] | 15 | 2016-05-11T14:35:25.000Z | 2022-01-15T09:18:45.000Z | ///////////////////////////////////////////////////////////////////////////////
// SOFTWARE COPYRIGHT NOTICE AGREEMENT //
// This software and its documentation are copyright (2010) by the //
// Broad Institute. All rights are reserved. This software is supplied //
... | 36.9 | 79 | 0.558266 | Amjadhpc |
5c6eb51173b7bcba9c2dc0f5e1c0eecb427b4e23 | 669 | cpp | C++ | linear-list/array/rotate_image.cpp | zhangxin23/leetcode | 4c8fc60e59448045a3e880caaedd0486164e68e7 | [
"MIT"
] | 1 | 2015-07-15T07:31:42.000Z | 2015-07-15T07:31:42.000Z | linear-list/array/rotate_image.cpp | zhangxin23/leetcode | 4c8fc60e59448045a3e880caaedd0486164e68e7 | [
"MIT"
] | null | null | null | linear-list/array/rotate_image.cpp | zhangxin23/leetcode | 4c8fc60e59448045a3e880caaedd0486164e68e7 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
/**
* You are given an n × n 2D matrix representing an image.
* Rotate the image by 90 degrees (clockwise).
* Follow up: Could you do this in-place?
* */
class Solution {
public:
void rotate(vector<vector<int> >& matrix) {
int n = matrix.size... | 22.3 | 65 | 0.472347 | zhangxin23 |
5c7264079ac15c2c01c4c6c91a060c8fe48eae33 | 1,235 | hpp | C++ | includes/MIP_constants.hpp | xmuriqui/muriqui | ff1492c70e297077c9450ef9175e5a80c6627140 | [
"MIT"
] | 5 | 2021-12-04T04:42:32.000Z | 2022-01-21T13:23:47.000Z | includes/MIP_constants.hpp | xmuriqui/muriqui | ff1492c70e297077c9450ef9175e5a80c6627140 | [
"MIT"
] | null | null | null | includes/MIP_constants.hpp | xmuriqui/muriqui | ff1492c70e297077c9450ef9175e5a80c6627140 | [
"MIT"
] | null | null | null |
#ifndef MIP_CONSTANTS_HPP
#define MIP_CONSTANTS_HPP
#include "MIP_config.hpp"
namespace minlpproblem
{
enum MIP_RETURN_CODE
{
MIP_SUCESS = 0,
MIP_BAD_DEFINITIONS = -1,
MIP_BAD_VALUE = -2,
MIP_INDEX_FAULT = -3,
MIP_MEMORY_ERROR = -4,
MIP_REPET... | 19.603175 | 74 | 0.556275 | xmuriqui |
f075d689497d0edced6ad946289a5a859d3fb327 | 9,364 | cpp | C++ | modules/ide_old/src/NewFilePage_1.cpp | DeepBlue14/rqt_ide | 853964dc429d61c9afb6f1fe827f2e3e83f92713 | [
"MIT"
] | null | null | null | modules/ide_old/src/NewFilePage_1.cpp | DeepBlue14/rqt_ide | 853964dc429d61c9afb6f1fe827f2e3e83f92713 | [
"MIT"
] | null | null | null | modules/ide_old/src/NewFilePage_1.cpp | DeepBlue14/rqt_ide | 853964dc429d61c9afb6f1fe827f2e3e83f92713 | [
"MIT"
] | null | null | null | #include "NewFilePage_1.h"
NewFilePage_1::NewFilePage_1(QWidget* parent) : QWidget(parent)
{
titlePtr = new QLabel("<b>Select file type</b>");
langStrPtr = new QString("null");
fileTypeStrPtr = new QString("null");
langsStrLstPtr = new QVector<QListWidgetItem*>();
langsStrLstPtr->push_ba... | 48.020513 | 120 | 0.601773 | DeepBlue14 |
f076c6fbd27720f0b643179527a8641a414e65d0 | 7,733 | hpp | C++ | src/truetouch.hpp | TrueTouch/truetouch-firmware | ae6f435613a557c111d4f4eed6d548280a7c5702 | [
"MIT"
] | null | null | null | src/truetouch.hpp | TrueTouch/truetouch-firmware | ae6f435613a557c111d4f4eed6d548280a7c5702 | [
"MIT"
] | null | null | null | src/truetouch.hpp | TrueTouch/truetouch-firmware | ae6f435613a557c111d4f4eed6d548280a7c5702 | [
"MIT"
] | null | null | null | /**
* truetouch.hpp - a simple protocol written on top of a BLE UART for controlling pins on
* the TrueTouch device.
*
* Copyright (c) 2021 TrueTouch
* Distributed under the MIT license (see LICENSE or https://opensource.org/licenses/MIT)
*/
#pragma once
#include "nordic_ble.hpp"
#i... | 36.305164 | 101 | 0.528126 | TrueTouch |
f0790e6b4e55e8359c355ec19eabd6c8196c18f0 | 641 | hpp | C++ | include/locic/Parser/TemplateParser.hpp | scross99/locic | a24bb380e17f8af69e7389acf8ce354c91a2abf3 | [
"MIT"
] | 80 | 2015-02-19T21:38:57.000Z | 2016-05-25T06:53:12.000Z | include/locic/Parser/TemplateParser.hpp | scross99/locic | a24bb380e17f8af69e7389acf8ce354c91a2abf3 | [
"MIT"
] | 8 | 2015-02-20T09:47:20.000Z | 2015-11-13T07:49:17.000Z | include/locic/Parser/TemplateParser.hpp | scross99/locic | a24bb380e17f8af69e7389acf8ce354c91a2abf3 | [
"MIT"
] | 6 | 2015-02-20T11:26:19.000Z | 2016-04-13T14:30:39.000Z | #ifndef LOCIC_PARSER_TEMPLATEPARSER_HPP
#define LOCIC_PARSER_TEMPLATEPARSER_HPP
#include <locic/AST.hpp>
#include <locic/Parser/TemplateBuilder.hpp>
namespace locic {
namespace Debug {
class SourcePosition;
}
namespace Parser {
class TemplateInfo;
class TokenReader;
class TemplateParser {
... | 15.634146 | 58 | 0.706708 | scross99 |
f07a3778e625992cd5ef4cf609abb57f28e9fbda | 2,108 | cc | C++ | Trie/trie.cc | zhanMingming/DataStruct | 7e0c665f02d49919e3df2f08f7a5945300ebd8f1 | [
"MIT"
] | 1 | 2019-11-23T15:41:58.000Z | 2019-11-23T15:41:58.000Z | Trie/trie.cc | zhanMingming/DataStruct | 7e0c665f02d49919e3df2f08f7a5945300ebd8f1 | [
"MIT"
] | null | null | null | Trie/trie.cc | zhanMingming/DataStruct | 7e0c665f02d49919e3df2f08f7a5945300ebd8f1 | [
"MIT"
] | null | null | null | #include"trie.h"
#include<cstring>
#include<iostream>
Trie::Trie()
:root(NULL)
{}
Trie::Trie_node::Trie_node()
{
data=NULL;
for(int index=0;index <Num_chars;++index)
{
num_char[index]=NULL;
}
}
Trie::~Trie()
{
}
int Trie::insert(const char *word,const char *number)
{
if(word==NULL||number==NULL... | 15.275362 | 62 | 0.4426 | zhanMingming |
f07ab6bc91c3f089f5643326b052f12ad6bc2a34 | 1,109 | cpp | C++ | Training (Lopatin)/B.cpp | michaelarakel/local-trainings-and-upsolvings | 7ec663fd80e6a9f7c9ffa37bd97b5197f1e4a73c | [
"Unlicense"
] | null | null | null | Training (Lopatin)/B.cpp | michaelarakel/local-trainings-and-upsolvings | 7ec663fd80e6a9f7c9ffa37bd97b5197f1e4a73c | [
"Unlicense"
] | null | null | null | Training (Lopatin)/B.cpp | michaelarakel/local-trainings-and-upsolvings | 7ec663fd80e6a9f7c9ffa37bd97b5197f1e4a73c | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <vector>
#include <cstdio>
using namespace std;
vector <vector <int> > g;
vector <char> used;
vector <int> matching;
bool augment_path(int v)
{
if (used[v])
return false;
used[v] = true;
for (int i = 0; i < g[v].size(); ++i)
{
int node = g[v][i];
if (matchin... | 16.552239 | 52 | 0.493237 | michaelarakel |
f07ffc54071b476d8d723231960477f04b4172c9 | 173 | cpp | C++ | Serna_Esteban.assignment2.0/Blast.cpp | Este-iv/Space_nvaders | dc3fbe00047584a04b43b8228bbc484dcf6bee50 | [
"MIT"
] | null | null | null | Serna_Esteban.assignment2.0/Blast.cpp | Este-iv/Space_nvaders | dc3fbe00047584a04b43b8228bbc484dcf6bee50 | [
"MIT"
] | null | null | null | Serna_Esteban.assignment2.0/Blast.cpp | Este-iv/Space_nvaders | dc3fbe00047584a04b43b8228bbc484dcf6bee50 | [
"MIT"
] | null | null | null | #include "Blast.h"
#include "space.h"
Blast::Blast(char s, int d, point p, point v){
source = s;
damage = d;
position = p;
velocity = v;
}
| 15.727273 | 46 | 0.514451 | Este-iv |
f086727a8eede7721dfbd3cbf0bde48e01ee9a24 | 18,983 | cpp | C++ | src/client/ClientTests.cpp | oakdoor/enterprisediodefiletransfer | 64cf04f47fd48fa4723b022968babdd8d62702d3 | [
"MIT"
] | 1 | 2021-05-27T09:53:20.000Z | 2021-05-27T09:53:20.000Z | src/client/ClientTests.cpp | oakdoor/enterprisediodefiletransfer | 64cf04f47fd48fa4723b022968babdd8d62702d3 | [
"MIT"
] | null | null | null | src/client/ClientTests.cpp | oakdoor/enterprisediodefiletransfer | 64cf04f47fd48fa4723b022968babdd8d62702d3 | [
"MIT"
] | 1 | 2021-09-16T14:12:27.000Z | 2021-09-16T14:12:27.000Z | // Copyright PA Knowledge Ltd 2021
// MIT License. For licence terms see LICENCE.md file.
#include <cstdint>
#include <vector>
#include <string>
#include <future>
#include "test/catch.hpp"
#include "test/EnterpriseDiodeTestHelpers.hpp"
#include "enterprisediode/EnterpriseDiodeHeader.hpp"
#include "Client.hpp"
#inclu... | 40.561966 | 119 | 0.724069 | oakdoor |
f08e91e7cdace12b90ee16361d8e87c14dbe37a2 | 1,890 | cpp | C++ | puzzles/2020/day03/main.cpp | apathyboy/aoc2020cpp | 0e02feca98a11ef530953c1d314f605edbbdea9c | [
"MIT"
] | null | null | null | puzzles/2020/day03/main.cpp | apathyboy/aoc2020cpp | 0e02feca98a11ef530953c1d314f605edbbdea9c | [
"MIT"
] | null | null | null | puzzles/2020/day03/main.cpp | apathyboy/aoc2020cpp | 0e02feca98a11ef530953c1d314f605edbbdea9c | [
"MIT"
] | null | null | null |
#include <fmt/core.h>
#include <range/v3/all.hpp>
#include <fstream>
#include <string>
namespace rs = ranges;
namespace rv = ranges::views;
auto slope_type1_hits(const std::vector<std::string>& input, int slope)
{
auto hit_test = [slope](auto&& p) {
auto&& [depth, line] = p;
return (line[(depth ... | 21.477273 | 95 | 0.575132 | apathyboy |
f091b649d9f9a2c42e5dee8b491dd451c5a55b4e | 1,470 | hpp | C++ | include/HighPerMeshes/dsl/buffers/LocalBuffer.hpp | HighPerMeshes/highpermeshes-dsl | 3019cadcc7c2504f3bf55be1d69da2ee66159c07 | [
"MIT"
] | 3 | 2020-04-24T11:10:34.000Z | 2021-07-07T09:41:08.000Z | include/HighPerMeshes/dsl/buffers/LocalBuffer.hpp | HighPerMeshes/highpermeshes-dsl | 3019cadcc7c2504f3bf55be1d69da2ee66159c07 | [
"MIT"
] | 1 | 2020-03-09T18:28:24.000Z | 2020-03-09T18:28:24.000Z | include/HighPerMeshes/dsl/buffers/LocalBuffer.hpp | HighPerMeshes/highpermeshes-dsl | 3019cadcc7c2504f3bf55be1d69da2ee66159c07 | [
"MIT"
] | 1 | 2020-04-22T12:49:46.000Z | 2020-04-22T12:49:46.000Z | // Copyright (c) 2017-2020
//
// Distributed under the MIT Software License
// (See accompanying file LICENSE)
#ifndef DSL_BUFFERS_LOCALBUFFER_HPP
#define DSL_BUFFERS_LOCALBUFFER_HPP
#include <cassert>
#include <cstdint>
#include <type_traits>
#include <vector>
#include <HighPerMeshes/dsl/data_access/AccessMode.hpp>... | 27.735849 | 177 | 0.679592 | HighPerMeshes |
f09a77ed465b33ff038f3f716365b8d3ffc690c0 | 2,319 | hpp | C++ | src/runtime/c4g_glsl.hpp | slightech/c4gpu | 82dda2014fd2ae5c745ebdc6a797bb5f87793816 | [
"MIT"
] | 7 | 2019-04-26T20:25:53.000Z | 2022-02-08T06:48:35.000Z | src/runtime/c4g_glsl.hpp | c4gpu/c4gpu_runtime | 82dda2014fd2ae5c745ebdc6a797bb5f87793816 | [
"MIT"
] | null | null | null | src/runtime/c4g_glsl.hpp | c4gpu/c4gpu_runtime | 82dda2014fd2ae5c745ebdc6a797bb5f87793816 | [
"MIT"
] | 3 | 2021-12-22T02:02:42.000Z | 2022-02-08T06:48:38.000Z | /*
** C4GPU.
**
** For the latest info, see https://github.com/c4gpu/c4gpu_runtime/
**
** Copyright (C) 2017 Wang Renxin. All rights reserved.
*/
#ifndef __C4G_GLSL_H__
#define __C4G_GLSL_H__
#include "c4g_runtime.h"
#ifdef C4G_RUNTIME_OS_WIN
# include <GL/glew.h>
# include <GL/glut.h>
#elif defined C4... | 21.672897 | 99 | 0.688228 | slightech |
f09e26bfae754f2005d371eb252ef42a8edd05ad | 4,060 | cc | C++ | Analyses/src/SimParticlesWithHitsExample_module.cc | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | null | null | null | Analyses/src/SimParticlesWithHitsExample_module.cc | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 1 | 2019-11-22T14:45:51.000Z | 2019-11-22T14:50:03.000Z | Analyses/src/SimParticlesWithHitsExample_module.cc | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 2 | 2019-10-14T17:46:58.000Z | 2020-03-30T21:05:15.000Z | //
// Plugin to show how to use the SimParticlesWithHits class.
//
// $Id: SimParticlesWithHitsExample_module.cc,v 1.6 2013/10/21 21:13:18 kutschke Exp $
// $Author: kutschke $
// $Date: 2013/10/21 21:13:18 $
//
// Original author Rob Kutschke.
//
// C++ includes.
#include <iostream>
#include <string>
// Framework in... | 32.741935 | 103 | 0.598522 | bonventre |
f0a13569cb49e9429fd227682aece1f8a0ae1f26 | 1,223 | cpp | C++ | src/Model/CFrameModel.cpp | Sebajuste/Omeglond3D | 28a3910b47490ec837a29e40e132369f957aedc7 | [
"MIT"
] | 1 | 2019-06-14T08:24:17.000Z | 2019-06-14T08:24:17.000Z | src/Model/CFrameModel.cpp | Sebajuste/Omeglond3D | 28a3910b47490ec837a29e40e132369f957aedc7 | [
"MIT"
] | null | null | null | src/Model/CFrameModel.cpp | Sebajuste/Omeglond3D | 28a3910b47490ec837a29e40e132369f957aedc7 | [
"MIT"
] | null | null | null | #include "CFrameModel.hpp"
namespace OMGL3D
{
namespace MODEL
{
CFrameModel::CFrameModel(const std::string & name) : IFrameModel(name)
{
}
CFrameModel::~CFrameModel()
{
}
void CFrameModel::SetRootMesh(CORE::IMesh * mesh)
{
}
voi... | 22.648148 | 104 | 0.54211 | Sebajuste |
f0a654f13bad1f4110544661d84ced551a9a7581 | 3,165 | cpp | C++ | Scene.cpp | Excelsus4/Eat-emAll | 5f701e764e9d7a27542ae9c88b20f26497090232 | [
"MIT"
] | null | null | null | Scene.cpp | Excelsus4/Eat-emAll | 5f701e764e9d7a27542ae9c88b20f26497090232 | [
"MIT"
] | null | null | null | Scene.cpp | Excelsus4/Eat-emAll | 5f701e764e9d7a27542ae9c88b20f26497090232 | [
"MIT"
] | null | null | null | #pragma once
#include "stdafx.h"
#include "Device.h"
#include "Vertex.h"
#include "RectObject.h"
#include "Random.h"
Shader* shader;
ID3D11Buffer* vertexBuffer;
const int VNUM = 32;
const int VSIZE = 6;
Vertex vertices[VNUM*VSIZE];
RectObject player = RectObject(D3DXVECTOR3(50.0f, 50.0f, 0), 25.0f, D3DXVECTOR3(1, 1,... | 22.132867 | 100 | 0.660979 | Excelsus4 |
f0ad1feed8b5215c4a58b3ee5082286b10100e98 | 14,149 | cpp | C++ | WRK-V1.2/clr/src/vm/securitytransparentassembly.cpp | intj-t/openvmsft | 0d17fbce8607ab2b880be976c2e86d8cfc3e83bb | [
"Intel"
] | null | null | null | WRK-V1.2/clr/src/vm/securitytransparentassembly.cpp | intj-t/openvmsft | 0d17fbce8607ab2b880be976c2e86d8cfc3e83bb | [
"Intel"
] | null | null | null | WRK-V1.2/clr/src/vm/securitytransparentassembly.cpp | intj-t/openvmsft | 0d17fbce8607ab2b880be976c2e86d8cfc3e83bb | [
"Intel"
] | null | null | null | // ==++==
//
//
// Copyright (c) 2006 Microsoft Corporation. All rights reserved.
//
// The use and distribution terms for this software are contained in the file
// named license.txt, which can be found in the root of this distribution.
// By using this software in any fashion, you are agreeing to ... | 34.25908 | 148 | 0.670365 | intj-t |
f0ae554202b769de7508fba055dbfed89228d22d | 979 | cpp | C++ | libminimsgbus/PubTable.cpp | jinyuttt/libminimsgbus | 7e5265b3d48bebf7ced93ee27d73b7414b4b6f8b | [
"MIT"
] | null | null | null | libminimsgbus/PubTable.cpp | jinyuttt/libminimsgbus | 7e5265b3d48bebf7ced93ee27d73b7414b4b6f8b | [
"MIT"
] | null | null | null | libminimsgbus/PubTable.cpp | jinyuttt/libminimsgbus | 7e5265b3d48bebf7ced93ee27d73b7414b4b6f8b | [
"MIT"
] | null | null | null |
#include "PubTable.h"
namespace libminimsgbus
{
PubTable::PubTable()
{
}
bool PubTable::add(string topic, string address)
{
auto v = topicPub.find(topic);
if (v != topicPub.end())
{
for (auto lst : v->second)
{
if (lst == address)
... | 18.12963 | 51 | 0.444331 | jinyuttt |
f0b16322c4cdb3ec8f95a8623130941f374af0aa | 9,425 | cpp | C++ | ThreeDog/tdslider.cpp | 602985142/TD-FrameWork | 1870be856c01fd46d48c8f6db1ba10d97ad4127c | [
"MIT"
] | 32 | 2017-03-02T11:12:21.000Z | 2021-08-02T00:49:15.000Z | ThreeDog/tdslider.cpp | 602985142/TD-FrameWork | 1870be856c01fd46d48c8f6db1ba10d97ad4127c | [
"MIT"
] | 1 | 2020-04-26T02:01:33.000Z | 2020-04-26T09:14:13.000Z | ThreeDog/tdslider.cpp | 602985142/TD-FrameWork | 1870be856c01fd46d48c8f6db1ba10d97ad4127c | [
"MIT"
] | 17 | 2017-03-09T06:10:32.000Z | 2022-02-25T05:37:51.000Z | #if _MSC_BUILD
#pragma execution_character_set("utf-8")
#endif
/**************************************************************
* File Name : tdslider.cpp
* Author : ThreeDog
* Date : Tue Jan 03 15:59:31 2017
* Description : 自定义滑块窗体,参数传递底色,前景色和滑块颜色,采用绘图事件
* 在鼠标松开时触发操作,接口和QSlider尽量保持一致。
*
**... | 27.318841 | 78 | 0.588117 | 602985142 |
f0b2cef226b8716776d3bba24c7fd46eca6389cb | 363 | cpp | C++ | Covid19QuizApp/studentgraderecord.cpp | AnkitKafle2020/HonorsProject | f02488e46ec06728c6edd4803781aeea87808867 | [
"MIT"
] | null | null | null | Covid19QuizApp/studentgraderecord.cpp | AnkitKafle2020/HonorsProject | f02488e46ec06728c6edd4803781aeea87808867 | [
"MIT"
] | null | null | null | Covid19QuizApp/studentgraderecord.cpp | AnkitKafle2020/HonorsProject | f02488e46ec06728c6edd4803781aeea87808867 | [
"MIT"
] | null | null | null | #include "studentgraderecord.h"
#include "ui_studentgraderecord.h"
studentGradeRecord::studentGradeRecord(QWidget *parent) :
QDialog(parent),
ui(new Ui::studentGradeRecord)
{
ui->setupUi(this);
}
studentGradeRecord::~studentGradeRecord()
{
delete ui;
}
void studentGradeRecord::on_butto... | 18.15 | 58 | 0.69146 | AnkitKafle2020 |
f0c56e520757162ecc9caff4bfa7b063bbf65c3f | 4,147 | cpp | C++ | book_samples/birds-eye/opencv-birdsEyeView.cpp | jwinarske/openvx_tutorial | 3b57b1c043c5e28e03b6c7121bad87f4ce67ea8c | [
"MIT"
] | 220 | 2016-03-20T00:48:58.000Z | 2022-03-31T09:46:21.000Z | book_samples/birds-eye/opencv-birdsEyeView.cpp | jwinarske/openvx_tutorial | 3b57b1c043c5e28e03b6c7121bad87f4ce67ea8c | [
"MIT"
] | 28 | 2016-06-16T19:17:41.000Z | 2021-09-16T16:19:18.000Z | book_samples/birds-eye/opencv-birdsEyeView.cpp | jwinarske/openvx_tutorial | 3b57b1c043c5e28e03b6c7121bad87f4ce67ea8c | [
"MIT"
] | 84 | 2016-03-24T01:13:07.000Z | 2022-03-22T04:37:03.000Z | /*
* Copyright (c) 2019 Victor Erukhimov
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and/or associated documentation files (the
* "Materials"), to deal in the Materials without restriction, including
* without limitation the rights to use, copy, modify, merg... | 35.444444 | 98 | 0.612732 | jwinarske |
f0d18f2ca2a4029e18003345fd3bd89a24db5f9f | 1,610 | cpp | C++ | EZOJ/Contests/1533/A.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 6 | 2019-09-30T16:11:00.000Z | 2021-11-01T11:42:33.000Z | EZOJ/Contests/1533/A.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 4 | 2017-11-21T08:17:42.000Z | 2020-07-28T12:09:52.000Z | EZOJ/Contests/1533/A.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 4 | 2017-07-26T05:54:06.000Z | 2020-09-30T13:35:38.000Z | #include <iostream>
#include <cstdio>
#include <cstring>
#include <cassert>
#include <cctype>
#include <map>
using namespace std;
typedef long long lint;
#define cout cerr
#define ni (next_num<int>())
template<class T>inline T next_num(){
T i=0;char c;
while(!isdigit(c=getchar())&&c!='-');
bool neg=c=='-';
neg?c=ge... | 22.676056 | 78 | 0.612422 | sshockwave |
f0d1b0143f4b0c30385f92e8e22f006dce6403c9 | 4,405 | cpp | C++ | src/net/host.cpp | suprafun/smalltowns | c722da7dd3a1d210d07f22a6c322117b540e63da | [
"BSD-3-Clause"
] | null | null | null | src/net/host.cpp | suprafun/smalltowns | c722da7dd3a1d210d07f22a6c322117b540e63da | [
"BSD-3-Clause"
] | null | null | null | src/net/host.cpp | suprafun/smalltowns | c722da7dd3a1d210d07f22a6c322117b540e63da | [
"BSD-3-Clause"
] | null | null | null | /*********************************************
*
* Author: David Athay
*
* License: New BSD License
*
* Copyright (c) 2009, CT Games
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are ... | 31.241135 | 87 | 0.585244 | suprafun |
f0d81a94aabc5bc8a7cde7a0a09ce3ea042bd277 | 234 | hpp | C++ | src/gfx/Mesh.hpp | kochol/ari2 | ca185191531acc1954cd4acfec2137e32fdb5c2d | [
"MIT"
] | 81 | 2018-12-11T20:48:41.000Z | 2022-03-18T22:24:11.000Z | src/gfx/Mesh.hpp | kochol/ari2 | ca185191531acc1954cd4acfec2137e32fdb5c2d | [
"MIT"
] | 7 | 2020-04-19T11:50:39.000Z | 2021-11-12T16:08:53.000Z | src/gfx/Mesh.hpp | kochol/ari2 | ca185191531acc1954cd4acfec2137e32fdb5c2d | [
"MIT"
] | 4 | 2019-04-24T11:51:29.000Z | 2021-03-10T05:26:33.000Z | #pragma once
#include "SubMesh.hpp"
namespace ari::gfx
{
ARI_HANDLE(MeshHandle)
struct Mesh
{
core::Array<SubMeshHandle> SubMeshes;
};
Mesh* GetMesh(const MeshHandle& mesh_handle);
} // namespace ari::gfx
| 13.764706 | 47 | 0.662393 | kochol |
f0d8d3537216398725a220d921ed107a5a2274f0 | 584 | cpp | C++ | sbb/primeNumbers.cpp | cwboden/coding-practice | a80aea59d57bfdd55c15ef2fdf01f73aff168031 | [
"MIT"
] | null | null | null | sbb/primeNumbers.cpp | cwboden/coding-practice | a80aea59d57bfdd55c15ef2fdf01f73aff168031 | [
"MIT"
] | null | null | null | sbb/primeNumbers.cpp | cwboden/coding-practice | a80aea59d57bfdd55c15ef2fdf01f73aff168031 | [
"MIT"
] | null | null | null | // Carson Boden / November 2016
// Prints out prime numbers between 1 and 100,000
int main()
{
// Range from 1 to 100,000
for (size_t i = 1; i <= 100000; ++i)
{
// Flag to confirm if number is prime
bool isPrime = true;
// Checks factors up to half of the number (Since 2 is the smallest divisor)
for (size_... | 17.69697 | 78 | 0.568493 | cwboden |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.