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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e80a3344891983c9a52c9a0cf5ca498c939433b0 | 9,642 | cpp | C++ | src/editorplugins/dynfacteditor/lightdialog.cpp | GarethNelson/ares | fb2b2d25f000a3e0aa974ff08a3f0ec8fc89845e | [
"MIT"
] | null | null | null | src/editorplugins/dynfacteditor/lightdialog.cpp | GarethNelson/ares | fb2b2d25f000a3e0aa974ff08a3f0ec8fc89845e | [
"MIT"
] | null | null | null | src/editorplugins/dynfacteditor/lightdialog.cpp | GarethNelson/ares | fb2b2d25f000a3e0aa974ff08a3f0ec8fc89845e | [
"MIT"
] | null | null | null | /*
The MIT License
Copyright (c) 2012 by Jorrit Tyberghein
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... | 39.842975 | 117 | 0.699959 | GarethNelson |
e80d100fdad6e5201046960b85e138bbcc5c88ba | 307 | cpp | C++ | src/lab_m1/Tema1/Enemy.cpp | iDanyel/Escape-if-you-can | eb7a3c4c4b0ab2adf15e39b4a4d294ed3b10b041 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | src/lab_m1/Tema1/Enemy.cpp | iDanyel/Escape-if-you-can | eb7a3c4c4b0ab2adf15e39b4a4d294ed3b10b041 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | src/lab_m1/Tema1/Enemy.cpp | iDanyel/Escape-if-you-can | eb7a3c4c4b0ab2adf15e39b4a4d294ed3b10b041 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | #include "Enemy.h"
m1::Enemy::Enemy(const glm::vec3& pos, const std::pair<float, float>& size,
const float speed, const float maxHealth, Game* const game) : Entity(pos, size, speed, game) {
this->maxHealth = maxHealth;
currHealth = maxHealth;
}
float m1::Enemy::getHealth() {
return currHealth;
}
| 25.583333 | 99 | 0.693811 | iDanyel |
e80dae95c893386a6ae0fcbbfd0600462c08162d | 53 | cpp | C++ | PolyEngine/Core/Src/Math/Vector3f.cpp | PiotrMoscicki/PolyEngine | 573c453e9d1ae0a351ad14410595ff844e3b4620 | [
"MIT"
] | 65 | 2017-04-04T20:33:44.000Z | 2019-12-02T23:06:58.000Z | PolyEngine/Core/Src/Math/Vector3f.cpp | PiotrMoscicki/PolyEngine | 573c453e9d1ae0a351ad14410595ff844e3b4620 | [
"MIT"
] | 46 | 2017-04-21T12:26:38.000Z | 2019-12-15T05:31:47.000Z | PolyEngine/Core/Src/Math/Vector3f.cpp | PiotrMoscicki/PolyEngine | 573c453e9d1ae0a351ad14410595ff844e3b4620 | [
"MIT"
] | 51 | 2017-04-12T10:53:32.000Z | 2019-11-20T13:05:54.000Z | #include <CorePCH.hpp>
#include <Math/Vector3f.hpp>
| 13.25 | 28 | 0.735849 | PiotrMoscicki |
e80ee9a8a449584304085e7d88cec65010dca246 | 781 | cpp | C++ | LinkedList_stack_queue/bob and towers.cpp | krithikha2001/acm-summer-challenge-2021 | 97f11e6346e93775e1358290ce46b44099d3feef | [
"MIT"
] | 2 | 2021-06-30T12:58:00.000Z | 2021-06-30T13:02:25.000Z | LinkedList_stack_queue/bob and towers.cpp | krithikha2001/acm-summer-challenge-2021 | 97f11e6346e93775e1358290ce46b44099d3feef | [
"MIT"
] | null | null | null | LinkedList_stack_queue/bob and towers.cpp | krithikha2001/acm-summer-challenge-2021 | 97f11e6346e93775e1358290ce46b44099d3feef | [
"MIT"
] | 3 | 2021-07-01T09:11:40.000Z | 2021-11-11T12:57:12.000Z |
#include <bits/stdc++.h>
#define ll long long
using namespace std;
int main() {
int n;
cin >> n; // Reading input from STDIN
ll a[n];
for(int i=0;i<n;i++)
{
cin>>a[i];
}
ll ans = 0;
int f=0;
ll sum=0,min=LLONG_MAX;
for(int start_index = 0;start_index < n; ++start_index) //O(n)
{
sum = ... | 15.62 | 84 | 0.569782 | krithikha2001 |
e8159b9aa39c585be8e64f3d6571e4b8b8663aea | 34,182 | cpp | C++ | code/src/engine/file/system_inotify.cpp | shossjer/fimbulwinter | d894e4bddb5d2e6dc31a8112d245c6a1828604e3 | [
"0BSD"
] | 3 | 2020-04-29T14:55:58.000Z | 2020-08-20T08:43:24.000Z | code/src/engine/file/system_inotify.cpp | shossjer/fimbulwinter | d894e4bddb5d2e6dc31a8112d245c6a1828604e3 | [
"0BSD"
] | 1 | 2022-03-12T11:37:46.000Z | 2022-03-12T20:17:38.000Z | code/src/engine/file/system_inotify.cpp | shossjer/fimbulwinter | d894e4bddb5d2e6dc31a8112d245c6a1828604e3 | [
"0BSD"
] | null | null | null | #include "config.h"
#if FILE_SYSTEM_USE_POSIX
#include "core/async/Thread.hpp"
#include "core/container/Collection.hpp"
#include "core/ReadStream.hpp"
#include "core/sync/Event.hpp"
#include "core/WriteStream.hpp"
#include "engine/Asset.hpp"
#include "engine/file/system.hpp"
#include "engine/file/watch/watch.hpp"
#i... | 27.214968 | 314 | 0.664385 | shossjer |
e816241170cb623a488a0f1af409c16c1c9e46ef | 863 | cpp | C++ | Switch Case.cpp | RafelNunes/ifsc-programacao | 40622fb1a5496e09f4800220e293385468fef323 | [
"MIT"
] | null | null | null | Switch Case.cpp | RafelNunes/ifsc-programacao | 40622fb1a5496e09f4800220e293385468fef323 | [
"MIT"
] | null | null | null | Switch Case.cpp | RafelNunes/ifsc-programacao | 40622fb1a5496e09f4800220e293385468fef323 | [
"MIT"
] | null | null | null | #include<stdio.h>
int main()
{
int mes;
printf("Digite um numero referente ao mes do ano:");
scanf("%d", &mes);
switch (mes)
{
case 1 :
printf("\nJaneiro: 31 dias.\n");
break;
case 2 :
printf("\nFevereiro: 28 dias.\n");
break;
case 3 :
printf("\nMarco: 31 dias.\n");
break;
case 4 :
... | 15.981481 | 53 | 0.559676 | RafelNunes |
e8167437f0fd2f9887e658e3a7f5f3764b2da650 | 1,786 | hpp | C++ | include/PiComplexObject.hpp | echo-Mike/SARW-UEFITreeBuilder | e4ab988b1dedf6dce20341ff80f3c6bbdc83e7e6 | [
"MIT"
] | null | null | null | include/PiComplexObject.hpp | echo-Mike/SARW-UEFITreeBuilder | e4ab988b1dedf6dce20341ff80f3c6bbdc83e7e6 | [
"MIT"
] | null | null | null | include/PiComplexObject.hpp | echo-Mike/SARW-UEFITreeBuilder | e4ab988b1dedf6dce20341ff80f3c6bbdc83e7e6 | [
"MIT"
] | null | null | null | #pragma once
#ifndef PI_COMPLEX_OBJECTS_HPP__
#define PI_COMPLEX_OBJECTS_HPP__ "0.0.0@PiComplexObject.hpp"
/// PROJECT
#include "PiObject.hpp"
namespace Project
{
namespace PiObject
{
struct ComplexObject :
public Object
{
typedef Object Base;
ComplexObject( const MemoryView& baseBuffer, const Memo... | 22.897436 | 100 | 0.679171 | echo-Mike |
e81ac90b5df735a81ec621373996e522e9a55c5d | 999 | hh | C++ | src/Hydro/HybridMassDensityPolicyInline.hh | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 22 | 2018-07-31T21:38:22.000Z | 2020-06-29T08:58:33.000Z | src/Hydro/HybridMassDensityPolicyInline.hh | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | src/Hydro/HybridMassDensityPolicyInline.hh | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | namespace Spheral {
//------------------------------------------------------------------------------
// Weight scale value.
//------------------------------------------------------------------------------
template<typename Dimension>
inline
typename Dimension::Scalar
HybridMassDensityPolicy<Dimension>::
weightScale() ... | 27 | 80 | 0.401401 | jmikeowen |
e81bd8c9b42323341c3274c6a6119f20f3210589 | 2,571 | cpp | C++ | src/graphs/createRegular.cpp | wmotte/toolkid | 2a8f82e1492c9efccde9a4935ce3019df1c68cde | [
"MIT"
] | null | null | null | src/graphs/createRegular.cpp | wmotte/toolkid | 2a8f82e1492c9efccde9a4935ce3019df1c68cde | [
"MIT"
] | null | null | null | src/graphs/createRegular.cpp | wmotte/toolkid | 2a8f82e1492c9efccde9a4935ce3019df1c68cde | [
"MIT"
] | null | null | null | #include "itkImage.h"
#include "itkImageFileWriter.h"
#include "itkNumericTraits.h"
#include "vnl/vnl_matrix_ref.h"
#include "vnl/vnl_matrix.h"
#include "tkdCmdParser.h"
/**
* Date: 16-11-2009
*/
class CreateRegular {
public:
typedef double PixelType;
typedef itk::Image< PixelType, 2 > ImageType;
typedef vnl_m... | 23.372727 | 145 | 0.643329 | wmotte |
e820b95bfc2fb1d3c60795a12b8792983892ebc0 | 4,515 | cc | C++ | src/ReconstructionFFD.cc | ZSVR/ZSVR | 667b937603daf0494870f3bc32dce8567c8690f2 | [
"Apache-2.0"
] | null | null | null | src/ReconstructionFFD.cc | ZSVR/ZSVR | 667b937603daf0494870f3bc32dce8567c8690f2 | [
"Apache-2.0"
] | null | null | null | src/ReconstructionFFD.cc | ZSVR/ZSVR | 667b937603daf0494870f3bc32dce8567c8690f2 | [
"Apache-2.0"
] | null | null | null | /*
* SVRTK : SVR reconstruction based on MIRTK
*
* Copyright 2018-2020 King's College London
*
* 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/li... | 40.3125 | 120 | 0.614175 | ZSVR |
e822b3b93f8d6bf2e1c1d4276d2ec75c196fe4a2 | 1,592 | cpp | C++ | ianlmk/cs161b/zybooks/12.2.1.cpp | ianlmk/cs161 | 7a50740d1642ca0111a6d0d076b600744552a066 | [
"MIT"
] | null | null | null | ianlmk/cs161b/zybooks/12.2.1.cpp | ianlmk/cs161 | 7a50740d1642ca0111a6d0d076b600744552a066 | [
"MIT"
] | 1 | 2022-03-25T18:34:47.000Z | 2022-03-25T18:35:23.000Z | ianlmk/cs161b/zybooks/12.2.1.cpp | ianlmk/cs161 | 7a50740d1642ca0111a6d0d076b600744552a066 | [
"MIT"
] | null | null | null | // author:
// name:
// description:
// purpose:
// date:
#include <iostream>
#include <iomanip>
#include <cstring>
using namespace std;
// Constants
// f(x) prototypes
void copy(char [], char []);
void copyn(char [], char [], int);
void concat(char []... | 22.111111 | 81 | 0.620603 | ianlmk |
e82422e01b4c703ca17d7b15deb8b882891a5428 | 452 | cpp | C++ | test/lib/test_input_struct_field_user2.cpp | losalamos/CoARCT | 9fa4a96aa338bfdf78fed1cd1370942967562602 | [
"BSD-3-Clause"
] | 108 | 2017-02-09T17:56:35.000Z | 2022-02-14T12:35:45.000Z | test/lib/test_input_struct_field_user2.cpp | losalamos/CoARCT | 9fa4a96aa338bfdf78fed1cd1370942967562602 | [
"BSD-3-Clause"
] | 3 | 2017-10-11T22:41:41.000Z | 2020-04-06T13:18:42.000Z | test/lib/test_input_struct_field_user2.cpp | losalamos/CoARCT | 9fa4a96aa338bfdf78fed1cd1370942967562602 | [
"BSD-3-Clause"
] | 15 | 2017-02-15T22:55:32.000Z | 2022-01-25T12:00:39.000Z | struct Y{
int m_sfield1;
float m_sfield2;
Y() : m_sfield1(0), m_sfield2(1.0f){}
};
class X{
int m_fld1;
const char * m_fld2;
Y m_fld3;
public:
X() : m_fld2("lel"){}
virtual ~X(){}
void func1(const char *s){
m_fld1 += 2;
m_fld2 = s;
}
int func2(){
return m_fld1 + 5;
}
void func3(Y... | 14.580645 | 39 | 0.544248 | losalamos |
e828b523beedda707714288aae6ec7d866c9333a | 357 | cpp | C++ | luogu/p1044.cpp | devillove084/Codeforces | 5536af5556bef92c3874551b75bcba84fcf46d57 | [
"MIT"
] | null | null | null | luogu/p1044.cpp | devillove084/Codeforces | 5536af5556bef92c3874551b75bcba84fcf46d57 | [
"MIT"
] | null | null | null | luogu/p1044.cpp | devillove084/Codeforces | 5536af5556bef92c3874551b75bcba84fcf46d57 | [
"MIT"
] | null | null | null | #include <iostream>
#define ll unsigned long long
using namespace std;
int ans = 0;
ll f[20][20] = {0};
ll dfs(int i, int j) {
if (f[i][j]) return f[i][j];
if (i == 0) return 1;
if (j > 0) f[i][j] += dfs(i, j-1);
f[i][j] += dfs(i-1, j-1);
return f[i][j];
}
int main() {
int n;
cin>>n;
c... | 17.85 | 38 | 0.492997 | devillove084 |
e828e5e23fec18717790d3b8042b87a839524d25 | 390 | cpp | C++ | jni/application/Utility.cpp | clarkdonald/eecs494explore3d | fd4086d2c5482a289d51ef71c5f1ae20347db80a | [
"BSD-2-Clause"
] | null | null | null | jni/application/Utility.cpp | clarkdonald/eecs494explore3d | fd4086d2c5482a289d51ef71c5f1ae20347db80a | [
"BSD-2-Clause"
] | null | null | null | jni/application/Utility.cpp | clarkdonald/eecs494explore3d | fd4086d2c5482a289d51ef71c5f1ae20347db80a | [
"BSD-2-Clause"
] | null | null | null | //
// Utility.cpp
// game
//
// Created by Donald Clark on 10/26/13.
//
//
#include "Utility.h"
Controls::Controls()
: forward(false),
left(false),
back(false),
right(false),
pickup_item(false),
use_item(false),
shooting_arrow(false)
{}
Dimension::Dimension()
: width(0),
height(0)
{}
Dimension::Dim... | 13 | 45 | 0.648718 | clarkdonald |
e82e065f44f85cc6f217ee661d934ff989d026ea | 1,283 | cxx | C++ | test/msgServer.cxx | dfove/athena | be9aac3cbd9c8f12c8b6d1fea7b6fb404179e6ec | [
"Apache-2.0"
] | null | null | null | test/msgServer.cxx | dfove/athena | be9aac3cbd9c8f12c8b6d1fea7b6fb404179e6ec | [
"Apache-2.0"
] | null | null | null | test/msgServer.cxx | dfove/athena | be9aac3cbd9c8f12c8b6d1fea7b6fb404179e6ec | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2021 dfove.com Authors. 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... | 27.891304 | 99 | 0.614186 | dfove |
e82fb13ff6594b009d1baacaab3df3498105e38d | 2,374 | cpp | C++ | LeetCode/ThousandTwo/1036-escape_a_large_maze.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandTwo/1036-escape_a_large_maze.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandTwo/1036-escape_a_large_maze.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | #include "leetcode.hpp"
/* 1036. 逃离大迷宫
在一个 10^6 x 10^6 的网格中,每个网格块的坐标为 (x, y),其中 0 <= x, y < 10^6。
我们从源方格 source 开始出发,意图赶往目标方格 target。
每次移动,我们都可以走到网格中在四个方向上相邻的方格,只要该方格不在给出的封锁列表 blocked 上。
只有在可以通过一系列的移动到达目标方格时才返回 true。否则,返回 false。
示例 1:
输入:blocked = [[0,1],[1,0]], source = [0,0], target = [0,2]
输出:false
解释:
从源方格无法到... | 21.981481 | 58 | 0.60952 | Ginkgo-Biloba |
e82fc119253fd65750fa0a0745f76f65d9b984e3 | 859 | cpp | C++ | codes/c++/64.cpp | YuanweiZHANG/Leetcode | 14a083528431bc65ada8f8265a5ef9d0fae40ecd | [
"MIT"
] | null | null | null | codes/c++/64.cpp | YuanweiZHANG/Leetcode | 14a083528431bc65ada8f8265a5ef9d0fae40ecd | [
"MIT"
] | null | null | null | codes/c++/64.cpp | YuanweiZHANG/Leetcode | 14a083528431bc65ada8f8265a5ef9d0fae40ecd | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
/**
* 2020-04-10
* Veronica
*/
class Solution {
public:
int minPathSum(vector<vector<int>>& grid) {
int m = grid.size();
if (m == 0)
return 0;
int n = grid[0].size();
if (n == 0)
return 0;
vector<int> pathSum(m);
for (in... | 17.895833 | 63 | 0.507567 | YuanweiZHANG |
e831b27cb088ec210be7262018156b4b0498d3d2 | 5,592 | cpp | C++ | lib/core/file_header.cpp | paulhuggett/pstore2 | a0c663d10a2e2713fdf39ecdae1f9c1e96041f5c | [
"Apache-2.0"
] | 11 | 2018-02-02T21:24:49.000Z | 2020-12-11T04:06:03.000Z | lib/core/file_header.cpp | SNSystems/pstore | 74e9dd960245d6bfc125af03ed964d8ad660a62d | [
"Apache-2.0"
] | 63 | 2018-02-05T17:24:59.000Z | 2022-03-22T17:26:28.000Z | lib/core/file_header.cpp | paulhuggett/pstore | 067be94d87c87fce524c8d76c6f47c347d8f1853 | [
"Apache-2.0"
] | 5 | 2020-01-13T22:47:11.000Z | 2021-05-14T09:31:15.000Z | //===- lib/core/file_header.cpp -------------------------------------------===//
//* __ _ _ _ _ *
//* / _(_) | ___ | |__ ___ __ _ __| | ___ _ __ *
//* | |_| | |/ _ \ | '_ \ / _ \/ _` |/ _` |/ _ \ '__| *
//* | _| | | __/ | | | | __/ (_| | (_| | __/ | *
//* |_| |_|_|\_... | 33.890909 | 98 | 0.489092 | paulhuggett |
e8390ea94ec23e60f6d850dae16772e042ad38b0 | 1,202 | cpp | C++ | Problems/521_Permutation_Practical/14889_Start_And_Link/main.cpp | usernameSplash/BOJ | 3b76674267aa49e7a604c3ce8df06dbe8869baa3 | [
"MIT"
] | 2 | 2020-12-06T15:29:21.000Z | 2020-12-07T14:37:14.000Z | Problems/521_Permutation_Practical/14889_Start_And_Link/main.cpp | usernameSplash/BOJ | 3b76674267aa49e7a604c3ce8df06dbe8869baa3 | [
"MIT"
] | 1 | 2020-12-22T14:25:22.000Z | 2020-12-22T14:25:22.000Z | Problems/521_Permutation_Practical/14889_Start_And_Link/main.cpp | usernameSplash/BOJ | 3b76674267aa49e7a604c3ce8df06dbe8869baa3 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <vector>
#include <utility>
using namespace std;
void cppIOInitialize()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
}
int Calculation(vector<vector<int>> &data, vector<int> &order)
{
int n = data.size();
int val1 = 0, val2 =... | 17.676471 | 62 | 0.491681 | usernameSplash |
e8390edb98afc524c4dba69d4760faa18902bbe9 | 6,654 | cc | C++ | vio/VioSocket.cc | euleryang/mysql-server-mysql-323-31 | f9346bfa3055f2217fe183bcb182aa6f39bca4d9 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | vio/VioSocket.cc | euleryang/mysql-server-mysql-323-31 | f9346bfa3055f2217fe183bcb182aa6f39bca4d9 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | vio/VioSocket.cc | euleryang/mysql-server-mysql-323-31 | f9346bfa3055f2217fe183bcb182aa6f39bca4d9 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | /* Copyright Abandoned 2000 Monty Program KB
This file is public domain and comes with NO WARRANTY of any kind */
/*
** Virtual I/O library
** Written by Andrei Errapart <andreie@no.spam.ee>
*/
#include "vio-global.h"
#ifdef __GNUC__
#pragma implementation // gcc: Class implementation
#endif
#include <asser... | 20.348624 | 84 | 0.646378 | euleryang |
e8469ee4388c72d8eff129ef73ceeb5752407221 | 1,967 | cpp | C++ | example/eagine/sudoku_solver.cpp | matus-chochlik/eagine-core | 5bc2d6b9b053deb3ce6f44f0956dfccd75db4649 | [
"BSL-1.0"
] | 1 | 2022-01-25T10:31:51.000Z | 2022-01-25T10:31:51.000Z | example/eagine/sudoku_solver.cpp | matus-chochlik/eagine-core | 5bc2d6b9b053deb3ce6f44f0956dfccd75db4649 | [
"BSL-1.0"
] | null | null | null | example/eagine/sudoku_solver.cpp | matus-chochlik/eagine-core | 5bc2d6b9b053deb3ce6f44f0956dfccd75db4649 | [
"BSL-1.0"
] | null | null | null | /// @example eagine/sudoku_solver.cpp
///
/// Copyright Matus Chochlik.
/// Distributed under the Boost Software License, Version 1.0.
/// See accompanying file LICENSE_1_0.txt or copy at
/// http://www.boost.org/LICENSE_1_0.txt
///
#include <eagine/program_args.hpp>
#include <eagine/sudoku.hpp>
#include <iostream>
#i... | 28.507246 | 79 | 0.59634 | matus-chochlik |
e84bdf3602eead5b9fdcf1972932e28a79375bdf | 2,613 | cpp | C++ | src/api/c/moddims.cpp | ckeitz/arrayfire | a1a1bbbc8487a032eb27a6c894b1b3dfb19d123b | [
"BSD-3-Clause"
] | null | null | null | src/api/c/moddims.cpp | ckeitz/arrayfire | a1a1bbbc8487a032eb27a6c894b1b3dfb19d123b | [
"BSD-3-Clause"
] | null | null | null | src/api/c/moddims.cpp | ckeitz/arrayfire | a1a1bbbc8487a032eb27a6c894b1b3dfb19d123b | [
"BSD-3-Clause"
] | null | null | null | /*******************************************************
* Copyright (c) 2014, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
**********************************************... | 27.505263 | 68 | 0.575966 | ckeitz |
e855801428231f18caadb48f91a2fa75c8cef152 | 3,246 | cpp | C++ | source/pepper/freelook_camera_controller.cpp | omnigoat/shiny | e5ecaeaca7fdacf660939b2bb21de6e9f97b9463 | [
"MIT"
] | 4 | 2016-01-25T16:37:14.000Z | 2016-05-07T17:43:59.000Z | source/pepper/freelook_camera_controller.cpp | omnigoat/shiny | e5ecaeaca7fdacf660939b2bb21de6e9f97b9463 | [
"MIT"
] | 2 | 2015-02-12T07:18:22.000Z | 2016-10-23T11:58:25.000Z | source/pepper/freelook_camera_controller.cpp | omnigoat/shiny | e5ecaeaca7fdacf660939b2bb21de6e9f97b9463 | [
"MIT"
] | null | null | null | #include <pepper/freelook_camera_controller.hpp>
#include <fooey/events/mouse.hpp>
#include <fooey/keys.hpp>
using namespace pepper;
using pepper::freelook_camera_controller_t;
#pragma warning(disable: 4351)
freelook_camera_controller_t::freelook_camera_controller_t(fooey::window_ptr const& window)
: wind... | 29.779817 | 118 | 0.624153 | omnigoat |
e858011acf0ec1c33e4ff8f5ccb7676e59255776 | 2,472 | hpp | C++ | arm_linux/s5c-app/goTexture.hpp | jianingchen/scamp5c | 6779116b8072c1cb9b4e8ab2f5bf7075a04c3b82 | [
"MIT"
] | 5 | 2017-03-22T09:47:39.000Z | 2018-12-26T07:35:24.000Z | arm_linux/s5c-app/goTexture.hpp | jianingchen/scamp5c | 6779116b8072c1cb9b4e8ab2f5bf7075a04c3b82 | [
"MIT"
] | 2 | 2016-10-13T16:36:03.000Z | 2016-10-14T09:44:12.000Z | arm_linux/s5c-app/goTexture.hpp | jianingchen/scamp5c | 6779116b8072c1cb9b4e8ab2f5bf7075a04c3b82 | [
"MIT"
] | null | null | null |
#ifndef GO_TEXTURE_H
#define GO_TEXTURE_H
#include <cstdio>
#include <cstdint>
#include <cstdlib>
#ifdef USE_OPENGL_ES
#define GL_GLEXT_PROTOTYPES
#include <GLES2/gl2.h>
#else
#include <GL/gl.h>
#endif
#define JC_IMAGE_MAX_WIDTH 8192
#define JC_IMAGE_MAX_HEIGHT 8192
#define JC_IMAGE_FORMAT_NONE 0
#define ... | 22.888889 | 120 | 0.69377 | jianingchen |
e859fe78a57a77406b2c6640b43d2c705288690a | 810 | hpp | C++ | CLL/include/functions/rand.hpp | PercentEquals/CLL | 43febcc988bc2b81cfa8e3c2f9962fc299e28ebe | [
"MIT"
] | 5 | 2019-09-16T15:30:03.000Z | 2020-09-19T22:01:44.000Z | CLL/include/functions/rand.hpp | PercentEquals/CLL | 43febcc988bc2b81cfa8e3c2f9962fc299e28ebe | [
"MIT"
] | 8 | 2019-08-09T16:19:16.000Z | 2021-12-03T00:34:17.000Z | CLL/include/functions/rand.hpp | PercentEquals/CLL | 43febcc988bc2b81cfa8e3c2f9962fc299e28ebe | [
"MIT"
] | null | null | null | #pragma once
#include "../var.hpp"
#include <vector>
#include <random>
namespace cll
{
var rand(const std::vector<var>& args)
{
double low = 0.0, high = 1.0;
static std::random_device rd;
static std::mt19937 random_engine;
random_engine.seed(rd());
if (args.empty())
{
std::uniform_real_distributio... | 18 | 58 | 0.596296 | PercentEquals |
e85c1ae25b952c7002d8a1db13613b2df63689d9 | 5,634 | cpp | C++ | evo-X-Scriptdev2/scripts/northrend/icecrown.cpp | Gigelf-evo-X/evo-X | d0e68294d8cacfc7fb3aed5572f51d09a47136b9 | [
"OpenSSL"
] | 1 | 2019-01-19T06:35:40.000Z | 2019-01-19T06:35:40.000Z | src/bindings/Scriptdev2/scripts/northrend/icecrown.cpp | mfooo/wow | 3e5fad4cfdf0fd1c0a2fd7c9844e6f140a1bb32d | [
"OpenSSL"
] | null | null | null | src/bindings/Scriptdev2/scripts/northrend/icecrown.cpp | mfooo/wow | 3e5fad4cfdf0fd1c0a2fd7c9844e6f140a1bb32d | [
"OpenSSL"
] | null | null | null | /* Copyright (C) 2006 - 2010 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any l... | 37.56 | 138 | 0.72595 | Gigelf-evo-X |
e85ca2b8b19c036d8dcda174bf8439fe13ee7223 | 6,521 | cpp | C++ | source/Builders.cpp | TheBuzzSaw/Nullocity | 5b313366a3110e0b59c2fa734bb4eadaa914b586 | [
"Unlicense"
] | null | null | null | source/Builders.cpp | TheBuzzSaw/Nullocity | 5b313366a3110e0b59c2fa734bb4eadaa914b586 | [
"Unlicense"
] | null | null | null | source/Builders.cpp | TheBuzzSaw/Nullocity | 5b313366a3110e0b59c2fa734bb4eadaa914b586 | [
"Unlicense"
] | null | null | null | #include "Builders.hpp"
#include <SDL2TK/Vector.hpp>
using namespace SDL2TK;
static const float RootTwo = 1.414213562f;
static const Vector4F Black(0.0f, 0.0f, 0.0f, 1.0f);
static const Vector4F Red(1.0f, 0.0f, 0.0f, 1.0f);
static const Vector4F Green(0.0f, 1.0f, 0.0f, 1.0f);
static const Vector4F Blue(0.0f, 0.0f, 1.... | 27.748936 | 77 | 0.595307 | TheBuzzSaw |
e85d87651744c7fd97af494fbc3a57464a0ed4cd | 736 | cpp | C++ | source/Tools/TrollEditor/Project/Displayable.cpp | DragonJoker/Elypse | 5dce65ba97fb830349d157da77d9dc151cccc70e | [
"MIT"
] | 9 | 2017-12-06T17:21:56.000Z | 2020-11-15T14:06:07.000Z | source/Tools/TrollEditor/Project/Displayable.cpp | DragonJoker/Elypse | 5dce65ba97fb830349d157da77d9dc151cccc70e | [
"MIT"
] | null | null | null | source/Tools/TrollEditor/Project/Displayable.cpp | DragonJoker/Elypse | 5dce65ba97fb830349d157da77d9dc151cccc70e | [
"MIT"
] | 1 | 2020-01-08T05:20:05.000Z | 2020-01-08T05:20:05.000Z | #include "Displayable.h"
#include "GUI/Properties/Common/ObjectProperty.h"
#include "GUI/Properties/Common/PropertiesHolder.h"
namespace Troll
{
namespace ProjectComponents
{
Displayable::Displayable()
{
}
Displayable::~Displayable()
{
if ( m_properties )
{
delete m_properties;
}
}
GUI:... | 18.4 | 98 | 0.697011 | DragonJoker |
e85e25cfe0ba015f4cadc660a1f76966d8d05f71 | 5,604 | hpp | C++ | src/main/tcc/Sequence.hpp | cc4s/cc4s | bff205f8fc98f29d4b9ff8f8b6faffbda50a8555 | [
"Apache-2.0"
] | null | null | null | src/main/tcc/Sequence.hpp | cc4s/cc4s | bff205f8fc98f29d4b9ff8f8b6faffbda50a8555 | [
"Apache-2.0"
] | null | null | null | src/main/tcc/Sequence.hpp | cc4s/cc4s | bff205f8fc98f29d4b9ff8f8b6faffbda50a8555 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2021 cc4s.org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wri... | 29.494737 | 77 | 0.638116 | cc4s |
e85e7fbeec171e44fa32d11a40b5fbe2448d3df3 | 3,700 | h++ | C++ | css/property/animation.h++ | rubenvb/skui | 5bda2d73232eb7a763ba9d788c7603298767a7d7 | [
"MIT"
] | 19 | 2016-10-13T22:44:31.000Z | 2021-12-28T20:28:15.000Z | css/property/animation.h++ | rubenvb/skui | 5bda2d73232eb7a763ba9d788c7603298767a7d7 | [
"MIT"
] | 1 | 2021-05-16T15:15:22.000Z | 2021-05-16T17:01:26.000Z | css/property/animation.h++ | rubenvb/skui | 5bda2d73232eb7a763ba9d788c7603298767a7d7 | [
"MIT"
] | 4 | 2017-03-07T05:37:02.000Z | 2018-06-05T03:14:48.000Z | /**
* The MIT License (MIT)
*
* Copyright © 2019 Ruben Van Boxem
*
* 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 us... | 28.244275 | 82 | 0.695135 | rubenvb |
e860c53685c699f1b39a8c4376fbdcde0d0330d3 | 16,635 | cpp | C++ | src/sfizz/Opcode.cpp | psav/sfizz | 320f5d62b7aa4bf262a70b9d8b76c93b56426e44 | [
"BSD-2-Clause"
] | null | null | null | src/sfizz/Opcode.cpp | psav/sfizz | 320f5d62b7aa4bf262a70b9d8b76c93b56426e44 | [
"BSD-2-Clause"
] | null | null | null | src/sfizz/Opcode.cpp | psav/sfizz | 320f5d62b7aa4bf262a70b9d8b76c93b56426e44 | [
"BSD-2-Clause"
] | null | null | null | // SPDX-License-Identifier: BSD-2-Clause
// This code is part of the sfizz library and is licensed under a BSD 2-clause
// license. You should have receive a LICENSE.md file along with the code.
// If not, contact the sfizz maintainers at https://github.com/sfztools/sfizz
#include "Opcode.h"
#include "LFODescription.... | 31.565465 | 110 | 0.622723 | psav |
e86abfa96b906e2688e2d49afdf1bddb802ab9b4 | 18,743 | cpp | C++ | src/System/SystemStatus.cpp | dmalysiak/Lazarus | 925d92843e311d2cd5afd437766563d0d5ab9052 | [
"Apache-2.0"
] | 1 | 2019-04-29T05:31:32.000Z | 2019-04-29T05:31:32.000Z | src/System/SystemStatus.cpp | dmalysiak/Lazarus | 925d92843e311d2cd5afd437766563d0d5ab9052 | [
"Apache-2.0"
] | null | null | null | src/System/SystemStatus.cpp | dmalysiak/Lazarus | 925d92843e311d2cd5afd437766563d0d5ab9052 | [
"Apache-2.0"
] | null | null | null | /*
* SystemStatus.cpp
*
* Created on: 27.06.2013
* Author: darius
*/
#include "SystemStatus.h"
#include "../Toolbox.h"
#include <string.h>
#include <stdio.h>
#include <sys/sysinfo.h>
namespace Lazarus {
SystemStatus::SystemStatus(bool update) {
m_cpu_count = 0;
//determine the number of cpus
FILE... | 27.891369 | 157 | 0.696527 | dmalysiak |
e86c02f66d71258203951b5bb5465b4986bd4b5e | 51,699 | cpp | C++ | NOLF/ClientShellDLL/LayoutMgr.cpp | rastrup/no-one-lives-forever | dfbe22fb4cc01bf7e5f54a79174fa8f108dd2f54 | [
"Unlicense"
] | 65 | 2015-02-28T03:35:14.000Z | 2021-09-23T05:43:33.000Z | NOLF/ClientShellDLL/LayoutMgr.cpp | rastrup/no-one-lives-forever | dfbe22fb4cc01bf7e5f54a79174fa8f108dd2f54 | [
"Unlicense"
] | null | null | null | NOLF/ClientShellDLL/LayoutMgr.cpp | rastrup/no-one-lives-forever | dfbe22fb4cc01bf7e5f54a79174fa8f108dd2f54 | [
"Unlicense"
] | 27 | 2015-02-28T07:42:01.000Z | 2022-02-11T01:35:20.000Z | // LayoutMgr.cpp: implementation of the CLayoutMgr class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "LayoutMgr.h"
#define LO_BASIC_TAG "BasicLayout"
#define LO_SELECT_TAG "SelectionLayout"
#define LO_DEFAULT_TAG "GenericFolder"
#defi... | 26.842679 | 102 | 0.712354 | rastrup |
e871dd14c210e02d53fc30fc1df6099d4415e5e6 | 7,522 | cpp | C++ | Sources/Display/ImageProviders/JPEGLoader/jpeg_rgb_decoder.cpp | ValtoFrameworks/ClanLib | 2d6b59386ce275742653b354a1daab42cab7cb3e | [
"Linux-OpenIB"
] | null | null | null | Sources/Display/ImageProviders/JPEGLoader/jpeg_rgb_decoder.cpp | ValtoFrameworks/ClanLib | 2d6b59386ce275742653b354a1daab42cab7cb3e | [
"Linux-OpenIB"
] | null | null | null | Sources/Display/ImageProviders/JPEGLoader/jpeg_rgb_decoder.cpp | ValtoFrameworks/ClanLib | 2d6b59386ce275742653b354a1daab42cab7cb3e | [
"Linux-OpenIB"
] | null | null | null | /*
** ClanLib SDK
** Copyright (c) 1997-2016 The ClanLib Team
**
** This software is provided 'as-is', without any express or implied
** warranty. In no event will the authors be held liable for any damages
** arising from the use of this software.
**
** Permission is granted to anyone to use this software for a... | 28.709924 | 235 | 0.641851 | ValtoFrameworks |
e8818d264c315b23893caadf774f0b3a098a2ecd | 350 | hpp | C++ | source/shared/engine/inetworkvar.hpp | Spirrwell/AMEngine | 9edc38af84bdb2f37ba0d988f5a9cb6d6250d0b7 | [
"MIT"
] | 2 | 2020-10-15T07:32:02.000Z | 2020-12-01T22:42:55.000Z | source/shared/engine/inetworkvar.hpp | Spirrwell/AMEngine | 9edc38af84bdb2f37ba0d988f5a9cb6d6250d0b7 | [
"MIT"
] | null | null | null | source/shared/engine/inetworkvar.hpp | Spirrwell/AMEngine | 9edc38af84bdb2f37ba0d988f5a9cb6d6250d0b7 | [
"MIT"
] | null | null | null | #ifndef INETWORKVAR_HPP
#define INETWORKVAR_HPP
#include <cstdlib>
class INetworkVar
{
friend class NetworkTable;
public:
virtual void *data() = 0;
virtual size_t sizeofElement() = 0;
virtual bool StateChanged() = 0;
protected:
virtual void SetData( char *pData ) = 0;
virtual void SetSize( size_t size ) = 0;... | 16.666667 | 41 | 0.725714 | Spirrwell |
e8854dfba0a7ef19c60e191adfcedc1b7422cb21 | 152 | cpp | C++ | AtCoder/ABC136/A.cpp | arlechann/atcoder | 1af08efa6d3a0e8c75e4eaf13e1eda994820b9e2 | [
"CC0-1.0"
] | null | null | null | AtCoder/ABC136/A.cpp | arlechann/atcoder | 1af08efa6d3a0e8c75e4eaf13e1eda994820b9e2 | [
"CC0-1.0"
] | null | null | null | AtCoder/ABC136/A.cpp | arlechann/atcoder | 1af08efa6d3a0e8c75e4eaf13e1eda994820b9e2 | [
"CC0-1.0"
] | null | null | null | #include <algorithm>
#include <cstdio>
int main() {
int a, b, c;
scanf("%d%d%d", &a, &b, &c);
printf("%d\n", std::max(c - (a - b), 0));
return 0;
} | 16.888889 | 42 | 0.513158 | arlechann |
e88c8ede7732f10f1881cdead84b5d6f2f02f603 | 1,251 | cpp | C++ | src/sdlwrapper.cpp | ultramailman/game | 7e0d8610932414b2e58a3adbd5916881fe2b5ae9 | [
"MIT"
] | null | null | null | src/sdlwrapper.cpp | ultramailman/game | 7e0d8610932414b2e58a3adbd5916881fe2b5ae9 | [
"MIT"
] | null | null | null | src/sdlwrapper.cpp | ultramailman/game | 7e0d8610932414b2e58a3adbd5916881fe2b5ae9 | [
"MIT"
] | null | null | null | #include "sdlwrapper.hpp"
namespace sdl2{
Image ImageLoader::loadRGBA(std::string filepath)
{
Surface surf(IMG_Load(filepath.c_str()));
if(surf.getPtr() == NULL) {
return Image();
}
SDL_Surface * surface = surf.getPtr();
SDL_PixelFormat * format = surface->format;
Image img(format->Byte... | 25.02 | 89 | 0.626699 | ultramailman |
e89659a12a6d374f81a05f9eb0dffb12e7660cb5 | 1,585 | cpp | C++ | lab4/submission/lab4b/lab4b/hls/matmult/unroll/.autopilot/db/hls_design_meta.cpp | LoginLEE/HKUST-ELEC4320-FPGA-based-Design | e26b82a648cb542985c66a37b39e148a309234e0 | [
"MIT"
] | null | null | null | lab4/submission/lab4b/lab4b/hls/matmult/unroll/.autopilot/db/hls_design_meta.cpp | LoginLEE/HKUST-ELEC4320-FPGA-based-Design | e26b82a648cb542985c66a37b39e148a309234e0 | [
"MIT"
] | null | null | null | lab4/submission/lab4b/lab4b/hls/matmult/unroll/.autopilot/db/hls_design_meta.cpp | LoginLEE/HKUST-ELEC4320-FPGA-based-Design | e26b82a648cb542985c66a37b39e148a309234e0 | [
"MIT"
] | null | null | null | #include "hls_design_meta.h"
const Port_Property HLS_Design_Meta::port_props[]={
Port_Property("ap_clk", 1, hls_in, -1, "", "", 1),
Port_Property("ap_rst", 1, hls_in, -1, "", "", 1),
Port_Property("ap_start", 1, hls_in, -1, "", "", 1),
Port_Property("ap_done", 1, hls_out, -1, "", "", 1),
Port_Property("ap_idle", 1... | 58.703704 | 76 | 0.658044 | LoginLEE |
e89bb83b0f4183df86a5b42cb50c1bc98f028dee | 1,468 | cc | C++ | test/timer/main.cc | topiolli/into | f0a47736f5c93dd32e89e7aad34152ae1afc5583 | [
"BSD-3-Clause"
] | 14 | 2015-01-19T22:14:18.000Z | 2020-04-13T23:27:20.000Z | test/timer/main.cc | topiolli/into | f0a47736f5c93dd32e89e7aad34152ae1afc5583 | [
"BSD-3-Clause"
] | null | null | null | test/timer/main.cc | topiolli/into | f0a47736f5c93dd32e89e7aad34152ae1afc5583 | [
"BSD-3-Clause"
] | 14 | 2015-01-16T05:43:15.000Z | 2019-01-29T07:57:11.000Z | /* This file is part of Into.
* Copyright (C) Intopii 2013.
* All rights reserved.
*
* Licensees holding a commercial Into license may use this file in
* accordance with the commercial license agreement. Please see
* LICENSE.commercial for commercial licensing terms.
*
* Alternatively, this file may be used und... | 23.677419 | 69 | 0.675068 | topiolli |
e89c8bfa5be7ad6d7b35e54aeff92d5e223e4cf4 | 234 | cc | C++ | example/gtest/main_test.cc | ChronosWS/test_games | ccb3a83cd4b4b379ec271a2855c5723f1810b56f | [
"MIT"
] | null | null | null | example/gtest/main_test.cc | ChronosWS/test_games | ccb3a83cd4b4b379ec271a2855c5723f1810b56f | [
"MIT"
] | null | null | null | example/gtest/main_test.cc | ChronosWS/test_games | ccb3a83cd4b4b379ec271a2855c5723f1810b56f | [
"MIT"
] | 2 | 2019-11-12T23:15:18.000Z | 2020-01-15T17:49:27.000Z | #include "gtest/gtest.h"
int
Foo(int n)
{
if (n == 0) return 1;
return 0;
}
TEST(Foo, Negative) { EXPECT_EQ(Foo(-1), 0); }
int
main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
| 13 | 46 | 0.619658 | ChronosWS |
e89d685446a43defe75dcc11fc5c95df3711d7c7 | 1,280 | cpp | C++ | 29_divide/divide.cpp | Mengsen-W/algorithm | 66216b8601e416343a2cc191bd0f2f12eb282262 | [
"BSD-3-Clause"
] | null | null | null | 29_divide/divide.cpp | Mengsen-W/algorithm | 66216b8601e416343a2cc191bd0f2f12eb282262 | [
"BSD-3-Clause"
] | null | null | null | 29_divide/divide.cpp | Mengsen-W/algorithm | 66216b8601e416343a2cc191bd0f2f12eb282262 | [
"BSD-3-Clause"
] | null | null | null | /*
* @Date: 2021-10-12 21:04:00
* @Author: Mengsen Wang
* @LastEditors: Mengsen Wang
* @LastEditTime: 2021-10-12 21:05:03
*/
#include <cassert>
#include <climits>
#include <vector>
using namespace std;
class Solution {
public:
int divide(int dividend, int divisor) {
// 考虑被除数为最小值的情况
if (dividend == IN... | 20.983607 | 66 | 0.558594 | Mengsen-W |
e89e78c34d4571859a0ec4aecbc7ba54fd936f6f | 8,835 | cpp | C++ | android-28/javax/crypto/Cipher.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/javax/crypto/Cipher.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/javax/crypto/Cipher.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../JByteArray.hpp"
#include "../../JArray.hpp"
#include "../../JObject.hpp"
#include "../../JString.hpp"
#include "../../java/nio/ByteBuffer.hpp"
#include "../../java/security/AlgorithmParameters.hpp"
#include "../../java/security/Provider.hpp"
#include "../../java/security/Provider_Service.hpp"
#include "... | 21.035714 | 126 | 0.661686 | YJBeetle |
e8a0ccd910c3ce8c06c1cde76bc2a2169db7d832 | 1,276 | cpp | C++ | Senha_da_tia.cpp | Focadecombate/Spoj-Codes | 563a667a43c8762b8bc0f0f0f56a009937b90a4c | [
"MIT"
] | null | null | null | Senha_da_tia.cpp | Focadecombate/Spoj-Codes | 563a667a43c8762b8bc0f0f0f56a009937b90a4c | [
"MIT"
] | null | null | null | Senha_da_tia.cpp | Focadecombate/Spoj-Codes | 563a667a43c8762b8bc0f0f0f56a009937b90a4c | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
/*
Resposta do problema senha da tia.
Feito por Gustavo Santos.
https://br.spoj.com/problems/SENHATIA/
*/
int main()
{
int Ncaracmin, Minuscmin, Maiuscmin, Numerosmin, quant; /*Ints com as caracteristicas*/
string senha; /*String onde e... | 24.075472 | 108 | 0.566614 | Focadecombate |
e8a58c9a6351df2aceae710e04d831be30391597 | 499 | cpp | C++ | 42.cpp | bsandyy/SPOJ | 9ae70c102f70b6126361f96260b9a43b86510a03 | [
"MIT"
] | null | null | null | 42.cpp | bsandyy/SPOJ | 9ae70c102f70b6126361f96260b9a43b86510a03 | [
"MIT"
] | null | null | null | 42.cpp | bsandyy/SPOJ | 9ae70c102f70b6126361f96260b9a43b86510a03 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
unsigned rev(unsigned);
int main() {
// your code goes here
unsigned n,a,b;
cin >> n;
for(int i=0; i<n; i++) {
cin >> a >> b;
cout << rev(rev(a) + rev(b)) << "\n";
}
return 0;
}
unsigned rev(unsig... | 19.192308 | 53 | 0.440882 | bsandyy |
e8a9cc3a2316bd227263c989754d0632a1adb1b6 | 803 | hpp | C++ | tests/TestOptions.hpp | Jonas4420/Crypto | 4fda1854c838407e6cbfb0ffaf862609eaac203a | [
"MIT"
] | null | null | null | tests/TestOptions.hpp | Jonas4420/Crypto | 4fda1854c838407e6cbfb0ffaf862609eaac203a | [
"MIT"
] | null | null | null | tests/TestOptions.hpp | Jonas4420/Crypto | 4fda1854c838407e6cbfb0ffaf862609eaac203a | [
"MIT"
] | null | null | null | #ifndef TESTOPTIONS_H
#define TESTOPTIONS_H
#include <string>
#include <cstdlib>
class TestOptions
{
public:
static TestOptions& get() {
static TestOptions instance;
return instance;
}
bool is_fast;
std::string vect_dir;
private:
TestOptions(void)
{
const char *env_fast = std::gete... | 21.131579 | 66 | 0.648817 | Jonas4420 |
e8aa5bf5ac1a96367e623e3263543562a6c13b6e | 1,898 | cpp | C++ | UVA/11888 - Abnormal 89's.cpp | Fresher001/Competitive-Programming-2 | e1e953bb1d4ade46cc670b2d0432f68504538ed2 | [
"MIT"
] | 86 | 2016-10-18T23:30:36.000Z | 2022-01-09T21:57:34.000Z | UVA/11888 - Abnormal 89's.cpp | Fresher001/Competitive-Programming-2 | e1e953bb1d4ade46cc670b2d0432f68504538ed2 | [
"MIT"
] | 1 | 2018-04-13T09:38:36.000Z | 2018-04-13T09:38:36.000Z | UVA/11888 - Abnormal 89's.cpp | Fresher001/Competitive-Programming-2 | e1e953bb1d4ade46cc670b2d0432f68504538ed2 | [
"MIT"
] | 39 | 2017-03-02T07:25:40.000Z | 2020-12-14T12:13:50.000Z | #include <iostream>
#include <fstream>
#include <cstring>
#include <unordered_map>
using namespace std;
const int Lmax = 200000 + 2;
unordered_map <int, int> MAP;
char S[Lmax];
char SS[2 * Lmax];
int P[2 * Lmax];
int T, N;
int Manacher()
{
int NN = 0;
SS[ ++NN ] = '$';
for ( int i = 1; i <= N; ++i )
... | 15.063492 | 105 | 0.328767 | Fresher001 |
e8afcfec6e002c3e18fcecee5910219496533985 | 994 | hpp | C++ | libs/PhiCore/include/phi/type_traits/is_same_rc.hpp | AMS21/Phi | d62d7235dc5307dd18607ade0f95432ae3a73dfd | [
"MIT"
] | 3 | 2020-12-21T13:47:35.000Z | 2022-03-16T23:53:21.000Z | libs/PhiCore/include/phi/type_traits/is_same_rc.hpp | AMS21/Phi | d62d7235dc5307dd18607ade0f95432ae3a73dfd | [
"MIT"
] | 53 | 2020-08-07T07:46:57.000Z | 2022-02-12T11:07:08.000Z | libs/PhiCore/include/phi/type_traits/is_same_rc.hpp | AMS21/Phi | d62d7235dc5307dd18607ade0f95432ae3a73dfd | [
"MIT"
] | 1 | 2020-08-19T15:50:02.000Z | 2020-08-19T15:50:02.000Z | #ifndef INCG_PHI_CORE_TYPE_TRAITS_IS_SAME_RC_HPP
#define INCG_PHI_CORE_TYPE_TRAITS_IS_SAME_RC_HPP
#include "phi/phi_config.hpp"
#if PHI_HAS_EXTENSION_PRAGMA_ONCE()
# pragma once
#endif
#include "phi/compiler_support/inline_variables.hpp"
#include "phi/type_traits/is_same.hpp"
#include "phi/type_traits/remove_cons... | 26.864865 | 88 | 0.820926 | AMS21 |
e8b57f5b0e8ecf5dbbaa76523d5acf7ccca6edb3 | 1,299 | cpp | C++ | Client/AudioRecorder.cpp | DylanWalseth/RTSLab8 | d08049ef3bc876dfc16774f6f5d0e840e075be81 | [
"MIT"
] | null | null | null | Client/AudioRecorder.cpp | DylanWalseth/RTSLab8 | d08049ef3bc876dfc16774f6f5d0e840e075be81 | [
"MIT"
] | null | null | null | Client/AudioRecorder.cpp | DylanWalseth/RTSLab8 | d08049ef3bc876dfc16774f6f5d0e840e075be81 | [
"MIT"
] | null | null | null | //
// Created by root on 5/6/16.
//
#include "AudioRecorder.h"
#include <alsa/asoundlib.h>
#include <thread>
#include <iostream>
#define SAMPLING_RATE (22500)
#define NUMBER_OF_CHANNELS (2)
#define BYTES_PER_SAMPLE (2)
using namespace std;
AudioRecorder::AudioRecorder(char *deviceName, int duration,NetworkSender *net... | 28.23913 | 102 | 0.658968 | DylanWalseth |
e8bfb868d61ea48cc76ea7ccfbed01b753b34d36 | 2,622 | cpp | C++ | w12/w13/aaa.cpp | Chalkydoge/FDU_DS | 8d2dec307d8dd641fbe3bcfa633cede9e1a45252 | [
"MIT"
] | 1 | 2020-09-16T06:17:14.000Z | 2020-09-16T06:17:14.000Z | w12/w13/aaa.cpp | Chalkydoge/FDU_DS | 8d2dec307d8dd641fbe3bcfa633cede9e1a45252 | [
"MIT"
] | null | null | null | w12/w13/aaa.cpp | Chalkydoge/FDU_DS | 8d2dec307d8dd641fbe3bcfa633cede9e1a45252 | [
"MIT"
] | null | null | null | #include<stdio.h>
#include<string.h>
#include<string>
#include<algorithm>
#include<map>
#include<vector>
#define INF 0x3f3f3f3f
#define Max 1010
using namespace std;
int n,m,tt,ans;//顶点个数 边的个数 输出计数 MST的权值
struct edge
{
int u,v,w;
} Q[Max];
int mp[Max][Max],dis[Max],book[Max];
int used[Max][Max],pre[Max];
int out... | 18.595745 | 70 | 0.410374 | Chalkydoge |
e8c3389350bfa5c006b6d4644ea85e3e16ec43f2 | 519 | hpp | C++ | include/mbgl/util/interpolate.hpp | free1978/mapbox-gl-native | 2a50fccd24e762d0de5a53bac358e5ddfea8d213 | [
"BSD-2-Clause"
] | 2 | 2017-02-28T22:41:54.000Z | 2020-02-13T20:54:55.000Z | include/mbgl/util/interpolate.hpp | free1978/mapbox-gl-native | 2a50fccd24e762d0de5a53bac358e5ddfea8d213 | [
"BSD-2-Clause"
] | null | null | null | include/mbgl/util/interpolate.hpp | free1978/mapbox-gl-native | 2a50fccd24e762d0de5a53bac358e5ddfea8d213 | [
"BSD-2-Clause"
] | null | null | null | #ifndef MBGL_UTIL_INTERPOLATE
#define MBGL_UTIL_INTERPOLATE
namespace mbgl {
namespace util {
template <typename T>
T interpolate(const T a, const T b, const double t) {
return a * (1.0 - t) + b * t;
}
template <typename T>
inline std::array<T, 4> interpolate(const std::array<T, 4>& a, const std::array<T, 4>& b,... | 19.961538 | 107 | 0.597303 | free1978 |
e8cbbac30c9d446d2a85237dba839ca0004175e9 | 1,683 | hh | C++ | include/templateDetectorConstruction.hh | l-althueser/XeSim | 972ea62a35db7c80c6e4b3349987e31945651399 | [
"BSD-3-Clause"
] | null | null | null | include/templateDetectorConstruction.hh | l-althueser/XeSim | 972ea62a35db7c80c6e4b3349987e31945651399 | [
"BSD-3-Clause"
] | null | null | null | include/templateDetectorConstruction.hh | l-althueser/XeSim | 972ea62a35db7c80c6e4b3349987e31945651399 | [
"BSD-3-Clause"
] | null | null | null | #ifndef __templateDetectorConstruction_H__
#define __templateDetectorConstruction_H__
#include <globals.hh>
#include <vector>
#include <map>
using std::vector;
using std::map;
class G4LogicalVolume;
class G4VPhysicalVolume;
class G4Material;
class G4UserLimits;
//class templateDetectorMessenger;
#include <G4VUserD... | 24.042857 | 72 | 0.805704 | l-althueser |
e8d2e08d57357bc5e6df95731cd8c92d1ad2ba1c | 154,401 | cpp | C++ | build/linux-build/Sources/src/nape/constraint/PulleyJoint.cpp | HedgehogFog/TimeOfDeath | b78abacf940e1a88c8b987d99764ebb6876c5dc6 | [
"MIT"
] | null | null | null | build/linux-build/Sources/src/nape/constraint/PulleyJoint.cpp | HedgehogFog/TimeOfDeath | b78abacf940e1a88c8b987d99764ebb6876c5dc6 | [
"MIT"
] | null | null | null | build/linux-build/Sources/src/nape/constraint/PulleyJoint.cpp | HedgehogFog/TimeOfDeath | b78abacf940e1a88c8b987d99764ebb6876c5dc6 | [
"MIT"
] | null | null | null | // Generated by Haxe 4.0.0-preview.5
#include <hxcpp.h>
#ifndef INCLUDED_nape_constraint_Constraint
#include <hxinc/nape/constraint/Constraint.h>
#endif
#ifndef INCLUDED_nape_constraint_PulleyJoint
#include <hxinc/nape/constraint/PulleyJoint.h>
#endif
#ifndef INCLUDED_nape_geom_MatMN
#include <hxinc/nape/geom/MatMN.h>... | 40.846825 | 352 | 0.560929 | HedgehogFog |
e8dc1e21896e2665239459f2619a3ff10019a1a0 | 613 | hpp | C++ | include/exemodel/devicee.hpp | walkthetalk/libem | 6619b48716b380420157c4021f9943b153998e09 | [
"Apache-2.0"
] | 2 | 2015-03-13T14:49:13.000Z | 2017-09-18T12:38:59.000Z | include/exemodel/devicee.hpp | walkthetalk/libem | 6619b48716b380420157c4021f9943b153998e09 | [
"Apache-2.0"
] | null | null | null | include/exemodel/devicee.hpp | walkthetalk/libem | 6619b48716b380420157c4021f9943b153998e09 | [
"Apache-2.0"
] | null | null | null | #pragma once
/**
* \file exemodel/devicee.hpp
* \author justgaoyuan<gao_yuangy@126.com>
*/
#include "exemodel/pollee.hpp"
/**
*\class devicee
*\brief device pollee,used by \em poller
*/
namespace exemodel{
class devicee : public pollee {
public:
explicit devicee() = default;
virtual ~devicee() = default;
publ... | 17.027778 | 72 | 0.663948 | walkthetalk |
e8e8943424362f6a0dbe35b8d53fe304d0b5a532 | 48 | cpp | C++ | Backends/System/Windows/Sources/Kore/SystemWindows.cpp | varomix/Kore | fca273e3d865898e87bebd9ee58b13635bcdfd5c | [
"Zlib"
] | null | null | null | Backends/System/Windows/Sources/Kore/SystemWindows.cpp | varomix/Kore | fca273e3d865898e87bebd9ee58b13635bcdfd5c | [
"Zlib"
] | null | null | null | Backends/System/Windows/Sources/Kore/SystemWindows.cpp | varomix/Kore | fca273e3d865898e87bebd9ee58b13635bcdfd5c | [
"Zlib"
] | null | null | null | #include "pch.h"
#include "SystemWindows.h"
| 12 | 27 | 0.666667 | varomix |
e8e9cf571fe3add2ec4d525d102af7a66e58676c | 1,644 | cpp | C++ | Aurora/Quince/source/quince/QuBmpImage.cpp | manaskamal/aurora-xeneva | fe277f7ac155a40465c70f1db3c27046e4d0f7b5 | [
"BSD-2-Clause"
] | 8 | 2021-07-19T04:46:35.000Z | 2022-03-12T17:56:00.000Z | Aurora/Quince/source/quince/QuBmpImage.cpp | manaskamal/aurora-xeneva | fe277f7ac155a40465c70f1db3c27046e4d0f7b5 | [
"BSD-2-Clause"
] | null | null | null | Aurora/Quince/source/quince/QuBmpImage.cpp | manaskamal/aurora-xeneva | fe277f7ac155a40465c70f1db3c27046e4d0f7b5 | [
"BSD-2-Clause"
] | null | null | null | //!
//! Copyright (C) Manas Kamal Choudhury 2021
//!
//! QuBmpImage -- Quince Bitmap Image File
//!
//! /PROJECT - Aurora's Xeneva
//! /AUTHOR - Manas Kamal Choudhury
//!
//! ==============================================
#include <bmp_image.h>
#include <sys\_file.h>
#include <sys\mmap.h>
#include <acrylic.h>
#i... | 27.4 | 86 | 0.588808 | manaskamal |
e8f623d22131630f09d94972376d1cbf383df74f | 1,767 | cpp | C++ | catch_tests/detectorcommon/bracehelper_tests.cpp | zhlongfj/cppdetector | 0907720cdb82661ae137e4883346fc33cb115794 | [
"MIT"
] | 2 | 2022-03-22T05:50:40.000Z | 2022-03-22T06:00:42.000Z | catch_tests/detectorcommon/bracehelper_tests.cpp | zhlongfj/cppdetector | 0907720cdb82661ae137e4883346fc33cb115794 | [
"MIT"
] | null | null | null | catch_tests/detectorcommon/bracehelper_tests.cpp | zhlongfj/cppdetector | 0907720cdb82661ae137e4883346fc33cb115794 | [
"MIT"
] | null | null | null | #include "../catch.hpp"
#include "../../detector_core/detectorcommon/bracehelper.h"
static constexpr auto code = R"delimiter(
bool BraceHelper::leftBraceAfterRightParenthesis(const string& codeWithoutSpace)
{
string braceAfterRightParenthesis = "){";
if (codeWithoutSpace.size() < 2)
{
return false... | 37.595745 | 115 | 0.580645 | zhlongfj |
e8faff30d792019537030b5f9a190ee963cce019 | 402 | cpp | C++ | src/gui/corneroverlay.cpp | GavriloviciEduard/Asclepios-DICOM-Viewer | 2aeb90ae4fcbdfcf0fe1b714f31e2b1c8fd6a8ed | [
"MIT"
] | 55 | 2020-09-10T01:29:27.000Z | 2022-03-23T06:41:09.000Z | src/gui/corneroverlay.cpp | GavriloviciEduard/Asclepios-DICOM-Viewer | 2aeb90ae4fcbdfcf0fe1b714f31e2b1c8fd6a8ed | [
"MIT"
] | 4 | 2020-09-10T01:25:07.000Z | 2022-03-22T02:34:39.000Z | src/gui/corneroverlay.cpp | GavriloviciEduard/Asclepios-DICOM-Viewer | 2aeb90ae4fcbdfcf0fe1b714f31e2b1c8fd6a8ed | [
"MIT"
] | 16 | 2020-11-24T07:37:43.000Z | 2022-03-03T03:16:30.000Z | #include "corneroverlay.h"
vtkOpenGLTextActor* asclepios::gui::CornerOverlay::getTextActor()
{
initTextActor();
return m_textActor;
}
//-----------------------------------------------------------------------------
std::string asclepios::gui::CornerOverlay::getOverlayFromInfo()
{
std::string values;
for (const aut... | 21.157895 | 79 | 0.594527 | GavriloviciEduard |
e8feb16da6fd1063a6b8805a5aea66ec364a5a3c | 2,442 | hpp | C++ | wz4/wz4frlib/wz4_mtrl.hpp | wzman/werkkzeug4CE | af5ff27829ed4c501515ef5131165048e991c9b4 | [
"BSD-2-Clause"
] | 47 | 2015-03-22T05:58:47.000Z | 2022-03-29T19:13:37.000Z | wz4/wz4frlib/wz4_mtrl.hpp | whpskyeagle/werkkzeug4CE | af5ff27829ed4c501515ef5131165048e991c9b4 | [
"BSD-2-Clause"
] | null | null | null | wz4/wz4frlib/wz4_mtrl.hpp | whpskyeagle/werkkzeug4CE | af5ff27829ed4c501515ef5131165048e991c9b4 | [
"BSD-2-Clause"
] | 16 | 2015-12-31T08:13:18.000Z | 2021-03-09T02:07:30.000Z | /*+**************************************************************************/
/*** ***/
/*** This file is distributed under a BSD license. ***/
/*** See LICENSE.txt for details. ***/
/***... | 31.307692 | 83 | 0.561016 | wzman |
330096493ac92bbe7b12ac979cff1b6317444f1b | 2,858 | cpp | C++ | src/library/os/windows/isvm/BIOSReader.cpp | extremoburo/open-license-manager | 555457c5d722885c03e63405dc186ca6ba62a0f1 | [
"BSD-3-Clause"
] | null | null | null | src/library/os/windows/isvm/BIOSReader.cpp | extremoburo/open-license-manager | 555457c5d722885c03e63405dc186ca6ba62a0f1 | [
"BSD-3-Clause"
] | 1 | 2020-08-09T11:47:23.000Z | 2020-08-09T11:47:23.000Z | src/library/os/windows/isvm/BIOSReader.cpp | ChrigiGee/open-license-manager | 555457c5d722885c03e63405dc186ca6ba62a0f1 | [
"BSD-3-Clause"
] | null | null | null | #include "BIOSReader.h"
#include <cstdint>
#include "Native.h"
struct smbios_structure_header {
uint8_t type;
uint8_t length;
uint16_t handle;
};
//
// System information
//
struct smbios_type_1 {
struct smbios_structure_header header;
uint8_t manufacturer_str;
uint8_t product_name_str;
uint8_t version_str;
... | 23.42623 | 112 | 0.687194 | extremoburo |
3310a596281988047c79165531e8b9b370031e7c | 11,860 | cpp | C++ | DeviceCode/pal/OpenSSL/OpenSSL_1_0_0/crypto/evp/p_lib.cpp | PervasiveDigital/netmf-interpreter | 03d84fe76e0b666ebec62d17d69c55c45940bc40 | [
"Apache-2.0"
] | 529 | 2015-03-10T00:17:45.000Z | 2022-03-17T02:21:19.000Z | DeviceCode/pal/OpenSSL/OpenSSL_1_0_0/crypto/evp/p_lib.cpp | PervasiveDigital/netmf-interpreter | 03d84fe76e0b666ebec62d17d69c55c45940bc40 | [
"Apache-2.0"
] | 495 | 2015-03-10T22:02:46.000Z | 2019-05-16T13:05:00.000Z | DeviceCode/pal/OpenSSL/OpenSSL_1_0_0/crypto/evp/p_lib.cpp | PervasiveDigital/netmf-interpreter | 03d84fe76e0b666ebec62d17d69c55c45940bc40 | [
"Apache-2.0"
] | 332 | 2015-03-10T08:04:36.000Z | 2022-03-29T04:18:36.000Z | /* crypto/evp/p_lib.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial a... | 25.127119 | 89 | 0.684401 | PervasiveDigital |
331247166b38d0aa8d96aa06feeecd3f0ba6ad3f | 531 | hpp | C++ | COMP330-Assignment1/Objects/Lake.hpp | evanhollins/COMP330Assignment1 | dfd7d62ab9985fbe871bfcc6059b5e5f99f7d319 | [
"MIT"
] | null | null | null | COMP330-Assignment1/Objects/Lake.hpp | evanhollins/COMP330Assignment1 | dfd7d62ab9985fbe871bfcc6059b5e5f99f7d319 | [
"MIT"
] | null | null | null | COMP330-Assignment1/Objects/Lake.hpp | evanhollins/COMP330Assignment1 | dfd7d62ab9985fbe871bfcc6059b5e5f99f7d319 | [
"MIT"
] | null | null | null | //
// Lake.hpp
// COMP330-Assignment1
//
// Created by Evan Hollins on 4/3/18.
// Copyright © 2018 Evan Hollins. All rights reserved.
//
#ifndef Lake_hpp
#define Lake_hpp
#include <stdio.h>
#include <vector>
#include "Color.hpp"
#include "Shape.hpp"
#include "Circle.hpp"
#include "Trapazoid.hpp"
class Lake: pub... | 16.59375 | 55 | 0.644068 | evanhollins |
331587a7e7564643bb67ffb17a6667954b066fed | 5,942 | cpp | C++ | src/bindings/InputEvents.cpp | HuxyUK/pyasge | f4522b6ad4ef09aa878958598ff1086a414e4dc7 | [
"MIT"
] | 1 | 2022-01-10T19:32:47.000Z | 2022-01-10T19:32:47.000Z | src/bindings/InputEvents.cpp | HuxyUK/pyasge | f4522b6ad4ef09aa878958598ff1086a414e4dc7 | [
"MIT"
] | 1 | 2021-12-19T23:37:36.000Z | 2022-02-28T23:53:33.000Z | src/bindings/InputEvents.cpp | HuxyUK/pyasge | f4522b6ad4ef09aa878958598ff1086a414e4dc7 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2021 James Huxtable. All rights reserved.
This work is licensed under the terms of the MIT license.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINF... | 44.014815 | 81 | 0.633793 | HuxyUK |
331c59303c10e7aaa7e1949e497550a5d0f17226 | 1,180 | cpp | C++ | CO2003/a2p1/main.cpp | Smithienious/hcmut-201 | be16b77831aae83ff42e656a181881686c74e674 | [
"MIT"
] | null | null | null | CO2003/a2p1/main.cpp | Smithienious/hcmut-201 | be16b77831aae83ff42e656a181881686c74e674 | [
"MIT"
] | 2 | 2020-10-12T09:57:12.000Z | 2020-11-09T11:05:01.000Z | CO2003/a2p1/main.cpp | Smithienious/hcmut-201 | be16b77831aae83ff42e656a181881686c74e674 | [
"MIT"
] | 4 | 2020-10-12T10:30:56.000Z | 2020-12-15T14:46:04.000Z | /************
* @file main.cpp
* @author NGUYEN Hoang (hoang.nguyen.bigunit@hcmut.edu.vn)
* @brief Main runner for Assignment 2 Phase 1
*
* @version 0.3.1
* @date 2020-12-19
*
* @copyright Copyright (c) 2020
************/
#include "BKUTree.hpp"
#include <iostream>
#include <iomanip>
void printKey(int key, in... | 17.352941 | 59 | 0.525424 | Smithienious |
331cfb184f372ef62cf6b0d8e1af653be5da7ed6 | 18,196 | cpp | C++ | plugins/protein/src/MolecularBezierData.cpp | masrice/megamol | d48fc4889f500528609053a5445202a9c0f6e5fb | [
"BSD-3-Clause"
] | 49 | 2017-08-23T13:24:24.000Z | 2022-03-16T09:10:58.000Z | plugins/protein/src/MolecularBezierData.cpp | masrice/megamol | d48fc4889f500528609053a5445202a9c0f6e5fb | [
"BSD-3-Clause"
] | 200 | 2018-07-20T15:18:26.000Z | 2022-03-31T11:01:44.000Z | plugins/protein/src/MolecularBezierData.cpp | masrice/megamol | d48fc4889f500528609053a5445202a9c0f6e5fb | [
"BSD-3-Clause"
] | 31 | 2017-07-31T16:19:29.000Z | 2022-02-14T23:41:03.000Z | /*
* MolecularBezierData.cpp
*
* Copyright (C) 2013 by TU Dresden
* Alle Rechte vorbehalten.
*/
#include "MolecularBezierData.h"
#include "stdafx.h"
#include "geometry_calls/BezierCurvesListDataCall.h"
#include "mmcore/param/ColorParam.h"
#include "mmcore/param/EnumParam.h"
#include "mmcore/param/FloatParam.h"
#i... | 42.915094 | 119 | 0.59035 | masrice |
331d1d37477b5ec092c6a9f8257c78f9f7a02bc7 | 426 | cpp | C++ | Source/DasKombinat/Private/Juice/JuiceHandler.cpp | Game-Kombinat/DasKombinat | 2b3c61351f433cd34f474229f3ae8126e17b5fa6 | [
"MIT"
] | null | null | null | Source/DasKombinat/Private/Juice/JuiceHandler.cpp | Game-Kombinat/DasKombinat | 2b3c61351f433cd34f474229f3ae8126e17b5fa6 | [
"MIT"
] | null | null | null | Source/DasKombinat/Private/Juice/JuiceHandler.cpp | Game-Kombinat/DasKombinat | 2b3c61351f433cd34f474229f3ae8126e17b5fa6 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "Juice/JuiceHandler.h"
void UJuiceHandler::DecommissionHandler() {
if (isPrimed) {
InternalDecommissionHandler();
isPrimed = false;
}
}
void UJuiceHandler::InitHandler(UWorld* inWorld) {
if (!is... | 20.285714 | 79 | 0.64554 | Game-Kombinat |
331ee49f29763793be5e17ee3cf3a69cd50f4bcb | 2,417 | hpp | C++ | time_independent/include/causal_pibt.hpp | Kei18/time-independent-planning | 8540a2fa836f077406cbca7f6e442fdd7d2f840b | [
"MIT"
] | 6 | 2021-02-01T07:51:30.000Z | 2021-12-22T12:52:00.000Z | time_independent/include/causal_pibt.hpp | nobodyczcz/time-independent-planning | 92ec87de867e1f190c0c80a66c4a410a12da4821 | [
"MIT"
] | null | null | null | time_independent/include/causal_pibt.hpp | nobodyczcz/time-independent-planning | 92ec87de867e1f190c0c80a66c4a410a12da4821 | [
"MIT"
] | 2 | 2021-06-20T05:41:28.000Z | 2021-09-14T13:19:51.000Z | /*
* Causal-PIBT
*/
#pragma once
#include "agent.hpp"
class CausalPIBT;
using CP_Agents = std::vector<CausalPIBT*>;
struct Prio { // priority
int has_goal; // has goal or not
int cnt_goal_reach; // step
int id; // unique
int path; // path, used with mapf plan
bool operat... | 23.240385 | 58 | 0.575921 | Kei18 |
33212d2a9fd15da62b672021bb5935a7c4d323c4 | 457 | hh | C++ | multi_video_sim/util/ipc_socket.hh | fivebats/pensieve | b6d8f914a0a3354149eb467e9bf2c517a5a63914 | [
"MIT"
] | 1 | 2019-08-01T02:07:52.000Z | 2019-08-01T02:07:52.000Z | multi_video_sim/util/ipc_socket.hh | fivebats/pensieve | b6d8f914a0a3354149eb467e9bf2c517a5a63914 | [
"MIT"
] | null | null | null | multi_video_sim/util/ipc_socket.hh | fivebats/pensieve | b6d8f914a0a3354149eb467e9bf2c517a5a63914 | [
"MIT"
] | null | null | null | /* -*-mode:c++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
#ifndef IPC_SOCKET_HH
#define IPC_SOCKET_HH
#include <string>
#include "file_descriptor.hh"
/* Unix domain socket */
class IPCSocket : public FileDescriptor
{
public:
IPCSocket();
void bind( const std::string & path );
void connect... | 19.041667 | 77 | 0.676149 | fivebats |
3323927c435f688c2f4fc910b5463bcb4b7156ec | 672 | hpp | C++ | include/Pomdog/Graphics/Blend.hpp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | include/Pomdog/Graphics/Blend.hpp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | include/Pomdog/Graphics/Blend.hpp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | // Copyright (c) 2013-2015 mogemimi.
// Distributed under the MIT license. See LICENSE.md file for details.
#ifndef POMDOG_BLEND_A27CB239_HPP
#define POMDOG_BLEND_A27CB239_HPP
#include <cstdint>
namespace Pomdog {
enum class Blend: std::uint8_t {
Zero,
One,
SourceColor,
InverseSourceColor,
Sourc... | 19.764706 | 70 | 0.739583 | bis83 |
06ae8151ed161cdc405e620aaf1076c927437a36 | 2,892 | cpp | C++ | QtAV-1.9.0-VS2013/src/codec/video/VideoDecoder.cpp | fuyanzhi1234/DevelopQt | f4590cca8cde5e8b38ee19d97ea82c43257ec1b3 | [
"MIT"
] | null | null | null | QtAV-1.9.0-VS2013/src/codec/video/VideoDecoder.cpp | fuyanzhi1234/DevelopQt | f4590cca8cde5e8b38ee19d97ea82c43257ec1b3 | [
"MIT"
] | null | null | null | QtAV-1.9.0-VS2013/src/codec/video/VideoDecoder.cpp | fuyanzhi1234/DevelopQt | f4590cca8cde5e8b38ee19d97ea82c43257ec1b3 | [
"MIT"
] | null | null | null | /******************************************************************************
QtAV: Media play library based on Qt and FFmpeg
Copyright (C) 2012-2015 Wang Bin <wbsecg1@gmail.com>
* This file is part of QtAV
This library is free software; you can redistribute it and/or
modify it under the terms of... | 32.494382 | 99 | 0.699862 | fuyanzhi1234 |
06b01f409838f855b431c1f6e5f866d431b51440 | 375 | cpp | C++ | XinBiaoZhun_Cpp/Chapter10_STL/Ch10_03_FunctionObject_00.cpp | ltimaginea/Xinbiaozhun_cpp_Chengxusheji | e8724ca1df1091ad26edfdf8d11ddf57e5d85ed1 | [
"MIT"
] | null | null | null | XinBiaoZhun_Cpp/Chapter10_STL/Ch10_03_FunctionObject_00.cpp | ltimaginea/Xinbiaozhun_cpp_Chengxusheji | e8724ca1df1091ad26edfdf8d11ddf57e5d85ed1 | [
"MIT"
] | null | null | null | XinBiaoZhun_Cpp/Chapter10_STL/Ch10_03_FunctionObject_00.cpp | ltimaginea/Xinbiaozhun_cpp_Chengxusheji | e8724ca1df1091ad26edfdf8d11ddf57e5d85ed1 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
class Average
{
public:
double operator()(int a1, int a2, int a3)
{
return (double)(a1 + a2 + a3) / 3;
}
};
int main()
{
Average average;
cout << average(3, 2, 3) << endl; // 等价于 average.operator()(3, 2, 3)
cout << average.operator()(3, 2, 3) << endl;
cout << Aver... | 17.045455 | 71 | 0.589333 | ltimaginea |
06b5835ca69af98d737ded726e786c4a30f37fda | 4,671 | cpp | C++ | src/bengine.cpp | wareya/kotareci | 14c87d1364d442456f93cebe73a288f85b79ba74 | [
"Libpng"
] | null | null | null | src/bengine.cpp | wareya/kotareci | 14c87d1364d442456f93cebe73a288f85b79ba74 | [
"Libpng"
] | null | null | null | src/bengine.cpp | wareya/kotareci | 14c87d1364d442456f93cebe73a288f85b79ba74 | [
"Libpng"
] | null | null | null | #include "bengine.hpp"
#include "physics.hpp"
#include "input.hpp"
#include "blib/sdlhelpers.hpp"
#include "blib/bmath.hpp"
#include <iostream>
#include <unordered_map>
namespace Sys
{
// self-explanatory
SDL_Window * MainWindow;
// read the SDL documentation
SDL_Renderer * Renderer;
// do it
... | 29.012422 | 114 | 0.512738 | wareya |
06b63d1ab7920fe673bb13531697b1d7b0e49ae6 | 43 | cpp | C++ | TileState.cpp | sknjpn/SyLife | b215cba87096db52ac63931db64c967f906b9172 | [
"MIT"
] | 5 | 2022-01-05T10:04:40.000Z | 2022-01-11T13:23:43.000Z | TileState.cpp | sknjpn/SyLife | b215cba87096db52ac63931db64c967f906b9172 | [
"MIT"
] | 1 | 2022-01-05T10:51:42.000Z | 2022-01-05T13:25:41.000Z | TileState.cpp | sknjpn/SyLife | b215cba87096db52ac63931db64c967f906b9172 | [
"MIT"
] | null | null | null | #include "TileState.h"
#include "World.h"
| 14.333333 | 23 | 0.697674 | sknjpn |
06b97429c1f8c1aea02256f828b4d17c7c35d926 | 872 | cpp | C++ | binarysearch.io/211_level_order_alternating.cpp | mishrakeshav/Competitive-Programming | b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2 | [
"MIT"
] | 2 | 2020-06-25T21:10:32.000Z | 2020-12-10T06:53:45.000Z | binarysearch.io/211_level_order_alternating.cpp | mishrakeshav/Competitive-Programming | b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2 | [
"MIT"
] | null | null | null | binarysearch.io/211_level_order_alternating.cpp | mishrakeshav/Competitive-Programming | b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2 | [
"MIT"
] | 3 | 2020-05-15T14:17:09.000Z | 2021-07-25T13:18:20.000Z | /**
* class Tree {
* public:
* int val;
* Tree *left;
* Tree *right;
* };
*/
void add_to_list(int s,vector<int> & order, vector<Tree *> newl){
if(s){
for(int i = newl.size()-1; i >=0; i--){
order.push_back(newl[i]->val);
}
}else{
for(int i... | 23.567568 | 67 | 0.480505 | mishrakeshav |
06b9dfb0c159b785ba0c8400c6b08a8dfa877532 | 2,502 | cpp | C++ | binary/private/main.cpp | cledant/MukyunImageHosting | a0ed70608ad550bdddb0571f3e537e6d851591b9 | [
"MIT"
] | 1 | 2020-01-16T05:40:04.000Z | 2020-01-16T05:40:04.000Z | binary/private/main.cpp | cledant/MukyunImageHosting | a0ed70608ad550bdddb0571f3e537e6d851591b9 | [
"MIT"
] | null | null | null | binary/private/main.cpp | cledant/MukyunImageHosting | a0ed70608ad550bdddb0571f3e537e6d851591b9 | [
"MIT"
] | null | null | null | #include <cstring>
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <iomanip>
#include "http_server.hpp"
static constexpr char const *ENV_CFG_PATH = "MUKYUN_IH_CFG_PATH";
static constexpr char const *DEFAULT_CFG_FILENAME = "mukyun_ih_cfg.json";
static void
display_help()
{
std::cout << "Usage: ... | 29.093023 | 80 | 0.570344 | cledant |
06bca75068bda2a69af69e93ef7b3f10eb6b4c78 | 13,312 | cpp | C++ | UnitTests/src/BezierPlane.cpp | CHCTW/DirectX12-Framework- | b9e590555660c40cb19c3ef292c097c78d49a158 | [
"MIT"
] | 43 | 2018-01-03T02:03:01.000Z | 2021-12-26T10:40:15.000Z | UnitTests/src/BezierPlane.cpp | CHCTW/DirectX12-Framework- | b9e590555660c40cb19c3ef292c097c78d49a158 | [
"MIT"
] | 9 | 2017-09-12T09:57:39.000Z | 2020-06-22T07:32:22.000Z | UnitTests/src/BezierPlane.cpp | CHCTW/DirectX12-Framework- | b9e590555660c40cb19c3ef292c097c78d49a158 | [
"MIT"
] | 8 | 2018-01-03T02:02:33.000Z | 2022-02-12T21:23:44.000Z | #include <iostream>
#include <vector>
#include <algorithm>
#include <assimp\ai_assert.h>
#include <assimp\Importer.hpp>
#include <assimp\scene.h>
#include <assimp\postprocess.h>
#include <assimp\mesh.h>
#include "Window.h"
#include "Render.h"
#include "StructureHeaders.h"
#include "SpecCamera.h"
#include "Transform.h"
... | 31.175644 | 300 | 0.777719 | CHCTW |
06c2e60a520fea5961365e667cbc59f242d0cf58 | 25,626 | cpp | C++ | src/ints/bios_memdisk.cpp | mediaexplorer74/dosbox-x | be9f94b740234f7813bf5a063a558cef9dc7f9a6 | [
"MIT"
] | 3 | 2022-02-20T11:06:29.000Z | 2022-03-11T08:16:55.000Z | src/ints/bios_memdisk.cpp | mediaexplorer74/dosbox-x | be9f94b740234f7813bf5a063a558cef9dc7f9a6 | [
"MIT"
] | null | null | null | src/ints/bios_memdisk.cpp | mediaexplorer74/dosbox-x | be9f94b740234f7813bf5a063a558cef9dc7f9a6 | [
"MIT"
] | null | null | null | /*
*
* Copyright (c) 2018 Shane Krueger
*
* 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 version.
*
* This program is dist... | 42.287129 | 252 | 0.721104 | mediaexplorer74 |
06c33996681a8582ce193dfc38f4716d308b3365 | 700 | cpp | C++ | 671. Second Minimum Node In a Binary Tree/main.cpp | Competitive-Programmers-Community/LeetCode | 841fdee805b1a626e9f1cd0e12398d25054638af | [
"MIT"
] | 2 | 2019-10-05T09:48:20.000Z | 2019-10-05T15:40:01.000Z | 671. Second Minimum Node In a Binary Tree/main.cpp | Competitive-Programmers-Community/LeetCode | 841fdee805b1a626e9f1cd0e12398d25054638af | [
"MIT"
] | null | null | null | 671. Second Minimum Node In a Binary Tree/main.cpp | Competitive-Programmers-Community/LeetCode | 841fdee805b1a626e9f1cd0e12398d25054638af | [
"MIT"
] | 3 | 2020-09-27T05:48:30.000Z | 2021-08-13T10:07:08.000Z | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
set<int> s;
void inOrder(TreeNode* root){
if(root == NULL)
return;
inOr... | 21.212121 | 59 | 0.472857 | Competitive-Programmers-Community |
06d074e1f7cf9d02c54ac31c2699ac3eb4a18a73 | 837 | cpp | C++ | packages/monte_carlo/collision/photon/src/MonteCarlo_PhotonuclearReaction.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 10 | 2019-11-14T19:58:30.000Z | 2021-04-04T17:44:09.000Z | packages/monte_carlo/collision/photon/src/MonteCarlo_PhotonuclearReaction.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 43 | 2020-03-03T19:59:20.000Z | 2021-09-08T03:36:08.000Z | packages/monte_carlo/collision/photon/src/MonteCarlo_PhotonuclearReaction.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 6 | 2020-02-12T17:37:07.000Z | 2020-09-08T18:59:51.000Z | //---------------------------------------------------------------------------//
//!
//! \file MonteCarlo_PhotonuclearReaction.cpp
//! \author Alex Robinson
//! \brief The photonuclear reaction base class instantiation
//!
//---------------------------------------------------------------------------//
// FRENSIE Inc... | 38.045455 | 101 | 0.500597 | bam241 |
06d445f99ba455596a6e2ffbb647317a3ea2a7ec | 1,975 | cpp | C++ | 05/ex00/Bureaucrat.cpp | mo-san99/CPP-Module | 54be4aa108c9638e28a4ec774ee6071be2b7c75e | [
"MIT"
] | 2 | 2021-04-01T12:42:44.000Z | 2021-08-02T12:40:59.000Z | 05/ex00/Bureaucrat.cpp | Sviridovamd/CPP-Module | fe8494a0c775da699e5013458f8b8ebdfa88bef6 | [
"MIT"
] | null | null | null | 05/ex00/Bureaucrat.cpp | Sviridovamd/CPP-Module | fe8494a0c775da699e5013458f8b8ebdfa88bef6 | [
"MIT"
] | null | null | null | //
// Created by moboustt on 3/8/2021.
//
#include "Bureaucrat.hpp"
#include "../ex01/Bureaucrat.hpp"
Bureaucrat::Bureaucrat() { }
Bureaucrat::Bureaucrat(const std::string& name, int grade) : _name(name), _grade(grade) {
try {
if (grade <= 0)
throw GradeTooHighException("Grade to high.");
else if (grade > 1... | 26.333333 | 115 | 0.679494 | mo-san99 |
06d7d0226c50f10e07f1703785c31d45e41d399c | 2,975 | hxx | C++ | opencascade/IGESDimen_DiameterDimension.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | opencascade/IGESDimen_DiameterDimension.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | opencascade/IGESDimen_DiameterDimension.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | // Created on: 1993-01-13
// Created by: CKY / Contract Toubro-Larsen ( Deepak PRABHU )
// Copyright (c) 1993-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 ... | 29.75 | 193 | 0.774118 | mgreminger |
06da713767967d44aea9510f4ae82fc0dc91d7b9 | 6,479 | cpp | C++ | src/demo-shooting-range/player.cpp | PurpleAzurite/T3Vtech-3 | 69ec6a94f1671b9e4a9f0904c548809c8768c5f4 | [
"MIT"
] | 5 | 2022-02-01T13:39:12.000Z | 2022-03-30T16:57:58.000Z | src/demo-shooting-range/player.cpp | PurpleAzurite/T3Vtech-3 | 69ec6a94f1671b9e4a9f0904c548809c8768c5f4 | [
"MIT"
] | 1 | 2022-03-26T17:51:23.000Z | 2022-03-26T17:51:23.000Z | src/demo-shooting-range/player.cpp | PurpleAzurite/T3Vtech-3 | 69ec6a94f1671b9e4a9f0904c548809c8768c5f4 | [
"MIT"
] | 4 | 2022-03-19T13:36:34.000Z | 2022-03-30T16:58:02.000Z | #include <player.hpp>
#include <shooting-range.hpp>
#define PLAYER_SPEED 6.6
#define PLAYER_JUMP_SPEED 0.3
#define PLAYER_HEIGHT 1.75
#define CTL_NUM 1
sr::player::player()
{
//load rocket launcher
m_rocket_launcher=tt_3d_object_new();
m_rocket_launcher_model=tt_3d_custom_model_load_file("assets/shooting-range/ro... | 26.02008 | 99 | 0.744405 | PurpleAzurite |
06db59286fb327eae415a4f5271022d896828ff0 | 725 | cpp | C++ | 534.cpp | BachWV/matu | d4e3a89385f0a205431dd34c2c7214af40bb8ddb | [
"MIT"
] | null | null | null | 534.cpp | BachWV/matu | d4e3a89385f0a205431dd34c2c7214af40bb8ddb | [
"MIT"
] | null | null | null | 534.cpp | BachWV/matu | d4e3a89385f0a205431dd34c2c7214af40bb8ddb | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
typedef struct LNode {
int data;
struct LNode* next;
}Node;
int* solve(int N, int M, int K) {
int* a = new int[N - K];
int j = 0;
Node* L = new Node;
Node* r = L;
for (int i = 1; i <= N; i++) {
Node* p = new Node;
p->data = i;
p->next = NULL;
r->next = p;
r = r... | 15.104167 | 35 | 0.466207 | BachWV |
06e317a598c392b635d93c2290a4c7bdf9156776 | 17,321 | hpp | C++ | include/tuple.hpp | Shtan7/KTL | 9c0adf8fac2f0bb481060b7bbb15b1356089af3c | [
"MIT"
] | 38 | 2020-12-16T22:12:50.000Z | 2022-03-24T04:07:14.000Z | include/tuple.hpp | Shtan7/KTL | 9c0adf8fac2f0bb481060b7bbb15b1356089af3c | [
"MIT"
] | 165 | 2020-11-11T21:22:23.000Z | 2022-03-26T14:30:40.000Z | include/tuple.hpp | Shtan7/KTL | 9c0adf8fac2f0bb481060b7bbb15b1356089af3c | [
"MIT"
] | 5 | 2021-07-16T19:05:28.000Z | 2021-12-22T11:46:42.000Z | #pragma once
#include <type_traits.hpp>
#include <functional.hpp>
#include <utility.hpp>
namespace ktl {
namespace tt::details {
template<class Ty, class... Tys>
struct count_entries {
// MSVC 19.20+
static constexpr size_t value =
(static_cast<size_t>(is_same_v<Ty, Tys>) + ...);
};
template<class Ty, class... | 33.764133 | 86 | 0.625195 | Shtan7 |
06e3e70b378dfa6edc9a2bbaddb9dade972514db | 150 | cpp | C++ | src/Model/PlayerAI.cpp | kigster/SimonSays | 41b18f786560f1daa6b7a79eb3d6b31d1cb1e5a1 | [
"MIT"
] | 1 | 2018-11-01T08:47:17.000Z | 2018-11-01T08:47:17.000Z | src/Model/PlayerAI.cpp | kigster/SimonSays | 41b18f786560f1daa6b7a79eb3d6b31d1cb1e5a1 | [
"MIT"
] | null | null | null | src/Model/PlayerAI.cpp | kigster/SimonSays | 41b18f786560f1daa6b7a79eb3d6b31d1cb1e5a1 | [
"MIT"
] | null | null | null | //
// Created by Konstantin Gredeskoul on 11/3/18.
//
#include "PlayerAI.h"
PlayerAI::PlayerAI(GameController controller) : Player(controller) {
}
| 15 | 68 | 0.72 | kigster |
06eef878d572cf11aa161c42d35feaef6cbccf61 | 1,927 | cpp | C++ | 079_Word_Search.cpp | vorfeed/leetcode | 1bbef6cadf32b00fcb077ce6501b660e127637ab | [
"BSD-3-Clause"
] | null | null | null | 079_Word_Search.cpp | vorfeed/leetcode | 1bbef6cadf32b00fcb077ce6501b660e127637ab | [
"BSD-3-Clause"
] | null | null | null | 079_Word_Search.cpp | vorfeed/leetcode | 1bbef6cadf32b00fcb077ce6501b660e127637ab | [
"BSD-3-Clause"
] | null | null | null | #include "head.h"
/**
https://leetcode.com/problems/word-search
Given a 2D board and a word, find if the word exists in the grid.
The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or vertically neighboring.
The same letter cell may not be used mo... | 25.025974 | 145 | 0.591074 | vorfeed |
06f4654f07ddaec0bec9277862cfe063314b5f46 | 5,639 | cpp | C++ | plugins/TsuTemplate.cpp | HaronK/BinaryDigger | 92cce1d7d00b245ea1e506abdfb1f39f9f33bf32 | [
"MIT"
] | 1 | 2015-04-11T17:54:30.000Z | 2015-04-11T17:54:30.000Z | plugins/TsuTemplate.cpp | HaronK/BinaryDigger | 92cce1d7d00b245ea1e506abdfb1f39f9f33bf32 | [
"MIT"
] | 15 | 2015-03-10T10:09:33.000Z | 2015-11-11T20:17:35.000Z | plugins/TsuTemplate.cpp | HaronK/BinaryDigger | 92cce1d7d00b245ea1e506abdfb1f39f9f33bf32 | [
"MIT"
] | null | null | null | /*
* TsuTemplate.cpp
*
* Created on: Dec 10, 2013
* Author: Oleg Khryptul
*/
#include <default_plugin.h>
#define ACDF_MAGIC_STR_LENGTH 8 /** length of magic part in header. Do not change! */
typedef long long AC_DATETIME; /**< actual datatype for AC_DT_DATETIME */
typedef int AC_INT; /**< actual datatype... | 48.196581 | 141 | 0.575989 | HaronK |
06fbdcc3114b59e31a93a04b154ec765c42491f0 | 771 | cpp | C++ | src/new_client/clientlib/commands/InventoryCommand.cpp | engineerjames/men-among-gods | 487a69530f22a128331c3f1fb4e8c1b17f286ddf | [
"MIT"
] | null | null | null | src/new_client/clientlib/commands/InventoryCommand.cpp | engineerjames/men-among-gods | 487a69530f22a128331c3f1fb4e8c1b17f286ddf | [
"MIT"
] | null | null | null | src/new_client/clientlib/commands/InventoryCommand.cpp | engineerjames/men-among-gods | 487a69530f22a128331c3f1fb4e8c1b17f286ddf | [
"MIT"
] | null | null | null | #include "InventoryCommand.h"
#include <SFML/Network.hpp>
#include <cstdint>
namespace MenAmongGods
{
InventoryCommand::InventoryCommand( std::uint32_t x, std::uint32_t y, std::uint32_t selectedCharacter )
: ClientCommand( ClientMessages::MessageTypes::CMD_INV )
, x_( x )
, y_( y )
, selectedCharacter... | 24.870968 | 103 | 0.670558 | engineerjames |
06fceb5e348abe91017be06615f30249a039278f | 5,106 | hpp | C++ | src/library/blas1/elementwise-transform.hpp | xfong/clSPARSE | fa026dcb99a374678624530dff041322d67e0630 | [
"Apache-2.0"
] | 164 | 2015-08-03T21:53:40.000Z | 2022-03-31T14:58:11.000Z | src/library/blas1/elementwise-transform.hpp | xfong/clSPARSE | fa026dcb99a374678624530dff041322d67e0630 | [
"Apache-2.0"
] | 94 | 2015-08-04T15:49:30.000Z | 2021-02-01T14:28:35.000Z | src/library/blas1/elementwise-transform.hpp | xfong/clSPARSE | fa026dcb99a374678624530dff041322d67e0630 | [
"Apache-2.0"
] | 76 | 2015-08-04T00:00:44.000Z | 2021-09-17T17:53:06.000Z | /* ************************************************************************
* Copyright 2015 Vratis, 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/lice... | 28.054945 | 122 | 0.607129 | xfong |
660324c215fda1914339eefb25cacfc611d3cf66 | 6,944 | cc | C++ | tests/WIP/rom/lspg_specific/lspg_residual_policy_norms/main1.cc | Pressio/pressio | e07eb1ed71266490217f2f7a3aad5e1acfecfd4a | [
"BSD-3-Clause"
] | 29 | 2019-11-11T13:17:57.000Z | 2022-03-16T01:31:31.000Z | tests/WIP/rom/lspg_specific/lspg_residual_policy_norms/main1.cc | Pressio/pressio | e07eb1ed71266490217f2f7a3aad5e1acfecfd4a | [
"BSD-3-Clause"
] | 303 | 2019-09-30T10:15:41.000Z | 2022-03-30T08:24:04.000Z | tests/WIP/rom/lspg_specific/lspg_residual_policy_norms/main1.cc | nittaya1990/pressio | 22fad15ffc00f3e4d880476a5e60b227ac714ef4 | [
"BSD-3-Clause"
] | 4 | 2020-07-07T03:32:36.000Z | 2022-03-10T05:21:42.000Z |
#include "pressio_rom_lspg.hpp"
struct MyMasker
{
using scalar_type = double;
int N_ = {};
MyMasker(int N) : N_(N){}
Eigen::VectorXd createApplyMaskResult(const Eigen::VectorXd & operand) const
{
return Eigen::VectorXd(N_);
}
Eigen::MatrixXd createApplyMaskResult(const Eigen::MatrixXd & operand) c... | 27.231373 | 106 | 0.638969 | Pressio |
66090114a8c9bb4dc773f3c2b3c602a71e89bb2e | 13,023 | cpp | C++ | logdevice/common/test/benchmarks/SequencerMapBenchmark.cpp | mickvav/LogDevice | 24a8b6abe4576418eceb72974083aa22d7844705 | [
"BSD-3-Clause"
] | 1 | 2021-05-19T23:01:58.000Z | 2021-05-19T23:01:58.000Z | logdevice/common/test/benchmarks/SequencerMapBenchmark.cpp | mickvav/LogDevice | 24a8b6abe4576418eceb72974083aa22d7844705 | [
"BSD-3-Clause"
] | null | null | null | logdevice/common/test/benchmarks/SequencerMapBenchmark.cpp | mickvav/LogDevice | 24a8b6abe4576418eceb72974083aa22d7844705 | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright (c) 2017-present, Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <cstdlib>
#include <iostream>
#include <memory>
#include <thread>
#include <un... | 24.711575 | 76 | 0.617676 | mickvav |
660f57a9084129b6d4fce519662bbb968519d270 | 1,562 | hpp | C++ | native/r1lookup.hpp | entzian/spats | cb0d9f1f3c0fbcb3c333096d657ef96f7179de46 | [
"BSL-1.0"
] | 4 | 2016-11-27T04:44:41.000Z | 2019-10-08T18:32:51.000Z | native/r1lookup.hpp | entzian/spats | cb0d9f1f3c0fbcb3c333096d657ef96f7179de46 | [
"BSL-1.0"
] | 1 | 2017-12-18T22:02:28.000Z | 2017-12-18T22:02:28.000Z | native/r1lookup.hpp | entzian/spats | cb0d9f1f3c0fbcb3c333096d657ef96f7179de46 | [
"BSL-1.0"
] | 3 | 2016-06-10T11:36:00.000Z | 2021-08-30T18:25:18.000Z |
#ifndef __SPATS_R1LOOKUP_HPP_INCLUDED__
#define __SPATS_R1LOOKUP_HPP_INCLUDED__
#include "target.hpp"
class R1Lookup
{
private:
Targets * m_targets;
std::string m_adapter_b;
int m_r1_length;
Fragment * m_linker;
int m_allowed_errors;
FragmentStorage * m_storage;
void build();
void b... | 21.108108 | 143 | 0.647887 | entzian |
66112fb4ea486cf2eca6d6e9906cd7b43fdfbb3a | 474 | cpp | C++ | week06/ex3_bonus.cpp | cs-si-ucr/cs10solutions | 773957b7d17085e91bcab6913cb7ff5dd6e149cf | [
"MIT"
] | null | null | null | week06/ex3_bonus.cpp | cs-si-ucr/cs10solutions | 773957b7d17085e91bcab6913cb7ff5dd6e149cf | [
"MIT"
] | null | null | null | week06/ex3_bonus.cpp | cs-si-ucr/cs10solutions | 773957b7d17085e91bcab6913cb7ff5dd6e149cf | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
using namespace std;
int main() {
int mod = 6947;
int shift = 27;
int exponent = 3;
unsigned long long seed = time(0) % mod;
int count = 0;
cout << "How many random numbers would you like? ";
cin >> count;
for (int i = 0; i < count; ++i)... | 20.608696 | 74 | 0.540084 | cs-si-ucr |
6617146474ab2ada1947ea14f89a869fa0715655 | 102 | cpp | C++ | stb.cpp | bmharper/cimg | 3334881bb631677d8af0e23669cbb0100b7ce333 | [
"BSD-3-Clause"
] | null | null | null | stb.cpp | bmharper/cimg | 3334881bb631677d8af0e23669cbb0100b7ce333 | [
"BSD-3-Clause"
] | null | null | null | stb.cpp | bmharper/cimg | 3334881bb631677d8af0e23669cbb0100b7ce333 | [
"BSD-3-Clause"
] | 1 | 2022-02-23T09:56:50.000Z | 2022-02-23T09:56:50.000Z | #define STB_IMAGE_RESIZE_IMPLEMENTATION
#include "stb_image_resize.h"
#include <libexif/exif-data.h>
| 20.4 | 39 | 0.823529 | bmharper |
661ac416f41b1e146fb3bb4c03bed879421bcd7c | 2,581 | cpp | C++ | CsPlugin/Source/CsCore/Public/Managers/SkeletalMesh/CsCVars_SkeletalMeshActor.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | 2 | 2019-03-17T10:43:53.000Z | 2021-04-20T21:24:19.000Z | CsPlugin/Source/CsCore/Public/Managers/SkeletalMesh/CsCVars_SkeletalMeshActor.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | CsPlugin/Source/CsCore/Public/Managers/SkeletalMesh/CsCVars_SkeletalMeshActor.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | // Copyright 2017-2021 Closed Sum Games, LLC. All Rights Reserved.
#include "Managers/SkeletalMesh/CsCVars_SkeletalMeshActor.h"
TAutoConsoleVariable<int32> CsCVarLogSkeletalMeshActorPooledChange(
TEXT("log.skeletalmeshactor.pooled.change"),
0,
TEXT("Log SkeletalMeshActor Pooled Changes (Preserved between Allocate a... | 39.106061 | 164 | 0.847346 | closedsum |
6628a6b01a05467f741a0117a9a89ef3fbc28ca6 | 4,829 | cpp | C++ | tetris/Classes/DrawMap.cpp | yakewdx/E-120-learning-Cocos2d-x | a6c1a54b0c4bc6509685b549218f449b95ca64a6 | [
"MIT"
] | null | null | null | tetris/Classes/DrawMap.cpp | yakewdx/E-120-learning-Cocos2d-x | a6c1a54b0c4bc6509685b549218f449b95ca64a6 | [
"MIT"
] | null | null | null | tetris/Classes/DrawMap.cpp | yakewdx/E-120-learning-Cocos2d-x | a6c1a54b0c4bc6509685b549218f449b95ca64a6 | [
"MIT"
] | null | null | null | //
// DrawMap.cpp
// tetris
//
// Created by 王冬晓 on 14/12/10.
//
//
#include "DrawMap.h"
#include "TetrisField.h"
USING_NS_CC;
/****************************************************************
ColoredboxMap
****************************************************************/
std::map<int,std::string> _map;
std::... | 29.625767 | 131 | 0.565127 | yakewdx |
6629000f468f5884a3b24552e807eadeb084ab34 | 11,459 | cpp | C++ | lib/CodeGen/MIRVRegNamerUtils.cpp | arunkumarbhattar/llvm | 2c4ca6832fa6b306ee6a7010bfb80a3f2596f824 | [
"Apache-2.0"
] | 4,812 | 2015-01-02T19:38:10.000Z | 2022-03-27T12:42:24.000Z | lib/CodeGen/MIRVRegNamerUtils.cpp | arunkumarbhattar/llvm | 2c4ca6832fa6b306ee6a7010bfb80a3f2596f824 | [
"Apache-2.0"
] | 36 | 2015-02-09T21:48:00.000Z | 2019-09-12T06:16:35.000Z | lib/CodeGen/MIRVRegNamerUtils.cpp | arunkumarbhattar/llvm | 2c4ca6832fa6b306ee6a7010bfb80a3f2596f824 | [
"Apache-2.0"
] | 2,543 | 2015-01-01T11:18:36.000Z | 2022-03-22T21:32:36.000Z | //===---------- MIRVRegNamerUtils.cpp - MIR VReg Renaming Utilities -------===//
//
// 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
//
//===---------------------------... | 32.833811 | 80 | 0.618902 | arunkumarbhattar |
6629cd2f9bcb62a9b3981dfdb0f7d19343eec24f | 13,637 | cpp | C++ | FastImplementation-BilateralFilter/util.cpp | yoshihiromaed/FastImplementation-BilateralFilter | d81d0cec1ef2304dfa12297c63b59357def04d0f | [
"MIT"
] | 16 | 2018-10-25T11:51:46.000Z | 2021-08-02T08:09:34.000Z | FastImplementation-BilateralFilter/util.cpp | yoshihiromaed/FastImplementation-BilateralFilter | d81d0cec1ef2304dfa12297c63b59357def04d0f | [
"MIT"
] | null | null | null | FastImplementation-BilateralFilter/util.cpp | yoshihiromaed/FastImplementation-BilateralFilter | d81d0cec1ef2304dfa12297c63b59357def04d0f | [
"MIT"
] | 3 | 2018-10-25T12:48:33.000Z | 2019-09-09T10:08:45.000Z | #include "test.h"
using namespace std;
using namespace cv;
void myCopyMakeBorder_H_32F(Mat& img, const int& left, const int& right)
{
const float* sptr = (float*)img.ptr(0) + left;
float* dptr = (float*)img.ptr(0);
int dstep = img.cols;
for (int i = 0; i < img.rows; i++)
{
for (int j = 0; j < left; j++)
{
... | 17.416347 | 112 | 0.567207 | yoshihiromaed |
6630ed62dcc9612e75e1dc1148eac5be0951a576 | 4,074 | cpp | C++ | common/key_store.cpp | michealbrownm/phantom | a1a41a6f9317c26e621952637c7e331c8dacf79d | [
"Apache-2.0"
] | 27 | 2020-09-24T03:14:13.000Z | 2021-11-29T14:00:36.000Z | common/key_store.cpp | david2011dzha/phantom | eff76713e03966eb44e20a07806b8d47ec73ad09 | [
"Apache-2.0"
] | null | null | null | common/key_store.cpp | david2011dzha/phantom | eff76713e03966eb44e20a07806b8d47ec73ad09 | [
"Apache-2.0"
] | 10 | 2020-09-24T14:34:30.000Z | 2021-02-22T06:50:31.000Z | /*
phantom 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 version.
phantom is distributed in the hope that it will be useful,
but WITHOUT ANY ... | 28.096552 | 160 | 0.677958 | michealbrownm |
6639c104e9cbffaf763f37a4f0bc2a6f0cd794a7 | 148 | cpp | C++ | src/test.cpp | feniksa/cmake-skeleton | c395989cc6d18fdfbfd3ab9bca805a10b57e736d | [
"Apache-2.0"
] | null | null | null | src/test.cpp | feniksa/cmake-skeleton | c395989cc6d18fdfbfd3ab9bca805a10b57e736d | [
"Apache-2.0"
] | null | null | null | src/test.cpp | feniksa/cmake-skeleton | c395989cc6d18fdfbfd3ab9bca805a10b57e736d | [
"Apache-2.0"
] | null | null | null | #include "test.h"
#include <iostream>
namespace cmake_skeleton
{
void test()
{
std::cout << "Hello from test function\n";
}
} // cmake_skeleton
| 11.384615 | 43 | 0.682432 | feniksa |
663f7a33d59edd11490dec0498c00ef27b9aaaa6 | 1,522 | cpp | C++ | git_C++/SET III/prob3(nr prietene)/main.cpp | soryncrash13/old-C-stuff | d6f7b3573c1f81597795cea75c5f76fd95c4395b | [
"MIT"
] | 1 | 2017-09-30T09:58:07.000Z | 2017-09-30T09:58:07.000Z | git_C++/SET III/prob3(nr prietene)/main.cpp | sorinmiroiu97/old-CPP-stuff | d6f7b3573c1f81597795cea75c5f76fd95c4395b | [
"MIT"
] | null | null | null | git_C++/SET III/prob3(nr prietene)/main.cpp | sorinmiroiu97/old-CPP-stuff | d6f7b3573c1f81597795cea75c5f76fd95c4395b | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int n=1,nr,d=1,s1=0,s2=0;
int main()
{
cout<<"introdu un numar ";
cin>>nr;
while(n<nr)
{
d=1; s1=0;
while(d<=n/2)
{
if(n%d==0) s1+=d;
d++;
}
d=1; s2=0;
while(d<=s1/2)
... | 13.836364 | 73 | 0.449409 | soryncrash13 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.