hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6331e61c92691e209ebf157eb4c487cfe325540a | 11,442 | hpp | C++ | src/petro/box/stsd.hpp | steinwurf/petro | d06485f0c1748c425d5f30444638883e62aedf62 | [
"BSD-3-Clause"
] | 3 | 2017-08-24T14:14:53.000Z | 2018-05-14T02:48:16.000Z | src/petro/box/stsd.hpp | steinwurf/petro | d06485f0c1748c425d5f30444638883e62aedf62 | [
"BSD-3-Clause"
] | 10 | 2016-06-17T07:10:25.000Z | 2021-12-14T13:37:29.000Z | src/petro/box/stsd.hpp | steinwurf/petro | d06485f0c1748c425d5f30444638883e62aedf62 | [
"BSD-3-Clause"
] | 3 | 2017-06-12T19:22:27.000Z | 2019-01-03T19:18:24.000Z | // Copyright (c) Steinwurf ApS 2016.
// All Rights Reserved
//
// Distributed under the "BSD License". See the accompanying LICENSE.rst file.
#pragma once
#include <cassert>
#include <cstdint>
#include <string>
#include "../parser.hpp"
#include "avcc.hpp"
#include "esds.hpp"
#include "full_box.hpp"
#include "hdlr.hp... | 27.178147 | 79 | 0.506992 | steinwurf |
63338015ee87cd92b19f901c69ed9a306ef91653 | 18,000 | cpp | C++ | Server/src/Core/OperationThread.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 2 | 2017-04-19T01:38:30.000Z | 2020-07-31T03:05:32.000Z | Server/src/Core/OperationThread.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | null | null | null | Server/src/Core/OperationThread.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 1 | 2021-12-29T10:46:12.000Z | 2021-12-29T10:46:12.000Z | //
// Copyright (C) 2004-2011 by Autodesk, Inc.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of version 2.1 of the GNU Lesser
// General Public License as published by the Free Software Foundation.
//
// This library is distributed in the hope that it will be use... | 38.87689 | 130 | 0.518611 | achilex |
6333c222a9ed51bbcd87f444d4523a1dff1db335 | 41,851 | cpp | C++ | fea/main.cpp | jia-kai/SANM | 2673ac476b3d2978a52bf47bc12d3402ea20f211 | [
"MIT"
] | 25 | 2021-05-19T09:27:52.000Z | 2022-02-22T15:22:05.000Z | fea/main.cpp | jia-kai/SANM | 2673ac476b3d2978a52bf47bc12d3402ea20f211 | [
"MIT"
] | 1 | 2021-09-03T05:31:47.000Z | 2021-09-05T01:37:42.000Z | fea/main.cpp | jia-kai/SANM | 2673ac476b3d2978a52bf47bc12d3402ea20f211 | [
"MIT"
] | null | null | null | /**
* \file fea/main.cpp
* This file is part of SANM, a symbolic asymptotic numerical solver.
*/
#include "fea/baseline/main.h"
#include "fea/tetrahedral_mesh.h"
#include "libsanm/anm.h"
#include "libsanm/sparse_solver.h"
#include <Eigen/Dense>
#include <cmath>
#include <filesystem>
#include <fstream>
#include <n... | 37.366964 | 80 | 0.557 | jia-kai |
6335ce1685a472083f0851f8407ca39ff145e196 | 10,955 | cpp | C++ | inference-engine/src/mkldnn_plugin/nodes/mkldnn_deconv_node.cpp | mypopydev/dldt | 8cd639116b261adbbc8db860c09807c3be2cc2ca | [
"Apache-2.0"
] | 3 | 2019-07-08T09:03:03.000Z | 2020-09-09T10:34:17.000Z | inference-engine/src/mkldnn_plugin/nodes/mkldnn_deconv_node.cpp | openvino-pushbot/dldt | e607ee70212797cf9ca51dac5b7ac79f66a1c73f | [
"Apache-2.0"
] | 3 | 2020-11-13T18:59:18.000Z | 2022-02-10T02:14:53.000Z | inference-engine/src/mkldnn_plugin/nodes/mkldnn_deconv_node.cpp | openvino-pushbot/dldt | e607ee70212797cf9ca51dac5b7ac79f66a1c73f | [
"Apache-2.0"
] | 1 | 2018-12-14T07:56:02.000Z | 2018-12-14T07:56:02.000Z | // Copyright (C) 2018 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
//
#include "mkldnn_deconv_node.h"
#include "desc_iterator.hpp"
#include <ie_layers.h>
#include <mkldnn.hpp>
#include <string>
#include <vector>
#include <mkldnn_types.h>
#include <mkldnn_extension_utils.h>
using namespace mkldnn;
using... | 43.995984 | 145 | 0.604747 | mypopydev |
633808dcce20847ba8fd62a4f0c0ce7da0ed66d4 | 782 | cpp | C++ | leetcode/10. Regular Expression Matching/s1.cpp | zhuohuwu0603/leetcode_cpp_lzl124631x | 6a579328810ef4651de00fde0505934d3028d9c7 | [
"Fair"
] | 787 | 2017-05-12T05:19:57.000Z | 2022-03-30T12:19:52.000Z | leetcode/10. Regular Expression Matching/s1.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | 8 | 2020-03-16T05:55:38.000Z | 2022-03-09T17:19:17.000Z | leetcode/10. Regular Expression Matching/s1.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | 247 | 2017-04-30T15:07:50.000Z | 2022-03-30T09:58:57.000Z | // OJ: https://leetcode.com/problems/regular-expression-matching/
// Author: github.com/lzl124631x
// Time: O(MN)
// Space: O(M)
class Solution {
private:
inline bool matchChar(string &s, int i, string &p, int j) {
return p[j] == '.' ? i < s.size() : s[i] == p[j];
}
bool isMatch(string s, int i, str... | 31.28 | 72 | 0.476982 | zhuohuwu0603 |
633bbbcdca7a49e0f3b1db64f361653b22755466 | 3,574 | cpp | C++ | TestNetworks/TryStatSubNet/Helper Code/dfs.cpp | nyue/cppfbp | f3cc99236db5a59a09f3d8924b2d1b95f2111741 | [
"Artistic-2.0"
] | 58 | 2015-01-01T15:33:56.000Z | 2022-01-14T07:29:20.000Z | TestNetworks/TryStatSubNet/Helper Code/dfs.cpp | nyue/cppfbp | f3cc99236db5a59a09f3d8924b2d1b95f2111741 | [
"Artistic-2.0"
] | 8 | 2015-12-29T17:38:01.000Z | 2019-10-12T14:01:01.000Z | TestNetworks/TryStatSubNet/Helper Code/dfs.cpp | nyue/cppfbp | f3cc99236db5a59a09f3d8924b2d1b95f2111741 | [
"Artistic-2.0"
] | 15 | 2015-01-20T04:02:35.000Z | 2022-01-14T07:30:00.000Z | #include "StdAfx.h"
#include <stdarg.h>
#include <string.h>
#include <stdio.h>
#include "thxanch.h"
int const ZERO = 0; // for testing
int const ONE = 1; //send
int const TWO = 2; //recv
int const THREE = 3; //crep
int const FOUR = 4; //drop
int const FIVE = 5; //dfpt
int const SIX... | 21.023529 | 86 | 0.641018 | nyue |
633c04ed4e617290e48ba5c457a40df08baba7ed | 821 | hpp | C++ | Solution/Header/ObjectSystem/Collision/BoxComponent.hpp | TeeNik/GameEngine | 9a3893455f20e14f967e5df9b2168fa0f004c101 | [
"MIT"
] | null | null | null | Solution/Header/ObjectSystem/Collision/BoxComponent.hpp | TeeNik/GameEngine | 9a3893455f20e14f967e5df9b2168fa0f004c101 | [
"MIT"
] | null | null | null | Solution/Header/ObjectSystem/Collision/BoxComponent.hpp | TeeNik/GameEngine | 9a3893455f20e14f967e5df9b2168fa0f004c101 | [
"MIT"
] | null | null | null | #pragma once
#include "ObjectSystem/Component.hpp"
#include "Physics/Collision.hpp"
class Actor;
enum CollisionObjectType
{
Static,
Dynamic,
};
class BoxComponent : public Component
{
public:
BoxComponent(Actor* owner);
virtual ~BoxComponent();
virtual void Update(float deltaTime) override;
inline void SetObj... | 20.525 | 81 | 0.749086 | TeeNik |
633ca2a14390a0554b23040ab9ab1da678e1b68b | 3,419 | cpp | C++ | Experiment1/main.cpp | luciochen233/CSE398-Group-6 | 8479db088bb09695b7da1725637918706b7bac4d | [
"Unlicense"
] | null | null | null | Experiment1/main.cpp | luciochen233/CSE398-Group-6 | 8479db088bb09695b7da1725637918706b7bac4d | [
"Unlicense"
] | null | null | null | Experiment1/main.cpp | luciochen233/CSE398-Group-6 | 8479db088bb09695b7da1725637918706b7bac4d | [
"Unlicense"
] | 1 | 2020-03-02T22:11:45.000Z | 2020-03-02T22:11:45.000Z | #include "gpio.h"
#include "pwm.h"
#include "adc.h"
#include <thread>
#include <chrono>
using namespace std;
void task1(){
gpio g67(67);
gpio g66(66);
cout << "66's value" << endl;
int p66 = 0;
cin >> p66;
g66.set_direction(0); // 0 is out
g66.set_value(p66);
cin.get();
cin.get();
cout << "change ... | 24.775362 | 89 | 0.621819 | luciochen233 |
633cb6452ddf54e3861f7c63f6eff88acf1e0d91 | 2,701 | hh | C++ | PacEmc/PacEmcDigi.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | PacEmc/PacEmcDigi.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | PacEmc/PacEmcDigi.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null |
#ifndef PACEMCDIGI_HH
#define PACEMCDIGI_HH
#include <iostream>
#include "AbsEnv/TwoCoordIndex.hh"
#include "CLHEP/Geometry/HepPoint.h"
#include <map>
class GTrack;
typedef std::map<const GTrack*, double> GTDouble ;
class PacEmcDigi {
public:
enum WaveFormTime {InSigWin=0,OutOfSigWin};
PacEmcDigi();
PacEm... | 30.011111 | 72 | 0.737505 | brownd1978 |
633d417cadbfc601e51efbd2fef82a59faf884ec | 2,728 | cpp | C++ | Src/Math/vector3.cpp | bouzi71/STM32LedCube | 65a67e310789c21648115bd119ab56d1bc9c703d | [
"Apache-2.0"
] | 1 | 2020-12-20T17:00:58.000Z | 2020-12-20T17:00:58.000Z | Src/Math/vector3.cpp | bouzi71/STM32LedCube | 65a67e310789c21648115bd119ab56d1bc9c703d | [
"Apache-2.0"
] | null | null | null | Src/Math/vector3.cpp | bouzi71/STM32LedCube | 65a67e310789c21648115bd119ab56d1bc9c703d | [
"Apache-2.0"
] | null | null | null |
// General
#include "vector3.h"
// Additional
#include "matrix3x3.h"
#include "matrix4x4.h"
#include <cmath>
/** Transformation of a vector by a 3x3 matrix */
Vector3 operator*(const Matrix3& pMatrix, const Vector3& pVector)
{
Vector3 res;
res.x = pMatrix.a1 * pVector.x + pMatrix.a2 * pVector.y + pMatrix.a3 * pV... | 19.076923 | 95 | 0.626466 | bouzi71 |
6341a2d9edfd9ca8656087b62b67d4027c5a75d4 | 9,841 | cpp | C++ | orca_base/src/planner.cpp | pankhurivanjani/orca2 | 03c0b510a1750371d2080b0497ff3e402234cf94 | [
"BSD-3-Clause"
] | null | null | null | orca_base/src/planner.cpp | pankhurivanjani/orca2 | 03c0b510a1750371d2080b0497ff3e402234cf94 | [
"BSD-3-Clause"
] | null | null | null | orca_base/src/planner.cpp | pankhurivanjani/orca2 | 03c0b510a1750371d2080b0497ff3e402234cf94 | [
"BSD-3-Clause"
] | null | null | null | #include "orca_base/planner.hpp"
#include <random>
using namespace orca;
namespace orca_base
{
constexpr double MAX_POSE_ERROR = 0.6;
//=====================================================================================
// Utilities
//======================================================================... | 34.170139 | 118 | 0.606747 | pankhurivanjani |
6344f5114936fb774498a1e1350d60f948ea9976 | 357 | cpp | C++ | solutions/1426.find-n-unique-integers-sum-up-to-zero/1426.find-n-unique-integers-sum-up-to-zero.1577586729.cpp | nettee/leetcode | 19aa8d54d64cce3679db5878ee0194fad95d8fa1 | [
"MIT"
] | 1 | 2021-01-14T06:01:02.000Z | 2021-01-14T06:01:02.000Z | solutions/1426.find-n-unique-integers-sum-up-to-zero/1426.find-n-unique-integers-sum-up-to-zero.1577586729.cpp | nettee/leetcode | 19aa8d54d64cce3679db5878ee0194fad95d8fa1 | [
"MIT"
] | 8 | 2018-03-27T11:47:19.000Z | 2018-11-12T06:02:12.000Z | solutions/1426.find-n-unique-integers-sum-up-to-zero/1426.find-n-unique-integers-sum-up-to-zero.1577586729.cpp | nettee/leetcode | 19aa8d54d64cce3679db5878ee0194fad95d8fa1 | [
"MIT"
] | 2 | 2020-04-30T09:47:01.000Z | 2020-12-03T09:34:08.000Z | class Solution {
public:
vector<int> sumZero(int n) {
if (n <= 0) {
return vector<int>{0};
}
vector<int> res;
for (int i = 1; i <= n/2; i++) {
res.push_back(i);
res.push_back(-i);
}
if (n % 2 == 1) {
res.push_back(0);
... | 19.833333 | 40 | 0.380952 | nettee |
634607ba522912fc030e6693f82ecb6a7399b7ee | 680 | cpp | C++ | src/AsyncMqttClient/Packets/Out/PubAck.cpp | sander1988/async-mqtt-client | 89bf46485d5b60ce1e8e5e4d265a9c1570de3dc5 | [
"MIT"
] | 697 | 2016-05-11T18:57:19.000Z | 2022-03-28T11:06:16.000Z | src/AsyncMqttClient/Packets/Out/PubAck.cpp | crosaalive/async-mqtt-client | 89bf46485d5b60ce1e8e5e4d265a9c1570de3dc5 | [
"MIT"
] | 259 | 2016-05-11T19:07:55.000Z | 2022-03-14T12:51:14.000Z | src/AsyncMqttClient/Packets/Out/PubAck.cpp | crosaalive/async-mqtt-client | 89bf46485d5b60ce1e8e5e4d265a9c1570de3dc5 | [
"MIT"
] | 256 | 2016-05-15T11:05:26.000Z | 2022-03-18T13:25:59.000Z | #include "PubAck.hpp"
using AsyncMqttClientInternals::PubAckOutPacket;
PubAckOutPacket::PubAckOutPacket(PendingAck pendingAck) {
_data[0] = pendingAck.packetType;
_data[0] = _data[0] << 4;
_data[0] = _data[0] | pendingAck.headerFlag;
_data[1] = 2;
_packetId = pendingAck.packetId;
_data[2] = pendingAck.pac... | 26.153846 | 68 | 0.711765 | sander1988 |
63495b3d4f22716799f03146d219763bfaacc140 | 18,237 | cpp | C++ | firmware/electron/firmware/Debugging.cpp | opyh/liftsensor | 0f2b8d284ba4f25d464db80840537e41d6603483 | [
"MIT"
] | 2 | 2017-04-21T20:27:43.000Z | 2018-07-10T08:48:12.000Z | firmware/electron/firmware/Debugging.cpp | opyh/liftsensor | 0f2b8d284ba4f25d464db80840537e41d6603483 | [
"MIT"
] | null | null | null | firmware/electron/firmware/Debugging.cpp | opyh/liftsensor | 0f2b8d284ba4f25d464db80840537e41d6603483 | [
"MIT"
] | null | null | null | // MIT License
//
// Copyright (c) 2016 rickkas7
//
// 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, me... | 38.073069 | 146 | 0.752317 | opyh |
634d6a1a40844a4af1bb051ca0f607a0440c6952 | 2,435 | cpp | C++ | SofaKernel/modules/SofaBaseCollision/IntrUtility3.cpp | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | SofaKernel/modules/SofaBaseCollision/IntrUtility3.cpp | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | SofaKernel/modules/SofaBaseCollision/IntrUtility3.cpp | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | #define SOFA_COMPONENT_COLLISION_INTRUTILITY3_CPP
#include <SofaBaseCollision/IntrUtility3.inl>
namespace sofa{
using namespace defaulttype;
namespace component{
namespace collision{
//----------------------------------------------------------------------------
//----------------------------------------------------... | 50.729167 | 134 | 0.737166 | sofa-framework |
634e28f76e0dc3331dcec44e7b4d0362d6ce4fc2 | 68,902 | hpp | C++ | lld/stm32l4x/timer/variant/hw_timer_register_stm32l4xxxx.hpp | brandonbraun653/Thor | 46e022f1791c8644955135c630fdd12a4296e44d | [
"MIT"
] | null | null | null | lld/stm32l4x/timer/variant/hw_timer_register_stm32l4xxxx.hpp | brandonbraun653/Thor | 46e022f1791c8644955135c630fdd12a4296e44d | [
"MIT"
] | 36 | 2019-03-24T14:43:25.000Z | 2021-01-11T00:05:30.000Z | lld/stm32l4x/timer/variant/hw_timer_register_stm32l4xxxx.hpp | brandonbraun653/Thor | 46e022f1791c8644955135c630fdd12a4296e44d | [
"MIT"
] | null | null | null | /********************************************************************************
* File Name:
* hw_timer_register_stm32l432kc.hpp
*
* Description:
* TIMER register definitions for the STM32L432KC series chips.
*
* 2020 | Brandon Braun | brandonbraun653@gmail.com
***************************************... | 62.752277 | 104 | 0.739979 | brandonbraun653 |
6354741684f875d315851742098ad7a92712fb8a | 13,382 | cpp | C++ | src_main/dx9sdk/Utilities/Source/Maya/FxInternal.cpp | raxxor45/ValveSecurity | de512a0b596c0bc6b8dcd1bcf1d5309442757706 | [
"MIT"
] | 2 | 2019-09-16T02:42:38.000Z | 2020-04-24T19:52:46.000Z | src_main/dx9sdk/Utilities/Source/Maya/FxInternal.cpp | raxxor45/ValveSecurity | de512a0b596c0bc6b8dcd1bcf1d5309442757706 | [
"MIT"
] | null | null | null | src_main/dx9sdk/Utilities/Source/Maya/FxInternal.cpp | raxxor45/ValveSecurity | de512a0b596c0bc6b8dcd1bcf1d5309442757706 | [
"MIT"
] | 3 | 2018-10-22T11:45:38.000Z | 2020-04-24T19:52:47.000Z | #include "pch.h"
//this for FxInternal::DecodePlug only
struct PathDecodeElement
{
PathDecodeElement()
{
IsArray= false;
Index= 0;
}
CStringA Name;
MFnAttribute Attribute;
bool IsArray;
int Index;//maya only supports 1d arrays
};
FxInternal::FxInternal() : DXMAnchor()
{
Effect= NULL;
DirectXShader::Act... | 23.982079 | 171 | 0.696981 | raxxor45 |
63547510c8b2e8bebae89ece37c346c1dea59eb5 | 5,439 | cpp | C++ | cpp/encrypter.cpp | TTFH/fsocietyM | 84588d338c3e92c31733a6e46d0edb2351411344 | [
"Unlicense"
] | 10 | 2018-12-22T00:48:18.000Z | 2022-03-17T10:19:30.000Z | cpp/encrypter.cpp | TTFH/fsocietyM | 84588d338c3e92c31733a6e46d0edb2351411344 | [
"Unlicense"
] | 6 | 2019-05-01T17:02:16.000Z | 2020-08-02T02:08:09.000Z | cpp/encrypter.cpp | TTFH/fsocietyM | 84588d338c3e92c31733a6e46d0edb2351411344 | [
"Unlicense"
] | 4 | 2019-07-03T07:56:52.000Z | 2021-09-07T15:06:09.000Z | #include <time.h>
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include "../headers/aes.h"
#include "../headers/random.h"
#include "../headers/encrypter.h"
#include <fileapi.h>
bool isEncryptedFile(string file) {
char* ext = strrchr(file, '.');
if (ext == NULL) return false;
return ... | 27.195 | 88 | 0.618864 | TTFH |
635c5b679e2961199b08551f3b81a2a7b94586de | 2,947 | cc | C++ | 7.mvp_triangle/main.cc | joone/opengl-wayland | 76355d9fbe160c3991577fe206350d5f992a9395 | [
"BSD-2-Clause"
] | 5 | 2021-01-25T01:51:58.000Z | 2022-03-18T22:50:10.000Z | 7.mvp_triangle/main.cc | joone/opengl-wayland | 76355d9fbe160c3991577fe206350d5f992a9395 | [
"BSD-2-Clause"
] | null | null | null | 7.mvp_triangle/main.cc | joone/opengl-wayland | 76355d9fbe160c3991577fe206350d5f992a9395 | [
"BSD-2-Clause"
] | null | null | null | //
// Triangle example
//
// Shader code came from OpenGL(R) ES 3.0 Programming Guide, 2nd Edition
// Simple_VertexShader.c
#include "../common/matrix.h"
#include "../common/display.h"
#include "../common/wayland_platform.h"
#include "../common/window.h"
// #version 300 es
const char* vertexShaderSource =
"#versi... | 31.351064 | 79 | 0.575161 | joone |
636218f89e7b529774742aa1706b236f87039c62 | 5,757 | hh | C++ | dune/fem/oseen/defaulttraits.hh | renemilk/DUNE-FEM-Oseen | 2cc2a1a70f81469f13a2330be285960a13f78fdf | [
"BSD-2-Clause"
] | null | null | null | dune/fem/oseen/defaulttraits.hh | renemilk/DUNE-FEM-Oseen | 2cc2a1a70f81469f13a2330be285960a13f78fdf | [
"BSD-2-Clause"
] | null | null | null | dune/fem/oseen/defaulttraits.hh | renemilk/DUNE-FEM-Oseen | 2cc2a1a70f81469f13a2330be285960a13f78fdf | [
"BSD-2-Clause"
] | null | null | null | #ifndef DUNE_OSEEN_DEFAULTTRAITS_HH
#define DUNE_OSEEN_DEFAULTTRAITS_HH
#include <dune/fem/oseen/stab_coeff.hh>
namespace Dune
{
template < class DiscreteModelImp >
struct StokesTraits
{
//! discrete model type
typedef DiscreteModelImp
DiscreteModelType;
//! volume quadrature type
typedef typename Dis... | 37.383117 | 92 | 0.800591 | renemilk |
636303201c283f7eb60f174f23a05bdd0e02ccb2 | 550 | cpp | C++ | include/hydro/engine/document/Query.cpp | hydraate/hydro | 42037a8278dcfdca68fb5cceaf6988da861f0eff | [
"Apache-2.0"
] | null | null | null | include/hydro/engine/document/Query.cpp | hydraate/hydro | 42037a8278dcfdca68fb5cceaf6988da861f0eff | [
"Apache-2.0"
] | null | null | null | include/hydro/engine/document/Query.cpp | hydraate/hydro | 42037a8278dcfdca68fb5cceaf6988da861f0eff | [
"Apache-2.0"
] | null | null | null | //
// __ __ __
// / / / /__ __ ____/ /_____ ____
// / /_/ // / / // __ // ___// __ \
// / __ // /_/ // /_/ // / / /_/ /
// /_/ /_/ \__, / \__,_//_/ \____/
// /____/
//
// ... | 21.153846 | 82 | 0.376364 | hydraate |
6363731b07ff9edbff2dc86c7a22351afb58a731 | 10,340 | hh | C++ | src/assert.hh | kwiberg/frz | 8661247c70e89a671b2b412c8c4f4c3f329ef98d | [
"Apache-2.0"
] | null | null | null | src/assert.hh | kwiberg/frz | 8661247c70e89a671b2b412c8c4f4c3f329ef98d | [
"Apache-2.0"
] | 12 | 2021-02-24T22:48:56.000Z | 2021-03-21T12:33:05.000Z | src/assert.hh | kwiberg/frz | 8661247c70e89a671b2b412c8c4f4c3f329ef98d | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2021 Karl Wiberg
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | 43.083333 | 80 | 0.518956 | kwiberg |
6363ce66c2e655f7fc2f8bfc7cbfe75bfc6823cc | 505 | cpp | C++ | Baekjoon/11586.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | Baekjoon/11586.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | Baekjoon/11586.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int main(void)
{
int len, dir;
string* arr;
cin >> len;
arr = new string[len];
for (int i = 0; i < len; i++)
cin >> arr[i];
cin >> dir;
if (dir == 1)
{
for (int i = 0; i < len; i++)
cout << arr[i] << '\n';
}
else if (dir == 2)
{
for (int i =... | 15.30303 | 37 | 0.449505 | Twinparadox |
6365023689297229dd041f99da138214bda756b7 | 44,444 | cc | C++ | library/src/network/httpd/BP-HTTPdRequestHandlers.cc | jason-medeiros/blockparty | 4b1aabe66b13ceac70d6e42feb796909f067df9a | [
"MIT"
] | 1 | 2018-05-31T11:51:43.000Z | 2018-05-31T11:51:43.000Z | library/src/network/httpd/BP-HTTPdRequestHandlers.cc | jason-medeiros/blockparty | 4b1aabe66b13ceac70d6e42feb796909f067df9a | [
"MIT"
] | null | null | null | library/src/network/httpd/BP-HTTPdRequestHandlers.cc | jason-medeiros/blockparty | 4b1aabe66b13ceac70d6e42feb796909f067df9a | [
"MIT"
] | null | null | null | /*
* BP-HTTPdRequestHandlers.cc
*
* Created on: Jul 17, 2015
* Author: root
*/
#include "../../../include/BP-Main.h"
// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
// %%% Request Handlers %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
//... | 29.948787 | 183 | 0.652034 | jason-medeiros |
63662b44c00de68be74a45708ee8f2a096c47abe | 1,206 | cpp | C++ | insert_data.cpp | pradm007/MongoDB-C--Sample | 4e2e55db7bc7b635a2a7021d5a79cf04707870dd | [
"MIT"
] | null | null | null | insert_data.cpp | pradm007/MongoDB-C--Sample | 4e2e55db7bc7b635a2a7021d5a79cf04707870dd | [
"MIT"
] | null | null | null | insert_data.cpp | pradm007/MongoDB-C--Sample | 4e2e55db7bc7b635a2a7021d5a79cf04707870dd | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#include <bsoncxx/json.hpp>
#include <mongocxx/client.hpp>
#include <mongocxx/instance.hpp>
#include <mongocxx/stdx.hpp>
#include <mongocxx/uri.hpp>
using bsoncxx::builder::stream::close_array;
using bsoncxx::builder::stream::close_document;
using bsoncxx::builder::stream::document;
using bson... | 28.714286 | 77 | 0.6733 | pradm007 |
636836968a7926fa0fc8a2a92f256de475c86517 | 3,292 | cpp | C++ | Source/WebCore/platform/playstation/MIMETypeRegistryPlayStation.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 6 | 2021-07-05T16:09:39.000Z | 2022-03-06T22:44:42.000Z | Source/WebCore/platform/playstation/MIMETypeRegistryPlayStation.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 7 | 2022-03-15T13:25:39.000Z | 2022-03-15T13:25:44.000Z | Source/WebCore/platform/playstation/MIMETypeRegistryPlayStation.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (C) 2018 Sony Interactive Entertainment Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditio... | 36.577778 | 78 | 0.672236 | jacadcaps |
636d3ab4eab6fb30cd92e4c40431ccd5e90c6ee7 | 714 | hpp | C++ | include/Boots/Utils/algorithm.hpp | Plaristote/Boots | ba6bd74fd06c5b26f1e159c6c861d46992db1145 | [
"BSD-3-Clause"
] | null | null | null | include/Boots/Utils/algorithm.hpp | Plaristote/Boots | ba6bd74fd06c5b26f1e159c6c861d46992db1145 | [
"BSD-3-Clause"
] | null | null | null | include/Boots/Utils/algorithm.hpp | Plaristote/Boots | ba6bd74fd06c5b26f1e159c6c861d46992db1145 | [
"BSD-3-Clause"
] | null | null | null | #ifndef BOOTS_ALGORITHM_HPP
# define BOOTS_ALGORITHM_HPP
namespace Algorithm
{
template<typename ARRAY, typename COMP_TYPE>
int sorted_find(ARRAY& array, COMP_TYPE value, int index_first = 0, int index_last = -1)
{
int middle;
if (index_last == -1)
index_last = array.size();
middle = index_... | 25.5 | 90 | 0.641457 | Plaristote |
636e9243514331fd227292026854ea7e4d3244fa | 434 | cpp | C++ | ch09/ex9_31_1.cpp | yunongzhou/cppprimer | 331cdc69f9063fca3466fda994a06de12387d0b3 | [
"MIT"
] | 2 | 2018-08-22T15:04:17.000Z | 2018-08-26T16:05:59.000Z | ch09/ex9_31_1.cpp | yunongzhou/cppprimer | 331cdc69f9063fca3466fda994a06de12387d0b3 | [
"MIT"
] | null | null | null | ch09/ex9_31_1.cpp | yunongzhou/cppprimer | 331cdc69f9063fca3466fda994a06de12387d0b3 | [
"MIT"
] | null | null | null | #include<list>
#include<iostream>
using std::list;
using std::cout;
using std::endl;
int main(){
list<int> intLst = {0, 1, 2, 3, 4, 5,6,7,8, 9};
auto iter = intLst.begin();
while(iter != intLst.end()){
if(*iter % 2){
iter = intLst.insert(iter, *iter);
advance(iter, 2);
}
else{
iter... | 16.692308 | 49 | 0.536866 | yunongzhou |
636f8da185f828c4020875e980033550be91d73f | 856 | cpp | C++ | 3dEngine/src/scene/ui/animation/UIAnimationFade.cpp | petitg1987/UrchinEngine | 32d4b62b1ab7e2aa781c99de11331e3738078b0c | [
"MIT"
] | 24 | 2015-10-05T00:13:57.000Z | 2020-05-06T20:14:06.000Z | 3dEngine/src/scene/ui/animation/UIAnimationFade.cpp | petitg1987/UrchinEngine | 32d4b62b1ab7e2aa781c99de11331e3738078b0c | [
"MIT"
] | 1 | 2019-11-01T08:00:55.000Z | 2019-11-01T08:00:55.000Z | 3dEngine/src/scene/ui/animation/UIAnimationFade.cpp | petitg1987/UrchinEngine | 32d4b62b1ab7e2aa781c99de11331e3738078b0c | [
"MIT"
] | 10 | 2015-11-25T07:33:13.000Z | 2020-03-02T08:21:10.000Z | #include <scene/ui/animation/UIAnimationFade.h>
namespace urchin {
UIAnimationFade::UIAnimationFade(Widget& widget, float endFadeValue) :
AbstractUIWidgetAnimation(widget),
startFadeValue(1.0f),
endFadeValue(endFadeValue),
linearProgression(0.0f) {
}
void ... | 29.517241 | 100 | 0.64486 | petitg1987 |
636fb3faa973adfeafdfc69925d5f303f323f495 | 93 | cpp | C++ | Source/FSDEngine/Private/DeepCSGFloatTreePacked.cpp | trumank/DRG-Mods | 2febc879f2ffe83498ac913c114d0e933427e93e | [
"MIT"
] | 8 | 2021-07-10T20:06:05.000Z | 2022-03-04T19:03:50.000Z | Source/FSDEngine/Private/DeepCSGFloatTreePacked.cpp | trumank/DRG-Mods | 2febc879f2ffe83498ac913c114d0e933427e93e | [
"MIT"
] | 9 | 2022-01-13T20:49:44.000Z | 2022-03-27T22:56:48.000Z | Source/FSDEngine/Private/DeepCSGFloatTreePacked.cpp | trumank/DRG-Mods | 2febc879f2ffe83498ac913c114d0e933427e93e | [
"MIT"
] | 2 | 2021-07-10T20:05:42.000Z | 2022-03-14T17:05:35.000Z | #include "DeepCSGFloatTreePacked.h"
FDeepCSGFloatTreePacked::FDeepCSGFloatTreePacked() {
}
| 15.5 | 52 | 0.817204 | trumank |
63704121b38f62f2f2695d2627cf52236fa35403 | 5,013 | cpp | C++ | converter/net.cpp | soarqin/vita-mcheat | c4240e84bd19069567ca9a1f63178a76e9b4452f | [
"MIT"
] | 20 | 2018-05-23T19:52:18.000Z | 2021-05-11T16:11:41.000Z | converter/net.cpp | soarqin/vita-rxcheat | c4240e84bd19069567ca9a1f63178a76e9b4452f | [
"MIT"
] | 9 | 2018-05-13T16:53:42.000Z | 2019-01-13T09:06:06.000Z | converter/net.cpp | soarqin/vita-rxcheat | c4240e84bd19069567ca9a1f63178a76e9b4452f | [
"MIT"
] | 1 | 2018-05-04T11:39:56.000Z | 2018-05-04T11:39:56.000Z | #include "net.h"
#include "uv.h"
#include "ikcp.h"
#include <list>
#ifndef _WIN32
#include <ctime>
uint32_t GetTickCount() {
struct timespec ts;
clock_gettime(CLOCK_MONOTONIC, &ts);
return (uint32_t)(ts.tv_sec * 1000 + ts.tv_nsec / 1000000);
}
#endif
struct ClientContext {
Client *client = nullptr... | 30.198795 | 103 | 0.528027 | soarqin |
63705134b851cba97de3a85f68bf5e7394aae170 | 31,240 | cpp | C++ | racermate/cpp_tester_save/test.cpp | SRAM/RacerMateDLL | a980e43919ae6c749561071cc135d5af221eb6c2 | [
"MIT"
] | 3 | 2020-10-08T21:30:28.000Z | 2021-04-27T00:24:00.000Z | racermate/cpp_tester_save/test.cpp | SRAM/RacerMateDLL | a980e43919ae6c749561071cc135d5af221eb6c2 | [
"MIT"
] | null | null | null | racermate/cpp_tester_save/test.cpp | SRAM/RacerMateDLL | a980e43919ae6c749561071cc135d5af221eb6c2 | [
"MIT"
] | null | null | null |
#define WIN32_LEAN_AND_MEAN
#ifdef WIN32
#pragma warning(disable:4996 4006)
#endif
#define COMPDISP 0
#define VELDISP 0
/*****************************************************************************************
*****************************************************************************************... | 25.316045 | 143 | 0.486524 | SRAM |
6372fe8fdc68eeb47e8479d9dd5c451b96bc6ae4 | 398 | cpp | C++ | Rocket/PlatformRender/OpenGL/GERender/OpenGLInstanceBuffer.cpp | rocketman123456/RocketGE | dd8b6de286ce5d2abebc55454fbdf67968558535 | [
"Apache-2.0"
] | 2 | 2020-12-06T23:16:46.000Z | 2020-12-27T13:33:26.000Z | Rocket/PlatformRender/OpenGL/GERender/OpenGLInstanceBuffer.cpp | rocketman123456/RocketGE | dd8b6de286ce5d2abebc55454fbdf67968558535 | [
"Apache-2.0"
] | null | null | null | Rocket/PlatformRender/OpenGL/GERender/OpenGLInstanceBuffer.cpp | rocketman123456/RocketGE | dd8b6de286ce5d2abebc55454fbdf67968558535 | [
"Apache-2.0"
] | null | null | null | #include "GERender/OpenGLInstanceBuffer.h"
namespace Rocket
{
template <typename T>
OpenGLInstanceBuffer<T>::OpenGLInstanceBuffer(T *data, uint32_t count)
: m_Count(count)
{
}
template <typename T>
void OpenGLInstanceBuffer<T>::Bind() const
{
}
template <typename T>
vo... | 18.090909 | 74 | 0.648241 | rocketman123456 |
637738505c05574bc7632a06bdf4b1a24fd6f68d | 3,982 | cpp | C++ | src/geometry.cpp | rubenvanstaden/Magix | 0b45955d98a57b15b021e3d2e99698972f874a2d | [
"CECILL-B"
] | null | null | null | src/geometry.cpp | rubenvanstaden/Magix | 0b45955d98a57b15b021e3d2e99698972f874a2d | [
"CECILL-B"
] | null | null | null | src/geometry.cpp | rubenvanstaden/Magix | 0b45955d98a57b15b021e3d2e99698972f874a2d | [
"CECILL-B"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <float.h>
#include <iostream>
#include <boost/filesystem.hpp>
#include "boost/progress.hpp"
#include <iostream>
#include <stdexcept>
#include "clipper.hpp"
#include "sys.h"
#include <unistd.h>
using namespace ClipperLib;
namespace fs = boost::filesy... | 30.630769 | 124 | 0.53767 | rubenvanstaden |
638022a28497e8cd38495b00f5d5498952647575 | 950 | cpp | C++ | src/Selections/QCDNonIsolatedElectronAsymJetsMETSelection.cpp | jjacob/AnalysisSoftware | 670513bcde9c3df46077f906246e912627ee251a | [
"Apache-2.0"
] | null | null | null | src/Selections/QCDNonIsolatedElectronAsymJetsMETSelection.cpp | jjacob/AnalysisSoftware | 670513bcde9c3df46077f906246e912627ee251a | [
"Apache-2.0"
] | null | null | null | src/Selections/QCDNonIsolatedElectronAsymJetsMETSelection.cpp | jjacob/AnalysisSoftware | 670513bcde9c3df46077f906246e912627ee251a | [
"Apache-2.0"
] | null | null | null | /*
* QCDNonIsolatedElectronAsymJetsMETSelection.cpp
*
* Created on: 20 Apr 2012
* Author: kreczko
*/
#include "../../interface/Selections/QCDNonIsolatedElectronAsymJetsMETSelection.h"
namespace BAT {
QCDNonIsolatedElectronAsymJetsMETSelection::QCDNonIsolatedElectronAsymJetsMETSelection(unsigned int number... | 31.666667 | 124 | 0.846316 | jjacob |
6381c9f04f5e996b96906e2a214f41c673eeee7e | 1,576 | cpp | C++ | codechef/nov 10/june LTIME97C/unpleasant ones.cpp | punnapavankumar9/coding-platforms | 264803330f5b3857160ec809c0d79cba1aa479a3 | [
"MIT"
] | null | null | null | codechef/nov 10/june LTIME97C/unpleasant ones.cpp | punnapavankumar9/coding-platforms | 264803330f5b3857160ec809c0d79cba1aa479a3 | [
"MIT"
] | null | null | null | codechef/nov 10/june LTIME97C/unpleasant ones.cpp | punnapavankumar9/coding-platforms | 264803330f5b3857160ec809c0d79cba1aa479a3 | [
"MIT"
] | null | null | null | #include <iostream>
#include <bits/stdc++.h>
#define endl "\n"
#define setbits(x) __builtin_popcount(x)
typedef long long ll;
typedef unsigned long long ull;
using namespace std;
int score(int n){
int count = 0, mx = 0;
while(n >0){
if(n & 1){
count++;
}else{
count = 0;
... | 21.297297 | 58 | 0.369289 | punnapavankumar9 |
638260cda128c701efa74ee43012a772dde65b4e | 6,389 | hpp | C++ | cpp-units/include/cpp-units/types/physicalQuantity.hpp | crdrisko/drychem | 15de97f277a836fb0bfb34ac6489fbc037b5151f | [
"MIT"
] | 1 | 2020-09-26T12:38:54.000Z | 2020-09-26T12:38:54.000Z | cpp-units/include/cpp-units/types/physicalQuantity.hpp | crdrisko/cpp-units | 15de97f277a836fb0bfb34ac6489fbc037b5151f | [
"MIT"
] | 9 | 2020-10-05T12:53:12.000Z | 2020-11-02T19:28:01.000Z | cpp-units/include/cpp-units/types/physicalQuantity.hpp | crdrisko/cpp-units | 15de97f277a836fb0bfb34ac6489fbc037b5151f | [
"MIT"
] | 1 | 2020-12-04T13:34:41.000Z | 2020-12-04T13:34:41.000Z | // Copyright (c) 2020-2021 Cody R. Drisko. All rights reserved.
// Licensed under the MIT License. See the LICENSE file in the project root for more information.
//
// Name: physicalQuantity.hpp
// Author: crdrisko
// Date: 03/03/2020-18:45:26
// Description: Defines the PhysicalQuantity class template with SI base uni... | 38.487952 | 121 | 0.641571 | crdrisko |
63827e4706f09b344c2e934b4f951d41653a25b8 | 3,585 | hpp | C++ | rviz_default_plugins/test/rviz_default_plugins/publishers/map_publisher.hpp | EricCousineau-TRI/rviz | 3344a8ed63b134549eeb82682f0dee76f53b7565 | [
"BSD-3-Clause-Clear"
] | null | null | null | rviz_default_plugins/test/rviz_default_plugins/publishers/map_publisher.hpp | EricCousineau-TRI/rviz | 3344a8ed63b134549eeb82682f0dee76f53b7565 | [
"BSD-3-Clause-Clear"
] | null | null | null | rviz_default_plugins/test/rviz_default_plugins/publishers/map_publisher.hpp | EricCousineau-TRI/rviz | 3344a8ed63b134549eeb82682f0dee76f53b7565 | [
"BSD-3-Clause-Clear"
] | null | null | null | /*
* Copyright (c) 2018, Bosch Software Innovations GmbH.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright
* n... | 35.147059 | 91 | 0.728591 | EricCousineau-TRI |
b0cac090b89055bdd1ad9de36cd56ee426b1e585 | 725 | cpp | C++ | DLL4CS/TestInCpp/TestInCpp.cpp | kingmax/cpp | b0c3abcfc77094421d906695a4ac167463a43b92 | [
"Apache-2.0"
] | null | null | null | DLL4CS/TestInCpp/TestInCpp.cpp | kingmax/cpp | b0c3abcfc77094421d906695a4ac167463a43b92 | [
"Apache-2.0"
] | null | null | null | DLL4CS/TestInCpp/TestInCpp.cpp | kingmax/cpp | b0c3abcfc77094421d906695a4ac167463a43b92 | [
"Apache-2.0"
] | null | null | null | // TestInCpp.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//
#include "pch.h"
#include <iostream>
#pragma comment(lib, "DLL4CS.lib")
extern "C"
{
__declspec(dllimport) int FunctionInDLL(const wchar_t *p);
__declspec(dllimport) int fn(const std::string s);
}
int main()
{
FunctionInDLL(L"hahaha in TestInCpp");
std::c... | 19.078947 | 59 | 0.646897 | kingmax |
b0cb62fe249ae17cc55fb4cac0d76336ebfd36ed | 30,567 | cc | C++ | pigasus/software/src/network_inspectors/appid/appid_http_session.cc | zhipengzhaocmu/fpga2022_artifact | 0ac088a5b04c5c75ae6aef25202b66b0f674acd3 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | pigasus/software/src/network_inspectors/appid/appid_http_session.cc | zhipengzhaocmu/fpga2022_artifact | 0ac088a5b04c5c75ae6aef25202b66b0f674acd3 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | pigasus/software/src/network_inspectors/appid/appid_http_session.cc | zhipengzhaocmu/fpga2022_artifact | 0ac088a5b04c5c75ae6aef25202b66b0f674acd3 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | //--------------------------------------------------------------------------
// Copyright (C) 2017-2018 Cisco and/or its affiliates. All rights reserved.
//
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License Version 2 as published
// by the Fr... | 36.30285 | 106 | 0.545752 | zhipengzhaocmu |
b0cc9274e69c3f5e49f0f0ba7bce47d2c23a127c | 2,404 | cpp | C++ | server/modules/DirListing/DirListing.cpp | hotgloupi/zhttpd | 0437ac2e34dde89abab26665df9cbee1777f1d44 | [
"BSD-3-Clause"
] | 2 | 2015-01-29T17:23:23.000Z | 2015-09-21T17:45:22.000Z | server/modules/DirListing/DirListing.cpp | hotgloupi/zhttpd | 0437ac2e34dde89abab26665df9cbee1777f1d44 | [
"BSD-3-Clause"
] | null | null | null | server/modules/DirListing/DirListing.cpp | hotgloupi/zhttpd | 0437ac2e34dde89abab26665df9cbee1777f1d44 | [
"BSD-3-Clause"
] | null | null | null |
#include "api/constants.hpp"
#include "api/IBuffer.hpp"
#include "api/IRequest.hpp"
#include "api/IModuleManager.hpp"
#include "api/IModule.hpp"
#include "utils/Path.hpp"
#include "utils/Logger.hpp"
#include "utils/macros.hpp"
#include "config.hpp"
#include "DirListing.hpp"
using namespace zhttpd;
using namespace zh... | 33.388889 | 118 | 0.481281 | hotgloupi |
b0d041fa41d037a303e0efbbaafce542213fd35f | 632 | cpp | C++ | src/util/Point2D.cpp | manpreet-singh/Atlas | 04cfbae52900a01ce33b49304c38455304f2c222 | [
"MIT"
] | 1 | 2020-05-04T09:36:39.000Z | 2020-05-04T09:36:39.000Z | src/util/Point2D.cpp | manpreet-singh/Atlas | 04cfbae52900a01ce33b49304c38455304f2c222 | [
"MIT"
] | null | null | null | src/util/Point2D.cpp | manpreet-singh/Atlas | 04cfbae52900a01ce33b49304c38455304f2c222 | [
"MIT"
] | null | null | null | #include "util/Point2D.h"
using namespace util;
/**
* Point Class Constructor
* @param x X coordinate of cartesian point
* @param y Y coordinate of cartesian point
* @param slope Intended slope at this current point
*/
Point2D::Point2D(double x, double y, double slope) : mX(x), mY(y), mSlope(slope)
{}
/**
* Poi... | 16.631579 | 80 | 0.658228 | manpreet-singh |
b0d07a4ec980514217c0570c7875c4678398cbbd | 1,979 | hpp | C++ | drake_ros_systems/include/drake_ros_systems/drake_ros.hpp | sloretz/drake_ros2_hacks | 3a6bd2cf526379999293ec3b517d3a6e22d142ba | [
"Apache-2.0"
] | 9 | 2020-11-05T16:42:11.000Z | 2021-11-24T15:05:17.000Z | drake_ros_systems/include/drake_ros_systems/drake_ros.hpp | sloretz/drake_ros2_demos | 3a6bd2cf526379999293ec3b517d3a6e22d142ba | [
"Apache-2.0"
] | 3 | 2020-10-20T16:31:59.000Z | 2021-09-08T16:28:40.000Z | drake_ros_systems/include/drake_ros_systems/drake_ros.hpp | sloretz/drake_ros2_demos | 3a6bd2cf526379999293ec3b517d3a6e22d142ba | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 Open Source Robotics Foundation, 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 appli... | 28.271429 | 84 | 0.758969 | sloretz |
b0d1ff286d1fe8ca366f18ed01c0ecf2c3d2d666 | 15,093 | cxx | C++ | drivers/storage/volsnap/vss/modules/backupext/vsxml/async.cxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | drivers/storage/volsnap/vss/modules/backupext/vsxml/async.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | drivers/storage/volsnap/vss/modules/backupext/vsxml/async.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*++
Copyright (c) 1999 Microsoft Corporation
Abstract:
@doc
@module async.cxx | Implementation of CVssAsyncBackup object
@end
Author:
brian berkowitz [brianb] 04/10/2000
Revision History:
Name Date Comments
brianb 04/10/2000 Created
--*/
//... | 23.843602 | 97 | 0.636586 | npocmaka |
b0d2100bedd33bbcb60f83a96a773e8b883f0a72 | 8,076 | cpp | C++ | src/lib/profiles/security/ApplicationKeysTraitDataSink.cpp | lanyuwen/openweave-core | fbed1743a7b62657f5d310b98909c59474a6404d | [
"Apache-2.0"
] | null | null | null | src/lib/profiles/security/ApplicationKeysTraitDataSink.cpp | lanyuwen/openweave-core | fbed1743a7b62657f5d310b98909c59474a6404d | [
"Apache-2.0"
] | null | null | null | src/lib/profiles/security/ApplicationKeysTraitDataSink.cpp | lanyuwen/openweave-core | fbed1743a7b62657f5d310b98909c59474a6404d | [
"Apache-2.0"
] | 1 | 2020-11-04T06:58:12.000Z | 2020-11-04T06:58:12.000Z | /*
*
* Copyright (c) 2016-2017 Nest Labs, 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... | 34.512821 | 126 | 0.641407 | lanyuwen |
b0d558aed74f351f28e6a08e0490299ca78c75dd | 760 | hpp | C++ | include/node/gen/ty-reg.hpp | PENGUINLIONG/cspv | 10dd24c2040d8e5011f196fc962f50d01c956632 | [
"Apache-2.0",
"MIT"
] | null | null | null | include/node/gen/ty-reg.hpp | PENGUINLIONG/cspv | 10dd24c2040d8e5011f196fc962f50d01c956632 | [
"Apache-2.0",
"MIT"
] | null | null | null | include/node/gen/ty-reg.hpp | PENGUINLIONG/cspv | 10dd24c2040d8e5011f196fc962f50d01c956632 | [
"Apache-2.0",
"MIT"
] | null | null | null | // GENERATED BY `scripts/gen-visitor-templates.py`; DO NOT MODIFY.
// Type node registry.
// @PENGUINLIONG
#pragma once
#include "node/node.hpp"
enum TypeClass {
L_TYPE_CLASS_PATTERN_CAPTURE,
L_TYPE_CLASS_VOID,
L_TYPE_CLASS_BOOL,
L_TYPE_CLASS_INT,
L_TYPE_CLASS_FLOAT,
L_TYPE_CLASS_STRUCT,
L_TYPE_CLASS_POI... | 20 | 74 | 0.693421 | PENGUINLIONG |
b0d5edaf1d9e7e6cffc443f2098028f88a28a3b9 | 299 | cpp | C++ | src/user.cpp | lou000/IO_BugTracker | e4f9c1ba4eaa6eea185e1578facbc9e47ccc36ee | [
"MIT"
] | null | null | null | src/user.cpp | lou000/IO_BugTracker | e4f9c1ba4eaa6eea185e1578facbc9e47ccc36ee | [
"MIT"
] | null | null | null | src/user.cpp | lou000/IO_BugTracker | e4f9c1ba4eaa6eea185e1578facbc9e47ccc36ee | [
"MIT"
] | null | null | null | #include "user.h"
User::User(int id, const QString &login, const QString &name, const QString &surname, const UserPosition &position,
UserPermissionsFlags permisions)
: m_id(id), m_login(login), m_name(name), m_surname(surname), m_position(position), m_permisions(permisions)
{
}
| 33.222222 | 115 | 0.722408 | lou000 |
b0d984371c6076e3d87c55b937df357d7fead826 | 1,018 | hpp | C++ | sources/Block.hpp | PawelWorwa/SFMLris | 525c29eefee2ec68512d3d320fb0e9aae95b9549 | [
"MIT"
] | null | null | null | sources/Block.hpp | PawelWorwa/SFMLris | 525c29eefee2ec68512d3d320fb0e9aae95b9549 | [
"MIT"
] | 4 | 2018-01-10T19:17:00.000Z | 2018-01-10T20:21:27.000Z | sources/Block.hpp | PawelWorwa/SFMLris | 525c29eefee2ec68512d3d320fb0e9aae95b9549 | [
"MIT"
] | null | null | null | #ifndef SFMLRIS_BLOCK_HPP
#define SFMLRIS_BLOCK_HPP
#include <vector>
#include "BlockType.hpp"
#include "BlockPiece.hpp"
// https://gamedev.stackexchange.com/questions/17974/how-to-rotate-blocks-in-tetris
class Block {
public:
Block();
explicit Block(BlockType type);
BlockType getBlockT... | 25.45 | 83 | 0.624754 | PawelWorwa |
b0dffe5901f5a9aa2e9d1dc0c4a2bae87ac409ee | 2,321 | cpp | C++ | serialwidget/pid.cpp | wdther/MeasurementAndControl_Qt | 84f1d02ffeab20c67e39b0ba27ed6e0b8a13bab3 | [
"Apache-2.0"
] | 9 | 2020-11-07T05:54:19.000Z | 2022-03-09T13:56:57.000Z | serialwidget/pid.cpp | wdther/MeasurementAndControl_Qt | 84f1d02ffeab20c67e39b0ba27ed6e0b8a13bab3 | [
"Apache-2.0"
] | null | null | null | serialwidget/pid.cpp | wdther/MeasurementAndControl_Qt | 84f1d02ffeab20c67e39b0ba27ed6e0b8a13bab3 | [
"Apache-2.0"
] | 6 | 2020-11-05T17:39:12.000Z | 2021-09-03T02:57:45.000Z | //pid.cpp:
#include <iostream>
#include "pid.h"
using namespace std;
void Pid_control::PID_init()
{
pid.SetSpeed = 0;
pid.ActualSpeed = 0;
pid.err = 0;
pid.err1 = 0;
pid.err2 = 0;
pid.u=0;
pid.u1 = 0;
pid.integral = 0;
pid.err_last = 0;
pid.err_next = 0;
}
void Pid_control::setpid(double kp,double ki,double kd)
... | 27.630952 | 137 | 0.654028 | wdther |
b0e06f6e9fa5d0ed60a4405ab3c1d94921280612 | 3,573 | cpp | C++ | GateServer/LClient.cpp | MBeanwenshengming/linuxgameserver | f03bf6ba0d625609c9654ddf0dc821386337e7dc | [
"MIT"
] | 5 | 2018-04-02T07:16:20.000Z | 2021-08-01T05:25:37.000Z | GateServer/LClient.cpp | MBeanwenshengming/linuxgameserver | f03bf6ba0d625609c9654ddf0dc821386337e7dc | [
"MIT"
] | null | null | null | GateServer/LClient.cpp | MBeanwenshengming/linuxgameserver | f03bf6ba0d625609c9654ddf0dc821386337e7dc | [
"MIT"
] | 2 | 2015-08-21T07:31:41.000Z | 2018-05-10T12:36:32.000Z | /*
The MIT License (MIT)
Copyright (c) <2010-2020> <wenshengming>
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... | 24.8125 | 77 | 0.757067 | MBeanwenshengming |
b0e368e050d8700c87e44e770be615fc54d4af6a | 2,402 | cpp | C++ | src/atomsciflow/qe/namelist.cpp | DeqiTang/build-test-atomsciflow | 6fb65c79e74993e2100fbbca31b910d495076805 | [
"MIT"
] | 1 | 2022-01-25T01:44:32.000Z | 2022-01-25T01:44:32.000Z | src/atomsciflow/qe/namelist.cpp | DeqiTang/build-test-atomsciflow | 6fb65c79e74993e2100fbbca31b910d495076805 | [
"MIT"
] | null | null | null | src/atomsciflow/qe/namelist.cpp | DeqiTang/build-test-atomsciflow | 6fb65c79e74993e2100fbbca31b910d495076805 | [
"MIT"
] | null | null | null | /************************************************************************
MIT License
Copyright (c) 2021 Deqi Tang
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 w... | 31.605263 | 78 | 0.621982 | DeqiTang |
b0e38879be1feb23002c0026952afaec49ff7e08 | 16,008 | cpp | C++ | ToolkitNF/Widgets/FileDialogBoxWidget.cpp | SlyVTT/Widget_NF_Nspire_and_PC | cdf921cc931eaa99ed765d1640253e060bc259cb | [
"MIT"
] | 3 | 2021-08-06T19:16:58.000Z | 2021-08-07T10:32:15.000Z | ToolkitNF/Widgets/FileDialogBoxWidget.cpp | SlyVTT/Widget_NF_Nspire_and_PC | cdf921cc931eaa99ed765d1640253e060bc259cb | [
"MIT"
] | null | null | null | ToolkitNF/Widgets/FileDialogBoxWidget.cpp | SlyVTT/Widget_NF_Nspire_and_PC | cdf921cc931eaa99ed765d1640253e060bc259cb | [
"MIT"
] | null | null | null | #include "FileDialogBoxWidget.hpp"
#include "../Managers/KeyManager.hpp"
#include "../Managers/MouseManager.hpp"
#include "../Renderers/ScreenRenderer.hpp"
#include "../Engines/ColorEngine.hpp"
#include "../Engines/FontEngine.hpp"
#include <stdio.h>
#include <dirent.h>
#include <string.h>
std::string s... | 35.337748 | 224 | 0.47595 | SlyVTT |
b0e434beb1f9ac6e8093cc16689775b6aca7b2a3 | 27 | cpp | C++ | src/cpp/4_BehavioralPatterns/7_Observer/ObserverDemos/Observable.cpp | MilovanTomasevic/Design-Patterns | 4ea38e5498d82c53216c45e1024e97470eb9bc7d | [
"MIT"
] | 10 | 2021-04-17T00:02:57.000Z | 2021-11-16T13:20:14.000Z | src/cpp/4_BehavioralPatterns/7_Observer/ObserverDemos/Observable.cpp | MilovanTomasevic/Design-Patterns | 4ea38e5498d82c53216c45e1024e97470eb9bc7d | [
"MIT"
] | null | null | null | src/cpp/4_BehavioralPatterns/7_Observer/ObserverDemos/Observable.cpp | MilovanTomasevic/Design-Patterns | 4ea38e5498d82c53216c45e1024e97470eb9bc7d | [
"MIT"
] | 1 | 2021-12-23T13:22:26.000Z | 2021-12-23T13:22:26.000Z | #include "Observable.hpp"
| 13.5 | 26 | 0.740741 | MilovanTomasevic |
b0e488b5a9f6b436da5d6c8211d55febe40f92f8 | 10,453 | cpp | C++ | tests/lapack_like/SecularSVD.cpp | pjt1988/Elemental | 71d3e2b98829594e9f52980a8b1ef7c1e99c724b | [
"Apache-2.0"
] | 473 | 2015-01-11T03:22:11.000Z | 2022-03-31T05:28:39.000Z | tests/lapack_like/SecularSVD.cpp | pjt1988/Elemental | 71d3e2b98829594e9f52980a8b1ef7c1e99c724b | [
"Apache-2.0"
] | 205 | 2015-01-10T20:33:45.000Z | 2021-07-25T14:53:25.000Z | tests/lapack_like/SecularSVD.cpp | pjt1988/Elemental | 71d3e2b98829594e9f52980a8b1ef7c1e99c724b | [
"Apache-2.0"
] | 109 | 2015-02-16T14:06:42.000Z | 2022-03-23T21:34:26.000Z | /*
Copyright (c) 2009-2016, Jack Poulson
All rights reserved.
This file is part of Elemental and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause
*/
#include <El.hpp>
using namespace El;
extern "C" {
vo... | 29.696023 | 80 | 0.595905 | pjt1988 |
b0e630c58c956ecc142876293525acc3481495b6 | 2,129 | cpp | C++ | Competitive Programming/BackTracking/SolveTheSuduko.cpp | shreejitverma/GeeksforGeeks | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 2 | 2022-02-18T05:14:28.000Z | 2022-03-08T07:00:08.000Z | Competitive Programming/BackTracking/SolveTheSuduko.cpp | shivaniverma1/Competitive-Programming-1 | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 6 | 2022-01-13T04:31:04.000Z | 2022-03-12T01:06:16.000Z | Competitive Programming/BackTracking/SolveTheSuduko.cpp | shivaniverma1/Competitive-Programming-1 | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 2 | 2022-02-14T19:53:53.000Z | 2022-02-18T05:14:30.000Z | // { Driver Code Starts
#include <bits/stdc++.h>
using namespace std;
// UNASSIGNED is used for empty cells in sudoku grid
#define UNASSIGNED 0
// N is used for the size of Sudoku grid.
// Size will be NxN
#define N 9
// } Driver Code Ends
class Solution {
public:
bool isSafe(int grid[N][N], int i,... | 20.872549 | 55 | 0.376703 | shreejitverma |
b0e9af444bfe294dd85518ae48f6af851f803023 | 6,506 | cpp | C++ | src/ca_casanova_s.cpp | dianagudu/ca-portfolio | 7d371ed7dc24f1c648c6e9bc36ae3a9d845d807f | [
"MIT"
] | 1 | 2020-02-28T13:42:41.000Z | 2020-02-28T13:42:41.000Z | src/ca_casanova_s.cpp | dianagudu/ca-portfolio | 7d371ed7dc24f1c648c6e9bc36ae3a9d845d807f | [
"MIT"
] | null | null | null | src/ca_casanova_s.cpp | dianagudu/ca-portfolio | 7d371ed7dc24f1c648c6e9bc36ae3a9d845d807f | [
"MIT"
] | null | null | null | // --------------------------------------------------------------------------
// Copyright (C) Karlsruhe Institute of Technology, 2017
//
// 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, eithe... | 34.242105 | 84 | 0.612819 | dianagudu |
b0ee87030db89e4bc7f3def729e07a763006d07d | 659 | hpp | C++ | src/monte/monte_Generator.hpp | psettle/madmax | 74870137ae8c7c8664c5e128c1ecfedc7532041b | [
"MIT"
] | null | null | null | src/monte/monte_Generator.hpp | psettle/madmax | 74870137ae8c7c8664c5e128c1ecfedc7532041b | [
"MIT"
] | null | null | null | src/monte/monte_Generator.hpp | psettle/madmax | 74870137ae8c7c8664c5e128c1ecfedc7532041b | [
"MIT"
] | null | null | null | /**
* Generate move sequences
*/
#pragma once
#include <stdlib.h>
#include "engine_Move.hpp"
namespace monte {
class Generator {
public:
Generator(double skill_fraction, double wait_fraction)
: skill_fraction_(skill_fraction), wait_fraction_(wait_fraction) {}
void GetSequence(Vector cons... | 21.258065 | 81 | 0.666161 | psettle |
b0ee9faaa21b9e2e0a4157e3dbed26c851b546b8 | 876 | cpp | C++ | Leetcode/2021-12/T647.cpp | lijianran/Leetcode | d94f9ed0caeee5318041e9f1d70f3db4518aed49 | [
"Apache-2.0"
] | 1 | 2021-05-15T14:38:15.000Z | 2021-05-15T14:38:15.000Z | Leetcode/2021-12/T647.cpp | lijianran/Leetcode | d94f9ed0caeee5318041e9f1d70f3db4518aed49 | [
"Apache-2.0"
] | null | null | null | Leetcode/2021-12/T647.cpp | lijianran/Leetcode | d94f9ed0caeee5318041e9f1d70f3db4518aed49 | [
"Apache-2.0"
] | null | null | null | /**
* @file T647.cpp
* @author lijianran (lijianran@outlook.com)
* @brief https://leetcode-cn.com/problems/palindromic-substrings/
* @version 0.1
* @date 2021-12-28
*/
#include <iostream>
#include <string>
using std::string;
class Solution
{
int count(string s, int start, int end)
{
int ans = 0... | 17.877551 | 66 | 0.494292 | lijianran |
b0eeffae0480fff0272f8762a9d35eef21ce7861 | 911 | cpp | C++ | codelib/cipher.cpp | TissueRoll/admu-progvar-notebook | efd1c48872d40aeabe2b03af7b986bb831c062b1 | [
"MIT"
] | null | null | null | codelib/cipher.cpp | TissueRoll/admu-progvar-notebook | efd1c48872d40aeabe2b03af7b986bb831c062b1 | [
"MIT"
] | null | null | null | codelib/cipher.cpp | TissueRoll/admu-progvar-notebook | efd1c48872d40aeabe2b03af7b986bb831c062b1 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
char rot(char c, int k) {
return (c - 'a' + k) % 26 + 'a';
}
std::string cipher_a(std::string s, int key) {
for (char &c : s)
if ('a' <= c and c <= 'z')
c = rot(c, key);
return s;
}
char xor_c(char c, int key) {
//std::cout<<c<<" "<<(c - 'a')<<" "<<((c - 'a') ^... | 24.621622 | 99 | 0.518112 | TissueRoll |
b0f12ca22f0806f2afeccffe523f5b569a94ec99 | 451 | cpp | C++ | 02. Bit Manipulation/05 One Odd Occurring/05 one odd occurring.cpp | VivekYadav105/Data-Structures-and-Algorithms | 7287912da8068c9124e0bb89c93c4d52aa48c51f | [
"MIT"
] | 190 | 2021-02-10T17:01:01.000Z | 2022-03-20T00:21:43.000Z | 02. Bit Manipulation/05 One Odd Occurring/05 one odd occurring.cpp | VivekYadav105/Data-Structures-and-Algorithms | 7287912da8068c9124e0bb89c93c4d52aa48c51f | [
"MIT"
] | null | null | null | 02. Bit Manipulation/05 One Odd Occurring/05 one odd occurring.cpp | VivekYadav105/Data-Structures-and-Algorithms | 7287912da8068c9124e0bb89c93c4d52aa48c51f | [
"MIT"
] | 27 | 2021-03-26T11:35:15.000Z | 2022-03-06T07:34:54.000Z | #include<bits/stdc++.h>
using namespace std;
//find the element which occurs only once
//trick 1 : xor of two same numbers gives zero
//trick 2 : xor of zero with any number returns the number
int oneOdd(int a[], int n)//time comp. O(n)
{
int X = 0;
for (int i = 0; i < n; i++)
{
X = X ^ a[i];
}
return X;
}
... | 16.703704 | 58 | 0.578714 | VivekYadav105 |
b0f1e7c1ef0209d8e34ce4b198441511f472d917 | 13,115 | cpp | C++ | src/Misc/main.cpp | Scientific-Computing-BPHC/Meshfree_Adjoint_cpp | 8afe99007b08e6a21563c44f09e972a260fb5b94 | [
"MIT"
] | null | null | null | src/Misc/main.cpp | Scientific-Computing-BPHC/Meshfree_Adjoint_cpp | 8afe99007b08e6a21563c44f09e972a260fb5b94 | [
"MIT"
] | null | null | null | src/Misc/main.cpp | Scientific-Computing-BPHC/Meshfree_Adjoint_cpp | 8afe99007b08e6a21563c44f09e972a260fb5b94 | [
"MIT"
] | null | null | null | // Note, from test.cpp we have the solver to work without segfault issues for upto 8000 such Point Structs
// And, here we don't have segfault upto 6000 points
// So continue with the solver for 4k points instead of 40k points. Create a 4k version and run the solver
// Match the Julia and C++m outputs for 4k points now... | 24.020147 | 187 | 0.638277 | Scientific-Computing-BPHC |
b0f423ac74e25ea043a9ac0523e58a1c8c0e2852 | 537 | cpp | C++ | VER/URI_1973 Jornada nas Estrelas.cpp | CavanhaMan/Cavanha-URI | b08290f6312dcb2f7997581d7416f3b5d31d2153 | [
"MIT"
] | 28 | 2018-06-16T03:21:46.000Z | 2022-03-05T17:48:39.000Z | VER/URI_1973 Jornada nas Estrelas.cpp | CavanhaMan/Cavanha-URI | b08290f6312dcb2f7997581d7416f3b5d31d2153 | [
"MIT"
] | null | null | null | VER/URI_1973 Jornada nas Estrelas.cpp | CavanhaMan/Cavanha-URI | b08290f6312dcb2f7997581d7416f3b5d31d2153 | [
"MIT"
] | 18 | 2018-07-20T12:36:54.000Z | 2022-02-09T19:00:57.000Z | #include <stdio.h>
int main(){
long long int N, i;
scanf("%lld", &N);
long long int carneiros[N],sitio[N];
long long int ataques=0,num_carneiros=0;
for(i=0;i<N;i++){
scanf("%lld", &carneiros[i]);
sitio[i] = 0;
}
i =0;
while(carneiros[i] != 0 && i != N){
if(carneiros[i]%2!=0){
sitio[i] = 1;
carneiro... | 17.322581 | 47 | 0.545624 | CavanhaMan |
b0f5bba2905b3d386f3fce1c7fbbf4aa9ef7f454 | 6,682 | cxx | C++ | IO/Cesium3DTiles/vtkCesium3DTilesWriter.cxx | QuanPengWang/VTK | 6a2b5e8d4e6f5b2184ca7750b624af076b61dd1a | [
"BSD-3-Clause"
] | 1 | 2019-05-31T14:00:53.000Z | 2019-05-31T14:00:53.000Z | IO/Cesium3DTiles/vtkCesium3DTilesWriter.cxx | QuanPengWang/VTK | 6a2b5e8d4e6f5b2184ca7750b624af076b61dd1a | [
"BSD-3-Clause"
] | null | null | null | IO/Cesium3DTiles/vtkCesium3DTilesWriter.cxx | QuanPengWang/VTK | 6a2b5e8d4e6f5b2184ca7750b624af076b61dd1a | [
"BSD-3-Clause"
] | null | null | null | /*=========================================================================
Program: Visualization Toolkit
Module: vtkCesium3DTilesWriter.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This so... | 33.918782 | 99 | 0.63933 | QuanPengWang |
b0fac026320c3ea967d81a9500f70ac2a9e732c3 | 1,434 | cc | C++ | test/zbalance.cc | Thomas-Ulrich/core | 1c7bc7ff994c3570ab22b96d37be0c4c993e5940 | [
"BSD-3-Clause"
] | 138 | 2015-01-05T15:50:20.000Z | 2022-02-25T01:09:58.000Z | test/zbalance.cc | Thomas-Ulrich/core | 1c7bc7ff994c3570ab22b96d37be0c4c993e5940 | [
"BSD-3-Clause"
] | 337 | 2015-08-07T18:24:58.000Z | 2022-03-31T14:39:03.000Z | test/zbalance.cc | Thomas-Ulrich/core | 1c7bc7ff994c3570ab22b96d37be0c4c993e5940 | [
"BSD-3-Clause"
] | 70 | 2015-01-17T00:58:41.000Z | 2022-02-13T04:58:20.000Z | #include <apf.h>
#include <apfMDS.h>
#include <apfMesh2.h>
#include <apfZoltan.h>
#include <gmi_null.h>
#include <gmi_mesh.h>
#include <parma.h>
#include <PCU.h>
#include <lionPrint.h>
#include <pcu_util.h>
#include <cstdlib> // exit and EXIT_FAILURE
#ifdef HAVE_SIMMETRIX
#include <gmi_sim.h>
#include <SimUtil.h>
#incl... | 23.129032 | 80 | 0.687587 | Thomas-Ulrich |
b0fe1c0cdaab106469b8c5cd52618b9bb7d24467 | 1,434 | cpp | C++ | main.cpp | romixlab/pathplanner | 5307f66dcfbc407c170fce0ffbdca00b5c3f1f10 | [
"MIT"
] | null | null | null | main.cpp | romixlab/pathplanner | 5307f66dcfbc407c170fce0ffbdca00b5c3f1f10 | [
"MIT"
] | null | null | null | main.cpp | romixlab/pathplanner | 5307f66dcfbc407c170fce0ffbdca00b5c3f1f10 | [
"MIT"
] | null | null | null | #include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include <QSettings>
#include <QQuickStyle>
#include <QQmlContext>
#include "geopath.h"
#include "linearpath.h"
int main(int argc, char *argv[])
{
QGuiApplication::setApplicationName("PathPlanner");
QGuiApplication::setOrganiza... | 29.265306 | 79 | 0.677824 | romixlab |
7c00317dd1546fd5bb7d5078fc21296d986ea191 | 2,074 | cpp | C++ | CF R418/B.cpp | parthlathiya/Codeforces_Submissions | 6c8f40dbeea31a3c3c7d37b799b78f6af4bbcf68 | [
"MIT"
] | null | null | null | CF R418/B.cpp | parthlathiya/Codeforces_Submissions | 6c8f40dbeea31a3c3c7d37b799b78f6af4bbcf68 | [
"MIT"
] | null | null | null | CF R418/B.cpp | parthlathiya/Codeforces_Submissions | 6c8f40dbeea31a3c3c7d37b799b78f6af4bbcf68 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define rep(i,a,b) for(ll i=a;i<b;i++)
#define re(i,b) for(ll i=0;i<b;i++)
#define repr(i,n) for(ll i=n-1;i>=0;i--)
#define ll long long
#define ld long double
#define llu long long unsigned
#define vll std::vector<ll>
#define m... | 19.383178 | 88 | 0.402122 | parthlathiya |
7c08c9765b4058e53bb79e7cc9a763e070f07fa4 | 2,809 | cpp | C++ | hedwig-client/src/main/cpp/test/main.cpp | sijie/bookkeeper-twitter | 42d5736fd3b13f1dc8aaeb935f7572f23c79538c | [
"Apache-2.0"
] | 37 | 2015-02-12T03:20:15.000Z | 2019-09-20T09:56:36.000Z | hedwig-client/src/main/cpp/test/main.cpp | sijie/bookkeeper-twitter | 42d5736fd3b13f1dc8aaeb935f7572f23c79538c | [
"Apache-2.0"
] | 4 | 2016-03-03T19:33:44.000Z | 2019-07-29T17:55:11.000Z | hedwig-client/src/main/cpp/test/main.cpp | sijie/bookkeeper-twitter | 42d5736fd3b13f1dc8aaeb935f7572f23c79538c | [
"Apache-2.0"
] | 33 | 2015-02-09T03:11:52.000Z | 2019-09-11T09:00:53.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... | 31.561798 | 94 | 0.665361 | sijie |
7c0bf84f97736616d0909385f8ee9a012d30dd08 | 3,719 | hpp | C++ | include/generics/aliveentity.hpp | murilobnt/vulnus | e350f227434306d5d3a7f4d9b22a5eb8d926b81a | [
"MIT"
] | 13 | 2017-05-23T05:38:07.000Z | 2022-03-26T16:08:47.000Z | include/generics/aliveentity.hpp | Murilo-Bento/Gnjk | e350f227434306d5d3a7f4d9b22a5eb8d926b81a | [
"MIT"
] | null | null | null | include/generics/aliveentity.hpp | Murilo-Bento/Gnjk | e350f227434306d5d3a7f4d9b22a5eb8d926b81a | [
"MIT"
] | 1 | 2017-08-12T22:25:17.000Z | 2017-08-12T22:25:17.000Z | #ifndef _ALIVEENTITY_HPP_
#define _ALIVEENTITY_HPP_
// # External
#include <string>
#include <SFML/Graphics.hpp>
#include <iostream>
// # Internal
#include "structures/dynamicgrid.hpp"
#include "structures/inttostring.hpp"
#include "entities/clock/generictimehandler.hpp"
#include "generics/spritedentity.hpp"
#include... | 21.373563 | 221 | 0.728153 | murilobnt |
7c10282b268505741b8a435ab27df08b634c52b8 | 588 | cpp | C++ | UVA01121.cpp | MaSteve/UVA-problems | 3a240fcca02e24a9c850b7e86062f8581df6f95f | [
"MIT"
] | 17 | 2015-12-08T18:50:03.000Z | 2022-03-16T01:23:20.000Z | UVA01121.cpp | MaSteve/UVA-problems | 3a240fcca02e24a9c850b7e86062f8581df6f95f | [
"MIT"
] | null | null | null | UVA01121.cpp | MaSteve/UVA-problems | 3a240fcca02e24a9c850b7e86062f8581df6f95f | [
"MIT"
] | 6 | 2017-04-04T18:16:23.000Z | 2020-06-28T11:07:22.000Z | #include <iostream>
#include <queue>
using namespace std;
int main() {
int N, S;
while (cin >> N >> S) {
queue<int> q;
int sum = 0, len = N + 2;
for (int i = 0; i < N; i++) {
int val;
cin >> val;
sum += val;
q.push(val);
while ... | 21.777778 | 47 | 0.348639 | MaSteve |
7c12e6769e9460f3bb1e7d90ffd28a30c9233d25 | 20,751 | cpp | C++ | Engine/Source/Runtime/GameplayAbilities/Private/AbilitySystemBlueprintLibrary.cpp | PopCap/GameIdea | 201e1df50b2bc99afc079ce326aa0a44b178a391 | [
"BSD-2-Clause"
] | null | null | null | Engine/Source/Runtime/GameplayAbilities/Private/AbilitySystemBlueprintLibrary.cpp | PopCap/GameIdea | 201e1df50b2bc99afc079ce326aa0a44b178a391 | [
"BSD-2-Clause"
] | 2 | 2015-06-21T17:38:11.000Z | 2015-06-22T20:54:42.000Z | Engine/Source/Runtime/GameplayAbilities/Private/AbilitySystemBlueprintLibrary.cpp | PopCap/GameIdea | 201e1df50b2bc99afc079ce326aa0a44b178a391 | [
"BSD-2-Clause"
] | null | null | null | // Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "AbilitySystemPrivatePCH.h"
#include "AbilitySystemBlueprintLibrary.h"
#include "AbilitySystemInterface.h"
#include "AbilitySystemComponent.h"
#include "Abilities/GameplayAbility.h"
#include "Abilities/Tasks/AbilityTask_PlayMontageAndWait.h"
#includ... | 30.833581 | 217 | 0.792155 | PopCap |
7c1502e934a7bd42405b50b959a2d2d97d8dd5ab | 5,884 | hpp | C++ | src/share/cf_utility.hpp | trueneu/Karabiner-Elements | 1c6977e350b586562ac7dad46c830745cf71bb35 | [
"Unlicense"
] | null | null | null | src/share/cf_utility.hpp | trueneu/Karabiner-Elements | 1c6977e350b586562ac7dad46c830745cf71bb35 | [
"Unlicense"
] | null | null | null | src/share/cf_utility.hpp | trueneu/Karabiner-Elements | 1c6977e350b586562ac7dad46c830745cf71bb35 | [
"Unlicense"
] | null | null | null | #pragma once
#include "boost_defs.hpp"
#include <CoreFoundation/CoreFoundation.h>
#include <boost/optional.hpp>
#include <mutex>
#include <string>
#include <thread>
namespace krbn {
class cf_utility final {
public:
template <typename T>
class deleter final {
public:
using pointer = T;
void operator()(T... | 26.745455 | 107 | 0.551666 | trueneu |
7c169c648a84017e2c887b3342740fbb75cf8c96 | 2,177 | cxx | C++ | StRoot/StPicoEvent/StPicoMtdPidTraits.cxx | xiaohaijin/RHIC-STAR | a305cb0a6ac15c8165bd8f0d074d7075d5e58752 | [
"MIT"
] | 2 | 2018-12-24T19:37:00.000Z | 2022-02-28T06:57:20.000Z | StRoot/StPicoEvent/StPicoMtdPidTraits.cxx | xiaohaijin/RHIC-STAR | a305cb0a6ac15c8165bd8f0d074d7075d5e58752 | [
"MIT"
] | null | null | null | StRoot/StPicoEvent/StPicoMtdPidTraits.cxx | xiaohaijin/RHIC-STAR | a305cb0a6ac15c8165bd8f0d074d7075d5e58752 | [
"MIT"
] | null | null | null | #include <limits>
#include "StMuDSTMaker/COMMON/StMuMtdPidTraits.h"
#include "StMuDSTMaker/COMMON/StMuMtdHit.h"
#include "StarClassLibrary/PhysicalConstants.h"
#include "St_base/StMessMgr.h"
#include "StPicoEvent/StPicoMtdPidTraits.h"
ClassImp(StPicoMtdPidTraits)
//_________________
StPicoMtdPidTraits::StPicoMtdPid... | 32.492537 | 83 | 0.639871 | xiaohaijin |
7c19ba5b27516e47fd8cd89018af4e34402785e3 | 20,574 | cpp | C++ | src/Lambda.cpp | mindpowered/maglev-cpp | 8383ed7576202d6d61fcdfb6723a2baa74b8e010 | [
"MIT"
] | null | null | null | src/Lambda.cpp | mindpowered/maglev-cpp | 8383ed7576202d6d61fcdfb6723a2baa74b8e010 | [
"MIT"
] | null | null | null | src/Lambda.cpp | mindpowered/maglev-cpp | 8383ed7576202d6d61fcdfb6723a2baa74b8e010 | [
"MIT"
] | null | null | null | // Generated by Haxe 4.1.1
#include <hxcpp.h>
#ifndef INCLUDED_Lambda
#include <Lambda.h>
#endif
#ifndef INCLUDED_haxe_ds_List
#include <haxe/ds/List.h>
#endif
HX_LOCAL_STACK_FRAME(_hx_pos_d878efc385519e57_45_array,"Lambda","array",0x9c8b0512,"Lambda.array","/opt/haxe/std/Lambda.hx",45,0xf866be6d)
HX_LOCAL_STACK_FRAM... | 42.420619 | 154 | 0.640469 | mindpowered |
7c1a86767d346b3efca62ac85569d53b62fd0c07 | 2,037 | cpp | C++ | EnglishEducator/GamePlayStartMenu.cpp | Uno-Bayan/English-Educator | b031086f4fff5e5bcca2212a2b61f9c554f5ca92 | [
"MIT"
] | null | null | null | EnglishEducator/GamePlayStartMenu.cpp | Uno-Bayan/English-Educator | b031086f4fff5e5bcca2212a2b61f9c554f5ca92 | [
"MIT"
] | null | null | null | EnglishEducator/GamePlayStartMenu.cpp | Uno-Bayan/English-Educator | b031086f4fff5e5bcca2212a2b61f9c554f5ca92 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "GamePlayStartMenu.h"
namespace EnglishEducator
{
GamePlayStartMenu::GamePlayStartMenu(GameDataRef data) : _data(data)
{
_data->assets.LoadTexture("Start Menu Button Background",
START_MENU_BUTTON_BACKGROUND_FILEPATH);
_data->assets.LoadTexture("Grammar Button",
START... | 33.393443 | 83 | 0.721649 | Uno-Bayan |
7c1c561dce6664d0f453045c3168ff04507944f9 | 747 | cpp | C++ | Remove loop in Linked List.cpp | ramamutalik/DSA-450-QNA | ff6dad598f11400e91720878addfb489dff4adaa | [
"MIT"
] | null | null | null | Remove loop in Linked List.cpp | ramamutalik/DSA-450-QNA | ff6dad598f11400e91720878addfb489dff4adaa | [
"MIT"
] | null | null | null | Remove loop in Linked List.cpp | ramamutalik/DSA-450-QNA | ff6dad598f11400e91720878addfb489dff4adaa | [
"MIT"
] | null | null | null | void removeLoop(Node* head)
{
// code here
// just remove the loop without losing any nodes
Node* low=head;
Node* high=head;
while(low!=NULL&&high!=NULL&&high->next!=NULL){
high=high->next->next;
low=low->next;
if(low==high){
... | 24.096774 | 56 | 0.410977 | ramamutalik |
7c1db2822960a1b83b51c8b57db945c2eb96214c | 4,009 | cpp | C++ | src/leetcode/q1401_1500/q1431.cpp | jielyu/leetcode | ce5327f5e5ceaa867ea2ddd58a93bfb02b427810 | [
"MIT"
] | 9 | 2020-04-09T12:37:50.000Z | 2021-04-01T14:01:14.000Z | src/leetcode/q1401_1500/q1431.cpp | jielyu/leetcode | ce5327f5e5ceaa867ea2ddd58a93bfb02b427810 | [
"MIT"
] | 3 | 2020-05-05T02:43:54.000Z | 2020-05-20T11:12:16.000Z | src/leetcode/q1401_1500/q1431.cpp | jielyu/leetcode | ce5327f5e5ceaa867ea2ddd58a93bfb02b427810 | [
"MIT"
] | 5 | 2020-04-17T02:32:10.000Z | 2020-05-20T10:12:26.000Z | /*
#面试刷题# 第109期
#Leetcode# Q1431 糖果数量最多的孩子
难度:低
给出数组candies和整数extraCandies,其中candies[i]表示第i个孩子拥有的糖果数量。
对于每个孩子,检查是否有办法在孩子们之间分配extraCandies,
使他或她能得到最大数量的糖果。
请注意,多个孩子可以拥有最大的糖果数量。
约束条件:
2 <= candies.length <= 100
1 <= candies[i] <= 100
1 <= extraCandies <= 50
示例1:
Input: candies = [2,3,5,1,3], extraCandies = 3
Output: [tr... | 29.477941 | 159 | 0.603143 | jielyu |
7c1dc9d375365a9fb2497cc28b402ff095e64156 | 105,035 | hpp | C++ | H3API/lib/h3api/H3Structures/H3Structures.hpp | X-Stuff/H3Plugins | 325e7e518ff82b0345c6b55d00a5f7896b372527 | [
"MIT"
] | null | null | null | H3API/lib/h3api/H3Structures/H3Structures.hpp | X-Stuff/H3Plugins | 325e7e518ff82b0345c6b55d00a5f7896b372527 | [
"MIT"
] | null | null | null | H3API/lib/h3api/H3Structures/H3Structures.hpp | X-Stuff/H3Plugins | 325e7e518ff82b0345c6b55d00a5f7896b372527 | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////////////
// //
// Created by RoseKavalier: //
// rosekavalierhc@gmail.com //
// Created: 20... | 24.990483 | 158 | 0.618546 | X-Stuff |
7c20bf014335ca54d23f752628b8e524852c556b | 73,589 | cpp | C++ | tests/tests/smt_operation_time_tests.cpp | warrenween/steem | acf2af52e0e36502d586fc780ffbbf56316d8838 | [
"MIT"
] | 1 | 2020-01-15T09:18:19.000Z | 2020-01-15T09:18:19.000Z | tests/tests/smt_operation_time_tests.cpp | warrenween/steem | acf2af52e0e36502d586fc780ffbbf56316d8838 | [
"MIT"
] | null | null | null | tests/tests/smt_operation_time_tests.cpp | warrenween/steem | acf2af52e0e36502d586fc780ffbbf56316d8838 | [
"MIT"
] | null | null | null |
#if defined IS_TEST_NET
#include <boost/test/unit_test.hpp>
#include <steem/chain/steem_fwd.hpp>
#include <steem/protocol/exceptions.hpp>
#include <steem/protocol/hardfork.hpp>
#include <steem/protocol/smt_util.hpp>
#include <steem/chain/block_summary_object.hpp>
#include <steem/chain/database.hpp>
#include <steem... | 44.898719 | 180 | 0.685605 | warrenween |
7c25638efcb1f4491b0201621fea7ee61e70b58c | 4,227 | cpp | C++ | Code/Framework/AzFramework/AzFramework/Input/Events/InputChannelEventListener.cpp | aaarsene/o3de | 37e3b0226958974defd14dd6d808e8557dcd7345 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-09-13T00:01:12.000Z | 2021-09-13T00:01:12.000Z | Code/Framework/AzFramework/AzFramework/Input/Events/InputChannelEventListener.cpp | aaarsene/o3de | 37e3b0226958974defd14dd6d808e8557dcd7345 | [
"Apache-2.0",
"MIT"
] | null | null | null | Code/Framework/AzFramework/AzFramework/Input/Events/InputChannelEventListener.cpp | aaarsene/o3de | 37e3b0226958974defd14dd6d808e8557dcd7345 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-07-20T11:07:25.000Z | 2021-07-20T11:07:25.000Z | /*
* Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <AzFramework/Input/Events/InputChannelEventListener.h>
///////////////////////////////////... | 34.647541 | 158 | 0.406198 | aaarsene |
7c2578e03438b92d3f544517ff966bde7333b792 | 19,360 | cpp | C++ | help.cpp | lordgnu/wxPHP | 368a75c893039e5eaa31bc1ee38e341991039f3f | [
"PHP-3.01"
] | 1 | 2019-02-07T23:18:31.000Z | 2019-02-07T23:18:31.000Z | help.cpp | lordgnu/wxPHP | 368a75c893039e5eaa31bc1ee38e341991039f3f | [
"PHP-3.01"
] | null | null | null | help.cpp | lordgnu/wxPHP | 368a75c893039e5eaa31bc1ee38e341991039f3f | [
"PHP-3.01"
] | null | null | null | /*
* @author Mário Soares
* @contributors Jefferson González
*
* @license
* This file is part of wxPHP check the LICENSE file for information.
*
* @note
* This file was auto-generated by the wxPHP source maker
*/
#include "php_wxwidgets.h"
#include "appmanagement.h"
#include "cfg.h"
#include "bookctrl.h"
#i... | 22.857143 | 150 | 0.68311 | lordgnu |
7c27677bde4a78e8e6511d93aa320d6e2f104bbd | 6,944 | cpp | C++ | convert2binary.cpp | huanzhang12/passcode-fix | 823da5538951ef8f52497de5499aeb2494ceea1c | [
"BSD-3-Clause"
] | 3 | 2016-10-02T07:12:28.000Z | 2020-10-04T22:00:53.000Z | convert2binary.cpp | huanzhang12/passcode-fix | 823da5538951ef8f52497de5499aeb2494ceea1c | [
"BSD-3-Clause"
] | null | null | null | convert2binary.cpp | huanzhang12/passcode-fix | 823da5538951ef8f52497de5499aeb2494ceea1c | [
"BSD-3-Clause"
] | 4 | 2017-01-12T21:16:00.000Z | 2020-10-04T22:01:05.000Z | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <vector>
#include <set>
#include <errno.h>
#include <assert.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <time.h>
#include "block.h"
#include "linear.h"
#include "zlib/zlib.h"
#define Malloc(type,n) (type *)malloc((n)*size... | 21.974684 | 105 | 0.628168 | huanzhang12 |
7c2770ee726c4901b7287ec15c6172b6e11f9b37 | 276 | cpp | C++ | src/Data/Container.cpp | InDieTasten/IDT.EXP | 6d6229d5638297ba061b188edbbe394df33d70b0 | [
"MIT"
] | null | null | null | src/Data/Container.cpp | InDieTasten/IDT.EXP | 6d6229d5638297ba061b188edbbe394df33d70b0 | [
"MIT"
] | 56 | 2017-03-30T14:45:29.000Z | 2017-03-30T14:46:29.000Z | src/Data/Container.cpp | InDieTasten-Legacy/--EXP-old- | 6d6229d5638297ba061b188edbbe394df33d70b0 | [
"MIT"
] | 1 | 2015-05-08T19:23:51.000Z | 2015-05-08T19:23:51.000Z | #include <Data\Container.hpp>
Container::Container() : Attachable(), Taggable()
{
EXP::log("[Info]Container has been constructed: " + utils::tostring(this));
}
Container::~Container()
{
EXP::log("[Info]Container has been destrcuted: " + utils::tostring(this));
}
| 25.090909 | 77 | 0.666667 | InDieTasten |
7c2aac2d992e6416f4135eff2b36f7044be83c7d | 297 | cc | C++ | src/kernel/testdata/repo/oopl/cpp/demo/cards2_test/DeckTestMeta.cc | metaesque/meta | c3e6413ca6cc6ff5456158b128070b36baf2d36a | [
"AML",
"TCL",
"Ruby"
] | null | null | null | src/kernel/testdata/repo/oopl/cpp/demo/cards2_test/DeckTestMeta.cc | metaesque/meta | c3e6413ca6cc6ff5456158b128070b36baf2d36a | [
"AML",
"TCL",
"Ruby"
] | 1 | 2018-10-30T03:14:34.000Z | 2018-10-30T03:19:35.000Z | src/kernel/testdata/repo/oopl/cpp/demo/cards2_test/DeckTestMeta.cc | metaesque/meta | c3e6413ca6cc6ff5456158b128070b36baf2d36a | [
"AML",
"TCL",
"Ruby"
] | null | null | null | #include "demo/cards2_test/DeckTestMeta.h"
namespace demo {
namespace cards2_test {
static std::vector<void**> _bases;
static std::map<std::string, void**> _symbols;
DeckTestMeta* MetaDeckTest = new DeckTestMeta("demo.cards2_test.DeckTestMeta", _bases, _symbols);
} // cards2_test
} // demo
| 22.846154 | 97 | 0.744108 | metaesque |
7c2ae16a08e8640405d0def4e686b96335a035d1 | 267 | cpp | C++ | clang-tools-extra/test/clang-tidy/checkers/bugprone-bad-signal-to-kill-thread-undef-sigterm.cpp | mkinsner/llvm | 589d48844edb12cd357b3024248b93d64b6760bf | [
"Apache-2.0"
] | 2,338 | 2018-06-19T17:34:51.000Z | 2022-03-31T11:00:37.000Z | clang-tools-extra/test/clang-tidy/checkers/bugprone-bad-signal-to-kill-thread-undef-sigterm.cpp | mkinsner/llvm | 589d48844edb12cd357b3024248b93d64b6760bf | [
"Apache-2.0"
] | 3,740 | 2019-01-23T15:36:48.000Z | 2022-03-31T22:01:13.000Z | clang-tools-extra/test/clang-tidy/checkers/bugprone-bad-signal-to-kill-thread-undef-sigterm.cpp | mkinsner/llvm | 589d48844edb12cd357b3024248b93d64b6760bf | [
"Apache-2.0"
] | 500 | 2019-01-23T07:49:22.000Z | 2022-03-30T02:59:37.000Z | // RUN: clang-tidy %s --checks=-*,bugprone-bad-signal-to-kill-thread -- | count 0
#define SIGTERM 15
#undef SIGTERM // no-crash
using pthread_t = int;
int pthread_kill(pthread_t thread, int sig);
int func() {
pthread_t thread;
return pthread_kill(thread, 0);
}
| 22.25 | 81 | 0.70412 | mkinsner |
7c2c004b763b791b466a7c3062947b48e9dd31c0 | 1,685 | cpp | C++ | src/epcq.cpp | uis246/openFPGALoader | 312b8d25659857301df17b4b4daa55a1fe3f23cb | [
"Apache-2.0"
] | 505 | 2019-12-09T10:47:15.000Z | 2022-03-31T09:04:10.000Z | src/epcq.cpp | uis246/openFPGALoader | 312b8d25659857301df17b4b4daa55a1fe3f23cb | [
"Apache-2.0"
] | 203 | 2019-12-06T10:57:48.000Z | 2022-03-31T17:57:08.000Z | src/epcq.cpp | uis246/openFPGALoader | 312b8d25659857301df17b4b4daa55a1fe3f23cb | [
"Apache-2.0"
] | 106 | 2019-12-06T12:12:56.000Z | 2022-03-31T10:38:11.000Z | // SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2019 Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
*/
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include "epcq.hpp"
#define RD_STATUS_REG 0x05
# define STATUS_REG_WEL (0x01 << 1)
# define STATUS_REG_WIP (0x01 <... | 23.732394 | 82 | 0.67003 | uis246 |
7c2cab8f9aab16a245807db4b6c82012a932fa8b | 3,097 | cpp | C++ | example/multi_type_vector_element_block1.cpp | kohei101/multidimalgorithm | c479747d204b8953933fdbec9a88650a75b822b7 | [
"MIT"
] | 3 | 2018-10-08T16:30:06.000Z | 2018-10-24T05:05:11.000Z | example/multi_type_vector_element_block1.cpp | kohei101/mdds | c479747d204b8953933fdbec9a88650a75b822b7 | [
"MIT"
] | null | null | null | example/multi_type_vector_element_block1.cpp | kohei101/mdds | c479747d204b8953933fdbec9a88650a75b822b7 | [
"MIT"
] | null | null | null | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* Copyright (c) 2020 Kohei Yoshida
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated document... | 33.663043 | 79 | 0.646755 | kohei101 |
7c2ce16bc28e3c9783470a72f3263454e8752bef | 4,032 | cpp | C++ | src/Helper.cpp | Spoock01/The-Capacitated-Vehicle-Routing-Problem | 0f05acbf02020a2f7761f2ebe4afdd6bef609304 | [
"MIT"
] | 1 | 2019-09-25T18:20:57.000Z | 2019-09-25T18:20:57.000Z | src/Helper.cpp | Spoock01/The-Capacitated-Vehicle-Routing-Problem | 0f05acbf02020a2f7761f2ebe4afdd6bef609304 | [
"MIT"
] | null | null | null | src/Helper.cpp | Spoock01/The-Capacitated-Vehicle-Routing-Problem | 0f05acbf02020a2f7761f2ebe4afdd6bef609304 | [
"MIT"
] | 2 | 2019-09-10T03:58:03.000Z | 2020-02-20T17:32:56.000Z | #include "../include/Helper.h"
#include <iostream>
#include <vector>
#include "../include/Graph.h"
const std::string INSTANCE_PATH = "./instancias_teste/";
void menu() {
#ifdef _WIN32
system("cls");
#endif
#ifdef __linux__
if (system("clear")) std::cout << "\n";
#endif
std::cout << "The Capacited Vehicle ... | 30.778626 | 88 | 0.524058 | Spoock01 |
7c2e1196a5a9c8d9e087b063fd37478f84f9a942 | 2,904 | cpp | C++ | ComputingSystems1/assignment4.cpp | benefacto/schoolwork | 46d13a4c55fcae0ac4d9059ea4de1e22792efeed | [
"MIT"
] | null | null | null | ComputingSystems1/assignment4.cpp | benefacto/schoolwork | 46d13a4c55fcae0ac4d9059ea4de1e22792efeed | [
"MIT"
] | null | null | null | ComputingSystems1/assignment4.cpp | benefacto/schoolwork | 46d13a4c55fcae0ac4d9059ea4de1e22792efeed | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <iostream>
#include <string>
using namespace std;
/* SERVER SECTION */
void ServerListenForClient() {}
void ServerClientConnectsCreateThread() {}
// for each client:
void ServerNumberGeneration() {}
v... | 25.928571 | 60 | 0.710055 | benefacto |
7c2f184f883bc8812a79d80ca1f66b5dfd04dfbc | 8,634 | cpp | C++ | src/visualizer/loco_visualizer_drawable.cpp | wpumacay/tysocTerrain | 78b6d9804ade89a483fb60952ed6e1bf50fbf3da | [
"MIT"
] | 1 | 2020-06-17T00:57:11.000Z | 2020-06-17T00:57:11.000Z | src/visualizer/loco_visualizer_drawable.cpp | wpumacay/tysocCore | 78b6d9804ade89a483fb60952ed6e1bf50fbf3da | [
"MIT"
] | 7 | 2019-05-30T03:41:42.000Z | 2020-08-21T06:29:52.000Z | src/visualizer/loco_visualizer_drawable.cpp | wpumacay/tysoc | 78b6d9804ade89a483fb60952ed6e1bf50fbf3da | [
"MIT"
] | null | null | null |
#include <visualizer/loco_visualizer_drawable.h>
namespace loco {
namespace visualizer {
TDrawable::TDrawable( const std::string& name,
const TVisualData& visual_data )
: TObject( name )
{
m_Data = visual_data;
m_LocalTf = visual_data.localTransform;
... | 31.057554 | 139 | 0.613852 | wpumacay |
7c3773d31dfaa90282f2f834ed64b686c60b7ad6 | 1,902 | hpp | C++ | src/color/cmy/get/yellow.hpp | dunkyp/color | 2782a093cd316125aad318d1b2fdac0ad43e6953 | [
"Apache-2.0"
] | null | null | null | src/color/cmy/get/yellow.hpp | dunkyp/color | 2782a093cd316125aad318d1b2fdac0ad43e6953 | [
"Apache-2.0"
] | null | null | null | src/color/cmy/get/yellow.hpp | dunkyp/color | 2782a093cd316125aad318d1b2fdac0ad43e6953 | [
"Apache-2.0"
] | null | null | null | #ifndef color_cmy_get_yellow
#define color_cmy_get_yellow
// ::color::get::yellow( c )
#include "../category.hpp"
#include "../place/place.hpp"
#include "../../generic/get/yellow.hpp"
namespace color
{
namespace get
{
namespace constant
{
namespace cmy { namespace yellow
{
... | 23.195122 | 142 | 0.555731 | dunkyp |
7c391541dadd26db091364aa5c3f2064c87e7fb2 | 2,761 | cpp | C++ | XPath3/xpath/XPathStaticEnv.cpp | pschonefeld/XPath3Cpp | 9b4c553be42f7039417de987d8bbd7762fe43376 | [
"Apache-2.0"
] | null | null | null | XPath3/xpath/XPathStaticEnv.cpp | pschonefeld/XPath3Cpp | 9b4c553be42f7039417de987d8bbd7762fe43376 | [
"Apache-2.0"
] | null | null | null | XPath3/xpath/XPathStaticEnv.cpp | pschonefeld/XPath3Cpp | 9b4c553be42f7039417de987d8bbd7762fe43376 | [
"Apache-2.0"
] | 1 | 2021-01-19T08:44:23.000Z | 2021-01-19T08:44:23.000Z | #include "StdAfx.h"
#include "xpathstaticenv.h"
#include "EvalEngine.h"
bool XPathFuncArity::operator == (XPathFuncArity other){
if(this->size()==0 && other.size()!=0) return false;
if(this->size()!=other.size()) return false;
else {
int count = 0;
while(count < (int) (this->size()-1) ){
if(*(this->at(count)... | 32.869048 | 91 | 0.672945 | pschonefeld |
7c4111ac146bbb16d2ffbe2b4723c8baef37449a | 628 | cpp | C++ | Sort - Insertion/Cpp/insertionSort.cpp | i-vishi/ds-and-algo | 90a8635db9570eb17539201be29ec1cfd4b5ae18 | [
"MIT"
] | 1 | 2021-03-01T04:15:08.000Z | 2021-03-01T04:15:08.000Z | Sort - Insertion/Cpp/insertionSort.cpp | i-vishi/ds-and-algo | 90a8635db9570eb17539201be29ec1cfd4b5ae18 | [
"MIT"
] | null | null | null | Sort - Insertion/Cpp/insertionSort.cpp | i-vishi/ds-and-algo | 90a8635db9570eb17539201be29ec1cfd4b5ae18 | [
"MIT"
] | null | null | null | /* Author: Vishal Gaur
* Created: 03-01-2021 21:53:23
*/
#include <bits/stdc++.h>
using namespace std;
// function to sort an array using insertion sort
void insertionSort(vector<int> &a)
{
for (int i = 1; i < a.size(); i++)
{
for (int j = i; j > 0; j--)
{
if (a[j - 1] > a[j])
swap(a[j... | 15.7 | 49 | 0.514331 | i-vishi |
7c42eca260f3b556d92f6bb043557b7e32715284 | 126 | cpp | C++ | configpanel.cpp | MaciekMr/raspi-alarm | afb737dff7bb761c76496a7a1a2530bbc7b05969 | [
"Apache-2.0"
] | null | null | null | configpanel.cpp | MaciekMr/raspi-alarm | afb737dff7bb761c76496a7a1a2530bbc7b05969 | [
"Apache-2.0"
] | null | null | null | configpanel.cpp | MaciekMr/raspi-alarm | afb737dff7bb761c76496a7a1a2530bbc7b05969 | [
"Apache-2.0"
] | null | null | null | #include "configpanel.h"
CConfigPanel::CConfigPanel(QWidget *parent):QWidget(parent){
}
CConfigPanel::~CConfigPanel(){
}
| 11.454545 | 60 | 0.738095 | MaciekMr |
7c435eb637123c574162cb65184d7ee6d4c4883d | 8,286 | cpp | C++ | collector/test/HostHeuristicsTest.cpp | kudz00/collector | 73a5366e4d95bc33e85ed0d7578c74f0a2e8a0aa | [
"Apache-2.0"
] | 1 | 2022-03-31T15:25:16.000Z | 2022-03-31T15:25:16.000Z | collector/test/HostHeuristicsTest.cpp | kudz00/collector | 73a5366e4d95bc33e85ed0d7578c74f0a2e8a0aa | [
"Apache-2.0"
] | 4 | 2022-03-31T16:16:00.000Z | 2022-03-31T23:24:33.000Z | collector/test/HostHeuristicsTest.cpp | stackrox/collector | 4c3913176eb62636e32a8a56f889e611c638de73 | [
"Apache-2.0"
] | null | null | null | /** collector
A full notice with attributions is provided along with this source code.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.
This program is... | 36.026087 | 266 | 0.770215 | kudz00 |
7c448dff1b9c193b06f8127b3630c589176c108a | 118 | hpp | C++ | include/dataStructures/tuple.hpp | AsulconS/LightingOpenGLTest | 0bebadbe524f70f3961bde3e5bbd7357c0fa62e1 | [
"MIT",
"Zlib",
"BSD-3-Clause"
] | 1 | 2019-04-14T21:54:51.000Z | 2019-04-14T21:54:51.000Z | include/dataStructures/tuple.hpp | AsulconS/A-B-Engine | 0bebadbe524f70f3961bde3e5bbd7357c0fa62e1 | [
"MIT",
"Zlib",
"BSD-3-Clause"
] | null | null | null | include/dataStructures/tuple.hpp | AsulconS/A-B-Engine | 0bebadbe524f70f3961bde3e5bbd7357c0fa62e1 | [
"MIT",
"Zlib",
"BSD-3-Clause"
] | null | null | null | #ifndef DSTR_TUPLE_H
#define DSTR_TUPLE_H
#include <tuple>
#define Tuple std::tuple
#endif // DSTR_TUPLE_H
| 13.111111 | 25 | 0.711864 | AsulconS |
7c46fca2813557afe6bd1a97413d417d374c12cc | 177 | hpp | C++ | src/parsegen_std_stack.hpp | Aiteta/capp | a43c40788e53e28403dd62e576b17e933aac912d | [
"MIT"
] | 3 | 2021-09-01T15:12:23.000Z | 2022-03-28T09:01:05.000Z | src/parsegen_std_stack.hpp | Aiteta/capp | a43c40788e53e28403dd62e576b17e933aac912d | [
"MIT"
] | null | null | null | src/parsegen_std_stack.hpp | Aiteta/capp | a43c40788e53e28403dd62e576b17e933aac912d | [
"MIT"
] | null | null | null | #pragma once
#include <stack>
namespace parsegen {
template <typename T>
int isize(std::stack<T> const& s) {
return static_cast<int>(s.size());
}
} // namespace parsegen
| 13.615385 | 36 | 0.683616 | Aiteta |
7c4dacd300713e0332e3d0e768aba3ac88a59819 | 5,628 | cpp | C++ | src/specifics/playfield/AIController.cpp | LukerMaster/Grzybki-Gloniki-Bateryjki | 60432acdf3c1a03561022bdb2a7f4c1f39cae4fb | [
"Apache-2.0"
] | null | null | null | src/specifics/playfield/AIController.cpp | LukerMaster/Grzybki-Gloniki-Bateryjki | 60432acdf3c1a03561022bdb2a7f4c1f39cae4fb | [
"Apache-2.0"
] | null | null | null | src/specifics/playfield/AIController.cpp | LukerMaster/Grzybki-Gloniki-Bateryjki | 60432acdf3c1a03561022bdb2a7f4c1f39cae4fb | [
"Apache-2.0"
] | null | null | null | #include "AIController.h"
void AIController::AlgaeAI(sf::Vector2i pawn_pos, Playfield& env)
{
std::shared_ptr<Algae> pawn = env.GetAlgae(pawn_pos);
pawn->AI_done = true; // For other classes to know that AI is done for this round.
if (pawn->current_food > pawn->max_food * 0.8f && rand()%2) // DIVISION
{
sf::Ve... | 24.363636 | 143 | 0.625444 | LukerMaster |
7c4fdd1ac4d5bd15eab1a7af7c79f71fbe411cd6 | 4,195 | cpp | C++ | src/intern/viewer/component/Scene.cpp | Liby99/Rotamina | 47a588b7e4674d3ab20d9d7afc43b25c7e0fa304 | [
"MIT"
] | 5 | 2018-01-30T02:11:12.000Z | 2021-08-25T09:01:12.000Z | src/intern/viewer/component/Scene.cpp | Liby99/Rotamina | 47a588b7e4674d3ab20d9d7afc43b25c7e0fa304 | [
"MIT"
] | null | null | null | src/intern/viewer/component/Scene.cpp | Liby99/Rotamina | 47a588b7e4674d3ab20d9d7afc43b25c7e0fa304 | [
"MIT"
] | null | null | null | #include "viewer/component/Scene.h"
using namespace rotamina;
const float Scene::SCROLL_SPEED = 0.1f;
const float Scene::ROTATE_SPEED = 0.004f;
const float Scene::MOVE_SPEED = 0.1f;
Scene::Scene(Widget * parent) : nanogui::GLCanvas(parent),
azimuth(0), incline(0), dist(3), hasDisplayCallback(false),
w(false)... | 24.532164 | 113 | 0.598093 | Liby99 |
7c51f9a98a225b38af987d847be9264ebfb0018e | 220 | cpp | C++ | src/CglModule.cpp | seanisom/flightsimlib | 490c2db824edd5302fd39d4ab020759b2e01d282 | [
"MIT"
] | 3 | 2020-06-21T00:03:14.000Z | 2021-09-19T15:20:48.000Z | src/CglModule.cpp | seanisom/flightsimlib | 490c2db824edd5302fd39d4ab020759b2e01d282 | [
"MIT"
] | 1 | 2021-08-21T22:53:01.000Z | 2021-08-24T02:13:59.000Z | src/CglModule.cpp | seanisom/flightsimlib | 490c2db824edd5302fd39d4ab020759b2e01d282 | [
"MIT"
] | null | null | null | #include "CglModule.h"
#include "VectorTile.h"
namespace flightsimlib::cgl
{
IVectorTile* CCglModuleV1::CreateVectorTile() const
{
// Simple factory - worry about wrapping another day
return new VectorTile();
}
}
| 13.75 | 53 | 0.740909 | seanisom |
7c52b2830486d6b0853246fbdf9e8f6f721831b7 | 945 | cc | C++ | OOP/Nasledqvane/ex1.cc | Omni-J/TUESTasks | 2bdbd517eee101e6ad29db4ba9fd86cd7bcce5c8 | [
"MIT"
] | 1 | 2020-07-28T12:22:31.000Z | 2020-07-28T12:22:31.000Z | OOP/Nasledqvane/ex1.cc | Omni-J/TUESTasks | 2bdbd517eee101e6ad29db4ba9fd86cd7bcce5c8 | [
"MIT"
] | null | null | null | OOP/Nasledqvane/ex1.cc | Omni-J/TUESTasks | 2bdbd517eee101e6ad29db4ba9fd86cd7bcce5c8 | [
"MIT"
] | 1 | 2015-11-10T18:17:32.000Z | 2015-11-10T18:17:32.000Z | #include <iostream>
#include <string>
using namespace std;
class Employee {
long id_;
protected:
string name_;
public:
Employee(long id, const string& name)
: id_(id),
name_(name)
{}
long get_id() const {
return id_;
}
string get_name() const {
return name_;
}
virtual void print() const {
co... | 12.6 | 55 | 0.580952 | Omni-J |