hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
ea53fd441fd38a9c7b9db7db2a21779711dfe5a5
195
py
Python
xin-era/foundation/segment_tree/main.py
fan-weiwei/algo-prep
56514630cfe58d451dd126897459cca81bf1b2af
[ "Apache-2.0" ]
null
null
null
xin-era/foundation/segment_tree/main.py
fan-weiwei/algo-prep
56514630cfe58d451dd126897459cca81bf1b2af
[ "Apache-2.0" ]
null
null
null
xin-era/foundation/segment_tree/main.py
fan-weiwei/algo-prep
56514630cfe58d451dd126897459cca81bf1b2af
[ "Apache-2.0" ]
null
null
null
# Goal: # # Find the sums of subsections of an array # Change an element of the array and don't recalculate everything if __name__ == '__main__': arr = [1,2,3,4,5] print('here')
15
65
0.641026
0
0
0
0
0
0
0
0
131
0.671795
ea540d35be6aa8bb6a870342c44c751f5089211c
2,658
py
Python
Python/visualization.py
richieliuse/SegmentationCNN
12aaeff53d01f7c2ddd1f27489283b3062bb1d4a
[ "MIT" ]
54
2016-11-19T02:12:04.000Z
2022-02-24T14:26:41.000Z
Python/visualization.py
richieliuse/SegmentationCNN
12aaeff53d01f7c2ddd1f27489283b3062bb1d4a
[ "MIT" ]
7
2019-05-01T10:51:36.000Z
2022-02-10T04:24:54.000Z
Python/visualization.py
richieliuse/SegmentationCNN
12aaeff53d01f7c2ddd1f27489283b3062bb1d4a
[ "MIT" ]
13
2016-08-06T00:15:55.000Z
2021-12-26T20:20:35.000Z
# encoding: utf-8 """ Visualization functions for features and predictions. Copyright 2016 Matthias Leimeister """ import numpy as np from feature_extraction import load_raw_features from evaluation import post_processing import matplotlib.pyplot as plt import pickle def visualize_predictions(): """ ...
25.805825
110
0.648232
0
0
0
0
0
0
0
0
704
0.264861
ea546f15a82d98847008f1b61316d71d6a4f99fe
7,468
py
Python
python/edgeauth/token_builder.py
ian-ross/EdgeAuth
f00fcd5287dafbe350ac6ac97d7d073dec6278de
[ "Apache-2.0" ]
3
2020-07-27T07:08:42.000Z
2021-11-07T20:02:03.000Z
python/edgeauth/token_builder.py
ian-ross/EdgeAuth
f00fcd5287dafbe350ac6ac97d7d073dec6278de
[ "Apache-2.0" ]
2
2021-04-12T18:34:38.000Z
2021-04-29T15:17:11.000Z
python/edgeauth/token_builder.py
ian-ross/EdgeAuth
f00fcd5287dafbe350ac6ac97d7d073dec6278de
[ "Apache-2.0" ]
7
2020-01-17T09:54:34.000Z
2021-11-11T17:16:52.000Z
from time import time from datetime import datetime from .digest_tokens import DigestTokens class TokenBuilder: application_id = None secret = None token = {} def __init__(self): """Token builder helper class to create digest tokens that can be used with the Phenix platform. ...
28.287879
98
0.604847
7,373
0.987279
0
0
0
0
0
0
3,526
0.472148
ea55fb37f7d90d99122deeb02d480c900db16d68
343
py
Python
myhood/migrations/0010_remove_neighborhood_occupants_count.py
kiptoo-rotich/neighborhood
54974922dbd52e83ccfc6ab8c5cf5e3b258211fb
[ "MIT" ]
null
null
null
myhood/migrations/0010_remove_neighborhood_occupants_count.py
kiptoo-rotich/neighborhood
54974922dbd52e83ccfc6ab8c5cf5e3b258211fb
[ "MIT" ]
null
null
null
myhood/migrations/0010_remove_neighborhood_occupants_count.py
kiptoo-rotich/neighborhood
54974922dbd52e83ccfc6ab8c5cf5e3b258211fb
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-07-26 18:46 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('myhood', '0009_business_created_on'), ] operations = [ migrations.RemoveField( model_name='neighborhood', name='occupants_co...
19.055556
47
0.609329
258
0.752187
0
0
0
0
0
0
112
0.326531
ea584960cfdef9e2884e44f505e9d436fd02c8f8
954
py
Python
modules/blog.py
rdelfin/personal-site
cb89a9b9fe4d2c522e18d953c5a26e28219066e8
[ "MIT" ]
null
null
null
modules/blog.py
rdelfin/personal-site
cb89a9b9fe4d2c522e18d953c5a26e28219066e8
[ "MIT" ]
null
null
null
modules/blog.py
rdelfin/personal-site
cb89a9b9fe4d2c522e18d953c5a26e28219066e8
[ "MIT" ]
null
null
null
from flask import Blueprint, Response, abort, render_template from utils import blog as blog_utils from utils import tags as tag_utils bp = Blueprint("blog", __name__) @bp.route("/", methods=["GET"]) def blog(): return blog_utils.respond_blog_list() @bp.route("/post_<post_name>", methods=["GET"]) def blog_pos...
28.909091
88
0.708595
0
0
0
0
773
0.810273
0
0
108
0.113208
ea588a3617cbc016fb5719414b03fb8f8e82c488
3,208
py
Python
autolint/runners.py
fmontoto/autolint
25430e5b654d69c14d80f66d1297dc7a7ade9f79
[ "MIT" ]
null
null
null
autolint/runners.py
fmontoto/autolint
25430e5b654d69c14d80f66d1297dc7a7ade9f79
[ "MIT" ]
null
null
null
autolint/runners.py
fmontoto/autolint
25430e5b654d69c14d80f66d1297dc7a7ade9f79
[ "MIT" ]
null
null
null
import collections import subprocess class Runner(object): """Base object to run linters.""" _runners = collections.defaultdict(lambda: ByFileRunner) def __init__(self): """Runner constructor""" pass @classmethod def new_runner(cls, name): """Return an instance of a Runn...
32.734694
80
0.569202
3,165
0.986596
0
0
305
0.095075
0
0
1,625
0.506546
ea5ac3ac50c918deeb7f8f4138b0c8ba4507a1ff
138
py
Python
app/recipe/models.py
shivam230697/recipe-api
3b614a591577b75d48eb2d9d458ddd3abd81644c
[ "MIT" ]
null
null
null
app/recipe/models.py
shivam230697/recipe-api
3b614a591577b75d48eb2d9d458ddd3abd81644c
[ "MIT" ]
null
null
null
app/recipe/models.py
shivam230697/recipe-api
3b614a591577b75d48eb2d9d458ddd3abd81644c
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class TestModel(models.Model): test_field = models.IntegerField(default=0)
17.25
47
0.76087
78
0.565217
0
0
0
0
0
0
26
0.188406
ea5bc5156458545268e929502e53f862acdfcdb2
590
py
Python
133. Clone Graph.py
Dharaneeshwar/Leetcode
cc3ed07f6ac5f4d6e3f60c57a94a06a8be2f5287
[ "MIT" ]
4
2020-11-17T05:24:24.000Z
2021-06-14T21:01:45.000Z
133. Clone Graph.py
Dharaneeshwar/Leetcode
cc3ed07f6ac5f4d6e3f60c57a94a06a8be2f5287
[ "MIT" ]
null
null
null
133. Clone Graph.py
Dharaneeshwar/Leetcode
cc3ed07f6ac5f4d6e3f60c57a94a06a8be2f5287
[ "MIT" ]
null
null
null
""" # Definition for a Node. class Node: def __init__(self, val = 0, neighbors = None): self.val = val self.neighbors = neighbors if neighbors is not None else [] """ class Solution: dairy = {} def cloneGraph(self, node: 'Node') -> 'Node': if not node: return None ...
25.652174
67
0.549153
398
0.674576
0
0
0
0
0
0
198
0.335593
ea5bdaa1291c21dac6e42524e3e0a66e0bdee80e
1,580
py
Python
pythonidbot/error/__init__.py
hexatester/pythonidbot
39964a340dca90dd64e3cd45d0513d5ae0be3986
[ "MIT" ]
1
2021-02-01T15:19:25.000Z
2021-02-01T15:19:25.000Z
bot/error/__init__.py
hexatester/ptb-skeleton
f6f8b3b0dd814e223a8650a70a6749b6f208a225
[ "MIT" ]
null
null
null
bot/error/__init__.py
hexatester/ptb-skeleton
f6f8b3b0dd814e223a8650a70a6749b6f208a225
[ "MIT" ]
null
null
null
import logging from telegram.error import ( TelegramError, Unauthorized, BadRequest, TimedOut, ChatMigrated, NetworkError, ) from .badrequest import badrequest from .chatmigrated import chatmigrated from .networkerror import networkerror from .telegramerror import telegramerror from .timedout im...
29.811321
88
0.703797
0
0
0
0
0
0
0
0
422
0.267089
ea5c2b0dc4b47d7f49ad8aff5279a05c1976c300
2,590
py
Python
numpyro/examples/runge_kutta.py
ahmadsalim/numpyro
015c80ddd24cf6bc89006fc3a70b424fecd09331
[ "Apache-2.0" ]
3
2020-08-25T14:31:08.000Z
2020-08-26T02:23:08.000Z
numpyro/examples/runge_kutta.py
ahmadsalim/numpyro
015c80ddd24cf6bc89006fc3a70b424fecd09331
[ "Apache-2.0" ]
null
null
null
numpyro/examples/runge_kutta.py
ahmadsalim/numpyro
015c80ddd24cf6bc89006fc3a70b424fecd09331
[ "Apache-2.0" ]
1
2020-09-11T10:08:27.000Z
2020-09-11T10:08:27.000Z
import functools from typing import Callable, TypeVar import jax import jax.numpy as jnp def scan(f, s, as_): bs = [] for a in as_: s, b = f(s, a) bs.append(b) return s, jnp.concatenate(bs) KwArg = TypeVar('KwArg') @functools.partial(jax.jit, static_argnums=(0, 1, 2, 3, 4, 5, 6, 7)) d...
37.536232
114
0.563707
0
0
0
0
1,919
0.740927
0
0
268
0.103475
ea5ce034937183164e81a955f75fc682707059c6
131
py
Python
python-opencv/blog2-pixel/demo7.py
meteor1993/python-learning
4ee574c9360caf6e63bb6ee2ef31fa6a9918fa40
[ "MIT" ]
83
2019-10-15T06:54:06.000Z
2022-03-28T14:08:21.000Z
python-opencv/blog2-pixel/demo7.py
wenxuefeng3930/python-learning
4ee574c9360caf6e63bb6ee2ef31fa6a9918fa40
[ "MIT" ]
1
2020-04-16T08:13:19.000Z
2020-07-14T01:52:46.000Z
python-opencv/blog2-pixel/demo7.py
wenxuefeng3930/python-learning
4ee574c9360caf6e63bb6ee2ef31fa6a9918fa40
[ "MIT" ]
74
2019-11-02T08:10:36.000Z
2022-02-19T12:23:36.000Z
import cv2 as cv from matplotlib import pyplot as plt img=cv.imread('maliao.jpg', cv.IMREAD_COLOR) plt.imshow(img) plt.show()
21.833333
45
0.740458
0
0
0
0
0
0
0
0
12
0.091603
ea5d2e688d4dea54f8e149ad7683f67e025d7b0f
1,713
py
Python
editaveis/prototipos/protoLevenshtein.py
Ziul/tcc1
97dc2b9afcd6736aa8158066b95a698301629543
[ "CC-BY-3.0" ]
null
null
null
editaveis/prototipos/protoLevenshtein.py
Ziul/tcc1
97dc2b9afcd6736aa8158066b95a698301629543
[ "CC-BY-3.0" ]
2
2015-11-21T02:30:20.000Z
2015-11-21T02:30:35.000Z
editaveis/prototipos/protoLevenshtein.py
Ziul/tcc1
97dc2b9afcd6736aa8158066b95a698301629543
[ "CC-BY-3.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Code to rank packages from a search in APT using Levenshtein """ from apt import Cache from Levenshtein import ratio from exact import Pack, _parser from multiprocessing.pool import ThreadPool as Pool _MAX_PEERS = 20 def Thread_Rank(k): pack = _args[0] item = Pack() item....
27.190476
69
0.590776
0
0
0
0
0
0
0
0
181
0.105663
ea5d44be711e561c7884cf746acc4f8a140b0e15
4,991
py
Python
inpystem/tools/matlab_interface.py
etienne-monier/inpystem
7914008374d0eb32362c447052de1af2b1ea9fa9
[ "MIT" ]
2
2020-04-29T21:45:58.000Z
2020-06-12T04:39:18.000Z
inpystem/tools/matlab_interface.py
etienne-monier/inpystem
7914008374d0eb32362c447052de1af2b1ea9fa9
[ "MIT" ]
8
2021-04-20T19:19:52.000Z
2022-03-12T00:12:00.000Z
inpystem/tools/matlab_interface.py
etienne-monier/inpystem
7914008374d0eb32362c447052de1af2b1ea9fa9
[ "MIT" ]
1
2020-10-02T20:54:05.000Z
2020-10-02T20:54:05.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ This module defines an interface to run matlab codes from python. """ import os import time import sys import logging import pathlib import numpy as np import scipy.io as sio _logger = logging.getLogger(__name__) def matlab_interface(program, dataDico): """Int...
29.532544
80
0.601082
0
0
0
0
0
0
0
0
2,743
0.549589
ea5d9376e7e61ab783150c786ab9ecc5e0df5125
4,719
py
Python
binho/commands/binho_adc.py
binhollc/binho-python-package
21ea73b03755c4205e93525ed24b4becba23c93e
[ "BSD-3-Clause" ]
4
2021-03-11T12:40:27.000Z
2022-02-01T10:08:20.000Z
binho/commands/binho_adc.py
binhollc/binho-python-package
21ea73b03755c4205e93525ed24b4becba23c93e
[ "BSD-3-Clause" ]
1
2021-11-26T10:20:18.000Z
2021-11-30T14:25:56.000Z
binho/commands/binho_adc.py
binhollc/binho-python-package
21ea73b03755c4205e93525ed24b4becba23c93e
[ "BSD-3-Clause" ]
2
2021-02-28T00:39:39.000Z
2021-04-05T12:45:56.000Z
#!/usr/bin/env python3 from __future__ import print_function import sys import errno import statistics import serial from binho.utils import log_silent, log_verbose, binhoArgumentParser from binho.errors import DeviceNotFoundError, CapabilityError def main(): # Set up a simple argument parser. parser = bi...
32.321918
120
0.546726
0
0
0
0
0
0
0
0
1,467
0.310871
ea5e0c05fc5fd1bd126ce33ac9399b17f9572400
6,349
py
Python
server/app/models.py
ju1115kr/hash-brown
93c5e636404608c7cba889cc9f9e0f3d3d0723b2
[ "Apache-2.0" ]
4
2018-06-27T10:28:54.000Z
2020-03-15T10:44:37.000Z
server/app/models.py
ju1115kr/hash-brown
93c5e636404608c7cba889cc9f9e0f3d3d0723b2
[ "Apache-2.0" ]
9
2018-06-27T10:29:37.000Z
2021-12-13T19:48:39.000Z
server/app/models.py
ju1115kr/hash-brown
93c5e636404608c7cba889cc9f9e0f3d3d0723b2
[ "Apache-2.0" ]
2
2018-07-04T16:54:20.000Z
2018-07-04T16:58:36.000Z
# -*- coding: utf-8 -*- from flask import url_for, current_app, g from werkzeug import secure_filename from werkzeug.security import generate_password_hash, check_password_hash from itsdangerous import TimedJSONWebSignatureSerializer as Serializer from . import db from app.exceptions import ValidationError from datetim...
35.272222
93
0.599779
5,760
0.895662
0
0
2,045
0.317991
0
0
993
0.154408
ea5f3e26198b37258a038046ed6c084a792a8485
1,098
py
Python
PlotGenGain_PathsOfSelection_TBV.py
janaobsteter/Genotype_CODES
8adf70660ebff4dd106c666db02cdba8b8ce4f97
[ "Apache-2.0" ]
1
2021-10-07T18:55:03.000Z
2021-10-07T18:55:03.000Z
PlotGenGain_PathsOfSelection_TBV.py
janaobsteter/Genotype_CODES
8adf70660ebff4dd106c666db02cdba8b8ce4f97
[ "Apache-2.0" ]
null
null
null
PlotGenGain_PathsOfSelection_TBV.py
janaobsteter/Genotype_CODES
8adf70660ebff4dd106c666db02cdba8b8ce4f97
[ "Apache-2.0" ]
1
2017-04-13T09:07:41.000Z
2017-04-13T09:07:41.000Z
import pandas as pd import sys import numpy as np import matplotlib.pyplot as plt T = pd.read_csv('GenTrends_cat.csv') T.index = T.cat T = T.drop('cat', axis=1) tT = np.transpose(T) tT.loc[:,'Cycle'] = [i.strip('_vars').strip('_mean') for i in list(tT.index)] tT_mean = tT.ix[0::2,:] tT_var = tT.ix[1::2,:] cats = [i ...
28.894737
111
0.675774
0
0
0
0
0
0
0
0
356
0.324226
ea5f6a8299056823901669f8b2e31fd53aa748a1
1,094
py
Python
web_info.py
B4t33n/web_info
a0f8d5be160c96e6e949140a7e3c8982bfce4ab5
[ "Apache-2.0" ]
1
2021-05-16T13:29:17.000Z
2021-05-16T13:29:17.000Z
web_info.py
B4t33n/web_info
a0f8d5be160c96e6e949140a7e3c8982bfce4ab5
[ "Apache-2.0" ]
null
null
null
web_info.py
B4t33n/web_info
a0f8d5be160c96e6e949140a7e3c8982bfce4ab5
[ "Apache-2.0" ]
null
null
null
print("\033[92m") import os import urllib2 import sys print("---------------------------------------------") os.system("figlet web info") print("----------------------------------------------") print("\033[91m") print("#############################################") print(" Coded by B4t33n ...
23.782609
60
0.399452
0
0
0
0
0
0
0
0
732
0.669104
ea61b0a3ba0b11abd7ed94000c53187e3c4b4ffc
109
py
Python
viper_dev.py
safinsingh/viper
f7fa9182713c4f0fbb33c2e881f668b807fd3956
[ "MIT" ]
null
null
null
viper_dev.py
safinsingh/viper
f7fa9182713c4f0fbb33c2e881f668b807fd3956
[ "MIT" ]
null
null
null
viper_dev.py
safinsingh/viper
f7fa9182713c4f0fbb33c2e881f668b807fd3956
[ "MIT" ]
null
null
null
from viper import * import inspect def GetSource(func): lines = inspect.getsource(func) print(lines)
18.166667
35
0.724771
0
0
0
0
0
0
0
0
0
0
ea631526ede5cfa72720ca402cc33b3e8ab33c52
925
py
Python
cride/utils/models.py
jpablocardona/platzi-django-advance
591fbfbb318ba235933544e585a6866ede829d63
[ "MIT" ]
null
null
null
cride/utils/models.py
jpablocardona/platzi-django-advance
591fbfbb318ba235933544e585a6866ede829d63
[ "MIT" ]
6
2020-06-06T01:34:33.000Z
2022-03-12T00:21:34.000Z
cride/utils/models.py
jpablocardona/platzi-django-advance
591fbfbb318ba235933544e585a6866ede829d63
[ "MIT" ]
null
null
null
""" django models utilities""" from django.db import models class CRideModel(models.Model): """ Comparte Ride base model CRideModel acts as an abstract base class from which every other model in the project will inherit. This class provides every table with the following attributes: + creat...
26.428571
80
0.646486
861
0.930811
0
0
0
0
0
0
560
0.605405
ea63c3548941af69f71d32ce6f27172728ac718b
1,811
py
Python
lambda/VisitorsDynamoDBClient.py
kyhau/hello-visitor
6c0c6685c1c2a7226f00a87e8858d9e0a2f01699
[ "Unlicense" ]
null
null
null
lambda/VisitorsDynamoDBClient.py
kyhau/hello-visitor
6c0c6685c1c2a7226f00a87e8858d9e0a2f01699
[ "Unlicense" ]
null
null
null
lambda/VisitorsDynamoDBClient.py
kyhau/hello-visitor
6c0c6685c1c2a7226f00a87e8858d9e0a2f01699
[ "Unlicense" ]
1
2017-08-24T06:14:22.000Z
2017-08-24T06:14:22.000Z
import boto3 import json import uuid from datetime import datetime import logging # Update the root logger to get messages at DEBUG and above logging.getLogger().setLevel(logging.DEBUG) logging.getLogger("botocore").setLevel(logging.CRITICAL) logging.getLogger("boto3").setLevel(logging.CRITICAL) logging.getLogger("url...
35.509804
139
0.651022
0
0
0
0
0
0
0
0
693
0.382662
ea65ee07c7aea0580031cc966706784863780580
2,735
py
Python
merge.py
marcelbrueckner/merge-intervals
d8f6329f12bfe6ec48180ba215f40214f476f654
[ "MIT" ]
null
null
null
merge.py
marcelbrueckner/merge-intervals
d8f6329f12bfe6ec48180ba215f40214f476f654
[ "MIT" ]
null
null
null
merge.py
marcelbrueckner/merge-intervals
d8f6329f12bfe6ec48180ba215f40214f476f654
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from argparse import ArgumentParser, ArgumentError import re, sys # Define a custom argument type `interval_int` to properly parse arguments # https://docs.python.org/3/library/argparse.html#type def interval_int(arg): """ Validate given interval and return as list """ pattern ...
36.959459
122
0.669835
0
0
0
0
0
0
0
0
1,317
0.481536
ea668e4c3f0055d09aecf153fc4a7af6e486eded
388
py
Python
factor_vae/types.py
kiwi0fruit/jats-semi-supervised-pytorch
67e9bb85f09f8ef02e17e495784d1d9a71c3adec
[ "MIT" ]
null
null
null
factor_vae/types.py
kiwi0fruit/jats-semi-supervised-pytorch
67e9bb85f09f8ef02e17e495784d1d9a71c3adec
[ "MIT" ]
null
null
null
factor_vae/types.py
kiwi0fruit/jats-semi-supervised-pytorch
67e9bb85f09f8ef02e17e495784d1d9a71c3adec
[ "MIT" ]
null
null
null
from typing import Tuple from abc import abstractmethod from torch import Tensor from torch.nn import Module class BaseDiscriminator(Module): @abstractmethod def forward_(self, z: Tensor) -> Tuple[Tensor, Tensor]: raise NotImplementedError def forward(self, z: Tensor) -> Tuple[Tensor, Tensor]: #...
27.714286
94
0.729381
276
0.71134
0
0
109
0.280928
0
0
34
0.087629
ea6700a25cf2ed6741438c3d34e31d11883d00c5
1,484
py
Python
day6/main.py
urosZoretic/adventofcode2021
aa55b9ba9d07ef70ad2ecfd0b72b14329e7685ba
[ "Apache-2.0" ]
null
null
null
day6/main.py
urosZoretic/adventofcode2021
aa55b9ba9d07ef70ad2ecfd0b72b14329e7685ba
[ "Apache-2.0" ]
null
null
null
day6/main.py
urosZoretic/adventofcode2021
aa55b9ba9d07ef70ad2ecfd0b72b14329e7685ba
[ "Apache-2.0" ]
null
null
null
inputFile = "day6/day6_1_input.txt" # https://adventofcode.com/2021/day/6 if __name__ == '__main__': print("Lanternfish") with open(inputFile, "r") as f: fishArray = [int(num) for num in f.read().strip().split(",")] # for part2... not needed to read array again from file origFishArray = fishA...
31.574468
102
0.58558
0
0
0
0
0
0
0
0
530
0.357143
ea68b376b16e104101a6c8ebb4b9a9fa6ab801a5
7,915
py
Python
datasets/Voc_Dataset.py
DLsnowman/Deeplab-v3plus
f7001f669c91aac02ff4e9c39e53037ad863979d
[ "MIT" ]
333
2018-10-31T03:19:26.000Z
2022-03-15T07:31:13.000Z
datasets/Voc_Dataset.py
mqchen1993/Deeplab-v3plus
886041c2099a069bf4b667b981b650be7931be73
[ "MIT" ]
19
2018-10-31T06:37:25.000Z
2022-01-13T00:56:31.000Z
datasets/Voc_Dataset.py
mqchen1993/Deeplab-v3plus
886041c2099a069bf4b667b981b650be7931be73
[ "MIT" ]
68
2018-10-31T03:51:25.000Z
2022-03-30T04:58:55.000Z
# -*- coding: utf-8 -*- # @Time : 2018/9/21 17:21 # @Author : HLin # @Email : linhua2017@ia.ac.cn # @File : Voc_Dataset.py # @Software: PyCharm import PIL import random import scipy.io from PIL import Image, ImageOps, ImageFilter import numpy as np import cv2 import os import torch import torch.utils.data as ...
36.643519
118
0.552622
7,270
0.918509
0
0
0
0
0
0
1,218
0.153885
ea6a9e7274c58c8850478174965f8dcd501745fd
2,341
py
Python
tool/grid.py
David-Loibl/gistemp
4b96696243cbbb425c7b27fed35398e0fef9968d
[ "BSD-3-Clause" ]
1
2020-02-04T13:16:05.000Z
2020-02-04T13:16:05.000Z
tool/grid.py
David-Loibl/gistemp4.0
4b96696243cbbb425c7b27fed35398e0fef9968d
[ "BSD-3-Clause" ]
null
null
null
tool/grid.py
David-Loibl/gistemp4.0
4b96696243cbbb425c7b27fed35398e0fef9968d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/local/bin/python3.4 # # Avi Persin, Revision 2016-01-06 # grid.py """ grid YYYY-MM [v2-file] Display gridded anomalies as SVG file. """ # Regular expression used to match/validate the "when" argument. RE_WHEN = r'(\d{4})-(\d{2})' def map(when, inp, out): """Take a cccgistemp subbox file in V2 mean form...
23.41
77
0.547202
0
0
578
0.246903
0
0
0
0
965
0.412217
ea6aca3a1ab763492e5a9e482d9cc0174a64d165
1,460
py
Python
nlu_flow/retrieval/faq_answer_retrieval/inferencer.py
cheesama/nlflow
5c504fc4bfc5aa0ca3892af7b01b2eb46f5edfbb
[ "Apache-2.0" ]
1
2022-03-22T23:01:33.000Z
2022-03-22T23:01:33.000Z
nlu_flow/retrieval/faq_answer_retrieval/inferencer.py
cheesama/nlu_flow
5c504fc4bfc5aa0ca3892af7b01b2eb46f5edfbb
[ "Apache-2.0" ]
null
null
null
nlu_flow/retrieval/faq_answer_retrieval/inferencer.py
cheesama/nlu_flow
5c504fc4bfc5aa0ca3892af7b01b2eb46f5edfbb
[ "Apache-2.0" ]
null
null
null
from fastapi import FastAPI from transformers import ElectraModel, ElectraTokenizer from koelectra_fine_tuner import KoelectraQAFineTuner from nlu_flow.preprocessor.text_preprocessor import normalize import torch import faiss import dill app = FastAPI() is_ready = False #load chitchat_retrieval_model model = None...
26.545455
126
0.761644
0
0
0
0
597
0.408904
543
0.371918
330
0.226027
ea6ace3dbcf73350bee9a00aa55e54d97dc8b537
930
py
Python
Processing_api.py
enpmo/first-personal-work
23c64cd11405256af50e9b2e930f580b4d918e9b
[ "Apache-2.0" ]
null
null
null
Processing_api.py
enpmo/first-personal-work
23c64cd11405256af50e9b2e930f580b4d918e9b
[ "Apache-2.0" ]
null
null
null
Processing_api.py
enpmo/first-personal-work
23c64cd11405256af50e9b2e930f580b4d918e9b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[8]: import requests import re import time import json def get_one_page(url): # 根据源码分析,构造请求头 headers = { # 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) ' # 'Chrome/52.0.2743.116 S...
17.54717
113
0.648387
0
0
0
0
0
0
0
0
477
0.5
ea6d08e4b75d46d8c207e5f66fc96bf1e79be92d
2,434
py
Python
docs/index_functions.py
guyms/pyansys
7a9182a7c44098d9b99a0d1eb2fd183b7256ac01
[ "MIT" ]
null
null
null
docs/index_functions.py
guyms/pyansys
7a9182a7c44098d9b99a0d1eb2fd183b7256ac01
[ "MIT" ]
null
null
null
docs/index_functions.py
guyms/pyansys
7a9182a7c44098d9b99a0d1eb2fd183b7256ac01
[ "MIT" ]
null
null
null
#============================================================================== # load a beam and write it #============================================================================== import pyansys from pyansys import examples # Sample *.cdb filename = examples.hexarchivefile # Read ansys archive file archive = p...
26.747253
79
0.595727
0
0
0
0
0
0
0
0
1,295
0.532046
ea6ff3d5fd97a9be844e9c0c6ad45a5997b57e35
5,401
py
Python
PAST3/o.py
nishio/atcoder
8db36537b5d8580745d5f98312162506ad7d7ab4
[ "MIT" ]
1
2021-03-09T04:28:13.000Z
2021-03-09T04:28:13.000Z
PAST3/o.py
nishio/atcoder
8db36537b5d8580745d5f98312162506ad7d7ab4
[ "MIT" ]
null
null
null
PAST3/o.py
nishio/atcoder
8db36537b5d8580745d5f98312162506ad7d7ab4
[ "MIT" ]
null
null
null
# included from libs/mincostflow.py """ Min Cost Flow """ # derived: https://atcoder.jp/contests/practice2/submissions/16726003 from heapq import heappush, heappop class MinCostFlow(): def __init__(self, n): self.n = n self.graph = [[] for _ in range(n)] self.pos = [] def add_edge(s...
24.004444
75
0.478245
3,135
0.580448
90
0.016664
0
0
0
0
780
0.144418
ea7173b82ff50e9cc6614bf2f1132029d50e0907
1,512
py
Python
reo/migrations/0112_auto_20210713_0037.py
NREL/REopt_API
fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6
[ "BSD-3-Clause" ]
7
2022-01-29T12:10:10.000Z
2022-03-28T13:45:20.000Z
reo/migrations/0112_auto_20210713_0037.py
NREL/reopt_api
fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6
[ "BSD-3-Clause" ]
12
2022-02-01T18:23:18.000Z
2022-03-31T17:22:17.000Z
reo/migrations/0112_auto_20210713_0037.py
NREL/REopt_API
fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6
[ "BSD-3-Clause" ]
3
2022-02-08T19:44:40.000Z
2022-03-12T11:05:36.000Z
# Generated by Django 3.1.12 on 2021-07-13 00:37 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('reo', '0111_auto_20210708_2144'), ] operations = [ migrations.RenameField( model_name='sitemodel', old_name='year_one_emiss...
34.363636
75
0.65873
1,426
0.943122
0
0
0
0
0
0
684
0.452381
ea7787caeef8cdf78dfed953bd54966edcd2ae6e
150
py
Python
deepstreampy/constants/call_state.py
sapid/deepstreampy-twisted
78025141bb0ac3aadc248d68f9273bf8993fc3d4
[ "MIT" ]
null
null
null
deepstreampy/constants/call_state.py
sapid/deepstreampy-twisted
78025141bb0ac3aadc248d68f9273bf8993fc3d4
[ "MIT" ]
null
null
null
deepstreampy/constants/call_state.py
sapid/deepstreampy-twisted
78025141bb0ac3aadc248d68f9273bf8993fc3d4
[ "MIT" ]
null
null
null
INITIAL = 'INITIAL' CONNECTING = 'CONNECTING' ESTABLISHED = 'ESTABLISHED' ACCEPTED = 'ACCEPTED' DECLINED = 'DECLINED' ENDED = 'ENDED' ERROR = 'ERROR'
18.75
27
0.72
0
0
0
0
0
0
0
0
68
0.453333
ea778e1c5be8fff0511c1fa6bd9148f44fac726e
901
py
Python
data/ZLData.py
sharmavins23/Zhongli-Artifact-and-Weapon-Calcs
3254ca25238604865f34ac7084c10202db5713e0
[ "MIT" ]
null
null
null
data/ZLData.py
sharmavins23/Zhongli-Artifact-and-Weapon-Calcs
3254ca25238604865f34ac7084c10202db5713e0
[ "MIT" ]
null
null
null
data/ZLData.py
sharmavins23/Zhongli-Artifact-and-Weapon-Calcs
3254ca25238604865f34ac7084c10202db5713e0
[ "MIT" ]
null
null
null
# Static data class for character stats class Zhongli: level = 90 talentLevel = 8 # Base stat values baseHP = 14695 baseATK = 251 baseCritRATE = 0.05 baseCritDMG = 0.5 # Ability MVs and frame counts class Normal: # Normal attack spear kick hop combo frames = 140 #m...
24.351351
77
0.556049
860
0.954495
0
0
0
0
0
0
272
0.301887
ea78ba9051ae04427d4f22dd53746203619b8ac9
369
py
Python
app/__init__.py
abhishtagatya/pandubot
ec0f20b31fc61b5581753711d774213bbf70d438
[ "MIT" ]
1
2018-08-29T12:03:06.000Z
2018-08-29T12:03:06.000Z
app/__init__.py
abhishtagatya/pandubot
ec0f20b31fc61b5581753711d774213bbf70d438
[ "MIT" ]
null
null
null
app/__init__.py
abhishtagatya/pandubot
ec0f20b31fc61b5581753711d774213bbf70d438
[ "MIT" ]
null
null
null
import os import sys from instance.config import DATABASE_URI from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_compress import Compress app = Flask(__name__) Compress(app) app.config['SQLALCHEMY_DATABASE_URI'] = DATABASE_URI app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False db = SQLAlche...
20.5
52
0.821138
0
0
0
0
0
0
0
0
57
0.154472
ea79a3dbc9f8a91f2ad34706bc154dae9826035f
302
py
Python
docker/app/app/backend/apps/_archive/accounts_new/profiles/serializers.py
JTarball/tetherbox
cae7a4bb6e29da0f34670f8c8d228faf5f909f3a
[ "0BSD" ]
1
2018-02-26T07:26:30.000Z
2018-02-26T07:26:30.000Z
docker/app/app/backend/apps/_archive/accounts_new/profiles/serializers.py
JTarball/docker-django-polymer-starter-kit
b5250030b1646e29567c15d01ba4668c6ad535c9
[ "0BSD" ]
null
null
null
docker/app/app/backend/apps/_archive/accounts_new/profiles/serializers.py
JTarball/docker-django-polymer-starter-kit
b5250030b1646e29567c15d01ba4668c6ad535c9
[ "0BSD" ]
null
null
null
""" accounts.profile.serializers ============================ Serializers file for a basic Accounts App """ from rest_framework import serializers from .models import AccountsUser class AccountsUserSerializer(serializers.ModelSerializer): class Meta: model = AccountsUser
17.764706
58
0.672185
104
0.344371
0
0
0
0
0
0
121
0.400662
ea79a9740f615953bdb03c857f3a9afc44c42c3d
20,551
py
Python
src/ops.py
Elite-Volumetric-Capture-Sqad/DDRNet
10340d1bff26c41e429562d8ff42fc15afd9e3d5
[ "MIT" ]
128
2018-07-28T13:02:43.000Z
2022-03-03T11:59:49.000Z
src/ops.py
Elite-Volumetric-Capture-Sqad/DDRNet
10340d1bff26c41e429562d8ff42fc15afd9e3d5
[ "MIT" ]
3
2018-08-31T15:07:26.000Z
2019-04-10T13:12:57.000Z
src/ops.py
Elite-Volumetric-Capture-Sqad/DDRNet
10340d1bff26c41e429562d8ff42fc15afd9e3d5
[ "MIT" ]
20
2018-08-21T12:32:18.000Z
2022-02-08T07:58:01.000Z
import numpy as np import sys import tensorflow as tf slim = tf.contrib.slim def convertNHWC2NCHW(data, name): out = tf.transpose(data, [0, 3, 1, 2], name=name) return out def convertNCHW2NHWC(data, name): out = tf.transpose(data, [0, 2, 3, 1], name=name) return out def denormalize(batch_input, lo...
46.920091
124
0.617586
0
0
0
0
363
0.017663
0
0
4,641
0.225828
ea7a9655fe05af9a10f1098bf7c17031501e094a
829
py
Python
tests/fractalmusic/test_fm_split.py
alexgorji/musurgia
81d37afbf1ac70348002a93299db228b5ed4a591
[ "MIT" ]
null
null
null
tests/fractalmusic/test_fm_split.py
alexgorji/musurgia
81d37afbf1ac70348002a93299db228b5ed4a591
[ "MIT" ]
45
2020-02-24T19:37:00.000Z
2021-04-06T16:13:56.000Z
tests/fractalmusic/test_fm_split.py
alexgorji/musurgia
81d37afbf1ac70348002a93299db228b5ed4a591
[ "MIT" ]
null
null
null
import os from musicscore.musictree.treescoretimewise import TreeScoreTimewise from musurgia.unittest import TestCase from musurgia.fractaltree.fractalmusic import FractalMusic path = str(os.path.abspath(__file__).split('.')[0]) class Test(TestCase): def setUp(self) -> None: self.fm = FractalMusic(temp...
27.633333
68
0.670688
594
0.716526
0
0
0
0
0
0
29
0.034982
ea7b1fb5e109895783f00bbbc89f3c2e5c72c142
96
py
Python
docs/p3/setup.py
khchine5/atelier
25a287595d35b14f7eaa8379636b7538e1c4314f
[ "BSD-2-Clause" ]
1
2018-09-20T12:49:51.000Z
2018-09-20T12:49:51.000Z
docs/p3/setup.py
khchine5/atelier
25a287595d35b14f7eaa8379636b7538e1c4314f
[ "BSD-2-Clause" ]
2
2016-01-12T20:07:51.000Z
2016-01-13T22:55:19.000Z
docs/p3/setup.py
khchine5/atelier
25a287595d35b14f7eaa8379636b7538e1c4314f
[ "BSD-2-Clause" ]
2
2016-10-12T16:13:16.000Z
2021-02-28T07:15:59.000Z
from setuptools import setup if __name__ == '__main__': setup(name='foo', version='1.0.0')
19.2
38
0.677083
0
0
0
0
0
0
0
0
22
0.229167
ea7b6fc02919fcb3d751ed35c29312f28ec2bea8
8,324
py
Python
ParaMol/Objective_function/Properties/regularization.py
mnagaku/ParaMol
13529f584e2d50076e038388ecbdd57af23c73b9
[ "MIT" ]
15
2021-03-08T17:56:36.000Z
2022-03-30T01:46:29.000Z
ParaMol/Objective_function/Properties/regularization.py
mnagaku/ParaMol
13529f584e2d50076e038388ecbdd57af23c73b9
[ "MIT" ]
7
2021-03-28T05:53:59.000Z
2021-10-15T15:37:56.000Z
ParaMol/Objective_function/Properties/regularization.py
mnagaku/ParaMol
13529f584e2d50076e038388ecbdd57af23c73b9
[ "MIT" ]
2
2021-04-30T06:42:09.000Z
2021-06-21T05:49:29.000Z
# -*- coding: utf-8 -*- """ Description ----------- This module defines the :obj:`ParaMol.Objective_function.Properties.regularization.Regularization` class, which is a ParaMol representation of the regularization property. """ import numpy as np from .property import * # ------------------------------------------...
36.349345
171
0.555142
7,732
0.92888
0
0
0
0
0
0
5,815
0.698582
ea7b9d12029f07974525dc659c2414d6e62953e4
643
py
Python
conversion/octalToDecimal.py
slowy07/pythonApps
22f9766291dbccd8185035745950c5ee4ebd6a3e
[ "MIT" ]
10
2020-10-09T11:05:18.000Z
2022-02-13T03:22:10.000Z
conversion/octalToDecimal.py
khairanabila/pythonApps
f90b8823f939b98f7bf1dea7ed35fe6e22e2f730
[ "MIT" ]
null
null
null
conversion/octalToDecimal.py
khairanabila/pythonApps
f90b8823f939b98f7bf1dea7ed35fe6e22e2f730
[ "MIT" ]
6
2020-11-26T12:49:43.000Z
2022-03-06T06:46:43.000Z
def octalToDecimal(octString: str)->str: octString = str(octString).strip() if not octString: raise ValueError("empty string was passed to function") isNegative = octString[0] == "-" if isNegative: octString = octString[1:] if not all(0 <= int(char) <= 7 for char in octString): ...
30.619048
66
0.656299
0
0
0
0
0
0
0
0
90
0.139969
ea80ed40b25b2af9be9e4742f1f9e34326e94328
879
py
Python
newsXtract.py
selection-bias-www2018/NewsXtract
6b66024fea912ed5f34a5ac2fe051d9abf8e5ee2
[ "BSD-3-Clause" ]
1
2019-10-24T10:04:59.000Z
2019-10-24T10:04:59.000Z
newsXtract.py
selection-bias-www2018/selection-bias-code
6b66024fea912ed5f34a5ac2fe051d9abf8e5ee2
[ "BSD-3-Clause" ]
null
null
null
newsXtract.py
selection-bias-www2018/selection-bias-code
6b66024fea912ed5f34a5ac2fe051d9abf8e5ee2
[ "BSD-3-Clause" ]
1
2021-05-04T12:51:23.000Z
2021-05-04T12:51:23.000Z
import os,json import requests BASE_URL = 'http://epfl.elasticsearch.spinn3r.com/content*/_search' BULK_SIZE = 100 SPINN3R_SECRET = os.environ['SPINN3R_SECRET'] HEADERS = { 'X-vendor': 'epfl', 'X-vendor-auth': SPINN3R_SECRET } query = { "size": BULK_SIZE, "query":{ "bool":{ "must":{ ...
18.702128
68
0.482366
0
0
0
0
0
0
0
0
260
0.295791
ea827b47a08c581fe5f57d1e383518173508f1a0
1,672
py
Python
core/plugins/hibp.py
area55git/Gitmails
813234909f7bc59ef13113c92d8a52d86c896338
[ "MIT" ]
140
2018-04-26T18:29:01.000Z
2022-02-22T01:32:31.000Z
core/plugins/hibp.py
area55git/Gitmails
813234909f7bc59ef13113c92d8a52d86c896338
[ "MIT" ]
4
2018-04-26T20:18:47.000Z
2018-05-02T14:46:24.000Z
core/plugins/hibp.py
area55git/Gitmails
813234909f7bc59ef13113c92d8a52d86c896338
[ "MIT" ]
23
2018-04-26T19:08:26.000Z
2022-02-12T22:13:14.000Z
import time import requests from core.utils.parser import Parser from core.utils.helpers import Helpers from core.models.plugin import BasePlugin class HIBP(BasePlugin): def __init__(self, args): self.args = args self.base_url = "https://haveibeenpwned.com/api/v2/breachedaccount" self.url...
30.962963
84
0.586124
1,523
0.910885
0
0
0
0
0
0
247
0.147727
ea83c30edcb40ded19cfef34c991c3cc46a06772
2,099
py
Python
app/purchases.py
thowell332/Mini-Amazon
927c387d569aef00275b7d6ecaae891fc16025e9
[ "MIT" ]
null
null
null
app/purchases.py
thowell332/Mini-Amazon
927c387d569aef00275b7d6ecaae891fc16025e9
[ "MIT" ]
null
null
null
app/purchases.py
thowell332/Mini-Amazon
927c387d569aef00275b7d6ecaae891fc16025e9
[ "MIT" ]
null
null
null
from re import S from flask import render_template, redirect, url_for, flash, request from flask_paginate import Pagination, get_page_parameter from flask_login import current_user from flask_wtf import FlaskForm from wtforms import SubmitField from flask_babel import _, lazy_gettext as _l from flask_login import curre...
41.98
177
0.769414
0
0
0
0
1,525
0.726536
0
0
413
0.19676
ea84710a91e9ce1a19dd0a2f68da27eda2cd6074
835
bzl
Python
ml_metadata/workspace.bzl
zijianjoy/ml-metadata
2fe02bc234408c49c3df37c7c5b276a85990da7d
[ "Apache-2.0" ]
458
2019-01-18T18:11:00.000Z
2022-03-28T15:27:33.000Z
ml_metadata/workspace.bzl
DrStarkXavier/ml-metadata
3434ebaf36db54a7e67dbb0793980a74ec0c5d50
[ "Apache-2.0" ]
108
2019-01-24T02:17:46.000Z
2022-03-30T18:36:46.000Z
ml_metadata/workspace.bzl
DrStarkXavier/ml-metadata
3434ebaf36db54a7e67dbb0793980a74ec0c5d50
[ "Apache-2.0" ]
128
2019-01-24T05:42:43.000Z
2022-03-25T11:11:44.000Z
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
36.304348
91
0.758084
0
0
0
0
0
0
0
0
753
0.901796
ea87a3235f180eca6e23bc04d0cf3cf624a85395
8,072
py
Python
python/py_src/sudachipy/command_line.py
sorami/sudachi.rs
0e3462841f281472d149140481889a265bd12dd1
[ "Apache-2.0" ]
69
2019-11-23T14:24:44.000Z
2021-03-07T11:59:34.000Z
python/py_src/sudachipy/command_line.py
sorami/sudachi.rs
0e3462841f281472d149140481889a265bd12dd1
[ "Apache-2.0" ]
5
2019-11-23T12:37:16.000Z
2020-08-20T07:07:48.000Z
python/py_src/sudachipy/command_line.py
hata6502/sudachi-wasm
7afc1c59d81cf2bacd859087fdff40f238293c25
[ "Apache-2.0" ]
7
2019-11-27T13:42:03.000Z
2020-10-29T05:46:54.000Z
# Copyright (c) 2019 Works Applications Co., Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
38.807692
115
0.622646
0
0
0
0
0
0
0
0
2,400
0.297324
ea891fd6d6e8d2f7b5c477a52da9998bb0a91863
4,487
py
Python
behave/formatter/json.py
stackedsax/behave
0cdd1d7e0ebcb43e08d7c5d0b25f62d7ffbfeb5f
[ "BSD-2-Clause" ]
null
null
null
behave/formatter/json.py
stackedsax/behave
0cdd1d7e0ebcb43e08d7c5d0b25f62d7ffbfeb5f
[ "BSD-2-Clause" ]
null
null
null
behave/formatter/json.py
stackedsax/behave
0cdd1d7e0ebcb43e08d7c5d0b25f62d7ffbfeb5f
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import import base64 try: import json except ImportError: import simplejson as json from behave.formatter.base import Formatter class JSONFormatter(Formatter): name = 'json' description = 'JSON dump of test run' dumps_kwargs = {} def _...
27.869565
71
0.556274
4,287
0.955427
0
0
199
0.04435
0
0
634
0.141297
ea898ea65cb361916f48efa47b1354040802b387
54,368
py
Python
MUNIT/networks.py
NoaBrazilay/DeepLearningProject
5c44d21069de1fc5fa2687c4121286670be3d773
[ "MIT" ]
2
2021-09-03T11:44:31.000Z
2021-09-22T11:51:47.000Z
MUNIT/networks.py
NoaBrazilay/MISSGAN
5c44d21069de1fc5fa2687c4121286670be3d773
[ "MIT" ]
null
null
null
MUNIT/networks.py
NoaBrazilay/MISSGAN
5c44d21069de1fc5fa2687c4121286670be3d773
[ "MIT" ]
1
2020-10-20T08:06:50.000Z
2020-10-20T08:06:50.000Z
""" Copyright (C) 2018 NVIDIA Corporation. All rights reserved. Licensed under the CC BY-NC-SA 4.0 license (https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode). """ from torch import nn from torch.autograd import Variable import torch import torch.nn.functional as F import utils import functools try: from...
42.60815
157
0.580672
52,128
0.958799
0
0
196
0.003605
0
0
9,415
0.173172
ea8d3c9ed97f275534ba12a7a2adf9b3f80643b1
24,084
py
Python
nyc_bike_flow.py
AngeloManzatto/NYCBikeFlow
cd7f936c4d4627e4a90e17d416fb1f628b2445c6
[ "MIT" ]
1
2020-09-09T01:36:57.000Z
2020-09-09T01:36:57.000Z
nyc_bike_flow.py
AngeloManzatto/NYCBikeFlow
cd7f936c4d4627e4a90e17d416fb1f628b2445c6
[ "MIT" ]
null
null
null
nyc_bike_flow.py
AngeloManzatto/NYCBikeFlow
cd7f936c4d4627e4a90e17d416fb1f628b2445c6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Aug 5 14:01:56 2019 @author: Angelo Antonio Manzatto This implementation use ST-ResNet for inflow / outflow bike prediction on the city of NY Article: https://arxiv.org/pdf/1610.00081.pdf References and credits: Junbo Zhang, Yu Zheng, Dekang Qi. Deep Spatio-Temporal Resid...
40.073211
161
0.594918
691
0.028691
0
0
0
0
0
0
9,971
0.414009
ea8e6944b6396b7bf5801d8ee489a2d3e3266596
802
py
Python
scripts/reduce.py
inlgmeeting/inlgmeeting.github.io
5af7273eaa04407afc894374d11cbc8587fd343b
[ "MIT" ]
null
null
null
scripts/reduce.py
inlgmeeting/inlgmeeting.github.io
5af7273eaa04407afc894374d11cbc8587fd343b
[ "MIT" ]
null
null
null
scripts/reduce.py
inlgmeeting/inlgmeeting.github.io
5af7273eaa04407afc894374d11cbc8587fd343b
[ "MIT" ]
1
2022-03-08T11:22:31.000Z
2022-03-08T11:22:31.000Z
import argparse import csv import json import sklearn.manifold import torch def parse_arguments(): parser = argparse.ArgumentParser(description="MiniConf Portal Command Line") parser.add_argument("papers", default=False, help="paper file") parser.add_argument("embeddings", default=False, hel...
28.642857
87
0.65586
0
0
0
0
0
0
0
0
116
0.144638
ea8fe32f856495dc2c83b201fa1c4de92c36e8f3
1,964
py
Python
.vim/bundle-deactivated/python-mode/pylibs/ropemode/environment.py
chrislaskey/.dot-files
44be2364f2824a2c70300f7c0f2963a592c7083e
[ "MIT" ]
null
null
null
.vim/bundle-deactivated/python-mode/pylibs/ropemode/environment.py
chrislaskey/.dot-files
44be2364f2824a2c70300f7c0f2963a592c7083e
[ "MIT" ]
null
null
null
.vim/bundle-deactivated/python-mode/pylibs/ropemode/environment.py
chrislaskey/.dot-files
44be2364f2824a2c70300f7c0f2963a592c7083e
[ "MIT" ]
null
null
null
class Environment(object): def ask(self, prompt, default=None, starting=None): pass def ask_values(self, prompt, values, default=None, starting=None): pass def ask_directory(self, prompt, default=None, starting=None): pass def ask_completion(self, prompt, values, starting=Non...
18.704762
70
0.599796
1,963
0.999491
0
0
104
0.052953
0
0
3
0.001527
ea8ffc8379c8866cb56248edf88ff78b6a856f02
1,838
py
Python
Breast_cancer_prediction1.py
HagerBesar/Breast_cancer_prediction1
f391a37f8064cabefdf9c416f2dbb40e3bd0e98a
[ "MIT" ]
1
2021-03-23T15:03:39.000Z
2021-03-23T15:03:39.000Z
Breast_cancer_prediction1.py
HagerBesar/Breast_cancer_prediction1
f391a37f8064cabefdf9c416f2dbb40e3bd0e98a
[ "MIT" ]
null
null
null
Breast_cancer_prediction1.py
HagerBesar/Breast_cancer_prediction1
f391a37f8064cabefdf9c416f2dbb40e3bd0e98a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[ ]: ####################################<<<<Breast_cancer_prediction>>>>>>#################################### # In[ ]: #part(1)--By:Manar Moeanse # In[1]: import pandas as pd import numpy as np import matplotlib.pyplot as plt # In[2]: DB = pd.read_csv('Breast_c...
10.268156
106
0.600653
0
0
0
0
0
0
0
0
646
0.351469
ea9175a6523f472b33f34201baced746430025fa
290
py
Python
regphot/pyprofit.py
raphaelshirley/regphot
05b382e5360099dadd7599187b5f25c1fcbd5a61
[ "MIT" ]
null
null
null
regphot/pyprofit.py
raphaelshirley/regphot
05b382e5360099dadd7599187b5f25c1fcbd5a61
[ "MIT" ]
null
null
null
regphot/pyprofit.py
raphaelshirley/regphot
05b382e5360099dadd7599187b5f25c1fcbd5a61
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Wed Feb 1 17:13:54 2017 Should have similar functions as galfit and allow a model object to use functions to calculate chisq and optimse using standard optimisation. @author: rs548 """ import pyprofit def optimise():
18.125
85
0.713793
0
0
0
0
0
0
0
0
248
0.855172
ea9198eb50dfdf75e05b7e2f2c6b062c8ea681fb
6,061
py
Python
chrome/common/extensions/docs/server2/branch_utility_test.py
pozdnyakov/chromium-crosswalk
0fb25c7278bf1d93e53a3b0bcb75aa8b99d4b26e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/common/extensions/docs/server2/branch_utility_test.py
pozdnyakov/chromium-crosswalk
0fb25c7278bf1d93e53a3b0bcb75aa8b99d4b26e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/common/extensions/docs/server2/branch_utility_test.py
pozdnyakov/chromium-crosswalk
0fb25c7278bf1d93e53a3b0bcb75aa8b99d4b26e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os import sys import unittest from branch_utility import BranchUtility from fake_url_fetcher import FakeUrlFetcher from obj...
41.513699
77
0.683881
5,648
0.931859
0
0
0
0
0
0
1,033
0.170434
ea931348dc1add94d3976c115411349771183b34
6,818
py
Python
src/mlServiceAPI.py
juliangruendner/ketos_brain_api
6ec7e01a0996abb03dba090d832a5e1020df4180
[ "MIT" ]
null
null
null
src/mlServiceAPI.py
juliangruendner/ketos_brain_api
6ec7e01a0996abb03dba090d832a5e1020df4180
[ "MIT" ]
null
null
null
src/mlServiceAPI.py
juliangruendner/ketos_brain_api
6ec7e01a0996abb03dba090d832a5e1020df4180
[ "MIT" ]
null
null
null
from flask import Flask from flask_restful_swagger_2 import Api from resources.userResource import UserListResource, UserResource, UserLoginResource from resources.imageResource import ImageListResource, ImageResource from resources.environmentResource import EnvironmentListResource, EnvironmentResource, UserEnvironmen...
80.211765
228
0.839689
0
0
0
0
0
0
0
0
2,235
0.327809
ea93a4863758bc25492b7cc4b0d277a031dd4e69
427
py
Python
Python/Tutorial - 3/check.py
JC2295/FCC_Tutorial_Projects
990e1221b2177acb9e4db0264adab518620404a0
[ "MIT" ]
null
null
null
Python/Tutorial - 3/check.py
JC2295/FCC_Tutorial_Projects
990e1221b2177acb9e4db0264adab518620404a0
[ "MIT" ]
null
null
null
Python/Tutorial - 3/check.py
JC2295/FCC_Tutorial_Projects
990e1221b2177acb9e4db0264adab518620404a0
[ "MIT" ]
null
null
null
x = float(input("Enter Number: ")) if(x % 2) == 0 and x > 0: print("The number you entered is positive and even.") elif(x % 2) == 0 and x < 0: print("The number you entered is negative and even.") elif(x % 2) != 0 and x > 0: print("The number you entered is positive and odd.") elif(x % 2) != 0 and x < 0: ...
32.846154
57
0.618267
0
0
0
0
0
0
0
0
231
0.540984
ea9492335887a907444003adbfacda8abe09f88a
18,763
py
Python
solver.py
itrosen/hall-solver
70ca5364b6c16bf62b7faa69ac30d14f972d7320
[ "MIT" ]
null
null
null
solver.py
itrosen/hall-solver
70ca5364b6c16bf62b7faa69ac30d14f972d7320
[ "MIT" ]
null
null
null
solver.py
itrosen/hall-solver
70ca5364b6c16bf62b7faa69ac30d14f972d7320
[ "MIT" ]
null
null
null
""" Created on Dec 16 2021 @author: Ilan Rosen Poisson equation solver for the Hall effect. Includes classes for Hall bars, Hall bars in a nonlocal geometry, and Corbino disks. The Hall bar class has build in methods for longitudinal and Hall 4-probe resistance measurements. Plotting functions assume coordinates are in...
33.807207
196
0.666525
18,058
0.962426
0
0
0
0
0
0
7,292
0.388637
ea94f186e674605c91c929e6c34cf14e026507ea
2,078
py
Python
tools/python/boutiques/util/utils.py
glatard/boutiques
a75de1b2fcf96e0eb196974ee2376b014972e847
[ "MIT" ]
2
2016-11-01T15:08:37.000Z
2018-09-07T20:56:43.000Z
tools/python/boutiques/util/utils.py
glatard/boutiques
a75de1b2fcf96e0eb196974ee2376b014972e847
[ "MIT" ]
null
null
null
tools/python/boutiques/util/utils.py
glatard/boutiques
a75de1b2fcf96e0eb196974ee2376b014972e847
[ "MIT" ]
1
2018-03-20T15:51:00.000Z
2018-03-20T15:51:00.000Z
import os import simplejson as json from boutiques.logger import raise_error # Parses absolute path into filename def extractFileName(path): # Helps OS path handle case where "/" is at the end of path if path is None: return None elif path[:-1] == '/': return os.path.basename(path[:-1]) + ...
31.484848
73
0.606833
36
0.017324
0
0
0
0
0
0
737
0.354668
ea95124323bddaa7f489eebee0d325f17c311f5a
214
py
Python
python/exercism/word_count.py
vesche/snippets
7a9d598df99c26c4e0c63669f9f95a94eeed0d08
[ "Unlicense" ]
7
2016-01-03T19:42:07.000Z
2018-10-23T14:03:12.000Z
python/exercism/word_count.py
vesche/snippets
7a9d598df99c26c4e0c63669f9f95a94eeed0d08
[ "Unlicense" ]
null
null
null
python/exercism/word_count.py
vesche/snippets
7a9d598df99c26c4e0c63669f9f95a94eeed0d08
[ "Unlicense" ]
1
2018-03-09T08:52:01.000Z
2018-03-09T08:52:01.000Z
import re def word_count(s): d = {} s = re.sub('[^0-9a-zA-Z]+', ' ', s.lower()).split() for word in s: if word in d: d[word] += 1 else: d[word] = 1 return d
17.833333
55
0.411215
0
0
0
0
0
0
0
0
18
0.084112
ea966da9c7d51e718e4e2994743bb27ac7739401
1,913
py
Python
src/core/forms.py
artinnok/billing
11a100462e898bf059f89fe77ebb405c2da2806f
[ "MIT" ]
null
null
null
src/core/forms.py
artinnok/billing
11a100462e898bf059f89fe77ebb405c2da2806f
[ "MIT" ]
null
null
null
src/core/forms.py
artinnok/billing
11a100462e898bf059f89fe77ebb405c2da2806f
[ "MIT" ]
null
null
null
from django import forms from core.models import Profile def get_sender_choices(): return list(Profile.objects.all().values_list('pk', 'inn')) class TransactionForm(forms.Form): sender = forms.ChoiceField( label='Отправитель', help_text='Выберите ИНН отправителя', choices=get_sender...
28.132353
112
0.588082
1,874
0.924519
0
0
0
0
0
0
431
0.21263
ea96d847da2a30f013707da8c63074bc8c9579c8
19,736
py
Python
fabfile.py
CCMS-UCSD/ProteoSAFe_Workflow_Deployment
2ce1e68d0c153b76316ccd2b6956d1faa1ad6217
[ "CC0-1.0" ]
1
2021-04-12T18:40:34.000Z
2021-04-12T18:40:34.000Z
fabfile.py
CCMS-UCSD/ProteoSAFe_Workflow_Deployment
2ce1e68d0c153b76316ccd2b6956d1faa1ad6217
[ "CC0-1.0" ]
28
2019-09-05T20:41:22.000Z
2021-06-23T18:10:06.000Z
fabfile.py
CCMS-UCSD/CCMSDeployments
2ce1e68d0c153b76316ccd2b6956d1faa1ad6217
[ "CC0-1.0" ]
null
null
null
from fabric2 import Connection from fabric2 import task from fabric2 import config import os import time from xml.etree import ElementTree as ET import uuid import glob import json import urllib.parse import io workflow_components = ['input.xml', 'binding.xml', 'flow.xml', 'result.xml', 'tool.xml'] @task def release_...
42.443011
218
0.641214
0
0
0
0
9,339
0.473196
0
0
3,575
0.181141
ea983ff474c1e9c14d38adcbbefd09dbeedc005c
5,529
py
Python
tests/test_volume.py
mathieuboudreau/electropy
586f93b076448f39255727ff36afe50edb6255bc
[ "MIT" ]
5
2019-04-06T02:40:34.000Z
2020-09-09T20:31:56.000Z
tests/test_volume.py
mathieuboudreau/electropy
586f93b076448f39255727ff36afe50edb6255bc
[ "MIT" ]
6
2019-04-06T02:40:36.000Z
2021-03-03T17:46:07.000Z
tests/test_volume.py
mathieuboudreau/electropy
586f93b076448f39255727ff36afe50edb6255bc
[ "MIT" ]
1
2020-04-10T19:22:17.000Z
2020-04-10T19:22:17.000Z
import unittest from electropy.charge import Charge import numpy as np from electropy import volume class VolumeTest(unittest.TestCase): def setUp(self): self.position_1 = [0, 0, 0] self.position_2 = [-2, 4, 1] self.charge = 7e-9 def tearDown(self): pass # Potential fun...
28.06599
76
0.558691
5,425
0.98119
0
0
0
0
0
0
272
0.049195
ea99720b3ead320ff8f07f3efbaae5fb0d1681fb
94
py
Python
aiida_icl/__init__.py
chrisjsewell/aiida-cx1scheduler
fd9a1723f65d3858aee678bf035a7b63a03c5885
[ "MIT" ]
null
null
null
aiida_icl/__init__.py
chrisjsewell/aiida-cx1scheduler
fd9a1723f65d3858aee678bf035a7b63a03c5885
[ "MIT" ]
null
null
null
aiida_icl/__init__.py
chrisjsewell/aiida-cx1scheduler
fd9a1723f65d3858aee678bf035a7b63a03c5885
[ "MIT" ]
2
2020-07-01T07:43:13.000Z
2020-07-07T20:00:02.000Z
""" AiiDA Plugin Template Adapt this template for your own needs. """ __version__ = '0.3.4'
11.75
39
0.691489
0
0
0
0
0
0
0
0
77
0.819149
ea9a826f91fe349d070b4bf03eccad1b591d9ea9
794
py
Python
opt/resource/test_out.py
cosee-concourse/mysql-resource
765f9f5eae1026b024b1148c10a5605dad77f1ca
[ "MIT" ]
2
2018-11-15T16:42:14.000Z
2020-01-30T22:32:04.000Z
opt/resource/test_out.py
cosee-concourse/mysql-resource
765f9f5eae1026b024b1148c10a5605dad77f1ca
[ "MIT" ]
null
null
null
opt/resource/test_out.py
cosee-concourse/mysql-resource
765f9f5eae1026b024b1148c10a5605dad77f1ca
[ "MIT" ]
null
null
null
import unittest from concourse_common import testutil import out class TestOut(unittest.TestCase): def test_invalid_json(self): testutil.put_stdin( """ { "source": { "user": "user", "password": "password", "host": "hos...
20.358974
46
0.399244
723
0.910579
0
0
0
0
0
0
441
0.555416
ea9d55f992bddeb052a30ca5d5fa389dffc4128f
2,877
py
Python
auctionCrawler/poxy.py
wd18535470628/PythonCraw
9be3519da1219ad4ffc0d26cc97ceabcb0a7c06b
[ "Apache-2.0" ]
null
null
null
auctionCrawler/poxy.py
wd18535470628/PythonCraw
9be3519da1219ad4ffc0d26cc97ceabcb0a7c06b
[ "Apache-2.0" ]
null
null
null
auctionCrawler/poxy.py
wd18535470628/PythonCraw
9be3519da1219ad4ffc0d26cc97ceabcb0a7c06b
[ "Apache-2.0" ]
null
null
null
#-*- coding=utf-8 -*- import urllib2, time, datetime from lxml import etree import sqlite3,time class getProxy(): def __init__(self): self.user_agent = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)" self.header = {"User-Agent": self.user_agent} self.dbname="proxy.db" ...
30.284211
91
0.54814
3,008
0.930405
0
0
0
0
0
0
1,133
0.350448
ea9e52a902c07d07faf47b9e8450b5190bcaf693
214
py
Python
Agents/utils/readMonFiles.py
mbay-SAG/cumulocity-thinedge-example
e0fa9a52fab16ad791093e0ab3d4383c653a10fd
[ "Apache-2.0" ]
1
2021-03-12T12:22:46.000Z
2021-03-12T12:22:46.000Z
Agents/utils/readMonFiles.py
mbay-SAG/cumulocity-thinedge-example
e0fa9a52fab16ad791093e0ab3d4383c653a10fd
[ "Apache-2.0" ]
2
2020-11-20T16:58:35.000Z
2020-11-25T15:37:06.000Z
Agents/utils/readMonFiles.py
SoftwareAG/cumulocity-thinedge-example
6311a7f2e3d6515b85af5de24758f799e389aaed
[ "Apache-2.0" ]
null
null
null
import sys def content(name): try: with open('../apama-mqtt-connect/monitors/' + str(name) + '.mon', 'r') as file: data = file.read() return data except: return []
19.454545
87
0.509346
0
0
0
0
0
0
0
0
42
0.196262
ea9e964b93453f94a10dfd91125416960a5c91b6
1,046
py
Python
tests/test_search.py
capellaspace/console-client
bad631f207043231630c9b8c0893a1b4382d4061
[ "MIT" ]
23
2021-07-28T19:32:25.000Z
2022-03-19T07:57:36.000Z
tests/test_search.py
capellaspace/console-client
bad631f207043231630c9b8c0893a1b4382d4061
[ "MIT" ]
6
2021-07-16T22:31:56.000Z
2022-03-11T21:09:40.000Z
tests/test_search.py
capellaspace/console-client
bad631f207043231630c9b8c0893a1b4382d4061
[ "MIT" ]
1
2022-01-05T18:38:46.000Z
2022-01-05T18:38:46.000Z
#!/usr/bin/env python import pytest from .test_data import get_search_test_cases, search_catalog_get_stac_ids from capella_console_client import client from capella_console_client.validate import _validate_uuid from capella_console_client.search import _paginated_search @pytest.mark.parametrize("search_args,expecte...
33.741935
86
0.799235
0
0
0
0
232
0.221797
0
0
72
0.068834
eaa18ae73ed1cc5860673f523cf535ff57268751
6,514
py
Python
lib/score_functions/mahalanobis_score.py
alabrashJr/Maha-Odd
cce4bab1f30589cf3d52636fe511c0269058679e
[ "MIT" ]
null
null
null
lib/score_functions/mahalanobis_score.py
alabrashJr/Maha-Odd
cce4bab1f30589cf3d52636fe511c0269058679e
[ "MIT" ]
null
null
null
lib/score_functions/mahalanobis_score.py
alabrashJr/Maha-Odd
cce4bab1f30589cf3d52636fe511c0269058679e
[ "MIT" ]
null
null
null
# Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. # This program is free software; you can redistribute it and/or modify # it under the terms of the MIT License. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # ME...
37.436782
89
0.682069
5,759
0.884096
0
0
5,029
0.772029
0
0
525
0.080596
575b35db9c979401cf63c36c72e33a04e3269d4a
69
py
Python
win/devkit/other/pymel/extras/completion/py/maya/app/sceneAssembly/__init__.py
leegoonz/Maya-devkit
b81fe799b58e854e4ef16435426d60446e975871
[ "ADSL" ]
21
2015-04-27T05:01:36.000Z
2021-11-22T13:45:14.000Z
python/maya/site-packages/pymel-1.0.5/extras/completion/py/maya/app/sceneAssembly/__init__.py
0xb1dd1e/PipelineConstructionSet
621349da1b6d1437e95d0c9e48ee9f36d59f19fd
[ "BSD-3-Clause" ]
null
null
null
python/maya/site-packages/pymel-1.0.5/extras/completion/py/maya/app/sceneAssembly/__init__.py
0xb1dd1e/PipelineConstructionSet
621349da1b6d1437e95d0c9e48ee9f36d59f19fd
[ "BSD-3-Clause" ]
9
2018-06-02T09:18:49.000Z
2021-12-20T09:24:35.000Z
from . import adskPrepareRender import maya.cmds as cmd import maya
13.8
31
0.811594
0
0
0
0
0
0
0
0
0
0
575bf6573208aa2419b03e74d851335d108eb00a
503
py
Python
ask_user_data.py
sukarita/basics-phyton
8e05d3b19fc0dcbf2a4c16473aa7fbe45e5eb27e
[ "MIT" ]
null
null
null
ask_user_data.py
sukarita/basics-phyton
8e05d3b19fc0dcbf2a4c16473aa7fbe45e5eb27e
[ "MIT" ]
null
null
null
ask_user_data.py
sukarita/basics-phyton
8e05d3b19fc0dcbf2a4c16473aa7fbe45e5eb27e
[ "MIT" ]
null
null
null
#Ask user for name name = input("What is your name?: ") #Ask user for the age age = input("How old are you? ") #Ask user for city city = input("What city do you live in? ") #Ask user what they enjoy hobbies = input("What are your hobbies?, What do you love doing? ") #Create output text using placeholders to concat...
25.15
83
0.697813
0
0
0
0
0
0
0
0
356
0.707753
575d46348486aea3cf156ef36a9337580b89061b
2,568
py
Python
skexplain/main/PermutationImportance/multiprocessing_utils.py
monte-flora/scikit-explain
d93ca4c77d1d47e613479ae36cc055ffaafea88c
[ "MIT" ]
null
null
null
skexplain/main/PermutationImportance/multiprocessing_utils.py
monte-flora/scikit-explain
d93ca4c77d1d47e613479ae36cc055ffaafea88c
[ "MIT" ]
7
2022-03-06T01:51:33.000Z
2022-03-28T13:06:34.000Z
skexplain/main/PermutationImportance/multiprocessing_utils.py
monte-flora/scikit-explain
d93ca4c77d1d47e613479ae36cc055ffaafea88c
[ "MIT" ]
null
null
null
"""These are utilities designed for carefully handling communication between processes while multithreading. The code for ``pool_imap_unordered`` is copied nearly wholesale from GrantJ's `Stack Overflow answer here <https://stackoverflow.com/questions/5318936/python-multiprocessing-pool-lazy-iteration?noredirect=1&lq...
29.181818
109
0.633178
0
0
1,547
0.602414
0
0
0
0
1,177
0.458333
575d9a80ceb32000695149a7edeb2329ae95f171
4,786
py
Python
mi/dataset/parser/test/test_flntu_x_mmp_cds.py
petercable/mi-dataset
d3c1607ea31af85fbba5719a31d4a60bf39f8dd3
[ "BSD-2-Clause" ]
1
2015-05-10T01:08:44.000Z
2015-05-10T01:08:44.000Z
mi/dataset/parser/test/test_flntu_x_mmp_cds.py
petercable/mi-dataset
d3c1607ea31af85fbba5719a31d4a60bf39f8dd3
[ "BSD-2-Clause" ]
33
2017-04-25T19:53:45.000Z
2022-03-18T17:42:18.000Z
mi/dataset/parser/test/test_flntu_x_mmp_cds.py
petercable/mi-dataset
d3c1607ea31af85fbba5719a31d4a60bf39f8dd3
[ "BSD-2-Clause" ]
31
2015-03-04T01:01:09.000Z
2020-10-28T14:42:12.000Z
#!/usr/bin/env python """ @package mi.dataset.parser.test.test_flcdrpf_ckl_mmp_cds @file marine-integrations/mi/dataset/parser/test/test_flcdrpf_ckl_mmp_cds.py @author Mark Worden @brief Test code for a flcdrpf_ckl_mmp_cds data parser """ import os from nose.plugins.attrib import attr from mi.core.exce...
36.815385
110
0.661513
4,092
0.854994
0
0
4,119
0.860635
0
0
1,725
0.360426
575dbd1d29e5f8459314be7e87d2a432414925fc
6,602
py
Python
lib/python3.6/site-packages/pkginfo/commandline.py
backcountryinfosec/iocparser
99d6b2cf8506c7731ea2fcb1b75689eac2da7ced
[ "MIT" ]
4
2018-07-27T05:48:13.000Z
2020-05-12T06:54:55.000Z
lib/python3.6/site-packages/pkginfo/commandline.py
backcountryinfosec/iocparser
99d6b2cf8506c7731ea2fcb1b75689eac2da7ced
[ "MIT" ]
4
2020-07-26T02:10:42.000Z
2021-03-31T18:48:58.000Z
lib/python3.6/site-packages/pkginfo/commandline.py
backcountryinfosec/iocparser
99d6b2cf8506c7731ea2fcb1b75689eac2da7ced
[ "MIT" ]
2
2020-02-20T20:59:54.000Z
2022-03-07T06:28:51.000Z
"""Print the metadata for one or more Python package distributions. Usage: %prog [options] path+ Each 'path' entry can be one of the following: o a source distribution: in this case, 'path' should point to an existing archive file (.tar.gz, .tar.bz2, or .zip) as generated by 'setup.py sdist'. o a binary distrib...
32.204878
77
0.567404
2,737
0.414571
0
0
0
0
0
0
1,622
0.245683
575f3985ac6999b8a0ba401f38fcd2e12e1655c9
2,109
py
Python
app_jumanji/migrations/0007_resume.py
arifgafizov/jumanji_v2
e06ec7556544abef66b35cace5a0456f6021bcca
[ "MIT" ]
1
2021-12-02T11:23:39.000Z
2021-12-02T11:23:39.000Z
app_jumanji/migrations/0007_resume.py
arifgafizov/jumanji_v2
e06ec7556544abef66b35cace5a0456f6021bcca
[ "MIT" ]
null
null
null
app_jumanji/migrations/0007_resume.py
arifgafizov/jumanji_v2
e06ec7556544abef66b35cace5a0456f6021bcca
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-08-16 18:03 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('app_jumanji', '0006_auto...
54.076923
141
0.556188
2,111
0.929956
0
0
0
0
0
0
809
0.356388
575f61b15fc74259a459d89fa6848538684d3cf4
1,135
py
Python
molecule/resources/tests_err/test_err.py
fletort/rpi_noobs_recovery
ee81e148bf730ec110bbfda1e46b3ce0820ebcca
[ "MIT" ]
null
null
null
molecule/resources/tests_err/test_err.py
fletort/rpi_noobs_recovery
ee81e148bf730ec110bbfda1e46b3ce0820ebcca
[ "MIT" ]
null
null
null
molecule/resources/tests_err/test_err.py
fletort/rpi_noobs_recovery
ee81e148bf730ec110bbfda1e46b3ce0820ebcca
[ "MIT" ]
null
null
null
import os import pytest import json import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') @pytest.fixture() def waited_failed_task_name(host): all_variables = host.ansible.get_variables() return all_v...
27.682927
71
0.765639
0
0
0
0
646
0.569163
0
0
175
0.154185
575fbd0bfed909e1050ca5a148b9e03632bf0387
54,744
py
Python
sed_vis/visualization.py
TUT-ARG/sed_vis
41ae82ce4191caf1c3d9cdd985c53b135d7550a0
[ "MIT" ]
79
2016-03-07T01:35:55.000Z
2022-03-31T02:52:08.000Z
sed_vis/sed_vis/visualization.py
jim-schwoebel/sound_event_detection
24cd385d23da6382ab92c37587d9478e4324cda0
[ "ECL-2.0", "Apache-2.0" ]
6
2017-10-11T09:41:29.000Z
2021-10-15T23:55:34.000Z
sed_vis/visualization.py
TUT-ARG/sed_vis
41ae82ce4191caf1c3d9cdd985c53b135d7550a0
[ "MIT" ]
27
2016-05-21T15:59:52.000Z
2021-12-03T07:06:31.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Visualization ================== This is module contains a simple visualizer to show event lists along with the audio. The visualizer can show multiple event lists for the same reference audio allowing the comparison of the reference and estimated event lists. .. imag...
35.295938
173
0.536643
53,651
0.980034
0
0
2,545
0.046489
0
0
7,262
0.132654
576046bf13a9a9a373df939e68641affef31278c
498
py
Python
myApp/views.py
geniyong/oauth_practice
c62b461a59299a28538472d9955c57c86c61cad3
[ "MIT" ]
null
null
null
myApp/views.py
geniyong/oauth_practice
c62b461a59299a28538472d9955c57c86c61cad3
[ "MIT" ]
null
null
null
myApp/views.py
geniyong/oauth_practice
c62b461a59299a28538472d9955c57c86c61cad3
[ "MIT" ]
null
null
null
from django.shortcuts import render # Create your views here. from django.shortcuts import render,redirect, render_to_response from .models import * from django.views.generic import TemplateView, ListView, DetailView, CreateView, UpdateView, DeleteView from django.urls import reverse from django.http import HttpRespo...
26.210526
103
0.757028
0
0
0
0
0
0
0
0
54
0.108434
57605a45872280f1b96cf87232eb6af9882ebf02
1,131
py
Python
console/info.py
alexeysp11/sdc-console-python
237ec357b0883d0d033cd0f5609ac8a4f064f86f
[ "MIT" ]
null
null
null
console/info.py
alexeysp11/sdc-console-python
237ec357b0883d0d033cd0f5609ac8a4f064f86f
[ "MIT" ]
null
null
null
console/info.py
alexeysp11/sdc-console-python
237ec357b0883d0d033cd0f5609ac8a4f064f86f
[ "MIT" ]
null
null
null
class Info: """ Allows to print out information about the application. """ def commands(): print('''Main modules: imu | Inertial Measurement Unit (GPS, gyro, accelerometer) gps | GPS gyro | Gyroscope accel | Accelerometer ...
23.5625
74
0.482759
1,130
0.999116
0
0
0
0
0
0
970
0.857648
5762429b1b1dd01cf1b9389178f64cf1b092cca8
2,095
py
Python
apps/establishment_system/search_indexes.py
camilortte/RecomendadorUD
ebf9ee4482c4093d4751a27c90f56637a9c692a4
[ "MIT" ]
4
2015-01-29T17:17:26.000Z
2021-03-03T08:17:03.000Z
apps/establishment_system/search_indexes.py
camilortte/RecomendadorUD
ebf9ee4482c4093d4751a27c90f56637a9c692a4
[ "MIT" ]
null
null
null
apps/establishment_system/search_indexes.py
camilortte/RecomendadorUD
ebf9ee4482c4093d4751a27c90f56637a9c692a4
[ "MIT" ]
1
2015-09-22T08:35:26.000Z
2015-09-22T08:35:26.000Z
# -*- encoding: utf-8 -*- """ search_indexex.py: Creacion de los indices de busqueda. @author Camilo Ramírez @contact camilolinchis@gmail.com camilortte@hotmail.com @camilortte on Twitter @copyright Copyright 2014-2015, RecomendadorUD @license GPL ...
35.508475
99
0.690215
1,597
0.761927
0
0
0
0
0
0
1,083
0.516698
576265ad1cf9770159b84c4c099a658ff418fcd7
1,968
py
Python
utils.py
jeffasante/captcha
7e97d3ed0caf253efd400acfa9f7a754e314c93b
[ "MIT" ]
null
null
null
utils.py
jeffasante/captcha
7e97d3ed0caf253efd400acfa9f7a754e314c93b
[ "MIT" ]
null
null
null
utils.py
jeffasante/captcha
7e97d3ed0caf253efd400acfa9f7a754e314c93b
[ "MIT" ]
1
2022-01-02T10:51:37.000Z
2022-01-02T10:51:37.000Z
''' Handling the data io ''' from torchvision import transforms, datasets import numpy as np import zipfile from io import open import glob from PIL import Image, ImageOps import os import string # Read data def extractZipFiles(zip_file, extract_to): ''' Extract from zip ''' with zipfile.ZipFile(zip_file, ...
24.296296
85
0.643801
838
0.425813
0
0
0
0
0
0
510
0.259146
5766b267912e78674e78fd7d2805ec7078a5c543
4,072
py
Python
tests/test_metaregistry.py
kkaris/bioregistry
e8cdaf8e8c5670873ce10a5a67d7850b76e5eff7
[ "MIT" ]
null
null
null
tests/test_metaregistry.py
kkaris/bioregistry
e8cdaf8e8c5670873ce10a5a67d7850b76e5eff7
[ "MIT" ]
null
null
null
tests/test_metaregistry.py
kkaris/bioregistry
e8cdaf8e8c5670873ce10a5a67d7850b76e5eff7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Tests for the metaregistry.""" import unittest import bioregistry from bioregistry.export.rdf_export import metaresource_to_rdf_str from bioregistry.schema import Registry class TestMetaregistry(unittest.TestCase): """Tests for the metaregistry.""" def test_minimum_metadata(self...
43.319149
109
0.638507
3,867
0.949656
0
0
0
0
0
0
1,098
0.269646
57697b1541d35be66a3cab37aa617e895a535842
341
py
Python
ex038.py
honeyhugh/PythonCurso
e5b8efe04e100ea0b0c0aacde1caf7ae52489f40
[ "MIT" ]
null
null
null
ex038.py
honeyhugh/PythonCurso
e5b8efe04e100ea0b0c0aacde1caf7ae52489f40
[ "MIT" ]
null
null
null
ex038.py
honeyhugh/PythonCurso
e5b8efe04e100ea0b0c0aacde1caf7ae52489f40
[ "MIT" ]
null
null
null
print('Analisador de números') print('=-=' * 15) n1 = int(input('Digite o primeiro número: ')) n2 = int(input('Digite o segundo número: ')) if n1 > n2: print('O número {} é maior que o número {}'.format(n1, n2)) elif n2 > n1: print('O número {} é maior que o número {}'.format(n2, n1)) else: print('Os dois v...
31
63
0.624633
0
0
0
0
0
0
0
0
196
0.558405
576acce6fb8aee36735ff671a49a541abb4f2890
750
py
Python
setup.py
ksachdeva/symbulate
409188680c599622140ff6c984c95703173472e8
[ "MIT" ]
25
2017-04-04T01:55:22.000Z
2022-03-28T17:57:49.000Z
setup.py
ksachdeva/symbulate
409188680c599622140ff6c984c95703173472e8
[ "MIT" ]
67
2017-06-27T23:32:29.000Z
2022-01-15T19:57:28.000Z
setup.py
ksachdeva/symbulate
409188680c599622140ff6c984c95703173472e8
[ "MIT" ]
21
2017-04-04T01:55:22.000Z
2022-01-11T20:03:52.000Z
from setuptools import setup, find_packages setup( name="symbulate", version="0.5.5", description="A symbolic algebra for specifying simulations.", url="https://github.com/dlsun/symbulate", author="Dennis Sun", author_email="dsun09@calpoly.edu", license="GPLv3", classifiers=[ ...
22.058824
75
0.612
0
0
0
0
0
0
0
0
407
0.542667
576b51feddb0ad573026e5dec3bf36423cf565ad
833
py
Python
snakemake/scripts/pipeline/gc.py
BDI-pathogens/ShiverCovid
a032a7a786288b28994eae51215e7851f7571018
[ "MIT" ]
null
null
null
snakemake/scripts/pipeline/gc.py
BDI-pathogens/ShiverCovid
a032a7a786288b28994eae51215e7851f7571018
[ "MIT" ]
null
null
null
snakemake/scripts/pipeline/gc.py
BDI-pathogens/ShiverCovid
a032a7a786288b28994eae51215e7851f7571018
[ "MIT" ]
null
null
null
from __future__ import print_function import gzip import os import sys from decimal import Decimal def calculate_gc(inpath): inf = gzip.open(inpath) if inpath.endswith('.gz') else open(inpath) ttl_bases = 0 gc_bases = 0 for i, l in enumerate(inf): if i % 4 == 1: s = l.strip().uppe...
28.724138
84
0.623049
0
0
0
0
0
0
0
0
155
0.186074
576cac074c13eb095065c6d2030dffe84a3c2e7c
725
py
Python
blind_automation/event/blocker.py
RaphiOriginal/blindAutomation
47f087be0ef33983cfc372abe09760c9a64f1849
[ "MIT" ]
1
2020-08-20T19:43:14.000Z
2020-08-20T19:43:14.000Z
blind_automation/event/blocker.py
RaphiOriginal/blindAutomation
47f087be0ef33983cfc372abe09760c9a64f1849
[ "MIT" ]
null
null
null
blind_automation/event/blocker.py
RaphiOriginal/blindAutomation
47f087be0ef33983cfc372abe09760c9a64f1849
[ "MIT" ]
null
null
null
from typing import Optional, TypeVar from .event import EventBlocker T = TypeVar('T') class Blocker(EventBlocker): def __init__(self): self.__block = False self.__block_list: [T] = [] def block(self): self.__block = True def unblock(self): self.__block = False def ...
21.323529
90
0.609655
634
0.874483
0
0
215
0.296552
0
0
41
0.056552
576cb2eea467a88f13b66f007bd906188c23f5fc
4,239
py
Python
lib/systems/chlorophyll_c2.py
pulsar-chem/BPModule
f8e64e04fdb01947708f098e833600c459c2ff0e
[ "BSD-3-Clause" ]
null
null
null
lib/systems/chlorophyll_c2.py
pulsar-chem/BPModule
f8e64e04fdb01947708f098e833600c459c2ff0e
[ "BSD-3-Clause" ]
null
null
null
lib/systems/chlorophyll_c2.py
pulsar-chem/BPModule
f8e64e04fdb01947708f098e833600c459c2ff0e
[ "BSD-3-Clause" ]
null
null
null
import pulsar as psr def load_ref_system(): """ Returns chlorophyll_c2 as found in the IQMol fragment library. All credit to https://github.com/nutjunkie/IQmol """ return psr.make_system(""" C -2.51105 2.48309 -0.00367 C -1.01315 4.06218 0.09798...
52.333333
70
0.362114
0
0
0
0
0
0
0
0
4,161
0.981599
5771a8c9a11c0b65fd2a5981efe83e45f9b456e5
14,669
py
Python
fth.py
anonymous-sys19/fth
cbde3030f43d048970e1471dc9c4fafba50fedb8
[ "Apache-2.0" ]
2
2021-02-01T18:31:19.000Z
2021-05-28T19:14:51.000Z
fth.py
anonymous-sys19/fth
cbde3030f43d048970e1471dc9c4fafba50fedb8
[ "Apache-2.0" ]
null
null
null
fth.py
anonymous-sys19/fth
cbde3030f43d048970e1471dc9c4fafba50fedb8
[ "Apache-2.0" ]
null
null
null
import os import time import sys import random user_pass = ('''admin admi admin universo html veggeta Admin bados free-fire royale clang free fire anonimo anonimous anoni bills anonymous Aanonimous pass password wordlist kali linux kali-linux start Hacker parrot ubuntu blacken redhat deepin lubuntu depin gogeta hacke...
23.247227
118
0.439703
0
0
0
0
0
0
0
0
10,043
0.659292
5771c942a9c694ad105aa8ab9cf5971afb8d6de1
5,637
py
Python
AN-24_Nizhneangarsk/data/google_earth.py
paulross/pprune-calc
ebed46e7e029bc7a3067f50ad180a1df236052cf
[ "MIT" ]
1
2020-10-24T15:46:18.000Z
2020-10-24T15:46:18.000Z
AN-24_Nizhneangarsk/data/google_earth.py
paulross/pprune-calc
ebed46e7e029bc7a3067f50ad180a1df236052cf
[ "MIT" ]
null
null
null
AN-24_Nizhneangarsk/data/google_earth.py
paulross/pprune-calc
ebed46e7e029bc7a3067f50ad180a1df236052cf
[ "MIT" ]
null
null
null
import itertools import math import pprint import sys import typing import map_funcs GOOGLE_EARTH_AIRPORT_IMAGES = { 'GoogleEarth_AirportCamera_C.jpg' : { 'path': 'video_images/GoogleEarth_AirportCamera_C.jpg', 'width': 4800, 'height': 3011, # Originally measured on the 100m legend...
45.829268
105
0.693809
0
0
0
0
0
0
0
0
2,661
0.471976
5772fd07bf52569383712e22c1c25c0c240b9a7f
4,527
py
Python
mongo_queue/queue.py
shunyeka/mongo_queue
df20894e96bfb93c6b710cd5b3d604498fb69576
[ "MIT" ]
6
2020-08-05T13:08:34.000Z
2022-02-10T10:01:03.000Z
mongo_queue/queue.py
shunyeka/mongo_queue
df20894e96bfb93c6b710cd5b3d604498fb69576
[ "MIT" ]
null
null
null
mongo_queue/queue.py
shunyeka/mongo_queue
df20894e96bfb93c6b710cd5b3d604498fb69576
[ "MIT" ]
4
2020-08-05T13:08:48.000Z
2022-03-29T17:13:18.000Z
import pymongo from datetime import datetime, timedelta from mongo_queue.job import Job from uuid import uuid4 from pymongo import errors DEFAULT_INSERT = { "attempts": 0, "locked_by": None, "locked_at": None, "last_error": None } class Queue: def __init__(self, collection, consumer_id, timeout=3...
33.533333
109
0.522863
4,276
0.944555
0
0
0
0
0
0
1,474
0.325602
5773699f898326e720821addb402b1324a622597
776
py
Python
CursoGuanabara/ex71_aula15_guanabara.py
cirino/python
6c45b5305aebeeeebb7ffef335700e41cc0b6b3b
[ "MIT" ]
1
2018-05-06T01:25:28.000Z
2018-05-06T01:25:28.000Z
CursoGuanabara/ex71_aula15_guanabara.py
cirino/python
6c45b5305aebeeeebb7ffef335700e41cc0b6b3b
[ "MIT" ]
1
2019-02-10T18:46:37.000Z
2019-02-12T21:17:50.000Z
CursoGuanabara/ex71_aula15_guanabara.py
cirino/python
6c45b5305aebeeeebb7ffef335700e41cc0b6b3b
[ "MIT" ]
null
null
null
print(''' Exercício 71 da aula 15 de Python Curso do Guanabara Day 24 Code Python - 23/05/2018 ''') print('{:^30}'.format('BANCO DO CIRINO')) print('=' * 30) n = int(input('Qual o valor para sacar? R$ ')) total = n nota = 50 # começar de cima para baixo na estrutura qtdNota = 0 while True: if tota...
18.47619
56
0.487113
0
0
0
0
0
0
0
0
261
0.335476
5773c7f1c83fb78f2af7b935f1a55fb941e08abf
1,823
py
Python
models/face_completion.py
MartinKondor/MachineLearning
2deb257796cb63bcc4d13594484e266a93ab7a83
[ "MIT" ]
null
null
null
models/face_completion.py
MartinKondor/MachineLearning
2deb257796cb63bcc4d13594484e266a93ab7a83
[ "MIT" ]
null
null
null
models/face_completion.py
MartinKondor/MachineLearning
2deb257796cb63bcc4d13594484e266a93ab7a83
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from sklearn.utils.validation import check_random_state from sklearn.datasets import fetch_olivetti_faces from sklearn.externals import joblib rng = check_random_state(21) dataset = fetch_olivetti_faces() X = dataset.images.reshape(dataset.images.shape[0], -1) trai...
34.396226
130
0.690071
0
0
0
0
0
0
0
0
419
0.229841
57742842c8a7ea0601406b324c435a1136e7bdad
1,815
py
Python
tests/utility.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
1
2021-05-06T19:45:54.000Z
2021-05-06T19:45:54.000Z
tests/utility.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
null
null
null
tests/utility.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
null
null
null
TONES = list('CDEFGAB') def build_offset_list(scale): iter_scale = iter(scale) first = next(iter_scale) base = first.tonal_offset last_diff = 0 tonal_offsets = [] for dt in iter_scale: diff = dt.tonal_offset - base if diff < 0: diff += 12 # This is the diffe...
29.274194
88
0.648485
0
0
0
0
0
0
0
0
164
0.090358
577497e84fee800ed831d409f33393bf3915e7c8
3,447
py
Python
backend/api/serializers/information_serializer.py
ferdn4ndo/infotrem
4728c5fe8385dcc0a1c75068429fa20e2afbf6f2
[ "MIT" ]
null
null
null
backend/api/serializers/information_serializer.py
ferdn4ndo/infotrem
4728c5fe8385dcc0a1c75068429fa20e2afbf6f2
[ "MIT" ]
1
2020-06-21T18:38:14.000Z
2020-06-21T21:57:09.000Z
backend/api/serializers/information_serializer.py
ferdn4ndo/infotrem
4728c5fe8385dcc0a1c75068429fa20e2afbf6f2
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.db.models import Sum from rest_framework import serializers from api.models.information_model import Information from api.models.information_effect_model import InformationEffect from api.models.information_vote_model import InformationVote from api.serializers.u...
34.818182
103
0.691326
3,081
0.893821
0
0
1,038
0.301131
0
0
352
0.102118
5774e1717dedb11588476f4f78df3c3d0a8e219f
3,493
py
Python
insightface/face_model.py
dniku/insightface
763060b2608aaa9e77103ac6aaa393878501dee3
[ "MIT" ]
null
null
null
insightface/face_model.py
dniku/insightface
763060b2608aaa9e77103ac6aaa393878501dee3
[ "MIT" ]
null
null
null
insightface/face_model.py
dniku/insightface
763060b2608aaa9e77103ac6aaa393878501dee3
[ "MIT" ]
null
null
null
import os import cv2 import mxnet as mx import numpy as np from . import face_preprocess from .mtcnn_detector import MtcnnDetector def get_model(ctx, image_size, model_str, layer): _vec = model_str.split(',') assert len(_vec) == 2 prefix = _vec[0] epoch = int(_vec[1]) print('loading', prefix, ep...
37.159574
146
0.603206
2,659
0.761237
0
0
0
0
0
0
255
0.073003
577604174c837cf71abd588c86d1070a895c9358
316
py
Python
src/newspaperkk.py
harakiriboy/Python-Final-exam-
11a08453fe4dd547d09c97baeda57f3899b1e17a
[ "MIT" ]
null
null
null
src/newspaperkk.py
harakiriboy/Python-Final-exam-
11a08453fe4dd547d09c97baeda57f3899b1e17a
[ "MIT" ]
null
null
null
src/newspaperkk.py
harakiriboy/Python-Final-exam-
11a08453fe4dd547d09c97baeda57f3899b1e17a
[ "MIT" ]
null
null
null
import newspaper from newspaper import Article def getarticle(url): articleurl = url article = Article(articleurl) try: article.download() article.parse() alltext = article.text return alltext except: return "this website is not available"
18.588235
47
0.607595
0
0
0
0
0
0
0
0
31
0.098101
577688ba8ec27db2c2499b1d093cb54fc4a94c4c
71
py
Python
Server/app/schema/utils/__init__.py
Team-SeeTo/SeeTo-Backend
19990cd6f4895e773eaa504f7b7a07ddbb5856e5
[ "Apache-2.0" ]
4
2018-06-18T06:50:12.000Z
2018-11-15T00:08:24.000Z
Server/app/schema/utils/__init__.py
Team-SeeTo/SeeTo-Backend
19990cd6f4895e773eaa504f7b7a07ddbb5856e5
[ "Apache-2.0" ]
null
null
null
Server/app/schema/utils/__init__.py
Team-SeeTo/SeeTo-Backend
19990cd6f4895e773eaa504f7b7a07ddbb5856e5
[ "Apache-2.0" ]
null
null
null
from .activity_logger import idea_activity_logger, todo_activity_logger
71
71
0.915493
0
0
0
0
0
0
0
0
0
0
57778b9212cbd84692109c1076197d5f351d5c74
1,302
py
Python
h2o-py/tests/testdir_misc/pyunit_pubdev_7506_model_download_with_cv.py
vishalbelsare/h2o-3
9322fb0f4c0e2358449e339a434f607d524c69fa
[ "Apache-2.0" ]
6,098
2015-05-22T02:46:12.000Z
2022-03-31T16:54:51.000Z
h2o-py/tests/testdir_misc/pyunit_pubdev_7506_model_download_with_cv.py
vishalbelsare/h2o-3
9322fb0f4c0e2358449e339a434f607d524c69fa
[ "Apache-2.0" ]
2,517
2015-05-23T02:10:54.000Z
2022-03-30T17:03:39.000Z
h2o-py/tests/testdir_misc/pyunit_pubdev_7506_model_download_with_cv.py
vishalbelsare/h2o-3
9322fb0f4c0e2358449e339a434f607d524c69fa
[ "Apache-2.0" ]
2,199
2015-05-22T04:09:55.000Z
2022-03-28T22:20:45.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- import h2o import os from h2o.estimators.gbm import H2OGradientBoostingEstimator from tests import pyunit_utils def model_download_with_cv(): prostate = h2o.import_file(pyunit_utils.locate("smalldata/prostate/prostate.csv")) prostate["CAPSULE"] = prostate["CAPSU...
38.294118
114
0.771889
0
0
0
0
0
0
0
0
256
0.196621
5777cb4aa061f3c293f389812b1b6779768ca886
890
py
Python
CNN/VGGNET/vgg16_features.py
reddyprasade/Deep-Learning
35fea69af72f94f6ad62a0f308de7bd515c27e7a
[ "MIT" ]
15
2020-01-23T12:01:22.000Z
2022-03-29T21:07:41.000Z
CNN/VGGNET/vgg16_features.py
reddyprasade/Deep-Learning
35fea69af72f94f6ad62a0f308de7bd515c27e7a
[ "MIT" ]
null
null
null
CNN/VGGNET/vgg16_features.py
reddyprasade/Deep-Learning
35fea69af72f94f6ad62a0f308de7bd515c27e7a
[ "MIT" ]
10
2020-02-12T02:52:04.000Z
2021-07-04T07:38:39.000Z
import tensorflow as tf from tensorflow.keras.applications.vgg16 import VGG16 from tensorflow.keras import models from tensorflow.keras.preprocessing import image from tensorflow.keras.applications.vgg16 import preprocess_input import numpy as np import cv2 # prebuild model with pre-trained weights on imagene...
30.689655
65
0.769663
0
0
0
0
0
0
0
0
163
0.183146
57785e3742249e6e69fdb5606027bac6121de3f7
3,262
py
Python
evaluate.py
m4ln/HIWI_classification
f872c3da03bf999aeddd870eeed34332c8a9471a
[ "MIT" ]
1
2020-09-07T10:02:07.000Z
2020-09-07T10:02:07.000Z
evaluate.py
m4ln/HIWI_classification
f872c3da03bf999aeddd870eeed34332c8a9471a
[ "MIT" ]
1
2020-09-16T14:26:01.000Z
2020-09-16T14:26:01.000Z
evaluate.py
m4ln/HIWI_classification
f872c3da03bf999aeddd870eeed34332c8a9471a
[ "MIT" ]
1
2020-09-07T11:29:47.000Z
2020-09-07T11:29:47.000Z
""" call in shell: python evaluate.py --dir <rootdir/experiment/> --epoch <epoch to> e.g. in shell: python evaluate.py --dir Runs/se_resnet_trained_final/ --epoch 149 loops over all folds and calculates + stores the accuracies in a file in the root folder of the experiment you might change the model in line 45 from r...
34.336842
139
0.656039
0
0
0
0
0
0
0
0
1,628
0.49908
5778b44bc575b3aed34007cd02dacc145c82ec6d
18,413
py
Python
Allura/allura/webhooks.py
brondsem/allura
37f4f4a68e71c7f1b8d72f4eee4c0b3d08c1a906
[ "Apache-2.0" ]
null
null
null
Allura/allura/webhooks.py
brondsem/allura
37f4f4a68e71c7f1b8d72f4eee4c0b3d08c1a906
[ "Apache-2.0" ]
null
null
null
Allura/allura/webhooks.py
brondsem/allura
37f4f4a68e71c7f1b8d72f4eee4c0b3d08c1a906
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (t...
36.174853
109
0.576875
16,393
0.890295
0
0
6,073
0.329821
0
0
3,962
0.215174
5779139c5edd9a302a13fd80a4c26bb0aae39343
11,139
py
Python
monitor/monitor_v6_diagnostic.py
nlourie/vent-flowmeter
7aa6e3814a7bf8a7da4d81eb80da69ceb5e8da80
[ "MIT" ]
2
2020-04-13T19:22:45.000Z
2020-04-14T17:17:12.000Z
monitor/monitor_v6_diagnostic.py
nlourie/vent-flowmeter
7aa6e3814a7bf8a7da4d81eb80da69ceb5e8da80
[ "MIT" ]
null
null
null
monitor/monitor_v6_diagnostic.py
nlourie/vent-flowmeter
7aa6e3814a7bf8a7da4d81eb80da69ceb5e8da80
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Apr 7 08:38:28 2020 pyqt realtime plot tutorial source: https://www.learnpyqt.com/courses/graphics-plotting/plotting-pyqtgraph/ @author: nlourie """ from PyQt5 import QtWidgets, QtCore,uic from pyqtgraph import PlotWidget, plot,QtGui import pyqtgra...
34.700935
227
0.589281
7,785
0.698896
0
0
0
0
0
0
4,313
0.387198
577b488a4c6bb95a24f07ede098c7e6465673424
380
py
Python
src/quotes_crawlspider/quotes/items.py
azzamsa/learn-scrapy
8d408763ff0be21fe2e0933b91b4ad1fe082b3ec
[ "MIT" ]
null
null
null
src/quotes_crawlspider/quotes/items.py
azzamsa/learn-scrapy
8d408763ff0be21fe2e0933b91b4ad1fe082b3ec
[ "MIT" ]
null
null
null
src/quotes_crawlspider/quotes/items.py
azzamsa/learn-scrapy
8d408763ff0be21fe2e0933b91b4ad1fe082b3ec
[ "MIT" ]
null
null
null
# Define here the models for your scraped items # # See documentation in: # https://docs.scrapy.org/en/latest/topics/items.html import scrapy class QuotesItem(scrapy.Item): # define the fields for your item here like: author_name = scrapy.Field() author_location = scrapy.Field() author_date = scrapy....
23.75
53
0.705263
234
0.615789
0
0
0
0
0
0
168
0.442105