hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
acc5899e2c95db984a27d65911eeac7134921880 | 808 | cpp | C++ | tests/direct_Z3.cpp | finnhaedicke/metaSMT | 949245da0bf0f3c042cb589aaea5d015e2ed9e9a | [
"MIT"
] | 33 | 2015-04-09T14:14:25.000Z | 2022-03-27T08:55:58.000Z | tests/direct_Z3.cpp | finnhaedicke/metaSMT | 949245da0bf0f3c042cb589aaea5d015e2ed9e9a | [
"MIT"
] | 28 | 2015-03-13T14:21:33.000Z | 2019-04-02T07:59:34.000Z | tests/direct_Z3.cpp | finnhaedicke/metaSMT | 949245da0bf0f3c042cb589aaea5d015e2ed9e9a | [
"MIT"
] | 9 | 2015-04-22T18:10:51.000Z | 2021-08-06T12:44:12.000Z | #define BOOST_TEST_MODULE direct_Z3
#include <metaSMT/DirectSolver_Context.hpp>
#include <metaSMT/backend/Z3_Backend.hpp>
#include <metaSMT/API/Comment.hpp>
#include <metaSMT/API/SymbolTable.hpp>
#include <metaSMT/API/Group.hpp>
using namespace metaSMT::solver;
using namespace metaSMT;
struct Solver_Fixture {
typede... | 27.862069 | 92 | 0.787129 | finnhaedicke |
acc69c9db7b1a263444b3ae7e66691765abff5f0 | 1,519 | cpp | C++ | codeforces/C - Vladik and Memorable Trip/Wrong answer on test 29 (3).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/C - Vladik and Memorable Trip/Wrong answer on test 29 (3).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/C - Vladik and Memorable Trip/Wrong answer on test 29 (3).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Jan/15/2018 21:53
* solution_verdict: Wrong answer on test 29 language: GNU C++14
* run... | 31.645833 | 111 | 0.366689 | kzvd4729 |
acc8f060c7d4f3384ccd212e39f12feab0e0dfb7 | 1,298 | cpp | C++ | test/my_stress_test/topological_sort.test.cpp | atree-GitHub/competitive-library | 606b444036530b698a6363b1a41cdaa90a7f9578 | [
"CC0-1.0"
] | 1 | 2022-01-25T23:03:10.000Z | 2022-01-25T23:03:10.000Z | test/my_stress_test/topological_sort.test.cpp | atree4728/competitive-library | 1aaa4d2cf9283b9a1a3d4c7f114ff7b867ca2f8b | [
"CC0-1.0"
] | 6 | 2021-10-06T01:17:04.000Z | 2022-01-16T14:45:47.000Z | test/my_stress_test/topological_sort.test.cpp | atree-GitHub/competitive-library | 606b444036530b698a6363b1a41cdaa90a7f9578 | [
"CC0-1.0"
] | null | null | null | #define PROBLEM "https://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_1_A"
#include <algorithm>
#include <cassert>
#include <iostream>
#include <numeric>
#include <random>
#include "lib/graph/topological_sort.hpp"
using namespace std;
random_device seed_gen;
mt19937_64 rnd(seed_gen());
int rand() { return ... | 27.617021 | 84 | 0.548536 | atree-GitHub |
accb6cfdd522312fc4587578bb52b8cfaaf68860 | 313 | hpp | C++ | library/include/reduction/reduction.hpp | Grayson/reduction | ab35bd3dd74e58180e6bf6e126d202cf57169010 | [
"BSD-2-Clause"
] | null | null | null | library/include/reduction/reduction.hpp | Grayson/reduction | ab35bd3dd74e58180e6bf6e126d202cf57169010 | [
"BSD-2-Clause"
] | null | null | null | library/include/reduction/reduction.hpp | Grayson/reduction | ab35bd3dd74e58180e6bf6e126d202cf57169010 | [
"BSD-2-Clause"
] | null | null | null | #include <string>
#include <vector>
#include <deduction/datatypes/parse-result.hpp>
#include "bridge.hpp"
namespace reduction {
extern std::string const version;
deduction::parse_result parse_json(std::string const & jsonString);
std::vector<bridge> create_wrappers(deduction::parse_result parsedResults);
}
| 26.083333 | 76 | 0.782748 | Grayson |
accc49848e423f82e730d58a4dc1967346b939a8 | 600 | cpp | C++ | xmd/src/stats/gyration.cpp | vitreusx/xmd | 09f7df4b398f41f0e59abdced25998b53470f0a4 | [
"MIT"
] | 1 | 2021-12-16T02:26:30.000Z | 2021-12-16T02:26:30.000Z | xmd/src/stats/gyration.cpp | vitreusx/xmd | 09f7df4b398f41f0e59abdced25998b53470f0a4 | [
"MIT"
] | null | null | null | xmd/src/stats/gyration.cpp | vitreusx/xmd | 09f7df4b398f41f0e59abdced25998b53470f0a4 | [
"MIT"
] | null | null | null | #include "stats/gyration.h"
namespace xmd {
void compute_gyration_radius::operator()() const {
vec3r center_of_mass = vec3r::Zero();
real total_mass = 0.0;
for (int idx = 0; idx < num_particles; ++idx) {
center_of_mass += mass[idx] * r[idx];
total_mass += mass[idx];
... | 30 | 64 | 0.565 | vitreusx |
acccbae1624cbc63fc8c43b515cef2f305680977 | 8,388 | cpp | C++ | src/servers/task_space_multiple_move_action_server.cpp | psh117/assembly_dual_controllers | 2bbc10d83d4cb795dc145a6943283e2eb482c2e8 | [
"MIT"
] | 1 | 2021-08-03T05:31:01.000Z | 2021-08-03T05:31:01.000Z | src/servers/task_space_multiple_move_action_server.cpp | psh117/assembly_dual_controllers | 2bbc10d83d4cb795dc145a6943283e2eb482c2e8 | [
"MIT"
] | 2 | 2022-02-10T19:34:12.000Z | 2022-02-11T09:02:39.000Z | src/servers/task_space_multiple_move_action_server.cpp | psh117/assembly_dual_controllers | 2bbc10d83d4cb795dc145a6943283e2eb482c2e8 | [
"MIT"
] | null | null | null | #include <assembly_dual_controllers/servers/task_space_multiple_move_action_server.h>
#define EYE(X) Eigen::Matrix<double, X, X>::Identity()
TaskSpaceMultipleMoveActionServer::TaskSpaceMultipleMoveActionServer(std::string name, ros::NodeHandle &nh,
std::map<std::string, std::shared_pt... | 33.15415 | 154 | 0.64485 | psh117 |
acd4aa4ca4e76780edb28760acb0eeb5785bc02e | 813 | cpp | C++ | LeetCodeCPP/372. Super Pow/main.cpp | 18600130137/leetcode | fd2dc72c0b85da50269732f0fcf91326c4787d3a | [
"Apache-2.0"
] | 1 | 2019-03-29T03:33:56.000Z | 2019-03-29T03:33:56.000Z | LeetCodeCPP/372. Super Pow/main.cpp | 18600130137/leetcode | fd2dc72c0b85da50269732f0fcf91326c4787d3a | [
"Apache-2.0"
] | null | null | null | LeetCodeCPP/372. Super Pow/main.cpp | 18600130137/leetcode | fd2dc72c0b85da50269732f0fcf91326c4787d3a | [
"Apache-2.0"
] | null | null | null | //
// main.cpp
// 372. Super Pow
//
// Created by admin on 2019/9/19.
// Copyright © 2019年 liu. All rights reserved.
//
#include <iostream>
#include <vector>
using namespace std;
class Solution {
private:
int base=1337;
int pow(int a,int k){
a=a%base;
int ret=1;
for(int i=0;i<k;i++... | 18.477273 | 57 | 0.521525 | 18600130137 |
acde6a89a545d1d987c1f2f543190b53514306ad | 26,855 | cc | C++ | oracle.cc | intraDAT/VShop2 | 028cde36a0462ffde5d244f40d45a1bca63c3957 | [
"Apache-2.0"
] | null | null | null | oracle.cc | intraDAT/VShop2 | 028cde36a0462ffde5d244f40d45a1bca63c3957 | [
"Apache-2.0"
] | null | null | null | oracle.cc | intraDAT/VShop2 | 028cde36a0462ffde5d244f40d45a1bca63c3957 | [
"Apache-2.0"
] | null | null | null | #include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <ctype.h>
#include <stdio.h>
#include <malloc.h>
#include <time.h>
#include <unistd.h>
#ifndef VSADMIN
#include "cgic.h"
#include "hfct.h"
#include "error.h"
#endif
#include "oracle.h"
#ifdef WIN32
#include <process.h>
#include "win32too... | 25.168697 | 166 | 0.482517 | intraDAT |
ace12355cb4c5c6690d6b3b1d7ff5b230e038084 | 3,284 | cpp | C++ | bindgen/ir/Function.cpp | ekrich/scala-native-bindgen | df13474833c2fe01691e63e57c2cd9d1a623db20 | [
"BSD-3-Clause"
] | 8 | 2018-05-18T19:09:55.000Z | 2018-07-02T14:42:07.000Z | bindgen/ir/Function.cpp | ekrich/scala-native-bindgen | df13474833c2fe01691e63e57c2cd9d1a623db20 | [
"BSD-3-Clause"
] | 111 | 2018-05-24T18:50:22.000Z | 2018-08-22T12:54:42.000Z | bindgen/ir/Function.cpp | ekrich/scala-native-bindgen | df13474833c2fe01691e63e57c2cd9d1a623db20 | [
"BSD-3-Clause"
] | 1 | 2018-06-25T20:00:15.000Z | 2018-06-25T20:00:15.000Z | #include "Function.h"
#include "../Utils.h"
#include "Struct.h"
#include "Union.h"
#include <sstream>
Parameter::Parameter(std::string name, std::shared_ptr<const Type> type)
: TypeAndName(std::move(name), type) {}
Function::Function(const std::string &name,
std::vector<std::shared_ptr<Paramete... | 33.510204 | 80 | 0.605968 | ekrich |
ace321cbc06551b85a66114a6665dcd3471b4333 | 5,412 | hpp | C++ | include/havoqgt/impl/edge_data.hpp | niklas-uhl/havoqgt | 24df89686c8ca52b9f18ac86ba4e94689da2242e | [
"MIT"
] | 23 | 2017-05-15T08:33:00.000Z | 2022-01-22T17:28:03.000Z | include/havoqgt/impl/edge_data.hpp | niklas-uhl/havoqgt | 24df89686c8ca52b9f18ac86ba4e94689da2242e | [
"MIT"
] | 5 | 2020-09-25T15:32:47.000Z | 2021-03-16T15:39:35.000Z | include/havoqgt/impl/edge_data.hpp | niklas-uhl/havoqgt | 24df89686c8ca52b9f18ac86ba4e94689da2242e | [
"MIT"
] | 12 | 2017-02-09T15:30:29.000Z | 2021-12-13T10:19:26.000Z | // Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
// HavoqGT Project Developers. See the top-level LICENSE file for details.
//
// SPDX-License-Identifier: MIT
#ifndef HAVOQGT_MPI_IMPL_EDGE_DATA_HPP_
#define HAVOQGT_MPI_IMPL_EDGE_DATA_HPP_
#include <havoqgt/delegate_partitioned_graph.hpp>
na... | 37.846154 | 95 | 0.705654 | niklas-uhl |
ace3564985be311e78be2035dca989ef3daffa5d | 11,094 | cpp | C++ | src/graphics/maptools/texgen/tiledb.cpp | Terebinth/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 117 | 2015-01-13T14:48:49.000Z | 2022-03-16T01:38:19.000Z | src/graphics/maptools/texgen/tiledb.cpp | darongE/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 4 | 2015-05-01T13:09:53.000Z | 2017-07-22T09:11:06.000Z | src/graphics/maptools/texgen/tiledb.cpp | darongE/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 78 | 2015-01-13T09:27:47.000Z | 2022-03-18T14:39:09.000Z | /*******************************************************************************\
TileDB.cpp
Provides an interface to the tile database written by the tile tool. At
present this is only used by the TexGen tool.
Scott Randolph
Spectrum HoloByte
October 8, 1996
\***************************************************... | 26.2891 | 118 | 0.591401 | Terebinth |
ace48798ce3265e96316a01380ee79e945faccc4 | 28,780 | cc | C++ | metadb/metadb.cc | yux20000304/indexfs | e0b9a742e2fe9b231f06803a5af2e0c596e0d7c6 | [
"BSD-3-Clause"
] | 2 | 2021-05-29T07:27:23.000Z | 2022-02-26T18:16:07.000Z | metadb/metadb.cc | yux20000304/indexfs | e0b9a742e2fe9b231f06803a5af2e0c596e0d7c6 | [
"BSD-3-Clause"
] | null | null | null | metadb/metadb.cc | yux20000304/indexfs | e0b9a742e2fe9b231f06803a5af2e0c596e0d7c6 | [
"BSD-3-Clause"
] | 3 | 2021-01-18T03:42:53.000Z | 2022-01-02T14:50:03.000Z | // Copyright (c) 2014 The IndexFS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifdef RADOS
#include "env/obj_set.h"
using leveldb::ObjEnv;
using leveldb::ObjEnvFactory;
#endif
#inc... | 30.35865 | 90 | 0.679361 | yux20000304 |
ace5dd57acebee263c99e627222362371a576c1b | 21,797 | cpp | C++ | ee512.cpp | ckaraca/queue-algorithm-simulator | bdabf651343bca24d1fedb86ffd9727fb21ae6af | [
"MIT"
] | null | null | null | ee512.cpp | ckaraca/queue-algorithm-simulator | bdabf651343bca24d1fedb86ffd9727fb21ae6af | [
"MIT"
] | null | null | null | ee512.cpp | ckaraca/queue-algorithm-simulator | bdabf651343bca24d1fedb86ffd9727fb21ae6af | [
"MIT"
] | null | null | null | // ee512.cpp : Copyright 2002 - Cem KARACA
//
#include "ee512.h"
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
MSG msg;
HACCEL hAccelTable;
INITCOMMONCONTROLSEX cc;
// Initialize global s... | 26.614164 | 113 | 0.653393 | ckaraca |
acefe4779efe2322456a0e7dcea1bdb8f1078760 | 3,028 | cpp | C++ | src/ActiveBSP/src/actormsg/ActorMessageFactory.cpp | fbaude/activebsp | d867d74e58bde38cc0f816bcb23c6c41a5bb4f81 | [
"BSD-3-Clause"
] | null | null | null | src/ActiveBSP/src/actormsg/ActorMessageFactory.cpp | fbaude/activebsp | d867d74e58bde38cc0f816bcb23c6c41a5bb4f81 | [
"BSD-3-Clause"
] | null | null | null | src/ActiveBSP/src/actormsg/ActorMessageFactory.cpp | fbaude/activebsp | d867d74e58bde38cc0f816bcb23c6c41a5bb4f81 | [
"BSD-3-Clause"
] | null | null | null | #include "actormsg/ActorMessageFactory.h"
#include <iostream>
#include "actormsg/instruction_envelope.h"
#include "actormsg/CreateActorMessage.h"
#include "actormsg/CallActorMessage.h"
#include "actormsg/StopActorMessage.h"
#include "actormsg/StopActorProcessMessage.h"
#include "actormsg/GetFutureDataMessage.h"
#incl... | 32.55914 | 129 | 0.743725 | fbaude |
acfca67ccd3faad7d5441e1f271cc7e0fee5d87d | 3,273 | cpp | C++ | World.cpp | goopey7/goopFramework | c1f039c8e8b2c8d7f07cad9ed4806d371c246d4e | [
"MIT"
] | null | null | null | World.cpp | goopey7/goopFramework | c1f039c8e8b2c8d7f07cad9ed4806d371c246d4e | [
"MIT"
] | null | null | null | World.cpp | goopey7/goopFramework | c1f039c8e8b2c8d7f07cad9ed4806d371c246d4e | [
"MIT"
] | null | null | null | //Copyright Sam Collier 2022
//**************************************************************************************
//Heavily influenced by
//Chapter 3 of SFML Game Development by Artur Moreira, Henrik V. Hansson, and Jan Haller
//*************************************************************************************... | 22.729167 | 97 | 0.603727 | goopey7 |
4a01147693bd6aa11235738687d4046c8d74519b | 14,911 | cpp | C++ | Modules/LibVideo/VideoPart.cpp | alanzw/FGCG | 9819ff9c543cf52bfac16655d1d30417291b5d4c | [
"Apache-2.0"
] | 13 | 2016-10-24T11:39:12.000Z | 2021-04-11T13:24:05.000Z | Modules/LibVideo/VideoPart.cpp | zhangq49/sharerender | 9819ff9c543cf52bfac16655d1d30417291b5d4c | [
"Apache-2.0"
] | 1 | 2016-12-12T01:11:02.000Z | 2016-12-12T01:11:02.000Z | Modules/LibVideo/VideoPart.cpp | zhangq49/sharerender | 9819ff9c543cf52bfac16655d1d30417291b5d4c | [
"Apache-2.0"
] | 4 | 2018-06-05T03:39:06.000Z | 2020-06-06T04:44:20.000Z | #include "Config.h"
#include "Commonwin32.h"
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <map>
#include "RtspConf.h"
#include "RtspContext.h"
#include "Pipeline.h"
#include "Encoder.h"
#include "FilterRGB2YUV.h"
#include "VSource.h"
#include "ChannelManager.h"
#include "EncoderManager.h"
#incl... | 27.715613 | 152 | 0.669237 | alanzw |
4a0781cdb0f5ff86aba1554b7b52f1bef432cbe7 | 45 | hpp | C++ | src/boost_type_traits_is_volatile.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_type_traits_is_volatile.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_type_traits_is_volatile.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/type_traits/is_volatile.hpp>
| 22.5 | 44 | 0.822222 | miathedev |
4a11437123f5049e8548df746456153d51350d63 | 7,423 | cc | C++ | plugins/events/JointEventSource.cc | otamachan/ros-indigo-gazebo7-deb | abc6b40247cdce14d9912096a0ad5135d420ce04 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2017-07-14T19:36:51.000Z | 2020-04-01T06:47:59.000Z | plugins/events/JointEventSource.cc | otamachan/ros-indigo-gazebo7-deb | abc6b40247cdce14d9912096a0ad5135d420ce04 | [
"ECL-2.0",
"Apache-2.0"
] | 20 | 2017-07-20T21:04:49.000Z | 2017-10-19T19:32:38.000Z | plugins/events/JointEventSource.cc | otamachan/ros-indigo-gazebo7-deb | abc6b40247cdce14d9912096a0ad5135d420ce04 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2015-2016 Open Source Robotics Foundation
*
* 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... | 26.510714 | 80 | 0.5227 | otamachan |
4a1c9ff4d1e64ff7640dfac693f12102ff66ed14 | 2,606 | hpp | C++ | include/binapi/errors.hpp | ihsanturk/binapi | 8d5589d84fc0085b1d2739fed29dc901a5e7ad6c | [
"Apache-2.0"
] | 98 | 2020-08-08T13:12:25.000Z | 2022-03-26T14:47:02.000Z | include/binapi/errors.hpp | ihsanturk/binapi | 8d5589d84fc0085b1d2739fed29dc901a5e7ad6c | [
"Apache-2.0"
] | 55 | 2020-08-29T13:00:59.000Z | 2022-02-12T13:05:26.000Z | include/binapi/errors.hpp | ihsanturk/binapi | 8d5589d84fc0085b1d2739fed29dc901a5e7ad6c | [
"Apache-2.0"
] | 48 | 2020-11-05T14:11:58.000Z | 2022-03-27T23:51:18.000Z |
// ----------------------------------------------------------------------------
// Apache License
// Version 2.0, January 2004
// http://www.apache.org/licenses/
//
// This file is part of binapi(https://github.com/niXman/binapi) project.
//
// Co... | 29.280899 | 99 | 0.550269 | ihsanturk |
4a1ce07e2059057824a62d5cf0726202dff0848f | 40,177 | cxx | C++ | MUON/MUONmapping/AliMpDCSNamer.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | null | null | null | MUON/MUONmapping/AliMpDCSNamer.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 2 | 2016-11-25T08:40:56.000Z | 2019-10-11T12:29:29.000Z | MUON/MUONmapping/AliMpDCSNamer.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | null | null | null | /**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors are ... | 28.555082 | 154 | 0.628693 | AllaMaevskaya |
4a223e946c69a9c86ebec7bc698ab08eecee5863 | 2,834 | cpp | C++ | core/model/src/model_membranes_t.cpp | lkeegan/spatial-model-editor | 5dcb06550607b0a734acddd8b719035b68e35307 | [
"MIT"
] | 4 | 2019-07-18T15:05:09.000Z | 2020-03-14T09:50:07.000Z | core/model/src/model_membranes_t.cpp | lkeegan/spatial-model-editor | 5dcb06550607b0a734acddd8b719035b68e35307 | [
"MIT"
] | 328 | 2019-06-30T12:03:01.000Z | 2020-10-05T15:56:35.000Z | core/model/src/model_membranes_t.cpp | lkeegan/spatial-model-editor | 5dcb06550607b0a734acddd8b719035b68e35307 | [
"MIT"
] | 1 | 2019-06-08T22:47:14.000Z | 2019-06-08T22:47:14.000Z | #include "catch_wrapper.hpp"
#include "sme/model_membranes.hpp"
#include <QImage>
using namespace sme;
TEST_CASE("SBML membranes",
"[core/model/membranes][core/model][core][model][membranes]") {
SECTION("ModelMembranes") {
SECTION("No image") {
model::ModelMembranes m;
REQUIRE(m.getIds().i... | 39.361111 | 73 | 0.618207 | lkeegan |
4a28de0b33ad19c26eb6c52af2ab095a80f8d847 | 2,805 | cpp | C++ | src/gui/Utils.cpp | marek-cel/fightersfs | 5511162726861fee17357f39274461250370c224 | [
"MIT"
] | 4 | 2021-01-28T17:39:38.000Z | 2022-02-11T20:13:46.000Z | src/gui/Utils.cpp | marek-cel/fightersfs | 5511162726861fee17357f39274461250370c224 | [
"MIT"
] | null | null | null | src/gui/Utils.cpp | marek-cel/fightersfs | 5511162726861fee17357f39274461250370c224 | [
"MIT"
] | 3 | 2021-02-22T21:22:30.000Z | 2022-01-10T19:32:12.000Z | /****************************************************************************//*
* Copyright (C) 2021 Marek M. Cel
*
* 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, ... | 32.241379 | 82 | 0.535116 | marek-cel |
4a30a7ee66085ecf15308102494dd1365d325a44 | 1,285 | cpp | C++ | Dot++/src/lexer/TokenizerStatesPack.cpp | SenorAgosto/Dot-pp | 21491dc17deb8c287bda93d27bb3d9c58844f3db | [
"BSD-4-Clause"
] | null | null | null | Dot++/src/lexer/TokenizerStatesPack.cpp | SenorAgosto/Dot-pp | 21491dc17deb8c287bda93d27bb3d9c58844f3db | [
"BSD-4-Clause"
] | 1 | 2017-01-15T04:49:51.000Z | 2017-01-15T04:53:08.000Z | Dot++/src/lexer/TokenizerStatesPack.cpp | SenorAgosto/Dot-pp | 21491dc17deb8c287bda93d27bb3d9c58844f3db | [
"BSD-4-Clause"
] | null | null | null | #include <Dot++/lexer/TokenizerStatesPack.hpp>
#include <Dot++/Exceptions.hpp>
#include <Dot++/lexer/TokenizerState.hpp>
namespace dot_pp { namespace lexer {
const TokenizerStateInterface& TokenizerStatesPack::operator[](const TokenizerState state) const
{
// ordered by frequency of use
switc... | 37.794118 | 100 | 0.631128 | SenorAgosto |
4a315a8c163ec35139dfcbcb5bb782d1450167ee | 8,142 | cpp | C++ | asidorov_task_1/func_sim/func_memory/func_memory.cpp | MIPT-ILab/mipt-mips-old-branches | a4e17025999b15d423601cf38a84234c5c037b33 | [
"MIT"
] | 1 | 2018-03-04T21:28:20.000Z | 2018-03-04T21:28:20.000Z | asidorov_task_1/func_sim/func_memory/func_memory.cpp | MIPT-ILab/mipt-mips-old-branches | a4e17025999b15d423601cf38a84234c5c037b33 | [
"MIT"
] | null | null | null | asidorov_task_1/func_sim/func_memory/func_memory.cpp | MIPT-ILab/mipt-mips-old-branches | a4e17025999b15d423601cf38a84234c5c037b33 | [
"MIT"
] | null | null | null | /**
* func_memory.cpp - the module implementing the concept of
* programer-visible memory space accesing via memory address.
* @author Alexander Titov <alexander.igorevich.titov@gmail.com>
* @author Alexey Sidorov <alexey.s.sidorov@gmail.com>
* Copyright 2012 uArchSim iLab project
*/
// Generic C
#include <math.... | 30.380597 | 110 | 0.532916 | MIPT-ILab |
4a31d347a29bc79489137a343e1e96641b71f3cd | 1,589 | cpp | C++ | src/d3d11/d3d11_cuda.cpp | oashnic/dxvk | 78ef4cfd92cb7f448292aaca83091914ab271257 | [
"Zlib"
] | 8,148 | 2017-10-29T10:51:20.000Z | 2022-03-31T12:52:51.000Z | src/d3d11/d3d11_cuda.cpp | oashnic/dxvk | 78ef4cfd92cb7f448292aaca83091914ab271257 | [
"Zlib"
] | 2,270 | 2017-12-04T12:08:13.000Z | 2022-03-31T19:56:41.000Z | src/d3d11/d3d11_cuda.cpp | oashnic/dxvk | 78ef4cfd92cb7f448292aaca83091914ab271257 | [
"Zlib"
] | 732 | 2017-11-28T13:08:15.000Z | 2022-03-31T21:05:59.000Z | #include "d3d11_cuda.h"
namespace dxvk {
CubinShaderWrapper::CubinShaderWrapper(const Rc<dxvk::DxvkDevice>& dxvkDevice, VkCuModuleNVX cuModule, VkCuFunctionNVX cuFunction, VkExtent3D blockDim)
: m_dxvkDevice(dxvkDevice), m_module(cuModule), m_function(cuFunction), m_blockDim(blockDim) { };
CubinShaderWrapper:... | 30.557692 | 153 | 0.708622 | oashnic |
4a3701e4e52d48ce7af0916791d17873ad8f3681 | 1,396 | hpp | C++ | include/X-GS/SceneManager.hpp | iPruch/X-GS | ac43b91735a048216f60c49a9b43d6edd6d5e35e | [
"Zlib"
] | 1 | 2015-01-04T22:17:25.000Z | 2015-01-04T22:17:25.000Z | include/X-GS/SceneManager.hpp | iPruch/X-GS | ac43b91735a048216f60c49a9b43d6edd6d5e35e | [
"Zlib"
] | null | null | null | include/X-GS/SceneManager.hpp | iPruch/X-GS | ac43b91735a048216f60c49a9b43d6edd6d5e35e | [
"Zlib"
] | null | null | null | #ifndef XGS_SCENEMANAGER_HPP
#define XGS_SCENEMANAGER_HPP
#include <SFML/System/NonCopyable.hpp>
#include <SFML/Graphics/RenderWindow.hpp>
#include <SFML/Window/Event.hpp>
#include <X-GS/Time.hpp>
#include <X-GS/Scene.hpp>
#include <X-GS/Entity.hpp>
//#include <X-GS/Scenes/ScenesIdentifiers.hpp>
#include <map>
#inc... | 22.885246 | 68 | 0.670487 | iPruch |
4a3b1cd0a59a840a8602740f222e342bed64a5d2 | 4,528 | cpp | C++ | Development/Source/Renderers/Generic/GNRenderer.cpp | h-haris/Quesa | a438ab824291ce6936a88dfae4fd0482dcba1247 | [
"BSD-3-Clause"
] | 24 | 2019-10-28T07:01:48.000Z | 2022-03-04T16:10:39.000Z | Development/Source/Renderers/Generic/GNRenderer.cpp | h-haris/Quesa | a438ab824291ce6936a88dfae4fd0482dcba1247 | [
"BSD-3-Clause"
] | 8 | 2020-04-22T19:42:45.000Z | 2021-04-30T16:28:32.000Z | Development/Source/Renderers/Generic/GNRenderer.cpp | h-haris/Quesa | a438ab824291ce6936a88dfae4fd0482dcba1247 | [
"BSD-3-Clause"
] | 6 | 2019-09-22T14:44:15.000Z | 2021-04-01T20:04:29.000Z | /* NAME:
GNRenderer.c
DESCRIPTION:
Quesa generic renderer.
COPYRIGHT:
Copyright (c) 1999-2004, Quesa Developers. All rights reserved.
For the current release of Quesa, please see:
<https://github.com/jwwalker/Quesa>
Redistribution and use in sour... | 29.789474 | 80 | 0.541078 | h-haris |
6657e39ca442608118acd560386f9d3636df14b2 | 2,896 | cpp | C++ | src/geometry.cpp | srinivasyadav18/octotiger | 4d93c50fe345a081b7985ecb4cb698d16c121565 | [
"BSL-1.0"
] | 35 | 2016-11-17T22:35:11.000Z | 2022-01-24T19:07:36.000Z | src/geometry.cpp | srinivasyadav18/octotiger | 4d93c50fe345a081b7985ecb4cb698d16c121565 | [
"BSL-1.0"
] | 123 | 2016-11-17T21:29:25.000Z | 2022-03-03T21:40:04.000Z | src/geometry.cpp | srinivasyadav18/octotiger | 4d93c50fe345a081b7985ecb4cb698d16c121565 | [
"BSL-1.0"
] | 10 | 2018-11-28T18:17:42.000Z | 2022-01-25T12:52:37.000Z | // Copyright (c) 2019 AUTHORS
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef GEOMETRY_CPP_
#define GEOMETRY_CPP_
#include "octotiger/geometry.hpp"
#include "octotiger/defs.hpp"
#include <array>
na... | 17.551515 | 114 | 0.559047 | srinivasyadav18 |
667521ae887b43bdf8ca24cd354fa62b0e10ce3c | 2,069 | hpp | C++ | include/nanorange/algorithm/rotate.hpp | nyarlathotep-prog/NanoRange | ae170b7ad3213c40d788e649d2ffc1d774892098 | [
"BSL-1.0"
] | null | null | null | include/nanorange/algorithm/rotate.hpp | nyarlathotep-prog/NanoRange | ae170b7ad3213c40d788e649d2ffc1d774892098 | [
"BSL-1.0"
] | null | null | null | include/nanorange/algorithm/rotate.hpp | nyarlathotep-prog/NanoRange | ae170b7ad3213c40d788e649d2ffc1d774892098 | [
"BSL-1.0"
] | 3 | 2018-08-27T16:57:03.000Z | 2018-09-15T14:54:14.000Z | // nanorange/algorithm/rotate.hpp
//
// Copyright (c) 2018 Tristan Brindle (tcbrindle at gmail dot com)
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef NANORANGE_ALGORITHM_ROTATE_HPP_INCLUDED
#define NANORA... | 24.630952 | 85 | 0.57709 | nyarlathotep-prog |
66763c225c32956b043394176393c0721c80a34d | 4,933 | cpp | C++ | skse64/Hooks_SaveLoad.cpp | Acro748/CBPCSSE | fabd56ce8f8ac10cde17325f0bd61ecc8cbcda20 | [
"MIT"
] | 13 | 2020-06-06T09:08:55.000Z | 2022-01-22T12:21:21.000Z | skse64/Hooks_SaveLoad.cpp | Erstori/SkyrimPriority-Mod | 50a5adeb78766fba25d4f28626621e9df38df4ba | [
"MIT"
] | 1 | 2020-09-08T19:38:55.000Z | 2020-09-08T19:38:55.000Z | skse64/Hooks_SaveLoad.cpp | Erstori/SkyrimPriority-Mod | 50a5adeb78766fba25d4f28626621e9df38df4ba | [
"MIT"
] | 4 | 2020-06-05T12:32:58.000Z | 2022-01-15T00:17:44.000Z | #include "Hooks_SaveLoad.h"
#include "skse64_common/SafeWrite.h"
#include "skse64_common/Utilities.h"
#include "skse64_common/BranchTrampoline.h"
#include "Serialization.h"
#include "GlobalLocks.h"
#include "GameData.h"
#include "GameMenus.h"
#include "PapyrusVM.h"
#include "PluginManager.h"
void BGSSaveLoadManager::S... | 32.886667 | 138 | 0.785931 | Acro748 |
66788d1c5c7cc5bd89a477d0c828481b0f0d9d8c | 1,447 | cc | C++ | src/search_local/index_storage/cache/hb_feature.cc | jdisearch/isearch1 | 272bd4ab0dc82d9e33c8543474b1294569947bb3 | [
"Apache-2.0"
] | 3 | 2021-08-18T09:59:42.000Z | 2021-09-07T03:11:28.000Z | src/search_local/index_storage/cache/hb_feature.cc | jdisearch/isearch1 | 272bd4ab0dc82d9e33c8543474b1294569947bb3 | [
"Apache-2.0"
] | null | null | null | src/search_local/index_storage/cache/hb_feature.cc | jdisearch/isearch1 | 272bd4ab0dc82d9e33c8543474b1294569947bb3 | [
"Apache-2.0"
] | null | null | null | /*
* =====================================================================================
*
* Filename: hb_feature.cc
*
* Description: hotbackup method release.
*
* Version: 1.0
* Created: 09/08/2020 10:02:05 PM
* Revision: none
* Compiler: gcc
*
* Author: ... | 20.671429 | 88 | 0.587422 | jdisearch |
667ecdb4aa83ec5647baf99ef9fa710f9347057a | 2,914 | hpp | C++ | include/libTAU/kademlia/rpc_manager.hpp | Tau-Coin/libTAU | 2e8cace4195faa75b6a75c0ce02496346936bc79 | [
"BSL-1.0",
"BSD-3-Clause"
] | 6 | 2021-08-16T17:27:10.000Z | 2022-01-12T09:18:02.000Z | include/libTAU/kademlia/rpc_manager.hpp | Tau-Coin/libTAU | 2e8cace4195faa75b6a75c0ce02496346936bc79 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | include/libTAU/kademlia/rpc_manager.hpp | Tau-Coin/libTAU | 2e8cace4195faa75b6a75c0ce02496346936bc79 | [
"BSL-1.0",
"BSD-3-Clause"
] | 3 | 2022-01-03T03:06:54.000Z | 2022-03-11T03:15:32.000Z | /*
Copyright (c) 2006-2017, 2019-2020, Arvid Norberg
Copyright (c) 2015, Thomas Yuan
Copyright (c) 2016-2017, Steven Siloti
Copyright (c) 2016, Alden Torres
All rights reserved.
You may use, distribute and modify this code under the terms of the BSD license,
see LICENSE file.
*/
#ifndef RPC_MANAGER_HPP
#define RPC_M... | 22.765625 | 80 | 0.74571 | Tau-Coin |
667ff961092b42586ada40c0221036a46def61ea | 698 | cpp | C++ | src/Astar-3D/list.cpp | dabinkim-LGOM/lsc_planner | 88dcb1de59bac810d1b1fd194fe2b8d24d1860c9 | [
"MIT"
] | 9 | 2021-09-04T15:14:57.000Z | 2022-03-29T04:34:13.000Z | src/Astar-3D/list.cpp | dabinkim-LGOM/lsc_planner | 88dcb1de59bac810d1b1fd194fe2b8d24d1860c9 | [
"MIT"
] | null | null | null | src/Astar-3D/list.cpp | dabinkim-LGOM/lsc_planner | 88dcb1de59bac810d1b1fd194fe2b8d24d1860c9 | [
"MIT"
] | 4 | 2021-09-29T11:32:54.000Z | 2022-03-06T05:24:33.000Z | #include "Astar-3D/list.h"
NodeList::NodeList(void)
{
}
NodeList::~NodeList(void)
{
}
bool NodeList::find(int x, int y)
{
std::list<Node>::iterator iter = List.end();
for(; iter != List.begin(); --iter)
{
if((iter->i == x) && (iter->j == y))
{
return true;
}
}
... | 15.511111 | 56 | 0.465616 | dabinkim-LGOM |
66815ad5cc91d384bcc57fb4e047955f66ad71d5 | 1,070 | hpp | C++ | Sources/Uis/UiPanel.hpp | liuping1997/Acid | 0b28d63d03ead41047d5881f08e3b693a4e6e63f | [
"MIT"
] | null | null | null | Sources/Uis/UiPanel.hpp | liuping1997/Acid | 0b28d63d03ead41047d5881f08e3b693a4e6e63f | [
"MIT"
] | null | null | null | Sources/Uis/UiPanel.hpp | liuping1997/Acid | 0b28d63d03ead41047d5881f08e3b693a4e6e63f | [
"MIT"
] | null | null | null | #pragma once
#include "Guis/Gui.hpp"
#include "Uis/UiObject.hpp"
#include "UiScrollBar.hpp"
namespace acid
{
class ACID_EXPORT UiPanel :
public UiObject
{
public:
enum class Resize
{
None, Left, Top, Right, Bottom
};
explicit UiPanel(UiObject *parent, const UiBound &rectangle = UiBound(Vector2f(0.0f, 0.0f), U... | 23.26087 | 161 | 0.751402 | liuping1997 |
668c04dec1fe1dee72957b89136ea4c585ec9953 | 78,809 | cc | C++ | src/ros/src/security/include/modules/localization/proto/localization.pb.cc | Kurinkitos/Twizy-Security | 38f3ad3d7315f67e8e691dde69b740b00b33d7b4 | [
"MIT"
] | 1 | 2018-05-25T07:20:17.000Z | 2018-05-25T07:20:17.000Z | src/ros/src/security/include/modules/localization/proto/localization.pb.cc | Kurinkitos/Twizy-Security | 38f3ad3d7315f67e8e691dde69b740b00b33d7b4 | [
"MIT"
] | null | null | null | src/ros/src/security/include/modules/localization/proto/localization.pb.cc | Kurinkitos/Twizy-Security | 38f3ad3d7315f67e8e691dde69b740b00b33d7b4 | [
"MIT"
] | null | null | null | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: modules/localization/proto/localization.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "modules/localization/proto/localization.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/st... | 38.275376 | 130 | 0.733381 | Kurinkitos |
668c6105db6299be100652f110badf0c1fe5f560 | 50,411 | cpp | C++ | server/Server/Obj/Obj_Human_Attributes.cpp | viticm/web-pap | 7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca | [
"BSD-3-Clause"
] | 3 | 2018-06-19T21:37:38.000Z | 2021-07-31T21:51:40.000Z | server/Server/Obj/Obj_Human_Attributes.cpp | viticm/web-pap | 7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca | [
"BSD-3-Clause"
] | null | null | null | server/Server/Obj/Obj_Human_Attributes.cpp | viticm/web-pap | 7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca | [
"BSD-3-Clause"
] | 13 | 2015-01-30T17:45:06.000Z | 2022-01-06T02:29:34.000Z | #include "stdafx.h"
///////////////////////////////////////////////////////////////////////////////
// 文件名:Obj_Human_Attributes.cpp
// 功能说明:角色层属性
//
// 修改记录:
//
//
//
///////////////////////////////////////////////////////////////////////////////
#include "Type.h"
#include "GameDefine.h"
#include "GameDefine2.h"
#inclu... | 30.060227 | 118 | 0.583345 | viticm |
668e16ec932688e4ec10b529b7ffc0059c0db6b1 | 706 | hpp | C++ | include/SorghumFactory/LeafSegment.hpp | edisonlee0212/RayMLVQ | d040a068691799bdf82e7a0b394309efabc570d2 | [
"BSD-3-Clause"
] | null | null | null | include/SorghumFactory/LeafSegment.hpp | edisonlee0212/RayMLVQ | d040a068691799bdf82e7a0b394309efabc570d2 | [
"BSD-3-Clause"
] | null | null | null | include/SorghumFactory/LeafSegment.hpp | edisonlee0212/RayMLVQ | d040a068691799bdf82e7a0b394309efabc570d2 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <sorghum_factory_export.h>
using namespace UniEngine;
namespace SorghumFactory {
class SORGHUM_FACTORY_API LeafSegment {
public:
glm::vec3 m_position;
glm::vec3 m_front;
glm::vec3 m_up;
glm::quat m_rotation;
float m_surfacePush = 0.0f;
float m_leafHalfWidth;
float m_theta;
float m... | 28.24 | 79 | 0.726629 | edisonlee0212 |
668f60498fa51815bfe41dd43db626a08913ed85 | 970 | cpp | C++ | problems/chapter14/miiitomi/floyd_warshall.cpp | tokuma09/algorithm_problems | 58534620df73b230afbeb12de126174362625a78 | [
"CC0-1.0"
] | 1 | 2021-07-07T15:46:58.000Z | 2021-07-07T15:46:58.000Z | problems/chapter14/miiitomi/floyd_warshall.cpp | tokuma09/algorithm_problems | 58534620df73b230afbeb12de126174362625a78 | [
"CC0-1.0"
] | 5 | 2021-06-05T14:16:41.000Z | 2021-07-10T07:08:28.000Z | problems/chapter14/miiitomi/floyd_warshall.cpp | tokuma09/algorithm_problems | 58534620df73b230afbeb12de126174362625a78 | [
"CC0-1.0"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
typedef long long ll;
const ll INF = (1LL << 60);
int main() {
int N, M;
cin >> N >> M;
vector<vector<ll>> dp(N, vector<ll>(N, INF));
for (int e = 0; e < M; e++) {
int a, b;
ll w;
cin >> a >> b >> w;
dp[a][b] ... | 21.086957 | 62 | 0.350515 | tokuma09 |
669330195d1eb88c32b35178800feb914ec6a183 | 6,765 | cpp | C++ | pelican/server/test/src/StreamDataBufferTest.cpp | pelican/pelican | 834ae2e5d0e58009500286eb7f7891611d02b50c | [
"BSD-3-Clause"
] | 3 | 2015-10-11T07:30:59.000Z | 2016-06-03T04:27:40.000Z | pelican/server/test/src/StreamDataBufferTest.cpp | pelican/pelican | 834ae2e5d0e58009500286eb7f7891611d02b50c | [
"BSD-3-Clause"
] | null | null | null | pelican/server/test/src/StreamDataBufferTest.cpp | pelican/pelican | 834ae2e5d0e58009500286eb7f7891611d02b50c | [
"BSD-3-Clause"
] | 2 | 2016-05-09T09:52:38.000Z | 2019-05-17T06:08:24.000Z | #include "server/test/StreamDataBufferTest.h"
#include "server/DataManager.h"
#include "comms/StreamData.h"
#include "server/StreamDataBuffer.h"
#include "server/ServiceDataBuffer.h"
#include "server/WritableData.h"
#include "server/LockedData.h"
#include "server/LockableStreamData.h"
#include "utility/Config.h"
#inc... | 33.161765 | 104 | 0.619069 | pelican |
6696f91b4ccd2d1e8a8809169df75c6b9cb1fee5 | 5,599 | cpp | C++ | src/3DSMax/rendutil.cpp | aravindkrishnaswamy/rise | 297d0339a7f7acd1418e322a30a21f44c7dbbb1d | [
"BSD-2-Clause"
] | 1 | 2018-12-20T19:31:02.000Z | 2018-12-20T19:31:02.000Z | src/3DSMax/rendutil.cpp | aravindkrishnaswamy/rise | 297d0339a7f7acd1418e322a30a21f44c7dbbb1d | [
"BSD-2-Clause"
] | null | null | null | src/3DSMax/rendutil.cpp | aravindkrishnaswamy/rise | 297d0339a7f7acd1418e322a30a21f44c7dbbb1d | [
"BSD-2-Clause"
] | null | null | null | //***************************************************************************
// rise3dsmax - [rendutil.cpp] Sample Plugin Renderer for 3D Studio MAX.
//
// By Christer Janson - Kinetix
//
// Description:
// Utilitiy functions
//
//***************************************************************************
#include "... | 27.717822 | 77 | 0.450795 | aravindkrishnaswamy |
66997d67e0e4622ef15cd621769a53788238e675 | 5,308 | cpp | C++ | engine/Engine.UI.GDI/src/ui/gdi/Canvas.cpp | Kartikeyapan598/Ghurund | bcdc5e1805bf82b3f9a0543a3bbe22681c5605ea | [
"MIT"
] | null | null | null | engine/Engine.UI.GDI/src/ui/gdi/Canvas.cpp | Kartikeyapan598/Ghurund | bcdc5e1805bf82b3f9a0543a3bbe22681c5605ea | [
"MIT"
] | 10 | 2018-03-20T21:32:16.000Z | 2018-04-23T19:42:59.000Z | engine/Engine.UI.GDI/src/ui/gdi/Canvas.cpp | Kartikeyapan598/Ghurund | bcdc5e1805bf82b3f9a0543a3bbe22681c5605ea | [
"MIT"
] | null | null | null | #include "ghuigdipch.h"
#include "Canvas.h"
#include "ui/gdi/Shape.h"
namespace Ghurund::UI::GDI {
Status Canvas::init(HWND hwnd) {
this->hwnd = hwnd;
BufferedPaintInit();
pen = new Gdiplus::Pen(Gdiplus::Color());
brush = new Gdiplus::SolidBrush(Gdiplus::Color());
colorMatr... | 41.795276 | 144 | 0.620008 | Kartikeyapan598 |
669c5ad9e7393878c9e4f0a96edfe9207a74bd12 | 395 | cpp | C++ | src/Token.cpp | UberDever/go_compiler | 4a5087b0b7813d17dcb654f9b68f92fb0226bc82 | [
"MIT"
] | null | null | null | src/Token.cpp | UberDever/go_compiler | 4a5087b0b7813d17dcb654f9b68f92fb0226bc82 | [
"MIT"
] | null | null | null | src/Token.cpp | UberDever/go_compiler | 4a5087b0b7813d17dcb654f9b68f92fb0226bc82 | [
"MIT"
] | 1 | 2021-12-16T07:42:27.000Z | 2021-12-16T07:42:27.000Z | //
// Created by uberdever on 30.05.2020.
//
#include "../include/Token.hpp"
#include <utility>
string Token::tokenTypes[(int)TOKEN_TYPE::END + 1] = {"Identifier", "Keyword", "Operator", "Literal", "Number"};
Token::Token(const string &_lex, TOKEN_TYPE _type) {
lex = _lex;
type = _type;
}
Token::Token(stri... | 19.75 | 112 | 0.643038 | UberDever |
66a59fc5880c168584b0a29129ddbe220fc0eefd | 4,368 | cpp | C++ | shape.cpp | amatveiakin/area-measurement | 8228d6e10c93d98ac0d2a94d315bacc67df69b31 | [
"MIT"
] | null | null | null | shape.cpp | amatveiakin/area-measurement | 8228d6e10c93d98ac0d2a94d315bacc67df69b31 | [
"MIT"
] | null | null | null | shape.cpp | amatveiakin/area-measurement | 8228d6e10c93d98ac0d2a94d315bacc67df69b31 | [
"MIT"
] | 1 | 2021-08-18T05:54:50.000Z | 2021-08-18T05:54:50.000Z | #include <QLineF>
#include "shape.h"
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Helpers
double segmentLenght(QPointF a, QPointF b)
{
return QLineF(a, b).length();
}
void assertPolygonIsClosed(QPolygonF polygon)
{... | 22.4 | 140 | 0.563645 | amatveiakin |
66a78e564d4dc0814fb58c36e6a580c4928d629a | 839 | hpp | C++ | src/rotating_plane.hpp | fdekruijff/Tesseract-LED-Cube | 70a9ce4d44517714966b2a62e8fb6c4a950f8407 | [
"BSL-1.0"
] | null | null | null | src/rotating_plane.hpp | fdekruijff/Tesseract-LED-Cube | 70a9ce4d44517714966b2a62e8fb6c4a950f8407 | [
"BSL-1.0"
] | null | null | null | src/rotating_plane.hpp | fdekruijff/Tesseract-LED-Cube | 70a9ce4d44517714966b2a62e8fb6c4a950f8407 | [
"BSL-1.0"
] | null | null | null | /// Copyright Floris de Kruijff 2018.
/// Distributed under the Boost Software License, Version 1.0.
/// (See accompanying file LICENSE.txt or copy at
/// https://www.boost.org/LICENSE.txt)
/// @file
#ifndef ROTATING_PLANE_HPP
#define ROTATING_PLANE_HPP
#include "vector.hpp"
#include ... | 28.931034 | 91 | 0.688915 | fdekruijff |
66a8e5be070e40d668ff9e225a11c3e9b36a3360 | 3,848 | cpp | C++ | ndt_eval/src/pointcloud_handler.cpp | JHenriksson86/ndt_2d | ff26d1b68a89098184381c937f79bc1460bf660a | [
"MIT"
] | 1 | 2020-08-12T14:15:20.000Z | 2020-08-12T14:15:20.000Z | ndt_eval/src/pointcloud_handler.cpp | JHenriksson86/ndt_2d | ff26d1b68a89098184381c937f79bc1460bf660a | [
"MIT"
] | 1 | 2021-01-05T04:36:50.000Z | 2021-01-05T07:30:23.000Z | ndt_eval/src/pointcloud_handler.cpp | JHenriksson86/ndt_2d | ff26d1b68a89098184381c937f79bc1460bf660a | [
"MIT"
] | 1 | 2020-08-08T11:26:11.000Z | 2020-08-08T11:26:11.000Z | #include "ndt_eval/pointcloud_handler.h"
namespace ndt2d
{
PointCloudHandler::PointCloudHandler(std::string frame) :
cloud_(new pcl::PointCloud<pcl::PointXYZ>)
{
this->frame_ = frame;
this->stamp_ = "";
}
PointCloudHandler::PointCloudHandler(
const sensor_msgs::PointCloud2& pc2_message,
... | 29.829457 | 119 | 0.696206 | JHenriksson86 |
66a914fa67e9030cc0c647cde04960546f536dfc | 4,319 | cpp | C++ | common/merging_result_storage.cpp | abadona/qsimscan | 3ae8524d7f97a0586ed3b283c49d28c298a3f558 | [
"MIT"
] | 10 | 2015-11-20T00:19:13.000Z | 2021-02-25T10:33:14.000Z | common/merging_result_storage.cpp | abadona/qsimscan | 3ae8524d7f97a0586ed3b283c49d28c298a3f558 | [
"MIT"
] | 1 | 2016-08-24T07:09:42.000Z | 2016-08-24T07:09:42.000Z | common/merging_result_storage.cpp | abadona/qsimscan | 3ae8524d7f97a0586ed3b283c49d28c298a3f558 | [
"MIT"
] | 1 | 2020-03-10T03:02:24.000Z | 2020-03-10T03:02:24.000Z | //////////////////////////////////////////////////////////////////////////////
//// This software module is developed by SciDM (Scientific Data Management) in 1998-2015
////
//// This program is free software; you can redistribute, reuse,
//// or modify it with no restriction, under the terms of the MIT License.
////
/... | 30.415493 | 267 | 0.59875 | abadona |
66aa6c8ee2670c58c83c68e167642a6a957918c6 | 15,989 | cpp | C++ | webkit/WebCore/html/HTMLLinkElement.cpp | s1rcheese/nintendo-3ds-internetbrowser-sourcecode | 3dd05f035e0a5fc9723300623e9b9b359be64e11 | [
"Unlicense"
] | 15 | 2016-01-05T12:43:41.000Z | 2022-03-15T10:34:47.000Z | webkit/WebCore/html/HTMLLinkElement.cpp | s1rcheese/nintendo-3ds-internetbrowser-sourcecode | 3dd05f035e0a5fc9723300623e9b9b359be64e11 | [
"Unlicense"
] | null | null | null | webkit/WebCore/html/HTMLLinkElement.cpp | s1rcheese/nintendo-3ds-internetbrowser-sourcecode | 3dd05f035e0a5fc9723300623e9b9b359be64e11 | [
"Unlicense"
] | 2 | 2020-11-30T18:36:01.000Z | 2021-02-05T23:20:24.000Z | /*
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* (C) 2001 Dirk Mueller (mueller@kde.org)
* Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
* Copyright (C) 2009 Rob Buis (rwlbuis@gmail.com)
* Copyright (c) 2010 ACCESS C... | 32.497967 | 191 | 0.666708 | s1rcheese |
66ac633fd7fcb1d8bfe7c6202d278966761c7f11 | 25,124 | cpp | C++ | Source/ComponentMesh.cpp | project-3-bcn-2019/Project-Atlas | 16ae881cec41d17a168d10f2f9cd2cf9207b2855 | [
"MIT"
] | 1 | 2019-02-21T13:35:35.000Z | 2019-02-21T13:35:35.000Z | Source/ComponentMesh.cpp | project-3-bcn-2019/Kuroko-Engine | 16ae881cec41d17a168d10f2f9cd2cf9207b2855 | [
"MIT"
] | 1 | 2019-03-01T15:18:28.000Z | 2019-03-01T15:18:28.000Z | Source/ComponentMesh.cpp | project-3-bcn-2019/Project-Atlas | 16ae881cec41d17a168d10f2f9cd2cf9207b2855 | [
"MIT"
] | null | null | null | #include "ComponentMesh.h"
#include "ComponentTransform.h"
#include "Transform.h"
#include "GameObject.h"
#include "ModuleScene.h"
#include "ModuleShaders.h"
#include "Application.h"
#include "ComponentAABB.h"
#include "ComponentBone.h"
#include "Material.h"
#include "ModuleImporter.h"
#include "ModuleUI.h"
#include "F... | 31.762326 | 218 | 0.674773 | project-3-bcn-2019 |
66af23788672a99d7178347aff100b85ac474684 | 454 | cpp | C++ | src/statistics.cpp | JulianNeeleman/kattis | 035c1113ffb397c2d8538af8ba16b7ee4160393d | [
"MIT"
] | null | null | null | src/statistics.cpp | JulianNeeleman/kattis | 035c1113ffb397c2d8538af8ba16b7ee4160393d | [
"MIT"
] | 1 | 2017-05-16T15:57:29.000Z | 2017-05-17T19:43:56.000Z | src/statistics.cpp | JulianNeeleman/kattis | 035c1113ffb397c2d8538af8ba16b7ee4160393d | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <vector>
#include <climits>
using namespace std;
int main() {
int n;
int t = 1;
while(cin >> n) {
int minv = INT_MAX, maxv = -INT_MAX;
for(int i = 0; i < n; i++) {
int v;
cin >> v;
minv = min(minv, v);
... | 17.461538 | 86 | 0.522026 | JulianNeeleman |
66b55ad571caf6501a6c506b9c45f0083456ad41 | 3,171 | cpp | C++ | library/andy/points_wrapper.cpp | kwikius/tinyspline | 0649081f6d6afb525c78036c458c4d6725787964 | [
"MIT"
] | null | null | null | library/andy/points_wrapper.cpp | kwikius/tinyspline | 0649081f6d6afb525c78036c458c4d6725787964 | [
"MIT"
] | null | null | null | library/andy/points_wrapper.cpp | kwikius/tinyspline | 0649081f6d6afb525c78036c458c4d6725787964 | [
"MIT"
] | null | null | null |
#include "points_wrapper.hpp"
quan::three_d::vect<tsReal> get_result(tsDeBoorNet const & net)
{
assert(net.dim == 3U);
return { net.result[0],net.result[1],net.result[2]};
}
void interpolate(ts_points_wrapper const & points,tsBSpline & spline)
{
assert(ts_bspline_interpolate_cubic(points.get_points(), point... | 27.815789 | 129 | 0.681173 | kwikius |
66b5ef652eff040f99faf378f61af2fed84a5c54 | 1,111 | hpp | C++ | lib/include/fabtex/anchor.hpp | HenryAWE/FabulaeTextile | 41c3b2796154b138e606ce1976e3024c3c1c89a5 | [
"MIT-0",
"MIT"
] | 1 | 2022-02-04T02:14:24.000Z | 2022-02-04T02:14:24.000Z | lib/include/fabtex/anchor.hpp | HenryAWE/FabulaeTextile | 41c3b2796154b138e606ce1976e3024c3c1c89a5 | [
"MIT-0",
"MIT"
] | null | null | null | lib/include/fabtex/anchor.hpp | HenryAWE/FabulaeTextile | 41c3b2796154b138e606ce1976e3024c3c1c89a5 | [
"MIT-0",
"MIT"
] | null | null | null | #pragma once
#include <optional>
#include <string>
#include <fabtex/vector.hpp>
namespace fabtex
{
class anchor
{
public:
typedef vec<2, float> vector_type;
anchor(std::string name_, vector_type position_, std::optional<std::string> target_ = std::nullopt) noexcept
: m_name(s... | 31.742857 | 116 | 0.643564 | HenryAWE |
66b7180b9fe0c0094148be3a6cc45721e5dee91c | 901 | hpp | C++ | test/unit/bnf/test_rule.hpp | alandefreitas/http_proto | dc64cbdd44048a2c06671282b736f7edacb39a42 | [
"BSL-1.0"
] | 6 | 2021-11-17T03:23:50.000Z | 2021-11-25T15:58:02.000Z | test/unit/bnf/test_rule.hpp | alandefreitas/http_proto | dc64cbdd44048a2c06671282b736f7edacb39a42 | [
"BSL-1.0"
] | 6 | 2021-11-17T16:13:52.000Z | 2022-01-31T04:17:47.000Z | test/unit/bnf/test_rule.hpp | samd2/http_proto | 486729f1a68b7611f143e18c7bae8df9b908e9aa | [
"BSL-1.0"
] | 3 | 2021-11-17T03:01:12.000Z | 2021-11-17T14:14:45.000Z | //
// Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Official repository: https://github.com/CPPAlliance/http_proto
//
#ifndef BOOST_HTTP_PROTO_TES... | 18.770833 | 79 | 0.710322 | alandefreitas |
66b71de0dc96f658d2c1451c79e8f27ceab7a038 | 307 | cc | C++ | LuoGu/1403.cc | DesZou/Eros | f49c9ce1dfe193de8199163286afc28ff8c52eef | [
"MIT"
] | 1 | 2017-10-12T13:49:10.000Z | 2017-10-12T13:49:10.000Z | LuoGu/1403.cc | DesZou/Eros | f49c9ce1dfe193de8199163286afc28ff8c52eef | [
"MIT"
] | null | null | null | LuoGu/1403.cc | DesZou/Eros | f49c9ce1dfe193de8199163286afc28ff8c52eef | [
"MIT"
] | 1 | 2017-10-12T13:49:38.000Z | 2017-10-12T13:49:38.000Z | #include <cstdio>
#include <iostream>
#include <algorithm>
#include <cmath>
using std::cin;
using std::cout;
using std::cerr;
const char El = 10;
int n;
int main() {
long long ans = 0;
cin >> n;
for (int i = 1; i <= n; ++i) ans += (long long)n / i;
cout << ans << El;
return 0;
} | 12.791667 | 57 | 0.557003 | DesZou |
66bd33468aa99e05e061e564a97de65b0ed255b9 | 12,240 | cpp | C++ | src/NowPlaying.cpp | khanhas/nowplaying-node | 6d4455d6ab196866ad409635f6db3fd15cc96251 | [
"MIT"
] | 14 | 2018-05-27T22:01:35.000Z | 2022-03-05T19:05:33.000Z | src/NowPlaying.cpp | khanhas/nowplaying-node | 6d4455d6ab196866ad409635f6db3fd15cc96251 | [
"MIT"
] | null | null | null | src/NowPlaying.cpp | khanhas/nowplaying-node | 6d4455d6ab196866ad409635f6db3fd15cc96251 | [
"MIT"
] | 5 | 2018-06-06T03:14:37.000Z | 2021-10-11T17:52:29.000Z | #include "NowPlaying.h"
#include "Player.h"
#include "PlayerAIMP.h"
#include "PlayerCAD.h"
#include "PlayerITunes.h"
#include "PlayerSpotify.h"
#include "PlayerWLM.h"
#include "PlayerWMP.h"
#include "PlayerWinamp.h"
HINSTANCE g_Instance = nullptr;
using v8::Context;
using v8::Function;
using v8::FunctionCallbackInfo... | 33.905817 | 80 | 0.686275 | khanhas |
66bd9221ab5d0c6bc1afbd775f6405900558f219 | 53 | hpp | C++ | src/boost_spirit_home_classic_core_parser.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_spirit_home_classic_core_parser.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_spirit_home_classic_core_parser.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/spirit/home/classic/core/parser.hpp>
| 26.5 | 52 | 0.792453 | miathedev |
66c070de507f1d95476be1904a8e85e8ed96846e | 118 | hpp | C++ | sdl/CMakeConfig.hpp | sdl-research/hyp | d39f388f9cd283bcfa2f035f399b466407c30173 | [
"Apache-2.0"
] | 29 | 2015-01-26T21:49:51.000Z | 2021-06-18T18:09:42.000Z | sdl/CMakeConfig.hpp | hypergraphs/hyp | d39f388f9cd283bcfa2f035f399b466407c30173 | [
"Apache-2.0"
] | 1 | 2015-12-08T15:03:15.000Z | 2016-01-26T14:31:06.000Z | sdl/CMakeConfig.hpp | hypergraphs/hyp | d39f388f9cd283bcfa2f035f399b466407c30173 | [
"Apache-2.0"
] | 4 | 2015-11-21T14:25:38.000Z | 2017-10-30T22:22:00.000Z | #ifndef LW__CMAKECONFIG_HPP
#define LW__CMAKECONFIG_HPP
#define PROJECT_SOURCE_DIR "/Users/graehl/c/hyp/sdl"
#endif
| 16.857143 | 52 | 0.822034 | sdl-research |
66c1f01d9bd7b7dc562d4035d4d3c0238822530b | 2,457 | cc | C++ | 16/main.cc | buyno/CodingInterview2 | 9765010e3e8aa96df5cc0456f616fd764a4385a8 | [
"Apache-2.0"
] | null | null | null | 16/main.cc | buyno/CodingInterview2 | 9765010e3e8aa96df5cc0456f616fd764a4385a8 | [
"Apache-2.0"
] | null | null | null | 16/main.cc | buyno/CodingInterview2 | 9765010e3e8aa96df5cc0456f616fd764a4385a8 | [
"Apache-2.0"
] | null | null | null | // 数值的整数次方,不考虑大数
#include <assert.h>
#include <stdio.h>
#include <iostream>
using namespace std;
// double power(int base, int component)
// {
// if (base == 0)
// return 0;
// if (component == 0)
// return 1;
// if (base != 0 && component < 0)
// {
// component = -component;
//... | 20.139344 | 62 | 0.393162 | buyno |
66c5a897bb68a4e087ea09b4b5d6fe3ab72eb017 | 16,514 | cpp | C++ | fmm.cpp | rioyokotalab/gemsfmm | f27a8cbd122c4e507eb4a3272a5b925512a13100 | [
"MIT"
] | 8 | 2016-03-02T10:29:41.000Z | 2022-01-07T15:59:16.000Z | fmm.cpp | rioyokotalab/gemsfmm | f27a8cbd122c4e507eb4a3272a5b925512a13100 | [
"MIT"
] | 3 | 2020-07-09T22:04:29.000Z | 2021-02-28T12:50:58.000Z | fmm.cpp | rioyokotalab/gemsfmm | f27a8cbd122c4e507eb4a3272a5b925512a13100 | [
"MIT"
] | 10 | 2015-09-30T17:50:51.000Z | 2021-12-20T20:42:12.000Z | #include "fmm.h"
// Dynamically allocate memory for non-empty boxes
void FmmSystem::allocate() {
int i,j;
particleOffset = new int* [2];
for( i=0; i<2; i++ ) particleOffset[i] = new int [numBoxIndexLeaf];
boxIndexMask = new int [numBoxIndexFull];
boxIndexFull = new int [numBoxIndexTotal];
levelOffset = ne... | 27.386401 | 100 | 0.613419 | rioyokotalab |
66cb942809d9646146bd64971e86f3b9af84a997 | 1,059 | hpp | C++ | src/util/error.hpp | GLorieul/FluidBoxPublic | a026e16cf5c6efc606832a9f5bdac3738e0062e3 | [
"MIT"
] | null | null | null | src/util/error.hpp | GLorieul/FluidBoxPublic | a026e16cf5c6efc606832a9f5bdac3738e0062e3 | [
"MIT"
] | null | null | null | src/util/error.hpp | GLorieul/FluidBoxPublic | a026e16cf5c6efc606832a9f5bdac3738e0062e3 | [
"MIT"
] | null | null | null | #ifndef UTIL_ERROR___HPP
#define UTIL_ERROR___HPP
namespace fb
{
class Distance;
class Field;
[[noreturn]] void
raiseError(const std::string file, const int lineNb,
const std::string functionName, const std::string message);
void assume(const std::string file, const int lineNb,
const std::str... | 33.09375 | 80 | 0.685552 | GLorieul |
66d3251f23ba6a2cc9723e16e6394877711bf6f2 | 446 | cpp | C++ | tests/EmuTest.cpp | ammubhave/emu | ff9501719f3cc53207a8931d85c19d24c86dccdc | [
"MIT"
] | null | null | null | tests/EmuTest.cpp | ammubhave/emu | ff9501719f3cc53207a8931d85c19d24c86dccdc | [
"MIT"
] | null | null | null | tests/EmuTest.cpp | ammubhave/emu | ff9501719f3cc53207a8931d85c19d24c86dccdc | [
"MIT"
] | null | null | null | // #define CATCH_CONFIG_MAIN
// #include <catch2/catch_all.hpp>
// using namespace Catch;
// TEST_CASE("Quick check", "[main]") {
// std::vector<double> values{1, 2., 3.};
// auto [mean, moment] = std::make_tuple(2.0, 5);
// REQUIRE(mean == 2.0);
// REQUIRE(moment == Approx(4.666666));
// }
#include "gtest/... | 22.3 | 51 | 0.607623 | ammubhave |
202d6fb2e8af1224572f81f6738983c8b8536d35 | 13,558 | cpp | C++ | src/tokens/tokendb.cpp | Chellit/Chellit | 7d804cfc64b4e91234b68f14b82f12c752eb6aae | [
"MIT"
] | 2 | 2021-02-01T08:29:18.000Z | 2021-06-28T23:45:28.000Z | src/tokens/tokendb.cpp | Chellit/Chellit | 7d804cfc64b4e91234b68f14b82f12c752eb6aae | [
"MIT"
] | null | null | null | src/tokens/tokendb.cpp | Chellit/Chellit | 7d804cfc64b4e91234b68f14b82f12c752eb6aae | [
"MIT"
] | null | null | null | // Copyright (c) 2017-2019 The Raven Core developers
// Copyright (c) 2020 The Chellit Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <util.h>
#include <consensus/params.h>
#include <script/ismine.h>
#i... | 34.411168 | 206 | 0.595442 | Chellit |
203221d063fc1bdbca5e6208eaf06afeec9cc2df | 86 | cpp | C++ | source/Transcript_variationOutput.cpp | Gavin-Lijy/STAR | 4571190968fc134aa4bd0d4d7065490253b1a4c5 | [
"MIT"
] | 1,315 | 2015-01-07T02:03:15.000Z | 2022-03-30T09:48:17.000Z | source/Transcript_variationOutput.cpp | Gavin-Lijy/STAR | 4571190968fc134aa4bd0d4d7065490253b1a4c5 | [
"MIT"
] | 1,429 | 2015-01-08T00:09:17.000Z | 2022-03-31T08:12:14.000Z | source/Transcript_variationOutput.cpp | Gavin-Lijy/STAR | 4571190968fc134aa4bd0d4d7065490253b1a4c5 | [
"MIT"
] | 495 | 2015-01-23T20:00:45.000Z | 2022-03-31T13:24:50.000Z | #include "Transcript.h"
void Transcript::variationOutput(Variation &Var)
{
//
};
| 12.285714 | 48 | 0.686047 | Gavin-Lijy |
2032c8b44f78d33488b39a374f827e7e177801ca | 1,779 | cpp | C++ | Code/Source/Algorithms/SurfaceFeatures/Local/LocalPca.cpp | sidch/Thea | d5ea3e3f1bd7389255cfabf1d55a6fe88c3c7db7 | [
"BSD-3-Clause"
] | 77 | 2016-11-06T17:25:54.000Z | 2022-03-29T16:30:34.000Z | Code/Source/Algorithms/SurfaceFeatures/Local/LocalPca.cpp | sidch/Thea | d5ea3e3f1bd7389255cfabf1d55a6fe88c3c7db7 | [
"BSD-3-Clause"
] | 1 | 2017-04-22T16:47:04.000Z | 2017-04-22T16:47:04.000Z | Code/Source/Algorithms/SurfaceFeatures/Local/LocalPca.cpp | sidch/Thea | d5ea3e3f1bd7389255cfabf1d55a6fe88c3c7db7 | [
"BSD-3-Clause"
] | 20 | 2015-10-17T20:38:50.000Z | 2022-02-18T09:56:27.000Z | //============================================================================
//
// This file is part of the Thea toolkit.
//
// This software is distributed under the BSD license, as detailed in the
// accompanying LICENSE.txt file. Portions are derived from other works:
// their respective licenses and copyright inf... | 26.552239 | 117 | 0.6543 | sidch |
20343513957ce74bbc1729a6936323cb01c2fe57 | 8,451 | cpp | C++ | src/mason/FlyCam.cpp | paulhoux/mason | 5c505e14fa4b4e043818d2ddbd75149cf10f50ab | [
"BSD-2-Clause"
] | null | null | null | src/mason/FlyCam.cpp | paulhoux/mason | 5c505e14fa4b4e043818d2ddbd75149cf10f50ab | [
"BSD-2-Clause"
] | null | null | null | src/mason/FlyCam.cpp | paulhoux/mason | 5c505e14fa4b4e043818d2ddbd75149cf10f50ab | [
"BSD-2-Clause"
] | null | null | null | /*
Copyright (c) 2015, The Cinder Project
This code is intended to be used with the Cinder C++ library, http://libcinder.org
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 ret... | 26.828571 | 127 | 0.692344 | paulhoux |
203660c9ee43bbb596adac1c7838e12c47a397ba | 1,325 | cpp | C++ | 5/src/plane.cpp | Galaxeaaa/MIT-courses | ec54d95ac3b8217ee107b90eb704118ec3eb94ac | [
"MIT"
] | 1 | 2020-05-09T05:36:04.000Z | 2020-05-09T05:36:04.000Z | 5/src/plane.cpp | Galaxeaaa/MIT-courses | ec54d95ac3b8217ee107b90eb704118ec3eb94ac | [
"MIT"
] | null | null | null | 5/src/plane.cpp | Galaxeaaa/MIT-courses | ec54d95ac3b8217ee107b90eb704118ec3eb94ac | [
"MIT"
] | null | null | null | #include "plane.h"
Plane::Plane(Vec3f &n, float d, Material *m) : Object3D(m), normal(n), d(d)
{
normal.Normalize();
bbox = nullptr;
}
Plane::~Plane() {}
bool Plane::intersect(const Ray &r, Hit &h, float tmin)
{
Vec3f Ro = r.getOrigin();
Vec3f Rd = r.getDirection();
if (normal.Dot3(Rd) == 0)
return false;
flo... | 23.660714 | 90 | 0.553208 | Galaxeaaa |
2037b895edfd6068fa5ebf5876c1f349690d67ba | 570 | hpp | C++ | src/feature_broker/include/inference/output_pipe.hpp | TomFinley/FeatureBroker | 481a8f9a1a2e0980eee14d84f712ec3abf40ef0e | [
"MIT"
] | 10 | 2020-03-17T00:35:54.000Z | 2021-08-22T12:31:27.000Z | src/feature_broker/include/inference/output_pipe.hpp | TomFinley/FeatureBroker | 481a8f9a1a2e0980eee14d84f712ec3abf40ef0e | [
"MIT"
] | 3 | 2020-03-17T17:25:15.000Z | 2020-03-17T21:10:41.000Z | src/feature_broker/include/inference/output_pipe.hpp | TomFinley/FeatureBroker | 481a8f9a1a2e0980eee14d84f712ec3abf40ef0e | [
"MIT"
] | 6 | 2020-03-13T15:39:03.000Z | 2021-11-10T08:19:06.000Z | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#pragma once
#include <inference/handle.hpp>
#include <rt/rt_expected.hpp>
namespace inference {
class IOutputPipe {
public:
virtual ~IOutputPipe() = default;
virtual bool Changed() = 0;
protected:
IOutputPipe() = default;... | 18.387097 | 61 | 0.685965 | TomFinley |
2039079f0f6abe0db530193229f587c7838fdfed | 3,086 | cpp | C++ | acm/cf/691C.cpp | xiaohuihuigh/cpp | c28bdb79ecb86f44a92971ac259910546dba29a7 | [
"MIT"
] | 17 | 2016-01-01T12:57:25.000Z | 2022-02-06T09:55:12.000Z | acm/cf/691C.cpp | xiaohuihuigh/cpp | c28bdb79ecb86f44a92971ac259910546dba29a7 | [
"MIT"
] | null | null | null | acm/cf/691C.cpp | xiaohuihuigh/cpp | c28bdb79ecb86f44a92971ac259910546dba29a7 | [
"MIT"
] | 8 | 2018-12-27T01:31:49.000Z | 2022-02-06T09:55:12.000Z |
#include<bits/stdc++.h>
using namespace std;
using namespace std;
#define INF 0x3FFFFFFF
#define PB(X) push_back(X)
#define MP(X,Y) make_pair(X,Y)
#define lson l,m,rt<<1
#define rson m+1,r,tr<<1|1
typedef pair<int,int>PII;
typedef vector<PII>VII;
const int MAXN = 100010;
inline int input() { int x; scanf("%d", &x); re... | 21.58042 | 64 | 0.306222 | xiaohuihuigh |
203c52a47435db492a8e00ecafdc73089bcb41aa | 1,936 | cpp | C++ | third-party/Empirical/examples/web/RPS.cpp | koellingh/empirical-p53-simulator | aa6232f661e8fc65852ab6d3e809339557af521b | [
"MIT"
] | null | null | null | third-party/Empirical/examples/web/RPS.cpp | koellingh/empirical-p53-simulator | aa6232f661e8fc65852ab6d3e809339557af521b | [
"MIT"
] | null | null | null | third-party/Empirical/examples/web/RPS.cpp | koellingh/empirical-p53-simulator | aa6232f661e8fc65852ab6d3e809339557af521b | [
"MIT"
] | null | null | null | // This file is part of Empirical, https://github.com/devosoft/Empirical
// Copyright (C) Michigan State University, 2015-2018.
// Released under the MIT Software license; see doc/LICENSE
#include "emp/geometry/Surface.hpp"
#include "emp/math/Random.hpp"
#include "emp/web/Animate.hpp"
#include "emp/web/canvas_utils... | 25.142857 | 91 | 0.655992 | koellingh |
203f265a7f43ee66201b7c888c5d16bb7f4bb1cb | 20,318 | cpp | C++ | src/AppLines/AppLines.cpp | stmork/blz3 | 275e24681cb1493319cd0a50e691feb86182f6f0 | [
"BSD-3-Clause"
] | null | null | null | src/AppLines/AppLines.cpp | stmork/blz3 | 275e24681cb1493319cd0a50e691feb86182f6f0 | [
"BSD-3-Clause"
] | null | null | null | src/AppLines/AppLines.cpp | stmork/blz3 | 275e24681cb1493319cd0a50e691feb86182f6f0 | [
"BSD-3-Clause"
] | 1 | 2022-01-07T15:58:38.000Z | 2022-01-07T15:58:38.000Z | /*
**
** $Filename: AppLines.cpp $
** $Release: Dortmund 2001, 2002 $
** $Revision$
** $Date$
** $Author$
** $Developer: Steffen A. Mork $
**
** Blizzard III - Lines application
**
** (C) Copyright 2001, 2002 Steffen A. Mork
** All Rights Reserved
**
**
*/
/********************************************************... | 27.681199 | 102 | 0.62639 | stmork |
204b7d2600d2e198028970f289b19c03f3aad014 | 11,068 | cpp | C++ | DNP3/APDUProxyImpl.cpp | rajive/dnp3 | f5d8dbcec2085eaeb980e66d07df19b7bb9c20aa | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | DNP3/APDUProxyImpl.cpp | rajive/dnp3 | f5d8dbcec2085eaeb980e66d07df19b7bb9c20aa | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | DNP3/APDUProxyImpl.cpp | rajive/dnp3 | f5d8dbcec2085eaeb980e66d07df19b7bb9c20aa | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2019-03-31T15:27:05.000Z | 2019-09-17T16:12:53.000Z | /* Copyright 2014 Real-Time Innovations, 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 in writi... | 26.042353 | 88 | 0.730936 | rajive |
204ba85a4dddc502200ac91a9ec60d44e5356cd1 | 11,495 | cpp | C++ | linked_list/linked_list1.cpp | M1NH42/learn-dsa | 70b5011a83dd5c29d39b754ed856cb9e023511f3 | [
"MIT"
] | null | null | null | linked_list/linked_list1.cpp | M1NH42/learn-dsa | 70b5011a83dd5c29d39b754ed856cb9e023511f3 | [
"MIT"
] | null | null | null | linked_list/linked_list1.cpp | M1NH42/learn-dsa | 70b5011a83dd5c29d39b754ed856cb9e023511f3 | [
"MIT"
] | null | null | null | // Implementation of the linked list which comprises of the operations like
// 1. defining a Node
// 2. creating a Node
// 3. traversing
// 4. displaying node's data
#include <bits/stdc++.h>
using namespace std;
// define Node
struct Node
{
int data;
struct Node * next;
}*first = NULL;
// create linked list... | 20.131349 | 80 | 0.532057 | M1NH42 |
204e6154a8b9b0078f0c3be6fa10de0029294c9e | 1,691 | cpp | C++ | 2017/1021_ARC083/C.cpp | kazunetakahashi/atcoder | 16ce65829ccc180260b19316e276c2fcf6606c53 | [
"MIT"
] | 7 | 2019-03-24T14:06:29.000Z | 2020-09-17T21:16:36.000Z | 2017/1021_ARC083/C.cpp | kazunetakahashi/atcoder | 16ce65829ccc180260b19316e276c2fcf6606c53 | [
"MIT"
] | null | null | null | 2017/1021_ARC083/C.cpp | kazunetakahashi/atcoder | 16ce65829ccc180260b19316e276c2fcf6606c53 | [
"MIT"
] | 1 | 2020-07-22T17:27:09.000Z | 2020-07-22T17:27:09.000Z | #include <iostream>
#include <iomanip> // << fixed << setprecision(xxx)
#include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ;
#include <vector>
#include <string> // to_string(nnn) // substr(m, n) // stoi(nnn)
#include <complex>
#include <tuple> // get<n>(xxx)
#include <queue>
#include <stack>
#include <... | 28.183333 | 69 | 0.528681 | kazunetakahashi |
204f4f97a070799104c1666885d2adf221769829 | 75 | cc | C++ | ugine/external_src/stb_image/stb_image.cc | AdrianOrcik/ugine | 4f5a9a5641c834834d9e18fc5b85b55140544568 | [
"Apache-2.0"
] | null | null | null | ugine/external_src/stb_image/stb_image.cc | AdrianOrcik/ugine | 4f5a9a5641c834834d9e18fc5b85b55140544568 | [
"Apache-2.0"
] | null | null | null | ugine/external_src/stb_image/stb_image.cc | AdrianOrcik/ugine | 4f5a9a5641c834834d9e18fc5b85b55140544568 | [
"Apache-2.0"
] | null | null | null | #include "uepch.h"
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h" | 18.75 | 32 | 0.8 | AdrianOrcik |
2050282634f645c271824228ab336077f59398f4 | 781 | cpp | C++ | WeatherStation/record.cpp | robotrobotrobotrobotrobot/CST276SRS01 | f827b856bf5772232d65e0ddb3a73e34e3a42a50 | [
"MIT"
] | null | null | null | WeatherStation/record.cpp | robotrobotrobotrobotrobot/CST276SRS01 | f827b856bf5772232d65e0ddb3a73e34e3a42a50 | [
"MIT"
] | null | null | null | WeatherStation/record.cpp | robotrobotrobotrobotrobot/CST276SRS01 | f827b856bf5772232d65e0ddb3a73e34e3a42a50 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include <chrono>
#include "record.h"
#include <chrono>
#include "temperature.h"
#include "humidity.h"
#include "pressure.h"
namespace WeatherStation
{
Record::Record
(
Temperature const temperature,
Humidity const humidity,
Pressure const pressure
):
tem... | 18.162791 | 70 | 0.614597 | robotrobotrobotrobotrobot |
205353b71da75cfb8db0e1902a7b88b220fba4e8 | 3,016 | cpp | C++ | MonomialTest.cpp | pichtj/groebner | 38e8fb8df9977ffa120ca21a35cac0b0ee3d5afe | [
"MIT"
] | 2 | 2019-09-05T15:32:33.000Z | 2021-07-25T08:32:00.000Z | MonomialTest.cpp | pichtj/groebner | 38e8fb8df9977ffa120ca21a35cac0b0ee3d5afe | [
"MIT"
] | null | null | null | MonomialTest.cpp | pichtj/groebner | 38e8fb8df9977ffa120ca21a35cac0b0ee3d5afe | [
"MIT"
] | 1 | 2018-02-20T16:34:55.000Z | 2018-02-20T16:34:55.000Z | #include <sstream>
#include <gtest/gtest.h>
#include "Monomial.h"
using namespace std;
TEST(MonomialTest, lex) {
Monomial<> e;
Monomial<> f;
Monomial<> g;
g[1] = 1;
Monomial<> h;
h[1] = 12;
EXPECT_FALSE(e < f);
EXPECT_FALSE(f < e);
EXPECT_TRUE(e < g);
EXPECT_TRUE(e < h);
EXPECT_TRUE(h > e);
... | 21.542857 | 74 | 0.581565 | pichtj |
20590a44325bc1c79454e12ce96788170aabc74b | 15,061 | cpp | C++ | src/L1k++.cpp | BioDepot/L1kpp | a08b568fff9879a3ee56cdc339890dfb8a32a54c | [
"BSD-2-Clause",
"MIT"
] | null | null | null | src/L1k++.cpp | BioDepot/L1kpp | a08b568fff9879a3ee56cdc339890dfb8a32a54c | [
"BSD-2-Clause",
"MIT"
] | null | null | null | src/L1k++.cpp | BioDepot/L1kpp | a08b568fff9879a3ee56cdc339890dfb8a32a54c | [
"BSD-2-Clause",
"MIT"
] | null | null | null | #include<fstream>
#include<stdio.h>
#include<string>
#include<FCSIO.hpp>
#include<tclap/CmdLine.h>
#include<common.hpp>
#include<gmm.hpp>
#include<qNorm.hpp>
#include<omp.h>
void show_help ();
void process_lxb_file(std::string inputFile,vector<float> *values,int nBins,bool logTransform);
void process_binary_file(std::... | 41.150273 | 158 | 0.685612 | BioDepot |
205a5a4f7e92f7fcd1fa2543b2d75a5bc1a1214b | 12,532 | cpp | C++ | Blizzlike/ArcEmu/C++/InstanceScripts/Raid_TheObsidianSanctum.cpp | 499453466/Lua-Other | 43fd2b72405faf3f2074fd2a2706ef115d16faa6 | [
"Unlicense"
] | 2 | 2015-06-23T16:26:32.000Z | 2019-06-27T07:45:59.000Z | Blizzlike/ArcEmu/C++/InstanceScripts/Raid_TheObsidianSanctum.cpp | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | null | null | null | Blizzlike/ArcEmu/C++/InstanceScripts/Raid_TheObsidianSanctum.cpp | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | 3 | 2015-01-10T18:22:59.000Z | 2021-04-27T21:28:28.000Z | /*
* ArcScripts for ArcEmu MMORPG Server
* Copyright (C) 2009 ArcEmu Team <http://www.arcemu.org/>
* Copyright (C) 2008-2009 Sun++ Team <http://www.sunscripting.com/>
*
* 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
* ... | 27.125541 | 214 | 0.671162 | 499453466 |
2063333dde42e7d2c921cb9b8d0887833a9c138a | 18,297 | cc | C++ | src/paths/long/LoadCorrectCore.cc | Amjadhpc/w2rap-contigger | 221f6cabedd19743046ee5dec18e6feb85130218 | [
"MIT"
] | 48 | 2016-04-26T16:52:59.000Z | 2022-01-15T09:18:17.000Z | src/paths/long/LoadCorrectCore.cc | Amjadhpc/w2rap-contigger | 221f6cabedd19743046ee5dec18e6feb85130218 | [
"MIT"
] | 45 | 2016-04-27T08:20:56.000Z | 2022-02-14T07:47:11.000Z | src/paths/long/LoadCorrectCore.cc | Amjadhpc/w2rap-contigger | 221f6cabedd19743046ee5dec18e6feb85130218 | [
"MIT"
] | 15 | 2016-05-11T14:35:25.000Z | 2022-01-15T09:18:45.000Z | ///////////////////////////////////////////////////////////////////////////////
// SOFTWARE COPYRIGHT NOTICE AGREEMENT //
// This software and its documentation are copyright (2014) by the //
// Broad Institute. All rights are reserved. This software is supplied //
... | 39.348387 | 126 | 0.512652 | Amjadhpc |
206530f6c1c71226c4213d8c7355d2dacb73e829 | 1,250 | cpp | C++ | test/module/shared_model/backend_proto/shared_proto_util_test.cpp | laSinteZ/iroha | 78f152a85ee2b3b86db7b705831938e96a186c36 | [
"Apache-2.0"
] | 1 | 2017-01-15T08:47:16.000Z | 2017-01-15T08:47:16.000Z | test/module/shared_model/backend_proto/shared_proto_util_test.cpp | laSinteZ/iroha | 78f152a85ee2b3b86db7b705831938e96a186c36 | [
"Apache-2.0"
] | 2 | 2020-07-07T19:31:15.000Z | 2021-06-01T22:29:48.000Z | test/module/shared_model/backend_proto/shared_proto_util_test.cpp | laSinteZ/iroha | 78f152a85ee2b3b86db7b705831938e96a186c36 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright Soramitsu Co., Ltd. 2017 All Rights Reserved.
* http://soramitsu.co.jp
*
* 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/LICENS... | 31.25 | 75 | 0.7424 | laSinteZ |
20679dcbb4a32f90de6dafe09f911450d101c2b3 | 2,830 | cpp | C++ | ogsr_engine/Layers/xrRender/RenderTargetPhaseSSLR.cpp | LVutner/OGSR-Engine | fea725c29e1a1b3e72295e1419c124097ed98dfd | [
"Apache-2.0"
] | 247 | 2018-11-02T18:50:55.000Z | 2022-03-15T09:11:43.000Z | ogsr_engine/Layers/xrRender/RenderTargetPhaseSSLR.cpp | LVutner/OGSR-Engine | fea725c29e1a1b3e72295e1419c124097ed98dfd | [
"Apache-2.0"
] | 193 | 2018-11-02T20:12:44.000Z | 2022-03-07T13:35:17.000Z | ogsr_engine/Layers/xrRender/RenderTargetPhaseSSLR.cpp | LVutner/OGSR-Engine | fea725c29e1a1b3e72295e1419c124097ed98dfd | [
"Apache-2.0"
] | 106 | 2018-10-26T11:33:01.000Z | 2022-03-19T12:34:20.000Z | #include "stdafx.h"
void CRenderTarget::phase_SSLR()
{
u32 Offset = 0;
constexpr float d_Z = EPS_S;
constexpr float d_W = 1.0f;
constexpr u32 C = color_rgba(0, 0, 0, 255);
// Half-pixel offset (DX9 only)
#if defined(USE_DX10) || defined(USE_DX11)
constexpr Fvector2 p0{ 0.0f, 0.0f }, p1{ 1.0f, 1.0f };
#else
Fve... | 31.444444 | 86 | 0.592933 | LVutner |
2067cca4d5f628054ceda8673b9246025e3e53e4 | 23,993 | cxx | C++ | src/mod/pub/lib/mws/mws.cxx | indigoabstract/appplex | 83c3b903db6c6ea83690ccffbd533ff6ab01d246 | [
"MIT"
] | 1 | 2017-12-26T14:29:37.000Z | 2017-12-26T14:29:37.000Z | src/mod/pub/lib/mws/mws.cxx | indigoabstract/appplex | 83c3b903db6c6ea83690ccffbd533ff6ab01d246 | [
"MIT"
] | null | null | null | src/mod/pub/lib/mws/mws.cxx | indigoabstract/appplex | 83c3b903db6c6ea83690ccffbd533ff6ab01d246 | [
"MIT"
] | null | null | null | #include "stdafx.hxx"
#include "appplex-conf.hxx"
#include "mws.hxx"
#include "mws-com.hxx"
#include "mws-camera.hxx"
#include "fonts/mws-font.hxx"
#include "fonts/mws-text-vxo.hxx"
#include "gfx.hxx"
#include "gfx-tex.hxx"
#include "gfx-vxo.hxx"
#include "mws-mod.hxx"
#include "input/transitions.hxx"
#include "mws-v... | 20.179142 | 152 | 0.567791 | indigoabstract |
206ddee92c7f1d16a532f0920761e22ef2a3121c | 566 | cpp | C++ | LeetCode/Shortest Word Distance/main.cpp | Code-With-Aagam/competitive-programming | 610520cc396fb13a03c606b5fb6739cfd68cc444 | [
"MIT"
] | 2 | 2022-02-08T12:37:41.000Z | 2022-03-09T03:48:56.000Z | LeetCode/Shortest Word Distance/main.cpp | ShubhamJagtap2000/competitive-programming-1 | 3a9a2e3dd08f8fa8ab823f295cd020d08d3bff84 | [
"MIT"
] | null | null | null | LeetCode/Shortest Word Distance/main.cpp | ShubhamJagtap2000/competitive-programming-1 | 3a9a2e3dd08f8fa8ab823f295cd020d08d3bff84 | [
"MIT"
] | null | null | null | class Solution {
public:
int shortestDistance(vector<string>& words, string word1, string word2) {
vector<int> X, Y;
int index = 0, ans = INT_MAX;
for (const auto& ele : words) {
if (ele == word1) {
X.push_back(index);
} else if (ele == word2) {
... | 26.952381 | 77 | 0.418728 | Code-With-Aagam |
206f5064800ece0fc96baffe7a7d31a6553694fd | 1,683 | cc | C++ | tests/universal-coding-test.cc | pixie-grasper/research-library | 26745bb0810a2fbe0292c7591ce01a2d6ee31acb | [
"MIT"
] | 2 | 2016-03-06T08:03:18.000Z | 2016-03-06T11:07:20.000Z | tests/universal-coding-test.cc | pixie-grasper/research-library | 26745bb0810a2fbe0292c7591ce01a2d6ee31acb | [
"MIT"
] | 1 | 2016-03-07T06:26:09.000Z | 2016-03-07T06:26:09.000Z | tests/universal-coding-test.cc | pixie-grasper/research-library | 26745bb0810a2fbe0292c7591ce01a2d6ee31acb | [
"MIT"
] | 2 | 2016-03-06T08:19:49.000Z | 2021-09-08T10:17:05.000Z | // Copyright 2015 pixie.grasper
#include <cstdlib>
#include <vector>
#include "../includes/universal-coding.h"
int main() {
std::vector<int> buffer(10000);
unsigned int seed = 10;
for (size_t i = 0; i < buffer.size(); i++) {
buffer[i] = rand_r(&seed) % 100 + 1;
}
auto&& uc = ResearchLibrary::Universal... | 28.525424 | 77 | 0.61022 | pixie-grasper |
207177c2749926a919f82cf5492b78ad96807655 | 762 | hpp | C++ | libs/options/include/fcppt/options/option_name_set.hpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 13 | 2015-02-21T18:35:14.000Z | 2019-12-29T14:08:29.000Z | libs/options/include/fcppt/options/option_name_set.hpp | cpreh/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 5 | 2016-08-27T07:35:47.000Z | 2019-04-21T10:55:34.000Z | libs/options/include/fcppt/options/option_name_set.hpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 8 | 2015-01-10T09:22:37.000Z | 2019-12-01T08:31:12.000Z | // Copyright Carl Philipp Reh 2009 - 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef FCPPT_OPTIONS_OPTION_NAME_SET_HPP_INCLUDED
#define FCPPT_OPTIONS_OPTION_NAME_SET_HPP_INCLUD... | 25.4 | 62 | 0.754593 | freundlich |
20728eaa4512239fc1f9fe6d20af1359716e9977 | 510 | cpp | C++ | Sources/special_file.cpp | YarikTH/cpp-io-impl | faf62a578ceeae2ce41818aae8172da67ec00456 | [
"BSL-1.0"
] | 1 | 2022-02-15T02:58:58.000Z | 2022-02-15T02:58:58.000Z | Sources/special_file.cpp | YarikTH/cpp-io-impl | faf62a578ceeae2ce41818aae8172da67ec00456 | [
"BSL-1.0"
] | null | null | null | Sources/special_file.cpp | YarikTH/cpp-io-impl | faf62a578ceeae2ce41818aae8172da67ec00456 | [
"BSL-1.0"
] | 1 | 2021-12-19T13:25:43.000Z | 2021-12-19T13:25:43.000Z | /// \file
/// \brief Source file that contains implementation of the SpecialFile class.
/// \author Lyberta
/// \copyright BSLv1.
#include <Internal/special_file.h>
namespace std::io
{
SpecialFile::SpecialFile(native_handle_type handle)
: BasicFile{handle}
{
}
streamsize SpecialFile::read_some(span<byte> buffer)
{... | 18.888889 | 77 | 0.747059 | YarikTH |
2072c207a6726d480c41b0290e7def79a65c97ef | 15,701 | cpp | C++ | Source/Graphics.cpp | maxattack/Trinket | b989bc88800ac858f0a150858e1c9670b88d4aad | [
"Unlicense"
] | 1 | 2020-06-11T21:31:25.000Z | 2020-06-11T21:31:25.000Z | Source/Graphics.cpp | maxattack/Trinket | b989bc88800ac858f0a150858e1c9670b88d4aad | [
"Unlicense"
] | null | null | null | Source/Graphics.cpp | maxattack/Trinket | b989bc88800ac858f0a150858e1c9670b88d4aad | [
"Unlicense"
] | null | null | null | // Trinket Game Engine
// (C) 2020 Max Kaufmann <max.kaufmann@gmail.com>
#include "Graphics.h"
#include "DiligentCore/Graphics/GraphicsTools/interface/MapHelper.hpp"
#include "DiligentCore/Graphics/GraphicsTools/interface/GraphicsUtilities.h"
#include <glm/gtx/color_space.hpp>
#include <glm/gtx/quaternion.hpp>
#incl... | 35.283146 | 150 | 0.751736 | maxattack |
20744a94bdfc7f6af5f77ffce76d0daae362fd30 | 3,310 | cpp | C++ | src/ogl/renderer/oglbuffer.cpp | eXl-Nic/eXl | a5a0f77f47db3179365c107a184bb38b80280279 | [
"MIT"
] | null | null | null | src/ogl/renderer/oglbuffer.cpp | eXl-Nic/eXl | a5a0f77f47db3179365c107a184bb38b80280279 | [
"MIT"
] | null | null | null | src/ogl/renderer/oglbuffer.cpp | eXl-Nic/eXl | a5a0f77f47db3179365c107a184bb38b80280279 | [
"MIT"
] | null | null | null | /*
Copyright 2009-2021 Nicolas Colombe
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute... | 29.81982 | 460 | 0.729607 | eXl-Nic |
207913cf191753a50182523406eb60b79a3009a3 | 544 | cpp | C++ | hackerrankrunningtimealgo.cpp | ap9891/hackerrank | 05fa0bc3a20ad736cd357775923b528254ec28ab | [
"MIT"
] | 1 | 2020-07-09T19:52:30.000Z | 2020-07-09T19:52:30.000Z | hackerrankrunningtimealgo.cpp | ap9891/hackerrank | 05fa0bc3a20ad736cd357775923b528254ec28ab | [
"MIT"
] | null | null | null | hackerrankrunningtimealgo.cpp | ap9891/hackerrank | 05fa0bc3a20ad736cd357775923b528254ec28ab | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
void insertsort(int *arr, int n)
{
int count =0 ;
for (int i = 0; i < n; i++)
{
int min = arr[i];
int j = i-1;
while(j >=0 && arr[j] > min)
{
arr[j+1]= arr[j];
j=j-1;
count++;
... | 17.548387 | 37 | 0.371324 | ap9891 |
207ba5b32ab0acd46ca7023558f0ac8e86e22a09 | 915 | cpp | C++ | Source/AutonomousAgents/Behavior/Decorators/LeaderCheckDecorator.cpp | AnupamSahu/AutonomousAgents | f521faccc4187217e97c137c527bac1952a5b92a | [
"MIT"
] | null | null | null | Source/AutonomousAgents/Behavior/Decorators/LeaderCheckDecorator.cpp | AnupamSahu/AutonomousAgents | f521faccc4187217e97c137c527bac1952a5b92a | [
"MIT"
] | null | null | null | Source/AutonomousAgents/Behavior/Decorators/LeaderCheckDecorator.cpp | AnupamSahu/AutonomousAgents | f521faccc4187217e97c137c527bac1952a5b92a | [
"MIT"
] | null | null | null | // Copyright Epic Games, Inc. All Rights Reserved.
#include "LeaderCheckDecorator.h"
#include "AIController.h"
#include "../Types/SensedActorsWrapper.h"
#include "BehaviorTree/BlackboardComponent.h"
void ULeaderCheckDecorator::OnGameplayTaskActivated(UGameplayTask& Task)
{
Super::OnGameplayTaskActivated(Task);
}
v... | 30.5 | 136 | 0.809836 | AnupamSahu |
2083fb91d7225663e497b8224f88724059736b33 | 1,985 | cpp | C++ | Striver Sheet/Day-14/Rotting Oranges.cpp | Akshad7829/DataStructures-Algorithms | 439822c6a374672d1734e2389d3fce581a35007d | [
"MIT"
] | 5 | 2021-08-10T18:47:49.000Z | 2021-08-21T15:42:58.000Z | Striver Sheet/Day-14/Rotting Oranges.cpp | Akshad7829/DataStructures-Algorithms | 439822c6a374672d1734e2389d3fce581a35007d | [
"MIT"
] | 2 | 2022-02-25T13:36:46.000Z | 2022-02-25T14:06:44.000Z | Striver Sheet/Day-14/Rotting Oranges.cpp | Akshad7829/DataStructures-Algorithms | 439822c6a374672d1734e2389d3fce581a35007d | [
"MIT"
] | 1 | 2022-01-23T22:00:48.000Z | 2022-01-23T22:00:48.000Z | /*
Rotting Oranges
===============
You are given an m x n grid where each cell can have one of three values:
0 representing an empty cell,
1 representing a fresh orange, or
2 representing a rotten orange.
Every minute, any fresh orange that is 4-directionally adjacent to a rotten orange becomes rotten.
Return the mi... | 22.816092 | 130 | 0.524433 | Akshad7829 |
208409bf72c2611ec8740edbf4bff96b2adb9208 | 1,652 | cpp | C++ | src/condor_lease_manager/lease_manager_lease.cpp | zhangzhehust/htcondor | e07510d62161f38fa2483b299196ef9a7b9f7941 | [
"Apache-2.0"
] | 2 | 2018-06-18T23:11:20.000Z | 2021-01-11T06:30:00.000Z | src/condor_lease_manager/lease_manager_lease.cpp | AmesianX/htcondor | 10aea32f1717637972af90459034d1543004cb83 | [
"Apache-2.0"
] | 1 | 2021-04-06T04:19:40.000Z | 2021-04-06T04:19:40.000Z | src/condor_lease_manager/lease_manager_lease.cpp | AmesianX/htcondor | 10aea32f1717637972af90459034d1543004cb83 | [
"Apache-2.0"
] | 2 | 2016-05-24T17:12:13.000Z | 2017-02-13T01:25:35.000Z | /***************************************************************
*
* Copyright (C) 1990-2008, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. Yo... | 24.294118 | 75 | 0.677966 | zhangzhehust |
208697c061c7fe4612c673b1df693cd8b062f84d | 2,192 | cc | C++ | tests&old_stuff/old tests/learning by doing/unordered_test.cc | reiss-josh/RESTful_memcache | 40a21020cd3830c9e11b075039cb7a3b760ac0ad | [
"MIT"
] | 1 | 2019-05-02T21:47:15.000Z | 2019-05-02T21:47:15.000Z | tests&old_stuff/old tests/learning by doing/unordered_test.cc | reiss-josh/RESTful_memcache | 40a21020cd3830c9e11b075039cb7a3b760ac0ad | [
"MIT"
] | null | null | null | tests&old_stuff/old tests/learning by doing/unordered_test.cc | reiss-josh/RESTful_memcache | 40a21020cd3830c9e11b075039cb7a3b760ac0ad | [
"MIT"
] | 1 | 2018-10-08T06:04:44.000Z | 2018-10-08T06:04:44.000Z | #include <cache.hh>
#include <iostream>
#include <unordered_map>
#include <string>
using key_type = const std::string;
using val_type = const void*;
using hash_func = std::function<uint32_t(key_type)>;
std::unordered_map<std::string, void*> data_;
void assign(key_type key, val_type val)
{
void* val_p = &val;
data_[... | 19.06087 | 66 | 0.643704 | reiss-josh |
208737b87f789e12188ecfe6e4dc0d6ed953d6a6 | 25,160 | cpp | C++ | talpa/iomesh.cpp | q349wang/eltopo | a63a43d2a890c53f8e0c51034c46ce01ead86564 | [
"BSD-2-Clause"
] | null | null | null | talpa/iomesh.cpp | q349wang/eltopo | a63a43d2a890c53f8e0c51034c46ce01ead86564 | [
"BSD-2-Clause"
] | null | null | null | talpa/iomesh.cpp | q349wang/eltopo | a63a43d2a890c53f8e0c51034c46ce01ead86564 | [
"BSD-2-Clause"
] | null | null | null |
// ---------------------------------------------------------
//
// iomesh.cpp
//
// Non-member functions for reading and writing various mesh file formats.
//
// ---------------------------------------------------------
#include <iomesh.h>
#include <bfstream.h>
#include <cstdarg>
#include <cstdlib>
#include <cmat... | 27.739802 | 169 | 0.492965 | q349wang |
208beb25cb46baf46f48d288100066e82922dd40 | 414 | cpp | C++ | problems/009.cpp | hsw0905/Algorithm_study | ab0670f89ae6252393984ffeab9c50d4300b7f16 | [
"MIT"
] | null | null | null | problems/009.cpp | hsw0905/Algorithm_study | ab0670f89ae6252393984ffeab9c50d4300b7f16 | [
"MIT"
] | null | null | null | problems/009.cpp | hsw0905/Algorithm_study | ab0670f89ae6252393984ffeab9c50d4300b7f16 | [
"MIT"
] | null | null | null | // 모두의 약수(제한시간 1초)
// 시간복잡도 줄이기 : j = j + i (약수 n을 갖는다 == n의 배수는 모두 해당)
#include <stdio.h>
#define MAX_LENGTH (50001)
int main()
{
freopen("input_009.txt", "rt", stdin);
int num, i, j, cnt[MAX_LENGTH];
scanf("%d", &num);
for (i = 1; i <= num; i++)
{
// i를 약수로 갖는 숫자를 찾는 작업
for (j = i; j <= num; j = j + i)
... | 15.333333 | 52 | 0.490338 | hsw0905 |
208eb5a8c672bd40b5ec87d741bd901cc6dd9ca4 | 804 | cpp | C++ | leetcode2/lettercombinationsofaphonenumber.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | 1 | 2016-01-20T08:26:34.000Z | 2016-01-20T08:26:34.000Z | leetcode2/lettercombinationsofaphonenumber.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | 1 | 2015-10-21T05:38:17.000Z | 2015-11-02T07:42:55.000Z | leetcode2/lettercombinationsofaphonenumber.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
vector<string> letterCombinations(string digits) {
vector<string> res;
if(digits.size()==0){
return res;
}
vector<string> books={"abc","def","ghi","jkl","mno","pqrs","tuv","wxyz"};
string path;
helper(path, books,... | 28.714286 | 100 | 0.496269 | WIZARD-CXY |
209ef491137cc4c976730c1f645b35aeec81fd47 | 1,623 | cpp | C++ | src/analyzers/filters/filter_factory.cpp | Lolik111/meta | c7019401185cdfa15e1193aad821894c35a83e3f | [
"MIT"
] | 615 | 2015-01-31T17:14:03.000Z | 2022-03-27T03:03:02.000Z | src/analyzers/filters/filter_factory.cpp | Lolik111/meta | c7019401185cdfa15e1193aad821894c35a83e3f | [
"MIT"
] | 167 | 2015-01-20T17:48:16.000Z | 2021-12-20T00:15:29.000Z | src/analyzers/filters/filter_factory.cpp | Lolik111/meta | c7019401185cdfa15e1193aad821894c35a83e3f | [
"MIT"
] | 264 | 2015-01-30T00:08:01.000Z | 2022-03-02T17:19:11.000Z | /**
* @file filter_factory.cpp
* @author Chase Geigle
*/
#include "meta/analyzers/filter_factory.h"
#include "meta/analyzers/tokenizers/character_tokenizer.h"
#include "meta/analyzers/tokenizers/whitespace_tokenizer.h"
#include "meta/analyzers/tokenizers/icu_tokenizer.h"
#include "meta/analyzers/filters/all.h"
n... | 27.508475 | 78 | 0.71719 | Lolik111 |
20a740f1a3c0afc62b7f68b98e8b99fa6dd6e511 | 613 | cpp | C++ | atcoder/abc097/C/main.cpp | xirc/cp-algorithm | 89c67cff2f00459c5bb020ab44bff5ae419a1728 | [
"Apache-2.0"
] | 8 | 2020-12-23T07:54:53.000Z | 2021-11-23T02:46:35.000Z | atcoder/abc097/C/main.cpp | xirc/cp-algorithm | 89c67cff2f00459c5bb020ab44bff5ae419a1728 | [
"Apache-2.0"
] | 1 | 2020-11-07T13:22:29.000Z | 2020-12-20T12:54:00.000Z | atcoder/abc097/C/main.cpp | xirc/cp-algorithm | 89c67cff2f00459c5bb020ab44bff5ae419a1728 | [
"Apache-2.0"
] | 1 | 2021-01-16T03:40:10.000Z | 2021-01-16T03:40:10.000Z | #include <bits/stdc++.h>
using namespace std;
// o(NK * log(NK) * K)
string solve(string const& S, int K) {
const int N = S.size();
vector<string> M;
for (int l = 0; l < N; ++l) {
for (int c = 1; c <= K && l + c <= N; ++c) {
string ss = S.substr(l, c);
M.push_back(ss);
... | 19.774194 | 52 | 0.468189 | xirc |
20a8fda06a2a5c2f8d1d586db8f78869f26ca729 | 1,549 | hpp | C++ | src/elona/lua_env/lua_class/lua_class_ability.hpp | XrosFade/ElonaFoobar | c33880080e0b475103ae3ea7d546335f9d4abd02 | [
"MIT"
] | null | null | null | src/elona/lua_env/lua_class/lua_class_ability.hpp | XrosFade/ElonaFoobar | c33880080e0b475103ae3ea7d546335f9d4abd02 | [
"MIT"
] | null | null | null | src/elona/lua_env/lua_class/lua_class_ability.hpp | XrosFade/ElonaFoobar | c33880080e0b475103ae3ea7d546335f9d4abd02 | [
"MIT"
] | 1 | 2020-02-24T18:52:19.000Z | 2020-02-24T18:52:19.000Z | #pragma once
#include "../handle_manager.hpp"
#include "../lua_api/lua_api_common.hpp"
namespace elona
{
namespace lua
{
/**
* Userdata object used to validate the handle reference it was created from.
* For example, when a skill reference is retrieved from a character, it can be
* tested for validity by compari... | 19.858974 | 80 | 0.59264 | XrosFade |
20b12d09a36904ae0f619da353d14a646edaaf65 | 1,148 | cpp | C++ | Source/TsuRuntime/Private/TsuStringConv.cpp | mihe/tsu | 5656ace9cb631b1ec60346b833e9233ded78e2c1 | [
"Apache-2.0"
] | 72 | 2019-03-25T18:01:55.000Z | 2022-01-24T05:22:51.000Z | Source/TsuRuntime/Private/TsuStringConv.cpp | shakirullah7892/tsu | 5656ace9cb631b1ec60346b833e9233ded78e2c1 | [
"Apache-2.0"
] | 39 | 2019-03-25T19:03:13.000Z | 2019-05-12T10:17:41.000Z | Source/TsuRuntime/Private/TsuStringConv.cpp | shakirullah7892/tsu | 5656ace9cb631b1ec60346b833e9233ded78e2c1 | [
"Apache-2.0"
] | 9 | 2019-04-30T03:08:32.000Z | 2022-03-13T03:13:36.000Z | #include "TsuStringConv.h"
#include "TsuIsolate.h"
v8::Local<v8::String> FTsuStringConv::To(const FString& String)
{
return To(*String, String.Len());
}
v8::Local<v8::String> FTsuStringConv::To(const TCHAR* String, int32 Length)
{
static_assert(sizeof(TCHAR) == sizeof(uint16_t), "Character size mismatch... | 27.333333 | 81 | 0.703833 | mihe |
20b965c2043d66777ca93e6a534fbce6b42eb1ef | 1,552 | cpp | C++ | Recursion and Backtracking/palindromicPemutations.cpp | Ankitlenka26/IP2021 | 99322c9c84a8a9c9178a505afbffdcebd312b059 | [
"MIT"
] | null | null | null | Recursion and Backtracking/palindromicPemutations.cpp | Ankitlenka26/IP2021 | 99322c9c84a8a9c9178a505afbffdcebd312b059 | [
"MIT"
] | null | null | null | Recursion and Backtracking/palindromicPemutations.cpp | Ankitlenka26/IP2021 | 99322c9c84a8a9c9178a505afbffdcebd312b059 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <map>
using namespace std;
void palindromicPerm(int i, int n, map<char, int> &freqm, char oddc, string asf)
{
// base case
if (i > n)
{
string res = asf;
if (oddc != '0')
{
res += oddc;... | 20.155844 | 80 | 0.449742 | Ankitlenka26 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.