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
27981338330ee315b120f4f29b8d0163c165b34b
4,453
py
Python
st_model.py
saras108/Sentiment_Analysis
7e4e84637161cd005ebbcd303f68417726b5f098
[ "MIT" ]
null
null
null
st_model.py
saras108/Sentiment_Analysis
7e4e84637161cd005ebbcd303f68417726b5f098
[ "MIT" ]
null
null
null
st_model.py
saras108/Sentiment_Analysis
7e4e84637161cd005ebbcd303f68417726b5f098
[ "MIT" ]
null
null
null
#importing necessary libraries import numpy as np import pandas as pd import string import streamlit as st header = st.container() dataset = st.container() fearure = st.container() model_training = st.container() with header: st.title("Emotion detection using Text") with dataset: st.header("Emotion Detect...
29.885906
302
0.688974
279b274296a91748dfbdabae0134ce96287057e9
540
py
Python
config.py
sheepmen/SpiderManage
850d6357fd1117c16684dabb5d1e79de1854e61c
[ "MIT" ]
1
2018-06-13T00:38:53.000Z
2018-06-13T00:38:53.000Z
config.py
sheepmen/SpiderManage
850d6357fd1117c16684dabb5d1e79de1854e61c
[ "MIT" ]
null
null
null
config.py
sheepmen/SpiderManage
850d6357fd1117c16684dabb5d1e79de1854e61c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- SECRET_KEY = 'some secret key' TEMPLATES_AUTO_RELOAD = True PROJECT_NAME = 'SpiderManage' # Redis Config REDIS_HOST = '120.25.227.8' REDIS_PORT = 6379 REDIS_PASSWORD = 'xuxinredis' # SQLite # SQLALCHEMY_DATABASE_URI = 'sqlite:///C:/Users/sheep3/workplace/SpiderManage/data.d...
30
93
0.777778
279b776bfdce89147881347913d489e839a74293
3,989
py
Python
PyPrometheus.py
RusDavies/PyPrometheus
8c0bb9489f42423942982829024d7359a374d7b1
[ "MIT" ]
null
null
null
PyPrometheus.py
RusDavies/PyPrometheus
8c0bb9489f42423942982829024d7359a374d7b1
[ "MIT" ]
null
null
null
PyPrometheus.py
RusDavies/PyPrometheus
8c0bb9489f42423942982829024d7359a374d7b1
[ "MIT" ]
null
null
null
from PyPrometheusQueryClient import PrometheusQueryClient import json from pathlib import Path from datetime import datetime
37.990476
134
0.613688
279d9301e8e9b967d31f0c36c000b8b79e8eab38
5,557
py
Python
tests/validate_schema_guide.py
dieghernan/citation-file-format
cfad34b82aa882d8169a0bcb6a21ad19cb4ff401
[ "CC-BY-4.0" ]
257
2017-12-18T14:09:32.000Z
2022-03-28T17:58:19.000Z
tests/validate_schema_guide.py
Seanpm2001-DIGITAL-Command-Language/citation-file-format
52647a247e9b1a5b04154934f39615b5ee8c4d65
[ "CC-BY-4.0" ]
307
2017-10-16T12:17:40.000Z
2022-03-18T11:18:49.000Z
tests/validate_schema_guide.py
Seanpm2001-DIGITAL-Command-Language/citation-file-format
52647a247e9b1a5b04154934f39615b5ee8c4d65
[ "CC-BY-4.0" ]
344
2018-09-19T03:00:26.000Z
2022-03-31T01:39:11.000Z
import pytest import os import json import jsonschema from ruamel.yaml import YAML
57.28866
171
0.479935
279ec732b8ac9028c087cef84952b665f1b41600
188
py
Python
vkrpg/scripts/hello.py
Augmeneco/VKRPG
b071a490ae45a574a028af1eb831fff96782c06c
[ "Apache-2.0" ]
null
null
null
vkrpg/scripts/hello.py
Augmeneco/VKRPG
b071a490ae45a574a028af1eb831fff96782c06c
[ "Apache-2.0" ]
null
null
null
vkrpg/scripts/hello.py
Augmeneco/VKRPG
b071a490ae45a574a028af1eb831fff96782c06c
[ "Apache-2.0" ]
null
null
null
import vkrpg
31.333333
87
0.659574
27a5750fd3834a5dd24fb63cbde3fd11a0fdfdd0
4,613
py
Python
flaskprediction/routes.py
killswitchh/flask-prediction-app
a8bdff96fa2dc05544991a705970d1550ac9a034
[ "MIT" ]
null
null
null
flaskprediction/routes.py
killswitchh/flask-prediction-app
a8bdff96fa2dc05544991a705970d1550ac9a034
[ "MIT" ]
1
2020-08-29T18:39:05.000Z
2020-08-30T09:43:47.000Z
flaskprediction/routes.py
killswitchh/flask-prediction-app
a8bdff96fa2dc05544991a705970d1550ac9a034
[ "MIT" ]
null
null
null
import secrets from flask import Flask , render_template , url_for , send_from_directory from flaskprediction import app from flaskprediction.utils.predict import Predictor from flaskprediction.forms import CarDetailsForm , TitanicDetailsForm , BostonDetailsForm , HeightDetailsForm, CatImageForm from PIL import Imag...
39.767241
182
0.681986
27a61a2b957091652c5a6b1dfcf40f524e7bd75a
14,349
py
Python
air/gather.py
krisbukovi/AutomatedIngestReport
87cc65c9028382a0860069d86b69b8517d93f59c
[ "MIT" ]
null
null
null
air/gather.py
krisbukovi/AutomatedIngestReport
87cc65c9028382a0860069d86b69b8517d93f59c
[ "MIT" ]
null
null
null
air/gather.py
krisbukovi/AutomatedIngestReport
87cc65c9028382a0860069d86b69b8517d93f59c
[ "MIT" ]
null
null
null
import requests import re from time import sleep from datetime import datetime import shutil import elasticsearch2 from elasticsearch_dsl import Search, Q from collections import OrderedDict from sqlalchemy import create_engine from subprocess import Popen, PIPE, STDOUT import shlex import glob import csv # from api...
45.122642
160
0.566451
27a686fae11eeb59ce17fe8f4cf6412be0900891
8,180
py
Python
python_aternos/atconf.py
DarkCat09/python-aternos
a75d729e938a181449f304e849762dd9bb0e51f3
[ "Apache-2.0" ]
11
2021-10-01T13:04:44.000Z
2022-03-31T19:19:48.000Z
python_aternos/atconf.py
DarkCat09/python-aternos
a75d729e938a181449f304e849762dd9bb0e51f3
[ "Apache-2.0" ]
7
2021-10-01T14:00:20.000Z
2022-03-21T12:29:24.000Z
python_aternos/atconf.py
DarkCat09/python-aternos
a75d729e938a181449f304e849762dd9bb0e51f3
[ "Apache-2.0" ]
4
2022-01-07T13:47:39.000Z
2022-02-22T21:51:28.000Z
import enum import re import lxml.html from typing import Any, Dict, List, Union, Optional from typing import TYPE_CHECKING if TYPE_CHECKING: from .atserver import AternosServer DAT_PREFIX = 'Data:' DAT_GR_PREFIX = 'Data:GameRules:' # checking timezone format tzcheck = re.compile(r'(^[A-Z]\w+\/[A-Z]\w+...
24.638554
82
0.667604
27a6c1cdc477a10a4c9b691137650bb8e9980229
11,859
py
Python
examples/cadre_dymos.py
johnjasa/CADRE
a4ffd61582b8474953fc309aa540838a14f29dcf
[ "Apache-2.0" ]
null
null
null
examples/cadre_dymos.py
johnjasa/CADRE
a4ffd61582b8474953fc309aa540838a14f29dcf
[ "Apache-2.0" ]
null
null
null
examples/cadre_dymos.py
johnjasa/CADRE
a4ffd61582b8474953fc309aa540838a14f29dcf
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import unittest import numpy as np from openmdao.api import Problem, Group, pyOptSparseDriver, DirectSolver, SqliteRecorder from dymos import Phase from dymos.utils.indexing import get_src_indices_by_row from dymos.phases.components import ControlInterpComp from CADRE.odes_dym...
42.812274
143
0.70436
27a730a5c6d3019f232b6aef55d357908663ff70
959
py
Python
deso/Media.py
AdityaChaudhary0005/DeSo.py
5cb3c757fb21bad472da921c0148675c8957eb17
[ "MIT" ]
11
2021-11-12T18:20:22.000Z
2022-03-16T02:12:06.000Z
deso/Media.py
AdityaChaudhary0005/DeSo.py
5cb3c757fb21bad472da921c0148675c8957eb17
[ "MIT" ]
6
2021-11-25T04:30:44.000Z
2021-12-15T12:33:24.000Z
deso/Media.py
AdityaChaudhary0005/DeSo.py
5cb3c757fb21bad472da921c0148675c8957eb17
[ "MIT" ]
8
2021-11-19T19:14:50.000Z
2022-01-31T21:27:32.000Z
from deso.utils import getUserJWT import requests
31.966667
95
0.554745
27a8998af1db32b395a9af2dbb6c8a21bc35a70c
169
py
Python
workSpace/boot.py
khutson/macequilt
a4a090ddf296fcea763825fda4243bc84b4d5f0d
[ "MIT" ]
null
null
null
workSpace/boot.py
khutson/macequilt
a4a090ddf296fcea763825fda4243bc84b4d5f0d
[ "MIT" ]
null
null
null
workSpace/boot.py
khutson/macequilt
a4a090ddf296fcea763825fda4243bc84b4d5f0d
[ "MIT" ]
null
null
null
# This file is executed on every boot (including wake-boot from deepsleep) import esp esp.osdebug(None) import wifi wifi.connect(repl=False) import gc gc.collect()
13
74
0.763314
27a8cc8eee02c003f65618c441f8c80b6ada0052
1,790
py
Python
s3-scan-tar/tests/test_models.py
omBratteng/mottak
b7d2e1d063b31c2ad89c66e5414297612f91ebe9
[ "Apache-2.0" ]
4
2021-03-05T15:39:24.000Z
2021-09-15T06:11:45.000Z
s3-scan-tar/tests/test_models.py
omBratteng/mottak
b7d2e1d063b31c2ad89c66e5414297612f91ebe9
[ "Apache-2.0" ]
631
2020-04-27T10:39:18.000Z
2022-03-31T14:51:38.000Z
s3-scan-tar/tests/test_models.py
omBratteng/mottak
b7d2e1d063b31c2ad89c66e5414297612f91ebe9
[ "Apache-2.0" ]
3
2020-02-20T15:48:03.000Z
2021-12-16T22:50:40.000Z
import pytest from app.models import AVScanResult
29.833333
62
0.655307
27a97aed4e6639ade2261db847e3a6e16989a40c
1,424
py
Python
autoload/activate_this.py
BonaBeavis/vim-venom
a4ed892bd844de51c92e7b59dbc975db02c939b9
[ "Vim" ]
24
2020-04-26T11:50:40.000Z
2022-02-22T08:05:36.000Z
autoload/activate_this.py
BonaBeavis/vim-venom
a4ed892bd844de51c92e7b59dbc975db02c939b9
[ "Vim" ]
5
2021-01-26T12:41:12.000Z
2022-01-11T15:40:43.000Z
autoload/activate_this.py
BonaBeavis/vim-venom
a4ed892bd844de51c92e7b59dbc975db02c939b9
[ "Vim" ]
4
2020-05-02T21:45:36.000Z
2022-03-25T13:51:00.000Z
# -*- coding: utf-8 -*- """Activate virtualenv for current interpreter: Source: https://github.com/pypa/virtualenv Use exec(open(this_file).read(), {'__file__': this_file}). """ import os import site import sys try: abs_file = os.path.abspath(__file__) except NameError: raise AssertionError( "You must...
30.297872
78
0.714185
27abc06bb50512111945d911b3687183e05cd80c
2,731
py
Python
tattrdb/models.py
gmjosack/tattrdb
88d46eb049d05a1f0531531c49c2209c2bbbf562
[ "MIT" ]
1
2018-11-24T02:33:15.000Z
2018-11-24T02:33:15.000Z
tattrdb/models.py
gmjosack/tattrdb
88d46eb049d05a1f0531531c49c2209c2bbbf562
[ "MIT" ]
null
null
null
tattrdb/models.py
gmjosack/tattrdb
88d46eb049d05a1f0531531c49c2209c2bbbf562
[ "MIT" ]
null
null
null
from sqlalchemy import create_engine from sqlalchemy import ( Table, Column, Integer, String, Text, Boolean, ForeignKey, Enum, DateTime ) from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship, backref, sessionmaker Session = sessionmaker() Model = declarative_base() ...
28.154639
103
0.656902
27abe035638fda37c09ec1990dca44e2161d8667
30
py
Python
onepassword/__init__.py
jemmyw/1pass
8dbfa5e062ce08e26c5619dbdb2b27323e5b3dc9
[ "MIT" ]
1
2016-11-14T22:16:48.000Z
2016-11-14T22:16:48.000Z
onepassword/__init__.py
elliotchance/1pass
4bd45a52476c410c6e5b51f90fd46cbdd436807f
[ "MIT" ]
null
null
null
onepassword/__init__.py
elliotchance/1pass
4bd45a52476c410c6e5b51f90fd46cbdd436807f
[ "MIT" ]
null
null
null
from keychain import Keychain
15
29
0.866667
27ae7ed160d61ff6977fb0ea0dc61ee80279d33b
152,955
py
Python
modules/cockatoo/_knitnetwork.py
fstwn/Cockatoo
0c5f9c515053bfc31e62d20fddc4ae9bece09d88
[ "MIT" ]
9
2020-09-26T03:41:21.000Z
2021-11-29T06:52:35.000Z
modules/cockatoo/_knitnetwork.py
fstwn/Cockatoo
0c5f9c515053bfc31e62d20fddc4ae9bece09d88
[ "MIT" ]
9
2020-08-10T19:38:03.000Z
2022-02-24T08:41:32.000Z
modules/cockatoo/_knitnetwork.py
fstwn/Cockatoo
0c5f9c515053bfc31e62d20fddc4ae9bece09d88
[ "MIT" ]
3
2020-12-26T08:43:56.000Z
2021-10-17T19:37:52.000Z
# PYTHON STANDARD LIBRARY IMPORTS --------------------------------------------- from __future__ import absolute_import from __future__ import division from __future__ import print_function from collections import deque from collections import OrderedDict from math import radians from math import pi from operator import...
45.454681
79
0.495106
27af82c734c9c172d86f1e925df82c41889d2af8
5,388
py
Python
main.py
GuruOfPython/Python-Tkinter-GUI
de17e819cc6008274077d8347d722e779cb9166b
[ "MIT" ]
null
null
null
main.py
GuruOfPython/Python-Tkinter-GUI
de17e819cc6008274077d8347d722e779cb9166b
[ "MIT" ]
null
null
null
main.py
GuruOfPython/Python-Tkinter-GUI
de17e819cc6008274077d8347d722e779cb9166b
[ "MIT" ]
null
null
null
# from binary_tree import * # # root = Node(8) # # root.insert(3) # root.insert(10) # root.insert(1) # root.insert(6) # root.insert(4) # root.insert(7) # root.insert(14) # root.insert(13) # node, parent = root.lookup(6) # print(node, parent) # root.print_tree() # # root.delete(10) # # root.print_tree() import tkinter...
32.853659
103
0.615256
27b12ffdc16386ed1ffaa3ad7820397e93894fcc
4,634
py
Python
cbagent/collectors/sgimport_latency.py
sharujayaram/perfrunner
8fe8ff42a5c74c274b569ba2c45cd43b320f48eb
[ "Apache-2.0" ]
null
null
null
cbagent/collectors/sgimport_latency.py
sharujayaram/perfrunner
8fe8ff42a5c74c274b569ba2c45cd43b320f48eb
[ "Apache-2.0" ]
null
null
null
cbagent/collectors/sgimport_latency.py
sharujayaram/perfrunner
8fe8ff42a5c74c274b569ba2c45cd43b320f48eb
[ "Apache-2.0" ]
1
2019-05-20T13:44:29.000Z
2019-05-20T13:44:29.000Z
import requests import json from concurrent.futures import ProcessPoolExecutor as Executor from concurrent.futures import ThreadPoolExecutor from time import sleep, time from couchbase.bucket import Bucket from cbagent.collectors import Latency, Collector from logger import logger from perfrunner.helpers.misc impor...
30.486842
95
0.594087
27b2e2a025ad448d149dbcc0d2fb399829c3c2bf
370
py
Python
clean_junos_routes.py
JNPRAutomate/event_driven_automation_with_a_TIG_stack
4e2cebdec4dc8d681d71374a7c342f016b8b649e
[ "MIT" ]
4
2019-08-23T10:55:48.000Z
2021-06-24T01:00:12.000Z
clean_junos_routes.py
JNPRAutomate/event_driven_automation_with_a_TIG_stack
4e2cebdec4dc8d681d71374a7c342f016b8b649e
[ "MIT" ]
null
null
null
clean_junos_routes.py
JNPRAutomate/event_driven_automation_with_a_TIG_stack
4e2cebdec4dc8d681d71374a7c342f016b8b649e
[ "MIT" ]
5
2019-03-25T11:12:00.000Z
2021-12-23T03:01:14.000Z
from jnpr.junos import Device from jnpr.junos.utils.config import Config clean_routing_table()
24.666667
76
0.716216
27b4b4442e8234ce781c98d6ea27cb6fba57c3a9
5,000
py
Python
Tools/renew-navi-npc.py
vakhet/ragnarok-navigation
df7d3ff95a9bd1c0497744113ad664a31d248de6
[ "MIT" ]
3
2017-12-02T16:40:32.000Z
2020-02-11T17:44:02.000Z
Tools/renew-navi-npc.py
vakhet/ragnarok-navigation
df7d3ff95a9bd1c0497744113ad664a31d248de6
[ "MIT" ]
null
null
null
Tools/renew-navi-npc.py
vakhet/ragnarok-navigation
df7d3ff95a9bd1c0497744113ad664a31d248de6
[ "MIT" ]
null
null
null
""" Author : vakhet at gmail.com This script gets all your NPC names from the original rAthena folder and updates their lines in navi_npc_krpri.lub wherever matches the map_name and coords """ import re import os import random import sqlite3 NPC_match = r'^[\w\d_]+,\d+,\d+,\d+\tscript\t[\w\d_ -]+#*[...
28.571429
82
0.523
27b65665bc694cadf63afa04994bea99c68ab2c9
85
py
Python
rpicarserver/backlight/__init__.py
krixian/rpi-car-server
8058bec91462b5f2645119de898779d4bf292a84
[ "MIT" ]
null
null
null
rpicarserver/backlight/__init__.py
krixian/rpi-car-server
8058bec91462b5f2645119de898779d4bf292a84
[ "MIT" ]
null
null
null
rpicarserver/backlight/__init__.py
krixian/rpi-car-server
8058bec91462b5f2645119de898779d4bf292a84
[ "MIT" ]
null
null
null
from rpicarserver import ext
17
31
0.752941
27b801a71ed41ab9ae80dc219943a39cdead01b2
712
py
Python
tests/components/rtsp_to_webrtc/test_diagnostics.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
tests/components/rtsp_to_webrtc/test_diagnostics.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
24,710
2016-04-13T08:27:26.000Z
2020-03-02T12:59:13.000Z
tests/components/rtsp_to_webrtc/test_diagnostics.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Test nest diagnostics.""" from typing import Any from .conftest import ComponentSetup from tests.common import MockConfigEntry from tests.components.diagnostics import get_diagnostics_for_config_entry THERMOSTAT_TYPE = "sdm.devices.types.THERMOSTAT"
25.428571
87
0.716292
27b8c7ca0cbfe891ed4189a0d771be178c3ebb62
556
py
Python
Modulo_5/semana_3/pandas/pd.py
AutodidactaMx/cocid_python
11628f465ff362807a692c79ede26bf30dd8e26a
[ "MIT" ]
null
null
null
Modulo_5/semana_3/pandas/pd.py
AutodidactaMx/cocid_python
11628f465ff362807a692c79ede26bf30dd8e26a
[ "MIT" ]
null
null
null
Modulo_5/semana_3/pandas/pd.py
AutodidactaMx/cocid_python
11628f465ff362807a692c79ede26bf30dd8e26a
[ "MIT" ]
1
2022-03-04T00:57:18.000Z
2022-03-04T00:57:18.000Z
import pandas as pd import numpy as np df = pd.read_csv('poblacion.csv') pd.options.display.float_format = '{:,.1f}'.format df = pd.read_csv('poblacion.csv') df['year'] = pd.Categorical(df['year'].apply(str)) idx_filtro = df['Country'].isin(['Mexico','Panama']) df_filtro_country = df[idx_filtro] df_filtro_country =df...
30.888889
102
0.733813
27b8f98dbc5944c52c7fdf99ecb0474a2db0ffed
3,477
py
Python
reachweb/models.py
kamauvick/ReachOutDash
ceb7da731982bc9d1b1bb4185f34822b4dcf6526
[ "MIT" ]
null
null
null
reachweb/models.py
kamauvick/ReachOutDash
ceb7da731982bc9d1b1bb4185f34822b4dcf6526
[ "MIT" ]
9
2020-02-12T02:44:31.000Z
2022-03-12T00:03:57.000Z
reachweb/models.py
kamauvick/ReachOutDash
ceb7da731982bc9d1b1bb4185f34822b4dcf6526
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.db import models
30.5
98
0.632442
27bb547681e27f63805f0e3f2bcfba62a6d181f3
4,876
py
Python
distances/symmetric_amd_distance.py
npielawski/py_alpha_amd_release
6fb5b3cdef65ba8902daea050785dd73970002c2
[ "MIT" ]
14
2019-02-12T20:30:23.000Z
2021-11-04T01:10:34.000Z
distances/symmetric_amd_distance.py
npielawski/py_alpha_amd_release
6fb5b3cdef65ba8902daea050785dd73970002c2
[ "MIT" ]
2
2021-05-12T05:02:59.000Z
2021-10-11T14:40:10.000Z
distances/symmetric_amd_distance.py
npielawski/py_alpha_amd_release
6fb5b3cdef65ba8902daea050785dd73970002c2
[ "MIT" ]
7
2019-02-20T12:19:28.000Z
2021-02-09T10:12:06.000Z
# # Py-Alpha-AMD Registration Framework # Author: Johan Ofverstedt # Reference: Fast and Robust Symmetric Image Registration Based on Distances Combining Intensity and Spatial Information # # Copyright 2019 Johan Ofverstedt # # Permission is hereby granted, free of charge, to any person obtaining a copy of this softwa...
41.322034
179
0.689295
27bbbbc489c4d13faa511e2c2877df5e0ce8a2dd
431
py
Python
shop/migrations/0005_product_discounted_price.py
RitvikDayal/The-Stone-Shop
fed85d5ebb993fb1ce235f5e8a8ebc06a76fb956
[ "MIT" ]
2
2020-08-27T21:02:54.000Z
2020-08-27T21:03:44.000Z
shop/migrations/0005_product_discounted_price.py
RitvikDayal/The-Stone-Shop
fed85d5ebb993fb1ce235f5e8a8ebc06a76fb956
[ "MIT" ]
null
null
null
shop/migrations/0005_product_discounted_price.py
RitvikDayal/The-Stone-Shop
fed85d5ebb993fb1ce235f5e8a8ebc06a76fb956
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-07-28 12:46 from django.db import migrations, models
21.55
50
0.605568
27bc982db629d22f64003fb61afd5dee8511c5de
131
py
Python
tudo/ex060b.py
Ramon-Erik/Exercicios-Python
158a7f1846dd3d486aa0517fa337d46d73aab649
[ "MIT" ]
1
2021-07-08T00:35:57.000Z
2021-07-08T00:35:57.000Z
tudo/ex060b.py
Ramon-Erik/Exercicios-Python
158a7f1846dd3d486aa0517fa337d46d73aab649
[ "MIT" ]
null
null
null
tudo/ex060b.py
Ramon-Erik/Exercicios-Python
158a7f1846dd3d486aa0517fa337d46d73aab649
[ "MIT" ]
null
null
null
from math import factorial n = int(input('Digite um nmero, para obter seu fatorial: ')) print('{}! {}'.format(n, factorial(n)))
32.75
61
0.679389
27bd073801f417f0a990ea8f8617bbc868baa23e
157
py
Python
setup.py
messa/bloom
ce975471d0fabac436bcbd3040d22c6e5a97e47c
[ "MIT" ]
1
2021-03-14T13:54:42.000Z
2021-03-14T13:54:42.000Z
setup.py
messa/bloom
ce975471d0fabac436bcbd3040d22c6e5a97e47c
[ "MIT" ]
1
2021-03-15T09:02:24.000Z
2021-03-16T07:41:46.000Z
setup.py
messa/bloom
ce975471d0fabac436bcbd3040d22c6e5a97e47c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from setuptools import setup, Extension setup( ext_modules=[ Extension('bloom._hashc', ['bloom/_hashcmodule.c']) ])
17.444444
59
0.66242
27be070f86ae724315deda03de85e57e9b0b008d
5,645
py
Python
misc/util.py
winder/indexer
18f48f026f022cdeef92dcac558d3900d6ea798d
[ "MIT" ]
87
2020-08-20T19:14:02.000Z
2022-03-30T21:31:59.000Z
misc/util.py
hassoon1986/indexer
0a58e9a78ba7684c7f4cfb4fe7cb24b3d4622d9b
[ "MIT" ]
615
2020-06-03T14:13:29.000Z
2022-03-31T12:08:38.000Z
misc/util.py
hassoon1986/indexer
0a58e9a78ba7684c7f4cfb4fe7cb24b3d4622d9b
[ "MIT" ]
58
2020-06-03T21:33:48.000Z
2022-03-26T15:39:50.000Z
#!/usr/bin/env python3 import atexit import logging import os import random import subprocess import sys import time import msgpack logger = logging.getLogger(__name__) def unmsgpack(ob): "convert dict from msgpack.loads() with byte string keys to text string keys" if isinstance(ob, dict): od = {} ...
34.845679
107
0.589725
27c0f66f70a59c9a16bcacfd772c973fa3bad2e9
11,093
py
Python
coconut/_pyparsing.py
evhub/coconut
27a4af9dc06667870f736f20c862930001b8cbb2
[ "Apache-2.0" ]
3,624
2015-02-22T07:06:18.000Z
2022-03-31T03:38:00.000Z
coconut/_pyparsing.py
evhub/coconut
27a4af9dc06667870f736f20c862930001b8cbb2
[ "Apache-2.0" ]
627
2015-03-31T01:18:53.000Z
2022-03-28T07:48:31.000Z
coconut/_pyparsing.py
evhub/coconut
27a4af9dc06667870f736f20c862930001b8cbb2
[ "Apache-2.0" ]
162
2016-03-02T05:22:55.000Z
2022-03-31T23:42:55.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # ----------------------------------------------------------------------------------------------------------------------- # INFO: # ----------------------------------------------------------------------------------------------------------------------- """ Author: Evan Hub...
35.554487
180
0.554945
27c1c2dd0bdd326bf942be3440f758392e7db45f
4,948
py
Python
tests/test_explicit_hll.py
aholyoke/python-hll
30793aeb18103600fce0f3ad0b0c9e99e8b756fe
[ "MIT" ]
13
2019-11-19T07:38:46.000Z
2022-02-11T13:23:25.000Z
tests/test_explicit_hll.py
aholyoke/python-hll
30793aeb18103600fce0f3ad0b0c9e99e8b756fe
[ "MIT" ]
4
2019-12-12T04:19:34.000Z
2021-06-09T17:52:52.000Z
tests/test_explicit_hll.py
aholyoke/python-hll
30793aeb18103600fce0f3ad0b0c9e99e8b756fe
[ "MIT" ]
6
2019-11-06T21:33:25.000Z
2022-02-21T14:43:35.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import random from python_hll.hlltype import HLLType from python_hll.hll import HLL from python_hll.serialization import SerializationUtil """Unit tests for BitVector.""" def test_add_basic(): """ Tests basic set semantics of ``HLL.add_raw()``. """ # Ad...
27.337017
89
0.653597
27c4d9ac4a8dbf1e90e1e11bbe903ce9523aee39
4,792
py
Python
weixin/HelloMyDear.py
FantasyZsp/py-utils
4ccebd298780508d58400d2d8967f59ca7c6603d
[ "Apache-2.0" ]
null
null
null
weixin/HelloMyDear.py
FantasyZsp/py-utils
4ccebd298780508d58400d2d8967f59ca7c6603d
[ "Apache-2.0" ]
null
null
null
weixin/HelloMyDear.py
FantasyZsp/py-utils
4ccebd298780508d58400d2d8967f59ca7c6603d
[ "Apache-2.0" ]
null
null
null
from weixin.utils.WeiXinUtils import * # 5.main() # 5.main() if __name__ == '__main__': # names = input("") # hours = int(input("")) # minutes = int(input("")) # number = input("") # hello(names, hours, minutes, number) names = input("") hours = int(input("")) minutes = int(input("...
31.320261
97
0.47788
27c607ecb317226ea26c46b6beec6b1d9d516ae8
7,892
py
Python
Medicine-manag-django/pharma/views.py
DanielDDHM/my-projects-py
f6c3af7f6cd61c69234d25c956027e8c7e626470
[ "MIT" ]
null
null
null
Medicine-manag-django/pharma/views.py
DanielDDHM/my-projects-py
f6c3af7f6cd61c69234d25c956027e8c7e626470
[ "MIT" ]
null
null
null
Medicine-manag-django/pharma/views.py
DanielDDHM/my-projects-py
f6c3af7f6cd61c69234d25c956027e8c7e626470
[ "MIT" ]
null
null
null
from .models import Dealer from .models import Employee from .models import Customer from .models import Medicine from .models import Purchase from django.shortcuts import render from django.db import IntegrityError
28.490975
61
0.637988
27c811e47a423871511471f8e6a47527924900eb
202
py
Python
resume/display/views.py
Varun789/Profile
990818d233ac0279ef4d55641e1e284850bdbfb2
[ "BSD-3-Clause" ]
null
null
null
resume/display/views.py
Varun789/Profile
990818d233ac0279ef4d55641e1e284850bdbfb2
[ "BSD-3-Clause" ]
null
null
null
resume/display/views.py
Varun789/Profile
990818d233ac0279ef4d55641e1e284850bdbfb2
[ "BSD-3-Clause" ]
null
null
null
from django.shortcuts import render from .models import Profile # Create your views here.
22.444444
60
0.737624
27c8bd46f163cd7e8d07a019d3a50bfc0ca3baa3
458
py
Python
libStash/books/migrations/0023_auto_20210320_1241.py
Dev-Rem/libStash
a364e9997c1c91b09f5db8a004deb4df305fa8cf
[ "MIT" ]
null
null
null
libStash/books/migrations/0023_auto_20210320_1241.py
Dev-Rem/libStash
a364e9997c1c91b09f5db8a004deb4df305fa8cf
[ "MIT" ]
null
null
null
libStash/books/migrations/0023_auto_20210320_1241.py
Dev-Rem/libStash
a364e9997c1c91b09f5db8a004deb4df305fa8cf
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2021-03-20 12:41 import phone_field.models from django.db import migrations
22.9
104
0.637555
27c9faa515cbfcb516d2a78da11f8590793a0cac
6,912
py
Python
src/PyTorch2ONNX/PyTorch2ONNX_Run_in_ONNX_RUNTIME.py
Yulv-git/Model_Inference_Deployment
623f9955dfb60fe7af9d17415bfec58fc4c86c1b
[ "MIT" ]
4
2022-02-05T14:16:05.000Z
2022-03-27T13:35:06.000Z
src/PyTorch2ONNX/PyTorch2ONNX_Run_in_ONNX_RUNTIME.py
Yulv-git/Model_Inference_Deployment
623f9955dfb60fe7af9d17415bfec58fc4c86c1b
[ "MIT" ]
null
null
null
src/PyTorch2ONNX/PyTorch2ONNX_Run_in_ONNX_RUNTIME.py
Yulv-git/Model_Inference_Deployment
623f9955dfb60fe7af9d17415bfec58fc4c86c1b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 ''' Author: Shuangchi He / Yulv Email: yulvchi@qq.com Date: 2022-01-28 14:21:09 Motto: Entities should not be multiplied unnecessarily. LastEditors: Shuangchi He LastEditTime: 2022-04-06 11:40:23 FilePath: /Model_Inference_Deployment/src/PyTorch2ONNX/PyTorch2ONNX_Run_in_ONNX_RUNTIME...
41.638554
124
0.684172
27cc788dc3d49e45198c96fa1cec36fea676e304
2,085
py
Python
scripts/dataset.py
MarcGroef/deeplearning
d1ef095fbe0f7e9b56017808d976efe7502e6b81
[ "MIT" ]
null
null
null
scripts/dataset.py
MarcGroef/deeplearning
d1ef095fbe0f7e9b56017808d976efe7502e6b81
[ "MIT" ]
null
null
null
scripts/dataset.py
MarcGroef/deeplearning
d1ef095fbe0f7e9b56017808d976efe7502e6b81
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf from sklearn.model_selection import StratifiedKFold # Set dataset seed np.random.seed(seed=842102) if __name__ == "__main__": dataset = Dataset();
35.948276
130
0.659472
27cf1141da0cf1cbeff01d7fcd33d6536ff17b4d
1,962
py
Python
src/python/utils/image.py
Lamzigit/manifold_learning
f699fe4f25dbabdbc2dc9635c4e654b59806e17d
[ "MIT" ]
10
2017-06-14T08:04:44.000Z
2021-07-06T07:13:16.000Z
src/python/utils/image.py
Lamzigit/manifold_learning
f699fe4f25dbabdbc2dc9635c4e654b59806e17d
[ "MIT" ]
1
2020-11-18T13:08:43.000Z
2020-11-18T13:12:39.000Z
src/python/utils/image.py
Lamzigit/manifold_learning
f699fe4f25dbabdbc2dc9635c4e654b59806e17d
[ "MIT" ]
3
2017-06-14T08:04:53.000Z
2019-11-18T13:21:15.000Z
# -*- coding: utf-8 -*- """ Created on Thu Oct 15 14:03:52 2015 @author: jemanjohnson """ import numpy as np import matplotlib.pyplot as plt import os import scipy.io from sklearn import preprocessing from time import time from sklearn.preprocessing import MinMaxScaler # Image Reshape Function def img_as_array(img...
25.480519
73
0.618756
27cf8bbca13f1461fc47b01d2bfbcfa734035197
1,767
py
Python
test/finsignia/gae/controllers.py
finsignia/finsignia-gae
e8cf6a3855cb2844a3a7e113f26b600bd952d371
[ "MIT" ]
1
2016-05-08T21:47:10.000Z
2016-05-08T21:47:10.000Z
test/finsignia/gae/controllers.py
finsignia/finsignia-gae
e8cf6a3855cb2844a3a7e113f26b600bd952d371
[ "MIT" ]
null
null
null
test/finsignia/gae/controllers.py
finsignia/finsignia-gae
e8cf6a3855cb2844a3a7e113f26b600bd952d371
[ "MIT" ]
null
null
null
""" Tests for the finsignia.gae.controllers module. """ import os import sys from finsignia.gae import loader import unittest def test_cases(): return [ApplicationControllerTest, ResourceControllerTest] if '__main__' == __name__: unittest.main()
29.949153
97
0.730051
27d2e55ac297493daba610855afc860802f2e6c9
2,074
py
Python
tests/test_visualize_poll.py
UBC-MDS/tweepypoll
62ea4ea0ab381eecf8f24bd13da0a0cdfb18eaa6
[ "MIT" ]
null
null
null
tests/test_visualize_poll.py
UBC-MDS/tweepypoll
62ea4ea0ab381eecf8f24bd13da0a0cdfb18eaa6
[ "MIT" ]
30
2022-01-14T17:10:08.000Z
2022-02-02T21:17:05.000Z
tests/test_visualize_poll.py
UBC-MDS/tweepypoll
62ea4ea0ab381eecf8f24bd13da0a0cdfb18eaa6
[ "MIT" ]
1
2022-01-14T16:10:11.000Z
2022-01-14T16:10:11.000Z
from tweepypoll.tweepypoll import visualize_poll import pandas as pd import altair as alt def test_visualize_poll(): """Test visualize_poll on a dictionary input""" sample_poll_obj = [ { "text": "Important research!!!", "duration": 1440, "date": "2022-01-22T04:01:0...
35.152542
87
0.590646
27d3c4c2fd777115e15bd0efa78ebba378f85ab4
5,629
py
Python
quilt/avahiservice.py
rossdylan/quilt
463e3cfe419410b41ee6945ab96d51692d46b036
[ "MIT" ]
2
2015-07-23T03:49:42.000Z
2015-11-05T18:49:53.000Z
quilt/avahiservice.py
rossdylan/quilt
463e3cfe419410b41ee6945ab96d51692d46b036
[ "MIT" ]
null
null
null
quilt/avahiservice.py
rossdylan/quilt
463e3cfe419410b41ee6945ab96d51692d46b036
[ "MIT" ]
null
null
null
""" Avahi Network Service Scripting """ import Queue import threading import avahi, dbus, gobject from dbus import DBusException from dbus.mainloop.glib import DBusGMainLoop __all__ = ["QuiltAvahiServer", "QuiltAvahiClient"] TYPE = '_quilt._tcp' from threading import Thread
35.626582
105
0.551252
27d5437b9102d270c520f2be5bfb611ac3f22737
612
py
Python
tests/test.py
Robert-96/altwalker-appium-example
17bb3087d13fed62a4cb98ac0d25b7aa3b8a937d
[ "MIT" ]
null
null
null
tests/test.py
Robert-96/altwalker-appium-example
17bb3087d13fed62a4cb98ac0d25b7aa3b8a937d
[ "MIT" ]
null
null
null
tests/test.py
Robert-96/altwalker-appium-example
17bb3087d13fed62a4cb98ac0d25b7aa3b8a937d
[ "MIT" ]
null
null
null
from appium import webdriver from .utils import PATH desired_caps = dict( platformName='Android', platformVersion='10', automationName='uiautomator2', deviceName='Android Emulator', app=PATH('app/ApiDemos-debug.apk.zip') ) driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)
19.741935
73
0.668301
27d5f9dbcf40cc145235b4fffe9387c62c414d60
6,161
py
Python
tests/pte-onPrem-test-package/scripts/create_SCFile.py
gbl1124/hfrd
327d7c1e18704d2e31a2649b40ae1d90353ebe24
[ "Apache-2.0" ]
5
2019-08-02T20:53:57.000Z
2021-06-25T05:16:46.000Z
tests/pte-onPrem-test-package/scripts/create_SCFile.py
anandbanik/hfrd
7bc1f13bfc9c7d902aec0363d27b089ef68c7eec
[ "Apache-2.0" ]
null
null
null
tests/pte-onPrem-test-package/scripts/create_SCFile.py
anandbanik/hfrd
7bc1f13bfc9c7d902aec0363d27b089ef68c7eec
[ "Apache-2.0" ]
14
2019-07-01T01:40:50.000Z
2020-03-24T06:14:32.000Z
import json import os import argparse HOME = os.environ['HOME']+'/results/' parser = argparse.ArgumentParser(description="Python script generates the SCFiles using MSPIDs") parser.add_argument("-m", "--mspids", nargs="+", required=True, help="1 or more MSPIDs") parser.add_argument("-n", "--networkId", metavar='', req...
50.917355
127
0.603636
27d6cff2a09a34968b82d0b674f282b1d2271a34
9,721
py
Python
catalogue/forms.py
lh00257/superharris
cc8794ac6a63fa157ed6d0ef75f5089253ff987d
[ "MIT" ]
null
null
null
catalogue/forms.py
lh00257/superharris
cc8794ac6a63fa157ed6d0ef75f5089253ff987d
[ "MIT" ]
null
null
null
catalogue/forms.py
lh00257/superharris
cc8794ac6a63fa157ed6d0ef75f5089253ff987d
[ "MIT" ]
null
null
null
import re #Regular expression library from django import forms from django.contrib.auth.models import User from django.core.exceptions import ObjectDoesNotExist from django.template import RequestContext from django.contrib.auth.forms import AuthenticationForm from catalogue.models import Submitted from models import...
47.419512
110
0.632342
27d78b89ba7b997214a4c7166893ac8b3158ac3f
38,343
py
Python
sgan/models.py
peaceminusones/Group-GAN-GCN
ff0abf90bb830729d082d1fa46e41c749c738895
[ "MIT" ]
2
2021-05-25T09:10:15.000Z
2021-09-25T07:53:35.000Z
sgan/models.py
peaceminusones/Group-GAN-GCN
ff0abf90bb830729d082d1fa46e41c749c738895
[ "MIT" ]
null
null
null
sgan/models.py
peaceminusones/Group-GAN-GCN
ff0abf90bb830729d082d1fa46e41c749c738895
[ "MIT" ]
null
null
null
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F """ modified by zyl 2021/3/2 """ # class BatchMultiHeadGraphAttention(nn.Module): # """ # graph attetion layer(GAL) # """ # def __init__(self, n_head, f_in, f_out, attn_dropout, bias=True): # supe...
38.652218
126
0.586235
27d7ec475999a81872908a78c697615fa5aa0984
4,258
py
Python
netflow/mkipfixtypes/ipfixtypes.py
kohler/click-packages
cec70da7cf460548ef08f1ddad6924db29d5c0c5
[ "MIT" ]
13
2015-02-26T23:12:09.000Z
2021-04-18T04:37:12.000Z
netflow/mkipfixtypes/ipfixtypes.py
kohoumas/click-packages
6bb5c4ba286e5dbc74efd1708921d530425691f6
[ "MIT" ]
null
null
null
netflow/mkipfixtypes/ipfixtypes.py
kohoumas/click-packages
6bb5c4ba286e5dbc74efd1708921d530425691f6
[ "MIT" ]
7
2015-08-25T09:29:41.000Z
2021-04-18T04:37:13.000Z
#!/usr/bin/python # # Generates ipfixtypes.hh from IPFIX spec and schema # # Copyright (c) 2006 Mazu Networks, Inc. # # $Id: ipfixtypes.py,v 1.1 2006/05/12 16:43:44 eddietwo Exp $ # import xml.dom.minidom import sys import time def main(): if len(sys.argv) < 2: print "Usage: %s [OPTION]... [FILE]..." % sy...
26.447205
106
0.625881
27d8e4bb5627f304929e5b7f3fa1b41d586d410e
694
py
Python
core_lib/web_helpers/constants_media_type.py
shubham-surya/core-lib
543db80706746a937e5ed16bd50f2de8d58b32e4
[ "MIT" ]
null
null
null
core_lib/web_helpers/constants_media_type.py
shubham-surya/core-lib
543db80706746a937e5ed16bd50f2de8d58b32e4
[ "MIT" ]
9
2021-03-11T02:29:17.000Z
2022-03-22T19:01:18.000Z
core_lib/web_helpers/constants_media_type.py
shubham-surya/core-lib
543db80706746a937e5ed16bd50f2de8d58b32e4
[ "MIT" ]
2
2022-01-27T11:19:00.000Z
2022-02-11T11:33:09.000Z
import enum
34.7
69
0.729107
27da1fb06b835a7c7c1c2845d17975f0ff1c9b74
2,940
py
Python
pylons-emlo/emlo/workspace/indexing/src/conversionhelper.py
culturesofknowledge/emlo-server
8a88ca98a5211086195793e4bed5960550638936
[ "MIT" ]
null
null
null
pylons-emlo/emlo/workspace/indexing/src/conversionhelper.py
culturesofknowledge/emlo-server
8a88ca98a5211086195793e4bed5960550638936
[ "MIT" ]
null
null
null
pylons-emlo/emlo/workspace/indexing/src/conversionhelper.py
culturesofknowledge/emlo-server
8a88ca98a5211086195793e4bed5960550638936
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Created on 24 Aug 2010 @author: Matthew Wilcoxson functions convert from one value to another in the form: def conversion(value): #do something return new_value ''' import time
30
119
0.611905
27de194719485c100a81b84fd59429f4b32b78e0
992
py
Python
modules/wxpy-index/wxpy_index/version.py
john04047210/mira_wepy_server
385b8561e63f9164102e60681e2704c55fec0577
[ "MIT" ]
1
2018-05-22T11:25:59.000Z
2018-05-22T11:25:59.000Z
modules/wxpy-index/wxpy_index/version.py
john04047210/mira_wepy_server
385b8561e63f9164102e60681e2704c55fec0577
[ "MIT" ]
null
null
null
modules/wxpy-index/wxpy_index/version.py
john04047210/mira_wepy_server
385b8561e63f9164102e60681e2704c55fec0577
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2018 QiaoPeng. # # Invenio 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 2 of the # License, or (at your option) any l...
33.066667
72
0.746976
27dfaf52615924607a73e76ca9bec8a17c8c3880
11,305
py
Python
estimate.py
DS3Lab/feebee
eb210d07a7f9956ca2d0681ccf446330c8427a8b
[ "Apache-2.0" ]
1
2022-03-24T06:15:37.000Z
2022-03-24T06:15:37.000Z
estimate.py
DS3Lab/feebee
eb210d07a7f9956ca2d0681ccf446330c8427a8b
[ "Apache-2.0" ]
null
null
null
estimate.py
DS3Lab/feebee
eb210d07a7f9956ca2d0681ccf446330c8427a8b
[ "Apache-2.0" ]
1
2021-12-20T12:11:55.000Z
2021-12-20T12:11:55.000Z
from absl import app from absl import flags from absl import logging import csv import importlib import numpy as np import os.path as path import random from sklearn.model_selection import train_test_split import time from transformations.reader.matrix import test_argument_and_file, load_and_log import transformations...
51.153846
215
0.665369
27dfb13b1540ca2ae940981337f040231ef6dd46
2,610
py
Python
allmodels_image.py
GustavZ/Tensorflow-Object-Detection
3aab434b20e510d3953b4265dd73a1c7c315067d
[ "MIT" ]
187
2017-12-26T17:41:09.000Z
2019-03-06T04:44:25.000Z
allmodels_image.py
a554142589/realtime_object_detection
d2bd7e58df9af1848e473fa7627aa2433192903d
[ "MIT" ]
38
2018-02-01T17:05:01.000Z
2019-02-15T21:58:25.000Z
allmodels_image.py
a554142589/realtime_object_detection
d2bd7e58df9af1848e473fa7627aa2433192903d
[ "MIT" ]
65
2018-01-19T06:03:44.000Z
2019-03-06T04:58:31.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Wed Jan 10 09:45:23 2018 @author: www.github.com/GustavZ """ import os import sys import numpy as np from rod.config import Config from rod.helper import get_model_list, check_if_optimized_model from rod.model import ObjectDetectionModel, DeepLabModel RO...
32.222222
79
0.668966
27e04f3e71ee9ae2490b13c55437303fba48ca2d
5,953
py
Python
train.py
Jing-lun/GPR_3D_Model_Reconstruction
24259bdbdf5e993e286e556ee1bae720892a16b9
[ "Unlicense" ]
1
2021-09-30T10:22:54.000Z
2021-09-30T10:22:54.000Z
train.py
Jing-lun/GPR_3D_Model_Reconstruction
24259bdbdf5e993e286e556ee1bae720892a16b9
[ "Unlicense" ]
1
2021-07-23T13:10:58.000Z
2021-07-23T13:10:58.000Z
train.py
Jing-lun/GPR_3D_Model_Reconstruction
24259bdbdf5e993e286e556ee1bae720892a16b9
[ "Unlicense" ]
null
null
null
# Copyright 2021, Robotics Lab, City College of New York # 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 ...
36.975155
111
0.607425
27e1b8a412e18403318f1bb9f3adb67ae8c94d10
805
py
Python
Python/1-Fundamentals/Week 2/workshop2/banking_pkg/account.py
armirh/Nucamp-SQL-Devops-Training
6c2dc5793c732bfb4c4d365acbb346a95fbf4bf2
[ "MIT" ]
2
2022-01-19T02:33:11.000Z
2022-01-19T02:33:13.000Z
Python/1-Fundamentals/Week 2/workshop2/banking_pkg/account.py
armirh/Nucamp-SQL-Devops-Training
6c2dc5793c732bfb4c4d365acbb346a95fbf4bf2
[ "MIT" ]
null
null
null
Python/1-Fundamentals/Week 2/workshop2/banking_pkg/account.py
armirh/Nucamp-SQL-Devops-Training
6c2dc5793c732bfb4c4d365acbb346a95fbf4bf2
[ "MIT" ]
null
null
null
import sys
23.676471
70
0.607453
27e21695cafe73f0d93a69b097c0c530103f4723
2,098
py
Python
scrapers/who.py
kollivier/sushi-chef-who-covid-advice
cb50d5fdfe992767eff50bc33e323a682752d0b2
[ "MIT" ]
null
null
null
scrapers/who.py
kollivier/sushi-chef-who-covid-advice
cb50d5fdfe992767eff50bc33e323a682752d0b2
[ "MIT" ]
null
null
null
scrapers/who.py
kollivier/sushi-chef-who-covid-advice
cb50d5fdfe992767eff50bc33e323a682752d0b2
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup from ricecooker.classes import nodes
32.78125
86
0.597712
27e33b028e6c906a2e346f640e4d67536b199914
23,817
py
Python
dxtbx/tests/model/experiment/test_experiment_list.py
jbeilstenedmands/cctbx_project
c228fb15ab10377f664c39553d866281358195aa
[ "BSD-3-Clause-LBNL" ]
null
null
null
dxtbx/tests/model/experiment/test_experiment_list.py
jbeilstenedmands/cctbx_project
c228fb15ab10377f664c39553d866281358195aa
[ "BSD-3-Clause-LBNL" ]
null
null
null
dxtbx/tests/model/experiment/test_experiment_list.py
jbeilstenedmands/cctbx_project
c228fb15ab10377f664c39553d866281358195aa
[ "BSD-3-Clause-LBNL" ]
null
null
null
from __future__ import absolute_import, division, print_function import six.moves.cPickle as pickle from glob import glob import os import pytest from dxtbx.model import Experiment, ExperimentList from dxtbx.model.experiment_list import ExperimentListFactory, \ ExperimentListDumper, ExperimentListDict # def test_...
32.715659
89
0.719528
27e6185cd1321c58ae5c06b94cfd558705c422cd
365
py
Python
Divergence analysis/splitreference.py
MarniTausen/CloverAnalysisPipeline
ae169b46c7be40cdf0d97101480be12df87fc58e
[ "Unlicense" ]
4
2018-03-26T08:54:50.000Z
2021-07-28T13:34:07.000Z
Divergence analysis/splitreference.py
MarniTausen/CloverAnalysisPipeline
ae169b46c7be40cdf0d97101480be12df87fc58e
[ "Unlicense" ]
null
null
null
Divergence analysis/splitreference.py
MarniTausen/CloverAnalysisPipeline
ae169b46c7be40cdf0d97101480be12df87fc58e
[ "Unlicense" ]
4
2017-10-26T12:59:39.000Z
2021-07-12T08:40:56.000Z
from sys import argv if __name__=="__main__": make_new_reference_files(argv[1], argv[2], argv[3], argv[4])
26.071429
68
0.635616
27e766575366ccd5d46f9e7a446bbcc0f07d388e
1,323
py
Python
__pg/appids.py
briandorsey/cloud-playground
6e8ee5fcc6bb4e96bd10dcdf9eda451870c3cc1e
[ "Apache-2.0" ]
5
2017-03-02T15:57:44.000Z
2020-02-14T05:17:28.000Z
__pg/appids.py
briandorsey/cloud-playground
6e8ee5fcc6bb4e96bd10dcdf9eda451870c3cc1e
[ "Apache-2.0" ]
null
null
null
__pg/appids.py
briandorsey/cloud-playground
6e8ee5fcc6bb4e96bd10dcdf9eda451870c3cc1e
[ "Apache-2.0" ]
3
2017-05-20T11:23:07.000Z
2022-01-13T12:00:57.000Z
"""Module which defines collaborating app ids. This module is used by: settings.py scripts/deploy.sh """ import os # List of (playground appid, mimic app id, playground app id alias) _APP_ID_TUPLES = [ # production environment ('try-appengine', 'shared-playground', 'cloud-playground'), # developmen...
25.442308
67
0.708995
27e7f431903fe9377416892525c526c246e0ed24
21,183
py
Python
_states/novav21.py
NDPF/salt-formula-nova
265d9e6c2cbd41d564ee389b210441d9f7378433
[ "Apache-2.0" ]
4
2017-04-27T14:27:04.000Z
2017-11-04T18:23:09.000Z
_states/novav21.py
NDPF/salt-formula-nova
265d9e6c2cbd41d564ee389b210441d9f7378433
[ "Apache-2.0" ]
22
2017-02-01T09:04:52.000Z
2019-05-10T09:04:01.000Z
_states/novav21.py
NDPF/salt-formula-nova
265d9e6c2cbd41d564ee389b210441d9f7378433
[ "Apache-2.0" ]
35
2017-02-05T23:11:16.000Z
2019-04-04T17:21:36.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
39.155268
84
0.626729
27ea8174cb81713dd5c70d96704d5a2c63cec32e
325
py
Python
server/dev.py
Khanable/Photography-Portfolio-Website
5019e8316e078dcb672888dd847fdd6b732443a9
[ "MIT" ]
null
null
null
server/dev.py
Khanable/Photography-Portfolio-Website
5019e8316e078dcb672888dd847fdd6b732443a9
[ "MIT" ]
null
null
null
server/dev.py
Khanable/Photography-Portfolio-Website
5019e8316e078dcb672888dd847fdd6b732443a9
[ "MIT" ]
null
null
null
from sys import modules from importlib import import_module modules['server'] = import_module('src') from werkzeug.serving import run_simple from server.app import App from server.mode import Mode if __name__=='__main__': app = App(mode=Mode.Development) run_simple('localhost', 8000, app, use_reloader=Tr...
27.083333
55
0.76
27ed7774eba9356593529c7a047bb6eafaebca6b
6,891
py
Python
src/pyff/fetch.py
rhoerbe/pyFF
85933ed9cc9f720c9432d5e4c3114895cefd3579
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
src/pyff/fetch.py
rhoerbe/pyFF
85933ed9cc9f720c9432d5e4c3114895cefd3579
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
src/pyff/fetch.py
rhoerbe/pyFF
85933ed9cc9f720c9432d5e4c3114895cefd3579
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
""" An abstraction layer for metadata fetchers. Supports both syncronous and asyncronous fetchers with cache. """ from .logs import get_log import os import requests from .constants import config from datetime import datetime from collections import deque import six from concurrent import futures import traceback fr...
29.702586
108
0.565085
27effbc79d2bf6543199f4b75da0205988092da4
498
py
Python
pychonet/HomeSolarPower.py
mochipon/pychonet
65ba4189f9a66b6e698646854542cdd506369813
[ "MIT" ]
null
null
null
pychonet/HomeSolarPower.py
mochipon/pychonet
65ba4189f9a66b6e698646854542cdd506369813
[ "MIT" ]
null
null
null
pychonet/HomeSolarPower.py
mochipon/pychonet
65ba4189f9a66b6e698646854542cdd506369813
[ "MIT" ]
null
null
null
from pychonet.EchonetInstance import EchonetInstance
35.571429
79
0.728916
27f5b22f4011155a67ce267a26bf5d2d27c8298e
6,955
py
Python
adlmagics/adlmagics/adlmagics_main.py
Azure/Azure-Data-Service-Notebook
6bd28587c9fa0a7c1f9113f638b790b1773c5585
[ "MIT" ]
6
2018-06-06T08:37:53.000Z
2020-06-01T13:13:13.000Z
adlmagics/adlmagics/adlmagics_main.py
Azure/Azure-Data-Service-Notebook
6bd28587c9fa0a7c1f9113f638b790b1773c5585
[ "MIT" ]
30
2018-06-08T02:47:18.000Z
2018-07-25T07:07:07.000Z
adlmagics/adlmagics/adlmagics_main.py
Azure/Azure-Data-Service-Notebook
6bd28587c9fa0a7c1f9113f638b790b1773c5585
[ "MIT" ]
5
2018-06-06T08:37:55.000Z
2021-01-07T09:15:15.000Z
from IPython.core.magic import Magics, magics_class, line_cell_magic from sys import stdout from os import linesep from os.path import join, expanduser from adlmagics.version import adlmagics_version from adlmagics.converters.dataframe_converter import DataFrameConverter from adlmagics.utils.json_file_persister impo...
48.298611
168
0.78404
27f6676280bfbc46f5ea3961bee24ccfef845e05
10,137
py
Python
metadata_service/api/dashboard.py
iiAnderson/metaflow-service
b42391e5ee2187a93259b944c515522d76b1314e
[ "Apache-2.0" ]
null
null
null
metadata_service/api/dashboard.py
iiAnderson/metaflow-service
b42391e5ee2187a93259b944c515522d76b1314e
[ "Apache-2.0" ]
null
null
null
metadata_service/api/dashboard.py
iiAnderson/metaflow-service
b42391e5ee2187a93259b944c515522d76b1314e
[ "Apache-2.0" ]
null
null
null
import asyncio import json from datetime import datetime, timedelta from aiohttp import web from .utils import read_body, get_week_times, get_formatted_time from ..data.models import RunRow from ..data.postgres_async_db import AsyncPostgresDB import logging
32.805825
111
0.56792
27f693df0e7ea237223f8c2bc9de9a57a4f98dac
838
py
Python
tests/test_report.py
whalebot-helmsman/pykt-64
ee5e0413cd850876d3abc438480fffea4f7b7517
[ "BSD-3-Clause" ]
null
null
null
tests/test_report.py
whalebot-helmsman/pykt-64
ee5e0413cd850876d3abc438480fffea4f7b7517
[ "BSD-3-Clause" ]
null
null
null
tests/test_report.py
whalebot-helmsman/pykt-64
ee5e0413cd850876d3abc438480fffea4f7b7517
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from setup_teardown import start_db, stop_db from nose.tools import * from pykt import KyotoTycoon, KTException
21.487179
44
0.643198
27f6d38ee1079239114141527da38c16b3c99951
1,024
py
Python
src/Screen.py
D3r3k23/CaveRun
27f7b3c518f8646bc506f5d3b774ef6e62faef96
[ "MIT" ]
1
2022-02-10T04:42:04.000Z
2022-02-10T04:42:04.000Z
src/Screen.py
D3r3k23/CaveRun
27f7b3c518f8646bc506f5d3b774ef6e62faef96
[ "MIT" ]
null
null
null
src/Screen.py
D3r3k23/CaveRun
27f7b3c518f8646bc506f5d3b774ef6e62faef96
[ "MIT" ]
1
2022-01-11T17:11:44.000Z
2022-01-11T17:11:44.000Z
import Resources import Colors import pygame screen = None # Base class for drawable objects # Created from image and coordinates, stores image and rect
21.333333
90
0.640625
27f931503927cf87b2047c06d44bfc6dbb23b7c2
5,416
py
Python
manga_db/extractor/toonily.py
nilfoer/mangadb
860d7de310002735631ea26810b4df5b6bc08d7b
[ "MIT" ]
3
2021-01-14T16:22:41.000Z
2022-02-21T03:31:22.000Z
manga_db/extractor/toonily.py
nilfoer/mangadb
860d7de310002735631ea26810b4df5b6bc08d7b
[ "MIT" ]
13
2021-01-14T10:34:19.000Z
2021-05-20T08:47:54.000Z
manga_db/extractor/toonily.py
nilfoer/mangadb
860d7de310002735631ea26810b4df5b6bc08d7b
[ "MIT" ]
1
2022-02-24T03:10:04.000Z
2022-02-24T03:10:04.000Z
import re import datetime import bs4 from typing import Dict, Tuple, Optional, TYPE_CHECKING, ClassVar, Pattern, cast, Match, Any from .base import BaseMangaExtractor, MangaExtractorData from ..constants import STATUS_IDS, CENSOR_IDS if TYPE_CHECKING: from ..ext_info import ExternalInfo
37.351724
111
0.605613
27fb6ab9dc39790c3dcbcf43be391bd869cc5d49
10,965
py
Python
blindbackup/providers/blindfs.py
nagylzs/blindbackup
fa0c7a6ef42bb5aefec99eff69a3227c8695fdd9
[ "Apache-2.0" ]
1
2020-01-26T05:46:14.000Z
2020-01-26T05:46:14.000Z
blindbackup/providers/blindfs.py
nagylzs/blindbackup
fa0c7a6ef42bb5aefec99eff69a3227c8695fdd9
[ "Apache-2.0" ]
null
null
null
blindbackup/providers/blindfs.py
nagylzs/blindbackup
fa0c7a6ef42bb5aefec99eff69a3227c8695fdd9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import os.path import threading from .. import cryptfile from ..util import * from ..client import create_client from ..syncdir import FsProvider, FsListener
38.882979
121
0.529503
27fd6c6f828a7e94f81f249d959e7e48fffdae85
3,587
py
Python
examples/computer_vision/harris.py
parag-hub/arrayfire-python
65040c10833506f212f13e5bcc0e49cb20645e6e
[ "BSD-3-Clause" ]
420
2015-07-30T00:02:21.000Z
2022-03-28T16:52:28.000Z
examples/computer_vision/harris.py
parag-hub/arrayfire-python
65040c10833506f212f13e5bcc0e49cb20645e6e
[ "BSD-3-Clause" ]
198
2015-07-29T17:17:36.000Z
2022-01-20T18:31:28.000Z
examples/computer_vision/harris.py
parag-hub/arrayfire-python
65040c10833506f212f13e5bcc0e49cb20645e6e
[ "BSD-3-Clause" ]
75
2015-07-29T15:17:54.000Z
2022-02-24T06:50:23.000Z
#!/usr/bin/env python ####################################################### # Copyright (c) 2018, ArrayFire # All rights reserved. # # This file is distributed under 3-clause BSD license. # The complete license agreement can be obtained at: # http://arrayfire.com/licenses/BSD-3-Clause ###############################...
28.927419
85
0.606078
7e0022ad51ef52a75fd8fa97ecb5ea7bdfaf493d
4,376
py
Python
tests/generate_data.py
ngounou92/py-glm
83081444e2cbba4d94f9e6b85b6be23e0ff600b8
[ "BSD-3-Clause" ]
127
2017-09-01T13:54:43.000Z
2022-03-12T11:43:32.000Z
tests/generate_data.py
cscherrer/py-glm
d719d29fb5cc71c2cb5e728db36c6230a69292d8
[ "BSD-3-Clause" ]
8
2017-09-01T14:00:55.000Z
2020-11-09T14:42:50.000Z
tests/generate_data.py
cscherrer/py-glm
d719d29fb5cc71c2cb5e728db36c6230a69292d8
[ "BSD-3-Clause" ]
35
2017-09-01T19:23:04.000Z
2022-03-22T13:45:10.000Z
import numpy as np from scipy.linalg import sqrtm from sklearn.preprocessing import StandardScaler
41.67619
81
0.658364
7e0285965f79d7e3cf86a7275a5d19452f38b750
1,735
py
Python
scripts/http-server.py
jrbenito/SonoffDIY-tasmotizer
1fe9eb9b3b5630102feaf941bd02173d916e81a5
[ "MIT" ]
null
null
null
scripts/http-server.py
jrbenito/SonoffDIY-tasmotizer
1fe9eb9b3b5630102feaf941bd02173d916e81a5
[ "MIT" ]
3
2020-03-30T14:07:54.000Z
2020-03-30T22:59:29.000Z
scripts/http-server.py
jrbenito/SonoffDIY-tasmotizer
1fe9eb9b3b5630102feaf941bd02173d916e81a5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # encoding: utf-8 """ fake-registration-server.py Created by nano on 2018-11-22. Copyright (c) 2018 VTRUST. All rights reserved. """ import tornado.web import tornado.locks from tornado.options import define, options, parse_command_line define("port", default=80, help="run on the given port", t...
25.144928
101
0.702594
7e03585ae9ededa10d0e3ad01e0e054a8d2b1e4e
1,998
py
Python
tests/summary/test_binning_config.py
rob-tay/fast-carpenter
a8b128ba00b9a6808b2f0de40cefa2a360466897
[ "Apache-2.0" ]
null
null
null
tests/summary/test_binning_config.py
rob-tay/fast-carpenter
a8b128ba00b9a6808b2f0de40cefa2a360466897
[ "Apache-2.0" ]
null
null
null
tests/summary/test_binning_config.py
rob-tay/fast-carpenter
a8b128ba00b9a6808b2f0de40cefa2a360466897
[ "Apache-2.0" ]
null
null
null
import numpy as np import fast_carpenter.summary.binning_config as mgr from . import dummy_binning_descriptions as binning
33.864407
116
0.68018
7e037b73adcc0dc266a78c21e1147b45fea5e505
671
py
Python
create_ITIs.py
daanvanes/mloc_exp
bf6fb94b933f1cb78c60c38f80f03c78e9da3686
[ "MIT" ]
1
2019-03-20T15:12:07.000Z
2019-03-20T15:12:07.000Z
create_ITIs.py
daanvanes/mloc_exp
bf6fb94b933f1cb78c60c38f80f03c78e9da3686
[ "MIT" ]
null
null
null
create_ITIs.py
daanvanes/mloc_exp
bf6fb94b933f1cb78c60c38f80f03c78e9da3686
[ "MIT" ]
null
null
null
from __future__ import division from constants import * import numpy as np import os precueITIs = np.random.exponential(standard_parameters['mean_iti_precue'], standard_parameters['n_targets']) + standard_parameters['min_iti_precue'] np.save('ITIs/precueITIs.npy',precueITIs) postcueITIs = np.random.exponential(standa...
51.615385
162
0.81073
7e040cb0e0c724ec734deffc7ed5a19d9e7e9d15
99
py
Python
venv/lib/python3.7/site-packages/kdlearn/myfunctions.py
FillOverFlow/kdlearn
1e57895cb10ca903a33e2774986661b9b64d4071
[ "MIT" ]
1
2021-01-19T03:35:20.000Z
2021-01-19T03:35:20.000Z
venv/lib/python3.7/site-packages/kdlearn/myfunctions.py
FillOverFlow/kdlearn
1e57895cb10ca903a33e2774986661b9b64d4071
[ "MIT" ]
null
null
null
venv/lib/python3.7/site-packages/kdlearn/myfunctions.py
FillOverFlow/kdlearn
1e57895cb10ca903a33e2774986661b9b64d4071
[ "MIT" ]
null
null
null
''' PUT FUNCTION HERE !! Author Davinci '''
9.9
29
0.626263
7e0480f047709048b68affbe1e229fbea8aaa94b
4,122
py
Python
Set_ADT/linearset.py
jaeheeLee17/DS_and_Algorithms_summary
917500dd768eae8cfbb02cf2838d494cb720f1c0
[ "MIT" ]
null
null
null
Set_ADT/linearset.py
jaeheeLee17/DS_and_Algorithms_summary
917500dd768eae8cfbb02cf2838d494cb720f1c0
[ "MIT" ]
null
null
null
Set_ADT/linearset.py
jaeheeLee17/DS_and_Algorithms_summary
917500dd768eae8cfbb02cf2838d494cb720f1c0
[ "MIT" ]
null
null
null
# Implementation of the Set ADT container using a Python list. # An iterator for the Set ADT.
31.707692
71
0.563561
7e0968601bb493a7e6ab7c62ca33e94de63a37f6
123
py
Python
src/apps/buttons/apps.py
GoddessEyes/info_tbot
c7c5c818dc0c0c72aa15e6e4a85e7e28b4a7660d
[ "MIT" ]
null
null
null
src/apps/buttons/apps.py
GoddessEyes/info_tbot
c7c5c818dc0c0c72aa15e6e4a85e7e28b4a7660d
[ "MIT" ]
4
2021-03-19T02:42:10.000Z
2021-09-22T19:08:09.000Z
src/apps/buttons/apps.py
GoddessEyes/info_tbot
c7c5c818dc0c0c72aa15e6e4a85e7e28b4a7660d
[ "MIT" ]
null
null
null
from django.apps import AppConfig
17.571429
33
0.731707
7e09cc367a70ac9496d060fdad8e3eb6e83f2472
141
py
Python
code/tenka1_2019_c_01.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
3
2019-08-16T16:55:48.000Z
2021-04-11T10:21:40.000Z
code/tenka1_2019_c_01.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
null
null
null
code/tenka1_2019_c_01.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
null
null
null
input() S=input() dot=S.count(".") ans=dot count=0 for s in S: if s=="#":count+=1 else:dot-=1 ans=(min(ans,count+dot)) print(ans)
14.1
28
0.574468
7e0a3148033e56abb61f66e7e257ace62456c980
2,932
py
Python
app/billing/views.py
flaviogf/finance
86a74e1eea6b19d7fe8c311eb77394a267e26432
[ "MIT" ]
null
null
null
app/billing/views.py
flaviogf/finance
86a74e1eea6b19d7fe8c311eb77394a267e26432
[ "MIT" ]
null
null
null
app/billing/views.py
flaviogf/finance
86a74e1eea6b19d7fe8c311eb77394a267e26432
[ "MIT" ]
null
null
null
from flask import (Blueprint, abort, flash, redirect, render_template, request, url_for) from flask_login import current_user, login_required from app import db from app.billing.forms import CreateBillingForm from app.models import Billing from sqlalchemy import desc billing = Blueprint('billing', ...
27.660377
96
0.664734
7e0b8779363fd91f6026918cffc7f561df56bcf8
9,120
py
Python
flickipedia/mashup.py
rfaulkner/Flickipedia
1b53f30be4027901748a09c411d568c7148f4e4b
[ "BSD-2-Clause" ]
1
2016-03-11T09:40:19.000Z
2016-03-11T09:40:19.000Z
flickipedia/mashup.py
rfaulkner/Flickipedia
1b53f30be4027901748a09c411d568c7148f4e4b
[ "BSD-2-Clause" ]
1
2015-02-27T02:23:19.000Z
2015-02-27T02:23:19.000Z
flickipedia/mashup.py
rfaulkner/Flickipedia
1b53f30be4027901748a09c411d568c7148f4e4b
[ "BSD-2-Clause" ]
null
null
null
""" Author: Ryan Faulkner Date: October 19th, 2014 Container for mashup logic. """ import json import random from sqlalchemy.orm.exc import UnmappedInstanceError from flickipedia.redisio import DataIORedis from flickipedia.model.articles import ArticleModel, ArticleContentModel from flickipedia.config ...
35.076923
78
0.607346
7e0be21835c15a9296a6ae0c119d0388d9169b45
240
py
Python
docs/examples/slider_dimmer.py
SatoshiIwasada/BlueDot
e93bc242593d3a3cbfd0ff97f98fcffb0fcd961a
[ "MIT" ]
112
2017-03-27T17:23:17.000Z
2022-03-13T09:51:43.000Z
docs/examples/slider_dimmer.py
SatoshiIwasada/BlueDot
e93bc242593d3a3cbfd0ff97f98fcffb0fcd961a
[ "MIT" ]
109
2017-03-29T11:19:54.000Z
2022-02-03T14:18:15.000Z
docs/examples/slider_dimmer.py
SatoshiIwasada/BlueDot
e93bc242593d3a3cbfd0ff97f98fcffb0fcd961a
[ "MIT" ]
40
2017-03-30T23:23:27.000Z
2022-01-21T17:09:11.000Z
from bluedot import BlueDot from gpiozero import PWMLED from signal import pause led = PWMLED(27) bd = BlueDot() bd.when_moved = set_brightness pause()
17.142857
32
0.725
7e0e399837934c037868f72f1f2ece1fe8884d6e
328
py
Python
blog/urls.py
Halo-Developers/Halo-Learn
4c8f9e395c0145df39fa3333fefa23d02a370688
[ "MIT" ]
1
2021-09-23T16:02:51.000Z
2021-09-23T16:02:51.000Z
blog/urls.py
kuyesu/Halo-Learn
abd60d45c191297daedd20b3b308a30a78cba9c7
[ "MIT" ]
null
null
null
blog/urls.py
kuyesu/Halo-Learn
abd60d45c191297daedd20b3b308a30a78cba9c7
[ "MIT" ]
2
2021-09-20T09:50:45.000Z
2022-02-20T06:42:42.000Z
from django.urls import path from . import views app_name = 'blog' urlpatterns = [ path('', views.post_list, name='post_list'), path('<slug:post>/',views.post_detail,name="post_detail"), path('comment/reply/', views.reply_page, name="reply"), path('tag/<slug:tag_slug>/',views.post_list, name='post_tag...
27.333333
68
0.67378
fd665b1231aab43a664a3eab839a54a833e10f79
3,144
py
Python
web/env/lib/python3.6/site-packages/test/file/test_includer.py
Conbrown100/webfortune
779026d064498d36ddeba07e06cc744fb335ceb6
[ "Apache-2.0" ]
8
2015-07-30T16:19:18.000Z
2021-08-10T21:00:47.000Z
web/env/lib/python3.6/site-packages/test/file/test_includer.py
Conbrown100/webfortune
779026d064498d36ddeba07e06cc744fb335ceb6
[ "Apache-2.0" ]
3
2015-01-09T13:53:55.000Z
2017-06-05T17:39:46.000Z
web/env/lib/python3.6/site-packages/test/file/test_includer.py
Conbrown100/webfortune
779026d064498d36ddeba07e06cc744fb335ceb6
[ "Apache-2.0" ]
6
2015-01-09T13:47:15.000Z
2020-12-25T14:09:41.000Z
import os from tempfile import TemporaryDirectory import codecs import logging from grizzled.file.includer import * from grizzled.os import working_directory from grizzled.text import strip_margin import pytest
29.383178
70
0.515585
fd684e3bf1de0c4b9c2f1d5a15a6a2d42e862075
286
py
Python
output/models/nist_data/list_pkg/unsigned_short/schema_instance/nistschema_sv_iv_list_unsigned_short_min_length_2_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/list_pkg/unsigned_short/schema_instance/nistschema_sv_iv_list_unsigned_short_min_length_2_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/list_pkg/unsigned_short/schema_instance/nistschema_sv_iv_list_unsigned_short_min_length_2_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.nist_data.list_pkg.unsigned_short.schema_instance.nistschema_sv_iv_list_unsigned_short_min_length_2_xsd.nistschema_sv_iv_list_unsigned_short_min_length_2 import NistschemaSvIvListUnsignedShortMinLength2 __all__ = [ "NistschemaSvIvListUnsignedShortMinLength2", ]
47.666667
221
0.905594
fd69e06856c7f3a481475985f97cf69bf7d1965f
127
py
Python
satchmo/projects/skeleton/localsite/urls.py
predatell/satchmo
6ced1f845aadec240c7e433c3cbf4caca96e0d92
[ "BSD-3-Clause" ]
1
2019-10-08T16:19:59.000Z
2019-10-08T16:19:59.000Z
satchmo/projects/skeleton/localsite/urls.py
predatell/satchmo
6ced1f845aadec240c7e433c3cbf4caca96e0d92
[ "BSD-3-Clause" ]
null
null
null
satchmo/projects/skeleton/localsite/urls.py
predatell/satchmo
6ced1f845aadec240c7e433c3cbf4caca96e0d92
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import url from simple.localsite.views import example urlpatterns = [ url(r'example/', example), ]
15.875
42
0.732283
fd6a627b6084b5a56d9fe3161a2d00c62052ed2a
8,850
py
Python
tbconnect/tests/test_views.py
praekeltfoundation/healthcheck
3f8b3722ea41c2d81c706e0f9a3473ba2cb2f2ba
[ "BSD-3-Clause" ]
null
null
null
tbconnect/tests/test_views.py
praekeltfoundation/healthcheck
3f8b3722ea41c2d81c706e0f9a3473ba2cb2f2ba
[ "BSD-3-Clause" ]
23
2020-07-16T15:40:35.000Z
2021-12-13T13:59:30.000Z
tbconnect/tests/test_views.py
praekeltfoundation/healthcheck
3f8b3722ea41c2d81c706e0f9a3473ba2cb2f2ba
[ "BSD-3-Clause" ]
1
2021-02-24T04:58:40.000Z
2021-02-24T04:58:40.000Z
from django.test import TestCase from django.contrib.auth import get_user_model from django.contrib.auth.models import Permission from django.urls import reverse from rest_framework import status from rest_framework.test import APITestCase from tbconnect.models import TBCheck, TBTest from userprofile.models import Hea...
37.184874
84
0.568701
fd6abf4d61e22150256649650adbe262b09e0720
1,350
py
Python
code/runibm1.py
jrod2699/CS159-NLP-Final-Project-
76eea6149ab01d5e72232874398458ec9f35227f
[ "MIT" ]
null
null
null
code/runibm1.py
jrod2699/CS159-NLP-Final-Project-
76eea6149ab01d5e72232874398458ec9f35227f
[ "MIT" ]
null
null
null
code/runibm1.py
jrod2699/CS159-NLP-Final-Project-
76eea6149ab01d5e72232874398458ec9f35227f
[ "MIT" ]
null
null
null
import nltk import random from preprocess import compile_corpus from nltk.translate import IBMModel1, AlignedSent, Alignment def get_rand_sent(): ''' Redirect the standard output of the program -- i.e. the random sentences -- and transfer it over to the appropriate file. From there we will take a lo...
31.395349
115
0.665926
fd6ba7ba1979062899ef77a2f2ebee1332127153
374
py
Python
makenew_python_app/server/boot.py
makenew/python-app
5f3c6669efe6e80d356d39afb712d72bf0e69916
[ "MIT" ]
2
2021-01-10T05:54:37.000Z
2021-01-12T01:24:38.000Z
makenew_python_app/server/boot.py
makenew/python-app
5f3c6669efe6e80d356d39afb712d72bf0e69916
[ "MIT" ]
null
null
null
makenew_python_app/server/boot.py
makenew/python-app
5f3c6669efe6e80d356d39afb712d72bf0e69916
[ "MIT" ]
null
null
null
from os import environ, path from .server import Server from .config import configure
26.714286
68
0.716578
fd6c34c3adb6f440619a388c9b66cf0b7a99a5e9
1,027
py
Python
checker/backends/pagure.py
1dot75cm/repo-checker
1ca191efbeaa9f44876546ee59487e8d515cd735
[ "MIT" ]
4
2016-01-10T15:58:48.000Z
2019-08-10T23:12:31.000Z
checker/backends/pagure.py
1dot75cm/repo-checker
1ca191efbeaa9f44876546ee59487e8d515cd735
[ "MIT" ]
1
2021-03-31T18:46:14.000Z
2021-03-31T18:46:14.000Z
checker/backends/pagure.py
1dot75cm/repo-checker
1ca191efbeaa9f44876546ee59487e8d515cd735
[ "MIT" ]
5
2016-03-22T00:58:33.000Z
2017-09-14T12:43:54.000Z
# -*- coding: utf-8 -*- from checker.backends import BaseBackend from checker import logger log = logger.getLogger(__name__)
27.756757
77
0.559883
fd6d8440e80ddfffc2b7c87e874259a2676fb497
2,184
py
Python
vial/plugins/grep/plugin.py
solarnz/vial
080dd204c6fac49c9541cd179e7842de7cb6f8ee
[ "MIT" ]
5
2015-06-27T09:36:26.000Z
2018-05-05T02:43:43.000Z
vial/plugins/grep/plugin.py
solarnz/vial
080dd204c6fac49c9541cd179e7842de7cb6f8ee
[ "MIT" ]
4
2018-06-07T15:19:33.000Z
2020-02-10T12:15:11.000Z
vial/plugins/grep/plugin.py
solarnz/vial
080dd204c6fac49c9541cd179e7842de7cb6f8ee
[ "MIT" ]
2
2019-08-30T07:27:05.000Z
2020-02-12T08:03:24.000Z
import os import re from time import time from vial import vfunc, vim from vial.fsearch import get_files from vial.utils import get_projects, redraw MAX_FILESIZE = 10 * 1024 * 1024
24.818182
61
0.431777
fd6ea7420f474f3252a16e6bcdeebb2e566cf6e9
3,619
py
Python
tests/test_models.py
DynamicGravitySystems/DGP
5c0b566b846eb25f1e5ede64b2caaaa6a3352a29
[ "Apache-2.0" ]
7
2017-08-15T21:51:40.000Z
2020-10-28T00:40:23.000Z
tests/test_models.py
DynamicGravitySystems/DGP
5c0b566b846eb25f1e5ede64b2caaaa6a3352a29
[ "Apache-2.0" ]
63
2017-08-11T15:12:03.000Z
2020-05-23T19:03:46.000Z
tests/test_models.py
cbertinato/DGP
5bb8a30895365eccdd452970c45e248903fca8af
[ "Apache-2.0" ]
4
2018-03-29T21:30:26.000Z
2020-10-27T20:15:23.000Z
# -*- coding: utf-8 -*- """ Unit tests for new Project/Flight data classes, including JSON serialization/de-serialization """ import time from datetime import datetime from typing import Tuple from uuid import uuid4 from pathlib import Path import pytest import pandas as pd from dgp.core import DataType from dgp.cor...
27.210526
80
0.698812
fd6f10a9e5cd95371737b186d651e8e464b2660c
389
py
Python
examples/urls.py
sayanjap/DynamicForms
071707de36d109fe3a17ae5df239240ea5ba707f
[ "BSD-3-Clause" ]
42
2018-01-18T14:50:05.000Z
2022-03-24T18:34:19.000Z
examples/urls.py
sayanjap/DynamicForms
071707de36d109fe3a17ae5df239240ea5ba707f
[ "BSD-3-Clause" ]
14
2018-12-05T21:39:23.000Z
2022-02-27T06:43:48.000Z
examples/urls.py
sayanjap/DynamicForms
071707de36d109fe3a17ae5df239240ea5ba707f
[ "BSD-3-Clause" ]
5
2018-01-18T16:32:20.000Z
2021-06-07T10:15:18.000Z
from django.conf.urls import include, url from rest_framework.documentation import include_docs_urls from examples.rest import router from .views import index urlpatterns = [ url(r'^$', index, name='index'), url(r'^', include(router.urls)), url(r'^dynamicforms/', include('dynamicforms.urls')), url(r'^...
29.923077
77
0.722365
fd6f1c1a3069baecfcb5b723cf12a8c76710a022
1,312
py
Python
tests/contract/test_concept.py
Informasjonsforvaltning/fdk-harvester-bff
21f5d41bbe2506d9c23f0e670e6dee1bfe9f0742
[ "Apache-2.0" ]
null
null
null
tests/contract/test_concept.py
Informasjonsforvaltning/fdk-harvester-bff
21f5d41bbe2506d9c23f0e670e6dee1bfe9f0742
[ "Apache-2.0" ]
20
2020-09-23T10:04:48.000Z
2022-03-14T07:47:45.000Z
tests/contract/test_concept.py
Informasjonsforvaltning/fdk-harvester-bff
21f5d41bbe2506d9c23f0e670e6dee1bfe9f0742
[ "Apache-2.0" ]
null
null
null
"""Test cases for concepts.""" from typing import Any import pytest import requests
42.322581
289
0.70503
fd6fc2f8e9fb0cf4963f53e0dd218bc472fd9daa
4,572
py
Python
passmanBackend/vault_backend/models.py
sharanvarma0/passman-backend
d210fcc43886bd9be40ceaba3411209799cb8476
[ "BSD-3-Clause" ]
null
null
null
passmanBackend/vault_backend/models.py
sharanvarma0/passman-backend
d210fcc43886bd9be40ceaba3411209799cb8476
[ "BSD-3-Clause" ]
null
null
null
passmanBackend/vault_backend/models.py
sharanvarma0/passman-backend
d210fcc43886bd9be40ceaba3411209799cb8476
[ "BSD-3-Clause" ]
null
null
null
''' Mostly these are internal imports related to django and rest_framework. The os and io imports are for creating files, paths and parsing bytes objects respectively ''' from django.db import models from django.contrib.auth.models import User from rest_framework.renderers import JSONRenderer from rest_framework.par...
41.563636
227
0.649606
fd71a2a6d5b1e71ced9722bf68301238887fd3c8
95,557
py
Python
DexParse.py
liumengdeqq/DexParse
769899e26f01700c690ed82c48790d1000efb5f1
[ "Apache-2.0" ]
16
2015-11-19T01:51:52.000Z
2020-03-10T06:24:28.000Z
DexParse.py
CvvT/DexParse
80c3f4a27e7163536f98584c5e7f7ec35a9451b8
[ "Apache-2.0" ]
null
null
null
DexParse.py
CvvT/DexParse
80c3f4a27e7163536f98584c5e7f7ec35a9451b8
[ "Apache-2.0" ]
22
2015-09-15T02:20:48.000Z
2021-06-24T02:55:09.000Z
#! /usr/bin/python # coding=utf-8 import struct import os import hashlib import Instruction Access_Flag = {'public': 1, 'private': 2, 'protected': 4, 'static': 8, 'final': 0x10, 'synchronized': 0x20, 'volatile': 0x40, 'bridge': 0x40, 'transient': 0x80, 'varargs': 0x80, 'native': ...
40.958851
124
0.551744
fd71ae1315e427ea9c9874263b95024d2ffb8696
1,852
py
Python
api/myapi/serializers.py
UmmuRasul/sbvbn
3d4705b9eb5e6bc996028ecc0a8ec43a435ef18b
[ "MIT" ]
null
null
null
api/myapi/serializers.py
UmmuRasul/sbvbn
3d4705b9eb5e6bc996028ecc0a8ec43a435ef18b
[ "MIT" ]
null
null
null
api/myapi/serializers.py
UmmuRasul/sbvbn
3d4705b9eb5e6bc996028ecc0a8ec43a435ef18b
[ "MIT" ]
null
null
null
from rest_framework import serializers from api.models import User, UserProfile, Post, News, Video from datetime import datetime
31.389831
83
0.665227
fd71c4f7dcacba2ce5484fe215f8d27faba98441
6,603
py
Python
src/morphforgecontrib/simulation/channels/hh_style/neuron/mm_neuron_alphabetabeta.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
1
2021-01-21T11:31:59.000Z
2021-01-21T11:31:59.000Z
src/morphforgecontrib/simulation/channels/hh_style/neuron/mm_neuron_alphabetabeta.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
null
null
null
src/morphforgecontrib/simulation/channels/hh_style/neuron/mm_neuron_alphabetabeta.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # --------------------------------------------------------------------- # Copyright (c) 2012 Michael Hull. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are m...
33.015
123
0.69741
fd7312c0409e17edc8a594caad14c3eebd8edb1f
5,344
py
Python
cookie.py
cppchriscpp/fortune-cookie
46e433e1ae06a8ad742b252d642f8620bde9e38b
[ "MIT" ]
null
null
null
cookie.py
cppchriscpp/fortune-cookie
46e433e1ae06a8ad742b252d642f8620bde9e38b
[ "MIT" ]
null
null
null
cookie.py
cppchriscpp/fortune-cookie
46e433e1ae06a8ad742b252d642f8620bde9e38b
[ "MIT" ]
null
null
null
import markovify import re import nltk import os import urllib.request from shutil import copyfile # We need a temporary(ish) place to store the data we retrieve. # If you are running this in a docker container you may want to mount a volume and use it. # Also be sure to make a symlink between it and the assets direc...
36.60274
165
0.698915
fd76b6a6e3bed41850763cc3f44afdab15844d51
427
py
Python
wsgi_microservice_middleware/__init__.py
presalytics/WSGI-Microservice-Middleware
1dfcd1121d25569312d7c605d162cb52f38101e3
[ "MIT" ]
1
2020-08-13T05:31:01.000Z
2020-08-13T05:31:01.000Z
wsgi_microservice_middleware/__init__.py
presalytics/WSGI-Microservice-Middleware
1dfcd1121d25569312d7c605d162cb52f38101e3
[ "MIT" ]
null
null
null
wsgi_microservice_middleware/__init__.py
presalytics/WSGI-Microservice-Middleware
1dfcd1121d25569312d7c605d162cb52f38101e3
[ "MIT" ]
null
null
null
import environs env = environs.Env() env.read_env() from wsgi_microservice_middleware.cors import CORSMiddleware from wsgi_microservice_middleware.request_id import ( RequestIdFilter, RequestIdMiddleware, current_request_id, RequestIdJsonLogFormatter ) __all__ = [ 'CORSMiddleware', 'Re...
17.791667
60
0.744731
fd77738934a082ed69675adc328a1ec23a42bd8b
686
py
Python
car_manager.py
njiang6/turtle_crossing
5445ca941bc53002299c60a0587d84f8a111f1be
[ "Apache-2.0" ]
1
2021-03-24T02:21:03.000Z
2021-03-24T02:21:03.000Z
car_manager.py
njiang6/turtle_crossing
5445ca941bc53002299c60a0587d84f8a111f1be
[ "Apache-2.0" ]
null
null
null
car_manager.py
njiang6/turtle_crossing
5445ca941bc53002299c60a0587d84f8a111f1be
[ "Apache-2.0" ]
null
null
null
import turtle as t import random COLORS = ["red", "orange", "yellow", "green", "blue", "purple"] STARTING_MOVE_DISTANCE = 5 MOVE_INCREMENT = 1
23.655172
63
0.644315
fd78ccdbc7f44ee790bb4e0e5bb66afdadb94039
3,329
py
Python
2021/05_2/solution.py
budavariam/advent_of_code
0903bcbb0df46371b6a340ca2be007dce6470c66
[ "MIT" ]
null
null
null
2021/05_2/solution.py
budavariam/advent_of_code
0903bcbb0df46371b6a340ca2be007dce6470c66
[ "MIT" ]
null
null
null
2021/05_2/solution.py
budavariam/advent_of_code
0903bcbb0df46371b6a340ca2be007dce6470c66
[ "MIT" ]
1
2022-02-11T13:14:50.000Z
2022-02-11T13:14:50.000Z
""" Advent of code 2021 day 05 / 2 """ import math from os import path import re from collections import Counter def solution(data): """ Solution to the problem """ lines = preprocess(data) solver = Code(lines) return solver.solve() if __name__ == "__main__": with(open(path.join(path.dirname(...
31.40566
82
0.393812
fd7a3d5f8bd77ce667a1424c233439cb51d4d806
2,032
py
Python
examples/plot_tissue_specific_corrections.py
imagejan/starfish
adf48f4b30cfdf44ac8c9cc78fc469665ce7d594
[ "MIT" ]
null
null
null
examples/plot_tissue_specific_corrections.py
imagejan/starfish
adf48f4b30cfdf44ac8c9cc78fc469665ce7d594
[ "MIT" ]
null
null
null
examples/plot_tissue_specific_corrections.py
imagejan/starfish
adf48f4b30cfdf44ac8c9cc78fc469665ce7d594
[ "MIT" ]
null
null
null
""" Tissue Corrections ================== """ ################################################################################################### # .. _tutorial_removing_autoflourescence: # # Removing autofluorescence # ========================= # # In addition to the bright spots (signal) that we want to detect, micr...
35.034483
102
0.599902