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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8c70c08d30aff00462e2d8455b0c8417e7ad4fd2 | 1,204 | hpp | C++ | include/rt1w/integrator.hpp | guerarda/rt1w | 2fa13326e0a745214fb1a9fdc49a345c1407b6f3 | [
"MIT"
] | null | null | null | include/rt1w/integrator.hpp | guerarda/rt1w | 2fa13326e0a745214fb1a9fdc49a345c1407b6f3 | [
"MIT"
] | null | null | null | include/rt1w/integrator.hpp | guerarda/rt1w | 2fa13326e0a745214fb1a9fdc49a345c1407b6f3 | [
"MIT"
] | null | null | null | #pragma once
#include "rt1w/geometry.hpp"
#include "rt1w/spectrum.hpp"
#include "rt1w/sptr.hpp"
#include "rt1w/task.hpp"
#include <string>
struct Interaction;
struct Ray;
struct Sampler;
struct Scene;
Spectrum UniformSampleOneLight(const Interaction &isect,
const sptr<Scene> &scene,
... | 30.871795 | 77 | 0.532392 | guerarda |
8c70ed625e9b363370c6115a733c78d4243393d5 | 5,925 | cpp | C++ | src/HAL/gpio.cpp | QIU1995NONAME/Q20161106_Project0 | f321c52496996e94bc8bd52805721e922da4151c | [
"MIT"
] | 4 | 2016-11-11T04:47:05.000Z | 2019-01-23T14:14:00.000Z | src/HAL/gpio.cpp | QIU1995NONAME/Q20161106_Project0 | f321c52496996e94bc8bd52805721e922da4151c | [
"MIT"
] | null | null | null | src/HAL/gpio.cpp | QIU1995NONAME/Q20161106_Project0 | f321c52496996e94bc8bd52805721e922da4151c | [
"MIT"
] | null | null | null | #include "gpio.h"
namespace QIU {
namespace PJ0 {
// 目前已经被初始化的GPIO口
// 12 8 4 0
// GPIO_A 0001-1110 1110-0001
// GPIO_B 1111-0101 1110-0000
// GPIO_C 0000-0000 1111-1111
// GPIO_D 1111-1111 1111-0011
// GPIO_E 1111-1111 1001-1111
// GPIO_F 1111-0000 0011-1111
// GPIO_G 0111-0100 0011-1111
//
GPIO_Ini... | 28.349282 | 71 | 0.741941 | QIU1995NONAME |
8c77496126f518e77faa8e0bdc5bdb90393f9d1e | 545 | cpp | C++ | uri-online-judge/1457/main.cpp | olegon/online-judges | 4ec27c8940ae492ce71aec0cc9ed944b094bce55 | [
"MIT"
] | 12 | 2017-11-30T11:10:45.000Z | 2022-01-26T23:49:19.000Z | uri-online-judge/1457/main.cpp | olegon/online-judges | 4ec27c8940ae492ce71aec0cc9ed944b094bce55 | [
"MIT"
] | null | null | null | uri-online-judge/1457/main.cpp | olegon/online-judges | 4ec27c8940ae492ce71aec0cc9ed944b094bce55 | [
"MIT"
] | 4 | 2017-11-25T03:13:32.000Z | 2019-08-16T08:08:10.000Z | /*
Oráculo de Alexandria
https://www.urionlinejudge.com.br/judge/pt/problems/view/1457
*/
#include <cstdio>
using namespace std;
typedef unsigned long long int uint64;
uint64 k_fat(int N, int K);
int main(void) {
int T;
scanf("%d\n", &T);
while (T-- > 0) {
int N, K = 0;
char C;
... | 14.72973 | 61 | 0.522936 | olegon |
8c79eddf42d2b47d20743277e8f32b5375aa0671 | 35,329 | cpp | C++ | source/main.cpp | LiquidFenrir/MinesweeperFPS | 63f52b9c0e2ee6c9e9d6a489535fd2411df17637 | [
"MIT"
] | 8 | 2020-08-25T19:30:41.000Z | 2021-12-10T20:11:28.000Z | source/main.cpp | LiquidFenrir/MinesweeeperFPS | 63f52b9c0e2ee6c9e9d6a489535fd2411df17637 | [
"MIT"
] | 1 | 2020-08-28T14:52:51.000Z | 2020-08-29T12:28:33.000Z | source/main.cpp | LiquidFenrir/MinesweeeperFPS | 63f52b9c0e2ee6c9e9d6a489535fd2411df17637 | [
"MIT"
] | 2 | 2020-08-26T18:07:28.000Z | 2021-12-10T20:11:24.000Z | #define IMGUI_DISABLE_OBSOLETE_FUNCTIONS
#ifdef __SWITCH__
#include <switch.h>
#endif
#include <enet/enet.h>
#include <glm/gtc/matrix_transform.hpp>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <memory>
#include <tuple>
#include <array>
#include <algorithm>
extern "C" {
#include <sys/stat.h>
... | 37.664179 | 190 | 0.538651 | LiquidFenrir |
8c7a128f7d22b05646abc7b8cd63a65e7e15b2d8 | 1,403 | hpp | C++ | include/wav.hpp | hackner-security/swd | 52376221afbe1968cf269ab5d08d18ffad41fba1 | [
"MIT"
] | 4 | 2020-09-26T12:35:28.000Z | 2021-06-13T12:22:03.000Z | include/wav.hpp | hackner-security/swd | 52376221afbe1968cf269ab5d08d18ffad41fba1 | [
"MIT"
] | null | null | null | include/wav.hpp | hackner-security/swd | 52376221afbe1968cf269ab5d08d18ffad41fba1 | [
"MIT"
] | 1 | 2020-10-27T12:11:46.000Z | 2020-10-27T12:11:46.000Z | // Copyright 2020 Barger M., Knoll M., Kofler L.
#ifndef INCLUDE_WAV_HPP_
#define INCLUDE_WAV_HPP_
#include <string>
#include <iostream>
#include <vector>
#include <fstream>
#include <iterator>
#include "log.hpp"
// WAV Header
#define WAV_HEADER_SIZE 44
struct WAV_HEADER {
// RIFF Header
char riff_magic_num[4];... | 18.460526 | 52 | 0.71846 | hackner-security |
8c7e18ec40572d542a476ed7a78fb3aeec471826 | 1,862 | cpp | C++ | CSES/RangeQueries/forest_queries.cpp | PranavReddyP16/DSA-Templates | cb68b1ced5fd4990a413ce88cdb741fdcaa6e89b | [
"MIT"
] | null | null | null | CSES/RangeQueries/forest_queries.cpp | PranavReddyP16/DSA-Templates | cb68b1ced5fd4990a413ce88cdb741fdcaa6e89b | [
"MIT"
] | null | null | null | CSES/RangeQueries/forest_queries.cpp | PranavReddyP16/DSA-Templates | cb68b1ced5fd4990a413ce88cdb741fdcaa6e89b | [
"MIT"
] | null | null | null | #include "bits/stdc++.h"
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
using namespace std::chrono;
#define ll long long
#define ld long double
#define sz(c) ((ll)c.size())
#define ordered_set tree<int, null_type,less<int>, rb_tree_tag,t... | 21.905882 | 97 | 0.489259 | PranavReddyP16 |
8c853586a6deb2cf6b298b53ca4c42d13471719f | 492 | cpp | C++ | coding_blocks/source/blocks_example.cpp | koobonil/CodingStudy | 5a727bbcf30f30e04075ba9f86cbb9b0463a6f96 | [
"MIT"
] | 2 | 2018-03-05T03:08:40.000Z | 2020-09-13T21:57:05.000Z | coding_blocks/source/blocks_example.cpp | koobonil/CodingStudy | 5a727bbcf30f30e04075ba9f86cbb9b0463a6f96 | [
"MIT"
] | null | null | null | coding_blocks/source/blocks_example.cpp | koobonil/CodingStudy | 5a727bbcf30f30e04075ba9f86cbb9b0463a6f96 | [
"MIT"
] | null | null | null | #include <boss.hpp>
#include "blocks_example.hpp"
#include <resource.hpp>
////////////////////////////////////////////////////////////////////////////////
#define LEVEL_NUMBER LEVEL_USER
////////////////////////////////////////////////////////////////////////////////
#define STEP_NUMBER 0
MISSION_DECLARE("STEP_0")
... | 20.5 | 80 | 0.495935 | koobonil |
8c868b5c7c47d77d06ac8bfde89b5964fefb96b7 | 998 | cc | C++ | codeforces/1305/b.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 506 | 2018-08-22T10:30:38.000Z | 2022-03-31T10:01:49.000Z | codeforces/1305/b.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 13 | 2019-08-07T18:31:18.000Z | 2020-12-15T21:54:41.000Z | codeforces/1305/b.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 234 | 2018-08-06T17:11:41.000Z | 2022-03-26T10:56:42.000Z | // https://codeforces.com/contest/1305/problem/B
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ii = tuple<int, int>;
using vi = vector<ll>;
using vii = vector<ii>;
using vvi = vector<vi>;
using si = set<ll>;
int main() {
cin.tie(0), ios::sync_with_stdio(0);
string s;
cin >> s;
int ... | 23.209302 | 73 | 0.44489 | Ashindustry007 |
8c8b6e448037068d45c3c82817fdb283584b6487 | 1,703 | cpp | C++ | src/States/CharacterCreatorState.cpp | Miguel-EpicJS/state-rpg-tutorial | c909fe7ffee2cad4d3aac88afef9c5dc21b965ce | [
"MIT"
] | null | null | null | src/States/CharacterCreatorState.cpp | Miguel-EpicJS/state-rpg-tutorial | c909fe7ffee2cad4d3aac88afef9c5dc21b965ce | [
"MIT"
] | null | null | null | src/States/CharacterCreatorState.cpp | Miguel-EpicJS/state-rpg-tutorial | c909fe7ffee2cad4d3aac88afef9c5dc21b965ce | [
"MIT"
] | null | null | null | #include "../../includes/CharacterCreatorState.h"
CharacterCreatorState::CharacterCreatorState(std::vector<Character *> *characterList, unsigned &activeCharacter, std::stack<State *> *states) : activeCharacter(activeCharacter), State(), maxCharacter(5)
{
this->characterList = characterList;
this->states = stat... | 24.328571 | 202 | 0.574868 | Miguel-EpicJS |
8c8c6c8c4c976dd83dd54907346ddc4fb781091d | 318 | hpp | C++ | include/graphics/ITexture.hpp | icebreakersentertainment/ice_engine | 52a8313bc266c053366bdf554b5dc27a54ddcb25 | [
"MIT"
] | null | null | null | include/graphics/ITexture.hpp | icebreakersentertainment/ice_engine | 52a8313bc266c053366bdf554b5dc27a54ddcb25 | [
"MIT"
] | null | null | null | include/graphics/ITexture.hpp | icebreakersentertainment/ice_engine | 52a8313bc266c053366bdf554b5dc27a54ddcb25 | [
"MIT"
] | 1 | 2019-06-11T03:41:48.000Z | 2019-06-11T03:41:48.000Z | #ifndef ITEXTURE_H_
#define ITEXTURE_H_
#include <string>
#include "graphics/IImage.hpp"
namespace ice_engine
{
namespace graphics
{
class ITexture
{
public:
virtual ~ITexture() = default;
virtual const std::string& name() const = 0;
virtual const IImage* image() const = 0;
};
}
}
#endif /* ITEXTURE_H_ */
| 12.230769 | 45 | 0.704403 | icebreakersentertainment |
8c8d01d8f0d937d872aa1f5c7cdd8b2f0154c847 | 789 | cpp | C++ | bzoj/1002.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | 3 | 2017-09-17T09:12:50.000Z | 2018-04-06T01:18:17.000Z | bzoj/1002.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | bzoj/1002.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | #include <iostream>
#include <cstdio>
using namespace std;
struct data{
int a[101],len;
};
int n;
data mul(data a,int k){
for(int i = 1; i <= a.len; i++)
a.a[i] *= k;
for(int i = 1; i <= a.len; i++)
a.a[i+1] += a.a[i] / 10,
a.a[i] %= 10;
if(a.a[a.len+1]) a.len++;
return a;
}
data sub(data a, data b){
a.a[1... | 17.533333 | 37 | 0.452471 | swwind |
8c908a13dfbcf49908db3a036d4f761ad506ee19 | 17,731 | cc | C++ | src/core/cachedshardsimpl.cc | aching/Clusterlib | da81a653e9630b61214dbf7c37c75196300cf606 | [
"Apache-2.0"
] | 2 | 2015-03-31T17:57:46.000Z | 2019-06-18T17:29:46.000Z | src/core/cachedshardsimpl.cc | aching/Clusterlib | da81a653e9630b61214dbf7c37c75196300cf606 | [
"Apache-2.0"
] | null | null | null | src/core/cachedshardsimpl.cc | aching/Clusterlib | da81a653e9630b61214dbf7c37c75196300cf606 | [
"Apache-2.0"
] | 1 | 2020-04-24T05:23:25.000Z | 2020-04-24T05:23:25.000Z | /*
* Copyright (c) 2010 Yahoo! Inc. All rights reserved. Licensed under
* the Apache License, Version 2.0 (the "License"); you may not use
* this file except in compliance with the License. You may obtain a
* copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or a... | 29.067213 | 79 | 0.585246 | aching |
8c93edd04204894383ab9063c5318815054dd273 | 83,478 | cpp | C++ | src/toldialoghump.cpp | JoaoQPereira/motion_manager | de853e9341c482a0c13e0ba7b78429c019890507 | [
"MIT"
] | null | null | null | src/toldialoghump.cpp | JoaoQPereira/motion_manager | de853e9341c482a0c13e0ba7b78429c019890507 | [
"MIT"
] | null | null | null | src/toldialoghump.cpp | JoaoQPereira/motion_manager | de853e9341c482a0c13e0ba7b78429c019890507 | [
"MIT"
] | null | null | null | #include "../include/motion_manager/toldialoghump.hpp"
namespace motion_manager {
using namespace Qt;
TolDialogHUMP::TolDialogHUMP(QWidget *parent) :
QDialog(parent),
ui(new Ui::TolDialogHUMP)
{
ui->setupUi(this);
QObject::connect(ui->checkBox_approach, SIGNAL(stateChanged(int)), this, SLOT(checkAp... | 54.066062 | 315 | 0.628788 | JoaoQPereira |
8ca3e44fb3afb84b0ade55a42d2758e71f2d1b2e | 1,910 | cpp | C++ | Paperworks/src/Platform/OpenGL/OpenGLRendererAPI.cpp | codenobacon4u/paperworks | 0e96cd2fb6070a2387ddd36aaa327b04733234fa | [
"MIT"
] | 1 | 2019-08-15T18:58:54.000Z | 2019-08-15T18:58:54.000Z | Paperworks/src/Platform/OpenGL/OpenGLRendererAPI.cpp | codenobacon4u/paperworks | 0e96cd2fb6070a2387ddd36aaa327b04733234fa | [
"MIT"
] | null | null | null | Paperworks/src/Platform/OpenGL/OpenGLRendererAPI.cpp | codenobacon4u/paperworks | 0e96cd2fb6070a2387ddd36aaa327b04733234fa | [
"MIT"
] | null | null | null | #include "pwpch.h"
#include "OpenGLRendererAPI.h"
#include <glad/glad.h>
namespace Paperworks {
void OpenGLMessageCallback(
unsigned source,
unsigned type,
unsigned id,
unsigned severity,
int length,
const char* message,
const void* userParam)
{
switch (severity)
{
case GL_DEBUG_SEVERITY_HIGH: ... | 27.285714 | 126 | 0.742932 | codenobacon4u |
8ca44f36d5ebacb5cef0d8b9e03e7f90c366e5f5 | 763 | cpp | C++ | src/hexview/view/player.cpp | ejrh/hex | 3c063ce142e6b62fb0f92f71bc94280305b53322 | [
"MIT"
] | 7 | 2015-09-15T13:20:23.000Z | 2020-12-07T10:14:57.000Z | src/hexview/view/player.cpp | ejrh/hex | 3c063ce142e6b62fb0f92f71bc94280305b53322 | [
"MIT"
] | null | null | null | src/hexview/view/player.cpp | ejrh/hex | 3c063ce142e6b62fb0f92f71bc94280305b53322 | [
"MIT"
] | 1 | 2018-09-07T00:54:35.000Z | 2018-09-07T00:54:35.000Z | #include "common.h"
#include "hexview/view/player.h"
namespace hex {
Player::Player(int id, const std::string& name): id(id), name(name) {
}
void Player::grant_view(Faction::pointer faction, bool allow) {
if (allow)
faction_view.insert(faction->id);
else
faction_view.erase(faction->id);
}
... | 22.441176 | 70 | 0.686763 | ejrh |
8ca50759f3edb895b34ce913275ee93732491906 | 8,473 | cpp | C++ | Softrast/src/SoftwareRasterizer/texture_load.cpp | RickvanMiltenburg/SoftRast | e14b74804c052bb448058808cbb6dd06616ba585 | [
"MIT"
] | null | null | null | Softrast/src/SoftwareRasterizer/texture_load.cpp | RickvanMiltenburg/SoftRast | e14b74804c052bb448058808cbb6dd06616ba585 | [
"MIT"
] | null | null | null | Softrast/src/SoftwareRasterizer/texture_load.cpp | RickvanMiltenburg/SoftRast | e14b74804c052bb448058808cbb6dd06616ba585 | [
"MIT"
] | null | null | null | /*
SoftRast software rasterizer, by Rick van Miltenburg
Software rasterizer created for fun and educational purposes.
---
Copyright (c) 2015 Rick van Miltenburg
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to ... | 36.83913 | 461 | 0.571698 | RickvanMiltenburg |
8cb6c29e8ae2ff198dabd14817f916210c9ad420 | 554 | cpp | C++ | Sid's Levels/Level - 2/Arrays/MissingNumber.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 14 | 2021-08-22T18:21:14.000Z | 2022-03-08T12:04:23.000Z | Sid's Levels/Level - 2/Arrays/MissingNumber.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 1 | 2021-10-17T18:47:17.000Z | 2021-10-17T18:47:17.000Z | Sid's Levels/Level - 2/Arrays/MissingNumber.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 5 | 2021-09-01T08:21:12.000Z | 2022-03-09T12:13:39.000Z | class Solution {
public:
int missingNumber(vector<int>& nums) {
//OM GAN GANAPATHAYE NAMO NAMAH
//JAI SHRI RAM
//JAI BAJRANGBALI
//AMME NARAYANA, DEVI NARAYANA, LAKSHMI NARAYANA, BHADRE NARAYANA
int sumOfArray = 0;
int actualSum = 0;
for(int i = 0; i < nums... | 25.181818 | 73 | 0.490975 | Tiger-Team-01 |
8cc104b9be9c6db26cbebdc42f2c3a5075eeb286 | 521 | cpp | C++ | 02-Arrays/OddOccurrencesInArray.cpp | hNrChVz/codility-lessons-solution | b76e802c97ed95feb69a1038736db6d494418777 | [
"FSFAP"
] | null | null | null | 02-Arrays/OddOccurrencesInArray.cpp | hNrChVz/codility-lessons-solution | b76e802c97ed95feb69a1038736db6d494418777 | [
"FSFAP"
] | null | null | null | 02-Arrays/OddOccurrencesInArray.cpp | hNrChVz/codility-lessons-solution | b76e802c97ed95feb69a1038736db6d494418777 | [
"FSFAP"
] | null | null | null | #include <vector>
#include <algorithm>
using namespace std;
/*
My trick here, assuming that all the assumptions are always true, is that sort the array first:
std::sort (A.begin(), A.end());
After sorting, iterate until it finds an unmatched pair.
Time complexity: O(NlogN)
NOTE: (trust that) std:sort will use the... | 17.965517 | 95 | 0.644914 | hNrChVz |
8cc10b87b958a738ba1f182a930f278bfa21147d | 1,487 | cc | C++ | navicat_patcher/KeystoneAssembler.cc | cntangt/navicat_keygen_tools | 1b0d73fb602b8029bbe0cdfe2b8793832d296147 | [
"Linux-OpenIB"
] | 1 | 2021-05-06T09:36:08.000Z | 2021-05-06T09:36:08.000Z | navicat_patcher/KeystoneAssembler.cc | cntangt/navicat_keygen_tools | 1b0d73fb602b8029bbe0cdfe2b8793832d296147 | [
"Linux-OpenIB"
] | null | null | null | navicat_patcher/KeystoneAssembler.cc | cntangt/navicat_keygen_tools | 1b0d73fb602b8029bbe0cdfe2b8793832d296147 | [
"Linux-OpenIB"
] | null | null | null | #include "KeystoneAssembler.h"
namespace nkg {
KeystoneAssembler::KeystoneAssembler(const KeystoneEngine& Engine) noexcept :
m_Engine(Engine) {}
[[nodiscard]]
std::vector<uint8_t> KeystoneAssembler::GenerateMachineCode(std::string_view AssemblyCode, uint64_t Address) const {
ARL::Resource... | 36.268293 | 136 | 0.652993 | cntangt |
8cc244b5c24a95fe7cb08001f05e85bbc5db8240 | 1,119 | cpp | C++ | UVa/696.cpp | aege-projects/competitive-programming | 3bd83367b6cfbdb7587045895762bf5160801be9 | [
"MIT"
] | null | null | null | UVa/696.cpp | aege-projects/competitive-programming | 3bd83367b6cfbdb7587045895762bf5160801be9 | [
"MIT"
] | null | null | null | UVa/696.cpp | aege-projects/competitive-programming | 3bd83367b6cfbdb7587045895762bf5160801be9 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
int k1[500][500], k2[500][500];
for (int i = 0; i < 500; i++) {
for (int j = 0; j < 500; j++) {
k1[i][j] = 0;
k2[i][j] = 1;
}
}
for (int i = 0; i < 500; i++) {
for (int j = (i%2 == 0 ? 0 : 1); j < 500; j += 2) {
k1[i][j] = 1;
k2[i][j] = ... | 18.048387 | 119 | 0.37891 | aege-projects |
8cc42ecf48be716d641944445851cda959d556c1 | 4,806 | cpp | C++ | unistatscore/analyser.cpp | goldim/unistats | e8dd54e46f84422d868c942367f0103949791ede | [
"MIT"
] | null | null | null | unistatscore/analyser.cpp | goldim/unistats | e8dd54e46f84422d868c942367f0103949791ede | [
"MIT"
] | null | null | null | unistatscore/analyser.cpp | goldim/unistats | e8dd54e46f84422d868c942367f0103949791ede | [
"MIT"
] | null | null | null | #include "analyser.h"
#include <array>
namespace stats {
using std::string;
Analyser::Analyser()
{
}
void Analyser::addSample(const Sample &sample)
{
string sampleStr = "Выборка: ";
string homogeneity;
if (sample.getVariation() < 17)
{
homogeneity = "абсолютно однородная";
}
else i... | 27.152542 | 126 | 0.477528 | goldim |
8cc43f5e95370fe6e456795979436ab96c9e99f8 | 21,847 | cpp | C++ | Engine/ModuleScene.cpp | solidajenjo/CyberPimpEngine | da4fc5d22bc7c52a45794ea73e2bac903d893178 | [
"MIT"
] | null | null | null | Engine/ModuleScene.cpp | solidajenjo/CyberPimpEngine | da4fc5d22bc7c52a45794ea73e2bac903d893178 | [
"MIT"
] | null | null | null | Engine/ModuleScene.cpp | solidajenjo/CyberPimpEngine | da4fc5d22bc7c52a45794ea73e2bac903d893178 | [
"MIT"
] | null | null | null | #include "GameObject.h"
#include "ModuleScene.h"
#include "ModuleFrameBuffer.h"
#include "ModuleRender.h"
#include "ModuleTextures.h"
#include "ModuleEditorCamera.h"
#include "ModuleSpacePartitioning.h"
#include "ModuleFileSystem.h"
#include "ModuleEditor.h"
#include "SubModuleEditorGameViewPort.h"
#include "SubModuleE... | 30.092287 | 170 | 0.692589 | solidajenjo |
bc45567f3986675ca83a8974de72fa177d32cf91 | 2,516 | cpp | C++ | readDataAndCheckForMagic.cpp | ohio813/shutdownonlan | 80df7789368cfcfd20a65b67585bca3264a7064a | [
"BSD-3-Clause"
] | 1 | 2015-06-26T04:18:29.000Z | 2015-06-26T04:18:29.000Z | readDataAndCheckForMagic.cpp | ohio813/shutdownonlan | 80df7789368cfcfd20a65b67585bca3264a7064a | [
"BSD-3-Clause"
] | null | null | null | readDataAndCheckForMagic.cpp | ohio813/shutdownonlan | 80df7789368cfcfd20a65b67585bca3264a7064a | [
"BSD-3-Clause"
] | null | null | null | #include "stdafx.h"
#include "getMACAddresses.h"
#include "globals.h"
#include "log.h"
DWORD readDataAndCheckForMagic(SOCKET oSocket) {
BYTE abBuffer[4096];
int iBytesReceived = recv(oSocket, (char*)abBuffer, sizeof(abBuffer), 0);
if (iBytesReceived == SOCKET_ERROR) {
DWORD dwErrorCode = WSAGetLas... | 38.121212 | 112 | 0.57035 | ohio813 |
bc596efd29d8c8952d674e4b4ba9b8dfbe40fa85 | 321 | cpp | C++ | Nowcoder/NC21308.cpp | anine09/ACM | e9e8f09157e4ec91c1752a4b4724e28dfeaae4e6 | [
"MIT"
] | null | null | null | Nowcoder/NC21308.cpp | anine09/ACM | e9e8f09157e4ec91c1752a4b4724e28dfeaae4e6 | [
"MIT"
] | null | null | null | Nowcoder/NC21308.cpp | anine09/ACM | e9e8f09157e4ec91c1752a4b4724e28dfeaae4e6 | [
"MIT"
] | null | null | null | #include<iostream>
#include<algorithm>
using namespace std;
int num[100000];
int n;
int main(){
cin>>n;
for (int i = 0; i < n; i++)
{
cin >> num[i];
}
stable_sort(num, num + n);
for (int i = 0; i < n - 1;i++){
cout << num[i] << " ";
}
cout << num[n-1];
return 0;
... | 13.956522 | 35 | 0.457944 | anine09 |
bc5f8e81ee3b5ff6fc609ba640976ca682a98d52 | 353 | cpp | C++ | src/gameworld/gameworld/global/activity/impl/activityguildquestion.cpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | 3 | 2021-12-16T13:57:28.000Z | 2022-03-26T07:50:08.000Z | src/gameworld/gameworld/global/activity/impl/activityguildquestion.cpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | null | null | null | src/gameworld/gameworld/global/activity/impl/activityguildquestion.cpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | 1 | 2022-03-26T07:50:11.000Z | 2022-03-26T07:50:11.000Z | #include "activityguildquestion.hpp"
#include "scene/activityshadow/activityshadow.hpp"
#include "world.h"
#include "config/sharedconfig/sharedconfig.h"
ActivityGuildQuestion::ActivityGuildQuestion(ActivityManager *activity_manager)
: Activity(activity_manager, ACTIVITY_TYPE_GUILD_QUESTION)
{
}
ActivityGuildQuestio... | 22.0625 | 79 | 0.827195 | mage-game |
bc627c86509985097bb2ce5f74a5833d4bb66931 | 619 | cpp | C++ | Fuji/Source/Drivers/PS2/MFDebug_PS2.cpp | TurkeyMan/fuji | afd6a26c710ce23965b088ad158fe916d6a1a091 | [
"BSD-2-Clause"
] | 35 | 2015-01-19T22:07:48.000Z | 2022-02-21T22:17:53.000Z | Fuji/Source/Drivers/PS2/MFDebug_PS2.cpp | TurkeyMan/fuji | afd6a26c710ce23965b088ad158fe916d6a1a091 | [
"BSD-2-Clause"
] | 1 | 2022-02-23T09:34:15.000Z | 2022-02-23T09:34:15.000Z | Fuji/Source/Drivers/PS2/MFDebug_PS2.cpp | TurkeyMan/fuji | afd6a26c710ce23965b088ad158fe916d6a1a091 | [
"BSD-2-Clause"
] | 4 | 2015-05-11T03:31:35.000Z | 2018-09-27T04:55:57.000Z | #include "Fuji_Internal.h"
#if MF_DEBUG == MF_DRIVER_PS2
#include "MFInput_Internal.h"
#include <stdio.h>
MF_API void MFDebug_Message(const char *pMessage)
{
printf("%s\n", pMessage);
}
MF_API void MFDebug_DebugAssert(const char *pReason, const char *pMessage, const char *pFile, int line)
{
MFDebu... | 21.344828 | 104 | 0.693053 | TurkeyMan |
bc631af571d4d59ee18692a1e9a4491217976c7e | 674 | cc | C++ | POJ/2752_Seek the Name, Seek the Fame/2752.cc | pdszhh/ACM | 956b3d03a5d3f070ef24c940b7459f5cccb11d6c | [
"MIT"
] | 1 | 2019-05-05T03:51:20.000Z | 2019-05-05T03:51:20.000Z | POJ/2752_Seek the Name, Seek the Fame/2752.cc | pdszhh/ACM | 956b3d03a5d3f070ef24c940b7459f5cccb11d6c | [
"MIT"
] | null | null | null | POJ/2752_Seek the Name, Seek the Fame/2752.cc | pdszhh/ACM | 956b3d03a5d3f070ef24c940b7459f5cccb11d6c | [
"MIT"
] | null | null | null | #include <iostream>
#include <stack>
#include <cstdio>
#include <cstring>
using namespace std;
int len;
char S[400010];
int nextval[400010];
void get_nextval() {
for (int k = nextval[0] = -1, j = 0; j != len; ) {
if (k == -1 or S[j] == S[k])
nextval[++j] = ++k;
else
k = ne... | 18.722222 | 54 | 0.437685 | pdszhh |
bc65b5eaf8257f09f0912d4f0e058887d2081775 | 9,592 | hpp | C++ | include/public/coherence/lang/HeapAnalyzer.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-01T21:38:30.000Z | 2021-11-03T01:35:11.000Z | include/public/coherence/lang/HeapAnalyzer.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 1 | 2020-07-24T17:29:22.000Z | 2020-07-24T18:29:04.000Z | include/public/coherence/lang/HeapAnalyzer.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-10T18:40:58.000Z | 2022-02-18T01:23:40.000Z | /*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
#ifndef COH_HEAP_ANALYZER_HPP
#define COH_HEAP_ANALYZER_HPP
#include "coherence/lang/interface_spec.hpp"
#include "coherence/lang/Object.hpp"
... | 32.515254 | 90 | 0.541389 | chpatel3 |
bc69518352aa45fe18a7ff51e828967abd605efe | 3,554 | hpp | C++ | qi/async.hpp | arntanguy/libqi | 7f3e1394cb26126b26fa7ff54d2de1371a1c9f96 | [
"BSD-3-Clause"
] | 61 | 2015-01-08T08:05:28.000Z | 2022-01-07T16:47:47.000Z | qi/async.hpp | arntanguy/libqi | 7f3e1394cb26126b26fa7ff54d2de1371a1c9f96 | [
"BSD-3-Clause"
] | 30 | 2015-04-06T21:41:18.000Z | 2021-08-18T13:24:51.000Z | qi/async.hpp | arntanguy/libqi | 7f3e1394cb26126b26fa7ff54d2de1371a1c9f96 | [
"BSD-3-Clause"
] | 64 | 2015-02-23T20:01:11.000Z | 2022-03-14T13:31:20.000Z | #pragma once
/**
** Copyright (C) 2012-2016 Aldebaran Robotics
** See COPYING for the license
*/
#ifndef _QI_ASYNC_HPP_
#define _QI_ASYNC_HPP_
#include <qi/eventloop.hpp>
#include <qi/future.hpp>
#include <qi/strand.hpp>
namespace qi
{
// some required forward declaration
namespace detail
{
template <typename F>... | 34.504854 | 126 | 0.728756 | arntanguy |
bc6c6b0d6b0840dca12c91056363243de192adf1 | 6,251 | cpp | C++ | src/libs/qlib/qdmparams.cpp | 3dhater/Racer | d7fe4014b1efefe981528547649dc397da7fa780 | [
"Unlicense"
] | null | null | null | src/libs/qlib/qdmparams.cpp | 3dhater/Racer | d7fe4014b1efefe981528547649dc397da7fa780 | [
"Unlicense"
] | null | null | null | src/libs/qlib/qdmparams.cpp | 3dhater/Racer | d7fe4014b1efefe981528547649dc397da7fa780 | [
"Unlicense"
] | 1 | 2021-01-03T16:16:47.000Z | 2021-01-03T16:16:47.000Z | /*
* QDMParams - encapsulate DMparams type
* 08-09-98: Created!
* (C) MG/RVG
*/
#include <qlib/dmparams.h>
#include <qlib/debug.h>
DEBUG_ENABLE
#define DME(f,s) if((f)!=DM_SUCCESS)qerr(s)
QDMParams::QDMParams()
{
p=0;
#ifndef WIN32
DME(dmParamsCreate(&p),"QDMParams ctor; can't allocate DMparams");
#endif
}
... | 25.618852 | 79 | 0.468725 | 3dhater |
bc721205ba0641d2c9af5dceaf265c880c2463da | 2,530 | hpp | C++ | include/NumCpp/Functions/extract.hpp | purusharths/NumCpp | 269b0ff1341b06480c9679285cb6c6c6843df06b | [
"MIT"
] | 2 | 2018-07-11T04:37:24.000Z | 2018-07-11T04:37:26.000Z | include/NumCpp/Functions/extract.hpp | BADBADBADBOY/NumCpp | 269b0ff1341b06480c9679285cb6c6c6843df06b | [
"MIT"
] | null | null | null | include/NumCpp/Functions/extract.hpp | BADBADBADBOY/NumCpp | 269b0ff1341b06480c9679285cb6c6c6843df06b | [
"MIT"
] | null | null | null | /// @file
/// @author David Pilger <dpilger26@gmail.com>
/// [GitHub Repository](https://github.com/dpilger26/NumCpp)
///
/// License
/// Copyright 2018-2022 David Pilger
///
/// Permission is hereby granted, free of charge, to any person obtaining a copy of this
/// software and associated documentation files(the "Sof... | 37.761194 | 107 | 0.655731 | purusharths |
bc721fea6903073d3e9e5e021effb0bbcc970db6 | 119 | hpp | C++ | src/agl/engine/triangle_mesh/all.hpp | the-last-willy/abstractgl | d685bef25ac18773d3eea48ca52806c3a3485ddb | [
"MIT"
] | null | null | null | src/agl/engine/triangle_mesh/all.hpp | the-last-willy/abstractgl | d685bef25ac18773d3eea48ca52806c3a3485ddb | [
"MIT"
] | null | null | null | src/agl/engine/triangle_mesh/all.hpp | the-last-willy/abstractgl | d685bef25ac18773d3eea48ca52806c3a3485ddb | [
"MIT"
] | null | null | null | #pragma once
#include "geometry/all.hpp"
#include "mesh/all.hpp"
#include "proxy/all.hpp"
#include "topology/all.hpp"
| 17 | 27 | 0.731092 | the-last-willy |
bc7679c121909d7cd61b06933823a641f9ba1bff | 4,846 | cpp | C++ | src/pressure_solver/1_cg_solver.cpp | NumerischeSimulation/FinalProject | a6dbb991241c45c0d83a6861726e4159156bdbbd | [
"MIT"
] | null | null | null | src/pressure_solver/1_cg_solver.cpp | NumerischeSimulation/FinalProject | a6dbb991241c45c0d83a6861726e4159156bdbbd | [
"MIT"
] | 5 | 2022-01-26T19:27:45.000Z | 2022-02-09T11:41:32.000Z | src/pressure_solver/1_cg_solver.cpp | NumerischeSimulation/FinalProject | a6dbb991241c45c0d83a6861726e4159156bdbbd | [
"MIT"
] | 3 | 2022-01-25T15:28:01.000Z | 2022-02-08T10:50:30.000Z | #include "1_cg_solver.h"
CGSolver::CGSolver(std::shared_ptr<Discretization> discretization, double epsilon, int maximumNumberOfIterations, bool outflowBottom, bool outflowTop, bool outflowLeft, bool outflowRight) :
PressureSolver(discretization, epsilon, maximumNumberOfIterations, outflowBottom, outflowTop, outflowL... | 29.91358 | 189 | 0.563351 | NumerischeSimulation |
bc80bb30c906fb3ffaf42404e1274d7196671614 | 1,957 | cpp | C++ | SFML-RPG/Entity.cpp | Akshat69/SFML-RPG | 2ffb0fc5e94bd9f3460d9c06ffb485aa8afefe34 | [
"MIT"
] | null | null | null | SFML-RPG/Entity.cpp | Akshat69/SFML-RPG | 2ffb0fc5e94bd9f3460d9c06ffb485aa8afefe34 | [
"MIT"
] | 1 | 2021-09-17T16:37:18.000Z | 2021-09-17T16:37:18.000Z | SFML-RPG/Entity.cpp | Akshat69/SFML-RPG | 2ffb0fc5e94bd9f3460d9c06ffb485aa8afefe34 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Entity.h"
void Entity::initVariables()
{
this->movementSpeed = 100.0f;
this->movementComponent = NULL;
}
Entity::Entity(sf::RenderWindow* window)
{
this->window = window;
}
Entity::~Entity()
{
delete this->movementComponent;
delete this->animationComponent;
delete this->hitboxCom... | 22.755814 | 89 | 0.74093 | Akshat69 |
bc82e8bd8fc699130c980fa903473f6b72359e6f | 4,557 | cpp | C++ | apps/FontEditor/FontEditor.cpp | Koncord/YAPE | 9def79c493bc50b41a371c6e80174d47f795b8f1 | [
"Apache-2.0"
] | 3 | 2015-10-29T16:11:49.000Z | 2021-08-28T08:53:09.000Z | apps/FontEditor/FontEditor.cpp | Koncord/YAPE | 9def79c493bc50b41a371c6e80174d47f795b8f1 | [
"Apache-2.0"
] | 13 | 2015-10-29T05:39:16.000Z | 2017-06-11T19:10:07.000Z | apps/FontEditor/FontEditor.cpp | Koncord/YAPE | 9def79c493bc50b41a371c6e80174d47f795b8f1 | [
"Apache-2.0"
] | 1 | 2022-03-01T18:47:58.000Z | 2022-03-01T18:47:58.000Z | /*
*
* Copyright (c) 2015-2017 Stanislav Zhukov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | 26.494186 | 108 | 0.585034 | Koncord |
bc8531dbedcd573f5394e93c67135a97f62551a1 | 1,967 | cpp | C++ | src/IncludeDeps.cpp | Thraix/MakeGen | 61f9c3ee0dc15f784ac1f256d4ca0b0609d6b3ea | [
"MIT"
] | 1 | 2020-03-27T13:12:36.000Z | 2020-03-27T13:12:36.000Z | src/IncludeDeps.cpp | Thraix/MakeGen | 61f9c3ee0dc15f784ac1f256d4ca0b0609d6b3ea | [
"MIT"
] | null | null | null | src/IncludeDeps.cpp | Thraix/MakeGen | 61f9c3ee0dc15f784ac1f256d4ca0b0609d6b3ea | [
"MIT"
] | null | null | null | #include "IncludeDeps.h"
#include "Common.h"
std::set<std::string> IncludeDeps::printSet;
int IncludeDeps::printCounter = 0;
IncludeDeps::IncludeDeps(const std::string& filename, const std::string& dir, const std::set<HFile>& files, std::map<std::string, IncludeDeps*>& allDeps)
: IncludeDeps{filename, dir, false, ... | 30.261538 | 172 | 0.637519 | Thraix |
bc855f035d528966be7fbdb085b38b774585405a | 524 | hpp | C++ | header/actor-zeta/spawn.hpp | smart-cloud/actor-zeta | 9597d6c21843a5e24a7998d09ff041d2f948cc63 | [
"BSD-3-Clause"
] | 20 | 2016-01-07T07:37:52.000Z | 2019-06-02T12:04:25.000Z | header/actor-zeta/spawn.hpp | smart-cloud/actor-zeta | 9597d6c21843a5e24a7998d09ff041d2f948cc63 | [
"BSD-3-Clause"
] | 30 | 2017-03-10T14:47:46.000Z | 2019-05-09T19:23:25.000Z | header/actor-zeta/spawn.hpp | jinncrafters/actor-zeta | 9597d6c21843a5e24a7998d09ff041d2f948cc63 | [
"BSD-3-Clause"
] | 6 | 2017-03-10T14:06:01.000Z | 2018-08-13T18:19:37.000Z | #pragma once
#include "actor-zeta/base/forwards.hpp"
#include "actor-zeta/base/address.hpp"
namespace actor_zeta {
template<
class ChildrenSupervisor,
class... Args,
class = type_traits::enable_if_t<std::is_base_of<base::supervisor_abstract, ChildrenSupervisor>::value>>
auto spawn_su... | 30.823529 | 112 | 0.706107 | smart-cloud |
bc962d58a97d58a80450b038beea52cd497fcfe4 | 3,838 | cpp | C++ | DropWidget.cpp | Evgenii-Evgenevich/qt-the-interface | 0d12d110b09b5ff9c52adc7da70104b219220267 | [
"Apache-2.0"
] | null | null | null | DropWidget.cpp | Evgenii-Evgenevich/qt-the-interface | 0d12d110b09b5ff9c52adc7da70104b219220267 | [
"Apache-2.0"
] | null | null | null | DropWidget.cpp | Evgenii-Evgenevich/qt-the-interface | 0d12d110b09b5ff9c52adc7da70104b219220267 | [
"Apache-2.0"
] | null | null | null | #include "DropWidget.h"
#include "Element.h"
#include "HBoxLayout.h"
#include <QScrollBar>
#include <QDropEvent>
#include <QMimeData>
#include <QScrollArea>
#include <QDrag>
#include <QPainter>
DropWidget::DropWidget()
: DropWidget(nullptr)
{
}
DropWidget::DropWidget(QWidget* parent)
: QScrollArea(parent)
, m_lay... | 19 | 110 | 0.682908 | Evgenii-Evgenevich |
bc98262a6cfc198af2d61e3ea97d77ec21178343 | 1,898 | cpp | C++ | Lamp/src/Lamp/Objects/Entity/BaseComponents/DirectionalLightComponent.cpp | ChunkTreasure1/Lamp | 65be1544322949d6640e1fd108ed5a018387d0eb | [
"MIT"
] | 2 | 2021-09-13T17:37:34.000Z | 2021-11-17T18:52:42.000Z | Lamp/src/Lamp/Objects/Entity/BaseComponents/DirectionalLightComponent.cpp | ChunkTreasure1/Lamp | 65be1544322949d6640e1fd108ed5a018387d0eb | [
"MIT"
] | 20 | 2020-09-30T13:44:46.000Z | 2021-12-03T14:30:04.000Z | Lamp/src/Lamp/Objects/Entity/BaseComponents/DirectionalLightComponent.cpp | ChunkTreasure1/Lamp | 65be1544322949d6640e1fd108ed5a018387d0eb | [
"MIT"
] | null | null | null | #include "lppch.h"
#include "DirectionalLightComponent.h"
#include "Lamp/Objects/Entity/Base/ComponentRegistry.h"
#include "Lamp/Objects/Entity/Base/Entity.h"
#include "Lamp/Level/Level.h"
#include <glm/gtx/quaternion.hpp>
namespace Lamp
{
LP_REGISTER_COMPONENT(DirectionalLightComponent)
DirectionalLightComponent:... | 30.126984 | 114 | 0.753952 | ChunkTreasure1 |
bc9c0c03497e8f1f203cf09227fc63fb866e2089 | 964,140 | cpp | C++ | VehicleManagement/VehicleManage/GeneratedFiles/qrc_checkreceiptdialog.cpp | maanjun/IVM | fe7f58c0e45b2471357fafcc63328d903f08ea76 | [
"Apache-2.0"
] | null | null | null | VehicleManagement/VehicleManage/GeneratedFiles/qrc_checkreceiptdialog.cpp | maanjun/IVM | fe7f58c0e45b2471357fafcc63328d903f08ea76 | [
"Apache-2.0"
] | null | null | null | VehicleManagement/VehicleManage/GeneratedFiles/qrc_checkreceiptdialog.cpp | maanjun/IVM | fe7f58c0e45b2471357fafcc63328d903f08ea76 | [
"Apache-2.0"
] | null | null | null | /****************************************************************************
** Resource object code
**
** Created by: The Resource Compiler for Qt version 5.6.2
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
static const unsig... | 81.033787 | 128 | 0.767507 | maanjun |
bcaa8201cc02612c8acaffd0313851be2353dc8e | 1,117 | cc | C++ | test/tcp_test.cc | bzEq/kl | 92de2c1db5ca4bb6c38a632cda7a80d2c9823841 | [
"BSD-3-Clause"
] | null | null | null | test/tcp_test.cc | bzEq/kl | 92de2c1db5ca4bb6c38a632cda7a80d2c9823841 | [
"BSD-3-Clause"
] | null | null | null | test/tcp_test.cc | bzEq/kl | 92de2c1db5ca4bb6c38a632cda7a80d2c9823841 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2017 Kai Luo <gluokai@gmail.com>. All rights reserved.
// Use of this source code is governed by the BSD license that can be found in
// the LICENSE file.
#include "kl/tcp.h"
#include "kl/env.h"
#include "kl/inet.h"
#include "kl/testkit.h"
namespace {
class T {};
TEST(T, ListenAndSetNonBlocking) {
... | 26.595238 | 78 | 0.608774 | bzEq |
bcab8d785b9dd65a49671c34619864efbfc673af | 5,689 | cpp | C++ | sources/HybridDetector/Segment.cpp | onderkalaci/dyndatarace | 8e916b11d2d4f6d812d4b0c5a2616387be4d6572 | [
"Intel"
] | 6 | 2018-01-11T01:47:01.000Z | 2022-03-08T16:22:59.000Z | sources/HybridDetector/Segment.cpp | chakku000/dyndatarace | 8e916b11d2d4f6d812d4b0c5a2616387be4d6572 | [
"Intel"
] | 1 | 2018-01-11T02:36:09.000Z | 2018-01-12T03:32:41.000Z | sources/HybridDetector/Segment.cpp | chakku000/dyndatarace | 8e916b11d2d4f6d812d4b0c5a2616387be4d6572 | [
"Intel"
] | 2 | 2018-01-15T02:37:50.000Z | 2021-03-21T14:53:44.000Z |
#
# +--------------------------------------------------------------------------+
# |Copyright (C) 2014 Bogazici University |
# | onderkalaci@gmail.com |
# | |
#... | 32.884393 | 186 | 0.646687 | onderkalaci |
bcb1f4160b4082a97e019d9c494c0ef26b428d3a | 522 | cpp | C++ | examples/mbedos5/mbed-os-example-blinky/main.cpp | winneymj/nrf52832-mdk | c733ecf72512824151e20bdadaefaaa38769e80e | [
"MIT"
] | 189 | 2017-04-01T03:05:01.000Z | 2022-03-29T10:36:48.000Z | examples/mbedos5/mbed-os-example-blinky/main.cpp | winneymj/nrf52832-mdk | c733ecf72512824151e20bdadaefaaa38769e80e | [
"MIT"
] | 47 | 2018-09-10T13:55:32.000Z | 2022-02-28T14:15:42.000Z | examples/mbedos5/mbed-os-example-blinky/main.cpp | winneymj/nrf52832-mdk | c733ecf72512824151e20bdadaefaaa38769e80e | [
"MIT"
] | 56 | 2017-05-04T03:51:13.000Z | 2022-01-10T06:23:29.000Z | /* mbed Microcontroller Library
* Copyright (c) 2018 ARM Limited
* SPDX-License-Identifier: Apache-2.0
*/
#include "mbed.h"
#include "stats_report.h"
DigitalOut led1(LED1);
// main() runs in its own thread in the OS
int main()
{
SystemReport sys_state(500 /* Loop delay time in ms */);
while (true) {
... | 20.88 | 78 | 0.6341 | winneymj |
bcb90b7371ff101a3913029125e27268f85ff097 | 6,933 | cpp | C++ | pybind/spam.cpp | maxime-tournier/cpp | 303def38a523f0e5699ef389182974f4f50d10fb | [
"MIT"
] | null | null | null | pybind/spam.cpp | maxime-tournier/cpp | 303def38a523f0e5699ef389182974f4f50d10fb | [
"MIT"
] | null | null | null | pybind/spam.cpp | maxime-tournier/cpp | 303def38a523f0e5699ef389182974f4f50d10fb | [
"MIT"
] | null | null | null |
#include <Python.h>
#include <memory>
#include <vector>
#include <iostream>
template<class T>
using ptr = std::shared_ptr<T>;
// a base class for a c++ object that has a python counterpart: the two objects
// will live exactly for the same duration, with python detecting and collecting
// garbage.
struct base {
P... | 29.883621 | 86 | 0.560796 | maxime-tournier |
bcbf647c2d6f6d6cb5434dc7c5518d228f7a9363 | 237 | cpp | C++ | tests/test_Base.cpp | jonathanbuchanan/Sunglasses | ab82b66f32650a813234cee8963f9b598ef5c1c8 | [
"MIT"
] | 1 | 2016-04-01T02:21:27.000Z | 2016-04-01T02:21:27.000Z | tests/test_Base.cpp | jonathanbuchanan/Sunglasses | ab82b66f32650a813234cee8963f9b598ef5c1c8 | [
"MIT"
] | 49 | 2015-07-08T13:48:06.000Z | 2017-06-27T01:40:51.000Z | tests/test_Base.cpp | jonathanbuchanan/Sunglasses | ab82b66f32650a813234cee8963f9b598ef5c1c8 | [
"MIT"
] | null | null | null | // Copyright 2016 Jonathan Buchanan.
// This file is part of Sunglasses, which is licensed under the MIT License.
// See LICENSE.md for details.
#include <gtest/gtest.h>
#include <sunglasses/Sunglasses.hpp>
using namespace sunglasses;
| 26.333333 | 76 | 0.767932 | jonathanbuchanan |
bcc4373122f130e7f1599e0d0d502f849dc510e4 | 336 | hpp | C++ | Game Engine 2D/UtilConstants.hpp | LaPeste/ComposeEngine | 8ae80ec7c49af896978d06371dee96a4d2315372 | [
"Apache-2.0"
] | 1 | 2017-03-13T11:19:40.000Z | 2017-03-13T11:19:40.000Z | Game Engine 2D/UtilConstants.hpp | LaPeste/ComposeEngine | 8ae80ec7c49af896978d06371dee96a4d2315372 | [
"Apache-2.0"
] | null | null | null | Game Engine 2D/UtilConstants.hpp | LaPeste/ComposeEngine | 8ae80ec7c49af896978d06371dee96a4d2315372 | [
"Apache-2.0"
] | null | null | null | //
// UtilConstants.hpp
// GameEngine2D
//
// Created by Andrea Catalini on 11/12/16.
// Copyright © 2016 Andrea Catalini. All rights reserved.
//
#ifndef _UTIL_CONSTANTS_HPP_
#define _UTIL_CONSTANTS_HPP_
#include "stdafx.h"
class UtilConstants
{
public:
static const int NO_COMPONENTS;
};
#endif /* _UTIL_CO... | 16 | 58 | 0.729167 | LaPeste |
bcc46357d09df76e866398c35ad19d0bf3832ad1 | 2,576 | cc | C++ | src/RouteChoice/patSampleChoiceSetWithRandomWalk.cc | godosou/smaroute | e2ccc9492dff54c8ef5c74d5309d2b06758ba342 | [
"MIT"
] | 4 | 2015-02-23T16:02:52.000Z | 2021-03-26T17:58:53.000Z | src/RouteChoice/patSampleChoiceSetWithRandomWalk.cc | godosou/smaroute | e2ccc9492dff54c8ef5c74d5309d2b06758ba342 | [
"MIT"
] | null | null | null | src/RouteChoice/patSampleChoiceSetWithRandomWalk.cc | godosou/smaroute | e2ccc9492dff54c8ef5c74d5309d2b06758ba342 | [
"MIT"
] | 5 | 2015-02-23T16:05:59.000Z | 2017-05-04T16:13:16.000Z | /*
* patSampleChoiceSetWithRandomWalk.cc
*
* Created on: Jun 26, 2012
* Author: jchen
*/
#include "patSampleChoiceSetWithRandomWalk.h"
#include "patNBParameters.h"
#include "patDisplay.h"
#include "patOd.h"
#include <boost/lexical_cast.hpp>
#include <set>
#include <unistd.h>
patSampleChoiceSetWithRandomWal... | 28.307692 | 104 | 0.719332 | godosou |
344a19dc0a0650d0fc2995726ab04cd29eddb250 | 1,525 | cpp | C++ | source/Vector.cpp | Wroyk-UniProjects/Robo_Steuerung_BS_A2a | 0bf7fcf2c455b3fb9564452bf5c316a3502e5d4b | [
"MIT"
] | null | null | null | source/Vector.cpp | Wroyk-UniProjects/Robo_Steuerung_BS_A2a | 0bf7fcf2c455b3fb9564452bf5c316a3502e5d4b | [
"MIT"
] | null | null | null | source/Vector.cpp | Wroyk-UniProjects/Robo_Steuerung_BS_A2a | 0bf7fcf2c455b3fb9564452bf5c316a3502e5d4b | [
"MIT"
] | null | null | null | /*
* Betribssicherheit
* Aufgabe 2 Teil a
* Robotorsteuerung in C++
*
*
* File: Vector.cpp
* Author: Rudolf
*
* Created on 22. Mai 2017, 23:35
*/
#include "../header/Vector.h"
Vector::Vector() {
this->x = 0.0;
this->y = 0.0;
this->z = 0.0;
}
Vector::Vector(double x, double y, double z) {
... | 18.373494 | 85 | 0.523279 | Wroyk-UniProjects |
344e85ecf0634becfb5e6c55169a2b82b6dc0c92 | 955 | cpp | C++ | pico_dsp-arduino-esp32/arduino-esp32_pico_dsp_mics_omnidirectional/src/main.cpp | ohmic-net/pico_dsp | e3a66666fbcfd8d8ed30dfd6ac2c01b7fa23c3b2 | [
"MIT"
] | 23 | 2021-08-06T22:44:27.000Z | 2022-03-24T06:20:44.000Z | pico_dsp-arduino-esp32/arduino-esp32_pico_dsp_mics_omnidirectional/src/main.cpp | ohmic-net/pico_dsp | e3a66666fbcfd8d8ed30dfd6ac2c01b7fa23c3b2 | [
"MIT"
] | null | null | null | pico_dsp-arduino-esp32/arduino-esp32_pico_dsp_mics_omnidirectional/src/main.cpp | ohmic-net/pico_dsp | e3a66666fbcfd8d8ed30dfd6ac2c01b7fa23c3b2 | [
"MIT"
] | 1 | 2021-08-19T10:37:36.000Z | 2021-08-19T10:37:36.000Z | // example microphone omnidirectional configuration using Faust DSP for PICO_DSP development board
#include <Arduino.h>
#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_system.h"
#include "esp_spi_flash.h"
#include "WM8978.h"
#include "picodsp_mics_omnidirectional.h"
WM8978 ... | 22.738095 | 99 | 0.697382 | ohmic-net |
3459f19a9560647698d7e2c21f83248f6e952567 | 2,011 | cpp | C++ | Classes/Layer/GameLayer.cpp | Pythians/MyGame | 78cf7727b5ccdae5cd011aa093343e954cce8651 | [
"MIT"
] | null | null | null | Classes/Layer/GameLayer.cpp | Pythians/MyGame | 78cf7727b5ccdae5cd011aa093343e954cce8651 | [
"MIT"
] | null | null | null | Classes/Layer/GameLayer.cpp | Pythians/MyGame | 78cf7727b5ccdae5cd011aa093343e954cce8651 | [
"MIT"
] | null | null | null | #include "GameLayer.h"
#include "Resource/ResourcesManage.h"
#include "Layer/bg/BgLayer.h"
USING_NS_CC;
GameLayer::GameLayer( )
{
}
GameLayer::~GameLayer( )
{
}
bool GameLayer::init( )
{
if( !Node::init( ) )
{
return false;
}
this->addChild( LayerColor::create( Color4B( 182, 228, 254, 255... | 25.455696 | 72 | 0.617603 | Pythians |
3459fcd4c781afa1ef86909af207aac5c21bf411 | 2,415 | cpp | C++ | src/Base/TaskProcessors/ThreadedTaskProcessor/WorkerThread.cpp | PhilipVinc/PincoSimulator | 562192cf3b09d0e67be7e6fee67ff9b59fbc3fd3 | [
"MIT"
] | 1 | 2017-10-23T13:22:01.000Z | 2017-10-23T13:22:01.000Z | src/Base/TaskProcessors/ThreadedTaskProcessor/WorkerThread.cpp | PhilipVinc/PincoSimulator | 562192cf3b09d0e67be7e6fee67ff9b59fbc3fd3 | [
"MIT"
] | null | null | null | src/Base/TaskProcessors/ThreadedTaskProcessor/WorkerThread.cpp | PhilipVinc/PincoSimulator | 562192cf3b09d0e67be7e6fee67ff9b59fbc3fd3 | [
"MIT"
] | null | null | null | //
// WorkerThread.cpp
// DataElaborator
//
// Created by Filippo Vicentini on 24/03/14.
// Copyright (c) 2014 Filippo Vicentini. All rights reserved.
//
#include "WorkerThread.hpp"
#include "ThreadedTaskProcessor.hpp"
#include "Base/Solver.hpp"
#include "Base/TaskData.hpp"
#include "Base/TaskResults.hpp"
#includ... | 24.896907 | 96 | 0.633954 | PhilipVinc |
346466210c1d3661a11296962286e65adea5697f | 3,053 | cpp | C++ | Source/Engine/src/video/texture.cpp | DatZach/Swift | b0c6f9c87e8c8dfe8a19dedc4dd57081fa5cdef7 | [
"MIT"
] | null | null | null | Source/Engine/src/video/texture.cpp | DatZach/Swift | b0c6f9c87e8c8dfe8a19dedc4dd57081fa5cdef7 | [
"MIT"
] | null | null | null | Source/Engine/src/video/texture.cpp | DatZach/Swift | b0c6f9c87e8c8dfe8a19dedc4dd57081fa5cdef7 | [
"MIT"
] | 1 | 2021-10-30T20:43:01.000Z | 2021-10-30T20:43:01.000Z | /*
* texture.cpp
* Texture
*/
#include <Video/Texture.hpp>
#include <Util/Logger.hpp>
#include <SOIL.h>
namespace Video
{
Texture::Texture()
: textureIndex(0),
size(),
linearFiltering(false)
{
glGenTextures(1, &textureIndex);
}
Texture::~Texture()
{
glDeleteTextures(1, &textureIndex);
}
bool... | 21.652482 | 113 | 0.718637 | DatZach |
34725a23647d21aa01629b3766ae67cb271de3e7 | 21,737 | cpp | C++ | src/program/kss2-program.cpp | Dragon987/mbed-xml | a5130f319fd6b8c7585635e5366c28ba9379bb7f | [
"Apache-2.0"
] | null | null | null | src/program/kss2-program.cpp | Dragon987/mbed-xml | a5130f319fd6b8c7585635e5366c28ba9379bb7f | [
"Apache-2.0"
] | null | null | null | src/program/kss2-program.cpp | Dragon987/mbed-xml | a5130f319fd6b8c7585635e5366c28ba9379bb7f | [
"Apache-2.0"
] | null | null | null | #include "kss2-program.h"
#include "string.h"
#include "../common.h"
#define GET_TXT_VALUE_FROM_CHILD(parent, child) atoi(dxml_child(parent, child)->txt)
bool ellement_in_array(int el, int *arr, int n)
{
for(int i = 0; i < n; i++)
if (el == arr[i])
return true;
return false;
}
namespace... | 32.443284 | 266 | 0.582969 | Dragon987 |
347a33b9a8cc5b8581d4094543dd9a5abb969da8 | 38,090 | inl | C++ | src/fonts/stb_font_consolas_32_usascii.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | 3 | 2018-03-13T12:51:57.000Z | 2021-10-11T11:32:17.000Z | src/fonts/stb_font_consolas_32_usascii.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | null | null | null | src/fonts/stb_font_consolas_32_usascii.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | null | null | null | // Font generated by stb_font_inl_generator.c (4/1 bpp)
//
// Following instructions show how to use the only included font, whatever it is, in
// a generic way so you can replace it with any other font by changing the include.
// To use multiple fonts, replace STB_SOMEFONT_* below with STB_FONT_consolas_32_usascii... | 65 | 123 | 0.787792 | stetre |
348159ff209f445fb25dd54f0c7f876f36c2bb02 | 623 | cpp | C++ | QEdit/src/CFGReader.cpp | JannikNickel/QEdit | 8d09bcdc6fd4a8e2ecf969edb852de8a1c43dd7e | [
"MIT"
] | null | null | null | QEdit/src/CFGReader.cpp | JannikNickel/QEdit | 8d09bcdc6fd4a8e2ecf969edb852de8a1c43dd7e | [
"MIT"
] | null | null | null | QEdit/src/CFGReader.cpp | JannikNickel/QEdit | 8d09bcdc6fd4a8e2ecf969edb852de8a1c43dd7e | [
"MIT"
] | null | null | null | #include "CFGReader.h"
CFGReader::CFGReader(std::ifstream* file)
{
if(file == nullptr)
{
return;
}
std::string line;
while(getline(*file, line))
{
long index = line.find('=');
if(index != std::string::npos)
{
std::string attribute = line.substr(0, index);
std::string value = line.substr(index + 1, ... | 18.878788 | 75 | 0.629213 | JannikNickel |
34851f8db2d45beda90ff00a004978998bc317ea | 2,863 | hpp | C++ | include/codegen/include/System/Threading/AbandonedMutexException.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/System/Threading/AbandonedMutexException.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/System/Threading/AbandonedMutexException.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:09:45 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
// Including type: System.SystemException
#include "System/SystemException.hpp"
#include "utils/il2cpp-util... | 46.934426 | 162 | 0.747468 | Futuremappermydud |
348607e6739ad68f3ca92c3db60ded07b791a985 | 2,734 | cpp | C++ | src/scexpressionparser.cpp | BryanMorfe/SciCalc | 1602c159c48013beb8dee09ff648923f37c69e09 | [
"Apache-2.0"
] | 1 | 2020-12-13T16:56:32.000Z | 2020-12-13T16:56:32.000Z | src/scexpressionparser.cpp | BryanMorfe/SciCalc | 1602c159c48013beb8dee09ff648923f37c69e09 | [
"Apache-2.0"
] | null | null | null | src/scexpressionparser.cpp | BryanMorfe/SciCalc | 1602c159c48013beb8dee09ff648923f37c69e09 | [
"Apache-2.0"
] | null | null | null | #include "include/scexpressionparser.h"
#include <QStack>
#include <QDebug>
#include "include/sctokenoperations.h"
const SCExpressionParser SCExpressionParser::shared;
SCExpressionParser::SCExpressionParser() {}
SCParsedExpression SCExpressionParser::parse(const SCInExpression &exp)
{
QStack<SCToken> opStack;... | 30.719101 | 114 | 0.557059 | BryanMorfe |
348bafc7e3314b9fc89b277c6e4b7730831638be | 1,001 | cpp | C++ | Server/Server/src/core/item/item.cpp | vahmoh26/Messenger | 3413b2eedbb5ed867928c2dfe17ad2c118712f6e | [
"MIT"
] | null | null | null | Server/Server/src/core/item/item.cpp | vahmoh26/Messenger | 3413b2eedbb5ed867928c2dfe17ad2c118712f6e | [
"MIT"
] | null | null | null | Server/Server/src/core/item/item.cpp | vahmoh26/Messenger | 3413b2eedbb5ed867928c2dfe17ad2c118712f6e | [
"MIT"
] | null | null | null | #include "item.h"
#include <sstream>
#include <boost/iostreams/stream.hpp>
#include <boost/archive/text_iarchive.hpp>
#include <boost/archive/text_oarchive.hpp>
namespace server::core
{
using namespace boost;
item::item()
{
_type = type::unknown;
}
item::item(type type) : item()
{
set_type(type);
}
it... | 15.4 | 97 | 0.669331 | vahmoh26 |
3492168940e6c054403efb893ccd2ae5e67eee86 | 271 | cpp | C++ | Olamundo/02/freq03/main.cpp | tosantos1/LIP | 7dbc045afa02729f4e2f2f1d3b29baebf5be72ad | [
"MIT"
] | null | null | null | Olamundo/02/freq03/main.cpp | tosantos1/LIP | 7dbc045afa02729f4e2f2f1d3b29baebf5be72ad | [
"MIT"
] | null | null | null | Olamundo/02/freq03/main.cpp | tosantos1/LIP | 7dbc045afa02729f4e2f2f1d3b29baebf5be72ad | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int opa(int a);
int main()
{
int n;
cin >> n;
cout << opa(n);
return 0;
}
int opa(int n){
if(n == 1 || n == 0){
return n;
}else{
return opa(n - 1) + opa (n-2);
}
return 0;
}
| 10.037037 | 38 | 0.450185 | tosantos1 |
349ba7372ae75faf9748c31dd57c25d3c5bad952 | 11,795 | hh | C++ | BdbTime/BdbTime.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | BdbTime/BdbTime.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | BdbTime/BdbTime.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | #ifndef BDBTIME_HH
#define BDBTIME_HH
//-----------------------------------------------------------------------------
//
// File and Version Information:
// $Id: BdbTime.hh 496 2010-01-13 17:10:44Z stroili $
//
// Description:
// Class BdbTime.
// This is a persistent time class.
//
// Environment:
//... | 34.188406 | 79 | 0.635693 | brownd1978 |
34af9fbebdb458197455883fd2889c4ad5b4a65f | 1,788 | cpp | C++ | src/main/utils.cpp | qzerrty/graphics-editor | af76f1466bac3b3ba7363272af74ab04e6ee44ae | [
"MIT"
] | null | null | null | src/main/utils.cpp | qzerrty/graphics-editor | af76f1466bac3b3ba7363272af74ab04e6ee44ae | [
"MIT"
] | null | null | null | src/main/utils.cpp | qzerrty/graphics-editor | af76f1466bac3b3ba7363272af74ab04e6ee44ae | [
"MIT"
] | null | null | null | #include <SDL/SDL.h>
#include <SDL/SDL_ttf.h>
#include "graphicsEditor.hpp"
#include "utils.hpp"
SDL_Color translate_color(Uint32 int_color) {
#if SDL_BYTEORDER != SDL_BIG_ENDIAN
SDL_Color color={
(Uint8) ((int_color & 0x00ff0000)/0x10000),
(Uint8) ((int_color & 0x0000ff00)/0x100),
(Uint8) (int_color & 0x0... | 24.833333 | 101 | 0.630313 | qzerrty |
34b072586a0bd73e7f7ce8ab30fc9e1f3d7410ee | 7,245 | cpp | C++ | Tests/GuiTests/DFNs/DisparityImage/DisparityImageEdres.cpp | H2020-InFuse/cdff | e55fd48f9a909d0c274c3dfa4fe2704bc5071542 | [
"BSD-2-Clause"
] | 7 | 2019-02-26T15:09:50.000Z | 2021-09-30T07:39:01.000Z | Tests/GuiTests/DFNs/DisparityImage/DisparityImageEdres.cpp | H2020-InFuse/cdff | e55fd48f9a909d0c274c3dfa4fe2704bc5071542 | [
"BSD-2-Clause"
] | null | null | null | Tests/GuiTests/DFNs/DisparityImage/DisparityImageEdres.cpp | H2020-InFuse/cdff | e55fd48f9a909d0c274c3dfa4fe2704bc5071542 | [
"BSD-2-Clause"
] | 1 | 2020-12-06T12:09:05.000Z | 2020-12-06T12:09:05.000Z | /**
* @author Clément Bazerque
*/
/**
* Test application for the DFN DisparityImageEdres
*/
/**
* @addtogroup DFNsTest
* @{
*/
#include <DisparityImage/DisparityImageEdres.hpp>
#include <GuiTests/ParametersInterface.hpp>
#include <GuiTests/MainInterface.hpp>
#include <GuiTests/DFNs/DFNTestInterface.hpp>
#inclu... | 38.333333 | 157 | 0.757902 | H2020-InFuse |
34b0b7cb584507f7860dc717ae0d4d5746ee8dc8 | 3,093 | cpp | C++ | src/Solver/NumericalJacobian.cpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 12 | 2020-09-07T11:19:10.000Z | 2022-02-17T17:40:19.000Z | src/Solver/NumericalJacobian.cpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 110 | 2020-09-02T15:29:24.000Z | 2022-03-09T09:50:01.000Z | src/Solver/NumericalJacobian.cpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 3 | 2021-05-21T13:24:31.000Z | 2022-02-11T14:43:12.000Z | /**
* Routines for numerically evaluating the jacobian numerically
* in the non-linear solver.
*/
#include <iostream>
#include "DREAM/Solver/SolverNonLinear.hpp"
#include "FVM/BlockMatrix.hpp"
#include "FVM/UnknownQuantity.hpp"
using namespace DREAM;
/**
* Evaluate jacobian numerically using finite difference
... | 28.118182 | 91 | 0.589395 | chalmersplasmatheory |
34b7758ac1a85618e9b620de9522e93938a1edfa | 2,223 | cpp | C++ | App/src/UI/Windows/UIMatrixWindow.cpp | Shorakie/GraphDelta | f930ccd7c3bffc7a12fa864d6dca72375623cbcf | [
"MIT"
] | 1 | 2021-07-08T22:51:59.000Z | 2021-07-08T22:51:59.000Z | App/src/UI/Windows/UIMatrixWindow.cpp | Shorakie/GraphDelta | f930ccd7c3bffc7a12fa864d6dca72375623cbcf | [
"MIT"
] | null | null | null | App/src/UI/Windows/UIMatrixWindow.cpp | Shorakie/GraphDelta | f930ccd7c3bffc7a12fa864d6dca72375623cbcf | [
"MIT"
] | null | null | null | #include "UIMatrixWindow.h"
#include <IconsFontAwesome5.h>
#include <spdlog/fmt/fmt.h>
#include <Core/Application.h>
#include <Core/Utils.h>
#include "Components/Components.h"
using namespace entt::literals;
namespace Project {
UIMatrixWindow::UIMatrixWindow(GraphSystem& graphSystem, std::string name)
: Engine::... | 29.64 | 92 | 0.682861 | Shorakie |
34c3c0adf0797ceeb3c51c7caa3a1ab2eecde196 | 213 | cc | C++ | build/ARM/python/m5/internal/param_RubyPort.i_init.cc | Jakgn/gem5_test | 0ba7cc5213cf513cf205af7fc995cf679ebc1a3f | [
"BSD-3-Clause"
] | null | null | null | build/ARM/python/m5/internal/param_RubyPort.i_init.cc | Jakgn/gem5_test | 0ba7cc5213cf513cf205af7fc995cf679ebc1a3f | [
"BSD-3-Clause"
] | null | null | null | build/ARM/python/m5/internal/param_RubyPort.i_init.cc | Jakgn/gem5_test | 0ba7cc5213cf513cf205af7fc995cf679ebc1a3f | [
"BSD-3-Clause"
] | null | null | null | #include "sim/init.hh"
extern "C" {
void init_param_RubyPort();
}
EmbeddedSwig embed_swig_param_RubyPort(init_param_RubyPort, "m5.internal._param_RubyPort");
| 23.666667 | 99 | 0.596244 | Jakgn |
34c3fc0f23e5ac1ba2efe95219cd74ae93d99036 | 1,816 | cpp | C++ | evias/network/connection.cpp | evias/evias | 5b5d4c16404f855c3234afa05b11c339a3ebb4cb | [
"BSD-3-Clause"
] | 1 | 2015-10-31T03:18:02.000Z | 2015-10-31T03:18:02.000Z | evias/network/connection.cpp | evias/evias | 5b5d4c16404f855c3234afa05b11c339a3ebb4cb | [
"BSD-3-Clause"
] | null | null | null | evias/network/connection.cpp | evias/evias | 5b5d4c16404f855c3234afa05b11c339a3ebb4cb | [
"BSD-3-Clause"
] | null | null | null | #include "connection.hpp"
using namespace evias::network;
/**
* searchQueue
*
* pop the queue's first element or the first with identification reqId.
*
* \note returned object has to be free'd
* \return netPacket*
*/
netPacket *evias::network::netConnection::searchQueue(__netRequest_t reqId)
{
... | 21.364706 | 93 | 0.556718 | evias |
34c7dc7488185dc25907f14567154347348f23d1 | 1,048 | cpp | C++ | apr.2020after/20200507/20200507/n_11328/n_11328.cpp | lis0517/BOJ_ | 8aafb2db9c3c08afd145db911144c28a7cec3279 | [
"MIT"
] | null | null | null | apr.2020after/20200507/20200507/n_11328/n_11328.cpp | lis0517/BOJ_ | 8aafb2db9c3c08afd145db911144c28a7cec3279 | [
"MIT"
] | null | null | null | apr.2020after/20200507/20200507/n_11328/n_11328.cpp | lis0517/BOJ_ | 8aafb2db9c3c08afd145db911144c28a7cec3279 | [
"MIT"
] | null | null | null | // n_11328.cpp : 이 파일에는 'main' 함수가 포함됩니다. 거기서 프로그램 실행이 시작되고 종료됩니다.
//
#include <iostream>
#include <string>
using namespace std;
int arr1[26];
int arr2[26];
int main()
{
int lp = 0;
cin >> lp;
for (int i = 0; i < lp; ++i)
{
fill(arr1 + 0, arr1 + 26, 0);
fill(arr2 + 0, arr2 + 26, 0);
string s1, s2;
cin ... | 19.407407 | 96 | 0.510496 | lis0517 |
34cddbfed49e6957150bde6c006b2a22752bfed9 | 1,241 | hpp | C++ | core/include/storm/core/Singleton.hpp | Arthapz/StormKit | 7c8dead874734d04b97776287b25bf2ebe9be617 | [
"MIT"
] | 17 | 2019-02-12T14:40:06.000Z | 2021-12-21T12:54:17.000Z | core/include/storm/core/Singleton.hpp | Arthapz/StormKit | 7c8dead874734d04b97776287b25bf2ebe9be617 | [
"MIT"
] | null | null | null | core/include/storm/core/Singleton.hpp | Arthapz/StormKit | 7c8dead874734d04b97776287b25bf2ebe9be617 | [
"MIT"
] | 2 | 2019-02-21T10:07:42.000Z | 2020-05-08T19:49:10.000Z | // Copyright (C) 2021 Arthur LAURENT <arthur.laurent4@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level of this distribution
#pragma once
#include <functional>
#include <memory>
#include <mutex>
#include <storm/core/Memory.hpp>
#include <storm/core/NonCopy... | 29.547619 | 79 | 0.589847 | Arthapz |
34d0bb63038a190ded7209dd6ecf81a9cc83c18d | 2,177 | cpp | C++ | DataProcessingList.cpp | AlanRace/imzMLParser | 1b9bc7f0b09bdeca9c8427448baed53483ce64e7 | [
"Apache-2.0"
] | 1 | 2021-03-18T09:51:10.000Z | 2021-03-18T09:51:10.000Z | DataProcessingList.cpp | AlanRace/imzMLParser | 1b9bc7f0b09bdeca9c8427448baed53483ce64e7 | [
"Apache-2.0"
] | null | null | null | DataProcessingList.cpp | AlanRace/imzMLParser | 1b9bc7f0b09bdeca9c8427448baed53483ce64e7 | [
"Apache-2.0"
] | 1 | 2018-06-08T09:11:55.000Z | 2018-06-08T09:11:55.000Z | /*
*
* Copyright 2013 Alan Race
*
* 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... | 29.418919 | 147 | 0.702802 | AlanRace |
34e068bf48a74368721b09af4684c7e0457d20c8 | 769 | cpp | C++ | plugins/Nephilim/AngelScriptEXT/ASXRuntime.cpp | GrimshawA/Nephilim | 1e69df544078b55fdaf58a04db963e20094f27a9 | [
"Zlib"
] | 19 | 2015-12-19T11:15:57.000Z | 2022-03-09T11:22:11.000Z | plugins/Nephilim/AngelScriptEXT/ASXRuntime.cpp | DevilWithin/Nephilim | 1e69df544078b55fdaf58a04db963e20094f27a9 | [
"Zlib"
] | 1 | 2017-05-17T09:31:10.000Z | 2017-05-19T17:01:31.000Z | plugins/Nephilim/AngelScriptEXT/ASXRuntime.cpp | GrimshawA/Nephilim | 1e69df544078b55fdaf58a04db963e20094f27a9 | [
"Zlib"
] | 3 | 2015-12-14T17:40:26.000Z | 2021-02-25T00:42:42.000Z | #include <Nephilim/AngelScriptEXT/ASXRuntime.h>
#include <Nephilim/AngelScriptEXT/ASXEngine.h>
#include <angelscript.h>
NEPHILIM_NS_BEGIN
ASXRuntime::ASXRuntime()
: m_context(NULL)
{
}
ASXRuntime::ASXRuntime(ASXEngine& engine)
{
m_context = engine.get()->CreateContext();
}
ASXRuntime::~ASXRuntime()
{
if(m_conte... | 14.788462 | 47 | 0.73212 | GrimshawA |
34e4275045040f9b3400d0cdefb85c2055a8dee0 | 21,640 | cpp | C++ | Tests/FileMgrTest.cpp | igalink/omniscidb | 94e878916991e7cf76bcd85b4091119b1ec66012 | [
"Apache-2.0"
] | null | null | null | Tests/FileMgrTest.cpp | igalink/omniscidb | 94e878916991e7cf76bcd85b4091119b1ec66012 | [
"Apache-2.0"
] | 1 | 2021-02-24T03:22:29.000Z | 2021-02-24T03:22:29.000Z | Tests/FileMgrTest.cpp | isabella232/omniscidb | bf83d84833710679debdf7a0484b6fbfc421cc96 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2020 OmniSci, 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 agreed t... | 44.989605 | 90 | 0.717976 | igalink |
34e5824156bb4489ce6a05a52d37e029521986e1 | 17,532 | cpp | C++ | examples/example-rtc.cpp | kirchnerlab/libpipe | 28f08b9399945bd13329937a9dd0691211826886 | [
"MIT"
] | 1 | 2018-11-08T13:41:18.000Z | 2018-11-08T13:41:18.000Z | examples/example-rtc.cpp | kirchnerlab/libpipe | 28f08b9399945bd13329937a9dd0691211826886 | [
"MIT"
] | null | null | null | examples/example-rtc.cpp | kirchnerlab/libpipe | 28f08b9399945bd13329937a9dd0691211826886 | [
"MIT"
] | null | null | null | /*
* example-rtc.cpp
*
* Copyright (c) 2010 Marc Kirchner
* 2011 David Sichau
*
*/
#include <libpipe/config.hpp>
#include <stdlib.h>
#include <exception>
#include <iostream>
#include <set>
#include <boost/pointer_cast.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/make_shared.hpp>
#include <... | 32.346863 | 84 | 0.592745 | kirchnerlab |
34e5fb3069618dfe4b629d3f544a01ef8e570dde | 2,942 | cpp | C++ | core/CODeMDistribution.cpp | shaulsal/CODeM | 8cc85972cbb21ec55f323e6a049429b9ab2e2c74 | [
"MIT"
] | null | null | null | core/CODeMDistribution.cpp | shaulsal/CODeM | 8cc85972cbb21ec55f323e6a049429b9ab2e2c74 | [
"MIT"
] | null | null | null | core/CODeMDistribution.cpp | shaulsal/CODeM | 8cc85972cbb21ec55f323e6a049429b9ab2e2c74 | [
"MIT"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2012-2015 The University of Sheffield (www.sheffield.ac.uk)
**
** This file is part of Liger.
**
** GNU Lesser General Public License Usage
** This file may be used under the terms of the GNU Lesser General
** Public Licen... | 29.128713 | 79 | 0.615228 | shaulsal |
34ec9e7f840721668c5b529c756e4cf5d515b7b4 | 753 | hpp | C++ | test/framework/test_logger.hpp | akshatkarani/iroha | 5acef9dd74720c6185360d951e9b11be4ef73260 | [
"Apache-2.0"
] | 1,467 | 2016-10-25T12:27:19.000Z | 2022-03-28T04:32:05.000Z | test/framework/test_logger.hpp | akshatkarani/iroha | 5acef9dd74720c6185360d951e9b11be4ef73260 | [
"Apache-2.0"
] | 2,366 | 2016-10-25T10:07:57.000Z | 2022-03-31T22:03:24.000Z | test/framework/test_logger.hpp | akshatkarani/iroha | 5acef9dd74720c6185360d951e9b11be4ef73260 | [
"Apache-2.0"
] | 662 | 2016-10-26T04:41:22.000Z | 2022-03-31T04:15:02.000Z | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef TEST_FRAMEWORK_TEST_LOGGER_HPP
#define TEST_FRAMEWORK_TEST_LOGGER_HPP
#include "logger/logger.hpp"
#include "logger/logger_manager_fwd.hpp"
/// Allows to log objects, which have toString() method without call... | 28.961538 | 80 | 0.746348 | akshatkarani |
34ef50181b03004b1772f96aee5628700062067b | 2,797 | cpp | C++ | CardReaderLibrary/ImageEditHelper.cpp | klanderfri/CardReaderLibrary | 71fc4b7fc6052a9ec3fb477fccd9b3fcfa0b9c60 | [
"MIT"
] | 4 | 2019-03-18T14:06:59.000Z | 2021-07-17T18:36:12.000Z | CardReaderLibrary/ImageEditHelper.cpp | klanderfri/ReadMagicCard | 71fc4b7fc6052a9ec3fb477fccd9b3fcfa0b9c60 | [
"MIT"
] | 17 | 2018-04-12T18:03:16.000Z | 2018-05-09T18:33:07.000Z | CardReaderLibrary/ImageEditHelper.cpp | klanderfri/ReadMagicCard | 71fc4b7fc6052a9ec3fb477fccd9b3fcfa0b9c60 | [
"MIT"
] | 1 | 2019-03-25T18:31:17.000Z | 2019-03-25T18:31:17.000Z | #include "stdafx.h"
#include "ImageEditHelper.h"
#include <opencv2\imgproc.hpp>
using namespace cv;
using namespace std;
ImageEditHelper::ImageEditHelper()
{
this->converter = new ConversionHelper();
this->rectangleMethods = new RectangleHelper();
this->imageInfo = new ImageInformationHelper();
this->transformati... | 32.905882 | 154 | 0.782267 | klanderfri |
34f211ffa6f801582b60db6fe75a22298c813dd3 | 1,331 | cpp | C++ | src/library/sorry.cpp | leodemoura/lean_clone | cc077554b584d39bab55c360bc12a6fe7957afe6 | [
"Apache-2.0"
] | 130 | 2016-12-02T22:46:10.000Z | 2022-03-22T01:09:48.000Z | src/library/sorry.cpp | soonhokong/lean | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | [
"Apache-2.0"
] | 8 | 2017-05-03T01:21:08.000Z | 2020-02-25T11:38:05.000Z | src/library/sorry.cpp | soonhokong/lean | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | [
"Apache-2.0"
] | 28 | 2016-12-02T22:46:20.000Z | 2022-03-18T21:28:20.000Z | /*
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include "kernel/type_checker.h"
#include "kernel/environment.h"
#include "library/module.h"
#include "library/constants.h"
namespace lean {
static name * ... | 30.25 | 119 | 0.67994 | leodemoura |
5a560a47e4c98284c4949d131cbe6cd6b3f1822b | 2,056 | hpp | C++ | types/containers/ColumnVectorUtil.hpp | Hacker0912/quickstep-datalog | 1de22e7ab787b5efa619861a167a097ff6a4f549 | [
"Apache-2.0"
] | 82 | 2016-04-18T03:59:06.000Z | 2019-02-04T11:46:08.000Z | types/containers/ColumnVectorUtil.hpp | Hacker0912/quickstep-datalog | 1de22e7ab787b5efa619861a167a097ff6a4f549 | [
"Apache-2.0"
] | 265 | 2016-04-19T17:52:43.000Z | 2018-10-11T17:55:08.000Z | types/containers/ColumnVectorUtil.hpp | Hacker0912/quickstep-datalog | 1de22e7ab787b5efa619861a167a097ff6a4f549 | [
"Apache-2.0"
] | 68 | 2016-04-18T05:00:34.000Z | 2018-10-30T12:41:02.000Z | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 35.448276 | 78 | 0.738327 | Hacker0912 |
5a6056593fed418eec1850f6ec3aad256a72945f | 9,432 | cpp | C++ | KeePass.1.39.a/LibraryMB/Date.cpp | rrvt/KeePassLastPass | 217b627d906cf0af21ac69643a2d2e24e88f934b | [
"MIT"
] | null | null | null | KeePass.1.39.a/LibraryMB/Date.cpp | rrvt/KeePassLastPass | 217b627d906cf0af21ac69643a2d2e24e88f934b | [
"MIT"
] | 1 | 2020-05-01T00:37:31.000Z | 2020-05-01T00:37:31.000Z | KeePass.1.39.a/LibraryMB/Date.cpp | rrvt/KeePassLastPass | 217b627d906cf0af21ac69643a2d2e24e88f934b | [
"MIT"
] | 1 | 2020-02-25T09:11:37.000Z | 2020-02-25T09:11:37.000Z | // Date & Time using CTime
#include "stdafx.h"
#include "Date.h"
#include "MessageBox.h"
#include "StringInput.h"
// Helper functions for dealing with Edit boxes
static bool vrfyMnth( int cnt, TCchar ch, int& v);
static bool vrfyDay( int cnt, TCchar ch, int& v);
static bool vrfyYr( int cnt, TCchar ch, int& v);
... | 24.886544 | 105 | 0.502969 | rrvt |
5a669cb970f23e3dc4e79c2350eaf2177bf271a6 | 36 | cpp | C++ | src/lib/universal_include.cpp | abainbridge/trex-warrior | fac95802ce7efd8dc9c50f915ce8d5891f545640 | [
"BSD-2-Clause"
] | null | null | null | src/lib/universal_include.cpp | abainbridge/trex-warrior | fac95802ce7efd8dc9c50f915ce8d5891f545640 | [
"BSD-2-Clause"
] | null | null | null | src/lib/universal_include.cpp | abainbridge/trex-warrior | fac95802ce7efd8dc9c50f915ce8d5891f545640 | [
"BSD-2-Clause"
] | null | null | null | #include "lib/universal_include.h"
| 18 | 35 | 0.777778 | abainbridge |
5a6a1c2975c6531dff0687018ae8062dd9ace258 | 1,354 | hpp | C++ | include/utility/container/helper/in_place_t.hpp | SakuraLife/utility | b9bf26198917b6dc415520f74eb3eebf8aa8195e | [
"Unlicense"
] | 2 | 2017-12-10T10:59:48.000Z | 2017-12-13T04:11:14.000Z | include/utility/container/helper/in_place_t.hpp | SakuraLife/utility | b9bf26198917b6dc415520f74eb3eebf8aa8195e | [
"Unlicense"
] | null | null | null | include/utility/container/helper/in_place_t.hpp | SakuraLife/utility | b9bf26198917b6dc415520f74eb3eebf8aa8195e | [
"Unlicense"
] | null | null | null |
#ifndef __UTILITY_CONTAINER_HELPER_IN_PLACE_T__
#define __UTILITY_CONTAINER_HELPER_IN_PLACE_T__
/**
* \file ignore_t.hpp
* \author Inochi Amaoto
*
*/
#include<utility/config/utility_config.hpp>
#include<utility/trait/trait_helper.hpp>
namespace utility
{
namespace container
{
namespace helper
{
... | 21.492063 | 84 | 0.70384 | SakuraLife |
5a6f5388a2fccc8bc1c1b26effb8ed7388b6643e | 8,267 | cpp | C++ | Source/Platform/String.cpp | Hork-Engine/Hork-Source | 1670e7b04dcfd28d6efdcae06a30c00e303be28f | [
"MIT"
] | 17 | 2022-01-31T07:43:06.000Z | 2022-03-29T10:30:25.000Z | Source/Platform/String.cpp | Hork-Engine/Hork-Source | 1670e7b04dcfd28d6efdcae06a30c00e303be28f | [
"MIT"
] | 2 | 2022-02-06T14:46:40.000Z | 2022-02-08T09:46:54.000Z | Source/Platform/String.cpp | Hork-Engine/Hork-Source | 1670e7b04dcfd28d6efdcae06a30c00e303be28f | [
"MIT"
] | 1 | 2022-02-15T08:23:23.000Z | 2022-02-15T08:23:23.000Z | /*
Hork Engine Source Code
MIT License
Copyright (C) 2017-2022 Alexander Samusev.
This file is part of the Hork Engine Source Code.
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 rest... | 18.961009 | 79 | 0.477803 | Hork-Engine |
5a72682a7ae8be6fabc274a1d8efa6a2371a9390 | 96 | cpp | C++ | src/examples/06_module/02_shapes/circle.cpp | acc-cosc-1337-spring-2021/acc-cosc-1337-spring-2021-willcastl3 | 47a99259ea78662bd61a7f3390c8d59e004179e3 | [
"MIT"
] | null | null | null | src/examples/06_module/02_shapes/circle.cpp | acc-cosc-1337-spring-2021/acc-cosc-1337-spring-2021-willcastl3 | 47a99259ea78662bd61a7f3390c8d59e004179e3 | [
"MIT"
] | null | null | null | src/examples/06_module/02_shapes/circle.cpp | acc-cosc-1337-spring-2021/acc-cosc-1337-spring-2021-willcastl3 | 47a99259ea78662bd61a7f3390c8d59e004179e3 | [
"MIT"
] | 1 | 2021-05-25T20:20:15.000Z | 2021-05-25T20:20:15.000Z | //circle.cpp
#include "circle.h"
using std::cout;
void Circle::draw()
{
cout<<"Circle\n";
} | 12 | 21 | 0.625 | acc-cosc-1337-spring-2021 |
5a77c92d07cdc42e7f340155d5922230aa50d47a | 4,199 | cpp | C++ | ofxTweener/src/ofxTweener.cpp | itsukichang/vacuuuum | 9bb8605270d3da1acc6901287f9d08fc31119d87 | [
"MIT"
] | null | null | null | ofxTweener/src/ofxTweener.cpp | itsukichang/vacuuuum | 9bb8605270d3da1acc6901287f9d08fc31119d87 | [
"MIT"
] | null | null | null | ofxTweener/src/ofxTweener.cpp | itsukichang/vacuuuum | 9bb8605270d3da1acc6901287f9d08fc31119d87 | [
"MIT"
] | null | null | null | /*
* ofxTweener.cpp
* openFrameworks
*
* Created by Sander ter Braak on 26-08-10.
*
*/
#include "ofxTweener.h"
ofxTweener Tweener;
ofxTweener::ofxTweener(){
_scale = 1;
setMode(TWEENMODE_OVERRIDE);
}
void ofxTweener::addTween(float &var, float to, float time, void (^callback)(float * arg)){
addTween(var... | 30.208633 | 206 | 0.637056 | itsukichang |
5a7821bce812b57e30493eaad57b046a6b4320a8 | 319 | cpp | C++ | test/io.cpp | victorrseloy/JSCPP-LIVE-REPL | 941b5fd787b05e7ff18327a982b0a225ebfba70f | [
"MIT"
] | 773 | 2015-05-26T23:51:00.000Z | 2022-03-12T13:39:09.000Z | test/io.cpp | victorrseloy/JSCPP-LIVE-REPL | 941b5fd787b05e7ff18327a982b0a225ebfba70f | [
"MIT"
] | 128 | 2015-03-28T09:11:26.000Z | 2022-03-11T09:14:28.000Z | test/io.cpp | victorrseloy/JSCPP-LIVE-REPL | 941b5fd787b05e7ff18327a982b0a225ebfba70f | [
"MIT"
] | 74 | 2015-06-16T08:44:49.000Z | 2022-02-22T18:48:58.000Z | #include "iostream"
#include "iomanip"
using namespace std;
int main() {
double f = 3.14159;
cout << setprecision(5) << f << '\n';
cout << setprecision(9) << f << '\n';
cout << fixed;
cout << setprecision(5) << f << '\n';
cout << setprecision(9) << f << '\n';
cout << setw(15) << f << '\n';
return 0;
} | 22.785714 | 39 | 0.532915 | victorrseloy |
5a7bd61fb13f1c2a6333018f5dd33db02ad43053 | 345 | cpp | C++ | C++/queue/queueTest2.cpp | faber222/Aulas-Prog | 989843c5e0ede5b7a5e8fffbd4c2da80e924ffdb | [
"MIT"
] | null | null | null | C++/queue/queueTest2.cpp | faber222/Aulas-Prog | 989843c5e0ede5b7a5e8fffbd4c2da80e924ffdb | [
"MIT"
] | null | null | null | C++/queue/queueTest2.cpp | faber222/Aulas-Prog | 989843c5e0ede5b7a5e8fffbd4c2da80e924ffdb | [
"MIT"
] | null | null | null | #include <iostream>
#include <queue>
using namespace std;
int main() {
queue<int> q;
q.push(11);
while (!q.empty()) {
int x = q.front();
q.pop();
cout << x << endl;
int y = x / 2;
if (y > 1) {
if ((x % 2)) {
q.push(y - 1);
q.push(y + 1);
} else {
q.pus... | 12.777778 | 22 | 0.402899 | faber222 |
5a7e22263a30f08d591916b4d9b50b99e85f836b | 11,581 | cpp | C++ | source/de/hackcraft/world/sub/computer/rController.cpp | DMJC/linwarrior | 50cd46660c11e58cc6fbc431a150cf55ce0dd682 | [
"Apache-2.0"
] | 23 | 2015-12-08T19:29:10.000Z | 2021-09-22T04:13:31.000Z | source/de/hackcraft/world/sub/computer/rController.cpp | DMJC/linwarrior | 50cd46660c11e58cc6fbc431a150cf55ce0dd682 | [
"Apache-2.0"
] | 7 | 2018-04-30T13:05:57.000Z | 2021-08-25T03:58:07.000Z | source/de/hackcraft/world/sub/computer/rController.cpp | DMJC/linwarrior | 50cd46660c11e58cc6fbc431a150cf55ce0dd682 | [
"Apache-2.0"
] | 4 | 2018-01-25T03:05:19.000Z | 2021-08-25T03:30:15.000Z | #include "rController.h"
#include "de/hackcraft/log/Logger.h"
#include "de/hackcraft/world/Entity.h"
#include "de/hackcraft/world/World.h"
#include "de/hackcraft/world/object/cMech.h"
#include "de/hackcraft/world/sub/weapon/rTarcom.h"
#include <cstdlib>
#include <cassert>
#include <sstream>
using std::string;
L... | 24.640426 | 187 | 0.528711 | DMJC |
5a8379011405bdc4d048a92c93eb0001eb3e44e7 | 1,756 | cpp | C++ | Logger.cpp | alonf/UniversalACRemote | 6d4bb6e475a5f71e264a4b48a757ae182df796aa | [
"MIT"
] | 1 | 2019-12-26T01:11:30.000Z | 2019-12-26T01:11:30.000Z | Logger.cpp | alonf/UniversalACRemote | 6d4bb6e475a5f71e264a4b48a757ae182df796aa | [
"MIT"
] | 1 | 2020-12-06T12:55:01.000Z | 2020-12-06T12:55:01.000Z | Logger.cpp | alonf/UniversalACRemote | 6d4bb6e475a5f71e264a4b48a757ae182df796aa | [
"MIT"
] | null | null | null | #include "Logger.h"
using namespace std;
Logger::Logger(int redLedPin, int greenLedPin, int baudRate /*= 115200*/): _ledsLogger(LedsLogger::Create(redLedPin, greenLedPin))
{
Serial.begin(baudRate);
Serial.setDebugOutput(true);
}
void Logger::OnCommand(const String &commandName, int commandId) const
{
Serial.printl... | 21.679012 | 130 | 0.723235 | alonf |
5a870fd79cf4d1010645b3db87f9e3820b60be81 | 392 | cpp | C++ | 1451/a.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | 1 | 2021-10-24T00:46:37.000Z | 2021-10-24T00:46:37.000Z | 1451/a.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | null | null | null | 1451/a.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
using namespace std;
int solve_x(int x) {
if (x == 1) {
return 0;
} else if (x == 2) {
return 1;
} else if (x & 1) {
return 1 + solve_x(x - 1);
} else {
return 2;
}
}
int solve() {
int n;
scanf("%d", &n);
return solve_x(n);
}
int main() {
int t... | 12.645161 | 30 | 0.484694 | vladshablinsky |
5a9035c976299f8f74d6b077936d00b2cef53368 | 7,932 | hpp | C++ | shared/dumps/UnityEngine_GameObject.hpp | zoller27osu/beatsaber-hook | 83a4bb55ed8b2f9e4c977877bc1b0601fed36f39 | [
"MIT"
] | 1 | 2020-04-22T07:37:13.000Z | 2020-04-22T07:37:13.000Z | shared/dumps/UnityEngine_GameObject.hpp | zoller27osu/beatsaber-hook | 83a4bb55ed8b2f9e4c977877bc1b0601fed36f39 | [
"MIT"
] | null | null | null | shared/dumps/UnityEngine_GameObject.hpp | zoller27osu/beatsaber-hook | 83a4bb55ed8b2f9e4c977877bc1b0601fed36f39 | [
"MIT"
] | null | null | null | #ifndef UnityEngine_GameObject_DEFINED
#define UnityEngine_GameObject_DEFINED
// This .hpp file was compiled via beatsaber-hook/shared/helper.py's Parse Mode.
// Created by Sc2ad.
// Methods may not be valid!
#include <dlfcn.h>
#include <string_view>
#include "../utils/typedefs.h"
#include "../utils/il2cpp-functions.hp... | 73.444444 | 148 | 0.775466 | zoller27osu |
5aa0f5a538f4ade6671944c5a38053e19c403cf2 | 12,382 | tpp | C++ | src/sdm/core/joint.tpp | SDMStudio/sdms | 43a86973081ffd86c091aed69b332f0087f59361 | [
"MIT"
] | null | null | null | src/sdm/core/joint.tpp | SDMStudio/sdms | 43a86973081ffd86c091aed69b332f0087f59361 | [
"MIT"
] | null | null | null | src/sdm/core/joint.tpp | SDMStudio/sdms | 43a86973081ffd86c091aed69b332f0087f59361 | [
"MIT"
] | null | null | null |
#define DEFINE_JOINT(CLASS) \
/* This macro allow to define a specific joint on std::shared_ptr<CLASS> that inherites from CLASS. */ \
template ... | 73.702381 | 194 | 0.220966 | SDMStudio |
5aa87fe1c04f1ac8be1528f7d60a790f841cc03d | 1,330 | cpp | C++ | xenon/src/xenon/core/asset.cpp | Neathan/Xenon | d376337dd086ac8ccb84cbaf97b6537ad6dda8a4 | [
"MIT"
] | 1 | 2021-09-21T23:37:22.000Z | 2021-09-21T23:37:22.000Z | xenon/src/xenon/core/asset.cpp | Neathan/Xenon | d376337dd086ac8ccb84cbaf97b6537ad6dda8a4 | [
"MIT"
] | null | null | null | xenon/src/xenon/core/asset.cpp | Neathan/Xenon | d376337dd086ac8ccb84cbaf97b6537ad6dda8a4 | [
"MIT"
] | null | null | null | #include "asset.h"
#include "xenon/core/log.h"
namespace xe {
void copyAssetMetaRuntimeData(const Asset* source, Asset* target) {
target->metadata.handle = source->metadata.handle;
target->metadata.type = source->metadata.type;
target->metadata.path = source->metadata.path;
target->runtimeData.loaded = sour... | 32.439024 | 68 | 0.696241 | Neathan |
5aab948085ff5abeee86e7106a25b873fbf0d801 | 5,641 | cc | C++ | src/outlinerdebug.cc | jariarkko/cave-outliner | 2077a24627881f45a27aec3eb4e5b4855f6b7fec | [
"BSD-3-Clause"
] | 4 | 2021-09-02T16:52:23.000Z | 2022-02-07T16:39:50.000Z | src/outlinerdebug.cc | jariarkko/cave-outliner | 2077a24627881f45a27aec3eb4e5b4855f6b7fec | [
"BSD-3-Clause"
] | 87 | 2021-09-12T06:09:57.000Z | 2022-02-15T00:05:43.000Z | src/outlinerdebug.cc | jariarkko/cave-outliner | 2077a24627881f45a27aec3eb4e5b4855f6b7fec | [
"BSD-3-Clause"
] | 1 | 2021-09-28T21:38:30.000Z | 2021-09-28T21:38:30.000Z | ///////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////
//
// CCC AAA V V ... | 27.120192 | 95 | 0.423329 | jariarkko |
5aad100adabbe634edb18b10d83f62667ad7bed0 | 478 | cpp | C++ | tests/memory_resource/memory_resource_mini.cpp | olegpublicprofile/stdfwd | 19671bcc8e53bd4c008f07656eaf25a22495e093 | [
"MIT"
] | 11 | 2021-03-15T07:06:21.000Z | 2021-09-27T13:54:25.000Z | tests/memory_resource/memory_resource_mini.cpp | olegpublicprofile/stdfwd | 19671bcc8e53bd4c008f07656eaf25a22495e093 | [
"MIT"
] | null | null | null | tests/memory_resource/memory_resource_mini.cpp | olegpublicprofile/stdfwd | 19671bcc8e53bd4c008f07656eaf25a22495e093 | [
"MIT"
] | 1 | 2021-06-24T10:46:46.000Z | 2021-06-24T10:46:46.000Z | #include "tests/memory_resource/memory_resource_mini.hpp"
#include "tests/memory_resource/memory_resource_fwd.hpp"
//------------------------------------------------------------------------------
namespace memory_resource_tests {
//------------------------------------------------------------------------------
void... | 22.761905 | 80 | 0.374477 | olegpublicprofile |
5ab002f951bce3ed0377049fe0cc750d48f79d99 | 4,303 | ipp | C++ | src/lib/diagrams/bdd_manager_creator.ipp | MichalMrena/DecisionDiagrams | e2e9b949405bd2c1c93ba32c151b60a78620afec | [
"MIT"
] | 1 | 2022-03-17T12:55:30.000Z | 2022-03-17T12:55:30.000Z | src/lib/diagrams/bdd_manager_creator.ipp | MichalMrena/DecisionDiagrams | e2e9b949405bd2c1c93ba32c151b60a78620afec | [
"MIT"
] | null | null | null | src/lib/diagrams/bdd_manager_creator.ipp | MichalMrena/DecisionDiagrams | e2e9b949405bd2c1c93ba32c151b60a78620afec | [
"MIT"
] | null | null | null | #ifndef MIX_DD_bdd_manager_HPP
#include "../bdd_manager.hpp"
#endif
namespace teddy
{
template<class VertexData, class ArcData>
auto bdd_manager<VertexData, ArcData>::variable_not
(index_t const i) -> bdd_t
{
return this->negate(this->variable(i));
}
template<class VertexData, clas... | 33.617188 | 94 | 0.558912 | MichalMrena |
5ab5452484bd28924f5702f898a4fabeb8873687 | 1,590 | cpp | C++ | graph-source-code/350-E/4644199.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/350-E/4644199.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/350-E/4644199.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: GNU C++
#include <stdio.h>
#include <iostream>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#define abs(a) (((a)>0)?(a):(-(a)))
#define max(a, b) (((a)>(b))?(a):(b))
#define min(a, b) (((a)<(b))?(a):(b))
#define N 303
#define oo int(1e9)
#define eps 1e-8
using namespace std;
bool g[N][N],... | 15.588235 | 59 | 0.330189 | AmrARaouf |
5ab7c41752f47e96c7046a5f0bef21e0a5476634 | 3,475 | cpp | C++ | source/AnimationPlayer.cpp | sindney/nest3d-cpp | 033575364c14a48499ddbb0cbf489b7e72b0d9b7 | [
"MIT"
] | 2 | 2018-01-11T13:00:14.000Z | 2018-01-12T02:02:16.000Z | source/AnimationPlayer.cpp | sindney/nest3d-cpp | 033575364c14a48499ddbb0cbf489b7e72b0d9b7 | [
"MIT"
] | null | null | null | source/AnimationPlayer.cpp | sindney/nest3d-cpp | 033575364c14a48499ddbb0cbf489b7e72b0d9b7 | [
"MIT"
] | null | null | null | #include <iterator>
#include "AnimationPlayer.h"
namespace nest
{
using namespace std;
void AnimationPlayer::advanceTime(float dt)
{
time += dt;
int i, j = poses.size();
PoseData *pose = NULL;
AnimationChannel *channel = NULL;
vector<QuatKeyFrame>::iterator k;
QuatKeyFrame *quatFirst = NULL, *quatSe... | 27.579365 | 94 | 0.565755 | sindney |
5ac1a14ceb5b36616b777529e204a4532891459e | 13,823 | cpp | C++ | src/graphics/bloomFFT.cpp | liuhongyi0101/SaturnRender | c6ec7ee39ef14749b09be4ae47f76613c71533cf | [
"MIT"
] | 2 | 2019-12-24T04:00:36.000Z | 2022-01-26T02:44:04.000Z | src/graphics/bloomFFT.cpp | liuhongyi0101/SaturnRender | c6ec7ee39ef14749b09be4ae47f76613c71533cf | [
"MIT"
] | null | null | null | src/graphics/bloomFFT.cpp | liuhongyi0101/SaturnRender | c6ec7ee39ef14749b09be4ae47f76613c71533cf | [
"MIT"
] | 2 | 2020-09-26T04:19:40.000Z | 2021-02-19T07:24:57.000Z | #include "graphics/bloomFFT.h"
#include "utils/loadshader.h"
BloomFFT::BloomFFT(vks::VulkanDevice * vulkanDevice)
{
this->vulkanDevice = vulkanDevice;
this->device = vulkanDevice->logicalDevice;
}
BloomFFT::~BloomFFT()
{
}
// Find and create a compute capable device queue
void BloomFFT::getComputeQueue()
{
uint32... | 43.196875 | 143 | 0.818419 | liuhongyi0101 |
5ac3f2e8ad5d7b8f0836af365f2c48061ba84948 | 604 | cpp | C++ | InterviewBit/Tree Data Structure/TwoSumBinaryTree.cpp | Code-With-Aagam/competitive-programming | 610520cc396fb13a03c606b5fb6739cfd68cc444 | [
"MIT"
] | 2 | 2022-02-08T12:37:41.000Z | 2022-03-09T03:48:56.000Z | InterviewBit/Tree Data Structure/TwoSumBinaryTree.cpp | ShubhamJagtap2000/competitive-programming-1 | 3a9a2e3dd08f8fa8ab823f295cd020d08d3bff84 | [
"MIT"
] | null | null | null | InterviewBit/Tree Data Structure/TwoSumBinaryTree.cpp | ShubhamJagtap2000/competitive-programming-1 | 3a9a2e3dd08f8fa8ab823f295cd020d08d3bff84 | [
"MIT"
] | 2 | 2021-01-23T14:35:48.000Z | 2021-03-15T05:04:24.000Z | /**
* Definition for binary tree
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
void inorder(TreeNode *root, vector<int> &arr) {
if (root == NULL) {
return;
}
inorder(root->left, arr);
arr.push_back(root->... | 18.30303 | 59 | 0.559603 | Code-With-Aagam |
5ac525f8af8438fdc1a9aa2dfa5bfd4d703a8344 | 4,474 | cpp | C++ | src/Jogo/Fases/FaseMontanha.cpp | MatheusKunnen/Jogo-TecProg | 66f4320e51e42d12da74e487cc8552377ce865bb | [
"MIT"
] | null | null | null | src/Jogo/Fases/FaseMontanha.cpp | MatheusKunnen/Jogo-TecProg | 66f4320e51e42d12da74e487cc8552377ce865bb | [
"MIT"
] | null | null | null | src/Jogo/Fases/FaseMontanha.cpp | MatheusKunnen/Jogo-TecProg | 66f4320e51e42d12da74e487cc8552377ce865bb | [
"MIT"
] | null | null | null | //
// FaseMontanha.cpp
// Jogo-SFML
//
// Created by Matheus Kunnen Ledesma on 11/10/19.
// Copyright © 2019 Matheus Kunnen Ledesma. All rights reserved.
//
#include "FaseMontanha.hpp"
namespace Game { namespace Fases {
// Const
const string FaseMontanha::CONFIG_FILE("Resources/config/fase_b_config.json");
// C... | 35.507937 | 194 | 0.660483 | MatheusKunnen |
5ac62f82592e415ee827d5189293c7f3233b15a7 | 165 | cpp | C++ | codeforces/617A.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 3 | 2018-01-08T02:52:51.000Z | 2021-03-03T01:08:44.000Z | codeforces/617A.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | null | null | null | codeforces/617A.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 1 | 2020-08-13T18:07:35.000Z | 2020-08-13T18:07:35.000Z | #include <bits/stdc++.h>
using namespace std;
int main(){
int n;
cin >> n;
int ans = 0;
if(n % 5 != 0) ans++;
printf("%d\n", (n / 5) + ans);
return 0;
}
| 15 | 32 | 0.50303 | cosmicray001 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.