repo_name
stringlengths
7
65
path
stringlengths
5
185
copies
stringlengths
1
4
size
stringlengths
4
6
content
stringlengths
977
990k
license
stringclasses
14 values
hash
stringlengths
32
32
line_mean
float64
7.18
99.4
line_max
int64
31
999
alpha_frac
float64
0.25
0.95
ratio
float64
1.5
7.84
autogenerated
bool
1 class
config_or_test
bool
2 classes
has_no_keywords
bool
2 classes
has_few_assignments
bool
1 class
twilio/twilio-python
tests/integration/api/v2010/test_account.py
1
18728
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from tests import IntegrationTestCase from tests.holodeck import Request from twilio.base.exceptions import TwilioException from twilio.http.response import Response class AccountTestCase(Integrati...
mit
02ae2a3e54e6dde88cc7112314b2fd05
58.833866
140
0.609035
4.548943
false
false
false
false
twilio/twilio-python
twilio/rest/conversations/v1/user/__init__.py
1
17720
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import deserialize from twilio.base import values from twilio.base.instance_context import InstanceContext from twilio.base.instance_resource import InstanceResource from twilio.base...
mit
863cef7fe3848ff1bfb83f34929ec7dd
33.95069
121
0.623815
4.243295
false
false
false
false
twilio/twilio-python
twilio/rest/verify/v2/form.py
1
6877
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import values from twilio.base.instance_context import InstanceContext from twilio.base.instance_resource import InstanceResource from twilio.base.list_resource import ListResource f...
mit
7009debb24c79f2c892b2b8e014081d5
27.894958
95
0.599098
4.175471
false
false
false
false
twilio/twilio-python
twilio/rest/preview/deployed_devices/fleet/__init__.py
1
17975
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import deserialize from twilio.base import values from twilio.base.instance_context import InstanceContext from twilio.base.instance_resource import InstanceResource from twilio.base...
mit
c42544cbfd7a9c064c0be7c385efff26
33.108159
107
0.628484
4.163771
false
false
false
false
twilio/twilio-python
twilio/rest/flex_api/v1/channel.py
1
13623
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import deserialize from twilio.base import values from twilio.base.instance_context import InstanceContext from twilio.base.instance_resource import InstanceResource from twilio.base...
mit
9faa1b42021c94c74e890b2efe5c2945
33.142857
97
0.611466
4.312441
false
false
false
false
twilio/twilio-python
tests/integration/api/v2010/account/queue/test_member.py
1
8487
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from tests import IntegrationTestCase from tests.holodeck import Request from twilio.base.exceptions import TwilioException from twilio.http.response import Response class MemberTestCase(Integratio...
mit
160aedd6cce588a4db5683bb6d090bef
41.863636
182
0.567927
4.983558
false
true
false
false
acq4/acq4
acq4/analysis/modules/MapCombiner/MapCombiner.py
3
13050
# -*- coding: utf-8 -*- from __future__ import print_function from six.moves import range """ For combining photostimulation maps across cells and displaying against 3D atlas. """ from acq4.util import Qt from acq4.analysis.AnalysisModule import AnalysisModule import os from collections import OrderedDict #import Dat...
mit
fca6aa8bd1b637a3473ffcb80f3fc075
36.395415
157
0.552567
3.806884
false
false
false
false
acq4/acq4
acq4/devices/DAQGeneric/DaqChannelGui.py
3
11563
# -*- coding: utf-8 -*- from __future__ import print_function import weakref import numpy from pyqtgraph import SpinBox, WidgetGroup, mkPen from six.moves import range from acq4.util import Qt from acq4.util.SequenceRunner import runSequence AOChannelTemplate = Qt.importTemplate('.AOChannelTemplate') DOChannelTempl...
mit
0786c043721e7e7bf531668684e983a9
32.419075
102
0.623108
3.906419
false
false
false
false
acq4/acq4
acq4/drivers/MultiClamp/MultiClampTelegraph.py
2
14676
# -*- coding: utf-8 -*- from __future__ import print_function import sys from acq4.util.clibrary import winDefs, CParser, CLibrary sys.path.append('C:\\cygwin\\home\\Experimenters\\luke\\acq4\\lib\\util') import ctypes import os, threading, time DEBUG = False if DEBUG: print("MultiClampTelegraph Debug:", DEBUG)...
mit
e6c5f9a6a9643233091d2b2573a7d9a1
37.722955
197
0.567457
3.782474
false
false
false
false
acq4/acq4
acq4/util/Canvas/items/MarkersCanvasItem.py
3
6603
# -*- coding: utf-8 -*- from __future__ import print_function import weakref from acq4.util import Qt from .CanvasItem import CanvasItem import pyqtgraph as pg import pyqtgraph.graphicsItems.TargetItem from .itemtypes import registerItemType class MarkersCanvasItem(CanvasItem): """ Canvas item used for markin...
mit
7475dc24776c6a003e035eda715f758d
37.395349
149
0.615023
3.918694
false
false
false
false
acq4/acq4
acq4/devices/Camera/taskGUI.py
2
5099
# -*- coding: utf-8 -*- import pyqtgraph as pg from acq4.devices.DAQGeneric.taskGUI import DAQGenericTaskGui from acq4.util import Qt Ui_Form = Qt.importTemplate('.TaskTemplate') class CameraTaskGui(DAQGenericTaskGui): def __init__(self, dev, taskRunner): DAQGenericTaskGui.__init__(self, dev, taskRunner,...
mit
fecb54bc5c10fa0633f503d25e9d56e1
38.223077
154
0.608158
3.949651
false
false
false
false
acq4/acq4
acq4/analysis/AnalysisHost.py
3
2097
# -*- coding: utf-8 -*- from __future__ import print_function import six from acq4.util import Qt from . import modules import pyqtgraph.dockarea as dockarea import acq4.Manager #from acq4.LogWindow import LogButton from acq4.util.StatusBar import StatusBar class AnalysisHost(Qt.QMainWindow): """Window for hosti...
mit
10a8da06f7d9f7726ac8343a00e34643
26.96
84
0.568908
3.994286
false
false
false
false
acq4/acq4
acq4/util/imaging/frame_display.py
3
5194
from __future__ import print_function import pyqtgraph as pg from acq4.util import Qt from acq4.util.cuda import shouldUseCuda, cupy from acq4.util.debug import printExc from .bg_subtract_ctrl import BgSubtractCtrl from .contrast_ctrl import ContrastCtrl class FrameDisplay(Qt.QObject): """Used with live imagin...
mit
754190c27f8d007f2964c87c38de8731
31.873418
110
0.608972
4.21249
false
false
false
false
richrd/suplemon
suplemon/modules/system_clipboard.py
1
2970
# -*- encoding: utf-8 import subprocess from suplemon.suplemon_module import Module class SystemClipboard(Module): """Integrates the system clipboard with suplemon.""" def init(self): self.init_logging(__name__) if self.has_xsel_support(): self.clipboard_type = "xsel" el...
mit
b252ab8f442ed4c0a734bad1ee0c3b07
31.282609
114
0.548485
3.954727
false
false
false
false
acq4/acq4
acq4/analysis/modules/IVCurve/IVCurve.py
3
89299
# -*- coding: utf-8 -*- from __future__ import print_function from six.moves import range """ IVCurve: Analysis module that analyzes current-voltage and firing relationships from current clamp data. This is part of Acq4 Paul B. Manis, Ph.D. 2011-2013. Pep8 compliant (via pep8.py) 10/25/2013 Refactoring begun 3/21/201...
mit
e869b751c1deb7d84219fb37bb2c2a0f
47.797268
152
0.537677
3.669721
false
false
false
false
formencode/formencode
examples/WebwareExamples/index.py
3
2806
from __future__ import absolute_import from __future__ import print_function from formencode import Invalid, htmlfill, Schema, validators from WebKit.Page import Page import six page_style = ''' <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="content-type" content="...
mit
29ea48d39447ea6c46cfb621be0a66bf
25.980769
69
0.62402
3.380723
false
false
false
false
formencode/formencode
src/formencode/htmlrename.py
3
2184
""" Module to rename form fields """ from __future__ import absolute_import from formencode.rewritingparser import RewritingParser __all__ = ['rename', 'add_prefix'] def rename(form, rename_func): """ Rename all the form fields in the form (a string), using rename_func rename_func will be called with o...
mit
e250252d8fbc408e1cda3eaae3f1dd19
26.64557
72
0.590659
3.942238
false
false
false
false
shymonk/django-datatable
table/templatetags/table_tags.py
1
1231
#!/usr/bin/env python # coding: utf-8 from django import template from django.template import Context register = template.Library() class TableNode(template.Node): template_name = "table/table.html" def __init__(self, table): self.table = template.Variable(table) def render(self...
mit
25f1806a5a50a517cd4333f653da5b2c
25.355556
78
0.646629
3.996753
false
false
false
false
formencode/formencode
tests/test_doctests.py
1
3527
from __future__ import absolute_import import os import sys import doctest from formencode import compound from formencode import htmlfill from formencode import htmlgen from formencode import national from formencode import schema from formencode import validators import six import pytest """Modules that will have...
mit
3a4489f05aae16e52dd02e4ea7d42b38
26.771654
75
0.611284
4.101163
false
true
false
false
4dn-dcic/tibanna
awsf/aws_upload_output_update_json.py
1
9194
#!/usr/bin/python import json import sys import boto3 import os import re json_old = sys.argv[1] execution_metadata = sys.argv[2] logfile = sys.argv[3] md5file = sys.argv[4] json_new = sys.argv[5] if len(sys.argv) > 6: language = sys.argv[6] else: language = 'cwl-draft3' source_directory = '/data1/out/' def...
mit
85694d6ee61fb2f1c1c55dd3986e0b8e
39.148472
111
0.561344
3.769578
false
false
false
false
4dn-dcic/tibanna
tibanna/ami.py
1
7588
import boto3 import time import os from datetime import datetime from tibanna import create_logger from tibanna.vars import AMI_PER_REGION logger = create_logger(__name__) class AMI(object): BASE_AMI = 'ami-0885b1f6bd170450c' # ubuntu 20.04 for us-east-1 BASE_REGION = 'us-east-1' USERDATA_DIR = os.pat...
mit
4d3db55670ebd30026148377f8612313
41.629213
110
0.569715
4.004222
false
false
false
false
4dn-dcic/tibanna
tibanna/cw_utils.py
1
55661
import boto3, os from . import create_logger from .utils import ( upload, read_s3, put_object_s3 ) from .top import Top from .vars import ( AWS_REGION, EBS_MOUNT_POINT, S3_ENCRYT_KEY_ID ) from datetime import datetime from datetime import timedelta import json, math logger = create_logger(__na...
mit
f1294366204e41978463fbf4e6a17e37
46.050719
150
0.475809
4.076236
false
false
false
false
snap-stanford/ogb
ogb/lsc/mag240m.py
1
7115
from typing import Optional, Union, Dict import os import shutil import os.path as osp import torch import numpy as np from ogb.utils.url import decide_download, download_url, extract_zip, makedirs from ogb.lsc.utils import split_test class MAG240MDataset(object): version = 1 # Old url hosted at Stanford ...
mit
8736d38c626283e10620175555719a5e
31.788018
95
0.581448
3.271264
false
true
false
false
snap-stanford/ogb
examples/graphproppred/mol/conv.py
1
8741
import torch from torch_geometric.nn import MessagePassing import torch.nn.functional as F from torch_geometric.nn import global_mean_pool, global_add_pool from ogb.graphproppred.mol_encoder import AtomEncoder,BondEncoder from torch_geometric.utils import degree import math ### GIN convolution along the graph structu...
mit
2bdb077ecee44361baeadba4f35867e7
35.573222
182
0.59055
3.626971
false
false
false
false
snap-stanford/ogb
examples/lsc/wikikg90m/dgl-ke-ogb-lsc/python/dglke/models/ke_model.py
1
40563
# -*- coding: utf-8 -*- # # ke_model.py # # Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.o...
mit
f640aa54e2a4d9cacec1ffccbaa5a18d
40.47546
154
0.476148
4.079143
false
false
false
false
snap-stanford/ogb
examples/lsc/wikikg90m/dgl-ke-ogb-lsc/python/dglke/models/pytorch/ke_tensor.py
1
8309
# -*- coding: utf-8 -*- # # tensor_models.py # # Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apa...
mit
552ecf0adfdfb93b84e112ffef3089e9
32.504032
89
0.531472
4.029583
false
false
false
false
snap-stanford/ogb
ogb/nodeproppred/dataset_dgl.py
1
10270
import pandas as pd import shutil, os import os.path as osp import torch import numpy as np from dgl.data.utils import load_graphs, save_graphs, Subset import dgl from ogb.utils.url import decide_download, download_url, extract_zip from ogb.io.read_graph_dgl import read_graph_dgl, read_heterograph_dgl from ogb.io.read_...
mit
e85928d4c1c5cd3409194e51fde50632
44.644444
207
0.555404
3.786873
false
false
false
false
adamchainz/django-mysql
src/django_mysql/models/fields/fixedchar.py
1
1327
from __future__ import annotations from typing import Any from typing import cast from django.core import checks from django.db.backends.base.base import BaseDatabaseWrapper from django.db.models import CharField from django_mysql.typing import DeconstructResult class FixedCharField(CharField): def check(self,...
mit
e233b04ad6247d88a14896b51c41ac24
29.159091
81
0.60211
4.336601
false
false
false
false
adamchainz/django-mysql
tests/testapp/utils.py
1
3411
from __future__ import annotations import sys from contextlib import contextmanager from types import TracebackType from typing import Any from typing import Generator import pytest from django.db import connection from django.db import connections from django.db import DEFAULT_DB_ALIAS from django.db.backends.base.b...
mit
274776f47005ef996bf44f64b0b40b52
30.583333
87
0.650249
3.934256
false
false
false
false
adamchainz/django-mysql
src/django_mysql/management/commands/dbparams.py
1
4223
from __future__ import annotations import argparse from typing import Any from django.core.management import BaseCommand from django.core.management import CommandError from django.db import connections from django.db import DEFAULT_DB_ALIAS from django.db.utils import ConnectionDoesNotExist from django_mysql.utils ...
mit
a7ef1a3c1a0c977bb7446f59c5225c0a
34.788136
86
0.574
4.12
false
false
false
false
adamchainz/django-mysql
src/django_mysql/operations.py
1
5386
from __future__ import annotations from django.db.backends.base.schema import BaseDatabaseSchemaEditor from django.db.migrations.operations.base import Operation from django.db.migrations.state import ModelState from django.utils.functional import cached_property class InstallPlugin(Operation): reduces_to_sql = ...
mit
ffc53c8e5828d35b89ccb4163145c53a
29.777143
88
0.578723
4.04051
false
false
false
false
adamchainz/django-mysql
src/django_mysql/models/functions.py
1
14448
from __future__ import annotations import datetime as dt import json import warnings from typing import Any from typing import Union from django.db import connections from django.db import DEFAULT_DB_ALIAS from django.db.backends.base.base import BaseDatabaseWrapper from django.db.models import CharField from django....
mit
9948aebd76f35eb14606dcdf413d079e
26.311909
88
0.587279
4.273292
false
false
false
false
uber/tchannel-python
tests/thrift/test_module.py
1
2840
# Copyright (c) 2016 Uber Technologies, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publ...
mit
31f94af8299a7483cc8bb53db6553e57
34.5
79
0.753521
3.94993
false
true
false
false
uber/tchannel-python
tchannel/retry.py
1
1696
# Copyright (c) 2016 Uber Technologies, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publ...
mit
a9931bdb5a9ad11e71a93ef4e043e314
39.380952
79
0.764151
4.250627
false
false
false
false
smicallef/spiderfoot
modules/sfp_junkfiles.py
1
8026
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------- # Name: sfp_junkfiles # Purpose: From Spidering, identifies backup and temporary files. # # Author: Steve Micallef <steve@binarypool.com> # # Created: 23/08/2014 # Copyright: (c) Steve Mical...
mit
62bfba0f858561fabdcf6798dccd6645
35.986175
111
0.499875
4.436705
false
false
false
false
smicallef/spiderfoot
modules/sfp_ipqualityscore.py
1
8945
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------- # Name: sfp_ipqualityscore # Purpose: Spiderfoot module to check whether a target is malicious # using IPQualityScore API # # Author: Krishnasis Mandal <krishnasis@hotmail.com> # # C...
mit
195829f2c86f3c68ac21269ca0a686e7
36.584034
309
0.547904
3.812873
false
false
false
false
smicallef/spiderfoot
test/unit/modules/test_sfp_customfeed.py
1
1480
import pytest import unittest from modules.sfp_customfeed import sfp_customfeed from sflib import SpiderFoot from spiderfoot import SpiderFootEvent, SpiderFootTarget @pytest.mark.usefixtures class TestModuleCustomfeed(unittest.TestCase): def test_opts(self): module = sfp_customfeed() self.assert...
mit
df227ef995ce27b126f635d9cc2ddba8
29.204082
81
0.670946
3.709273
false
true
false
false
smicallef/spiderfoot
modules/sfp_dnsdb.py
1
12221
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------- # Name: sfp_dnsdb # Purpose: SpiderFoot plug-in that resolves and gets history of domains and IPs # # Author: Filip Aleksić <faleksicdev@gmail.com> # # Created: 2020-09-09 # Copyright: (c) Ste...
mit
08b0483e8573ad601af59cfa59e867b4
35.684685
122
0.489522
4.43412
false
false
false
false
smicallef/spiderfoot
spiderfoot/plugin.py
1
19747
from contextlib import suppress import io import logging import os import queue import sys import threading from time import sleep import traceback from .threadpool import SpiderFootThreadPool # begin logging overrides # these are copied from the python logging module # https://github.com/python/cpython/blob/main/Lib...
mit
b50f684dcfd54fac8e28329ab235825b
33.950442
137
0.590571
4.510507
false
false
false
false
smicallef/spiderfoot
modules/sfp_errors.py
1
3664
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------- # Name: sfp_errors # Purpose: Identify common error messages in content like SQL errors, etc. # # Author: Steve Micallef <steve@binarypool.com> # # Created: 18/01/2015 # Copyright: (c) Steve...
mit
ef0ffb38430a9f4acc39315fbe433a14
32.925926
89
0.572871
4.103024
false
false
false
false
smicallef/spiderfoot
test/unit/modules/test_sfp_bitcoin.py
1
4245
import pytest import unittest from modules.sfp_bitcoin import sfp_bitcoin from sflib import SpiderFoot from spiderfoot import SpiderFootEvent, SpiderFootTarget @pytest.mark.usefixtures class TestModuleBitcoin(unittest.TestCase): def test_opts(self): module = sfp_bitcoin() self.assertEqual(len(mo...
mit
09325ea26836b3515e552e23a5312b5f
32.96
112
0.644287
3.576243
false
true
false
false
smicallef/spiderfoot
modules/sfp_tool_dnstwist.py
1
5459
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------- # Name: sfp_tool_dnstwist # Purpose: SpiderFoot plug-in for using the 'dnstwist' tool. # Tool: https://github.com/elceef/dnstwist # # Author: Steve Micallef <steve@binarypool.com> # ...
mit
5ec4e3498e3331d717b8635f940481dc
34.679739
127
0.546987
4.089139
false
false
false
false
smicallef/spiderfoot
test/unit/modules/test_sfp_fraudguard.py
1
1479
import pytest import unittest from modules.sfp_fraudguard import sfp_fraudguard from sflib import SpiderFoot from spiderfoot import SpiderFootEvent, SpiderFootTarget @pytest.mark.usefixtures class TestModuleFraudguard(unittest.TestCase): def test_opts(self): module = sfp_fraudguard() self.assert...
mit
5f53390c9edd0e7bf00a0fcfdb2117e5
29.183673
81
0.670723
3.625
false
true
false
false
smicallef/spiderfoot
modules/sfp_flickr.py
1
9348
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------- # Name: sfp_flickr # Purpose: Search Flickr API for domains, URLs and emails related to the # specified domain. # # Author: <bcoles@gmail.com> # # Created: 2018-10-08 # Copyright: ...
mit
58fb3e1654e46f824d646860df03c744
34.142857
129
0.523641
4.237534
false
false
false
false
smicallef/spiderfoot
test/unit/modules/test_sfp_tool_dnstwist.py
1
1515
import pytest import unittest from modules.sfp_tool_dnstwist import sfp_tool_dnstwist from sflib import SpiderFoot from spiderfoot import SpiderFootEvent, SpiderFootTarget @pytest.mark.usefixtures class TestModuleToolDnstwist(unittest.TestCase): def test_opts(self): module = sfp_tool_dnstwist() ...
mit
b5db7e8508930851eaf088690a71a0fe
29.918367
81
0.673267
3.498845
false
true
false
false
smicallef/spiderfoot
modules/sfp_hunter.py
1
6025
# ------------------------------------------------------------------------------- # Name: sfp_hunter # Purpose: Query hunter.io using their API. # # Author: Steve Micallef <steve@binarypool.com> # # Created: 22/02/2017 # Copyright: (c) Steve Micallef # Licence: MIT # ------------------------...
mit
f0ea9db56022c46d83ac57cd392ba1c5
32.659218
139
0.539751
4.084746
false
false
false
false
smicallef/spiderfoot
test/unit/modules/test_sfp_censys.py
1
2495
import pytest import unittest from modules.sfp_censys import sfp_censys from sflib import SpiderFoot from spiderfoot import SpiderFootEvent, SpiderFootTarget @pytest.mark.usefixtures class TestModuleCensys(unittest.TestCase): def test_opts(self): module = sfp_censys() self.assertEqual(len(module...
mit
9b103981948acc6945dd25fd10992d84
33.178082
90
0.624449
3.746246
false
true
false
false
smicallef/spiderfoot
modules/sfp_crobat_api.py
1
5317
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------- # Name: sfp_crobat_api # Purpose: Search Crobat API for subdomains. # https://www.onsecurity.co.uk/blog/how-i-made-rapid7s-project-sonar-searchable # https://github.com/cgboal/s...
mit
79f6a0687702421104fc5cbc1f3338bc
29.382857
112
0.536393
4.09
false
false
false
false
smicallef/spiderfoot
modules/sfp_adguard_dns.py
1
4148
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------- # Name: sfp_adguard_dns # Purpose: SpiderFoot plug-in for looking up whether hosts are blocked by # AdGuard DNS servers. # # Author: <bcoles@gmail.com> # # Created: 2021-10-11 # Cop...
mit
34acf5498019e938e5aeb53e95df854d
31.155039
133
0.562681
3.8125
false
false
false
false
smicallef/spiderfoot
modules/sfp_mnemonic.py
1
9996
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------- # Name: sfp_mnemonic # Purpose: SpiderFoot plug-in for retrieving passive DNS information # from Mnemonic PassiveDNS API. # # Author: <bcoles@gmail.com> # # Created: 2018-10-12 # Co...
mit
3d0faa3c355c94be5f352d5891462d51
33.708333
122
0.517707
4.30491
false
false
false
false
smicallef/spiderfoot
modules/sfp_focsec.py
1
6040
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------- # Name: sfp_focsec # Purpose: Look up IP address information from Focsec. # # Author: <bcoles@gmail.com> # # Created: 2021-10-09 # Copyright: (c) bcoles 2021 # Licence: MIT # -------------...
mit
ace8566aabf3448001b7e35e5076023d
27.899522
129
0.505629
4.042838
false
false
false
false
smicallef/spiderfoot
modules/sfp_surbl.py
1
7751
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------- # Name: sfp_surbl # Purpose: SpiderFoot plug-in to check whether IP addresses, netblocks, and # domains appear in the SURBL blacklist. # # Author: <bcoles@gmail.com> # # Created: 20...
mit
1be9599861b607b101656d96cb94e932
33.29646
159
0.545478
3.881322
false
false
false
false
smicallef/spiderfoot
modules/sfp_greynoise.py
1
13723
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------- # Name: sfp_greynoise # Purpose: Query GreyNoise's API # # Author: Steve Micallef # Updated By: Brad Chiappetta, GreyNoise # # Created: 20/11/2018 # Updated: 31-Aug-2022 # Copyright: ...
mit
8c58d1af3f675d04e5ccc12f076632a6
43.125402
148
0.486628
4.162269
false
false
false
false
smicallef/spiderfoot
modules/sfp_phone.py
1
3919
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------- # Name: sfp_phone # Purpose: SpiderFoot plug-in for scanning retrieved content by other # modules (such as sfp_spider) to identify phone numbers, and # lookup carrier inform...
mit
dd5777c4743a4264fc2eb46d0846892a
33.377193
97
0.557285
4.22306
false
false
false
false
smicallef/spiderfoot
modules/sfp_keybase.py
1
9296
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------- # Name: sfp_keybase # Purpose: Spiderfoot plugin to query KeyBase API # to gather additional information about domain names and identified # usernames. # # Author: Krishnas...
mit
a6c843368d9c2947e20d4ba6c7962fdd
32.927007
127
0.531519
4.378709
false
false
false
false
smicallef/spiderfoot
modules/sfp_callername.py
1
4692
# ------------------------------------------------------------------------------- # Name: sfp_callername # Purpose: SpiderFoot plug-in to search CallerName.com for a phone number # (US only) and retrieve location and reputation information. # # Author: <bcoles@gmail.com> # # Created: 20...
mit
aabee7baecd3637824e24cc59cb64564
33.5
139
0.562873
4.010256
false
false
false
false
smicallef/spiderfoot
modules/sfp_blocklistde.py
1
7574
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------- # Name: sfp_blocklistde # Purpose: Check if a netblock or IP is malicious according to blocklist.de. # # Author: steve@binarypool.com # # Created: 14/12/2013 # Copyright: (c) Steve Micallef...
mit
d25d1743f77d1b2fb83001de2fcfc789
33.903226
125
0.56245
3.950965
false
false
false
false
smicallef/spiderfoot
modules/sfp_botscout.py
1
6261
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------- # Name: sfp_botscout # Purpose: SpiderFoot plug-in to search botsout.com using their API, for # potential malicious IPs and e-mail addresses. # # Author: Steve Micallef <steve@binary...
mit
584337e439a131bfce30b0cb1ebd4239
31.952632
117
0.549752
3.957649
false
false
false
false
smicallef/spiderfoot
modules/sfp_wigle.py
1
6033
# ------------------------------------------------------------------------------- # Name: sfp_wigle # Purpose: Query wigle.net to identify nearby WiFi access points. # # Author: Steve Micallef <steve@binarypool.com> # # Created: 10/09/2017 # Copyright: (c) Steve Micallef # Licence: MIT # ---...
mit
e4838b6c09de6a547baab5325f562563
31.262032
163
0.544008
4.024683
false
false
false
false
smicallef/spiderfoot
modules/sfp_myspace.py
1
5214
# ------------------------------------------------------------------------------- # Name: sfp_myspace # Purpose: Query MySpace for username and location information. # # Author: <bcoles@gmail.com> # # Created: 2018-10-07 # Copyright: (c) bcoles 2018 # Licence: MIT # -------------------------...
mit
b1c3931942805ba9d3597ebe5415d9d5
33.993289
174
0.515343
4.161213
false
false
false
false
byu-dml/metalearn
metalearn/metafeatures/base.py
1
4530
from collections import abc import inspect import typing from metalearn.metafeatures.constants import ProblemType, MetafeatureGroup class ResourceComputer: """ Decorates ``computer``, a resource computing function with metadata about that function. Parameters ---------- computer The func...
mit
8bd2d6d205e123baf61022d139a228e2
34.116279
118
0.645475
4.376812
false
false
false
false
byu-dml/metalearn
metalearn/metafeatures/text_metafeatures.py
1
7959
from collections import Counter from itertools import chain import numpy as np from metalearn.metafeatures.common_operations import profile_distribution from metalearn.metafeatures.base import build_resources_info, ResourceComputer, MetafeatureComputer from metalearn.metafeatures.constants import ProblemType, Metafea...
mit
dacb922a8302ef32cd36740811cfa265
31.092742
160
0.773338
3.036627
false
false
false
false
staticafi/symbiotic
lib/symbioticpy/symbiotic/targets/testcomp.py
1
2706
""" BenchExec is a framework for reliable benchmarking. This file is part of BenchExec. Copyright (C) 2007-2015 Dirk Beyer Copyright (C) 2016-2020 Marek Chalupa All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You m...
mit
12948e9d3a2e9b50ef3558ed33712443
30.835294
98
0.695861
3.973568
false
false
false
false
pricingassistant/mrq
mrq/logger.py
1
3573
from __future__ import print_function from future.builtins import object from future.utils import iteritems from collections import defaultdict import logging import datetime import sys import pymongo PY3 = sys.version_info > (3,) def _encode_if_unicode(string): if PY3: return string if isinstance(...
mit
d3e447978660a1b13016c67489aa5b47
30.342105
121
0.599216
4.019123
false
false
false
false
staticafi/symbiotic
lib/symbioticpy/symbiotic/targets/predatorhp.py
1
2536
""" BenchExec is a framework for reliable benchmarking. This file is part of BenchExec. Copyright (C) 2007-2015 Dirk Beyer All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at ...
mit
f312e5a0506e908953a551c04e2eb4db
29.926829
93
0.681388
3.807808
false
false
false
false
pricingassistant/mrq
mrq/basetasks/cleaning.py
1
2460
from future.builtins import str from mrq.queue import Queue from mrq.task import Task from mrq.job import Job from mrq.context import log, connections, run_task, get_current_config import datetime import time class RequeueInterruptedJobs(Task): """ Requeue jobs that were marked as status=interrupt when a worker ...
mit
5318eedd9a4bbb74ba060cce4642705e
27.941176
105
0.579268
4.026187
false
false
false
false
staticafi/symbiotic
lib/symbioticpy/symbiotic/targets/slowbeast.py
1
5050
from os.path import abspath from .. utils import dbg from . tool import SymbioticBaseTool try: import benchexec.util as util import benchexec.result as result from benchexec.tools.template import BaseTool except ImportError: # fall-back solution (at least for now) import symbiotic.benchexec.util as...
mit
894e70921c34658d05497e8dc838e1c5
34.56338
111
0.578416
4.095702
false
false
false
false
staticafi/symbiotic
scripts/kleetester.py
1
7693
#!/usr/bin/python3 from subprocess import Popen, PIPE, STDOUT from time import sleep from sys import stderr def runcmd(cmd): print("[kleetester] {0}".format(" ".join(cmd)), file=stderr) stderr.flush() try: p = Popen(cmd, stdout=PIPE, stderr=STDOUT) except OSError as e: print(str(e), fi...
mit
71d97ff2a1721a3fc79aa6f6864b6515
33.34375
88
0.519693
3.915013
false
false
false
false
staticafi/symbiotic
lib/symbioticpy/symbiotic/targets/esbmc.py
1
5971
""" BenchExec is a framework for reliable benchmarking. This file is part of BenchExec. Copyright (C) 2007-2015 Dirk Beyer Copyright (C) 2019-2021 Marek Chalupa All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You m...
mit
db5ba5e504659eb5b02763927a3f20e1
34.123529
98
0.624853
4.190175
false
false
false
false
byu-dml/metalearn
metalearn/metafeatures/simple_metafeatures.py
1
5630
import numpy as np from metalearn.metafeatures.common_operations import * from metalearn.metafeatures.base import build_resources_info, MetafeatureComputer from metalearn.metafeatures.constants import ProblemType, MetafeatureGroup def get_dataset_stats(X, column_types): number_of_instances = X.shape[0] numbe...
mit
00ee03a0daf60e399d20565ca1553369
32.511905
150
0.709591
3.758344
false
false
false
false
chrisdev/wagtail-cookiecutter-foundation
{{cookiecutter.project_slug}}/pages/migrations/0020_auto_20180501_1341.py
2
1450
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2018-05-01 13:41 from __future__ import unicode_literals from django.db import migrations, models import wagtail.core.blocks import wagtail.core.fields import wagtail.images.blocks class Migration(migrations.Migration): dependencies = [ ('pages', '...
mit
1c023dbfb15e7dae910e383f37f581be
37.157895
229
0.637241
4.142857
false
false
false
false
chrisdev/wagtail-cookiecutter-foundation
{{cookiecutter.project_slug}}/people/migrations/0006_auto_20180607_1804.py
2
1100
# Generated by Django 2.0 on 2018-06-07 18:04 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('people', '0005_personindexpage_feed_image'), ] operations = [ migrations.AlterField( model_name='...
mit
346be093b1ede9d91c0b2b3f9c608a46
36.931034
179
0.647273
3.956835
false
false
false
false
chrisdev/wagtail-cookiecutter-foundation
{{cookiecutter.project_slug}}/pages/migrations/0022_auto_20180607_1804.py
2
1975
# Generated by Django 2.0 on 2018-06-07 18:04 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('pages', '0021_auto_20180607_1434'), ] operations = [ migrations.AlterField( model_name='faqspage'...
mit
baa8db72626cf7817864860679954009
43.886364
179
0.644051
3.934263
false
false
false
false
chrisdev/wagtail-cookiecutter-foundation
{{cookiecutter.project_slug}}/utils/models.py
2
3021
from django.db import models from wagtail.admin.edit_handlers import ( FieldPanel, MultiFieldPanel, PageChooserPanel ) from wagtail.core.fields import RichTextField from wagtail.documents.edit_handlers import DocumentChooserPanel from wagtail.images.edit_handlers import ImageChooserPanel class LinkFields(models....
mit
2b514fa81644a4c700922055157669e8
25.973214
76
0.633234
3.918288
false
false
false
false
chrisdev/wagtail-cookiecutter-foundation
{{cookiecutter.project_slug}}/pages/migrations/0013_videopage_videopagecarouselitem.py
2
2701
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-08-08 13:59 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import modelcluster.fields import wagtail.core.fields class Migration(migrations.Migration): dependencies = [ ('wagta...
mit
75b7bba8ee04f700ecc968c92c7ae205
50.942308
191
0.612366
3.931587
false
false
false
false
chrisdev/wagtail-cookiecutter-foundation
{{cookiecutter.project_slug}}/products/migrations/0008_auto_20180607_1804.py
2
1109
# Generated by Django 2.0 on 2018-06-07 18:04 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('products', '0007_productindexpage_feed_image'), ] operations = [ migrations.AlterField( model_nam...
mit
5c7793c2697aa735edad5e6a365460c0
37.241379
179
0.650135
3.989209
false
false
false
false
chrisdev/wagtail-cookiecutter-foundation
{{cookiecutter.project_slug}}/gallery/models.py
2
4587
import logging from django.conf import settings from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.db import models from django.utils.translation import ugettext_lazy as _ from wagtail.admin.edit_handlers import FieldPanel, MultiFieldPanel from wagtail.core.fields import RichTextField...
mit
09d86bf895cc8249d388b78b8e6dbf4d
29.377483
82
0.63789
4.04141
false
false
false
false
chrisdev/wagtail-cookiecutter-foundation
{{cookiecutter.project_slug}}/users/tests/test_views.py
2
1800
from django.test import RequestFactory, TestCase from ..views import UserRedirectView, UserUpdateView class BaseUserTestCase(TestCase): def setUp(self): self.user = self.make_user() self.factory = RequestFactory() class TestUserRedirectView(BaseUserTestCase): def test_get_redirect_url(self):...
mit
f4ba2e4f1635f19ceb6bfbd0d12a684f
31.142857
73
0.613889
4.316547
false
true
false
false
chrisdev/wagtail-cookiecutter-foundation
{{cookiecutter.project_slug}}/users/migrations/0001_initial.py
1
3721
# Generated by Django 2.1.7 on 2019-06-14 14:44 import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max...
mit
6f5670d48fcbbb7fe969633669bad03d
71.960784
329
0.637463
4.331781
false
false
false
false
chrisdev/wagtail-cookiecutter-foundation
{{cookiecutter.project_slug}}/pages/migrations/0008_auto_20161220_1345.py
3
2161
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2016-12-20 13:45 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('pages', '0007_socialmediasettings'), ] operations = [ migrations.AlterField...
mit
3ce9de2f1160bbeb6a2ec93711a870ab
38.290909
204
0.603887
4.253937
false
false
false
false
chrisdev/wagtail-cookiecutter-foundation
{{cookiecutter.project_slug}}/pages/migrations/0016_sitebranding.py
2
1105
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-10-10 14:02 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('wagtailimages', '0019_delete_filter'), ('wagtailcor...
mit
a42833194fa2ec259d73061b6a0acf10
35.833333
157
0.59638
3.904594
false
false
false
false
chubin/cheat.sh
lib/cheat_wrapper.py
1
3573
""" Main cheat.sh wrapper. Parse the query, get answers from getters (using get_answer), visualize it using frontends and return the result. Exports: cheat_wrapper() """ import re import json from routing import get_answers, get_topics_list from search import find_answers_by_keyword from languages_data import L...
mit
4954f6f7e888d03d8ccd70f599f85438
28.528926
84
0.604534
3.965594
false
false
false
false
pyvisa/pyvisa-py
pyvisa_py/protocols/usbtmc.py
2
14241
# -*- coding: utf-8 -*- """Implements Session to control USBTMC instruments Loosely based on PyUSBTMC:python module to handle USB-TMC(Test and Measurement class) devices. by Noboru Yamamot, Accl. Lab, KEK, JAPAN This file is an offspring of the Lantz Project. :copyright: 2014-2020 by PyVISA-py Authors, see AUTHORS f...
mit
db8f27c5a101d4f383e411c266161ac2
28.851153
133
0.58115
3.806202
false
false
false
false
coleifer/huey
huey/signals.py
3
1190
import itertools SIGNAL_CANCELED = 'canceled' SIGNAL_COMPLETE = 'complete' SIGNAL_ERROR = 'error' SIGNAL_EXECUTING = 'executing' SIGNAL_EXPIRED = 'expired' SIGNAL_LOCKED = 'locked' SIGNAL_RETRYING = 'retrying' SIGNAL_REVOKED = 'revoked' SIGNAL_SCHEDULED = 'scheduled' SIGNAL_INTERRUPTED = "interrupted" class Signal(...
mit
fcd2739e186fe845e68451ee1e0cd80f
27.333333
67
0.591597
4.089347
false
false
false
false
coleifer/huey
huey/tests/test_signals.py
3
5612
import datetime from huey.signals import * from huey.tests.base import BaseTestCase class TestSignals(BaseTestCase): def setUp(self): super(TestSignals, self).setUp() self._state = [] @self.huey.signal() def signal_handle(signal, task, *args): self._state.append((sign...
mit
2ba96f948eb0a1ae35b72b9676ec1c0c
30.005525
77
0.585175
3.682415
false
true
false
false
coleifer/huey
examples/django_ex/djangoex/test_app/tasks.py
3
1139
import time from huey import crontab from huey.contrib.djhuey import task, periodic_task, db_task def tprint(s, c=32): # Helper to print messages from within tasks using color, to make them # stand out in examples. print('\x1b[1;%sm%s\x1b[0m' % (c, s)) # Tasks used in examples. @task() def add(a, b): ...
mit
cab19176462cc531c97718369d76f0b7
21.333333
74
0.656716
3.112022
false
false
false
false
mapbox/mapbox-sdk-py
mapbox/services/matrix.py
1
5455
"""Matrix API V1""" import re import warnings from mapbox.encoding import encode_waypoints from mapbox.errors import InvalidProfileError, MapboxDeprecationWarning from mapbox.services.base import Service class DirectionsMatrix(Service): """Access to the Matrix API V1""" api_name = 'directions-matrix' a...
mit
07a1d65b48b3272911bd81bbd8c2771b
38.528986
90
0.622181
4.755885
false
false
false
false
olemb/dbfread
tests/test_field_parser.py
1
4465
import datetime from decimal import Decimal from pytest import raises from dbfread.field_parser import FieldParser class MockHeader(object): dbversion = 0x02 class MockDBF(object): def __init__(self): self.header = MockHeader() self.encoding = 'ascii' self.char_decode_errors = 'strict'...
mit
a9842f217a19e9b1a0911337ee913e40
23.805556
75
0.58701
3.164422
false
true
false
false
olemb/dbfread
dbfread/struct_parser.py
1
1188
""" Parser that converts (C style) binary structs named tuples. The struct can be read from a file or a byte string. """ import struct def _make_struct_class(name, names): class Struct(object): _names = names def __init__(self, **kwargs): vars(self).update(kwargs) def __rep...
mit
3cae82c1699f1c12f0221c735f4c3a44
27.97561
74
0.58165
3.973244
false
false
false
false
olemb/dbfread
docs/conf.py
4
7855
# -*- coding: utf-8 -*- # # 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 file. # # All configuration values have a default; values that are commented out # serve to show the default. import sys, os...
mit
83b7896c44d2c0b53da753dadaf1ae21
30.53012
80
0.702076
3.742135
false
false
false
false
mitmproxy/mitmproxy
examples/contrib/webscanner_helper/urlinjection.py
2
7115
import abc import html import json import logging from mitmproxy import flowfilter from mitmproxy.http import HTTPFlow logger = logging.getLogger(__name__) class InjectionGenerator: """Abstract class for an generator of the injection content in order to inject the URL index.""" ENCODING = "UTF8" @abc.a...
mit
1a1d7cdacca98802767ec8907a17b053
40.366279
133
0.590443
4.33313
false
false
false
false
mitmproxy/mitmproxy
mitmproxy/tools/console/grideditor/col_text.py
1
1290
""" Welcome to the encoding dance! In a nutshell, text columns are actually a proxy class for byte columns, which just encode/decodes contents. """ from mitmproxy.tools.console import signals from mitmproxy.tools.console.grideditor import col_bytes class Column(col_bytes.Column): def __init__(self, heading, enc...
mit
1c1a6f59ac3a7b1ee6f30ad010523acd
25.875
79
0.663566
3.850746
false
false
false
false
mitmproxy/mitmproxy
docs/scripts/clirecording/screenplays.py
2
10137
#!/usr/bin/env python3 from clidirector import CliDirector def record_user_interface(d: CliDirector): tmux = d.start_session(width=120, height=36) window = tmux.attached_window d.start_recording("recordings/mitmproxy_user_interface.cast") d.message( "Welcome to the mitmproxy tutorial. In thi...
mit
811922bee1eb68d694760738caa9e966
30.212963
123
0.646692
3.250723
false
false
false
false
mitmproxy/mitmproxy
mitmproxy/io/compat.py
1
15621
""" This module handles the import of mitmproxy flows generated by old versions. The flow file version is decoupled from the mitmproxy release cycle (since v3.0.0dev) and versioning. Every change or migration gets a new flow file version number, this prevents issues with developer builds and snapshots. """ import copy...
mit
3a64d513ffe7a817befee5163ca006a8
29.689587
98
0.562704
3.533363
false
false
false
false
mitmproxy/mitmproxy
test/mitmproxy/proxy/layers/test_dns.py
2
5464
import time from mitmproxy.proxy.commands import CloseConnection, Log, OpenConnection, SendData from mitmproxy.proxy.events import ConnectionClosed, DataReceived from mitmproxy.proxy.layers import dns from mitmproxy.dns import DNSFlow from mitmproxy.test.tutils import tdnsreq, tdnsresp from ..tutils import Placeholder...
mit
65e462cf3c54e0eeb10828944778cf4d
26.32
123
0.598829
3.613757
false
false
false
false
django-extensions/django-extensions
django_extensions/management/commands/pipchecker.py
1
15513
# -*- coding: utf-8 -*- import json import os import re from distutils.version import LooseVersion from urllib.parse import urlparse from urllib.error import HTTPError from urllib.request import Request, urlopen from xmlrpc.client import ServerProxy, Fault import pip from time import sleep from django.core.management....
mit
d125ec2965114713713a62192b8cd4a5
42.698592
154
0.566364
4.255967
false
false
false
false
django-extensions/django-extensions
django_extensions/logging/filters.py
9
1126
# -*- coding: utf-8 -*- import time import logging from hashlib import md5 # also see: https://djangosnippets.org/snippets/2242/ class RateLimiterFilter(logging.Filter): def filter(self, record): from django.conf import settings from django.core.cache import cache # Rate is specified as ...
mit
2f33c6fd3b99a9503cbe4f9e6a4a306e
30.277778
85
0.610124
3.632258
false
false
false
false
django-extensions/django-extensions
django_extensions/management/commands/compile_pyc.py
1
1273
# -*- coding: utf-8 -*- import fnmatch import os import py_compile from os.path import join as _j from typing import List from django.conf import settings from django.core.management.base import BaseCommand, CommandError from django_extensions.management.utils import signalcommand class Command(BaseCommand): he...
mit
18d2c4d387737bf44cb0921aa3deb1ff
33.405405
95
0.629222
4.271812
false
false
false
false
django-extensions/django-extensions
django_extensions/management/commands/clean_pyc.py
1
1555
# -*- coding: utf-8 -*- import fnmatch import os from os.path import join as _j from typing import List from django.conf import settings from django.core.management.base import BaseCommand, CommandError from django_extensions.management.utils import signalcommand class Command(BaseCommand): help = "Removes all ...
mit
6c638f999354b8267bc5bed31d4ba2ba
32.804348
95
0.609003
4.225543
false
false
false
false
django-extensions/django-extensions
django_extensions/templatetags/highlighting.py
1
3224
# -*- coding: utf-8 -*- """ Similar to syntax_color.py but this is intended more for being able to copy+paste actual code into your Django templates without needing to escape or anything crazy. http://lobstertech.com/2008/aug/30/django_syntax_highlight_template_tag/ Example: {% load highlighting %} <style> @impo...
mit
6c850750704af830f82a78763ef0b40b
30.607843
83
0.666253
3.727168
false
false
false
false