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
8156afb1df8b300172b241e218362d0df0d09d97
297
py
Python
setup.py
dilayercelik/neural-networks-tfw1
8f8100bad59d2d57ada7b8a7efb16544f805c9bd
[ "MIT" ]
null
null
null
setup.py
dilayercelik/neural-networks-tfw1
8f8100bad59d2d57ada7b8a7efb16544f805c9bd
[ "MIT" ]
null
null
null
setup.py
dilayercelik/neural-networks-tfw1
8f8100bad59d2d57ada7b8a7efb16544f805c9bd
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='neural_networks_tfw1', version='0.1', description='Implementing Neural Networks with Tensorflow', packages=['neural_networks_tfw1'], author='Dilay Fidan Ercelik', author_email='dilay.ercelik@gmail.com', zip_safe=False)
29.7
65
0.707071
8157314b8c5e999d455ae8518882f282b75cc228
4,581
py
Python
half_json/json_util.py
half-pie/half-json
d8064e90ac769547c22db11bcbe47fcb4f1eb600
[ "MIT" ]
4
2020-08-04T15:14:25.000Z
2021-08-18T18:29:03.000Z
half_json/json_util.py
half-pie/half-json
d8064e90ac769547c22db11bcbe47fcb4f1eb600
[ "MIT" ]
1
2019-06-04T15:01:31.000Z
2019-06-04T15:01:31.000Z
half_json/json_util.py
half-pie/half-json
d8064e90ac769547c22db11bcbe47fcb4f1eb600
[ "MIT" ]
3
2019-06-01T14:16:32.000Z
2021-06-25T10:10:47.000Z
# coding=utf8 import re import json.decoder from collections import namedtuple from json.decoder import JSONDecoder from json.scanner import py_make_scanner from json.decoder import py_scanstring def errmsg_inv(e): assert isinstance(e, ValueError) message = e.message idx = message.rindex(':') errm...
32.260563
104
0.652696
8157a3f9c8c5a1a22e0af65a58d5048d55b4c514
1,963
py
Python
capa-system/capaSystem.py
slumbermachine/capatimelapse
446e2a276b8ab0cf8d2f2292858cf2b540eb4748
[ "MIT" ]
2
2017-06-13T20:49:50.000Z
2019-04-09T10:14:24.000Z
capa-system/capaSystem.py
slumbermachine/capatimelapse
446e2a276b8ab0cf8d2f2292858cf2b540eb4748
[ "MIT" ]
null
null
null
capa-system/capaSystem.py
slumbermachine/capatimelapse
446e2a276b8ab0cf8d2f2292858cf2b540eb4748
[ "MIT" ]
null
null
null
#!/usr/bin/python ##################################################################### # Name : capaSystem.py # Description : Read system data and update db for web display # Environment : Tested under Raspberry Pi Rasbian Jessie Summer 17 # Author : Steve Osteen sosteen@gmail.com #####...
30.671875
101
0.596536
815971e46cc7b24062e27d29f7d4f09a3aec13fb
3,770
py
Python
wagtail/wagtailadmin/tasks.py
willcodefortea/wagtail
2723b85ed8f356bde89d9541105b8cea4812d6a1
[ "BSD-3-Clause" ]
null
null
null
wagtail/wagtailadmin/tasks.py
willcodefortea/wagtail
2723b85ed8f356bde89d9541105b8cea4812d6a1
[ "BSD-3-Clause" ]
null
null
null
wagtail/wagtailadmin/tasks.py
willcodefortea/wagtail
2723b85ed8f356bde89d9541105b8cea4812d6a1
[ "BSD-3-Clause" ]
null
null
null
from django.template.loader import render_to_string from django.core.mail import send_mail from django.conf import settings from django.contrib.auth import get_user_model from django.db.models import Q from wagtail.wagtailcore.models import PageRevision, GroupPagePermission from wagtail.wagtailusers.models import User...
36.960784
145
0.734218
815a258e49c9c6abc6816370b4272cf95e62bbe1
3,506
py
Python
app/map_sup_enrich_compose.py
onap/sdc-dcae-d-tosca-lab
b0120c1671e8987387ccae4f21793ceb303f471c
[ "Apache-2.0" ]
1
2021-10-15T19:47:42.000Z
2021-10-15T19:47:42.000Z
app/map_sup_enrich_compose.py
onap/archive-sdc-dcae-d-tosca-lab
b0120c1671e8987387ccae4f21793ceb303f471c
[ "Apache-2.0" ]
null
null
null
app/map_sup_enrich_compose.py
onap/archive-sdc-dcae-d-tosca-lab
b0120c1671e8987387ccae4f21793ceb303f471c
[ "Apache-2.0" ]
1
2021-10-15T19:47:34.000Z
2021-10-15T19:47:34.000Z
#Author: Shu Shi #emaiL: shushi@research.att.com from toscalib.tosca_workbook import ToscaWorkBook from toscalib.tosca_builder import ToscaBuilder import getopt, sys, json, logging if __name__ == "__main__": main()
35.414141
187
0.582145
815a83e6c63111824a00c57370e405a878ff8494
2,872
py
Python
gollama/backend/tests/test_api/test_shorthand.py
benjaminhubbell/gollama
193e9eddf26d295b9a34474ae7fb93e2a91ef73a
[ "MIT" ]
1
2020-08-26T19:02:25.000Z
2020-08-26T19:02:25.000Z
gollama/backend/tests/test_api/test_shorthand.py
benjaminhubbell/gollama
193e9eddf26d295b9a34474ae7fb93e2a91ef73a
[ "MIT" ]
18
2020-06-05T06:42:22.000Z
2021-06-04T23:51:19.000Z
gollama/backend/tests/test_api/test_shorthand.py
benjaminhubbell/gollama
193e9eddf26d295b9a34474ae7fb93e2a91ef73a
[ "MIT" ]
3
2020-08-17T02:58:11.000Z
2020-08-18T00:03:00.000Z
from django.test import TestCase from rest_framework.test import APIClient
43.515152
112
0.597493
815b05fc82778af22f4d9f4104ce255be5442149
1,937
py
Python
lusidtools/lpt/qry_scopes.py
fossabot/lusid-python-tools
93b2fa8085a0a6550d12d036bd89248aba6e5718
[ "MIT" ]
1
2020-04-27T12:27:23.000Z
2020-04-27T12:27:23.000Z
lusidtools/lpt/qry_scopes.py
entityoneuk/lusid-python-tools
ee13d92673d01cfc9f7c427ed053e7a1e8d64973
[ "MIT" ]
null
null
null
lusidtools/lpt/qry_scopes.py
entityoneuk/lusid-python-tools
ee13d92673d01cfc9f7c427ed053e7a1e8d64973
[ "MIT" ]
null
null
null
import pandas as pd import dateutil from lusidtools.lpt import lpt from lusidtools.lpt import lse from lusidtools.lpt import stdargs from .either import Either import re import urllib.parse rexp = re.compile(r".*page=([^=']{10,}).*") TOOLNAME = "scopes" TOOLTIP = "List scopes" # Standalone tool
26.534247
85
0.575116
815d2bb0d4f56879066adfa37185b3b120de6583
8,457
py
Python
qqbot/qqbotcls.py
skarl-api/qqbot
825ce91c080f4a315860e26df70d687a4ded7159
[ "MIT" ]
null
null
null
qqbot/qqbotcls.py
skarl-api/qqbot
825ce91c080f4a315860e26df70d687a4ded7159
[ "MIT" ]
null
null
null
qqbot/qqbotcls.py
skarl-api/qqbot
825ce91c080f4a315860e26df70d687a4ded7159
[ "MIT" ]
1
2020-03-30T08:06:24.000Z
2020-03-30T08:06:24.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- """ QQBot -- A conversation robot base on Tencent's SmartQQ Website -- https://github.com/pandolia/qqbot/ Author -- pandolia@yeah.net """ import sys, os p = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) if p not in sys.path: sys.path.insert(0, p) import ...
29.262976
78
0.551614
815d74b7b1790e6b997d1b97f06db916a5d075c4
65
py
Python
tests/gear_scripts/buitin_runtime_func_GearsBuilder.py
jsam/redgrease
245755b34bce287c63abb6624478cdf8189816b6
[ "MIT" ]
17
2021-02-26T23:03:39.000Z
2022-01-26T11:21:49.000Z
tests/gear_scripts/buitin_runtime_func_GearsBuilder.py
jsam/redgrease
245755b34bce287c63abb6624478cdf8189816b6
[ "MIT" ]
87
2021-02-16T08:54:59.000Z
2021-08-18T07:21:39.000Z
tests/gear_scripts/buitin_runtime_func_GearsBuilder.py
jsam/redgrease
245755b34bce287c63abb6624478cdf8189816b6
[ "MIT" ]
3
2021-04-21T07:57:43.000Z
2021-10-04T09:13:14.000Z
from redgrease import GearsBuilder gb = GearsBuilder() gb.run()
13
34
0.769231
815eed7c81aa394ca156f60562a609ed561c8f68
4,253
py
Python
tests/tests.py
ActivityWatch/activitywatch-old
e69b071ff701368cee7bac5d01e5936c200e58be
[ "MIT" ]
4
2017-01-30T16:27:18.000Z
2017-09-28T19:14:13.000Z
tests/tests.py
ActivityWatch/activitywatch-old
e69b071ff701368cee7bac5d01e5936c200e58be
[ "MIT" ]
null
null
null
tests/tests.py
ActivityWatch/activitywatch-old
e69b071ff701368cee7bac5d01e5936c200e58be
[ "MIT" ]
2
2020-06-22T07:11:51.000Z
2020-12-11T02:46:22.000Z
from copy import copy from itertools import groupby import unittest from datetime import datetime, timedelta from typing import List from activitywatch.base import Watcher, Activity, Logger from activitywatch.settings import Settings from activitywatch.utils import floor_datetime, ceil_datetime from activitywatch.filt...
32.715385
105
0.652481
815ef73f8d3016d9f5e536e42e63dc78b0cafca1
254,077
py
Python
lang/it/basic_vocabulary_it.py
gtoffoli/commons-cops
e4b1f556c550e25bb2e6a9eabe8db963877c08d3
[ "MIT" ]
5
2016-11-13T02:41:02.000Z
2020-01-20T10:01:26.000Z
lang/it/basic_vocabulary_it.py
gtoffoli/commons
8b51a08a37c6d0b38fd4ecde82c20036c2dc168f
[ "MIT" ]
null
null
null
lang/it/basic_vocabulary_it.py
gtoffoli/commons
8b51a08a37c6d0b38fd4ecde82c20036c2dc168f
[ "MIT" ]
null
null
null
voc_it = [ ['a', 'noun', 'c'], ['a', 'preposition', 'a'], ['abbagliante', 'pres_part', 'c'], ['abbagliante', 'adjective', 'c'], ['abbagliante', 'noun', 'c'], ['abbaiare', 'verb', 'c'], ['abbandonare', 'verb', 'a'], ['abbandonato', 'past_part', 'b'], ['abbandonato', 'adjective', 'b'], ['abbandono', 'noun', 'b'], ['abbas...
28.130757
40
0.50236
81603469dc6c0438b2388abedcbbaed330402503
940
py
Python
pytorch/torch/_utils_internal.py
raghavnauhria/whatmt
c20483a437c82936cb0fb8080925e37b9c4bba87
[ "MIT" ]
15
2019-08-10T02:36:38.000Z
2021-07-14T13:45:32.000Z
torch/_utils_internal.py
wxwoods/mctorch
7cd6eb51fdd01fa75ed9245039a4f145ba342de2
[ "BSD-3-Clause" ]
7
2019-10-21T03:08:51.000Z
2022-03-11T23:54:28.000Z
pytorch/torch/_utils_internal.py
raghavnauhria/whatmt
c20483a437c82936cb0fb8080925e37b9c4bba87
[ "MIT" ]
5
2019-09-27T02:41:40.000Z
2021-11-05T20:40:49.000Z
from __future__ import absolute_import, division, print_function, unicode_literals import os # this arbitrary-looking assortment of functionality is provided here # to have a central place for overrideable behavior. The motivating # use is the FB build environment, where this source file is replaced # by an equivalen...
24.736842
82
0.774468
816071ad63a52503bfce3572b1ef2ec295dea013
9,099
py
Python
libs/models.py
aquastripe/DenseCLIP
9481bc4aac39265eb313041ae53b8f33d755508b
[ "Apache-2.0" ]
7
2022-02-02T14:34:38.000Z
2022-03-21T09:54:14.000Z
libs/models.py
aquastripe/DenseCLIP
9481bc4aac39265eb313041ae53b8f33d755508b
[ "Apache-2.0" ]
null
null
null
libs/models.py
aquastripe/DenseCLIP
9481bc4aac39265eb313041ae53b8f33d755508b
[ "Apache-2.0" ]
null
null
null
import json from collections import OrderedDict from typing import Union, List import clip import torch import torch.nn as nn import torch.nn.functional as F from libs.definitions import ROOT label_file = ROOT / 'imagenet_class_index.json' with open(label_file, 'r') as f: labels = json.load(f) _DEFAULT_CLASSNAM...
35.964427
116
0.593032
8160fc2ecf8175573434885167d35e68b574a5af
11,463
py
Python
src/basset_sick_loss.py
shtoneyan/Basset
b6c7f8995bb4f8fc37eccf3ee0f78478beef51d7
[ "MIT" ]
248
2015-10-06T12:30:53.000Z
2022-02-02T20:30:34.000Z
src/basset_sick_loss.py
Deepstatsanalysis/Basset
18753ad9ff5a46291021a0fa1abaad037b6f64f0
[ "MIT" ]
51
2015-10-08T04:57:41.000Z
2021-08-12T19:53:04.000Z
src/basset_sick_loss.py
Deepstatsanalysis/Basset
18753ad9ff5a46291021a0fa1abaad037b6f64f0
[ "MIT" ]
120
2015-10-15T00:49:44.000Z
2022-02-16T21:17:17.000Z
#!/usr/bin/env python from __future__ import print_function from optparse import OptionParser import os import random import subprocess import matplotlib matplotlib.use('Agg') import numpy as np import matplotlib.pyplot as plt import pysam from scipy.stats import binom from scipy.stats.mstats import mquantiles import...
34.527108
175
0.566693
816115c45af8c3075e38530126280e891f465fb7
1,657
py
Python
level2/huge/split_huge_from_tar_strace.py
fishilico/sstic-2016
9a05bb18df4c8d2e76f1e30fda6b38b1bc930e8c
[ "Beerware" ]
null
null
null
level2/huge/split_huge_from_tar_strace.py
fishilico/sstic-2016
9a05bb18df4c8d2e76f1e30fda6b38b1bc930e8c
[ "Beerware" ]
null
null
null
level2/huge/split_huge_from_tar_strace.py
fishilico/sstic-2016
9a05bb18df4c8d2e76f1e30fda6b38b1bc930e8c
[ "Beerware" ]
1
2020-04-03T06:19:11.000Z
2020-04-03T06:19:11.000Z
#!/usr/bin/env python3 import codecs import re def trans_addr(addr): """Traduit une position de fichier en une adresse du programme""" if addr < 0x1000: return 0 if 0x0000000000001000 <= addr < 0x0000000000001000 + 0x00001ef000000000: return 0x00002b0000000000 + addr - 0x0000000000001000 ...
36.822222
76
0.569101
81617162fc6604315b045e09dee8878d1bf83430
4,826
py
Python
UI/test/ui_test.py
tunapro1234/ai.destroy
0c0e1be378e40ef069fcafaa91eb9c98de31520f
[ "MIT" ]
null
null
null
UI/test/ui_test.py
tunapro1234/ai.destroy
0c0e1be378e40ef069fcafaa91eb9c98de31520f
[ "MIT" ]
null
null
null
UI/test/ui_test.py
tunapro1234/ai.destroy
0c0e1be378e40ef069fcafaa91eb9c98de31520f
[ "MIT" ]
null
null
null
import pygame_gui import pygame TITLE = "TUNAPRO1234" BACKGROUND = colors.darkslategray WIDTH, HEIGHT = 1920, 1080 """ Hzlca bir plan yapacam Neural alar kontrol edebileceimiz kk bir framework Alarn geliimini grebileceiz deitirebileceiz ve kaydedebileceiz Bunun iin -select box yaps -balatmak iin buton -kayd...
33.282759
187
0.643804
8163184bea4450d8faedd6f3d068c99c6560b188
2,814
py
Python
tests/test_temperature_system.py
SmartSleepIoT/SmartSleepCoding
21c19489f0c477cbfbabd3a1d232f526f84a9e49
[ "BSD-3-Clause" ]
null
null
null
tests/test_temperature_system.py
SmartSleepIoT/SmartSleepCoding
21c19489f0c477cbfbabd3a1d232f526f84a9e49
[ "BSD-3-Clause" ]
41
2021-10-20T17:54:59.000Z
2022-02-02T20:43:53.000Z
tests/test_temperature_system.py
SmartSleepIoT/SmartSleepCoding
21c19489f0c477cbfbabd3a1d232f526f84a9e49
[ "BSD-3-Clause" ]
null
null
null
import time import pytest from flask import g from flask import session import paho.mqtt.client as paho from SmartSleep.db import get_db from flask import json import runpy msg_nr = 0 messages = [""] broker = 'broker.emqx.io' port = 1883
29.621053
105
0.646411
81642e5d95ded6a23159027c35921f4b03706531
136
py
Python
3_gabor/model/gabor_rf/maprf/invlink.py
mackelab/IdentifyMechanisticModels_2020
b93c90ec6156ae5f8afee6aaac7317373e9caf5e
[ "MIT" ]
3
2020-10-23T02:53:11.000Z
2021-03-12T11:04:37.000Z
3_gabor/model/gabor_rf/maprf/invlink.py
mackelab/IdentifyMechanisticModels_2020
b93c90ec6156ae5f8afee6aaac7317373e9caf5e
[ "MIT" ]
null
null
null
3_gabor/model/gabor_rf/maprf/invlink.py
mackelab/IdentifyMechanisticModels_2020
b93c90ec6156ae5f8afee6aaac7317373e9caf5e
[ "MIT" ]
1
2021-07-28T08:38:05.000Z
2021-07-28T08:38:05.000Z
import theano.tensor as tt
12.363636
42
0.639706
81643c548f00589437ba73490093135a47e9e5d0
470
py
Python
readtest.py
pyEtherCAT/Test-Source
32e7f36873cf311580acc25ab76db589e209e479
[ "MIT" ]
null
null
null
readtest.py
pyEtherCAT/Test-Source
32e7f36873cf311580acc25ab76db589e209e479
[ "MIT" ]
null
null
null
readtest.py
pyEtherCAT/Test-Source
32e7f36873cf311580acc25ab76db589e209e479
[ "MIT" ]
null
null
null
from pyEtherCAT import MasterEtherCAT # nic = "eth0" # cat = MasterEtherCAT.MasterEtherCAT(nic) ADP = 0x0000 #1 ADDR = 0x0E00 # cat.APRD(IDX=0x00, ADP=ADP, ADO=ADDR, DATA=[0,0,0,0,0,0,0,0]) #DATA(64bit) (DATA, WKC) = cat.socket_read() # print("[0x{:04X}]= 0x{:02x}{:02x},0x{:02x}{:02x},0x{:02x}{:02x},0x{:02x}{:02x}"...
47
158
0.691489
8167b0d56a737d008f46fbbcfb74a28e00ab2a2b
1,353
py
Python
python/dataingest/grammar/dmo/python_loc_parser.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
python/dataingest/grammar/dmo/python_loc_parser.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
python/dataingest/grammar/dmo/python_loc_parser.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- import pprint from base import BaseObject from base import FileIO
24.160714
103
0.554324
8168288e7e0624056cb2c2cd06a6e71eb7b00f91
255
py
Python
time_series_data_generator/csv_to_df_generator.py
ArtHackDay-Plus1/ParameterServer
5e6e57154d2d29e311b9a725fd3b9ac8c5b99a74
[ "MIT" ]
null
null
null
time_series_data_generator/csv_to_df_generator.py
ArtHackDay-Plus1/ParameterServer
5e6e57154d2d29e311b9a725fd3b9ac8c5b99a74
[ "MIT" ]
7
2018-03-10T09:44:34.000Z
2018-06-17T09:44:59.000Z
time_series_data_generator/csv_to_df_generator.py
ArtHackDay-Plus1/ParameterServer
5e6e57154d2d29e311b9a725fd3b9ac8c5b99a74
[ "MIT" ]
1
2018-03-10T04:56:01.000Z
2018-03-10T04:56:01.000Z
import pandas as pd import time df = pd.read_csv("data/sample.csv") for num in range(1000): argx = str(df["x"][num:num+1].get_values()) argy = str(df["y"][num:num+1].get_values()) print("x:{0} / y:{1}".format(argx,argy)) time.sleep(0.1)
23.181818
47
0.611765
816842032e46719c27ed0ea91d613473a3f094ca
601
py
Python
architecture_tool_django/graphdefs/urls.py
goldginkgo/architecture_tool_django
e4229c5938a4dd01d0877afa7b93daf68e09283b
[ "MIT" ]
1
2021-08-13T01:37:29.000Z
2021-08-13T01:37:29.000Z
architecture_tool_django/graphdefs/urls.py
goldginkgo/architecture_tool_django
e4229c5938a4dd01d0877afa7b93daf68e09283b
[ "MIT" ]
null
null
null
architecture_tool_django/graphdefs/urls.py
goldginkgo/architecture_tool_django
e4229c5938a4dd01d0877afa7b93daf68e09283b
[ "MIT" ]
1
2021-07-19T07:57:54.000Z
2021-07-19T07:57:54.000Z
from django.urls import path from . import views app_name = "graphs" urlpatterns = [ path("graphs/", views.GraphListView.as_view(), name="graph.list"), path("graphs/create/", views.GraphCreateView.as_view(), name="graph.create"), path( "graphs/<str:pk>/", views.GraphDetailView.as_view(), ...
24.04
81
0.587354
81690ba836e0e2d1c0fdfb89754bbbb996e53c02
2,823
py
Python
lib/utils/blob.py
TheRevanchist/DeepWatershedDetection
6d8f3b3ca6db67bcebef8e18fb11248e15bd9dc4
[ "MIT" ]
null
null
null
lib/utils/blob.py
TheRevanchist/DeepWatershedDetection
6d8f3b3ca6db67bcebef8e18fb11248e15bd9dc4
[ "MIT" ]
null
null
null
lib/utils/blob.py
TheRevanchist/DeepWatershedDetection
6d8f3b3ca6db67bcebef8e18fb11248e15bd9dc4
[ "MIT" ]
null
null
null
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick - extended by Lukas Tuggener # -------------------------------------------------------- """Blob helper functions.""" from __future...
32.825581
111
0.631598
81691bebff51090814a13a3ea3f9262d90d38a7b
1,022
py
Python
edlm/convert/_get_media_folders.py
etcher-be/EDLM
7b25c85252fd15c2c222b00271f7a32e335db704
[ "MIT" ]
null
null
null
edlm/convert/_get_media_folders.py
etcher-be/EDLM
7b25c85252fd15c2c222b00271f7a32e335db704
[ "MIT" ]
4
2020-03-24T16:53:26.000Z
2020-06-26T08:31:13.000Z
edlm/convert/_get_media_folders.py
etcher-be/EDLM
7b25c85252fd15c2c222b00271f7a32e335db704
[ "MIT" ]
null
null
null
# coding=utf-8 """ Gathers the media folders """ import elib from ._context import Context def get_media_folders(ctx: Context): """ Gathers the media folders """ ctx.info('gathering media folders') media_folders = [] this_folder = ctx.source_folder while True: ctx.debug(f'trave...
28.388889
105
0.672211
8169c20b93a9491060201043f0c1a523fd5bc8ec
1,924
py
Python
twister2/python-support/src/main/python/twister2/tset/TLink.py
pulasthi/twister2
40b73bdf7dcb778d957c3f146baf825a97dceae5
[ "Apache-2.0" ]
63
2017-08-31T10:02:52.000Z
2021-12-18T21:42:14.000Z
twister2/python-support/src/main/python/twister2/tset/TLink.py
pulasthi/twister2
40b73bdf7dcb778d957c3f146baf825a97dceae5
[ "Apache-2.0" ]
284
2017-10-20T15:35:26.000Z
2020-09-11T15:25:40.000Z
twister2/python-support/src/main/python/twister2/tset/TLink.py
pulasthi/twister2
40b73bdf7dcb778d957c3f146baf825a97dceae5
[ "Apache-2.0" ]
44
2017-08-21T19:47:57.000Z
2020-11-22T22:45:50.000Z
from inspect import signature import twister2.tset.TSet as ts from twister2.utils import function_wrapper
42.755556
96
0.72817
816e5b3d645c0e4cb41592db326d16685c653103
9,373
py
Python
e2cnn/nn/modules/nonlinearities/concatenated.py
ziatdinovmax/e2cnn
e486a0d2cec71f2bde2d61f2f1315922f2883cee
[ "BSD-3-Clause" ]
null
null
null
e2cnn/nn/modules/nonlinearities/concatenated.py
ziatdinovmax/e2cnn
e486a0d2cec71f2bde2d61f2f1315922f2883cee
[ "BSD-3-Clause" ]
null
null
null
e2cnn/nn/modules/nonlinearities/concatenated.py
ziatdinovmax/e2cnn
e486a0d2cec71f2bde2d61f2f1315922f2883cee
[ "BSD-3-Clause" ]
null
null
null
from e2cnn.gspaces import * from e2cnn.nn import FieldType from e2cnn.nn import GeometricTensor from e2cnn.group import Representation from e2cnn.group.representation import build_from_discrete_group_representation from ..equivariant_module import EquivariantModule import torch from typing import List, Tuple, Any i...
37.047431
124
0.559159
81710a8f5de8e268c2f9c31947a6e69ae41e9b04
2,551
py
Python
modules/gathering/host_gathering.py
anouarbensaad/VulnX
2f9f46e59f28ceb6d5cf3bfacd9810d43b4b25cb
[ "MIT" ]
10
2019-05-10T04:43:54.000Z
2019-05-16T00:45:46.000Z
modules/gathering/host_gathering.py
anouarbensaad/VulnX
2f9f46e59f28ceb6d5cf3bfacd9810d43b4b25cb
[ "MIT" ]
null
null
null
modules/gathering/host_gathering.py
anouarbensaad/VulnX
2f9f46e59f28ceb6d5cf3bfacd9810d43b4b25cb
[ "MIT" ]
8
2019-05-13T04:25:11.000Z
2019-05-15T02:47:49.000Z
import requests import re import socket from common.colors import bad,que, info, good,run,W,end from common.uriParser import parsing_url as hostd
42.516667
95
0.53822
8171ba68e87f53d5c2ecb6dd90deb2acd88e328d
34,379
py
Python
datastore/core/basic.py
datastore/datastore
7ccf0cd4748001d3dbf5e6dda369b0f63e0269d3
[ "MIT" ]
65
2015-03-22T23:43:48.000Z
2022-03-25T16:10:33.000Z
datastore/core/basic.py
datastore/datastore
7ccf0cd4748001d3dbf5e6dda369b0f63e0269d3
[ "MIT" ]
3
2015-03-11T21:57:23.000Z
2019-07-26T16:20:29.000Z
datastore/core/basic.py
datastore/datastore
7ccf0cd4748001d3dbf5e6dda369b0f63e0269d3
[ "MIT" ]
14
2015-01-23T17:03:33.000Z
2020-02-03T06:35:04.000Z
from key import Key from query import Cursor ''' Hello Tiered Access >>> import pymongo >>> import datastore.core >>> >>> from datastore.impl.mongo import MongoDatastore >>> from datastore.impl.lrucache import LRUCache >>> from datastore.imp...
28.53029
80
0.651706
8173b9a0c93895ba388cef8eeda4fb14eb4184e3
15,988
py
Python
website/admin.py
jonfroehlich/makeabilitylabwebsite
0b322b5a172cf1d4edc63559e3de713ad3e3542c
[ "MIT" ]
2
2017-06-19T02:24:48.000Z
2018-10-25T09:14:59.000Z
website/admin.py
jonfroehlich/makeabilitylabwebsite
0b322b5a172cf1d4edc63559e3de713ad3e3542c
[ "MIT" ]
571
2017-06-14T13:38:45.000Z
2020-07-17T18:15:58.000Z
website/admin.py
jonfroehlich/makeabilitylabwebsite
0b322b5a172cf1d4edc63559e3de713ad3e3542c
[ "MIT" ]
7
2017-12-06T21:51:29.000Z
2020-06-18T19:58:36.000Z
from django.contrib import admin from django.contrib.admin import widgets from .models import Person, Publication, Position, Talk, Project, Poster, Keyword, News, Banner, Video, Project_header, Photo, Project_umbrella, Project_Role, Sponsor from website.admin_list_filters import PositionRoleListFilter, PositionTitleLis...
58.99631
185
0.714411
8173fb74546ca4fcfb60600f03ab6b477c4abacb
6,191
py
Python
python/annotation_orthologs_inference.py
liebermanlab/wide-variant
2fe4c54d1e4bcf0e5e06313cc9696588ab105653
[ "Unlicense" ]
null
null
null
python/annotation_orthologs_inference.py
liebermanlab/wide-variant
2fe4c54d1e4bcf0e5e06313cc9696588ab105653
[ "Unlicense" ]
null
null
null
python/annotation_orthologs_inference.py
liebermanlab/wide-variant
2fe4c54d1e4bcf0e5e06313cc9696588ab105653
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Jun 26 21:39:04 2019 @author: fmk """ import argparse,subprocess,string,random import pandas as pd ''' positional and optional argument parser''' parser = argparse.ArgumentParser(formatter_class=argparse.RawDescriptionHelpFormatter, ...
45.189781
182
0.65466
81740534e476d32c799f65e43f16716d4ed45822
708
py
Python
tests/test_vtable.py
matthewpruett/angr
bfba2af1ea2eb941001339f47a1264a685c60eec
[ "BSD-2-Clause" ]
6,132
2015-08-06T23:24:47.000Z
2022-03-31T21:49:34.000Z
tests/test_vtable.py
matthewpruett/angr
bfba2af1ea2eb941001339f47a1264a685c60eec
[ "BSD-2-Clause" ]
2,272
2015-08-10T08:40:07.000Z
2022-03-31T23:46:44.000Z
tests/test_vtable.py
matthewpruett/angr
bfba2af1ea2eb941001339f47a1264a685c60eec
[ "BSD-2-Clause" ]
1,155
2015-08-06T23:37:39.000Z
2022-03-31T05:54:11.000Z
import os import angr test_location = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..', 'binaries', 'tests') if __name__ == "__main__": test_vtable_extraction_x86_64()
32.181818
107
0.689266
81741edd16ac8dabfdb435a60121ed91382e9d89
465
py
Python
sendmail.py
loitd/buzreportgenerator
8d07be40b68859ca15173f3b229dd93f6bb39809
[ "MIT" ]
null
null
null
sendmail.py
loitd/buzreportgenerator
8d07be40b68859ca15173f3b229dd93f6bb39809
[ "MIT" ]
null
null
null
sendmail.py
loitd/buzreportgenerator
8d07be40b68859ca15173f3b229dd93f6bb39809
[ "MIT" ]
null
null
null
from zeep import Client if __name__ == "__main__": test2()
33.214286
131
0.696774
8174be4107d534513138717c81ca4815dbd17aaf
2,760
py
Python
pommerman/agents/http_agent.py
KaixiangLin/playground
a0eb299f4772bada1c528a881f3bf26404b131aa
[ "Apache-2.0" ]
2
2018-11-10T08:31:13.000Z
2018-11-13T08:16:45.000Z
pommerman/agents/http_agent.py
KaixiangLin/playground
a0eb299f4772bada1c528a881f3bf26404b131aa
[ "Apache-2.0" ]
null
null
null
pommerman/agents/http_agent.py
KaixiangLin/playground
a0eb299f4772bada1c528a881f3bf26404b131aa
[ "Apache-2.0" ]
null
null
null
'''The HTTP agent - provides observation using http push to remote agent and expects action in the reply''' import json import time import os import threading import requests from . import BaseAgent from .. import utility from .. import characters
34.074074
81
0.544565
8174d6a81d47ed944222a745013e7d241d84e72a
737
py
Python
cacao_app/event/serializers.py
CacaoMovil/guia-de-cacao-django
14d18edb76502736f6f31955509c3b413f1f91fc
[ "BSD-3-Clause" ]
1
2016-03-07T17:03:45.000Z
2016-03-07T17:03:45.000Z
cacao_app/event/serializers.py
CacaoMovil/guia-de-cacao-django
14d18edb76502736f6f31955509c3b413f1f91fc
[ "BSD-3-Clause" ]
4
2016-04-29T20:48:31.000Z
2021-06-10T20:39:26.000Z
cacao_app/event/serializers.py
CacaoMovil/guia-de-cacao-django
14d18edb76502736f6f31955509c3b413f1f91fc
[ "BSD-3-Clause" ]
3
2016-03-04T19:46:45.000Z
2016-05-11T19:46:00.000Z
# -*- coding: utf-8 -*- from rest_framework import serializers from django_countries.serializer_fields import CountryField from .models import Event, CountryEvent
25.413793
70
0.693351
817503f7a5b9852ce0db8730044ea4170fe4eb91
13,998
py
Python
examples/map.py
jlsajfj/NBT
a7aaaadce423cd50f941ccd5cd25fbd071651336
[ "MIT" ]
241
2015-01-14T22:49:03.000Z
2022-03-17T06:46:44.000Z
examples/map.py
jlsajfj/NBT
a7aaaadce423cd50f941ccd5cd25fbd071651336
[ "MIT" ]
78
2015-01-02T15:01:06.000Z
2022-03-12T16:06:23.000Z
examples/map.py
jlsajfj/NBT
a7aaaadce423cd50f941ccd5cd25fbd071651336
[ "MIT" ]
87
2015-01-24T20:02:29.000Z
2022-03-17T21:32:24.000Z
#!/usr/bin/env python """ Prints a map of the entire world. """ import os, sys import math from struct import pack # local module try: import nbt except ImportError: # nbt not in search path. Let's see if it can be found in the parent folder extrasearchpath = os.path.realpath(os.path.join(__file__,os.pardi...
41.660714
128
0.473282
81763b53608a015d4f73d9be3a5324c6bd08db61
136
py
Python
flaskcbv/protos/simple/apps/main/urls.py
procool/flaskcbv
18c254c10ef03145073e1264a06a0313e811ad29
[ "BSD-2-Clause" ]
1
2020-02-24T13:08:16.000Z
2020-02-24T13:08:16.000Z
flaskcbv/protos/simple/apps/main/urls.py
procool/flaskcbv
18c254c10ef03145073e1264a06a0313e811ad29
[ "BSD-2-Clause" ]
null
null
null
flaskcbv/protos/simple/apps/main/urls.py
procool/flaskcbv
18c254c10ef03145073e1264a06a0313e811ad29
[ "BSD-2-Clause" ]
null
null
null
from flaskcbv.url import Url, make_urls from .views import mainView namespases = make_urls( Url('', mainView(), name="main"), )
13.6
39
0.691176
81770013c6cc12c6db69c1cb5d883f8060329eda
536
py
Python
main/permissions.py
hellojoshuatonga/notepik
8f251fe9a689a9be8248d4da6260fe7c8742e3c0
[ "MIT" ]
null
null
null
main/permissions.py
hellojoshuatonga/notepik
8f251fe9a689a9be8248d4da6260fe7c8742e3c0
[ "MIT" ]
null
null
null
main/permissions.py
hellojoshuatonga/notepik
8f251fe9a689a9be8248d4da6260fe7c8742e3c0
[ "MIT" ]
null
null
null
# Rest framework from rest_framework import permissions
35.733333
175
0.718284
8177b1f754a6ce02d1d064390b7211e8eae1df80
8,595
py
Python
femagtools/vtu.py
dapu/femagtools
95eaf750adc2013232cdf482e523b3900ac6eb08
[ "BSD-2-Clause" ]
null
null
null
femagtools/vtu.py
dapu/femagtools
95eaf750adc2013232cdf482e523b3900ac6eb08
[ "BSD-2-Clause" ]
null
null
null
femagtools/vtu.py
dapu/femagtools
95eaf750adc2013232cdf482e523b3900ac6eb08
[ "BSD-2-Clause" ]
null
null
null
""" femagtools.vtu ~~~~~~~~~~~~~~ Read FEMAG vtu files """ import vtk import pathlib import numpy as np def read(filename): """ Read vtu file and return Reader object. Arguments: filename: name of vtu file to be read """ return Reader(filename)
31.254545
83
0.52135
81780d1d21d48080345dc52c64611a0acffa03d7
232
py
Python
__init__.py
rolc/python-package
272fb6da9d7aa3c2a0c53dea6d4e958409ac5d12
[ "MIT" ]
null
null
null
__init__.py
rolc/python-package
272fb6da9d7aa3c2a0c53dea6d4e958409ac5d12
[ "MIT" ]
null
null
null
__init__.py
rolc/python-package
272fb6da9d7aa3c2a0c53dea6d4e958409ac5d12
[ "MIT" ]
null
null
null
#!/usr/bin/python #-------------------------------IMPORT--------------------------------# from lib import * #-------------------------------EXPORT--------------------------------# __all__ = ['<#PREFIX#>_app','<#PREFIX#>_index']
23.2
71
0.284483
81787499b7aab46ab4834d4e0428415d4b205073
916
py
Python
svm-rank/bag_of_words.py
Anthony-Alridge/individual_project
9013aba2de92099dea5a703486da3dfab1dfbb61
[ "MIT" ]
null
null
null
svm-rank/bag_of_words.py
Anthony-Alridge/individual_project
9013aba2de92099dea5a703486da3dfab1dfbb61
[ "MIT" ]
null
null
null
svm-rank/bag_of_words.py
Anthony-Alridge/individual_project
9013aba2de92099dea5a703486da3dfab1dfbb61
[ "MIT" ]
null
null
null
from collections import Counter import numpy as np
28.625
101
0.663755
81788a0ffc02bedb32998891f0a147adfc80c30e
1,507
py
Python
pymps/ansatz/tests/test_sweeper.py
GiggleLiu/pymps
c8314581010d68d3fa34af6e87b6af2969fc261d
[ "MIT" ]
4
2018-02-17T05:35:54.000Z
2021-09-12T10:14:57.000Z
pymps/ansatz/tests/test_sweeper.py
GiggleLiu/pymps
c8314581010d68d3fa34af6e87b6af2969fc261d
[ "MIT" ]
null
null
null
pymps/ansatz/tests/test_sweeper.py
GiggleLiu/pymps
c8314581010d68d3fa34af6e87b6af2969fc261d
[ "MIT" ]
null
null
null
#!/usr/bin/python ''' Tests for MPS and MPO ''' from numpy import * import matplotlib.pyplot as plt from numpy.testing import dec, assert_, assert_raises, assert_almost_equal, assert_allclose import pdb from ..sweep import * if __name__ == '__main__': test_iterator()
31.395833
91
0.512276
8178e5a5cdd16d8a39e43e9f1e2b33dd9e55953c
4,471
py
Python
ui/numbered_menu.py
LouisPi/PiPortableRecorder
430a4b6e1e869cbd68fd89bbf97261710fd7db6b
[ "Apache-2.0", "MIT" ]
51
2017-12-03T21:59:13.000Z
2021-01-02T17:13:34.000Z
ui/numbered_menu.py
LouisPi/PiPortableRecorder
430a4b6e1e869cbd68fd89bbf97261710fd7db6b
[ "Apache-2.0", "MIT" ]
153
2017-10-27T19:59:46.000Z
2020-01-14T23:58:57.000Z
ui/numbered_menu.py
LouisPi/PiPortableRecorder
430a4b6e1e869cbd68fd89bbf97261710fd7db6b
[ "Apache-2.0", "MIT" ]
26
2017-11-16T11:10:56.000Z
2022-03-29T18:44:48.000Z
from threading import Lock from time import time from ui import Menu from ui.utils import clamp, check_value_lock, to_be_foreground
33.616541
116
0.635652
8179e93b1b83227b20bf562f4c5eea1ac565d48c
358
py
Python
Math/RussianPeasantMultiplication.py
kopok2/algorithms
efb6a423a8447d99584335e9fef8d9b3c74e2ad8
[ "MIT" ]
null
null
null
Math/RussianPeasantMultiplication.py
kopok2/algorithms
efb6a423a8447d99584335e9fef8d9b3c74e2ad8
[ "MIT" ]
null
null
null
Math/RussianPeasantMultiplication.py
kopok2/algorithms
efb6a423a8447d99584335e9fef8d9b3c74e2ad8
[ "MIT" ]
null
null
null
# coding=utf-8 """Russian Peasant Multiplication algorithm Python implementation.""" if __name__ == '__main__': for x in range(10): for y in range(10): print(x, y, x * y, russ_peasant(x, y))
18.842105
69
0.511173
817a13b6a8ab8c5ae685c931b654984848f5a51f
36,420
py
Python
bustime/requestmock.py
RemyPorter/BusTimeClient
a0bd3ef7e24e132e964e6847261ed6888e5735ee
[ "MIT" ]
2
2017-06-24T14:10:42.000Z
2018-02-16T20:44:07.000Z
bustime/requestmock.py
RemyPorter/BusTimeClient
a0bd3ef7e24e132e964e6847261ed6888e5735ee
[ "MIT" ]
null
null
null
bustime/requestmock.py
RemyPorter/BusTimeClient
a0bd3ef7e24e132e964e6847261ed6888e5735ee
[ "MIT" ]
null
null
null
from urllib.parse import urlparse, parse_qs from io import BytesIO import json
337.222222
33,400
0.578913
817aa92cbced1c3e3227a2a7dec4ed035c84f33f
1,589
py
Python
Assignment 4/src/optim/lr_scheduler.py
vamsi3/CS763-IIT-Bombay
2c4650587eee8bb15944b95101b7434746ec03af
[ "MIT" ]
1
2022-01-28T12:21:36.000Z
2022-01-28T12:21:36.000Z
Assignment 4/src/optim/lr_scheduler.py
vamsi3/IITB-Computer-Vision
2c4650587eee8bb15944b95101b7434746ec03af
[ "MIT" ]
null
null
null
Assignment 4/src/optim/lr_scheduler.py
vamsi3/IITB-Computer-Vision
2c4650587eee8bb15944b95101b7434746ec03af
[ "MIT" ]
null
null
null
import math import torch from bisect import bisect_right
29.425926
120
0.668345
817af60b313398519be2e69061cd3bf593b81217
2,972
py
Python
gluon/dal/adapters/teradata.py
lightcoder127/Web2py
d604816b487aaf758075805cffdb89f45dea906e
[ "BSD-3-Clause" ]
2
2017-02-02T00:31:48.000Z
2017-08-08T22:36:25.000Z
gluon/dal/adapters/teradata.py
crania/containerservices
0ffbadb3b5a259abc74ed433b69bf6342b99ef83
[ "BSD-3-Clause" ]
null
null
null
gluon/dal/adapters/teradata.py
crania/containerservices
0ffbadb3b5a259abc74ed433b69bf6342b99ef83
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from .._globals import IDENTITY from ..connection import ConnectionPool from .base import BaseAdapter
38.102564
156
0.601615
817bffa6766be54af974175321c8e15902437d0a
8,367
py
Python
conan_tests/external_tools/vswhere_test.py
conan-io/test
273835a701aca3934694dfa1ec082e58d5332660
[ "MIT" ]
2
2019-02-09T10:18:25.000Z
2020-12-15T22:22:03.000Z
conan_tests/external_tools/vswhere_test.py
conan-io/test
273835a701aca3934694dfa1ec082e58d5332660
[ "MIT" ]
9
2018-02-22T21:42:17.000Z
2020-10-16T03:54:19.000Z
conan_tests/external_tools/vswhere_test.py
conan-io/test
273835a701aca3934694dfa1ec082e58d5332660
[ "MIT" ]
7
2017-12-19T09:35:31.000Z
2020-09-23T16:17:59.000Z
import os import platform import unittest import nose from conans import tools from conans.errors import ConanException from conans.model.version import Version from conans import __version__ as client_version from conans.model import settings from conans.test.utils.tools import TestClient from conans.test.assets.vis...
45.472826
126
0.676826
817dad7fd6fc56d0d2967576e42cee9331599cf9
7,797
py
Python
pinliner/pinliner.py
minazukie/pinliner
4d1f879a8df2b03e7335536735840274bbb26416
[ "Apache-2.0" ]
53
2016-03-29T10:30:41.000Z
2022-03-23T17:49:38.000Z
pinliner/pinliner.py
minazukie/pinliner
4d1f879a8df2b03e7335536735840274bbb26416
[ "Apache-2.0" ]
4
2017-07-21T15:21:54.000Z
2022-03-17T19:51:07.000Z
pinliner/pinliner.py
minazukie/pinliner
4d1f879a8df2b03e7335536735840274bbb26416
[ "Apache-2.0" ]
9
2017-07-21T18:05:45.000Z
2022-01-15T19:57:00.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import import argparse import json import os from pinliner import __version__ import sys TEMPLATE_FILE = 'importer.template' TEMPLATE_PATTERN = '${CONTENTS}' if __name__ == '__main__': main()
36.434579
79
0.62896
817e1fdfe583e5b2b44c9f5c5fb7e9b12305519f
305
py
Python
list_s3_buckets.py
MarijaKalebota/aws-playground
2aaf3da65ba3f0cc5c2c222a10659d219f9136e8
[ "MIT" ]
null
null
null
list_s3_buckets.py
MarijaKalebota/aws-playground
2aaf3da65ba3f0cc5c2c222a10659d219f9136e8
[ "MIT" ]
null
null
null
list_s3_buckets.py
MarijaKalebota/aws-playground
2aaf3da65ba3f0cc5c2c222a10659d219f9136e8
[ "MIT" ]
null
null
null
from dotenv import load_dotenv load_dotenv() import os import boto3 #s3 = boto3.resource('s3') s3 = boto3.resource('s3', aws_access_key_id=os.environ.get("AWS_KEY_ID"), aws_secret_access_key=os.environ.get("AWS_SECRET_KEY")) for bucket in s3.buckets.all(): print(bucket.name)
23.461538
77
0.704918
817ee460ad53e44fa65e444a49afe839ce9a20b2
2,570
py
Python
GAScore/testbench/hold_buffer.py
sharm294/shoal
db7dd08a70882585fb9740a39b57b4b7a48b3081
[ "MIT" ]
1
2021-04-12T06:41:33.000Z
2021-04-12T06:41:33.000Z
GAScore/testbench/hold_buffer.py
UofT-HPRC/shoal
db7dd08a70882585fb9740a39b57b4b7a48b3081
[ "MIT" ]
null
null
null
GAScore/testbench/hold_buffer.py
UofT-HPRC/shoal
db7dd08a70882585fb9740a39b57b4b7a48b3081
[ "MIT" ]
null
null
null
import os from sonar.testbench import Testbench, Module, TestVector, Thread from sonar.interfaces import AXIS from sonar_strToInt import strToInt hold_buffer = Testbench.default('hold_buffer') filepath = os.path.join(os.path.dirname(__file__), 'build/hold_buffer/') dut = Module.default("DUT") dut.add_clock_port('ap...
27.934783
95
0.614008
8180ea48ed0eaf64449e035d61a657bb7146e229
16,957
py
Python
vaxtools/utils/pair.py
menis/vaxtools
221343d0a2b9ecefc777ff5a94cb12eaa1524813
[ "MIT" ]
null
null
null
vaxtools/utils/pair.py
menis/vaxtools
221343d0a2b9ecefc777ff5a94cb12eaa1524813
[ "MIT" ]
null
null
null
vaxtools/utils/pair.py
menis/vaxtools
221343d0a2b9ecefc777ff5a94cb12eaa1524813
[ "MIT" ]
1
2018-10-10T21:59:08.000Z
2018-10-10T21:59:08.000Z
#!/usr/bin/env python # filename: pair.py # # Copyright (c) 2015 Bryan Briney # License: The MIT license (http://opensource.org/licenses/MIT) # # 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...
37.766147
109
0.606062
8182de99b8accab6efbe98871df960f416bdddf7
38,104
py
Python
t3f/riemannian.py
robol/t3f
d61037ba9c03c344e9fc31fce46648347b762b39
[ "MIT" ]
null
null
null
t3f/riemannian.py
robol/t3f
d61037ba9c03c344e9fc31fce46648347b762b39
[ "MIT" ]
null
null
null
t3f/riemannian.py
robol/t3f
d61037ba9c03c344e9fc31fce46648347b762b39
[ "MIT" ]
null
null
null
import tensorflow as tf from t3f.tensor_train import TensorTrain from t3f.tensor_train_batch import TensorTrainBatch from t3f import shapes from t3f import decompositions def project_sum(what, where, weights=None): """Project sum of `what` TTs on the tangent space of `where` TT. project_sum(what, x) = P_x(what)...
42.90991
101
0.664943
8184c1d8dc29034b686437e80c0929c8f140a87c
262
py
Python
dpauth/admin.py
askmeaboutlo0m/website
3df97d061a425e7fbb3f173c78ff01d831575aa0
[ "MIT" ]
9
2017-06-04T15:46:05.000Z
2021-09-04T23:28:03.000Z
dpauth/admin.py
askmeaboutlo0m/website
3df97d061a425e7fbb3f173c78ff01d831575aa0
[ "MIT" ]
24
2018-02-10T04:29:00.000Z
2021-10-01T16:01:04.000Z
dpauth/admin.py
askmeaboutlo0m/website
3df97d061a425e7fbb3f173c78ff01d831575aa0
[ "MIT" ]
4
2020-03-23T03:42:32.000Z
2022-03-16T17:01:09.000Z
from django.contrib import admin from . import models
23.818182
45
0.717557
8188e19b101be322e95cf844a7e3d5f16f246e15
346
py
Python
iptv_proxy/providers/beast/json_api.py
sfanous/IPTVProxy
23047be01a229ef8f69ea6ca55185eae93adc56e
[ "MIT" ]
9
2018-11-02T02:51:50.000Z
2022-01-12T06:22:33.000Z
iptv_proxy/providers/beast/json_api.py
sfanous/IPTVProxy
23047be01a229ef8f69ea6ca55185eae93adc56e
[ "MIT" ]
3
2019-05-11T21:28:32.000Z
2020-04-27T00:58:46.000Z
iptv_proxy/providers/beast/json_api.py
sfanous/IPTVProxy
23047be01a229ef8f69ea6ca55185eae93adc56e
[ "MIT" ]
7
2019-01-03T20:31:30.000Z
2022-01-29T04:09:24.000Z
import logging from iptv_proxy.providers.beast.constants import BeastConstants from iptv_proxy.providers.iptv_provider.json_api import ProviderConfigurationJSONAPI logger = logging.getLogger(__name__)
26.615385
84
0.84104
818971d06d80952ffaa6249ad6fd01e66412f03b
30,912
py
Python
tests/random/random_testing.py
jkeiren/mCRL2
3a60939f4e6dbc131e8ce87b1929bea9dbf90dd2
[ "BSL-1.0" ]
61
2018-05-24T13:14:05.000Z
2022-03-29T11:35:03.000Z
tests/random/random_testing.py
jkeiren/mCRL2
3a60939f4e6dbc131e8ce87b1929bea9dbf90dd2
[ "BSL-1.0" ]
229
2018-05-28T08:31:09.000Z
2022-03-21T11:02:41.000Z
tests/random/random_testing.py
jkeiren/mCRL2
3a60939f4e6dbc131e8ce87b1929bea9dbf90dd2
[ "BSL-1.0" ]
28
2018-04-11T14:09:39.000Z
2022-02-25T15:57:39.000Z
#!/usr/bin/env python # Copyright 2015 Wieger Wesselink. # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) import os import os.path import random import re import sys import traceback sys.path += [os.path.abspath(os.path.join...
63.085714
280
0.606593
8189efb35e8c25b88203a01795c7461668948d95
969
py
Python
src/download.py
stanislawbartkowski/webhdfsdirectory
8f7110eb573487c845ab0126eb71f038edb5ed41
[ "Apache-2.0" ]
null
null
null
src/download.py
stanislawbartkowski/webhdfsdirectory
8f7110eb573487c845ab0126eb71f038edb5ed41
[ "Apache-2.0" ]
null
null
null
src/download.py
stanislawbartkowski/webhdfsdirectory
8f7110eb573487c845ab0126eb71f038edb5ed41
[ "Apache-2.0" ]
null
null
null
""" Main program to launch proc/hdfs.py """ import argparse import logging from pars import addargs import sys import logging logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.INFO) from proc.hdfs import DIRHDFS if __name__ == "__main__": # execute only if run as a script main()
25.5
103
0.700722
818a52c58e57385fa71bcd403825bd6c6ac08eb9
15,748
py
Python
desktop/core/ext-py/josepy-1.1.0/src/josepy/json_util.py
kokosing/hue
2307f5379a35aae9be871e836432e6f45138b3d9
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
desktop/core/ext-py/josepy-1.1.0/src/josepy/json_util.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
desktop/core/ext-py/josepy-1.1.0/src/josepy/json_util.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
"""JSON (de)serialization framework. The framework presented here is somewhat based on `Go's "json" package`_ (especially the ``omitempty`` functionality). .. _`Go's "json" package`: http://golang.org/pkg/encoding/json/ """ import abc import binascii import logging import OpenSSL import six from josepy import b64,...
32.672199
78
0.625921
818c9c67cc31addec97fe43bfd97c54843bc6cf4
6,463
py
Python
norm/executable/schema/variable.py
reasoned-ai/norm
5e45d5917ce8745c9a757a0c6b5e689ea0cac19f
[ "Apache-2.0" ]
8
2019-07-22T08:57:20.000Z
2021-03-26T13:51:02.000Z
norm/executable/schema/variable.py
xumiao/norm
5e45d5917ce8745c9a757a0c6b5e689ea0cac19f
[ "Apache-2.0" ]
null
null
null
norm/executable/schema/variable.py
xumiao/norm
5e45d5917ce8745c9a757a0c6b5e689ea0cac19f
[ "Apache-2.0" ]
1
2019-11-16T13:37:35.000Z
2019-11-16T13:37:35.000Z
from norm.models.norm import Status, Lambda from norm.executable import NormExecutable from typing import Union, List import logging logger = logging.getLogger(__name__)
34.195767
116
0.597865
818cc866ba9ab18156dde4bf30880a18007fbc03
3,318
py
Python
src/parserindexer/tika_parser.py
yyzhuang1991/parser-indexer-py
66847a6373d1fbc771e8ed9172a068731f9cd4da
[ "Apache-2.0" ]
8
2016-07-20T19:50:00.000Z
2020-09-15T01:56:51.000Z
src/parserindexer/tika_parser.py
yyzhuang1991/parser-indexer-py
66847a6373d1fbc771e8ed9172a068731f9cd4da
[ "Apache-2.0" ]
27
2016-08-01T13:39:25.000Z
2021-08-18T17:47:23.000Z
src/parserindexer/tika_parser.py
yyzhuang1991/parser-indexer-py
66847a6373d1fbc771e8ed9172a068731f9cd4da
[ "Apache-2.0" ]
3
2016-07-20T19:55:49.000Z
2021-08-06T16:19:48.000Z
from __future__ import print_function import os import sys import json import tika from tqdm import tqdm from utils import LogUtil from parser import Parser from ioutils import read_lines from tika import parser as tk_parser if __name__ == '__main__': main()
31.6
80
0.611814
818d2b5226021a3473fd95143600b3a63ac484e1
869
py
Python
checkov/cloudformation/checks/resource/aws/DocDBAuditLogs.py
niradler/checkov
2628c6f28a5604efe3877d6eacc3044d2b66b7b1
[ "Apache-2.0" ]
null
null
null
checkov/cloudformation/checks/resource/aws/DocDBAuditLogs.py
niradler/checkov
2628c6f28a5604efe3877d6eacc3044d2b66b7b1
[ "Apache-2.0" ]
2
2022-03-07T07:15:32.000Z
2022-03-21T07:21:17.000Z
checkov/cloudformation/checks/resource/aws/DocDBAuditLogs.py
niradler/checkov
2628c6f28a5604efe3877d6eacc3044d2b66b7b1
[ "Apache-2.0" ]
null
null
null
from checkov.cloudformation.checks.resource.base_resource_check import BaseResourceCheck from checkov.common.parsers.node import DictNode from checkov.common.models.enums import CheckResult, CheckCategories check = DocDBAuditLogs()
36.208333
106
0.721519
818de49075c87063860cf616c4fbba1c27c95106
584
py
Python
py/server/deephaven/server/plugin/__init__.py
lbooker42/deephaven-core
2d04563f18ae914754b28041475c02770e57af15
[ "MIT" ]
null
null
null
py/server/deephaven/server/plugin/__init__.py
lbooker42/deephaven-core
2d04563f18ae914754b28041475c02770e57af15
[ "MIT" ]
null
null
null
py/server/deephaven/server/plugin/__init__.py
lbooker42/deephaven-core
2d04563f18ae914754b28041475c02770e57af15
[ "MIT" ]
null
null
null
# # Copyright (c) 2016-2022 Deephaven Data Labs and Patent Pending # import jpy _JCallbackAdapter = jpy.get_type('io.deephaven.server.plugin.python.CallbackAdapter')
30.736842
116
0.717466
818e56826eb6b882afcd422dcb192ea6b72a334b
3,133
py
Python
mypy/test/testoutput.py
TimSimpsonR/mypy
5e6fd6335e0662b0477e1d678269f33e6f4194ba
[ "PSF-2.0" ]
1
2019-06-27T11:34:27.000Z
2019-06-27T11:34:27.000Z
mypy/test/testoutput.py
silky/mypy
de6a8d3710df9f49109cb682f2092e4967bfb92c
[ "PSF-2.0" ]
null
null
null
mypy/test/testoutput.py
silky/mypy
de6a8d3710df9f49109cb682f2092e4967bfb92c
[ "PSF-2.0" ]
null
null
null
"""Tests for parse tree pretty printing that preserves formatting Test case descriptions are in file test/data/output.test. """ import os.path import re from typing import Undefined, Any from mypy import build from mypy.myunit import Suite, run_test from mypy.test.helpers import assert_string_arrays_equal from mypy...
31.969388
79
0.578998
81909aed2c8da07e00d68c36e16753bcc2a5f66d
2,395
py
Python
tests/test_SklearnDecisionTreeConverters.py
c-bata/sklearn-onnx
ff3e2eb204991b5799fc606c265b2c283dbfc25c
[ "MIT" ]
1
2019-05-06T20:54:02.000Z
2019-05-06T20:54:02.000Z
tests/test_SklearnDecisionTreeConverters.py
PossieMP/https-github.com-onnx-sklearn-onnx
48c60398d38e6937897d7c1506a8dcfcf28830a2
[ "MIT" ]
null
null
null
tests/test_SklearnDecisionTreeConverters.py
PossieMP/https-github.com-onnx-sklearn-onnx
48c60398d38e6937897d7c1506a8dcfcf28830a2
[ "MIT" ]
1
2020-04-09T07:46:52.000Z
2020-04-09T07:46:52.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- import un...
38.015873
76
0.562004
8190b06cbd6a99f76c275c7c5d6181dfe355ab0d
7,005
py
Python
tests/test_inference.py
MihailSalnikov/microscopeimagequality
22d1f7c7f6793a0ba6f64c2aea2bf3270c32301b
[ "Apache-2.0" ]
77
2017-10-30T19:34:06.000Z
2022-01-20T17:15:10.000Z
tests/test_inference.py
MihailSalnikov/microscopeimagequality
22d1f7c7f6793a0ba6f64c2aea2bf3270c32301b
[ "Apache-2.0" ]
3
2020-07-02T22:20:46.000Z
2021-08-25T14:39:43.000Z
tests/test_inference.py
MihailSalnikov/microscopeimagequality
22d1f7c7f6793a0ba6f64c2aea2bf3270c32301b
[ "Apache-2.0" ]
40
2017-12-22T01:21:13.000Z
2022-03-13T22:28:59.000Z
import logging import os import tempfile import PIL.Image import numpy import tensorflow import microscopeimagequality.constants import microscopeimagequality.data_provider import microscopeimagequality.evaluation import microscopeimagequality.prediction
44.056604
125
0.63469
8190c488725fd5780c71f8986d5214f9a0371832
498
py
Python
config.py
hiankun/qb_test
ab031d74d903cdb8845a033d290611b444a5abdb
[ "MIT" ]
4
2015-03-07T19:15:28.000Z
2021-01-24T15:13:30.000Z
config.py
hiankun/qb_test
ab031d74d903cdb8845a033d290611b444a5abdb
[ "MIT" ]
null
null
null
config.py
hiankun/qb_test
ab031d74d903cdb8845a033d290611b444a5abdb
[ "MIT" ]
1
2017-07-03T06:55:24.000Z
2017-07-03T06:55:24.000Z
""" QuickBot wiring config. Specifies which pins are used for motor control, IR sensors and wheel encoders. """ # Motor pins: (dir1_pin, dir2_pin, pwd_pin) RIGHT_MOTOR_PINS = 'P8_12', 'P8_10', 'P9_14' LEFT_MOTOR_PINS = 'P8_14', 'P8_16', 'P9_16' # IR sensors (clock-wise, starting with the rear left sensor): # rear-l...
23.714286
79
0.690763
8191a9d3234f49c843978a8688358673f859017f
8,912
py
Python
tools/tests/skimage_self_test.py
yinquan529/platform-external-skia
1adfb847fe565e53d2e26e35b04c8dc112b7513a
[ "BSD-3-Clause" ]
1
2016-05-04T10:08:50.000Z
2016-05-04T10:08:50.000Z
tools/tests/skimage_self_test.py
yinquan529/platform-external-skia
1adfb847fe565e53d2e26e35b04c8dc112b7513a
[ "BSD-3-Clause" ]
null
null
null
tools/tests/skimage_self_test.py
yinquan529/platform-external-skia
1adfb847fe565e53d2e26e35b04c8dc112b7513a
[ "BSD-3-Clause" ]
1
2020-01-16T03:34:53.000Z
2020-01-16T03:34:53.000Z
#!/usr/bin/env python # Copyright (c) 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # Self-test for skimage. import filecmp import os import subprocess import sys import tempfile # Find a path to the binary to use...
44.78392
81
0.632518
8193d66190779e7816666311c0493c349ff06765
121
py
Python
pymachine/condition.py
landrew31/pymachine
117ad7aa3694a1ccb0be207cc931de8c2c345567
[ "MIT" ]
1
2018-02-21T08:57:08.000Z
2018-02-21T08:57:08.000Z
pymachine/condition.py
landrew31/pymachine
117ad7aa3694a1ccb0be207cc931de8c2c345567
[ "MIT" ]
null
null
null
pymachine/condition.py
landrew31/pymachine
117ad7aa3694a1ccb0be207cc931de8c2c345567
[ "MIT" ]
null
null
null
from collections import namedtuple Condition = namedtuple( 'Condition', ['current_state', 'input_character'], )
17.285714
41
0.719008
8195c711df03d29790fdcc4e7f130ef66986f549
788
py
Python
examples/simple_lakehouse/simple_lakehouse/assets.py
bitdotioinc/dagster
4fe395a37b206b1a48b956fa5dd72bf698104cca
[ "Apache-2.0" ]
2
2021-06-21T17:50:26.000Z
2021-06-21T19:14:23.000Z
examples/simple_lakehouse/simple_lakehouse/assets.py
bitdotioinc/dagster
4fe395a37b206b1a48b956fa5dd72bf698104cca
[ "Apache-2.0" ]
7
2022-03-16T06:55:04.000Z
2022-03-18T07:03:25.000Z
examples/simple_lakehouse/simple_lakehouse/assets.py
bitdotioinc/dagster
4fe395a37b206b1a48b956fa5dd72bf698104cca
[ "Apache-2.0" ]
1
2021-08-18T17:21:57.000Z
2021-08-18T17:21:57.000Z
"""Asset definitions for the simple_lakehouse example.""" import pandas as pd from lakehouse import Column, computed_table, source_table from pyarrow import date32, float64, string sfo_q2_weather_sample_table = source_table( path="data", columns=[Column("tmpf", float64()), Column("valid_date", string())], )
41.473684
97
0.757614
8196db5a9a3e9b1ef0fc71ca07363d90aa3c3237
4,386
py
Python
aindex/demo.py
ad3002/Lyrebird
8c0a186e32d61189f073401152c52a89bfed46ed
[ "MIT" ]
null
null
null
aindex/demo.py
ad3002/Lyrebird
8c0a186e32d61189f073401152c52a89bfed46ed
[ "MIT" ]
null
null
null
aindex/demo.py
ad3002/Lyrebird
8c0a186e32d61189f073401152c52a89bfed46ed
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # #@created: 07.01.2018 #@author: Aleksey Komissarov #@contact: ad3002@gmail.com from aindex import * settings = { "index_prefix": "tests/kmers.23", "aindex_prefix": "tests/kmers.23", "reads_file": "tests/reads.reads", } index = load_aindex(settings) k = 23 seque...
58.48
2,183
0.858413
81972bcd61b6a76b4f3ac7d2990ee8f85d6af35f
1,013
py
Python
tests/testresources/pytest_resource_path_ini.py
yukihiko-shinoda/pytest-resource-path
bc56c4b5f2c8f3138baeac7f145717f6a70af7b6
[ "MIT" ]
5
2020-09-06T01:54:28.000Z
2021-06-14T11:10:09.000Z
tests/testresources/pytest_resource_path_ini.py
yukihiko-shinoda/pytest-resource-path
bc56c4b5f2c8f3138baeac7f145717f6a70af7b6
[ "MIT" ]
5
2020-05-23T08:30:01.000Z
2021-05-01T04:58:06.000Z
tests/testresources/pytest_resource_path_ini.py
yukihiko-shinoda/pytest-resource-path
bc56c4b5f2c8f3138baeac7f145717f6a70af7b6
[ "MIT" ]
null
null
null
"""Implements test for pytest-resource-path Fixtures with pytest.ini.""" from pathlib import Path import pytest def test_resource_path_ini(resource_path, request): """Fixture resource_path should be following absolute path.""" assert resource_path == Path(str(request.fspath)).parents[1] / Path( "data...
37.518519
102
0.785785
8197395414f35f5a57891af7ddfab20969d9cd9f
301
py
Python
17-files/read-file-with-try-block.py
johnehunt/Python3Intro
2a41ce488aac11bb3928ea81e57be1c2c8acdac2
[ "Apache-2.0" ]
1
2020-11-03T19:46:25.000Z
2020-11-03T19:46:25.000Z
14-files/read-file-with-try-block.py
johnehunt/PythonIntroDS
7e9d5c5494191cd68bc71e140df5fb30290a8da6
[ "Apache-2.0" ]
null
null
null
14-files/read-file-with-try-block.py
johnehunt/PythonIntroDS
7e9d5c5494191cd68bc71e140df5fb30290a8da6
[ "Apache-2.0" ]
1
2019-09-21T08:24:46.000Z
2019-09-21T08:24:46.000Z
# Illustrates combining exception / error handling # with file access print('Start') try: with open('myfile2.txt', 'r') as f: lines = f.readlines() for line in lines: print(line, end='') except FileNotFoundError as err: print('oops') print(err) print('Done')
20.066667
50
0.61794
81977d254cadb7ee5093cb2ff32e221394f8fe36
8,455
py
Python
Miscellaneous/test_script_pymc3/multinominal.py
junpenglao/Planet_Sakaar_Data_Science
73d9605b91b774a56d18c193538691521f679f16
[ "MIT" ]
51
2018-04-08T19:53:15.000Z
2021-11-24T21:08:25.000Z
Miscellaneous/test_script_pymc3/multinominal.py
junpenglao/Planet_Sakaar_Data_Science
73d9605b91b774a56d18c193538691521f679f16
[ "MIT" ]
2
2018-05-29T20:50:37.000Z
2020-09-12T07:14:08.000Z
Miscellaneous/test_script_pymc3/multinominal.py
junpenglao/Planet_Sakaar_Data_Science
73d9605b91b774a56d18c193538691521f679f16
[ "MIT" ]
13
2018-07-21T09:53:10.000Z
2021-06-07T19:06:26.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Sep 11 13:30:53 2017 @author: laoj """ import numpy as np import pymc3 as pm import theano.tensor as tt from pymc3.distributions.distribution import Discrete, draw_values, generate_samples, infer_shape from pymc3.distributions.dist_math import bound, lo...
30.970696
135
0.543465
819a475b581f4721e5c8b8ee781500a5749d808c
8,054
py
Python
transformation_fnc.py
usrmaia/transformation-fnc
37ef77708892417ac985bb6f1cf62285834560d8
[ "MIT" ]
null
null
null
transformation_fnc.py
usrmaia/transformation-fnc
37ef77708892417ac985bb6f1cf62285834560d8
[ "MIT" ]
null
null
null
transformation_fnc.py
usrmaia/transformation-fnc
37ef77708892417ac985bb6f1cf62285834560d8
[ "MIT" ]
null
null
null
from useful import * from os import system if __name__ == "__main__": system("cls") #system("clear") while(True): formula = input("Frmula: ") if formula == 'q': break print(formula) print("Removendo implicaes: ") A1 = remove_implication(formula) print(A1) ...
47.099415
220
0.661286
819a9225919d23f1c377fd7749da7d7ea0d1e851
2,896
py
Python
src/implant/commands/__init__.py
diefans/debellator
44203174ef8e0702be577a9e08dedde40e3ce1fe
[ "Apache-2.0" ]
2
2018-09-08T00:04:43.000Z
2021-07-20T01:31:09.000Z
src/implant/commands/__init__.py
diefans/implant
44203174ef8e0702be577a9e08dedde40e3ce1fe
[ "Apache-2.0" ]
null
null
null
src/implant/commands/__init__.py
diefans/implant
44203174ef8e0702be577a9e08dedde40e3ce1fe
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Oliver Berger # # 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,...
28.96
85
0.648481
819b2d29e2f76cc772587cf27c82ea7f7e151615
73
py
Python
trainer/utils/__init__.py
chriszhou0916/czai4art
2fecc9b808fc16cb74c4c29be8a8770ffe247b15
[ "MIT" ]
null
null
null
trainer/utils/__init__.py
chriszhou0916/czai4art
2fecc9b808fc16cb74c4c29be8a8770ffe247b15
[ "MIT" ]
null
null
null
trainer/utils/__init__.py
chriszhou0916/czai4art
2fecc9b808fc16cb74c4c29be8a8770ffe247b15
[ "MIT" ]
null
null
null
from trainer.utils.losses import * from trainer.utils import custom_ssim
24.333333
37
0.835616
819bd18a4722e9a3211561882e51cf2324399bde
1,693
py
Python
src/Testing/ZopeTestCase/__init__.py
tseaver/Zope-RFA
08634f39b0f8b56403a2a9daaa6ee4479ef0c625
[ "ZPL-2.1" ]
2
2015-12-21T10:34:56.000Z
2017-09-24T11:07:58.000Z
src/Testing/ZopeTestCase/__init__.py
MatthewWilkes/Zope
740f934fc9409ae0062e8f0cd6dcfd8b2df00376
[ "ZPL-2.1" ]
null
null
null
src/Testing/ZopeTestCase/__init__.py
MatthewWilkes/Zope
740f934fc9409ae0062e8f0cd6dcfd8b2df00376
[ "ZPL-2.1" ]
null
null
null
############################################################################## # # Copyright (c) 2005 Zope Foundation and Contributors. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS I...
29.189655
78
0.759598
819c97d3aababb49d55ab8197540259628b81475
3,132
py
Python
CIM14/CPSM/Equipment/LoadModel/SubLoadArea.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
58
2015-04-22T10:41:03.000Z
2022-03-29T16:04:34.000Z
CIM14/CPSM/Equipment/LoadModel/SubLoadArea.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
12
2015-08-26T03:57:23.000Z
2020-12-11T20:14:42.000Z
CIM14/CPSM/Equipment/LoadModel/SubLoadArea.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
35
2015-01-10T12:21:03.000Z
2020-09-09T08:18:16.000Z
# Copyright (C) 2010-2011 Richard Lincoln # # 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...
36
129
0.685185
819e28662a5c7fe45f90d593ee3b3db086815aa5
369
py
Python
bin/clean_pdb.py
caixiuhong/Stable-MCCE
186bdafdf1d631994b2cdd6ec6a548383f559929
[ "MIT" ]
null
null
null
bin/clean_pdb.py
caixiuhong/Stable-MCCE
186bdafdf1d631994b2cdd6ec6a548383f559929
[ "MIT" ]
null
null
null
bin/clean_pdb.py
caixiuhong/Stable-MCCE
186bdafdf1d631994b2cdd6ec6a548383f559929
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys HATOMS = ["HG", "HD", "HE", "HH"] lines = open(sys.argv[1]).readlines() for line in lines: if line[:6] == "ATOM " or line[:6] == "HETATM": if line[17:20] == "WAT": continue if line[13] == "H": continue if line[12:14] in HATOMS: ...
23.0625
52
0.490515
819e7c6d0a67bfff73dacc1d420e6cd83f55ee9f
7,693
py
Python
old_logen/pylogen/OutputBook.py
leuschel/logen
0ea806f54628162615e25177c3ed98f6b2c27935
[ "Apache-2.0" ]
14
2015-10-16T11:35:30.000Z
2021-05-12T15:31:16.000Z
old_logen/pylogen/OutputBook.py
leuschel/logen
0ea806f54628162615e25177c3ed98f6b2c27935
[ "Apache-2.0" ]
null
null
null
old_logen/pylogen/OutputBook.py
leuschel/logen
0ea806f54628162615e25177c3ed98f6b2c27935
[ "Apache-2.0" ]
5
2015-10-16T12:44:41.000Z
2019-10-02T02:45:38.000Z
import Pmw import os import re from FastIndex import FastIndex, timer from PrologFrame import PrologFrame from TerminalFrame import TerminalFrame regexp = re.compile('[a-zA-z0-9_]+__[0-9]+')
34.191111
100
0.573508
819ee9aceebbd56d2a4d4ed207f6ae47bb68ff70
5,468
py
Python
back/db.py
belshoff/Agenda
a9d3d1a80d6b3c00e4d0055847d5ed2bb6c6d7d1
[ "Apache-2.0" ]
null
null
null
back/db.py
belshoff/Agenda
a9d3d1a80d6b3c00e4d0055847d5ed2bb6c6d7d1
[ "Apache-2.0" ]
null
null
null
back/db.py
belshoff/Agenda
a9d3d1a80d6b3c00e4d0055847d5ed2bb6c6d7d1
[ "Apache-2.0" ]
null
null
null
import sqlite3 with sqlite3.connect('storage.db') as conn: cursor = conn.cursor() cursor.execute( """ CREATE TABLE IF NOT EXISTS Produtos ( id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, name TEXT NOT NULL, price REAL, compra_id INTEGER, ...
35.277419
126
0.492502
819ef83975adf31b6a1082bbb314f1833657807e
246
bzl
Python
tools/build_rules/gtk_dependent.bzl
Ewpratten/frc_971_mirror
3a8a0c4359f284d29547962c2b4c43d290d8065c
[ "BSD-2-Clause" ]
39
2021-06-18T03:22:30.000Z
2022-03-21T15:23:43.000Z
tools/build_rules/gtk_dependent.bzl
Ewpratten/frc_971_mirror
3a8a0c4359f284d29547962c2b4c43d290d8065c
[ "BSD-2-Clause" ]
10
2021-06-18T03:22:19.000Z
2022-03-18T22:14:15.000Z
tools/build_rules/gtk_dependent.bzl
Ewpratten/frc_971_mirror
3a8a0c4359f284d29547962c2b4c43d290d8065c
[ "BSD-2-Clause" ]
4
2021-08-19T19:20:04.000Z
2022-03-08T07:33:18.000Z
disable_gtk_binaries = True
24.6
39
0.739837
819fb9161fe72a4b226194ee2bfb3c7088844885
743
py
Python
vectorize.py
tomohiroando/recipe_gan
00f7418dfc5ee732e6d2de33d9c397e24f304864
[ "MIT" ]
null
null
null
vectorize.py
tomohiroando/recipe_gan
00f7418dfc5ee732e6d2de33d9c397e24f304864
[ "MIT" ]
null
null
null
vectorize.py
tomohiroando/recipe_gan
00f7418dfc5ee732e6d2de33d9c397e24f304864
[ "MIT" ]
null
null
null
import sys from gensim import models from gensim.models.doc2vec import LabeledSentence import pickle with open('corpus_text', 'rb') as f: corpus = pickle.load(f) sentences = corpus_to_sentences(corpus) model = models.Doc2Vec(vector_size=400, window=15, alpha=.025, min_alpha=.025, min_count=1, sample=1e-6) mode...
28.576923
104
0.722746
81a0eab42248c18facd3ce51c6e6f97ebfbcd166
6,206
py
Python
lxman/registry.py
stuxcrystal/lxman
ea0b44a8b9424b3489e393591f5384a986f583a3
[ "MIT" ]
1
2017-12-04T18:48:21.000Z
2017-12-04T18:48:21.000Z
lxman/registry.py
stuxcrystal/lxman
ea0b44a8b9424b3489e393591f5384a986f583a3
[ "MIT" ]
null
null
null
lxman/registry.py
stuxcrystal/lxman
ea0b44a8b9424b3489e393591f5384a986f583a3
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- from collections import UserDict from itertools import count import shutil import winreg import uuid PATH = "Software\\Microsoft\\Windows\\CurrentVersion\\Lxss" KEY = winreg.HKEY_CURRENT_USER def __exit__(self, *exc): self._state = 1 return False ...
30.875622
108
0.563165
81a34a9a29a2bcf516df9f355478686bebdaa96b
25,235
py
Python
virtual/lib/python3.6/site-packages/debian/changelog.py
marknesh/pitches
0a480d9bc2beafaefa0121393b1502cc05edab89
[ "MIT" ]
null
null
null
virtual/lib/python3.6/site-packages/debian/changelog.py
marknesh/pitches
0a480d9bc2beafaefa0121393b1502cc05edab89
[ "MIT" ]
10
2020-03-08T21:13:29.000Z
2021-04-08T19:41:14.000Z
flask/lib/python3.6/site-packages/debian/changelog.py
JOFLIX/grapevines
34576e01184570d79cc140b42ffb71d322132da6
[ "MIT", "Unlicense" ]
null
null
null
# changelog.py -- Python module for Debian changelogs # Copyright (C) 2006-7 James Westby <jw+debian@jameswestby.net> # Copyright (C) 2008 Canonical Ltd. # # 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 Fo...
39.553292
80
0.559263
81a35f7c896207540f74045284e195d4e4fb7b21
667
py
Python
Median.py
fatih-iver/Intro-to-Computer-Science-with-Python
7b8127681415dfd100a0e70fe8a672cec696bbb7
[ "MIT" ]
null
null
null
Median.py
fatih-iver/Intro-to-Computer-Science-with-Python
7b8127681415dfd100a0e70fe8a672cec696bbb7
[ "MIT" ]
null
null
null
Median.py
fatih-iver/Intro-to-Computer-Science-with-Python
7b8127681415dfd100a0e70fe8a672cec696bbb7
[ "MIT" ]
null
null
null
# Define a procedure, median, that takes three # numbers as its inputs, and returns the median # of the three numbers. # Make sure your procedure has a return statement. print(median(1,2,3)) #>>> 2 print(median(9,3,6)) #>>> 6 print(median(7,8,7)) #>>> 7
20.212121
51
0.493253
81a49f3c33e13f260a839b1cda7b2ffc5e26f768
5,089
py
Python
miss_islington/util.py
webknjaz/miss-islington
51c38793b9ff95ecf4a3e98755a291120e7240cc
[ "Apache-2.0" ]
null
null
null
miss_islington/util.py
webknjaz/miss-islington
51c38793b9ff95ecf4a3e98755a291120e7240cc
[ "Apache-2.0" ]
1
2021-02-27T14:15:59.000Z
2021-02-27T14:15:59.000Z
miss_islington/util.py
webknjaz/miss-islington
51c38793b9ff95ecf4a3e98755a291120e7240cc
[ "Apache-2.0" ]
null
null
null
import requests import os import subprocess import gidgethub from gidgethub import sansio AUTOMERGE_LABEL = ":robot: automerge" def comment_on_pr(issue_number, message): """ Leave a comment on a PR/Issue """ request_headers = sansio.create_headers( "miss-islington", oauth_token=os.getenv("...
29.760234
86
0.660051
81a62c5963fc9b6615ab457b4e524e86f8ffa6af
1,918
py
Python
src/plugins/database.py
Blitz-Raynor/Kiba
a73b5b6212a5446d218a80f1a6aba108e0a1912b
[ "MIT" ]
4
2022-01-24T05:33:34.000Z
2022-03-25T06:29:19.000Z
src/plugins/database.py
Blitz-Raynor/Kiba
a73b5b6212a5446d218a80f1a6aba108e0a1912b
[ "MIT" ]
null
null
null
src/plugins/database.py
Blitz-Raynor/Kiba
a73b5b6212a5446d218a80f1a6aba108e0a1912b
[ "MIT" ]
3
2022-02-08T13:24:59.000Z
2022-03-13T06:42:40.000Z
import aiosqlite import sqlite3 import asyncio import nonebot from nonebot.log import logger driver: nonebot.Driver = nonebot.get_driver() config: nonebot.config.Config = driver.config
53.277778
153
0.696038
81a67c33ee26043b2ddf70e19e7da7c69207a707
5,492
py
Python
dexp/processing/utils/scatter_gather_i2i.py
haesleinhuepf/dexp
2ea84f3db323724588fac565fae56f0d522bc5ca
[ "BSD-3-Clause" ]
16
2021-04-21T14:09:19.000Z
2022-03-22T02:30:59.000Z
dexp/processing/utils/scatter_gather_i2i.py
haesleinhuepf/dexp
2ea84f3db323724588fac565fae56f0d522bc5ca
[ "BSD-3-Clause" ]
28
2021-04-15T17:43:08.000Z
2022-03-29T16:08:35.000Z
dexp/processing/utils/scatter_gather_i2i.py
haesleinhuepf/dexp
2ea84f3db323724588fac565fae56f0d522bc5ca
[ "BSD-3-Clause" ]
3
2022-02-08T17:41:30.000Z
2022-03-18T15:32:27.000Z
from typing import Callable, Optional, Sequence, Tuple, Union import numpy from dexp.processing.utils.nd_slice import nd_split_slices, remove_margin_slice from dexp.processing.utils.normalise import Normalise from dexp.utils import xpArray from dexp.utils.backends import Backend def scatter_gather_i2i( function...
35.205128
110
0.667334
81a7268b47b548089b30e84d12ff883fa4b80a6d
58
py
Python
http_shadow/__init__.py
abador/http-shadow
040935b0715f983714f38005f8ae97c255dae3e0
[ "MIT" ]
null
null
null
http_shadow/__init__.py
abador/http-shadow
040935b0715f983714f38005f8ae97c255dae3e0
[ "MIT" ]
null
null
null
http_shadow/__init__.py
abador/http-shadow
040935b0715f983714f38005f8ae97c255dae3e0
[ "MIT" ]
2
2018-09-27T15:20:35.000Z
2020-10-02T08:38:31.000Z
from .backend import Backend from .thread import HttpPool
19.333333
28
0.827586
81a85ad97e42bc868e9ae369e44cafe2a61e536a
107
py
Python
Problems/sample.py
HKuz/Test_Code
798efc9fc668ef021736a6d9699ef4713cf8b718
[ "MIT" ]
1
2020-06-14T20:10:04.000Z
2020-06-14T20:10:04.000Z
Problems/sample.py
makramjandar/Test_Code
798efc9fc668ef021736a6d9699ef4713cf8b718
[ "MIT" ]
null
null
null
Problems/sample.py
makramjandar/Test_Code
798efc9fc668ef021736a6d9699ef4713cf8b718
[ "MIT" ]
1
2019-12-09T12:48:05.000Z
2019-12-09T12:48:05.000Z
#!/usr/local/bin/python3 if __name__ == '__main__': main()
9.727273
26
0.579439
81a8ec6fd77ecb2b6c41666fc9f2b8378760daa6
3,759
py
Python
setup.py
wrmsr/omnibus
3c4ef5eb17b0fff8593fa6a2284337bf193c18d3
[ "BSD-3-Clause" ]
2
2020-06-17T19:54:09.000Z
2020-06-18T20:10:26.000Z
setup.py
wrmsr/omnibus
3c4ef5eb17b0fff8593fa6a2284337bf193c18d3
[ "BSD-3-Clause" ]
null
null
null
setup.py
wrmsr/omnibus
3c4ef5eb17b0fff8593fa6a2284337bf193c18d3
[ "BSD-3-Clause" ]
null
null
null
import fnmatch import glob import os import sys import setuptools.command.build_ext APPLE = sys.platform == 'darwin' BASE_DIR = os.path.dirname(__file__) ABOUT = {} _read_about() EXCLUDED_STATIC_FILE_PATHS = [ '*.py', '*/__pycache__/*', '*/tests/*', '*/_ext/cc/*', '*/_ext/cy/*', '*/_ex...
24.096154
93
0.536313
81aab8159848ee0e48d169bcc15f7002773f809e
689
py
Python
day1/test_day1.py
Sundin/advent-of-code-2019
7ba5971ab5deeec61c60e6acbe1ac223876e77fe
[ "MIT" ]
null
null
null
day1/test_day1.py
Sundin/advent-of-code-2019
7ba5971ab5deeec61c60e6acbe1ac223876e77fe
[ "MIT" ]
null
null
null
day1/test_day1.py
Sundin/advent-of-code-2019
7ba5971ab5deeec61c60e6acbe1ac223876e77fe
[ "MIT" ]
null
null
null
from day1 import * import unittest
40.529412
93
0.835994
81ac62bd68434ff2ce3767d63cce77c07cbf51c7
305
py
Python
PyObjCTest/test_nspdfinfo.py
linuxfood/pyobjc-framework-Cocoa-test
3475890f165ab26a740f13d5afe4c62b4423a140
[ "MIT" ]
null
null
null
PyObjCTest/test_nspdfinfo.py
linuxfood/pyobjc-framework-Cocoa-test
3475890f165ab26a740f13d5afe4c62b4423a140
[ "MIT" ]
null
null
null
PyObjCTest/test_nspdfinfo.py
linuxfood/pyobjc-framework-Cocoa-test
3475890f165ab26a740f13d5afe4c62b4423a140
[ "MIT" ]
null
null
null
import AppKit from PyObjCTools.TestSupport import TestCase, min_os_level
30.5
73
0.783607
81acfe851d89593a12e5f0cfee315b25fd2a0d5f
1,636
py
Python
gap/src/util/data_iterator.py
cosmozhang/autoencoding_parsing
2e8f4811ca6032f4f89195cd019a4fce4b399dcc
[ "BSD-3-Clause" ]
null
null
null
gap/src/util/data_iterator.py
cosmozhang/autoencoding_parsing
2e8f4811ca6032f4f89195cd019a4fce4b399dcc
[ "BSD-3-Clause" ]
null
null
null
gap/src/util/data_iterator.py
cosmozhang/autoencoding_parsing
2e8f4811ca6032f4f89195cd019a4fce4b399dcc
[ "BSD-3-Clause" ]
null
null
null
from collections import OrderedDict, defaultdict import numpy as np ''' generate a id to length dic '''
31.461538
88
0.665037
81ad78394864e547b6c74d97fef7b7beb9ca5228
1,793
py
Python
recipe_parser/recipes/thehappyfoodie.py
tyler-a-cox/recipe-parsing
fa883f66a39063cf72912527628b082cda455e76
[ "MIT" ]
null
null
null
recipe_parser/recipes/thehappyfoodie.py
tyler-a-cox/recipe-parsing
fa883f66a39063cf72912527628b082cda455e76
[ "MIT" ]
null
null
null
recipe_parser/recipes/thehappyfoodie.py
tyler-a-cox/recipe-parsing
fa883f66a39063cf72912527628b082cda455e76
[ "MIT" ]
null
null
null
from ._schema import DefaultSchema from ._utils import get_minutes, get_yields, normalize_string
28.919355
88
0.516453
81ae2fd5d9a2f3d3be912f6bccda2599695dd505
2,866
py
Python
Scopuli/WEB/DebugToolbar/Toolbar.py
MaxOnNet/scopuli-core-web
66a2c31b36d7fc05be36ba5d5b141644459b4aba
[ "Apache-2.0" ]
null
null
null
Scopuli/WEB/DebugToolbar/Toolbar.py
MaxOnNet/scopuli-core-web
66a2c31b36d7fc05be36ba5d5b141644459b4aba
[ "Apache-2.0" ]
null
null
null
Scopuli/WEB/DebugToolbar/Toolbar.py
MaxOnNet/scopuli-core-web
66a2c31b36d7fc05be36ba5d5b141644459b4aba
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright [2017] Tatarnikov Viktor [viktor@tatarnikov.org] # # 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/licen...
29.854167
97
0.63887
81ae89733812f04310f2f41f0ec35c6af756fb98
8,372
py
Python
CalculateLods.py
makeling/AGSSmartVectorTileTools
009d925f883729f98c0d0744e1d466062dc260e6
[ "Apache-2.0" ]
3
2019-02-19T06:14:03.000Z
2020-01-06T07:57:12.000Z
CalculateLods.py
makeling/AGSSmartVectorTileTools
009d925f883729f98c0d0744e1d466062dc260e6
[ "Apache-2.0" ]
null
null
null
CalculateLods.py
makeling/AGSSmartVectorTileTools
009d925f883729f98c0d0744e1d466062dc260e6
[ "Apache-2.0" ]
2
2019-03-25T09:43:30.000Z
2019-11-28T03:52:56.000Z
# -*- coding: utf-8 -*- # !/usr/bin/python __author__ = 'ma_keling' # Version : 1.0.0 # Start Time : 2018-11-29 # Update Time : # Change Log : ## 1. ## 2. ## 3. import time import arcpy import math # Description: Loop layers and calculate lod for every feature in the layer. # De...
36.086207
121
0.568562
81aeea522ff7190fbf314844be2ef81f5a72b4cb
3,894
py
Python
python/one-liner/cluster_of_non_0.py
Hamng/python-sources
0cc5a5d9e576440d95f496edcfd921ae37fcd05a
[ "Unlicense" ]
null
null
null
python/one-liner/cluster_of_non_0.py
Hamng/python-sources
0cc5a5d9e576440d95f496edcfd921ae37fcd05a
[ "Unlicense" ]
1
2019-02-23T18:30:51.000Z
2019-02-23T18:30:51.000Z
python/one-liner/cluster_of_non_0.py
Hamng/python-sources
0cc5a5d9e576440d95f496edcfd921ae37fcd05a
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Feb 8 07:38:05 2020 @author: Ham Self Challenge: Count Cluster of Non-0s Given a 1-dimension array of integers, determine how many 'clusters' of non-0 in the array. A 'cluster' is a group of consecutive non-0 values. Scoring: a solution needs to be a 1-liner; ...
34.157895
81
0.48793
81aef189550b2b54e321b9991b292a9ac7b3bfcb
5,133
py
Python
cardano-node-tests/cardano_node_tests/tests/test_configuration.py
MitchellTesla/Cardano-SCK
f394506eb0875622093805c009951f6905261778
[ "Apache-2.0" ]
6
2021-08-30T00:49:12.000Z
2022-01-27T07:07:53.000Z
cardano-node-tests/cardano_node_tests/tests/test_configuration.py
c-spider/Cardano-SCK
1accb0426289489e371eb67422ccb19ffaab5f3c
[ "Apache-2.0" ]
17
2021-08-31T23:27:44.000Z
2022-03-25T20:35:16.000Z
cardano-node-tests/cardano_node_tests/tests/test_configuration.py
c-spider/Cardano-SCK
1accb0426289489e371eb67422ccb19ffaab5f3c
[ "Apache-2.0" ]
3
2021-05-20T08:26:00.000Z
2022-03-27T22:31:36.000Z
"""Tests for node configuration.""" import json import logging import time from pathlib import Path import allure import pytest from _pytest.tmpdir import TempdirFactory from cardano_clusterlib import clusterlib from cardano_node_tests.utils import cluster_management from cardano_node_tests.utils import cluster_nodes...
33.116129
100
0.728034
81afed5d2a7be68d968744aa55c07d3f1c78d48b
241,016
py
Python
output/myresults.py
jacobseiler/rsage
b3b0a3fa3c676eab188991e37d06894396bfc74f
[ "MIT" ]
1
2019-05-23T04:11:32.000Z
2019-05-23T04:11:32.000Z
output/myresults.py
jacobseiler/rsage
b3b0a3fa3c676eab188991e37d06894396bfc74f
[ "MIT" ]
7
2018-08-17T05:04:57.000Z
2019-01-16T05:40:16.000Z
output/myresults.py
jacobseiler/rsage
b3b0a3fa3c676eab188991e37d06894396bfc74f
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function import matplotlib matplotlib.use('Agg') import os import heapq import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import matplotlib.colors as colors import matplotlib.cm as cm from numpy import * from random import samp...
51.258188
474
0.610478