hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 251 | max_forks_repo_name stringlengths 4 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
426e4afa33488c3f61e9819e1e0e8ab285e730fe | 902 | py | Python | config.py | rajatomar788/pyblog | d450dc1ceb3a6b3aeb747648a0fb1b4334e4b3ae | [
"MIT"
] | null | null | null | config.py | rajatomar788/pyblog | d450dc1ceb3a6b3aeb747648a0fb1b4334e4b3ae | [
"MIT"
] | null | null | null | config.py | rajatomar788/pyblog | d450dc1ceb3a6b3aeb747648a0fb1b4334e4b3ae | [
"MIT"
] | null | null | null | import os
basedir = os.path.abspath(os.path.dirname(__file__))
| 29.096774 | 80 | 0.674058 |
426e9a71b5a0425ef77735be32bb8398f28a2e1e | 45 | py | Python | ceefax/fonts/size7extracondensed/__init__.py | mscroggs/CEEFAX | 8e7a075de1809064b77360da24ebbbaa409c3bf2 | [
"MIT"
] | 1 | 2020-03-28T15:53:22.000Z | 2020-03-28T15:53:22.000Z | ceefax/fonts/size7extracondensed/__init__.py | mscroggs/CEEFAX | 8e7a075de1809064b77360da24ebbbaa409c3bf2 | [
"MIT"
] | 1 | 2021-02-05T13:43:52.000Z | 2021-02-05T13:43:52.000Z | ceefax/fonts/size7extracondensed/__init__.py | mscroggs/CEEFAX | 8e7a075de1809064b77360da24ebbbaa409c3bf2 | [
"MIT"
] | null | null | null | from .default import size7extracondensedfont
| 22.5 | 44 | 0.888889 |
426e9a7b517f49d7e52664e4ad563ce95c7c8446 | 3,433 | py | Python | bom/helpers.py | gxyp/indabom | 114991be2471eda2cf658c68706ab7bb05b06959 | [
"MIT"
] | null | null | null | bom/helpers.py | gxyp/indabom | 114991be2471eda2cf658c68706ab7bb05b06959 | [
"MIT"
] | null | null | null | bom/helpers.py | gxyp/indabom | 114991be2471eda2cf658c68706ab7bb05b06959 | [
"MIT"
] | null | null | null | from bom.octopart_parts_match import match_part
from bom.models import Part, PartClass, Seller, SellerPart, Subpart, \
Manufacturer, Organization, PartFile
| 23.040268 | 77 | 0.642587 |
426f6bd9b353f10dd5dac6c8afa818c7319f5d74 | 8,612 | py | Python | keycodes/key/codes/win.py | jonchun/ptoys-mapper | a2dde413d37e897ec41b69ac979e538afb7435f0 | [
"MIT"
] | null | null | null | keycodes/key/codes/win.py | jonchun/ptoys-mapper | a2dde413d37e897ec41b69ac979e538afb7435f0 | [
"MIT"
] | null | null | null | keycodes/key/codes/win.py | jonchun/ptoys-mapper | a2dde413d37e897ec41b69ac979e538afb7435f0 | [
"MIT"
] | null | null | null | # Source:
# https://github.com/tpn/winsdk-10/blob/46c66795f49679eb4783377968ce25f6c778285a/Include/10.0.10240.0/um/WinUser.h
# # convert all C-style comments to python multi-line string comment
# find: (^/\*[\s\S\r]+?\*/)
# replace: """\n$1\n"""
# # convert all keycode #defines to be python constants
# find: #define\s... | 20.407583 | 114 | 0.576637 |
426fdd67326d3cc89802cd8abeba99af022807c1 | 117 | py | Python | application/flicket_errors/__init__.py | abbas0001/flicket | 547a5e783cccf157d10df88608440aa2919d7e7b | [
"MIT"
] | null | null | null | application/flicket_errors/__init__.py | abbas0001/flicket | 547a5e783cccf157d10df88608440aa2919d7e7b | [
"MIT"
] | null | null | null | application/flicket_errors/__init__.py | abbas0001/flicket | 547a5e783cccf157d10df88608440aa2919d7e7b | [
"MIT"
] | null | null | null | #! python3
# -*- coding: utf-8 -*-
#
from flask import Blueprint
bp_errors = Blueprint('flicket-errors', __name__)
| 14.625 | 49 | 0.683761 |
4270b9f3f72e8e2eb3176ce2f540c1dc258f357c | 399 | py | Python | SmartBuild/modules/migrations/0003_module_shortcut.py | ampamo/smart-build | a0c9a3871eb7ca06a6cd6d4a15aba70e2291f4fb | [
"CC0-1.0"
] | null | null | null | SmartBuild/modules/migrations/0003_module_shortcut.py | ampamo/smart-build | a0c9a3871eb7ca06a6cd6d4a15aba70e2291f4fb | [
"CC0-1.0"
] | null | null | null | SmartBuild/modules/migrations/0003_module_shortcut.py | ampamo/smart-build | a0c9a3871eb7ca06a6cd6d4a15aba70e2291f4fb | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
| 19.95 | 53 | 0.601504 |
4273f06b359f41b03bbac8b02773bc579762c6fd | 6,789 | py | Python | app/common.py | yxonic/dl-boilerplate | d503716ad514929ddfdc41341e37b0e3f1a1f0f5 | [
"MIT"
] | 1 | 2017-09-26T05:13:19.000Z | 2017-09-26T05:13:19.000Z | app/common.py | yxonic/dl-boilerplate | d503716ad514929ddfdc41341e37b0e3f1a1f0f5 | [
"MIT"
] | null | null | null | app/common.py | yxonic/dl-boilerplate | d503716ad514929ddfdc41341e37b0e3f1a1f0f5 | [
"MIT"
] | null | null | null | import abc
import argparse
import logging
import pathlib
from collections import namedtuple
from operator import itemgetter
import toml
def __str__(self):
return str(self.config)
def build_model(self):
"""Build model according to the configurations in current
workspace."""
... | 28.405858 | 78 | 0.577405 |
4274e96e6ce5245f31a18bf5087d02fdafd53341 | 2,737 | py | Python | training/train_pos_dep.py | ex00/spacy-ru | 7284d8127dca322fcc2aa9ce0267699cfc9baf38 | [
"MIT"
] | null | null | null | training/train_pos_dep.py | ex00/spacy-ru | 7284d8127dca322fcc2aa9ce0267699cfc9baf38 | [
"MIT"
] | null | null | null | training/train_pos_dep.py | ex00/spacy-ru | 7284d8127dca322fcc2aa9ce0267699cfc9baf38 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals, print_function
import sys
from pathlib import Path
import spacy
from spacy.lang.ru import Russian
from spacy.pipeline import Tagger, DependencyParser
from spacy.util import fix_random_seed, set_lang_class
from models.dep import MyDEP
from models.loadvec import get_ft_vec
from... | 27.646465 | 111 | 0.700037 |
4275177baedf41f1ab31ef0704dfda58eb058f5e | 1,512 | py | Python | tests/test_peephole_optimizations.py | capuanob/angr | 4e5bb119965cb282f5bcb3dea5b598e88097f715 | [
"BSD-2-Clause"
] | null | null | null | tests/test_peephole_optimizations.py | capuanob/angr | 4e5bb119965cb282f5bcb3dea5b598e88097f715 | [
"BSD-2-Clause"
] | null | null | null | tests/test_peephole_optimizations.py | capuanob/angr | 4e5bb119965cb282f5bcb3dea5b598e88097f715 | [
"BSD-2-Clause"
] | null | null | null | # pylint:disable=missing-class-docstring,no-self-use
import os
import unittest
import archinfo
import ailment
import angr
from angr.analyses.decompiler.peephole_optimizations import ConstantDereferences
test_location = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..', 'binaries', 'tests')
if __... | 38.769231 | 119 | 0.683201 |
42755fd81a38eefae8f526ffb8db205e1141d33b | 604 | py | Python | PySpace/mysql/mysql_insertdata.py | dralee/LearningRepository | 4324d3c5ac1a12dde17ae70c1eb7f3d36a047ba4 | [
"Apache-2.0"
] | null | null | null | PySpace/mysql/mysql_insertdata.py | dralee/LearningRepository | 4324d3c5ac1a12dde17ae70c1eb7f3d36a047ba4 | [
"Apache-2.0"
] | null | null | null | PySpace/mysql/mysql_insertdata.py | dralee/LearningRepository | 4324d3c5ac1a12dde17ae70c1eb7f3d36a047ba4 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
# mysql_createtable.py
import pymysql
#
db = pymysql.connect('localhost','root','1234','fdtest')
# cursor()cursor
cursor = db.cursor()
# SQL
sql = """INSERT INTO EMPLOYEE(
FIRST_NAME,LAST_NAME,AGE,SEX,INCOME)
VALUES('Mac2','Mohan2',20,'M',6000)"""
"""
sql = "INSERT INTO EMPLOYEE(FIRST_NAME... | 16.777778 | 56 | 0.61755 |
42787867fa3db8b6721924f36a9b0de8973ee0ae | 1,572 | py | Python | appleseed_python.py | AllegorithmicSAS/sat-scons | 3eea609385fb9bdd93562097d302a3707c3c6ebe | [
"BSD-3-Clause"
] | 25 | 2018-09-17T00:10:30.000Z | 2021-11-07T06:41:35.000Z | appleseed_python.py | AllegorithmicSAS/sat-scons | 3eea609385fb9bdd93562097d302a3707c3c6ebe | [
"BSD-3-Clause"
] | null | null | null | appleseed_python.py | AllegorithmicSAS/sat-scons | 3eea609385fb9bdd93562097d302a3707c3c6ebe | [
"BSD-3-Clause"
] | 3 | 2018-08-28T15:01:43.000Z | 2021-05-04T16:54:51.000Z | import os
import subprocess
import threading
mutex = threading.Lock()
| 40.307692 | 125 | 0.688295 |
42793637f0ad1d6b8bdb63c8ad74420df516a382 | 1,327 | py | Python | conjureup/ui/views/credentials.py | iMichka/conjure-up | 8e4599e6f58b52163384150d8d71e7802462d126 | [
"MIT"
] | 1 | 2019-06-26T23:39:13.000Z | 2019-06-26T23:39:13.000Z | conjureup/ui/views/credentials.py | iMichka/conjure-up | 8e4599e6f58b52163384150d8d71e7802462d126 | [
"MIT"
] | null | null | null | conjureup/ui/views/credentials.py | iMichka/conjure-up | 8e4599e6f58b52163384150d8d71e7802462d126 | [
"MIT"
] | 1 | 2020-10-05T14:42:31.000Z | 2020-10-05T14:42:31.000Z | from ubuntui.utils import Padding
from ubuntui.widgets.hr import HR
from conjureup.app_config import app
from conjureup.ui.views.base import BaseView, SchemaFormView
from conjureup.ui.widgets.selectors import MenuSelectButtonList
| 33.175 | 73 | 0.694047 |
427ab04e73a73ae528a76eac0fdda4742addfcf9 | 355 | py | Python | sleekxmpp/plugins/__init__.py | aristanetworks/SleekXMPP | 91f53bf1964a564f6f12477a31884e9ec38cef75 | [
"MIT"
] | null | null | null | sleekxmpp/plugins/__init__.py | aristanetworks/SleekXMPP | 91f53bf1964a564f6f12477a31884e9ec38cef75 | [
"MIT"
] | 1 | 2020-04-10T22:09:06.000Z | 2020-04-10T22:09:06.000Z | sleekxmpp/plugins/__init__.py | aristanetworks/SleekXMPP | 91f53bf1964a564f6f12477a31884e9ec38cef75 | [
"MIT"
] | 1 | 2019-12-05T12:10:16.000Z | 2019-12-05T12:10:16.000Z | """
SleekXMPP: The Sleek XMPP Library
Copyright (C) 2010 Nathanael C. Fritz
This file is part of SleekXMPP.
See the file LICENSE for copying permission.
"""
__all__ = ['xep_0004', 'xep_0012', 'xep_0030', 'xep_0033', 'xep_0045',
'xep_0050', 'xep_0085', 'xep_0092', 'xep_0199', 'gmail_notify',
... | 32.272727 | 74 | 0.63662 |
427af261bc83da6fc8ac5c1ea1e2a2473e51e220 | 5,276 | py | Python | main.py | pwillworth/dfkreport | ae10226430a3a74ac3c07ae888cab14dde778db8 | [
"Apache-2.0"
] | 11 | 2022-01-18T17:36:12.000Z | 2022-03-21T21:09:17.000Z | main.py | pwillworth/dfkreport | ae10226430a3a74ac3c07ae888cab14dde778db8 | [
"Apache-2.0"
] | null | null | null | main.py | pwillworth/dfkreport | ae10226430a3a74ac3c07ae888cab14dde778db8 | [
"Apache-2.0"
] | 4 | 2022-01-18T18:37:48.000Z | 2022-01-22T02:14:48.000Z | #!/usr/bin/env python3
import transactions
import taxmap
import db
import settings
import datetime
import argparse
import uuid
import pickle
import jsonpickle
import logging
import logging.handlers
import traceback
if __name__ == "__main__":
main()
| 47.531532 | 224 | 0.666035 |
427b0f2bb086452498a9bfd3a4dc95c14c7879d6 | 127 | py | Python | src/tarski/fstrips/contingent/__init__.py | phoeft670/tarski | 7d955e535fbbca012bfd1a12402b97febc6b35b9 | [
"Apache-2.0"
] | 29 | 2018-11-26T20:31:04.000Z | 2021-12-29T11:08:40.000Z | src/tarski/fstrips/contingent/__init__.py | phoeft670/tarski | 7d955e535fbbca012bfd1a12402b97febc6b35b9 | [
"Apache-2.0"
] | 101 | 2018-06-07T13:10:01.000Z | 2022-03-11T11:54:00.000Z | src/tarski/fstrips/contingent/__init__.py | phoeft670/tarski | 7d955e535fbbca012bfd1a12402b97febc6b35b9 | [
"Apache-2.0"
] | 18 | 2018-11-01T22:44:39.000Z | 2022-02-28T04:57:15.000Z | from .problem import ContingentProblem as Problem
from .. action import Action
from .sensor import Sensor
from . import errors
| 25.4 | 49 | 0.811024 |
427bd9dc45f6695e499240fef94ddec3e4b3fe88 | 80 | py | Python | p40-49/p48.py | kbrose/project_euler | f582ef1887f44628997e05d88253adad0822d6b9 | [
"Unlicense"
] | 1 | 2015-10-11T15:53:00.000Z | 2015-10-11T15:53:00.000Z | p40-49/p48.py | kbrose/project_euler | f582ef1887f44628997e05d88253adad0822d6b9 | [
"Unlicense"
] | null | null | null | p40-49/p48.py | kbrose/project_euler | f582ef1887f44628997e05d88253adad0822d6b9 | [
"Unlicense"
] | null | null | null | sum = 0
for i in xrange(1,1001):
sum = sum + i**i
print sum % 10000000000
| 11.428571 | 24 | 0.6 |
427dedadfbbcbe3c95d00fdafba41ac3a4018d6f | 2,121 | py | Python | property_proteome/length/run.py | rrazban/proteomevis_scripts | 2b6309a78287ffab4ee745383c21b9f474b93b60 | [
"MIT"
] | 1 | 2020-11-11T06:14:10.000Z | 2020-11-11T06:14:10.000Z | property_proteome/length/run.py | rrazban/proteomevis_scripts | 2b6309a78287ffab4ee745383c21b9f474b93b60 | [
"MIT"
] | null | null | null | property_proteome/length/run.py | rrazban/proteomevis_scripts | 2b6309a78287ffab4ee745383c21b9f474b93b60 | [
"MIT"
] | 1 | 2019-05-28T19:13:24.000Z | 2019-05-28T19:13:24.000Z | #!/usr/bin/python
help_msg = 'get uniprot length of entire proteome'
import os, sys
CWD = os.getcwd()
UTLTS_DIR = CWD[:CWD.index('proteomevis_scripts')]+'/proteomevis_scripts/utlts'
sys.path.append(UTLTS_DIR)
from parse_user_input import help_message
from read_in_file import read_in
from parse_data import organism
... | 29.054795 | 87 | 0.705799 |
427e1e9e41044ab46aedd645fb3078c3369fa522 | 2,086 | py | Python | machine_learning/torch_time_series_forecasting/src/data/dataset.py | iimuz/til | b100438e8ce2f369331b3be215a4b9cdce9ffda5 | [
"MIT"
] | 4 | 2020-07-25T01:20:08.000Z | 2020-10-03T12:58:15.000Z | machine_learning/torch_time_series_forecasting/src/data/dataset.py | iimuz/til | b100438e8ce2f369331b3be215a4b9cdce9ffda5 | [
"MIT"
] | 29 | 2019-09-30T08:04:14.000Z | 2022-03-12T13:51:08.000Z | machine_learning/torch_time_series_forecasting/src/data/dataset.py | iimuz/til | b100438e8ce2f369331b3be215a4b9cdce9ffda5 | [
"MIT"
] | 1 | 2020-08-14T05:15:51.000Z | 2020-08-14T05:15:51.000Z | """."""
# default packages
import logging
import pathlib
import traceback
import urllib.request as request
# third party
import pandas as pd
import tqdm as tqdm_std
# my packages
import src.data.directory as directory
# logger
logger = logging.getLogger(__name__)
def _main() -> None:
"""."""
logging.bas... | 25.13253 | 85 | 0.622244 |
427f14f88f6ffd13fff4e9351ec1d15fe8db0b86 | 3,320 | py | Python | app.py | aracnid/i-xero | 2fb2f093a8a92e0ba2f4cdbe440e962a38c09f7e | [
"MIT"
] | null | null | null | app.py | aracnid/i-xero | 2fb2f093a8a92e0ba2f4cdbe440e962a38c09f7e | [
"MIT"
] | null | null | null | app.py | aracnid/i-xero | 2fb2f093a8a92e0ba2f4cdbe440e962a38c09f7e | [
"MIT"
] | null | null | null | """Primary application.
"""
import json
import logging
import logging.config
import os
import sys
from flask import url_for, render_template, redirect, request
from i_xero import Xero2
from i_xero.i_flask import FlaskInterface
from utils import jsonify, serialize_model
# initialize logging
# The SlackBot app doesn't... | 28.376068 | 83 | 0.71506 |
427fcbdb91cef4c0c0751c48d3eb5d865ef45367 | 8,023 | py | Python | ui/Ui_main.py | realm520/aimless | 772e87f5b5a00eeac88be948e424310128fcec1a | [
"MIT"
] | null | null | null | ui/Ui_main.py | realm520/aimless | 772e87f5b5a00eeac88be948e424310128fcec1a | [
"MIT"
] | null | null | null | ui/Ui_main.py | realm520/aimless | 772e87f5b5a00eeac88be948e424310128fcec1a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'F:\work\code\pyqt5\ui\main.ui'
#
# Created by: PyQt5 UI code generator 5.9
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
if __name__ == "__main__":
import sys
app = QtWidgets.Q... | 52.782895 | 108 | 0.720429 |
4283b88a83b93254b8e97d4642f0ca0d5d69279d | 68 | py | Python | examples/02_pybind/01_basic/example.py | BlockResearchGroup/WS_interoperability | 604ab29c242b30b2ee9125a589afe69010ba1844 | [
"MIT"
] | 1 | 2019-07-26T22:25:25.000Z | 2019-07-26T22:25:25.000Z | examples/02_pybind/01_basic/example.py | BlockResearchGroup/WS_interoperability | 604ab29c242b30b2ee9125a589afe69010ba1844 | [
"MIT"
] | 5 | 2019-04-14T21:07:03.000Z | 2019-05-27T21:46:37.000Z | examples/02_pybind/01_basic/example.py | BlockResearchGroup/WS_interoperability | 604ab29c242b30b2ee9125a589afe69010ba1844 | [
"MIT"
] | null | null | null | # example.py
import basic
result = basic.add(1, 5)
print(result)
| 8.5 | 24 | 0.691176 |
4284396ea1fd88ed33820f0870333abd8149c2de | 2,213 | py | Python | cocotbext/spi/devices/TI/DRV8304.py | eoshea/cocotbext-spi | 9b610ca27945e22e168da5774cab8051304ea90f | [
"MIT"
] | 2 | 2021-08-13T20:10:41.000Z | 2022-03-09T19:24:24.000Z | cocotbext/spi/devices/TI/DRV8304.py | eoshea/cocotbext-spi | 9b610ca27945e22e168da5774cab8051304ea90f | [
"MIT"
] | 3 | 2021-08-23T15:34:00.000Z | 2022-01-18T19:27:26.000Z | cocotbext/spi/devices/TI/DRV8304.py | eoshea/cocotbext-spi | 9b610ca27945e22e168da5774cab8051304ea90f | [
"MIT"
] | 2 | 2021-11-12T12:47:45.000Z | 2021-11-18T10:35:43.000Z |
import cocotb
from cocotb.triggers import FallingEdge, RisingEdge, First, Timer, Event
from ... import SpiSlaveBase, SpiConfig, SpiFrameError, SpiFrameTimeout
| 30.315068 | 89 | 0.589245 |
4289d7f6e86034585cd9c9cf37666cc58aab806e | 540 | py | Python | manage.py | Kenneth-joseph/Blogs | b6c508d36cdf2f874c233485003021d10567de7b | [
"Unlicense"
] | null | null | null | manage.py | Kenneth-joseph/Blogs | b6c508d36cdf2f874c233485003021d10567de7b | [
"Unlicense"
] | null | null | null | manage.py | Kenneth-joseph/Blogs | b6c508d36cdf2f874c233485003021d10567de7b | [
"Unlicense"
] | 1 | 2021-11-17T11:03:08.000Z | 2021-11-17T11:03:08.000Z | from app import create_app,db
from flask_script import Manager,Server
from app.models import User,Comment,Blog
from flask_migrate import Migrate, MigrateCommand
#manage.shell
# Creating app instance
app = create_app('production')
migrate = Migrate(app,db)
manager = Manager(app)
manager.add_command('db',MigrateComm... | 24.545455 | 72 | 0.766667 |
428a08abf8ca4b32d91aa59e5ac79f8b3eb02d8f | 901 | py | Python | src/apps/core/migrations/0005_auto_20180417_1219.py | zhiyuli/HydroLearn | b2c2b44e49d37391149d0896ce5124e882f22ee3 | [
"BSD-3-Clause"
] | null | null | null | src/apps/core/migrations/0005_auto_20180417_1219.py | zhiyuli/HydroLearn | b2c2b44e49d37391149d0896ce5124e882f22ee3 | [
"BSD-3-Clause"
] | null | null | null | src/apps/core/migrations/0005_auto_20180417_1219.py | zhiyuli/HydroLearn | b2c2b44e49d37391149d0896ce5124e882f22ee3 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-04-17 17:19
from __future__ import unicode_literals
from django.db import migrations
import django_extensions.db.fields
| 33.37037 | 266 | 0.657048 |
428b1f1d92a691f7e032bddbf0f11e16a416cdf3 | 186 | py | Python | syncgateway/__init__.py | ecordell/syncgateway-admin-client | 78a8d45ff290b42b5c771b901fb92edcde126ff4 | [
"MIT"
] | null | null | null | syncgateway/__init__.py | ecordell/syncgateway-admin-client | 78a8d45ff290b42b5c771b901fb92edcde126ff4 | [
"MIT"
] | 1 | 2015-12-10T20:42:12.000Z | 2015-12-10T20:42:12.000Z | syncgateway/__init__.py | ecordell/syncgateway-admin-client | 78a8d45ff290b42b5c771b901fb92edcde126ff4 | [
"MIT"
] | null | null | null | __author__ = 'Evan Cordell'
__copyright__ = 'Copyright 2012-2015 Localmed, Inc.'
__version__ = "0.1.6"
__version_info__ = tuple(__version__.split('.'))
__short_version__ = __version__
| 23.25 | 52 | 0.758065 |
428b51da1bd2717103e2c7bb03266fb5b3a3af22 | 7,452 | py | Python | members/views.py | leonrenkema/makerspaceleiden-crm | 36ea20f5b9e263e8f30b1831ae4a2b1d5b926d3c | [
"Apache-2.0"
] | 5 | 2019-03-12T21:38:32.000Z | 2021-11-06T15:26:56.000Z | members/views.py | leonrenkema/makerspaceleiden-crm | 36ea20f5b9e263e8f30b1831ae4a2b1d5b926d3c | [
"Apache-2.0"
] | 33 | 2019-01-21T15:54:50.000Z | 2021-05-18T17:54:52.000Z | members/views.py | leonrenkema/makerspaceleiden-crm | 36ea20f5b9e263e8f30b1831ae4a2b1d5b926d3c | [
"Apache-2.0"
] | 5 | 2019-01-21T15:47:26.000Z | 2021-09-22T07:14:34.000Z | from django.shortcuts import render, redirect
from django.contrib.auth.forms import PasswordResetForm
from django.core.mail import EmailMessage
from django.template import loader
from django.http import HttpResponse
from django.contrib.auth.decorators import login_required
from django.conf import settings
from django... | 35.485714 | 118 | 0.554616 |
428b5eca1188b78557324447b1ddda687b1af59c | 3,911 | py | Python | test_scripts/ns_instance/duan/service/vfc/nfvo/lcm/lcm/ns/views/deprecated/create_ns_view.py | lremember/VFC | 837559db1396091811382359100bfc60e1aab5b2 | [
"MIT"
] | 1 | 2019-10-10T00:52:18.000Z | 2019-10-10T00:52:18.000Z | test_scripts/ns_instance/duan/service/vfc/nfvo/lcm/lcm/ns/views/deprecated/create_ns_view.py | lremember/VFC-Files | 837559db1396091811382359100bfc60e1aab5b2 | [
"MIT"
] | null | null | null | test_scripts/ns_instance/duan/service/vfc/nfvo/lcm/lcm/ns/views/deprecated/create_ns_view.py | lremember/VFC-Files | 837559db1396091811382359100bfc60e1aab5b2 | [
"MIT"
] | null | null | null | # Copyright 2018 ZTE Corporation.
#
# 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.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 41.168421 | 92 | 0.692662 |
428be7b7fc4fa9ed70e9c54b4441f37388d4cbd4 | 3,304 | py | Python | parse_training_input.py | alexpotter1/vulndetect-ml | 338fbf919b24520f9107a1604d1c8af48aadff76 | [
"MIT"
] | 1 | 2020-02-25T01:53:23.000Z | 2020-02-25T01:53:23.000Z | parse_training_input.py | alexpotter1/vulndetect-ml | 338fbf919b24520f9107a1604d1c8af48aadff76 | [
"MIT"
] | null | null | null | parse_training_input.py | alexpotter1/vulndetect-ml | 338fbf919b24520f9107a1604d1c8af48aadff76 | [
"MIT"
] | 1 | 2020-10-24T15:30:38.000Z | 2020-10-24T15:30:38.000Z | #!/usr/bin/env python3
import javalang
| 33.714286 | 121 | 0.59776 |
428caa0f2af4107e3b019feaf07304cc2bf7796d | 17,226 | py | Python | src/mist/api/rules/models/main.py | SpiralUp/mist.api | a3b5233ab4aa3f6a0a2dea6333ff1e5a260af934 | [
"Apache-2.0"
] | 6 | 2017-08-24T00:34:30.000Z | 2022-01-16T21:29:22.000Z | src/mist/api/rules/models/main.py | SpiralUp/mist.api | a3b5233ab4aa3f6a0a2dea6333ff1e5a260af934 | [
"Apache-2.0"
] | 9 | 2021-03-31T18:50:47.000Z | 2022-01-09T23:20:02.000Z | src/mist/api/rules/models/main.py | SpiralUp/mist.api | a3b5233ab4aa3f6a0a2dea6333ff1e5a260af934 | [
"Apache-2.0"
] | 13 | 2017-09-21T18:17:02.000Z | 2022-02-21T04:29:25.000Z | import uuid
import mongoengine as me
from mist.api import config
from mist.api.exceptions import BadRequestError
from mist.api.users.models import Organization
from mist.api.selectors.models import SelectorClassMixin
from mist.api.rules.base import NoDataRuleController
from mist.api.rules.base import ResourceRuleCo... | 35.155102 | 79 | 0.673981 |
428d613a4c439197af5e225dec64ebdd98da7d00 | 1,685 | py | Python | setup.py | andrewwhitehead/django-oidc-rp | 233f1daeef96dbe84ecbb37fa31393c84f9c2805 | [
"MIT"
] | 20 | 2018-04-16T13:17:35.000Z | 2021-06-05T00:08:33.000Z | setup.py | andrewwhitehead/django-oidc-rp | 233f1daeef96dbe84ecbb37fa31393c84f9c2805 | [
"MIT"
] | 9 | 2018-07-20T18:19:13.000Z | 2021-12-22T08:57:18.000Z | setup.py | bcgov/django-oidc-rp | 50e6fa143e61b04849b4c66beef078be0d7669de | [
"MIT"
] | 21 | 2018-07-10T16:05:44.000Z | 2022-01-24T05:57:09.000Z | # -*- coding: utf-8 -*-
import codecs
from os.path import abspath
from os.path import dirname
from os.path import join
from setuptools import find_packages
from setuptools import setup
import oidc_rp
def read_relative_file(filename):
""" Returns contents of the given file, whose path is supposed relative to thi... | 31.792453 | 100 | 0.648071 |
428e0c3390f490eb7e09d675c22baad9bedb5ba6 | 171 | py | Python | nndet/evaluator/detection/__init__.py | joeranbosma/nnDetection | 2ebbf1cdc8a8794c73e325f06fea50632c78ae8c | [
"BSD-3-Clause"
] | 242 | 2021-05-17T12:31:39.000Z | 2022-03-31T11:51:29.000Z | nndet/evaluator/detection/__init__.py | joeranbosma/nnDetection | 2ebbf1cdc8a8794c73e325f06fea50632c78ae8c | [
"BSD-3-Clause"
] | 59 | 2021-06-02T07:32:10.000Z | 2022-03-31T18:45:52.000Z | nndet/evaluator/detection/__init__.py | joeranbosma/nnDetection | 2ebbf1cdc8a8794c73e325f06fea50632c78ae8c | [
"BSD-3-Clause"
] | 38 | 2021-05-31T14:01:37.000Z | 2022-03-21T08:24:40.000Z | from nndet.evaluator.detection.froc import FROCMetric
from nndet.evaluator.detection.coco import COCOMetric
from nndet.evaluator.detection.hist import PredictionHistogram
| 42.75 | 62 | 0.877193 |
428e40b791a018156767a64f9f6283399ebd2b1c | 289 | py | Python | tests/test_update.py | sosie-js/ankisync2 | a41580197eab7f180f02a38a4aa912eb54cfaa93 | [
"MIT"
] | 39 | 2020-02-12T23:41:24.000Z | 2022-02-28T15:46:23.000Z | tests/test_update.py | sosie-js/ankisync2 | a41580197eab7f180f02a38a4aa912eb54cfaa93 | [
"MIT"
] | 9 | 2019-08-02T18:25:07.000Z | 2022-02-07T23:14:43.000Z | tests/test_update.py | sosie-js/ankisync2 | a41580197eab7f180f02a38a4aa912eb54cfaa93 | [
"MIT"
] | 6 | 2019-09-09T14:27:48.000Z | 2021-08-31T08:13:00.000Z | # from ankisync2.apkg import Apkg, db
# Has to be done through normal database methods
# def test_update():
# apkg = Apkg("example1.apkg")
# for n in db.Notes.filter(db.Notes.data["field1"] == "data1"):
# n.data["field3"] = "data2"
# n.save()
# apkg.close()
| 24.083333 | 67 | 0.598616 |
428eac96b1905cf94fc5b1f167e60c8c46762f48 | 16,931 | py | Python | lib/place_model.py | ihaeyong/drama-graph | 60c3c216cd74bb19efd6baf836f6c7c2b42b764f | [
"MIT"
] | 3 | 2021-04-28T07:19:39.000Z | 2022-03-07T09:34:19.000Z | lib/place_model.py | ihaeyong/drama-graph | 60c3c216cd74bb19efd6baf836f6c7c2b42b764f | [
"MIT"
] | 18 | 2020-08-24T12:40:38.000Z | 2022-03-12T00:47:14.000Z | lib/place_model.py | ihaeyong/drama-graph | 60c3c216cd74bb19efd6baf836f6c7c2b42b764f | [
"MIT"
] | 1 | 2020-10-15T10:09:20.000Z | 2020-10-15T10:09:20.000Z | import torch
import torch.nn as nn
from torchvision.datasets.vision import VisionDataset
from PIL import Image
import os, sys, math
import os.path
import torch
import json
import torch.utils.model_zoo as model_zoo
from Yolo_v2_pytorch.src.utils import *
from Yolo_v2_pytorch.src.yolo_net import Yolo
from Yolo_v2_pytorc... | 36.647186 | 126 | 0.631268 |
428f4631d1d991fd823deb6aae84c7555b191363 | 9,127 | py | Python | ch01/challenge.py | laszlokiraly/LearningAlgorithms | 032a3cc409546619cf41220821d081cde54bbcce | [
"MIT"
] | null | null | null | ch01/challenge.py | laszlokiraly/LearningAlgorithms | 032a3cc409546619cf41220821d081cde54bbcce | [
"MIT"
] | null | null | null | ch01/challenge.py | laszlokiraly/LearningAlgorithms | 032a3cc409546619cf41220821d081cde54bbcce | [
"MIT"
] | null | null | null | """
Challenge Exercises for Chapter 1.
"""
import random
import timeit
from algs.table import DataTable, ExerciseNum, caption
from algs.counting import RecordedItem
def partition(A, lo, hi, idx):
"""
Partition using A[idx] as value. Note lo and hi are INCLUSIVE on both
ends and idx must be valid index. C... | 29.066879 | 102 | 0.573573 |
428f6c9308ecfc2aebd2c05427a3eb4c4bcb191b | 522 | py | Python | exaslct_src/lib/data/dependency_collector/dependency_image_info_collector.py | mace84/script-languages | d586cbe212bbb4efbfb39e095183729c65489360 | [
"MIT"
] | null | null | null | exaslct_src/lib/data/dependency_collector/dependency_image_info_collector.py | mace84/script-languages | d586cbe212bbb4efbfb39e095183729c65489360 | [
"MIT"
] | 1 | 2019-05-06T07:36:11.000Z | 2019-05-06T07:36:11.000Z | exaslct_src/lib/data/dependency_collector/dependency_image_info_collector.py | mace84/script-languages | d586cbe212bbb4efbfb39e095183729c65489360 | [
"MIT"
] | 1 | 2019-05-03T08:49:29.000Z | 2019-05-03T08:49:29.000Z | from typing import Dict
from exaslct_src.lib.data.image_info import ImageInfo
from exaslct_src.lib.data.dependency_collector.dependency_collector import DependencyInfoCollector
IMAGE_INFO = "image_info"
| 29 | 98 | 0.764368 |
42914f6fbdf21a73ae8be4659f5689614360b711 | 3,131 | py | Python | tensorflow_transform/test_case_test.py | LaudateCorpus1/transform | afee306046b8f656355b0170793ee64423f30e23 | [
"Apache-2.0"
] | 970 | 2017-02-10T04:33:46.000Z | 2022-03-26T08:11:20.000Z | tensorflow_transform/test_case_test.py | LaudateCorpus1/transform | afee306046b8f656355b0170793ee64423f30e23 | [
"Apache-2.0"
] | 216 | 2017-02-23T04:50:59.000Z | 2022-03-31T13:52:57.000Z | tensorflow_transform/test_case_test.py | LaudateCorpus1/transform | afee306046b8f656355b0170793ee64423f30e23 | [
"Apache-2.0"
] | 238 | 2017-02-17T16:30:55.000Z | 2022-03-03T20:10:25.000Z | # Copyright 2017 Google Inc. 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.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 36.835294 | 79 | 0.544874 |
4293119f4fbe0691576ba0bf3959decad7140860 | 6,388 | py | Python | metageta/icons.py | ssutee/metageta | 70b7e572acefcce7a8f4d8de719f936934319064 | [
"MIT"
] | null | null | null | metageta/icons.py | ssutee/metageta | 70b7e572acefcce7a8f4d8de719f936934319064 | [
"MIT"
] | null | null | null | metageta/icons.py | ssutee/metageta | 70b7e572acefcce7a8f4d8de719f936934319064 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2013 Australian Government, Department of the Environment
#
# 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... | 63.88 | 89 | 0.688009 |
42934dc5c7b47e76f47a4a49a47981e068b48692 | 1,417 | py | Python | chmp/src/chmp/torch_utils/_test_bayes.py | chmp/misc-exp | 2edc2ed598eb59f4ccb426e7a5c1a23343a6974b | [
"MIT"
] | 6 | 2017-10-31T20:54:37.000Z | 2020-10-23T19:03:00.000Z | chmp/src/chmp/torch_utils/_test_bayes.py | chmp/misc-exp | 2edc2ed598eb59f4ccb426e7a5c1a23343a6974b | [
"MIT"
] | 7 | 2020-03-24T16:14:34.000Z | 2021-03-18T20:51:37.000Z | chmp/src/chmp/torch_utils/_test_bayes.py | chmp/misc-exp | 2edc2ed598eb59f4ccb426e7a5c1a23343a6974b | [
"MIT"
] | 1 | 2019-07-29T07:55:49.000Z | 2019-07-29T07:55:49.000Z | import torch
import pytest
# NOTE: also registers the KL divergence
from chmp.torch_utils import NormalModule, WeightsHS, fixed
| 28.918367 | 73 | 0.666902 |
4293fa719a880b9bfe3a700da09a0f285fc6495b | 867 | py | Python | test/hummingbot/core/utils/test_fixed_rate_source.py | BGTCapital/hummingbot | 2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242 | [
"Apache-2.0"
] | 3,027 | 2019-04-04T18:52:17.000Z | 2022-03-30T09:38:34.000Z | test/hummingbot/core/utils/test_fixed_rate_source.py | BGTCapital/hummingbot | 2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242 | [
"Apache-2.0"
] | 4,080 | 2019-04-04T19:51:11.000Z | 2022-03-31T23:45:21.000Z | test/hummingbot/core/utils/test_fixed_rate_source.py | BGTCapital/hummingbot | 2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242 | [
"Apache-2.0"
] | 1,342 | 2019-04-04T20:50:53.000Z | 2022-03-31T15:22:36.000Z | from decimal import Decimal
from unittest import TestCase
from hummingbot.core.utils.fixed_rate_source import FixedRateSource
| 32.111111 | 83 | 0.731257 |
4297be6e9ea671a123810cad1577476fb18a42d0 | 5,293 | py | Python | src/graphnet/models/detector/icecube.py | kaareendrup/gnn-reco | 21f4e36ef17c765a04cde0b2e34d5f802a988055 | [
"Apache-2.0"
] | null | null | null | src/graphnet/models/detector/icecube.py | kaareendrup/gnn-reco | 21f4e36ef17c765a04cde0b2e34d5f802a988055 | [
"Apache-2.0"
] | null | null | null | src/graphnet/models/detector/icecube.py | kaareendrup/gnn-reco | 21f4e36ef17c765a04cde0b2e34d5f802a988055 | [
"Apache-2.0"
] | null | null | null | import torch
from torch_geometric.data import Data
from graphnet.components.pool import group_pulses_to_dom, group_pulses_to_pmt, sum_pool_and_distribute
from graphnet.data.constants import FEATURES
from graphnet.models.detector.detector import Detector
| 33.713376 | 128 | 0.575477 |
429945dde445e0205f0ceeefa695def22a8e1795 | 450 | py | Python | tests/routes_parsing/test1.py | hellojoechip/bambleweeny | ef65f574081eb169aef5a2f7363c3f8ba9ebf028 | [
"MIT"
] | 22 | 2018-09-30T12:08:09.000Z | 2020-11-18T06:32:01.000Z | tests/routes_parsing/test1.py | hellojoechip/bambleweeny | ef65f574081eb169aef5a2f7363c3f8ba9ebf028 | [
"MIT"
] | 34 | 2018-09-13T14:54:21.000Z | 2020-03-26T18:26:26.000Z | tests/routes_parsing/test1.py | hellojoechip/bambleweeny | ef65f574081eb169aef5a2f7363c3f8ba9ebf028 | [
"MIT"
] | 17 | 2018-10-07T15:41:50.000Z | 2021-12-10T10:29:02.000Z | import re
t1 = 'Data !@[value1] and also !@[system:uptime] testing.'
print("Content: " + t1)
if re.search('!@\[[_a-zA-Z0-9:]*\]', t1):
print("YES")
else:
print("NO")
o = re.sub('!@\[[_a-zA-Z0-9:]*\]', '_B9yPrsE_\\g<0>_B9yPrsE_', t1)
o2 = o.split("_B9yPrsE_")
for i in o2:
if i.startswith("!@["):
... | 21.428571 | 66 | 0.482222 |
429a7f070688a75a8c4a4c449d4d3474a9a7088a | 5,430 | py | Python | internal/notes/builtin-SAVE/packages/suite-sparse/package.py | HPCToolkit/hpctest | 5ff4455582bf39e75530a31badcf6142081b386b | [
"BSD-3-Clause"
] | 1 | 2019-01-17T20:07:19.000Z | 2019-01-17T20:07:19.000Z | internal/notes/builtin-SAVE/packages/suite-sparse/package.py | HPCToolkit/hpctest | 5ff4455582bf39e75530a31badcf6142081b386b | [
"BSD-3-Clause"
] | null | null | null | internal/notes/builtin-SAVE/packages/suite-sparse/package.py | HPCToolkit/hpctest | 5ff4455582bf39e75530a31badcf6142081b386b | [
"BSD-3-Clause"
] | 2 | 2019-08-06T18:13:57.000Z | 2021-11-05T18:19:49.000Z | ##############################################################################
# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | 44.876033 | 122 | 0.618416 |
429b606cd5d96a46f963693074a289b595badea4 | 4,580 | py | Python | tick/array/serialize.py | andro2157/tick | d22d0e70c8bb2d5b232ffa7b97426010c2328edc | [
"BSD-3-Clause"
] | null | null | null | tick/array/serialize.py | andro2157/tick | d22d0e70c8bb2d5b232ffa7b97426010c2328edc | [
"BSD-3-Clause"
] | null | null | null | tick/array/serialize.py | andro2157/tick | d22d0e70c8bb2d5b232ffa7b97426010c2328edc | [
"BSD-3-Clause"
] | null | null | null | # License: BSD 3 clause
import os
import numpy as np
import scipy
from tick.array.build.array import (
tick_float_array_to_file,
tick_float_array2d_to_file,
tick_float_sparse2d_to_file,
tick_double_array_to_file,
tick_double_array2d_to_file,
tick_double_sparse2d_to_file,
tick_float_array_... | 32.94964 | 76 | 0.613974 |
429b9b03d73a5f7f9bbccc750f09ea936a25f8a0 | 78 | py | Python | __init__.py | bbockelm/glideinWMS | a2b39e3d4ff6c4527efad54b1eefe728a4ec9d18 | [
"BSD-3-Clause"
] | null | null | null | __init__.py | bbockelm/glideinWMS | a2b39e3d4ff6c4527efad54b1eefe728a4ec9d18 | [
"BSD-3-Clause"
] | 3 | 2015-12-02T19:37:45.000Z | 2016-01-20T03:21:48.000Z | __init__.py | bbockelm/glideinWMS | a2b39e3d4ff6c4527efad54b1eefe728a4ec9d18 | [
"BSD-3-Clause"
] | 1 | 2015-12-01T23:02:41.000Z | 2015-12-01T23:02:41.000Z | __all__=["factory","frontend","lib","tools","creation","install","unittests"]
| 39 | 77 | 0.692308 |
429beefc88e6c9cf72106405ad5b6e321025f9d6 | 20,658 | py | Python | views/menuVisualizacaoGeral.py | iOsnaaente/Tracker-solar-Supervisorio | 9790c34f0d9df283bc1b92f79b2807875dbcfe3e | [
"MIT"
] | 2 | 2022-01-29T21:33:12.000Z | 2022-02-01T12:41:35.000Z | views/menuVisualizacaoGeral.py | iOsnaaente/Tracker-solar-Supervisorio | 9790c34f0d9df283bc1b92f79b2807875dbcfe3e | [
"MIT"
] | null | null | null | views/menuVisualizacaoGeral.py | iOsnaaente/Tracker-solar-Supervisorio | 9790c34f0d9df283bc1b92f79b2807875dbcfe3e | [
"MIT"
] | null | null | null | import dearpygui.dearpygui as dpg
import datetime as dt
import math
from registry import *
SUN_DATA.update_date()
# FUNCTIONS
# MAIN FUNCTIONS | 70.989691 | 267 | 0.554265 |
429cb5fb216dbdf5ec9ff71a33c2d298dd2c8210 | 4,071 | py | Python | python/jwt.py | angelbarranco/passes-rest-samples | 93f54e3e7b651bcfd1b269e2bcd5d9bf9d50ad8c | [
"Apache-2.0"
] | 95 | 2019-06-05T12:45:15.000Z | 2022-03-30T14:02:27.000Z | python/jwt.py | angelbarranco/passes-rest-samples | 93f54e3e7b651bcfd1b269e2bcd5d9bf9d50ad8c | [
"Apache-2.0"
] | 21 | 2019-06-18T15:41:41.000Z | 2022-03-04T15:29:57.000Z | python/jwt.py | angelbarranco/passes-rest-samples | 93f54e3e7b651bcfd1b269e2bcd5d9bf9d50ad8c | [
"Apache-2.0"
] | 45 | 2019-06-13T20:57:11.000Z | 2022-03-21T13:43:31.000Z | """
Copyright 2019 Google Inc. 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.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in... | 35.4 | 121 | 0.747237 |
429ce61086d20c4c1d15d20e5249184bf0cc61e3 | 4,714 | py | Python | janus.py | caxmd/januus | 79208e2450b4c5b1c81346b99814462f6d083b66 | [
"MIT"
] | 83 | 2017-12-11T03:33:10.000Z | 2022-02-17T15:13:54.000Z | janus.py | caxmd/januus | 79208e2450b4c5b1c81346b99814462f6d083b66 | [
"MIT"
] | 3 | 2017-12-25T16:15:44.000Z | 2018-06-17T11:06:08.000Z | janus.py | caxmd/januus | 79208e2450b4c5b1c81346b99814462f6d083b66 | [
"MIT"
] | 25 | 2017-12-11T03:51:12.000Z | 2022-02-17T15:13:57.000Z | # Includes some code derived from the cpython project.
# Source: https://github.com/python/cpython/blob/master/Lib/zipfile.py
# Excuse the mess.
import argparse
from hashlib import sha1
import os
import struct
from zipfile import _EndRecData, ZipFile
from zlib import adler32
_ECD_SIGNATURE = 0
_ECD_DISK_NUMBER = 1
_... | 31.218543 | 152 | 0.655282 |
429cf2c16bb83449ca0bd5d3338a9cac6d753159 | 74 | py | Python | constants.py | phy1um/tmtc-discord-bot | 7d01cd4c1a78dc0b8aa2bb703c8970ff7bb27f92 | [
"MIT"
] | null | null | null | constants.py | phy1um/tmtc-discord-bot | 7d01cd4c1a78dc0b8aa2bb703c8970ff7bb27f92 | [
"MIT"
] | null | null | null | constants.py | phy1um/tmtc-discord-bot | 7d01cd4c1a78dc0b8aa2bb703c8970ff7bb27f92 | [
"MIT"
] | null | null | null |
ANNOUNCEMENT_ROLE = "941805571915513857"
GUILD_ID = "878926572235665418"
| 18.5 | 40 | 0.824324 |
429eedb68c601680755c430f3d242a23508963a5 | 3,352 | py | Python | test/gst-msdk/transcode/mpeg2.py | haribommi/vaapi-fits | cbf2a463bd3b2c9af5c45a1376b0bde2b703ed23 | [
"BSD-3-Clause"
] | null | null | null | test/gst-msdk/transcode/mpeg2.py | haribommi/vaapi-fits | cbf2a463bd3b2c9af5c45a1376b0bde2b703ed23 | [
"BSD-3-Clause"
] | null | null | null | test/gst-msdk/transcode/mpeg2.py | haribommi/vaapi-fits | cbf2a463bd3b2c9af5c45a1376b0bde2b703ed23 | [
"BSD-3-Clause"
] | null | null | null | ##
### Copyright (C) 2018-2019 Intel Corporation
###
### SPDX-License-Identifier: BSD-3-Clause
###
from ....lib import *
from ..util import *
from .transcoder import TranscoderTest
spec = load_test_spec("mpeg2", "transcode")
| 38.976744 | 107 | 0.683174 |
42a05049df648190833a6dde333b459a1ed6a363 | 10,220 | py | Python | rusel/base/context.py | ruslan-ok/ruslan | fc402e53d2683581e13f4d6c69a6f21e5c2ca1f8 | [
"MIT"
] | null | null | null | rusel/base/context.py | ruslan-ok/ruslan | fc402e53d2683581e13f4d6c69a6f21e5c2ca1f8 | [
"MIT"
] | null | null | null | rusel/base/context.py | ruslan-ok/ruslan | fc402e53d2683581e13f4d6c69a6f21e5c2ca1f8 | [
"MIT"
] | null | null | null | import os, time, mimetypes, glob
from django.utils.translation import gettext_lazy as _
from django.urls import reverse
from task.const import *
from task.models import Task, detect_group
from rusel.base.config import Config
from rusel.base.forms import CreateGroupForm
from rusel.context import get_base_context
from ru... | 40.078431 | 196 | 0.531409 |
42a0a34d1333c63396ab8f94b968a15d8d78c49d | 2,046 | py | Python | deepdiy/plugins/system/debugger/debugger.py | IEWbgfnYDwHRoRRSKtkdyMDUzgdwuBYgDKtDJWd/diy | 080ddece4f982f22f3d5cff8d9d82e12fcd946a1 | [
"MIT"
] | 57 | 2019-05-01T05:27:19.000Z | 2022-03-06T12:11:55.000Z | deepdiy/plugins/system/debugger/debugger.py | markusj1201/deepdiy | 080ddece4f982f22f3d5cff8d9d82e12fcd946a1 | [
"MIT"
] | 6 | 2020-01-28T22:42:22.000Z | 2022-02-10T00:13:11.000Z | deepdiy/plugins/system/debugger/debugger.py | markusj1201/deepdiy | 080ddece4f982f22f3d5cff8d9d82e12fcd946a1 | [
"MIT"
] | 13 | 2019-05-08T03:19:58.000Z | 2021-08-02T04:24:15.000Z | import os,rootpath
rootpath.append(pattern='main.py') # add the directory of main.py to PATH
import glob
from kivy.app import App
from kivy.lang import Builder
from kivy.properties import ObjectProperty,DictProperty,ListProperty
from kivy.uix.boxlayout import BoxLayout
import logging,importlib,pkgutil
if __name__ ==... | 31 | 106 | 0.711632 |
42a141b9ed0d23fd4819a5a6563c8f54190ea8c2 | 1,885 | py | Python | supervised_learning/classification/perceptron/perceptron.py | Ambitious-idiot/python-machine-learning | 6c057dd64fb47de3e822b825135d24896ce13a4a | [
"MIT"
] | 3 | 2021-04-15T06:20:31.000Z | 2021-05-28T05:26:06.000Z | supervised_learning/classification/perceptron/perceptron.py | Ambitious-idiot/python-machine-learning | 6c057dd64fb47de3e822b825135d24896ce13a4a | [
"MIT"
] | null | null | null | supervised_learning/classification/perceptron/perceptron.py | Ambitious-idiot/python-machine-learning | 6c057dd64fb47de3e822b825135d24896ce13a4a | [
"MIT"
] | null | null | null | import numpy as np
| 40.106383 | 116 | 0.682228 |
42a1c00f35b59908451cfee2563f53a899db2598 | 901 | py | Python | pygama/dsp/_processors/trap_filter.py | sweigart/pygama | 3c5fe4c69230814933b2de879b9a305ff0d4ad5e | [
"Apache-2.0"
] | 1 | 2022-01-19T14:31:56.000Z | 2022-01-19T14:31:56.000Z | pygama/dsp/_processors/trap_filter.py | sweigart/pygama | 3c5fe4c69230814933b2de879b9a305ff0d4ad5e | [
"Apache-2.0"
] | 1 | 2020-12-08T20:07:24.000Z | 2020-12-08T20:07:24.000Z | pygama/dsp/_processors/trap_filter.py | sweigart/pygama | 3c5fe4c69230814933b2de879b9a305ff0d4ad5e | [
"Apache-2.0"
] | null | null | null | import numpy as np
from numba import guvectorize
| 37.541667 | 102 | 0.558269 |
42a67cbf934d63272df061aa18d737365bf0fa29 | 5,109 | py | Python | pilferer/engine.py | Sebastian-dm/pilferer | 5126377154c7ba08fbea1a9dfad752bf8b1c72a9 | [
"MIT"
] | null | null | null | pilferer/engine.py | Sebastian-dm/pilferer | 5126377154c7ba08fbea1a9dfad752bf8b1c72a9 | [
"MIT"
] | null | null | null | pilferer/engine.py | Sebastian-dm/pilferer | 5126377154c7ba08fbea1a9dfad752bf8b1c72a9 | [
"MIT"
] | null | null | null | import tcod
from input_handlers import handle_keys
from game_states import GameStates
from render_functions import clear_all, render_all, RenderOrder
from map_objects.game_map import GameMap
from fov_functions import initialize_fov, recompute_fov
from entity import Entity, get_blocking_entity_at_location
from compon... | 32.335443 | 112 | 0.603249 |
42a6cbc1a232b14997c3952e709da0eebe84cd51 | 2,337 | py | Python | galaxy/api/v2/urls.py | SamyCoenen/galaxy | 7c17ef45e53b0fc2fe8a2c70a99f3947604e0b0e | [
"Apache-2.0"
] | null | null | null | galaxy/api/v2/urls.py | SamyCoenen/galaxy | 7c17ef45e53b0fc2fe8a2c70a99f3947604e0b0e | [
"Apache-2.0"
] | null | null | null | galaxy/api/v2/urls.py | SamyCoenen/galaxy | 7c17ef45e53b0fc2fe8a2c70a99f3947604e0b0e | [
"Apache-2.0"
] | null | null | null | # (c) 2012-2019, Ansible by Red Hat
#
# This file is part of Ansible Galaxy
#
# Ansible Galaxy is free software: you can redistribute it and/or modify
# it under the terms of the Apache License as published by
# the Apache Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
... | 35.953846 | 75 | 0.682071 |
42a78f723d388f6c17abd15949a96f2a870ca42a | 1,933 | py | Python | mindhome_alpha/erpnext/stock/doctype/stock_settings/test_stock_settings.py | Mindhome/field_service | 3aea428815147903eb9af1d0c1b4b9fc7faed057 | [
"MIT"
] | 1 | 2021-04-29T14:55:29.000Z | 2021-04-29T14:55:29.000Z | mindhome_alpha/erpnext/stock/doctype/stock_settings/test_stock_settings.py | Mindhome/field_service | 3aea428815147903eb9af1d0c1b4b9fc7faed057 | [
"MIT"
] | null | null | null | mindhome_alpha/erpnext/stock/doctype/stock_settings/test_stock_settings.py | Mindhome/field_service | 3aea428815147903eb9af1d0c1b4b9fc7faed057 | [
"MIT"
] | 1 | 2021-04-29T14:39:01.000Z | 2021-04-29T14:39:01.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and Contributors
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest
| 42.021739 | 338 | 0.698914 |
42a96ad3b83164695c47573ef1f876f36eb4d891 | 1,148 | py | Python | pybloxy/classes/http.py | R0bl0x10501050/roblox.py | cbbb25878627c2d837caaeb7edf37d0aeda615ae | [
"MIT"
] | null | null | null | pybloxy/classes/http.py | R0bl0x10501050/roblox.py | cbbb25878627c2d837caaeb7edf37d0aeda615ae | [
"MIT"
] | null | null | null | pybloxy/classes/http.py | R0bl0x10501050/roblox.py | cbbb25878627c2d837caaeb7edf37d0aeda615ae | [
"MIT"
] | null | null | null | import logging
import requests | 26.697674 | 93 | 0.722997 |
42a99e600220ea6f0c20b482db83263664318f69 | 1,305 | py | Python | resources/nuice_simulations/src/layers_sim/layers_sim_node.py | SpyGuyIan/NUice | 47991a848dac244b4c476b4a92f7a27a1f9e5dcc | [
"MIT"
] | 1 | 2021-08-17T00:40:42.000Z | 2021-08-17T00:40:42.000Z | resources/nuice_simulations/src/layers_sim/layers_sim_node.py | SpyGuyIan/NUice | 47991a848dac244b4c476b4a92f7a27a1f9e5dcc | [
"MIT"
] | 1 | 2021-01-31T17:15:40.000Z | 2021-01-31T17:15:40.000Z | resources/nuice_simulations/src/layers_sim/layers_sim_node.py | NUMarsIce/NUice | 47991a848dac244b4c476b4a92f7a27a1f9e5dcc | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import rospy
from std_msgs.msg import Float64
import random
possibleLayers = [140, 50, 80, 200, 100]
cur_position = 0.0
#Build the layers simulation, then publish material strengths. Lasts 100 seconds.
#Get the strength of the next layer from the list of possible layer strengths.
#Build th... | 29 | 81 | 0.691954 |
42a9a106ced30891f6bde30e0be69f4978578110 | 1,121 | py | Python | imagescraper/imagescraper/spiders/image_crawl_spider.py | karthikn2789/Scrapy-Projects | 84db4ed1a2f38d6fa03d1bfa6a6ebf9fb527f523 | [
"MIT"
] | 2 | 2021-04-08T12:48:10.000Z | 2021-06-16T09:42:39.000Z | imagescraper/imagescraper/spiders/image_crawl_spider.py | karthikn2789/Scrapy-Projects | 84db4ed1a2f38d6fa03d1bfa6a6ebf9fb527f523 | [
"MIT"
] | null | null | null | imagescraper/imagescraper/spiders/image_crawl_spider.py | karthikn2789/Scrapy-Projects | 84db4ed1a2f38d6fa03d1bfa6a6ebf9fb527f523 | [
"MIT"
] | 6 | 2020-08-05T09:45:39.000Z | 2021-11-16T14:05:20.000Z | import scrapy
import re
from scrapy.linkextractors import LinkExtractor
from scrapy.spiders import CrawlSpider, Rule
from ..items import ImagescraperItem
| 36.16129 | 92 | 0.611954 |
42a9d7f0de1fb5aee832bc5e97c48ecbdecd3930 | 10,460 | py | Python | scripts/pos_eval.py | ProKil/sparse-text-prototype | e7369dc981fb2c2a94ccb4edca4a7e7c7d7543cd | [
"MIT"
] | 19 | 2020-11-05T12:17:45.000Z | 2021-11-17T08:43:50.000Z | scripts/pos_eval.py | ProKil/sparse-text-prototype | e7369dc981fb2c2a94ccb4edca4a7e7c7d7543cd | [
"MIT"
] | 1 | 2021-07-08T13:30:15.000Z | 2021-07-08T13:30:15.000Z | scripts/pos_eval.py | ProKil/sparse-text-prototype | e7369dc981fb2c2a94ccb4edca4a7e7c7d7543cd | [
"MIT"
] | 2 | 2020-12-20T13:19:14.000Z | 2021-06-25T20:18:00.000Z | import os
import argparse
import subprocess
import random
import edlib
from typing import List
from collections import Counter
import stanza
parser = argparse.ArgumentParser(description='Evaluate analysis metrics')
parser.add_argument('--prefix', type=str, choices=['inference', 'generation'],
help='predict... | 33.41853 | 122 | 0.603537 |
42aa82728f6722cbbdd0c68a0e10c8dd5f0958ee | 582 | py | Python | tests/rules/test_git_stash_pop.py | RogueScholar/thefuck-termux | cc33d5fa0077b2b2323b8a62f3478ff8efef3fba | [
"MIT"
] | null | null | null | tests/rules/test_git_stash_pop.py | RogueScholar/thefuck-termux | cc33d5fa0077b2b2323b8a62f3478ff8efef3fba | [
"MIT"
] | null | null | null | tests/rules/test_git_stash_pop.py | RogueScholar/thefuck-termux | cc33d5fa0077b2b2323b8a62f3478ff8efef3fba | [
"MIT"
] | null | null | null | import pytest
from thefuck.rules.git_stash_pop import get_new_command
from thefuck.rules.git_stash_pop import match
from thefuck.types import Command
| 26.454545 | 96 | 0.707904 |
42ab556174e9603454893f6f485c837afcd3bad8 | 3,642 | py | Python | src/arima_model.py | SaharCarmel/ARIMA | c54e8554f1c4a95c25687bdf35b4296ed6bd78d6 | [
"MIT"
] | null | null | null | src/arima_model.py | SaharCarmel/ARIMA | c54e8554f1c4a95c25687bdf35b4296ed6bd78d6 | [
"MIT"
] | null | null | null | src/arima_model.py | SaharCarmel/ARIMA | c54e8554f1c4a95c25687bdf35b4296ed6bd78d6 | [
"MIT"
] | null | null | null | """ The ARIMA model. """
import torch
import numpy as np
| 34.358491 | 77 | 0.549149 |
42ab6fa034b5730a8c76b4b76e6056f1b558984c | 687 | py | Python | problems/slidingwindow/Solution1100.py | akalu/cs-problems-python | 9b1bd8e3932be62135a38a77f955ded9a766b654 | [
"MIT"
] | null | null | null | problems/slidingwindow/Solution1100.py | akalu/cs-problems-python | 9b1bd8e3932be62135a38a77f955ded9a766b654 | [
"MIT"
] | null | null | null | problems/slidingwindow/Solution1100.py | akalu/cs-problems-python | 9b1bd8e3932be62135a38a77f955ded9a766b654 | [
"MIT"
] | null | null | null | """
Sliding window
Given a string S, return the number of substrings of length K with no
repeated characters.
Example 1:
Input: S = "havefunonleetcode", K = 5 Output: 6 Explanation: There are 6
substrings they are : 'havef','avefu','vefun','efuno','etcod','tcode'.
cou... | 18.078947 | 86 | 0.58952 |
42ab8cf968e58717ef4f86c899c0440ef99114b5 | 26 | py | Python | the_file_propagator/__init__.py | joeflack4/the-file-propagator | c72fdad7774c82c8bfa6bf5253b83f6bb1e4e713 | [
"MIT"
] | null | null | null | the_file_propagator/__init__.py | joeflack4/the-file-propagator | c72fdad7774c82c8bfa6bf5253b83f6bb1e4e713 | [
"MIT"
] | null | null | null | the_file_propagator/__init__.py | joeflack4/the-file-propagator | c72fdad7774c82c8bfa6bf5253b83f6bb1e4e713 | [
"MIT"
] | null | null | null | """The File Propagator"""
| 13 | 25 | 0.653846 |
42ab9f264f4ecd8a53e0ce06b3bb77538b433100 | 4,681 | py | Python | src/wa_kat/templates/static/js/Lib/site-packages/components/keyword_handler.py | WebArchivCZ/WA-KAT | 719f7607222f5a4d917c535b2da6371184222101 | [
"MIT"
] | 3 | 2017-03-23T12:59:21.000Z | 2017-11-22T08:23:14.000Z | src/wa_kat/templates/static/js/Lib/site-packages/components/keyword_handler.py | WebArchivCZ/WA-KAT | 719f7607222f5a4d917c535b2da6371184222101 | [
"MIT"
] | 89 | 2015-06-28T22:10:28.000Z | 2017-01-30T16:06:05.000Z | src/wa_kat/templates/static/js/Lib/site-packages/components/keyword_handler.py | WebarchivCZ/WA-KAT | 719f7607222f5a4d917c535b2da6371184222101 | [
"MIT"
] | 1 | 2015-12-17T02:56:59.000Z | 2015-12-17T02:56:59.000Z | #! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Interpreter version: brython (http://brython.info) (like python3)
#
# Imports =====================================================================
from os.path import join
from browser import window
from browser import document
# virtual filesystem / modules provide... | 29.25625 | 79 | 0.580432 |
42abdb34b5121a34132a5ff61f5b37cf1ca828bc | 53 | py | Python | scripts/rnn/gru/__init__.py | bfeng/CryptoGRU | 65f6fe9eba981fea65fc665ff16938bf3a593001 | [
"MIT"
] | 1 | 2022-01-12T03:18:55.000Z | 2022-01-12T03:18:55.000Z | scripts/rnn/gru/__init__.py | bfeng/CryptoGRU | 65f6fe9eba981fea65fc665ff16938bf3a593001 | [
"MIT"
] | null | null | null | scripts/rnn/gru/__init__.py | bfeng/CryptoGRU | 65f6fe9eba981fea65fc665ff16938bf3a593001 | [
"MIT"
] | null | null | null | from .grucell import MyGRUCell
from .gru import MyGRU | 26.5 | 30 | 0.830189 |
42b002236c965251bc510639be4dce4dd1300339 | 2,946 | py | Python | ZZZ_OtherDemo/00-dyld-832.7.3/testing/kernel-cache-tests/kext-missing-weak-bind/test.py | 1079278593/TreasureChest | 8b1ebe04ed7c2ed399c4ecf3b75b3fee0a1aced8 | [
"MIT"
] | null | null | null | ZZZ_OtherDemo/00-dyld-832.7.3/testing/kernel-cache-tests/kext-missing-weak-bind/test.py | 1079278593/TreasureChest | 8b1ebe04ed7c2ed399c4ecf3b75b3fee0a1aced8 | [
"MIT"
] | null | null | null | ZZZ_OtherDemo/00-dyld-832.7.3/testing/kernel-cache-tests/kext-missing-weak-bind/test.py | 1079278593/TreasureChest | 8b1ebe04ed7c2ed399c4ecf3b75b3fee0a1aced8 | [
"MIT"
] | null | null | null | #!/usr/bin/python2.7
import os
import KernelCollection
# Check that weak binds can be missing, so long as we check for the magic symbol
# [~]> xcrun -sdk iphoneos.internal cc -arch arm64 -Wl,-static -mkernel -nostdlib -Wl,-add_split_seg_info -Wl,-rename_section,__TEXT,__text,__TEXT_EXEC,__text -Wl,-e,__start -Wl,-p... | 62.680851 | 316 | 0.681942 |
42b0f3205382f72fca408d985411165330e27a01 | 7,453 | py | Python | datahub/search/investment/models.py | alixedi/data-hub-api-cd-poc | a5e5ea45bb496c0d2a06635864514af0c7d4291a | [
"MIT"
] | null | null | null | datahub/search/investment/models.py | alixedi/data-hub-api-cd-poc | a5e5ea45bb496c0d2a06635864514af0c7d4291a | [
"MIT"
] | 16 | 2020-04-01T15:25:35.000Z | 2020-04-14T14:07:30.000Z | datahub/search/investment/models.py | alixedi/data-hub-api-cd-poc | a5e5ea45bb496c0d2a06635864514af0c7d4291a | [
"MIT"
] | null | null | null | from elasticsearch_dsl import Boolean, Date, Double, Integer, Keyword, Long, Object, Text
from datahub.search import dict_utils
from datahub.search import fields
from datahub.search.models import BaseESModel
DOC_TYPE = 'investment_project'
def _related_investment_project_field():
"""Field for a related investm... | 38.417526 | 99 | 0.70106 |
42b106aaf54e3b2c19e17572d5a63e648baf43b4 | 1,670 | py | Python | robust_sleep_net/models/modulo_net/features_encoder/fully_connected.py | Dreem-Organization/RobustSleepNet | c8ff3f6f857299eb2bf2e9400483084d5ecd4106 | [
"MIT"
] | 16 | 2021-04-06T14:04:45.000Z | 2022-03-11T14:37:08.000Z | robust_sleep_net/models/modulo_net/features_encoder/fully_connected.py | Dreem-Organization/RobustSleepNet | c8ff3f6f857299eb2bf2e9400483084d5ecd4106 | [
"MIT"
] | null | null | null | robust_sleep_net/models/modulo_net/features_encoder/fully_connected.py | Dreem-Organization/RobustSleepNet | c8ff3f6f857299eb2bf2e9400483084d5ecd4106 | [
"MIT"
] | 4 | 2021-06-10T06:48:33.000Z | 2022-03-26T22:29:07.000Z | from collections import OrderedDict
import torch
from torch import nn
| 32.115385 | 96 | 0.426946 |
35e91cbc49c53f3ff38da3a05748e14783d919ce | 2,968 | py | Python | data/rawdata_dataset.py | weiyw16/pytorch-CycleGAN-and-pix2pix | 432a91ee6ca8dc606ba0116b27b0948abc48f295 | [
"BSD-3-Clause"
] | null | null | null | data/rawdata_dataset.py | weiyw16/pytorch-CycleGAN-and-pix2pix | 432a91ee6ca8dc606ba0116b27b0948abc48f295 | [
"BSD-3-Clause"
] | null | null | null | data/rawdata_dataset.py | weiyw16/pytorch-CycleGAN-and-pix2pix | 432a91ee6ca8dc606ba0116b27b0948abc48f295 | [
"BSD-3-Clause"
] | null | null | null | #import
import os
#import torch
#import torch.nn as nn
import torch.utils.data as Data
#import torchvision
import matplotlib.pyplot as plt
import h5py
#from torch.autograd import Variable
import numpy as np
import torch
#%hist -f rawdata_dataset.py
| 38.545455 | 97 | 0.597035 |
35eca7541efb5afc537b44ba4b6a0fc5cf5a30dd | 310 | py | Python | pythons/pythons/pythons_app/urls.py | BoyanPeychinov/python_web_framework | bb3a78c36790821d8b3a2b847494a1138d063193 | [
"MIT"
] | null | null | null | pythons/pythons/pythons_app/urls.py | BoyanPeychinov/python_web_framework | bb3a78c36790821d8b3a2b847494a1138d063193 | [
"MIT"
] | null | null | null | pythons/pythons/pythons_app/urls.py | BoyanPeychinov/python_web_framework | bb3a78c36790821d8b3a2b847494a1138d063193 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
from .views import IndexView
urlpatterns = [
# path('', views.index, name="index"),
path('', IndexView.as_view(), name="index"),
# path('create/', views.create, name="create"),
path('create/', views.PythonCreateView.as_view(), name="create"),
] | 31 | 69 | 0.66129 |
35ed1f868aeb38f0c96a30ed7f9536e255837e20 | 356 | py | Python | tests/python/text_utility.py | Noxsense/mCRL2 | dd2fcdd6eb8b15af2729633041c2dbbd2216ad24 | [
"BSL-1.0"
] | 61 | 2018-05-24T13:14:05.000Z | 2022-03-29T11:35:03.000Z | tests/python/text_utility.py | Noxsense/mCRL2 | dd2fcdd6eb8b15af2729633041c2dbbd2216ad24 | [
"BSL-1.0"
] | 229 | 2018-05-28T08:31:09.000Z | 2022-03-21T11:02:41.000Z | tests/python/text_utility.py | Noxsense/mCRL2 | dd2fcdd6eb8b15af2729633041c2dbbd2216ad24 | [
"BSL-1.0"
] | 28 | 2018-04-11T14:09:39.000Z | 2022-02-25T15:57:39.000Z | #~ Copyright 2014 Wieger Wesselink.
#~ Distributed under the Boost Software License, Version 1.0.
#~ (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
| 29.666667 | 82 | 0.691011 |
35ed5dd8d0b8879efae47e20f5661656b1666fbb | 159 | py | Python | Dumper/temp.py | NeerajGulia/kafka-monitor | cfcd39a37d22c86d3cebffe289687a030bb84353 | [
"Apache-2.0"
] | null | null | null | Dumper/temp.py | NeerajGulia/kafka-monitor | cfcd39a37d22c86d3cebffe289687a030bb84353 | [
"Apache-2.0"
] | null | null | null | Dumper/temp.py | NeerajGulia/kafka-monitor | cfcd39a37d22c86d3cebffe289687a030bb84353 | [
"Apache-2.0"
] | null | null | null | import datetime
t1 = datetime.datetime(2019, 3, 9, 10, 55, 30, 991882)
t2 = datetime.datetime(2019, 3, 10, 10, 55, 30, 991882)
print((t2-t1).total_seconds()) | 26.5 | 55 | 0.685535 |
35ee497682f551e6df5ef747e053a1c6578b24fe | 1,401 | py | Python | listools/llogic/is_descending.py | jgarte/listools | 17ef56fc7dde701890213f248971d8dc7a6e6b7c | [
"MIT"
] | 2 | 2019-01-22T03:50:43.000Z | 2021-04-22T16:12:17.000Z | listools/llogic/is_descending.py | jgarte/listools | 17ef56fc7dde701890213f248971d8dc7a6e6b7c | [
"MIT"
] | 2 | 2019-01-22T03:57:49.000Z | 2021-04-22T22:03:47.000Z | listools/llogic/is_descending.py | jgarte/listools | 17ef56fc7dde701890213f248971d8dc7a6e6b7c | [
"MIT"
] | 1 | 2021-04-22T21:13:00.000Z | 2021-04-22T21:13:00.000Z | def is_descending(input_list: list, step: int = -1) -> bool:
r"""llogic.is_descending(input_list[, step])
This function returns True if the input list is descending with a fixed
step, otherwise it returns False. Usage:
>>> alist = [3, 2, 1, 0]
>>> llogic.is_descending(alist)
True
The fina... | 27.470588 | 75 | 0.608851 |
35ef2ec3e738f6a7d680ddbb0d8cfed8a80181c4 | 384 | py | Python | blazer/hpc/local/__init__.py | radiantone/blazer | 4f369729a72a397a5a472f081002bf24cf22b69c | [
"CC0-1.0"
] | 4 | 2022-02-11T13:37:03.000Z | 2022-02-26T00:25:13.000Z | blazer/hpc/local/__init__.py | radiantone/blazer | 4f369729a72a397a5a472f081002bf24cf22b69c | [
"CC0-1.0"
] | null | null | null | blazer/hpc/local/__init__.py | radiantone/blazer | 4f369729a72a397a5a472f081002bf24cf22b69c | [
"CC0-1.0"
] | null | null | null | from functools import partial
from pipe import select, where
from pydash import chunk
from pydash import filter_ as filter
from pydash import flatten, get, omit
from .primitives import parallel, pipeline, scatter
__all__ = (
"parallel",
"scatter",
"pipeline",
"partial",
"select",
"where",
... | 16.695652 | 51 | 0.648438 |
35f130f559ed7cd7af033555dccc66ba4d2035c4 | 304 | py | Python | resumebuilder/resumebuilder.py | kinshuk4/ResumeBuilder | 2c997f73b522c0668f3a66afb372bd91c6408b3c | [
"MIT"
] | 1 | 2020-01-04T05:54:19.000Z | 2020-01-04T05:54:19.000Z | resumebuilder/resumebuilder.py | kinshuk4/ResumeBuilder | 2c997f73b522c0668f3a66afb372bd91c6408b3c | [
"MIT"
] | null | null | null | resumebuilder/resumebuilder.py | kinshuk4/ResumeBuilder | 2c997f73b522c0668f3a66afb372bd91c6408b3c | [
"MIT"
] | null | null | null | import yaml
if __name__ == '__main__':
main()
| 17.882353 | 45 | 0.664474 |
35f16309c334902b0ed8ed87b8f07d61caa46a9a | 6,025 | py | Python | backend/tests/unittests/metric_source/test_report/junit_test_report_tests.py | ICTU/quality-report | f6234e112228ee7cfe6476c2d709fe244579bcfe | [
"Apache-2.0"
] | 25 | 2016-11-25T10:41:24.000Z | 2021-07-03T14:02:49.000Z | backend/tests/unittests/metric_source/test_report/junit_test_report_tests.py | ICTU/quality-report | f6234e112228ee7cfe6476c2d709fe244579bcfe | [
"Apache-2.0"
] | 783 | 2016-09-19T12:10:21.000Z | 2021-01-04T20:39:15.000Z | backend/tests/unittests/metric_source/test_report/junit_test_report_tests.py | ICTU/quality-report | f6234e112228ee7cfe6476c2d709fe244579bcfe | [
"Apache-2.0"
] | 15 | 2015-03-25T13:52:49.000Z | 2021-03-08T17:17:56.000Z | """
Copyright 2012-2019 Ministerie van Sociale Zaken en Werkgelegenheid
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.org/licenses/LICENSE-2.0
Unless required by applicable... | 47.81746 | 113 | 0.64249 |
35f24e93301e26ad076b53b869df2630d390d615 | 965 | py | Python | lang/Python/compare-sorting-algorithms-performance-6.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | 1 | 2018-11-09T22:08:38.000Z | 2018-11-09T22:08:38.000Z | lang/Python/compare-sorting-algorithms-performance-6.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | lang/Python/compare-sorting-algorithms-performance-6.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | 1 | 2018-11-09T22:08:40.000Z | 2018-11-09T22:08:40.000Z | sort_functions = [
builtinsort, # see implementation above
insertion_sort, # see [[Insertion sort]]
insertion_sort_lowb, # ''insertion_sort'', where sequential search is replaced
# by lower_bound() function
qsort, # see [[Quicksort]]
qsortranlc... | 50.789474 | 85 | 0.598964 |
35f445a5ba07dee2c2143db897f87a8a3259db16 | 6,300 | py | Python | server/organization/tests.py | NicholasNagy/ALTA | ca07627481ee91f2969b0fc8e8f15e2a37b3e992 | [
"Apache-2.0"
] | 3 | 2020-09-09T23:26:29.000Z | 2020-10-17T22:58:34.000Z | server/organization/tests.py | NicholasNagy/ALTA | ca07627481ee91f2969b0fc8e8f15e2a37b3e992 | [
"Apache-2.0"
] | 294 | 2020-09-27T17:20:50.000Z | 2021-06-23T01:44:09.000Z | server/organization/tests.py | NicholasNagy/ALTA | ca07627481ee91f2969b0fc8e8f15e2a37b3e992 | [
"Apache-2.0"
] | 10 | 2020-10-07T05:25:30.000Z | 2021-05-01T05:32:59.000Z | from rest_framework import status
from rest_framework.test import APITestCase
from rest_framework.test import APIClient
from django.db.models import signals
import factory
from user_account.models import CustomUser
from .models import Organization
| 45.985401 | 161 | 0.686667 |
35f470bfac10a58409ff19aa1d364eb85ab7359d | 1,656 | py | Python | src/mumblecode/convert.py | Mumbleskates/mumblecode | 0221c33a09df154bf80ece73ff907c51d2a971f0 | [
"MIT"
] | 1 | 2016-05-17T23:07:38.000Z | 2016-05-17T23:07:38.000Z | src/mumblecode/convert.py | Mumbleskates/mumblecode | 0221c33a09df154bf80ece73ff907c51d2a971f0 | [
"MIT"
] | null | null | null | src/mumblecode/convert.py | Mumbleskates/mumblecode | 0221c33a09df154bf80ece73ff907c51d2a971f0 | [
"MIT"
] | null | null | null | # coding=utf-8
from math import log2, ceil
# valid chars for a url path component: a-z A-Z 0-9 .-_~!$&'()*+,;=:@
# For the default set here (base 72) we have excluded $'();:@
radix_alphabet = ''.join(sorted(
"0123456789"
"abcdefghijklmnopqrstuvwxyz"
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
".-_~!&*+,="
))
radix =... | 24.352941 | 114 | 0.634662 |
35f52784cb920f6695ea0214e66ce046c4ba0969 | 961 | py | Python | flaskapp/routes.py | vijay0707/Send-Email-Flask | 3e8f981c5ef4c4051f61b5229eb3e56a35142bc7 | [
"MIT"
] | null | null | null | flaskapp/routes.py | vijay0707/Send-Email-Flask | 3e8f981c5ef4c4051f61b5229eb3e56a35142bc7 | [
"MIT"
] | null | null | null | flaskapp/routes.py | vijay0707/Send-Email-Flask | 3e8f981c5ef4c4051f61b5229eb3e56a35142bc7 | [
"MIT"
] | null | null | null | from flaskapp import app, db, mail
from flask import render_template, url_for
from flask import request, flash, redirect
# from flaskapp.model import User
from flaskapp.form import SurveyForm
from flask_mail import Message
| 32.033333 | 97 | 0.632674 |
35f622ff3fa5187c3265b7d1252636eaf5af175d | 5,708 | py | Python | tests/test_camera.py | Gokender/kameramera | 7ebd9a196809c1e7ab117bb11b90bcea8d1eb8e7 | [
"MIT"
] | null | null | null | tests/test_camera.py | Gokender/kameramera | 7ebd9a196809c1e7ab117bb11b90bcea8d1eb8e7 | [
"MIT"
] | null | null | null | tests/test_camera.py | Gokender/kameramera | 7ebd9a196809c1e7ab117bb11b90bcea8d1eb8e7 | [
"MIT"
] | null | null | null | import unittest
from kameramera import camera | 31.711111 | 82 | 0.637176 |
35f678cde08c5ff864121819c46adfa1fdba45f0 | 887 | py | Python | app/coordinates.py | krasch/simply_landmarks | 8a5c3f2ff476377e44646a00e61b8287a53260e3 | [
"MIT"
] | 14 | 2020-02-03T22:30:48.000Z | 2021-11-01T09:41:34.000Z | app/coordinates.py | krasch/simply_landmarks | 8a5c3f2ff476377e44646a00e61b8287a53260e3 | [
"MIT"
] | 3 | 2020-11-28T17:24:28.000Z | 2022-01-26T19:56:35.000Z | app/coordinates.py | krasch/simply_landmarks | 8a5c3f2ff476377e44646a00e61b8287a53260e3 | [
"MIT"
] | 4 | 2020-10-11T21:26:53.000Z | 2021-09-14T03:59:20.000Z | from pathlib import Path
from PIL import Image
# coordinates are sent as slightly weird URL parameters (e.g. 0.png?214,243)
# parse them, will crash server if they are coming in unexpected format
# image was not displayed in original size -> need to convert the coordinates
| 27.71875 | 77 | 0.67982 |
35f6bdfd466ccfcc3ec731821bd0d70b92cb5b92 | 2,851 | py | Python | lib/tool_images.py | KTingLee/image-training | c02c7caa81a55b61e935d07ead27bcaed468eb0a | [
"MIT"
] | null | null | null | lib/tool_images.py | KTingLee/image-training | c02c7caa81a55b61e935d07ead27bcaed468eb0a | [
"MIT"
] | 2 | 2021-01-22T09:10:33.000Z | 2021-01-22T14:22:09.000Z | lib/tool_images.py | KTingLee/image-training | c02c7caa81a55b61e935d07ead27bcaed468eb0a | [
"MIT"
] | 1 | 2021-01-22T08:56:34.000Z | 2021-01-22T08:56:34.000Z | import matplotlib.pyplot as plt
import numpy as np
import math
import cv2
kernel = np.ones((3, 3), np.int8)
#
#
#
# threshold1,2
#
#
if __name__ == '__main__':
pic = cv2.imread('../captcha_Images/0.png')
print(pic)
cv2.imshow('pic', pic)
cv2.waitKey(0)
erosion = eraseImage(pic)
blured = blurIma... | 25.684685 | 88 | 0.62785 |
35f6e6f91f9e05d76fd7957364cd9c3157a56978 | 2,965 | py | Python | Code/geneset_testing.py | dylkot/EbolaSC | d363f9d2c10911f01c7b1d22fec2b192df2569b1 | [
"MIT"
] | 2 | 2020-09-28T09:27:33.000Z | 2021-01-04T09:16:42.000Z | Code/geneset_testing.py | dylkot/SC-Ebola | d363f9d2c10911f01c7b1d22fec2b192df2569b1 | [
"MIT"
] | null | null | null | Code/geneset_testing.py | dylkot/SC-Ebola | d363f9d2c10911f01c7b1d22fec2b192df2569b1 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
from scipy.stats import mannwhitneyu, fisher_exact, ranksums
def load_geneset(gmtfn, genes=None, minsize=0):
'''
Load genesets stored in gmt format (e.g. as provided by msigdb)
gmtfn : str
path to gmt file
genes : list, optional
only include gene... | 29.949495 | 89 | 0.57774 |
35f85f5cb5fab6226fab7a5a01b0882ca5ca7ca9 | 54 | py | Python | tests/src/import_func.py | bayashi-cl/expander | b3623b656a71801233797e05781295a6101fefd8 | [
"CC0-1.0"
] | null | null | null | tests/src/import_func.py | bayashi-cl/expander | b3623b656a71801233797e05781295a6101fefd8 | [
"CC0-1.0"
] | 1 | 2022-03-12T20:41:21.000Z | 2022-03-13T06:34:30.000Z | tests/src/import_func.py | bayashi-cl/expander | b3623b656a71801233797e05781295a6101fefd8 | [
"CC0-1.0"
] | null | null | null | from testlib_a.main_a import print_name
print_name()
| 13.5 | 39 | 0.833333 |
35f901a5b14d9bb965c94938ad6cacba20eb8f77 | 2,167 | py | Python | nn_wtf/parameter_optimizers/brute_force_optimizer.py | lene/nn-wtf | 4696f143d936e0c0c127847e3bb1e93a6e756d35 | [
"Apache-2.0"
] | null | null | null | nn_wtf/parameter_optimizers/brute_force_optimizer.py | lene/nn-wtf | 4696f143d936e0c0c127847e3bb1e93a6e756d35 | [
"Apache-2.0"
] | 20 | 2016-02-20T12:43:04.000Z | 2016-12-23T13:57:25.000Z | nn_wtf/parameter_optimizers/brute_force_optimizer.py | lene/nn-wtf | 4696f143d936e0c0c127847e3bb1e93a6e756d35 | [
"Apache-2.0"
] | null | null | null | import pprint
from nn_wtf.parameter_optimizers.neural_network_optimizer import NeuralNetworkOptimizer
__author__ = 'Lene Preuss <lene.preuss@gmail.com>'
| 38.696429 | 119 | 0.677434 |
35f926086eaca9043bf3f10e9c0ac0804430ebb4 | 1,856 | py | Python | tests/test_get_value.py | mdpiper/bmi-example-python | e6b1e9105daef44fe1f0adba5b857cde1bbd032a | [
"MIT"
] | 3 | 2020-10-20T08:59:19.000Z | 2021-10-18T17:57:06.000Z | tests/test_get_value.py | mdpiper/bmi-example-python | e6b1e9105daef44fe1f0adba5b857cde1bbd032a | [
"MIT"
] | 4 | 2019-04-19T20:07:15.000Z | 2021-01-28T23:34:35.000Z | tests/test_get_value.py | mdpiper/bmi-example-python | e6b1e9105daef44fe1f0adba5b857cde1bbd032a | [
"MIT"
] | 7 | 2020-08-05T17:25:34.000Z | 2021-09-08T21:38:33.000Z | #!/usr/bin/env python
from numpy.testing import assert_array_almost_equal, assert_array_less
import numpy as np
from heat import BmiHeat
| 24.746667 | 82 | 0.715517 |
35fac5891884a7fafbd906447065470f94dbe9cf | 9,158 | py | Python | tensorflow/dgm/exp.py | goldfarbDave/vcl | 24fb33a1dcadfa6c6cf5e9e9838b64f4fd23143a | [
"Apache-2.0"
] | null | null | null | tensorflow/dgm/exp.py | goldfarbDave/vcl | 24fb33a1dcadfa6c6cf5e9e9838b64f4fd23143a | [
"Apache-2.0"
] | null | null | null | tensorflow/dgm/exp.py | goldfarbDave/vcl | 24fb33a1dcadfa6c6cf5e9e9838b64f4fd23143a | [
"Apache-2.0"
] | null | null | null | import numpy as np
import tensorflow as tf
import sys, os
sys.path.extend(['alg/', 'models/'])
from visualisation import plot_images
from encoder_no_shared import encoder, recon
from utils import init_variables, save_params, load_params, load_data
from eval_test_ll import construct_eval_func
dimZ = 50
dimH = 500
n_cha... | 40.166667 | 102 | 0.597183 |
35fb641cc4c232d5e95579ae3bf4fec4904fbdf7 | 1,663 | py | Python | src/cltl/combot/infra/config/k8config.py | leolani/cltl-combot | 7008742ba9db782166f79322658a8cb49890d61b | [
"MIT"
] | 1 | 2020-11-21T18:53:22.000Z | 2020-11-21T18:53:22.000Z | src/cltl/combot/infra/config/k8config.py | leolani/cltl-combot | 7008742ba9db782166f79322658a8cb49890d61b | [
"MIT"
] | null | null | null | src/cltl/combot/infra/config/k8config.py | leolani/cltl-combot | 7008742ba9db782166f79322658a8cb49890d61b | [
"MIT"
] | null | null | null | import logging
import os
import cltl.combot.infra.config.local as local_config
logger = logging.getLogger(__name__)
K8_CONFIG_DIR = "/cltl_k8_config"
K8_CONFIG = "config/k8.config"
| 36.955556 | 116 | 0.710764 |
35fb6a7aec8441ab62bd7a834d5a31a1a31bbbcf | 17,640 | py | Python | act_map/scripts/exp_compare_diff_maps.py | debugCVML/rpg_information_field | 56f9ffba83aaee796502116e1cf651c5bc405bf6 | [
"MIT"
] | 149 | 2020-06-23T12:08:47.000Z | 2022-03-31T08:18:52.000Z | act_map/scripts/exp_compare_diff_maps.py | debugCVML/rpg_information_field | 56f9ffba83aaee796502116e1cf651c5bc405bf6 | [
"MIT"
] | 4 | 2020-08-28T07:51:15.000Z | 2021-04-09T13:18:49.000Z | act_map/scripts/exp_compare_diff_maps.py | debugCVML/rpg_information_field | 56f9ffba83aaee796502116e1cf651c5bc405bf6 | [
"MIT"
] | 34 | 2020-06-26T14:50:34.000Z | 2022-03-04T06:45:55.000Z | #!/usr/bin/env python
import os
import argparse
import yaml
import numpy as np
from colorama import init, Fore, Style
from matplotlib import rc
import matplotlib.pyplot as plt
import plot_utils as pu
init(autoreset=True)
rc('font', **{'serif': ['Cardo'], 'size': 20})
rc('text', usetex=True)
kMetrics = ['det', 'mi... | 41.505882 | 129 | 0.626361 |
35fbe8e8b4f1e1aa102f85306945ce878960b4de | 52 | py | Python | tests/conftest.py | grintor/Hello-Wolrd-CI | 1f1b8c40f55d0b35cd73601ed90567a84abf03db | [
"Apache-2.0"
] | null | null | null | tests/conftest.py | grintor/Hello-Wolrd-CI | 1f1b8c40f55d0b35cd73601ed90567a84abf03db | [
"Apache-2.0"
] | null | null | null | tests/conftest.py | grintor/Hello-Wolrd-CI | 1f1b8c40f55d0b35cd73601ed90567a84abf03db | [
"Apache-2.0"
] | null | null | null | # see: https://stackoverflow.com/a/34520971/3238695
| 26 | 51 | 0.769231 |
35fc69cf4551ec557452a3db41e67d9efead2ebf | 1,318 | py | Python | Files/SpeechRecognition/speechDandR.py | JahnaviDoneria/HomeAutomationSystem | 0419ba4a0fefd16b9a5c7a19fef7897d76850dc2 | [
"MIT"
] | null | null | null | Files/SpeechRecognition/speechDandR.py | JahnaviDoneria/HomeAutomationSystem | 0419ba4a0fefd16b9a5c7a19fef7897d76850dc2 | [
"MIT"
] | null | null | null | Files/SpeechRecognition/speechDandR.py | JahnaviDoneria/HomeAutomationSystem | 0419ba4a0fefd16b9a5c7a19fef7897d76850dc2 | [
"MIT"
] | 1 | 2020-01-20T13:04:55.000Z | 2020-01-20T13:04:55.000Z | import json
import apiai
import speech_recognition as sr
#speechRecognition()
| 23.122807 | 63 | 0.651745 |
35fcbb05f8e3b57b8ab5311822807b3114647a9f | 4,667 | py | Python | mylib/dataset/coco.py | duducheng/deeplabv3p_gluon | fd8e3e8d834838a9a221785b825499c62cee578f | [
"Apache-2.0"
] | 66 | 2018-07-20T04:01:41.000Z | 2021-11-08T10:40:49.000Z | mylib/dataset/coco.py | duducheng/deeplabv3p_gluon | fd8e3e8d834838a9a221785b825499c62cee578f | [
"Apache-2.0"
] | 6 | 2018-08-16T08:06:39.000Z | 2020-11-28T13:07:21.000Z | mylib/dataset/coco.py | duducheng/deeplabv3p_gluon | fd8e3e8d834838a9a221785b825499c62cee578f | [
"Apache-2.0"
] | 11 | 2018-07-20T18:00:29.000Z | 2020-04-28T15:21:58.000Z | # raise NotImplementedError("Did not check!")
"""MSCOCO Semantic Segmentation pretraining for VOC."""
import os
from tqdm import trange
from PIL import Image, ImageOps, ImageFilter
import numpy as np
import pickle
from gluoncv.data.segbase import SegmentationDataset
| 40.582609 | 92 | 0.555817 |
35fd4da34b0954ed2f821de46d87379191733efa | 1,045 | py | Python | find_other_news_sources.py | sr33/OtherNewsSources | 17857381a5690d5e89d4a034f1fc60f61c2377dc | [
"MIT"
] | 10 | 2015-07-17T09:57:38.000Z | 2020-05-24T20:09:20.000Z | find_other_news_sources.py | sr33/OtherNewsSources | 17857381a5690d5e89d4a034f1fc60f61c2377dc | [
"MIT"
] | null | null | null | find_other_news_sources.py | sr33/OtherNewsSources | 17857381a5690d5e89d4a034f1fc60f61c2377dc | [
"MIT"
] | null | null | null | # __author__ = 'sree'
import urllib2
from lxml import html
import requests
| 40.192308 | 119 | 0.702392 |
35fda7f9b73a414c879824f59fa81da72f267f5a | 35,235 | py | Python | code/client/munkilib/adobeutils/adobeinfo.py | Rippling/munki | 115832687d4411ca825202ec82d9a27053fef7c8 | [
"Apache-2.0"
] | 1 | 2021-10-06T12:56:14.000Z | 2021-10-06T12:56:14.000Z | code/client/munkilib/adobeutils/adobeinfo.py | Rippling/munki | 115832687d4411ca825202ec82d9a27053fef7c8 | [
"Apache-2.0"
] | null | null | null | code/client/munkilib/adobeutils/adobeinfo.py | Rippling/munki | 115832687d4411ca825202ec82d9a27053fef7c8 | [
"Apache-2.0"
] | null | null | null | # encoding: utf-8
# Copyright 2009-2020 Greg Neagle.
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 44.657795 | 80 | 0.565319 |
35fe055b65de9e34581ebd9b036ec7f195d41986 | 645 | py | Python | mandrel/config/helpers.py | gf-atebbe/python-mandrel | 64b90e3265a522ff72019960752bcc716533347f | [
"MIT"
] | null | null | null | mandrel/config/helpers.py | gf-atebbe/python-mandrel | 64b90e3265a522ff72019960752bcc716533347f | [
"MIT"
] | null | null | null | mandrel/config/helpers.py | gf-atebbe/python-mandrel | 64b90e3265a522ff72019960752bcc716533347f | [
"MIT"
] | null | null | null | from .. import util
| 25.8 | 81 | 0.626357 |
35ff001cebfbaa2f16c6208ca4d5a99ce422a736 | 1,606 | py | Python | Components/MoveComponent.py | RuoxiQin/Unmanned-Aerial-Vehicle-Tracking | 49a0a32abcce42fc6bf9e71f5b098ec708373153 | [
"Apache-2.0"
] | 13 | 2018-06-16T12:52:18.000Z | 2021-08-14T02:43:24.000Z | Components/MoveComponent.py | RuoxiQin/Unmanned-Aerial-Vehicle-Tracking | 49a0a32abcce42fc6bf9e71f5b098ec708373153 | [
"Apache-2.0"
] | null | null | null | Components/MoveComponent.py | RuoxiQin/Unmanned-Aerial-Vehicle-Tracking | 49a0a32abcce42fc6bf9e71f5b098ec708373153 | [
"Apache-2.0"
] | 6 | 2019-06-20T21:06:01.000Z | 2021-08-14T02:43:28.000Z | #!/usr/bin/python
#-*-coding:utf-8-*-
from Component import Component
| 34.170213 | 104 | 0.52802 |
35ff5a9fe6f25456cafae5f86dcd151f7638267e | 35,016 | py | Python | poshc2/server/Tasks.py | slackr/PoshC2 | d4804f1f534dac53b95dd6dd6578431beaf79360 | [
"BSD-3-Clause"
] | 1,504 | 2016-07-12T04:14:00.000Z | 2022-03-31T02:59:30.000Z | poshc2/server/Tasks.py | PhilKeeble/PoshC2 | 498b30097e12e46b5aa454feaeaa4bbae3c04c0d | [
"BSD-3-Clause"
] | 139 | 2016-10-13T10:41:18.000Z | 2022-03-31T13:22:47.000Z | poshc2/server/Tasks.py | PhilKeeble/PoshC2 | 498b30097e12e46b5aa454feaeaa4bbae3c04c0d | [
"BSD-3-Clause"
] | 377 | 2016-07-12T03:10:03.000Z | 2022-03-31T10:04:13.000Z | import datetime, hashlib, base64, traceback, os, re
import poshc2.server.database.DB as DB
from poshc2.Colours import Colours
from poshc2.server.Config import ModulesDirectory, DownloadsDirectory, ReportsDirectory
from poshc2.server.Implant import Implant
from poshc2.server.Core import decrypt, encrypt, default_respon... | 64.486188 | 474 | 0.499714 |
c4005a008048988474573247edb485bd20d1bb6d | 1,029 | py | Python | Leetcode/89.grayCode.py | Song2017/Leetcode_python | 99d9f3cec0e47ddab6ec107392a6b33bf6c1d046 | [
"MIT"
] | 1 | 2019-05-14T00:55:30.000Z | 2019-05-14T00:55:30.000Z | LeetcodeView/89.grayCode.md | Song2017/Leetcode_python | 99d9f3cec0e47ddab6ec107392a6b33bf6c1d046 | [
"MIT"
] | null | null | null | LeetcodeView/89.grayCode.md | Song2017/Leetcode_python | 99d9f3cec0e47ddab6ec107392a6b33bf6c1d046 | [
"MIT"
] | null | null | null |
s = Solution()
print(s.grayCode(3))
| 25.725 | 62 | 0.433431 |