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 108 | 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 67k โ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b57ab05c3f3f7779b0c026b6c4d7c7243c79daf9 | 1,430 | cpp | C++ | uhk/acm5624.cpp | Hyyyyyyyyyy/acm | d7101755b2c2868d51bb056f094e024d0333b56f | [
"MIT"
] | null | null | null | uhk/acm5624.cpp | Hyyyyyyyyyy/acm | d7101755b2c2868d51bb056f094e024d0333b56f | [
"MIT"
] | null | null | null | uhk/acm5624.cpp | Hyyyyyyyyyy/acm | d7101755b2c2868d51bb056f094e024d0333b56f | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
typedef long long ll;
const int maxn = 15000 + 10;
const int MAX = 100000000;
struct node
{
int u;
int v;
ll w;
};
node edge[maxn];
int N, M, cnt;
ll res;
int F[maxn];
bool comp(const node& a, const node& b)
{
return a.w < b.w;
}
void ad... | 14.742268 | 39 | 0.479021 | Hyyyyyyyyyy |
b58004d3527ba76f6a550c910f2c61f558ca6db7 | 4,151 | cc | C++ | UA_BlackJack_Server/DBServer/test/test_RedisService.cc | lsxk-jwj/gRPC_demo | 4a772dbb68726f2f253e6023271fd7b629006853 | [
"Apache-2.0"
] | null | null | null | UA_BlackJack_Server/DBServer/test/test_RedisService.cc | lsxk-jwj/gRPC_demo | 4a772dbb68726f2f253e6023271fd7b629006853 | [
"Apache-2.0"
] | null | null | null | UA_BlackJack_Server/DBServer/test/test_RedisService.cc | lsxk-jwj/gRPC_demo | 4a772dbb68726f2f253e6023271fd7b629006853 | [
"Apache-2.0"
] | null | null | null | #include "../RedisService.h"
#include <gtest/gtest.h>
#include <unordered_set>
using ua_black_jack_server::data_base_server::RedisService;
RedisService* service;
const char* nickname = "owen1";
const int64_t uid = 2345;
const char* password = "ASIKrgubhy";
int main() {
acl::redis_client client("127.0.0.1:6379")... | 30.977612 | 74 | 0.669718 | lsxk-jwj |
b58022bbd3bbacc3c23f06777eb67a41f8982771 | 16,261 | hpp | C++ | core/src/cogs/io/net/telnet.hpp | cogmine/cogs | ef1c369a36a4f811704e0ced0493c3a6f8eca821 | [
"MIT"
] | 5 | 2019-02-08T15:59:14.000Z | 2022-01-22T19:12:33.000Z | core/src/cogs/io/net/telnet.hpp | cogmine/cogs | ef1c369a36a4f811704e0ced0493c3a6f8eca821 | [
"MIT"
] | 1 | 2019-12-03T03:11:34.000Z | 2019-12-03T03:11:34.000Z | core/src/cogs/io/net/telnet.hpp | cogmine/cogs | ef1c369a36a4f811704e0ced0493c3a6f8eca821 | [
"MIT"
] | null | null | null | //
// Copyright (C) 2000-2020 - Colen M. Garoutte-Carson <colen at cogmine.com>, Cog Mine LLC
//
// Status: Good, NeedsTesting
#ifndef COGS_HEADER_IO_NET_TELNET
#define COGS_HEADER_IO_NET_TELNET
#include "cogs/collections/container_queue.hpp"
#include "cogs/collections/string.hpp"
#include "cogs/env.hpp"
#include... | 27.939863 | 108 | 0.665703 | cogmine |
b5869a966c858be6c802aeed55b10dba98576bc4 | 7,147 | hpp | C++ | tests/vex_tests.hpp | LIBHALA/hala | ff3950aef18b6cede48b45669be275b174f362a5 | [
"BSD-3-Clause"
] | 1 | 2021-02-25T16:21:42.000Z | 2021-02-25T16:21:42.000Z | tests/vex_tests.hpp | mkstoyanov/hala | ff3950aef18b6cede48b45669be275b174f362a5 | [
"BSD-3-Clause"
] | 9 | 2020-09-03T23:31:22.000Z | 2020-10-21T23:40:11.000Z | tests/vex_tests.hpp | mkstoyanov/hala | ff3950aef18b6cede48b45669be275b174f362a5 | [
"BSD-3-Clause"
] | 2 | 2020-03-03T17:39:37.000Z | 2020-11-05T16:01:28.000Z | /*
* Code Author: Miroslav Stoyanov
*
* Copyright (C) 2018 Miroslav Stoyanov
*
* This file is part of
* Hardware Accelerated Linear Algebra (HALA)
*
*/
#include "testing_common.hpp"
template<typename T> T mabs2(T a){ return a * a; }
template<typename T> std::complex<T> mabs2(std::complex<T> a){
T r = std:... | 30.156118 | 118 | 0.577165 | LIBHALA |
b58bd59f08a69d9871df8ccb02f407adcc23138c | 5,461 | cpp | C++ | VISUALC/source/repos/Project10/main.cpp | giljr/c | b8058423f9feda06f05e67af617a1e2f5089f9e8 | [
"MIT"
] | null | null | null | VISUALC/source/repos/Project10/main.cpp | giljr/c | b8058423f9feda06f05e67af617a1e2f5089f9e8 | [
"MIT"
] | null | null | null | VISUALC/source/repos/Project10/main.cpp | giljr/c | b8058423f9feda06f05e67af617a1e2f5089f9e8 | [
"MIT"
] | 1 | 2021-06-29T08:26:40.000Z | 2021-06-29T08:26:40.000Z | /*
#Project 10 - Visual C++ 2019 - Exercise 1 - Homework - Snack Bar
Description
This program calculates how much each customer spends in a snack bar.
In essence, this program initializes 3 matrices:
p[1][7] - Price of the Snack bar Products
q[7][1] - Quantity of each item asked
t[1][7] - Total pric... | 24.271111 | 90 | 0.478301 | giljr |
b590fd34fdece371bdfa3668cfc75fdf0b20a1a4 | 10,537 | cpp | C++ | MCUME/teensycastaway41/mem.cpp | DigiTorus86/Teensy-R4ge-Pro | d94a73f4f60957b3f28a27b7d6f74b01a61121fa | [
"MIT"
] | 1 | 2022-01-13T02:00:52.000Z | 2022-01-13T02:00:52.000Z | MCUME/teensycastaway41/mem.cpp | DigiTorus86/Teensy-R4ge-Pro | d94a73f4f60957b3f28a27b7d6f74b01a61121fa | [
"MIT"
] | null | null | null | MCUME/teensycastaway41/mem.cpp | DigiTorus86/Teensy-R4ge-Pro | d94a73f4f60957b3f28a27b7d6f74b01a61121fa | [
"MIT"
] | 1 | 2022-01-11T12:55:50.000Z | 2022-01-11T12:55:50.000Z | /*
* Castaway
* (C) 1994 - 2002 Martin Doering, Joachim Hoenig
*
* $File$ - memory read/write
*
* This file is distributed under the GPL, version 2 or at your
* option any later version. See doc/license.txt for details.
*
* revision history
* 23.05.2002 JH FAST1.0.1 code import: KR -> ANSI, restructuring
* 30.05.... | 21.63655 | 86 | 0.692892 | DigiTorus86 |
b59205c22fb73cbd3f92597ed12c7ff49f7d821c | 730 | cpp | C++ | hw5/src/test_Country.cpp | Rytheking/OOP-refleming | db81b3efe7e99b00f84ca116287f6510c9e77493 | [
"MIT"
] | null | null | null | hw5/src/test_Country.cpp | Rytheking/OOP-refleming | db81b3efe7e99b00f84ca116287f6510c9e77493 | [
"MIT"
] | null | null | null | hw5/src/test_Country.cpp | Rytheking/OOP-refleming | db81b3efe7e99b00f84ca116287f6510c9e77493 | [
"MIT"
] | null | null | null | #include "Country.h"
#include "gtest/gtest.h"
using namespace std;
using namespace france;
TEST(Country, Constructor) {
float GDP = 314000000000;
string continent("europe");
Country Country(GDP,continent);
ASSERT_EQ(Country.GDP(),GDP);
ASSERT_EQ(Country.continent(),continent);
floa... | 24.333333 | 47 | 0.664384 | Rytheking |
b594a909f22095675ae48fd2966ef8f1bb73403e | 417 | hpp | C++ | libctrpf/include/CTRPluginFramework/System/Clock.hpp | MirayXS/Vapecord-ACNL-Plugin | 247eb270dfe849eda325cc0c6adc5498d51de3ef | [
"MIT"
] | null | null | null | libctrpf/include/CTRPluginFramework/System/Clock.hpp | MirayXS/Vapecord-ACNL-Plugin | 247eb270dfe849eda325cc0c6adc5498d51de3ef | [
"MIT"
] | null | null | null | libctrpf/include/CTRPluginFramework/System/Clock.hpp | MirayXS/Vapecord-ACNL-Plugin | 247eb270dfe849eda325cc0c6adc5498d51de3ef | [
"MIT"
] | null | null | null | #ifndef CTRPLUGINFRAMREWORK_CLOCK_HPP
#define CTRPLUGINFRAMREWORK_CLOCK_HPP
#include "CTRPluginFramework/System/Time.hpp"
namespace CTRPluginFramework
{
class Clock
{
public:
Clock(void);
Clock(Time time);
Time GetElapsedTime(void) const;
bool HasTimePassed(Time time... | 18.954545 | 47 | 0.64988 | MirayXS |
b59d7c70c5f754130b39ba2fe863763260c080e6 | 992 | hpp | C++ | src/gui.hpp | MisterIsmed/PhotoStick | 9383a0b86409f4c1f398eb3b913b32adb9762070 | [
"MIT"
] | null | null | null | src/gui.hpp | MisterIsmed/PhotoStick | 9383a0b86409f4c1f398eb3b913b32adb9762070 | [
"MIT"
] | null | null | null | src/gui.hpp | MisterIsmed/PhotoStick | 9383a0b86409f4c1f398eb3b913b32adb9762070 | [
"MIT"
] | null | null | null | #ifndef GUI_HPP
#define GUI_HPP
#include "GUIslice.h"
#include "GUIslice_drv.h"
#include "GUIslice_ex.h"
#include "SdFat.h"
#include "util.hpp"
enum Animation
{
ANIM_LIGHT,
ANIM_BLINK,
ANIM_MARQUEE,
};
struct StickConfig
{
const char *fileToLoad;
Animation animation;
CRGB animationColor;
uint8... | 21.106383 | 75 | 0.721774 | MisterIsmed |
b59edf51969128b8b7bbed720ce96ae262d8068c | 723 | cpp | C++ | learncpp/average.cpp | ignaciop/c-varios | c8ef033485efd19a01fbc43658be36473eb1d08d | [
"MIT"
] | null | null | null | learncpp/average.cpp | ignaciop/c-varios | c8ef033485efd19a01fbc43658be36473eb1d08d | [
"MIT"
] | null | null | null | learncpp/average.cpp | ignaciop/c-varios | c8ef033485efd19a01fbc43658be36473eb1d08d | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdint>
class Average {
private:
int32_t m_total = 0;
int8_t m_numbers = 0;
public:
Average() {}
friend std::ostream& operator<<(std::ostream &out, const Average &average) {
out << static_cast<double>(average.m_total) / average.m_numbers;
return out;
}
Average& operato... | 15.0625 | 77 | 0.562932 | ignaciop |
b27158435fe44061b11bd04087b322d571542b30 | 4,017 | hpp | C++ | ConvertTours/Data/Tour_File.hpp | kravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | 2 | 2018-04-27T11:07:02.000Z | 2020-04-24T06:53:21.000Z | ConvertTours/Data/Tour_File.hpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | ConvertTours/Data/Tour_File.hpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | //********************************************************
// Tour_File.hpp - Tour File Input/Output
//********************************************************
#ifndef TOUR_FILE_HPP
#define TOUR_FILE_HPP
#include "Ext_Header.hpp"
//---------------------------------------------------------
// Tour_File Class definit... | 45.647727 | 99 | 0.620861 | kravitz |
b27440fa42855642dba8775c9d2c8585dcb325a5 | 5,999 | hpp | C++ | inc/goo_bitset.hpp | CrankOne/Goo | b909c72a5c87cd11d9c27d42b8332c1b5694cfe0 | [
"MIT"
] | null | null | null | inc/goo_bitset.hpp | CrankOne/Goo | b909c72a5c87cd11d9c27d42b8332c1b5694cfe0 | [
"MIT"
] | 2 | 2017-12-28T10:09:43.000Z | 2018-02-21T13:34:02.000Z | inc/goo_bitset.hpp | CrankOne/Goo | b909c72a5c87cd11d9c27d42b8332c1b5694cfe0 | [
"MIT"
] | null | null | null | # include <cstdint>
# include <cstddef>
# include <ostream>
# include <cassert>
# include <cstring>
# include <stdexcept>
# include <bitset>
# include <iostream> // XXX
# pragma once
namespace goo {
/**@class Bitset
* @brief A dynamic bitset implementaation.
*
* We want some nice features of bitsets which lengt... | 34.28 | 84 | 0.643441 | CrankOne |
b27646379e7355c5d70bb819fe7d05851993e12d | 951 | cpp | C++ | src/dev/memory_dev.cpp | RupertAvery/et3400 | 243c0ed407bee20f43e2f1c528f10cc6ffb12664 | [
"BSD-3-Clause"
] | 3 | 2020-11-06T22:30:32.000Z | 2021-12-24T06:30:32.000Z | src/dev/memory_dev.cpp | RupertAvery/et3400 | 243c0ed407bee20f43e2f1c528f10cc6ffb12664 | [
"BSD-3-Clause"
] | null | null | null | src/dev/memory_dev.cpp | RupertAvery/et3400 | 243c0ed407bee20f43e2f1c528f10cc6ffb12664 | [
"BSD-3-Clause"
] | 1 | 2021-12-24T06:30:38.000Z | 2021-12-24T06:30:38.000Z | #include "stdlib.h"
#include "memory_dev.h"
#include "string.h"
memory_device::memory_device(offs_t start, size_t size, bool readonly)
{
this->readonly = readonly;
this->start = start;
this->size = size;
end = start + size - 1;
memory = (uint8_t *)malloc(size);
next = NULL;
};
memory_device::~... | 16.396552 | 70 | 0.648791 | RupertAvery |
b280fe5af68259f4869de4427cd49488b58b46ec | 4,083 | cpp | C++ | tests/db.cpp | Carlosnuji/Plantas | 01b822794184b5d8803bb445cd927b38ad6e57d5 | [
"MIT"
] | null | null | null | tests/db.cpp | Carlosnuji/Plantas | 01b822794184b5d8803bb445cd927b38ad6e57d5 | [
"MIT"
] | null | null | null | tests/db.cpp | Carlosnuji/Plantas | 01b822794184b5d8803bb445cd927b38ad6e57d5 | [
"MIT"
] | null | null | null | #include "db.h"
Db::Db()
{
m_db = QSqlDatabase::addDatabase("QPSQL");
m_db.setHostName("localhost");
m_db.setDatabaseName("template1");
m_db.setPort(5432);
m_db.setUserName("postgres");
m_db.setPassword("");
}
bool Db::isNumber(const std::string& s)
{
std::string::const_iterator it = s.b... | 26.006369 | 127 | 0.467303 | Carlosnuji |
b281df1d8c43ace27ddd97bfd868a4e9f6b74703 | 130 | cc | C++ | Blob_Lib/assimp-5.2.3/assimp/contrib/draco/src/draco/javascript/emscripten/decoder_webidl_wrapper.cc | antholuo/Blob_Traffic | 5d6acf88044e9abc63c0ff356714179eaa4b75bf | [
"MIT"
] | null | null | null | Blob_Lib/assimp-5.2.3/assimp/contrib/draco/src/draco/javascript/emscripten/decoder_webidl_wrapper.cc | antholuo/Blob_Traffic | 5d6acf88044e9abc63c0ff356714179eaa4b75bf | [
"MIT"
] | null | null | null | Blob_Lib/assimp-5.2.3/assimp/contrib/draco/src/draco/javascript/emscripten/decoder_webidl_wrapper.cc | antholuo/Blob_Traffic | 5d6acf88044e9abc63c0ff356714179eaa4b75bf | [
"MIT"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:be80c5d3aa7630ec26446c50687042c447392f0e383d7d5c046d90a089c2bc11
size 14155
| 32.5 | 75 | 0.884615 | antholuo |
b287806730d8a4096663c5b6d97afeab3dd8c923 | 6,355 | cpp | C++ | src/TotalEnergy/localTotalEnergy.cpp | pmu2022/lsms | 3c5f266812cad0b6d570bef9f5abb590d044ef92 | [
"BSD-3-Clause"
] | 1 | 2022-01-27T14:45:51.000Z | 2022-01-27T14:45:51.000Z | src/TotalEnergy/localTotalEnergy.cpp | pmu2022/lsms | 3c5f266812cad0b6d570bef9f5abb590d044ef92 | [
"BSD-3-Clause"
] | null | null | null | src/TotalEnergy/localTotalEnergy.cpp | pmu2022/lsms | 3c5f266812cad0b6d570bef9f5abb590d044ef92 | [
"BSD-3-Clause"
] | null | null | null |
#include "localTotalEnergy.hpp"
#include <cmath>
#include "Misc/integrator.hpp"
#include "PhysicalConstants.hpp"
#include "Misc/poisson.hpp"
extern "C" {
void zeropt_(Real *ezpt, Real *tpzpt, Real *atvol, Real *ztotss);
}
/**
* Calculates the total energy `energy` for each site
*
* @param lsms system parameters... | 29.421296 | 80 | 0.545397 | pmu2022 |
b287a4dfdf70b1f0ece58849a0385f7efcc2f599 | 5,745 | cpp | C++ | src/preferences/time/ClockView.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 1,338 | 2015-01-03T20:06:56.000Z | 2022-03-26T13:49:54.000Z | src/preferences/time/ClockView.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 15 | 2015-01-17T22:19:32.000Z | 2021-12-20T12:35:00.000Z | src/preferences/time/ClockView.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 350 | 2015-01-08T14:15:27.000Z | 2022-03-21T18:14:35.000Z | /*
* Copyright 2004-2011, Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* John Scipione <jscipione@gmail.com>
*/
#include "ClockView.h"
#include <Alignment.h>
#include <Box.h>
#include <Catalog.h>
#include <CheckBox.h>
#include <ControlLook.h>
#include <Layout... | 25.30837 | 75 | 0.734378 | Kirishikesan |
b28833182c3530b089ade20291943b95527413f0 | 1,164 | cpp | C++ | practice/table.cpp | tntptntp/UCR-U16-CS10v | be0f360c4d29a1d2c5fac72ba6ab1e2db9df7654 | [
"MIT"
] | null | null | null | practice/table.cpp | tntptntp/UCR-U16-CS10v | be0f360c4d29a1d2c5fac72ba6ab1e2db9df7654 | [
"MIT"
] | null | null | null | practice/table.cpp | tntptntp/UCR-U16-CS10v | be0f360c4d29a1d2c5fac72ba6ab1e2db9df7654 | [
"MIT"
] | null | null | null | #include <iostream>
#include <iomanip>
#include <string>
using namespace std;
const int MONTHS = 12;
string monthName(int monthNumber){
string monthNames[] = {"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"};
return monthNames[monthNumber - 1];
}
void PrintHeader (int yearColWidth, ... | 19.728814 | 100 | 0.546392 | tntptntp |
b289c5d51edb9c9502e6ebc3954c17fc58fddd28 | 274 | hh | C++ | nox/src/nox/lib/nox-config.hh | ayjazz/OESS | deadc504d287febc7cbd7251ddb102bb5c8b1f04 | [
"Apache-2.0"
] | 28 | 2015-02-04T13:59:25.000Z | 2021-12-29T03:44:47.000Z | nox/src/nox/lib/nox-config.hh | ayjazz/OESS | deadc504d287febc7cbd7251ddb102bb5c8b1f04 | [
"Apache-2.0"
] | 552 | 2015-01-05T18:25:54.000Z | 2022-03-16T18:51:13.000Z | nox/src/nox/lib/nox-config.hh | ayjazz/OESS | deadc504d287febc7cbd7251ddb102bb5c8b1f04 | [
"Apache-2.0"
] | 25 | 2015-02-04T18:48:20.000Z | 2020-06-18T15:51:05.000Z | #ifndef NOX_CONFIG_HH
#define NOX_CONFIG_HH
const char* pkgdatadir = PKGDATADIR;
const char* pkgsysconfdir = PKGSYSCONFDIR;
const char* pkglibdir = PKGLIBDIR;
const char* version = NOX_VERSION;
const int buildnr = BUILDNR;
#endif // -- NOX_CONFIG_HH
| 24.909091 | 42 | 0.715328 | ayjazz |
b28c6096a350a06a2f7eec772e063d1a62994bb9 | 2,420 | cpp | C++ | Hackerank/C++/A Very Big Sum.cpp | abdzitter/Daily-Coding-DS-ALGO-Practice | 26ddbf7a3673608039a07d26d812fce31b69871a | [
"MIT"
] | 289 | 2021-05-15T22:56:03.000Z | 2022-03-28T23:13:25.000Z | Hackerank/C++/A Very Big Sum.cpp | abdzitter/Daily-Coding-DS-ALGO-Practice | 26ddbf7a3673608039a07d26d812fce31b69871a | [
"MIT"
] | 1,812 | 2021-05-09T13:49:58.000Z | 2022-01-15T19:27:17.000Z | Hackerank/C++/A Very Big Sum.cpp | abdzitter/Daily-Coding-DS-ALGO-Practice | 26ddbf7a3673608039a07d26d812fce31b69871a | [
"MIT"
] | 663 | 2021-05-09T16:57:58.000Z | 2022-03-27T14:15:07.000Z | /* Program Link:
https://www.hackerrank.com/challenges/a-very-big-sum/problem
Ques.
In this challenge, you are required to calculate and print the sum of the elements in an array, keeping in mind that some of those integers may be quite large.
Function Description
Complete the aVeryBigSum function in the editor below... | 20.862069 | 159 | 0.650413 | abdzitter |
b28ebc6c0c2cb69f6788975c718518096a2e27f9 | 691 | hpp | C++ | src/opengl/opengl_version/ff8/FF8Menu.hpp | Sebanisu/Field-Map-Editor | 2f37986459785a78766de34e38fc3e21db8b6f14 | [
"Unlicense"
] | null | null | null | src/opengl/opengl_version/ff8/FF8Menu.hpp | Sebanisu/Field-Map-Editor | 2f37986459785a78766de34e38fc3e21db8b6f14 | [
"Unlicense"
] | 66 | 2021-09-27T23:58:02.000Z | 2022-01-10T20:41:36.000Z | src/opengl/opengl_version/ff8/FF8Menu.hpp | Sebanisu/Field-Map-Editor | 2f37986459785a78766de34e38fc3e21db8b6f14 | [
"Unlicense"
] | null | null | null | //
// Created by pcvii on 11/24/2021.
//
#ifndef MYPROJECT_FF8MENU_HPP
#define MYPROJECT_FF8MENU_HPP
#include "Fields.hpp"
#include "Menu.hpp"
namespace ff8
{
class FF8Menu
{
public:
FF8Menu();
void OnUpdate(float) const;
void OnRender() const;
void OnImGuiUpdate() const;
void OnEvent(const glengine::Event... | 19.742857 | 70 | 0.685962 | Sebanisu |
b2903a3e1f1af5114365a8e1f182d75499dcf3b1 | 3,605 | cpp | C++ | word_break.cpp | artureganyan/algorithms | 98cd0048162b3cb1c79712a884261cd3fe31063c | [
"MIT"
] | null | null | null | word_break.cpp | artureganyan/algorithms | 98cd0048162b3cb1c79712a884261cd3fe31063c | [
"MIT"
] | null | null | null | word_break.cpp | artureganyan/algorithms | 98cd0048162b3cb1c79712a884261cd3fe31063c | [
"MIT"
] | null | null | null | // Problem: https://leetcode.com/problems/word-break/
#include <vector>
#include <string>
#include "utils.h"
namespace word_break {
class Solution {
public:
// Time: O(n^2 * d), Space: O(n), Recursion depth <= n + 2
// n - length of the string, d - length of the dictionary
//
// Note: The worst case ... | 38.351064 | 109 | 0.533426 | artureganyan |
b291d6f8cb1d3d3d498aada7d7a1989ef7200683 | 71,350 | cpp | C++ | src/sim/Rasterizer/Rasterizer.cpp | attila-sim/attila-sim | a64b57240b4e10dc4df7f21eff0232b28df09532 | [
"BSD-3-Clause"
] | 23 | 2016-01-14T04:47:13.000Z | 2022-01-13T14:02:08.000Z | src/sim/Rasterizer/Rasterizer.cpp | attila-sim/attila-sim | a64b57240b4e10dc4df7f21eff0232b28df09532 | [
"BSD-3-Clause"
] | 2 | 2018-03-25T14:39:20.000Z | 2022-03-18T05:11:21.000Z | src/sim/Rasterizer/Rasterizer.cpp | attila-sim/attila-sim | a64b57240b4e10dc4df7f21eff0232b28df09532 | [
"BSD-3-Clause"
] | 17 | 2016-02-13T05:35:35.000Z | 2022-03-24T16:05:40.000Z | /**************************************************************************
*
* Copyright (c) 2002 - 2011 by Computer Architecture Department,
* Universitat Politecnica de Catalunya.
* All rights reserved.
*
* The contents of this file may not be disclosed to third parties,
* copied or duplicated in any form, in... | 34.804878 | 135 | 0.566097 | attila-sim |
b2936a63a6c7ffdfd568458ea8a01cb5c85fb5df | 4,163 | cpp | C++ | register/auto_mapping_util.cpp | Ascend/metadef | 9d3f0444b1e13e6a3c9d498963f8232f439a0f47 | [
"Apache-2.0"
] | null | null | null | register/auto_mapping_util.cpp | Ascend/metadef | 9d3f0444b1e13e6a3c9d498963f8232f439a0f47 | [
"Apache-2.0"
] | null | null | null | register/auto_mapping_util.cpp | Ascend/metadef | 9d3f0444b1e13e6a3c9d498963f8232f439a0f47 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2020 Huawei Technologies Co., Ltd
* 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 ag... | 34.983193 | 114 | 0.67043 | Ascend |
b2968f62f2e41310f5e9fe54e71802068f031bac | 2,383 | cpp | C++ | sim/Boat/BoatTest.cpp | andyrobinson/ard-nav | 8162b2c9b882393ffd44e42d3f0816d7b1090760 | [
"MIT"
] | null | null | null | sim/Boat/BoatTest.cpp | andyrobinson/ard-nav | 8162b2c9b882393ffd44e42d3f0816d7b1090760 | [
"MIT"
] | null | null | null | sim/Boat/BoatTest.cpp | andyrobinson/ard-nav | 8162b2c9b882393ffd44e42d3f0816d7b1090760 | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include "Boat.h"
#include "Position.h"
#include "Globe.h"
#include "Utility.h"
using namespace Position;
using namespace Utility;
namespace {
position kynance_cove = {49.97480, -5.23198, 5.0};
Globe globe;
class BoatTest : public ::testing::Test {
protected:
BoatTest... | 28.710843 | 92 | 0.669744 | andyrobinson |
b29954233eaaef0bb8d07306e8479d91c6a20a22 | 4,112 | hpp | C++ | RobWork/src/rwlibs/pathplanners/sbl/SBLInternal.hpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | 1 | 2021-12-29T14:16:27.000Z | 2021-12-29T14:16:27.000Z | RobWork/src/rwlibs/pathplanners/sbl/SBLInternal.hpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | null | null | null | RobWork/src/rwlibs/pathplanners/sbl/SBLInternal.hpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | null | null | null | /********************************************************************************
* Copyright 2009 The Robotics Group, The Maersk Mc-Kinney Moller Institute,
* Faculty of Engineering, University of Southern Denmark
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exce... | 38.429907 | 99 | 0.591683 | ZLW07 |
b29db8d1c35b45ee1ca236d77d74ba0a768c66da | 11,132 | cpp | C++ | src/graphics/dxengine/dxtools.cpp | Terebinth/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 117 | 2015-01-13T14:48:49.000Z | 2022-03-16T01:38:19.000Z | src/graphics/dxengine/dxtools.cpp | darongE/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 4 | 2015-05-01T13:09:53.000Z | 2017-07-22T09:11:06.000Z | src/graphics/dxengine/dxtools.cpp | darongE/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 78 | 2015-01-13T09:27:47.000Z | 2022-03-18T14:39:09.000Z | #include <cISO646>
#include <math.h>
#include "../include/TimeMgr.h"
#include "../include/ObjectInstance.h"
#include "dxdefines.h"
#include "DxTools.h"
#include "../../falclib/include/mltrig.h"
#include "dxengine.h"
#ifndef DEBUG_ENGINE
// This function just assign a PMatrix object to a DX Compliant Matrix
void Assig... | 28.690722 | 156 | 0.610402 | Terebinth |
b29e20939c6dde13ae288f9e4c0b0e07ae823e4c | 2,644 | cpp | C++ | console/tests/main.cpp | rideskip/anchor | fbd52aa2b049ba210619ab9e714fa43ce43f2081 | [
"MIT"
] | 53 | 2020-02-05T19:44:58.000Z | 2022-03-11T20:59:17.000Z | console/tests/main.cpp | AudigoLabs/anchor | 713365f3f8126c48d0f23e03a1d76215406da6ac | [
"MIT"
] | 3 | 2020-03-29T17:16:55.000Z | 2022-01-09T20:31:46.000Z | console/tests/main.cpp | rideskip/anchor | fbd52aa2b049ba210619ab9e714fa43ce43f2081 | [
"MIT"
] | 13 | 2020-03-02T08:55:14.000Z | 2022-03-19T07:40:24.000Z | #include "gtest/gtest.h"
extern "C" {
#include "anchor/console/console.h"
};
#include <stdio.h>
#define CONSOLE_COMMAND_GET_INT_ARG(NAME) ({ \
int _arg; \
const bool _res = console_command_get_int_arg(NAME, &_arg); \
ASSERT_TRUE(_res); \
_arg; \
})
#define CONSOLE_COMMAND_GET_STR_ARG(NAME) ({ \
... | 27.541667 | 138 | 0.711422 | rideskip |
b29ed0f46ed47c191cff55bd13da622b2415330b | 6,791 | cpp | C++ | ixlib/old_wss/src/IXWebSocketPluginSetting.cpp | algamza/ixwss | fc323df76754d9f8aa24a36a24f640378c9e86bb | [
"Unlicense"
] | 1 | 2020-02-11T02:42:31.000Z | 2020-02-11T02:42:31.000Z | ixlib/old_wss/src/IXWebSocketPluginSetting.cpp | algamza/ixwss | fc323df76754d9f8aa24a36a24f640378c9e86bb | [
"Unlicense"
] | null | null | null | ixlib/old_wss/src/IXWebSocketPluginSetting.cpp | algamza/ixwss | fc323df76754d9f8aa24a36a24f640378c9e86bb | [
"Unlicense"
] | null | null | null | /**
* @file IXWebSocketPluginSetting.cpp
* @author Group(SW_Browser) <gsw_browser@humaxdigital.com>
* @brief Session to manage the client based on WebSocket
*
* (c) 2017 Humax Co., Ltd.
* This program is produced by Humax Co., Ltd. ("Humax") and
* the proprietary Software of Humax and its licensors. Huma... | 34.825641 | 121 | 0.5335 | algamza |
b29f31c132cc72e436a08ac99e03230aa8caa214 | 1,761 | cpp | C++ | src/SourceGenerator.cpp | MadLadSquad/UVKBuildTool | a25c0fb4f2ce407289a3f79aa9418272374b7a07 | [
"MIT"
] | 1 | 2022-02-08T07:08:28.000Z | 2022-02-08T07:08:28.000Z | src/SourceGenerator.cpp | MadLadSquad/UVKBuildTool | a25c0fb4f2ce407289a3f79aa9418272374b7a07 | [
"MIT"
] | null | null | null | src/SourceGenerator.cpp | MadLadSquad/UVKBuildTool | a25c0fb4f2ce407289a3f79aa9418272374b7a07 | [
"MIT"
] | null | null | null | #include "SourceGenerator.hpp"
void UBT::generateGame()
{
auto game = std::ofstream(path + static_cast<std::string>("Source/Game.hpp"));
game << "// Do not edit this file! This file was generated by the UVKBuildTool and will be overridden the next time you run regenerate!" << std::endl;
game << "#include ... | 32.018182 | 154 | 0.611584 | MadLadSquad |
b29f7c3ad75ec12e23921bd5c0319c1db957bb89 | 21,165 | hpp | C++ | include/util/dnn_util.hpp | Sanaxen/Statistical_analysis | ac34c0cb9be071939cb1fad745e56bb4bf4f993f | [
"MIT"
] | null | null | null | include/util/dnn_util.hpp | Sanaxen/Statistical_analysis | ac34c0cb9be071939cb1fad745e56bb4bf4f993f | [
"MIT"
] | 2 | 2018-09-18T13:47:48.000Z | 2018-09-23T14:38:59.000Z | include/util/dnn_util.hpp | Sanaxen/Statistical_analysis | ac34c0cb9be071939cb1fad745e56bb4bf4f993f | [
"MIT"
] | null | null | null | /*
Copyright (c) 2018, Sanaxn
All rights reserved.
Use of this source code is governed by a BSD-style license that can be found
in the LICENSE file.
*/
#ifndef _DNN_UTIL_HPP
#define _DNN_UTIL_HPP
#define NOMINMAX
#pragma warning( disable : 4244)
#pragma warning( disable : 4267)
#pragma warning( push )
#pragma warni... | 28.993151 | 206 | 0.697094 | Sanaxen |
b2a1b59f044c86b4bd57ff4a82232b6281001998 | 464 | cpp | C++ | source/libraries/ArduinoJson-master/src/Arduino/String.cpp | doanthuyan/AirSniffer | 44cffe8cda507a8ba112cee477a9d6e5b43e90ef | [
"MIT"
] | null | null | null | source/libraries/ArduinoJson-master/src/Arduino/String.cpp | doanthuyan/AirSniffer | 44cffe8cda507a8ba112cee477a9d6e5b43e90ef | [
"MIT"
] | null | null | null | source/libraries/ArduinoJson-master/src/Arduino/String.cpp | doanthuyan/AirSniffer | 44cffe8cda507a8ba112cee477a9d6e5b43e90ef | [
"MIT"
] | 1 | 2016-01-12T07:51:18.000Z | 2016-01-12T07:51:18.000Z | // Copyright Benoit Blanchon 2014-2015
// MIT License
//
// Arduino JSON library
// https://github.com/bblanchon/ArduinoJson
#ifndef ARDUINO
#include "../../include/ArduinoJson/Arduino/String.hpp"
#include <stdio.h> // for sprintf()
String::String(double value, unsigned char digits) {
char tmp[32];
sprintf(tmp... | 17.846154 | 55 | 0.663793 | doanthuyan |
b2a57293585c85fe44eab62ea722bd904425b2c9 | 623 | cpp | C++ | problemsets/SPOJ/SPOJ/EASYPROB.cpp | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | problemsets/SPOJ/SPOJ/EASYPROB.cpp | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | problemsets/SPOJ/SPOJ/EASYPROB.cpp | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | /**
*
* Author: Juarez Paulino(coderemite)
* Email: juarez.paulino@gmail.com
*
*/
#include <cstdio>
using namespace std;
const int NUM[] = {137, 1315, 73, 136, 255, 1384, 16385, 0};
void print(int N) {
int e, p;
for (e = 0, p = 1; 2*p <= N; e++, p*=2);
if (e == 0) { printf("2(0)"); return; }
pr... | 17.8 | 60 | 0.467095 | juarezpaulino |
b2a82eb21412fdc3aad86b07a1bed002d48f39da | 8,824 | cpp | C++ | src/ofApp.cpp | aalto-mediacode/photosynthetic | b95896a2fee7b14071bad0c38912c8201ee3d151 | [
"MIT"
] | null | null | null | src/ofApp.cpp | aalto-mediacode/photosynthetic | b95896a2fee7b14071bad0c38912c8201ee3d151 | [
"MIT"
] | null | null | null | src/ofApp.cpp | aalto-mediacode/photosynthetic | b95896a2fee7b14071bad0c38912c8201ee3d151 | [
"MIT"
] | null | null | null |
// This project includes Wireframe extrucion from VideoGrabber, midi-controlling the mesh and screen capturing the images
// Base of this code is based on Tim Gfrerer and James George OF cameraMesh -example
// I used for the final version OpenFrameworks and Touchdesigner.
//file for the Touchdesigner is in the bin... | 30.961404 | 133 | 0.523232 | aalto-mediacode |
b2a8a0021c5a31ba2df56519503fb6fd028ada58 | 46,277 | cpp | C++ | spirv_module.cpp | HansKristian-Work/DXIL2SPIRV | ea9ac33ae88c9efb0f864d473eb22c3c04d166a5 | [
"MIT"
] | 5 | 2019-11-07T13:14:56.000Z | 2019-12-09T20:01:47.000Z | spirv_module.cpp | HansKristian-Work/DXIL2SPIRV | ea9ac33ae88c9efb0f864d473eb22c3c04d166a5 | [
"MIT"
] | null | null | null | spirv_module.cpp | HansKristian-Work/DXIL2SPIRV | ea9ac33ae88c9efb0f864d473eb22c3c04d166a5 | [
"MIT"
] | null | null | null | /* Copyright (c) 2019-2022 Hans-Kristian Arntzen for Valve Corporation
*
* SPDX-License-Identifier: MIT
*
* 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
... | 33.197274 | 133 | 0.758584 | HansKristian-Work |
b2a9cbb6e2a458661793b49755dd9eab470c0be5 | 2,694 | cpp | C++ | tests/std/tests/GH_001123_random_cast_out_of_range/test.cpp | isra-fel/STL | 6ae9a578b4f52193dc523922c943a2214a873577 | [
"Apache-2.0"
] | 8,232 | 2019-09-16T22:51:24.000Z | 2022-03-31T03:55:39.000Z | tests/std/tests/GH_001123_random_cast_out_of_range/test.cpp | isra-fel/STL | 6ae9a578b4f52193dc523922c943a2214a873577 | [
"Apache-2.0"
] | 2,263 | 2019-09-17T05:19:55.000Z | 2022-03-31T21:05:47.000Z | tests/std/tests/GH_001123_random_cast_out_of_range/test.cpp | isra-fel/STL | 6ae9a578b4f52193dc523922c943a2214a873577 | [
"Apache-2.0"
] | 1,276 | 2019-09-16T22:51:40.000Z | 2022-03-31T03:30:05.000Z | // Copyright (c) Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#include <cassert>
#include <cmath>
#include <cstdint>
#include <limits>
#include <random>
#pragma warning(disable : 4984) // if constexpr is a C++17 language extension
#ifdef __clang__
#pragma clang diagnost... | 30.965517 | 78 | 0.632146 | isra-fel |
b2acbf5de86263ad5b5136016bd78f9d6875e740 | 850 | hpp | C++ | SDK/ARKSurvivalEvolved_ProjDragonFireBall_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_ProjDragonFireBall_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_ProjDragonFireBall_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_ProjDragonFireBall_classes.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Parameters
//---------------------------------------------------... | 25.757576 | 152 | 0.588235 | 2bite |
b2b05dd50468e1ad6d7148a1ec504c5fe9dedad3 | 12,519 | cpp | C++ | src/ViewModel.cpp | cojomojo/opengl_skybox_game | 8ef503bd41e2e51e5f9dbfd81fb99d21b5103580 | [
"MIT"
] | null | null | null | src/ViewModel.cpp | cojomojo/opengl_skybox_game | 8ef503bd41e2e51e5f9dbfd81fb99d21b5103580 | [
"MIT"
] | null | null | null | src/ViewModel.cpp | cojomojo/opengl_skybox_game | 8ef503bd41e2e51e5f9dbfd81fb99d21b5103580 | [
"MIT"
] | null | null | null | //FileName: ViewModel.cpp
//Programmer: Dan Cliburn, Cody Balos
//Date: 11/15/2015
//Purpose: Define the methods for the World ViewModel class.
//The Init() method needs to set up OpenGL and GLEW and prepare all objects (and their shaders) to be rendered.
//The Draw() method positions and renders all objects in the... | 34.871866 | 143 | 0.667785 | cojomojo |
b2b0be6ccdbedf093d981a1f85b4465554d0a2fa | 3,156 | hpp | C++ | include/Renderer.hpp | SudoCpp/simplexsdl | 23b44f5a29f5f24f6bb323062130e3b01ecb33eb | [
"Zlib"
] | null | null | null | include/Renderer.hpp | SudoCpp/simplexsdl | 23b44f5a29f5f24f6bb323062130e3b01ecb33eb | [
"Zlib"
] | null | null | null | include/Renderer.hpp | SudoCpp/simplexsdl | 23b44f5a29f5f24f6bb323062130e3b01ecb33eb | [
"Zlib"
] | null | null | null | /*
BSD 3-Clause License
Copyright (c) 2022, SudoCpp
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,... | 40.987013 | 121 | 0.724335 | SudoCpp |
b2b18c0c8bc6a164f31a2ca108e20f460a08044b | 4,770 | cpp | C++ | depends/work/build/i686-w64-mingw32/qt/5.9.7-f2560c1efa6/qtbase/src/gui/util/qlayoutpolicy.cpp | GrinCash/Grinc-core | 1377979453ba84082f70f9c128be38e57b65a909 | [
"MIT"
] | null | null | null | depends/work/build/i686-w64-mingw32/qt/5.9.7-f2560c1efa6/qtbase/src/gui/util/qlayoutpolicy.cpp | GrinCash/Grinc-core | 1377979453ba84082f70f9c128be38e57b65a909 | [
"MIT"
] | null | null | null | depends/work/build/i686-w64-mingw32/qt/5.9.7-f2560c1efa6/qtbase/src/gui/util/qlayoutpolicy.cpp | GrinCash/Grinc-core | 1377979453ba84082f70f9c128be38e57b65a909 | [
"MIT"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the Qt Quick Layouts module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holding val... | 35.073529 | 91 | 0.636059 | GrinCash |
b2b55d53b0c20e812861431c6a02f15046ba3d6b | 13,690 | cpp | C++ | Motor2D/j1EntityElementsScene.cpp | NontendoSL/Zelda-a-Link-to-the-Past-TRIBUTE | 8676c7fc70b6dea54cd173b42c5006f34ab82404 | [
"Apache-2.0"
] | 11 | 2017-02-16T18:30:43.000Z | 2021-08-07T11:40:49.000Z | Motor2D/j1EntityElementsScene.cpp | NontendoSL/Zelda-a-Link-to-the-Past-TRIBUTE | 8676c7fc70b6dea54cd173b42c5006f34ab82404 | [
"Apache-2.0"
] | 81 | 2017-02-16T18:27:02.000Z | 2017-06-07T20:23:40.000Z | Motor2D/j1EntityElementsScene.cpp | NontendoSL/Zelda-a-Link-to-the-Past-TRIBUTE | 8676c7fc70b6dea54cd173b42c5006f34ab82404 | [
"Apache-2.0"
] | 5 | 2017-03-01T14:49:24.000Z | 2021-08-07T11:40:51.000Z | #include "j1EntityElementsScene.h"
#include "Soldier.h"
#include "j1Item.h"
#include "j1Player.h"
#include "j1DynamicObjects.h"
#include "j1Scene.h"
#include "j1App.h"
#include "j1Input.h"
#include "p2Log.h"
#include "Geodude.h"
#include "Sudowoodo.h"
#include "Golem.h"
#include "PokeTrainer.h"
#include "j1Textures.h"
... | 21.974318 | 121 | 0.673703 | NontendoSL |
b2be7f66ea73bb466fe20289daa828ac0bebd4d6 | 11,923 | cpp | C++ | pla/tests/scaling.cpp | JBPennington/PLA | 60ff7952a8549e5272fb3c2aa9a469553a026727 | [
"MIT"
] | 4 | 2018-02-04T22:16:05.000Z | 2021-02-18T23:51:20.000Z | pla/tests/scaling.cpp | JBPennington/PLA | 60ff7952a8549e5272fb3c2aa9a469553a026727 | [
"MIT"
] | null | null | null | pla/tests/scaling.cpp | JBPennington/PLA | 60ff7952a8549e5272fb3c2aa9a469553a026727 | [
"MIT"
] | null | null | null |
extern "C" {
#include "../pla.h"
}
#include <gtest/gtest.h>
#include <iostream>
class Linear_Algebra_Scale_ : public testing::Test {
void SetUp() {}
void TearDown() {}
public:
const float tolerance = 0.00000001f;
mat2x2 Mat2_zero {{0,0},{0,0}};
mat3x3 Mat3_zero {{0,0,0},{0,0,0},{0,0,0}};
ma... | 35.379822 | 162 | 0.556487 | JBPennington |
b2bf412cbf53b73e507354a4d55c49279c232463 | 19,329 | cpp | C++ | view-cmake/src/plotNormal.cpp | limeng12/GenomeBrowser-CPlusPlus | 63d41a55d013cee9208e244cf154901461e12a30 | [
"BSD-3-Clause-Attribution"
] | 2 | 2019-10-14T09:29:38.000Z | 2021-04-25T00:16:40.000Z | view-cmake/src/plotNormal.cpp | limeng12/GenomeBrowser-CPlusPlus | 63d41a55d013cee9208e244cf154901461e12a30 | [
"BSD-3-Clause-Attribution"
] | null | null | null | view-cmake/src/plotNormal.cpp | limeng12/GenomeBrowser-CPlusPlus | 63d41a55d013cee9208e244cf154901461e12a30 | [
"BSD-3-Clause-Attribution"
] | null | null | null | #include "plotNormal.h"
PlotNormal::PlotNormal(DataFactory* tdata,BamData* tbdata,wxSize tcavanseSize,std::vector<bool>* tvector)
:PlotBase(tdata,tbdata,tcavanseSize,tvector){
//posNulciedTable=new char[200];//
//200ๆฏไธ่กๆ่ฒไฝๅฏ่ฝ็ๆๅค็ๆฐ็ฎ
minHeight=3;
}
PlotNormal::~PlotNormal(){
}
void PlotNormal::NucliedSi... | 31.791118 | 182 | 0.561902 | limeng12 |
b2c15fbb96b416bcf02671cff7b56ec353352b0b | 10,761 | cpp | C++ | 01_Develop/libXMCocos2D-v3/Source/shaders/CCShaderCache.cpp | mcodegeeks/OpenKODE-Framework | d4382d781da7f488a0e7667362a89e8e389468dd | [
"MIT"
] | 2 | 2017-08-03T07:15:00.000Z | 2018-06-18T10:32:53.000Z | 01_Develop/libXMCocos2D-v3/Source/shaders/CCShaderCache.cpp | mcodegeeks/OpenKODE-Framework | d4382d781da7f488a0e7667362a89e8e389468dd | [
"MIT"
] | null | null | null | 01_Develop/libXMCocos2D-v3/Source/shaders/CCShaderCache.cpp | mcodegeeks/OpenKODE-Framework | d4382d781da7f488a0e7667362a89e8e389468dd | [
"MIT"
] | 2 | 2019-03-04T22:57:42.000Z | 2020-03-06T01:32:26.000Z | /* -----------------------------------------------------------------------------------
*
* File CCShaderCache.cpp
* Ported By Young-Hwan Mun
* Contact xmsoft77@gmail.com
*
* -----------------------------------------------------------------------------------
*
* ... | 36.110738 | 115 | 0.675216 | mcodegeeks |
b2c215dd6158f8eef501dfc0ca47fe46a63268e7 | 1,165 | hpp | C++ | simtools/factory.hpp | dcrete/simtools | 82be6de79a490cdfe9079d643cd88dff2a5ae3aa | [
"MIT"
] | null | null | null | simtools/factory.hpp | dcrete/simtools | 82be6de79a490cdfe9079d643cd88dff2a5ae3aa | [
"MIT"
] | null | null | null | simtools/factory.hpp | dcrete/simtools | 82be6de79a490cdfe9079d643cd88dff2a5ae3aa | [
"MIT"
] | null | null | null | #ifndef SIMTOOLS_FACTORY_HPP
#define SIMTOOLS_FACTORY_HPP
#include <array>
#include <vector>
#include "simtools_config.hpp"
#include "matrix.hpp"
#include "tuple_math.hpp"
namespace simtools::factory {
template<dim_t N>
constexpr inline matrix<N> make_matrix(std::vector<dim_t>::const_iterator it) {
i... | 26.477273 | 83 | 0.592275 | dcrete |
b2c338cd33dd3230720781f0eaf86a6384c469f6 | 2,283 | cpp | C++ | third_party/WebKit/Source/core/dom/NodeIteratorBase.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Source/core/dom/NodeIteratorBase.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Source/core/dom/NodeIteratorBase.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* Copyright (C) 2000 Frederik Holljen (frederik.holljen@hig.no)
* Copyright (C) 2001 Peter Kelly (pmk@post.com)
* Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
* Copyright (C) 2004, 2008 Apple Inc. All rights reserved.
*
* This library is free software... | 36.238095 | 78 | 0.696014 | metux |
b2c4a39c6ed814139f4dc07737c3dac709dacae3 | 448 | cpp | C++ | assets/slides/ies/C++ Examples/DefaultDelete/main.cpp | william-taylor/Slides | eff5b827ca61dd51420111ef0de23f18056abfa6 | [
"MIT"
] | null | null | null | assets/slides/ies/C++ Examples/DefaultDelete/main.cpp | william-taylor/Slides | eff5b827ca61dd51420111ef0de23f18056abfa6 | [
"MIT"
] | null | null | null | assets/slides/ies/C++ Examples/DefaultDelete/main.cpp | william-taylor/Slides | eff5b827ca61dd51420111ef0de23f18056abfa6 | [
"MIT"
] | null | null | null |
#include <iostream>
class Point {
int x; int y;
public:
Point(int a, int b){ x = a; y = b;}
//Point() = default;
};
class NumberWrapper {
int * ptr;
public:
NumberWrapper(int num): ptr(new int{num}){}
~NumberWrapper() { delete ptr; }
//NumberWrapper(const NumberWrapper& w) = delete;
};
... | 14.933333 | 53 | 0.573661 | william-taylor |
b2c572acb83e9654fa28a93e2a37c5d2e5df4f06 | 2,185 | cpp | C++ | samples/01_system/08_json/src/main.cpp | SiminBadri/Wolf.Engine | 3da04471ec26e162e1cbb7cc88c7ce37ee32c954 | [
"BSL-1.0",
"Apache-2.0",
"libpng-2.0"
] | 1 | 2020-07-15T13:14:26.000Z | 2020-07-15T13:14:26.000Z | samples/01_system/08_json/src/main.cpp | foroughmajidi/Wolf.Engine | f08a8cbd519ca2c70b1c8325250dc9af7ac4c498 | [
"BSL-1.0",
"Apache-2.0",
"libpng-2.0"
] | null | null | null | samples/01_system/08_json/src/main.cpp | foroughmajidi/Wolf.Engine | f08a8cbd519ca2c70b1c8325250dc9af7ac4c498 | [
"BSL-1.0",
"Apache-2.0",
"libpng-2.0"
] | null | null | null | /*
Project : Wolf Engine. Copyright(c) Pooya Eimandar (http://PooyaEimandar.com) . All rights reserved.
Source : Please direct any bug to https://github.com/PooyaEimandar/Wolf.Engine/issues
Website : http://WolfSource.io
Name : main.cpp
Description : This sample shows how to interact lua as script en... | 25.406977 | 104 | 0.637071 | SiminBadri |
b2c5827cd04fdd2d18f089248ac6085e4cc32f1d | 289 | cpp | C++ | src/0231.cpp | killf/leetcode_cpp | d1f308a9c3da55ae5416ea28ec2e7a3146533ae9 | [
"MIT"
] | null | null | null | src/0231.cpp | killf/leetcode_cpp | d1f308a9c3da55ae5416ea28ec2e7a3146533ae9 | [
"MIT"
] | null | null | null | src/0231.cpp | killf/leetcode_cpp | d1f308a9c3da55ae5416ea28ec2e7a3146533ae9 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
#include <sstream>
#include <algorithm>
#include <map>
#include <hash_map>
#include <hash_set>
#include <queue>
using namespace std;
class Solution {
public:
bool isPowerOfTwo(int n) {
return (n > 0) && !(n & (n - 1));
}
}; | 16.055556 | 37 | 0.657439 | killf |
b2c8b307709618db3e05abe14991075c69d4558c | 570 | cpp | C++ | acmicpc.net/source/1436.cpp | tdm1223/Algorithm | 994149afffa21a81e38b822afcfc01f677d9e430 | [
"MIT"
] | 7 | 2019-06-26T07:03:32.000Z | 2020-11-21T16:12:51.000Z | acmicpc.net/source/1436.cpp | tdm1223/Algorithm | 994149afffa21a81e38b822afcfc01f677d9e430 | [
"MIT"
] | null | null | null | acmicpc.net/source/1436.cpp | tdm1223/Algorithm | 994149afffa21a81e38b822afcfc01f677d9e430 | [
"MIT"
] | 9 | 2019-02-28T03:34:54.000Z | 2020-12-18T03:02:40.000Z | // 1436. ์ํ๊ฐ๋
์
// 2020.07.03
// ํ์
#include<iostream>
using namespace std;
bool check(int num)
{
while (num != 0)
{
if (num % 1000 == 666)
{
return true;
}
num /= 10;
}
return false;
}
int main()
{
int num = 666;
int cnt = 0;
int n;
bool fl... | 11.875 | 30 | 0.37193 | tdm1223 |
b2ca06975455fc9f0c1bc995fa6d26e67ba4dfd2 | 2,064 | cpp | C++ | Pinball/ModulePlayer.cpp | yeraytm/Pinball | f39b8d7b0e1b793ae7f3f992caec1a2960c1923c | [
"MIT"
] | null | null | null | Pinball/ModulePlayer.cpp | yeraytm/Pinball | f39b8d7b0e1b793ae7f3f992caec1a2960c1923c | [
"MIT"
] | null | null | null | Pinball/ModulePlayer.cpp | yeraytm/Pinball | f39b8d7b0e1b793ae7f3f992caec1a2960c1923c | [
"MIT"
] | null | null | null | #include "Globals.h"
#include "Application.h"
#include "ModulePlayer.h"
#include "ModuleTextures.h"
#include "ModulePhysics.h"
#include "ModuleRender.h"
#include "ModuleInput.h"
#include "ModuleAudio.h"
#include "ModuleSceneIntro.h"
ModulePlayer::ModulePlayer(Application* app, bool start_enabled) : Module(app, start_e... | 23.724138 | 105 | 0.71124 | yeraytm |
b2cc417185be34061429a5f49df485bc574b33e8 | 442 | cpp | C++ | AtCoder/ABC113/b.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | AtCoder/ABC113/b.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | AtCoder/ABC113/b.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int n, t, a;
cin >> n >> t >> a;
vector<int> h(n);
rep(i, n) cin >> h[i];
int ans = 0;
double mn = 1e9;
rep(i, n) {
double tem = t - h[i] * 0.006... | 17.68 | 47 | 0.470588 | Takumi1122 |
b2ce76b1304512a0044bed4597b708f8ae2a4217 | 1,296 | cc | C++ | test/tile_test.cc | zhihengq/2048 | cfe0ee202cc10b1157a01f0675ff1fa4bb666bc6 | [
"MIT"
] | null | null | null | test/tile_test.cc | zhihengq/2048 | cfe0ee202cc10b1157a01f0675ff1fa4bb666bc6 | [
"MIT"
] | null | null | null | test/tile_test.cc | zhihengq/2048 | cfe0ee202cc10b1157a01f0675ff1fa4bb666bc6 | [
"MIT"
] | null | null | null | #include "tile.h"
#include <gtest/gtest.h>
#include <sstream>
#include <stdexcept>
namespace {
class TileTest : public testing::Test {
protected:
_2048::Tile tile_0_;
_2048::Tile tile_2_;
_2048::Tile tile_2048_;
void SetUp() override {
tile_0_ = _2048::Tile();
tile_2_ = _2048::Tile(... | 20.571429 | 46 | 0.600309 | zhihengq |
b2d4c71cd9a04189a978a35f6a289bbd25a27164 | 11,609 | cpp | C++ | base/cluster/mgmt/cluscfg/middletier/standardinfo.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | base/cluster/mgmt/cluscfg/middletier/standardinfo.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | base/cluster/mgmt/cluscfg/middletier/standardinfo.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2000-2001 Microsoft Corporation
//
// Module Name:
// StandardInfo.cpp
//
// Description:
// CStandardInfo implementation.
//
// Maintained By:
// Galen Barbee (GalenB) 02-FEB-2000
//
/////... | 20.804659 | 101 | 0.394005 | npocmaka |
b2d7efd18515f8e01dc39854d0c28429107974a5 | 595 | cpp | C++ | Luogu/Float/P1422.cpp | shuye02/C-Algorithms | a2aaf927d8c8e0d89140a34d115ac49c0f489066 | [
"MIT"
] | null | null | null | Luogu/Float/P1422.cpp | shuye02/C-Algorithms | a2aaf927d8c8e0d89140a34d115ac49c0f489066 | [
"MIT"
] | null | null | null | Luogu/Float/P1422.cpp | shuye02/C-Algorithms | a2aaf927d8c8e0d89140a34d115ac49c0f489066 | [
"MIT"
] | null | null | null | // P1422 ๅฐ็ๅฎถ็็ต่ดน
// https://www.luogu.org/problemnew/show/P1422
#include <iostream>
using namespace std;
int main(){
// Input Quantity
int quantity;
cin >> quantity;
double price;
// Calculate Price
if(quantity <= 150) {
price = quantity * 0.4463;
} else if (quantity > 150 && quant... | 22.884615 | 80 | 0.552941 | shuye02 |
b2d97d40517125fc1248befaaad6c0a416940e92 | 685 | cpp | C++ | src/s3/mouse.cpp | sarahkittyy/s3 | 53a5a06227526f0296f39e03dfb1dc55c66b42e9 | [
"MIT"
] | null | null | null | src/s3/mouse.cpp | sarahkittyy/s3 | 53a5a06227526f0296f39e03dfb1dc55c66b42e9 | [
"MIT"
] | null | null | null | src/s3/mouse.cpp | sarahkittyy/s3 | 53a5a06227526f0296f39e03dfb1dc55c66b42e9 | [
"MIT"
] | null | null | null | #include "s3/mouse.hpp"
#include <s3/window.hpp>
namespace s3 {
mouse::mouse(window& w)
: m_window(w) {
}
glm::vec2 mouse::get_pos() {
double xp, yp;
glfwGetCursorPos(m_window.handle(), &xp, &yp);
return glm::vec2(xp, yp);
}
mouse::state mouse::left_btn() {
return (state)glfwGetMouseButton(m_window.handle(), ... | 20.147059 | 79 | 0.721168 | sarahkittyy |
b2da1ed0c332bbec4a9ba6cbbef1684879d0e43e | 90,237 | cpp | C++ | src/plugPikiKando/collInfo.cpp | doldecomp/pikmin | 8c8c20721ecb2a19af8e50a4bdebdba90c9a27ed | [
"Unlicense"
] | 27 | 2021-09-28T00:33:11.000Z | 2021-11-18T19:38:40.000Z | src/plugPikiKando/collInfo.cpp | doldecomp/pikmin | 8c8c20721ecb2a19af8e50a4bdebdba90c9a27ed | [
"Unlicense"
] | null | null | null | src/plugPikiKando/collInfo.cpp | doldecomp/pikmin | 8c8c20721ecb2a19af8e50a4bdebdba90c9a27ed | [
"Unlicense"
] | null | null | null | #include "types.h"
/*
* --INFO--
* Address: ........
* Size: 00009C
*/
void _Error(char*, ...)
{
// UNUSED FUNCTION
}
/*
* --INFO--
* Address: ........
* Size: 0000F4
*/
void _Print(char*, ...)
{
// UNUSED FUNCTION
}
/*
* --INFO--
* Address: 80086CC4
* Size: 0002DC
*/
void Cylinder::get2dDist(Vector3f&... | 20.401764 | 88 | 0.455057 | doldecomp |
b2dcd3b8f9252d53d633698b445e9f3890ae0b0c | 1,562 | cc | C++ | stack/leetcode-155/soluction.cc | hello-chenchen/leet-code-algorithms | 432132b8fa0a1f9575a9764743fbb79a01620102 | [
"WTFPL"
] | null | null | null | stack/leetcode-155/soluction.cc | hello-chenchen/leet-code-algorithms | 432132b8fa0a1f9575a9764743fbb79a01620102 | [
"WTFPL"
] | null | null | null | stack/leetcode-155/soluction.cc | hello-chenchen/leet-code-algorithms | 432132b8fa0a1f9575a9764743fbb79a01620102 | [
"WTFPL"
] | null | null | null | #include <vector>
#include <list>
#include <iostream>
using namespace std;
class MinStack {
public:
/** initialize your data structure here. */
MinStack() {
_M_val = new list<int>();
_M_min_val = new list<int>();
}
~MinStack() {
delete _M_val;
_M_val = ... | 19.283951 | 65 | 0.486556 | hello-chenchen |
b2e033e72f62613d5fba612930bfb16fd8814d61 | 1,545 | cpp | C++ | Visual/Diploma/dialoglogenter.cpp | float-cat/diploma | e33d7ae173745e413d374c5b664e295491ac7b55 | [
"Apache-2.0"
] | null | null | null | Visual/Diploma/dialoglogenter.cpp | float-cat/diploma | e33d7ae173745e413d374c5b664e295491ac7b55 | [
"Apache-2.0"
] | null | null | null | Visual/Diploma/dialoglogenter.cpp | float-cat/diploma | e33d7ae173745e413d374c5b664e295491ac7b55 | [
"Apache-2.0"
] | null | null | null | #include "dialoglogenter.h"
#include "ui_dialoglogenter.h"
#include "dialogreg.h"
#include "ui_dialogreg.h"
#include "ui_mainwindow.h"
#include "mainwindow.h"
DialogLogEnter::DialogLogEnter(QWidget *parent) :
QDialog(parent),
ui(new Ui::DialogLogEnter)
{
ui->setupUi(this);
connect(ui->p... | 22.071429 | 78 | 0.641424 | float-cat |
b2e6c2441fd190f123b9bf7c56f2c01bebabce85 | 673 | hpp | C++ | leetCode/872.Leaf-Similiar Trees.hpp | CainHsu/ProgramStudy-leetcode | 23653e8927902aed64ba13a23a1d6c983b7ea5d5 | [
"Apache-2.0"
] | 1 | 2019-12-08T06:21:57.000Z | 2019-12-08T06:21:57.000Z | leetCode/872.Leaf-Similiar Trees.hpp | CainHsu/ProgramStudy-leetcode | 23653e8927902aed64ba13a23a1d6c983b7ea5d5 | [
"Apache-2.0"
] | null | null | null | leetCode/872.Leaf-Similiar Trees.hpp | CainHsu/ProgramStudy-leetcode | 23653e8927902aed64ba13a23a1d6c983b7ea5d5 | [
"Apache-2.0"
] | null | null | null | //
// Created by xuche on 2020/4/27.
//
#ifndef PROGRAMSTUDY_LEETCODE_872_LEAF_SIMILIAR_TREES_HPP
#define PROGRAMSTUDY_LEETCODE_872_LEAF_SIMILIAR_TREES_HPP
#include "../SourceCode/structs.hpp"
#include "vector"
using namespace std;
vector<int> v1;
void goDeeper(TreeNode* root){
if(!root) return;
if(root->le... | 23.206897 | 63 | 0.716196 | CainHsu |
b2ea86e461b7b0ef80b4709f573eb34e4cde9ff6 | 11,999 | cpp | C++ | NPSVisor/tools/svMaker/source/pProperty/svmPropertyPlotXY.cpp | NPaolini/NPS_OpenSource | 0c7da066b02b57ce282a1903a3901a563d04a28f | [
"Unlicense"
] | null | null | null | NPSVisor/tools/svMaker/source/pProperty/svmPropertyPlotXY.cpp | NPaolini/NPS_OpenSource | 0c7da066b02b57ce282a1903a3901a563d04a28f | [
"Unlicense"
] | null | null | null | NPSVisor/tools/svMaker/source/pProperty/svmPropertyPlotXY.cpp | NPaolini/NPS_OpenSource | 0c7da066b02b57ce282a1903a3901a563d04a28f | [
"Unlicense"
] | null | null | null | //--------------- svmPropertyPlotXY.cpp -----------------------
//-----------------------------------------------------------
#include "precHeader.h"
//-----------------------------------------------------------
#include <stdio.h>
#include <stdlib.h>
#include "svmPropertyPlotXY.h"
#include "macro_utils.h"
#include "PLi... | 33.330556 | 165 | 0.586632 | NPaolini |
b2ebc689200fcd6cb7335ce69aef5760e9d0085f | 8,278 | hpp | C++ | lib/dmitigr/pgfe/sql_string.hpp | thevojacek/pgfe | 22e85d4039c347dc4bb61bde8bdb0c4eeea860cf | [
"Zlib"
] | null | null | null | lib/dmitigr/pgfe/sql_string.hpp | thevojacek/pgfe | 22e85d4039c347dc4bb61bde8bdb0c4eeea860cf | [
"Zlib"
] | null | null | null | lib/dmitigr/pgfe/sql_string.hpp | thevojacek/pgfe | 22e85d4039c347dc4bb61bde8bdb0c4eeea860cf | [
"Zlib"
] | null | null | null | // -*- C++ -*-
// Copyright (C) Dmitry Igrishin
// For conditions of distribution and use, see files LICENSE.txt or pgfe.hpp
#ifndef DMITIGR_PGFE_SQL_STRING_HPP
#define DMITIGR_PGFE_SQL_STRING_HPP
#include "dmitigr/pgfe/basics.hpp"
#include "dmitigr/pgfe/dll.hpp"
#include "dmitigr/pgfe/parameterizable.hpp"
#include ... | 31.59542 | 94 | 0.656439 | thevojacek |
b2ec221905d5475066ee252865ca116c735e0729 | 742 | hpp | C++ | libs/common/include/common/time_utils.hpp | kiril-kirov/cpp-project | 6078b337e4e9e62d5e3d2675e2a53f6e8d98eb19 | [
"MIT"
] | 1 | 2022-03-31T16:58:54.000Z | 2022-03-31T16:58:54.000Z | libs/common/include/common/time_utils.hpp | kiril-kirov/cpp-project | 6078b337e4e9e62d5e3d2675e2a53f6e8d98eb19 | [
"MIT"
] | null | null | null | libs/common/include/common/time_utils.hpp | kiril-kirov/cpp-project | 6078b337e4e9e62d5e3d2675e2a53f6e8d98eb19 | [
"MIT"
] | null | null | null | #ifndef CPP_PROJECT_COMMON_TIME_UTILS_H
#define CPP_PROJECT_COMMON_TIME_UTILS_H
#include <chrono>
#include <functional>
namespace cpp_project::common
{
template<typename precision = std::chrono::microseconds,
typename clock = std::chrono::high_resolution_clock>
precision time_since(const typename clock::tim... | 25.586207 | 71 | 0.745283 | kiril-kirov |
b2ed0d90b3c7517c7b704029dcfada319c6405be | 1,251 | hpp | C++ | src/FrgCommon.hpp | Sourin-chatterjee/SpinParser | 23fa90c327b8a4543e5afac1b64d18df40975182 | [
"MIT"
] | 18 | 2021-06-03T16:03:02.000Z | 2022-02-28T00:48:53.000Z | src/FrgCommon.hpp | Sourin-chatterjee/SpinParser | 23fa90c327b8a4543e5afac1b64d18df40975182 | [
"MIT"
] | 3 | 2021-10-08T15:51:51.000Z | 2022-03-31T22:20:01.000Z | src/FrgCommon.hpp | Sourin-chatterjee/SpinParser | 23fa90c327b8a4543e5afac1b64d18df40975182 | [
"MIT"
] | 2 | 2022-02-10T17:15:05.000Z | 2022-02-11T19:54:27.000Z | /**
* @file FrgCommon.hpp
* @author Finn Lasse Buessen
* @brief Hub for central objects in pf-FRG calculations.
*
* @copyright Copyright (c) 2020
*/
#pragma once
#include "FrequencyDiscretization.hpp"
#include "CutoffDiscretization.hpp"
#include "Lattice.hpp"
/**
* @brief Hub for central objects in pf-FRG ca... | 22.745455 | 86 | 0.724221 | Sourin-chatterjee |
b2ed260d49da6c5697fe711ba7b52ac67e956d68 | 59 | cc | C++ | experiments/foo.cc | maciekgajewski/exceptions-under-the-hood | b42e66f4f0b4f9c9e4fdf3ae56130fe5f6d26608 | [
"MIT"
] | null | null | null | experiments/foo.cc | maciekgajewski/exceptions-under-the-hood | b42e66f4f0b4f9c9e4fdf3ae56130fe5f6d26608 | [
"MIT"
] | null | null | null | experiments/foo.cc | maciekgajewski/exceptions-under-the-hood | b42e66f4f0b4f9c9e4fdf3ae56130fe5f6d26608 | [
"MIT"
] | null | null | null | void baz(bool);
void foo(bool t) {
if (t)
baz(t);
}
| 8.428571 | 18 | 0.508475 | maciekgajewski |
b2f2c49651bcb0a460a307c4f3c716d414e758c1 | 4,888 | cpp | C++ | TopTestWidgets/privateSource/axisanimation.cpp | cy15196/xxxxRsmTest | 36577173ef2cdfc3c3d4cadd3933849d29d5b3d9 | [
"MIT"
] | 1 | 2020-02-12T03:20:37.000Z | 2020-02-12T03:20:37.000Z | TopTestWidgets/privateSource/axisanimation.cpp | cy15196/xxxxRsmTest | 36577173ef2cdfc3c3d4cadd3933849d29d5b3d9 | [
"MIT"
] | null | null | null | TopTestWidgets/privateSource/axisanimation.cpp | cy15196/xxxxRsmTest | 36577173ef2cdfc3c3d4cadd3933849d29d5b3d9 | [
"MIT"
] | 1 | 2019-04-14T09:58:50.000Z | 2019-04-14T09:58:50.000Z | /****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the Qt Charts module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid comme... | 33.251701 | 162 | 0.637275 | cy15196 |
b2f352f381838149f0919f368e151c3db9dca1d0 | 4,469 | cpp | C++ | Engine/Source/Hect/IO/Path.cpp | colinhect/hect | 2ef89be60ba9d450c5b56f5be6cef9803cc1855a | [
"MIT"
] | 2 | 2015-01-17T00:56:34.000Z | 2015-12-01T07:02:47.000Z | Engine/Source/Hect/IO/Path.cpp | colinhect/hect | 2ef89be60ba9d450c5b56f5be6cef9803cc1855a | [
"MIT"
] | 63 | 2015-01-06T17:42:22.000Z | 2017-09-10T00:21:52.000Z | Engine/Source/Hect/IO/Path.cpp | colinhect/hect | 2ef89be60ba9d450c5b56f5be6cef9803cc1855a | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
// This source file is part of Hect.
//
// Copyright (c) 2016 Colin Hill
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal ... | 23.15544 | 79 | 0.620944 | colinhect |
b2f81003eea3d750a27c1a168ebb1777270dff14 | 3,018 | cpp | C++ | erizo/src/examples/pc/Observer.cpp | aalonsog/licode | 0602a50a59e36f9435448d647e145137191b8397 | [
"MIT"
] | 1,766 | 2017-02-04T05:30:58.000Z | 2022-03-30T08:20:40.000Z | erizo/src/examples/pc/Observer.cpp | ThePolarNight/licode | 667b3cc9a353f6e2b9ad9c464971ab07f678991c | [
"MIT"
] | 544 | 2017-02-02T11:27:08.000Z | 2022-03-02T11:21:57.000Z | erizo/src/examples/pc/Observer.cpp | ThePolarNight/licode | 667b3cc9a353f6e2b9ad9c464971ab07f678991c | [
"MIT"
] | 617 | 2017-02-07T11:25:50.000Z | 2022-03-18T02:33:18.000Z | /*
* Observer.cpp
*/
#include <time.h>
#include <boost/regex.hpp>
#include "Observer.h"
Observer::Observer(std::string name, SDPReceiver *receiver) :
pc_(new PC(name)), name_(name), receiver_(receiver) {
this->init();
}
Observer::~Observer() {
}
void Observer::wait() {
m_Thread_.join();
}
void Observer::init... | 26.946429 | 95 | 0.668655 | aalonsog |
b2f8895745e400b9d28131865f1f0d21ef9c5f61 | 310 | hpp | C++ | yugong/yugong-debug.hpp | microvm/libyugong | 4828796b65100d11192926f16e314d29eb6fd702 | [
"MIT"
] | 4 | 2018-03-19T16:28:20.000Z | 2018-11-30T13:50:17.000Z | yugong/yugong-debug.hpp | microvm/libyugong | 4828796b65100d11192926f16e314d29eb6fd702 | [
"MIT"
] | null | null | null | yugong/yugong-debug.hpp | microvm/libyugong | 4828796b65100d11192926f16e314d29eb6fd702 | [
"MIT"
] | null | null | null | #ifndef __YUGONG_DEBUG__
#define __YUGONG_DEBUG__
#include <cstdio>
#define YG_DEBUG
#ifdef YG_DEBUG
#define yg_debug(fmt, ...) fprintf(stdout, "YG DEBUG [%s:%d:%s] " fmt,\
__FILE__, __LINE__, __func__, ## __VA_ARGS__)
#else
#define yg_debug(fmt, ...)
#endif // YG_DEBUG
#endif // __YUGONG_DEBUG__
| 19.375 | 71 | 0.7 | microvm |
b2fa2a549be13cf8e45d8582d3e8f5cf413a5b3c | 4,486 | cpp | C++ | src_code/AdvancedQt/censusvisualizer/main.cpp | yanrong/book_demo | 20cd13f3c3507a11e826ebbf22bd1c7bcb36e06f | [
"Apache-2.0"
] | null | null | null | src_code/AdvancedQt/censusvisualizer/main.cpp | yanrong/book_demo | 20cd13f3c3507a11e826ebbf22bd1c7bcb36e06f | [
"Apache-2.0"
] | null | null | null | src_code/AdvancedQt/censusvisualizer/main.cpp | yanrong/book_demo | 20cd13f3c3507a11e826ebbf22bd1c7bcb36e06f | [
"Apache-2.0"
] | null | null | null | /*
Copyright (c) 2009-10 Qtrac Ltd. All rights reserved.
This program or module 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 of
the License, or (at your option) any later v... | 35.603175 | 79 | 0.615247 | yanrong |
b2fc9f9c5609c9048368dd880a7f8db6c1b94107 | 5,335 | cpp | C++ | clang/lib/3C/ABounds.cpp | Machiry/checkedc-clang | ab9360d8be0a737cb5e09051f3a0051adc4b3e47 | [
"BSD-Source-Code"
] | null | null | null | clang/lib/3C/ABounds.cpp | Machiry/checkedc-clang | ab9360d8be0a737cb5e09051f3a0051adc4b3e47 | [
"BSD-Source-Code"
] | null | null | null | clang/lib/3C/ABounds.cpp | Machiry/checkedc-clang | ab9360d8be0a737cb5e09051f3a0051adc4b3e47 | [
"BSD-Source-Code"
] | null | null | null | //=--ABounds.cpp--------------------------------------------------*- C++-*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 39.518519 | 81 | 0.619869 | Machiry |
6504f994fbccbd93cff4aa1f4dbdce94ce9323f0 | 5,256 | cpp | C++ | filters/filtertool.cpp | NorbertWychowski/FilterApp-Qt | cf12b66b09212c768dca7b1740381beb34985b3e | [
"MIT"
] | null | null | null | filters/filtertool.cpp | NorbertWychowski/FilterApp-Qt | cf12b66b09212c768dca7b1740381beb34985b3e | [
"MIT"
] | null | null | null | filters/filtertool.cpp | NorbertWychowski/FilterApp-Qt | cf12b66b09212c768dca7b1740381beb34985b3e | [
"MIT"
] | null | null | null | #include "filtertool.h"
#include "gaussianblur.h"
#include "boxblur.h"
#include <QtMath>
#include <QtConcurrent/QtConcurrent>
#include <QFutureSynchronizer>
QImage FilterTool::splot(QImage &img, FILTER choose, Matrix userKernel) {
Matrix kernel;
QImage res;
switch (choose) {
case LAPLACE_FILTER:
... | 29.363128 | 114 | 0.457953 | NorbertWychowski |
6505144a1748c3fb3f092ba2fb848f15d81a13a4 | 2,388 | hh | C++ | include/token/crypto/provider.hh | tcsantanello/tokengov | 1351f2358e9cce75c431f94b9086f285d0ea0072 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | include/token/crypto/provider.hh | tcsantanello/tokengov | 1351f2358e9cce75c431f94b9086f285d0ea0072 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | include/token/crypto/provider.hh | tcsantanello/tokengov | 1351f2358e9cce75c431f94b9086f285d0ea0072 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null |
#ifndef __TOKENIZATION_PROVIDER_HH__
#define __TOKENIZATION_PROVIDER_HH__
#include "token/crypto/base.hh"
#include "token/crypto/encryption_key.hh"
#include "token/crypto/hmac_key.hh"
#include <boost/program_options.hpp>
#include <map>
#include <memory>
#include <string>
namespace token {
namespace crypto {
/*... | 27.767442 | 104 | 0.602178 | tcsantanello |
650ac1a6080d0d23eb64e11d18234479dab47922 | 1,240 | hxx | C++ | OCC/opencascade-7.2.0/x64/debug/inc/IntImp_ComputeTangence.hxx | jiaguobing/FastCAE | 2348ab87e83fe5c704e4c998cf391229c25ac5d5 | [
"BSD-3-Clause"
] | 2 | 2020-02-21T01:04:35.000Z | 2020-02-21T03:35:37.000Z | OCC/opencascade-7.2.0/x64/debug/inc/IntImp_ComputeTangence.hxx | Sunqia/FastCAE | cbc023fe07b6e306ceefae8b8bd7c12bc1562acb | [
"BSD-3-Clause"
] | 1 | 2020-03-06T04:49:42.000Z | 2020-03-06T04:49:42.000Z | OCC/opencascade-7.2.0/x64/debug/inc/IntImp_ComputeTangence.hxx | Sunqia/FastCAE | cbc023fe07b6e306ceefae8b8bd7c12bc1562acb | [
"BSD-3-Clause"
] | 1 | 2021-11-21T13:03:26.000Z | 2021-11-21T13:03:26.000Z | // Copyright (c) 1995-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
... | 35.428571 | 152 | 0.775806 | jiaguobing |
650da005bbd0df57855baa602a16653cbabedd7b | 4,946 | cpp | C++ | files/soko1/qutim_0.1.1/protocol/oscar/icq/privacylistwindow.cpp | truebsdorg/truebsdorg.github.io | 8663d8f6fae3b1bb1e2fb29614677f2863521951 | [
"BSD-4-Clause-UC"
] | null | null | null | files/soko1/qutim_0.1.1/protocol/oscar/icq/privacylistwindow.cpp | truebsdorg/truebsdorg.github.io | 8663d8f6fae3b1bb1e2fb29614677f2863521951 | [
"BSD-4-Clause-UC"
] | null | null | null | files/soko1/qutim_0.1.1/protocol/oscar/icq/privacylistwindow.cpp | truebsdorg/truebsdorg.github.io | 8663d8f6fae3b1bb1e2fb29614677f2863521951 | [
"BSD-4-Clause-UC"
] | null | null | null | /*
privacyListWindow
Copyright (c) 2008 by Rustam Chakin <qutim.develop@gmail.com>
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify... | 30.720497 | 101 | 0.671452 | truebsdorg |
650f3a9a5fd83c3c7ea9ce153bb6f71bc4682f3d | 1,657 | hpp | C++ | include/simulator.hpp | brenov/caus | 1c872de34871a228bfa556a3c4d97c13a54fbd9a | [
"MIT"
] | null | null | null | include/simulator.hpp | brenov/caus | 1c872de34871a228bfa556a3c4d97c13a54fbd9a | [
"MIT"
] | null | null | null | include/simulator.hpp | brenov/caus | 1c872de34871a228bfa556a3c4d97c13a54fbd9a | [
"MIT"
] | null | null | null | /*
This file is part of CAUS.
Copyright (c) 2019 by Breno Viana
CAUS is a free software; you can redistribute it and/or modify it under the
terms of the MIT License.
*/
#ifndef __CAUS_SIMULATOR_HPP__
#define __CAUS_SIMULATOR_HPP__
#include <iostream>
#include <memory>
#include <random>
#include <string>
#in... | 20.974684 | 77 | 0.634279 | brenov |
6512d1062b959bbe3a200450ee59ce580fae26ce | 8,757 | cpp | C++ | third_party/WebKit/Source/bindings/tests/results/core/V8TestCallbackInterface.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Source/bindings/tests/results/core/V8TestCallbackInterface.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Source/bindings/tests/results/core/V8TestCallbackInterface.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file has been auto-generated by code_generator_v8.py.
// DO NOT MODIFY!
// This file has been generated from the Jinja2 template in
// third_part... | 38.92 | 149 | 0.651365 | metux |
6512e4f9e76d0d40864da76d28d4bc429145a569 | 579 | hpp | C++ | rill/syntax_analysis/make_syntax_tree.hpp | rhysd/rill | cb16e511c6bdd4ea0b2bcbec51bd43724cc7ddcb | [
"BSL-1.0"
] | null | null | null | rill/syntax_analysis/make_syntax_tree.hpp | rhysd/rill | cb16e511c6bdd4ea0b2bcbec51bd43724cc7ddcb | [
"BSL-1.0"
] | null | null | null | rill/syntax_analysis/make_syntax_tree.hpp | rhysd/rill | cb16e511c6bdd4ea0b2bcbec51bd43724cc7ddcb | [
"BSL-1.0"
] | null | null | null | //
// Copyright yutopp 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)
//
#ifndef RILL_SYNTAX_ANALYSIS_MAKE_SYNTAX_TREE_HPP
#define RILL_SYNTAX_ANALYSIS_MAKE_SYNTAX_TREE_HPP
#include "../ast/ast.hpp... | 23.16 | 91 | 0.747841 | rhysd |
6514b131a02b23408a54ea8adc7d2ccd4bb57f80 | 3,706 | cpp | C++ | src/loottableeditordock.cpp | IoeCmcomc/MCDatapacker | 5099d6ac2e0b15f4d61235b5b5ec41a847f588a1 | [
"Apache-2.0"
] | 2 | 2021-08-17T14:06:53.000Z | 2022-01-29T14:14:59.000Z | src/loottableeditordock.cpp | IoeCmcomc/MCDatapacker | 5099d6ac2e0b15f4d61235b5b5ec41a847f588a1 | [
"Apache-2.0"
] | 1 | 2021-06-20T20:12:10.000Z | 2021-06-24T03:22:53.000Z | src/loottableeditordock.cpp | IoeCmcomc/MCDatapacker | 5099d6ac2e0b15f4d61235b5b5ec41a847f588a1 | [
"Apache-2.0"
] | null | null | null | #include "loottableeditordock.h"
#include "ui_loottableeditordock.h"
#include "mainwindow.h"
#include "loottablepool.h"
#include "loottablefunction.h"
#include "globalhelpers.h"
#include <QDebug>
#include <QJsonArray>
#include <QAction>
#include <QItemSelection>
#include <QJsonDocument>
#include <QListView>
LootTabl... | 31.40678 | 82 | 0.655963 | IoeCmcomc |
6514e09f2f1ab3811fb77811406862aad6b829c0 | 992 | cpp | C++ | leaky.cpp | kienme/NetworksLab | d361cd29a0b5339d53560729c233bcba621ef441 | [
"MIT"
] | null | null | null | leaky.cpp | kienme/NetworksLab | d361cd29a0b5339d53560729c233bcba621ef441 | [
"MIT"
] | null | null | null | leaky.cpp | kienme/NetworksLab | d361cd29a0b5339d53560729c233bcba621ef441 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
int min(int a, int b)
{
return a < b ? a : b;
}
int main()
{
int cap;
cout << "Enter bucket capacity: ";
cin >> cap;
int bw;
cout << "Enter output bandwidth: ";
cin >> bw;
int time;
cout << "Enter burst time: ";
cin >> time;
vector<int> in(time... | 16.262295 | 91 | 0.49496 | kienme |
6516e0ac9713a8a5782ecf75d9e983afd0d5406e | 1,117 | cpp | C++ | ladder/src/ThreadPool.cpp | zoujiaqing/ladder | a4cee94d8032ef52bc1f04e386fa9150e11c7349 | [
"BSD-3-Clause"
] | null | null | null | ladder/src/ThreadPool.cpp | zoujiaqing/ladder | a4cee94d8032ef52bc1f04e386fa9150e11c7349 | [
"BSD-3-Clause"
] | 4 | 2021-11-25T06:36:47.000Z | 2022-02-19T15:13:41.000Z | ladder/src/ThreadPool.cpp | zoujiaqing/ladder | a4cee94d8032ef52bc1f04e386fa9150e11c7349 | [
"BSD-3-Clause"
] | 1 | 2022-01-24T02:38:54.000Z | 2022-01-24T02:38:54.000Z | #include <ThreadPool.h>
namespace ladder {
ThreadPool::ThreadPool(size_t capacity) : capacity_(capacity), stopped_(false) {
Init();
}
void ThreadPool::Init() {
for (size_t i = 0; i < capacity_; ++i)
threads_.emplace_back(std::thread([this]() {
Callback cur_task;
while (1) {
{
st... | 22.34 | 80 | 0.550582 | zoujiaqing |
6517bf8bbff557e14fb5dd8d4be8ee169f253a62 | 693 | cpp | C++ | lib/test/TempPrivKeyFile.cpp | apastor/ads-chain-cpp-library | 323d9c731f14031532dc072703d24e237d0a252e | [
"Apache-2.0"
] | 2 | 2020-05-15T11:45:13.000Z | 2020-05-20T17:26:43.000Z | lib/test/TempPrivKeyFile.cpp | apastor/ads-chain-cpp-library | 323d9c731f14031532dc072703d24e237d0a252e | [
"Apache-2.0"
] | null | null | null | lib/test/TempPrivKeyFile.cpp | apastor/ads-chain-cpp-library | 323d9c731f14031532dc072703d24e237d0a252e | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include "TempPrivKeyFile.h"
TempPrivKeyFile::TempPrivKeyFile() :
fileName(std::tmpnam(nullptr)),
file(fileName, "w") {
file << "-----BEGIN EC PARAMETERS-----" << '\n';
file << "BggqhkjOPQMBBw==" << '\n';
file << "-----END EC PARAMETERS-----" << '\n';
file << "-----BEGIN EC PRIVATE K... | 38.5 | 85 | 0.621934 | apastor |
6517fae1186d2e9304125391f8927742df70f652 | 1,449 | hpp | C++ | include/physicsengine/Constraints.hpp | ThePythonator/Rocket-Manager | 61489a9df2ac25b96ac337afd5cb58375533c748 | [
"MIT"
] | 2 | 2022-03-17T18:11:07.000Z | 2022-03-17T19:55:35.000Z | include/physicsengine/Constraints.hpp | ThePythonator/Rocket-Manager | 61489a9df2ac25b96ac337afd5cb58375533c748 | [
"MIT"
] | null | null | null | include/physicsengine/Constraints.hpp | ThePythonator/Rocket-Manager | 61489a9df2ac25b96ac337afd5cb58375533c748 | [
"MIT"
] | null | null | null | #pragma once
#include "PhysicsEngineMath.hpp"
#include "RigidBody.hpp"
namespace PhysicsEngine {
extern const phyflt MINIMUM_NATURAL_LENGTH;
// These constraints are treated as having no mass or volume, and cannot collide with any objects
class Constraint {
public:
Constraint();
Constraint(RigidBody* _a, Rig... | 28.98 | 198 | 0.73637 | ThePythonator |
fb94466310e8a61e19b0ec8e751a02986cd9c224 | 5,502 | cpp | C++ | pin-3.22-98547-g7a303a835-gcc-linux/source/tools/Memory/malloc_stress.cpp | ArthasZhang007/15418FinalProject | a71f698ea48ebbc446111734c198f16a55633669 | [
"MIT"
] | null | null | null | pin-3.22-98547-g7a303a835-gcc-linux/source/tools/Memory/malloc_stress.cpp | ArthasZhang007/15418FinalProject | a71f698ea48ebbc446111734c198f16a55633669 | [
"MIT"
] | null | null | null | pin-3.22-98547-g7a303a835-gcc-linux/source/tools/Memory/malloc_stress.cpp | ArthasZhang007/15418FinalProject | a71f698ea48ebbc446111734c198f16a55633669 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2016-2021 Intel Corporation.
* SPDX-License-Identifier: MIT
*/
#include <assert.h>
#include <iostream>
#include <fstream>
#include "pin.H"
using std::cerr;
using std::cout;
using std::endl;
using std::flush;
using std::string;
/* ===================================================================... | 28.360825 | 120 | 0.497637 | ArthasZhang007 |
fb95759360e5851e7ef46ae60d415b7a70ba0431 | 3,631 | cpp | C++ | src/libs/blueprint/c/conduit_blueprint_mcarray_c.cpp | adrienbernede/conduit | 38379643d570941164b4fad76e269d2862f0e47b | [
"BSD-3-Clause"
] | 120 | 2015-12-09T00:58:22.000Z | 2022-03-25T00:14:39.000Z | src/libs/blueprint/c/conduit_blueprint_mcarray_c.cpp | adrienbernede/conduit | 38379643d570941164b4fad76e269d2862f0e47b | [
"BSD-3-Clause"
] | 808 | 2016-02-27T22:25:15.000Z | 2022-03-30T23:42:12.000Z | src/libs/blueprint/c/conduit_blueprint_mcarray_c.cpp | adrienbernede/conduit | 38379643d570941164b4fad76e269d2862f0e47b | [
"BSD-3-Clause"
] | 49 | 2016-02-12T17:19:16.000Z | 2022-02-01T14:36:21.000Z | // Copyright (c) Lawrence Livermore National Security, LLC and other Conduit
// Project developers. See top-level LICENSE AND COPYRIGHT files for dates and
// other details. No copyright assignment is required to contribute to Conduit.
//-----------------------------------------------------------------------------
///... | 35.252427 | 79 | 0.426604 | adrienbernede |
fb9a0d4f15e3a4d25f8e46ee19331384304c156a | 3,896 | cpp | C++ | programs/radialutils/radial-stat.cpp | nd-nuclear-theory/shell | 7458fbd10416f6e1550a3d669cd2a10fc9c49e0c | [
"MIT"
] | 5 | 2019-11-15T01:09:24.000Z | 2021-02-02T20:23:34.000Z | programs/radialutils/radial-stat.cpp | nd-nuclear-theory/shell | 7458fbd10416f6e1550a3d669cd2a10fc9c49e0c | [
"MIT"
] | 8 | 2019-06-03T19:53:54.000Z | 2021-06-14T00:40:04.000Z | programs/radialutils/radial-stat.cpp | nd-nuclear-theory/shell | 7458fbd10416f6e1550a3d669cd2a10fc9c49e0c | [
"MIT"
] | null | null | null | /**************************************************************************/
/**
@file radial-stat.cpp
produce annotated radial files
Syntax:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
radial-stat input_file output_file
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | 29.969231 | 102 | 0.588809 | nd-nuclear-theory |
fb9a6262fd49dcd5d10f6296719ea674e929d1e8 | 10,072 | cpp | C++ | src/main.cpp | shiinamiyuki/Accurate-Large-Scale-Ferrofluids | b39565ee94043b6ae19f14318af20f7489bc9312 | [
"MIT"
] | 12 | 2020-12-22T04:19:23.000Z | 2021-11-08T15:47:32.000Z | src/main.cpp | shiinamiyuki/Accurate-Large-Scale-Ferrofluids | b39565ee94043b6ae19f14318af20f7489bc9312 | [
"MIT"
] | null | null | null | src/main.cpp | shiinamiyuki/Accurate-Large-Scale-Ferrofluids | b39565ee94043b6ae19f14318af20f7489bc9312 | [
"MIT"
] | 4 | 2020-12-22T03:39:31.000Z | 2021-11-03T04:42:16.000Z | #include "reconstruction.h"
#include "simulation.h"
#include <Eigen/Core>
#include <atomic>
#include <chrono>
#include <igl/opengl/glfw/Viewer.h>
#include <igl/writeOBJ.h>
#include <iostream>
#include <random>
#include <thread>
#include <atomic>
#include <mutex>
#include <condition_variable>
#include <sstream>
double r... | 31.573668 | 104 | 0.524424 | shiinamiyuki |
fb9f6935cb45e29e4053d14c6c61786c6c01e5af | 5,363 | hpp | C++ | foedus_code/foedus-core/include/foedus/cxx11.hpp | sam1016yu/cicada-exp-sigmod2017 | 64e582370076b2923d37b279d1c32730babc15f8 | [
"Apache-2.0"
] | null | null | null | foedus_code/foedus-core/include/foedus/cxx11.hpp | sam1016yu/cicada-exp-sigmod2017 | 64e582370076b2923d37b279d1c32730babc15f8 | [
"Apache-2.0"
] | null | null | null | foedus_code/foedus-core/include/foedus/cxx11.hpp | sam1016yu/cicada-exp-sigmod2017 | 64e582370076b2923d37b279d1c32730babc15f8 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2014-2015, Hewlett-Packard Development Company, LP.
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later versi... | 38.582734 | 100 | 0.739511 | sam1016yu |
fb9fe42b73ba31654fc74d97fb8203b30e38e4cc | 11,529 | cpp | C++ | Arduino/dist_control.cpp | gonced8/SCDTR-Project | ec0a54039704b90665284cd4f1d0386df4b78452 | [
"MIT"
] | null | null | null | Arduino/dist_control.cpp | gonced8/SCDTR-Project | ec0a54039704b90665284cd4f1d0386df4b78452 | [
"MIT"
] | null | null | null | Arduino/dist_control.cpp | gonced8/SCDTR-Project | ec0a54039704b90665284cd4f1d0386df4b78452 | [
"MIT"
] | null | null | null | // Implementation of distributed control related functions
#include "dist_control.h"
/*-------Variable definition--------*/
// LDR calibration
const float m[3] = {-0.67, -0.72, -0.718}; // LDR calibration
float b[3] = {1.763, 1.763, 1.763}; // LDR calibration
float k[3] = {0.0, 0.0, 0.0}; // Gains
// Control related... | 23.528571 | 112 | 0.555556 | gonced8 |
fba8616942ba54639eaaaac9b1664c6e7d8dfc89 | 7,547 | cxx | C++ | Plugins/vnsInstallData.cxx | spacebel/MAJA | 3e5d20bc9c744c610e608cfcf1f4c5c738d4de9e | [
"Apache-2.0"
] | 57 | 2020-09-30T08:51:22.000Z | 2021-12-19T20:28:30.000Z | Plugins/vnsInstallData.cxx | spacebel/MAJA | 3e5d20bc9c744c610e608cfcf1f4c5c738d4de9e | [
"Apache-2.0"
] | 34 | 2020-09-29T21:27:22.000Z | 2022-02-03T09:56:45.000Z | Plugins/vnsInstallData.cxx | spacebel/MAJA | 3e5d20bc9c744c610e608cfcf1f4c5c738d4de9e | [
"Apache-2.0"
] | 14 | 2020-10-11T13:17:59.000Z | 2022-03-09T15:58:19.000Z | /*
* Copyright (C) 2020 Centre National d'Etudes Spatiales (CNES)
*
* 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... | 62.371901 | 175 | 0.327945 | spacebel |
fbaa7473bbad0cd599566900430a722f694c91f9 | 33,371 | cpp | C++ | nntrainer/layers/lstm.cpp | songgot/nntrainer | d977cbbd14eba9ee89b432be0ad6939056c3f256 | [
"Apache-2.0"
] | null | null | null | nntrainer/layers/lstm.cpp | songgot/nntrainer | d977cbbd14eba9ee89b432be0ad6939056c3f256 | [
"Apache-2.0"
] | null | null | null | nntrainer/layers/lstm.cpp | songgot/nntrainer | d977cbbd14eba9ee89b432be0ad6939056c3f256 | [
"Apache-2.0"
] | null | null | null | // SPDX-License-Identifier: Apache-2.0
/**
* Copyright (C) 2020 Jijoong Moon <jijoong.moon@samsung.com>
*
* @file lstm.cpp
* @date 17 March 2021
* @brief This is Long Short-Term Memory Layer Class of Neural Network
* @see https://github.com/nnstreamer/nntrainer
* @author Jijoong Moon <jijoong.moon@samsun... | 43.793963 | 80 | 0.697132 | songgot |
fbac3d7849c61be68e581c48d97056d275d0df6b | 217 | cpp | C++ | tests/operations/actions/TerminateIf.cpp | amlalejini/signalgp-lite | f4ebe7580dc3610fca0a51d1ad743b0dbc21b6e9 | [
"MIT"
] | null | null | null | tests/operations/actions/TerminateIf.cpp | amlalejini/signalgp-lite | f4ebe7580dc3610fca0a51d1ad743b0dbc21b6e9 | [
"MIT"
] | null | null | null | tests/operations/actions/TerminateIf.cpp | amlalejini/signalgp-lite | f4ebe7580dc3610fca0a51d1ad743b0dbc21b6e9 | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN
#include "Catch/single_include/catch2/catch.hpp"
#include "sgpl/operations/actions/TerminateIf.hpp"
TEST_CASE("Test TerminateIf") {
// TODO flesh out stub test
sgpl::TerminateIf{};
}
| 18.083333 | 50 | 0.75576 | amlalejini |
fbadcddc50103e860edee4715de41e04b20e00f5 | 1,781 | cpp | C++ | uppdev/NewXmlRpc/main.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | 2 | 2016-04-07T07:54:26.000Z | 2020-04-14T12:37:34.000Z | uppdev/NewXmlRpc/main.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | null | null | null | uppdev/NewXmlRpc/main.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | null | null | null | #include "XmlRpc.h"
using namespace Upp;
void Compute(XmlRpcData& rpc)
{
int n1, n2;
String op;
rpc >> n1 >> op >> n2;
DUMP(n1);
DUMP(op);
DUMP(n2);
switch(*op) {
case '+':
rpc << n1 + n2;
break;
case '-':
rpc << n1 - n2;
break;
}
}
struct TestMap {
String a;
int b;
... | 14.023622 | 53 | 0.527793 | dreamsxin |
fbaf2bb60ba0a5f38d1e2169146fb2e3a553b36d | 1,782 | hpp | C++ | AdvancedOgreFramework/AdvancedOgreFramework.hpp | screwt/advancedogreframework | 751f9d8a56e844479b23e72ef47aca1dc77d1132 | [
"MIT"
] | null | null | null | AdvancedOgreFramework/AdvancedOgreFramework.hpp | screwt/advancedogreframework | 751f9d8a56e844479b23e72ef47aca1dc77d1132 | [
"MIT"
] | null | null | null | AdvancedOgreFramework/AdvancedOgreFramework.hpp | screwt/advancedogreframework | 751f9d8a56e844479b23e72ef47aca1dc77d1132 | [
"MIT"
] | null | null | null | //|||||||||||||||||||||||||||||||||||||||||||||||
#ifndef OGRE_FRAMEWORK_HPP
#define OGRE_FRAMEWORK_HPP
//|||||||||||||||||||||||||||||||||||||||||||||||
#include <OgreCamera.h>
#include <OgreEntity.h>
#include <OgreLogManager.h>
#include <OgreOverlay.h>
#include <OgreOverlayElement.h>
#include <OgreOverlayManager.h... | 26.597015 | 114 | 0.644781 | screwt |
fbaf935e17ce8e99a1c2b0dee504c543843a9db6 | 2,932 | cpp | C++ | Source/ScsCommon.cpp | JamesBoer/Scs | 44a10276c2dd34424205fe3eee1f17ab37fde984 | [
"MIT"
] | 4 | 2020-05-28T00:23:45.000Z | 2021-12-15T20:12:34.000Z | Source/ScsCommon.cpp | JamesBoer/Scs | 44a10276c2dd34424205fe3eee1f17ab37fde984 | [
"MIT"
] | null | null | null | Source/ScsCommon.cpp | JamesBoer/Scs | 44a10276c2dd34424205fe3eee1f17ab37fde984 | [
"MIT"
] | 3 | 2019-03-09T07:27:51.000Z | 2021-12-27T12:58:22.000Z | /*
The MIT License (MIT)
Copyright (c) 2018 James Boer
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, pu... | 25.059829 | 82 | 0.746248 | JamesBoer |
fbb198a28576cc25a305b0dcdc2cc4240a5f260f | 1,443 | hpp | C++ | gearoenix/core/gx-cr-allocator.hpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 35 | 2018-01-07T02:34:38.000Z | 2022-02-09T05:19:03.000Z | gearoenix/core/gx-cr-allocator.hpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 111 | 2017-09-20T09:12:36.000Z | 2020-12-27T12:52:03.000Z | gearoenix/core/gx-cr-allocator.hpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 5 | 2020-02-11T11:17:37.000Z | 2021-01-08T17:55:43.000Z | #ifndef GEAROENIX_CORE_ALLOCATOR_HPP
#define GEAROENIX_CORE_ALLOCATOR_HPP
#include "gx-cr-static.hpp"
#include <map>
#include <memory>
#include <optional>
namespace gearoenix::core {
class Allocator final {
/// size, offset (within itself)
typedef std::pair<std::size_t, std::size_t> SizeOffset;
/// allocat... | 35.195122 | 134 | 0.723493 | Hossein-Noroozpour |
fbb3e0531bddc5c80fa3b93449c86a86b2b5a9ec | 1,514 | cpp | C++ | CodeForces/RoadMap_A2OJ/B_Airport.cpp | ItsJavito/CP-Problems | 0b30bb80a47824ab0590d683b8b5e6f715bbec84 | [
"MIT"
] | null | null | null | CodeForces/RoadMap_A2OJ/B_Airport.cpp | ItsJavito/CP-Problems | 0b30bb80a47824ab0590d683b8b5e6f715bbec84 | [
"MIT"
] | null | null | null | CodeForces/RoadMap_A2OJ/B_Airport.cpp | ItsJavito/CP-Problems | 0b30bb80a47824ab0590d683b8b5e6f715bbec84 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define gc getchar_unlocked
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL)
#define endl "\n"
#define ll long long
#define PI 3.1415926535897932384626
#define deb(x) cout << #x << " = " << x << endl;
#define deb2(x, y) cout <... | 26.561404 | 80 | 0.546235 | ItsJavito |
fbb431665877dcbd9e508b13467a954b06a02f0c | 3,699 | cpp | C++ | csacademy/32/F.cpp | metaflow/contests | 5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2 | [
"MIT"
] | 1 | 2019-05-12T23:41:00.000Z | 2019-05-12T23:41:00.000Z | csacademy/32/F.cpp | metaflow/contests | 5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2 | [
"MIT"
] | null | null | null | csacademy/32/F.cpp | metaflow/contests | 5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2 | [
"MIT"
] | null | null | null | #if defined(LOCAL)
// #define RANDOM_TEST
#define PROBLEM_NAME "F"
const double _max_double_error = 1e-9;
#include "testutils.h"
#endif
#include <bits/stdc++.h>
using namespace std;
using vi = vector<int>; using vvi = vector<vi>;
using ii = pair<int,int>; using vii = vector<ii>;
using l = long long; using vl = vector... | 19.468421 | 73 | 0.506623 | metaflow |
fbbbe6b181130b377631fa03f046e862bc5e3644 | 1,299 | cpp | C++ | Sources/World/Systems/ScriptSystem.cpp | carloshgsilva/VoxelEngine | 5ba308d3573805437124f32d407306776c1d66d6 | [
"MIT"
] | 1 | 2022-01-20T15:53:31.000Z | 2022-01-20T15:53:31.000Z | Sources/World/Systems/ScriptSystem.cpp | carloshgsilva/VoxelEngine | 5ba308d3573805437124f32d407306776c1d66d6 | [
"MIT"
] | null | null | null | Sources/World/Systems/ScriptSystem.cpp | carloshgsilva/VoxelEngine | 5ba308d3573805437124f32d407306776c1d66d6 | [
"MIT"
] | null | null | null | #include "ScriptSystem.h"
#include "World/Components.h"
#include "Script/ScriptLib_Core.h"
#include "Mod/ModLoader.h"
void ScriptSystem::OnScriptUpdated(entt::registry& r, entt::entity e) {
auto& scriptAsset = r.get<Script>(e).Asset;
if (!scriptAsset.IsValid()) {
return;
}
std::string scriptPath = "Mods/";
s... | 23.196429 | 76 | 0.692071 | carloshgsilva |
fbbec304e47f83bb92011559ada8928752cb5863 | 1,910 | cpp | C++ | src/ripple/basics/impl/UptimeClock.cpp | yinchengtsinghua/RippleCPPChinese | a32a38a374547bdc5eb0fddcd657f45048aaad6a | [
"BSL-1.0"
] | 5 | 2019-01-23T04:36:03.000Z | 2020-02-04T07:10:39.000Z | src/ripple/basics/impl/UptimeClock.cpp | yinchengtsinghua/RippleCPPChinese | a32a38a374547bdc5eb0fddcd657f45048aaad6a | [
"BSL-1.0"
] | null | null | null | src/ripple/basics/impl/UptimeClock.cpp | yinchengtsinghua/RippleCPPChinese | a32a38a374547bdc5eb0fddcd657f45048aaad6a | [
"BSL-1.0"
] | 2 | 2019-05-14T07:26:59.000Z | 2020-06-15T07:25:01.000Z |
//ๆญคๆบ็ ่ขซๆธ
ๅๅญฆ็ฅๅฐนๆๅคง้ญ็ไธไธ็ฟป่ฏๅๆๅนถไฟฎๆน
//ๅฐนๆQQ77025077
//ๅฐนๆๅพฎไฟก18510341407
//ๅฐนๆๆๅจQQ็พค721929980
//ๅฐนๆ้ฎ็ฎฑ yinc13@mails.tsinghua.edu.cn
//ๅฐนๆๆฏไธไบๆธ
ๅๅคงๅญฆ,ๅพฎ่ฝฏๅบๅ้พ้ขๅๅ
จ็ๆๆไปทๅผไธๅฎถ
//https://mvp.microsoft.com/zh-cn/PublicProfile/4033620
//โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
/*
... | 23.012048 | 114 | 0.513089 | yinchengtsinghua |