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
bfb00b3878976eb401bb6b11b7726def9ea5c5a6
5,632
py
Python
lib/datasets/mot_info.py
liuqk3/GSM
188965b3a11f9cdbe166d79cac7cd2e9fb4c1785
[ "MIT" ]
3
2021-06-16T13:06:27.000Z
2021-12-27T03:52:51.000Z
lib/datasets/mot_info.py
liuqk3/GSM
188965b3a11f9cdbe166d79cac7cd2e9fb4c1785
[ "MIT" ]
5
2021-08-25T16:16:51.000Z
2022-03-12T00:57:46.000Z
lib/datasets/mot_info.py
liuqk3/GSM
188965b3a11f9cdbe166d79cac7cd2e9fb4c1785
[ "MIT" ]
1
2021-12-01T13:31:38.000Z
2021-12-01T13:31:38.000Z
from lib.utils.misc import detect_os MOT_info = { "readme": "The sequences in MOT16 and MOT17 are the same, while the sequences in 2DMOT2015 are " "not all the same with those in MOT17. To handle this, we filter 2DMOT2015 dataset, " "i.e. those sequences that are contained in MOT17 will...
36.335484
120
0.457741
bfb039de17e3f2df74bac61d966e6421f6778c40
537
py
Python
src/dama/data/web.py
elaeon/ML
8b56c62a28c69987fc5dbd8a47406a3a22214371
[ "Apache-2.0" ]
4
2017-07-16T14:25:35.000Z
2018-08-27T14:18:01.000Z
src/dama/data/web.py
elaeon/dama_ml
8b56c62a28c69987fc5dbd8a47406a3a22214371
[ "Apache-2.0" ]
6
2017-10-06T16:46:13.000Z
2019-02-12T23:51:01.000Z
src/dama/data/web.py
elaeon/dama_ml
8b56c62a28c69987fc5dbd8a47406a3a22214371
[ "Apache-2.0" ]
null
null
null
import tqdm
29.833333
69
0.577281
bfb05f1d5382e3ff980e7ec3344781d6b3584404
3,393
py
Python
cashup/migrations/0002_auto_20170110_2035.py
remarkablerocket/cashup
86ee12f20feab2edb383224126aaf824764be656
[ "BSD-3-Clause" ]
null
null
null
cashup/migrations/0002_auto_20170110_2035.py
remarkablerocket/cashup
86ee12f20feab2edb383224126aaf824764be656
[ "BSD-3-Clause" ]
null
null
null
cashup/migrations/0002_auto_20170110_2035.py
remarkablerocket/cashup
86ee12f20feab2edb383224126aaf824764be656
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2017-01-10 20:35 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import django.utils.timezone
36.880435
180
0.625995
bfb1cec8422d4ddf12fb71d0f3a2b6e8767d1860
1,791
py
Python
deeplab_segment.py
Prakadeeswaran05/Simple-Tf-ObjectDetection-SemanticSegmentation-ROS
f119f0f8394c324c8453d540f4dfa495e34ee001
[ "MIT" ]
9
2021-04-29T14:30:16.000Z
2022-01-26T16:39:34.000Z
deeplab_segment.py
Prakadeeswaran05/Tf-ObjectDetection-SemanticSegmentation-ROS
f119f0f8394c324c8453d540f4dfa495e34ee001
[ "MIT" ]
null
null
null
deeplab_segment.py
Prakadeeswaran05/Tf-ObjectDetection-SemanticSegmentation-ROS
f119f0f8394c324c8453d540f4dfa495e34ee001
[ "MIT" ]
null
null
null
import collections import os import io import sys import tarfile import tempfile import urllib import rospy from std_msgs.msg import Header from sensor_msgs.msg import Image as ros_img from notcv_bridge import * from matplotlib import gridspec from matplotlib import pyplot as plt import numpy as np from PIL import Imag...
24.202703
75
0.71971
bfb3e7d2ffc0f93bca44de2873dc34f00dffb64d
1,726
py
Python
tests/test_node_symlink.py
odidev/anytree
8e0030f23c28621218d99fc6ec2c7147f5d4635d
[ "Apache-2.0" ]
700
2016-09-11T11:20:49.000Z
2022-03-31T18:22:54.000Z
tests/test_node_symlink.py
odidev/anytree
8e0030f23c28621218d99fc6ec2c7147f5d4635d
[ "Apache-2.0" ]
192
2017-02-10T10:28:24.000Z
2022-03-14T06:56:58.000Z
tests/test_node_symlink.py
odidev/anytree
8e0030f23c28621218d99fc6ec2c7147f5d4635d
[ "Apache-2.0" ]
111
2017-02-10T07:46:34.000Z
2022-03-21T07:29:05.000Z
# -*- coding: utf-8 -*- from nose.tools import eq_ from anytree import AnyNode from anytree import Node from anytree import NodeMixin from anytree import PostOrderIter from anytree import PreOrderIter from anytree import SymlinkNode
28.295082
110
0.61066
bfb5931268e96a12eb407fdb0515afdb93edab61
1,513
py
Python
python/akg/ops/array/tile.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
python/akg/ops/array/tile.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
python/akg/ops/array/tile.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2020-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 agre...
36.02381
88
0.720423
bfb5ec96e19cb3b8b15b1d3fda58e23e8864f4eb
352
py
Python
changecsv.py
LinkedModernismProject/web_code
4cf6bf53d5c3249e52a75f0a3f57d106e31daf9e
[ "Apache-2.0" ]
1
2015-05-21T23:47:54.000Z
2015-05-21T23:47:54.000Z
changecsv.py
LinkedModernismProject/web_code
4cf6bf53d5c3249e52a75f0a3f57d106e31daf9e
[ "Apache-2.0" ]
1
2015-10-29T20:51:31.000Z
2015-10-29T20:51:31.000Z
changecsv.py
LinkedModernismProject/web_code
4cf6bf53d5c3249e52a75f0a3f57d106e31daf9e
[ "Apache-2.0" ]
1
2021-11-05T20:45:57.000Z
2021-11-05T20:45:57.000Z
import os infile = open('20150309Workbookv3_ontology2.csv', 'r', encoding='utf-8') firstLine = infile.readline() firstLine.split(',') tmp = "" for x in firstLine: if(x != '\"\"'): tmp = x elif(x == '\"\"'): x = tmp firstLine = ','.join(firstLine) outfile = open('outcsv.csv','w') outfile.write(f...
22
72
0.610795
bfb83fbfba51f6d6401e0371bb21c7557341e948
10,759
py
Python
rcsb/db/tests-mysql/testSchemaDefLoaderDb.py
rcsb/py-rcsb_db
a0839c8dee3785f9ff448edb60252aa39e7a102e
[ "Apache-2.0" ]
5
2019-03-22T12:02:38.000Z
2020-12-27T01:51:08.000Z
rcsb/db/tests-mysql/testSchemaDefLoaderDb.py
rcsb/py-rcsb_db
a0839c8dee3785f9ff448edb60252aa39e7a102e
[ "Apache-2.0" ]
6
2018-10-12T21:41:28.000Z
2022-03-30T20:13:54.000Z
rcsb/db/tests-mysql/testSchemaDefLoaderDb.py
rcsb/py-rcsb_db
a0839c8dee3785f9ff448edb60252aa39e7a102e
[ "Apache-2.0" ]
2
2020-11-22T08:28:38.000Z
2022-03-27T18:00:53.000Z
## # File: SchemaDefLoaderDbTests.py # Author: J. Westbrook # Date: 29-Mar-2018 # Version: 0.001 # # Updates: # 20-Jun-2018 jdw updates for new schema generation and data preparation tools # ## """ Tests for creating and loading rdbms database (mysql) using PDBx/mmCIF data files and external schema definition...
41.70155
150
0.59894
bfb85d17f6e0ab716ca4bbd2add6c9b6f94d89d2
193
py
Python
gesund_projekt/goals/apps.py
asis2016/gesund-projekt
cb3828b69cd6a86deeab16943e38b6ebffd86abb
[ "MIT" ]
null
null
null
gesund_projekt/goals/apps.py
asis2016/gesund-projekt
cb3828b69cd6a86deeab16943e38b6ebffd86abb
[ "MIT" ]
null
null
null
gesund_projekt/goals/apps.py
asis2016/gesund-projekt
cb3828b69cd6a86deeab16943e38b6ebffd86abb
[ "MIT" ]
null
null
null
from django.apps import AppConfig
19.3
56
0.709845
bfb93d0cad239247bcffb88a0a11566cfbf6e76a
407
py
Python
poop/hfdp/factory/challenge/pacific_calendar.py
cassiobotaro/poop
fc218fbf638c50da8ea98dab7de26ad2a52e83f5
[ "MIT" ]
37
2020-12-27T00:13:07.000Z
2022-01-31T19:30:18.000Z
poop/hfdp/factory/challenge/pacific_calendar.py
cassiobotaro/poop
fc218fbf638c50da8ea98dab7de26ad2a52e83f5
[ "MIT" ]
null
null
null
poop/hfdp/factory/challenge/pacific_calendar.py
cassiobotaro/poop
fc218fbf638c50da8ea98dab7de26ad2a52e83f5
[ "MIT" ]
7
2020-12-26T22:33:47.000Z
2021-11-07T01:29:59.000Z
from poop.hfdp.factory.challenge.calendar import Calendar from poop.hfdp.factory.challenge.zone_factory import ZoneFactory
37
64
0.7543
bfbc1a67faf001d2de721fcec2384f57235c3944
1,714
py
Python
test_bot/cogs/misc.py
Enegg/disnake
1d48cbf4e0dfec82fdfb65d7f58396767ce7c009
[ "MIT" ]
290
2021-11-03T12:33:16.000Z
2022-03-31T19:30:19.000Z
test_bot/cogs/misc.py
Enegg/disnake
1d48cbf4e0dfec82fdfb65d7f58396767ce7c009
[ "MIT" ]
200
2021-11-03T10:41:41.000Z
2022-03-31T08:13:11.000Z
test_bot/cogs/misc.py
Enegg/disnake
1d48cbf4e0dfec82fdfb65d7f58396767ce7c009
[ "MIT" ]
118
2021-11-03T18:27:09.000Z
2022-03-25T22:00:45.000Z
import io from base64 import b64decode import disnake from disnake.ext import commands
32.961538
214
0.667445
bfbcb979dfbc5ce0409d17c16afb898ff5825e96
4,001
py
Python
tests/utils.py
canonical/microk8s-addons-repo-template
8ab2bfcd3021cbc7cb654578a84825b57946b469
[ "Apache-2.0" ]
null
null
null
tests/utils.py
canonical/microk8s-addons-repo-template
8ab2bfcd3021cbc7cb654578a84825b57946b469
[ "Apache-2.0" ]
null
null
null
tests/utils.py
canonical/microk8s-addons-repo-template
8ab2bfcd3021cbc7cb654578a84825b57946b469
[ "Apache-2.0" ]
null
null
null
import datetime import time import yaml from subprocess import check_output, CalledProcessError def run_until_success(cmd, timeout_insec=60, err_out=None): """ Run a command until it succeeds or times out. Args: cmd: Command to run timeout_insec: Time out in seconds err_out: If com...
30.310606
88
0.596351
bfbd189f10fcefca4808cf48f9603e4302832b63
141
py
Python
wireciendpoint/__init__.py
frawhst/gooncogs
2301ba28b58c4d039c5064a9a014503e224578a4
[ "MIT" ]
2
2021-10-06T08:05:01.000Z
2021-10-06T15:25:40.000Z
wireciendpoint/__init__.py
frawhst/gooncogs
2301ba28b58c4d039c5064a9a014503e224578a4
[ "MIT" ]
null
null
null
wireciendpoint/__init__.py
frawhst/gooncogs
2301ba28b58c4d039c5064a9a014503e224578a4
[ "MIT" ]
5
2021-09-11T23:44:44.000Z
2022-03-26T09:54:13.000Z
from redbot.core.bot import Red from .wireciendpoint import WireCiEndpoint
20.142857
42
0.780142
bfbd4ea24f52b1f2ee0d10cbddf9da3af3c314fa
1,181
py
Python
pinolo/tasks.py
piger/pinolo
9fca121adccb759c7f50c8862813c279c17b6d48
[ "BSD-3-Clause" ]
2
2016-04-13T07:12:28.000Z
2018-04-10T15:14:25.000Z
pinolo/tasks.py
piger/pinolo
9fca121adccb759c7f50c8862813c279c17b6d48
[ "BSD-3-Clause" ]
null
null
null
pinolo/tasks.py
piger/pinolo
9fca121adccb759c7f50c8862813c279c17b6d48
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ pinolo.tasks ~~~~~~~~~~~~ A Task object is a `threading.Thread` instance that will be executed without blocking the main thread. This is useful to perform potentially blocking actions like fecthing resources via HTTP. :copyright: (c) 2013 Daniel Kertesz :lic...
28.804878
76
0.647756
bfbde60d0e301377a44694a57337d1e1a44be108
3,322
py
Python
OBS_SYSTEM/StudentFileOperation.py
batux/File-Based-OBS-System
f754dc8ea4c7efd7e35eec7e91b51920b0229270
[ "MIT" ]
4
2020-05-30T21:13:16.000Z
2021-08-10T10:43:14.000Z
OBS_SYSTEM/StudentFileOperation.py
batux/File-Based-OBS-System
f754dc8ea4c7efd7e35eec7e91b51920b0229270
[ "MIT" ]
null
null
null
OBS_SYSTEM/StudentFileOperation.py
batux/File-Based-OBS-System
f754dc8ea4c7efd7e35eec7e91b51920b0229270
[ "MIT" ]
null
null
null
from FileWriter import FileWriter from FileReader import FileReader from Student import Student from StudentRecorder import StudentRecorder from SeekOffsetCalculator import SeekOffsetCalculator from os import path
34.968421
97
0.62071
bfbe67153d85f6cdf1560d976ec26175706a91b9
890
py
Python
References/Data.Analysis/TimeSeries/1-5-5.decomposition.py
royqh1979/python_libs_usage
57546d5648d8a6b7aca7d7ff9481aa7cd4d8f511
[ "MIT" ]
null
null
null
References/Data.Analysis/TimeSeries/1-5-5.decomposition.py
royqh1979/python_libs_usage
57546d5648d8a6b7aca7d7ff9481aa7cd4d8f511
[ "MIT" ]
null
null
null
References/Data.Analysis/TimeSeries/1-5-5.decomposition.py
royqh1979/python_libs_usage
57546d5648d8a6b7aca7d7ff9481aa7cd4d8f511
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import matplotlib.pyplot as plt from statsmodels.tsa.seasonal import seasonal_decompose CBE = pd.read_csv("data/cbe.dat",sep="\t") CBE.index = pd.date_range(start="1958-01",periods=len(CBE),freq="M") elec_ts = CBE["elec"] beer_ts = CBE["beer"] choc_ts = CBE["choc"] model = seaso...
27.8125
68
0.724719
bfc10809cb17d41c9d5e0845a79f7790e9acfb95
9,469
py
Python
dnctest.py
nburn42/nburn42_deep_q
b353138c3aac4cb26222d012dd10de8a784e0ff1
[ "MIT" ]
4
2016-09-10T15:41:35.000Z
2018-01-19T18:17:59.000Z
dnctest.py
nburn42/nburn42_deep_q
b353138c3aac4cb26222d012dd10de8a784e0ff1
[ "MIT" ]
null
null
null
dnctest.py
nburn42/nburn42_deep_q
b353138c3aac4cb26222d012dd10de8a784e0ff1
[ "MIT" ]
null
null
null
# Deep Q network import gym import numpy as np import tensorflow as tf import math import random import bisect import nplot # HYPERPARMETERS H = 150 H2 = 150 batch_number = 500 gamma = 0.995 num_of_ticks_between_q_copies = 1000 explore_decay = 0.99999 min_explore = 0.05 max_steps = 499 max_episodes = 1500 memory_...
34.684982
140
0.52656
bfc1f42e666a74ae32458dd95f422c52e6f4ab06
4,707
py
Python
filter_rms_error.py
tonyroberts/project-tetra-display
ada1169d3884e61c06e90fe50a9886b50564c7dd
[ "MIT" ]
4
2020-07-29T09:18:16.000Z
2021-05-19T22:31:23.000Z
filter_rms_error.py
tonyroberts/project-tetra-display
ada1169d3884e61c06e90fe50a9886b50564c7dd
[ "MIT" ]
44
2020-07-29T09:12:07.000Z
2021-07-04T01:50:57.000Z
filter_rms_error.py
tonyroberts/project-tetra-display
ada1169d3884e61c06e90fe50a9886b50564c7dd
[ "MIT" ]
4
2020-07-31T20:02:47.000Z
2021-05-14T08:48:38.000Z
import numpy as np import matplotlib.pyplot as plt def filter_rms_error(filter_object, to_filter_data_lambda, desired_filter_data_lambda, dt=0.01, start_time=0.0, end_time=10.0, skip_initial=0...
40.930435
78
0.641598
bfc23dfab619bf78cfd8a529c4b8ade197e5a1d5
2,303
py
Python
jd_spider.py
lemae/book-compare-price
339b765b5eaabf6ff8398662aa75f2a7b2a550d0
[ "MIT" ]
1
2020-12-27T03:24:33.000Z
2020-12-27T03:24:33.000Z
jd_spider.py
lemae/book-compare-price
339b765b5eaabf6ff8398662aa75f2a7b2a550d0
[ "MIT" ]
null
null
null
jd_spider.py
lemae/book-compare-price
339b765b5eaabf6ff8398662aa75f2a7b2a550d0
[ "MIT" ]
null
null
null
import requests from lxml import etree import urllib3 # if __name__ == '__main__': jd = JdSpider() jd.run()
36.555556
156
0.54277
bfc2ddc41d325e402bd9940e269df15275433de7
2,821
py
Python
sublime-plugin/poli/main.py
egnartsms/poli
3a9eab2261688ed84b83808722360356b8e67522
[ "MIT" ]
1
2020-06-07T20:55:27.000Z
2020-06-07T20:55:27.000Z
sublime-plugin/poli/main.py
egnartsms/poli
3a9eab2261688ed84b83808722360356b8e67522
[ "MIT" ]
2
2021-01-22T08:45:48.000Z
2021-01-22T08:45:49.000Z
sublime-plugin/poli/main.py
egnartsms/poli
3a9eab2261688ed84b83808722360356b8e67522
[ "MIT" ]
null
null
null
from poli.command import * from poli.module import * from poli.repl import * from poli.sublime import * import sublime import sublime_plugin from contextlib import contextmanager from poli import config from poli.comm import comm from poli.module import operation as op from poli.shared.misc import poli_info from poli...
30.663043
90
0.673166
bfc3a943b8a6d0ab083b6d9dede6a66561e87d82
97
py
Python
imagenet/__init__.py
TrustworthyDL/LeBA
3289c1330585f438dc5b931951cbb682c5513053
[ "Apache-2.0" ]
19
2020-10-20T10:17:50.000Z
2022-03-27T10:56:08.000Z
imagenet/__init__.py
TrustworthyDL/LeBA
3289c1330585f438dc5b931951cbb682c5513053
[ "Apache-2.0" ]
3
2020-11-03T03:08:54.000Z
2021-01-08T02:38:09.000Z
imagenet/__init__.py
TrustworthyDL/LeBA
3289c1330585f438dc5b931951cbb682c5513053
[ "Apache-2.0" ]
4
2020-12-14T06:52:00.000Z
2022-01-25T07:58:22.000Z
#from .load_data import load_data, preprocess, load_new_images from .get_model import get_model
32.333333
62
0.835052
bfc3b1df590bb8ed76e80c0448b22508ed37ca10
45
py
Python
aiomatrix/dispatcher/storage/room_events/engines/__init__.py
Forden/aiomatrix
d258076bae8eb776495b92be46ee9f4baec8d9a6
[ "MIT" ]
2
2021-10-29T18:07:08.000Z
2021-11-19T00:25:43.000Z
aiomatrix/dispatcher/storage/room_events/engines/__init__.py
Forden/aiomatrix
d258076bae8eb776495b92be46ee9f4baec8d9a6
[ "MIT" ]
1
2022-03-06T11:17:43.000Z
2022-03-06T11:17:43.000Z
aiomatrix/dispatcher/storage/room_events/engines/__init__.py
Forden/aiomatrix
d258076bae8eb776495b92be46ee9f4baec8d9a6
[ "MIT" ]
null
null
null
from .sqlite import SqliteEventStorageEngine
22.5
44
0.888889
bfc41979bb9c66231daf1053424eff7793160759
18
py
Python
unko.py
kentaroy47/deep_running
405d57b21320a127e36665b5bbb939581f4dee85
[ "MIT" ]
null
null
null
unko.py
kentaroy47/deep_running
405d57b21320a127e36665b5bbb939581f4dee85
[ "MIT" ]
null
null
null
unko.py
kentaroy47/deep_running
405d57b21320a127e36665b5bbb939581f4dee85
[ "MIT" ]
null
null
null
print("puripuri")
9
17
0.722222
bfc5fa526b9efcdbd9dcba45b85f7b12f6908d25
22,545
py
Python
Integral approximations visualizer.py
mateo713/visualizing-mathematics
6e43c24c20140aa363b70583212a6c0e7c366198
[ "MIT" ]
3
2020-08-25T08:32:22.000Z
2020-09-04T12:25:30.000Z
Integral approximations visualizer.py
mateo713/visualizing-mathematics
6e43c24c20140aa363b70583212a6c0e7c366198
[ "MIT" ]
null
null
null
Integral approximations visualizer.py
mateo713/visualizing-mathematics
6e43c24c20140aa363b70583212a6c0e7c366198
[ "MIT" ]
1
2020-09-01T16:05:04.000Z
2020-09-01T16:05:04.000Z
import numpy as np import matplotlib.pyplot as plt from matplotlib import patches from matplotlib.legend_handler import HandlerTuple from scipy.integrate import quad, simps from math import * #lets the user enter complicated functions easily, eg: exp(3*sin(x**2)) import pyinputplus as pyip # makes taking inputs ...
62.107438
180
0.627855
bfc6d536bd00d6d52359bd4df423a1f22afad57a
183
py
Python
01_Language/01_Functions/python/mail.py
cliff363825/TwentyFour
09df59bd5d275e66463e343647f46027397d1233
[ "MIT" ]
3
2020-06-28T07:42:51.000Z
2021-01-15T10:32:11.000Z
01_Language/01_Functions/python/mail.py
cliff363825/TwentyFour
09df59bd5d275e66463e343647f46027397d1233
[ "MIT" ]
9
2021-03-10T22:45:40.000Z
2022-02-27T06:53:20.000Z
01_Language/01_Functions/python/mail.py
cliff363825/TwentyFour
09df59bd5d275e66463e343647f46027397d1233
[ "MIT" ]
1
2021-01-15T10:51:24.000Z
2021-01-15T10:51:24.000Z
# coding: utf-8 import smtplib msg = "Line 1\nLine 2\nLine 3" server = smtplib.SMTP('localhost') server.sendmail('sender@example.com', 'caffeinated@example.com', msg) server.quit()
20.333333
69
0.726776
bfc6e4ae611738d55a2e2aa85190a861ff1e1b48
2,489
py
Python
tests/test_basic.py
mikedh/pypocketing
dbc474c966092cf1861f0507c6d358ebc33d4809
[ "MIT" ]
10
2018-11-14T04:54:20.000Z
2020-02-15T05:32:20.000Z
tests/test_basic.py
mikedh/pypocketing
dbc474c966092cf1861f0507c6d358ebc33d4809
[ "MIT" ]
null
null
null
tests/test_basic.py
mikedh/pypocketing
dbc474c966092cf1861f0507c6d358ebc33d4809
[ "MIT" ]
1
2020-07-14T01:21:12.000Z
2020-07-14T01:21:12.000Z
import os import trimesh import unittest import pocketing import numpy as np def get_model(file_name): """ Load a model from the models directory by expanding paths out. Parameters ------------ file_name : str Name of file in `models` Returns ------------ mesh : trimesh.Geomet...
25.927083
66
0.590599
bfc70e7bf8036ca3ce90a8747b5de67300cedc53
113
py
Python
Python-For-Everyone-Horstmann/Chapter1-Introduction/P1.1.py
islayy/Books-solutions
5fe05deb4e9f65875284d8af43bd383bf9ae145b
[ "MIT" ]
null
null
null
Python-For-Everyone-Horstmann/Chapter1-Introduction/P1.1.py
islayy/Books-solutions
5fe05deb4e9f65875284d8af43bd383bf9ae145b
[ "MIT" ]
null
null
null
Python-For-Everyone-Horstmann/Chapter1-Introduction/P1.1.py
islayy/Books-solutions
5fe05deb4e9f65875284d8af43bd383bf9ae145b
[ "MIT" ]
1
2019-09-22T06:27:49.000Z
2019-09-22T06:27:49.000Z
# Write a program that prints a greeting of your choice, perhaps in a language other #than English print("Hey!")
28.25
84
0.761062
bfc7a1c95b6963c2a74287ee58af3944686ab93c
517
py
Python
tests/test_config.py
DuXiao1997/lyrebird
42fc01e203cdb867bdfe3bd85a54941c301a1dea
[ "MIT" ]
223
2018-07-12T11:34:25.000Z
2022-02-23T06:11:42.000Z
tests/test_config.py
DuXiao1997/lyrebird
42fc01e203cdb867bdfe3bd85a54941c301a1dea
[ "MIT" ]
28
2018-07-16T03:31:50.000Z
2019-02-14T08:22:34.000Z
tests/test_config.py
DuXiao1997/lyrebird
42fc01e203cdb867bdfe3bd85a54941c301a1dea
[ "MIT" ]
73
2018-07-14T14:49:55.000Z
2021-11-03T08:48:17.000Z
from lyrebird import config from pathlib import Path import json import codecs
30.411765
72
0.694391
bfc7e34ff6a0e29781c1e28e5ff06849303db0af
818
py
Python
setup.py
swharden/webinspect
432674b61666d66e5be330b61f9fad0b46dac84e
[ "MIT" ]
3
2019-02-28T18:07:02.000Z
2020-03-26T06:58:16.000Z
setup.py
swharden/webinspect
432674b61666d66e5be330b61f9fad0b46dac84e
[ "MIT" ]
null
null
null
setup.py
swharden/webinspect
432674b61666d66e5be330b61f9fad0b46dac84e
[ "MIT" ]
2
2017-07-02T00:55:17.000Z
2020-03-26T06:58:17.000Z
from distutils.core import setup import webinspect setup( name='webinspect', version=webinspect.__version__, author='Scott W Harden', author_email='SWHarden@gmail.com', packages=['webinspect'], url='https://github.com/swharden/webinspect', license='MIT License', description...
54.533333
450
0.755501
bfc812b90b219bd86fe5f140919d65ec9bcddac7
563
py
Python
Src/AlgorithmLimp.py
sanjeevmk/GLASS
91c0954eab87d25d4866fea5c338f79fbca4f79e
[ "MIT" ]
2
2022-03-22T17:36:14.000Z
2022-03-27T05:03:39.000Z
Src/AlgorithmLimp.py
sanjeevmk/glass
91c0954eab87d25d4866fea5c338f79fbca4f79e
[ "MIT" ]
null
null
null
Src/AlgorithmLimp.py
sanjeevmk/glass
91c0954eab87d25d4866fea5c338f79fbca4f79e
[ "MIT" ]
null
null
null
import torch torch.manual_seed(10) torch.cuda.manual_seed_all(10) import header import init import sys import train_limp import randomSample import latentSpaceExplore_VanillaHMC,latentSpaceExplore_NUTSHmc config = sys.argv[1] training_params,data_classes,network_params,misc_variables,losses = init.initialize(config) fr...
33.117647
103
0.841918
bfc8187f5d5faf9d83f57c4dec95d6c53dcd803d
6,966
py
Python
scripts/ClusteringEvaluation/evaluator.py
chetanborse007/Patent2Vec
cd7b06d8a4ce645e5d7c251547c2ed9b44cea88a
[ "Apache-2.0" ]
null
null
null
scripts/ClusteringEvaluation/evaluator.py
chetanborse007/Patent2Vec
cd7b06d8a4ce645e5d7c251547c2ed9b44cea88a
[ "Apache-2.0" ]
null
null
null
scripts/ClusteringEvaluation/evaluator.py
chetanborse007/Patent2Vec
cd7b06d8a4ce645e5d7c251547c2ed9b44cea88a
[ "Apache-2.0" ]
1
2020-05-21T11:41:41.000Z
2020-05-21T11:41:41.000Z
# -*- coding: utf-8 -*- """ @File: evaluator.py @Description: This is an application for evaluating clustering performance on 20 newsgroup data. @Author: Chetan Borse @EMail: chetanborse2106@gmail.com @Created_on: 04/05/2017 @python_version: 3.5 ======================...
36.663158
90
0.547373
bfc892ba58f5ff6da305ddd579103f6d443a641e
11,165
py
Python
medgen/db/dataset.py
reece/medgen
8d57c058315f77769f2a2827737d56682e15dc91
[ "Apache-2.0" ]
null
null
null
medgen/db/dataset.py
reece/medgen
8d57c058315f77769f2a2827737d56682e15dc91
[ "Apache-2.0" ]
null
null
null
medgen/db/dataset.py
reece/medgen
8d57c058315f77769f2a2827737d56682e15dc91
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # from __future__ import absolute_import from __future__ import unicode_literals, print_function from pyrfc3339 import parse import MySQLdb as mdb import MySQLdb.cursors as cursors import PySQLPool from ..log import log, IS_DEBUG_ENABLED DEFAULT_HOST = 'localhost' DEFAULT_USER = 'medgen' DEFA...
35.557325
153
0.595074
bfc951700e2f7f382cf483d02a66e51c33817362
13,195
py
Python
gui/backend/tests/websocket/sqleditor/mysql_reconnect.py
mike-lischke/mysql-shell-plugins
d7d15591dd8e70f7f5ef8ea579e0797eff30fa0a
[ "Apache-2.0", "CC0-1.0" ]
11
2022-03-02T11:04:16.000Z
2022-03-29T05:28:23.000Z
gui/backend/tests/websocket/sqleditor/mysql_reconnect.py
mike-lischke/mysql-shell-plugins
d7d15591dd8e70f7f5ef8ea579e0797eff30fa0a
[ "Apache-2.0", "CC0-1.0" ]
1
2022-03-25T15:12:16.000Z
2022-03-31T18:59:22.000Z
gui/backend/tests/websocket/sqleditor/mysql_reconnect.py
mike-lischke/mysql-shell-plugins
d7d15591dd8e70f7f5ef8ea579e0797eff30fa0a
[ "Apache-2.0", "CC0-1.0" ]
3
2022-03-24T11:32:12.000Z
2022-03-25T20:40:14.000Z
# Copyright (c) 2022, Oracle and/or its affiliates. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2.0, # as published by the Free Software Foundation. # # This program is also distributed with certain software (including # but no...
32.261614
261
0.55468
bfc9e6139e7533376feb8ea091bb6bf8fc255675
1,980
py
Python
Windowing/Adding Timestamp/ParDo/task.py
EllaDing/beam-katas-python
f4636d748ca6d10bb8b0cf7913f35bde3c7605cf
[ "Apache-2.0" ]
null
null
null
Windowing/Adding Timestamp/ParDo/task.py
EllaDing/beam-katas-python
f4636d748ca6d10bb8b0cf7913f35bde3c7605cf
[ "Apache-2.0" ]
null
null
null
Windowing/Adding Timestamp/ParDo/task.py
EllaDing/beam-katas-python
f4636d748ca6d10bb8b0cf7913f35bde3c7605cf
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); y...
36
97
0.680808
bfcba31d085984d1f9108001eaa729d4ba225ccb
5,429
py
Python
test/test_pdftables_api.py
amitkishore237/python-pdftables-api
736bd273c3cac6855f678d8c1852e572b6d0322a
[ "BSD-3-Clause" ]
1
2017-05-11T07:28:38.000Z
2017-05-11T07:28:38.000Z
test/test_pdftables_api.py
amitkishore237/python-pdftables-api
736bd273c3cac6855f678d8c1852e572b6d0322a
[ "BSD-3-Clause" ]
null
null
null
test/test_pdftables_api.py
amitkishore237/python-pdftables-api
736bd273c3cac6855f678d8c1852e572b6d0322a
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Sensible Code Company # # 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 t...
39.919118
106
0.615951
bfcc4f518da87f16b5f8343fa7b78b630d66d22a
226
py
Python
scvi/external/__init__.py
njbernstein/scvi-tools
8c3ca358418d7dd1da5244dd9c3652a4a8cbe3c2
[ "BSD-3-Clause" ]
398
2017-10-11T06:19:23.000Z
2020-09-14T02:46:25.000Z
scvi/external/__init__.py
njbernstein/scvi-tools
8c3ca358418d7dd1da5244dd9c3652a4a8cbe3c2
[ "BSD-3-Clause" ]
708
2017-11-13T14:51:21.000Z
2020-09-16T21:09:19.000Z
scvi/external/__init__.py
njbernstein/scvi-tools
8c3ca358418d7dd1da5244dd9c3652a4a8cbe3c2
[ "BSD-3-Clause" ]
154
2017-10-16T06:53:59.000Z
2020-09-11T23:06:30.000Z
from .cellassign import CellAssign from .gimvi import GIMVI from .solo import SOLO from .stereoscope import RNAStereoscope, SpatialStereoscope __all__ = ["SOLO", "GIMVI", "RNAStereoscope", "SpatialStereoscope", "CellAssign"]
32.285714
81
0.792035
bfccf0cd27316bee9e62c288d35b3ea8a3cc8ae6
4,148
py
Python
flask_tube/app.py
fengluo/flask-tube
35ab75d1506c6a30b1bb543d1f34c6bbb84b7cb1
[ "MIT" ]
null
null
null
flask_tube/app.py
fengluo/flask-tube
35ab75d1506c6a30b1bb543d1f34c6bbb84b7cb1
[ "MIT" ]
null
null
null
flask_tube/app.py
fengluo/flask-tube
35ab75d1506c6a30b1bb543d1f34c6bbb84b7cb1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import logging import inspect from logging.handlers import SMTPHandler, RotatingFileHandler from werkzeug.utils import import_string, find_modules from flask import Flask, Blueprint
34.566667
81
0.58269
bfcee126791cbfcb1d0af571f6bf0783acb575ce
2,731
py
Python
bin/bin_utils.py
minersoft/miner
247ae1ffb27a4ce3203ac236afd2ed145b31a465
[ "BSD-3-Clause" ]
1
2015-04-18T16:48:48.000Z
2015-04-18T16:48:48.000Z
bin/bin_utils.py
minersoft/miner
247ae1ffb27a4ce3203ac236afd2ed145b31a465
[ "BSD-3-Clause" ]
null
null
null
bin/bin_utils.py
minersoft/miner
247ae1ffb27a4ce3203ac236afd2ed145b31a465
[ "BSD-3-Clause" ]
null
null
null
# # Copyright Michael Groys, 2014 # import sys import os _isWin32 = (sys.platform == "win32") def expandFiles(files): """Performs wildcard expansion only on windows since on other platforms it is done automatically by shell""" if sys.platform == "win32": import glob expandedFile...
29.053191
113
0.582937
bfd063ade24331aec9eaa119b346a43099af793f
6,596
py
Python
archive/LoadData.py
sjayakum/csci544
c452ed518fda0909836107668428791be90b82b4
[ "Apache-2.0" ]
1
2019-02-02T17:50:51.000Z
2019-02-02T17:50:51.000Z
archive/LoadData.py
sjayakum/csci544
c452ed518fda0909836107668428791be90b82b4
[ "Apache-2.0" ]
null
null
null
archive/LoadData.py
sjayakum/csci544
c452ed518fda0909836107668428791be90b82b4
[ "Apache-2.0" ]
null
null
null
stop_words_dict= {'': 0, 'all': 0, 'these': 0, 'are': 0, "weren't": 0, "they're": 0, 'those': 0, 'why': 0, 'under': 0, 'same': 0, "aren't": 0, 'his': 0, 'her': 0, 'had': 0, "she'd": 0, 'no': 0, 'your': 0, 'not': 0, 'because': 0, 'they': 0, 'which': 0, 'further': 0, "hadn't": 0, "he's": 0, 'while': 0, 'himself': 0, "he...
34
2,017
0.5849
bfd2553688eea939f4604d16731abf6e0a2a1ad3
339
py
Python
mysite/recipes/migrations/0031_merge_20161201_0145.py
Jason0705/ICanCook
b215e29183e588a0c161c81f1dc7e2da89563905
[ "Unlicense" ]
null
null
null
mysite/recipes/migrations/0031_merge_20161201_0145.py
Jason0705/ICanCook
b215e29183e588a0c161c81f1dc7e2da89563905
[ "Unlicense" ]
null
null
null
mysite/recipes/migrations/0031_merge_20161201_0145.py
Jason0705/ICanCook
b215e29183e588a0c161c81f1dc7e2da89563905
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2016-12-01 01:45 from __future__ import unicode_literals from django.db import migrations
19.941176
48
0.663717
bfd2bf9f4c15170d7f53c7b5e5cec1e298e0eb54
1,472
py
Python
models/faster_rcnn.py
hamadichihaoui/pytorch_faster_rcnn
2a1071f688d7c7698199c10730645e3952824cfb
[ "MIT" ]
null
null
null
models/faster_rcnn.py
hamadichihaoui/pytorch_faster_rcnn
2a1071f688d7c7698199c10730645e3952824cfb
[ "MIT" ]
null
null
null
models/faster_rcnn.py
hamadichihaoui/pytorch_faster_rcnn
2a1071f688d7c7698199c10730645e3952824cfb
[ "MIT" ]
null
null
null
# -------------------------------------------------------- # Written by Hamadi Chihaoui at 11:54 AM 5/7/2020 # -------------------------------------------------------- import torch from torch import nn from utils.config import opt
35.047619
119
0.554348
bfd3022becdddafa973c831885d554772e936813
1,131
py
Python
database/wowaccounts/models.py
DiegoLing33/prestij.xyz-api
69a11a2c93dd98975f9becbc4b8f596e4941a05f
[ "MIT" ]
null
null
null
database/wowaccounts/models.py
DiegoLing33/prestij.xyz-api
69a11a2c93dd98975f9becbc4b8f596e4941a05f
[ "MIT" ]
null
null
null
database/wowaccounts/models.py
DiegoLing33/prestij.xyz-api
69a11a2c93dd98975f9becbc4b8f596e4941a05f
[ "MIT" ]
null
null
null
# # # # # # # # Developed by Yakov V. Panov (C) Ling Black 2020 # @site http://ling.black from sqlalchemy import Column, Integer, ForeignKey, String, Boolean from sqlalchemy.orm import relationship from database import Base from database.core.models import CoreModel from database.wow.models import Bliz...
37.7
75
0.445623
bfd389f7fe51f3050b8d8eeba81b50ed5e0fe336
374
py
Python
python全栈/day43/day43-6 类装饰器.py
Ringo-li/python_exercise_100
2c6c42b84a88ffbbac30c67ffbd7bad3418eda14
[ "MIT" ]
null
null
null
python全栈/day43/day43-6 类装饰器.py
Ringo-li/python_exercise_100
2c6c42b84a88ffbbac30c67ffbd7bad3418eda14
[ "MIT" ]
null
null
null
python全栈/day43/day43-6 类装饰器.py
Ringo-li/python_exercise_100
2c6c42b84a88ffbbac30c67ffbd7bad3418eda14
[ "MIT" ]
null
null
null
# # show MyDecorator show()
22
54
0.647059
bfd5ac96703ac60416ff4c685da5df46b27b8e65
3,754
py
Python
app/modules/folderCreator.py
KevinMidboe/seasonedShows
31b0c998a8b805ddfdeda953991582145f809c76
[ "MIT" ]
2
2017-07-14T21:58:48.000Z
2020-01-11T02:32:02.000Z
app/modules/folderCreator.py
KevinMidboe/seasonedShows
31b0c998a8b805ddfdeda953991582145f809c76
[ "MIT" ]
53
2017-03-07T00:14:27.000Z
2019-12-26T01:07:30.000Z
app/modules/folderCreator.py
KevinMidboe/seasonedShows
31b0c998a8b805ddfdeda953991582145f809c76
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Author: KevinMidboe # @Date: 2017-03-05 13:52:45 # @Last Modified by: KevinMidboe # @Last Modified time: 2017-03-05 17:14:25 import sqlite3, json, os, tweepy from re import sub dbPath = 'shows.db' consumer_key, consumer_secret = 'yvVTrxNtVsLkoHxKWxh4xvgjg', '39OW...
29.793651
139
0.7187
bfd64048cbcb354c70d265eccd78d446bcbefb24
932
py
Python
competitive/AtCoder/ABC216/D_giveup.py
pn11/benkyokai
9ebdc46b529e76b7196add26dbc1e62ad48e72b0
[ "MIT" ]
null
null
null
competitive/AtCoder/ABC216/D_giveup.py
pn11/benkyokai
9ebdc46b529e76b7196add26dbc1e62ad48e72b0
[ "MIT" ]
22
2020-03-24T16:24:47.000Z
2022-02-26T15:51:18.000Z
competitive/AtCoder/ABC216/D_giveup.py
pn11/benkyokai
9ebdc46b529e76b7196add26dbc1e62ad48e72b0
[ "MIT" ]
null
null
null
import bisect from collections import deque from copy import deepcopy from fractions import Fraction from functools import reduce import heapq as hq import io from itertools import combinations, permutations import math from math import factorial import re import sys sys.setrecursionlimit(10000) #from numba import nji...
16.350877
53
0.627682
bfd7675e2be1ad56acdb8e477e9fb067383e47b9
3,633
py
Python
network/signals.py
lavenderca/genomics-network
ee7861cd6e5ef463bc3e40392c18b497da3ae4cc
[ "MIT" ]
3
2018-10-10T02:35:40.000Z
2020-02-24T22:48:06.000Z
network/signals.py
lavenderca/genomics-network
ee7861cd6e5ef463bc3e40392c18b497da3ae4cc
[ "MIT" ]
null
null
null
network/signals.py
lavenderca/genomics-network
ee7861cd6e5ef463bc3e40392c18b497da3ae4cc
[ "MIT" ]
1
2021-03-30T02:55:41.000Z
2021-03-30T02:55:41.000Z
# from django.core.cache import cache from django.contrib.auth.models import User from django.db.models.signals import post_delete, post_save, pre_delete from django.dispatch import receiver from . import tasks, models from network.management.commands.update_dendrogram import \ call_update_dendrogram from network....
32.150442
75
0.668593
bfd7d620f79e5494d93bbc5423ea48c824f0627a
2,414
py
Python
Chapter05/loading-complex-log-files-using-regex/01-apache-access-log-parser-python.py
PacktPublishing/Extending-Power-BI-with-Python-and-R
b20edc564960c9bafdb1b05212aad133e8253dae
[ "MIT" ]
25
2021-02-05T15:26:43.000Z
2022-03-20T10:07:02.000Z
Chapter05/loading-complex-log-files-using-regex/01-apache-access-log-parser-python.py
PacktPublishing/Extending-Power-BI-with-Python-and-R
b20edc564960c9bafdb1b05212aad133e8253dae
[ "MIT" ]
null
null
null
Chapter05/loading-complex-log-files-using-regex/01-apache-access-log-parser-python.py
PacktPublishing/Extending-Power-BI-with-Python-and-R
b20edc564960c9bafdb1b05212aad133e8253dae
[ "MIT" ]
22
2021-03-02T22:06:32.000Z
2022-03-15T13:17:11.000Z
import pandas as pd import re with open('D:/<your-path>/Chapter05/loading-complex-log-files-using-regex/apache_logs.txt', 'r') as f: access_log_lines = f.readlines() # Define a regex for the information (variables) contained in each row of the log regex_parts = [ r'(?P<hostName>\S+)', ...
45.54717
215
0.627589
bfd948cdb2c3473a99acba8e7f3abc76fa8f907d
1,309
py
Python
tests/test_api.py
jianzhangbjz/operator-courier
d79cff36ef13a3853b8e64427b9dd242dec7cf43
[ "Apache-2.0" ]
null
null
null
tests/test_api.py
jianzhangbjz/operator-courier
d79cff36ef13a3853b8e64427b9dd242dec7cf43
[ "Apache-2.0" ]
null
null
null
tests/test_api.py
jianzhangbjz/operator-courier
d79cff36ef13a3853b8e64427b9dd242dec7cf43
[ "Apache-2.0" ]
null
null
null
import pytest import yaml from operatorcourier import api from operatorcourier.format import unformat_bundle
32.725
74
0.705118
449c69aeb84e825bf01bd5371b20267c504112a5
134
py
Python
example/cat/urls.py
govindsinghr3/s3directmul
a8e28d4af491dfbfaf3bc18c44efb3467e9b1603
[ "MIT" ]
1
2020-02-28T12:27:01.000Z
2020-02-28T12:27:01.000Z
example/cat/urls.py
govindsinghr3/s3directmul
a8e28d4af491dfbfaf3bc18c44efb3467e9b1603
[ "MIT" ]
null
null
null
example/cat/urls.py
govindsinghr3/s3directmul
a8e28d4af491dfbfaf3bc18c44efb3467e9b1603
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, url from .views import MyView urlpatterns = [ url('', MyView.as_view(), name='form'), ]
14.888889
43
0.679104
449dcc661db95660f30fca35174b64a3b75a495d
1,772
py
Python
nn_modules/attention.py
pabvald/instagram-caption-generator
99f0c130aeb3c4bc59c267ac1f49c762e5023756
[ "MIT" ]
1
2021-12-12T14:49:42.000Z
2021-12-12T14:49:42.000Z
nn_modules/attention.py
pabvald/instagram-caption-generator
99f0c130aeb3c4bc59c267ac1f49c762e5023756
[ "MIT" ]
null
null
null
nn_modules/attention.py
pabvald/instagram-caption-generator
99f0c130aeb3c4bc59c267ac1f49c762e5023756
[ "MIT" ]
null
null
null
import torch from torch import nn device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
46.631579
112
0.68623
449ece45067338eb0bd0dfe95751f6efade5e69e
555
py
Python
Simulator.py
densikat/PyRobotSim
724418c6537fd5428e706fc3b7807c5b128ea677
[ "MIT" ]
null
null
null
Simulator.py
densikat/PyRobotSim
724418c6537fd5428e706fc3b7807c5b128ea677
[ "MIT" ]
null
null
null
Simulator.py
densikat/PyRobotSim
724418c6537fd5428e706fc3b7807c5b128ea677
[ "MIT" ]
null
null
null
import Robot import Table from Commands import CommandFactory if __name__ == '__main__': __table = Table.Table(4, 4) __robot = Robot.Robot() runinteractive(__robot, __table)
25.227273
61
0.699099
449f197266cc498765dd326f5f3f09d880e26c6f
4,103
py
Python
reinforcement_learning/ch4/tflearn_test.py
xSakix/AI_playground
17587583ecfc8fd9e92d9d3f643da6d37ac5cffd
[ "Apache-2.0" ]
1
2022-01-26T01:36:33.000Z
2022-01-26T01:36:33.000Z
reinforcement_learning/ch4/tflearn_test.py
xSakix/AI_playground
17587583ecfc8fd9e92d9d3f643da6d37ac5cffd
[ "Apache-2.0" ]
null
null
null
reinforcement_learning/ch4/tflearn_test.py
xSakix/AI_playground
17587583ecfc8fd9e92d9d3f643da6d37ac5cffd
[ "Apache-2.0" ]
null
null
null
import gym import random import numpy as np import tflearn from tflearn.layers.core import input_data, dropout, fully_connected from tflearn.layers.estimator import regression from statistics import median, mean from collections import Counter LR = 1e-3 env = gym.make('CartPole-v0') env.reset() goal_steps = 500 score...
27.722973
105
0.616622
449f491f827ed537119e735ca9342e37bea7d015
1,559
py
Python
2021-08/demo001.py
zhouyuanmin/MyDemo
664977a6243992c77931e58b98f5262745759d1a
[ "MIT" ]
null
null
null
2021-08/demo001.py
zhouyuanmin/MyDemo
664977a6243992c77931e58b98f5262745759d1a
[ "MIT" ]
null
null
null
2021-08/demo001.py
zhouyuanmin/MyDemo
664977a6243992c77931e58b98f5262745759d1a
[ "MIT" ]
null
null
null
sql_1 = """INSERT INTO `pt_exam`.`user_order` (`id`, `exam_id`, `user_id`, `order_number`, `pre_pay_number`, `entry_fee`, `actual_pay_fee`, `status`, `pay_url`, `pay_time`, `create_time`) VALUES (NULL, {exam_id}, {user_id}, 'zsyl20210811103413909170a3{user_id}{exam_id}', NULL, 1, 1, 1, 'weixin://wxpay/bizpayurl?pr=hDqk...
64.958333
411
0.673509
44a1717d594fb51c7385c91303fb2db8277257f1
1,904
py
Python
tree_app/migrations/0001_initial.py
alexepc/sql-tree-perfomance
cadb4c7fa1ccca0bbfaca95e8f6b3f655af3c98c
[ "MIT" ]
2
2018-03-10T20:03:57.000Z
2018-03-10T20:04:39.000Z
tree_app/migrations/0001_initial.py
alexepc/sql-tree-perfomance
cadb4c7fa1ccca0bbfaca95e8f6b3f655af3c98c
[ "MIT" ]
null
null
null
tree_app/migrations/0001_initial.py
alexepc/sql-tree-perfomance
cadb4c7fa1ccca0bbfaca95e8f6b3f655af3c98c
[ "MIT" ]
2
2018-03-10T20:02:56.000Z
2021-07-13T10:30:42.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import mptt.fields import tree_app.ltreefield
36.615385
123
0.559349
44a2765850dbf029f091c5c72a6f72e449ab3866
258
py
Python
application/core/factory/account_factory.py
yntonfon/dashboard-plus
1a4f2cf0c4d640f91d5c0aa974d0266552fb4e3d
[ "MIT" ]
null
null
null
application/core/factory/account_factory.py
yntonfon/dashboard-plus
1a4f2cf0c4d640f91d5c0aa974d0266552fb4e3d
[ "MIT" ]
4
2018-04-10T18:13:13.000Z
2018-05-15T15:53:13.000Z
application/core/factory/account_factory.py
yntonfon/dashboard-plus
1a4f2cf0c4d640f91d5c0aa974d0266552fb4e3d
[ "MIT" ]
null
null
null
from application.core.entity.account import Account from application.core.port.create_account_port import CreateAccountPort
28.666667
71
0.794574
44a3b7ef00e06d7c272e92b08ddb7119a66bf685
3,205
py
Python
edb/common/binwrapper.py
aaronbrighton/edgedb
4aacd1d4e248ae0d483c075ba93fc462da291ef4
[ "Apache-2.0" ]
7,302
2018-05-10T18:36:31.000Z
2022-03-31T17:49:36.000Z
edb/common/binwrapper.py
aaronbrighton/edgedb
4aacd1d4e248ae0d483c075ba93fc462da291ef4
[ "Apache-2.0" ]
1,602
2018-05-10T17:45:38.000Z
2022-03-31T23:46:19.000Z
edb/common/binwrapper.py
aaronbrighton/edgedb
4aacd1d4e248ae0d483c075ba93fc462da291ef4
[ "Apache-2.0" ]
236
2018-05-13T14:15:29.000Z
2022-03-29T19:39:19.000Z
# # This source file is part of the EdgeDB open source project. # # Copyright 2019-present MagicStack Inc. and the EdgeDB authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http...
28.114035
74
0.626209
44a539f8897e3cf939be64e4260e6de784c27227
4,559
py
Python
tests/test_resource_library_parser.py
tervay/the-blue-alliance
e14c15cb04b455f90a2fcfdf4c1cdbf8454e17f8
[ "MIT" ]
266
2015-01-04T00:10:48.000Z
2022-03-28T18:42:05.000Z
tests/test_resource_library_parser.py
gregmarra/the-blue-alliance
5bedaf5c80b4623984760d3da3289640639112f9
[ "MIT" ]
2,673
2015-01-01T20:14:33.000Z
2022-03-31T18:17:16.000Z
tests/test_resource_library_parser.py
gregmarra/the-blue-alliance
5bedaf5c80b4623984760d3da3289640639112f9
[ "MIT" ]
230
2015-01-04T00:10:48.000Z
2022-03-26T18:12:04.000Z
import unittest2 import json from datafeeds.resource_library_parser import ResourceLibraryParser
40.345133
187
0.626234
44a6007d691a4403a60198e26a7de946aa966052
376
py
Python
tests/test_blog.py
Mzazi25/blogposts
b4673737171caa660d7f1296c741870ab07dc693
[ "Unlicense" ]
null
null
null
tests/test_blog.py
Mzazi25/blogposts
b4673737171caa660d7f1296c741870ab07dc693
[ "Unlicense" ]
null
null
null
tests/test_blog.py
Mzazi25/blogposts
b4673737171caa660d7f1296c741870ab07dc693
[ "Unlicense" ]
null
null
null
import unittest from app .models import Blog
26.857143
53
0.632979
44a61f8c95d30fc8390923ffa8f86c9b6a091073
1,143
py
Python
app/annohub/lib/fileutils.py
inktrap/annohub
dd91035b18263ce91ea4c922d7e597176fbf6172
[ "MIT" ]
null
null
null
app/annohub/lib/fileutils.py
inktrap/annohub
dd91035b18263ce91ea4c922d7e597176fbf6172
[ "MIT" ]
null
null
null
app/annohub/lib/fileutils.py
inktrap/annohub
dd91035b18263ce91ea4c922d7e597176fbf6172
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from annohub import app from annohub.lib import error as e def try_unicode(this_string, errors='strict'): u''' taken from <https://stackoverflow.com/a/9600161> and changed so it turns input into unicode Attention: Order of ENCODINGS_ALLOWED is important. ''...
30.078947
65
0.67629
44a68d19d0457cb467517809d57467ed23477f13
1,909
py
Python
instana/collector/helpers/google_cloud_run/instance_entity.py
rlopes-ki/python-sensor
07e827f9982b2a0c482e8eab82d1a420923efd5e
[ "MIT" ]
61
2017-09-27T02:50:17.000Z
2022-03-22T12:13:37.000Z
instana/collector/helpers/google_cloud_run/instance_entity.py
rlopes-ki/python-sensor
07e827f9982b2a0c482e8eab82d1a420923efd5e
[ "MIT" ]
82
2017-07-11T13:47:33.000Z
2022-03-22T10:10:38.000Z
instana/collector/helpers/google_cloud_run/instance_entity.py
rlopes-ki/python-sensor
07e827f9982b2a0c482e8eab82d1a420923efd5e
[ "MIT" ]
27
2017-09-11T16:22:32.000Z
2022-03-11T17:21:49.000Z
# (c) Copyright IBM Corp. 2021 # (c) Copyright Instana Inc. 2021 """ Module to assist in the data collection about the google cloud run service revision instance entity """ import os from ....log import logger from instana.collector.helpers.base import BaseHelper from ....util import DictionaryOfStan
43.386364
107
0.648507
44a7605830ddf3e70b61af73d470f0f3f5f9918f
786
py
Python
shortener/urls/views.py
theduckfliesagain/url-shortener
6325d2005a73d3a3de7f828bccdc07026f948d44
[ "PostgreSQL", "MIT" ]
null
null
null
shortener/urls/views.py
theduckfliesagain/url-shortener
6325d2005a73d3a3de7f828bccdc07026f948d44
[ "PostgreSQL", "MIT" ]
null
null
null
shortener/urls/views.py
theduckfliesagain/url-shortener
6325d2005a73d3a3de7f828bccdc07026f948d44
[ "PostgreSQL", "MIT" ]
1
2021-05-12T14:15:37.000Z
2021-05-12T14:15:37.000Z
from django.shortcuts import render, redirect, get_object_or_404 from .forms import UrlForm from .models import Url from django.contrib import messages
27.103448
94
0.652672
44a8622d05ffd328679908f65b665150ee27df63
1,297
py
Python
src/simplegallery_bulkcreation/utils.py
hille721/simple-photo-gallery-bulkcreation
0f7ff702669fee5deaca386e2e68f1c6edc68f5a
[ "MIT" ]
null
null
null
src/simplegallery_bulkcreation/utils.py
hille721/simple-photo-gallery-bulkcreation
0f7ff702669fee5deaca386e2e68f1c6edc68f5a
[ "MIT" ]
4
2021-03-06T09:48:01.000Z
2021-10-09T00:23:09.000Z
src/simplegallery_bulkcreation/utils.py
hille721/simple-photo-gallery-bulkcreation
0f7ff702669fee5deaca386e2e68f1c6edc68f5a
[ "MIT" ]
null
null
null
""" some general helping functions """ import sys if sys.version_info.major < 3: sys.exit("Python 2 not supported!") if sys.version_info.major == 3 and sys.version_info.minor < 18: from distutils.dir_util import copy_tree LEGACY_SUPPORT = True else: import shutil LEGACY_SUPPORT = False def plto...
26.469388
86
0.656901
44a871961361fa9161bd5e0acf5c1c05af3f7a64
2,206
py
Python
final_chal/starter.py
YaBoyWonder/Racecar
ae8c8c82871096524b5a0e4e18682024d0fa93bc
[ "Apache-2.0" ]
1
2018-07-11T20:01:00.000Z
2018-07-11T20:01:00.000Z
final_chal/starter.py
YaBoyWonder/Racecar
ae8c8c82871096524b5a0e4e18682024d0fa93bc
[ "Apache-2.0" ]
null
null
null
final_chal/starter.py
YaBoyWonder/Racecar
ae8c8c82871096524b5a0e4e18682024d0fa93bc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ''' Github: YaBoyWonder License: https://github.com/YaBoyWonder/Racecar/blob/master/LICENSE ''' import rospy import numpy as np import cv2 from cv_bridge import CvBridge from std_msgs.msg import Bool from sensor_msgs.msg import Image from constants import STARTER_TOPIC, IMAGE_TOPIC, STARTER_NO...
29.810811
87
0.570716
44a9b48d19ecc708bb17d5ec3f810a99423f4548
1,694
py
Python
Built-In functions in Python.py
MYJOR/Software-Engineering-With-Python
01031ba60df1c65b82a1b32f11b3deb6b45574d0
[ "MIT" ]
null
null
null
Built-In functions in Python.py
MYJOR/Software-Engineering-With-Python
01031ba60df1c65b82a1b32f11b3deb6b45574d0
[ "MIT" ]
null
null
null
Built-In functions in Python.py
MYJOR/Software-Engineering-With-Python
01031ba60df1c65b82a1b32f11b3deb6b45574d0
[ "MIT" ]
null
null
null
#built in functions from math import * #abs() function number=-120 print(abs(number)) #len() function name_1='sam' name_2="JOSH" print(len(name_1)) #upper()function print(name_1.upper()) #lower() function print(name_2.lower()) #replace function print(name_1.replace(name_1,name_2)) #St...
14.355932
98
0.669421
44aa68f2a766bf6b08abe4a106387c847de89174
49,123
py
Python
digsby/src/gui/toolbox/toolbox.py
ifwe/digsby
f5fe00244744aa131e07f09348d10563f3d8fa99
[ "Python-2.0" ]
35
2015-08-15T14:32:38.000Z
2021-12-09T16:21:26.000Z
digsby/src/gui/toolbox/toolbox.py
niterain/digsby
16a62c7df1018a49eaa8151c0f8b881c7e252949
[ "Python-2.0" ]
4
2015-09-12T10:42:57.000Z
2017-02-27T04:05:51.000Z
digsby/src/gui/toolbox/toolbox.py
niterain/digsby
16a62c7df1018a49eaa8151c0f8b881c7e252949
[ "Python-2.0" ]
15
2015-07-10T23:58:07.000Z
2022-01-23T22:16:33.000Z
''' GUI utilities. ''' from __future__ import with_statement from __future__ import division import config import functools import wx, struct from wx import GetTopLevelWindows, Point, Size from logging import getLogger; log = getLogger('gui.util') from traceback import print_exc from PIL import Image, ImageDraw, ImageF...
30.549129
142
0.612422
44adadb207d3a843a87467e07360f5bc99c56e77
1,080
py
Python
s2_organisation_and_version_control/exercise2/src/models/model.py
victor-flindt/MLO_02476_assignment_repo
eeae1901b3b1fbff89a4641ae50288892b6abb9e
[ "Apache-2.0" ]
null
null
null
s2_organisation_and_version_control/exercise2/src/models/model.py
victor-flindt/MLO_02476_assignment_repo
eeae1901b3b1fbff89a4641ae50288892b6abb9e
[ "Apache-2.0" ]
null
null
null
s2_organisation_and_version_control/exercise2/src/models/model.py
victor-flindt/MLO_02476_assignment_repo
eeae1901b3b1fbff89a4641ae50288892b6abb9e
[ "Apache-2.0" ]
null
null
null
from torch import nn import torch.nn.functional as F import torch
29.189189
71
0.653704
44ae3590b20cfb4480211cdbd4a0c557865bce64
176
py
Python
backend/users/views.py
hearot/pycon
9a722c4803d8583ae8168066c7b710ce96d659a5
[ "MIT" ]
null
null
null
backend/users/views.py
hearot/pycon
9a722c4803d8583ae8168066c7b710ce96d659a5
[ "MIT" ]
null
null
null
backend/users/views.py
hearot/pycon
9a722c4803d8583ae8168066c7b710ce96d659a5
[ "MIT" ]
null
null
null
from django.shortcuts import render
17.6
53
0.659091
44ae9abc4a9a98e70e5eb2741c8483abff0fde6f
234
py
Python
print1.py
shubhamm033/googlepython
03da9f056a795455ae30774a12d31d2f8b3ec299
[ "Apache-2.0" ]
null
null
null
print1.py
shubhamm033/googlepython
03da9f056a795455ae30774a12d31d2f8b3ec299
[ "Apache-2.0" ]
6
2020-03-24T15:37:56.000Z
2021-04-30T20:33:32.000Z
print1.py
shubhamm033/googlepython
03da9f056a795455ae30774a12d31d2f8b3ec299
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python -tt import sys if __name__ == '__main__': main()
6.882353
32
0.538462
44aed84eefc75b257d889e5f2e769407c7401cb7
5,905
py
Python
esrt/old_models/tmp/losses.py
PTYin/ESRT
4d3e5c523cef7bd15ea8ce10e5cf8b7e05ad2d5c
[ "BSD-2-Clause" ]
18
2020-01-07T21:45:05.000Z
2022-03-27T18:51:34.000Z
esrt/old_models/tmp/losses.py
PTYin/ESRT
4d3e5c523cef7bd15ea8ce10e5cf8b7e05ad2d5c
[ "BSD-2-Clause" ]
null
null
null
esrt/old_models/tmp/losses.py
PTYin/ESRT
4d3e5c523cef7bd15ea8ce10e5cf8b7e05ad2d5c
[ "BSD-2-Clause" ]
3
2020-03-17T08:56:32.000Z
2022-02-03T00:25:40.000Z
# 3rd party import import tensorflow as tf from tensorflow.python.ops import array_ops from tensorflow.python.ops import math_ops from tensorflow.python.framework import dtypes # stdlib import # module import import model_utils def UQP_nce_loss(model, user_idxs, query_word_idxs, product_idxs, word_idxs): """ Arg...
41.293706
139
0.767655
44b1bf33e1394530069e62ef4f072497bb461e90
1,392
py
Python
Lib/site-packages/guidata/tests/data.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
Lib/site-packages/guidata/tests/data.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
Lib/site-packages/guidata/tests/data.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2009-2010 CEA # Pierre Raybaut # Licensed under the terms of the CECILL License # (see guidata/__init__.py for details) """Unit tests""" SHOW = False # Do not show test in GUI-based test launcher import unittest from guidata.dataset.datatypes import DataSet from guidata.dataset...
27.84
71
0.621408
44b321e007f75e037826d245811d0a80abd91dc2
1,430
py
Python
copy-since-prepare.py
ulikoehler/copy-since
38e9cb7a8e0c25753e7cdcd6e8d0fac5243c69d8
[ "Apache-2.0" ]
null
null
null
copy-since-prepare.py
ulikoehler/copy-since
38e9cb7a8e0c25753e7cdcd6e8d0fac5243c69d8
[ "Apache-2.0" ]
null
null
null
copy-since-prepare.py
ulikoehler/copy-since
38e9cb7a8e0c25753e7cdcd6e8d0fac5243c69d8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from datetime import datetime import os import argparse def set_file_access_time(filename, atime): """ Set the access time of a given filename to the given atime. atime must be a datetime object. """ stat = os.stat(filename) mtime = stat.st_mtime os.utime(filename, ti...
38.648649
170
0.676224
44b3434f83833b5a418dc8a7e1ea5e2d80329437
11,843
py
Python
bgcArgoDMQC/fplt.py
ArgoCanada/bgcArgoDMQC
513b05729e605eed2cd9dafe9aef6260f577a0b5
[ "MIT" ]
3
2020-11-30T14:49:43.000Z
2022-02-08T17:23:36.000Z
bgcArgoDMQC/fplt.py
ArgoCanada/bgcArgoDMQC
513b05729e605eed2cd9dafe9aef6260f577a0b5
[ "MIT" ]
32
2020-11-11T16:00:04.000Z
2022-02-23T18:59:48.000Z
bgcArgoDMQC/fplt.py
ArgoCanada/bgcArgoDMQC
513b05729e605eed2cd9dafe9aef6260f577a0b5
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import matplotlib.dates as mdates import seaborn as sns sns.set(style='ticks', context='paper', palette='colorblind') try: import cmocean.cm as cmo cmocean_flag = True except: cmocean_flag = False
30.211735
153
0.559909
44b3cebd337c6f32ed6e99a3bf2d657fcab0b105
24,317
py
Python
pysnmp-with-texts/Wellfleet-DS1-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/Wellfleet-DS1-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/Wellfleet-DS1-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 Wellfleet-DS1-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Wellfleet-DS1-MIB # Produced by pysmi-0.3.4 at Wed May 1 15:39:54 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Ma...
116.908654
2,309
0.782827
44b7287dea0a46245fb5e9849f3dbc40867c5ef1
917
py
Python
scripts/dashboard.py
NCAR/jupyterhub-deploy
a97e0b97655500a09e3c49b9435d84f5b9844c47
[ "Apache-2.0" ]
1
2021-11-06T16:12:36.000Z
2021-11-06T16:12:36.000Z
scripts/dashboard.py
NCAR/jupyterhub-deploy
a97e0b97655500a09e3c49b9435d84f5b9844c47
[ "Apache-2.0" ]
2
2020-09-01T01:30:19.000Z
2020-09-17T16:23:31.000Z
scripts/dashboard.py
NCAR/jupyterhub-deploy
a97e0b97655500a09e3c49b9435d84f5b9844c47
[ "Apache-2.0" ]
null
null
null
from invoke import task from .common import _print_command, _prompt
24.131579
98
0.643402
44ba30b17004b8773bacbbd9c1d01b2d0df3366d
4,815
py
Python
examples/spline/plot_pspline_whittaker.py
derb12/pybaselines
801e417d698e5e05c53372a4359f3642f34e19ac
[ "BSD-3-Clause" ]
18
2021-08-16T20:22:19.000Z
2022-03-19T05:30:37.000Z
examples/spline/plot_pspline_whittaker.py
derb12/pybaselines
801e417d698e5e05c53372a4359f3642f34e19ac
[ "BSD-3-Clause" ]
4
2021-05-23T01:26:22.000Z
2022-02-06T01:01:24.000Z
examples/spline/plot_pspline_whittaker.py
derb12/pybaselines
801e417d698e5e05c53372a4359f3642f34e19ac
[ "BSD-3-Clause" ]
5
2021-05-22T22:57:10.000Z
2022-01-28T21:55:56.000Z
# -*- coding: utf-8 -*- """ P-spline versions of Whittaker functions ---------------------------------------- pybaselines contains penalized spline (P-spline) versions of all of the Whittaker-smoothing-based algorithms implemented in pybaselines. The reason for doing so was that P-splines offer additional user flexibi...
43.772727
99
0.734995
44bc716e02dbd1507786ecb15de2beea6203a11a
2,773
py
Python
general/apero_diff/diff_fits.py
njcuk9999/apero-utils
f77de4c9123874e5bb6ed6bd03a7de3b27057402
[ "MIT" ]
2
2020-10-08T17:03:45.000Z
2021-03-09T17:49:44.000Z
general/apero_diff/diff_fits.py
njcuk9999/apero-utils
f77de4c9123874e5bb6ed6bd03a7de3b27057402
[ "MIT" ]
17
2020-09-24T17:35:38.000Z
2020-12-11T16:10:13.000Z
general/apero_diff/diff_fits.py
njcuk9999/apero-utils
f77de4c9123874e5bb6ed6bd03a7de3b27057402
[ "MIT" ]
5
2020-04-10T06:41:00.000Z
2020-12-16T21:09:14.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ # CODE NAME HERE # CODE DESCRIPTION HERE Created on 2021-07-08 @author: cook """ from astropy.io import fits from astropy.table import Table import matplotlib.pyplot as plt import numpy as np import os import sys # ==================================================...
30.811111
82
0.457627
44bc7feed227f738bf70037d970caf854f291e75
165
py
Python
src/mlalgms/calcutils.py
sandeepbhojwani/foremast-brain
b083ea08c0506517ede8501b9ad44408e89afdc6
[ "Apache-2.0" ]
null
null
null
src/mlalgms/calcutils.py
sandeepbhojwani/foremast-brain
b083ea08c0506517ede8501b9ad44408e89afdc6
[ "Apache-2.0" ]
null
null
null
src/mlalgms/calcutils.py
sandeepbhojwani/foremast-brain
b083ea08c0506517ede8501b9ad44408e89afdc6
[ "Apache-2.0" ]
null
null
null
#import numpy as np """ #moving avg #Parameters array of ts value #Returns moving avg """ #def moving_average(series, n): # return np.average(series[-n:])
13.75
35
0.666667
44bf256a2dafb6007d714acc59d6a837ddc9210b
357
py
Python
PP4E-Examples-1.4/Examples/PP4E/Gui/Tour/Grid/temp.py
AngelLiang/PP4E
3a7f63b366e1e4700b4d2524884696999a87ba9d
[ "MIT" ]
null
null
null
PP4E-Examples-1.4/Examples/PP4E/Gui/Tour/Grid/temp.py
AngelLiang/PP4E
3a7f63b366e1e4700b4d2524884696999a87ba9d
[ "MIT" ]
null
null
null
PP4E-Examples-1.4/Examples/PP4E/Gui/Tour/Grid/temp.py
AngelLiang/PP4E
3a7f63b366e1e4700b4d2524884696999a87ba9d
[ "MIT" ]
null
null
null
""" FAILS-- can't grid and pack in same parent container (here, root window) """ from tkinter import * from grid2 import gridbox, packbox root = Tk() frm = Frame(root) frm.pack() # this works gridbox(frm) # gridbox must have its own parent in which to grid packbox(root) Button(root, text='Quit', c...
22.3125
73
0.67507
44bf679d873217e094c49cae612a959ac6192879
716
py
Python
noused/test3.py
jerry800416/3dbinpacking
1665f2a17495ce1941abd15e33f3abf70f93b57e
[ "MIT" ]
6
2021-11-13T08:29:27.000Z
2022-03-07T03:22:03.000Z
noused/test3.py
jerry800416/3dbinpacking
1665f2a17495ce1941abd15e33f3abf70f93b57e
[ "MIT" ]
4
2021-11-07T12:50:28.000Z
2022-01-19T05:37:38.000Z
noused/test3.py
jerry800416/3dbinpacking
1665f2a17495ce1941abd15e33f3abf70f93b57e
[ "MIT" ]
1
2022-02-27T13:35:17.000Z
2022-02-27T13:35:17.000Z
from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt import numpy as np from matplotlib.patches import Rectangle,Circle import mpl_toolkits.mplot3d.art3d as art3d fig = plt.figure() # ax = fig.add_subplot(111, projection='3d') ax = plt.axes(projection='3d') x,y,z = 10,0,0 dx,dy,dz = 12,12,10 ...
23.096774
47
0.677374
44c197ce3c0345e83eea3cd5f823cbdd5413b901
23
py
Python
boxuegu/boxuegu/apps/users/constants.py
1111111111122222222223333333333/Django_boxuegu
cec4451bcc55f04013efd4e4cb7c4098a0fd5056
[ "MIT" ]
null
null
null
boxuegu/boxuegu/apps/users/constants.py
1111111111122222222223333333333/Django_boxuegu
cec4451bcc55f04013efd4e4cb7c4098a0fd5056
[ "MIT" ]
6
2021-02-08T20:30:13.000Z
2022-03-11T23:50:00.000Z
boxuegu/boxuegu/apps/users/constants.py
1111111111122222222223333333333/Django_boxuegu
cec4451bcc55f04013efd4e4cb7c4098a0fd5056
[ "MIT" ]
null
null
null
EMAIL_EXPIRES = 60 * 2
11.5
22
0.695652
44c4e3d84726654819a0313b0fb9b393d67bdfd8
3,300
py
Python
atlas-aapt/external/libcxx/run-tests.py
MaTriXy/atlas
ae3434df74b2ebf52fec8bd7a06b18062b1d2833
[ "Apache-2.0" ]
8,865
2017-03-13T03:27:32.000Z
2022-03-31T12:57:44.000Z
atlas-aapt/external/libcxx/run-tests.py
gdongxie/atlas
602b3295716ef405574033759ab0238c7ee34527
[ "Apache-2.0" ]
359
2017-03-13T06:37:22.000Z
2022-01-27T14:31:43.000Z
atlas-aapt/external/libcxx/run-tests.py
gdongxie/atlas
602b3295716ef405574033759ab0238c7ee34527
[ "Apache-2.0" ]
1,709
2017-03-13T02:29:13.000Z
2022-03-31T12:57:48.000Z
# # Copyright (C) 2015 The Android Open Source Project # # 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 la...
32.673267
74
0.644848
44c63aa0301b489cc7255d45f70ed395b9de7120
60
py
Python
learning_python/ch24.py
ykyang/org.allnix.python
f9d74db2db026b20e925ac40dbca7d21b3ac0b0f
[ "Apache-2.0" ]
null
null
null
learning_python/ch24.py
ykyang/org.allnix.python
f9d74db2db026b20e925ac40dbca7d21b3ac0b0f
[ "Apache-2.0" ]
null
null
null
learning_python/ch24.py
ykyang/org.allnix.python
f9d74db2db026b20e925ac40dbca7d21b3ac0b0f
[ "Apache-2.0" ]
null
null
null
import org.allnix.lp.util; print(org.allnix.lp.util.read())
20
32
0.75
44c64a32dea97b92a2460764b91a1daa7c01553c
1,409
py
Python
model-optimizer/mo/front/kaldi/extractors/pooling_ext.py
undeadinu/dldt
fbc7a4a710c24def8ab199926a7da90a0394b87d
[ "Apache-2.0" ]
1
2019-03-22T06:35:55.000Z
2019-03-22T06:35:55.000Z
model-optimizer/mo/front/kaldi/extractors/pooling_ext.py
undeadinu/dldt
fbc7a4a710c24def8ab199926a7da90a0394b87d
[ "Apache-2.0" ]
null
null
null
model-optimizer/mo/front/kaldi/extractors/pooling_ext.py
undeadinu/dldt
fbc7a4a710c24def8ab199926a7da90a0394b87d
[ "Apache-2.0" ]
1
2019-06-11T06:20:42.000Z
2019-06-11T06:20:42.000Z
""" Copyright (c) 2018 Intel Corporation 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 wri...
36.128205
79
0.694819
44c6e896f823576d5d53f2d5f0e88e2fd6fdc726
392
py
Python
section4: methods and functions/2-arguments.py
rpotter12/learning-python
57200fe296e0d297b96a785e7e27ee3a44694eaf
[ "MIT" ]
2
2018-12-05T05:04:59.000Z
2020-01-29T02:42:40.000Z
section4: methods and functions/2-arguments.py
rpotter12/learning-python
57200fe296e0d297b96a785e7e27ee3a44694eaf
[ "MIT" ]
null
null
null
section4: methods and functions/2-arguments.py
rpotter12/learning-python
57200fe296e0d297b96a785e7e27ee3a44694eaf
[ "MIT" ]
null
null
null
# *args - arguments - it returns tuple # **kwargs - keyword arguments - it returns dictionary myfunc(1,2,3,4,5,6,7,8,9,0) myfunc1(fruit='apple',veggie='lettuce')
23.058824
65
0.635204
44c7454fa5b64c33e6f49b4940a2e48c6f1088df
5,403
py
Python
zfused_maya/zfused_maya/node/core/referencefile.py
qinningfx/zfused_outsource
bfc5558f05e3d6005653794a47bd863b61b009b1
[ "Apache-2.0" ]
2
2019-02-22T03:33:26.000Z
2019-02-23T03:29:26.000Z
zfused_maya/zfused_maya/node/core/referencefile.py
qinningfx/zfused_outsource
bfc5558f05e3d6005653794a47bd863b61b009b1
[ "Apache-2.0" ]
null
null
null
zfused_maya/zfused_maya/node/core/referencefile.py
qinningfx/zfused_outsource
bfc5558f05e3d6005653794a47bd863b61b009b1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # --author-- lanhua.zhou """ reference """ import os import shutil import logging import maya.cmds as cmds import maya.mel as mm import pymel.core as pm import zfused_maya.core.filefunc as filefunc logger = logging.getLogger(__name__) def publish_file(files, src, dst): """ upload file...
28.739362
106
0.5732
44c89577e517f8807975d3af226cfb6c8918ae4e
13,776
py
Python
sdb/passwords.py
gavinwahl/sdb
27abec1f9001d541124ea57c258ca48f930d6d88
[ "BSD-2-Clause" ]
1
2015-12-28T07:02:10.000Z
2015-12-28T07:02:10.000Z
sdb/passwords.py
gavinwahl/sdb
27abec1f9001d541124ea57c258ca48f930d6d88
[ "BSD-2-Clause" ]
null
null
null
sdb/passwords.py
gavinwahl/sdb
27abec1f9001d541124ea57c258ca48f930d6d88
[ "BSD-2-Clause" ]
null
null
null
import os import ast import sys import math import time import string import hashlib import tempfile import subprocess from operator import itemgetter from contextlib import contextmanager from getpass import getpass import random; random = random.SystemRandom() import sdb.subprocess_compat as subprocess from sdb.util...
31.59633
99
0.591173
44cb46e98ce9681f32988f03ce4c6dfbb16a6158
5,508
py
Python
models/utils/continual_model.py
loribonna/CSSL
60095d873dd62bb4403a4c20f054543673a21e7a
[ "MIT" ]
3
2022-01-04T09:21:19.000Z
2022-01-14T22:38:04.000Z
models/utils/continual_model.py
loribonna/CSSL
60095d873dd62bb4403a4c20f054543673a21e7a
[ "MIT" ]
null
null
null
models/utils/continual_model.py
loribonna/CSSL
60095d873dd62bb4403a4c20f054543673a21e7a
[ "MIT" ]
null
null
null
# Copyright 2021-present, Lorenzo Bonicelli, Pietro Buzzega, Matteo Boschini, Angelo Porrello, Simone Calderara. # All rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. import torch.nn as nn from torch.optim import SGD import torch ...
37.986207
113
0.598402
44cbc5d2a3c6057c1c9097c5679e89868f02db51
9,450
py
Python
stressberry/cli.py
clach04/stressberry
70feb8fb87f43f3b54dab2ba7e361d6a796d1cc2
[ "MIT" ]
null
null
null
stressberry/cli.py
clach04/stressberry
70feb8fb87f43f3b54dab2ba7e361d6a796d1cc2
[ "MIT" ]
null
null
null
stressberry/cli.py
clach04/stressberry
70feb8fb87f43f3b54dab2ba7e361d6a796d1cc2
[ "MIT" ]
null
null
null
import argparse import datetime import sys import threading import time import matplotlib.pyplot as plt import numpy import yaml from .__about__ import __copyright__, __version__ from .main import ( cooldown, measure_temp, measure_core_frequency, measure_ambient_temperature, test, )
29.810726
121
0.550688
44ccba52d32336ab427cf5ab9898b1c35e2d3633
9,085
py
Python
Twitter_Topic_Tracker/knapsack.py
CASOS-IDeaS-CMU/What_to_track_on_Twitter_Streaming_API
c3f9512abde036e8bca4280fb194de0cc81cd7fe
[ "Apache-2.0" ]
null
null
null
Twitter_Topic_Tracker/knapsack.py
CASOS-IDeaS-CMU/What_to_track_on_Twitter_Streaming_API
c3f9512abde036e8bca4280fb194de0cc81cd7fe
[ "Apache-2.0" ]
null
null
null
Twitter_Topic_Tracker/knapsack.py
CASOS-IDeaS-CMU/What_to_track_on_Twitter_Streaming_API
c3f9512abde036e8bca4280fb194de0cc81cd7fe
[ "Apache-2.0" ]
null
null
null
from queue import Queue from functools import lru_cache from queue import PriorityQueue from collections import deque import collections import numpy as np def knapsack(items, maxweight): """Solve the knapsack problem by finding the most valuable subsequence of items that weighs no more than maxweight. ...
36.930894
139
0.578756
44cdc0aec9bd49d73aae7e49308da7fc9cf4d668
6,153
py
Python
rec/recommender/sknn.py
btwardow/dml4rec
3bc2ca4d85ef9f8d94f0ee0a07d1d67cec671e66
[ "MIT" ]
6
2021-03-29T14:47:43.000Z
2021-11-19T08:19:25.000Z
rec/recommender/sknn.py
btwardow/dml4rec
3bc2ca4d85ef9f8d94f0ee0a07d1d67cec671e66
[ "MIT" ]
null
null
null
rec/recommender/sknn.py
btwardow/dml4rec
3bc2ca4d85ef9f8d94f0ee0a07d1d67cec671e66
[ "MIT" ]
2
2021-01-24T17:16:36.000Z
2021-10-19T07:50:06.000Z
import random import logging from math import sqrt from rec.dataset.dataset import Dataset from rec.recommender.base import SessionAwareRecommender from collections import defaultdict, Counter import tqdm
38.943038
116
0.662116
44cfdb489562c4d561d19a7518f0065fa73d7dde
9,573
py
Python
pyaff4/rdfvalue.py
rmddcr/pyaff4
398941ac51754900d9619c954d216bf14b9811ea
[ "Apache-2.0" ]
null
null
null
pyaff4/rdfvalue.py
rmddcr/pyaff4
398941ac51754900d9619c954d216bf14b9811ea
[ "Apache-2.0" ]
null
null
null
pyaff4/rdfvalue.py
rmddcr/pyaff4
398941ac51754900d9619c954d216bf14b9811ea
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Google Inc. 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 applicable law or agre...
27.587896
87
0.651311
44d1279e56ba4729a34c6687bafbbf49cce2942f
10,785
py
Python
scripts/stopping/prepare_data.py
SBUNetSys/DeQA
5baf2e151b8230dde3147d2a1e216a3e434375bb
[ "BSD-3-Clause" ]
1
2020-01-09T04:42:10.000Z
2020-01-09T04:42:10.000Z
scripts/stopping/prepare_data.py
SBUNetSys/DeQA
5baf2e151b8230dde3147d2a1e216a3e434375bb
[ "BSD-3-Clause" ]
null
null
null
scripts/stopping/prepare_data.py
SBUNetSys/DeQA
5baf2e151b8230dde3147d2a1e216a3e434375bb
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import json import argparse import os from collections import OrderedDict from utils import normalize from utils import exact_match_score, regex_match_score, get_rank from utils import slugify, aggregate, aggregate_ans from utils import Tokenizer from multiprocessing import Pool as ProcessPool #...
37.842105
118
0.595178
44d4d050ac098be9e394e56783387233beb62b57
190
py
Python
LittlePerformance/module/_tmp/test.py
TatsuyaOGth/PepperScript
bf2ef38976afbbd679b9d81b36d1035b392521d9
[ "CC0-1.0" ]
null
null
null
LittlePerformance/module/_tmp/test.py
TatsuyaOGth/PepperScript
bf2ef38976afbbd679b9d81b36d1035b392521d9
[ "CC0-1.0" ]
null
null
null
LittlePerformance/module/_tmp/test.py
TatsuyaOGth/PepperScript
bf2ef38976afbbd679b9d81b36d1035b392521d9
[ "CC0-1.0" ]
null
null
null
# -*- encoding: UTF-8 -*- from naoqi import ALProxy IP = '127.0.0.1' PORT = 49340 motion_proxy = ALProxy("ALMotion",IP,PORT) motion_proxy.openHand('LHand') motion_proxy.openHand('RHand')
17.272727
42
0.705263
44d6363a349a21c6e669f778c120ba820971b6d2
12,885
py
Python
lib/pyexcel/pyexcel/book.py
tinygg/QQ-Groups-Spider
a161282c6832ed40183905e96205edb5a57e8a05
[ "MIT" ]
null
null
null
lib/pyexcel/pyexcel/book.py
tinygg/QQ-Groups-Spider
a161282c6832ed40183905e96205edb5a57e8a05
[ "MIT" ]
null
null
null
lib/pyexcel/pyexcel/book.py
tinygg/QQ-Groups-Spider
a161282c6832ed40183905e96205edb5a57e8a05
[ "MIT" ]
1
2017-03-25T05:08:25.000Z
2017-03-25T05:08:25.000Z
""" pyexcel.readers ~~~~~~~~~~~~~~~~~~~ Uniform interface for describing a excel book :copyright: (c) 2014-2015 by Onni Software Ltd. :license: New BSD License, see LICENSE for more details """ from .iterators import SheetIterator from .sheets import Sheet, SheetStream from .utils impor...
35.204918
78
0.555064
44d6965d58df973df302d7fb296d648a5c562212
2,633
py
Python
opennre/tokenization/basic_tokenizer.py
WinterSoHot/OpenNRE
bc58d8fff2a2f42a5349c184f16ab7a8c50ae32b
[ "MIT" ]
3,284
2018-07-13T00:30:08.000Z
2022-03-30T07:07:36.000Z
opennre/tokenization/basic_tokenizer.py
WinterSoHot/OpenNRE
bc58d8fff2a2f42a5349c184f16ab7a8c50ae32b
[ "MIT" ]
328
2018-07-13T02:45:05.000Z
2022-01-26T16:24:01.000Z
opennre/tokenization/basic_tokenizer.py
WinterSoHot/OpenNRE
bc58d8fff2a2f42a5349c184f16ab7a8c50ae32b
[ "MIT" ]
803
2018-07-16T05:56:14.000Z
2022-03-29T20:12:22.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
40.507692
80
0.660463
44d6fc186fe5f7b94930cbbd4516e7f34b023d02
513
py
Python
test/test_db.py
ndrini/10Opportunities
995b5bab974c856b05ea965935dbb1e5e2fb6145
[ "MIT" ]
null
null
null
test/test_db.py
ndrini/10Opportunities
995b5bab974c856b05ea965935dbb1e5e2fb6145
[ "MIT" ]
null
null
null
test/test_db.py
ndrini/10Opportunities
995b5bab974c856b05ea965935dbb1e5e2fb6145
[ "MIT" ]
null
null
null
from usefull import read_db def test_read_csv_db_simple(): ''' page msg parent choice end 1 1. Mi sembra che 0 False False 2 ...se ti trovassi 1 True False ''' assert read_db('db_simple.csv')[0]['page'] == 1 assert read_db('db_simple.csv')[0]['msg'][-3:] == ...
30.176471
64
0.575049
44d8857f22836cadee6549371564e1850d83f368
2,009
py
Python
tests/test_buffer.py
baverman/hisser
ca820e40ab6e19517e90455e96239aa00e951740
[ "MIT" ]
9
2018-09-10T11:50:18.000Z
2021-07-28T10:12:24.000Z
tests/test_buffer.py
baverman/hisser
ca820e40ab6e19517e90455e96239aa00e951740
[ "MIT" ]
7
2020-02-22T01:29:28.000Z
2022-02-10T11:50:06.000Z
tests/test_buffer.py
baverman/hisser
ca820e40ab6e19517e90455e96239aa00e951740
[ "MIT" ]
4
2018-10-10T08:03:29.000Z
2021-03-07T07:24:03.000Z
from math import isnan from hisser.buffer import Buffer
27.520548
81
0.560478
44d8d3bc82c099fc585d62c8bfb180cf1d3e2bc7
1,825
py
Python
test.py
zhanghanduo/calc_new
6b8f75c09c65f946a92b699282684b14f8c0bee0
[ "Apache-2.0" ]
1
2020-08-27T02:42:22.000Z
2020-08-27T02:42:22.000Z
test.py
zhanghanduo/calc_new
6b8f75c09c65f946a92b699282684b14f8c0bee0
[ "Apache-2.0" ]
4
2020-09-25T22:34:32.000Z
2022-02-09T23:37:41.000Z
test.py
zhanghanduo/calc_new
6b8f75c09c65f946a92b699282684b14f8c0bee0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import layers import cv2 from os.path import join import numpy as np # import tensorflow as tf import Augmentor vw = 320 vh = 320 if __name__ == "__main__": data_root = "/mnt/4102422c-af52-4b55-988f-df7544b35598/dataset/KITTI/KITTI_Odometry/" seq = "14" vo_fn = data_root + "datas...
30.416667
108
0.612603
44d8f59d1a3869f82791a92eaa6b9b30dcd38da1
13,176
py
Python
supporting/errorcodes.py
jacbeekers/devops_supporting_tools
d2288d1396640ce9a3551e51f3af9f8f27279a76
[ "MIT" ]
null
null
null
supporting/errorcodes.py
jacbeekers/devops_supporting_tools
d2288d1396640ce9a3551e51f3af9f8f27279a76
[ "MIT" ]
null
null
null
supporting/errorcodes.py
jacbeekers/devops_supporting_tools
d2288d1396640ce9a3551e51f3af9f8f27279a76
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2019 Jac. Beekers # # 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, ...
73.608939
152
0.622647
44db91cf9babe4a9d40be5c1b45b9d0d415ce4f0
10,191
py
Python
dvm/dvm_plot.py
hangulu/dvm
41d5f6ccf4c8424730ba2a6aa781d51973489b03
[ "MIT" ]
2
2020-04-07T17:24:13.000Z
2021-01-28T18:09:43.000Z
dvm/dvm_plot.py
hangulu/dvm
41d5f6ccf4c8424730ba2a6aa781d51973489b03
[ "MIT" ]
3
2021-09-08T02:59:40.000Z
2022-03-12T00:59:25.000Z
dvm/dvm_plot.py
hangulu/dvm
41d5f6ccf4c8424730ba2a6aa781d51973489b03
[ "MIT" ]
null
null
null
""" This module implements plotting tools for the Discrete Voter Model for ecological inference. """ import matplotlib import matplotlib.pyplot as plt from mpl_toolkits.mplot3d.art3d import Poly3DCollection import numpy as np from scipy import interpolate import seaborn as sns import tensorflow as tf import tools # ...
31.070122
128
0.623982