hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
qsc_code_num_words_quality_signal
int64
qsc_code_num_chars_quality_signal
float64
qsc_code_mean_word_length_quality_signal
float64
qsc_code_frac_words_unique_quality_signal
float64
qsc_code_frac_chars_top_2grams_quality_signal
float64
qsc_code_frac_chars_top_3grams_quality_signal
float64
qsc_code_frac_chars_top_4grams_quality_signal
float64
qsc_code_frac_chars_dupe_5grams_quality_signal
float64
qsc_code_frac_chars_dupe_6grams_quality_signal
float64
qsc_code_frac_chars_dupe_7grams_quality_signal
float64
qsc_code_frac_chars_dupe_8grams_quality_signal
float64
qsc_code_frac_chars_dupe_9grams_quality_signal
float64
qsc_code_frac_chars_dupe_10grams_quality_signal
float64
qsc_code_frac_chars_replacement_symbols_quality_signal
float64
qsc_code_frac_chars_digital_quality_signal
float64
qsc_code_frac_chars_whitespace_quality_signal
float64
qsc_code_size_file_byte_quality_signal
float64
qsc_code_num_lines_quality_signal
float64
qsc_code_num_chars_line_max_quality_signal
float64
qsc_code_num_chars_line_mean_quality_signal
float64
qsc_code_frac_chars_alphabet_quality_signal
float64
qsc_code_frac_chars_comments_quality_signal
float64
qsc_code_cate_xml_start_quality_signal
float64
qsc_code_frac_lines_dupe_lines_quality_signal
float64
qsc_code_cate_autogen_quality_signal
float64
qsc_code_frac_lines_long_string_quality_signal
float64
qsc_code_frac_chars_string_length_quality_signal
float64
qsc_code_frac_chars_long_word_length_quality_signal
float64
qsc_code_frac_lines_string_concat_quality_signal
float64
qsc_code_cate_encoded_data_quality_signal
float64
qsc_code_frac_chars_hex_words_quality_signal
float64
qsc_code_frac_lines_prompt_comments_quality_signal
float64
qsc_code_frac_lines_assert_quality_signal
float64
qsc_codepython_cate_ast_quality_signal
float64
qsc_codepython_frac_lines_func_ratio_quality_signal
float64
qsc_codepython_cate_var_zero_quality_signal
bool
qsc_codepython_frac_lines_pass_quality_signal
float64
qsc_codepython_frac_lines_import_quality_signal
float64
qsc_codepython_frac_lines_simplefunc_quality_signal
float64
qsc_codepython_score_lines_no_logic_quality_signal
float64
qsc_codepython_frac_lines_print_quality_signal
float64
qsc_code_num_words
int64
qsc_code_num_chars
int64
qsc_code_mean_word_length
int64
qsc_code_frac_words_unique
null
qsc_code_frac_chars_top_2grams
int64
qsc_code_frac_chars_top_3grams
int64
qsc_code_frac_chars_top_4grams
int64
qsc_code_frac_chars_dupe_5grams
int64
qsc_code_frac_chars_dupe_6grams
int64
qsc_code_frac_chars_dupe_7grams
int64
qsc_code_frac_chars_dupe_8grams
int64
qsc_code_frac_chars_dupe_9grams
int64
qsc_code_frac_chars_dupe_10grams
int64
qsc_code_frac_chars_replacement_symbols
int64
qsc_code_frac_chars_digital
int64
qsc_code_frac_chars_whitespace
int64
qsc_code_size_file_byte
int64
qsc_code_num_lines
int64
qsc_code_num_chars_line_max
int64
qsc_code_num_chars_line_mean
int64
qsc_code_frac_chars_alphabet
int64
qsc_code_frac_chars_comments
int64
qsc_code_cate_xml_start
int64
qsc_code_frac_lines_dupe_lines
int64
qsc_code_cate_autogen
int64
qsc_code_frac_lines_long_string
int64
qsc_code_frac_chars_string_length
int64
qsc_code_frac_chars_long_word_length
int64
qsc_code_frac_lines_string_concat
null
qsc_code_cate_encoded_data
int64
qsc_code_frac_chars_hex_words
int64
qsc_code_frac_lines_prompt_comments
int64
qsc_code_frac_lines_assert
int64
qsc_codepython_cate_ast
int64
qsc_codepython_frac_lines_func_ratio
int64
qsc_codepython_cate_var_zero
int64
qsc_codepython_frac_lines_pass
int64
qsc_codepython_frac_lines_import
int64
qsc_codepython_frac_lines_simplefunc
int64
qsc_codepython_score_lines_no_logic
int64
qsc_codepython_frac_lines_print
int64
effective
string
hits
int64
a329569f6f03046c42242b9b48aa9c9b73c60906
8,063
py
Python
build/ARM/python/m5/internal/MinorOpClass_vector.py
Jakgn/gem5_test
0ba7cc5213cf513cf205af7fc995cf679ebc1a3f
[ "BSD-3-Clause" ]
null
null
null
build/ARM/python/m5/internal/MinorOpClass_vector.py
Jakgn/gem5_test
0ba7cc5213cf513cf205af7fc995cf679ebc1a3f
[ "BSD-3-Clause" ]
null
null
null
build/ARM/python/m5/internal/MinorOpClass_vector.py
Jakgn/gem5_test
0ba7cc5213cf513cf205af7fc995cf679ebc1a3f
[ "BSD-3-Clause" ]
null
null
null
# This file was automatically generated by SWIG (http://www.swig.org). # Version 2.0.11 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info if version_info >= (2,6,0): def swig_import_helper(): from os.path import dirname import imp fp = None try: fp, pathname, description = imp.find_module('_MinorOpClass_vector', [dirname(__file__)]) except ImportError: import _MinorOpClass_vector return _MinorOpClass_vector if fp is not None: try: _mod = imp.load_module('_MinorOpClass_vector', fp, pathname, description) finally: fp.close() return _mod _MinorOpClass_vector = swig_import_helper() del swig_import_helper else: import _MinorOpClass_vector del version_info try: _swig_property = property except NameError: pass # Python < 2.2 doesn't have 'property'. def _swig_setattr_nondynamic(self,class_type,name,value,static=1): if (name == "thisown"): return self.this.own(value) if (name == "this"): if type(value).__name__ == 'SwigPyObject': self.__dict__[name] = value return method = class_type.__swig_setmethods__.get(name,None) if method: return method(self,value) if (not static): self.__dict__[name] = value else: raise AttributeError("You cannot add attributes to %s" % self) def _swig_setattr(self,class_type,name,value): return _swig_setattr_nondynamic(self,class_type,name,value,0) def _swig_getattr(self,class_type,name): if (name == "thisown"): return self.this.own() method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError(name) def _swig_repr(self): try: strthis = "proxy of " + self.this.__repr__() except: strthis = "" return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) try: _object = object _newclass = 1 except AttributeError: class _object : pass _newclass = 0 def _swig_setattr_nondynamic_method(set): def set_attr(self,name,value): if (name == "thisown"): return self.this.own(value) if hasattr(self,name) or (name == "this"): set(self,name,value) else: raise AttributeError("You cannot add attributes to %s" % self) return set_attr class SwigPyIterator(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract") __repr__ = _swig_repr __swig_destroy__ = _MinorOpClass_vector.delete_SwigPyIterator __del__ = lambda self : None; def value(self): return _MinorOpClass_vector.SwigPyIterator_value(self) def incr(self, n=1): return _MinorOpClass_vector.SwigPyIterator_incr(self, n) def decr(self, n=1): return _MinorOpClass_vector.SwigPyIterator_decr(self, n) def distance(self, *args): return _MinorOpClass_vector.SwigPyIterator_distance(self, *args) def equal(self, *args): return _MinorOpClass_vector.SwigPyIterator_equal(self, *args) def copy(self): return _MinorOpClass_vector.SwigPyIterator_copy(self) def next(self): return _MinorOpClass_vector.SwigPyIterator_next(self) def __next__(self): return _MinorOpClass_vector.SwigPyIterator___next__(self) def previous(self): return _MinorOpClass_vector.SwigPyIterator_previous(self) def advance(self, *args): return _MinorOpClass_vector.SwigPyIterator_advance(self, *args) def __eq__(self, *args): return _MinorOpClass_vector.SwigPyIterator___eq__(self, *args) def __ne__(self, *args): return _MinorOpClass_vector.SwigPyIterator___ne__(self, *args) def __iadd__(self, *args): return _MinorOpClass_vector.SwigPyIterator___iadd__(self, *args) def __isub__(self, *args): return _MinorOpClass_vector.SwigPyIterator___isub__(self, *args) def __add__(self, *args): return _MinorOpClass_vector.SwigPyIterator___add__(self, *args) def __sub__(self, *args): return _MinorOpClass_vector.SwigPyIterator___sub__(self, *args) def __iter__(self): return self SwigPyIterator_swigregister = _MinorOpClass_vector.SwigPyIterator_swigregister SwigPyIterator_swigregister(SwigPyIterator) import m5.internal.param_MinorOpClass import m5.internal.enum_OpClass import m5.internal.param_SimObject import m5.internal.drain import m5.internal.serialize class vector_MinorOpClass(object): thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def iterator(self): return _MinorOpClass_vector.vector_MinorOpClass_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): return _MinorOpClass_vector.vector_MinorOpClass___nonzero__(self) def __bool__(self): return _MinorOpClass_vector.vector_MinorOpClass___bool__(self) def __len__(self): return _MinorOpClass_vector.vector_MinorOpClass___len__(self) def pop(self): return _MinorOpClass_vector.vector_MinorOpClass_pop(self) def __getslice__(self, *args): return _MinorOpClass_vector.vector_MinorOpClass___getslice__(self, *args) def __setslice__(self, *args): return _MinorOpClass_vector.vector_MinorOpClass___setslice__(self, *args) def __delslice__(self, *args): return _MinorOpClass_vector.vector_MinorOpClass___delslice__(self, *args) def __delitem__(self, *args): return _MinorOpClass_vector.vector_MinorOpClass___delitem__(self, *args) def __getitem__(self, *args): return _MinorOpClass_vector.vector_MinorOpClass___getitem__(self, *args) def __setitem__(self, *args): return _MinorOpClass_vector.vector_MinorOpClass___setitem__(self, *args) def append(self, *args): return _MinorOpClass_vector.vector_MinorOpClass_append(self, *args) def empty(self): return _MinorOpClass_vector.vector_MinorOpClass_empty(self) def size(self): return _MinorOpClass_vector.vector_MinorOpClass_size(self) def clear(self): return _MinorOpClass_vector.vector_MinorOpClass_clear(self) def swap(self, *args): return _MinorOpClass_vector.vector_MinorOpClass_swap(self, *args) def get_allocator(self): return _MinorOpClass_vector.vector_MinorOpClass_get_allocator(self) def begin(self): return _MinorOpClass_vector.vector_MinorOpClass_begin(self) def end(self): return _MinorOpClass_vector.vector_MinorOpClass_end(self) def rbegin(self): return _MinorOpClass_vector.vector_MinorOpClass_rbegin(self) def rend(self): return _MinorOpClass_vector.vector_MinorOpClass_rend(self) def pop_back(self): return _MinorOpClass_vector.vector_MinorOpClass_pop_back(self) def erase(self, *args): return _MinorOpClass_vector.vector_MinorOpClass_erase(self, *args) def __init__(self, *args): this = _MinorOpClass_vector.new_vector_MinorOpClass(*args) try: self.this.append(this) except: self.this = this def push_back(self, *args): return _MinorOpClass_vector.vector_MinorOpClass_push_back(self, *args) def front(self): return _MinorOpClass_vector.vector_MinorOpClass_front(self) def back(self): return _MinorOpClass_vector.vector_MinorOpClass_back(self) def assign(self, *args): return _MinorOpClass_vector.vector_MinorOpClass_assign(self, *args) def resize(self, *args): return _MinorOpClass_vector.vector_MinorOpClass_resize(self, *args) def insert(self, *args): return _MinorOpClass_vector.vector_MinorOpClass_insert(self, *args) def reserve(self, *args): return _MinorOpClass_vector.vector_MinorOpClass_reserve(self, *args) def capacity(self): return _MinorOpClass_vector.vector_MinorOpClass_capacity(self) __swig_destroy__ = _MinorOpClass_vector.delete_vector_MinorOpClass __del__ = lambda self : None; vector_MinorOpClass_swigregister = _MinorOpClass_vector.vector_MinorOpClass_swigregister vector_MinorOpClass_swigregister(vector_MinorOpClass)
50.710692
108
0.757286
992
8,063
5.665323
0.173387
0.185765
0.204982
0.204982
0.532562
0.47242
0.284164
0.111566
0.083808
0.070641
0
0.002917
0.149696
8,063
158
109
51.031646
0.816803
0.028525
0
0.154412
1
0
0.03119
0
0
0
0
0
0
1
0.426471
false
0.014706
0.102941
0.367647
0.654412
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
5
a35770ebbb97a7c52de18a8a4199d4de3ae9c958
3,622
py
Python
QuestJSOB/TestingSuccess/tc1000.py
Python3-Training/DatMan
1ba6bd230bd19fc9544965e568fa2d5c1bcd8532
[ "MIT" ]
null
null
null
QuestJSOB/TestingSuccess/tc1000.py
Python3-Training/DatMan
1ba6bd230bd19fc9544965e568fa2d5c1bcd8532
[ "MIT" ]
null
null
null
QuestJSOB/TestingSuccess/tc1000.py
Python3-Training/DatMan
1ba6bd230bd19fc9544965e568fa2d5c1bcd8532
[ "MIT" ]
1
2020-11-03T02:12:16.000Z
2020-11-03T02:12:16.000Z
#!/usr/bin/env python3 # Mission: Time to lock this one down. import os import os.path import sys sys.path.insert(0, '.') sys.path.insert(0, '../../') import json from QuestJSOB.JSOB import * from QuestJSOB.Questions import * from QuestJSOB.QuestExchange import EncodedJSOB as EncodedJSOB def get_text_cases() -> list: template = Quest.Source() results = [] results.append(Quest(template)) datum = Quest(template) datum.answer = 'This\\\n \tis\t a `basic` test.' datum.question = datum.answer results.append(datum) return results def get_text_file_name(): return "./TextFile.tmp~" def cleanup(): fn = get_text_file_name() if os.path.exists(fn): os.unlink(fn) assert(os.path.exists(fn) == False) def tc_1001(): cleanup() data = get_text_cases() fn = get_text_file_name() assert(Quest.Sync(data, fn)) data2 = Quest.Load(fn, True, True) assert(str(data) == str(data2)) cleanup() for dat in data: payload = EncodedJSOB.to_share(dat) restored = EncodedJSOB.from_share(payload) assert(str(restored) == str(dat)) assert(repr(restored) == repr(dat)) legacy_encoded = ''' Hey, nagy - Ceck this out! BEGIN_BLOCK$ 0y123|0y39|0y73|0y68|0y39|0y58 |0y32|0y53|0y44|0y32|0y39|0y75|0y73|0y68|0y39$ 0y58|0y32|0y39|0y116|0y98|0y100|0y39|0y44|0y32| 0y39|0y71|0y73|0y68|0y39|0y58 $0y32|0y39|0y57|0y49|0y65|0y54|0y48|0y52|0y51|0y65|0y45|0y48|0y56|0y50|0y48$0y45|0y49|0y49|0y69|0y66|0y45|0y57|0y56|0y57|0y66|0y45|0y67|0y52|0y51|0y52$0y54|0y66|0y48|0y55|0y66|0y48|0y68|0y50|0y39|0y44|0y32|0y39|0y100|0y105|0y102$0y102|0y105|0y99|0y117|0y108|0y116|0y121|0y39|0y58|0y32|0y39|0y101|0y120|0y112|0y101$0y114|0y116|0y39|0y44|0y32|0y39|0y97|0y115|0y115|0y111|0y99|0y105|0y97|0y116|0y105$0y111|0y110|0y39|0y58|0y32|0y39|0y95|0y83|0y81|0y76|0y39|0y44|0y32|0y39|0y115$0y116|0y97|0y116|0y117|0y115|0y39|0y58|0y32|0y39|0y103|0y116|0y103|0y39|0y44|0y32$0y39|0y113|0y117|0y101|0y115|0y116|0y105|0y111|0y110|0y39|0y58|0y32|0y39|0y87|0y104$0y97|0y116|0y32|0y105|0y115|0y32|0y116|0y104|0y101|0y32|0y100|0y105|0y102|0y102|0y101$0y114|0y101|0y110|0y99|0y101|0y32|0y98|0y101|0y116|0y119|0y101|0y101|0y110|0y32|0y68$0y77|0y76|0y44|0y32|0y97|0y110|0y100|0y32|0y68|0y81|0y76|0y32|0y105|0y110|0y32$0y83|0y81|0y76|0y63|0y39|0y44|0y32|0y39|0y97|0y110|0y115|0y119|0y101|0y114|0y39$0y58|0y32|0y39|0y92|0y92|0y611|0y615|0y83|0y116|0y97|0y110|0y100|0y97|0y114|0y100$0y32|0y83|0y81|0y76|0y32|0y99|0y111|0y109|0y109|0y97|0y110|0y100|0y32|0y99|0y97$0y116|0y101|0y103|0y111|0y114|0y105|0y101|0y115|0y58|0y92|0y92|0y611|0y615|0y68|0y68$0y76|0y32|0y68|0y97|0y116|0y97|0y32|0y68|0y101|0y102|0y105|0y110|0y105|0y116|0y105$0y111|0y110|0y32|0y76|0y97|0y110|0y103|0y117|0y97|0y103|0y101|0y92|0y92|0y611|0y615$0y68|0y81|0y108|0y32|0y68|0y97|0y116|0y97|0y32|0y81|0y117|0y101|0y114|0y121|0y32$0y76|0y97|0y110|0y103|0y117|0y97|0y103|0y101|0y92|0y92|0y611|0y615|0y68|0y77|0y76$0y32|0y68|0y97|0y116|0y97|0y32|0y77|0y97|0y110|0y105|0y112|0y117|0y108|0y97|0y116$0y105|0y111|0y110|0y32|0y76|0y97|0y110|0y103|0y117|0y97|0y103|0y101|0y92|0y92|0y611$0y615|0y68|0y67|0y76|0y32|0y68|0y97|0y116|0y97|0y32|0y67|0y111|0y110|0y116|0y114$0y111|0y108|0y32|0y76|0y97|0y110|0y103|0y117|0y97|0y103|0y101|0y92|0y92|0y611|0y615$0y39|0y125| $END_BLOCK--Like, whoah dude - "this is \O/ might be 'kewel?!" ''' quest1 = EncodedJSOB.from_share(legacy_encoded) assert(quest1) quest2 = EncodedJSOB.from_share(EncodedJSOB.to_share(quest1)) s1 = repr(quest1); s2 = repr(quest2) assert(s1 == s2) if __name__ == '__main__': tc_1001() print("Testing Success.")
51.742857
1,890
0.744892
590
3,622
4.518644
0.259322
0.042011
0.036009
0.042011
0.24156
0.195049
0.167667
0.135034
0.108027
0.108027
0
0.397755
0.090006
3,622
69
1,891
52.492754
0.411104
0.016013
0
0.071429
0
0.017857
0.626229
0.573434
0
0
0
0
0.125
1
0.071429
false
0
0.125
0.017857
0.232143
0.017857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
1
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
a37762b88fb0c2f5c0c41cb9e25f1c9c77af27f7
45
py
Python
src/lazy/exceptions/csv.py
hakube/python-lazy
1b6dfe65cf445abd969e26fc20fe4b52b48d121d
[ "Unlicense" ]
null
null
null
src/lazy/exceptions/csv.py
hakube/python-lazy
1b6dfe65cf445abd969e26fc20fe4b52b48d121d
[ "Unlicense" ]
null
null
null
src/lazy/exceptions/csv.py
hakube/python-lazy
1b6dfe65cf445abd969e26fc20fe4b52b48d121d
[ "Unlicense" ]
null
null
null
class InvalidCSVHeaders(Exception): pass
15
35
0.777778
4
45
8.75
1
0
0
0
0
0
0
0
0
0
0
0
0.155556
45
2
36
22.5
0.921053
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
6e650a4a7b14031820d9a1b5d6050a9cacc4cffa
169
py
Python
kinto_megaphone/heartbeat.py
Kinto/kinto-megaphone
bb228192e415b79bb03ff0662dd8590c7242cd00
[ "Apache-2.0" ]
null
null
null
kinto_megaphone/heartbeat.py
Kinto/kinto-megaphone
bb228192e415b79bb03ff0662dd8590c7242cd00
[ "Apache-2.0" ]
31
2018-09-12T10:29:06.000Z
2021-10-19T09:10:10.000Z
kinto_megaphone/heartbeat.py
Kinto/kinto-megaphone
bb228192e415b79bb03ff0662dd8590c7242cd00
[ "Apache-2.0" ]
1
2018-08-30T15:41:19.000Z
2018-08-30T15:41:19.000Z
class MegaphoneHeartbeat(object): def __init__(self, client): self.client = client def __call__(self, _request): return self.client.heartbeat()
24.142857
38
0.674556
18
169
5.833333
0.611111
0.285714
0
0
0
0
0
0
0
0
0
0
0.224852
169
6
39
28.166667
0.801527
0
0
0
0
0
0
0
0
0
0
0
0
1
0.4
false
0
0
0.2
0.8
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
5
6e6feadeddb31d250b9a51ba2464a438849269f6
95
py
Python
paypalhttp/environment.py
cameronmoten/paypalhttp_python
72609783230663b8e34c6f0384837db7b166c8f4
[ "MIT" ]
5
2020-04-25T01:07:23.000Z
2021-10-21T21:39:00.000Z
paypalhttp/environment.py
cameronmoten/paypalhttp_python
72609783230663b8e34c6f0384837db7b166c8f4
[ "MIT" ]
5
2018-01-31T18:05:35.000Z
2019-03-15T11:01:46.000Z
paypalhttp/environment.py
cameronmoten/paypalhttp_python
72609783230663b8e34c6f0384837db7b166c8f4
[ "MIT" ]
13
2020-03-03T02:35:50.000Z
2022-03-17T18:12:49.000Z
class Environment(object): def __init__(self, base_url): self.base_url = base_url
19
33
0.684211
13
95
4.461538
0.615385
0.362069
0.37931
0
0
0
0
0
0
0
0
0
0.221053
95
4
34
23.75
0.783784
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
5
6ea0ad92eea867c435c59acac335c777468e9001
181
py
Python
VerdictCut/__init__.py
NLU-Law-Tech/VerdictCut
c7027a7d60899f28d16cda60190b9c3684bd894e
[ "MIT" ]
1
2020-07-09T09:07:32.000Z
2020-07-09T09:07:32.000Z
VerdictCut/__init__.py
NLU-Law-Tech/VerdictCut
c7027a7d60899f28d16cda60190b9c3684bd894e
[ "MIT" ]
null
null
null
VerdictCut/__init__.py
NLU-Law-Tech/VerdictCut
c7027a7d60899f28d16cda60190b9c3684bd894e
[ "MIT" ]
1
2020-07-09T09:08:33.000Z
2020-07-09T09:08:33.000Z
from .find_fact import find_fact from .find_justice import find_justice from .find_laws import find_laws from .find_maintext import find_maintext from .find_roles import find_roles
30.166667
40
0.861878
30
181
4.866667
0.266667
0.273973
0
0
0
0
0
0
0
0
0
0
0.110497
181
5
41
36.2
0.906832
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
6eb3801cab090558c2e29c030148c2fb6db568cc
82
py
Python
urldecode.py
snarfed/misc
75ff9f19bee6bbb5f1cb855e53c0a14d942b3f70
[ "CC0-1.0" ]
17
2015-04-24T09:36:25.000Z
2021-04-26T06:12:46.000Z
urldecode.py
snarfed/misc
75ff9f19bee6bbb5f1cb855e53c0a14d942b3f70
[ "CC0-1.0" ]
12
2016-12-20T02:11:13.000Z
2018-04-13T05:06:58.000Z
urldecode.py
snarfed/misc
75ff9f19bee6bbb5f1cb855e53c0a14d942b3f70
[ "CC0-1.0" ]
7
2015-01-15T13:54:25.000Z
2022-01-06T20:51:41.000Z
#!/usr/bin/python import urllib, sys print urllib.unquote(' '.join(sys.argv[1:]))
20.5
44
0.695122
13
82
4.384615
0.846154
0
0
0
0
0
0
0
0
0
0
0.013333
0.085366
82
3
45
27.333333
0.746667
0.195122
0
0
0
0
0.015385
0
0
0
0
0
0
0
null
null
0
0.5
null
null
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
1
0
5
6eb3fcaef97c76993d2935bf27474872d16f28ff
62
py
Python
isolate/__init__.py
chowder/python-isolate
982853ae255e7f839bceca60e162610aa498d410
[ "MIT" ]
null
null
null
isolate/__init__.py
chowder/python-isolate
982853ae255e7f839bceca60e162610aa498d410
[ "MIT" ]
null
null
null
isolate/__init__.py
chowder/python-isolate
982853ae255e7f839bceca60e162610aa498d410
[ "MIT" ]
null
null
null
from .isolate import * # NOQA from .options import * # NOQA
20.666667
30
0.677419
8
62
5.25
0.625
0.47619
0
0
0
0
0
0
0
0
0
0
0.225806
62
2
31
31
0.875
0.145161
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
42ca85b83baaa334a2ea8ff25c5fdf994c303ddb
94
py
Python
constants.py
dodevs/python_pso
28af87e4eec93f0ae57961b8ecc02110b8bb0700
[ "MIT" ]
null
null
null
constants.py
dodevs/python_pso
28af87e4eec93f0ae57961b8ecc02110b8bb0700
[ "MIT" ]
null
null
null
constants.py
dodevs/python_pso
28af87e4eec93f0ae57961b8ecc02110b8bb0700
[ "MIT" ]
null
null
null
X_DOMAIN = [-100,100] Y_DOMAIN = [-100,100] PARTICLES_NUMBER = 20 VELOCITY_LIMIT = 0,15 # 15%
18.8
27
0.691489
16
94
3.8125
0.6875
0.295082
0.393443
0
0
0
0
0
0
0
0
0.2375
0.148936
94
4
28
23.5
0.525
0.031915
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
42eaf6290bdb809b7e9e7562d5a76b30bf6a7733
42
py
Python
djrest_wrapper/exceptions/services/base.py
almohress/djrest-wrapper
48f6e413fc9d8c8e22585133af7b344185398c4a
[ "MIT" ]
null
null
null
djrest_wrapper/exceptions/services/base.py
almohress/djrest-wrapper
48f6e413fc9d8c8e22585133af7b344185398c4a
[ "MIT" ]
null
null
null
djrest_wrapper/exceptions/services/base.py
almohress/djrest-wrapper
48f6e413fc9d8c8e22585133af7b344185398c4a
[ "MIT" ]
null
null
null
class BaseServiceExp(Exception): pass
14
32
0.761905
4
42
8
1
0
0
0
0
0
0
0
0
0
0
0
0.166667
42
2
33
21
0.914286
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
42ec494d03b4e088a3af880ff0fab756ca325f0a
12,102
py
Python
Friends_bokeh.py
rdzudzar/friends_analysis
be9faa718a5a537cfca23b1cf65e44f583b027d6
[ "MIT" ]
1
2019-08-13T23:42:54.000Z
2019-08-13T23:42:54.000Z
Friends_bokeh.py
rdzudzar/friends_analysis
be9faa718a5a537cfca23b1cf65e44f583b027d6
[ "MIT" ]
null
null
null
Friends_bokeh.py
rdzudzar/friends_analysis
be9faa718a5a537cfca23b1cf65e44f583b027d6
[ "MIT" ]
1
2022-01-21T00:38:38.000Z
2022-01-21T00:38:38.000Z
# -*- coding: utf-8 -*- """ Created on Fri Jul 5 23:32:37 2019 @author: Rob """ from bokeh.palettes import Spectral4 from bokeh.plotting import figure, output_file, show from bokeh.models import ColumnDataSource, ColorBar, HoverTool, BoxSelectTool, LabelSet, Label from Friends_analysis import * def make_bokeh_line_plot(): source = ColumnDataSource( data=dict( x=df_counted.index, mon=df_counted['NumLinesMon'], rac=df_counted['NumLinesRac'], pho=df_counted['NumLinesPho'], joe=df_counted['NumLinesJoe'], cha=df_counted['NumLinesCha'], ros=df_counted['NumLinesRos'], episode = df_only_sorry['Titles'], ) ) hover = HoverTool( tooltips=[ ("Episode", "$index"), ("Title", "@episode") ] ) p = figure(plot_width=1300, plot_height=700, tools=[hover, "pan,wheel_zoom,box_zoom,reset"]) p.title.text = 'Click on a Friend, Series analysis' p.vbar(season_delim, top=num_delim, width=0.2, color='purple', legend='Season+') p.line('x','mon', source=source, line_width=4, color='lightgrey', alpha=0.4, muted_color='#8c510a', muted_alpha=1, legend='Monica') p.line('x', 'rac', source=source, line_width=4, color='lightgrey', alpha=0.4, muted_color='#01665e', muted_alpha=1, legend='Rachel') p.line('x', 'pho', source=source, line_width=4, color='lightgrey', alpha=0.4, muted_color='#c51b7d', muted_alpha=1, legend='Phoebe') p.line('x', 'joe', source=source, line_width=4, color='lightgrey', alpha=0.4, muted_color='#4d4d4d', muted_alpha=1, legend='Joey') p.line('x', 'cha', source=source, line_width=4, color='lightgrey', alpha=0.4, muted_color='#762a83', muted_alpha=1, legend='Chandler') p.line('x', 'ros', source=source, line_width=4, color='lightgrey', alpha=0.4, muted_color='#b2182b', muted_alpha=1, legend='Ross') p.legend.location = "top_right" p.legend.click_policy="mute" # Define axis labels and properties p.xaxis.axis_label = 'Episode' p.yaxis.axis_label = 'Number of Lines' p.xaxis.axis_label_text_font_size = "15pt" p.yaxis.axis_label_text_font_size = "15pt" p.title.text_font_size = '18pt' p.xaxis.major_label_text_font_size = "15pt" p.yaxis.major_label_text_font_size = "15pt" p.legend.label_text_font_size = '20pt' #output_file("interactive_legend.html", title="interactive_legend.py example") show(p) return def make_bokeh_bar_plot(): p = figure(plot_width=1300, plot_height=700) p.title.text = 'Click on a Friend, Series analysis' p.vbar(season_delim, top=num_delim, width=0.2, color='purple', legend='Season+') #for data, name, color in zip([AAPL, IBM, MSFT, GOOG], ["AAPL", "IBM", "MSFT", "GOOG"], Spectral4): p.vbar(df_counted.index, top = df_counted['SumMonica'], width=0.2, line_width=4, color='lightgrey', alpha=0.4, muted_color='black', muted_alpha=1, legend='Monica') p.vbar(df_counted.index,top = df_counted['SumRachel'], width = 0.2, line_width=4, color='lightgrey', alpha=0.4, muted_color='#0868ac', muted_alpha=1, legend='Rachel') p.vbar(df_counted.index,top = df_counted['SumPhoebe'], width = 0.2, line_width=4, color='lightgrey', alpha=0.4, muted_color='#e34a33', muted_alpha=1, legend='Phoebe') p.vbar(df_counted.index,top = df_counted['SumJoey'],width = 0.2, line_width=4, color='lightgrey', alpha=0.4, muted_color='#c51b8a', muted_alpha=1, legend='Joey') p.vbar(df_counted.index,top = df_counted['SumChandler'],width = 0.2, line_width=4, color='lightgrey', alpha=0.4, muted_color='#8c510a', muted_alpha=1, legend='Chandler') p.vbar(df_counted.index,top = df_counted['SumRoss'],width = 0.2, line_width=4, color='lightgrey', alpha=0.4, muted_color='#c51b7d', muted_alpha=1, legend='Ross') p.legend.orientation = "horizontal" p.legend.location = "top_center" p.legend.click_policy="mute" # Define axis labels and properties p.xaxis.axis_label = 'Episode' p.yaxis.axis_label = 'Word Count [I, I\'m, My]' p.xaxis.axis_label_text_font_size = "15pt" p.yaxis.axis_label_text_font_size = "15pt" p.title.text_font_size = '18pt' p.xaxis.major_label_text_font_size = "15pt" p.yaxis.major_label_text_font_size = "15pt" p.output_file("Friends_interactive.html") show(p) return def make_bokeh_normalized_plot(): source = ColumnDataSource( data=dict( x=df_counted.index, mon=df_counted['SumMonica']/df_counted['NumLinesMon'], rac=df_counted['SumRachel']/df_counted['NumLinesRac'], pho=df_counted['SumPhoebe']/df_counted['NumLinesPho'], joe=df_counted['SumJoey']/df_counted['NumLinesJoe'], cha=df_counted['SumChandler']/df_counted['NumLinesCha'], ros=df_counted['SumRoss']/df_counted['NumLinesRos'], episode = df_only_sorry['Titles'], ) ) hover = HoverTool( tooltips=[ ("Episode", "$index"), ("Title", "@episode") ] ) p = figure(plot_width=1300, plot_height=700, tools=[hover, "pan,wheel_zoom,box_zoom,reset"]) p.title.text = 'Click on a Friend, Series analysis' p.vbar(season_delim, top=num_delim, width=0.2, color='purple', legend='') p.line('x','mon', source=source, line_width=4, color='lightgrey', alpha=0.4, muted_color='#8c510a', muted_alpha=1, legend='Monica') p.line('x', 'rac', source=source, line_width=4, color='lightgrey', alpha=0.4, muted_color='#01665e', muted_alpha=1, legend='Rachel') p.line('x', 'pho', source=source, line_width=4, color='lightgrey', alpha=0.4, muted_color='#c51b7d', muted_alpha=1, legend='Phoebe') p.line('x', 'joe', source=source, line_width=4, color='lightgrey', alpha=0.4, muted_color='#4d4d4d', muted_alpha=1, legend='Joey') p.line('x', 'cha', source=source, line_width=4, color='lightgrey', alpha=0.4, muted_color='#762a83', muted_alpha=1, legend='Chandler') p.line('x', 'ros', source=source, line_width=4, color='lightgrey', alpha=0.4, muted_color='#b2182b', muted_alpha=1, legend='Ross') p.legend.orientation = "horizontal" p.legend.location = "top_center" p.legend.click_policy="mute" # Define axis labels and properties p.xaxis.axis_label = 'Episode' p.yaxis.axis_label = '\"Self-oriented\" [counts]' p.xaxis.axis_label_text_font_size = "15pt" p.yaxis.axis_label_text_font_size = "15pt" p.title.text_font_size = '18pt' p.xaxis.major_label_text_font_size = "15pt" p.yaxis.major_label_text_font_size = "15pt" p.legend.label_text_font_size = '20pt' #output_file("interactive_legend.html", title="interactive_legend.py example") x_positions = [7, 29.5, 53.5, 78.5, 99.5, 123.5, 146.5, 168.5, 192.5, 211.5] season_num = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] for i, each_label in enumerate(x_positions): mytext = Label(x=each_label, y=0, text='Season {0}'.format(season_num[i]), border_line_color='black', border_line_alpha=0.5,text_font_size="13pt") p.add_layout(mytext) show(p) return def make_bokeh_correlation_numline_plot(): source = ColumnDataSource( data=dict( x=df_counted.index, monica=df_counted['NumLinesMon'], rachel=df_counted['NumLinesRac'], phoebe=df_counted['NumLinesPho'], joey=df_counted['NumLinesJoe'], chandler=df_counted['NumLinesCha'], ross=df_counted['NumLinesRos'], episode = df_only_sorry['Titles'], ) ) hover = HoverTool( tooltips=[ ("Episode", "$index"), ("Title", "@episode") ] ) p = figure(plot_width=1500, plot_height=800, tools=[hover, "pan,wheel_zoom,box_zoom,reset"]) p.title.text = 'Click on a Friend, Series analysis' x_corr = 'x' p.vbar(season_delim, top=num_delim_lines, width=0.2, color='purple', legend='') p.line(x_corr,'monica', source=source, line_width=4, color='lightgrey', alpha=0.4, muted_color='#8c510a', muted_alpha=1, legend='Monica') p.line(x_corr, 'rachel', source=source, line_width=4, color='lightgrey', alpha=0.4, muted_color='#01665e', muted_alpha=1, legend='Rachel') p.line(x_corr, 'phoebe', source=source, line_width=4, color='lightgrey', alpha=0.4, muted_color='#c51b7d', muted_alpha=1, legend='Phoebe') p.line(x_corr, 'joey', source=source, line_width=4, color='lightgrey', alpha=0.4, muted_color='#4d4d4d', muted_alpha=1, legend='Joey') p.line(x_corr, 'chandler', source=source, line_width=4, color='lightgrey', alpha=0.4, muted_color='#762a83', muted_alpha=1, legend='Chandler') p.line(x_corr, 'ross', source=source, line_width=4, color='lightgrey', alpha=0.4, muted_color='#b2182b', muted_alpha=1, legend='Ross') x_positions = [7, 29.5, 53.5, 78.5, 99.5, 123.5, 146.5, 168.5, 192.5, 211.5] season_num = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] for i, each_label in enumerate(x_positions): mytext = Label(x=each_label, y=0, text='Season {0}'.format(season_num[i]), border_line_color='black', border_line_alpha=0.5,text_font_size="13pt") p.add_layout(mytext) # THIS IS GOOD BUT IT DOESNT WORK ON ZOOM # source_labels = ColumnDataSource(data=dict(x_positions = np.cumsum(num_episodes), # num_delim = num_delim_lines, # names = ['Season 1', 'Season 2', 'Season 3', 'Season 4', # 'Season 5', 'Season 6', 'Season 7', 'Season 8', # 'Season 9', 'Season 10'])) # # #p = figure(plot_width=1500, plot_height=800, tools=["pan,wheel_zoom,box_zoom,reset"]) # p.vbar(x='x_positions', top='num_delim', width=0.2, color='purple', legend='', source=source_labels) # # #p.scatter(x='x_positions', y='num_delim', size=8, source=source_labels) # # labels = LabelSet(x='x_positions', y='num_delim', text='names', level='glyph', # x_offset=-100, y_offset=-530, source=source_labels, render_mode='canvas') # # p.add_layout(labels) p.legend.orientation = "horizontal" p.legend.location = "top_center" p.legend.click_policy="mute" # Define axis labels and properties #p.xaxis.axis_label = 'Number of Lines of {0}'.format(x_corr.capitalize()) p.xaxis.axis_label = 'Episode' p.yaxis.axis_label = 'Number of Lines' p.xaxis.axis_label_text_font_size = "15pt" p.yaxis.axis_label_text_font_size = "15pt" p.title.text_font_size = '18pt' p.xaxis.major_label_text_font_size = "15pt" p.yaxis.major_label_text_font_size = "15pt" p.legend.label_text_font_size = '20pt' #output_file("interactive_legend.html", title="interactive_legend.py example") show(p) ################################################## ########### Handle the functions ################# ################################################## season_delim = np.cumsum(num_episodes).tolist() num_delim = [2.5]*10 num_delim_lines = [100]*10 if __name__ == "__main__": # Line bar plot #make_bokeh_bar_plot() # Number of lines make_bokeh_line_plot() # Normalized plot of self-oriented #make_bokeh_normalized_plot() # make_bokeh_correlation_numline_plot()
36.017857
109
0.605768
1,617
12,102
4.319109
0.134818
0.050258
0.042955
0.051546
0.811856
0.802978
0.735968
0.728522
0.697165
0.672967
0
0.046549
0.23492
12,102
336
110
36.017857
0.707744
0.142786
0
0.631579
0
0.031579
0.162901
0.011245
0
0
0
0
0
1
0.021053
false
0
0.021053
0
0.057895
0
0
0
0
null
0
0
0
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
6e45d5c829572f2200488f5afe87d7eebd08200d
166
py
Python
proll_service/core/admin.py
diegosorrilha/jornada-empreendedor-diagnostico
64807f8768c404bb06b011d214fb6d2967c867d5
[ "MIT" ]
null
null
null
proll_service/core/admin.py
diegosorrilha/jornada-empreendedor-diagnostico
64807f8768c404bb06b011d214fb6d2967c867d5
[ "MIT" ]
25
2019-05-31T02:20:23.000Z
2022-02-10T09:58:36.000Z
proll_service/core/admin.py
diegosorrilha/jornada-empreendedor-diagnostico
64807f8768c404bb06b011d214fb6d2967c867d5
[ "MIT" ]
null
null
null
from django.contrib import admin from proll_service.core.models import Establishment, Assessment admin.site.register(Establishment) admin.site.register(Assessment)
23.714286
63
0.849398
21
166
6.666667
0.619048
0.128571
0.242857
0
0
0
0
0
0
0
0
0
0.078313
166
6
64
27.666667
0.915033
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
282a4eea14843f76982ed5df4e239c9fecb2b93c
156
py
Python
back_end/DbModel/admin.py
Wizard-J/Jsite
ddfe8deae0a9f3490b50ed4829d2563cfb6b3c1d
[ "MIT" ]
null
null
null
back_end/DbModel/admin.py
Wizard-J/Jsite
ddfe8deae0a9f3490b50ed4829d2563cfb6b3c1d
[ "MIT" ]
null
null
null
back_end/DbModel/admin.py
Wizard-J/Jsite
ddfe8deae0a9f3490b50ed4829d2563cfb6b3c1d
[ "MIT" ]
null
null
null
from django.contrib import admin from DbModel.models import Article, Tag # Register your models here. admin.site.register(Article) admin.site.register(Tag)
26
39
0.814103
23
156
5.521739
0.565217
0.141732
0.267717
0
0
0
0
0
0
0
0
0
0.102564
156
6
40
26
0.907143
0.166667
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
28a12b7db55cdab53a8e680e25f78c8807b8aa3e
92
py
Python
uno/exceptions.py
uno-project/backend
0b2e844f981dcc696c761b5efdb9fee25861aae4
[ "MIT" ]
null
null
null
uno/exceptions.py
uno-project/backend
0b2e844f981dcc696c761b5efdb9fee25861aae4
[ "MIT" ]
96
2020-04-10T10:15:24.000Z
2022-03-28T21:11:17.000Z
uno/exceptions.py
uno-project/backend
0b2e844f981dcc696c761b5efdb9fee25861aae4
[ "MIT" ]
null
null
null
class UnoRuleException(Exception): pass class UnoWinnerException(Exception): pass
13.142857
36
0.76087
8
92
8.75
0.625
0.371429
0
0
0
0
0
0
0
0
0
0
0.173913
92
6
37
15.333333
0.921053
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
95382676e3ae0f0465f1a6b072096c9efdf79f38
41
py
Python
tests/__init__.py
omidmogasemi/discord-wordle
95c06e1cb384d0c63487df5a7736154256308501
[ "MIT" ]
null
null
null
tests/__init__.py
omidmogasemi/discord-wordle
95c06e1cb384d0c63487df5a7736154256308501
[ "MIT" ]
null
null
null
tests/__init__.py
omidmogasemi/discord-wordle
95c06e1cb384d0c63487df5a7736154256308501
[ "MIT" ]
null
null
null
import sys sys.path.insert(0, '../bot')
13.666667
29
0.634146
7
41
3.714286
0.857143
0
0
0
0
0
0
0
0
0
0
0.027778
0.121951
41
2
30
20.5
0.694444
0
0
0
0
0
0.146341
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
9547a960830a33b25bd84a2e5b985673a63675a1
2,681
py
Python
008/008.py
henriwoodcock/project-euler
1312b894b63eb34c6f99a5396a109103bd13fc10
[ "MIT" ]
null
null
null
008/008.py
henriwoodcock/project-euler
1312b894b63eb34c6f99a5396a109103bd13fc10
[ "MIT" ]
null
null
null
008/008.py
henriwoodcock/project-euler
1312b894b63eb34c6f99a5396a109103bd13fc10
[ "MIT" ]
null
null
null
''' Largest product in a series The four adjacent digits in the 1000-digit number that have the greatest product are 9 × 9 × 8 × 9 = 5832. 73167176531330624919225119674426574742355349194934 96983520312774506326239578318016984801869478851843 85861560789112949495459501737958331952853208805511 12540698747158523863050715693290963295227443043557 66896648950445244523161731856403098711121722383113 62229893423380308135336276614282806444486645238749 30358907296290491560440772390713810515859307960866 70172427121883998797908792274921901699720888093776 65727333001053367881220235421809751254540594752243 52584907711670556013604839586446706324415722155397 53697817977846174064955149290862569321978468622482 83972241375657056057490261407972968652414535100474 82166370484403199890008895243450658541227588666881 16427171479924442928230863465674813919123162824586 17866458359124566529476545682848912883142607690042 24219022671055626321111109370544217506941658960408 07198403850962455444362981230987879927244284909188 84580156166097919133875499200524063689912560717606 05886116467109405077541002256983155200055935729725 71636269561882670428252483600823257530420752963450 Find the thirteen adjacent digits in the 1000-digit number that have the greatest product. What is the value of this product? ''' if __name__ == '__main__': input_num = 7316717653133062491922511967442657474235534919493496983520312774506326239578318016984801869478851843858615607891129494954595017379583319528532088055111254069874715852386305071569329096329522744304355766896648950445244523161731856403098711121722383113622298934233803081353362766142828064444866452387493035890729629049156044077239071381051585930796086670172427121883998797908792274921901699720888093776657273330010533678812202354218097512545405947522435258490771167055601360483958644670632441572215539753697817977846174064955149290862569321978468622482839722413756570560574902614079729686524145351004748216637048440319989000889524345065854122758866688116427171479924442928230863465674813919123162824586178664583591245665294765456828489128831426076900422421902267105562632111110937054421750694165896040807198403850962455444362981230987879927244284909188845801561660979191338754992005240636899125607176060588611646710940507754100225698315520005593572972571636269561882670428252483600823257530420752963450 string = str(input_num) num_array = [int(digit) for digit in string] product = 0 for i in range(12, len(num_array)): current_array = num_array[i-13: i] new_prod = 1 for num in current_array: new_prod *= num if new_prod > product: product = new_prod print(product)
57.042553
1,016
0.904513
125
2,681
19.272
0.552
0.011623
0.013284
0.015774
0.049813
0.049813
0.049813
0.049813
0.049813
0.049813
0
0.81697
0.076837
2,681
46
1,017
58.282609
0.155152
0.478553
0
0
0
0
0.005755
0
0
1
0
0
0
1
0
false
0
0
0
0
0.076923
0
0
1
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
1
0
0
0
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
5
9548f1c417d80be08beaa97d67a3bd1a63aa3ef7
666
py
Python
tests/unit/test_myutils.py
cpolanec/minecraft-server-controller
8b98d4cd79ba67c7033908bff8f8c6eacd80b099
[ "MIT" ]
1
2021-07-01T18:56:43.000Z
2021-07-01T18:56:43.000Z
tests/unit/test_myutils.py
cpolanec/minecraft-server-controller
8b98d4cd79ba67c7033908bff8f8c6eacd80b099
[ "MIT" ]
232
2021-03-28T23:41:02.000Z
2022-03-25T21:23:19.000Z
tests/unit/test_myutils.py
cpolanec/minecraft-server-controller
8b98d4cd79ba67c7033908bff8f8c6eacd80b099
[ "MIT" ]
null
null
null
"""Unit testing for 'myutils' module.""" import myutils def test_get_first(): """Test get_first() function.""" assert myutils.get_first('', []) == '' assert myutils.get_first('Hello', []) == '' assert myutils.get_first('Hello', [{}]) == '' assert myutils.get_first('Hello', [{'Key': 'NotHello'}]) == '' assert myutils.get_first('Hello', [{'Key': 'Hello'}]) == '' assert myutils.get_first( 'Hello', [{'Key': 'Hello', 'Value': 'World'}]) == 'World' assert myutils.get_first( 'Hello', [ {'Key': 'Hello', 'Value': 'World'}, {'Key': 'Hello', 'Value': 'Bizarro'} ] ) == 'World'
31.714286
66
0.521021
67
666
5.029851
0.268657
0.21365
0.332344
0.436202
0.602374
0.602374
0.602374
0.492582
0.492582
0.231454
0
0
0.237237
666
20
67
33.3
0.663386
0.091592
0
0.125
0
0
0.193603
0
0
0
0
0
0.4375
1
0.0625
true
0
0.0625
0
0.125
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
1
0
0
0
0
0
0
5
95997ad45fbeb7b4d851b02065c044b0e2544f3b
150
py
Python
discord_embeds/__init__.py
Lapis0875/DiscordPyEmbed
c53a5457336180b056f4f5d14da28f204804b02a
[ "MIT" ]
10
2020-09-21T09:36:13.000Z
2021-07-30T16:02:14.000Z
discord_embeds/__init__.py
Lapis0875/DiscordPyEmbed
c53a5457336180b056f4f5d14da28f204804b02a
[ "MIT" ]
null
null
null
discord_embeds/__init__.py
Lapis0875/DiscordPyEmbed
c53a5457336180b056f4f5d14da28f204804b02a
[ "MIT" ]
1
2020-10-03T05:08:29.000Z
2020-10-03T05:08:29.000Z
""" discord.py-embed ---------------- Extended embed module for discord.py """ from .exceptions import * from .objects import * from .embed import *
15
36
0.646667
18
150
5.388889
0.555556
0.185567
0
0
0
0
0
0
0
0
0
0
0.146667
150
9
37
16.666667
0.757813
0.466667
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
95d41a935a32b41acdc7976099aeb7469887988d
210
py
Python
app/api/search.py
zack-kimble/photo_gallery_wip
867db4f4c403fdbbe8cb4ad2771b18bbcda2cc1e
[ "MIT" ]
null
null
null
app/api/search.py
zack-kimble/photo_gallery_wip
867db4f4c403fdbbe8cb4ad2771b18bbcda2cc1e
[ "MIT" ]
null
null
null
app/api/search.py
zack-kimble/photo_gallery_wip
867db4f4c403fdbbe8cb4ad2771b18bbcda2cc1e
[ "MIT" ]
null
null
null
from app.api import bp @bp.route('/api/search/<int:search_id>', methods=['GET']) def get_search(): pass @bp.route('/api/search/<int:search_id>/results', methods=['GET']) def get_search_results(): pass
23.333333
65
0.680952
33
210
4.181818
0.424242
0.101449
0.144928
0.231884
0.710145
0.391304
0.391304
0
0
0
0
0
0.109524
210
9
66
23.333333
0.737968
0
0
0.285714
0
0
0.322275
0.293839
0
0
0
0
0
1
0.285714
true
0.285714
0.142857
0
0.428571
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
1
0
0
0
0
0
5
95dc18859aa275180e396f4bef8e938993f15bd5
36
py
Python
analysis.py
Monxun/PortfolioML
e28e1ed96d8dcb97e59168622f10763ed1edcb96
[ "MIT" ]
null
null
null
analysis.py
Monxun/PortfolioML
e28e1ed96d8dcb97e59168622f10763ed1edcb96
[ "MIT" ]
null
null
null
analysis.py
Monxun/PortfolioML
e28e1ed96d8dcb97e59168622f10763ed1edcb96
[ "MIT" ]
null
null
null
# METHODS FOR ANALYZING DATAFRAMES
12
34
0.805556
4
36
7.25
1
0
0
0
0
0
0
0
0
0
0
0
0.166667
36
2
35
18
0.966667
0.888889
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
95e2068989a57f34e96d6bd3f8c0bafe91bc7a5a
187
py
Python
shakenfist/util/random.py
mandoonandy/shakenfist
b96ebaf2e304233cc3bab7131895ef6ba685289b
[ "Apache-2.0" ]
24
2020-07-20T23:47:52.000Z
2022-02-10T05:12:01.000Z
shakenfist/util/random.py
mandoonandy/shakenfist
b96ebaf2e304233cc3bab7131895ef6ba685289b
[ "Apache-2.0" ]
637
2020-06-19T06:57:30.000Z
2022-03-31T08:58:54.000Z
shakenfist/util/random.py
mandoonandy/shakenfist
b96ebaf2e304233cc3bab7131895ef6ba685289b
[ "Apache-2.0" ]
7
2020-07-14T20:48:40.000Z
2021-12-18T10:06:51.000Z
import random import string def random_id(): """ Returns a short random string for queue entries. """ return ''.join(random.choices(string.ascii_letters + string.digits, k=16))
23.375
78
0.71123
26
187
5.038462
0.730769
0
0
0
0
0
0
0
0
0
0
0.012821
0.165775
187
7
79
26.714286
0.826923
0.256684
0
0
0
0
0
0
0
0
0
0
0
1
0.25
true
0
0.5
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
0
0
0
5
25043dfd242067ab5d85b1f9f9ed7f79a19499a2
102
py
Python
interfaces/feedforward/__init__.py
RobertCsordas/modules
efdb8790b074862581e035c9ab5bf889440a8023
[ "BSD-3-Clause" ]
22
2020-10-19T07:40:01.000Z
2022-03-24T15:26:34.000Z
interfaces/feedforward/__init__.py
xdever/modules
efdb8790b074862581e035c9ab5bf889440a8023
[ "BSD-3-Clause" ]
6
2020-10-19T23:57:23.000Z
2022-03-12T00:51:58.000Z
interfaces/feedforward/__init__.py
xdever/modules
efdb8790b074862581e035c9ab5bf889440a8023
[ "BSD-3-Clause" ]
5
2020-11-30T00:17:34.000Z
2021-06-26T11:43:24.000Z
from .tuple_arithmetic import FFTupleArithmeticDatasetInterface from .add_mul import FFAddMulInterface
51
63
0.911765
10
102
9.1
0.8
0
0
0
0
0
0
0
0
0
0
0
0.068627
102
2
64
51
0.957895
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
25507ac547909cd05407a67d37fe02e0428530bd
32
py
Python
buildconfig/__main__.py
czogran/pygame1
1591a3295402f914950ae15039b91136d8bf8f79
[ "Python-2.0", "OLDAP-2.3" ]
2
2021-04-03T20:01:35.000Z
2021-09-09T23:42:21.000Z
buildconfig/__main__.py
czogran/pygame1
1591a3295402f914950ae15039b91136d8bf8f79
[ "Python-2.0", "OLDAP-2.3" ]
null
null
null
buildconfig/__main__.py
czogran/pygame1
1591a3295402f914950ae15039b91136d8bf8f79
[ "Python-2.0", "OLDAP-2.3" ]
1
2021-06-06T17:52:54.000Z
2021-06-06T17:52:54.000Z
from .config import main main()
10.666667
24
0.75
5
32
4.8
0.8
0
0
0
0
0
0
0
0
0
0
0
0.15625
32
2
25
16
0.888889
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
c2d029b0753b5affdc4888aa405441cfd4801fa9
96
py
Python
pyro/dynamic/__init__.py
SherbyRobotics/PyRobotics
86eb1189258f6f41642a149c813dd2fd6853bcc1
[ "MIT" ]
14
2019-05-03T15:22:38.000Z
2022-03-14T15:31:54.000Z
pyro/dynamic/__init__.py
SherbyRobotics/PyRobotics
86eb1189258f6f41642a149c813dd2fd6853bcc1
[ "MIT" ]
9
2019-08-01T14:22:13.000Z
2021-06-12T01:44:50.000Z
pyro/dynamic/__init__.py
SherbyRobotics/PyRobotics
86eb1189258f6f41642a149c813dd2fd6853bcc1
[ "MIT" ]
9
2019-05-21T12:38:36.000Z
2022-03-29T16:28:45.000Z
from .system import ContinuousDynamicSystem from .statespace import StateSpaceSystem, linearize
32
51
0.875
9
96
9.333333
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.09375
96
3
51
32
0.965517
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
6c1cce7cf912277a8bde7b200f8df91c3cd313c8
66
py
Python
10930/10930.py3.py
isac322/BOJ
35959dd1a63d75ebca9ed606051f7a649d5c0c7b
[ "MIT" ]
14
2017-05-02T02:00:42.000Z
2021-11-16T07:25:29.000Z
10930/10930.py3.py
isac322/BOJ
35959dd1a63d75ebca9ed606051f7a649d5c0c7b
[ "MIT" ]
1
2017-12-25T14:18:14.000Z
2018-02-07T06:49:44.000Z
10930/10930.py3.py
isac322/BOJ
35959dd1a63d75ebca9ed606051f7a649d5c0c7b
[ "MIT" ]
9
2016-03-03T22:06:52.000Z
2020-04-30T22:06:24.000Z
import hashlib print(hashlib.sha256(input().encode()).hexdigest())
33
51
0.772727
8
66
6.375
0.875
0
0
0
0
0
0
0
0
0
0
0.046875
0.030303
66
2
51
33
0.75
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
1
0
5
6c7baa4647849bf1d7beb509d234d955ed29d048
408
py
Python
foursquare_bot/components/commands/__init__.py
rerobins/rho_foursquare_bot
7faa45ea61deab2373c31e8418dc1d8699e5f8c2
[ "BSD-3-Clause" ]
null
null
null
foursquare_bot/components/commands/__init__.py
rerobins/rho_foursquare_bot
7faa45ea61deab2373c31e8418dc1d8699e5f8c2
[ "BSD-3-Clause" ]
null
null
null
foursquare_bot/components/commands/__init__.py
rerobins/rho_foursquare_bot
7faa45ea61deab2373c31e8418dc1d8699e5f8c2
[ "BSD-3-Clause" ]
null
null
null
from foursquare_bot.components.commands.configure_client_details import configure_client_details from foursquare_bot.components.commands.search_venues import search_venues from sleekxmpp.plugins.base import register_plugin def load_commands(): """ Register the core plugins for the system. :return: None """ register_plugin(configure_client_details) register_plugin(search_venues)
29.142857
96
0.808824
50
408
6.3
0.48
0.142857
0.209524
0.171429
0.222222
0
0
0
0
0
0
0
0.132353
408
13
97
31.384615
0.889831
0.134804
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
true
0
0.5
0
0.666667
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
66621cd962475333611fac17245733b09b4f8ed2
987
py
Python
tests/cases/issues/test_py35_issue_243.py
eddiebergman/python-pytest-cases
501f9fbca05f1e616fa3f9e8ead060f1d5896071
[ "BSD-3-Clause" ]
null
null
null
tests/cases/issues/test_py35_issue_243.py
eddiebergman/python-pytest-cases
501f9fbca05f1e616fa3f9e8ead060f1d5896071
[ "BSD-3-Clause" ]
null
null
null
tests/cases/issues/test_py35_issue_243.py
eddiebergman/python-pytest-cases
501f9fbca05f1e616fa3f9e8ead060f1d5896071
[ "BSD-3-Clause" ]
null
null
null
import pytest from pytest_cases import parametrize_with_cases, fixture def test_missing_self(): class MyCases: def case_forgot_self() -> int: return 456 with pytest.raises(TypeError) as exc_info: @parametrize_with_cases(argnames="expected", cases=MyCases) def test_foo(expected): pass assert str(exc_info.value) == ("case method is missing 'self' argument but is not static: %s" % MyCases.case_forgot_self) @fixture def a(): return def test_missing_self_params(): class MyCases: def case_fix_forgot_self(a) -> int: return a with pytest.raises(TypeError) as exc_info: @parametrize_with_cases(argnames="expected", cases=MyCases) def test_foo(expected): pass assert str(exc_info.value) == ("case method is missing 'self' argument but is not static: %s" % MyCases.case_fix_forgot_self)
26.675676
97
0.62614
122
987
4.836066
0.327869
0.047458
0.101695
0.061017
0.616949
0.616949
0.616949
0.616949
0.616949
0.616949
0
0.00428
0.289767
987
36
98
27.416667
0.837375
0
0
0.48
0
0
0.137791
0
0
0
0
0
0.08
1
0.28
false
0.08
0.08
0.12
0.56
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
1
1
0
0
5
66a10a577886eaec7924e6699d3bfc425dd20bf3
39
py
Python
lhrhost/tests/__init__.py
ethanjli/liquid-handling-robotics
999ab03c225b4c5382ab9fcac6a4988d0c232c67
[ "BSD-3-Clause" ]
null
null
null
lhrhost/tests/__init__.py
ethanjli/liquid-handling-robotics
999ab03c225b4c5382ab9fcac6a4988d0c232c67
[ "BSD-3-Clause" ]
null
null
null
lhrhost/tests/__init__.py
ethanjli/liquid-handling-robotics
999ab03c225b4c5382ab9fcac6a4988d0c232c67
[ "BSD-3-Clause" ]
1
2018-08-03T17:17:31.000Z
2018-08-03T17:17:31.000Z
"""Various tests for other modules."""
19.5
38
0.692308
5
39
5.4
1
0
0
0
0
0
0
0
0
0
0
0
0.128205
39
1
39
39
0.794118
0.820513
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
66aac79f86cb670582007ac6831815cc5e9f0ed0
42
py
Python
timon/notifiers/__init__.py
quentinql/timon
9cd3f32387407953cc331b8cd908daf5be4d4af8
[ "BSD-3-Clause" ]
null
null
null
timon/notifiers/__init__.py
quentinql/timon
9cd3f32387407953cc331b8cd908daf5be4d4af8
[ "BSD-3-Clause" ]
13
2019-07-29T14:50:30.000Z
2021-05-05T08:36:15.000Z
timon/notifiers/__init__.py
quentinql/timon
9cd3f32387407953cc331b8cd908daf5be4d4af8
[ "BSD-3-Clause" ]
5
2017-08-03T13:20:29.000Z
2019-08-19T12:18:19.000Z
from timon.notifiers.base import * # noqa
21
41
0.761905
6
42
5.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.142857
42
1
42
42
0.888889
0.095238
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
dd6e4b5fea4894348829afc165699d044da8ddab
24,946
py
Python
cellpack/mgl_tools/DejaVu/VisionInterface/Tests/Data/parentsAndMacro_net.py
mesoscope/cellpack
ec6b736fc706c1fae16392befa814b5337a3a692
[ "MIT" ]
null
null
null
cellpack/mgl_tools/DejaVu/VisionInterface/Tests/Data/parentsAndMacro_net.py
mesoscope/cellpack
ec6b736fc706c1fae16392befa814b5337a3a692
[ "MIT" ]
21
2021-10-02T00:07:05.000Z
2022-03-30T00:02:10.000Z
cellpack/mgl_tools/DejaVu/VisionInterface/Tests/Data/parentsAndMacro_net.py
mesoscope/cellpack
ec6b736fc706c1fae16392befa814b5337a3a692
[ "MIT" ]
null
null
null
######################################################################## # # Vision Network - Python source code - file generated by vision # Wednesday 10 October 2007 14:20:02 # # The Scripps Research Institute (TSRI) # Molecular Graphics Lab # La Jolla, CA 92037, USA # # Copyright: Daniel Stoffler, Michel Sanner and TSRI # # revision: Guillaume Vareille # ######################################################################### # # $Header$ # # $Id$ # from traceback import print_exc ## loading libraries ## from DejaVu.VisionInterface.DejaVuNodes import vizlib masterNet.getEditor().addLibraryInstance( vizlib, "DejaVu.VisionInterface.DejaVuNodes", "vizlib" ) from Volume.VisionInterface.VolumeNodes import vollib masterNet.getEditor().addLibraryInstance( vollib, "Volume.VisionInterface.VolumeNodes", "vollib" ) try: ## saving node UT-Isocontour ## from Volume.VisionInterface.VolumeNodes import Isocontour UT_Isocontour_0 = Isocontour(constrkw={}, name="UT-Isocontour", library=vollib) masterNet.addNode(UT_Isocontour_0, 281, 22) apply( UT_Isocontour_0.inputPortByName["isovalue"].widget.configure, (), {"max": 1.0, "min": 0.0}, ) UT_Isocontour_0.inputPortByName["isovalue"].widget.set(1.0, run=False) except: print "WARNING: failed to restore Isocontour named UT-Isocontour in network masterNet" print_exc() UT_Isocontour_0 = None try: ## saving node ReadBinaryRawiv ## from Volume.VisionInterface.VolumeNodes import ReadRawivfile ReadBinaryRawiv_1 = ReadRawivfile( constrkw={}, name="ReadBinaryRawiv", library=vollib ) masterNet.addNode(ReadBinaryRawiv_1, 4, 7) ReadBinaryRawiv_1.inputPortByName["filename"].widget.set( "../../../../Volume/Tests/Data/ct_head.rawiv", run=False ) apply(ReadBinaryRawiv_1.configure, (), {"expanded": True}) except: print "WARNING: failed to restore ReadRawivfile named ReadBinaryRawiv in network masterNet" print_exc() ReadBinaryRawiv_1 = None try: ## saving node indpol1 ## from DejaVu.VisionInterface.GeometryNodes import IndexedPolygonsNE indpol1_2 = IndexedPolygonsNE(constrkw={}, name="indpol1") masterNet.addNode(indpol1_2, 21, 125) indpol1_2.inputPortByName["name"].widget.set("indpol1", run=False) apply(indpol1_2.configure, (), {"expanded": True}) except: print "WARNING: failed to restore IndexedPolygonsNE named indpol1 in network masterNet" print_exc() indpol1_2 = None try: ## saving node indpol2 ## from DejaVu.VisionInterface.GeometryNodes import IndexedPolygonsNE indpol2_3 = IndexedPolygonsNE(constrkw={}, name="indpol2") masterNet.addNode(indpol2_3, 382, 204) indpol2_3.inputPortByName["name"].widget.set("indpol2", run=False) apply(indpol2_3.configure, (), {"expanded": True}) except: print "WARNING: failed to restore IndexedPolygonsNE named indpol2 in network masterNet" print_exc() indpol2_3 = None try: ## saving node Viewer ## from DejaVu.VisionInterface.DejaVuNodes import Viewer Viewer_4 = Viewer(constrkw={}, name="Viewer") masterNet.addNode(Viewer_4, 233, 250) ## ## Saving State for Viewer Viewer_4.vi.TransformRootOnly(0) ## ## Light Model ## End Light Model ## Light sources ## End Light sources 7 ## Cameras ## Camera Number 0 state = { "color": (0.0, 0.0, 0.0, 1.0), "d2off": 1, "height": 400, "lookAt": [0.0, 0.0, 0.0], "rootx": 1291, "pivot": [0.0, 0.0, 0.0], "translation": [0.0, 0.0, 0.0], "sideBySideTranslation": 0.0, "fov": 40.0, "scale": [1.0, 1.0, 1.0], "stereoMode": "MONO", "width": 400, "sideBySideRotAngle": 3.0, "boundingbox": 0, "projectionType": 0, "contours": False, "d2cutL": 150, "direction": [0.0, 0.0, -30.0], "d2cutH": 255, "far": 50.0, "d1off": 4, "lookFrom": [0.0, 0.0, 30.0], "d1cutH": 60, "antialiased": 0, "rotation": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, ], "d1ramp": [ 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 4.0, 4.0, 4.0, 4.0, 7.0, 9.0, 12.0, 14.0, 17.0, 19.0, 22.0, 24.0, 27.0, 29.0, 32.0, 34.0, 37.0, 44.0, 51.0, 57.0, 64.0, 71.0, 78.0, 84.0, 91.0, 98.0, 105.0, 111.0, 118.0, 125.0, 126.0, 128.0, 129.0, 130.0, 132.0, 133.0, 135.0, 136.0, 137.0, 139.0, 140.0, 141.0, 143.0, 144.0, 145.0, 147.0, 148.0, 149.0, 151.0, 152.0, 154.0, 155.0, 156.0, 158.0, 159.0, 160.0, 162.0, 163.0, 164.0, 166.0, 167.0, 168.0, 170.0, 171.0, 173.0, 174.0, 175.0, 177.0, 178.0, 179.0, 181.0, 182.0, 183.0, 185.0, 186.0, 187.0, 189.0, 190.0, 192.0, 193.0, 194.0, 196.0, 197.0, 197.0, 198.0, 198.0, 199.0, 199.0, 199.0, 200.0, 200.0, 200.0, 201.0, 201.0, 202.0, 202.0, 202.0, 203.0, 203.0, 204.0, 204.0, 204.0, 205.0, 205.0, 205.0, 206.0, 206.0, 207.0, 207.0, 207.0, 208.0, 208.0, 209.0, 209.0, 209.0, 210.0, 210.0, 210.0, 211.0, 211.0, 212.0, 212.0, 212.0, 213.0, 213.0, 214.0, 214.0, 214.0, 215.0, 215.0, 215.0, 216.0, 216.0, 217.0, 217.0, 217.0, 218.0, 218.0, 219.0, 219.0, 219.0, 220.0, 220.0, 220.0, 221.0, 221.0, 222.0, 222.0, 222.0, 223.0, 223.0, 224.0, 224.0, 224.0, 225.0, 225.0, 225.0, 226.0, 226.0, 227.0, 227.0, 227.0, 228.0, 228.0, 228.0, 229.0, 229.0, 230.0, 230.0, 230.0, 231.0, 231.0, 232.0, 232.0, 232.0, 233.0, 233.0, 233.0, 234.0, 234.0, 235.0, 235.0, 235.0, 236.0, 236.0, 237.0, 237.0, 237.0, 238.0, 238.0, 238.0, 239.0, 239.0, 240.0, 240.0, 240.0, 241.0, 241.0, 242.0, 242.0, 242.0, 243.0, 243.0, 243.0, 244.0, 244.0, 245.0, 245.0, 245.0, 246.0, 246.0, 247.0, 247.0, 247.0, 248.0, 248.0, 248.0, 249.0, 249.0, 250.0, 250.0, 250.0, 251.0, 251.0, 252.0, 252.0, 252.0, 253.0, 253.0, 253.0, 254.0, 254.0, 255.0, 255.0, ], "suspendRedraw": False, "d1cutL": 0, "d2scale": 0.0, "near": 0.10000000000000001, "drawThumbnail": False, "rooty": 68, "d1scale": 0.012999999999999999, } apply(Viewer_4.vi.cameras[0].Set, (), state) state = { "end": 40, "density": 0.10000000000000001, "color": (0.0, 0.0, 0.0, 1.0), "enabled": False, "start": 25, "mode": "GL_LINEAR", } apply(Viewer_4.vi.cameras[0].fog.Set, (), state) ## End Cameras ## Clipping planes ## End Clipping planes ## Root object ## End Root Object ## Material for root if Viewer_4.vi.rootObject: pass ## needed in case there no modif ## End Materials for root ## Clipping Planes for root if Viewer_4.vi.rootObject: Viewer_4.vi.rootObject.clipP = [] Viewer_4.vi.rootObject.clipPI = [] pass ## needed in case there no modif ## End Clipping Planes for root except: print "WARNING: failed to restore Viewer named Viewer in network masterNet" print_exc() Viewer_4 = None try: ## saving node macro0 ## from NetworkEditor.macros import MacroNode macro0_5 = MacroNode(name="macro0") masterNet.addNode(macro0_5, 258, 162) from DejaVu.VisionInterface.GeometryNodes import IndexedPolygonsNE _2_8 = IndexedPolygonsNE(constrkw={}, name="2", library=vizlib) macro0_5.macroNetwork.addNode(_2_8, 212, 133) _2_8.inputPortByName["name"].widget.set("2", run=False) apply(_2_8.configure, (), {"expanded": True}) ## saving connections for network macro0 ## macro0_5.macroNetwork.freeze() input_Ports_6 = macro0_5.macroNetwork.ipNode if input_Ports_6 is not None and _2_8 is not None: try: macro0_5.macroNetwork.connectNodes( input_Ports_6, _2_8, "new", "coords", blocking=True ) except: print "WARNING: failed to restore connection between input_Ports_6 and _2_8 in network macro0_5.macroNetwork" if input_Ports_6 is not None and _2_8 is not None: try: macro0_5.macroNetwork.connectNodes( input_Ports_6, _2_8, "new", "indices", blocking=True ) except: print "WARNING: failed to restore connection between input_Ports_6 and _2_8 in network macro0_5.macroNetwork" if input_Ports_6 is not None and _2_8 is not None: try: macro0_5.macroNetwork.connectNodes( input_Ports_6, _2_8, "new", "vnormals", blocking=True ) except: print "WARNING: failed to restore connection between input_Ports_6 and _2_8 in network macro0_5.macroNetwork" if input_Ports_6 is not None and _2_8 is not None: try: macro0_5.macroNetwork.connectNodes( input_Ports_6, _2_8, "new", "parent", blocking=True ) except: print "WARNING: failed to restore connection between input_Ports_6 and _2_8 in network macro0_5.macroNetwork" output_Ports_7 = macro0_5.macroNetwork.opNode if _2_8 is not None and output_Ports_7 is not None: try: macro0_5.macroNetwork.connectNodes( _2_8, output_Ports_7, "indexedPolygons", "new", blocking=True ) except: print "WARNING: failed to restore connection between _2_8 and output_Ports_7 in network macro0_5.macroNetwork" macro0_5.macroNetwork.unfreeze() macro0_5.shrink() except: print "WARNING: failed to restore MacroNode named macro0 in network masterNet" print_exc() macro0_5 = None masterNet.run() masterNet.freeze() ## saving connections for network parentsAndMacro ## if ReadBinaryRawiv_1 is not None and UT_Isocontour_0 is not None: try: masterNet.connectNodes( ReadBinaryRawiv_1, UT_Isocontour_0, "grid", "grid3D", blocking=True ) except: print "WARNING: failed to restore connection between ReadBinaryRawiv_1 and UT_Isocontour_0 in network masterNet" if UT_Isocontour_0 is not None and indpol1_2 is not None: try: masterNet.connectNodes( UT_Isocontour_0, indpol1_2, "coords", "coords", blocking=True ) except: print "WARNING: failed to restore connection between UT_Isocontour_0 and indpol1_2 in network masterNet" if UT_Isocontour_0 is not None and indpol1_2 is not None: try: masterNet.connectNodes( UT_Isocontour_0, indpol1_2, "indices", "indices", blocking=True ) except: print "WARNING: failed to restore connection between UT_Isocontour_0 and indpol1_2 in network masterNet" if UT_Isocontour_0 is not None and indpol1_2 is not None: try: masterNet.connectNodes( UT_Isocontour_0, indpol1_2, "normals", "vnormals", blocking=True ) except: print "WARNING: failed to restore connection between UT_Isocontour_0 and indpol1_2 in network masterNet" if UT_Isocontour_0 is not None and indpol2_3 is not None: try: masterNet.connectNodes( UT_Isocontour_0, indpol2_3, "indices", "indices", blocking=True ) except: print "WARNING: failed to restore connection between UT_Isocontour_0 and indpol2_3 in network masterNet" if UT_Isocontour_0 is not None and indpol2_3 is not None: try: masterNet.connectNodes( UT_Isocontour_0, indpol2_3, "coords", "coords", blocking=True ) except: print "WARNING: failed to restore connection between UT_Isocontour_0 and indpol2_3 in network masterNet" if indpol2_3 is not None and Viewer_4 is not None: try: masterNet.connectNodes( indpol2_3, Viewer_4, "indexedPolygons", "geometries", blocking=True ) except: print "WARNING: failed to restore connection between indpol2_3 and Viewer_4 in network masterNet" if UT_Isocontour_0 is not None and indpol2_3 is not None: try: masterNet.connectNodes( UT_Isocontour_0, indpol2_3, "normals", "vnormals", blocking=True ) except: print "WARNING: failed to restore connection between UT_Isocontour_0 and indpol2_3 in network masterNet" macro0_5 = masterNet.nodes[5] if UT_Isocontour_0 is not None and macro0_5 is not None: try: masterNet.connectNodes( UT_Isocontour_0, macro0_5, "coords", "2_coords", blocking=True ) except: print "WARNING: failed to restore connection between UT_Isocontour_0 and macro0_5 in network masterNet" if UT_Isocontour_0 is not None and macro0_5 is not None: try: masterNet.connectNodes( UT_Isocontour_0, macro0_5, "indices", "2_indices", blocking=True ) except: print "WARNING: failed to restore connection between UT_Isocontour_0 and macro0_5 in network masterNet" if UT_Isocontour_0 is not None and macro0_5 is not None: try: masterNet.connectNodes( UT_Isocontour_0, macro0_5, "normals", "2_vnormals", blocking=True ) except: print "WARNING: failed to restore connection between UT_Isocontour_0 and macro0_5 in network masterNet" if macro0_5 is not None and Viewer_4 is not None: try: masterNet.connectNodes( macro0_5, Viewer_4, "2_indexedPolygons", "geometries", blocking=True ) except: print "WARNING: failed to restore connection between macro0_5 and Viewer_4 in network masterNet" if indpol1_2 is not None and Viewer_4 is not None: try: masterNet.connectNodes( indpol1_2, Viewer_4, "indexedPolygons", "geometries", blocking=True ) except: print "WARNING: failed to restore connection between indpol1_2 and Viewer_4 in network masterNet" if indpol1_2 is not None and macro0_5 is not None: try: masterNet.connectNodes( indpol1_2, macro0_5, "indexedPolygons", "2_parent", blocking=True ) except: print "WARNING: failed to restore connection between indpol1_2 and macro0_5 in network masterNet" if macro0_5 is not None and indpol2_3 is not None: try: masterNet.connectNodes( macro0_5, indpol2_3, "2_indexedPolygons", "parent", blocking=True ) except: print "WARNING: failed to restore connection between macro0_5 and indpol2_3 in network masterNet" masterNet.unfreeze() def loadSavedStates_Viewer_4(self=Viewer_4, event=None): ## ## Saving State for objects in Viewer ## ## End Object root ## ## Saving State for Viewer self.vi.TransformRootOnly(0) ## ## Light Model ## End Light Model ## Light sources ## End Light sources 7 ## Cameras ## Camera Number 0 state = { "color": (0.0, 0.0, 0.0, 1.0), "d2off": 1, "height": 400, "lookAt": [0.0, 0.0, 0.0], "pivot": [0.0, 0.0, 0.0], "translation": [0.0, 0.0, 0.0], "sideBySideTranslation": 0.0, "fov": 40.0, "scale": [1.0, 1.0, 1.0], "stereoMode": "MONO", "width": 400, "sideBySideRotAngle": 3.0, "boundingbox": 0, "projectionType": 0, "contours": False, "d2cutL": 150, "direction": [0.0, 0.0, -30.0], "d2cutH": 255, "far": 50.0, "d1off": 4, "lookFrom": [0.0, 0.0, 30.0], "d1cutH": 60, "antialiased": 0, "rotation": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, ], "d1ramp": [ 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 4.0, 4.0, 4.0, 4.0, 7.0, 9.0, 12.0, 14.0, 17.0, 19.0, 22.0, 24.0, 27.0, 29.0, 32.0, 34.0, 37.0, 44.0, 51.0, 57.0, 64.0, 71.0, 78.0, 84.0, 91.0, 98.0, 105.0, 111.0, 118.0, 125.0, 126.0, 128.0, 129.0, 130.0, 132.0, 133.0, 135.0, 136.0, 137.0, 139.0, 140.0, 141.0, 143.0, 144.0, 145.0, 147.0, 148.0, 149.0, 151.0, 152.0, 154.0, 155.0, 156.0, 158.0, 159.0, 160.0, 162.0, 163.0, 164.0, 166.0, 167.0, 168.0, 170.0, 171.0, 173.0, 174.0, 175.0, 177.0, 178.0, 179.0, 181.0, 182.0, 183.0, 185.0, 186.0, 187.0, 189.0, 190.0, 192.0, 193.0, 194.0, 196.0, 197.0, 197.0, 198.0, 198.0, 199.0, 199.0, 199.0, 200.0, 200.0, 200.0, 201.0, 201.0, 202.0, 202.0, 202.0, 203.0, 203.0, 204.0, 204.0, 204.0, 205.0, 205.0, 205.0, 206.0, 206.0, 207.0, 207.0, 207.0, 208.0, 208.0, 209.0, 209.0, 209.0, 210.0, 210.0, 210.0, 211.0, 211.0, 212.0, 212.0, 212.0, 213.0, 213.0, 214.0, 214.0, 214.0, 215.0, 215.0, 215.0, 216.0, 216.0, 217.0, 217.0, 217.0, 218.0, 218.0, 219.0, 219.0, 219.0, 220.0, 220.0, 220.0, 221.0, 221.0, 222.0, 222.0, 222.0, 223.0, 223.0, 224.0, 224.0, 224.0, 225.0, 225.0, 225.0, 226.0, 226.0, 227.0, 227.0, 227.0, 228.0, 228.0, 228.0, 229.0, 229.0, 230.0, 230.0, 230.0, 231.0, 231.0, 232.0, 232.0, 232.0, 233.0, 233.0, 233.0, 234.0, 234.0, 235.0, 235.0, 235.0, 236.0, 236.0, 237.0, 237.0, 237.0, 238.0, 238.0, 238.0, 239.0, 239.0, 240.0, 240.0, 240.0, 241.0, 241.0, 242.0, 242.0, 242.0, 243.0, 243.0, 243.0, 244.0, 244.0, 245.0, 245.0, 245.0, 246.0, 246.0, 247.0, 247.0, 247.0, 248.0, 248.0, 248.0, 249.0, 249.0, 250.0, 250.0, 250.0, 251.0, 251.0, 252.0, 252.0, 252.0, 253.0, 253.0, 253.0, 254.0, 254.0, 255.0, 255.0, ], "suspendRedraw": False, "d1cutL": 0, "d2scale": 0.0, "near": 0.10000000000000001, "drawThumbnail": False, "d1scale": 0.012999999999999999, } apply(self.vi.cameras[0].Set, (), state) state = { "end": 40, "density": 0.10000000000000001, "color": (0.0, 0.0, 0.0, 1.0), "enabled": False, "start": 25, "mode": "GL_LINEAR", } apply(self.vi.cameras[0].fog.Set, (), state) ## End Cameras ## Clipping planes ## End Clipping planes ## Root object ## End Root Object ## Material for root if self.vi.rootObject: pass ## needed in case there no modif ## End Materials for root ## Clipping Planes for root if self.vi.rootObject: self.vi.rootObject.clipP = [] self.vi.rootObject.clipPI = [] pass ## needed in case there no modif ## End Clipping Planes for root Viewer_4.restoreStates_cb = Viewer_4.restoreStatesFirstRun = loadSavedStates_Viewer_4 Viewer_4.menu.add_separator() Viewer_4.menu.add_command(label="Restore states", command=Viewer_4.restoreStates_cb) # masterNet.run()
24.995992
122
0.455784
2,920
24,946
3.798973
0.127055
0.023258
0.027585
0.028847
0.758587
0.720184
0.677184
0.673939
0.667358
0.66249
0
0.187606
0.434619
24,946
997
123
25.021063
0.598908
0.051712
0
0.84336
1
0
0.152835
0.011042
0
0
0
0
0
0
null
null
0.00454
0.011351
null
null
0.037457
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
5
dd7a86cc88865a7557436246a2dad0f7b698658b
96
py
Python
venv/lib/python3.8/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/breakpoint.py
GiulianaPola/select_repeats
17a0d053d4f874e42cf654dd142168c2ec8fbd11
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/breakpoint.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/breakpoint.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/e3/d3/7e/0256014bc4bc642fe5397a902aad2db5d58e2a37e6469abc1127cd9fce
96
96
0.895833
9
96
9.555556
1
0
0
0
0
0
0
0
0
0
0
0.385417
0
96
1
96
96
0.510417
0
0
0
0
0
0
0
0
1
0
0
0
0
null
null
0
0
null
null
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
null
1
0
0
0
1
0
0
0
0
0
0
0
0
5
dd8214447cc498619ee6b9c74fa6ddeee82c5d79
486
py
Python
alibi/models/tensorflow/__init__.py
mauicv/alibi
30fea76391c255963c8818c2b54aa615b0d6f858
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
alibi/models/tensorflow/__init__.py
mauicv/alibi
30fea76391c255963c8818c2b54aa615b0d6f858
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
alibi/models/tensorflow/__init__.py
mauicv/alibi
30fea76391c255963c8818c2b54aa615b0d6f858
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
from alibi.utils.missing_optional_dependency import import_optional ADULTEncoder, ADULTDecoder, MNISTEncoder, MNISTDecoder, MNISTClassifier = import_optional( 'alibi.models.tensorflow.cfrl_models', names=['ADULTEncoder', 'ADULTDecoder', 'MNISTEncoder', 'MNISTDecoder', 'MNISTClassifier']) HeAE, AE = import_optional('alibi.models.tensorflow.autoencoder', names=['HeAE', 'AE']) Actor, Critic = import_optional('alibi.models.tensorflow.actor_critic', names=['Actor', 'Critic'])
54
98
0.779835
50
486
7.42
0.42
0.150943
0.153639
0.202156
0.622642
0
0
0
0
0
0
0
0.080247
486
8
99
60.75
0.829978
0
0
0
0
0
0.382716
0.218107
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
dd99397682b0cf0422963d875606002a8075ec7e
13,689
py
Python
tests/variantstudy/model/command/test_manage_binding_constraints.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
2
2021-11-15T09:26:33.000Z
2022-02-24T09:53:54.000Z
tests/variantstudy/model/command/test_manage_binding_constraints.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
542
2021-01-11T13:23:47.000Z
2022-03-31T15:38:10.000Z
tests/variantstudy/model/command/test_manage_binding_constraints.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
1
2020-10-01T12:18:15.000Z
2020-10-01T12:18:15.000Z
from unittest.mock import Mock from antarest.matrixstore.service import MatrixService from antarest.study.storage.rawstudy.io.reader import IniReader from antarest.study.storage.rawstudy.model.filesystem.factory import FileStudy from antarest.study.storage.variantstudy.business.matrix_constants_generator import ( GeneratorMatrixConstants, ) from antarest.study.storage.variantstudy.model.command.common import ( BindingConstraintOperator, TimeStep, ) from antarest.study.storage.variantstudy.model.command.create_area import ( CreateArea, ) from antarest.study.storage.variantstudy.model.command.create_binding_constraint import ( CreateBindingConstraint, ) from antarest.study.storage.variantstudy.model.command.create_cluster import ( CreateCluster, ) from antarest.study.storage.variantstudy.model.command.create_link import ( CreateLink, ) from antarest.study.storage.variantstudy.model.command.remove_area import ( RemoveArea, ) from antarest.study.storage.variantstudy.model.command.remove_binding_constraint import ( RemoveBindingConstraint, ) from antarest.study.storage.variantstudy.model.command.remove_link import ( RemoveLink, ) from antarest.study.storage.variantstudy.model.command.update_binding_constraint import ( UpdateBindingConstraint, ) from antarest.study.storage.variantstudy.model.command_context import ( CommandContext, ) def test_manage_binding_constraint( empty_study: FileStudy, command_context: CommandContext ): study_path = empty_study.config.study_path area1 = "area1" area2 = "area2" cluster = "cluster" CreateArea.parse_obj( { "area_name": area1, "command_context": command_context, } ).apply(empty_study) CreateArea.parse_obj( { "area_name": area2, "command_context": command_context, } ).apply(empty_study) CreateLink.parse_obj( { "area1": area1, "area2": area2, "command_context": command_context, } ).apply(empty_study) CreateCluster.parse_obj( { "area_id": area1, "cluster_name": cluster, "parameters": {}, "command_context": command_context, } ).apply(empty_study) bind1_cmd = CreateBindingConstraint( name="BD 1", time_step=TimeStep.HOURLY, operator=BindingConstraintOperator.LESS, coeffs={"area1%area2": [800, 30]}, comments="Hello", command_context=command_context, ) res = bind1_cmd.apply(empty_study) assert res.status bind2_cmd = CreateBindingConstraint( name="BD 2", enabled=False, time_step=TimeStep.DAILY, operator=BindingConstraintOperator.BOTH, coeffs={"area1.cluster": [50]}, command_context=command_context, ) res2 = bind2_cmd.apply(empty_study) assert res2.status assert ( study_path / "input" / "bindingconstraints" / "bd 1.txt.link" ).exists() assert ( study_path / "input" / "bindingconstraints" / "bd 2.txt.link" ).exists() bd_config = IniReader().read( study_path / "input" / "bindingconstraints" / "bindingconstraints.ini" ) assert bd_config.get("0") == { "name": "BD 1", "id": "bd 1", "enabled": True, "comments": "Hello", "area1%area2": "800.0%30", "operator": "less", "type": "hourly", } assert bd_config.get("1") == { "name": "BD 2", "id": "bd 2", "enabled": False, "area1.cluster": 50.0, "operator": "both", "type": "daily", } bind_update = UpdateBindingConstraint( id="bd 1", enabled=False, time_step=TimeStep.WEEKLY, operator=BindingConstraintOperator.BOTH, coeffs={"area1%area2": [800, 30]}, values=[[0]], command_context=command_context, ) res = bind_update.apply(empty_study) assert res.status bd_config = IniReader().read( study_path / "input" / "bindingconstraints" / "bindingconstraints.ini" ) assert bd_config.get("0") == { "name": "BD 1", "id": "bd 1", "enabled": False, "area1%area2": "800.0%30", "operator": "both", "type": "weekly", } remove_bind = RemoveBindingConstraint( id="bd 1", command_context=command_context ) res3 = remove_bind.apply(empty_study) assert res3.status assert not ( study_path / "input" / "bindingconstraints" / "bd 1.txt.link" ).exists() bd_config = IniReader().read( study_path / "input" / "bindingconstraints" / "bindingconstraints.ini" ) assert len(bd_config) == 1 assert bd_config.get("0") == { "name": "BD 2", "id": "bd 2", "enabled": False, "area1.cluster": 50.0, "operator": "both", "type": "daily", } def test_match(command_context: CommandContext): base = CreateBindingConstraint( name="foo", enabled=False, time_step=TimeStep.DAILY, operator=BindingConstraintOperator.BOTH, coeffs={"a": [0.3]}, values=[[0]], command_context=command_context, ) other_match = CreateBindingConstraint( name="foo", enabled=False, time_step=TimeStep.DAILY, operator=BindingConstraintOperator.BOTH, coeffs={"a": [0.3]}, values=[[0]], command_context=command_context, ) other_not_match = CreateBindingConstraint( name="bar", enabled=False, time_step=TimeStep.DAILY, operator=BindingConstraintOperator.BOTH, coeffs={"a": [0.3]}, command_context=command_context, ) other_other = RemoveArea(id="id", command_context=command_context) assert base.match(other_match) assert not base.match(other_not_match) assert not base.match(other_other) assert base.match_signature() == "create_binding_constraint%foo" assert base.get_inner_matrices() == ["matrix_id"] base = UpdateBindingConstraint( id="foo", enabled=False, time_step=TimeStep.DAILY, operator=BindingConstraintOperator.BOTH, coeffs={"a": [0.3]}, values=[[0]], command_context=command_context, ) other_match = UpdateBindingConstraint( id="foo", enabled=False, time_step=TimeStep.DAILY, operator=BindingConstraintOperator.BOTH, coeffs={"a": [0.3]}, values=[[0]], command_context=command_context, ) other_not_match = UpdateBindingConstraint( id="bar", enabled=False, time_step=TimeStep.DAILY, operator=BindingConstraintOperator.BOTH, coeffs={"a": [0.3]}, command_context=command_context, ) other_other = RemoveArea(id="id", command_context=command_context) assert base.match(other_match) assert not base.match(other_not_match) assert not base.match(other_other) assert base.match_signature() == "update_binding_constraint%foo" assert base.get_inner_matrices() == ["matrix_id"] base = RemoveBindingConstraint(id="foo", command_context=command_context) other_match = RemoveBindingConstraint( id="foo", command_context=command_context ) other_not_match = RemoveBindingConstraint( id="bar", command_context=command_context ) other_other = RemoveLink( area1="id", area2="id2", command_context=command_context ) assert base.match(other_match) assert not base.match(other_not_match) assert not base.match(other_other) assert base.match_signature() == "remove_binding_constraint%foo" assert base.get_inner_matrices() == [] def test_revert(command_context: CommandContext): base = CreateBindingConstraint( name="foo", enabled=False, time_step=TimeStep.DAILY, operator=BindingConstraintOperator.BOTH, coeffs={"a": [0.3]}, values=[[0]], command_context=command_context, ) assert base.revert([], None) == [ RemoveBindingConstraint(id="foo", command_context=command_context) ] base = UpdateBindingConstraint( id="foo", enabled=False, time_step=TimeStep.DAILY, operator=BindingConstraintOperator.BOTH, coeffs={"a": [0.3]}, values=[[0]], command_context=command_context, ) assert base.revert( [ UpdateBindingConstraint( id="foo", enabled=True, time_step=TimeStep.WEEKLY, operator=BindingConstraintOperator.BOTH, coeffs={"a": [0.3]}, values=[[0]], command_context=command_context, ), UpdateBindingConstraint( id="foo", enabled=True, time_step=TimeStep.HOURLY, operator=BindingConstraintOperator.BOTH, coeffs={"a": [0.3]}, values=[[0]], command_context=command_context, ), ], None, ) == [ UpdateBindingConstraint( id="foo", enabled=True, time_step=TimeStep.HOURLY, operator=BindingConstraintOperator.BOTH, coeffs={"a": [0.3]}, values=[[0]], command_context=command_context, ) ] assert base.revert( [ UpdateBindingConstraint( id="foo", enabled=True, time_step=TimeStep.WEEKLY, operator=BindingConstraintOperator.BOTH, coeffs={"a": [0.3]}, values=[[0]], command_context=command_context, ), CreateBindingConstraint( name="foo", enabled=True, time_step=TimeStep.HOURLY, operator=BindingConstraintOperator.EQUAL, coeffs={"a": [0.3]}, values=[[0]], command_context=command_context, ), ], None, ) == [ UpdateBindingConstraint( id="foo", enabled=True, time_step=TimeStep.HOURLY, operator=BindingConstraintOperator.EQUAL, coeffs={"a": [0.3]}, values="matrix_id", comments=None, command_context=command_context, ) ] study = FileStudy(config=Mock(), tree=Mock()) base.revert([], study) base.command_context.command_extractor.extract_binding_constraint.assert_called_with( study, "foo" ) base = RemoveBindingConstraint(id="foo", command_context=command_context) assert base.revert( [ UpdateBindingConstraint( id="foo", enabled=True, time_step=TimeStep.WEEKLY, operator=BindingConstraintOperator.BOTH, coeffs={"a": [0.3]}, values=[[0]], command_context=command_context, ), CreateBindingConstraint( name="foo", enabled=True, time_step=TimeStep.HOURLY, operator=BindingConstraintOperator.EQUAL, coeffs={"a": [0.3]}, values=[[0]], command_context=command_context, ), ], None, ) == [ CreateBindingConstraint( name="foo", enabled=True, time_step=TimeStep.HOURLY, operator=BindingConstraintOperator.EQUAL, coeffs={"a": [0.3]}, command_context=command_context, ) ] base.revert([], study) base.command_context.command_extractor.extract_binding_constraint.assert_called_with( study, "foo" ) def test_create_diff(command_context: CommandContext): base = CreateBindingConstraint( name="foo", enabled=False, time_step=TimeStep.DAILY, operator=BindingConstraintOperator.BOTH, coeffs={"a": [0.3]}, values="a", command_context=command_context, ) other_match = CreateBindingConstraint( name="foo", enabled=True, time_step=TimeStep.HOURLY, operator=BindingConstraintOperator.EQUAL, coeffs={"b": [0.3]}, values="b", command_context=command_context, ) assert base.create_diff(other_match) == [ UpdateBindingConstraint( id="foo", enabled=True, time_step=TimeStep.HOURLY, operator=BindingConstraintOperator.EQUAL, coeffs={"b": [0.3]}, values="b", command_context=command_context, ) ] base = UpdateBindingConstraint( id="foo", enabled=False, time_step=TimeStep.DAILY, operator=BindingConstraintOperator.BOTH, coeffs={"a": [0.3]}, values=[[0]], command_context=command_context, ) other_match = UpdateBindingConstraint( id="foo", enabled=False, time_step=TimeStep.DAILY, operator=BindingConstraintOperator.BOTH, coeffs={"a": [0.3]}, values=[[0]], command_context=command_context, ) assert base.create_diff(other_match) == [other_match] base = RemoveBindingConstraint(id="foo", command_context=command_context) other_match = RemoveBindingConstraint( id="foo", command_context=command_context ) assert base.create_diff(other_match) == []
30.624161
89
0.597049
1,286
13,689
6.171851
0.094868
0.153458
0.111125
0.141111
0.821721
0.786947
0.751417
0.715636
0.637268
0.623283
0
0.014656
0.287238
13,689
446
90
30.692825
0.798811
0
0
0.64
0
0
0.067573
0.011177
0
0
0
0
0.084706
1
0.009412
false
0
0.035294
0
0.044706
0
0
0
0
null
0
0
0
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
06c540326e1e2662823ee63a7da76c92e5be5aea
374
py
Python
journey5/main.py
parrisma/AI-intuition
3b081696b1d226815e029cbb536fac5e4d3de9a7
[ "MIT" ]
null
null
null
journey5/main.py
parrisma/AI-intuition
3b081696b1d226815e029cbb536fac5e4d3de9a7
[ "MIT" ]
4
2020-04-26T18:18:22.000Z
2020-05-16T14:47:32.000Z
journey5/main.py
parrisma/AI-intuition
3b081696b1d226815e029cbb536fac5e4d3de9a7
[ "MIT" ]
null
null
null
from journey5.scheduler import Scheduler from journey5.testcasesetup import TestCaseSetUp from journey5.event import Event if __name__ == "__main__": Scheduler(TestCaseSetUp.TestCase.RANDOM.value).run() # Scheduler(TestCaseSetUp.TestCase.CORE_MISMATCH.value).run() # Scheduler(TestCaseSetUp.TestCase.MEMORY_RESTRICTED.value).run() Event.dump_feature_maps()
37.4
69
0.796791
42
374
6.809524
0.47619
0.125874
0.314685
0.20979
0.265734
0
0
0
0
0
0
0.008955
0.104278
374
9
70
41.555556
0.844776
0.328877
0
0
0
0
0.032258
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
06cc2a2774b4f1fa4eb4db15b13aef8ae2c0be6b
48
py
Python
pccm/builder/__init__.py
FindDefinition/PCCM
fa0cc4e41f886f288bbacf92cea1625d927a54ad
[ "MIT" ]
3
2021-10-21T06:26:46.000Z
2022-03-10T11:14:40.000Z
pccm/builder/__init__.py
FindDefinition/PCCM
fa0cc4e41f886f288bbacf92cea1625d927a54ad
[ "MIT" ]
1
2021-09-13T02:25:05.000Z
2021-09-13T02:27:50.000Z
pccm/builder/__init__.py
FindDefinition/PCCM
fa0cc4e41f886f288bbacf92cea1625d927a54ad
[ "MIT" ]
null
null
null
from .pybind import build_library, build_pybind
24
47
0.854167
7
48
5.571429
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.104167
48
1
48
48
0.906977
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
06ec1a0fd3e6021fa140c6f15f5bbd5a39af854c
76
py
Python
whats_fresh/whats_fresh_api/__init__.py
osu-cass/whats-fresh-api
0ace76c3d7d423e95d5e3b3c7cd0f74abcf975bd
[ "Apache-2.0" ]
4
2015-08-20T19:38:03.000Z
2016-01-20T18:52:24.000Z
whats_fresh/whats_fresh_api/__init__.py
osu-cass/whats-fresh-api
0ace76c3d7d423e95d5e3b3c7cd0f74abcf975bd
[ "Apache-2.0" ]
39
2015-01-08T23:50:47.000Z
2021-01-05T20:19:15.000Z
whats_fresh/whats_fresh_api/__init__.py
osu-cass/whats-fresh-api
0ace76c3d7d423e95d5e3b3c7cd0f74abcf975bd
[ "Apache-2.0" ]
8
2015-03-07T23:52:30.000Z
2015-12-25T04:25:23.000Z
default_app_config = 'whats_fresh.whats_fresh_api.apps.WhatsFreshAPIConfig'
38
75
0.881579
10
76
6.2
0.8
0.322581
0
0
0
0
0
0
0
0
0
0
0.039474
76
1
76
76
0.849315
0
0
0
0
0
0.684211
0.684211
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
06f890b7f4b98400a2b7e30424b8c14aff5e4e62
27
py
Python
server/esplora/__init__.py
Nugetzrul3/ApiServer
ee031dd1659331e41f241402afc96cddf9750ced
[ "MIT" ]
null
null
null
server/esplora/__init__.py
Nugetzrul3/ApiServer
ee031dd1659331e41f241402afc96cddf9750ced
[ "MIT" ]
3
2021-09-05T18:22:42.000Z
2021-09-26T06:21:39.000Z
server/esplora/__init__.py
Nugetzrul3/ApiServer
ee031dd1659331e41f241402afc96cddf9750ced
[ "MIT" ]
2
2020-05-19T13:20:00.000Z
2021-09-26T04:58:41.000Z
from .views import esplora
13.5
26
0.814815
4
27
5.5
1
0
0
0
0
0
0
0
0
0
0
0
0.148148
27
1
27
27
0.956522
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
66024b1de3dcbf74965704039b4feef3337a635c
294
py
Python
models/cifar/gdas/lib/nas_rnn/__init__.py
AllenChen1998/QueryNet
1ab74d7f4cc9d25af30abe0631581cf7be81a07f
[ "Apache-2.0" ]
2
2022-01-09T11:09:17.000Z
2022-03-29T14:16:32.000Z
models/cifar/gdas/lib/nas_rnn/__init__.py
AllenChen1998/QueryNet
1ab74d7f4cc9d25af30abe0631581cf7be81a07f
[ "Apache-2.0" ]
null
null
null
models/cifar/gdas/lib/nas_rnn/__init__.py
AllenChen1998/QueryNet
1ab74d7f4cc9d25af30abe0631581cf7be81a07f
[ "Apache-2.0" ]
null
null
null
# utils from .utils import batchify, get_batch, repackage_hidden # models from .model_search import RNNModelSearch from .model_search import DARTSCellSearch from .basemodel import DARTSCell, RNNModel # architecture from .genotypes import DARTS_V1, DARTS_V2 from .genotypes import GDAS
29.4
57
0.809524
37
294
6.27027
0.594595
0.077586
0.12931
0.181034
0
0
0
0
0
0
0
0.007968
0.146259
294
9
58
32.666667
0.916335
0.085034
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
660d4d164ea1f8a99f103957c44654a49a641d4d
487
py
Python
Python-3/basic_examples/multiple_inheritance.py
ghiloufibelgacem/jornaldev
b9b27f9f7da595892520314b4ed1d2675556310a
[ "MIT" ]
1,139
2018-05-09T11:54:36.000Z
2022-03-31T06:52:50.000Z
Python-3/basic_examples/multiple_inheritance.py
iamharshverma/journaldev
af24242a1ac1b7dc3e8e2404ec916b77ccf5044a
[ "MIT" ]
56
2018-06-20T03:52:53.000Z
2022-02-09T22:57:41.000Z
Python-3/basic_examples/multiple_inheritance.py
iamharshverma/journaldev
af24242a1ac1b7dc3e8e2404ec916b77ccf5044a
[ "MIT" ]
2,058
2018-05-09T09:32:17.000Z
2022-03-29T13:19:42.000Z
class A: def __init__(self): super().__init__() self.name = 'John' self.age = 23 def getName(self): return self.name class B: def __init__(self): super().__init__() self.name = 'Richard' self.id = '32' def getName(self): return self.name class C(A, B): def __init__(self): super().__init__() def getName(self): return self.name C1 = C() print(C1.getName()) print(C.__mro__)
15.21875
29
0.537988
61
487
3.836066
0.327869
0.17094
0.141026
0.205128
0.735043
0.735043
0.521368
0
0
0
0
0.018237
0.324435
487
31
30
15.709677
0.693009
0
0
0.545455
0
0
0.026694
0
0
0
0
0
0
1
0.272727
false
0
0
0.136364
0.545455
0.090909
0
0
0
null
0
0
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
663a39ce2337b04c948653420b6e7f824dc8db2a
33
py
Python
keycloak_admin_aio/_resources/roles/by_name/__init__.py
V-Mann-Nick/keycloak-admin-aio
83ac1af910e492a5864eb369aacfc0512e5c8c45
[ "Apache-2.0" ]
12
2021-11-08T18:03:09.000Z
2022-03-17T16:34:06.000Z
keycloak_admin_aio/_resources/roles/by_name/__init__.py
V-Mann-Nick/keycloak-admin-aio
83ac1af910e492a5864eb369aacfc0512e5c8c45
[ "Apache-2.0" ]
null
null
null
keycloak_admin_aio/_resources/roles/by_name/__init__.py
V-Mann-Nick/keycloak-admin-aio
83ac1af910e492a5864eb369aacfc0512e5c8c45
[ "Apache-2.0" ]
1
2021-11-14T13:55:30.000Z
2021-11-14T13:55:30.000Z
from .by_name import RolesByName
16.5
32
0.848485
5
33
5.4
1
0
0
0
0
0
0
0
0
0
0
0
0.121212
33
1
33
33
0.931034
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
663d9d8ec8ea8bfbf9066c139a97b1fca876a308
36
py
Python
deplytils/extensions/__init__.py
joshuahaertel/putils
cd467560b4e97b1caee9ee2111a0748021744b07
[ "MIT" ]
null
null
null
deplytils/extensions/__init__.py
joshuahaertel/putils
cd467560b4e97b1caee9ee2111a0748021744b07
[ "MIT" ]
null
null
null
deplytils/extensions/__init__.py
joshuahaertel/putils
cd467560b4e97b1caee9ee2111a0748021744b07
[ "MIT" ]
null
null
null
"""extensions for existing tools"""
18
35
0.722222
4
36
6.5
1
0
0
0
0
0
0
0
0
0
0
0
0.111111
36
1
36
36
0.8125
0.805556
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
665052745f523c87d65ff491b26b799ba2964e87
2,225
py
Python
scripts/prepare_lists.py
mariganeshkumar/TDSNN-spoof-detection
c38301f292fcc3f5a2c3a11b34466fb5d6582531
[ "CC0-1.0" ]
1
2020-06-17T09:35:42.000Z
2020-06-17T09:35:42.000Z
scripts/prepare_lists.py
mariganeshkumar/TDSNN-spoof-detection
c38301f292fcc3f5a2c3a11b34466fb5d6582531
[ "CC0-1.0" ]
null
null
null
scripts/prepare_lists.py
mariganeshkumar/TDSNN-spoof-detection
c38301f292fcc3f5a2c3a11b34466fb5d6582531
[ "CC0-1.0" ]
null
null
null
import csv data_dir='data' condition = ['LA', 'PA'] dataset = ['dev', 'eval'] for con in condition: for dset in dataset: with open(data_dir+'/'+con+'/ASVspoof2019_'+con+'_cm_protocols/'+ 'ASVspoof2019.'+con+'.cm.'+dset+'.trl.txt', 'r') as f: reader = csv.reader(f) temp_list = list(reader) utterance_list=[] for utterance in temp_list: file_name = utterance[0].split(' ')[1] file_path = data_dir+'/'+con+'/ASVspoof2019_'+con+'_'+dset+'/wav/'+file_name+'.wav' utterance_list.append(file_path) with open('lists/asv2019_'+con+'_'+dset+'_wav.lst', 'w') as f: for utterance in utterance_list: f.write("%s\n" % utterance) dset = 'train' with open(data_dir+'/'+con+'/ASVspoof2019_'+con+'_cm_protocols/'+ 'ASVspoof2019.'+con+'.cm.'+dset+'.trn.txt', 'r') as f: reader = csv.reader(f) temp_list = list(reader) utterance_list=[] for utterance in temp_list: file_name = utterance[0].split(' ')[1] file_label = utterance[0].split(' ')[-1] if file_label == 'spoof': file_label = 'spoofed' file_path = data_dir+'/'+con+'/ASVspoof2019_'+con+'_'+dset+'/wav/'+file_label+'/'+file_name+'.wav' utterance_list.append(file_path) with open('lists/asv2019_'+con+'_'+dset+'_wav.lst', 'w') as f: for utterance in utterance_list: f.write("%s\n" % utterance) with open(data_dir+'/'+con+'/ASVspoof2019_'+con+'_cm_protocols/'+ 'ASVspoof2019.'+con+'.cm.'+dset+'.trn.txt', 'r') as f: reader = csv.reader(f) temp_list = list(reader) utterance_genuine_list=[] utterance_spoofed_list=[] for utterance in temp_list: file_name = utterance[0].split(' ')[1] file_label = utterance[0].split(' ')[-1] file_path = data_dir+'/'+con+'/ASVspoof2019_'+con+'_'+dset+'/wav/'+file_name+'.wav' if file_label == 'spoof': utterance_spoofed_list.append(file_path) else: utterance_genuine_list.append(file_path) utterance_spoofed_list.sort() utterance_genuine_list.sort() with open('lists/asv2019_'+con+'_genuine_'+dset+'_wav.lst', 'w') as f: for utterance in utterance_genuine_list: f.write("%s\n" % utterance) with open('lists/asv2019_'+con+'_spoof_'+dset+'_wav.lst', 'w') as f: for utterance in utterance_spoofed_list: f.write("%s\n" % utterance)
37.711864
122
0.668315
322
2,225
4.360248
0.161491
0.096154
0.069801
0.094017
0.773504
0.746439
0.731481
0.731481
0.710826
0.710826
0
0.032174
0.133933
2,225
58
123
38.362069
0.696419
0
0
0.603774
0
0
0.18382
0
0
0
0
0
0
1
0
false
0
0.018868
0
0.018868
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
b096694d616fa02288b3d282f1d959155debe2cf
79
py
Python
pyfr/solvers/aceuler/__init__.py
JakeL77/PyFR
19deeb3f550f7a31803b54a6b54d7c80d4200e8b
[ "BSD-3-Clause" ]
185
2015-01-03T01:06:04.000Z
2019-09-02T22:10:53.000Z
pyfr/solvers/aceuler/__init__.py
JakeL77/PyFR
19deeb3f550f7a31803b54a6b54d7c80d4200e8b
[ "BSD-3-Clause" ]
68
2015-02-18T13:34:15.000Z
2019-09-03T13:28:36.000Z
pyfr/solvers/aceuler/__init__.py
WillTrojak/PyFR
f17faf901126004a571683ebaa1825aad3e01496
[ "BSD-3-Clause" ]
105
2015-01-09T14:05:22.000Z
2019-07-25T22:04:00.000Z
# -*- coding: utf-8 -*- from pyfr.solvers.aceuler.system import ACEulerSystem
19.75
53
0.721519
10
79
5.7
1
0
0
0
0
0
0
0
0
0
0
0.014493
0.126582
79
3
54
26.333333
0.811594
0.265823
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
b09ed92c842992f868e118309c5274ab94a6fa6f
5,538
gyp
Python
binding.gyp
FRG-UPC-Deliverables/tsk-js
9dd4fcd1c88cb690361cc2a8429cdd127684acea
[ "MIT" ]
null
null
null
binding.gyp
FRG-UPC-Deliverables/tsk-js
9dd4fcd1c88cb690361cc2a8429cdd127684acea
[ "MIT" ]
5
2021-05-08T07:21:28.000Z
2021-09-21T03:54:39.000Z
binding.gyp
FRG-UPC-Deliverables/tsk-js
9dd4fcd1c88cb690361cc2a8429cdd127684acea
[ "MIT" ]
null
null
null
{ "targets": [ { "target_name": "tsk-js", "include_dirs": [ "./lib/libtsk/include" ], "sources": [ "src/utl/tsk_js_debug.cc", "src/module.cc", "src/tsk_js.cc", "src/utl/tsk_js_c_opts.cc", "src/utl/tsk_js_file_content.cc", "src/utl/tsk_js_file.cc", "src/utl/tsk_js_opts.cc", "src/utl/tsk_js_part.cc", "src/utl/tsk_js_vs.cc", "src/utl/tsk_js_fs.cc", "src/analyze/tsk_js_analyze.cc", "src/list/tsk_js_list.cc", "src/get/tsk_js_get.cc", "src/timeline/tsk_js_timeline.cc", "src/search/tsk_js_search.cc" ], "conditions": [ ["OS=='linux'", { # Path relative to source files (./src) "libraries": ["../lib/libtsk/libtsk.a"], }], ["OS=='mac'", { # Path relative to source files (./src) "libraries": ["../lib/libtsk/libtsk.a"], }], ["OS=='win'", { "defines": [ "USE_WCHAR_TSK_CHAR", ], "copies":[{ 'destination': './build/Release/', 'files': [ "./lib/dlls/api-ms-win-core-console-l1-1-0.dll", "./lib/dlls/api-ms-win-core-datetime-l1-1-0.dll", "./lib/dlls/api-ms-win-core-debug-l1-1-0.dll", "./lib/dlls/api-ms-win-core-errorhandling-l1-1-0.dll", "./lib/dlls/api-ms-win-core-file-l1-1-0.dll", "./lib/dlls/api-ms-win-core-file-l1-2-0.dll", "./lib/dlls/api-ms-win-core-file-l2-1-0.dll", "./lib/dlls/api-ms-win-core-handle-l1-1-0.dll", "./lib/dlls/api-ms-win-core-heap-l1-1-0.dll", "./lib/dlls/api-ms-win-core-interlocked-l1-1-0.dll", "./lib/dlls/api-ms-win-core-libraryloader-l1-1-0.dll", "./lib/dlls/api-ms-win-core-localization-l1-2-0.dll", "./lib/dlls/api-ms-win-core-memory-l1-1-0.dll", "./lib/dlls/api-ms-win-core-namedpipe-l1-1-0.dll", "./lib/dlls/api-ms-win-core-processenvironment-l1-1-0.dll", "./lib/dlls/api-ms-win-core-processthreads-l1-1-0.dll", "./lib/dlls/api-ms-win-core-processthreads-l1-1-1.dll", "./lib/dlls/api-ms-win-core-profile-l1-1-0.dll", "./lib/dlls/api-ms-win-core-rtlsupport-l1-1-0.dll", "./lib/dlls/api-ms-win-core-string-l1-1-0.dll", "./lib/dlls/api-ms-win-core-synch-l1-1-0.dll", "./lib/dlls/api-ms-win-core-synch-l1-2-0.dll", "./lib/dlls/api-ms-win-core-sysinfo-l1-1-0.dll", "./lib/dlls/api-ms-win-core-timezone-l1-1-0.dll", "./lib/dlls/api-ms-win-core-util-l1-1-0.dll", "./lib/dlls/api-ms-win-crt-conio-l1-1-0.dll", "./lib/dlls/api-ms-win-crt-convert-l1-1-0.dll", "./lib/dlls/api-ms-win-crt-environment-l1-1-0.dll", "./lib/dlls/api-ms-win-crt-filesystem-l1-1-0.dll", "./lib/dlls/api-ms-win-crt-heap-l1-1-0.dll", "./lib/dlls/api-ms-win-crt-locale-l1-1-0.dll", "./lib/dlls/api-ms-win-crt-math-l1-1-0.dll", "./lib/dlls/api-ms-win-crt-multibyte-l1-1-0.dll", "./lib/dlls/api-ms-win-crt-private-l1-1-0.dll", "./lib/dlls/api-ms-win-crt-process-l1-1-0.dll", "./lib/dlls/api-ms-win-crt-runtime-l1-1-0.dll", "./lib/dlls/api-ms-win-crt-stdio-l1-1-0.dll", "./lib/dlls/api-ms-win-crt-string-l1-1-0.dll", "./lib/dlls/api-ms-win-crt-time-l1-1-0.dll", "./lib/dlls/api-ms-win-crt-utility-l1-1-0.dll", "./lib/dlls/concrt140.dll", "./lib/dlls/libewf.dll", "./lib/dlls/libtsk_jni.dll", "./lib/dlls/libvhdi.dll", "./lib/dlls/libvmdk.dll", "./lib/dlls/msvcp140.dll", "./lib/dlls/ucrtbase.dll", "./lib/dlls/vccorlib140.dll", "./lib/dlls/vcruntime140.dll", "./lib/dlls/zlib.dll", ] }], # Path relative to source files (./src) "libraries": [ "../lib/libtsk/libtsk.lib", "../lib/libewf/libewf.lib", "../lib/libvmdk/libvmdk.lib", "../lib/libvhdi/libvhdi.lib", ] }] ] } ] }
51.277778
87
0.391838
641
5,538
3.330733
0.156006
0.163934
0.229508
0.224824
0.640749
0.616393
0.575176
0.564871
0.564871
0.551756
0
0.042213
0.435356
5,538
107
88
51.757009
0.64055
0.020404
0
0.079208
0
0.39604
0.501015
0.449917
0
0
0
0
0
1
0
true
0
0
0
0
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
b0a9e235b26660f49174a5e8b476a42017505961
49
py
Python
src/wheezy/routing/tests/test_utils.py
akornatskyy/wheezy.routing
6ba54d52779914aa5985a627ed1397f022e349ab
[ "MIT" ]
1
2021-03-08T16:14:31.000Z
2021-03-08T16:14:31.000Z
src/wheezy/routing/tests/test_utils.py
akornatskyy/wheezy.routing
6ba54d52779914aa5985a627ed1397f022e349ab
[ "MIT" ]
25
2020-07-18T04:32:39.000Z
2021-07-06T09:42:29.000Z
src/wheezy/routing/tests/test_utils.py
akornatskyy/wheezy.routing
6ba54d52779914aa5985a627ed1397f022e349ab
[ "MIT" ]
null
null
null
""" Unit tests for ``wheezy.routing.utils``. """
16.333333
44
0.612245
6
49
5
1
0
0
0
0
0
0
0
0
0
0
0
0.122449
49
2
45
24.5
0.697674
0.816327
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
b0aa8794c19a343f6bcb8e8db5beab87d22dda89
219
py
Python
tests/test_core_vserver.py
ifxit/nidho
7d49bb7d879d0f3d444df50f2c18c2cdf883216c
[ "MIT" ]
11
2016-06-09T12:07:14.000Z
2018-01-18T08:01:08.000Z
tests/test_core_vserver.py
ifxit/nidho
7d49bb7d879d0f3d444df50f2c18c2cdf883216c
[ "MIT" ]
4
2016-07-06T11:06:34.000Z
2020-01-02T10:11:48.000Z
tests/test_core_vserver.py
ifxit/nidhogg
7d49bb7d879d0f3d444df50f2c18c2cdf883216c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals def test_vserver(allmodes): assert allmodes.vserver == "my" def test_vserver_fqdn(allmodes): assert allmodes.vserver_fqdn == "my.url.to.filer"
19.909091
53
0.721461
29
219
5.137931
0.62069
0.09396
0.187919
0.389262
0
0
0
0
0
0
0
0.005376
0.150685
219
10
54
21.9
0.795699
0.09589
0
0
0
0
0.086735
0
0
0
0
0
0.4
1
0.4
false
0
0.2
0
0.6
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
5
b0afbeeb1f8609c4e630e531faa526b210870e85
110
py
Python
src/helper/strike.py
Vivswan/ECE-2162-Tomasulo
85a12be0d49a1229da062caa076321a6d2d5204c
[ "MIT" ]
null
null
null
src/helper/strike.py
Vivswan/ECE-2162-Tomasulo
85a12be0d49a1229da062caa076321a6d2d5204c
[ "MIT" ]
null
null
null
src/helper/strike.py
Vivswan/ECE-2162-Tomasulo
85a12be0d49a1229da062caa076321a6d2d5204c
[ "MIT" ]
null
null
null
STRIKE_CHAR = "\u0336" def strike(text: str): return STRIKE_CHAR + STRIKE_CHAR.join(text) + STRIKE_CHAR
18.333333
61
0.718182
16
110
4.6875
0.5
0.533333
0
0
0
0
0
0
0
0
0
0.043478
0.163636
110
5
62
22
0.771739
0
0
0
0
0
0.054545
0
0
0
0
0
0
1
0.333333
false
0
0
0.333333
0.666667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
5
b0c0d26531b626b7721e71a80a884a50a54eb7be
104
py
Python
jinad/models/__init__.py
jina-ai/jinad
4fb874b145357668ecd84cb015c9db1939ed013c
[ "Apache-2.0" ]
3
2020-10-29T10:11:42.000Z
2022-03-15T02:32:43.000Z
jinad/models/__init__.py
jina-ai/jinad
4fb874b145357668ecd84cb015c9db1939ed013c
[ "Apache-2.0" ]
41
2020-10-23T13:06:39.000Z
2021-01-06T19:55:06.000Z
jinad/models/__init__.py
jina-ai/jinad
4fb874b145357668ecd84cb015c9db1939ed013c
[ "Apache-2.0" ]
null
null
null
from .pea import PeaModel from .pod import SinglePodModel, ParallelPodModel from .flow import FlowModel
26
49
0.836538
13
104
6.692308
0.692308
0
0
0
0
0
0
0
0
0
0
0
0.125
104
3
50
34.666667
0.956044
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
b0ff178789f519a0791722742c8a925370f938fd
6,435
py
Python
app/api/order_statistics/tickets.py
akashtalole/python-flask-restful-api
475d8fd7be1724183716a197aac4257f8fbbeac4
[ "MIT" ]
3
2019-09-05T05:28:49.000Z
2020-06-10T09:03:37.000Z
app/api/order_statistics/tickets.py
akashtalole/python-flask-restful-api
475d8fd7be1724183716a197aac4257f8fbbeac4
[ "MIT" ]
null
null
null
app/api/order_statistics/tickets.py
akashtalole/python-flask-restful-api
475d8fd7be1724183716a197aac4257f8fbbeac4
[ "MIT" ]
null
null
null
from flask_rest_jsonapi import ResourceDetail from marshmallow_jsonapi import fields from marshmallow_jsonapi.flask import Schema from sqlalchemy import func from app.api.bootstrap import api from app.api.helpers.db import get_count from app.api.helpers.utilities import dasherize from app.models import db from app.models.order import Order, OrderTicket from app.models.ticket import Ticket class OrderStatisticsTicketSchema(Schema): """ Api schema """ class Meta: """ Meta class """ type_ = 'order-statistics-ticket' self_view = 'v1.order_statistics_ticket_detail' self_view_kwargs = {'id': '<id>'} inflect = dasherize id = fields.Str() identifier = fields.Str() tickets = fields.Method("tickets_count") orders = fields.Method("orders_count") sales = fields.Method("sales_count") def tickets_count(self, obj): obj_id = obj.id total = db.session.query(func.sum(OrderTicket.quantity.label('sum'))).join(Order.order_tickets).filter( OrderTicket.ticket_id == obj_id).scalar() draft = db.session.query(func.sum(OrderTicket.quantity.label('sum'))).join(Order.order_tickets).filter( OrderTicket.ticket_id == obj_id, Order.status == 'draft').scalar() cancelled = db.session.query(func.sum(OrderTicket.quantity.label('sum'))).join(Order.order_tickets).filter( OrderTicket.ticket_id == obj_id, Order.status == 'cancelled').scalar() pending = db.session.query(func.sum(OrderTicket.quantity.label('sum'))).join(Order.order_tickets).filter( OrderTicket.ticket_id == obj_id, Order.status == 'pending').scalar() expired = db.session.query(func.sum(OrderTicket.quantity.label('sum'))).join(Order.order_tickets).filter( OrderTicket.ticket_id == obj_id, Order.status == 'expired').scalar() placed = db.session.query(func.sum(OrderTicket.quantity.label('sum'))).join(Order.order_tickets).filter( OrderTicket.ticket_id == obj_id, Order.status == 'placed').scalar() completed = db.session.query(func.sum(OrderTicket.quantity.label('sum'))).join(Order.order_tickets).filter( OrderTicket.ticket_id == obj_id, Order.status == 'completed').scalar() result = { 'total': total or 0, 'draft': draft or 0, 'cancelled': cancelled or 0, 'pending': pending or 0, 'expired': expired or 0, 'placed': placed or 0, 'completed': completed or 0 } return result def orders_count(self, obj): obj_id = obj.id total = get_count(db.session.query(Order).join(Order.order_tickets).filter(OrderTicket.ticket_id == obj_id)) draft = get_count(db.session.query(Order).join(Order.order_tickets).filter(OrderTicket.ticket_id == obj_id, Order.status == 'draft')) cancelled = get_count(db.session.query(Order).join(Order.order_tickets).filter(OrderTicket.ticket_id == obj_id, Order.status == 'cancelled')) pending = get_count(db.session.query(Order).join(Order.order_tickets).filter(OrderTicket.ticket_id == obj_id, Order.status == 'pending')) expired = get_count(db.session.query(Order).join(Order.order_tickets).filter(OrderTicket.ticket_id == obj_id, Order.status == 'expired')) placed = get_count(db.session.query(Order).join(Order.order_tickets).filter(OrderTicket.ticket_id == obj_id, Order.status == 'placed')) completed = get_count(db.session.query(Order).join(Order.order_tickets).filter(OrderTicket.ticket_id == obj_id, Order.status == 'completed')) result = { 'total': total or 0, 'draft': draft or 0, 'cancelled': cancelled or 0, 'pending': pending or 0, 'expired': expired or 0, 'placed': placed or 0, 'completed': completed or 0 } return result def sales_count(self, obj): obj_id = obj.id total = db.session.query(func.sum(Order.amount.label('sum'))).join(Order.order_tickets).filter( OrderTicket.ticket_id == obj_id).scalar() draft = db.session.query(func.sum(Order.amount.label('sum'))).join(Order.order_tickets).filter( OrderTicket.ticket_id == obj_id, Order.status == 'draft').scalar() cancelled = db.session.query(func.sum(Order.amount.label('sum'))).join(Order.order_tickets).filter( OrderTicket.ticket_id == obj_id, Order.status == 'cancelled').scalar() pending = db.session.query(func.sum(Order.amount.label('sum'))).join(Order.order_tickets).filter( OrderTicket.ticket_id == obj_id, Order.status == 'pending').scalar() expired = db.session.query(func.sum(Order.amount.label('sum'))).join(Order.order_tickets).filter( OrderTicket.ticket_id == obj_id, Order.status == 'expired').scalar() placed = db.session.query(func.sum(Order.amount.label('sum'))).join(Order.order_tickets).filter( OrderTicket.ticket_id == obj_id, Order.status == 'placed').scalar() completed = db.session.query(func.sum(Order.amount.label('sum'))).join(Order.order_tickets).filter( OrderTicket.ticket_id == obj_id, Order.status == 'completed').scalar() result = { 'total': total or 0, 'draft': draft or 0, 'cancelled': cancelled or 0, 'pending': pending or 0, 'expired': expired or 0, 'placed': placed or 0, 'completed': completed or 0 } return result class OrderStatisticsTicketDetail(ResourceDetail): """ detail by id """ methods = ['GET'] decorators = (api.has_permission('is_coorganizer', fetch="event_id", fetch_as="event_id", model=Ticket),) schema = OrderStatisticsTicketSchema data_layer = {'session': db.session, 'model': Ticket}
51.895161
119
0.597669
727
6,435
5.156809
0.108666
0.03601
0.044812
0.117631
0.764204
0.764204
0.764204
0.764204
0.757002
0.757002
0
0.0047
0.272572
6,435
123
120
52.317073
0.796197
0.005284
0
0.423077
0
0
0.07216
0.008823
0
0
0
0
0
1
0.028846
false
0
0.096154
0
0.269231
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
b0ffe5ac924a2de863d4784edc284934d94d6148
49
py
Python
E09_NS.py
michielkauwatjoe/DataViz
c590a8c3148e35250a2179844adeb7a2534df585
[ "MIT" ]
null
null
null
E09_NS.py
michielkauwatjoe/DataViz
c590a8c3148e35250a2179844adeb7a2534df585
[ "MIT" ]
null
null
null
E09_NS.py
michielkauwatjoe/DataViz
c590a8c3148e35250a2179844adeb7a2534df585
[ "MIT" ]
null
null
null
# https://www.ns.nl/en/travel-information/ns-api
24.5
48
0.734694
9
49
4
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.040816
49
1
49
49
0.765957
0.938776
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
9ffc331eb291e9af24a4784f2512321a1cd74d03
1,848
py
Python
setup.py
armaan115/blit7s
39b20f15fb83f39d6e60c257512203171a851fb5
[ "MIT" ]
null
null
null
setup.py
armaan115/blit7s
39b20f15fb83f39d6e60c257512203171a851fb5
[ "MIT" ]
null
null
null
setup.py
armaan115/blit7s
39b20f15fb83f39d6e60c257512203171a851fb5
[ "MIT" ]
null
null
null
import setuptools from sys import platform with open("README.md", "r") as fh: long_description = fh.read() def linuxinstall(): if platform == "linux" or platform == "linux2": setuptools.setup( name="blit7s", version="0.0.2", author="Armaan Aggarwal", description="A package for RPi.GPIO that allows you to blit characters on a 7 segment unit.", long_description=long_description, long_description_content_type="text/markdown", url="https://github.com/armaan115/blit7s", packages=setuptools.find_packages(), classifiers=[ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", "Operating System :: POSIX :: Linux", "Development Status :: 3 - Alpha" ], ) if platform != "linux" and platform != "linux2": error="This python package requires Linux, specifically a Raspberry Pi." raise OSError(error) def uniosinstall(): setuptools.setup( name="blit7s", version="0.0.2", author="Armaan Aggarwal", description="A package for RPi.GPIO that allows you to blit characters on a 7 segment unit.", long_description=long_description, long_description_content_type="text/markdown", url="https://github.com/armaan115/blit7s", packages=setuptools.find_packages(), classifiers=[ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", "Operating System :: POSIX :: Linux", "Development Status :: 3 - Alpha" ], ) linuxinstall()
36.96
106
0.549242
179
1,848
5.597765
0.452514
0.10479
0.075848
0.11976
0.740519
0.740519
0.740519
0.740519
0.740519
0.740519
0
0.019818
0.344697
1,848
49
107
37.714286
0.807597
0
0
0.697674
0
0
0.375764
0
0
0
0
0
0
1
0.046512
false
0
0.046512
0
0.093023
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
b020d493d638cb6dae32c90d6f7de1157c869403
136
py
Python
models/__init__.py
k4t0mono/hashtag_analysis
b7386691911467e503b246398774c795bb286440
[ "BSD-2-Clause" ]
null
null
null
models/__init__.py
k4t0mono/hashtag_analysis
b7386691911467e503b246398774c795bb286440
[ "BSD-2-Clause" ]
null
null
null
models/__init__.py
k4t0mono/hashtag_analysis
b7386691911467e503b246398774c795bb286440
[ "BSD-2-Clause" ]
null
null
null
from .Tweet import Tweet from .User import User from .actions import Retweet, Reply, Mention, Hashtag from .Automation import Automation
34
53
0.816176
19
136
5.842105
0.526316
0
0
0
0
0
0
0
0
0
0
0
0.132353
136
4
54
34
0.940678
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
b026ab573dd0e70b4476f920bd449ce13aa65108
110
py
Python
plugins/interlinks/__init__.py
Lesstat/rust-module-of-the-week
4f001ea8809cbe8d11452dfbc8292bb943faa030
[ "MIT" ]
18
2021-08-03T02:30:16.000Z
2021-09-05T02:23:42.000Z
plugins/interlinks/__init__.py
Lesstat/rust-module-of-the-week
4f001ea8809cbe8d11452dfbc8292bb943faa030
[ "MIT" ]
11
2021-08-03T16:48:09.000Z
2021-08-10T18:01:44.000Z
plugins/interlinks/__init__.py
Lesstat/rust-module-of-the-week
4f001ea8809cbe8d11452dfbc8292bb943faa030
[ "MIT" ]
2
2021-08-04T12:02:36.000Z
2021-08-10T07:32:44.000Z
# Sourced from https://github.com/getpelican/pelican-plugins/tree/master/interlinks from .interlinks import *
36.666667
83
0.809091
14
110
6.357143
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.072727
110
3
84
36.666667
0.872549
0.736364
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
b04c42cf00c8cf08f37dbca4f630144b4eeae70d
147
py
Python
design_patterns/converters/streams/StreamConverter.py
Minkov/python-oop-2020-06
63b830a42b7abfac5bee576a81ee7626c47a80bc
[ "MIT" ]
3
2020-07-04T11:32:42.000Z
2020-08-14T08:43:25.000Z
design_patterns/converters/streams/StreamConverter.py
Minkov/python-oop-2020-06
63b830a42b7abfac5bee576a81ee7626c47a80bc
[ "MIT" ]
null
null
null
design_patterns/converters/streams/StreamConverter.py
Minkov/python-oop-2020-06
63b830a42b7abfac5bee576a81ee7626c47a80bc
[ "MIT" ]
2
2020-07-09T07:17:37.000Z
2021-02-22T22:55:52.000Z
from abc import ABC, abstractmethod class StreamConverter(ABC): @abstractmethod def convert_from_stream(self, stream): pass
21
43
0.70068
16
147
6.3125
0.6875
0.336634
0
0
0
0
0
0
0
0
0
0
0.238095
147
7
44
21
0.901786
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0.2
0.2
0
0.6
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
5
c67078d20d1afeefe9a4842b0e68641c30be1c30
205
py
Python
test/test_read_folder_empty.py
Ededu1984/ioet-test
1dc649b4161977fc2ad5dd27de830c411f661cec
[ "MIT" ]
null
null
null
test/test_read_folder_empty.py
Ededu1984/ioet-test
1dc649b4161977fc2ad5dd27de830c411f661cec
[ "MIT" ]
null
null
null
test/test_read_folder_empty.py
Ededu1984/ioet-test
1dc649b4161977fc2ad5dd27de830c411f661cec
[ "MIT" ]
null
null
null
from utils.payment import Payment # Delete the files in the folder to test the output def test_read_folder(): assert Payment.read_folder("/home/edson/ioet-test/employees") == ["The folder is empty."]
34.166667
93
0.75122
32
205
4.71875
0.65625
0.119205
0
0
0
0
0
0
0
0
0
0
0.141463
205
6
93
34.166667
0.857955
0.239024
0
0
0
0
0.329032
0.2
0
0
0
0
0.333333
1
0.333333
true
0
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
1
0
0
5
c6a8b66cde2ccf73c9d82d13d2bdaa99eff2e690
94
py
Python
common/moudle/waf_plugins/modsecuritycrs.py
ziizhuwy/cify
627ae74f6a27d803521df213e8644366dbba183f
[ "Apache-2.0" ]
8
2018-10-11T16:05:14.000Z
2020-12-30T08:21:15.000Z
common/moudle/waf_plugins/modsecuritycrs.py
keven1z/cify
627ae74f6a27d803521df213e8644366dbba183f
[ "Apache-2.0" ]
1
2020-04-22T03:36:59.000Z
2020-06-11T06:42:42.000Z
common/moudle/waf_plugins/modsecuritycrs.py
ziizhuwy/cify
627ae74f6a27d803521df213e8644366dbba183f
[ "Apache-2.0" ]
4
2019-07-10T06:51:45.000Z
2020-04-19T09:52:09.000Z
#!/usr/bin/env python NAME = 'ModSecurity (OWASP CRS)' def is_waf(self): return False
10.444444
32
0.659574
14
94
4.357143
1
0
0
0
0
0
0
0
0
0
0
0
0.202128
94
8
33
11.75
0.813333
0.212766
0
0
0
0
0.315068
0
0
0
0
0
0
1
0.333333
false
0
0
0.333333
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
c6f51ee4b8990f8fcf87c260d24c4c7c00f2629b
1,035
py
Python
test/test_renderer.py
mozanunal/imgTerm
fd64e8fca76c0f2a570d19dad9caa142200a4b67
[ "MIT" ]
8
2019-11-03T12:49:10.000Z
2022-02-10T00:42:51.000Z
test/test_renderer.py
mozanunal/imgTerm
fd64e8fca76c0f2a570d19dad9caa142200a4b67
[ "MIT" ]
6
2019-02-01T11:33:31.000Z
2019-02-17T16:59:26.000Z
test/test_renderer.py
mozanunal/imgTerm
fd64e8fca76c0f2a570d19dad9caa142200a4b67
[ "MIT" ]
3
2019-04-30T14:39:58.000Z
2021-12-08T15:33:40.000Z
from numpy import e from img2sh.renderer import Renderer from img2sh.pallette import XTERM_PALLETTE def test_jpeg(): renderer = Renderer("examples/lena.jpeg", XTERM_PALLETTE, wsize=80) assert renderer.error is None result_img = renderer.render() expected_wsize = 80 expected_hsize = expected_wsize / 2 expected_len = (expected_wsize * expected_hsize) + expected_hsize + 1 assert renderer.wsize == 80 assert result_img.count("\n") == (expected_hsize+1) assert result_img is not None assert len(result_img) == expected_len def test_png(): renderer = Renderer("examples/terminal.png", XTERM_PALLETTE, wsize=80) assert renderer.error is None result_img = renderer.render() expected_wsize = 80 expected_hsize = int(expected_wsize / 2) expected_len = (expected_wsize * expected_hsize) + expected_hsize + 1 assert renderer.wsize == 80 assert result_img.count("\n") == (expected_hsize+1) assert result_img is not None assert len(result_img) == expected_len
32.34375
74
0.721739
140
1,035
5.114286
0.235714
0.100559
0.072626
0.111732
0.75419
0.75419
0.75419
0.75419
0.75419
0.75419
0
0.023781
0.18744
1,035
31
75
33.387097
0.827586
0
0
0.64
0
0
0.041586
0.020309
0
0
0
0
0.4
1
0.08
false
0
0.12
0
0.2
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
c6f5c54362d0df47b08a00939258390996a00237
96
py
Python
venv/lib/python3.8/site-packages/aiohttp/abc.py
Retraces/UkraineBot
3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71
[ "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/aiohttp/abc.py
Retraces/UkraineBot
3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71
[ "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/aiohttp/abc.py
Retraces/UkraineBot
3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/b5/b8/6b/5ee9d807cf899aadfe7bacdb62d5da091ed57dbf1e468e087e4fa3b8b4
96
96
0.895833
9
96
9.555556
1
0
0
0
0
0
0
0
0
0
0
0.322917
0
96
1
96
96
0.572917
0
0
0
0
0
0
0
0
1
0
0
0
0
null
null
0
0
null
null
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
null
1
0
0
0
1
0
0
0
0
0
0
0
0
5
05b30a255b791f801367e692aca706ee60097c25
99
py
Python
chart/admin.py
KATO-Hiro/star-chart
c3e12e413012c2677ab7c2516a01d21c41cd2998
[ "MIT" ]
1
2019-12-20T13:48:36.000Z
2019-12-20T13:48:36.000Z
chart/admin.py
KATO-Hiro/star-chart
c3e12e413012c2677ab7c2516a01d21c41cd2998
[ "MIT" ]
15
2019-12-15T18:00:44.000Z
2021-09-22T23:36:57.000Z
chart/admin.py
KATO-Hiro/star-chart
c3e12e413012c2677ab7c2516a01d21c41cd2998
[ "MIT" ]
1
2019-12-20T13:48:39.000Z
2019-12-20T13:48:39.000Z
from django.contrib import admin from .models import Combination admin.site.register(Combination)
19.8
32
0.838384
13
99
6.384615
0.692308
0
0
0
0
0
0
0
0
0
0
0
0.10101
99
4
33
24.75
0.932584
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
05cb28c190222eafeb62e04bef9cb1d18f1bcc67
131
py
Python
layers/modules/__init__.py
xqterry/FaceDetection-DSFD
f25a41496b3475ec131f6d6503663981a0b0f6ae
[ "Apache-2.0" ]
87
2019-11-15T13:09:22.000Z
2022-03-02T14:44:56.000Z
layers/modules/__init__.py
facexteam/FaceDetection-DSFD
195cd194f67184bd80e842ae912b5305d22e533f
[ "Apache-2.0" ]
6
2020-01-16T06:49:09.000Z
2021-06-06T14:16:11.000Z
layers/modules/__init__.py
facexteam/FaceDetection-DSFD
195cd194f67184bd80e842ae912b5305d22e533f
[ "Apache-2.0" ]
31
2019-11-18T07:55:46.000Z
2022-01-31T15:53:07.000Z
from .l2norm import L2Norm from .multibox_loss import MultiBoxLoss , focalLoss __all__ = ['L2Norm', 'MultiBoxLoss' , 'focalLoss']
26.2
51
0.763359
14
131
6.785714
0.571429
0.442105
0
0
0
0
0
0
0
0
0
0.026316
0.129771
131
4
52
32.75
0.807018
0
0
0
0
0
0.206107
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
05e6f12fb9e91dad7f2d596efdc7d02420bde9e8
97
py
Python
problemSolving/pythonds/trees/__init__.py
code-knayam/DataStructureAlgorithms
8425911633d4d343c58798a123175289ed0df1fe
[ "MIT" ]
28
2019-07-05T04:00:45.000Z
2022-02-16T09:43:50.000Z
data-stracture/pythonds/trees/__init__.py
congminghaoxue/learn_python
f087ff3d504bf7d73d1d45f56eafd6de5ec9b661
[ "Apache-2.0" ]
null
null
null
data-stracture/pythonds/trees/__init__.py
congminghaoxue/learn_python
f087ff3d504bf7d73d1d45f56eafd6de5ec9b661
[ "Apache-2.0" ]
22
2018-10-24T04:42:05.000Z
2022-02-04T08:17:27.000Z
from .balance import AVLTree from .bst import BinarySearchTree from .binheap import BinHeap
10.777778
33
0.793814
12
97
6.416667
0.583333
0
0
0
0
0
0
0
0
0
0
0
0.175258
97
8
34
12.125
0.9625
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
af11cff3dd4fe27455199bbc843afd954fc178c8
71
py
Python
epyestim/__init__.py
lo-hfk/epyestim
ca2ca928b744f324dade248c24a40872b69a5222
[ "MIT" ]
11
2021-01-10T22:37:26.000Z
2022-03-14T10:46:21.000Z
epyestim/__init__.py
lo-hfk/epyestim
ca2ca928b744f324dade248c24a40872b69a5222
[ "MIT" ]
null
null
null
epyestim/__init__.py
lo-hfk/epyestim
ca2ca928b744f324dade248c24a40872b69a5222
[ "MIT" ]
4
2021-03-26T23:43:03.000Z
2021-11-21T15:16:05.000Z
from .main import bagging_r from .distributions import discrete_distrb
23.666667
42
0.859155
10
71
5.9
0.8
0
0
0
0
0
0
0
0
0
0
0
0.112676
71
2
43
35.5
0.936508
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
af19f3a912d21f99e9d8400c9db8df3a3d113267
223,420
py
Python
usr/lib64/python2.6/site-packages/libsvn/core.py
devop-mmcgrath/openshift-svn-cartridge
6cfe801adcdb68186a8c420b420ff6c0ccaadbb5
[ "Apache-2.0" ]
2
2017-09-28T15:02:43.000Z
2018-02-09T05:52:33.000Z
usr/lib64/python2.6/site-packages/libsvn/core.py
devop-mmcgrath/openshift-svn-cartridge
6cfe801adcdb68186a8c420b420ff6c0ccaadbb5
[ "Apache-2.0" ]
null
null
null
usr/lib64/python2.6/site-packages/libsvn/core.py
devop-mmcgrath/openshift-svn-cartridge
6cfe801adcdb68186a8c420b420ff6c0ccaadbb5
[ "Apache-2.0" ]
null
null
null
# This file was automatically generated by SWIG (http://www.swig.org). # Version 1.3.36 # # Don't modify this file, modify the SWIG interface instead. # This file is compatible with both classic and new-style classes. import _core import new new_instancemethod = new.instancemethod def _swig_setattr_nondynamic(self,class_type,name,value,static=1): if (name == "thisown"): return self.this.own(value) if (name == "this"): if type(value).__name__ == 'PySwigObject': self.__dict__[name] = value return method = class_type.__swig_setmethods__.get(name,None) if method: return method(self,value) if (not static) or hasattr(self,name): self.__dict__[name] = value else: raise AttributeError("You cannot add attributes to %s" % self) def _swig_setattr(self,class_type,name,value): return _swig_setattr_nondynamic(self,class_type,name,value,0) def _swig_getattr(self,class_type,name): if (name == "thisown"): return self.this.own() method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name def _swig_repr(self): try: strthis = "proxy of " + self.this.__repr__() except: strthis = "" return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) SWIG_SVN_INVALID_REVNUM = _core.SWIG_SVN_INVALID_REVNUM SWIG_SVN_IGNORED_REVNUM = _core.SWIG_SVN_IGNORED_REVNUM def apr_initialize(*args): """apr_initialize() -> apr_status_t""" return apply(_core.apr_initialize, args) def apr_terminate(*args): """apr_terminate()""" return apply(_core.apr_terminate, args) def apr_time_ansi_put(*args): """apr_time_ansi_put(apr_time_t result, time_t input) -> apr_status_t""" return apply(_core.apr_time_ansi_put, args) def apr_pool_destroy(*args): """apr_pool_destroy(apr_pool_t p)""" return apply(_core.apr_pool_destroy, args) def apr_pool_clear(*args): """apr_pool_clear(apr_pool_t p)""" return apply(_core.apr_pool_clear, args) def apr_file_open_stdout(*args): """apr_file_open_stdout(apr_file_t out, apr_pool_t pool) -> apr_status_t""" return apply(_core.apr_file_open_stdout, args) def apr_file_open_stderr(*args): """apr_file_open_stderr(apr_file_t out, apr_pool_t pool) -> apr_status_t""" return apply(_core.apr_file_open_stderr, args) SVN_ERR_CATEGORY_SIZE = _core.SVN_ERR_CATEGORY_SIZE SVN_WARNING = _core.SVN_WARNING SVN_ERR_BAD_CONTAINING_POOL = _core.SVN_ERR_BAD_CONTAINING_POOL SVN_ERR_BAD_FILENAME = _core.SVN_ERR_BAD_FILENAME SVN_ERR_BAD_URL = _core.SVN_ERR_BAD_URL SVN_ERR_BAD_DATE = _core.SVN_ERR_BAD_DATE SVN_ERR_BAD_MIME_TYPE = _core.SVN_ERR_BAD_MIME_TYPE SVN_ERR_BAD_PROPERTY_VALUE = _core.SVN_ERR_BAD_PROPERTY_VALUE SVN_ERR_BAD_VERSION_FILE_FORMAT = _core.SVN_ERR_BAD_VERSION_FILE_FORMAT SVN_ERR_BAD_RELATIVE_PATH = _core.SVN_ERR_BAD_RELATIVE_PATH SVN_ERR_BAD_UUID = _core.SVN_ERR_BAD_UUID SVN_ERR_BAD_CONFIG_VALUE = _core.SVN_ERR_BAD_CONFIG_VALUE SVN_ERR_BAD_SERVER_SPECIFICATION = _core.SVN_ERR_BAD_SERVER_SPECIFICATION SVN_ERR_BAD_CHECKSUM_KIND = _core.SVN_ERR_BAD_CHECKSUM_KIND SVN_ERR_BAD_CHECKSUM_PARSE = _core.SVN_ERR_BAD_CHECKSUM_PARSE SVN_ERR_XML_ATTRIB_NOT_FOUND = _core.SVN_ERR_XML_ATTRIB_NOT_FOUND SVN_ERR_XML_MISSING_ANCESTRY = _core.SVN_ERR_XML_MISSING_ANCESTRY SVN_ERR_XML_UNKNOWN_ENCODING = _core.SVN_ERR_XML_UNKNOWN_ENCODING SVN_ERR_XML_MALFORMED = _core.SVN_ERR_XML_MALFORMED SVN_ERR_XML_UNESCAPABLE_DATA = _core.SVN_ERR_XML_UNESCAPABLE_DATA SVN_ERR_IO_INCONSISTENT_EOL = _core.SVN_ERR_IO_INCONSISTENT_EOL SVN_ERR_IO_UNKNOWN_EOL = _core.SVN_ERR_IO_UNKNOWN_EOL SVN_ERR_IO_CORRUPT_EOL = _core.SVN_ERR_IO_CORRUPT_EOL SVN_ERR_IO_UNIQUE_NAMES_EXHAUSTED = _core.SVN_ERR_IO_UNIQUE_NAMES_EXHAUSTED SVN_ERR_IO_PIPE_FRAME_ERROR = _core.SVN_ERR_IO_PIPE_FRAME_ERROR SVN_ERR_IO_PIPE_READ_ERROR = _core.SVN_ERR_IO_PIPE_READ_ERROR SVN_ERR_IO_WRITE_ERROR = _core.SVN_ERR_IO_WRITE_ERROR SVN_ERR_STREAM_UNEXPECTED_EOF = _core.SVN_ERR_STREAM_UNEXPECTED_EOF SVN_ERR_STREAM_MALFORMED_DATA = _core.SVN_ERR_STREAM_MALFORMED_DATA SVN_ERR_STREAM_UNRECOGNIZED_DATA = _core.SVN_ERR_STREAM_UNRECOGNIZED_DATA SVN_ERR_NODE_UNKNOWN_KIND = _core.SVN_ERR_NODE_UNKNOWN_KIND SVN_ERR_NODE_UNEXPECTED_KIND = _core.SVN_ERR_NODE_UNEXPECTED_KIND SVN_ERR_ENTRY_NOT_FOUND = _core.SVN_ERR_ENTRY_NOT_FOUND SVN_ERR_ENTRY_EXISTS = _core.SVN_ERR_ENTRY_EXISTS SVN_ERR_ENTRY_MISSING_REVISION = _core.SVN_ERR_ENTRY_MISSING_REVISION SVN_ERR_ENTRY_MISSING_URL = _core.SVN_ERR_ENTRY_MISSING_URL SVN_ERR_ENTRY_ATTRIBUTE_INVALID = _core.SVN_ERR_ENTRY_ATTRIBUTE_INVALID SVN_ERR_ENTRY_FORBIDDEN = _core.SVN_ERR_ENTRY_FORBIDDEN SVN_ERR_WC_OBSTRUCTED_UPDATE = _core.SVN_ERR_WC_OBSTRUCTED_UPDATE SVN_ERR_WC_UNWIND_MISMATCH = _core.SVN_ERR_WC_UNWIND_MISMATCH SVN_ERR_WC_UNWIND_EMPTY = _core.SVN_ERR_WC_UNWIND_EMPTY SVN_ERR_WC_UNWIND_NOT_EMPTY = _core.SVN_ERR_WC_UNWIND_NOT_EMPTY SVN_ERR_WC_LOCKED = _core.SVN_ERR_WC_LOCKED SVN_ERR_WC_NOT_LOCKED = _core.SVN_ERR_WC_NOT_LOCKED SVN_ERR_WC_INVALID_LOCK = _core.SVN_ERR_WC_INVALID_LOCK SVN_ERR_WC_NOT_DIRECTORY = _core.SVN_ERR_WC_NOT_DIRECTORY SVN_ERR_WC_NOT_FILE = _core.SVN_ERR_WC_NOT_FILE SVN_ERR_WC_BAD_ADM_LOG = _core.SVN_ERR_WC_BAD_ADM_LOG SVN_ERR_WC_PATH_NOT_FOUND = _core.SVN_ERR_WC_PATH_NOT_FOUND SVN_ERR_WC_NOT_UP_TO_DATE = _core.SVN_ERR_WC_NOT_UP_TO_DATE SVN_ERR_WC_LEFT_LOCAL_MOD = _core.SVN_ERR_WC_LEFT_LOCAL_MOD SVN_ERR_WC_SCHEDULE_CONFLICT = _core.SVN_ERR_WC_SCHEDULE_CONFLICT SVN_ERR_WC_PATH_FOUND = _core.SVN_ERR_WC_PATH_FOUND SVN_ERR_WC_FOUND_CONFLICT = _core.SVN_ERR_WC_FOUND_CONFLICT SVN_ERR_WC_CORRUPT = _core.SVN_ERR_WC_CORRUPT SVN_ERR_WC_CORRUPT_TEXT_BASE = _core.SVN_ERR_WC_CORRUPT_TEXT_BASE SVN_ERR_WC_NODE_KIND_CHANGE = _core.SVN_ERR_WC_NODE_KIND_CHANGE SVN_ERR_WC_INVALID_OP_ON_CWD = _core.SVN_ERR_WC_INVALID_OP_ON_CWD SVN_ERR_WC_BAD_ADM_LOG_START = _core.SVN_ERR_WC_BAD_ADM_LOG_START SVN_ERR_WC_UNSUPPORTED_FORMAT = _core.SVN_ERR_WC_UNSUPPORTED_FORMAT SVN_ERR_WC_BAD_PATH = _core.SVN_ERR_WC_BAD_PATH SVN_ERR_WC_INVALID_SCHEDULE = _core.SVN_ERR_WC_INVALID_SCHEDULE SVN_ERR_WC_INVALID_RELOCATION = _core.SVN_ERR_WC_INVALID_RELOCATION SVN_ERR_WC_INVALID_SWITCH = _core.SVN_ERR_WC_INVALID_SWITCH SVN_ERR_WC_MISMATCHED_CHANGELIST = _core.SVN_ERR_WC_MISMATCHED_CHANGELIST SVN_ERR_WC_CONFLICT_RESOLVER_FAILURE = _core.SVN_ERR_WC_CONFLICT_RESOLVER_FAILURE SVN_ERR_WC_COPYFROM_PATH_NOT_FOUND = _core.SVN_ERR_WC_COPYFROM_PATH_NOT_FOUND SVN_ERR_WC_CHANGELIST_MOVE = _core.SVN_ERR_WC_CHANGELIST_MOVE SVN_ERR_WC_CANNOT_DELETE_FILE_EXTERNAL = _core.SVN_ERR_WC_CANNOT_DELETE_FILE_EXTERNAL SVN_ERR_WC_CANNOT_MOVE_FILE_EXTERNAL = _core.SVN_ERR_WC_CANNOT_MOVE_FILE_EXTERNAL SVN_ERR_FS_GENERAL = _core.SVN_ERR_FS_GENERAL SVN_ERR_FS_CLEANUP = _core.SVN_ERR_FS_CLEANUP SVN_ERR_FS_ALREADY_OPEN = _core.SVN_ERR_FS_ALREADY_OPEN SVN_ERR_FS_NOT_OPEN = _core.SVN_ERR_FS_NOT_OPEN SVN_ERR_FS_CORRUPT = _core.SVN_ERR_FS_CORRUPT SVN_ERR_FS_PATH_SYNTAX = _core.SVN_ERR_FS_PATH_SYNTAX SVN_ERR_FS_NO_SUCH_REVISION = _core.SVN_ERR_FS_NO_SUCH_REVISION SVN_ERR_FS_NO_SUCH_TRANSACTION = _core.SVN_ERR_FS_NO_SUCH_TRANSACTION SVN_ERR_FS_NO_SUCH_ENTRY = _core.SVN_ERR_FS_NO_SUCH_ENTRY SVN_ERR_FS_NO_SUCH_REPRESENTATION = _core.SVN_ERR_FS_NO_SUCH_REPRESENTATION SVN_ERR_FS_NO_SUCH_STRING = _core.SVN_ERR_FS_NO_SUCH_STRING SVN_ERR_FS_NO_SUCH_COPY = _core.SVN_ERR_FS_NO_SUCH_COPY SVN_ERR_FS_TRANSACTION_NOT_MUTABLE = _core.SVN_ERR_FS_TRANSACTION_NOT_MUTABLE SVN_ERR_FS_NOT_FOUND = _core.SVN_ERR_FS_NOT_FOUND SVN_ERR_FS_ID_NOT_FOUND = _core.SVN_ERR_FS_ID_NOT_FOUND SVN_ERR_FS_NOT_ID = _core.SVN_ERR_FS_NOT_ID SVN_ERR_FS_NOT_DIRECTORY = _core.SVN_ERR_FS_NOT_DIRECTORY SVN_ERR_FS_NOT_FILE = _core.SVN_ERR_FS_NOT_FILE SVN_ERR_FS_NOT_SINGLE_PATH_COMPONENT = _core.SVN_ERR_FS_NOT_SINGLE_PATH_COMPONENT SVN_ERR_FS_NOT_MUTABLE = _core.SVN_ERR_FS_NOT_MUTABLE SVN_ERR_FS_ALREADY_EXISTS = _core.SVN_ERR_FS_ALREADY_EXISTS SVN_ERR_FS_ROOT_DIR = _core.SVN_ERR_FS_ROOT_DIR SVN_ERR_FS_NOT_TXN_ROOT = _core.SVN_ERR_FS_NOT_TXN_ROOT SVN_ERR_FS_NOT_REVISION_ROOT = _core.SVN_ERR_FS_NOT_REVISION_ROOT SVN_ERR_FS_CONFLICT = _core.SVN_ERR_FS_CONFLICT SVN_ERR_FS_REP_CHANGED = _core.SVN_ERR_FS_REP_CHANGED SVN_ERR_FS_REP_NOT_MUTABLE = _core.SVN_ERR_FS_REP_NOT_MUTABLE SVN_ERR_FS_MALFORMED_SKEL = _core.SVN_ERR_FS_MALFORMED_SKEL SVN_ERR_FS_TXN_OUT_OF_DATE = _core.SVN_ERR_FS_TXN_OUT_OF_DATE SVN_ERR_FS_BERKELEY_DB = _core.SVN_ERR_FS_BERKELEY_DB SVN_ERR_FS_BERKELEY_DB_DEADLOCK = _core.SVN_ERR_FS_BERKELEY_DB_DEADLOCK SVN_ERR_FS_TRANSACTION_DEAD = _core.SVN_ERR_FS_TRANSACTION_DEAD SVN_ERR_FS_TRANSACTION_NOT_DEAD = _core.SVN_ERR_FS_TRANSACTION_NOT_DEAD SVN_ERR_FS_UNKNOWN_FS_TYPE = _core.SVN_ERR_FS_UNKNOWN_FS_TYPE SVN_ERR_FS_NO_USER = _core.SVN_ERR_FS_NO_USER SVN_ERR_FS_PATH_ALREADY_LOCKED = _core.SVN_ERR_FS_PATH_ALREADY_LOCKED SVN_ERR_FS_PATH_NOT_LOCKED = _core.SVN_ERR_FS_PATH_NOT_LOCKED SVN_ERR_FS_BAD_LOCK_TOKEN = _core.SVN_ERR_FS_BAD_LOCK_TOKEN SVN_ERR_FS_NO_LOCK_TOKEN = _core.SVN_ERR_FS_NO_LOCK_TOKEN SVN_ERR_FS_LOCK_OWNER_MISMATCH = _core.SVN_ERR_FS_LOCK_OWNER_MISMATCH SVN_ERR_FS_NO_SUCH_LOCK = _core.SVN_ERR_FS_NO_SUCH_LOCK SVN_ERR_FS_LOCK_EXPIRED = _core.SVN_ERR_FS_LOCK_EXPIRED SVN_ERR_FS_OUT_OF_DATE = _core.SVN_ERR_FS_OUT_OF_DATE SVN_ERR_FS_UNSUPPORTED_FORMAT = _core.SVN_ERR_FS_UNSUPPORTED_FORMAT SVN_ERR_FS_REP_BEING_WRITTEN = _core.SVN_ERR_FS_REP_BEING_WRITTEN SVN_ERR_FS_TXN_NAME_TOO_LONG = _core.SVN_ERR_FS_TXN_NAME_TOO_LONG SVN_ERR_FS_NO_SUCH_NODE_ORIGIN = _core.SVN_ERR_FS_NO_SUCH_NODE_ORIGIN SVN_ERR_FS_UNSUPPORTED_UPGRADE = _core.SVN_ERR_FS_UNSUPPORTED_UPGRADE SVN_ERR_FS_NO_SUCH_CHECKSUM_REP = _core.SVN_ERR_FS_NO_SUCH_CHECKSUM_REP SVN_ERR_REPOS_LOCKED = _core.SVN_ERR_REPOS_LOCKED SVN_ERR_REPOS_HOOK_FAILURE = _core.SVN_ERR_REPOS_HOOK_FAILURE SVN_ERR_REPOS_BAD_ARGS = _core.SVN_ERR_REPOS_BAD_ARGS SVN_ERR_REPOS_NO_DATA_FOR_REPORT = _core.SVN_ERR_REPOS_NO_DATA_FOR_REPORT SVN_ERR_REPOS_BAD_REVISION_REPORT = _core.SVN_ERR_REPOS_BAD_REVISION_REPORT SVN_ERR_REPOS_UNSUPPORTED_VERSION = _core.SVN_ERR_REPOS_UNSUPPORTED_VERSION SVN_ERR_REPOS_DISABLED_FEATURE = _core.SVN_ERR_REPOS_DISABLED_FEATURE SVN_ERR_REPOS_POST_COMMIT_HOOK_FAILED = _core.SVN_ERR_REPOS_POST_COMMIT_HOOK_FAILED SVN_ERR_REPOS_POST_LOCK_HOOK_FAILED = _core.SVN_ERR_REPOS_POST_LOCK_HOOK_FAILED SVN_ERR_REPOS_POST_UNLOCK_HOOK_FAILED = _core.SVN_ERR_REPOS_POST_UNLOCK_HOOK_FAILED SVN_ERR_REPOS_UNSUPPORTED_UPGRADE = _core.SVN_ERR_REPOS_UNSUPPORTED_UPGRADE SVN_ERR_RA_ILLEGAL_URL = _core.SVN_ERR_RA_ILLEGAL_URL SVN_ERR_RA_NOT_AUTHORIZED = _core.SVN_ERR_RA_NOT_AUTHORIZED SVN_ERR_RA_UNKNOWN_AUTH = _core.SVN_ERR_RA_UNKNOWN_AUTH SVN_ERR_RA_NOT_IMPLEMENTED = _core.SVN_ERR_RA_NOT_IMPLEMENTED SVN_ERR_RA_OUT_OF_DATE = _core.SVN_ERR_RA_OUT_OF_DATE SVN_ERR_RA_NO_REPOS_UUID = _core.SVN_ERR_RA_NO_REPOS_UUID SVN_ERR_RA_UNSUPPORTED_ABI_VERSION = _core.SVN_ERR_RA_UNSUPPORTED_ABI_VERSION SVN_ERR_RA_NOT_LOCKED = _core.SVN_ERR_RA_NOT_LOCKED SVN_ERR_RA_PARTIAL_REPLAY_NOT_SUPPORTED = _core.SVN_ERR_RA_PARTIAL_REPLAY_NOT_SUPPORTED SVN_ERR_RA_UUID_MISMATCH = _core.SVN_ERR_RA_UUID_MISMATCH SVN_ERR_RA_REPOS_ROOT_URL_MISMATCH = _core.SVN_ERR_RA_REPOS_ROOT_URL_MISMATCH SVN_ERR_RA_DAV_SOCK_INIT = _core.SVN_ERR_RA_DAV_SOCK_INIT SVN_ERR_RA_DAV_CREATING_REQUEST = _core.SVN_ERR_RA_DAV_CREATING_REQUEST SVN_ERR_RA_DAV_REQUEST_FAILED = _core.SVN_ERR_RA_DAV_REQUEST_FAILED SVN_ERR_RA_DAV_OPTIONS_REQ_FAILED = _core.SVN_ERR_RA_DAV_OPTIONS_REQ_FAILED SVN_ERR_RA_DAV_PROPS_NOT_FOUND = _core.SVN_ERR_RA_DAV_PROPS_NOT_FOUND SVN_ERR_RA_DAV_ALREADY_EXISTS = _core.SVN_ERR_RA_DAV_ALREADY_EXISTS SVN_ERR_RA_DAV_INVALID_CONFIG_VALUE = _core.SVN_ERR_RA_DAV_INVALID_CONFIG_VALUE SVN_ERR_RA_DAV_PATH_NOT_FOUND = _core.SVN_ERR_RA_DAV_PATH_NOT_FOUND SVN_ERR_RA_DAV_PROPPATCH_FAILED = _core.SVN_ERR_RA_DAV_PROPPATCH_FAILED SVN_ERR_RA_DAV_MALFORMED_DATA = _core.SVN_ERR_RA_DAV_MALFORMED_DATA SVN_ERR_RA_DAV_RESPONSE_HEADER_BADNESS = _core.SVN_ERR_RA_DAV_RESPONSE_HEADER_BADNESS SVN_ERR_RA_DAV_RELOCATED = _core.SVN_ERR_RA_DAV_RELOCATED SVN_ERR_RA_DAV_FORBIDDEN = _core.SVN_ERR_RA_DAV_FORBIDDEN SVN_ERR_RA_LOCAL_REPOS_NOT_FOUND = _core.SVN_ERR_RA_LOCAL_REPOS_NOT_FOUND SVN_ERR_RA_LOCAL_REPOS_OPEN_FAILED = _core.SVN_ERR_RA_LOCAL_REPOS_OPEN_FAILED SVN_ERR_RA_SVN_CMD_ERR = _core.SVN_ERR_RA_SVN_CMD_ERR SVN_ERR_RA_SVN_UNKNOWN_CMD = _core.SVN_ERR_RA_SVN_UNKNOWN_CMD SVN_ERR_RA_SVN_CONNECTION_CLOSED = _core.SVN_ERR_RA_SVN_CONNECTION_CLOSED SVN_ERR_RA_SVN_IO_ERROR = _core.SVN_ERR_RA_SVN_IO_ERROR SVN_ERR_RA_SVN_MALFORMED_DATA = _core.SVN_ERR_RA_SVN_MALFORMED_DATA SVN_ERR_RA_SVN_REPOS_NOT_FOUND = _core.SVN_ERR_RA_SVN_REPOS_NOT_FOUND SVN_ERR_RA_SVN_BAD_VERSION = _core.SVN_ERR_RA_SVN_BAD_VERSION SVN_ERR_RA_SVN_NO_MECHANISMS = _core.SVN_ERR_RA_SVN_NO_MECHANISMS SVN_ERR_RA_SERF_SSPI_INITIALISATION_FAILED = _core.SVN_ERR_RA_SERF_SSPI_INITIALISATION_FAILED SVN_ERR_RA_SERF_SSL_CERT_UNTRUSTED = _core.SVN_ERR_RA_SERF_SSL_CERT_UNTRUSTED SVN_ERR_AUTHN_CREDS_UNAVAILABLE = _core.SVN_ERR_AUTHN_CREDS_UNAVAILABLE SVN_ERR_AUTHN_NO_PROVIDER = _core.SVN_ERR_AUTHN_NO_PROVIDER SVN_ERR_AUTHN_PROVIDERS_EXHAUSTED = _core.SVN_ERR_AUTHN_PROVIDERS_EXHAUSTED SVN_ERR_AUTHN_CREDS_NOT_SAVED = _core.SVN_ERR_AUTHN_CREDS_NOT_SAVED SVN_ERR_AUTHN_FAILED = _core.SVN_ERR_AUTHN_FAILED SVN_ERR_AUTHZ_ROOT_UNREADABLE = _core.SVN_ERR_AUTHZ_ROOT_UNREADABLE SVN_ERR_AUTHZ_UNREADABLE = _core.SVN_ERR_AUTHZ_UNREADABLE SVN_ERR_AUTHZ_PARTIALLY_READABLE = _core.SVN_ERR_AUTHZ_PARTIALLY_READABLE SVN_ERR_AUTHZ_INVALID_CONFIG = _core.SVN_ERR_AUTHZ_INVALID_CONFIG SVN_ERR_AUTHZ_UNWRITABLE = _core.SVN_ERR_AUTHZ_UNWRITABLE SVN_ERR_SVNDIFF_INVALID_HEADER = _core.SVN_ERR_SVNDIFF_INVALID_HEADER SVN_ERR_SVNDIFF_CORRUPT_WINDOW = _core.SVN_ERR_SVNDIFF_CORRUPT_WINDOW SVN_ERR_SVNDIFF_BACKWARD_VIEW = _core.SVN_ERR_SVNDIFF_BACKWARD_VIEW SVN_ERR_SVNDIFF_INVALID_OPS = _core.SVN_ERR_SVNDIFF_INVALID_OPS SVN_ERR_SVNDIFF_UNEXPECTED_END = _core.SVN_ERR_SVNDIFF_UNEXPECTED_END SVN_ERR_SVNDIFF_INVALID_COMPRESSED_DATA = _core.SVN_ERR_SVNDIFF_INVALID_COMPRESSED_DATA SVN_ERR_DIFF_DATASOURCE_MODIFIED = _core.SVN_ERR_DIFF_DATASOURCE_MODIFIED SVN_ERR_APMOD_MISSING_PATH_TO_FS = _core.SVN_ERR_APMOD_MISSING_PATH_TO_FS SVN_ERR_APMOD_MALFORMED_URI = _core.SVN_ERR_APMOD_MALFORMED_URI SVN_ERR_APMOD_ACTIVITY_NOT_FOUND = _core.SVN_ERR_APMOD_ACTIVITY_NOT_FOUND SVN_ERR_APMOD_BAD_BASELINE = _core.SVN_ERR_APMOD_BAD_BASELINE SVN_ERR_APMOD_CONNECTION_ABORTED = _core.SVN_ERR_APMOD_CONNECTION_ABORTED SVN_ERR_CLIENT_VERSIONED_PATH_REQUIRED = _core.SVN_ERR_CLIENT_VERSIONED_PATH_REQUIRED SVN_ERR_CLIENT_RA_ACCESS_REQUIRED = _core.SVN_ERR_CLIENT_RA_ACCESS_REQUIRED SVN_ERR_CLIENT_BAD_REVISION = _core.SVN_ERR_CLIENT_BAD_REVISION SVN_ERR_CLIENT_DUPLICATE_COMMIT_URL = _core.SVN_ERR_CLIENT_DUPLICATE_COMMIT_URL SVN_ERR_CLIENT_IS_BINARY_FILE = _core.SVN_ERR_CLIENT_IS_BINARY_FILE SVN_ERR_CLIENT_INVALID_EXTERNALS_DESCRIPTION = _core.SVN_ERR_CLIENT_INVALID_EXTERNALS_DESCRIPTION SVN_ERR_CLIENT_MODIFIED = _core.SVN_ERR_CLIENT_MODIFIED SVN_ERR_CLIENT_IS_DIRECTORY = _core.SVN_ERR_CLIENT_IS_DIRECTORY SVN_ERR_CLIENT_REVISION_RANGE = _core.SVN_ERR_CLIENT_REVISION_RANGE SVN_ERR_CLIENT_INVALID_RELOCATION = _core.SVN_ERR_CLIENT_INVALID_RELOCATION SVN_ERR_CLIENT_REVISION_AUTHOR_CONTAINS_NEWLINE = _core.SVN_ERR_CLIENT_REVISION_AUTHOR_CONTAINS_NEWLINE SVN_ERR_CLIENT_PROPERTY_NAME = _core.SVN_ERR_CLIENT_PROPERTY_NAME SVN_ERR_CLIENT_UNRELATED_RESOURCES = _core.SVN_ERR_CLIENT_UNRELATED_RESOURCES SVN_ERR_CLIENT_MISSING_LOCK_TOKEN = _core.SVN_ERR_CLIENT_MISSING_LOCK_TOKEN SVN_ERR_CLIENT_MULTIPLE_SOURCES_DISALLOWED = _core.SVN_ERR_CLIENT_MULTIPLE_SOURCES_DISALLOWED SVN_ERR_CLIENT_NO_VERSIONED_PARENT = _core.SVN_ERR_CLIENT_NO_VERSIONED_PARENT SVN_ERR_CLIENT_NOT_READY_TO_MERGE = _core.SVN_ERR_CLIENT_NOT_READY_TO_MERGE SVN_ERR_CLIENT_FILE_EXTERNAL_OVERWRITE_VERSIONED = _core.SVN_ERR_CLIENT_FILE_EXTERNAL_OVERWRITE_VERSIONED SVN_ERR_BASE = _core.SVN_ERR_BASE SVN_ERR_PLUGIN_LOAD_FAILURE = _core.SVN_ERR_PLUGIN_LOAD_FAILURE SVN_ERR_MALFORMED_FILE = _core.SVN_ERR_MALFORMED_FILE SVN_ERR_INCOMPLETE_DATA = _core.SVN_ERR_INCOMPLETE_DATA SVN_ERR_INCORRECT_PARAMS = _core.SVN_ERR_INCORRECT_PARAMS SVN_ERR_UNVERSIONED_RESOURCE = _core.SVN_ERR_UNVERSIONED_RESOURCE SVN_ERR_TEST_FAILED = _core.SVN_ERR_TEST_FAILED SVN_ERR_UNSUPPORTED_FEATURE = _core.SVN_ERR_UNSUPPORTED_FEATURE SVN_ERR_BAD_PROP_KIND = _core.SVN_ERR_BAD_PROP_KIND SVN_ERR_ILLEGAL_TARGET = _core.SVN_ERR_ILLEGAL_TARGET SVN_ERR_DELTA_MD5_CHECKSUM_ABSENT = _core.SVN_ERR_DELTA_MD5_CHECKSUM_ABSENT SVN_ERR_DIR_NOT_EMPTY = _core.SVN_ERR_DIR_NOT_EMPTY SVN_ERR_EXTERNAL_PROGRAM = _core.SVN_ERR_EXTERNAL_PROGRAM SVN_ERR_SWIG_PY_EXCEPTION_SET = _core.SVN_ERR_SWIG_PY_EXCEPTION_SET SVN_ERR_CHECKSUM_MISMATCH = _core.SVN_ERR_CHECKSUM_MISMATCH SVN_ERR_CANCELLED = _core.SVN_ERR_CANCELLED SVN_ERR_INVALID_DIFF_OPTION = _core.SVN_ERR_INVALID_DIFF_OPTION SVN_ERR_PROPERTY_NOT_FOUND = _core.SVN_ERR_PROPERTY_NOT_FOUND SVN_ERR_NO_AUTH_FILE_PATH = _core.SVN_ERR_NO_AUTH_FILE_PATH SVN_ERR_VERSION_MISMATCH = _core.SVN_ERR_VERSION_MISMATCH SVN_ERR_MERGEINFO_PARSE_ERROR = _core.SVN_ERR_MERGEINFO_PARSE_ERROR SVN_ERR_CEASE_INVOCATION = _core.SVN_ERR_CEASE_INVOCATION SVN_ERR_REVNUM_PARSE_FAILURE = _core.SVN_ERR_REVNUM_PARSE_FAILURE SVN_ERR_ITER_BREAK = _core.SVN_ERR_ITER_BREAK SVN_ERR_UNKNOWN_CHANGELIST = _core.SVN_ERR_UNKNOWN_CHANGELIST SVN_ERR_RESERVED_FILENAME_SPECIFIED = _core.SVN_ERR_RESERVED_FILENAME_SPECIFIED SVN_ERR_UNKNOWN_CAPABILITY = _core.SVN_ERR_UNKNOWN_CAPABILITY SVN_ERR_TEST_SKIPPED = _core.SVN_ERR_TEST_SKIPPED SVN_ERR_NO_APR_MEMCACHE = _core.SVN_ERR_NO_APR_MEMCACHE SVN_ERR_ATOMIC_INIT_FAILURE = _core.SVN_ERR_ATOMIC_INIT_FAILURE SVN_ERR_SQLITE_ERROR = _core.SVN_ERR_SQLITE_ERROR SVN_ERR_SQLITE_READONLY = _core.SVN_ERR_SQLITE_READONLY SVN_ERR_SQLITE_UNSUPPORTED_SCHEMA = _core.SVN_ERR_SQLITE_UNSUPPORTED_SCHEMA SVN_ERR_CL_ARG_PARSING_ERROR = _core.SVN_ERR_CL_ARG_PARSING_ERROR SVN_ERR_CL_INSUFFICIENT_ARGS = _core.SVN_ERR_CL_INSUFFICIENT_ARGS SVN_ERR_CL_MUTUALLY_EXCLUSIVE_ARGS = _core.SVN_ERR_CL_MUTUALLY_EXCLUSIVE_ARGS SVN_ERR_CL_ADM_DIR_RESERVED = _core.SVN_ERR_CL_ADM_DIR_RESERVED SVN_ERR_CL_LOG_MESSAGE_IS_VERSIONED_FILE = _core.SVN_ERR_CL_LOG_MESSAGE_IS_VERSIONED_FILE SVN_ERR_CL_LOG_MESSAGE_IS_PATHNAME = _core.SVN_ERR_CL_LOG_MESSAGE_IS_PATHNAME SVN_ERR_CL_COMMIT_IN_ADDED_DIR = _core.SVN_ERR_CL_COMMIT_IN_ADDED_DIR SVN_ERR_CL_NO_EXTERNAL_EDITOR = _core.SVN_ERR_CL_NO_EXTERNAL_EDITOR SVN_ERR_CL_BAD_LOG_MESSAGE = _core.SVN_ERR_CL_BAD_LOG_MESSAGE SVN_ERR_CL_UNNECESSARY_LOG_MESSAGE = _core.SVN_ERR_CL_UNNECESSARY_LOG_MESSAGE SVN_ERR_CL_NO_EXTERNAL_MERGE_TOOL = _core.SVN_ERR_CL_NO_EXTERNAL_MERGE_TOOL SVN_ERR_ASSERTION_FAIL = _core.SVN_ERR_ASSERTION_FAIL SVN_ERR_LAST = _core.SVN_ERR_LAST def svn_time_to_cstring(*args): """svn_time_to_cstring(apr_time_t when, apr_pool_t pool) -> char""" return apply(_core.svn_time_to_cstring, args) def svn_time_from_cstring(*args): """svn_time_from_cstring(apr_time_t when, char data, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_time_from_cstring, args) def svn_time_to_human_cstring(*args): """svn_time_to_human_cstring(apr_time_t when, apr_pool_t pool) -> char""" return apply(_core.svn_time_to_human_cstring, args) def svn_parse_date(*args): """ svn_parse_date(svn_boolean_t matched, apr_time_t result, char text, apr_time_t now, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_parse_date, args) def svn_sleep_for_timestamps(*args): """svn_sleep_for_timestamps()""" return apply(_core.svn_sleep_for_timestamps, args) class svn_error_t: """Proxy of C svn_error_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_error_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_error_t, name) __repr__ = _swig_repr __swig_setmethods__["apr_err"] = _core.svn_error_t_apr_err_set __swig_getmethods__["apr_err"] = _core.svn_error_t_apr_err_get __swig_getmethods__["message"] = _core.svn_error_t_message_get __swig_setmethods__["child"] = _core.svn_error_t_child_set __swig_getmethods__["child"] = _core.svn_error_t_child_get __swig_setmethods__["pool"] = _core.svn_error_t_pool_set __swig_getmethods__["pool"] = _core.svn_error_t_pool_get __swig_getmethods__["file"] = _core.svn_error_t_file_get __swig_setmethods__["line"] = _core.svn_error_t_line_set __swig_getmethods__["line"] = _core.svn_error_t_line_get def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_error_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __init__(self, *args): """__init__(self) -> svn_error_t""" this = apply(_core.new_svn_error_t, args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _core.delete_svn_error_t __del__ = lambda self : None; svn_error_t_swigregister = _core.svn_error_t_swigregister svn_error_t_swigregister(svn_error_t) svn_node_none = _core.svn_node_none svn_node_file = _core.svn_node_file svn_node_dir = _core.svn_node_dir svn_node_unknown = _core.svn_node_unknown def svn_node_kind_to_word(*args): """svn_node_kind_to_word(svn_node_kind_t kind) -> char""" return apply(_core.svn_node_kind_to_word, args) def svn_node_kind_from_word(*args): """svn_node_kind_from_word(char word) -> svn_node_kind_t""" return apply(_core.svn_node_kind_from_word, args) def svn_revnum_parse(*args): """svn_revnum_parse(svn_revnum_t rev, char str, char endptr) -> svn_error_t""" return apply(_core.svn_revnum_parse, args) SVN_REVNUM_T_FMT = _core.SVN_REVNUM_T_FMT TRUE = _core.TRUE FALSE = _core.FALSE svn_nonrecursive = _core.svn_nonrecursive svn_recursive = _core.svn_recursive svn_depth_unknown = _core.svn_depth_unknown svn_depth_exclude = _core.svn_depth_exclude svn_depth_empty = _core.svn_depth_empty svn_depth_files = _core.svn_depth_files svn_depth_immediates = _core.svn_depth_immediates svn_depth_infinity = _core.svn_depth_infinity def svn_depth_to_word(*args): """svn_depth_to_word(svn_depth_t depth) -> char""" return apply(_core.svn_depth_to_word, args) def svn_depth_from_word(*args): """svn_depth_from_word(char word) -> svn_depth_t""" return apply(_core.svn_depth_from_word, args) SVN_DIRENT_KIND = _core.SVN_DIRENT_KIND SVN_DIRENT_SIZE = _core.SVN_DIRENT_SIZE SVN_DIRENT_HAS_PROPS = _core.SVN_DIRENT_HAS_PROPS SVN_DIRENT_CREATED_REV = _core.SVN_DIRENT_CREATED_REV SVN_DIRENT_TIME = _core.SVN_DIRENT_TIME SVN_DIRENT_LAST_AUTHOR = _core.SVN_DIRENT_LAST_AUTHOR class svn_dirent_t: """Proxy of C svn_dirent_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_dirent_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_dirent_t, name) __repr__ = _swig_repr __swig_setmethods__["kind"] = _core.svn_dirent_t_kind_set __swig_getmethods__["kind"] = _core.svn_dirent_t_kind_get __swig_setmethods__["size"] = _core.svn_dirent_t_size_set __swig_getmethods__["size"] = _core.svn_dirent_t_size_get __swig_setmethods__["has_props"] = _core.svn_dirent_t_has_props_set __swig_getmethods__["has_props"] = _core.svn_dirent_t_has_props_get __swig_setmethods__["created_rev"] = _core.svn_dirent_t_created_rev_set __swig_getmethods__["created_rev"] = _core.svn_dirent_t_created_rev_get __swig_setmethods__["time"] = _core.svn_dirent_t_time_set __swig_getmethods__["time"] = _core.svn_dirent_t_time_get __swig_getmethods__["last_author"] = _core.svn_dirent_t_last_author_get def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_dirent_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __init__(self, *args): """__init__(self) -> svn_dirent_t""" this = apply(_core.new_svn_dirent_t, args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _core.delete_svn_dirent_t __del__ = lambda self : None; svn_dirent_t_swigregister = _core.svn_dirent_t_swigregister svn_dirent_t_swigregister(svn_dirent_t) def svn_dirent_dup(*args): """svn_dirent_dup(svn_dirent_t dirent, apr_pool_t pool) -> svn_dirent_t""" return apply(_core.svn_dirent_dup, args) SVN_KEYWORD_MAX_LEN = _core.SVN_KEYWORD_MAX_LEN SVN_KEYWORD_REVISION_LONG = _core.SVN_KEYWORD_REVISION_LONG SVN_KEYWORD_REVISION_SHORT = _core.SVN_KEYWORD_REVISION_SHORT SVN_KEYWORD_REVISION_MEDIUM = _core.SVN_KEYWORD_REVISION_MEDIUM SVN_KEYWORD_DATE_LONG = _core.SVN_KEYWORD_DATE_LONG SVN_KEYWORD_DATE_SHORT = _core.SVN_KEYWORD_DATE_SHORT SVN_KEYWORD_AUTHOR_LONG = _core.SVN_KEYWORD_AUTHOR_LONG SVN_KEYWORD_AUTHOR_SHORT = _core.SVN_KEYWORD_AUTHOR_SHORT SVN_KEYWORD_URL_LONG = _core.SVN_KEYWORD_URL_LONG SVN_KEYWORD_URL_SHORT = _core.SVN_KEYWORD_URL_SHORT SVN_KEYWORD_ID = _core.SVN_KEYWORD_ID SVN_KEYWORD_HEADER = _core.SVN_KEYWORD_HEADER class svn_commit_info_t: """Proxy of C svn_commit_info_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_commit_info_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_commit_info_t, name) __repr__ = _swig_repr __swig_setmethods__["revision"] = _core.svn_commit_info_t_revision_set __swig_getmethods__["revision"] = _core.svn_commit_info_t_revision_get __swig_setmethods__["date"] = _core.svn_commit_info_t_date_set __swig_getmethods__["date"] = _core.svn_commit_info_t_date_get __swig_setmethods__["author"] = _core.svn_commit_info_t_author_set __swig_getmethods__["author"] = _core.svn_commit_info_t_author_get __swig_setmethods__["post_commit_err"] = _core.svn_commit_info_t_post_commit_err_set __swig_getmethods__["post_commit_err"] = _core.svn_commit_info_t_post_commit_err_get def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_commit_info_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __init__(self, *args): """__init__(self) -> svn_commit_info_t""" this = apply(_core.new_svn_commit_info_t, args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _core.delete_svn_commit_info_t __del__ = lambda self : None; svn_commit_info_t_swigregister = _core.svn_commit_info_t_swigregister svn_commit_info_t_swigregister(svn_commit_info_t) def svn_create_commit_info(*args): """svn_create_commit_info(apr_pool_t pool) -> svn_commit_info_t""" return apply(_core.svn_create_commit_info, args) def svn_commit_info_dup(*args): """svn_commit_info_dup(svn_commit_info_t src_commit_info, apr_pool_t pool) -> svn_commit_info_t""" return apply(_core.svn_commit_info_dup, args) class svn_log_changed_path2_t: """Proxy of C svn_log_changed_path2_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_log_changed_path2_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_log_changed_path2_t, name) __repr__ = _swig_repr __swig_setmethods__["action"] = _core.svn_log_changed_path2_t_action_set __swig_getmethods__["action"] = _core.svn_log_changed_path2_t_action_get __swig_setmethods__["copyfrom_path"] = _core.svn_log_changed_path2_t_copyfrom_path_set __swig_getmethods__["copyfrom_path"] = _core.svn_log_changed_path2_t_copyfrom_path_get __swig_setmethods__["copyfrom_rev"] = _core.svn_log_changed_path2_t_copyfrom_rev_set __swig_getmethods__["copyfrom_rev"] = _core.svn_log_changed_path2_t_copyfrom_rev_get __swig_setmethods__["node_kind"] = _core.svn_log_changed_path2_t_node_kind_set __swig_getmethods__["node_kind"] = _core.svn_log_changed_path2_t_node_kind_get def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_log_changed_path2_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __init__(self, *args): """__init__(self) -> svn_log_changed_path2_t""" this = apply(_core.new_svn_log_changed_path2_t, args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _core.delete_svn_log_changed_path2_t __del__ = lambda self : None; svn_log_changed_path2_t_swigregister = _core.svn_log_changed_path2_t_swigregister svn_log_changed_path2_t_swigregister(svn_log_changed_path2_t) def svn_log_changed_path2_create(*args): """svn_log_changed_path2_create(apr_pool_t pool) -> svn_log_changed_path2_t""" return apply(_core.svn_log_changed_path2_create, args) def svn_log_changed_path2_dup(*args): """svn_log_changed_path2_dup(svn_log_changed_path2_t changed_path, apr_pool_t pool) -> svn_log_changed_path2_t""" return apply(_core.svn_log_changed_path2_dup, args) class svn_log_changed_path_t: """Proxy of C svn_log_changed_path_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_log_changed_path_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_log_changed_path_t, name) __repr__ = _swig_repr __swig_setmethods__["action"] = _core.svn_log_changed_path_t_action_set __swig_getmethods__["action"] = _core.svn_log_changed_path_t_action_get __swig_getmethods__["copyfrom_path"] = _core.svn_log_changed_path_t_copyfrom_path_get __swig_setmethods__["copyfrom_rev"] = _core.svn_log_changed_path_t_copyfrom_rev_set __swig_getmethods__["copyfrom_rev"] = _core.svn_log_changed_path_t_copyfrom_rev_get def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_log_changed_path_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __init__(self, *args): """__init__(self) -> svn_log_changed_path_t""" this = apply(_core.new_svn_log_changed_path_t, args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _core.delete_svn_log_changed_path_t __del__ = lambda self : None; svn_log_changed_path_t_swigregister = _core.svn_log_changed_path_t_swigregister svn_log_changed_path_t_swigregister(svn_log_changed_path_t) def svn_log_changed_path_dup(*args): """svn_log_changed_path_dup(svn_log_changed_path_t changed_path, apr_pool_t pool) -> svn_log_changed_path_t""" return apply(_core.svn_log_changed_path_dup, args) class svn_log_entry_t: """Proxy of C svn_log_entry_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_log_entry_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_log_entry_t, name) __repr__ = _swig_repr __swig_setmethods__["changed_paths"] = _core.svn_log_entry_t_changed_paths_set __swig_getmethods__["changed_paths"] = _core.svn_log_entry_t_changed_paths_get __swig_setmethods__["revision"] = _core.svn_log_entry_t_revision_set __swig_getmethods__["revision"] = _core.svn_log_entry_t_revision_get __swig_setmethods__["revprops"] = _core.svn_log_entry_t_revprops_set __swig_getmethods__["revprops"] = _core.svn_log_entry_t_revprops_get __swig_setmethods__["has_children"] = _core.svn_log_entry_t_has_children_set __swig_getmethods__["has_children"] = _core.svn_log_entry_t_has_children_get __swig_setmethods__["changed_paths2"] = _core.svn_log_entry_t_changed_paths2_set __swig_getmethods__["changed_paths2"] = _core.svn_log_entry_t_changed_paths2_get def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_log_entry_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __init__(self, *args): """__init__(self) -> svn_log_entry_t""" this = apply(_core.new_svn_log_entry_t, args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _core.delete_svn_log_entry_t __del__ = lambda self : None; svn_log_entry_t_swigregister = _core.svn_log_entry_t_swigregister svn_log_entry_t_swigregister(svn_log_entry_t) def svn_log_entry_create(*args): """svn_log_entry_create(apr_pool_t pool) -> svn_log_entry_t""" return apply(_core.svn_log_entry_create, args) def svn_log_entry_dup(*args): """svn_log_entry_dup(svn_log_entry_t log_entry, apr_pool_t pool) -> svn_log_entry_t""" return apply(_core.svn_log_entry_dup, args) SVN_STREAM_CHUNK_SIZE = _core.SVN_STREAM_CHUNK_SIZE SVN__STREAM_CHUNK_SIZE = _core.SVN__STREAM_CHUNK_SIZE def svn_mime_type_validate(*args): """svn_mime_type_validate(char mime_type, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_mime_type_validate, args) def svn_mime_type_is_binary(*args): """svn_mime_type_is_binary(char mime_type) -> svn_boolean_t""" return apply(_core.svn_mime_type_is_binary, args) class svn_lock_t: """Proxy of C svn_lock_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_lock_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_lock_t, name) __repr__ = _swig_repr __swig_setmethods__["path"] = _core.svn_lock_t_path_set __swig_getmethods__["path"] = _core.svn_lock_t_path_get __swig_setmethods__["token"] = _core.svn_lock_t_token_set __swig_getmethods__["token"] = _core.svn_lock_t_token_get __swig_setmethods__["owner"] = _core.svn_lock_t_owner_set __swig_getmethods__["owner"] = _core.svn_lock_t_owner_get __swig_setmethods__["comment"] = _core.svn_lock_t_comment_set __swig_getmethods__["comment"] = _core.svn_lock_t_comment_get __swig_setmethods__["is_dav_comment"] = _core.svn_lock_t_is_dav_comment_set __swig_getmethods__["is_dav_comment"] = _core.svn_lock_t_is_dav_comment_get __swig_setmethods__["creation_date"] = _core.svn_lock_t_creation_date_set __swig_getmethods__["creation_date"] = _core.svn_lock_t_creation_date_get __swig_setmethods__["expiration_date"] = _core.svn_lock_t_expiration_date_set __swig_getmethods__["expiration_date"] = _core.svn_lock_t_expiration_date_get def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_lock_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __init__(self, *args): """__init__(self) -> svn_lock_t""" this = apply(_core.new_svn_lock_t, args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _core.delete_svn_lock_t __del__ = lambda self : None; svn_lock_t_swigregister = _core.svn_lock_t_swigregister svn_lock_t_swigregister(svn_lock_t) def svn_lock_create(*args): """svn_lock_create(apr_pool_t pool) -> svn_lock_t""" return apply(_core.svn_lock_create, args) def svn_lock_dup(*args): """svn_lock_dup(svn_lock_t lock, apr_pool_t pool) -> svn_lock_t""" return apply(_core.svn_lock_dup, args) def svn_uuid_generate(*args): """svn_uuid_generate(apr_pool_t pool) -> char""" return apply(_core.svn_uuid_generate, args) class svn_merge_range_t: """Proxy of C svn_merge_range_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_merge_range_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_merge_range_t, name) __repr__ = _swig_repr __swig_setmethods__["start"] = _core.svn_merge_range_t_start_set __swig_getmethods__["start"] = _core.svn_merge_range_t_start_get __swig_setmethods__["end"] = _core.svn_merge_range_t_end_set __swig_getmethods__["end"] = _core.svn_merge_range_t_end_get __swig_setmethods__["inheritable"] = _core.svn_merge_range_t_inheritable_set __swig_getmethods__["inheritable"] = _core.svn_merge_range_t_inheritable_get def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_merge_range_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __init__(self, *args): """__init__(self) -> svn_merge_range_t""" this = apply(_core.new_svn_merge_range_t, args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _core.delete_svn_merge_range_t __del__ = lambda self : None; svn_merge_range_t_swigregister = _core.svn_merge_range_t_swigregister svn_merge_range_t_swigregister(svn_merge_range_t) def svn_merge_range_dup(*args): """svn_merge_range_dup(svn_merge_range_t range, apr_pool_t pool) -> svn_merge_range_t""" return apply(_core.svn_merge_range_dup, args) def svn_merge_range_contains_rev(*args): """svn_merge_range_contains_rev(svn_merge_range_t range, svn_revnum_t rev) -> svn_boolean_t""" return apply(_core.svn_merge_range_contains_rev, args) class svn_location_segment_t: """Proxy of C svn_location_segment_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_location_segment_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_location_segment_t, name) __repr__ = _swig_repr __swig_setmethods__["range_start"] = _core.svn_location_segment_t_range_start_set __swig_getmethods__["range_start"] = _core.svn_location_segment_t_range_start_get __swig_setmethods__["range_end"] = _core.svn_location_segment_t_range_end_set __swig_getmethods__["range_end"] = _core.svn_location_segment_t_range_end_get __swig_setmethods__["path"] = _core.svn_location_segment_t_path_set __swig_getmethods__["path"] = _core.svn_location_segment_t_path_get def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_location_segment_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __init__(self, *args): """__init__(self) -> svn_location_segment_t""" this = apply(_core.new_svn_location_segment_t, args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _core.delete_svn_location_segment_t __del__ = lambda self : None; svn_location_segment_t_swigregister = _core.svn_location_segment_t_swigregister svn_location_segment_t_swigregister(svn_location_segment_t) def svn_location_segment_dup(*args): """svn_location_segment_dup(svn_location_segment_t segment, apr_pool_t pool) -> svn_location_segment_t""" return apply(_core.svn_location_segment_dup, args) def svn_log_invoke_entry_receiver(*args): """ svn_log_invoke_entry_receiver(svn_log_entry_receiver_t _obj, void baton, svn_log_entry_t log_entry, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_log_invoke_entry_receiver, args) def svn_log_invoke_message_receiver(*args): """ svn_log_invoke_message_receiver(svn_log_message_receiver_t _obj, void baton, apr_hash_t changed_paths, svn_revnum_t revision, char author, char date, char message, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_log_invoke_message_receiver, args) def svn_commit_invoke_callback2(*args): """ svn_commit_invoke_callback2(svn_commit_callback2_t _obj, svn_commit_info_t commit_info, void baton, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_commit_invoke_callback2, args) def svn_commit_invoke_callback(*args): """ svn_commit_invoke_callback(svn_commit_callback_t _obj, svn_revnum_t new_revision, char date, char author, void baton) -> svn_error_t """ return apply(_core.svn_commit_invoke_callback, args) def svn_cancel_invoke_func(*args): """svn_cancel_invoke_func(svn_cancel_func_t _obj, void cancel_baton) -> svn_error_t""" return apply(_core.svn_cancel_invoke_func, args) def svn_location_invoke_segment_receiver(*args): """ svn_location_invoke_segment_receiver(svn_location_segment_receiver_t _obj, svn_location_segment_t segment, void baton, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_location_invoke_segment_receiver, args) class svn_log_entry_receiver_t: """Proxy of C svn_log_entry_receiver_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_log_entry_receiver_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_log_entry_receiver_t, name) def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_log_entry_receiver_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __call__(self, *args): return svn_log_invoke_entry_receiver(self, *args) svn_log_entry_receiver_t_swigregister = _core.svn_log_entry_receiver_t_swigregister svn_log_entry_receiver_t_swigregister(svn_log_entry_receiver_t) class svn_log_message_receiver_t: """Proxy of C svn_log_message_receiver_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_log_message_receiver_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_log_message_receiver_t, name) def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_log_message_receiver_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __call__(self, *args): return svn_log_invoke_message_receiver(self, *args) svn_log_message_receiver_t_swigregister = _core.svn_log_message_receiver_t_swigregister svn_log_message_receiver_t_swigregister(svn_log_message_receiver_t) class svn_commit_callback2_t: """Proxy of C svn_commit_callback2_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_commit_callback2_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_commit_callback2_t, name) def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_commit_callback2_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __call__(self, *args): return svn_commit_invoke_callback2(self, *args) svn_commit_callback2_t_swigregister = _core.svn_commit_callback2_t_swigregister svn_commit_callback2_t_swigregister(svn_commit_callback2_t) class svn_commit_callback_t: """Proxy of C svn_commit_callback_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_commit_callback_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_commit_callback_t, name) def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_commit_callback_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __call__(self, *args): return svn_commit_invoke_callback(self, *args) svn_commit_callback_t_swigregister = _core.svn_commit_callback_t_swigregister svn_commit_callback_t_swigregister(svn_commit_callback_t) class svn_cancel_func_t: """Proxy of C svn_cancel_func_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_cancel_func_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_cancel_func_t, name) def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_cancel_func_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __call__(self, *args): return svn_cancel_invoke_func(self, *args) svn_cancel_func_t_swigregister = _core.svn_cancel_func_t_swigregister svn_cancel_func_t_swigregister(svn_cancel_func_t) class svn_location_segment_receiver_t: """Proxy of C svn_location_segment_receiver_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_location_segment_receiver_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_location_segment_receiver_t, name) def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_location_segment_receiver_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __call__(self, *args): return svn_location_invoke_segment_receiver(self, *args) svn_location_segment_receiver_t_swigregister = _core.svn_location_segment_receiver_t_swigregister svn_location_segment_receiver_t_swigregister(svn_location_segment_receiver_t) SVN_ALLOCATOR_RECOMMENDED_MAX_FREE = _core.SVN_ALLOCATOR_RECOMMENDED_MAX_FREE def svn_pool_create(*args): """svn_pool_create(apr_pool_t parent_pool, apr_allocator_t allocator) -> apr_pool_t""" return apply(_core.svn_pool_create, args) SVN_VER_MAJOR = _core.SVN_VER_MAJOR SVN_VER_MINOR = _core.SVN_VER_MINOR SVN_VER_PATCH = _core.SVN_VER_PATCH SVN_VER_MICRO = _core.SVN_VER_MICRO SVN_VER_LIBRARY = _core.SVN_VER_LIBRARY SVN_VER_TAG = _core.SVN_VER_TAG SVN_VER_NUMTAG = _core.SVN_VER_NUMTAG SVN_VER_REVISION = _core.SVN_VER_REVISION class svn_version_t: """Proxy of C svn_version_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_version_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_version_t, name) __repr__ = _swig_repr __swig_setmethods__["major"] = _core.svn_version_t_major_set __swig_getmethods__["major"] = _core.svn_version_t_major_get __swig_setmethods__["minor"] = _core.svn_version_t_minor_set __swig_getmethods__["minor"] = _core.svn_version_t_minor_get __swig_setmethods__["patch"] = _core.svn_version_t_patch_set __swig_getmethods__["patch"] = _core.svn_version_t_patch_get __swig_setmethods__["tag"] = _core.svn_version_t_tag_set __swig_getmethods__["tag"] = _core.svn_version_t_tag_get def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_version_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __init__(self, *args): """__init__(self) -> svn_version_t""" this = apply(_core.new_svn_version_t, args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _core.delete_svn_version_t __del__ = lambda self : None; svn_version_t_swigregister = _core.svn_version_t_swigregister svn_version_t_swigregister(svn_version_t) def svn_ver_compatible(*args): """svn_ver_compatible(svn_version_t my_version, svn_version_t lib_version) -> svn_boolean_t""" return apply(_core.svn_ver_compatible, args) def svn_ver_equal(*args): """svn_ver_equal(svn_version_t my_version, svn_version_t lib_version) -> svn_boolean_t""" return apply(_core.svn_ver_equal, args) class svn_version_checklist_t: """Proxy of C svn_version_checklist_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_version_checklist_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_version_checklist_t, name) __repr__ = _swig_repr __swig_setmethods__["label"] = _core.svn_version_checklist_t_label_set __swig_getmethods__["label"] = _core.svn_version_checklist_t_label_get __swig_setmethods__["version_query"] = _core.svn_version_checklist_t_version_query_set __swig_getmethods__["version_query"] = _core.svn_version_checklist_t_version_query_get def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_version_checklist_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def version_query(self, *args): return svn_version_checklist_invoke_version_query(self, *args) def __init__(self, *args): """__init__(self) -> svn_version_checklist_t""" this = apply(_core.new_svn_version_checklist_t, args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _core.delete_svn_version_checklist_t __del__ = lambda self : None; svn_version_checklist_t_swigregister = _core.svn_version_checklist_t_swigregister svn_version_checklist_t_swigregister(svn_version_checklist_t) def svn_ver_check_list(*args): """svn_ver_check_list(svn_version_t my_version, svn_version_checklist_t checklist) -> svn_error_t""" return apply(_core.svn_ver_check_list, args) def svn_subr_version(*args): """svn_subr_version() -> svn_version_t""" return apply(_core.svn_subr_version, args) def svn_version_checklist_invoke_version_query(*args): """svn_version_checklist_invoke_version_query(svn_version_checklist_t _obj) -> svn_version_t""" return apply(_core.svn_version_checklist_invoke_version_query, args) def svn_version_invoke_func(*args): """svn_version_invoke_func(svn_version_func_t _obj) -> svn_version_t""" return apply(_core.svn_version_invoke_func, args) class svn_version_func_t: """Proxy of C svn_version_func_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_version_func_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_version_func_t, name) def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_version_func_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __call__(self, *args): return svn_version_invoke_func(self, *args) svn_version_func_t_swigregister = _core.svn_version_func_t_swigregister svn_version_func_t_swigregister(svn_version_func_t) def svn_prop_dup(*args): """svn_prop_dup( prop, apr_pool_t pool)""" return apply(_core.svn_prop_dup, args) def svn_prop_array_dup(*args): """svn_prop_array_dup(apr_array_header_t array, apr_pool_t pool) -> apr_array_header_t""" return apply(_core.svn_prop_array_dup, args) def svn_prop_hash_to_array(*args): """svn_prop_hash_to_array(apr_hash_t hash, apr_pool_t pool) -> apr_array_header_t""" return apply(_core.svn_prop_hash_to_array, args) def svn_prop_hash_dup(*args): """svn_prop_hash_dup(apr_hash_t hash, apr_pool_t pool) -> apr_hash_t""" return apply(_core.svn_prop_hash_dup, args) svn_prop_entry_kind = _core.svn_prop_entry_kind svn_prop_wc_kind = _core.svn_prop_wc_kind svn_prop_regular_kind = _core.svn_prop_regular_kind def svn_property_kind(*args): """svn_property_kind(int prefix_len, char prop_name)""" return apply(_core.svn_property_kind, args) def svn_prop_is_svn_prop(*args): """svn_prop_is_svn_prop(char prop_name) -> svn_boolean_t""" return apply(_core.svn_prop_is_svn_prop, args) def svn_prop_has_svn_prop(*args): """svn_prop_has_svn_prop(apr_hash_t props, apr_pool_t pool) -> svn_boolean_t""" return apply(_core.svn_prop_has_svn_prop, args) def svn_prop_is_boolean(*args): """svn_prop_is_boolean(char prop_name) -> svn_boolean_t""" return apply(_core.svn_prop_is_boolean, args) def svn_prop_needs_translation(*args): """svn_prop_needs_translation(char prop_name) -> svn_boolean_t""" return apply(_core.svn_prop_needs_translation, args) def svn_categorize_props(*args): """ svn_categorize_props(apr_array_header_t proplist, apr_array_header_t entry_props, apr_array_header_t wc_props, apr_array_header_t regular_props, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_categorize_props, args) def svn_prop_diffs(*args): """ svn_prop_diffs(apr_array_header_t propdiffs, apr_hash_t target_props, apr_hash_t source_props, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_prop_diffs, args) def svn_prop_name_is_valid(*args): """svn_prop_name_is_valid(char prop_name) -> svn_boolean_t""" return apply(_core.svn_prop_name_is_valid, args) SVN_PROP_PREFIX = _core.SVN_PROP_PREFIX SVN_PROP_BOOLEAN_TRUE = _core.SVN_PROP_BOOLEAN_TRUE SVN_PROP_MIME_TYPE = _core.SVN_PROP_MIME_TYPE SVN_PROP_IGNORE = _core.SVN_PROP_IGNORE SVN_PROP_EOL_STYLE = _core.SVN_PROP_EOL_STYLE SVN_PROP_KEYWORDS = _core.SVN_PROP_KEYWORDS SVN_PROP_EXECUTABLE = _core.SVN_PROP_EXECUTABLE SVN_PROP_EXECUTABLE_VALUE = _core.SVN_PROP_EXECUTABLE_VALUE SVN_PROP_NEEDS_LOCK = _core.SVN_PROP_NEEDS_LOCK SVN_PROP_NEEDS_LOCK_VALUE = _core.SVN_PROP_NEEDS_LOCK_VALUE SVN_PROP_SPECIAL = _core.SVN_PROP_SPECIAL SVN_PROP_SPECIAL_VALUE = _core.SVN_PROP_SPECIAL_VALUE SVN_PROP_EXTERNALS = _core.SVN_PROP_EXTERNALS SVN_PROP_MERGEINFO = _core.SVN_PROP_MERGEINFO SVN_PROP_TEXT_TIME = _core.SVN_PROP_TEXT_TIME SVN_PROP_OWNER = _core.SVN_PROP_OWNER SVN_PROP_GROUP = _core.SVN_PROP_GROUP SVN_PROP_UNIX_MODE = _core.SVN_PROP_UNIX_MODE SVN_PROP_WC_PREFIX = _core.SVN_PROP_WC_PREFIX SVN_PROP_ENTRY_PREFIX = _core.SVN_PROP_ENTRY_PREFIX SVN_PROP_ENTRY_COMMITTED_REV = _core.SVN_PROP_ENTRY_COMMITTED_REV SVN_PROP_ENTRY_COMMITTED_DATE = _core.SVN_PROP_ENTRY_COMMITTED_DATE SVN_PROP_ENTRY_LAST_AUTHOR = _core.SVN_PROP_ENTRY_LAST_AUTHOR SVN_PROP_ENTRY_UUID = _core.SVN_PROP_ENTRY_UUID SVN_PROP_ENTRY_LOCK_TOKEN = _core.SVN_PROP_ENTRY_LOCK_TOKEN SVN_PROP_CUSTOM_PREFIX = _core.SVN_PROP_CUSTOM_PREFIX SVN_PROP_REVISION_AUTHOR = _core.SVN_PROP_REVISION_AUTHOR SVN_PROP_REVISION_LOG = _core.SVN_PROP_REVISION_LOG SVN_PROP_REVISION_DATE = _core.SVN_PROP_REVISION_DATE SVN_PROP_REVISION_ORIG_DATE = _core.SVN_PROP_REVISION_ORIG_DATE SVN_PROP_REVISION_AUTOVERSIONED = _core.SVN_PROP_REVISION_AUTOVERSIONED SVNSYNC_PROP_PREFIX = _core.SVNSYNC_PROP_PREFIX SVNSYNC_PROP_LOCK = _core.SVNSYNC_PROP_LOCK SVNSYNC_PROP_FROM_URL = _core.SVNSYNC_PROP_FROM_URL SVNSYNC_PROP_FROM_UUID = _core.SVNSYNC_PROP_FROM_UUID SVNSYNC_PROP_LAST_MERGED_REV = _core.SVNSYNC_PROP_LAST_MERGED_REV SVNSYNC_PROP_CURRENTLY_COPYING = _core.SVNSYNC_PROP_CURRENTLY_COPYING SVN_OPT_MAX_ALIASES = _core.SVN_OPT_MAX_ALIASES SVN_OPT_MAX_OPTIONS = _core.SVN_OPT_MAX_OPTIONS SVN_OPT_FIRST_LONGOPT_ID = _core.SVN_OPT_FIRST_LONGOPT_ID class svn_opt_subcommand_desc2_t: """Proxy of C svn_opt_subcommand_desc2_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_opt_subcommand_desc2_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_opt_subcommand_desc2_t, name) __repr__ = _swig_repr __swig_setmethods__["name"] = _core.svn_opt_subcommand_desc2_t_name_set __swig_getmethods__["name"] = _core.svn_opt_subcommand_desc2_t_name_get __swig_setmethods__["cmd_func"] = _core.svn_opt_subcommand_desc2_t_cmd_func_set __swig_getmethods__["cmd_func"] = _core.svn_opt_subcommand_desc2_t_cmd_func_get __swig_setmethods__["aliases"] = _core.svn_opt_subcommand_desc2_t_aliases_set __swig_getmethods__["aliases"] = _core.svn_opt_subcommand_desc2_t_aliases_get __swig_setmethods__["help"] = _core.svn_opt_subcommand_desc2_t_help_set __swig_getmethods__["help"] = _core.svn_opt_subcommand_desc2_t_help_get __swig_setmethods__["valid_options"] = _core.svn_opt_subcommand_desc2_t_valid_options_set __swig_getmethods__["valid_options"] = _core.svn_opt_subcommand_desc2_t_valid_options_get __swig_getmethods__["desc_overrides"] = _core.svn_opt_subcommand_desc2_t_desc_overrides_get def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_opt_subcommand_desc2_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __init__(self, *args): """__init__(self) -> svn_opt_subcommand_desc2_t""" this = apply(_core.new_svn_opt_subcommand_desc2_t, args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _core.delete_svn_opt_subcommand_desc2_t __del__ = lambda self : None; svn_opt_subcommand_desc2_t_swigregister = _core.svn_opt_subcommand_desc2_t_swigregister svn_opt_subcommand_desc2_t_swigregister(svn_opt_subcommand_desc2_t) class svn_opt_subcommand_desc2_t_desc_overrides: """Proxy of C svn_opt_subcommand_desc2_t_desc_overrides struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_opt_subcommand_desc2_t_desc_overrides, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_opt_subcommand_desc2_t_desc_overrides, name) __repr__ = _swig_repr __swig_setmethods__["optch"] = _core.svn_opt_subcommand_desc2_t_desc_overrides_optch_set __swig_getmethods__["optch"] = _core.svn_opt_subcommand_desc2_t_desc_overrides_optch_get __swig_setmethods__["desc"] = _core.svn_opt_subcommand_desc2_t_desc_overrides_desc_set __swig_getmethods__["desc"] = _core.svn_opt_subcommand_desc2_t_desc_overrides_desc_get def __init__(self, *args): """__init__(self) -> svn_opt_subcommand_desc2_t_desc_overrides""" this = apply(_core.new_svn_opt_subcommand_desc2_t_desc_overrides, args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _core.delete_svn_opt_subcommand_desc2_t_desc_overrides __del__ = lambda self : None; svn_opt_subcommand_desc2_t_desc_overrides_swigregister = _core.svn_opt_subcommand_desc2_t_desc_overrides_swigregister svn_opt_subcommand_desc2_t_desc_overrides_swigregister(svn_opt_subcommand_desc2_t_desc_overrides) class svn_opt_subcommand_desc_t: """Proxy of C svn_opt_subcommand_desc_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_opt_subcommand_desc_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_opt_subcommand_desc_t, name) __repr__ = _swig_repr __swig_setmethods__["name"] = _core.svn_opt_subcommand_desc_t_name_set __swig_getmethods__["name"] = _core.svn_opt_subcommand_desc_t_name_get __swig_setmethods__["cmd_func"] = _core.svn_opt_subcommand_desc_t_cmd_func_set __swig_getmethods__["cmd_func"] = _core.svn_opt_subcommand_desc_t_cmd_func_get __swig_setmethods__["aliases"] = _core.svn_opt_subcommand_desc_t_aliases_set __swig_getmethods__["aliases"] = _core.svn_opt_subcommand_desc_t_aliases_get __swig_setmethods__["help"] = _core.svn_opt_subcommand_desc_t_help_set __swig_getmethods__["help"] = _core.svn_opt_subcommand_desc_t_help_get __swig_setmethods__["valid_options"] = _core.svn_opt_subcommand_desc_t_valid_options_set __swig_getmethods__["valid_options"] = _core.svn_opt_subcommand_desc_t_valid_options_get def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_opt_subcommand_desc_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __init__(self, *args): """__init__(self) -> svn_opt_subcommand_desc_t""" this = apply(_core.new_svn_opt_subcommand_desc_t, args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _core.delete_svn_opt_subcommand_desc_t __del__ = lambda self : None; svn_opt_subcommand_desc_t_swigregister = _core.svn_opt_subcommand_desc_t_swigregister svn_opt_subcommand_desc_t_swigregister(svn_opt_subcommand_desc_t) def svn_opt_get_canonical_subcommand2(*args): """svn_opt_get_canonical_subcommand2(svn_opt_subcommand_desc2_t table, char cmd_name) -> svn_opt_subcommand_desc2_t""" return apply(_core.svn_opt_get_canonical_subcommand2, args) def svn_opt_get_canonical_subcommand(*args): """svn_opt_get_canonical_subcommand(svn_opt_subcommand_desc_t table, char cmd_name) -> svn_opt_subcommand_desc_t""" return apply(_core.svn_opt_get_canonical_subcommand, args) def svn_opt_get_option_from_code2(*args): """ svn_opt_get_option_from_code2(int code, apr_getopt_option_t option_table, svn_opt_subcommand_desc2_t command, apr_pool_t pool) -> apr_getopt_option_t """ return apply(_core.svn_opt_get_option_from_code2, args) def svn_opt_get_option_from_code(*args): """svn_opt_get_option_from_code(int code, apr_getopt_option_t option_table) -> apr_getopt_option_t""" return apply(_core.svn_opt_get_option_from_code, args) def svn_opt_subcommand_takes_option3(*args): """ svn_opt_subcommand_takes_option3(svn_opt_subcommand_desc2_t command, int option_code, int global_options) -> svn_boolean_t """ return apply(_core.svn_opt_subcommand_takes_option3, args) def svn_opt_subcommand_takes_option2(*args): """svn_opt_subcommand_takes_option2(svn_opt_subcommand_desc2_t command, int option_code) -> svn_boolean_t""" return apply(_core.svn_opt_subcommand_takes_option2, args) def svn_opt_subcommand_takes_option(*args): """svn_opt_subcommand_takes_option(svn_opt_subcommand_desc_t command, int option_code) -> svn_boolean_t""" return apply(_core.svn_opt_subcommand_takes_option, args) def svn_opt_print_generic_help2(*args): """ svn_opt_print_generic_help2(char header, svn_opt_subcommand_desc2_t cmd_table, apr_getopt_option_t opt_table, char footer, apr_pool_t pool, FILE stream) """ return apply(_core.svn_opt_print_generic_help2, args) def svn_opt_format_option(*args): """ svn_opt_format_option(char string, apr_getopt_option_t opt, svn_boolean_t doc, apr_pool_t pool) """ return apply(_core.svn_opt_format_option, args) def svn_opt_subcommand_help3(*args): """ svn_opt_subcommand_help3(char subcommand, svn_opt_subcommand_desc2_t table, apr_getopt_option_t options_table, int global_options, apr_pool_t pool) """ return apply(_core.svn_opt_subcommand_help3, args) def svn_opt_subcommand_help2(*args): """ svn_opt_subcommand_help2(char subcommand, svn_opt_subcommand_desc2_t table, apr_getopt_option_t options_table, apr_pool_t pool) """ return apply(_core.svn_opt_subcommand_help2, args) def svn_opt_subcommand_help(*args): """ svn_opt_subcommand_help(char subcommand, svn_opt_subcommand_desc_t table, apr_getopt_option_t options_table, apr_pool_t pool) """ return apply(_core.svn_opt_subcommand_help, args) svn_opt_revision_unspecified = _core.svn_opt_revision_unspecified svn_opt_revision_number = _core.svn_opt_revision_number svn_opt_revision_date = _core.svn_opt_revision_date svn_opt_revision_committed = _core.svn_opt_revision_committed svn_opt_revision_previous = _core.svn_opt_revision_previous svn_opt_revision_base = _core.svn_opt_revision_base svn_opt_revision_working = _core.svn_opt_revision_working svn_opt_revision_head = _core.svn_opt_revision_head class svn_opt_revision_value_t: """Proxy of C svn_opt_revision_value_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_opt_revision_value_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_opt_revision_value_t, name) __repr__ = _swig_repr __swig_setmethods__["number"] = _core.svn_opt_revision_value_t_number_set __swig_getmethods__["number"] = _core.svn_opt_revision_value_t_number_get __swig_setmethods__["date"] = _core.svn_opt_revision_value_t_date_set __swig_getmethods__["date"] = _core.svn_opt_revision_value_t_date_get def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_opt_revision_value_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __init__(self, *args): """__init__(self) -> svn_opt_revision_value_t""" this = apply(_core.new_svn_opt_revision_value_t, args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _core.delete_svn_opt_revision_value_t __del__ = lambda self : None; svn_opt_revision_value_t_swigregister = _core.svn_opt_revision_value_t_swigregister svn_opt_revision_value_t_swigregister(svn_opt_revision_value_t) class svn_opt_revision_t: """Proxy of C svn_opt_revision_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_opt_revision_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_opt_revision_t, name) __repr__ = _swig_repr __swig_setmethods__["kind"] = _core.svn_opt_revision_t_kind_set __swig_getmethods__["kind"] = _core.svn_opt_revision_t_kind_get __swig_setmethods__["value"] = _core.svn_opt_revision_t_value_set __swig_getmethods__["value"] = _core.svn_opt_revision_t_value_get def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_opt_revision_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __init__(self, *args): """__init__(self) -> svn_opt_revision_t""" this = apply(_core.new_svn_opt_revision_t, args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _core.delete_svn_opt_revision_t __del__ = lambda self : None; svn_opt_revision_t_swigregister = _core.svn_opt_revision_t_swigregister svn_opt_revision_t_swigregister(svn_opt_revision_t) class svn_opt_revision_range_t: """Proxy of C svn_opt_revision_range_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_opt_revision_range_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_opt_revision_range_t, name) __repr__ = _swig_repr __swig_setmethods__["start"] = _core.svn_opt_revision_range_t_start_set __swig_getmethods__["start"] = _core.svn_opt_revision_range_t_start_get __swig_setmethods__["end"] = _core.svn_opt_revision_range_t_end_set __swig_getmethods__["end"] = _core.svn_opt_revision_range_t_end_get def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_opt_revision_range_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __init__(self, *args): """__init__(self) -> svn_opt_revision_range_t""" this = apply(_core.new_svn_opt_revision_range_t, args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _core.delete_svn_opt_revision_range_t __del__ = lambda self : None; svn_opt_revision_range_t_swigregister = _core.svn_opt_revision_range_t_swigregister svn_opt_revision_range_t_swigregister(svn_opt_revision_range_t) def svn_opt_parse_revision(*args): """ svn_opt_parse_revision(svn_opt_revision_t start_revision, svn_opt_revision_t end_revision, char arg, apr_pool_t pool) -> int """ return apply(_core.svn_opt_parse_revision, args) def svn_opt_parse_revision_to_range(*args): """svn_opt_parse_revision_to_range(apr_array_header_t opt_ranges, char arg, apr_pool_t pool) -> int""" return apply(_core.svn_opt_parse_revision_to_range, args) def svn_opt_resolve_revisions(*args): """ svn_opt_resolve_revisions(svn_opt_revision_t peg_rev, svn_opt_revision_t op_rev, svn_boolean_t is_url, svn_boolean_t notice_local_mods, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_opt_resolve_revisions, args) def svn_opt_args_to_target_array3(*args): """ svn_opt_args_to_target_array3(apr_array_header_t targets_p, apr_getopt_t os, apr_array_header_t known_targets, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_opt_args_to_target_array3, args) def svn_opt_args_to_target_array2(*args): """ svn_opt_args_to_target_array2(apr_array_header_t targets_p, apr_getopt_t os, apr_array_header_t known_targets, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_opt_args_to_target_array2, args) def svn_opt_parse_revprop(*args): """svn_opt_parse_revprop(apr_hash_t revprops, char revprop_spec, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_opt_parse_revprop, args) def svn_opt_push_implicit_dot_target(*args): """svn_opt_push_implicit_dot_target(apr_array_header_t targets, apr_pool_t pool)""" return apply(_core.svn_opt_push_implicit_dot_target, args) def svn_opt_parse_num_args(*args): """ svn_opt_parse_num_args(apr_array_header_t args_p, apr_getopt_t os, int num_args, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_opt_parse_num_args, args) def svn_opt_parse_all_args(*args): """svn_opt_parse_all_args(apr_array_header_t args_p, apr_getopt_t os, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_opt_parse_all_args, args) def svn_opt_parse_path(*args): """svn_opt_parse_path(svn_opt_revision_t rev, char truepath, char path, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_opt_parse_path, args) def svn_opt_print_help3(*args): """ svn_opt_print_help3(apr_getopt_t os, char pgm_name, svn_boolean_t print_version, svn_boolean_t quiet, char version_footer, char header, svn_opt_subcommand_desc2_t cmd_table, apr_getopt_option_t option_table, int global_options, char footer, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_opt_print_help3, args) def svn_opt_print_help2(*args): """ svn_opt_print_help2(apr_getopt_t os, char pgm_name, svn_boolean_t print_version, svn_boolean_t quiet, char version_footer, char header, svn_opt_subcommand_desc2_t cmd_table, apr_getopt_option_t option_table, char footer, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_opt_print_help2, args) def svn_opt_print_help(*args): """ svn_opt_print_help(apr_getopt_t os, char pgm_name, svn_boolean_t print_version, svn_boolean_t quiet, char version_footer, char header, svn_opt_subcommand_desc_t cmd_table, apr_getopt_option_t option_table, char footer, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_opt_print_help, args) class svn_auth_provider_t: """Proxy of C svn_auth_provider_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_auth_provider_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_auth_provider_t, name) __repr__ = _swig_repr __swig_setmethods__["cred_kind"] = _core.svn_auth_provider_t_cred_kind_set __swig_getmethods__["cred_kind"] = _core.svn_auth_provider_t_cred_kind_get __swig_setmethods__["first_credentials"] = _core.svn_auth_provider_t_first_credentials_set __swig_getmethods__["first_credentials"] = _core.svn_auth_provider_t_first_credentials_get __swig_setmethods__["next_credentials"] = _core.svn_auth_provider_t_next_credentials_set __swig_getmethods__["next_credentials"] = _core.svn_auth_provider_t_next_credentials_get __swig_setmethods__["save_credentials"] = _core.svn_auth_provider_t_save_credentials_set __swig_getmethods__["save_credentials"] = _core.svn_auth_provider_t_save_credentials_get def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_auth_provider_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def first_credentials(self, *args): return svn_auth_provider_invoke_first_credentials(self, *args) def next_credentials(self, *args): return svn_auth_provider_invoke_next_credentials(self, *args) def save_credentials(self, *args): return svn_auth_provider_invoke_save_credentials(self, *args) def __init__(self, *args): """__init__(self) -> svn_auth_provider_t""" this = apply(_core.new_svn_auth_provider_t, args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _core.delete_svn_auth_provider_t __del__ = lambda self : None; svn_auth_provider_t_swigregister = _core.svn_auth_provider_t_swigregister svn_auth_provider_t_swigregister(svn_auth_provider_t) class svn_auth_provider_object_t: """Proxy of C svn_auth_provider_object_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_auth_provider_object_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_auth_provider_object_t, name) __repr__ = _swig_repr __swig_setmethods__["vtable"] = _core.svn_auth_provider_object_t_vtable_set __swig_getmethods__["vtable"] = _core.svn_auth_provider_object_t_vtable_get __swig_setmethods__["provider_baton"] = _core.svn_auth_provider_object_t_provider_baton_set __swig_getmethods__["provider_baton"] = _core.svn_auth_provider_object_t_provider_baton_get def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_auth_provider_object_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __init__(self, *args): """__init__(self) -> svn_auth_provider_object_t""" this = apply(_core.new_svn_auth_provider_object_t, args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _core.delete_svn_auth_provider_object_t __del__ = lambda self : None; svn_auth_provider_object_t_swigregister = _core.svn_auth_provider_object_t_swigregister svn_auth_provider_object_t_swigregister(svn_auth_provider_object_t) SVN_AUTH_CRED_SIMPLE = _core.SVN_AUTH_CRED_SIMPLE class svn_auth_cred_simple_t: """Proxy of C svn_auth_cred_simple_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_auth_cred_simple_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_auth_cred_simple_t, name) __repr__ = _swig_repr __swig_setmethods__["username"] = _core.svn_auth_cred_simple_t_username_set __swig_getmethods__["username"] = _core.svn_auth_cred_simple_t_username_get __swig_setmethods__["password"] = _core.svn_auth_cred_simple_t_password_set __swig_getmethods__["password"] = _core.svn_auth_cred_simple_t_password_get __swig_setmethods__["may_save"] = _core.svn_auth_cred_simple_t_may_save_set __swig_getmethods__["may_save"] = _core.svn_auth_cred_simple_t_may_save_get def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_auth_cred_simple_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __init__(self, *args): """__init__(self) -> svn_auth_cred_simple_t""" this = apply(_core.new_svn_auth_cred_simple_t, args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _core.delete_svn_auth_cred_simple_t __del__ = lambda self : None; svn_auth_cred_simple_t_swigregister = _core.svn_auth_cred_simple_t_swigregister svn_auth_cred_simple_t_swigregister(svn_auth_cred_simple_t) SVN_AUTH_CRED_USERNAME = _core.SVN_AUTH_CRED_USERNAME class svn_auth_cred_username_t: """Proxy of C svn_auth_cred_username_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_auth_cred_username_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_auth_cred_username_t, name) __repr__ = _swig_repr __swig_setmethods__["username"] = _core.svn_auth_cred_username_t_username_set __swig_getmethods__["username"] = _core.svn_auth_cred_username_t_username_get __swig_setmethods__["may_save"] = _core.svn_auth_cred_username_t_may_save_set __swig_getmethods__["may_save"] = _core.svn_auth_cred_username_t_may_save_get def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_auth_cred_username_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __init__(self, *args): """__init__(self) -> svn_auth_cred_username_t""" this = apply(_core.new_svn_auth_cred_username_t, args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _core.delete_svn_auth_cred_username_t __del__ = lambda self : None; svn_auth_cred_username_t_swigregister = _core.svn_auth_cred_username_t_swigregister svn_auth_cred_username_t_swigregister(svn_auth_cred_username_t) SVN_AUTH_CRED_SSL_CLIENT_CERT = _core.SVN_AUTH_CRED_SSL_CLIENT_CERT class svn_auth_cred_ssl_client_cert_t: """Proxy of C svn_auth_cred_ssl_client_cert_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_auth_cred_ssl_client_cert_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_auth_cred_ssl_client_cert_t, name) __repr__ = _swig_repr __swig_setmethods__["cert_file"] = _core.svn_auth_cred_ssl_client_cert_t_cert_file_set __swig_getmethods__["cert_file"] = _core.svn_auth_cred_ssl_client_cert_t_cert_file_get __swig_setmethods__["may_save"] = _core.svn_auth_cred_ssl_client_cert_t_may_save_set __swig_getmethods__["may_save"] = _core.svn_auth_cred_ssl_client_cert_t_may_save_get def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_auth_cred_ssl_client_cert_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __init__(self, *args): """__init__(self) -> svn_auth_cred_ssl_client_cert_t""" this = apply(_core.new_svn_auth_cred_ssl_client_cert_t, args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _core.delete_svn_auth_cred_ssl_client_cert_t __del__ = lambda self : None; svn_auth_cred_ssl_client_cert_t_swigregister = _core.svn_auth_cred_ssl_client_cert_t_swigregister svn_auth_cred_ssl_client_cert_t_swigregister(svn_auth_cred_ssl_client_cert_t) SVN_AUTH_CRED_SSL_CLIENT_CERT_PW = _core.SVN_AUTH_CRED_SSL_CLIENT_CERT_PW class svn_auth_cred_ssl_client_cert_pw_t: """Proxy of C svn_auth_cred_ssl_client_cert_pw_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_auth_cred_ssl_client_cert_pw_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_auth_cred_ssl_client_cert_pw_t, name) __repr__ = _swig_repr __swig_setmethods__["password"] = _core.svn_auth_cred_ssl_client_cert_pw_t_password_set __swig_getmethods__["password"] = _core.svn_auth_cred_ssl_client_cert_pw_t_password_get __swig_setmethods__["may_save"] = _core.svn_auth_cred_ssl_client_cert_pw_t_may_save_set __swig_getmethods__["may_save"] = _core.svn_auth_cred_ssl_client_cert_pw_t_may_save_get def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_auth_cred_ssl_client_cert_pw_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __init__(self, *args): """__init__(self) -> svn_auth_cred_ssl_client_cert_pw_t""" this = apply(_core.new_svn_auth_cred_ssl_client_cert_pw_t, args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _core.delete_svn_auth_cred_ssl_client_cert_pw_t __del__ = lambda self : None; svn_auth_cred_ssl_client_cert_pw_t_swigregister = _core.svn_auth_cred_ssl_client_cert_pw_t_swigregister svn_auth_cred_ssl_client_cert_pw_t_swigregister(svn_auth_cred_ssl_client_cert_pw_t) SVN_AUTH_CRED_SSL_SERVER_TRUST = _core.SVN_AUTH_CRED_SSL_SERVER_TRUST class svn_auth_ssl_server_cert_info_t: """Proxy of C svn_auth_ssl_server_cert_info_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_auth_ssl_server_cert_info_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_auth_ssl_server_cert_info_t, name) __repr__ = _swig_repr __swig_setmethods__["hostname"] = _core.svn_auth_ssl_server_cert_info_t_hostname_set __swig_getmethods__["hostname"] = _core.svn_auth_ssl_server_cert_info_t_hostname_get __swig_setmethods__["fingerprint"] = _core.svn_auth_ssl_server_cert_info_t_fingerprint_set __swig_getmethods__["fingerprint"] = _core.svn_auth_ssl_server_cert_info_t_fingerprint_get __swig_setmethods__["valid_from"] = _core.svn_auth_ssl_server_cert_info_t_valid_from_set __swig_getmethods__["valid_from"] = _core.svn_auth_ssl_server_cert_info_t_valid_from_get __swig_setmethods__["valid_until"] = _core.svn_auth_ssl_server_cert_info_t_valid_until_set __swig_getmethods__["valid_until"] = _core.svn_auth_ssl_server_cert_info_t_valid_until_get __swig_setmethods__["issuer_dname"] = _core.svn_auth_ssl_server_cert_info_t_issuer_dname_set __swig_getmethods__["issuer_dname"] = _core.svn_auth_ssl_server_cert_info_t_issuer_dname_get __swig_setmethods__["ascii_cert"] = _core.svn_auth_ssl_server_cert_info_t_ascii_cert_set __swig_getmethods__["ascii_cert"] = _core.svn_auth_ssl_server_cert_info_t_ascii_cert_get def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_auth_ssl_server_cert_info_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __init__(self, *args): """__init__(self) -> svn_auth_ssl_server_cert_info_t""" this = apply(_core.new_svn_auth_ssl_server_cert_info_t, args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _core.delete_svn_auth_ssl_server_cert_info_t __del__ = lambda self : None; svn_auth_ssl_server_cert_info_t_swigregister = _core.svn_auth_ssl_server_cert_info_t_swigregister svn_auth_ssl_server_cert_info_t_swigregister(svn_auth_ssl_server_cert_info_t) def svn_auth_ssl_server_cert_info_dup(*args): """svn_auth_ssl_server_cert_info_dup(svn_auth_ssl_server_cert_info_t info, apr_pool_t pool) -> svn_auth_ssl_server_cert_info_t""" return apply(_core.svn_auth_ssl_server_cert_info_dup, args) class svn_auth_cred_ssl_server_trust_t: """Proxy of C svn_auth_cred_ssl_server_trust_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_auth_cred_ssl_server_trust_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_auth_cred_ssl_server_trust_t, name) __repr__ = _swig_repr __swig_setmethods__["may_save"] = _core.svn_auth_cred_ssl_server_trust_t_may_save_set __swig_getmethods__["may_save"] = _core.svn_auth_cred_ssl_server_trust_t_may_save_get __swig_setmethods__["accepted_failures"] = _core.svn_auth_cred_ssl_server_trust_t_accepted_failures_set __swig_getmethods__["accepted_failures"] = _core.svn_auth_cred_ssl_server_trust_t_accepted_failures_get def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_auth_cred_ssl_server_trust_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __init__(self, *args): """__init__(self) -> svn_auth_cred_ssl_server_trust_t""" this = apply(_core.new_svn_auth_cred_ssl_server_trust_t, args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _core.delete_svn_auth_cred_ssl_server_trust_t __del__ = lambda self : None; svn_auth_cred_ssl_server_trust_t_swigregister = _core.svn_auth_cred_ssl_server_trust_t_swigregister svn_auth_cred_ssl_server_trust_t_swigregister(svn_auth_cred_ssl_server_trust_t) SVN_AUTH_SSL_NOTYETVALID = _core.SVN_AUTH_SSL_NOTYETVALID SVN_AUTH_SSL_EXPIRED = _core.SVN_AUTH_SSL_EXPIRED SVN_AUTH_SSL_CNMISMATCH = _core.SVN_AUTH_SSL_CNMISMATCH SVN_AUTH_SSL_UNKNOWNCA = _core.SVN_AUTH_SSL_UNKNOWNCA SVN_AUTH_SSL_OTHER = _core.SVN_AUTH_SSL_OTHER def svn_auth_open(*args): """ svn_auth_open(svn_auth_baton_t auth_baton, apr_array_header_t providers, apr_pool_t pool) """ return apply(_core.svn_auth_open, args) def svn_auth_set_parameter(*args): """svn_auth_set_parameter(svn_auth_baton_t auth_baton, char name, void value)""" return apply(_core.svn_auth_set_parameter, args) SVN_AUTH_PARAM_PREFIX = _core.SVN_AUTH_PARAM_PREFIX SVN_AUTH_PARAM_DEFAULT_USERNAME = _core.SVN_AUTH_PARAM_DEFAULT_USERNAME SVN_AUTH_PARAM_DEFAULT_PASSWORD = _core.SVN_AUTH_PARAM_DEFAULT_PASSWORD SVN_AUTH_PARAM_NON_INTERACTIVE = _core.SVN_AUTH_PARAM_NON_INTERACTIVE SVN_AUTH_PARAM_DONT_STORE_PASSWORDS = _core.SVN_AUTH_PARAM_DONT_STORE_PASSWORDS SVN_AUTH_PARAM_STORE_PLAINTEXT_PASSWORDS = _core.SVN_AUTH_PARAM_STORE_PLAINTEXT_PASSWORDS SVN_AUTH_PARAM_DONT_STORE_SSL_CLIENT_CERT_PP = _core.SVN_AUTH_PARAM_DONT_STORE_SSL_CLIENT_CERT_PP SVN_AUTH_PARAM_STORE_SSL_CLIENT_CERT_PP_PLAINTEXT = _core.SVN_AUTH_PARAM_STORE_SSL_CLIENT_CERT_PP_PLAINTEXT SVN_AUTH_PARAM_NO_AUTH_CACHE = _core.SVN_AUTH_PARAM_NO_AUTH_CACHE SVN_AUTH_PARAM_SSL_SERVER_FAILURES = _core.SVN_AUTH_PARAM_SSL_SERVER_FAILURES SVN_AUTH_PARAM_SSL_SERVER_CERT_INFO = _core.SVN_AUTH_PARAM_SSL_SERVER_CERT_INFO SVN_AUTH_PARAM_CONFIG_CATEGORY_CONFIG = _core.SVN_AUTH_PARAM_CONFIG_CATEGORY_CONFIG SVN_AUTH_PARAM_CONFIG_CATEGORY_SERVERS = _core.SVN_AUTH_PARAM_CONFIG_CATEGORY_SERVERS SVN_AUTH_PARAM_CONFIG = _core.SVN_AUTH_PARAM_CONFIG SVN_AUTH_PARAM_SERVER_GROUP = _core.SVN_AUTH_PARAM_SERVER_GROUP SVN_AUTH_PARAM_CONFIG_DIR = _core.SVN_AUTH_PARAM_CONFIG_DIR def svn_auth_first_credentials(*args): """ svn_auth_first_credentials(void credentials, svn_auth_iterstate_t state, char cred_kind, char realmstring, svn_auth_baton_t auth_baton, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_auth_first_credentials, args) def svn_auth_next_credentials(*args): """svn_auth_next_credentials(void credentials, svn_auth_iterstate_t state, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_auth_next_credentials, args) def svn_auth_save_credentials(*args): """svn_auth_save_credentials(svn_auth_iterstate_t state, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_auth_save_credentials, args) def svn_auth_get_simple_prompt_provider(*args): """ svn_auth_get_simple_prompt_provider(svn_auth_provider_object_t provider, svn_auth_simple_prompt_func_t prompt_func, int retry_limit, apr_pool_t pool) """ return apply(_core.svn_auth_get_simple_prompt_provider, args) def svn_auth_get_username_prompt_provider(*args): """ svn_auth_get_username_prompt_provider(svn_auth_provider_object_t provider, svn_auth_username_prompt_func_t prompt_func, int retry_limit, apr_pool_t pool) """ return apply(_core.svn_auth_get_username_prompt_provider, args) def svn_auth_get_simple_provider2(*args): """ svn_auth_get_simple_provider2(svn_auth_provider_object_t provider, svn_auth_plaintext_prompt_func_t plaintext_prompt_func, void prompt_baton, apr_pool_t pool) """ return apply(_core.svn_auth_get_simple_provider2, args) def svn_auth_get_simple_provider(*args): """svn_auth_get_simple_provider(svn_auth_provider_object_t provider, apr_pool_t pool)""" return apply(_core.svn_auth_get_simple_provider, args) def svn_auth_get_platform_specific_provider(*args): """ svn_auth_get_platform_specific_provider(svn_auth_provider_object_t provider, char provider_name, char provider_type, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_auth_get_platform_specific_provider, args) def svn_auth_get_platform_specific_client_providers(*args): """ svn_auth_get_platform_specific_client_providers(apr_array_header_t providers, svn_config_t config, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_auth_get_platform_specific_client_providers, args) SVN_AUTH_PARAM_GNOME_KEYRING_UNLOCK_PROMPT_FUNC = _core.SVN_AUTH_PARAM_GNOME_KEYRING_UNLOCK_PROMPT_FUNC SVN_AUTH_PARAM_GNOME_KEYRING_UNLOCK_PROMPT_BATON = _core.SVN_AUTH_PARAM_GNOME_KEYRING_UNLOCK_PROMPT_BATON def svn_auth_get_username_provider(*args): """svn_auth_get_username_provider(svn_auth_provider_object_t provider, apr_pool_t pool)""" return apply(_core.svn_auth_get_username_provider, args) def svn_auth_get_ssl_server_trust_file_provider(*args): """svn_auth_get_ssl_server_trust_file_provider(svn_auth_provider_object_t provider, apr_pool_t pool)""" return apply(_core.svn_auth_get_ssl_server_trust_file_provider, args) def svn_auth_get_ssl_client_cert_file_provider(*args): """svn_auth_get_ssl_client_cert_file_provider(svn_auth_provider_object_t provider, apr_pool_t pool)""" return apply(_core.svn_auth_get_ssl_client_cert_file_provider, args) def svn_auth_get_ssl_client_cert_pw_file_provider2(*args): """ svn_auth_get_ssl_client_cert_pw_file_provider2(svn_auth_provider_object_t provider, svn_auth_plaintext_passphrase_prompt_func_t plaintext_passphrase_prompt_func, void prompt_baton, apr_pool_t pool) """ return apply(_core.svn_auth_get_ssl_client_cert_pw_file_provider2, args) def svn_auth_get_ssl_client_cert_pw_file_provider(*args): """svn_auth_get_ssl_client_cert_pw_file_provider(svn_auth_provider_object_t provider, apr_pool_t pool)""" return apply(_core.svn_auth_get_ssl_client_cert_pw_file_provider, args) def svn_auth_get_ssl_server_trust_prompt_provider(*args): """ svn_auth_get_ssl_server_trust_prompt_provider(svn_auth_provider_object_t provider, svn_auth_ssl_server_trust_prompt_func_t prompt_func, apr_pool_t pool) """ return apply(_core.svn_auth_get_ssl_server_trust_prompt_provider, args) def svn_auth_get_ssl_client_cert_prompt_provider(*args): """ svn_auth_get_ssl_client_cert_prompt_provider(svn_auth_provider_object_t provider, svn_auth_ssl_client_cert_prompt_func_t prompt_func, int retry_limit, apr_pool_t pool) """ return apply(_core.svn_auth_get_ssl_client_cert_prompt_provider, args) def svn_auth_get_ssl_client_cert_pw_prompt_provider(*args): """ svn_auth_get_ssl_client_cert_pw_prompt_provider(svn_auth_provider_object_t provider, svn_auth_ssl_client_cert_pw_prompt_func_t prompt_func, int retry_limit, apr_pool_t pool) """ return apply(_core.svn_auth_get_ssl_client_cert_pw_prompt_provider, args) class svn_auth_baton_t: """Proxy of C svn_auth_baton_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_auth_baton_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_auth_baton_t, name) def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_auth_baton_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) svn_auth_baton_t_swigregister = _core.svn_auth_baton_t_swigregister svn_auth_baton_t_swigregister(svn_auth_baton_t) class svn_auth_iterstate_t: """Proxy of C svn_auth_iterstate_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_auth_iterstate_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_auth_iterstate_t, name) def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_auth_iterstate_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) svn_auth_iterstate_t_swigregister = _core.svn_auth_iterstate_t_swigregister svn_auth_iterstate_t_swigregister(svn_auth_iterstate_t) def svn_auth_provider_invoke_first_credentials(*args): """ svn_auth_provider_invoke_first_credentials(svn_auth_provider_t _obj, void credentials, void iter_baton, void provider_baton, apr_hash_t parameters, char realmstring, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_auth_provider_invoke_first_credentials, args) def svn_auth_provider_invoke_next_credentials(*args): """ svn_auth_provider_invoke_next_credentials(svn_auth_provider_t _obj, void credentials, void iter_baton, void provider_baton, apr_hash_t parameters, char realmstring, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_auth_provider_invoke_next_credentials, args) def svn_auth_provider_invoke_save_credentials(*args): """ svn_auth_provider_invoke_save_credentials(svn_auth_provider_t _obj, svn_boolean_t saved, void credentials, void provider_baton, apr_hash_t parameters, char realmstring, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_auth_provider_invoke_save_credentials, args) def svn_auth_invoke_simple_provider_func(*args): """ svn_auth_invoke_simple_provider_func(svn_auth_simple_provider_func_t _obj, svn_auth_provider_object_t provider, apr_pool_t pool) """ return apply(_core.svn_auth_invoke_simple_provider_func, args) def svn_auth_invoke_ssl_client_cert_pw_provider_func(*args): """ svn_auth_invoke_ssl_client_cert_pw_provider_func(svn_auth_ssl_client_cert_pw_provider_func_t _obj, svn_auth_provider_object_t provider, apr_pool_t pool) """ return apply(_core.svn_auth_invoke_ssl_client_cert_pw_provider_func, args) def svn_auth_invoke_simple_prompt_func(*args): """ svn_auth_invoke_simple_prompt_func(svn_auth_simple_prompt_func_t _obj, svn_auth_cred_simple_t cred, void baton, char realm, char username, svn_boolean_t may_save, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_auth_invoke_simple_prompt_func, args) def svn_auth_invoke_username_prompt_func(*args): """ svn_auth_invoke_username_prompt_func(svn_auth_username_prompt_func_t _obj, svn_auth_cred_username_t cred, void baton, char realm, svn_boolean_t may_save, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_auth_invoke_username_prompt_func, args) def svn_auth_invoke_ssl_server_trust_prompt_func(*args): """ svn_auth_invoke_ssl_server_trust_prompt_func(svn_auth_ssl_server_trust_prompt_func_t _obj, svn_auth_cred_ssl_server_trust_t cred, void baton, char realm, apr_uint32_t failures, svn_auth_ssl_server_cert_info_t cert_info, svn_boolean_t may_save, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_auth_invoke_ssl_server_trust_prompt_func, args) def svn_auth_invoke_ssl_client_cert_prompt_func(*args): """ svn_auth_invoke_ssl_client_cert_prompt_func(svn_auth_ssl_client_cert_prompt_func_t _obj, svn_auth_cred_ssl_client_cert_t cred, void baton, char realm, svn_boolean_t may_save, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_auth_invoke_ssl_client_cert_prompt_func, args) def svn_auth_invoke_ssl_client_cert_pw_prompt_func(*args): """ svn_auth_invoke_ssl_client_cert_pw_prompt_func(svn_auth_ssl_client_cert_pw_prompt_func_t _obj, svn_auth_cred_ssl_client_cert_pw_t cred, void baton, char realm, svn_boolean_t may_save, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_auth_invoke_ssl_client_cert_pw_prompt_func, args) def svn_auth_invoke_plaintext_prompt_func(*args): """ svn_auth_invoke_plaintext_prompt_func(svn_auth_plaintext_prompt_func_t _obj, svn_boolean_t may_save_plaintext, char realmstring, void baton, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_auth_invoke_plaintext_prompt_func, args) def svn_auth_invoke_plaintext_passphrase_prompt_func(*args): """ svn_auth_invoke_plaintext_passphrase_prompt_func(svn_auth_plaintext_passphrase_prompt_func_t _obj, svn_boolean_t may_save_plaintext, char realmstring, void baton, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_auth_invoke_plaintext_passphrase_prompt_func, args) class svn_auth_simple_provider_func_t: """Proxy of C svn_auth_simple_provider_func_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_auth_simple_provider_func_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_auth_simple_provider_func_t, name) def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_auth_simple_provider_func_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __call__(self, *args): return svn_auth_invoke_simple_provider_func(self, *args) svn_auth_simple_provider_func_t_swigregister = _core.svn_auth_simple_provider_func_t_swigregister svn_auth_simple_provider_func_t_swigregister(svn_auth_simple_provider_func_t) class svn_auth_ssl_client_cert_pw_provider_func_t: """Proxy of C svn_auth_ssl_client_cert_pw_provider_func_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_auth_ssl_client_cert_pw_provider_func_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_auth_ssl_client_cert_pw_provider_func_t, name) def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_auth_ssl_client_cert_pw_provider_func_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __call__(self, *args): return svn_auth_invoke_ssl_client_cert_pw_provider_func(self, *args) svn_auth_ssl_client_cert_pw_provider_func_t_swigregister = _core.svn_auth_ssl_client_cert_pw_provider_func_t_swigregister svn_auth_ssl_client_cert_pw_provider_func_t_swigregister(svn_auth_ssl_client_cert_pw_provider_func_t) class svn_auth_simple_prompt_func_t: """Proxy of C svn_auth_simple_prompt_func_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_auth_simple_prompt_func_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_auth_simple_prompt_func_t, name) def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_auth_simple_prompt_func_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __call__(self, *args): return svn_auth_invoke_simple_prompt_func(self, *args) svn_auth_simple_prompt_func_t_swigregister = _core.svn_auth_simple_prompt_func_t_swigregister svn_auth_simple_prompt_func_t_swigregister(svn_auth_simple_prompt_func_t) class svn_auth_username_prompt_func_t: """Proxy of C svn_auth_username_prompt_func_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_auth_username_prompt_func_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_auth_username_prompt_func_t, name) def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_auth_username_prompt_func_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __call__(self, *args): return svn_auth_invoke_username_prompt_func(self, *args) svn_auth_username_prompt_func_t_swigregister = _core.svn_auth_username_prompt_func_t_swigregister svn_auth_username_prompt_func_t_swigregister(svn_auth_username_prompt_func_t) class svn_auth_ssl_server_trust_prompt_func_t: """Proxy of C svn_auth_ssl_server_trust_prompt_func_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_auth_ssl_server_trust_prompt_func_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_auth_ssl_server_trust_prompt_func_t, name) def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_auth_ssl_server_trust_prompt_func_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __call__(self, *args): return svn_auth_invoke_ssl_server_trust_prompt_func(self, *args) svn_auth_ssl_server_trust_prompt_func_t_swigregister = _core.svn_auth_ssl_server_trust_prompt_func_t_swigregister svn_auth_ssl_server_trust_prompt_func_t_swigregister(svn_auth_ssl_server_trust_prompt_func_t) class svn_auth_ssl_client_cert_prompt_func_t: """Proxy of C svn_auth_ssl_client_cert_prompt_func_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_auth_ssl_client_cert_prompt_func_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_auth_ssl_client_cert_prompt_func_t, name) def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_auth_ssl_client_cert_prompt_func_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __call__(self, *args): return svn_auth_invoke_ssl_client_cert_prompt_func(self, *args) svn_auth_ssl_client_cert_prompt_func_t_swigregister = _core.svn_auth_ssl_client_cert_prompt_func_t_swigregister svn_auth_ssl_client_cert_prompt_func_t_swigregister(svn_auth_ssl_client_cert_prompt_func_t) class svn_auth_ssl_client_cert_pw_prompt_func_t: """Proxy of C svn_auth_ssl_client_cert_pw_prompt_func_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_auth_ssl_client_cert_pw_prompt_func_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_auth_ssl_client_cert_pw_prompt_func_t, name) def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_auth_ssl_client_cert_pw_prompt_func_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __call__(self, *args): return svn_auth_invoke_ssl_client_cert_pw_prompt_func(self, *args) svn_auth_ssl_client_cert_pw_prompt_func_t_swigregister = _core.svn_auth_ssl_client_cert_pw_prompt_func_t_swigregister svn_auth_ssl_client_cert_pw_prompt_func_t_swigregister(svn_auth_ssl_client_cert_pw_prompt_func_t) class svn_auth_plaintext_prompt_func_t: """Proxy of C svn_auth_plaintext_prompt_func_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_auth_plaintext_prompt_func_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_auth_plaintext_prompt_func_t, name) def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_auth_plaintext_prompt_func_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __call__(self, *args): return svn_auth_invoke_plaintext_prompt_func(self, *args) svn_auth_plaintext_prompt_func_t_swigregister = _core.svn_auth_plaintext_prompt_func_t_swigregister svn_auth_plaintext_prompt_func_t_swigregister(svn_auth_plaintext_prompt_func_t) class svn_auth_plaintext_passphrase_prompt_func_t: """Proxy of C svn_auth_plaintext_passphrase_prompt_func_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_auth_plaintext_passphrase_prompt_func_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_auth_plaintext_passphrase_prompt_func_t, name) def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_auth_plaintext_passphrase_prompt_func_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __call__(self, *args): return svn_auth_invoke_plaintext_passphrase_prompt_func(self, *args) svn_auth_plaintext_passphrase_prompt_func_t_swigregister = _core.svn_auth_plaintext_passphrase_prompt_func_t_swigregister svn_auth_plaintext_passphrase_prompt_func_t_swigregister(svn_auth_plaintext_passphrase_prompt_func_t) class svn_auth_gnome_keyring_unlock_prompt_func_t: """Proxy of C svn_auth_gnome_keyring_unlock_prompt_func_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_auth_gnome_keyring_unlock_prompt_func_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_auth_gnome_keyring_unlock_prompt_func_t, name) def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_auth_gnome_keyring_unlock_prompt_func_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __call__(self, *args): return svn_auth_invoke_gnome_keyring_unlock_prompt_func(self, *args) svn_auth_gnome_keyring_unlock_prompt_func_t_swigregister = _core.svn_auth_gnome_keyring_unlock_prompt_func_t_swigregister svn_auth_gnome_keyring_unlock_prompt_func_t_swigregister(svn_auth_gnome_keyring_unlock_prompt_func_t) SVN_CONFIG_CATEGORY_SERVERS = _core.SVN_CONFIG_CATEGORY_SERVERS SVN_CONFIG_SECTION_GROUPS = _core.SVN_CONFIG_SECTION_GROUPS SVN_CONFIG_SECTION_GLOBAL = _core.SVN_CONFIG_SECTION_GLOBAL SVN_CONFIG_OPTION_HTTP_PROXY_HOST = _core.SVN_CONFIG_OPTION_HTTP_PROXY_HOST SVN_CONFIG_OPTION_HTTP_PROXY_PORT = _core.SVN_CONFIG_OPTION_HTTP_PROXY_PORT SVN_CONFIG_OPTION_HTTP_PROXY_USERNAME = _core.SVN_CONFIG_OPTION_HTTP_PROXY_USERNAME SVN_CONFIG_OPTION_HTTP_PROXY_PASSWORD = _core.SVN_CONFIG_OPTION_HTTP_PROXY_PASSWORD SVN_CONFIG_OPTION_HTTP_PROXY_EXCEPTIONS = _core.SVN_CONFIG_OPTION_HTTP_PROXY_EXCEPTIONS SVN_CONFIG_OPTION_HTTP_TIMEOUT = _core.SVN_CONFIG_OPTION_HTTP_TIMEOUT SVN_CONFIG_OPTION_HTTP_COMPRESSION = _core.SVN_CONFIG_OPTION_HTTP_COMPRESSION SVN_CONFIG_OPTION_NEON_DEBUG_MASK = _core.SVN_CONFIG_OPTION_NEON_DEBUG_MASK SVN_CONFIG_OPTION_HTTP_AUTH_TYPES = _core.SVN_CONFIG_OPTION_HTTP_AUTH_TYPES SVN_CONFIG_OPTION_SSL_AUTHORITY_FILES = _core.SVN_CONFIG_OPTION_SSL_AUTHORITY_FILES SVN_CONFIG_OPTION_SSL_TRUST_DEFAULT_CA = _core.SVN_CONFIG_OPTION_SSL_TRUST_DEFAULT_CA SVN_CONFIG_OPTION_SSL_CLIENT_CERT_FILE = _core.SVN_CONFIG_OPTION_SSL_CLIENT_CERT_FILE SVN_CONFIG_OPTION_SSL_CLIENT_CERT_PASSWORD = _core.SVN_CONFIG_OPTION_SSL_CLIENT_CERT_PASSWORD SVN_CONFIG_OPTION_SSL_PKCS11_PROVIDER = _core.SVN_CONFIG_OPTION_SSL_PKCS11_PROVIDER SVN_CONFIG_OPTION_HTTP_LIBRARY = _core.SVN_CONFIG_OPTION_HTTP_LIBRARY SVN_CONFIG_OPTION_STORE_PASSWORDS = _core.SVN_CONFIG_OPTION_STORE_PASSWORDS SVN_CONFIG_OPTION_STORE_PLAINTEXT_PASSWORDS = _core.SVN_CONFIG_OPTION_STORE_PLAINTEXT_PASSWORDS SVN_CONFIG_OPTION_STORE_AUTH_CREDS = _core.SVN_CONFIG_OPTION_STORE_AUTH_CREDS SVN_CONFIG_OPTION_STORE_SSL_CLIENT_CERT_PP = _core.SVN_CONFIG_OPTION_STORE_SSL_CLIENT_CERT_PP SVN_CONFIG_OPTION_STORE_SSL_CLIENT_CERT_PP_PLAINTEXT = _core.SVN_CONFIG_OPTION_STORE_SSL_CLIENT_CERT_PP_PLAINTEXT SVN_CONFIG_OPTION_USERNAME = _core.SVN_CONFIG_OPTION_USERNAME SVN_CONFIG_CATEGORY_CONFIG = _core.SVN_CONFIG_CATEGORY_CONFIG SVN_CONFIG_SECTION_AUTH = _core.SVN_CONFIG_SECTION_AUTH SVN_CONFIG_OPTION_PASSWORD_STORES = _core.SVN_CONFIG_OPTION_PASSWORD_STORES SVN_CONFIG_OPTION_KWALLET_WALLET = _core.SVN_CONFIG_OPTION_KWALLET_WALLET SVN_CONFIG_OPTION_KWALLET_SVN_APPLICATION_NAME_WITH_PID = _core.SVN_CONFIG_OPTION_KWALLET_SVN_APPLICATION_NAME_WITH_PID SVN_CONFIG_SECTION_HELPERS = _core.SVN_CONFIG_SECTION_HELPERS SVN_CONFIG_OPTION_EDITOR_CMD = _core.SVN_CONFIG_OPTION_EDITOR_CMD SVN_CONFIG_OPTION_DIFF_CMD = _core.SVN_CONFIG_OPTION_DIFF_CMD SVN_CONFIG_OPTION_DIFF3_CMD = _core.SVN_CONFIG_OPTION_DIFF3_CMD SVN_CONFIG_OPTION_DIFF3_HAS_PROGRAM_ARG = _core.SVN_CONFIG_OPTION_DIFF3_HAS_PROGRAM_ARG SVN_CONFIG_OPTION_MERGE_TOOL_CMD = _core.SVN_CONFIG_OPTION_MERGE_TOOL_CMD SVN_CONFIG_SECTION_MISCELLANY = _core.SVN_CONFIG_SECTION_MISCELLANY SVN_CONFIG_OPTION_GLOBAL_IGNORES = _core.SVN_CONFIG_OPTION_GLOBAL_IGNORES SVN_CONFIG_OPTION_LOG_ENCODING = _core.SVN_CONFIG_OPTION_LOG_ENCODING SVN_CONFIG_OPTION_USE_COMMIT_TIMES = _core.SVN_CONFIG_OPTION_USE_COMMIT_TIMES SVN_CONFIG_OPTION_TEMPLATE_ROOT = _core.SVN_CONFIG_OPTION_TEMPLATE_ROOT SVN_CONFIG_OPTION_ENABLE_AUTO_PROPS = _core.SVN_CONFIG_OPTION_ENABLE_AUTO_PROPS SVN_CONFIG_OPTION_NO_UNLOCK = _core.SVN_CONFIG_OPTION_NO_UNLOCK SVN_CONFIG_OPTION_MIMETYPES_FILE = _core.SVN_CONFIG_OPTION_MIMETYPES_FILE SVN_CONFIG_OPTION_PRESERVED_CF_EXTS = _core.SVN_CONFIG_OPTION_PRESERVED_CF_EXTS SVN_CONFIG_OPTION_INTERACTIVE_CONFLICTS = _core.SVN_CONFIG_OPTION_INTERACTIVE_CONFLICTS SVN_CONFIG_SECTION_TUNNELS = _core.SVN_CONFIG_SECTION_TUNNELS SVN_CONFIG_SECTION_AUTO_PROPS = _core.SVN_CONFIG_SECTION_AUTO_PROPS SVN_CONFIG_SECTION_GENERAL = _core.SVN_CONFIG_SECTION_GENERAL SVN_CONFIG_OPTION_ANON_ACCESS = _core.SVN_CONFIG_OPTION_ANON_ACCESS SVN_CONFIG_OPTION_AUTH_ACCESS = _core.SVN_CONFIG_OPTION_AUTH_ACCESS SVN_CONFIG_OPTION_PASSWORD_DB = _core.SVN_CONFIG_OPTION_PASSWORD_DB SVN_CONFIG_OPTION_REALM = _core.SVN_CONFIG_OPTION_REALM SVN_CONFIG_OPTION_AUTHZ_DB = _core.SVN_CONFIG_OPTION_AUTHZ_DB SVN_CONFIG_SECTION_SASL = _core.SVN_CONFIG_SECTION_SASL SVN_CONFIG_OPTION_USE_SASL = _core.SVN_CONFIG_OPTION_USE_SASL SVN_CONFIG_OPTION_MIN_SSF = _core.SVN_CONFIG_OPTION_MIN_SSF SVN_CONFIG_OPTION_MAX_SSF = _core.SVN_CONFIG_OPTION_MAX_SSF SVN_CONFIG_SECTION_USERS = _core.SVN_CONFIG_SECTION_USERS SVN_CONFIG__DEFAULT_GLOBAL_IGNORES_LINE_1 = _core.SVN_CONFIG__DEFAULT_GLOBAL_IGNORES_LINE_1 SVN_CONFIG__DEFAULT_GLOBAL_IGNORES_LINE_2 = _core.SVN_CONFIG__DEFAULT_GLOBAL_IGNORES_LINE_2 SVN_CONFIG_DEFAULT_GLOBAL_IGNORES = _core.SVN_CONFIG_DEFAULT_GLOBAL_IGNORES SVN_CONFIG_TRUE = _core.SVN_CONFIG_TRUE SVN_CONFIG_FALSE = _core.SVN_CONFIG_FALSE SVN_CONFIG_ASK = _core.SVN_CONFIG_ASK SVN_CONFIG_DEFAULT_OPTION_STORE_PASSWORDS = _core.SVN_CONFIG_DEFAULT_OPTION_STORE_PASSWORDS SVN_CONFIG_DEFAULT_OPTION_STORE_PLAINTEXT_PASSWORDS = _core.SVN_CONFIG_DEFAULT_OPTION_STORE_PLAINTEXT_PASSWORDS SVN_CONFIG_DEFAULT_OPTION_STORE_AUTH_CREDS = _core.SVN_CONFIG_DEFAULT_OPTION_STORE_AUTH_CREDS SVN_CONFIG_DEFAULT_OPTION_STORE_SSL_CLIENT_CERT_PP = _core.SVN_CONFIG_DEFAULT_OPTION_STORE_SSL_CLIENT_CERT_PP SVN_CONFIG_DEFAULT_OPTION_STORE_SSL_CLIENT_CERT_PP_PLAINTEXT = _core.SVN_CONFIG_DEFAULT_OPTION_STORE_SSL_CLIENT_CERT_PP_PLAINTEXT def svn_config_get_config(*args): """svn_config_get_config(apr_hash_t cfg_hash, char config_dir, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_config_get_config, args) def svn_config_read(*args): """ svn_config_read(svn_config_t cfgp, char file, svn_boolean_t must_exist, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_config_read, args) def svn_config_merge(*args): """svn_config_merge(svn_config_t cfg, char file, svn_boolean_t must_exist) -> svn_error_t""" return apply(_core.svn_config_merge, args) def svn_config_get(*args): """ svn_config_get(svn_config_t cfg, char valuep, char section, char option, char default_value) """ return apply(_core.svn_config_get, args) def svn_config_set(*args): """svn_config_set(svn_config_t cfg, char section, char option, char value)""" return apply(_core.svn_config_set, args) def svn_config_get_bool(*args): """ svn_config_get_bool(svn_config_t cfg, svn_boolean_t valuep, char section, char option, svn_boolean_t default_value) -> svn_error_t """ return apply(_core.svn_config_get_bool, args) def svn_config_set_bool(*args): """svn_config_set_bool(svn_config_t cfg, char section, char option, svn_boolean_t value)""" return apply(_core.svn_config_set_bool, args) def svn_config_get_yes_no_ask(*args): """ svn_config_get_yes_no_ask(svn_config_t cfg, char valuep, char section, char option, char default_value) -> svn_error_t """ return apply(_core.svn_config_get_yes_no_ask, args) def svn_config_enumerate_sections(*args): """ svn_config_enumerate_sections(svn_config_t cfg, svn_config_section_enumerator_t callback, void baton) -> int """ return apply(_core.svn_config_enumerate_sections, args) def svn_config_enumerate_sections2(*args): """ svn_config_enumerate_sections2(svn_config_t cfg, svn_config_section_enumerator2_t callback, void baton, apr_pool_t pool) -> int """ return apply(_core.svn_config_enumerate_sections2, args) def svn_config_enumerate(*args): """ svn_config_enumerate(svn_config_t cfg, char section, svn_config_enumerator_t callback, void baton) -> int """ return apply(_core.svn_config_enumerate, args) def svn_config_enumerate2(*args): """ svn_config_enumerate2(svn_config_t cfg, char section, svn_config_enumerator2_t callback, void baton, apr_pool_t pool) -> int """ return apply(_core.svn_config_enumerate2, args) def svn_config_has_section(*args): """svn_config_has_section(svn_config_t cfg, char section) -> svn_boolean_t""" return apply(_core.svn_config_has_section, args) def svn_config_find_group(*args): """svn_config_find_group(svn_config_t cfg, char key, char master_section, apr_pool_t pool) -> char""" return apply(_core.svn_config_find_group, args) def svn_config_get_server_setting(*args): """ svn_config_get_server_setting(svn_config_t cfg, char server_group, char option_name, char default_value) -> char """ return apply(_core.svn_config_get_server_setting, args) def svn_config_get_server_setting_int(*args): """ svn_config_get_server_setting_int(svn_config_t cfg, char server_group, char option_name, apr_int64_t default_value, apr_int64_t result_value, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_config_get_server_setting_int, args) def svn_config_get_server_setting_bool(*args): """ svn_config_get_server_setting_bool(svn_config_t cfg, svn_boolean_t valuep, char server_group, char option_name, svn_boolean_t default_value) -> svn_error_t """ return apply(_core.svn_config_get_server_setting_bool, args) def svn_config_ensure(*args): """svn_config_ensure(char config_dir, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_config_ensure, args) SVN_CONFIG_REALMSTRING_KEY = _core.SVN_CONFIG_REALMSTRING_KEY def svn_config_read_auth_data(*args): """ svn_config_read_auth_data(apr_hash_t hash, char cred_kind, char realmstring, char config_dir, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_config_read_auth_data, args) def svn_config_write_auth_data(*args): """ svn_config_write_auth_data(apr_hash_t hash, char cred_kind, char realmstring, char config_dir, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_config_write_auth_data, args) def svn_config_get_user_config_path(*args): """svn_config_get_user_config_path(char path, char config_dir, char fname, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_config_get_user_config_path, args) class svn_config_t: """Proxy of C svn_config_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_config_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_config_t, name) def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_config_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) svn_config_t_swigregister = _core.svn_config_t_swigregister svn_config_t_swigregister(svn_config_t) def svn_config_invoke_section_enumerator(*args): """svn_config_invoke_section_enumerator(svn_config_section_enumerator_t _obj, char name, void baton) -> svn_boolean_t""" return apply(_core.svn_config_invoke_section_enumerator, args) def svn_config_invoke_section_enumerator2(*args): """ svn_config_invoke_section_enumerator2(svn_config_section_enumerator2_t _obj, char name, void baton, apr_pool_t pool) -> svn_boolean_t """ return apply(_core.svn_config_invoke_section_enumerator2, args) def svn_config_invoke_enumerator(*args): """ svn_config_invoke_enumerator(svn_config_enumerator_t _obj, char name, char value, void baton) -> svn_boolean_t """ return apply(_core.svn_config_invoke_enumerator, args) def svn_config_invoke_enumerator2(*args): """ svn_config_invoke_enumerator2(svn_config_enumerator2_t _obj, char name, char value, void baton, apr_pool_t pool) -> svn_boolean_t """ return apply(_core.svn_config_invoke_enumerator2, args) class svn_config_section_enumerator_t: """Proxy of C svn_config_section_enumerator_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_config_section_enumerator_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_config_section_enumerator_t, name) def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_config_section_enumerator_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __call__(self, *args): return svn_config_invoke_section_enumerator(self, *args) svn_config_section_enumerator_t_swigregister = _core.svn_config_section_enumerator_t_swigregister svn_config_section_enumerator_t_swigregister(svn_config_section_enumerator_t) class svn_config_section_enumerator2_t: """Proxy of C svn_config_section_enumerator2_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_config_section_enumerator2_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_config_section_enumerator2_t, name) def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_config_section_enumerator2_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __call__(self, *args): return svn_config_invoke_section_enumerator2(self, *args) svn_config_section_enumerator2_t_swigregister = _core.svn_config_section_enumerator2_t_swigregister svn_config_section_enumerator2_t_swigregister(svn_config_section_enumerator2_t) class svn_config_enumerator_t: """Proxy of C svn_config_enumerator_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_config_enumerator_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_config_enumerator_t, name) def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_config_enumerator_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __call__(self, *args): return svn_config_invoke_enumerator(self, *args) svn_config_enumerator_t_swigregister = _core.svn_config_enumerator_t_swigregister svn_config_enumerator_t_swigregister(svn_config_enumerator_t) class svn_config_enumerator2_t: """Proxy of C svn_config_enumerator2_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_config_enumerator2_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_config_enumerator2_t, name) def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_config_enumerator2_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __call__(self, *args): return svn_config_invoke_enumerator2(self, *args) svn_config_enumerator2_t_swigregister = _core.svn_config_enumerator2_t_swigregister svn_config_enumerator2_t_swigregister(svn_config_enumerator2_t) def svn_utf_initialize(*args): """svn_utf_initialize(apr_pool_t pool)""" return apply(_core.svn_utf_initialize, args) def svn_utf_stringbuf_to_utf8(*args): """svn_utf_stringbuf_to_utf8(svn_stringbuf_t dest, svn_stringbuf_t src, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_utf_stringbuf_to_utf8, args) def svn_utf_string_to_utf8(*args): """svn_utf_string_to_utf8(svn_string_t dest, svn_string_t src, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_utf_string_to_utf8, args) def svn_utf_cstring_to_utf8(*args): """svn_utf_cstring_to_utf8(char dest, char src, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_utf_cstring_to_utf8, args) def svn_utf_cstring_to_utf8_ex2(*args): """svn_utf_cstring_to_utf8_ex2(char dest, char src, char frompage, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_utf_cstring_to_utf8_ex2, args) def svn_utf_cstring_to_utf8_ex(*args): """ svn_utf_cstring_to_utf8_ex(char dest, char src, char frompage, char convset_key, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_utf_cstring_to_utf8_ex, args) def svn_utf_stringbuf_from_utf8(*args): """svn_utf_stringbuf_from_utf8(svn_stringbuf_t dest, svn_stringbuf_t src, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_utf_stringbuf_from_utf8, args) def svn_utf_string_from_utf8(*args): """svn_utf_string_from_utf8(svn_string_t dest, svn_string_t src, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_utf_string_from_utf8, args) def svn_utf_cstring_from_utf8(*args): """svn_utf_cstring_from_utf8(char dest, char src, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_utf_cstring_from_utf8, args) def svn_utf_cstring_from_utf8_ex2(*args): """svn_utf_cstring_from_utf8_ex2(char dest, char src, char topage, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_utf_cstring_from_utf8_ex2, args) def svn_utf_cstring_from_utf8_ex(*args): """ svn_utf_cstring_from_utf8_ex(char dest, char src, char topage, char convset_key, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_utf_cstring_from_utf8_ex, args) def svn_utf_cstring_from_utf8_fuzzy(*args): """svn_utf_cstring_from_utf8_fuzzy(char src, apr_pool_t pool) -> char""" return apply(_core.svn_utf_cstring_from_utf8_fuzzy, args) def svn_utf_cstring_from_utf8_stringbuf(*args): """svn_utf_cstring_from_utf8_stringbuf(char dest, svn_stringbuf_t src, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_utf_cstring_from_utf8_stringbuf, args) def svn_utf_cstring_from_utf8_string(*args): """svn_utf_cstring_from_utf8_string(char dest, svn_string_t src, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_utf_cstring_from_utf8_string, args) def svn_nls_init(*args): """svn_nls_init() -> svn_error_t""" return apply(_core.svn_nls_init, args) def svn_path_internal_style(*args): """svn_path_internal_style(char path, apr_pool_t pool) -> char""" return apply(_core.svn_path_internal_style, args) def svn_path_local_style(*args): """svn_path_local_style(char path, apr_pool_t pool) -> char""" return apply(_core.svn_path_local_style, args) def svn_path_splitext(*args): """svn_path_splitext(char path_root, char path_ext, char path, apr_pool_t pool)""" return apply(_core.svn_path_splitext, args) def svn_path_is_empty(*args): """svn_path_is_empty(char path) -> int""" return apply(_core.svn_path_is_empty, args) def svn_dirent_is_root(*args): """svn_dirent_is_root(char dirent, apr_size_t len) -> svn_boolean_t""" return apply(_core.svn_dirent_is_root, args) def svn_path_canonicalize(*args): """svn_path_canonicalize(char path, apr_pool_t pool) -> char""" return apply(_core.svn_path_canonicalize, args) def svn_path_is_canonical(*args): """svn_path_is_canonical(char path, apr_pool_t pool) -> svn_boolean_t""" return apply(_core.svn_path_is_canonical, args) def svn_path_compare_paths(*args): """svn_path_compare_paths(char path1, char path2) -> int""" return apply(_core.svn_path_compare_paths, args) def svn_path_get_longest_ancestor(*args): """svn_path_get_longest_ancestor(char path1, char path2, apr_pool_t pool) -> char""" return apply(_core.svn_path_get_longest_ancestor, args) def svn_path_is_dotpath_present(*args): """svn_path_is_dotpath_present(char path) -> svn_boolean_t""" return apply(_core.svn_path_is_dotpath_present, args) def svn_path_is_url(*args): """svn_path_is_url(char path) -> svn_boolean_t""" return apply(_core.svn_path_is_url, args) def svn_path_is_uri_safe(*args): """svn_path_is_uri_safe(char path) -> svn_boolean_t""" return apply(_core.svn_path_is_uri_safe, args) def svn_path_url_add_component2(*args): """svn_path_url_add_component2(char url, char component, apr_pool_t pool) -> char""" return apply(_core.svn_path_url_add_component2, args) SVN_MERGEINFO_NONINHERITABLE_STR = _core.SVN_MERGEINFO_NONINHERITABLE_STR def svn_mergeinfo_parse(*args): """svn_mergeinfo_parse(svn_mergeinfo_t mergeinfo, char input, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_mergeinfo_parse, args) def svn_mergeinfo_diff(*args): """ svn_mergeinfo_diff(svn_mergeinfo_t deleted, svn_mergeinfo_t added, svn_mergeinfo_t mergefrom, svn_mergeinfo_t mergeto, svn_boolean_t consider_inheritance, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_mergeinfo_diff, args) def svn_mergeinfo_remove(*args): """ svn_mergeinfo_remove(svn_mergeinfo_t mergeinfo, svn_mergeinfo_t eraser, svn_mergeinfo_t whiteboard, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_mergeinfo_remove, args) def svn_rangelist_diff(*args): """ svn_rangelist_diff(apr_array_header_t deleted, apr_array_header_t added, apr_array_header_t from, apr_array_header_t to, svn_boolean_t consider_inheritance, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_rangelist_diff, args) def svn_rangelist_remove(*args): """ svn_rangelist_remove(apr_array_header_t output, apr_array_header_t eraser, apr_array_header_t whiteboard, svn_boolean_t consider_inheritance, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_rangelist_remove, args) def svn_mergeinfo_intersect(*args): """ svn_mergeinfo_intersect(svn_mergeinfo_t mergeinfo, svn_mergeinfo_t mergeinfo1, svn_mergeinfo_t mergeinfo2, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_mergeinfo_intersect, args) def svn_rangelist_intersect(*args): """ svn_rangelist_intersect(apr_array_header_t rangelist, apr_array_header_t rangelist1, apr_array_header_t rangelist2, svn_boolean_t consider_inheritance, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_rangelist_intersect, args) def svn_rangelist_to_string(*args): """ svn_rangelist_to_string(svn_string_t output, apr_array_header_t rangelist, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_rangelist_to_string, args) def svn_rangelist_inheritable(*args): """ svn_rangelist_inheritable(apr_array_header_t inheritable_rangelist, apr_array_header_t rangelist, svn_revnum_t start, svn_revnum_t end, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_rangelist_inheritable, args) def svn_mergeinfo_inheritable(*args): """ svn_mergeinfo_inheritable(svn_mergeinfo_t inheritable_mergeinfo, svn_mergeinfo_t mergeinfo, char path, svn_revnum_t start, svn_revnum_t end, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_mergeinfo_inheritable, args) def svn_mergeinfo_to_string(*args): """svn_mergeinfo_to_string(svn_string_t output, svn_mergeinfo_t mergeinput, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_mergeinfo_to_string, args) def svn_mergeinfo_catalog_dup(*args): """svn_mergeinfo_catalog_dup(svn_mergeinfo_catalog_t mergeinfo_catalog, apr_pool_t pool) -> svn_mergeinfo_catalog_t""" return apply(_core.svn_mergeinfo_catalog_dup, args) def svn_mergeinfo_dup(*args): """svn_mergeinfo_dup(svn_mergeinfo_t mergeinfo, apr_pool_t pool) -> svn_mergeinfo_t""" return apply(_core.svn_mergeinfo_dup, args) def svn_rangelist_dup(*args): """svn_rangelist_dup(apr_array_header_t rangelist, apr_pool_t pool) -> apr_array_header_t""" return apply(_core.svn_rangelist_dup, args) svn_mergeinfo_explicit = _core.svn_mergeinfo_explicit svn_mergeinfo_inherited = _core.svn_mergeinfo_inherited svn_mergeinfo_nearest_ancestor = _core.svn_mergeinfo_nearest_ancestor def svn_inheritance_to_word(*args): """svn_inheritance_to_word(svn_mergeinfo_inheritance_t inherit) -> char""" return apply(_core.svn_inheritance_to_word, args) def svn_inheritance_from_word(*args): """svn_inheritance_from_word(char word) -> svn_mergeinfo_inheritance_t""" return apply(_core.svn_inheritance_from_word, args) svn_io_file_del_none = _core.svn_io_file_del_none svn_io_file_del_on_close = _core.svn_io_file_del_on_close svn_io_file_del_on_pool_cleanup = _core.svn_io_file_del_on_pool_cleanup class svn_io_dirent_t: """Proxy of C svn_io_dirent_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_io_dirent_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_io_dirent_t, name) __repr__ = _swig_repr __swig_setmethods__["kind"] = _core.svn_io_dirent_t_kind_set __swig_getmethods__["kind"] = _core.svn_io_dirent_t_kind_get __swig_setmethods__["special"] = _core.svn_io_dirent_t_special_set __swig_getmethods__["special"] = _core.svn_io_dirent_t_special_get def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_io_dirent_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __init__(self, *args): """__init__(self) -> svn_io_dirent_t""" this = apply(_core.new_svn_io_dirent_t, args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _core.delete_svn_io_dirent_t __del__ = lambda self : None; svn_io_dirent_t_swigregister = _core.svn_io_dirent_t_swigregister svn_io_dirent_t_swigregister(svn_io_dirent_t) def svn_io_open_uniquely_named(*args): """ svn_io_open_uniquely_named(apr_file_t file, char unique_name, char dirpath, char filename, char suffix, svn_io_file_del_t delete_when, apr_pool_t result_pool, apr_pool_t scratch_pool) -> svn_error_t """ return apply(_core.svn_io_open_uniquely_named, args) def svn_io_open_unique_file3(*args): """ svn_io_open_unique_file3(apr_file_t file, char temp_path, char dirpath, svn_io_file_del_t delete_when, apr_pool_t result_pool, apr_pool_t scratch_pool) -> svn_error_t """ return apply(_core.svn_io_open_unique_file3, args) def svn_io_open_unique_file2(*args): """ svn_io_open_unique_file2(apr_file_t f, char unique_name_p, char path, char suffix, svn_io_file_del_t delete_when, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_io_open_unique_file2, args) def svn_io_open_unique_file(*args): """ svn_io_open_unique_file(apr_file_t f, char unique_name_p, char path, char suffix, svn_boolean_t delete_on_close, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_io_open_unique_file, args) def svn_io_copy_perms(*args): """svn_io_copy_perms(char src, char dst, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_io_copy_perms, args) def svn_io_sleep_for_timestamps(*args): """svn_io_sleep_for_timestamps(char path, apr_pool_t pool)""" return apply(_core.svn_io_sleep_for_timestamps, args) def svn_io_file_checksum2(*args): """ svn_io_file_checksum2(svn_checksum_t checksum, char file, svn_checksum_kind_t kind, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_io_file_checksum2, args) def svn_io_file_checksum(*args): """svn_io_file_checksum(unsigned char digest, char file, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_io_file_checksum, args) def svn_io_files_contents_same_p(*args): """svn_io_files_contents_same_p(svn_boolean_t same, char file1, char file2, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_io_files_contents_same_p, args) def svn_stream_empty(*args): """svn_stream_empty(apr_pool_t pool) -> svn_stream_t""" return apply(_core.svn_stream_empty, args) def svn_stream_disown(*args): """svn_stream_disown(svn_stream_t stream, apr_pool_t pool) -> svn_stream_t""" return apply(_core.svn_stream_disown, args) def svn_stream_open_readonly(*args): """ svn_stream_open_readonly(svn_stream_t stream, char path, apr_pool_t result_pool, apr_pool_t scratch_pool) -> svn_error_t """ return apply(_core.svn_stream_open_readonly, args) def svn_stream_open_writable(*args): """ svn_stream_open_writable(svn_stream_t stream, char path, apr_pool_t result_pool, apr_pool_t scratch_pool) -> svn_error_t """ return apply(_core.svn_stream_open_writable, args) def svn_stream_open_unique(*args): """ svn_stream_open_unique(svn_stream_t stream, char temp_path, char dirpath, svn_io_file_del_t delete_when, apr_pool_t result_pool, apr_pool_t scratch_pool) -> svn_error_t """ return apply(_core.svn_stream_open_unique, args) def svn_stream_from_aprfile2(*args): """svn_stream_from_aprfile2(apr_file_t file, svn_boolean_t disown, apr_pool_t pool) -> svn_stream_t""" return apply(_core.svn_stream_from_aprfile2, args) def svn_stream_from_aprfile(*args): """svn_stream_from_aprfile(apr_file_t file, apr_pool_t pool) -> svn_stream_t""" return apply(_core.svn_stream_from_aprfile, args) def svn_stream_for_stdout(*args): """svn_stream_for_stdout(svn_stream_t out, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_stream_for_stdout, args) def svn_stream_from_stringbuf(*args): """svn_stream_from_stringbuf(svn_stringbuf_t str, apr_pool_t pool) -> svn_stream_t""" return apply(_core.svn_stream_from_stringbuf, args) def svn_stream_from_string(*args): """svn_stream_from_string(svn_string_t str, apr_pool_t pool) -> svn_stream_t""" return apply(_core.svn_stream_from_string, args) def svn_stream_compressed(*args): """svn_stream_compressed(svn_stream_t stream, apr_pool_t pool) -> svn_stream_t""" return apply(_core.svn_stream_compressed, args) def svn_stream_checksummed2(*args): """ svn_stream_checksummed2(svn_stream_t stream, svn_checksum_t read_checksum, svn_checksum_t write_checksum, svn_checksum_kind_t checksum_kind, svn_boolean_t read_all, apr_pool_t pool) -> svn_stream_t """ return apply(_core.svn_stream_checksummed2, args) def svn_stream_read(*args): """svn_stream_read(svn_stream_t stream, char buffer) -> svn_error_t""" return apply(_core.svn_stream_read, args) def svn_stream_write(*args): """svn_stream_write(svn_stream_t stream, char data) -> svn_error_t""" return apply(_core.svn_stream_write, args) def svn_stream_close(*args): """svn_stream_close(svn_stream_t stream) -> svn_error_t""" return apply(_core.svn_stream_close, args) def svn_stream_readline(*args): """ svn_stream_readline(svn_stream_t stream, svn_stringbuf_t stringbuf, char eol, svn_boolean_t eof, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_stream_readline, args) def svn_stream_copy3(*args): """ svn_stream_copy3(svn_stream_t from, svn_stream_t to, svn_cancel_func_t cancel_func, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_stream_copy3, args) def svn_stream_copy2(*args): """ svn_stream_copy2(svn_stream_t from, svn_stream_t to, svn_cancel_func_t cancel_func, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_stream_copy2, args) def svn_stream_copy(*args): """svn_stream_copy(svn_stream_t from, svn_stream_t to, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_stream_copy, args) def svn_stream_contents_same(*args): """ svn_stream_contents_same(svn_boolean_t same, svn_stream_t stream1, svn_stream_t stream2, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_stream_contents_same, args) def svn_string_from_stream(*args): """ svn_string_from_stream(svn_string_t result, svn_stream_t stream, apr_pool_t result_pool, apr_pool_t scratch_pool) -> svn_error_t """ return apply(_core.svn_string_from_stream, args) def svn_stringbuf_from_file2(*args): """svn_stringbuf_from_file2(svn_stringbuf_t result, char filename, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_stringbuf_from_file2, args) def svn_stringbuf_from_file(*args): """svn_stringbuf_from_file(svn_stringbuf_t result, char filename, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_stringbuf_from_file, args) def svn_stringbuf_from_aprfile(*args): """svn_stringbuf_from_aprfile(svn_stringbuf_t result, apr_file_t file, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_stringbuf_from_aprfile, args) def svn_io_remove_file(*args): """svn_io_remove_file(char path, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_io_remove_file, args) def svn_io_remove_dir2(*args): """ svn_io_remove_dir2(char path, svn_boolean_t ignore_enoent, svn_cancel_func_t cancel_func, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_io_remove_dir2, args) def svn_io_remove_dir(*args): """svn_io_remove_dir(char path, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_io_remove_dir, args) def svn_io_run_diff2(*args): """ svn_io_run_diff2(char dir, char user_args, int num_user_args, char label1, char label2, char from, char to, int exitcode, apr_file_t outfile, apr_file_t errfile, char diff_cmd, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_io_run_diff2, args) def svn_io_run_diff3_3(*args): """ svn_io_run_diff3_3(int exitcode, char dir, char mine, char older, char yours, char mine_label, char older_label, char yours_label, apr_file_t merged, char diff3_cmd, apr_array_header_t user_args, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_io_run_diff3_3, args) def svn_io_parse_mimetypes_file(*args): """svn_io_parse_mimetypes_file(apr_hash_t type_map, char mimetypes_file, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_io_parse_mimetypes_file, args) def svn_io_detect_mimetype2(*args): """ svn_io_detect_mimetype2(char mimetype, char file, apr_hash_t mimetype_map, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_io_detect_mimetype2, args) def svn_io_detect_mimetype(*args): """svn_io_detect_mimetype(char mimetype, char file, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_io_detect_mimetype, args) def svn_io_write_unique(*args): """ svn_io_write_unique(char tmp_path, char dirpath, void buf, apr_size_t nbytes, svn_io_file_del_t delete_when, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_io_write_unique, args) def svn_io_file_trunc(*args): """svn_io_file_trunc(apr_file_t file, apr_off_t offset, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_io_file_trunc, args) class svn_stream_t: """Proxy of C svn_stream_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_stream_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_stream_t, name) def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_stream_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) svn_stream_t_swigregister = _core.svn_stream_t_swigregister svn_stream_t_swigregister(svn_stream_t) def svn_read_invoke_fn(*args): """svn_read_invoke_fn(svn_read_fn_t _obj, void baton, char buffer) -> svn_error_t""" return apply(_core.svn_read_invoke_fn, args) def svn_write_invoke_fn(*args): """svn_write_invoke_fn(svn_write_fn_t _obj, void baton, char data) -> svn_error_t""" return apply(_core.svn_write_invoke_fn, args) def svn_close_invoke_fn(*args): """svn_close_invoke_fn(svn_close_fn_t _obj, void baton) -> svn_error_t""" return apply(_core.svn_close_invoke_fn, args) def svn_io_invoke_walk_func(*args): """ svn_io_invoke_walk_func(svn_io_walk_func_t _obj, void baton, char path, apr_finfo_t finfo, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_io_invoke_walk_func, args) class svn_read_fn_t: """Proxy of C svn_read_fn_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_read_fn_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_read_fn_t, name) def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_read_fn_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __call__(self, *args): return svn_read_invoke_fn(self, *args) svn_read_fn_t_swigregister = _core.svn_read_fn_t_swigregister svn_read_fn_t_swigregister(svn_read_fn_t) class svn_write_fn_t: """Proxy of C svn_write_fn_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_write_fn_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_write_fn_t, name) def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_write_fn_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __call__(self, *args): return svn_write_invoke_fn(self, *args) svn_write_fn_t_swigregister = _core.svn_write_fn_t_swigregister svn_write_fn_t_swigregister(svn_write_fn_t) class svn_close_fn_t: """Proxy of C svn_close_fn_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_close_fn_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_close_fn_t, name) def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_close_fn_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __call__(self, *args): return svn_close_invoke_fn(self, *args) svn_close_fn_t_swigregister = _core.svn_close_fn_t_swigregister svn_close_fn_t_swigregister(svn_close_fn_t) class svn_io_walk_func_t: """Proxy of C svn_io_walk_func_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, svn_io_walk_func_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, svn_io_walk_func_t, name) def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def set_parent_pool(self, parent_pool=None): """Create a new proxy object for svn_io_walk_func_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) def __call__(self, *args): return svn_io_invoke_walk_func(self, *args) svn_io_walk_func_t_swigregister = _core.svn_io_walk_func_t_swigregister svn_io_walk_func_t_swigregister(svn_io_walk_func_t) def svn_swig_py_set_application_pool(*args): """svn_swig_py_set_application_pool(PyObject py_pool, apr_pool_t pool)""" return apply(_core.svn_swig_py_set_application_pool, args) def svn_swig_py_clear_application_pool(*args): """svn_swig_py_clear_application_pool()""" return apply(_core.svn_swig_py_clear_application_pool, args) class apr_array_header_t: """Proxy of C apr_array_header_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, apr_array_header_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, apr_array_header_t, name) def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def set_parent_pool(self, parent_pool=None): """Create a new proxy object for apr_array_header_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) apr_array_header_t_swigregister = _core.apr_array_header_t_swigregister apr_array_header_t_swigregister(apr_array_header_t) class apr_file_t: """Proxy of C apr_file_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, apr_file_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, apr_file_t, name) def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def set_parent_pool(self, parent_pool=None): """Create a new proxy object for apr_file_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) apr_file_t_swigregister = _core.apr_file_t_swigregister apr_file_t_swigregister(apr_file_t) class apr_hash_t: """Proxy of C apr_hash_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, apr_hash_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, apr_hash_t, name) def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def set_parent_pool(self, parent_pool=None): """Create a new proxy object for apr_hash_t""" import libsvn.core, weakref self.__dict__["_parent_pool"] = \ parent_pool or libsvn.core.application_pool; if self.__dict__["_parent_pool"]: self.__dict__["_is_valid"] = weakref.ref( self.__dict__["_parent_pool"]._is_valid) def assert_valid(self): """Assert that this object is using valid pool memory""" if "_is_valid" in self.__dict__: assert self.__dict__["_is_valid"](), "Variable has already been deleted" def __getattr__(self, name): """Get an attribute from this object""" self.assert_valid() value = _swig_getattr(self, self.__class__, name) members = self.__dict__.get("_members") if members is not None: old_value = members.get(name) if (old_value is not None and value is not None and value is not old_value): try: value.__dict__.update(old_value.__dict__) except AttributeError: pass if hasattr(value, "assert_valid"): value.assert_valid() return value def __setattr__(self, name, value): """Set an attribute on this object""" self.assert_valid() self.__dict__.setdefault("_members",{})[name] = value return _swig_setattr(self, self.__class__, name, value) apr_hash_t_swigregister = _core.apr_hash_t_swigregister apr_hash_t_swigregister(apr_hash_t) import threading application_pool = None application_pool_lock = threading.Lock() class GenericSWIGWrapper: def __init__(self, this, pool): """Create new Generic SWIG wrapper object""" import weakref self.this = this self._parent_pool = pool self._is_valid = weakref.ref(pool._is_valid) def set_parent_pool(self, pool): """Set the parent pool of this object""" self._parent_pool = pool def valid(self): """Is this object valid?""" return self._is_valid() def assert_valid(self): """Assert that this object is still valid""" assert self.valid(), "This object has already been destroyed" def _unwrap(self): """Return underlying SWIG object""" self.assert_valid() return self.this def _mark_weakpool_invalid(weakpool): if weakpool and weakpool() and hasattr(weakpool(), "_is_valid"): del weakpool()._is_valid class apr_pool_t: """Proxy of C apr_pool_t struct""" __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, apr_pool_t, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, apr_pool_t, name) def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined" __repr__ = _swig_repr def set_parent_pool(self, parent_pool=None): """Create a new memory pool""" global application_pool try: application_pool_lock.acquire() self._parent_pool = parent_pool or application_pool self._mark_valid() # Protect important functions from GC self._apr_pool_destroy = _core.apr_pool_destroy self._svn_swig_py_clear_application_pool = \ _core.svn_swig_py_clear_application_pool # If we are an application-level pool, # then set this pool to be the application-level pool if not self._parent_pool: svn_swig_py_set_application_pool(self, self) application_pool = self finally: application_pool_lock.release() def valid(self): """Check whether this memory pool and its parents are still valid""" return hasattr(self,"_is_valid") def assert_valid(self): """Assert that this memory_pool is still valid.""" assert self.valid(), "This pool has already been destroyed" def clear(self): """Clear embedded memory pool. Invalidate all subpools.""" pool = self._parent_pool apr_pool_clear(self) self.set_parent_pool(pool) def destroy(self): """Destroy embedded memory pool. If you do not destroy the memory pool manually, Python will destroy it automatically.""" global application_pool self.assert_valid() is_application_pool = not self._parent_pool # Destroy pool self._apr_pool_destroy(self) # Clear application pool if necessary if is_application_pool: application_pool = None self._svn_swig_py_clear_application_pool() # Mark self as invalid if hasattr(self, "_parent_pool"): del self._parent_pool if hasattr(self, "_is_valid"): del self._is_valid def __del__(self): """Automatically destroy memory pools, if necessary""" if self.valid(): self.destroy() def _mark_valid(self): """Mark pool as valid""" self._weakparent = None if self._parent_pool: import weakref # Make sure that the parent object is valid self._parent_pool.assert_valid() # Refer to self using a weakrefrence so that we don't # create a reference cycle weakself = weakref.ref(self) # Set up callbacks to mark pool as invalid when parents # are destroyed self._weakparent = weakref.ref(self._parent_pool._is_valid, lambda x: _mark_weakpool_invalid(weakself)) # Mark pool as valid self._is_valid = lambda: 1 def _wrap(self, obj): """Mark a SWIG object as owned by this pool""" self.assert_valid() if hasattr(obj, "set_parent_pool"): obj.set_parent_pool(self) return obj elif obj is None: return None else: return GenericSWIGWrapper(obj, self) apr_pool_t_swigregister = _core.apr_pool_t_swigregister apr_pool_t_swigregister(apr_pool_t) # Initialize a global pool svn_pool_create() def svn_swig_mergeinfo_merge(*args): """svn_swig_mergeinfo_merge(apr_hash_t mergeinfo_inout, apr_hash_t changes, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_swig_mergeinfo_merge, args) def svn_swig_mergeinfo_sort(*args): """svn_swig_mergeinfo_sort(apr_hash_t mergeinfo_inout, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_swig_mergeinfo_sort, args) def svn_swig_rangelist_merge(*args): """ svn_swig_rangelist_merge(apr_array_header_t rangelist_inout, apr_array_header_t changes, apr_pool_t pool) -> svn_error_t """ return apply(_core.svn_swig_rangelist_merge, args) def svn_swig_rangelist_reverse(*args): """svn_swig_rangelist_reverse(apr_array_header_t rangelist_inout, apr_pool_t pool) -> svn_error_t""" return apply(_core.svn_swig_rangelist_reverse, args)
38.700849
166
0.745363
32,377
223,420
4.480866
0.025018
0.043763
0.017301
0.028537
0.878871
0.778449
0.7016
0.638461
0.609428
0.573847
0
0.00161
0.168834
223,420
5,772
167
38.707554
0.779638
0.002833
0
0.562291
1
0
0.052873
0
0
0
0
0
0.098045
0
null
null
0.022346
0.017318
null
null
0.002793
0
0
0
null
0
0
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
5
af1eebab336f1c469b6c06a22cf8dafcab64adb5
166
py
Python
src/runcommands/commands/__init__.py
wylee/runcommands
b3375a9723c4e5bb1edea7e4a108e1877f09ea56
[ "MIT" ]
18
2017-04-01T16:07:17.000Z
2022-01-19T19:04:08.000Z
src/runcommands/commands/__init__.py
wylee/runcommands
b3375a9723c4e5bb1edea7e4a108e1877f09ea56
[ "MIT" ]
null
null
null
src/runcommands/commands/__init__.py
wylee/runcommands
b3375a9723c4e5bb1edea7e4a108e1877f09ea56
[ "MIT" ]
1
2017-09-14T19:15:47.000Z
2017-09-14T19:15:47.000Z
# flake8: noqa: F401 from .copy_file import copy_file from .git_version import git_version from .local import local from .remote import remote from .sync import sync
23.714286
36
0.807229
27
166
4.814815
0.444444
0.123077
0
0
0
0
0
0
0
0
0
0.028169
0.144578
166
6
37
27.666667
0.887324
0.108434
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
af27a3d72218ae706fbb50faf0ada2030a90efd4
43
py
Python
tests/core/exceptions.py
Alvaruto1/project-caos
16a51fbe2dc573f0706ead8fe8b99c8ba7c362c5
[ "Apache-2.0" ]
null
null
null
tests/core/exceptions.py
Alvaruto1/project-caos
16a51fbe2dc573f0706ead8fe8b99c8ba7c362c5
[ "Apache-2.0" ]
null
null
null
tests/core/exceptions.py
Alvaruto1/project-caos
16a51fbe2dc573f0706ead8fe8b99c8ba7c362c5
[ "Apache-2.0" ]
null
null
null
class ConfigDictionary(Exception): pass
21.5
34
0.790698
4
43
8.5
1
0
0
0
0
0
0
0
0
0
0
0
0.139535
43
2
35
21.5
0.918919
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
af824f9ff1bab260696b99359ad269fc988c192d
185
py
Python
Python/Syntax/InputTuple.py
piovezan/SOpt
a5ec90796b7bdf98f0675457fc4bb99c8695bc40
[ "MIT" ]
148
2017-08-03T01:49:27.000Z
2022-03-26T10:39:30.000Z
Python/Syntax/InputTuple.py
piovezan/SOpt
a5ec90796b7bdf98f0675457fc4bb99c8695bc40
[ "MIT" ]
3
2017-11-23T19:52:05.000Z
2020-04-01T00:44:40.000Z
Python/Syntax/InputTuple.py
piovezan/SOpt
a5ec90796b7bdf98f0675457fc4bb99c8695bc40
[ "MIT" ]
59
2017-08-03T01:49:19.000Z
2022-03-31T23:24:38.000Z
def funcao(): return int(input('insira um número:')) tupla = (funcao(), funcao(), funcao(), funcao()) print(tupla.count(9)) print(tupla) #https://pt.stackoverflow.com/q/339514/101
23.125
48
0.675676
26
185
4.807692
0.730769
0.288
0.288
0
0
0
0
0
0
0
0
0.060606
0.108108
185
7
49
26.428571
0.69697
0.221622
0
0
0
0
0.118881
0
0
0
0
0
0
1
0.2
false
0
0
0.2
0.4
0.4
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
5
bbaf7c3dcb6d6de8c7820afffb00107df6da1917
41,679
py
Python
lambda/lambda_function.py
1337-server/Trakt.tv-Alexa-skill
731a6a665624b306af56dc70594c833048fc5757
[ "MIT" ]
5
2021-01-28T03:02:46.000Z
2022-01-10T17:52:40.000Z
lambda/lambda_function.py
1337-server/Trakt.tv-Alexa-skill
731a6a665624b306af56dc70594c833048fc5757
[ "MIT" ]
2
2021-04-30T13:59:07.000Z
2021-09-10T03:27:39.000Z
lambda/lambda_function.py
1337-server/Trakt.tv-Alexa-skill
731a6a665624b306af56dc70594c833048fc5757
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging import os import requests import json import config import utils import language import trakt_api from ask_sdk_core.skill_builder import CustomSkillBuilder from ask_sdk_core.utils import is_request_type, is_intent_name, get_slot_value from ask_sdk_core.handler_input import HandlerInput # noqa: F401 from ask_sdk_model import Response # noqa: F401 from ask_sdk_s3.adapter import S3Adapter from datetime import datetime s3_adapter = S3Adapter(bucket_name=os.environ["S3_PERSISTENCE_BUCKET"]) sb = CustomSkillBuilder(persistence_adapter=s3_adapter) logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) watch_lists = ('watchlist', 'watch list') DATE_FORMAT = '%Y-%m-%d' clientid = config.client_id user = 'me' is_auth = False @sb.request_handler(can_handle_func=lambda input: is_request_type("LaunchRequest")(input) or is_intent_name("AddMovie")(input)) def add_movie_intent_handler(handler_input): """Handler for Add Movie Intent.""" # get our persistent_attributes # if the user has launched the app greet them # set out session attributes _perattr = handler_input.attributes_manager.persistent_attributes attr = handler_input.attributes_manager.session_attributes if is_request_type("LaunchRequest")(handler_input): # _usecustomlist = _perattr['usecustomlist'] attr["movie"] = {} attr["show"] = {} attr['readBoxOffice'] = False attr['readMovies'] = False attr['readShows'] = False attr['readBoth'] = False attr['active_request'] = '' attr['repeat'] = '' handler_input.response_builder.speak("Welcome To Radar the Trakt.tv tracker").ask("") return handler_input.response_builder.response # Get the value of the users auth token h = handler_input.request_envelope.context.system.user.access_token # _list = 'watchlist' _usecustomlist = False # If we are not auth, let the user know if h is None: handler_input.response_builder.speak(language.AUTH_ERROR) return handler_input.response_builder.response # Set all our headers for the trakt-api headers = utils.build_headers(h, clientid) print("Header= " + str(headers)) # Get the movie name and throw it onto the movie var movie = get_slot_value(handler_input=handler_input, slot_name="movieName") use_list = get_slot_value(handler_input=handler_input, slot_name="list_name") # reprompt = "Are you sure you want to add "+movie+' to your list ?' # user gave us nothing lets do some checks to make sure we have saved attributes _list, _usecustomlist = utils.get_list(use_list, _perattr) # search for move and get the object b = trakt_api.search(movie, headers, "movie", True) if b['error']: # handle this handler_input.response_builder.speak("I couldn't find the show you requested") return handler_input.response_builder.response # force our movie/show object into a small var to make things easier y = b["movie"] # dig through our search and add the movie/show to our list or our Watchlist if trakt_api.parse_search(b['type'], headers, y, _list, _usecustomlist, True): # media_name, media_type, a_list utils.notify(movie, b['type'], _list) handler_input.response_builder.speak(movie + " has been added to your " + _list + " list") # .ask(reprompt) else: # TODO Fix the notify to allow errors # utils.notify(movie, b['type'], _list) handler_input.response_builder.speak("There was a problem adding " + movie + " to your list " + _list) return handler_input.response_builder.response @sb.request_handler(can_handle_func=is_intent_name("AddShow")) def add_show_intent_handler(handler_input): """ handler for Add Show Intent""" h = handler_input.request_envelope.context.system.user.access_token showtype = 'show' # If we are not auth, let the user know if h is None: reprompt = language.AUTH_ERROR handler_input.response_builder.speak(reprompt).ask(reprompt) return handler_input.response_builder.response headers = utils.build_headers(h, clientid) # get our persistent_attributes _perattr = handler_input.attributes_manager.persistent_attributes movie = get_slot_value(handler_input=handler_input, slot_name="showName") user_list = get_slot_value(handler_input=handler_input, slot_name="list_name") _list, _usecustomlist = utils.get_list(user_list, _perattr) # search for move and get the object b = trakt_api.search(movie, headers, showtype, False) if b['error']: # handle this handler_input.response_builder.speak(language.SHOW_404) return handler_input.response_builder.response y = b['show'] # dig through our search and add the movie/show to our list or our Watchlist trakt_api.parse_search(b['type'], headers, y, _list, _usecustomlist, True) utils.notify(movie, b['type'], _list) handler_input.response_builder.speak(movie + " show has been added to your list " + str(_list)) # .ask(reprompt) return handler_input.response_builder.response @sb.request_handler(can_handle_func=is_intent_name("ChooseList")) def choose_list_intent_handler(handler_input): """Handler for Choose List Intent.""" # get the value of listName and throw it onto _thelist _thelist = get_slot_value(handler_input=handler_input, slot_name="listName") # Get the value of the users auth token h = handler_input.request_envelope.context.system.user.access_token # If we are not auth, let the user know if h is None: reprompt = language.AUTH_ERROR handler_input.response_builder.speak(reprompt).ask(reprompt) return handler_input.response_builder.response # Set all our headers for the trakt-api headers = utils.build_headers(h, clientid) session_attr = handler_input.attributes_manager.session_attributes if utils.list_tester(_thelist, session_attr, watch_lists): handler_input.response_builder.speak("Your List has been set to the default. This is the watchlist") # start saving the persistent attributes session_attr = handler_input.attributes_manager.session_attributes session_attr['usecustomlist'] = False session_attr['list'] = 'watchlist' handler_input.attributes_manager.persistent_attributes = session_attr handler_input.attributes_manager.save_persistent_attributes() return handler_input.response_builder.response # user wanted a different custom list # lets get all their trakt.tv lists # TODO _customlist should probs be set to "watchlist" to start _foundlist = False _customlist = '' url = 'https://api.trakt.tv/users/me/lists' r = requests.get(url, headers=headers) # If everything is ok lets process if r.status_code == 200 or r.status_code == 201: # print(r.text) dcode = json.loads(r.text) i = 0 while i < len(dcode): # print(dcode[i]['name']) # print(json.dumps(dcode[i], sort_keys=True, indent=4)) o = dcode[i]['ids']['slug'] # print(str(o) + " is our trakt slug") if dcode[i]['name'] == _thelist.lower(): _foundlist = True # set the list to the user requested list _customlist = o i += 1 # couldnt find the custom list notify and set to watchlist if not _foundlist: reprompt = "I couldn't find that list. Your list has been set to the default. This is the watchlist" handler_input.response_builder.speak(reprompt).ask(reprompt) # start saving the persistent attributes session_attr = handler_input.attributes_manager.session_attributes session_attr['usecustomlist'] = False session_attr['list'] = 'watchlist' handler_input.attributes_manager.persistent_attributes = session_attr handler_input.attributes_manager.save_persistent_attributes() return handler_input.response_builder.response # we found the list, save it and we can use it for all add requests handler_input.response_builder.speak(f"Your List has been set to {_thelist}") # start saving the persistent attributes session_attr = handler_input.attributes_manager.session_attributes session_attr['usecustomlist'] = _foundlist session_attr['list'] = _customlist # save session attributes as persistent attributes handler_input.attributes_manager.persistent_attributes = session_attr handler_input.attributes_manager.save_persistent_attributes() return handler_input.response_builder.response else: # TODO Catch the error and tell alexa to output it nicely # revert to default settings and store them handler_input.response_builder.speak(language.TRAKT_DOWN) return handler_input.response_builder.response @sb.request_handler(can_handle_func=is_intent_name("RemoveShow")) def remove_show_intent_handler(handler_input): """ handler for Remove Show Intent""" # Get the value of the users auth token h = handler_input.request_envelope.context.system.user.access_token # If we are not auth, let the user know if h is None: reprompt = language.AUTH_ERROR handler_input.response_builder.speak(reprompt).ask(reprompt) return handler_input.response_builder.response # Set all our headers for the trakt-api headers = utils.build_headers(h, clientid) # TODO make sure we change I,II,II type movies to 1,2,3 # and vice versa # _usecustomlist = bool user_list = get_slot_value(handler_input=handler_input, slot_name="list_name") movie = str(get_slot_value(handler_input=handler_input, slot_name="showName")) # get our persistent_attributes attr = handler_input.attributes_manager.persistent_attributes _list, _usecustomlist = utils.get_list(user_list, attr) # if our list isnt empty then we can go ahead and deal with the request if _usecustomlist: url = 'https://api.trakt.tv/users/me/lists/' + _list + '/items/shows' r = requests.get(url, headers=headers) if r.status_code == 200 or r.status_code == 201: dcode = json.loads(r.text) # print(json.dumps(json.loads(r.text), sort_keys=True, indent=4)) i = 0 _moviefound = False while i < len(dcode): # print(dcode[i]['name']) # print(json.dumps(dcode[i], sort_keys=True, indent=4)) o = dcode[i]['show']['title'] # print(str(o) + " is our title") # if our movie name matches the movie send the request to delete it if o.lower() == movie.lower(): _moviefound = True _id = dcode[i]['show']['ids']['trakt'] # noqa F841 # print("we found it") # print(json.dumps(dcode[i], sort_keys=True, indent=4)) if trakt_api.parse_delete_search('show', headers, dcode[i]['show'], _list, _usecustomlist): reprompt = f"I have deleted {o} from the list {_list}" # media_name, media_type, a_list utils.notify(movie, "show", _list, "removed") handler_input.response_builder.speak(reprompt).ask(reprompt) return handler_input.response_builder.response # return # print("we finished and deleted") # exit("deleted") else: # return handler_input.response_builder.speak(f"I had trouble deleting {o} from the list {_list}") return handler_input.response_builder.response # print("we found the film but there was an error deleting") # exit("not deleted") i += 1 # if we failed to find the movie if _moviefound is False: # print("we couldnt find the film") handler_input.response_builder.speak(f"I couldnt find {movie} on the list {_list}") return handler_input.response_builder.response # if our first request to trakt fails else: handler_input.response_builder.speak('I couldn\'t contact Trakt.tv API .' + url) return handler_input.response_builder.response # if our user didnt give us a list or they are using the watch list else: # WE DIDNT RECIEVE A LIST # TODO make sure we change I,II,II type movies to 1,2,3 # and vice versa # search for movie and get the object b = trakt_api.search(movie, headers, "show", False) if b['error']: # handle this reprompt = language.SHOW_404 handler_input.response_builder.speak(reprompt).ask(reprompt) return handler_input.response_builder.response # force our movie/show object into a small var to make things easier y = b['show'] if trakt_api.parse_delete_search('show', headers, y, _list, False): # media_name, media_type, a_list utils.notify(movie, "show", _list, "removed") handler_input.response_builder.speak(f"I have deleted {movie} from the list {_list}") return handler_input.response_builder.response else: reprompt = f"I couldn't delete {movie} from the list {_list}" handler_input.response_builder.speak(reprompt).ask(reprompt) return handler_input.response_builder.response @sb.request_handler(can_handle_func=is_intent_name("RemoveMovie")) def remove_movie_intent_handler(handler_input): # Get the value of the users auth token h = handler_input.request_envelope.context.system.user.access_token # If we are not auth, let the user know if h is None: handler_input.response_builder.speak(language.AUTH_ERROR).ask(language.AUTH_ERROR) return handler_input.response_builder.response # Set all our headers for the trakt-api headers = utils.build_headers(h, clientid) # TODO make sure we change I,II,II type movies to 1,2,3 # and vice versa user_list = get_slot_value(handler_input=handler_input, slot_name="list_name") movie = str(get_slot_value(handler_input=handler_input, slot_name="movieName")) # get our persistent_attributes attr = handler_input.attributes_manager.persistent_attributes _list, _usecustomlist = utils.get_list(user_list, attr) # if our list isnt empty then we can go ahead amd deal with the request if _usecustomlist: url = 'https://api.trakt.tv/users/me/lists/' + _list + '/items/movies' r = requests.get(url, headers=headers) if r.status_code == 200 or r.status_code == 201: dcode = json.loads(r.text) # print(json.dumps(json.loads(r.text), sort_keys=True, indent=4)) i = 0 _moviefound = False while i < len(dcode): # print(dcode[i]['name']) # print(json.dumps(dcode[i], sort_keys=True, indent=4)) o = dcode[i]["movie"]['title'] # print(str(o) + " is our title") # if our movie name matches the movie send the request to delete it if o.lower() == movie.lower(): _moviefound = True # print("we found it") # print(json.dumps(dcode[i], sort_keys=True, indent=4)) if trakt_api.parse_delete_search("movie", headers, dcode[i]["movie"], _list, _usecustomlist): handler_input.response_builder.speak(f"I have deleted {o} from the list {_list}") return handler_input.response_builder.response # return # print("we finished and deleted") # exit("deleted") else: # return handler_input.response_builder.speak(f"I had trouble deleting {o} from the list {_list}") return handler_input.response_builder.response # print("we found the film but there was an error deleting") # exit("not deleted") i += 1 # if we failed to find the movie if _moviefound is False: # print("we couldnt find the film") handler_input.response_builder.speak(f"I couldn't find {movie} on the list {_list}") return handler_input.response_builder.response # if our first request to trakt fails else: handler_input.response_builder.speak("I couldn't contact Trakt.tv API ." + url) return handler_input.response_builder.response # if our user didnt give us a list or they are using the watch list else: # WE DIDNT RECIEVE A LIST # TODO make sure we change I,II,II type movies to 1,2,3 # and vice versa # search for movie and get the object b = trakt_api.search(movie, headers, "movie", False) if b['error']: # handle this reprompt = "I couldn't find the movie you requested" handler_input.response_builder.speak(reprompt).ask(reprompt) return handler_input.response_builder.response # force our movie/show object into a small var to make things easier y = b["movie"] if trakt_api.parse_delete_search("movie", headers, y, _list, False): # media_name, media_type, a_list utils.notify(movie, b['type'], _list, "removed") handler_input.response_builder.speak(f"I have deleted {movie} from the list {_list}") return handler_input.response_builder.response else: handler_input.response_builder.speak(f"I couldn't delete {movie} from the list {_list}") return handler_input.response_builder.response @sb.request_handler(can_handle_func=is_intent_name("WhatsOn")) def whats_on_intent_handler(handler_input): # Get the value of the users auth token h = handler_input.request_envelope.context.system.user.access_token # set the default to use todays datetime # OUR default items count _movieitemcount = 0 _showitemcount = 0 z = '' attr = handler_input.attributes_manager.session_attributes attr["show"] = {} attr["movie"] = {} attr['readBoth'] = False attr['readShows'] = False attr['readMovies'] = False attr['readBoxOffice'] = False attr['repeat'] = '' attr['active_request'] = '' # If we are not auth, let the user know if h is None: handler_input.response_builder.speak(language.AUTH_ERROR) return handler_input.response_builder.response # Set all our headers for the trakt-api headers = utils.build_headers(h, clientid) # return handler_input.response_builder.response # _date gives 2020-04-17 format _type = get_slot_value(handler_input=handler_input, slot_name="typeMedia") _date = get_slot_value(handler_input=handler_input, slot_name="thedate") if _date is None: x = datetime.now() z = x.strftime(DATE_FORMAT) else: z = utils.validate(_date) # did they want a specific media ? if _type is not None: # We got a movie ? _type1 = str(_type).lower() if _type1 == "movies" or _type1 == "movie" or _type1 == "films" or _type1 == "film": # its a movie url = "https://api.trakt.tv/calendars/my/movies/" + str(z) + "/7" # lets send a request for lists r = requests.get(url, headers=headers) # attributes = handler_input.attributes_manager.session_attributes() if r.status_code == 200 or r.status_code == 201: dcode = json.loads(r.text) print(json.dumps(dcode, sort_keys=True, indent=4)) i = 0 while i < len(dcode): # for j in range(len(dcode2)): # we need to parse the list and try to find the movie requested _title = str(dcode[i]["movie"]['title']) attr["movie"][i] = _title _movieitemcount += 1 i += 1 if (len(dcode) - 1) < 0: print("no movie items") else: print(f"status code= {r.status_code}") n = datetime.now() m = n.strftime(DATE_FORMAT) should_end_session = False # noqa F841 if (_movieitemcount - 1) < 0: if z == m: handler_input.response_builder.speak("you have no new movies today") return handler_input.response_builder.response else: handler_input.response_builder.speak("you have no new movies on " + str(z)) return handler_input.response_builder.response # print("you have no new movies or episodes on today") else: reprompt = 'Would you like me to read the list out ?' if z == m: handler_input.response_builder.speak(f"You have {_movieitemcount} new movies on today. " + reprompt).ask(reprompt) attr["readMovies"] = True return handler_input.response_builder.response else: handler_input.response_builder.speak(f"You have {_movieitemcount} new movies on {z}." "Would you like me to read the list out ?").ask(reprompt) attr["readMovies"] = True return handler_input.response_builder.response # Series if _type1 == 'series' or _type1 == 'episodes' or _type1 == 'shows' or _type1 == 'show': # its a tv shows url2 = "https://api.trakt.tv/calendars/my/shows/" + str(z) + "/7" # lets send a request for lists r2 = requests.get(url2, headers=headers) # print("status code= "+str(r2.status_code)) if r2.status_code == 200 or r2.status_code == 201: dcode2 = json.loads(r2.text) print(json.dumps(dcode2, sort_keys=True, indent=4)) i = 0 while i < len(dcode2): # for j in range(len(dcode2)): # we need to parse the list and try to find the movie requested _title = str(dcode2[i]["show"]['title']) attr["show"][i] = _title # print(_title) _showitemcount += 1 i += 1 if (len(dcode2) - 1) < 0: print("no show items") # something broke or we have nothing else: repromt = "I couldn't reach the trakt.tv API" handler_input.response_builder.speak(repromt).ask(repromt) return handler_input.response_builder.response n = datetime.now() m = n.strftime(DATE_FORMAT) reprompt = 'Would you like me to read them out ?' if (_showitemcount - 1) < 0: if z == m: handler_input.response_builder.speak("you have no new episodes on today") return handler_input.response_builder.response else: handler_input.response_builder.speak(f"you have no new episodes on {z}") return handler_input.response_builder.response else: if z == m: handler_input.response_builder.speak(f"You have {_showitemcount} new episodes on today. " f"Would you like me to read the list out ?").ask(reprompt) attr["readShows"] = True return handler_input.response_builder.response else: handler_input.response_builder.speak( f"You have {_showitemcount} new episodes on {z}. " f"Would you like me to read the list out ?").ask("Would you like me to read the list out ?") attr["readShows"] = True return handler_input.response_builder.response # not sure what we got else: handler_input.response_builder.speak( "I'm sorry I couldn't understand what you type you wanted").ask( "Try saying, Alexa ask Radar what is on.") return handler_input.response_builder.response # OUR default items count _movieitemcount = 0 _showitemcount = 0 url = "https://api.trakt.tv/calendars/my/movies/" + str(z) + "/1" # lets send a request for lists r = requests.get(url, headers=headers) # print("status code= "+str(r.status_code)) if r.status_code == 200 or r.status_code == 201: dcode = json.loads(r.text) print(json.dumps(dcode, sort_keys=True, indent=4)) i = 0 while i < len(dcode): # for j in range(len(dcode2)): # we need to parse the list and try to find the movie requested _title = str(dcode[i]["movie"]['title']) attr["movie"][i] = _title # print(_title) # _traktid=dcode[i]['ids']['trakt'] # exit("yeet") _movieitemcount += 1 i += 1 if (len(dcode) - 1) < 0: print("no movie items") else: handler_input.response_builder.speak("I cant seem to contact the trakt.tv API. Please try again.") return handler_input.response_builder.response url2 = "https://api.trakt.tv/calendars/my/shows/" + str(z) + "/7" # lets send a request for lists r2 = requests.get(url2, headers=headers) print("status code= " + str(r2.status_code)) if r2.status_code == 200 or r2.status_code == 201: dcode2 = json.loads(r2.text) print(json.dumps(dcode2, sort_keys=True, indent=4)) i = 0 while i < len(dcode2): # for j in range(len(dcode2)): # we need to parse the list and try to find the movie requested _title = str(dcode2[i]["show"]['title']) attr["show"][i] = _title # print(_title) # _traktid=dcode[i]['ids']['trakt'] # exit("yeet") _showitemcount += 1 i += 1 if (len(dcode2) - 1) < 0: print("no show items") else: print(f"status code= {r.status_code}") n = datetime.now() m = n.strftime(DATE_FORMAT) reprompt = 'Would you like me to read them out ?' if (_movieitemcount - 1) < 0 and (_showitemcount - 1) < 0: if z == m: handler_input.response_builder.speak("you have no new movies or episodes on today") return handler_input.response_builder.response else: handler_input.response_builder.speak("you have no new movies or episodes on " + str(z)) return handler_input.response_builder.response # print("you have no new movies or episodes on today") else: if z == m: handler_input.response_builder.speak(f"You have {_movieitemcount} new movies and {_showitemcount}" f" episodes on Today. " f"Would you like me to read the list out ?").ask(reprompt) attr['readBoth'] = True attr['readShows'] = False attr['readMovies'] = False return handler_input.response_builder.response else: handler_input.response_builder.speak( f"You have {_movieitemcount} new movies and {_showitemcount} episodes on {z}." f"Would you like me to read the list out ?").ask(reprompt) attr['readBoth'] = True attr['readShows'] = False attr['readMovies'] = False return handler_input.response_builder.response @sb.request_handler(can_handle_func=is_intent_name("GetPopular")) def get_popular_intent_handler(handler_input): user_listtype = get_slot_value(handler_input=handler_input, slot_name="list") h = handler_input.request_envelope.context.system.user.access_token attr = handler_input.attributes_manager.session_attributes attr["movie"] = {} attr["show"] = {} attr = utils.test_session_attribs(attr) _listtype = utils.get_popular_list(user_listtype) url = "https://api.trakt.tv/movies/" + _listtype # If we are not auth, let the user know if h is None: handler_input.response_builder.speak(language.AUTH_ERROR) return handler_input.response_builder.response # Set all our headers for the trakt-api headers = utils.build_headers(h, clientid) print(url) r = requests.get(url, headers=headers) print(f"status code= {r.status_code}") if r.status_code == 200 or r.status_code == 201: boxoffice = json.loads(r.text) # print(json.dumps(boxoffice,sort_keys=True,indent=4)) _notfound = {} _mywatchlist = trakt_api.list_cache(headers) if "error" in _mywatchlist: handler_input.response_builder.speak("I had trouble getting your lists from the trakt.tv api") return handler_input.response_builder.response # exit("error: 64") i = 0 j = 0 # for every item in the boxoffice for i in range(len(boxoffice)): # if 'movie' in boxoffice[i]: b = trakt_api.listparser(_mywatchlist, boxoffice[i], _listtype) if b is not None: _notfound[j] = b j += 1 # print("got movie") # _notfound[i] = trakt_api.listparser(_mywatchlist,boxoffice[i],"movie") i += 1 print(str(_notfound)) if len(_notfound) > 0: attr['active_request'] = '' attr["movie"] = _notfound attr["show"] = {} attr['readBoth'] = False attr['readShows'] = False attr['readMovies'] = False attr['readBoxOffice'] = True attr['repeat'] = '' # TODO DONT KNOW IF ITS TRULY MISSING, # IT COULD BE THEY DONT HAVE THEM WATCHED/list BUT IN COLLECTION handler_input.response_builder.speak("you are missing " + str(len(_notfound)) + " out of 10 from the " + _listtype + " list. Do you want to hear the list ?").ask( "Do you want to hear the list ?") return handler_input.response_builder.response # print("you are missing "+str(len(_notfound))+" out of 10 from the "+_ # listtype+" list. Do you want to hear the list ?") # save our list to session attributes # and then ask the user if they want to save # have and then deal with it in the AMAZON.YesIntent else: handler_input.response_builder.speak("You have all the items from this list") return handler_input.response_builder.response # print("you have all the items from this list") else: handler_input.response_builder.speak("I couldn't contact the trakt.tv api") return handler_input.response_builder.response @sb.request_handler(can_handle_func=is_intent_name("FindShow")) def find_show_handler(handler_input): """Handler for Find Show Intent""" # Get the value of the users auth token h = handler_input.request_envelope.context.system.user.access_token # If we are not auth, let the user know if h is None: reprompt = 's' handler_input.response_builder.speak( language.AUTH_ERROR).ask(reprompt) return handler_input.response_builder.response # Set all our headers for the trakt-api headers = utils.build_headers(h, clientid) # showName # return handler_input.response_builder.response movie = get_slot_value(handler_input=handler_input, slot_name="showName") # TODO search the movie var and strip "on my list" from the end incase Alexa fucks up b = trakt_api.search(movie, headers, "show", True) if b['error']: # handle this reprompt = '_' handler_input.response_builder.speak(language.SHOW_404).ask(reprompt) return handler_input.response_builder.response # check if its a show or a movie # force our movie/show object into a small var to make things easier # we dont need this y = b['show'] t = trakt_api.search_lists(y, b, headers, "show") if t['found']: # print(movie+" found on the list "+t['list']) reprompt = '_' handler_input.response_builder.speak(movie + " is already on the list " + t['list']).ask(reprompt) return handler_input.response_builder.response else: reprompt = '_' handler_input.response_builder.speak(movie + " isnt on any of your lists.").ask(reprompt) return handler_input.response_builder.response @sb.request_handler(can_handle_func=is_intent_name("FindMovie")) def find_movie_handler(handler_input): """Handler for Find Movie Intent""" # Get the value of the users auth token h = handler_input.request_envelope.context.system.user.access_token # If we are not auth, let the user know if h is None: handler_input.response_builder.speak(language.AUTH_ERROR).ask(language.AUTH_ERROR) return handler_input.response_builder.response # Set all our headers for the trakt-api headers = utils.build_headers(h, clientid) movie = get_slot_value(handler_input=handler_input, slot_name="movieName") # TODO search the movie var and strip "on my list" from the end incase Alexa fucks up # b = trakt_api.search(movie, headers, "movie", True) if b['error']: # handle this reprompt = '_' handler_input.response_builder.speak("I couldnt find the movie you requested").ask(reprompt) return handler_input.response_builder.response # check if its a show or a movie # force our movie/show object into a small var to make things easier y = b["movie"] t = trakt_api.search_lists(y, b, headers, "movie") if t['found']: # print(movie+" found on the list "+t['list']) reprompt = movie + " is already on the list " + t['list'] handler_input.response_builder.speak(reprompt).ask(reprompt) return handler_input.response_builder.response else: reprompt = movie + " isn't on any of your lists." handler_input.response_builder.speak(reprompt).ask(reprompt) return handler_input.response_builder.response @sb.request_handler(can_handle_func=is_intent_name("AMAZON.HelpIntent")) def help_intent_handler(handler_input): """Handler for Help Intent.""" speech_text = "booop" reprompt = "booop." handler_input.response_builder.speak(speech_text).ask(reprompt) return handler_input.response_builder.response @sb.request_handler(can_handle_func=lambda input: is_intent_name("AMAZON.CancelIntent")(input) or is_intent_name("AMAZON.StopIntent")(input)) def cancel_and_stop_intent_handler(handler_input): """Single handler for Cancel and Stop Intent.""" speech_text = "OK Mate calm down." attr = handler_input.attributes_manager.session_attributes attr['readShows'] = False attr['readMovies'] = False attr['readBoth'] = False attr['active_request'] = '' attr['repeat'] = '' attr['movie'] = {} attr['show'] = {} attr['readBoxOffice'] = False handler_input.response_builder.speak(speech_text).set_should_end_session(True) return handler_input.response_builder.response @sb.request_handler(can_handle_func=is_request_type("SessionEndedRequest")) def session_ended_request_handler(handler_input): """Handler for Session End.""" logger.info(f"Session ended with reason: {handler_input.request_envelope.request.reason}") return handler_input.response_builder.response @sb.request_handler(can_handle_func=lambda input: is_intent_name("AMAZON.YesIntent")(input) or is_intent_name("AMAZON.RepeatIntent")(input)) def read_out_handler(handler_input): """Handler for Yes/Repeat Intent This is used as a list reader""" attr = utils.test_session_attribs(handler_input.attributes_manager.session_attributes) # Get the value of the users auth token h = handler_input.request_envelope.context.system.user.access_token # If we are not auth, let the user know if h is None: handler_input.response_builder.speak(language.AUTH_ERROR) return handler_input.response_builder.response _alexa_out = '' # Set all our headers for the trakt-api headers = utils.build_headers(h, clientid) # do we want to add the movies to our default list ? if attr['active_request'] == 'AddMovies': persistent_attributes = handler_input.attributes_manager.persistent_attributes attr, _alexa_out = utils.read_add_movies(persistent_attributes, attr, headers) handler_input.response_builder.speak(str(_alexa_out)).ask(language.REPEAT_LIST) return handler_input.response_builder.response # shows read out here if utils.read_shows_check(attr, is_intent_name("AMAZON.RepeatIntent")): attr, _alexa_out = utils.read_out_shows(attr) handler_input.response_builder.speak(str(_alexa_out)).ask(language.REPEAT_LIST) return handler_input.response_builder.response # movies read out here if attr['readMovies'] and not attr['readShows'] \ or is_intent_name("AMAZON.RepeatIntent") and attr['repeat'] == 'readMovies': # movies read out here attr, _alexa_out = utils.read_out_movies(attr) handler_input.response_builder.speak(str(_alexa_out)).ask(language.REPEAT_LIST) return handler_input.response_builder.response # both read out here if attr['readBoth'] or is_intent_name("AMAZON.RepeatIntent") and attr['repeat'] == 'readBoth': attr, _alexa_out = utils.read_out_both(attr, _alexa_out) handler_input.response_builder.speak(str(_alexa_out)).ask(language.REPEAT_LIST) return handler_input.response_builder.response # read out box office # repeat wont work if attr['readBoxOffice'] or is_intent_name("AMAZON.RepeatIntent") and attr['repeat'] == 'readBoxOffice': attr, _alexa_out = utils.read_box_office(attr) handler_input.response_builder.speak(str(_alexa_out)).ask(language.REPEAT_LIST) return handler_input.response_builder.response # user got here with no lists attr['readShows'] = False attr['readMovies'] = False attr['readBoth'] = False attr['repeat'] = '' attr['readBoxOffice'] = False handler_input.response_builder.speak("Im sorry I didn't understand.") return handler_input.response_builder.response @sb.request_handler(can_handle_func=is_intent_name("AMAZON.NoIntent")) def no_handler(handler_input): """Handler for No Intent, only if the player said no for a new game. """ session_attr = handler_input.attributes_manager.session_attributes session_attr['game_state'] = "ENDED" session_attr['ended_session_count'] = "" handler_input.attributes_manager.persistent_attributes = session_attr handler_input.attributes_manager.save_persistent_attributes() speech_text = "Ok. See you next time!!" handler_input.response_builder.speak(speech_text) return handler_input.response_builder.response @sb.request_handler(can_handle_func=lambda input: is_intent_name("AMAZON.FallbackIntent")(input)) def fallback_handler(handler_input): """AMAZON.FallbackIntent is only available in en-US locale. This handler will not be triggered except in that locale, so it is safe to deploy on any locale. """ # session_attr = handler_input.attributes_manager.session_attributes speech_text = "" reprompt = "Say yes to start the game or no to quit." handler_input.response_builder.speak(speech_text).ask(reprompt) return handler_input.response_builder.response @sb.request_handler(can_handle_func=lambda input: True) def unhandled_intent_handler(handler_input): """Handler for all other unhandled requests.""" speech = "Say yes to continue or no to end the game!!" handler_input.response_builder.speak(speech).ask(speech) return handler_input.response_builder.response @sb.exception_handler(can_handle_func=lambda i, e: True) def all_exception_handler(handler_input, exception): """Catch all exception handler, log exception and respond with custom message. """ logger.error(exception, exc_info=True) # speech = "Sorry, I can't understand that. Please say again!!" speech = "error: " + str(exception) handler_input.response_builder.speak(speech).ask(speech) return handler_input.response_builder.response @sb.global_response_interceptor() def log_response(handler_input, response): """Response logger.""" logger.info("Response: {}".format(response)) lambda_handler = sb.lambda_handler()
46.725336
116
0.64217
5,356
41,679
4.805825
0.082898
0.106294
0.112665
0.151049
0.805866
0.779759
0.738267
0.710606
0.665657
0.636364
0
0.006455
0.26409
41,679
891
117
46.777778
0.832746
0.19667
0
0.620861
0
0.011589
0.137078
0.002683
0
0
0
0.001122
0
1
0.029801
false
0
0.023179
0
0.17053
0.024834
0
0
0
null
0
0
0
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
a553e832b56a8a83b13f18e36d368993edbb1243
347
py
Python
autovalidate/validators/__init__.py
dtao/autovalidate
3212578f89adbf322b590f4bb1f09f7603703d1f
[ "MIT" ]
null
null
null
autovalidate/validators/__init__.py
dtao/autovalidate
3212578f89adbf322b590f4bb1f09f7603703d1f
[ "MIT" ]
null
null
null
autovalidate/validators/__init__.py
dtao/autovalidate
3212578f89adbf322b590f4bb1f09f7603703d1f
[ "MIT" ]
null
null
null
from autovalidate.validators.core import (ValidationResult, get_validator, validates) from autovalidate.validators.json_ import JsonValidator from autovalidate.validators.yaml_ import YamlValidator __all__ = ['JsonValidator', 'ValidationResult', 'YamlValidator', 'get_validator', 'validates']
43.375
74
0.706052
28
347
8.464286
0.5
0.202532
0.329114
0
0
0
0
0
0
0
0
0
0.216138
347
7
75
49.571429
0.871324
0
0
0
0
0
0.184438
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
a56fbc26a7fa01626f3de65ef2a2df41c2bf40e6
142
py
Python
aylien_news_api/api/__init__.py
AYLIEN/aylien_newsapi_python
ab4e667e718e8f919b894d4e4ec76e5d37b2fe74
[ "Apache-2.0" ]
13
2016-04-30T12:08:24.000Z
2021-09-14T13:57:46.000Z
aylien_news_api/api/__init__.py
AYLIEN/aylien_newsapi_python
ab4e667e718e8f919b894d4e4ec76e5d37b2fe74
[ "Apache-2.0" ]
3
2016-09-02T08:22:28.000Z
2018-07-03T10:59:31.000Z
aylien_news_api/api/__init__.py
AYLIEN/aylien_newsapi_python
ab4e667e718e8f919b894d4e4ec76e5d37b2fe74
[ "Apache-2.0" ]
5
2016-12-20T08:17:47.000Z
2022-01-11T22:44:43.000Z
from __future__ import absolute_import # flake8: noqa # import apis into api package from aylien_news_api.api.default_api import DefaultApi
20.285714
54
0.830986
21
142
5.238095
0.666667
0
0
0
0
0
0
0
0
0
0
0.00813
0.133803
142
6
55
23.666667
0.886179
0.288732
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
a58933ab09866b5dda7052f6d4438af5d745d224
52
py
Python
mongodb_bundle/__init__.py
franagustin/mongodb-bundle
a40bf20f92e29b7489671e19ea3b33529e6c4c9b
[ "Apache-2.0" ]
null
null
null
mongodb_bundle/__init__.py
franagustin/mongodb-bundle
a40bf20f92e29b7489671e19ea3b33529e6c4c9b
[ "Apache-2.0" ]
null
null
null
mongodb_bundle/__init__.py
franagustin/mongodb-bundle
a40bf20f92e29b7489671e19ea3b33529e6c4c9b
[ "Apache-2.0" ]
1
2021-08-17T10:40:13.000Z
2021-08-17T10:40:13.000Z
from .bundle import MongoDBBundle, MongoDBContainer
26
51
0.865385
5
52
9
1
0
0
0
0
0
0
0
0
0
0
0
0.096154
52
1
52
52
0.957447
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
a5a6ee71d70e8efc12646f5c139e22d904827bc0
67
py
Python
wut/__init__.py
ninjamar/wut
b1b4b94be2d8b4b8b1b0b39c6cb4b8255387187d
[ "MIT" ]
1
2021-10-09T07:00:11.000Z
2021-10-09T07:00:11.000Z
wut/__init__.py
ninjamar/wut
b1b4b94be2d8b4b8b1b0b39c6cb4b8255387187d
[ "MIT" ]
null
null
null
wut/__init__.py
ninjamar/wut
b1b4b94be2d8b4b8b1b0b39c6cb4b8255387187d
[ "MIT" ]
null
null
null
# wut is this? # wut = Web UTils from .webserver import WebServer
13.4
32
0.716418
10
67
4.8
0.8
0
0
0
0
0
0
0
0
0
0
0
0.208955
67
4
33
16.75
0.90566
0.41791
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
a5ac4f98be6cc823cf048d602290a2e83de1e286
45
py
Python
SWIM-Executables/Windows/pyinstaller-2.0 for windows/buildtests/basic/test_helloworld.py
alexsigaras/SWIM
1a35df8acb26bdcb307a1b8f60e9feba68ed1715
[ "MIT" ]
47
2020-03-08T08:43:28.000Z
2022-03-18T18:51:55.000Z
SWIM-Executables/Windows/pyinstaller-2.0 for windows/buildtests/basic/test_helloworld.py
alexsigaras/SWIM
1a35df8acb26bdcb307a1b8f60e9feba68ed1715
[ "MIT" ]
null
null
null
SWIM-Executables/Windows/pyinstaller-2.0 for windows/buildtests/basic/test_helloworld.py
alexsigaras/SWIM
1a35df8acb26bdcb307a1b8f60e9feba68ed1715
[ "MIT" ]
16
2020-03-08T08:43:30.000Z
2022-01-10T22:05:57.000Z
#!/usr/bin/env python print 'Hello Python!'
11.25
21
0.688889
7
45
4.428571
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.133333
45
3
22
15
0.794872
0.444444
0
0
0
0
0.541667
0
0
0
0
0
0
0
null
null
0
0
null
null
1
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
1
0
5
3c0c97d7c090528c93d3d6e48bf2495c18102b0d
83
py
Python
src/wagtail_personalisation/__init__.py
ixc/wagtail-personalisation
956c1bf4f5846ad86470c41df8b8364bc99ab99b
[ "MIT" ]
68
2018-01-26T22:02:09.000Z
2022-03-23T08:08:54.000Z
src/wagtail_personalisation/__init__.py
ixc/wagtail-personalisation
956c1bf4f5846ad86470c41df8b8364bc99ab99b
[ "MIT" ]
46
2018-05-26T09:26:30.000Z
2022-02-04T15:17:45.000Z
src/wagtail_personalisation/__init__.py
ixc/wagtail-personalisation
956c1bf4f5846ad86470c41df8b8364bc99ab99b
[ "MIT" ]
27
2018-03-28T10:14:26.000Z
2022-02-08T20:54:00.000Z
default_app_config = 'wagtail_personalisation.config.WagtailPersonalisationConfig'
41.5
82
0.903614
7
83
10.285714
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.036145
83
1
83
83
0.9
0
0
0
0
0
0.710843
0.710843
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
3c298cc7f54cfbe10aae85f04a90836a291946e8
68
py
Python
enthought/pyface/workbench/action/setattr_action.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
enthought/pyface/workbench/action/setattr_action.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
enthought/pyface/workbench/action/setattr_action.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
# proxy module from pyface.workbench.action.setattr_action import *
22.666667
52
0.823529
9
68
6.111111
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.102941
68
2
53
34
0.901639
0.176471
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
3c61cfd21c8e9e09aa36b595ef0e45bb2d43dd0a
2,289
py
Python
stellar_sdk/xdr/constants.py
kaotisk-hund/py-stellar-base
30dbe1139d8f0c03c4c20ea3c9a45a19285bedb8
[ "Apache-2.0" ]
341
2015-10-06T20:56:19.000Z
2022-03-23T15:58:54.000Z
stellar_sdk/xdr/constants.py
kaotisk-hund/py-stellar-base
30dbe1139d8f0c03c4c20ea3c9a45a19285bedb8
[ "Apache-2.0" ]
479
2015-11-09T18:39:40.000Z
2022-03-16T06:46:58.000Z
stellar_sdk/xdr/constants.py
kaotisk-hund/py-stellar-base
30dbe1139d8f0c03c4c20ea3c9a45a19285bedb8
[ "Apache-2.0" ]
181
2015-10-01T23:00:59.000Z
2022-03-05T13:42:19.000Z
# This is an automatically generated file. # DO NOT EDIT or your changes may be overwritten MASK_ACCOUNT_FLAGS: int = 0x7 """ XDR Source Code ---------------------------------------------------------------- const MASK_ACCOUNT_FLAGS = 0x7; ---------------------------------------------------------------- """ MASK_ACCOUNT_FLAGS_V17: int = 0xF """ XDR Source Code ---------------------------------------------------------------- const MASK_ACCOUNT_FLAGS_V17 = 0xF; ---------------------------------------------------------------- """ MAX_SIGNERS: int = 20 """ XDR Source Code ---------------------------------------------------------------- const MAX_SIGNERS = 20; ---------------------------------------------------------------- """ MASK_TRUSTLINE_FLAGS: int = 1 """ XDR Source Code ---------------------------------------------------------------- const MASK_TRUSTLINE_FLAGS = 1; ---------------------------------------------------------------- """ MASK_TRUSTLINE_FLAGS_V13: int = 3 """ XDR Source Code ---------------------------------------------------------------- const MASK_TRUSTLINE_FLAGS_V13 = 3; ---------------------------------------------------------------- """ MASK_TRUSTLINE_FLAGS_V17: int = 7 """ XDR Source Code ---------------------------------------------------------------- const MASK_TRUSTLINE_FLAGS_V17 = 7; ---------------------------------------------------------------- """ MASK_OFFERENTRY_FLAGS: int = 1 """ XDR Source Code ---------------------------------------------------------------- const MASK_OFFERENTRY_FLAGS = 1; ---------------------------------------------------------------- """ MASK_CLAIMABLE_BALANCE_FLAGS: int = 0x1 """ XDR Source Code ---------------------------------------------------------------- const MASK_CLAIMABLE_BALANCE_FLAGS = 0x1; ---------------------------------------------------------------- """ LIQUIDITY_POOL_FEE_V18: int = 30 """ XDR Source Code ---------------------------------------------------------------- const LIQUIDITY_POOL_FEE_V18 = 30; ---------------------------------------------------------------- """ MAX_OPS_PER_TX: int = 100 """ XDR Source Code ---------------------------------------------------------------- const MAX_OPS_PER_TX = 100; ---------------------------------------------------------------- """
27.914634
64
0.318917
155
2,289
4.387097
0.303226
0.132353
0.191176
0.264706
0.411765
0.317647
0.317647
0.091176
0
0
0
0.022717
0.076889
2,289
81
65
28.259259
0.299101
0.038008
0
0
1
0
0
0
0
0
0.026866
0
0
1
0
true
0
0
0
0
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
3c62579ec6d51726bc944ce67cccde87790112b1
34
py
Python
copper/shout/parsers/rib/__init__.py
cinepost/Copperfield_FX
1900b506d0a407a3fb5774ab129b984a547ee0b5
[ "Unlicense" ]
6
2016-07-28T13:59:34.000Z
2021-12-28T05:44:15.000Z
copper/shout/parsers/rib/__init__.py
cinepost/Copperfield_FX
1900b506d0a407a3fb5774ab129b984a547ee0b5
[ "Unlicense" ]
5
2016-06-30T10:19:25.000Z
2022-03-11T23:19:01.000Z
copper/shout/parsers/rib/__init__.py
cinepost/Copperfield_FX
1900b506d0a407a3fb5774ab129b984a547ee0b5
[ "Unlicense" ]
3
2019-03-18T05:17:10.000Z
2020-02-14T06:56:40.000Z
from .parser_rib import ParserRIB
17
33
0.852941
5
34
5.6
1
0
0
0
0
0
0
0
0
0
0
0
0.117647
34
1
34
34
0.933333
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
b1c1c5ab1526f2a3e9c4042b8d3d5f92d5c3b790
146
py
Python
dataclass_util/predicates.py
betafcc/dataclass-util
27b7eeaba8302f4c9ebf8c42e6392f2a94292771
[ "MIT" ]
null
null
null
dataclass_util/predicates.py
betafcc/dataclass-util
27b7eeaba8302f4c9ebf8c42e6392f2a94292771
[ "MIT" ]
null
null
null
dataclass_util/predicates.py
betafcc/dataclass-util
27b7eeaba8302f4c9ebf8c42e6392f2a94292771
[ "MIT" ]
null
null
null
from dataclasses import asdict from .meta.predicates import make_module locals().update(make_module(asdict=asdict).__dict__) del make_module
14.6
52
0.815068
20
146
5.6
0.6
0.267857
0
0
0
0
0
0
0
0
0
0
0.109589
146
9
53
16.222222
0.861538
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
b1fc5b399bcbf049aa453832e8c063098b176b65
64
py
Python
python/8Kyu/Enumerable Magic #3 - Does My List Include This.py
athasv/Codewars-data
5e106466e709fd776f23585ad9f652d0d65b48d3
[ "MIT" ]
null
null
null
python/8Kyu/Enumerable Magic #3 - Does My List Include This.py
athasv/Codewars-data
5e106466e709fd776f23585ad9f652d0d65b48d3
[ "MIT" ]
null
null
null
python/8Kyu/Enumerable Magic #3 - Does My List Include This.py
athasv/Codewars-data
5e106466e709fd776f23585ad9f652d0d65b48d3
[ "MIT" ]
null
null
null
def include(arr,item): return True if item in arr else False
32
41
0.734375
12
64
3.916667
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.203125
64
2
41
32
0.921569
0
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0.5
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
591197e8545d562e8a84d4f77bf9868598bf3d5a
40
py
Python
checkmate/__init__.py
CheckMateIO/checkmate_python
2c81a53156d527ceaeaec3d00e3f2cb75163d9f2
[ "MIT" ]
1
2015-08-03T21:02:48.000Z
2015-08-03T21:02:48.000Z
checkmate/__init__.py
CheckMateIO/checkmate_python
2c81a53156d527ceaeaec3d00e3f2cb75163d9f2
[ "MIT" ]
null
null
null
checkmate/__init__.py
CheckMateIO/checkmate_python
2c81a53156d527ceaeaec3d00e3f2cb75163d9f2
[ "MIT" ]
null
null
null
from checkmate import CheckMate # noqa
20
39
0.8
5
40
6.4
0.8
0
0
0
0
0
0
0
0
0
0
0
0.175
40
1
40
40
0.969697
0.1
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
a704c13f9c538df8ae73e2408a1caaf190a6f13a
2,218
py
Python
encodings/cp1251.py
theclashingfritz/Cog-Invasion-Online-Dump
2561abbacb3e2e288e06f3f04b935b5ed589c8f8
[ "Apache-2.0" ]
1
2020-03-12T16:44:10.000Z
2020-03-12T16:44:10.000Z
encodings/cp1251.py
theclashingfritz/Cog-Invasion-Online-Dump
2561abbacb3e2e288e06f3f04b935b5ed589c8f8
[ "Apache-2.0" ]
null
null
null
encodings/cp1251.py
theclashingfritz/Cog-Invasion-Online-Dump
2561abbacb3e2e288e06f3f04b935b5ed589c8f8
[ "Apache-2.0" ]
null
null
null
# uncompyle6 version 3.2.4 # Python bytecode 2.7 (62211) # Decompiled from: Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)] # Embedded file name: encodings.cp1251 import codecs class Codec(codecs.Codec): def encode(self, input, errors='strict'): return codecs.charmap_encode(input, errors, encoding_table) def decode(self, input, errors='strict'): return codecs.charmap_decode(input, errors, decoding_table) class IncrementalEncoder(codecs.IncrementalEncoder): def encode(self, input, final=False): return codecs.charmap_encode(input, self.errors, encoding_table)[0] class IncrementalDecoder(codecs.IncrementalDecoder): def decode(self, input, final=False): return codecs.charmap_decode(input, self.errors, decoding_table)[0] class StreamWriter(Codec, codecs.StreamWriter): pass class StreamReader(Codec, codecs.StreamReader): pass def getregentry(): return codecs.CodecInfo(name='cp1251', encode=Codec().encode, decode=Codec().decode, incrementalencoder=IncrementalEncoder, incrementaldecoder=IncrementalDecoder, streamreader=StreamReader, streamwriter=StreamWriter) decoding_table = u'\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\x0c\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7f\u0402\u0403\u201a\u0453\u201e\u2026\u2020\u2021\u20ac\u2030\u0409\u2039\u040a\u040c\u040b\u040f\u0452\u2018\u2019\u201c\u201d\u2022\u2013\u2014\ufffe\u2122\u0459\u203a\u045a\u045c\u045b\u045f\xa0\u040e\u045e\u0408\xa4\u0490\xa6\xa7\u0401\xa9\u0404\xab\xac\xad\xae\u0407\xb0\xb1\u0406\u0456\u0491\xb5\xb6\xb7\u0451\u2116\u0454\xbb\u0458\u0405\u0455\u0457\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f' encoding_table = codecs.charmap_build(decoding_table)
54.097561
981
0.77367
318
2,218
5.355346
0.694969
0.035232
0.044627
0.021139
0.11744
0.091603
0.091603
0
0
0
0
0.258789
0.076646
2,218
41
982
54.097561
0.572754
0.086564
0
0.1
0
0.05
0.073195
0.060336
0
0
0
0
0
1
0.25
false
0.1
0.05
0.25
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
1
1
0
0
5
a731c6a3189620a1e3dacd5930e4a0d43042844f
284
py
Python
geotag/admin.py
juancferrer/django-geotag
af83d6bcefc25b3ac862a65a0713c3a8c350531f
[ "BSD-3-Clause" ]
1
2017-03-22T07:32:54.000Z
2017-03-22T07:32:54.000Z
geotag/admin.py
juancferrer/django-geotag
af83d6bcefc25b3ac862a65a0713c3a8c350531f
[ "BSD-3-Clause" ]
null
null
null
geotag/admin.py
juancferrer/django-geotag
af83d6bcefc25b3ac862a65a0713c3a8c350531f
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.gis import admin from models import * admin.site.register(PointLocation, admin.OSMGeoAdmin) admin.site.register(MultiPointLocation, admin.OSMGeoAdmin) admin.site.register(PolyLocation, admin.OSMGeoAdmin) admin.site.register(MultiPolyLocation, admin.OSMGeoAdmin)
31.555556
58
0.841549
33
284
7.242424
0.424242
0.150628
0.284519
0.313808
0.414226
0
0
0
0
0
0
0
0.06338
284
8
59
35.5
0.898496
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
59796495aba57b2c74a7ef5c3142070e0c4eb330
124
py
Python
cgi/util/__init__.py
wedddy0707/categorial_grammar_induction_of_emergent_language
a84a5a7d5e69af0ad2d90fa238a531880f10f0d1
[ "MIT" ]
null
null
null
cgi/util/__init__.py
wedddy0707/categorial_grammar_induction_of_emergent_language
a84a5a7d5e69af0ad2d90fa238a531880f10f0d1
[ "MIT" ]
null
null
null
cgi/util/__init__.py
wedddy0707/categorial_grammar_induction_of_emergent_language
a84a5a7d5e69af0ad2d90fa238a531880f10f0d1
[ "MIT" ]
null
null
null
from .preprocess_corpus_df import basic_preprocess_of_corpus_df from .seed import set_random_seed from .str2bool import s2b
31
63
0.879032
20
124
5.05
0.6
0.158416
0
0
0
0
0
0
0
0
0
0.017857
0.096774
124
3
64
41.333333
0.883929
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
5991b3bfe835a3a4a30320f5c98b695f3feba6e7
172
py
Python
datafreezer/templatetags/tags.py
thirawr/django-datafreezer-sample
ef007e9ea583c963c012224fbab133154214cf0c
[ "MIT" ]
1
2017-03-07T15:53:31.000Z
2017-03-07T15:53:31.000Z
datafreezer/templatetags/tags.py
thirawr/django-datafreezer-sample
ef007e9ea583c963c012224fbab133154214cf0c
[ "MIT" ]
null
null
null
datafreezer/templatetags/tags.py
thirawr/django-datafreezer-sample
ef007e9ea583c963c012224fbab133154214cf0c
[ "MIT" ]
2
2016-09-02T04:53:06.000Z
2018-04-11T21:38:22.000Z
from django import template from django.utils.text import slugify import json register = template.Library() @register.filter def JSONify(value): return json.dumps(value)
19.111111
37
0.802326
24
172
5.75
0.666667
0.144928
0
0
0
0
0
0
0
0
0
0
0.116279
172
9
38
19.111111
0.907895
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.428571
0.142857
0.714286
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
5
59b900c6c8c39a9aa93d77f475a8e9c34f63f7e8
64
py
Python
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/accounts/models/__init__.py
Casanova-Development/cookiecutter-backend-django
ba669853b37826c699aba50f0ea3b478c21164a3
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/accounts/models/__init__.py
Casanova-Development/cookiecutter-backend-django
ba669853b37826c699aba50f0ea3b478c21164a3
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/accounts/models/__init__.py
Casanova-Development/cookiecutter-backend-django
ba669853b37826c699aba50f0ea3b478c21164a3
[ "BSD-3-Clause" ]
null
null
null
"""Models for application Accounts.""" from .users import User
16
38
0.734375
8
64
5.875
1
0
0
0
0
0
0
0
0
0
0
0
0.140625
64
3
39
21.333333
0.854545
0.5
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
59c4ec9bfa20149b2734697a9833d7797cff0c9a
286
py
Python
mock/buildbot_secret.py
iblis17/julia-buildbot
c91b83381568ad207999edbff183ee75caca7ce5
[ "MIT" ]
null
null
null
mock/buildbot_secret.py
iblis17/julia-buildbot
c91b83381568ad207999edbff183ee75caca7ce5
[ "MIT" ]
null
null
null
mock/buildbot_secret.py
iblis17/julia-buildbot
c91b83381568ad207999edbff183ee75caca7ce5
[ "MIT" ]
null
null
null
GITHUB_WEBHOOK_SECRET="nothing to see here" GITHUB_OAUTH_CLIENT_ID="nothing to see here" GITHUB_OAUTH_CLIENT_SECRET="nothing to see here" COVERALLS_REPO_TOKEN="nothing to see here" CODECOV_REPO_TOKEN="nothing to see here" db_user="nothing to see here" db_password="nothing to see here"
35.75
48
0.828671
49
286
4.55102
0.346939
0.282511
0.376682
0.502242
0.735426
0.520179
0.295964
0
0
0
0
0
0.097902
286
7
49
40.857143
0.864341
0
0
0
0
0
0.465035
0
0
0
0
0
0
1
0
false
0.142857
0
0
0
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
5
59e27a1be12f9b5d4ed1571680ecd81557ede281
645
py
Python
aqbe/tests/test_eval.py
stegben/qbe
2ab31f97ddced510689cce8e53d0585b735d47a0
[ "MIT" ]
null
null
null
aqbe/tests/test_eval.py
stegben/qbe
2ab31f97ddced510689cce8e53d0585b735d47a0
[ "MIT" ]
null
null
null
aqbe/tests/test_eval.py
stegben/qbe
2ab31f97ddced510689cce8e53d0585b735d47a0
[ "MIT" ]
null
null
null
import pytest from aqbe.eval import overlap_ratio, match_ratio def test_overlap_ratio(): assert overlap_ratio(0, 1, 0, 1) == pytest.approx(1.) assert overlap_ratio(0, 1, 1, 2) == pytest.approx(0.) assert overlap_ratio(0, 1, 0, 1.1) == pytest.approx(1./1.1) assert overlap_ratio(0, 1, -1, 1) == pytest.approx(1./2.) assert overlap_ratio(0, 1, 0, 0.5) == pytest.approx(0.5/1.) assert overlap_ratio(0, 1, 0.5, 1) == pytest.approx(0.5/1.) assert overlap_ratio(0, 1, -1, 2) == pytest.approx(1./3.) def test_match_ratio(): assert match_ratio('a', [['a'], ['a', 'b'], ['a', 'b', 'c']], 0.4) == pytest.approx(2./3.)
35.833333
94
0.615504
115
645
3.330435
0.182609
0.281984
0.328982
0.347258
0.613577
0.54047
0.483029
0.310705
0.310705
0.310705
0
0.09311
0.167442
645
17
95
37.941176
0.620112
0
0
0
0
0
0.010853
0
0
0
0
0
0.666667
1
0.166667
true
0
0.166667
0
0.333333
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
1
0
0
0
0
0
0
5
ab9a886c7f85390c21f2af8b78dfa687342e5deb
191
py
Python
pipecutter/__init__.py
binste/pipecutter
18cac9340ea9f192e524b8a1b8f351cba972d45b
[ "MIT" ]
3
2020-01-05T18:32:40.000Z
2021-10-13T09:37:14.000Z
pipecutter/__init__.py
binste/pipecutter
18cac9340ea9f192e524b8a1b8f351cba972d45b
[ "MIT" ]
null
null
null
pipecutter/__init__.py
binste/pipecutter
18cac9340ea9f192e524b8a1b8f351cba972d45b
[ "MIT" ]
null
null
null
import os import luigi.task from pipecutter.deps import print_tree, build_graph from pipecutter.interface import run from pipecutter.targets import remove_targets __version__ = "2.1.0dev"
19.1
51
0.827225
28
191
5.392857
0.678571
0.278146
0
0
0
0
0
0
0
0
0
0.017857
0.120419
191
9
52
21.222222
0.880952
0
0
0
0
0
0.041885
0
0
0
0
0
0
1
0
false
0
0.833333
0
0.833333
0.166667
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
abe73dad40afe86cc5db7f02ebdb069833a27075
122
py
Python
sandpiper/conversion/__init__.py
Hawkpath/Sandpiper
64ee2653a33a64a76b8a73d1c1611c8b9065e01a
[ "MIT" ]
1
2020-10-06T11:28:04.000Z
2020-10-06T11:28:04.000Z
sandpiper/conversion/__init__.py
Hawkpath/Sandpiper
64ee2653a33a64a76b8a73d1c1611c8b9065e01a
[ "MIT" ]
34
2020-10-06T18:21:38.000Z
2021-06-02T21:48:26.000Z
sandpiper/conversion/__init__.py
Hawkpath/Sandpiper
64ee2653a33a64a76b8a73d1c1611c8b9065e01a
[ "MIT" ]
1
2020-12-18T19:32:35.000Z
2020-12-18T19:32:35.000Z
from discord.ext.commands import Bot from .cog import Conversion def setup(bot: Bot): bot.add_cog(Conversion(bot))
15.25
36
0.745902
19
122
4.736842
0.578947
0.133333
0
0
0
0
0
0
0
0
0
0
0.155738
122
7
37
17.428571
0.873786
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.5
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
5
f9ff766e518a374cbdcf289815fbfe2b5190bbb7
72
py
Python
tests/python/__main__.py
ProvoK/trio-asyncio
8098e93a63eedf7188545cbda45e54c0bcdd85fc
[ "Apache-2.0", "MIT" ]
null
null
null
tests/python/__main__.py
ProvoK/trio-asyncio
8098e93a63eedf7188545cbda45e54c0bcdd85fc
[ "Apache-2.0", "MIT" ]
null
null
null
tests/python/__main__.py
ProvoK/trio-asyncio
8098e93a63eedf7188545cbda45e54c0bcdd85fc
[ "Apache-2.0", "MIT" ]
null
null
null
from . import load_tests # noqa: F401 import unittest unittest.main()
14.4
38
0.75
10
72
5.3
0.8
0
0
0
0
0
0
0
0
0
0
0.05
0.166667
72
4
39
18
0.833333
0.138889
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
e61a8a88a3b26b2284f2b3a267ea3a88ae8a0692
501
py
Python
ui_tests/exporter/pages/generic_application/ultimate_end_users.py
django-doctor/lite-frontend
330ff9575fd22d7c4c42698ac2d653244e6180d6
[ "MIT" ]
1
2021-10-16T16:36:58.000Z
2021-10-16T16:36:58.000Z
ui_tests/exporter/pages/generic_application/ultimate_end_users.py
django-doctor/lite-frontend
330ff9575fd22d7c4c42698ac2d653244e6180d6
[ "MIT" ]
45
2020-08-11T14:37:46.000Z
2022-03-29T17:03:02.000Z
ui_tests/exporter/pages/generic_application/ultimate_end_users.py
django-doctor/lite-frontend
330ff9575fd22d7c4c42698ac2d653244e6180d6
[ "MIT" ]
3
2021-02-01T06:26:19.000Z
2022-02-21T23:02:46.000Z
from ui_tests.exporter.pages.BasePage import BasePage class GenericApplicationUltimateEndUsers(BasePage): BUTTON_ADD_ULTIMATE_RECIPIENT_ID = "button-add-ultimate-recipient" TABLE_BODY = "tbody" TABLE_ROW = "tr" def get_ultimate_recipients(self): return self.driver.find_elements_by_css_selector(self.TABLE_BODY + " " + self.TABLE_ROW) def click_add_ultimate_recipient_button(self): self.driver.find_element_by_id(self.BUTTON_ADD_ULTIMATE_RECIPIENT_ID).click()
33.4
96
0.780439
65
501
5.615385
0.492308
0.120548
0.219178
0.213699
0.153425
0
0
0
0
0
0
0
0.135729
501
14
97
35.785714
0.842956
0
0
0
0
0
0.073852
0.057884
0
0
0
0
0
1
0.222222
false
0
0.111111
0.111111
0.888889
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
e63b41c836ebdfdd34295f90a67ee378a3f4fe02
71
py
Python
Lesson/lesson-oo-405.py
v-v-tarasov/python-my-lesson
57f8985cdfe9d9439452d6d3d0f89cf4bfbf2d14
[ "MIT" ]
null
null
null
Lesson/lesson-oo-405.py
v-v-tarasov/python-my-lesson
57f8985cdfe9d9439452d6d3d0f89cf4bfbf2d14
[ "MIT" ]
null
null
null
Lesson/lesson-oo-405.py
v-v-tarasov/python-my-lesson
57f8985cdfe9d9439452d6d3d0f89cf4bfbf2d14
[ "MIT" ]
null
null
null
a = list(map(str, input().split())) print('\n'.join(list(map(str, a))))
35.5
35
0.591549
13
71
3.230769
0.692308
0.333333
0.47619
0
0
0
0
0
0
0
0
0
0.070423
71
2
36
35.5
0.636364
0
0
0
0
0
0.027778
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
5
e6412833dfa7e0abe5276e18954c64f9775682e9
7,031
py
Python
src/datasets/interface.py
wogong/Deep-SVDD-PyTorch
9a43077fa4dea56bc2134e668aa920b6920c87d3
[ "MIT" ]
null
null
null
src/datasets/interface.py
wogong/Deep-SVDD-PyTorch
9a43077fa4dea56bc2134e668aa920b6920c87d3
[ "MIT" ]
null
null
null
src/datasets/interface.py
wogong/Deep-SVDD-PyTorch
9a43077fa4dea56bc2134e668aa920b6920c87d3
[ "MIT" ]
null
null
null
from torch.utils.data import Subset from PIL import Image from base.torchvision_dataset import TorchvisionDataset from .preprocessing import get_target_label_idx, global_contrast_normalization from .outlier_datasets import (load_cifar10_with_outliers, load_cifar100_with_outliers, load_fashion_mnist_with_outliers, load_mnist_with_outliers, load_svhn_with_outliers) import torch.utils.data as data import torchvision.transforms as transforms import numpy as np class MNIST(TorchvisionDataset): def __init__(self, normal_class, ratio): super().__init__() transform_train = transforms.Compose([transforms.ToPILImage(), transforms.Resize(28), transforms.ToTensor(), ]) transform_test = transforms.Compose([transforms.ToPILImage(), transforms.Resize(28), transforms.ToTensor(), ]) x_train, y_train = load_mnist_with_outliers(normal_class, ratio) # random sampling if the number of data is too large max_sample_num = 12000 if x_train.shape[0] > max_sample_num: selected = np.random.choice(x_train.shape[0], max_sample_num, replace=False) x_train = x_train[selected, :] y_train = y_train[selected] self.train_set = trainset_pytorch(train_data=x_train, train_labels=y_train, transform=transform_train) self.test_set = trainset_pytorch(train_data=x_train, train_labels=y_train, transform=transform_test) class FMNIST(TorchvisionDataset): def __init__(self, normal_class, ratio): super().__init__() transform_train = transforms.Compose([transforms.ToPILImage(), transforms.Resize(28), transforms.ToTensor(), ]) transform_test = transforms.Compose([transforms.ToPILImage(), transforms.Resize(28), transforms.ToTensor(), ]) x_train, y_train = load_fashion_mnist_with_outliers(normal_class, ratio) # random sampling if the number of data is too large max_sample_num = 12000 if x_train.shape[0] > max_sample_num: selected = np.random.choice(x_train.shape[0], max_sample_num, replace=False) x_train = x_train[selected, :] y_train = y_train[selected] self.train_set = trainset_pytorch(train_data=x_train, train_labels=y_train, transform=transform_train) self.test_set = trainset_pytorch(train_data=x_train, train_labels=y_train, transform=transform_test) class SVHN(TorchvisionDataset): def __init__(self, normal_class, ratio): super().__init__() transform_train = transforms.Compose([transforms.ToTensor(), ]) transform_test = transforms.Compose([transforms.ToTensor(), ]) x_train, y_train = load_svhn_with_outliers(normal_class, ratio) # random sampling if the number of data is too large max_sample_num = 12000 if x_train.shape[0] > max_sample_num: selected = np.random.choice(x_train.shape[0], max_sample_num, replace=False) x_train = x_train[selected, :] y_train = y_train[selected] self.train_set = trainset_pytorch(train_data=x_train, train_labels=y_train, transform=transform_train) self.test_set = trainset_pytorch(train_data=x_train, train_labels=y_train, transform=transform_test) class CIFAR10(TorchvisionDataset): def __init__(self, normal_class, ratio): super().__init__() transform_train = transforms.Compose([transforms.ToTensor(), ]) transform_test = transforms.Compose([transforms.ToTensor(), ]) x_train, y_train = load_cifar10_with_outliers(normal_class, ratio) # random sampling if the number of data is too large max_sample_num = 12000 if x_train.shape[0] > max_sample_num: selected = np.random.choice(x_train.shape[0], max_sample_num, replace=False) x_train = x_train[selected, :] y_train = y_train[selected] self.train_set = trainset_pytorch(train_data=x_train, train_labels=y_train, transform=transform_train) self.test_set = trainset_pytorch(train_data=x_train, train_labels=y_train, transform=transform_test) class CIFAR100(TorchvisionDataset): def __init__(self, normal_class, ratio): super().__init__() transform_train = transforms.Compose([transforms.ToTensor(), ]) transform_test = transforms.Compose([transforms.ToTensor(), ]) x_train, y_train = load_cifar100_with_outliers(normal_class, ratio) # random sampling if the number of data is too large max_sample_num = 12000 if x_train.shape[0] > max_sample_num: selected = np.random.choice(x_train.shape[0], max_sample_num, replace=False) x_train = x_train[selected, :] y_train = y_train[selected] self.train_set = trainset_pytorch(train_data=x_train, train_labels=y_train, transform=transform_train) self.test_set = trainset_pytorch(train_data=x_train, train_labels=y_train, transform=transform_test) class trainset_pytorch(data.Dataset): def __init__(self, train_data, train_labels, transform=None, target_transform=None): self.transform = transform self.target_transform = target_transform self.train_data = train_data # ndarray self.train_labels = train_labels def __getitem__(self, index): """ Args: index (int): Index Returns: tuple: (image, target) where target is index of the target class. """ img, target = self.train_data[index], self.train_labels[index] # doing this so that it is consistent with all other datasets # to return a PIL Image # img = Image.fromarray(img) # used if the img is [H, W, C] and the dtype is uint8 if self.transform is not None: # img_int = np.uint8(denormalize_minus1_1(img)) # img = Image.fromarray(img_int) img = self.transform(img) if self.target_transform is not None: target = self.target_transform(target) return img, target, index def __len__(self): return len(self.train_data)
41.358824
119
0.607737
788
7,031
5.079949
0.138325
0.052461
0.044966
0.029978
0.728703
0.71996
0.71996
0.71996
0.71996
0.71996
0
0.01285
0.313753
7,031
169
120
41.60355
0.816788
0.087043
0
0.669643
0
0
0
0
0
0
0
0
0
1
0.071429
false
0
0.071429
0.008929
0.214286
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
e642b065b697ab9f00607c1cc6bf1e95a7e18127
90
py
Python
setup.py
dfrnks/power-bi-publish
b57ddae47d717cc48f40ff5142280386aef7dab6
[ "Apache-2.0" ]
null
null
null
setup.py
dfrnks/power-bi-publish
b57ddae47d717cc48f40ff5142280386aef7dab6
[ "Apache-2.0" ]
null
null
null
setup.py
dfrnks/power-bi-publish
b57ddae47d717cc48f40ff5142280386aef7dab6
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages setup(name="pipe", packages=find_packages())
22.5
44
0.8
12
90
5.833333
0.666667
0.342857
0
0
0
0
0
0
0
0
0
0
0.088889
90
3
45
30
0.853659
0
0
0
0
0
0.044444
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
e64cb5822d6e7f41baf38533d470347e0241aa2b
141
py
Python
spherov2/toy/sprk2.py
wwj718/spherov2.py
baa62211ad4691e7eb6593ff77d6b8a73856e695
[ "MIT" ]
null
null
null
spherov2/toy/sprk2.py
wwj718/spherov2.py
baa62211ad4691e7eb6593ff77d6b8a73856e695
[ "MIT" ]
null
null
null
spherov2/toy/sprk2.py
wwj718/spherov2.py
baa62211ad4691e7eb6593ff77d6b8a73856e695
[ "MIT" ]
null
null
null
from spherov2.toy import Toy from spherov2.types import ToyType class Sprk2(Toy): toy_type = ToyType('Sphero SPRK+', 'SK-', 'SK', .06)
20.142857
56
0.695035
21
141
4.619048
0.619048
0.247423
0
0
0
0
0
0
0
0
0
0.042373
0.163121
141
6
57
23.5
0.779661
0
0
0
0
0
0.120567
0
0
0
0
0
0
1
0
false
0
0.5
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
e6594a60b8023d522af73e0e06f465708ae6a753
3,970
py
Python
0481.Fiscal-Colombia-MHCP-Fiscal_Balance_of_the_Non-Financial_Public_Sector.py
alphacastio/connectors-colombia-macro-basics
1b66625bd66823dd5fb5f5191748a50fbbdaa93f
[ "MIT" ]
null
null
null
0481.Fiscal-Colombia-MHCP-Fiscal_Balance_of_the_Non-Financial_Public_Sector.py
alphacastio/connectors-colombia-macro-basics
1b66625bd66823dd5fb5f5191748a50fbbdaa93f
[ "MIT" ]
null
null
null
0481.Fiscal-Colombia-MHCP-Fiscal_Balance_of_the_Non-Financial_Public_Sector.py
alphacastio/connectors-colombia-macro-basics
1b66625bd66823dd5fb5f5191748a50fbbdaa93f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[18]: import pandas as pd import numpy as np import datetime import urllib import time from urllib.request import urlopen import requests from alphacast import Alphacast from dotenv import dotenv_values API_KEY = dotenv_values(".env").get("API_KEY") alphacast = Alphacast(API_KEY) url = "https://www.minhacienda.gov.co/webcenter/ShowProperty?nodeId=%2FConexionContent%2FWCC_CLUSTER-162985%2F%2FidcPrimaryFile&revision=latestreleased" r = requests.get(url ,allow_redirects=False, verify=False) df = pd.read_excel(r.content, skiprows= 2) df = df.iloc[:-2 , 1:].T df.columns = ["Date", "Sector Público No Financiero (SPNF)", "Sector Público No Financiero (SPNF) - Gobierno General (GG)", "Sector Público No Financiero (SPNF) - Gobierno General (GG) - Gobierno central", "Sector Público No Financiero (SPNF) - Gobierno General (GG) - Gobierno central - Gobierno Nacional Central (GNC)", "Sector Público No Financiero (SPNF) - Gobierno General (GG) - Gobierno central - Resto del CG:", "Sector Público No Financiero (SPNF) - Gobierno General (GG) - Gobierno central - Establecimientos públicos", "Sector Público No Financiero (SPNF) - Gobierno General (GG) - Gobierno central - Del cual, Agencia Nacional de Hidrocarburos (ANH)", "Sector Público No Financiero (SPNF) - Gobierno General (GG) - Gobierno central - Fondo Nacional del Café (FNC)", "Sector Público No Financiero (SPNF) - Gobierno General (GG) - Gobierno central - Fondo de Estabilización de Precios de los Combustibles (FEPC)", "Sector Público No Financiero (SPNF) - Gobierno General (GG) - Gobierno central - Fondo Nacional para el Desarrollo de la Infraestructura (Fondes)*", " Sector Público No Financiero (SPNF) - Gobierno General (GG) - Regionales y locales", "Sector Público No Financiero (SPNF) - Gobierno General (GG) - Regionales y locales - Administraciones centrales de las entidades territoriales (ET)", "Sector Público No Financiero (SPNF) - Gobierno General (GG) - Regionales y locales - Sistema General de Regalías (SGR)", "Sector Público No Financiero (SPNF) - Gobierno General (GG) - Regionales y locales - Fondo de Ahorro y Estabilización Petrolera (FAEP)", " Sector Público No Financiero (SPNF) - Gobierno General (GG) - Seguridad Social", "Sector Público No Financiero (SPNF) - Gobierno General (GG) - Regionales y locales - Salud", "Sector Público No Financiero (SPNF) - Gobierno General (GG) - Regionales y locales - Pensión", " Sector Público No Financiero (SPNF) - Empresas", " Sector Público No Financiero (SPNF) - Empresas - Empresas nacionales", "Sector Público No Financiero (SPNF) - Empresas - Empresas nacionales - Sector eléctrico", "Sector Público No Financiero (SPNF) - Empresas - Empresas nacionales - Ecopetrol", "Sector Público No Financiero (SPNF) - Empresas - Empresas nacionales - Telecom", " Sector Público No Financiero (SPNF) - Empresas - Empresas locales", "Sector Público No Financiero (SPNF) - Empresas - Empresas locales - Empresas Públicas de Medellín (EPM)", "Sector Público No Financiero (SPNF) - Empresas - Empresas locales - Empresa de Telecomunicaciones de Bogotá (ETB)", "Sector Público No Financiero (SPNF) - Empresas - Empresas locales - Metro de Medellín ", "Sector Público No Financiero (SPNF) - Empresas - Empresas locales - Empresa de Acueducto y Alcantarillado de Bogotá (EAAB)", "Sector Público No Financiero (SPNF) - Empresas - Empresas locales - Empresas Municipales de Cali (Emcali)", "Sector Público No Modelado (SPNM)", "Balance primario del SPNF"] df = df.iloc[1: , :] # In[20]: df['Date'] = df['Date'].astype(str) + "-01-01" df # In[21]: df['Date'] = df['Date'].astype(str).str.replace('.0', "", regex=False) df['Date'] = pd.to_datetime(df['Date']) df['Date'] = df['Date'].dt.date df = df.set_index(['Date']) df["country"] = 'Colombia' alphacast.datasets.dataset(481).upload_data_from_df(df, deleteMissingFromDB = True, onConflictUpdateDB = True, uploadIndex=True) # In[ ]:
72.181818
2,910
0.739547
514
3,970
5.68677
0.31323
0.128977
0.14882
0.23948
0.573041
0.56312
0.536093
0.536093
0.431406
0.350667
0
0.008522
0.142821
3,970
54
2,911
73.518519
0.850426
0.016373
0
0
0
0.461538
0.766881
0
0
0
0
0
0
1
0
false
0
0.346154
0
0.346154
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
05273f09a10ff74674d7614b2c6374217d98a4f2
175
py
Python
src/config/__init__.py
salieri/2d-enhance
9ec2f3c63161d44ce0b25540eccf26e2c5cdccf0
[ "MIT" ]
null
null
null
src/config/__init__.py
salieri/2d-enhance
9ec2f3c63161d44ce0b25540eccf26e2c5cdccf0
[ "MIT" ]
3
2021-06-08T20:14:32.000Z
2022-03-11T23:56:59.000Z
src/config/__init__.py
salieri/2d-enhance
9ec2f3c63161d44ce0b25540eccf26e2c5cdccf0
[ "MIT" ]
null
null
null
from .config import Config, load_config, ConfigOutputTarget, ConfigEffect,\ ConfigContentType, ConfigBackgroundType, ConfigContentTypeShape from .run_opts import RunOpts
35
75
0.84
16
175
9.0625
0.75
0
0
0
0
0
0
0
0
0
0
0
0.108571
175
4
76
43.75
0.929487
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
0557801e96fb1fff73d892c18ad768fe8f63a3ae
113
py
Python
sfepy/geom/__init__.py
olivierverdier/sfepy
83aefb7b33ea17f4acb83388ba8bc7314c77616c
[ "BSD-3-Clause" ]
1
2015-07-30T13:47:23.000Z
2015-07-30T13:47:23.000Z
sfepy/geom/__init__.py
olivierverdier/sfepy
83aefb7b33ea17f4acb83388ba8bc7314c77616c
[ "BSD-3-Clause" ]
null
null
null
sfepy/geom/__init__.py
olivierverdier/sfepy
83aefb7b33ea17f4acb83388ba8bc7314c77616c
[ "BSD-3-Clause" ]
null
null
null
from gmsh import read_gmsh from femlab import write_femlab from tetgen import read_tetgen,write_tetgen,runtetgen
28.25
53
0.876106
18
113
5.277778
0.444444
0.210526
0
0
0
0
0
0
0
0
0
0
0.106195
113
3
54
37.666667
0.940594
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
055cca9784106a9ed3ed3ac7173bf50cee00f938
116
py
Python
modules/detection/models/YOLO/modules/__init__.py
martinhoang11/vietnamese-ocr-toolbox
524b4908bedceb0c87b2c7cd7b5e3f6e1126ace5
[ "Apache-2.0" ]
24
2021-08-09T00:47:22.000Z
2022-03-06T09:38:48.000Z
modules/detection/models/YOLO/modules/__init__.py
martinhoang11/vietnamese-ocr-toolbox
524b4908bedceb0c87b2c7cd7b5e3f6e1126ace5
[ "Apache-2.0" ]
3
2021-07-19T16:01:37.000Z
2022-03-03T07:09:03.000Z
modules/detection/models/YOLO/modules/__init__.py
martinhoang11/vietnamese-ocr-toolbox
524b4908bedceb0c87b2c7cd7b5e3f6e1126ace5
[ "Apache-2.0" ]
8
2021-11-08T12:39:05.000Z
2022-01-30T14:59:37.000Z
from .yolo import Yolov4, Yolov5 from .utils import non_max_suppression, intersect_dicts from .loss import YoloLoss
29
55
0.836207
17
116
5.529412
0.764706
0
0
0
0
0
0
0
0
0
0
0.019608
0.12069
116
3
56
38.666667
0.901961
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
055e46bb1bde3e32b1a7f996a1aa74d6b5548975
3,296
py
Python
allhub/repos/webhooks.py
srinivasreddy/allhub
ff20858c9984da5c4edd5043c39eed3b6d5d693d
[ "Apache-2.0" ]
2
2019-10-07T15:46:33.000Z
2019-11-26T04:30:39.000Z
allhub/repos/webhooks.py
srinivasreddy/allhub
ff20858c9984da5c4edd5043c39eed3b6d5d693d
[ "Apache-2.0" ]
1
2020-03-09T14:44:04.000Z
2020-03-09T14:44:04.000Z
allhub/repos/webhooks.py
srinivasreddy/allhub
ff20858c9984da5c4edd5043c39eed3b6d5d693d
[ "Apache-2.0" ]
2
2019-10-08T05:22:37.000Z
2019-10-08T06:20:47.000Z
from allhub.response import Response class WebHooksMixin: def repo_hooks(self, owner, repo): url = "/repos/{owner}/{repo}/hooks".format(owner=owner, repo=repo) self.response = Response(self.get(url), "Hooks") return self.response.transform() def repo_hook(self, owner, repo, hook_id): url = "/repos/{owner}/{repo}/hooks/{hook_id}".format( owner=owner, repo=repo, hook_id=hook_id ) self.response = Response(self.get(url), "Hook") return self.response.transform() def create_repo_hook(self, owner, repo, config, events, name="web", active=True): url = "/repos/{owner}/{repo}/hooks".format(owner=owner, repo=repo) assert isinstance(config, dict) assert isinstance(events, (list, tuple)) params = {"name": name, "active": active, "events": events, "config": config} self.response = Response(self.post(url, params=params), "Hook") return self.response.transform() def edit_repo_hook( self, owner, repo, hook_id, config, events, add_events, remove_events, active=True, ): url = "/repos/{owner}/{repo}/hooks/{hook_id}".format( owner=owner, repo=repo, hook_id=hook_id ) assert isinstance(config, dict) assert isinstance(events, (list, tuple)) params = { "active": active, "events": events, "add_events": add_events, "remove_events": remove_events, "config": config, } self.response = Response(self.patch(url, params=params), "Hook") return self.response.transform() def test_repo_push_hook(self, owner, repo, hook_id): url = "/repos/{owner}/{repo}/hooks/{hook_id}/tests".format( owner=owner, repo=repo, hook_id=hook_id ) self.response = Response(self.post(url), "") if self.response.status_code == 204: return True raise ValueError( "test_push_hook(.....) returned {status_code}, instead it should return 204.".format( status_code=self.response.status_code ) ) def ping_repo_hook(self, owner, repo, hook_id): url = "/repos/{owner}/{repo}/hooks/{hook_id}/pings".format( owner=owner, repo=repo, hook_id=hook_id ) self.response = Response(self.post(url), "") if self.response.status_code == 204: return True raise ValueError( "ping_hook(.....) returned {status_code}, instead it should return 204.".format( status_code=self.response.status_code ) ) def delete_repo_hook(self, owner, repo, hook_id): url = "/repos/{owner}/{repo}/hooks/{hook_id}".format( owner=owner, repo=repo, hook_id=hook_id ) self.response = Response(self.delete(url), "") if self.response.status_code == 204: return True raise ValueError( "delete_hook(.....) returned {status_code}, instead it should return 204.".format( status_code=self.response.status_code ) ) # TODO: Need to implement PubSubHubbub API. # Subscribing API.
35.826087
97
0.581007
379
3,296
4.907652
0.158311
0.101613
0.053763
0.063978
0.847849
0.791398
0.751613
0.681183
0.681183
0.628495
0
0.00766
0.287015
3,296
91
98
36.21978
0.78383
0.0179
0
0.4
0
0
0.170377
0.084106
0
0
0
0.010989
0.05
1
0.0875
false
0
0.0125
0
0.2
0
0
0
0
null
0
0
0
1
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
5
05764b12f66f77d1241cb5f26f33809de009ae13
29
py
Python
start.py
nadhirxz/athan-parser
3ebb99d27e592e87e098dfb8582f328a8d0e0bc2
[ "MIT" ]
1
2022-01-09T23:48:18.000Z
2022-01-09T23:48:18.000Z
start.py
nadhirxz/athan-parser
3ebb99d27e592e87e098dfb8582f328a8d0e0bc2
[ "MIT" ]
null
null
null
start.py
nadhirxz/athan-parser
3ebb99d27e592e87e098dfb8582f328a8d0e0bc2
[ "MIT" ]
null
null
null
import scrape, timing, offset
29
29
0.827586
4
29
6
1
0
0
0
0
0
0
0
0
0
0
0
0.103448
29
1
29
29
0.923077
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5