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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
10d80f9d9077cf894bdcb32dfdce2c82faef534c | 1,348 | cpp | C++ | Engine/Src/Engine/Render/Shader/HShadowDepthShader.cpp | helluvamesh/OpenGLRenderer | c1dbc6da3cbb4639284242de176d4f4fb383da30 | [
"Apache-2.0"
] | null | null | null | Engine/Src/Engine/Render/Shader/HShadowDepthShader.cpp | helluvamesh/OpenGLRenderer | c1dbc6da3cbb4639284242de176d4f4fb383da30 | [
"Apache-2.0"
] | null | null | null | Engine/Src/Engine/Render/Shader/HShadowDepthShader.cpp | helluvamesh/OpenGLRenderer | c1dbc6da3cbb4639284242de176d4f4fb383da30 | [
"Apache-2.0"
] | null | null | null | #include "Engine\pch.h"
#include "HShadowDepthShader.h"
const DSet<DString8> HShadowDepthShader::BaseUniformNames {
"ProjectMat", "ViewMat", "ModelMat", "ViewPos", "BlendMode", "LightSpaceMats", "Layers"
};
const DBaseShadowDepthShaderLocs& HShadowDepthShader::GetBaseUniformLocs()
{
return this->BaseUnifor... | 27.510204 | 93 | 0.750742 | helluvamesh |
10de65b77f86b27454ec39341a5ffdb5f833ba23 | 2,022 | cpp | C++ | MotorwayScene/MotorwayScene/Src/Scripts/ShadowGeneration.cpp | BKhalil85/MotorwayScene | 112e7c5dc5726b90179c34423d3f6f32c75a722f | [
"Apache-2.0"
] | 1 | 2021-08-23T19:35:32.000Z | 2021-08-23T19:35:32.000Z | MotorwayScene/MotorwayScene/Src/Scripts/ShadowGeneration.cpp | BAKA7K/MotorwayScene | 112e7c5dc5726b90179c34423d3f6f32c75a722f | [
"Apache-2.0"
] | null | null | null | MotorwayScene/MotorwayScene/Src/Scripts/ShadowGeneration.cpp | BAKA7K/MotorwayScene | 112e7c5dc5726b90179c34423d3f6f32c75a722f | [
"Apache-2.0"
] | null | null | null | #include "ShadowGeneration.h"
#include "Utils/ResourceManager.h"
#include <glm/gtc/matrix_transform.hpp>
namespace
{
const uint32_t SHADOW_RESOLUTION = 2160;
const float SHADOW_MAP_MAX_LENGTH = 25.0f;
const float SHADOW_MAP_NEAR_LIMIT = -55.0f;
const float SHADOW_MAP_FAR_LIMIT = 50.0f;
}
ShadowGeneration::Shad... | 29.304348 | 126 | 0.784372 | BKhalil85 |
10e50c403631c24470a1e03236a6bf255772d098 | 25,302 | cpp | C++ | tilde.cpp | malcx95/tilde | 880331fccff76b93f83115c837894f49e3f2d4ea | [
"Xnet",
"X11"
] | null | null | null | tilde.cpp | malcx95/tilde | 880331fccff76b93f83115c837894f49e3f2d4ea | [
"Xnet",
"X11"
] | null | null | null | tilde.cpp | malcx95/tilde | 880331fccff76b93f83115c837894f49e3f2d4ea | [
"Xnet",
"X11"
] | null | null | null | #include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>
#include <iostream>
#include <vector>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
#include "config.h"
#include "player.hpp"
#include "constants.hpp"
#include "powerup.hpp"
#include "item.hpp"
#include "input.hpp"
const float PLAYER_S... | 35.239554 | 142 | 0.538258 | malcx95 |
10e78037c5afd068afd6858725327219de7fde16 | 4,682 | cpp | C++ | examples/cpp/send_receive_intervention_request.cpp | FormantIO/formant | 869496c753cf0be4b3a10d79016f4384132be3a8 | [
"Apache-2.0"
] | 5 | 2021-03-15T17:03:51.000Z | 2021-11-27T23:07:15.000Z | examples/cpp/send_receive_intervention_request.cpp | FormantIO/formant | 869496c753cf0be4b3a10d79016f4384132be3a8 | [
"Apache-2.0"
] | 2 | 2020-10-27T23:23:57.000Z | 2022-02-07T17:54:29.000Z | examples/cpp/send_receive_intervention_request.cpp | FormantIO/formant | 869496c753cf0be4b3a10d79016f4384132be3a8 | [
"Apache-2.0"
] | 2 | 2021-05-10T19:20:12.000Z | 2021-06-05T12:31:14.000Z | #include <iostream>
#include <limits.h>
#include <memory>
#include <string>
#include <sys/time.h>
#include <unistd.h>
#include <signal.h>
#include <grpcpp/grpcpp.h>
#include "agent/v1/agent.grpc.pb.h"
using grpc::Channel;
using grpc::ClientContext;
using grpc::Status;
using v1::agent::Agent;
using v1::agent::GetInt... | 30.802632 | 104 | 0.637334 | FormantIO |
10e99fc66266b65a83ff82e5531b383e89c1c9e9 | 1,248 | cpp | C++ | LeetCodeSolutions/LeetCode_0333.cpp | lih627/python-algorithm-templates | a61fd583e33a769b44ab758990625d3381793768 | [
"MIT"
] | 24 | 2020-03-28T06:10:25.000Z | 2021-11-23T05:01:29.000Z | LeetCodeSolutions/LeetCode_0333.cpp | lih627/python-algorithm-templates | a61fd583e33a769b44ab758990625d3381793768 | [
"MIT"
] | null | null | null | LeetCodeSolutions/LeetCode_0333.cpp | lih627/python-algorithm-templates | a61fd583e33a769b44ab758990625d3381793768 | [
"MIT"
] | 8 | 2020-05-18T02:43:16.000Z | 2021-05-24T18:11:38.000Z | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l... | 29.714286 | 96 | 0.471955 | lih627 |
10ede4f2c1223013906f1e46e85babeba6ff75b5 | 7,323 | cpp | C++ | Source/SystemQOR/MSWindows/WinQL/GUI/Controllers/Parts/WinQLIMEController.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 9 | 2016-05-27T01:00:39.000Z | 2021-04-01T08:54:46.000Z | Source/SystemQOR/MSWindows/WinQL/GUI/Controllers/Parts/WinQLIMEController.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 1 | 2016-03-03T22:54:08.000Z | 2016-03-03T22:54:08.000Z | Source/SystemQOR/MSWindows/WinQL/GUI/Controllers/Parts/WinQLIMEController.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 4 | 2016-05-27T01:00:43.000Z | 2018-08-19T08:47:49.000Z | //WinQLIMEController.cpp
// Copyright Querysoft Limited 2013
//
// Permission is hereby granted, free of charge, to any person or organization
// obtaining a copy of the software and accompanying documentation covered by
// this license (the "Software") to use, reproduce, display, distribute,
// execute, and transmit ... | 33.438356 | 150 | 0.593336 | mfaithfull |
10f2e9be8f92ea41844a7430eb4fa4a1e7d7f164 | 4,190 | cpp | C++ | src/libawkward/layoutbuilder/RecordArrayBuilder.cpp | oshadura/awkward-1.0 | b8c3187f48aab8618a728537d22a71b6a177c505 | [
"BSD-3-Clause"
] | null | null | null | src/libawkward/layoutbuilder/RecordArrayBuilder.cpp | oshadura/awkward-1.0 | b8c3187f48aab8618a728537d22a71b6a177c505 | [
"BSD-3-Clause"
] | null | null | null | src/libawkward/layoutbuilder/RecordArrayBuilder.cpp | oshadura/awkward-1.0 | b8c3187f48aab8618a728537d22a71b6a177c505 | [
"BSD-3-Clause"
] | null | null | null | // BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
#define FILENAME(line) FILENAME_FOR_EXCEPTIONS("src/libawkward/layoutbuilder/RecordArrayBuilder.cpp", line)
#include "awkward/layoutbuilder/RecordArrayBuilder.h"
#include "awkward/layoutbuilder/LayoutBuilder.h"
namespace awkward... | 28.120805 | 107 | 0.654654 | oshadura |
10f4deff5a6d2b086c688bd842afc8d4c58df5f7 | 6,792 | cpp | C++ | src/classes/object.cpp | Zoxc/mirb | 14c2fe2d2a026fb3bb62c883e8839e1078ebc3b6 | [
"BSD-3-Clause"
] | 10 | 2016-10-06T06:22:20.000Z | 2022-02-28T05:33:09.000Z | src/classes/object.cpp | Zoxc/mirb | 14c2fe2d2a026fb3bb62c883e8839e1078ebc3b6 | [
"BSD-3-Clause"
] | null | null | null | src/classes/object.cpp | Zoxc/mirb | 14c2fe2d2a026fb3bb62c883e8839e1078ebc3b6 | [
"BSD-3-Clause"
] | 3 | 2018-01-08T03:34:34.000Z | 2021-09-12T12:12:22.000Z | #include "../runtime.hpp"
#include "../internal.hpp"
#include "../classes.hpp"
namespace Mirb
{
Object::Object(const Object &other) : Value(other), instance_of(other.instance_of), vars(nullptr), hash_value(other.hash_value)
{
if(other.vars)
{
vars = Collector::allocate<ValueMap>();
Object *other_obj = (Ob... | 26.952381 | 137 | 0.67977 | Zoxc |
10f9499cbfa30e93460e77fd31247290e5a01e78 | 2,108 | cpp | C++ | fog/Fog/FogSpacing.cpp | UltimateScript/Forgotten | ac59ad21767af9628994c0eecc91e9e0e5680d95 | [
"BSD-3-Clause"
] | null | null | null | fog/Fog/FogSpacing.cpp | UltimateScript/Forgotten | ac59ad21767af9628994c0eecc91e9e0e5680d95 | [
"BSD-3-Clause"
] | null | null | null | fog/Fog/FogSpacing.cpp | UltimateScript/Forgotten | ac59ad21767af9628994c0eecc91e9e0e5680d95 | [
"BSD-3-Clause"
] | null | null | null | #include <Fog/FogIncludeAll.h>
TYPEINFO_SINGLE(FogSpacing, Super)
PRIMREF_DERIVED_NULL_CLASS_AND_IMPL(FogSpacing)
PRIMREFS_IMPL(FogSpacing)
PRIMLISTOFREFS_IMPL(FogSpacing)
FOGTOKEN_SHAREDLEAF_IMPL(FogSpacing)
TMPL_HACK_FIX_DO(FogSpacing)
bool FogSpacing::emit(FogEmitContext& emitContext) const
{
if (_spaces >... | 27.736842 | 103 | 0.743833 | UltimateScript |
10ff7e3c392dc72be581365e0890b748d236958b | 6,258 | hpp | C++ | include/Facebook/WitAi/CallbackHandlers/SimpleIntentHandler.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/Facebook/WitAi/CallbackHandlers/SimpleIntentHandler.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/Facebook/WitAi/CallbackHandlers/SimpleIntentHandler.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | 1 | 2022-03-30T21:07:35.000Z | 2022-03-30T21:07:35.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: Facebook.WitAi.CallbackHandlers.Wit... | 53.487179 | 254 | 0.755992 | v0idp |
8003e8e67d6c52c6c3c9163c96e84a21aebdcbaa | 366 | cpp | C++ | Source/DawnNetworkService/DNLayer.cpp | XDApp/DawnNetworkService | 1516244fd91998b60ed59282b2b55c0c6b80f79f | [
"MIT"
] | 1 | 2015-06-21T08:04:32.000Z | 2015-06-21T08:04:32.000Z | Source/DawnNetworkService/DNLayer.cpp | XDApp/DawnNetworkService | 1516244fd91998b60ed59282b2b55c0c6b80f79f | [
"MIT"
] | null | null | null | Source/DawnNetworkService/DNLayer.cpp | XDApp/DawnNetworkService | 1516244fd91998b60ed59282b2b55c0c6b80f79f | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "DNLayer.h"
#include "DNLayerService.h"
#include "DSocketAddrIn.h"
DNLayer::DNLayer(DNLayerService* service) :Service(service)
{
}
DNLayer::~DNLayer()
{
}
DNTransData* DNLayer::CreatePacket()
{
DNTransData *Data = new DNTransData;
return Data;
}
void DNLayer::DestroyPacket(DNTransDat... | 14.64 | 59 | 0.729508 | XDApp |
800456e5ef9951720ed54c6469408d664a183bc9 | 59 | hpp | C++ | src/GameObjects/Paddle.hpp | AndrewVieira/Breakout | a4c54d2ceb6786b9ba5eca4f11fbef0a550b725d | [
"MIT"
] | null | null | null | src/GameObjects/Paddle.hpp | AndrewVieira/Breakout | a4c54d2ceb6786b9ba5eca4f11fbef0a550b725d | [
"MIT"
] | null | null | null | src/GameObjects/Paddle.hpp | AndrewVieira/Breakout | a4c54d2ceb6786b9ba5eca4f11fbef0a550b725d | [
"MIT"
] | null | null | null | #ifndef PADDLE_HPP
#define PADDLE_HPP
#endif // PADDLE_HPP | 14.75 | 20 | 0.79661 | AndrewVieira |
800872c5d5d1df25fb5e4c2bde34e314d873ccc6 | 893 | cpp | C++ | src/diffuse.cpp | vieiraa/ray_tracer | 75665fd5b15f486ad52f3c5b61521fb394d40fe1 | [
"MIT"
] | null | null | null | src/diffuse.cpp | vieiraa/ray_tracer | 75665fd5b15f486ad52f3c5b61521fb394d40fe1 | [
"MIT"
] | null | null | null | src/diffuse.cpp | vieiraa/ray_tracer | 75665fd5b15f486ad52f3c5b61521fb394d40fe1 | [
"MIT"
] | null | null | null | #include <glm/gtc/constants.hpp>
#include "diffuse.h"
#include "random.h"
#include "ray.h"
#include "onb.h"
const float PI = glm::pi<float>();
Diffuse::Diffuse(glm::vec3 r, glm::vec3 e) :
Material(r, e)
{}
Diffuse::~Diffuse() {}
glm::vec3 Diffuse::fr(const glm::vec3 &wi) {
return reflected_ / PI;
}
float D... | 19.844444 | 94 | 0.527436 | vieiraa |
800f5e98691e46d6e95f66c8483bf51c48408e48 | 29,401 | cpp | C++ | src/graphics/pipelinewidget.cpp | abdullah142/Ripes | d6f44d733b39e8caeb1f2d8eaef9a228d7b17754 | [
"MIT"
] | 3 | 2019-10-16T19:01:21.000Z | 2020-04-26T07:23:31.000Z | src/graphics/pipelinewidget.cpp | jiegec/Ripes | fa19759e627bc3f708702992b750189c3797f25b | [
"MIT"
] | null | null | null | src/graphics/pipelinewidget.cpp | jiegec/Ripes | fa19759e627bc3f708702992b750189c3797f25b | [
"MIT"
] | 1 | 2021-08-23T04:28:40.000Z | 2021-08-23T04:28:40.000Z | #include "pipelinewidget.h"
#include "backgrounditems.h"
#include "connection.h"
#include "shape.h"
#include "descriptions.h"
#include <QRectF>
#include <cmath>
#include <QCoreApplication>
#include <QWheelEvent>
qreal PipelineWidget::spaceBetweenStateRegs = 380;
PipelineWidget::PipelineWidget(QWidget* parent) : QG... | 45.024502 | 146 | 0.659773 | abdullah142 |
80109ba06a08a4567bd4e0e6c86267474301bd8d | 19,734 | hh | C++ | ResourceFile.hh | Sembiance/resource_dasm | 8e9af880a005f55c029600267711541f806ad4e4 | [
"MIT"
] | 24 | 2019-05-22T05:02:47.000Z | 2022-02-13T17:35:59.000Z | ResourceFile.hh | Sembiance/resource_dasm | 8e9af880a005f55c029600267711541f806ad4e4 | [
"MIT"
] | 10 | 2019-10-04T19:35:01.000Z | 2022-01-29T19:10:42.000Z | ResourceFile.hh | Sembiance/resource_dasm | 8e9af880a005f55c029600267711541f806ad4e4 | [
"MIT"
] | 5 | 2020-08-12T01:49:41.000Z | 2022-02-10T21:22:19.000Z | #pragma once
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <phosg/Filesystem.hh>
#include <phosg/Image.hh>
#include <map>
#include <unordered_map>
#include <vector>
#include "QuickDrawFormats.hh"
#include "PEFFFile.hh"
#define RESOURCE_TYPE_ADBS 0x41... | 39.706237 | 107 | 0.753319 | Sembiance |
80121489c295cc14fe1da232bbfbbdcf1e7fa563 | 933 | cpp | C++ | Contributor Corner/Himanshi/NthNode.cpp | hitu1304/interview-corner | 97503d1967c646f731275ae3665f142814c6a9d7 | [
"MIT"
] | 39 | 2020-11-01T13:58:48.000Z | 2021-02-12T08:39:37.000Z | Contributor Corner/Himanshi/NthNode.cpp | hitu1304/interview-corner | 97503d1967c646f731275ae3665f142814c6a9d7 | [
"MIT"
] | 86 | 2020-09-25T07:20:40.000Z | 2021-02-18T20:36:29.000Z | Contributor Corner/Himanshi/NthNode.cpp | hitu1304/interview-corner | 97503d1967c646f731275ae3665f142814c6a9d7 | [
"MIT"
] | 43 | 2020-12-18T03:32:42.000Z | 2021-02-19T18:08:19.000Z | //Question Link
//https://practice.geeksforgeeks.org/problems/nth-node-from-end-of-linked-list/1
#include<iostream>
#include<stdlib.h>
using namespace std;
struct Node
{
int data;
struct Node *next;
Node(int x)
{data=x;
next=Null;
}
};
int getNthFromLast(struct Node* head, int n);
int main()
{
int t,... | 14.353846 | 80 | 0.59164 | hitu1304 |
8013d5b1e73dc96fab1649a84c241e8a5606305f | 1,237 | cpp | C++ | KAIST RUN/2021 Spring/test.cpp | biyotte/Code_of_gunwookim | b8b679ea56b8684ec44a7911211edee1fb558a96 | [
"MIT"
] | 4 | 2021-01-27T11:51:30.000Z | 2021-01-30T17:02:55.000Z | KAIST RUN/2021 Spring/test.cpp | biyotte/Code_of_gunwookim | b8b679ea56b8684ec44a7911211edee1fb558a96 | [
"MIT"
] | null | null | null | KAIST RUN/2021 Spring/test.cpp | biyotte/Code_of_gunwookim | b8b679ea56b8684ec44a7911211edee1fb558a96 | [
"MIT"
] | 5 | 2021-01-27T11:46:12.000Z | 2021-05-06T05:37:47.000Z | #include <bits/stdc++.h>
#define x first
#define y second
#define pb push_back
#define all(v) v.begin(),v.end()
#pragma gcc optimize("O3")
#pragma gcc optimize("Ofast")
#pragma gcc optimize("unroll-loops")
using namespace std;
const int INF = 1e9;
const int TMX = 1 << 18;
const long long llINF = 1e16;
const long long ... | 19.951613 | 45 | 0.57882 | biyotte |
8015ad16644357d2f889e93c9f4adecfde3211df | 4,205 | cpp | C++ | src/pci.cpp | ixy-languages/ixy.cpp | c927c418b7ec350c4cc41f3795a1e8d346d1ea16 | [
"MIT"
] | 10 | 2020-07-03T16:26:51.000Z | 2022-01-17T09:39:04.000Z | src/pci.cpp | ixy-languages/ixy.cpp | c927c418b7ec350c4cc41f3795a1e8d346d1ea16 | [
"MIT"
] | null | null | null | src/pci.cpp | ixy-languages/ixy.cpp | c927c418b7ec350c4cc41f3795a1e8d346d1ea16 | [
"MIT"
] | 1 | 2020-07-14T09:47:19.000Z | 2020-07-14T09:47:19.000Z | #include "pci.hpp"
#include "log.hpp"
#include "fs.hpp"
#include <cassert>
#include <sys/file.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fstream>
namespace ixy {
void remove_driver(const std::string &pci_addr) {
fs::path path{"/sys/bus/pci/devices/" + pci_addr + "/driver/unbind... | 28.033333 | 103 | 0.595244 | ixy-languages |
8022bb40c2749f760b92dd0c5f523de211e09f20 | 1,487 | cpp | C++ | Chapter_8_Advanced_Topics/8.7_Problem_Decomposition/kattis_gcds.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | 2 | 2021-12-29T04:12:59.000Z | 2022-03-30T09:32:19.000Z | Chapter_8_Advanced_Topics/8.7_Problem_Decomposition/kattis_gcds.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | null | null | null | Chapter_8_Advanced_Topics/8.7_Problem_Decomposition/kattis_gcds.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | 1 | 2022-03-01T06:12:46.000Z | 2022-03-01T06:12:46.000Z | /**Kattis - gcds
* Notice that the range of values in A is small: [1,100]. Thus we only need to consider gcds within that range.
* For each potential gcd, d, we check if we can find a contiguous subarray such that the gcd is d. To do so,
* We look for contiguous blocks that are divisible by d and get the GCD of thos... | 29.74 | 112 | 0.459314 | BrandonTang89 |
8025a3348f7f7f3d6584b3d836a25f24d16a0d4a | 597 | cpp | C++ | atcoder/abc059_b.cpp | Doarakko/competitive-programming | 5ae78c501664af08a3f16c81dbd54c68310adec8 | [
"MIT"
] | 1 | 2017-07-11T16:47:29.000Z | 2017-07-11T16:47:29.000Z | atcoder/abc059_b.cpp | Doarakko/Competitive-Programming | 10642a4bd7266c828dd2fc6e311284e86bdf2968 | [
"MIT"
] | 1 | 2021-02-07T09:10:26.000Z | 2021-02-07T09:10:26.000Z | atcoder/abc059_b.cpp | Doarakko/Competitive-Programming | 10642a4bd7266c828dd2fc6e311284e86bdf2968 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(int argc, const char * argv[]) {
string a, b;
//入力
//文字列で受け取って比較
cin >> a >> b;
if (a.length() > b.length()) { //桁数の比較
cout << "GREATER" << endl;
}else if (a.length() < b.length()){ //桁数の比較
cout << "LESS" <... | 21.321429 | 54 | 0.390285 | Doarakko |
8027b7ce0808e52f0c117775feb9142009e22977 | 8,439 | cpp | C++ | src/montecarlo.cpp | MarcoPolimeni/faunus | 87fc4638c4bec68314f34ec251ea034fc0427515 | [
"MIT"
] | null | null | null | src/montecarlo.cpp | MarcoPolimeni/faunus | 87fc4638c4bec68314f34ec251ea034fc0427515 | [
"MIT"
] | 1 | 2019-03-09T14:43:49.000Z | 2019-03-09T14:43:49.000Z | src/montecarlo.cpp | MarcoPolimeni/faunus | 87fc4638c4bec68314f34ec251ea034fc0427515 | [
"MIT"
] | 2 | 2019-03-07T14:27:51.000Z | 2020-04-14T08:04:54.000Z | #include "montecarlo.h"
#include "speciation.h"
#include "spdlog/spdlog.h"
namespace Faunus {
bool MCSimulation::metropolis(double du) const {
if (std::isnan(du))
throw std::runtime_error("Metropolis error: energy cannot be NaN");
if (du < 0)
return true;
if (-du > pc::max_exp_argument)
... | 38.534247 | 118 | 0.499585 | MarcoPolimeni |
802bf307b984cedb8c8fd39f63ce711b29712d94 | 1,506 | cpp | C++ | EasyCpp/Net/Services/Spotify/AuthorizeResult.cpp | Thalhammer/EasyCpp | 6b9886fecf0aa363eaf03741426fd3462306c211 | [
"MIT"
] | 3 | 2018-02-06T05:12:41.000Z | 2020-05-12T20:57:32.000Z | EasyCpp/Net/Services/Spotify/AuthorizeResult.cpp | Thalhammer/EasyCpp | 6b9886fecf0aa363eaf03741426fd3462306c211 | [
"MIT"
] | 41 | 2016-07-11T12:19:10.000Z | 2017-08-08T07:43:12.000Z | EasyCpp/Net/Services/Spotify/AuthorizeResult.cpp | Thalhammer/EasyCpp | 6b9886fecf0aa363eaf03741426fd3462306c211 | [
"MIT"
] | 2 | 2019-08-02T10:24:36.000Z | 2020-09-11T01:45:12.000Z | #include "AuthorizeResult.h"
#include "../../../Bundle.h"
#include <cstddef>
namespace EasyCpp
{
namespace Net
{
namespace Services
{
namespace Spotify
{
AuthorizeResult::~AuthorizeResult()
{
}
const std::string & AuthorizeResult::getAccessToken() const
{
return _access_token;
... | 23.53125 | 122 | 0.632138 | Thalhammer |
802ffc09b24ce2d34f8181effa958b22755f055d | 7,070 | cpp | C++ | src/bm_apps/notifications.cpp | hksoni/p4bricks | 0b2f4a1cbfe94d8cbbe7e04716c1b418f5f73204 | [
"Apache-2.0"
] | 1 | 2021-02-18T15:43:04.000Z | 2021-02-18T15:43:04.000Z | src/bm_apps/notifications.cpp | hksoni/p4bricks | 0b2f4a1cbfe94d8cbbe7e04716c1b418f5f73204 | [
"Apache-2.0"
] | null | null | null | src/bm_apps/notifications.cpp | hksoni/p4bricks | 0b2f4a1cbfe94d8cbbe7e04716c1b418f5f73204 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2013-present Barefoot Networks, 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 la... | 26.679245 | 79 | 0.687553 | hksoni |
803071d0f33bc35cd06f89df3b6706b974398db5 | 7,396 | cpp | C++ | src/QtWorld/Scene/nSceneCone.cpp | Vladimir-Lin/QtWorld | e060e8bc9991d95814a31d388aae18f2d153dc84 | [
"MIT"
] | null | null | null | src/QtWorld/Scene/nSceneCone.cpp | Vladimir-Lin/QtWorld | e060e8bc9991d95814a31d388aae18f2d153dc84 | [
"MIT"
] | null | null | null | src/QtWorld/Scene/nSceneCone.cpp | Vladimir-Lin/QtWorld | e060e8bc9991d95814a31d388aae18f2d153dc84 | [
"MIT"
] | null | null | null | #include <qtworld.h>
N::SceneCone:: SceneCone ( void )
: SceneObject ( )
, Cylinder ( )
{
name = "Cone" ;
}
N::SceneCone:: SceneCone ( SceneDestructor * des )
: SceneObject ( des )
, Cylinder ( )
{
name... | 35.557692 | 58 | 0.247837 | Vladimir-Lin |
803269a46f48e9af24b37ecaf4ae4a277f432ebc | 1,545 | cpp | C++ | Engine/ac/dynobj/scriptviewframe.cpp | monkey0506/ags | 2f96ddf47e944efea2534386a4004849eb71372b | [
"Artistic-2.0"
] | 450 | 2015-01-12T22:45:54.000Z | 2022-03-16T00:28:25.000Z | Engine/ac/dynobj/scriptviewframe.cpp | monkey0506/ags | 2f96ddf47e944efea2534386a4004849eb71372b | [
"Artistic-2.0"
] | 1,162 | 2015-01-03T09:57:17.000Z | 2022-03-31T20:28:56.000Z | Engine/ac/dynobj/scriptviewframe.cpp | monkey0506/ags | 2f96ddf47e944efea2534386a4004849eb71372b | [
"Artistic-2.0"
] | 121 | 2015-02-20T14:36:40.000Z | 2022-03-08T14:01:35.000Z | //=============================================================================
//
// Adventure Game Studio (AGS)
//
// Copyright (C) 1999-2011 Chris Jones and 2011-20xx others
// The full list of copyright holders can be found in the Copyright.txt
// file, which is part of this source code distribution.
//
// The AGS ... | 28.611111 | 88 | 0.631715 | monkey0506 |
8034b2364e3c5a8ee44b936bf4a1863305d56d9c | 1,305 | cpp | C++ | retired/scalycpp/OptionsError.cpp | rschleitzer/scaly | 7537cdf44f7a63ad1a560975017ee1c897c73787 | [
"MIT"
] | 4 | 2019-09-08T15:20:11.000Z | 2021-06-07T11:27:36.000Z | retired/scalycpp/OptionsError.cpp | rschleitzer/scaly | 7537cdf44f7a63ad1a560975017ee1c897c73787 | [
"MIT"
] | null | null | null | retired/scalycpp/OptionsError.cpp | rschleitzer/scaly | 7537cdf44f7a63ad1a560975017ee1c897c73787 | [
"MIT"
] | 1 | 2017-07-20T21:12:33.000Z | 2017-07-20T21:12:33.000Z | #include "scalycpp.h"
using namespace scaly;
namespace scalycpp {
long OptionsError::_getErrorCode() {
return (long)errorCode;
}
void* OptionsError::_getErrorInfo() {
return errorInfo;
}
_OptionsError_invalidOption::_OptionsError_invalidOption(string* option)
: option(option) { }
_OptionsError_invalidOptio... | 22.118644 | 73 | 0.764751 | rschleitzer |
803645c670ac6a924d09f7af634babef7d24e3dc | 5,836 | cpp | C++ | leetcode/biweekly/13.cpp | bvbasavaraju/competitive_programming | a82ffc1b639588a84f4273b44285d57cdc2f4b11 | [
"Apache-2.0"
] | 1 | 2020-05-05T13:06:51.000Z | 2020-05-05T13:06:51.000Z | leetcode/biweekly/13.cpp | bvbasavaraju/competitive_programming | a82ffc1b639588a84f4273b44285d57cdc2f4b11 | [
"Apache-2.0"
] | null | null | null | leetcode/biweekly/13.cpp | bvbasavaraju/competitive_programming | a82ffc1b639588a84f4273b44285d57cdc2f4b11 | [
"Apache-2.0"
] | null | null | null | /****************************************************
Date: November 16, 2019
Successful submissions : 1
Time expiration :
Not Solved : 2
Wrong Answer/ Partial result : 1
link: https://leetcode.com/contest/biweekly-contest-13
****************************************************/
#include <iostream>
#include <vector>
#... | 20.334495 | 94 | 0.348869 | bvbasavaraju |
80376886a9c19dd01b3a5febc50e8606c60f2764 | 3,235 | cpp | C++ | src/functionals/functionalComponent.cpp | elinjammal/opensmile | 0ae2da44e61744ff1aaa9bae2b95d747febb08de | [
"W3C"
] | 245 | 2020-10-24T16:27:13.000Z | 2022-03-31T03:01:11.000Z | src/functionals/functionalComponent.cpp | elinjammal/opensmile | 0ae2da44e61744ff1aaa9bae2b95d747febb08de | [
"W3C"
] | 41 | 2021-01-13T11:30:42.000Z | 2022-01-14T14:36:11.000Z | src/functionals/functionalComponent.cpp | elinjammal/opensmile | 0ae2da44e61744ff1aaa9bae2b95d747febb08de | [
"W3C"
] | 43 | 2020-12-11T15:28:19.000Z | 2022-03-20T11:55:58.000Z | /*F***************************************************************************
* This file is part of openSMILE.
*
* Copyright (c) audEERING GmbH. All rights reserved.
* See the file COPYING for details on license terms.
***************************************************************************E*/
/* openSMIL... | 27.415254 | 116 | 0.678207 | elinjammal |
803a906b08baaf3f6be5ae7426f92750910427b8 | 377 | hpp | C++ | tests/src/mocks/AdditionProxyTestClass.hpp | daball/props | 6d416984c14bef68bd39e323e029f8879e9cf45f | [
"BSL-1.0"
] | null | null | null | tests/src/mocks/AdditionProxyTestClass.hpp | daball/props | 6d416984c14bef68bd39e323e029f8879e9cf45f | [
"BSL-1.0"
] | null | null | null | tests/src/mocks/AdditionProxyTestClass.hpp | daball/props | 6d416984c14bef68bd39e323e029f8879e9cf45f | [
"BSL-1.0"
] | null | null | null | #pragma once
#include <daball/props/behaviors/base/AdditionProxy.hpp>
using daball::props::behaviors::base::AdditionProxy;
namespace daball::props::tests {
template<typename T>
class AdditionProxyTestClass:
public AdditionProxy<T> {
public:
AdditionProxyTestClass(T &initialRef):
... | 26.928571 | 56 | 0.665782 | daball |
d9a2f4f58224e253a97108e66ffae56d1a26bee3 | 56,033 | cpp | C++ | src/Rinterface.cpp | apeterson91/rndpp | b1e2c5a440a4e403abd5f2801296d84264e8922f | [
"MIT"
] | 1 | 2020-08-04T13:27:05.000Z | 2020-08-04T13:27:05.000Z | src/Rinterface.cpp | apeterson91/rndpp | b1e2c5a440a4e403abd5f2801296d84264e8922f | [
"MIT"
] | 3 | 2020-08-27T21:01:12.000Z | 2020-09-10T21:54:59.000Z | src/Rinterface.cpp | apeterson91/bendr | b1e2c5a440a4e403abd5f2801296d84264e8922f | [
"MIT"
] | null | null | null | // -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; indent-tabs-mode: nil; -*-
//
// we only include RcppEigen.h which pulls Rcpp.h in for us
#include <RcppEigen.h>
#include <random>
#include "support/auxiliary_functions.hpp"
#include "support/DP_functions.hpp"
#include "support/NDP_functions.hpp"
#include<vector>
... | 39.376669 | 258 | 0.575108 | apeterson91 |
d9a373d9cd94470a19df485995531960da54e76f | 11,397 | cxx | C++ | test/testMySQLMapper.cxx | DX-MON/tmplORM | 493dfb1c6dd6799b428c049891becd41e6791466 | [
"BSD-3-Clause"
] | 7 | 2016-09-22T21:07:28.000Z | 2022-02-03T19:18:08.000Z | test/testMySQLMapper.cxx | DX-MON/tmplORM | 493dfb1c6dd6799b428c049891becd41e6791466 | [
"BSD-3-Clause"
] | 1 | 2021-10-22T02:57:48.000Z | 2021-10-22T02:57:48.000Z | test/testMySQLMapper.cxx | DX-MON/tmplORM | 493dfb1c6dd6799b428c049891becd41e6791466 | [
"BSD-3-Clause"
] | 1 | 2020-05-29T12:19:11.000Z | 2020-05-29T12:19:11.000Z | #include <crunch++.h>
#include <tmplORM.mysql.hxx>
#include "models.hxx"
using namespace models;
using tmplORM::mysql::createTable_;
using tmplORM::mysql::select_;
using tmplORM::mysql::add_;
using tmplORM::mysql::update_;
using tmplORM::mysql::del_;
using tmplORM::mysql::deleteTable_;
template<typename tableName, ty... | 68.656627 | 148 | 0.690357 | DX-MON |
d9a3f39109245deac53d604230868e1dd9c4d27d | 363 | c++ | C++ | hubbard.c++ | SRTCpp/Code | 67c311566cee7b3e5cd8440ac2f7531f1737e293 | [
"Apache-2.0"
] | 1 | 2018-09-24T21:58:03.000Z | 2018-09-24T21:58:03.000Z | hubbard.c++ | SRTCpp/Code | 67c311566cee7b3e5cd8440ac2f7531f1737e293 | [
"Apache-2.0"
] | null | null | null | hubbard.c++ | SRTCpp/Code | 67c311566cee7b3e5cd8440ac2f7531f1737e293 | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
#include "../Jcube.h"
#define pi 3.14159265
#define AMU 1
#define Z 1
main()
{
cube P(1,1,100,0.0);
float Re, rho;
Ma = 1.67*pow(10,-24) * AMU;
for (int z=0;z<100;z++){
rho = .01 * expf(z/10.);
Zaxis(z) = rho;
Re = pow(Ma*3/(4*pi*rho, 1./3.);
P(1,1,z) = 51.5/pow(Re,5)*(1 - Re*(.20... | 15.125 | 65 | 0.512397 | SRTCpp |
d9a58525a1d3017049969b729a221a5a06f15afd | 22,839 | cpp | C++ | software/SfMAligner/SfMAligner.cpp | zyxrrr/GraphSfM | 1af22ec17950ffc8a5c737a6a46f4465c40aa470 | [
"BSD-3-Clause"
] | null | null | null | software/SfMAligner/SfMAligner.cpp | zyxrrr/GraphSfM | 1af22ec17950ffc8a5c737a6a46f4465c40aa470 | [
"BSD-3-Clause"
] | null | null | null | software/SfMAligner/SfMAligner.cpp | zyxrrr/GraphSfM | 1af22ec17950ffc8a5c737a6a46f4465c40aa470 | [
"BSD-3-Clause"
] | 1 | 2019-02-18T09:49:32.000Z | 2019-02-18T09:49:32.000Z | // BSD 3-Clause License
// Copyright (c) 2018, 陈煜
// 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 ... | 37.318627 | 104 | 0.583913 | zyxrrr |
d9a6094159045aa6924af9229bdc4d15f6cc5570 | 2,906 | cpp | C++ | sample/lsa.cpp | atzeus/PPMI | 257fdf41f2eefaf1548b86e7635bf2ec2ee3ce4b | [
"Apache-2.0"
] | null | null | null | sample/lsa.cpp | atzeus/PPMI | 257fdf41f2eefaf1548b86e7635bf2ec2ee3ce4b | [
"Apache-2.0"
] | null | null | null | sample/lsa.cpp | atzeus/PPMI | 257fdf41f2eefaf1548b86e7635bf2ec2ee3ce4b | [
"Apache-2.0"
] | 1 | 2021-03-09T16:01:23.000Z | 2021-03-09T16:01:23.000Z | /*
* Copyright (c) 2010 Daisuke Okanohara
*
* 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 list of condition... | 23.435484 | 97 | 0.616311 | atzeus |
d9a92989cb07cec57d1f6e86fbdccaccba3c7e94 | 7,013 | cpp | C++ | local_addons/ofxPostProcessing/src/FakeSSSPass.cpp | pierrextardif/ofxAVPostProcessing | 5f56590ac4d06ed02ed2a852da76d8893266b58b | [
"MIT"
] | 3 | 2021-02-08T09:05:10.000Z | 2021-12-28T10:14:12.000Z | local_addons/ofxPostProcessing/src/FakeSSSPass.cpp | pierrextardif/ofxAVPostProcessing | 5f56590ac4d06ed02ed2a852da76d8893266b58b | [
"MIT"
] | 1 | 2021-02-08T10:00:33.000Z | 2021-02-09T02:37:59.000Z | local_addons/ofxPostProcessing/src/FakeSSSPass.cpp | pierrextardif/ofxAVPostProcessing | 5f56590ac4d06ed02ed2a852da76d8893266b58b | [
"MIT"
] | null | null | null | /*
* FakeSSSPass.h
*
* Copyright (c) 2013, satcy, http://satcy.net
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above ... | 43.83125 | 128 | 0.631114 | pierrextardif |
d9a9e48a10712814d8245f77e7d52d57016f0249 | 678 | cpp | C++ | main.cpp | SashiRin/Sashi_Tiny_Http | a9cd4f320eee603b74f456cb7aac8232d9eb12ac | [
"MIT"
] | 1 | 2019-02-22T07:37:42.000Z | 2019-02-22T07:37:42.000Z | main.cpp | SashiRin/Sashi_Tiny_Http | a9cd4f320eee603b74f456cb7aac8232d9eb12ac | [
"MIT"
] | null | null | null | main.cpp | SashiRin/Sashi_Tiny_Http | a9cd4f320eee603b74f456cb7aac8232d9eb12ac | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdlib>
#include "server.hpp"
int main(int argc, char *argv[]) {
try {
if (argc != 4) {
std::cerr << "Usage: http_server <address> <port> <doc_root>\n";
std::cerr << " For IPv4, try:\n";
std::cerr << " receiver 0.0.0.0 80 .\n";
... | 27.12 | 76 | 0.488201 | SashiRin |
d9b0ab0cf9c2e4379cc045e7e4ec9212ab183b5a | 250 | cpp | C++ | 3rdparty/wtl/AppWizMobile/Files/Templates/1033/AboutDlg.cpp | wohaaitinciu/zpublic | 0e4896b16e774d2f87e1fa80f1b9c5650b85c57e | [
"Unlicense"
] | 50 | 2015-01-07T01:54:54.000Z | 2021-01-15T00:41:48.000Z | 3rdparty/wtl/AppWizMobile/Files/Templates/1033/AboutDlg.cpp | lib1256/zpublic | 64c2be9ef1abab878288680bb58122dcc25df81d | [
"Unlicense"
] | 1 | 2022-03-11T13:15:33.000Z | 2022-03-11T13:15:33.000Z | 3rdparty/wtl/AppWizMobile/Files/Templates/1033/AboutDlg.cpp | lib1256/zpublic | 64c2be9ef1abab878288680bb58122dcc25df81d | [
"Unlicense"
] | 39 | 2015-01-07T02:03:15.000Z | 2021-01-15T00:41:50.000Z | // AboutDlg.cpp : implementation of the CAboutDlg class
//
/////////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
//?ppc
#include "resourceppc.h"
//?sp
#include "resourcesp.h"
//?end
#include "aboutdlg.h"
| 19.230769 | 77 | 0.476 | wohaaitinciu |
d9b7b12a6fa5ff617c3c3d8c95ad1b22f02c8817 | 2,165 | cpp | C++ | Src/C_BaseLib/MemPool.cpp | Voskrese/BoxLib-old-msvc | da83349af10ef8f951b7a5b3182fc7cd710abeec | [
"BSD-3-Clause-LBNL"
] | null | null | null | Src/C_BaseLib/MemPool.cpp | Voskrese/BoxLib-old-msvc | da83349af10ef8f951b7a5b3182fc7cd710abeec | [
"BSD-3-Clause-LBNL"
] | null | null | null | Src/C_BaseLib/MemPool.cpp | Voskrese/BoxLib-old-msvc | da83349af10ef8f951b7a5b3182fc7cd710abeec | [
"BSD-3-Clause-LBNL"
] | null | null | null | #ifdef _OPENMP
#include <omp.h>
#endif
#include <iostream>
#include <limits>
#include <algorithm>
#include <new>
#include <cstring>
#include <CArena.H>
#include <PArray.H>
#include <MemPool.H>
#ifndef FORTRAN_BOXLIB
#include <ParmParse.H>
#endif
namespace
{
static PArray<CArena> the_memory_pool;
}
extern "C" {... | 18.663793 | 86 | 0.654965 | Voskrese |
d9b7c1f1c572f7e44c8bd3e9eaaabc5516d84b04 | 3,706 | hpp | C++ | src/feata/plug/pluginsets.hpp | master-clown/ofeata | 306cbc3a402551fb62b3925d23a2d4f63f60d525 | [
"MIT"
] | 1 | 2021-08-30T13:51:42.000Z | 2021-08-30T13:51:42.000Z | src/feata/plug/pluginsets.hpp | master-clown/ofeata | 306cbc3a402551fb62b3925d23a2d4f63f60d525 | [
"MIT"
] | null | null | null | src/feata/plug/pluginsets.hpp | master-clown/ofeata | 306cbc3a402551fb62b3925d23a2d4f63f60d525 | [
"MIT"
] | 1 | 2021-08-30T13:51:35.000Z | 2021-08-30T13:51:35.000Z | #pragma once
#include "plug/plugid_t.hpp"
#include "plug/pluginsets_types.hpp"
#include "stl/map.hpp"
#include "stl/string.hpp"
namespace plug { class PluginMgr; }
namespace plug
{
class PluginSettings
{
public:
PluginSettings(const PluginMgr& plug_mgr);
PluginSettings(co... | 35.295238 | 79 | 0.584458 | master-clown |
d9ba2d40cb51042c302851597232adbe2c6b004c | 1,176 | cpp | C++ | src/mat2.cpp | ahfakt/Math | 125459dcb177636c03c4d6b65262d1ddba777d89 | [
"MIT"
] | null | null | null | src/mat2.cpp | ahfakt/Math | 125459dcb177636c03c4d6b65262d1ddba777d89 | [
"MIT"
] | null | null | null | src/mat2.cpp | ahfakt/Math | 125459dcb177636c03c4d6b65262d1ddba777d89 | [
"MIT"
] | null | null | null | #include "mat2.h"
namespace Math {
mat2::mat2(float Ax, float Ay, float Bx, float By) : X(Ax, Bx), Y(Ay, By){}
mat2::mat2(vec2 const& X, vec2 const& Y) : X(X), Y(Y){}
mat2& mat2::operator*=(mat2 const& N) { X *= N; Y *= N; return *this; }
mat2& mat2::operator/=(mat2 const& N) { return *this *= !N; }
mat2& mat2::ope... | 34.588235 | 75 | 0.592687 | ahfakt |
d9bcf277160250ad253f15c7c5dca1766f93ffd1 | 1,534 | cpp | C++ | src/server/scripts/World/npc_spell_click_spells.cpp | forgottenlands/ForgottenCore406 | 5dbbef6b3b0b17c277fde85e40ec9fdab0b51ad1 | [
"OpenSSL"
] | 1 | 2019-12-03T18:41:39.000Z | 2019-12-03T18:41:39.000Z | src/server/scripts/World/npc_spell_click_spells.cpp | Zone-Emu/ZoneEmuCataclysm | 6277efff6cb5adfe8b7a718bf376e81609fa9a6c | [
"OpenSSL"
] | null | null | null | src/server/scripts/World/npc_spell_click_spells.cpp | Zone-Emu/ZoneEmuCataclysm | 6277efff6cb5adfe8b7a718bf376e81609fa9a6c | [
"OpenSSL"
] | null | null | null | /*
* Copyright (C) 2008-2010 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software ... | 28.943396 | 79 | 0.735332 | forgottenlands |
d9c34e2b3138b8207f31566fa8d6ec671d8f2c0e | 134 | hxx | C++ | src/Providers/UNIXProviders/ParallelController/UNIX_ParallelController_SOLARIS.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | 1 | 2020-10-12T09:00:09.000Z | 2020-10-12T09:00:09.000Z | src/Providers/UNIXProviders/ParallelController/UNIX_ParallelController_SOLARIS.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | src/Providers/UNIXProviders/ParallelController/UNIX_ParallelController_SOLARIS.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | #ifdef PEGASUS_OS_SOLARIS
#ifndef __UNIX_PARALLELCONTROLLER_PRIVATE_H
#define __UNIX_PARALLELCONTROLLER_PRIVATE_H
#endif
#endif
| 11.166667 | 43 | 0.858209 | brunolauze |
d9cd1e0bd2dd05bc90966f75015ec07cebbb33c4 | 2,361 | cpp | C++ | 8086/Hardware/Device8255Tandy.cpp | hotkeysoft/emulators | ede4d9acdf1b2c1940d5b9f8aeefe32075f775a6 | [
"MIT"
] | 2 | 2020-11-26T05:24:50.000Z | 2020-12-28T15:46:05.000Z | 8086/Hardware/Device8255Tandy.cpp | hotkeysoft/emulators | ede4d9acdf1b2c1940d5b9f8aeefe32075f775a6 | [
"MIT"
] | null | null | null | 8086/Hardware/Device8255Tandy.cpp | hotkeysoft/emulators | ede4d9acdf1b2c1940d5b9f8aeefe32075f775a6 | [
"MIT"
] | 1 | 2022-01-31T13:51:33.000Z | 2022-01-31T13:51:33.000Z | #include "Device8255Tandy.h"
namespace ppi
{
Device8255Tandy::Device8255Tandy(WORD baseAddress) :
Logger("8255PCjr"),
Device8255(baseAddress)
{
}
// PORT A: KEYBOARD DATA (OUTPUT)
// ---------
// PA7-PA0: Keystroke Storage
BYTE Device8255Tandy::PORTA_IN()
{
LogPrintf(LOG_INFO, "Read Keyboard Storage, va... | 23.61 | 94 | 0.616688 | hotkeysoft |
d9cf48eebc7d60ce35a68786de2855156c6224b2 | 5,758 | cpp | C++ | intro.cpp | lastoryx/Messier94 | 4d564efbe45a59a8c80bc7665d3eca7a46db4da1 | [
"MIT"
] | null | null | null | intro.cpp | lastoryx/Messier94 | 4d564efbe45a59a8c80bc7665d3eca7a46db4da1 | [
"MIT"
] | null | null | null | intro.cpp | lastoryx/Messier94 | 4d564efbe45a59a8c80bc7665d3eca7a46db4da1 | [
"MIT"
] | null | null | null | /*********************************************************************
** Program name: Messier94
** Author: Aaron Thompson
** Date: 12/10/2019
** Description: The introduction function prints opening prompts for
** the user. The divider function prints a divider bar to the console
** to improve the user interfac... | 50.955752 | 122 | 0.374783 | lastoryx |
d9d1c6a79b34501cdab76fc622a1e3c11547153a | 2,625 | cpp | C++ | cpp/leetcode/82.remove-duplicates-from-sorted-list-ii.cpp | Gerrard-YNWA/piece_of_code | ea8c9f05a453c893cc1f10e9b91d4393838670c1 | [
"MIT"
] | 1 | 2021-11-02T05:17:24.000Z | 2021-11-02T05:17:24.000Z | cpp/leetcode/82.remove-duplicates-from-sorted-list-ii.cpp | Gerrard-YNWA/code | 546230593c33ff322d3205499fe17cd6a9a437c1 | [
"MIT"
] | null | null | null | cpp/leetcode/82.remove-duplicates-from-sorted-list-ii.cpp | Gerrard-YNWA/code | 546230593c33ff322d3205499fe17cd6a9a437c1 | [
"MIT"
] | null | null | null | /*
* @lc app=leetcode id=82 lang=cpp
*
* [82] Remove Duplicates from Sorted List II
*/
#include<iostream>
#include<linkedlist.hpp>
// @lc code=start
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode() : val(0), next(nullptr) {}
* ListNode(int... | 27.925532 | 84 | 0.515048 | Gerrard-YNWA |
d9d241ee6e393b2bfabf3bb189386acb64f6363a | 1,444 | cpp | C++ | main.cpp | ChristophHaag/ogre-rift-3dsound | fab968ed8f35a301699e38c45d9b807816e6d126 | [
"WTFPL"
] | null | null | null | main.cpp | ChristophHaag/ogre-rift-3dsound | fab968ed8f35a301699e38c45d9b807816e6d126 | [
"WTFPL"
] | null | null | null | main.cpp | ChristophHaag/ogre-rift-3dsound | fab968ed8f35a301699e38c45d9b807816e6d126 | [
"WTFPL"
] | null | null | null | // ----------------------------------------------------------------------
// Visualization of Patient data (Dicoms and surface models) using the
// Oculus Rift.
// ---------------------------------------------------------------------
// August 2014, Micha Pfeiffer
// Couples Ogre3D and the Oculus Rift SDK to render Mes... | 26.254545 | 141 | 0.523546 | ChristophHaag |
d9d4d6d69b7aa4f226a5f94e7da1a0bca2bc7050 | 8,580 | cxx | C++ | decks/2particle.cxx | ECP-copa/CabanaPIC | ac83e086cad3b6a3307abec26fb276ce7307143e | [
"BSD-3-Clause"
] | 10 | 2019-07-30T18:52:55.000Z | 2021-02-08T07:22:33.000Z | decks/2particle.cxx | ECP-copa/CabanaPIC | ac83e086cad3b6a3307abec26fb276ce7307143e | [
"BSD-3-Clause"
] | 28 | 2019-04-16T21:15:34.000Z | 2021-02-08T20:16:44.000Z | decks/2particle.cxx | ECP-copa/CabanaPIC | ac83e086cad3b6a3307abec26fb276ce7307143e | [
"BSD-3-Clause"
] | 2 | 2019-05-08T17:30:01.000Z | 2019-06-27T16:12:15.000Z | #include "src/input/deck.h"
// Override existing init_fields
class Custom_Field_Initializer : public Field_Initializer {
public:
using real_ = real_t;
// This *has* to be virtual, as we store the object as a pointer to the
// base class
virtual void init(
field_arra... | 33.385214 | 129 | 0.403497 | ECP-copa |
d9d61973ef1abae7a948af10ce6aad5a0eaa1126 | 615 | cpp | C++ | gamesolver/program/ProgramAdaptor.cpp | kryozahiro/gamesolver | e5367c292cd9791c1758ac02df226efcb748cd67 | [
"BSL-1.0"
] | null | null | null | gamesolver/program/ProgramAdaptor.cpp | kryozahiro/gamesolver | e5367c292cd9791c1758ac02df226efcb748cd67 | [
"BSL-1.0"
] | null | null | null | gamesolver/program/ProgramAdaptor.cpp | kryozahiro/gamesolver | e5367c292cd9791c1758ac02df226efcb748cd67 | [
"BSL-1.0"
] | 1 | 2019-10-06T16:06:10.000Z | 2019-10-06T16:06:10.000Z | /*
* ProgramAdaptor.cpp
*
* Created on: 2014/01/14
* Author: kryozahiro
*/
#include "ProgramAdaptor.h"
using namespace std;
ProgramAdaptor::ProgramAdaptor(const ProgramType& programType, shared_ptr<Program> program) : Program(programType) {
this->program = program;
}
Program* ProgramAdaptor::clone() {
P... | 21.964286 | 116 | 0.730081 | kryozahiro |
d9deb502e12dc1b0d5adc500148d6e93f038f7ac | 11,076 | cpp | C++ | lib/mathilda_c.cpp | struct/mathilda | 2edbdcc6fedc9165b916050dc3f97ffe8322c225 | [
"BSD-3-Clause"
] | 33 | 2015-07-31T16:32:47.000Z | 2020-02-12T18:17:49.000Z | lib/mathilda_c.cpp | struct/mathilda | 2edbdcc6fedc9165b916050dc3f97ffe8322c225 | [
"BSD-3-Clause"
] | 2 | 2015-07-31T18:37:49.000Z | 2016-08-12T13:56:28.000Z | lib/mathilda_c.cpp | struct/mathilda | 2edbdcc6fedc9165b916050dc3f97ffe8322c225 | [
"BSD-3-Clause"
] | 10 | 2015-07-31T16:34:05.000Z | 2019-12-10T12:44:16.000Z | /// Copyright 2015/2016 Yahoo Inc.
/// Licensed under the BSD license, see LICENSE file for terms.
/// Written by Chris Rohlf
// This is a C interface to the C++ Mathilda library
// The C interface allows us to write FFI or CTypes
// much easier than trying to wrap the C++ classes.
// The C API functions exactly the s... | 29.69437 | 106 | 0.723185 | struct |
d9e4f105d962d315bff1a9004faeabc0c0baedfa | 4,442 | cpp | C++ | FW/src/main.cpp | kiesel-electronics/MAX31855USB | f20a29a1f5122d52e50323e1c2b52080acea9eba | [
"MIT"
] | 1 | 2021-12-24T05:58:23.000Z | 2021-12-24T05:58:23.000Z | FW/src/main.cpp | kiesel-electronics/MAX31855USB | f20a29a1f5122d52e50323e1c2b52080acea9eba | [
"MIT"
] | null | null | null | FW/src/main.cpp | kiesel-electronics/MAX31855USB | f20a29a1f5122d52e50323e1c2b52080acea9eba | [
"MIT"
] | null | null | null | #include <Arduino.h>
#include <SPI.h>
#include <Wire.h>
#include "Adafruit_MAX31855.h"
#include "Adafruit_MCP9808.h"
#include "Vrekrer_scpi_parser.h"
#include "InputDebounce.h"
#include "Logging.h"
void Read_temps();
void Identify(SCPI_C commands, SCPI_P parameters, Stream& interface);
void GetTemperature(SCPI_C comm... | 25.096045 | 100 | 0.718595 | kiesel-electronics |
d9e659862211fe2ff314e752348b4974277a273b | 1,839 | cpp | C++ | sgf-parse/libsocket/examples++/server.cpp | Ginto8/OmegaGo | 6c7da80b2a3aae3fa2a06e66d28d7409e2a690ca | [
"MIT"
] | 2 | 2016-12-27T07:21:34.000Z | 2017-02-25T15:29:09.000Z | sgf-parse/libsocket/examples++/server.cpp | jpdoyle/OmegaGo | 6c7da80b2a3aae3fa2a06e66d28d7409e2a690ca | [
"MIT"
] | null | null | null | sgf-parse/libsocket/examples++/server.cpp | jpdoyle/OmegaGo | 6c7da80b2a3aae3fa2a06e66d28d7409e2a690ca | [
"MIT"
] | null | null | null | # include <iostream>
# include <string>
# include "../headers/inetserverstream.hpp"
# include "../headers/exception.hpp"
# include <unistd.h>
# include <stdio.h>
# include <utility>
# include "../headers/socket.hpp"
# include "../headers/select.hpp"
/*
* This server is a bit more complicated than
* what you will nee... | 24.197368 | 208 | 0.646003 | Ginto8 |
d9ef2be6bf0edacd381bdef4a345f9453b4bfd1e | 8,058 | hpp | C++ | include/acl/collection.hpp | obhi-d/acl | 8860227ffceff559b32425bdab7419fb99a807d4 | [
"MIT"
] | null | null | null | include/acl/collection.hpp | obhi-d/acl | 8860227ffceff559b32425bdab7419fb99a807d4 | [
"MIT"
] | null | null | null | include/acl/collection.hpp | obhi-d/acl | 8860227ffceff559b32425bdab7419fb99a807d4 | [
"MIT"
] | null | null | null |
#pragma once
#include "allocator.hpp"
#include "default_allocator.hpp"
#include "detail/config.hpp"
#include "detail/utils.hpp"
#include "link.hpp"
#include "podvector.hpp"
#include "type_traits.hpp"
#include <memory>
namespace acl
{
/// @brief A collection of links, but not stored in vectors, instead managed by bi... | 28.985612 | 114 | 0.616406 | obhi-d |
d9efdc1e24bd58cd60bd0d594d92d6d2af082090 | 1,141 | cpp | C++ | C++/4.median-of-two-sorted-arrays.cpp | WilliamZhaoz/github | 2aa0eb17e272249fc225cf2e9861c4c44bd0e265 | [
"MIT"
] | 1 | 2018-03-06T05:07:22.000Z | 2018-03-06T05:07:22.000Z | C++/4.median-of-two-sorted-arrays.cpp | WilliamZhaoz/github | 2aa0eb17e272249fc225cf2e9861c4c44bd0e265 | [
"MIT"
] | 1 | 2021-12-24T16:41:02.000Z | 2021-12-24T16:41:02.000Z | C++/4.median-of-two-sorted-arrays.cpp | WilliamZhaoz/github | 2aa0eb17e272249fc225cf2e9861c4c44bd0e265 | [
"MIT"
] | null | null | null | class Solution {
public:
double findMedianSortedArrays(vector<int>& nums1, vector<int>& nums2) {
int l1 = nums1.size(), l2 = nums2.size();
if ((l1 + l2) % 2) {
return findKth(nums1, nums2, (l1 + l2 + 1) / 2);
}
cout<<findKth(nums1, nums2, (l1 + l2) / 2)<<" "<<findKth(num... | 38.033333 | 104 | 0.471516 | WilliamZhaoz |
d9f135f82290b107fbb3ecfedd9d306a4ba11754 | 334 | cpp | C++ | main.cpp | zcutech/ZMake | c64ef78398bfac77cc42f052e4b0164e3b8b3d68 | [
"MIT"
] | 1 | 2021-10-13T17:18:13.000Z | 2021-10-13T17:18:13.000Z | main.cpp | zcutech/ZMake | c64ef78398bfac77cc42f052e4b0164e3b8b3d68 | [
"MIT"
] | null | null | null | main.cpp | zcutech/ZMake | c64ef78398bfac77cc42f052e4b0164e3b8b3d68 | [
"MIT"
] | null | null | null | #include <iostream>
#include <QApplication>
#include "zmake_window.h"
int main(int argc, char *argv[]) {
QApplication app(argc, argv);
// QApplication::setStyle("Fusion");
QApplication::setStyle("Windows");
auto *wnd = new ZMakeWindow(&app);
wnd->initUI();
wnd->show();
return QApplicati... | 17.578947 | 39 | 0.640719 | zcutech |
d9f45ddfb91fa59f00c0affc484e371f9f89a42b | 751 | cpp | C++ | AquaLand/AquaLand/AquaLand/FishMagikarp.cpp | NicholsTyler/cse_335 | b8a46522c15a9881cb681ae94b4a5f737817b05e | [
"MIT"
] | null | null | null | AquaLand/AquaLand/AquaLand/FishMagikarp.cpp | NicholsTyler/cse_335 | b8a46522c15a9881cb681ae94b4a5f737817b05e | [
"MIT"
] | null | null | null | AquaLand/AquaLand/AquaLand/FishMagikarp.cpp | NicholsTyler/cse_335 | b8a46522c15a9881cb681ae94b4a5f737817b05e | [
"MIT"
] | null | null | null | /**
* \file FishMagikarp.cpp
*
* \author Charles B. Owen
*/
#include "pch.h"
#include <string>
#include "FishMagikarp.h"
using namespace std;
/// Fish filename
const wstring FishMagikarpImageName = L"images/Magikarp.png";
/** Constructor
* \param aquarium The aquarium this is a member of
*/
CFishMagikarp::CFis... | 20.297297 | 70 | 0.708389 | NicholsTyler |
d9fd444f483eeb9c8e291471ac032cb7a7f2a548 | 2,233 | cpp | C++ | GUI/implementation/login.cpp | M9k/Progetto-P2 | bd92bf278939ea59f8d41d8e9fd69f4172b3b6ac | [
"BSD-3-Clause"
] | 1 | 2021-12-02T10:56:00.000Z | 2021-12-02T10:56:00.000Z | GUI/implementation/login.cpp | M9k/Progetto-P2 | bd92bf278939ea59f8d41d8e9fd69f4172b3b6ac | [
"BSD-3-Clause"
] | null | null | null | GUI/implementation/login.cpp | M9k/Progetto-P2 | bd92bf278939ea59f8d41d8e9fd69f4172b3b6ac | [
"BSD-3-Clause"
] | null | null | null | #include "../../GUI/header/login.h"
Login::Login(listUser& lista_user, user**loginUserRef, QWidget* parent):
QDialog(parent), listaUtenti(lista_user), loginUser(loginUserRef)
{
setWindowTitle("FileShare - Login");
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
setWindowIcon(QI... | 29.773333 | 116 | 0.602329 | M9k |
d9fdbcae02ec0b039befc07f55b81eb4fb40a9d5 | 618 | hpp | C++ | Source/Scenes/ToolsScene/ToolsScene.hpp | BaderEddineOuaich/Enigma | a42365146c80fb59e38f5653e17d4c931195e646 | [
"MIT"
] | 13 | 2020-05-01T02:03:14.000Z | 2022-02-03T17:48:26.000Z | Source/Scenes/ToolsScene/ToolsScene.hpp | BaderEddineOuaich/Enigma | a42365146c80fb59e38f5653e17d4c931195e646 | [
"MIT"
] | 5 | 2021-01-22T11:58:21.000Z | 2022-01-21T21:06:17.000Z | Source/Scenes/ToolsScene/ToolsScene.hpp | BaderEddineOuaich/Enigma | a42365146c80fb59e38f5653e17d4c931195e646 | [
"MIT"
] | 3 | 2021-01-22T09:05:50.000Z | 2022-01-12T09:16:44.000Z | #pragma once
#include "../Scene.hpp"
#include "Tool.hpp"
NS_ENIGMA_BEGIN
class ToolsScene : public Enigma::Scene
{
public: /* Constructors / Destructor */
ToolsScene() noexcept;
virtual ~ToolsScene() noexcept = default;
private: /* Overrides */
void OnCreate() override;
[[maybe_unused]] void OnUpdate(const f32&)... | 23.769231 | 126 | 0.739482 | BaderEddineOuaich |
8a0157b1d61d91f77689420ddcb3cc2e5454628e | 4,197 | cpp | C++ | irohad/torii/processor/impl/query_processor_impl.cpp | coderintherye/iroha | 68509282851130c9818f21acef1ef28e53622315 | [
"Apache-2.0"
] | null | null | null | irohad/torii/processor/impl/query_processor_impl.cpp | coderintherye/iroha | 68509282851130c9818f21acef1ef28e53622315 | [
"Apache-2.0"
] | null | null | null | irohad/torii/processor/impl/query_processor_impl.cpp | coderintherye/iroha | 68509282851130c9818f21acef1ef28e53622315 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#include "torii/processor/query_processor_impl.hpp"
#include <boost/range/size.hpp>
#include "ametsuchi/wsv_query.hpp"
#include "common/bind.hpp"
#include "interfaces/queries/blocks_query.hpp"
#include "interfaces/qu... | 38.861111 | 80 | 0.660472 | coderintherye |
8a04b85cdbf8a66efd4ef5b70057d2c7e0ee01a6 | 19,909 | cxx | C++ | src/cameraDialogQT.cxx | Connor-Bowley/ShapePopulationViewer | 22ca6bf554cd9d649b5eb043ea3b91ffd1412f13 | [
"Apache-2.0"
] | 1 | 2018-07-16T22:03:36.000Z | 2018-07-16T22:03:36.000Z | src/cameraDialogQT.cxx | Connor-Bowley/ShapePopulationViewer | 22ca6bf554cd9d649b5eb043ea3b91ffd1412f13 | [
"Apache-2.0"
] | 34 | 2015-11-03T23:18:08.000Z | 2021-10-01T17:20:58.000Z | src/cameraDialogQT.cxx | Connor-Bowley/ShapePopulationViewer | 22ca6bf554cd9d649b5eb043ea3b91ffd1412f13 | [
"Apache-2.0"
] | 13 | 2015-07-06T19:56:15.000Z | 2022-02-25T13:29:40.000Z | #include "cameraDialogQT.h"
#include "ui_cameraDialogQT.h"
cameraDialogQT::cameraDialogQT(QWidget *Qparent) :
QDialog(Qparent),
ui(new Ui::cameraDialogQT)
{
ui->setupUi(this);
m_cameraconfigDirectory = "~";
}
cameraDialogQT::~cameraDialogQT()
{
delete ui;
}
void cameraDialogQT::updateCameraConfi... | 41.477083 | 149 | 0.505952 | Connor-Bowley |
8a092275b8a22444cd5bd23c0bc55a8c7773cbd7 | 742 | hpp | C++ | Incursion/Code/Game/Player.hpp | yixuan-wei/Incursion | fa76fd30d1867cd05ffbc165d3577bc45cfde7ba | [
"MIT"
] | null | null | null | Incursion/Code/Game/Player.hpp | yixuan-wei/Incursion | fa76fd30d1867cd05ffbc165d3577bc45cfde7ba | [
"MIT"
] | null | null | null | Incursion/Code/Game/Player.hpp | yixuan-wei/Incursion | fa76fd30d1867cd05ffbc165d3577bc45cfde7ba | [
"MIT"
] | null | null | null | #pragma once
#include "Game/Entity.hpp"
struct Vec2;
class Player : public Entity
{
public:
Player(Map* map, const Vec2& startPos, EntityFaction faction, EntityType type);
~Player() = default;
virtual void Update( float deltaSeconds ) override;
virtual void Render()const override;
virtual void DebugRender() co... | 24.733333 | 96 | 0.762803 | yixuan-wei |
8a0a9897ea5ac7a665537f3a6e35b68a12403527 | 819 | hpp | C++ | ZumoKit/NativeLibs/universal/include/account_data_snapshot.hpp | zumo/zumokit-ios | 6981dbeaec723262c400d5b3872ace2e08f17997 | [
"MIT"
] | null | null | null | ZumoKit/NativeLibs/universal/include/account_data_snapshot.hpp | zumo/zumokit-ios | 6981dbeaec723262c400d5b3872ace2e08f17997 | [
"MIT"
] | null | null | null | ZumoKit/NativeLibs/universal/include/account_data_snapshot.hpp | zumo/zumokit-ios | 6981dbeaec723262c400d5b3872ace2e08f17997 | [
"MIT"
] | null | null | null | // AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from records.djinni
#pragma once
#include "account.hpp"
#include "transaction.hpp"
#include <utility>
#include <vector>
namespace zumo {
/** Record containing account data snapshot. */
struct AccountDataSnapshot final {
/** Account. */
... | 26.419355 | 91 | 0.700855 | zumo |
8a0b7c94fce85b3bb743d99de4de258770fa9111 | 5,202 | hh | C++ | src/file/FilePoolCore.hh | sdsnatcher73/openMSX | 6de09386ff674668325ddf700b0b16334ad1d2ef | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 320 | 2015-06-16T20:32:33.000Z | 2022-03-26T17:03:27.000Z | src/file/FilePoolCore.hh | sdsnatcher73/openMSX | 6de09386ff674668325ddf700b0b16334ad1d2ef | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 2,592 | 2015-05-30T12:12:21.000Z | 2022-03-31T17:16:15.000Z | src/file/FilePoolCore.hh | sdsnatcher73/openMSX | 6de09386ff674668325ddf700b0b16334ad1d2ef | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 74 | 2015-06-18T19:51:15.000Z | 2022-03-24T15:09:33.000Z | #ifndef FILEPOOLCORE_HH
#define FILEPOOLCORE_HH
#include "FileOperations.hh"
#include "ObjectPool.hh"
#include "MemBuffer.hh"
#include "SimpleHashSet.hh"
#include "sha1.hh"
#include "xxhash.hh"
#include <cassert>
#include <cstdint>
#include <ctime>
#include <functional>
#include <string>
#include <string_view>
#includ... | 29.556818 | 107 | 0.703768 | sdsnatcher73 |
8a1027570365c682d91c3a48485b0cc5c55cafb4 | 23,304 | cpp | C++ | Blizzlike/Trinity/Scripts/Dungeons/ZulAman/boss_janalai.cpp | 499453466/Lua-Other | 43fd2b72405faf3f2074fd2a2706ef115d16faa6 | [
"Unlicense"
] | 2 | 2015-06-23T16:26:32.000Z | 2019-06-27T07:45:59.000Z | Blizzlike/Trinity/Scripts/Dungeons/ZulAman/boss_janalai.cpp | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | null | null | null | Blizzlike/Trinity/Scripts/Dungeons/ZulAman/boss_janalai.cpp | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | 3 | 2015-01-10T18:22:59.000Z | 2021-04-27T21:28:28.000Z | /*
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software ... | 32.822535 | 198 | 0.462152 | 499453466 |
8a110328755cb39e780c1cd3193c91a9a782c53c | 655 | hpp | C++ | libs/timer/include/sge/timer/difference_and_reset.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/timer/include/sge/timer/difference_and_reset.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/timer/include/sge/timer/difference_and_reset.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef SGE_TIMER_DIFFERENCE_AND_RESET_HPP_INCLUDED
#define SGE_TIMER_DIFFERENCE_AND_RESET_HPP_INCL... | 23.392857 | 82 | 0.749618 | cpreh |
8a13e422f2e5881bbe2a0a6fddaea794453c75fd | 6,814 | hpp | C++ | plugins/csp-wms-overlays/src/Plugin.hpp | FellegaraR/cosmoscout-vr | e04e1ac9c531106693a965bb03d3064f3a6179c6 | [
"BSL-1.0",
"Apache-2.0",
"MIT"
] | 302 | 2019-03-05T08:05:03.000Z | 2022-03-16T22:35:21.000Z | plugins/csp-wms-overlays/src/Plugin.hpp | FellegaraR/cosmoscout-vr | e04e1ac9c531106693a965bb03d3064f3a6179c6 | [
"BSL-1.0",
"Apache-2.0",
"MIT"
] | 230 | 2019-07-30T13:26:09.000Z | 2022-03-11T11:21:06.000Z | plugins/csp-wms-overlays/src/Plugin.hpp | FellegaraR/cosmoscout-vr | e04e1ac9c531106693a965bb03d3064f3a6179c6 | [
"BSL-1.0",
"Apache-2.0",
"MIT"
] | 24 | 2019-07-22T08:00:49.000Z | 2022-01-25T10:55:17.000Z | ////////////////////////////////////////////////////////////////////////////////////////////////////
// This file is part of CosmoScout VR //
// and may be used under the terms of the MIT license. See the LICENSE file for details. //
// ... | 45.426667 | 100 | 0.688582 | FellegaraR |
8a17e9cd792e5c1fa8a61a2d9d7cfbd7db61ac0c | 2,523 | cpp | C++ | src/sktest/assertion.cpp | kagurakanon/skjvm | bca3354777eebaf531087f19bb0c6914f639a15a | [
"Unlicense"
] | null | null | null | src/sktest/assertion.cpp | kagurakanon/skjvm | bca3354777eebaf531087f19bb0c6914f639a15a | [
"Unlicense"
] | null | null | null | src/sktest/assertion.cpp | kagurakanon/skjvm | bca3354777eebaf531087f19bb0c6914f639a15a | [
"Unlicense"
] | null | null | null | #include <sktest/assertion.hpp>
#include <sktest/registration.hpp>
#include <sktest/test_group.hpp>
namespace sktest {
auto Assertion::submit_to_registration_center() -> Assertion & {
RegistrationCenter::get_current_test_group().push_assertion(*this);
return *this;
}
auto IsTrueAssertion::print_report_i... | 34.561644 | 77 | 0.540626 | kagurakanon |
8a19484842567b006ef7f72b15a444b30df52cdb | 1,482 | hpp | C++ | NWNXLib/API/Linux/API/CExoFileInternal.hpp | acaos/nwnxee-unified | 0e4c318ede64028c1825319f39c012e168e0482c | [
"MIT"
] | 1 | 2019-06-04T04:30:24.000Z | 2019-06-04T04:30:24.000Z | NWNXLib/API/Linux/API/CExoFileInternal.hpp | presscad/nwnee | 0f36b281524e0b7e9796bcf30f924792bf9b8a38 | [
"MIT"
] | null | null | null | NWNXLib/API/Linux/API/CExoFileInternal.hpp | presscad/nwnee | 0f36b281524e0b7e9796bcf30f924792bf9b8a38 | [
"MIT"
] | 1 | 2019-10-20T07:54:45.000Z | 2019-10-20T07:54:45.000Z | #pragma once
#include <cstdint>
#include "CExoString.hpp"
#include "unknown__IO_FILE.hpp"
namespace NWNXLib {
namespace API {
struct CExoFileInternal
{
_IO_FILE* m_pFileHandle;
CExoString m_sFileName;
uint32_t m_nFileSize;
// The below are auto generated stubs.
CExoFileInternal() = default;
... | 31.531915 | 119 | 0.789474 | acaos |
8a1b692dc805296dd3025f47b824d08e9cc97b58 | 1,601 | cpp | C++ | src/main.cpp | sensyn-robotics/vsm-cpp-ardupilot | e7a68c316555fc4de36606213eabc18aeac026ce | [
"BSD-3-Clause"
] | null | null | null | src/main.cpp | sensyn-robotics/vsm-cpp-ardupilot | e7a68c316555fc4de36606213eabc18aeac026ce | [
"BSD-3-Clause"
] | 11 | 2020-02-13T09:56:25.000Z | 2020-06-05T03:53:40.000Z | src/main.cpp | akayaman/vsm-cpp-ardupilot | e7a68c316555fc4de36606213eabc18aeac026ce | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2018, Smart Projects Holdings Ltd
// All rights reserved.
// See LICENSE file for license details.
#include <ugcs/vsm/vsm.h>
#include <ugcs/vsm/callback.h>
#include <ugcs/vsm/run_as_service.h>
#include <ardupilot_vehicle_manager.h>
#include <signal.h>
#include <iostream>
bool terminate;
#ifdef __uni... | 20.792208 | 61 | 0.65584 | sensyn-robotics |
8a1e32b4073ee369d246ed85d92e88393ee65822 | 1,649 | cpp | C++ | lib/jdiscovery/mdns/src/txt_record_buffer_to_object.cpp | Bubbletea98/JAMScript | bfb4037f8cd9e1cda5924199cc37e7ad766114f7 | [
"MIT"
] | 516 | 2015-01-01T11:00:01.000Z | 2022-03-24T09:53:52.000Z | lib/jdiscovery/mdns/src/txt_record_buffer_to_object.cpp | Bubbletea98/JAMScript | bfb4037f8cd9e1cda5924199cc37e7ad766114f7 | [
"MIT"
] | 148 | 2015-01-08T11:50:40.000Z | 2021-11-29T16:33:42.000Z | lib/jdiscovery/mdns/src/txt_record_buffer_to_object.cpp | Bubbletea98/JAMScript | bfb4037f8cd9e1cda5924199cc37e7ad766114f7 | [
"MIT"
] | 109 | 2015-01-04T02:13:17.000Z | 2022-02-03T20:16:26.000Z | #include "mdns.hpp"
#include <vector>
#include <node_buffer.h>
#include "mdns_utils.hpp"
#include "txt_record_ref.hpp"
using namespace v8;
using namespace node;
namespace node_mdns {
NAN_METHOD(txtRecordBufferToObject) {
if (argumentCountMismatch(info, 1)) {
return throwArgumentCountMismatchException(in... | 31.113208 | 94 | 0.618557 | Bubbletea98 |
8a204c1d2f662a82b6c5a4f1ee67c06057147ea7 | 1,893 | cpp | C++ | expdist-omp/main.cpp | BeauJoh/HeCBench | 594b845171d686dc951971ce36ed59cf114dd2b4 | [
"BSD-3-Clause"
] | 25 | 2021-11-01T03:36:10.000Z | 2022-03-30T03:07:33.000Z | expdist-omp/main.cpp | BeauJoh/HeCBench | 594b845171d686dc951971ce36ed59cf114dd2b4 | [
"BSD-3-Clause"
] | 1 | 2021-12-14T11:04:14.000Z | 2021-12-14T13:22:32.000Z | expdist-omp/main.cpp | BeauJoh/HeCBench | 594b845171d686dc951971ce36ed59cf114dd2b4 | [
"BSD-3-Clause"
] | 8 | 2021-11-13T14:28:05.000Z | 2022-03-09T10:24:54.000Z | #include <stdio.h>
#include <stdlib.h>
#include <random>
#include <omp.h>
#include "kernel.h"
template <typename FP>
void test(const int size) {
const int max_blocks = (int)(ceilf(size * size / 256.f));
std::default_random_engine rng (123);
std::normal_distribution<FP> distribution(0, 1);
FP *A = (FP*) mall... | 26.661972 | 69 | 0.537771 | BeauJoh |
8a23082f8b5066bde69200b507105b2e3d338121 | 1,479 | cpp | C++ | src/Enemy.cpp | Xinef/PG_SFML_Workshop | c9ffe8a585f7650a20d56b4ef3bd6d258bb3a777 | [
"CC0-1.0"
] | null | null | null | src/Enemy.cpp | Xinef/PG_SFML_Workshop | c9ffe8a585f7650a20d56b4ef3bd6d258bb3a777 | [
"CC0-1.0"
] | null | null | null | src/Enemy.cpp | Xinef/PG_SFML_Workshop | c9ffe8a585f7650a20d56b4ef3bd6d258bb3a777 | [
"CC0-1.0"
] | null | null | null | #include "Enemy.h"
#include "Game.h"
sf::Texture* Enemy::textureTemplate = NULL;
Enemy::Enemy(sf::Vector2f spawnPos) {
if(textureTemplate == NULL) {
textureTemplate = new sf::Texture();
if (!textureTemplate->loadFromFile("assets/enemy1.png")) {
sf::err() << "Failed to load enemy image.... | 23.47619 | 66 | 0.580798 | Xinef |
8a24b34cb072e4908a84977be3c50901cd61e69e | 2,283 | cpp | C++ | isaac_variant_caller/src/lib/blt_util/nploid_genotype_util.cpp | sequencing/isaac_variant_caller | ed24e20b097ee04629f61014d3b81a6ea902c66b | [
"BSL-1.0"
] | 21 | 2015-01-09T01:11:28.000Z | 2019-09-04T03:48:21.000Z | isaac_variant_caller/src/lib/blt_util/nploid_genotype_util.cpp | sequencing/isaac_variant_caller | ed24e20b097ee04629f61014d3b81a6ea902c66b | [
"BSL-1.0"
] | 4 | 2015-07-23T09:38:39.000Z | 2018-02-01T05:37:26.000Z | isaac_variant_caller/src/lib/blt_util/nploid_genotype_util.cpp | sequencing/isaac_variant_caller | ed24e20b097ee04629f61014d3b81a6ea902c66b | [
"BSL-1.0"
] | 13 | 2015-01-29T16:41:26.000Z | 2021-06-25T02:42:32.000Z | // -*- mode: c++; indent-tabs-mode: nil; -*-
//
// Copyright (c) 2009-2013 Illumina, Inc.
//
// This software is provided under the terms and conditions of the
// Illumina Open Source Software License 1.
//
// You should have received a copy of the Illumina Open Source
// Software License 1 along with this program. If ... | 24.548387 | 78 | 0.632501 | sequencing |
8a26649c62f8ef74d5c732546878d04b7fcea280 | 684 | cpp | C++ | vs2015/realtime_server/realtime_srv/game_obj/ActionList.cpp | no5ix/realtime-server | c786d5329382c2d1f19673ba3025d516b83e1cc4 | [
"MIT"
] | 465 | 2018-06-21T02:50:56.000Z | 2022-03-27T11:51:46.000Z | vs2015/realtime_server/realtime_srv/game_obj/ActionList.cpp | no5ix/RealTimeServer | 9e3b690c1d12fe32068bc4637fa1919cd52ce854 | [
"MIT"
] | 8 | 2018-08-09T09:25:00.000Z | 2022-03-10T14:54:51.000Z | vs2015/realtime_server/realtime_srv/game_obj/ActionList.cpp | no5ix/RealTimeServer | 9e3b690c1d12fe32068bc4637fa1919cd52ce854 | [
"MIT"
] | 113 | 2018-06-25T01:42:20.000Z | 2022-03-23T11:27:56.000Z |
#include "realtime_srv/game_obj/ActionList.h"
using namespace realtime_srv;
bool ActionList::AddMoveIfNew( const Action& inAction )
{
float timeStamp = inAction.GetTimestamp();
if ( timeStamp > mLastMoveTimestamp )
{
float deltaTime = mLastMoveTimestamp >= 0.f ? timeStamp - mLastMoveTimestamp : 0.f;
mLas... | 20.727273 | 103 | 0.751462 | no5ix |
8a26c952178e5d83c8c560acdaab38c455dc169f | 96,896 | hpp | C++ | include/codegen/include/Zenject/DiContainer.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/Zenject/DiContainer.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/Zenject/DiContainer.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:45 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.Object
#include "System/Object.hpp"
// Including type... | 73.239607 | 432 | 0.783046 | Futuremappermydud |
8a2bae7a05bdb7b79680fbb82f6c204beb9b344b | 74 | cpp | C++ | test/filters-cases/clanglib-bug2898-b.cpp | OfekShilon/compiler-explorer | 7ee2ab17f29470575443bd67e5685ac54ce76158 | [
"BSD-2-Clause"
] | 4,668 | 2017-01-02T19:35:10.000Z | 2020-05-16T03:18:45.000Z | test/filters-cases/clanglib-bug2898-b.cpp | OfekShilon/compiler-explorer | 7ee2ab17f29470575443bd67e5685ac54ce76158 | [
"BSD-2-Clause"
] | 1,750 | 2017-01-02T19:37:06.000Z | 2020-05-16T14:54:29.000Z | test/filters-cases/clanglib-bug2898-b.cpp | OfekShilon/compiler-explorer | 7ee2ab17f29470575443bd67e5685ac54ce76158 | [
"BSD-2-Clause"
] | 620 | 2017-01-03T00:29:17.000Z | 2020-05-14T09:27:47.000Z | #include <string_view>
int foo(const std::string_view& s) { return s[0]; } | 37 | 51 | 0.702703 | OfekShilon |
8a2e699b2124f14c8346af73a5cff7a8674d4680 | 1,721 | cpp | C++ | jet/thirdparty/armadillo/tests/init_fill.cpp | benman1/pyjet | 04b48e9966ed52999c2910b1966d467ee7fbb5bf | [
"MIT"
] | 70 | 2016-11-06T15:17:22.000Z | 2022-03-01T14:50:59.000Z | jet/thirdparty/armadillo/tests/init_fill.cpp | orestis-z/pyjet | a922d8702496494c118d2c5239401d8170d10cd6 | [
"MIT"
] | 4 | 2017-01-27T12:33:14.000Z | 2018-04-19T08:50:40.000Z | jet/thirdparty/armadillo/tests/init_fill.cpp | orestis-z/pyjet | a922d8702496494c118d2c5239401d8170d10cd6 | [
"MIT"
] | 8 | 2016-11-08T15:32:54.000Z | 2019-08-08T11:54:03.000Z | // Copyright (C) 2015 National ICT Australia (NICTA)
//
// 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/.
// ----------------------------------------------------------... | 28.213115 | 70 | 0.568274 | benman1 |
8a2f3c2ccd6d021e38060df3f26f3e790ba2a1c6 | 51,416 | cpp | C++ | cplus/libcfsec/CFSecISOCcyBuff.cpp | msobkow/cfsec_2_13 | 4f5b2d82d4265e1373955a63bea4d1a9fc35a64e | [
"Apache-2.0"
] | null | null | null | cplus/libcfsec/CFSecISOCcyBuff.cpp | msobkow/cfsec_2_13 | 4f5b2d82d4265e1373955a63bea4d1a9fc35a64e | [
"Apache-2.0"
] | null | null | null | cplus/libcfsec/CFSecISOCcyBuff.cpp | msobkow/cfsec_2_13 | 4f5b2d82d4265e1373955a63bea4d1a9fc35a64e | [
"Apache-2.0"
] | null | null | null | // Description: C++18 implementation for a ISOCcy buffer object.
/*
* org.msscf.msscf.CFSec
*
* Copyright (c) 2020 Mark Stephen Sobkow
*
* MSS Code Factory CFSec 2.13 Security Essentials
*
* Copyright 2020-2021 Mark Stephen Sobkow
*
* This file is part of MSS Code Factory.
*
* MSS Code Factory is avai... | 28.438053 | 118 | 0.665863 | msobkow |
8a365fa701452eba42aa4460c3937514aa635a1d | 703 | cpp | C++ | Questless/Questless/src/items/weapons/quiver.cpp | jonathansharman/questless | bb9ffb2d21cbfde2a71edfecfcbf466479bbbe7d | [
"MIT"
] | 2 | 2020-07-14T12:50:06.000Z | 2020-11-04T02:25:09.000Z | Questless/Questless/src/items/weapons/quiver.cpp | jonathansharman/questless | bb9ffb2d21cbfde2a71edfecfcbf466479bbbe7d | [
"MIT"
] | null | null | null | Questless/Questless/src/items/weapons/quiver.cpp | jonathansharman/questless | bb9ffb2d21cbfde2a71edfecfcbf466479bbbe7d | [
"MIT"
] | null | null | null | //! @file
//! @copyright See <a href="LICENSE.txt">LICENSE.txt</a>.
#include "quiver.hpp"
#include "items/equipment.hpp"
#include "items/item.hpp"
namespace ql {
auto make_quiver(reg& reg, id quiver_id, inventory inventory) -> id {
make_item(reg, quiver_id, 0.5_mass);
//! @todo Equiping and unequiping a bow sh... | 25.107143 | 114 | 0.678521 | jonathansharman |
8a3a16964484f962ada615080de97a04e96ba8f1 | 474 | cpp | C++ | Loyalty/DataModel/Api/RsResultDesc.cpp | uno-labs-solana-hackathon/core-server | fdbdefd32e12fcaa19227f56154e0163c18a35cb | [
"Apache-2.0"
] | null | null | null | Loyalty/DataModel/Api/RsResultDesc.cpp | uno-labs-solana-hackathon/core-server | fdbdefd32e12fcaa19227f56154e0163c18a35cb | [
"Apache-2.0"
] | 1 | 2021-03-06T11:38:01.000Z | 2021-03-15T21:33:16.000Z | Loyalty/DataModel/Api/RsResultDesc.cpp | uno-labs-solana-hackathon/core-server | fdbdefd32e12fcaa19227f56154e0163c18a35cb | [
"Apache-2.0"
] | null | null | null | #include "RsResultDesc.hpp"
namespace Sol::Loyalty::API::RPC {
TYPE_STRUCT_IMPLEMENT(RsResultDesc, GP_MODULE_UUID)
RsResultDesc::RsResultDesc (void) noexcept
{
}
RsResultDesc::RsResultDesc
(
const ResultCode::EnumT aRes,
std::string_view aMsg
):
res(aRes),
msg(aMsg)
{
}
RsResultDesc::~RsResultDesc (void) noexce... | 14.8125 | 80 | 0.740506 | uno-labs-solana-hackathon |
8a3d2462c6bef130b0548fa2486e04eab6c7eff0 | 525 | hpp | C++ | OfferReview/OfferReview/53_03_IntegerIdenticalToIndex/IntegerIdenticalToIndex.hpp | chm994483868/HMDailyLearningRecord | 95ff0a5347927ce4527bcdd70374e5be22bfc60d | [
"MIT"
] | 2 | 2021-06-26T08:07:04.000Z | 2021-08-03T06:05:40.000Z | OfferReview/OfferReview/53_03_IntegerIdenticalToIndex/IntegerIdenticalToIndex.hpp | chm994483868/HMDailyLearningRecord | 95ff0a5347927ce4527bcdd70374e5be22bfc60d | [
"MIT"
] | null | null | null | OfferReview/OfferReview/53_03_IntegerIdenticalToIndex/IntegerIdenticalToIndex.hpp | chm994483868/HMDailyLearningRecord | 95ff0a5347927ce4527bcdd70374e5be22bfc60d | [
"MIT"
] | null | null | null | //
// IntegerIdenticalToIndex.hpp
// OfferReview
//
// Created by CHM on 2020/11/10.
// Copyright © 2020 CHM. All rights reserved.
//
#ifndef IntegerIdenticalToIndex_hpp
#define IntegerIdenticalToIndex_hpp
#include <stdio.h>
#include <cstdio>
namespace IntegerIdenticalToIndex {
// 面试题53(三):数组中数值和下标相等的元素
// 题目:假... | 18.75 | 57 | 0.746667 | chm994483868 |
8a3e3a3d568e233ce56dfefff7a6b43ac42d437a | 653 | cpp | C++ | code/lib/src/Node.cpp | ilovrencic/CART-Algorithm | 760f1a0bfc4cd031b7c88ea3dd6384c3282ee1a5 | [
"MIT"
] | null | null | null | code/lib/src/Node.cpp | ilovrencic/CART-Algorithm | 760f1a0bfc4cd031b7c88ea3dd6384c3282ee1a5 | [
"MIT"
] | null | null | null | code/lib/src/Node.cpp | ilovrencic/CART-Algorithm | 760f1a0bfc4cd031b7c88ea3dd6384c3282ee1a5 | [
"MIT"
] | null | null | null | /*
* Copyright (c) DTAI - KU Leuven – All rights reserved.
* Proprietary, do not copy or distribute without permission.
* Written by Pieter Robberechts, 2019
*/
#include "Node.hpp"
using std::make_shared;
Node::Node() : trueBranch_(nullptr), falseBranch_(nullptr), question_({}), leaf_(nullptr) {}
Node::Node(Le... | 32.65 | 111 | 0.716692 | ilovrencic |
8a414d37e767e7d4af70400db433010a9b657a31 | 6,337 | cpp | C++ | mr_tools/src/VelocityDispatcher.cpp | cogniteam/mr_teleoperator | c8a1e8c773bf1e8b74632ec42512e9ca1a5b3bbd | [
"MIT"
] | 2 | 2016-11-08T01:50:33.000Z | 2019-06-29T18:20:09.000Z | mr_tools/src/VelocityDispatcher.cpp | cogniteam/mr_teleoperator | c8a1e8c773bf1e8b74632ec42512e9ca1a5b3bbd | [
"MIT"
] | 4 | 2015-06-24T00:18:55.000Z | 2016-06-28T22:19:58.000Z | mr_tools/src/VelocityDispatcher.cpp | cogniteam/mr_teleoperator | c8a1e8c773bf1e8b74632ec42512e9ca1a5b3bbd | [
"MIT"
] | 5 | 2015-07-07T15:09:17.000Z | 2020-05-13T17:27:24.000Z | /**
* Filename: VelocityDispatcher.cpp
* Author: Igor Makhtes, Cogniteam Ltd.
* Date: Nov 26, 2013
*
* The MIT License (MIT)
*
* Copyright (c) 2013 Cogniteam Ltd.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "... | 30.466346 | 121 | 0.646205 | cogniteam |
8a485575599db5f3ba702a82983b14be9313f773 | 4,343 | cpp | C++ | src/index/VocabularyGenerator.cpp | jbuerklin/QLever | 0c36c60454a5702a09ffa0db0fa64b3f5e4f2631 | [
"Apache-2.0"
] | null | null | null | src/index/VocabularyGenerator.cpp | jbuerklin/QLever | 0c36c60454a5702a09ffa0db0fa64b3f5e4f2631 | [
"Apache-2.0"
] | null | null | null | src/index/VocabularyGenerator.cpp | jbuerklin/QLever | 0c36c60454a5702a09ffa0db0fa64b3f5e4f2631 | [
"Apache-2.0"
] | null | null | null | // Copyright 2018, University of Freiburg,
// Chair of Algorithms and Data Structures.
// Author: Johannes Kalmbach <johannes.kalmbach@gmail.com>
#include "./VocabularyGenerator.h"
#include <fstream>
#include <iostream>
#include <queue>
#include <string>
#include <unordered_set>
#include <utility>
#include <vector>
#... | 32.901515 | 95 | 0.663136 | jbuerklin |
8a4899333bb2276fb21803a6c99c98a5eb52edc4 | 11,931 | cpp | C++ | BigBang/src/layers/conv_layer.cpp | 1icas/BigBoom | c7492e201fe63cb9acc4690b38175abe30720fbd | [
"Apache-2.0"
] | 1 | 2018-01-02T13:02:49.000Z | 2018-01-02T13:02:49.000Z | BigBang/src/layers/conv_layer.cpp | 1icas/BigBoom | c7492e201fe63cb9acc4690b38175abe30720fbd | [
"Apache-2.0"
] | null | null | null | BigBang/src/layers/conv_layer.cpp | 1icas/BigBoom | c7492e201fe63cb9acc4690b38175abe30720fbd | [
"Apache-2.0"
] | 1 | 2019-08-17T07:20:26.000Z | 2019-08-17T07:20:26.000Z | #include "../../include/layers/conv_layer.h"
#include <memory>
#include <vector>
#include "../../include/base.h"
#include "../../include/filler.h"
#include "../../include/gtest.h"
#include "../../include/layer_factory.h"
#include "../../include/util/common.h"
#include "../../include/util/im2col.h"
#include "../../inc... | 42.610714 | 130 | 0.738329 | 1icas |
8a4959ee5a3f4d9f9e0a75e7a10d206627f64c9a | 5,526 | hpp | C++ | ComputeApplication/VulkanInterface.VulkanHandle.hpp | Markyparky56/Toroidal-Volumetric-World | 6fd07736af88a347268cfaa01f3119b1596f8faa | [
"Apache-2.0"
] | null | null | null | ComputeApplication/VulkanInterface.VulkanHandle.hpp | Markyparky56/Toroidal-Volumetric-World | 6fd07736af88a347268cfaa01f3119b1596f8faa | [
"Apache-2.0"
] | null | null | null | ComputeApplication/VulkanInterface.VulkanHandle.hpp | Markyparky56/Toroidal-Volumetric-World | 6fd07736af88a347268cfaa01f3119b1596f8faa | [
"Apache-2.0"
] | null | null | null | #pragma once
// Based on Vulkan Cookbook's VkDestroyer Class
#include <utility>
#include <functional>
#include "VulkanInterface.Functions.hpp"
namespace VulkanInterface
{
struct VkInstanceWrapper
{
VkInstance handle;
};
struct VkDeviceWrapper
{
VkDevice handle;
};
struct VkSurfaceKHRWrapper
{... | 29.550802 | 134 | 0.742128 | Markyparky56 |
8a4cc17d7402482c33c8f078fb387802710f25c0 | 11,054 | cpp | C++ | tcr/src/v20190924/model/RepositoryInfoResp.cpp | sinjoywong/tencentcloud-sdk-cpp | 1b931d20956a90b15a6720f924e5c69f8786f9f4 | [
"Apache-2.0"
] | null | null | null | tcr/src/v20190924/model/RepositoryInfoResp.cpp | sinjoywong/tencentcloud-sdk-cpp | 1b931d20956a90b15a6720f924e5c69f8786f9f4 | [
"Apache-2.0"
] | null | null | null | tcr/src/v20190924/model/RepositoryInfoResp.cpp | sinjoywong/tencentcloud-sdk-cpp | 1b931d20956a90b15a6720f924e5c69f8786f9f4 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 28.19898 | 145 | 0.688981 | sinjoywong |
8a515b67d08dcff60ed1c09a119849c1d2d1800d | 1,173 | cpp | C++ | src/Model/satfilemodel.cpp | tasmanianfox/sat-cnf-converter | a8ea106d8745f9f7ac14f7e8c39f6f6aa4819211 | [
"MIT"
] | 4 | 2017-04-01T05:09:51.000Z | 2018-06-15T04:43:15.000Z | src/Model/satfilemodel.cpp | tasmanianfox/sat-cnf-converter | a8ea106d8745f9f7ac14f7e8c39f6f6aa4819211 | [
"MIT"
] | null | null | null | src/Model/satfilemodel.cpp | tasmanianfox/sat-cnf-converter | a8ea106d8745f9f7ac14f7e8c39f6f6aa4819211 | [
"MIT"
] | 3 | 2015-09-20T09:17:12.000Z | 2021-01-31T09:09:34.000Z | #include "satfilemodel.h"
using namespace Model;
SatFileModel::SatFileModel():
FileModel()
{
this->numVariables = 0;
this->expression = "";
}
int SatFileModel::getNumVariables()
{
return numVariables;
}
void SatFileModel::setNumVariables(int numVariables)
{
this->numVariables =... | 23.938776 | 71 | 0.629156 | tasmanianfox |
a436a39caa78464068083751c7ffd9355d2cefe4 | 1,614 | cpp | C++ | src/Map/SqliteHeightmapTileProvider.cpp | StarQuasar/OsmAnd-core | a550a575d40f68247b78205603fe9a8dc81e9736 | [
"MIT"
] | null | null | null | src/Map/SqliteHeightmapTileProvider.cpp | StarQuasar/OsmAnd-core | a550a575d40f68247b78205603fe9a8dc81e9736 | [
"MIT"
] | null | null | null | src/Map/SqliteHeightmapTileProvider.cpp | StarQuasar/OsmAnd-core | a550a575d40f68247b78205603fe9a8dc81e9736 | [
"MIT"
] | null | null | null | #include "SqliteHeightmapTileProvider.h"
#include "SqliteHeightmapTileProvider_P.h"
#include "MapDataProviderHelpers.h"
OsmAnd::SqliteHeightmapTileProvider::SqliteHeightmapTileProvider(
const std::shared_ptr<const ITileSqliteDatabasesCollection>& sourcesCollection_,
uint32_t outputTileSize_)
: _p(new Sqli... | 27.355932 | 94 | 0.785006 | StarQuasar |
a436b74847510094802d91974d363a816640c2ee | 752 | hpp | C++ | include/DesignTicTacToe.hpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 43 | 2015-10-10T12:59:52.000Z | 2018-07-11T18:07:00.000Z | include/DesignTicTacToe.hpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | null | null | null | include/DesignTicTacToe.hpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 11 | 2015-10-10T14:41:11.000Z | 2018-07-28T06:03:16.000Z | #ifndef DESIGN_TIC_TAC_TOE_HPP_
#define DESIGN_TIC_TAC_TOE_HPP_
#include <vector>
using namespace std;
class TicTacToe {
public:
/** Initialize your data structure here. */
TicTacToe(int n);
/** Player {player} makes a move at ({row}, {col}).
@param row The row of the board.
@param col T... | 24.258065 | 61 | 0.618351 | yanzhe-chen |
a439312aa7cb66b1f06c54af4813b8cdac7a18ab | 451 | hpp | C++ | library/header/exceptions/argument.hpp | balmanth/spl | 6c11d862439959338f37b5acb9997922c2f7ca3d | [
"MIT"
] | null | null | null | library/header/exceptions/argument.hpp | balmanth/spl | 6c11d862439959338f37b5acb9997922c2f7ca3d | [
"MIT"
] | null | null | null | library/header/exceptions/argument.hpp | balmanth/spl | 6c11d862439959338f37b5acb9997922c2f7ca3d | [
"MIT"
] | null | null | null | /// Copyright (c) 2020 Silas B. Domingos
/// This source code is licensed under the MIT License as described in the file LICENSE.
///
#pragma once
#include "../interfaces/exception.hpp"
namespace SPL::Exceptions {
/// <summary>
/// Invalid argument, exception class.
/// </summary>
class InvalidArgument : publ... | 22.55 | 88 | 0.656319 | balmanth |
a43b7ef9edc36af9b21bccfd5e48389be3f6872b | 28,501 | cpp | C++ | storage/driver.azure/src/cloud_blob.cpp | gamunu/bolt | c1a2956f02656f3ec2c244486a816337126905ae | [
"Apache-2.0"
] | 1 | 2022-03-06T09:23:56.000Z | 2022-03-06T09:23:56.000Z | storage/driver.azure/src/cloud_blob.cpp | gamunu/bolt | c1a2956f02656f3ec2c244486a816337126905ae | [
"Apache-2.0"
] | 3 | 2021-04-23T18:12:20.000Z | 2021-04-23T18:12:47.000Z | storage/driver.azure/src/cloud_blob.cpp | gamunu/bolt | c1a2956f02656f3ec2c244486a816337126905ae | [
"Apache-2.0"
] | null | null | null | // -----------------------------------------------------------------------------------------
// <copyright file="cloud_blob.cpp" company="Microsoft">
// Copyright 2013 Microsoft Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance w... | 52.68207 | 253 | 0.762921 | gamunu |
a43db8a9123321e26d5437e3cb7e6e301282d550 | 2,410 | cpp | C++ | Plugins/uDesktopDuplication/uDesktopDuplication/Common.cpp | TayouVR/uDesktopDuplication | e2bb0126ced3c54ca5a1a801f3c7cf7f541c1956 | [
"Unlicense",
"MIT"
] | 447 | 2016-10-27T08:24:33.000Z | 2022-03-28T02:21:38.000Z | Plugins/uDesktopDuplication/uDesktopDuplication/Common.cpp | TayouVR/uDesktopDuplication | e2bb0126ced3c54ca5a1a801f3c7cf7f541c1956 | [
"Unlicense",
"MIT"
] | 53 | 2016-11-24T14:12:57.000Z | 2022-03-10T07:23:01.000Z | Plugins/uDesktopDuplication/uDesktopDuplication/Common.cpp | TayouVR/uDesktopDuplication | e2bb0126ced3c54ca5a1a801f3c7cf7f541c1956 | [
"Unlicense",
"MIT"
] | 92 | 2016-11-01T09:14:08.000Z | 2022-03-30T00:20:35.000Z | #pragma once
#include <queue>
#include <d3d11.h>
#include "IUnityInterface.h"
#include "IUnityGraphicsD3D11.h"
#include "Common.h"
#include "Debug.h"
using namespace Microsoft::WRL;
extern IUnityInterfaces* g_unity;
extern std::unique_ptr<MonitorManager> g_manager;
extern std::queue<Message> g_mes... | 22.952381 | 89 | 0.675104 | TayouVR |
a4403e020ac16b062cbca4e8d88df6a17c65b958 | 2,577 | cpp | C++ | blackbox/gfx/widgets/ImGui/TasksWidget.cpp | mojmir-svoboda/BlackBoxTT | 0c87b989827107695538e1bf1266c08b083dda44 | [
"MIT"
] | 11 | 2017-06-19T14:21:15.000Z | 2020-03-04T06:43:16.000Z | blackbox/gfx/widgets/ImGui/TasksWidget.cpp | mojmir-svoboda/BlackBoxTT | 0c87b989827107695538e1bf1266c08b083dda44 | [
"MIT"
] | null | null | null | blackbox/gfx/widgets/ImGui/TasksWidget.cpp | mojmir-svoboda/BlackBoxTT | 0c87b989827107695538e1bf1266c08b083dda44 | [
"MIT"
] | 3 | 2017-07-23T18:08:55.000Z | 2019-09-16T16:28:18.000Z | #include "TasksWidget.h"
#include <blackbox/BlackBox.h>
#include <blackbox/gfx/ImGui/utils_imgui.h>
#include <blackbox/utils_window.h>
#include <bblib/codecvt.h>
namespace bb {
TasksWidget::TasksWidget (WidgetConfig & cfg)
: GuiWidget(cfg)
{
m_tasks.reserve(64);
}
void TasksWidget::UpdateTasks ()
{
m_tas... | 23.427273 | 92 | 0.605355 | mojmir-svoboda |
a44243d84e40e6cd4703a3dfcf789c7e86f866c1 | 3,882 | hxx | C++ | src/amr/boxlist.hxx | LBL-CoDEx/programr | 7e26f2b305759335c9bc0509fed1f3fec39d62cb | [
"BSD-3-Clause-LBNL"
] | 3 | 2018-12-14T09:39:18.000Z | 2021-09-12T04:08:36.000Z | src/amr/boxlist.hxx | LBL-CoDEx/programr | 7e26f2b305759335c9bc0509fed1f3fec39d62cb | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/amr/boxlist.hxx | LBL-CoDEx/programr | 7e26f2b305759335c9bc0509fed1f3fec39d62cb | [
"BSD-3-Clause-LBNL"
] | null | null | null | #ifndef _c2245f2f_fec3_4ee0_9342_4219f2b33fac
#define _c2245f2f_fec3_4ee0_9342_4219f2b33fac
# include "box.hxx"
# include "lowlevel/intset.hxx"
# include "lowlevel/ref.hxx"
# include "lowlevel/pile.hxx"
# include "lowlevel/digest.hxx"
# include "lowlevel/byteseq.hxx"
# include <cstdint>
# include <memory>
# include <... | 27.338028 | 93 | 0.579341 | LBL-CoDEx |
a4432263b2a6a5b1b57122b4bce31b3aa67df3ff | 2,843 | cpp | C++ | src/JSONhandler.cpp | provablyprivate/the-solution-to-GDPR | 942a78aa6a37fd7dadf1f002e9839f8cd41b769d | [
"MIT"
] | null | null | null | src/JSONhandler.cpp | provablyprivate/the-solution-to-GDPR | 942a78aa6a37fd7dadf1f002e9839f8cd41b769d | [
"MIT"
] | 29 | 2019-02-22T08:39:03.000Z | 2019-04-08T13:40:34.000Z | src/JSONhandler.cpp | provablyprivate/the-solution-to-GDPR | 942a78aa6a37fd7dadf1f002e9839f8cd41b769d | [
"MIT"
] | 2 | 2019-03-22T07:15:50.000Z | 2019-03-26T09:14:54.000Z | #include "./JSONhandler.h"
#include <string>
/*! \brief Parses a string to a JSON object
*
* The input is a string representation of a JSON. This gets fed to the parse instance
* derived from the Poco library. If successful, a JSON object will be extracted
* and set.
*/
JSONHandler::JSONHandler(string input) {
... | 28.717172 | 129 | 0.694689 | provablyprivate |
a449e70f0fe77f3509322cf9022a5218fe94be33 | 1,134 | hpp | C++ | src/batched/KokkosBatched_Scale_Decl.hpp | dialecticDolt/kokkos-kernels | 00189c0be23a70979aeaa162f0abd4c0e4d1c479 | [
"BSD-3-Clause"
] | 156 | 2017-03-01T23:38:10.000Z | 2022-03-27T21:28:03.000Z | src/batched/KokkosBatched_Scale_Decl.hpp | dialecticDolt/kokkos-kernels | 00189c0be23a70979aeaa162f0abd4c0e4d1c479 | [
"BSD-3-Clause"
] | 1,257 | 2017-03-03T15:25:16.000Z | 2022-03-31T19:46:09.000Z | src/batched/KokkosBatched_Scale_Decl.hpp | dialecticDolt/kokkos-kernels | 00189c0be23a70979aeaa162f0abd4c0e4d1c479 | [
"BSD-3-Clause"
] | 76 | 2017-03-01T17:03:59.000Z | 2022-03-03T21:04:41.000Z | #ifndef __KOKKOSBATCHED_SCALE_DECL_HPP__
#define __KOKKOSBATCHED_SCALE_DECL_HPP__
/// \author Kyungjoo Kim (kyukim@sandia.gov)
#include "KokkosBatched_Util.hpp"
#include "KokkosBatched_Vector.hpp"
namespace KokkosBatched {
///
/// Serial Scale
///
struct SerialScale {
template<typename ScalarType,
... | 18.9 | 44 | 0.664903 | dialecticDolt |
a44a1fb4dfd07f248b86dc111185431daade5fa1 | 881 | hpp | C++ | include/nuschl/primitives.hpp | behlec/nuschl | 35dbdd6dca8e59387623cc8a23f71324e07ea98c | [
"MIT"
] | null | null | null | include/nuschl/primitives.hpp | behlec/nuschl | 35dbdd6dca8e59387623cc8a23f71324e07ea98c | [
"MIT"
] | null | null | null | include/nuschl/primitives.hpp | behlec/nuschl | 35dbdd6dca8e59387623cc8a23f71324e07ea98c | [
"MIT"
] | null | null | null | #pragma once
#include <nuschl/s_exp_fwd.hpp>
#include <memory>
#include <vector>
namespace nuschl {
namespace memory {
class s_exp_pool;
}
//! Builtin primitive functions
class primitive {
public:
/**
* \brief Eval arguments.
*
* \param arguments The (already evaluated) arguments.
* \thro... | 24.472222 | 75 | 0.674234 | behlec |
a44bec43b11b82abe64dc96211a4877b9c43b3a9 | 20,698 | cpp | C++ | Engine/Network/Compression.cpp | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | 1 | 2022-02-14T15:46:44.000Z | 2022-02-14T15:46:44.000Z | Engine/Network/Compression.cpp | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | null | null | null | Engine/Network/Compression.cpp | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | 2 | 2022-01-10T22:17:06.000Z | 2022-01-17T09:34:08.000Z | #include "stdh.h"
#include <Engine/Base/Stream.h>
#include <Engine/Math/Functions.h>
#include <Engine/Math/Vector.h>
#include <Engine/Network/Compression.h>
#include <Engine/Base/Synchronization.h>
#include <3rdparty/zlib-1.2.8/zlib.h>
extern CTCriticalSection zip_csLock; // critical section for access to zlib functi... | 34.325041 | 100 | 0.669098 | openlastchaos |
a44e6b7caf79343b96eab5f463272f447cba84b2 | 790 | cpp | C++ | luogu/1095.cpp | shorn1/OI-ICPC-Problems | 0c18b3297190a0e108c311c74d28351ebc70c3d1 | [
"MIT"
] | 1 | 2020-05-07T09:26:05.000Z | 2020-05-07T09:26:05.000Z | luogu/1095.cpp | shorn1/OI-ICPC-Problems | 0c18b3297190a0e108c311c74d28351ebc70c3d1 | [
"MIT"
] | null | null | null | luogu/1095.cpp | shorn1/OI-ICPC-Problems | 0c18b3297190a0e108c311c74d28351ebc70c3d1 | [
"MIT"
] | null | null | null | #include<cmath>
#include<cctype>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<iostream>
#include<algorithm>
#define ns namespace
#define lol long long
using ns std;
const int M = 333333;
int m,s,t,dp[M],res,flg;
int main(int argc,char** argv)
{
scanf("%d%d%d",&m,&s,&t);
for(int i = 1;i <= t;... | 17.954545 | 43 | 0.422785 | shorn1 |
a4585b8af1b12b32bb980c010e213c523a834c3f | 1,641 | cpp | C++ | practice/poweredAddition.cpp | xenowits/cp | 963b3c7df65b5328d5ce5ef894a46691afefb98c | [
"MIT"
] | null | null | null | practice/poweredAddition.cpp | xenowits/cp | 963b3c7df65b5328d5ce5ef894a46691afefb98c | [
"MIT"
] | null | null | null | practice/poweredAddition.cpp | xenowits/cp | 963b3c7df65b5328d5ce5ef894a46691afefb98c | [
"MIT"
] | null | null | null | //xenowi`tz -- Jai Shree Ram
#include<bits/stdc++.h>
using namespace std;
#define fori(i,a,b) for (long long int i = a; i <= b ; ++i)
#define ford(i,a,b) for(long long int i = a;i >= b ; --i)
#define mk make_pair
#define mod 1000000007
#define MAXN 5005
#define pb push_back
#define vec vector<long long int>
#define ll... | 27.813559 | 99 | 0.630104 | xenowits |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.