hexsha stringlengths 40 40 | size int64 19 11.4M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 270 | max_stars_repo_name stringlengths 5 110 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count float64 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 3 270 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 9 | max_issues_count float64 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 3 270 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 9 | max_forks_count float64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 19 11.4M | avg_line_length float64 1.93 229k | max_line_length int64 12 688k | alphanum_fraction float64 0.07 0.99 | matches listlengths 1 10 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
778122422bce87c04baa208e6888ee0fbeeb696a | 148 | cpp | C++ | Programacion Competitiva/Practicas/11_18/minimal_falling_path_sum.cpp | Angel1612/Computer_Science_UNSA | e1696fd2cb7c66f6af9aa14dbd96b4f67c787425 | [
"MIT"
] | null | null | null | Programacion Competitiva/Practicas/11_18/minimal_falling_path_sum.cpp | Angel1612/Computer_Science_UNSA | e1696fd2cb7c66f6af9aa14dbd96b4f67c787425 | [
"MIT"
] | null | null | null | Programacion Competitiva/Practicas/11_18/minimal_falling_path_sum.cpp | Angel1612/Computer_Science_UNSA | e1696fd2cb7c66f6af9aa14dbd96b4f67c787425 | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
#include<algorithm>
#include<cmath>
#include<cstdio>
#include<cstring>
//solution Minimum Falling Path Sum II
| 16.444444 | 39 | 0.77027 | [
"vector"
] |
778a33d36d2880e507458f8575c221c0301eeaee | 4,521 | ipp | C++ | include/External/stlib/packages/geom/mesh/simplicial/file_io.ipp | bxl295/m4extreme | 2a4a20ebb5b4e971698f7c981de140d31a5e550c | [
"BSD-3-Clause"
] | null | null | null | include/External/stlib/packages/geom/mesh/simplicial/file_io.ipp | bxl295/m4extreme | 2a4a20ebb5b4e971698f7c981de140d31a5e550c | [
"BSD-3-Clause"
] | null | null | null | include/External/stlib/packages/geom/mesh/simplicial/file_io.ipp | bxl295/m4extreme | 2a4a20ebb5b4e971698f7c981de140d31a5e550c | [
"BSD-3-Clause"
] | null | null | null | // -*- C++ -*-
#if !defined(__geom_mesh_simplicial_file_io_ipp__)
#error This file is an implementation detail.
#endif
namespace geom {
//! Write a mesh as an indexed simplex set in ascii format.
template < std::size_t N, std::size_t M, typename T,
template<class> class Node,
template<... | 31.838028 | 82 | 0.616899 | [
"mesh"
] |
778b33c5efb30fe88b297e03f59fa1c634d5d6fd | 1,233 | cpp | C++ | android-31/android/text/method/ReplacementTransformationMethod.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/text/method/ReplacementTransformationMethod.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/android/text/method/ReplacementTransformationMethod.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../../JCharArray.hpp"
#include "../../graphics/Rect.hpp"
#include "../../view/View.hpp"
#include "../../../JString.hpp"
#include "./ReplacementTransformationMethod.hpp"
namespace android::text::method
{
// Fields
// QJniObject forward
ReplacementTransformationMethod::ReplacementTransformationMethod(Q... | 27.4 | 155 | 0.721006 | [
"object"
] |
778d18763fe7168bb3c7b0ff15a3e778ce30b49e | 7,895 | cpp | C++ | codeforces/543d.cpp | sogapalag/problems | 0ea7d65448e1177f8b3f81124a82d187980d659c | [
"MIT"
] | 1 | 2020-04-04T14:56:12.000Z | 2020-04-04T14:56:12.000Z | codeforces/543d.cpp | sogapalag/problems | 0ea7d65448e1177f8b3f81124a82d187980d659c | [
"MIT"
] | null | null | null | codeforces/543d.cpp | sogapalag/problems | 0ea7d65448e1177f8b3f81124a82d187980d659c | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007; // 998244353; // 998244853;
template <typename T>
struct modular {
constexpr modular() : val(0){}
constexpr modular(const modular<T>& _m) : val(_m.val) {}
template <typename U> constexpr modular(const U& _r = U()) {
val = ... | 44.60452 | 146 | 0.511843 | [
"vector"
] |
7791250b2f4f742b2cf0ba1f79ee5241c5bc6899 | 1,533 | hpp | C++ | src/Geometry/Scene.hpp | prise-3d/vpbrt | d0aca0fe6dc76f0079efcec049b0be04c9cd174b | [
"MIT"
] | 6 | 2021-09-23T03:10:31.000Z | 2021-12-16T11:35:44.000Z | src/Geometry/Scene.hpp | prise-3d/vpbrt | d0aca0fe6dc76f0079efcec049b0be04c9cd174b | [
"MIT"
] | null | null | null | src/Geometry/Scene.hpp | prise-3d/vpbrt | d0aca0fe6dc76f0079efcec049b0be04c9cd174b | [
"MIT"
] | 2 | 2021-09-23T03:10:34.000Z | 2021-12-01T22:34:51.000Z | #ifndef _VPBRT_SCENE_HPP
#define _VPBRT_SCENE_HPP
#include <vector>
#include <iostream>
using namespace std;
#include "Mesh.hpp"
#include "Cylindre.hpp"
#include "Objet.hpp"
#include "../rply-1.1.4/rply.h"
#include "transform.h"
#include "../Materials/Material.hpp"
class Scene {
private:
// objets nommés - n... | 21.291667 | 87 | 0.688193 | [
"mesh",
"vector",
"transform"
] |
77954ffa261a04b8782dc839a4d8ba17c1f7960c | 1,586 | cpp | C++ | ProjectTemplate/src/AppBase.cpp | alexk95/uiCore | fdc1e927710db431d4dcfa13aaeffaef3b36a9b1 | [
"MIT"
] | 2 | 2020-09-26T18:24:15.000Z | 2021-07-09T01:57:29.000Z | ProjectTemplate/src/AppBase.cpp | alexk95/uiCore | fdc1e927710db431d4dcfa13aaeffaef3b36a9b1 | [
"MIT"
] | null | null | null | ProjectTemplate/src/AppBase.cpp | alexk95/uiCore | fdc1e927710db431d4dcfa13aaeffaef3b36a9b1 | [
"MIT"
] | null | null | null | // Application header
#include "AppBase.h" // Corresponding header
#include "TabToolbar.h" // TabToolbar
// AK header
#include <akAPI/uiAPI.h> // The uiAPI
#include <akGui/aColorStyle.h> // ColorStyle if needed for custom widgets
using namespace ak;
// We create some constant values for the icons
const QString ... | 28.836364 | 113 | 0.744641 | [
"object"
] |
7797d2132f184407980605c37187a113345f2a7d | 2,403 | cc | C++ | Source.cc | EmanueleGallone/OmnetProject | e907a46ab28ea9bf03b01a6dc5adac5b752deb04 | [
"MIT"
] | 1 | 2020-05-03T19:54:23.000Z | 2020-05-03T19:54:23.000Z | Source.cc | davidetestoni/OmnetProject | 3c1d37405af554c26bc9079d0cdaf71b17b4ff0d | [
"MIT"
] | 1 | 2019-02-14T11:14:10.000Z | 2021-03-23T06:54:40.000Z | Source.cc | EmanueleGallone/OmnetProject | e907a46ab28ea9bf03b01a6dc5adac5b752deb04 | [
"MIT"
] | 1 | 2020-05-03T19:55:36.000Z | 2020-05-03T19:55:36.000Z | #include <omnetpp.h>
#include <cstdlib>
#include <PriorityMessage_m.h>
using namespace omnetpp;
class Source : public cSimpleModule
{
private:
PriorityMessage *priorityMessage;
int numPrio;
cMersenneTwister* rng; // random number generator
std::vector<double> interArrivalTimes; // we default to ex... | 29.304878 | 197 | 0.719933 | [
"vector"
] |
7799254da3b97262899ab65f4b596dbb19fdcc09 | 6,765 | cc | C++ | examples/physics/FullCMS/Geant4/src/G4ScalarRZMagFieldFromMap.cc | amadio/geant | a46790aa9eb3663f8324320a71e993d73ca443da | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2016-10-16T14:37:42.000Z | 2018-04-05T15:49:09.000Z | examples/physics/FullCMS/Geant4/src/G4ScalarRZMagFieldFromMap.cc | amadio/geant | a46790aa9eb3663f8324320a71e993d73ca443da | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | examples/physics/FullCMS/Geant4/src/G4ScalarRZMagFieldFromMap.cc | amadio/geant | a46790aa9eb3663f8324320a71e993d73ca443da | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | // Created by J. Apostolakis, 18 May 2018
//
// based on ScalarRZMagFieldFromMap
// which was based on the work of Ananya Fall 2015
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <stdlib.h>
#include <cassert>
#include "G4Types.hh"
#include "G4ScalarRZMagFieldFromMap... | 33.325123 | 105 | 0.615817 | [
"vector"
] |
779df917084730acc04569b52c9916d6d8fafdfa | 3,337 | cpp | C++ | src/fmi4cpp/fmi2/cs_library.cpp | feelpp/FMI4cpp | 3e78df0835e026137e943b626f604e718b6b1e99 | [
"MIT"
] | 1 | 2019-11-02T15:45:07.000Z | 2019-11-02T15:45:07.000Z | src/fmi4cpp/fmi2/cs_library.cpp | fmi-tools/FMI4cpp | 31cd95965da94652597e340c4b1b78c93fb830ec | [
"MIT"
] | null | null | null | src/fmi4cpp/fmi2/cs_library.cpp | fmi-tools/FMI4cpp | 31cd95965da94652597e340c4b1b78c93fb830ec | [
"MIT"
] | null | null | null |
#include <fmi4cpp/fmi2/cs_library.hpp>
#include <fmi4cpp/library_helper.hpp>
using namespace fmi4cpp;
using namespace fmi4cpp::fmi2;
cs_library::cs_library(const std::string& modelIdentifier,
const std::shared_ptr<fmu_resource>& resource)
: fmi2_library(modelIdentifier, resource)
{
fmi2SetRealInputDeriv... | 31.481132 | 108 | 0.758166 | [
"vector"
] |
77a9c8230a918f4de40e46a07e9584395675adbd | 5,983 | cc | C++ | third_party/harfbuzz-ng/src/hb-ot-shape-complex-arabic.cc | meego-tablet-ux/meego-app-browser | 0f4ef17bd4b399c9c990a2f6ca939099495c2b9c | [
"BSD-3-Clause"
] | 1 | 2015-10-12T09:14:22.000Z | 2015-10-12T09:14:22.000Z | third_party/harfbuzz-ng/src/hb-ot-shape-complex-arabic.cc | meego-tablet-ux/meego-app-browser | 0f4ef17bd4b399c9c990a2f6ca939099495c2b9c | [
"BSD-3-Clause"
] | null | null | null | third_party/harfbuzz-ng/src/hb-ot-shape-complex-arabic.cc | meego-tablet-ux/meego-app-browser | 0f4ef17bd4b399c9c990a2f6ca939099495c2b9c | [
"BSD-3-Clause"
] | 1 | 2020-11-04T07:22:28.000Z | 2020-11-04T07:22:28.000Z | /*
* Copyright (C) 2010 Google, Inc.
*
* This is part of HarfBuzz, a text shaping library.
*
* Permission is hereby granted, without written agreement and without
* license or royalty fees, to use, copy, modify, and distribute this
* software and its documentation for any purpose, provided that the
* above co... | 30.065327 | 132 | 0.673909 | [
"shape"
] |
77ad9694f67da36c055ae289ff38e5c22ca6da05 | 12,096 | cpp | C++ | src/ukf.cpp | ShriefSalama/UncentedKalmanFilter | a5af8c97832818d24771b1f4aed23cb4595f8fc9 | [
"MIT"
] | null | null | null | src/ukf.cpp | ShriefSalama/UncentedKalmanFilter | a5af8c97832818d24771b1f4aed23cb4595f8fc9 | [
"MIT"
] | null | null | null | src/ukf.cpp | ShriefSalama/UncentedKalmanFilter | a5af8c97832818d24771b1f4aed23cb4595f8fc9 | [
"MIT"
] | 1 | 2021-07-02T17:27:35.000Z | 2021-07-02T17:27:35.000Z | #include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/**
* Initializes Unscented Kalman filter
* This is scaffolding, do not modify
*/
UKF::UKF() {
// if this is false, laser measurements will be ignored (except during i... | 30.39196 | 159 | 0.550595 | [
"object",
"vector",
"model"
] |
77b3857ca2ff0934b64bd31c224378ce291fe46d | 176 | hh | C++ | src/Types.hh | michaeljones/alembic-fs | 765b51774e40b0a5656e9f59338539f5b11f3e4b | [
"BSD-3-Clause"
] | 6 | 2015-03-20T07:58:22.000Z | 2020-01-08T21:57:06.000Z | src/Types.hh | michaeljones/alembic-fs | 765b51774e40b0a5656e9f59338539f5b11f3e4b | [
"BSD-3-Clause"
] | null | null | null | src/Types.hh | michaeljones/alembic-fs | 765b51774e40b0a5656e9f59338539f5b11f3e4b | [
"BSD-3-Clause"
] | null | null | null | #ifndef ALBEMBICFS_TYPES_HH
#define ALBEMBICFS_TYPES_HH
#include <vector>
#include <string>
typedef std::vector< std::string > PathSegments;
#endif // ALBEMBICFS_TYPES_HH
| 14.666667 | 48 | 0.778409 | [
"vector"
] |
77b7f91432bcf009a49dabad76825924fee7eb26 | 5,365 | cpp | C++ | liquidfun/liquidfun/Box2D/Unittests/Multi/MultipleParticleSystemsTests.cpp | subatomicglue/fluid | c85376f86828a1c234bcd9535b9030cfb1a1e8bd | [
"MIT"
] | 17 | 2017-04-02T00:17:47.000Z | 2021-11-23T21:42:48.000Z | liquidfun/liquidfun/Box2D/Unittests/Multi/MultipleParticleSystemsTests.cpp | subatomicglue/fluid | c85376f86828a1c234bcd9535b9030cfb1a1e8bd | [
"MIT"
] | 1 | 2022-01-09T17:14:54.000Z | 2022-01-16T12:35:06.000Z | liquidfun/liquidfun/Box2D/Unittests/Multi/MultipleParticleSystemsTests.cpp | subatomicglue/fluid | c85376f86828a1c234bcd9535b9030cfb1a1e8bd | [
"MIT"
] | 5 | 2017-08-06T12:47:18.000Z | 2020-08-14T14:16:22.000Z | /*
* Copyright (c) 2014 Google, Inc.
*
* 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 any purpose,
* including commercial appl... | 31.745562 | 76 | 0.731594 | [
"object",
"shape",
"vector"
] |
77c8b6833559585c1b1a45141eff963479e7ac4f | 21,884 | cpp | C++ | src/soundengine/redbooksound.cpp | AllegianceZone/Allegiance | ef69a16638fb35e34cbb51f6aee891080f71d38b | [
"MIT"
] | 11 | 2015-01-11T08:45:18.000Z | 2022-01-28T09:20:54.000Z | src/soundengine/redbooksound.cpp | AllegianceZone/Allegiance | ef69a16638fb35e34cbb51f6aee891080f71d38b | [
"MIT"
] | 15 | 2015-05-25T20:22:41.000Z | 2017-08-14T17:10:57.000Z | src/soundengine/redbooksound.cpp | FreeAllegiance/Allegiance-AZ | 1d8678ddff9e2efc79ed449de6d47544989bc091 | [
"MIT"
] | 3 | 2015-07-12T05:50:54.000Z | 2017-08-13T06:42:50.000Z | //
// redbooksound.cpp
//
// SoundEngine support for redbook audio.
//
#include "pch.h"
#include "soundbase.h"
#include "redbooksound.h"
#include "ds3dutil.h"
using std::list;
namespace SoundEngine {
//
// A class dedicated to controling the volume of the CD player(s) on a system
//
class CDVolume
{
public:
enu... | 29.612991 | 119 | 0.588512 | [
"object"
] |
77df0ef132cb99f499fae386be29d42c70b2db87 | 980 | cpp | C++ | 661/P661/P661/main.cpp | swy20190/Leetcode-Cracker | 3b80eacfa63983d5fcc50442f0813296d5c1af94 | [
"MIT"
] | null | null | null | 661/P661/P661/main.cpp | swy20190/Leetcode-Cracker | 3b80eacfa63983d5fcc50442f0813296d5c1af94 | [
"MIT"
] | null | null | null | 661/P661/P661/main.cpp | swy20190/Leetcode-Cracker | 3b80eacfa63983d5fcc50442f0813296d5c1af94 | [
"MIT"
] | null | null | null | #include <vector>
using namespace std;
class Solution {
public:
vector<vector<int>> imageSmoother(vector<vector<int>>& M) {
vector<vector<int>> num = M;
int row = M.size();
int col = M[0].size();
for (int i = 0; i < row; i++) {
for (int j = 0; j < col; j++) {
int m = 1;
int n;
if (M[i][j] != 0... | 16.896552 | 60 | 0.32449 | [
"vector"
] |
77e0ddd8f497454d7e1bea8564def2bc3709b045 | 8,582 | cpp | C++ | scripts/workload.cpp | Renz7/gStore | 99b01a8951342f28abb985089278f8f81434f875 | [
"BSD-3-Clause"
] | 408 | 2018-08-30T14:07:16.000Z | 2022-03-30T05:19:20.000Z | scripts/workload.cpp | Renz7/gStore | 99b01a8951342f28abb985089278f8f81434f875 | [
"BSD-3-Clause"
] | 55 | 2018-09-29T10:47:05.000Z | 2022-03-28T02:23:48.000Z | scripts/workload.cpp | Renz7/gStore | 99b01a8951342f28abb985089278f8f81434f875 | [
"BSD-3-Clause"
] | 149 | 2018-09-06T08:04:11.000Z | 2022-03-30T08:43:21.000Z | #include <iostream>
#include <set>
#include <vector>
#include <deque>
#include <algorithm>
#include <fstream>
#include <mutex>
#include <thread>
#include "../Database/Txn_manager.h"
using namespace std;
struct task
{
string op1;
string op2;
string op3;
task() {op1 = op2 = op3 = "";}
};
class task_man... | 23.972067 | 97 | 0.544978 | [
"vector"
] |
77e2ba10cd616db964b9293b54198520dd7a543d | 6,954 | cpp | C++ | src/stsort.cpp | jeewhanchoi/row-sparse-cpstream | 29525f45d2e8344f07c99efd614f0b3934bf9cfb | [
"MIT"
] | null | null | null | src/stsort.cpp | jeewhanchoi/row-sparse-cpstream | 29525f45d2e8344f07c99efd614f0b3934bf9cfb | [
"MIT"
] | null | null | null | src/stsort.cpp | jeewhanchoi/row-sparse-cpstream | 29525f45d2e8344f07c99efd614f0b3934bf9cfb | [
"MIT"
] | null | null | null | #include "stsort.hpp"
#include <algorithm>
#include <omp.h>
// intel parallel stl includes:
#if __INTEL_COMPILER
#include "pstl/algorithm"
#include "pstl/execution"
#endif
inline int ceil_log2(unsigned long long x)
{
static const unsigned long long t[6] = {
0xFFFFFFFF00000000ull,
0x00000000FFFF0000ull,
... | 25.851301 | 95 | 0.566005 | [
"vector"
] |
77e2f3bee5b39e9b424515910af6fe5e4bbaf734 | 8,891 | cpp | C++ | gl_7/main.cpp | leefige/OpenGL-Exercises | 16aecc159a9e658367de1cf7cbd4f268c5d3dc90 | [
"MIT"
] | null | null | null | gl_7/main.cpp | leefige/OpenGL-Exercises | 16aecc159a9e658367de1cf7cbd4f268c5d3dc90 | [
"MIT"
] | null | null | null | gl_7/main.cpp | leefige/OpenGL-Exercises | 16aecc159a9e658367de1cf7cbd4f268c5d3dc90 | [
"MIT"
] | null | null | null | /*
* OpenGL version 3.3 project.
*/
#include <iostream>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <SOIL2/SOIL2.h>
#include <ft2build.h>
#include FT_FREETYPE_H
#include "shader.hpp"
#include "particalsys.h... | 34.196154 | 175 | 0.612192 | [
"object"
] |
77e9161aeea9a0d2a7451299f6251539e117af90 | 29,098 | cpp | C++ | javaStructures/jdk-master/src/hotspot/cpu/aarch64/gc/shenandoah/shenandoahBarrierSetAssembler_aarch64.cpp | IThawk/learnCode | 0ac843d28b193eaab33fb33692f18361d71c7331 | [
"MIT"
] | 1 | 2020-12-26T04:52:15.000Z | 2020-12-26T04:52:15.000Z | javaStructures/jdk-master/src/hotspot/cpu/aarch64/gc/shenandoah/shenandoahBarrierSetAssembler_aarch64.cpp | IThawk/learnCode | 0ac843d28b193eaab33fb33692f18361d71c7331 | [
"MIT"
] | 1 | 2020-12-26T04:57:19.000Z | 2020-12-26T04:57:19.000Z | javaStructures/jdk-master/src/hotspot/cpu/aarch64/gc/shenandoah/shenandoahBarrierSetAssembler_aarch64.cpp | IThawk/learnCode | 0ac843d28b193eaab33fb33692f18361d71c7331 | [
"MIT"
] | 1 | 2021-12-06T01:13:18.000Z | 2021-12-06T01:13:18.000Z | /*
* Copyright (c) 2018, 2021, Red Hat, Inc. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundat... | 38.036601 | 140 | 0.678088 | [
"object"
] |
77ef46b6b9d174b765969bb65c698e118b9130a2 | 4,838 | hh | C++ | rpc/iface.hh | codesloop/codesloop | d66e51c2d898a72624306f611a90364c76deed06 | [
"BSD-2-Clause"
] | 3 | 2016-05-09T15:29:29.000Z | 2017-11-22T06:16:18.000Z | rpc/iface.hh | codesloop/codesloop | d66e51c2d898a72624306f611a90364c76deed06 | [
"BSD-2-Clause"
] | null | null | null | rpc/iface.hh | codesloop/codesloop | d66e51c2d898a72624306f611a90364c76deed06 | [
"BSD-2-Clause"
] | null | null | null | /*
Copyright (c) 2008,2009,2010, CodeSLoop Team
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 conditions and the following disclaime... | 36.651515 | 86 | 0.645515 | [
"vector"
] |
77f4f827d58926a8183e1f235785c7df9db73e09 | 1,407 | cpp | C++ | src/parameter/matrix/parameter.cpp | Ymagis/EclairLooks | c04fb1af1160305fb1dbffb2ea92cc478cd70b31 | [
"BSD-3-Clause"
] | 9 | 2019-07-03T13:11:33.000Z | 2021-10-06T13:55:31.000Z | src/parameter/matrix/parameter.cpp | Ymagis/EclairLooks | c04fb1af1160305fb1dbffb2ea92cc478cd70b31 | [
"BSD-3-Clause"
] | 1 | 2019-07-09T09:04:59.000Z | 2019-08-06T13:23:47.000Z | src/parameter/matrix/parameter.cpp | Ymagis/EclairLooks | c04fb1af1160305fb1dbffb2ea92cc478cd70b31 | [
"BSD-3-Clause"
] | 4 | 2019-07-02T15:03:43.000Z | 2019-09-28T14:33:03.000Z | #include "parameter.h"
#include "widget.h"
#include <utils/pystring.h>
MatrixParameter::MatrixParameter(const std::string &name) : Parameter(name)
{
m_value = m_default_value;
}
Matrix4x4 MatrixParameter::value() const { return m_value; }
void MatrixParameter::setValue(const Matrix4x4 &v)
{
m_value = v;
... | 23.45 | 99 | 0.678749 | [
"vector"
] |
af8970cf25b86f68d706374282424d338673b4b2 | 15,837 | cpp | C++ | CascadedShadowMapping/src/CascadedShadowMappingApp.cpp | Samsy/Cinder-Experiments | c81fd1f149d0a6585afd1da5507be6ca1f52e29d | [
"Unlicense"
] | 231 | 2015-03-04T04:20:55.000Z | 2022-02-09T13:40:54.000Z | CascadedShadowMapping/src/CascadedShadowMappingApp.cpp | simongeilfus/Cinder-Experiments | c81fd1f149d0a6585afd1da5507be6ca1f52e29d | [
"Unlicense"
] | null | null | null | CascadedShadowMapping/src/CascadedShadowMappingApp.cpp | simongeilfus/Cinder-Experiments | c81fd1f149d0a6585afd1da5507be6ca1f52e29d | [
"Unlicense"
] | 30 | 2015-02-10T17:32:51.000Z | 2021-07-09T02:52:55.000Z | #include "cinder/app/App.h"
#include "cinder/app/RendererGl.h"
#include "cinder/gl/gl.h"
#include "cinder/CameraUi.h"
#include "cinder/ObjLoader.h"
#include "CinderImGui.h"
using namespace ci;
using namespace ci::app;
using namespace std;
typedef std::shared_ptr<class CascadedShadows> CascadedShadowsRef;
class Casc... | 38.626829 | 201 | 0.707836 | [
"geometry",
"render",
"object",
"vector",
"transform",
"3d"
] |
af8d2abdb9a96d6d4fe1f53cf956bf52dcc2df32 | 2,008 | cpp | C++ | battlesnake_test.cpp | Waznop/Project-2.2---Battlesnake | b3e42998bf4cfdec06ed1ce365d31c3b692e75a6 | [
"MIT"
] | null | null | null | battlesnake_test.cpp | Waznop/Project-2.2---Battlesnake | b3e42998bf4cfdec06ed1ce365d31c3b692e75a6 | [
"MIT"
] | null | null | null | battlesnake_test.cpp | Waznop/Project-2.2---Battlesnake | b3e42998bf4cfdec06ed1ce365d31c3b692e75a6 | [
"MIT"
] | null | null | null | /** Contains tests for your code.
@file battlesnake_test.cpp
@author YOUR NAME(S) HERE
*/
// TODO: Fill in your name(s) above.
#include "battlesnake.h"
#include <gtest/gtest.h>
#include <set>
#include <vector>
#include "lib/snake.h"
#include "lib/snake_logic.h"
#include "lib/snake_presets.h"
using namespace std;
TEST... | 25.417722 | 70 | 0.61255 | [
"vector"
] |
af9143663ce7e6a5bf98e9af599e3a5de1776728 | 1,451 | cpp | C++ | devtools/pfwriter/csv/pfwriter_impl.cpp | pshoben/llutils | e6eb56b0e27f9d20cf3be6291e6933ab3bebee21 | [
"MIT"
] | null | null | null | devtools/pfwriter/csv/pfwriter_impl.cpp | pshoben/llutils | e6eb56b0e27f9d20cf3be6291e6933ab3bebee21 | [
"MIT"
] | null | null | null | devtools/pfwriter/csv/pfwriter_impl.cpp | pshoben/llutils | e6eb56b0e27f9d20cf3be6291e6933ab3bebee21 | [
"MIT"
] | null | null | null | #include <pfwriter_impl.hpp>
#include <iostream>
using std::string;
//using std::string_view;
namespace llutils::devtools {
void PfWriterImpl::init(PfWriter * w) {
pwrapper = w;
}
std::vector<string> PfWriterImpl::get_supported_formats()
{
std::vector<string> v{};
return v;
}
void PfWriterImpl::set_f... | 23.403226 | 70 | 0.627154 | [
"vector"
] |
af9e7d338c84f5e0379c9342b2ec86107acf91aa | 985 | cpp | C++ | Data Structures/Disjoint Set Union (DSU)/dsu.cpp | vmmc2/The-Notebook-blue_book-computer- | 7c69b404e8870b5686422ed9fb143cda8623b479 | [
"MIT"
] | 2 | 2021-05-07T20:18:45.000Z | 2021-05-07T20:29:06.000Z | Data Structures/Disjoint Set Union (DSU)/dsu.cpp | vmmc2/The-Notebook | 7c69b404e8870b5686422ed9fb143cda8623b479 | [
"MIT"
] | null | null | null | Data Structures/Disjoint Set Union (DSU)/dsu.cpp | vmmc2/The-Notebook | 7c69b404e8870b5686422ed9fb143cda8623b479 | [
"MIT"
] | null | null | null | class dsu{
private:
vector<int> uf;
vector<int> size;
public:
dsu(int n){
uf.assign(n, 0);
size.assign(n, 1);
for(int i = 0; i < n; i++){
uf[i] = i;
}
}
int root(int x){
while(x != uf[x]){
... | 25.25641 | 47 | 0.330964 | [
"vector"
] |
afb52b37c3a4904c646d78b8ff852d7a4fc1325a | 3,348 | hpp | C++ | src/lib/any.hpp | DoumanAsh/text-ex-cpp | 7c7717291416bac65466a4791e6ccc8a194290a4 | [
"MIT"
] | null | null | null | src/lib/any.hpp | DoumanAsh/text-ex-cpp | 7c7717291416bac65466a4791e6ccc8a194290a4 | [
"MIT"
] | null | null | null | src/lib/any.hpp | DoumanAsh/text-ex-cpp | 7c7717291416bac65466a4791e6ccc8a194290a4 | [
"MIT"
] | null | null | null | #pragma once
#include <algorithm>
#include <typeinfo>
/**
* Represents Any object.
*
* It wraps arbitrary object into @ref placeholder.
* Which is abstract class that has virtual methods `.type()` and `.value()`.
* Actual type information is stored in derived @ref impl class.
* Using this information you can ca... | 27.9 | 94 | 0.516129 | [
"object"
] |
afb63cf713ba170c180bba76fa49c863c67e945c | 4,450 | cc | C++ | cairomm/examples/text/user-font.cc | shikanon/rtbkit-deps | c55b61b82a8f4c6ce129f6dd813cd15379207017 | [
"Apache-2.0"
] | null | null | null | cairomm/examples/text/user-font.cc | shikanon/rtbkit-deps | c55b61b82a8f4c6ce129f6dd813cd15379207017 | [
"Apache-2.0"
] | null | null | null | cairomm/examples/text/user-font.cc | shikanon/rtbkit-deps | c55b61b82a8f4c6ce129f6dd813cd15379207017 | [
"Apache-2.0"
] | 1 | 2020-09-15T05:49:43.000Z | 2020-09-15T05:49:43.000Z | #include <cairomm/cairomm.h>
#include <iostream>
#include <map>
const double HEIGHT = 200.0;
const double WIDTH = 400.0;
const double FONT_SIZE = 64.0;
const double TEXT_ORIGIN_Y = (HEIGHT / 2.0) + (FONT_SIZE / 2.0);
const double TEXT_ORIGIN_X = 50.0; // arbitrary
const double GLYPH_SPACING = 0.1;
struct GlyphBounds... | 31.118881 | 82 | 0.63573 | [
"object"
] |
afb67741af2b054d0b3a56eafcaefb83904e1b03 | 1,191 | cpp | C++ | robotVision/Source/ListHelper.cpp | personalizedrefrigerator/2018LWHSVisionObjectDetection | 4f8c58fca73406349081f886f05c8a56cd6453bd | [
"BSD-3-Clause"
] | null | null | null | robotVision/Source/ListHelper.cpp | personalizedrefrigerator/2018LWHSVisionObjectDetection | 4f8c58fca73406349081f886f05c8a56cd6453bd | [
"BSD-3-Clause"
] | null | null | null | robotVision/Source/ListHelper.cpp | personalizedrefrigerator/2018LWHSVisionObjectDetection | 4f8c58fca73406349081f886f05c8a56cd6453bd | [
"BSD-3-Clause"
] | null | null | null | #include "ListHelper.h"
#include "Logging.h"
// Standard libraries.
#include <math.h>
#include <cstdlib>
#include <vector>
// Test the sorting function.
void ListHelper::testSort()
{
Logging::log("Starting merge sort test.");
std::vector< ObjectSortingContainer<double> > list;
for(double i = 0; i < 5; i++)
{... | 20.186441 | 68 | 0.625525 | [
"vector"
] |
afb9df3115a41e7939df1b3b81835010dc57ddd4 | 1,596 | cpp | C++ | aoc2/aoc2.cpp | epicyclism/aoc2021 | da29cf6523ebbba7882f5de5f2ced8b8ce48df6f | [
"MIT"
] | null | null | null | aoc2/aoc2.cpp | epicyclism/aoc2021 | da29cf6523ebbba7882f5de5f2ced8b8ce48df6f | [
"MIT"
] | null | null | null | aoc2/aoc2.cpp | epicyclism/aoc2021 | da29cf6523ebbba7882f5de5f2ced8b8ce48df6f | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <string>
#include <string_view>
#include <charconv>
#include <numeric>
#include "ctre_inc.h"
struct pd
{
int a_;
int h_;
int d_;
};
pd operator+(pd const& l, pd const& r)
{
return {0, l.h_ + r.h_, l.d_ + r.d_};
}
pd operator*(pd const& l, pd const& r)
{... | 21.28 | 76 | 0.453008 | [
"vector"
] |
afc0099b89273cbeea6ba79fe89bc63de3c61a4c | 4,009 | cpp | C++ | topMetalDrone.cpp | alexanderpiers/UWTopMetalDrone | 5bb78faf2d558bb62ba65726a26d740f421d4ed3 | [
"MIT"
] | 1 | 2020-07-07T22:03:22.000Z | 2020-07-07T22:03:22.000Z | topMetalDrone.cpp | alexanderpiers/UWTopMetalDrone | 5bb78faf2d558bb62ba65726a26d740f421d4ed3 | [
"MIT"
] | null | null | null | topMetalDrone.cpp | alexanderpiers/UWTopMetalDrone | 5bb78faf2d558bb62ba65726a26d740f421d4ed3 | [
"MIT"
] | null | null | null | // Standard headers
#include <vector>
#include <string>
#include <iostream>
#include <fstream>
// Utility headers
#include "tinyxml2.h"
#include "CLI11.hpp"
// Custom headers
#include "TopMetalDroneConfig.h"
#include "TopMetalDigitizer.h"
// Define constants
const int npx = 72;
const int npy = 72;
int main(int argc... | 28.841727 | 130 | 0.705413 | [
"vector"
] |
afc28ee292dea929575257da519b3237278005f5 | 2,367 | cpp | C++ | src/CSVGFeTile.cpp | colinw7/CSVG | 049419b4114fc6ff7f5b25163398f02c21a64bf6 | [
"MIT"
] | 5 | 2015-04-11T14:56:03.000Z | 2021-12-14T10:12:36.000Z | src/CSVGFeTile.cpp | colinw7/CSVG | 049419b4114fc6ff7f5b25163398f02c21a64bf6 | [
"MIT"
] | 3 | 2015-04-20T19:23:15.000Z | 2021-09-03T20:03:30.000Z | src/CSVGFeTile.cpp | colinw7/CSVG | 049419b4114fc6ff7f5b25163398f02c21a64bf6 | [
"MIT"
] | 3 | 2015-05-21T08:33:12.000Z | 2020-05-13T15:45:11.000Z | #include <CSVGFeTile.h>
#include <CSVGFilter.h>
#include <CSVGBuffer.h>
#include <CSVG.h>
CSVGFeTile::
CSVGFeTile(CSVG &svg) :
CSVGFilterBase(svg)
{
}
CSVGFeTile::
CSVGFeTile(const CSVGFeTile &fe) :
CSVGFilterBase(fe),
filterIn_ (fe.filterIn_),
filterOut_(fe.filterOut_)
{
}
CSVGFeTile *
CSVGFeTile::
dup() const
... | 16.669014 | 72 | 0.675116 | [
"object"
] |
afd0e05d6a61e83779bfac20dd554b607f5af08c | 2,022 | cc | C++ | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcrcom/com_intervalmap.cc | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcrcom/com_intervalmap.cc | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcrcom/com_intervalmap.cc | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | #ifndef INCLUDED_STDDEFX
#include "stddefx.h"
#define INCLUDED_STDDEFX
#endif
// Library headers.
// PCRaster library headers.
#ifndef INCLUDED_COM_INTERVALMAP
#include "com_intervalmap.h"
#define INCLUDED_COM_INTERVALMAP
#endif
// Module headers.
/*!
\file
This file contains the implementation of the IntervalMa... | 22.21978 | 80 | 0.452028 | [
"vector"
] |
afded9f40a6d1b52b2f699eae92894675ce14e8a | 4,628 | cpp | C++ | testing/testing_csv_file/main.cpp | NewYaroslav/xquotes_history | 6a72a3cf88f0d00c42aa735cc84327806257e422 | [
"MIT"
] | 4 | 2019-09-05T20:49:38.000Z | 2021-11-17T09:44:22.000Z | testing/testing_csv_file/main.cpp | NewYaroslav/xquotes_history | 6a72a3cf88f0d00c42aa735cc84327806257e422 | [
"MIT"
] | 2 | 2020-04-10T20:00:56.000Z | 2020-05-08T03:47:55.000Z | testing/testing_csv_file/main.cpp | NewYaroslav/xquotes_history | 6a72a3cf88f0d00c42aa735cc84327806257e422 | [
"MIT"
] | 3 | 2019-11-02T19:57:11.000Z | 2021-05-13T20:12:59.000Z | #include "xquotes_files.hpp"
#include "xquotes_csv.hpp"
#include "xquotes_history.hpp"
#include <vector>
#include <array>
#include <iostream>
#include <random>
#include <ctime>
#include <stdio.h>
int main(int argc, char *argv[]) {
std::string file_name_csv_mt4 = "mt4_example.csv";
std::string file_name_csv_mt5... | 33.536232 | 86 | 0.533276 | [
"vector"
] |
afe0f621c7fa7866ad74ebf999edba583df616bd | 1,309 | cpp | C++ | computervision/01/cv4.cpp | pantadeusz/examples-ai | 7316191b592eeb95c5873ee6836ccb6ca5b776a5 | [
"MIT"
] | 1 | 2020-10-20T13:27:16.000Z | 2020-10-20T13:27:16.000Z | computervision/01/cv4.cpp | pantadeusz/examples-ai | 7316191b592eeb95c5873ee6836ccb6ca5b776a5 | [
"MIT"
] | null | null | null | computervision/01/cv4.cpp | pantadeusz/examples-ai | 7316191b592eeb95c5873ee6836ccb6ca5b776a5 | [
"MIT"
] | 2 | 2019-06-07T10:54:01.000Z | 2020-12-01T12:58:44.000Z | #include <iostream>
#include <opencv2/highgui.hpp>
#include <opencv2/opencv.hpp>
#include <vector>
// g++ `pkg-config --cflags opencv4` cv3.cpp `pkg-config --libs opencv4`
using namespace std;
using namespace cv;
int main(int argc, char** argv)
{
int h1 = 0;
int h2 = 255;
int s1 = 0;
int s2 = 255;
... | 23.375 | 72 | 0.569137 | [
"vector"
] |
afe99637287188cbd4e1b6a4c14c6f38988c4183 | 1,647 | cpp | C++ | ANNWrapper.cpp | mattjr/structured | 0cb4635af7602f2a243a9b739e5ed757424ab2a7 | [
"Apache-2.0"
] | 14 | 2015-01-11T02:53:04.000Z | 2021-11-25T17:31:22.000Z | ANNWrapper.cpp | skair39/structured | 0cb4635af7602f2a243a9b739e5ed757424ab2a7 | [
"Apache-2.0"
] | null | null | null | ANNWrapper.cpp | skair39/structured | 0cb4635af7602f2a243a9b739e5ed757424ab2a7 | [
"Apache-2.0"
] | 14 | 2015-07-21T04:47:52.000Z | 2020-03-12T12:31:25.000Z | #include "ANNWrapper.h"
ANNWrapper::ANNWrapper()
{
m_anything_to_free = false;
m_eps = 0;
m_k = 1;
}
ANNWrapper::~ANNWrapper()
{
Free();
}
void ANNWrapper::Free()
{
if(!m_anything_to_free)
return;
delete [] m_nnidx; // clean things up
delete [] m_dists;
delete m_kdtree;
annDeallocPts(m_data_pts);
... | 20.085366 | 78 | 0.625379 | [
"vector"
] |
afec0728fc78236aca5879f64b3f484dcad27ade | 730 | hpp | C++ | RoboNeko/robit.hpp | nspool/RoboNeko | 1f5ce273f9d38ce84dca1022d48b55d8025cec3a | [
"MIT"
] | null | null | null | RoboNeko/robit.hpp | nspool/RoboNeko | 1f5ce273f9d38ce84dca1022d48b55d8025cec3a | [
"MIT"
] | null | null | null | RoboNeko/robit.hpp | nspool/RoboNeko | 1f5ce273f9d38ce84dca1022d48b55d8025cec3a | [
"MIT"
] | null | null | null | //
// Robit.hpp
// RoboNeko
//
// Created by nsp on 16/3/17.
// Copyright 2017 nspool. All rights reserved.
//
#ifndef Robit_hpp
#define Robit_hpp
#include <vector>
#include <SDL.h>
#include <SDL_timer.h>
#include "sprite.hpp"
const int ANIMATION_FPS = 10;
const int STATE_DELAY_MS = 1000;
enum RobitState : in... | 18.25 | 65 | 0.720548 | [
"render",
"vector"
] |
afed03bd937c4b70fdb007de749fe1cd45fe98bf | 1,300 | cpp | C++ | DSA/Graphs/Strongly_connected_components.cpp | ShrishtiAgarwal/DSA | 8086cc31bef3aefc06a8ea5c7c36fa4aabe7c1df | [
"MIT"
] | null | null | null | DSA/Graphs/Strongly_connected_components.cpp | ShrishtiAgarwal/DSA | 8086cc31bef3aefc06a8ea5c7c36fa4aabe7c1df | [
"MIT"
] | null | null | null | DSA/Graphs/Strongly_connected_components.cpp | ShrishtiAgarwal/DSA | 8086cc31bef3aefc06a8ea5c7c36fa4aabe7c1df | [
"MIT"
] | null | null | null | #include<iostream>
#include<bits/stdc++.h>
using namespace std;
void dfs(vector<vector<int>>&q,vector<bool>&vis,int i,stack<int>&s)
{
vis[i]=true;
for(int j=0;j<q[i].size();j++)
{
if(!vis[q[i][j]])
dfs(q,vis,q[i][j],s);
}
s.push(i);
}
void dfss(int i,vector<vector<int>>&d,vector<bool>... | 14.130435 | 67 | 0.44 | [
"vector"
] |
afed910e74936311152eaa9d56494791d805cf15 | 912 | hpp | C++ | src/terrain.hpp | MajorArkwolf/ICT397-Lab2 | d3f1744b2a1b60d693ddbff791e5e44610a1e02b | [
"ISC"
] | null | null | null | src/terrain.hpp | MajorArkwolf/ICT397-Lab2 | d3f1744b2a1b60d693ddbff791e5e44610a1e02b | [
"ISC"
] | null | null | null | src/terrain.hpp | MajorArkwolf/ICT397-Lab2 | d3f1744b2a1b60d693ddbff791e5e44610a1e02b | [
"ISC"
] | null | null | null | #pragma once
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <vector>
#include "shader.hpp"
#include "vertix.hpp"
namespace Red {
class Terrain {
public:
Terrain();
~Terrain();
void loadScene();
void clearScene();
void generateTerrain(int x, int z)... | 25.333333 | 68 | 0.710526 | [
"vector"
] |
affe4bb737a2706759b2cc84356d974f59c0df10 | 1,686 | cpp | C++ | fboss/agent/hw/sai/api/NeighborApi.cpp | nathanawmk/fboss | 9f36dbaaae47202f9131598560c65715334a9a83 | [
"BSD-3-Clause"
] | 834 | 2015-03-10T18:12:28.000Z | 2022-03-31T20:16:17.000Z | fboss/agent/hw/sai/api/NeighborApi.cpp | nathanawmk/fboss | 9f36dbaaae47202f9131598560c65715334a9a83 | [
"BSD-3-Clause"
] | 82 | 2015-04-07T08:48:29.000Z | 2022-03-11T21:56:58.000Z | fboss/agent/hw/sai/api/NeighborApi.cpp | nathanawmk/fboss | 9f36dbaaae47202f9131598560c65715334a9a83 | [
"BSD-3-Clause"
] | 296 | 2015-03-11T03:45:37.000Z | 2022-03-14T22:54:22.000Z | /*
* Copyright (c) 2004-present, Facebook, Inc.
* 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. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#in... | 28.576271 | 80 | 0.700474 | [
"object"
] |
9b81675734e7d879383ca337aa4c40d365e2e1e0 | 1,187 | cpp | C++ | uva/chapter_8/1252_Twenty_Questions_RIG.cpp | metaflow/contests | 5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2 | [
"MIT"
] | 1 | 2019-05-12T23:41:00.000Z | 2019-05-12T23:41:00.000Z | uva/chapter_8/1252_Twenty_Questions_RIG.cpp | metaflow/contests | 5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2 | [
"MIT"
] | null | null | null | uva/chapter_8/1252_Twenty_Questions_RIG.cpp | metaflow/contests | 5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
using vi = vector<int>;
using ii = pair<int,int>;
using ll = long long;
using llu = unsigned long long;
const int INF = numeric_limits<int>::max();
default_random_engine source(random_device{}());
int random_in_range(int a, int b) {
return uniform_int_distribution<>(a, ... | 22.826923 | 79 | 0.544229 | [
"vector"
] |
9b824b52f85cd5849a162d7804d6f7752f92ba76 | 2,490 | cpp | C++ | problems/sorted_twice_median.cpp | oishikm12/cpp-collection | 4a454a6ed5b24570c7df0d4f0b692ae98c1ffa97 | [
"MIT"
] | 5 | 2021-05-17T12:32:42.000Z | 2021-12-12T21:09:55.000Z | problems/sorted_twice_median.cpp | oishikm12/cpp-collection | 4a454a6ed5b24570c7df0d4f0b692ae98c1ffa97 | [
"MIT"
] | null | null | null | problems/sorted_twice_median.cpp | oishikm12/cpp-collection | 4a454a6ed5b24570c7df0d4f0b692ae98c1ffa97 | [
"MIT"
] | 1 | 2021-05-13T20:29:57.000Z | 2021-05-13T20:29:57.000Z | #include <iostream>
#include <vector>
using namespace std;
int getMedian(vector<int> &, vector<int> &, int);
int median(vector<int> &, int);
int main() {
/**
* In order to find the median of two sorted arrays, when they are
* combined, we simply find out the most suitable position for such
* a medi... | 36.086957 | 109 | 0.597992 | [
"vector"
] |
9b851b32ab8027cc71b00e6b74ca9e82e156b0b6 | 2,769 | cpp | C++ | systems/plants/geometricJacobianmex.cpp | andybarry/drake | 61428cff8cb523314cd87105821148519460a0b9 | [
"BSD-3-Clause"
] | null | null | null | systems/plants/geometricJacobianmex.cpp | andybarry/drake | 61428cff8cb523314cd87105821148519460a0b9 | [
"BSD-3-Clause"
] | null | null | null | systems/plants/geometricJacobianmex.cpp | andybarry/drake | 61428cff8cb523314cd87105821148519460a0b9 | [
"BSD-3-Clause"
] | 1 | 2021-07-07T18:52:51.000Z | 2021-07-07T18:52:51.000Z | #include <mex.h>
#include <iostream>
#include "drakeUtil.h"
#include "RigidBodyManipulator.h"
#include "drakeGeometryUtil.h"
#include "math.h"
using namespace Eigen;
using namespace std;
/*
* A C version of the geometricJacobian function
*
* Call with [J, vIndices] = geometricJacobianmex(model_ptr, base_body_or_fr... | 34.185185 | 166 | 0.711448 | [
"vector",
"model"
] |
9b8ad4ad73aed36e71a6351f29c00c7dde1cc4f0 | 1,415 | cpp | C++ | src/parser.cpp | Jorengarenar/bim | 1b691201ea3a767b0169aa8aec79bf731fa42f40 | [
"MIT"
] | null | null | null | src/parser.cpp | Jorengarenar/bim | 1b691201ea3a767b0169aa8aec79bf731fa42f40 | [
"MIT"
] | 1 | 2021-11-05T20:18:39.000Z | 2021-11-05T20:18:39.000Z | src/parser.cpp | Jorengarenar/bim | 1b691201ea3a767b0169aa8aec79bf731fa42f40 | [
"MIT"
] | null | null | null | #include "parser.hpp"
#include <cstdlib>
#include <fstream>
#include <iterator>
#include <xdgdirs.h>
#include "editor.hpp"
#include "util.hpp"
#include "action.hpp"
int Parser::operator ()(const std::string& line)
{
buf = {};
buf << line;
std::string a;
while (buf >> a) {
if (a == "|") {
... | 20.214286 | 94 | 0.513074 | [
"transform"
] |
9b8e51046a1e6b47ff6438d86b47f2955a6252d2 | 3,225 | cc | C++ | src/NeutronHPMessenger.cc | pgranhol/T1-target | d80e3607e5008cf2249d62dacc49bccd9205be27 | [
"MIT"
] | null | null | null | src/NeutronHPMessenger.cc | pgranhol/T1-target | d80e3607e5008cf2249d62dacc49bccd9205be27 | [
"MIT"
] | null | null | null | src/NeutronHPMessenger.cc | pgranhol/T1-target | d80e3607e5008cf2249d62dacc49bccd9205be27 | [
"MIT"
] | null | null | null | //
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration... | 44.178082 | 80 | 0.60124 | [
"model"
] |
9b90cad08c7a3464ac42ab4b85f317517688b137 | 2,196 | cpp | C++ | examples/dest_show_landmarks.cpp | cluert/dest | 82c25f44ebe00b64e098d7e554fbc4ae1ae1c788 | [
"BSD-3-Clause"
] | 309 | 2016-01-19T23:49:41.000Z | 2022-03-14T07:16:32.000Z | examples/dest_show_landmarks.cpp | jnulzl/dest | 82c25f44ebe00b64e098d7e554fbc4ae1ae1c788 | [
"BSD-3-Clause"
] | 17 | 2016-02-16T16:36:53.000Z | 2020-05-25T05:56:02.000Z | examples/dest_show_landmarks.cpp | jnulzl/dest | 82c25f44ebe00b64e098d7e554fbc4ae1ae1c788 | [
"BSD-3-Clause"
] | 114 | 2016-02-27T13:51:21.000Z | 2022-03-01T09:00:06.000Z | /**
This file is part of Deformable Shape Tracking (DEST).
Copyright(C) 2015/2016 Christoph Heindl
All rights reserved.
This software may be modified and distributed under the terms
of the BSD license.See the LICENSE file for details.
*/
#include <dest/dest.h>
#include <tclap/CmdLine.h>
#include ... | 30.082192 | 137 | 0.608834 | [
"shape"
] |
9b956fb069a422bb88c8a4f2c6bbb0139e8fe8bd | 2,125 | cpp | C++ | firmware/color-pickers.cpp | xntricweb/spark-lightshow | 0e2941ab79617765b3f1c3fb9c15183d53dc3b74 | [
"MIT"
] | 1 | 2020-02-02T19:44:48.000Z | 2020-02-02T19:44:48.000Z | firmware/color-pickers.cpp | xntricweb/spark-lightshow | 0e2941ab79617765b3f1c3fb9c15183d53dc3b74 | [
"MIT"
] | null | null | null | firmware/color-pickers.cpp | xntricweb/spark-lightshow | 0e2941ab79617765b3f1c3fb9c15183d53dc3b74 | [
"MIT"
] | null | null | null | // Copyright 2016 Jeremy Calloway
#include "color-pickers.h"
/* SOLID COLOR PICKER */
void SolidColorPicker::select(uint16_t index, uint16_t length, uint8_t *r, uint8_t *g, uint8_t *b) {
*r = red;
*g = green;
*b = blue;
}
void SolidColorPicker::setColor(uint8_t r, uint8_t g, uint8_t b) {
red = r;
... | 22.849462 | 105 | 0.518588 | [
"solid"
] |
9b98dce70b5dbd340c548dbd63beb3d35b21062e | 1,045 | hpp | C++ | include/field.hpp | akitsu-sanae/turtle | 356834d4b17b8786704f5731f1aacaeb0cdc7bf0 | [
"BSL-1.0"
] | null | null | null | include/field.hpp | akitsu-sanae/turtle | 356834d4b17b8786704f5731f1aacaeb0cdc7bf0 | [
"BSL-1.0"
] | null | null | null | include/field.hpp | akitsu-sanae/turtle | 356834d4b17b8786704f5731f1aacaeb0cdc7bf0 | [
"BSL-1.0"
] | null | null | null | /*============================================================================
Copyright (C) 2016 akitsu sanae
https://github.com/akitsu-sanae/turtle
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
=======================... | 25.487805 | 78 | 0.600957 | [
"vector"
] |
9b9e0f0fd248c74a790aaf5aaa8a1d0b1fa7fd5a | 3,077 | cpp | C++ | Source/Tests/Scene/AnimatedModel.cpp | ssinai1/rbfx | e69a7093d153667e3d8dd3270449d3d594c1c1a8 | [
"MIT"
] | null | null | null | Source/Tests/Scene/AnimatedModel.cpp | ssinai1/rbfx | e69a7093d153667e3d8dd3270449d3d594c1c1a8 | [
"MIT"
] | null | null | null | Source/Tests/Scene/AnimatedModel.cpp | ssinai1/rbfx | e69a7093d153667e3d8dd3270449d3d594c1c1a8 | [
"MIT"
] | null | null | null | //
// Copyright (c) 2017-2021 the rbfx project.
//
// 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, mer... | 42.736111 | 87 | 0.739032 | [
"model"
] |
9ba92dc35733d562eb39f2a21ad1edba59b7d1b8 | 3,258 | cpp | C++ | text/findtextmanager.cpp | Mytherin/Panther | 1eac47074aa33ba747140950f373c9b7dd7f3d67 | [
"Apache-2.0"
] | 5 | 2018-01-25T14:43:20.000Z | 2021-02-28T11:37:55.000Z | text/findtextmanager.cpp | Mytherin/Panther | 1eac47074aa33ba747140950f373c9b7dd7f3d67 | [
"Apache-2.0"
] | null | null | null | text/findtextmanager.cpp | Mytherin/Panther | 1eac47074aa33ba747140950f373c9b7dd7f3d67 | [
"Apache-2.0"
] | 3 | 2018-01-28T13:22:49.000Z | 2020-09-23T02:55:04.000Z |
#include "findtextmanager.h"
FindTextManager::FindTextManager() :
regex(false), matchcase(false), wholeword(false), wrap(true), highlight(true),
ignore_binary_files(true), respect_gitignore(false) {
}
void FindTextManager::LoadWorkspace(nlohmann::json& j) {
if (j.count("find_text") > 0) {
nlohmann::json& setti... | 38.785714 | 102 | 0.697974 | [
"object"
] |
9bae5e481c0bd02d4ee8d10cdacbb8b18dc01e24 | 3,162 | hpp | C++ | extension_utils/capi_manager.hpp | Segu-g/PyCppExtension | be0ada090dc983a6335f326f1dded1d267449fb7 | [
"MIT"
] | null | null | null | extension_utils/capi_manager.hpp | Segu-g/PyCppExtension | be0ada090dc983a6335f326f1dded1d267449fb7 | [
"MIT"
] | null | null | null | extension_utils/capi_manager.hpp | Segu-g/PyCppExtension | be0ada090dc983a6335f326f1dded1d267449fb7 | [
"MIT"
] | null | null | null | #pragma once
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <string>
#include <tuple>
#include "error_wrapper.hpp"
namespace utils{
template<typename APITypeTuple, typename TypeEnum>
class CAPIManager{
public:
std::string get_capsule_name();
CAPIManager(std::string name);
... | 31.62 | 117 | 0.576218 | [
"object"
] |
9bb33c42735ae44edaed9a36cc2ecf5e17c3ee5a | 9,012 | cpp | C++ | 3_async/AsyncSerial.cpp | anton-matosov/SerialPort | b1e28d4f5d0d2422585730d11ee62f11188b6f2a | [
"ADSL"
] | 14 | 2015-02-01T09:37:16.000Z | 2021-11-24T08:40:02.000Z | 3_async/AsyncSerial.cpp | anton-matosov/SerialPort | b1e28d4f5d0d2422585730d11ee62f11188b6f2a | [
"ADSL"
] | null | null | null | 3_async/AsyncSerial.cpp | anton-matosov/SerialPort | b1e28d4f5d0d2422585730d11ee62f11188b6f2a | [
"ADSL"
] | 5 | 2016-06-15T05:35:20.000Z | 2021-07-14T08:43:53.000Z | /*
* File: AsyncSerial.cpp
* Author: Terraneo Federico
* Distributed under the Boost Software License, Version 1.0.
* Created on September 7, 2009, 10:46 AM
*
* v1.02: Fixed a bug in BufferedAsyncSerial: Using the default constructor
* the callback was not set up and reading didn't work.
*
* v1.01: Fixed a b... | 28.700637 | 94 | 0.657235 | [
"object",
"vector"
] |
9bbd0925616b9242920779a4f71388f503f8d47b | 9,868 | cpp | C++ | platforms/common/cpp/font/BezierUtils.cpp | advancedwebdeveloper/flow9 | 26e19216495bcb948d00aaea6b5c190e30fc6e3f | [
"MIT"
] | 583 | 2019-04-26T11:52:35.000Z | 2022-02-22T17:53:19.000Z | platforms/common/cpp/font/BezierUtils.cpp | advancedwebdeveloper/flow9 | 26e19216495bcb948d00aaea6b5c190e30fc6e3f | [
"MIT"
] | 279 | 2019-04-26T11:53:17.000Z | 2022-02-21T13:35:08.000Z | platforms/common/cpp/font/BezierUtils.cpp | advancedwebdeveloper/flow9 | 26e19216495bcb948d00aaea6b5c190e30fc6e3f | [
"MIT"
] | 44 | 2019-04-29T18:09:19.000Z | 2021-12-23T16:06:05.000Z | //
// BezierUtils.as - A small collection of static utilities for use with single-segment Bezier curves, or more generally
// any curve implementing the IParametric interface
//
// copyright (c) 2006-2008, Jim Armstrong. All Rights Reserved.
//
// This software program is supplied 'as is' without any warranty, express... | 28.853801 | 119 | 0.585428 | [
"vector"
] |
9bc28477ba2aa7e86c6d25b3bb74bda79068e4d0 | 4,629 | cpp | C++ | leetcode/weekly/167.cpp | bvbasavaraju/competitive_programming | a82ffc1b639588a84f4273b44285d57cdc2f4b11 | [
"Apache-2.0"
] | 1 | 2020-05-05T13:06:51.000Z | 2020-05-05T13:06:51.000Z | leetcode/weekly/167.cpp | bvbasavaraju/competitive_programming | a82ffc1b639588a84f4273b44285d57cdc2f4b11 | [
"Apache-2.0"
] | null | null | null | leetcode/weekly/167.cpp | bvbasavaraju/competitive_programming | a82ffc1b639588a84f4273b44285d57cdc2f4b11 | [
"Apache-2.0"
] | null | null | null | /****************************************************
Date: December 15th, 2019
Successful submissions : 1
Time expiration : 0
Not Solved : 3
Wrong Answer/ Partial result : 1
link: https://leetcode.com/contest/weekly-contest-167
****************************************************/
#include <iostream>
#include <vector... | 20.213974 | 88 | 0.356016 | [
"vector"
] |
9bc3d9306b82c134f4f46fbfec3f5f172484f69e | 44,952 | cpp | C++ | ace/tao/tao/IORManipulation/iorc.cpp | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | 1b0172cdb78757fd17898503aaf6ce03d940ef28 | [
"Apache-1.1"
] | 46 | 2015-12-04T17:12:58.000Z | 2022-03-11T04:30:49.000Z | ace/tao/tao/IORManipulation/iorc.cpp | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | 1b0172cdb78757fd17898503aaf6ce03d940ef28 | [
"Apache-1.1"
] | null | null | null | ace/tao/tao/IORManipulation/iorc.cpp | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | 1b0172cdb78757fd17898503aaf6ce03d940ef28 | [
"Apache-1.1"
] | 23 | 2016-10-24T09:18:14.000Z | 2022-02-25T02:11:35.000Z | // -*- C++ -*-
//
// IORC.cpp,v 1.6 2001/08/21 19:00:27 parsons Exp
// **** Code generated by the The ACE ORB (TAO) IDL Compiler ****
// TAO and the TAO IDL Compiler have been developed by:
// Center for Distributed Object Computing
// Washington University
// St. Louis, MO
// USA
//... | 25.482993 | 178 | 0.64838 | [
"object"
] |
9bc91f6c66ea6d65f5c7305b12e925dc3fef3684 | 39,205 | hpp | C++ | sparse/L2/include/sw/fp32/gen_cscmv.hpp | vmayoral/Vitis_Libraries | 2323dc5036041e18242718287aee4ce66ba071ef | [
"Apache-2.0"
] | 1 | 2021-09-11T01:05:01.000Z | 2021-09-11T01:05:01.000Z | sparse/L2/include/sw/fp32/gen_cscmv.hpp | vmayoral/Vitis_Libraries | 2323dc5036041e18242718287aee4ce66ba071ef | [
"Apache-2.0"
] | null | null | null | sparse/L2/include/sw/fp32/gen_cscmv.hpp | vmayoral/Vitis_Libraries | 2323dc5036041e18242718287aee4ce66ba071ef | [
"Apache-2.0"
] | 1 | 2021-04-28T05:58:38.000Z | 2021-04-28T05:58:38.000Z | /*
* Copyright 2019 Xilinx, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 49.129073 | 119 | 0.612626 | [
"vector"
] |
9be20dc2705be8241f84ad8e4e1b12935ef68021 | 5,828 | cpp | C++ | main.cpp | rajvirsamrai/SmolRenderer | cfd55b7e2c636db9b98ef4cc325eeb4c60cdc3d2 | [
"BSD-2-Clause"
] | null | null | null | main.cpp | rajvirsamrai/SmolRenderer | cfd55b7e2c636db9b98ef4cc325eeb4c60cdc3d2 | [
"BSD-2-Clause"
] | null | null | null | main.cpp | rajvirsamrai/SmolRenderer | cfd55b7e2c636db9b98ef4cc325eeb4c60cdc3d2 | [
"BSD-2-Clause"
] | null | null | null | #include "image.h"
#include "model.h"
#include <algorithm>
#include <cstdlib>
#include <cmath>
#include <iostream>
#include <utility>
extern void line(int x0, int y0, int x1, int y1, Colour &c, Image &i);
extern void wireframe(Model &obj, Colour &c, Image &img);
extern void flat_shade_render(Model &obj, Image &img);
... | 27.361502 | 129 | 0.50652 | [
"geometry",
"render",
"model"
] |
9be3c5846bf44cd52d187d46c1444f6eec4f1aee | 3,343 | cpp | C++ | apps/3dscanx/main.cpp | jaeh/OpenLiDAR | 3d0559c2b153dfb815f9e43732bb4a757c89b39d | [
"BSD-3-Clause"
] | 144 | 2020-03-22T03:24:26.000Z | 2022-03-21T23:09:06.000Z | apps/3dscanx/main.cpp | jaeh/OpenLiDAR | 3d0559c2b153dfb815f9e43732bb4a757c89b39d | [
"BSD-3-Clause"
] | 1 | 2020-07-23T12:04:13.000Z | 2020-07-23T12:04:13.000Z | apps/3dscanx/main.cpp | jaeh/OpenLiDAR | 3d0559c2b153dfb815f9e43732bb4a757c89b39d | [
"BSD-3-Clause"
] | 14 | 2020-03-24T03:36:13.000Z | 2021-12-12T16:09:51.000Z | #include "OpenLiDAR.h"
#include "ada/window.h"
#include "ada/gl/gl.h"
#include "ada/gl/mesh.h"
#include "ada/gl/shader.h"
ada::Mesh rect (float _x, float _y, float _w, float _h) {
float x = _x-1.0f;
float y = _y-1.0f;
float w = _w*2.0f;
float h = _h*2.0f;
ada::Mesh mesh;
mesh.addVertex(glm::v... | 23.377622 | 104 | 0.589889 | [
"mesh",
"render"
] |
9bebf3c1bbfe2a0de398e6310584be217ed37fdd | 23,330 | cpp | C++ | openbr/plugins/stream.cpp | vollingerm/openbr | 3d52092c9ef07ff6767afdbf50011fc476ce1bc9 | [
"Apache-2.0"
] | 2 | 2016-04-12T08:11:30.000Z | 2016-08-10T03:48:31.000Z | openbr/plugins/stream.cpp | vollingerm/openbr | 3d52092c9ef07ff6767afdbf50011fc476ce1bc9 | [
"Apache-2.0"
] | null | null | null | openbr/plugins/stream.cpp | vollingerm/openbr | 3d52092c9ef07ff6767afdbf50011fc476ce1bc9 | [
"Apache-2.0"
] | null | null | null | #include <QReadWriteLock>
#include <QWaitCondition>
#include <QThreadPool>
#include <QSemaphore>
#include <QMap>
#include <opencv/highgui.h>
#include <QtConcurrent>
#include "openbr_internal.h"
#include "openbr/core/common.h"
#include "openbr/core/opencvutils.h"
#include "openbr/core/qtutils.h"
using namespace cv;
n... | 24.925214 | 133 | 0.592242 | [
"transform"
] |
9bf3bdb9a12de0901f79e2be06aeafb158e515f2 | 318,929 | cpp | C++ | src/mdb.cpp | styac/sxmdb | 7787417b68c6f253a0041e2706fea20009f5cdeb | [
"OLDAP-2.8"
] | null | null | null | src/mdb.cpp | styac/sxmdb | 7787417b68c6f253a0041e2706fea20009f5cdeb | [
"OLDAP-2.8"
] | null | null | null | src/mdb.cpp | styac/sxmdb | 7787417b68c6f253a0041e2706fea20009f5cdeb | [
"OLDAP-2.8"
] | null | null | null | /** @file mdb.c
* @brief Lightning memory-mapped database library
*
* A Btree-based database management library modeled loosely on the
* BerkeleyDB API, but much simplified.
*/
/*
* Copyright 2011-2018 Howard Chu, Symas Corp.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or... | 28.549727 | 141 | 0.646909 | [
"object"
] |
9bf7abe15cf65e67c9c0321d5c2ca9b03cbaea7e | 17,239 | cpp | C++ | source/code/providers/MySQL_StoredProcedureRow_AsXML_Class_Provider.cpp | Bhaskers-Blu-Org2/MySQL-Provider | 211f79e98e7f34a13c4fb7c01f3aaaefc0dada63 | [
"MIT"
] | 5 | 2019-07-04T17:07:16.000Z | 2021-04-20T15:59:30.000Z | source/code/providers/MySQL_StoredProcedureRow_AsXML_Class_Provider.cpp | microsoft/MySQL-Provider | 211f79e98e7f34a13c4fb7c01f3aaaefc0dada63 | [
"MIT"
] | 5 | 2016-04-12T23:00:45.000Z | 2019-03-28T23:04:57.000Z | source/code/providers/MySQL_StoredProcedureRow_AsXML_Class_Provider.cpp | microsoft/MySQL-Provider | 211f79e98e7f34a13c4fb7c01f3aaaefc0dada63 | [
"MIT"
] | 6 | 2019-09-18T00:11:36.000Z | 2021-11-10T10:07:03.000Z | /* @migen@ */
/*
* --------------------------------- START OF LICENSE ----------------------------
*
* MySQL cimprov ver. 1.0
*
* Copyright (c) Microsoft Corporation
*
* All rights reserved.
*
* MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software... | 34.478 | 129 | 0.580022 | [
"vector",
"transform"
] |
5003b8c1bd209bc2ad0263f30383603371507206 | 1,086 | cpp | C++ | src/algorithms/implementation/service_lane/service_lane.cpp | kirmani/competitive-programming | c350ca82e0e03c16d2d3b04c90c9a61c5b7bda60 | [
"MIT"
] | null | null | null | src/algorithms/implementation/service_lane/service_lane.cpp | kirmani/competitive-programming | c350ca82e0e03c16d2d3b04c90c9a61c5b7bda60 | [
"MIT"
] | null | null | null | src/algorithms/implementation/service_lane/service_lane.cpp | kirmani/competitive-programming | c350ca82e0e03c16d2d3b04c90c9a61c5b7bda60 | [
"MIT"
] | null | null | null | // service_lane.cpp
// Copyright (C) 2015 Sean Kirmani <sean@kirmani.io>
//
// Distributed under terms of the MIT license.
#include <map>
#include <set>
#include <list>
#include <cmath>
#include <ctime>
#include <deque>
#include <queue>
#include <stack>
#include <string>
#include <bitset>
#include <cstdio>
#include <l... | 19.392857 | 60 | 0.632597 | [
"vector"
] |
5007ddcdd69353649fb51a852b00850acc7e11b3 | 12,649 | cpp | C++ | lib/ST_Anything/Everything.cpp | hansaya/GarageDoorOpener | 946b1431143d4c5b1c9493f951f6d8f09a7e52f5 | [
"MIT"
] | 1 | 2020-12-07T22:32:27.000Z | 2020-12-07T22:32:27.000Z | lib/ST_Anything/Everything.cpp | hansaya/GarageDoorOpener | 946b1431143d4c5b1c9493f951f6d8f09a7e52f5 | [
"MIT"
] | null | null | null | lib/ST_Anything/Everything.cpp | hansaya/GarageDoorOpener | 946b1431143d4c5b1c9493f951f6d8f09a7e52f5 | [
"MIT"
] | null | null | null | //******************************************************************************************
// File: Everything.cpp
// Authors: Dan G Ogorchock & Daniel J Ogorchock (Father and Son)
//
// Summary: st::Everything is a generic class which essentially acts as the main() routine.
// All st::Device type object... | 31.309406 | 186 | 0.661475 | [
"object"
] |
500e74cee42d46db00208a27bb71d2ac417b3a32 | 5,866 | hh | C++ | RAVL2/OS/DataProc/Governor.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | RAVL2/OS/DataProc/Governor.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | RAVL2/OS/DataProc/Governor.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | // This file is part of RAVL, Recognition And Vision Library
// Copyright (C) 2001, University of Surrey
// This code may be redistributed under the terms of the GNU Lesser
// General Public License (LGPL). See the lgpl.licence file for details or
// see http://www.gnu.org/copyleft/lesser.html
// file-header-ends-here... | 25.284483 | 76 | 0.615922 | [
"object"
] |
5027e93f5b815f4cf958d35c680faf15161f06e2 | 823 | cpp | C++ | vision_bridge/src/ros_trainer.cpp | HSRobot/HIROP_ROS-3.0 | 59f97bc139b825247c3e71c3f6f110c4cfda174a | [
"Apache-2.0"
] | null | null | null | vision_bridge/src/ros_trainer.cpp | HSRobot/HIROP_ROS-3.0 | 59f97bc139b825247c3e71c3f6f110c4cfda174a | [
"Apache-2.0"
] | null | null | null | vision_bridge/src/ros_trainer.cpp | HSRobot/HIROP_ROS-3.0 | 59f97bc139b825247c3e71c3f6f110c4cfda174a | [
"Apache-2.0"
] | null | null | null | #include "ros_trainer.h"
TrainService::TrainService(ros::NodeHandle n){
mNodeHandle = n;
mTrainer = new Trainer();
}
int TrainService::start(){
trainServer = mNodeHandle.advertiseService(TRAIN_SERVER_NAME, &TrainService::trainCallback, this);
ROS_INFO("train service start finish");
}
int TrainService... | 22.861111 | 102 | 0.667072 | [
"object"
] |
df25f454ee974d970a9852bf2784d686b64c0abf | 4,487 | cpp | C++ | hands-on/vectorization/NeuNetNaive.cpp | vvolkl/esc19 | 0e9cb64d0789a1d8cc570337978c16c982b9c547 | [
"CC-BY-4.0"
] | null | null | null | hands-on/vectorization/NeuNetNaive.cpp | vvolkl/esc19 | 0e9cb64d0789a1d8cc570337978c16c982b9c547 | [
"CC-BY-4.0"
] | null | null | null | hands-on/vectorization/NeuNetNaive.cpp | vvolkl/esc19 | 0e9cb64d0789a1d8cc570337978c16c982b9c547 | [
"CC-BY-4.0"
] | null | null | null | #include<cmath>
#include<limits>
#include<array>
#include<vector>
#include<random>
// c++ -Ofast -fopenmp -mavx2 -mfma NeuNetNaive.cpp -fopt-info-vec -ftree-loop-if-convert-stores
// --param max-completely-peel-times=1
#include <omp.h>
// #define SCALAR
#include "approx_vexp.h"
template<typename T>
T sigmoid(T ... | 21.572115 | 129 | 0.595275 | [
"vector"
] |
df2cdd7ffa9bb2fa6096d9d1949f30f502147d77 | 1,059 | cpp | C++ | LeetCodeSolutions/LeetCode_0289.cpp | lih627/python-algorithm-templates | a61fd583e33a769b44ab758990625d3381793768 | [
"MIT"
] | 24 | 2020-03-28T06:10:25.000Z | 2021-11-23T05:01:29.000Z | LeetCodeSolutions/LeetCode_0289.cpp | lih627/python-algorithm-templates | a61fd583e33a769b44ab758990625d3381793768 | [
"MIT"
] | null | null | null | LeetCodeSolutions/LeetCode_0289.cpp | lih627/python-algorithm-templates | a61fd583e33a769b44ab758990625d3381793768 | [
"MIT"
] | 8 | 2020-05-18T02:43:16.000Z | 2021-05-24T18:11:38.000Z | class Solution {
public:
void gameOfLife(vector<vector<int>>& board) {
int row = board.size();
if (row == 0) return ;
int col = board[0].size();
for(int i = 0; i < row; ++i)
for(int j = 0; j < col; ++j)
trans(board, i, j, row, col);
for(int i = 0; ... | 29.416667 | 77 | 0.368272 | [
"vector"
] |
df38b07ab1b0b29d6d03ae82ab261fdda5db71a5 | 14,743 | cpp | C++ | OpenSFFeatures/FeatureTracking.cpp | Norman0406/OpenSkeletonFitting | 43a6ba856a629a8b67683605194e90c1a2846300 | [
"DOC"
] | 24 | 2015-04-06T19:00:04.000Z | 2021-01-15T18:16:41.000Z | OpenSFFeatures/FeatureTracking.cpp | solbach/open-skeleton-fitting | 80f53861481eb9998a26993f4a22478e97e3748b | [
"DOC"
] | 5 | 2015-07-08T16:23:36.000Z | 2018-06-23T15:00:20.000Z | OpenSFFeatures/FeatureTracking.cpp | solbach/open-skeleton-fitting | 80f53861481eb9998a26993f4a22478e97e3748b | [
"DOC"
] | 12 | 2015-07-01T14:56:29.000Z | 2021-01-15T18:16:47.000Z | /***********************************************************************
*
* OpenSkeletonFitting
* Skeleton fitting by the use of energy minimization
* Copyright (C) 2012 Norman Link <norman.link@gmx.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Pu... | 30.650728 | 115 | 0.674218 | [
"vector"
] |
df3cd2a47ce8e900a338cdbe8488c9309dee1f78 | 1,089 | hpp | C++ | include/robot/devices/timer_class.hpp | 1069B/TBD_Code | 624162c66e8d24d04657934081074e91f856ce57 | [
"MIT"
] | null | null | null | include/robot/devices/timer_class.hpp | 1069B/TBD_Code | 624162c66e8d24d04657934081074e91f856ce57 | [
"MIT"
] | null | null | null | include/robot/devices/timer_class.hpp | 1069B/TBD_Code | 624162c66e8d24d04657934081074e91f856ce57 | [
"MIT"
] | null | null | null | #include "robot/robot_main.hpp"
#ifndef TIMER_CLASS_H
#define TIMER_CLASS_H
class Timer{
private:
int m_current_time{0};
int m_reset_time{0};
int m_previous_lap_time{0};
std::vector<int> m_average_lap_vector;
int m_action_flag{INT_MAX};
bool m_stopped{false};
int m_stop_time{0};
public:
/* Constuc... | 21.78 | 121 | 0.730946 | [
"vector"
] |
df4cc8344957f886bef649c6e240de5716ea5957 | 2,370 | cpp | C++ | examples/example_collider.cpp | claby2/valiant | d932574fe1f424c444a09ac99ae53fa2c7c4a9ac | [
"MIT"
] | null | null | null | examples/example_collider.cpp | claby2/valiant | d932574fe1f424c444a09ac99ae53fa2c7c4a9ac | [
"MIT"
] | null | null | null | examples/example_collider.cpp | claby2/valiant | d932574fe1f424c444a09ac99ae53fa2c7c4a9ac | [
"MIT"
] | null | null | null | #include "../valiant/valiant.hpp"
class Player : public valiant::Object,
public valiant::Rectangle,
public valiant::Collider {
public:
Player() : move_speed_(300), w_(false), a_(false), s_(false), d_(false) {}
void start() override {
shape.width = 50;
shape.heig... | 23.465347 | 78 | 0.494093 | [
"object",
"shape",
"transform"
] |
df4fdeef8218fd45db80fb95fddb4c2ec17c56cc | 1,059 | hpp | C++ | print.hpp | wincentbalin/DDB | c3aa2d4413fb32d5d9fbeef651041206b6ffd462 | [
"MIT"
] | null | null | null | print.hpp | wincentbalin/DDB | c3aa2d4413fb32d5d9fbeef651041206b6ffd462 | [
"MIT"
] | 11 | 2021-02-11T07:24:22.000Z | 2021-02-11T07:27:55.000Z | print.hpp | wincentbalin/DDB | c3aa2d4413fb32d5d9fbeef651041206b6ffd462 | [
"MIT"
] | null | null | null | /**
* print.hpp
*
* Printing include part of Disc Data Base.
*
* Copyright (c) 2010-2011 Wincent Balin
*
* Based upon ddb.pl, created years before and serving faithfully until today.
*
* Uses SQLite database version 3.
*
* Published under MIT license. See LICENSE file for further information.
*/
#if... | 23.021739 | 82 | 0.668555 | [
"vector"
] |
df5104dd9e5be800f22e1da0198631affcbd34d1 | 32,332 | cpp | C++ | src/steadystateproblem.cpp | kristianmeyerr/AMICI | 15f14c24b781daf5ceb3606d79edbbf57155a043 | [
"CC0-1.0"
] | null | null | null | src/steadystateproblem.cpp | kristianmeyerr/AMICI | 15f14c24b781daf5ceb3606d79edbbf57155a043 | [
"CC0-1.0"
] | null | null | null | src/steadystateproblem.cpp | kristianmeyerr/AMICI | 15f14c24b781daf5ceb3606d79edbbf57155a043 | [
"CC0-1.0"
] | null | null | null | #include "amici/steadystateproblem.h"
#include "amici/backwardproblem.h"
#include "amici/defines.h"
#include "amici/edata.h"
#include "amici/forwardproblem.h"
#include "amici/misc.h"
#include "amici/model.h"
#include "amici/newton_solver.h"
#include "amici/solver.h"
#include "amici/solver_cvodes.h"
#include <cmath>
#i... | 40.26401 | 81 | 0.626438 | [
"object",
"vector",
"model"
] |
df5f0bc30e5be7a01c69f53c7aa86d936e8240ef | 24,235 | cpp | C++ | src/rpcWiFiGeneric.cpp | aeternam-eng/Seeed_Arduino_rpcWiFi | 23fd20f70cc91959d538b3136dd52a09876af37c | [
"MIT"
] | null | null | null | src/rpcWiFiGeneric.cpp | aeternam-eng/Seeed_Arduino_rpcWiFi | 23fd20f70cc91959d538b3136dd52a09876af37c | [
"MIT"
] | null | null | null | src/rpcWiFiGeneric.cpp | aeternam-eng/Seeed_Arduino_rpcWiFi | 23fd20f70cc91959d538b3136dd52a09876af37c | [
"MIT"
] | null | null | null | /*
ESP8266WiFiGeneric.cpp - rpcWiFi library for esp8266
Copyright (c) 2014 Ivan Grokhotkov. All rights reserved.
This file is part of the esp8266 core for Arduino environment.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as publ... | 29.627139 | 592 | 0.622529 | [
"vector"
] |
df5f478717ac2117f2b0a863941e1fb80b02db6e | 803 | cpp | C++ | 2021_Aug/11.cpp | zzz0906/LeetCode | cd0b4a4fd03d0dff585c9ef349984eba1922ece0 | [
"MIT"
] | 17 | 2018-08-23T08:53:56.000Z | 2021-04-17T00:06:13.000Z | 2021_Aug/11.cpp | zzz0906/LeetCode | cd0b4a4fd03d0dff585c9ef349984eba1922ece0 | [
"MIT"
] | null | null | null | 2021_Aug/11.cpp | zzz0906/LeetCode | cd0b4a4fd03d0dff585c9ef349984eba1922ece0 | [
"MIT"
] | null | null | null | class Solution {
public:
bool canReorderDoubled(vector<int>& arr) {
sort(arr.begin(), arr.end());
vector<bool> select(arr.size(),false);
int count = 0;
int req = int(arr.size() / 2);
for (int i=0; i < arr.size(); i++) {
if (select[i])
cont... | 30.884615 | 111 | 0.455791 | [
"vector"
] |
df6194c2bc836f0494fd2e1c5389a40ff711e6ed | 6,666 | cpp | C++ | groupRPG/Map_Test.cpp | CIT-237-TeamRed/groupRPG | a1ba42faaebfcc1f7c8a754c9a8b66bea6798609 | [
"MIT"
] | 2 | 2018-10-23T19:51:46.000Z | 2018-10-27T21:43:35.000Z | groupRPG/Map_Test.cpp | CIT-237-TeamRed/groupRPG | a1ba42faaebfcc1f7c8a754c9a8b66bea6798609 | [
"MIT"
] | null | null | null | groupRPG/Map_Test.cpp | CIT-237-TeamRed/groupRPG | a1ba42faaebfcc1f7c8a754c9a8b66bea6798609 | [
"MIT"
] | null | null | null | // Map Test Program
// by Team Red
// Jericho Keyne
// Daniel Richardson
// Karlos Boehlke
// Samuel Silverman
#include <iostream>
#include <fstream>
#include <string>
#include <algorithm>
#include "Map.h"
#include "Position.h"
#include "Direction.h"
using namespace std;
void printCommands();
bool checkCreatures(Ma... | 31.443396 | 165 | 0.666367 | [
"object",
"transform"
] |
df666754e65c61637172d781f08b91385c126305 | 1,519 | cpp | C++ | class 20 - solve class/F.cpp | pioneerAlpha/CP_Beginner_B4_Amar_iSchool | 271a851cfaf570e9dbde390574c9b0a419299823 | [
"MIT"
] | 4 | 2020-07-10T06:37:52.000Z | 2022-01-03T17:14:21.000Z | Class 18 - solve class 8/E.cpp | pioneerAlpha/CP_Beginner_B1 | fd743b956188e927ac999e108df2f081d4f5fcb2 | [
"Apache-2.0"
] | null | null | null | Class 18 - solve class 8/E.cpp | pioneerAlpha/CP_Beginner_B1 | fd743b956188e927ac999e108df2f081d4f5fcb2 | [
"Apache-2.0"
] | 4 | 2020-11-23T16:58:45.000Z | 2021-01-06T20:20:57.000Z | #include<bits/stdc++.h>
#define ll long long
#define N ((int)1e5 + 5)
#define MOD ((int)1e9 + 7)
#define MAX ((int)1e9 + 7)
#define MAXL ((ll)1e18 + 7)
#define MAXP ((int)1e3 + 7)
#define thr 1e-8
#define pi acos(-1) /// pi = acos ( -1 )
#define fastio ios_base::sync_with_stdio(false),cin.tie(NULL)
using namespace s... | 19.986842 | 64 | 0.425938 | [
"vector"
] |
df70f3bc614b99627feb84037a2ea8807b82895b | 23,396 | cpp | C++ | src/kernel.cpp | GorePradnyesh/OpenCLOn12 | 42cc428ba366a7d9dbafe9512e4344f8ae899a22 | [
"MIT"
] | null | null | null | src/kernel.cpp | GorePradnyesh/OpenCLOn12 | 42cc428ba366a7d9dbafe9512e4344f8ae899a22 | [
"MIT"
] | null | null | null | src/kernel.cpp | GorePradnyesh/OpenCLOn12 | 42cc428ba366a7d9dbafe9512e4344f8ae899a22 | [
"MIT"
] | null | null | null | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "kernel.hpp"
#include "sampler.hpp"
#include "clc_compiler.h"
extern CL_API_ENTRY cl_kernel CL_API_CALL
clCreateKernel(cl_program program_,
const char* kernel_name,
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_0
... | 38.480263 | 147 | 0.614849 | [
"object"
] |
df761bc3f8883cd3bc41f392610b449ec4196955 | 27,233 | cpp | C++ | emulator/src/lib/netlist/nl_setup.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | 1 | 2022-01-15T21:38:38.000Z | 2022-01-15T21:38:38.000Z | emulator/src/lib/netlist/nl_setup.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | emulator/src/lib/netlist/nl_setup.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | // license:GPL-2.0+
// copyright-holders:Couriersud
/*
* nlsetup.c
*
*/
#include "plib/palloc.h"
#include "plib/putil.h"
#include "nl_base.h"
#include "nl_setup.h"
#include "nl_parser.h"
#include "nl_factory.h"
#include "devices/nlid_system.h"
#include "devices/nlid_proxy.h"
#include "analog/nld_twoterm.h"
#include... | 26.388566 | 162 | 0.663166 | [
"vector",
"model"
] |
df7c60fba74024eed14ef5262cf651bd455178c7 | 182,775 | cpp | C++ | src/dome/DomeCoreXeq.cpp | EricKTCheung/dmlite | 7fe31e16fc18e3c3d8b048a3507f7769ef3f8a9d | [
"Apache-2.0"
] | null | null | null | src/dome/DomeCoreXeq.cpp | EricKTCheung/dmlite | 7fe31e16fc18e3c3d8b048a3507f7769ef3f8a9d | [
"Apache-2.0"
] | null | null | null | src/dome/DomeCoreXeq.cpp | EricKTCheung/dmlite | 7fe31e16fc18e3c3d8b048a3507f7769ef3f8a9d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2015 CERN
*
* 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 writ... | 34.708507 | 221 | 0.625923 | [
"object",
"vector"
] |
df80c4014513756c499524a3cb176f8a9839b52e | 1,773 | hh | C++ | graph/display.hh | CN-TU/remy | 0c0887322b0cbf6e3497e3aeb95c979907f03623 | [
"Apache-2.0"
] | 6 | 2020-03-19T04:16:02.000Z | 2022-03-30T15:41:39.000Z | graph/display.hh | CN-TU/remy | 0c0887322b0cbf6e3497e3aeb95c979907f03623 | [
"Apache-2.0"
] | 1 | 2020-05-20T12:05:49.000Z | 2021-11-14T13:39:23.000Z | graph/display.hh | CN-TU/remy | 0c0887322b0cbf6e3497e3aeb95c979907f03623 | [
"Apache-2.0"
] | null | null | null | #ifndef DISPLAY_HH
#define DISPLAY_HH
#include <deque>
#include <string>
#include "gl_objects.hh"
class Display
{
static const std::string shader_source_scale_from_pixel_coordinates;
static const std::string shader_source_passthrough_texture;
static const std::string shader_source_solid_color;
struct Curren... | 29.065574 | 98 | 0.742809 | [
"transform"
] |
df822ac0b9212a3deb13187754dfc75f47a34230 | 10,338 | cpp | C++ | esphome/components/esp32_ble_server/ble_characteristic.cpp | OttoWinter/esphomeyaml | 6a85259e4d6d1b0a0f819688b8e555efcb99ecb0 | [
"MIT"
] | 249 | 2018-04-07T12:04:11.000Z | 2019-01-25T01:11:34.000Z | esphome/components/esp32_ble_server/ble_characteristic.cpp | OttoWinter/esphomeyaml | 6a85259e4d6d1b0a0f819688b8e555efcb99ecb0 | [
"MIT"
] | 243 | 2018-04-11T16:37:11.000Z | 2019-01-25T16:50:37.000Z | esphome/components/esp32_ble_server/ble_characteristic.cpp | OttoWinter/esphomeyaml | 6a85259e4d6d1b0a0f819688b8e555efcb99ecb0 | [
"MIT"
] | 40 | 2018-04-10T05:50:14.000Z | 2019-01-25T15:20:36.000Z | #include "ble_characteristic.h"
#include "ble_server.h"
#include "ble_service.h"
#include "esphome/core/log.h"
#ifdef USE_ESP32
namespace esphome {
namespace esp32_ble_server {
static const char *const TAG = "esp32_ble_server.characteristic";
BLECharacteristic::BLECharacteristic(const ESPBTUUID uuid, uint32_t prop... | 33.028754 | 120 | 0.674018 | [
"vector"
] |
df9effe51436ede7f9b578c328e4a31fa3ec5464 | 6,113 | cpp | C++ | src/building.cpp | acdzh/elevator_simulation | 3521c89a111e8e72c6eb1821eb7911394e81341a | [
"WTFPL"
] | 10 | 2019-11-07T11:06:56.000Z | 2020-07-03T17:27:45.000Z | src/building.cpp | acdzh/elevator_simulation | 3521c89a111e8e72c6eb1821eb7911394e81341a | [
"WTFPL"
] | null | null | null | src/building.cpp | acdzh/elevator_simulation | 3521c89a111e8e72c6eb1821eb7911394e81341a | [
"WTFPL"
] | 3 | 2021-05-17T12:26:42.000Z | 2021-06-17T11:41:22.000Z | #include "building.h"
#include "ui_building.h"
building::building(QWidget *parent, std::vector<elevator*> _eles, int _FLOOR_NUM, int _ELE_SELECT_MODE) : QWidget(parent), ui(new Ui::building){
ui->setupUi(this);
eles = _eles;
FLOOR_NUM = _FLOOR_NUM;
ELE_NUM = int(eles.size());
ELE_SELECT_MODE = _ELE_SELECT_MODE;
... | 40.483444 | 144 | 0.655325 | [
"vector"
] |
dfa1d793d4012a29235e96a5145bb3541b20466f | 1,395 | cpp | C++ | src/propagation/rungekutta4.cpp | mattstvan/arc | 1e86947ba70bacd718dcbecbe08b5d4242fe8117 | [
"MIT"
] | null | null | null | src/propagation/rungekutta4.cpp | mattstvan/arc | 1e86947ba70bacd718dcbecbe08b5d4242fe8117 | [
"MIT"
] | null | null | null | src/propagation/rungekutta4.cpp | mattstvan/arc | 1e86947ba70bacd718dcbecbe08b5d4242fe8117 | [
"MIT"
] | 1 | 2022-03-31T02:27:33.000Z | 2022-03-31T02:27:33.000Z | #include <rungekutta4.h>
/*
Fourth-order Runge-Kutta methods
*/
// Direct constructor (default settings)
RungeKutta4::RungeKutta4(ICRF initial_state) : NumericalPropagator{ initial_state } {}
// Direct constructor (full settings)
RungeKutta4::RungeKutta4(ICRF initial_state, double step_size, ForceModel force_model) ... | 37.702703 | 152 | 0.71828 | [
"vector"
] |
dfa67db3660dea8037ccf7142765db3ce6c8a935 | 4,628 | cpp | C++ | src/byteBuffer.cpp | Linaname/mtc | 6318a16524a2f898ab553792710261e2dcceadbd | [
"MIT"
] | null | null | null | src/byteBuffer.cpp | Linaname/mtc | 6318a16524a2f898ab553792710261e2dcceadbd | [
"MIT"
] | 1 | 2017-06-09T14:07:48.000Z | 2017-06-09T14:07:48.000Z | src/byteBuffer.cpp | Linaname/mtc | 6318a16524a2f898ab553792710261e2dcceadbd | [
"MIT"
] | 11 | 2017-04-25T15:26:50.000Z | 2022-03-22T12:41:09.000Z | /*
The MIT License (MIT)
Copyright (c) 2000-2016 Андрей Коваленко aka Keva
keva@meta.ua
keva@rambler.ru
skype: big_keva
phone: +7(495)648-4058, +7(916)015-5592
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to... | 34.537313 | 90 | 0.695333 | [
"vector"
] |
dfb463174346998f7ebc2d7a9f5bed9e11bd778b | 1,093 | cpp | C++ | cpp/RestoreIPAddresses.cpp | thinksource/code_interview | 08be992240508b73894eaf6b8c025168fd19df19 | [
"Apache-2.0"
] | 12 | 2015-03-12T03:27:26.000Z | 2021-03-11T09:26:16.000Z | cpp/RestoreIPAddresses.cpp | thinksource/code_interview | 08be992240508b73894eaf6b8c025168fd19df19 | [
"Apache-2.0"
] | null | null | null | cpp/RestoreIPAddresses.cpp | thinksource/code_interview | 08be992240508b73894eaf6b8c025168fd19df19 | [
"Apache-2.0"
] | 11 | 2015-01-28T16:45:40.000Z | 2017-03-28T20:01:38.000Z | class Solution {
public:
bool isValid(string s) {
int n = s.length();
if(n==0 || n>3) {
return false;
}
if(n>1 && s[0]=='0') {
return false;
}
if(stoi(s) <= 255) {
return true;
}
return false;
}
vector<strin... | 26.02381 | 114 | 0.343092 | [
"vector"
] |
dfbbfdeb806316bcbcead3e1fb469a024a076f23 | 1,089 | cpp | C++ | example_algo/bin/algo.cpp | julitopower/SagemakerCpp | 3dec305aa831d2e00aaba318349255b46b503487 | [
"MIT"
] | 1 | 2018-01-03T12:03:06.000Z | 2018-01-03T12:03:06.000Z | example_algo/bin/algo.cpp | julitopower/SagemakerCpp | 3dec305aa831d2e00aaba318349255b46b503487 | [
"MIT"
] | null | null | null | example_algo/bin/algo.cpp | julitopower/SagemakerCpp | 3dec305aa831d2e00aaba318349255b46b503487 | [
"MIT"
] | null | null | null | #include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include "sagemaker/Config.hpp"
#include "sagemaker/file_utils.hpp"
#include "sagemaker/integration.hpp"
int main(int argc, char** argv)
{
// Print a few of the interesting locations in the input
sm::Config config{};
sm::print_file(confi... | 27.225 | 67 | 0.706152 | [
"vector",
"model"
] |
dfc36158b05b4d85febc63f983c6d1e6eceba792 | 2,693 | cpp | C++ | Sesion15/CaracteresMultiples(clases).cpp | dcabezas98/FP | af9d418e934a99f425e232f31c71c5904e972215 | [
"MIT"
] | null | null | null | Sesion15/CaracteresMultiples(clases).cpp | dcabezas98/FP | af9d418e934a99f425e232f31c71c5904e972215 | [
"MIT"
] | null | null | null | Sesion15/CaracteresMultiples(clases).cpp | dcabezas98/FP | af9d418e934a99f425e232f31c71c5904e972215 | [
"MIT"
] | null | null | null | /* Programa que lee y almacena texto en objetos del tipo
SecuenciaCaracteres, cuenta con clases específicas para operaciones
de E/S. */
#include<iostream>
using namespace std;
const int TAMANIO = 1000;
class SecuenciaCaracteres {
private:
char vector[TAMANIO];
int utilizados;
public:
SecuenciaCaracte... | 16.623457 | 87 | 0.632009 | [
"vector"
] |
dfc5a6ce8cc98d0128bafc8f29d7566f90e6d200 | 662 | hpp | C++ | src/ivorium_core/Basics/multiline_ostream.hpp | ivorne/ivorium | 1d876b6dcabe29b3110d3058f997e59c40cd6a2b | [
"Apache-2.0"
] | 3 | 2021-02-26T02:59:09.000Z | 2022-02-08T16:44:21.000Z | src/ivorium_core/Basics/multiline_ostream.hpp | ivorne/ivorium | 1d876b6dcabe29b3110d3058f997e59c40cd6a2b | [
"Apache-2.0"
] | null | null | null | src/ivorium_core/Basics/multiline_ostream.hpp | ivorne/ivorium | 1d876b6dcabe29b3110d3058f997e59c40cd6a2b | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <iostream>
#include <vector>
namespace iv
{
class multiline_ostream_streambuf : public std::streambuf
{
public:
multiline_ostream_streambuf( std::ostream * out );
virtual std::streambuf::int_type overflow( std::streambuf::int_type value ) override;
void multiline_begin();
v... | 17.891892 | 89 | 0.672205 | [
"vector"
] |
dfc62d0af326b39e6033bb33bdc7b566f7dce8fb | 4,364 | cc | C++ | content/shell/test_runner/pixel_dump.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | content/shell/test_runner/pixel_dump.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | content/shell/test_runner/pixel_dump.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/shell/test_runner/pixel_dump.h"
#include <memory>
#include <utility>
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "b... | 37.947826 | 96 | 0.732585 | [
"geometry"
] |
dfcfdcb2a20360b11e4dab7afa5859c9fefa7c62 | 1,990 | hh | C++ | lib/utilities.hh | losalamos/NuT | 5c6e03c45a380ae24ea9ee8bc2e68c3748ddd4e0 | [
"BSD-3-Clause"
] | 4 | 2015-01-01T13:47:53.000Z | 2016-03-31T01:56:43.000Z | lib/utilities.hh | losalamos/NuT | 5c6e03c45a380ae24ea9ee8bc2e68c3748ddd4e0 | [
"BSD-3-Clause"
] | 1 | 2019-05-08T16:21:43.000Z | 2019-05-14T17:20:19.000Z | lib/utilities.hh | lanl/NuT | 5c6e03c45a380ae24ea9ee8bc2e68c3748ddd4e0 | [
"BSD-3-Clause"
] | 4 | 2017-06-21T20:26:30.000Z | 2020-03-19T07:05:00.000Z | // utilities.hh
// T. M. Kelley
// Jan 24, 2011
// (c) Copyright 2011 LANSLLC, all rights reserved
#ifndef UTILITIES_HH
#define UTILITIES_HH
#include "Assert.hh"
#include "types.hh"
#include <algorithm>
#include <cmath>
#include <numeric>
/**!\file Useful operators. */
namespace nut {
template <typename fp_t>
struc... | 21.170213 | 79 | 0.654774 | [
"vector",
"transform"
] |
2546c7277976e4080ec736b5fad9e88eb846f2fb | 2,468 | cpp | C++ | src/iterator.cpp | mtth/pal | 4326a6d726981e235a16cc7673916c93348ab3e9 | [
"MIT"
] | 1 | 2015-11-16T19:32:08.000Z | 2015-11-16T19:32:08.000Z | src/iterator.cpp | mtth/pal | 4326a6d726981e235a16cc7673916c93348ab3e9 | [
"MIT"
] | null | null | null | src/iterator.cpp | mtth/pal | 4326a6d726981e235a16cc7673916c93348ab3e9 | [
"MIT"
] | null | null | null | #include "iterator.h"
#include "store.h"
namespace pal {
class IteratorWorker : public Nan::AsyncWorker {
public:
IteratorWorker(Nan::Callback *callback, pal_iterator_t *iterator) : AsyncWorker(callback) {
_iterator = iterator;
}
~IteratorWorker() {}
void Execute() {
_nonEmpty = pal_iterator_next(_i... | 25.183673 | 93 | 0.660454 | [
"object"
] |
25475111cf8cdb53aeb86aaf30a38693be6a0e5a | 26,033 | cpp | C++ | src/library/tactic/simplifier/simp_lemmas.cpp | soonhokong/lean-windows | 06dff344c8e0e3876b56294c8443a3b17c26dd48 | [
"Apache-2.0"
] | null | null | null | src/library/tactic/simplifier/simp_lemmas.cpp | soonhokong/lean-windows | 06dff344c8e0e3876b56294c8443a3b17c26dd48 | [
"Apache-2.0"
] | null | null | null | src/library/tactic/simplifier/simp_lemmas.cpp | soonhokong/lean-windows | 06dff344c8e0e3876b56294c8443a3b17c26dd48 | [
"Apache-2.0"
] | 1 | 2018-09-22T14:28:09.000Z | 2018-09-22T14:28:09.000Z | /*
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include <vector>
#include <string>
#include <library/constants.h>
#include "util/priority_queue.h"
#include "util/sstream.h"
#include "util/flet.h"
#includ... | 37.94898 | 129 | 0.619483 | [
"vector"
] |
2550d1e38413da7bad6985e75403bbec0f727bfa | 3,290 | cpp | C++ | Competitive Programming/System Design/Iterator for Combination.cpp | shreejitverma/GeeksforGeeks | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 2 | 2022-02-18T05:14:28.000Z | 2022-03-08T07:00:08.000Z | Competitive Programming/System Design/Iterator for Combination.cpp | shivaniverma1/Competitive-Programming-1 | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 6 | 2022-01-13T04:31:04.000Z | 2022-03-12T01:06:16.000Z | Competitive Programming/System Design/Iterator for Combination.cpp | shivaniverma1/Competitive-Programming-1 | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 2 | 2022-02-14T19:53:53.000Z | 2022-02-18T05:14:30.000Z | /*
https://leetcode.com/problems/iterator-for-combination/
1286. Iterator for Combination
Medium
688
53
Add to List
Share
Design the CombinationIterator class:
CombinationIterator(string characters, int combinationLength) Initializes the object with a string characters of sorted distinct lowercase English letters ... | 24.924242 | 199 | 0.622188 | [
"object",
"vector"
] |
255b07960332aad2c48a540652346ac78f039bcd | 1,157 | hpp | C++ | src/sampler.hpp | rvaser/rampler | 4f2d91e4f3ce5ef61d14b319040a7d24f116aedd | [
"MIT"
] | 1 | 2019-08-22T03:54:54.000Z | 2019-08-22T03:54:54.000Z | src/sampler.hpp | rvaser/rampler | 4f2d91e4f3ce5ef61d14b319040a7d24f116aedd | [
"MIT"
] | 4 | 2018-06-09T13:28:50.000Z | 2021-01-19T10:48:07.000Z | src/sampler.hpp | rvaser/rampler | 4f2d91e4f3ce5ef61d14b319040a7d24f116aedd | [
"MIT"
] | 4 | 2020-07-30T03:40:18.000Z | 2021-07-11T14:18:55.000Z | // Copyright (c) 2021 Robert Vaser
#ifndef RAMPLER_SAMPLER_HPP_
#define RAMPLER_SAMPLER_HPP_
#include <cstdint>
#include <memory>
#include <string>
#include <vector>
#include "bioparser/parser.hpp"
#include "biosoup/sequence.hpp"
namespace rampler {
class Sampler;
std::unique_ptr<Sampler> createSampler(const std::... | 21.830189 | 74 | 0.719101 | [
"vector"
] |
255cbdac1ed9af5f5e0e700923fe31b82451445b | 918 | cc | C++ | uva/chapter_5/377.cc | metaflow/contests | 5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2 | [
"MIT"
] | 1 | 2019-05-12T23:41:00.000Z | 2019-05-12T23:41:00.000Z | uva/chapter_5/377.cc | metaflow/contests | 5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2 | [
"MIT"
] | null | null | null | uva/chapter_5/377.cc | metaflow/contests | 5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
using vi = vector<int>;
using ii = pair<int,int>;
using ll = long long;
using llu = unsigned long long;
const int INF = numeric_limits<int>::max();
int get_number() {
string s;
cin >> s;
int i = 0;
for (auto c : s) {
i *= 4;
switch (c) {
case 'V': i +... | 18.36 | 43 | 0.473856 | [
"vector"
] |
25627215e05a826d6f6d3c8b4fa131f984b05722 | 25,730 | cc | C++ | tools/vgm2rsf/vgm2rsf.cc | mehmetcanbudak/garvuino | a962c16ffb9ab23ec0f55cd25cc02412c3bdf262 | [
"Unlicense"
] | 14 | 2018-01-04T17:20:52.000Z | 2021-06-25T00:04:25.000Z | tools/vgm2rsf/vgm2rsf.cc | mehmetcanbudak/garvuino | a962c16ffb9ab23ec0f55cd25cc02412c3bdf262 | [
"Unlicense"
] | 4 | 2019-03-18T22:18:33.000Z | 2019-04-12T19:42:01.000Z | tools/vgm2rsf/vgm2rsf.cc | mehmetcanbudak/garvuino | a962c16ffb9ab23ec0f55cd25cc02412c3bdf262 | [
"Unlicense"
] | 3 | 2019-03-18T20:28:07.000Z | 2021-02-01T12:32:30.000Z | // Copyright Jean Pierre Cimalando 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <zlib.h>
#include <getopt.h>
#include <vector>
#include <string>
#include <memory>
#include <cmath>
... | 35.489655 | 180 | 0.558531 | [
"vector"
] |
256fa559b24ed1b5afbc2545148d67731273f0e4 | 14,316 | cpp | C++ | cpp/G3M/EllipsoidShape.cpp | glob3mobile/g3m | 2b2c6422f05d13e0855b1dbe4e0afed241184193 | [
"BSD-2-Clause"
] | 70 | 2015-02-06T14:39:14.000Z | 2022-01-07T08:32:48.000Z | cpp/G3M/EllipsoidShape.cpp | glob3mobile/g3m | 2b2c6422f05d13e0855b1dbe4e0afed241184193 | [
"BSD-2-Clause"
] | 118 | 2015-01-21T10:18:00.000Z | 2018-10-16T15:00:57.000Z | cpp/G3M/EllipsoidShape.cpp | glob3mobile/g3m | 2b2c6422f05d13e0855b1dbe4e0afed241184193 | [
"BSD-2-Clause"
] | 41 | 2015-01-10T22:29:27.000Z | 2021-06-08T11:56:16.000Z | //
// EllipsoidShape.cpp
// G3M
//
// Created by Agustin Trujillo Pino on 02/13/13.
//
//
#include "EllipsoidShape.hpp"
#include "ShortBufferBuilder.hpp"
#include "IndexedMesh.hpp"
#include "GLConstants.hpp"
#include "CompositeMesh.hpp"
#include "Color.hpp"
#include "FloatBufferBuilderFromGeodetic.hpp"
#include "F... | 32.684932 | 128 | 0.55176 | [
"mesh",
"vector"
] |
25727e7c2985b2a75b34d295b2d0a83295162fac | 26,621 | cpp | C++ | Projects/Lab7-math-tutor/math-tutor-main.cpp | jesushilarioh/DelMarCSi.cpp | 6dd7905daea510452691fd25b0e3b0d2da0b06aa | [
"MIT"
] | 3 | 2019-02-02T16:59:48.000Z | 2019-02-28T14:50:08.000Z | Projects/Lab7-math-tutor/math-tutor-main.cpp | jesushilariohernandez/DelMarCSi.cpp | 6dd7905daea510452691fd25b0e3b0d2da0b06aa | [
"MIT"
] | null | null | null | Projects/Lab7-math-tutor/math-tutor-main.cpp | jesushilariohernandez/DelMarCSi.cpp | 6dd7905daea510452691fd25b0e3b0d2da0b06aa | [
"MIT"
] | 4 | 2020-04-10T17:22:17.000Z | 2021-11-04T14:34:00.000Z | //******************************************************************
//
// JESUS HILARIO HERNANDEZ
// Course: COSC 1436.001 Programming Fundamentals 1
// Lab # 7 Math Tutor
// Due Date: November 6, 2016
// Instructor: Korinne Caruso
//
// PURPOSE: This program functions as a math tutor to students in
// the elementary ... | 30.354618 | 95 | 0.4815 | [
"object"
] |
25775443053cf480dc30b2ae4511eeea52abfcb2 | 8,396 | cpp | C++ | tests/parse-ranges-request-tests.cpp | amazing-hash/onyx-up | 2b55cb3cbcd89d66dfface81efc26b8edcf2ce60 | [
"MIT"
] | null | null | null | tests/parse-ranges-request-tests.cpp | amazing-hash/onyx-up | 2b55cb3cbcd89d66dfface81efc26b8edcf2ce60 | [
"MIT"
] | null | null | null | tests/parse-ranges-request-tests.cpp | amazing-hash/onyx-up | 2b55cb3cbcd89d66dfface81efc26b8edcf2ce60 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <vector>
#include <iostream>
#include "../sources/server/utils.h"
class ParseRangesRequestTests : public ::testing::Test {
public:
ParseRangesRequestTests() {
}
~ParseRangesRequestTests() {
}
void SetUp() {
}
void TearDown() {
}
};
TEST_F(Parse... | 33.584 | 104 | 0.653645 | [
"vector"
] |
258b6a0b00cab434bc5df4fda8a0f6fe9b0553ed | 1,357 | cpp | C++ | solutions/560. Subarray Sum Equals K.cpp | xkunwu/leetcode-collection | 7c5dab83c1cf00aa8ce5e3d2b24de3d2cf0f9869 | [
"MIT"
] | null | null | null | solutions/560. Subarray Sum Equals K.cpp | xkunwu/leetcode-collection | 7c5dab83c1cf00aa8ce5e3d2b24de3d2cf0f9869 | [
"MIT"
] | null | null | null | solutions/560. Subarray Sum Equals K.cpp | xkunwu/leetcode-collection | 7c5dab83c1cf00aa8ce5e3d2b24de3d2cf0f9869 | [
"MIT"
] | null | null | null | /** 560. Subarray Sum Equals K
https://leetcode.com/problems/subarray-sum-equals-k/
Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k.
*/
class Solution {
public:
int subarraySum(vector<int>& nums, int k) {
std::map<int, i... | 30.840909 | 127 | 0.460575 | [
"vector"
] |
259135e2e899504a964eaa313d66164a9e908e96 | 184 | hh | C++ | defolib/mesh-geometry.hh | hanwen/artisjokke | 608d76c5fad74ee4214162044c7ea3b781571e44 | [
"MIT"
] | 5 | 2015-06-06T02:25:02.000Z | 2021-06-18T09:49:56.000Z | defolib/mesh-geometry.hh | hanwen/artisjokke | 608d76c5fad74ee4214162044c7ea3b781571e44 | [
"MIT"
] | null | null | null | defolib/mesh-geometry.hh | hanwen/artisjokke | 608d76c5fad74ee4214162044c7ea3b781571e44 | [
"MIT"
] | 2 | 2015-06-05T12:44:25.000Z | 2015-10-28T09:27:59.000Z | #ifndef MESH_GEOMETRY_HH
#define MESH_GEOMETRY_HH
#include "array.hh"
#include "mesh-connectivity.hh"
Array<Real> lumped_volumes (Mesh_connectivity*fem, Deformation_state*);
#endif
| 18.4 | 71 | 0.804348 | [
"mesh"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.