hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
def0136d516a6937de9081dfdf535fe855617e80
2,303
py
Python
python3/koans/about_sets.py
pipe2705/python-koans
7185c8cf4d8b3aa09d1107c1cb471c4609ec8fe3
[ "MIT" ]
null
null
null
python3/koans/about_sets.py
pipe2705/python-koans
7185c8cf4d8b3aa09d1107c1cb471c4609ec8fe3
[ "MIT" ]
null
null
null
python3/koans/about_sets.py
pipe2705/python-koans
7185c8cf4d8b3aa09d1107c1cb471c4609ec8fe3
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from runner.koan import * class AboutSets(Koan): def test_sets_make_keep_lists_unique(self): highlanders = ['MacLeod', 'Ramirez', 'MacLeod', 'Matunas', 'MacLeod', 'Malcolm', 'MacLeod'] there_can_only_be_only_one = set(highlande...
38.383333
76
0.580981
68bdc02b1644cc6b4183d811262f218d2e4cdaa0
3,746
py
Python
pulsar/managers/__init__.py
nuwang/pulsar
ccebb1563c8f8eaca0505ed168920d8121bd8a1e
[ "Apache-2.0" ]
null
null
null
pulsar/managers/__init__.py
nuwang/pulsar
ccebb1563c8f8eaca0505ed168920d8121bd8a1e
[ "Apache-2.0" ]
null
null
null
pulsar/managers/__init__.py
nuwang/pulsar
ccebb1563c8f8eaca0505ed168920d8121bd8a1e
[ "Apache-2.0" ]
null
null
null
""" """ from abc import ABCMeta, abstractmethod PULSAR_UNKNOWN_RETURN_CODE = '__unknown__' class ManagerInterface(object): """ Defines the interface to various job managers. """ __metaclass__ = ABCMeta @abstractmethod def setup_job(self, input_job_id, tool_id, tool_version): """ ...
29.03876
119
0.643887
7664573020130500360984f633b429aea818bf3d
3,494
py
Python
torchmd/forcefields/ff_yaml.py
PhilippThoelke/torchmd
adcb1e12f4bf064298b6b91a694baf900b8d436a
[ "MIT" ]
224
2020-10-08T13:52:27.000Z
2022-03-18T01:07:05.000Z
torchmd/forcefields/ff_yaml.py
PhilippThoelke/torchmd
adcb1e12f4bf064298b6b91a694baf900b8d436a
[ "MIT" ]
7
2020-10-22T13:41:03.000Z
2022-01-07T09:12:42.000Z
torchmd/forcefields/ff_yaml.py
PhilippThoelke/torchmd
adcb1e12f4bf064298b6b91a694baf900b8d436a
[ "MIT" ]
38
2020-12-24T00:01:03.000Z
2022-03-08T11:57:02.000Z
from torchmd.forcefields.forcefield import _ForceFieldBase from math import radians import numpy as np import yaml class YamlForcefield(_ForceFieldBase): def __init__(self, mol, prm): self.mol = mol self.prm = yaml.load(open(prm), Loader=yaml.FullLoader) def _get_x_variants(self, atomtypes): ...
33.92233
88
0.568117
ef0497d231512d9ef3febda7ac5542dc41159534
69
py
Python
app/database/api/test/__init__.py
space-logistics-org/spacenet
fd004437ed7b27dd6dc41a374e1dedfcea92e37d
[ "MIT" ]
1
2022-02-17T18:01:41.000Z
2022-02-17T18:01:41.000Z
app/database/api/test/__init__.py
space-logistics-org/spacenet
fd004437ed7b27dd6dc41a374e1dedfcea92e37d
[ "MIT" ]
2
2021-06-19T19:41:15.000Z
2021-07-21T17:07:48.000Z
app/database/api/test/__init__.py
space-logistics-org/spacenet
fd004437ed7b27dd6dc41a374e1dedfcea92e37d
[ "MIT" ]
3
2021-06-16T16:31:12.000Z
2022-02-17T18:02:57.000Z
""" This module defines tests for the database editor API routes. """
23
61
0.73913
55ddc92e7db6e9d6d0609d89c725b0b8fb2fa932
23,912
py
Python
flare/mff/mff.py
jonpvandermause/flare
494e02395b250ae9052575e0e60aefb33bea1243
[ "MIT" ]
null
null
null
flare/mff/mff.py
jonpvandermause/flare
494e02395b250ae9052575e0e60aefb33bea1243
[ "MIT" ]
null
null
null
flare/mff/mff.py
jonpvandermause/flare
494e02395b250ae9052575e0e60aefb33bea1243
[ "MIT" ]
null
null
null
import time from math import exp import numpy as np from numba import njit from scipy.linalg import solve_triangular import multiprocessing as mp import sys sys.path.append('../../flare/') from memory_profiler import profile import flare.gp as gp import flare.env as env from flare.kernels import two_body, three_body, ...
35.372781
100
0.528563
55551e92cf2b39a4c98938dd34f9e25c5f6d5703
7,523
py
Python
yt_dlp/postprocessor/embedthumbnail.py
king-millez/yt-dlp
ff2751ac9cc7d4150797d3207da9b566396bc796
[ "Unlicense" ]
null
null
null
yt_dlp/postprocessor/embedthumbnail.py
king-millez/yt-dlp
ff2751ac9cc7d4150797d3207da9b566396bc796
[ "Unlicense" ]
null
null
null
yt_dlp/postprocessor/embedthumbnail.py
king-millez/yt-dlp
ff2751ac9cc7d4150797d3207da9b566396bc796
[ "Unlicense" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals import os import subprocess import struct import re import base64 try: import mutagen has_mutagen = True except ImportError: has_mutagen = False from .ffmpeg import ( FFmpegPostProcessor, FFmpegThumbnailsConvertorPP, ) from ..utils import ( ...
41.794444
129
0.593247
f5918e06368082359ac176def1088732a434040a
1,219
py
Python
run.py
morabrandoi/DeepQ2048
0c9db4e175037f42852f65c025e591ddb3d9d84f
[ "MIT" ]
null
null
null
run.py
morabrandoi/DeepQ2048
0c9db4e175037f42852f65c025e591ddb3d9d84f
[ "MIT" ]
null
null
null
run.py
morabrandoi/DeepQ2048
0c9db4e175037f42852f65c025e591ddb3d9d84f
[ "MIT" ]
null
null
null
from agent import Agent from puzzle import GameGrid import sys import numpy as np # normalize input values episodes = 61234 if len(sys.argv) == 2: MODE = sys.argv[1] else: MODE = 'train' environment = GameGrid() bot = Agent(MODE, episodes) # five tup is (state, action, state_after, reward, terminal) for ...
25.93617
106
0.670221
9aadd5d2e5e4ab0b2ea6cec5240e02911d9a3fab
4,687
py
Python
code/api/utils.py
CiscoSecurity/tr-05-docker-relay
8cf9cced02eb338d06d80419b35e563156ac6c9f
[ "MIT" ]
null
null
null
code/api/utils.py
CiscoSecurity/tr-05-docker-relay
8cf9cced02eb338d06d80419b35e563156ac6c9f
[ "MIT" ]
null
null
null
code/api/utils.py
CiscoSecurity/tr-05-docker-relay
8cf9cced02eb338d06d80419b35e563156ac6c9f
[ "MIT" ]
1
2021-03-12T14:06:46.000Z
2021-03-12T14:06:46.000Z
import json from json.decoder import JSONDecodeError import jwt import requests from flask import request, jsonify from jwt import InvalidSignatureError, DecodeError, InvalidAudienceError from requests.exceptions import ConnectionError, InvalidURL, HTTPError from api.errors import AuthorizationError, InvalidArgumentE...
33.241135
78
0.688287
680af4acb651d0ffd25c447a7b5e0bc9bd87fd2a
4,861
py
Python
google/appengine/ext/webapp/mail_handlers.py
MiCHiLU/google_appengine_sdk
3da9f20d7e65e26c4938d2c4054bc4f39cbc5522
[ "Apache-2.0" ]
16
2016-04-23T20:16:12.000Z
2021-10-09T16:58:25.000Z
google/appengine/ext/webapp/mail_handlers.py
MiCHiLU/google_appengine_sdk
3da9f20d7e65e26c4938d2c4054bc4f39cbc5522
[ "Apache-2.0" ]
53
2016-04-06T21:10:43.000Z
2018-03-19T23:14:33.000Z
google/appengine/ext/webapp/mail_handlers.py
MiCHiLU/google_appengine_sdk
3da9f20d7e65e26c4938d2c4054bc4f39cbc5522
[ "Apache-2.0" ]
23
2016-04-19T05:45:26.000Z
2021-12-31T23:22:36.000Z
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # 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 o...
26.856354
78
0.689776
77dc2796d56bd73cb649b50f372593660b471f7a
5,431
py
Python
programs/parsing/syrnt.py
ETCBC/linksyr
3ba42432b0ed95c1ad65eb06865c3a5f7175f8b6
[ "MIT" ]
1
2020-10-05T11:45:56.000Z
2020-10-05T11:45:56.000Z
programs/parsing/syrnt.py
ETCBC/linksyr
3ba42432b0ed95c1ad65eb06865c3a5f7175f8b6
[ "MIT" ]
null
null
null
programs/parsing/syrnt.py
ETCBC/linksyr
3ba42432b0ed95c1ad65eb06865c3a5f7175f8b6
[ "MIT" ]
1
2021-09-09T11:48:59.000Z
2021-09-09T11:48:59.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # now it works in python 2.6 and 3.x! from __future__ import unicode_literals, print_function import os.path from collections import namedtuple from constants import NT_BOOKS, SyrNT as c # Read database location from config file try: # allow for different module names i...
29.516304
79
0.617566
8984da6beedc707537889074266bf96659e6905c
2,430
py
Python
homeassistant/components/cppm_tracker/device_tracker.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/cppm_tracker/device_tracker.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
24,710
2016-04-13T08:27:26.000Z
2020-03-02T12:59:13.000Z
homeassistant/components/cppm_tracker/device_tracker.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Support for ClearPass Policy Manager.""" from __future__ import annotations from datetime import timedelta import logging from clearpasspy import ClearPass import voluptuous as vol from homeassistant.components.device_tracker import ( DOMAIN, PLATFORM_SCHEMA as PARENT_PLATFORM_SCHEMA, DeviceScanner, )...
29.277108
88
0.665432
d617f95b24c8a5b467db0c643b287ab37f6a2cfc
1,307
py
Python
src/gui/main_form.py
hoangphanthai/Activity_Recognition_Modelling
6230ab498527460758157f4bfb3a70d5c17135fa
[ "MIT" ]
null
null
null
src/gui/main_form.py
hoangphanthai/Activity_Recognition_Modelling
6230ab498527460758157f4bfb3a70d5c17135fa
[ "MIT" ]
null
null
null
src/gui/main_form.py
hoangphanthai/Activity_Recognition_Modelling
6230ab498527460758157f4bfb3a70d5c17135fa
[ "MIT" ]
1
2022-03-20T19:50:58.000Z
2022-03-20T19:50:58.000Z
import tkinter as tk from tkinter import ttk from sys import platform from globals import log_message from .tab_data_import import TabDataImport from .tab_training import TabTraining class Mainform: def __init__(self): self.window = tk.Tk() self.note_book = ttk.Notebook(self.win...
31.878049
70
0.631217
8dfb6999464838804a3a7b388e9bce3413b3d522
74
py
Python
events/__init__.py
jlowe77/Eris-Cogs
2ade8f82db3477527af3cff3b48ebb281e1a6987
[ "Apache-2.0" ]
6
2020-05-13T20:43:53.000Z
2021-06-23T16:10:13.000Z
events/__init__.py
jlowe77/Eris-Cogs
2ade8f82db3477527af3cff3b48ebb281e1a6987
[ "Apache-2.0" ]
12
2019-04-02T13:29:10.000Z
2020-03-27T18:07:16.000Z
events/__init__.py
jlowe77/Eris-Cogs
2ade8f82db3477527af3cff3b48ebb281e1a6987
[ "Apache-2.0" ]
9
2020-06-07T21:46:54.000Z
2022-03-01T22:49:02.000Z
from .events import Events def setup(bot): bot.add_cog(Events(bot))
12.333333
28
0.702703
c480eb7b2dce781b377d428e61e271c792ea5087
1,022
py
Python
monasca_common/kafka/legacy_kafka_message.py
zhangjm12/monasca-common
2ebc766534eba6163e98b94a1f114ece18739fff
[ "Apache-2.0" ]
26
2015-10-18T02:54:54.000Z
2022-02-15T01:36:41.000Z
monasca_common/kafka/legacy_kafka_message.py
zhangjm12/monasca-common
2ebc766534eba6163e98b94a1f114ece18739fff
[ "Apache-2.0" ]
18
2019-11-01T13:03:36.000Z
2022-02-16T02:28:52.000Z
monasca_common/kafka/legacy_kafka_message.py
zhangjm12/monasca-common
2ebc766534eba6163e98b94a1f114ece18739fff
[ "Apache-2.0" ]
22
2016-06-01T11:47:17.000Z
2020-02-11T14:41:45.000Z
# 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 writing, software # distributed u...
30.969697
76
0.700587
41fb1696bc371837e4ab3a82bb897aa3eb63fd3d
981
py
Python
projects/vdk-control-cli/src/vdk/internal/control/command_groups/version_group/version.py
alod83/versatile-data-kit
9ca672d3929eb3dc6fe5c677e8c8a75e2a0d2be8
[ "Apache-2.0" ]
100
2021-10-04T09:32:04.000Z
2022-03-30T11:23:53.000Z
projects/vdk-control-cli/src/vdk/internal/control/command_groups/version_group/version.py
alod83/versatile-data-kit
9ca672d3929eb3dc6fe5c677e8c8a75e2a0d2be8
[ "Apache-2.0" ]
208
2021-10-04T16:56:40.000Z
2022-03-31T10:41:44.000Z
projects/vdk-control-cli/src/vdk/internal/control/command_groups/version_group/version.py
alod83/versatile-data-kit
9ca672d3929eb3dc6fe5c677e8c8a75e2a0d2be8
[ "Apache-2.0" ]
14
2021-10-11T14:15:13.000Z
2022-03-11T13:39:17.000Z
# Copyright 2021 VMware, Inc. # SPDX-License-Identifier: Apache-2.0 import click from pkg_resources import DistributionNotFound from pkg_resources import get_distribution # https://packaging.python.org/guides/single-sourcing-package-version/# try: # Change here if project is renamed and does not equal the setupto...
28.852941
87
0.691131
81057d4595628b9d5c87e76cae13708c0e6074ed
1,178
py
Python
tempfile/setup.py
badgeteam/micropython-lib
fca0235c166ebbada489d88c42fc549267832797
[ "PSF-2.0" ]
null
null
null
tempfile/setup.py
badgeteam/micropython-lib
fca0235c166ebbada489d88c42fc549267832797
[ "PSF-2.0" ]
null
null
null
tempfile/setup.py
badgeteam/micropython-lib
fca0235c166ebbada489d88c42fc549267832797
[ "PSF-2.0" ]
2
2017-11-21T16:53:03.000Z
2021-07-29T08:47:14.000Z
import sys # Remove current dir from sys.path, otherwise setuptools will peek up our # module instead of system's. sys.path.pop(0) from setuptools import setup sys.path.append("..") import optimize_upip setup(name='micropython-tempfile', version='0.0.2', description='Dummy tempfile module for MicroPython',...
56.095238
492
0.756367
3c9f2cc274f5ab2224364f4415ffa96e2f7a0127
239
py
Python
awair/utils.py
ybbarng/awair
0b18e4159fc473cd57eff9584cb71200fed4e162
[ "MIT" ]
1
2019-05-22T12:38:42.000Z
2019-05-22T12:38:42.000Z
awair/utils.py
ybbarng/awair
0b18e4159fc473cd57eff9584cb71200fed4e162
[ "MIT" ]
null
null
null
awair/utils.py
ybbarng/awair
0b18e4159fc473cd57eff9584cb71200fed4e162
[ "MIT" ]
null
null
null
from datetime import datetime import pytz ISO_8601_FORMAT = '%Y-%m-%dT%H:%M:%S.%fZ' def str_to_datetime(string): return datetime.strptime(string, ISO_8601_FORMAT) def datetime_to_str(dt): return dt.strftime(ISO_8601_FORMAT)
15.933333
53
0.74477
4e34fd2ad0e9511ad04ec763491e5f8e366c2c81
1,320
py
Python
src/panoramic/cli/diff.py
kubamahnert/panoramic-cli
036f45a05d39f5762088ce23dbe367b938192f79
[ "MIT" ]
5
2020-11-13T17:26:59.000Z
2021-03-19T15:11:26.000Z
src/panoramic/cli/diff.py
kubamahnert/panoramic-cli
036f45a05d39f5762088ce23dbe367b938192f79
[ "MIT" ]
5
2020-10-28T10:22:35.000Z
2021-01-27T17:33:58.000Z
src/panoramic/cli/diff.py
kubamahnert/panoramic-cli
036f45a05d39f5762088ce23dbe367b938192f79
[ "MIT" ]
3
2021-01-26T07:58:03.000Z
2021-03-11T13:28:34.000Z
import difflib from panoramic.cli.file_utils import dump_yaml from panoramic.cli.print import Color, echo_info, echo_style from panoramic.cli.state import ActionList _LINE_START_TO_COLOR = { '+': Color.GREEN, '-': Color.RED, '@': Color.BLUE, } def echo_diff(actions: ActionList): for action in action...
33.846154
117
0.665909
16a8dd21c94776bbe49d20cc5f62107eb3fb39bf
1,992
py
Python
superset/views/sql_lab.py
mbeacom/superset
8dfe2b70b2ee85c8cfe79a7a37eefaa790158bf1
[ "Apache-2.0" ]
1
2018-02-12T18:15:08.000Z
2018-02-12T18:15:08.000Z
superset/views/sql_lab.py
mbeacom/superset
8dfe2b70b2ee85c8cfe79a7a37eefaa790158bf1
[ "Apache-2.0" ]
null
null
null
superset/views/sql_lab.py
mbeacom/superset
8dfe2b70b2ee85c8cfe79a7a37eefaa790158bf1
[ "Apache-2.0" ]
4
2017-04-28T07:52:00.000Z
2017-05-03T12:34:41.000Z
from flask import redirect, g from flask_appbuilder import expose from flask_appbuilder.models.sqla.interface import SQLAInterface from flask_babel import gettext as __ from superset import appbuilder from superset.models.sql_lab import Query, SavedQuery from .base import SupersetModelView, BaseSupersetView, DeleteM...
28.056338
75
0.687249
a281bbbe9468cfd0fc7f64068a0699911cc5e4cd
112,437
py
Python
server/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py
hkdb/sysconf
99d334f7309657647059c4b37f25e33dffc81fc3
[ "MIT" ]
10
2020-07-21T21:59:54.000Z
2021-07-19T11:01:47.000Z
server/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py
hkdb/sysconf
99d334f7309657647059c4b37f25e33dffc81fc3
[ "MIT" ]
null
null
null
server/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py
hkdb/sysconf
99d334f7309657647059c4b37f25e33dffc81fc3
[ "MIT" ]
1
2021-01-30T18:17:01.000Z
2021-01-30T18:17:01.000Z
# Copyright (C) 2017-2020 ycmd contributors # # This file is part of ycmd. # # ycmd is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # #...
37.908631
80
0.664185
d4ef26f99cc51f711a57de6038e2a8fafe15200c
16,346
py
Python
salt/cloud/clouds/lxc.py
diego-treitos/salt
d2aec156ff2ef48ac21b4db211efb43220c6465c
[ "Apache-2.0" ]
1
2020-10-19T11:49:49.000Z
2020-10-19T11:49:49.000Z
salt/cloud/clouds/lxc.py
diego-treitos/salt
d2aec156ff2ef48ac21b4db211efb43220c6465c
[ "Apache-2.0" ]
null
null
null
salt/cloud/clouds/lxc.py
diego-treitos/salt
d2aec156ff2ef48ac21b4db211efb43220c6465c
[ "Apache-2.0" ]
1
2020-10-19T11:49:50.000Z
2020-10-19T11:49:50.000Z
# -*- coding: utf-8 -*- ''' Install Salt on an LXC Container ================================ .. versionadded:: 2014.7.0 Please read :ref:`core config documentation <config_lxc>`. ''' # Import python libs from __future__ import absolute_import import json import os import logging import copy import time from pprint ...
31.314176
110
0.554448
0d25938bccb296369575cb185a9f55ac3e95f127
480
py
Python
pyifc/compress/__init__.py
tbrus/pyifc
8e93c6e9f26151de8629300e45d3005e19eef3a3
[ "MIT" ]
1
2022-03-07T16:19:02.000Z
2022-03-07T16:19:02.000Z
pyifc/compress/__init__.py
tbrus/pyifc
8e93c6e9f26151de8629300e45d3005e19eef3a3
[ "MIT" ]
null
null
null
pyifc/compress/__init__.py
tbrus/pyifc
8e93c6e9f26151de8629300e45d3005e19eef3a3
[ "MIT" ]
null
null
null
""" pyifc.compress -------------- Compress and pack .ifc files. """ from pyifc.compress._compress import compress from pyifc.compress._exceptions import FileExtensionError from pyifc.compress._pack import compress_and_tar, compress_and_zip from pyifc.compress._validators import existence_validator, extension_validator...
24
79
0.75625
5466f2e802b3d5f9ed2819b4ebbf93a886fdbb25
569
py
Python
ci/gen_sources.py
christopherosthues/recompression
1932cc5aa77a533d9994dbe0c80dbb889a4d25ec
[ "ECL-2.0", "Apache-2.0" ]
5
2019-07-18T12:48:14.000Z
2022-01-04T13:54:13.000Z
ci/gen_sources.py
christopherosthues/recompression
1932cc5aa77a533d9994dbe0c80dbb889a4d25ec
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
ci/gen_sources.py
christopherosthues/recompression
1932cc5aa77a533d9994dbe0c80dbb889a4d25ec
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
#!/usr/bin/python import os import os.path for root, sub_dirs, files in os.walk("."): for file in files: if file.endswith(".hpp"): r = root[1:] if root == "." else root[2:] os.makedirs("../src/" + r + "/", exist_ok=True) source_file = open("../src/" + r + "/" + file[:le...
33.470588
85
0.458699
c3eafd1a4dd81bdae26045b9c16378fb3d2770c4
580
py
Python
random_python_stuff/fizz_buzz.py
austinlzno/cssi_project
2fc875c7c8811f136984b40542c8f1dff41a189f
[ "Apache-2.0" ]
null
null
null
random_python_stuff/fizz_buzz.py
austinlzno/cssi_project
2fc875c7c8811f136984b40542c8f1dff41a189f
[ "Apache-2.0" ]
null
null
null
random_python_stuff/fizz_buzz.py
austinlzno/cssi_project
2fc875c7c8811f136984b40542c8f1dff41a189f
[ "Apache-2.0" ]
null
null
null
"""My implementation of fizzbuzz.""" import demo_main def fizzbuzz(number): if number % 3 == 0 and number % 5 != 0: print('fizz') if number % 5 == 0 and number % 3 != 0: print('buzz') if number % 3== 0 and number % 5== 0: print('fizzbuzz') fizzbuzz(10) ""...
20.714286
54
0.582759
66569a96ee55584dd8ebc707f37d7a75858637b2
17,456
py
Python
python/callingconvention.py
carsonharmon/binaryninja-api
f7ad332ad69d370aa29cd54f4c7307da4d9173e2
[ "MIT" ]
null
null
null
python/callingconvention.py
carsonharmon/binaryninja-api
f7ad332ad69d370aa29cd54f4c7307da4d9173e2
[ "MIT" ]
null
null
null
python/callingconvention.py
carsonharmon/binaryninja-api
f7ad332ad69d370aa29cd54f4c7307da4d9173e2
[ "MIT" ]
null
null
null
# Copyright (c) 2015-2020 Vector 35 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, publish, ...
38.113537
154
0.763233
8db73a8dc3102c724a1e69dcd463e69c5cca2515
3,076
py
Python
export.py
AlmogCohen/yogasiteorg-export
10d8ac3a3bf082c2485237d97dfb531dc178a05c
[ "MIT" ]
null
null
null
export.py
AlmogCohen/yogasiteorg-export
10d8ac3a3bf082c2485237d97dfb531dc178a05c
[ "MIT" ]
null
null
null
export.py
AlmogCohen/yogasiteorg-export
10d8ac3a3bf082c2485237d97dfb531dc178a05c
[ "MIT" ]
null
null
null
import argparse import re import logging from urlparse import urljoin import requests import sys HEADERS = { 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36', } MAX_REDIRECTS = 3 logger = logging.getLogger(__name__) YOGAS...
35.356322
142
0.687581
6539d38528ea4be12e3a32fb7fbec2feb26f2eec
5,989
py
Python
model_generator.py
qwertyyuiopasdf/URLComSum
85538224b7068c757f85c09b2f84663696586795
[ "MIT" ]
null
null
null
model_generator.py
qwertyyuiopasdf/URLComSum
85538224b7068c757f85c09b2f84663696586795
[ "MIT" ]
null
null
null
model_generator.py
qwertyyuiopasdf/URLComSum
85538224b7068c757f85c09b2f84663696586795
[ "MIT" ]
null
null
null
from transformers.modeling_gpt2 import GPT2LMHeadModel, GPT2Config import torch.utils.data.dataset import utils_tokenizer import torch, tqdm, math def pad(data, padval=0): return torch.nn.utils.rnn.pad_sequence(data, batch_first=True, padding_value=padval) class GeneTransformer: def __init__(self, max_output...
41.020548
155
0.62715
b22a7352ec427316337e77e09a52d1916fd2fbf9
8,499
py
Python
transformers/recommendations/matrixfactorization.py
ucds-sg/h2oai
7042860767dc25d1a7d7122103bbd5016d02df53
[ "Apache-2.0" ]
null
null
null
transformers/recommendations/matrixfactorization.py
ucds-sg/h2oai
7042860767dc25d1a7d7122103bbd5016d02df53
[ "Apache-2.0" ]
null
null
null
transformers/recommendations/matrixfactorization.py
ucds-sg/h2oai
7042860767dc25d1a7d7122103bbd5016d02df53
[ "Apache-2.0" ]
null
null
null
"""Collaborative filtering features using various techniques of Matrix Factorization for recommendations. Recommended for large data""" """ Add the user column name and item column name in recipe_dict in config to match the column names as per the dataset or use the default 'user' and 'item' respectively in your datas...
46.697802
118
0.638899
a05b9e80f6c1b9e8373cfd8576222dbfca68073f
9,849
py
Python
gssnng/score_funs.py
redst4r/gssnng
e8174e030cf85d6bade41dc26aa9c0f3929f3584
[ "MIT" ]
null
null
null
gssnng/score_funs.py
redst4r/gssnng
e8174e030cf85d6bade41dc26aa9c0f3929f3584
[ "MIT" ]
null
null
null
gssnng/score_funs.py
redst4r/gssnng
e8174e030cf85d6bade41dc26aa9c0f3929f3584
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import gssnng.util as si import statsmodels.robust.scale def summed_up(su): """ Just sum up the counts :param x: the pandas data frame of ranks, all genes :param su: the ranked list of genes *IN* the gene set :param sig_len_up: the number of expressed genes ...
31.977273
93
0.635394
41989de8922990395fec56253b6a58e2f8a87c35
90,770
py
Python
svgpathtools/path.py
tianchishang/svgpathtools
5d65d575b57d12b3d7c626e789fe1cb117e6e94e
[ "MIT" ]
1
2017-08-04T03:22:57.000Z
2017-08-04T03:22:57.000Z
svgpathtools/path.py
tianchishang/svgpathtools
5d65d575b57d12b3d7c626e789fe1cb117e6e94e
[ "MIT" ]
null
null
null
svgpathtools/path.py
tianchishang/svgpathtools
5d65d575b57d12b3d7c626e789fe1cb117e6e94e
[ "MIT" ]
1
2019-02-13T06:42:44.000Z
2019-02-13T06:42:44.000Z
"""This submodule contains the class definitions of the the main five classes svgpathtools is built around: Path, Line, QuadraticBezier, CubicBezier, and Arc.""" # External dependencies from __future__ import division, absolute_import, print_function from math import sqrt, cos, sin, acos, degrees, radians, log, pi fro...
40.486173
115
0.574606
d91fb4e83f54a6a94862692ba476fc7bbe3c91f3
622
py
Python
app/tests/test_saveNewsDetail.py
xieningtao/maxleap_server
6be5be1b4fccef72df85fd230a8a5c9210fb6d27
[ "CC0-1.0" ]
null
null
null
app/tests/test_saveNewsDetail.py
xieningtao/maxleap_server
6be5be1b4fccef72df85fd230a8a5c9210fb6d27
[ "CC0-1.0" ]
null
null
null
app/tests/test_saveNewsDetail.py
xieningtao/maxleap_server
6be5be1b4fccef72df85fd230a8a5c9210fb6d27
[ "CC0-1.0" ]
null
null
null
import ML import function.saveNewsDetail import hook.hooks import job import json from nose.tools import with_setup from ML import Server def setup_func(): ML.init( "57f9edc887d4a7e337b8c231", master_key="elhmazJfd29ZTFBhR0M3SmJ0R2N6UQ", ) @with_setup(setup_func) def test_saveNewsDetail()...
24.88
93
0.709003
273aa8d6db1cdd86bdd22205cd92f05f45defdd0
2,303
py
Python
src/testcase/GN_Y201J/case/GN_Y201J_ELECTRICITY_METER/GN_Y201J_ELECTRICITY_METER_002.py
maiyajj/AutoTest_script-Appium_Connect
f9c2c42c281a9e2f984acb4a72dda0694b053f22
[ "Apache-2.0" ]
28
2017-11-10T00:19:16.000Z
2022-02-19T16:42:05.000Z
src/testcase/GN_Y201J/case/GN_Y201J_ELECTRICITY_METER/GN_Y201J_ELECTRICITY_METER_002.py
maiyajj/AutoTest_script-Appium_Connect
f9c2c42c281a9e2f984acb4a72dda0694b053f22
[ "Apache-2.0" ]
null
null
null
src/testcase/GN_Y201J/case/GN_Y201J_ELECTRICITY_METER/GN_Y201J_ELECTRICITY_METER_002.py
maiyajj/AutoTest_script-Appium_Connect
f9c2c42c281a9e2f984acb4a72dda0694b053f22
[ "Apache-2.0" ]
23
2017-08-22T06:12:19.000Z
2021-09-18T05:45:41.000Z
# coding=utf-8 from src.testcase.GN_Y201J.WidgetOperation import * class GNY201JElectricityMeter2(WidgetOperation): @case_run(False) def run(self): self.case_module = u"电量计量" # 用例所属模块 self.case_title = u'单一电价验证' # 用例名称 self.zentao_id = "1138" # 禅道ID # 用例动作 def case(self): ...
39.033898
113
0.598784
c2bf2823dc89e35cb491926c69e4bcbc690e84ed
6,891
py
Python
megatron/microbatches.py
adammoody/Megatron-DeepSpeed
972211163608818fe9e5ba821246f18d0a5dc264
[ "MIT" ]
2,869
2019-03-22T04:45:32.000Z
2022-03-31T14:47:42.000Z
megatron/microbatches.py
adammoody/Megatron-DeepSpeed
972211163608818fe9e5ba821246f18d0a5dc264
[ "MIT" ]
161
2019-04-23T21:00:16.000Z
2022-03-27T15:33:17.000Z
megatron/microbatches.py
adammoody/Megatron-DeepSpeed
972211163608818fe9e5ba821246f18d0a5dc264
[ "MIT" ]
567
2019-04-05T22:17:47.000Z
2022-03-31T04:45:25.000Z
# coding=utf-8 # Copyright (c) 2020, NVIDIA CORPORATION. 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 re...
43.613924
83
0.648817
b21f7028ea466cff0ececc8c7f7da99a89a04b6e
1,476
py
Python
SubmissionScoreTracker/submissionscoretracker.py
zatherz/reddit
bd4378ff62e893d28fa824df5678c6de4021b123
[ "MIT" ]
444
2015-01-04T02:31:53.000Z
2022-03-22T05:57:08.000Z
SubmissionScoreTracker/submissionscoretracker.py
zatherz/reddit
bd4378ff62e893d28fa824df5678c6de4021b123
[ "MIT" ]
12
2015-05-21T07:56:59.000Z
2020-02-18T06:26:39.000Z
SubmissionScoreTracker/submissionscoretracker.py
zatherz/reddit
bd4378ff62e893d28fa824df5678c6de4021b123
[ "MIT" ]
199
2015-01-02T14:14:07.000Z
2022-02-12T14:00:09.000Z
import praw import sys import time import traceback USERAGENT = "" APP_ID = "" APP_SECRET = "" APP_URI = "" APP_REFRESH = "" # https://www.reddit.com/comments/3cm1p8/how_to_make_your_bot_use_oauth2/ try: import bot USERAGENT = bot.aG APP_ID = bot.oG_id APP_SECRET = bot.oG_secret APP_URI = bot.oG_u...
26.836364
76
0.626694
8107263fb7a3028a2a02cd934870e8f6eb38b785
91
py
Python
pytreelib/__init__.py
akashbw/pytreelib
6d26f52825c8c455c1ae1df4ce1925f26dd0a0a0
[ "MIT" ]
1
2020-02-03T04:05:13.000Z
2020-02-03T04:05:13.000Z
pytreelib/__init__.py
akashbw/pytreelib
6d26f52825c8c455c1ae1df4ce1925f26dd0a0a0
[ "MIT" ]
null
null
null
pytreelib/__init__.py
akashbw/pytreelib
6d26f52825c8c455c1ae1df4ce1925f26dd0a0a0
[ "MIT" ]
null
null
null
__version__ = "0.1.1" from .node import BinaryTreeNode from .tree import BinarySearchTree
18.2
34
0.791209
b7ebc2080facbf1e8f86d7e4fe20234d266938f0
3,550
py
Python
src/years/2020/21/solution.py
cpallapolu/advent-of-code-2020
aae18e28273f09694a3b9bceeee71edc3c88e048
[ "MIT" ]
null
null
null
src/years/2020/21/solution.py
cpallapolu/advent-of-code-2020
aae18e28273f09694a3b9bceeee71edc3c88e048
[ "MIT" ]
null
null
null
src/years/2020/21/solution.py
cpallapolu/advent-of-code-2020
aae18e28273f09694a3b9bceeee71edc3c88e048
[ "MIT" ]
null
null
null
from collections import defaultdict from typing import Dict, List, Set from aocpuzzle import AoCPuzzle class Puzzle21(AoCPuzzle): def common(self, input_data: List[str]) -> None: self.ingredients = set() self.allergens: Set[str] = set() self.foods = [] for line in input_data: ...
35.5
94
0.569014
2102a3d88246716d27a23359afa33d28a5a16867
1,596
py
Python
sklearn_genetic/tests/test_plots.py
kari-d/Sklearn-genetic-opt
e4a76a5a4c73d456c3a0b426f5703e77c3175e66
[ "MIT" ]
1
2021-06-24T08:36:28.000Z
2021-06-24T08:36:28.000Z
sklearn_genetic/tests/test_plots.py
kari-d/Sklearn-genetic-opt
e4a76a5a4c73d456c3a0b426f5703e77c3175e66
[ "MIT" ]
null
null
null
sklearn_genetic/tests/test_plots.py
kari-d/Sklearn-genetic-opt
e4a76a5a4c73d456c3a0b426f5703e77c3175e66
[ "MIT" ]
null
null
null
import pytest from sklearn.datasets import load_boston from sklearn.model_selection import train_test_split from sklearn.tree import DecisionTreeRegressor from .. import GASearchCV from ..plots import plot_fitness_evolution, plot_search_space from ..space import Integer, Categorical, Continuous data = load_boston() ...
24.9375
93
0.696742
3e723e4202b1440edec51086d0b1d8bb27f9f053
20,156
py
Python
gpMgmt/bin/gppylib/system/configurationImplGpdb.py
haolinw/gpdb
16a9465747a54f0c61bac8b676fe7611b4f030d8
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
gpMgmt/bin/gppylib/system/configurationImplGpdb.py
haolinw/gpdb
16a9465747a54f0c61bac8b676fe7611b4f030d8
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
gpMgmt/bin/gppylib/system/configurationImplGpdb.py
haolinw/gpdb
16a9465747a54f0c61bac8b676fe7611b4f030d8
[ "PostgreSQL", "Apache-2.0" ]
1
2022-03-18T03:08:11.000Z
2022-03-18T03:08:11.000Z
#!/usr/bin/env python3 # # Copyright (c) Greenplum Inc 2010. All Rights Reserved. # Copyright (c) EMC/Greenplum Inc 2011. All Rights Reserved. # """ This file defines the interface that can be used to fetch and update system configuration information. """ import os, copy from collections import defaultdict from gppyli...
43.817391
145
0.661887
5a3fb61c644e4394762a92c896075c1ef22bafc4
1,376
py
Python
setup.py
QuiNovas/athena-type-convertor
775e6deeccd1be4a486363bcdbff57ce594849f0
[ "Apache-2.0" ]
2
2020-07-18T00:23:27.000Z
2021-05-15T14:23:55.000Z
setup.py
QuiNovas/athena-type-converter
775e6deeccd1be4a486363bcdbff57ce594849f0
[ "Apache-2.0" ]
null
null
null
setup.py
QuiNovas/athena-type-converter
775e6deeccd1be4a486363bcdbff57ce594849f0
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path # What does your project relate to? app_keywords = 'quinovas' # List run-time dependencies here. These will be installed by pip when # your project is installed. For an analysis of "install_requir...
26.461538
96
0.695494
1647aec4df37f689fd764b271e93285d8d6b5568
1,357
py
Python
docs/conf.py
eniovianna/py_dss_tools
3057fb0b74facd05a362e4e4a588f79f70aa9dd7
[ "MIT" ]
null
null
null
docs/conf.py
eniovianna/py_dss_tools
3057fb0b74facd05a362e4e4a588f79f70aa9dd7
[ "MIT" ]
null
null
null
docs/conf.py
eniovianna/py_dss_tools
3057fb0b74facd05a362e4e4a588f79f70aa9dd7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import sphinx_py3doc_enhanced_theme extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.autosummary', 'sphinx.ext.coverage', 'sphinx.ext.doctest', 'sphinx.ext.extlinks', 'sphinx.ext.ifconfig', 'sphinx.ext.napoleon', 'sphinx.e...
28.270833
110
0.705232
92e00a8fe877687f749ff92e0a4fc9ad376fddb5
1,201
py
Python
Interview Preparation Kit/Warm-up Challenges/Repeated Strings.py
karangehlod/Hackerrank
8a934642eccfb6f179f0833e8be68379fdc8206e
[ "MIT" ]
null
null
null
Interview Preparation Kit/Warm-up Challenges/Repeated Strings.py
karangehlod/Hackerrank
8a934642eccfb6f179f0833e8be68379fdc8206e
[ "MIT" ]
null
null
null
Interview Preparation Kit/Warm-up Challenges/Repeated Strings.py
karangehlod/Hackerrank
8a934642eccfb6f179f0833e8be68379fdc8206e
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys # Complete the repeatedString function below. def repeatedString(s, n): count = 0 result = 0 lengthOfString = len(s) remainderc = 0 for i in range(lengthOfString): if(s[i] == 'a'): cou...
21.446429
59
0.567027
9c9abf4f95879a0e16379404daa1bd93fc474785
24,748
py
Python
site/flask/lib/python2.7/site-packages/whoosh/codec/base.py
theholyhades1/tartanHacks2015
a801b473f21cfbd136e2a5a74423e8c72d14f900
[ "MIT" ]
319
2016-09-22T15:54:48.000Z
2022-03-18T02:36:58.000Z
site/flask/lib/python2.7/site-packages/whoosh/codec/base.py
theholyhades1/tartanHacks2015
a801b473f21cfbd136e2a5a74423e8c72d14f900
[ "MIT" ]
9
2016-11-03T21:56:41.000Z
2020-08-09T19:27:37.000Z
site/flask/lib/python2.7/site-packages/whoosh/codec/base.py
theholyhades1/tartanHacks2015
a801b473f21cfbd136e2a5a74423e8c72d14f900
[ "MIT" ]
27
2016-10-06T16:05:32.000Z
2022-03-18T02:37:00.000Z
# Copyright 2011 Matt Chaput. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and the...
29.287574
81
0.656255
3db54d99929d6bb7149ed5da34e65451660abd6b
382
py
Python
custom_components/smthost/const.py
kdeyev/smthost
d144282a15e0d3bbdbb58dffbe916d1472fdcb12
[ "MIT" ]
null
null
null
custom_components/smthost/const.py
kdeyev/smthost
d144282a15e0d3bbdbb58dffbe916d1472fdcb12
[ "MIT" ]
null
null
null
custom_components/smthost/const.py
kdeyev/smthost
d144282a15e0d3bbdbb58dffbe916d1472fdcb12
[ "MIT" ]
null
null
null
"""Constants for the Smart Meter Texas integration.""" from datetime import timedelta SCAN_INTERVAL = timedelta(hours=1) DEBOUNCE_COOLDOWN = 1800 # Seconds DATA_COORDINATOR = "coordinator" DATA_SMART_METER = "smart_meter_data" DOMAIN = "smthost" METER_NUMBER = "meter_number" ESIID = "electric_service_identifier" L...
23.875
54
0.790576
ddfc0a232ee6c9c657689b46a45c2b731ce21c75
1,018
py
Python
benchmark/graphics.py
Algorithms-and-Data-Structures-2021/splay-tree
a5f9c2a1bed80ced7f5e1249c5bebb7d16fc1747
[ "MIT" ]
null
null
null
benchmark/graphics.py
Algorithms-and-Data-Structures-2021/splay-tree
a5f9c2a1bed80ced7f5e1249c5bebb7d16fc1747
[ "MIT" ]
null
null
null
benchmark/graphics.py
Algorithms-and-Data-Structures-2021/splay-tree
a5f9c2a1bed80ced7f5e1249c5bebb7d16fc1747
[ "MIT" ]
2
2021-04-10T15:48:24.000Z
2021-06-02T13:33:59.000Z
import matplotlib.pyplot as plt if __name__ == '__main__': plt.figure(figsize=(10, 10)) plt.xlabel('elements') plt.ylabel('time(µs)') operation = str(input()) ox = [100, 500, 1000, 5000, 10000, 25000, 50000, 100000, 250000, 500000, 1000000, 2500000, 5000000] if operation == 'remove': oy...
36.357143
117
0.584479
b28eda635677a8a26136d10af98bee1909f605d0
201
py
Python
cat_blog/users/tests/test_models.py
turamant/cat_blog
0a04978db78d805f6468626ab23454ffa52b2411
[ "MIT" ]
null
null
null
cat_blog/users/tests/test_models.py
turamant/cat_blog
0a04978db78d805f6468626ab23454ffa52b2411
[ "MIT" ]
4
2021-03-30T14:29:55.000Z
2021-06-10T19:56:22.000Z
cat_blog/users/tests/test_models.py
turamant/cat_blog
0a04978db78d805f6468626ab23454ffa52b2411
[ "MIT" ]
null
null
null
import pytest from cat_blog.users.models import User pytestmark = pytest.mark.django_db def test_user_get_absolute_url(user: User): assert user.get_absolute_url() == f"/users/{user.username}/"
20.1
64
0.771144
3e74407fc2adfd224e351d138c76605e15a43d67
560
py
Python
checkk2fov/test.py
danxhuber/k2epic
743587da578f187a6c069fbe02e5d4a5cadd3a98
[ "MIT" ]
2
2015-11-25T05:03:05.000Z
2016-02-09T03:56:05.000Z
checkk2fov/test.py
danxhuber/k2epic
743587da578f187a6c069fbe02e5d4a5cadd3a98
[ "MIT" ]
null
null
null
checkk2fov/test.py
danxhuber/k2epic
743587da578f187a6c069fbe02e5d4a5cadd3a98
[ "MIT" ]
null
null
null
import pdb import numpy as np import matplotlib.pyplot as plt f = open('/Users/daniel/science/K2/EPIC/deliveries/d14260_03_epic_c7_dmc.mrg', 'r') n=0 for line in f: n=n+1 print(n) f.close() ra=np.zeros(n) dec=np.zeros(n) f = open('/Users/daniel/science/K2/EPIC/deliveries/d14260_03_epic_c7_dmc.mrg', 'r')...
14.358974
83
0.648214
5d22d9de6bee2f407431aedcde7842a3b4d42fc8
2,190
py
Python
lammps-master/tools/i-pi/ipi/utils/softexit.py
rajkubp020/helloword
4bd22691de24b30a0f5b73821c35a7ac0666b034
[ "MIT" ]
null
null
null
lammps-master/tools/i-pi/ipi/utils/softexit.py
rajkubp020/helloword
4bd22691de24b30a0f5b73821c35a7ac0666b034
[ "MIT" ]
null
null
null
lammps-master/tools/i-pi/ipi/utils/softexit.py
rajkubp020/helloword
4bd22691de24b30a0f5b73821c35a7ac0666b034
[ "MIT" ]
null
null
null
"""Utility functions for killing the wrapper softly. Copyright (C) 2013, Joshua More and Michele Ceriotti This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your...
29.594595
109
0.702283
f348f160690f15909a2a1fbe1f11e2014f938f2d
1,970
py
Python
src/sentry/utils/pytest/kafka.py
kinghuang/sentry
5c22673994a62f54a782d1c595852986ccc51ae9
[ "BSD-3-Clause" ]
1
2019-10-17T17:46:16.000Z
2019-10-17T17:46:16.000Z
src/sentry/utils/pytest/kafka.py
kinghuang/sentry
5c22673994a62f54a782d1c595852986ccc51ae9
[ "BSD-3-Clause" ]
null
null
null
src/sentry/utils/pytest/kafka.py
kinghuang/sentry
5c22673994a62f54a782d1c595852986ccc51ae9
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import os import pytest import six from confluent_kafka.admin import AdminClient from confluent_kafka import Producer @pytest.fixture def kafka_producer(): def inner(settings): producer = Producer( {"bootstrap.servers": settings.KAFKA_CLUSTERS["default"...
28.550725
94
0.68731
b2422f1640b08bc71a86eca401d548aeed451431
2,242
py
Python
projeto-02/dijkstra/dijkstra_binary_heap.py
henrique-tavares/IFB-Analise-de-Algoritmos
36db7672fea45ce8ab9dce5bbe41aec30be18465
[ "MIT" ]
null
null
null
projeto-02/dijkstra/dijkstra_binary_heap.py
henrique-tavares/IFB-Analise-de-Algoritmos
36db7672fea45ce8ab9dce5bbe41aec30be18465
[ "MIT" ]
null
null
null
projeto-02/dijkstra/dijkstra_binary_heap.py
henrique-tavares/IFB-Analise-de-Algoritmos
36db7672fea45ce8ab9dce5bbe41aec30be18465
[ "MIT" ]
1
2021-07-15T23:50:37.000Z
2021-07-15T23:50:37.000Z
from collections import defaultdict from typing import Dict, List, Set, Tuple import heapq import sys sys.path.append("../../projeto-02") from graph import Graph class DijkstraBinaryHeap: def __init__(self, graph: Graph) -> None: self.graph = graph self.paths: Dict[str, Dict[str, Tuple[str, floa...
36.16129
94
0.632025
5204b88d5cc7829d01573514a9d849fc667bfdd3
4,930
py
Python
SecondaryStructures.py
LifeWorks/SIEVE
8ba16402f0a15a0ae040d54cf2674e7d00ef4be0
[ "BSD-2-Clause" ]
null
null
null
SecondaryStructures.py
LifeWorks/SIEVE
8ba16402f0a15a0ae040d54cf2674e7d00ef4be0
[ "BSD-2-Clause" ]
null
null
null
SecondaryStructures.py
LifeWorks/SIEVE
8ba16402f0a15a0ae040d54cf2674e7d00ef4be0
[ "BSD-2-Clause" ]
null
null
null
# Usage: python3 SecondaryStructures.py -i Fastas/ --cpu 4 --parallel 2 # (run 2 parallel instances of Porter5 on 4 cores - total of 8 cores) import os import sys import argparse from multiprocessing import Pool import pandas as pd ### parallel code ## def splitFa(filename, faDir): # catch big fasta fasta...
37.923077
403
0.618053
f005871fce1b4cf064d1967c542cd2f61a7a733d
1,448
py
Python
string_matcher.py
nacbotics5/web-scraping-with-python
5c5d89d58173ee2e6491283d7d5ba0a413d6961c
[ "BSD-3-Clause" ]
3
2019-07-03T13:10:21.000Z
2020-01-09T10:34:12.000Z
string_matcher.py
nacbotics5/web-scraping-with-python
5c5d89d58173ee2e6491283d7d5ba0a413d6961c
[ "BSD-3-Clause" ]
null
null
null
string_matcher.py
nacbotics5/web-scraping-with-python
5c5d89d58173ee2e6491283d7d5ba0a413d6961c
[ "BSD-3-Clause" ]
1
2021-11-08T18:53:12.000Z
2021-11-08T18:53:12.000Z
#-*-coding:utf8;-*- from collections import OrderedDict class string_match(object): def __init__(self,data_source=None): self.dictx,self.dicty,self.lists = dict(),dict(),data_source self.boolean = False def match_string(self,x,y,prints=False): " returns the match of x to...
32.909091
95
0.562155
5f60726dd8bde8c73c9cc8d538725c9152ce8045
13,037
py
Python
datadrift/detect_drift.py
samsonq/datadrift
c4298d588b5df27992f332c1df5b092c54823b4e
[ "MIT" ]
null
null
null
datadrift/detect_drift.py
samsonq/datadrift
c4298d588b5df27992f332c1df5b092c54823b4e
[ "MIT" ]
null
null
null
datadrift/detect_drift.py
samsonq/datadrift
c4298d588b5df27992f332c1df5b092c54823b4e
[ "MIT" ]
null
null
null
################################################# # Encapsulates GE Test Suite Creation Functions # # # ################################################# """ Automate process to generate test suite and expectations for dataset, and then create checkpoints to evaluate datase...
48.107011
171
0.701158
0fc4255615e9d122ce52cf76a1b4fbe5d38ff0af
6,812
py
Python
homeassistant/components/remote/__init__.py
dummys/home-assistant
dd908caebade15adf061fade686355b94ed2f43a
[ "Apache-2.0" ]
11
2018-02-16T15:35:47.000Z
2020-01-14T15:20:00.000Z
homeassistant/components/remote/__init__.py
dummys/home-assistant
dd908caebade15adf061fade686355b94ed2f43a
[ "Apache-2.0" ]
70
2020-07-23T07:13:50.000Z
2022-03-31T06:01:52.000Z
homeassistant/components/remote/__init__.py
dummys/home-assistant
dd908caebade15adf061fade686355b94ed2f43a
[ "Apache-2.0" ]
6
2018-02-04T03:48:55.000Z
2022-01-24T20:37:04.000Z
"""Support to interface with universal remote control devices.""" from __future__ import annotations from collections.abc import Iterable from datetime import timedelta import functools as ft import logging from typing import Any, cast, final import voluptuous as vol from homeassistant.config_entries import ConfigEn...
31.247706
88
0.698767
3e0a362994238c9ad2616739a31f147e326989ea
681
py
Python
bims/serializers/taxon_serializer.py
ann26/django-bims
410e57d99137aea4146b4a40640f9f5ce03d06c5
[ "MIT" ]
null
null
null
bims/serializers/taxon_serializer.py
ann26/django-bims
410e57d99137aea4146b4a40640f9f5ce03d06c5
[ "MIT" ]
null
null
null
bims/serializers/taxon_serializer.py
ann26/django-bims
410e57d99137aea4146b4a40640f9f5ce03d06c5
[ "MIT" ]
null
null
null
from rest_framework import serializers from bims.models import Taxon class TaxonSerializer(serializers.ModelSerializer): """ Serializer for taxon collection model. """ iucn_status_sensitive = serializers.SerializerMethodField() iucn_status_name = serializers.SerializerMethodField() def get_iu...
25.222222
63
0.666667
3c20526d641d5055ca854397dbc81579d66fa599
1,529
py
Python
ax/plot/tests/test_fitted_scatter.py
Balandat/Ax
6c7556165291a5329744b5075d5f95d2dec18938
[ "MIT" ]
null
null
null
ax/plot/tests/test_fitted_scatter.py
Balandat/Ax
6c7556165291a5329744b5075d5f95d2dec18938
[ "MIT" ]
null
null
null
ax/plot/tests/test_fitted_scatter.py
Balandat/Ax
6c7556165291a5329744b5075d5f95d2dec18938
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import plotly.graph_objects as go from ax.modelbridge.registry import Models from ax.plot.base import AxPlotConfig from...
36.404762
80
0.669065
9db3181077c32597e8dde76640466679afdc21a4
2,578
py
Python
logisticRegression.py
NeiderFajardo/EjerciciosElectiva
ebad38107879f8d31ea26027758c02ff06368577
[ "Apache-2.0" ]
null
null
null
logisticRegression.py
NeiderFajardo/EjerciciosElectiva
ebad38107879f8d31ea26027758c02ff06368577
[ "Apache-2.0" ]
null
null
null
logisticRegression.py
NeiderFajardo/EjerciciosElectiva
ebad38107879f8d31ea26027758c02ff06368577
[ "Apache-2.0" ]
null
null
null
#Neider Alejandro Fajardo-20142020025 #Ejercicio Machine Learning que incluye pipeline y corssValidation #utilizando un método de regresión lógistica from pyspark.ml import Pipeline from pyspark.ml.classification import DecisionTreeClassifier,LogisticRegression from pyspark.ml.feature import StringIndexer, VectorIndex...
38.477612
141
0.769977
6a173c88e22205ebe0ca8f6665a680a0ad8aeb21
6,008
py
Python
azure-mgmt-redis/azure/mgmt/redis/redis_management_client.py
azuresdkci1x/azure-sdk-for-python-1722
e08fa6606543ce0f35b93133dbb78490f8e6bcc9
[ "MIT" ]
1
2017-10-29T15:14:35.000Z
2017-10-29T15:14:35.000Z
azure-mgmt-redis/azure/mgmt/redis/redis_management_client.py
azuresdkci1x/azure-sdk-for-python-1722
e08fa6606543ce0f35b93133dbb78490f8e6bcc9
[ "MIT" ]
null
null
null
azure-mgmt-redis/azure/mgmt/redis/redis_management_client.py
azuresdkci1x/azure-sdk-for-python-1722
e08fa6606543ce0f35b93133dbb78490f8e6bcc9
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
47.68254
203
0.732523
1a26bc6f3178250a89842a1d42ad6219873b3598
2,201
py
Python
src/django_agent_trust/__init__.py
ThePumpingLemma/django-agent-trust
43151a5c923abd9865723804bc84fb4665f399bb
[ "BSD-2-Clause" ]
null
null
null
src/django_agent_trust/__init__.py
ThePumpingLemma/django-agent-trust
43151a5c923abd9865723804bc84fb4665f399bb
[ "BSD-2-Clause" ]
null
null
null
src/django_agent_trust/__init__.py
ThePumpingLemma/django-agent-trust
43151a5c923abd9865723804bc84fb4665f399bb
[ "BSD-2-Clause" ]
null
null
null
from random import randrange def trust_agent(request, trust_days=None): """ Mark the requesting agent as trusted for the currently logged-in user. This does nothing for anonymous users. :param request: The current request. :type request: :class:`~django.http.HttpRequest` :param float trust_da...
32.850746
79
0.704225
6dbd6fca5794defbb28c36da6098221e422c4c35
3,098
py
Python
WebHub/WebHub/spiders/pornHubSpider.py
peteyan/WebHubBot
0d51fe6d345f1a439872e1f7091a0080634ad490
[ "MIT" ]
null
null
null
WebHub/WebHub/spiders/pornHubSpider.py
peteyan/WebHubBot
0d51fe6d345f1a439872e1f7091a0080634ad490
[ "MIT" ]
null
null
null
WebHub/WebHub/spiders/pornHubSpider.py
peteyan/WebHubBot
0d51fe6d345f1a439872e1f7091a0080634ad490
[ "MIT" ]
null
null
null
# coding:utf-8 import json import logging import re from WebHub.items import PornVideoItem from WebHub.pornhub_type import PH_TYPES from scrapy.http import Request from scrapy.selector import Selector from scrapy.spiders import CrawlSpider class Spider(CrawlSpider): name = 'pornHubSpider' host = 'https://www...
39.21519
83
0.576501
28dec11698bc7c7ea4313665cda04f4661b0c20f
85
py
Python
Harpe-website/website/contrib/communication/templatetags/harpe_communication_tags.py
Krozark/Harpe-Website
1038a8550d08273806c9ec244cb8157ef9e9101e
[ "BSD-2-Clause" ]
null
null
null
Harpe-website/website/contrib/communication/templatetags/harpe_communication_tags.py
Krozark/Harpe-Website
1038a8550d08273806c9ec244cb8157ef9e9101e
[ "BSD-2-Clause" ]
null
null
null
Harpe-website/website/contrib/communication/templatetags/harpe_communication_tags.py
Krozark/Harpe-Website
1038a8550d08273806c9ec244cb8157ef9e9101e
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django import template register = template.Library()
12.142857
29
0.670588
a2d27ef9d729e90e8875d38c57d28b08b52df523
2,385
py
Python
Algorithms_intro_to/l2ps7.py
dazz22/udacity-into-to-algorithms
d8f092bb4f8237cf514188dfd1e4d6d8e5561489
[ "Apache-2.0" ]
null
null
null
Algorithms_intro_to/l2ps7.py
dazz22/udacity-into-to-algorithms
d8f092bb4f8237cf514188dfd1e4d6d8e5561489
[ "Apache-2.0" ]
null
null
null
Algorithms_intro_to/l2ps7.py
dazz22/udacity-into-to-algorithms
d8f092bb4f8237cf514188dfd1e4d6d8e5561489
[ "Apache-2.0" ]
null
null
null
# Generate a combination lock graph given a list of nodes # def make_link(G, node1, node2): if node1 not in G: G[node1] = {} (G[node1])[node2] = 1 if node2 not in G: G[node2] = {} (G[node2])[node1] = 1 return G def create_combo_lock(nodes): G = {} # create chain for n...
25.37234
70
0.533753
1001ff52c58fe8de413273bdec73a0d0a07e3be1
10,031
py
Python
cvpods/layers/batch_norm.py
hanqiu-hq/cvpods
597fa669151fdad87c250fa118a9e3a555f4fb5e
[ "Apache-2.0" ]
null
null
null
cvpods/layers/batch_norm.py
hanqiu-hq/cvpods
597fa669151fdad87c250fa118a9e3a555f4fb5e
[ "Apache-2.0" ]
null
null
null
cvpods/layers/batch_norm.py
hanqiu-hq/cvpods
597fa669151fdad87c250fa118a9e3a555f4fb5e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. # This file has been modified by Megvii ("Megvii Modifications"). # All Megvii Modifications are Copyright (C) 2019-2021 Megvii Inc. All rights reserved. from loguru import logger import torch import torc...
36.609489
99
0.619679
b12bb3e5d51edb4f8d396e338d1762e1dc41ae43
1,726
py
Python
src/forms/changtheme.py
TuringApp/Turing
787bc0eb15af632e7a7a95fd6848db62e91822ea
[ "MIT" ]
42
2018-05-02T07:07:27.000Z
2022-02-01T19:49:49.000Z
src/forms/changtheme.py
TuringApp/Turing
787bc0eb15af632e7a7a95fd6848db62e91822ea
[ "MIT" ]
65
2018-03-08T11:53:13.000Z
2018-09-17T09:00:09.000Z
src/forms/changtheme.py
TuringApp/Turing
787bc0eb15af632e7a7a95fd6848db62e91822ea
[ "MIT" ]
8
2018-03-31T16:01:36.000Z
2022-03-06T14:49:24.000Z
# -*- coding: utf-8 -*- from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * from forms.ui_changtheme import Ui_ChangeThemeWindow from util import theming from util.widgets import center_widget translate = QCoreApplication.translate class ChangeThemeWindow(QDialog): def __init__(s...
29.254237
90
0.615875
4713e2a3146c01564f48eb5aee3867235a45a406
1,536
py
Python
rllib/utils/annotations.py
firebolt55439/ray
215300b070628c06f0106906fc6c03bd70ebf140
[ "Apache-2.0" ]
39
2021-02-02T23:09:31.000Z
2022-03-28T16:39:12.000Z
rllib/utils/annotations.py
firebolt55439/ray
215300b070628c06f0106906fc6c03bd70ebf140
[ "Apache-2.0" ]
84
2021-03-06T08:02:56.000Z
2022-03-05T08:07:19.000Z
rllib/utils/annotations.py
firebolt55439/ray
215300b070628c06f0106906fc6c03bd70ebf140
[ "Apache-2.0" ]
20
2021-02-05T05:51:39.000Z
2022-03-04T21:13:24.000Z
def override(cls): """Annotation for documenting method overrides. Args: cls (type): The superclass that provides the overridden method. If this cls does not actually have the method, an error is raised. """ def check_override(method): if method.__name__ not in dir(cls): ...
32
79
0.696615
f67ac2747546a1c10a5b9c23dfea98c74371a26e
146
py
Python
Aniyom Ebenezer/Phase 2/STRINGS/Day_31_Challenge_Solution/Question 4 Solution.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
6
2020-05-23T19:53:25.000Z
2021-05-08T20:21:30.000Z
Aniyom Ebenezer/Phase 2/STRINGS/Day_31_Challenge_Solution/Question 4 Solution.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
8
2020-05-14T18:53:12.000Z
2020-07-03T00:06:20.000Z
Aniyom Ebenezer/Phase 2/STRINGS/Day_31_Challenge_Solution/Question 4 Solution.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
39
2020-05-10T20:55:02.000Z
2020-09-12T17:40:59.000Z
""" Write a Python program to check whether a string starts with specified characters. """ string = "Pyladies.com" print(string.startswith("Pyl"))
29.2
82
0.753425
d3da31d468e68e0c6bdf1e2ebe77aedbbcfe68ca
13,739
py
Python
webnotes/translate.py
saurabh6790/OFF-RISLIB
eb7866227c5ff085ea714f79576281d82365f4fe
[ "MIT" ]
null
null
null
webnotes/translate.py
saurabh6790/OFF-RISLIB
eb7866227c5ff085ea714f79576281d82365f4fe
[ "MIT" ]
null
null
null
webnotes/translate.py
saurabh6790/OFF-RISLIB
eb7866227c5ff085ea714f79576281d82365f4fe
[ "MIT" ]
null
null
null
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals """ Contributing: 1. Add the .csv file 2. Run import 3. Then run translate """ import webnotes import os import codecs import json import re from csv import reader from web...
30.396018
122
0.684766
ef2e7ee93a2377a7f631bf24ceacd04a6b5c4178
397
py
Python
shop/urls.py
Slohn/myshop
4e5034dc3b1561773060319f16628d44910c4a20
[ "MIT" ]
20
2021-05-07T19:32:56.000Z
2022-02-06T12:12:56.000Z
shop/urls.py
Slohn/myshop
4e5034dc3b1561773060319f16628d44910c4a20
[ "MIT" ]
9
2021-04-08T18:29:18.000Z
2022-03-11T23:28:23.000Z
shop/urls.py
Slohn/myshop
4e5034dc3b1561773060319f16628d44910c4a20
[ "MIT" ]
10
2021-02-22T13:50:24.000Z
2022-03-15T11:51:27.000Z
from django.urls import path from shop import views app_name='shop' urlpatterns = [ path('', views.product_list, name='product_list'), path('search', views.product_search, name='product_search'), path('(?P<category_slug>[-\w]+)/$', views.product_list, name='product_list_by_category'), path('(?P...
33.083333
87
0.667506
69de2624d18e88e1a378fb13496ff154c09087b2
3,283
py
Python
monty/exts/utils/delete.py
onerandomusername/monty-python
fcd8b2827eb9bbb2a05d28f80ac9e215589f03f7
[ "MIT" ]
20
2021-12-31T10:17:20.000Z
2022-03-31T04:16:17.000Z
monty/exts/utils/delete.py
onerandomusername/monty-bot
b1c769e44b56bc45f37fc809064571d59c80db27
[ "MIT" ]
1
2022-03-13T22:34:33.000Z
2022-03-13T22:34:52.000Z
monty/exts/utils/delete.py
onerandomusername/monty-bot
b1c769e44b56bc45f37fc809064571d59c80db27
[ "MIT" ]
3
2022-01-02T15:21:46.000Z
2022-03-05T09:37:54.000Z
import disnake from disnake.ext import commands from monty.bot import Monty from monty.log import get_logger from monty.utils.messages import DELETE_ID_V2 VIEW_DELETE_ID_V1 = "wait_for_deletion_interaction_trash" logger = get_logger(__name__) class DeleteManager(commands.Cog, slash_command_attrs={"dm_permission":...
35.684783
115
0.645446
f2d8d386d5432971b802b310ae7d7428b872c472
579
py
Python
setup.py
tleewu/django-follow
2c70242c8198259c9dec54a9f92df4e055b5dd12
[ "MIT" ]
36
2015-02-12T07:42:16.000Z
2020-07-10T10:11:48.000Z
setup.py
saumishr/django-follow
d23fe6b8aaa1fea12db0c1175847e420f6b9f058
[ "MIT" ]
4
2015-02-12T02:55:50.000Z
2020-07-22T19:25:52.000Z
setup.py
saumishr/django-follow
d23fe6b8aaa1fea12db0c1175847e420f6b9f058
[ "MIT" ]
20
2015-02-22T08:06:19.000Z
2020-05-13T20:47:49.000Z
#!/usr/bin/env python from setuptools import setup, find_packages import follow setup( name='django-follow', description='Application which enables following features for users. Can be used for contact books or whatnot', long_description=open('README.rst').read(), packages=find_packages(), author=...
30.473684
115
0.727116
d005ab9af742f92c4be640377d24f97baca58d30
261
py
Python
statistics_website/manage.py
stupa-hh/website
e3dc4f4850c8caf957011f8e974537d5ec7d45d1
[ "MIT" ]
null
null
null
statistics_website/manage.py
stupa-hh/website
e3dc4f4850c8caf957011f8e974537d5ec7d45d1
[ "MIT" ]
13
2016-01-19T09:41:29.000Z
2017-04-03T12:41:50.000Z
statistics_website/manage.py
stupa-hh/website
e3dc4f4850c8caf957011f8e974537d5ec7d45d1
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "statistics_website.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
23.727273
82
0.781609
9393b20d9f93b28f9d8bb593037182b9911906ec
2,600
py
Python
tests/test_DialogueServer.py
Dagu9/Reinforcement-learning-SGD
eb4a2546d6c99917b33e8cc4c210709e7d4cc15e
[ "Apache-2.0" ]
2
2020-01-20T14:43:27.000Z
2021-04-29T12:21:05.000Z
tests/test_DialogueServer.py
vmishra04/Pydial
a689fa1177cd34f32dd4d30a5a6140fb721855bf
[ "Apache-2.0" ]
null
null
null
tests/test_DialogueServer.py
vmishra04/Pydial
a689fa1177cd34f32dd4d30a5a6140fb721855bf
[ "Apache-2.0" ]
null
null
null
############################################################################### # PyDial: Multi-domain Statistical Spoken Dialogue System Software ############################################################################### # # Copyright 2015 - 2019 # Cambridge University Engineering Department Dialogue Systems Grou...
29.885057
99
0.630385
2178594fe32b69be8da80802487d949469499939
974
py
Python
custom_plate/test_db.py
Dharun/TensorPy
fa1a34bd7127e6b1867b2adcaf88ede063554ef9
[ "FTL", "CNRI-Python" ]
267
2018-03-07T06:42:33.000Z
2022-03-08T20:46:14.000Z
custom_plate/test_db.py
Santoshi055/Tensorflow-License-Plate-Detection
4d446a8e6ec60e6708a29f626b0a01e9a40b923b
[ "FTL", "CNRI-Python" ]
20
2018-07-23T11:53:50.000Z
2021-04-27T14:12:45.000Z
custom_plate/test_db.py
Santoshi055/Tensorflow-License-Plate-Detection
4d446a8e6ec60e6708a29f626b0a01e9a40b923b
[ "FTL", "CNRI-Python" ]
140
2018-03-07T06:43:02.000Z
2022-03-22T03:16:40.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Feb 26 15:27:59 2018 Script created to support tensorflow It pushes License plate value along with the timestamp in POSTGRESSQL @author: tensorflow-cuda """ import psycopg2 def psyco_insert_plate(plate): plate_char = str(plate) try: ...
30.4375
81
0.617043
9f2792e56b88b762091d4dda28dc98669bd9e5e9
1,950
py
Python
TIDALDL-GUI-CROSS/tidal_gui/viewModel/taskItemModel.py
Voilibaar/Tidal-Media-Downloader
8af25e0600670210ce00871eedb19a3e8b55377e
[ "Apache-2.0" ]
2,003
2018-11-09T06:44:25.000Z
2022-03-31T08:14:35.000Z
TIDALDL-GUI-CROSS/tidal_gui/viewModel/taskItemModel.py
Voilibaar/Tidal-Media-Downloader
8af25e0600670210ce00871eedb19a3e8b55377e
[ "Apache-2.0" ]
776
2018-11-17T22:48:39.000Z
2022-03-29T16:40:36.000Z
TIDALDL-GUI-CROSS/tidal_gui/viewModel/taskItemModel.py
Voilibaar/Tidal-Media-Downloader
8af25e0600670210ce00871eedb19a3e8b55377e
[ "Apache-2.0" ]
466
2018-10-29T17:06:58.000Z
2022-03-28T05:57:33.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ @File : taskItemModel.py @Date : 2021/9/14 @Author : Yaronzz @Version : 1.0 @Contact : yaronhuang@foxmail.com @Desc : """ import _thread import aigpy.stringHelper from tidal_dl import Type from tidal_dl.model import Album, Track, Video, Playlist from ...
29.104478
73
0.614872
f6a9c77ede2465bcc41eb341efc4510f8c0ff009
4,912
py
Python
geoUtils.py
tgadf/utils
e0176d4f8a5bed4ecc3b63cb4bf2ee1265840900
[ "MIT" ]
null
null
null
geoUtils.py
tgadf/utils
e0176d4f8a5bed4ecc3b63cb4bf2ee1265840900
[ "MIT" ]
null
null
null
geoUtils.py
tgadf/utils
e0176d4f8a5bed4ecc3b63cb4bf2ee1265840900
[ "MIT" ]
null
null
null
from pyspark.sql.functions import udf from pyspark.sql.types import StringType, DoubleType, FloatType from numpy import pi, cos from haversine import haversine from pandasUtils import isDataFrame import geohash def getGeo3(lat, long): try: retval = geohash.encode(lat, long, precision=3) except: ...
25.450777
140
0.561889
d6070608dd75d637db7df2390df25d28e828da70
5,296
py
Python
integrations/tensorflow/e2e/keras/vision_model_test.py
WindQAQ/iree
68fc75cbe6e4bdf175885c17d41f4d61a55c3537
[ "Apache-2.0" ]
null
null
null
integrations/tensorflow/e2e/keras/vision_model_test.py
WindQAQ/iree
68fc75cbe6e4bdf175885c17d41f4d61a55c3537
[ "Apache-2.0" ]
null
null
null
integrations/tensorflow/e2e/keras/vision_model_test.py
WindQAQ/iree
68fc75cbe6e4bdf175885c17d41f4d61a55c3537
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2020 Google LLC # # 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 or ag...
32.292683
80
0.712424
4a3990c0b6f96cc982474bc70cb042db9a0cb718
5,185
py
Python
salvemais/models.py
SalveMais/api
679c74db2d93df49dd62b235c5b0a07a78145d5e
[ "MIT" ]
null
null
null
salvemais/models.py
SalveMais/api
679c74db2d93df49dd62b235c5b0a07a78145d5e
[ "MIT" ]
null
null
null
salvemais/models.py
SalveMais/api
679c74db2d93df49dd62b235c5b0a07a78145d5e
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta from flask import current_app from werkzeug.security import generate_password_hash, check_password_hash from . import db from .util.data import cell_chart, protein_chart from .util.hash import generate_auth_token class BloodType(db.Document): cell = db.StringField(requir...
30.321637
111
0.662681
2305bfe5d1d2b5c4b9c7aa0765cea78f951db31c
4,889
py
Python
2018/11/2018_Day_11a.py
vScourge/Advent_of_Code
91c743e20e1105d25bcc30da882677ce11c8092a
[ "MIT" ]
null
null
null
2018/11/2018_Day_11a.py
vScourge/Advent_of_Code
91c743e20e1105d25bcc30da882677ce11c8092a
[ "MIT" ]
null
null
null
2018/11/2018_Day_11a.py
vScourge/Advent_of_Code
91c743e20e1105d25bcc30da882677ce11c8092a
[ "MIT" ]
null
null
null
""" --- Day 11: Chronal Charge --- You watch the Elves and their sleigh fade into the distance as they head toward the North Pole. Actually, you're the one fading. The falling sensation returns. The low fuel warning light is illuminated on your wrist-mounted device. Tapping it once causes it to project a hologram of ...
35.427536
308
0.695848
af1c2e0c03a8ddb66feba9b135f511e2e7976827
373
py
Python
src/stream/protocol/serverbound/shutdown_serverbound_packet.py
dzikoysk/CefStream
48843b6f4222b68b97237437bfde36910637736c
[ "Apache-2.0" ]
5
2018-03-20T21:33:58.000Z
2018-06-21T10:01:42.000Z
src/stream/protocol/serverbound/shutdown_serverbound_packet.py
dzikoysk/cefstream
48843b6f4222b68b97237437bfde36910637736c
[ "Apache-2.0" ]
2
2018-06-19T21:15:35.000Z
2018-06-19T21:15:40.000Z
src/stream/protocol/serverbound/shutdown_serverbound_packet.py
dzikoysk/CefStream
48843b6f4222b68b97237437bfde36910637736c
[ "Apache-2.0" ]
null
null
null
from overrides import overrides from src.stream.protocol.packet import ServerboundPacket from src.stream.protocol.packets import Packets class ShutdownServerboundPacket(ServerboundPacket): @overrides def receive(self, cefstream, socket): pass @staticmethod @overrides def get_packet_id()...
21.941176
56
0.764075
c92ab6e15e411051902e14353b7790816cb48799
106,491
py
Python
raw_packet/Utils/base.py
Vladimir-Ivanov-Git/raw_packet
78d27b3dc9532d27faa6e5d853c62bc9c8b21e71
[ "MIT" ]
146
2018-09-28T13:34:01.000Z
2022-03-21T21:35:12.000Z
raw_packet/Utils/base.py
Vladimir-Ivanov-Git/raw_packet
78d27b3dc9532d27faa6e5d853c62bc9c8b21e71
[ "MIT" ]
18
2019-06-05T17:59:08.000Z
2021-12-22T10:26:18.000Z
raw_packet/Utils/base.py
Vladimir-Ivanov-Git/raw_packet
78d27b3dc9532d27faa6e5d853c62bc9c8b21e71
[ "MIT" ]
26
2018-11-09T07:47:42.000Z
2022-03-12T22:40:33.000Z
# region Description """ base.py: Base class for Raw-packet project (base) Author: Vladimir Ivanov License: MIT Copyright 2020, Raw-packet Project """ # endregion # region Import from raw_packet.Utils.vendors import vendors_dictionary try: from platform import system, release, linux_distribution except ImportError...
46.995146
133
0.533735
edf957586616a5aab0443eef46fb7fd92098ecfa
1,274
py
Python
apps/horizon-health-check/main.py
yonikashi/blocktest
db044d74afc62f80f8f74060830347e82dd03adb
[ "MIT" ]
1
2018-12-30T10:44:48.000Z
2018-12-30T10:44:48.000Z
apps/horizon-health-check/main.py
yonikashi/blocktest
db044d74afc62f80f8f74060830347e82dd03adb
[ "MIT" ]
2
2021-04-20T17:22:32.000Z
2021-09-23T23:35:46.000Z
apps/horizon-health-check/main.py
yonikashi/blocktest
db044d74afc62f80f8f74060830347e82dd03adb
[ "MIT" ]
null
null
null
""" Health check for Horizon. Healthy: Corresponding stellar-core is 'Synced' Unhealthy: Corresponding stellar-core is not 'Synced' """ import json import time import os import requests from flask import Flask from flask_cors import CORS APP = Flask(__name__) CORS(APP) START_TIMESTAMP = time.time() # Load configur...
24.980392
73
0.672684
4259739a972f19b4e235cdb6a7d24ee27044c362
7,024
py
Python
exp/utils_visualise.py
zzzace2000/FIDO-saliency
fe0cc51cfe3299405e032c2e10b6f4ad13545822
[ "CC-BY-4.0" ]
29
2018-11-29T22:06:17.000Z
2022-02-12T21:15:38.000Z
exp/utils_visualise.py
zzzace2000/FIDO-saliency
fe0cc51cfe3299405e032c2e10b6f4ad13545822
[ "CC-BY-4.0" ]
null
null
null
exp/utils_visualise.py
zzzace2000/FIDO-saliency
fe0cc51cfe3299405e032c2e10b6f4ad13545822
[ "CC-BY-4.0" ]
1
2020-10-08T07:01:17.000Z
2020-10-08T07:01:17.000Z
# -*- coding: utf-8 -*- """ Some utility functions for visualisation, not documented properly """ from skimage import color import numpy as np import matplotlib.pyplot as plt import matplotlib.cm as cm import pylab from torchvision.utils import make_grid import torch import matplotlib.patches as patches ...
34.431373
109
0.624573
a360f08caff10c87d7e6edca7172a0cd69075388
25,128
py
Python
legacy/adobe_tools/adobe_api.py
gbatye/IT-CPE
60f5ad3b7f7727efada2387db359962240d03e59
[ "Apache-2.0" ]
506
2015-01-02T11:47:38.000Z
2022-03-28T14:21:16.000Z
legacy/adobe_tools/adobe_api.py
gbatye/IT-CPE
60f5ad3b7f7727efada2387db359962240d03e59
[ "Apache-2.0" ]
154
2015-12-09T23:58:03.000Z
2022-02-27T22:48:36.000Z
legacy/adobe_tools/adobe_api.py
gbatye/IT-CPE
60f5ad3b7f7727efada2387db359962240d03e59
[ "Apache-2.0" ]
173
2015-01-25T08:56:03.000Z
2022-03-15T17:33:46.000Z
#!/usr/bin/python # Copyright (c) Facebook, Inc. and its affiliates. """Module to interact with the Adobe User Management API.""" from __future__ import print_function import json import os import platform import random import sys import time try: import jwt import requests except ImportError: print("Miss...
35.441467
79
0.571036
d6276711d4c49a27d2f9562cc7f9e7e4f98eb86d
1,482
py
Python
yt/visualization/tests/test_commons.py
lconaboy/yt
d97c3cf6d7911cd12b8337784d3232068ebc59f6
[ "BSD-3-Clause-Clear" ]
360
2017-04-24T05:06:04.000Z
2022-03-31T10:47:07.000Z
yt/visualization/tests/test_commons.py
chrishavlin/yt
023680e3a7bd1000d601727e02a55e72b4cbdc75
[ "BSD-3-Clause-Clear" ]
2,077
2017-04-20T20:36:07.000Z
2022-03-31T16:39:43.000Z
yt/visualization/tests/test_commons.py
chrishavlin/yt
023680e3a7bd1000d601727e02a55e72b4cbdc75
[ "BSD-3-Clause-Clear" ]
257
2017-04-19T20:52:28.000Z
2022-03-29T12:23:52.000Z
import pytest from yt.visualization._commons import validate_image_name @pytest.mark.parametrize( "name, expected", [ ("noext", "noext.png"), ("nothing.png", "nothing.png"), ("nothing.pdf", "nothing.pdf"), ("version.1.2.3", "version.1.2.3.png"), ], ) def test_default(name,...
30.875
71
0.585695
0d11df603e120f69d1b4d9c103acf1e1a0753272
3,210
py
Python
metapredict/tests/test_uniprot_functionality.py
alexpmagalhaes/metapredict
2041787a4f48d6d7c98fb3d396455d059e67a08e
[ "MIT" ]
5
2021-06-02T16:32:13.000Z
2022-02-02T13:18:35.000Z
metapredict/tests/test_uniprot_functionality.py
alexpmagalhaes/metapredict
2041787a4f48d6d7c98fb3d396455d059e67a08e
[ "MIT" ]
2
2021-08-31T13:13:39.000Z
2022-02-15T22:32:46.000Z
metapredict/tests/test_uniprot_functionality.py
alexpmagalhaes/metapredict
2041787a4f48d6d7c98fb3d396455d059e67a08e
[ "MIT" ]
2
2021-09-21T23:45:56.000Z
2022-02-02T12:01:59.000Z
""" Unit and regression test for the metapredict package. This is extremely underdone at this point... Sorry about that :'( """ # Import package, test suite, and other packages as needed from metapredict import meta from metapredict.metapredict_exceptions import MetapredictError import pytest import sys import os imp...
33.4375
212
0.686293
4b0194beef66d0b5acd486c4a44ea6149ec670d8
13,692
py
Python
desktop/core/ext-py/Twisted/twisted/web/test/test_proxy.py
civascu/hue
82f2de44789ff5a981ed725175bae7944832d1e9
[ "Apache-2.0" ]
19
2015-05-01T19:59:03.000Z
2021-12-09T08:03:16.000Z
desktop/core/ext-py/Twisted/twisted/web/test/test_proxy.py
civascu/hue
82f2de44789ff5a981ed725175bae7944832d1e9
[ "Apache-2.0" ]
1
2018-01-03T15:26:49.000Z
2018-01-03T15:26:49.000Z
desktop/core/ext-py/Twisted/twisted/web/test/test_proxy.py
civascu/hue
82f2de44789ff5a981ed725175bae7944832d1e9
[ "Apache-2.0" ]
30
2015-03-25T19:40:07.000Z
2021-05-28T22:59:26.000Z
# Copyright (c) 2007 Twisted Matrix Laboratories. # See LICENSE for details. """ Test for L{twisted.web.proxy}. """ from twisted.trial.unittest import TestCase from twisted.test.proto_helpers import StringTransportWithDisconnection from twisted.internet.error import ConnectionDone from twisted.web.resource import Re...
33.558824
79
0.625621
6e27c0316208589f74854b8dd45eda05558df267
1,874
py
Python
tabletoprandom/dice/enumdie.py
Kairosite/Tabletop-Randomness
be9d61c5ff29594610e2e1d55b89023c39696263
[ "MIT" ]
null
null
null
tabletoprandom/dice/enumdie.py
Kairosite/Tabletop-Randomness
be9d61c5ff29594610e2e1d55b89023c39696263
[ "MIT" ]
null
null
null
tabletoprandom/dice/enumdie.py
Kairosite/Tabletop-Randomness
be9d61c5ff29594610e2e1d55b89023c39696263
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from typing import Set, List, Final from enum import EnumMeta, IntEnum, Enum, unique, auto from tabletoprandom.abstract.dice import FairDie, NumericDie import random @unique class ElementValue(Enum): FIRE ...
24.025641
61
0.65635
89a565b4b37fda82dbfb4000716bd52de94a5511
1,256
py
Python
tests/integration/test_backward_compatibility/test_cte_distributed.py
chalice19/ClickHouse
2f38e7bc5c2113935ab86260439bb543a1737291
[ "Apache-2.0" ]
8,629
2016-06-14T21:03:01.000Z
2019-09-23T07:46:38.000Z
tests/integration/test_backward_compatibility/test_cte_distributed.py
chalice19/ClickHouse
2f38e7bc5c2113935ab86260439bb543a1737291
[ "Apache-2.0" ]
4,335
2016-06-15T12:58:31.000Z
2019-09-23T11:18:43.000Z
tests/integration/test_backward_compatibility/test_cte_distributed.py
chalice19/ClickHouse
2f38e7bc5c2113935ab86260439bb543a1737291
[ "Apache-2.0" ]
1,700
2016-06-15T09:25:11.000Z
2019-09-23T11:16:38.000Z
import pytest from helpers.cluster import ClickHouseCluster cluster = ClickHouseCluster(__file__, name="cte_distributed") node1 = cluster.add_instance("node1", with_zookeeper=False) node2 = cluster.add_instance( "node2", with_zookeeper=False, image="yandex/clickhouse-server", tag="21.7.3.14", stay...
19.936508
61
0.649682
a16dc1ff4e3a4b009cf917a2d9c01dffc73b3fa6
1,064
py
Python
main.py
Bdev-G/prototipo_01
93d2e918b7c6a70c067664c946529477736e78f1
[ "MIT" ]
null
null
null
main.py
Bdev-G/prototipo_01
93d2e918b7c6a70c067664c946529477736e78f1
[ "MIT" ]
null
null
null
main.py
Bdev-G/prototipo_01
93d2e918b7c6a70c067664c946529477736e78f1
[ "MIT" ]
null
null
null
Player = sprites.create(img(""" . . . . c c c b b b b b . . . . . . c c b 4 4 4 4 4 4 b b b . . . c c 4 4 4 4 4 5 4 4 4 4 b c . . e 4 4 4 4 4 4 4 4 4 5 4 4 e . e b 4 5 4 4 5 4 4 4 4 4 4 4 b c e b 4 4 4 4 4 4 4 4 4 4 5 4 4 e e b b 4 4 4 4 4 ...
34.322581
43
0.425752
b516e59a362cebf032278f26022a2f34d7d715d0
10,118
py
Python
bot/commands.py
meooow25/cp-discord-bot
4d25b51f9dc4dc44105a6cebeeaea9ef1191c8c1
[ "MIT" ]
11
2018-09-03T16:50:25.000Z
2020-07-17T05:27:25.000Z
bot/commands.py
meooow25/cp-discord-bot
4d25b51f9dc4dc44105a6cebeeaea9ef1191c8c1
[ "MIT" ]
5
2018-10-08T00:18:21.000Z
2018-11-26T22:01:40.000Z
bot/commands.py
meooow25/cp-discord-bot
4d25b51f9dc4dc44105a6cebeeaea9ef1191c8c1
[ "MIT" ]
1
2018-10-09T09:30:07.000Z
2018-10-09T09:30:07.000Z
import copy import logging import time from datetime import datetime, timedelta from .discord import Channel from . import command, paginator logger = logging.getLogger(__name__) @command.command(desc='Responds with boop') async def beep(bot, args, message): command.assert_arglen(args, 0, cmd=message.content) ...
39.065637
108
0.639553
ca560d208992489d54ae1679dee20d5427926416
5,841
py
Python
main.py
ArihantChawla/indian-alpr
531dd815f0a5c819b411fd156aabca960d72b7b6
[ "Apache-2.0" ]
null
null
null
main.py
ArihantChawla/indian-alpr
531dd815f0a5c819b411fd156aabca960d72b7b6
[ "Apache-2.0" ]
null
null
null
main.py
ArihantChawla/indian-alpr
531dd815f0a5c819b411fd156aabca960d72b7b6
[ "Apache-2.0" ]
null
null
null
""" Copyright 2018 understand.ai 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 writing, software d...
51.690265
115
0.659819
5dedcf7077e32554e1a637aaa26ff78e8e73abdd
2,187
py
Python
epytope/Data/pssms/epidemix/mat/A_25_10.py
christopher-mohr/epytope
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
[ "BSD-3-Clause" ]
7
2021-02-01T18:11:28.000Z
2022-01-31T19:14:07.000Z
epytope/Data/pssms/epidemix/mat/A_25_10.py
christopher-mohr/epytope
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
[ "BSD-3-Clause" ]
22
2021-01-02T15:25:23.000Z
2022-03-14T11:32:53.000Z
epytope/Data/pssms/epidemix/mat/A_25_10.py
christopher-mohr/epytope
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
[ "BSD-3-Clause" ]
4
2021-05-28T08:50:38.000Z
2022-03-14T11:45:32.000Z
A_25_10 = {0: {'A': -2.7, 'C': -2.1, 'E': 1.9, 'D': 0.2, 'G': 0.0, 'F': -3.1, 'I': -3.0, 'H': 1.5, 'K': -2.3, 'M': -2.0, 'L': -3.5, 'N': -2.2, 'Q': -1.6, 'P': -2.7, 'S': 0.0, 'R': -2.4, 'T': 0.7, 'W': -1.7, 'V': 0.0, 'Y': -2.4}, 1: {'A': -2.6, 'C': -1.2, 'E': -3.0, 'D': -3.1, 'G': -3.5, 'F': -1.9, 'I': 1.1, 'H': -2.2, ...
2,187
2,187
0.282122
4c3c4da8588b734209289e17d11120ad3202becb
5,827
py
Python
main.py
matbocz/InterpolationComparison-DesktopApp
4b76b00a4067506c9626c0bb93b36867d5cacb79
[ "MIT" ]
null
null
null
main.py
matbocz/InterpolationComparison-DesktopApp
4b76b00a4067506c9626c0bb93b36867d5cacb79
[ "MIT" ]
2
2022-01-13T03:47:11.000Z
2022-03-12T00:58:03.000Z
main.py
matbocz/InterpolationComparison-DesktopApp
4b76b00a4067506c9626c0bb93b36867d5cacb79
[ "MIT" ]
null
null
null
"""This is a module for interpolation comparison.""" import sys from PyQt5.QtWidgets import (QApplication, QWidget, QGridLayout, QLabel, QLineEdit, QComboBox, QPushButton, QMessageBox) from PyQt5.QtCore import Qt import interpolation class ApplicationGUI(QWidget): """This is a clas...
32.553073
79
0.569933
2f0de21ee89eff12b95dcb54994376bc69f81289
203
py
Python
platform/core/polyaxon/compiler/managers/job.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
platform/core/polyaxon/compiler/managers/job.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
platform/core/polyaxon/compiler/managers/job.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
from compiler.managers.base import BaseCompileManager from schemas import JobSpecification, kinds class JobCompileManager(BaseCompileManager): KIND = kinds.JOB SPECIFICATION = JobSpecification
25.375
53
0.82266
ba80ac245a0e5a2d03794e5d68fb25fadd0e37b3
1,012
py
Python
backend/server/server/wsgi.py
venkyPy-2019/my_ml_service
c75d8fc060866b43d9a563b7ce652d5ed11007a4
[ "MIT" ]
null
null
null
backend/server/server/wsgi.py
venkyPy-2019/my_ml_service
c75d8fc060866b43d9a563b7ce652d5ed11007a4
[ "MIT" ]
null
null
null
backend/server/server/wsgi.py
venkyPy-2019/my_ml_service
c75d8fc060866b43d9a563b7ce652d5ed11007a4
[ "MIT" ]
1
2021-02-23T10:31:50.000Z
2021-02-23T10:31:50.000Z
""" WSGI config for server project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTIN...
34.896552
318
0.805336
a117f37a8985bd11835be8c111823704d904ebc9
3,034
py
Python
fnmatch/fnmatch.py
CleberPeter/micropython-lib
5ffce0338452e8d1e2cd2790bb5f92b8bcadb49b
[ "PSF-2.0" ]
1
2019-07-30T15:35:46.000Z
2019-07-30T15:35:46.000Z
fnmatch/fnmatch.py
CleberPeter/micropython-lib
5ffce0338452e8d1e2cd2790bb5f92b8bcadb49b
[ "PSF-2.0" ]
null
null
null
fnmatch/fnmatch.py
CleberPeter/micropython-lib
5ffce0338452e8d1e2cd2790bb5f92b8bcadb49b
[ "PSF-2.0" ]
1
2020-11-08T23:35:54.000Z
2020-11-08T23:35:54.000Z
"""Filename matching with shell patterns. fnmatch(FILENAME, PATTERN) matches according to the local convention. fnmatchcase(FILENAME, PATTERN) always takes case in account. The functions operate by translating the pattern into a regular expression. They cache the compiled regular expressions for speed. The function...
28.895238
75
0.566249
3118ee2654b7ef0e1c0697c5234959a7894e5c0e
2,954
py
Python
nmcli/_connection.py
meramsey/nmcli
d2ce0cfbad13cb61bb9f4e1c674a8a9c2ad2f7ed
[ "MIT" ]
1
2022-03-19T05:59:53.000Z
2022-03-19T05:59:53.000Z
nmcli/_connection.py
meramsey/nmcli
d2ce0cfbad13cb61bb9f4e1c674a8a9c2ad2f7ed
[ "MIT" ]
45
2021-01-04T12:05:07.000Z
2021-04-21T14:35:55.000Z
nmcli/_connection.py
meramsey/nmcli
d2ce0cfbad13cb61bb9f4e1c674a8a9c2ad2f7ed
[ "MIT" ]
2
2021-03-26T12:35:07.000Z
2021-05-01T02:15:16.000Z
import re from typing import List, Optional from ._system import SystemCommand, SystemCommandInterface from .data.connection import Connection, ConnectionDetails, ConnectionOptions class ConnectionControlInterface: def __call__(self) -> List[Connection]: raise NotImplementedError def add(self, ...
31.094737
77
0.580907
80921e614cf9bf50f793c69ade6fb64a7122aa1a
3,112
py
Python
python/2015/aoc_07_a.py
nickspoons/adventofcode
4aef222ccc9dcea09b4010d65d5f9cd32683323a
[ "MIT" ]
null
null
null
python/2015/aoc_07_a.py
nickspoons/adventofcode
4aef222ccc9dcea09b4010d65d5f9cd32683323a
[ "MIT" ]
null
null
null
python/2015/aoc_07_a.py
nickspoons/adventofcode
4aef222ccc9dcea09b4010d65d5f9cd32683323a
[ "MIT" ]
null
null
null
""" Advent of Code, 2015: Day 07, a """ import re with open(__file__[:-5] + "_input") as f: inputs = [line.strip() for line in f] CONSTANT = 0 AND = 1 OR = 2 NOT = 3 LSHIFT = 4 RSHIFT = 5 def read(): """ Use regular expressions to read logic gates into a dictionary """ wires = dict() for instructio...
30.811881
77
0.525064
ac030610a492b8ab3ded3ac12616d28ffe94b1d4
1,181
py
Python
tests/test_flightphase.py
ge-flight-analytics/emsPy
763fe0f26ce695fe4814f222da1e7b17079f8e12
[ "MIT" ]
9
2017-07-18T18:02:11.000Z
2020-10-03T04:51:02.000Z
tests/test_flightphase.py
ge-flight-analytics/emsPy
763fe0f26ce695fe4814f222da1e7b17079f8e12
[ "MIT" ]
39
2018-09-20T14:57:10.000Z
2021-07-01T19:50:29.000Z
tests/test_flightphase.py
ge-flight-analytics/emsPy
763fe0f26ce695fe4814f222da1e7b17079f8e12
[ "MIT" ]
8
2017-11-03T05:06:08.000Z
2021-02-23T08:25:18.000Z
import pytest from emspy.query import FlightPhase from mock_connection import MockConnection from mock_ems import MockEMS import pandas as pd @pytest.fixture(scope='session') def query(): c = MockConnection(user='', pwd='') FlightPhaseQuery = FlightPhase(c) return FlightPhaseQuery def test_data_colnames...
24.604167
74
0.707028
760756a4398bbd8beb675a2e9711640bc88bc2cd
3,699
py
Python
examples/provisioning/ble_prov/ble_prov_test.py
lf2050/esp-idf
a45e9985344575a80acb1dc9c12e7bec4d8af401
[ "Apache-2.0" ]
2
2020-09-19T15:30:33.000Z
2020-09-19T15:30:46.000Z
examples/provisioning/ble_prov/ble_prov_test.py
lf2050/esp-idf
a45e9985344575a80acb1dc9c12e7bec4d8af401
[ "Apache-2.0" ]
1
2020-09-14T18:20:07.000Z
2020-09-14T18:23:11.000Z
examples/provisioning/ble_prov/ble_prov_test.py
lf2050/esp-idf
a45e9985344575a80acb1dc9c12e7bec4d8af401
[ "Apache-2.0" ]
1
2021-06-19T15:28:32.000Z
2021-06-19T15:28:32.000Z
#!/usr/bin/env python # # Copyright 2018 Espressif Systems (Shanghai) PTE LTD # # 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 req...
31.347458
118
0.702893
710bb57136b986ac9951dfc79c878181e6d11eb3
606
py
Python
homedisplay/info_transportation/migrations/0005_auto_20150225_2359.py
ojarva/home-info-display
873d022308732baff94d0dc2381cf9dc7dce23b7
[ "BSD-3-Clause" ]
1
2016-11-28T04:35:06.000Z
2016-11-28T04:35:06.000Z
homedisplay/info_transportation/migrations/0005_auto_20150225_2359.py
ojarva/home-info-display
873d022308732baff94d0dc2381cf9dc7dce23b7
[ "BSD-3-Clause" ]
160
2015-01-01T20:59:29.000Z
2016-04-25T13:36:52.000Z
homedisplay/info_transportation/migrations/0005_auto_20150225_2359.py
ojarva/home-info-display
873d022308732baff94d0dc2381cf9dc7dce23b7
[ "BSD-3-Clause" ]
1
2015-02-25T21:24:01.000Z
2015-02-25T21:24:01.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('info_transportation', '0004_auto_20150225_2202'), ] operations = [ migrations.AddField( model_name='line', ...
24.24
63
0.59901