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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2f7ef1f441876287343b826032049464bc03c426 | 2,178 | hpp | C++ | networking/ArpPacketBase.hpp | leighgarbs/toolbox | fd9ceada534916fa8987cfcb5220cece2188b304 | [
"MIT"
] | null | null | null | networking/ArpPacketBase.hpp | leighgarbs/toolbox | fd9ceada534916fa8987cfcb5220cece2188b304 | [
"MIT"
] | null | null | null | networking/ArpPacketBase.hpp | leighgarbs/toolbox | fd9ceada534916fa8987cfcb5220cece2188b304 | [
"MIT"
] | null | null | null | #if !defined ARP_PACKET_BASE_HPP
#define ARP_PACKET_BASE_HPP
#include <cstdint>
#include "DataPacket.hpp"
#include "SimpleDataField.hpp"
class ArpPacketBase : public DataPacket
{
public:
// Initializes everything to 0
ArpPacketBase();
// Initializes everything to the given values
ArpPacketBase(std... | 19.621622 | 80 | 0.676768 | leighgarbs |
2f8442d410c5e9a22cfa3f56c9b35709cc31ff1a | 816 | cpp | C++ | AtCoder/AGC013/C/code.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | AtCoder/AGC013/C/code.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | AtCoder/AGC013/C/code.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | #include<cstdio>
#include<algorithm>
#define rep(i,x,y) for(int i=(x);i<=(y);++i)
#define per(i,x,y) for(int i=(x);i>=(y);--i)
typedef long long LL;
const int N=4e5+10;
LL n,l,t,x[N],w[N],a[N],b[N],ca,cb,ans[N];
int main(){
scanf("%lld%lld%lld",&n,&l,&t);
rep(i,1,n)scanf("%lld%lld",&x[i],&w[i]);
LL tmp=t/l;
t%=l;
... | 31.384615 | 134 | 0.535539 | sjj118 |
2f8b54c6eb734f9780b509a256efbb4fcea872a8 | 2,113 | cpp | C++ | simple-paint-sdl2/simple-paint-sdl2/simple-paint-sdl2/modules/editor/editor_event.cpp | i582/simple-paint-sdl2 | 3fc4eac68b6cfac949d42d6ea25a38e8fd206b7c | [
"MIT"
] | null | null | null | simple-paint-sdl2/simple-paint-sdl2/simple-paint-sdl2/modules/editor/editor_event.cpp | i582/simple-paint-sdl2 | 3fc4eac68b6cfac949d42d6ea25a38e8fd206b7c | [
"MIT"
] | null | null | null | simple-paint-sdl2/simple-paint-sdl2/simple-paint-sdl2/modules/editor/editor_event.cpp | i582/simple-paint-sdl2 | 3fc4eac68b6cfac949d42d6ea25a38e8fd206b7c | [
"MIT"
] | null | null | null | #include "editor.h"
void Editor::onEvent()
{
while (running && SDL_WaitEvent(&e))
{
switch (e.window.windowID)
{
case WINDOW_NEW_DOCUMENT:
{
switch (e.type)
{
case SDL_MOUSEMOTION:
{
new_document->mouseMotion(&e);
break;
}
case SDL_MOUSEBUTTONDOWN:
{
new_document->mou... | 11.804469 | 61 | 0.558921 | i582 |
2f999dde5f075b94ddcf1aac8dac60ffd4d39952 | 1,526 | cpp | C++ | Source/Services/TitleStorage/WinRT/TitleStorageBlobResult_WinRT.cpp | blgrossMS/xbox-live-api | 17c586336e11f0fa3a2a3f3acd665b18c5487b24 | [
"MIT"
] | 2 | 2021-07-17T13:34:20.000Z | 2022-01-09T00:55:51.000Z | Source/Services/TitleStorage/WinRT/TitleStorageBlobResult_WinRT.cpp | blgrossMS/xbox-live-api | 17c586336e11f0fa3a2a3f3acd665b18c5487b24 | [
"MIT"
] | null | null | null | Source/Services/TitleStorage/WinRT/TitleStorageBlobResult_WinRT.cpp | blgrossMS/xbox-live-api | 17c586336e11f0fa3a2a3f3acd665b18c5487b24 | [
"MIT"
] | 1 | 2018-11-18T08:32:40.000Z | 2018-11-18T08:32:40.000Z | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
/... | 31.142857 | 139 | 0.694626 | blgrossMS |
2fa187d5ad28cb96e88932220266065eb6bbe7d3 | 2,058 | cpp | C++ | src/ui95_ext/cbeye.cpp | Terebinth/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 117 | 2015-01-13T14:48:49.000Z | 2022-03-16T01:38:19.000Z | src/ui95_ext/cbeye.cpp | darongE/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 4 | 2015-05-01T13:09:53.000Z | 2017-07-22T09:11:06.000Z | src/ui95_ext/cbeye.cpp | darongE/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 78 | 2015-01-13T09:27:47.000Z | 2022-03-18T14:39:09.000Z | #include "stdafx.h"
#include "campaign/include/team.h"
#include "campaign/include/package.h"
#include "ui/include/filters.h"
C_BullsEye::C_BullsEye() : C_Base()
{
_SetCType_(_CNTL_BULLSEYE_);
Color_ = 0;
Scale_ = 1.0f;
DefaultFlags_ = C_BIT_ENABLED;
WorldX_ = WorldY_ = 0;
}
C_BullsEye::C_BullsEye(... | 23.123596 | 144 | 0.615646 | Terebinth |
2fa1b65fc61179a67e5146eb2b89b68ff7012124 | 724 | cpp | C++ | cpp/Test4-0609/T2.cpp | ljcbaby/Program-Practice | e999c07b595fcf3e70c8da462304e3cc0a292bac | [
"Unlicense"
] | null | null | null | cpp/Test4-0609/T2.cpp | ljcbaby/Program-Practice | e999c07b595fcf3e70c8da462304e3cc0a292bac | [
"Unlicense"
] | null | null | null | cpp/Test4-0609/T2.cpp | ljcbaby/Program-Practice | e999c07b595fcf3e70c8da462304e3cc0a292bac | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <cmath>
using namespace std;
class shape {// 形状类
public:
double getArea() // 求面积
{
return -1;
}
double getPerimeter() // 求周长
{
return -1;
}
};
class RegularPolygon : public shape { // 正多边形类
private:
int n; // 边数
double side; // 边长
public:
... | 16.088889 | 60 | 0.516575 | ljcbaby |
2fa2cd318402d162ee4d0ca23acaaaf20d893d5a | 727 | cpp | C++ | Dynamic Programming/33reachGivenScore.cpp | Coderangshu/450DSA | fff6cee65f75e5a0bb61d5fd8d000317a7736ca3 | [
"MIT"
] | 1 | 2021-01-18T14:51:20.000Z | 2021-01-18T14:51:20.000Z | Dynamic Programming/33reachGivenScore.cpp | Coderangshu/450DSA | fff6cee65f75e5a0bb61d5fd8d000317a7736ca3 | [
"MIT"
] | null | null | null | Dynamic Programming/33reachGivenScore.cpp | Coderangshu/450DSA | fff6cee65f75e5a0bb61d5fd8d000317a7736ca3 | [
"MIT"
] | null | null | null | // { Driver Code Starts
// Driver Code
#include<bits/stdc++.h>
#define ll long long int
using namespace std;
// } Driver Code Ends
// Complete this function
ll count(ll n)
{
ll availableScores[] = {3,5,10};
ll asn = sizeof(availableScores)/sizeof(ll);
ll dp[n+1][asn+1];
for(ll i=0;i<n+1;i++){
for(ll j=... | 17.731707 | 66 | 0.537827 | Coderangshu |
2fa4d1431ec8237eca35f498013043188a7ef8f0 | 569,716 | cc | C++ | NFComm/NFMessageDefine/NFMsgShare.pb.cc | bytemode/NoahGameFrame | 34dbcc7db2d5d588ff282543dc371a37372d07d7 | [
"Apache-2.0"
] | 3 | 2019-06-03T07:34:23.000Z | 2019-06-03T07:34:28.000Z | NFComm/NFMessageDefine/NFMsgShare.pb.cc | bytemode/NoahGameFrame | 34dbcc7db2d5d588ff282543dc371a37372d07d7 | [
"Apache-2.0"
] | null | null | null | NFComm/NFMessageDefine/NFMsgShare.pb.cc | bytemode/NoahGameFrame | 34dbcc7db2d5d588ff282543dc371a37372d07d7 | [
"Apache-2.0"
] | null | null | null | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: NFMsgShare.proto
#include "NFMsgShare.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/descriptor.h>
#includ... | 37.144087 | 167 | 0.723924 | bytemode |
2fa4d82ec3604390d96209ed3a2b62c80f805e4e | 3,773 | hpp | C++ | Connection.hpp | 15-466/15-466-f21-intro | c3e1d2643fed8757f1345b46718d406d20a72c8e | [
"RSA-MD"
] | null | null | null | Connection.hpp | 15-466/15-466-f21-intro | c3e1d2643fed8757f1345b46718d406d20a72c8e | [
"RSA-MD"
] | null | null | null | Connection.hpp | 15-466/15-466-f21-intro | c3e1d2643fed8757f1345b46718d406d20a72c8e | [
"RSA-MD"
] | null | null | null | #pragma once
/*
* Connection is a simple wrapper around a TCP socket connection.
* You don't create 'Connection' objects yourself, rather, you
* create a Client or Server object which will manage connection(s)
* for you.
* For example:
//simple server
int main(int argc, char **argv) {
Server server("1337"); //... | 29.248062 | 133 | 0.693878 | 15-466 |
2fa7361af6b9e99e44fd971b9339aa240add43e3 | 2,186 | cpp | C++ | src/spriterenderer.cpp | Foltik/K5 | a347b7c252c38e0b9190554ce25b9a399f9b66c4 | [
"WTFPL"
] | 2 | 2017-05-11T10:53:34.000Z | 2017-09-07T19:32:35.000Z | src/spriterenderer.cpp | Foltik/K5 | a347b7c252c38e0b9190554ce25b9a399f9b66c4 | [
"WTFPL"
] | 1 | 2017-10-01T03:46:52.000Z | 2017-10-16T20:59:56.000Z | src/spriterenderer.cpp | Foltik/K5 | a347b7c252c38e0b9190554ce25b9a399f9b66c4 | [
"WTFPL"
] | null | null | null | #include "spriterenderer.h"
#include <glm/gtc/matrix_transform.hpp>
#include "texture.h"
#include "shader.h"
constexpr const char* vertexSource = R"(
#version 330 Core
layout (location = 0) in vec4 vertex;
out vec2 texCoord;
uniform mat4 model;
uniform mat4 proj;
void main() {
texCoord = vertex.zw;
gl_Posi... | 24.561798 | 134 | 0.646386 | Foltik |
2fab1ff8d8acf572be3967eac62aa98b8242c3e9 | 36,423 | cpp | C++ | blackmeta/sprites.cpp | frenchcomp/blackmeta | 198938021b3e9cc7aaab330de707899a10b5beba | [
"MIT"
] | null | null | null | blackmeta/sprites.cpp | frenchcomp/blackmeta | 198938021b3e9cc7aaab330de707899a10b5beba | [
"MIT"
] | null | null | null | blackmeta/sprites.cpp | frenchcomp/blackmeta | 198938021b3e9cc7aaab330de707899a10b5beba | [
"MIT"
] | null | null | null | /**
* LICENSE
*
* This source file is subject to the MIT license and the version 3 of the GPL3
* license that are bundled with this package in the folder licences
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to richarddeloge@gmail... | 1,011.75 | 30,791 | 0.829943 | frenchcomp |
2fab615191b2a6c4e6d749856f038bb4a97aa66f | 15,869 | cxx | C++ | Examples/Projections/SensorModelExample.cxx | lfyater/Orfeo | eb3d4d56089065b99641d8ae7338d2ed0358d28a | [
"Apache-2.0"
] | 2 | 2019-02-13T14:48:19.000Z | 2019-12-03T02:54:28.000Z | Examples/Projections/SensorModelExample.cxx | lfyater/Orfeo | eb3d4d56089065b99641d8ae7338d2ed0358d28a | [
"Apache-2.0"
] | null | null | null | Examples/Projections/SensorModelExample.cxx | lfyater/Orfeo | eb3d4d56089065b99641d8ae7338d2ed0358d28a | [
"Apache-2.0"
] | 2 | 2019-01-17T10:36:14.000Z | 2019-12-03T02:54:36.000Z | /*
* Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* 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 ... | 31.674651 | 81 | 0.696452 | lfyater |
2fac20bc3cb0bc379ed01b3c621c920274a32869 | 676 | hh | C++ | build/x86/params/X86System.hh | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"BSD-3-Clause"
] | 5 | 2019-12-12T16:26:09.000Z | 2022-03-17T03:23:33.000Z | build/X86/params/X86System.hh | zhoushuxin/impl_of_HPCA2018 | 594d807fb0c0712bb7766122c4efe3321d012687 | [
"BSD-3-Clause"
] | 1 | 2020-08-20T05:53:30.000Z | 2020-08-20T05:53:30.000Z | build/X86/params/X86System.hh | zhoushuxin/impl_of_HPCA2018 | 594d807fb0c0712bb7766122c4efe3321d012687 | [
"BSD-3-Clause"
] | null | null | null | #ifndef __PARAMS__X86System__
#define __PARAMS__X86System__
class X86System;
#include <cstddef>
#include "params/X86ACPIRSDP.hh"
#include <cstddef>
#include "params/X86IntelMPFloatingPointer.hh"
#include <cstddef>
#include "params/X86IntelMPConfigTable.hh"
#include <cstddef>
#include "params/X86SMBiosSMBiosTable.hh"
... | 24.142857 | 56 | 0.773669 | billionshang |
2fb05814055f460e452efaa09d389272346efb5d | 917 | cpp | C++ | 01-Iterations/BinaryGap.cpp | hNrChVz/codility-lessons-solution | b76e802c97ed95feb69a1038736db6d494418777 | [
"FSFAP"
] | null | null | null | 01-Iterations/BinaryGap.cpp | hNrChVz/codility-lessons-solution | b76e802c97ed95feb69a1038736db6d494418777 | [
"FSFAP"
] | null | null | null | 01-Iterations/BinaryGap.cpp | hNrChVz/codility-lessons-solution | b76e802c97ed95feb69a1038736db6d494418777 | [
"FSFAP"
] | null | null | null | #include <bitset>
#include <algorithm>
using namespace std;
/*
My first impression here is to have an array of binary representaion of N.
e.g.
N = 9 ; will have an array of { 1, 0, 0, 1 }
With that, I can use std::bitset, std::bitset<64> nBit (N);
NOTE:
N is from [1..2,147,483,647], so 32-bit long will suffice. I'v... | 18.714286 | 86 | 0.607415 | hNrChVz |
2fb3ff3f057f16f6add625d930f6938c82cb0dd5 | 2,654 | hpp | C++ | include/km/Console.hpp | keymaker-io/keymaker-alpha | ffe5310ed1304654ff4ae3a7025fff34b629588b | [
"MIT"
] | 3 | 2017-02-04T17:17:11.000Z | 2017-03-04T22:41:26.000Z | include/km/Console.hpp | keymaker-io/keymaker-alpha | ffe5310ed1304654ff4ae3a7025fff34b629588b | [
"MIT"
] | null | null | null | include/km/Console.hpp | keymaker-io/keymaker-alpha | ffe5310ed1304654ff4ae3a7025fff34b629588b | [
"MIT"
] | null | null | null | /*!
* Title ---- km/Console.hpp
* Author --- Giacomo Trudu aka `Wicker25` - wicker25[at]gmail[dot]com
*
* Copyright (C) 2017 by Giacomo Trudu.
* All rights reserved.
*
* This file is part of KeyMaker software.
*/
#ifndef __KM_CONSOLE_HPP__
#define __KM_CONSOLE_HPP__
#include <km.hpp>
#include <km/Exception.hp... | 15.892216 | 74 | 0.608892 | keymaker-io |
2fb453ebb76486bc333d65bd5c8a8e393bb84ac4 | 2,975 | cpp | C++ | src/concurrent/mutex.cpp | tkng/pficommon | 1301e1c9f958656e4bc882ae2db9452e8cffab7e | [
"BSD-3-Clause"
] | 48 | 2017-04-03T18:46:24.000Z | 2022-02-28T01:44:05.000Z | src/concurrent/mutex.cpp | tkng/pficommon | 1301e1c9f958656e4bc882ae2db9452e8cffab7e | [
"BSD-3-Clause"
] | 44 | 2017-02-21T13:13:52.000Z | 2021-02-06T13:08:31.000Z | src/concurrent/mutex.cpp | tkng/pficommon | 1301e1c9f958656e4bc882ae2db9452e8cffab7e | [
"BSD-3-Clause"
] | 13 | 2016-12-28T05:04:58.000Z | 2021-10-01T02:17:23.000Z | // Copyright (c)2008-2011, Preferred Infrastructure Inc.
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright
// ... | 23.991935 | 78 | 0.688739 | tkng |
2fb50156f68c6695b68a1caad1c9c83cd801e263 | 884 | hpp | C++ | android-31/android/service/controls/templates/RangeTemplate.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/service/controls/templates/RangeTemplate.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-31/android/service/controls/templates/RangeTemplate.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #pragma once
#include "./ControlTemplate.hpp"
class JString;
class JString;
namespace android::service::controls::templates
{
class RangeTemplate : public android::service::controls::templates::ControlTemplate
{
public:
// Fields
// QJniObject forward
template<typename ...Ts> explicit RangeTemplate(const... | 27.625 | 201 | 0.734163 | YJBeetle |
2fb59d9b2cee9e409976fff49c37cb2504d4b1a1 | 19,696 | cpp | C++ | sources/SceneGraph/Collision/spCollisionCapsule.cpp | rontrek/softpixel | 73a13a67e044c93f5c3da9066eedbaf3805d6807 | [
"Zlib"
] | 14 | 2015-08-16T21:05:20.000Z | 2019-08-21T17:22:01.000Z | sources/SceneGraph/Collision/spCollisionCapsule.cpp | rontrek/softpixel | 73a13a67e044c93f5c3da9066eedbaf3805d6807 | [
"Zlib"
] | null | null | null | sources/SceneGraph/Collision/spCollisionCapsule.cpp | rontrek/softpixel | 73a13a67e044c93f5c3da9066eedbaf3805d6807 | [
"Zlib"
] | 3 | 2020-02-15T09:17:41.000Z | 2020-05-21T14:10:40.000Z | /*
* Collision sphere file
*
* This file is part of the "SoftPixel Engine" (Copyright (c) 2008 by Lukas Hermanns)
* See "SoftPixelEngine.hpp" for license information.
*/
#include "SceneGraph/Collision/spCollisionCapsule.hpp"
#include "SceneGraph/Collision/spCollisionSphere.hpp"
#include "SceneGraph/Collision/spC... | 32.66335 | 134 | 0.602 | rontrek |
2fb8c4642ad2dab5b8a8f68d75a5a15cd96318df | 2,357 | cpp | C++ | Game files/Algorithm1.cpp | morisscofield/Suicide_Checkers | 2f059b9ba32d8581bb77e1f313979d49ef72fd1d | [
"Apache-2.0"
] | null | null | null | Game files/Algorithm1.cpp | morisscofield/Suicide_Checkers | 2f059b9ba32d8581bb77e1f313979d49ef72fd1d | [
"Apache-2.0"
] | null | null | null | Game files/Algorithm1.cpp | morisscofield/Suicide_Checkers | 2f059b9ba32d8581bb77e1f313979d49ef72fd1d | [
"Apache-2.0"
] | null | null | null | #include "Algorithm1.h"
// Public methods
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool Algorithm1::can_move() const
{
vector<coordinates> movable = _calculate.movable_pieces();
if (movable.empty() ... | 25.344086 | 151 | 0.661434 | morisscofield |
2fc40702519049e0224042135223e111a2ce32a8 | 704 | cpp | C++ | #1006 Sign In and Sign Out .cpp | ZachVec/PAT-Advanced | 52ba5989c095ddbee3c297e82a4b3d0d2e0cd449 | [
"MIT"
] | 1 | 2021-12-26T08:34:47.000Z | 2021-12-26T08:34:47.000Z | #1006 Sign In and Sign Out .cpp | ZachVec/PAT-Advanced | 52ba5989c095ddbee3c297e82a4b3d0d2e0cd449 | [
"MIT"
] | null | null | null | #1006 Sign In and Sign Out .cpp | ZachVec/PAT-Advanced | 52ba5989c095ddbee3c297e82a4b3d0d2e0cd449 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
size_t n, t1 = (size_t)(-1), t2 = 0;
string in, out, temp;
if(scanf("%zu", &n) == EOF) return 0;
for(size_t i = 0, t, h, m, s; i < n; ++i) {
cin >> temp;
scanf("%zu:%zu:%zu", &h, &m, &s);
if((t = h * 3600 + m * 60 + s) < t1) ... | 22 | 47 | 0.4375 | ZachVec |
7c7c6a3e81d20d6db294fbc3b3efd29a099d3bd2 | 670 | hpp | C++ | src/io.hpp | davidstraka2/gamebook-engine | 53fa8d825a056e28ddd90e718af73ab691019fe5 | [
"MIT"
] | null | null | null | src/io.hpp | davidstraka2/gamebook-engine | 53fa8d825a056e28ddd90e718af73ab691019fe5 | [
"MIT"
] | null | null | null | src/io.hpp | davidstraka2/gamebook-engine | 53fa8d825a056e28ddd90e718af73ab691019fe5 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <vector>
namespace io {
/**
* Have user choose from a list of options
*
* @return Index of chosen option in list
*/
int choose(const std::vector<std::string>& options);
/** Finalize curses */
void finCurses();
/** Initialize curses */
... | 21.612903 | 72 | 0.601493 | davidstraka2 |
7c835a7b92393af44f07dda02187705dea54a191 | 204 | cpp | C++ | stm32/Core/Src/RadioConfig/radio_config_c2_64_32.cpp | tk20dk/garfield | b2602125c80d024cd55f1d25f3c9bf56067aba05 | [
"MIT"
] | null | null | null | stm32/Core/Src/RadioConfig/radio_config_c2_64_32.cpp | tk20dk/garfield | b2602125c80d024cd55f1d25f3c9bf56067aba05 | [
"MIT"
] | null | null | null | stm32/Core/Src/RadioConfig/radio_config_c2_64_32.cpp | tk20dk/garfield | b2602125c80d024cd55f1d25f3c9bf56067aba05 | [
"MIT"
] | null | null | null | #include <stdint.h>
#include "RadioConfig/radio_config_c2_64_32.h"
uint8_t const RADIO__CONFIG_C2_64_32[] = RADIO_CONFIGURATION_DATA_ARRAY;
uint8_t const *RADIO_CONFIG_C2_64_32 = RADIO__CONFIG_C2_64_32;
| 34 | 72 | 0.848039 | tk20dk |
7c8e85e1de525a9d79b597fb774df78e132e0c9e | 490 | hxx | C++ | src/mod/pub/demo/gl-frag-shader-demo/mod-gl-frag-shader-demo.hxx | indigoabstract/appplex | 83c3b903db6c6ea83690ccffbd533ff6ab01d246 | [
"MIT"
] | 1 | 2017-12-26T14:29:37.000Z | 2017-12-26T14:29:37.000Z | src/mod/pub/demo/gl-frag-shader-demo/mod-gl-frag-shader-demo.hxx | indigoabstract/appplex | 83c3b903db6c6ea83690ccffbd533ff6ab01d246 | [
"MIT"
] | null | null | null | src/mod/pub/demo/gl-frag-shader-demo/mod-gl-frag-shader-demo.hxx | indigoabstract/appplex | 83c3b903db6c6ea83690ccffbd533ff6ab01d246 | [
"MIT"
] | null | null | null | #pragma once
#include "appplex-conf.hxx"
#ifdef MOD_GL_FRAG_SHADER_DEMO
#include "mws-mod.hxx"
class mod_gl_frag_shader_demo_impl;
class mod_gl_frag_shader_demo_page;
class mod_gl_frag_shader_demo : public mws_mod
{
public:
static mws_sp<mod_gl_frag_shader_demo> nwi();
virtual void init();
virtual void bui... | 16.333333 | 46 | 0.785714 | indigoabstract |
7ca2edc706e3f9101e9f413ff912cd851a79facb | 388 | cc | C++ | net/socket/unix_domain_socket.cc | mayah/base | aec046929938d2aaebaadce5c5abb58b5cf342b4 | [
"MIT"
] | 115 | 2015-02-21T15:08:26.000Z | 2022-02-05T01:38:10.000Z | net/socket/unix_domain_socket.cc | mayah/base | aec046929938d2aaebaadce5c5abb58b5cf342b4 | [
"MIT"
] | 214 | 2015-01-16T04:53:35.000Z | 2019-03-23T11:39:59.000Z | net/socket/unix_domain_socket.cc | mayah/base | aec046929938d2aaebaadce5c5abb58b5cf342b4 | [
"MIT"
] | 56 | 2015-01-16T05:14:13.000Z | 2020-09-22T07:22:49.000Z | #include "net/socket/unix_domain_socket.h"
#include <utility>
namespace net {
UnixDomainSocket::UnixDomainSocket(UnixDomainSocket&& socket) noexcept :
Socket(std::move(socket))
{
}
UnixDomainSocket::~UnixDomainSocket()
{
}
UnixDomainSocket& UnixDomainSocket::operator=(UnixDomainSocket&& socket) noexcept
{
... | 16.869565 | 81 | 0.734536 | mayah |
7ca6cf8f8c8509a7cd0a4ec6ee70327bd7865f5a | 2,937 | cpp | C++ | lib/cpptest-lite/src/TextOutput.cpp | Kaayy-J/OHMComm-Light | 08a67e20da3369d199a285071105404daeb33d6c | [
"MIT"
] | null | null | null | lib/cpptest-lite/src/TextOutput.cpp | Kaayy-J/OHMComm-Light | 08a67e20da3369d199a285071105404daeb33d6c | [
"MIT"
] | 1 | 2016-01-31T16:12:10.000Z | 2016-01-31T16:12:10.000Z | lib/cpptest-lite/src/TextOutput.cpp | Kaayy-J/OHMComm | 08a67e20da3369d199a285071105404daeb33d6c | [
"MIT"
] | null | null | null | /*
* File: TextOutput.cpp
* Author: daniel
*
* Created on September 11, 2015, 7:07 PM
*/
#include "TextOutput.h"
#include <iostream>
#include <string.h>
#include <errno.h>
using namespace Test;
TextOutput::TextOutput(const unsigned int mode) : TextOutput(mode, std::cout)
{ }
TextOutput::TextOutput(const u... | 37.177215 | 277 | 0.64113 | Kaayy-J |
7cb3c971694646e9bda191fd319f85d87787ed07 | 3,050 | cpp | C++ | app/PluginManager.cpp | ospray/ospray_studio | 1549ac72c7c561b4aafdea976189bbe95bd32ff2 | [
"Apache-2.0"
] | 52 | 2018-10-09T23:56:32.000Z | 2022-03-25T09:27:40.000Z | app/PluginManager.cpp | ospray/ospray_studio | 1549ac72c7c561b4aafdea976189bbe95bd32ff2 | [
"Apache-2.0"
] | 11 | 2018-11-19T18:51:47.000Z | 2022-03-28T14:03:57.000Z | app/PluginManager.cpp | ospray/ospray_studio | 1549ac72c7c561b4aafdea976189bbe95bd32ff2 | [
"Apache-2.0"
] | 8 | 2019-02-10T00:16:24.000Z | 2022-02-17T19:50:15.000Z | // Copyright 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#include "PluginManager.h"
#include <iterator>
void PluginManager::loadPlugin(const std::string &name)
{
std::cout << "...attempting to load plugin '" << name << "'\n";
std::string libName = "ospray_studio_plugin_" + name;
try {
... | 27.981651 | 80 | 0.615738 | ospray |
7cb7021c2d107fcd32e181297eade1899e8b0b5a | 33,314 | cpp | C++ | day24/main.cpp | kjelloh/advent_of_code_2021 | 656c26a418a4b379ef48a45ac6ffd978c17a744f | [
"CC0-1.0"
] | null | null | null | day24/main.cpp | kjelloh/advent_of_code_2021 | 656c26a418a4b379ef48a45ac6ffd978c17a744f | [
"CC0-1.0"
] | null | null | null | day24/main.cpp | kjelloh/advent_of_code_2021 | 656c26a418a4b379ef48a45ac6ffd978c17a744f | [
"CC0-1.0"
] | null | null | null | #include <iostream>
#include <vector>
#include <string>
#include <utility>
#include <sstream>
#include <algorithm>
#include <vector>
#include <map>
#include <variant>
#include <optional>
#include <ranges>
#include <unordered_set>
#include <unordered_map>
extern std::vector<std::string> pData;
using Result = std::stri... | 31.280751 | 195 | 0.557453 | kjelloh |
7cbb1347cce1d40c6aca97055352e6f1381187e9 | 2,465 | cpp | C++ | core/args_parser.cpp | SmallJoker/NyisBotCPP | 48ec353d103ac09f1c538578543d99e9d205f47a | [
"MIT"
] | null | null | null | core/args_parser.cpp | SmallJoker/NyisBotCPP | 48ec353d103ac09f1c538578543d99e9d205f47a | [
"MIT"
] | 1 | 2021-03-28T09:49:33.000Z | 2021-03-28T09:49:33.000Z | core/args_parser.cpp | SmallJoker/NyisBotCPP | 48ec353d103ac09f1c538578543d99e9d205f47a | [
"MIT"
] | null | null | null | #include "args_parser.h"
#include "logger.h"
#include <map>
std::map<std::string, CLIArg *> g_args;
CLIArg::CLIArg(cstr_t &pfx, bool *out) : CLIArg(pfx)
{
m_handler = &CLIArg::parseFlag;
m_dst.b = out;
}
CLIArg::CLIArg(cstr_t &pfx, long *out) : CLIArg(pfx)
{
m_handler = &CLIArg::parseLong;
m_dst.l = out;
}
CLIA... | 20.04065 | 64 | 0.594726 | SmallJoker |
7cbe5492978a198a96c652b2c7b7b5e4b066da5e | 39 | cpp | C++ | src/Events/ButtonClickEvent.cpp | DarthGeek01/TowerDefense | c1421c04c6bc05c73b39084106fd6a17b7fee4e5 | [
"MIT"
] | null | null | null | src/Events/ButtonClickEvent.cpp | DarthGeek01/TowerDefense | c1421c04c6bc05c73b39084106fd6a17b7fee4e5 | [
"MIT"
] | null | null | null | src/Events/ButtonClickEvent.cpp | DarthGeek01/TowerDefense | c1421c04c6bc05c73b39084106fd6a17b7fee4e5 | [
"MIT"
] | null | null | null | //
// Created by ariel on 11/6/16.
//
| 7.8 | 31 | 0.538462 | DarthGeek01 |
7cbf3abc676be906a676d25d721cf95df84cab21 | 11,015 | cpp | C++ | src/opengl/xGSGLutil.cpp | livingcreative/xgs | 2fc51c8b8f04e23740466414092f0ca1e0acb436 | [
"BSD-3-Clause"
] | 6 | 2016-03-17T16:11:39.000Z | 2021-02-08T18:03:23.000Z | src/opengl/xGSGLutil.cpp | livingcreative/xgs | 2fc51c8b8f04e23740466414092f0ca1e0acb436 | [
"BSD-3-Clause"
] | 6 | 2016-07-15T07:02:44.000Z | 2018-05-24T20:39:57.000Z | src/opengl/xGSGLutil.cpp | livingcreative/xgs | 2fc51c8b8f04e23740466414092f0ca1e0acb436 | [
"BSD-3-Clause"
] | 4 | 2016-03-20T11:43:11.000Z | 2022-01-21T21:07:54.000Z | /*
xGS 3D Low-level rendering API
Low-level 3D rendering wrapper API with multiple back-end support
(c) livingcreative, 2015 - 2018
https://github.com/livingcreative/xgs
opengl/xGSGLutil.cpp
OpenGL specific utility functions and classes
*/
#include "xGSGLutil.h"
#include "xGSimpl.h... | 32.68546 | 200 | 0.578484 | livingcreative |
7cc17e094b97871d82c1a87abdfc70a311414c91 | 341 | cpp | C++ | src/op/grid5.cpp | pfuchs/riesling | 2e0f12f5cd1943cb6e96eca40f4e68ef88e12130 | [
"MIT"
] | null | null | null | src/op/grid5.cpp | pfuchs/riesling | 2e0f12f5cd1943cb6e96eca40f4e68ef88e12130 | [
"MIT"
] | null | null | null | src/op/grid5.cpp | pfuchs/riesling | 2e0f12f5cd1943cb6e96eca40f4e68ef88e12130 | [
"MIT"
] | null | null | null | #include "grid.hpp"
std::unique_ptr<GridBase> make_5_e(Kernel const *k, Mapping const &m, bool const fg)
{
if (k->throughPlane() == 1) {
return std::make_unique<Grid<5, 1>>(dynamic_cast<SizedKernel<5, 1> const *>(k), m, fg);
} else {
return std::make_unique<Grid<5, 5>>(dynamic_cast<SizedKernel<5, 5> const ... | 31 | 91 | 0.642229 | pfuchs |
7cc1b0c066fe51564b4db7a66c005b01880a24a8 | 2,851 | cc | C++ | demo/misc/uri_demo.cc | Rokid/mingutils | b0c7865b928c8c46fdf769bfda0f05b1965b5372 | [
"MIT"
] | 1,144 | 2018-12-18T09:46:47.000Z | 2022-03-07T14:51:46.000Z | demo/misc/uri_demo.cc | Rokid/mingutils | b0c7865b928c8c46fdf769bfda0f05b1965b5372 | [
"MIT"
] | 16 | 2019-01-28T06:08:40.000Z | 2019-12-04T10:26:41.000Z | demo/misc/uri_demo.cc | Rokid/mingutils | b0c7865b928c8c46fdf769bfda0f05b1965b5372 | [
"MIT"
] | 129 | 2018-12-18T09:46:50.000Z | 2022-03-30T07:30:13.000Z | #include "uri.h"
using namespace rokid;
using namespace std;
#define URI_COUNT 7
static const char* test_uris[] = {
"https://john.doe@www.example.com:123/forum/questions/?tag=networking&order=newest#top",
"mailto:John.Doe@example.com",
"news:comp.infosystems.www.servers.unix",
"tel:+1-816-555-1212",
"telnet://1... | 27.679612 | 89 | 0.668888 | Rokid |
7cc25f769f8089c602d3de999ea8e8d20d710a88 | 2,189 | cpp | C++ | Tests/unit-tests/Source/opennwa/namespace-query/states-overlap.cpp | jusito/WALi-OpenNWA | 2bb4aca02c5a5d444fd038e8aa3eecd7d1ccbb99 | [
"MIT"
] | 15 | 2015-03-07T17:25:57.000Z | 2022-02-04T20:17:00.000Z | src/wpds/Tests/unit-tests/Source/opennwa/namespace-query/states-overlap.cpp | ucd-plse/mpi-error-prop | 4367df88bcdc4d82c9a65b181d0e639d04962503 | [
"BSD-3-Clause"
] | 1 | 2018-03-03T05:58:55.000Z | 2018-03-03T12:26:10.000Z | src/wpds/Tests/unit-tests/Source/opennwa/namespace-query/states-overlap.cpp | ucd-plse/mpi-error-prop | 4367df88bcdc4d82c9a65b181d0e639d04962503 | [
"BSD-3-Clause"
] | 15 | 2015-09-25T17:44:35.000Z | 2021-07-18T18:25:38.000Z | #include "gtest/gtest.h"
#include "opennwa/Nwa.hpp"
#include "opennwa/query/automaton.hpp"
#include "Tests/unit-tests/Source/opennwa/fixtures.hpp"
#include "Tests/unit-tests/Source/opennwa/class-NWA/supporting.hpp"
namespace opennwa {
namespace query {
TEST(opennwa$query$$statesOverlap, emptyDo... | 28.428571 | 78 | 0.539516 | jusito |
7cc6f8b65c023da7b5d1209a6c254884081e3697 | 77,980 | cpp | C++ | EBUCoreProcessor/src/EBUCore_1_4/EBUCoreMapping.cpp | Limecraft/ebu-mxfsdk | d2461c778f7980c4e116a53123c2ba744b1362a0 | [
"Apache-2.0"
] | 20 | 2015-02-24T23:54:23.000Z | 2022-03-29T12:42:32.000Z | EBUCoreProcessor/src/EBUCore_1_4/EBUCoreMapping.cpp | ebu/ebu-mxfsdk | d66e4b05354ec2b80365f1956f14678c6f7f6514 | [
"Apache-2.0"
] | 1 | 2018-10-26T00:44:05.000Z | 2018-10-26T00:44:05.000Z | EBUCoreProcessor/src/EBUCore_1_4/EBUCoreMapping.cpp | ebu/ebu-mxfsdk | d66e4b05354ec2b80365f1956f14678c6f7f6514 | [
"Apache-2.0"
] | 6 | 2015-02-05T09:54:14.000Z | 2022-02-26T20:56:32.000Z | /*
* Copyright 2012-2013 European Broadcasting Union and Limecraft, NV.
*
* 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
*
*... | 56.712727 | 192 | 0.812054 | Limecraft |
7cc8140fb18d6f0563cbe2c37353ade3e04c7ede | 3,266 | hpp | C++ | cpp/include/cugraph/visitors/ret_terased.hpp | BradReesWork/cugraph | 9ddea03a724e9b32950ed6282120007c76482cbc | [
"Apache-2.0"
] | 991 | 2018-12-05T22:07:52.000Z | 2022-03-31T10:45:45.000Z | cpp/include/cugraph/visitors/ret_terased.hpp | BradReesWork/cugraph | 9ddea03a724e9b32950ed6282120007c76482cbc | [
"Apache-2.0"
] | 1,929 | 2018-12-06T14:06:18.000Z | 2022-03-31T20:01:00.000Z | cpp/include/cugraph/visitors/ret_terased.hpp | BradReesWork/cugraph | 9ddea03a724e9b32950ed6282120007c76482cbc | [
"Apache-2.0"
] | 227 | 2018-12-06T18:10:15.000Z | 2022-03-28T19:03:15.000Z | /*
* Copyright (c) 2021, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 25.515625 | 95 | 0.6485 | BradReesWork |
7cc999ec9ec8ff3cbd566a4119fc6e0615d39717 | 29,791 | cpp | C++ | artifact/storm/src/storm-pomdp-cli/storm-pomdp.cpp | glatteis/tacas21-artifact | 30b4f522bd3bdb4bebccbfae93f19851084a3db5 | [
"MIT"
] | null | null | null | artifact/storm/src/storm-pomdp-cli/storm-pomdp.cpp | glatteis/tacas21-artifact | 30b4f522bd3bdb4bebccbfae93f19851084a3db5 | [
"MIT"
] | null | null | null | artifact/storm/src/storm-pomdp-cli/storm-pomdp.cpp | glatteis/tacas21-artifact | 30b4f522bd3bdb4bebccbfae93f19851084a3db5 | [
"MIT"
] | 1 | 2022-02-05T12:39:53.000Z | 2022-02-05T12:39:53.000Z | #include "storm/utility/initialize.h"
#include "storm/settings/modules/GeneralSettings.h"
#include "storm/settings/modules/DebugSettings.h"
#include "storm-pomdp-cli/settings/modules/POMDPSettings.h"
#include "storm-pomdp-cli/settings/modules/QualitativePOMDPAnalysisSettings.h"
#include "storm-pomdp-cli/settings/modul... | 62.586134 | 312 | 0.59095 | glatteis |
7ccb4ad509d2aec2592a7b1458ddb2436e6ca652 | 561 | cc | C++ | cpp/leetcode/153.find-minimum-in-rotated-sorted-array.cc | liubang/laboratory | 747f239a123cd0c2e5eeba893b9a4d1536555b1e | [
"MIT"
] | 3 | 2021-03-03T13:18:23.000Z | 2022-02-09T07:49:24.000Z | cpp/leetcode/153.find-minimum-in-rotated-sorted-array.cc | liubang/laboratory | 747f239a123cd0c2e5eeba893b9a4d1536555b1e | [
"MIT"
] | null | null | null | cpp/leetcode/153.find-minimum-in-rotated-sorted-array.cc | liubang/laboratory | 747f239a123cd0c2e5eeba893b9a4d1536555b1e | [
"MIT"
] | 1 | 2021-03-29T15:21:42.000Z | 2021-03-29T15:21:42.000Z | #include <gtest/gtest.h>
#include <vector>
namespace {
class Solution {
public:
int findMin(const std::vector<int>& nums) {
int s = 0, e = nums.size() - 1;
while (s < e) {
int m = (s + e) / 2;
if (nums[m] < nums[e]) {
e = m;
} else {
s = m + 1;
}
}
return num... | 19.344828 | 54 | 0.520499 | liubang |
7cd0fe7d92d1caf1a13914a8428202ce0fce3c65 | 699 | hpp | C++ | Source/WinSandbox/Physics/Collision/Collider.hpp | wradley/Freight | 91eda2ca0af64036202309f6adbf2d80c406e031 | [
"MIT"
] | null | null | null | Source/WinSandbox/Physics/Collision/Collider.hpp | wradley/Freight | 91eda2ca0af64036202309f6adbf2d80c406e031 | [
"MIT"
] | null | null | null | Source/WinSandbox/Physics/Collision/Collider.hpp | wradley/Freight | 91eda2ca0af64036202309f6adbf2d80c406e031 | [
"MIT"
] | null | null | null | #pragma once
#include <Freight/Math.hpp>
class Rigidbody;
struct Collider
{
std::shared_ptr<Rigidbody> body;
enum class Type {
HALF_SPACE,
SPHERE,
BOX,
};
virtual Type getType() const = 0;
};
struct SphereCollider : public Collider
{
fr::Vec3 position;
fr::Real radius... | 17.475 | 68 | 0.648069 | wradley |
7cd21489770eaa88635076b6ff2d7e5bfdad942a | 1,422 | hpp | C++ | include/Client/PlayerMovementSystem.hpp | maximaximal/BomberPi | 365c806e3feda7296fc10d5f9655ec696f0ab491 | [
"Zlib"
] | null | null | null | include/Client/PlayerMovementSystem.hpp | maximaximal/BomberPi | 365c806e3feda7296fc10d5f9655ec696f0ab491 | [
"Zlib"
] | null | null | null | include/Client/PlayerMovementSystem.hpp | maximaximal/BomberPi | 365c806e3feda7296fc10d5f9655ec696f0ab491 | [
"Zlib"
] | null | null | null | #ifndef CLIENT_PLAYERMOVEMENTSYSTEM_HPP_INCLUDED
#define CLIENT_PLAYERMOVEMENTSYSTEM_HPP_INCLUDED
#include <anax/System.hpp>
#include <map>
#include <Client/BombermanMap.hpp>
#include <Client/BodyComponent.hpp>
#include <Client/CollisionSystem.hpp>
#include <Client/PositionComponent.hpp>
#include <Client/PlayerInputC... | 33.069767 | 177 | 0.73699 | maximaximal |
7cd356fd0e27b6a0958aa5f0985faeae1eb4a94e | 23 | cpp | C++ | src/collider.cpp | trevorGalivan/lavaGameEngine | 9a8ce6845a8e1fd728a376d5665c5b57abcfed4c | [
"MIT"
] | 1 | 2021-03-04T23:39:46.000Z | 2021-03-04T23:39:46.000Z | src/collider.cpp | trevorGalivan/lavaGameEngine | 9a8ce6845a8e1fd728a376d5665c5b57abcfed4c | [
"MIT"
] | null | null | null | src/collider.cpp | trevorGalivan/lavaGameEngine | 9a8ce6845a8e1fd728a376d5665c5b57abcfed4c | [
"MIT"
] | null | null | null | #include "collider.h"
| 11.5 | 22 | 0.695652 | trevorGalivan |
7cd5bc778ceaf5a9aa1d1181dafa0d9b48770328 | 3,487 | cpp | C++ | lanchonete-array.cpp | jonasnunes/Cpp | f58c03ee63e37285b4a1455cc55f184672fdaf5c | [
"MIT"
] | null | null | null | lanchonete-array.cpp | jonasnunes/Cpp | f58c03ee63e37285b4a1455cc55f184672fdaf5c | [
"MIT"
] | null | null | null | lanchonete-array.cpp | jonasnunes/Cpp | f58c03ee63e37285b4a1455cc55f184672fdaf5c | [
"MIT"
] | null | null | null | #include <iostream>
#include <locale>
using namespace std;
int main()
{
setlocale(LC_CTYPE, "Portuguese");
// mesmo exemplo da lanchonete, mas usando array ao invés de struct.
string comboNome[] = {"Prata da Casa", "+ Light", "Lanche Pobre"};
int numeroItens[] = {4, 3, 2};
string comboItens[] = ... | 39.625 | 228 | 0.443648 | jonasnunes |
7cd936262513cfad24e74c8d2ef95e84c78d425c | 327 | cpp | C++ | AT-Task3-OpenGL/VoxelTextureAtlas.cpp | gualtyphone/AT-Task3-OpenGL | b14461f71b1766882082cd1481d21bd00f49cdb5 | [
"MIT"
] | 1 | 2018-11-25T10:52:57.000Z | 2018-11-25T10:52:57.000Z | AT-Task3-OpenGL/VoxelTextureAtlas.cpp | gualtyphone/AT-Task3-OpenGL | b14461f71b1766882082cd1481d21bd00f49cdb5 | [
"MIT"
] | null | null | null | AT-Task3-OpenGL/VoxelTextureAtlas.cpp | gualtyphone/AT-Task3-OpenGL | b14461f71b1766882082cd1481d21bd00f49cdb5 | [
"MIT"
] | null | null | null | #include "VoxelTextureData.h"
// UV Structure
// 0--1
// | |
// 3--2
Vector2 VoxelTextureAtlas::UVOffsets[4] =
{
Vector2(0, 0),
Vector2(1.0f / (float)numberOfTexturesWidth, 0),
Vector2(1.0f / (float)numberOfTexturesWidth, (1.0f / (float)numberOfTexturesHeight)),
Vector2(0, (1.0f / (float)numberOfTexturesHeight))... | 20.4375 | 86 | 0.681957 | gualtyphone |
7cdf666b3b837a4683272fd4dbcef1e9ec646b7f | 4,315 | cpp | C++ | thread/task/task_scheduler.cpp | aconstlink/snakeoil | 3c6e02655e1134f8422f01073090efdde80fc109 | [
"MIT"
] | 1 | 2017-08-11T19:12:24.000Z | 2017-08-11T19:12:24.000Z | thread/task/task_scheduler.cpp | aconstlink/snakeoil | 3c6e02655e1134f8422f01073090efdde80fc109 | [
"MIT"
] | 11 | 2018-07-07T20:09:44.000Z | 2020-02-16T22:45:09.000Z | thread/task/task_scheduler.cpp | aconstlink/snakeoil | 3c6e02655e1134f8422f01073090efdde80fc109 | [
"MIT"
] | null | null | null | //------------------------------------------------------------
// snakeoil (c) Alexis Constantin Link
// Distributed under the MIT license
//------------------------------------------------------------
#include "task_graph.h"
#include "task_scheduler.h"
#include "serial_executor.h"
#include "async_executor.h"
using n... | 28.959732 | 103 | 0.451217 | aconstlink |
7ce36e0a29e0abf213c345f6ad29a83274348bc8 | 2,016 | hpp | C++ | libraries/app/include/graphene/app/api_access.hpp | siwelo/bitshares-2 | 03561bfcf97801b44863bd51c400aae3ba51e3b0 | [
"MIT"
] | null | null | null | libraries/app/include/graphene/app/api_access.hpp | siwelo/bitshares-2 | 03561bfcf97801b44863bd51c400aae3ba51e3b0 | [
"MIT"
] | null | null | null | libraries/app/include/graphene/app/api_access.hpp | siwelo/bitshares-2 | 03561bfcf97801b44863bd51c400aae3ba51e3b0 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* 1. Any modified source or binaries are used only with the BitShares network.
*... | 37.333333 | 208 | 0.761905 | siwelo |
7ce48eaa8a35c604b4165f73d7b9b328bef2d88f | 4,822 | cpp | C++ | Plugins/org.mitk.gui.qt.application/src/QmitkFileOpenAction.cpp | zhaomengxiao/MITK | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2022-03-03T12:03:32.000Z | 2022-03-03T12:03:32.000Z | Plugins/org.mitk.gui.qt.application/src/QmitkFileOpenAction.cpp | zhaomengxiao/MITK | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2021-12-22T10:19:02.000Z | 2021-12-22T10:19:02.000Z | Plugins/org.mitk.gui.qt.application/src/QmitkFileOpenAction.cpp | zhaomengxiao/MITK_lancet | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2020-11-27T09:41:18.000Z | 2020-11-27T09:41:18.000Z | /*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... | 25.114583 | 125 | 0.669432 | zhaomengxiao |
7ce77ec9347b82ef01455f6a7ab6f1304b65f116 | 605 | cpp | C++ | Strings/Words/Reverse the String.cpp | cenation092/InterviewBit-Solutions | ac4510a10d965fb681f7b3c80990407e18bc2668 | [
"MIT"
] | 7 | 2019-06-29T08:57:07.000Z | 2021-02-13T06:43:40.000Z | Strings/Words/Reverse the String.cpp | cenation092/InterviewBit-Solutions | ac4510a10d965fb681f7b3c80990407e18bc2668 | [
"MIT"
] | null | null | null | Strings/Words/Reverse the String.cpp | cenation092/InterviewBit-Solutions | ac4510a10d965fb681f7b3c80990407e18bc2668 | [
"MIT"
] | 3 | 2020-06-17T04:26:26.000Z | 2021-02-12T04:51:40.000Z | void Solution::reverseWords(string &A) {
reverse(A.begin(), A.end());
string s = "";
int i = 0;
while( A[i] == ' ')i++;
string temp = "";
while( i < A.size() && A[i] != ' ' ){
temp += A[i];
i++;
}
reverse(temp.begin(), temp.end());
s += temp;
while( i < A.size() )... | 21.607143 | 46 | 0.33719 | cenation092 |
7ce9280eba22cc0b6b5fa464cec9212ece3cc0f2 | 5,930 | cpp | C++ | Sample18_2/app/src/main/cpp/util/LoadUtil.cpp | luopan007/Vulkan_Develpment_Samples | 1be40631e3b2d44aae7140f0ef17c5643a86545e | [
"Unlicense"
] | 5 | 2020-11-20T00:06:30.000Z | 2021-12-07T11:39:17.000Z | Sample18_2/app/src/main/cpp/util/LoadUtil.cpp | luopan007/Vulkan_Develpment_Samples | 1be40631e3b2d44aae7140f0ef17c5643a86545e | [
"Unlicense"
] | null | null | null | Sample18_2/app/src/main/cpp/util/LoadUtil.cpp | luopan007/Vulkan_Develpment_Samples | 1be40631e3b2d44aae7140f0ef17c5643a86545e | [
"Unlicense"
] | 7 | 2021-01-01T10:54:58.000Z | 2022-01-13T02:21:54.000Z | #include "LoadUtil.h"
#include <iostream>
#include <string>
#include <string.h>
#include <math.h>
#include <vector>
#include <map>
#include <set>
#include <fstream>
#include <sstream>
#include <stdlib.h>
#include <vulkan/vulkan.h>
#include "FileUtil.h"
using namespace std;
size_t splitString(const string& strSrc, cons... | 26.238938 | 125 | 0.616863 | luopan007 |
7cec34c9a68fd99cd10d58595333207bf912a1d2 | 1,659 | hpp | C++ | src/common/interfaces/models/ibrush.hpp | squeevee/Addle | 20ec4335669fbd88d36742f586899d8416920959 | [
"MIT"
] | 3 | 2020-03-05T06:36:51.000Z | 2020-06-20T03:25:02.000Z | src/common/interfaces/models/ibrush.hpp | squeevee/Addle | 20ec4335669fbd88d36742f586899d8416920959 | [
"MIT"
] | 13 | 2020-03-11T17:43:42.000Z | 2020-12-11T03:36:05.000Z | src/common/interfaces/models/ibrush.hpp | squeevee/Addle | 20ec4335669fbd88d36742f586899d8416920959 | [
"MIT"
] | 1 | 2020-09-28T06:53:46.000Z | 2020-09-28T06:53:46.000Z | /**
* Addle source code
* @file
* @copyright Copyright 2020 Eleanor Hawk
* @copyright Modification and distribution permitted under the terms of the
* MIT License. See "LICENSE" for full details.
*/
#ifndef IBRUSH_HPP
#define IBRUSH_HPP
#include <QIcon>
#include <QList>
#include "idtypes/brushid.hpp"
#include ... | 24.043478 | 77 | 0.711272 | squeevee |
7cf2a97a5b01882b2de3acf43af4fc9e2525da7d | 2,166 | cc | C++ | IOMultiplexing/poll/poll_srv.cc | HONGYU-LEE/NetWorkProgram | 0ce15d2211c56f635f8fde948632c16009d8d96f | [
"MIT"
] | null | null | null | IOMultiplexing/poll/poll_srv.cc | HONGYU-LEE/NetWorkProgram | 0ce15d2211c56f635f8fde948632c16009d8d96f | [
"MIT"
] | null | null | null | IOMultiplexing/poll/poll_srv.cc | HONGYU-LEE/NetWorkProgram | 0ce15d2211c56f635f8fde948632c16009d8d96f | [
"MIT"
] | null | null | null | #include<poll.h>
#include<vector>
#include <sys/socket.h>
#include"TcpSocket.hpp"
#define MAX_SIZE 10
using namespace std;
int main(int argc, char* argv[])
{
if(argc != 3)
{
cerr << "正确输入方式: ./select_srv.cc ip port\n" << endl;
return -1;
}
string srv_ip = argv[1];
uint16_t srv_port = stoi(argv[2]);
... | 16.661538 | 67 | 0.495845 | HONGYU-LEE |
7cf504084893fb79c4ca0e3a7d8686499d78e081 | 5,719 | hpp | C++ | include/elemental/blas-like/level2/Syr.hpp | ahmadia/Elemental-1 | f9a82c76a06728e9e04a4316e41803efbadb5a19 | [
"BSD-3-Clause"
] | null | null | null | include/elemental/blas-like/level2/Syr.hpp | ahmadia/Elemental-1 | f9a82c76a06728e9e04a4316e41803efbadb5a19 | [
"BSD-3-Clause"
] | null | null | null | include/elemental/blas-like/level2/Syr.hpp | ahmadia/Elemental-1 | f9a82c76a06728e9e04a4316e41803efbadb5a19 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2009-2013, Jack Poulson
All rights reserved.
This file is part of Elemental and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause
*/
#pragma once
#ifndef BLAS_SYR_HPP
#define BLAS_SYR_HPP
... | 32.867816 | 80 | 0.503934 | ahmadia |
7cf553e2bf5442978a22d937f8e2cf5584a52da9 | 2,018 | cpp | C++ | libs/base/src/ring_log.cpp | blagodarin/yttrium | 534289c3082355e5537a03c0b5855b60f0c344ad | [
"Apache-2.0"
] | null | null | null | libs/base/src/ring_log.cpp | blagodarin/yttrium | 534289c3082355e5537a03c0b5855b60f0c344ad | [
"Apache-2.0"
] | null | null | null | libs/base/src/ring_log.cpp | blagodarin/yttrium | 534289c3082355e5537a03c0b5855b60f0c344ad | [
"Apache-2.0"
] | null | null | null | // This file is part of the Yttrium toolkit.
// Copyright (C) Sergei Blagodarin.
// SPDX-License-Identifier: Apache-2.0
#include "ring_log.h"
#include <seir_base/int_utils.hpp>
#include <algorithm>
#include <cassert>
#include <cstring>
namespace
{
static_assert(seir::isPowerOf2(Yt::RingLog::BufferSize));
// If B... | 31.046154 | 93 | 0.697721 | blagodarin |
7cf6473f1e8501b080c2e6ec1449e8cb4db9fe60 | 1,478 | hpp | C++ | HN_DateTime/HN_Clock.hpp | Jusdetalent/JT_Utility | 2dec8ff0e8a0263a589f0829d63cf01dcae46d79 | [
"MIT"
] | null | null | null | HN_DateTime/HN_Clock.hpp | Jusdetalent/JT_Utility | 2dec8ff0e8a0263a589f0829d63cf01dcae46d79 | [
"MIT"
] | null | null | null | HN_DateTime/HN_Clock.hpp | Jusdetalent/JT_Utility | 2dec8ff0e8a0263a589f0829d63cf01dcae46d79 | [
"MIT"
] | null | null | null | #ifndef HN_CLOCK_HPP_INCLUDED
#define HN_CLOCK_HPP_INCLUDED
#include <sys/time.h>
#include <string>
#include "HN_TimePoint.hpp"
namespace hnapi
{
namespace datetime
{
// Time category definition
enum HN_ClockMode{
HN_YEARS_MODE = 1,
HN_MOUTHS... | 28.423077 | 74 | 0.504736 | Jusdetalent |
7cf7da24a72b18a9f275569f4b62621b471c2f10 | 6,386 | cpp | C++ | transport_catalogue/json/__tests__/json__tests.cpp | oleg-nazarov/cpp-yandex-praktikum | a09781c198b0aff469c4d1175c91d72800909bf2 | [
"MIT"
] | 1 | 2022-03-15T19:01:03.000Z | 2022-03-15T19:01:03.000Z | transport_catalogue/json/__tests__/json__tests.cpp | oleg-nazarov/cpp-yandex-praktikum | a09781c198b0aff469c4d1175c91d72800909bf2 | [
"MIT"
] | 1 | 2022-03-15T19:11:59.000Z | 2022-03-15T19:11:59.000Z | transport_catalogue/json/__tests__/json__tests.cpp | oleg-nazarov/cpp-yandex-praktikum | a09781c198b0aff469c4d1175c91d72800909bf2 | [
"MIT"
] | null | null | null | #include <cassert>
#include <chrono>
#include <iostream>
#include <sstream>
#include <string_view>
#include "../../../helpers/run_test.h"
#include "../json.h"
using namespace json;
using namespace std::literals;
namespace {
json::Document LoadJSON(const std::string& s) {
std::istringstream strm(s);
return ... | 27.407725 | 130 | 0.596461 | oleg-nazarov |
7cf87a8d1cc883576c03473d174f297c4087aaa3 | 81,920 | cpp | C++ | T3000/T3000CO2_NET/CT3000CO2_NET.cpp | DHSERVICE56/T3000_Building_Automation_System | 77bd47a356211b1c8ad09fb8d785e9f880d3cd26 | [
"MIT"
] | 1 | 2019-12-11T05:14:08.000Z | 2019-12-11T05:14:08.000Z | T3000/T3000CO2_NET/CT3000CO2_NET.cpp | DHSERVICE56/T3000_Building_Automation_System | 77bd47a356211b1c8ad09fb8d785e9f880d3cd26 | [
"MIT"
] | null | null | null | T3000/T3000CO2_NET/CT3000CO2_NET.cpp | DHSERVICE56/T3000_Building_Automation_System | 77bd47a356211b1c8ad09fb8d785e9f880d3cd26 | [
"MIT"
] | 1 | 2021-05-31T18:56:31.000Z | 2021-05-31T18:56:31.000Z |
///////////////////////////////// Includes //////////////////////////////////
#include "stdafx.h"
#include "CT3000CO2_NET.h"
//////////////////////////////// Statics / Macros /////////////////////////////
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
////////////////////////////////// Implementation ////////////... | 26.408769 | 121 | 0.758801 | DHSERVICE56 |
7cf90679a996e3f5739e32c797498b44e4d14691 | 1,320 | cpp | C++ | code-forces/Educational 87/DCopy.cpp | ErickJoestar/competitive-programming | 76afb766dbc18e16315559c863fbff19a955a569 | [
"MIT"
] | 1 | 2020-04-23T00:35:38.000Z | 2020-04-23T00:35:38.000Z | code-forces/Educational 87/DCopy.cpp | ErickJoestar/competitive-programming | 76afb766dbc18e16315559c863fbff19a955a569 | [
"MIT"
] | null | null | null | code-forces/Educational 87/DCopy.cpp | ErickJoestar/competitive-programming | 76afb766dbc18e16315559c863fbff19a955a569 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define ENDL '\n'
#define deb(u) cout << #u " : " << (u) << ENDL;
#define deba(alias, u) cout << alias << ": " << (u) << ENDL;
#define debp(u, v) cout << u << " : " << v << ENDL;
#define pb push_back
#define F first
#define S second
#define lli long long
#define pii pair<int, int>
#define pll p... | 19.411765 | 60 | 0.496212 | ErickJoestar |
cfaa4a625fb4a16b09240046624c037b68a315b6 | 1,834 | cpp | C++ | src/data/long_distance_social_distancing_ii.cpp | ACM-UCI/ACM-UCI-Website | 6092db56b50f5c6d26a6e9ad65adb553f44ccb5f | [
"MIT"
] | 3 | 2019-02-02T02:46:23.000Z | 2020-08-14T14:04:04.000Z | src/data/long_distance_social_distancing_ii.cpp | ACM-UCI/ACM-UCI-Website | 6092db56b50f5c6d26a6e9ad65adb553f44ccb5f | [
"MIT"
] | 47 | 2019-02-01T08:50:24.000Z | 2022-03-01T18:35:05.000Z | src/data/long_distance_social_distancing_ii.cpp | ACM-UCI/ACM-UCI-Website | 6092db56b50f5c6d26a6e9ad65adb553f44ccb5f | [
"MIT"
] | 5 | 2018-11-30T03:10:08.000Z | 2020-09-22T06:37:50.000Z | #include <string>
#include <iterator>
#include <iostream>
#include <algorithm>
#include <array>
using namespace std;
#define LL long long
#define UL unsigned long
#define matrix array<array<LL, 5>, 5>
#define vector array<LL, 5>
LL mod = 1000000007;
matrix matmul(matrix a, matrix b)
{
matrix c;
for (unsigned... | 20.840909 | 109 | 0.401309 | ACM-UCI |
cfaead4da4e3c588cab43e9c6f64acff48fbb9dd | 4,198 | hpp | C++ | includes/zab/strong_types.hpp | HungMingWu/zab | 9e9fd78d192b4d037a6edbbd4c1474bd6e01feaf | [
"MIT"
] | null | null | null | includes/zab/strong_types.hpp | HungMingWu/zab | 9e9fd78d192b4d037a6edbbd4c1474bd6e01feaf | [
"MIT"
] | null | null | null | includes/zab/strong_types.hpp | HungMingWu/zab | 9e9fd78d192b4d037a6edbbd4c1474bd6e01feaf | [
"MIT"
] | null | null | null | /*
* MMM"""AMV db `7MM"""Yp,
* M' AMV ;MM: MM Yb
* ' AMV ,V^MM. MM dP
* AMV ,M `MM MM"""bg.
* AMV , AbmmmqMA MM `Y
* AMV ,M A' VML MM ,9
* AMVmmmmMM .AMA. .AMMA..JMMmmmd9
*
*
* MIT License
*
* Copyright (c) 2021... | 27.25974 | 98 | 0.579085 | HungMingWu |
cfb505f74f6d71b58ea0b4f34dc4e99796049a70 | 574 | cpp | C++ | _site/Competitive Programming/Hackerearth/Bishu and Soldiers.cpp | anujkyadav07/anuj-k-yadav.github.io | ac5cccc8cdada000ba559538cd84921437b3c5e6 | [
"MIT"
] | 1 | 2019-06-10T04:39:49.000Z | 2019-06-10T04:39:49.000Z | _site/Competitive Programming/Hackerearth/Bishu and Soldiers.cpp | anujkyadav07/anuj-k-yadav.github.io | ac5cccc8cdada000ba559538cd84921437b3c5e6 | [
"MIT"
] | 2 | 2021-09-27T23:34:07.000Z | 2022-02-26T05:54:27.000Z | _site/Competitive Programming/Hackerearth/Bishu and Soldiers.cpp | anujkyadav07/anuj-k-yadav.github.io | ac5cccc8cdada000ba559538cd84921437b3c5e6 | [
"MIT"
] | 3 | 2019-06-23T14:15:08.000Z | 2019-07-09T20:40:58.000Z | #include <bits/stdc++.h>
using namespace std;
int main(){
int n, q, a;
cin>>n;
vector<int> arr;
for (int i = 0; i < n; ++i)
{
cin>>a;
arr.push_back(a);
}
cin>>q;
int p[q];
/*for (int i = 0; i < q; ++i)
{
cin>>p[i];
}*/
sort(arr.begin(),arr.end());
for (int i = 0; i < q; ++i)
{
cin>>a;
vector<in... | 15.513514 | 47 | 0.473868 | anujkyadav07 |
cfbbcc6c25f6bde73a20fbe38b313f5b067b00b5 | 1,474 | cpp | C++ | book/basics/names/Puzzle.cpp | luanics/cpp-illustrated | 6049de2119a53d656a63b65d9441e680355ef196 | [
"MIT"
] | null | null | null | book/basics/names/Puzzle.cpp | luanics/cpp-illustrated | 6049de2119a53d656a63b65d9441e680355ef196 | [
"MIT"
] | null | null | null | book/basics/names/Puzzle.cpp | luanics/cpp-illustrated | 6049de2119a53d656a63b65d9441e680355ef196 | [
"MIT"
] | null | null | null | #include <iostream>
int x;
namespace Y {
int a;
void f(float) {}
void h(int) {}
}
namespace Z {
void h(double) {}
}
namespace A {
using namespace Y;
void f(int) {}
void g(int) {}
void g() {}
int i;
}
namespace B {
using namespace Z;
void f(char) {}
int i;
}
namespace AB {
using namespace A;
... | 27.296296 | 102 | 0.565129 | luanics |
cfbc761c900f7fd17d6e2b0b00ef46aaeb0c8117 | 6,161 | hpp | C++ | src/vtu11/vtu11/impl/writer_impl.hpp | gtsc/HPC-divers-license | fa1493e217ff76a407feea9b80623eca4691e044 | [
"BSD-3-Clause"
] | 7 | 2020-01-07T16:38:31.000Z | 2022-01-26T19:23:26.000Z | src/vtu11/vtu11/impl/writer_impl.hpp | gtsc/HPC-divers-license | fa1493e217ff76a407feea9b80623eca4691e044 | [
"BSD-3-Clause"
] | 25 | 2020-01-13T17:38:43.000Z | 2021-12-09T11:58:15.000Z | vtu11/impl/writer_impl.hpp | phmkopp/vtu11 | 7afb9e33d076536af3ac333211a7a78576d582bf | [
"BSD-3-Clause"
] | 3 | 2020-04-08T10:46:23.000Z | 2020-04-15T18:34:41.000Z | // __ ____ ____
// ___ ___/ |_ __ _/_ /_ |
// \ \/ /\ __\ | \ || |
// \ / | | | | / || |
// \_/ |__| |____/|___||___|
//
// License: BSD License ; see LICENSE
//
#ifndef VTU11_WRITER_IMPL_HPP
#define VTU11_WRITER_IMPL_HPP
#include "vtu11/inc/utilities.hpp"
#include <fst... | 26.786957 | 94 | 0.635286 | gtsc |
cfbf4201b3f86c93d0709acd6e844cd5f6665646 | 4,168 | cpp | C++ | tests/test_configd/fetch/UnittestLayerTypeCommand.cpp | webOS-ports/configd | 707f158782b82417b197c00845d3fdf44dd5bcfd | [
"Apache-2.0"
] | 2 | 2018-03-22T19:07:50.000Z | 2019-05-06T05:20:31.000Z | tests/test_configd/fetch/UnittestLayerTypeCommand.cpp | webOS-ports/configd | 707f158782b82417b197c00845d3fdf44dd5bcfd | [
"Apache-2.0"
] | null | null | null | tests/test_configd/fetch/UnittestLayerTypeCommand.cpp | webOS-ports/configd | 707f158782b82417b197c00845d3fdf44dd5bcfd | [
"Apache-2.0"
] | 3 | 2018-03-22T19:07:52.000Z | 2022-02-26T04:28:53.000Z | // Copyright (c) 2016-2018 LG Electronics, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... | 24.662722 | 81 | 0.740883 | webOS-ports |
cfd5914eb8b72dfc901dc7a0666625c8023983d4 | 1,505 | cpp | C++ | src/prod/src/ServiceModel/management/FaultAnalysisService/RestartDeployedCodePackageStatus.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | 2,542 | 2018-03-14T21:56:12.000Z | 2019-05-06T01:18:20.000Z | src/prod/src/ServiceModel/management/FaultAnalysisService/RestartDeployedCodePackageStatus.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | 994 | 2019-05-07T02:39:30.000Z | 2022-03-31T13:23:04.000Z | src/prod/src/ServiceModel/management/FaultAnalysisService/RestartDeployedCodePackageStatus.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | 300 | 2018-03-14T21:57:17.000Z | 2019-05-06T20:07:00.000Z | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
using nam... | 33.444444 | 121 | 0.756146 | AnthonyM |
cfdb15f2ec287001e85829552f57bd9597ff90b1 | 213 | cpp | C++ | UE4_Project_Hunt/Source/UE4_Project_Hunt/UE4_Project_Hunt.cpp | AhmedEhabAmer/project-hunt | 21d881ea9243101603d5b8d402fe7f3c46d29ecf | [
"MIT"
] | 1 | 2020-06-25T13:09:29.000Z | 2020-06-25T13:09:29.000Z | UE4_Project_Hunt/Source/UE4_Project_Hunt/UE4_Project_Hunt.cpp | AhmedEhabAmer/project-hunt | 21d881ea9243101603d5b8d402fe7f3c46d29ecf | [
"MIT"
] | null | null | null | UE4_Project_Hunt/Source/UE4_Project_Hunt/UE4_Project_Hunt.cpp | AhmedEhabAmer/project-hunt | 21d881ea9243101603d5b8d402fe7f3c46d29ecf | [
"MIT"
] | null | null | null | // Copyright Epic Games, Inc. All Rights Reserved.
#include "UE4_Project_Hunt.h"
#include "Modules/ModuleManager.h"
IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, UE4_Project_Hunt, "UE4_Project_Hunt" );
| 30.428571 | 94 | 0.812207 | AhmedEhabAmer |
cfdc370a63f2cb5d9590aa746bdc53be830fa883 | 599 | cpp | C++ | src/data/dmc_octree_node.cpp | Svennny/isomesh | be7ed638079a81b1ca468833aa2972656277aaaf | [
"MIT"
] | 4 | 2019-04-08T17:36:53.000Z | 2020-04-11T18:53:29.000Z | src/data/dmc_octree_node.cpp | Svennny/isomesh | be7ed638079a81b1ca468833aa2972656277aaaf | [
"MIT"
] | null | null | null | src/data/dmc_octree_node.cpp | Svennny/isomesh | be7ed638079a81b1ca468833aa2972656277aaaf | [
"MIT"
] | 2 | 2020-01-26T18:55:41.000Z | 2020-09-30T20:10:11.000Z | /* This file is part of Isomesh library, released under MIT license.
Copyright (c) 2018-2019 Pavel Asyutchenko (sventeam@yandex.ru) */
#include <isomesh/data/dmc_octree_node.hpp>
#include <stdexcept>
namespace isomesh
{
DMC_OctreeNode::DMC_OctreeNode () noexcept : children (nullptr)
{}
DMC_OctreeNode::~DMC_Octree... | 20.655172 | 68 | 0.734558 | Svennny |
cfdd63392854982e1a705b102dac59599023d4ff | 1,298 | cpp | C++ | Breakout/src/Ball.cpp | Ebsidia/Mana | ebecc2a02ab65d634438e2c207b4bb0b8af01505 | [
"Apache-2.0"
] | null | null | null | Breakout/src/Ball.cpp | Ebsidia/Mana | ebecc2a02ab65d634438e2c207b4bb0b8af01505 | [
"Apache-2.0"
] | null | null | null | Breakout/src/Ball.cpp | Ebsidia/Mana | ebecc2a02ab65d634438e2c207b4bb0b8af01505 | [
"Apache-2.0"
] | null | null | null | #include "Ball.h"
Ball::Ball()
{
}
Ball::~Ball()
{
}
void Ball::loadAssets()
{
m_ballTexture = Mana::Texture2D::Create("assets/Breakout/textures/pongball.png");
}
void Ball::onUpdate(Mana::TimeStep dt)
{
if (Mana::Input::isKeyPressed(MA_KEY_SPACE))
m_isStuck = false;
if (!m_isStuck)
{
... | 19.969231 | 131 | 0.561633 | Ebsidia |
cfe24e0ddfc191105daa49549d0ef38d39e802f3 | 3,904 | cpp | C++ | FryEngine/tests/FryEngine/ECS/UT_ECS_System.cpp | Schtekt/FryEngine | eb36df4d0b42ca5a0549a130709c567e88b6a826 | [
"MIT"
] | null | null | null | FryEngine/tests/FryEngine/ECS/UT_ECS_System.cpp | Schtekt/FryEngine | eb36df4d0b42ca5a0549a130709c567e88b6a826 | [
"MIT"
] | null | null | null | FryEngine/tests/FryEngine/ECS/UT_ECS_System.cpp | Schtekt/FryEngine | eb36df4d0b42ca5a0549a130709c567e88b6a826 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <iostream>
#include "helperClasses.h"
TEST(ECS, CustomSystemSingleComponent)
{
ECS* ecs = new ECS();
DeleteIntClassSystem sys;
Entity* ent = ecs->CreateEntity();
int myNumber = 5;
ent->AddComponent<DeleteIntClass>(&myNumber);
ASSERT_EQ(myNumber, 5);
... | 20.765957 | 95 | 0.573258 | Schtekt |
cfe7e8be38d0795cbd9830610e49d419ae073f94 | 1,416 | hpp | C++ | src/Engine.hpp | Galhad/firestorm | 3c1584b1e5b95f21d963b9cf226f6ec1a469d7af | [
"MIT"
] | null | null | null | src/Engine.hpp | Galhad/firestorm | 3c1584b1e5b95f21d963b9cf226f6ec1a469d7af | [
"MIT"
] | null | null | null | src/Engine.hpp | Galhad/firestorm | 3c1584b1e5b95f21d963b9cf226f6ec1a469d7af | [
"MIT"
] | null | null | null |
#ifndef FIRESTORM_ENGINE_HPP
#define FIRESTORM_ENGINE_HPP
#include "EngineCreationParams.hpp"
#include "graphics/GraphicsManager.hpp"
#include "scene/SceneManager.hpp"
#include "physics/PhysicsManager.hpp"
#include "io/InputManager.hpp"
#include "io/FileProvider.hpp"
#include "utils/Logger.hpp"
#include <memory>
#... | 24.413793 | 82 | 0.737994 | Galhad |
cfe80dd1d50da4993f3e77635a4006f700c358ea | 63,477 | cpp | C++ | app/ValidateIABStream.cpp | DTSProAudio/iab-validator | 694b3782672aece877a3d5f79996f379e74299e9 | [
"MIT"
] | 3 | 2020-03-17T17:46:30.000Z | 2020-10-01T09:09:00.000Z | app/ValidateIABStream.cpp | DTSProAudio/iab-validator | 694b3782672aece877a3d5f79996f379e74299e9 | [
"MIT"
] | 1 | 2020-04-14T15:59:00.000Z | 2020-04-14T15:59:00.000Z | app/ValidateIABStream.cpp | DTSProAudio/iab-validator | 694b3782672aece877a3d5f79996f379e74299e9 | [
"MIT"
] | 3 | 2020-04-01T16:10:49.000Z | 2020-04-16T06:47:37.000Z | /* Copyright (c) 2020 Xperi Corporation (and its subsidiaries). 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 t... | 39.135018 | 158 | 0.626054 | DTSProAudio |
cfeb2bd73d4acbde2b977f44ced847f1ec2305fa | 14,039 | cpp | C++ | Libraries/RobsJuceModules/rosic/filters/rosic_MultiModeFilter.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 34 | 2017-04-19T18:26:02.000Z | 2022-02-15T17:47:26.000Z | Libraries/RobsJuceModules/rosic/filters/rosic_MultiModeFilter.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 307 | 2017-05-04T21:45:01.000Z | 2022-02-03T00:59:01.000Z | Libraries/RobsJuceModules/rosic/filters/rosic_MultiModeFilter.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 4 | 2017-09-05T17:04:31.000Z | 2021-12-15T21:24:28.000Z | //#include "rosic_MultiModeFilter.h"
//using namespace rosic;
//-------------------------------------------------------------------------------------------------
// construction/destruction:
MultiModeFilter::MultiModeFilter()
{
parameters = new MultiModeFilterParameters;
isMaster = true;
freqWi... | 29.247917 | 99 | 0.697557 | RobinSchmidt |
cfed7ff24ed2cca2f5564f91eadf82b54ff46306 | 3,577 | cpp | C++ | Classes/Scenes/LogoScene.cpp | irfanf/Galvighas3D | b180b18f840efbeac9c5b84b9901f30d7889e123 | [
"MIT"
] | null | null | null | Classes/Scenes/LogoScene.cpp | irfanf/Galvighas3D | b180b18f840efbeac9c5b84b9901f30d7889e123 | [
"MIT"
] | null | null | null | Classes/Scenes/LogoScene.cpp | irfanf/Galvighas3D | b180b18f840efbeac9c5b84b9901f30d7889e123 | [
"MIT"
] | null | null | null | //_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
//!
//! IRFAN FAHMI RAMADHAN
//!
//! 2016/5/24
//!
//! LogoScene.cpp
//!
//! Copyright ©2016 IrGame All Right Reserved
//_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
//---------------------------------------------------------------------
#include "LogoScene... | 27.945313 | 96 | 0.55745 | irfanf |
cff5ef77e14bec558baaf5c6901fa4a20001e9ef | 785 | hpp | C++ | server/memory_resource_manager.hpp | photonmaster/scymnus | bcbf580091a730c63e15b67b6331705a281ba20b | [
"MIT"
] | 7 | 2021-08-19T01:11:21.000Z | 2021-08-31T15:25:51.000Z | server/memory_resource_manager.hpp | photonmaster/scymnus | bcbf580091a730c63e15b67b6331705a281ba20b | [
"MIT"
] | null | null | null | server/memory_resource_manager.hpp | photonmaster/scymnus | bcbf580091a730c63e15b67b6331705a281ba20b | [
"MIT"
] | null | null | null | #pragma once
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <iostream>
#include <list>
#include <memory_resource>
#include <thread>
namespace scymnus {
class memory_resource_manager {
public:
static memory_resource_manager &instance() {
thread_local memory_resource_manager manager;
... | 21.805556 | 81 | 0.699363 | photonmaster |
cff603a933870fbf2c96e5292f1ec7e006175709 | 326 | cpp | C++ | 1183/1681782_AC_15MS_124K.cpp | vandreas19/POJ_sol | 4895764ab800e8c2c4b2334a562dec2f07fa243e | [
"MIT"
] | 18 | 2017-08-14T07:34:42.000Z | 2022-01-29T14:20:29.000Z | 1183/1681782_AC_15MS_124K.cpp | pinepara/poj_solutions | 4895764ab800e8c2c4b2334a562dec2f07fa243e | [
"MIT"
] | null | null | null | 1183/1681782_AC_15MS_124K.cpp | pinepara/poj_solutions | 4895764ab800e8c2c4b2334a562dec2f07fa243e | [
"MIT"
] | 14 | 2016-12-21T23:37:22.000Z | 2021-07-24T09:38:57.000Z | #include<iostream>
using namespace std;
void main()
{
unsigned long iA,iB,iSum=0;
cin>>iA;
for(iB=iA+1;iB<=iA*2;iB+=1)
if(!((iA*iB+1)%(iB-iA)) && (iB+((iA*iB+1)/(iB-iA))<iSum || !iSum))
{
iSum=iB+((iA*iB+1)/(iB-iA));
//cout<<iB<<"+"<<((iA*iB+1)/(iB-iA))<<"="<<iSum<<endl;
}
cout<<iSum<<en... | 20.375 | 69 | 0.496933 | vandreas19 |
cff6b61bd9a794f33363be172a9586b242d71d6e | 8,432 | hpp | C++ | include/g6/http/message.hpp | Garcia6l20/g6-web | 6e9a1f9d85f26a977407d4c895f357e5f045efb9 | [
"MIT"
] | 3 | 2021-05-16T11:37:59.000Z | 2022-01-30T13:52:59.000Z | include/g6/http/message.hpp | Garcia6l20/g6-web | 6e9a1f9d85f26a977407d4c895f357e5f045efb9 | [
"MIT"
] | null | null | null | include/g6/http/message.hpp | Garcia6l20/g6-web | 6e9a1f9d85f26a977407d4c895f357e5f045efb9 | [
"MIT"
] | 1 | 2021-11-06T12:36:37.000Z | 2021-11-06T12:36:37.000Z | /**
* @file cppcoro/http/htt_message.hpp
* @author Garcia Sylvain <garcia.6l20@gmail.com>
*/
#pragma once
#include <cppcoro/http/details/static_parser_handler.hpp>
#include <cppcoro/detail/is_specialization.hpp>
#include <fmt/format.h>
#include <span>
namespace cppcoro::http
{
namespace detail
{
enum
{
m... | 27.736842 | 103 | 0.631641 | Garcia6l20 |
cfff77bf78c067378423efa49bf841301e9bf67d | 1,587 | hpp | C++ | include/termox/widget/detail/pipe_utility.hpp | a-n-t-h-o-n-y/MCurses | c9184a0fefbdc4eb9a044f815ee2270e6b8f202c | [
"MIT"
] | 284 | 2017-11-07T10:06:48.000Z | 2021-01-12T15:32:51.000Z | include/termox/widget/detail/pipe_utility.hpp | a-n-t-h-o-n-y/MCurses | c9184a0fefbdc4eb9a044f815ee2270e6b8f202c | [
"MIT"
] | 38 | 2018-01-14T12:34:54.000Z | 2020-09-26T15:32:43.000Z | include/termox/widget/detail/pipe_utility.hpp | a-n-t-h-o-n-y/MCurses | c9184a0fefbdc4eb9a044f815ee2270e6b8f202c | [
"MIT"
] | 31 | 2017-11-30T11:22:21.000Z | 2020-11-03T05:27:47.000Z | #ifndef TERMOX_WIDGET_DETAIL_PIPE_UTILITY_HPP
#define TERMOX_WIDGET_DETAIL_PIPE_UTILITY_HPP
#include <memory>
#include <type_traits>
#include <termox/widget/widget.hpp>
namespace ox::pipe::detail {
/// Used to call operator| overload to create a new Range from filter predicate
template <typename Predicate>
class Fil... | 25.596774 | 79 | 0.724008 | a-n-t-h-o-n-y |
3205b4dd8cffd38079a04954c2bd51830e0387cb | 1,325 | hpp | C++ | src/endpoint.hpp | pcdangio/ros-driver_tcpip | 7e2aa0d727cd3a86ec5ddc7f3495a6f461e55702 | [
"MIT"
] | 2 | 2021-03-23T19:15:55.000Z | 2021-04-04T13:55:53.000Z | src/endpoint.hpp | pcdangio/ros-driver_tcpip | 7e2aa0d727cd3a86ec5ddc7f3495a6f461e55702 | [
"MIT"
] | 1 | 2019-07-30T01:36:43.000Z | 2019-07-31T23:52:49.000Z | src/endpoint.hpp | pcdangio/ros-driver_modem | 7e2aa0d727cd3a86ec5ddc7f3495a6f461e55702 | [
"MIT"
] | 1 | 2022-03-16T03:46:55.000Z | 2022-03-16T03:46:55.000Z | /// \file endpoint.hpp
/// \brief Defines endpoint conversion functions.
#ifndef DRIVER_TCPIP___ENDPOINT_H
#define DRIVER_TCPIP___ENDPOINT_H
#include <driver_tcpip_msgs/endpoint.h>
#include <boost/asio/ip/tcp.hpp>
#include <boost/asio/ip/udp.hpp>
namespace driver_tcpip {
namespace endpoint {
// TCP
/// \brief Conve... | 36.805556 | 92 | 0.763774 | pcdangio |
32127331669f0d118c8f3c2d68bfffd83c3d9cff | 13,169 | cpp | C++ | src/dogfood/output/text_modifier_test.cpp | lsilvest/crpcut | e9d694fb04599b72ebdcf6fea7d6ad598807ff41 | [
"BSD-2-Clause"
] | 1 | 2019-04-09T12:48:41.000Z | 2019-04-09T12:48:41.000Z | src/dogfood/output/text_modifier_test.cpp | lsilvest/crpcut | e9d694fb04599b72ebdcf6fea7d6ad598807ff41 | [
"BSD-2-Clause"
] | 2 | 2020-05-06T16:22:07.000Z | 2020-05-07T04:02:41.000Z | src/dogfood/output/text_modifier_test.cpp | lsilvest/crpcut | e9d694fb04599b72ebdcf6fea7d6ad598807ff41 | [
"BSD-2-Clause"
] | 1 | 2019-04-10T12:47:11.000Z | 2019-04-10T12:47:11.000Z | /*
* Copyright 2012 Bjorn Fahller <bjorn@fahller.se>
* All rights reserved
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this ... | 35.980874 | 90 | 0.62594 | lsilvest |
3212a591afacd990ed550c13bbdfa5b4c1bb3425 | 42 | cpp | C++ | testStateMachine/IWaveFile.cpp | wp4398151/TestApp | 7dffb4ca275801043f9e911f4f699dfaa1e906ae | [
"Apache-2.0"
] | null | null | null | testStateMachine/IWaveFile.cpp | wp4398151/TestApp | 7dffb4ca275801043f9e911f4f699dfaa1e906ae | [
"Apache-2.0"
] | null | null | null | testStateMachine/IWaveFile.cpp | wp4398151/TestApp | 7dffb4ca275801043f9e911f4f699dfaa1e906ae | [
"Apache-2.0"
] | null | null | null | #include "stdafx.h"
#include "IWaveFile.h" | 21 | 22 | 0.738095 | wp4398151 |
3215df03438b6a784c0dd3c350199cccc67cc4b6 | 2,674 | cpp | C++ | file-commander-core/src/diskenumerator/cvolumeenumerator_impl_win.cpp | treehugging-green-wolf/file-commander | 5e6f5372e70de68981d0001035a6d2a110293ebb | [
"Apache-2.0"
] | null | null | null | file-commander-core/src/diskenumerator/cvolumeenumerator_impl_win.cpp | treehugging-green-wolf/file-commander | 5e6f5372e70de68981d0001035a6d2a110293ebb | [
"Apache-2.0"
] | null | null | null | file-commander-core/src/diskenumerator/cvolumeenumerator_impl_win.cpp | treehugging-green-wolf/file-commander | 5e6f5372e70de68981d0001035a6d2a110293ebb | [
"Apache-2.0"
] | null | null | null | #include "cvolumeenumerator.h"
#include "../filesystemhelpers/filesystemhelpers.hpp"
#include "windows/windowsutils.h"
#include "utility/on_scope_exit.hpp"
#include "system/ctimeelapsed.h"
#include <Windows.h>
DISABLE_COMPILER_WARNINGS
#include <QDebug>
RESTORE_COMPILER_WARNINGS
inline QString parseVolumePathFromPa... | 28.147368 | 163 | 0.720269 | treehugging-green-wolf |
321916c75aa69ce94b9c77f9fd3c81404f44abb9 | 3,076 | cpp | C++ | engine/generators/fortresses/source/MotteBaileyCastleGeneratorStrategy.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | 60 | 2019-08-21T04:08:41.000Z | 2022-03-10T13:48:04.000Z | engine/generators/fortresses/source/MotteBaileyCastleGeneratorStrategy.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 3 | 2021-03-18T15:11:14.000Z | 2021-10-20T12:13:07.000Z | engine/generators/fortresses/source/MotteBaileyCastleGeneratorStrategy.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 8 | 2019-11-16T06:29:05.000Z | 2022-01-23T17:33:43.000Z | #include "MotteBaileyCastleGeneratorStrategy.hpp"
#include "CoordUtils.hpp"
#include "DirectionUtils.hpp"
#include "GeneratorUtils.hpp"
#include "TileGenerator.hpp"
#include "RNG.hpp"
using namespace std;
const int MotteBaileyCastleGeneratorStrategy::MIN_MOTTE_WIDTH = 8;
const int MotteBaileyCastleGeneratorStrategy::... | 37.060241 | 147 | 0.75 | sidav |
32200a137c740c636e320e64d84e85856db410c3 | 4,090 | hpp | C++ | VSDataReduction/VBFHiLoCalc.hpp | sfegan/ChiLA | 916bdd95348c2df2ecc736511d5f5b2bfb4a831e | [
"BSD-3-Clause"
] | 1 | 2018-04-17T14:03:36.000Z | 2018-04-17T14:03:36.000Z | VSDataReduction/VBFHiLoCalc.hpp | sfegan/ChiLA | 916bdd95348c2df2ecc736511d5f5b2bfb4a831e | [
"BSD-3-Clause"
] | null | null | null | VSDataReduction/VBFHiLoCalc.hpp | sfegan/ChiLA | 916bdd95348c2df2ecc736511d5f5b2bfb4a831e | [
"BSD-3-Clause"
] | null | null | null | //-*-mode:c++; mode:font-lock;-*-
/*! \file VBFHiLoCalc.hpp
Class designed for use with logain.cpp...
\author Timothy C. Arlen \n
UCLA \n
arlen@astro.ucla.edu \n
\author Stephen Fegan \n
UCLA ... | 30.073529 | 79 | 0.513447 | sfegan |
322713e384e250dd9e0f0a2f5d169e98dca4a2dc | 1,301 | hpp | C++ | include/armadillo_bits/fn_chol.hpp | jshahbazi/mnist-cpp | d757d07c03b2c24df94af4c0762b99db21c21538 | [
"MIT"
] | 80 | 2015-06-23T04:51:27.000Z | 2022-03-09T08:15:36.000Z | include/armadillo_bits/fn_chol.hpp | jshahbazi/mnist-cpp | d757d07c03b2c24df94af4c0762b99db21c21538 | [
"MIT"
] | 4 | 2017-06-18T03:40:48.000Z | 2018-10-31T09:55:32.000Z | include/armadillo_bits/fn_chol.hpp | jshahbazi/mnist-cpp | d757d07c03b2c24df94af4c0762b99db21c21538 | [
"MIT"
] | 37 | 2015-08-20T03:26:28.000Z | 2022-03-08T10:54:49.000Z | // Copyright (C) 2009-2014 Conrad Sanderson
// Copyright (C) 2009-2014 NICTA (www.nicta.com.au)
//
// 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/.
//! \addtogroup ... | 20.015385 | 102 | 0.626441 | jshahbazi |
7a86da3dfbdcfcb9422bed08230b16c861a22c7e | 3,154 | hpp | C++ | headers/fun/instances/eq.hpp | BlackMATov/fun.hpp | 11b208996c3c3784d31afb6463b34d5b68b47bd4 | [
"MIT"
] | 12 | 2019-01-07T05:55:35.000Z | 2020-04-21T08:37:25.000Z | headers/fun/instances/eq.hpp | BlackMATov/fun.hpp | 11b208996c3c3784d31afb6463b34d5b68b47bd4 | [
"MIT"
] | 1 | 2019-01-07T08:53:56.000Z | 2019-01-07T08:53:56.000Z | headers/fun/instances/eq.hpp | BlackMATov/fun.hpp | 11b208996c3c3784d31afb6463b34d5b68b47bd4 | [
"MIT"
] | 1 | 2019-01-08T07:51:30.000Z | 2019-01-08T07:51:30.000Z | /*******************************************************************************
* This file is part of the "https://github.com/blackmatov/fun.hpp"
* For conditions of distribution and use, see copyright notice in LICENSE.md
* Copyright (C) 2019-2020, by Matvey Cherevko (blackmatov@gmail.com)
**********************... | 24.640625 | 80 | 0.509829 | BlackMATov |
7a8ed42e228158fb6a61f9bbf487114a4167aad2 | 1,201 | cpp | C++ | coast/modules/CacheHandler/Test/CallLdapCacheAction.cpp | zer0infinity/CuteForCoast | 37d933c5fe2e0ce9a801f51b2aa27c7a18098511 | [
"BSD-3-Clause"
] | null | null | null | coast/modules/CacheHandler/Test/CallLdapCacheAction.cpp | zer0infinity/CuteForCoast | 37d933c5fe2e0ce9a801f51b2aa27c7a18098511 | [
"BSD-3-Clause"
] | null | null | null | coast/modules/CacheHandler/Test/CallLdapCacheAction.cpp | zer0infinity/CuteForCoast | 37d933c5fe2e0ce9a801f51b2aa27c7a18098511 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2005, Peter Sommerlad and IFS Institute for Software at HSR Rapperswil, Switzerland
* All rights reserved.
*
* This library/application is free software; you can redistribute and/or modify it under the terms of
* the license that is included with this library/application in the file license.txt.... | 36.393939 | 102 | 0.701082 | zer0infinity |
7a93f7d3ed34d0333accea20df6d917d3a67ccb9 | 918 | hpp | C++ | src/Game.hpp | ingmarinho/wappie-jump | b869825222997c4ff068e03fe02e2b94ecd5e450 | [
"BSL-1.0"
] | null | null | null | src/Game.hpp | ingmarinho/wappie-jump | b869825222997c4ff068e03fe02e2b94ecd5e450 | [
"BSL-1.0"
] | null | null | null | src/Game.hpp | ingmarinho/wappie-jump | b869825222997c4ff068e03fe02e2b94ecd5e450 | [
"BSL-1.0"
] | null | null | null | #pragma once
#include <memory>
#include <string>
#include <SFML/Graphics.hpp>
#include "StateMachine.hpp"
#include "AssetManager.hpp"
#include "InputManager.hpp"
/// @file
namespace WappieJump
{
/// saves all the data about the game's current state,
/// and contains important information for the game to be able to... | 20.863636 | 70 | 0.712418 | ingmarinho |
7aa351f30a9379d173bb62c5ceef359d6f042d73 | 1,053 | cpp | C++ | src/MCMC.cpp | Chrom3D/Chrom3D | e6b78e679d788d9822a3258c7a9c06ca4edcafc6 | [
"MIT"
] | 25 | 2018-02-13T03:55:06.000Z | 2021-12-13T06:47:53.000Z | src/MCMC.cpp | Chrom3D/Chrom3D | e6b78e679d788d9822a3258c7a9c06ca4edcafc6 | [
"MIT"
] | 31 | 2017-11-27T14:40:17.000Z | 2022-03-28T10:38:38.000Z | src/MCMC.cpp | Chrom3D/Chrom3D | e6b78e679d788d9822a3258c7a9c06ca4edcafc6 | [
"MIT"
] | 11 | 2018-04-19T14:43:40.000Z | 2022-03-29T08:37:44.000Z | #include "MCMC.h"
MCMC::MCMC(Model& mod): model(mod) { }
bool MCMC::doMetropolisHastingsStep(double T /*=1*/, uint maxAttempts /*=10000*/) {
uint i=0;
bool success = false;
while(i < maxAttempts and !success) {
try {
Move proposedMove = model.proposeMove(); // Idea: if this fails (no move propose... | 33.967742 | 149 | 0.662868 | Chrom3D |
7aa39c5b08b4cd2ad8ed6d56af327167a3f4f511 | 2,499 | hpp | C++ | include/hfn/fnv1a.hpp | obhi-d/hfn | 692203a25a13214ba8a0e2feddb8d6e78275c860 | [
"MIT"
] | null | null | null | include/hfn/fnv1a.hpp | obhi-d/hfn | 692203a25a13214ba8a0e2feddb8d6e78275c860 | [
"MIT"
] | null | null | null | include/hfn/fnv1a.hpp | obhi-d/hfn | 692203a25a13214ba8a0e2feddb8d6e78275c860 | [
"MIT"
] | null | null | null | #pragma once
#include "config.hpp"
#include "detail/fnv1a.hpp"
#include <type_traits>
namespace hfn::fnv1a
{
template <typename fnvt>
inline auto seed(fnvt initial = 0) noexcept
{
using type = std::remove_cv_t<std::remove_reference_t<fnvt>>;
return (initial) ? (detail::fnv1a<sizeof(type)>::offset ^ initial) * det... | 22.926606 | 105 | 0.67547 | obhi-d |
7aa7479d9938d0220c832e76c78fbb5b43de539e | 7,268 | cpp | C++ | filters/ffmpeg/ffmpegSwScale.cpp | InfiniteInteractive/LimitlessSDK | cb71dde14d8c59cbf8a1ece765989c5787fffefa | [
"MIT"
] | 3 | 2017-05-13T20:36:03.000Z | 2021-07-16T17:23:01.000Z | filters/ffmpeg/ffmpegSwScale.cpp | InfiniteInteractive/LimitlessSDK | cb71dde14d8c59cbf8a1ece765989c5787fffefa | [
"MIT"
] | null | null | null | filters/ffmpeg/ffmpegSwScale.cpp | InfiniteInteractive/LimitlessSDK | cb71dde14d8c59cbf8a1ece765989c5787fffefa | [
"MIT"
] | 2 | 2016-08-04T00:16:50.000Z | 2017-09-07T14:50:03.000Z | #include "FfmpegSwScale.h"
#include "QtComponents/QtPluginView.h"
#include "Media/MediaPad.h"
#include "Media/MediaSampleFactory.h"
#include "Media/ImageSample.h"
#include "ffmpegResources.h"
#include "ffmpegControls.h"
#include "ffmpegPacketSample.h"
#include <boost/foreach.hpp>
#include <boost/tokenizer.hpp>
exte... | 25.324042 | 155 | 0.7306 | InfiniteInteractive |
7aa7e44a7449c151f76a354bcbdd4b68d6780cf8 | 1,663 | hh | C++ | src/search.hh | grencez/protocon | 0ca25d832f7222f4154507d974bf9213e0cf26d3 | [
"0BSD"
] | 7 | 2015-10-16T18:56:01.000Z | 2022-01-17T21:19:08.000Z | src/search.hh | czlynn/protocon | aa520f9edf3be7ff458f96e88cd2dab1eec4c505 | [
"0BSD"
] | 19 | 2015-09-27T17:37:21.000Z | 2021-07-26T06:50:12.000Z | src/search.hh | czlynn/protocon | aa520f9edf3be7ff458f96e88cd2dab1eec4c505 | [
"0BSD"
] | 1 | 2020-09-02T22:29:01.000Z | 2020-09-02T22:29:01.000Z |
#ifndef SEARCH_HH_
#define SEARCH_HH_
#include "cx/synhax.hh"
#include "cx/alphatab.hh"
#include "cx/table.hh"
#include "namespace.hh"
class AddConvergenceOpt;
class ConflictFamily;
class PartialSynthesis;
class ProtoconFileOpt;
class ProtoconOpt;
class SynthesisCtx;
bool
AddStabilization(vector<uint>& ret_actions,... | 27.716667 | 79 | 0.678292 | grencez |
7aa89788f5fe20d8ab4751443f22855dbe48aab7 | 130 | cpp | C++ | src/drivers/distance_sensor/ll40ls/LidarLiteI2C.cpp | Diksha-agg/Firmware_val | 1efc1ba06997d19df3ed9bd927cfb24401b0fe03 | [
"BSD-3-Clause"
] | null | null | null | src/drivers/distance_sensor/ll40ls/LidarLiteI2C.cpp | Diksha-agg/Firmware_val | 1efc1ba06997d19df3ed9bd927cfb24401b0fe03 | [
"BSD-3-Clause"
] | null | null | null | src/drivers/distance_sensor/ll40ls/LidarLiteI2C.cpp | Diksha-agg/Firmware_val | 1efc1ba06997d19df3ed9bd927cfb24401b0fe03 | [
"BSD-3-Clause"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:d962303659f52f13ea58ddbae625bd8a310a0dc6ef83cc5dfa45ca99a34ed6d4
size 13664
| 32.5 | 75 | 0.884615 | Diksha-agg |
7aaa233b81c179178b199f72c83c2d66ef249e8a | 13,009 | cpp | C++ | src/core/vl53l1_wait.cpp | rneurink/VL53L1X_FULL_API | ee8097ce27937bdf3b8f08d28fdee7658b4d9039 | [
"BSD-3-Clause"
] | 2 | 2020-07-25T20:56:23.000Z | 2020-08-25T23:54:21.000Z | src/core/vl53l1_wait.cpp | rneurink/VL53L1X_FULL_API | ee8097ce27937bdf3b8f08d28fdee7658b4d9039 | [
"BSD-3-Clause"
] | null | null | null | src/core/vl53l1_wait.cpp | rneurink/VL53L1X_FULL_API | ee8097ce27937bdf3b8f08d28fdee7658b4d9039 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2017, STMicroelectronics - All Rights Reserved
*
* This file is part of VL53L1 Core and is dual licensed,
* either 'STMicroelectronics
* Proprietary license'
* or 'BSD 3-clause "New" or "Revised" License' , at your option.
*
****************************************************************************... | 23.271914 | 80 | 0.707433 | rneurink |
7abbbfc26107ee06e39ebdfdbf50df1d2c5338e6 | 10,495 | cpp | C++ | src/server.cpp | xiangp126/p2p_communication | 8ec3eb546fa4ba36876ba1e3158d98ffb9b1891f | [
"MIT"
] | null | null | null | src/server.cpp | xiangp126/p2p_communication | 8ec3eb546fa4ba36876ba1e3158d98ffb9b1891f | [
"MIT"
] | null | null | null | src/server.cpp | xiangp126/p2p_communication | 8ec3eb546fa4ba36876ba1e3158d98ffb9b1891f | [
"MIT"
] | null | null | null | #include <iostream>
#include "common.h"
#include "server.h"
pthread_mutex_t ticksLock;
pthread_mutexattr_t tickLockAttr;
using namespace std;
static ofstream logFile(LOGNAME, ofstream::app);
ostream & operator<<(ostream &out, PEERTICKTYPE &clientMap) {
out << "----------->>> List" << endl;
auto iter = client... | 32.391975 | 78 | 0.471558 | xiangp126 |
7ac37c027b3b35973dbda5db8a45838a67b61889 | 876 | cc | C++ | Functions/reading-ifstream.cc | ULL-ESIT-IB-2021-2022/IB-class-code-examples | c17bad34c66bdc4f73862fc92ee929de9a207486 | [
"MIT"
] | 6 | 2021-11-01T19:35:17.000Z | 2022-01-14T18:13:53.000Z | Functions/reading-ifstream.cc | ULL-ESIT-IB-2021-2022/IB-class-code-examples | c17bad34c66bdc4f73862fc92ee929de9a207486 | [
"MIT"
] | null | null | null | Functions/reading-ifstream.cc | ULL-ESIT-IB-2021-2022/IB-class-code-examples | c17bad34c66bdc4f73862fc92ee929de9a207486 | [
"MIT"
] | 6 | 2021-10-30T19:04:31.000Z | 2022-03-11T19:29:32.000Z | /**
* Universidad de La Laguna
* Escuela Superior de Ingeniería y Tecnología
* Grado en Ingeniería Informática
* Informática Básica
*
* @author F. de Sande
* @date 23 Jun 2020
* @brief I/O Reading from ifstream
*
* @see https://en.cppreference.com/w/cpp/io/manip
*/
#include <fstream> // For the file streams... | 22.461538 | 87 | 0.649543 | ULL-ESIT-IB-2021-2022 |
7ac6262f1b39ea358b994bff0c1cea9c74a13af9 | 3,472 | cpp | C++ | Convert/src/M2/file_loader.cpp | blackdragonx61/M2-JSON-CONVERTER | 9e125586b698daaf32ad1e96c0bc38b6bdd2aca3 | [
"MIT"
] | 4 | 2021-09-22T21:34:04.000Z | 2022-03-04T15:47:37.000Z | Convert/src/M2/file_loader.cpp | blackdragonx61/M2-JSON-CONVERTER | 9e125586b698daaf32ad1e96c0bc38b6bdd2aca3 | [
"MIT"
] | null | null | null | Convert/src/M2/file_loader.cpp | blackdragonx61/M2-JSON-CONVERTER | 9e125586b698daaf32ad1e96c0bc38b6bdd2aca3 | [
"MIT"
] | null | null | null | #include "file_loader.h"
#include <assert.h>
CMemoryTextFileLoader::CMemoryTextFileLoader()
{
}
CMemoryTextFileLoader::~CMemoryTextFileLoader()
{
}
bool CMemoryTextFileLoader::SplitLineByTab(DWORD dwLine, TTokenVector* pstTokenVector)
{
pstTokenVector->reserve(10);
pstTokenVector->clear();
const std::string& c_r... | 19.18232 | 121 | 0.679435 | blackdragonx61 |
7acd9e946c6ca74c7a80aca9542ff51c5e30f033 | 2,706 | cpp | C++ | examples/SplineDev.cpp | bmharper/xo | 575429591c166cc70db60385d2a6563d0f9bc9ed | [
"Unlicense"
] | 7 | 2015-12-18T04:17:29.000Z | 2020-03-13T15:38:54.000Z | examples/SplineDev.cpp | benharper123/xo | 575429591c166cc70db60385d2a6563d0f9bc9ed | [
"Unlicense"
] | null | null | null | examples/SplineDev.cpp | benharper123/xo | 575429591c166cc70db60385d2a6563d0f9bc9ed | [
"Unlicense"
] | 4 | 2016-09-18T13:16:02.000Z | 2022-03-23T11:33:53.000Z | #include "../xo/xo.h"
#include <omp.h>
// This was used when developing the spline rendering code
void Render(xo::Canvas2D* canvas, int cx, int cy, float scale);
void xoMain(xo::SysWnd* wnd)
{
int left = 550;
int width = 1000;
int top = 60;
int height = 1000;
wnd->SetPosition(xo::Box(left, top, left + width, t... | 29.736264 | 127 | 0.608647 | bmharper |
7ad071cb5777505968fc4620b5d2ebad0926b154 | 464 | cpp | C++ | 08. classes-and-objects/homework/02. distance.cpp | ihristova11/cpp-fundamentals | a72a0fb9e302921760a81f0a3436039b34b0981f | [
"MIT"
] | null | null | null | 08. classes-and-objects/homework/02. distance.cpp | ihristova11/cpp-fundamentals | a72a0fb9e302921760a81f0a3436039b34b0981f | [
"MIT"
] | null | null | null | 08. classes-and-objects/homework/02. distance.cpp | ihristova11/cpp-fundamentals | a72a0fb9e302921760a81f0a3436039b34b0981f | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;
struct Point
{
Point(double xp, double yp)
{
x = xp;
y = yp;
}
public:
double x;
double y;
double distanceToPoint(Point a)
{
return sqrt(pow(abs(a.x - this->x), 2.0) + (pow(abs(a.y - this->y), 2.0)));
}
};
int main()
{
int... | 12.540541 | 77 | 0.575431 | ihristova11 |
7ad487f6292732c62c147417a586cf00245677d9 | 59 | cpp | C++ | test_lib/test_lib.cpp | antonte/coddle | 906c0262c1f7ce251d40879f2377e77c2ff1db9f | [
"MIT"
] | null | null | null | test_lib/test_lib.cpp | antonte/coddle | 906c0262c1f7ce251d40879f2377e77c2ff1db9f | [
"MIT"
] | 2 | 2015-04-09T23:55:06.000Z | 2017-04-15T01:37:36.000Z | test_lib/test_lib.cpp | antonte/coddle | 906c0262c1f7ce251d40879f2377e77c2ff1db9f | [
"MIT"
] | null | null | null | #include "test_lib.hpp"
int test_lib()
{
return 1000;
}
| 8.428571 | 23 | 0.661017 | antonte |
7ad7066d9fe6444678b3f5cd01d67b925e152743 | 51,314 | cc | C++ | src/half_edge_mesh.cc | paulmiller/glFun | 39df2c7f92b41c09d618b81e2016f1c530fb2108 | [
"Unlicense"
] | null | null | null | src/half_edge_mesh.cc | paulmiller/glFun | 39df2c7f92b41c09d618b81e2016f1c530fb2108 | [
"Unlicense"
] | null | null | null | src/half_edge_mesh.cc | paulmiller/glFun | 39df2c7f92b41c09d618b81e2016f1c530fb2108 | [
"Unlicense"
] | null | null | null | #include "half_edge_mesh.h"
#include "scoped_timer.h"
#include <algorithm>
#include <cassert>
#include <cmath>
#include <limits>
#include <memory>
#include <stack>
#include <unordered_map>
HalfEdgeMesh::VertexIndex HalfEdgeMesh::AddVertex() {
auto [index, realloc_offset] = vertices_.Append({});
if(realloc_offset... | 34.978868 | 80 | 0.608762 | paulmiller |
7adc771d4ad2194a9a2a255551fb24ac549e72b7 | 1,136 | cpp | C++ | dll/src/EngineAPI/Color.cpp | Dingf/GDCommunityLauncher | 43ca2d6fa8024dffad1e0919c609b0d48a3427b7 | [
"MIT"
] | null | null | null | dll/src/EngineAPI/Color.cpp | Dingf/GDCommunityLauncher | 43ca2d6fa8024dffad1e0919c609b0d48a3427b7 | [
"MIT"
] | null | null | null | dll/src/EngineAPI/Color.cpp | Dingf/GDCommunityLauncher | 43ca2d6fa8024dffad1e0919c609b0d48a3427b7 | [
"MIT"
] | null | null | null | #include "EngineAPI/Color.h"
namespace EngineAPI
{
const Color Color::BLUE(0.224f, 0.667f, 0.808f, 1.0f);
const Color Color::GREEN(0.063f, 0.918f, 0.365f, 1.0f);
const Color Color::RED(1.000f, 0.258f, 0.000f, 1.0f);
const Color Color::WHITE(1.000f, 1.000f, 1.000f, 1.0f);
const Color Color::YELLOW(1... | 49.391304 | 63 | 0.639965 | Dingf |
7ade4fcf23be7aa9cadc6ffe27b203ec1247194d | 10,363 | cpp | C++ | src/apps/mplayerc/PlayerVolumeCtrl.cpp | chinajeffery/MPC-BE--1.2.3 | 2229fde5535f565ba4a496a7f73267bd2c1ad338 | [
"MIT"
] | null | null | null | src/apps/mplayerc/PlayerVolumeCtrl.cpp | chinajeffery/MPC-BE--1.2.3 | 2229fde5535f565ba4a496a7f73267bd2c1ad338 | [
"MIT"
] | 1 | 2019-11-14T04:18:32.000Z | 2019-11-14T04:18:32.000Z | src/apps/mplayerc/PlayerVolumeCtrl.cpp | chinajeffery/MPC-BE--1.2.3 | 2229fde5535f565ba4a496a7f73267bd2c1ad338 | [
"MIT"
] | null | null | null | /*
* $Id: VolumeCtrl.cpp 527 2012-06-10 13:47:31Z exodus8 $
*
* (C) 2003-2006 Gabest
* (C) 2006-2013 see Authors.txt
*
* This file is part of MPC-BE.
*
* MPC-BE is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Fo... | 25.842893 | 125 | 0.639583 | chinajeffery |
7ae204501b18372062674f5087090a50acaa0b7d | 8,018 | cpp | C++ | CRAB/journal.cpp | arvindrajayadav/unrest | d89f20e95fbcdef37a47ab1454b2479522a0e43f | [
"MIT"
] | 11 | 2020-08-04T08:37:46.000Z | 2022-03-31T22:35:15.000Z | CRAB/journal.cpp | arvindrajayadav/unrest | d89f20e95fbcdef37a47ab1454b2479522a0e43f | [
"MIT"
] | 1 | 2020-12-16T16:51:52.000Z | 2020-12-18T06:35:38.000Z | Unrest-iOS/journal.cpp | arvindrajayadav/unrest | d89f20e95fbcdef37a47ab1454b2479522a0e43f | [
"MIT"
] | 7 | 2020-08-04T09:34:20.000Z | 2021-09-11T03:00:16.000Z | #include "stdafx.h"
#include "journal.h"
using namespace pyrodactyl::image;
using namespace pyrodactyl::ui;
//------------------------------------------------------------------------
// Purpose: Load game
//------------------------------------------------------------------------
void Journal::Load(const std::string &... | 28.432624 | 120 | 0.514343 | arvindrajayadav |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.