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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6266fa8b39b0e735955f24af2a574ce70c64e7d7 | 953 | cc | C++ | leetcode/1515-find-the-minimum-number-of-fibonacci-numbers-whose-sum-is-k.cc | Magic07/online-judge-solutions | 02a289dd7eb52d7eafabc97bd1a043213b65f70a | [
"MIT"
] | null | null | null | leetcode/1515-find-the-minimum-number-of-fibonacci-numbers-whose-sum-is-k.cc | Magic07/online-judge-solutions | 02a289dd7eb52d7eafabc97bd1a043213b65f70a | [
"MIT"
] | null | null | null | leetcode/1515-find-the-minimum-number-of-fibonacci-numbers-whose-sum-is-k.cc | Magic07/online-judge-solutions | 02a289dd7eb52d7eafabc97bd1a043213b65f70a | [
"MIT"
] | null | null | null | class Solution {
public:
int findMaxFibonacciNumber(int k, vector<int>& fibonacciNumbers){
for(int i=fibonacciNumbers.size()-1;i>=0;i--){
if(fibonacciNumbers[i]<k){
return fibonacciNumbers[i];
}
}
assert(false);
return -1;
}
int findMinFibonacciNu... | 26.472222 | 95 | 0.542497 | Magic07 |
626d88e0c5094c47583e44c57df46cfb6fbc6e5f | 729 | cpp | C++ | leetcode/447. Number of Boomerangs/s1.cpp | zhuohuwu0603/leetcode_cpp_lzl124631x | 6a579328810ef4651de00fde0505934d3028d9c7 | [
"Fair"
] | 787 | 2017-05-12T05:19:57.000Z | 2022-03-30T12:19:52.000Z | leetcode/447. Number of Boomerangs/s1.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | 8 | 2020-03-16T05:55:38.000Z | 2022-03-09T17:19:17.000Z | leetcode/447. Number of Boomerangs/s1.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | 247 | 2017-04-30T15:07:50.000Z | 2022-03-30T09:58:57.000Z | class Solution {
private:
int dist (vector<pair<int, int>>& points, int i, int j) {
return pow(points[i].first - points[j].first, 2) + pow(points[i].second - points[j].second, 2);
}
public:
int numberOfBoomerangs(vector<pair<int, int>>& points) {
int n = points.size(), cnt = 0;
for (... | 31.695652 | 103 | 0.432099 | zhuohuwu0603 |
6270493ed2f0843e3fa44daf7a131539b312cf26 | 4,727 | cpp | C++ | Src/NetworkConnectionListener.cpp | Tofee/luna-sysservice-webosose | bb78b8346cf077b33ebc07c22542d6c0ace96c8e | [
"Apache-2.0"
] | 2 | 2018-03-22T19:00:36.000Z | 2019-05-06T05:21:59.000Z | Src/NetworkConnectionListener.cpp | Tofee/luna-sysservice-webosose | bb78b8346cf077b33ebc07c22542d6c0ace96c8e | [
"Apache-2.0"
] | 2 | 2018-09-17T13:45:57.000Z | 2019-06-16T04:56:03.000Z | Src/NetworkConnectionListener.cpp | Tofee/luna-sysservice-webosose | bb78b8346cf077b33ebc07c22542d6c0ace96c8e | [
"Apache-2.0"
] | 6 | 2018-03-22T19:00:38.000Z | 2019-06-16T04:54:48.000Z | // Copyright (c) 2010-2018 LG Electronics, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... | 32.376712 | 123 | 0.69981 | Tofee |
62707d4757458efe42c12c7bec33b51bb53d1a4d | 1,906 | hpp | C++ | Include/ObjectGL/BinaryData.hpp | SolaireLibrary/ObjectGL | af9b37f90f3c8a7b5b9d74f25497973fd3bb2f9d | [
"Apache-2.0"
] | null | null | null | Include/ObjectGL/BinaryData.hpp | SolaireLibrary/ObjectGL | af9b37f90f3c8a7b5b9d74f25497973fd3bb2f9d | [
"Apache-2.0"
] | null | null | null | Include/ObjectGL/BinaryData.hpp | SolaireLibrary/ObjectGL | af9b37f90f3c8a7b5b9d74f25497973fd3bb2f9d | [
"Apache-2.0"
] | null | null | null | #ifndef OBJECT_GL_BINARY_DATA_HPP
#define OBJECT_GL_BINARY_DATA_HPP
//Copyright 2015 Adam Smith
//
//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/LICEN... | 18.686275 | 78 | 0.69937 | SolaireLibrary |
6274300d8e3cceb2ab015ff6917f535991979be0 | 15,068 | cpp | C++ | lib/compiler/glslang/GLSLangRes.cpp | mensinda/spirvPacker | b24e0884a73fbf778b4b07cd4f4822d62bc223ee | [
"Apache-2.0"
] | 1 | 2019-01-02T20:49:22.000Z | 2019-01-02T20:49:22.000Z | lib/compiler/glslang/GLSLangRes.cpp | mensinda/spirvPacker | b24e0884a73fbf778b4b07cd4f4822d62bc223ee | [
"Apache-2.0"
] | null | null | null | lib/compiler/glslang/GLSLangRes.cpp | mensinda/spirvPacker | b24e0884a73fbf778b4b07cd4f4822d62bc223ee | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2017 Daniel Mensinger
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 68.180995 | 118 | 0.7058 | mensinda |
627817b4d458d108dbd7b0b3e7494d38da910145 | 2,099 | cpp | C++ | src/libs/utility/unit-test/service_registry_test.cpp | jdmclark/gorc | a03d6a38ab7684860c418dd3d2e77cbe6a6d9fc8 | [
"Apache-2.0"
] | 97 | 2015-02-24T05:09:24.000Z | 2022-01-23T12:08:22.000Z | src/libs/utility/unit-test/service_registry_test.cpp | annnoo/gorc | 1889b4de6380c30af6c58a8af60ecd9c816db91d | [
"Apache-2.0"
] | 8 | 2015-03-27T23:03:23.000Z | 2020-12-21T02:34:33.000Z | src/libs/utility/unit-test/service_registry_test.cpp | annnoo/gorc | 1889b4de6380c30af6c58a8af60ecd9c816db91d | [
"Apache-2.0"
] | 10 | 2016-03-24T14:32:50.000Z | 2021-11-13T02:38:53.000Z | #include "test/test.hpp"
#include "utility/service_registry.hpp"
begin_suite(service_registry_test);
test_case(register_set_get)
{
std::string msg = "Hello, World!";
gorc::service_registry sr;
sr.add(msg);
auto ®_msg = sr.get<std::string>();
assert_eq(reg_msg, std::string("Hello, World!"));
... | 22.094737 | 76 | 0.664126 | jdmclark |
627a85ff97ca86dd2c18fd8a686cd24a599185d3 | 1,035 | hpp | C++ | include/AgentImmediate.hpp | GabrielEValenzuela/ThesisPetrinet | ad830bedd74e42ff5e5c16ca33c6e866d5236646 | [
"MIT"
] | 1 | 2022-02-17T00:47:50.000Z | 2022-02-17T00:47:50.000Z | include/AgentImmediate.hpp | GabrielEValenzuela/ThesisPetrinet | ad830bedd74e42ff5e5c16ca33c6e866d5236646 | [
"MIT"
] | null | null | null | include/AgentImmediate.hpp | GabrielEValenzuela/ThesisPetrinet | ad830bedd74e42ff5e5c16ca33c6e866d5236646 | [
"MIT"
] | 1 | 2022-03-03T21:18:58.000Z | 2022-03-03T21:18:58.000Z |
#pragma once
#include <semaphore>
#include <memory>
#include <thread>
#include <atomic>
#include <vector>
#include "Agent.hpp"
#include "Monitor.hpp"
/*
Implementation of an specific agent type.
This agent has the objective to fire immediate transitions only.
*/
class AgentImmediate : public Age... | 29.571429 | 88 | 0.689855 | GabrielEValenzuela |
6280e6c83addb2266bcfdbf84b77a4a7b1ef3f30 | 538 | hpp | C++ | Hurrican/src/triggers/Trigger_Floating3.hpp | s1eve-mcdichae1/Hurrican | 3ed6ff9ee94d2ea2b79e451466d28f06d58acf19 | [
"MIT"
] | 21 | 2018-04-13T10:45:45.000Z | 2022-03-29T14:53:43.000Z | Hurrican/src/triggers/Trigger_Floating3.hpp | s1eve-mcdichae1/Hurrican | 3ed6ff9ee94d2ea2b79e451466d28f06d58acf19 | [
"MIT"
] | 10 | 2021-06-30T14:29:36.000Z | 2022-01-06T17:03:48.000Z | Hurrican/src/triggers/Trigger_Floating3.hpp | s1eve-mcdichae1/Hurrican | 3ed6ff9ee94d2ea2b79e451466d28f06d58acf19 | [
"MIT"
] | 3 | 2021-10-08T12:35:05.000Z | 2022-03-03T06:03:49.000Z | #ifndef _TRIGGER_FLOATING3_HPP_
#define _TRIGGER_FLOATING3_HPP_
#include "GegnerClass.hpp"
#include "enemies/Gegner_Stuff.hpp"
class GegnerFloating3 : public GegnerClass {
private:
bool playeron;
float winkel;
float drehdir;
float turncount;
public:
GegnerFloating3(int Wert1,
... | 22.416667 | 49 | 0.639405 | s1eve-mcdichae1 |
62890687e6bb7bed5fc404fd9a92baabacf007e8 | 8,197 | cpp | C++ | source/Material.cpp | mariohackandglitch/YAMKC_3DS | aed7d9b1d714b13391ebb40377c4ac36892ab82f | [
"RSA-MD"
] | 12 | 2021-05-13T12:47:25.000Z | 2021-05-30T19:22:43.000Z | source/Material.cpp | mariohackandglitch/YAMKC_3DS | aed7d9b1d714b13391ebb40377c4ac36892ab82f | [
"RSA-MD"
] | null | null | null | source/Material.cpp | mariohackandglitch/YAMKC_3DS | aed7d9b1d714b13391ebb40377c4ac36892ab82f | [
"RSA-MD"
] | null | null | null | #include "Material.hpp"
Material::Material() : Material("") {};
Material::Material(std::string name)
{
this->name = name;
isVisible = true;
vArray = nullptr;
texture = nullptr;
SetBlendMode(BlendModeOpacity, nullptr);
SetTexCombineMode(TexCombineModeNoTex, nullptr);
SetFragmentMode(Fragmen... | 31.28626 | 154 | 0.698548 | mariohackandglitch |
628a9de1a12d7afc598824c4e7e29a174810bd97 | 1,616 | cpp | C++ | cslibs_ndt/test/test_merge_and.cpp | doge-of-the-day/cslibs_ndt | f326d05d5bde9750ad595790849eb2ac9a747123 | [
"BSD-3-Clause"
] | 36 | 2018-10-17T07:00:23.000Z | 2021-12-22T15:41:50.000Z | cslibs_ndt/test/test_merge_and.cpp | doge-of-the-day/cslibs_ndt | f326d05d5bde9750ad595790849eb2ac9a747123 | [
"BSD-3-Clause"
] | 4 | 2018-10-04T14:16:28.000Z | 2020-11-26T10:03:14.000Z | cslibs_ndt/test/test_merge_and.cpp | doge-of-the-day/cslibs_ndt | f326d05d5bde9750ad595790849eb2ac9a747123 | [
"BSD-3-Clause"
] | 18 | 2018-07-15T14:39:56.000Z | 2021-05-05T11:12:51.000Z | #include <gtest/gtest.h>
#include <cslibs_ndt/utility/utility.hpp>
#include <cslibs_math/random/random.hpp>
const std::size_t NUM_SAMPLES = 1000;
using rng_t = cslibs_math::random::Uniform<double,1>;
using bool_list_t = std::array<bool,7>;
inline bool get(const bool_list_t& values, const std::size_t &counter)
{
... | 28.350877 | 127 | 0.569307 | doge-of-the-day |
628c65ac648a3c3060e9a4630019736efae9d3e2 | 12,967 | cpp | C++ | Engine/Source/Runtime/EcsFramework/System/Render/EnvironmentSystem.cpp | hebohang/HEngine | 82f40797a7cfabaa11aeeb7797fba70551d18017 | [
"MIT"
] | null | null | null | Engine/Source/Runtime/EcsFramework/System/Render/EnvironmentSystem.cpp | hebohang/HEngine | 82f40797a7cfabaa11aeeb7797fba70551d18017 | [
"MIT"
] | null | null | null | Engine/Source/Runtime/EcsFramework/System/Render/EnvironmentSystem.cpp | hebohang/HEngine | 82f40797a7cfabaa11aeeb7797fba70551d18017 | [
"MIT"
] | null | null | null | #include "hepch.h"
#include "Runtime/EcsFramework/System/Render/EnvironmentSystem.h"
#include "Runtime/Resource/ModeManager/ModeManager.h"
#include "Runtime/Resource/ConfigManager/ConfigManager.h"
#include "Runtime/EcsFramework/Component/Transform/TransformComponent.h"
#include "Runtime/EcsFramework/Component/Camera/C... | 37.915205 | 138 | 0.705406 | hebohang |
628f461ae9e1eba3c86d3b89b46a6e0476586262 | 8,433 | cpp | C++ | src/lexer/lex.cpp | YavaCoco/Hydrogen | ce7baf19e1fa1d705de99e86b4f116c30d737aa2 | [
"MIT"
] | 1 | 2022-01-22T00:57:49.000Z | 2022-01-22T00:57:49.000Z | src/lexer/lex.cpp | YavaCoco/Hydrogen | ce7baf19e1fa1d705de99e86b4f116c30d737aa2 | [
"MIT"
] | null | null | null | src/lexer/lex.cpp | YavaCoco/Hydrogen | ce7baf19e1fa1d705de99e86b4f116c30d737aa2 | [
"MIT"
] | null | null | null | #include <lexer.hpp>
#include <msg.hpp>
#include <log.hpp>
#include <hyc.hpp>
#include <sstream>
namespace hyc::lex
{
std::vector<token> lexer::lex()
{
spdlog::debug("Lexing");
std::vector<token> out;
readnext();
while(m_c != LEX_EOF)
{
if(std::isalpha(m_... | 42.590909 | 124 | 0.427369 | YavaCoco |
6291bc9fccbd7f2480bdb118b494841bb6c133be | 4,399 | cc | C++ | examples/array.cc | acrlakshman/surface-polygonization | 610a0fe37611fb3c3fee7ffd0258e5f048edb11e | [
"BSD-3-Clause"
] | null | null | null | examples/array.cc | acrlakshman/surface-polygonization | 610a0fe37611fb3c3fee7ffd0258e5f048edb11e | [
"BSD-3-Clause"
] | null | null | null | examples/array.cc | acrlakshman/surface-polygonization | 610a0fe37611fb3c3fee7ffd0258e5f048edb11e | [
"BSD-3-Clause"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
// Copyright 2019 Lakshman Anumolu.
//
// 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 reta... | 35.764228 | 113 | 0.717208 | acrlakshman |
62924aa0dbff73fba711fe6f7d0370ee063edda1 | 409 | cpp | C++ | pub/1171.cpp | BashuMiddleSchool/Bashu_OnlineJudge_Code | 4707a271e6658158a1910b0e6e27c75f96841aca | [
"MIT"
] | 2 | 2021-05-01T15:51:58.000Z | 2021-05-02T15:19:49.000Z | pub/1171.cpp | BashuMiddleSchool/Bashu_OnlineJudge_Code | 4707a271e6658158a1910b0e6e27c75f96841aca | [
"MIT"
] | 1 | 2021-05-16T15:04:38.000Z | 2021-09-19T09:49:00.000Z | pub/1171.cpp | BashuMiddleSchool/Bashu_OnlineJudge_Code | 4707a271e6658158a1910b0e6e27c75f96841aca | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main()
{int t=0,t2=0,l,l2;
string s,ss;
getline(cin,ss);
getline(cin,s);
l=s.size();
l2=ss.size();
for(int i=0;i<=l-l2;i++)
{ int j;
for(j=0;j<l-1;j++)
{if(toupper(s[i+j])!=toupper(ss[j])) break;
if(i>0&&s[i-1]!=' ') break;
}
if(j==l2&&(s[i+j]==' '||j+i==l))
... | 17.782609 | 45 | 0.511002 | BashuMiddleSchool |
6295f9967a8f778ae2d339d9faa7cb9954675be4 | 18,740 | cpp | C++ | src/servers/midi/MidiServerApp.cpp | afeinberg/haiku | 38eb9fb0eb050aefd2ca57bd87210a1cce158aa4 | [
"MIT"
] | 1,338 | 2015-01-03T20:06:56.000Z | 2022-03-26T13:49:54.000Z | src/servers/midi/MidiServerApp.cpp | afeinberg/haiku | 38eb9fb0eb050aefd2ca57bd87210a1cce158aa4 | [
"MIT"
] | 15 | 2015-01-17T22:19:32.000Z | 2021-12-20T12:35:00.000Z | src/servers/midi/MidiServerApp.cpp | afeinberg/haiku | 38eb9fb0eb050aefd2ca57bd87210a1cce158aa4 | [
"MIT"
] | 350 | 2015-01-08T14:15:27.000Z | 2022-03-21T18:14:35.000Z | /*
* Copyright 2002-2015, Haiku, Inc. All rights reserved.
* Copyright 2002-2004, Matthijs Hollemans
* Copyright 2021, Panagiotis Vasilopoulos <hello@alwayslivid.com>
* Distributed under the terms of the MIT License.
*
* Authors:
* Humdinger
* Matthijs Hollemans
* Oliver Tappe
* Panagiotis Vasilopoulos
*... | 22.23013 | 78 | 0.691409 | afeinberg |
6297ad5ee0cc5cd3b489ed5d44f62b2c60886351 | 32,214 | cpp | C++ | cpp/USRP_demodulator.cpp | zjc263/GPU_SDR | a57a29925b915c6eb995eb3c76c4ec34f96c3a0b | [
"Apache-2.0"
] | 2 | 2019-09-20T22:30:33.000Z | 2020-06-06T10:32:09.000Z | cpp/USRP_demodulator.cpp | zjc263/GPU_SDR | a57a29925b915c6eb995eb3c76c4ec34f96c3a0b | [
"Apache-2.0"
] | 5 | 2019-09-11T22:31:29.000Z | 2022-01-25T18:26:56.000Z | cpp/USRP_demodulator.cpp | zjc263/GPU_SDR | a57a29925b915c6eb995eb3c76c4ec34f96c3a0b | [
"Apache-2.0"
] | 2 | 2020-03-21T17:35:56.000Z | 2020-04-14T01:34:53.000Z | #include "USRP_demodulator.hpp"
#include "fir.hpp"
#define checkcublas(X) assert( ( X ) == CUBLAS_STATUS_SUCCESS )
//initialization: the parameters are coming directly from the client (from the async communication thread)
//diagnostic allows to print the window on a binary file and stores some diagnostic information /... | 41.890767 | 190 | 0.674055 | zjc263 |
62987b4c6ed6d906344b80de5ee48d9441b5610b | 13,089 | cpp | C++ | src/capacitor.cpp | CardinalModules/rackwindows | 60dfe5dff94b82fc42a43d971e41e64e296b0220 | [
"MIT"
] | 1 | 2021-11-13T20:09:54.000Z | 2021-11-13T20:09:54.000Z | src/capacitor.cpp | CardinalModules/rackwindows | 60dfe5dff94b82fc42a43d971e41e64e296b0220 | [
"MIT"
] | null | null | null | src/capacitor.cpp | CardinalModules/rackwindows | 60dfe5dff94b82fc42a43d971e41e64e296b0220 | [
"MIT"
] | null | null | null | /***********************************************************************************************
Capacitor
---------
VCV Rack module based on Capacitor by Chris Johnson from Airwindows <www.airwindows.com>
Ported and designed by Jens Robert Janke
Changes/Additions:
- mono
- no Dry/Wet
- CV inputs for Lowpa... | 44.520408 | 120 | 0.537169 | CardinalModules |
629ab808b14f6a292e9985d6bd80e812f8c4af34 | 1,470 | cpp | C++ | source/AsioExpress/DebugTimer/DebugTimerManager.cpp | suhao/asioexpress | 2f3453465934afdcdf4a575a2d933d86929b23c7 | [
"BSL-1.0"
] | null | null | null | source/AsioExpress/DebugTimer/DebugTimerManager.cpp | suhao/asioexpress | 2f3453465934afdcdf4a575a2d933d86929b23c7 | [
"BSL-1.0"
] | null | null | null | source/AsioExpress/DebugTimer/DebugTimerManager.cpp | suhao/asioexpress | 2f3453465934afdcdf4a575a2d933d86929b23c7 | [
"BSL-1.0"
] | null | null | null | // Copyright Ross MacGregor 2013
// 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)
#include "AsioExpress/pch.hpp"
#ifdef _DEBUG
#include "AsioExpress/DebugTimer/DebugTimerManag... | 21.617647 | 69 | 0.70068 | suhao |
629e09a7567adc28e18b52b775b7b9ce056396a2 | 1,796 | cpp | C++ | src/libs/polycube/src/common.cpp | mbertrone/polycube | b35a6aa13273c000237d53c5f1bf286f12e4b9bd | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-07-16T04:49:29.000Z | 2020-07-16T04:49:29.000Z | src/libs/polycube/src/common.cpp | mbertrone/polycube | b35a6aa13273c000237d53c5f1bf286f12e4b9bd | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/libs/polycube/src/common.cpp | mbertrone/polycube | b35a6aa13273c000237d53c5f1bf286f12e4b9bd | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright 2018 The Polycube Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 29.442623 | 75 | 0.694878 | mbertrone |
629ed0177126983e8e1a5f8567bd0e1bebbc2004 | 813 | hh | C++ | extern/polymesh/src/polymesh/algorithms/normalize.hh | huzjkevin/portal_maze_zgl | efb32b1c3430f20638c1401095999ecb4d0af5aa | [
"MIT"
] | null | null | null | extern/polymesh/src/polymesh/algorithms/normalize.hh | huzjkevin/portal_maze_zgl | efb32b1c3430f20638c1401095999ecb4d0af5aa | [
"MIT"
] | null | null | null | extern/polymesh/src/polymesh/algorithms/normalize.hh | huzjkevin/portal_maze_zgl | efb32b1c3430f20638c1401095999ecb4d0af5aa | [
"MIT"
] | null | null | null | #pragma once
#include "../Mesh.hh"
#include "../fields.hh"
namespace polymesh
{
// Applies a translation and a uniform rescaling such that the mesh is centerd at (0,0,0) and withing the [-1 .. 1] cube
template <class Pos3>
void normalize(vertex_attribute<Pos3>& pos)
{
auto mm = pos.minmax();
auto mi = mm.min;... | 23.911765 | 120 | 0.517835 | huzjkevin |
629fee4e74242654f7617d40d60882c9cb04e28e | 253 | cc | C++ | hw4/lib/calculator.cc | mrinaldhillon/oop-cpp | b2c1b766f8856390dbeeef484367dea14ff6cf78 | [
"MIT"
] | null | null | null | hw4/lib/calculator.cc | mrinaldhillon/oop-cpp | b2c1b766f8856390dbeeef484367dea14ff6cf78 | [
"MIT"
] | null | null | null | hw4/lib/calculator.cc | mrinaldhillon/oop-cpp | b2c1b766f8856390dbeeef484367dea14ff6cf78 | [
"MIT"
] | null | null | null | #include "calculator.h"
#include <stdexcept>
using namespace std;
float Calculator::multiply(float x, float y) { return x * y; }
float Calculator::divide(float x, float y) {
if (0 == y) throw invalid_argument("division by zero");
return x / y;
}
| 21.083333 | 62 | 0.687747 | mrinaldhillon |
62a1336b27a426b1c17e2f96881b885605852e40 | 27 | cpp | C++ | Strategy/gamemapregion.cpp | biyue111/Strategy | 07532e738ee5280f2198315d0caf8ca9c957ebd5 | [
"MIT"
] | null | null | null | Strategy/gamemapregion.cpp | biyue111/Strategy | 07532e738ee5280f2198315d0caf8ca9c957ebd5 | [
"MIT"
] | null | null | null | Strategy/gamemapregion.cpp | biyue111/Strategy | 07532e738ee5280f2198315d0caf8ca9c957ebd5 | [
"MIT"
] | null | null | null | #include "gamemapregion.h"
| 13.5 | 26 | 0.777778 | biyue111 |
62ac348c5c63f02f8ec1776b6381a3e93d26630e | 3,951 | hpp | C++ | include/pstore/http/serve_static_content.hpp | paulhuggett/pstore2 | a0c663d10a2e2713fdf39ecdae1f9c1e96041f5c | [
"Apache-2.0"
] | 11 | 2018-02-02T21:24:49.000Z | 2020-12-11T04:06:03.000Z | include/pstore/http/serve_static_content.hpp | SNSystems/pstore | 74e9dd960245d6bfc125af03ed964d8ad660a62d | [
"Apache-2.0"
] | 63 | 2018-02-05T17:24:59.000Z | 2022-03-22T17:26:28.000Z | include/pstore/http/serve_static_content.hpp | paulhuggett/pstore | 067be94d87c87fce524c8d76c6f47c347d8f1853 | [
"Apache-2.0"
] | 5 | 2020-01-13T22:47:11.000Z | 2021-05-14T09:31:15.000Z | //===- include/pstore/http/serve_static_content.hpp -------*- mode: C++ -*-===//
//* _ _ _ *
//* ___ ___ _ ____ _____ ___| |_ __ _| |_(_) ___ *
//* / __|/ _ \ '__\ \ / / _ \ / __| __/ _` | __| |/ __| *
//* \__ \ __/ | \ V / __/ \__ \ || (_| | |_| | (__ *
//* |__... | 44.393258 | 96 | 0.432043 | paulhuggett |
62af5750f61f56f86df8046095df04e6cfe817a9 | 2,109 | cpp | C++ | 10278.cpp | felikjunvianto/kfile-uvaoj-submissions | 5bd8b3b413ca8523abe412b0a0545f766f70ce63 | [
"MIT"
] | null | null | null | 10278.cpp | felikjunvianto/kfile-uvaoj-submissions | 5bd8b3b413ca8523abe412b0a0545f766f70ce63 | [
"MIT"
] | null | null | null | 10278.cpp | felikjunvianto/kfile-uvaoj-submissions | 5bd8b3b413ca8523abe412b0a0545f766f70ce63 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cmath>
#include <iostream>
#include <string>
#include <cstring>
#include <algorithm>
#include <vector>
#include <utility>
#include <stack>
#include <queue>
#include <map>
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define pi 2*acos(0.0)
#de... | 18.025641 | 75 | 0.534851 | felikjunvianto |
62b87434d2bd8bb531f937eb629463b4240f1ef6 | 3,427 | cpp | C++ | src/visit/iteration/visit_while.cpp | tser-project/tser | ad54904591d505dcb2af01420164db5e46eebd70 | [
"BSD-3-Clause"
] | 297 | 2020-08-27T11:53:13.000Z | 2022-03-28T07:36:43.000Z | src/visit/iteration/visit_while.cpp | cbbfcd/tser | ad54904591d505dcb2af01420164db5e46eebd70 | [
"BSD-3-Clause"
] | 3 | 2020-09-01T15:11:38.000Z | 2020-11-28T06:18:38.000Z | src/visit/iteration/visit_while.cpp | cbbfcd/tser | ad54904591d505dcb2af01420164db5e46eebd70 | [
"BSD-3-Clause"
] | 14 | 2020-09-02T08:45:16.000Z | 2022-03-01T02:13:42.000Z | #include "antlr4-runtime.h"
#include "common/error/error.h"
#include "grammar/TypeScriptParser.h"
#include "support/Any.h"
#include "tree/ParseTree.h"
#include "visit/visit.h"
#include "llvm/ADT/APSInt.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Instruction.h"
#include <string>
using namespace tser;
using n... | 32.028037 | 104 | 0.742924 | tser-project |
62bd06346161a79785be81d5bff5f1d8a143b02a | 3,621 | cpp | C++ | test/core/test_read_3spn2_base_base_interaction.cpp | yutakasi634/Mjolnir | ab7a29a47f994111e8b889311c44487463f02116 | [
"MIT"
] | null | null | null | test/core/test_read_3spn2_base_base_interaction.cpp | yutakasi634/Mjolnir | ab7a29a47f994111e8b889311c44487463f02116 | [
"MIT"
] | 2 | 2020-04-07T11:41:45.000Z | 2020-04-08T10:01:38.000Z | test/core/test_read_3spn2_base_base_interaction.cpp | yutakasi634/Mjolnir | ab7a29a47f994111e8b889311c44487463f02116 | [
"MIT"
] | null | null | null | #define BOOST_TEST_MODULE "test_read_3spn2_base_base_interaction"
#ifdef BOOST_TEST_DYN_LINK
#include <boost/test/unit_test.hpp>
#else
#include <boost/test/included/unit_test.hpp>
#endif
#include <mjolnir/core/SimulatorTraits.hpp>
#include <mjolnir/core/BoundaryCondition.hpp>
#include <mjolnir/input/read_global_inter... | 47.644737 | 94 | 0.632974 | yutakasi634 |
62be07691f908efd1c25ff039f1a16d5946277bb | 29,695 | cpp | C++ | lib/wwwc/selectors/grammar.cpp | wordring/wordring | e2c9c2ed66010537efd78694521312c5b63f0510 | [
"Unlicense"
] | 2 | 2020-03-07T05:23:20.000Z | 2021-01-23T15:19:18.000Z | lib/wwwc/selectors/grammar.cpp | wordring/libwordring | b71d990ea9288e9d9fe85521c8adac5d50471fa6 | [
"Unlicense"
] | null | null | null | lib/wwwc/selectors/grammar.cpp | wordring/libwordring | b71d990ea9288e9d9fe85521c8adac5d50471fa6 | [
"Unlicense"
] | null | null | null | // wwwc/selctors/grammar.ccp
#include <wordring/wwwc/selectors/grammar.hpp>
#include <wordring/whatwg/infra/infra.hpp>
#include <array>
#include <string_view>
using namespace wordring::wwwc::css;
using namespace wordring::whatwg;
// --------------------------------------------------------------------------------... | 28.416268 | 161 | 0.603805 | wordring |
4982e8369c1cd21b2d540ee9811cbca4e4a4b8cd | 2,362 | cpp | C++ | IGC/VectorCompiler/lib/Utils/General/BiF.cpp | kurapov-peter/intel-graphics-compiler | 98f7c938df0617912288385d243d6918135f0713 | [
"Intel",
"MIT"
] | 440 | 2018-01-30T00:43:22.000Z | 2022-03-24T17:28:37.000Z | IGC/VectorCompiler/lib/Utils/General/BiF.cpp | kurapov-peter/intel-graphics-compiler | 98f7c938df0617912288385d243d6918135f0713 | [
"Intel",
"MIT"
] | 225 | 2018-02-02T03:10:47.000Z | 2022-03-31T10:50:37.000Z | IGC/VectorCompiler/lib/Utils/General/BiF.cpp | kurapov-peter/intel-graphics-compiler | 98f7c938df0617912288385d243d6918135f0713 | [
"Intel",
"MIT"
] | 138 | 2018-01-30T08:15:11.000Z | 2022-03-22T14:16:39.000Z | /*========================== begin_copyright_notice ============================
Copyright (C) 2021 Intel Corporation
SPDX-License-Identifier: MIT
============================= end_copyright_notice ===========================*/
#include "vc/Utils/General/BiF.h"
#include "Probe/Assertion.h"
#include <llvm/Bitcode/... | 32.356164 | 80 | 0.621084 | kurapov-peter |
498617d9268112ccc474cae7006d7c8c4e7a033d | 4,228 | cpp | C++ | Graphics3D/SceneNode.cpp | SamirAroudj/BaseProject | 50ede52bd6fa7b20d6ecb8a11bc1193ef841d91d | [
"BSD-3-Clause"
] | null | null | null | Graphics3D/SceneNode.cpp | SamirAroudj/BaseProject | 50ede52bd6fa7b20d6ecb8a11bc1193ef841d91d | [
"BSD-3-Clause"
] | 1 | 2019-06-19T15:55:25.000Z | 2019-06-27T07:47:27.000Z | Graphics3D/SceneNode.cpp | SamirAroudj/BaseProject | 50ede52bd6fa7b20d6ecb8a11bc1193ef841d91d | [
"BSD-3-Clause"
] | 1 | 2019-07-07T04:37:56.000Z | 2019-07-07T04:37:56.000Z | /*
* Copyright (C) 2017 by Author: Aroudj, Samir, born in Suhl, Thueringen, Germany
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD 3-Clause license. See the License.txt file for details.
*/
#include "Math/MathHelper.h"
#include "SceneNode.h"
using namespace ... | 21.682051 | 140 | 0.734626 | SamirAroudj |
4986d7f3e0daf220eae8c44f4231a30d86091d8e | 1,745 | cpp | C++ | examples/Switch.System/AggregateException/AggregateException.cpp | victor-timoshin/Switch | 8e8e687a8bdc4f79d482680da3968e9b3e464b8b | [
"MIT"
] | 4 | 2020-02-11T13:22:58.000Z | 2022-02-24T00:37:43.000Z | examples/Switch.System/AggregateException/AggregateException.cpp | sgf/Switch | 8e8e687a8bdc4f79d482680da3968e9b3e464b8b | [
"MIT"
] | null | null | null | examples/Switch.System/AggregateException/AggregateException.cpp | sgf/Switch | 8e8e687a8bdc4f79d482680da3968e9b3e464b8b | [
"MIT"
] | 2 | 2020-02-01T02:19:01.000Z | 2021-12-30T06:44:00.000Z | #include <Switch/Switch>
using namespace System;
using namespace System::IO;
using namespace System::Threading::Tasks;
namespace Examples {
class Program {
public:
static void Main() {
// Get a folder path whose directories should throw an UnauthorizedAccessException.
string path = Directory::GetP... | 38.777778 | 119 | 0.665903 | victor-timoshin |
498abff49f6eaffe9b8fd4668f04210bb29f5db2 | 1,426 | cpp | C++ | cpp/841-850/Split Array into Fibonacci Sequence.cpp | KaiyuWei/leetcode | fd61f5df60cfc7086f7e85774704bacacb4aaa5c | [
"MIT"
] | 150 | 2015-04-04T06:53:49.000Z | 2022-03-21T13:32:08.000Z | cpp/841-850/Split Array into Fibonacci Sequence.cpp | yizhu1012/leetcode | d6fa443a8517956f1fcc149c8c4f42c0ad93a4a7 | [
"MIT"
] | 1 | 2015-04-13T15:15:40.000Z | 2015-04-21T20:23:16.000Z | cpp/841-850/Split Array into Fibonacci Sequence.cpp | yizhu1012/leetcode | d6fa443a8517956f1fcc149c8c4f42c0ad93a4a7 | [
"MIT"
] | 64 | 2015-06-30T08:00:07.000Z | 2022-01-01T16:44:14.000Z | class Solution {
bool dfs(long n1, long n2, string& S, int pos, int l, vector<int>& ans) {
if (pos >= S.length()) {
return l >= 3;
}
long n3 = n1 + n2;
if (n1 > INT_MAX || n2 > INT_MAX || n3 > INT_MAX) return false;
string s = to_string(n3);
int len =... | 31.688889 | 77 | 0.447405 | KaiyuWei |
498d9decff5a7249c02606f8e783e512c9483462 | 58,615 | hh | C++ | JP2_Reader.hh | pirl-lpl/libjp2 | 9815b55e8a5222018fe5f978ac0819e53aea5204 | [
"Apache-2.0"
] | 1 | 2019-07-31T19:47:53.000Z | 2019-07-31T19:47:53.000Z | JP2_Reader.hh | pirl-lpl/libjp2 | 9815b55e8a5222018fe5f978ac0819e53aea5204 | [
"Apache-2.0"
] | null | null | null | JP2_Reader.hh | pirl-lpl/libjp2 | 9815b55e8a5222018fe5f978ac0819e53aea5204 | [
"Apache-2.0"
] | 1 | 2022-03-11T05:40:11.000Z | 2022-03-11T05:40:11.000Z | /* JP2_Reader
HiROC CVS ID: $Id: JP2_Reader.hh,v 1.49 2012/03/12 22:21:19 castalia Exp $
Copyright (C) 2009-2010 Arizona Board of Regents on behalf of the
Planetary Image Research Laboratory, Lunar and Planetary Laboratory at
the University of Arizona.
This library is free software; you can redistribute it and/or m... | 39.154977 | 80 | 0.760778 | pirl-lpl |
4991d815da19f1b363f0701f86649a896119c272 | 378 | cpp | C++ | solutions/URI_1028 - (2504422) - Accepted.cpp | KelwinKomka/URI-Online-Judge-1 | 3d6e37ebe3aa145f47dfcad8b219e53c3cae50f6 | [
"MIT"
] | null | null | null | solutions/URI_1028 - (2504422) - Accepted.cpp | KelwinKomka/URI-Online-Judge-1 | 3d6e37ebe3aa145f47dfcad8b219e53c3cae50f6 | [
"MIT"
] | null | null | null | solutions/URI_1028 - (2504422) - Accepted.cpp | KelwinKomka/URI-Online-Judge-1 | 3d6e37ebe3aa145f47dfcad8b219e53c3cae50f6 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
using namespace std;
int main(int argc, const char * argv[]) {
int T, x, y, mdc;
cin >> T;
for(; T > 0; T--){
cin >> x >> y;
if(y > x)
swap(x, y);
do {
mdc = y;
y = x%y;
x = mdc;
} while(y != 0... | 14 | 42 | 0.388889 | KelwinKomka |
49991f2aba64d3723ca0dac66291588181668e60 | 2,928 | cpp | C++ | SysLib/Utility/Range_Data.cpp | kravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | 2 | 2018-04-27T11:07:02.000Z | 2020-04-24T06:53:21.000Z | SysLib/Utility/Range_Data.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | SysLib/Utility/Range_Data.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | //*********************************************************
// Range_Data.cpp - range data classes
//*********************************************************
#include "Range_Data.hpp"
#include "System_Defines.hpp"
//---------------------------------------------------------
// Range_Data constructor
//---------------... | 24.198347 | 67 | 0.373292 | kravitz |
49995248d44b7985064bf48c452bde711fe4cc31 | 2,838 | cc | C++ | src/q_1601_1650/q1629.cc | vNaonLu/daily-leetcode | 2830c2cd413d950abe7c6d9b833c771f784443b0 | [
"MIT"
] | 2 | 2021-09-28T18:41:03.000Z | 2021-09-28T18:42:57.000Z | src/q_1601_1650/q1629.cc | vNaonLu/Daily_LeetCode | 30024b561611d390931cef1b22afd6a5060cf586 | [
"MIT"
] | 16 | 2021-09-26T11:44:20.000Z | 2021-11-28T06:44:02.000Z | src/q_1601_1650/q1629.cc | vNaonLu/daily-leetcode | 2830c2cd413d950abe7c6d9b833c771f784443b0 | [
"MIT"
] | 1 | 2021-11-22T09:11:36.000Z | 2021-11-22T09:11:36.000Z | #include <gtest/gtest.h>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
/**
* This file is generated by leetcode_add.py v1.0
*
* 1629.
* Slowest Key
*
* ––––––––––––––––––––––––––––– Description –––––––––––––––––––––––––––––
*
* A newly designed keypad was tested, where a... | 33 | 75 | 0.614165 | vNaonLu |
499e9c30db43756f20d430365c485431f3216bb4 | 25,108 | cpp | C++ | ReClass/stdafx.cpp | KN4CK3R/Reclass-2016 | ace933511eb2f0cc639101c05e9e601a4392f7f6 | [
"MIT"
] | 5 | 2017-07-24T19:52:51.000Z | 2021-02-17T20:24:55.000Z | ReClass/stdafx.cpp | Brattlof/Reclass-2016 | ace933511eb2f0cc639101c05e9e601a4392f7f6 | [
"MIT"
] | null | null | null | ReClass/stdafx.cpp | Brattlof/Reclass-2016 | ace933511eb2f0cc639101c05e9e601a4392f7f6 | [
"MIT"
] | 4 | 2016-11-18T23:04:26.000Z | 2020-06-12T05:38:17.000Z | #include "stdafx.h"
#include <memory>
#include <Psapi.h>
//Globals
HANDLE g_hProcess = NULL;
DWORD g_ProcessID = NULL;
ULONG_PTR g_AttachedProcessAddress = NULL;
DWORD g_AttachedProcessSize = NULL;
CString g_ProcessName;
std::vector<MemMapInfo> g_MemMap;
std::vector<MemMapInfo> g_MemMapCode;
std::vector<MemMapInfo> ... | 25.646578 | 164 | 0.667238 | KN4CK3R |
49a894c804cfbfd1782243c5613c27dcafe30e1b | 3,182 | cpp | C++ | src/server/base/util_rng.cpp | jvirkki/heliod | efdf2d105e342317bd092bab2d727713da546174 | [
"BSD-3-Clause"
] | 13 | 2015-10-09T05:59:20.000Z | 2021-11-12T10:38:51.000Z | src/server/base/util_rng.cpp | JamesLinus/heliod | efdf2d105e342317bd092bab2d727713da546174 | [
"BSD-3-Clause"
] | null | null | null | src/server/base/util_rng.cpp | JamesLinus/heliod | efdf2d105e342317bd092bab2d727713da546174 | [
"BSD-3-Clause"
] | 6 | 2016-05-23T10:53:29.000Z | 2019-12-13T17:57:32.000Z | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
*
* THE BSD LICENSE
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistribut... | 32.804124 | 82 | 0.69296 | jvirkki |
49aaa9e12d8729084aef803b32ed71b2341d2bf2 | 3,351 | inl | C++ | include/bolt/btbb/detail/transform_reduce.inl | jayavanth/Bolt | ea1045126efc060c56f43eef926d65490bca7375 | [
"BSL-1.0"
] | 1 | 2016-11-29T21:03:54.000Z | 2016-11-29T21:03:54.000Z | include/bolt/btbb/detail/transform_reduce.inl | jayavanth/Bolt | ea1045126efc060c56f43eef926d65490bca7375 | [
"BSL-1.0"
] | null | null | null | include/bolt/btbb/detail/transform_reduce.inl | jayavanth/Bolt | ea1045126efc060c56f43eef926d65490bca7375 | [
"BSL-1.0"
] | null | null | null | /***************************************************************************
* Copyright 2012 Advanced Micro Devices, 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
*
* ht... | 37.651685 | 156 | 0.691435 | jayavanth |
49ab30b7a071e9d69b2729e5beac31e2e42eac27 | 6,710 | cpp | C++ | XRmonitorsHologram/_attic_/render_bezels/ShaderBezelRenderer.cpp | catid/XRmonitors | 17dddf10d0518596b1549a7e05071633226d0e7d | [
"BSD-3-Clause"
] | 40 | 2020-04-19T23:27:06.000Z | 2022-01-01T16:59:10.000Z | XRmonitorsHologram/_attic_/render_bezels/ShaderBezelRenderer.cpp | catid/XRmonitors | 17dddf10d0518596b1549a7e05071633226d0e7d | [
"BSD-3-Clause"
] | 2 | 2020-05-29T01:14:33.000Z | 2021-12-29T04:07:28.000Z | XRmonitorsHologram/_attic_/render_bezels/ShaderBezelRenderer.cpp | catid/XRmonitors | 17dddf10d0518596b1549a7e05071633226d0e7d | [
"BSD-3-Clause"
] | 1 | 2020-07-24T16:08:57.000Z | 2020-07-24T16:08:57.000Z | // Copyright 2019 Augmented Perception Corporation
#include "stdafx.h"
#include "ShaderBezelRenderer.h"
#include "../../Common/DirectXHelper.h"
#include "BezelPixelShader.inl"
#include "BezelVertexShader.inl"
#include "BezelVPRTVertexShader.inl"
#include "core_logger.hpp"
#include "core_string.hpp"
using namespace c... | 29.690265 | 112 | 0.697466 | catid |
49ac3ab75e3b696a92999b98057688d4bc2c720a | 6,866 | cpp | C++ | msr-watchdog/main.cpp | cocafe/msr-utility | 61ea213fcbe1e34f381e21e36c91768ee39d7a80 | [
"Unlicense"
] | 25 | 2018-06-03T11:27:28.000Z | 2022-03-22T05:58:34.000Z | msr-watchdog/main.cpp | cocafe/msr-utility | 61ea213fcbe1e34f381e21e36c91768ee39d7a80 | [
"Unlicense"
] | 1 | 2018-08-28T04:35:21.000Z | 2018-09-11T06:33:25.000Z | msr-watchdog/main.cpp | cocafe/msr-utility | 61ea213fcbe1e34f381e21e36c91768ee39d7a80 | [
"Unlicense"
] | 6 | 2018-09-09T19:07:00.000Z | 2022-03-22T05:58:32.000Z | #include <io.h>
#include <conio.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include <Windows.h>
#include <windowsx.h>
#include <WinUser.h>
#include <processthreadsapi.h>
#include <winio.h>
#include <winring0.h>
#include "msr_regs.h"
#include "ini_config.h"
#define DEFAULT_CONFIG... | 21.45625 | 94 | 0.650888 | cocafe |
49afc104be77b7b6279d5edc6ab13198274c2972 | 2,017 | cpp | C++ | second.cpp | deepak1418/Algorithms | 4159011f3c546f631690946c17798b1985b49bbe | [
"MIT"
] | null | null | null | second.cpp | deepak1418/Algorithms | 4159011f3c546f631690946c17798b1985b49bbe | [
"MIT"
] | null | null | null | second.cpp | deepak1418/Algorithms | 4159011f3c546f631690946c17798b1985b49bbe | [
"MIT"
] | null | null | null | #include<iostream>
#include<algorithm>
#include<climits>
#include<fstream>
using namespace std;
typedef long long int ll;
void inputfile_generator( ll n)
{
ofstream fout ("largeinput2.txt");
srand(time(NULL));
ll i,key,k;
fout<<n<<endl;
for(i=1;i<=n;i++){
key = (rand(... | 16.266129 | 67 | 0.40704 | deepak1418 |
49b41cf62abe9b3cf45be5af0236fc68e56d39c0 | 2,087 | hpp | C++ | include/DREAM/Equations/ParallelDiffusionFrequency.hpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 12 | 2020-09-07T11:19:10.000Z | 2022-02-17T17:40:19.000Z | include/DREAM/Equations/ParallelDiffusionFrequency.hpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 110 | 2020-09-02T15:29:24.000Z | 2022-03-09T09:50:01.000Z | include/DREAM/Equations/ParallelDiffusionFrequency.hpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 3 | 2021-05-21T13:24:31.000Z | 2022-02-11T14:43:12.000Z | #ifndef _DREAM_EQUATIONS_PARALLEL_DIFFUSION_FREQUENCY_HPP
#define _DREAM_EQUATIONS_PARALLEL_DIFFUSION_FREQUENCY_HPP
#include "SlowingDownFrequency.hpp"
namespace DREAM {
class ParallelDiffusionFrequency : public CollisionQuantity{
private:
real_t **nonlinearMat = nullptr;
real_t *trapzWeights ... | 40.134615 | 131 | 0.727839 | chalmersplasmatheory |
49b482900c00ae4b38d8548105a0f9389783131c | 23,582 | cpp | C++ | src/network/network_udp.cpp | trademarks/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | 8 | 2016-10-21T09:01:43.000Z | 2021-05-31T06:32:14.000Z | src/network/network_udp.cpp | blackberry/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | null | null | null | src/network/network_udp.cpp | blackberry/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | 4 | 2017-05-16T00:15:58.000Z | 2020-08-06T01:46:31.000Z | /* $Id$ */
/*
* This file is part of OpenTTD.
* OpenTTD 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, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without... | 34.884615 | 185 | 0.741328 | trademarks |
49b79575af7711ac2ae20ebb85d56ef962f5e0ba | 592 | cpp | C++ | Recuresive_BinarySearch/Recuresive_BinarySearch/Recursive_BinarySearch.cpp | LeeInJae/Algorithm | ec9d539a96fd87c3c0fdd4067e10900f7cddbaf9 | [
"MIT"
] | null | null | null | Recuresive_BinarySearch/Recuresive_BinarySearch/Recursive_BinarySearch.cpp | LeeInJae/Algorithm | ec9d539a96fd87c3c0fdd4067e10900f7cddbaf9 | [
"MIT"
] | null | null | null | Recuresive_BinarySearch/Recuresive_BinarySearch/Recursive_BinarySearch.cpp | LeeInJae/Algorithm | ec9d539a96fd87c3c0fdd4067e10900f7cddbaf9 | [
"MIT"
] | null | null | null | #include <iostream>
int BinarySearch( int left , int right , int* arr, int findNumber )
{
int mid = left + ( right - left ) / 2;
if(arr[ mid ] == findNumber)
{
return mid;
}
else if(arr[ mid ] < findNumber)
{
return BinarySearch( mid + 1 , right , arr , findNumber );
}
else
{
return Binar... | 19.733333 | 68 | 0.560811 | LeeInJae |
49bbeae93baead8b3e287271095d7b6d8d836c85 | 6,739 | cpp | C++ | src/bitops/bit_ops_test.cpp | rosbacke/MCU-tools | f125e48ad54b04962f1ba855057c16db35e5368b | [
"Apache-2.0"
] | 3 | 2018-04-04T01:51:43.000Z | 2021-05-06T11:11:16.000Z | src/bitops/bit_ops_test.cpp | rosbacke/MCU-tools | f125e48ad54b04962f1ba855057c16db35e5368b | [
"Apache-2.0"
] | null | null | null | src/bitops/bit_ops_test.cpp | rosbacke/MCU-tools | f125e48ad54b04962f1ba855057c16db35e5368b | [
"Apache-2.0"
] | 1 | 2018-08-22T23:55:44.000Z | 2018-08-22T23:55:44.000Z | /*
* cpp98_nullptr_test.cpp
*
* Created on: 14 okt. 2017
* Author: mikaelr
*/
#include "bitops.h"
#include <gtest/gtest.h>
using bitops::WordUpdate;
using bitops::WordUpdate;
using bitops::bitFieldMask;
using bitops::bitWidth;
using bitops::clearBit;
using bitops::clearBits;
using bitops::decodeBitField;
... | 21.599359 | 73 | 0.65618 | rosbacke |
49c46e62b5f53ac4a8c055c54afb3cafc547341c | 9,943 | cc | C++ | build/x86/python/m5/internal/param_LTAGE.py.cc | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"BSD-3-Clause"
] | null | null | null | build/x86/python/m5/internal/param_LTAGE.py.cc | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"BSD-3-Clause"
] | null | null | null | build/x86/python/m5/internal/param_LTAGE.py.cc | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"BSD-3-Clause"
] | null | null | null | #include "sim/init.hh"
namespace {
const uint8_t data_m5_internal_param_LTAGE[] = {
120,156,197,89,109,115,219,198,17,222,3,64,74,164,36,139,
146,44,201,182,100,139,73,234,132,245,84,98,226,68,113,58,
113,221,88,25,247,37,147,42,46,232,140,29,38,83,20,34,
142,36,40,18,224,0,39,219,204,72,95,42,79,219,... | 58.146199 | 98 | 0.664789 | billionshang |
49d08abac574f6cffea8af4ec4c700bf0b965fcc | 589 | cpp | C++ | Esercizi Array/GeneratoreStringheCas.cpp | franzqat/Programmazione1 | ded5fc4c5b37c294d5d58776ec1c519ef62ac6f2 | [
"MIT"
] | null | null | null | Esercizi Array/GeneratoreStringheCas.cpp | franzqat/Programmazione1 | ded5fc4c5b37c294d5d58776ec1c519ef62ac6f2 | [
"MIT"
] | null | null | null | Esercizi Array/GeneratoreStringheCas.cpp | franzqat/Programmazione1 | ded5fc4c5b37c294d5d58776ec1c519ef62ac6f2 | [
"MIT"
] | null | null | null | using namespace std;
string ** GeneratoreCasuale (int righe, int colonne) //GENERA STRINGHE CASUALI DI LUNGHEZZA CASUALE
{
string **g = new string*[righe];
for (int i=0;i<righe;i++) g[i]= new string[colonne];
//*init a zero
for (int j=0;j<colonne;j++){
for (int i=0;i<righe;i++){
g[i][j] = "";
}
}
int lun... | 17.323529 | 99 | 0.5382 | franzqat |
49df82812798ac47f9e52b7b1bc61039082597a8 | 6,134 | cpp | C++ | FEBioSource2.9/FEBioMech/FEDiscreteSpringDomain.cpp | wzaylor/FEBio_MCLS | f1052733c31196544fb0921aa55ffa5167a25f98 | [
"Intel"
] | 1 | 2021-08-24T08:37:21.000Z | 2021-08-24T08:37:21.000Z | FEBioSource2.9/FEBioMech/FEDiscreteSpringDomain.cpp | wzaylor/FEBio_MCLS | f1052733c31196544fb0921aa55ffa5167a25f98 | [
"Intel"
] | null | null | null | FEBioSource2.9/FEBioMech/FEDiscreteSpringDomain.cpp | wzaylor/FEBio_MCLS | f1052733c31196544fb0921aa55ffa5167a25f98 | [
"Intel"
] | 1 | 2021-03-15T08:22:06.000Z | 2021-03-15T08:22:06.000Z | /*This file is part of the FEBio source code and is licensed under the MIT license
listed below.
See Copyright-FEBio.txt for details.
Copyright (c) 2019 University of Utah, The Trustees of Columbia University in
the City of New York, and others.
Permission is hereby granted, free of charge, to any person obtaining ... | 28.009132 | 121 | 0.559178 | wzaylor |
49e3d5640c118afa21fefebf4dad99648499f3fd | 4,050 | cpp | C++ | hosts/daisy/examples/bluemchen/oscillator/src/signaletic-bluemchen-oscillator.cpp | continuing-creativity/signaletic | 4a91207c8b2ca1a67f72402975e9348a4bed3d13 | [
"MIT"
] | null | null | null | hosts/daisy/examples/bluemchen/oscillator/src/signaletic-bluemchen-oscillator.cpp | continuing-creativity/signaletic | 4a91207c8b2ca1a67f72402975e9348a4bed3d13 | [
"MIT"
] | 14 | 2022-01-31T21:01:59.000Z | 2022-02-22T03:17:28.000Z | hosts/daisy/examples/bluemchen/oscillator/src/signaletic-bluemchen-oscillator.cpp | continuing-creativity/signaletic | 4a91207c8b2ca1a67f72402975e9348a4bed3d13 | [
"MIT"
] | null | null | null | #include "../../vendor/kxmx_bluemchen/src/kxmx_bluemchen.h"
#include <tlsf.h>
#include <libsignaletic.h>
#include <string>
using namespace kxmx;
using namespace daisy;
Bluemchen bluemchen;
Parameter knob1;
Parameter cv1;
Parameter cv2;
FixedCapStr<20> displayStr;
#define HEAP_SIZE 1024 * 256 // 256KB
char heap[HEAP... | 27.931034 | 69 | 0.671111 | continuing-creativity |
49e6ec8cb8a14b5eb21ecdb7d36b23004febf6bf | 3,358 | hpp | C++ | rmf_traffic/test/unit/schedule/utils_Database.hpp | 0to1/rmf_traffic | 0e641f779e9c7e6d69c316e905df5a51a2c124e1 | [
"Apache-2.0"
] | 10 | 2021-04-14T07:01:56.000Z | 2022-02-21T02:26:58.000Z | rmf_traffic/test/unit/schedule/utils_Database.hpp | 0to1/rmf_traffic | 0e641f779e9c7e6d69c316e905df5a51a2c124e1 | [
"Apache-2.0"
] | 63 | 2021-03-10T06:06:13.000Z | 2022-03-25T08:47:07.000Z | rmf_traffic/test/unit/schedule/utils_Database.hpp | 0to1/rmf_traffic | 0e641f779e9c7e6d69c316e905df5a51a2c124e1 | [
"Apache-2.0"
] | 10 | 2021-03-17T02:52:14.000Z | 2022-02-21T02:27:02.000Z | /*
* Copyright (C) 2019 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 29.716814 | 81 | 0.723943 | 0to1 |
49e7b9ce35e325f375672c8751cf8d7d38b99c61 | 10,961 | cc | C++ | ncrystal_core/src/NCSABSamplerModels.cc | mctools/ncrystal | 33ec51187a3bef418046c30e591ff7d8f239d54f | [
"Apache-2.0"
] | 22 | 2017-08-31T08:44:10.000Z | 2022-03-21T08:18:26.000Z | ncrystal_core/src/NCSABSamplerModels.cc | XuShuqi7/ncrystal | acf26db3dfd5f0a95355c7c3bbfcbfee55040175 | [
"Apache-2.0"
] | 77 | 2018-01-23T10:19:45.000Z | 2022-03-21T07:57:32.000Z | ncrystal_core/src/NCSABSamplerModels.cc | XuShuqi7/ncrystal | acf26db3dfd5f0a95355c7c3bbfcbfee55040175 | [
"Apache-2.0"
] | 11 | 2017-09-14T19:49:50.000Z | 2022-02-28T11:07:00.000Z | ////////////////////////////////////////////////////////////////////////////////
// //
// This file is part of NCrystal (see https://mctools.github.io/ncrystal/) //
// ... | 52.951691 | 126 | 0.59657 | mctools |
49f22abc333c054f8bf17218663761c8cab03f57 | 3,491 | cpp | C++ | working-plan/hollidays-widget.cpp | lgsilva3087/working-plan | cd79f45dc23ac997c9a48d23c3a373461a11ae58 | [
"MIT"
] | null | null | null | working-plan/hollidays-widget.cpp | lgsilva3087/working-plan | cd79f45dc23ac997c9a48d23c3a373461a11ae58 | [
"MIT"
] | null | null | null | working-plan/hollidays-widget.cpp | lgsilva3087/working-plan | cd79f45dc23ac997c9a48d23c3a373461a11ae58 | [
"MIT"
] | null | null | null | #include "hollidays-widget.h"
#include "delegates/date-delegate.h"
#include "delegates/icon-delegate.h"
#include "settings.h"
HollidaysWidget::HollidaysWidget(QWidget *parent) : QWidget(parent)
{
setupUi();
}
void HollidaysWidget::setupUi()
{
m_layout = new QVBoxLayout;
m_layout->setMargin(0);
m_lay... | 30.094828 | 102 | 0.643655 | lgsilva3087 |
49f67f0535448c8598d688e42ed269c15392840f | 1,818 | cpp | C++ | src/number_counter.cpp | FelixTheC/learn_ros2_cpp | 4136b33a59818096604df121eefdf90b4a4a38c9 | [
"MIT"
] | null | null | null | src/number_counter.cpp | FelixTheC/learn_ros2_cpp | 4136b33a59818096604df121eefdf90b4a4a38c9 | [
"MIT"
] | null | null | null | src/number_counter.cpp | FelixTheC/learn_ros2_cpp | 4136b33a59818096604df121eefdf90b4a4a38c9 | [
"MIT"
] | null | null | null | #include "number_counter.hpp"
NumberCounterNode::NumberCounterNode() : Node("number_counter"), counter_(0)
{
publisher_ = create_publisher<InterfaceInt64>("number_count", 10);
subscriber_ = create_subscription<InterfaceInt64>(
"number",
10,
std::bind(
&NumberCounterNode::c... | 22.444444 | 85 | 0.611111 | FelixTheC |
49f6fb0354ce3ac880af6eba12e6eb1c5b435d1e | 1,916 | cpp | C++ | oop2_project/KeyValueFile.cpp | akivagold/Robbery-in-the-Depths | e4a2a1434dbe13af70635483c9c2098afdc0d93c | [
"Apache-2.0"
] | 2 | 2020-08-19T10:19:22.000Z | 2021-08-15T15:29:47.000Z | oop2_project/KeyValueFile.cpp | akivagold/Robbery-in-the-Depths | e4a2a1434dbe13af70635483c9c2098afdc0d93c | [
"Apache-2.0"
] | null | null | null | oop2_project/KeyValueFile.cpp | akivagold/Robbery-in-the-Depths | e4a2a1434dbe13af70635483c9c2098afdc0d93c | [
"Apache-2.0"
] | 2 | 2020-10-06T08:42:04.000Z | 2020-12-24T11:03:35.000Z | //---- include section ------
#include "KeyValueFile.h"
#include <iostream>
#include <fstream>
#include <cstdint>
#include <filesystem>
#include "LoadResourceException.h"
KeyValueFile::KeyValueFile(const string& fileName)
: m_fileName(fileName)
{
loadJsonFromFile();
}
void KeyValueFile::putString(const string& key,... | 19.55102 | 83 | 0.723382 | akivagold |
49f78b0d08c6a0d49aae1f4356a1783d4796e23c | 2,313 | cpp | C++ | csi_http_server/https_server.cpp | bitbouncer/csi-http-server | 043af07c8d868709ca1a2332682d659d23433c6f | [
"BSL-1.0"
] | 2 | 2016-03-20T22:47:02.000Z | 2018-01-10T12:39:58.000Z | csi_http_server/https_server.cpp | bitbouncer/csi-http-server | 043af07c8d868709ca1a2332682d659d23433c6f | [
"BSL-1.0"
] | null | null | null | csi_http_server/https_server.cpp | bitbouncer/csi-http-server | 043af07c8d868709ca1a2332682d659d23433c6f | [
"BSL-1.0"
] | null | null | null | //
// https_server.cpp
// ~~~~~~~~~~
//
// Copyright (c) 2003-2011 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// 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)
//
#include <cstdlib>
#include <iostream>
#i... | 38.55 | 182 | 0.614786 | bitbouncer |
49fe2f7ce49f805fb4863aae0dc71bf13b365f50 | 11,100 | cpp | C++ | RenderSystems/GLES2/src/GLSLES/src/OgreGLSLESLinkProgram.cpp | rjdgtn/OgreCPPBuilder | 1d3fa5874e54da9c19f4fe9fd128fcda19285b5e | [
"MIT"
] | 108 | 2015-01-23T01:43:56.000Z | 2021-12-23T07:00:48.000Z | RenderSystems/GLES2/src/GLSLES/src/OgreGLSLESLinkProgram.cpp | venscn/ogre | 069a43c4c4fcb5264c995fca65a28acd3154b230 | [
"MIT"
] | 2 | 2016-03-05T14:40:20.000Z | 2017-02-20T11:33:51.000Z | RenderSystems/GLES2/src/GLSLES/src/OgreGLSLESLinkProgram.cpp | venscn/ogre | 069a43c4c4fcb5264c995fca65a28acd3154b230 | [
"MIT"
] | 92 | 2015-01-13T08:57:11.000Z | 2021-09-19T05:20:55.000Z | /*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2011 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person ... | 34.796238 | 108 | 0.642072 | rjdgtn |
49ff79758b5c71fcabc64368d52671177d1ba611 | 3,210 | cpp | C++ | graph-source-code/225-D/2226973.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/225-D/2226973.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/225-D/2226973.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: GNU C++
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <ctime>
#include <algorithm>
#include <cstring>
#include <vector>
#include <set>
#include <map>
#include <bitset>
#include <queue>
#include <complex>
#include <cassert>
using namespace std;
#define pb push_back
#d... | 20.188679 | 75 | 0.457321 | AmrARaouf |
8e6d2327aee963e856f1419ac9ccd6c4044a0fc7 | 2,889 | cpp | C++ | core/ModuleSceneManager.cpp | theepsi/simpsons-arcade | 26f716a2aed6a914a799adb00c6cf02e60aab1da | [
"MIT"
] | 1 | 2017-01-04T16:00:15.000Z | 2017-01-04T16:00:15.000Z | core/ModuleSceneManager.cpp | theepsi/simpsons-arcade | 26f716a2aed6a914a799adb00c6cf02e60aab1da | [
"MIT"
] | 15 | 2016-12-28T18:27:27.000Z | 2017-02-17T09:47:52.000Z | core/ModuleSceneManager.cpp | theepsi/simpsons-arcade | 26f716a2aed6a914a799adb00c6cf02e60aab1da | [
"MIT"
] | 1 | 2019-09-13T09:55:07.000Z | 2019-09-13T09:55:07.000Z | #include "ModuleSceneManager.h"
#include "Scene.h"
#include "../game/marge.h"
#include "../game/royd.h"
#include "../game/cementery.h"
#include "core.h"
#include "ModuleInput.h"
#include "ModuleRender.h"
ModuleSceneManager::ModuleSceneManager() {
}
ModuleSceneManager::~ModuleSceneManager() {
}
bool ModuleSceneMana... | 21.559701 | 116 | 0.736241 | theepsi |
8e6eb997a8b87cff1a1f1eee1c0ae0203aec53ee | 22,590 | cpp | C++ | sizzlingmatches/SizzlingMatches.cpp | SizzlingStats/sizzlingplugins | f4947ca0533fe8f9241387a26fb1df4cd04f4c98 | [
"Unlicense",
"BSD-3-Clause"
] | 5 | 2015-06-23T23:21:28.000Z | 2021-09-14T00:35:33.000Z | sizzlingmatches/SizzlingMatches.cpp | SizzlingStats/sizzlingplugins | f4947ca0533fe8f9241387a26fb1df4cd04f4c98 | [
"Unlicense",
"BSD-3-Clause"
] | 8 | 2015-04-06T23:06:57.000Z | 2017-06-15T20:28:17.000Z | sizzlingmatches/SizzlingMatches.cpp | SizzlingStats/sizzlingplugins | f4947ca0533fe8f9241387a26fb1df4cd04f4c98 | [
"Unlicense",
"BSD-3-Clause"
] | 3 | 2015-10-16T22:22:29.000Z | 2021-11-10T05:03:37.000Z |
/*========
This file is part of SizzlingPlugins.
Copyright (c) 2010-2013, Jordan Cristiano.
This file is subject to the terms and conditions
defined in the file 'LICENSE', which is part of this
source code package.
*/
/////////////////////////////////////////////////////////... | 31.772152 | 154 | 0.677247 | SizzlingStats |
8e6fbcbe13cc0b89d3ad98e54903a2a7cf659940 | 62 | cpp | C++ | src/video/Video.cpp | andresan87/sprite | 6aba856e4eafc97c7a76f9b893a113488aeefa3f | [
"MIT"
] | null | null | null | src/video/Video.cpp | andresan87/sprite | 6aba856e4eafc97c7a76f9b893a113488aeefa3f | [
"MIT"
] | null | null | null | src/video/Video.cpp | andresan87/sprite | 6aba856e4eafc97c7a76f9b893a113488aeefa3f | [
"MIT"
] | null | null | null | #include "Video.h"
namespace sprite {
} // namespace sprite
| 10.333333 | 21 | 0.693548 | andresan87 |
8e7589a2ed35455d68c27307477f4ca9ea8d2dcb | 962 | cpp | C++ | Unidad 2/INF510_AP_100430840_A2/Potencia/Ejercicio 3 Potencia.cpp | anthonyde98/Proyectos-Cpp | 9119d588bde4c07655e8c6099562f12077adc3f0 | [
"Unlicense"
] | null | null | null | Unidad 2/INF510_AP_100430840_A2/Potencia/Ejercicio 3 Potencia.cpp | anthonyde98/Proyectos-Cpp | 9119d588bde4c07655e8c6099562f12077adc3f0 | [
"Unlicense"
] | null | null | null | Unidad 2/INF510_AP_100430840_A2/Potencia/Ejercicio 3 Potencia.cpp | anthonyde98/Proyectos-Cpp | 9119d588bde4c07655e8c6099562f12077adc3f0 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <windows.h>
#include <stdlib.h>
using namespace std;
int main(int argc, char** argv)
{
double base;
int exponente;
float potencia = 1;
float resultado;
system ("color F1");
cout << "Programa Para Calcular Potencias\n\n";
cout << "Introduce la ... | 20.041667 | 55 | 0.474012 | anthonyde98 |
8e77aca5440106d4b09396fd045ee127590bc971 | 391 | cpp | C++ | codes/UVA/00001-00999/uva575.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/UVA/00001-00999/uva575.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/UVA/00001-00999/uva575.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
#include<string.h>
using namespace std;
int main()
{
char str[100];
while(1)
{
cin >> str;
int n = strlen(str);
if (n == 1 && str[0] == '0')
break;
int sum = 0;
int t = 2;
int a;
do{
a = str[n - 1] - '0';
sum = sum + (t - 1) * a;
t *= 2;
n--;
}while (n != 0);
... | 11.848485 | 30 | 0.468031 | JeraKrs |
8e7bf39d8ed0034233dfcbb27619a924503791a4 | 1,550 | cpp | C++ | csapex_core_plugins/src/tools/select_vector_component.cpp | AdrianZw/csapex_core_plugins | 1b23c90af7e552c3fc37c7dda589d751d2aae97f | [
"BSD-3-Clause"
] | 2 | 2016-09-02T15:33:22.000Z | 2019-05-06T22:09:33.000Z | csapex_core_plugins/src/tools/select_vector_component.cpp | AdrianZw/csapex_core_plugins | 1b23c90af7e552c3fc37c7dda589d751d2aae97f | [
"BSD-3-Clause"
] | 1 | 2021-02-14T19:53:30.000Z | 2021-02-14T19:53:30.000Z | csapex_core_plugins/src/tools/select_vector_component.cpp | AdrianZw/csapex_core_plugins | 1b23c90af7e552c3fc37c7dda589d751d2aae97f | [
"BSD-3-Clause"
] | 6 | 2016-10-12T00:55:23.000Z | 2021-02-10T17:49:25.000Z | /// COMPONENT
#include <csapex/model/node.h>
#include <csapex/model/node_modifier.h>
#include <csapex/msg/generic_pointer_message.hpp>
#include <csapex/msg/generic_vector_message.hpp>
#include <csapex/msg/io.h>
#include <csapex/param/interval_parameter.h>
#include <csapex/param/parameter_factory.h>
#include <csapex/ser... | 27.192982 | 84 | 0.684516 | AdrianZw |
8e7d9be5101d97d4035a04c004e4c27b55399177 | 473 | cpp | C++ | Cpp/SemanaI_2019/Wednesday/G.cpp | MarioJim/CompetitiveProgramming | ade07551e37e32be3f6511bfe68ed633701c3a4d | [
"MIT"
] | 1 | 2019-01-28T15:12:20.000Z | 2019-01-28T15:12:20.000Z | Cpp/SemanaI_2019/Wednesday/G.cpp | MarioJim/ClubDeProgra | ade07551e37e32be3f6511bfe68ed633701c3a4d | [
"MIT"
] | null | null | null | Cpp/SemanaI_2019/Wednesday/G.cpp | MarioJim/ClubDeProgra | ade07551e37e32be3f6511bfe68ed633701c3a4d | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
string s;
cin.clear(); cin.ignore();
getline(cin, s);
int count = 0, maxCount = 0;
for (int j = 0; j < n; ++j) {
if (s[j] == ' ') {
maxCount = max(count, maxCount);
count = 0;
... | 20.565217 | 44 | 0.435518 | MarioJim |
8e92ae1a59cf050c76daba40260760dcbefc48b6 | 2,071 | cpp | C++ | src/core/Graphics/arena.cpp | mvsframework/mvs | 4bbda9f18fab960a9bea9c4e5e2de16b77c6ff81 | [
"Apache-2.0"
] | null | null | null | src/core/Graphics/arena.cpp | mvsframework/mvs | 4bbda9f18fab960a9bea9c4e5e2de16b77c6ff81 | [
"Apache-2.0"
] | null | null | null | src/core/Graphics/arena.cpp | mvsframework/mvs | 4bbda9f18fab960a9bea9c4e5e2de16b77c6ff81 | [
"Apache-2.0"
] | null | null | null | //
// Copyright © 2015 Claus Christmann <hcc |ä| gatech.edu>.
//
// 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 requ... | 26.896104 | 79 | 0.717528 | mvsframework |
8e94c2b0a8b810e8f7034ad23f8a83111b1f4977 | 3,007 | cpp | C++ | Test/main.cpp | Logicalshift/TameParse | 59512fc5c098046922099a59328ca82f174d8f68 | [
"MIT"
] | 6 | 2018-01-10T22:37:32.000Z | 2019-06-19T04:44:32.000Z | Test/main.cpp | Logicalshift/TameParse | 59512fc5c098046922099a59328ca82f174d8f68 | [
"MIT"
] | null | null | null | Test/main.cpp | Logicalshift/TameParse | 59512fc5c098046922099a59328ca82f174d8f68 | [
"MIT"
] | null | null | null | //
// main.cpp
// Test
//
// Created by Andrew Hunter on 13/03/2011.
//
// Copyright (c) 2011-2012 Andrew Hunter
//
// 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 r... | 34.965116 | 82 | 0.677087 | Logicalshift |
8e96e2a4a04dd3b7736500c714449f542895f4bb | 902 | cpp | C++ | Vic2ToHoI4/Source/OutHoi4/Navies/OutMtgShipTypeNames.cpp | gawquon/Vic2ToHoI4 | 8371cfb1fd57cf81d854077963135d8037e754eb | [
"MIT"
] | 25 | 2018-12-10T03:41:49.000Z | 2021-10-04T10:42:36.000Z | Vic2ToHoI4/Source/OutHoi4/Navies/OutMtgShipTypeNames.cpp | gawquon/Vic2ToHoI4 | 8371cfb1fd57cf81d854077963135d8037e754eb | [
"MIT"
] | 739 | 2018-12-13T02:01:20.000Z | 2022-03-28T02:57:13.000Z | Vic2ToHoI4/Source/OutHoi4/Navies/OutMtgShipTypeNames.cpp | Osariusz/Vic2ToHoI4 | 9738b52c7602b1fe187c3820660c58a8d010d87e | [
"MIT"
] | 43 | 2018-12-10T03:41:58.000Z | 2022-03-22T23:55:41.000Z | #include "OutMtgShipTypeNames.h"
#include "HOI4World/Navies/MtgShipTypeNames.h"
void HoI4::outMtgShipTypeNames(std::ostream& out, const MtgShipTypeNames& shipTypeNames, const std::string_view tag)
{
out << shipTypeNames.getType() << " = {\n";
out << "\tname = " << shipTypeNames.getTheme() << "\n";
out << "\n";
o... | 26.529412 | 116 | 0.549889 | gawquon |
8ea2ca894006118456b174db608016bdf1ec8ade | 20,243 | cpp | C++ | Log.cpp | apostoldevel/apostol-core | cebfb2fec4acd1776446f1d77746533bb63dfbb7 | [
"MIT"
] | null | null | null | Log.cpp | apostoldevel/apostol-core | cebfb2fec4acd1776446f1d77746533bb63dfbb7 | [
"MIT"
] | null | null | null | Log.cpp | apostoldevel/apostol-core | cebfb2fec4acd1776446f1d77746533bb63dfbb7 | [
"MIT"
] | null | null | null | /*++
Library name:
apostol-core
Module Name:
Log.cpp
Notices:
Apostol Core (Log)
Author:
Copyright (c) Prepodobny Alen
mailto: alienufo@inbox.
mailto: ufocomp@gmail.com
--*/
#include "Core.hpp"
#include "Log.hpp"
extern "C++" {
namespace Apostol {
namespace Log {
static unsigned l... | 36.408273 | 120 | 0.321642 | apostoldevel |
8ea6cd106d2666feedd2ea3b650b85fd40865831 | 5,657 | hh | C++ | EvtGenBase/EvtTensor4C.hh | qdcampagna/BTODSTARLNUNP_EVTGEN_Model | 9623a0ffe2625450a1228a80d6baae74ed6c0965 | [
"CC0-1.0"
] | null | null | null | EvtGenBase/EvtTensor4C.hh | qdcampagna/BTODSTARLNUNP_EVTGEN_Model | 9623a0ffe2625450a1228a80d6baae74ed6c0965 | [
"CC0-1.0"
] | null | null | null | EvtGenBase/EvtTensor4C.hh | qdcampagna/BTODSTARLNUNP_EVTGEN_Model | 9623a0ffe2625450a1228a80d6baae74ed6c0965 | [
"CC0-1.0"
] | null | null | null |
/***********************************************************************
* Copyright 1998-2020 CERN for the benefit of the EvtGen authors *
* *
* This file is part of EvtGen. *
* ... | 43.852713 | 91 | 0.62047 | qdcampagna |
8ea9984531e95b61297941a14de09e1eb55af0b3 | 271 | cpp | C++ | C++Code/1002.cpp | CrystianPrintes20/ProjetoUri | 92a88ae2671a556f4d418c3605e9a2c6933dc9d8 | [
"MIT"
] | null | null | null | C++Code/1002.cpp | CrystianPrintes20/ProjetoUri | 92a88ae2671a556f4d418c3605e9a2c6933dc9d8 | [
"MIT"
] | null | null | null | C++Code/1002.cpp | CrystianPrintes20/ProjetoUri | 92a88ae2671a556f4d418c3605e9a2c6933dc9d8 | [
"MIT"
] | null | null | null | //Questão: Area do circulo
#include <iostream>
#include <iomanip>
using namespace std;
int main(int argc, char const *argv[]) {
double raio,area;
cin >> raio;
area = raio*raio* 3.14159;
cout << fixed <<setprecision(4);
cout << "A="<< area << endl;
return 0;
} | 22.583333 | 40 | 0.642066 | CrystianPrintes20 |
8ea9d3a22c19216efb50fc98b8c40fd5921e6fbb | 194 | hpp | C++ | libbf-os/include/libbf/os/secret_storage.hpp | Emersont1/big-finish-downloader | c6c754e65a827a500dad3c9d847fd723ce3e2fb4 | [
"MIT"
] | 1 | 2021-01-11T20:03:25.000Z | 2021-01-11T20:03:25.000Z | libbf-os/include/libbf/os/secret_storage.hpp | Emersont1/big-finish-downloader | c6c754e65a827a500dad3c9d847fd723ce3e2fb4 | [
"MIT"
] | 16 | 2021-01-08T23:22:02.000Z | 2021-01-27T10:10:05.000Z | libbf-os/include/libbf/os/secret_storage.hpp | Emersont1/big-finish-downloader | c6c754e65a827a500dad3c9d847fd723ce3e2fb4 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <libbf/login_cookie.hpp>
namespace libbf::os {
void store(libbf::login_cookie);
libbf::login_cookie retrieve();
void revoke();
} // namespace libbf::os | 17.636364 | 33 | 0.737113 | Emersont1 |
8eb85e0d9dd3c0e743cdedf49d52c5879de8f9cd | 14,550 | cpp | C++ | Backends/Graphics5/Vulkan/Sources/Kore/RenderTarget5Impl.cpp | psmtec/Kore | 3665641e1c411bfafbf55aa946dc8636eb379a12 | [
"Zlib"
] | null | null | null | Backends/Graphics5/Vulkan/Sources/Kore/RenderTarget5Impl.cpp | psmtec/Kore | 3665641e1c411bfafbf55aa946dc8636eb379a12 | [
"Zlib"
] | null | null | null | Backends/Graphics5/Vulkan/Sources/Kore/RenderTarget5Impl.cpp | psmtec/Kore | 3665641e1c411bfafbf55aa946dc8636eb379a12 | [
"Zlib"
] | null | null | null | #include "pch.h"
#include "RenderTarget5Impl.h"
#include <Kore/Graphics5/Graphics.h>
#include <Kore/Log.h>
#include <vulkan/vulkan.h>
#include <assert.h>
using namespace Kore;
extern VkDevice device;
extern VkRenderPass render_pass;
extern uint32_t swapchainImageCount;
extern VkPhysicalDevice gpu;
extern Graphics... | 43.562874 | 153 | 0.79945 | psmtec |
8eb8cd0ace4997adae7e730bc1b536ce89bdf1b1 | 659 | cc | C++ | slice/inplace_circular_delete.cc | liuluheng/CTCI | d8b72737fb450641759f52ade8bff3f694e9eec0 | [
"MIT"
] | null | null | null | slice/inplace_circular_delete.cc | liuluheng/CTCI | d8b72737fb450641759f52ade8bff3f694e9eec0 | [
"MIT"
] | null | null | null | slice/inplace_circular_delete.cc | liuluheng/CTCI | d8b72737fb450641759f52ade8bff3f694e9eec0 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstring>
using namespace std;
void print(int A[], int n)
{
for (int i = 0; i < n; i++)
cout << A[i] << " ";
cout << endl;
}
int inplace_circular_delete(int A[], int B[], int nA, int nB)
{
size_t i = 0;
int len = nA / sizeof(int);
while (i < (nA - nB + 1) / sizeof(int)) {
... | 17.810811 | 74 | 0.494689 | liuluheng |
8ec1d7f72e3001e0e459261cb397a57c7c40f9f3 | 399 | cpp | C++ | plugins/graph_algorithm/src/plugin_graph_algorithm.cpp | citypw/hal | c906c8fc34b8623533725d240aebcbce2d5a1c68 | [
"MIT"
] | null | null | null | plugins/graph_algorithm/src/plugin_graph_algorithm.cpp | citypw/hal | c906c8fc34b8623533725d240aebcbce2d5a1c68 | [
"MIT"
] | null | null | null | plugins/graph_algorithm/src/plugin_graph_algorithm.cpp | citypw/hal | c906c8fc34b8623533725d240aebcbce2d5a1c68 | [
"MIT"
] | 1 | 2020-01-09T23:38:55.000Z | 2020-01-09T23:38:55.000Z | #include "plugin_graph_algorithm.h"
#include "core/log.h"
extern std::shared_ptr<i_base> get_plugin_instance()
{
return std::dynamic_pointer_cast<i_base>(std::make_shared<plugin_graph_algorithm>());
}
std::string plugin_graph_algorithm::get_name() const
{
return std::string("graph_algorithm");
}
std::string ... | 22.166667 | 89 | 0.746867 | citypw |
8ec22b1df01f567a6961ca87d0311b33364952e4 | 1,682 | cpp | C++ | src/MergeIntervals.cpp | harborn/LeetCode | 8488c0bcf306b8672492fd6220e496e335e2b9fe | [
"MIT"
] | null | null | null | src/MergeIntervals.cpp | harborn/LeetCode | 8488c0bcf306b8672492fd6220e496e335e2b9fe | [
"MIT"
] | 1 | 2021-12-14T15:56:11.000Z | 2021-12-14T15:56:11.000Z | src/MergeIntervals.cpp | harborn/LeetCode | 8488c0bcf306b8672492fd6220e496e335e2b9fe | [
"MIT"
] | null | null | null |
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
struct Interval {
int start;
int end;
Interval() : start(0), end(0) {}
Interval(int s, int e) : start(s), end(e) {}
};
// Given a collection of intervals, merge all overlapping intervals.
vector<Interval> merge(vector<Interval> &in... | 19.113636 | 68 | 0.627824 | harborn |
8ec7d4810e7e575d0f860d9ecb01d8c92a006117 | 2,502 | cpp | C++ | cs475/proj2/main.cpp | franzmk/Oregon-State-Schoolwork | 20f8a72e78ec4baa131add2dda8026cd47f36188 | [
"MIT"
] | null | null | null | cs475/proj2/main.cpp | franzmk/Oregon-State-Schoolwork | 20f8a72e78ec4baa131add2dda8026cd47f36188 | [
"MIT"
] | null | null | null | cs475/proj2/main.cpp | franzmk/Oregon-State-Schoolwork | 20f8a72e78ec4baa131add2dda8026cd47f36188 | [
"MIT"
] | null | null | null | //Max Franz
//To compile: g++ -o proj main.cpp -lm -fopenmp
//To run: ./proj <numThreads> <numNodes>
#include <stdio.h>
#define _USE_MATH_DEFINES
#include <math.h>
#include <stdlib.h>
#include <time.h>
#include <omp.h>
#define XMIN -1.
#define XMAX 1.
#define YMIN -1.
#define YMAX 1.
... | 30.512195 | 224 | 0.53717 | franzmk |
8eca9abc9e40e6eadbd06233bf9ef25241f2a074 | 766 | cpp | C++ | examples/example-hot-reload-lib.cpp | AbdelHameed-Hamed/mn | a56ba8748a26955da338d5f39b48def4041e69ab | [
"BSD-3-Clause"
] | 20 | 2019-08-18T19:47:39.000Z | 2022-02-17T16:56:46.000Z | examples/example-hot-reload-lib.cpp | AbdelHameed-Hamed/mn | a56ba8748a26955da338d5f39b48def4041e69ab | [
"BSD-3-Clause"
] | 24 | 2020-05-06T17:10:16.000Z | 2022-03-24T08:59:22.000Z | examples/example-hot-reload-lib.cpp | AbdelHameed-Hamed/mn | a56ba8748a26955da338d5f39b48def4041e69ab | [
"BSD-3-Clause"
] | 11 | 2020-05-02T11:23:49.000Z | 2022-03-23T17:01:35.000Z | #include "example-hot-reload-lib.h"
#include <mn/Memory.h>
#include <mn/IO.h>
namespace hot_reload_lib
{
Foo*
foo_new()
{
auto self = mn::alloc_zerod<Foo>();
return self;
}
void
foo_free(Foo* self)
{
mn::free(self);
}
}
void*
rad_api(void* old_api, bool reload)
{
// first time call
if (old_api == nu... | 16.297872 | 58 | 0.667102 | AbdelHameed-Hamed |
8ecdf3f56f90dd0f450605380401250ad0ac71cb | 452 | hpp | C++ | module05/ex03/Intern.hpp | JohnnyZaev/CPP-Piscine | f1d0f0164131094823bb911c084d5075b0aee392 | [
"MIT"
] | null | null | null | module05/ex03/Intern.hpp | JohnnyZaev/CPP-Piscine | f1d0f0164131094823bb911c084d5075b0aee392 | [
"MIT"
] | null | null | null | module05/ex03/Intern.hpp | JohnnyZaev/CPP-Piscine | f1d0f0164131094823bb911c084d5075b0aee392 | [
"MIT"
] | null | null | null | //
// Created by Johnny Zaev on 07.06.2022.
//
#ifndef CPP_PISCINE_INTERN_HPP
#define CPP_PISCINE_INTERN_HPP
#include "Form.hpp"
#include "ShrubberyCreationForm.hpp"
#include "RobotomyRequestForm.hpp"
#include "PresidentialPardonForm.hpp"
class Intern {
public:
Intern();
Intern(const Intern &other);
~Intern();
... | 18.08 | 54 | 0.75 | JohnnyZaev |
8ed5458ac836a93f1afe04981220e0f12a291f9b | 3,445 | cpp | C++ | src/server.cpp | cBioLab/PPDP | 35c68f411aa0ce743899867d4a73dcc036bb161f | [
"BSD-3-Clause"
] | null | null | null | src/server.cpp | cBioLab/PPDP | 35c68f411aa0ce743899867d4a73dcc036bb161f | [
"BSD-3-Clause"
] | null | null | null | src/server.cpp | cBioLab/PPDP | 35c68f411aa0ce743899867d4a73dcc036bb161f | [
"BSD-3-Clause"
] | null | null | null | #include "ppdpp.h"
#include "comm.h"
#include<sys/time.h>
double get_wall_time(){
struct timeval time;
if (gettimeofday(&time, NULL)){
return 0;
}
return (double)time.tv_sec + (double)time.tv_usec * .000001;
}
extern cybozu::RandomGenerator rg;
int main(int argc,char* argv[]){
double start_sec = get_w... | 22.81457 | 74 | 0.624383 | cBioLab |
8edacf10d352191cffa6ce6aac09ade4c6c6a10a | 884 | cpp | C++ | Muriel/MuTextureManager.cpp | MurielSoftware/Muriel | 169ab5a96e1cf70b47f7892906a3dca2d6481ae3 | [
"Apache-2.0"
] | 1 | 2017-03-01T12:15:27.000Z | 2017-03-01T12:15:27.000Z | Muriel/MuTextureManager.cpp | MurielSoftware/Muriel | 169ab5a96e1cf70b47f7892906a3dca2d6481ae3 | [
"Apache-2.0"
] | 1 | 2017-03-01T12:19:17.000Z | 2017-03-01T12:19:52.000Z | Muriel/MuTextureManager.cpp | MurielSoftware/Muriel | 169ab5a96e1cf70b47f7892906a3dca2d6481ae3 | [
"Apache-2.0"
] | null | null | null | #include "stdafx.h"
#include "MuTextureManager.h"
#include "MuTexture.h"
#include "MuException.h"
#include "MuLog.h"
#include "MuStringUtils.h"
namespace Muriel
{
Texture* TextureManager::DoLoad(const string& name, const string& path)
{
int width;
int height;
int channels;
unsigned char* text... | 25.257143 | 106 | 0.68552 | MurielSoftware |
8ee414ed473364c6c86a39f4363d84946fc547bc | 11,432 | hpp | C++ | esp/services/ws_workunits/ws_workunitsService.hpp | emuharemagic/HPCC-Platform | bbd5423b25f6ba2d675521c8917f9ecfa97dace5 | [
"Apache-2.0"
] | 1 | 2020-08-01T19:54:56.000Z | 2020-08-01T19:54:56.000Z | esp/services/ws_workunits/ws_workunitsService.hpp | emuharemagic/HPCC-Platform | bbd5423b25f6ba2d675521c8917f9ecfa97dace5 | [
"Apache-2.0"
] | null | null | null | esp/services/ws_workunits/ws_workunitsService.hpp | emuharemagic/HPCC-Platform | bbd5423b25f6ba2d675521c8917f9ecfa97dace5 | [
"Apache-2.0"
] | null | null | null | /*##############################################################################
HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems.
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 ... | 63.160221 | 195 | 0.771868 | emuharemagic |
8ee466bf053616765f1d040b0a0b662d149eaf43 | 1,188 | cpp | C++ | src/ejSimpleJPEGRead.cpp | machinelevel/bens-game | e265d9a045426e71c86585503566e3572372f5a7 | [
"MIT"
] | null | null | null | src/ejSimpleJPEGRead.cpp | machinelevel/bens-game | e265d9a045426e71c86585503566e3572372f5a7 | [
"MIT"
] | null | null | null | src/ejSimpleJPEGRead.cpp | machinelevel/bens-game | e265d9a045426e71c86585503566e3572372f5a7 | [
"MIT"
] | null | null | null | /**** ej's simple jpeg read code ****/
#include <stdio.h>
#include <memory.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
bool ejSimpleJPEGRead(FILE *inputFile, void *inputMem, int inputMemSize, void **pOutData, unsigned int *pOutWidth, unsigned int *pOutHeight, unsigned int *pOutBPP)
{
SDL_RWops* rwops = NUL... | 24.75 | 163 | 0.664983 | machinelevel |
8ee7b9c5be1ad1d89f61478e768ddc29b7b87511 | 4,423 | hpp | C++ | src/libv/ui/property/size.hpp | cpplibv/libv | 293e382f459f0acbc540de8ef6283782b38d2e63 | [
"Zlib"
] | 2 | 2018-04-11T03:07:03.000Z | 2019-03-29T15:24:12.000Z | src/libv/ui/property/size.hpp | cpplibv/libv | 293e382f459f0acbc540de8ef6283782b38d2e63 | [
"Zlib"
] | null | null | null | src/libv/ui/property/size.hpp | cpplibv/libv | 293e382f459f0acbc540de8ef6283782b38d2e63 | [
"Zlib"
] | 1 | 2021-06-13T06:39:06.000Z | 2021-06-13T06:39:06.000Z | // Project: libv.ui, File: src/libv/ui/property/size.hpp, Author: Császár Mátyás [Vader]
#pragma once
// libv
#include <libv/math/vec.hpp>
// std
#include <utility>
namespace libv {
namespace ui {
// -------------------------------------------------------------------------------------------------
struct SizeDim {... | 28.720779 | 127 | 0.57834 | cpplibv |
8ee805652594c57b24bd679bbb9c652ee2e006c9 | 4,884 | hpp | C++ | include/dtc/csv/csv.hpp | tsung-wei-huang/DtCraft | 80cc9e1195adc0026107814243401a1fc47b5be2 | [
"MIT"
] | 69 | 2019-03-16T20:13:26.000Z | 2022-03-24T14:12:19.000Z | include/dtc/csv/csv.hpp | Tsung-Wei/DtCraft | 80cc9e1195adc0026107814243401a1fc47b5be2 | [
"MIT"
] | 12 | 2017-12-02T05:38:30.000Z | 2019-02-08T11:16:12.000Z | include/dtc/csv/csv.hpp | Tsung-Wei/DtCraft | 80cc9e1195adc0026107814243401a1fc47b5be2 | [
"MIT"
] | 12 | 2019-04-13T16:27:29.000Z | 2022-01-07T14:42:46.000Z | /******************************************************************************
* *
* Copyright (c) 2018, Tsung-Wei Huang, Chun-Xun Lin, and Martin D. F. Wong, *
* University of Illinois at Urbana-Champaign (UIUC), IL, USA. *
... | 27.133333 | 99 | 0.479525 | tsung-wei-huang |
8eeb9fe3bca6cf899a1707c8352f06d1a6800921 | 797 | cpp | C++ | cpp_concepts/code/future_promise.cpp | filippo82/cpp_programming | 56e8046aadbebf1f8a883f990c31300e56522011 | [
"Apache-2.0"
] | null | null | null | cpp_concepts/code/future_promise.cpp | filippo82/cpp_programming | 56e8046aadbebf1f8a883f990c31300e56522011 | [
"Apache-2.0"
] | null | null | null | cpp_concepts/code/future_promise.cpp | filippo82/cpp_programming | 56e8046aadbebf1f8a883f990c31300e56522011 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <thread>
#include <future>
// void initiazer(std::promise<int> * promObj)
// {
// std::cout << "Inside Thread" << std::endl;
// // Make This Thread sleep for 5 Second
// std::this_thread::sleep_for(std::chrono::milliseconds(5000));
// promObj->set_value(35);
// }
void initiazer(st... | 24.90625 | 66 | 0.65872 | filippo82 |
8eed720b4087ff429baac00d03c0d23ebf01f67a | 1,157 | hpp | C++ | android-31/android/media/MediaRouter2_RoutingController.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/media/MediaRouter2_RoutingController.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-30/android/media/MediaRouter2_RoutingController.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #pragma once
#include "../../JObject.hpp"
namespace android::media
{
class MediaRoute2Info;
}
namespace android::media
{
class MediaRouter2;
}
namespace android::os
{
class Bundle;
}
class JString;
namespace android::media
{
class MediaRouter2_RoutingController : public JObject
{
public:
// Fields
// QJ... | 23.14 | 171 | 0.736387 | YJBeetle |
8eeea7045d845b575a4b818a6aeda1f5551ac0a4 | 571 | hpp | C++ | include/detail/value_list_creation_detail.hpp | tjolsen/tmpl | e49e605fe622ed556dab94fb6560b5d3fa46e8e8 | [
"BSD-3-Clause"
] | 8 | 2018-02-10T17:44:45.000Z | 2022-03-22T18:49:44.000Z | include/detail/value_list_creation_detail.hpp | tjolsen/tmpl | e49e605fe622ed556dab94fb6560b5d3fa46e8e8 | [
"BSD-3-Clause"
] | null | null | null | include/detail/value_list_creation_detail.hpp | tjolsen/tmpl | e49e605fe622ed556dab94fb6560b5d3fa46e8e8 | [
"BSD-3-Clause"
] | 1 | 2019-02-19T14:54:11.000Z | 2019-02-19T14:54:11.000Z | //
// Created by tyler on 1/14/18.
//
#ifndef TMPL_VALUE_LIST_CREATION_DETAIL_HPP
#define TMPL_VALUE_LIST_CREATION_DETAIL_HPP
#include "tmpl_common.hpp"
#include "value_list.hpp"
#include <type_traits>
NAMESPACE_TMPL_DETAIL_OPEN
template <auto V, auto... VV> constexpr auto add_const(value_list<VV...>) {
return ... | 21.148148 | 75 | 0.751313 | tjolsen |
8eef22f8dc4e2ed5f9386048e6bde96b40e22a51 | 446 | cpp | C++ | SourceCode/Prototypes/DelaunayTriangleIntoVoroni/DelaunayTriangleIntoVoroni/Utility.cpp | JosephBarber96/FinalProject | 60400efa64c36b7cdbc975e0df7b937cbaae1d0b | [
"MIT"
] | 2 | 2019-05-18T21:37:17.000Z | 2021-07-16T04:08:23.000Z | SourceCode/Prototypes/DelaunayTriangleIntoVoroni/DelaunayTriangleIntoVoroni/Utility.cpp | JosephBarber96/FinalProject | 60400efa64c36b7cdbc975e0df7b937cbaae1d0b | [
"MIT"
] | 1 | 2020-04-29T05:37:48.000Z | 2020-04-29T11:14:57.000Z | SourceCode/Prototypes/DelaunayTriangleIntoVoroni/DelaunayTriangleIntoVoroni/Utility.cpp | JosephBarber96/FinalProject | 60400efa64c36b7cdbc975e0df7b937cbaae1d0b | [
"MIT"
] | 1 | 2021-07-16T04:08:31.000Z | 2021-07-16T04:08:31.000Z | #include "Utility.h"
#include "V2.h"
#include <math.h>
float Utility::Length(const V2 vec)
{
return sqrt(vec.x * vec.x + vec.y * vec.y);
}
float Utility::DistanceBetween(const V2 left, const V2 right)
{
V2 vec = V2(left.x - right.x, left.y - right.y);
float vecLength = Length(vec);
return fabsf(vecLength);
/*
... | 20.272727 | 61 | 0.67713 | JosephBarber96 |
8ef02ed118664daae264d1e5db4c044ba1fa38ce | 825 | hpp | C++ | include/Components/Chipsets/C4094.hpp | Ethan13310/NanoTekSpice | d69550213a7607662653c52d8f34e5b565714a30 | [
"MIT"
] | 2 | 2018-06-29T10:17:51.000Z | 2018-07-04T13:01:53.000Z | include/Components/Chipsets/C4094.hpp | Ethan13310/NanoTekSpice | d69550213a7607662653c52d8f34e5b565714a30 | [
"MIT"
] | null | null | null | include/Components/Chipsets/C4094.hpp | Ethan13310/NanoTekSpice | d69550213a7607662653c52d8f34e5b565714a30 | [
"MIT"
] | 3 | 2021-03-03T15:29:13.000Z | 2022-02-22T15:44:44.000Z | /*
** EPITECH PROJECT, 2018
** NanoTekSpice
** File description:
** C4094.hpp
*/
#pragma once
#include <array>
#include <string>
#include <unordered_map>
#include "Components/IComponent.hpp"
#include "Components/Pins/PinMap.hpp"
namespace nts
{
class C4094 final : public IComponent
{
public:
C4094(std:... | 18.75 | 82 | 0.704242 | Ethan13310 |
8ef8621ffd2e6d5b95668dda1c44d8402621e44b | 1,923 | cpp | C++ | codes/lightoj/1111BestPicnicEver.cpp | smmehrab/problem-solving | 4aeab1673f18d3270ee5fc9b64ed6805eacf4af5 | [
"MIT"
] | null | null | null | codes/lightoj/1111BestPicnicEver.cpp | smmehrab/problem-solving | 4aeab1673f18d3270ee5fc9b64ed6805eacf4af5 | [
"MIT"
] | null | null | null | codes/lightoj/1111BestPicnicEver.cpp | smmehrab/problem-solving | 4aeab1673f18d3270ee5fc9b64ed6805eacf4af5 | [
"MIT"
] | null | null | null | /*
************************************************
username : smmehrab
fullname : s.m.mehrabul islam
email : mehrab.24csedu.001@gmail.com
institute : university of dhaka, bangladesh
session : 2017-2018
************************************************
*/
#include <bits/stdc++.h>
#include <qu... | 21.852273 | 65 | 0.479459 | smmehrab |
8ef91fa00cb63f2189dda08dd077beddaf52ff74 | 414 | cc | C++ | project-euler/0001-0050/pe-0009.cc | RingZEROtlf/OJ | 8159b8dc2b1c7433631edef2f2f65fc9624f5a86 | [
"MIT"
] | null | null | null | project-euler/0001-0050/pe-0009.cc | RingZEROtlf/OJ | 8159b8dc2b1c7433631edef2f2f65fc9624f5a86 | [
"MIT"
] | null | null | null | project-euler/0001-0050/pe-0009.cc | RingZEROtlf/OJ | 8159b8dc2b1c7433631edef2f2f65fc9624f5a86 | [
"MIT"
] | null | null | null | #include <iostream>
class pythagorean_triplet {
public:
uint64_t operator()(uint64_t n) const {
for (uint64_t a = 1; a < n; ++a) {
for (uint64_t b = a + 1; b < n; ++b) {
uint64_t c = n - a - b;
if (b < c && a * a + b * b == c * c) {
return a * b * c;
}
}
}
r... | 18.818182 | 46 | 0.463768 | RingZEROtlf |
8ef933b15755a39f18e8547a01988fb4a3551c9b | 5,787 | cpp | C++ | Samples/MapControl/cpp/Scenario8.xaml.cpp | dujianxin/Windows-universal-samples | d4e95ff0ac408c5d4d980bb18d53fb2c6556a273 | [
"MIT"
] | 2,504 | 2019-05-07T06:56:42.000Z | 2022-03-31T19:37:59.000Z | Samples/MapControl/cpp/Scenario8.xaml.cpp | dujianxin/Windows-universal-samples | d4e95ff0ac408c5d4d980bb18d53fb2c6556a273 | [
"MIT"
] | 314 | 2019-05-08T16:56:30.000Z | 2022-03-21T07:13:45.000Z | Samples/MapControl/cpp/Scenario8.xaml.cpp | dujianxin/Windows-universal-samples | d4e95ff0ac408c5d4d980bb18d53fb2c6556a273 | [
"MIT"
] | 2,219 | 2019-05-07T00:47:26.000Z | 2022-03-30T21:12:31.000Z | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PA... | 38.838926 | 126 | 0.668913 | dujianxin |
f10dabaf0cb749a2e2815ac207c3550a9f45d0a7 | 8,377 | cpp | C++ | src/index_html.cpp | chmutoff/esp-tank | ecb2a14317112e54001ff232a836e915b6ef2a6c | [
"MIT"
] | null | null | null | src/index_html.cpp | chmutoff/esp-tank | ecb2a14317112e54001ff232a836e915b6ef2a6c | [
"MIT"
] | null | null | null | src/index_html.cpp | chmutoff/esp-tank | ecb2a14317112e54001ff232a836e915b6ef2a6c | [
"MIT"
] | null | null | null | /**
*
* @file index_html.cpp
* @author Anton Chmutov Derevianko <sir.antoxic@gmail.com>
* @brief Control webpage
*
* @copyright (C) 2022 Anton Chmutov Derevianko <sir.antoxic@gmail.com>
* This file is subject to the terms and conditions of the MIT license.
* See the LICENSE file in the top level directory fo... | 38.426606 | 196 | 0.495046 | chmutoff |
47e1ae6a375000fe6022953d74281c19c2edcad8 | 80 | cpp | C++ | src/examples/11_module/03_memory_leak/memory_leak.cpp | acc-cosc-1337-spring-2020/acc-cosc-1337-spring-2020-moneeb18 | a70d6b511a90241610cc4cfc86398b34f766fcc7 | [
"MIT"
] | null | null | null | src/examples/11_module/03_memory_leak/memory_leak.cpp | acc-cosc-1337-spring-2020/acc-cosc-1337-spring-2020-moneeb18 | a70d6b511a90241610cc4cfc86398b34f766fcc7 | [
"MIT"
] | null | null | null | src/examples/11_module/03_memory_leak/memory_leak.cpp | acc-cosc-1337-spring-2020/acc-cosc-1337-spring-2020-moneeb18 | a70d6b511a90241610cc4cfc86398b34f766fcc7 | [
"MIT"
] | null | null | null |
#include "dynamic_memory.h"
void memory_leak()
{
int* ptr_num = new int(5);
}
| 11.428571 | 27 | 0.675 | acc-cosc-1337-spring-2020 |
47e244d79d7e7285e94cdf48516840eab52ac0ed | 709 | cpp | C++ | UPDATEIT.cpp | Marethyu12/SPOJ-solutions | 10fb3352e0b8818be40f7df2285b0d30a0fdc09c | [
"Unlicense"
] | null | null | null | UPDATEIT.cpp | Marethyu12/SPOJ-solutions | 10fb3352e0b8818be40f7df2285b0d30a0fdc09c | [
"Unlicense"
] | null | null | null | UPDATEIT.cpp | Marethyu12/SPOJ-solutions | 10fb3352e0b8818be40f7df2285b0d30a0fdc09c | [
"Unlicense"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int T;
int n, u;
int l, r, val;
int q;
int ind;
cin >> T;
while (T--)
{
cin >> n >> u;
int diff[n + 1];//extra space for update operation
memset(diff, 0, sizeo... | 13.634615 | 53 | 0.430183 | Marethyu12 |
47e9a7259e4b078a8eb2a69bc84871f595fc1771 | 750 | cpp | C++ | cses/string-algorithms/required-substring.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | 4 | 2020-10-05T19:24:10.000Z | 2021-07-15T00:45:43.000Z | cses/string-algorithms/required-substring.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | null | null | null | cses/string-algorithms/required-substring.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | null | null | null | #include <cpplib/stdinc.hpp>
#include <cpplib/string/prefix-function.hpp>
int n, m;
string s;
vi pi;
int dp[1000][100][2];
int solve(int i, int j, bool has){
if(i == n)
return has;
int &res = dp[i][j][has];
if(res == -1){
res = 0;
for(char c='A'; c<='Z'; ++c){
int aux =... | 20.27027 | 64 | 0.442667 | tysm |
47eb1f8f5fc4f1749502c348a5a980b838cd609f | 4,645 | cpp | C++ | webkit/WebCore/platform/wx/wxcode/mac/carbon/non-kerned-drawing.cpp | s1rcheese/nintendo-3ds-internetbrowser-sourcecode | 3dd05f035e0a5fc9723300623e9b9b359be64e11 | [
"Unlicense"
] | 15 | 2016-01-05T12:43:41.000Z | 2022-03-15T10:34:47.000Z | webkit/WebCore/platform/wx/wxcode/mac/carbon/non-kerned-drawing.cpp | s1rcheese/nintendo-3ds-internetbrowser-sourcecode | 3dd05f035e0a5fc9723300623e9b9b359be64e11 | [
"Unlicense"
] | null | null | null | webkit/WebCore/platform/wx/wxcode/mac/carbon/non-kerned-drawing.cpp | s1rcheese/nintendo-3ds-internetbrowser-sourcecode | 3dd05f035e0a5fc9723300623e9b9b359be64e11 | [
"Unlicense"
] | 2 | 2020-11-30T18:36:01.000Z | 2021-02-05T23:20:24.000Z | /*
* Copyright (C) 2007 Kevin Watters, Kevin Ollivier. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this... | 39.033613 | 191 | 0.742088 | s1rcheese |
47f54d497949bda295c99892fb665e3dd2af5e42 | 342 | cpp | C++ | t6zm_cheat/src/features/weapons/weapons_unlimited_clip.cpp | Yimura/t6zm-internal | e8ca4ae2c5d3aa21e3bc9cfd3025e8a3039cc265 | [
"MIT"
] | null | null | null | t6zm_cheat/src/features/weapons/weapons_unlimited_clip.cpp | Yimura/t6zm-internal | e8ca4ae2c5d3aa21e3bc9cfd3025e8a3039cc265 | [
"MIT"
] | null | null | null | t6zm_cheat/src/features/weapons/weapons_unlimited_clip.cpp | Yimura/t6zm-internal | e8ca4ae2c5d3aa21e3bc9cfd3025e8a3039cc265 | [
"MIT"
] | null | null | null | #include "features.hpp"
namespace t6zm
{
void features::weapons_unlimited_clip()
{
if (g_settings->weapons.unlimited_clip)
{
g_pointers->m_player->m_primary_clip = 69;
g_pointers->m_player->m_primary_akimbo_clip = 69;
g_pointers->m_player->m_secondary_clip = 69;
g_pointers->m_player->m_secondary_akim... | 22.8 | 54 | 0.736842 | Yimura |
47f7249a67e782477d2347e8bef5358e49ab5f30 | 2,095 | cpp | C++ | Code/Game/Framework/CommandLineArguments.cpp | WarzesProject/Micro3DRPG | 36604d51d5dd640836cad77995abbfecfe4bdccc | [
"MIT"
] | 3 | 2020-05-12T04:36:38.000Z | 2021-04-04T07:21:44.000Z | Code/Game/Framework/CommandLineArguments.cpp | WarzesProject/Micro3DRPG | 36604d51d5dd640836cad77995abbfecfe4bdccc | [
"MIT"
] | null | null | null | Code/Game/Framework/CommandLineArguments.cpp | WarzesProject/Micro3DRPG | 36604d51d5dd640836cad77995abbfecfe4bdccc | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Framework/CommandLineArguments.h"
#ifdef _WIN32
#include <Engine/Core/Platform/WindowsHeader.h>
#ifndef UNICODE
PRAGMA_WARNING_PUSH
PRAGMA_WARNING_DISABLE_MSVC(4365) // warning C4365: 'initializing': conversion from 'int' to '::size_t', signed/unsigned mismatch
PRAGMA_WARNING_DI... | 34.344262 | 162 | 0.652029 | WarzesProject |
47fa710a3336b1022e60115d0ca17ea9ccaac6e9 | 16,808 | cpp | C++ | extra/news/src/xk/external/udpipe/udpipe/morphodita/tokenizer/english_tokenizer.cpp | scignscape/PGVM | e24f46cdf657a8bdb990c7883c6bd3d0a0c9cff0 | [
"BSL-1.0"
] | null | null | null | extra/news/src/xk/external/udpipe/udpipe/morphodita/tokenizer/english_tokenizer.cpp | scignscape/PGVM | e24f46cdf657a8bdb990c7883c6bd3d0a0c9cff0 | [
"BSL-1.0"
] | null | null | null | extra/news/src/xk/external/udpipe/udpipe/morphodita/tokenizer/english_tokenizer.cpp | scignscape/PGVM | e24f46cdf657a8bdb990c7883c6bd3d0a0c9cff0 | [
"BSL-1.0"
] | null | null | null | // This file is part of MorphoDiTa <http://github.com/ufal/morphodita/>.
//
// Copyright 2015 Institute of Formal and Applied Linguistics, Faculty of
// Mathematics and Physics, Charles University in Prague, Czech Republic.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If... | 26.935897 | 128 | 0.57431 | scignscape |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.