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
14af2d1910bc127c3b0e2359278be4a51c581a07
2,212
py
Python
pysimplestorageservice/core.py
poteralski/pysimplestorageservice
dfa2075fd43683fcc8326a877f14add0ba042b74
[ "Apache-2.0" ]
5
2016-04-17T20:28:23.000Z
2018-03-15T22:01:17.000Z
pysimplestorageservice/core.py
poteralski/pysimplestorageservice
dfa2075fd43683fcc8326a877f14add0ba042b74
[ "Apache-2.0" ]
null
null
null
pysimplestorageservice/core.py
poteralski/pysimplestorageservice
dfa2075fd43683fcc8326a877f14add0ba042b74
[ "Apache-2.0" ]
null
null
null
import requests from pysimplestorageservice.auth import AuthSigV4
36.262295
122
0.624322
14b007def33bf66554be51f1a81715ea60bb4eda
1,834
py
Python
comix-localization/util/cam.py
snu-mllab/Co-Mixup
2a7681601ee972892435ae080494a4f0907e595a
[ "MIT" ]
86
2021-02-05T03:13:09.000Z
2022-03-29T03:10:50.000Z
comix-localization/util/cam.py
snu-mllab/Co-Mixup
2a7681601ee972892435ae080494a4f0907e595a
[ "MIT" ]
4
2021-06-01T13:07:06.000Z
2022-02-15T03:08:30.000Z
comix-localization/util/cam.py
snu-mllab/Co-Mixup
2a7681601ee972892435ae080494a4f0907e595a
[ "MIT" ]
7
2021-02-09T01:27:03.000Z
2021-09-01T14:07:40.000Z
# @ based on InfoCAm import torch import torch.nn as nn import torch.nn.functional as F
32.75
121
0.563795
14b10ba84092552ef5446166e93acde05dd54b70
376
py
Python
nbdev_calc/core.py
alinaselega/nbdev_calc
4e7cffb81a08770aea7652c10481e41d5d13a05e
[ "Apache-2.0" ]
null
null
null
nbdev_calc/core.py
alinaselega/nbdev_calc
4e7cffb81a08770aea7652c10481e41d5d13a05e
[ "Apache-2.0" ]
null
null
null
nbdev_calc/core.py
alinaselega/nbdev_calc
4e7cffb81a08770aea7652c10481e41d5d13a05e
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: 00_core.ipynb (unless otherwise specified). __all__ = ['add', 'multiply', 'subtract', 'divide'] # Cell def add(x, y): "Add x and y" return x+y def multiply(x, y): "Multiply x and y" return x*y def subtract(x, y): "Subtract y from x" return add(x, -...
18.8
87
0.609043
14b1918c66d0da69315851c3cb4bcd4986726de8
1,007
py
Python
lib/adxl345/i2c.py
PT1ATE/py-adxl345
a9f7bf979c7ed872d7c9d41ce1655ccce65c4dae
[ "MIT" ]
5
2015-12-09T13:04:59.000Z
2022-02-22T22:34:45.000Z
lib/adxl345/i2c.py
PT1ATE/py-adxl345
a9f7bf979c7ed872d7c9d41ce1655ccce65c4dae
[ "MIT" ]
4
2015-08-03T10:06:55.000Z
2021-12-13T08:35:46.000Z
lib/adxl345/i2c.py
alexismeneses/py-adxl345
dea5f8d2d81681172d59ce4d065aeac2a60db471
[ "MIT" ]
7
2015-07-09T11:28:27.000Z
2020-04-02T06:17:18.000Z
""" PYTHON driver for the ADXL-345 (3 axes accelerometer from Analog Device) This driver use the I2C protocol to communicate (see README) """ import smbus import adxl345.base
27.972222
98
0.724926
14b199baabee60170116a562b11552f831772f22
85
py
Python
modis/discord_modis/modules/hex/_data.py
Benny84/discord-music-bot-modis
f98b15119d6e14475fa662a98158f4adfa2f49c0
[ "Apache-2.0" ]
null
null
null
modis/discord_modis/modules/hex/_data.py
Benny84/discord-music-bot-modis
f98b15119d6e14475fa662a98158f4adfa2f49c0
[ "Apache-2.0" ]
null
null
null
modis/discord_modis/modules/hex/_data.py
Benny84/discord-music-bot-modis
f98b15119d6e14475fa662a98158f4adfa2f49c0
[ "Apache-2.0" ]
null
null
null
modulename = "Hex" creator = "YtnomSnrub" sd_structure = { "activated": True }
10.625
22
0.647059
14b1a89e48cc1b82f7462fdd10feb9e3312df735
39,383
py
Python
conference.py
ppjk1/conference-central
e240c96724d7d55f602dfc099eb20e91a5a16113
[ "Apache-2.0" ]
null
null
null
conference.py
ppjk1/conference-central
e240c96724d7d55f602dfc099eb20e91a5a16113
[ "Apache-2.0" ]
null
null
null
conference.py
ppjk1/conference-central
e240c96724d7d55f602dfc099eb20e91a5a16113
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ conference.py -- Udacity conference server-side Python App Engine API; uses Google Cloud Endpoints $Id: conference.py,v 1.25 2014/05/24 23:42:19 wesc Exp wesc $ created by wesc on 2014 apr 21 """ __author__ = 'wesc+api@google.com (Wesley Chun)' from datetime import datetime from fun...
38.610784
93
0.613209
14b48aef525713da7768110b19cc3d3319051874
456
py
Python
mainApp/Serializers.py
MSNP1381/rayanRooyeshCityBack
f3e8224538949c4951d4b25e1f14e4fcc02fdc53
[ "MIT" ]
null
null
null
mainApp/Serializers.py
MSNP1381/rayanRooyeshCityBack
f3e8224538949c4951d4b25e1f14e4fcc02fdc53
[ "MIT" ]
null
null
null
mainApp/Serializers.py
MSNP1381/rayanRooyeshCityBack
f3e8224538949c4951d4b25e1f14e4fcc02fdc53
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import Transaction,Sections
24
57
0.682018
14b5577ce712817e866c88b60a3629eb615b5945
295
py
Python
jobs/models.py
diegolis/search_job
65b7898d587a61eba008ea1503bf2b3410ac6a98
[ "Apache-2.0" ]
null
null
null
jobs/models.py
diegolis/search_job
65b7898d587a61eba008ea1503bf2b3410ac6a98
[ "Apache-2.0" ]
null
null
null
jobs/models.py
diegolis/search_job
65b7898d587a61eba008ea1503bf2b3410ac6a98
[ "Apache-2.0" ]
null
null
null
from django.db import models
21.071429
45
0.732203
14b72e0da77a993eabb5daf729b46bac8c04e267
4,601
py
Python
v1/data/src/tba/fake_matches.py
avgupta456/statbotics
8847cec161104ec54f4c501653cd4ec558d30379
[ "MIT" ]
14
2020-05-28T21:54:45.000Z
2022-03-17T19:39:23.000Z
v1/data/src/tba/fake_matches.py
avgupta456/statbotics
8847cec161104ec54f4c501653cd4ec558d30379
[ "MIT" ]
59
2020-05-28T21:39:45.000Z
2022-03-25T23:51:39.000Z
data/src/tba/fake_matches.py
statbotics/statbotics
37bb0e3730d5b3aff7b6a5ba6e78ef2eada950bc
[ "MIT" ]
1
2020-07-04T07:30:40.000Z
2020-07-04T07:30:40.000Z
import random from typing import Any, Dict, List
34.593985
88
0.617474
14b79b64d38721de312a5c077f66b0b7cfb2de74
2,160
py
Python
meraki/models/bind_network_model.py
bossypants22/python-sdk-test
37701d62dc18c2abb910eb790ab978913adcaf7b
[ "MIT" ]
37
2019-04-24T14:01:33.000Z
2022-01-28T01:37:21.000Z
meraki/models/bind_network_model.py
ankita66666666/meraki-python-sdk
9894089eb013318243ae48869cc5130eb37f80c0
[ "MIT" ]
10
2019-07-09T16:35:11.000Z
2021-12-07T03:47:53.000Z
meraki/models/bind_network_model.py
ankita66666666/meraki-python-sdk
9894089eb013318243ae48869cc5130eb37f80c0
[ "MIT" ]
17
2019-04-30T23:53:21.000Z
2022-02-07T22:57:44.000Z
# -*- coding: utf-8 -*- """ meraki This file was automatically generated for meraki by APIMATIC v2.0 ( https://apimatic.io ). """
30.857143
95
0.613889
14b88e26055444d53d304f58f8961c840931c2ec
1,571
py
Python
Module_01/ex05/test.py
CristinaFdezBornay/PythonPiscine
143968c2e26f5ddddb5114f3bcdddd0b1f00d153
[ "MIT" ]
1
2021-11-17T10:04:30.000Z
2021-11-17T10:04:30.000Z
Module_01/ex05/test.py
CristinaFdezBornay/PythonPiscine
143968c2e26f5ddddb5114f3bcdddd0b1f00d153
[ "MIT" ]
null
null
null
Module_01/ex05/test.py
CristinaFdezBornay/PythonPiscine
143968c2e26f5ddddb5114f3bcdddd0b1f00d153
[ "MIT" ]
null
null
null
from the_bank import Account, Bank if __name__ == "__main__": bank = Bank() print("==> [Bank] Adding not an account.") bank.add(1) print("\n==> [Bank] Adding a corrupted account.") william_john = Account( 'William John', zip='100-064', value=6460.0, ref='58ba2b9954c...
30.803922
106
0.624443
14b9bdc4cbbfd931a4277fad0693f5a34e24b6d8
5,219
py
Python
third_party_package/RDKit_2015_03_1/rdkit/Chem/Pharm3D/UnitTestPharmacophore.py
Ivy286/cluster_basedfps
7fc216537f570436f008ea567c137d03ba2b6d81
[ "WTFPL" ]
9
2019-04-23T01:46:12.000Z
2021-08-16T07:07:12.000Z
third_party_package/RDKit_2015_03_1/rdkit/Chem/Pharm3D/UnitTestPharmacophore.py
Ivy286/cluster_basedfps
7fc216537f570436f008ea567c137d03ba2b6d81
[ "WTFPL" ]
null
null
null
third_party_package/RDKit_2015_03_1/rdkit/Chem/Pharm3D/UnitTestPharmacophore.py
Ivy286/cluster_basedfps
7fc216537f570436f008ea567c137d03ba2b6d81
[ "WTFPL" ]
5
2016-09-21T03:47:48.000Z
2019-07-30T22:17:35.000Z
# $Id$ # # Copyright (C) 2004-2006 greg Landrum and Rational Discovery LLC # # @@ All Rights Reserved @@ # This file is part of the RDKit. # The contents are covered by the terms of the BSD license # which is included in the file license.txt, found at the root # of the RDKit source tree. # from rdkit import RDC...
38.094891
85
0.68768
14bab6f4282c5f5e761e6c042b014650a31eab5b
3,188
py
Python
latex_pdf.py
patent-python/patent-generator
3b5e5102b04eb13913a49a0c9c42922a80d645a9
[ "MIT" ]
109
2015-01-12T03:23:35.000Z
2022-02-08T22:32:52.000Z
latex_pdf.py
patent-python/patent-generator
3b5e5102b04eb13913a49a0c9c42922a80d645a9
[ "MIT" ]
2
2015-06-02T01:18:12.000Z
2021-05-17T11:45:32.000Z
latex_pdf.py
antiboredom/patent-generator
3b5e5102b04eb13913a49a0c9c42922a80d645a9
[ "MIT" ]
28
2015-01-05T19:45:44.000Z
2022-03-13T23:37:10.000Z
import os import sys import subprocess import shlex from machine import * if __name__ == '__main__': import sys text = open(sys.argv[1],"r").read().decode('ascii', errors='replace') dir_name = sys.argv[2] file_name = sys.argv[3] invention = Invention(text) pdf = pdfCreator(dir_name,file_na...
27.721739
85
0.613551
14bb2152c7cc34c78af05e9bfc3763b3227f2fd5
3,099
py
Python
pynitrokey/nethsm/__init__.py
LennardBoediger/pynitrokey
837855701b4afe99322eadae4c63ad2679cb967a
[ "Apache-2.0", "MIT" ]
null
null
null
pynitrokey/nethsm/__init__.py
LennardBoediger/pynitrokey
837855701b4afe99322eadae4c63ad2679cb967a
[ "Apache-2.0", "MIT" ]
null
null
null
pynitrokey/nethsm/__init__.py
LennardBoediger/pynitrokey
837855701b4afe99322eadae4c63ad2679cb967a
[ "Apache-2.0", "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2021 Nitrokey Developers # # Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or # http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or # http://opensource.org/licenses/MIT>, at your option. This file may not be # copied, modified, or distribute...
28.694444
114
0.621168
14bb4e643ae8b1e0c73b8052db2f70c31a743c1a
43
py
Python
cnn_example/data/__init__.py
4620511/cnn-example
b89b235d68569fac4769f50ee2f49ee16c750f08
[ "MIT" ]
null
null
null
cnn_example/data/__init__.py
4620511/cnn-example
b89b235d68569fac4769f50ee2f49ee16c750f08
[ "MIT" ]
null
null
null
cnn_example/data/__init__.py
4620511/cnn-example
b89b235d68569fac4769f50ee2f49ee16c750f08
[ "MIT" ]
null
null
null
from .data import DataModule # noqa: F401
21.5
42
0.744186
14bc8be324494c94b50dffe3b5b8590dee127599
786
py
Python
chapter07/test_wrappers.py
roiyeho/drl-book
1db635fd508e5b17ef8bfecbe49a79f55503a1f1
[ "MIT" ]
null
null
null
chapter07/test_wrappers.py
roiyeho/drl-book
1db635fd508e5b17ef8bfecbe49a79f55503a1f1
[ "MIT" ]
null
null
null
chapter07/test_wrappers.py
roiyeho/drl-book
1db635fd508e5b17ef8bfecbe49a79f55503a1f1
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import gym from gym.wrappers import atari_preprocessing from atari_wrappers import FireOnResetWrapper, FrameStackWrapper env = gym.make('BreakoutNoFrameskip-v4') print('State space:', env.observation_space) print('Action space:', env.action_space) print(env.get_action_meanings()) #env...
19.170732
64
0.737913
14be54f29ab61e31d4790aa9f64ba8ebe0ee11d8
3,746
py
Python
QWeb/internal/config.py
kivipe/qweb
abf5881aa67412e4a243b13a59528a3c80aa2f52
[ "Apache-2.0" ]
33
2021-03-16T12:26:44.000Z
2022-03-30T17:44:57.000Z
QWeb/internal/config.py
kivipe/qweb
abf5881aa67412e4a243b13a59528a3c80aa2f52
[ "Apache-2.0" ]
24
2021-03-18T16:21:37.000Z
2022-03-24T17:52:14.000Z
QWeb/internal/config.py
kivipe/qweb
abf5881aa67412e4a243b13a59528a3c80aa2f52
[ "Apache-2.0" ]
13
2021-03-24T17:48:50.000Z
2022-02-25T03:22:01.000Z
# -*- coding: utf-8 -*- # -------------------------- # Copyright 2014 - Qentinel Group. # # 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/LICE...
36.368932
100
0.630539
14bf519f8d4cbf0109c2da9a95c781cc980a4cbd
315
py
Python
django/quickstart/migrations/0002_remove_diary_tags.py
juyoungpark718/relay06
6f5f92e23814393dec7ddc6b2405204cd6338e34
[ "MIT" ]
4
2020-07-27T02:50:37.000Z
2021-04-06T09:48:30.000Z
django/quickstart/migrations/0002_remove_diary_tags.py
juyoungpark718/relay06
6f5f92e23814393dec7ddc6b2405204cd6338e34
[ "MIT" ]
2
2020-08-07T07:33:37.000Z
2020-08-16T14:50:56.000Z
django/quickstart/migrations/0002_remove_diary_tags.py
juyoungpark718/relay06
6f5f92e23814393dec7ddc6b2405204cd6338e34
[ "MIT" ]
11
2020-07-31T08:20:43.000Z
2020-08-21T04:08:29.000Z
# Generated by Django 3.1 on 2020-08-07 09:32 from django.db import migrations
17.5
45
0.577778
1ad20629bcd7999e4a52ce8b6e123bba45f7ebb7
752
py
Python
server/my_util.py
gjyaiya/mysqlmonitor
fd07aec8f75c14d8e8c5208758e786ae4c180993
[ "MIT" ]
1
2016-06-28T02:13:12.000Z
2016-06-28T02:13:12.000Z
server/my_util.py
gjyaiya/mysqlmonitor
fd07aec8f75c14d8e8c5208758e786ae4c180993
[ "MIT" ]
null
null
null
server/my_util.py
gjyaiya/mysqlmonitor
fd07aec8f75c14d8e8c5208758e786ae4c180993
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding:utf-8 import json import time import datetime
23.5
56
0.554521
1ad20e50d6be74dfe95babdda8fc8f12f3b7f6f7
1,419
py
Python
survol/sources_types/enumerate_cgroup.py
rchateauneu/survol
ba66d3ec453b2d9dd3a8dabc6d53f71aa9ba8c78
[ "BSD-3-Clause" ]
9
2017-10-05T23:36:23.000Z
2021-08-09T15:40:03.000Z
survol/sources_types/enumerate_cgroup.py
rchateauneu/survol
ba66d3ec453b2d9dd3a8dabc6d53f71aa9ba8c78
[ "BSD-3-Clause" ]
21
2018-01-02T09:33:03.000Z
2018-08-27T11:09:52.000Z
survol/sources_types/enumerate_cgroup.py
rchateauneu/survol
ba66d3ec453b2d9dd3a8dabc6d53f71aa9ba8c78
[ "BSD-3-Clause" ]
4
2018-06-23T09:05:45.000Z
2021-01-22T15:36:50.000Z
#!/usr/bin/env python """ List of Linux cgroups """ import lib_util import lib_common from sources_types.Linux import cgroup as survol_cgroup # cat /proc/cgroups # #subsys_name hierarchy num_cgroups enabled # cpuset 0 1 1 # cpu 0 1 1 # cpuacct 0 1 1 # blkio 0 ...
26.277778
102
0.608879
1ad23688a8884db208cdf807a9190c4367a75c50
47,490
py
Python
cogs/server.py
Glitchii/Troy
11070e0a6f191d53429e55047ee89ffdba5c5796
[ "MIT" ]
2
2022-03-26T00:45:19.000Z
2022-03-28T18:13:16.000Z
cogs/server.py
Glitchii/Troy
11070e0a6f191d53429e55047ee89ffdba5c5796
[ "MIT" ]
null
null
null
cogs/server.py
Glitchii/Troy
11070e0a6f191d53429e55047ee89ffdba5c5796
[ "MIT" ]
null
null
null
from io import BytesIO as IoBytesIO from colorthief import ColorThief from discord.ext.commands import command, Cog, group from re import search as re_search, sub as re_sub, compile as re_compile from PIL import Image from traceback import format_exc from os import remove as os_rem from datetime import datetime from di...
76.350482
545
0.615603
1ad340225452a636b0710417cdc73209bdacdaf7
40,487
py
Python
python/src/vmaf/mos/subjective_model.py
christosbampis/vmaf
33e8dc675ace44dd1412b318c31eb3378612744c
[ "Apache-2.0" ]
null
null
null
python/src/vmaf/mos/subjective_model.py
christosbampis/vmaf
33e8dc675ace44dd1412b318c31eb3378612744c
[ "Apache-2.0" ]
1
2018-09-05T16:33:08.000Z
2018-09-05T16:33:08.000Z
python/src/vmaf/mos/subjective_model.py
christosbampis/vmaf
33e8dc675ace44dd1412b318c31eb3378612744c
[ "Apache-2.0" ]
2
2018-09-05T03:59:46.000Z
2018-09-18T03:57:52.000Z
from abc import ABCMeta, abstractmethod import sys import numpy as np from scipy import linalg from scipy import stats import pandas as pd from vmaf.core.mixin import TypeVersionEnabled from vmaf.tools.misc import import_python_file, indices from vmaf.mos.dataset_reader import RawDatasetReader __copyright__ = "Copyr...
43.58127
159
0.58073
1ad3fcee088889246860a4fbec72d01b0688a10d
10,766
py
Python
tests/payoff_calculator_test.py
phillipgreenii/loan_payoff_tools
4ffb8a83f7fe6bf7eb37eb7165b3959422d3a515
[ "MIT" ]
null
null
null
tests/payoff_calculator_test.py
phillipgreenii/loan_payoff_tools
4ffb8a83f7fe6bf7eb37eb7165b3959422d3a515
[ "MIT" ]
3
2015-05-03T02:16:49.000Z
2015-05-08T21:25:01.000Z
tests/payoff_calculator_test.py
phillipgreenii/loan_payoff_tools
4ffb8a83f7fe6bf7eb37eb7165b3959422d3a515
[ "MIT" ]
null
null
null
''' loan_payoff_tools: Test module. Meant for use with py.test. Write each test as a function named test_<something>. Read more here: http://pytest.org/ Copyright 2014, Phillip Green II Licensed under MIT ''' import unittest from datetime import date from loan_payoff_tools.payment_manager import Account from loan_p...
59.480663
185
0.606911
1ad4887310112ec9d93c98470773aaa026cdeeb0
14,015
py
Python
pystac/validation/schema_uri_map.py
schwehr/pystac
c2b7e0e8010931ec7dde3cc21b9f4955cd1f0706
[ "Apache-2.0" ]
null
null
null
pystac/validation/schema_uri_map.py
schwehr/pystac
c2b7e0e8010931ec7dde3cc21b9f4955cd1f0706
[ "Apache-2.0" ]
null
null
null
pystac/validation/schema_uri_map.py
schwehr/pystac
c2b7e0e8010931ec7dde3cc21b9f4955cd1f0706
[ "Apache-2.0" ]
null
null
null
from abc import ABC, abstractmethod from functools import lru_cache from pystac.serialization.identify import OldExtensionShortIDs, STACVersionID from typing import Any, Callable, Dict, List, Optional, Tuple import pystac from pystac.serialization import STACVersionRange from pystac.stac_object import STACObjectType ...
38.71547
88
0.53086
1ad5e7efb51c44e87712dae513359c781ede674e
4,339
py
Python
Python/mhd_utils.py
matthew-brett/diffusion_mri
a7ff1e2a7b3e43e419b8040a48dcda9c361ecf42
[ "MIT" ]
4
2017-04-13T16:29:49.000Z
2021-08-14T09:52:25.000Z
Python/mhd_utils.py
matthew-brett/diffusion_mri
a7ff1e2a7b3e43e419b8040a48dcda9c361ecf42
[ "MIT" ]
1
2019-03-28T11:29:39.000Z
2019-03-28T15:47:08.000Z
Python/mhd_utils.py
matthew-brett/diffusion_mri
a7ff1e2a7b3e43e419b8040a48dcda9c361ecf42
[ "MIT" ]
7
2016-04-18T11:03:45.000Z
2021-01-12T06:04:57.000Z
#!/usr/bin/env python #coding=utf-8 #====================================================================== #Program: Diffusion Weighted MRI Reconstruction #Module: $RCSfile: mhd_utils.py,v $ #Language: Python #Author: $Author: bjian $ #Date: $Date: 2008/10/27 05:55:55 $ #Version: $Revision: 1...
33.376923
107
0.596912
1ad7f23489c3729dcdae18cbb0a46ecb9685ee61
2,454
py
Python
tracking/tracking.py
lovishchopra/ITRI-Car-Accident
96a1ffa25eacfb2885ea1fa0852a91c8bb5ec95d
[ "MIT" ]
null
null
null
tracking/tracking.py
lovishchopra/ITRI-Car-Accident
96a1ffa25eacfb2885ea1fa0852a91c8bb5ec95d
[ "MIT" ]
null
null
null
tracking/tracking.py
lovishchopra/ITRI-Car-Accident
96a1ffa25eacfb2885ea1fa0852a91c8bb5ec95d
[ "MIT" ]
null
null
null
import StringIO as io import json import time # data = '{"filename":"results/result_00000002.jpg","tag":[{"person":32,"left":373,"right":515,"top":81,"bot":388},{"person":31,"left":439,"right":556,"top":65,"bot":384}]}' # data = '{"filename":"results/result_00000056.jpg","tag":[{"car":28,"left":370,"right":719,"top":3...
20.974359
173
0.608802
1ad8843aee0e7aba85c685628079d06bf297c82d
2,064
py
Python
src/leetcode_384_shuffle_an_array.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
null
null
null
src/leetcode_384_shuffle_an_array.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
null
null
null
src/leetcode_384_shuffle_an_array.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
null
null
null
# @l2g 384 python3 # [384] Shuffle an Array # Difficulty: Medium # https://leetcode.com/problems/shuffle-an-array # # Given an integer array nums,design an algorithm to randomly shuffle the array. # All permutations of the array should be equally likely as a result of the shuffling. # Implement the Solution class: # # ...
27.52
102
0.630814
1ad9b64d65098701b1bcba36c3d7d451c75d6db9
10,259
py
Python
src/support/gan_model.py
nipdep/STGAN
c72ba6cb9d23d33accc0cfa1958a2005db3ed490
[ "MIT" ]
null
null
null
src/support/gan_model.py
nipdep/STGAN
c72ba6cb9d23d33accc0cfa1958a2005db3ed490
[ "MIT" ]
null
null
null
src/support/gan_model.py
nipdep/STGAN
c72ba6cb9d23d33accc0cfa1958a2005db3ed490
[ "MIT" ]
null
null
null
# To add a new cell, type '# %%' # To add a new markdown cell, type '# %% [markdown]' # %% import time import random import tensorflow as tf import numpy as np from numpy import load from numpy import zeros from numpy import ones from numpy.random import randint from tensorflow.keras.optimizers import Adam from tensorf...
36.250883
164
0.699678
1adac1d218c18f6ac227bb196bd7e184f91ab6fe
4,673
py
Python
ssis/views/courses/routes.py
edenroseFR/Student-Information-System-Web-based-
3553dc33defdcade0f207e200efbeceec0b46a2a
[ "MIT" ]
null
null
null
ssis/views/courses/routes.py
edenroseFR/Student-Information-System-Web-based-
3553dc33defdcade0f207e200efbeceec0b46a2a
[ "MIT" ]
6
2022-03-09T22:32:52.000Z
2022-03-31T22:32:16.000Z
ssis/views/courses/routes.py
edenroseFR/Student-Information-System-Web-based-
3553dc33defdcade0f207e200efbeceec0b46a2a
[ "MIT" ]
1
2022-01-30T21:58:16.000Z
2022-01-30T21:58:16.000Z
from flask import request, render_template, redirect, flash from flask.helpers import url_for from ssis.models.student import Student from ssis.models.course import Course from ssis.models.college import College from .utils import add_course_to_db, update_course_record, check_page_limit, check_limit_validity from . imp...
34.614815
97
0.61438
1adb4971d58f79dc1378fa4f67ca664d6713962a
1,372
py
Python
src/ml-auto-sklearn/run.py
altermarkive/numerai-experiments
dd4d0b18b64d948a875cba9fd16b962ad9fe0a26
[ "MIT" ]
12
2019-12-05T08:43:07.000Z
2022-01-15T03:21:09.000Z
src/ml-auto-sklearn/run.py
altermarkive/Resurrecting-JimFleming-Numerai
dd4d0b18b64d948a875cba9fd16b962ad9fe0a26
[ "MIT" ]
null
null
null
src/ml-auto-sklearn/run.py
altermarkive/Resurrecting-JimFleming-Numerai
dd4d0b18b64d948a875cba9fd16b962ad9fe0a26
[ "MIT" ]
6
2019-12-12T08:12:04.000Z
2021-06-05T14:13:08.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import autosklearn.classification import numpy import os import pandas import sys if __name__ == '__main__': main()
28.583333
77
0.686589
1adcc088bac0e7b59ef81dc46b24b99aee540c57
3,280
py
Python
basicts/runners/DCRNN_runner.py
zezhishao/BasicTS
584ca6f8215a6fc9976789b600996934ba2d499e
[ "Apache-2.0" ]
3
2022-02-22T12:50:08.000Z
2022-03-13T03:38:46.000Z
basicts/runners/DCRNN_runner.py
zezhishao/BasicTS
584ca6f8215a6fc9976789b600996934ba2d499e
[ "Apache-2.0" ]
null
null
null
basicts/runners/DCRNN_runner.py
zezhishao/BasicTS
584ca6f8215a6fc9976789b600996934ba2d499e
[ "Apache-2.0" ]
null
null
null
import torch from basicts.runners.base_traffic_runner import TrafficRunner
41
145
0.597256
1adce0caad79b2df76b7128ac2a5ec6c6011e8fe
17,143
py
Python
genens/gp/types.py
gabrielasuchopar/genens
228e2776897b0cfc6f96fb625346d28e7e1cf5fe
[ "MIT" ]
null
null
null
genens/gp/types.py
gabrielasuchopar/genens
228e2776897b0cfc6f96fb625346d28e7e1cf5fe
[ "MIT" ]
null
null
null
genens/gp/types.py
gabrielasuchopar/genens
228e2776897b0cfc6f96fb625346d28e7e1cf5fe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ This module defines the structure of GP primitives. The GP primitives are nodes with typed edges (parent input and child output types must match) and variable arity (for a given type, its final arity can be chosen during the evolution process). A ``GpPrimitive`` is a node whose types, ari...
34.013889
116
0.605903
1adde29b2e90eb0fb93c6d9f7876da65ee32a793
2,408
py
Python
pca-server/src/pca/pca-aws-sf-wait-for-transcribe-notification.py
Harsh15021992/amazon-transcribe-post-call-analytics
d85aaf6f52394a96f3935cfc63e5bbe4f6e7a2ef
[ "Apache-2.0" ]
8
2021-12-18T17:10:33.000Z
2022-03-25T14:16:38.000Z
pca-server/src/pca/pca-aws-sf-wait-for-transcribe-notification.py
Harsh15021992/amazon-transcribe-post-call-analytics
d85aaf6f52394a96f3935cfc63e5bbe4f6e7a2ef
[ "Apache-2.0" ]
6
2022-02-28T01:29:25.000Z
2022-03-22T09:09:17.000Z
pca-server/src/pca/pca-aws-sf-wait-for-transcribe-notification.py
Harsh15021992/amazon-transcribe-post-call-analytics
d85aaf6f52394a96f3935cfc63e5bbe4f6e7a2ef
[ "Apache-2.0" ]
4
2021-12-30T00:13:24.000Z
2022-03-23T13:12:47.000Z
""" This python function is part of the main processing workflow. It is called when a Transcribe job is started, and it will create an entry in a DynamoDB table that holds some job information and the Step Functions task token. The Step Function should then wait for another task to read this task token from DynamoDB ...
39.47541
117
0.624169
1ade2ab84fea82b9e5678e3da0ae759e264da506
7,388
py
Python
facebook_business/adobjects/nativeoffer.py
enricapq/facebook-python-business-sdk
49c569ac5cf812b1bcb533520c35896b0436fa4c
[ "CNRI-Python" ]
null
null
null
facebook_business/adobjects/nativeoffer.py
enricapq/facebook-python-business-sdk
49c569ac5cf812b1bcb533520c35896b0436fa4c
[ "CNRI-Python" ]
null
null
null
facebook_business/adobjects/nativeoffer.py
enricapq/facebook-python-business-sdk
49c569ac5cf812b1bcb533520c35896b0436fa4c
[ "CNRI-Python" ]
1
2020-07-27T16:34:58.000Z
2020-07-27T16:34:58.000Z
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
36.756219
120
0.634407
1ade68f905e2e6d0e18b008d110d6b4f19c4319b
6,503
py
Python
test/hvd_allreduce.py
IST-DASLab/horovod
d2611353c33b299f04e47fae0de741702de3130e
[ "Apache-2.0" ]
null
null
null
test/hvd_allreduce.py
IST-DASLab/horovod
d2611353c33b299f04e47fae0de741702de3130e
[ "Apache-2.0" ]
null
null
null
test/hvd_allreduce.py
IST-DASLab/horovod
d2611353c33b299f04e47fae0de741702de3130e
[ "Apache-2.0" ]
null
null
null
import argparse import horovod.torch as hvd import pickle import numpy.random as rnd import numpy as np import torch import os arrays = [] def log(msg): if hvd.rank() == 0: print(msg) parser = argparse.ArgumentParser(description='PyTorch MNIST Example') parser.add_argument("--array-size", type=int, d...
31.721951
123
0.557743
1ae318fc2f53a52ba514b1e0986fa0f2c395b272
6,495
py
Python
accelerator/shell/init.py
drougge/accelerator
f99b2550a84c79cadb032acf0d2d60bccf75bf0d
[ "Apache-2.0" ]
null
null
null
accelerator/shell/init.py
drougge/accelerator
f99b2550a84c79cadb032acf0d2d60bccf75bf0d
[ "Apache-2.0" ]
null
null
null
accelerator/shell/init.py
drougge/accelerator
f99b2550a84c79cadb032acf0d2d60bccf75bf0d
[ "Apache-2.0" ]
null
null
null
############################################################################ # # # Copyright (c) 2019-2020 Carl Drougge # # Modifications copyright (c) 2020 Anders Berkeman # # ...
36.284916
153
0.646497
1ae3f2b04641e41b7f95d3b94460b572e616223c
2,115
py
Python
tensorflow_probability/python/math/psd_kernels/pointwise_exponential_test.py
jakee417/probability-1
ae7117f37ac441bc7a888167ea23e5e620c5bcde
[ "Apache-2.0" ]
3,670
2018-02-14T03:29:40.000Z
2022-03-30T01:19:52.000Z
tensorflow_probability/python/math/psd_kernels/pointwise_exponential_test.py
jakee417/probability-1
ae7117f37ac441bc7a888167ea23e5e620c5bcde
[ "Apache-2.0" ]
1,395
2018-02-24T02:28:49.000Z
2022-03-31T16:12:06.000Z
tensorflow_probability/python/math/psd_kernels/pointwise_exponential_test.py
jakee417/probability-1
ae7117f37ac441bc7a888167ea23e5e620c5bcde
[ "Apache-2.0" ]
1,135
2018-02-14T01:51:10.000Z
2022-03-28T02:24:11.000Z
# Copyright 2021 The TensorFlow Probability 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 applicable law o...
38.454545
78
0.715839
1ae49887b3b0718efa0664bc88caa2cfb2fd87dd
263
py
Python
baekjoon/1934.py
jiyeoun/PS
855ec59fe7844daf102fde713eab48c88cbc5419
[ "MIT" ]
null
null
null
baekjoon/1934.py
jiyeoun/PS
855ec59fe7844daf102fde713eab48c88cbc5419
[ "MIT" ]
null
null
null
baekjoon/1934.py
jiyeoun/PS
855ec59fe7844daf102fde713eab48c88cbc5419
[ "MIT" ]
null
null
null
n=int(input()) for i in range(n): a,b=input().split() a=int(a) b=int(b) print(lcm(a, b))
13.842105
26
0.422053
1ae5359c35bc853bc2b8c175bdb8b704584aea2d
5,712
py
Python
scripts/support/mirnas/compare-rfam-mirbase.py
Rfam/rfam-production
36f3963380da2a08e9cf73c951691c4e95738ac4
[ "Apache-2.0" ]
7
2016-06-17T09:21:11.000Z
2021-10-13T20:25:06.000Z
scripts/support/mirnas/compare-rfam-mirbase.py
Rfam/rfam-production
36f3963380da2a08e9cf73c951691c4e95738ac4
[ "Apache-2.0" ]
82
2016-04-08T10:51:32.000Z
2022-03-11T13:49:18.000Z
scripts/support/mirnas/compare-rfam-mirbase.py
Rfam/rfam-production
36f3963380da2a08e9cf73c951691c4e95738ac4
[ "Apache-2.0" ]
3
2019-09-01T09:46:35.000Z
2021-11-29T08:01:58.000Z
""" Generate the data used in the microRNA dashboard for the following tables: - Rfam miRNAs without matches - Rfam non-miRNA families matching miRBase Requires a mapping between all sequences from miRBase and the current Rfam models. The mapping can be generated as follows: wget https://ftp.ebi.ac.uk/pub/databases/R...
36.851613
172
0.664041
1ae55991642c5bb4bf90b84a7c11f19e1ceb40a1
739
py
Python
source/heihei.py
HankYe/Solution-to-opioid-crisis
bdf6d6be458cd4bbebaa5a00d132c75dc166198d
[ "Apache-2.0" ]
null
null
null
source/heihei.py
HankYe/Solution-to-opioid-crisis
bdf6d6be458cd4bbebaa5a00d132c75dc166198d
[ "Apache-2.0" ]
null
null
null
source/heihei.py
HankYe/Solution-to-opioid-crisis
bdf6d6be458cd4bbebaa5a00d132c75dc166198d
[ "Apache-2.0" ]
null
null
null
from matplotlib import pyplot time_list = [2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017] time_list_append = [2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022] predict = [10453, 10655.758342548274, 10726.259909546003, 10651.26868581213, 10399.137368507683, 9965.11495705042, 9558.34124532155...
56.846154
248
0.76184
1ae63296d699c65a0bd047816b0e603a4cff99eb
5,841
py
Python
hplc_analysis.py
furubayashim/hplc-analysis-hitachi
d8f2b594b577032548e860b424f55241bbe72b37
[ "MIT" ]
null
null
null
hplc_analysis.py
furubayashim/hplc-analysis-hitachi
d8f2b594b577032548e860b424f55241bbe72b37
[ "MIT" ]
null
null
null
hplc_analysis.py
furubayashim/hplc-analysis-hitachi
d8f2b594b577032548e860b424f55241bbe72b37
[ "MIT" ]
null
null
null
#!/usr/bin/env python # script to draw PDA chromatogram & spectrum figure using Hitachi HPLC Chromaster stx/ctx files import pandas as pd import numpy as np import glob import os import sys import matplotlib.pyplot as plt # change this if using different user/folder data_dir = "raw/" # can give sample name file as ...
41.721429
349
0.640644
1ae6cabe59971a540b46e4c4a87d2df6445846bf
1,764
py
Python
classic_tetris_project/migrations/0049_auto_20210417_2149.py
professor-l/classic-tetris-project
d171ab40c06b87ee945dce058babf2ed23dd3b88
[ "MIT" ]
17
2019-11-23T12:56:06.000Z
2022-02-05T21:48:00.000Z
classic_tetris_project/migrations/0049_auto_20210417_2149.py
professor-l/classic-tetris-project
d171ab40c06b87ee945dce058babf2ed23dd3b88
[ "MIT" ]
43
2019-10-03T20:16:11.000Z
2022-03-12T00:24:52.000Z
classic_tetris_project/migrations/0049_auto_20210417_2149.py
professor-l/classic-tetris-project
d171ab40c06b87ee945dce058babf2ed23dd3b88
[ "MIT" ]
17
2020-02-09T01:55:01.000Z
2021-11-12T21:16:50.000Z
# Generated by Django 3.1.3 on 2021-04-17 21:49 from django.db import migrations, models import django.db.models.deletion
39.2
169
0.643424
1aeb17134c4d4c2d75b4df148efa60829e65c86b
6,941
py
Python
PopUpKiller.py
debasishm89/OpenXMolar
268654d6665186a5c6725235fde28a8141d4310c
[ "BSD-3-Clause" ]
88
2017-05-12T03:53:28.000Z
2021-11-22T12:29:20.000Z
PopUpKiller.py
debasishm89/OpenXMolar
268654d6665186a5c6725235fde28a8141d4310c
[ "BSD-3-Clause" ]
1
2017-05-23T08:42:47.000Z
2017-09-26T16:02:42.000Z
PopUpKiller.py
debasishm89/OpenXMolar
268654d6665186a5c6725235fde28a8141d4310c
[ "BSD-3-Clause" ]
39
2017-05-12T03:53:30.000Z
2022-01-14T14:18:25.000Z
''' Copyright 2017 Debasish Mandal Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistr...
60.885965
755
0.724247
1aeb67d97f0f649de1b16474a53ed6bd4c5ce0c0
3,445
py
Python
src/pycropml/main.py
brichet/PyCrop2ML
7177996f72a8d95fdbabb772a16f1fd87b1d033e
[ "MIT" ]
5
2020-06-21T18:58:04.000Z
2022-01-29T21:32:28.000Z
src/pycropml/main.py
brichet/PyCrop2ML
7177996f72a8d95fdbabb772a16f1fd87b1d033e
[ "MIT" ]
27
2018-12-04T15:35:44.000Z
2022-03-11T08:25:03.000Z
src/pycropml/main.py
brichet/PyCrop2ML
7177996f72a8d95fdbabb772a16f1fd87b1d033e
[ "MIT" ]
7
2019-04-20T02:25:22.000Z
2021-11-04T07:52:35.000Z
# -*- coding: utf-8 -*- """ Created on Tue Mar 19 22:59:23 2019 @author: pradal """ # coding: utf8 from __future__ import absolute_import from __future__ import print_function import sys import os from optparse import OptionParser from path import Path from pycropml.cyml import transpile_file, transpile_package, t...
24.607143
94
0.615094
1aec96771f903924f129d0d0d74d7863b0884618
188
py
Python
project/__init__.py
carlosasj/gauss-jordan
a5eedf5a175c966f9b402fa4baf8596e9abae369
[ "MIT" ]
null
null
null
project/__init__.py
carlosasj/gauss-jordan
a5eedf5a175c966f9b402fa4baf8596e9abae369
[ "MIT" ]
null
null
null
project/__init__.py
carlosasj/gauss-jordan
a5eedf5a175c966f9b402fa4baf8596e9abae369
[ "MIT" ]
null
null
null
# flake8: noqa from .entrypoint import prompt, do_gauss_jordan from .line import Line from .term import Term from .aux_functions import strip, to_term, iterable_to_matrix, file_to_matrix
26.857143
77
0.819149
1aef95bf283d7fd58b467eb0379f7cc4a2f9650c
1,051
py
Python
Yotube Downloader.py
vishal8888a8/GUI-youtube-downloader
f1454da9534e4f40e84258b9600c0fe82cd0c39f
[ "MIT" ]
null
null
null
Yotube Downloader.py
vishal8888a8/GUI-youtube-downloader
f1454da9534e4f40e84258b9600c0fe82cd0c39f
[ "MIT" ]
1
2021-10-01T07:14:36.000Z
2021-10-01T07:14:36.000Z
Yotube Downloader.py
vishal8888a8/GUI-youtube-downloader
f1454da9534e4f40e84258b9600c0fe82cd0c39f
[ "MIT" ]
null
null
null
from pytube import YouTube from tkinter import * #main download part #getting the link as string #window properties window = Tk() window.geometry("573x400") window.title("YouTube Downloader") window.configure(background="#e0db31") #logo set-up logo = PhotoImage(file="logo.png") l1 = Label(window,im...
23.355556
81
0.687916
1af162710ea23264c12a781050d3e701f3748534
49
py
Python
teste.py
Lnogue/pacman_puc
8f5987300dbe308e72d3d8393f7c3a10c787d8c6
[ "Apache-2.0" ]
null
null
null
teste.py
Lnogue/pacman_puc
8f5987300dbe308e72d3d8393f7c3a10c787d8c6
[ "Apache-2.0" ]
null
null
null
teste.py
Lnogue/pacman_puc
8f5987300dbe308e72d3d8393f7c3a10c787d8c6
[ "Apache-2.0" ]
null
null
null
print("testando") a = 2+2 b = 5 * 8 print (b-a)
8.166667
17
0.530612
1af1691e92bb7d127867247d896d5826bd54d447
3,583
py
Python
tarn/config.py
neuro-ml/tarn
07bf61d5ebec69cd5f44ef4766b774769281613f
[ "Apache-2.0" ]
null
null
null
tarn/config.py
neuro-ml/tarn
07bf61d5ebec69cd5f44ef4766b774769281613f
[ "Apache-2.0" ]
null
null
null
tarn/config.py
neuro-ml/tarn
07bf61d5ebec69cd5f44ef4766b774769281613f
[ "Apache-2.0" ]
null
null
null
import hashlib from functools import partial from pathlib import Path from typing import Union, Dict, Any, Tuple, Sequence import humanfriendly from pydantic import BaseModel, Extra, validator, root_validator from yaml import safe_load, safe_dump from .tools import Locker, DummyLocker, SizeTracker, DummySize, UsageTr...
26.738806
116
0.640246
1af28adf5e0279198bbb4dfd5d10357dd6366699
693
py
Python
CTF/home.py
mark0519/CTFplatform
5f9bc555cdc0e07f9ba31165a44b206e1a2bd915
[ "MIT" ]
9
2021-09-26T04:04:52.000Z
2022-03-30T16:37:38.000Z
CTF/home.py
mark0519/CTFplatform
5f9bc555cdc0e07f9ba31165a44b206e1a2bd915
[ "MIT" ]
null
null
null
CTF/home.py
mark0519/CTFplatform
5f9bc555cdc0e07f9ba31165a44b206e1a2bd915
[ "MIT" ]
null
null
null
from flask import ( Blueprint, flash, g, redirect, render_template, request, url_for,session ) from werkzeug.exceptions import abort from CTF import login from CTF.models import user bp = Blueprint('home', __name__)
25.666667
110
0.598846
1af37e5031f27006259d50bd37911e3e99b40d74
771
py
Python
nest_py/knoweng/data_types/public_gene_sets.py
KnowEnG/platform
7356fabf5e2db4171ef1f910514436b69ecaa701
[ "MIT" ]
2
2020-02-12T22:20:51.000Z
2020-07-31T03:19:51.000Z
nest_py/knoweng/data_types/public_gene_sets.py
KnowEnG/platform
7356fabf5e2db4171ef1f910514436b69ecaa701
[ "MIT" ]
1
2021-06-02T00:29:02.000Z
2021-06-02T00:29:02.000Z
nest_py/knoweng/data_types/public_gene_sets.py
KnowEnG/platform
7356fabf5e2db4171ef1f910514436b69ecaa701
[ "MIT" ]
1
2018-01-03T22:56:27.000Z
2018-01-03T22:56:27.000Z
""" A collection of public gene sets. """ from nest_py.core.data_types.tablelike_schema import TablelikeSchema COLLECTION_NAME = 'public_gene_sets'
33.521739
72
0.787289
1af5bda8e49289017e6590164cdb0fa51ea9e014
690
py
Python
src/atcoder/abc126/f/sol_0.py
kagemeka/competitive-programming
c70fe481bcd518f507b885fc9234691d8ce63171
[ "MIT" ]
1
2021-07-11T03:20:10.000Z
2021-07-11T03:20:10.000Z
src/atcoder/abc126/f/sol_0.py
kagemeka/competitive-programming
c70fe481bcd518f507b885fc9234691d8ce63171
[ "MIT" ]
39
2021-07-10T05:21:09.000Z
2021-12-15T06:10:12.000Z
src/atcoder/abc126/f/sol_0.py
kagemeka/competitive-programming
c70fe481bcd518f507b885fc9234691d8ce63171
[ "MIT" ]
null
null
null
r"""Note. \forall{n \le 2}\ \xor_{i=0}^{2^n-1}{i} = 0 \xor_{0 \le i \lt 2^n, i \neq k (0 \le k \lt 2^n)}{i} = k """ import typing import sys # import numpy as np # import numba as nb main()
18.157895
57
0.417391
1af64cc7d2783559a1fcbf8b02817ebd1b1093f4
572
py
Python
solutions/21.py
pacokwon/leetcode
37c943d371c106d1e6f24e065700e5edd1c3f9f9
[ "MIT" ]
2
2022-01-18T08:57:13.000Z
2022-01-18T15:49:06.000Z
solutions/21.py
pacokwon/leetcode
37c943d371c106d1e6f24e065700e5edd1c3f9f9
[ "MIT" ]
null
null
null
solutions/21.py
pacokwon/leetcode
37c943d371c106d1e6f24e065700e5edd1c3f9f9
[ "MIT" ]
null
null
null
# Merge Two Sorted Lists # Definition for singly-linked list.
26
77
0.611888
1af6926099c1d7d07976357c858e6720fbdd0e0b
565
py
Python
server/utils/cors.py
amirdib/dapp_dashboard
e3f556b20ea2d866300e7501f8c720dc0eb56f4b
[ "MIT" ]
null
null
null
server/utils/cors.py
amirdib/dapp_dashboard
e3f556b20ea2d866300e7501f8c720dc0eb56f4b
[ "MIT" ]
null
null
null
server/utils/cors.py
amirdib/dapp_dashboard
e3f556b20ea2d866300e7501f8c720dc0eb56f4b
[ "MIT" ]
null
null
null
from bottle import response, request
35.3125
121
0.654867
1af6c73c4393c2fe75719524db1ca5b86014c72d
2,367
py
Python
TerminalStory/Jack.py
TomlinsonJ03/4006CEM-Mini-Project
ac2ebcfa5793475d7bfb074034b5aa23cfd1858e
[ "CC0-1.0" ]
null
null
null
TerminalStory/Jack.py
TomlinsonJ03/4006CEM-Mini-Project
ac2ebcfa5793475d7bfb074034b5aa23cfd1858e
[ "CC0-1.0" ]
null
null
null
TerminalStory/Jack.py
TomlinsonJ03/4006CEM-Mini-Project
ac2ebcfa5793475d7bfb074034b5aa23cfd1858e
[ "CC0-1.0" ]
null
null
null
# Entering the Basement # Unplug the robot # Let the robot suffer
62.289474
167
0.709759
1af76e4e7a0a82e41649df04479da4599f2c15bd
1,221
py
Python
nlp/document1.py
innaiivanova/chatbot
03ed98dfc24b36620db96094e8970a48010a9379
[ "MIT" ]
null
null
null
nlp/document1.py
innaiivanova/chatbot
03ed98dfc24b36620db96094e8970a48010a9379
[ "MIT" ]
null
null
null
nlp/document1.py
innaiivanova/chatbot
03ed98dfc24b36620db96094e8970a48010a9379
[ "MIT" ]
null
null
null
# Codecademy's training document works with Markov_chains.py # Inna I. Ivanova training_doc1 = """ "Like A Virgin" Madonna Lyrics I made it through the wilderness Somehow I made it through Didn't know how lost I was until I found you I was beat, incomplete, I'd been had I was sad and blue, but you made me feel Yeah,...
23.037736
60
0.758395
1af8dccc6477e942a760e2ea57872e651c435eaf
6,750
py
Python
entities/views.py
gve-sw/UserFeedbackSampleWebexTeamsBot
01f62826a559cb47a6417bd677ab874e16bd41de
[ "RSA-MD" ]
1
2021-08-05T21:51:03.000Z
2021-08-05T21:51:03.000Z
entities/views.py
gve-sw/UserFeedbackSampleWebexTeamsBot
01f62826a559cb47a6417bd677ab874e16bd41de
[ "RSA-MD" ]
6
2020-06-15T21:10:38.000Z
2021-06-04T23:26:58.000Z
entities/views.py
gve-sw/UserFeedbackSampleWebexTeamsBot
01f62826a559cb47a6417bd677ab874e16bd41de
[ "RSA-MD" ]
null
null
null
import tempfile import xlsxwriter import re from django.shortcuts import render, redirect, get_object_or_404 from django.views import View from django.conf import settings from django.http import HttpResponse from django.contrib import messages from .models import QuestionSet, Question, ReplySet, Reply, Receiver from...
29.220779
126
0.588
1afa1cafd42c2fcb955da6a363de7724c6371157
1,494
py
Python
test/test.py
Nix-code/Onsite-Health-Diagnostic-OHD-
70e6e401029981276479b4186b0ed8cb1fb703ac
[ "MIT" ]
2
2022-02-03T05:50:32.000Z
2022-03-23T03:15:40.000Z
test/test.py
Nix-code/Onsite-Health-Diagnostic-OHD-
70e6e401029981276479b4186b0ed8cb1fb703ac
[ "MIT" ]
null
null
null
test/test.py
Nix-code/Onsite-Health-Diagnostic-OHD-
70e6e401029981276479b4186b0ed8cb1fb703ac
[ "MIT" ]
1
2022-02-03T07:14:41.000Z
2022-02-03T07:14:41.000Z
from main import app import unittest import pytest if __name__=="__main__": unittest.main()
32.478261
69
0.670683
1afa4f92d9ead6a0daa884c3ac378f4d63bb1ab1
4,256
py
Python
utils/pyart.py
terry97-guel/POENet-MultiTracking
f5a1bf99749c62cdbce50f1e2997a2b3cf32e749
[ "MIT" ]
null
null
null
utils/pyart.py
terry97-guel/POENet-MultiTracking
f5a1bf99749c62cdbce50f1e2997a2b3cf32e749
[ "MIT" ]
null
null
null
utils/pyart.py
terry97-guel/POENet-MultiTracking
f5a1bf99749c62cdbce50f1e2997a2b3cf32e749
[ "MIT" ]
null
null
null
import torch # def expm(vector): # if vector.shape[0] == 6: # return to_SE3(vector) # if vector.shape[0] == 4: # return to_SO3(vector)
26.110429
112
0.546523
1afb2889435df1e35545b9d49b108b145645f238
1,903
py
Python
dymos/transcriptions/common/timeseries_output_comp.py
yonghoonlee/dymos
602109eee4a1b061444dd2b45c7b1ed0ac1aa0f4
[ "Apache-2.0" ]
null
null
null
dymos/transcriptions/common/timeseries_output_comp.py
yonghoonlee/dymos
602109eee4a1b061444dd2b45c7b1ed0ac1aa0f4
[ "Apache-2.0" ]
9
2021-05-24T15:14:37.000Z
2021-06-28T21:12:55.000Z
dymos/transcriptions/common/timeseries_output_comp.py
yonghoonlee/dymos
602109eee4a1b061444dd2b45c7b1ed0ac1aa0f4
[ "Apache-2.0" ]
null
null
null
import openmdao.api as om from ...transcriptions.grid_data import GridData from ...options import options as dymos_options
38.836735
99
0.624277
1afb84941b693d8555e01b585defdf5fe070f8ff
7,359
py
Python
facenet/config.py
sMedX/facenet
2a86255bded9da94031488b41250a6cef703e05b
[ "MIT" ]
2
2020-01-11T07:48:23.000Z
2021-05-25T01:25:05.000Z
facenet/config.py
RuslanKosarev/FaceNet
53aad2497982b1543e3a566c621f9f1d98fca58c
[ "MIT" ]
null
null
null
facenet/config.py
RuslanKosarev/FaceNet
53aad2497982b1543e3a566c621f9f1d98fca58c
[ "MIT" ]
2
2021-01-04T21:14:56.000Z
2021-06-30T09:47:48.000Z
# coding: utf-8 __author__ = 'Ruslan N. Kosarev' import sys from pathlib import Path from datetime import datetime from omegaconf import OmegaConf import random import numpy as np import tensorflow as tf from facenet import ioutils # directory for default configs default_config_dir = Path(__file__).parents[0].join...
27.561798
91
0.66259
1afbe1138d8039a8a05a95b59450d11623814fb8
1,861
py
Python
final_plots/dockless_geographic_overlap.py
georgetown-analytics/DC-Bikeshare
9f5a6a3256cff15a29f0dca6e9a9d8098ab2df28
[ "MIT" ]
11
2018-07-01T16:43:05.000Z
2020-07-17T19:08:16.000Z
final_plots/dockless_geographic_overlap.py
noahnewberger/Bikeshare-DC
42676654d103cdaddfb76db76d1eece533251261
[ "MIT" ]
5
2021-02-08T20:21:12.000Z
2021-12-13T19:47:04.000Z
final_plots/dockless_geographic_overlap.py
noahnewberger/Bikeshare-DC
42676654d103cdaddfb76db76d1eece533251261
[ "MIT" ]
5
2018-10-05T19:54:20.000Z
2020-10-27T11:54:09.000Z
from dockless_exploration_graphs import * if __name__ == '__main__': conn = read_only_connect_aws() # Geographic Overlap by Operator Over Time try: os.mkdir('./Load Graphs') except FileExistsError: pass load_path = './Load Graphs/' google_drive_location = '1LRJWj6wLBWvyBJbN93jXA...
38.770833
86
0.554541
1afc08a384a7ee7e3eeae536e4a9148486c80e17
914
py
Python
hpimdm/tree/local_membership.py
pedrofran12/hpim_dm
fe949294b5e75ab544dcd40ff51ceafc1d3b2f0c
[ "MIT" ]
1
2020-02-04T20:59:03.000Z
2020-02-04T20:59:03.000Z
hpimdm/tree/local_membership.py
pedrofran12/hpim_dm
fe949294b5e75ab544dcd40ff51ceafc1d3b2f0c
[ "MIT" ]
3
2020-06-09T16:37:01.000Z
2021-08-30T00:31:12.000Z
hpimdm/tree/local_membership.py
pedrofran12/hpim_dm
fe949294b5e75ab544dcd40ff51ceafc1d3b2f0c
[ "MIT" ]
1
2020-11-23T06:47:46.000Z
2020-11-23T06:47:46.000Z
from abc import ABCMeta, abstractmethod
22.292683
92
0.655361
1afce6c555ebff3d7d4b28bd273f9016e9d8daa2
744
py
Python
test/demo1.py
runawayhorse001/PySparkAudit
a7981bff0d3d8ab4568bbd4c61c57c4b30f74c2f
[ "MIT" ]
7
2019-07-11T02:30:31.000Z
2022-01-27T08:07:22.000Z
test/demo1.py
runawayhorse001/PySparkAudit
a7981bff0d3d8ab4568bbd4c61c57c4b30f74c2f
[ "MIT" ]
null
null
null
test/demo1.py
runawayhorse001/PySparkAudit
a7981bff0d3d8ab4568bbd4c61c57c4b30f74c2f
[ "MIT" ]
6
2020-10-19T08:46:17.000Z
2022-02-09T01:32:38.000Z
from pyspark.sql import SparkSession spark = SparkSession \ .builder \ .appName("Python Spark regression example") \ .config("spark.some.config.option", "some-value") \ .getOrCreate() # import PySpark Audit functions from PySparkAudit import data_types, hist_plot, bar_plot, freq_items,feature_len fro...
25.655172
93
0.735215
1aff15182dcbf6a79732990cf8083b8988bcdd75
2,554
py
Python
setup.py
JarryShaw/ptyng
b15747114ffaf7eeae92f7508fbefc4db4fab11e
[ "PSF-2.0" ]
1
2019-06-27T12:28:25.000Z
2019-06-27T12:28:25.000Z
setup.py
JarryShaw/ptyng
b15747114ffaf7eeae92f7508fbefc4db4fab11e
[ "PSF-2.0" ]
1
2020-05-31T08:52:00.000Z
2020-05-31T08:55:47.000Z
setup.py
JarryShaw/ptyng
b15747114ffaf7eeae92f7508fbefc4db4fab11e
[ "PSF-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.version_info[:2] < (3, 4): import subprocess32 as subprocess else: import subprocess try: import pty # pylint: disabl...
28.696629
83
0.608849
21012dbb9efba5f433744edaaad9dbf69569d85a
9,118
py
Python
mtdata/main.py
thammegowda/mtdata
9064629d8e4dd46cf0f7f793dbc17fd0f770649f
[ "Apache-2.0" ]
81
2020-04-07T02:55:39.000Z
2022-03-30T05:28:58.000Z
mtdata/main.py
thammegowda/mtdata
9064629d8e4dd46cf0f7f793dbc17fd0f770649f
[ "Apache-2.0" ]
77
2020-04-07T19:53:48.000Z
2022-03-22T18:41:08.000Z
mtdata/main.py
thammegowda/mtdata
9064629d8e4dd46cf0f7f793dbc17fd0f770649f
[ "Apache-2.0" ]
6
2020-04-16T22:21:19.000Z
2022-02-07T20:52:15.000Z
#!/usr/bin/env python # # Author: Thamme Gowda [tg (at) isi (dot) edu] # Created: 4/4/20 import argparse from pathlib import Path from collections import defaultdict import mtdata from mtdata import log, __version__, cache_dir as CACHE_DIR, cached_index_file from mtdata.entry import DatasetId, LangPair from mtdata.ut...
46.284264
116
0.641259
21031888ae60afb1eb930da2ee6539160ee0da47
3,767
py
Python
ch6/02-himmelblau.py
mbassale/genetic-algorithms-books
7c2c5f78d715b1b8b345ef4512a9dcfac1889d92
[ "MIT" ]
1
2021-10-14T03:37:07.000Z
2021-10-14T03:37:07.000Z
ch6/02-himmelblau.py
mbassale/genetic-algorithms-books
7c2c5f78d715b1b8b345ef4512a9dcfac1889d92
[ "MIT" ]
null
null
null
ch6/02-himmelblau.py
mbassale/genetic-algorithms-books
7c2c5f78d715b1b8b345ef4512a9dcfac1889d92
[ "MIT" ]
null
null
null
from deap import base from deap import creator from deap import tools import random import numpy as np import matplotlib.pyplot as plt import seaborn as sns import elitism # problem constants DIMENSIONS = 2 BOUND_LOW, BOUND_HIGH = -5.0, 5.0 # Genetic Algorithm Constants POPULATION_SIZE = 300 P_CROSSOVER = 0.9 P_MUT...
31.923729
118
0.70799
21051731e91dcd2bb0223e9b235777805c632b49
20,025
py
Python
utils.py
QuickLearner171998/Retrosynthesis-Reaction-Pathway
78011c94a9bfd9630b0240c966fe358efa183817
[ "MIT" ]
4
2020-06-23T20:47:31.000Z
2022-01-06T07:01:06.000Z
utils.py
QuickLearner171998/Retrosynthesis-Reaction-Pathway
78011c94a9bfd9630b0240c966fe358efa183817
[ "MIT" ]
null
null
null
utils.py
QuickLearner171998/Retrosynthesis-Reaction-Pathway
78011c94a9bfd9630b0240c966fe358efa183817
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from itertools import repeat from onmt.utils.logging import init_logger from onmt.utils.misc import split_corpus from onmt.translate.translator import build_translator import onmt.opts as opts from onmt.utils.parse import ArgumentParser import pandas as pd import numpy as np ...
37.640977
141
0.661923
21056749b82e52d6799015dcaa1da9696577b10d
2,051
py
Python
src/278.first-bad-version.py
wisesky/LeetCode-Practice
65549f72c565d9f11641c86d6cef9c7988805817
[ "MIT" ]
null
null
null
src/278.first-bad-version.py
wisesky/LeetCode-Practice
65549f72c565d9f11641c86d6cef9c7988805817
[ "MIT" ]
null
null
null
src/278.first-bad-version.py
wisesky/LeetCode-Practice
65549f72c565d9f11641c86d6cef9c7988805817
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=278 lang=python3 # # [278] First Bad Version # # https://leetcode.com/problems/first-bad-version/description/ # # algorithms # Easy (38.48%) # Likes: 2518 # Dislikes: 907 # Total Accepted: 609.3K # Total Submissions: 1.6M # Testcase Example: '5\n4' # # You are a product manager and curren...
21.819149
79
0.577279
210693b9ec3b9f3189d565efa51e605d1e16d8d3
3,311
py
Python
src/genie/libs/parser/iosxe/tests/ShowBgpAllDetail/cli/equal/golden_output4_expected.py
jmedina0911/genieparser
2fcd6d3e44891551af4b9d05e2c053218ee25c32
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/tests/ShowBgpAllDetail/cli/equal/golden_output4_expected.py
jmedina0911/genieparser
2fcd6d3e44891551af4b9d05e2c053218ee25c32
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/tests/ShowBgpAllDetail/cli/equal/golden_output4_expected.py
jmedina0911/genieparser
2fcd6d3e44891551af4b9d05e2c053218ee25c32
[ "Apache-2.0" ]
null
null
null
expected_output = { "instance": { "default": { "vrf": { "vrf1": { "address_family": { "": { "default_vrf": "vrf1", "prefixes": { "0.0.0.0/0": { ...
53.403226
111
0.231048
2106ccd5f086c4f96cc3faf88075f464b717e3da
946
py
Python
solidity/python/constants/PrintLn2ScalingFactors.py
dabdevelop/bancorprotocol-contracts
53894df7f4c31828188b11c9a974da6413579799
[ "Apache-2.0" ]
null
null
null
solidity/python/constants/PrintLn2ScalingFactors.py
dabdevelop/bancorprotocol-contracts
53894df7f4c31828188b11c9a974da6413579799
[ "Apache-2.0" ]
null
null
null
solidity/python/constants/PrintLn2ScalingFactors.py
dabdevelop/bancorprotocol-contracts
53894df7f4c31828188b11c9a974da6413579799
[ "Apache-2.0" ]
null
null
null
from decimal import Decimal from decimal import getcontext from decimal import ROUND_FLOOR from decimal import ROUND_CEILING MIN_PRECISION = 32 MAX_PRECISION = 127 getcontext().prec = MAX_PRECISION maxVal = floor(log2(2**(256-MAX_PRECISION)-1)*2**MAX_PRECISION)-1 FLOOR_LN2_EXPONENT = floor(log2((2**256-1)...
23.073171
88
0.735729
21083999666e34e81d53e1e46a462a334f367467
496
py
Python
rest_api/form.py
olaneat/project
7db7ee6a93fa4607ee81cbc4b8c508b4c0850cc0
[ "MIT" ]
null
null
null
rest_api/form.py
olaneat/project
7db7ee6a93fa4607ee81cbc4b8c508b4c0850cc0
[ "MIT" ]
null
null
null
rest_api/form.py
olaneat/project
7db7ee6a93fa4607ee81cbc4b8c508b4c0850cc0
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User
38.153846
90
0.752016
21087231d394eadd113671e581a3ce0916c09477
711
py
Python
checkin.py
PPKunOffical/SAuto_Checkin
0cb4b3dce4483d9754fa13e1cdce613c5aaa861a
[ "MIT" ]
1
2020-07-10T04:34:20.000Z
2020-07-10T04:34:20.000Z
checkin.py
PPKunOffical/SAuto_Checkin
0cb4b3dce4483d9754fa13e1cdce613c5aaa861a
[ "MIT" ]
null
null
null
checkin.py
PPKunOffical/SAuto_Checkin
0cb4b3dce4483d9754fa13e1cdce613c5aaa861a
[ "MIT" ]
null
null
null
from fake_useragent import UserAgent import requests,json accouts=json.loads(open("./accouts.json", mode='r').read()) ua = UserAgent() for i in accouts["sp"]: print("--------"+i["name"]+"----------") checkin_url=i["url"]["cu"] login_url=i["url"]["lu"] login_data={ "email":i["ac"]["u"], "passwd":i["ac"]["p"]...
27.346154
97
0.663854
2109339d104ffd306d701e278e5cda2613de7b4e
5,275
py
Python
tests/other/region_counts_test.py
himanshur-dev/ribopy
78846e4140a7aa7b4dc995f39606577efaaf0831
[ "MIT" ]
4
2020-01-14T01:01:36.000Z
2022-03-21T16:30:24.000Z
tests/other/region_counts_test.py
himanshur-dev/ribopy
78846e4140a7aa7b4dc995f39606577efaaf0831
[ "MIT" ]
9
2019-12-17T20:45:08.000Z
2021-12-15T22:34:06.000Z
tests/other/region_counts_test.py
himanshur-dev/ribopy
78846e4140a7aa7b4dc995f39606577efaaf0831
[ "MIT" ]
3
2019-12-14T17:51:53.000Z
2022-01-12T16:09:45.000Z
# -*- coding: utf-8 -*- import unittest import os from io import StringIO, BytesIO import numpy as np import h5py from ribopy import create from ribopy.core.coverage import find_coverage from ribopy.core.region_counts import get_extended_boundaries,\ find_region_counts fro...
30.316092
73
0.558104
21094a27f6a61b92806b91b96d68de3d54b60d40
18,128
py
Python
python/openapi_client/model/tokenize_response_schema.py
Mastercard/mcapi_oauth_encryption_tutorial
0c24f778ad57a867eefd8aad44466a49f3f89826
[ "MIT" ]
26
2019-08-15T10:48:16.000Z
2022-03-03T21:57:52.000Z
python/openapi_client/model/tokenize_response_schema.py
Mastercard/mcapi_oauth_encryption_tutorial
0c24f778ad57a867eefd8aad44466a49f3f89826
[ "MIT" ]
12
2019-12-30T08:36:00.000Z
2022-03-29T22:37:50.000Z
python/openapi_client/model/tokenize_response_schema.py
Mastercard/mcapi_oauth_encryption_tutorial
0c24f778ad57a867eefd8aad44466a49f3f89826
[ "MIT" ]
36
2019-08-14T14:27:35.000Z
2022-02-13T18:02:36.000Z
""" MDES Digital Enablement API These APIs are designed as RPC style stateless web services where each API endpoint represents an operation to be performed. All request and response payloads are sent in the JSON (JavaScript Object Notation) data-interchange format. Each endpoint in the API specifies the HTTP ...
58.477419
2,146
0.63333
210994d12c7c32a5ccc26983eed7d7e69f44ad3b
523
py
Python
share/smack/svcomp/token_replace.py
Guoanshisb/smack
6fee210b1cb272cb9f596ea53e08935c159ec2f2
[ "MIT" ]
317
2015-01-06T19:12:11.000Z
2022-03-27T06:29:52.000Z
share/smack/svcomp/token_replace.py
Guoanshisb/smack
6fee210b1cb272cb9f596ea53e08935c159ec2f2
[ "MIT" ]
565
2015-01-15T17:16:10.000Z
2022-03-31T23:22:38.000Z
share/smack/svcomp/token_replace.py
Guoanshisb/smack
6fee210b1cb272cb9f596ea53e08935c159ec2f2
[ "MIT" ]
101
2015-02-01T21:01:47.000Z
2022-02-23T10:41:36.000Z
import re
40.230769
118
0.736138
210a16816dfc37d98888318c6069384ca9683011
6,377
py
Python
src/tests/test_entity_recognition.py
hutomadotAI/entity_recogniser
6390c65190b826fb98bc3505f41f3f0ce6837ef9
[ "Apache-2.0" ]
4
2019-06-01T12:28:28.000Z
2020-09-29T21:01:17.000Z
src/tests/test_entity_recognition.py
hutomadotAI/entity_recogniser
6390c65190b826fb98bc3505f41f3f0ce6837ef9
[ "Apache-2.0" ]
null
null
null
src/tests/test_entity_recognition.py
hutomadotAI/entity_recogniser
6390c65190b826fb98bc3505f41f3f0ce6837ef9
[ "Apache-2.0" ]
1
2020-08-19T19:28:55.000Z
2020-08-19T19:28:55.000Z
# flake8: noqa import pytest import hu_entity.spacy_wrapper
31.569307
97
0.708327
210ba069336ddf00cd66106d81ef2dad2dadafb5
5,974
py
Python
src/pg_cluster_monitor/monitor/cluster_monitor.py
treshnikov/pgClusterMonitor
e8fd765f08e5813805af0c23ce32e4cc92b5c862
[ "MIT" ]
1
2020-10-11T17:17:44.000Z
2020-10-11T17:17:44.000Z
src/pg_cluster_monitor/monitor/cluster_monitor.py
treshnikov/pgClusterMonitor
e8fd765f08e5813805af0c23ce32e4cc92b5c862
[ "MIT" ]
null
null
null
src/pg_cluster_monitor/monitor/cluster_monitor.py
treshnikov/pgClusterMonitor
e8fd765f08e5813805af0c23ce32e4cc92b5c862
[ "MIT" ]
1
2020-12-06T19:50:45.000Z
2020-12-06T19:50:45.000Z
import time import logging from cluster.cluster import DbCluster from monitor.master_db_handler import MasterDbHandler from monitor.standby_db_handler import StandbyDbHandler from cluster.cluster_node_role import DbRole from monitor.webserver import WebServer from utils import shell from threading import Lock
51.5
148
0.713927
2110fd52c369e5111db44d65f86e48747bfe58c4
2,012
py
Python
misc.py
geoign/xyppy
8445d361417bfa7bcf3dd818e47fff89f78cfe7f
[ "MIT" ]
null
null
null
misc.py
geoign/xyppy
8445d361417bfa7bcf3dd818e47fff89f78cfe7f
[ "MIT" ]
null
null
null
misc.py
geoign/xyppy
8445d361417bfa7bcf3dd818e47fff89f78cfe7f
[ "MIT" ]
null
null
null
#!/usr/bin/env python #coding: UTF-8 import os, glob, numpy, gdal from math import *
35.298246
75
0.59493
21116b4e5b8b9dd8e7a148b04c22f971517ce437
52
py
Python
{{ cookiecutter.repo_name }}/{{ cookiecutter.repo_name }}/__main__.py
elaynelemos/cookiecutter-data-science
d85e787e000537cb5d0139ab389d145f8b07b6f3
[ "MIT" ]
2
2020-06-23T12:20:59.000Z
2020-10-10T18:49:14.000Z
{{ cookiecutter.repo_name }}/{{ cookiecutter.repo_name }}/__main__.py
elaynelemos/cookiecutter-data-science
d85e787e000537cb5d0139ab389d145f8b07b6f3
[ "MIT" ]
4
2020-06-04T20:38:27.000Z
2020-06-11T11:24:28.000Z
{{ cookiecutter.repo_name }}/{{ cookiecutter.repo_name }}/__main__.py
elaynelemos/cookiecutter-data-science
d85e787e000537cb5d0139ab389d145f8b07b6f3
[ "MIT" ]
3
2020-06-03T16:04:51.000Z
2020-06-23T12:21:06.000Z
"""Your module main code should be placed here. """
17.333333
47
0.692308
2118073a43ee9cd6d977b43ed7ee65bc1f3bd9e9
5,668
py
Python
utils/reddit_scraper.py
azsry/orb
e76f581a16a1587e2c1d6c4a1dffe50291deb706
[ "MIT" ]
3
2019-05-31T03:27:27.000Z
2020-03-24T07:58:19.000Z
utils/reddit_scraper.py
azsry/orb
e76f581a16a1587e2c1d6c4a1dffe50291deb706
[ "MIT" ]
6
2019-05-20T14:13:31.000Z
2021-11-24T02:35:03.000Z
utils/reddit_scraper.py
azsry/orb
e76f581a16a1587e2c1d6c4a1dffe50291deb706
[ "MIT" ]
4
2019-05-15T01:31:13.000Z
2021-03-21T08:33:45.000Z
import discord import mimetypes import requests import random from io import BytesIO from utils import permissions, http from discord.ext.commands import errors def _get_rand_post(json_url): """Parses the JSON data and returns a RedditPost object corresponding to a random post.""" all_post_da...
31.142857
114
0.582216
2119fd917831106f61cbfbbba1c701861b726ca6
143
py
Python
drl/agents/architectures/abstract.py
lucaslingle/pytorch_drl
6b2c1142a36553ce5dcb0a5768767579676d5791
[ "MIT" ]
null
null
null
drl/agents/architectures/abstract.py
lucaslingle/pytorch_drl
6b2c1142a36553ce5dcb0a5768767579676d5791
[ "MIT" ]
null
null
null
drl/agents/architectures/abstract.py
lucaslingle/pytorch_drl
6b2c1142a36553ce5dcb0a5768767579676d5791
[ "MIT" ]
null
null
null
import abc import torch as tc
14.3
56
0.678322
211b0c35bf8dc4c4edb3279e90482b7dda9c860a
10,321
py
Python
loris/app/views/main.py
gucky92/loris
6f54b7d791d473f52690380d71da0acc0352d954
[ "MIT" ]
1
2021-08-01T02:02:54.000Z
2021-08-01T02:02:54.000Z
loris/app/views/main.py
gucky92/loris
6f54b7d791d473f52690380d71da0acc0352d954
[ "MIT" ]
null
null
null
loris/app/views/main.py
gucky92/loris
6f54b7d791d473f52690380d71da0acc0352d954
[ "MIT" ]
3
2020-03-31T10:26:46.000Z
2021-08-02T00:12:54.000Z
"""views """ from flask import render_template, request, flash, url_for, redirect, \ send_from_directory, session from functools import wraps from flask_login import current_user, login_user, login_required, logout_user import datajoint as dj import pandas as pd from loris import config from loris.app.app import ...
28.354396
81
0.590447
211c72da1f964ad54208029bc2d732797cb76a09
11,191
py
Python
stanCode_Projects/break_out_game/breakoutgraphics_extension.py
YuHaoHan/MystanCodeProjects
382631f70392ecc714a21aac89af723ea5a608f0
[ "MIT" ]
null
null
null
stanCode_Projects/break_out_game/breakoutgraphics_extension.py
YuHaoHan/MystanCodeProjects
382631f70392ecc714a21aac89af723ea5a608f0
[ "MIT" ]
null
null
null
stanCode_Projects/break_out_game/breakoutgraphics_extension.py
YuHaoHan/MystanCodeProjects
382631f70392ecc714a21aac89af723ea5a608f0
[ "MIT" ]
null
null
null
""" stanCode Breakout Project Adapted from Eric Roberts's Breakout by Sonja Johnson-Yu, Kylie Jue, Nick Bowman, and Jerry Liao This program set up a class to help construct a breakout game. """ from campy.graphics.gwindow import GWindow from campy.graphics.gobjects import GOval, GRect, GLabel from campy.gui.events.mou...
39.967857
130
0.608793
211c75d1ce345663287e561ba0ec949a24fb73b6
3,078
py
Python
workflow/plugins/gcp_plugins/operators/gcs_to_bq_operator_test.py
isabella232/driblet
2d51de919681deca1ca4cb483996c68587fd9ba8
[ "Apache-2.0" ]
22
2019-07-09T08:57:37.000Z
2021-11-14T18:36:17.000Z
workflow/plugins/gcp_plugins/operators/gcs_to_bq_operator_test.py
isabella232/driblet
2d51de919681deca1ca4cb483996c68587fd9ba8
[ "Apache-2.0" ]
17
2019-12-16T22:01:23.000Z
2022-03-01T23:10:23.000Z
workflow/plugins/gcp_plugins/operators/gcs_to_bq_operator_test.py
isabella232/driblet
2d51de919681deca1ca4cb483996c68587fd9ba8
[ "Apache-2.0" ]
8
2019-11-03T20:11:33.000Z
2021-09-15T10:01:02.000Z
# coding=utf-8 # Copyright 2019 Google LLC # # 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 ...
37.084337
79
0.747888
211e63368c92aebb2c6602a2a765f8e7a0d5b4c1
1,793
py
Python
backend/api/character.py
XoriensLair/XoriensLair.github.io
61675ba296ee747a2a0bd729ec50becb6c903a18
[ "MIT" ]
null
null
null
backend/api/character.py
XoriensLair/XoriensLair.github.io
61675ba296ee747a2a0bd729ec50becb6c903a18
[ "MIT" ]
null
null
null
backend/api/character.py
XoriensLair/XoriensLair.github.io
61675ba296ee747a2a0bd729ec50becb6c903a18
[ "MIT" ]
null
null
null
#from api.avrae.cogs5e.sheets.beyond import getJSON as beyond_getJSON from api.avrae.cogs5e.sheets.gsheet import getJSON_gsheet as gsheet_getJSON import json from api.dndutil import *
28.015625
132
0.54657
2120b3f8447118a6674bbb48a00ea1f3e02d7a04
10,742
py
Python
src/lumigo_tracer/wrappers/http/sync_http_wrappers.py
MattBillock/python_tracer
0bd8ee0400687390820fc0e6c848f04ad71a8a4d
[ "Apache-2.0" ]
null
null
null
src/lumigo_tracer/wrappers/http/sync_http_wrappers.py
MattBillock/python_tracer
0bd8ee0400687390820fc0e6c848f04ad71a8a4d
[ "Apache-2.0" ]
null
null
null
src/lumigo_tracer/wrappers/http/sync_http_wrappers.py
MattBillock/python_tracer
0bd8ee0400687390820fc0e6c848f04ad71a8a4d
[ "Apache-2.0" ]
null
null
null
from datetime import datetime import http.client from io import BytesIO import importlib.util from typing import Optional from lumigo_tracer.libs.wrapt import wrap_function_wrapper from lumigo_tracer.parsing_utils import safe_get_list, recursive_json_join from lumigo_tracer.lumigo_utils import ( get_logger, lu...
41.157088
120
0.668684
2120dd5e1041bd58e6521ba251fa9b98e538fbdf
580
py
Python
UnityPy/Logger.py
hydrargyrum/UnityPy
d119f5a27fa56270630ff40d7762cdf9b4abbac3
[ "MIT" ]
null
null
null
UnityPy/Logger.py
hydrargyrum/UnityPy
d119f5a27fa56270630ff40d7762cdf9b4abbac3
[ "MIT" ]
null
null
null
UnityPy/Logger.py
hydrargyrum/UnityPy
d119f5a27fa56270630ff40d7762cdf9b4abbac3
[ "MIT" ]
null
null
null
import logging import sys from termcolor import colored if sys.platform == 'win32': from colorama import init init() COLORS = { 'DEBUG': 'green', 'INFO': 'yellow', 'WARNING': 'magenta', 'ERROR': 'red', }
16.111111
42
0.687931
21219f971557855728e3021c592f91575bbdcad2
2,692
py
Python
src/main.py
Procope/conceptalign
bc4534257f6dc5c6a50d1d797b3420b6fffc5661
[ "MIT" ]
null
null
null
src/main.py
Procope/conceptalign
bc4534257f6dc5c6a50d1d797b3420b6fffc5661
[ "MIT" ]
null
null
null
src/main.py
Procope/conceptalign
bc4534257f6dc5c6a50d1d797b3420b6fffc5661
[ "MIT" ]
null
null
null
import utils from talkpages import WikiCorpusReader, WikiCorpus from alignment import Alignment TOPIC = 'sports' corpus_reader = WikiCorpusReader('../../data/controversial/') tsv_filename = corpus_reader.json_to_tsv('tokenized_posts/', topic_list=[TOPIC]) # tsv_filename = './tsv/WikiControversial-{}.tsv'.format(TOP...
33.234568
97
0.68685
2121c256c900d4ca0f66bb47e7efbeb7983c6b8e
383
py
Python
python-codes/m2_curso_em_video_estruturas_de_controle/ex065.2.py
lucasportella/learning_repo
a9449dffd489e7e1f1619e3acef86bc2c64f0f14
[ "MIT" ]
null
null
null
python-codes/m2_curso_em_video_estruturas_de_controle/ex065.2.py
lucasportella/learning_repo
a9449dffd489e7e1f1619e3acef86bc2c64f0f14
[ "MIT" ]
null
null
null
python-codes/m2_curso_em_video_estruturas_de_controle/ex065.2.py
lucasportella/learning_repo
a9449dffd489e7e1f1619e3acef86bc2c64f0f14
[ "MIT" ]
null
null
null
n = s = c = mai = men = 0 perg = 's' while perg in 'sSSIMsim': n = int(input('Digite um nmero: ')) c += 1 s += n if men == 0: men = n if n > mai: mai = n if n < men: men = n perg = str(input('Quer continuar? [s/n] ')).strip() m = s/c print('Soma:',s,'\nQuant. nmeros:'...
25.533333
96
0.477807
21239b74bf2b987948e90ce500292ad59e7a5b7b
31
py
Python
test cases/unit/101 relative find program/foo.py
iinuwa/meson
7528c69fcca63889d67c1d6c2463c9e9485585a8
[ "Apache-2.0" ]
4,047
2015-06-18T10:36:48.000Z
2022-03-31T09:47:02.000Z
test cases/unit/101 relative find program/foo.py
iinuwa/meson
7528c69fcca63889d67c1d6c2463c9e9485585a8
[ "Apache-2.0" ]
8,206
2015-06-14T12:20:48.000Z
2022-03-31T22:50:37.000Z
test cases/unit/101 relative find program/foo.py
iinuwa/meson
7528c69fcca63889d67c1d6c2463c9e9485585a8
[ "Apache-2.0" ]
1,489
2015-06-27T04:06:38.000Z
2022-03-29T10:14:48.000Z
#!/usr/bin/env python3 exit(0)
10.333333
22
0.677419
21242d1a4ca530581bd7647266334e5c0492c200
720
py
Python
docs/minimal.py
MCZhi/SMARTS
3ef5650b04ac6fb7145cf4e23d5534d73e0929fc
[ "MIT" ]
2
2021-12-13T12:41:54.000Z
2021-12-16T03:10:24.000Z
docs/minimal.py
MCZhi/SMARTS
3ef5650b04ac6fb7145cf4e23d5534d73e0929fc
[ "MIT" ]
null
null
null
docs/minimal.py
MCZhi/SMARTS
3ef5650b04ac6fb7145cf4e23d5534d73e0929fc
[ "MIT" ]
null
null
null
import gym from smarts.core.agent import Agent from smarts.core.agent_interface import AgentInterface, AgentType from smarts.zoo.agent_spec import AgentSpec agent_id = "Agent-007" agent_spec = AgentSpec( interface=AgentInterface.from_type(AgentType.Laner), agent_params={"agent_function": lambda _: "keep_lane"}...
26.666667
65
0.7375
2125d9e7bdc260d2f5ed081aa7c0f354b75787bd
267
py
Python
trunk/Documentacion/Memoria/trozos-codigo/codigo-9-udp-test-udp-description.py
MGautier/security-sensor
7063b1f095cfa02bb56ef2544d0395dbf155310f
[ "MIT" ]
2
2016-08-15T21:25:40.000Z
2020-06-22T12:25:48.000Z
trunk/Documentacion/Memoria/trozos-codigo/codigo-9-udp-test-udp-description.py
MGautier/security-sensor
7063b1f095cfa02bb56ef2544d0395dbf155310f
[ "MIT" ]
4
2020-06-05T17:32:18.000Z
2021-06-10T19:05:56.000Z
trunk/Documentacion/Memoria/trozos-codigo/codigo-9-udp-test-udp-description.py
MGautier/security-sensor
7063b1f095cfa02bb56ef2544d0395dbf155310f
[ "MIT" ]
null
null
null
def test_udp_description(self): """ Comprobacion de que la descripcion asociada al protocolo coincide Returns: """ port = Ports.objects.get(Tag="ssh") udp = Udp.objects.get(id=port) self.assertEqual(udp.get_description(), "Conexion ssh")
26.7
69
0.681648
21290251f9d28d190e39ac663bce01dc307f5797
15
py
Python
rampage/__init__.py
shreyaspotnis/rampage
e2565aef7ee16ee06523de975e8aa41aca14e3b2
[ "MIT" ]
null
null
null
rampage/__init__.py
shreyaspotnis/rampage
e2565aef7ee16ee06523de975e8aa41aca14e3b2
[ "MIT" ]
null
null
null
rampage/__init__.py
shreyaspotnis/rampage
e2565aef7ee16ee06523de975e8aa41aca14e3b2
[ "MIT" ]
null
null
null
"""Rampage """
5
10
0.466667
212ab4fb98f24f1c674eddbea9f0186ab13f01ff
411
py
Python
examples/example1/publish.py
etpinard/djangofy
9ad1437255df66b1a8e7d5f684e56c3414f47bf5
[ "MIT" ]
1
2020-08-24T21:23:06.000Z
2020-08-24T21:23:06.000Z
examples/example1/publish.py
etpinard/djangofy
9ad1437255df66b1a8e7d5f684e56c3414f47bf5
[ "MIT" ]
null
null
null
examples/example1/publish.py
etpinard/djangofy
9ad1437255df66b1a8e7d5f684e56c3414f47bf5
[ "MIT" ]
null
null
null
import djangofy as dfy import os PATH = 'examples/example1/' PUBLISHED = PATH + 'published/' # path to published files! # Make url and sitemaps files names = [ 'page1', 'page2', 'page3' ] urls = [ 'some-exciting-article', 'another-exciting-article', 'you-must-read-this' ] dfy.make_urls(nam...
17.869565
59
0.6618
212afb2977f9277d2e72cc90fa88c1f4ddad6351
195
py
Python
celeryanalytics/apps.py
Solar-Helix-Independent-Transport/allianceauth-celeryanalytics
15e84bf5c80d760128014812b825b6f2925378cf
[ "MIT" ]
1
2019-12-01T10:29:45.000Z
2019-12-01T10:29:45.000Z
celeryanalytics/apps.py
pvyParts/allianceauth-celeryanalytics
9e7a645d54329d817e1dec50a3738d87a316364e
[ "MIT" ]
2
2022-01-04T16:02:04.000Z
2022-01-05T08:28:49.000Z
celeryanalytics/apps.py
Solar-Helix-Independent-Transport/allianceauth-celeryanalytics
15e84bf5c80d760128014812b825b6f2925378cf
[ "MIT" ]
2
2021-08-12T04:40:35.000Z
2022-01-04T19:24:01.000Z
from django.apps import AppConfig
21.666667
39
0.733333
212c3e1ba940543bbeebd1b123e05e0a9ce76a63
3,575
py
Python
mini/utils.py
FiveEyes/CycleGAN
b36e231bd4148d04ac8d04a0cec3b5c139ee9e40
[ "MIT" ]
null
null
null
mini/utils.py
FiveEyes/CycleGAN
b36e231bd4148d04ac8d04a0cec3b5c139ee9e40
[ "MIT" ]
null
null
null
mini/utils.py
FiveEyes/CycleGAN
b36e231bd4148d04ac8d04a0cec3b5c139ee9e40
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import copy import os import shutil import numpy as np import torch
28.830645
80
0.590769
212d4ef4ab99dec5153f7ecca9ef4a401ae09050
10,315
py
Python
occuspytial/utils.py
zoj613/OccuSpytial
e599d515b5377cb8f7a16af828f39b115a04bc66
[ "BSD-3-Clause" ]
5
2018-11-27T13:41:51.000Z
2021-08-28T23:50:13.000Z
occuspytial/utils.py
zoj613/OccuSpytial
e599d515b5377cb8f7a16af828f39b115a04bc66
[ "BSD-3-Clause" ]
4
2020-08-20T16:58:11.000Z
2021-03-22T20:27:55.000Z
occuspytial/utils.py
zoj613/OccuSpytial
e599d515b5377cb8f7a16af828f39b115a04bc66
[ "BSD-3-Clause" ]
1
2021-02-01T16:17:46.000Z
2021-02-01T16:17:46.000Z
import warnings import numpy as np from scipy.linalg import pinvh def get_generator(random_state=None): """Get an instance of a numpy random number generator object. This instance uses `SFC64 <https://tinyurl.com/y2jtyly7>`_ bitgenerator, which is the fastest numpy currently has to offer as of version 1...
34.966102
79
0.552399
213024992027d02f4dffdced7cd69f769559b582
1,119
py
Python
Easy/409.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
6
2017-09-25T18:05:50.000Z
2019-03-27T00:23:15.000Z
Easy/409.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
1
2017-10-29T12:04:41.000Z
2018-08-16T18:00:37.000Z
Easy/409.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
null
null
null
# ------------------------------ # 409. Longest Palindrome # # Description: # Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters. # This is case sensitive, for example "Aa" is not considered a palindrome here. # Note: # Assum...
24.326087
147
0.526363
21317cb8bb8924de8ccf27e0aedd6bf1a9ff8916
205
py
Python
blacksheep_context/__init__.py
Cdayz/blacksheep-context
3a13e8d3ef99e2343ab65b6de85512caabeaf5e1
[ "MIT" ]
1
2021-06-16T18:58:30.000Z
2021-06-16T18:58:30.000Z
blacksheep_context/__init__.py
Cdayz/blacksheep-context
3a13e8d3ef99e2343ab65b6de85512caabeaf5e1
[ "MIT" ]
17
2021-07-09T04:26:00.000Z
2022-03-28T04:23:19.000Z
blacksheep_context/__init__.py
Cdayz/blacksheep-context
3a13e8d3ef99e2343ab65b6de85512caabeaf5e1
[ "MIT" ]
null
null
null
from contextvars import ContextVar from typing import Any, Dict _request_scope_context_storage: ContextVar[Dict[Any, Any]] = ContextVar("blacksheep_context") from .ctx import context # noqa: F401, E402
29.285714
93
0.8
21330019fbaa4db50ee20e38ed8c5d8aea8c4dbc
313
py
Python
codigo_funcoes_exercicios/exemplo3-saque de saldo.py
rosacarla/100-days-of-python-code
3db9e35f861ce933e952cff2dd3a505dfce1b440
[ "MIT" ]
1
2021-09-26T09:17:36.000Z
2021-09-26T09:17:36.000Z
codigo_funcoes_exercicios/exemplo3-saque de saldo.py
rosacarla/100-days-of-python-code
3db9e35f861ce933e952cff2dd3a505dfce1b440
[ "MIT" ]
null
null
null
codigo_funcoes_exercicios/exemplo3-saque de saldo.py
rosacarla/100-days-of-python-code
3db9e35f861ce933e952cff2dd3a505dfce1b440
[ "MIT" ]
null
null
null
saldo = float(input("Informe o saldo total: ")) qtde = int(input("Quantos saques vc deseja? ")) for c in range(qtde): saldo = sacar(saldo) print("Saldo final: ", saldo)
10.793103
52
0.616613