id
int64
0
458k
file_name
stringlengths
4
119
file_path
stringlengths
14
227
content
stringlengths
24
9.96M
size
int64
24
9.96M
language
stringclasses
1 value
extension
stringclasses
14 values
total_lines
int64
1
219k
avg_line_length
float64
2.52
4.63M
max_line_length
int64
5
9.91M
alphanum_fraction
float64
0
1
repo_name
stringlengths
7
101
repo_stars
int64
100
139k
repo_forks
int64
0
26.4k
repo_open_issues
int64
0
2.27k
repo_license
stringclasses
12 values
repo_extraction_date
stringclasses
433 values
16,000
legos.py
OpenRCE_sulley/unit_tests/legos.py
from sulley import * def run (): tag() ndr_string() ber() # clear out the requests. blocks.REQUESTS = {} blocks.CURRENT = None ######################################################################################################################## def tag (): s_initialize("UNIT TEST TAG...
1,500
Python
.py
38
35.026316
120
0.458994
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,001
blocks.py
OpenRCE_sulley/unit_tests/blocks.py
from sulley import * def run (): groups_and_num_test_cases() dependencies() repeaters() return_current_mutant() exhaustion() # clear out the requests. blocks.REQUESTS = {} blocks.CURRENT = None #########################################################################################...
7,552
Python
.py
162
38.993827
121
0.547337
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,002
primitives.py
OpenRCE_sulley/unit_tests/primitives.py
from sulley import * def run (): signed_tests() string_tests() fuzz_extension_tests() # clear out the requests. blocks.REQUESTS = {} blocks.CURRENT = None ######################################################################################################################## def signed_test...
4,385
Python
.py
92
42.391304
120
0.570291
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,003
generate_epydocs.bat
OpenRCE_sulley/docs/generate_epydocs.bat
c:\Python27\python.exe c:\Python27\Scripts\epydoc.py -o Sulley --css blue --name "Sulley: Fuzzing Framework" --url "http://pedram.openrce.org" ..\sulley
152
Python
.py
1
152
152
0.730263
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,004
sessions.py
OpenRCE_sulley/sulley/sessions.py
import os import re import sys import zlib import time import socket import httplib import cPickle import threading import BaseHTTPServer import httplib import logging import blocks import pedrpc import pgraph import sex import primitives ##############################################################################...
48,671
Python
.py
940
37.501064
165
0.510676
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,005
pedrpc.py
OpenRCE_sulley/sulley/pedrpc.py
import sys import struct import time import socket import cPickle ######################################################################################################################## class client: def __init__ (self, host, port): self.__host = host self.__port = port ...
12,383
Python
.py
243
40.534979
120
0.504555
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,006
__init__.py
OpenRCE_sulley/sulley/__init__.py
import sulley.blocks import sulley.instrumentation import sulley.legos import sulley.pedrpc import sulley.primitives import sulley.sex import sulley.sessions import sulley.utils BIG_ENDIAN = ">" LITTLE_ENDIAN = "<" ###############################################################################################...
28,700
Python
.py
510
51.319608
162
0.659142
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,007
instrumentation.py
OpenRCE_sulley/sulley/instrumentation.py
class external: ''' External instrumentation class Monitor a target which doesn't support a debugger, allowing external commands to be called ''' def __init__(self, pre=None, post=None, start=None, stop=None): ''' @type pre: Function @param pre: Callback called befo...
2,452
Python
.py
74
24.216216
144
0.575255
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,008
blocks.py
OpenRCE_sulley/sulley/blocks.py
import pgraph import primitives import sex from utils.crc16 import CRC16 import zlib import hashlib import struct REQUESTS = {} CURRENT = None ######################################################################################################################## class request (pgraph.node): def __init__ (self, ...
30,797
Python
.py
624
38.307692
163
0.57825
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,009
primitives.py
OpenRCE_sulley/sulley/primitives.py
import random import struct ######################################################################################################################## class base_primitive (object): ''' The primitive base class implements common functionality shared across most primitives. ''' def __init__ (self): ...
32,873
Python
.py
693
36.480519
139
0.536495
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,010
dcerpc.py
OpenRCE_sulley/sulley/utils/dcerpc.py
import math import struct import misc ######################################################################################################################## def bind (uuid, version): ''' Generate the data necessary to bind to the specified interface. ''' major, minor = version.split(".") major ...
3,706
Python
.py
74
44.22973
120
0.449488
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,011
scada.py
OpenRCE_sulley/sulley/utils/scada.py
import math import struct ######################################################################################################################## def dnp3 (data, control_code="\x44", src="\x00\x00", dst="\x00\x00"): num_packets = int(math.ceil(float(len(data)) / 250.0)) packets = [] for i in xrange(...
1,118
Python
.py
30
28.7
120
0.461323
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,012
misc.py
OpenRCE_sulley/sulley/utils/misc.py
import re import struct ######################################################################################################################## def crc16 (string, value=0): ''' CRC-16 poly: p(x) = x**16 + x**15 + x**2 + 1 ''' crc16_table = [] for byte in range(256): crc = 0 f...
1,648
Python
.py
36
39.861111
126
0.426868
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,013
crc16.py
OpenRCE_sulley/sulley/utils/crc16.py
# -*- coding: UTF-8 -*- """ Translation from a C code posted to a forum on the Internet. @translator Thomas Schmid @url https://raw.githubusercontent.com/mitshell/libmich/master/libmich/utils/CRC16.py """ from array import array def reflect(crc, bitnum): # reflects the lower 'bitnum' bits of 'crc' j = 1...
1,702
Python
.py
63
19.222222
86
0.536133
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,014
cluster.py
OpenRCE_sulley/sulley/pgraph/cluster.py
# # pGRAPH # Copyright (C) 2006 Pedram Amini <pedram.amini@gmail.com> # # This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public # License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later # version. # ...
2,963
Python
.py
73
33.863014
120
0.495989
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,015
edge.py
OpenRCE_sulley/sulley/pgraph/edge.py
# # pGRAPH # Copyright (C) 2006 Pedram Amini <pedram.amini@gmail.com> # # This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public # License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later # version. # ...
6,271
Python
.py
140
37.235714
120
0.502381
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,016
graph.py
OpenRCE_sulley/sulley/pgraph/graph.py
# # pGRAPH # Copyright (C) 2006 Pedram Amini <pedram.amini@gmail.com> # # This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public # License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later # version. # ...
21,762
Python
.py
478
35.725941
120
0.497036
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,017
__init__.py
OpenRCE_sulley/sulley/pgraph/__init__.py
# # pGRAPH # Copyright (C) 2006 Pedram Amini <pedram.amini@gmail.com> # # This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public # License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later # version. # ...
1,012
Python
.py
24
41.125
119
0.764944
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,018
node.py
OpenRCE_sulley/sulley/pgraph/node.py
# # pGRAPH # Copyright (C) 2006 Pedram Amini <pedram.amini@gmail.com> # # This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public # License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later # version. # ...
8,623
Python
.py
187
37.946524
120
0.483906
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,019
xdr.py
OpenRCE_sulley/sulley/legos/xdr.py
######################################################################################################################## ### XDR TYPES (http://www.freesoft.org/CIE/RFC/1832/index.htm) ######################################################################################################################## import struct ...
1,752
Python
.py
34
44.676471
120
0.455666
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,020
dcerpc.py
OpenRCE_sulley/sulley/legos/dcerpc.py
######################################################################################################################## ### MSRPC NDR TYPES ######################################################################################################################## import struct from sulley import blocks, primitives, sex ...
4,877
Python
.py
102
38.107843
120
0.492925
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,021
__init__.py
OpenRCE_sulley/sulley/legos/__init__.py
import ber import dcerpc import misc import xdr # all defined legos must be added to this bin. BIN = {} BIN["ber_string"] = ber.string BIN["ber_integer"] = ber.integer BIN["dns_hostname"] = misc.dns_hostname BIN["ndr_conformant_array"] = dcerpc.ndr_conformant_array BIN["ndr_wstring"] ...
471
Python
.py
14
32.571429
57
0.627193
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,022
ber.py
OpenRCE_sulley/sulley/legos/ber.py
######################################################################################################################## ### ASN.1 / BER TYPES (http://luca.ntop.org/Teaching/Appunti/asn1.html) ######################################################################################################################## impor...
2,252
Python
.py
49
38.755102
120
0.484167
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,023
misc.py
OpenRCE_sulley/sulley/legos/misc.py
import struct from sulley import blocks, primitives, sex ######################################################################################################################## class dns_hostname (blocks.block): def __init__ (self, name, request, value, options={}): blocks.block.__init__(self, name, requ...
1,703
Python
.py
37
37.864865
120
0.52638
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,024
hp.py
OpenRCE_sulley/requests/hp.py
from sulley import * from struct import * ######################################################################################################################## def unicode_ftw(val): """ Simple unicode slicer """ val_list = [] for char in val: val_list.append("\x00") val_list.a...
1,848
Python
.py
59
26.288136
120
0.532541
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,025
ldap.py
OpenRCE_sulley/requests/ldap.py
from sulley import * """ Application number Application 0 BindRequest 1 BindResponse 2 UnbindRequest 3 SearchRequest 4 SearchResponse 5 ModifyRequest 6 ModifyResponse 7 AddRequest 8 AddResponse 9 DelRequest 10 DelResponse 11 ModifyRDNRequest 12 ModifyRDNResponse 13 CompareRequest 14 CompareResponse 15 AbandonRequest "...
2,324
Python
.py
66
31.227273
120
0.572066
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,026
ndmp.py
OpenRCE_sulley/requests/ndmp.py
from sulley import * import struct import time ndmp_messages = \ [ # Connect Interface 0x900, # NDMP_CONNECT_OPEN 0x901, # NDMP_CONECT_CLIENT_AUTH 0x902, # NDMP_CONNECT_CLOSE 0x903, # NDMP_CONECT_SERVER_AUTH # Config Interface 0x100, # NDMP_CONFIG_GET_HOST_INFO 0x...
5,379
Python
.py
128
35.140625
120
0.572522
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,027
http_post.py
OpenRCE_sulley/requests/http_post.py
from sulley import * ######################################################################################################################## # All POST mimetypes that I could think of/find ######################################################################################################################## # List of...
3,483
Python
.py
72
45.097222
126
0.475352
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,028
jabber.py
OpenRCE_sulley/requests/jabber.py
from sulley import * ######################################################################################################################## s_initialize("chat init") """ <?xml version="1.0" encoding="UTF-8" ?> <stream:stream to="192.168.200.17" xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams">...
1,969
Python
.py
52
36.673077
178
0.579444
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,029
http_get.py
OpenRCE_sulley/requests/http_get.py
from sulley import * ######################################################################################################################## # All HTTP requests that I could think of/find ######################################################################################################################## # List of ...
4,547
Python
.py
148
29.094595
139
0.508644
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,030
xbox.py
OpenRCE_sulley/requests/xbox.py
""" mediaconnect port 2869 """ from sulley import * ######################################################################################################################## s_initialize("mediaconnect: get album list") # POST /upnphost/udhisapi.dll?control=uuid:848a20cc-91bc-4a02-8180-187baa537527+urn:microsoft-com:s...
3,477
Python
.py
112
28.133929
135
0.638482
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,031
__init__.py
OpenRCE_sulley/requests/__init__.py
import os __all__ = [] for filename in os.listdir(os.path.dirname(__file__)): if not filename.startswith("__") and filename.endswith(".py"): filename = filename.replace(".py", "") __all__.append(filename) # uncommenting the next line causes all requests to load into the namespace once 're...
542
Python
.py
10
47.6
112
0.668561
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,032
stun.py
OpenRCE_sulley/requests/stun.py
""" STUN: Simple Traversal of UDP through NAT Gizmo binds this service on UDP port 5004 / 5005 http://www.vovida.org/ """ from sulley import * ######################################################################################################################## s_initialize("binding request") # message type 0x0001...
1,652
Python
.py
40
38.275
120
0.595372
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,033
http_header.py
OpenRCE_sulley/requests/http_header.py
from sulley import * ######################################################################################################################## # List of all HTTP Headers I could find ######################################################################################################################## # List of all blo...
22,992
Python
.py
679
32.749632
120
0.402146
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,034
mcafee.py
OpenRCE_sulley/requests/mcafee.py
from sulley import * from struct import * # stupid one byte XOR def mcafee_epo_xor (buf, poly=0xAA): l = len(buf) new_buf = "" for char in buf: new_buf += chr(ord(char) ^ poly) return new_buf ###################################################################################################...
2,460
Python
.py
70
31.671429
120
0.551124
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,035
trend.py
OpenRCE_sulley/requests/trend.py
from sulley import * import struct # crap ass trend xor "encryption" routine for control manager (20901) def trend_xor_encode (str): ''' Simple bidirectional XOR "encryption" routine used by this service. ''' key = 0xA8534344 ret = "" # pad to 4 byte boundary. pad = 4 - (len(str) % 4) ...
4,922
Python
.py
122
35.114754
120
0.567227
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,036
http.py
OpenRCE_sulley/requests/http.py
from sulley import * ######################################################################################################################## # Old http.py request primitives, http_* does all of these and many more (AFAIK) #################################################################################################...
3,070
Python
.py
93
30.666667
120
0.483108
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,037
rendezvous.py
OpenRCE_sulley/requests/rendezvous.py
from sulley import * ######################################################################################################################## s_initialize("trillian 1") s_static("\x00\x00") # transaction ID s_static("\x00\x00") # flags (standard query) s_word(1, endian=">...
5,402
Python
.py
89
57.876404
120
0.427384
OpenRCE/sulley
1,416
338
56
GPL-2.0
9/5/2024, 5:12:06 PM (Europe/Amsterdam)
16,038
cupp.py
Mebus_cupp/cupp.py
#!/usr/bin/python3 # # [Program] # # CUPP # Common User Passwords Profiler # # [Author] # # Muris Kurgas aka j0rgan # j0rgan [at] remote-exploit [dot] org # http://www.remote-exploit.org # http://www.azuzi.me # # [License] # # This program is free software; you can redistribute it and/or modify # it under th...
33,882
Python
.py
933
27.630225
124
0.53509
Mebus/cupp
4,406
1,154
58
GPL-3.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,039
test_cupp.py
Mebus_cupp/test_cupp.py
#!/usr/bin/env python3 # # [Program] # # CUPP - Common User Passwords Profiler # # [Author] # # Mebus, https://github.com/Mebus/ # # [License] # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Found...
4,435
Python
.py
124
27.387097
80
0.583569
Mebus/cupp
4,406
1,154
58
GPL-3.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,040
setup.py
Guake_guake/setup.py
# -*- coding: utf-8 -*- import setuptools setuptools.setup( use_scm_version={"write_to": "guake/_version.py", "local_scheme": "no-local-version"} )
154
Python
.py
5
28.6
89
0.680272
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,041
.pylintrc
Guake_guake/.pylintrc
[MASTER] # A comma-separated list of package or module names from where C extensions may # be loaded. Extensions are loading into the active Python interpreter and may # run arbitrary code. extension-pkg-whitelist= # Add files or directories to the blacklist. They should be base names, not # paths. ignore=CVS # Add ...
15,868
Python
.py
382
39.180628
89
0.786096
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,042
conf.py
Guake_guake/docs/source/conf.py
# -*- coding: utf-8 -*- # # Python Fix Imports documentation build configuration file, created by # sphinx-quickstart on Fri Apr 1 14:41:17 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated ...
8,391
Python
.py
194
41.402062
100
0.720993
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,043
test-exception.py
Guake_guake/scripts/test-exception.py
#!/usr/bin/env python3 print("Quick Open test: exception traceback") def func4(): raise ValueError("This is an exception") def func2(): func3() # noqa: F821 def func1(): func2() if __name__ == "__main__": func1()
239
Python
.py
10
20.4
45
0.640909
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,044
all-sitedirs-in-prefix.py
Guake_guake/scripts/all-sitedirs-in-prefix.py
from __future__ import print_function import os import site prefix = os.getenv("PREFIX") for d in site.getsitepackages(None if not prefix else [prefix]): print(d)
169
Python
.py
6
26.166667
64
0.763975
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,045
guake_toggle.py
Guake_guake/guake/guake_toggle.py
def toggle_guake_by_dbus(): import dbus # pylint: disable=import-outside-toplevel try: bus = dbus.SessionBus() remote_object = bus.get_object("org.guake3.RemoteControl", "/org/guake3/RemoteControl") print("Sending 'toggle' message to Guake3") remote_object.show_hide() excep...
355
Python
.py
9
32.555556
95
0.672464
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,046
boxes.py
Guake_guake/guake/boxes.py
import logging import time import gi gi.require_version("Vte", "2.91") # vte-0.42 gi.require_version("Gtk", "3.0") from gi.repository import GObject from gi.repository import Gdk from gi.repository import Gio from gi.repository import Gtk from gi.repository import Vte from guake.callbacks import MenuHideCallback fr...
26,511
Python
.py
602
33.852159
97
0.60982
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,047
about.py
Guake_guake/guake/about.py
# -*- coding: utf-8; -*- """ Copyright (C) 2007-2012 Lincoln de Sousa <lincoln@minaslivre.org> Copyright (C) 2007 Gabriel Falc√£o <gabrielteratos@gmail.com> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Founda...
1,638
Python
.py
37
40.540541
70
0.745592
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,048
dbusiface.py
Guake_guake/guake/dbusiface.py
# -*- coding: utf-8; -*- """ Copyright (C) 2007-2013 Guake authors This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This progra...
7,846
Python
.py
168
40.386905
95
0.699305
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,049
dialogs.py
Guake_guake/guake/dialogs.py
import gi gi.require_version("Gtk", "3.0") from gi.repository import Gtk class RenameDialog(Gtk.Dialog): def __init__(self, window, current_name): super().__init__( _("Rename tab"), window, Gtk.DialogFlags.MODAL | Gtk.DialogFlags.DESTROY_WITH_PARENT, ( ...
5,415
Python
.py
142
27.950704
94
0.565491
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,050
customcommands.py
Guake_guake/guake/customcommands.py
import json import os import gi import logging gi.require_version("Gtk", "3.0") from gi.repository import Gtk log = logging.getLogger(__name__) class CustomCommands: """ Example for a custom commands file [ { "type": "menu", "description": "dir listing",...
2,958
Python
.py
83
23.927711
93
0.516771
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,051
terminal.py
Guake_guake/guake/terminal.py
# -*- coding: utf-8; -*- """ Copyright (C) 2007-2013 Guake authors This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This progra...
26,119
Python
.py
581
34.402754
106
0.596045
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,052
settings.py
Guake_guake/guake/settings.py
# -*- coding: utf-8; -*- """ Copyright (C) 2007-2012 Lincoln de Sousa <lincoln@minaslivre.org> Copyright (C) 2007 Gabriel Falc√£o <gabrielteratos@gmail.com> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Founda...
5,186
Python
.py
116
35.310345
95
0.658281
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,053
palettes.py
Guake_guake/guake/palettes.py
# -*- coding: utf-8; -*- """ Copyright (C) 2007-2013 Guake authors This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This progra...
55,379
Python
.py
1,050
45.299048
80
0.713975
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,054
guake_logging.py
Guake_guake/guake/guake_logging.py
# -*- coding: utf-8; -*- """ Copyright (C) 2007-2013 Guake authors This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This progra...
2,524
Python
.py
67
25.61194
86
0.534722
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,055
notebook.py
Guake_guake/guake/notebook.py
# -*- coding: utf-8; -*- """ Copyright (C) 2007-2018 Guake authors This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This progra...
24,532
Python
.py
551
34.404719
100
0.623446
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,056
globals.py
Guake_guake/guake/globals.py
# -*- coding: utf-8; -*- """ Copyright (C) 2007-2013 Guake authors This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This progra...
4,204
Python
.py
106
35.754717
95
0.633284
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,057
notifier.py
Guake_guake/guake/notifier.py
# -*- coding: utf-8; -*- """ Copyright (C) 2007-2013 Guake authors This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This progra...
1,189
Python
.py
30
37
66
0.767826
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,058
prefs.py
Guake_guake/guake/prefs.py
# -*- coding: utf-8; -*- """ Copyright (C) 2007-2013 Guake authors This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This progra...
61,113
Python
.py
1,246
39.886035
101
0.635447
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,059
utils.py
Guake_guake/guake/utils.py
# -*- coding: utf-8; -*- """ Copyright (C) 2018 Mario Aichinger <aichingm@gmail.com> Copyright (C) 2007-2012 Lincoln de Sousa <lincoln@minaslivre.org> Copyright (C) 2007 Gabriel Falc√£o <gabrielteratos@gmail.com> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General...
19,578
Python
.py
448
34.584821
100
0.619918
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,060
__init__.py
Guake_guake/guake/__init__.py
# -*- coding: utf-8; -*- """ Copyright (C) 2007-2013 Guake authors This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This progra...
1,457
Python
.py
36
37.222222
91
0.747143
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,061
keybindings.py
Guake_guake/guake/keybindings.py
# -*- coding: utf-8; -*- """ Copyright (C) 2007-2013 Guake authors This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This progra...
11,039
Python
.py
261
29.157088
98
0.541023
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,062
menus.py
Guake_guake/guake/menus.py
import gi gi.require_version("Gtk", "3.0") from gi.repository import Gtk from guake.customcommands import CustomCommands import logging log = logging.getLogger(__name__) def mk_tab_context_menu(callback_object): """Create the context menu for a notebook tab""" # Store the menu in a temp variable in termin...
7,530
Python
.py
188
33.978723
94
0.667668
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,063
guake_app.py
Guake_guake/guake/guake_app.py
# -*- coding: utf-8; -*- """ Copyright (C) 2007-2012 Lincoln de Sousa <lincoln@minaslivre.org> Copyright (C) 2007 Gabriel Falc√£o <gabrielteratos@gmail.com> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Founda...
61,498
Python
.py
1,343
35.102755
100
0.611872
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,064
gsettings.py
Guake_guake/guake/gsettings.py
# -*- coding: utf-8; -*- """ Copyright (C) 2007-2013 Guake authors This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This progra...
21,496
Python
.py
425
41.021176
100
0.661481
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,065
theme.py
Guake_guake/guake/theme.py
import itertools import logging import os from pathlib import Path import gi gi.require_version("Gtk", "3.0") from gi.repository import GLib from gi.repository import Gdk from gi.repository import Gtk from textwrap import dedent from guake.paths import GUAKE_THEME_DIR log = logging.getLogger(__name__) # Reference...
3,268
Python
.py
84
32.690476
95
0.662872
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,066
support.py
Guake_guake/guake/support.py
# -*- coding: utf-8 -*- import os import gi gi.require_version("Gdk", "3.0") from gi.repository import Gdk from guake import gtk_version from guake import guake_version from guake import vte_runtime_version from guake import vte_version def horizonal_line(): print("-" * 50) def populate_display(display): ...
2,409
Python
.py
70
28.614286
95
0.615551
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,067
main.py
Guake_guake/guake/main.py
# -*- coding: utf-8; -*- """ Copyright (C) 2007-2013 Guake authors This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This progra...
20,165
Python
.py
589
26.314092
100
0.61209
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,068
paths.py.in
Guake_guake/guake/paths.py.in
# -*- coding: utf-8; -*- """ Copyright (C) 2007-2013 Guake authors This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This progra...
2,809
Python
.py
71
35.957746
95
0.691485
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,069
callbacks.py
Guake_guake/guake/callbacks.py
import gi gi.require_version("Gtk", "3.0") from gi.repository import Gdk from gi.repository import Gtk from guake.about import AboutDialog from guake.dialogs import SaveTerminalDialog from guake.globals import ENGINES from guake.prefs import PrefsDialog from guake.utils import FullscreenManager from guake.utils import...
3,841
Python
.py
92
33.663043
98
0.661113
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,070
common.py
Guake_guake/guake/common.py
# -*- coding: utf-8; -*- """ Copyright (C) 2007-2013 Guake authors This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This progra...
2,453
Python
.py
70
30.671429
68
0.682069
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,071
simplegladeapp.py
Guake_guake/guake/simplegladeapp.py
# -*- coding: utf-8; -*- """ Copyright (C) 2007-2013 Guake authors This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This progra...
8,245
Python
.py
207
30.7343
88
0.627596
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,072
split_utils.py
Guake_guake/guake/split_utils.py
# -*- coding: utf-8; -*- """ Copyright (C) 2018 Mario Aichinger <aichingm@gmail.com> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later ver...
6,133
Python
.py
141
33.212766
77
0.592319
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,073
test_quick_open.py
Guake_guake/guake/tests/test_quick_open.py
import re from guake.globals import QUICK_OPEN_MATCHERS from textwrap import dedent def test_quick_open(): chunk = dedent( """ Traceback (most recent call last): File "./test.py", line 5, in <module> os.path('/bad/path') TypeError: 'module' object is not callable...
683
Python
.py
22
23.636364
54
0.568807
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,074
test_guake.py
Guake_guake/guake/tests/test_guake.py
# -*- coding: utf-8 -*- # pylint: disable=redefined-outer-name import json import os import time from pathlib import Path import pytest import guake.guake_app from guake.common import pixmapfile from guake.guake_app import Guake @pytest.fixture def g(mocker, fs): mocker.patch("guake.guake_app.Guake.get_xdg_c...
7,679
Python
.py
176
38.181818
98
0.663798
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,075
test_utils.py
Guake_guake/guake/tests/test_utils.py
# -*- coding: utf-8 -*- # pylint: disable=redefined-outer-name import os from guake.utils import FileManager from guake.utils import get_process_name def test_file_manager(fs): fs.create_file("/foo/bar", contents="test") fm = FileManager() assert fm.read("/foo/bar") == "test" def test_file_manager_hit(...
1,117
Python
.py
31
31.870968
51
0.651119
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,076
test_notebook.py
Guake_guake/guake/tests/test_notebook.py
# -*- coding: utf-8 -*- # pylint: disable=redefined-outer-name import pytest from guake.notebook import TerminalNotebook @pytest.fixture def nb(mocker): targets = [ "guake.notebook.TerminalNotebook.terminal_spawn", "guake.notebook.TerminalNotebook.terminal_attached", "guake.notebook.Term...
1,473
Python
.py
47
26.595745
60
0.659574
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,077
test_about.py
Guake_guake/guake/tests/test_about.py
# -*- coding: utf-8 -*- # pylint: disable=redefined-outer-name import pytest from guake import guake_version from guake.about import AboutDialog @pytest.fixture def dialog(mocker, monkeypatch): mocker.patch("guake.simplegladeapp.Gtk.Widget.show_all") monkeypatch.setenv("LANGUAGE", "en_US.UTF-8") yield A...
542
Python
.py
14
35.714286
76
0.751923
Guake/guake
4,406
575
405
GPL-2.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,078
setup.py
errbotio_errbot/setup.py
#!/usr/bin/env python # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in...
4,951
Python
.py
132
28.734848
106
0.565145
errbotio/errbot
3,120
612
59
GPL-3.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,079
gen_home.py
errbotio_errbot/tools/gen_home.py
#!/usr/bin/env python3 import json from jinja2 import Template template = Template(open("plugins.md").read()) blacklisted = [repo.strip() for repo in open("blacklisted.txt", "r").readlines()] PREFIX_LEN = len("https://github.com/") with open("repos.json", "r") as p: repos = json.load(p) # Removes the weir...
880
Python
.py
21
35.190476
82
0.654524
errbotio/errbot
3,120
612
59
GPL-3.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,080
plugin-gen.py
errbotio_errbot/tools/plugin-gen.py
#!/usr/bin/env python3 import configparser import json import logging import os import pathlib import sys import time from datetime import datetime import requests from requests.auth import HTTPBasicAuth logging.basicConfig() log = logging.getLogger(__name__) log.setLevel(logging.DEBUG) DEFAULT_AVATAR = "https://up...
8,727
Python
.py
232
28.857759
106
0.583126
errbotio/errbot
3,120
612
59
GPL-3.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,081
conf.py
errbotio_errbot/docs/conf.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Errbot documentation build configuration file, created by # sphinx-quickstart on Fri Sep 13 17:24:59 2013. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autog...
10,469
Python
.py
236
42.491525
118
0.710202
errbotio/errbot
3,120
612
59
GPL-3.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,082
pygments_style.py
errbotio_errbot/docs/_themes/err/pygments_style.py
from pygments.style import Style from pygments.token import Keyword, Name, Comment, String, \ Number, Operator, Generic, Whitespace class ErrStyle(Style): """ A Pygments style based on the "friendly" theme """ background_color = "#ffffcc" default_style = "" styles = { Whitespace...
2,651
Python
.py
57
38.298246
60
0.43305
errbotio/errbot
3,120
612
59
GPL-3.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,083
config-template.py
errbotio_errbot/docs/user_guide/config-template.py
########################################################################## # # # This is the config-template for Err. This file should be copied and # # renamed to config.py, then modified as you see fit to run Errbot # # the way you like ...
18,339
Python
.py
348
51.227011
111
0.684122
errbotio/errbot
3,120
612
59
GPL-3.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,084
dynaplug_test.py
errbotio_errbot/tests/dynaplug_test.py
from os import path extra_plugin_dir = path.join(path.dirname(path.realpath(__file__)), "dyna_plugin") def test_simple(testbot): assert "added" in testbot.exec_command("!add_simple") assert "yep" in testbot.exec_command("!say_yep") assert "foo" in testbot.exec_command("!say_foo") assert "documented" ...
1,903
Python
.py
39
43.717949
86
0.698327
errbotio/errbot
3,120
612
59
GPL-3.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,085
core_test.py
errbotio_errbot/tests/core_test.py
"""Test _admins_to_notify wrapper functionality""" extra_config = {"BOT_ADMINS_NOTIFICATIONS": "zoni@localdomain"} def test_admins_to_notify(testbot): """Test which admins will be notified""" notified_admins = testbot._bot._admins_to_notify() assert "zoni@localdomain" in notified_admins def test_admins...
495
Python
.py
10
45.6
63
0.735417
errbotio/errbot
3,120
612
59
GPL-3.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,086
muc_test.py
errbotio_errbot/tests/muc_test.py
import logging import os import errbot.backends.base from errbot.backends.test import TestOccupant log = logging.getLogger(__name__) extra_plugin_dir = os.path.join( os.path.dirname(os.path.realpath(__file__)), "room_plugin" ) def test_plugin_methods(testbot): p = testbot.bot.plugin_manager.get_plugin_obj_...
4,368
Python
.py
118
31.949153
87
0.692216
errbotio/errbot
3,120
612
59
GPL-3.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,087
core_plugins_test.py
errbotio_errbot/tests/core_plugins_test.py
import os extra_plugin_dir = os.path.join( os.path.dirname(os.path.realpath(__file__)), "room_plugin" ) extra_config = { "CORE_PLUGINS": ("Help", "Utils", "CommandNotFoundFilter"), "BOT_ALT_PREFIXES": ("!",), "BOT_PREFIX": "$", } def test_help_is_still_here(testbot): assert "All commands" in test...
804
Python
.py
19
38.842105
81
0.704134
errbotio/errbot
3,120
612
59
GPL-3.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,088
link_test.py
errbotio_errbot/tests/link_test.py
# coding=utf-8 from os import path extra_plugin_dir = path.join(path.dirname(path.realpath(__file__)), "test_link") def test_linked_plugin_here(testbot): testbot.push_message("!status plugins") assert "Dummy" in testbot.pop_message()
246
Python
.py
6
38
80
0.737288
errbotio/errbot
3,120
612
59
GPL-3.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,089
dependencies_test.py
errbotio_errbot/tests/dependencies_test.py
import os extra_plugin_dir = os.path.join( os.path.dirname(os.path.realpath(__file__)), "dependent_plugins" ) def test_if_all_loaded_by_default(testbot): plug_names = testbot.bot.plugin_manager.get_all_active_plugin_names() assert "Single" in plug_names assert "Parent1" in plug_names assert "Pare...
1,982
Python
.py
48
36.479167
73
0.720627
errbotio/errbot
3,120
612
59
GPL-3.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,090
flow_test.py
errbotio_errbot/tests/flow_test.py
import logging import pytest from errbot.backends.test import TestPerson from errbot.flow import Flow, FlowRoot, InvalidState log = logging.getLogger(__name__) def test_node(): root = FlowRoot("test", "This is my flowroot") node = root.connect("a", lambda ctx: ctx["toto"] == "titui") assert root.predi...
1,408
Python
.py
34
36.735294
84
0.682586
errbotio/errbot
3,120
612
59
GPL-3.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,091
templates_test.py
errbotio_errbot/tests/templates_test.py
from os import path # This is to test end2end i18n behavior. extra_plugin_dir = path.join(path.dirname(path.realpath(__file__)), "template_plugin") def test_templates_1(testbot): assert "ok" in testbot.exec_command("!test template1") def test_templates_2(testbot): assert "ok" in testbot.exec_command("!tes...
669
Python
.py
15
40.666667
86
0.735202
errbotio/errbot
3,120
612
59
GPL-3.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,092
persistence_test.py
errbotio_errbot/tests/persistence_test.py
from errbot.storage import StoreMixin from errbot.storage.memory import MemoryStoragePlugin def test_simple_store_retreive(): sm = StoreMixin() sm.open_storage(MemoryStoragePlugin(None), "ns") sm["toto"] = "titui" assert sm["toto"] == "titui" def test_mutable(): sm = StoreMixin() sm.open_sto...
473
Python
.py
14
29.214286
53
0.662252
errbotio/errbot
3,120
612
59
GPL-3.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,093
plugin_management_test.py
errbotio_errbot/tests/plugin_management_test.py
import os import tempfile from configparser import ConfigParser from pathlib import Path import pytest import errbot.repo_manager from errbot import plugin_manager from errbot.plugin_info import PluginInfo from errbot.plugin_manager import IncompatiblePluginException from errbot.utils import collect_roots, entry_poin...
4,356
Python
.py
114
32.894737
85
0.664289
errbotio/errbot
3,120
612
59
GPL-3.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,094
simple_identifiers_test.py
errbotio_errbot/tests/simple_identifiers_test.py
from errbot.backends.test import TestOccupant, TestPerson def test_identifier_eq(): a = TestPerson("foo") b = TestPerson("foo") assert a == b def test_identifier_ineq(): a = TestPerson("foo") b = TestPerson("bar") assert not a == b assert a != b def test_mucidentifier_eq(): a = Tes...
693
Python
.py
24
24.458333
57
0.626707
errbotio/errbot
3,120
612
59
GPL-3.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,095
multi_plugin_test.py
errbotio_errbot/tests/multi_plugin_test.py
from os import path extra_plugin_dir = path.join(path.dirname(path.realpath(__file__)), "multi_plugin") # This tests the decorellation between plugin class names and real names # by making 2 instances of the same plugin collide on purpose. def test_first(testbot): r = testbot.exec_command("!myname") assert ...
509
Python
.py
11
42.545455
83
0.713415
errbotio/errbot
3,120
612
59
GPL-3.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,096
backend_manager_test.py
errbotio_errbot/tests/backend_manager_test.py
import logging import pytest from errbot.backend_plugin_manager import BackendPluginManager from errbot.bootstrap import CORE_BACKENDS from errbot.core import ErrBot logging.basicConfig(level=logging.DEBUG) backends_to_check = ["Text", "Test", "Null"] @pytest.mark.parametrize("backend_name", backends_to_check) de...
504
Python
.py
13
35.769231
66
0.781443
errbotio/errbot
3,120
612
59
GPL-3.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,097
base_backend_test.py
errbotio_errbot/tests/base_backend_test.py
# coding=utf-8 import logging import os # noqa import re # noqa import sys from collections import OrderedDict from os.path import sep from pathlib import Path from queue import Empty, Queue # noqa from tempfile import mkdtemp import pytest from errbot import arg_botcmd, botcmd, re_botcmd, templating # noqa from ...
36,028
Python
.py
886
32.143341
103
0.622183
errbotio/errbot
3,120
612
59
GPL-3.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,098
poller_test.py
errbotio_errbot/tests/poller_test.py
import time from os import path CURRENT_FILE_DIR = path.dirname(path.realpath(__file__)) extra_plugin_dir = path.join(CURRENT_FILE_DIR, "poller_plugin") def test_delayed_hello(testbot): assert "Hello, world!" in testbot.exec_command("!hello") time.sleep(1) delayed_msg = "Hello world! was sent 5 seconds a...
832
Python
.py
18
42.277778
65
0.74042
errbotio/errbot
3,120
612
59
GPL-3.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)
16,099
repo_manager_test.py
errbotio_errbot/tests/repo_manager_test.py
import os import shutil import tempfile import pytest from errbot import repo_manager from errbot.storage.memory import MemoryStoragePlugin assets = os.path.join(os.path.dirname(__file__), "assets") @pytest.fixture def plugdir_and_storage(request): plugins_dir = tempfile.mkdtemp() storage_plugin = MemorySt...
3,924
Python
.py
119
26.336134
88
0.630366
errbotio/errbot
3,120
612
59
GPL-3.0
9/5/2024, 5:12:14 PM (Europe/Amsterdam)