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
c9a902b8d915c544016edb40caeb6192c52c369d
3,914
py
Python
hightime/util.py
tkrebes/hightime
5312266c808556f11bde1725bc968564180df0f1
[ "MIT" ]
null
null
null
hightime/util.py
tkrebes/hightime
5312266c808556f11bde1725bc968564180df0f1
[ "MIT" ]
null
null
null
hightime/util.py
tkrebes/hightime
5312266c808556f11bde1725bc968564180df0f1
[ "MIT" ]
null
null
null
import sys from .sitimeunit import SITimeUnit isPython3Compat = (sys.version_info.major == 3) isPython36Compat = (isPython3Compat and (sys.version_info.minor >= 6)) def normalize_frac_seconds(a, b): """Returns 3-tuple containing (normalized frac_seconds for a, normalized frac_seconds for b, most precise (sm...
42.543478
80
0.699796
c9a91a5cf9ffb0b7d6c657ce1005cb03ff51c2eb
1,784
py
Python
src/scse/modules/customer/demo_newsvendor_poisson_customer_order.py
bellmast/supply-chain-simulation-environment
af797c1d057e216184727fdd934ebd372d90f4d5
[ "Apache-2.0" ]
26
2021-06-23T00:58:25.000Z
2022-03-29T19:41:18.000Z
src/scse/modules/customer/demo_newsvendor_poisson_customer_order.py
bellmast/supply-chain-simulation-environment
af797c1d057e216184727fdd934ebd372d90f4d5
[ "Apache-2.0" ]
null
null
null
src/scse/modules/customer/demo_newsvendor_poisson_customer_order.py
bellmast/supply-chain-simulation-environment
af797c1d057e216184727fdd934ebd372d90f4d5
[ "Apache-2.0" ]
13
2021-06-23T09:16:38.000Z
2022-03-22T20:01:19.000Z
""" An agent representing the (retail) customer behavior following a Poisson distribution for demand. """ import networkx as nx from scse.api.module import Agent import numpy as np import logging logger = logging.getLogger(__name__)
35.68
98
0.623318
c9ab0ef6affb1be12f6d367b89eb7c08b1fd954b
2,340
py
Python
time_to_get_rewards.py
GJuceviciute/MineRL-2020
095ca6598b6a58120dcc5dcee05c995fc58d540a
[ "MIT" ]
4
2021-03-23T21:12:57.000Z
2021-07-03T16:22:01.000Z
time_to_get_rewards.py
GJuceviciute/MineRL-2020
095ca6598b6a58120dcc5dcee05c995fc58d540a
[ "MIT" ]
null
null
null
time_to_get_rewards.py
GJuceviciute/MineRL-2020
095ca6598b6a58120dcc5dcee05c995fc58d540a
[ "MIT" ]
null
null
null
import numpy as np import os from utils import MINERL_DATA_ROOT, CUMULATIVE_REWARDS import sys import pandas def time_to_rewards(data_set, trajectory): """ Takes a data_set and a trajectory, and returns times (in ticks) to achieve each cumulative reward (from the last cumulative reward, not from...
34.925373
117
0.624359
c9ab86e75a48317e7194cbc265fb079c04b726b2
2,224
py
Python
ooobuild/lo/document/x_view_data_supplier.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/document/x_view_data_supplier.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/document/x_view_data_supplier.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
41.185185
341
0.747752
c9ab9f36bed5aec87ea9576f35b5c24866acecd2
634
py
Python
pyflarum/client/extensions/flarum/FoF_PreventNecrobumping.py
CWKevo/pyflarum
bdf162a6c94e3051843ec7299a4302054927498a
[ "MIT" ]
9
2021-06-23T21:26:29.000Z
2021-11-16T13:25:34.000Z
pyflarum/client/extensions/flarum/FoF_PreventNecrobumping.py
CWKevo/pyflarum
bdf162a6c94e3051843ec7299a4302054927498a
[ "MIT" ]
3
2021-09-11T00:08:14.000Z
2022-02-07T15:34:27.000Z
pyflarum/client/extensions/flarum/FoF_PreventNecrobumping.py
CWKevo/pyFlarum
2c4e17a16b00367f140c3436f7a9148072ddd2d3
[ "MIT" ]
1
2021-08-18T12:45:14.000Z
2021-08-18T12:45:14.000Z
import typing as t from ....extensions import ExtensionMixin from ...flarum.core.discussions import DiscussionFromBulk
23.481481
77
0.712934
c9abcbc9f24259365718e0b6fb124db1e9b1a358
30,988
py
Python
gsflow_prep/gsflow_model_prep.py
dgketchum/MT_RSense
0048c1ccb1ff6e48bd630edd477f95ae29fea06d
[ "Apache-2.0" ]
null
null
null
gsflow_prep/gsflow_model_prep.py
dgketchum/MT_RSense
0048c1ccb1ff6e48bd630edd477f95ae29fea06d
[ "Apache-2.0" ]
null
null
null
gsflow_prep/gsflow_model_prep.py
dgketchum/MT_RSense
0048c1ccb1ff6e48bd630edd477f95ae29fea06d
[ "Apache-2.0" ]
null
null
null
import os import json from copy import copy from subprocess import call, Popen, PIPE, STDOUT import time import numpy as np import pandas as pd from pyproj import Transformer import rasterio import fiona from affine import Affine from shapely.geometry import shape from scipy.ndimage.morphology import binary_erosion fr...
41.932341
108
0.538499
c9ad6518f65c2c95cc6e2e31c3f0906ae816c864
1,147
py
Python
Interview Questions/readmail.py
Shivams9/pythoncodecamp
e6cd27f4704a407ee360414a8c9236b254117a59
[ "MIT" ]
6
2021-08-04T08:15:22.000Z
2022-02-02T11:15:56.000Z
Interview Questions/readmail.py
Shivams9/pythoncodecamp
e6cd27f4704a407ee360414a8c9236b254117a59
[ "MIT" ]
14
2021-08-02T06:28:00.000Z
2022-03-25T10:44:15.000Z
Interview Questions/readmail.py
Shivams9/pythoncodecamp
e6cd27f4704a407ee360414a8c9236b254117a59
[ "MIT" ]
6
2021-07-16T04:56:41.000Z
2022-02-16T04:40:06.000Z
# Importing libraries import imaplib, email user = 'vsjtestmail@gmail.com' password = 'TestMa1lPass' imap_url = 'imap.gmail.com' # Function to get email content part i.e its body part # Function to search for a key value pair # Function to get the list of emails under this label # this is done to make SSL connecti...
24.934783
65
0.727114
c9af346978608c3c30e9cd43ee6263e02cda79fe
5,695
py
Python
openstack_dashboard/dashboards/admin/rbac_policies/views.py
stackhpc/horizon
0899f67657e0be62dd9e6be327c63bccb4607dc6
[ "Apache-2.0" ]
930
2015-01-04T08:06:03.000Z
2022-03-13T18:47:13.000Z
openstack_dashboard/dashboards/admin/rbac_policies/views.py
stackhpc/horizon
0899f67657e0be62dd9e6be327c63bccb4607dc6
[ "Apache-2.0" ]
26
2015-02-23T16:37:31.000Z
2020-07-02T08:37:41.000Z
openstack_dashboard/dashboards/admin/rbac_policies/views.py
stackhpc/horizon
0899f67657e0be62dd9e6be327c63bccb4607dc6
[ "Apache-2.0" ]
1,040
2015-01-01T18:48:28.000Z
2022-03-19T08:35:18.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
39.275862
78
0.657419
c9af8bee70751d27aa98a3e3c87e41286832285c
522
py
Python
config.py
navidsalehi/blockchain
0add1e6e4898097360cafd006e391d1b8735da08
[ "MIT" ]
2
2021-11-30T05:16:39.000Z
2021-12-01T10:13:29.000Z
config.py
navidsalehi/blockchain
0add1e6e4898097360cafd006e391d1b8735da08
[ "MIT" ]
null
null
null
config.py
navidsalehi/blockchain
0add1e6e4898097360cafd006e391d1b8735da08
[ "MIT" ]
null
null
null
from dataclasses import dataclass
26.1
52
0.731801
c9b0a85450199612c6bc6f56c812cbb9f71f501d
3,585
py
Python
legacy/text_classification/utils.py
FrancisLiang/models-1
e14d5bc1ab36d0dd11977f27cff54605bf99c945
[ "Apache-2.0" ]
4
2020-01-04T13:15:02.000Z
2021-07-21T07:50:02.000Z
legacy/text_classification/utils.py
FrancisLiang/models-1
e14d5bc1ab36d0dd11977f27cff54605bf99c945
[ "Apache-2.0" ]
2
2019-06-26T03:21:49.000Z
2019-09-19T09:43:42.000Z
legacy/text_classification/utils.py
FrancisLiang/models-1
e14d5bc1ab36d0dd11977f27cff54605bf99c945
[ "Apache-2.0" ]
3
2019-10-31T07:18:49.000Z
2020-01-13T03:18:39.000Z
import logging import os import argparse from collections import defaultdict logger = logging.getLogger("paddle") logger.setLevel(logging.INFO)
33.194444
80
0.577406
c9b413225370fcaafee9296e6fca98be93952f44
2,188
py
Python
cards/views.py
KrTG/CardLabeling
8d267cf5d2dcc936005850a8f791115b3f716c92
[ "Apache-2.0" ]
null
null
null
cards/views.py
KrTG/CardLabeling
8d267cf5d2dcc936005850a8f791115b3f716c92
[ "Apache-2.0" ]
null
null
null
cards/views.py
KrTG/CardLabeling
8d267cf5d2dcc936005850a8f791115b3f716c92
[ "Apache-2.0" ]
null
null
null
from .models import Card from .helpers import fetch_unidentified, populate_db from django.shortcuts import render, redirect from django.http import Http404, HttpResponse import json
30.388889
64
0.55713
c9b43f16dd23711b256eacbc743cd82a999578fd
2,439
py
Python
cptm/experiment_calculate_perplexity.py
egpbos/cptm
c5f310858c341040b4afd166cf628aeee6845159
[ "Apache-2.0" ]
13
2016-03-14T14:58:04.000Z
2020-11-03T22:48:59.000Z
cptm/experiment_calculate_perplexity.py
egpbos/cptm
c5f310858c341040b4afd166cf628aeee6845159
[ "Apache-2.0" ]
5
2015-10-30T12:34:16.000Z
2017-10-27T04:55:07.000Z
cptm/experiment_calculate_perplexity.py
egpbos/cptm
c5f310858c341040b4afd166cf628aeee6845159
[ "Apache-2.0" ]
3
2016-03-03T10:49:05.000Z
2018-02-03T14:36:59.000Z
"""Calculate opinion perplexity for different numbers of topics Calclulate opinion perplexity for the test set as described in [Fang et al. 2012] section 5.1.1. This script should be run after experiment_number_of_topics.py. Usage: python cptm/experiment_calculate_perplexity.py /path/to/experiment.json. """ import p...
33.410959
79
0.727347
c9b4d11f803a768b9c496032b0ea1a63387421c9
133
py
Python
app/services/v1/healthcheck.py
rvmoura96/flask-template
d1383be7e17bff580e3ddf61ae580271c30201c4
[ "MIT" ]
2
2019-09-25T19:19:11.000Z
2019-10-08T01:05:35.000Z
app/services/v1/healthcheck.py
rvmoura96/flask-template
d1383be7e17bff580e3ddf61ae580271c30201c4
[ "MIT" ]
10
2019-09-13T23:41:42.000Z
2020-05-10T21:12:32.000Z
app/services/v1/healthcheck.py
rvmoura96/flask-template
d1383be7e17bff580e3ddf61ae580271c30201c4
[ "MIT" ]
9
2019-09-30T15:26:23.000Z
2020-09-28T23:36:25.000Z
from flask_restful import Resource import app from app.services.healthcheck import HealthApi
19
46
0.827068
c9b5574ee7cafcbc4a7c1273ed0bb1bc35434615
819
py
Python
Eulers method.py
pramotharun/Numerical-Methods-with-Python
bd5676bcc4ac5defd13608728df2387b5fdcdfcb
[ "MIT" ]
null
null
null
Eulers method.py
pramotharun/Numerical-Methods-with-Python
bd5676bcc4ac5defd13608728df2387b5fdcdfcb
[ "MIT" ]
null
null
null
Eulers method.py
pramotharun/Numerical-Methods-with-Python
bd5676bcc4ac5defd13608728df2387b5fdcdfcb
[ "MIT" ]
null
null
null
#Eulers method import numpy as np #Note: change the derivative function based on question!!!!!! Example: y-x y0 = 0.5 #float(input"what is the y(0)?") h = 0.1 #float(input"h?") x_final = 0.3 #float(input"x_final") #initiating input variables x = 0 y = y0 # remember to change yn+1 and xn+1 values if you already k...
19.5
76
0.543346
c9b764a791904b90c564bbc7b72661cf5b307b36
18,896
py
Python
modules/network_dictionary_builder.py
shartzog/CovidCNN
68bafe185c53f98b896ee01fdcf99f828f251036
[ "MIT" ]
null
null
null
modules/network_dictionary_builder.py
shartzog/CovidCNN
68bafe185c53f98b896ee01fdcf99f828f251036
[ "MIT" ]
null
null
null
modules/network_dictionary_builder.py
shartzog/CovidCNN
68bafe185c53f98b896ee01fdcf99f828f251036
[ "MIT" ]
null
null
null
""" Contains Net and NetDictionary class for creating a random collection of CNN structures or loading a previously created collection. """ from __future__ import division, print_function from random import random import os.path import torch from torch import nn from torch import optim from torch.nn import functional...
48.953368
116
0.556467
c9b7d5c05e7bdbe4c159664bc93dea9d1f8df223
1,917
py
Python
src/vmshepherd/app.py
DreamLab/VmShepherd
f602bb814080d2d3f62c6cb5fa6b9dd685833c24
[ "Apache-2.0" ]
10
2018-06-10T17:54:57.000Z
2022-02-07T19:37:07.000Z
src/vmshepherd/app.py
DreamLab/VmShepherd
f602bb814080d2d3f62c6cb5fa6b9dd685833c24
[ "Apache-2.0" ]
10
2018-06-10T18:46:07.000Z
2021-05-13T13:01:22.000Z
src/vmshepherd/app.py
DreamLab/VmShepherd
f602bb814080d2d3f62c6cb5fa6b9dd685833c24
[ "Apache-2.0" ]
3
2019-07-18T14:10:10.000Z
2022-02-07T19:37:08.000Z
import asyncio import logging import os from vmshepherd.drivers import Drivers from vmshepherd.http import WebServer from vmshepherd.utils import gen_id, prefix_logging from vmshepherd.worker import Worker
32.491525
96
0.639019
c9b84e52e79d954ea22decc10bdcb695a3cc56e1
1,762
py
Python
opsdroid/connector/slack/events.py
himanshu1root/opsdroid
26699c5e7cc014a0d3ab74baf66fbadce939ab73
[ "Apache-2.0" ]
1
2020-04-29T20:44:44.000Z
2020-04-29T20:44:44.000Z
opsdroid/connector/slack/events.py
himanshu1root/opsdroid
26699c5e7cc014a0d3ab74baf66fbadce939ab73
[ "Apache-2.0" ]
10
2019-06-22T11:18:55.000Z
2019-09-03T13:26:47.000Z
opsdroid/connector/slack/events.py
himanshu1root/opsdroid
26699c5e7cc014a0d3ab74baf66fbadce939ab73
[ "Apache-2.0" ]
1
2019-06-11T22:30:49.000Z
2019-06-11T22:30:49.000Z
"""Classes to describe different kinds of Slack specific event.""" import json from opsdroid.events import Message
39.155556
79
0.648127
c9b8a09501b36968a133bb1816fb52f2dd36b599
42
py
Python
examples/modules/object_tracker/__init__.py
jagin/dvg-utils
a7d19ead75398b09a9f1e146464cf4227f06a476
[ "MIT" ]
7
2020-09-02T08:39:22.000Z
2021-10-13T18:13:04.000Z
examples/modules/object_tracker/__init__.py
jagin/dvg-utils
a7d19ead75398b09a9f1e146464cf4227f06a476
[ "MIT" ]
null
null
null
examples/modules/object_tracker/__init__.py
jagin/dvg-utils
a7d19ead75398b09a9f1e146464cf4227f06a476
[ "MIT" ]
null
null
null
from .object_tracker import ObjectTracker
21
41
0.880952
c9b95e3837c6ec2e9141c7cfae3e53054b21d5b5
3,449
py
Python
src/train.py
SYHPARK/MalConv-keras
2b68ba82e2201290130bed6d58f5725b17a87867
[ "MIT" ]
null
null
null
src/train.py
SYHPARK/MalConv-keras
2b68ba82e2201290130bed6d58f5725b17a87867
[ "MIT" ]
null
null
null
src/train.py
SYHPARK/MalConv-keras
2b68ba82e2201290130bed6d58f5725b17a87867
[ "MIT" ]
null
null
null
from os.path import join import argparse import pickle import warnings import pandas as pd from keras.callbacks import ModelCheckpoint, EarlyStopping from keras.models import load_model import utils from malconv import Malconv from preprocess import preprocess warnings.filterwarnings("ignore") parser = argparse.Argu...
40.104651
116
0.684836
c9bc28a5d5d38a212f5e0f03eba96a2a3f217595
1,870
py
Python
unittesting.py
slobbishbody/routegetter
b6c279c1734530fd2aec08da9317575b66150092
[ "MIT" ]
null
null
null
unittesting.py
slobbishbody/routegetter
b6c279c1734530fd2aec08da9317575b66150092
[ "MIT" ]
null
null
null
unittesting.py
slobbishbody/routegetter
b6c279c1734530fd2aec08da9317575b66150092
[ "MIT" ]
null
null
null
'''We will test all routegetter methods in this test suite''' from os.path import join, abspath, sep import unittest import logging import routesparser from faker import Faker LOG_FILE = join(sep.join(sep.split(abspath(__file__))[:-1]), 'log', 'testing', 'testing.log') if __name__ == '__main__': logging.basicCo...
33.392857
93
0.673797
c9bca9a508473ab1f3f0748890578a6eb5bddb04
710
py
Python
setup.py
thetongs/hello_world
5c2ab413cd104ed6d8a5640ee6fd3476d0f1e846
[ "MIT" ]
null
null
null
setup.py
thetongs/hello_world
5c2ab413cd104ed6d8a5640ee6fd3476d0f1e846
[ "MIT" ]
null
null
null
setup.py
thetongs/hello_world
5c2ab413cd104ed6d8a5640ee6fd3476d0f1e846
[ "MIT" ]
null
null
null
from setuptools import setup VERSION = '0.0.4' DESCRIPTION = 'Hello world checking' # Setting up setup( name="hello_world", version=VERSION, author="Kishan Tongrao", author_email="kishan.tongs@gmail.com", description=DESCRIPTION, long_description_content_type="text/markdown", ...
28.4
52
0.625352
c9bd340296dec5cc98f4fa44de42146d4f90d4d2
123
py
Python
python/basic_utils.py
goten-team/Goten
690f1429b62c70caec72f4010ee5b7a9786f0d25
[ "MIT" ]
17
2020-04-28T09:18:28.000Z
2021-12-28T08:38:00.000Z
python/basic_utils.py
goten-team/Goten
690f1429b62c70caec72f4010ee5b7a9786f0d25
[ "MIT" ]
2
2021-09-26T04:10:51.000Z
2022-03-31T05:28:25.000Z
python/basic_utils.py
goten-team/Goten
690f1429b62c70caec72f4010ee5b7a9786f0d25
[ "MIT" ]
2
2021-09-26T05:06:17.000Z
2021-12-14T16:25:06.000Z
import hashlib
20.5
88
0.617886
c9bfafc48a06f70a20cac8ad26dc2486eeccba0a
4,354
py
Python
MSspeechAPI_class.py
houhry/AutosubBehindWall
3903ee457d90c31db9a39957ad06468d556023ee
[ "MIT" ]
14
2019-03-14T03:12:25.000Z
2020-12-23T14:28:05.000Z
MSspeechAPI_class.py
houhry/AutosubBehindWall
3903ee457d90c31db9a39957ad06468d556023ee
[ "MIT" ]
null
null
null
MSspeechAPI_class.py
houhry/AutosubBehindWall
3903ee457d90c31db9a39957ad06468d556023ee
[ "MIT" ]
6
2019-03-12T03:46:14.000Z
2021-12-11T13:55:47.000Z
# -*- coding:utf-8 -*- import certifi import pycurl import requests import os import json import uuid from StringIO import StringIO #--------------------- # #CSDN #https://blog.csdn.net/joyjun_1/article/details/52563713 #
36.588235
124
0.589113
c9c3b89ba882bb0aa6a88e4ec97e3255252d24db
1,565
py
Python
projects/gettingStarted/CannyStill.py
lucasbrsa/OpenCV3.2
b6db40bd43dce7847dce1a808fd29bb1b140dea3
[ "MIT" ]
null
null
null
projects/gettingStarted/CannyStill.py
lucasbrsa/OpenCV3.2
b6db40bd43dce7847dce1a808fd29bb1b140dea3
[ "MIT" ]
null
null
null
projects/gettingStarted/CannyStill.py
lucasbrsa/OpenCV3.2
b6db40bd43dce7847dce1a808fd29bb1b140dea3
[ "MIT" ]
null
null
null
# CannyStill.py import cv2 import numpy as np import os ################################################################################################### ################################################################################################### if __name__ == "__main__": main()
42.297297
124
0.502236
c9c4069353131d5a64d6da6f767d0fbe4eba61e3
212
py
Python
examples/timeseries_from_dataframe.py
yarikoptic/seaborn
ed4baa32267cc4a44abb40dc243ae75a1d180e85
[ "MIT", "BSD-3-Clause" ]
3
2016-01-25T16:54:25.000Z
2020-05-01T15:15:30.000Z
examples/timeseries_from_dataframe.py
PureW/seaborn
f400d86002c6d4b2d67eb9740adad908e84f8328
[ "MIT", "BSD-3-Clause" ]
1
2021-06-23T16:40:53.000Z
2021-06-23T16:40:53.000Z
examples/timeseries_from_dataframe.py
PureW/seaborn
f400d86002c6d4b2d67eb9740adad908e84f8328
[ "MIT", "BSD-3-Clause" ]
2
2019-04-02T19:52:25.000Z
2021-07-06T21:17:27.000Z
""" Timeseries from DataFrame ========================= """ import seaborn as sns sns.set(style="darkgrid") gammas = sns.load_dataset("gammas") sns.tsplot(gammas, "timepoint", "subject", "ROI", "BOLD signal")
17.666667
64
0.617925
c9c71fc7edb4fb9a65e3ae3dd552c204669f2537
533
py
Python
bc/ed/definition.py
ajah/represent-canada-data
f79092442767faa0b4babe50a377408e8576c8c4
[ "OML" ]
null
null
null
bc/ed/definition.py
ajah/represent-canada-data
f79092442767faa0b4babe50a377408e8576c8c4
[ "OML" ]
null
null
null
bc/ed/definition.py
ajah/represent-canada-data
f79092442767faa0b4babe50a377408e8576c8c4
[ "OML" ]
null
null
null
from datetime import date import boundaries boundaries.register('British Columbia electoral districts', domain='British Columbia', last_updated=date(2011, 12, 12), name_func=boundaries.attr('edname'), id_func=boundaries.attr('edabbr'), authority='Elections BC', source_url='http://www.elections...
38.071429
140
0.744841
c9c93db3dbc0d8e8af8b81d596af15d7ca55058b
2,228
py
Python
src/cms/medias/hooks.py
UniversitaDellaCalabria/uniCMS
b0af4e1a767867f0a9b3c135a5c84587e713cb71
[ "Apache-2.0" ]
6
2021-01-26T17:22:53.000Z
2022-02-15T10:09:03.000Z
src/cms/medias/hooks.py
UniversitaDellaCalabria/uniCMS
b0af4e1a767867f0a9b3c135a5c84587e713cb71
[ "Apache-2.0" ]
5
2020-12-24T14:29:23.000Z
2021-08-10T10:32:18.000Z
src/cms/medias/hooks.py
UniversitaDellaCalabria/uniCMS
b0af4e1a767867f0a9b3c135a5c84587e713cb71
[ "Apache-2.0" ]
2
2020-12-24T14:13:39.000Z
2020-12-30T16:48:52.000Z
import logging import magic import os from cms.medias.utils import get_file_type_size from django.conf import settings from django.core.files.uploadedfile import InMemoryUploadedFile from . import settings as app_settings from . utils import to_webp logger = logging.getLogger(__name__) FILETYPE_IMAGE = getattr(sett...
32.289855
91
0.609964
c9ca952daadbee6b22e4cb8d53f17d4f335031b8
222
py
Python
accounts/urls.py
afg984/happpycoding
d881de4d70abea3062928454d55dcc816d37b3a5
[ "MIT" ]
6
2015-11-28T13:34:38.000Z
2016-10-11T11:59:50.000Z
accounts/urls.py
afg984/happpycoding
d881de4d70abea3062928454d55dcc816d37b3a5
[ "MIT" ]
null
null
null
accounts/urls.py
afg984/happpycoding
d881de4d70abea3062928454d55dcc816d37b3a5
[ "MIT" ]
null
null
null
from django_fsu import url from . import views urlpatterns = [ url('login/', views.login, name='login'), url('logout/', views.logout, name='logout'), url('profile/<int:pk>', views.profile, name='profile'), ]
22.2
59
0.648649
c9cb7becdd0922382057eaf8cf2a26ecd9e3c101
747
py
Python
setup.py
Coldwave96/PocLibrary
4bdc069c257f441379e9fd428ac8df7d4f5e9ca9
[ "Apache-2.0" ]
11
2020-08-24T03:31:23.000Z
2022-01-15T12:19:31.000Z
setup.py
Coldwave96/PocLibrary
4bdc069c257f441379e9fd428ac8df7d4f5e9ca9
[ "Apache-2.0" ]
null
null
null
setup.py
Coldwave96/PocLibrary
4bdc069c257f441379e9fd428ac8df7d4f5e9ca9
[ "Apache-2.0" ]
3
2020-08-24T03:31:28.000Z
2021-09-19T14:54:46.000Z
""" This is a setup.py script generated by py2applet Usage: python setup.py py2app """ from setuptools import setup APP = ['PocLibrary.py'] APP_NAME = "PocLibrary" DATA_FILES = [] OPTIONS = { 'iconfile': 'logo.icns', 'plist': { 'CFBundleName': APP_NAME, 'CFBundleDisplayName': APP_NAME, ...
21.970588
86
0.631861
c9cba2d718dc17bd9bd34864d1e448f3f16a9751
8,840
py
Python
tests/thumbor.py
hurbcom/libthumbor
8362f08071ed1ce345be59713825844808873a80
[ "MIT" ]
null
null
null
tests/thumbor.py
hurbcom/libthumbor
8362f08071ed1ce345be59713825844808873a80
[ "MIT" ]
null
null
null
tests/thumbor.py
hurbcom/libthumbor
8362f08071ed1ce345be59713825844808873a80
[ "MIT" ]
null
null
null
# encoding: utf-8 import base64 import hashlib import hmac import re import six from six.moves.urllib.parse import quote from Crypto.Cipher import AES
30.801394
119
0.508145
c9ce4ccacd1980f9dcbf0a2c852bfa9e74a3ad5a
4,420
py
Python
config.py
NYU-DICE-Lab/graph_invnet
166db79ac9ab3bff0e67ab0ec978da7efea042e2
[ "MIT" ]
null
null
null
config.py
NYU-DICE-Lab/graph_invnet
166db79ac9ab3bff0e67ab0ec978da7efea042e2
[ "MIT" ]
4
2021-06-08T23:01:47.000Z
2022-03-12T00:53:53.000Z
config.py
NYU-DICE-Lab/graph_invnet
166db79ac9ab3bff0e67ab0ec978da7efea042e2
[ "MIT" ]
null
null
null
""" Config class for training the InvNet """ import argparse from dp_layer.graph_layer.edge_functions import edge_f_dict as d def get_parser(name): """ :param name: String for Config Name :return: parser """ parser = argparse.ArgumentParser(name, formatter_class=argparse.ArgumentDefaultsHelpFo...
53.253012
122
0.682579
c9d237ae48e81118b5aaea91722859235e40aa06
1,599
py
Python
flaskrst/modules/tags.py
jarus/flask-rst
05b6a817f5986d6f6a4552d16a133deb8859ce3e
[ "BSD-3-Clause" ]
7
2015-01-22T14:32:55.000Z
2021-07-14T02:54:42.000Z
flaskrst/modules/tags.py
jarus/flask-rst
05b6a817f5986d6f6a4552d16a133deb8859ce3e
[ "BSD-3-Clause" ]
null
null
null
flaskrst/modules/tags.py
jarus/flask-rst
05b6a817f5986d6f6a4552d16a133deb8859ce3e
[ "BSD-3-Clause" ]
2
2016-03-14T01:06:13.000Z
2016-04-15T13:26:54.000Z
# -*- coding: utf-8 -*- """ flask-rst.modules.tags ~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2011 by Christoph Heer. :license: BSD, see LICENSE for more details. """ from math import log from flask import Blueprint, render_template from jinja2 import Markup from flaskrst.modules.blog import posts t...
26.213115
72
0.605378
c9d4af05e2b5e939ee1aea3341e906f371d84c8b
12,560
py
Python
tests/test_apsw.py
hideaki-t/sqlite-fts-python
2afdc4ad6d3d7856d801bd3f9106160825f49d00
[ "MIT" ]
35
2015-05-06T13:37:02.000Z
2022-01-06T02:52:49.000Z
tests/test_apsw.py
polyrand/sqlite-fts-python
2afdc4ad6d3d7856d801bd3f9106160825f49d00
[ "MIT" ]
18
2015-11-21T19:00:57.000Z
2021-12-31T12:41:08.000Z
tests/test_apsw.py
polyrand/sqlite-fts-python
2afdc4ad6d3d7856d801bd3f9106160825f49d00
[ "MIT" ]
11
2015-01-12T12:20:29.000Z
2021-04-07T21:43:48.000Z
# coding: utf-8 from __future__ import print_function, unicode_literals import re import pytest import sqlitefts as fts from sqlitefts import fts5, fts5_aux apsw = pytest.importorskip("apsw") def test_createtable(): c = apsw.Connection(":memory:") name = "simple" sql = "CREATE VIRTUAL TABLE fts USIN...
34.31694
143
0.525398
c9d7bec33f61ca45367ed74051d9e674ed9eb713
211
py
Python
unit_03/random/passwd1.py
janusnic/21v-pyqt
8ee3828e1c6e6259367d6cedbd63b9057cf52c24
[ "MIT" ]
null
null
null
unit_03/random/passwd1.py
janusnic/21v-pyqt
8ee3828e1c6e6259367d6cedbd63b9057cf52c24
[ "MIT" ]
null
null
null
unit_03/random/passwd1.py
janusnic/21v-pyqt
8ee3828e1c6e6259367d6cedbd63b9057cf52c24
[ "MIT" ]
2
2019-11-14T15:04:22.000Z
2021-10-31T07:34:46.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- """ """ import random print ''.join([random.choice(list('123456789qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM')) for x in range(12)])
26.375
120
0.739336
c9d8ca7a24eddf8714bfa4046edd0feee39e2a38
1,283
py
Python
lib/core/network.py
lck1201/seq2seq-3Dpose
3f45cc0f001ac5d25705834541d55938bf1907b6
[ "MIT" ]
13
2019-03-29T13:39:36.000Z
2021-09-07T11:15:45.000Z
lib/core/network.py
lck1201/seq2seq-3Dpose
3f45cc0f001ac5d25705834541d55938bf1907b6
[ "MIT" ]
1
2019-12-14T21:12:17.000Z
2019-12-14T21:12:17.000Z
lib/core/network.py
lck1201/seq2seq-3Dpose
3f45cc0f001ac5d25705834541d55938bf1907b6
[ "MIT" ]
null
null
null
import mxnet as mx from mxnet import nd from mxnet import gluon from mxnet.gluon import nn, rnn from config import config nJoints = config.NETWORK.nJoints
36.657143
87
0.639127
c9d97586e443bc62d5fe8b8784de68a2c4bfe273
536
py
Python
Session1_2018/Practice/karatsuba_multiplication.py
vedantc6/LCode
43aec4da9cc22ef43e877a16dbee380b98d9089f
[ "MIT" ]
1
2018-09-21T10:51:15.000Z
2018-09-21T10:51:15.000Z
Session1_2018/Practice/karatsuba_multiplication.py
vedantc6/LCode
43aec4da9cc22ef43e877a16dbee380b98d9089f
[ "MIT" ]
null
null
null
Session1_2018/Practice/karatsuba_multiplication.py
vedantc6/LCode
43aec4da9cc22ef43e877a16dbee380b98d9089f
[ "MIT" ]
null
null
null
from math import ceil, floor if __name__ == "__main__": print(k_multiply(2104, 2421)) print(k_multiply(21, 24)) print(k_multiply(1, 4))
26.8
59
0.507463
c9da6ebaaad2c77b2b6e79ec9dbb080561fa3b98
1,138
py
Python
day10/day10.py
ecly/a
73642e7edae484984430492ca9b62bd52b315a50
[ "MIT" ]
null
null
null
day10/day10.py
ecly/a
73642e7edae484984430492ca9b62bd52b315a50
[ "MIT" ]
null
null
null
day10/day10.py
ecly/a
73642e7edae484984430492ca9b62bd52b315a50
[ "MIT" ]
null
null
null
import sys if __name__ == '__main__': main()
23.708333
78
0.516696
c9dbe4020052218bd87d8a5c72620da1aa4c792c
1,850
py
Python
fuzzystring.py
ZackDev/fuzzystring
70d5e55f8cf90bcebdb491ba26baa3e05d479189
[ "MIT" ]
null
null
null
fuzzystring.py
ZackDev/fuzzystring
70d5e55f8cf90bcebdb491ba26baa3e05d479189
[ "MIT" ]
null
null
null
fuzzystring.py
ZackDev/fuzzystring
70d5e55f8cf90bcebdb491ba26baa3e05d479189
[ "MIT" ]
null
null
null
import re import random import string import os supported_types = ['a', 'n', 's'] count_types = [] if __name__ == '__main__': s = fuzzyfy('ans', 10) print(s)
22.02381
78
0.571351
c9dcd26ab8ee7882eebaee13880a0044570deca1
787
py
Python
tests/conftest.py
m-schmoock/lightning
5ffc516133d07aa653c680cf96d5316a614dbc1f
[ "MIT" ]
1
2021-01-20T05:46:35.000Z
2021-01-20T05:46:35.000Z
tests/conftest.py
m-schmoock/lightning
5ffc516133d07aa653c680cf96d5316a614dbc1f
[ "MIT" ]
5
2020-12-16T13:44:59.000Z
2021-06-06T06:11:12.000Z
tests/conftest.py
m-schmoock/lightning
5ffc516133d07aa653c680cf96d5316a614dbc1f
[ "MIT" ]
7
2019-10-07T23:53:49.000Z
2021-11-23T18:26:30.000Z
import pytest # This function is based upon the example of how to # "[make] test result information available in fixtures" at: # https://pytest.org/latest/example/simple.html#making-test-result-information-available-in-fixtures # and: # https://github.com/pytest-dev/pytest/issues/288
32.791667
101
0.707751
c9dcfb8d245f4e4c379ad41c4bae671d93734033
1,236
py
Python
perfkitbenchmarker/context.py
robfrut135/PerfKitBenchmarker
ccaf81b47ed5e3f27065e8f8d9fc42d071bfc22c
[ "Apache-2.0" ]
3
2018-04-28T13:06:14.000Z
2020-06-09T02:39:44.000Z
perfkitbenchmarker/context.py
robfrut135/PerfKitBenchmarker
ccaf81b47ed5e3f27065e8f8d9fc42d071bfc22c
[ "Apache-2.0" ]
1
2018-03-15T21:01:27.000Z
2018-03-15T21:01:27.000Z
perfkitbenchmarker/context.py
robfrut135/PerfKitBenchmarker
ccaf81b47ed5e3f27065e8f8d9fc42d071bfc22c
[ "Apache-2.0" ]
6
2019-06-11T18:59:57.000Z
2021-03-02T19:14:42.000Z
# Copyright 2015 PerfKitBenchmarker Authors. 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 appli...
30.9
78
0.771036
c9df6ba0ed0d28f7270862edcecc5a88bc403d3d
615
py
Python
arcade/rainbow.py
itsMadesh/python-personal-programs
05355aa098afd87b345c9a2ca21b48552bf5a23b
[ "MIT" ]
null
null
null
arcade/rainbow.py
itsMadesh/python-personal-programs
05355aa098afd87b345c9a2ca21b48552bf5a23b
[ "MIT" ]
null
null
null
arcade/rainbow.py
itsMadesh/python-personal-programs
05355aa098afd87b345c9a2ca21b48552bf5a23b
[ "MIT" ]
null
null
null
import arcade arcade.open_window(500,750,"Rainbow") arcade.set_background_color(arcade.color.SKY_BLUE) arcade.start_render() arcade.draw_parabola_filled(25,80,500,300,arcade.color.RED,0) arcade.draw_parabola_filled(50,80,470,280,arcade.color.ORANGE,0) arcade.draw_parabola_filled(75,80,440,260,arcade.color.YELLOW ,0) ar...
43.928571
65
0.827642
c9e0e47d0408e03065a4fc6bb39fcef4c8c2b570
403
py
Python
portal/migrations/0017_remove_professor_nome_abreviado.py
leodiasp/abcmobile
470966239230becc1d52cbd7c2794d9572915dfd
[ "MIT" ]
null
null
null
portal/migrations/0017_remove_professor_nome_abreviado.py
leodiasp/abcmobile
470966239230becc1d52cbd7c2794d9572915dfd
[ "MIT" ]
null
null
null
portal/migrations/0017_remove_professor_nome_abreviado.py
leodiasp/abcmobile
470966239230becc1d52cbd7c2794d9572915dfd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2019-02-13 18:49 from __future__ import unicode_literals from django.db import migrations
20.15
48
0.622829
c9e2dcad41a62fabe6d852cdc47cfde976426a83
1,510
py
Python
modules/drop.py
a-wing/mavelous
eef41c096cc282bb3acd33a747146a88d2bd1eee
[ "MIT" ]
80
2015-01-02T23:23:19.000Z
2021-11-02T16:03:07.000Z
modules/drop.py
Y-H-T/mavelous
eef41c096cc282bb3acd33a747146a88d2bd1eee
[ "MIT" ]
1
2016-04-13T15:44:23.000Z
2016-04-13T15:44:23.000Z
modules/drop.py
Y-H-T/mavelous
eef41c096cc282bb3acd33a747146a88d2bd1eee
[ "MIT" ]
63
2015-01-03T19:35:39.000Z
2022-02-08T17:15:44.000Z
#!/usr/bin/env python ''' simple bottle drop module''' import time mpstate = None hold_pwm = 983 release_pwm = 1776 drop_channel = 5 drop_time = 2.0 def name(): '''return module name''' return "drop" def description(): '''return module description''' return "bottle drop control" def cmd_drop(args):...
26.491228
92
0.660265
c9e3019d7f86a0fcc9bd9c9aa1f3b2b74e02646a
9,232
py
Python
tests/data/pandas_valid_data.py
craft-ai/craft-ai-client-python
3d8b3d9a49c0c70964deaeb9645130dd54f9a0b3
[ "BSD-3-Clause" ]
14
2016-08-26T07:06:57.000Z
2020-09-22T07:41:21.000Z
tests/data/pandas_valid_data.py
craft-ai/craft-ai-client-python
3d8b3d9a49c0c70964deaeb9645130dd54f9a0b3
[ "BSD-3-Clause" ]
94
2016-08-02T14:07:59.000Z
2021-10-06T11:50:52.000Z
tests/data/pandas_valid_data.py
craft-ai/craft-ai-client-python
3d8b3d9a49c0c70964deaeb9645130dd54f9a0b3
[ "BSD-3-Clause" ]
8
2017-02-07T12:05:57.000Z
2021-10-14T09:45:30.000Z
import pandas as pd import numpy as np from numpy.random import randn from craft_ai.pandas import MISSING_VALUE, OPTIONAL_VALUE from random import random, randint NB_OPERATIONS = 300 NB_MANY_OPERATIONS = 1000 SIMPLE_AGENT_BOOSTING_CONFIGURATION = { "model_type": "boosting", "context": { "a": {"type": ...
26.682081
86
0.517006
c9e4abe60b90e60426a219ee6fec07063b3f40f3
305
py
Python
src/api/pages.py
nhardy/py-js-web-scaffold
adf3e3ada0b21cdb9620676de795579107442dd7
[ "MIT" ]
null
null
null
src/api/pages.py
nhardy/py-js-web-scaffold
adf3e3ada0b21cdb9620676de795579107442dd7
[ "MIT" ]
null
null
null
src/api/pages.py
nhardy/py-js-web-scaffold
adf3e3ada0b21cdb9620676de795579107442dd7
[ "MIT" ]
null
null
null
import tornado.web from content import PAGES
21.785714
58
0.721311
c9e532019c14012309cd048823903e390b14f730
3,767
py
Python
retropie/influx-retropie.py
Epaphus/personal-influxdb
6357bc8a1b362280b0ce79674ddd8e804573f2a9
[ "Apache-2.0" ]
217
2020-01-07T20:25:46.000Z
2022-03-29T06:09:58.000Z
retropie/influx-retropie.py
Epaphus/personal-influxdb
6357bc8a1b362280b0ce79674ddd8e804573f2a9
[ "Apache-2.0" ]
16
2020-02-10T12:40:23.000Z
2022-02-26T13:01:55.000Z
retropie/influx-retropie.py
Epaphus/personal-influxdb
6357bc8a1b362280b0ce79674ddd8e804573f2a9
[ "Apache-2.0" ]
34
2020-01-15T15:42:20.000Z
2022-02-22T17:29:15.000Z
#!/usr/bin/python3 # Copyright (C) 2020 Sam Steele # 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...
27.297101
123
0.689673
c9e56f5f70dd474993a40687a674f32c37bed1cb
7,470
py
Python
molecule.py
Ved-P/molecule
9727a9e7f8c0412feee27bbe034a1540cff7534e
[ "MIT" ]
null
null
null
molecule.py
Ved-P/molecule
9727a9e7f8c0412feee27bbe034a1540cff7534e
[ "MIT" ]
1
2022-01-03T20:07:31.000Z
2022-01-04T18:45:21.000Z
molecule.py
Ved-P/molecule
9727a9e7f8c0412feee27bbe034a1540cff7534e
[ "MIT" ]
null
null
null
# Molecule # # This program takes in a molecular formula and creates a Lewis diagram and a 3D # model of the molecule as the output. # # Author: Ved Pradhan # Since: December 31, 2021 import json import matplotlib.pyplot as plt import sys import math # Opens the JSON file for use. with open("elements.json", "r", enc...
30.995851
107
0.58822
c9e7b5a8abbdd10976c1ff71d253777d5ecde531
9,185
py
Python
app/transaction/attendence.py
rrsk/hiwayPay
c84b7581475164751f64540a521b803bdf08a9fb
[ "MIT" ]
31
2020-07-01T06:40:16.000Z
2022-03-30T18:49:02.000Z
app/transaction/attendence.py
rrsk/hiwayPay
c84b7581475164751f64540a521b803bdf08a9fb
[ "MIT" ]
2
2020-11-02T06:21:23.000Z
2021-06-02T00:31:06.000Z
app/transaction/attendence.py
rrsk/hiwayPay
c84b7581475164751f64540a521b803bdf08a9fb
[ "MIT" ]
13
2020-07-02T07:06:05.000Z
2022-03-15T11:34:41.000Z
from flask import Blueprint from flask import render_template, redirect, url_for, request, session, jsonify from flask_login import login_user, logout_user, current_user from app.transaction import bp from app.transaction.model_att import Attendence, AttendenceSchema , CompanySchema from app.employee.model import Emplo...
38.919492
157
0.507349
c9e83e673a43a955f85b17deeccd1c24bc0579dc
3,385
py
Python
examples/monitor.py
seba-1511/randopt
74cefcc734c6a38418151025b0a4d8b6cb41eb14
[ "Apache-2.0" ]
115
2016-11-21T06:44:19.000Z
2022-01-21T22:21:27.000Z
examples/monitor.py
seba-1511/randopt
74cefcc734c6a38418151025b0a4d8b6cb41eb14
[ "Apache-2.0" ]
26
2016-11-21T07:31:37.000Z
2019-01-16T14:13:23.000Z
examples/monitor.py
seba-1511/randopt
74cefcc734c6a38418151025b0a4d8b6cb41eb14
[ "Apache-2.0" ]
9
2018-04-02T19:54:20.000Z
2020-02-11T09:12:41.000Z
#!/usr/bin/env python3 """ Usage: python monitor.py randopt_results/simple_example/ """ import sys import os import time import curses import randopt as ro USE_MPL = True USE_CURSES = True try: from terminaltables import AsciiTable, SingleTable except: raise('run pip install terminaltables') try: ...
27.08
80
0.576662
c9e841e014e87b7075f87ca19eeab4f20f7fce6c
355
py
Python
RoomsOnRent/Blog/admin.py
DX9807/RoomsOnRent.com
4147efdce8e13930672c3c7cb12a1f25a70708ed
[ "MIT" ]
null
null
null
RoomsOnRent/Blog/admin.py
DX9807/RoomsOnRent.com
4147efdce8e13930672c3c7cb12a1f25a70708ed
[ "MIT" ]
null
null
null
RoomsOnRent/Blog/admin.py
DX9807/RoomsOnRent.com
4147efdce8e13930672c3c7cb12a1f25a70708ed
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Post, Comment admin.site.register(Post,PostAdmin) admin.site.register(Comment,CommentAdmin)
22.1875
77
0.760563
c9e940d8a93717c521e40ddaeecaaa28cbc83b2f
403
py
Python
rllib/examples/gpu_test.py
anaskn/ray
81db5f8060cb093085470ffdc71d8fdecc7bf381
[ "Apache-2.0" ]
null
null
null
rllib/examples/gpu_test.py
anaskn/ray
81db5f8060cb093085470ffdc71d8fdecc7bf381
[ "Apache-2.0" ]
null
null
null
rllib/examples/gpu_test.py
anaskn/ray
81db5f8060cb093085470ffdc71d8fdecc7bf381
[ "Apache-2.0" ]
1
2021-05-20T22:00:15.000Z
2021-05-20T22:00:15.000Z
import os import ray from ray import tune if __name__ == "__main__": ray.init() print("ray.get_gpu_ids(): {}".format(ray.get_gpu_ids())) #print("CUDA_VISIBLE_DEVICES: {}".format(os.environ["CUDA_VISIBLE_DEVICES"]))
25.1875
80
0.707196
c9eb836d5b59ca6961666fd615625d09250cf88f
42,230
py
Python
bin/toldiff.py
comscope/comsuite
d51c43cad0d15dc3b4d1f45e7df777cdddaa9d6c
[ "BSD-3-Clause" ]
18
2019-06-15T18:08:21.000Z
2022-01-30T05:01:29.000Z
bin/toldiff.py
comscope/Comsuite
b80ca9f34c519757d337487c489fb655f7598cc2
[ "BSD-3-Clause" ]
null
null
null
bin/toldiff.py
comscope/Comsuite
b80ca9f34c519757d337487c489fb655f7598cc2
[ "BSD-3-Clause" ]
11
2019-06-05T02:57:55.000Z
2021-12-29T02:54:25.000Z
#!/usr/bin/env python # # Copyright (C) 2006 Huub van Dam, Science and Technology Facilities Council, # Daresbury Laboratory. # All rights reserved. # # Developed by: Huub van Dam # Science and Technology Facilities Council # Daresbury Laboratory # C...
36.499568
175
0.673336
c9ec67e739da8431aa5c39d649a7e5eb15794f15
6,973
py
Python
LOG.py
viniciusdc/Protein_structure_SPGm
861672071f2a47b54e4624fc1f69cf3fff0ff356
[ "MIT" ]
null
null
null
LOG.py
viniciusdc/Protein_structure_SPGm
861672071f2a47b54e4624fc1f69cf3fff0ff356
[ "MIT" ]
null
null
null
LOG.py
viniciusdc/Protein_structure_SPGm
861672071f2a47b54e4624fc1f69cf3fff0ff356
[ "MIT" ]
null
null
null
from Methods.utils import rmsd, mde from datetime import datetime import logging import json import sys
43.855346
113
0.443711
c9ee06d94f8d8d17974a31803833016ac95dc1d7
1,968
py
Python
test/test_a69DisjointProperties.py
IDLabResearch/lovstats
dd33183574eed692ee89059ff3c6494160dfb8a9
[ "MIT" ]
1
2018-12-11T13:57:38.000Z
2018-12-11T13:57:38.000Z
test/test_a69DisjointProperties.py
IDLabResearch/lovstats
dd33183574eed692ee89059ff3c6494160dfb8a9
[ "MIT" ]
null
null
null
test/test_a69DisjointProperties.py
IDLabResearch/lovstats
dd33183574eed692ee89059ff3c6494160dfb8a9
[ "MIT" ]
null
null
null
import unittest import sys import helpers sys.path.append('../LODStats') sys.path.append('../src/restriction-types-stats') from A69DisjointProperties import A69DisjointProperties import lodstats from lodstats import RDFStats testfile_path = helpers.resources_path
41.87234
113
0.701728
c9f038d1fb5d0607ea396a1c5e9bb4c50b48b589
449
py
Python
src/services/sms.py
HutRubberDuck/super-mini-divar
191c2f9a412ef879b52f4a71e0fe74743138ab13
[ "Apache-2.0" ]
null
null
null
src/services/sms.py
HutRubberDuck/super-mini-divar
191c2f9a412ef879b52f4a71e0fe74743138ab13
[ "Apache-2.0" ]
null
null
null
src/services/sms.py
HutRubberDuck/super-mini-divar
191c2f9a412ef879b52f4a71e0fe74743138ab13
[ "Apache-2.0" ]
null
null
null
from kavenegar import KavenegarAPI, APIException, HTTPException from src.core.settings import OTP_API_KEY
23.631579
63
0.605791
c9f1e7cdebfd2710c6c2b7bf206e8cee0c794ff2
43
py
Python
test.py
Taraxa-project/taraxa-py
95aa0d8054bf4eba2c3200f3298421575b7bb5a0
[ "MIT" ]
null
null
null
test.py
Taraxa-project/taraxa-py
95aa0d8054bf4eba2c3200f3298421575b7bb5a0
[ "MIT" ]
1
2022-03-02T15:51:17.000Z
2022-03-02T15:51:17.000Z
test.py
Taraxa-project/taraxa-py
95aa0d8054bf4eba2c3200f3298421575b7bb5a0
[ "MIT" ]
null
null
null
from pytaraxa.test import * blockNumber()
10.75
27
0.767442
c9f2d64566db5376ed467678309c5e2282462dda
923
py
Python
src/ground/drainbow_mcc/src/drainbow_mcc/emitter/imu.py
granum-space/cansat-2017-2018
4d9db6f2d55c726e11abbb60fd436ec3eafc2373
[ "MIT" ]
null
null
null
src/ground/drainbow_mcc/src/drainbow_mcc/emitter/imu.py
granum-space/cansat-2017-2018
4d9db6f2d55c726e11abbb60fd436ec3eafc2373
[ "MIT" ]
9
2017-10-31T19:20:05.000Z
2018-06-17T19:08:52.000Z
src/ground/drainbow_mcc/src/drainbow_mcc/emitter/imu.py
granum-space/cansat-2018
4d9db6f2d55c726e11abbb60fd436ec3eafc2373
[ "MIT" ]
1
2018-06-12T11:30:10.000Z
2018-06-12T11:30:10.000Z
import random import logging import time from datetime import timedelta from pymavlink import mavutil _log = logging.getLogger(__name__)
23.666667
60
0.612134
c9f4af671dfa98273bbb6368b1d6afc8208adaae
12,548
py
Python
tests/test_locator.py
somnathrakshit/geograpy3
8a247cc2b164cf48b5ce4e7f9349adfef39e7ea4
[ "Apache-2.0" ]
53
2020-09-09T06:58:29.000Z
2022-03-08T19:16:12.000Z
tests/test_locator.py
somnathrakshit/geograpy3
8a247cc2b164cf48b5ce4e7f9349adfef39e7ea4
[ "Apache-2.0" ]
51
2020-09-09T09:31:27.000Z
2022-01-17T07:12:27.000Z
tests/test_locator.py
somnathrakshit/geograpy3
8a247cc2b164cf48b5ce4e7f9349adfef39e7ea4
[ "Apache-2.0" ]
9
2020-09-09T09:13:03.000Z
2021-12-14T11:04:34.000Z
''' Created on 2020-09-19 @author: wf ''' import os.path import tempfile import unittest from pathlib import Path from lodstorage.storageconfig import StorageConfig import geograpy import getpass from geograpy.locator import Locator, City,CountryManager, Location, LocationContext from collections import Counter from...
34.190736
172
0.582483
c9fafb5b1dfbe210783fd95968a164f6159dfcac
685
py
Python
Python/threadingProcess.py
GuruprasadaShridharHegde/Coder-Mansion
14529a6d5d4e674ecaf0c771e9cc428ba34b0a2d
[ "MIT" ]
1
2022-01-19T04:22:21.000Z
2022-01-19T04:22:21.000Z
Python/threadingProcess.py
GuruprasadaShridharHegde/Coder-Mansion
14529a6d5d4e674ecaf0c771e9cc428ba34b0a2d
[ "MIT" ]
null
null
null
Python/threadingProcess.py
GuruprasadaShridharHegde/Coder-Mansion
14529a6d5d4e674ecaf0c771e9cc428ba34b0a2d
[ "MIT" ]
null
null
null
# example of automatically starting a thread from time import sleep from threading import Thread # custom thread class that automatically starts threads when they are constructed # task function def task(): print('Task starting') # block for a moment sleep(1) # report print('Task all...
27.4
82
0.668613
c9fbf38f83d878c53f0d81d49f3d590917067274
4,332
py
Python
bin/cora_edit_singletoken.py
comphist/cora
71555df9a520ccab063a8c5eb907feaa1dd88b38
[ "MIT" ]
10
2017-07-08T12:05:32.000Z
2019-09-22T17:39:12.000Z
bin/cora_edit_singletoken.py
comphist/cora
71555df9a520ccab063a8c5eb907feaa1dd88b38
[ "MIT" ]
31
2017-02-24T19:29:51.000Z
2020-11-09T15:58:44.000Z
bin/cora_edit_singletoken.py
comphist/cora
71555df9a520ccab063a8c5eb907feaa1dd88b38
[ "MIT" ]
7
2017-02-27T12:25:55.000Z
2022-01-13T08:55:01.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (C) 2015 Marcel Bollmann <bollmann@linguistics.rub.de> # # 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 ...
40.111111
140
0.593029
c9ff48db97e05614b8ced49da35379affb1221e8
1,851
py
Python
datasets/utils.py
lulindev/UNet-pytorch
cf91e251891a2926f46b628985ebdda66bc637a2
[ "MIT" ]
3
2021-04-07T08:05:44.000Z
2021-06-25T16:55:56.000Z
datasets/utils.py
lulindev/UNet-pytorch
cf91e251891a2926f46b628985ebdda66bc637a2
[ "MIT" ]
null
null
null
datasets/utils.py
lulindev/UNet-pytorch
cf91e251891a2926f46b628985ebdda66bc637a2
[ "MIT" ]
2
2021-08-19T10:23:32.000Z
2021-12-15T03:26:11.000Z
from typing import Union import matplotlib.pyplot as plt import torch import torchvision # Validate dataset loading code
35.596154
81
0.611021
c9ffd31b49092a967f11f75892dae5ddf2b9ea57
1,373
py
Python
src/lm_based/translate_start_end.py
vered1986/time_expressions
32d182d7f741eec007141f5ca89c0d419e23a9a7
[ "Apache-2.0" ]
1
2022-02-25T15:00:42.000Z
2022-02-25T15:00:42.000Z
src/lm_based/translate_start_end.py
vered1986/time_expressions
32d182d7f741eec007141f5ca89c0d419e23a9a7
[ "Apache-2.0" ]
null
null
null
src/lm_based/translate_start_end.py
vered1986/time_expressions
32d182d7f741eec007141f5ca89c0d419e23a9a7
[ "Apache-2.0" ]
null
null
null
import os import json import logging import argparse from src.common.translate import translate_time_expression_templates, get_client logging.basicConfig(format='%(asctime)s - %(levelname)s - %(name)s - %(message)s', level=logging.INFO) logger = logging.getLogger(__name__) if __name__ == '__main__': main()
32.690476
118
0.680991
c9ffdbe67a40939dca316bf68000c8d9a8156ccf
1,477
py
Python
overlord/views.py
kimani-njoroge/Uber_Clone
610a242c75e2873897f8dc9458371c32e52d11ef
[ "MIT" ]
null
null
null
overlord/views.py
kimani-njoroge/Uber_Clone
610a242c75e2873897f8dc9458371c32e52d11ef
[ "MIT" ]
4
2020-06-05T18:47:50.000Z
2021-09-08T00:00:03.000Z
overlord/views.py
kimani-njoroge/Uber_Clone
610a242c75e2873897f8dc9458371c32e52d11ef
[ "MIT" ]
null
null
null
from django.contrib.auth.decorators import login_required from django.shortcuts import render, redirect from django.contrib.auth import get_user_model from .forms import DriverSignupForm, RiderSignupForm from driver.models import Driver User = get_user_model() # Create your views here.
30.142857
92
0.65606
a0011285cd812341126bdf7a6b702e5a57d05603
23,485
py
Python
old/Lissajous/Lissajous.py
Tony031218/manim-projects
b243dec0f0a007649a92938e90d60eccb4c7dd15
[ "Apache-2.0" ]
45
2019-10-08T23:58:20.000Z
2020-05-20T03:49:15.000Z
old/Lissajous/Lissajous.py
Tony031218/manim-projects
b243dec0f0a007649a92938e90d60eccb4c7dd15
[ "Apache-2.0" ]
null
null
null
old/Lissajous/Lissajous.py
Tony031218/manim-projects
b243dec0f0a007649a92938e90d60eccb4c7dd15
[ "Apache-2.0" ]
12
2019-08-15T08:07:22.000Z
2020-05-09T12:34:14.000Z
from manimlib.imports import * from manim_projects.tony_useful.imports import * def smooth2(t, inflection=6): error = sigmoid(-inflection / 2) return np.clip( (sigmoid(inflection * (t - 0.5)) - error) / (1 - 2 * error), 0, 1, )
39.60371
157
0.584245
a001a953fb7ca73d48a5c0947ed5285912738fe8
3,612
py
Python
socatlord/operations.py
Cervi-Robotics/socatlord
e4d8964cb696c789807d2276698d596dfb68dc2b
[ "MIT" ]
2
2021-05-30T01:05:38.000Z
2021-12-21T21:20:00.000Z
socatlord/operations.py
Cervi-Robotics/socatlord
e4d8964cb696c789807d2276698d596dfb68dc2b
[ "MIT" ]
null
null
null
socatlord/operations.py
Cervi-Robotics/socatlord
e4d8964cb696c789807d2276698d596dfb68dc2b
[ "MIT" ]
2
2021-05-30T01:05:44.000Z
2021-12-21T21:19:46.000Z
import os import subprocess import sys import time import pkg_resources from satella.coding import silence_excs from satella.coding.sequences import smart_enumerate from satella.files import write_to_file, read_in_file from socatlord.parse_config import parse_etc_socatlord
36.857143
99
0.622647
a002a3319b840c90608c40a67a87ec1a46bcac4f
2,303
py
Python
src/authutils/oauth2/client/blueprint.py
dvenckusuchgo/authutils
4b43a250f448815f1ea0e7fa22fa0b02c9a2cb1d
[ "Apache-2.0" ]
null
null
null
src/authutils/oauth2/client/blueprint.py
dvenckusuchgo/authutils
4b43a250f448815f1ea0e7fa22fa0b02c9a2cb1d
[ "Apache-2.0" ]
31
2018-02-12T22:32:49.000Z
2022-01-06T21:39:44.000Z
src/authutils/oauth2/client/blueprint.py
dvenckusuchgo/authutils
4b43a250f448815f1ea0e7fa22fa0b02c9a2cb1d
[ "Apache-2.0" ]
2
2021-01-05T22:54:28.000Z
2021-11-29T20:57:20.000Z
""" Provide a basic set of endpoints for an application to implement OAuth client functionality. These endpoints assume that the ``current_app`` has already been configured with an OAuth client instance from the ``authlib`` package as follows: .. code-block:: python from authutils.oauth2.client import OAuthClien...
28.7875
84
0.685627
a0032619f7b2be9a51cd2a3915144c4401d3f01e
655
py
Python
tests/unit/utils/test_utils.py
jadami10/flower
05e848d37a5abbdd4b34156d57a23166fc5efc3d
[ "BSD-3-Clause" ]
7
2019-10-07T11:16:06.000Z
2021-09-24T11:57:56.000Z
tests/unit/utils/test_utils.py
KonstantinKlepikov/flower
89e71c8c00dcb51bc584e908fc6b2ba97706e89a
[ "BSD-3-Clause" ]
3
2016-07-25T04:16:40.000Z
2018-08-08T05:05:10.000Z
tests/unit/utils/test_utils.py
Gabriel-Desharnais/flowest
a8c6bdaa24317124c3ba27eed07d62f8c4cc8531
[ "BSD-3-Clause" ]
8
2019-08-27T16:05:32.000Z
2021-12-15T17:29:03.000Z
import unittest from flower.utils import bugreport from celery import Celery
29.772727
60
0.674809
a005c8c77f2a7cfe589eb886411a380fd3864a2b
4,124
py
Python
swhlab/analysis/glance.py
swharden/SWHLab
a86c3c65323cec809a4bd4f81919644927094bf5
[ "MIT" ]
15
2017-03-09T03:08:32.000Z
2021-11-16T11:31:55.000Z
swhlab/analysis/glance.py
swharden/SWHLab
a86c3c65323cec809a4bd4f81919644927094bf5
[ "MIT" ]
2
2016-12-06T16:27:54.000Z
2017-11-04T23:48:49.000Z
swhlab/analysis/glance.py
swharden/SWHLab
a86c3c65323cec809a4bd4f81919644927094bf5
[ "MIT" ]
9
2016-10-19T13:32:10.000Z
2020-04-01T21:53:40.000Z
"""Methods to generate a SINGLE image to represent any ABF. There are several categories which are grossly analyzed. gain function: * current clamp recording where command traces differ by sweep. * must also have something that looks like an action potential * will be analyzed with AP detection information...
35.247863
92
0.626576
a005db92c36fe0ec0c9db64cfb4a8341416d95de
24,671
py
Python
catalog/bindings/csw/dictionary_entry_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/csw/dictionary_entry_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/csw/dictionary_entry_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass, field from typing import List, Optional from bindings.csw.abstract_general_operation_parameter_ref_type import ( OperationParameterGroup, ) from bindings.csw.actuate_type import ActuateType from bindings.csw.base_unit import BaseUnit from bindings.csw.cartesian_cs import Cartesian...
31.588988
81
0.592963
a00686acf3a82fe67d9e295e22aaec66f4b36661
2,468
py
Python
txt2epub_pdf/console.py
drthomas246/txt2epub-pdf
09d12a61e0d6f66512af7fdf9abfd4b384a5c648
[ "MIT" ]
null
null
null
txt2epub_pdf/console.py
drthomas246/txt2epub-pdf
09d12a61e0d6f66512af7fdf9abfd4b384a5c648
[ "MIT" ]
null
null
null
txt2epub_pdf/console.py
drthomas246/txt2epub-pdf
09d12a61e0d6f66512af7fdf9abfd4b384a5c648
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from .package import txt2epub as txt2epub from .package import txt2pdf as txt2pdf import argparse __version__ = "0.1.0"
37.393939
120
0.657212
a006b38b61a96ab48414b8fa22ea5745e9fed4bd
22
py
Python
Scripts.py
MattOstgard/HLSL_ST3
fbb3dcc7acfeb9c04208dc68b8ff020c76d483b1
[ "MIT" ]
10
2017-11-30T19:43:48.000Z
2022-02-02T11:10:43.000Z
Scripts.py
MattOstgard/HLSL_ST3
fbb3dcc7acfeb9c04208dc68b8ff020c76d483b1
[ "MIT" ]
27
2018-11-06T16:10:57.000Z
2022-02-25T22:55:33.000Z
Scripts.py
MattOstgard/HLSL_ST3
fbb3dcc7acfeb9c04208dc68b8ff020c76d483b1
[ "MIT" ]
2
2018-03-24T04:09:45.000Z
2018-11-06T14:54:10.000Z
from .Scripts import *
22
22
0.772727
a00725d52685ae75cf07ae5d77c3ada997c869be
3,150
py
Python
tests/test_fileio_operators.py
ptrthomas/blender_mmd_tools
8b5053b9f2e7391cb9ac1e5114824cbbfd9d80cc
[ "MIT" ]
2
2021-01-22T05:11:50.000Z
2021-02-19T11:58:00.000Z
tests/test_fileio_operators.py
jiastku98/blender_mmd_tools
ac26c55a985d62ae9439a961d27e796444d09069
[ "MIT" ]
1
2022-01-29T05:46:50.000Z
2022-01-29T05:46:50.000Z
tests/test_fileio_operators.py
yhong3/blender_mmd_tools
53e16a46459328bccc444c84e50f22436e9cbc11
[ "MIT" ]
1
2021-11-07T19:41:34.000Z
2021-11-07T19:41:34.000Z
import os import shutil import unittest import bpy from mmd_tools.core import pmx from mmd_tools.core.model import Model TESTS_DIR = os.path.dirname(os.path.abspath(__file__)) SAMPLES_DIR = os.path.join(os.path.dirname(TESTS_DIR), 'samples') if __name__ == '__main__': import sys sys.argv = [__file__] + (sys...
39.873418
108
0.626349
a008c9a8ae43052aa04c604f338705e7dbe4bc71
1,939
py
Python
gocdapi/stage.py
andrewphilipsmith/gocdapi
82eb37c6b00a918b6bcf4184a66cad7344cfaa2e
[ "MIT" ]
8
2015-01-23T12:50:30.000Z
2020-01-21T11:00:19.000Z
gocdapi/stage.py
andrewphilipsmith/gocdapi
82eb37c6b00a918b6bcf4184a66cad7344cfaa2e
[ "MIT" ]
7
2015-01-27T23:17:05.000Z
2016-06-08T15:27:07.000Z
gocdapi/stage.py
andrewphilipsmith/gocdapi
82eb37c6b00a918b6bcf4184a66cad7344cfaa2e
[ "MIT" ]
2
2015-11-23T18:33:24.000Z
2020-07-15T09:01:34.000Z
""" Module for gocdapi Stage class """ from gocdapi.gobase import GoBase
29.378788
112
0.625064
a008eb9d3812a49e20b4001c7d7b0873ff6642c9
106
py
Python
tests/exog/random/random_exog_32_20.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
tests/exog/random/random_exog_32_20.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
1
2019-11-30T23:39:38.000Z
2019-12-01T04:34:35.000Z
tests/exog/random/random_exog_32_20.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
import pyaf.tests.exog.test_random_exogenous as testrandexog testrandexog.test_random_exogenous( 32,20);
26.5
60
0.858491
a00c8ca9d15e99fb1ab604b2860c37b77ff6ba5e
602
py
Python
cursoemvideopython/desafio_035.py
edmilsonlibanio/Ola-Mundo-Python
33fb08da5878f2784983c623df04d2bbdfb30f25
[ "MIT" ]
null
null
null
cursoemvideopython/desafio_035.py
edmilsonlibanio/Ola-Mundo-Python
33fb08da5878f2784983c623df04d2bbdfb30f25
[ "MIT" ]
null
null
null
cursoemvideopython/desafio_035.py
edmilsonlibanio/Ola-Mundo-Python
33fb08da5878f2784983c623df04d2bbdfb30f25
[ "MIT" ]
null
null
null
# Desenvolva um programa que leia o comprimento de trs retas e diga ao usurio se elas podem ou no formar um tringulo (pesquisar o princpio matemtico que explica a formao de um triangulo). r1 = float(input('Informe o comprimento da primeira reta: ')) r2 = float(input('Informe o comprimento da segunda reta: ')) r3 = flo...
54.727273
195
0.709302
a00cf121c8cf260456f4a0552e06a0dd6ae84b59
1,070
py
Python
cv_lib/detection/models/__init__.py
zhfeing/deep-learning-lib-PyTorch
1a4e1c1939a42c30fe32dd8d6aff210e8604e77b
[ "MIT" ]
4
2021-03-29T07:34:21.000Z
2021-04-25T08:25:30.000Z
cv_lib/detection/models/__init__.py
zhfeing/deep-learning-lib
f96e3a71ae2dbeb44696725ec127ff8f37d4c6e9
[ "MIT" ]
null
null
null
cv_lib/detection/models/__init__.py
zhfeing/deep-learning-lib
f96e3a71ae2dbeb44696725ec127ff8f37d4c6e9
[ "MIT" ]
1
2021-03-30T07:13:31.000Z
2021-03-30T07:13:31.000Z
from functools import partial from typing import Dict import copy from torch.nn import Module from torchvision.models.resnet import * from .ssd_resnet import SSD300_ResNet from .ssd_vgg import SSD300_VGG16 from .backbones import * __REGISTERED_MODELS__ = { "SSD300_ResNet": SSD300_ResNet, "SSD3...
24.883721
63
0.715888
a00dbbabf32006769aba7ac26d4086798f8f5b92
75
py
Python
Py26/01/main.py
xhexe/Py8R
44238c5403e7f76988760a040bf5c292824c22e7
[ "WTFPL" ]
null
null
null
Py26/01/main.py
xhexe/Py8R
44238c5403e7f76988760a040bf5c292824c22e7
[ "WTFPL" ]
null
null
null
Py26/01/main.py
xhexe/Py8R
44238c5403e7f76988760a040bf5c292824c22e7
[ "WTFPL" ]
null
null
null
inp = input("Enter string: ") input_string = ord(inp) print(input_string)
15
29
0.72
a00ec424e1b91d1ccc45e241094dd421a5923bf0
430
py
Python
codewars/tour.py
Imbafar/Codewars_solutions
1b1bb2ba59bcea0d609e97df00b0fd14a61771ca
[ "BSD-3-Clause" ]
null
null
null
codewars/tour.py
Imbafar/Codewars_solutions
1b1bb2ba59bcea0d609e97df00b0fd14a61771ca
[ "BSD-3-Clause" ]
null
null
null
codewars/tour.py
Imbafar/Codewars_solutions
1b1bb2ba59bcea0d609e97df00b0fd14a61771ca
[ "BSD-3-Clause" ]
null
null
null
# https://www.codewars.com/kata/5536a85b6ed4ee5a78000035 import math
25.294118
57
0.562791
a0100c7225ae95c3cbbf519ce214f82cef36e0ce
733
py
Python
csr/kernels/mkl/multiply.py
mdekstrand/csr
665ceefff882d7e42db41034246b6ddb1f93e372
[ "MIT" ]
11
2021-02-07T16:37:31.000Z
2022-03-19T15:19:16.000Z
csr/kernels/mkl/multiply.py
mdekstrand/csr
665ceefff882d7e42db41034246b6ddb1f93e372
[ "MIT" ]
25
2021-02-11T22:42:01.000Z
2022-01-27T21:04:31.000Z
csr/kernels/mkl/multiply.py
lenskit/csr
03fde2d8c3cb7eb330028f34765ff2a06f849631
[ "MIT" ]
2
2021-02-07T02:05:04.000Z
2021-06-01T15:23:09.000Z
import numpy as np from numba import njit from ._api import * # noqa: F403 from .handle import mkl_h __all__ = [ 'mult_ab', 'mult_abt' ]
17.452381
47
0.587995
a0108081c8dab4089a37cbfc386521591e071aeb
4,088
py
Python
acos_client/v30/glm/license.py
hthompson-a10/acos-client
d480a4f239ae824c9dc9ea49a94b84a5bd9d33f8
[ "Apache-2.0" ]
33
2015-02-11T16:42:04.000Z
2021-08-24T16:06:23.000Z
acos_client/v30/glm/license.py
hthompson-a10/acos-client
d480a4f239ae824c9dc9ea49a94b84a5bd9d33f8
[ "Apache-2.0" ]
154
2015-01-12T18:46:28.000Z
2022-01-22T13:59:48.000Z
acos_client/v30/glm/license.py
hthompson-a10/acos-client
d480a4f239ae824c9dc9ea49a94b84a5bd9d33f8
[ "Apache-2.0" ]
68
2015-01-12T22:29:57.000Z
2021-07-13T07:21:05.000Z
# Copyright (C) 2021, A10 Networks 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 requi...
36.176991
84
0.604452
a0114944e8b3edca3a0286ac5a5fb5a714ad3f65
310
py
Python
engine/gamestate.py
Yooooomi/py-drives
6a9dd1a1684b1b65ab553d91eebc77fe099301e7
[ "MIT" ]
null
null
null
engine/gamestate.py
Yooooomi/py-drives
6a9dd1a1684b1b65ab553d91eebc77fe099301e7
[ "MIT" ]
null
null
null
engine/gamestate.py
Yooooomi/py-drives
6a9dd1a1684b1b65ab553d91eebc77fe099301e7
[ "MIT" ]
null
null
null
from engine.gameobject import Gameobject objects = []
16.315789
40
0.680645
a013e70e32f34350be8bc00a3ce5fb9e45e8fb9c
4,912
py
Python
Day3.py
Swicano/AdventCode
3b6f425c773f05911bcc8d8d2f3cf5eb64bfdeff
[ "MIT" ]
null
null
null
Day3.py
Swicano/AdventCode
3b6f425c773f05911bcc8d8d2f3cf5eb64bfdeff
[ "MIT" ]
null
null
null
Day3.py
Swicano/AdventCode
3b6f425c773f05911bcc8d8d2f3cf5eb64bfdeff
[ "MIT" ]
null
null
null
input1str = 'R998,U367,R735,U926,R23,U457,R262,D473,L353,U242,L930,U895,R321,U683,L333,U623,R105,D527,R437,D473,L100,D251,L958,U384,R655,U543,L704,D759,R529,D176,R835,U797,R453,D650,L801,U437,L468,D841,R928,D747,L803,U677,R942,D851,R265,D684,L206,U763,L566,U774,L517,U337,L86,D585,R212,U656,L799,D953,L24,U388,L465,U656,...
72.235294
1,495
0.725366
a015a79f3a34467630656ad6b59d1a4c00a2d976
13,757
py
Python
arcfire/arcfire/models.py
allanberry/arcfire
c41bad3ae7792406e169f9f7acd02f7e52467cbe
[ "MIT" ]
null
null
null
arcfire/arcfire/models.py
allanberry/arcfire
c41bad3ae7792406e169f9f7acd02f7e52467cbe
[ "MIT" ]
38
2015-10-21T19:10:36.000Z
2015-12-18T11:57:12.000Z
arcfire/arcfire/models.py
allanberry/arcfire
c41bad3ae7792406e169f9f7acd02f7e52467cbe
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone from django.core.validators import MaxValueValidator, MinValueValidator from django.core.urlresolvers import reverse from django.conf import settings # # # # # # # # # # # # # # # # # # # # # # # # # # # # Level 0: base abstract and infrastructure classes...
31.993023
460
0.622301
a016b1851ba12bcb3c409fda497f638b8a707e19
953
py
Python
sdk-py/update_user_attributes.py
kg0r0/cognito-examples
54b7a68a9113b231ead99fa4f531d46243e04566
[ "MIT" ]
null
null
null
sdk-py/update_user_attributes.py
kg0r0/cognito-examples
54b7a68a9113b231ead99fa4f531d46243e04566
[ "MIT" ]
null
null
null
sdk-py/update_user_attributes.py
kg0r0/cognito-examples
54b7a68a9113b231ead99fa4f531d46243e04566
[ "MIT" ]
null
null
null
import os import boto3 from getpass import getpass from dotenv import load_dotenv dotenv_path = os.path.join(os.path.dirname(__file__), ".env") load_dotenv(dotenv_path) client = boto3.client("cognito-idp", region_name=os.getenv("REGION_NAME")) username = input("[*] Enter Your Email Address: ") password = getpass("[*]...
27.228571
74
0.704092
a0173627d1c723757b35d4f6e9573e1f4a571e05
259
py
Python
echome/network/serializers.py
jasoncolburne/echome
a5ab87666ae859d1ca8e4902d5c441c0ce36547a
[ "MIT" ]
2
2022-01-31T19:32:51.000Z
2022-01-31T22:42:13.000Z
echome/network/serializers.py
jasoncolburne/echome
a5ab87666ae859d1ca8e4902d5c441c0ce36547a
[ "MIT" ]
7
2021-04-04T01:15:53.000Z
2022-02-07T03:34:48.000Z
echome/network/serializers.py
jasoncolburne/echome
a5ab87666ae859d1ca8e4902d5c441c0ce36547a
[ "MIT" ]
1
2022-02-01T11:34:50.000Z
2022-02-01T11:34:50.000Z
from rest_framework import serializers from .models import VirtualNetwork
32.375
53
0.72973
a01762ca3e759a9a379ad71578ccb40a1edcad3d
738
py
Python
contests_atcoder/abc153/abc153_f.py
takelifetime/competitive-programming
e7cf8ef923ccefad39a1727ca94c610d650fcb76
[ "BSD-2-Clause" ]
null
null
null
contests_atcoder/abc153/abc153_f.py
takelifetime/competitive-programming
e7cf8ef923ccefad39a1727ca94c610d650fcb76
[ "BSD-2-Clause" ]
1
2021-01-02T06:36:51.000Z
2021-01-02T06:36:51.000Z
contests_atcoder/abc153/abc153_f.py
takelifetime/competitive-programming
e7cf8ef923ccefad39a1727ca94c610d650fcb76
[ "BSD-2-Clause" ]
null
null
null
from bisect import bisect_left, bisect_right from collections import deque, Counter from itertools import combinations, permutations from math import gcd, sin, cos, tan, degrees, radians import sys input = lambda: sys.stdin.readline().rstrip() MOD = 10 ** 9 + 7 INF = float("inf") n, d, a = map(int, input().split()) mo...
23.0625
63
0.624661
a017a1ab05231fbc634e10328c46e53e752448d8
16,532
py
Python
sistema_experto.py
Erubeyy/SistemaExperto-
6194f798fad684eb83635fe85bf3f1a7d70ed2a2
[ "MIT" ]
null
null
null
sistema_experto.py
Erubeyy/SistemaExperto-
6194f798fad684eb83635fe85bf3f1a7d70ed2a2
[ "MIT" ]
null
null
null
sistema_experto.py
Erubeyy/SistemaExperto-
6194f798fad684eb83635fe85bf3f1a7d70ed2a2
[ "MIT" ]
null
null
null
from tkinter import* from tkinter import font from experta import * raiz = Tk() raiz.title("Sistema experto- Tipos de covid") raiz.config(bg="#f4f7fa") #raiz.resizable(0,0) mi0Frame = Frame(raiz)#, width="1200", height="700") mi0Frame.grid(row=1, column=0) mi0Frame.config(bg="#f4f7fa") mi3Frame = Frame(raiz)#, width=...
43.851459
335
0.687576
a017aa5f81d90682eeec3d31e4bdb2e999666f4b
6,105
py
Python
socket_temperature_connect.py
MeowMeowZi/PPLTestTool
576f28fb20680b1ed33520d92c552ccafc93d716
[ "MIT" ]
null
null
null
socket_temperature_connect.py
MeowMeowZi/PPLTestTool
576f28fb20680b1ed33520d92c552ccafc93d716
[ "MIT" ]
null
null
null
socket_temperature_connect.py
MeowMeowZi/PPLTestTool
576f28fb20680b1ed33520d92c552ccafc93d716
[ "MIT" ]
null
null
null
import socket import time import shelve preset_command = { 1: ['MB0023,1', 'MI0695,'], 2: ['MB0024,1', 'MI0696,'], 3: ['MB0076,1', 'MI0697,'], 4: ['MB0026,1', 'MI0698,'], } force_command = 'MB0336,1' start_command = 'MB0020,0' stop_command = 'MB0020,1' if __name__ == '__main__': temperature = Te...
30.678392
110
0.552826
a0187e302825ea7cb1c14461fb74435494c1cd4b
12,938
py
Python
wwwdccn/chair_mail/models.py
marvinxu99/dccnsys
8f53728d06b859cace42cc84bc190bc89950d252
[ "MIT" ]
16
2020-03-15T15:33:30.000Z
2021-11-26T21:57:27.000Z
wwwdccn/chair_mail/models.py
marvinxu99/dccnsys
8f53728d06b859cace42cc84bc190bc89950d252
[ "MIT" ]
11
2019-04-27T19:15:43.000Z
2022-03-11T23:43:08.000Z
wwwdccn/chair_mail/models.py
marvinxu99/dccnsys
8f53728d06b859cace42cc84bc190bc89950d252
[ "MIT" ]
10
2020-03-14T09:25:39.000Z
2022-02-21T16:46:33.000Z
from django.conf import settings from django.core.mail import send_mail from django.db import models from django.db.models import ForeignKey, OneToOneField, TextField, CharField, \ SET_NULL, CASCADE, BooleanField, UniqueConstraint from django.db.models.signals import post_save from django.dispatch import receiver f...
35.157609
83
0.659762
a01a6cd80a71c68a6da168b3758e9d7078688990
100
py
Python
Pruebas.py
MacoChave/Server-Iniciales
035d98793a1c20738b7af885d455fd62197988bd
[ "Apache-2.0" ]
null
null
null
Pruebas.py
MacoChave/Server-Iniciales
035d98793a1c20738b7af885d455fd62197988bd
[ "Apache-2.0" ]
null
null
null
Pruebas.py
MacoChave/Server-Iniciales
035d98793a1c20738b7af885d455fd62197988bd
[ "Apache-2.0" ]
null
null
null
from datetime import date from datetime import datetime dateToday = date.today() print(dateToday)
14.285714
29
0.8
a01dc69fc961ecf3abcdcc4efc76fa8f20eeb48a
1,753
py
Python
translator/model.py
marco-nicola/python-translator
6a559874c9899e52a4cac9c2954dcca6b638f002
[ "Apache-2.0" ]
null
null
null
translator/model.py
marco-nicola/python-translator
6a559874c9899e52a4cac9c2954dcca6b638f002
[ "Apache-2.0" ]
null
null
null
translator/model.py
marco-nicola/python-translator
6a559874c9899e52a4cac9c2954dcca6b638f002
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Marco Nicola # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
38.108696
79
0.718768
a01f36af66f5f536cdcfeccc977f7396f86e0837
15,082
py
Python
home/.local/share/tkthemes/clearlooks/create_imgs.py
ssokolow/profile
09f2a842077909d883a08b546659516deec7d719
[ "MIT" ]
9
2015-04-14T22:27:40.000Z
2022-02-23T05:33:00.000Z
home/.local/share/tkthemes/clearlooks/create_imgs.py
ssokolow/profile
09f2a842077909d883a08b546659516deec7d719
[ "MIT" ]
10
2018-06-18T07:57:56.000Z
2021-10-04T06:47:19.000Z
home/.local/share/tkthemes/clearlooks/create_imgs.py
ssokolow/profile
09f2a842077909d883a08b546659516deec7d719
[ "MIT" ]
9
2015-04-14T22:27:42.000Z
2017-11-21T11:34:23.000Z
#!/usr/bin/env python # -*- mode: python; coding: koi8-r; -*- import os import gtk, gobject imdir = 'images' imtype = 'png' background = '#efebe7' #fill_color = 0xff000000 # red fill_color = int('ff000000', 16) if not os.path.exists(imdir): os.mkdir(imdir) gc = None done = False win = gtk....
34.045147
79
0.579631
a01fef4f0de34d121af8b1cbdb955d6acb92f36a
4,687
py
Python
coil_COMdistance.py
Johanu/MDAnalysis_scripts
f44d2b32bb916daa3bd61e9f3ad636db503293bf
[ "MIT" ]
null
null
null
coil_COMdistance.py
Johanu/MDAnalysis_scripts
f44d2b32bb916daa3bd61e9f3ad636db503293bf
[ "MIT" ]
null
null
null
coil_COMdistance.py
Johanu/MDAnalysis_scripts
f44d2b32bb916daa3bd61e9f3ad636db503293bf
[ "MIT" ]
null
null
null
from __future__ import division import matplotlib.pyplot as plt import MDAnalysis as md import numpy as np coil_distance, ASP_distance, ASP_distance1, ASP_distance2 = calculate_dists('structure.pdb', 'equ.dcd') x_vals = [x / 10 for x in range(0, len(coil_distance))] plt.plot(x_vals, coil_distance, linewidth=0.5) #leg ...
39.058333
103
0.667164
a021e7c81cd72a8cb8466d95bea774bd4667239f
1,692
py
Python
src/api/content_flag.py
Viewly/alpha-2
6b6d827197489164d8c4bde4f4d591dcec5a2163
[ "MIT" ]
null
null
null
src/api/content_flag.py
Viewly/alpha-2
6b6d827197489164d8c4bde4f4d591dcec5a2163
[ "MIT" ]
1
2021-05-07T06:26:16.000Z
2021-05-07T06:26:16.000Z
src/api/content_flag.py
Viewly/alpha-2
6b6d827197489164d8c4bde4f4d591dcec5a2163
[ "MIT" ]
null
null
null
import datetime as dt import json from flask_restful import ( Resource, reqparse, ) from flask_security import current_user from marshmallow_sqlalchemy import ModelSchema from .utils import auth_required from .. import db from ..core.utils import log_exception from ..models import ContentFlag flag_schema ...
26.030769
77
0.60461
a0220e4b4dae9e864bc6a43965e05ecf1eb56be9
13,231
py
Python
cgmodsel/utils.py
franknu/cgmodsel
b008ed88e4f10205ee0ff5e9433d5426c1d5ff6a
[ "MIT" ]
1
2020-09-01T08:39:14.000Z
2020-09-01T08:39:14.000Z
cgmodsel/utils.py
franknu/cgmodsel
b008ed88e4f10205ee0ff5e9433d5426c1d5ff6a
[ "MIT" ]
null
null
null
cgmodsel/utils.py
franknu/cgmodsel
b008ed88e4f10205ee0ff5e9433d5426c1d5ff6a
[ "MIT" ]
1
2020-09-04T13:35:41.000Z
2020-09-04T13:35:41.000Z
# -*- coding: utf-8 -*- """ Copyright: Frank Nussbaum (frank.nussbaum@uni-jena.de) This file contains various functions used in the module including - sparse norms and shrinkage operators - a stable logsumexp implementation - array printing-method that allows pasting the output into Python code """ import...
33.752551
90
0.542438
4e41eecc288939d5378c49ce5811a41875918b72
1,091
py
Python
authorization/migrations/0002_auto_20200207_2011.py
KariSpace/CRM_Sedicomm
cb19e90ca99c7a50a1841afbfb878191f62dec5c
[ "MIT" ]
null
null
null
authorization/migrations/0002_auto_20200207_2011.py
KariSpace/CRM_Sedicomm
cb19e90ca99c7a50a1841afbfb878191f62dec5c
[ "MIT" ]
null
null
null
authorization/migrations/0002_auto_20200207_2011.py
KariSpace/CRM_Sedicomm
cb19e90ca99c7a50a1841afbfb878191f62dec5c
[ "MIT" ]
null
null
null
# Generated by Django 2.2.4 on 2020-02-07 18:11 from django.db import migrations, models import django.db.models.deletion import jsonfield.fields
32.088235
122
0.604033
4e428e1c353f9ae16acebfc45bfab7a9a4bd2704
2,081
py
Python
ssd/modeling/head/ssd_head.py
tkhe/ssd-family
a797ec36fda59549aff54419c105813c33d8cdd3
[ "MIT" ]
1
2019-07-12T02:21:24.000Z
2019-07-12T02:21:24.000Z
ssd/modeling/head/ssd_head.py
tkhe/ssd-family
a797ec36fda59549aff54419c105813c33d8cdd3
[ "MIT" ]
null
null
null
ssd/modeling/head/ssd_head.py
tkhe/ssd-family
a797ec36fda59549aff54419c105813c33d8cdd3
[ "MIT" ]
null
null
null
import torch.nn as nn import torch.nn.functional as F from ssd.modeling.anchor import make_anchor_generator from ssd.utils import bbox from .inference import make_post_processor from .loss import make_loss_evaluator from .predictor import make_ssd_predictor
35.87931
96
0.675156
4e42bcb647690572f850059e2f35498edac0af13
415
py
Python
find_max_occurence_simple.py
swatmantis/my-pyscripts
e16af5879b101c30e34e82727292849d1d33f440
[ "Apache-2.0" ]
null
null
null
find_max_occurence_simple.py
swatmantis/my-pyscripts
e16af5879b101c30e34e82727292849d1d33f440
[ "Apache-2.0" ]
null
null
null
find_max_occurence_simple.py
swatmantis/my-pyscripts
e16af5879b101c30e34e82727292849d1d33f440
[ "Apache-2.0" ]
null
null
null
"""Find max element""" #!/usr/bin/env python3 """Find max element""" import random from collections import Counter List = [random.randrange(1, 15) for num in range(10)] frequent_number, frequency = most_frequent(List)[0] print(f"List {List}: \nMost frequent number {frequent_number} \nFrequency: {frequency}")
27.666667
88
0.742169
4e4b385ebb874ffc51cb3af951c49e948dbf2c97
1,659
py
Python
plugin.video.SportsDevil/lib/dialogs/dialogProgress.py
akuala/REPO.KUALA
ea9a157025530d2ce8fa0d88431c46c5352e89d4
[ "Apache-2.0" ]
105
2015-11-28T00:03:11.000Z
2021-05-05T20:47:42.000Z
plugin.video.SportsDevil/lib/dialogs/dialogProgress.py
akuala/REPO.KUALA
ea9a157025530d2ce8fa0d88431c46c5352e89d4
[ "Apache-2.0" ]
918
2015-11-28T14:12:40.000Z
2022-03-23T20:24:49.000Z
plugin.video.SportsDevil/lib/dialogs/dialogProgress.py
akuala/REPO.KUALA
ea9a157025530d2ce8fa0d88431c46c5352e89d4
[ "Apache-2.0" ]
111
2015-12-01T14:06:10.000Z
2020-08-01T10:44:39.000Z
# -*- coding: utf-8 -*- import xbmcgui
28.603448
90
0.603978
4e4b7d98eca7eba2d20b079df0bbd0eb0b4e7a32
3,828
py
Python
bitbake/lib/bb/manifest.py
KDAB/OpenEmbedded-Archos
a525c5629a57ccb8656c22fe5528ce264003f9d8
[ "MIT" ]
3
2015-05-25T10:56:21.000Z
2021-11-27T17:25:26.000Z
bitbake/lib/bb/manifest.py
KDAB/OpenEmbedded-Archos
a525c5629a57ccb8656c22fe5528ce264003f9d8
[ "MIT" ]
1
2021-11-27T17:24:21.000Z
2021-11-27T17:24:21.000Z
bitbake/lib/bb/manifest.py
KDAB/OpenEmbedded-Archos
a525c5629a57ccb8656c22fe5528ce264003f9d8
[ "MIT" ]
2
2016-08-13T08:40:48.000Z
2021-03-26T03:01:03.000Z
# ex:ts=4:sw=4:sts=4:et # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- # # Copyright (C) 2003, 2004 Chris Larson # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. #...
26.4
112
0.544148