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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1f7d8456c5838e79e62387209e49b4c930680972 | 8,434 | cpp | C++ | examples/ex30p.cpp | ajithvallabai/mfem | 5920fbf645f328c29a9d6489f2474d989f808451 | [
"BSD-3-Clause"
] | null | null | null | examples/ex30p.cpp | ajithvallabai/mfem | 5920fbf645f328c29a9d6489f2474d989f808451 | [
"BSD-3-Clause"
] | null | null | null | examples/ex30p.cpp | ajithvallabai/mfem | 5920fbf645f328c29a9d6489f2474d989f808451 | [
"BSD-3-Clause"
] | 1 | 2019-07-09T20:41:56.000Z | 2019-07-09T20:41:56.000Z | // MFEM Example 30 - Parallel Version
//
// Compile with: make ex30p
//
// Sample runs: mpirun -np 4 ex30p -m ../data/square-disc.mesh -o 1
// mpirun -np 4 ex30p -m ../data/square-disc.mesh -o 2
// mpirun -np 4 ex30p -m ../data/square-disc.mesh -o 2 -me 1e3
// ... | 34.85124 | 81 | 0.600901 | ajithvallabai |
1f84165a95592b9dcb4054bcf07a11a16389cc2b | 3,590 | cpp | C++ | src/scenes/SFPC/yosukeJohnWhitneyMatrix/yosukeJohnWhitneyMatrix.cpp | roymacdonald/ReCoded | 3bcb3d579cdd17381e54a508a1e4ef9e3d5bc4f1 | [
"MIT"
] | 64 | 2017-06-12T19:24:08.000Z | 2022-01-27T19:14:48.000Z | src/scenes/yosukeJohnWhitneyMatrix/yosukeJohnWhitneyMatrix.cpp | colaplate/recoded | 934e1184c7502d192435c406e56b8a2106e9b6b4 | [
"MIT"
] | 10 | 2017-06-13T10:38:39.000Z | 2017-11-15T11:21:05.000Z | src/scenes/yosukeJohnWhitneyMatrix/yosukeJohnWhitneyMatrix.cpp | colaplate/recoded | 934e1184c7502d192435c406e56b8a2106e9b6b4 | [
"MIT"
] | 24 | 2017-06-11T08:14:46.000Z | 2020-04-16T20:28:46.000Z |
#include "yosukeJohnWhitneyMatrix.h"
void yosukeJohnWhitneyMatrix::setup(){
// setup pramaters
numOfGroup.set("number-of-group", 4, 1, MAXNUMOFGROPU);
parameters.add(numOfGroup);
numOfBall.set("number-of-ball", 6, 1, MAXNUMOFBALL);
parameters.add(numOfBall);
radius.set("rotation-radius", 150, 1... | 29.916667 | 92 | 0.479109 | roymacdonald |
1f84cb7fd11acc3baba1edb3272eb6c8a9146224 | 740 | hpp | C++ | libs/renderer/include/Renderer.hpp | Sharpyfile/WARdrobe | 7842d486f65c7a045771f9ef78c0655eda2d346a | [
"DOC"
] | null | null | null | libs/renderer/include/Renderer.hpp | Sharpyfile/WARdrobe | 7842d486f65c7a045771f9ef78c0655eda2d346a | [
"DOC"
] | null | null | null | libs/renderer/include/Renderer.hpp | Sharpyfile/WARdrobe | 7842d486f65c7a045771f9ef78c0655eda2d346a | [
"DOC"
] | 1 | 2021-03-21T16:52:22.000Z | 2021-03-21T16:52:22.000Z | #pragma once
#include "Camera.hpp"
#include "Model.hpp"
#include "Shader.hpp"
#include "Skybox.hpp"
#include "glm/gtc/type_ptr.hpp"
#include "glm/glm.hpp"
class Renderer
{
public:
Renderer();
Renderer(unsigned int);
Renderer(bool, float[], int, unsigned int[], int, std::string);
void
Draw(Shader*, Model*, C... | 25.517241 | 106 | 0.674324 | Sharpyfile |
1f90d9fb6690212280330dcb10894212c38a3465 | 4,338 | cpp | C++ | src/algorithm/IsomorphSpace.cpp | ehzawad/HyperGraphLib | a1424437a01ad5a9e0efa71d723d32fd58ca589c | [
"MIT"
] | 22 | 2016-05-25T06:25:14.000Z | 2022-01-12T09:15:38.000Z | src/algorithm/IsomorphSpace.cpp | ehzawad/HyperGraphLib | a1424437a01ad5a9e0efa71d723d32fd58ca589c | [
"MIT"
] | 12 | 2016-05-08T15:02:48.000Z | 2021-03-24T07:25:19.000Z | src/algorithm/IsomorphSpace.cpp | ehzawad/HyperGraphLib | a1424437a01ad5a9e0efa71d723d32fd58ca589c | [
"MIT"
] | 6 | 2017-02-12T23:12:07.000Z | 2021-06-28T06:34:55.000Z | /*
* MIT License
*
* Copyright (c) 2015 Alexis LE GOADEC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, cop... | 33.114504 | 118 | 0.665514 | ehzawad |
1f9ab6767cb247484030b35aa5911d7aab15c084 | 777 | cpp | C++ | bolt/server/src/mhttppost.cpp | gamunu/bolt | c1a2956f02656f3ec2c244486a816337126905ae | [
"Apache-2.0"
] | 1 | 2022-03-06T09:23:56.000Z | 2022-03-06T09:23:56.000Z | bolt/server/src/mhttppost.cpp | gamunu/bolt | c1a2956f02656f3ec2c244486a816337126905ae | [
"Apache-2.0"
] | 3 | 2021-04-23T18:12:20.000Z | 2021-04-23T18:12:47.000Z | bolt/server/src/mhttppost.cpp | gamunu/bolt | c1a2956f02656f3ec2c244486a816337126905ae | [
"Apache-2.0"
] | null | null | null | #include<mhttppost.hpp>
#include<regex>
#include<boost/scoped_ptr.hpp>
#include <mysql_table.h>
#include <metadata.hpp>
using namespace std;
using namespace bolt::storage::mysql;
json::value MHttpPost::createTable(json::value object)
{
//TODO:Check if we are in windows or unix
wregex name_regx(U("^[A-Za-z][A-Za-z0-... | 22.2 | 57 | 0.680824 | gamunu |
1f9b955121445f1fb7046fb0d6d4ddf4552fdfc2 | 1,570 | cc | C++ | gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/22_locale/money_get/get/char/39168.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/22_locale/money_get/get/char/39168.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/22_locale/money_get/get/char/39168.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | // Copyright (C) 2009-2017 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 3, or (at your op... | 28.035714 | 74 | 0.708917 | best08618 |
1f9ceca10c7920f9b0c1b921829cf18a9ee37b75 | 16,916 | cpp | C++ | wxWidgets-2.9.1/src/osx/carbon/combobox.cpp | gamekit-developers/gamekit | 74c896af5826ebe8fb72f2911015738f38ab7bb2 | [
"Zlib",
"MIT"
] | 241 | 2015-01-04T00:36:58.000Z | 2022-01-06T19:19:23.000Z | wxWidgets-2.9.1/src/osx/carbon/combobox.cpp | gamekit-developers/gamekit | 74c896af5826ebe8fb72f2911015738f38ab7bb2 | [
"Zlib",
"MIT"
] | 10 | 2015-07-10T18:27:17.000Z | 2019-06-26T20:59:59.000Z | wxWidgets-2.9.1/src/osx/carbon/combobox.cpp | gamekit-developers/gamekit | 74c896af5826ebe8fb72f2911015738f38ab7bb2 | [
"Zlib",
"MIT"
] | 82 | 2015-01-25T18:02:35.000Z | 2022-03-05T12:28:17.000Z | /////////////////////////////////////////////////////////////////////////////
// Name: src/osx/carbon/combobox.cpp
// Purpose: wxComboBox class
// Author: Stefan Csomor, Dan "Bud" Keith (composite combobox)
// Modified by:
// Created: 1998-01-01
// RCS-ID: $Id$
// Copyright: (c) Stefan... | 24.730994 | 107 | 0.565855 | gamekit-developers |
1f9d47ab42c6c618df449777e23c5a474dbed1ac | 4,203 | cpp | C++ | src/FresponzeListener.cpp | suirless/fresponze | 2c8f9204c8ba4b734d7885cc1fe51f31c89d22ef | [
"Apache-2.0"
] | 8 | 2020-09-26T20:38:26.000Z | 2021-05-16T18:13:48.000Z | src/FresponzeListener.cpp | Vertver/Fresponze | ca45738a2c06474fb6f45b627f8b1c8b85e69cd1 | [
"Apache-2.0"
] | 23 | 2022-01-23T04:57:32.000Z | 2022-01-23T04:59:32.000Z | src/FresponzeListener.cpp | suirless/fresponze | 2c8f9204c8ba4b734d7885cc1fe51f31c89d22ef | [
"Apache-2.0"
] | 1 | 2020-12-07T13:48:15.000Z | 2020-12-07T13:48:15.000Z | /*********************************************************************
* Copyright (C) Anton Kovalev (vertver), 2020. All rights reserved.
* Fresponze - fast, simple and modern multimedia sound library
* Apache-2 License
**********************************************************************
* Licensed under the Apache ... | 26.26875 | 110 | 0.730193 | suirless |
1fa10edad2574c55eaacb70ccf1e426684a9be6a | 109 | cpp | C++ | SteamAPIWrap/Helper.cpp | HoggeL/Ludosity-s-Steamworks-Wrapper | 5cd8f5740829a20af23343865895ceb782f9b0b4 | [
"MIT"
] | null | null | null | SteamAPIWrap/Helper.cpp | HoggeL/Ludosity-s-Steamworks-Wrapper | 5cd8f5740829a20af23343865895ceb782f9b0b4 | [
"MIT"
] | null | null | null | SteamAPIWrap/Helper.cpp | HoggeL/Ludosity-s-Steamworks-Wrapper | 5cd8f5740829a20af23343865895ceb782f9b0b4 | [
"MIT"
] | null | null | null | #include "Precompiled.hpp"
#include "Helper.hpp"
using namespace SteamAPIWrap;
namespace SteamAPIWrap
{
}
| 10.9 | 29 | 0.770642 | HoggeL |
1fa38e014ca5f85754d715b90f8c8c6bd411d65c | 4,557 | cpp | C++ | src/teleop_dummy/main_teleop_dummy_sigma.cpp | neemoh/ART | 3f990b9d3c4b58558adf97866faf4eea553ba71b | [
"Unlicense"
] | 11 | 2018-06-29T19:08:08.000Z | 2021-12-30T07:13:00.000Z | src/teleop_dummy/main_teleop_dummy_sigma.cpp | liuxia-zju/ATAR | 3f990b9d3c4b58558adf97866faf4eea553ba71b | [
"Unlicense"
] | 1 | 2020-05-09T23:44:55.000Z | 2020-05-09T23:44:55.000Z | src/teleop_dummy/main_teleop_dummy_sigma.cpp | liuxia-zju/ATAR | 3f990b9d3c4b58558adf97866faf4eea553ba71b | [
"Unlicense"
] | 6 | 2017-11-28T14:26:18.000Z | 2019-11-29T01:57:14.000Z | //
// Created by nima on 12/10/17.
//
#include <ros/ros.h>
#include <geometry_msgs/PoseStamped.h>
#include <sensor_msgs/Joy.h>
#include <kdl/frames.hpp>
#include <kdl_conversions/kdl_msg.h>
#include <std_msgs/String.h>
#include <std_msgs/Int8.h>
#include <src/ar_core/ControlEvents.h>
// This node simulates the slaves... | 33.507353 | 94 | 0.595128 | neemoh |
1fa651fd76841758e078bce56db748f2b9794d19 | 901 | cpp | C++ | OJ/vol127/UVa12709.cpp | jennygaz/competitive | 2807b0fbd2eaaca8ba618f03b1e62c0241849e6c | [
"MIT"
] | null | null | null | OJ/vol127/UVa12709.cpp | jennygaz/competitive | 2807b0fbd2eaaca8ba618f03b1e62c0241849e6c | [
"MIT"
] | null | null | null | OJ/vol127/UVa12709.cpp | jennygaz/competitive | 2807b0fbd2eaaca8ba618f03b1e62c0241849e6c | [
"MIT"
] | null | null | null | /* UVa 12709 - Falling Ants */
/* Solution: Sort by H then by the product LW */
/* by jennyga */
#include <iostream>
#include <vector>
#include <algorithm>
#include <tuple>
#include <functional>
using namespace std;
constexpr int MAXN = 110;
int main(){
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
... | 25.027778 | 79 | 0.513873 | jennygaz |
1fa78f043c98ebdfff8814f34733c311bc583b2a | 8,334 | cpp | C++ | demos/cocos2d-x-3.2/Classes/HelloWorldScene.cpp | silwings/DragonBonesCPP | 8c1003875f78d8feba49fd30ada3196db9afdff1 | [
"MIT"
] | null | null | null | demos/cocos2d-x-3.2/Classes/HelloWorldScene.cpp | silwings/DragonBonesCPP | 8c1003875f78d8feba49fd30ada3196db9afdff1 | [
"MIT"
] | null | null | null | demos/cocos2d-x-3.2/Classes/HelloWorldScene.cpp | silwings/DragonBonesCPP | 8c1003875f78d8feba49fd30ada3196db9afdff1 | [
"MIT"
] | null | null | null | #include "HelloWorldScene.h"
USING_NS_CC;
using namespace dragonBones;
Scene* HelloWorld::createScene()
{
// 'scene' is an autorelease object
auto scene = Scene::create();
// 'layer' is an autorelease object
auto layer = HelloWorld::create();
// add layer as a child to scene
scene->addC... | 37.881818 | 138 | 0.695944 | silwings |
1fb06c4cfc4d1e9dada028d300608be949e698f5 | 24,451 | cc | C++ | iree/hal/string_util.cc | OliverScherf/iree | f2d74fd832fa412ce4375661f0c8607a1985b61a | [
"Apache-2.0"
] | null | null | null | iree/hal/string_util.cc | OliverScherf/iree | f2d74fd832fa412ce4375661f0c8607a1985b61a | [
"Apache-2.0"
] | null | null | null | iree/hal/string_util.cc | OliverScherf/iree | f2d74fd832fa412ce4375661f0c8607a1985b61a | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | 40.281713 | 80 | 0.644391 | OliverScherf |
1fb4d9fcf28e13e998a55d4723163ca30a407d8c | 589 | cpp | C++ | deque.cpp | AbhiRepository/algorithm_codes | 723b9a660084a701b468f98f1c184f9573856521 | [
"MIT"
] | 2 | 2018-09-05T17:12:37.000Z | 2018-09-18T09:27:40.000Z | deque.cpp | AbhiRepository/algorithm_codes | 723b9a660084a701b468f98f1c184f9573856521 | [
"MIT"
] | 8 | 2018-03-24T20:41:25.000Z | 2018-10-19T15:04:20.000Z | deque.cpp | AbhiRepository/algorithm_codes | 723b9a660084a701b468f98f1c184f9573856521 | [
"MIT"
] | 5 | 2018-09-05T17:12:43.000Z | 2018-10-01T09:13:52.000Z | //Program to implement deque for finding the maximum of all suaarays of size k
#include <iostream>
#include <deque>
using namespace std;
int main()
{
int a[]={1,43,23,11,46,22,81,22};
int n=sizeof(a)/sizeof(a[0]);
int k=3;
deque<int> d;
int i;
for (i = 0; i < k; ++i)
{
while(!d.empty() && a[i]>=a[d.back()... | 15.5 | 78 | 0.550085 | AbhiRepository |
1fb570c46f48c50828febe33a93d107e0d4ab239 | 1,124 | cpp | C++ | c++/422.cpp | AkashChandrakar/UVA | b90535c998ecdffe0f30e56fec89411f456b16a5 | [
"Apache-2.0"
] | 2 | 2016-10-23T14:35:13.000Z | 2018-09-16T05:38:47.000Z | c++/422.cpp | AkashChandrakar/UVA | b90535c998ecdffe0f30e56fec89411f456b16a5 | [
"Apache-2.0"
] | null | null | null | c++/422.cpp | AkashChandrakar/UVA | b90535c998ecdffe0f30e56fec89411f456b16a5 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> ii;
vector<int> v;
map<char, ii> hash;
char s[500];
ll process() {
int len = strlen(s);
ll res = 0;
char chr = 'a';
ii a, b, c;
stack<char> S;
map<char, ii> temphash;
for (int i = 0; i < len; ++i) {
if (s[i] == '(')
S.... | 18.129032 | 42 | 0.495552 | AkashChandrakar |
1fba7a152c610fc21125775f6fc104d260a08888 | 1,895 | cpp | C++ | GeneticAlgorithm/GeneticAlgorithm.cpp | TomaszRewak/BMCP | 99e94b11f70658d9b8de792b36af7ecbb215d665 | [
"MIT"
] | 2 | 2019-11-04T15:09:52.000Z | 2022-01-12T05:41:16.000Z | GeneticAlgorithm/GeneticAlgorithm.cpp | TomaszRewak/BMCP | 99e94b11f70658d9b8de792b36af7ecbb215d665 | [
"MIT"
] | null | null | null | GeneticAlgorithm/GeneticAlgorithm.cpp | TomaszRewak/BMCP | 99e94b11f70658d9b8de792b36af7ecbb215d665 | [
"MIT"
] | 1 | 2020-09-09T12:24:35.000Z | 2020-09-09T12:24:35.000Z | // ========================================
// ======= Created by Tomasz Rewak ========
// ========================================
// ==== https://github.com/TomaszRewak ====
// ========================================
#include <memory>
#include <vector>
#include <algorithm>
#include "GeneticAlgorithm.h"
#include "I... | 22.294118 | 112 | 0.668602 | TomaszRewak |
1fbcd45bf47b41749f66033657b69cdb0ff6a0c8 | 8,032 | cc | C++ | node_modules/@parcel/watcher/src/watchman/BSER.cc | hamsall/hamsall.github.io | dc21c8037c9cd13641c61628ef1ed04c306c7701 | [
"MIT"
] | 346 | 2019-04-08T01:30:31.000Z | 2022-03-24T01:49:04.000Z | node_modules/@parcel/watcher/src/watchman/BSER.cc | hamsall/hamsall.github.io | dc21c8037c9cd13641c61628ef1ed04c306c7701 | [
"MIT"
] | 79 | 2019-04-20T08:00:07.000Z | 2022-03-30T17:24:22.000Z | node_modules/@parcel/watcher/src/watchman/BSER.cc | hamsall/hamsall.github.io | dc21c8037c9cd13641c61628ef1ed04c306c7701 | [
"MIT"
] | 12 | 2019-04-08T08:02:10.000Z | 2022-02-03T05:18:53.000Z | #include <stdint.h>
#include "./BSER.hh"
BSERType decodeType(std::istream &iss) {
int8_t type;
iss.read(reinterpret_cast<char*>(&type), sizeof(type));
return (BSERType) type;
}
void expectType(std::istream &iss, BSERType expected) {
BSERType got = decodeType(iss);
if (got != expected) {
throw std::runti... | 26.508251 | 78 | 0.631225 | hamsall |
1fbd2a4e5c43d018d88dc7f3bb0039973f32725b | 47 | cpp | C++ | Unreal/CtaCpp/Runtime/Scripts/Combat/IItem.cpp | areilly711/CtaApi | 8c7a80c48f2a6d02fb6680a5d8f62e6ff7da8d4c | [
"MIT"
] | 3 | 2021-06-02T16:44:02.000Z | 2022-01-24T20:20:10.000Z | Unreal/CtaCpp/Runtime/Scripts/Combat/IItem.cpp | areilly711/CtaApi | 8c7a80c48f2a6d02fb6680a5d8f62e6ff7da8d4c | [
"MIT"
] | null | null | null | Unreal/CtaCpp/Runtime/Scripts/Combat/IItem.cpp | areilly711/CtaApi | 8c7a80c48f2a6d02fb6680a5d8f62e6ff7da8d4c | [
"MIT"
] | null | null | null | #include "IItem.h"
namespace Cta::Combat
{
}
| 7.833333 | 21 | 0.659574 | areilly711 |
1fbdb69e6030ee670f300c97ca10550e3effd251 | 8,052 | cpp | C++ | JLITOSL_Liczba_na_slowo/main.cpp | MichalWilczek/spoj-tasks | 6d5d77d750747ecb162c76a2b7eb4b8e8f2c4fc3 | [
"Unlicense"
] | null | null | null | JLITOSL_Liczba_na_slowo/main.cpp | MichalWilczek/spoj-tasks | 6d5d77d750747ecb162c76a2b7eb4b8e8f2c4fc3 | [
"Unlicense"
] | null | null | null | JLITOSL_Liczba_na_slowo/main.cpp | MichalWilczek/spoj-tasks | 6d5d77d750747ecb162c76a2b7eb4b8e8f2c4fc3 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <map>
#include <vector>
#include <string>
#include <bits/stdc++.h>
using namespace std;
void defineNumberNames(map<int, string> &numbers)
{
numbers[1] = "jeden";
numbers[2] = "dwa";
numbers[3] = "trzy";
numbers[4] = "cztery";
numbers[5] = "piec";
numbers[6] = "szesc... | 25.241379 | 99 | 0.551788 | MichalWilczek |
1fbeacbdb7e67d4301c5dba000e07850199a0087 | 1,707 | cpp | C++ | examples/google-code-jam/bcurcio/codejamA.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | examples/google-code-jam/bcurcio/codejamA.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | examples/google-code-jam/bcurcio/codejamA.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
int in(){int r=0,c;for(c=getchar_unlocked();c<=32;c=getchar_unlocked());if(c=='-') return -in();for(;c>32;r=(r<<1)+(r<<3)+c-'0',c=getchar_unlocked());return r;}
string ans[]={"X won", "O won","Draw","Game has not complete... | 25.102941 | 160 | 0.485647 | rbenic-fer |
1fbf35864c65425ffcd01c5ce0f7aa92d11ea696 | 13,780 | cpp | C++ | Samples/Animation/Character.cpp | Ravbug/RavEngine-Samples | e9763cfb00758caaed430f38a5c99c0d44f701a7 | [
"Apache-2.0"
] | 4 | 2021-03-05T05:49:34.000Z | 2022-03-30T15:30:46.000Z | Samples/Animation/Character.cpp | Ravbug/RavEngine-Samples | e9763cfb00758caaed430f38a5c99c0d44f701a7 | [
"Apache-2.0"
] | null | null | null | Samples/Animation/Character.cpp | Ravbug/RavEngine-Samples | e9763cfb00758caaed430f38a5c99c0d44f701a7 | [
"Apache-2.0"
] | null | null | null | #include "Character.hpp"
#include <RavEngine/AnimationAsset.hpp>
#include <RavEngine/MeshAssetSkinned.hpp>
#include <RavEngine/BuiltinMaterials.hpp>
#include <RavEngine/SkinnedMeshComponent.hpp>
#include <RavEngine/ScriptComponent.hpp>
#include <RavEngine/ChildEntityComponent.hpp>
#include <RavEngine/StaticMesh.... | 42.269939 | 204 | 0.726633 | Ravbug |
1fc001e78659d76aa089e84c6fb9c70ecdce8d35 | 771 | hxx | C++ | src/core/include/ivy/log/ostream_sink.hxx | sikol/ivy | 6365b8783353cf0c79c633bbc7110be95a55225c | [
"BSL-1.0"
] | null | null | null | src/core/include/ivy/log/ostream_sink.hxx | sikol/ivy | 6365b8783353cf0c79c633bbc7110be95a55225c | [
"BSL-1.0"
] | null | null | null | src/core/include/ivy/log/ostream_sink.hxx | sikol/ivy | 6365b8783353cf0c79c633bbc7110be95a55225c | [
"BSL-1.0"
] | null | null | null | /*
* Copyright (c) 2019, 2020, 2021 SiKol Ltd.
* Distributed under the Boost Software License, Version 1.0.
*/
#ifndef IVY_LOG_OSTREAM_SINK_HXX_INCLUDED
#define IVY_LOG_OSTREAM_SINK_HXX_INCLUDED
#include <iosfwd>
#include <ivy/log.hxx>
namespace ivy::log {
class ostream_sink final : public sin... | 24.870968 | 77 | 0.64332 | sikol |
1fc4d55393aa617d1b67178c945ac0af91c30c99 | 1,410 | hpp | C++ | 3rdparty/stout/include/stout/os/windows/dup.hpp | ruhip/mesos1.2.0 | 6f6d6786a91ee96fcd7cd435eee8933496c9903e | [
"Apache-2.0"
] | null | null | null | 3rdparty/stout/include/stout/os/windows/dup.hpp | ruhip/mesos1.2.0 | 6f6d6786a91ee96fcd7cd435eee8933496c9903e | [
"Apache-2.0"
] | null | null | null | 3rdparty/stout/include/stout/os/windows/dup.hpp | ruhip/mesos1.2.0 | 6f6d6786a91ee96fcd7cd435eee8933496c9903e | [
"Apache-2.0"
] | null | null | null | // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed und... | 26.603774 | 75 | 0.684397 | ruhip |
1fc902b20a360f4ecad706065ade6472eb397ddb | 752 | hpp | C++ | apps/openmw/mwgui/trainingwindow.hpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | apps/openmw/mwgui/trainingwindow.hpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | apps/openmw/mwgui/trainingwindow.hpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | #ifndef MWGUI_TRAININGWINDOW_H
#define MWGUI_TRAININGWINDOW_H
#include "windowbase.hpp"
#include "referenceinterface.hpp"
namespace MWGui
{
class TrainingWindow : public WindowBase, public ReferenceInterface
{
public:
TrainingWindow();
virtual void open();
virtual void exit();
... | 19.282051 | 71 | 0.667553 | Bodillium |
1fcadab0db2c8335c2dd90aa29cf8d131edce2e2 | 2,184 | hpp | C++ | SbgatGui/include/LCVisualizer.hpp | bbercovici/SBGAT | 93e935baff49eb742470d7d593931f0573f0c062 | [
"MIT"
] | 6 | 2017-11-29T02:47:00.000Z | 2021-09-26T05:25:44.000Z | SbgatGui/include/LCVisualizer.hpp | bbercovici/SBGAT | 93e935baff49eb742470d7d593931f0573f0c062 | [
"MIT"
] | 34 | 2017-02-09T15:38:35.000Z | 2019-04-25T20:53:37.000Z | SbgatGui/include/LCVisualizer.hpp | bbercovici/SBGAT | 93e935baff49eb742470d7d593931f0573f0c062 | [
"MIT"
] | 1 | 2019-03-12T12:20:25.000Z | 2019-03-12T12:20:25.000Z | /** MIT License
Copyright (c) 2018 Benjamin Bercovici and Jay McMahon
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, mo... | 25.395349 | 102 | 0.771978 | bbercovici |
1fcbf5611c831db23504fb8b66e189f045a46705 | 1,358 | cpp | C++ | src/toolchain/core/Misc/Location.cpp | layerzero/cc0 | fa3f8f1f7bbc38ca5b6b8864c80223191b3b1f09 | [
"BSD-2-Clause"
] | null | null | null | src/toolchain/core/Misc/Location.cpp | layerzero/cc0 | fa3f8f1f7bbc38ca5b6b8864c80223191b3b1f09 | [
"BSD-2-Clause"
] | null | null | null | src/toolchain/core/Misc/Location.cpp | layerzero/cc0 | fa3f8f1f7bbc38ca5b6b8864c80223191b3b1f09 | [
"BSD-2-Clause"
] | 2 | 2015-03-03T04:36:51.000Z | 2018-10-01T03:04:11.000Z |
#include "Location.h"
Location::Location()
{
this->FileName = "";
this->Line = 0;
this->Column = 0;
}
/*
int Location::ComparesTo(const Location& other) const
{
if (this->FileName != other.FileName)
{
return 0;
}
int diff = this->Line - other.Line;
if (diff != 0)
{
... | 20.892308 | 81 | 0.623711 | layerzero |
1fccc513104b82f2e92b77eb0c65c400e5ced3f2 | 3,461 | cpp | C++ | src/main.cpp | khskarl/tori | 52e07e7b8bdbab7b46c4565a6be9353c0ce59422 | [
"MIT"
] | 2 | 2018-07-05T23:50:20.000Z | 2020-02-07T12:34:05.000Z | src/main.cpp | khskarl/tori | 52e07e7b8bdbab7b46c4565a6be9353c0ce59422 | [
"MIT"
] | null | null | null | src/main.cpp | khskarl/tori | 52e07e7b8bdbab7b46c4565a6be9353c0ce59422 | [
"MIT"
] | null | null | null | // 3rdparty Headers
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
// Standard Headers
#include <cstdio>
#include <cstdlib>
#include <iostream>
// Local Headers
#include <ImGui.hpp>
#include <Assets/AssetManager.hpp>
#include "Graphics/Renderer.hpp"
#includ... | 28.841667 | 87 | 0.672349 | khskarl |
1fd066c758fcecb9c26be0249bce8b5f92170893 | 2,484 | cpp | C++ | src/pca9685_motors.cpp | Mailamaca/motors_interface | c7062e5e6f1de36cfbe8904fa578d6f2bfc3d506 | [
"MIT"
] | null | null | null | src/pca9685_motors.cpp | Mailamaca/motors_interface | c7062e5e6f1de36cfbe8904fa578d6f2bfc3d506 | [
"MIT"
] | null | null | null | src/pca9685_motors.cpp | Mailamaca/motors_interface | c7062e5e6f1de36cfbe8904fa578d6f2bfc3d506 | [
"MIT"
] | 1 | 2021-12-03T16:01:31.000Z | 2021-12-03T16:01:31.000Z | #include "motors_interface/pca9685_motors.h"
// Constructor
PCA9685Motors::PCA9685Motors()
{
}
bool PCA9685Motors::setupPCA9685(bool real_hardware)
{
m_real_hardware = real_hardware;
if (m_real_hardware) {
// Calling wiringPi setup first.
wiringPiSetup();
// Setup wit... | 22.788991 | 82 | 0.651369 | Mailamaca |
1fd8bc11becb581a448e8784dd7166e27bfe1912 | 1,466 | hpp | C++ | src/coin/coin.hpp | datavetaren/epilog | 7067a4cf5b62dd8eca3ab9395fbb1b85d95a9820 | [
"MIT"
] | null | null | null | src/coin/coin.hpp | datavetaren/epilog | 7067a4cf5b62dd8eca3ab9395fbb1b85d95a9820 | [
"MIT"
] | null | null | null | src/coin/coin.hpp | datavetaren/epilog | 7067a4cf5b62dd8eca3ab9395fbb1b85d95a9820 | [
"MIT"
] | null | null | null | #pragma once
#ifndef _epilog_coin_coin_hpp
#define _epilog_coin_coin_hpp
#include "../interp/interpreter_base.hpp"
namespace epilog { namespace coin {
// Any term that has arity >= 2 and whose functor's name starts with '$'
// is a coin.
// The first argument must be an integer telling its value,
// The second argum... | 29.32 | 85 | 0.688267 | datavetaren |
1fd8d06dc16a83647d55c6c0b1dd1777716d0efb | 2,361 | cpp | C++ | SUAI/C1/LabOP4/sources/seeker_cpp/main.cpp | mersinvald/SUAI-1441 | 0ad15112aa8794e501fd6794db795e3312ae538c | [
"MIT"
] | 1 | 2017-01-23T17:38:59.000Z | 2017-01-23T17:38:59.000Z | SUAI/C1/LabOP4/sources/seeker_cpp/main.cpp | mersinvald/SUAI-1441 | 0ad15112aa8794e501fd6794db795e3312ae538c | [
"MIT"
] | null | null | null | SUAI/C1/LabOP4/sources/seeker_cpp/main.cpp | mersinvald/SUAI-1441 | 0ad15112aa8794e501fd6794db795e3312ae538c | [
"MIT"
] | 1 | 2016-05-28T05:18:04.000Z | 2016-05-28T05:18:04.000Z | #include <stdio.h>
void getInput(int &width,
int &heigth,
int** &bitmap, //array[w][h], initializing in function;
int* &exitPoint, //array[2], 0 - x, 1 - y;
int* &startPoint);
void printBitmap(int **bitmap, int w, int h);
int main()
{
int width, heigth;
... | 27.776471 | 134 | 0.545108 | mersinvald |
1fd91438fd7dece051485f2ca4a07d1bdca660be | 3,442 | hpp | C++ | mineworld/terminal.hpp | Lollipop-Studio/mineworld | 539897831ddc5e669bdff62f54a29a5d01358aa1 | [
"MIT"
] | 18 | 2019-09-26T16:38:02.000Z | 2022-03-09T06:44:59.000Z | mineworld/terminal.hpp | Lollipop-Studio/mineworld | 539897831ddc5e669bdff62f54a29a5d01358aa1 | [
"MIT"
] | 2 | 2019-12-05T02:15:07.000Z | 2021-11-22T08:33:30.000Z | mineworld/terminal.hpp | Lollipop-Studio/mineworld | 539897831ddc5e669bdff62f54a29a5d01358aa1 | [
"MIT"
] | 7 | 2020-01-13T21:18:37.000Z | 2021-09-07T00:31:33.000Z | #ifndef terminal_hpp
#define terminal_hpp
#include <iostream>
#include <string>
#include <vector>
#include <deque>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include "shape.hpp"
#include "util.hpp"
#include "cell.hpp"
#include "handler.hpp"
#include "block.hpp"
#include "types.hpp"
namespace... | 22.496732 | 75 | 0.478501 | Lollipop-Studio |
1fd985113702245f49b83fee1405a750b52fb3d3 | 1,314 | cpp | C++ | src/Parse/BasicTreeVisitor.cpp | Naios/swy | c48f7eb4322aa7fd44a3bb82259787b89292733b | [
"Apache-2.0"
] | 19 | 2017-06-04T09:39:51.000Z | 2021-11-16T10:14:45.000Z | src/Parse/BasicTreeVisitor.cpp | Naios/swy | c48f7eb4322aa7fd44a3bb82259787b89292733b | [
"Apache-2.0"
] | null | null | null | src/Parse/BasicTreeVisitor.cpp | Naios/swy | c48f7eb4322aa7fd44a3bb82259787b89292733b | [
"Apache-2.0"
] | 1 | 2019-03-19T02:24:40.000Z | 2019-03-19T02:24:40.000Z |
/**
Copyright(c) 2016 - 2017 Denis Blank <denis.blank at outlook dot com>
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 require... | 34.578947 | 74 | 0.732116 | Naios |
1fe1e8a508a7b089e04781df67f510873ae5e21f | 885 | cpp | C++ | LightOj/1053 - Higher Math.cpp | MhmdRyhn/Programming-Sloution | be189cbf81b14ac7c10d387e259aa23992ba1016 | [
"MIT"
] | 1 | 2019-07-29T04:05:34.000Z | 2019-07-29T04:05:34.000Z | LightOj/1053 - Higher Math.cpp | MhmdRyhn/Programming-Sloution | be189cbf81b14ac7c10d387e259aa23992ba1016 | [
"MIT"
] | null | null | null | LightOj/1053 - Higher Math.cpp | MhmdRyhn/Programming-Sloution | be189cbf81b14ac7c10d387e259aa23992ba1016 | [
"MIT"
] | null | null | null | #include<cstdio>
#include<cmath>
using namespace std;
int main()
{
int t,a=5,b=10,c;
scanf("%d",&t);
for(int i=0; i<t; i++)
{
scanf("%d%d%d",&a,&b,&c);
/*printf("Direct: %s\n",(a>b and a>c and a*a==(b*b+c*c))? "yes":
((b>a and b>c and b*b==(a*a+c*c))? "yes":((c*c==(a*a+b... | 19.666667 | 89 | 0.328814 | MhmdRyhn |
1fe36009b980067522a5cde822fabc2266624f9a | 461 | cpp | C++ | X-Engine/src/XEngine/Core/Window.cpp | JohnMichaelProductions/X-Engine | 218ffcf64bfe5d5aed51b483c6f6986831ceeec4 | [
"Apache-2.0"
] | 4 | 2020-02-17T07:08:26.000Z | 2020-08-07T21:35:12.000Z | X-Engine/src/XEngine/Core/Window.cpp | JohnMichaelProductions/X-Engine | 218ffcf64bfe5d5aed51b483c6f6986831ceeec4 | [
"Apache-2.0"
] | 25 | 2020-03-08T05:35:25.000Z | 2020-07-08T01:59:52.000Z | X-Engine/src/XEngine/Core/Window.cpp | JohnMichaelProductions/X-Engine | 218ffcf64bfe5d5aed51b483c6f6986831ceeec4 | [
"Apache-2.0"
] | 1 | 2020-10-15T12:39:29.000Z | 2020-10-15T12:39:29.000Z | // Source file for Window class, decides to create a window based on the platform
#include "Xpch.h"
#include "XEngine/Core/Window.h"
#ifdef XPLATFORM_WINDOWS
#include "Platforms/OperatingSystems/Windows10/Win10Window.h"
#endif
namespace XEngine
{
Scope<Window> Window::Create(const WindowProps& props)
{
#ifdef XPLA... | 25.611111 | 81 | 0.759219 | JohnMichaelProductions |
1fe3b07329a19727c15b39fc56ad871b7c105468 | 251 | cpp | C++ | src/events/set_context.cpp | Damdoshi/LibLapin | 800e0f17ed8f3c47797c48feea4c280bb0e4bdc9 | [
"BSD-3-Clause"
] | 38 | 2016-07-30T09:35:19.000Z | 2022-03-04T10:13:48.000Z | src/events/set_context.cpp | Elania-Marvers/LibLapin | 800e0f17ed8f3c47797c48feea4c280bb0e4bdc9 | [
"BSD-3-Clause"
] | 15 | 2017-02-12T19:20:52.000Z | 2021-06-09T09:30:52.000Z | src/events/set_context.cpp | Elania-Marvers/LibLapin | 800e0f17ed8f3c47797c48feea4c280bb0e4bdc9 | [
"BSD-3-Clause"
] | 12 | 2016-10-06T09:06:59.000Z | 2022-03-04T10:14:00.000Z | // Jason Brillante "Damdoshi"
// Hanged Bunny Studio 2014-2018
//
// Lapin Library
#include <string.h>
#include "lapin_private.h"
void bunny_set_context(const t_bunny_context *context)
{
memcpy(&gl_callback, context, sizeof(gl_callback));
}
| 17.928571 | 57 | 0.729084 | Damdoshi |
1fe7df4ecd4330763d3d8f36d2bdad5419d4f07a | 3,499 | cpp | C++ | Asteroids/src/asteroid.cpp | pscompsci/Asteroids | 6e8f0eba2b8b6893ddee80779ef577e4890c947b | [
"MIT"
] | null | null | null | Asteroids/src/asteroid.cpp | pscompsci/Asteroids | 6e8f0eba2b8b6893ddee80779ef577e4890c947b | [
"MIT"
] | null | null | null | Asteroids/src/asteroid.cpp | pscompsci/Asteroids | 6e8f0eba2b8b6893ddee80779ef577e4890c947b | [
"MIT"
] | null | null | null | /**
* Copyright (c) 2019 Peter Stacey
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publi... | 29.905983 | 81 | 0.68934 | pscompsci |
1fe9a4a014c4de1d662efc55e8903f248f620597 | 4,554 | cpp | C++ | src/Magnum/Math/Test/AngleTest.cpp | TUZIHULI/magnum | 1f6ae8f359976e5b2f1b9649342434a00a6ccbe1 | [
"MIT"
] | 1 | 2019-05-09T03:31:10.000Z | 2019-05-09T03:31:10.000Z | src/Magnum/Math/Test/AngleTest.cpp | TUZIHULI/magnum | 1f6ae8f359976e5b2f1b9649342434a00a6ccbe1 | [
"MIT"
] | null | null | null | src/Magnum/Math/Test/AngleTest.cpp | TUZIHULI/magnum | 1f6ae8f359976e5b2f1b9649342434a00a6ccbe1 | [
"MIT"
] | null | null | null | /*
This file is part of Magnum.
Copyright © 2010, 2011, 2012, 2013, 2014
Vladimír Vondruš <mosra@centrum.cz>
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 with... | 27.93865 | 78 | 0.658981 | TUZIHULI |
1feeef5effe80b026453b93f9abee6cc83be6c80 | 3,383 | cpp | C++ | sourceCode/dotNet4.6/vb/language/shared/pageprotect.cpp | csoap/csoap.github.io | 2a8db44eb63425deff147652b65c5912f065334e | [
"Apache-2.0"
] | 5 | 2017-03-03T02:13:16.000Z | 2021-08-18T09:59:56.000Z | sourceCode/dotNet4.6/vb/language/shared/pageprotect.cpp | 295007712/295007712.github.io | 25241dbf774427545c3ece6534be6667848a6faf | [
"Apache-2.0"
] | null | null | null | sourceCode/dotNet4.6/vb/language/shared/pageprotect.cpp | 295007712/295007712.github.io | 25241dbf774427545c3ece6534be6667848a6faf | [
"Apache-2.0"
] | 4 | 2016-11-15T05:20:12.000Z | 2021-11-13T16:32:11.000Z | //-------------------------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Page Heap management. Ruthlessly stolen from the C# team. Please notify [....] and [....]
// about any changes to this file. It is likely the c... | 24.875 | 107 | 0.623116 | csoap |
1fef2a2de06f16ed0641dda067f59fd59ec07813 | 2,758 | hxx | C++ | gunrock/src/sssp/sssp_problem.hxx | aka-chris/mini | 608751ff11f74e1ee59222399cbf6c9ee92208fb | [
"Apache-2.0"
] | 17 | 2016-08-13T07:19:11.000Z | 2021-05-05T15:19:02.000Z | gunrock/src/sssp/sssp_problem.hxx | aka-chris/mini | 608751ff11f74e1ee59222399cbf6c9ee92208fb | [
"Apache-2.0"
] | 6 | 2016-10-19T02:43:21.000Z | 2020-01-05T07:10:59.000Z | gunrock/src/sssp/sssp_problem.hxx | aka-chris/mini | 608751ff11f74e1ee59222399cbf6c9ee92208fb | [
"Apache-2.0"
] | 7 | 2016-08-15T18:53:17.000Z | 2021-11-02T12:05:36.000Z | #pragma once
#include "problem.hxx"
#include <queue>
#include <utility>
namespace gunrock {
namespace sssp {
struct sssp_problem_t : problem_t {
mem_t<float> d_labels;
mem_t<int> d_preds;
mem_t<int> d_visited;
std::vector<float> labels;
std::vector<int> preds;
int src;
struct data_slice_t {
floa... | 29.655914 | 106 | 0.583394 | aka-chris |
1ff25378664e776e8db14948e7a4dad23f5604fd | 449 | cpp | C++ | Library/Standard/Primitives/ErrorMessage.cpp | dwhobrey/MindCausalModellingLibrary | 797d716e785d2dcd5c373ab385c20d3a74bbfcb0 | [
"BSD-3-Clause"
] | null | null | null | Library/Standard/Primitives/ErrorMessage.cpp | dwhobrey/MindCausalModellingLibrary | 797d716e785d2dcd5c373ab385c20d3a74bbfcb0 | [
"BSD-3-Clause"
] | null | null | null | Library/Standard/Primitives/ErrorMessage.cpp | dwhobrey/MindCausalModellingLibrary | 797d716e785d2dcd5c373ab385c20d3a74bbfcb0 | [
"BSD-3-Clause"
] | null | null | null | #include "PlatoIncludes.h"
#include "Strings.h"
#include "ErrorMessage.h"
namespace Plato {
ErrorMessage::ErrorMessage(int errorCode, const string& errorMessage) {
mErrorCode = errorCode;
mErrorMessage = &errorMessage;
}
ErrorMessage::~ErrorMessage() {
delete mErrorMessage;
}
... | 21.380952 | 75 | 0.659243 | dwhobrey |
1ff82f38a6ab2896e55589947d3c34ae68a56b54 | 929 | cpp | C++ | Chapter2/Section2.1/sort3/sort3.cpp | suzyz/USACO | c7f58850f20693fedfc30ef462f898d20d002396 | [
"MIT"
] | null | null | null | Chapter2/Section2.1/sort3/sort3.cpp | suzyz/USACO | c7f58850f20693fedfc30ef462f898d20d002396 | [
"MIT"
] | null | null | null | Chapter2/Section2.1/sort3/sort3.cpp | suzyz/USACO | c7f58850f20693fedfc30ef462f898d20d002396 | [
"MIT"
] | null | null | null | /*
ID: suzyzha1
PROG: sort3
LANG: C++
*/
#include <iostream>
#include <fstream>
#include <cstring>
#include <cmath>
#include <algorithm>
using namespace std;
int n;
int seq[1010];
int num[4];
int main()
{
fstream fin("sort3.in",ios::in);
fstream fout("sort3.out",ios::out);
fin>>n;
for(int i=1;i<=n;i++)
{
f... | 14.075758 | 60 | 0.559742 | suzyz |
1ffac9eb99f33b232992979ba8096bc5e088038c | 1,273 | hpp | C++ | include/common/logging.hpp | jonas-ellert/gsaca-lyndon | b36110cb270b51f29035f8d53d798d56745deaac | [
"MIT"
] | null | null | null | include/common/logging.hpp | jonas-ellert/gsaca-lyndon | b36110cb270b51f29035f8d53d798d56745deaac | [
"MIT"
] | 1 | 2021-10-03T23:31:07.000Z | 2021-10-31T03:12:07.000Z | include/common/logging.hpp | jonas-ellert/gsaca-lyndon | b36110cb270b51f29035f8d53d798d56745deaac | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <sstream>
#define LOG_VERBOSE if constexpr (false) std::cout
#define LOG_STATS if constexpr (true) ::gsaca_lyndon::clog
namespace gsaca_lyndon {
namespace logging_internal {
constexpr uint64_t LOG_LIMIT = 1ULL << 20;
struct temporary_logger {
std::string key;
template<... | 21.948276 | 64 | 0.660644 | jonas-ellert |
950717ecbe0d897e317149de011fceba5a33e00d | 1,641 | cpp | C++ | src/gui/DeleteConfig.cpp | faroub/project-qt-cpp-cmake-IO-communication | f116b75766afce99664a6d82f4d6b10317b754a1 | [
"MIT"
] | null | null | null | src/gui/DeleteConfig.cpp | faroub/project-qt-cpp-cmake-IO-communication | f116b75766afce99664a6d82f4d6b10317b754a1 | [
"MIT"
] | null | null | null | src/gui/DeleteConfig.cpp | faroub/project-qt-cpp-cmake-IO-communication | f116b75766afce99664a6d82f4d6b10317b754a1 | [
"MIT"
] | null | null | null | #include <QPushButton>
#include <QHBoxLayout>
#include <QGridLayout>
#include <QListWidget>
#include "DeleteConfig.h"
gui::DeleteConfig::DeleteConfig(QWidget *ap_parent, utils::ConfigData *ap_ConfigData) :
QDialog(ap_parent),
mp_configFile... | 27.813559 | 87 | 0.678854 | faroub |
9507d2fb345fa46173949496ff8f87b669772505 | 3,923 | cpp | C++ | Lab5/1356M_Linux/tools.cpp | HoverWings/HUST_RFID_Labs | 8f824fb21b47cb92f35e1d90c7faaafe97cd38dd | [
"MIT"
] | null | null | null | Lab5/1356M_Linux/tools.cpp | HoverWings/HUST_RFID_Labs | 8f824fb21b47cb92f35e1d90c7faaafe97cd38dd | [
"MIT"
] | 1 | 2019-05-29T02:44:42.000Z | 2019-05-29T02:44:42.000Z | Lab5/1356M_Windows/tools.cpp | HoverWings/HUST_RFID_Labs | 8f824fb21b47cb92f35e1d90c7faaafe97cd38dd | [
"MIT"
] | null | null | null | #include "tools.h"
#include <QDebug>
Tools::Tools(QObject *parent) : QObject(parent)
{
list = new QStringList();
}
//获取当前PC可用的串口名
QStringList Tools::getSerialName()
{
QStringList temp;
foreach (const QSerialPortInfo &info, QSerialPortInfo::availablePorts())
{
QSerialPort serial... | 26.328859 | 98 | 0.536324 | HoverWings |
950c962c5c01b79bf0009f811ca6a88348499256 | 2,837 | cpp | C++ | src/GameHostStarter.cpp | maximaximal/piga | 54530c208e59eaaf8d44c1f8d640f5ec028d4126 | [
"Zlib"
] | 2 | 2015-01-07T18:36:39.000Z | 2015-01-08T13:54:43.000Z | src/GameHostStarter.cpp | maximaximal/piga | 54530c208e59eaaf8d44c1f8d640f5ec028d4126 | [
"Zlib"
] | null | null | null | src/GameHostStarter.cpp | maximaximal/piga | 54530c208e59eaaf8d44c1f8d640f5ec028d4126 | [
"Zlib"
] | null | null | null | #include <pigaco/GameHostStarter.hpp>
#include <QDir>
#include <easylogging++.h>
namespace pigaco
{
GameHostStarter::GameHostStarter()
: QObject()
{
m_gameProcess = new QProcess(this);
connect(m_gameProcess, SIGNAL(finished(int,QProcess::ExitStatus)), this, SLOT(gameEnded(int,QProcess::ExitStatus)));
... | 30.836957 | 152 | 0.627071 | maximaximal |
950ddcf01a642ac46f2a51c94f79a581ed10ec0b | 160 | cpp | C++ | src/Updatable.cpp | Xansta/SeriousProton | f4f79d28bf292fbacb61a863a427b55da6d49774 | [
"MIT"
] | 62 | 2015-01-07T14:47:47.000Z | 2021-09-06T09:52:29.000Z | src/Updatable.cpp | Xansta/SeriousProton | f4f79d28bf292fbacb61a863a427b55da6d49774 | [
"MIT"
] | 70 | 2015-03-09T07:08:00.000Z | 2022-02-27T07:28:24.000Z | src/Updatable.cpp | Xansta/SeriousProton | f4f79d28bf292fbacb61a863a427b55da6d49774 | [
"MIT"
] | 49 | 2015-03-07T11:42:06.000Z | 2022-02-20T11:06:05.000Z | #include "Updatable.h"
PVector<Updatable> updatableList;
Updatable::Updatable()
{
updatableList.push_back(this);
}
Updatable::~Updatable()
{
//dtor
}
| 13.333333 | 35 | 0.7 | Xansta |
95120dff98db66a662c81530e469b7ea3b900831 | 6,616 | cpp | C++ | src/main.cpp | LiangGuoYu/spoa | 9dbcd7aa223c1e7fa789530c39fcd143d3886d3b | [
"MIT"
] | 1 | 2022-01-13T09:02:18.000Z | 2022-01-13T09:02:18.000Z | src/main.cpp | LiangGuoYu/spoa | 9dbcd7aa223c1e7fa789530c39fcd143d3886d3b | [
"MIT"
] | null | null | null | src/main.cpp | LiangGuoYu/spoa | 9dbcd7aa223c1e7fa789530c39fcd143d3886d3b | [
"MIT"
] | 1 | 2019-08-16T01:17:09.000Z | 2019-08-16T01:17:09.000Z | #include <getopt.h>
#include <cstdint>
#include <string>
#include <iostream>
#include <exception>
#include "sequence.hpp"
#include "spoa/spoa.hpp"
#include "bioparser/bioparser.hpp"
static const std::string version = "v3.0.1";
static struct option options[] = {
{"algorithm", required_argument, nullptr, 'l'},
... | 34.103093 | 92 | 0.502418 | LiangGuoYu |
95138877d849e1b0def7a93bc119145943a2b669 | 947 | cpp | C++ | kernel/ports.cpp | shockkolate/shockk-os | 1cbe2e14be6a8dd4bbe808e199284b6979dacdff | [
"Apache-2.0"
] | 2 | 2015-11-16T07:30:38.000Z | 2016-03-26T21:14:42.000Z | kernel/ports.cpp | shockkolate/shockk-os | 1cbe2e14be6a8dd4bbe808e199284b6979dacdff | [
"Apache-2.0"
] | null | null | null | kernel/ports.cpp | shockkolate/shockk-os | 1cbe2e14be6a8dd4bbe808e199284b6979dacdff | [
"Apache-2.0"
] | null | null | null | #include <kernel/ports.h>
uint8_t ports_inb(unsigned short port) {
uint8_t result;
__asm__ __volatile__ ("in %1, %0" : "=a" (result) : "d" (port));
return result;
}
uint16_t ports_ins(unsigned short port) {
uint16_t result;
__asm__ __volatile__ ("in %1, %0" : "=a" (result) : "d" (port));
return result;
}
uint3... | 26.305556 | 82 | 0.634636 | shockkolate |
95142327f8d73d2e272de7cd5d192dec4252d33d | 12,654 | hpp | C++ | inc/Services/StorageAndRetrievalService.hpp | ACubeSAT/ecss-services | 92d81c1ff455d9baef9417e656388c98ec552751 | [
"MIT"
] | null | null | null | inc/Services/StorageAndRetrievalService.hpp | ACubeSAT/ecss-services | 92d81c1ff455d9baef9417e656388c98ec552751 | [
"MIT"
] | null | null | null | inc/Services/StorageAndRetrievalService.hpp | ACubeSAT/ecss-services | 92d81c1ff455d9baef9417e656388c98ec552751 | [
"MIT"
] | null | null | null | #ifndef ECSS_SERVICES_STORAGEANDRETRIEVALSERVICE_HPP
#define ECSS_SERVICES_STORAGEANDRETRIEVALSERVICE_HPP
#include "ECSS_Definitions.hpp"
#include "Service.hpp"
#include "ErrorHandler.hpp"
#include "Helpers/PacketStore.hpp"
#include "etl/map.h"
/**
* Implementation of ST[15] Storage and Retrieval Service, as defined... | 35.745763 | 116 | 0.735973 | ACubeSAT |
9516beedad8ae9daf9b1fa96b97b46ecb5df3bf9 | 786 | cpp | C++ | Drivers/CardsDriver.cpp | mdsharif-me/warzone-reloaded | 660194d08422c3d5ffd8c23d00ceb8064b6153ad | [
"MIT"
] | 1 | 2022-02-08T19:08:39.000Z | 2022-02-08T19:08:39.000Z | Drivers/CardsDriver.cpp | mdsharif-me/warzone-reloaded | 660194d08422c3d5ffd8c23d00ceb8064b6153ad | [
"MIT"
] | null | null | null | Drivers/CardsDriver.cpp | mdsharif-me/warzone-reloaded | 660194d08422c3d5ffd8c23d00ceb8064b6153ad | [
"MIT"
] | null | null | null | //
// Created by tigerrrr on 2/13/2022.
//
#include <iostream>
#include "../Headers/Cards.h"
using namespace std;
int main() {
Card* card1 = new Card("Bomb");
Card* card2 = new Card("Airlift");
const char * CardTypes[5] = { "Blockade", "Bomb", "Reinforcement", "Diplomacy", "airlift"};
Deck* de... | 20.153846 | 97 | 0.561069 | mdsharif-me |
9516e154551241d8f72c1d23c5abb7cf3134b3f6 | 858 | cpp | C++ | tests/expected/rect.cpp | div72/py2many | 60277bc13597bd32d078b88a7390715568115fc6 | [
"MIT"
] | 345 | 2021-01-28T17:33:08.000Z | 2022-03-25T16:07:56.000Z | tests/expected/rect.cpp | mkos11/py2many | be6cfaad5af32c43eb24f182cb20ad63b979d4ef | [
"MIT"
] | 291 | 2021-01-31T13:15:06.000Z | 2022-03-23T21:28:49.000Z | tests/expected/rect.cpp | mkos11/py2many | be6cfaad5af32c43eb24f182cb20ad63b979d4ef | [
"MIT"
] | 23 | 2021-02-09T17:15:03.000Z | 2022-02-03T05:57:44.000Z | #include <cassert> // NOLINT(build/include_order)
#include <iostream> // NOLINT(build/include_order)
#include "pycpp/runtime/builtins.h" // NOLINT(build/include_order)
#include "pycpp/runtime/sys.h" // NOLINT(build/include_order)
/* This file implements a rectangle class */
class Rectangle {
public:
int... | 24.514286 | 67 | 0.645688 | div72 |
95191f47b17aaae95099d0f6b262c22f923d8bbf | 1,025 | cpp | C++ | test/src/Game_Tests.cpp | gravity981/settlers | 0e2684f2358dbab8fdc70de4a9c94133a324a2b7 | [
"Unlicense"
] | null | null | null | test/src/Game_Tests.cpp | gravity981/settlers | 0e2684f2358dbab8fdc70de4a9c94133a324a2b7 | [
"Unlicense"
] | null | null | null | test/src/Game_Tests.cpp | gravity981/settlers | 0e2684f2358dbab8fdc70de4a9c94133a324a2b7 | [
"Unlicense"
] | null | null | null | #include <gtest/gtest.h>
#include <spdlog/spdlog.h>
#include "mock/MockGameObserver.h"
#include "mock/MockWorld.h"
#include "settlers/Game.h"
TEST(DISABLED_GameTests, startGameShouldChangeState)
{
MockWorld world;
EXPECT_CALL(world, generateFromFile).Times(1);
MockGameObserver observer;
EXPECT_CALL(observer, ... | 35.344828 | 81 | 0.647805 | gravity981 |
951c798b5eb4a51a53857ca6b839e586966a78a8 | 2,336 | cpp | C++ | code/modules/application/src/application/application.cpp | BrightComposite/RaptureStateToolkit | 6eb3c831540ba6a9d29e903dd3c537aac2e7f91f | [
"MIT"
] | null | null | null | code/modules/application/src/application/application.cpp | BrightComposite/RaptureStateToolkit | 6eb3c831540ba6a9d29e903dd3c537aac2e7f91f | [
"MIT"
] | null | null | null | code/modules/application/src/application/application.cpp | BrightComposite/RaptureStateToolkit | 6eb3c831540ba6a9d29e903dd3c537aac2e7f91f | [
"MIT"
] | null | null | null | //---------------------------------------------------------------------------
#include <application/application.h>
#include <iostream>
#if defined(_MSC_VER) && (defined(_DEBUG) || defined(DEBUG))
//#include <vld.h>
#endif
//---------------------------------------------------------------------------
namespace asd
{... | 25.67033 | 107 | 0.556507 | BrightComposite |
951ddc5c5610781a10b5889ec222a12158def757 | 3,929 | cpp | C++ | src/apps/processcontroller/KernelMemoryBarMenuItem.cpp | Yn0ga/haiku | 74e271b2a286c239e60f0ec261f4f197f4727eee | [
"MIT"
] | 1,338 | 2015-01-03T20:06:56.000Z | 2022-03-26T13:49:54.000Z | src/apps/processcontroller/KernelMemoryBarMenuItem.cpp | Yn0ga/haiku | 74e271b2a286c239e60f0ec261f4f197f4727eee | [
"MIT"
] | 15 | 2015-01-17T22:19:32.000Z | 2021-12-20T12:35:00.000Z | src/apps/processcontroller/KernelMemoryBarMenuItem.cpp | Yn0ga/haiku | 74e271b2a286c239e60f0ec261f4f197f4727eee | [
"MIT"
] | 350 | 2015-01-08T14:15:27.000Z | 2022-03-21T18:14:35.000Z | /*
* Copyright 2000, Georges-Edouard Berenger. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#include "KernelMemoryBarMenuItem.h"
#include "Colors.h"
#include "MemoryBarMenu.h"
#include "ProcessController.h"
#include <stdio.h>
#include <Catalog.h>
#include <StringForSize.h>
#undef B... | 23.957317 | 76 | 0.709086 | Yn0ga |
95282ab90877db8fc56209b874837ed43ce97156 | 6,458 | cpp | C++ | util/summation_test.cpp | RedBeard0531/mongo_utils | 402c2023df7d67609ce9da8e405bf13cdd270e20 | [
"Apache-2.0"
] | 1 | 2018-03-14T21:48:43.000Z | 2018-03-14T21:48:43.000Z | util/summation_test.cpp | RedBeard0531/mongo_utils | 402c2023df7d67609ce9da8e405bf13cdd270e20 | [
"Apache-2.0"
] | null | null | null | util/summation_test.cpp | RedBeard0531/mongo_utils | 402c2023df7d67609ce9da8e405bf13cdd270e20 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2016 MongoDB 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 applicabl... | 33.117949 | 100 | 0.611025 | RedBeard0531 |
9528a92fec5fbccd7dd5027b2c2771880c85cfef | 37,860 | cpp | C++ | Plugins/MadaraLibrary/Source/ThirdParty/madara/transport/Transport.cpp | jredmondson/GamsPlugins | d133f86c263997a55f11b3b3d3344faeee60d726 | [
"BSD-2-Clause"
] | 3 | 2020-03-25T01:59:20.000Z | 2020-06-02T17:58:05.000Z | Plugins/MadaraLibrary/Source/ThirdParty/madara/transport/Transport.cpp | jredmondson/GamsPlugins | d133f86c263997a55f11b3b3d3344faeee60d726 | [
"BSD-2-Clause"
] | null | null | null | Plugins/MadaraLibrary/Source/ThirdParty/madara/transport/Transport.cpp | jredmondson/GamsPlugins | d133f86c263997a55f11b3b3d3344faeee60d726 | [
"BSD-2-Clause"
] | 1 | 2020-11-05T23:04:05.000Z | 2020-11-05T23:04:05.000Z | #include "Transport.h"
#include "madara/utility/Utility.h"
#include "madara/expression/Interpreter.h"
#include "madara/knowledge/ContextGuard.h"
#include <algorithm>
namespace madara
{
namespace transport
{
Base::Base(const std::string& id, TransportSettings& new_settings,
knowledge::ThreadSafeContext& context)
... | 29.371606 | 82 | 0.624459 | jredmondson |
952dc2242669efa197fd26b56f945f40a3137c0d | 2,850 | hpp | C++ | include/LIEF/ART/enums.hpp | ahawad/LIEF | 88931ea405d9824faa5749731427533e0c27173e | [
"Apache-2.0"
] | null | null | null | include/LIEF/ART/enums.hpp | ahawad/LIEF | 88931ea405d9824faa5749731427533e0c27173e | [
"Apache-2.0"
] | null | null | null | include/LIEF/ART/enums.hpp | ahawad/LIEF | 88931ea405d9824faa5749731427533e0c27173e | [
"Apache-2.0"
] | null | null | null | /* Copyright 2017 - 2022 R. Thomas
* Copyright 2017 - 2022 Quarkslab
*
* 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 req... | 22.619048 | 75 | 0.720702 | ahawad |
9530cad32c3d43378b6b6ea63c9c34fa820f333e | 4,087 | cpp | C++ | Algorithms/Data Structure/Segment Tree/Segment Tree (all-in-one version).cpp | purhan/mindsport | d14fe8917c64b475589f494d98b74e99c9e064e5 | [
"MIT"
] | null | null | null | Algorithms/Data Structure/Segment Tree/Segment Tree (all-in-one version).cpp | purhan/mindsport | d14fe8917c64b475589f494d98b74e99c9e064e5 | [
"MIT"
] | null | null | null | Algorithms/Data Structure/Segment Tree/Segment Tree (all-in-one version).cpp | purhan/mindsport | d14fe8917c64b475589f494d98b74e99c9e064e5 | [
"MIT"
] | 1 | 2021-07-19T08:39:38.000Z | 2021-07-19T08:39:38.000Z | // Segment Tree (all-in-one version)
// It supports range update, range adjust, range min query, range max query, range sum query with lazy propagation
// Reference: https://noiref.codecla.ws/ds/
#include <bits/stdc++.h>
using namespace std;
const int INF = 1 << 30;
const int MAX_N = 100000 + 5;
const int MAX_L = 2... | 28.78169 | 130 | 0.465867 | purhan |
953140c982d145318fcd52bb87a782273f158fcf | 4,569 | cpp | C++ | X-Engine/src/Platforms/OperatingSystems/Windows10/Win10Window.cpp | JohnMichaelProductions/X-Engine | 218ffcf64bfe5d5aed51b483c6f6986831ceeec4 | [
"Apache-2.0"
] | 4 | 2020-02-17T07:08:26.000Z | 2020-08-07T21:35:12.000Z | X-Engine/src/Platforms/OperatingSystems/Windows10/Win10Window.cpp | JohnMichaelProductions/X-Engine | 218ffcf64bfe5d5aed51b483c6f6986831ceeec4 | [
"Apache-2.0"
] | 25 | 2020-03-08T05:35:25.000Z | 2020-07-08T01:59:52.000Z | X-Engine/src/Platforms/OperatingSystems/Windows10/Win10Window.cpp | JohnMichaelProductions/X-Engine | 218ffcf64bfe5d5aed51b483c6f6986831ceeec4 | [
"Apache-2.0"
] | 1 | 2020-10-15T12:39:29.000Z | 2020-10-15T12:39:29.000Z | // Source file for Win10Window class functions, configured for Windows 10, also derived from window class
#include "Xpch.h"
#include <wtypes.h>
#include "XEngine/Core/Input.h"
#include "XEngine/EventSystem/KeyEvent.h"
#include "XEngine/EventSystem/MouseEvent.h"
#include "XEngine/EventSystem/ApplicationEvent.h"
#include... | 28.735849 | 115 | 0.712629 | JohnMichaelProductions |
95422c9e7bdf98658f44e29ca7208534c93cb106 | 4,314 | cpp | C++ | src/qt/qtbase/src/sql/doc/snippets/code/src_sql_kernel_qsqldatabase.cpp | power-electro/phantomjs-Gohstdriver-DIY-openshift | a571d301a9658a4c1b524d07e15658b45f8a0579 | [
"BSD-3-Clause"
] | 1 | 2020-04-30T15:47:35.000Z | 2020-04-30T15:47:35.000Z | src/qt/qtbase/src/sql/doc/snippets/code/src_sql_kernel_qsqldatabase.cpp | power-electro/phantomjs-Gohstdriver-DIY-openshift | a571d301a9658a4c1b524d07e15658b45f8a0579 | [
"BSD-3-Clause"
] | null | null | null | src/qt/qtbase/src/sql/doc/snippets/code/src_sql_kernel_qsqldatabase.cpp | power-electro/phantomjs-Gohstdriver-DIY-openshift | a571d301a9658a4c1b524d07e15658b45f8a0579 | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the documentation of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** You may use this file under the terms of the BSD license as f... | 31.720588 | 152 | 0.677793 | power-electro |
9542867f11b893d6483e1abe821d62884990acfd | 8,466 | hpp | C++ | tracing/api/sys/trace/Logger.hpp | dterletskiy/carpc | c98d84e5bce69fb30a0f34e7b6cd82b4c98ba9b5 | [
"MIT"
] | 6 | 2022-03-24T15:40:03.000Z | 2022-03-30T09:40:20.000Z | tracing/api/sys/trace/Logger.hpp | dterletskiy/carpc | c98d84e5bce69fb30a0f34e7b6cd82b4c98ba9b5 | [
"MIT"
] | 7 | 2022-03-24T18:53:52.000Z | 2022-03-30T10:15:50.000Z | tracing/api/sys/trace/Logger.hpp | dterletskiy/carpc | c98d84e5bce69fb30a0f34e7b6cd82b4c98ba9b5 | [
"MIT"
] | 1 | 2022-03-20T21:22:09.000Z | 2022-03-20T21:22:09.000Z | #pragma once
#include <string.h>
#include <map>
#include "api/sys/trace/Types.hpp"
namespace carpc::trace {
const std::size_t s_buffer_size = 2 * 1024;
const char* const s_build_msg_error = "----- build message error -----\n";
const std::size_t s_build_msg_error_len = strlen( s_build_msg_error );
cl... | 33.330709 | 132 | 0.502599 | dterletskiy |
95443c4de09f8a89e341dfa094d10714a6c3b863 | 9,767 | cpp | C++ | GameEngine/ResourceManager.cpp | BenMarshall98/Game-Engine-Uni | cb2e0a75953db0960e3d58a054eb9a6e213ae12a | [
"MIT"
] | null | null | null | GameEngine/ResourceManager.cpp | BenMarshall98/Game-Engine-Uni | cb2e0a75953db0960e3d58a054eb9a6e213ae12a | [
"MIT"
] | null | null | null | GameEngine/ResourceManager.cpp | BenMarshall98/Game-Engine-Uni | cb2e0a75953db0960e3d58a054eb9a6e213ae12a | [
"MIT"
] | null | null | null | #define NOMINMAX
#include "ResourceManager.h"
#include "ModelLoader.h"
#include "AudioManager.h"
#include <algorithm>
#include "RenderManager.h"
std::vector<std::string> ResourceManager::usedModels;
std::vector<std::string> ResourceManager::usedTextures;
std::vector<std::string> ResourceManager::usedShaders;
std::vec... | 22.661253 | 173 | 0.674516 | BenMarshall98 |
95446e064c181e163d487889a847d6b6795e482a | 10,654 | cpp | C++ | project1-tetris/project1-tetris/Source/ScreenDiffSelect.cpp | lSara-MM/project1-tetris | ab7bad2ee97a168eb547df1c1ad0419b265293e8 | [
"MIT"
] | null | null | null | project1-tetris/project1-tetris/Source/ScreenDiffSelect.cpp | lSara-MM/project1-tetris | ab7bad2ee97a168eb547df1c1ad0419b265293e8 | [
"MIT"
] | null | null | null | project1-tetris/project1-tetris/Source/ScreenDiffSelect.cpp | lSara-MM/project1-tetris | ab7bad2ee97a168eb547df1c1ad0419b265293e8 | [
"MIT"
] | null | null | null | #include "ScreenDiffSelect.h"
#include "Application.h"
#include "ModuleTextures.h"
#include "ModuleRender.h"
#include "ModuleAudio.h"
#include "ModuleInput.h"
#include "ModuleFadeToBlack.h"
#include "ModuleParticles.h"
#include <iostream>
using namespace std;
uint Time = 0;
uint delta_Time = 0;
uint last_TickTime =... | 16.416025 | 83 | 0.61667 | lSara-MM |
954623115fb0ddd595dc1d9579026aa66c136ca0 | 402 | cpp | C++ | Object Oriented Programming Concepts/CPP OOPS 2 - Classes, Data Members and Functions.cpp | sgpritam/cbcpp | 192b55d8d6930091d1ceb883f6dccf06735a391f | [
"MIT"
] | 2 | 2019-11-11T17:16:52.000Z | 2020-10-04T06:05:49.000Z | Object Oriented Programming Concepts/CPP OOPS 2 - Classes, Data Members and Functions.cpp | codedevmdu/cbcpp | 85c94d81d6e491f67e3cc1ea12534065b7cde16e | [
"MIT"
] | null | null | null | Object Oriented Programming Concepts/CPP OOPS 2 - Classes, Data Members and Functions.cpp | codedevmdu/cbcpp | 85c94d81d6e491f67e3cc1ea12534065b7cde16e | [
"MIT"
] | 4 | 2019-10-24T16:58:10.000Z | 2020-10-04T06:05:47.000Z | #include<iostream>
using namespace std;
class Car
{
public:
int price;
int model_no;
char name[20];
void start()
{
cout<<"Grr... starting the car "<<name<<endl;
}
};
int main()
{
Car C;
//Initialization
C.price=500;
C.model_no=1001;
C.name[0]='B';... | 14.888889 | 54 | 0.482587 | sgpritam |
954817ef00825813b9ec30d4471c2531bd2f4848 | 6,469 | cpp | C++ | env_brdf.cpp | hypernewbie/pbr_baker | 2664582786ef4facdac89d56d94f831175deac7f | [
"Unlicense"
] | 14 | 2019-10-15T08:42:19.000Z | 2021-01-05T01:56:27.000Z | env_brdf.cpp | vinjn/pbr_baker | 2664582786ef4facdac89d56d94f831175deac7f | [
"Unlicense"
] | null | null | null | env_brdf.cpp | vinjn/pbr_baker | 2664582786ef4facdac89d56d94f831175deac7f | [
"Unlicense"
] | 2 | 2020-12-31T13:42:28.000Z | 2022-02-23T06:09:29.000Z | /*
Copyright 2019 Xi Chen
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, di... | 37.830409 | 215 | 0.602566 | hypernewbie |
954e526da1a6c3d75dd2a3ef48d0c3b6a63fd761 | 2,526 | cpp | C++ | case-studies/PoDoFo/podofo/tools/podofouncompress/podofouncompress.cpp | satya-das/cib | 369333ea58b0530b8789a340e21096ba7d159d0e | [
"MIT"
] | 30 | 2018-03-05T17:35:29.000Z | 2022-03-17T18:59:34.000Z | podofo-0.9.6/tools/podofouncompress/podofouncompress.cpp | zia95/pdf-toolkit-console- | 369d73f66f7d4c74a252e83d200acbb792a6b8d5 | [
"MIT"
] | 2 | 2016-05-26T04:47:13.000Z | 2019-02-15T05:17:43.000Z | podofo-0.9.6/tools/podofouncompress/podofouncompress.cpp | zia95/pdf-toolkit-console- | 369d73f66f7d4c74a252e83d200acbb792a6b8d5 | [
"MIT"
] | 5 | 2019-02-15T05:09:22.000Z | 2021-04-14T12:10:16.000Z | /***************************************************************************
* Copyright (C) 2005 by Dominik Seichter *
* domseichter@web.de *
* *
* This pr... | 33.68 | 105 | 0.495249 | satya-das |
9555dd25ddadf76ef9a4e41b8add0f407c7fc158 | 104,664 | hpp | C++ | hpx/preprocessed/apply_10.hpp | andreasbuhr/hpx | 4366a90aacbd3e95428a94ab24a1646a67459cc2 | [
"BSL-1.0"
] | null | null | null | hpx/preprocessed/apply_10.hpp | andreasbuhr/hpx | 4366a90aacbd3e95428a94ab24a1646a67459cc2 | [
"BSL-1.0"
] | null | null | null | hpx/preprocessed/apply_10.hpp | andreasbuhr/hpx | 4366a90aacbd3e95428a94ab24a1646a67459cc2 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2007-2013 Hartmut Kaiser
// Copyright (c) 2012-2013 Thomas Heller
//
// 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)
// This file has been automatically generated using the Boost.Wave tool.
// Do n... | 451.137931 | 19,599 | 0.678849 | andreasbuhr |
95589cd23a24a500ce6e8b4060128928696eedb6 | 89,701 | cpp | C++ | RotateIt/exiv2/src/basicio.cpp | Vitalii17/RotateIt | 621089c334e740b99bc7686d5724b79655adfbad | [
"MIT"
] | 1 | 2017-02-10T16:39:32.000Z | 2017-02-10T16:39:32.000Z | RotateIt/exiv2/src/basicio.cpp | vitalii17/RotateIt | 621089c334e740b99bc7686d5724b79655adfbad | [
"MIT"
] | null | null | null | RotateIt/exiv2/src/basicio.cpp | vitalii17/RotateIt | 621089c334e740b99bc7686d5724b79655adfbad | [
"MIT"
] | null | null | null | // ***************************************************************** -*- C++ -*-
/*
* Copyright (C) 2004-2017 Andreas Huggel <ahuggel@gmx.net>
*
* This program is part of the Exiv2 distribution.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public... | 33.977652 | 163 | 0.530206 | Vitalii17 |
955e642c5037f566bf8e6c34c4062e4dba681223 | 1,118 | cpp | C++ | algorithms/cpp/Problems 101-200/_132_PalindromicPartitioningII.cpp | shivamacs/LeetCode | f8f8b4e9872c47fbaaf9196c422f7e04986e6c3a | [
"MIT"
] | null | null | null | algorithms/cpp/Problems 101-200/_132_PalindromicPartitioningII.cpp | shivamacs/LeetCode | f8f8b4e9872c47fbaaf9196c422f7e04986e6c3a | [
"MIT"
] | null | null | null | algorithms/cpp/Problems 101-200/_132_PalindromicPartitioningII.cpp | shivamacs/LeetCode | f8f8b4e9872c47fbaaf9196c422f7e04986e6c3a | [
"MIT"
] | null | null | null | /* Source - https://leetcode.com/problems/palindrome-partitioning-ii/
Author - Shivam Arora
*/
#include <bits/stdc++.h>
using namespace std;
int minCut(string s) {
int n = s.length();
bool pre[n][n];
memset(pre, false, sizeof(pre));
for(int k = 0; k < n; k++) {
for(int i = 0, j = k; j <... | 21.5 | 94 | 0.392665 | shivamacs |
9560a707872099649b187238b06465d99aae547e | 5,616 | hpp | C++ | SocketAdapter.hpp | Sologala/socket_cvMat | d3ffa4e68badb29f168f955261671ba316ed586b | [
"BSD-2-Clause"
] | null | null | null | SocketAdapter.hpp | Sologala/socket_cvMat | d3ffa4e68badb29f168f955261671ba316ed586b | [
"BSD-2-Clause"
] | null | null | null | SocketAdapter.hpp | Sologala/socket_cvMat | d3ffa4e68badb29f168f955261671ba316ed586b | [
"BSD-2-Clause"
] | null | null | null | #ifndef SOCKETADAPTER_H
#define SOCKETADAPTER_H
#pragma once
#include <arpa/inet.h>
#include <sys/socket.h>
#include <unistd.h>
#include <cstring>
#include "msg.pb.h"
#define IMG_BUFFER_SIZE 5000 * 5000 * 4 * 3
#define MSG_HEAD_SIZE 8
enum SocketAdapter_Mode { SERVER = 0, CLIENT = 1 };
template <class DATA, class MS... | 28.507614 | 116 | 0.637642 | Sologala |
956142c39f615464d087e03ddc11dda0ce9545ef | 9,468 | cpp | C++ | unittests/http/test_buffered_reader.cpp | paulhuggett/pstore | 067be94d87c87fce524c8d76c6f47c347d8f1853 | [
"Apache-2.0"
] | 11 | 2018-02-02T21:24:49.000Z | 2020-12-11T04:06:03.000Z | unittests/http/test_buffered_reader.cpp | SNSystems/pstore | 74e9dd960245d6bfc125af03ed964d8ad660a62d | [
"Apache-2.0"
] | 63 | 2018-02-05T17:24:59.000Z | 2022-03-22T17:26:28.000Z | unittests/http/test_buffered_reader.cpp | paulhuggett/pstore | 067be94d87c87fce524c8d76c6f47c347d8f1853 | [
"Apache-2.0"
] | 5 | 2020-01-13T22:47:11.000Z | 2021-05-14T09:31:15.000Z | //===- unittests/http/test_buffered_reader.cpp ----------------------------===//
//* _ __ __ _ _ *
//* | |__ _ _ / _|/ _| ___ _ __ ___ __| | _ __ ___ __ _ __| | ___ _ __ *
//* | '_ \| | | | |_| |_ / _ \ '__/ _ \/ _` | | '__/ _ \/ _` |/ _` |/ _ \ '__... | 36.555985 | 97 | 0.575201 | paulhuggett |
956792a122ceac7ce969482efac081aae8ce55b1 | 15,229 | cpp | C++ | windows/subwnd/dclock.cpp | whitehara/NP2kai | 72117d7a5def7e6c735f6780d53322c044e2b1d3 | [
"MIT"
] | 170 | 2017-08-15T17:02:36.000Z | 2022-03-30T20:02:26.000Z | windows/subwnd/dclock.cpp | whitehara/NP2kai | 72117d7a5def7e6c735f6780d53322c044e2b1d3 | [
"MIT"
] | 138 | 2017-07-09T13:18:51.000Z | 2022-03-20T17:53:43.000Z | windows/subwnd/dclock.cpp | whitehara/NP2kai | 72117d7a5def7e6c735f6780d53322c044e2b1d3 | [
"MIT"
] | 53 | 2017-07-17T10:27:42.000Z | 2022-03-15T01:09:05.000Z | /**
* @file dclock.cpp
* @brief 時刻表示クラスの動作の定義を行います
*/
#include <compiler.h>
#include "dclock.h"
#include <common/parts.h>
#include <np2.h>
#include <scrnmng.h>
#include <timemng.h>
#include <vram/scrndraw.h>
#include <vram/palettes.h>
//! 唯一のインスタンスです
DispClock DispClock::sm_instance;
/**
* @bri... | 22.729851 | 85 | 0.547836 | whitehara |
956d4445e1b746e5786fb41996266325e3d939d4 | 6,930 | cpp | C++ | recipes-cbc/cbc/cbc/examples/link.cpp | Justin790126/meta-coinor | 0180187c583b3a6fd0a8dac7c85ac1bd89bf8cc9 | [
"MIT"
] | null | null | null | recipes-cbc/cbc/cbc/examples/link.cpp | Justin790126/meta-coinor | 0180187c583b3a6fd0a8dac7c85ac1bd89bf8cc9 | [
"MIT"
] | null | null | null | recipes-cbc/cbc/cbc/examples/link.cpp | Justin790126/meta-coinor | 0180187c583b3a6fd0a8dac7c85ac1bd89bf8cc9 | [
"MIT"
] | null | null | null | // Copyright (C) 2005, International Business Machines
// Corporation and others. All Rights Reserved.
// This code is licensed under the terms of the Eclipse Public License (EPL).
#include <cassert>
#include <iomanip>
#include "CoinPragma.hpp"
// For Branch and bound
#include "OsiSolverInterface.hpp"
#include "CbcM... | 31.5 | 99 | 0.607504 | Justin790126 |
956e8b30e37e2abf5f9820a5a43f4be46f879c76 | 1,641 | cpp | C++ | HW1/Problem 2/main.cpp | alakh125/csci2270 | 84c5f34721f67604c5ddc9ac6028d42f9ee1813f | [
"MIT"
] | null | null | null | HW1/Problem 2/main.cpp | alakh125/csci2270 | 84c5f34721f67604c5ddc9ac6028d42f9ee1813f | [
"MIT"
] | null | null | null | HW1/Problem 2/main.cpp | alakh125/csci2270 | 84c5f34721f67604c5ddc9ac6028d42f9ee1813f | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <string>
#include <sstream>
struct Park{
std::string parkname;
std::string state;
int area;
};
void addPark (Park parks[], std::string parkname, std::string state, int area, int length);
void printList(const Park parks[], int length);
using na... | 26.047619 | 92 | 0.550274 | alakh125 |
9571c7f718f9d07933026224b6f5dd33639490cb | 13,042 | cpp | C++ | DFNs/BundleAdjustment/SvdDecomposition.cpp | H2020-InFuse/cdff | e55fd48f9a909d0c274c3dfa4fe2704bc5071542 | [
"BSD-2-Clause"
] | 7 | 2019-02-26T15:09:50.000Z | 2021-09-30T07:39:01.000Z | DFNs/BundleAdjustment/SvdDecomposition.cpp | H2020-InFuse/cdff | e55fd48f9a909d0c274c3dfa4fe2704bc5071542 | [
"BSD-2-Clause"
] | null | null | null | DFNs/BundleAdjustment/SvdDecomposition.cpp | H2020-InFuse/cdff | e55fd48f9a909d0c274c3dfa4fe2704bc5071542 | [
"BSD-2-Clause"
] | 1 | 2020-12-06T12:09:05.000Z | 2020-12-06T12:09:05.000Z | /**
* @author Alessandro Bianco
*/
/**
* @addtogroup DFNs
* @{
*/
#include "SvdDecomposition.hpp"
#include <Converters/FrameToMatConverter.hpp>
#include <Macros/YamlcppMacros.hpp>
#include <Errors/Assert.hpp>
#include <stdlib.h>
#include <fstream>
using namespace Helpers;
using namespace Converters;
using names... | 46.74552 | 187 | 0.783392 | H2020-InFuse |
9576856d827def72924012e2ecb87a8ab7648b67 | 13,033 | cpp | C++ | libs/fnd/type_traits/test/src/unit_test_fnd_type_traits_arithmetic_promote.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/fnd/type_traits/test/src/unit_test_fnd_type_traits_arithmetic_promote.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/fnd/type_traits/test/src/unit_test_fnd_type_traits_arithmetic_promote.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file unit_test_fnd_type_traits_arithmetic_promote.cpp
*
* @brief arithmetic_promote のテスト
*
* @author myoukaku
*/
#include <bksge/fnd/type_traits/arithmetic_promote.hpp>
#include <bksge/fnd/type_traits/is_same.hpp>
#include <gtest/gtest.h>
#define BKSGE_ARITHMETIC_PROMOTE_TEST(T, ...) \
sta... | 59.784404 | 94 | 0.778792 | myoukaku |
958b2f5869c8acdc23c1f098b29acb1eb98cda0c | 1,972 | cpp | C++ | test/core/utility/UnicodeTest.cpp | mark-online/sne | 92190c78a1710778acf16dd3a83af064db5c269b | [
"MIT"
] | null | null | null | test/core/utility/UnicodeTest.cpp | mark-online/sne | 92190c78a1710778acf16dd3a83af064db5c269b | [
"MIT"
] | null | null | null | test/core/utility/UnicodeTest.cpp | mark-online/sne | 92190c78a1710778acf16dd3a83af064db5c269b | [
"MIT"
] | null | null | null | #include "CoreTestPCH.h"
#include <sne/core/utility/Unicode.h>
using namespace sne;
using namespace sne::core;
// Visual Studio에서 한글 문자열이 포함된 코드를 실행하기 위해서
// "UTF-8 with BOM"으로 저장해야 함
/**
* @class UnicodeTest
*
* Unicode Test
*/
class UnicodeTest : public testing::Test
{
private:
void testEnglish();
void te... | 24.04878 | 80 | 0.615619 | mark-online |
958cc3d74bfa6a54c74c93d8a43a04993317516b | 114 | cpp | C++ | src/entrypoint.cpp | juha-hovi/Jam3D | 71b7d10c9cfccb7a376ae9d1753277e0ed45f853 | [
"MIT"
] | null | null | null | src/entrypoint.cpp | juha-hovi/Jam3D | 71b7d10c9cfccb7a376ae9d1753277e0ed45f853 | [
"MIT"
] | null | null | null | src/entrypoint.cpp | juha-hovi/Jam3D | 71b7d10c9cfccb7a376ae9d1753277e0ed45f853 | [
"MIT"
] | null | null | null | #include "application.h"
int main()
{
Jam3D::Application application;
application.Run();
return 0;
} | 14.25 | 35 | 0.649123 | juha-hovi |
958f6d03a90c76bf3f35058237e52e1e13e0ad42 | 309 | cpp | C++ | Ejercicios/Ejercicio19-do-while/do-while.cpp | Nelson-Chacon/cpp | 21332e2ecaa815acc116eead80dd5b05cc35b710 | [
"MIT"
] | null | null | null | Ejercicios/Ejercicio19-do-while/do-while.cpp | Nelson-Chacon/cpp | 21332e2ecaa815acc116eead80dd5b05cc35b710 | [
"MIT"
] | null | null | null | Ejercicios/Ejercicio19-do-while/do-while.cpp | Nelson-Chacon/cpp | 21332e2ecaa815acc116eead80dd5b05cc35b710 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int main(int argc, char const *argv[])
{
int a = 2;
int b =1;
while (a>b)
{
cout<<"(while) A > B"<< endl;
break;
}
do{
cout<<"(do while) A > B"<< endl;
break;
}while (a>b);
return 0;
}
| 14.045455 | 40 | 0.433657 | Nelson-Chacon |
d2e51d6e4bb90c5a9b5f20ee1c8125b5adc19760 | 5,246 | hpp | C++ | nRF24L01+/nrf24L01.hpp | Jordieboyz/nRF24L01 | 18db91377c1b48418b64e4ce1d1f947109220267 | [
"BSL-1.0"
] | null | null | null | nRF24L01+/nrf24L01.hpp | Jordieboyz/nRF24L01 | 18db91377c1b48418b64e4ce1d1f947109220267 | [
"BSL-1.0"
] | null | null | null | nRF24L01+/nrf24L01.hpp | Jordieboyz/nRF24L01 | 18db91377c1b48418b64e4ce1d1f947109220267 | [
"BSL-1.0"
] | null | null | null | #ifndef NRF24_HPP
#define NRF24_HPP
#include "hwlib.hpp"
#include "registers.hpp"
enum pipeInfo : uint8_t {
ERX_P0 = 0, ERX_P1, ERX_P2, ERX_P3, ERX_P4, ERX_P5,
RX_ADDR_P0 = 0x0A, RX_ADDR_P1, RX_ADDR_P2, RX_ADDR_P3, RX_ADDR_P4, RX_ADDR_P5,
RX_PW_P0 = 0x11, RX_PW_P1, RX_PW_P2, RX_PW_P3, RX_PW_P4, RX_PW_P5
... | 29.977143 | 109 | 0.634769 | Jordieboyz |
d2e56f87ced7c4b8300c4a05f3ebcc6c522bedc6 | 1,509 | cpp | C++ | 6. Tree/16.A1110.cpp | huangjiayu-zju/PAT-A | ecb07409727c56d556a5af1b201158bab0d0d2e8 | [
"MIT"
] | null | null | null | 6. Tree/16.A1110.cpp | huangjiayu-zju/PAT-A | ecb07409727c56d556a5af1b201158bab0d0d2e8 | [
"MIT"
] | null | null | null | 6. Tree/16.A1110.cpp | huangjiayu-zju/PAT-A | ecb07409727c56d556a5af1b201158bab0d0d2e8 | [
"MIT"
] | null | null | null | #include<cstdio>
#include<cstring>
#include<queue>
using namespace std;
const int maxn = 30;
//进行层序遍历,让空结点也入队,如果在访问完N个非空结点之前访问到了空结点,那么说明不是完全二叉树
bool isRoot[maxn];//节点是否是根结点
struct Node{
int left, right;//左右结点的下标
} node[maxn];
//input函数输入数据
int input(){
char id[3];
scanf("%s", id);
if(id[0] == '-'){
... | 20.671233 | 50 | 0.513585 | huangjiayu-zju |
d2e78785ed9f3d01e875fec26b0436d5b8383246 | 16,719 | hpp | C++ | include/rxcpp/rx-util.hpp | schiebel/dVO | 2096230d4ee677b9c548d57b702a44b87caef10d | [
"Apache-2.0"
] | null | null | null | include/rxcpp/rx-util.hpp | schiebel/dVO | 2096230d4ee677b9c548d57b702a44b87caef10d | [
"Apache-2.0"
] | null | null | null | include/rxcpp/rx-util.hpp | schiebel/dVO | 2096230d4ee677b9c548d57b702a44b87caef10d | [
"Apache-2.0"
] | null | null | null | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
#pragma once
#include "rx-includes.hpp"
#if !defined(CPPRX_RX_UTIL_HPP)
#define CPPRX_RX_UTIL_HPP
#if !defined(RXCPP_THREAD_LOCAL)
#if defined(_MSC_VER)
#define RXCPP_THREAD_... | 32.846758 | 157 | 0.479574 | schiebel |
d2ed706f8b363b7cd001fd30e1fa19c3e986bfe1 | 106 | cc | C++ | index_test/test_seek.cc | PudgeXD/courseForLeveldb | 5321a35f3a1b1ef2ee6e82cca069d72ae803d1c0 | [
"BSD-3-Clause"
] | null | null | null | index_test/test_seek.cc | PudgeXD/courseForLeveldb | 5321a35f3a1b1ef2ee6e82cca069d72ae803d1c0 | [
"BSD-3-Clause"
] | null | null | null | index_test/test_seek.cc | PudgeXD/courseForLeveldb | 5321a35f3a1b1ef2ee6e82cca069d72ae803d1c0 | [
"BSD-3-Clause"
] | null | null | null | //
// Created by rui on 19-6-10.
//
#include <iostream>
using namespace std;
int main(){
return 0;
} | 8.833333 | 29 | 0.613208 | PudgeXD |
d2ed736990e1208ac482d11c480f9fd230cc1596 | 6,270 | hpp | C++ | cpp-projects/exvr-designer/data/states.hpp | FlorianLance/exvr | 4d210780737479e9576c90e9c80391c958787f44 | [
"MIT"
] | null | null | null | cpp-projects/exvr-designer/data/states.hpp | FlorianLance/exvr | 4d210780737479e9576c90e9c80391c958787f44 | [
"MIT"
] | null | null | null | cpp-projects/exvr-designer/data/states.hpp | FlorianLance/exvr | 4d210780737479e9576c90e9c80391c958787f44 | [
"MIT"
] | null | null | null |
/***********************************************************************************
** exvr-designer **
** MIT License **
** Copyright (c) [2018] [Florian Lance][EPFL-LNCO] ... | 37.771084 | 151 | 0.568262 | FlorianLance |
d2f0a3d686afb1cab613fb674d44c04eb5dd68a7 | 2,402 | cpp | C++ | core/utils/Params.cpp | dillonl/ComprehensiveVCFMerge | dee320975c13ba6765fb844b00b90fb56dcff7b2 | [
"MIT"
] | null | null | null | core/utils/Params.cpp | dillonl/ComprehensiveVCFMerge | dee320975c13ba6765fb844b00b90fb56dcff7b2 | [
"MIT"
] | null | null | null | core/utils/Params.cpp | dillonl/ComprehensiveVCFMerge | dee320975c13ba6765fb844b00b90fb56dcff7b2 | [
"MIT"
] | null | null | null | #include "Params.h"
#include "Utility.h"
namespace cvm
{
Params::Params(int argc, char** argv) : m_options("CVM", " - Comprehensive VCF Merger (CVM) merges multiple VCF files into a single VCF. CVM reconstructs the sequence of each VCF's alleles with the reference sequence and compares them across all VCFs to discove... | 27.295455 | 327 | 0.669858 | dillonl |
d2fcc65acb0ec4dbb237827ea399e216cbf7cd16 | 5,286 | hpp | C++ | include/RootMotion/FinalIK/RagdollUtility_Child.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/RootMotion/FinalIK/RagdollUtility_Child.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/RootMotion/FinalIK/RagdollUtility_Child.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | // 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: RootMotion.FinalIK.RagdollUt... | 47.621622 | 192 | 0.723231 | RedBrumbler |
d2fd3a734d71d5af651bcceb133dbba657137ea1 | 2,216 | hpp | C++ | include/mlcmst_subnet_solver.hpp | qaskai/MLCMST | 0fa0529347eb6a44f45cf52dff477291c6fad433 | [
"MIT"
] | null | null | null | include/mlcmst_subnet_solver.hpp | qaskai/MLCMST | 0fa0529347eb6a44f45cf52dff477291c6fad433 | [
"MIT"
] | null | null | null | include/mlcmst_subnet_solver.hpp | qaskai/MLCMST | 0fa0529347eb6a44f45cf52dff477291c6fad433 | [
"MIT"
] | null | null | null | #pragma once
#include <memory>
#include <vector>
#include <unordered_map>
#include <mlcmst_solver.hpp>
#include <network/mlcst.hpp>
#include <network/mlcc_network.hpp>
namespace MLCMST {
class MLCMST_SubnetSolver final
{
public:
struct Result {
double cost;
network::MLCST mlcmst;
std::ve... | 37.559322 | 110 | 0.707581 | qaskai |
9601782884722b4a1c497fbb5e7b9cf01da189da | 309 | cpp | C++ | LearnOpenGL/SimpleTriangles.cpp | VestLee/LearnOpenGL | 68e93a1f7516b797febe90c87261f0ff3c571d7e | [
"MIT"
] | null | null | null | LearnOpenGL/SimpleTriangles.cpp | VestLee/LearnOpenGL | 68e93a1f7516b797febe90c87261f0ff3c571d7e | [
"MIT"
] | null | null | null | LearnOpenGL/SimpleTriangles.cpp | VestLee/LearnOpenGL | 68e93a1f7516b797febe90c87261f0ff3c571d7e | [
"MIT"
] | null | null | null | #include <Windows.h>
#include <stdio.h>
#include <GL/glut.h>
int main(int argc, char** argv)
{
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB | GLUT_DEPTH);
glutInitWindowSize(300, 300);
glutCreateWindow("OpenGL");
printf("OpenGL version: %s\n", glGetString(GL_VERSION));
return 0;
} | 23.769231 | 58 | 0.721683 | VestLee |
960273e0d5fa342a9a7801f5c029da7b14da3bec | 32,700 | hh | C++ | include/cagey-math/old/BasePoint.hh | theycallmecoach/cagey-math | e3a70d6e26abad90bbbaf6bc5f4e7da89651ab59 | [
"MIT"
] | 1 | 2019-05-10T23:34:08.000Z | 2019-05-10T23:34:08.000Z | include/cagey-math/old/BasePoint.hh | theycallmecoach/cagey-math | e3a70d6e26abad90bbbaf6bc5f4e7da89651ab59 | [
"MIT"
] | null | null | null | include/cagey-math/old/BasePoint.hh | theycallmecoach/cagey-math | e3a70d6e26abad90bbbaf6bc5f4e7da89651ab59 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
//
// cagey-math - C++-17 Vector Math Library
// Copyright (c) 2016 Kyle Girard <theycallmecoach@gmail.com>
//
// The MIT License (MIT)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software ... | 34.750266 | 82 | 0.55208 | theycallmecoach |
9603020de6c69df040ff3512875e9dc04a7adb7b | 70,508 | cpp | C++ | piLibs/src/libRender/opengl4x/piGL4X_Renderer.cpp | Livictor213/testing2 | 4121cbb23ec6cb55d8aad3524d1dc029165c8532 | [
"MIT"
] | 6 | 2021-03-27T01:54:55.000Z | 2021-12-15T22:50:28.000Z | piLibs/src/libRender/opengl4x/piGL4X_Renderer.cpp | Livictor213/testing2 | 4121cbb23ec6cb55d8aad3524d1dc029165c8532 | [
"MIT"
] | null | null | null | piLibs/src/libRender/opengl4x/piGL4X_Renderer.cpp | Livictor213/testing2 | 4121cbb23ec6cb55d8aad3524d1dc029165c8532 | [
"MIT"
] | null | null | null | #define USETEXTURECACHE
#include <malloc.h>
#include <stdio.h>
#define GLCOREARB_PROTOTYPES
#include "glcorearb.h"
#include "piGL4X_Renderer.h"
#include "piGL4X_Ext.h"
#include "piGL4X_RenderContext.h"
#include "../../libSystem/piStr.h"
namespace piLibs {
typedef struct
{
unsigned int mProgID;
}piIShader;
typ... | 35.628095 | 188 | 0.632552 | Livictor213 |
96093b609c018eb3ef7b6d80a160f60ad79f433f | 1,488 | cpp | C++ | LightOJ/LightOJ - 1298/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | LightOJ/LightOJ - 1298/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | LightOJ/LightOJ - 1298/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: 2019-05-15 00:42:06
* solution_verdict: Accepted language: C++
* run... | 28.075472 | 111 | 0.438172 | kzvd4729 |
960bcbc38b50b7fee00c52e57087d6ad10fb6fee | 7,316 | hxx | C++ | include/idocp/contact_complementarity/contact_normal_force.hxx | KY-Lin22/idocp | 8cacfea7bb2184023eb15316aea07154a62d59bb | [
"BSD-3-Clause"
] | 1 | 2021-09-04T07:43:04.000Z | 2021-09-04T07:43:04.000Z | include/idocp/contact_complementarity/contact_normal_force.hxx | KY-Lin22/idocp | 8cacfea7bb2184023eb15316aea07154a62d59bb | [
"BSD-3-Clause"
] | null | null | null | include/idocp/contact_complementarity/contact_normal_force.hxx | KY-Lin22/idocp | 8cacfea7bb2184023eb15316aea07154a62d59bb | [
"BSD-3-Clause"
] | null | null | null | #ifndef IDOCP_CONTACT_NORMAL_FORCE_HXX_
#define IDOCP_CONTACT_NORMAL_FORCE_HXX_
#include "idocp/contact_complementarity/contact_normal_force.hpp"
#include <exception>
#include <iostream>
#include <assert.h>
namespace idocp {
inline ContactNormalForce::ContactNormalForce(
const Robot& robot, const double barrie... | 30.739496 | 86 | 0.642564 | KY-Lin22 |
960d8ac353f53dd95e742ad5cc52fcc2f6226b6d | 4,905 | hpp | C++ | src/config/gc.hpp | Gwenio/synafis | 37176e965318ae555fdc542fc87ffb79866f770f | [
"ISC"
] | 1 | 2019-01-27T14:44:50.000Z | 2019-01-27T14:44:50.000Z | src/config/gc.hpp | Gwenio/synafis | 37176e965318ae555fdc542fc87ffb79866f770f | [
"ISC"
] | null | null | null | src/config/gc.hpp | Gwenio/synafis | 37176e965318ae555fdc542fc87ffb79866f770f | [
"ISC"
] | null | null | null |
/*
ISC License (ISC)
Copyright 2018-2019 Adam Armstrong
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above copyright
notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DI... | 32.7 | 94 | 0.782671 | Gwenio |
960f083afdc553cd111f7655aaefb683c6361e00 | 2,138 | cpp | C++ | libkram/etc2comp/EtcBlock4x4Encoding_RG11.cpp | yanivams/kramUMK | 04d841720cf45b1e7005112643c23177b34ebb84 | [
"MIT"
] | 53 | 2020-11-12T03:29:10.000Z | 2022-03-13T19:00:52.000Z | libkram/etc2comp/EtcBlock4x4Encoding_RG11.cpp | yanivams/kramUMK | 04d841720cf45b1e7005112643c23177b34ebb84 | [
"MIT"
] | 10 | 2020-11-11T16:45:46.000Z | 2022-03-19T18:45:30.000Z | libkram/etc2comp/EtcBlock4x4Encoding_RG11.cpp | yanivams/kramUMK | 04d841720cf45b1e7005112643c23177b34ebb84 | [
"MIT"
] | 3 | 2021-09-29T05:44:18.000Z | 2022-02-28T11:26:34.000Z | /*
* Copyright 2015 The Etc2Comp Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | 30.985507 | 102 | 0.703929 | yanivams |
96137485aca19dee42154adb80eb2367a79b611a | 3,481 | cpp | C++ | src/red4ext.loader/Main.cpp | ADawesomeguy/RED4ext | fec0e216b27c30fca66b31a38b850f814b5a48d6 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | src/red4ext.loader/Main.cpp | ADawesomeguy/RED4ext | fec0e216b27c30fca66b31a38b850f814b5a48d6 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | src/red4ext.loader/Main.cpp | ADawesomeguy/RED4ext | fec0e216b27c30fca66b31a38b850f814b5a48d6 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | #include "stdafx.hpp"
#include "pwrprof.hpp"
BOOL APIENTRY DllMain(HMODULE aModule, DWORD aReason, LPVOID aReserved)
{
switch (aReason)
{
case DLL_PROCESS_ATTACH:
{
DisableThreadLibraryCalls(aModule);
try
{
if (!LoadOriginal())
{
return F... | 37.031915 | 120 | 0.520827 | ADawesomeguy |
9615a0237f2635883c350f01e691db9eda49f79d | 1,853 | cpp | C++ | masterui/main.cpp | rickfoosusa/dnp | ec17eb20817db32cc6356139afd2daaa1803576f | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2017-09-19T16:37:59.000Z | 2017-09-19T16:37:59.000Z | masterui/main.cpp | rickfoosusa/dnp | ec17eb20817db32cc6356139afd2daaa1803576f | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | masterui/main.cpp | rickfoosusa/dnp | ec17eb20817db32cc6356139afd2daaa1803576f | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | //
// $Id$
//
// Copyright (C) 2007 Turner Technolgoies Inc. http://www.turner.ca
//
// 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... | 30.883333 | 68 | 0.706962 | rickfoosusa |
961a790274bac6b16f5fd35135542689ac090d23 | 1,170 | cpp | C++ | codechef/CHEFCOUN/Wrong Answer (3).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codechef/CHEFCOUN/Wrong Answer (3).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codechef/CHEFCOUN/Wrong Answer (3).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: 06-10-2017 16:39:17
* solution_verdict: Wrong Answer language: C++14
* run... | 35.454545 | 111 | 0.347863 | kzvd4729 |
961aa56c24a00f05dca64939859d74b637135eb8 | 2,150 | cpp | C++ | test/btunittest/Agent/EmployeeParTestAgent.cpp | pjkui/behaviac-1 | 426fbac954d7c1db00eb842d6e0b9390fda82dd3 | [
"BSD-3-Clause"
] | 2 | 2016-12-11T09:40:43.000Z | 2021-07-09T22:55:38.000Z | test/btunittest/Agent/EmployeeParTestAgent.cpp | BantamJoe/behaviac-1 | 426fbac954d7c1db00eb842d6e0b9390fda82dd3 | [
"BSD-3-Clause"
] | null | null | null | test/btunittest/Agent/EmployeeParTestAgent.cpp | BantamJoe/behaviac-1 | 426fbac954d7c1db00eb842d6e0b9390fda82dd3 | [
"BSD-3-Clause"
] | 10 | 2016-11-29T12:04:07.000Z | 2018-09-04T06:13:30.000Z | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Tencent is pleased to support the open source community by making behaviac available.
//
// Copyright (C) 2015 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clau... | 32.089552 | 113 | 0.640465 | pjkui |
961bbf250f7721ddd5d8fba573dcef81b1436d73 | 304 | cpp | C++ | Point.cpp | argorain/dtw | f863bf38882a36accc6da80101b1201c43cd3261 | [
"MIT"
] | null | null | null | Point.cpp | argorain/dtw | f863bf38882a36accc6da80101b1201c43cd3261 | [
"MIT"
] | null | null | null | Point.cpp | argorain/dtw | f863bf38882a36accc6da80101b1201c43cd3261 | [
"MIT"
] | null | null | null | //
// Created by rain on 27.5.15.
//
#include "Point.h"
Point::Point() {
x=y=0;
}
Point::Point(int x, int y) {
this->x=x;
this->y=y;
}
int Point::getX() { return x; }
int Point::getY() { return y; }
void Point::setX(const int x) { this->x=x; }
void Point::setY(const int y) { this->y=y; } | 16 | 44 | 0.559211 | argorain |
962da2035184e223c3aabb2569c6565c254aa433 | 1,948 | cpp | C++ | Parse/PFManager.cpp | sourada/Parse-Qt-SDK | 32bb10a37ddebc71bae4e648438efb3bd9fdd48b | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | Parse/PFManager.cpp | sourada/Parse-Qt-SDK | 32bb10a37ddebc71bae4e648438efb3bd9fdd48b | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | Parse/PFManager.cpp | sourada/Parse-Qt-SDK | 32bb10a37ddebc71bae4e648438efb3bd9fdd48b | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | //
// PFManager.cpp
// Parse
//
// Created by Christian Noon on 11/5/13.
// Copyright (c) 2013 Christian Noon. All rights reserved.
//
// Parse headers
#include "PFManager.h"
// Qt headers
#include <QMutex>
#include <QMutexLocker>
namespace parse {
// Static Globals
static QMutex gPFManagerMutex;
#ifdef __APPL... | 17.54955 | 102 | 0.747433 | sourada |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.