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
ca1e75b8cd214f4ca19259a5878690ef7e42b020
2,061
py
Python
examples/sumo/sugiyama_8.py
cuijiaxun/MITC
a226308424237a69b5e938baf72949de9b1b4bf2
[ "MIT" ]
1
2021-06-17T03:25:13.000Z
2021-06-17T03:25:13.000Z
examples/sumo/sugiyama_8.py
cuijiaxun/MITC
a226308424237a69b5e938baf72949de9b1b4bf2
[ "MIT" ]
null
null
null
examples/sumo/sugiyama_8.py
cuijiaxun/MITC
a226308424237a69b5e938baf72949de9b1b4bf2
[ "MIT" ]
1
2021-03-18T16:20:57.000Z
2021-03-18T16:20:57.000Z
"""Used as an example of sugiyama experiment. This example consists of 22 IDM cars on a ring creating shockwaves. """ from flow.controllers import IDMController, ContinuousRouter from flow.core.experiment import Experiment from flow.core.params import SumoParams, EnvParams, \ InitialConfig, NetParams from flow.co...
27.48
73
0.701601
ca1f5e9182cad8bbd27bd4f685e77ff4f7eed200
2,970
py
Python
scrapyu/_mongodb.py
lin-zone/scrapyu
abcb8eed2ea02121b74017e007c57c0d3762342d
[ "MIT" ]
1
2021-01-05T09:11:42.000Z
2021-01-05T09:11:42.000Z
scrapyu/_mongodb.py
lin-zone/scrapyu
abcb8eed2ea02121b74017e007c57c0d3762342d
[ "MIT" ]
null
null
null
scrapyu/_mongodb.py
lin-zone/scrapyu
abcb8eed2ea02121b74017e007c57c0d3762342d
[ "MIT" ]
null
null
null
import logging from pymongo import MongoClient from scrapy.exceptions import CloseSpider
34.534884
79
0.591582
ca20663d17c2b5c13d6672b251c30edd875a67ee
15,247
py
Python
3D_CNNs/S3DG_small.py
Seunghoon-Yi/Paper_review-PyTorch
44728cc9c3eee6c0146b0cff8a46099e789dfabc
[ "MIT" ]
2
2021-08-12T13:05:37.000Z
2021-12-30T08:25:18.000Z
3D_CNNs/S3DG_small.py
Seunghoon-Yi/Paper_review-PyTorch
44728cc9c3eee6c0146b0cff8a46099e789dfabc
[ "MIT" ]
null
null
null
3D_CNNs/S3DG_small.py
Seunghoon-Yi/Paper_review-PyTorch
44728cc9c3eee6c0146b0cff8a46099e789dfabc
[ "MIT" ]
null
null
null
import torch.nn as nn import torch import os # Note the operations here for S3D-G: # If we set two convs: 1xkxk + kx1x1, it's as follows: (p=(k-1)/2) # BasicConv3d(input,output,kernel_size=(1,k,k),stride=1,padding=(0,p,p)) # Then BasicConv3d(output,output,kernel_size=(k,1,1),stride=1,padding=(p,0,0)) ...
37.370098
143
0.527776
ca216d943f7740ec07946d833aa78c136cd07f3c
99
py
Python
cfdcode/__init__.py
pxr687/cfd2021
e4583e0b163817ddf360f35687d7939b06427868
[ "CC-BY-4.0" ]
1
2021-09-16T10:11:02.000Z
2021-09-16T10:11:02.000Z
cfdcode/__init__.py
pxr687/cfd2021
e4583e0b163817ddf360f35687d7939b06427868
[ "CC-BY-4.0" ]
10
2020-10-30T15:24:02.000Z
2021-08-30T12:16:31.000Z
cfdcode/__init__.py
pxr687/cfd2021
e4583e0b163817ddf360f35687d7939b06427868
[ "CC-BY-4.0" ]
5
2020-09-02T10:52:06.000Z
2021-11-07T08:32:42.000Z
""" Support code for textbook """ from . import ucb_page
12.375
29
0.676768
ca22c99f36f0086314ac449915871df83703a856
9,904
py
Python
Image Classification/CGIAR Computer Vision for Crop Disease/Zindi-CGIAR-master/CGIAR/slim/utils/learning_rate_schedule.py
ZindiAfrica/Computer-Vision
bf4c00a0633506270dc6d07df938a100a10ee799
[ "MIT" ]
11
2018-09-10T14:49:53.000Z
2021-04-04T17:19:35.000Z
utils/learning_rate_schedule.py
dallal9/Super-convergence-tensorflow-slim
5f912e83bf46ec6d2b4f079896610426092abda0
[ "MIT" ]
null
null
null
utils/learning_rate_schedule.py
dallal9/Super-convergence-tensorflow-slim
5f912e83bf46ec6d2b4f079896610426092abda0
[ "MIT" ]
2
2020-05-26T15:25:27.000Z
2021-04-04T17:19:40.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow.python.eager import context from tensorflow.python.framework import constant_op from tensorflow.python.framework import dtypes from tensorflow.python.framework import ops from tensorflow.python....
43.823009
186
0.685279
ca23c1c1fb9f0996c3429cd643f93153fd251931
307
py
Python
tracker/migrations/0016_merge_20190914_1249.py
TreZc0/donation-tracker
3a833a5eba3c0b7cedd8249b44b1435f526095ba
[ "Apache-2.0" ]
39
2016-01-04T04:13:27.000Z
2022-01-18T19:17:24.000Z
tracker/migrations/0016_merge_20190914_1249.py
TreZc0/donation-tracker
3a833a5eba3c0b7cedd8249b44b1435f526095ba
[ "Apache-2.0" ]
140
2015-11-01T01:19:54.000Z
2022-03-10T13:00:33.000Z
tracker/migrations/0016_merge_20190914_1249.py
TreZc0/donation-tracker
3a833a5eba3c0b7cedd8249b44b1435f526095ba
[ "Apache-2.0" ]
35
2016-01-20T12:42:21.000Z
2022-01-20T07:06:47.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.22 on 2019-09-14 16:49 from django.db import migrations
18.058824
53
0.638436
ca25ac5ad2646a796e6710783d7c4adc34ee5846
4,205
py
Python
src/nasty_utils/io_.py
lschmelzeisen/nasty-utils
d2daf2faed35d7028bf0adc7ae5a321ca3b9b4ed
[ "ECL-2.0", "Apache-2.0" ]
1
2020-05-23T19:18:45.000Z
2020-05-23T19:18:45.000Z
src/nasty_utils/io_.py
lschmelzeisen/nasty-utils
d2daf2faed35d7028bf0adc7ae5a321ca3b9b4ed
[ "ECL-2.0", "Apache-2.0" ]
1
2021-05-09T08:09:20.000Z
2021-05-09T08:09:20.000Z
src/nasty_utils/io_.py
lschmelzeisen/nasty-utils
d2daf2faed35d7028bf0adc7ae5a321ca3b9b4ed
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# # Copyright 2019-2020 Lukas Schmelzeisen # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
34.186992
85
0.639239
ca27b4890d76ba9cc311df8e7b942a491468798a
121
py
Python
tests/settings/imagemagick.py
apahomov/sorl-thumbnail
b6358d234d7de3927a2666a2a5ab3d7870c0e1d3
[ "BSD-3-Clause" ]
630
2017-05-25T23:50:46.000Z
2022-03-29T09:59:06.000Z
tests/settings/imagemagick.py
apahomov/sorl-thumbnail
b6358d234d7de3927a2666a2a5ab3d7870c0e1d3
[ "BSD-3-Clause" ]
246
2017-05-29T14:42:08.000Z
2022-03-13T23:41:30.000Z
tests/settings/imagemagick.py
apahomov/sorl-thumbnail
b6358d234d7de3927a2666a2a5ab3d7870c0e1d3
[ "BSD-3-Clause" ]
163
2017-05-29T08:26:04.000Z
2022-02-28T17:11:19.000Z
from .default import * THUMBNAIL_ENGINE = 'sorl.thumbnail.engines.convert_engine.Engine' THUMBNAIL_CONVERT = 'convert'
20.166667
65
0.801653
ca27d618be9f13eb5cf7a96b129b45402179a317
1,882
py
Python
gallery/models.py
tinyx/yitao.io
8a3a75016e417b4c158bca0ceae98a589b2adff2
[ "MIT" ]
null
null
null
gallery/models.py
tinyx/yitao.io
8a3a75016e417b4c158bca0ceae98a589b2adff2
[ "MIT" ]
12
2020-06-05T19:26:11.000Z
2022-03-11T23:33:24.000Z
gallery/models.py
tinyx/yitao.io
8a3a75016e417b4c158bca0ceae98a589b2adff2
[ "MIT" ]
null
null
null
from django.db import models from filer.fields.image import FilerImageField
28.089552
85
0.636026
ca27e7c5c831f2b90eb011fb72a4a0c593072428
3,912
py
Python
airpurifier2.py
id872/airpurifier2
66eecf5a56f8f1ab410b7717ec9533fa3b239fbf
[ "MIT" ]
1
2019-08-24T19:40:08.000Z
2019-08-24T19:40:08.000Z
airpurifier2.py
id872/airpurifier2
66eecf5a56f8f1ab410b7717ec9533fa3b239fbf
[ "MIT" ]
null
null
null
airpurifier2.py
id872/airpurifier2
66eecf5a56f8f1ab410b7717ec9533fa3b239fbf
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.6 import sys try: from PyQt5.QtWidgets import QApplication, QMainWindow from PyQt5.QtCore import QTimer from PyQt5.QtWidgets import QMessageBox except ImportError: print('PyQt5 is required to run this script') sys.exit(1) try: from miio.airpurifier import AirPurifier, Op...
27.744681
83
0.639826
ca28c579f0036945ed4430204f4097843529c02f
303
py
Python
4_SC_project/courses/views.py
abdullah1107/Django-for-Begineers
03b9025607df9a5318d9e3b736fa66d233fdc4de
[ "MIT" ]
null
null
null
4_SC_project/courses/views.py
abdullah1107/Django-for-Begineers
03b9025607df9a5318d9e3b736fa66d233fdc4de
[ "MIT" ]
null
null
null
4_SC_project/courses/views.py
abdullah1107/Django-for-Begineers
03b9025607df9a5318d9e3b736fa66d233fdc4de
[ "MIT" ]
null
null
null
from django.shortcuts import render from rest_framework import viewsets from courses.models import MyCourse from courses.serializers import CourseSerializer # Create your views here.
30.3
48
0.825083
ca2a020e55ef58b8ccd08ea58dfee06400f98911
34,753
py
Python
mpisppy/utils/pysp_model/tests/test_scenariotree.py
Matthew-Signorotti/mpi-sppy
5c6b4b8cd26af517ff09706d11751f2fb05b1b5f
[ "BSD-3-Clause" ]
2
2020-06-05T14:31:46.000Z
2020-09-29T20:08:05.000Z
mpisppy/utils/pysp_model/tests/test_scenariotree.py
Matthew-Signorotti/mpi-sppy
5c6b4b8cd26af517ff09706d11751f2fb05b1b5f
[ "BSD-3-Clause" ]
22
2020-06-06T19:30:33.000Z
2020-10-30T23:00:58.000Z
mpisppy/utils/pysp_model/tests/test_scenariotree.py
Matthew-Signorotti/mpi-sppy
5c6b4b8cd26af517ff09706d11751f2fb05b1b5f
[ "BSD-3-Clause" ]
6
2020-06-06T17:57:38.000Z
2020-09-18T22:38:19.000Z
# ___________________________________________________________________________ # # Pyomo: Python Optimization Modeling Objects # Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC # Under the terms of Contract DE-NA0003525 with National Technology and # Engineering Solutions of Sandia, LLC...
39.808706
91
0.594798
ca2c04fbab85db006f45ccb88b3c1d784ac78509
11,004
py
Python
eucaconsole/models/auth.py
ccassler/eucaconsole
c555728685b0d76eed65919037d442d97b6e9dd6
[ "BSD-2-Clause" ]
null
null
null
eucaconsole/models/auth.py
ccassler/eucaconsole
c555728685b0d76eed65919037d442d97b6e9dd6
[ "BSD-2-Clause" ]
null
null
null
eucaconsole/models/auth.py
ccassler/eucaconsole
c555728685b0d76eed65919037d442d97b6e9dd6
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2013-2014 Eucalyptus Systems, Inc. # # Redistribution and use of this software in source and binary forms, # with or without modification, are permitted provided that the following # conditions are met: # # Redistributions of source code must retain the above copyright notice, # this...
39.160142
120
0.651854
ca2c0ab19ea859d07a1be0aeaa1c9e6aba93dfd7
5,424
py
Python
mitzasql/ui/widgets/session_popup_launcher.py
vladbalmos/mitzasql
06c2a96eb4494095b2b72bc1454199a4940b0700
[ "MIT" ]
69
2019-05-16T06:40:18.000Z
2022-03-24T06:23:49.000Z
mitzasql/ui/widgets/session_popup_launcher.py
vladbalmos/mitzasql
06c2a96eb4494095b2b72bc1454199a4940b0700
[ "MIT" ]
36
2019-05-15T19:55:24.000Z
2021-07-22T07:07:14.000Z
mitzasql/ui/widgets/session_popup_launcher.py
vladbalmos/mitzasql
06c2a96eb4494095b2b72bc1454199a4940b0700
[ "MIT" ]
8
2019-05-16T06:56:28.000Z
2022-02-11T02:24:12.000Z
# Copyright (c) 2021 Vlad Balmos <vladbalmos@yahoo.com> # Author: Vlad Balmos <vladbalmos@yahoo.com> # See LICENSE file import urwid from .. import main_loop as shared_main_loop from .error_dialog import ErrorDialog from .info_dialog import InfoDialog from .quit_dialog import QuitDialog
34.113208
91
0.6309
ca2e5ef930ba43da3724f81c6111b142413377f8
266
py
Python
Desafios/Desafio110.py
vaniaferreira/Python
5b3158836d47c0bb7bc446e6636e7b3dcea8a0ab
[ "MIT" ]
null
null
null
Desafios/Desafio110.py
vaniaferreira/Python
5b3158836d47c0bb7bc446e6636e7b3dcea8a0ab
[ "MIT" ]
null
null
null
Desafios/Desafio110.py
vaniaferreira/Python
5b3158836d47c0bb7bc446e6636e7b3dcea8a0ab
[ "MIT" ]
null
null
null
#Adicione ao mdulo moeda.py criado nos desafios anteriores, uma funo chamada resumo(), que mostre na tela algumas #informaes geradas pelas funes que j temos no mdulo criado at aqui. import moeda p = float(input('Preo: R$')) moeda.resumo(p, 20, 12)
20.461538
116
0.74812
ca31492fc3fb6ac5e525636c924d66466aa54803
431
py
Python
gpvolve/__init__.py
clararehmann/gpvolve
4e45b53b72184425c24d57b2e8779d3d51de39d7
[ "MIT" ]
1
2021-12-05T23:00:59.000Z
2021-12-05T23:00:59.000Z
gpvolve/__init__.py
clararehmann/gpvolve
4e45b53b72184425c24d57b2e8779d3d51de39d7
[ "MIT" ]
null
null
null
gpvolve/__init__.py
clararehmann/gpvolve
4e45b53b72184425c24d57b2e8779d3d51de39d7
[ "MIT" ]
null
null
null
from .__version__ import __version__ from . import simulate from . import markov from . import utils from . import check from . import pyplot from .markovmodel import GenotypePhenotypeMSM from .slimsim import GenotypePhenotypeSLiM # from .visualization import * #from .utils import * # from .fitness import * # from .f...
22.684211
45
0.761021
ca3209e008aac9d7e6fbeb889119bd17768f28fc
550
py
Python
t108.py
showerhhh/leetcode_python
ea26e756dd10befbc22d99c258acd8198b215630
[ "MIT" ]
null
null
null
t108.py
showerhhh/leetcode_python
ea26e756dd10befbc22d99c258acd8198b215630
[ "MIT" ]
null
null
null
t108.py
showerhhh/leetcode_python
ea26e756dd10befbc22d99c258acd8198b215630
[ "MIT" ]
null
null
null
# Definition for a binary tree node.
26.190476
49
0.52
ca32957679bae1dd771e128856697fc064b21819
1,066
py
Python
devices/ssh_connection.py
premandfriends/boardfarm-1
3c952c94507fff25ba9955cad993610ea4a95e2e
[ "BSD-3-Clause-Clear" ]
74
2015-08-25T22:50:38.000Z
2022-01-04T16:32:00.000Z
devices/ssh_connection.py
premandfriends/boardfarm-1
3c952c94507fff25ba9955cad993610ea4a95e2e
[ "BSD-3-Clause-Clear" ]
72
2015-10-12T17:42:47.000Z
2019-01-19T14:11:18.000Z
devices/ssh_connection.py
mgualco-contractor/boardfarm
6a033e5dc84c7368fdd8ec2738b08b35ca7b07e7
[ "BSD-3-Clause-Clear" ]
50
2015-08-25T22:45:44.000Z
2022-01-05T09:47:04.000Z
import pexpect
34.387097
108
0.586304
ca329ba327bf4db5439f1730e605a2d0879b6a95
1,509
py
Python
search the no of time in a list.py
Max143/Python_programs
5084900844d7f6c39a255a6cfb8fa5120a189026
[ "MIT" ]
null
null
null
search the no of time in a list.py
Max143/Python_programs
5084900844d7f6c39a255a6cfb8fa5120a189026
[ "MIT" ]
null
null
null
search the no of time in a list.py
Max143/Python_programs
5084900844d7f6c39a255a6cfb8fa5120a189026
[ "MIT" ]
null
null
null
# Write a python program to search the number of Times a paricular number in a list ''' a = [] n = int(input("Enter a no. of element: ")) for i in range(n+1): #(n+1) here I can use input function but this is different method b = int(input("Enter element: ")) a.append(b) print(a) k = 0 num...
15.09
108
0.518887
ca32efc5c121a2dd504af2bdaadf4eea3abb2956
2,075
py
Python
gpu/gpu_client.py
increasinglyy/deeper-server
892b1f66e9b38ce9645a3c81e868c99c623c8b22
[ "Apache-2.0" ]
null
null
null
gpu/gpu_client.py
increasinglyy/deeper-server
892b1f66e9b38ce9645a3c81e868c99c623c8b22
[ "Apache-2.0" ]
null
null
null
gpu/gpu_client.py
increasinglyy/deeper-server
892b1f66e9b38ce9645a3c81e868c99c623c8b22
[ "Apache-2.0" ]
null
null
null
import sys import os import argparse from tools import remote if __name__ == '__main__': main()
24.127907
95
0.666988
ca3867dc76dfb8aba43525bbaf5fbe1e1a1e40f0
1,629
py
Python
src/minio_console/client.py
cinaq/minio-console
1710e4772f36ddb598efa60789d75147d4b11da3
[ "MIT" ]
1
2022-01-30T22:07:30.000Z
2022-01-30T22:07:30.000Z
src/minio_console/client.py
cinaq/minio-console
1710e4772f36ddb598efa60789d75147d4b11da3
[ "MIT" ]
null
null
null
src/minio_console/client.py
cinaq/minio-console
1710e4772f36ddb598efa60789d75147d4b11da3
[ "MIT" ]
null
null
null
import requests import json
33.9375
108
0.616329
ca391d9469c96c826f2046ca35cf12ff8088ba27
3,648
py
Python
examples/TomatoDemo/GetCamImage.py
wmh123456789/cozmo-python-wmh
ce66a1b22d75c086e413d61cea9b65ade6aefa24
[ "Apache-2.0" ]
null
null
null
examples/TomatoDemo/GetCamImage.py
wmh123456789/cozmo-python-wmh
ce66a1b22d75c086e413d61cea9b65ade6aefa24
[ "Apache-2.0" ]
null
null
null
examples/TomatoDemo/GetCamImage.py
wmh123456789/cozmo-python-wmh
ce66a1b22d75c086e413d61cea9b65ade6aefa24
[ "Apache-2.0" ]
null
null
null
# The Demo to test the Cozmo's camera image import asyncio import time import os import cozmo # BUFF_PATH = "/home/wmh/work/seqbuff/" BUFF_PATH = "/Users/wty/work/TestSeq/MoveInLine5/" BUFF_LENGTH = 10000 last_image = None if __name__ == '__main__': cozmo.run_program(loop, use_viewer=True)
31.448276
82
0.588268
ca3af843c611433f6ffbca54bba8965c06ce88b0
362
py
Python
app/oauth_office365/tests.py
ricardojba/PwnAuth
875c4689bb0e35abdfa5ddda7fe89d15d1e52c1f
[ "Apache-2.0" ]
304
2018-05-21T17:28:34.000Z
2021-09-11T21:36:05.000Z
app/oauth_office365/tests.py
ricardojba/PwnAuth
875c4689bb0e35abdfa5ddda7fe89d15d1e52c1f
[ "Apache-2.0" ]
9
2018-05-22T17:08:51.000Z
2021-06-10T20:17:36.000Z
app/oauth_office365/tests.py
lunarobliq/PwnAuth
2074e0236fa83c4d57ac9a1eed64921b7b99fca2
[ "Apache-2.0" ]
76
2018-05-21T18:19:20.000Z
2021-06-04T05:13:42.000Z
from django.test import TestCase # Create your tests here. # TODO add test to validate application scopes are enforced when creating # TODO add test to validate that application redirect and refresh URL match the site's base url # TODO add unicode handling tests # TODO test large attachments # TODO basic tests for ge...
32.909091
95
0.801105
ca3bcc89f3da0ff9deb3a9a09cfa6f37aed3ef40
5,751
py
Python
sell-oco-remaining-coins.py
jthhk/Binance-volatility-trading-bot
d815716d2161c5d07cea0506049d73450bd5ef5b
[ "MIT" ]
4
2021-11-10T11:47:39.000Z
2022-02-03T07:07:37.000Z
sell-oco-remaining-coins.py
jthhk/Binance-volatility-trading-bot
d815716d2161c5d07cea0506049d73450bd5ef5b
[ "MIT" ]
null
null
null
sell-oco-remaining-coins.py
jthhk/Binance-volatility-trading-bot
d815716d2161c5d07cea0506049d73450bd5ef5b
[ "MIT" ]
1
2022-01-14T13:03:56.000Z
2022-01-14T13:03:56.000Z
import sys #sys.path.append('..') import json import os from helpers.parameters import parse_args, load_config from binance.client import Client from binance.exceptions import BinanceAPIException, BinanceOrderException from binance.helpers import round_step_size from datetime import datetime # Load creds modules fro...
37.344156
171
0.62337
ca3bd3a376645b025849e3f06f5829483ac7b31b
222
py
Python
10 days of statistics/Day5PoissonDistribution2.py
rahamath2009/git-github.com-nishant-sethi-HackerRank
14d9bd3e772a863aceba22d9a3361a8325cca4bc
[ "Apache-2.0" ]
76
2018-06-28T04:29:14.000Z
2022-03-21T01:57:27.000Z
10 days of statistics/Day5PoissonDistribution2.py
rahamath2009/git-github.com-nishant-sethi-HackerRank
14d9bd3e772a863aceba22d9a3361a8325cca4bc
[ "Apache-2.0" ]
31
2018-10-01T09:12:05.000Z
2022-03-08T23:39:01.000Z
10 days of statistics/Day5PoissonDistribution2.py
rahamath2009/git-github.com-nishant-sethi-HackerRank
14d9bd3e772a863aceba22d9a3361a8325cca4bc
[ "Apache-2.0" ]
44
2018-07-09T11:31:20.000Z
2022-01-12T19:21:20.000Z
''' Created on May 28, 2018 @author: nishant.sethi ''' import math mean_x=0.88 mean_y=1.55 result_x=160+40*(mean_x+mean_x**2) result_y=128+40*(mean_y+mean_y**2) print(round(result_x,3)) print(round(result_y,3))
18.5
35
0.693694
ca3bddb6f4a43037ec0a1358799948c78a5c6f69
8,746
py
Python
pipeline/mtl_analysis/Data.py
LiuDaveLiu/map-ephys
936e5c98190a2f34e038eb4f2f70dec42d585a1a
[ "MIT" ]
1
2017-11-21T21:25:35.000Z
2017-11-21T21:25:35.000Z
pipeline/mtl_analysis/Data.py
LiuDaveLiu/map-ephys
936e5c98190a2f34e038eb4f2f70dec42d585a1a
[ "MIT" ]
1
2019-03-27T15:03:24.000Z
2019-03-27T15:03:24.000Z
pipeline/mtl_analysis/Data.py
LiuDaveLiu/map-ephys
936e5c98190a2f34e038eb4f2f70dec42d585a1a
[ "MIT" ]
2
2018-02-09T19:24:58.000Z
2018-07-27T17:02:58.000Z
import os, sys, glob, copy, cv2 import numpy as np import utils import torch from torch.utils.data import Dataset, DataLoader, WeightedRandomSampler from process_configs import process_configs import pandas as pd def process_image( image, target_shape, *, transpose=False, remove_info = None ): ...
35.408907
280
0.536702
ca3d7c08378b6c433e754d1cfa877167d0b0fca5
4,512
py
Python
transform/transformers/pdf_transformer.py
uk-gov-mirror/ONSdigital.sdx-transform-cs
bc2b46cb14d1ec9d746ad71db7eaab4ebfbc5b0d
[ "MIT" ]
1
2017-11-10T02:20:54.000Z
2017-11-10T02:20:54.000Z
transform/transformers/pdf_transformer.py
uk-gov-mirror/ONSdigital.sdx-transform-cs
bc2b46cb14d1ec9d746ad71db7eaab4ebfbc5b0d
[ "MIT" ]
228
2016-06-21T11:39:10.000Z
2021-09-07T23:56:07.000Z
transform/transformers/pdf_transformer.py
uk-gov-mirror/ONSdigital.sdx-transform-cs
bc2b46cb14d1ec9d746ad71db7eaab4ebfbc5b0d
[ "MIT" ]
1
2021-04-11T07:49:48.000Z
2021-04-11T07:49:48.000Z
import arrow from io import BytesIO from reportlab.lib import colors from reportlab.lib.pagesizes import A4 from reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle from reportlab.platypus import SimpleDocTemplate, Table, TableStyle, Paragraph from reportlab.platypus.flowables import HRFlowable from report...
34.442748
93
0.61148
ca42aa02becfee56a5a155787238ff97d156437c
5,212
py
Python
MD_simulation_on_alanine_dipeptide/current_work/src/coordinates_data_files_list.py
weiHelloWorld/MD_simulation_research
fe2b98bc81fc0b30db42ca8a83e23adb775a487d
[ "MIT" ]
19
2017-12-06T11:30:22.000Z
2021-08-31T15:18:18.000Z
MD_simulation_on_alanine_dipeptide/current_work/src/coordinates_data_files_list.py
weiHelloWorld/MD_simulation_research
fe2b98bc81fc0b30db42ca8a83e23adb775a487d
[ "MIT" ]
6
2018-10-30T12:38:09.000Z
2019-12-13T15:21:37.000Z
MD_simulation_on_alanine_dipeptide/current_work/src/coordinates_data_files_list.py
weiHelloWorld/MD_simulation_research
fe2b98bc81fc0b30db42ca8a83e23adb775a487d
[ "MIT" ]
8
2018-01-03T22:26:45.000Z
2020-07-02T14:19:47.000Z
from config import * from helper_func import *
53.731959
163
0.679586
ca448ade87199aa9f38670ff442666f58aa3ead0
1,067
py
Python
public_admin/admin.py
jhrdt/django-public-admin
0b83d2e6762a3e9de9e4995e130d57ff82cfee6b
[ "MIT" ]
36
2020-03-29T22:23:14.000Z
2021-09-28T18:44:49.000Z
public_admin/admin.py
jhrdt/django-public-admin
0b83d2e6762a3e9de9e4995e130d57ff82cfee6b
[ "MIT" ]
19
2020-03-30T07:09:21.000Z
2021-09-28T18:15:11.000Z
public_admin/admin.py
jhrdt/django-public-admin
0b83d2e6762a3e9de9e4995e130d57ff82cfee6b
[ "MIT" ]
14
2020-03-30T07:04:37.000Z
2021-11-23T00:49:22.000Z
from django.contrib.admin import ModelAdmin from public_admin.sites import PublicAdminSite
38.107143
84
0.699157
ca44efe3a14324ad455173735e360004c5e5aad2
2,136
py
Python
PortScan/portScan.py
Pter18/PruebasPentest
4775a686fe1b82a4227b16a91e1f11de6a38ba3c
[ "MIT" ]
null
null
null
PortScan/portScan.py
Pter18/PruebasPentest
4775a686fe1b82a4227b16a91e1f11de6a38ba3c
[ "MIT" ]
null
null
null
PortScan/portScan.py
Pter18/PruebasPentest
4775a686fe1b82a4227b16a91e1f11de6a38ba3c
[ "MIT" ]
null
null
null
#|/bin/python ''' Rodriguez Gallardo Pedro Alejandro Plan de Becarios generacion 13 Curso: Pruebas de penetracion Programa que escanea una IP y detenrmina los puertos abiertos con ayuda de scapy. ''' import time from scapy.all import * # IP a escanear ip = "192.168.2.70" # Cuenta de puertos cerrados closed_ports = 0 ...
35.016393
113
0.603933
ca458a68ad0abf951f9c8efe7434a0b71fda6bd3
883
py
Python
test_translate.py
pablogadhi/TranslationDetector
af82d2a5b6f1917ef42beb557015642d2750a906
[ "MIT" ]
null
null
null
test_translate.py
pablogadhi/TranslationDetector
af82d2a5b6f1917ef42beb557015642d2750a906
[ "MIT" ]
null
null
null
test_translate.py
pablogadhi/TranslationDetector
af82d2a5b6f1917ef42beb557015642d2750a906
[ "MIT" ]
null
null
null
import dill import torch from torchtext.datasets import TranslationDataset from translation.transformer import Transformer from translation.translate import translate_dataset if __name__ == "__main__": device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') src_field_f = open("data/SRC_Field.pt"...
35.32
73
0.690827
ca45acb2c5e1735a97ce0e2c10d54dca98940ed8
901
py
Python
sdf-net/lib/torchgp/load_las.py
benmatok/nglod
2141e507286dc80013ecc70fa634b031d01eabf0
[ "MIT" ]
null
null
null
sdf-net/lib/torchgp/load_las.py
benmatok/nglod
2141e507286dc80013ecc70fa634b031d01eabf0
[ "MIT" ]
null
null
null
sdf-net/lib/torchgp/load_las.py
benmatok/nglod
2141e507286dc80013ecc70fa634b031d01eabf0
[ "MIT" ]
1
2022-03-22T08:06:36.000Z
2022-03-22T08:06:36.000Z
import numpy as np import torch import laspy import sys import os
28.15625
95
0.6404
ca4679cc776b30422f79f10bffb445da492c0fec
2,941
py
Python
packages/syft/src/syft/core/tensor/autodp/initial_gamma.py
eelcovdw/PySyft
7eff8e9ad3fffe792ac85b9f38391b7ec0e51391
[ "Apache-1.1" ]
1
2019-02-10T13:22:14.000Z
2019-02-10T13:22:14.000Z
packages/syft/src/syft/core/tensor/autodp/initial_gamma.py
dylan-fan/PySyft
c10b0e70a4a7f06eb9e01e6b98f0ff8856d7d62c
[ "Apache-1.1" ]
null
null
null
packages/syft/src/syft/core/tensor/autodp/initial_gamma.py
dylan-fan/PySyft
c10b0e70a4a7f06eb9e01e6b98f0ff8856d7d62c
[ "Apache-1.1" ]
1
2021-07-12T09:15:44.000Z
2021-07-12T09:15:44.000Z
# stdlib from typing import Any from typing import List as TypeList from typing import Optional from typing import Union # third party import numpy as np # relative from ...adp.vm_private_scalar_manager import VirtualMachinePrivateScalarManager from ...common.serde.recursive import RecursiveSerde from ...common.uid i...
29.707071
83
0.641959
ca46f5d25a47bc2a893de74ab43154109ff006e1
1,531
py
Python
tests/test_adaptor/test_model.py
richlewis42/pandas-learn
4330c642e4f62e8abc6dcd58ba33daf22519f41e
[ "MIT" ]
1
2015-12-16T04:03:19.000Z
2015-12-16T04:03:19.000Z
tests/test_adaptor/test_model.py
lewisacidic/pandas-learn
4330c642e4f62e8abc6dcd58ba33daf22519f41e
[ "MIT" ]
3
2015-12-10T02:05:13.000Z
2015-12-16T04:04:16.000Z
tests/test_adaptor/test_model.py
lewisacidic/pandas-learn
4330c642e4f62e8abc6dcd58ba33daf22519f41e
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # # This file is part of pandas-learn # https://github.com/RichLewis42/pandas-learn # # Licensed under the MIT license: # http://www.opensource.org/licenses/MIT # Copyright (c) 2015, Rich Lewis <rl403@cam.ac.uk> """ tests.test_adaptor.model ~~~~~~~~~~~~~~~~~~~~~~~~ Tests...
22.188406
62
0.622469
ca477c13659b8ff8aeed414abbca4acbd94ffea7
1,691
py
Python
examples/tensorflow/dataDeal.py
catchlove666/XLearning
420ffecca6d1019b9d26ff7809b0e99ae3e96a06
[ "Apache-2.0" ]
null
null
null
examples/tensorflow/dataDeal.py
catchlove666/XLearning
420ffecca6d1019b9d26ff7809b0e99ae3e96a06
[ "Apache-2.0" ]
null
null
null
examples/tensorflow/dataDeal.py
catchlove666/XLearning
420ffecca6d1019b9d26ff7809b0e99ae3e96a06
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding:utf-8 -*- import tensorflow as tf import numpy as np import os def oneHot(sLabel): arr = np.zeros(2,np.float32) arr[int(''.join(sLabel))] = 1.0 return arr
26.421875
98
0.576582
ca495ff6d99e320548bea5450f91415d2d462394
836
py
Python
pygfa/operations.py
Francesco2304/pygfa
9bf6fb5f0a959685300ab863a0e716a2268109f7
[ "MIT" ]
3
2020-06-25T22:47:02.000Z
2022-02-27T15:16:02.000Z
pygfa/operations.py
Francesco2304/pygfa
9bf6fb5f0a959685300ab863a0e716a2268109f7
[ "MIT" ]
3
2017-08-08T12:24:23.000Z
2022-02-27T15:17:25.000Z
pygfa/operations.py
Francesco2304/pygfa
9bf6fb5f0a959685300ab863a0e716a2268109f7
[ "MIT" ]
4
2019-02-04T20:54:53.000Z
2020-05-14T19:52:24.000Z
from networkx.algorithms.components.connected import node_connected_component as nx_node_connected_component from networkx.algorithms.components.connected import connected_components as nx_connected_components import pygfa.gfa # required for GFAError (gives error otherwise) def nodes_connected_component(gfa_, nid): ...
38
108
0.748804
ca4a000ff594343e00efc2e974a9698c65e860e8
1,251
py
Python
linetools/spectra/tests/test_xspec_attrib.py
marijana777/linetools
73720a2f6df42b7dde1f35055cd40ad970200f7f
[ "BSD-3-Clause" ]
null
null
null
linetools/spectra/tests/test_xspec_attrib.py
marijana777/linetools
73720a2f6df42b7dde1f35055cd40ad970200f7f
[ "BSD-3-Clause" ]
null
null
null
linetools/spectra/tests/test_xspec_attrib.py
marijana777/linetools
73720a2f6df42b7dde1f35055cd40ad970200f7f
[ "BSD-3-Clause" ]
null
null
null
""" Module to run tests on XSpectrum1D attributes """ from __future__ import print_function, absolute_import, \ division, unicode_literals import numpy as np import os import pytest import astropy.io.ascii as ascii from astropy import units as u import astropy.table from linetools.spectra import io from linetool...
21.568966
63
0.668265
ca4bc6c301b6aa947f2d66c054bccdb346f345e4
697
py
Python
exercicios/dicionarios/desafio92.py
costagguilherme/python-desafios
404b4a8924a2895a97d3cea99e1325e46d9aee39
[ "MIT" ]
null
null
null
exercicios/dicionarios/desafio92.py
costagguilherme/python-desafios
404b4a8924a2895a97d3cea99e1325e46d9aee39
[ "MIT" ]
null
null
null
exercicios/dicionarios/desafio92.py
costagguilherme/python-desafios
404b4a8924a2895a97d3cea99e1325e46d9aee39
[ "MIT" ]
null
null
null
info = {} nome = str(input('NOME: ')) nasc = int(input('ANO DE NASCIMENTO: ')) idade = 2020 - nasc cart = int(input('CARTEIRA DE TRABALHO (0 Se no tiver): ')) info['NOME'] = nome info['IDADE'] = idade info['NASCIMENTO'] = nasc info['CTPS'] = cart if cart == 0: for k, v in info.items(): print(f'{k} = {v}') i...
30.304348
60
0.586801
ca4c42c47fd82a526d98b52959cc98917d4f4ded
346
py
Python
programs/hello.py
russhughes/TurtlePlotBot
3c99a8cc760000a69aabef3c1ba7c76c47b7f61e
[ "MIT" ]
11
2020-01-07T04:36:34.000Z
2021-06-14T10:18:24.000Z
micropython/vfat/programs/hello.py
russhughes/TurtlePlotBot
3c99a8cc760000a69aabef3c1ba7c76c47b7f61e
[ "MIT" ]
null
null
null
micropython/vfat/programs/hello.py
russhughes/TurtlePlotBot
3c99a8cc760000a69aabef3c1ba7c76c47b7f61e
[ "MIT" ]
1
2020-05-20T10:58:00.000Z
2020-05-20T10:58:00.000Z
""" hello.py: Simple example using write """ #pylint: disable-msg=import-error from turtleplotbot import TurtlePlotBot def main(): """ Write "Hello!" """ bot = TurtlePlotBot() bot.setscale(2) bot.write("Hello!", "fonts/scripts.fnt") bot.done() main() __import__("menu") # optional ret...
18.210526
63
0.647399
ca4dac22e817435c011945da10bee5efd497b22e
55
py
Python
plugins/speechhandler/gmail/__init__.py
narfman0/jeeves
a88035846d6ec95c9ff8559d12b3b5ef4bb1c2d6
[ "MIT" ]
4
2019-01-18T00:32:33.000Z
2022-03-06T06:00:44.000Z
plugins/speechhandler/gmail/__init__.py
narfman0/jeeves
a88035846d6ec95c9ff8559d12b3b5ef4bb1c2d6
[ "MIT" ]
2
2018-06-17T04:38:54.000Z
2018-07-25T15:00:54.000Z
plugins/speechhandler/gmail/__init__.py
narfman0/jeeves
a88035846d6ec95c9ff8559d12b3b5ef4bb1c2d6
[ "MIT" ]
5
2017-12-29T12:34:08.000Z
2019-04-26T19:21:32.000Z
# -*- coding: utf-8 -*- from .gmail import GmailPlugin
18.333333
30
0.654545
ca4e61922979fa286da153af698ea6dab0729124
266
py
Python
server/opendp_apps/model_helpers/msg_util.py
mikephelan/opendp-ux
80c65da0ed17adc01c69b05dbc9cbf3a5973a016
[ "MIT" ]
6
2021-05-25T18:50:58.000Z
2022-03-23T19:52:15.000Z
server/opendp_apps/model_helpers/msg_util.py
mikephelan/opendp-ux
80c65da0ed17adc01c69b05dbc9cbf3a5973a016
[ "MIT" ]
298
2021-05-19T17:34:09.000Z
2022-03-29T18:45:22.000Z
server/opendp_apps/model_helpers/msg_util.py
opendp/dpcreator
6ba3c58ecdcd81ca1f4533a14ce7604eccf6a646
[ "MIT" ]
2
2020-10-16T22:03:24.000Z
2020-11-15T22:45:19.000Z
def msg(m): """ Shorthand for print statement """ print(m) def dashes(cnt=40): """ Print dashed line """ msg('-' * cnt) def msgt(m): """ Add dashed line pre/post print statment """ dashes() msg(m) dashes()
12.090909
43
0.492481
ca53b8d9bb5724e84b437ed4470b1a2aeddd35dd
849
py
Python
snappy_wrappers/wrappers/gcnv/contig_ploidy/wrapper.py
PotatoThrone/snappy-pipeline
31200eba84bff8e459e9e210d6d95e2984627f5c
[ "MIT" ]
5
2021-02-26T10:39:56.000Z
2021-12-23T07:53:26.000Z
snappy_wrappers/wrappers/gcnv/contig_ploidy/wrapper.py
PotatoThrone/snappy-pipeline
31200eba84bff8e459e9e210d6d95e2984627f5c
[ "MIT" ]
93
2021-02-22T11:23:59.000Z
2022-03-31T09:58:39.000Z
snappy_wrappers/wrappers/gcnv/contig_ploidy/wrapper.py
PotatoThrone/snappy-pipeline
31200eba84bff8e459e9e210d6d95e2984627f5c
[ "MIT" ]
3
2021-02-22T11:44:59.000Z
2021-06-21T19:33:53.000Z
# -*- coding: utf-8 -*- from snakemake.shell import shell paths_tsv = " ".join(snakemake.input.tsv) shell( r""" export TMPDIR=$(mktemp -d) trap "rm -rf $TMPDIR" ERR EXIT export THEANO_FLAGS="base_compiledir=$TMPDIR/theano_compile_dir" PRIORS=$TMPDIR/ploidy_priors.tsv echo -e "CONTIG_NAME\tPLOIDY_PRIOR_0\tPLOID...
24.970588
87
0.683157
ca53c86f171d38fcaac8475490a4970454e4d143
3,897
py
Python
otp/otpbase/OTPRender.py
chrisd149/OpenLevelEditor
2527f84910b198a38de140b533d07d65fe30c6c9
[ "MIT" ]
25
2020-11-23T13:55:42.000Z
2022-03-26T06:17:18.000Z
otp/otpbase/OTPRender.py
chrisd149/OpenLevelEditor
2527f84910b198a38de140b533d07d65fe30c6c9
[ "MIT" ]
15
2020-11-25T14:47:24.000Z
2021-04-21T23:40:57.000Z
otp/otpbase/OTPRender.py
chrisd149/OpenLevelEditor
2527f84910b198a38de140b533d07d65fe30c6c9
[ "MIT" ]
11
2020-11-25T13:57:02.000Z
2022-02-23T14:25:15.000Z
from panda3d.core import * # global bitmasks for cameras MainCameraBitmask = BitMask32.bit(0) ReflectionCameraBitmask = BitMask32.bit(1) ShadowCameraBitmask = BitMask32.bit(2) SkyReflectionCameraBitmask = BitMask32.bit(3) GlowCameraBitmask = BitMask32.bit(4) EnviroCameraBitmask = BitMask32.bit(5) # sample using glob...
41.903226
127
0.722607
ca54977c36a9ce98127c1938087417a256bd9b1b
1,674
py
Python
test/deepclustering/augment/test_tensor_aug.py
jizongFox/deep-clustering-toolbox
0721cbbb278af027409ed4c115ccc743b6daed1b
[ "MIT" ]
34
2019-08-05T03:48:36.000Z
2022-03-29T03:04:51.000Z
test/deepclustering/augment/test_tensor_aug.py
jizongFox/deep-clustering-toolbox
0721cbbb278af027409ed4c115ccc743b6daed1b
[ "MIT" ]
10
2019-05-03T21:02:50.000Z
2021-12-23T08:01:30.000Z
test/deepclustering/augment/test_tensor_aug.py
ETS-Research-Repositories/deep-clustering-toolbox
0721cbbb278af027409ed4c115ccc743b6daed1b
[ "MIT" ]
5
2019-09-29T07:56:03.000Z
2021-04-22T12:08:50.000Z
import requests from PIL import Image import numpy as np from unittest import TestCase import torch from deepclustering.augment.tensor_augment import ( RandomCrop, RandomHorizontalFlip, RandomVerticalFlip, ) URL = f"https://cdn1.medicalnewstoday.com/content/images/articles/322/322868/golden-retriever-puppy...
36.391304
104
0.667264
ca55c9560b5669d146e110ae73efad6b6c929108
5,666
py
Python
python/tvm/relay/op/_mlas.py
dvhg/tvm
288e9ef41d7884cea3d868d6d2bbb672c058757b
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
90
2019-01-26T00:38:49.000Z
2022-03-11T23:12:34.000Z
python/tvm/relay/op/_mlas.py
dvhg/tvm
288e9ef41d7884cea3d868d6d2bbb672c058757b
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
91
2019-02-27T00:17:01.000Z
2022-02-21T18:08:21.000Z
python/tvm/relay/op/_mlas.py
dvhg/tvm
288e9ef41d7884cea3d868d6d2bbb672c058757b
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
41
2019-01-28T14:37:03.000Z
2022-03-31T03:58:57.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
34.13253
96
0.681786
ca55dead347e5e3941a37a2e7f88f32dffe28387
2,682
py
Python
app.py
chitralputhran/Drive-Curve-Machine-Learning-App
a351632eb405bf7bcde6cc775a23b6508774cea7
[ "MIT" ]
null
null
null
app.py
chitralputhran/Drive-Curve-Machine-Learning-App
a351632eb405bf7bcde6cc775a23b6508774cea7
[ "MIT" ]
null
null
null
app.py
chitralputhran/Drive-Curve-Machine-Learning-App
a351632eb405bf7bcde6cc775a23b6508774cea7
[ "MIT" ]
null
null
null
from flask import Flask, render_template, url_for, request import numpy as np import pandas as pd import pickle import warnings warnings.filterwarnings("ignore") app = Flask(__name__) if __name__ == '__main__': app.run()
33.525
59
0.597315
ca561c4f89520231e33f6d179f9da9c4bc36a2b1
6,304
py
Python
pineboolib/fllegacy/aqsobjects/aqs.py
juanjosepablos/pineboo
f6ce515aec6e0139821bb9c1d62536d9fb50dae4
[ "MIT" ]
null
null
null
pineboolib/fllegacy/aqsobjects/aqs.py
juanjosepablos/pineboo
f6ce515aec6e0139821bb9c1d62536d9fb50dae4
[ "MIT" ]
1
2017-10-30T22:00:48.000Z
2017-11-11T19:34:32.000Z
pineboolib/fllegacy/aqsobjects/aqs.py
juanjosepablos/pineboo
f6ce515aec6e0139821bb9c1d62536d9fb50dae4
[ "MIT" ]
1
2017-10-30T20:16:38.000Z
2017-10-30T20:16:38.000Z
# -*- coding: utf-8 -*- """ AQS package. Main entrance to the different AQS resources. """ from PyQt5 import QtCore, QtWidgets, QtGui, QtXml from pineboolib.core.utils import logging from typing import Any, Optional, Union from . import aqshttp, aqods logger = logging.getLogger("AQS") AQS = AQS_Class()
24.916996
99
0.576618
ca566d2bb71a859758de23f67c63193e81f08340
16,993
py
Python
src/level_editor.py
rschwa6308/Momo-Is-You
6bd75dc1379256e8f5b7c94f312e161985bfbb48
[ "MIT" ]
1
2020-07-30T20:24:54.000Z
2020-07-30T20:24:54.000Z
src/level_editor.py
rschwa6308/Momo-Is-You
6bd75dc1379256e8f5b7c94f312e161985bfbb48
[ "MIT" ]
null
null
null
src/level_editor.py
rschwa6308/Momo-Is-You
6bd75dc1379256e8f5b7c94f312e161985bfbb48
[ "MIT" ]
null
null
null
# Standalone GUI Applet for creating levels import os os.environ['pg_HIDE_SUPPORT_PROMPT'] = "hide" import pygame as pg from multiprocessing import Process from ui_helpers import * from levels import levels, read_level, write_level, LEVELS_DIR from main import play_level from engine import Level, board_copy # --- ...
44.137662
182
0.606897
ca56829f893d1be24d8f759f0e5d686d90b4ce8d
1,467
py
Python
scrapy/selector/lxmlsel.py
hobson/scrapy
9f2465fb81628f2bb70d8d03fd23aa41e9801eae
[ "BSD-3-Clause" ]
null
null
null
scrapy/selector/lxmlsel.py
hobson/scrapy
9f2465fb81628f2bb70d8d03fd23aa41e9801eae
[ "BSD-3-Clause" ]
null
null
null
scrapy/selector/lxmlsel.py
hobson/scrapy
9f2465fb81628f2bb70d8d03fd23aa41e9801eae
[ "BSD-3-Clause" ]
null
null
null
""" XPath selectors based on lxml """ from .unified import Selector, SelectorList __all__ = ['HtmlXPathSelector', 'XmlXPathSelector', 'XPathSelector', 'XPathSelectorList']
30.5625
79
0.637355
ca56beb7373eb714ae674715fa49e8a5dede6767
1,535
py
Python
ftx_cli/cmds/markets.py
YungBowsie/ftx-cli
4ef587d7b8aecd476d788377faf0834facb9a82f
[ "MIT" ]
2
2022-01-17T07:24:14.000Z
2022-02-08T13:22:56.000Z
ftx_cli/cmds/markets.py
PAV-Laboratory/ftx-cli-1
4ef587d7b8aecd476d788377faf0834facb9a82f
[ "MIT" ]
null
null
null
ftx_cli/cmds/markets.py
PAV-Laboratory/ftx-cli-1
4ef587d7b8aecd476d788377faf0834facb9a82f
[ "MIT" ]
1
2021-08-01T18:50:24.000Z
2021-08-01T18:50:24.000Z
from ftx_cli.abstractions import ACmd import pprint
34.886364
117
0.558958
ca59a71d556fa174e23ebbfb4449d08964f4d245
5,655
py
Python
experiments/riskaverseplot.py
tcpedersen/deephedging
2de2c137dea250510a149fd9865ca22d7175c5fe
[ "MIT" ]
null
null
null
experiments/riskaverseplot.py
tcpedersen/deephedging
2de2c137dea250510a149fd9865ca22d7175c5fe
[ "MIT" ]
null
null
null
experiments/riskaverseplot.py
tcpedersen/deephedging
2de2c137dea250510a149fd9865ca22d7175c5fe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import tensorflow as tf import matplotlib.pyplot as plt import matplotlib as mpl import simulators import derivatives import utils import books import hedge_models import preprocessing import approximators from constants import FLOAT_DTYPE cost = False spot = 1 strike = 1 timesteps = 14 sig...
32.877907
93
0.654996
ca5c0257874c7b3c2f5efe8c4ece32ea8ce527f7
3,235
py
Python
labs/lab4/lab4b.py
MITLLRacecar/racecar-arpan-kumar
4ea6ae0eb5cfa65569888de7319dc2e4430bdb2e
[ "MIT" ]
null
null
null
labs/lab4/lab4b.py
MITLLRacecar/racecar-arpan-kumar
4ea6ae0eb5cfa65569888de7319dc2e4430bdb2e
[ "MIT" ]
null
null
null
labs/lab4/lab4b.py
MITLLRacecar/racecar-arpan-kumar
4ea6ae0eb5cfa65569888de7319dc2e4430bdb2e
[ "MIT" ]
null
null
null
""" Copyright MIT and Harvey Mudd College MIT License Summer 2020 Lab 4B - LIDAR Wall Following """ ######################################################################################## # Imports ######################################################################################## import sys import cv2 as cv i...
28.628319
104
0.528284
ca5c5b96fc7fc8ff824f6505017e38821fae8a90
1,779
py
Python
Pandas/DataFrame1.py
mehmet-karagoz/Python-Pandas
7e2ac2962f94e4ffd28b0f6b74935ace6e6b51a0
[ "MIT" ]
1
2020-10-06T05:51:41.000Z
2020-10-06T05:51:41.000Z
Pandas/DataFrame1.py
mehmet-karagoz/Python-Pandas
7e2ac2962f94e4ffd28b0f6b74935ace6e6b51a0
[ "MIT" ]
null
null
null
Pandas/DataFrame1.py
mehmet-karagoz/Python-Pandas
7e2ac2962f94e4ffd28b0f6b74935ace6e6b51a0
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np #sozluk yapisi ve seriler ile Dataframe olusturma # data = { # 'first':pd.Series([1,2,3,4,5],index=['a','b','c','d','e']), # 'second':pd.Series([5,4,3,2],index=['a','b','c','d']) # } # df = pd.DataFrame(data) # print(df) # print('-'*50) # print(df.index) # p...
22.807692
148
0.500843
ca5cb053e6831e0edd6732c5b0f728323085ceaa
3,288
py
Python
model.py
prat7mish/Behavioral_Cloning
7a272ac09d0f79240cefe94e1b20a1a30d303e6d
[ "MIT" ]
null
null
null
model.py
prat7mish/Behavioral_Cloning
7a272ac09d0f79240cefe94e1b20a1a30d303e6d
[ "MIT" ]
null
null
null
model.py
prat7mish/Behavioral_Cloning
7a272ac09d0f79240cefe94e1b20a1a30d303e6d
[ "MIT" ]
null
null
null
# import libraries import csv import cv2 import random import numpy as np from keras.models import Sequential from keras.layers import Cropping2D from keras.layers.core import Dense, Flatten, Lambda, Dropout from keras.layers.convolutional import Conv2D import sklearn from sklearn.model_selection import train_test_s...
38.682353
101
0.739964
ca5cbcc69e82b11a1566f7085d8b6893d6551a99
323
py
Python
tests/conftest.py
podaac/concise
2b9ea074312d0caee4ed59b4efac554514b89673
[ "Apache-2.0" ]
1
2021-11-17T18:44:19.000Z
2021-11-17T18:44:19.000Z
tests/conftest.py
podaac/concise
2b9ea074312d0caee4ed59b4efac554514b89673
[ "Apache-2.0" ]
16
2021-10-29T18:34:12.000Z
2022-03-18T22:39:37.000Z
tests/conftest.py
podaac/concise
2b9ea074312d0caee4ed59b4efac554514b89673
[ "Apache-2.0" ]
null
null
null
import pytest
23.071429
77
0.690402
ca5da25d2014d31e81e89d98d85c283b89ae1f60
583
py
Python
courses/MITx 6.00.1x/lec9/coordinate.py
NomikOS/learning
268f94605214f6861ef476ca7573e68c068ccbe5
[ "Unlicense" ]
null
null
null
courses/MITx 6.00.1x/lec9/coordinate.py
NomikOS/learning
268f94605214f6861ef476ca7573e68c068ccbe5
[ "Unlicense" ]
null
null
null
courses/MITx 6.00.1x/lec9/coordinate.py
NomikOS/learning
268f94605214f6861ef476ca7573e68c068ccbe5
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue May 10 08:18:02 2016 @author: WELG """ c = Coordinate(3, 4) origin = Coordinate(0, 0) print(c) print(origin)
19.433333
61
0.559177
ca5de688e198a59dcbff40e82069bf16587a0eb4
6,207
py
Python
resync/test/test_client.py
isabella232/resync
6e9ddfa83087a0c122f72a6cc375c490f758b016
[ "Apache-2.0" ]
1
2016-11-30T18:08:02.000Z
2016-11-30T18:08:02.000Z
resync/test/test_client.py
EHRI/resync
6e9ddfa83087a0c122f72a6cc375c490f758b016
[ "Apache-2.0" ]
1
2021-06-22T08:24:40.000Z
2021-06-22T08:24:40.000Z
resync/test/test_client.py
isabella232/resync
6e9ddfa83087a0c122f72a6cc375c490f758b016
[ "Apache-2.0" ]
1
2021-06-22T08:22:25.000Z
2021-06-22T08:22:25.000Z
import unittest import re import os import logging import sys import io import contextlib from resync.client import Client, ClientFatalError # From # http://stackoverflow.com/questions/2654834/capturing-stdout-within-the-same-process-in-python if __name__ == '__main__': suite = unittest.TestLoader().loadTests...
39.28481
161
0.609312
ca604a9ab5e1dc4d5f71fe846b65e2a15a5e251f
571
py
Python
bookmark/serializers.py
UNIZAR-30226-2021-05/Lector--Backend
8cc285216972f7485781ece51a88d5f02dc85013
[ "MIT" ]
null
null
null
bookmark/serializers.py
UNIZAR-30226-2021-05/Lector--Backend
8cc285216972f7485781ece51a88d5f02dc85013
[ "MIT" ]
null
null
null
bookmark/serializers.py
UNIZAR-30226-2021-05/Lector--Backend
8cc285216972f7485781ece51a88d5f02dc85013
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import Bookmark, Usuario
17.84375
55
0.502627
ca605c6ef1b2ca158ae12b5e670631d41c835b07
302
py
Python
src/myResume.py
charlielin99/Jobalytics
cf0461eb3862e375032cfe2ef05eadf7bf465fec
[ "MIT" ]
13
2018-08-19T14:10:32.000Z
2021-10-01T20:20:38.000Z
src/myResume.py
charlielin99/Jobalytics
cf0461eb3862e375032cfe2ef05eadf7bf465fec
[ "MIT" ]
1
2021-04-06T04:58:43.000Z
2021-04-06T04:58:43.000Z
src/myResume.py
charlielin99/Jobalytics
cf0461eb3862e375032cfe2ef05eadf7bf465fec
[ "MIT" ]
4
2018-09-20T19:43:29.000Z
2020-01-23T10:33:16.000Z
import indicoio, os, json indicoio.config.api_key = '27df1eee04c5b65fb3113e9458d1d701' fileDir = os.path.dirname(os.path.realpath('__file__')) fileResumeTxt = open(os.path.join(fileDir, "data/resume.txt"), 'w') resume = "data/resumePDF.pdf" print(json.dumps(indicoio.pdf_extraction(resume)))
33.555556
68
0.751656
ca61469c7afaac07190bb34986de9061ac4f7aa5
7,183
py
Python
tracpro/polls/tasks.py
rapidpro/tracpro
a68a782a7ff9bb0ccee85368132d8847c280fea3
[ "BSD-3-Clause" ]
5
2015-07-21T15:58:31.000Z
2019-09-14T22:34:00.000Z
tracpro/polls/tasks.py
rapidpro/tracpro
a68a782a7ff9bb0ccee85368132d8847c280fea3
[ "BSD-3-Clause" ]
197
2015-03-24T15:26:04.000Z
2017-11-28T19:24:37.000Z
tracpro/polls/tasks.py
rapidpro/tracpro
a68a782a7ff9bb0ccee85368132d8847c280fea3
[ "BSD-3-Clause" ]
10
2015-03-24T12:26:36.000Z
2017-02-21T13:08:57.000Z
from __future__ import absolute_import, unicode_literals from django.apps import apps from django.utils import timezone from celery.utils.log import get_task_logger from djcelery_transactions import task from django_redis import get_redis_connection from temba_client.utils import parse_iso8601, format_iso8601 from ...
36.647959
108
0.680496
ca64a055f8ebbc8ce214d1d3083fe497c07ed742
71
py
Python
instance/config.py
tw8130/News-Article
fa1457d53d3b68b401cfc064051c7ea2043f7592
[ "Unlicense" ]
null
null
null
instance/config.py
tw8130/News-Article
fa1457d53d3b68b401cfc064051c7ea2043f7592
[ "Unlicense" ]
null
null
null
instance/config.py
tw8130/News-Article
fa1457d53d3b68b401cfc064051c7ea2043f7592
[ "Unlicense" ]
null
null
null
NEWS_API_KEY ='82c66d6d002e4468a5b3199925f4e5de' SECRET_KEY='Flashpill'
35.5
48
0.887324
ca663ced3cfb454e4150af532daf1639da162f40
707
py
Python
api/serializers.py
swarup-kharul/Flo-In
3591f4496cc2a8a742e6d885b71dbdfa374de3d4
[ "MIT" ]
2
2021-09-30T20:21:06.000Z
2022-01-27T14:51:04.000Z
api/serializers.py
swarup-kharul/Flo-In
3591f4496cc2a8a742e6d885b71dbdfa374de3d4
[ "MIT" ]
1
2021-09-30T20:20:59.000Z
2021-09-30T20:20:59.000Z
api/serializers.py
swarup-kharul/Flo-In
3591f4496cc2a8a742e6d885b71dbdfa374de3d4
[ "MIT" ]
5
2021-09-30T20:23:25.000Z
2022-02-10T04:03:29.000Z
from django.forms.fields import ImageField from rest_framework import serializers from django.contrib.auth import get_user_model from djoser.serializers import UserCreateSerializer from accounts.models import UserData User = get_user_model()
29.458333
64
0.731259
ca678e07d7bd63df62460388665f40e19b1894f0
7,466
py
Python
tests/test_utils.py
gyermolenko/pytest-benchmark
b27130048980fde803382126edba2e9967b66d5b
[ "BSD-2-Clause" ]
null
null
null
tests/test_utils.py
gyermolenko/pytest-benchmark
b27130048980fde803382126edba2e9967b66d5b
[ "BSD-2-Clause" ]
null
null
null
tests/test_utils.py
gyermolenko/pytest-benchmark
b27130048980fde803382126edba2e9967b66d5b
[ "BSD-2-Clause" ]
null
null
null
import argparse import distutils.spawn import os import subprocess import pytest from pytest import mark from pytest_benchmark.utils import clonefunc from pytest_benchmark.utils import get_commit_info from pytest_benchmark.utils import get_project_name from pytest_benchmark.utils import parse_columns from pytest_benc...
35.383886
122
0.663274
ca6871e81eccc8b0c33d1c3403135108683a9b2c
10,409
py
Python
kolibri/core/content/zip_wsgi.py
MBKayro/kolibri
0a38a5fb665503cf8f848b2f65938e73bfaa5989
[ "MIT" ]
545
2016-01-19T19:26:55.000Z
2022-03-20T00:13:04.000Z
kolibri/core/content/zip_wsgi.py
MBKayro/kolibri
0a38a5fb665503cf8f848b2f65938e73bfaa5989
[ "MIT" ]
8,329
2016-01-19T19:32:02.000Z
2022-03-31T21:23:12.000Z
kolibri/core/content/zip_wsgi.py
MBKayro/kolibri
0a38a5fb665503cf8f848b2f65938e73bfaa5989
[ "MIT" ]
493
2016-01-19T19:26:48.000Z
2022-03-28T14:35:05.000Z
from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals import logging import mimetypes import os import re import time import zipfile import html5lib from cheroot import wsgi from django.core.cache import cache from django.core.handlers.wsgi import WSGIReq...
39.131579
141
0.694879
ca6901950982a690817b33bf00b4352b3b47bec5
10,056
py
Python
test/unit/parser/test_parser_helper.py
buddly27/champollion
aa53804ad11e32f1bb8dcb02668c6df3771efcaa
[ "Apache-2.0" ]
3
2017-06-13T01:36:32.000Z
2020-12-14T18:26:01.000Z
test/unit/parser/test_parser_helper.py
buddly27/champollion
aa53804ad11e32f1bb8dcb02668c6df3771efcaa
[ "Apache-2.0" ]
1
2018-09-27T16:13:48.000Z
2020-06-03T22:27:56.000Z
test/unit/parser/test_parser_helper.py
buddly27/champollion
aa53804ad11e32f1bb8dcb02668c6df3771efcaa
[ "Apache-2.0" ]
null
null
null
# :coding: utf-8 import pytest import os import champollion.parser.helper def test_filter_comments(): """Remove all comments from content""" content = ( "'use strict'; /* a beautiful comment */\n" "\n" "/*\n" "a long comment that can take a lot of places so\n" "we pu...
24.952854
77
0.3393
ca6e2b256c330324a67fb4aa6dd0d2a9b8cc825c
9,706
py
Python
MyHDLSim/Manager.py
mattsnowboard/msu-myhdlsim
5d0d881b682a72b77d9597cb84b8fdd4bd444afc
[ "BSD-2-Clause" ]
1
2021-03-30T10:20:06.000Z
2021-03-30T10:20:06.000Z
MyHDLSim/Manager.py
mattsnowboard/msu-myhdlsim
5d0d881b682a72b77d9597cb84b8fdd4bd444afc
[ "BSD-2-Clause" ]
null
null
null
MyHDLSim/Manager.py
mattsnowboard/msu-myhdlsim
5d0d881b682a72b77d9597cb84b8fdd4bd444afc
[ "BSD-2-Clause" ]
null
null
null
import wx import wx.lib.ogl as ogl from myhdl import Signal, Simulation, delay, instance, StopSimulation, now from MyHDLSim.Wrappers.SignalWrapper import SignalWrapper from MyHDLSim.Module import Module from MyHDLSim.wxApplication import MainWindow, ThreadTimer, EVT_THREAD_TIMER
33.353952
92
0.571914
ca6e5310bb96f84c2e0fc49e37a1276c8edb180e
1,157
py
Python
tbs/helper/checks.py
ODEX-TOS/tos-build-system
019de4d7b47a55123802f5aea4ac0c12d3660f2d
[ "MIT" ]
1
2021-05-06T23:06:41.000Z
2021-05-06T23:06:41.000Z
tbs/helper/checks.py
ODEX-TOS/tos-build-system
019de4d7b47a55123802f5aea4ac0c12d3660f2d
[ "MIT" ]
null
null
null
tbs/helper/checks.py
ODEX-TOS/tos-build-system
019de4d7b47a55123802f5aea4ac0c12d3660f2d
[ "MIT" ]
null
null
null
import os import tbs.logger.log as logger import tbs.helper.filedescriptor as fd def checkRoot(message): """ Check if the user is root otherwise error out """ if os.geteuid() != 0: logger.log(message, logger.LOG_ERROR) raise Exception("You need root privileges to do this operation.") de...
39.896552
94
0.672429
ca6f27f5d24803f6292caa37e2a20a43991b7e09
47,373
py
Python
examples/xusb.py
DCC-Lab/libusb
40e49a03cf17fafaa03c6b02a4aa5e920631442c
[ "Zlib" ]
null
null
null
examples/xusb.py
DCC-Lab/libusb
40e49a03cf17fafaa03c6b02a4aa5e920631442c
[ "Zlib" ]
null
null
null
examples/xusb.py
DCC-Lab/libusb
40e49a03cf17fafaa03c6b02a4aa5e920631442c
[ "Zlib" ]
null
null
null
# Copyright (c) 2016-2020 Adam Karpierz # Licensed under the zlib/libpng License # https://opensource.org/licenses/Zlib # xusb: Generic USB test program # Copyright 2009-2012 Pete Batard <pete@akeo.ie> # Contributions to Mass Storage by Alan Stern. # # This library is free software; you can redistribute it and/or # m...
39.510425
143
0.565111
ca701ec20579612c901ad113f80e054b73c579eb
608
py
Python
tasks/filesystem.py
kuwv/spades
9c36eff2c8fe2e4acc69a317d0c58bb8e1c2373f
[ "Apache-2.0" ]
null
null
null
tasks/filesystem.py
kuwv/spades
9c36eff2c8fe2e4acc69a317d0c58bb8e1c2373f
[ "Apache-2.0" ]
null
null
null
tasks/filesystem.py
kuwv/spades
9c36eff2c8fe2e4acc69a317d0c58bb8e1c2373f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # type: ignore # copyright: (c) 2020 by Jesse Johnson. # license: Apache 2.0, see LICENSE for more details. '''Validation Task-Runner.''' import os import shutil from invoke import task
20.965517
65
0.639803
ca70d778f356f4e32a5b8375dbd0aec8219a8c49
20
py
Python
tefingerprint/util/__init__.py
timothymillar/TEFingerprint
3e812752f37554b791b6be74f8b8f481ab479622
[ "MIT" ]
null
null
null
tefingerprint/util/__init__.py
timothymillar/TEFingerprint
3e812752f37554b791b6be74f8b8f481ab479622
[ "MIT" ]
1
2020-05-20T01:53:51.000Z
2020-05-20T01:53:51.000Z
tefingerprint/util/__init__.py
timothymillar/TEFingerprint
3e812752f37554b791b6be74f8b8f481ab479622
[ "MIT" ]
2
2019-07-30T22:15:19.000Z
2020-10-25T01:34:51.000Z
from . import numpy
10
19
0.75
ca713885917f88c7111540d8832e21eb26208818
1,438
py
Python
tests/src/dirac_notation/test_bra.py
KaroliShp/Quantumformatics
4166448706c06a1a45abd106da8152b4f4c40a25
[ "MIT" ]
2
2019-10-28T20:26:14.000Z
2019-10-29T08:28:45.000Z
tests/src/dirac_notation/test_bra.py
KaroliShp/Quantumformatics
4166448706c06a1a45abd106da8152b4f4c40a25
[ "MIT" ]
3
2019-10-28T09:19:27.000Z
2019-10-28T13:42:08.000Z
tests/src/dirac_notation/test_bra.py
KaroliShp/Quantumformatics
4166448706c06a1a45abd106da8152b4f4c40a25
[ "MIT" ]
null
null
null
import pytest from pytest_mock import mocker from hamcrest import * import numpy as np from src.dirac_notation.ket import Ket from src.dirac_notation.bra import Bra from src.dirac_notation.matrix import Matrix # Magic methods
24.372881
84
0.604312
ca723e20b60118f8da48f6d7a9012433a37e2fb2
40,176
py
Python
PySeismoSoil/helper_hh_calibration.py
mgrubisic/PySeismoSoil
f8778be18a0d141918ff3f05c2e5279f5d02cdda
[ "FSFAP" ]
1
2020-10-05T05:47:18.000Z
2020-10-05T05:47:18.000Z
PySeismoSoil/helper_hh_calibration.py
mgrubisic/PySeismoSoil
f8778be18a0d141918ff3f05c2e5279f5d02cdda
[ "FSFAP" ]
null
null
null
PySeismoSoil/helper_hh_calibration.py
mgrubisic/PySeismoSoil
f8778be18a0d141918ff3f05c2e5279f5d02cdda
[ "FSFAP" ]
null
null
null
# Author: Jian Shi ''' Hierarchy of subroutines:: hh_param_from_profile |--- _calc_rho() |--- helper_site_response.thk2dep() |--- _calc_Gmax() |--- _calc_vertical_stress() |--- _calc_OCR() |--- _calc_K0() |--- _calc_PI() |--- _calc_shear_strength() |--- _calc_K0() |--- p...
40.135864
125
0.532432
ca731fd66ec6d9fd8b8e5404558c90f37d97acd9
3,385
py
Python
metalearner/ppo2ttifrutti_agent.py
aborghi/retro_contest_agent
fc41634962d1210ce306048d7c46c377d404c34a
[ "MIT" ]
33
2018-06-22T17:09:34.000Z
2021-06-24T03:40:31.000Z
metalearner/ppo2ttifrutti_agent.py
aborghi/retro_contest_agent
fc41634962d1210ce306048d7c46c377d404c34a
[ "MIT" ]
null
null
null
metalearner/ppo2ttifrutti_agent.py
aborghi/retro_contest_agent
fc41634962d1210ce306048d7c46c377d404c34a
[ "MIT" ]
5
2018-06-27T09:52:50.000Z
2019-04-05T02:09:17.000Z
#!/usr/bin/env python """ Train an agent on Sonic using PPO2ttifrutti, a variant of OpenAI PPO2 baseline. """ import tensorflow as tf import numpy as np import gym import gym_remote.exceptions as gre import os import math from baselines.common.vec_env.dummy_vec_env import DummyVecEnv from baselines.com...
69.081633
1,859
0.708124
ca7365d10401037be2d937302fe046572b8558d2
594
py
Python
AccGenBot/plugins/gen.py
AL-Noman21/AccGenBot
e4b27e539ff42f76b87f8be9d3766795f52a8fbb
[ "MIT" ]
null
null
null
AccGenBot/plugins/gen.py
AL-Noman21/AccGenBot
e4b27e539ff42f76b87f8be9d3766795f52a8fbb
[ "MIT" ]
null
null
null
AccGenBot/plugins/gen.py
AL-Noman21/AccGenBot
e4b27e539ff42f76b87f8be9d3766795f52a8fbb
[ "MIT" ]
null
null
null
from AccGenBot import AccGen from AccGenBot.verify import verify from telethon import events, Button from Configs import Config
31.263158
83
0.690236
ca7574c3a3add2c4fbe0fa71475f848d86adc5a9
159
py
Python
_estudoPython_solid/scriptTeste-03.py
carlos-freitas-gitHub/Python_Analise_De_Dados
74a72772179f45684f4f12acd4ad607c99ed8107
[ "Apache-2.0" ]
null
null
null
_estudoPython_solid/scriptTeste-03.py
carlos-freitas-gitHub/Python_Analise_De_Dados
74a72772179f45684f4f12acd4ad607c99ed8107
[ "Apache-2.0" ]
null
null
null
_estudoPython_solid/scriptTeste-03.py
carlos-freitas-gitHub/Python_Analise_De_Dados
74a72772179f45684f4f12acd4ad607c99ed8107
[ "Apache-2.0" ]
null
null
null
numero = 42 chute = input('Digite um nmero: \n') converte = int(chute) if numero == converte: print('Vo acertou!') else: print('Vo errou!')
22.714286
38
0.622642
ca75a48f2a77c6304530284e6cecf1690e996aad
10,858
py
Python
evaluation_hpatch/models/MTLDesc.py
vignywang/MTLDesc
852b43096a9275e6e2ce42381f05f01af8f44d1e
[ "MIT" ]
9
2021-12-07T04:20:22.000Z
2022-03-29T08:07:38.000Z
evaluation_hpatch/models/MTLDesc.py
vignywang/MTLDesc
852b43096a9275e6e2ce42381f05f01af8f44d1e
[ "MIT" ]
1
2022-03-29T02:07:44.000Z
2022-03-29T04:11:39.000Z
evaluation_hpatch/models/MTLDesc.py
vignywang/MTLDesc
852b43096a9275e6e2ce42381f05f01af8f44d1e
[ "MIT" ]
null
null
null
# # Created on 2020/2/25 # import os import sys sys.path.append("..") import cv2 as cv from nets import get_model from nets.network import *
35.139159
141
0.563271
ca76391812d3cd0fb7c831c2512b40c0e506d9f1
659
py
Python
p125e/valid_palindrome.py
l33tdaima/l33tdaima
0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90
[ "MIT" ]
1
2020-02-20T12:04:46.000Z
2020-02-20T12:04:46.000Z
p125e/valid_palindrome.py
l33tdaima/l33tdaima
0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90
[ "MIT" ]
null
null
null
p125e/valid_palindrome.py
l33tdaima/l33tdaima
0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90
[ "MIT" ]
null
null
null
# TESTS tests = [ ["", True], ["A man, a plan, a canal: Panama", True], ["race a car", False], ["0P", False], ] for t in tests: sol = Solution() print('Is "' + t[0] + '" palindrome? ->', t[1]) assert sol.isPalindrome(t[0]) == t[1]
24.407407
51
0.420334
ca76baa30d346606cd775ce0af5f4665e77ed0c7
220
py
Python
Solution_1.py
R3DDY97/Solutions-Pychallenge
d3eb27448170d302034899437c685b5858458cf7
[ "MIT" ]
null
null
null
Solution_1.py
R3DDY97/Solutions-Pychallenge
d3eb27448170d302034899437c685b5858458cf7
[ "MIT" ]
null
null
null
Solution_1.py
R3DDY97/Solutions-Pychallenge
d3eb27448170d302034899437c685b5858458cf7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import webbrowser if __name__ == "__main__": soln1()
18.333333
57
0.645455
ca7714124421148aec428513cb4835bc39ba6e9c
218
py
Python
models/objects.py
YTXIRE/able_crm_concrete_accounting_python_tests
c708bfb973a19499e0b04da5c219d924b295d74e
[ "Apache-2.0" ]
1
2022-03-06T17:30:38.000Z
2022-03-06T17:30:38.000Z
models/objects.py
YTXIRE/able_crm_concrete_accounting_python_tests
c708bfb973a19499e0b04da5c219d924b295d74e
[ "Apache-2.0" ]
null
null
null
models/objects.py
YTXIRE/able_crm_concrete_accounting_python_tests
c708bfb973a19499e0b04da5c219d924b295d74e
[ "Apache-2.0" ]
null
null
null
from peewee import CharField, IntegerField from core.db.db import BaseModel
19.818182
42
0.715596
ca78177fdd6b90e2972e4e035b6b677b36a1fa10
4,023
py
Python
thenewboston_node/business_logic/tests/test_blockchain_base/test_get_root_account_file.py
MLonTNB/thenewboston-node
3fbd0fc36c4f0eabaa8267f2a0be2fd717f133d1
[ "MIT" ]
null
null
null
thenewboston_node/business_logic/tests/test_blockchain_base/test_get_root_account_file.py
MLonTNB/thenewboston-node
3fbd0fc36c4f0eabaa8267f2a0be2fd717f133d1
[ "MIT" ]
null
null
null
thenewboston_node/business_logic/tests/test_blockchain_base/test_get_root_account_file.py
MLonTNB/thenewboston-node
3fbd0fc36c4f0eabaa8267f2a0be2fd717f133d1
[ "MIT" ]
null
null
null
import pytest from thenewboston_node.business_logic.tests.mocks.utils import patch_blockchain_states
41.05102
106
0.825255
ca7a85095b1b2b5b29546e3e20953394398b0936
297
py
Python
bmi.py
manmik2323/lifeisawesome.online
286b6a252c58d4751f07c28a343343a8fbb862fc
[ "CC-BY-3.0" ]
null
null
null
bmi.py
manmik2323/lifeisawesome.online
286b6a252c58d4751f07c28a343343a8fbb862fc
[ "CC-BY-3.0" ]
null
null
null
bmi.py
manmik2323/lifeisawesome.online
286b6a252c58d4751f07c28a343343a8fbb862fc
[ "CC-BY-3.0" ]
null
null
null
import cgitb cgitb.enable() print("This is a simple BMI convertor") weight = float(input("Enter weight in pounds: ")) height = float(input("Enter height in inches: ")) weight_kg = weight / 2.205 # pounds to kg height_m = height / 39.37 BMI = weight_kg / (height_m ** 2) print(f'BMI is {BMI:.2f}')
29.7
49
0.693603
ca7aa381c67a14555e5bb49414f839d6936fe5bf
824
py
Python
src/ykfan_utils/time/time_utils.py
fanyongkang87/ykfan_utils
de4d27218ddeaaa2dcf5b2434bdc8fb2646ba431
[ "MIT" ]
1
2019-06-06T10:17:05.000Z
2019-06-06T10:17:05.000Z
src/ykfan_utils/time/time_utils.py
fanyongkang87/ykfan_utils
de4d27218ddeaaa2dcf5b2434bdc8fb2646ba431
[ "MIT" ]
null
null
null
src/ykfan_utils/time/time_utils.py
fanyongkang87/ykfan_utils
de4d27218ddeaaa2dcf5b2434bdc8fb2646ba431
[ "MIT" ]
null
null
null
import time import functools import numpy as np
23.542857
72
0.563107
ca7d102d77cceb9f12fd08c5351855e2663678ae
364
py
Python
qlever/settings_secret_template.py
ad-freiburg/qleverUI
105ef23447eb691a5da8a4c92be3b4150aac72c6
[ "Apache-2.0" ]
4
2021-10-09T20:36:33.000Z
2022-02-12T09:19:17.000Z
qlever/settings_secret_template.py
ad-freiburg/qleverUI
105ef23447eb691a5da8a4c92be3b4150aac72c6
[ "Apache-2.0" ]
29
2019-09-01T08:48:12.000Z
2021-06-01T15:57:24.000Z
qlever/settings_secret_template.py
ad-freiburg/qleverUI
105ef23447eb691a5da8a4c92be3b4150aac72c6
[ "Apache-2.0" ]
4
2019-01-04T19:44:55.000Z
2020-12-05T03:40:42.000Z
# Change these values and rename this file to "settings_secret.py" # SECURITY WARNING: If you are using this in production, do NOT use the default SECRET KEY! # See: https://docs.djangoproject.com/en/3.0/ref/settings/#std:setting-SECRET_KEY SECRET_KEY = '!!super_secret!!' # https://docs.djangoproject.com/en/3.0/ref/se...
45.5
91
0.752747
ca7e4f2b9f9eae02c5ac9aee9a2d2c5fd85524c0
4,991
py
Python
grr/server/grr_response_server/blob_stores/dual_blob_store.py
Codehardt/grr
1861b45e71af559a792e70c22cf4ff3f4ffd8993
[ "Apache-2.0" ]
null
null
null
grr/server/grr_response_server/blob_stores/dual_blob_store.py
Codehardt/grr
1861b45e71af559a792e70c22cf4ff3f4ffd8993
[ "Apache-2.0" ]
null
null
null
grr/server/grr_response_server/blob_stores/dual_blob_store.py
Codehardt/grr
1861b45e71af559a792e70c22cf4ff3f4ffd8993
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """A BlobStore proxy that writes to two BlobStores.""" from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals import logging import threading import time from future.moves import queue from typing import Dict, Iterable, Optional, Text fro...
34.659722
80
0.727109
ca828ac9c1d690d9dd8dc535432262b6a449b7ec
106
py
Python
Chapter 15/ch15_20.py
bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE
f6a4194684515495d00aa38347a725dd08f39a0c
[ "MIT" ]
null
null
null
Chapter 15/ch15_20.py
bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE
f6a4194684515495d00aa38347a725dd08f39a0c
[ "MIT" ]
null
null
null
Chapter 15/ch15_20.py
bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE
f6a4194684515495d00aa38347a725dd08f39a0c
[ "MIT" ]
null
null
null
import numpy as np arr1 = np.ones (2, dtype=float) print("1D Array with ones ") print(arr1) #[1. 1.]
17.666667
32
0.632075
ca8535b7ef27b72dca1217baab85ad6e471c10dd
579
py
Python
Python/questions/ConsecutiveCharacters/consecutive-characters.py
udcymen/leetcode
7c7c4085e6a8cea7106dd8bca86b370ca53e3ddd
[ "MIT" ]
null
null
null
Python/questions/ConsecutiveCharacters/consecutive-characters.py
udcymen/leetcode
7c7c4085e6a8cea7106dd8bca86b370ca53e3ddd
[ "MIT" ]
null
null
null
Python/questions/ConsecutiveCharacters/consecutive-characters.py
udcymen/leetcode
7c7c4085e6a8cea7106dd8bca86b370ca53e3ddd
[ "MIT" ]
null
null
null
if __name__ == "__main__": print(maxPower("leetcode")) print(maxPower("abbcccddddeeeeedcba")) print(maxPower("triplepillooooow")) print(maxPower("hooraaaaaaaaaaay")) print(maxPower("tourist"))
23.16
45
0.53886
ca887cd37f13c29d87284c078662905c9516f54a
3,614
py
Python
python_retweet/__main__.py
av1m/python-retweet
efbf4d3cb83dc699536b181cf3c187a21a221c70
[ "MIT" ]
6
2020-01-16T20:12:09.000Z
2021-02-18T08:28:54.000Z
python_retweet/__main__.py
av1m/python-retweet
efbf4d3cb83dc699536b181cf3c187a21a221c70
[ "MIT" ]
null
null
null
python_retweet/__main__.py
av1m/python-retweet
efbf4d3cb83dc699536b181cf3c187a21a221c70
[ "MIT" ]
2
2020-04-19T20:52:36.000Z
2020-04-19T21:24:24.000Z
# coding: utf-8 from random import randint from time import sleep import tweepy from .configuration.logger import Logger try: from .configuration.credentials_test import Configuration # for testing except ImportError: from .configuration.credentials import Configuration def is_good_tweet(status): """U...
36.877551
87
0.603486
ca88e473c02e46ebd1581fff09c177127df63b72
3,622
py
Python
python/problem4.py
kirinthos/AdventOfCode2018
d60c8c3b7482d7a56d3ef688591a916437f1ad80
[ "MIT" ]
null
null
null
python/problem4.py
kirinthos/AdventOfCode2018
d60c8c3b7482d7a56d3ef688591a916437f1ad80
[ "MIT" ]
null
null
null
python/problem4.py
kirinthos/AdventOfCode2018
d60c8c3b7482d7a56d3ef688591a916437f1ad80
[ "MIT" ]
null
null
null
#!/usr/bin/python import itertools, re, sys from lib import readProblem, take, rowprint, partitionP, flatMap, flatten, group, writeFile, rowstr, groupP, partition lines = readProblem('../adventofcode/problems/problem4.input') extractorPattern = re.compile(r'\[....-(..)-(..) (..):(..)\] (.*)') guardBeginPattern = re...
32.339286
118
0.638874
ca8908bcf14d0b9924550f5bcc39439b30b83816
3,128
py
Python
mamonsu/tools/report/format.py
sgrinko/mamonsu
03b8e1217b08e6580e08129fddd64dbc20265fd4
[ "BSD-3-Clause" ]
188
2016-01-31T09:05:59.000Z
2022-03-22T16:49:12.000Z
mamonsu/tools/report/format.py
sgrinko/mamonsu
03b8e1217b08e6580e08129fddd64dbc20265fd4
[ "BSD-3-Clause" ]
162
2016-02-02T13:49:14.000Z
2022-02-22T08:45:42.000Z
mamonsu/tools/report/format.py
sgrinko/mamonsu
03b8e1217b08e6580e08129fddd64dbc20265fd4
[ "BSD-3-Clause" ]
46
2016-01-31T21:23:37.000Z
2022-02-07T10:59:54.000Z
# -*- coding: utf-8 -*- import re import sys import mamonsu.lib.platform as platform TermColor = color() # int (bytes) => str (human readable) # str (some formates) => str (human readable)
26.285714
71
0.544437
ca891eab678acc220da14e7299f6f382535e0a94
1,910
py
Python
BI-IOS/semester-project/webapp/beecon/campaigns/libs/cinemas/mvMovieSchedules.py
josefdolezal/fit-cvut
6b6abea4232b946246d33290718d6c5007926b63
[ "MIT" ]
20
2016-05-15T10:39:53.000Z
2022-03-29T00:06:06.000Z
BI-IOS/semester-project/webapp/beecon/campaigns/libs/cinemas/mvMovieSchedules.py
josefdolezal/fit-cvut
6b6abea4232b946246d33290718d6c5007926b63
[ "MIT" ]
3
2017-05-27T16:44:01.000Z
2019-01-02T21:02:59.000Z
BI-IOS/semester-project/webapp/beecon/campaigns/libs/cinemas/mvMovieSchedules.py
josefdolezal/fit-cvut
6b6abea4232b946246d33290718d6c5007926b63
[ "MIT" ]
11
2018-08-22T21:16:32.000Z
2021-04-10T22:42:34.000Z
# -*- coding: utf-8 -*- from DataSource import CinemaCity from bs4 import BeautifulSoup from datetime import datetime import re
25.466667
111
0.611518
ca896a9bb47fd30bf6ea891f7e61a4213cd76991
1,360
py
Python
polybar-scripts/system-cpu-percentage-runcat/system-cpu-runcat.py
KaboomPhysicist/polybar-scripts
d24620b43718f6cf4450613cfe553c906f0c0622
[ "Unlicense" ]
null
null
null
polybar-scripts/system-cpu-percentage-runcat/system-cpu-runcat.py
KaboomPhysicist/polybar-scripts
d24620b43718f6cf4450613cfe553c906f0c0622
[ "Unlicense" ]
null
null
null
polybar-scripts/system-cpu-percentage-runcat/system-cpu-runcat.py
KaboomPhysicist/polybar-scripts
d24620b43718f6cf4450613cfe553c906f0c0622
[ "Unlicense" ]
null
null
null
#!/usr/bin/python3 import json import os import subprocess # Icons for the animation sleep = "" icons_base = ["","","","",""] # Path to the script __location__ = os.path.realpath( os.path.join(os.getcwd(), os.path.dirname(__file__))) # Run the script for getting the CPU usage subprocess.Popen([os.path.join(__loc...
28.93617
111
0.604412
ca898399436393f11293b3d830fcb70df63aefff
5,839
py
Python
models/networks_sketch_rec.py
brian220/Sketch2PointCloud
65ce7b9921a7bef9f21ca2fc72820ca7f6fd6648
[ "MIT" ]
3
2022-03-28T02:37:05.000Z
2022-03-31T05:51:12.000Z
models/networks_sketch_rec.py
brian220/sketch_part_rec
17e8657ffc6605804ab4f1da89f446ea4d37665c
[ "MIT" ]
null
null
null
models/networks_sketch_rec.py
brian220/sketch_part_rec
17e8657ffc6605804ab4f1da89f446ea4d37665c
[ "MIT" ]
1
2022-03-30T04:51:39.000Z
2022-03-30T04:51:39.000Z
# -*- coding: utf-8 -*- # # Developed by Chao Yu Huang <b608390@gmail.com> # # References: # - https://github.com/hzxie/Pix2Vox/blob/master/models/encoder.py # - https://github.com/shawnxu1318/MVCNN-Multi-View-Convolutional-Neural-Networks/blob/master/mvcnn.py from collections import OrderedDict from functools import ...
39.452703
136
0.638979
ca8aac6e36d53c8a5f17ca05935f92698632b19c
361
py
Python
emailsender.py
dirghagarwal/python
5a60f985b00edc3e8ec8e52d3c918d4790012074
[ "MIT" ]
1
2021-01-28T14:44:36.000Z
2021-01-28T14:44:36.000Z
emailsender.py
dirghagarwal/python
5a60f985b00edc3e8ec8e52d3c918d4790012074
[ "MIT" ]
null
null
null
emailsender.py
dirghagarwal/python
5a60f985b00edc3e8ec8e52d3c918d4790012074
[ "MIT" ]
null
null
null
import smtplib to = input('enter the recipients email id:\n') content = input('enter the content:') sendemail(to, content)
27.769231
51
0.66205
ca8c2762f3fbfac9e880ce9182c81186e49f9ea1
2,305
py
Python
django_fileuploadvalidation/modules/validation/validator.py
IV1T3/django-middleware-fileuploadvalidation
7396702415a623424e3e790edc2f5dd51041d908
[ "Apache-2.0" ]
null
null
null
django_fileuploadvalidation/modules/validation/validator.py
IV1T3/django-middleware-fileuploadvalidation
7396702415a623424e3e790edc2f5dd51041d908
[ "Apache-2.0" ]
34
2021-07-22T14:43:20.000Z
2022-03-14T08:40:49.000Z
django_fileuploadvalidation/modules/validation/validator.py
IV1T3/django-middleware-fileuploadvalidation
7396702415a623424e3e790edc2f5dd51041d908
[ "Apache-2.0" ]
null
null
null
import clamd import logging from io import BytesIO from . import basic, image, quicksand
32.464789
110
0.536659
ca8c9b33540c4d6f3a2ac61bb2a9b71d2ad65554
2,531
py
Python
lgrp/migrations/0002_auto_20180523_1724.py
paleocore/paleocore110
754f3248ab22a2996b43bd224bd4ba15462edf7d
[ "MIT" ]
null
null
null
lgrp/migrations/0002_auto_20180523_1724.py
paleocore/paleocore110
754f3248ab22a2996b43bd224bd4ba15462edf7d
[ "MIT" ]
7
2020-02-05T20:54:24.000Z
2021-12-13T20:13:20.000Z
lgrp/migrations/0002_auto_20180523_1724.py
paleocore/paleocore110
754f3248ab22a2996b43bd224bd4ba15462edf7d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2018-05-23 17:24 from __future__ import unicode_literals from django.db import migrations, models
76.69697
1,562
0.551561
ca8cb01a572d2050f72204fbb3bd1ee5653e56e5
261
py
Python
contrib/report_builders/__init__.py
berndonline/flan
3d851d9aa0b73d4e32d8f311e2ddefafa15648a2
[ "BSD-3-Clause" ]
3,711
2019-11-20T23:58:42.000Z
2022-03-27T18:43:51.000Z
contrib/report_builders/__init__.py
berndonline/flan
3d851d9aa0b73d4e32d8f311e2ddefafa15648a2
[ "BSD-3-Clause" ]
56
2019-11-21T19:21:23.000Z
2022-03-20T19:46:22.000Z
contrib/report_builders/__init__.py
berndonline/flan
3d851d9aa0b73d4e32d8f311e2ddefafa15648a2
[ "BSD-3-Clause" ]
295
2019-11-21T15:54:26.000Z
2022-03-24T15:18:12.000Z
from .report_builder import ReportBuilder from .latex_report_builder import LatexReportBuilder from .markdown_report_builder import MarkdownReportBuilder from .json_report_builder import JsonReportBuilder from .html_report_builder import JinjaHtmlReportBuilder
43.5
58
0.904215
ca8f1de90b35c52b76240c48c004bf6f384fdad5
153
py
Python
pajbot/web/routes/playsound.py
leecopland/bullbot
52e463293097b58084afb4f9f1d85b0656a67d44
[ "MIT" ]
1
2020-10-01T23:36:38.000Z
2020-10-01T23:36:38.000Z
pajbot/web/routes/playsound.py
leecopland/bullbot
52e463293097b58084afb4f9f1d85b0656a67d44
[ "MIT" ]
1
2021-03-25T05:37:40.000Z
2021-03-25T05:37:40.000Z
pajbot/web/routes/playsound.py
leecopland/bullbot
52e463293097b58084afb4f9f1d85b0656a67d44
[ "MIT" ]
null
null
null
from flask import render_template
21.857143
52
0.699346
ca9199f1c1b1c96d39974627c76ce18d47d84eaf
9,023
py
Python
archive_cli.py
mitre-attack/attack-archives
f60e76afba4ad6f6e7fe2d26b156c9b898bc7db9
[ "Apache-2.0" ]
6
2019-12-22T12:09:57.000Z
2021-09-21T23:47:15.000Z
archive_cli.py
mitre-attack/attack-archives
f60e76afba4ad6f6e7fe2d26b156c9b898bc7db9
[ "Apache-2.0" ]
2
2019-11-21T14:00:17.000Z
2020-01-15T13:10:33.000Z
archive_cli.py
mitre-attack/attack-archives
f60e76afba4ad6f6e7fe2d26b156c9b898bc7db9
[ "Apache-2.0" ]
4
2020-02-08T10:05:21.000Z
2020-12-20T03:35:35.000Z
import argparse import shutil import stat import os import tqdm import re import git import json # STATIC PROPERTIES # the route for previous versions to be saved under. previous_route = "previous" # I'm doing spaces here for readability with symbol characters. # The strings will get stripped of whitespace. # These ge...
41.773148
170
0.626953
ca91f75e29d72b911a4f26079b84818ab1e92192
890
py
Python
UNet/Visualize.py
glisses/segmentation-and-uncertainty-estimation-on-CityScapes
aed35e61383817579271b67748fb0e33866c09d6
[ "MIT" ]
1
2022-02-14T15:10:44.000Z
2022-02-14T15:10:44.000Z
UNet/Visualize.py
glisses/segmentation-and-uncertainty-estimation-on-CityScapes
aed35e61383817579271b67748fb0e33866c09d6
[ "MIT" ]
null
null
null
UNet/Visualize.py
glisses/segmentation-and-uncertainty-estimation-on-CityScapes
aed35e61383817579271b67748fb0e33866c09d6
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np import operator import os import sys import tensorflow as tf # 256*256 0~1 ##img:256x256istr!!!! # Test # test_input = np.random.rand(128, 256) test_input = np.ones((256,256),dtype=float) Visualize(test_input, '1') # Visualize(Transform(test_input), '1') print(te...
23.421053
59
0.634831
ca93f06b436cc477a9fe3786cd6aa0d7c14c1cf3
1,861
py
Python
001146StepikPyBegin/Stepik001146PyBeginсh11p06st07TASK03_20210311_lists_methods.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
001146StepikPyBegin/Stepik001146PyBeginсh11p06st07TASK03_20210311_lists_methods.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
001146StepikPyBegin/Stepik001146PyBeginсh11p06st07TASK03_20210311_lists_methods.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
import string words = (input().lower()).split() # words_opt = [] # for item in words: words_opt.append(onlyletters(item)) count1 = words_opt.count('a') + words_opt.count('an') + words_opt.count('the') print(f' {count1}') # my_02 words = (input().lower()).split() count1 = words.count('a') + words.co...
26.211268
107
0.626008