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
f6bd4d588241d1dc77c6591b3c2c3f80f0410cf6
2,737
py
Python
modules/data_handler/__init__.py
tamslo/koala
9f8bb0e201bd9a773752f1fd70ecbfc2fe98eb5c
[ "MIT" ]
null
null
null
modules/data_handler/__init__.py
tamslo/koala
9f8bb0e201bd9a773752f1fd70ecbfc2fe98eb5c
[ "MIT" ]
null
null
null
modules/data_handler/__init__.py
tamslo/koala
9f8bb0e201bd9a773752f1fd70ecbfc2fe98eb5c
[ "MIT" ]
null
null
null
import os import yaml import json import modules.file_utils as file_utils from .instance_handler import InstanceHandler from .instances.experiment import Experiment from .instances.dataset import Dataset from .cache import Cache
48.017544
91
0.679576
f6bfbf21f0ab05b2cba9ffc3d4de3d8629a8d0b9
7,512
py
Python
vmock/methodmock.py
vburenin/vmock
8af296938328a1178418e479cb60a008111eb1d3
[ "MIT" ]
1
2015-07-04T05:57:45.000Z
2015-07-04T05:57:45.000Z
vmock/methodmock.py
vburenin/vmock
8af296938328a1178418e479cb60a008111eb1d3
[ "MIT" ]
null
null
null
vmock/methodmock.py
vburenin/vmock
8af296938328a1178418e479cb60a008111eb1d3
[ "MIT" ]
null
null
null
"""MethodMock class that keeps method data. """ import inspect import functools from vmock import matchers from vmock.mockerrors import CallSequenceError from vmock.mockerrors import InterfaceError from vmock.mockerrors import UnexpectedCall
34.939535
79
0.600905
f6c0e78179bef616d68fd16014e74c5008efe77d
2,532
py
Python
in.py
dlinsley/youtube-resource
82ef203c292a6a6ceb9ac84a9931f1aeec1ebdce
[ "MIT" ]
null
null
null
in.py
dlinsley/youtube-resource
82ef203c292a6a6ceb9ac84a9931f1aeec1ebdce
[ "MIT" ]
null
null
null
in.py
dlinsley/youtube-resource
82ef203c292a6a6ceb9ac84a9931f1aeec1ebdce
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from __future__ import unicode_literals import yt_dlp import json import sys import os destination_dir_str = sys.argv[1] resource_config = json.load(sys.stdin) try: os.makedirs(destination_dir_str) except FileExistsError: pass os.chdir(destination_dir_str) ydl_output = MyLogger() ydl...
33.315789
100
0.644945
f6c1cb6598ac1209aec6a6d526452c0ee83bb0ea
4,579
py
Python
ossreport/printer/printer.py
craftslab/ossreport
7c60963af28e9cc22a4c107c58b697e02261d105
[ "Apache-2.0" ]
null
null
null
ossreport/printer/printer.py
craftslab/ossreport
7c60963af28e9cc22a4c107c58b697e02261d105
[ "Apache-2.0" ]
null
null
null
ossreport/printer/printer.py
craftslab/ossreport
7c60963af28e9cc22a4c107c58b697e02261d105
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import openpyxl import os from reportlab.lib import colors from reportlab.lib.styles import getSampleStyleSheet from reportlab.platypus import Paragraph, SimpleDocTemplate, Table from ossreport.proto.proto import Component, File, Level, Risk risk_head = { "A": Risk.__name__.capitalize()...
30.939189
88
0.540293
f6c2888bef0b0d4bea8c7f3b58dc3320eb64f8f4
3,411
py
Python
pydmap_read.py
loxodes/SuperDARN_pydmap_write
63b08e77a7725ff8e73e3d011880ca1b71649ce1
[ "MIT" ]
null
null
null
pydmap_read.py
loxodes/SuperDARN_pydmap_write
63b08e77a7725ff8e73e3d011880ca1b71649ce1
[ "MIT" ]
null
null
null
pydmap_read.py
loxodes/SuperDARN_pydmap_write
63b08e77a7725ff8e73e3d011880ca1b71649ce1
[ "MIT" ]
null
null
null
# script for reading in dmap strings over a socket into a dictionary # 7/1/2015 # jon klein, jtklein@alaska.edu import numpy as np import pdb import socket import time import json import datetime import time DATACODE = 33 DATACHAR = 1 DATASHORT = 2 DATAINT = 3 DATAFLOAT = 4 DATADOUBLE = 8 DATASTRING = 9 DATALONG = 1...
24.021127
95
0.602756
f6c2acd218cca04a11f0f3775ecde0c74f8938eb
1,179
py
Python
transformer-openai/parse_output.py
fredriko/tweet-stance-prediction
f12cf924db7c947d5b681c01f492da029c08c415
[ "MIT" ]
109
2019-01-16T01:47:34.000Z
2022-03-07T08:02:45.000Z
transformer-openai/parse_output.py
fredriko/tweet-stance-prediction
f12cf924db7c947d5b681c01f492da029c08c415
[ "MIT" ]
2
2019-11-04T07:15:16.000Z
2020-09-16T18:45:40.000Z
transformer-openai/parse_output.py
fredriko/tweet-stance-prediction
f12cf924db7c947d5b681c01f492da029c08c415
[ "MIT" ]
65
2019-01-20T20:51:47.000Z
2022-03-27T15:50:46.000Z
import pandas as pd import sys if __name__ == "__main__": test_path, pred_path, out_path = sys.argv[1:4] topic = None if len(sys.argv) > 4: topic = sys.argv[4] output_predictions(test_path, pred_path, out_path, topic)
39.3
90
0.631043
f6c39ed6dcaa6f4e4a1e00abaa066ab255bcf56d
1,333
py
Python
entifyfishing_client/models/category.py
kairntech/entifyfishing-client
10a86166cf7895d681fe7e4adf0f01622b48dcb8
[ "Apache-2.0" ]
null
null
null
entifyfishing_client/models/category.py
kairntech/entifyfishing-client
10a86166cf7895d681fe7e4adf0f01622b48dcb8
[ "Apache-2.0" ]
null
null
null
entifyfishing_client/models/category.py
kairntech/entifyfishing-client
10a86166cf7895d681fe7e4adf0f01622b48dcb8
[ "Apache-2.0" ]
null
null
null
from typing import Any, Dict, Type, TypeVar, Union import attr from ..types import UNSET, Unset T = TypeVar("T", bound="Category")
22.59322
63
0.546137
f6c538bf317f0f8bf220aa7aa6e223706398ea78
12,890
py
Python
gen.py
roj4s/FSRCNN-TensorFlow
17fec785296a4c125d37432a176d523040a7a26d
[ "MIT" ]
9
2017-10-19T14:20:39.000Z
2022-02-08T09:45:28.000Z
gen.py
roj4s/FSRCNN-TensorFlow
17fec785296a4c125d37432a176d523040a7a26d
[ "MIT" ]
1
2019-05-14T08:14:29.000Z
2019-05-14T08:14:29.000Z
gen.py
roj4s/FSRCNN-TensorFlow
17fec785296a4c125d37432a176d523040a7a26d
[ "MIT" ]
7
2017-08-06T10:49:46.000Z
2021-10-03T04:33:39.000Z
import sys import math from itertools import islice radius = 1 if __name__ == '__main__': main()
47.389706
236
0.482933
f6c590d35cefe876370b91aaeb9f5e4722545073
451
py
Python
library/migrations/0011_auto_20200703_0906.py
moonbirddk/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
2
2016-09-02T12:45:31.000Z
2018-02-10T10:18:11.000Z
library/migrations/0011_auto_20200703_0906.py
Socialsquare/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
17
2020-03-24T15:58:05.000Z
2022-02-10T08:08:57.000Z
library/migrations/0011_auto_20200703_0906.py
moonbirddk/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
1
2018-01-05T08:02:18.000Z
2018-01-05T08:02:18.000Z
# Generated by Django 2.2.8 on 2020-07-03 09:06 from django.db import migrations, models
23.736842
100
0.629712
f6c6629b33bb8ab2ddebf182d46d07ca242a6b8c
10,568
py
Python
SAFEcomments/safe_comments.py
kittypr/SAFEcomments
5157335941477d58492538ffe80fbe4aaa749932
[ "MIT" ]
null
null
null
SAFEcomments/safe_comments.py
kittypr/SAFEcomments
5157335941477d58492538ffe80fbe4aaa749932
[ "MIT" ]
null
null
null
SAFEcomments/safe_comments.py
kittypr/SAFEcomments
5157335941477d58492538ffe80fbe4aaa749932
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import os from lxml import etree from SAFEcomments import annotation from SAFEcomments import archive_handler from SAFEcomments import compare from SAFEcomments import odt_namespaces exact_similarity = 0.6 fuzzy_similarity = 0.6 parser = argparse.ArgumentParser(description='T...
46.968889
177
0.674962
f6c7c421ad38800a15857692e302afbb85bc977e
18,997
py
Python
musegan.py
vab10266/wolfGANg_Vaud
254634cd2eb9043d282236d3af86ba7938d92319
[ "MIT" ]
null
null
null
musegan.py
vab10266/wolfGANg_Vaud
254634cd2eb9043d282236d3af86ba7938d92319
[ "MIT" ]
null
null
null
musegan.py
vab10266/wolfGANg_Vaud
254634cd2eb9043d282236d3af86ba7938d92319
[ "MIT" ]
null
null
null
import time import argparse from copy import deepcopy from progress.bar import IncrementalBar import numpy as np import torch from torch import nn import torch.nn.functional as F import torch.optim as optim from torchvision import utils as vutils from itertools import chain from gan.generator import MuseGenerator from ...
44.804245
155
0.549245
f6cad5ab473aa63a7aa0c5477b6f59c7555c512a
304
py
Python
setup.py
techborn/pIRC
cb866e307e082947ef209bca88d01706311552c3
[ "MIT" ]
null
null
null
setup.py
techborn/pIRC
cb866e307e082947ef209bca88d01706311552c3
[ "MIT" ]
null
null
null
setup.py
techborn/pIRC
cb866e307e082947ef209bca88d01706311552c3
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='pIRC', version='0.5.5', description='A light, customizable python-based IRC bot library.', url='https://github.com/techborn/pIRC', author='Techborn', author_email='unborntech@pm.me', license='Custom', packages=['pIRC'])
27.636364
72
0.641447
f6cb8c44cdef8528ecf631c976c8504ece69afaf
2,880
py
Python
company/tests/test_emails.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
1
2021-11-06T12:08:26.000Z
2021-11-06T12:08:26.000Z
company/tests/test_emails.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
null
null
null
company/tests/test_emails.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
null
null
null
from django.db.models import signals from unittest import mock from unittest.mock import ANY, Mock import factory import pytest from django.conf import settings from company.email import CollaboratorNotification, OwnershipChangeNotification from .factories import CollaboratorInviteFactory, OwnershipInviteFactory ...
33.103448
79
0.782639
f6cbb638c7d86c902db1e8bf832a0ff78bbdb70f
523
py
Python
citybuilder/core.py
Tankernn/citybuilder
aee8ac217d7371df854a151bab4f5345ff1cd9b7
[ "Apache-2.0" ]
null
null
null
citybuilder/core.py
Tankernn/citybuilder
aee8ac217d7371df854a151bab4f5345ff1cd9b7
[ "Apache-2.0" ]
null
null
null
citybuilder/core.py
Tankernn/citybuilder
aee8ac217d7371df854a151bab4f5345ff1cd9b7
[ "Apache-2.0" ]
null
null
null
import yaml import _thread from . import server import time config = yaml.load(open("config/game.yaml"))['game'] main_loop.last_tick = time.time() if __name__ == '__main__': _thread.start_new_thread(run, ()) while 1: main_loop()
21.791667
56
0.661568
f6cbe6216c1d3065e771a051dc775fda5c1d5d09
14,266
py
Python
dart_backend/Components/Calibration/EllipseUtils.py
Akkarin007/TeamProject-WiSe-DartImageProcessing
14ecabb795bbda3c5158ce92750c12baae147294
[ "MIT" ]
null
null
null
dart_backend/Components/Calibration/EllipseUtils.py
Akkarin007/TeamProject-WiSe-DartImageProcessing
14ecabb795bbda3c5158ce92750c12baae147294
[ "MIT" ]
null
null
null
dart_backend/Components/Calibration/EllipseUtils.py
Akkarin007/TeamProject-WiSe-DartImageProcessing
14ecabb795bbda3c5158ce92750c12baae147294
[ "MIT" ]
null
null
null
import cv2 import numpy as np import math import sys from .Utils import *
42.082596
156
0.589724
f6ce139e91ce806c7fc0cc9832e37d0e3f9265fe
279
py
Python
arlobot_common/src/common/utils.py
tslator/arlobot_tx2
5b6b0ead86e54ec7ba5664f32263a1c8c27249c9
[ "MIT" ]
null
null
null
arlobot_common/src/common/utils.py
tslator/arlobot_tx2
5b6b0ead86e54ec7ba5664f32263a1c8c27249c9
[ "MIT" ]
null
null
null
arlobot_common/src/common/utils.py
tslator/arlobot_tx2
5b6b0ead86e54ec7ba5664f32263a1c8c27249c9
[ "MIT" ]
null
null
null
import rospy # Wraps Rate so that the hz parameter can be retrieved ''' class RateWrapper(rospy.Rate): def __init__(self, rate): self.super(self, RateWrapper).__init__(rate) self._hz = rate @attr.getter def Rate(self): return self._hz '''
17.4375
54
0.641577
f6ce9204eef4f76cb6594dc3744ddcbcbae73ea5
720
py
Python
dms/exceptions/__init__.py
zhmsg/dms
3ac2b71c4a83ac721987c6f5a2f81bc0618ceca2
[ "MIT" ]
null
null
null
dms/exceptions/__init__.py
zhmsg/dms
3ac2b71c4a83ac721987c6f5a2f81bc0618ceca2
[ "MIT" ]
12
2015-09-18T01:19:28.000Z
2021-12-13T19:51:10.000Z
dms/exceptions/__init__.py
zhmsg/dms
3ac2b71c4a83ac721987c6f5a2f81bc0618ceca2
[ "MIT" ]
1
2017-06-30T08:11:10.000Z
2017-06-30T08:11:10.000Z
# !/usr/bin/env python # coding: utf-8 __author__ = 'zhouhenglc'
18.947368
61
0.593056
f6ceb83178b7c8b4ff2b9f133bd2f18c84b420ff
247
py
Python
output/models/nist_data/atomic/any_uri/schema_instance/nistschema_sv_iv_atomic_any_uri_pattern_1_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/atomic/any_uri/schema_instance/nistschema_sv_iv_atomic_any_uri_pattern_1_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/atomic/any_uri/schema_instance/nistschema_sv_iv_atomic_any_uri_pattern_1_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.nist_data.atomic.any_uri.schema_instance.nistschema_sv_iv_atomic_any_uri_pattern_1_xsd.nistschema_sv_iv_atomic_any_uri_pattern_1 import NistschemaSvIvAtomicAnyUriPattern1 __all__ = [ "NistschemaSvIvAtomicAnyUriPattern1", ]
41.166667
189
0.890688
f6cf14095733225d606bb01959662b8b0abc07a2
1,011
py
Python
koala/message/message.py
egmkang/koala
70ea68c0d4380242c61faa8a6f023fa248049ec8
[ "MIT" ]
15
2021-06-02T12:43:26.000Z
2022-01-24T19:14:02.000Z
koala/message/message.py
egmkang/flash
70ea68c0d4380242c61faa8a6f023fa248049ec8
[ "MIT" ]
1
2021-06-14T10:08:46.000Z
2021-06-14T10:08:46.000Z
koala/message/message.py
egmkang/flash
70ea68c0d4380242c61faa8a6f023fa248049ec8
[ "MIT" ]
1
2021-01-20T06:38:01.000Z
2021-01-20T06:38:01.000Z
from koala.typing import * from koala.message.base import JsonMessage from dataclasses import dataclass
21.0625
70
0.678536
f6d12a9824b023acf8f17981d556e586819b533f
389
py
Python
flask/Docs/10_request_object.py
shubhamnag14/Python-Documents
d3fee0ad90232b413f6ac1b562588fb255b79e42
[ "Apache-2.0" ]
2
2020-11-27T13:21:05.000Z
2021-04-19T21:14:21.000Z
flask/Docs/10_request_object.py
shubhamnag14/Python-Documents
d3fee0ad90232b413f6ac1b562588fb255b79e42
[ "Apache-2.0" ]
null
null
null
flask/Docs/10_request_object.py
shubhamnag14/Python-Documents
d3fee0ad90232b413f6ac1b562588fb255b79e42
[ "Apache-2.0" ]
1
2021-06-27T20:31:42.000Z
2021-06-27T20:31:42.000Z
from flask import Flask, request app = Flask(__name__)
25.933333
60
0.588689
f6d2d74f3f54c4f51662dfe6138f6ef14972234c
1,261
py
Python
src/largest_rectangle.py
kemingy/daily-coding-problem
0839311ec0848f8f0b4a9edba817ecceb8f944a0
[ "Unlicense" ]
3
2019-03-06T03:14:56.000Z
2020-01-07T16:00:48.000Z
src/largest_rectangle.py
kemingy/daily-coding-problem
0839311ec0848f8f0b4a9edba817ecceb8f944a0
[ "Unlicense" ]
null
null
null
src/largest_rectangle.py
kemingy/daily-coding-problem
0839311ec0848f8f0b4a9edba817ecceb8f944a0
[ "Unlicense" ]
null
null
null
# Given an N by M matrix consisting only of 1's and 0's, find the largest # rectangle containing only 1's and return its area. # For example, given the following matrix: # [[1, 0, 0, 0], # [1, 0, 1, 1], # [1, 0, 1, 1], # [0, 1, 0, 0]] # Return 4. if __name__ == "__main__": matrix = [[1, 0, 0...
24.25
74
0.436955
f6d2e5c6ff68cb1bdb35e291b71a6f58705d4f91
7,207
py
Python
anodos/swarm/models.py
abezpalov/anodos.ru
6b905eb44b6f4a54f6e199b80cd714522deed277
[ "MIT" ]
2
2020-04-26T07:28:38.000Z
2022-03-31T14:24:44.000Z
anodos/swarm/models.py
abezpalov/anodos.ru
6b905eb44b6f4a54f6e199b80cd714522deed277
[ "MIT" ]
9
2017-12-01T04:43:31.000Z
2022-01-01T13:26:04.000Z
anodos/swarm/models.py
abezpalov/anodos.ru
6b905eb44b6f4a54f6e199b80cd714522deed277
[ "MIT" ]
null
null
null
import os import uuid from django.db import models from django.conf import settings from django.utils import timezone
29.780992
100
0.579159
f6d41864018d10abd6471ccdb2d9fb3efa2863e0
2,675
py
Python
inventory/inv_admin/item_admin.py
kaajavi/itsventory
0543f402e124828c2af662f73361c68fc45002a2
[ "Apache-2.0" ]
null
null
null
inventory/inv_admin/item_admin.py
kaajavi/itsventory
0543f402e124828c2af662f73361c68fc45002a2
[ "Apache-2.0" ]
null
null
null
inventory/inv_admin/item_admin.py
kaajavi/itsventory
0543f402e124828c2af662f73361c68fc45002a2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' # Model admin <= https://docs.djangoproject.com/es/1.10/_modules/django/contrib/admin/options/#ModelAdmin In the after link, see you all configuration and options about model admin. Is very important understand the getters: + e.g.: get_form(self, request, obj=None,...
33.860759
264
0.585794
f6d505231ba879f61e9253759941879591d04805
2,098
py
Python
raxcli/actions.py
racker/python-raxcli
c59d7ef9abca0a7cea56882113bd71feb6c5c6ef
[ "Apache-2.0" ]
1
2020-01-16T09:45:28.000Z
2020-01-16T09:45:28.000Z
raxcli/actions.py
racker/python-raxcli
c59d7ef9abca0a7cea56882113bd71feb6c5c6ef
[ "Apache-2.0" ]
null
null
null
raxcli/actions.py
racker/python-raxcli
c59d7ef9abca0a7cea56882113bd71feb6c5c6ef
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Rackspace # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the...
36.807018
79
0.606292
f6d563aa962d8c0e6ddaba79c71c22e3395f937e
5,146
py
Python
backend/app/api/api_v1/endpoints/cars.py
rufusnufus/BTSParking
3bb6e7fd20943f258e297428ab1624c4f2786444
[ "MIT" ]
2
2021-11-13T08:05:14.000Z
2021-12-02T11:36:11.000Z
backend/app/api/api_v1/endpoints/cars.py
rufusnufus/BTSParking
3bb6e7fd20943f258e297428ab1624c4f2786444
[ "MIT" ]
44
2021-11-23T10:06:11.000Z
2021-12-18T07:23:22.000Z
backend/app/api/api_v1/endpoints/cars.py
rufusnufus/BTSParking
3bb6e7fd20943f258e297428ab1624c4f2786444
[ "MIT" ]
null
null
null
from fastapi import APIRouter, Body, Depends, HTTPException, Response, status from fastapi.encoders import jsonable_encoder from app.core.security import cookie_is_none, oauth2_scheme from app.logs import logger from app.models.car import Car as ModelCar from app.models.user import User as ModelUser from app.schemas.c...
34.536913
85
0.570152
f6d776568eca974a8ecbb4a81cd83bc189940526
121
py
Python
output/models/ms_data/regex/re_e13_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ms_data/regex/re_e13_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ms_data/regex/re_e13_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.ms_data.regex.re_e13_xsd.re_e13 import ( Regex, Doc, ) __all__ = [ "Regex", "Doc", ]
12.1
59
0.603306
f6d7eedf8e35cf51f0468c77344e42c3f74d4297
15,170
py
Python
python/paddle/fluid/contrib/slim/graph/graph.py
wanghaoshuang/Paddle
8c19599bc640f51b279d95054bbd5eccde210c0c
[ "Apache-2.0" ]
2
2019-04-03T05:36:17.000Z
2020-04-29T03:38:54.000Z
python/paddle/fluid/contrib/slim/graph/graph.py
wanghaoshuang/Paddle
8c19599bc640f51b279d95054bbd5eccde210c0c
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/contrib/slim/graph/graph.py
wanghaoshuang/Paddle
8c19599bc640f51b279d95054bbd5eccde210c0c
[ "Apache-2.0" ]
3
2019-01-07T06:50:29.000Z
2019-03-13T08:48:23.000Z
# Copyright (c) 2018 PaddlePaddle Authors. 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 appli...
31.213992
80
0.57416
f6da820c4abc9ef5201cde172e227e1dceff3e33
117
py
Python
main.py
cgmon/code-challenge
07d058ca679d8f2094a5f61dcd8b32baafbba8a5
[ "Apache-2.0" ]
null
null
null
main.py
cgmon/code-challenge
07d058ca679d8f2094a5f61dcd8b32baafbba8a5
[ "Apache-2.0" ]
null
null
null
main.py
cgmon/code-challenge
07d058ca679d8f2094a5f61dcd8b32baafbba8a5
[ "Apache-2.0" ]
1
2021-02-26T08:22:11.000Z
2021-02-26T08:22:11.000Z
from utils import lazy_iterator, iterator import sys if("-s" in sys.argv): lazy_iterator() else: iterator()
16.714286
42
0.700855
f6da904f7f681efcd992cf44a70eccaeb7874412
133
py
Python
random/d.py
tjguk/winsys
346a5bc0ad74f3f70b1099e714b544a6f008b72c
[ "MIT" ]
51
2015-01-14T09:23:48.000Z
2021-11-08T12:53:54.000Z
random/d.py
tjguk/winsys
346a5bc0ad74f3f70b1099e714b544a6f008b72c
[ "MIT" ]
2
2019-05-30T12:34:40.000Z
2020-06-13T20:00:55.000Z
random/d.py
tjguk/winsys
346a5bc0ad74f3f70b1099e714b544a6f008b72c
[ "MIT" ]
15
2015-04-21T19:48:48.000Z
2020-07-29T19:30:43.000Z
#!python3 import os, sys print(sys.executable) from winsys import fs, dialogs print(dialogs.dialog("abc", ("def", ["1", "2", "3"])))
22.166667
54
0.661654
f6db0c0fe44871d66aec1af61af13db4d5dd28cf
555
py
Python
backend/cubes/migrations/0008_auto_20200729_1234.py
landdafku11/mobile-backend
3f3328afd81f85f90170a57689af72f8f705b8a3
[ "MIT" ]
null
null
null
backend/cubes/migrations/0008_auto_20200729_1234.py
landdafku11/mobile-backend
3f3328afd81f85f90170a57689af72f8f705b8a3
[ "MIT" ]
null
null
null
backend/cubes/migrations/0008_auto_20200729_1234.py
landdafku11/mobile-backend
3f3328afd81f85f90170a57689af72f8f705b8a3
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-07-29 04:34 from django.db import migrations, models
23.125
50
0.585586
f6ddf629e795a6505fd5e3933f0fe8bde89f8a86
4,438
py
Python
src/mpdb_api/views.py
casol/MotionPictureDB-API
478e73726f40a41fea2de88f6441f5c3ecd8dd68
[ "MIT" ]
null
null
null
src/mpdb_api/views.py
casol/MotionPictureDB-API
478e73726f40a41fea2de88f6441f5c3ecd8dd68
[ "MIT" ]
7
2020-06-06T01:08:08.000Z
2021-06-10T19:37:35.000Z
src/mpdb_api/views.py
casol/MotionPictureDB-API
478e73726f40a41fea2de88f6441f5c3ecd8dd68
[ "MIT" ]
null
null
null
from rest_framework import permissions, viewsets from mpdb_api.filters import CustomSearchFilter from users.models import CustomUser from mpdb_api.models import Comment, Movie, Watchlist, Favorite, UserRating from mpdb_api.permissions import IsOwnerOrReadOnly, IsAdminOrReadOnly from mpdb_api.serializers import ( C...
24.655556
75
0.681839
f6de152204ab9a0e887e32daa4b8b1a96f2cbbad
37
py
Python
login.py
JOHN-XW/test007
4aa258010591c2f697fa40fc28dcaa28fe83a893
[ "MIT" ]
null
null
null
login.py
JOHN-XW/test007
4aa258010591c2f697fa40fc28dcaa28fe83a893
[ "MIT" ]
null
null
null
login.py
JOHN-XW/test007
4aa258010591c2f697fa40fc28dcaa28fe83a893
[ "MIT" ]
null
null
null
num1=1 num2=2 num3=3 num4=4 num5=100
6.166667
8
0.72973
f6df525bd0becdd17eea24b4afd64de5fe57d9ff
1,359
py
Python
server/server.py
wooky/xtremettt
e8088fce6ddc8a01ce9530a6bb5eb4434328bef5
[ "WTFPL" ]
null
null
null
server/server.py
wooky/xtremettt
e8088fce6ddc8a01ce9530a6bb5eb4434328bef5
[ "WTFPL" ]
null
null
null
server/server.py
wooky/xtremettt
e8088fce6ddc8a01ce9530a6bb5eb4434328bef5
[ "WTFPL" ]
null
null
null
import SocketServer #Stolen from https://gist.github.com/pklaus/c4c37152e261a9e9331f god bless
29.543478
96
0.70493
f6df8963235e108bc0bff3c2625f3b6d7e38a0ef
6,634
py
Python
autolens/lens/plotters/sensitivity_fit_plotters.py
AshKelly/PyAutoLens
043795966338a655339e61782253ad67cc3c14e6
[ "MIT" ]
null
null
null
autolens/lens/plotters/sensitivity_fit_plotters.py
AshKelly/PyAutoLens
043795966338a655339e61782253ad67cc3c14e6
[ "MIT" ]
null
null
null
autolens/lens/plotters/sensitivity_fit_plotters.py
AshKelly/PyAutoLens
043795966338a655339e61782253ad67cc3c14e6
[ "MIT" ]
null
null
null
from matplotlib import pyplot as plt from autolens.data.array.plotters import plotter_util from autolens.lens.plotters import lens_plotter_util def plot_fit_subplot( fit, should_plot_mask=True, extract_array_from_mask=False, zoom_around_mask=False, positions=None, should_plot_image_plane_pix=True, ...
55.747899
127
0.763793
f6e15a7ff5904b518c1e697c2b7f7bd499819849
793
py
Python
boards/tests/test_cell.py
gcmac16/deeptoe
d92ffef553a03640479fb0dcd5e6fa1f4e6d1cd1
[ "MIT" ]
null
null
null
boards/tests/test_cell.py
gcmac16/deeptoe
d92ffef553a03640479fb0dcd5e6fa1f4e6d1cd1
[ "MIT" ]
null
null
null
boards/tests/test_cell.py
gcmac16/deeptoe
d92ffef553a03640479fb0dcd5e6fa1f4e6d1cd1
[ "MIT" ]
null
null
null
import pytest from ..cell import Cell from ..exceptions import CellOccupiedError
14.418182
42
0.553594
f6e32f3fa61806614f5f5e9170af8b91f5de2f34
3,065
py
Python
app.py
mariosky/fulltext-search
873fa9f6233ad60a5caf09558fed9cf8e3e13c6e
[ "MIT" ]
1
2021-05-26T15:43:29.000Z
2021-05-26T15:43:29.000Z
app.py
mariosky/fulltext-search
873fa9f6233ad60a5caf09558fed9cf8e3e13c6e
[ "MIT" ]
null
null
null
app.py
mariosky/fulltext-search
873fa9f6233ad60a5caf09558fed9cf8e3e13c6e
[ "MIT" ]
null
null
null
from flask import Flask, request from flask_httpauth import HTTPBasicAuth from flaskr.title_search import get_title_content from werkzeug.security import generate_password_hash, check_password_hash from redisearch import Client, Query, TextField, IndexDefinition import redis from redis import ResponseError import json ...
23.945313
108
0.630669
f6e3b5434694dec731a462ebd8a18fdc17ccf073
1,044
py
Python
lcm/lcm_optimal_euclidean.py
mingrammer/funmath
c9b6105c0058519e8ed3c7ce155030b4ecdfd3db
[ "MIT" ]
106
2017-07-15T18:48:56.000Z
2021-03-10T07:45:06.000Z
lcm/lcm_optimal_euclidean.py
stzminjae/funmath
3319b8ccfb67346a410bc2e40ca3398288c03244
[ "MIT" ]
7
2017-07-16T01:48:37.000Z
2018-02-16T12:57:37.000Z
lcm/lcm_optimal_euclidean.py
stzminjae/funmath
3319b8ccfb67346a410bc2e40ca3398288c03244
[ "MIT" ]
13
2017-07-15T19:47:00.000Z
2020-10-19T08:17:34.000Z
def lcm_optimal_euclidean(a: int, b: int) -> int: """Return a LCM (Lowest Common Multiple) of given two integers using euclidean algorithm This function uses euclidean algorithm to get LCM of two integers. The LCM can be obtained by (a * b) / gcd(a, b), so we can use euclidean algorithm to get LCM by (a ...
29.828571
114
0.60728
f6e3fa4794dda049119dfb9a8ab2d410227d18eb
1,135
py
Python
day-03/part-1/youyoun.py
TPXP/adventofcode-2019
ee653d6bfb510d14f2c2b3efc730d328c16b3f71
[ "MIT" ]
8
2019-12-01T08:56:46.000Z
2019-12-05T21:21:12.000Z
day-03/part-1/youyoun.py
TPXP/adventofcode-2019
ee653d6bfb510d14f2c2b3efc730d328c16b3f71
[ "MIT" ]
10
2019-11-25T09:56:20.000Z
2021-05-10T19:57:48.000Z
day-03/part-1/youyoun.py
TPXP/adventofcode-2019
ee653d6bfb510d14f2c2b3efc730d328c16b3f71
[ "MIT" ]
5
2019-12-01T08:19:57.000Z
2020-11-23T09:50:19.000Z
from tool.runners.python import SubmissionPy
29.868421
66
0.462555
f6e3fc4beae8b1f7a433dcce7cb12b7d34338dc4
5,104
py
Python
niftynet/contrib/regression_weighted_sampler/isample_regression.py
elias-1/NiftyNet
05cd2ffbff5043d9a40b524a6d72f6bd5cd072d2
[ "Apache-2.0" ]
2
2019-03-25T18:50:47.000Z
2019-10-10T01:45:02.000Z
niftynet/contrib/regression_weighted_sampler/isample_regression.py
elias-1/NiftyNet
05cd2ffbff5043d9a40b524a6d72f6bd5cd072d2
[ "Apache-2.0" ]
null
null
null
niftynet/contrib/regression_weighted_sampler/isample_regression.py
elias-1/NiftyNet
05cd2ffbff5043d9a40b524a6d72f6bd5cd072d2
[ "Apache-2.0" ]
2
2018-05-13T14:54:48.000Z
2018-05-26T16:08:09.000Z
import os import tensorflow as tf from niftynet.application.regression_application import \ RegressionApplication, SUPPORTED_INPUT from niftynet.engine.sampler_uniform import UniformSampler from niftynet.engine.sampler_weighted import WeightedSampler from niftynet.engine.application_variables import NETWORK_OUTPU...
43.623932
75
0.651646
f6e7e8e4509bf31d9f510447d795576bf80ae64d
723
py
Python
observation/status.py
nosrio/pytun
56ab9e216ccff57d6280835e20ccce7e062d39b8
[ "Apache-2.0" ]
1
2020-05-08T20:11:25.000Z
2020-05-08T20:11:25.000Z
observation/status.py
nosrio/pytun
56ab9e216ccff57d6280835e20ccce7e062d39b8
[ "Apache-2.0" ]
3
2020-11-10T12:17:30.000Z
2021-06-04T16:17:32.000Z
observation/status.py
nosrio/pytun
56ab9e216ccff57d6280835e20ccce7e062d39b8
[ "Apache-2.0" ]
1
2021-11-16T16:11:01.000Z
2021-11-16T16:11:01.000Z
import datetime from threading import RLock
30.125
93
0.607192
f6e9ac097d290b36827d579227b511e7d239d092
2,037
py
Python
mayan/apps/navigation/widgets.py
Dave360-crypto/mayan-edms
9cd37537461347f79ff0429e4b8b16fd2446798d
[ "Apache-2.0" ]
3
2020-02-03T11:58:51.000Z
2020-10-20T03:52:21.000Z
mayan/apps/navigation/widgets.py
Dave360-crypto/mayan-edms
9cd37537461347f79ff0429e4b8b16fd2446798d
[ "Apache-2.0" ]
null
null
null
mayan/apps/navigation/widgets.py
Dave360-crypto/mayan-edms
9cd37537461347f79ff0429e4b8b16fd2446798d
[ "Apache-2.0" ]
2
2020-10-24T11:10:06.000Z
2021-03-03T20:05:38.000Z
from __future__ import absolute_import import urlparse from django.conf import settings from django.core.exceptions import PermissionDenied from django.core.urlresolvers import reverse from django.template import RequestContext, Variable from django.template.defaultfilters import capfirst from django.utils.safestring...
39.173077
326
0.704467
f6e9d127c928e003e7e3f6cc2bec25c1baf82144
3,237
py
Python
src/toja/views/contribute.py
scmmmh/the-old-joke-archive
cfc842de94d092aa43de794154bea7e5edd97b16
[ "MIT" ]
null
null
null
src/toja/views/contribute.py
scmmmh/the-old-joke-archive
cfc842de94d092aa43de794154bea7e5edd97b16
[ "MIT" ]
12
2019-12-26T17:40:56.000Z
2022-02-26T17:21:06.000Z
src/toja/views/contribute.py
scmmmh/the-old-joke-archive
cfc842de94d092aa43de794154bea7e5edd97b16
[ "MIT" ]
null
null
null
from copy import deepcopy from math import ceil from pyramid.httpexceptions import HTTPForbidden from pyramid.view import view_config from sqlalchemy import and_ from ..models import Image from ..session import require_logged_in from ..config import ANNOTATIONS, JOKE_METADATA from ..translation import _
43.16
112
0.569045
f6e9f1782f7b241fd84b50ed1c1ec48c21643259
1,357
py
Python
src/peering/azext_peering/_client_factory.py
michimune/azure-cli-extensions
697e2c674e5c0825d44c72d714542fe01331e107
[ "MIT" ]
1
2022-03-22T15:02:32.000Z
2022-03-22T15:02:32.000Z
src/peering/azext_peering/_client_factory.py
michimune/azure-cli-extensions
697e2c674e5c0825d44c72d714542fe01331e107
[ "MIT" ]
1
2018-11-19T05:12:58.000Z
2018-11-19T05:12:58.000Z
src/peering/azext_peering/_client_factory.py
michimune/azure-cli-extensions
697e2c674e5c0825d44c72d714542fe01331e107
[ "MIT" ]
1
2021-06-03T19:31:10.000Z
2021-06-03T19:31:10.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
28.87234
94
0.67944
f6ea28bc3d46bfe5dfcf89ab752488b9203ba424
6,877
py
Python
pyfiles.py
geoffmcnamara/pyfiles
d38f060ace02703b6fc0b55da12af0ef4ba4857d
[ "MIT" ]
null
null
null
pyfiles.py
geoffmcnamara/pyfiles
d38f060ace02703b6fc0b55da12af0ef4ba4857d
[ "MIT" ]
null
null
null
pyfiles.py
geoffmcnamara/pyfiles
d38f060ace02703b6fc0b55da12af0ef4ba4857d
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # vim: set syntax=none nospell: import subprocess import os import fnmatch import datetime from bottle import default_app, route, run, template, response, redirect, debug, error, static_file from wraphtml import WrapHtml # for WSGI use: application = default_app() # config option # debug(Tru...
29.26383
190
0.558383
f6eadc908b3d82e2b72632699e16d0a7a0e120a2
207
py
Python
Companyname/appgestion/admin.py
friedrrich/DesarrolloWebTest
43425c7c5c9edf06aabb3c6e499dd72df89ee369
[ "Apache-2.0" ]
null
null
null
Companyname/appgestion/admin.py
friedrrich/DesarrolloWebTest
43425c7c5c9edf06aabb3c6e499dd72df89ee369
[ "Apache-2.0" ]
null
null
null
Companyname/appgestion/admin.py
friedrrich/DesarrolloWebTest
43425c7c5c9edf06aabb3c6e499dd72df89ee369
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin # Register your models here. from appgestion.models import Cliente,Articulo,Pedido admin.site.register(Articulo) admin.site.register(Cliente) admin.site.register(Pedido)
18.818182
53
0.816425
f6ebae9a56dd62c3e6ba8e8582ec9e6144ac2278
263
py
Python
try_and_except.py
akkuldn/My_repo_akkul
ae5741f0e5e9e0d98429b974c679c96496dfea54
[ "MIT" ]
null
null
null
try_and_except.py
akkuldn/My_repo_akkul
ae5741f0e5e9e0d98429b974c679c96496dfea54
[ "MIT" ]
null
null
null
try_and_except.py
akkuldn/My_repo_akkul
ae5741f0e5e9e0d98429b974c679c96496dfea54
[ "MIT" ]
null
null
null
a = [1, 2, 'a'] try: print ("Second element = %d" %a[1]) # Throws error since there are only 3 elements in array print ("thirdFourth element = %s" %a[2]) print("fourth element=%d"%a[4]) except Exception as e: print ("Exception ",e)
29.222222
60
0.577947
f6ebf18ea1522aa199fc9077b5805d1d4bb86bed
1,381
py
Python
expression_builder/tests/test_brackets.py
django-advance-utils/expression-builder
08dab5780ae3a8be90c4daa6b9950ad1af4d87a4
[ "MIT" ]
null
null
null
expression_builder/tests/test_brackets.py
django-advance-utils/expression-builder
08dab5780ae3a8be90c4daa6b9950ad1af4d87a4
[ "MIT" ]
null
null
null
expression_builder/tests/test_brackets.py
django-advance-utils/expression-builder
08dab5780ae3a8be90c4daa6b9950ad1af4d87a4
[ "MIT" ]
null
null
null
import unittest from expression_builder.expression_builder import ExpressionBuilder
30.688889
74
0.636495
f6ec0f45efebd772f014a2bd9b91bd010caa2083
201
py
Python
conan/tools/google/__init__.py
Mu-L/conan
7c24ec4bbd6e8c16cdcd879403aae742689bc36a
[ "MIT" ]
1
2019-11-04T17:23:09.000Z
2019-11-04T17:23:09.000Z
conan/tools/google/__init__.py
Mu-L/conan
7c24ec4bbd6e8c16cdcd879403aae742689bc36a
[ "MIT" ]
1
2020-11-05T16:16:49.000Z
2020-11-05T16:16:49.000Z
conan/tools/google/__init__.py
Mattlk13/conan
005fc53485557b0a570bb71670f2ca9c66082165
[ "MIT" ]
null
null
null
from conan.tools.google.toolchain import BazelToolchain from conan.tools.google.bazeldeps import BazelDeps from conan.tools.google.bazel import Bazel from conan.tools.google.layout import bazel_layout
40.2
55
0.860697
f6ec649c38937c1fef3f220168731774d308f112
6,343
py
Python
Matsuoka/tripple_pend_ex.py
JacobSal/Neuromechanical_Models
548f395327276864f8d0ea2450d565e91155853a
[ "MIT" ]
null
null
null
Matsuoka/tripple_pend_ex.py
JacobSal/Neuromechanical_Models
548f395327276864f8d0ea2450d565e91155853a
[ "MIT" ]
null
null
null
Matsuoka/tripple_pend_ex.py
JacobSal/Neuromechanical_Models
548f395327276864f8d0ea2450d565e91155853a
[ "MIT" ]
1
2021-03-02T17:46:15.000Z
2021-03-02T17:46:15.000Z
# -*- coding: utf-8 -*- """ Created on Thu Mar 11 11:25:26 2021 @author: jsalm """ import matplotlib.pyplot as plt import numpy as np from sympy import symbols from sympy.physics import mechanics from sympy import Dummy, lambdify from scipy.integrate import odeint #animation functions from matplotlib import animati...
31.093137
95
0.578906
f6ec8c44996e7a72f62986aaf887de9edefb0ec5
722
py
Python
hackerrank/captains_room.py
nityansuman/coding-python
b1569de95d1881a82fb32f394f24617cfdcdf4b7
[ "Apache-2.0" ]
null
null
null
hackerrank/captains_room.py
nityansuman/coding-python
b1569de95d1881a82fb32f394f24617cfdcdf4b7
[ "Apache-2.0" ]
null
null
null
hackerrank/captains_room.py
nityansuman/coding-python
b1569de95d1881a82fb32f394f24617cfdcdf4b7
[ "Apache-2.0" ]
2
2021-06-25T16:49:36.000Z
2022-02-13T03:27:45.000Z
if __name__ == "__main__": # Read input size from stdin size = int(input().strip()) # Read room number list from stdin rooms = input().strip().split(" ") # Find captain's room captains_room_number = find_captains_room(rooms, size) print(captains_room_number)
26.740741
80
0.707756
f6eed7b3aed16016ddfb10a8b779b91942c2f42b
16,196
pyw
Python
frmStatPic1.pyw
iefan/army_holiday
0c79cf89c4dbb16bd87ca754265821f82b298f13
[ "Apache-2.0" ]
null
null
null
frmStatPic1.pyw
iefan/army_holiday
0c79cf89c4dbb16bd87ca754265821f82b298f13
[ "Apache-2.0" ]
null
null
null
frmStatPic1.pyw
iefan/army_holiday
0c79cf89c4dbb16bd87ca754265821f82b298f13
[ "Apache-2.0" ]
null
null
null
#!/usr/local/bin/python # -*- coding: utf-8 -*- import wx #import wx.lib.buttons as buttons import PyDatabase import images import string import MyValidator from PhrResource import ALPHA_ONLY, DIGIT_ONLY, strVersion, g_UnitSnNum import MyThread import time import datetime import types import os import matplotlib.pypl...
38.379147
151
0.556866
f6f03810010754a86c0317dca23f8a7eaa2dccb4
2,050
py
Python
receptor/connection/sock.py
RedHatOfficial/receptor
0eb9f0e3bd3b25bce948f7a2f43562f181a630a1
[ "Apache-2.0" ]
6
2020-07-12T05:56:21.000Z
2022-03-09T11:43:53.000Z
receptor/connection/sock.py
RedHatOfficial/receptor
0eb9f0e3bd3b25bce948f7a2f43562f181a630a1
[ "Apache-2.0" ]
7
2020-07-06T15:51:06.000Z
2021-08-18T18:55:26.000Z
receptor/connection/sock.py
RedHatOfficial/receptor
0eb9f0e3bd3b25bce948f7a2f43562f181a630a1
[ "Apache-2.0" ]
3
2020-06-25T21:03:42.000Z
2021-08-09T01:27:48.000Z
import asyncio import logging from .base import Transport, log_ssl_detail logger = logging.getLogger(__name__) def _diagnostics(self): t = self.writer._transport.get_extra_info addr, port = t("peername", (None, None)) return { "address": addr, "port": port, ...
26.973684
76
0.593171
f6f1242f3dff4a13c09f9cca00fa6595b77c32d7
434
py
Python
echo.py
devopsprosiva/python
07311d7597c0895554efe8013b57f218a0f11bb5
[ "MIT" ]
null
null
null
echo.py
devopsprosiva/python
07311d7597c0895554efe8013b57f218a0f11bb5
[ "MIT" ]
null
null
null
echo.py
devopsprosiva/python
07311d7597c0895554efe8013b57f218a0f11bb5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # https://python-essentials.readthedocs.io/en/latest/echo.html while True: user_input = input("Enter some text: ") try: is_user_input_of_type_int = int(user_input) print("You entered an integer " + user_input) continue except ValueError: if user_input == 'quit': prin...
22.842105
62
0.665899
f6f15cefe9ad0d3236e47039b8b006b0931ac91a
1,021
py
Python
medium/560-subarray-sum-equals-k.py
wanglongjiang/leetcode
c61d2e719e81575cfb5bde9d64e15cee7cf01ef3
[ "MIT" ]
2
2021-03-14T11:38:26.000Z
2021-03-14T11:38:30.000Z
medium/560-subarray-sum-equals-k.py
wanglongjiang/leetcode
c61d2e719e81575cfb5bde9d64e15cee7cf01ef3
[ "MIT" ]
null
null
null
medium/560-subarray-sum-equals-k.py
wanglongjiang/leetcode
c61d2e719e81575cfb5bde9d64e15cee7cf01ef3
[ "MIT" ]
1
2022-01-17T19:33:23.000Z
2022-01-17T19:33:23.000Z
''' K k k : [1, 20,000] [-1000, 1000] k [-1e7, 1e7] ''' from typing import List from collections import defaultdict ''' + presum = kans+1 presum-k0..x,0..ii>xk presumskeyvalue 1074.[](hard/1074-number-of-submatrices-that-sum-to-target.py) O(n) O(n) ''' s = Solution() print(s.subarraySum(nums=[1, 1, 1],...
24.309524
84
0.63761
f6f2ad180c13071a9741435f918fec8c6729ea8e
5,139
py
Python
xclim/testing/tests/test_sdba/diagnostics.py
Ouranosinc/hailstorm
494c850164a9f553eeeba66c6cc90fe398eb2094
[ "Apache-2.0" ]
1
2018-08-20T16:36:40.000Z
2018-08-20T16:36:40.000Z
xclim/testing/tests/test_sdba/diagnostics.py
Ouranosinc/hailstorm
494c850164a9f553eeeba66c6cc90fe398eb2094
[ "Apache-2.0" ]
3
2018-08-23T13:25:47.000Z
2018-08-23T15:59:45.000Z
xclim/testing/tests/test_sdba/diagnostics.py
Ouranosinc/hailstorm
494c850164a9f553eeeba66c6cc90fe398eb2094
[ "Apache-2.0" ]
null
null
null
# noqa: D205,D400 """ SDBA Diagnostic Testing Module ============================== This module is meant to compare results with those expected from papers, or create figures illustrating the behavior of sdba methods and utilities. """ from __future__ import annotations import numpy as np from scipy.stats import gaus...
32.11875
111
0.628916
f6f3823a31297d998087dce38ce8e2ef8a8e0fab
648
py
Python
tests/benchmarks/test_dbbench.py
leroyjvargis/workflows
4d5c3a11c678c10cd0c8b7e043f66e4e62cc790b
[ "Apache-2.0" ]
558
2020-04-27T12:05:39.000Z
2022-03-28T15:20:22.000Z
tests/benchmarks/test_dbbench.py
leroyjvargis/workflows
4d5c3a11c678c10cd0c8b7e043f66e4e62cc790b
[ "Apache-2.0" ]
103
2020-04-27T21:44:55.000Z
2022-03-29T21:36:10.000Z
tests/benchmarks/test_dbbench.py
leroyjvargis/workflows
4d5c3a11c678c10cd0c8b7e043f66e4e62cc790b
[ "Apache-2.0" ]
61
2020-04-22T11:02:14.000Z
2022-03-14T19:32:17.000Z
# SPDX-License-Identifier: Apache-2.0 # # Copyright (C) 2021 Micron Technology, Inc. All rights reserved. from pathlib import Path from tools.dbbench import DBbenchTest name = Path(__file__).stem cli_params = "--num=900000000 --threads=32 --value_size=400" cmdlist = [ f"--benchmarks=fillseq {cli_params} --histog...
32.4
92
0.723765
f6f4cecab3f86f240ef8bcd0d1c2f63037857663
910
py
Python
API/main/migrations/0006_auto_20200414_0908.py
Ju99ernaut/grapeflowAPI
0d6599775e5b666ad735160b65262624fea0bf99
[ "MIT" ]
null
null
null
API/main/migrations/0006_auto_20200414_0908.py
Ju99ernaut/grapeflowAPI
0d6599775e5b666ad735160b65262624fea0bf99
[ "MIT" ]
null
null
null
API/main/migrations/0006_auto_20200414_0908.py
Ju99ernaut/grapeflowAPI
0d6599775e5b666ad735160b65262624fea0bf99
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-04-14 07:08 from django.db import migrations, models import django.db.models.deletion
30.333333
113
0.60989
f6f56cdb2070cf0bbc1d4d28c70e844d719585b1
4,973
py
Python
models/general_modules.py
zlijingtao/DAC20_reconstruction
c928cda1c8e492c05110d6c219c1ed529924e127
[ "Apache-2.0" ]
2
2021-03-13T19:27:04.000Z
2021-11-17T17:14:19.000Z
models/general_modules.py
zlijingtao/DAC20_reconstruction
c928cda1c8e492c05110d6c219c1ed529924e127
[ "Apache-2.0" ]
null
null
null
models/general_modules.py
zlijingtao/DAC20_reconstruction
c928cda1c8e492c05110d6c219c1ed529924e127
[ "Apache-2.0" ]
null
null
null
import torch import pdb import torch.nn as nn import torch.nn.functional as F import math from torch.autograd import Variable from torch.autograd import Function import numpy as np
42.87069
164
0.658958
f6f5d0ec88d14c10c0ac57ddb348fc636518d866
2,133
py
Python
public_html/API/newuser.py
jlambert23/COP4331
49ae9563d596d16d0aaa2095da43047f353b052c
[ "MIT" ]
null
null
null
public_html/API/newuser.py
jlambert23/COP4331
49ae9563d596d16d0aaa2095da43047f353b052c
[ "MIT" ]
null
null
null
public_html/API/newuser.py
jlambert23/COP4331
49ae9563d596d16d0aaa2095da43047f353b052c
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # coding: utf-8 import util print("Content-Type: application/json\n\n") try: #import json #parsed_json = json.loads('{"username":"babby", "password":"admin", "firstname":"How is", "lastname":"babby formed?", "email":"idontknow@yahoomugs.com"}') parsed_json = util.getjson() newuse...
33.328125
168
0.591655
f6f61c548dca85e9fb4e47a43a333094a78bec72
1,816
py
Python
kws_streaming/layers/preemphasis_test.py
egonrian/google-research
8177adbe9ca0d7e5a9463b54581fe6dd27be0974
[ "Apache-2.0" ]
3
2021-01-18T04:46:49.000Z
2021-03-05T09:21:40.000Z
kws_streaming/layers/preemphasis_test.py
JustinDurham/google-research
9049acf9246c1b75170f0c6757e62a8f619a9db6
[ "Apache-2.0" ]
25
2020-07-25T08:53:09.000Z
2022-03-12T00:43:02.000Z
kws_streaming/layers/preemphasis_test.py
JustinDurham/google-research
9049acf9246c1b75170f0c6757e62a8f619a9db6
[ "Apache-2.0" ]
4
2021-02-08T10:25:45.000Z
2021-04-17T14:46:26.000Z
# coding=utf-8 # Copyright 2020 The Google Research Authors. # # 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 applicab...
31.859649
74
0.736233
f6f7ca029395167d19947b07a6906680c9c59669
1,430
py
Python
pymobiledevice3/services/dtfetchsymbols.py
iOSForensics/pymobiledevice3
6b148f4e58cc51cb44c18935913a3e6cec5b60d5
[ "MIT" ]
1
2022-01-20T16:53:15.000Z
2022-01-20T16:53:15.000Z
pymobiledevice3/services/dtfetchsymbols.py
iOSForensics/pymobiledevice3
6b148f4e58cc51cb44c18935913a3e6cec5b60d5
[ "MIT" ]
null
null
null
pymobiledevice3/services/dtfetchsymbols.py
iOSForensics/pymobiledevice3
6b148f4e58cc51cb44c18935913a3e6cec5b60d5
[ "MIT" ]
null
null
null
import logging import struct import typing from pymobiledevice3.exceptions import PyMobileDevice3Exception from pymobiledevice3.lockdown import LockdownClient
31.777778
74
0.665734
f6f7e4d65e58a6c7d423140cc20d3150a2eb357b
4,460
py
Python
contrib/samples/python/read_register.py
nanocortex/vscp
0b1a51a35a886921179a8112c592547f84c9771a
[ "CC-BY-3.0" ]
null
null
null
contrib/samples/python/read_register.py
nanocortex/vscp
0b1a51a35a886921179a8112c592547f84c9771a
[ "CC-BY-3.0" ]
null
null
null
contrib/samples/python/read_register.py
nanocortex/vscp
0b1a51a35a886921179a8112c592547f84c9771a
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python """ Read registers from a node connected to the vscp daemon. This module can be used to test the speed of the register update. // 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 Foun...
27.875
94
0.613453
f6fa50ab9078aecf83c16af63647f98d64bc3aa7
106
py
Python
super_material/__init__.py
pleroux0/super_material
b64d74afdeab7639dd1b220f8b23ade22d87c481
[ "BSD-2-Clause" ]
3
2020-10-20T00:37:59.000Z
2021-07-17T12:59:52.000Z
super_material/__init__.py
pleroux0/super_material
b64d74afdeab7639dd1b220f8b23ade22d87c481
[ "BSD-2-Clause" ]
null
null
null
super_material/__init__.py
pleroux0/super_material
b64d74afdeab7639dd1b220f8b23ade22d87c481
[ "BSD-2-Clause" ]
2
2020-10-02T14:31:07.000Z
2021-08-15T10:00:29.000Z
__version__ = "1.0.0a" __author__ = "Paul le Roux" from .conductivity import * from .gap_energy import *
17.666667
27
0.726415
f6fa9a5372f0502aa133f9af6ac549155abd19ad
1,939
py
Python
api/data_pipeline_api.py
sodalic/SpaceBlobCollector-backend
feeff8bf351c730b31cbfe7cddc26b7533a47b59
[ "BSD-3-Clause" ]
null
null
null
api/data_pipeline_api.py
sodalic/SpaceBlobCollector-backend
feeff8bf351c730b31cbfe7cddc26b7533a47b59
[ "BSD-3-Clause" ]
null
null
null
api/data_pipeline_api.py
sodalic/SpaceBlobCollector-backend
feeff8bf351c730b31cbfe7cddc26b7533a47b59
[ "BSD-3-Clause" ]
null
null
null
import os from flask import Blueprint, flash, redirect, abort from database.study_models import Study from libs.admin_authentication import authenticate_admin_study_access from libs.sentry import make_error_sentry from pipeline.boto_helpers import get_boto_client from pipeline.configuration_getters import get...
43.088889
96
0.738009
f6faf53f3fd09e7ab28a9081de0a8f0200d7ee62
22,106
py
Python
Data/FrackFinder/PA/2005-2010/Transformations_and_QAQC/MoorFrog/bin/task2shp.py
SkyTruth/CrowdProjects
eede4c97ca5195d8ad39ce353c962f588e52c6ad
[ "BSD-3-Clause" ]
2
2015-05-23T06:57:32.000Z
2016-08-21T17:50:32.000Z
Data/FrackFinder/PA/2013/Transformations_and_QAQC/MoorFrog/bin/task2shp.py
SkyTruth/CrowdProjects
eede4c97ca5195d8ad39ce353c962f588e52c6ad
[ "BSD-3-Clause" ]
25
2015-01-08T16:00:08.000Z
2017-05-04T17:37:23.000Z
Data/FrackFinder/PA/2013/Transformations_and_QAQC/MoorFrog/bin/task2shp.py
SkyTruth/CrowdProjects
eede4c97ca5195d8ad39ce353c962f588e52c6ad
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # This document is part of CrowdProjects # https://github.com/skytruth/CrowdProjects # =========================================================================== # # # Copyright (c) 2014, SkyTruth # All rights reserved. # # Redistribution and use in source and binary forms, with or without...
32.79822
117
0.566453
f6fb2d87aa49248212178e1f5ae0d3607c06265f
561
py
Python
tools/send_message_telegram.py
lucasayres/python-tools
686b84986aae1b1714fa5645b1f2a3fd6ef8355d
[ "MIT" ]
71
2018-06-28T17:38:15.000Z
2022-02-08T17:42:42.000Z
tools/send_message_telegram.py
DalavanCloud/python-tools
686b84986aae1b1714fa5645b1f2a3fd6ef8355d
[ "MIT" ]
null
null
null
tools/send_message_telegram.py
DalavanCloud/python-tools
686b84986aae1b1714fa5645b1f2a3fd6ef8355d
[ "MIT" ]
14
2018-07-08T03:29:29.000Z
2022-03-22T21:04:39.000Z
# -*- coding: utf-8 -*- import requests def send_message_telegram(msg, chat_id, token): """Send a message to a telegram user. The token can be generated talking with @BotFather on telegram. Args: msg (str): Message. chat_id (str): Number. token (str): Authentication Key. Returns:...
28.05
120
0.641711
f6fcf35ed47156314011ed648fe26e929556a6f5
354
py
Python
python-tutorial/consumer/main.py
twissmueller/event-driven-architectures
d3b37c87dcee6db096eaecbe90feb90d5429ebfc
[ "MIT" ]
16
2021-11-14T22:30:13.000Z
2022-03-28T11:33:04.000Z
python-tutorial/consumer/main.py
twissmueller/event-driven-architectures
d3b37c87dcee6db096eaecbe90feb90d5429ebfc
[ "MIT" ]
null
null
null
python-tutorial/consumer/main.py
twissmueller/event-driven-architectures
d3b37c87dcee6db096eaecbe90feb90d5429ebfc
[ "MIT" ]
7
2021-11-18T15:37:43.000Z
2022-03-18T12:52:58.000Z
from kafka import KafkaConsumer import json from TimestampEvent import TimestampEvent consumer = KafkaConsumer('timestamp', bootstrap_servers='localhost:9092', value_deserializer=lambda x: json.loads(x.decode('utf-8'))) for message in consumer: timestampEvent = TimestampEvent(**(message.value)) print("Receiv...
32.181818
133
0.782486
f6ff6690850f8c8bea40662924c37c303210909d
4,133
py
Python
dnppy/raster/degree_days.py
NASA-DEVELOP/dnppy
8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b
[ "NASA-1.3" ]
65
2015-09-10T12:59:56.000Z
2022-02-27T22:09:03.000Z
dnppy/raster/degree_days.py
snowzm/dnppy
8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b
[ "NASA-1.3" ]
40
2015-04-08T19:23:30.000Z
2015-08-04T15:53:11.000Z
dnppy/raster/degree_days.py
snowzm/dnppy
8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b
[ "NASA-1.3" ]
45
2015-08-14T19:09:38.000Z
2022-02-15T18:53:16.000Z
__all__ = ["degree_days"] from to_numpy import to_numpy from from_numpy import from_numpy import numpy def degree_days(T_base, Max, Min, NoData_Value, outpath = False, roof = False, floor = False): """ Inputs rasters for maximum and minimum temperatures, calculates Growing Degree Days this function is ...
36.575221
102
0.625696
f6ffa1917b189d918c11e4522a284e7cf9b7bbb8
564
py
Python
dsvfile/Models/Planets/VeinData.py
phoenixx-666/dsvread
8a073c12343b2f0d34f9b728282dfefe10999f24
[ "MIT" ]
2
2021-03-01T19:57:20.000Z
2021-08-02T20:54:48.000Z
dsvfile/Models/Planets/VeinData.py
phoenixx-666/dsvread
8a073c12343b2f0d34f9b728282dfefe10999f24
[ "MIT" ]
null
null
null
dsvfile/Models/Planets/VeinData.py
phoenixx-666/dsvread
8a073c12343b2f0d34f9b728282dfefe10999f24
[ "MIT" ]
null
null
null
from ...Fields import UInt8Field, Int16Field from ...Fields.Enums import EVeinType16 from . import Model, Int32Field, FloatField
25.636364
44
0.675532
f6ffc84dd73dd6770247f6b84eac07007bd98522
3,277
py
Python
code/Model/baselines/sentence-level-models/models/lstm.py
INK-USC/DS-RelationExtraction
eebcfa7fd2eda5bba92f3ef8158797cdf91e6981
[ "MIT" ]
156
2018-10-09T09:01:42.000Z
2019-12-25T09:07:47.000Z
code/Model/baselines/sentence-level-models/models/lstm.py
pengdada98/USC-DS-RelationExtraction
eebcfa7fd2eda5bba92f3ef8158797cdf91e6981
[ "MIT" ]
10
2018-10-12T11:54:58.000Z
2019-10-11T03:29:20.000Z
code/Model/baselines/sentence-level-models/models/lstm.py
pengdada98/USC-DS-RelationExtraction
eebcfa7fd2eda5bba92f3ef8158797cdf91e6981
[ "MIT" ]
64
2016-11-04T16:03:03.000Z
2018-07-20T18:03:00.000Z
__author__ = 'Maosen' import torch import torch.nn as nn import torch.nn.functional as F import utils from utils import pos2id, ner2id import sys from tqdm import tqdm
33.10101
122
0.728715
1000dfbbd035c312db7ff448296e00fba1a7cd5e
898
py
Python
backend/ocr_core/config.py
WestonLu/chinese-ocr
d27bf720a47b9bf3aae6f306c94bad0a36056e56
[ "MIT" ]
1
2022-02-23T09:22:39.000Z
2022-02-23T09:22:39.000Z
backend/ocr_core/config.py
luxu1220/chinese-ocr
d27bf720a47b9bf3aae6f306c94bad0a36056e56
[ "MIT" ]
null
null
null
backend/ocr_core/config.py
luxu1220/chinese-ocr
d27bf720a47b9bf3aae6f306c94bad0a36056e56
[ "MIT" ]
null
null
null
import os filt_path = os.path.abspath(__file__) father_path = os.path.abspath(os.path.dirname(filt_path) + os.path.sep + ".") GPU_ID = "cpu" dbnet_short_size = 960 det_model_type = "dbnet" pse_scale = 1 model_path = os.path.join(father_path, "models/dbnet.onnx") # crnn nh = 256 crnn_vertical_model_path = os.path.jo...
28.967742
80
0.671492
1001fbdf815fe1e81a9f259621fa2deb092ac084
1,265
py
Python
src/merge_csv/merge_files.py
JoaquimXG/csv-merge
2d0430b6dfe5ecb69e9bc18ba58b45678515cc69
[ "MIT" ]
null
null
null
src/merge_csv/merge_files.py
JoaquimXG/csv-merge
2d0430b6dfe5ecb69e9bc18ba58b45678515cc69
[ "MIT" ]
null
null
null
src/merge_csv/merge_files.py
JoaquimXG/csv-merge
2d0430b6dfe5ecb69e9bc18ba58b45678515cc69
[ "MIT" ]
null
null
null
import pandas as pd import logging from .validate_options import validate_options from .merge_dataframes import merge_dataframes_multiple_columns, merge_dataframes_single_column def merge_files(left_file: str, right_file: str, columns: list, keep: str = 'none', keep_missing: str = 'none') -> pd.DataFrame: """ ...
39.53125
153
0.705929
1003af35da2655e5a0344e4ff2fe9e380b14c2cd
993
py
Python
app/migrations/0007_auto_20210701_0434.py
Divyanshukalola/Alchemeo
fd32b47450eb2fea9f1bdf4a2f253e5655aca1d4
[ "MIT" ]
null
null
null
app/migrations/0007_auto_20210701_0434.py
Divyanshukalola/Alchemeo
fd32b47450eb2fea9f1bdf4a2f253e5655aca1d4
[ "MIT" ]
null
null
null
app/migrations/0007_auto_20210701_0434.py
Divyanshukalola/Alchemeo
fd32b47450eb2fea9f1bdf4a2f253e5655aca1d4
[ "MIT" ]
null
null
null
# Generated by Django 2.2.10 on 2021-07-01 04:34 import datetime from django.db import migrations, models
33.1
152
0.624371
1003e56d44ba3bab8c9e2c86a4f9e739125ecbf8
1,231
py
Python
dataset/file_table.py
hb-stone/FC-SOD
1e084dde0d5bde4e90f633390ee74cbffdd67e76
[ "MIT" ]
12
2020-09-27T04:46:25.000Z
2021-06-14T00:47:56.000Z
dataset/file_table.py
hb-stone/FC-SOD
1e084dde0d5bde4e90f633390ee74cbffdd67e76
[ "MIT" ]
2
2021-06-15T11:03:31.000Z
2021-09-17T01:02:00.000Z
dataset/file_table.py
hb-stone/FC-SOD
1e084dde0d5bde4e90f633390ee74cbffdd67e76
[ "MIT" ]
1
2021-06-14T00:48:01.000Z
2021-06-14T00:48:01.000Z
import os from typing import Dict from os.path import join as pathjoin __ALL__ = ['get_dataset_path_by_name'] if __name__ == '__main__': from pprint import pprint pprint(get_dataset_path_by_name('DUTS')) pprint(get_dataset_path_by_name('ECSSD'))
34.194444
75
0.718115
1004ca4b7ce19372568058fbfdce28896aab01a3
961
py
Python
ICS 101/Xmisc/week5_ex/permutation_example.py
herambchaudhari4121/NYU_Shanghai_CS
27c73242a77348af273683f2756e6960f60126fd
[ "MIT" ]
null
null
null
ICS 101/Xmisc/week5_ex/permutation_example.py
herambchaudhari4121/NYU_Shanghai_CS
27c73242a77348af273683f2756e6960f60126fd
[ "MIT" ]
null
null
null
ICS 101/Xmisc/week5_ex/permutation_example.py
herambchaudhari4121/NYU_Shanghai_CS
27c73242a77348af273683f2756e6960f60126fd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Oct 9 16:46:40 2021 @author: bing """ import copy ## The code only works for lists without repeated elements ##test if __name__ == "__main__": nums = [1, 2, 3, 4] p = [] permute(nums, node=[], permutations=p) print("Permutation:", p...
20.891304
58
0.532778
1005b0ab01949ad9cd001c97ae464c7d77e2b32d
1,579
py
Python
catkin/src/distributed_robot_system/src/nodes/webcam_main.py
samuelwestlake/Multi-Tier-Robot-System
93664413e68ac2080958527149729bd6b63429b5
[ "MIT" ]
null
null
null
catkin/src/distributed_robot_system/src/nodes/webcam_main.py
samuelwestlake/Multi-Tier-Robot-System
93664413e68ac2080958527149729bd6b63429b5
[ "MIT" ]
null
null
null
catkin/src/distributed_robot_system/src/nodes/webcam_main.py
samuelwestlake/Multi-Tier-Robot-System
93664413e68ac2080958527149729bd6b63429b5
[ "MIT" ]
null
null
null
#!/usr/bin/env python import cv2 import rospy import numpy as np from sensor_msgs.msg import CompressedImage if __name__ == '__main__': cn = CameraNode() cn.main()
45.114286
118
0.50855
1007a20dabb4322c12f531ddcead5c7ccd4b2801
680
py
Python
src/image.py
adamsh25/RE
99c631ba2049c0ba86357a3148a8442a5fd8ec0e
[ "MIT" ]
105
2017-01-02T18:32:01.000Z
2021-11-09T11:23:50.000Z
src/image.py
scvalencia/MNIST_ASCCI_challenge
60f7880f2d5aebe2420b472a4af7c7f2e0ee9c45
[ "MIT" ]
null
null
null
src/image.py
scvalencia/MNIST_ASCCI_challenge
60f7880f2d5aebe2420b472a4af7c7f2e0ee9c45
[ "MIT" ]
24
2017-01-03T13:03:56.000Z
2017-10-25T02:27:45.000Z
import cv2 import numpy
24.285714
97
0.607353
1007f65a17fe2339f5dd2b0454b47b5dab03d134
1,119
py
Python
tests/test_blog.py
derrokip34/Blog
ec6d6acb0c69ea42a8ea99c6836d943ad7417984
[ "MIT" ]
null
null
null
tests/test_blog.py
derrokip34/Blog
ec6d6acb0c69ea42a8ea99c6836d943ad7417984
[ "MIT" ]
null
null
null
tests/test_blog.py
derrokip34/Blog
ec6d6acb0c69ea42a8ea99c6836d943ad7417984
[ "MIT" ]
null
null
null
import unittest from app.models import Blog,User from flask_login import current_user from app import db
34.96875
122
0.702413
100958354158b69adde8e070d9d2162cbbf77d9f
5,196
py
Python
pyzscaler/zia/__init__.py
mitchos/pyZscaler
c4c83345bf26e2883b9555d20a90f9387a45e05e
[ "MIT" ]
16
2021-07-09T00:20:31.000Z
2022-02-17T19:29:26.000Z
pyzscaler/zia/__init__.py
mitchos/pyZscaler
c4c83345bf26e2883b9555d20a90f9387a45e05e
[ "MIT" ]
62
2021-07-21T03:42:09.000Z
2022-03-18T09:08:20.000Z
pyzscaler/zia/__init__.py
mitchos/pyZscaler
c4c83345bf26e2883b9555d20a90f9387a45e05e
[ "MIT" ]
8
2021-09-11T08:14:53.000Z
2022-03-25T20:14:41.000Z
import os from restfly.session import APISession from pyzscaler import __version__ from .admin_and_role_management import AdminAndRoleManagementAPI from .audit_logs import AuditLogsAPI from .config import ActivationAPI from .dlp import DLPAPI from .firewall import FirewallPolicyAPI from .locations import LocationsAP...
27.935484
117
0.645497
100a065e4d36bdc98eb6cfcabc84b98767d44b90
2,769
py
Python
pytorchDL/tasks/image_segmentation/evaluator.py
Milogav/PytorchDL
39d8e40cf430113003b2e03f81951d43118dc09a
[ "MIT" ]
null
null
null
pytorchDL/tasks/image_segmentation/evaluator.py
Milogav/PytorchDL
39d8e40cf430113003b2e03f81951d43118dc09a
[ "MIT" ]
null
null
null
pytorchDL/tasks/image_segmentation/evaluator.py
Milogav/PytorchDL
39d8e40cf430113003b2e03f81951d43118dc09a
[ "MIT" ]
null
null
null
import os import json import torch from tqdm import tqdm from pytorchDL.tasks.image_segmentation.predictor import Predictor from pytorchDL.tasks.image_segmentation.data import Dataset from pytorchDL.metrics import ConfusionMatrix if __name__ == '__main__': test_dir = '/media/miguel/HDD/DeepLearning/Datasets/h...
39
105
0.625135
100a542603a26516265165b7195f68b21242cd95
2,457
py
Python
script.module.urlresolver/lib/urlresolver/plugins/youtube.py
Reapercrew666/crypt
e1e0994f5323c6b454ac0f65fb2e579f7bea8e5a
[ "Beerware" ]
1
2019-10-16T18:38:33.000Z
2019-10-16T18:38:33.000Z
script.module.urlresolver/lib/urlresolver/plugins/youtube.py
Reapercrew666/crypt
e1e0994f5323c6b454ac0f65fb2e579f7bea8e5a
[ "Beerware" ]
null
null
null
script.module.urlresolver/lib/urlresolver/plugins/youtube.py
Reapercrew666/crypt
e1e0994f5323c6b454ac0f65fb2e579f7bea8e5a
[ "Beerware" ]
null
null
null
""" urlresolver XBMC Addon Copyright (C) 2011 t0mm0 This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ...
36.671642
87
0.63777
100ad66b5c3e9588877b9fc6e88bd19765cc8458
240
py
Python
tests/wintools/test_file.py
yukkun007/wintools
df6521e91a3dc2c34e5fc599abbc4ea81dedc313
[ "MIT" ]
null
null
null
tests/wintools/test_file.py
yukkun007/wintools
df6521e91a3dc2c34e5fc599abbc4ea81dedc313
[ "MIT" ]
7
2021-09-27T20:48:49.000Z
2021-10-07T15:10:01.000Z
tests/wintools/test_file.py
mozkzki/wintools
df6521e91a3dc2c34e5fc599abbc4ea81dedc313
[ "MIT" ]
null
null
null
from wintools import print_files_info, print_info FILES = ["./tests/resources/test.iso"]
18.461538
49
0.704167
100c4edfc29e88d0889447b1b17515a7614789cf
1,232
py
Python
setup.py
Polamreddykrishnareddy/PatternPackage
893ab468a637cd70a0dd8f6d60f7f5c75a3db58f
[ "MIT" ]
null
null
null
setup.py
Polamreddykrishnareddy/PatternPackage
893ab468a637cd70a0dd8f6d60f7f5c75a3db58f
[ "MIT" ]
null
null
null
setup.py
Polamreddykrishnareddy/PatternPackage
893ab468a637cd70a0dd8f6d60f7f5c75a3db58f
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name="PatternPackage-Polamreddykrishnareddy", version="0.0.1", author="Polamreddykrishnareddy", author_email="krishnareddy40900@gmail.com", description="I Build the python Patt...
45.62963
405
0.717532
100d9789f6e6312613e49c7a269082eb46397dd5
3,832
py
Python
chapter21casestudy2/GuessingApp/GuessingGame/wordgenerator.py
bpbpublications/Question-Bank-for-Exam-Success-Computer-Science-with-Python-Class-XII-CBSE-083-
c2ad485b5f9b7a304d4398539770c3a5916b2248
[ "MIT" ]
null
null
null
chapter21casestudy2/GuessingApp/GuessingGame/wordgenerator.py
bpbpublications/Question-Bank-for-Exam-Success-Computer-Science-with-Python-Class-XII-CBSE-083-
c2ad485b5f9b7a304d4398539770c3a5916b2248
[ "MIT" ]
null
null
null
chapter21casestudy2/GuessingApp/GuessingGame/wordgenerator.py
bpbpublications/Question-Bank-for-Exam-Success-Computer-Science-with-Python-Class-XII-CBSE-083-
c2ad485b5f9b7a304d4398539770c3a5916b2248
[ "MIT" ]
1
2020-12-17T22:49:47.000Z
2020-12-17T22:49:47.000Z
words=['about','above','abuse','actor','acute','admit','adopt','adult','after','again','agent','agree','ahead','alarm','album','alert','alike','alive','allow','alone','along','alter','among','anger','Angle','angry','apart','apple','apply','arena','argue','arise','array','aside','asset','audio','audit','avoid','award','...
547.428571
3,763
0.626305
100e1407ca4bf246b1686309281c924774e73b5d
5,548
py
Python
setup.py
johannesnicolaus/singlecell
8b3f5719b236fb2b9783e4d2c3b419352bb3bf6f
[ "BSD-3-Clause" ]
null
null
null
setup.py
johannesnicolaus/singlecell
8b3f5719b236fb2b9783e4d2c3b419352bb3bf6f
[ "BSD-3-Clause" ]
null
null
null
setup.py
johannesnicolaus/singlecell
8b3f5719b236fb2b9783e4d2c3b419352bb3bf6f
[ "BSD-3-Clause" ]
null
null
null
# import sys import os import io from setuptools import setup, find_packages, Command, Extension from os import path root = 'singlecell' name = 'singlecell' version = '0.1.0' here = path.abspath(path.dirname(__file__)) description = ('SingleCell: A Python/Cython Package for Processing ' 'Single-Cell ...
27.879397
75
0.593367
100e34c61df61bc865eac40d88e70b3034c2db4a
276
py
Python
clean.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
clean.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
clean.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
def remove_punctuation(input_string): """Return a str with punctuation chars stripped out""" tran_table = str.maketrans('','', '!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~') output_string = input_string.translate(tran_table) return output_string pass
30.666667
75
0.594203
100ecaddb56a4114729cfb6f919f5dd51de7ee8b
1,322
py
Python
set1/Aes_cipher.py
arunKumarNOP/Cryptopals-Solutions
529474679972e17566a233de110f0b47078ef3b9
[ "MIT" ]
null
null
null
set1/Aes_cipher.py
arunKumarNOP/Cryptopals-Solutions
529474679972e17566a233de110f0b47078ef3b9
[ "MIT" ]
null
null
null
set1/Aes_cipher.py
arunKumarNOP/Cryptopals-Solutions
529474679972e17566a233de110f0b47078ef3b9
[ "MIT" ]
null
null
null
from Crypto.Cipher import AES from Xor import xorPlain from set2.PkcsPadding import pkcs7_pad if __name__=='__main__': #cipherTxt = base64.decodestring(open('7.txt').read().replace('\n','')) plainTxt = "ENIRAMBUS WOLLEYENIRAMBUS WOLLEYENIRAMBUS WOLL" key = "YELLOW SUBMARINE" iv = ''.join(['\0']*16...
27.541667
94
0.658094
100f590f093322ddd66390421e6b96818ed6e651
1,234
py
Python
encode/tests/test_models.py
Ircam-Web/django-encode
2c1c9d843865ec99fb5b45631d6f08a9c7cb86ce
[ "MIT" ]
11
2015-03-11T20:48:13.000Z
2021-12-14T14:17:39.000Z
encode/tests/test_models.py
Ircam-Web/django-encode
2c1c9d843865ec99fb5b45631d6f08a9c7cb86ce
[ "MIT" ]
2
2015-11-24T22:10:06.000Z
2017-05-26T09:27:02.000Z
encode/tests/test_models.py
Ircam-Web/django-encode
2c1c9d843865ec99fb5b45631d6f08a9c7cb86ce
[ "MIT" ]
2
2019-08-09T17:29:41.000Z
2020-08-31T16:47:27.000Z
# Copyright Collab 2014-2016 # See LICENSE for details. """ Tests for the :py:mod:`encode.models` module. """ from __future__ import unicode_literals from django.core.files.base import ContentFile from encode.models import Audio, Video, EncodingProfile from encode.tests.helpers import WEBM_DATA, FileTestCase
27.422222
67
0.65316
100f59c47d54d766ba3ff5cc46102e95afc2ab33
431
py
Python
bflib/spells/magicuser/darkvision.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
3
2017-10-28T11:28:38.000Z
2018-09-12T09:47:00.000Z
bflib/spells/magicuser/darkvision.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
bflib/spells/magicuser/darkvision.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
from bflib import units from bflib.characters import classes from bflib.spells import listing from bflib.spells.base import Spell from bflib.spells.duration import SpellDuration from bflib.spells.range import Touch
25.352941
62
0.763341
100fd6b5ec1d603eb5c012f65ffed656ba164f09
5,589
py
Python
apps/tokenlizer.py
qsyao/cudaBERT
c93cb5ff0ccd387294a7229a9bef969c1375d0d6
[ "Apache-2.0" ]
88
2019-07-19T10:55:16.000Z
2021-12-25T09:42:59.000Z
apps/tokenlizer.py
qsyao/cudaBERT
c93cb5ff0ccd387294a7229a9bef969c1375d0d6
[ "Apache-2.0" ]
3
2019-08-01T12:47:43.000Z
2021-12-07T03:16:50.000Z
apps/tokenlizer.py
qsyao/cudaBERT
c93cb5ff0ccd387294a7229a9bef969c1375d0d6
[ "Apache-2.0" ]
12
2019-07-19T17:41:29.000Z
2021-11-10T02:59:53.000Z
from pytorch_pretrained_bert.tokenization import BertTokenizer tokenlizer = None ''' Convert a input line from input_file to a tuple: [index, line_raw_data , inputs_id, segments_id, mask] record id_line process inputs_id, segments_id, mask record line_data(raw string in line from input_fi...
37.510067
84
0.632671
101197a60898fb4d5c822eb8c2635b94b789f285
3,653
py
Python
spider/ipSpider.py
SonnySmart/M3u8Downloader
663b61ece071e6734ab60f82bd17ac222d90218c
[ "MIT" ]
10
2019-11-20T19:09:50.000Z
2022-02-26T00:40:32.000Z
spider/ipSpider.py
SonnySmart/M3u8Downloader
663b61ece071e6734ab60f82bd17ac222d90218c
[ "MIT" ]
1
2021-06-01T23:51:29.000Z
2021-06-01T23:51:29.000Z
spider/ipSpider.py
SonnySmart/M3u8Downloader
663b61ece071e6734ab60f82bd17ac222d90218c
[ "MIT" ]
2
2020-02-21T20:59:18.000Z
2020-09-24T15:05:59.000Z
# -*- coding: UTF-8 -*- import requests import urllib3 import threading import json import os from bs4 import BeautifulSoup
32.616071
145
0.514098
1012f3c009ffa34c2c9b80bf26d6395fbc58797a
617
py
Python
qwe/planning/blockSim.py
IEEERobotics/high-level
a50f2170ca81a16bd50b50f970f9e3fe9c656bfa
[ "BSD-2-Clause" ]
1
2017-08-07T06:03:53.000Z
2017-08-07T06:03:53.000Z
qwe/planning/blockSim.py
IEEERobotics/high-level
a50f2170ca81a16bd50b50f970f9e3fe9c656bfa
[ "BSD-2-Clause" ]
null
null
null
qwe/planning/blockSim.py
IEEERobotics/high-level
a50f2170ca81a16bd50b50f970f9e3fe9c656bfa
[ "BSD-2-Clause" ]
null
null
null
import Block; #bs = BlockSim() #b = bs.process(2) #print b.getColor(), b.getSize(), b.getLocation()
19.903226
58
0.63047
10130fa6cc6d73e32a8210599ebb4ce228836f7b
960
py
Python
test/chat/chatserver.py
rahulsukla/cltpWS
aa20f69e121ff0ab81cd0e9e2e7a421c62b759ca
[ "MIT" ]
1
2015-04-15T03:54:18.000Z
2015-04-15T03:54:18.000Z
test/chat/chatserver.py
rahulsukla/cltpWS
aa20f69e121ff0ab81cd0e9e2e7a421c62b759ca
[ "MIT" ]
null
null
null
test/chat/chatserver.py
rahulsukla/cltpWS
aa20f69e121ff0ab81cd0e9e2e7a421c62b759ca
[ "MIT" ]
null
null
null
from bottle import request, route, run, static_file chats = [] if __name__ == "__main__": run(host='localhost', port=8080, debug=True)
25.945946
83
0.577083
101377cd066f70a4f80a4aa9efddee6dc1171b27
1,349
py
Python
exp1/src/task3.py
bhshp/optimization
8f1a476c263f2b49c3b166f55e2fcc0913050552
[ "MIT" ]
null
null
null
exp1/src/task3.py
bhshp/optimization
8f1a476c263f2b49c3b166f55e2fcc0913050552
[ "MIT" ]
null
null
null
exp1/src/task3.py
bhshp/optimization
8f1a476c263f2b49c3b166f55e2fcc0913050552
[ "MIT" ]
null
null
null
import cv2 import numpy as np from task2 import fit, l1_grad_descent origin_image = cv2.imread('./data/lena.jpg') n, m, channel = origin_image.shape sigma = 20 noise_image = np.uint8(np.clip(np.random.normal(0, sigma, origin_image.shape) + origin_image, 0, 255)) cv2.imwrite('./data/nois...
29.977778
77
0.550037
1013f4af0653cffeadf5679387a32197de8a9afa
619
py
Python
e30.py
Jeremiah-Bergkvist/ProjectEuler
06ef7fd8641e47cb8b8738173d50c57c076af6dd
[ "MIT" ]
null
null
null
e30.py
Jeremiah-Bergkvist/ProjectEuler
06ef7fd8641e47cb8b8738173d50c57c076af6dd
[ "MIT" ]
null
null
null
e30.py
Jeremiah-Bergkvist/ProjectEuler
06ef7fd8641e47cb8b8738173d50c57c076af6dd
[ "MIT" ]
null
null
null
if __name__ == "__main__": main()
23.807692
44
0.453958
10146477856bf3fb9a7d6889ff29df6b4dd4be0b
2,513
py
Python
datafiles/testscript.py
xiaoxinz-cisco/examples
ce1d1526346665bf797effb7b372a5030d2f9bfd
[ "Apache-2.0" ]
81
2019-08-07T09:00:15.000Z
2022-03-17T23:23:51.000Z
datafiles/testscript.py
xiaoxinz-cisco/examples
ce1d1526346665bf797effb7b372a5030d2f9bfd
[ "Apache-2.0" ]
2
2019-07-30T03:09:50.000Z
2021-09-28T13:08:00.000Z
datafiles/testscript.py
xiaoxinz-cisco/examples
ce1d1526346665bf797effb7b372a5030d2f9bfd
[ "Apache-2.0" ]
41
2019-08-21T22:43:11.000Z
2022-03-30T03:22:35.000Z
#!/usr/bin/env python ''' This is a very short script intended to help the user undersand what datafiles are, how to use them & how datafiles affect your script's normal execution. First, run this script by itself: bash$ python testscript.py Now, add datafile: bash$ python testscript.py -datafile data/simple_...
29.564706
78
0.668922
1014a44dfeab5dc5a1bcbe3f568a4c2b8e25397c
950
py
Python
tf2utils/enums.py
offish/tf2-rgb-values
7a526e9918afef9f79b7be37e81cd374df66c57d
[ "MIT" ]
1
2019-06-16T15:55:38.000Z
2019-06-16T15:55:38.000Z
tf2utils/enums.py
offish/tf2utils
7a526e9918afef9f79b7be37e81cd374df66c57d
[ "MIT" ]
null
null
null
tf2utils/enums.py
offish/tf2utils
7a526e9918afef9f79b7be37e81cd374df66c57d
[ "MIT" ]
2
2019-03-14T18:58:32.000Z
2019-04-12T11:02:14.000Z
import enum
14.393939
37
0.509474
10159dc12ce248c5ab20867cf825a1f1750f06f7
372
py
Python
beginner_contest/109/C.py
FGtatsuro/myatcoder
25a3123be6a6311e7d1c25394987de3e35575ff4
[ "MIT" ]
null
null
null
beginner_contest/109/C.py
FGtatsuro/myatcoder
25a3123be6a6311e7d1c25394987de3e35575ff4
[ "MIT" ]
null
null
null
beginner_contest/109/C.py
FGtatsuro/myatcoder
25a3123be6a6311e7d1c25394987de3e35575ff4
[ "MIT" ]
null
null
null
import sys input = sys.stdin.readline sys.setrecursionlimit(10 ** 7) n, x = map(int, input().split()) point = list(map(int, input().split())) diff = [0] * n for i in range(n): diff[i] = abs(point[i] - x) import functools print(functools.reduce(gcd, diff))
18.6
39
0.612903
101629a24b0565cb16ae5309c4126f52ea5e2bb8
1,369
py
Python
returns/interfaces/lashable.py
ariebovenberg/returns
1630e060a629082b2f9de62177d198a5b59e1929
[ "BSD-2-Clause" ]
3
2019-01-27T14:41:46.000Z
2019-01-30T10:57:25.000Z
returns/interfaces/lashable.py
ariebovenberg/returns
1630e060a629082b2f9de62177d198a5b59e1929
[ "BSD-2-Clause" ]
92
2022-01-03T01:14:21.000Z
2022-03-30T00:32:09.000Z
returns/interfaces/lashable.py
ariebovenberg/returns
1630e060a629082b2f9de62177d198a5b59e1929
[ "BSD-2-Clause" ]
null
null
null
from abc import abstractmethod from typing import Callable, Generic, NoReturn, TypeVar from returns.primitives.hkt import KindN _FirstType = TypeVar('_FirstType') _SecondType = TypeVar('_SecondType') _ThirdType = TypeVar('_ThirdType') _UpdatedType = TypeVar('_UpdatedType') _LashableType = TypeVar('_LashableType', bo...
28.520833
71
0.707816
10162d06e2219ad8662267101a5ad7808681589b
6,875
py
Python
combinatorial_optim/sa_test_total.py
goodxue/CenterNet
50e1726664337fb988542e3c2247a4c57ef74334
[ "MIT" ]
null
null
null
combinatorial_optim/sa_test_total.py
goodxue/CenterNet
50e1726664337fb988542e3c2247a4c57ef74334
[ "MIT" ]
null
null
null
combinatorial_optim/sa_test_total.py
goodxue/CenterNet
50e1726664337fb988542e3c2247a4c57ef74334
[ "MIT" ]
null
null
null
import os import time import glob import numpy as np import argparse from detection_evaluation.nuscenes_eval_core import NuScenesEval from detection_evaluation.label_parser import LabelParser import co_utils as cu if __name__ == '__main__': args = parse_args() file_parsing = LabelParser(args.format) FUSE...
39.739884
147
0.628509