sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
ecadc7fbc6c31cb99970e6ee8a494e5cc783072b5fb0c518fa2830393631a279
C++
5,246
151
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include "gtest/gtest.h" #include "seal/util/numth.h" #include <cstdint> #include <numeric> using namespace seal::util; using namespace std; namespace SEALTest { namespace util { TEST(NumberTheoryTest, GCD...
854145d467d7607eee84646a6b2ee180bcf6d40a9f5f260acad550f9d5ea9589
C++
5,272
201
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. // SEALNet #include "sealnet/stdafx.h" #include "sealnet/publickey_wrapper.h" #include "sealnet/utilities.h" // SEAL #include "seal/publickey.h" using namespace std; using namespace seal; using namespace sealnet; SEALNET...
a1a31e138a491eef0a4b70fab63134701e222271c9d66a2a0b1a144ab7db713b
C++
5,304
201
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. // SEALNet #include "sealnet/stdafx.h" #include "sealnet/secretkey_wrapper.h" #include "sealnet/utilities.h" // SEAL #include "seal/secretkey.h" using namespace std; using namespace seal; using namespace sealnet; SEALNET...
9054e5534d22da54070a23ef25d3b4c4b9f1978c749aa329aefb7b0fc87bef65
C++
5,347
212
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. // STD #include <vector> // SEALNet #include "sealnet/stdafx.h" #include "sealnet/batchencoder_wrapper.h" #include "sealnet/utilities.h" // SEAL #include "seal/batchencoder.h" using namespace std; using namespace seal; u...
b6e699f7390a84b542616318ccff43c6f5ad9d811a9219b629a35f7c98ebda01
C++
5,381
249
#include <stdlib.h> #include <assert.h> //#include <ctype.h> #include "cmdline.h" #include "molecule.h" #include "numass.h" Number_Assigner::Number_Assigner () { _prefix_string = 'R'; _next_number_to_assign = -1; _replace_name = 0; _include_parentheses = 1; _number_digits = 0; _only_apply_if_existing_...
31fd16a139d4f1b0a2f151abd4ea1e1ffb1339ad95fa5a3125f810605ae88ca8
C++
5,480
166
#include "basic_voxel.hpp" #include "image_model.hpp" bool Voxel::init(void) { tipl::progress prog("pre-reconstruction",true); if(is_histology) { hist_data.resize(thread_count); for (unsigned int index = 0; index < thread_count; ++index) hist_data[index].init(); } else ...
d4be4bb2c736195852204ed3d5635598b6ea47f37d60fb14dabf16588879883f
C++
5,563
149
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include "gtest/gtest.h" #include "seal/encryptionparams.h" #include "seal/modulus.h" #include "seal/util/numth.h" using namespace seal; using namespace std; namespace SEALTest { TEST(EncryptionParametersTest, Encrypt...
8e6aeb3036fae2970b772d96c0238872e147707002fe4318c8ea0f1fef70c422
C++
5,608
159
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include "seal/encryptionparams.h" #include "seal/util/uintcore.h" #include <limits> using namespace std; using namespace seal::util; namespace seal { void EncryptionParameters::save_members(ostream &stream) const ...
3e442c487d16f2ff67cb5659996e7e8b062a4443b602d0f7d5d071fae50dcb0e
C++
5,636
171
// --------------------------------------------------------------------------- #include <set> #include <fstream> #include <sstream> #include <iterator> #include "region_render.hpp" #include "SliceModel.h" #include "glwidget.h" RegionRender::~RegionRender(void) { } bool RegionRender::load(const std::vector<tipl::vector...
42b1da7401c56f7ba33c5356511a8bb0d36efb9866b9a6d9ef2d6aced255965f
C++
5,645
205
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. // SEALNet #include "sealnet/stdafx.h" #include "sealnet/intencoder_wrapper.h" #include "sealnet/utilities.h" // SEAL #include "seal/intencoder.h" using namespace seal; using namespace sealnet; SEALNETNATIVE HRESULT SEAL...
4e2e32252b3c5d9d00535455c80cffe8a365a3e641a1b74b5ca192471d815548
C++
5,647
154
#include <QFileInfo> #include <sstream> #include <string> #include "dwi_header.hpp" #include "image_model.hpp" void get_report_from_dicom(const tipl::io::dicom& header,std::string& report) { std::string manu,make,seq; header.get_text(0x0008,0x0070,manu);//Manufacturer header.get_text(0x0008,0x1090,make); ...
ecc343f328c504720a3c0801cc0487e63f0331b8043e3232eca744b6a488dd5a
C++
5,838
164
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include <vector> #include "gtest/gtest.h" #include "seal/plaintext.h" #include "seal/evaluator.h" #include "seal/context.h" #include "seal/memorymanager.h" #include "seal/modulus.h" #include "seal/ckks.h" using namespace ...
8b89b07e125db7ee97e8c4381d1f4ef68e2454c69b746e5201d4c1745031346e
C++
5,859
177
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include "gtest/gtest.h" #include "seal/batchencoder.h" #include "seal/context.h" #include "seal/keygenerator.h" #include "seal/modulus.h" #include <vector> #include <ctime> using namespace seal; using namespace seal::util...
2c1607f2d103d201372db78251c9cb0aebdb07626ae4dace545316d31eccc41e
C++
6,021
336
#include <stdlib.h> #include <assert.h> #include "molecule.h" #include "mdl.h" Set_of_Atoms::Set_of_Atoms () { //cerr << "Set_of_Atoms::Set_of_Atoms called\n"; } Set_of_Atoms::Set_of_Atoms(int initial_size) : resizable_array<atom_number_t>(initial_size) { } Set_of_Atoms::Set_of_Atoms(const Set_of_Atoms & rhs) : res...
cb4e70ab1bb51582b1e82de129a55ebc03337d51e3cb3d45aa6f67f927a2f96a
C++
6,105
247
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. // STD #include <algorithm> // SEALNet #include "sealnet/stdafx.h" #include "sealnet/smallmodulus_wrapper.h" #include "sealnet/utilities.h" // SEAL #include "seal/smallmodulus.h" using namespace std; using namespace seal...
1aa44f755429145fee4dc03de2037434a7497a347ad5a5bbbdf8bfe017be3424
C++
6,162
321
#include <stdlib.h> #include <stdio.h> #ifdef UNIX #include <unistd.h> #endif #include "iwstring_data_source.h" #include "string_data_source.h" #include "misc2.h" #include "iwconfig.h" /* This file contains miscelaneous functions which cannot go in misc1.cc because of misc1 instantiates templates. */ int iw_re...
b68f9de497f7630bcc98ded37f9ae2aad2fd2715e5cee7866c01bf98a690946d
C++
6,206
219
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. // SEALNet #include "sealnet/stdafx.h" #include "sealnet/contextdata_wrapper.h" #include "sealnet/utilities.h" // SEAL #include "seal/context.h" using namespace std; using namespace seal; using namespace sealnet; SEALNET...
6966caed80f9965ba516b2238f3297c67e2465452f1b87bdeb6db7dcbf7d8bbb
C++
6,254
337
#include <stdlib.h> #include <ctype.h> #include "molecule.h" #include "element.h" #include "target.h" #include "etrans.h" int display_standard_etrans_options (std::ostream & os, char cflag) { os << " -" << cflag << " E1=E2 specify elemental transformation, all E1 become E2\n"; os << " Special...
00e050ceadcc65fa77684669201ec1c1ce740c3f0479b59d22e5db2eb306664d
C++
6,273
166
#include <QClipboard> #include <QFileDialog> #include <QMessageBox> #include "tract_report.hpp" #include "ui_tract_report.h" #include "ui_tracking_window.h" #include "tracking_window.h" #include "tract/tracttablewidget.h" #include "libs/tracking/fib_data.hpp" #include "libs/tracking/tract_model.hpp" tract_report::tract...
ddf04ededb5dc6b01cf02ce5470d701c25e9c54bb326607eae6f255d3b27a553
C++
6,552
188
#include <QStringListModel> #include <QInputDialog> #include <QMessageBox> #include "atlasdialog.h" #include "ui_atlasdialog.h" #include "fib_data.hpp" #include "tracking_window.h" #include "region/regiontablewidget.h" #include "opengl/glwidget.h" AtlasDialog::AtlasDialog(QWidget *parent,std::shared_ptr<fib_data> handl...
99d7f70222a61444345f4131219d5a505e223aeac8200505c0da394de9402c2b
C++
6,564
187
/* * MIT License * * Copyright (c) 2017 Sadeep Jayasumana * * Modified by Tom Joy 2018, tomjoy@robots.ox.ac.uk * * 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 restric...
24f72e4aeae14f6ac979d42ad664f9e2189a12de531f0ea9369b3474dac5dcc6
C++
6,588
214
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include "gtest/gtest.h" #include "seal/randomgen.h" #include "seal/keygenerator.h" #include <cstdint> #include <algorithm> #include <thread> #include <memory> #include <numeric> #include <set> using namespace seal; using ...
5e69be1d5c1900ec0c6c38d7202f74180a7e390c63ec5d451144f4bbd55133cb
C++
6,712
346
#include <stdlib.h> #include "assert.h" #include "cmdline.h" #include "molecule.h" #include "rmele.h" void Element_to_Remove::_default_values() { _molecules_examined = 0; _molecules_changed = 0; _atoms_removed = 0; _maxcon_to_remove = -1; _add_bond_after_two_connected_removals = 0; _number_to_remove_p...
e056a1e190246275dae457b19130f3ef22920a9b0aed55e2d89693b26bd6695f
C++
6,939
191
#include <set> #include "tract_model.hpp" #include "tract_cluster.hpp" struct compare_cluster { bool operator()(const std::shared_ptr<Cluster>& lhs,const std::shared_ptr<Cluster>& rhs) { return lhs->tracts.size() > rhs->tracts.size(); } }; void BasicCluster::sort_cl...
6c790c2708d9cd8082082c6faa49152742f46778b4690de207c67d906e40b847
C++
6,975
201
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include "examples.h" using namespace std; using namespace seal; /* Both the BFV scheme (with BatchEncoder) as well as the CKKS scheme support native vectorized computations on encrypted numbers. In addition to computing ...
60112421b778a3deeee26b6d41fb5b080c7421f65c00f5f0ce17a07d3d467581
C++
7,019
181
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include "gtest/gtest.h" #include "seal/util/common.h" #include "seal/util/uintcore.h" #include "seal/util/polycore.h" #include "seal/util/mempool.h" #include <cstdint> using namespace seal::util; using namespace std; nam...
8df33432608e1887b830873011ecde35f05f7911253d077fb200301787a4b4f4
C++
7,121
195
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include "gtest/gtest.h" #include "seal/intarray.h" #include "seal/memorymanager.h" #include <sstream> using namespace seal; using namespace std; namespace SEALTest { TEST(IntArrayTest, IntArrayBasics) { {...
ac662bd1844e54cd5bb2193822298df1da6ea922c7bf5e5cfa5f3f78dcd15ee8
C++
7,253
249
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. // STD #include <algorithm> #include <iterator> // SEALNet #include "sealnet/stdafx.h" #include "sealnet/keygenerator_wrapper.h" #include "sealnet/utilities.h" // SEAL #include "seal/keygenerator.h" #include "seal/util/co...
1c07ea82832f5ca22ed81185299f31134552b43e8a928dd8efcf33f90db564c9
C++
7,257
265
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. // STD #include <vector> // SEALNet #include "sealnet/stdafx.h" #include "sealnet/ckksencoder_wrapper.h" #include "sealnet/utilities.h" // SEAL #include "seal/ckks.h" using namespace std; using namespace seal; using name...
ca28f1ed4357de08f6b43e2ccdab3795026a06956e59de331cbc174743815244
C++
7,352
478
/* Strips leading spaces */ #include <stdlib.h> #include <ctype.h> #include <string.h> #include <assert.h> #include <iostream> using namespace std; #define RESIZABLE_ARRAY_IMPLEMENTATION #include "iwstring.h" void strip_leading_blanks (char *cc) { char *c = cc; while (isspace (*c) && '\0' != *c) c++; i...
b24d91d7b924e30d669cadf4d0e2fc8870769b560d92f626d044afae1173b4aa
C++
7,477
276
#include <stdlib.h> #include <memory> /* Implementation of the Substructure_Atom_Environment class */ #include "substructure.h" #include "tokenise_atomic_smarts.h" #include "target.h" #include "misc.h" static int environment_only_matches_unmatched_atoms = 0; void set_atom_environment_only_matches_unmatched_atoms ...
2d60f4476bc3a98dde4cf23440a58e6ad594a5f21a8086e7183c41372baefbd1
C++
7,498
196
#include <QGraphicsTextItem> #include <QMessageBox> #include <QMouseEvent> #include <QFileDialog> #include <QClipboard> #include "connectivity_matrix_dialog.h" #include "ui_connectivity_matrix_dialog.h" #include "region/regiontablewidget.h" #include "tract/tracttablewidget.h" #include "tracking_window.h" #include "ui_t...
7e70bf51926a0e0b870552d5dc0a92d84efa654ca08ce2bde891f946571f043a
C++
7,603
266
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. // SEALNet #include "sealnet/stdafx.h" #include "sealnet/encryptor_wrapper.h" #include "sealnet/utilities.h" // SEAL #include "seal/encryptor.h" using namespace std; using namespace seal; using namespace sealnet; struct ...
1b9464bc3bc3f4d28bc7cf38ee806d7c8d8c1fe17baaab283635360e46e62984
C++
7,655
341
#include <stdlib.h> #define RESIZABLE_ARRAY_IMPLEMENTATION #include "iwaray.h" #include "misc.h" #include "molecule_to_query.h" static int File_Scope_substituents_only_at_isotopic_atoms = 0; void set_substituents_only_at_isotopic_atoms (int s) { File_Scope_substituents_only_at_isotopic_atoms = s; } int substitue...
12124c56320ffeff3bf675fb0bbf88e572360f5e86d784ba6efb3b8340506061
C++
7,745
298
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. // SEALNet #include "sealnet/stdafx.h" #include "sealnet/kswitchkeys_wrapper.h" #include "sealnet/utilities.h" // SEAL #include "seal/kswitchkeys.h" using namespace std; using namespace seal; using namespace sealnet; nam...
cbb516199e40d24ad107d2f3805fa98fdccb6ffa4b16e68321f7c36466f46429
C++
7,782
190
#include <atomic> #include "libs/dsi/image_model.hpp" #include "fib_data.hpp" std::string quality_check_src_files(const std::vector<std::filesystem::path>& file_list, bool check_btable,bool use_template,unsigned int template_id) { std::ostringstream out; out << "file name\td...
d8cc296b26b56cd85b8818b2835dc13d8300d70790a15f4e9f57c6758ee9ae8b
C++
7,805
403
#include <stdlib.h> #include <ctype.h> #include <iostream> #include "ematch.h" #include "iwstring.h" void Element_Matcher::_default_values () { _e = NULL; _isotope = -1; _match_organic_only = 0; _match_non_organic_only = 0; _match_non_periodic_only = 0; return; } Element_Matcher::Element_Matcher () { ...
ba23f87121e58620065973e99ad5c02ed41709f2a7b97264e37ae0d5f9817977
C++
7,855
236
#include <QFileDialog> #include <QDir> #include <QMessageBox> #include <QProcess> #include <QKeyEvent> #include <QTextCursor> #include "console.h" #include "ui_console.h" #include "zlib.h" #include "TIPL/tipl.hpp" console_stream console; // Function to map ANSI color codes to Qt colors QColor colorFromAnsiCode(int co...
4bc47e43decb2cff95fa04c436c128d8d5647a27606f498d67cfea910d217da0
C++
7,875
369
#include <stdlib.h> #include "iwrcb.h" #include "misc.h" #ifdef IW_USE_TBB_SCALABLE_ALLOCATOR #include "tbb/scalable_allocator.h" #endif using std::cerr; using std::endl; /* The _present array is used to keep track of which pairs are present. */ Ring_Closure_Bonds::Ring_Closure_Bonds() { _atoms_in_molecule = 0...
3ea6d12a2f968ad212f89188556a41df80d9d5e1236b4ba4e9b1698cbc2e8972
C++
8,005
325
#include <stdlib.h> #include <assert.h> #if defined (IWSGI) || (__GNUC_MINOR__ == 95) #include <strstream> #else #include <sstream> #endif #include <iostream> #include "qry_wstats.h" #include "target.h" void Substructure_Hit_Statistics::_default_values () { _verbose = 0; _molecules_which_match = 0; _molecul...
92ccbd135d34395af4b24718e7d59dcb849d13d900b7387905d79eb49ca7ec22
C++
8,251
301
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. // SEALNet #include "sealnet/stdafx.h" #include "sealnet/encryptionparameters_wrapper.h" #include "sealnet/utilities.h" // SEAL #include "seal/encryptionparams.h" #include "seal/smallmodulus.h" #include "seal/util/hash.h" ...
ec6fbac8eeec67c75cb82d039c457f6d66b77278a4b2e89c7b185a016b200364
C++
8,295
379
#include <stdlib.h> #include <iomanip> using namespace std; #include "misc.h" #include "mdl_molecule.h" ISIS_Atom_List::ISIS_Atom_List () { return; } bool ISIS_Atom_List::operator== (const ISIS_Atom_List & rhs) const { if (_normal_list != rhs._normal_list) return false; int n = _element.number_elements ()...
4be9385868963f49e2e62c26ababbf344e8b69b14e47a62bc31abddfb19b4562
C++
8,333
301
/*================================================================= % perform_front_propagation_3d - perform a Fast Marching front propagation. % % [D,S] = perform_front_propagation_2d(W,start_points,end_points,nb_iter_max,H); % % 'D' is a 2D array containing the value of the distance function to seed. % 'S' is a 2...
b3a1e08f68d9eb34dc318f6760c5d705a2e0534cb83f0f827863aa0c5412a1c5
C++
8,597
190
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include "gtest/gtest.h" #include "seal/relinkeys.h" #include "seal/context.h" #include "seal/keygenerator.h" #include "seal/util/uintcore.h" #include "seal/modulus.h" #include "seal/util/polyarithsmallmod.h" using namespa...
c47e0c2713dcc62d59a67bf005e2193c7a393b3bd38ccb2235ad0a0e2e7ca231
C++
8,675
460
#include <getopt.h> #include <unistd.h> #include <stdio.h> #include <iostream> #include <limits> #include "iwconfig.h" #undef _GETOPT_H #ifdef _WIN32 /* Global Exportable */ extern int optind; extern char *optarg; #else #include <unistd.h> #endif using std::cerr; using std::endl; #include "cmdline.h" #include "i...
fca9de407ec88e971d15d45c1be65a8085d935ae0be4bbca0f23a9d24611ae01
C++
8,707
348
/*================================================================= % perform_front_propagation_2d - perform a Fast Marching front propagation. % % [D,S,Q] = perform_front_propagation_2d(W,start_points,end_points,nb_iter_max, H, L, values); % % 'D' is a 2D array containing the value of the distance function to seed...
f107e5aa106aef448672f2e0044ece4161249224a4cb8f1e084f86bad827f65f
C++
8,773
209
#include <string> #include <cstdlib> #include <filesystem> #include "fib_data.hpp" #include "tracking/region/Regions.h" #include "libs/dsi/image_model.hpp" #include "reconstruction/reconstruction_window.h" /** perform reconstruction */ extern std::vector<std::string> template_name_list; int rec(tipl::program_option<...
8d8c53409574abd9b24d77cb0eaa1b6ca2132e50144639caaeb377f988e25475
C++
8,784
208
#include "roi.hpp" bool RoiMgr::setAtlas(bool& terminated,float seed_threshold,float not_end_threshold) { if(!handle->load_track_atlas(true/*symmetric*/)) return false; tipl::progress prog("loading atlas regions"); track_ids = handle->get_track_ids(tract_name); if(track_ids.empty()) { ...
29b98461d270c1f831b8b8583e7582c45c0b727634eb752ac768590f13010f2c
C++
8,905
309
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include "gtest/gtest.h" #include "seal/util/locks.h" #include <thread> #include <atomic> using namespace seal::util; using namespace std; namespace SEALTest { namespace util { class Reader { ...
e505524fa3cd52babb2805731cb633f8f02b88177c3dbdf5239b709b24508bea
C++
9,074
183
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include "seal/util/scalingvariant.h" #include "seal/util/polyarithsmallmod.h" #include "seal/util/uintarith.h" #include "seal/encryptor.h" using namespace std; namespace seal { namespace util { void multi...
6b91be009b8070b69b663b09f3b28258d477cf6aff6a2eb2de1a941be5409dba
C++
9,097
266
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include "seal/util/uintcore.h" #include "seal/util/uintarith.h" #include "seal/util/uintarithmod.h" #include "seal/util/uintarithsmallmod.h" #include <random> using namespace std; namespace seal { namespace util ...
c2f7645a4c267672344b63208d58fe4d9bd2527638c58bca2a9d609f9d72e444
C++
9,163
502
#include <stdlib.h> #include "misc.h" #ifdef USE_IWMALLOC #include "iwmalloc.h" #endif #include "mdl_file_data.h" void MDL_Atom_Data::_default_values () { _atom_number = INVALID_ATOM_NUMBER; _hcount = 0; _h0designator = 0; _unsaturated = 0; _substitution = 0; _ring_bond = 0; _valence = 0; _atom_map...
18fddc83ec9d2722ec4e3d6a2bb447f34fee76256a2b376e7095748bc8db2453
C++
9,205
452
#include <stdlib.h> #define COMPILING_MOLECULE_SMARTS #include "misc.h" #include "path.h" #include "molecule.h" #include "smiles.h" /* Are we making a smarts to describe the atom, or to allow subsequent substructure searches? */ static int make_smarts_embedding_value = 0; void set_make_smarts_embedding (int s...
d213425d0896a2273b95a9dcec0685e07f2d347050281e5a0dc69c39a6e3c9ea
C++
9,255
272
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include <stdexcept> #include <random> #include <limits> #include <cinttypes> #include "seal/ckks.h" #include "seal/util/croots.h" using namespace std; using namespace seal::util; namespace seal { CKKSEncoder::CKKSEnc...
4b1cbef51124f25dfaedb499f9445cb32502fbd64143913abad1812a74842dfa
C++
9,256
446
/************************************************************************** Copyright (C) 2011 Eli Lilly and Company This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3...
46049147ecff20ca2e5abfc76662a932cf9d942edfc1732382d443ffabc7fe96
C++
9,264
205
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include "gtest/gtest.h" #include "seal/galoiskeys.h" #include "seal/context.h" #include "seal/keygenerator.h" #include "seal/util/uintcore.h" #include "seal/modulus.h" #include "seal/util/polyarithsmallmod.h" #include <vec...
f512a16b579a8fe1231919816e084e6060c2c9b23c0dc88eb08a7f9e4baddf25
C++
9,577
382
#include <iostream> #include <memory> using std::cerr; using std::endl; #include "misc.h" #include "substructure.h" #include "target.h" #include "path.h" Substructure_Ring_Specification::Substructure_Ring_Specification() { _aromatic = SUBSTRUCTURE_NOT_SPECIFIED; return; } Substructure_Ring_Specification::~Subs...
6caee1483ae7042e598b4e6e1b1755766223c83e6dad134c0088e54c16facb9e
C++
9,581
303
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include <random> #include "seal/util/numth.h" #include "seal/util/uintcore.h" #include "seal/util/uintarithsmallmod.h" using namespace std; namespace seal { namespace util { vector<uint64_t> conjugate_cla...
5787aa38f962bb418104d7673f8e2aa6da15e2c3221e276bc4dd5be769266e28
C++
9,709
309
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include "seal/plaintext.h" #include "seal/util/common.h" using namespace std; using namespace seal::util; namespace seal { namespace { bool is_dec_char(char c) { return c >= '0' && c <...
ed468385bae75adf333db19ab4b5953c5aa49cdba71093a116c05be9ed334dc1
C++
9,733
292
#include <QFileDialog> #include <QInputDialog> #include <QStringListModel> #include <QMessageBox> #include <fstream> #include "createdbdialog.h" #include "ui_createdbdialog.h" #include "fib_data.hpp" #include "connectometry/group_connectometry_analysis.h" #include "image_model.hpp" CreateDBDialog::CreateDBDialog(QWid...
2dddfb9054f153b36c97c17aed8d738d72fbd9aa09b5c68f58c541e5a875fb9d
C++
9,834
328
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include "seal/biguint.h" #include "seal/util/common.h" #include "seal/util/uintcore.h" #include "seal/util/uintarith.h" #include "seal/util/uintarithmod.h" #include <algorithm> using namespace std; using namespace seal::u...
a3d8e40de75cd0ad36e1eec6f92a3697d0efd07391f6b994692f0931b5664f67
C++
9,888
371
/** * Copyright 2017-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the license found in the * LICENSE file in the root directory of this source tree. */ #include <torch/torch.h> // @manual=//caffe2:torch_extension #include <pybind11/detail/common.h> #include <pybind11/pybi...
646500fc6b36787ea0b6b49c9112c6506987975421d61a111c9ba02b5c3f9536
C++
10,061
439
#include <stdlib.h> #include "iwbits.h" #include "cmdline.h" #include "rwsubstructure.h" #include "donor_acceptor.h" #include "qry_wstats.h" #include "target.h" #include "misc.h" void display_standard_donor_acceptor_assigner_options (std::ostream & os, char cflag) { os << " -" << cflag << " a=<query> specify qu...
cae46766165d9ab9386ae53e4e8a28ec2b2efb001a246a2ec0d7f09d95f2c273
C++
10,268
254
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include <cstdint> #include "seal/util/globals.h" #include "seal/smallmodulus.h" using namespace std; namespace seal { namespace util { namespace global_variables { std::shared_ptr<Memo...
ad9424f8dac878e45b32471685d3e825c0cc7675d17d69505ea0d45757465e3a
C++
10,328
365
/* -*-C-*- */ /********************************************************************** * This source code is public domain, and may be freely distributed, * * modified, and used for any purpose. IT COMES WITH ABSOLUTELY NO * * WARRANTY OF ANY KIND. * ************************************...
0bf7dd062f42016a04a0637a3552b59ad67f18a1f7394d65d3cef9012065e546
C++
10,391
248
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include "seal/util/uintcore.h" #include "seal/util/uintarith.h" #include "seal/util/uintarithmod.h" #include "seal/util/common.h" using namespace std; namespace seal { namespace util { bool try_invert_uin...
76ed382a9388efb40e67a0c25dd2273a20fe566edb634774affc65c923254fcc
C++
10,486
299
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include <stdexcept> #include <algorithm> #include <cmath> #include "seal/intencoder.h" #include "seal/util/common.h" #include "seal/util/polyarith.h" #include "seal/util/pointer.h" #include "seal/util/defines.h" #include "...
c2e6c5a6aa3d83df65581dd38d643e279b892b154202bae732b43526fee093d5
C++
10,558
250
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include "seal/util/common.h" #include "seal/util/uintcore.h" #include "seal/util/uintarith.h" #include "seal/util/uintarithmod.h" #include "seal/util/polycore.h" #include "seal/util/polyarith.h" using namespace std; name...
5b48861e741d4c7ef88267b59419d3e6ea6ad96807b8b62099c1bd9808779311
C++
10,700
387
/*================================================================= % perform_front_propagation_3d - perform a Fast Marching front propagation. % % OLD : [D,S] = perform_front_propagation_2d(W,start_points,end_points,nb_iter_max,H); % [D,S,Q] = perform_front_propagation_3d(W,start_points,end_points,nb_iter_max, H, L)...
b8a3ff597d15e64ce19b50cf48438eac2aaa847f674121d3d497bfff0ef18dac
C++
10,809
296
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include "gtest/gtest.h" #include "seal/util/polycore.h" #include "seal/util/uintarith.h" #include <cstdint> using namespace seal::util; using namespace std; namespace SEALTest { namespace util { TEST(PolyCo...
2e7b842d496145e73cbb70704906c8e53e915b6e12d3fed4d3ff77e6fa7c4f21
C++
10,868
301
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include "seal/util/defines.h" #ifdef SEAL_USE_ZLIB #include <cstddef> #include <zlib.h> #include <unordered_map> #include "seal/serialization.h" #include "seal/util/ztools.h" #include "seal/util/pointer.h" using namespa...
f5a0e9f0f04cb5681aeaf763e529b0355c30b34c1b0171d0ea8fa7db56382f6e
C++
10,874
514
#include <stdlib.h> #include <assert.h> // define this symbol to get the private molecule functions below #define COMPILING_MOLECULER_CC #ifdef IW_USE_TBB_SCALABLE_ALLOCATOR #include "tbb/scalable_allocator.h" #endif #include "iwbits.h" #include "molecule.h" #include "path.h" #define RING_FRAGMENT_MEMBERSHIP_UNKN...
398acdea005e86cf02533e925e65f690c1faad31e9f5da4c99db08e4a0cd1b04
C++
10,981
271
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include "gtest/gtest.h" #include "seal/util/common.h" #include "seal/util/uintcore.h" #include <cstdint> #include <cstring> using namespace seal::util; using namespace std; namespace SEALTest { namespace util { ...
eba3614bef5722dcdfdc0647f95976f256d46944ca4143cb91562f0ee02a5435
C++
11,145
469
#include <stdlib.h> #include "mdl.h" #include "mdl_atom_record.h" MDL_Atom_Record::MDL_Atom_Record() { _default_values(); return; } void MDL_Atom_Record::_default_values() { _msdiff = 0; _chg = 0; _astere = 0; _hcount = 0; _stereo_care = 0; _valence = 0; _h0designator = 0; _atom_map = 0; _inve...
d91a1aa9d1ea7fd6bcc8968923ba8cfd8e5a6fce4f65387f7ef7dd18a0f8ec61
C++
11,324
258
#include <filesystem> #include <fstream> #include "fib_data.hpp" #include "mapping/atlas.hpp" #include "connectometry/group_connectometry_analysis.h" bool atl_load_atlas(std::shared_ptr<fib_data> handle,std::string atlas_name,std::vector<std::shared_ptr<atlas> >& atlas_list) { for(const auto& each : tipl::split(at...
632075226ec00983a1da8ca2f87ea3a17e5e9c592c505d6ac2f6c0a3246a3000
C++
11,699
351
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include <algorithm> #include <stdexcept> #include "seal/encryptor.h" #include "seal/randomgen.h" #include "seal/randomtostd.h" #include "seal/smallmodulus.h" #include "seal/util/common.h" #include "seal/util/uintcore.h" #i...
762f3a6ceb230fc2e9a839a33c3cb853f00e71f7a2af63b066aa2fe04153162d
C++
11,757
401
#include <iostream> #include <fstream> #include <cmath> #include <ctime> #include <map> #include <cstring> #include "Image3D.h" #include "PairwiseBP.h" #include <algorithm> using namespace std; int Layer, Height, Width; // algorithm parameters static T_input epsilon = 0.333; // 0.333 static T_input bet...
54c83bfb287d5e761919e8c15ad824b539f15d3038b72e597b66cae3c6b9e5fb
C++
11,803
284
#include "tracking_thread.hpp" #include "fib_data.hpp" // generated from x^2+y^2+z^2 < 6 . first 40 at x > 0 int fib_dx[80] = {0,0,1,0,0,1,1,1,1,1,1,1,1,0,0,2,0,0,0,0,1,1,1,1,2,2,2,2,1,1,1,1,1,1,1,1,2,2,2,2,0,0,-1,0,0,-1,-1,-1,-1,-1,-1,-1,-1,0,0,-2,0,0,0,0,-1,-1,-1,-1,-2,-2,-2,-2,-1,-1,-1,-1,-1,-1,-1,-1,-2,-2,-2,-2};...
0157a2c393dc636378148803d593fa246fbcb2752a21dfeead5f4d27cc6b0ee8
C++
11,943
486
#include "iwstring.h" #include "smiles.h" #include "iwrnm.h" #include "misc.h" #include "misc2.h" #ifdef IW_USE_TBB_SCALABLE_ALLOCATOR #include "tbb/scalable_allocator.h" #endif static int FileScope_include_directionality_in_ring_closure_bonds = 0; int include_directionality_in_ring_closure_bonds() { return FileSc...
1dea5d59af547fe8936a4b598231c02eb82546b753d9b86cd2778d2efbd40c67
C++
12,322
511
#include <stdlib.h> #include <ctype.h> #include <memory> #include "misc.h" #include "substructure.h" #include "target.h" Substructure_Ring_Base::Substructure_Ring_Base () { _match_as_match_or_rejection = 1; _all_hits_in_same_fragment = 0; _only_keep_matches_in_largest_fragment = 0; _is_heteroatom = new_in...
a8ae7bece23a9f72659a25ad0c0f77fb22a51a3a385bedafba241db2a862143a
C++
12,392
624
#include <stdlib.h> #include <ctype.h> #include "tokenise_atomic_smarts.h" #include "logical_expression.h" Atomic_Smarts_Component::Atomic_Smarts_Component () { _unary_operator = 1; // the default _op = IW_LOGEXP_UNDEFINED; _next = NULL; } Atomic_Smarts_Component::~Atomic_Smarts_Component () { if...
0436e2387dc504c4a94934eba86d39c2bb9c19311d5bca9f6b0b6838df31969d
C++
12,496
346
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include "gtest/gtest.h" #include "seal/ckks.h" #include "seal/context.h" #include "seal/keygenerator.h" #include "seal/modulus.h" #include <vector> #include <ctime> using namespace seal; using namespace seal::util; using ...
00ce1d6efd5e51b33f24157e0df6e9d864b53ed4c8e48a2000abc3086bde8c43
C++
12,650
528
#include <iostream> #include <memory> using std::cerr; using std::endl; /* Special processing for the no matched atoms between directive */ #include "misc.h" #include "mdl_molecule.h" #include "substructure.h" #include "target.h" static void fill_matched_atoms_array(const Query_Atoms_Matched & matched_atoms, ...
35d8c557e3ee2f8f431aa40957683f3c2f2f95042ae8c680e107e3bc467303ee
C++
12,758
670
#include <stdlib.h> #include "iw_tdt.h" IW_TDT::IW_TDT() { }; /* We can turn off some checks */ static int iwtdt_careful_mode = 0; void set_iwtdt_careful_mode (int c) { iwtdt_careful_mode = c; } /* It is optional whether or not we store newlines in the TDT. But, if they are NOT stored, writing will come o...
3bdd1ca5ed1d8fd4bfb45b1fc779400c73d9298bee5dbe9a52278fb035b161a9
C++
13,164
694
#include <stdlib.h> #include "substructure.h" #include "msi_object.h" #include "target.h" void Substructure_Query::_default_values () { _each_component_search = 0; return; } Substructure_Query::Substructure_Query () { _default_values (); } Substructure_Query::Substructure_Query (const char * cc) { _default...
dec07ff03433fe2ace2bab8cf542951fb9c3b057cd4e899f2fcf19468ddb41fc
C++
13,325
352
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include <algorithm> #include "seal/ciphertext.h" #include "seal/randomgen.h" #include "seal/util/defines.h" #include "seal/util/pointer.h" #include "seal/util/polyarithsmallmod.h" #include "seal/util/rlwe.h" using namespa...
934a7ec95885cffad6d1eb1d27792e0456f1c0d7f10850170857bdd9294ba883
C++
13,422
351
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include "seal/randomtostd.h" #include "seal/util/rlwe.h" #include "seal/util/common.h" #include "seal/util/clipnormal.h" #include "seal/util/polycore.h" #include "seal/util/smallntt.h" #include "seal/util/polyarithsmallmod...
f24b57c217f7feed7c5bf7606ff0cf5587b5b8335e3f508cb6b12ddb1751eba8
C++
13,785
466
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include "seal/valcheck.h" #include "seal/util/defines.h" #include "seal/util/common.h" #include "seal/plaintext.h" #include "seal/ciphertext.h" #include "seal/secretkey.h" #include "seal/publickey.h" #include "seal/kswitch...
d5efc16ca8b1bf56c465e14e7e6f7f2df34760108c3af9c6857bbef8562a52e7
C++
13,881
378
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include "gtest/gtest.h" #include "seal/biguint.h" #include "seal/util/defines.h" using namespace seal; using namespace std; namespace SEALTest { TEST(BigUnsignedInt, EmptyBigUInt) { BigUInt uint; ...
5a7e8a70c64998dff7e9316590bab1b9ae98abddf4f683d1ac00bcb96e75e616
C++
14,116
353
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include "gtest/gtest.h" #include "seal/util/uintcore.h" #include "seal/util/uintarithmod.h" #include <cstdint> #include <algorithm> using namespace seal::util; using namespace std; namespace SEALTest { namespace util ...
8a6491d6418b17e7c8fb6f5d0dc18c98989231cd60693b8b5cd0a78e55c7233f
C++
14,209
321
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include "examples.h" using namespace std; using namespace seal; void example_ckks_basics() { print_example_banner("Example: CKKS Basics"); /* In this example we demonstrate evaluating a polynomial function ...
f96a000ca8aeed4ea1aef7f28e04e0437a9d94dc0f5e692b2b0795ebb91f31b9
C++
14,250
372
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include "gtest/gtest.h" #include "seal/context.h" #include "seal/keygenerator.h" #include "seal/util/polycore.h" #include "seal/encryptor.h" #include "seal/decryptor.h" #include "seal/evaluator.h" #include "seal/valcheck.h...
07acc0fd1beec7cb8cafcfa7cfb4ede199bd1109245fda97b88d900ecc01eec5
C++
14,304
675
#include <stdlib.h> #include <memory> using namespace std; #define COMPILING_CAREFUL_FRAG #include "misc.h" #include "molecule.h" /* Fileconv has the ability to reduce to a fragment based on various criteria Need some concept of which elements are more desirable */ static int organic_desirability[HIGHEST_ATOM...
4338213e81533c81a4bcc42a6b74328d318de6e4df105d4031a2560b7b53730e
C++
14,582
817
#include <stdlib.h> #include <assert.h> #include <iomanip> #include "molecule.h" #include "smiles.h" #include "misc2.h" using std::cerr; using std::endl; /* If a connection is constructed without any info, all info is invalid */ Connection::Connection() { _a2 = INVALID_ATOM_NUMBER; _btype = NOT_A_BOND; ret...
d3bde025dfc90949cb9964c7423a6aea698638b2d742582a5c2411987ed336e4
C++
14,679
334
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include "examples.h" using namespace std; using namespace seal; void example_levels() { print_example_banner("Example: Levels"); /* In this examples we describe the concept of `levels' in BFV and CKKS and th...
5fa84a3c3c076200db74d35451eb48fce8d71f67395a6c2ffd7082c2ad958e4b
C++
14,688
582
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. // STD #include <string> #include <algorithm> // SEALNet #include "sealnet/stdafx.h" #include "sealnet/plaintext_wrapper.h" #include "sealnet/utilities.h" // SEAL #include "seal/plaintext.h" #include "seal/util/common.h" ...
4f500a2f5dca5e3de737ebdcf9acdd4c9032aa8abba31a09edcd704820318e0d
C++
14,790
401
/* * © Copyright IBM Corporation 2020. * * LICENSE: Apache License 2.0 (Apache-2.0) * http://www.apache.org/licenses/LICENSE-2.0 * */ #include "sib_optimizer.h" #include <cmath> #include <stdio.h> #include <stdlib.h> // disable the warnings about possible loss of data when converting T to double #ifdef _MSC_VE...
5c168496a1bf06826ae4fbb8cfe1c878b8a24be04ee6e1d30e6f9223c6b403df
C++
15,053
568
/* Fucntions for the Dihedral_Atoms class. */ #include <iostream> #include <iostream> #include <assert.h> #include <memory> using std::cerr; using std::endl; #include "misc.h" #include "molecule.h" angle_t Molecule::dihedral_angle (atom_number_t a1, atom_number_t a2, atom_number_t a3, atom_number_t a4, ...
a3369bfb66f01695bf0e6d60939ec94965fa2ddab73dbb5f2ffba111a0ce6aaf
C++
15,161
805
#include <stdlib.h> #include <stdio.h> #include <ctype.h> #include <string.h> #include <assert.h> #define MSI_OBJECT_READ_IMPLEMENTATION #include "iwstring_data_source.h" #include "iwmmap.h" #include "msi_object.h" static int convert_tags_to_lowercase = 1; void set_convert_msi_tags_to_lowercase (int s) { convert...
043dc3abd13ad8c05a853bd75cbe62ee58696242443a71f81b9f892536613f4e
C++
15,267
574
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. // SEALNet #include "sealnet/stdafx.h" #include "sealnet/ciphertext_wrapper.h" #include "sealnet/utilities.h" // SEAL #include "seal/ciphertext.h" using namespace std; using namespace seal; using namespace sealnet; names...