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
aab5dd1420b09051fc9fe578384a7add1adbe417
1,932
py
Python
hoods/models.py
badruu/neighborhood
85d30f7451f921c533dc4463aad76ed2d39f8023
[ "MIT" ]
null
null
null
hoods/models.py
badruu/neighborhood
85d30f7451f921c533dc4463aad76ed2d39f8023
[ "MIT" ]
6
2021-03-19T01:10:18.000Z
2022-03-11T23:49:18.000Z
hoods/models.py
badruu/neighborhood
85d30f7451f921c533dc4463aad76ed2d39f8023
[ "MIT" ]
null
null
null
from django.db import models import datetime from django.utils import timezone from django.contrib.auth.models import User from django.urls import reverse from django.core.validators import MaxValueValidator, MinValueValidator
31.16129
80
0.699793
aab613077debdcab1c40bda4b0c2298ea8cef417
5,710
py
Python
src/clf_comparison.py
UBC-MDS/DSCI522_group17
7be4df0d09258a8b021f61e0d7a35022f49a2fdd
[ "MIT" ]
1
2020-12-07T19:52:28.000Z
2020-12-07T19:52:28.000Z
src/clf_comparison.py
UBC-MDS/DSCI522_group17
7be4df0d09258a8b021f61e0d7a35022f49a2fdd
[ "MIT" ]
14
2020-11-18T10:59:07.000Z
2020-12-14T23:49:56.000Z
src/clf_comparison.py
UBC-MDS/DSCI522_group17
7be4df0d09258a8b021f61e0d7a35022f49a2fdd
[ "MIT" ]
3
2020-11-18T10:04:37.000Z
2020-11-20T08:31:14.000Z
# Author: Pan Fan, Chun Chieh Chang, Sakshi Jain # Date: 2020/11/27 """Compare the performance of different classifier and train the best model given cross_validate results . Usage: src/clf_comparison.py <input_file> <input_file1> <output_file> <output_file1> Options: <input_file> Path (including filename and fil...
37.565789
106
0.648511
aab7ca71f6747c996ae533f8dc5d23355cbe2498
1,294
py
Python
hebbmodel/fc.py
aimir-lab/hebbian-learning-cnn
ddaf3a66c1c374960dc680f671e64f3f20387590
[ "MIT" ]
18
2019-09-13T10:19:11.000Z
2021-11-13T22:05:06.000Z
hebbmodel/fc.py
GabrieleLagani/HebbianLearningThesis
0f98f7a3e380e55c9fca6340f4fb0cc5f24917d8
[ "MIT" ]
null
null
null
hebbmodel/fc.py
GabrieleLagani/HebbianLearningThesis
0f98f7a3e380e55c9fca6340f4fb0cc5f24917d8
[ "MIT" ]
5
2019-11-24T08:16:14.000Z
2021-02-15T11:41:18.000Z
import torch.nn as nn import params as P import hebbmodel.hebb as H
30.093023
117
0.718702
aab8ee0d00657fec39263780f21c6f66db24843f
275
py
Python
pure_sklearn/feature_extraction/__init__.py
ashetty1-m/pure-predict
05a0f105fb43532af1a0713dc34b26574d51b563
[ "Apache-2.0" ]
62
2020-02-14T15:54:12.000Z
2021-11-23T14:12:32.000Z
pure_sklearn/feature_extraction/__init__.py
ashetty1-m/pure-predict
05a0f105fb43532af1a0713dc34b26574d51b563
[ "Apache-2.0" ]
9
2020-04-05T16:19:33.000Z
2022-02-08T14:54:56.000Z
pure_sklearn/feature_extraction/__init__.py
ashetty1-m/pure-predict
05a0f105fb43532af1a0713dc34b26574d51b563
[ "Apache-2.0" ]
5
2021-02-26T14:04:17.000Z
2022-02-10T23:06:16.000Z
""" The :mod:`pure_sklearn.feature_extraction` module deals with feature extraction from raw data. It currently includes methods to extract features from text. """ from ._dict_vectorizer import DictVectorizerPure from . import text __all__ = ["DictVectorizerPure", "text"]
27.5
79
0.789091
aab991f211f7427de19a3a6c9a2b406d03220528
3,887
py
Python
plugin.video.mrstealth.serialu.net/uppod.py
mrstealth/kodi-isengard
2f37ba5320c1618fbe635f5683e7329a63195c16
[ "MIT" ]
null
null
null
plugin.video.mrstealth.serialu.net/uppod.py
mrstealth/kodi-isengard
2f37ba5320c1618fbe635f5683e7329a63195c16
[ "MIT" ]
null
null
null
plugin.video.mrstealth.serialu.net/uppod.py
mrstealth/kodi-isengard
2f37ba5320c1618fbe635f5683e7329a63195c16
[ "MIT" ]
null
null
null
#------------------------------------------------------------------------------- # Uppod decoder #------------------------------------------------------------------------------- import urllib2 import cookielib
44.170455
306
0.516337
aabb5248f82bb100273f378ab5c8a89f7d30d6fb
11,796
py
Python
Eir/DTMC/spatialModel/randomMovement/randMoveSIRDV.py
mjacob1002/Eir
ab9cb4e353796ba3ab79b1673adc251d434717cf
[ "MIT" ]
35
2021-06-11T02:33:05.000Z
2021-12-11T06:24:17.000Z
Eir/DTMC/spatialModel/randomMovement/randMoveSIRDV.py
mjacob1002/Eir
ab9cb4e353796ba3ab79b1673adc251d434717cf
[ "MIT" ]
2
2021-05-18T09:24:37.000Z
2021-06-02T13:27:41.000Z
Eir/DTMC/spatialModel/randomMovement/randMoveSIRDV.py
mjacob1002/Eir
ab9cb4e353796ba3ab79b1673adc251d434717cf
[ "MIT" ]
8
2021-07-03T12:15:30.000Z
2021-10-31T20:20:29.000Z
import numpy as np from matplotlib import pyplot as plt import pandas as pd from Eir.DTMC.spatialModel.randomMovement.randMoveSIRD import RandMoveSIRD from Eir.utility import Person1 as Person
44.014925
172
0.622753
aabc2c45a2f070f9b91c1f8410ef7d7691faf98d
183
py
Python
localtalk/application.py
mattcollie/LocalTalk
d17765243cd23d09024544a763a18226be16c50c
[ "MIT" ]
null
null
null
localtalk/application.py
mattcollie/LocalTalk
d17765243cd23d09024544a763a18226be16c50c
[ "MIT" ]
null
null
null
localtalk/application.py
mattcollie/LocalTalk
d17765243cd23d09024544a763a18226be16c50c
[ "MIT" ]
null
null
null
from localtalk import create_app, create_server app = create_app() server = create_server() # server.start() if __name__ == '__main__': app.run(debug=True, host='localhost')
15.25
47
0.715847
aabc5d5e01aac743c814d779d94ae7e8069ace0d
3,087
py
Python
generate_numpy_data.py
kamleshpawar17/FeTS2021
95035ee500721e1c3f9c4b7aed3c105f0d499274
[ "MIT" ]
1
2022-02-22T00:38:33.000Z
2022-02-22T00:38:33.000Z
generate_numpy_data.py
kamleshpawar17/FeTS2021
95035ee500721e1c3f9c4b7aed3c105f0d499274
[ "MIT" ]
null
null
null
generate_numpy_data.py
kamleshpawar17/FeTS2021
95035ee500721e1c3f9c4b7aed3c105f0d499274
[ "MIT" ]
null
null
null
import glob import os import numpy as np import nibabel as nb import argparse def ParseData(list_data): ''' Creates a list of all the slices ''' data_instance = [] for dir_name in list_data: fname = glob.glob(os.path.join(dir_name, '*seg.nii.gz')) f = nb.load(fname[0]) img ...
34.3
103
0.597344
aabc8bf96be40a3c1147bd07e49acc07038b9620
220
py
Python
podcast/tests/urls.py
richardcornish/django-applepodcast
50732acfbe1ca258e5afb44c117a6ac5fa0c1219
[ "BSD-3-Clause" ]
7
2017-11-18T13:02:13.000Z
2021-07-31T21:55:24.000Z
podcast/tests/urls.py
dmitriydef/django-applepodcast
50732acfbe1ca258e5afb44c117a6ac5fa0c1219
[ "BSD-3-Clause" ]
24
2017-07-17T21:53:58.000Z
2018-02-16T07:13:39.000Z
podcast/tests/urls.py
dmitriydef/django-applepodcast
50732acfbe1ca258e5afb44c117a6ac5fa0c1219
[ "BSD-3-Clause" ]
4
2017-09-21T12:43:54.000Z
2020-07-19T21:56:30.000Z
try: from django.urls import include, re_path except ImportError: from django.conf.urls import include, url as re_path urlpatterns = [ re_path(r'^podcast/', include('podcast.urls', namespace='podcast')), ]
22
72
0.713636
aabcc6bd93dd565fe8912f5540d060fac3483c64
2,246
py
Python
odoo_actions/odoo_client/common.py
catalyst-cloud/adjutant-odoo
6d1e473710e1757b92b4344d65d5bd106677fe36
[ "Apache-2.0" ]
1
2020-05-01T18:28:39.000Z
2020-05-01T18:28:39.000Z
odoo_actions/odoo_client/common.py
catalyst-cloud/adjutant-odoo
6d1e473710e1757b92b4344d65d5bd106677fe36
[ "Apache-2.0" ]
null
null
null
odoo_actions/odoo_client/common.py
catalyst-cloud/adjutant-odoo
6d1e473710e1757b92b4344d65d5bd106677fe36
[ "Apache-2.0" ]
2
2018-09-20T05:01:34.000Z
2020-10-17T04:31:47.000Z
from collections import Iterable
29.168831
66
0.580142
aabdff6b46e83b814599086ebf3ca4b5caeb3757
2,070
py
Python
biokeypy/moduleForShowingJudges.py
zacandcheese/biokeypy
d421e8be0b407fd1df395c79ffde409ca80066e2
[ "MIT" ]
null
null
null
biokeypy/moduleForShowingJudges.py
zacandcheese/biokeypy
d421e8be0b407fd1df395c79ffde409ca80066e2
[ "MIT" ]
null
null
null
biokeypy/moduleForShowingJudges.py
zacandcheese/biokeypy
d421e8be0b407fd1df395c79ffde409ca80066e2
[ "MIT" ]
null
null
null
#moduleForShowingJudges #cmd /K "$(FULL_CURRENT_PATH)" #cd ~/Documents/GitHub/Keyboard-Biometric-Project/Project_Tuples #sudo python -m pip install statistics #python analyzeData.py """ Author: Zachary Nowak and Matthew Nowak Date: 3/09/2018 Program Description: This code can record the Press Time and Flight Time of...
27.236842
114
0.746377
aabebbb877a1c20f697d7ae81aa297513ca02e1b
55
py
Python
dcstats/__init__.py
aplested/DC_Pyps
da33fc7d0e7365044e368488d1c7cbbae7473cc7
[ "MIT" ]
1
2021-03-25T18:09:25.000Z
2021-03-25T18:09:25.000Z
dcstats/__init__.py
aplested/DC_Pyps
da33fc7d0e7365044e368488d1c7cbbae7473cc7
[ "MIT" ]
null
null
null
dcstats/__init__.py
aplested/DC_Pyps
da33fc7d0e7365044e368488d1c7cbbae7473cc7
[ "MIT" ]
null
null
null
from dcstats import * from _version import __version__
18.333333
32
0.836364
aabf2126b9910565d37c2a5e085fe433495cd4f3
1,081
py
Python
206_reverse_linked_list.py
wasim92007/leetcode
6f5add68ec35aec445b32668129990c66549c584
[ "MIT" ]
null
null
null
206_reverse_linked_list.py
wasim92007/leetcode
6f5add68ec35aec445b32668129990c66549c584
[ "MIT" ]
null
null
null
206_reverse_linked_list.py
wasim92007/leetcode
6f5add68ec35aec445b32668129990c66549c584
[ "MIT" ]
null
null
null
# Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next
34.870968
74
0.513414
aabfd5bbe9382d35bafe6c720396d8fc59846fad
973
py
Python
python/test_func.py
cuihua-more/code_strudy
fd4e190b7a3640869105db4e09b5d0101bed18e9
[ "Apache-2.0" ]
null
null
null
python/test_func.py
cuihua-more/code_strudy
fd4e190b7a3640869105db4e09b5d0101bed18e9
[ "Apache-2.0" ]
null
null
null
python/test_func.py
cuihua-more/code_strudy
fd4e190b7a3640869105db4e09b5d0101bed18e9
[ "Apache-2.0" ]
null
null
null
import unittest def get_formatted_name(first, last, middle = ""): """""" if middle: full_name = f"{first} {middle} {last}" else: full_name = f"{first} {last}" return full_name.title() if __name__ == "__main__": # __name____main__ unittest.main() #
37.423077
84
0.700925
aac0f353687286013f76de3fe4744864c20ace98
2,350
py
Python
api.py
bart02/RaspTomskBot
331df3acd0ae1ffaadaa778130733c4749035d2b
[ "MIT" ]
null
null
null
api.py
bart02/RaspTomskBot
331df3acd0ae1ffaadaa778130733c4749035d2b
[ "MIT" ]
2
2019-04-06T12:00:53.000Z
2020-07-03T12:49:34.000Z
api.py
bart02/RaspTomskBot
331df3acd0ae1ffaadaa778130733c4749035d2b
[ "MIT" ]
null
null
null
import requests as r from collections import defaultdict
35.606061
139
0.488936
aac10d4f658b5c83786e200cf1103c6f1cea1eed
785
py
Python
donor/models.py
noRubidium/VampirePty
69d9d42c0c5eddc3b363270287e468064d8b3d6c
[ "MIT" ]
null
null
null
donor/models.py
noRubidium/VampirePty
69d9d42c0c5eddc3b363270287e468064d8b3d6c
[ "MIT" ]
null
null
null
donor/models.py
noRubidium/VampirePty
69d9d42c0c5eddc3b363270287e468064d8b3d6c
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.db import models from hospital.models import Hospital # Create your models here.
39.25
75
0.742675
aac268001a0c60ebe8f24fe5cd1af73800034677
763
py
Python
tests/e2e/example/flowapi/test_handler.py
rog-works/lambda-fw
715b36fc2d8d0ea0388aa4ac1336dc8cd5543778
[ "CNRI-Python" ]
null
null
null
tests/e2e/example/flowapi/test_handler.py
rog-works/lambda-fw
715b36fc2d8d0ea0388aa4ac1336dc8cd5543778
[ "CNRI-Python" ]
15
2020-12-05T13:52:13.000Z
2020-12-19T10:14:40.000Z
tests/e2e/example/flowapi/test_handler.py
rog-works/lambda-fw
715b36fc2d8d0ea0388aa4ac1336dc8cd5543778
[ "CNRI-Python" ]
null
null
null
from unittest import TestCase from lf3py.test.helper import data_provider from tests.helper.example.flowapi import perform_api
25.433333
64
0.441678
aac281ff0acf085ecad07a736ee96b4b5d3fb62e
7,651
py
Python
hard-gists/3a2a081e4f3089920fd8aecefecbe280/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/3a2a081e4f3089920fd8aecefecbe280/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/3a2a081e4f3089920fd8aecefecbe280/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
'''Trains a simple convnet on the MNIST dataset. Does flat increment from T. Xiao "Error-Driven Incremental Learning in Deep Convolutional Neural Network for Large-Scale Image Classification" Starts with just 3 classes, trains for 12 epochs then incrementally trains the rest of the classes by reusing the trained we...
40.268421
104
0.654947
aac2c6dc40769fdda9ba80e76f62c737e34017f8
717
py
Python
loss_fn/hybrid_loss.py
alireza-nasiri/SoundCLR
778a4c24b5f15f5ce563ebe71dd443d3e77eb4ef
[ "MIT" ]
7
2021-03-03T18:53:59.000Z
2022-03-03T03:15:36.000Z
loss_fn/hybrid_loss.py
alireza-nasiri/SoundCLR
778a4c24b5f15f5ce563ebe71dd443d3e77eb4ef
[ "MIT" ]
3
2021-04-12T13:05:01.000Z
2021-06-22T02:23:03.000Z
loss_fn/hybrid_loss.py
alireza-nasiri/SoundCLR
778a4c24b5f15f5ce563ebe71dd443d3e77eb4ef
[ "MIT" ]
4
2021-03-17T02:23:59.000Z
2021-11-23T14:08:27.000Z
import torch import torch.nn as nn from loss_fn import contrastive_loss import config
29.875
80
0.739191
aac45d3626a2953afb5b3ec68ea68c1867bfdeda
2,815
py
Python
keystone_tempest_plugin/services/identity/clients.py
ilay09/keystone
e45049dfd46ab7d3e4c6aa48a3046f622f4a3b1e
[ "Apache-2.0" ]
null
null
null
keystone_tempest_plugin/services/identity/clients.py
ilay09/keystone
e45049dfd46ab7d3e4c6aa48a3046f622f4a3b1e
[ "Apache-2.0" ]
1
2019-08-18T09:25:49.000Z
2019-08-18T09:25:49.000Z
keystone_tempest_plugin/services/identity/clients.py
ilay09/keystone
e45049dfd46ab7d3e4c6aa48a3046f622f4a3b1e
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Red Hat, Inc. # # 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 writin...
35.632911
75
0.690941
aac54b5cd7377439826c8dbbf5c7d47f77639abb
606
py
Python
history/migrations/0007_auto_20141026_2348.py
atish3/mig-website
1bcf4c0b93078cccab6b4a25c93c29a2b5efa4be
[ "Apache-2.0" ]
4
2017-10-02T17:44:14.000Z
2020-02-14T17:13:57.000Z
history/migrations/0007_auto_20141026_2348.py
atish3/mig-website
1bcf4c0b93078cccab6b4a25c93c29a2b5efa4be
[ "Apache-2.0" ]
152
2015-01-04T00:08:44.000Z
2022-01-13T00:43:03.000Z
history/migrations/0007_auto_20141026_2348.py
atish3/mig-website
1bcf4c0b93078cccab6b4a25c93c29a2b5efa4be
[ "Apache-2.0" ]
4
2015-04-16T04:27:05.000Z
2021-03-21T20:45:24.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations
30.3
236
0.630363
aac5f2fa729ffc2397e788cc09dace7dcaea0b65
1,521
py
Python
utils/web_socket_client.py
deezusdyse/Hand-controlled-breakout
9dbab2f7edd2d98adf9a2a2e0d910d34a3819fcf
[ "MIT" ]
78
2018-05-08T19:07:31.000Z
2021-12-30T19:06:12.000Z
utils/web_socket_client.py
deezusdyse/Hand-controlled-breakout
9dbab2f7edd2d98adf9a2a2e0d910d34a3819fcf
[ "MIT" ]
5
2018-05-05T08:41:22.000Z
2021-06-28T12:10:20.000Z
utils/web_socket_client.py
deezusdyse/Hand-controlled-breakout
9dbab2f7edd2d98adf9a2a2e0d910d34a3819fcf
[ "MIT" ]
29
2018-05-18T15:09:15.000Z
2022-03-13T11:00:35.000Z
## Author: Victor Dibia ## Web socket client which is used to send socket messages to a connected server. import websocket import time import json from websocket import WebSocketException, WebSocketConnectionClosedException import sys #import _thread as thread import websocket ws = websocket.WebSocket() retry_thresh...
23.765625
92
0.684418
aac6c00a86537ccce38fe26c02205e248a7305d8
8,085
py
Python
scFates/tools/pseudotime.py
LouisFaure/scFates
e925b5316c77d923514ac14572eeb738d9f5dd2c
[ "BSD-3-Clause" ]
4
2021-04-27T09:17:28.000Z
2021-12-30T12:31:22.000Z
scFates/tools/pseudotime.py
LouisFaure/scFates
e925b5316c77d923514ac14572eeb738d9f5dd2c
[ "BSD-3-Clause" ]
4
2021-04-27T09:17:26.000Z
2021-11-26T13:45:18.000Z
scFates/tools/pseudotime.py
LouisFaure/scFates
e925b5316c77d923514ac14572eeb738d9f5dd2c
[ "BSD-3-Clause" ]
null
null
null
from anndata import AnnData import numpy as np import pandas as pd from scipy.sparse import csr_matrix from joblib import delayed from tqdm import tqdm import sys import igraph from .utils import ProgressParallel from .. import logging as logg from .. import settings def pseudotime(adata: AnnData, n_jobs: int = 1, ...
31.830709
119
0.533952
aac7fccb1c9445a4ec71826fa59e6dfe79f78dc7
6,786
py
Python
libai/data/samplers/samplers.py
Oneflow-Inc/libai
e473bd3962f07b1e37232d2be39c8257df0ec0f3
[ "Apache-2.0" ]
55
2021-12-10T08:47:06.000Z
2022-03-28T09:02:15.000Z
libai/data/samplers/samplers.py
Oneflow-Inc/libai
e473bd3962f07b1e37232d2be39c8257df0ec0f3
[ "Apache-2.0" ]
106
2021-11-03T05:16:45.000Z
2022-03-31T06:16:23.000Z
libai/data/samplers/samplers.py
Oneflow-Inc/libai
e473bd3962f07b1e37232d2be39c8257df0ec0f3
[ "Apache-2.0" ]
13
2021-12-29T08:12:08.000Z
2022-03-28T06:59:45.000Z
# coding=utf-8 # Copyright 2021 The OneFlow 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 require...
36.483871
99
0.645299
aaca2df0baf423c25bdc23220c495efb4199a83e
1,198
py
Python
nipype/interfaces/niftyseg/tests/test_lesions.py
mfalkiewicz/nipype
775e21b78fb1ffa2ff9cb12e6f052868bd44d052
[ "Apache-2.0" ]
1
2015-01-19T13:12:27.000Z
2015-01-19T13:12:27.000Z
nipype/interfaces/niftyseg/tests/test_lesions.py
bpinsard/nipype
373bdddba9f675ef153951afa368729e2d8950d2
[ "Apache-2.0" ]
null
null
null
nipype/interfaces/niftyseg/tests/test_lesions.py
bpinsard/nipype
373bdddba9f675ef153951afa368729e2d8950d2
[ "Apache-2.0" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: import pytest from ....testing import example_data from ...niftyreg import get_custom_path from ...niftyreg.tests.test_regutils import no_nifty_tool from .. import FillLesions
29.219512
78
0.687813
aaca67fdbf8819510b7cdbb0ad4af6d2dd57073a
2,358
py
Python
tests/test_services/test_run_filters/actions.py
Jumpscale/ays_jumpscale8
4ff4a2fb3b95de6f46ea494bd5b5a2a0fb9ecdb1
[ "Apache-2.0" ]
4
2017-06-07T08:10:06.000Z
2017-11-10T02:20:38.000Z
tests/test_services/test_run_filters/actions.py
Jumpscale/ays9
63bd414ff06372ba885c55eec528f427e63bcbe1
[ "Apache-2.0" ]
242
2017-05-18T10:51:48.000Z
2019-09-18T15:09:47.000Z
tests/test_services/test_run_filters/actions.py
Jumpscale/ays_jumpscale8
4ff4a2fb3b95de6f46ea494bd5b5a2a0fb9ecdb1
[ "Apache-2.0" ]
5
2017-06-16T15:43:25.000Z
2017-09-29T12:48:06.000Z
def init_actions_(service, args): """ this needs to returns an array of actions representing the depencies between actions. Looks at ACTION_DEPS in this module for an example of what is expected """ # some default logic for simple actions return { 'test': ['install'] } de...
39.966102
180
0.415606
aacab0e2817127cfdd9da58cb922f41c6e1f2756
1,297
py
Python
api/test_processor_api.py
AlexRogalskiy/asma
b028b65e93b0ae4b7540d5ff70e1ff07fd92130f
[ "MIT" ]
4
2020-08-12T04:00:23.000Z
2022-02-12T13:38:44.000Z
api/test_processor_api.py
nadeembinshajahan/asma
b028b65e93b0ae4b7540d5ff70e1ff07fd92130f
[ "MIT" ]
2
2022-02-12T13:38:50.000Z
2022-02-12T13:40:09.000Z
api/test_processor_api.py
AlexRogalskiy/asma
b028b65e93b0ae4b7540d5ff70e1ff07fd92130f
[ "MIT" ]
1
2022-02-12T13:38:44.000Z
2022-02-12T13:38:44.000Z
from fastapi.testclient import TestClient import os import sys sys.path.append("..") from libs.config_engine import ConfigEngine from api.config_keys import Config from api.processor_api import ProcessorAPI import pytest config_path='/repo/config-coral.ini' config = ConfigEngine(config_path) app_instance = ProcessorA...
24.471698
73
0.762529
aacdab9b402913a1a133e50f920b43e0617690ff
1,353
py
Python
setup.py
kiminh/lambda-learner
f409a2982a1fbb19e6331ced66d7342d113449d1
[ "BSD-2-Clause" ]
1
2021-01-11T18:38:12.000Z
2021-01-11T18:38:12.000Z
setup.py
kiminh/lambda-learner
f409a2982a1fbb19e6331ced66d7342d113449d1
[ "BSD-2-Clause" ]
null
null
null
setup.py
kiminh/lambda-learner
f409a2982a1fbb19e6331ced66d7342d113449d1
[ "BSD-2-Clause" ]
null
null
null
from os import path from setuptools import find_namespace_packages, setup this_directory = path.abspath(path.dirname(__file__)) with open('README.md', encoding='utf-8') as f: long_description = f.read() setup( name='lambda-learner', namespace_packages=['linkedin'], version='0.0.1', long_description...
34.692308
90
0.632668
aace2561c26b084c7dd7639860b3d85239529375
222
py
Python
graphiql_strawberry_debug_toolbar/serializers.py
przemub/django-graphiql-strawberry-debug-toolbar
14882b215a63a5b73a26fd9e641ac8fe98f65eaa
[ "MIT" ]
67
2018-03-18T13:06:59.000Z
2021-12-21T19:07:13.000Z
graphiql_strawberry_debug_toolbar/serializers.py
przemub/django-graphiql-strawberry-debug-toolbar
14882b215a63a5b73a26fd9e641ac8fe98f65eaa
[ "MIT" ]
15
2018-03-15T13:12:33.000Z
2022-02-10T14:46:33.000Z
graphiql_strawberry_debug_toolbar/serializers.py
przemub/django-graphiql-strawberry-debug-toolbar
14882b215a63a5b73a26fd9e641ac8fe98f65eaa
[ "MIT" ]
15
2019-06-19T12:04:53.000Z
2022-03-16T16:55:09.000Z
from django.core.serializers.json import DjangoJSONEncoder
24.666667
58
0.689189
aad00b037048f38be17375ec73355e9d7864cd27
9,563
py
Python
Famcy/_util_/_fsubmission.py
nexuni/Famcy
80f8f18fe1614ab3c203ca3466b9506b494470bf
[ "Apache-2.0" ]
null
null
null
Famcy/_util_/_fsubmission.py
nexuni/Famcy
80f8f18fe1614ab3c203ca3466b9506b494470bf
[ "Apache-2.0" ]
12
2022-02-05T04:56:44.000Z
2022-03-30T09:59:26.000Z
Famcy/_util_/_fsubmission.py
nexuni/Famcy
80f8f18fe1614ab3c203ca3466b9506b494470bf
[ "Apache-2.0" ]
null
null
null
import abc import enum import json import pickle import time import Famcy import _ctypes import os import datetime from flask import session from werkzeug.utils import secure_filename # GLOBAL HELPER def get_fsubmission_obj(parent, obj_id): """ Inverse of id() function. But only works if the object is not garbage col...
33.911348
157
0.736066
aad089a6f4a448fc23d035f432e9858d598d7704
1,982
py
Python
user/forms.py
apuc/django-rest-framework
863f2dcca5f2a677ac0e477fc704cc54cd9a53f8
[ "MIT" ]
null
null
null
user/forms.py
apuc/django-rest-framework
863f2dcca5f2a677ac0e477fc704cc54cd9a53f8
[ "MIT" ]
6
2021-03-30T14:08:14.000Z
2021-09-08T02:21:23.000Z
user/forms.py
apuc/django-rest-framework
863f2dcca5f2a677ac0e477fc704cc54cd9a53f8
[ "MIT" ]
null
null
null
from crispy_forms import layout from crispy_forms.helper import FormHelper from django.conf import settings from django.contrib.auth.forms import UserCreationForm from django.urls import reverse_lazy from django import forms from .models import UserProfile
30.492308
75
0.592331
aad22ce0ae134c7841d5d6eb61bc2075cbcc5f71
3,187
py
Python
wadi.py
sensepost/wadi
7d29ee53d63425029c653fb7c20b4ff4c15f289b
[ "CC0-1.0" ]
137
2015-10-23T14:58:42.000Z
2021-11-18T09:59:16.000Z
wadi.py
sensepost/wadi
7d29ee53d63425029c653fb7c20b4ff4c15f289b
[ "CC0-1.0" ]
11
2015-10-31T06:51:50.000Z
2022-02-20T20:22:04.000Z
wadi.py
sensepost/wadi
7d29ee53d63425029c653fb7c20b4ff4c15f289b
[ "CC0-1.0" ]
62
2015-10-23T14:58:49.000Z
2021-11-18T09:18:13.000Z
import sys import os from multiprocessing import Process, Queue, Manager from threading import Timer from wadi_harness import Harness from wadi_debug_win import Debugger import time import hashlib if __name__ == '__main__': #try: w = wadi() w.run() #except: # w.close()
24.898438
81
0.612488
aad2be6c93fd38e19f49dbbdc525b7e3001efbe1
7,720
py
Python
learnIndependentRegressionModel.py
zawlin/multi-modal-regression
61aa6c066834ab1373275decc38e361db5c2cf04
[ "MIT" ]
29
2018-06-21T06:46:17.000Z
2021-09-02T02:47:30.000Z
learnIndependentRegressionModel.py
zawlin/multi-modal-regression
61aa6c066834ab1373275decc38e361db5c2cf04
[ "MIT" ]
1
2018-11-15T01:51:47.000Z
2018-11-21T10:48:31.000Z
learnIndependentRegressionModel.py
zawlin/multi-modal-regression
61aa6c066834ab1373275decc38e361db5c2cf04
[ "MIT" ]
7
2018-06-21T06:46:53.000Z
2021-10-04T09:32:24.000Z
# -*- coding: utf-8 -*- """ Independent model based on Geodesic Regression model R_G """ import torch from torch import nn, optim from torch.autograd import Variable from torch.utils.data import DataLoader import torch.nn.functional as F from dataGenerators import ImagesAll, TestImages, my_collate from axisAngle impo...
33.71179
152
0.748964
aad37494decad9fd0ad1fb72dcfce3587fe45cdf
1,033
py
Python
rick_and_morty_app/views.py
esalcedo94/final_project
7dce4fae8248d820698220d3289bfb49bd96b2cd
[ "MIT" ]
null
null
null
rick_and_morty_app/views.py
esalcedo94/final_project
7dce4fae8248d820698220d3289bfb49bd96b2cd
[ "MIT" ]
4
2021-03-19T01:50:05.000Z
2021-09-22T18:52:13.000Z
rick_and_morty_app/views.py
esalcedo94/final_project
7dce4fae8248d820698220d3289bfb49bd96b2cd
[ "MIT" ]
null
null
null
# from django.shortcuts import render, redirect, get_object_or_404 from .forms import CharacterForm from rick_and_morty_app.models import Character from django.views.generic import ListView, CreateView, UpdateView, DetailView, DeleteView from django.urls import reverse_lazy # new # Create your views here.
31.30303
89
0.771539
aad397b94b0cb0be8ca7c28476744dda7ab4e655
339
py
Python
samples/contacts/pathUtils.py
Trevol/Mask_RCNN
18308082e2c5fd5b4df5d6e40f009b3ebd66c26d
[ "MIT" ]
null
null
null
samples/contacts/pathUtils.py
Trevol/Mask_RCNN
18308082e2c5fd5b4df5d6e40f009b3ebd66c26d
[ "MIT" ]
null
null
null
samples/contacts/pathUtils.py
Trevol/Mask_RCNN
18308082e2c5fd5b4df5d6e40f009b3ebd66c26d
[ "MIT" ]
null
null
null
import os, sys
28.25
72
0.719764
aad3cf7fbb7dfdec62fdd48f0ef851241425453c
6,840
py
Python
event_extractor/train/train.py
chenking2020/event_extract_master
6b8d470d2caa5ec6785eae07bca04e66fb3734b7
[ "MIT" ]
30
2021-01-22T08:06:07.000Z
2022-03-25T14:01:25.000Z
event_extractor/train/train.py
chenking2020/EventTrainServer
6b8d470d2caa5ec6785eae07bca04e66fb3734b7
[ "MIT" ]
4
2021-03-29T09:28:12.000Z
2022-03-25T14:01:14.000Z
event_extractor/train/train.py
chenking2020/EventTrainServer
6b8d470d2caa5ec6785eae07bca04e66fb3734b7
[ "MIT" ]
3
2021-01-22T08:06:08.000Z
2022-02-21T04:04:19.000Z
from __future__ import print_function import sys, os sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from event_extractor.dataprocess import data_loader from event_extractor.train.eval import evaluate import importlib import time if __name__ == '__main__': # train...
47.832168
117
0.550146
aad4319f7007dc6fffcb823fea0b0e260ea324c5
3,298
py
Python
src/oci/object_storage/models/commit_multipart_upload_part_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/object_storage/models/commit_multipart_upload_part_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/object_storage/models/commit_multipart_upload_part_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
31.113208
245
0.654942
aad4be15ea0538f236e4812d499d7d48b22d6200
3,114
py
Python
sorter/lib/data_handler.py
1shooperman/gr-sorter
6efa1b1fc9c7a5d0c8c77d8018122b3bac5730e6
[ "MIT" ]
null
null
null
sorter/lib/data_handler.py
1shooperman/gr-sorter
6efa1b1fc9c7a5d0c8c77d8018122b3bac5730e6
[ "MIT" ]
17
2018-09-03T15:48:33.000Z
2021-05-07T20:14:24.000Z
sorter/lib/data_handler.py
1shooperman/gr-sorter
6efa1b1fc9c7a5d0c8c77d8018122b3bac5730e6
[ "MIT" ]
null
null
null
''' data_handler.py ''' import os from sorter.lib.db import DB from sorter.lib.book_utils import get_by_id, get_by_isbn from sorter.lib.parse_xml import parse_isbn13_response, parse_id_response def store_data(books, db_file): ''' Store the book data in the provided database ''' database = DB(db_file) ...
25.95
91
0.624599
aad6602e278463189f96a290a221da480e19eb2d
3,054
py
Python
data_conversions/prepare_las_filelists.py
nazarred/PointCNN
41043270a2ccde4fddf03e7e90e5c3f511c7454c
[ "MIT" ]
null
null
null
data_conversions/prepare_las_filelists.py
nazarred/PointCNN
41043270a2ccde4fddf03e7e90e5c3f511c7454c
[ "MIT" ]
null
null
null
data_conversions/prepare_las_filelists.py
nazarred/PointCNN
41043270a2ccde4fddf03e7e90e5c3f511c7454c
[ "MIT" ]
null
null
null
#!/usr/bin/python3 '''Prepare Filelists for Semantic3D Segmentation Task.''' from __future__ import absolute_import from __future__ import division from __future__ import print_function import logging import os import math import pathlib import random import argparse from datetime import datetime from logger import ...
37.703704
119
0.614276
aad86497556c746db67d036ea08fdadb6f84750c
7,382
py
Python
survol/sources_types/CIM_ComputerSystem/__init__.py
AugustinMascarelli/survol
7a822900e82d1e6f016dba014af5741558b78f15
[ "BSD-3-Clause" ]
null
null
null
survol/sources_types/CIM_ComputerSystem/__init__.py
AugustinMascarelli/survol
7a822900e82d1e6f016dba014af5741558b78f15
[ "BSD-3-Clause" ]
null
null
null
survol/sources_types/CIM_ComputerSystem/__init__.py
AugustinMascarelli/survol
7a822900e82d1e6f016dba014af5741558b78f15
[ "BSD-3-Clause" ]
null
null
null
""" Computer system. Scripts related to the class CIM_ComputerSystem. """ import sys import socket import lib_util # This must be defined here, because dockit cannot load modules from here, # and this ontology would not be defined. import lib_common from lib_properties import pc # This returns a nice name given th...
38.649215
131
0.671227
aad8819b95f363cf2961e65958f9749138888b61
133
py
Python
Primeiros Passos/1-DAY ONE/Sabendo se o nome da cidade tem santo.py
pedroluceena/TreinosPI
c11a76a1361f61a71e16edb2127eb08c12c090e1
[ "MIT" ]
null
null
null
Primeiros Passos/1-DAY ONE/Sabendo se o nome da cidade tem santo.py
pedroluceena/TreinosPI
c11a76a1361f61a71e16edb2127eb08c12c090e1
[ "MIT" ]
null
null
null
Primeiros Passos/1-DAY ONE/Sabendo se o nome da cidade tem santo.py
pedroluceena/TreinosPI
c11a76a1361f61a71e16edb2127eb08c12c090e1
[ "MIT" ]
null
null
null
cidade = str(input('Qual o Nome da sua Cidade ?: ')).strip() print('Sua cidade possui o nome Santo?',cidade[:5].upper() == 'SANTO')
66.5
70
0.654135
aadbf2b63958e62ec45145d598a2e30bf7ec61e8
391
py
Python
carbonplan_forest_risks/setup/loading.py
norlandrhagen/forest-risks
2cbc87064ac05299dba952c9f0cb8022ffd8909a
[ "MIT" ]
20
2021-05-01T18:08:07.000Z
2022-03-09T10:24:53.000Z
carbonplan_forest_risks/setup/loading.py
norlandrhagen/forest-risks
2cbc87064ac05299dba952c9f0cb8022ffd8909a
[ "MIT" ]
15
2021-03-31T05:20:55.000Z
2022-02-28T13:02:58.000Z
carbonplan_forest_risks/setup/loading.py
norlandrhagen/forest-risks
2cbc87064ac05299dba952c9f0cb8022ffd8909a
[ "MIT" ]
4
2020-10-26T20:52:30.000Z
2021-02-19T07:42:52.000Z
import pathlib import urlpath
23
70
0.608696
aadc6caacc7ccc064997d62040d5601470ca380f
1,656
py
Python
remove_svn_folder.py
sdenisen/test
709bcdd16d0f83f03b04e0bc7918bb3785993c59
[ "Unlicense" ]
null
null
null
remove_svn_folder.py
sdenisen/test
709bcdd16d0f83f03b04e0bc7918bb3785993c59
[ "Unlicense" ]
2
2017-08-24T18:55:37.000Z
2017-08-24T18:59:06.000Z
remove_svn_folder.py
sdenisen/test
709bcdd16d0f83f03b04e0bc7918bb3785993c59
[ "Unlicense" ]
null
null
null
__author__ = 'Sergey' import shutil import os import stat directory_list = [] root = "D:\\_svn_repo\\trunk" remove_dir = ".svn" # 1 - read all directories recursively and store to a variable list of directory. read_all_directory_path(root, directory_list) # 2 - remove directory from the variable. for directory i...
29.571429
92
0.679348
aadcc926ae2bae8f3f547c0e153e1ffc86f3b16e
65
py
Python
tackle/__init__.py
robcxyz/tackle-box
a7a1403d4f7549cdacb32e5b11c1f9043bdd5762
[ "BSD-3-Clause" ]
5
2021-01-05T04:21:37.000Z
2022-01-01T22:12:32.000Z
tackle/__init__.py
robcxyz/tackle-box
a7a1403d4f7549cdacb32e5b11c1f9043bdd5762
[ "BSD-3-Clause" ]
51
2021-01-03T00:41:59.000Z
2022-03-27T00:13:51.000Z
tackle/__init__.py
robcxyz/tackle-box
a7a1403d4f7549cdacb32e5b11c1f9043bdd5762
[ "BSD-3-Clause" ]
1
2022-01-03T11:46:02.000Z
2022-01-03T11:46:02.000Z
"""Main package for tackle box.""" __version__ = "0.1.0-alpha.4"
21.666667
34
0.661538
aaddeb43199a4c0500f1f08b0da1b9779cd9a4f7
1,374
py
Python
app/core/console/base.py
cPoolChia/ChiaAutoplotter-Worker
7368396bda018a5adedef74173aba7b6f8f0eccc
[ "MIT" ]
2
2021-06-02T08:19:27.000Z
2021-06-02T09:53:11.000Z
app/core/console/base.py
cPoolChia/ChiaAutoplotter-Worker
7368396bda018a5adedef74173aba7b6f8f0eccc
[ "MIT" ]
null
null
null
app/core/console/base.py
cPoolChia/ChiaAutoplotter-Worker
7368396bda018a5adedef74173aba7b6f8f0eccc
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from typing import Any, AsyncIterable, Callable, Awaitable, Optional, Union import uuid AsyncStrCallback = Callable[[str], Awaitable[None]]
24.105263
88
0.617904
aadfff06b29955168bb01b2fd687e7d85bcf363a
563
py
Python
apps/flow/run.py
rainydaygit/testtcloudserver
8037603efe4502726a4d794fb1fc0a3f3cc80137
[ "MIT" ]
349
2020-08-04T10:21:01.000Z
2022-03-23T08:31:29.000Z
apps/flow/run.py
rainydaygit/testtcloudserver
8037603efe4502726a4d794fb1fc0a3f3cc80137
[ "MIT" ]
2
2021-01-07T06:17:05.000Z
2021-04-01T06:01:30.000Z
apps/flow/run.py
rainydaygit/testtcloudserver
8037603efe4502726a4d794fb1fc0a3f3cc80137
[ "MIT" ]
70
2020-08-24T06:46:14.000Z
2022-03-25T13:23:27.000Z
from apps.flow.settings import config if config.SERVER_ENV != 'dev': from gevent import monkey monkey.patch_all() else: pass from apps.flow.views.deploy import deploy from apps.flow.views.flow import flow from library.api.tFlask import tflask if __name__ == '__main__': create_app().run(port=confi...
20.107143
59
0.730018
aae039b933dcd56d996e1972cd2fbbaabcc08e08
493
py
Python
villas/controller/components/gateways/villas_relay.py
VILLASframework/VILLAScontroller
e672439797f209afdd5bc62078f7d49c60269aa4
[ "Apache-2.0" ]
null
null
null
villas/controller/components/gateways/villas_relay.py
VILLASframework/VILLAScontroller
e672439797f209afdd5bc62078f7d49c60269aa4
[ "Apache-2.0" ]
null
null
null
villas/controller/components/gateways/villas_relay.py
VILLASframework/VILLAScontroller
e672439797f209afdd5bc62078f7d49c60269aa4
[ "Apache-2.0" ]
null
null
null
from villas.controller.components.gateway import Gateway
24.65
77
0.578093
aae1ec807aa6c921790407473d22408db473c3dc
4,315
py
Python
itertable/gis/mixins.py
1Q1-Open-Source/itertable
73e59be2d1db8433ba954b0242d7964b3da2bf0e
[ "MIT" ]
16
2019-11-11T12:50:32.000Z
2022-03-25T08:52:07.000Z
itertable/gis/mixins.py
1Q1-Open-Source/itertable
73e59be2d1db8433ba954b0242d7964b3da2bf0e
[ "MIT" ]
3
2019-09-24T14:14:04.000Z
2021-11-22T02:17:54.000Z
itertable/gis/mixins.py
1Q1-Open-Source/itertable
73e59be2d1db8433ba954b0242d7964b3da2bf0e
[ "MIT" ]
2
2021-11-08T07:38:31.000Z
2021-12-01T00:01:41.000Z
import fiona from shapely import wkt, geometry from ..loaders import FileLoader from ..parsers.base import BaseParser from ..mappers import TupleMapper def guess_driver(filename): if filename.endswith(".shp"): return "ESRI Shapefile" else: return "GeoJSON"
31.268116
74
0.575435
aae3bc4aae7976bccac4f5b0de858e6206edb768
4,331
py
Python
src/service_framework/connections/out/requester.py
ZacharyATanenbaum/service_framework
b5dde4407998350d1b7ad09284110b986fd4e12a
[ "MIT" ]
1
2020-03-20T21:33:56.000Z
2020-03-20T21:33:56.000Z
src/service_framework/connections/out/requester.py
ZacharyATanenbaum/service_framework
b5dde4407998350d1b7ad09284110b986fd4e12a
[ "MIT" ]
1
2020-03-22T03:48:45.000Z
2020-03-22T03:48:45.000Z
src/service_framework/connections/out/requester.py
ZacharyATanenbaum/service_framework
b5dde4407998350d1b7ad09284110b986fd4e12a
[ "MIT" ]
null
null
null
""" File to house a requester connection """ from logging import getLogger import zmq from service_framework.utils.connection_utils import BaseConnection from service_framework.utils.msgpack_utils import msg_pack, msg_unpack from service_framework.utils.socket_utils import get_requester_socket LOG = getLogger(__name...
31.845588
81
0.58647
aae3dee92f7ddb11b47b7b8a14769a88c001f66c
25,675
py
Python
module/quantization/cluster_q.py
fightingnoble/Robust-ReRAM-NN
22d14386a5298c7a9dd3dce894363c30896abd19
[ "MIT" ]
null
null
null
module/quantization/cluster_q.py
fightingnoble/Robust-ReRAM-NN
22d14386a5298c7a9dd3dce894363c30896abd19
[ "MIT" ]
null
null
null
module/quantization/cluster_q.py
fightingnoble/Robust-ReRAM-NN
22d14386a5298c7a9dd3dce894363c30896abd19
[ "MIT" ]
null
null
null
# from sklearn.cluster._kmeans import * import copy from typing import Union import torch import torch.nn as nn from sklearn.cluster._robustq import * from .quantizer import Quantizer __all__ = ['MiniBatchRobustqTorch', 'RobustqTorch'] # TODO: Use close package def insert_robust_quntizer(module:nn.Module, quant...
41.014377
123
0.518598
aae44756cbe9fb17074f9c08844383373bfa435e
247
py
Python
kattis/Shopping List.py
jaredliw/python-question-bank
9c8c246623d8d171f875700b57772df0afcbdcdf
[ "MIT" ]
1
2021-04-08T07:49:15.000Z
2021-04-08T07:49:15.000Z
kattis/Shopping List.py
jaredliw/leetcode-solutions
9c8c246623d8d171f875700b57772df0afcbdcdf
[ "MIT" ]
null
null
null
kattis/Shopping List.py
jaredliw/leetcode-solutions
9c8c246623d8d171f875700b57772df0afcbdcdf
[ "MIT" ]
1
2022-01-23T02:12:24.000Z
2022-01-23T02:12:24.000Z
# CPU: 0.18 s n_rows, _ = map(int, input().split()) common_items = set(input().split()) for _ in range(n_rows - 1): common_items = common_items.intersection(set(input().split())) print(len(common_items)) print(*sorted(common_items), sep="\n")
30.875
66
0.684211
2a9a4d87b28f9436adbf59fa348294bf68f453a8
155
py
Python
revuo/forms/__init__.py
Lasanha/revuo
3fb2a06515194416aff3b9a9efac321f1af3209a
[ "BSD-3-Clause" ]
1
2020-03-24T23:33:57.000Z
2020-03-24T23:33:57.000Z
revuo/forms/__init__.py
Lasanha/revuo
3fb2a06515194416aff3b9a9efac321f1af3209a
[ "BSD-3-Clause" ]
26
2015-01-20T13:31:57.000Z
2020-06-05T17:26:18.000Z
revuo/forms/__init__.py
Lasanha/revuo
3fb2a06515194416aff3b9a9efac321f1af3209a
[ "BSD-3-Clause" ]
null
null
null
from .blog_item import FormBlogItem from .edit_profile import FormEditProfile from .news_item import FormNewsItem from .publication import FormPublication
31
41
0.870968
2a9a824358bcc69196e77f5087a8a0a54404562e
22,333
py
Python
helperscripts/es2json.py
waehniger/efre-lod-elasticsearch-tools
e5025ac810c369135fab90be88d29ab073ccbebb
[ "Apache-2.0" ]
null
null
null
helperscripts/es2json.py
waehniger/efre-lod-elasticsearch-tools
e5025ac810c369135fab90be88d29ab073ccbebb
[ "Apache-2.0" ]
null
null
null
helperscripts/es2json.py
waehniger/efre-lod-elasticsearch-tools
e5025ac810c369135fab90be88d29ab073ccbebb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- from datetime import datetime import json import elasticsearch import argparse import logging import sys, os, time, atexit from signal import SIGTERM #needed for Daemon from httplib2 import Http #needed for put_dict def put_dict(url, dictionary): ''' Pass ...
42.458175
255
0.557561
2a9ab14e54ff5f86c5d259ed762fb8e2b9216336
2,195
py
Python
4/1.py
ZYM-PKU/Raspberry-3B
bca939a71575d7298d09a8f56cd697ddf63f34d5
[ "MIT" ]
null
null
null
4/1.py
ZYM-PKU/Raspberry-3B
bca939a71575d7298d09a8f56cd697ddf63f34d5
[ "MIT" ]
null
null
null
4/1.py
ZYM-PKU/Raspberry-3B
bca939a71575d7298d09a8f56cd697ddf63f34d5
[ "MIT" ]
null
null
null
import time import os import spidev as SPI import SSD1306 from PIL import Image, ImageDraw, ImageFont # from datetime import datetime PATH = os.path.dirname(__file__) RST = 19 DC = 16 bus = 0 device = 0 # disp = SSD1306.SSD1306(rst=RST, dc=DC, spi=SPI.SpiDev(bus, device)) disp.begin() disp.clear() def disp1()...
27.098765
79
0.591344
2a9b3f2fbc45cf570c14b8caf9673a079f617761
4,008
py
Python
DjangoDemo/language/chart.py
gaivin/GWeb
f3d39e0dcb1640c3466bcf2aa4ebae65c64d4348
[ "MIT" ]
1
2019-11-04T01:18:02.000Z
2019-11-04T01:18:02.000Z
DjangoDemo/language/chart.py
gaivin/GWeb
f3d39e0dcb1640c3466bcf2aa4ebae65c64d4348
[ "MIT" ]
null
null
null
DjangoDemo/language/chart.py
gaivin/GWeb
f3d39e0dcb1640c3466bcf2aa4ebae65c64d4348
[ "MIT" ]
1
2019-11-04T01:18:08.000Z
2019-11-04T01:18:08.000Z
#!/usr/bin/env python # encoding: utf-8 """ @version: v1.0 @author: Gaivin Wang @license: Apache Licence @contact: gaivin@outlook.com @site: @software: PyCharm @file: chart.py @time: 10/10/2018 4:14 PM """ from pyecharts import Bar, Line, WordCloud import pandas as pd import random, os.p...
39.294118
106
0.600798
2a9b5085bd109f647ca53c8bccc9f5901b048ec5
2,773
py
Python
code/evaluate.py
kajal-puri/point-normals-upsampling
5248c0d1b2b26ec9e002eb9520a204cdd186ab1d
[ "MIT" ]
2
2021-04-27T15:09:41.000Z
2021-07-01T00:32:54.000Z
code/evaluate.py
kajal-puri/point-normals-upsampling
5248c0d1b2b26ec9e002eb9520a204cdd186ab1d
[ "MIT" ]
null
null
null
code/evaluate.py
kajal-puri/point-normals-upsampling
5248c0d1b2b26ec9e002eb9520a204cdd186ab1d
[ "MIT" ]
1
2021-10-05T14:08:19.000Z
2021-10-05T14:08:19.000Z
# -*- coding: utf-8 -*- import torch import argparse import numpy as np from model import PointCloudNet from code.utils import fp_sampling, knn_patch, helper_function import os parser = argparse.ArgumentParser() parser.add_argument('--num_points', default=1024, type=int, help='Number of points ...
39.614286
161
0.705373
2a9c29a9ca43c2e78dfd11fb0c0783a70a2f2e37
10,197
py
Python
xyz2image.py
hentr/xyz2image
bee976e0062ee893594e56ead1e75cb5d7a4e8af
[ "MIT" ]
null
null
null
xyz2image.py
hentr/xyz2image
bee976e0062ee893594e56ead1e75cb5d7a4e8af
[ "MIT" ]
null
null
null
xyz2image.py
hentr/xyz2image
bee976e0062ee893594e56ead1e75cb5d7a4e8af
[ "MIT" ]
null
null
null
''' Authors: Trond Henninen(trond.henninen@empa.ch) and Feng Wang This script is for generating normalised Gaussian simulated annular dark-field scanning transmission electron microscopy (ADF-STEM) images from input atomic coordinates. For rapidly generating a large dataset, it approximates a contrast similar to multi...
55.721311
188
0.674806
2a9d635771da63e49497a253910a29aded54decf
906
py
Python
ex084.py
BrianBeyer/pythonExercicios
062e2c6a9e6e6f513185f1fb1d4269d8ca1d9e89
[ "MIT" ]
null
null
null
ex084.py
BrianBeyer/pythonExercicios
062e2c6a9e6e6f513185f1fb1d4269d8ca1d9e89
[ "MIT" ]
null
null
null
ex084.py
BrianBeyer/pythonExercicios
062e2c6a9e6e6f513185f1fb1d4269d8ca1d9e89
[ "MIT" ]
null
null
null
lista = [] pess = [] men = 0 mai = 0 while True: pess.append(str(input('Nome:'))) pess.append(float(input('Peso:'))) if len(lista)==0:# se nao cadastrou ninguem ainda mai = men = pess[1]#o maior o mesmo que o menor e igual pess na posicao 1 que o peso else: if pess[1] > mai: ...
25.885714
96
0.555188
2a9e6aba26f30258549a13ef7697fd4a41b47aac
563
py
Python
search_engine/worker.py
Dhruvacube/search-engine
13ba35d99e1dcb7591975e352d70329d41f868e6
[ "Apache-2.0" ]
null
null
null
search_engine/worker.py
Dhruvacube/search-engine
13ba35d99e1dcb7591975e352d70329d41f868e6
[ "Apache-2.0" ]
null
null
null
search_engine/worker.py
Dhruvacube/search-engine
13ba35d99e1dcb7591975e352d70329d41f868e6
[ "Apache-2.0" ]
null
null
null
import importlib from uvicorn.workers import UvicornWorker
29.631579
77
0.65897
2a9f331439bd99a892c7c6363b31983af66fb320
3,949
py
Python
tensorflow/python/debug/lib/debug_events_reader.py
scentini/tensorflow
204ed332c0886a0e0ab10b22ba8d67b97e1c83c4
[ "Apache-2.0" ]
27
2020-02-29T04:13:22.000Z
2022-02-07T21:54:50.000Z
tensorflow/python/debug/lib/debug_events_reader.py
scentini/tensorflow
204ed332c0886a0e0ab10b22ba8d67b97e1c83c4
[ "Apache-2.0" ]
5
2020-06-01T18:50:38.000Z
2021-07-16T07:13:52.000Z
tensorflow/python/debug/lib/debug_events_reader.py
scentini/tensorflow
204ed332c0886a0e0ab10b22ba8d67b97e1c83c4
[ "Apache-2.0" ]
10
2020-12-15T03:55:24.000Z
2021-12-17T23:14:11.000Z
# Copyright 2019 The TensorFlow 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 applica...
41.135417
80
0.719423
2aa12187c846911b063045b77f3dd27d4bcbb70f
24,225
py
Python
src/amuse/couple/bridge.py
aatrani/amuse
fd1abcfb1b118a9ab13031912abf6e65e9c60dde
[ "Apache-2.0" ]
null
null
null
src/amuse/couple/bridge.py
aatrani/amuse
fd1abcfb1b118a9ab13031912abf6e65e9c60dde
[ "Apache-2.0" ]
2
2018-06-22T13:02:14.000Z
2018-09-06T20:08:43.000Z
src/amuse/couple/bridge.py
aatrani/amuse
fd1abcfb1b118a9ab13031912abf6e65e9c60dde
[ "Apache-2.0" ]
null
null
null
""" bridge-like integrator for amuse the bridge class provides a bridge like coupling between different gravitational integrators. In this way a system composed of multiple components can be evolved taking account of the self gravity of the whole system self consistently, while choosing the most appropiate i...
33.881119
164
0.637647
2aa127aad07445a64e9152911064c6bad0de9f2d
8,808
py
Python
active.py
cgretzem/leaguepkg
8bb298417e948806b1bccd3ffe31ac23ccb62bf3
[ "MIT" ]
1
2021-09-17T22:42:26.000Z
2021-09-17T22:42:26.000Z
active.py
cgretzem/leaguepkg
8bb298417e948806b1bccd3ffe31ac23ccb62bf3
[ "MIT" ]
null
null
null
active.py
cgretzem/leaguepkg
8bb298417e948806b1bccd3ffe31ac23ccb62bf3
[ "MIT" ]
null
null
null
""" Handles classes and methods for an active local Game. Classes: `ActiveGame` - Represents an active LOL game `Player` - represents a player inside the game `ActivePlayer` - subclass of player, represents host `Item` - represents an item in game Methods: `check_status()` -> bool Err...
33.112782
183
0.602293
2aa2c472094d956432f11fdf8f38e4862376bad8
6,406
py
Python
UMLRT2Kiltera_MM/transformation_eq_outside/HExitPoint2BProcDefWhetherOrNotExitPtHasOutgoingTrans.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
3
2017-06-02T19:26:27.000Z
2021-06-14T04:25:45.000Z
UMLRT2Kiltera_MM/transformation_eq_outside/HExitPoint2BProcDefWhetherOrNotExitPtHasOutgoingTrans.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
8
2016-08-24T07:04:07.000Z
2017-05-26T16:22:47.000Z
UMLRT2Kiltera_MM/transformation_eq_outside/HExitPoint2BProcDefWhetherOrNotExitPtHasOutgoingTrans.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
1
2019-10-31T06:00:23.000Z
2019-10-31T06:00:23.000Z
from core.himesis import Himesis import uuid
38.824242
318
0.530909
2aa5453199355e4c36254ebb1452a62267afff50
1,553
py
Python
shellish/command/contrib/ini.py
personnelink/shellish
f130599aabe1ed44323b2374c9e6c3b789f06517
[ "MIT" ]
4
2015-10-06T23:50:20.000Z
2021-06-11T19:20:43.000Z
shellish/command/contrib/ini.py
personnelink/shellish
f130599aabe1ed44323b2374c9e6c3b789f06517
[ "MIT" ]
null
null
null
shellish/command/contrib/ini.py
personnelink/shellish
f130599aabe1ed44323b2374c9e6c3b789f06517
[ "MIT" ]
null
null
null
""" Show the INI config(s) used by a command tree. """ from .. import command
31.06
77
0.568577
2aa5942f73cecef566d01cdaae9fb817121f496b
7,862
py
Python
Report folder/Total_image_PCA_analysis/PCA_image_all_samples_1_plot.py
xiaoyanLi629/Coffee-ring-effect-image-analysis
0873f55ae78775835209371845c26cd6ba1a73e0
[ "MIT" ]
null
null
null
Report folder/Total_image_PCA_analysis/PCA_image_all_samples_1_plot.py
xiaoyanLi629/Coffee-ring-effect-image-analysis
0873f55ae78775835209371845c26cd6ba1a73e0
[ "MIT" ]
null
null
null
Report folder/Total_image_PCA_analysis/PCA_image_all_samples_1_plot.py
xiaoyanLi629/Coffee-ring-effect-image-analysis
0873f55ae78775835209371845c26cd6ba1a73e0
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import matplotlib.image as mpimg import numpy as np from PIL import Image import pandas as pd from sklearn.decomposition import PCA from scipy.spatial.distance import pdist, squareform from scipy.sparse.linalg import eigs from numpy import linalg as LA from mpl_toolkits.mplot3d import Ax...
55.366197
134
0.589672
2aa65b484384e454a6e81e84c558c2dde1338019
3,983
py
Python
example/example_person.py
Shadow-linux/ex_dataclass
1fe186ea990f6f2337fb7ee6b6ba54fa7791afa0
[ "MIT" ]
18
2021-06-29T11:12:42.000Z
2022-03-31T20:31:10.000Z
example/example_person.py
Shadow-linux/ex_dataclass
1fe186ea990f6f2337fb7ee6b6ba54fa7791afa0
[ "MIT" ]
1
2021-06-30T03:12:46.000Z
2021-06-30T03:12:46.000Z
example/example_person.py
Shadow-linux/ex_dataclass
1fe186ea990f6f2337fb7ee6b6ba54fa7791afa0
[ "MIT" ]
3
2021-06-29T11:12:43.000Z
2021-07-08T08:16:12.000Z
import typing from ex_dataclass import ex_dataclass, asdict, field, EXpack # TeamUser all_team = AllTeam(**{ # "is_active": True, "teams": [ { "team_name": "Team-A", "users" : [ { "name": "zhangsan", "age" : 18...
25.863636
205
0.568165
2aa980f2e7bb9369dafe24972122e61fe79c1759
766
py
Python
class and objects/Mro.py
ZephyrAveryl777/Python-Programs
26de85c31af28382d406d27d54186b966a7b1bfc
[ "MIT" ]
6
2020-08-13T11:49:29.000Z
2021-03-07T05:46:17.000Z
class and objects/Mro.py
ZephyrAveryl777/Python-Programs
26de85c31af28382d406d27d54186b966a7b1bfc
[ "MIT" ]
null
null
null
class and objects/Mro.py
ZephyrAveryl777/Python-Programs
26de85c31af28382d406d27d54186b966a7b1bfc
[ "MIT" ]
1
2021-04-24T06:12:48.000Z
2021-04-24T06:12:48.000Z
''' mro stands for Method Resolution Order. It returns a list of types the class is derived from, in the order they are searched for methods''' print(__doc__) print('\n'+'-'*35+ 'Method Resolution Order'+'-'*35) # Diamond inheritance d1_instance = D1() d1_instance.dothis() print(D1....
17.022222
53
0.591384
2aac09b051b13c891b16499f4e8579b8384792aa
1,507
py
Python
src/petmail/test/test_eventsource.py
warner/petmail
2c43f6177e301275e235cc2a155aafba3e66b4c4
[ "MIT" ]
25
2015-04-14T15:55:46.000Z
2021-01-23T16:00:55.000Z
src/petmail/test/test_eventsource.py
warner/petmail
2c43f6177e301275e235cc2a155aafba3e66b4c4
[ "MIT" ]
null
null
null
src/petmail/test/test_eventsource.py
warner/petmail
2c43f6177e301275e235cc2a155aafba3e66b4c4
[ "MIT" ]
1
2018-05-17T08:41:47.000Z
2018-05-17T08:41:47.000Z
from twisted.trial import unittest from ..eventsource import EventSourceParser
35.880952
76
0.52223
2aacd69a9be78b0b125c9417b7a8c0c44c82bb18
116
py
Python
coffea/nanoevents/methods/systematics/__init__.py
Junaid-muhamad/coffea
b644bcf2b48e272e6c78e4b1ddee3c233a67022d
[ "BSD-3-Clause" ]
null
null
null
coffea/nanoevents/methods/systematics/__init__.py
Junaid-muhamad/coffea
b644bcf2b48e272e6c78e4b1ddee3c233a67022d
[ "BSD-3-Clause" ]
null
null
null
coffea/nanoevents/methods/systematics/__init__.py
Junaid-muhamad/coffea
b644bcf2b48e272e6c78e4b1ddee3c233a67022d
[ "BSD-3-Clause" ]
null
null
null
from coffea.nanoevents.methods.systematics.UpDownSystematic import UpDownSystematic __all__ = ["UpDownSystematic"]
29
83
0.853448
2aacece114f8bb2a0a9d49c428291bf6cbab0533
7,121
py
Python
etl/parsers/etw/Microsoft_Windows_SecurityMitigationsBroker.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
104
2020-03-04T14:31:31.000Z
2022-03-28T02:59:36.000Z
etl/parsers/etw/Microsoft_Windows_SecurityMitigationsBroker.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
7
2020-04-20T09:18:39.000Z
2022-03-19T17:06:19.000Z
etl/parsers/etw/Microsoft_Windows_SecurityMitigationsBroker.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
16
2020-03-05T18:55:59.000Z
2022-03-01T10:19:28.000Z
# -*- coding: utf-8 -*- """ Microsoft-Windows-SecurityMitigationsBroker GUID : ea8cd8a5-78ff-4418-b292-aadc6a7181df """ from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct from etl.utils import WString, CString, SystemTime, Guid from etl.dtyp impor...
30.173729
123
0.696391
2aad343bddb6ea115f42e2d6dd3a8e74891cc040
592
py
Python
workbench/speech_text/_deepspeech/segment_audio.py
NAshwinKumar/deep-read
ee13bb0651e9b682c411db073fb52f3136d44ea1
[ "MIT" ]
6
2020-09-26T08:34:19.000Z
2021-11-26T12:59:50.000Z
workbench/speech_text/_deepspeech/segment_audio.py
NAshwinKumar/deep-read
ee13bb0651e9b682c411db073fb52f3136d44ea1
[ "MIT" ]
26
2020-09-26T08:46:40.000Z
2022-02-10T03:18:55.000Z
workbench/speech_text/_deepspeech/segment_audio.py
Acquil/deep-read
aae93c62a0c85ce31eb0e2d759d4d95d7d076c5d
[ "MIT" ]
10
2020-10-08T09:23:41.000Z
2020-12-03T14:59:09.000Z
from pydub import AudioSegment from pydub.silence import split_on_silence def segment(filename,foldername): """ filename : str foldername: str folder to put all the chunks """ sound_file = AudioSegment.from_file(filename) sound_file = sound_file.set_channels(1) sound_file = sound_file.set_frame_rate(16000) ...
32.888889
84
0.760135
2aad36ed8d9e01be2c017eacc17af6c7e6d3a8a0
126
py
Python
01_Language/01_Functions/python/fread.py
cliff363825/TwentyFour
09df59bd5d275e66463e343647f46027397d1233
[ "MIT" ]
3
2020-06-28T07:42:51.000Z
2021-01-15T10:32:11.000Z
01_Language/01_Functions/python/fread.py
cliff363825/TwentyFour
09df59bd5d275e66463e343647f46027397d1233
[ "MIT" ]
9
2021-03-10T22:45:40.000Z
2022-02-27T06:53:20.000Z
01_Language/01_Functions/python/fread.py
cliff363825/TwentyFour
09df59bd5d275e66463e343647f46027397d1233
[ "MIT" ]
1
2021-01-15T10:51:24.000Z
2021-01-15T10:51:24.000Z
# coding: utf-8 import os size = os.path.getsize("test.txt") with open("test.txt", mode="r") as f: print(f.read(size))
14
37
0.626984
2aadc4ef847555f615099779462d93a8df39559d
494
py
Python
CalculateLodsTool.py
makeling/AGSSmartVectorTileTools
009d925f883729f98c0d0744e1d466062dc260e6
[ "Apache-2.0" ]
3
2019-02-19T06:14:03.000Z
2020-01-06T07:57:12.000Z
CalculateLodsTool.py
makeling/AGSSmartVectorTileTools
009d925f883729f98c0d0744e1d466062dc260e6
[ "Apache-2.0" ]
null
null
null
CalculateLodsTool.py
makeling/AGSSmartVectorTileTools
009d925f883729f98c0d0744e1d466062dc260e6
[ "Apache-2.0" ]
2
2019-03-25T09:43:30.000Z
2019-11-28T03:52:56.000Z
# -*- coding: utf-8 -*- # !/usr/bin/python __author__ = 'ma_keling' # Version : 1.0.0 # Start Time : 2018-12-20 # Update Time : # Change Log : ## 1. ## 2. ## 3. import arcpy import CalculateLods execute()
18.296296
68
0.597166
2aadd1bf492d72d9413391d2877375cb66b76d8f
1,099
py
Python
neolearnit/src/main/python/get_vocabulary.py
BBN-E/LearnIt
4f602f113cac9f4a7213b348a42c0fef23e2739c
[ "Apache-2.0" ]
5
2020-08-29T21:23:05.000Z
2022-03-24T19:57:44.000Z
neolearnit/src/main/python/get_vocabulary.py
BBN-E/LearnIt
4f602f113cac9f4a7213b348a42c0fef23e2739c
[ "Apache-2.0" ]
11
2020-03-04T23:03:34.000Z
2022-02-18T04:04:04.000Z
neolearnit/src/main/python/get_vocabulary.py
BBN-E/LearnIt
4f602f113cac9f4a7213b348a42c0fef23e2739c
[ "Apache-2.0" ]
1
2021-05-19T11:51:51.000Z
2021-05-19T11:51:51.000Z
import sys, os, re, codecs, json, glob import random from random import randint from collections import defaultdict from collections import Counter from sets import Set words=Set() if __name__ == "__main__": input_json = sys.argv[1] main(input_json)
22.895833
111
0.604186
2aae87bca48325631f425f14e5ffd5fc9dbc7e0a
19,727
py
Python
openapi_client/api/service_api.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
openapi_client/api/service_api.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
openapi_client/api/service_api.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
# coding: utf-8 """ MBTA MBTA service API. https://www.mbta.com Source code: https://github.com/mbta/api # noqa: E501 The version of the OpenAPI document: 3.0 Contact: developer@mbta.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import re # noqa:...
70.706093
2,464
0.65641
2ab21d6af7562df91669716faae1d4fb2aeb12d2
499
py
Python
interactive_widgets/backend/contexts/docker_context.py
h3ndrk/interactive-widgets-backend
926dea44f00aca8b51893dab533c566728d5e65d
[ "MIT" ]
null
null
null
interactive_widgets/backend/contexts/docker_context.py
h3ndrk/interactive-widgets-backend
926dea44f00aca8b51893dab533c566728d5e65d
[ "MIT" ]
null
null
null
interactive_widgets/backend/contexts/docker_context.py
h3ndrk/interactive-widgets-backend
926dea44f00aca8b51893dab533c566728d5e65d
[ "MIT" ]
null
null
null
import aiodocker import interactive_widgets.backend.contexts.context
27.722222
74
0.685371
2ab257029d0dbdeb4891ca5f55bd97d468685a9c
12,524
py
Python
custom_components/xiaomi_cloud_map_extractor/vacuum_manager.py
elad-bar/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor
b68351b693687033ab6c58a00ce6599c7c4e4e70
[ "MIT" ]
null
null
null
custom_components/xiaomi_cloud_map_extractor/vacuum_manager.py
elad-bar/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor
b68351b693687033ab6c58a00ce6599c7c4e4e70
[ "MIT" ]
null
null
null
custom_components/xiaomi_cloud_map_extractor/vacuum_manager.py
elad-bar/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor
b68351b693687033ab6c58a00ce6599c7c4e4e70
[ "MIT" ]
1
2021-12-25T12:01:27.000Z
2021-12-25T12:01:27.000Z
import io import logging import time from typing import List, Optional from custom_components.xiaomi_cloud_map_extractor.common.map_data import MapData from custom_components.xiaomi_cloud_map_extractor.types import Colors, Drawables, ImageConfig, Sizes, Texts try: from miio import RoborockVacuum, DeviceException ...
36.943953
115
0.660093
2ab6714654a4d72674f09fdaa3a13475da0d16e1
974
py
Python
util.py
yasser888/Semantic-Segmentation-SDC-P12
973f6b8574dfa13413558b625f5675a422a5161e
[ "MIT" ]
null
null
null
util.py
yasser888/Semantic-Segmentation-SDC-P12
973f6b8574dfa13413558b625f5675a422a5161e
[ "MIT" ]
null
null
null
util.py
yasser888/Semantic-Segmentation-SDC-P12
973f6b8574dfa13413558b625f5675a422a5161e
[ "MIT" ]
null
null
null
import os; import time; cont_file_path = './cont.txt'; log_file_path = './logs/'; # can_continue(); # log_f = create_log(); # print(log_f) # log_line(log_f,"1....a"); # log_line(log_f,"2....a"); # log_line(log_f,"3....a");
23.190476
74
0.541068
2ab6f2fd95e89231a622465bab0cf4bb48fade28
418
py
Python
vtr_flow/scripts/benchtracker/flask_cors/__init__.py
HackerFoo/vtr-verilog-to-routing
9bf3c1004e8a7c9f3756167905fd2e71218158d0
[ "MIT" ]
1
2020-05-07T17:38:58.000Z
2020-05-07T17:38:58.000Z
vtr_flow/scripts/benchtracker/flask_cors/__init__.py
HackerFoo/vtr-verilog-to-routing
9bf3c1004e8a7c9f3756167905fd2e71218158d0
[ "MIT" ]
12
2015-06-26T19:47:14.000Z
2015-07-06T17:29:29.000Z
vtr_flow/scripts/benchtracker/flask_cors/__init__.py
HackerFoo/vtr-verilog-to-routing
9bf3c1004e8a7c9f3756167905fd2e71218158d0
[ "MIT" ]
1
2020-08-15T03:04:34.000Z
2020-08-15T03:04:34.000Z
# -*- coding: utf-8 -*- """ flask_cors ~~~~ Flask-CORS is a simple extension to Flask allowing you to support cross origin resource sharing (CORS) using a simple decorator. :copyright: (c) 2014 by Cory Dolphin. :license: MIT, see LICENSE for more details. """ from .decorator import cross_origin...
26.125
75
0.696172
2ab807f882174850903dfd3ada3ceadfda7a1b90
554
py
Python
ownblock/ownblock/apps/parking/views.py
danjac/ownblock
ac662fb7efb2f04567e2f85638c1250286452611
[ "MIT" ]
3
2015-06-12T04:42:02.000Z
2018-10-29T17:09:10.000Z
ownblock/ownblock/apps/parking/views.py
danjac/ownblock
ac662fb7efb2f04567e2f85638c1250286452611
[ "MIT" ]
null
null
null
ownblock/ownblock/apps/parking/views.py
danjac/ownblock
ac662fb7efb2f04567e2f85638c1250286452611
[ "MIT" ]
null
null
null
from rest_framework import viewsets from .models import Vehicle from .serializers import VehicleSerializer
25.181818
63
0.685921
2ab9fbffdfdf51006d95c7a23e622d34842779dc
1,337
py
Python
Pages/checkout_overview_page.py
gykudo/sauce_demo
313b4bd956cad4807d225b0a7ed98ca0be9f3371
[ "MIT" ]
null
null
null
Pages/checkout_overview_page.py
gykudo/sauce_demo
313b4bd956cad4807d225b0a7ed98ca0be9f3371
[ "MIT" ]
null
null
null
Pages/checkout_overview_page.py
gykudo/sauce_demo
313b4bd956cad4807d225b0a7ed98ca0be9f3371
[ "MIT" ]
null
null
null
from Locators.checkout_overview_locator import CheckoutOverviewLocator from Objects.product import Product from Pages.base_page_object import BasePage from Utils.utility import Utils
37.138889
78
0.799551
2aba7a80b083c387ee2bbc9ad1d0586ac7d2b75c
6,336
py
Python
plugin.video.vstream/resources/lib/comaddon.py
akuala/REPO.KUALA
ea9a157025530d2ce8fa0d88431c46c5352e89d4
[ "Apache-2.0" ]
2
2018-11-02T19:55:30.000Z
2020-08-14T02:22:20.000Z
plugin.video.vstream/resources/lib/comaddon.py
akuala/REPO.KUALA
ea9a157025530d2ce8fa0d88431c46c5352e89d4
[ "Apache-2.0" ]
null
null
null
plugin.video.vstream/resources/lib/comaddon.py
akuala/REPO.KUALA
ea9a157025530d2ce8fa0d88431c46c5352e89d4
[ "Apache-2.0" ]
3
2019-12-17T20:47:00.000Z
2021-02-11T19:03:59.000Z
# -*- coding: utf-8 -*- # https://github.com/Kodi-vStream/venom-xbmc-addons import xbmcaddon, xbmcgui, xbmc """System d'importation from resources.lib.comaddon import addon, dialog, VSlog, xbmcgui, xbmc """ """ from resources.lib.comaddon import addon addons = addon() en haut de page. utiliser une fonction comad...
25.756098
126
0.640467
2abc2ed03517cdd21bec733eb97787935e4839c0
2,457
py
Python
android/replace_apk_resource_pro/replace_source.py
roceys/tools_python
9c8d5c1c7c1ae4a4c857a65f5b5f14da1c90e425
[ "Apache-2.0" ]
130
2019-05-19T16:17:26.000Z
2022-03-30T11:48:38.000Z
android/replace_apk_resource_pro/replace_source.py
roceys/tools_python
9c8d5c1c7c1ae4a4c857a65f5b5f14da1c90e425
[ "Apache-2.0" ]
null
null
null
android/replace_apk_resource_pro/replace_source.py
roceys/tools_python
9c8d5c1c7c1ae4a4c857a65f5b5f14da1c90e425
[ "Apache-2.0" ]
119
2019-05-27T09:45:14.000Z
2022-03-09T03:44:53.000Z
#!/usr/bin/env python # encoding: utf-8 """ @version: v1.0 @author: xag @license: Apache Licence @contact: xinganguo@gmail.com @site: http://www.xingag.top @software: PyCharm @file: replace_source.py @time: 4/25/19 10:46 @descriptionapk """ from file_utils import * import os from subprocess import Popen...
22.135135
135
0.582825
2abcd921b69ac065ccb1607e10b4019c98f27da0
226
py
Python
catalog/bindings/gmd/circle_by_center_point_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/gmd/circle_by_center_point_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/gmd/circle_by_center_point_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass from bindings.gmd.arc_by_center_point_type import ArcByCenterPointType __NAMESPACE__ = "http://www.opengis.net/gml"
22.6
70
0.836283
2abdc47ec5c26a0913fa66840b8fe8ccfd50d515
192
py
Python
python_modules/dagster/dagster_tests/cli_tests/workspace_tests/multi_file_target_workspace/example_one/pipelines.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster_tests/cli_tests/workspace_tests/multi_file_target_workspace/example_one/pipelines.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster_tests/cli_tests/workspace_tests/multi_file_target_workspace/example_one/pipelines.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
# type: ignore[attr-defined] from solids import example_one_solid # pylint: disable=import-error from dagster import pipeline
19.2
68
0.786458
2abe21e7674c39c2e36ceacf5a1d3ae67238854a
1,637
py
Python
src/rxn_network/firetasks/utils.py
bigboyabhisthi/reaction-network
b84f16b7261ecd62d7aa8e2681907f6ea0c35565
[ "BSD-3-Clause-LBNL" ]
1
2022-02-22T23:09:47.000Z
2022-02-22T23:09:47.000Z
src/rxn_network/firetasks/utils.py
bigboyabhisthi/reaction-network
b84f16b7261ecd62d7aa8e2681907f6ea0c35565
[ "BSD-3-Clause-LBNL" ]
null
null
null
src/rxn_network/firetasks/utils.py
bigboyabhisthi/reaction-network
b84f16b7261ecd62d7aa8e2681907f6ea0c35565
[ "BSD-3-Clause-LBNL" ]
null
null
null
"Utility Fireworks functions borrowed from the atomate package." import logging import os import sys from typing import Optional def env_chk( val: str, fw_spec: dict, strict: Optional[bool] = True, default: Optional[str] = None, ): """ Code borrowed from the atomate package. env_chk() is ...
26.836066
93
0.660965
2abe330511d1c30bbc24a2fb6be6e9eb79bc3748
1,328
py
Python
train.py
aryachiranjeev/TIC-TAC-TOE-using-RL-
129efdac8246e9fd1416bda1ec7e134fb9cf90b1
[ "MIT" ]
null
null
null
train.py
aryachiranjeev/TIC-TAC-TOE-using-RL-
129efdac8246e9fd1416bda1ec7e134fb9cf90b1
[ "MIT" ]
null
null
null
train.py
aryachiranjeev/TIC-TAC-TOE-using-RL-
129efdac8246e9fd1416bda1ec7e134fb9cf90b1
[ "MIT" ]
null
null
null
import random import torch from game import Game from agent import RLAgent from moves import Moves game=Game() agent=RLAgent() moves=Moves() num_win=0 #initialize no. of win by human num_lose=0 #initialize no. of win by ai but loss by human num_tie=0 random.seed(1000) while True: print("The number of wins are : ...
16.810127
126
0.72741
2abef5933d8688995ffca89d43bae2f0783a8e26
2,265
py
Python
iota-clients/python-client/receive_msg.py
fprotopapa/iota-and-iot
b27690132452877822d95a9e379f275a5fd41edd
[ "MIT" ]
1
2021-11-19T10:56:25.000Z
2021-11-19T10:56:25.000Z
iota-clients/python-client/receive_msg.py
fprotopapa/iota-and-iot
b27690132452877822d95a9e379f275a5fd41edd
[ "MIT" ]
null
null
null
iota-clients/python-client/receive_msg.py
fprotopapa/iota-and-iot
b27690132452877822d95a9e379f275a5fd41edd
[ "MIT" ]
null
null
null
# receive_msg.py # # SPDX-FileCopyrightText: Copyright 2021 Fabbio Protopapa # # SPDX-License-Identifier: MIT # # Receive message from IOTA tangle # import iota_client import os import pprint # Config msg_meta = False env_node_address = 'HORNET_NODE_ADDRESS' # Print Message data # Connect to node and retrieve me...
23.842105
99
0.61766
2abfb7b11aa2ded198b346e1492890affd3b19aa
2,601
py
Python
py3status/modules/systemd_suspend_inhibitor.py
boucman/py3status
84b57304fbf71a466ccb1ed2f2dd039ece6eefb6
[ "BSD-3-Clause" ]
1
2020-04-07T19:11:36.000Z
2020-04-07T19:11:36.000Z
py3status/modules/systemd_suspend_inhibitor.py
boucman/py3status
84b57304fbf71a466ccb1ed2f2dd039ece6eefb6
[ "BSD-3-Clause" ]
2
2018-03-15T18:44:42.000Z
2018-03-15T19:22:04.000Z
py3status/modules/systemd_suspend_inhibitor.py
boucman/py3status
84b57304fbf71a466ccb1ed2f2dd039ece6eefb6
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Turn on and off systemd suspend inhibitor. Configuration parameters: format: display format for this module (default '[\?color=state SUSPEND [\?if=state OFF|ON]]') lock_types: specify state to inhibit, comma separated list https://www.freedesktop.org/wiki/Software/sy...
28.582418
73
0.618608
2ac03cc53a106bb021d3795e2d6e15a15beade33
1,595
py
Python
maze/maze.py
SteliosKliafas/shortest_path_algorithms
0f28973bce7d53feeee202424b448b5007b5df68
[ "MIT" ]
null
null
null
maze/maze.py
SteliosKliafas/shortest_path_algorithms
0f28973bce7d53feeee202424b448b5007b5df68
[ "MIT" ]
null
null
null
maze/maze.py
SteliosKliafas/shortest_path_algorithms
0f28973bce7d53feeee202424b448b5007b5df68
[ "MIT" ]
null
null
null
import numpy as np import time
35.444444
101
0.598746
2ac0c0b791774e16cf9e50fa05289f36f0254019
2,707
py
Python
lexer.py
standy66/kaleidoscope-python
e0fa536871e63ab8b06a0b6fc04375eca788df06
[ "Apache-2.0" ]
1
2020-06-09T12:10:49.000Z
2020-06-09T12:10:49.000Z
lexer.py
standy66/kaleidoscope-python
e0fa536871e63ab8b06a0b6fc04375eca788df06
[ "Apache-2.0" ]
null
null
null
lexer.py
standy66/kaleidoscope-python
e0fa536871e63ab8b06a0b6fc04375eca788df06
[ "Apache-2.0" ]
null
null
null
from typing import Callable from enum import Enum from io import TextIOBase import sys def main(): l = Lexer(sys.stdin) while True: tok = l.next_token() print(tok) if tok.type == TokenType.EOF: break if __name__ == "__main__": main()
27.907216
80
0.561138
2ac2ca8daf085ca9db44042efdfb98a16efe100b
1,175
py
Python
astrosql/deprecated/query.py
ketozhang/astroSQL
390195dc737df7a91b23e22c626f64b20fa04feb
[ "Apache-2.0" ]
null
null
null
astrosql/deprecated/query.py
ketozhang/astroSQL
390195dc737df7a91b23e22c626f64b20fa04feb
[ "Apache-2.0" ]
1
2020-03-27T20:34:27.000Z
2020-03-28T01:46:30.000Z
astrosql/deprecated/query.py
ketozhang/astroSQL
390195dc737df7a91b23e22c626f64b20fa04feb
[ "Apache-2.0" ]
null
null
null
import peeweedb import astropy.units as u def get_by_basename(db, table, basename): """Get data from SQL database by basename. Returns a list of dict""" if isinstance(table, str): assert table in db.get_tables(), "Sanity Check Failed: Table queried does not exist" table = peeweedb.tabl...
29.375
94
0.622979
2ac61fcea69ad7476d8abf7af785c80670e0b3ef
5,878
py
Python
venv/lib/python3.8/site-packages/ansible_collections/community/general/plugins/modules/remote_management/redfish/ilo_redfish_info.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
1
2022-02-24T18:15:56.000Z
2022-02-24T18:15:56.000Z
venv/lib/python3.8/site-packages/ansible_collections/community/general/plugins/modules/remote_management/redfish/ilo_redfish_info.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/ansible_collections/community/general/plugins/modules/remote_management/redfish/ilo_redfish_info.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (c) 2021-2022 Hewlett Packard Enterprise, Inc. All rights reserved. # GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = ''...
31.433155
104
0.586764
2ac69b5d4714157fc71eff7a6a23f99b61269132
8,407
py
Python
train/solver.py
nhonth/DeLF-pytorch
5577a447a0330b9e976cff56a10fc91669216b8c
[ "MIT" ]
315
2019-01-28T05:45:25.000Z
2022-03-28T07:58:13.000Z
train/solver.py
nhonth/DeLF-pytorch
5577a447a0330b9e976cff56a10fc91669216b8c
[ "MIT" ]
38
2019-02-21T06:17:00.000Z
2021-07-05T12:40:00.000Z
train/solver.py
nhonth/DeLF-pytorch
5577a447a0330b9e976cff56a10fc91669216b8c
[ "MIT" ]
74
2019-01-28T08:08:10.000Z
2021-12-20T09:27:03.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' PyTorch Implementation of training DeLF feature. Solver for step 1 (finetune local descriptor) nashory, 2018.04 ''' import os, sys, time import shutil import torch import torch.nn as nn import torch.optim as optim from torch.autograd import Variable from utils import...
36.872807
102
0.512906
2ac6f82afb425514d16cfc4ba1244d63a2476877
13,248
py
Python
models/p2pnet.py
mfatiho/CrowdCounting-P2PNet
b89ecf9b374bee8973c331bb44b99611152cd3ac
[ "BSD-3-Clause" ]
89
2021-08-09T12:51:34.000Z
2022-03-25T09:06:40.000Z
models/p2pnet.py
FeiGeChuanShu/CrowdCounting-P2PNet
a7c5a9546d0b5be16367db393fbbd81427c11b82
[ "BSD-3-Clause" ]
24
2021-08-16T09:17:38.000Z
2022-03-30T08:29:02.000Z
models/p2pnet.py
FeiGeChuanShu/CrowdCounting-P2PNet
a7c5a9546d0b5be16367db393fbbd81427c11b82
[ "BSD-3-Clause" ]
25
2021-08-12T09:37:30.000Z
2022-03-18T07:46:17.000Z
import torch import torch.nn.functional as F from torch import nn from util.misc import (NestedTensor, nested_tensor_from_tensor_list, accuracy, get_world_size, interpolate, is_dist_avail_and_initialized) from .backbone import build_backbone from .matcher import build_mat...
38.736842
113
0.648551
2ac6fe1fc438d094fff91a6578a469fe05245d15
7,110
py
Python
visualize_fullscene.py
ronhlee/retinanet_ATR
32b043850abdd19bb142a88e2f2e16179aea4ff7
[ "Apache-2.0" ]
1
2020-09-20T03:07:02.000Z
2020-09-20T03:07:02.000Z
visualize_fullscene.py
ronhlee/retinanet_ATR
32b043850abdd19bb142a88e2f2e16179aea4ff7
[ "Apache-2.0" ]
null
null
null
visualize_fullscene.py
ronhlee/retinanet_ATR
32b043850abdd19bb142a88e2f2e16179aea4ff7
[ "Apache-2.0" ]
null
null
null
import numpy as np import torchvision import os import argparse import warnings warnings.filterwarnings('ignore') from PIL import Image, ImageDraw import torch from torch.utils.data import Dataset, DataLoader from torchvision import datasets, models, transforms import torchvision.ops from retinanet.dataloader import CS...
47.4
115
0.598312
2ac870289e4a135beaad406a435f626a1f8fb78e
518
py
Python
data_sqlalchemy/word.py
natter1/estonian_learner
da7837f0d64f4c1f6a212a9c473252c4b834699a
[ "MIT" ]
null
null
null
data_sqlalchemy/word.py
natter1/estonian_learner
da7837f0d64f4c1f6a212a9c473252c4b834699a
[ "MIT" ]
null
null
null
data_sqlalchemy/word.py
natter1/estonian_learner
da7837f0d64f4c1f6a212a9c473252c4b834699a
[ "MIT" ]
null
null
null
import datetime from data_sqlalchemy.modelbase import SqlAlchemyBase import sqlalchemy as sa
32.375
84
0.727799
2acb0f83d07a4c5d2b9efe4b3bc5c3cf86acc90c
9,023
py
Python
nodes/BASE/socket_type.py
nwtajcky/RenderStackNode
31516af6fa8572c9d6ee3df017e59cae394047a3
[ "Apache-2.0" ]
null
null
null
nodes/BASE/socket_type.py
nwtajcky/RenderStackNode
31516af6fa8572c9d6ee3df017e59cae394047a3
[ "Apache-2.0" ]
1
2021-12-27T06:39:08.000Z
2021-12-27T06:39:08.000Z
nodes/BASE/socket_type.py
nwtajcky/RenderStackNode
31516af6fa8572c9d6ee3df017e59cae394047a3
[ "Apache-2.0" ]
null
null
null
import bpy from bpy.props import * from ...preferences import get_pref # Vector and Subtype #################### # Object and subtype ################## def poll_camera(self, object): return object.type == 'CAMERA' # other pointer property ############### ### old types ### ################# ...
27.259819
109
0.657653
2acb3aee2e0f5e506188c20bf399d1690f3f87a1
35
py
Python
webapp/journal_plugins/example_plugin/models.py
TheCDC/journal_app
18c84acfc7b996329d34c3bdd54348cdfdd55252
[ "MIT" ]
2
2018-03-08T16:21:45.000Z
2018-10-22T02:13:22.000Z
webapp/journal_plugins/example_plugin/models.py
TheCDC/journal_app
18c84acfc7b996329d34c3bdd54348cdfdd55252
[ "MIT" ]
3
2018-05-25T04:21:09.000Z
2020-02-10T00:46:37.000Z
webapp/journal_plugins/example_plugin/models.py
TheCDC/journal_app
18c84acfc7b996329d34c3bdd54348cdfdd55252
[ "MIT" ]
null
null
null
from webapp.extensions import db
8.75
32
0.8
2acb92b4e54de96f237951644e26af0eb47db325
5,823
py
Python
Unsupervised/autoencoder/evaluate_model.py
darshil0193/CSC-522---Object-Recognition
f357e6fd3cd69e7335bc25d55eb57b9b5b4e5d88
[ "MIT" ]
null
null
null
Unsupervised/autoencoder/evaluate_model.py
darshil0193/CSC-522---Object-Recognition
f357e6fd3cd69e7335bc25d55eb57b9b5b4e5d88
[ "MIT" ]
null
null
null
Unsupervised/autoencoder/evaluate_model.py
darshil0193/CSC-522---Object-Recognition
f357e6fd3cd69e7335bc25d55eb57b9b5b4e5d88
[ "MIT" ]
1
2018-12-27T21:56:13.000Z
2018-12-27T21:56:13.000Z
from keras.models import load_model import numpy as np import pandas as pd from keras.preprocessing.image import ImageDataGenerator from sklearn.cluster import KMeans from time import time # Takes a pandas dataframe containing the cluster assignment and ground truth for each data point # and returns the purity of the ...
35.944444
115
0.670273