text
stringlengths
24
1.04M
metadata
stringlengths
233
497
### File: tools/xrdb2Xresources.py #!/usr/bin/env python import argparse from collections import OrderedDict import sys from glob import glob from os.path import join, splitext, basename PREFIXES = ('XTerm', 'Rxvt', 'Urxvt') XRDB2XRES = [ ("# Head", "\n" "! Generated with :" "\n" "! X...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/iTerm2-Color-Schemes", "path": "tools/xrdb2Xresources.py", "license": "mit", "size": 3823}
### File: tools/xrdb2alacritty.py #!/usr/bin/env python3 # This script converts .xrdb files to alacritty color schemes # # Usage: # xrdb2alacritty.py path/to/xrdb/files -d /alacritty/schemes/output # # Based on xrdb2dynamic_color.py by Wez Furlong # Patched by Shlyakhov Mikhail import argparse import os import yaml ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/iTerm2-Color-Schemes", "path": "tools/xrdb2alacritty.py", "license": "mit", "size": 2589}
### File: tools/xrdb2dynamic_color.py #!/usr/bin/env python3 # This script converts xrdb (X11) color scheme format to xterm style # dynamic color OSC escape sequence scripts. # The generated scripts allow changing the theme of the terminal # on the fly. xterm, urxvt and wezterm are known to support these # sequences....
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/iTerm2-Color-Schemes", "path": "tools/xrdb2dynamic_color.py", "license": "mit", "size": 2014}
### File: tools/xrdb2electerm.py #!/usr/bin/env python3 # This script converts xrdb (X11) color scheme format to # the new electerm(https://github.com/electerm/electerm) color scheme format # # Usage: # xrdb2electerm.py path/to/xrdb/files -d path/to/electerm/output # Modify from "tools/xrdb2windowsterminal.py" impor...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/iTerm2-Color-Schemes", "path": "tools/xrdb2electerm.py", "license": "mit", "size": 3209}
### File: tools/xrdb2freebsd_vt.py #!/usr/bin/env python # This script converts xrdb (X11) color scheme format to vt(4) color # scheme format # # Usage: # xrdb2freebsd_vt.py path/to/xrdb/files -d /xfce4terminal/colorschemes/output # # Based of xrdb2terminator by Xabier Larrakoetxea # Patched by Tobias Kortkamp import ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/iTerm2-Color-Schemes", "path": "tools/xrdb2freebsd_vt.py", "license": "mit", "size": 2419}
### File: tools/xrdb2hterm #!/usr/bin/env ruby # # Converts xrdb(1) color schemes into Chrome Secure Shell preferences format # and prints the result to STDOUT. Reads STDIN if no input files are given. # # Usage: xrdb2hterm FILE... # Usage: cat FILE... | xrdb2hterm # Usage: xrdb2hterm < INPUT # #-- # Written in 2014 b...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Ruby", "repo_name": "minhanghuang/iTerm2-Color-Schemes", "path": "tools/xrdb2hterm", "license": "mit", "size": 1628}
### File: tools/xrdb2kitty.py #!/usr/bin/env python from __future__ import print_function import argparse import sys from collections import OrderedDict from glob import glob from os.path import basename, join, splitext XRDB2KITTY = OrderedDict(("ansi_%s_color" % c, "color%s" % c) for c in range(16)) for k, v in [ ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/iTerm2-Color-Schemes", "path": "tools/xrdb2kitty.py", "license": "mit", "size": 1913}
### File: tools/xrdb2konsole.py #!/usr/bin/env python # coding: utf-8 # # This script converts xrdb (X11) color scheme format to Konsole color # scheme format # # Usage: # xrdb2konsole.py path/to/xrdb/files -d /konsole/schemes/output # # Author: Stéphane Travostino # Adapted from xrdb2terminator by Xabier Larrakoetxea ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/iTerm2-Color-Schemes", "path": "tools/xrdb2konsole.py", "license": "mit", "size": 3369}
### File: tools/xrdb2lxterm.py #!/usr/bin/env python # coding: utf-8 # # This script converts xrdb (X11) color scheme to lxterminal.conf file format # Users can paste the color configuration in the lxterminal.conf file # Modify from "xrdb2moba.py" # # Usage: # xrdb2lxterm.py path/to/xrdb/files -d path/to/lxterm/files #...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/iTerm2-Color-Schemes", "path": "tools/xrdb2lxterm.py", "license": "mit", "size": 3095}
### File: tools/xrdb2moba.py #!/usr/bin/env python # coding: utf-8 # # This script converts xrdb (X11) color scheme MobaXterm.ini file format # Users can paste the color configuration in the MobaXterm.ini file (Must close the MobaXterm beforehand) # Modify from "xrdb2putty.py" # # Usage: # xrdb2moba.py path/to/xrdb/fi...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/iTerm2-Color-Schemes", "path": "tools/xrdb2moba.py", "license": "mit", "size": 4093}
### File: tools/xrdb2pantheon_terminal.py #!/usr/bin/env python # This script converts xrdb (X11) color scheme format to terminator color # scheme format # # Usage: # xrdb2xfce_terminal.py path/to/xrdb/files -d /xfce4terminal/colorschemes/output # # Based of xrdb2terminator by Xabier Larrakoetxea # Patched by Konstant...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/iTerm2-Color-Schemes", "path": "tools/xrdb2pantheon_terminal.py", "license": "mit", "size": 2931}
### File: tools/xrdb2putty.py #!/usr/bin/env python # coding: utf-8 # # This script converts xrdb (X11) color scheme format to PuTTY registry # file which creates a new session with proper colors. # # Usage: # xrdb2putty.py path/to/xrdb/files -d path/to/putty/files # # Author: Caesar Kabalan <caesar.kabalan@gmail.com>...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/iTerm2-Color-Schemes", "path": "tools/xrdb2putty.py", "license": "mit", "size": 3879}
### File: tools/xrdb2terminator.py #!/usr/bin/env python # This script converts xrdb (X11) color scheme format to terminator color # scheme format # # Usage: # xrdb2terminator.py path/to/xrdb/files -d /terminator/schemes/output # # Author: Xabier Larrakoetxea import os import re import argparse def main(xrdb_path, ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/iTerm2-Color-Schemes", "path": "tools/xrdb2terminator.py", "license": "mit", "size": 2627}
### File: tools/xrdb2vscode.py #!/usr/bin/env python3 # This script converts xrdb (X11) color scheme format to # the new Windows Terminal color scheme format # # Usage: # xrdb2windowsterminal.py path/to/xrdb/files -d /windowsterminal/output import os import re import argparse from xrdbparser import Xrdb def process...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/iTerm2-Color-Schemes", "path": "tools/xrdb2vscode.py", "license": "mit", "size": 2123}
### File: tools/xrdb2wezterm.py #!/usr/bin/env python3 # This script converts xrdb (X11) color scheme format to wezterm color # scheme format # # Usage: # xrdb2wezterm.py path/to/xrdb/files -d /wezterm/output import os import re import argparse from xrdbparser import Xrdb def process_file(data): quoted_colors =...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/iTerm2-Color-Schemes", "path": "tools/xrdb2wezterm.py", "license": "mit", "size": 1843}
### File: tools/xrdb2windowsterminal.py #!/usr/bin/env python3 # This script converts xrdb (X11) color scheme format to # the new Windows Terminal color scheme format # # Usage: # xrdb2windowsterminal.py path/to/xrdb/files -d /windowsterminal/output import os import re import argparse from xrdbparser import Xrdb de...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/iTerm2-Color-Schemes", "path": "tools/xrdb2windowsterminal.py", "license": "mit", "size": 2123}
### File: tools/xrdb2xfce_terminal.py #!/usr/bin/env python # This script converts xrdb (X11) color scheme format to terminator color # scheme format # # Usage: # xrdb2xfce_terminal.py path/to/xrdb/files -d /xfce4terminal/colorschemes/output # # Based of xrdb2terminator by Xabier Larrakoetxea # Patched by Konstantin A...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/iTerm2-Color-Schemes", "path": "tools/xrdb2xfce_terminal.py", "license": "mit", "size": 2622}
### File: tools/xrdbparser.py import os import re xrdb_regex = re.compile("(.+)\.[xX][rR][dD][bB]$") class Xrdb(object): def __init__(self, filename): """Parse an xrdb file""" self.name = xrdb_regex.match(os.path.basename(filename)).group(1) self.colors = [None] * 16 color_rege...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/iTerm2-Color-Schemes", "path": "tools/xrdbparser.py", "license": "mit", "size": 1089}
### File: CMakeLists.txt cmake_minimum_required(VERSION 3.5) project(Assignment) unset(CMAKE_CXX_FLAGS CACHE) unset(CMAKE_CXX_FLAGS_RELEASE CACHE) unset(CMAKE_CXX_FLAGS_DEBUG CACHE) find_package(OpenMP) if (OPENMP_FOUND) list(APPEND CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}") list(APPEND CMAKE_CXX_FL...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/muSSP", "path": "CMakeLists.txt", "license": "apache-2.0", "size": 1242}
### File: FollowMe/CMakeLists.txt cmake_minimum_required (VERSION 3.5) project(FollowMe) set(SOURCES Graph.cpp main.cpp Node.cpp Sink.cpp ) set(HEADERS Graph.h Node.h Sink.h ) ADD_EXECUTABLE(${PROJECT_NAME} ${SOURCES} ${HEADERS}) # TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${LIBS})
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/muSSP", "path": "FollowMe/CMakeLists.txt", "license": "apache-2.0", "size": 278}
### File: FollowMe/Graph.cpp #include <set> #include "Graph.h" /****shared macros****/ #define MAX(x, y) ( ( (x) > (y) ) ? x : y ) #define MIN(x, y) ( ( (x) < (y) ) ? x : y ) #define abs(x) ( ( (x) < 0 ) ? -x : x ) #define REDUCED_EDGE_WEIGHTS(i, j, e) {\ edge_weights[e] += distance2src[i];\ edge_weights[e] -...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/muSSP", "path": "FollowMe/Graph.cpp", "license": "apache-2.0", "size": 15106}
### File: FollowMe/Graph.h #pragma once #include "Node.h" #include "Sink.h" #include <stack> #include <vector> #include <queue> #include <limits.h> #include <unordered_map> #include <iostream> #include <algorithm> // std::find #include <cstring> #include <fstream> /// /// \brief The Graph class /// class Graph { pu...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/muSSP", "path": "FollowMe/Graph.h", "license": "apache-2.0", "size": 2949}
### File: FollowMe/Node.cpp #include "Node.h" //#include <algorithm> //int Node::get_id() const { // return node_id; //} void Node::add_precursor(int pre_id, int pre_edge_id, double weight) { this->precursor_idx.push_back(pre_id); this->precursor_edges_idx.push_back(pre_edge_id); this->precursor_edges_...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/muSSP", "path": "FollowMe/Node.cpp", "license": "apache-2.0", "size": 1375}
### File: FollowMe/Node.h #pragma once #include <vector> //#include <iostream> class Node { public: Node() = default; // int get_id() const; // int node_id = 0; // double shortest_path; std::vector<int> precursor_idx; std::vector<int> precursor_edges_idx; std::vector<double> precursor_edges_w...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/muSSP", "path": "FollowMe/Node.h", "license": "apache-2.0", "size": 806}
### File: FollowMe/Sink.cpp #include "Sink.h" Sink::Sink(int n, double sink_cost){ sink_cost_ = sink_cost; sink_precursor_weights.assign(n, FINF); //sink_precursor_weights[0] = FINF; // src has 0 weights // used_sink_precursor.assign(n, false); } /**0 is src and n is sink, 1,3,5... is former node, 2,4...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/muSSP", "path": "FollowMe/Sink.cpp", "license": "apache-2.0", "size": 2363}
### File: FollowMe/Sink.h #pragma once #include <vector> #include <algorithm> /* fabs */ //#include<bits/stdc++.h> #include <map> #include <limits> //#include <iostream> #define FINF 1000000.0 //numeric_limits<double>::max() #define FINFHALF FINF/2.0 class Sink { public: // use set to save sink's precursors' d...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/muSSP", "path": "FollowMe/Sink.h", "license": "apache-2.0", "size": 1101}
### File: FollowMe/main.cpp #include <iostream> #include <fstream> #include <stdio.h> #include "Graph.h" #include <ctime> #include <numeric> #include <algorithm> #include <memory> #include <iostream> #include <string> #include <array> /// /// \brief init /// \param filename /// \return /// Graph* init(std::string file...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/muSSP", "path": "FollowMe/main.cpp", "license": "apache-2.0", "size": 7015}
### File: FollowMe/makefile # change these to suit your system CCOMP = g++ -std=c++14 #CCOMP = gcc-4 #CFLAGS = -O4 -DNDEBUG #CFLAGS = -g -DCHECK_SOLUTION -Wall CFLAGS = -g -Wall #CFLAGS = -O4 -DNDEBUG -DNO_ZERO_CYCLES BIN=dSSP followme: main.o Graph.o Node.o Sink.o g++ main.o Graph.o Node.o Sink.o -DPRINT_ANS -DCOMP_...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Makefile", "repo_name": "minhanghuang/muSSP", "path": "FollowMe/makefile", "license": "apache-2.0", "size": 512}
### File: SSP/CMakeLists.txt cmake_minimum_required (VERSION 3.5) project(SSP) set(SOURCES Graph.cpp main.cpp Node.cpp Sink.cpp ) set(HEADERS Graph.h Node.h Sink.h ) ADD_EXECUTABLE(${PROJECT_NAME} ${SOURCES} ${HEADERS}) # TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${LIBS})
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/muSSP", "path": "SSP/CMakeLists.txt", "license": "apache-2.0", "size": 273}
### File: SSP/Graph.cpp #include "Graph.h" /****shared macros****/ #define MAX(x, y) ( ( (x) > (y) ) ? x : y ) #define MIN(x, y) ( ( (x) < (y) ) ? x : y ) #define abs(x) ( ( (x) < 0 ) ? -x : x ) #define REDUCED_EDGE_WEIGHTS(i, j, e) {\ edge_weights[e] += distance2src[i];\ edge_weights[e] -= distance2src[j];\ ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/muSSP", "path": "SSP/Graph.cpp", "license": "apache-2.0", "size": 12565}
### File: SSP/Graph.h #pragma once #include "Node.h" #include "Sink.h" #include <stack> #include <vector> #include <queue> #include <limits.h> #include <unordered_map> #include <iostream> #include <algorithm> // std::find #include <cstring> #include <fstream> /// /// \brief The Graph class /// class Graph { public...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/muSSP", "path": "SSP/Graph.h", "license": "apache-2.0", "size": 2915}
### File: SSP/Node.cpp #include "Node.h" //#include <algorithm> //int Node::get_id() const { // return node_id; //} void Node::add_precursor(int pre_id, int pre_edge_id, double weight) { this->precursor_idx.push_back(pre_id); this->precursor_edges_idx.push_back(pre_edge_id); this->precursor_edges_weigh...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/muSSP", "path": "SSP/Node.cpp", "license": "apache-2.0", "size": 1375}
### File: SSP/Node.h #pragma once #include <vector> class Node { public: Node() = default; // int get_id() const; // int node_id = 0; // double shortest_path; std::vector<int> precursor_idx; std::vector<int> precursor_edges_idx; std::vector<double> precursor_edges_weights; std::vector<i...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/muSSP", "path": "SSP/Node.h", "license": "apache-2.0", "size": 785}
### File: SSP/Sink.cpp #include "Sink.h" Sink::Sink(int n, double sink_cost){ sink_cost_ = sink_cost; sink_precursor_weights.assign(n, FINF); //sink_precursor_weights[0] = FINF; // src has 0 weights // used_sink_precursor.assign(n, false); } /**0 is src and n is sink, 1,3,5... is former node, 2,4,6......
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/muSSP", "path": "SSP/Sink.cpp", "license": "apache-2.0", "size": 2825}
### File: SSP/Sink.h #pragma once #include <vector> #include <algorithm> /* fabs */ //#include<bits/stdc++.h> #include <map> #include <limits> //#include <iostream> #define FINF 1000000.0 //numeric_limits<double>::max() #define FINFHALF FINF/2.0 class Sink { public: // use set to save sink's precursors' distan...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/muSSP", "path": "SSP/Sink.h", "license": "apache-2.0", "size": 1103}
### File: SSP/main.cpp #include <iostream> #include <fstream> #include <stdio.h> #include "Graph.h" #include <ctime> #include <numeric> #include <algorithm> #include <memory> #include <iostream> #include <string> #include <array> /// /// \brief init /// \param filename /// \return /// Graph* init(std::string filename)...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/muSSP", "path": "SSP/main.cpp", "license": "apache-2.0", "size": 6058}
### File: SSP/makefile # change these to suit your system CCOMP = g++ -std=c++14 #CCOMP = gcc-4 #CFLAGS = -O4 -DNDEBUG #CFLAGS = -g -DCHECK_SOLUTION -Wall CFLAGS = -g -Wall #CFLAGS = -O4 -DNDEBUG -DNO_ZERO_CYCLES BIN=SSP sst: main.o Graph.o Node.o Sink.o g++ main.o Graph.o Node.o Sink.o -DPRINT_ANS -DCOMP_DUALS -DCOS...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Makefile", "repo_name": "minhanghuang/muSSP", "path": "SSP/makefile", "license": "apache-2.0", "size": 506}
### File: muSSP/CMakeLists.txt cmake_minimum_required (VERSION 3.5) project(muSSP) set(SOURCES Graph.cpp main.cpp Node.cpp Sink.cpp ) set(HEADERS Graph.h Node.h Sink.h ) ADD_EXECUTABLE(${PROJECT_NAME} ${SOURCES} ${HEADERS}) # TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${LIBS})
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/muSSP", "path": "muSSP/CMakeLists.txt", "license": "apache-2.0", "size": 275}
### File: muSSP/Graph.cpp #include "Graph.h" /****shared macros****/ #define MAX(x, y) ( ( (x) > (y) ) ? x : y ) #define MIN(x, y) ( ( (x) < (y) ) ? x : y ) #define abs(x) ( ( (x) < 0 ) ? -x : x ) #define REDUCED_EDGE_WEIGHTS(i, j, e) {\ edge_weights[e] += distance2src[i];\ edge_weights[e] -= distance2src[j];...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/muSSP", "path": "muSSP/Graph.cpp", "license": "apache-2.0", "size": 23307}
### File: muSSP/Graph.h #pragma once #include "Node.h" #include "Sink.h" #include <stack> #include <vector> #include <queue> #include <limits.h> #include <unordered_map> #include <iostream> #include <algorithm> // std::find #include <cstring> #include <fstream> #include <memory> /// /// \brief The Graph class /// ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/muSSP", "path": "muSSP/Graph.h", "license": "apache-2.0", "size": 3102}
### File: muSSP/Node.cpp #include "Node.h" //#include <algorithm> //int Node::get_id() const { // return node_id; //} void Node::add_precursor(int pre_id, int pre_edge_id, double weight) { this->precursor_idx.push_back(pre_id); this->precursor_edges_idx.push_back(pre_edge_id); this->precursor_edges_wei...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/muSSP", "path": "muSSP/Node.cpp", "license": "apache-2.0", "size": 1375}
### File: muSSP/Node.h #pragma once #include <vector> class Node { public: Node() = default; // int get_id() const; // int node_id = 0; // double shortest_path; std::vector<int> precursor_idx; std::vector<int> precursor_edges_idx; std::vector<double> precursor_edges_weights; std::vector<...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/muSSP", "path": "muSSP/Node.h", "license": "apache-2.0", "size": 784}
### File: muSSP/Sink.cpp #include "Sink.h" Sink::Sink(int n, double sink_cost){ sink_cost_ = sink_cost; sink_precursor_weights.assign(n, FINF); //sink_precursor_weights[0] = FINF; // src has 0 weights // used_sink_precursor.assign(n, false); } /**0 is src and n is sink, 1,3,5... is former node, 2,4,6....
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/muSSP", "path": "muSSP/Sink.cpp", "license": "apache-2.0", "size": 2949}
### File: muSSP/Sink.h #pragma once #include <vector> #include "Node.h" #include <algorithm> /* fabs */ //#include<bits/stdc++.h> #include <map> #include <limits> //#include <iostream> #define FINF 1000000.0 //numeric_limits<double>::max() #define FINFHALF FINF/2.0 /// /// \brief The Sink class /// class Sink ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/muSSP", "path": "muSSP/Sink.h", "license": "apache-2.0", "size": 1203}
### File: muSSP/main.cpp #include <iostream> #include <fstream> #include <stdio.h> #include "Graph.h" #include <ctime> #include <numeric> #include <algorithm> #include <iostream> #include <string> #include <array> /// /// \brief init /// \param filename /// \return /// Graph* init(std::string filename) { char pr_t...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/muSSP", "path": "muSSP/main.cpp", "license": "apache-2.0", "size": 8700}
### File: muSSP/makefile # change these to suit your system CCOMP = g++ -std=c++14 #CCOMP = gcc-4 #CFLAGS = -O4 -DNDEBUG #CFLAGS = -g -DCHECK_SOLUTION -Wall CFLAGS = -g -Wall #CFLAGS = -O4 -DNDEBUG -DNO_ZERO_CYCLES BIN=muSSP pesudo_sst: main.o Graph.o Node.o Sink.o g++ main.o Graph.o Node.o Sink.o -DPRINT_ANS -DCOMP_...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Makefile", "repo_name": "minhanghuang/muSSP", "path": "muSSP/makefile", "license": "apache-2.0", "size": 515}
### File: CMakeLists.txt # ---------------------------------------------------------------------------- # Root CMake file for nanoflann # ---------------------------------------------------------------------------- cmake_minimum_required(VERSION 3.1) # Extract library version into "NANOFLANN_VERSION" # ---------------...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/nanoflann", "path": "CMakeLists.txt", "license": "bsd", "size": 7057}
### File: benchmarkTool/CMakeLists.txt ADD_CUSTOM_TARGET(benchmarks) add_subdirectory(realTests) add_subdirectory(randomTests)
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/nanoflann", "path": "benchmarkTool/CMakeLists.txt", "license": "bsd", "size": 90}
### File: benchmarkTool/randomTests/CMakeLists.txt ADD_EXECUTABLE(benchmark_nanoflann_random benchmark_nanoflann_random.cpp) TARGET_LINK_LIBRARIES(benchmark_nanoflann_random nanoflann::nanoflann) ADD_DEPENDENCIES(benchmarks benchmark_nanoflann_random) set(flann_INCLUDE_DIRS "${CMAKE_SOURCE_DIR}/3rdparty/flann/src/cpp"...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/nanoflann", "path": "benchmarkTool/randomTests/CMakeLists.txt", "license": "bsd", "size": 1596}
### File: benchmarkTool/randomTests/benchmark_fastann_random.cpp /*********************************************************************** * Software License Agreement (BSD License) * * Copyright 2011-2016 Jose Luis Blanco (joseluisblancoc@gmail.com). * All rights reserved. * * Redistribution and use in source a...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/nanoflann", "path": "benchmarkTool/randomTests/benchmark_fastann_random.cpp", "license": "bsd", "size": 4004}
### File: benchmarkTool/randomTests/benchmark_flann_random.cpp /*********************************************************************** * Software License Agreement (BSD License) * * Copyright 2011-2016 Jose Luis Blanco (joseluisblancoc@gmail.com). * All rights reserved. * * Redistribution and use in source and...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/nanoflann", "path": "benchmarkTool/randomTests/benchmark_flann_random.cpp", "license": "bsd", "size": 4062}
### File: benchmarkTool/randomTests/benchmark_libkdtree_random.cpp /*********************************************************************** * Software License Agreement (BSD License) * * Copyright 2011-2016 Jose Luis Blanco (joseluisblancoc@gmail.com). * All rights reserved. * * Redistribution and use in source...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/nanoflann", "path": "benchmarkTool/randomTests/benchmark_libkdtree_random.cpp", "license": "bsd", "size": 5746}
### File: benchmarkTool/randomTests/benchmark_nanoflann_random.cpp /*********************************************************************** * Software License Agreement (BSD License) * * Copyright 2011-2016 Jose Luis Blanco (joseluisblancoc@gmail.com). * All rights reserved. * * Redistribution and use in source...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/nanoflann", "path": "benchmarkTool/randomTests/benchmark_nanoflann_random.cpp", "license": "bsd", "size": 5741}
### File: benchmarkTool/randomTests/randomTests.py #!/usr/bin/python import sys import os import matplotlib.pyplot as plt import subprocess # calculate mean and standard deviation of an observation def cal(MatrixTime, col): meanVal = 0.0 stdVal = 0.0 numRepetitions = len(MatrixTime) for i in range(numRepetitions)...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/nanoflann", "path": "benchmarkTool/randomTests/randomTests.py", "license": "bsd", "size": 6937}
### File: benchmarkTool/realTests/CMakeLists.txt ADD_EXECUTABLE(benchmark_nanoflann_real benchmark_nanoflann_real.cpp) TARGET_LINK_LIBRARIES(benchmark_nanoflann_real nanoflann::nanoflann) ADD_DEPENDENCIES(benchmarks benchmark_nanoflann_real) set(flann_INCLUDE_DIRS "${CMAKE_SOURCE_DIR}/3rdparty/flann/src/cpp") include...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/nanoflann", "path": "benchmarkTool/realTests/CMakeLists.txt", "license": "bsd", "size": 1551}
### File: benchmarkTool/realTests/benchmark_fastann_real.cpp /*********************************************************************** * Software License Agreement (BSD License) * * Copyright 2011-2016 Jose Luis Blanco (joseluisblancoc@gmail.com). * All rights reserved. * * Redistribution and use in source and b...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/nanoflann", "path": "benchmarkTool/realTests/benchmark_fastann_real.cpp", "license": "bsd", "size": 4508}
### File: benchmarkTool/realTests/benchmark_flann_real.cpp /*********************************************************************** * Software License Agreement (BSD License) * * Copyright 2011-2016 Jose Luis Blanco (joseluisblancoc@gmail.com). * All rights reserved. * * Redistribution and use in source and bin...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/nanoflann", "path": "benchmarkTool/realTests/benchmark_flann_real.cpp", "license": "bsd", "size": 4584}
### File: benchmarkTool/realTests/benchmark_libkdtree_real.cpp /*********************************************************************** * Software License Agreement (BSD License) * * Copyright 2011-2016 Jose Luis Blanco (joseluisblancoc@gmail.com). * All rights reserved. * * Redistribution and use in source and...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/nanoflann", "path": "benchmarkTool/realTests/benchmark_libkdtree_real.cpp", "license": "bsd", "size": 6250}
### File: benchmarkTool/realTests/benchmark_nanoflann_real.cpp /*********************************************************************** * Software License Agreement (BSD License) * * Copyright 2011-2016 Jose Luis Blanco (joseluisblancoc@gmail.com). * All rights reserved. * * Redistribution and use in source and...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/nanoflann", "path": "benchmarkTool/realTests/benchmark_nanoflann_real.cpp", "license": "bsd", "size": 6171}
### File: benchmarkTool/realTests/realTests.py #!/usr/bin/python import sys import matplotlib.pyplot as plt import subprocess import os # calculate mean and standard deviation of an observation def cal(MatrixTime, col): meanVal = 0.0 stdVal = 0.0 numRepetitions = len(MatrixTime) for i in range(numRepetitions): ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/nanoflann", "path": "benchmarkTool/realTests/realTests.py", "license": "bsd", "size": 7035}
### File: benchmarkTool/tool.py #!/usr/bin/python import os import tkFont import Tkinter as tk from Tkinter import Tk from tkFileDialog import askopenfilename filename1 = '' filename2 = '' def realTests(window, nanoflannFlag, flannFlag, fastannFlag, libkdtreeFlag): libState = [nanoflannFlag.get(), flannFlag.get(), ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/nanoflann", "path": "benchmarkTool/tool.py", "license": "bsd", "size": 6434}
### File: examples/CMakeLists.txt find_package(Eigen3 QUIET) # examples: MACRO(DEFINE_EXAMPLE _NAME) ADD_EXECUTABLE(${_NAME} ${_NAME}.cpp) set_target_properties(${_NAME} PROPERTIES FOLDER "Examples") TARGET_LINK_LIBRARIES(${_NAME} nanoflann::nanoflann) # adds the "#include" directory. install(TARGETS ${_NAME} ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/nanoflann", "path": "examples/CMakeLists.txt", "license": "bsd", "size": 770}
### File: examples/KDTreeVectorOfVectorsAdaptor.h /*********************************************************************** * Software License Agreement (BSD License) * * Copyright 2011-16 Jose Luis Blanco (joseluisblancoc@gmail.com). * All rights reserved. * * Redistribution and use in source and binary forms, ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/nanoflann", "path": "examples/KDTreeVectorOfVectorsAdaptor.h", "license": "bsd", "size": 5436}
### File: examples/SO2_adaptor_example.cpp /*********************************************************************** * Software License Agreement (BSD License) * * Copyright 2011-2016 Jose Luis Blanco (joseluisblancoc@gmail.com). * All rights reserved. * * Redistribution and use in source and binary forms, with ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/nanoflann", "path": "examples/SO2_adaptor_example.cpp", "license": "bsd", "size": 2799}
### File: examples/SO3_adaptor_example.cpp /*********************************************************************** * Software License Agreement (BSD License) * * Copyright 2011-2016 Jose Luis Blanco (joseluisblancoc@gmail.com). * All rights reserved. * * Redistribution and use in source and binary forms, with ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/nanoflann", "path": "examples/SO3_adaptor_example.cpp", "license": "bsd", "size": 2805}
### File: examples/dynamic_pointcloud_example.cpp /*********************************************************************** * Software License Agreement (BSD License) * * Copyright 2011-2016 Jose Luis Blanco (joseluisblancoc@gmail.com). * All rights reserved. * * Redistribution and use in source and binary forms...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/nanoflann", "path": "examples/dynamic_pointcloud_example.cpp", "license": "bsd", "size": 5053}
### File: examples/example_with_pkgconfig/Makefile # Example Makefile script # Purpose: Demonstrate usage of pkg-config with the nanoflann library # By: Jose Luis Blanco, 2011 # # ========================= *IMPORTANT* ================================ # For this method to work nanoflann must be installed in your # ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Makefile", "repo_name": "minhanghuang/nanoflann", "path": "examples/example_with_pkgconfig/Makefile", "license": "bsd", "size": 981}
### File: examples/example_with_pkgconfig/pointcloud_example.cpp /*********************************************************************** * Software License Agreement (BSD License) * * Copyright 2011 Jose Luis Blanco (joseluisblancoc@gmail.com). * All rights reserved. * * Redistribution and use in source and bi...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/nanoflann", "path": "examples/example_with_pkgconfig/pointcloud_example.cpp", "license": "bsd", "size": 2717}
### File: examples/matrix_example.cpp /*********************************************************************** * Software License Agreement (BSD License) * * Copyright 2011-2016 Jose Luis Blanco (joseluisblancoc@gmail.com). * All rights reserved. * * Redistribution and use in source and binary forms, with or wi...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/nanoflann", "path": "examples/matrix_example.cpp", "license": "bsd", "size": 5036}
### File: examples/pointcloud_adaptor_example.cpp /*********************************************************************** * Software License Agreement (BSD License) * * Copyright 2011-2016 Jose Luis Blanco (joseluisblancoc@gmail.com). * All rights reserved. * * Redistribution and use in source and binary forms...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/nanoflann", "path": "examples/pointcloud_adaptor_example.cpp", "license": "bsd", "size": 5143}
### File: examples/pointcloud_example.cpp /*********************************************************************** * Software License Agreement (BSD License) * * Copyright 2011-2016 Jose Luis Blanco (joseluisblancoc@gmail.com). * All rights reserved. * * Redistribution and use in source and binary forms, with o...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/nanoflann", "path": "examples/pointcloud_example.cpp", "license": "bsd", "size": 3248}
### File: examples/pointcloud_kdd_radius.cpp /*********************************************************************** * Software License Agreement (BSD License) * * Copyright 2011-2016 Jose Luis Blanco (joseluisblancoc@gmail.com). * All rights reserved. * * Redistribution and use in source and binary forms, wit...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/nanoflann", "path": "examples/pointcloud_kdd_radius.cpp", "license": "bsd", "size": 3967}
### File: examples/saveload_example.cpp /*********************************************************************** * Software License Agreement (BSD License) * * Copyright 2011-2016 Jose Luis Blanco (joseluisblancoc@gmail.com). * All rights reserved. * * Redistribution and use in source and binary forms, with or ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/nanoflann", "path": "examples/saveload_example.cpp", "license": "bsd", "size": 3382}
### File: examples/utils.h /*********************************************************************** * Software License Agreement (BSD License) * * Copyright 2011-2016 Jose Luis Blanco (joseluisblancoc@gmail.com). * All rights reserved. * * Redistribution and use in source and binary forms, with or without * mo...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/nanoflann", "path": "examples/utils.h", "license": "bsd", "size": 6367}
### File: examples/vector_of_vectors_example.cpp /*********************************************************************** * Software License Agreement (BSD License) * * Copyright 2011-2016 Jose Luis Blanco (joseluisblancoc@gmail.com). * All rights reserved. * * Redistribution and use in source and binary forms,...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/nanoflann", "path": "examples/vector_of_vectors_example.cpp", "license": "bsd", "size": 3571}
### File: include/nanoflann.hpp /*********************************************************************** * Software License Agreement (BSD License) * * Copyright 2008-2009 Marius Muja (mariusm@cs.ubc.ca). All rights reserved. * Copyright 2008-2009 David G. Lowe (lowe@cs.ubc.ca). All rights reserved. * Copyright ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/nanoflann", "path": "include/nanoflann.hpp", "license": "bsd", "size": 73569}
### File: packaging/debian/rules #!/usr/bin/make -f # -*- makefile -*- # Makefile for nanoflann Debian package. # Uncomment this to turn on verbose mode. export DH_DEBUG=1 export DH_VERBOSE=1 # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know i...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Makefile", "repo_name": "minhanghuang/nanoflann", "path": "packaging/debian/rules", "license": "bsd", "size": 1834}
### File: perf-tests/analyze_leafsize_stats.m function [] = analyze_leafsize_stats() % Compute the stats from the result files of performance tests wrt % the max. leaf size close all; %D=load('LEAF_STATS.txt'); %D=load('LEAF_STATS_DOUBLE.txt'); D=load('LEAF_STATS_DATASET.txt'); MAXs = unique(D(...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "MATLAB", "repo_name": "minhanghuang/nanoflann", "path": "perf-tests/analyze_leafsize_stats.m", "license": "bsd", "size": 1502}
### File: perf-tests/analyze_stats.m function [] = analyze_stats() % Compute the stats from the result files of flann & nanoflann performance tests % close all; [Nsf, Tf_M, Tf_STD] = analyze_file('stats_flann.txt'); [Nsnf, Tnf_M, Tnf_STD]= analyze_file('stats_nanoflann.txt'); titles={'Convert i...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "MATLAB", "repo_name": "minhanghuang/nanoflann", "path": "perf-tests/analyze_stats.m", "license": "bsd", "size": 2369}
### File: perf-tests/flann/Makefile # Set up basic variables: CC = g++ CFLAGS = -c -Wall -O2 -mtune=native LDFLAGS = # List of sources: SOURCES = test_flann.cpp OBJECTS = $(SOURCES:.cpp=.o) # Name of executable target: EXECUTABLE = test_flann CFLAGS += `pkg-config --cflags flann` #LDFLAGS ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Makefile", "repo_name": "minhanghuang/nanoflann", "path": "perf-tests/flann/Makefile", "license": "bsd", "size": 508}
### File: perf-tests/flann/test_flann.cpp /*********************************************************************** * Software License Agreement (BSD License) * * Copyright 2011 Jose Luis Blanco (joseluisblancoc@gmail.com). * All rights reserved. * * Redistribution and use in source and binary forms, with or wit...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/nanoflann", "path": "perf-tests/flann/test_flann.cpp", "license": "bsd", "size": 4652}
### File: perf-tests/nanoflann/Makefile # Set up basic variables: CC = g++ CFLAGS = -c -Wall -O2 -mtune=native LDFLAGS = # List of sources: SOURCES1 = test_nanoflann.cpp OBJECTS1 = $(SOURCES1:.cpp=.o) SOURCES2 = test_leaf_max_size.cpp OBJECTS2 = $(SOURCES2:.cpp=.o) # Name of executable ta...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Makefile", "repo_name": "minhanghuang/nanoflann", "path": "perf-tests/nanoflann/Makefile", "license": "bsd", "size": 863}
### File: perf-tests/nanoflann/test_leaf_max_size.cpp /*********************************************************************** * Software License Agreement (BSD License) * * Copyright 2011 Jose Luis Blanco (joseluisblancoc@gmail.com). * All rights reserved. * * Redistribution and use in source and binary forms,...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/nanoflann", "path": "perf-tests/nanoflann/test_leaf_max_size.cpp", "license": "bsd", "size": 6705}
### File: perf-tests/nanoflann/test_nanoflann.cpp /*********************************************************************** * Software License Agreement (BSD License) * * Copyright 2011 Jose Luis Blanco (joseluisblancoc@gmail.com). * All rights reserved. * * Redistribution and use in source and binary forms, wit...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/nanoflann", "path": "perf-tests/nanoflann/test_nanoflann.cpp", "license": "bsd", "size": 5563}
### File: scripts/cmake_uninstall.cmake.in # ----------------------------------------------- # File that provides "make uninstall" target # We use the file 'install_manifest.txt' # ----------------------------------------------- IF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt") MESSAGE(FATAL_ERROR "Ca...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/nanoflann", "path": "scripts/cmake_uninstall.cmake.in", "license": "bsd", "size": 1129}
### File: scripts/nanoflannConfig.cmake.in @PACKAGE_INIT@ include("${CMAKE_CURRENT_LIST_DIR}/nanoflannTargets.cmake") # (JLBC Feb 2021: Not used anymore?) #set_and_check(nanoflann_INCLUDE_DIR "@PACKAGE_INSTALL_INCLUDE_DIR@")
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/nanoflann", "path": "scripts/nanoflannConfig.cmake.in", "license": "bsd", "size": 184}
### File: scripts/prepare_debian.sh #!/bin/bash # Copies sources from SVN tree and prepare a Debian package. # JLBC, 2008-2011 #set -o verbose # echo on set +o verbose # echo off APPEND_SVN_NUM=0 IS_FOR_UBUNTU=0 APPEND_LINUX_DISTRO="" while getopts "sud:" OPTION do case $OPTION in s) APPEND...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/nanoflann", "path": "scripts/prepare_debian.sh", "license": "bsd", "size": 4808}
### File: scripts/prepare_release.sh #!/bin/bash # Copies sources from SVN tree and prepare a release package. # JLBC, 2008-2011 #set -o verbose # echo on set +o verbose # echo off APPEND_SVN_NUM=0 IS_FOR_UBUNTU=0 APPEND_LINUX_DISTRO="" while getopts "sud:" OPTION do case $OPTION in s) APPE...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/nanoflann", "path": "scripts/prepare_release.sh", "license": "bsd", "size": 2864}
### File: scripts/prepare_ubuntu_pkgs_for_ppa.sh #!/bin/bash # Creates a set of packages for each different Ubuntu distribution, with the # intention of uploading them to: # https://launchpad.net/~joseluisblancoc/+archive/nanoflann # # JLBC, 2010-2011 # Checks # -------------------------------- if [ -f version ]; ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/nanoflann", "path": "scripts/prepare_ubuntu_pkgs_for_ppa.sh", "license": "bsd", "size": 2847}
### File: tests/CMakeLists.txt # ---------------------------------------------------------------------------- # TESTS # ---------------------------------------------------------------------------- PROJECT(tests) # Fix a "bug" in VS11 (MSVC 2012): if(MSVC) add_definitions(-D_VARIADIC_MAX=10) endif(MSVC) if(NOT TARG...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/nanoflann", "path": "tests/CMakeLists.txt", "license": "bsd", "size": 1269}
### File: tests/gtest-1.8.0/CMakeLists.txt # ---------------------------------------------------------------------------- # Auxiliary static library: gtest (Google test framework) # ---------------------------------------------------------------------------- project(mygtest) # Fix a "bug" in VS11 (MSVC 2012): if(MSVC...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/nanoflann", "path": "tests/gtest-1.8.0/CMakeLists.txt", "license": "bsd", "size": 570}
### File: tests/gtest-1.8.0/include/gtest/gtest-death-test.h // Copyright 2005, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must r...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/nanoflann", "path": "tests/gtest-1.8.0/include/gtest/gtest-death-test.h", "license": "bsd", "size": 14316}
### File: tests/gtest-1.8.0/include/gtest/gtest-message.h // Copyright 2005, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must reta...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/nanoflann", "path": "tests/gtest-1.8.0/include/gtest/gtest-message.h", "license": "bsd", "size": 9185}
### File: tests/gtest-1.8.0/include/gtest/gtest-param-test.h.pump $$ -*- mode: c++; -*- $var n = 50 $$ Maximum length of Values arguments we want to support. $var maxtuple = 10 $$ Maximum number of Combine arguments we want to support. // Copyright 2008, Google Inc. // All rights reserved. // // Redistribution and us...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/nanoflann", "path": "tests/gtest-1.8.0/include/gtest/gtest-param-test.h.pump", "license": "bsd", "size": 19863}
### File: tests/gtest-1.8.0/include/gtest/gtest-printers.h // Copyright 2007, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must ret...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/nanoflann", "path": "tests/gtest-1.8.0/include/gtest/gtest-printers.h", "license": "bsd", "size": 39136}
### File: tests/gtest-1.8.0/include/gtest/gtest-spi.h // Copyright 2007, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain t...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/nanoflann", "path": "tests/gtest-1.8.0/include/gtest/gtest-spi.h", "license": "bsd", "size": 9939}
### File: tests/gtest-1.8.0/include/gtest/gtest-test-part.h // Copyright 2008, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must re...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/nanoflann", "path": "tests/gtest-1.8.0/include/gtest/gtest-test-part.h", "license": "bsd", "size": 6509}
### File: tests/gtest-1.8.0/include/gtest/gtest-typed-test.h // Copyright 2008 Google Inc. // All Rights Reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must re...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/nanoflann", "path": "tests/gtest-1.8.0/include/gtest/gtest-typed-test.h", "license": "bsd", "size": 10500}
### File: tests/gtest-1.8.0/include/gtest/gtest.h // Copyright 2005, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the a...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/nanoflann", "path": "tests/gtest-1.8.0/include/gtest/gtest.h", "license": "bsd", "size": 88581}
### File: tests/gtest-1.8.0/include/gtest/gtest_pred_impl.h // Copyright 2006, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must re...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/nanoflann", "path": "tests/gtest-1.8.0/include/gtest/gtest_pred_impl.h", "license": "bsd", "size": 14908}