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
74572a2aa855eb547d5395986ea7bf0a29902db0
3,058
py
Python
David S/Textswapping/texteditor.py
daaronr/dr_text_md_tools
7d74a95c9f3cfd0f66d46f9bee23878e8e783da8
[ "BSD-2-Clause" ]
null
null
null
David S/Textswapping/texteditor.py
daaronr/dr_text_md_tools
7d74a95c9f3cfd0f66d46f9bee23878e8e783da8
[ "BSD-2-Clause" ]
null
null
null
David S/Textswapping/texteditor.py
daaronr/dr_text_md_tools
7d74a95c9f3cfd0f66d46f9bee23878e8e783da8
[ "BSD-2-Clause" ]
null
null
null
#texteditor.py #Description: uses csv-format file 'dictionary' to make a series of replacements in 'oldfile' and create 'newfile' #Execute as "python texteditor.py oldfile dictionary" #Creates 'newfile' #see also README.md import os #tells python to use the module 'os' import sys #tells python to use the module 'sys'...
35.149425
179
0.733813
745999d132ff9aeafd110c46482e9bd04fc9b1a8
9,832
py
Python
server/app.py
meowterspace/mission_control
c98ff78c9d1e6ad9c70e60f83b8fb2fa6af32887
[ "MIT" ]
null
null
null
server/app.py
meowterspace/mission_control
c98ff78c9d1e6ad9c70e60f83b8fb2fa6af32887
[ "MIT" ]
4
2017-10-31T17:26:11.000Z
2018-01-12T22:11:03.000Z
server/app.py
meowterspace/mission_control
c98ff78c9d1e6ad9c70e60f83b8fb2fa6af32887
[ "MIT" ]
null
null
null
# Import all external libraries import json import datetime import time import os import io import errno from flask import Flask, render_template, send_file, request, session, redirect, render_template_string from flask_socketio import SocketIO, emit, send from threading import Thread, Lock import resources import sys...
40.79668
126
0.68572
745b09ab868c2f65731e7156a385d464a997846f
5,676
py
Python
ndd/counts.py
simomarsili/ndd
3a8f8f80116ddaf8666dd13b246a04c9806447a7
[ "BSD-3-Clause" ]
34
2017-01-25T21:42:07.000Z
2022-03-05T02:12:11.000Z
ndd/counts.py
simomarsili/ndd
3a8f8f80116ddaf8666dd13b246a04c9806447a7
[ "BSD-3-Clause" ]
4
2018-06-22T19:15:33.000Z
2020-05-06T12:37:24.000Z
ndd/counts.py
simomarsili/ndd
3a8f8f80116ddaf8666dd13b246a04c9806447a7
[ "BSD-3-Clause" ]
2
2019-07-31T07:53:02.000Z
2019-07-31T07:53:22.000Z
# -*- coding: utf-8 -*- """CountsDistribution class.""" import json import logging from collections.abc import Mapping, MappingView from types import GeneratorType import numpy import ndd.fnsb from ndd.exceptions import NddError logger = logging.getLogger(__name__) def unique(nk, sort=True): """Return nk, zk""...
28.522613
75
0.555673
745b6a06e7b05b2a82df687d97773686b7b6c978
1,999
py
Python
events-svc/app/actions/event_actions.py
zerodevgroup/fastapi-referece-architecture
185e4b3036799fec2044dd415022ba0760b5bb45
[ "MIT" ]
null
null
null
events-svc/app/actions/event_actions.py
zerodevgroup/fastapi-referece-architecture
185e4b3036799fec2044dd415022ba0760b5bb45
[ "MIT" ]
null
null
null
events-svc/app/actions/event_actions.py
zerodevgroup/fastapi-referece-architecture
185e4b3036799fec2044dd415022ba0760b5bb45
[ "MIT" ]
null
null
null
import aiohttp import asyncio import base64 import os from events import EventIn, EventOut, EventUpdate from fastapi.logger import logger from db import events, database STRIPE_CHARGES_URL = os.getenv("STRIPE_CHARGES_URL") STRIPE_API_KEY = os.getenv("STRIPE_API_KEY")
32.241935
98
0.69935
745ce16b8c6283b71d3e3aefb6237ab8e9a44ba5
776
py
Python
datatools/test/number.py
hayj/DataTools
a779a533afe8e176c33b91d17974468ef7c6b17e
[ "MIT" ]
null
null
null
datatools/test/number.py
hayj/DataTools
a779a533afe8e176c33b91d17974468ef7c6b17e
[ "MIT" ]
null
null
null
datatools/test/number.py
hayj/DataTools
a779a533afe8e176c33b91d17974468ef7c6b17e
[ "MIT" ]
null
null
null
# coding: utf-8 from fr.hayj.util.number import *; from fr.hayj.util.duration import *; import unittest import re # The level allow the unit test execution to choose only the top level test unittestLevel = 1 if unittestLevel <= 1:
32.333333
78
0.640464
745d592616ed0c1497992e114b4112aa3cdca55c
1,006
py
Python
backend/server_flask.py
sigmarising/Multimedia-Homework-website
38fdf0c2c539b2d02d4062c55982f1e9df5f5ef4
[ "MIT" ]
null
null
null
backend/server_flask.py
sigmarising/Multimedia-Homework-website
38fdf0c2c539b2d02d4062c55982f1e9df5f5ef4
[ "MIT" ]
null
null
null
backend/server_flask.py
sigmarising/Multimedia-Homework-website
38fdf0c2c539b2d02d4062c55982f1e9df5f5ef4
[ "MIT" ]
null
null
null
import os from flask import Flask, send_from_directory, request, jsonify # Path settings SERVER_PATH = os.path.abspath(os.path.dirname(__file__)) FTP_PATH = os.path.abspath(os.path.join(SERVER_PATH, 'ftp/')) # Flask app settings app = Flask(__name__) app.config['JSON_AS_ASCII'] = False if __name__ == "__main__":...
27.189189
72
0.709742
745efcdb285c929a84a0e99a3d292fa8280b80d9
20
py
Python
django_project/users/migrations/__init__.py
Manish-Sharma-1810/My-Django-Blog-App
9dc791bd11c9ff0e3eea21125dd127e8c2435e00
[ "MIT" ]
null
null
null
django_project/users/migrations/__init__.py
Manish-Sharma-1810/My-Django-Blog-App
9dc791bd11c9ff0e3eea21125dd127e8c2435e00
[ "MIT" ]
null
null
null
django_project/users/migrations/__init__.py
Manish-Sharma-1810/My-Django-Blog-App
9dc791bd11c9ff0e3eea21125dd127e8c2435e00
[ "MIT" ]
1
2021-12-20T14:15:47.000Z
2021-12-20T14:15:47.000Z
# This file is empty
20
20
0.75
7461e3bcb8e9c632b051701ae54e04f11972850a
1,158
py
Python
buzzmobile/process/bearing/calculate_directions.py
gtagency/buzzmobile
8f7215d35b3b7fe3c6ca6419f0123ba18e8aca0a
[ "MIT" ]
25
2015-02-18T04:15:09.000Z
2019-12-11T14:29:02.000Z
buzzmobile/process/bearing/calculate_directions.py
gtagency/buzzmobile
8f7215d35b3b7fe3c6ca6419f0123ba18e8aca0a
[ "MIT" ]
173
2016-09-16T05:34:27.000Z
2017-11-15T07:31:53.000Z
buzzmobile/process/bearing/calculate_directions.py
gtagency/buzzmobile
8f7215d35b3b7fe3c6ca6419f0123ba18e8aca0a
[ "MIT" ]
4
2015-01-18T15:46:35.000Z
2017-04-08T00:39:05.000Z
"""Utilities for calculating directions and distances given coords.""" import math EARTH_RADIUS = 6.3710088e6 def get_distance(fix1, fix2): """Calculates great-circle distance between two positions in meters.""" lat1 = math.radians(fix1.latitude) lon1 = math.radians(fix1.longitude) lat2 = math.radia...
35.090909
75
0.648532
746248a9a6ff0d428ab94f820ef076b18b48282a
123
py
Python
iot_api/user_api/websocket/alerts.py
dolfandringa/rolaguard_backend
d4df7b55fc001aa6e0499edcfa94bf1b1c63b084
[ "Apache-2.0" ]
null
null
null
iot_api/user_api/websocket/alerts.py
dolfandringa/rolaguard_backend
d4df7b55fc001aa6e0499edcfa94bf1b1c63b084
[ "Apache-2.0" ]
7
2020-05-05T20:10:59.000Z
2021-05-26T17:59:24.000Z
iot_api/user_api/websocket/alerts.py
dolfandringa/rolaguard_backend
d4df7b55fc001aa6e0499edcfa94bf1b1c63b084
[ "Apache-2.0" ]
1
2021-01-28T05:54:11.000Z
2021-01-28T05:54:11.000Z
from iot_api import socketio
30.75
53
0.788618
746481340991d95d9f71098fa29212550353d414
4,968
py
Python
chocolate/connection/pandas.py
Intelecy/chocolate
0ba4f6f0130eab851d32d5534241c8cac3f6666e
[ "BSD-3-Clause" ]
105
2017-10-27T02:14:22.000Z
2022-01-13T12:57:05.000Z
chocolate/connection/pandas.py
Intelecy/chocolate
0ba4f6f0130eab851d32d5534241c8cac3f6666e
[ "BSD-3-Clause" ]
31
2017-10-03T13:41:35.000Z
2021-08-20T21:01:29.000Z
chocolate/connection/pandas.py
areeh/chocolate
5f946cb9daf42c3ab44508648917d46bc105c2fc
[ "BSD-3-Clause" ]
38
2017-10-05T20:19:42.000Z
2022-03-28T11:34:04.000Z
from contextlib import contextmanager import pickle import numpy import pandas from ..base import Connection
36.262774
103
0.63748
7467690eb0ac6eea07f7e7a2ad3b657c481f13cd
241
py
Python
src/__init__.py
Losintech/python-alpha-orm
01e88c5cf21b881dc670d605b353df8ae52eb83c
[ "MIT" ]
1
2019-12-06T05:18:38.000Z
2019-12-06T05:18:38.000Z
src/__init__.py
Losintech/python-alpha-orm
01e88c5cf21b881dc670d605b353df8ae52eb83c
[ "MIT" ]
null
null
null
src/__init__.py
Losintech/python-alpha-orm
01e88c5cf21b881dc670d605b353df8ae52eb83c
[ "MIT" ]
null
null
null
from alphaorm.AlphaORM import AlphaORM,AlphaRecord AlphaORM.setup('mysql', { 'host' : 'localhost', 'user' : 'root', 'password' : '', 'database' : 'alphaorm' }) m = AlphaORM.create('python') m.name = 'Alpha' m.age = 10 AlphaORM.store(m)
18.538462
50
0.659751
746ab1f26e2827ead488e3722b6ba0e4f14c48ca
523
py
Python
src/proto/player_state_proto.py
edwadli/splendor-ai
0881924bf59539ba307592a2f546d56732359120
[ "Apache-2.0" ]
2
2020-02-02T06:01:23.000Z
2021-09-21T02:49:29.000Z
src/proto/player_state_proto.py
edwadli/splendor-ai
0881924bf59539ba307592a2f546d56732359120
[ "Apache-2.0" ]
3
2019-06-04T07:45:33.000Z
2019-06-07T02:14:27.000Z
src/proto/player_state_proto.py
edwadli/splendor-ai
0881924bf59539ba307592a2f546d56732359120
[ "Apache-2.0" ]
2
2019-05-31T06:52:58.000Z
2019-06-05T19:45:16.000Z
"""Data schema for a player's state.""" import collections PlayerState = collections.namedtuple( "PlayerState", [ # Dictionary of Gems held by player. "gems", # List of purchased DevelopmentCards. "purchased_cards", # List of reserved (non-hidden) DevelopmentCards. "unhidden_reserved_cards...
22.73913
78
0.695985
746ad17c2512eef00d948851110356b09d69b731
4,871
py
Python
sheepdoge/config.py
mattjmcnaughton/sheepdoge
9c028d6f51cb59afcaf25a5680f961ec7e25676b
[ "Apache-2.0" ]
7
2018-03-18T07:25:10.000Z
2022-01-28T17:35:08.000Z
sheepdoge/config.py
mattjmcnaughton/sheepdoge
9c028d6f51cb59afcaf25a5680f961ec7e25676b
[ "Apache-2.0" ]
15
2017-08-19T14:03:10.000Z
2017-12-29T23:22:05.000Z
sheepdoge/config.py
mattjmcnaughton/sheepdoge
9c028d6f51cb59afcaf25a5680f961ec7e25676b
[ "Apache-2.0" ]
null
null
null
from configparser import ConfigParser, NoOptionError from typing import Dict # pylint: disable=unused-import import os from sheepdoge.exception import ( SheepdogeConfigurationAlreadyInitializedException, SheepdogeConfigurationNotInitializedException, ) DEFAULTS = { "kennel_playbook_path": "kennel.yml", ...
34.062937
76
0.667419
746b61a512fe54bf6d58d51dee7f9f6d9529baf8
1,202
py
Python
_argparse.py
zzyyyl/USTC-Helper
6f16361bdead655b799da40e3ecd7758745c2568
[ "MIT" ]
3
2022-03-18T18:24:53.000Z
2022-03-24T01:50:41.000Z
_argparse.py
zzyyyl/USTC-Helper
6f16361bdead655b799da40e3ecd7758745c2568
[ "MIT" ]
null
null
null
_argparse.py
zzyyyl/USTC-Helper
6f16361bdead655b799da40e3ecd7758745c2568
[ "MIT" ]
null
null
null
from argparse import ArgumentParser from USTCHelper import config import json, base64 import os
36.424242
105
0.6797
746d2dd92129a5cba7d3203cc33cfadd617835cd
127
py
Python
wandering-warriors/modules/__init__.py
python-discord/code-jam-6
a7eb3b1256ae113c93f0337892c667768e8bc199
[ "MIT" ]
76
2020-01-17T12:09:48.000Z
2022-03-26T19:17:26.000Z
wandering-warriors/modules/__init__.py
1nf1del/code-jam-6
a7eb3b1256ae113c93f0337892c667768e8bc199
[ "MIT" ]
17
2020-01-21T23:13:34.000Z
2020-02-07T00:07:04.000Z
wandering-warriors/modules/__init__.py
1nf1del/code-jam-6
a7eb3b1256ae113c93f0337892c667768e8bc199
[ "MIT" ]
91
2020-01-17T12:01:06.000Z
2022-03-22T20:38:59.000Z
from .abacus import Abacus from .draw_pad import DrawPad from .ledger import Ledger __all__ = ('Abacus', 'DrawPad', 'Ledger')
21.166667
41
0.748031
746f96c13dd49fef6cef2fd1b4ab1513df02e05d
3,920
py
Python
old/summarize-scripts/python/rank_summarizer.py
kedz/cuttsum
992c21192af03fd2ef863f5ab7d10752f75580fa
[ "Apache-2.0" ]
6
2015-09-10T02:22:21.000Z
2021-10-01T16:36:46.000Z
old/summarize-scripts/python/rank_summarizer.py
kedz/cuttsum
992c21192af03fd2ef863f5ab7d10752f75580fa
[ "Apache-2.0" ]
null
null
null
old/summarize-scripts/python/rank_summarizer.py
kedz/cuttsum
992c21192af03fd2ef863f5ab7d10752f75580fa
[ "Apache-2.0" ]
2
2018-04-04T10:44:32.000Z
2021-10-01T16:37:26.000Z
import os import sys import argparse from cuttsum.readers import gold_reader from cuttsum.summarizers import RankSummarizer if __name__ == '__main__': main()
32.666667
96
0.570663
746fe9ce70247f8f0f948de126caec9e75bc4ccb
1,378
py
Python
app/api/client.py
cloudblue/processor-acronis-customer-centric
fbb022de150818e29cf6cb6205650893acb3613e
[ "Apache-2.0" ]
3
2019-12-21T13:45:28.000Z
2019-12-24T20:04:34.000Z
app/api/client.py
cloudblue/processor-acronis-customer-centric
fbb022de150818e29cf6cb6205650893acb3613e
[ "Apache-2.0" ]
null
null
null
app/api/client.py
cloudblue/processor-acronis-customer-centric
fbb022de150818e29cf6cb6205650893acb3613e
[ "Apache-2.0" ]
null
null
null
""" This file is property of the Ingram Micro Cloud Blue. Copyright (c) 2019 Ingram Micro. All Rights Reserved. """ import json from requests import api from connect.logger import logger from urllib.parse import urlencode, quote_plus
33.609756
146
0.563135
7470950ef82ea911ccd94deb0cfaffcdcd9405a5
4,048
py
Python
venmo-sim/leiden/simulate_txs_on_leiden_clustered_venmo_graph.py
akatsarakis/tx_benchmarking
f8233e58bba3f4fb54d82273d7ca8631bae36ebc
[ "MIT" ]
3
2020-07-07T17:08:41.000Z
2022-01-10T19:25:46.000Z
venmo-sim/leiden/simulate_txs_on_leiden_clustered_venmo_graph.py
akatsarakis/tx_benchmarking
f8233e58bba3f4fb54d82273d7ca8631bae36ebc
[ "MIT" ]
null
null
null
venmo-sim/leiden/simulate_txs_on_leiden_clustered_venmo_graph.py
akatsarakis/tx_benchmarking
f8233e58bba3f4fb54d82273d7ca8631bae36ebc
[ "MIT" ]
null
null
null
import argparse import csv import re # read arg (the num of shards, also the num of distributed nodes) from command line parse_args() node_tot = ARGS.node_tot # read clustering result of the graph, and bind them to distributed nodes # (ensure the total vertex to each node is as equal as possible) ## first, read ...
34.896552
112
0.704792
7471a6cafdc6fccdf2cbf3b0bcfba1e4f01d5df3
4,363
py
Python
custom_components/ampio/__init__.py
pszypowicz/ampio-hacc
34a929cccc2b0e35f1f5d8aeafbf965bfc7dab6c
[ "MIT" ]
2
2021-08-18T07:18:05.000Z
2022-01-01T19:07:09.000Z
custom_components/ampio/__init__.py
pszypowicz/ampio-hacc
34a929cccc2b0e35f1f5d8aeafbf965bfc7dab6c
[ "MIT" ]
null
null
null
custom_components/ampio/__init__.py
pszypowicz/ampio-hacc
34a929cccc2b0e35f1f5d8aeafbf965bfc7dab6c
[ "MIT" ]
1
2021-11-29T18:16:45.000Z
2021-11-29T18:16:45.000Z
"""Ampio Systems Platform.""" import asyncio import json import logging from typing import Any, Dict, Optional import voluptuous as vol from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( CONF_CLIENT_ID, CONF_DEVICE, CONF_DEVICE_CLASS, CONF_FRIENDLY_NAME, CONF_IC...
27.789809
88
0.698602
747300fe06e37214b9d4b666eba20905c7e7c63d
7,096
py
Python
bsd2/vagrant-ansible/ansible/plugins/inventory/nova.py
dlab-berkeley/collaboratool-archive
fa474e05737f78e628d6b9398c58cf7c966a7bba
[ "Apache-2.0" ]
1
2016-01-20T14:36:02.000Z
2016-01-20T14:36:02.000Z
bsd2/vagrant-ansible/ansible/plugins/inventory/nova.py
dlab-berkeley/collaboratool-archive
fa474e05737f78e628d6b9398c58cf7c966a7bba
[ "Apache-2.0" ]
null
null
null
bsd2/vagrant-ansible/ansible/plugins/inventory/nova.py
dlab-berkeley/collaboratool-archive
fa474e05737f78e628d6b9398c58cf7c966a7bba
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # (c) 2012, Marco Vito Moscaritolo <marco@agavee.com> # # This file is part of Ansible, # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # ...
29.940928
142
0.643461
74737681cf0d8052b62c5b5de4ce70418a73d187
61
py
Python
ml/Graph/scratch.py
Shivams9/pythoncodecamp
e6cd27f4704a407ee360414a8c9236b254117a59
[ "MIT" ]
6
2021-08-04T08:15:22.000Z
2022-02-02T11:15:56.000Z
ML/Graph/scratch.py
Maurya232Abhishek/Python-repository-for-basics
3dcec5c529a0847df07c9dcc1424675754ce6376
[ "MIT" ]
14
2021-08-02T06:28:00.000Z
2022-03-25T10:44:15.000Z
ML/Graph/scratch.py
Maurya232Abhishek/Python-repository-for-basics
3dcec5c529a0847df07c9dcc1424675754ce6376
[ "MIT" ]
6
2021-07-16T04:56:41.000Z
2022-02-16T04:40:06.000Z
l=[[1,2,3],[2,2,3],[3,3,3]] print(l) a=[2,3] b=[4,5] print(b)
12.2
27
0.459016
747472dbf6c760efb2300b9c6ffbf248dba2c191
6,477
py
Python
pyformlang/rsa/recursive_automaton.py
IlyaEp/pyformlang
eef239844beff5e9da3be4a4a240440ece81c10b
[ "MIT" ]
15
2020-06-25T14:38:27.000Z
2022-03-09T17:55:07.000Z
pyformlang/rsa/recursive_automaton.py
IlyaEp/pyformlang
eef239844beff5e9da3be4a4a240440ece81c10b
[ "MIT" ]
11
2020-09-23T09:48:35.000Z
2021-08-24T08:37:47.000Z
pyformlang/rsa/recursive_automaton.py
IlyaEp/pyformlang
eef239844beff5e9da3be4a4a240440ece81c10b
[ "MIT" ]
5
2020-03-08T19:00:17.000Z
2021-08-15T12:38:05.000Z
""" Representation of a recursive automaton """ from typing import AbstractSet from pyformlang.finite_automaton.finite_automaton import to_symbol from pyformlang.finite_automaton.symbol import Symbol from pyformlang.regular_expression import Regex from pyformlang.cfg import CFG, Epsilon from pyformlang.rsa.box impor...
28.915179
98
0.603366
7475e81fcba007e37fae56c5bb3b0e881ffb33a4
17,080
py
Python
py/ColladaMesh.py
dineshkummarc/Odin
f23719ff05a9d03cebd0d5c4c0179a98eff2d935
[ "BSD-3-Clause" ]
1
2019-04-22T16:33:55.000Z
2019-04-22T16:33:55.000Z
py/ColladaMesh.py
dineshkummarc/Odin
f23719ff05a9d03cebd0d5c4c0179a98eff2d935
[ "BSD-3-Clause" ]
null
null
null
py/ColladaMesh.py
dineshkummarc/Odin
f23719ff05a9d03cebd0d5c4c0179a98eff2d935
[ "BSD-3-Clause" ]
null
null
null
from bisect import bisect import ColladaMaterial # Named array of points. #TODO: passing in the doc is like begging for trouble, pass in the needed elements instead.
37.955556
156
0.606382
747904efdd9f1ce7e4568f67aa61e74e2291d27b
1,757
py
Python
src/zope/site/tests/test_folder.py
zopefoundation/zope.site
a523fdaab2801d6c2b15d10bd93115c9d53f4fd7
[ "ZPL-2.1" ]
3
2018-10-09T14:20:30.000Z
2021-03-09T22:23:50.000Z
src/zope/site/tests/test_folder.py
zopefoundation/zope.site
a523fdaab2801d6c2b15d10bd93115c9d53f4fd7
[ "ZPL-2.1" ]
15
2015-03-20T09:14:08.000Z
2021-03-05T16:39:27.000Z
src/zope/site/tests/test_folder.py
zopefoundation/zope.site
a523fdaab2801d6c2b15d10bd93115c9d53f4fd7
[ "ZPL-2.1" ]
1
2015-04-03T09:43:40.000Z
2015-04-03T09:43:40.000Z
import doctest import unittest from zope.site.folder import Folder from zope.site.testing import siteSetUp, siteTearDown, checker from zope.site.tests.test_site import TestSiteManagerContainer def test_suite(): flags = doctest.ELLIPSIS | doctest.NORMALIZE_WHITESPACE return unittest.TestSuite(( ...
27.453125
65
0.690381
747a06d2abc8c71978e54d63ef1aeef2b7e2379e
6,712
py
Python
stl/ast.py
karen-leung-tri/py-stl
87f764a2b8b7c756a239f200b77c3875f959cae6
[ "BSD-3-Clause" ]
null
null
null
stl/ast.py
karen-leung-tri/py-stl
87f764a2b8b7c756a239f200b77c3875f959cae6
[ "BSD-3-Clause" ]
null
null
null
stl/ast.py
karen-leung-tri/py-stl
87f764a2b8b7c756a239f200b77c3875f959cae6
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from collections import deque, namedtuple from functools import lru_cache import funcy as fn from lenses import lens, bind import stl class _Top(AST): __slots__ = () class _Bot(AST): __slots__ = () TOP = _Top() BOT = _Bot() def type_pred(*args): ast_types =...
20.975
76
0.567789
747a9c5326878d11b9906f17374aa59d5eda3f27
5,958
py
Python
nel-wikipedia/kb_creator.py
nadjet/explosion_projects
74f09fc97befb429a6db9e3235619c3d7b27ea7a
[ "MIT" ]
1
2020-07-18T19:19:54.000Z
2020-07-18T19:19:54.000Z
nel-wikipedia/kb_creator.py
JaredDelora/projects
ad0fc26dbc05182a439ffe76a362d40c24e25066
[ "MIT" ]
null
null
null
nel-wikipedia/kb_creator.py
JaredDelora/projects
ad0fc26dbc05182a439ffe76a362d40c24e25066
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals import logging from spacy.kb import KnowledgeBase from train_descriptions import EntityEncoder import wiki_io as io logger = logging.getLogger(__name__)
36.777778
158
0.648372
747becfe33166824b286845631f9101c61bac5a1
1,045
py
Python
modulesExecution.py
rando3/leetcode-python
b13bb35fb3cdc9813c62944547d260be2f9cab02
[ "MIT" ]
null
null
null
modulesExecution.py
rando3/leetcode-python
b13bb35fb3cdc9813c62944547d260be2f9cab02
[ "MIT" ]
null
null
null
modulesExecution.py
rando3/leetcode-python
b13bb35fb3cdc9813c62944547d260be2f9cab02
[ "MIT" ]
null
null
null
from collections import deque, defaultdict GRAY, BLACK = 0, 1 if __name__ == "__main__": g = Graph(3) g.addEdge(1, 2) g.addEdge(1, 3) print(g.topological())
24.302326
78
0.504306
747d2dffa5879ddf1f60b8ac85c5568915e42c9d
178
py
Python
boxPrint/printers/printrun_printer.py
bobofei/Mohou_Box-master
3d1c320a6258422406e2ba2f96ec7986beba1330
[ "Apache-2.0" ]
null
null
null
boxPrint/printers/printrun_printer.py
bobofei/Mohou_Box-master
3d1c320a6258422406e2ba2f96ec7986beba1330
[ "Apache-2.0" ]
null
null
null
boxPrint/printers/printrun_printer.py
bobofei/Mohou_Box-master
3d1c320a6258422406e2ba2f96ec7986beba1330
[ "Apache-2.0" ]
null
null
null
import threaded_printer
22.25
66
0.769663
747ef7880794c3ef33f57ad1412aece6844cc7a6
4,661
py
Python
facebook/messenger/hello-world/webhook.py
imsardine/learning
925841ddd93d60c740a62e12d9f57ef15b6e0a20
[ "MIT" ]
null
null
null
facebook/messenger/hello-world/webhook.py
imsardine/learning
925841ddd93d60c740a62e12d9f57ef15b6e0a20
[ "MIT" ]
null
null
null
facebook/messenger/hello-world/webhook.py
imsardine/learning
925841ddd93d60c740a62e12d9f57ef15b6e0a20
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os from flask import Flask, request, abort, jsonify import requests SEND_API = 'https://graph.facebook.com/v2.6/me/messages' WEBHOOK_VERIFY_TOKEN = os.environ['WEBHOOK_VERIFY_TOKEN'] PAGE_ACCESS_TOKEN = os.environ['PAGE_ACCESS_TOKEN'] APP_SECRET = os.environ['APP_SECRET'] app = Flask(__...
34.272059
87
0.488307
747f3e4104e555a4cdac60485eb1931d3dd4f55a
18,847
py
Python
custom_components/midea_dehumidifier_lan/config_flow.py
drthanwho/homeassistant-midea-dehumidifier-lan
b22c609bf07fd540ffa3a3ff28aaa2a184578b69
[ "MIT" ]
null
null
null
custom_components/midea_dehumidifier_lan/config_flow.py
drthanwho/homeassistant-midea-dehumidifier-lan
b22c609bf07fd540ffa3a3ff28aaa2a184578b69
[ "MIT" ]
null
null
null
custom_components/midea_dehumidifier_lan/config_flow.py
drthanwho/homeassistant-midea-dehumidifier-lan
b22c609bf07fd540ffa3a3ff28aaa2a184578b69
[ "MIT" ]
null
null
null
"""Config flow for Midea Dehumidifier (Local) integration.""" from __future__ import annotations import ipaddress import logging from typing import Any, Final from homeassistant import data_entry_flow from homeassistant.config_entries import ConfigFlow from homeassistant.const import ( CONF_API_VERSION, CONF_...
36.314066
88
0.607205
747f4ee04719abc2662ba9a8f13f2719e601fb4b
2,297
py
Python
solver.py
cserradag96/nqueens
350dfddb29419560d94f5218e5f2e75d2be9ccf3
[ "MIT" ]
null
null
null
solver.py
cserradag96/nqueens
350dfddb29419560d94f5218e5f2e75d2be9ccf3
[ "MIT" ]
null
null
null
solver.py
cserradag96/nqueens
350dfddb29419560d94f5218e5f2e75d2be9ccf3
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- encoding: utf-8 -*- ####################################################################################################################### # DESCRIPTION: ####################################################################################################################### # Solver for N-Que...
40.298246
119
0.252068
747f76629e7eb85c0e9005d5800b74e6ec8c3805
4,793
py
Python
codango/codango/settings/base.py
andela-ooshodi/codango-debug
fa68f4305586c2d7f28307f10204c3b50f731fef
[ "MIT" ]
null
null
null
codango/codango/settings/base.py
andela-ooshodi/codango-debug
fa68f4305586c2d7f28307f10204c3b50f731fef
[ "MIT" ]
null
null
null
codango/codango/settings/base.py
andela-ooshodi/codango-debug
fa68f4305586c2d7f28307f10204c3b50f731fef
[ "MIT" ]
null
null
null
""" Django settings for codango project. Generated by 'django-admin startproject' using Django 1.8.3. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ # Build path...
25.494681
89
0.722721
747fcc5d8e8611eca8dd7a7d6b6a6a5d0dd6a8da
2,343
py
Python
pysnmp/DGS1100-24P-MGMT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/DGS1100-24P-MGMT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/DGS1100-24P-MGMT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module DGS1100-24P-MGMT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DGS1100-24P-MGMT-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 18:30:19 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (defau...
80.793103
477
0.788732
7481800efb51f4d1a5766aebafa35170462e666c
38
py
Python
autox/autox_ts/metrics/__init__.py
OneToolsCollection/4paradigm-AutoX
f8e838021354de17f5bb9bc44e9d68d12dda6427
[ "Apache-2.0" ]
null
null
null
autox/autox_ts/metrics/__init__.py
OneToolsCollection/4paradigm-AutoX
f8e838021354de17f5bb9bc44e9d68d12dda6427
[ "Apache-2.0" ]
null
null
null
autox/autox_ts/metrics/__init__.py
OneToolsCollection/4paradigm-AutoX
f8e838021354de17f5bb9bc44e9d68d12dda6427
[ "Apache-2.0" ]
null
null
null
from .metrics import _get_score_metric
38
38
0.894737
74858fe3b513ef3751cf3b9d1d2671162ca352a5
1,136
py
Python
setup.py
abuvanth/framework-identifier
0619b1831bf29eaabdb8b7a0ef1abfd2328b39f9
[ "MIT" ]
null
null
null
setup.py
abuvanth/framework-identifier
0619b1831bf29eaabdb8b7a0ef1abfd2328b39f9
[ "MIT" ]
null
null
null
setup.py
abuvanth/framework-identifier
0619b1831bf29eaabdb8b7a0ef1abfd2328b39f9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import setuptools,os with open("README.md", "r") as fh: long_description = fh.read() thelibFolder = os.path.dirname(os.path.realpath(__file__)) requirementPath = thelibFolder + '/requirements.txt' install_requires = [] # Examples: ["gunicorn", "docutils>=0.3", "lxml==0...
34.424242
78
0.680458
74859fe61f59a2e68fef51e02980d620f6fd3fff
4,089
py
Python
convert.py
FlorianPoot/Faroad-PnP
aa31ce80f8a3888a903eac92827e7aef6c58dfe3
[ "MIT" ]
null
null
null
convert.py
FlorianPoot/Faroad-PnP
aa31ce80f8a3888a903eac92827e7aef6c58dfe3
[ "MIT" ]
null
null
null
convert.py
FlorianPoot/Faroad-PnP
aa31ce80f8a3888a903eac92827e7aef6c58dfe3
[ "MIT" ]
null
null
null
import math import sqlite3 import re DATABASE_PATH = "line1.db"
32.452381
118
0.512106
7488b095e308da429d77f9667247659a77a3caeb
10,490
py
Python
src/device/Device.py
Electronya/PirBlaster
804b86b2699183c40f2157cba0e151bec9d4725a
[ "MIT" ]
1
2020-11-02T09:37:43.000Z
2020-11-02T09:37:43.000Z
src/device/Device.py
Electronya/PirBlasterBackend
804b86b2699183c40f2157cba0e151bec9d4725a
[ "MIT" ]
1
2021-06-26T14:56:31.000Z
2021-06-26T14:56:31.000Z
src/device/Device.py
Electronya/PirBlasterBackend
804b86b2699183c40f2157cba0e151bec9d4725a
[ "MIT" ]
1
2020-11-02T09:34:33.000Z
2020-11-02T09:34:33.000Z
from logging import Logger import paho.mqtt.client as mqtt from ircodec.command import CommandSet import os from exceptions import CommandNotFound, \ CommandFileAccess
33.301587
120
0.538418
7488fb87c2da80cc7ce4b43784746c835d6f4aeb
52
py
Python
test/inventory/mock_inventories/single_host1.py
oddlama/forge
d09b0f309ce7dcda79dc03765473b48732c71845
[ "MIT" ]
14
2021-12-17T10:38:27.000Z
2022-03-02T01:20:01.000Z
test/inventory/mock_inventories/single_host1.py
oddlama/forge
d09b0f309ce7dcda79dc03765473b48732c71845
[ "MIT" ]
2
2022-01-11T13:31:09.000Z
2022-02-03T15:41:43.000Z
test/inventory/mock_inventories/single_host1.py
oddlama/forge
d09b0f309ce7dcda79dc03765473b48732c71845
[ "MIT" ]
2
2022-02-03T15:20:51.000Z
2022-02-03T15:45:11.000Z
inventory_var = "from_inventory" hosts = ["host1"]
13
32
0.711538
748b0cd71a8c5de3ca15b5e64c2515f58ee12902
5,459
py
Python
hrssCalcbulk from folder of .fit files.py
Emberflurry/Bulk-HRSS-TSS-calc-from-Garmin-.fitfiles
d82f064ee0a97b2d826f434b5a21e8869c090e17
[ "MIT" ]
2
2021-08-21T14:05:45.000Z
2022-03-26T02:22:02.000Z
hrssCalcbulk from folder of .fit files.py
Emberflurry/Bulk-HRSS-TSS-calc-from-Garmin-.fitfiles
d82f064ee0a97b2d826f434b5a21e8869c090e17
[ "MIT" ]
1
2021-07-19T17:45:13.000Z
2021-07-19T19:18:07.000Z
hrssCalcbulk from folder of .fit files.py
Emberflurry/Bulk-HRSS-TSS-calc-from-Garmin-.fitfiles
d82f064ee0a97b2d826f434b5a21e8869c090e17
[ "MIT" ]
null
null
null
import os import datetime from fitparse import * import pandas as pd import numpy as np from tqdm import tqdm from datetime import datetime import re # import matplotlib.pyplot as plt (not needed I guess) directory = 'fitfiles' # may want to make this more flexible--ie: not just in the directory of the code...works ...
35.914474
179
0.63235
748c0c6816a34dc727849d503d55e952ab640086
87,762
py
Python
test/features/pit/fixtures_pit.py
NikkaZ/dbtvault_spark
383723cd2a35a0bc7b82fd4e77fb1eda0f68cb07
[ "Apache-2.0" ]
null
null
null
test/features/pit/fixtures_pit.py
NikkaZ/dbtvault_spark
383723cd2a35a0bc7b82fd4e77fb1eda0f68cb07
[ "Apache-2.0" ]
null
null
null
test/features/pit/fixtures_pit.py
NikkaZ/dbtvault_spark
383723cd2a35a0bc7b82fd4e77fb1eda0f68cb07
[ "Apache-2.0" ]
null
null
null
from behave import fixture
33.293627
89
0.418997
748c84a6a78daf32f1db550d0822cdb68bd66142
1,908
py
Python
textquote.py
patmanteau/panflutist
74e56fe6b6873015cfba766bb61277d6d81bbece
[ "BSD-3-Clause" ]
null
null
null
textquote.py
patmanteau/panflutist
74e56fe6b6873015cfba766bb61277d6d81bbece
[ "BSD-3-Clause" ]
null
null
null
textquote.py
patmanteau/panflutist
74e56fe6b6873015cfba766bb61277d6d81bbece
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python r""" Panflute filter supporting \textquote and \foreigntextquote in LaTeX Issues: - Nested parens with pandoc-citeproc Usage: - Use Pandoc markdown bracketed Spans: - [Ganz Gallien ist von den Rmern besetzt]{.textquote cite="[vgl. @Goscinny_Asterix_1967, 1\psqq]"} - [Toute la Gaul...
28.058824
135
0.559224
748cbeedaa4ac6fe4d023634af107928994f029c
335
py
Python
sandbox/gff/fixit.py
molecules/bio
2a86a931162be47beca4d7bf73b2b3978f3ba402
[ "MIT" ]
28
2020-11-28T01:18:16.000Z
2022-03-25T16:42:53.000Z
sandbox/gff/fixit.py
molecules/bio
2a86a931162be47beca4d7bf73b2b3978f3ba402
[ "MIT" ]
3
2021-09-28T11:52:07.000Z
2022-03-22T07:47:46.000Z
sandbox/gff/fixit.py
molecules/bio
2a86a931162be47beca4d7bf73b2b3978f3ba402
[ "MIT" ]
8
2020-12-01T17:02:26.000Z
2022-02-14T16:57:46.000Z
""" Adds version number sequence id of a GFF file. """ import sys ACC=sys.argv[1] VER=sys.argv[2] for line in sys.stdin: line = line.strip() elems = line.split() if elems and elems[0] == ACC: elems[0] = f'{elems[0]}.{VER}' if line.startswith("#"): print (line) else: print("\...
20.9375
46
0.570149
748db5b41786bab067b492eb0b8d340b621d6f8f
4,626
py
Python
abacusai/deployment.py
Ankit-RealityEngines/api-python
3627048d31df5972c5777de2a1c1211ea06a8804
[ "MIT" ]
null
null
null
abacusai/deployment.py
Ankit-RealityEngines/api-python
3627048d31df5972c5777de2a1c1211ea06a8804
[ "MIT" ]
null
null
null
abacusai/deployment.py
Ankit-RealityEngines/api-python
3627048d31df5972c5777de2a1c1211ea06a8804
[ "MIT" ]
null
null
null
from .return_class import AbstractApiClass from .refresh_schedule import RefreshSchedule
57.111111
642
0.75508
748f173a3418e52d978dedc4b9c8474f56ab2812
1,426
py
Python
tools/buildenv.py
pauldotknopf/protobuf-qml
e10f46567344738563140e8f06d5a2569b961d06
[ "MIT" ]
56
2015-05-14T16:00:43.000Z
2022-02-11T20:25:36.000Z
tools/buildenv.py
pauldotknopf/protobuf-qml
e10f46567344738563140e8f06d5a2569b961d06
[ "MIT" ]
19
2015-05-11T14:50:33.000Z
2018-09-06T05:45:34.000Z
tools/buildenv.py
pauldotknopf/protobuf-qml
e10f46567344738563140e8f06d5a2569b961d06
[ "MIT" ]
16
2015-10-29T13:25:48.000Z
2021-06-30T18:34:32.000Z
import logging import platform import os ROOT_DIR = os.path.realpath(os.path.dirname(os.path.dirname(__file__))) DEFAULT_DEPS = os.path.join(ROOT_DIR, 'build', 'deps') DEFAULT_OUT = os.path.join(ROOT_DIR, 'out') logger = logging.getLogger(__name__) # def disable_werror(env, warns): # for w in warns: # prepe...
29.102041
80
0.685133
7492f98aa56400f8ae0d4988b98264efada3bc27
2,010
py
Python
rstobj/directives/toc.py
MacHu-GWU/rstobj-project
40601f08e9e7ee2df5c514af04b040f61f76ed78
[ "MIT" ]
null
null
null
rstobj/directives/toc.py
MacHu-GWU/rstobj-project
40601f08e9e7ee2df5c514af04b040f61f76ed78
[ "MIT" ]
null
null
null
rstobj/directives/toc.py
MacHu-GWU/rstobj-project
40601f08e9e7ee2df5c514af04b040f61f76ed78
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ table of content directive. """ import attr from .base import Directive
25.769231
113
0.595025
7493ca43323db77c43ed2fc83412e3ad722c32a7
3,256
py
Python
StaffPage.py
yurunyang1998/XUPT_-
415c20550b54914b1206cfa3b83ddbe8260e7a6f
[ "MIT" ]
null
null
null
StaffPage.py
yurunyang1998/XUPT_-
415c20550b54914b1206cfa3b83ddbe8260e7a6f
[ "MIT" ]
null
null
null
StaffPage.py
yurunyang1998/XUPT_-
415c20550b54914b1206cfa3b83ddbe8260e7a6f
[ "MIT" ]
null
null
null
from flask import * import databaseModel from functools import wraps import time bp = Blueprint("StaffPage", __name__, url_prefix='/StaffPage')
32.56
138
0.635749
7493cdea568afe3db8cc36c7efb7d3a24d08c8e1
1,849
py
Python
daily_problems/problem_101_to_200/problem_131.py
rrwt/daily-coding-challenge
b16fc365fd142ebab429e605cb146c8bb0bc97a2
[ "MIT" ]
1
2019-04-18T03:29:02.000Z
2019-04-18T03:29:02.000Z
daily_problems/problem_101_to_200/problem_131.py
rrwt/daily-coding-challenge
b16fc365fd142ebab429e605cb146c8bb0bc97a2
[ "MIT" ]
null
null
null
daily_problems/problem_101_to_200/problem_131.py
rrwt/daily-coding-challenge
b16fc365fd142ebab429e605cb146c8bb0bc97a2
[ "MIT" ]
null
null
null
""" Given the head to a singly linked list, where each node also has a random pointer that points to anywhere in the linked list, deep clone the list. """ from typing import Tuple def deep_clone_ll(ll_head: Node) -> Tuple[Node, Node]: """ Time Complexity: O(n) Space Complexity: O(1) """ runner = ...
26.042254
83
0.622499
749446711702bf00c7f0f56b3ec4b6af7960f483
1,095
py
Python
view/basev64/__init__.py
desktophzj/wolverine-tkinter
8e499c877ba7f5da11e63e30ecb25d54f6f3b6e9
[ "Apache-2.0" ]
null
null
null
view/basev64/__init__.py
desktophzj/wolverine-tkinter
8e499c877ba7f5da11e63e30ecb25d54f6f3b6e9
[ "Apache-2.0" ]
null
null
null
view/basev64/__init__.py
desktophzj/wolverine-tkinter
8e499c877ba7f5da11e63e30ecb25d54f6f3b6e9
[ "Apache-2.0" ]
null
null
null
import tkinter as tk from tkinter import ttk raw_data_label_y_location = 20 raw_data_entry_location = raw_data_label_y_location + 20 encode_button_location = raw_data_entry_location + 20 decode_button_location = encode_button_location + 20 base64_data_label_y_location = decode_button_location + 20 base64_data_entry_y_...
33.181818
64
0.699543
749477a57d991a4da5d6d7c1a4757df77ab77a72
3,307
py
Python
research/cv/csd/src/edsr_slim.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/csd/src/edsr_slim.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/csd/src/edsr_slim.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
38.011494
112
0.629574
7494c2f962bcdfe2ec84fe9915ae2232069d6c59
6,317
py
Python
1_prepare_data/docker/code/make_tfRecords.py
gianpd/amazon-sagemaker-tensorflow-object-detection-api
80c654a9767bb26389db468c7e6df3300f2debb4
[ "MIT-0" ]
null
null
null
1_prepare_data/docker/code/make_tfRecords.py
gianpd/amazon-sagemaker-tensorflow-object-detection-api
80c654a9767bb26389db468c7e6df3300f2debb4
[ "MIT-0" ]
null
null
null
1_prepare_data/docker/code/make_tfRecords.py
gianpd/amazon-sagemaker-tensorflow-object-detection-api
80c654a9767bb26389db468c7e6df3300f2debb4
[ "MIT-0" ]
null
null
null
import os import sys import json from pathlib import Path import pandas as pd import random import tensorflow as tf import io import argparse from PIL import Image from collections import namedtuple from object_detection.utils import dataset_util, label_map_util import logging logging.basicConfig(strea...
39.48125
104
0.614849
74965fd1310312518af6b17b1aeb671c359c33bf
3,962
py
Python
rugosa/emulation/actions.py
Defense-Cyber-Crime-Center/rugosa
70f5b1db7e3f02ecccb0495fe1c0c77930769276
[ "MIT" ]
1
2022-03-13T03:03:31.000Z
2022-03-13T03:03:31.000Z
rugosa/emulation/actions.py
Defense-Cyber-Crime-Center/rugosa
70f5b1db7e3f02ecccb0495fe1c0c77930769276
[ "MIT" ]
null
null
null
rugosa/emulation/actions.py
Defense-Cyber-Crime-Center/rugosa
70f5b1db7e3f02ecccb0495fe1c0c77930769276
[ "MIT" ]
null
null
null
""" Interface for interesting actions. """ from dataclasses import dataclass import logging from typing import Union, List, Optional, Iterable from .call_hooks.win_api import constants as wc logger = logging.getLogger(__name__)
18.342593
79
0.646643
7497c1706d2cfdef04eb240c836fa9520fbded1f
10,037
py
Python
n2nmn-tensorlayer/models_shapes/nmn3_layers.py
jiaqi-xi/Neural-Module-Networks.Tensorlayer
3607e6717473aed51c653cf931dc7d80866b0227
[ "MIT" ]
null
null
null
n2nmn-tensorlayer/models_shapes/nmn3_layers.py
jiaqi-xi/Neural-Module-Networks.Tensorlayer
3607e6717473aed51c653cf931dc7d80866b0227
[ "MIT" ]
null
null
null
n2nmn-tensorlayer/models_shapes/nmn3_layers.py
jiaqi-xi/Neural-Module-Networks.Tensorlayer
3607e6717473aed51c653cf931dc7d80866b0227
[ "MIT" ]
3
2020-01-12T15:45:44.000Z
2020-01-31T13:07:46.000Z
from __future__ import absolute_import, division, print_function import sys import tensorflow as tf import tensorlayer as tl import numpy as np from tensorflow import convert_to_tensor as to_T sess = tf.Session() tl.layers.initialize_global_variables(sess) # convnet built for shapes dataset # following convnet are ...
45.622727
115
0.672512
74984e77e478676a74e3414a580cf3837bbf6e4c
16,641
py
Python
reinforcement_learning/q_learn.py
noderod/DARLMID
5737dbe222ce5a5a847c1d0a8d1af64dda87e5b2
[ "MIT" ]
null
null
null
reinforcement_learning/q_learn.py
noderod/DARLMID
5737dbe222ce5a5a847c1d0a8d1af64dda87e5b2
[ "MIT" ]
null
null
null
reinforcement_learning/q_learn.py
noderod/DARLMID
5737dbe222ce5a5a847c1d0a8d1af64dda87e5b2
[ "MIT" ]
null
null
null
""" SUMMARY Reinforcement learning via q-learning on the provided data, using previous data if requested """ import argparse import json import random import sys import matplotlib.pyplot as plt import numpy as np import auxiliary as aux from vehicle import Vehicle # Sets seed for reproducibility random.seed(0) ...
36.654185
180
0.607656
749864186a6dd9c711cc350ae0e33d7867281662
162
py
Python
problem_24.py
MasterScott/project-euler
643df8258bf9ac84b14b648a3a5a254bc682c473
[ "MIT" ]
null
null
null
problem_24.py
MasterScott/project-euler
643df8258bf9ac84b14b648a3a5a254bc682c473
[ "MIT" ]
null
null
null
problem_24.py
MasterScott/project-euler
643df8258bf9ac84b14b648a3a5a254bc682c473
[ "MIT" ]
1
2019-10-28T23:33:46.000Z
2019-10-28T23:33:46.000Z
from itertools import permutations for i, p in enumerate(permutations([x for x in '0123456789'])): if i == 10**6 - 1: print ''.join(p) break
23.142857
63
0.604938
7499a0d47d4f28aa8fbfe508262da370434f71b2
12,260
py
Python
src/sark110.py
EA4FRB/sark110-python
ff5ace7c0d71f9de48772cdb1cedb98f5c22df8a
[ "MIT" ]
2
2019-09-03T18:43:53.000Z
2019-11-06T18:26:23.000Z
src/sark110.py
EA4FRB/sark110-python
ff5ace7c0d71f9de48772cdb1cedb98f5c22df8a
[ "MIT" ]
1
2020-04-03T22:59:18.000Z
2020-04-29T16:17:02.000Z
src/sark110.py
EA4FRB/sark110-python
ff5ace7c0d71f9de48772cdb1cedb98f5c22df8a
[ "MIT" ]
1
2019-09-05T16:40:55.000Z
2019-09-05T16:40:55.000Z
# --------------------------------------------------------- """ This file is a part of the "SARK110 Antenna Vector Impedance Analyzer" software MIT License @author Copyright (c) 2020 Melchor Varela - EA4FRB Permission is hereby granted, free of charge, to any person obtaining a copy of this software and as...
29.757282
112
0.49633
749bf7c085175f0c77d7d99fa53fad97cc10c478
2,295
py
Python
Utkarsh1.py
utkarsh7236/SCILLA
e11e4d753823ad522a1b3168283b6e6ffe3ea393
[ "Apache-2.0" ]
null
null
null
Utkarsh1.py
utkarsh7236/SCILLA
e11e4d753823ad522a1b3168283b6e6ffe3ea393
[ "Apache-2.0" ]
null
null
null
Utkarsh1.py
utkarsh7236/SCILLA
e11e4d753823ad522a1b3168283b6e6ffe3ea393
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import sqlite3 path = '/Users/Utkarsh/PycharmProjects/SCILLA/Experiments/circuits.db' def select_all_tasks(conn): """ Query all rows in the tasks table :param conn: the Connection object :return: """ cur = conn.cursor() cur.execute("SELECT * FROM tasks") rows = cur....
21.650943
80
0.608715
749c2c114c339b32826757ee2f0157c48eb8cfa9
383
py
Python
301-400/377.combination-sum-iv.py
guangxu-li/leetcode-in-python
8a5a373b32351500342705c141591a1a8f5f1cb1
[ "MIT" ]
null
null
null
301-400/377.combination-sum-iv.py
guangxu-li/leetcode-in-python
8a5a373b32351500342705c141591a1a8f5f1cb1
[ "MIT" ]
null
null
null
301-400/377.combination-sum-iv.py
guangxu-li/leetcode-in-python
8a5a373b32351500342705c141591a1a8f5f1cb1
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=377 lang=python3 # # [377] Combination Sum IV # # @lc code=start from collections import defaultdict # @lc code=end
20.157895
89
0.624021
749c75778c0228cfbbf366e87be5465e687bc993
1,839
py
Python
inference.py
ShaneTian/Induction-Networks
5785e13425e3c9020c8699402d546d018ec735bf
[ "Apache-2.0" ]
5
2020-06-13T07:43:33.000Z
2021-06-14T03:27:11.000Z
inference.py
ShaneTian/Induction-Networks
5785e13425e3c9020c8699402d546d018ec735bf
[ "Apache-2.0" ]
2
2020-06-15T04:53:18.000Z
2020-10-24T12:37:27.000Z
inference.py
ShaneTian/Induction-Networks
5785e13425e3c9020c8699402d546d018ec735bf
[ "Apache-2.0" ]
1
2021-01-08T11:27:07.000Z
2021-01-08T11:27:07.000Z
import argparse import numpy as np from paddle import fluid if __name__ == "__main__": main()
35.365385
90
0.641109
749ca24e3526b586f7bcd5efb10f8d95b181ede2
659
py
Python
dashboard/migrations/0032_auto_20210823_0417.py
zidandff/primaseru
a14fa7326098af220e0671c3bf3870b4016ab4bf
[ "MIT" ]
null
null
null
dashboard/migrations/0032_auto_20210823_0417.py
zidandff/primaseru
a14fa7326098af220e0671c3bf3870b4016ab4bf
[ "MIT" ]
null
null
null
dashboard/migrations/0032_auto_20210823_0417.py
zidandff/primaseru
a14fa7326098af220e0671c3bf3870b4016ab4bf
[ "MIT" ]
2
2021-08-10T09:09:58.000Z
2021-08-10T10:54:51.000Z
# Generated by Django 3.2.5 on 2021-08-23 04:17 from django.db import migrations, models
27.458333
117
0.626707
749d83fb75da72d4575c40c6649383b7eedc9468
3,125
py
Python
dynaban/pypot/callback.py
laukik-hase/imitation_of_human_arm_on_robotic_manipulator
995beb1ab41597ca6cbecd0baecdef1ef13450f9
[ "MIT" ]
3
2021-11-13T16:54:31.000Z
2021-11-13T20:50:18.000Z
dynaban/pypot/callback.py
laukik-hase/human_arm_imitation
995beb1ab41597ca6cbecd0baecdef1ef13450f9
[ "MIT" ]
null
null
null
dynaban/pypot/callback.py
laukik-hase/human_arm_imitation
995beb1ab41597ca6cbecd0baecdef1ef13450f9
[ "MIT" ]
null
null
null
import paho.mqtt.client as paho import time import Queue as queue import json import real_time_manipulator_math_utils import pprint pp = pprint.PrettyPrinter(indent=4) # import rbdl # import manip motion broker = "test.mosquitto.org" topic = "fyp/sensors" qos = 0 client = paho.Client("client_001") client.on...
26.939655
91
0.5984
749f2f672fb718a35a7272b4f9459c0ee34795d3
4,679
py
Python
emwiki/article/views.py
etmula/emwiki
e162a9976688d543f2e3bd71634913c14cdb9d54
[ "MIT" ]
2
2019-08-02T01:08:13.000Z
2020-11-17T12:47:02.000Z
emwiki/article/views.py
g063ff/emwiki
a379b2b2863e9059eac014183cb94c39670e11a0
[ "MIT" ]
101
2019-07-29T07:44:56.000Z
2022-03-31T04:11:04.000Z
emwiki/article/views.py
g063ff/emwiki
a379b2b2863e9059eac014183cb94c39670e11a0
[ "MIT" ]
11
2019-07-24T02:37:35.000Z
2021-12-09T05:24:31.000Z
import os from django.conf import settings from django.contrib.auth.decorators import login_required from django.core import serializers from django.http import HttpResponse, JsonResponse, Http404 from django.shortcuts import render, get_object_or_404 from django.urls import reverse, reverse_lazy from django.utils.dec...
37.432
99
0.63069
749f6d74baed280144d534ef8d72acec4e74fc71
3,131
py
Python
kivy3/objects/lines.py
sb-blueprint/kivy3
e5d6c5758b610503109eb2c788bcff4f3410bd06
[ "MIT" ]
null
null
null
kivy3/objects/lines.py
sb-blueprint/kivy3
e5d6c5758b610503109eb2c788bcff4f3410bd06
[ "MIT" ]
null
null
null
kivy3/objects/lines.py
sb-blueprint/kivy3
e5d6c5758b610503109eb2c788bcff4f3410bd06
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2013 Niko Skrypnik 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...
36.406977
77
0.63526
749fd515c10332cd2c59228ee905ba59c612341a
6,634
py
Python
Source/CLI/makedata/makedata.py
dmsovetov/Dreemchest
39255c88943abc69c7fa0710b7ca8486c08260e0
[ "MIT" ]
11
2016-02-18T15:24:49.000Z
2021-01-30T18:26:04.000Z
Source/CLI/makedata/makedata.py
dmsovetov/dreemchest
39255c88943abc69c7fa0710b7ca8486c08260e0
[ "MIT" ]
2
2016-05-23T22:48:35.000Z
2017-02-13T16:43:32.000Z
Source/CLI/makedata/makedata.py
dmsovetov/dreemchest
39255c88943abc69c7fa0710b7ca8486c08260e0
[ "MIT" ]
3
2016-08-19T13:26:59.000Z
2018-08-03T04:28:14.000Z
#!/usr/bin/python ################################################################################# # # The MIT License (MIT) # # Copyright (c) 2015 Dmitry Sovetov # # https://github.com/dmsovetov # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documen...
41.204969
184
0.61833
749fd6335e4af9798ed3bf9db18e89282313e71e
1,262
py
Python
core/tools/pencil.py
INTJT/conway
7d3165382b3a691163cae30e33db97c544c043a6
[ "MIT" ]
null
null
null
core/tools/pencil.py
INTJT/conway
7d3165382b3a691163cae30e33db97c544c043a6
[ "MIT" ]
null
null
null
core/tools/pencil.py
INTJT/conway
7d3165382b3a691163cae30e33db97c544c043a6
[ "MIT" ]
null
null
null
from core.tools.tool import Tool from core.editor import Editor
25.24
102
0.532488
74a000fd93cbaeff0dd5bb32c3ac3e334a8c69dc
19,855
py
Python
packages/gtmcore/gtmcore/workflows/tests/test_gitlab.py
jjwatts/gigantum-client
88ce0475fb6880322bdd06d987c494e29064f278
[ "MIT" ]
null
null
null
packages/gtmcore/gtmcore/workflows/tests/test_gitlab.py
jjwatts/gigantum-client
88ce0475fb6880322bdd06d987c494e29064f278
[ "MIT" ]
null
null
null
packages/gtmcore/gtmcore/workflows/tests/test_gitlab.py
jjwatts/gigantum-client
88ce0475fb6880322bdd06d987c494e29064f278
[ "MIT" ]
null
null
null
# Copyright (c) 2017 FlashX, LLC # # 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, distrib...
47.27381
123
0.514279
74a12178988d7dbec19f36ed51efbc1d85879c24
3,248
py
Python
pinsey/thread/LikesBotThread.py
RailKill/Pinsey
72a283e6c5683b27918b511d80e45c3af4e67539
[ "MIT" ]
3
2021-02-01T06:47:06.000Z
2022-01-09T05:54:35.000Z
pinsey/thread/LikesBotThread.py
RailKill/Pinsey
72a283e6c5683b27918b511d80e45c3af4e67539
[ "MIT" ]
4
2019-10-23T09:52:36.000Z
2022-03-11T23:17:23.000Z
pinsey/thread/LikesBotThread.py
RailKill/Pinsey
72a283e6c5683b27918b511d80e45c3af4e67539
[ "MIT" ]
null
null
null
import logging from pynder import errors from random import randint from PyQt5 import QtCore
47.764706
112
0.591441
74a2534ab9e9ba29bdec5c71f0832442026ad789
13,081
py
Python
train.py
SkyLLine/Inception-v4-in-mindspore
9a23261252baad27cbd7bc8028087e4bba48b318
[ "MIT" ]
1
2020-12-23T12:31:08.000Z
2020-12-23T12:31:08.000Z
train.py
SkyLLine/Inception-v4-in-mindspore
9a23261252baad27cbd7bc8028087e4bba48b318
[ "MIT" ]
null
null
null
train.py
SkyLLine/Inception-v4-in-mindspore
9a23261252baad27cbd7bc8028087e4bba48b318
[ "MIT" ]
null
null
null
import mindspore as ms import mindspore.nn as nn import mindspore.ops.operations as operator import os from lr_generator import get_lr from CrossEntropy import CrossEntropy import argparse from inception_A import inception_A from inception_B import inception_B import numpy as np from inception_C import inception_C from...
39.759878
125
0.690467
74a435d54372c1ab9bc2bc926f10969db52f3fc9
4,238
py
Python
dash/models.py
lakesite/dash
c64cea5fe4c5aff529e3f121270dbf29f700aeb2
[ "MIT" ]
null
null
null
dash/models.py
lakesite/dash
c64cea5fe4c5aff529e3f121270dbf29f700aeb2
[ "MIT" ]
1
2019-09-17T12:22:26.000Z
2019-09-18T22:58:14.000Z
dash/models.py
lakesite/dash
c64cea5fe4c5aff529e3f121270dbf29f700aeb2
[ "MIT" ]
1
2019-09-27T03:58:43.000Z
2019-09-27T03:58:43.000Z
import datetime from flask_bcrypt import * from flask import current_app from flask_sqlalchemy import SQLAlchemy from flask_security import UserMixin, RoleMixin db = SQLAlchemy() roles_users = db.Table('roles_users', db.Column('user_id', db.Integer(), db.ForeignKey('user.id')), db.Column('role_id', db.Inte...
32.106061
99
0.666116
74a4b609cbd07e7dfd15a960bb342cacfe14d3fb
2,034
py
Python
setup.py
Jumpscale/ays9
63bd414ff06372ba885c55eec528f427e63bcbe1
[ "Apache-2.0" ]
4
2017-06-07T08:10:06.000Z
2017-11-10T02:20:38.000Z
setup.py
Jumpscale/ays9
63bd414ff06372ba885c55eec528f427e63bcbe1
[ "Apache-2.0" ]
242
2017-05-18T10:51:48.000Z
2019-09-18T15:09:47.000Z
setup.py
Jumpscale/ays9
63bd414ff06372ba885c55eec528f427e63bcbe1
[ "Apache-2.0" ]
5
2017-06-16T15:43:25.000Z
2017-09-29T12:48:06.000Z
from setuptools import setup, find_packages from setuptools.command.install import install as _install from setuptools.command.develop import develop as _develop import os long_description = "" try: from pypandoc import convert long_description = convert("README.md", 'rst') except ImportError: long_des...
25.746835
67
0.629302
74a4c95aba95c6ff272c009bc42f15868fc311a3
514
py
Python
misc/build_proto.py
engeg/recipes-py
9dac536b55887262b4ce846f3db7a7f596542e5e
[ "Apache-2.0" ]
23
2016-01-20T00:45:26.000Z
2022-02-26T04:25:30.000Z
misc/build_proto.py
engeg/recipes-py
9dac536b55887262b4ce846f3db7a7f596542e5e
[ "Apache-2.0" ]
8
2016-01-15T19:00:38.000Z
2018-03-06T00:15:24.000Z
misc/build_proto.py
engeg/recipes-py
9dac536b55887262b4ce846f3db7a7f596542e5e
[ "Apache-2.0" ]
13
2015-09-05T05:52:43.000Z
2019-07-08T17:34:27.000Z
#!/usr/bin/env vpython # Copyright 2019 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. import os import sys from google.protobuf import json_format as jsonpb ROOT = os.path.dirname(os.path.dirname(__file__)) sys.path.a...
30.235294
77
0.766537
74a63aca3e7e9199c9e3c65398a87cb9cc5d927d
12,246
py
Python
nettruyen_downloader_script.py
quantrancse/nettruyen-downloader-script
1ff5d67fc3a99009385fd3ab5976c582246a2783
[ "MIT" ]
4
2020-09-15T16:29:53.000Z
2022-02-18T17:36:46.000Z
nettruyen_downloader_script.py
quantrancse/nettruyen-downloader-script
1ff5d67fc3a99009385fd3ab5976c582246a2783
[ "MIT" ]
null
null
null
nettruyen_downloader_script.py
quantrancse/nettruyen-downloader-script
1ff5d67fc3a99009385fd3ab5976c582246a2783
[ "MIT" ]
4
2021-07-06T04:26:15.000Z
2022-01-07T05:55:46.000Z
import argparse import signal import sys import time from concurrent.futures import ThreadPoolExecutor from os import mkdir from os.path import isdir from urllib.parse import urlparse import requests from bs4 import BeautifulSoup HEADERS = { 'Connection': 'keep-alive', 'User-Agent': 'Mozilla/5.0...
38.87619
153
0.565981
74a696dadca46d47b083f0630b23c6f4522f990b
1,237
py
Python
redash/handlers/__init__.py
fanhaipeng0403/redash
d0b074e21864b358e898d27fc2c01ebe96d7ba26
[ "BSD-2-Clause" ]
null
null
null
redash/handlers/__init__.py
fanhaipeng0403/redash
d0b074e21864b358e898d27fc2c01ebe96d7ba26
[ "BSD-2-Clause" ]
null
null
null
redash/handlers/__init__.py
fanhaipeng0403/redash
d0b074e21864b358e898d27fc2c01ebe96d7ba26
[ "BSD-2-Clause" ]
null
null
null
from flask import jsonify # redash __init__.py # setup_authentication(app) # login_manager.init_app(app) from flask_login import login_required from redash.handlers.api import api from redash.handlers.base import routes from redash.monitor import get_status from redash.permissions import require_super_admin # Handl...
22.490909
108
0.717057
74a8fdbcc478237889a10e97a2c4357eca96a428
3,017
py
Python
tenff/__main__.py
rr-/10ff
9be5cf03eda09f1fe0920d67d9e09d4886c34ef3
[ "WTFPL" ]
53
2017-09-30T16:05:39.000Z
2022-02-04T08:19:26.000Z
tenff/__main__.py
rr-/10ff
9be5cf03eda09f1fe0920d67d9e09d4886c34ef3
[ "WTFPL" ]
2
2017-12-08T10:07:42.000Z
2020-05-20T21:46:27.000Z
tenff/__main__.py
rr-/10ff
9be5cf03eda09f1fe0920d67d9e09d4886c34ef3
[ "WTFPL" ]
2
2019-12-18T04:23:10.000Z
2020-09-25T10:31:04.000Z
"""Main executable.""" import argparse import asyncio from tenff.game import GameSettings, run_game from tenff.terminal import TerminalInputHandler from tenff.util import CORPORA_PATH, get_corpus_path, parse_corpus DEFAULT_TIME = 60 PROLOG = ( "A certain typing contest site spin-off in CLI, without all the " ...
26.699115
78
0.608552
74a90fbaab5a1695a359f7f2248d252b5d5d1dbb
2,248
py
Python
python-algorithm/leetcode/problem_76.py
isudox/nerd-algorithm
c1fbe153953cf3fc24395f75d102016fdf9ea0fa
[ "MIT" ]
5
2017-06-11T09:19:34.000Z
2019-01-16T16:58:31.000Z
python-algorithm/leetcode/problem_76.py
isudox/leetcode-solution
60085e64deaf396a171367affc94b18114565c43
[ "MIT" ]
5
2020-03-22T13:53:54.000Z
2020-03-23T08:49:35.000Z
python-algorithm/leetcode/problem_76.py
isudox/nerd-algorithm
c1fbe153953cf3fc24395f75d102016fdf9ea0fa
[ "MIT" ]
1
2019-03-02T15:50:43.000Z
2019-03-02T15:50:43.000Z
"""76. Minimum Window Substring https://leetcode.com/problems/minimum-window-substring/ Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n). Example: Input: S = "ADOBECODEBANC", T = "ABC" Output: "BANC" Note: If there is no such window in S that...
33.552239
77
0.479982
74ab68465c97b9a682ec0c65d4118ab45c6835b2
4,138
py
Python
inventory/urls.py
common1/newassetcms
65eee3c2ed9dac4cc56bfff863a6cbaff9830d26
[ "MIT" ]
null
null
null
inventory/urls.py
common1/newassetcms
65eee3c2ed9dac4cc56bfff863a6cbaff9830d26
[ "MIT" ]
7
2020-06-05T20:43:46.000Z
2022-01-13T01:14:21.000Z
inventory/urls.py
common1/newassetcms
65eee3c2ed9dac4cc56bfff863a6cbaff9830d26
[ "MIT" ]
null
null
null
from django.urls import path from . import views app_name = 'inventory' urlpatterns = [ path('assettypes/', views.AssetTypesIndexView.as_view(), name='index_assettypes'), path('assettypes/create/', views.AssetTypeCreateView.as_view(), name='create_assettype'), path('assettypes/update/<in...
45.977778
80
0.694538
7762969e468e630cab9912c9e39aa8105f563ce4
327
py
Python
setup.py
zhangalbert/a
466b10ded2c85e7fceea60a95f081cb0b11b5222
[ "Apache-2.0" ]
null
null
null
setup.py
zhangalbert/a
466b10ded2c85e7fceea60a95f081cb0b11b5222
[ "Apache-2.0" ]
null
null
null
setup.py
zhangalbert/a
466b10ded2c85e7fceea60a95f081cb0b11b5222
[ "Apache-2.0" ]
null
null
null
from distutils.core import setup setup(name='a', version='0.1.0', packages=['a', 'a.security'], install_requires=['WebOb>=1.6.1'], author = "albert.zhang", author_email = "longbao.zhang@gmail.com", description = "This is a very light web framework", license = "Apache License 2...
27.25
57
0.611621
7762eadf98a84b5ce9283433a79e9899783c2908
4,833
py
Python
Lectures/DeepLearningClass/chapter2/p01_perceptron.py
Tim232/Python-Things
05f0f373a4cf298e70d9668c88a6e3a9d1cd8146
[ "MIT" ]
2
2020-12-05T07:42:55.000Z
2021-01-06T23:23:18.000Z
Lectures/DeepLearningClass/chapter2/p01_perceptron.py
Tim232/Python-Things
05f0f373a4cf298e70d9668c88a6e3a9d1cd8146
[ "MIT" ]
null
null
null
Lectures/DeepLearningClass/chapter2/p01_perceptron.py
Tim232/Python-Things
05f0f373a4cf298e70d9668c88a6e3a9d1cd8146
[ "MIT" ]
null
null
null
print('====================================================================================================') print('== 27. .') print('====================================================================================================\n') import numpy as np x = np.array([0, 1]) w = np.array([0.5, 0.5]) print(np.su...
34.276596
111
0.354438
77639b8b9fd4e3c9cd0c8b422d0c68a3e323eb36
239
py
Python
Python/Transpose and Flatten/Solution.py
chessmastersan/HackerRank
850319e6f79e7473afbb847d28edde7b2cdfc37d
[ "MIT" ]
2
2019-08-07T19:58:20.000Z
2019-08-27T00:06:09.000Z
Python/Transpose and Flatten/Solution.py
chessmastersan/HackerRank
850319e6f79e7473afbb847d28edde7b2cdfc37d
[ "MIT" ]
1
2020-06-11T19:09:48.000Z
2020-06-11T19:09:48.000Z
Python/Transpose and Flatten/Solution.py
chessmastersan/HackerRank
850319e6f79e7473afbb847d28edde7b2cdfc37d
[ "MIT" ]
7
2019-08-27T00:06:11.000Z
2021-12-11T10:01:45.000Z
#author SANKALP SAXENA import numpy size = input().split(" ") n = int(size[0]) l = [] for i in range(0, n): a = input().split(" ") l.append(a) arr = numpy.array(l, int) trans = arr.transpose() print(trans) print(arr.flatten())
15.933333
26
0.606695
7763bc166d4d7ffcd7c15717edaf06b9a61c5b0b
1,564
py
Python
src/service.py
wisrovi/AWS_DIA_17NOV
bfe734197dd9658504ecea6a9f89162877d80fdf
[ "MIT" ]
null
null
null
src/service.py
wisrovi/AWS_DIA_17NOV
bfe734197dd9658504ecea6a9f89162877d80fdf
[ "MIT" ]
null
null
null
src/service.py
wisrovi/AWS_DIA_17NOV
bfe734197dd9658504ecea6a9f89162877d80fdf
[ "MIT" ]
null
null
null
from flask import Flask, app, jsonify, request, redirect, make_response from leer_modelo import predecir ALLOWED = ['png','jpg', 'jpeg', 'gif'] nombres_parametros = { "imagen":"file1" } html = """ <!doctype html> <form method="POST" enctype="multipart/form-data"> <label for="fname">Elija su imagen a evalua...
27.928571
71
0.642583
77640065b3e76d426adcd9f96234a785912b54fb
1,220
py
Python
system/detection.py
syazanihussin/FLUX
22a1885c9ff7ef82cd306e4c3544998a71027b5d
[ "MIT" ]
null
null
null
system/detection.py
syazanihussin/FLUX
22a1885c9ff7ef82cd306e4c3544998a71027b5d
[ "MIT" ]
1
2019-05-26T04:58:17.000Z
2019-05-30T15:30:51.000Z
system/detection.py
syazanihussin/FLUX
22a1885c9ff7ef82cd306e4c3544998a71027b5d
[ "MIT" ]
null
null
null
from interface import implements, Interface from keras.models import load_model
25.957447
79
0.64918
77650de3eab4c78cafaa8bab4bb47104bd26bb30
2,926
py
Python
Spark-Example-FlightsData/flights_example.py
kiat/met-cs777
405aca20c8db4350a7a0d04607ff05f3c4e97c2f
[ "BSD-3-Clause" ]
32
2020-07-02T00:51:13.000Z
2022-03-31T22:31:30.000Z
Flight-Example/flights_example.py
pvkothapalli/MET-CS777
6825bec99581b04f9bcc328cdaa698faa2af7313
[ "BSD-3-Clause" ]
2
2021-02-17T00:42:23.000Z
2021-02-18T17:28:38.000Z
Flight-Example/flights_example.py
pvkothapalli/MET-CS777
6825bec99581b04f9bcc328cdaa698faa2af7313
[ "BSD-3-Clause" ]
47
2020-07-04T15:29:15.000Z
2022-03-25T05:08:17.000Z
# https://s3.amazonaws.com/metcs777/flights.csv.bz2 # s3n://metcs777/flights.csv.bz2 # lines = sc.textFile("file:///home/kia/Data/Collected-Datasets/flight-delays/flight-delays/flights.csv") lines = sc.textFile("s3://metcs777/flights.csv.bz2") # Removing the Header Line from CSV file linesHeader = lines.first() he...
31.12766
400
0.775803
77678f260d8155b4fbe2ca23186e87d0ca0dde81
1,510
py
Python
setup.py
farirat/rima
eb2165d972256c32d4859c3bf54c5e4b589d780f
[ "Apache-2.0" ]
2
2016-05-07T10:09:29.000Z
2016-06-10T05:36:20.000Z
setup.py
farirat/rima
eb2165d972256c32d4859c3bf54c5e4b589d780f
[ "Apache-2.0" ]
null
null
null
setup.py
farirat/rima
eb2165d972256c32d4859c3bf54c5e4b589d780f
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages import sys, os version = '0.0' setup(name='rima', version=version, description="Minimalist Python REST API Framework", long_description="""\ Minimalist Python REST API Framework """, classifiers=[ "Development Status :: 1 - Planning",...
34.318182
82
0.575497
7767ac0e64dfc02b7c55003a7ff7dca82f05c66d
10,438
py
Python
src/backend/aspen/workflows/nextstrain_run/export.py
chanzuckerberg/covidr
afe05d703d30ec18ac83944bfb551c313cb216c4
[ "MIT" ]
2
2021-01-13T18:37:20.000Z
2021-01-16T02:17:38.000Z
src/backend/aspen/workflows/nextstrain_run/export.py
chanzuckerberg/covidr
afe05d703d30ec18ac83944bfb551c313cb216c4
[ "MIT" ]
16
2021-01-14T20:21:13.000Z
2021-01-29T22:23:13.000Z
src/backend/aspen/workflows/nextstrain_run/export.py
chanzuckerberg/covidr
afe05d703d30ec18ac83944bfb551c313cb216c4
[ "MIT" ]
null
null
null
import csv import io import json from pathlib import Path from typing import Any, Iterable, List, Mapping, MutableMapping, Set, Tuple import click from sqlalchemy import and_ from sqlalchemy.orm import aliased, joinedload, with_polymorphic from aspen.config.config import Config from aspen.database.connection import (...
35.144781
91
0.627132
77685ce53cb05d06d03bc4a12c6065a439cae421
485
py
Python
dictlearn_gpu/utils.py
mukheshpugal/dictlearn_gpu
79265ddc439e2a406adbe7e505b1b6d61fa50d25
[ "MIT" ]
null
null
null
dictlearn_gpu/utils.py
mukheshpugal/dictlearn_gpu
79265ddc439e2a406adbe7e505b1b6d61fa50d25
[ "MIT" ]
null
null
null
dictlearn_gpu/utils.py
mukheshpugal/dictlearn_gpu
79265ddc439e2a406adbe7e505b1b6d61fa50d25
[ "MIT" ]
null
null
null
import cupy as cp import numpy as np
22.045455
62
0.560825
7768c92d141b2480a0d707c158a88bcde5139d2f
4,263
py
Python
yaglm/opt/prox.py
ngierty/yaglm
57e212b576af7c5c0f0d62f9d6ad2484b9e25f10
[ "MIT" ]
15
2021-10-19T15:00:12.000Z
2022-03-24T22:24:54.000Z
yaglm/opt/prox.py
ngierty/yaglm
57e212b576af7c5c0f0d62f9d6ad2484b9e25f10
[ "MIT" ]
13
2021-07-22T21:52:55.000Z
2021-10-07T11:50:10.000Z
yaglm/opt/prox.py
ngierty/yaglm
57e212b576af7c5c0f0d62f9d6ad2484b9e25f10
[ "MIT" ]
2
2021-11-12T18:45:12.000Z
2021-12-14T14:57:42.000Z
import numpy as np from yaglm.linalg_utils import euclid_norm def soft_thresh(vec, thresh_vals): """ The soft thresholding operator. Parameters ---------- vec: array-like The values to threshold thresh_vals: float, array-like The thresholding values Output ------- ...
25.076471
172
0.604269
77692efc43ca99a211134cc384641108b1111a00
902
py
Python
HW-1.py
SESCNCFUARTYOM/repforkeys
a20b14f16f3dd0df4f95b9927855b77bde7ef8e3
[ "MIT" ]
null
null
null
HW-1.py
SESCNCFUARTYOM/repforkeys
a20b14f16f3dd0df4f95b9927855b77bde7ef8e3
[ "MIT" ]
null
null
null
HW-1.py
SESCNCFUARTYOM/repforkeys
a20b14f16f3dd0df4f95b9927855b77bde7ef8e3
[ "MIT" ]
null
null
null
n, i, m, g, gg = 0, 0, 0, 0, 0 n = int(input()) if n > 1983: while n > 1983: n -= 60 m = n - 1923 else: while n < 1983: n += 60 m = n - 1983 g = (m // 12) + 1 gg = m % 12 result = '' if g == 1: result = '' elif g == 2: result = '' elif g == 3: result = '' elif g ...
15.824561
30
0.473392
77694ac8b2dc5a16098243dd7f10b1803ad2cd33
1,961
py
Python
App/workflow.py
dataminion/ScienceManager
924e1de41aca56985d9e30750264eb995604f352
[ "MIT" ]
null
null
null
App/workflow.py
dataminion/ScienceManager
924e1de41aca56985d9e30750264eb995604f352
[ "MIT" ]
null
null
null
App/workflow.py
dataminion/ScienceManager
924e1de41aca56985d9e30750264eb995604f352
[ "MIT" ]
null
null
null
#workflow import sys ##python libraries import argparse import logging import logging.config ## ## Internal libraries from service.configuration import Configuration from service.job import Job from model.object import Object from model.connection import ConnectionSettings from model.workflow import * if __name__ ==...
30.169231
92
0.63743
776b5a586a307c515edd0602fb6ce773dfcc4ddd
5,969
py
Python
cloudify_aws/kms/tests/test_key.py
jrzeszutek/cloudify-aws-plugin
59832b4ac5ddad496110085ed2e21dd36db5e9df
[ "Apache-2.0" ]
13
2015-05-28T23:21:05.000Z
2022-03-20T05:38:20.000Z
cloudify_aws/kms/tests/test_key.py
jrzeszutek/cloudify-aws-plugin
59832b4ac5ddad496110085ed2e21dd36db5e9df
[ "Apache-2.0" ]
49
2015-01-04T16:05:34.000Z
2022-03-27T11:35:13.000Z
cloudify_aws/kms/tests/test_key.py
jrzeszutek/cloudify-aws-plugin
59832b4ac5ddad496110085ed2e21dd36db5e9df
[ "Apache-2.0" ]
41
2015-01-21T17:16:05.000Z
2022-03-31T06:47:48.000Z
# Copyright (c) 2018 Cloudify Platform Ltd. All rights reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
28.42381
75
0.626906
776c1f07ea108fe03cb9a7205323ee4e16411b3f
10,184
py
Python
terraref/laser3d/laser3d.py
terraref/ply2las
90c791c64e2d94effa7d155228bf306e2f3fa29c
[ "BSD-3-Clause" ]
1
2018-09-27T05:45:56.000Z
2018-09-27T05:45:56.000Z
terraref/laser3d/laser3d.py
terraref/laser3d
90c791c64e2d94effa7d155228bf306e2f3fa29c
[ "BSD-3-Clause" ]
3
2018-05-16T19:40:26.000Z
2018-12-14T20:02:53.000Z
terraref/laser3d/laser3d.py
terraref/ply2las
90c791c64e2d94effa7d155228bf306e2f3fa29c
[ "BSD-3-Clause" ]
1
2018-07-31T13:34:13.000Z
2018-07-31T13:34:13.000Z
import subprocess import numpy import os import laspy from osgeo import gdal from plyfile import PlyData, PlyElement import matplotlib.pyplot as plt #from rpy2.robjects import r, pandas2ri, numpy2ri from terrautils.formats import create_geotiff from terrautils.spatial import scanalyzer_to_mac def ply_to_array(inp, m...
34.174497
129
0.600255
776c5fd7e0466ea12b425b1c163bacd2680eebf7
1,721
py
Python
tests/testutils.py
rcap107/holoclean
d4f5929a8e4d92d4f41eb058c04c96cdcb0af767
[ "Apache-2.0" ]
468
2018-11-11T15:40:12.000Z
2022-03-30T13:21:48.000Z
tests/testutils.py
rcap107/holoclean
d4f5929a8e4d92d4f41eb058c04c96cdcb0af767
[ "Apache-2.0" ]
43
2018-11-10T20:03:49.000Z
2020-10-20T16:39:03.000Z
tests/testutils.py
rcap107/holoclean
d4f5929a8e4d92d4f41eb058c04c96cdcb0af767
[ "Apache-2.0" ]
118
2018-11-12T19:11:42.000Z
2022-03-23T18:25:29.000Z
import random from psycopg2 import connect from psycopg2.extensions import ISOLATION_LEVEL_AUTOCOMMIT def random_database(): """ Creates a random database in the testing Postgres instance and returns the name of the database. """ # Setup connection with default credentials for testing. with c...
40.97619
101
0.607786
776e3a1ebfc475a08f1ca5cdf7ac7816f0fc1b69
12,441
py
Python
mainapp/models.py
mmiyaji/Dansible
06d5ea1fce1345388e7101db33f23e6460e3c3cf
[ "MIT" ]
null
null
null
mainapp/models.py
mmiyaji/Dansible
06d5ea1fce1345388e7101db33f23e6460e3c3cf
[ "MIT" ]
null
null
null
mainapp/models.py
mmiyaji/Dansible
06d5ea1fce1345388e7101db33f23e6460e3c3cf
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ models.py Created by mmiyaji on 2016-07-11. Copyright (c) 2016 ruhenheim.org. All rights reserved. """ from __future__ import unicode_literals import datetime, time, uuid from django.db import models from django.contrib.auth import models as auth_models class Server(mode...
33.991803
128
0.63982
776f426a84e27e37f4447fb48972e95dce547d74
162
py
Python
lang/python/matplotlib/dyn.py
liuyang1/test
a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417
[ "MIT" ]
8
2015-06-07T13:25:48.000Z
2022-03-22T23:14:50.000Z
lang/python/matplotlib/dyn.py
liuyang1/test
a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417
[ "MIT" ]
30
2016-01-29T01:36:41.000Z
2018-09-19T07:01:22.000Z
lang/python/matplotlib/dyn.py
liuyang1/test
a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417
[ "MIT" ]
null
null
null
import matplotlib.pyplot as p from scipy import eye import time for x in xrange(3, 7): p.imshow(eye(x)) p.show(block=False) time.sleep(3) print x
18
29
0.67284
77724149191f0e80307f99dd8a0656415ea312e7
559
py
Python
conflictgateway/social/jobsupdate.py
sebastianlees/Conflict-Gateway
e875abb48ad4d51db90983a35a6c7bd47a54d5e9
[ "MIT" ]
null
null
null
conflictgateway/social/jobsupdate.py
sebastianlees/Conflict-Gateway
e875abb48ad4d51db90983a35a6c7bd47a54d5e9
[ "MIT" ]
null
null
null
conflictgateway/social/jobsupdate.py
sebastianlees/Conflict-Gateway
e875abb48ad4d51db90983a35a6c7bd47a54d5e9
[ "MIT" ]
null
null
null
#!/usr/bin/env python from twython import Twython import random APP_KEY = 'APP KEY' # Customer Key here APP_SECRET = 'APP SECRET' # Customer secret here OAUTH_TOKEN = 'OAUTH TOKEN' # Access Token here OAUTH_TOKEN_SECRET = 'OAUTH TOKEN SECRET' # Access Token Secret here jobsnumber = random.randint(50, 100) twitt...
39.928571
172
0.763864
77725779c0f591f17fb4ed4c63a92e76bed4c7ed
614
py
Python
degreedClient/models/skill_plan.py
Rmaravanyika/degreedClient
44beb91d2db56d81fa9f1f35b402076144aa124e
[ "Apache-2.0" ]
1
2019-08-21T07:43:08.000Z
2019-08-21T07:43:08.000Z
degreedClient/models/skill_plan.py
Rmaravanyika/degreedClient
44beb91d2db56d81fa9f1f35b402076144aa124e
[ "Apache-2.0" ]
530
2019-06-11T03:06:52.000Z
2022-03-31T22:53:11.000Z
degreedClient/models/skill_plan.py
Rmaravanyika/degreedClient
44beb91d2db56d81fa9f1f35b402076144aa124e
[ "Apache-2.0" ]
null
null
null
import arrow import attr from attr import attrs, attrib
16.594595
82
0.732899
77729e809d9ad4a191008903e41b3ead3c5eac97
273
py
Python
src/utils.py
HuiiBuh/checkers-master
112eb1df1d8b0d691edd82978945ea5527b75fab
[ "MIT" ]
1
2021-09-04T05:34:51.000Z
2021-09-04T05:34:51.000Z
src/utils.py
HuiiBuh/checkers-master
112eb1df1d8b0d691edd82978945ea5527b75fab
[ "MIT" ]
null
null
null
src/utils.py
HuiiBuh/checkers-master
112eb1df1d8b0d691edd82978945ea5527b75fab
[ "MIT" ]
null
null
null
import numpy as np import base64 import pickle
18.2
51
0.714286
777390888167fc8811e643a135d220bdf95baecc
3,457
py
Python
experiment_utils/initialization_utils.py
HanGuo97/experiment-utils
ff1288d4ab89af90e5c8c486de4dd7673a99079b
[ "MIT" ]
null
null
null
experiment_utils/initialization_utils.py
HanGuo97/experiment-utils
ff1288d4ab89af90e5c8c486de4dd7673a99079b
[ "MIT" ]
null
null
null
experiment_utils/initialization_utils.py
HanGuo97/experiment-utils
ff1288d4ab89af90e5c8c486de4dd7673a99079b
[ "MIT" ]
null
null
null
import os import click from git import Repo from absl import logging from datetime import datetime from collections import namedtuple from typing import Tuple, Optional from . import wandb_utils logging.set_verbosity(logging.INFO) ExperimentConfig = namedtuple( "ExperimentConfig", ( "project_name", ...
29.29661
78
0.676598
77751b2395c16d4aa8161f9896e4bd62cf296098
1,045
py
Python
MDD.py
Asteria-Sun/Some-Short-Programs
df0b1a0f5fc838efbdb88da91ad653026044e23a
[ "Apache-2.0" ]
null
null
null
MDD.py
Asteria-Sun/Some-Short-Programs
df0b1a0f5fc838efbdb88da91ad653026044e23a
[ "Apache-2.0" ]
null
null
null
MDD.py
Asteria-Sun/Some-Short-Programs
df0b1a0f5fc838efbdb88da91ad653026044e23a
[ "Apache-2.0" ]
null
null
null
'''''' import numpy as np import pandas as pd import datetime #+ price = 2 + np.random.randn(21) + np.linspace(0,2,21) # date = [datetime.date(2020,12,x) for x in range(2,23)] MDD_df = pd.DataFrame({'date':date,'price':price}) #1 MDD_df['return+1'] = MDD_df['price']/MDD_df['price'].shift(1) MDD_df['cum_return'] = MDD_...
33.709677
85
0.687081
77752e8a5315061629304e6dc5ff4ce54a7a1a75
1,980
py
Python
src/MAT/bin/MATManagePluginDirs_tpl.py
wake-forest-ctsi/mist-toolkit
857e91976fa3b75ef2cad08612fa79cf2f743615
[ "BSD-3-Clause" ]
2
2015-10-28T17:58:31.000Z
2021-10-12T10:34:39.000Z
scrubber/MIST_2_0_4/src/MAT/bin/MATManagePluginDirs_tpl.py
manaswini18/DmD
dd1e865ddb7b43c8478b2b5733385143b1980951
[ "Apache-2.0" ]
null
null
null
scrubber/MIST_2_0_4/src/MAT/bin/MATManagePluginDirs_tpl.py
manaswini18/DmD
dd1e865ddb7b43c8478b2b5733385143b1980951
[ "Apache-2.0" ]
9
2016-12-17T22:50:37.000Z
2020-09-26T01:08:06.000Z
#!MF_PYTHONBIN # Copyright (C) 2007 - 2009 The MITRE Corporation. See the toplevel # file LICENSE for license terms. import os, sys, glob, shutil MAT_PKG_PYLIB = "MF_MAT_PKG_PYLIB" sys.path.insert(0, MAT_PKG_PYLIB) MAT_PKG_HOME = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) import MAT if len(sys.a...
29.117647
93
0.569697
777555e78b559e5e4b478451278bf7a1b55935a1
1,071
py
Python
Strategy/python/strategy.py
JaviMiot/patternDesignJS_Python
110cd02320e485c17f7d3b6bbafc4ffa53ae974c
[ "MIT" ]
null
null
null
Strategy/python/strategy.py
JaviMiot/patternDesignJS_Python
110cd02320e485c17f7d3b6bbafc4ffa53ae974c
[ "MIT" ]
null
null
null
Strategy/python/strategy.py
JaviMiot/patternDesignJS_Python
110cd02320e485c17f7d3b6bbafc4ffa53ae974c
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod if __name__ == '__main__': mathOperators = MathOperation(Sum()) print(mathOperators.instance) print(mathOperators.calculate(1, 2)) mathOperators.instance = Rest() print(mathOperators.instance) print(mathOperators.calculate(1, 2))
23.282609
65
0.68254
7775682dcc6dc253e667940b371c684ba9d3f2b3
1,295
py
Python
Kiraro/Kiraro_Voice/Say.py
NotJakeR/Kiraro-Discord-Bot
de4f765eedd92cedcb7c61b0444e8f69e905f9e6
[ "Apache-2.0" ]
null
null
null
Kiraro/Kiraro_Voice/Say.py
NotJakeR/Kiraro-Discord-Bot
de4f765eedd92cedcb7c61b0444e8f69e905f9e6
[ "Apache-2.0" ]
null
null
null
Kiraro/Kiraro_Voice/Say.py
NotJakeR/Kiraro-Discord-Bot
de4f765eedd92cedcb7c61b0444e8f69e905f9e6
[ "Apache-2.0" ]
1
2021-01-25T19:06:17.000Z
2021-01-25T19:06:17.000Z
from Kiraro import bot from discord.ext import commands from discord.errors import * from discord.utils import get from Kiraro.Kiraro_Voice import idk, queue import discord import gtts queue_list = {}
33.205128
119
0.658687