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
72395e4c87b9f1d8044b25a00bbab7ea6fe4633a
337
py
Python
tests/graphql/readme_forum/readme_forum_permissions/models.py
karlosss/simple_api
03f87035c648f161d5e7a59b24f4e04bd34399f1
[ "MIT" ]
2
2020-11-13T14:00:06.000Z
2020-12-19T11:50:22.000Z
tests/graphql/readme_forum/readme_forum_permissions/models.py
ladal1/simple_api
1b5d560476bccad9f68a7331d092dbdb68c48bf7
[ "MIT" ]
5
2021-02-04T14:27:43.000Z
2021-06-04T23:22:24.000Z
tests/graphql/readme_forum/readme_forum_permissions/models.py
ladal1/simple_api
1b5d560476bccad9f68a7331d092dbdb68c48bf7
[ "MIT" ]
1
2021-01-06T13:54:38.000Z
2021-01-06T13:54:38.000Z
from django.contrib.auth.models import User from django.db.models import Model, CharField, TextField, ForeignKey, CASCADE class Post(Model): title = CharField(max_length=50) author = ForeignKey(User, on_delete=CASCADE) content = TextField() def __str__(self): return "{} by {}".format(self.tit...
28.083333
77
0.712166
212
0.62908
0
0
0
0
0
0
10
0.029674
723b9095a8d15e2c9c1b3f5d5be4c81a6f6e858e
2,304
py
Python
streamlit_app.py
fhebal/nlp-medical-notes
f1fed9e34ba47da14220b5719f28c1e720302f45
[ "MIT" ]
null
null
null
streamlit_app.py
fhebal/nlp-medical-notes
f1fed9e34ba47da14220b5719f28c1e720302f45
[ "MIT" ]
null
null
null
streamlit_app.py
fhebal/nlp-medical-notes
f1fed9e34ba47da14220b5719f28c1e720302f45
[ "MIT" ]
null
null
null
import streamlit as st import yaml from load_css import local_css import tensorflow as tf import tensorflow_hub as hub import tensorflow_text as text import numpy as np from random import sample import os local_css("style.css") prediction_key = { 0:'Gastroenterology', 1:'Neurology', 2:'Orthope...
29.538462
126
0.647569
382
0.165799
0
0
0
0
0
0
512
0.222222
723d7e8a6d6158d63e1b5536dbcf3fd946d29dec
2,440
py
Python
tests/test_functions.py
aerial-defence/pytak
e20c2dedfee88489bf21ad931970c2cb982d72ed
[ "Apache-2.0" ]
null
null
null
tests/test_functions.py
aerial-defence/pytak
e20c2dedfee88489bf21ad931970c2cb982d72ed
[ "Apache-2.0" ]
null
null
null
tests/test_functions.py
aerial-defence/pytak
e20c2dedfee88489bf21ad931970c2cb982d72ed
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Python Team Awareness Kit (PyTAK) Module Tests.""" import asyncio import urllib import pytest import pytak __author__ = 'Greg Albrecht W2GMD <[email protected]>' __copyright__ = 'Copyright 2022 Greg Albrecht' __license__ = 'Apache License, Version 2.0' def test_parse_c...
29.047619
73
0.702049
0
0
0
0
0
0
0
0
554
0.227049
723d802339794483e5614abac1a27413e8db4aa8
1,054
py
Python
tests/test_aoc_day_02.py
ladokp/AdventOfCode2021
03f8b9f8579ae562d5f2784a131370a32ed19f8b
[ "BSD-2-Clause" ]
null
null
null
tests/test_aoc_day_02.py
ladokp/AdventOfCode2021
03f8b9f8579ae562d5f2784a131370a32ed19f8b
[ "BSD-2-Clause" ]
null
null
null
tests/test_aoc_day_02.py
ladokp/AdventOfCode2021
03f8b9f8579ae562d5f2784a131370a32ed19f8b
[ "BSD-2-Clause" ]
null
null
null
# test_aoc_day_02.py import pytest import solution.aoc_day_02 as aoc @pytest.fixture def test_solution(): return aoc.AocSolution(test_suffix="_test") @pytest.fixture def exercise_solution(): return aoc.AocSolution() def test_parse_test_solution(test_solution): """Test that input is parsed properly"""...
22.425532
52
0.683112
0
0
0
0
153
0.145161
0
0
266
0.252372
723e3c60c657572c4703c5d71bdcbccb656fe914
18,265
py
Python
src/elora/elora.py
morelandjs/elora
e902c40d66b0bf95a8d2374afa0cc165b87c9b82
[ "MIT" ]
1
2021-07-26T20:36:32.000Z
2021-07-26T20:36:32.000Z
src/elora/elora.py
morelandjs/elora
e902c40d66b0bf95a8d2374afa0cc165b87c9b82
[ "MIT" ]
null
null
null
src/elora/elora.py
morelandjs/elora
e902c40d66b0bf95a8d2374afa0cc165b87c9b82
[ "MIT" ]
null
null
null
from operator import add, sub import numpy as np from scipy.stats import norm class Elora: def __init__(self, times, labels1, labels2, values, biases=0): """ Elo regressor algorithm for paired comparison time series prediction Author: J. Scott Moreland Args: times (a...
36.750503
80
0.594854
18,187
0.995512
0
0
417
0.022826
0
0
8,791
0.481198
723f049018f7dbaf5f55c465cf88ce5aa8c8ec4d
48
py
Python
atcoder/abc179/a.py
sugitanishi/competitive-programming
51af65fdce514ece12f8afbf142b809d63eefb5d
[ "MIT" ]
null
null
null
atcoder/abc179/a.py
sugitanishi/competitive-programming
51af65fdce514ece12f8afbf142b809d63eefb5d
[ "MIT" ]
null
null
null
atcoder/abc179/a.py
sugitanishi/competitive-programming
51af65fdce514ece12f8afbf142b809d63eefb5d
[ "MIT" ]
null
null
null
s=input() print(s+'s' if s[-1]!='s' else s+'es')
24
38
0.520833
0
0
0
0
0
0
0
0
10
0.208333
723fcadfa719088f86b59d8093c6f9655d115794
48,147
py
Python
steady_cell_phenotype/poly.py
knappa/steadycellphenotype
b033f01ebc1fa062d310296f19f2f11b484cb557
[ "MIT" ]
1
2021-12-13T22:20:19.000Z
2021-12-13T22:20:19.000Z
steady_cell_phenotype/poly.py
knappa/steadycellphenotype
b033f01ebc1fa062d310296f19f2f11b484cb557
[ "MIT" ]
5
2021-04-07T01:47:19.000Z
2021-11-17T01:46:19.000Z
steady_cell_phenotype/poly.py
knappa/steadycellphenotype
b033f01ebc1fa062d310296f19f2f11b484cb557
[ "MIT" ]
null
null
null
from __future__ import annotations import operator from enum import Enum from itertools import product from typing import Dict, Union import numpy as np class Operation(Enum): PLUS = 'PLUS' MINUS = 'MINUS' TIMES = 'TIMES' EXP = 'EXP' MAX = 'MAX' MIN = 'MIN' CONT = 'CONT' NOT = 'NOT' ...
38.985425
117
0.577897
45,795
0.95115
0
0
343
0.007124
0
0
12,263
0.254699
72404631e2e0ae2fb28f9c18c6b107f7f88a83f4
23,165
py
Python
django_tidb/features.py
killuminatixhr/django-tidb
8de093dd7242fc70a5b9b5240711bef00722ff03
[ "Apache-2.0" ]
17
2021-07-30T17:02:53.000Z
2021-12-10T02:28:59.000Z
django_tidb/features.py
killuminatixhr/django-tidb
8de093dd7242fc70a5b9b5240711bef00722ff03
[ "Apache-2.0" ]
7
2021-08-02T09:56:27.000Z
2022-03-23T03:36:07.000Z
django_tidb/features.py
killuminatixhr/django-tidb
8de093dd7242fc70a5b9b5240711bef00722ff03
[ "Apache-2.0" ]
6
2021-07-30T10:04:15.000Z
2022-03-29T05:44:37.000Z
# Copyright 2021 PingCAP, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
55.286396
118
0.699763
22,492
0.970948
0
0
21,442
0.925621
0
0
15,536
0.670667
72404d3d39210b175e825c5b94b9e21a7e2698f1
421
py
Python
src/combine_npy.py
hongli-ma/RNANetMotif
34b4de443ec7edb59f4e4e06b17686543c438366
[ "MIT" ]
null
null
null
src/combine_npy.py
hongli-ma/RNANetMotif
34b4de443ec7edb59f4e4e06b17686543c438366
[ "MIT" ]
null
null
null
src/combine_npy.py
hongli-ma/RNANetMotif
34b4de443ec7edb59f4e4e06b17686543c438366
[ "MIT" ]
null
null
null
import numpy as np import sys import glob rbp=sys.argv[1] kmer=sys.argv[2] pfile_list=glob.glob("result_VDM3_"+rbp+"_positive_"+kmer+"_*.npy") pfile1=np.load(pfile_list[0]) psha=np.shape(pfile1) pmatrix=np.zeros(psha) for pfile in pfile_list: file=np.load(pfile) # file=np.fromfile(pfile,dtype=np.float32) p...
23.388889
86
0.750594
0
0
0
0
0
0
0
0
134
0.31829
7241a2c99b3dfd4732a6af0ad6cf19b2e1c6a517
1,238
py
Python
fgvcdata/__init__.py
catalys1/fgvc-data-pytorch
e2666d011c71308c4975776fbc41e947424f0723
[ "MIT" ]
4
2020-07-05T10:19:20.000Z
2021-09-15T08:22:36.000Z
fgvcdata/__init__.py
catalys1/fgvc-data-pytorch
e2666d011c71308c4975776fbc41e947424f0723
[ "MIT" ]
1
2020-11-13T22:01:47.000Z
2020-11-13T22:01:47.000Z
fgvcdata/__init__.py
catalys1/fgvc-data-pytorch
e2666d011c71308c4975776fbc41e947424f0723
[ "MIT" ]
null
null
null
'''A common interface to FGVC datasets. Currently supported datasets are - CUB Birds - CUB Birds with expert labels - NA Birds - Stanford Cars - Stanford Dogs - Oxford Flowers - Oxford FGVC Aircraft - Tsinghua Dogs Datasets are constructed and used following the pytorch data.utils.data.Dataset paradigm, and have the ...
29.47619
79
0.747981
0
0
0
0
0
0
0
0
952
0.768982
72422e4892bc1b2767ffe8812f2e9e5e44e84b64
10,491
py
Python
app/auth/api.py
Anti-Counter021/Anti-YouTube-back-end
eca9b26b4a1feb7e516c0164e86c5d6444af8db5
[ "MIT" ]
null
null
null
app/auth/api.py
Anti-Counter021/Anti-YouTube-back-end
eca9b26b4a1feb7e516c0164e86c5d6444af8db5
[ "MIT" ]
null
null
null
app/auth/api.py
Anti-Counter021/Anti-YouTube-back-end
eca9b26b4a1feb7e516c0164e86c5d6444af8db5
[ "MIT" ]
null
null
null
from typing import List from celery.result import AsyncResult from fastapi import APIRouter, status, Depends, Form, UploadFile, File, Request, WebSocket from fastapi.responses import RedirectResponse from app.auth import service from app.auth.models import User from app.auth.permission import is_active from app.auth....
29.304469
96
0.691354
0
0
0
0
9,708
0.925365
5,090
0.485178
1,417
0.135068
7242536c3707c16822eadee50c71c7b05cdd3796
7,768
py
Python
concourse/steps/scan_container_images.py
jia-jerry/cc-utils
01322d2acb7343c92138dcf0b6ac913b276525bc
[ "Apache-2.0" ]
null
null
null
concourse/steps/scan_container_images.py
jia-jerry/cc-utils
01322d2acb7343c92138dcf0b6ac913b276525bc
[ "Apache-2.0" ]
null
null
null
concourse/steps/scan_container_images.py
jia-jerry/cc-utils
01322d2acb7343c92138dcf0b6ac913b276525bc
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed # under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Licens...
36.299065
99
0.660788
3,806
0.489959
1,944
0.250257
382
0.049176
0
0
2,415
0.310891
72430bcb51d12558e07e88c7e1a6d221c05d6f85
647
py
Python
py/cv/video.py
YodaEmbedding/experiments
567c6a1c18fac2d951fe2af54aaa4917b7d529d2
[ "MIT" ]
null
null
null
py/cv/video.py
YodaEmbedding/experiments
567c6a1c18fac2d951fe2af54aaa4917b7d529d2
[ "MIT" ]
null
null
null
py/cv/video.py
YodaEmbedding/experiments
567c6a1c18fac2d951fe2af54aaa4917b7d529d2
[ "MIT" ]
null
null
null
import cv2 import numpy as np height = 500 width = 700 gray = np.zeros((height, width), dtype=np.uint8) # fourcc = cv2.VideoWriter_fourcc(*"MJPG") # filename = "output.avi" fourcc = cv2.VideoWriter_fourcc(*"MP4V") filename = "output.mp4" writer = cv2.VideoWriter( filename, fourcc, fps=30, frameSize=(width, height...
24.884615
70
0.689335
0
0
0
0
0
0
0
0
186
0.287481
72450375a565716f2e2d7e0a06b152a00332048e
1,062
py
Python
po/loginpage.py
imzengyang/datadrivertestexample
a37520c2f5f0ae6dfbcaaa371586ba7e98540537
[ "MIT" ]
1
2018-06-03T05:31:46.000Z
2018-06-03T05:31:46.000Z
po/loginpage.py
imzengyang/datadrivertestexample
a37520c2f5f0ae6dfbcaaa371586ba7e98540537
[ "MIT" ]
null
null
null
po/loginpage.py
imzengyang/datadrivertestexample
a37520c2f5f0ae6dfbcaaa371586ba7e98540537
[ "MIT" ]
null
null
null
from po.base import BasePage from po.base import InvalidPageException class LoginPage(BasePage): _login_view_locator = ".active" _login_name_selector = "#name" _login_passwd_selector = "#pass" _login_btn_selector = ".span-primary" _login_error_msg_selector='.alert strong' def __init__(self...
33.1875
100
0.733522
990
0.932203
0
0
135
0.127119
0
0
251
0.236347
724561c601c848d5d6d0e629507abb99ee03ff0a
1,329
py
Python
app.py
jesseokeya/linkedin-scraper
6b9d5af5167c8c936db63a855a9885728efbfeb5
[ "MIT" ]
null
null
null
app.py
jesseokeya/linkedin-scraper
6b9d5af5167c8c936db63a855a9885728efbfeb5
[ "MIT" ]
1
2020-01-04T19:33:58.000Z
2021-09-07T15:03:03.000Z
app.py
jesseokeya/linkedin-scraper
6b9d5af5167c8c936db63a855a9885728efbfeb5
[ "MIT" ]
1
2021-12-02T06:51:46.000Z
2021-12-02T06:51:46.000Z
from lib import Scrape from typing import List from os import environ def main(): seconds: int = 60 username: str = environ.get('EMAIL') password: str = environ.get('PASSWORD') # Navigates to Linkedin's website scraper = Scrape() # Takes in credentials to login into the url sepecified scr...
27.122449
74
0.678706
0
0
0
0
0
0
0
0
628
0.472536
724593364a3fe88c699961a3b8ddb8f17f617e15
100
py
Python
Loops/for_in.py
1302580MK/Udemy_Python
c7aef0645ae15a954c2356ba96288deaa087fb32
[ "MIT" ]
null
null
null
Loops/for_in.py
1302580MK/Udemy_Python
c7aef0645ae15a954c2356ba96288deaa087fb32
[ "MIT" ]
null
null
null
Loops/for_in.py
1302580MK/Udemy_Python
c7aef0645ae15a954c2356ba96288deaa087fb32
[ "MIT" ]
null
null
null
var1 = "hello world" # left what you get from the right for character in var1: print(character)
20
34
0.72
0
0
0
0
0
0
0
0
47
0.47
7247650bb946b4cd8155dc4709b0e70976c42ea4
546
py
Python
forum/migrations/0003_auto_20190307_1825.py
AdityaJ42/DJ-Comps-Book-Exchange
12bba45f016e1b708477c642c2595b7f15e3dcfc
[ "MIT" ]
null
null
null
forum/migrations/0003_auto_20190307_1825.py
AdityaJ42/DJ-Comps-Book-Exchange
12bba45f016e1b708477c642c2595b7f15e3dcfc
[ "MIT" ]
null
null
null
forum/migrations/0003_auto_20190307_1825.py
AdityaJ42/DJ-Comps-Book-Exchange
12bba45f016e1b708477c642c2595b7f15e3dcfc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.8 on 2019-03-07 12:55 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('forum', '0002_upvote'), ] operations = [ m...
24.818182
125
0.64652
355
0.650183
0
0
0
0
0
0
132
0.241758
724a427f96e1eeeba039df150a14e4acaeb34725
495
py
Python
datahub/event/migrations/0018_move_to_metadata_trade_agreement.py
Staberinde/data-hub-api
3d0467dbceaf62a47158eea412a3dba827073300
[ "MIT" ]
6
2019-12-02T16:11:24.000Z
2022-03-18T10:02:02.000Z
datahub/event/migrations/0018_move_to_metadata_trade_agreement.py
Staberinde/data-hub-api
3d0467dbceaf62a47158eea412a3dba827073300
[ "MIT" ]
1,696
2019-10-31T14:08:37.000Z
2022-03-29T12:35:57.000Z
datahub/event/migrations/0018_move_to_metadata_trade_agreement.py
Staberinde/data-hub-api
3d0467dbceaf62a47158eea412a3dba827073300
[ "MIT" ]
9
2019-11-22T12:42:03.000Z
2021-09-03T14:25:05.000Z
# Generated by Django 3.1.7 on 2021-04-08 11:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('metadata', '0009_tradeagreement'), ('event', '0017_add_related_trade_agreement_fields'), ] operations = [ migrations.AlterField( ...
24.75
83
0.638384
402
0.812121
0
0
0
0
0
0
184
0.371717
724a51915fb64beb06bbeb6fa5488524f3f99f3f
16,905
py
Python
pbs/scripts/update_burn_dataOLD.py
jawaidm/pbs
87f5c535c976d6a5eccbfbbf2073589b6e366d04
[ "Apache-2.0" ]
null
null
null
pbs/scripts/update_burn_dataOLD.py
jawaidm/pbs
87f5c535c976d6a5eccbfbbf2073589b6e366d04
[ "Apache-2.0" ]
12
2019-10-22T23:16:38.000Z
2022-03-11T23:17:45.000Z
pbs/scripts/update_burn_dataOLD.py
jawaidm/pbs
87f5c535c976d6a5eccbfbbf2073589b6e366d04
[ "Apache-2.0" ]
5
2019-12-19T06:18:42.000Z
2022-01-07T01:16:18.000Z
''' ---------------------------------------------------------------------------------------- This script will update the Prescribed Burn System's ePFP data according to txt input files found in the relevant scripts folder. It requires user input of the Corporate Executive Approval date, which it will then use to set PR...
47.089136
125
0.644898
0
0
0
0
0
0
0
0
6,924
0.409583
724b92184d8f2e9819e55008805cce856be796bd
4,012
py
Python
learnware/algorithm/anomaly_detect/iforest.py
marvinren/aiops_gaussian_learnware
47683546d6648a38bb71988c33f959cf7308376f
[ "Apache-2.0" ]
null
null
null
learnware/algorithm/anomaly_detect/iforest.py
marvinren/aiops_gaussian_learnware
47683546d6648a38bb71988c33f959cf7308376f
[ "Apache-2.0" ]
null
null
null
learnware/algorithm/anomaly_detect/iforest.py
marvinren/aiops_gaussian_learnware
47683546d6648a38bb71988c33f959cf7308376f
[ "Apache-2.0" ]
null
null
null
import numpy as np from scipy.stats import binom from sklearn.ensemble import IsolationForest from sklearn.preprocessing import MinMaxScaler from scipy.special import erf from learnware.algorithm.anomaly_detect.base import BaseAnomalyDetect class iForest(BaseAnomalyDetect): def __init__(self, n_estimators=100, ...
37.148148
79
0.598704
3,783
0.939176
0
0
0
0
0
0
258
0.064052
724cda3b3a14ff18ab5608878c35ee486f9afa69
217
py
Python
noxfile.py
rshnn/Practical-RL
f7688e224a342c7f67478f2c4cd6bb7b1a122205
[ "MIT" ]
3
2022-02-14T17:59:56.000Z
2022-02-15T10:08:43.000Z
noxfile.py
rshnn/Practical-RL
f7688e224a342c7f67478f2c4cd6bb7b1a122205
[ "MIT" ]
21
2021-11-02T21:35:26.000Z
2022-01-17T18:50:42.000Z
noxfile.py
rshnn/Practical-RL
f7688e224a342c7f67478f2c4cd6bb7b1a122205
[ "MIT" ]
2
2021-11-24T15:25:17.000Z
2022-02-14T19:04:56.000Z
from nox import session @session(reuse_venv=True) def docs(session): session.install("jupyter-book", "sphinx-sitemap", "jupyterbook-latex") # we need _config.yml _toc.yml session.run("jb", "build", ".")
24.111111
74
0.686636
0
0
0
0
190
0.875576
0
0
93
0.428571
724da380c925fd0be608bd11f30b6d426eb5746d
27
py
Python
megnet/data/__init__.py
abdalazizrashid/megnet
8ad0fca246465bd57d66392f790c5310c610dfff
[ "BSD-3-Clause" ]
367
2018-12-13T14:49:00.000Z
2022-03-31T10:17:04.000Z
megnet/data/__init__.py
kdmsit/MEGNet
4f3c76c6b99edcb41d52ae5e8ae9dc89956d33d1
[ "MIT" ]
162
2019-02-08T20:38:12.000Z
2022-03-31T21:13:06.000Z
megnet/data/__init__.py
kdmsit/MEGNet
4f3c76c6b99edcb41d52ae5e8ae9dc89956d33d1
[ "MIT" ]
119
2018-12-17T10:16:12.000Z
2022-03-31T17:26:57.000Z
""" Data manipulations """
6.75
18
0.62963
0
0
0
0
0
0
0
0
26
0.962963
7252008c26b1662083a1400694c806c34e33ed67
910
py
Python
graviteeio_cli/lint/functions/length.py
gravitee-io/gravitee-cli
8e3bf9f2c0c2873e0f6e67f8fcaf0d3b6c44b3ca
[ "Apache-2.0" ]
12
2019-05-29T20:06:01.000Z
2020-10-07T07:40:27.000Z
graviteeio_cli/lint/functions/length.py
gravitee-io/graviteeio-cli
0e0069b00ce40813efc7d40142a6dc4b4ec7a261
[ "Apache-2.0" ]
41
2019-11-04T18:18:18.000Z
2021-04-22T16:12:51.000Z
graviteeio_cli/lint/functions/length.py
gravitee-io/gravitee-cli
8e3bf9f2c0c2873e0f6e67f8fcaf0d3b6c44b3ca
[ "Apache-2.0" ]
6
2019-06-18T04:27:49.000Z
2021-06-02T17:52:24.000Z
from graviteeio_cli.lint.types.function_result import FunctionResult def length(value, **kwargs): """Count the length of a string an or array, the number of properties in an object, or a numeric value, and define minimum and/or maximum values.""" min = None max = None if "min" in kwargs and type(kwar...
26
152
0.597802
0
0
0
0
0
0
0
0
214
0.235165
a0c60f619b683347cb7cc9f4f6e9936af96f0dbd
27,874
py
Python
smartrecruiters_python_client/apis/analytics_api.py
roksela/smartrecruiters-python-client
6d0849d173a3d6718b5f0769098f4c76857f637d
[ "MIT" ]
5
2018-03-27T08:20:13.000Z
2022-03-30T06:23:38.000Z
smartrecruiters_python_client/apis/analytics_api.py
roksela/smartrecruiters-python-client
6d0849d173a3d6718b5f0769098f4c76857f637d
[ "MIT" ]
null
null
null
smartrecruiters_python_client/apis/analytics_api.py
roksela/smartrecruiters-python-client
6d0849d173a3d6718b5f0769098f4c76857f637d
[ "MIT" ]
2
2018-12-05T04:48:37.000Z
2020-12-17T12:12:12.000Z
# coding: utf-8 """ Unofficial python library for the SmartRecruiters API The SmartRecruiters API provides a platform to integrate services or applications, build apps and create fully customizable career sites. It exposes SmartRecruiters functionality and allows to connect and build software enhancing it. ...
44.10443
280
0.583052
27,222
0.976609
0
0
0
0
0
0
15,054
0.540073
a0c68d4449b586355649b08e113c775fd8d862f6
398
py
Python
Timofei-Khirianov-2019/lesson_001/003_anketa.py
anklav24/Python-Education
49ebcfabda1376390ee71e1fe321a51e33831f9e
[ "Apache-2.0" ]
null
null
null
Timofei-Khirianov-2019/lesson_001/003_anketa.py
anklav24/Python-Education
49ebcfabda1376390ee71e1fe321a51e33831f9e
[ "Apache-2.0" ]
null
null
null
Timofei-Khirianov-2019/lesson_001/003_anketa.py
anklav24/Python-Education
49ebcfabda1376390ee71e1fe321a51e33831f9e
[ "Apache-2.0" ]
null
null
null
name = input('Hello! What is your name? : ') print('Nice to meet you,', name + '!') print() age = int(input('How old are you ' + name + '? : ')) print() x = age + 1 print('А я думал тебе', x, end=' ') if x >= 11 and x <= 19: print('лет', end='') elif x % 10 == 1: print('год', end='') elif x % 10 >= 2 and x %...
19.9
52
0.502513
0
0
0
0
0
0
0
0
151
0.35782
a0c69fd6e11617fc5f9eb586f7c2029856d0877b
2,399
py
Python
Technical_Indicators/rainbow_charts.py
vhn0912/Finance
39cf49d4d778d322537531cee4ce3981cc9951f9
[ "MIT" ]
441
2020-04-22T02:21:19.000Z
2022-03-29T15:00:24.000Z
Technical_Indicators/rainbow_charts.py
happydasch/Finance
4f6c5ea8f60fb0dc3b965ffb9628df83c2ecef35
[ "MIT" ]
5
2020-07-06T15:19:58.000Z
2021-07-23T18:32:29.000Z
Technical_Indicators/rainbow_charts.py
happydasch/Finance
4f6c5ea8f60fb0dc3b965ffb9628df83c2ecef35
[ "MIT" ]
111
2020-04-21T11:40:39.000Z
2022-03-20T07:26:17.000Z
import numpy as np import pandas as pd import matplotlib.pyplot as plt import warnings warnings.filterwarnings("ignore") import yfinance as yf yf.pdr_override() import datetime as dt # input symbol = 'AAPL' start = dt.date.today() - dt.timedelta(days = 365*2) end = dt.date.today() # Read data df = yf.download(symbol...
36.348485
111
0.667361
0
0
0
0
0
0
0
0
794
0.330971
a0c8d55fb37c691da19d42d22717e7769ad0fbbf
1,670
py
Python
UpWork_Projects/pdf_downloader.py
SurendraTamang/Web-Scrapping
2bb60cce9010b4b68f5c11bf295940832bb5df50
[ "MIT" ]
null
null
null
UpWork_Projects/pdf_downloader.py
SurendraTamang/Web-Scrapping
2bb60cce9010b4b68f5c11bf295940832bb5df50
[ "MIT" ]
null
null
null
UpWork_Projects/pdf_downloader.py
SurendraTamang/Web-Scrapping
2bb60cce9010b4b68f5c11bf295940832bb5df50
[ "MIT" ]
1
2022-01-18T17:15:51.000Z
2022-01-18T17:15:51.000Z
import requests from urllib.request import urlopen from urllib.request import urlretrieve import cgi import os.path def retrive_file_name(url): #url = 'https://material.ibear.pt/BTHorarios2019/FileGet.aspx?FileId=5601' remotefile = urlopen(url) blah = remotefile.info()['Content-Disposition'] _, params ...
33.4
108
0.552096
0
0
0
0
0
0
0
0
398
0.238323
a0cab7a3ae269edaac7fa1a7d902a54bd96a752d
13,282
py
Python
backend/app/vta/texdf/tex_df.py
megagonlabs/leam
f19830d4d6935bece7d163abbc533cfb4bc2e729
[ "Apache-2.0" ]
7
2020-09-14T07:03:51.000Z
2022-01-13T10:11:53.000Z
backend/app/vta/texdf/tex_df.py
megagonlabs/leam
f19830d4d6935bece7d163abbc533cfb4bc2e729
[ "Apache-2.0" ]
null
null
null
backend/app/vta/texdf/tex_df.py
megagonlabs/leam
f19830d4d6935bece7d163abbc533cfb4bc2e729
[ "Apache-2.0" ]
1
2020-09-07T22:26:27.000Z
2020-09-07T22:26:27.000Z
import spacy import json, os import dill as pickle import numpy as np import pandas as pd from sklearn.feature_extraction.text import TfidfVectorizer from sqlalchemy import create_engine, select, MetaData, Table, Column, Integer, String from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import ...
37.840456
100
0.595844
12,568
0.946243
0
0
0
0
0
0
2,040
0.153591
a0cc5ea31e6d19f7b084b456d80ccf0e5baf6865
1,604
py
Python
orders-api/orders_api/models.py
kelvinducray/fastapi-orders-api
37176329f717adf8ad8749be4ed50f7c875b0cf5
[ "MIT" ]
null
null
null
orders-api/orders_api/models.py
kelvinducray/fastapi-orders-api
37176329f717adf8ad8749be4ed50f7c875b0cf5
[ "MIT" ]
null
null
null
orders-api/orders_api/models.py
kelvinducray/fastapi-orders-api
37176329f717adf8ad8749be4ed50f7c875b0cf5
[ "MIT" ]
null
null
null
from uuid import uuid4 from sqlalchemy import Boolean, Column, DateTime, Integer, String from sqlalchemy.dialects.postgresql import UUID from sqlalchemy.orm import relationship from .database import Base class Customers(Base): __tablename__ = "customers" id = Column(UUID(as_uuid=True), primary_key=True, de...
27.655172
68
0.704489
763
0.475686
0
0
0
0
0
0
642
0.400249
a0cc745e3a8e279006b132f30ea4111764df2ce1
32,293
py
Python
src/ID_meshes.py
faycalki/tainted-paths
81cecf6c1fba903ec3b8043e22652d222892609d
[ "MIT" ]
4
2019-09-26T21:34:32.000Z
2021-11-18T19:31:15.000Z
src/ID_meshes.py
faycalki/tainted-paths
81cecf6c1fba903ec3b8043e22652d222892609d
[ "MIT" ]
null
null
null
src/ID_meshes.py
faycalki/tainted-paths
81cecf6c1fba903ec3b8043e22652d222892609d
[ "MIT" ]
null
null
null
mesh_pic_bandits = 0 mesh_pic_mb_warrior_1 = 1 mesh_pic_messenger = 2 mesh_pic_prisoner_man = 3 mesh_pic_prisoner_fem = 4 mesh_pic_prisoner_wilderness = 5 mesh_pic_siege_sighted = 6 mesh_pic_siege_sighted_fem = 7 mesh_pic_camp = 8 mesh_pic_payment = 9 mesh_pic_escape_1 = 10 mesh_pic_escape_1_fem = 11 mesh_pic_victory =...
25.528063
58
0.843619
0
0
0
0
0
0
0
0
0
0
a0cc84ea1f11da3af87cb6aff03136b234f94184
30,936
py
Python
q2_longitudinal/_vega.py
thermokarst/q2-longitudinal
1967617214417b7097ce96e4a7dfdfbb5fd17faf
[ "BSD-3-Clause" ]
null
null
null
q2_longitudinal/_vega.py
thermokarst/q2-longitudinal
1967617214417b7097ce96e4a7dfdfbb5fd17faf
[ "BSD-3-Clause" ]
null
null
null
q2_longitudinal/_vega.py
thermokarst/q2-longitudinal
1967617214417b7097ce96e4a7dfdfbb5fd17faf
[ "BSD-3-Clause" ]
null
null
null
# ---------------------------------------------------------------------------- # Copyright (c) 2017-2018, QIIME 2 development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
33.699346
79
0.230185
0
0
0
0
0
0
0
0
8,414
0.271981
a0ce075406a832ed84007060dd79bad299dae4e6
11,696
py
Python
state_workflow_sdk/api/state_workflow/state_workflow_client.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
5
2019-07-31T04:11:05.000Z
2021-01-07T03:23:20.000Z
state_workflow_sdk/api/state_workflow/state_workflow_client.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
state_workflow_sdk/api/state_workflow/state_workflow_client.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import sys import state_workflow_sdk.api.state_workflow.callback_pb2 import state_workflow_sdk.api.state_workflow.createStateWorkflow_pb2 import state_workflow_sdk.model.state_workflow.stateWorkflow_pb2 import state_workflow_sdk.api.state_workflow.deleteStateWorkflow_pb2 import g...
41.183099
254
0.658516
11,655
0.946945
0
0
0
0
0
0
4,782
0.388528
a0ceec8ec85ef44ddb9d9cd56199a36790b171fc
4,171
py
Python
tests/contour_classifiers/test_randomforest.py
yamathcy/motif
3f43568e59f0879fbab5ef278e9e687b7cac3dd6
[ "MIT" ]
21
2016-08-22T22:00:49.000Z
2020-03-29T04:15:19.000Z
tests/contour_classifiers/test_randomforest.py
yamathcy/motif
3f43568e59f0879fbab5ef278e9e687b7cac3dd6
[ "MIT" ]
22
2016-08-28T01:07:08.000Z
2018-02-07T14:38:26.000Z
tests/contour_classifiers/test_randomforest.py
yamathcy/motif
3f43568e59f0879fbab5ef278e9e687b7cac3dd6
[ "MIT" ]
3
2017-01-12T10:04:27.000Z
2022-01-06T13:25:48.000Z
"""Test for motif.classify.mvgaussian """ from __future__ import print_function import unittest import numpy as np from motif.contour_classifiers import random_forest def array_equal(array1, array2): return np.all(np.isclose(array1, array2)) class TestRandomForest(unittest.TestCase): def setUp(self): ...
32.585938
76
0.529369
3,919
0.939583
0
0
0
0
0
0
294
0.070487
a0cf8257e1729da63a070f7fb21ed2b3279418e3
7,365
py
Python
awsenv/profile.py
KensoDev/awsenv
4bf759106d2e0d79221d0ca9188ed7686e119b2c
[ "Apache-2.0" ]
6
2016-09-11T08:39:50.000Z
2018-10-22T13:41:34.000Z
awsenv/profile.py
KensoDev/awsenv
4bf759106d2e0d79221d0ca9188ed7686e119b2c
[ "Apache-2.0" ]
1
2017-01-09T23:58:20.000Z
2017-01-09T23:58:20.000Z
awsenv/profile.py
KensoDev/awsenv
4bf759106d2e0d79221d0ca9188ed7686e119b2c
[ "Apache-2.0" ]
5
2017-01-09T23:26:12.000Z
2021-09-08T09:35:59.000Z
""" Profile-aware session wrapper. """ from os import environ from botocore.exceptions import ProfileNotFound from botocore.session import Session from awsenv.cache import CachedSession def get_default_profile_name(): """ Get the default profile name from the environment. """ return environ.get("AWS...
31.075949
91
0.60611
7,009
0.951663
0
0
2,657
0.36076
0
0
2,003
0.271962
a0d0d288568d1ad31c787944a756b68fdcfc394c
13,358
py
Python
cail/algo/twoiwil.py
Stanford-ILIAD/Confidence-Aware-Imitation-Learning
1d8af0e4ab87a025885133a2384d5a937329b2f5
[ "MIT" ]
16
2021-10-30T15:19:37.000Z
2022-03-23T12:57:49.000Z
cail/algo/twoiwil.py
syzhang092218-source/Confidence-Aware-Imitation-Learning
1d8af0e4ab87a025885133a2384d5a937329b2f5
[ "MIT" ]
null
null
null
cail/algo/twoiwil.py
syzhang092218-source/Confidence-Aware-Imitation-Learning
1d8af0e4ab87a025885133a2384d5a937329b2f5
[ "MIT" ]
2
2021-11-29T11:28:16.000Z
2022-03-06T14:12:47.000Z
import torch import os import torch.nn.functional as F import numpy as np import copy from torch import nn from torch.optim import Adam from torch.autograd import Variable from torch.utils.tensorboard import SummaryWriter from tqdm import tqdm from typing import Tuple from .ppo import PPO, PPOExpert from ...
34.786458
105
0.586166
12,914
0.966617
0
0
0
0
0
0
4,756
0.355988
a0d0f0826bf05af84c68e2d12e3788dc07ebfcd6
7,327
py
Python
data/generation_scripts/MantaFlow/scripts3D/compactifyData.py
tum-pbs/VOLSIM
795a31c813bf072eb88289126d7abd9fba8b0e54
[ "MIT" ]
7
2022-01-28T09:40:15.000Z
2022-03-07T01:52:00.000Z
data/generation_scripts/MantaFlow/scripts3D/compactifyData.py
tum-pbs/VOLSIM
795a31c813bf072eb88289126d7abd9fba8b0e54
[ "MIT" ]
null
null
null
data/generation_scripts/MantaFlow/scripts3D/compactifyData.py
tum-pbs/VOLSIM
795a31c813bf072eb88289126d7abd9fba8b0e54
[ "MIT" ]
1
2022-03-14T22:08:47.000Z
2022-03-14T22:08:47.000Z
import numpy as np import os, shutil import imageio baseDir = "data/train_verbose" outDir = "data/train" #baseDir = "data/test_verbose" #outDir = "data/test" outDirVidCopy = "data/videos" combineVidsAll = {"smoke" : ["densMean", "densSlice", "velMean", "velSlice", "presMean", "presSlice"], "liquid": ["...
43.613095
153
0.512079
0
0
0
0
0
0
0
0
1,519
0.207315
a0d159678318f4de46108d8e3c19f4a355d8744f
14,238
py
Python
qiskit/aqua/operators/base_operator.py
Sahar2/qiskit-aqua
a228fbe6b9613cff43e47796a7e4843deba2b051
[ "Apache-2.0" ]
null
null
null
qiskit/aqua/operators/base_operator.py
Sahar2/qiskit-aqua
a228fbe6b9613cff43e47796a7e4843deba2b051
[ "Apache-2.0" ]
null
null
null
qiskit/aqua/operators/base_operator.py
Sahar2/qiskit-aqua
a228fbe6b9613cff43e47796a7e4843deba2b051
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modif...
44.633229
122
0.666877
13,645
0.958351
0
0
5,336
0.374772
0
0
5,017
0.352367
a0d37d7e9574c755f53a5c193de3f30cb81ee61a
4,447
py
Python
DataAnalysis/utils.py
Timlo512/AnomalyStockDetection
29f9aaef14f1d9823980d8022cdce1f7f6310813
[ "MIT" ]
2
2020-12-19T05:24:29.000Z
2021-05-15T19:35:40.000Z
DataAnalysis/utils.py
Timlo512/AnomalyStockDetection
29f9aaef14f1d9823980d8022cdce1f7f6310813
[ "MIT" ]
null
null
null
DataAnalysis/utils.py
Timlo512/AnomalyStockDetection
29f9aaef14f1d9823980d8022cdce1f7f6310813
[ "MIT" ]
5
2020-11-21T02:25:13.000Z
2022-01-31T12:46:02.000Z
import pandas as pd import numpy as np from sklearn.metrics import confusion_matrix import re def convert_data_sparse_matrix(df, row_label = 'stock_code', col_label = 'name_of_ccass_participant', value_label = 'shareholding'): """ Pivot table """ try: # Prepare zero matrix row_dim =...
32.698529
132
0.614796
0
0
0
0
0
0
0
0
1,263
0.284012
a0d5155e320c1b2b6704a06d42d9b58088cb485b
1,429
py
Python
scripts/prepare_upload_files.py
MaayanLab/scAVI
7f3f83657d749520243535581db1080075e48aa5
[ "Apache-2.0" ]
3
2020-01-23T08:48:33.000Z
2021-07-21T02:42:28.000Z
scripts/prepare_upload_files.py
MaayanLab/scAVI
7f3f83657d749520243535581db1080075e48aa5
[ "Apache-2.0" ]
21
2019-10-25T15:38:37.000Z
2022-01-27T16:04:04.000Z
scripts/prepare_upload_files.py
MaayanLab/scAVI
7f3f83657d749520243535581db1080075e48aa5
[ "Apache-2.0" ]
1
2019-10-24T18:15:26.000Z
2019-10-24T18:15:26.000Z
''' Prepare some files to test the upload functionality. ''' import sys sys.path.append('../') from database import * from pymongo import MongoClient mongo = MongoClient(MONGOURI) db = mongo['SCV'] coll = db['dataset'] from gene_expression import * expr_df, meta_doc = load_read_counts_and_meta(organism='mouse', gse...
30.404255
105
0.751575
0
0
0
0
0
0
0
0
611
0.427572
a0d646ba03a4465fe2514a5e2b0f73386fb45c4c
2,321
py
Python
app/api/V1/views/products.py
Paulvitalis200/Store-Manager-API
d61e91bff7fc242da2a93d1caf1012465c7c904a
[ "MIT" ]
null
null
null
app/api/V1/views/products.py
Paulvitalis200/Store-Manager-API
d61e91bff7fc242da2a93d1caf1012465c7c904a
[ "MIT" ]
4
2018-10-21T18:28:03.000Z
2018-10-24T12:48:24.000Z
app/api/V1/views/products.py
Paulstar200/Store-Manager-API
d61e91bff7fc242da2a93d1caf1012465c7c904a
[ "MIT" ]
null
null
null
from flask import Flask, request from flask_restful import Resource, reqparse from flask_jwt_extended import create_access_token, jwt_required from app.api.V1.models import Product, products class PostProduct(Resource): parser = reqparse.RequestParser() parser.add_argument('name', required=True, help='Produc...
35.166667
111
0.616545
2,088
0.899612
0
0
1,577
0.679449
0
0
677
0.291685
a0d68497a4530b9b9bb8366ff9da7d608dd9a751
1,155
py
Python
51-100/p87.py
YiWeiShen/Project-Euler-Hints
a79cacab075dd98d393516f083aaa7ffc6115a06
[ "MIT" ]
1
2019-02-25T13:00:31.000Z
2019-02-25T13:00:31.000Z
51-100/p87.py
YiWeiShen/Project-Euler-Hints
a79cacab075dd98d393516f083aaa7ffc6115a06
[ "MIT" ]
null
null
null
51-100/p87.py
YiWeiShen/Project-Euler-Hints
a79cacab075dd98d393516f083aaa7ffc6115a06
[ "MIT" ]
null
null
null
import time from multiprocessing.pool import Pool def is_prime(num): for i in range(2, int(num**0.5+1)): if num % i == 0: return None return num if __name__ == '__main__': t = time.time() p1 = Pool(processes=30) p2 = Pool(processes=30) p3 = Pool(processes=30) num1 = r...
26.860465
65
0.587013
0
0
0
0
0
0
0
0
17
0.014719
a0d6b47a07ed18120ebb9b10352d658a22a11ecb
267
py
Python
Clean Word/index.py
Sudani-Coder/python
9c35f04a0521789ba91b7058695139ed074f7796
[ "MIT" ]
null
null
null
Clean Word/index.py
Sudani-Coder/python
9c35f04a0521789ba91b7058695139ed074f7796
[ "MIT" ]
null
null
null
Clean Word/index.py
Sudani-Coder/python
9c35f04a0521789ba91b7058695139ed074f7796
[ "MIT" ]
null
null
null
# recursion function (Clean Word) def CleanWord(word): if len(word) == 1: return word elif word[0] == word[1]: return CleanWord(word[1:]) else: return word[0] + CleanWord(word[1:]) print(CleanWord("wwwooooorrrrllddd"))
19.071429
44
0.58427
0
0
0
0
0
0
0
0
52
0.194757
a0d7aa3f87b3b51ae56654591cba7faff73f9f8f
665
py
Python
commands/rotatecamera.py
1757WestwoodRobotics/mentorbot
3db344f3b35c820ada4e1aef3eca9b1fc4c5b85a
[ "MIT" ]
2
2021-11-13T20:18:44.000Z
2021-11-13T20:27:04.000Z
commands/rotatecamera.py
1757WestwoodRobotics/mentorbot
3db344f3b35c820ada4e1aef3eca9b1fc4c5b85a
[ "MIT" ]
null
null
null
commands/rotatecamera.py
1757WestwoodRobotics/mentorbot
3db344f3b35c820ada4e1aef3eca9b1fc4c5b85a
[ "MIT" ]
1
2021-11-14T01:38:53.000Z
2021-11-14T01:38:53.000Z
import typing from commands2 import CommandBase from subsystems.cameracontroller import CameraSubsystem class RotateCamera(CommandBase): def __init__(self, camera: CameraSubsystem, leftRight: typing.Callable[[], float], upDown: typing.Callable[[], float]) -> None: Comman...
28.913043
70
0.667669
557
0.837594
0
0
0
0
0
0
0
0
a0d85ead79155e87bca877ab2df552ddd4292930
8,188
py
Python
instapp/views.py
uwamahororachel/instagram
d5b7127e62047287dfadec15743676df48f278a9
[ "MIT" ]
null
null
null
instapp/views.py
uwamahororachel/instagram
d5b7127e62047287dfadec15743676df48f278a9
[ "MIT" ]
null
null
null
instapp/views.py
uwamahororachel/instagram
d5b7127e62047287dfadec15743676df48f278a9
[ "MIT" ]
null
null
null
from django.shortcuts import render,redirect from django.http import HttpResponse, Http404,HttpResponseRedirect import datetime as dt from .models import Post,Comment,Follow,Profile from django.contrib.auth.decorators import login_required from .forms import NewPostForm, NewCommentForm, AddProfileForm from django.contr...
36.882883
151
0.626282
0
0
0
0
7,171
0.875794
0
0
1,083
0.132267
a0d898d83393f9e2a6f4299d21f948ceddccd556
238
py
Python
2008/wxpytris/wxpytris.py
mikiec84/code-for-blog
79b2264f9a808eb14f624cb3c5ae7624038c043a
[ "Unlicense" ]
1,199
2015-01-06T14:09:37.000Z
2022-03-29T19:39:51.000Z
2008/wxpytris/wxpytris.py
mikiec84/code-for-blog
79b2264f9a808eb14f624cb3c5ae7624038c043a
[ "Unlicense" ]
25
2016-07-29T15:44:01.000Z
2021-11-19T16:21:01.000Z
2008/wxpytris/wxpytris.py
mikiec84/code-for-blog
79b2264f9a808eb14f624cb3c5ae7624038c043a
[ "Unlicense" ]
912
2015-01-04T00:39:50.000Z
2022-03-29T06:50:22.000Z
import sys import wx sys.path.insert(0, 'lib.zip') from lib.TetrisGame import TetrisGame if __name__ == '__main__': app = wx.PySimpleApp() frame = TetrisGame(None) frame.Show(True) app.MainLoop()
11.9
38
0.617647
0
0
0
0
0
0
0
0
19
0.079832
a0d89d58810bc392058c43540e5719fda8ed9934
6,822
py
Python
cfg.py
alexandonian/relational-set-abstraction
8af6a6a58883ce59c7b29e4161ff970e3bded642
[ "MIT" ]
9
2020-09-17T23:09:42.000Z
2021-12-29T09:56:24.000Z
cfg.py
alexandonian/relational-set-abstraction
8af6a6a58883ce59c7b29e4161ff970e3bded642
[ "MIT" ]
null
null
null
cfg.py
alexandonian/relational-set-abstraction
8af6a6a58883ce59c7b29e4161ff970e3bded642
[ "MIT" ]
1
2021-01-16T07:19:42.000Z
2021-01-16T07:19:42.000Z
import argparse import torch import logger import models import utils NUM_NODES = { 'moments': 391, 'multimoments': 391, 'kinetics': 608, } CRITERIONS = { 'CE': {'func': torch.nn.CrossEntropyLoss}, 'MSE': {'func': torch.nn.MSELoss}, 'BCE': {'func': torch.nn.BCEWithLogitsLoss}, } OPTIMIZERS =...
32.956522
86
0.650836
0
0
0
0
0
0
0
0
2,540
0.372325
a0dac9d01fbc63e4052a6ea761aeaa779debac1b
2,021
py
Python
Spider/SpiderLab/lab3/lab3/spiders/spider_msg.py
JimouChen/python-application
b7b16506a17e2c304d1c5fabd6385e96be211c56
[ "Apache-2.0" ]
1
2020-08-09T12:47:27.000Z
2020-08-09T12:47:27.000Z
Spider/SpiderLab/lab3/lab3/spiders/spider_msg.py
JimouChen/Python_Application
b7b16506a17e2c304d1c5fabd6385e96be211c56
[ "Apache-2.0" ]
null
null
null
Spider/SpiderLab/lab3/lab3/spiders/spider_msg.py
JimouChen/Python_Application
b7b16506a17e2c304d1c5fabd6385e96be211c56
[ "Apache-2.0" ]
null
null
null
import scrapy from bs4 import BeautifulSoup from lab3.items import Lab3Item class QuoteSpider(scrapy.Spider): name = 'quotes' start_urls = ['http://quotes.toscrape.com/page/1/'] page_num = 1 # 对爬取到的信息进行解析 def parse(self, response, **kwargs): soup = BeautifulSoup(response.body, 'html.parse...
40.42
102
0.568036
2,058
0.963032
1,880
0.879738
0
0
0
0
705
0.329902
a0db51a733ae0c8c54da89e34dba10cbd38f7150
1,236
py
Python
Aditya/Parametric_Models/WeiExpLog.py
cipheraxat/Survival-Analysis
fb7ecbe4a61fc72785a4327c86e0f81a58c5b3df
[ "Apache-2.0" ]
7
2020-06-14T20:43:55.000Z
2020-06-23T06:07:08.000Z
Aditya/Parametric_Models/WeiExpLog.py
Abhijit2505/Survival-Analysis
94c0c386aacfe03a9f2f018511236292f36c4ed9
[ "Apache-2.0" ]
14
2020-06-20T06:28:50.000Z
2020-09-08T15:54:29.000Z
Aditya/Parametric_Models/WeiExpLog.py
Abhijit2505/Survival-Analysis
94c0c386aacfe03a9f2f018511236292f36c4ed9
[ "Apache-2.0" ]
9
2020-06-19T03:50:21.000Z
2021-05-10T18:19:26.000Z
import matplotlib.pyplot as plt from lifelines import (WeibullFitter, ExponentialFitter, LogNormalFitter, LogLogisticFitter) import pandas as pd data = pd.read_csv('Dataset/telco_customer.csv') data['tenure'] = pd.to_numeric(data['tenure']) data = data[data['tenure'] > 0] # Replace yes and No ...
34.333333
97
0.711974
0
0
0
0
0
0
0
0
410
0.331715
a0de95c4112c071280835a86de6b15a92fec2e83
2,260
py
Python
spoteno/steps/numbers.py
Z-80/spoteno
5d2ae7da437cfd8f9cf351b9602269c115dcd46f
[ "MIT" ]
2
2020-01-16T10:23:05.000Z
2021-11-17T15:44:29.000Z
spoteno/steps/numbers.py
Z-80/spoteno
5d2ae7da437cfd8f9cf351b9602269c115dcd46f
[ "MIT" ]
null
null
null
spoteno/steps/numbers.py
Z-80/spoteno
5d2ae7da437cfd8f9cf351b9602269c115dcd46f
[ "MIT" ]
2
2021-03-25T12:06:36.000Z
2021-11-17T15:44:30.000Z
import re import num2words INT_PATTERN = re.compile(r'^-?[0-9]+$') FLOAT_PATTERN = re.compile(r'^-?[0-9]+[,\.][0-9]+$') ORDINAL_PATTERN = re.compile(r'^[0-9]+\.?$') NUM_PATTERN = re.compile(r'^-?[0-9]+([,\.][0-9]+$)?') class NumberToWords: def __init__(self, lang_code): self.lang_code = lang_code ...
23.541667
61
0.511504
2,029
0.897788
0
0
0
0
0
0
275
0.121681
a0e1d41f3732cef98c2895b100facec425069d9c
4,252
py
Python
src/django_website/django_website/tests/test_views.py
jdheinz/project-ordo_ab_chao
4063f93b297bab43cff6ca64fa5ba103f0c75158
[ "MIT" ]
2
2019-09-23T18:42:32.000Z
2019-09-27T00:33:38.000Z
src/django_website/django_website/tests/test_views.py
jdheinz/project-ordo_ab_chao
4063f93b297bab43cff6ca64fa5ba103f0c75158
[ "MIT" ]
6
2021-03-19T03:25:33.000Z
2022-02-10T08:48:14.000Z
src/django_website/django_website/tests/test_views.py
jdheinz/project-ordo_ab_chao
4063f93b297bab43cff6ca64fa5ba103f0c75158
[ "MIT" ]
6
2019-09-23T18:53:41.000Z
2020-02-06T00:20:06.000Z
from django.test import TransactionTestCase from django.test import TestCase from django.urls import reverse from home_page.models import Search from ebaysdk.finding import Connection as finding class PageTest(TransactionTestCase): def test_home_page_status_code_1(self): response = self.client.get('/'...
38.654545
107
0.670508
3,972
0.934149
0
0
0
0
0
0
479
0.112653
a0e28476be0fa65ebedd554ed275a8386f751e73
869
py
Python
tests/string/generate_string.py
om719/Bloom-Filter-CPP
8093448b3ea357831b6de25aee9e0e7271b762fa
[ "MIT" ]
3
2021-05-31T18:41:34.000Z
2021-06-01T04:44:15.000Z
tests/string/generate_string.py
om719/Bloom-Filter-CPP
8093448b3ea357831b6de25aee9e0e7271b762fa
[ "MIT" ]
null
null
null
tests/string/generate_string.py
om719/Bloom-Filter-CPP
8093448b3ea357831b6de25aee9e0e7271b762fa
[ "MIT" ]
2
2021-05-31T18:41:48.000Z
2021-05-31T18:47:14.000Z
from key_generator.key_generator import generate all_sizes_required = [(100, '100'), (500, '500'), (1000, '1K'), (5000, '5K'), (10000, '10K'), (50000, '50K'), (100000, '100K'), (500000, '500K')] for file_size in all_sizes_required: OUTPUT_PATH = "./string_test_" + file_size[1] + ".txt" STRING_COUNT = file_size[0] ...
22.868421
145
0.611047
0
0
0
0
0
0
0
0
118
0.135788
a0e444f5e01631d54753ab517309246502cc9089
4,950
py
Python
resources/portfolio_book.py
basgir/bibliotek
42456ced804a2c9570227b393de662847283c76f
[ "MIT" ]
null
null
null
resources/portfolio_book.py
basgir/bibliotek
42456ced804a2c9570227b393de662847283c76f
[ "MIT" ]
null
null
null
resources/portfolio_book.py
basgir/bibliotek
42456ced804a2c9570227b393de662847283c76f
[ "MIT" ]
null
null
null
########################################### # Author : Bastien Girardet, Deborah De Wolff # Date : 13.05.2018 # Course : Applications in Object-oriented Programming and Databases # Teachers : Binswanger Johannes, Zürcher Ruben # Project : Bibliotek # Name : portfolio_book.py Portfolio_book Flask_restful res...
40.57377
149
0.625051
4,442
0.897192
0
0
0
0
0
0
2,676
0.540497
a0e4dae891748b8a01307ae7aac7bc7715d4cc4e
9,199
py
Python
examples/the-feeling-of-success/run_experiments.py
yujialuo/erdos
7a631b55895f1a473b0f4d38a0d6053851e65b5d
[ "Apache-2.0" ]
null
null
null
examples/the-feeling-of-success/run_experiments.py
yujialuo/erdos
7a631b55895f1a473b0f4d38a0d6053851e65b5d
[ "Apache-2.0" ]
null
null
null
examples/the-feeling-of-success/run_experiments.py
yujialuo/erdos
7a631b55895f1a473b0f4d38a0d6053851e65b5d
[ "Apache-2.0" ]
null
null
null
import logging from absl import app from sensor_msgs.msg import Image from insert_table_op import InsertTableOperator from insert_block_op import InsertBlockOperator from init_robot_op import InitRobotOperator from gel_sight_op import GelSightOperator from mock_loc_obj_op import MockLocateObjectOperator from goto_xyz_...
35.245211
79
0.655941
0
0
0
0
0
0
0
0
2,636
0.286553
a0e5feb7c20a84c78be8423f81add0bb2c5c4589
2,686
py
Python
junction/tickets/migrations/0001_initial.py
theSage21/junction
ac713edcf56c41eb3f066da776a0a5d24e55b46a
[ "MIT" ]
192
2015-01-12T06:21:24.000Z
2022-03-10T09:57:37.000Z
junction/tickets/migrations/0001_initial.py
theSage21/junction
ac713edcf56c41eb3f066da776a0a5d24e55b46a
[ "MIT" ]
621
2015-01-01T09:19:17.000Z
2021-05-28T09:27:35.000Z
junction/tickets/migrations/0001_initial.py
theSage21/junction
ac713edcf56c41eb3f066da776a0a5d24e55b46a
[ "MIT" ]
207
2015-01-05T16:39:06.000Z
2022-02-15T13:18:15.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import jsonfield.fields from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ ...
35.813333
87
0.44341
2,520
0.938198
0
0
0
0
0
0
280
0.104244
a0e63766143621d523ba6066faa521d14ec9c390
1,300
py
Python
src/bin/calc_stats.py
sw005320/PytorchWaveNetVocoder
b92d7af7d5f2794291e0d462694c0719f75ca469
[ "Apache-2.0" ]
1
2021-01-18T06:22:30.000Z
2021-01-18T06:22:30.000Z
src/bin/calc_stats.py
sw005320/PytorchWaveNetVocoder
b92d7af7d5f2794291e0d462694c0719f75ca469
[ "Apache-2.0" ]
null
null
null
src/bin/calc_stats.py
sw005320/PytorchWaveNetVocoder
b92d7af7d5f2794291e0d462694c0719f75ca469
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2017 Tomoki Hayashi (Nagoya University) # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) from __future__ import print_function import argparse import numpy as np from sklearn.preprocessing import StandardScaler from utils import read_hdf5 from ut...
24.074074
60
0.665385
0
0
0
0
0
0
0
0
381
0.293077
a0e69b24115a09b931149b369f1062a566ff2b61
727
py
Python
python/p002.py
RUiNtheExtinct/project-euler
5c3e64c7dfcbf52d5213df88d2310550f4ee9ce1
[ "MIT" ]
null
null
null
python/p002.py
RUiNtheExtinct/project-euler
5c3e64c7dfcbf52d5213df88d2310550f4ee9ce1
[ "MIT" ]
null
null
null
python/p002.py
RUiNtheExtinct/project-euler
5c3e64c7dfcbf52d5213df88d2310550f4ee9ce1
[ "MIT" ]
null
null
null
# from decimal import Decimal import collections as coll import sys import math as mt # import random as rd # import bisect as bi import time sys.setrecursionlimit(1000000) # import numpy as np def uno(): return int(sys.stdin.readline().strip()) def dos(): return sys.stdin.readline().strip() def tres()...
14.836735
57
0.612105
0
0
0
0
0
0
0
0
170
0.233838
a0e7af4439dc68e76e3dc02f0c28bddc41d0fe5c
7,662
py
Python
robosuite/models/objects/xml_objects.py
ClaireLC/robosuite
b5c37f1110aefc02106ffd2aed0dfb106bc1bb33
[ "MIT" ]
1
2021-12-22T13:10:46.000Z
2021-12-22T13:10:46.000Z
robosuite/models/objects/xml_objects.py
wangcongrobot/robosuite-jr
738be7a3a83447e78763f6a082faafc8b479c95d
[ "MIT" ]
null
null
null
robosuite/models/objects/xml_objects.py
wangcongrobot/robosuite-jr
738be7a3a83447e78763f6a082faafc8b479c95d
[ "MIT" ]
1
2020-12-29T01:38:01.000Z
2020-12-29T01:38:01.000Z
from robosuite.models.objects import MujocoXMLObject from robosuite.utils.mjcf_utils import xml_path_completion, array_to_string, string_to_array class BottleObject(MujocoXMLObject): """ Bottle object """ def __init__(self): super().__init__(xml_path_completion("objects/bottle.xml")) class ...
26.512111
111
0.658053
7,467
0.97455
0
0
1,362
0.17776
0
0
2,891
0.377317
a0e9174ff5dee90055733752e0b8cd4f3423f64e
1,654
py
Python
SoftUni-Python-Programming-Course/Exam-Preparation/medicines_in_carton.py
vladislav-karamfilov/Python-Playground
ed83a693d37ff0c1565ece49d2a5d9ecd32c9aac
[ "MIT" ]
1
2019-04-07T23:10:27.000Z
2019-04-07T23:10:27.000Z
SoftUni-Python-Programming-Course/Exam-Preparation/medicines_in_carton.py
vladislav-karamfilov/Python-Playground
ed83a693d37ff0c1565ece49d2a5d9ecd32c9aac
[ "MIT" ]
null
null
null
SoftUni-Python-Programming-Course/Exam-Preparation/medicines_in_carton.py
vladislav-karamfilov/Python-Playground
ed83a693d37ff0c1565ece49d2a5d9ecd32c9aac
[ "MIT" ]
null
null
null
# Problem description: http://python3.softuni.bg/student/lecture/assignment/56b749af7e4f59b649b7e626/ class Medicine: def __init__(self, name, w, h, d): self.name = name self.w = w self.h = h self.d = d def can_be_put_in_carton(self, carton_w, carton_h, carton_d): sort...
29.535714
107
0.638452
447
0.270254
0
0
0
0
0
0
138
0.083434
a0e9473241e626ba8085d5563079fd7bc9d6eeb6
1,111
py
Python
var/app_template/views.py
michailbrynard/django-skeleton
772cd579cad1b8853ed6f1a2c14cbacac2ba41da
[ "MIT" ]
null
null
null
var/app_template/views.py
michailbrynard/django-skeleton
772cd579cad1b8853ed6f1a2c14cbacac2ba41da
[ "MIT" ]
null
null
null
var/app_template/views.py
michailbrynard/django-skeleton
772cd579cad1b8853ed6f1a2c14cbacac2ba41da
[ "MIT" ]
null
null
null
# LOGGING # ---------------------------------------------------------------------------------------------------------------------# import logging logger = logging.getLogger('django') # IMPORTS # ---------------------------------------------------------------------------------------------------------------------# # sho...
32.676471
120
0.407741
56
0.050405
0
0
245
0.220522
0
0
705
0.634563
a0e9bc2b96c3d8a0da5092d2ce1abf89a56a046d
858
py
Python
circuitpy_examples/week1/04_ramp_LED_brightness.py
WSU-Physics/phys150
043ebf8212b56a988ef8e41a4464400bec5a7dc1
[ "MIT" ]
null
null
null
circuitpy_examples/week1/04_ramp_LED_brightness.py
WSU-Physics/phys150
043ebf8212b56a988ef8e41a4464400bec5a7dc1
[ "MIT" ]
null
null
null
circuitpy_examples/week1/04_ramp_LED_brightness.py
WSU-Physics/phys150
043ebf8212b56a988ef8e41a4464400bec5a7dc1
[ "MIT" ]
null
null
null
# Adam Beardsley # starting from from adafruit example # https://learn.adafruit.com/welcome-to-circuitpython/creating-and-editing-code # import board import digitalio import time led = digitalio.DigitalInOut(board.LED) led.direction = digitalio.Direction.OUTPUT ramp_time = 3 # Time to ramp up, in seconds period = 0....
28.6
79
0.698135
0
0
0
0
0
0
0
0
409
0.47669
a0ead277852aac4f9b24d58dbb1630e69b9f9cac
1,099
py
Python
__main__.py
Makeeyaf/SiteChecker
969bdedd2d5df36220ff9fcc41e44cf1db0cca00
[ "MIT" ]
1
2021-01-06T01:45:41.000Z
2021-01-06T01:45:41.000Z
__main__.py
Makeeyaf/SiteChecker
969bdedd2d5df36220ff9fcc41e44cf1db0cca00
[ "MIT" ]
2
2021-01-03T13:25:39.000Z
2021-01-03T15:57:01.000Z
__main__.py
Makeeyaf/SiteChecker
969bdedd2d5df36220ff9fcc41e44cf1db0cca00
[ "MIT" ]
null
null
null
import argparse from site_checker import SiteChecker if __name__ == "__main__": parser = argparse.ArgumentParser(description="Check sites text.") parser.add_argument("config", type=str, nargs=1, help="Path to config json file.") parser.add_argument( "-a", dest="apiKey", type=str, ...
26.166667
86
0.586897
0
0
0
0
0
0
0
0
278
0.252957
a0eb34e703fb20df0982cbdc1702ff56c69d7bb6
1,563
py
Python
autop-listener/autop-listener.py
yuriel-v/ansible
f6e8fcb1edfbef550da2fe217cfd84941523f692
[ "MIT" ]
null
null
null
autop-listener/autop-listener.py
yuriel-v/ansible
f6e8fcb1edfbef550da2fe217cfd84941523f692
[ "MIT" ]
null
null
null
autop-listener/autop-listener.py
yuriel-v/ansible
f6e8fcb1edfbef550da2fe217cfd84941523f692
[ "MIT" ]
null
null
null
import os from pathlib import Path from datetime import datetime from json import dumps import flask as fsk from flask import request, jsonify, Response app = fsk.Flask(__name__) app.config['DEBUG'] = False homedir = os.getenv('HOME') @app.route('/provision', methods=['POST']) def auto_provision(): Path(f'{homed...
32.5625
136
0.658989
0
0
0
0
1,252
0.801024
0
0
616
0.394114
a0ed35cd2a2fcaf79d84a20f492250006d069eb3
3,586
py
Python
dz_se_comm.py
strebrah/Solaredge_Domoticz_Modbus
802bfde4f4b458ad0d30d3a9433315e12e3aa837
[ "MIT" ]
null
null
null
dz_se_comm.py
strebrah/Solaredge_Domoticz_Modbus
802bfde4f4b458ad0d30d3a9433315e12e3aa837
[ "MIT" ]
null
null
null
dz_se_comm.py
strebrah/Solaredge_Domoticz_Modbus
802bfde4f4b458ad0d30d3a9433315e12e3aa837
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 #################################################################################################### # Created by EH (NL) https://github.com/strebrah/Solaredge_Domoticz_Modbus # # Date: August 2020 ...
59.766667
118
0.499721
0
0
0
0
0
0
0
0
2,202
0.614055
a0edb39559fc23e931152b94ffea25ac01150fa0
10,632
py
Python
parse_mitchell.py
cfwelch/targeted_sentiment
1c1b063339cdead8f5860df784a0fa170bcdd3ef
[ "MIT" ]
1
2020-12-28T13:51:02.000Z
2020-12-28T13:51:02.000Z
parse_mitchell.py
cfwelch/targeted_sentiment
1c1b063339cdead8f5860df784a0fa170bcdd3ef
[ "MIT" ]
2
2018-04-23T02:13:44.000Z
2018-04-25T04:58:35.000Z
parse_mitchell.py
cfwelch/targeted_sentiment
1c1b063339cdead8f5860df784a0fa170bcdd3ef
[ "MIT" ]
null
null
null
import senti_lexis import datetime, string, numpy, spwrap, random time, sys, re from sklearn import svm from sklearn import cross_validation from sklearn.feature_extraction.text import CountVectorizer from sklearn.cross_validation import KFold from scipy.sparse import csr_matrix def main(): for i in range(1, 11): ...
28.891304
93
0.60506
0
0
0
0
0
0
0
0
3,360
0.316027
a0ee65cec9b822e4705a0e2c457a3bbab820bf6b
1,314
py
Python
cryptographyMachine/cryptographyMachine.py
anuranjan08/CryptoMachine
5a1d68adbe88708f21902d1d44a636c043f6ed28
[ "MIT" ]
null
null
null
cryptographyMachine/cryptographyMachine.py
anuranjan08/CryptoMachine
5a1d68adbe88708f21902d1d44a636c043f6ed28
[ "MIT" ]
null
null
null
cryptographyMachine/cryptographyMachine.py
anuranjan08/CryptoMachine
5a1d68adbe88708f21902d1d44a636c043f6ed28
[ "MIT" ]
null
null
null
def machine(): keys='abcdefghijklmnopqrstuvwxyz !' values=keys[-1]+keys[0:-1] """ In encrytpDict: In decryptDict: keys Values keys Values 'a' '!' '!' 'a' 'b' 'a' 'a' 'b' . . . . . . ....
27.375
89
0.547945
0
0
0
0
0
0
0
0
843
0.641553
a0ee8d887762a2061e866ff6d3e72e86639288e1
645
py
Python
tests/test_ioeeg_abf.py
wonambi-python/wonambi
4e2834cdd799576d1a231ecb48dfe4da1364fe3a
[ "BSD-3-Clause" ]
63
2017-12-30T08:11:17.000Z
2022-01-28T10:34:20.000Z
tests/test_ioeeg_abf.py
wonambi-python/wonambi
4e2834cdd799576d1a231ecb48dfe4da1364fe3a
[ "BSD-3-Clause" ]
23
2017-09-08T08:29:49.000Z
2022-03-17T08:19:13.000Z
tests/test_ioeeg_abf.py
wonambi-python/wonambi
4e2834cdd799576d1a231ecb48dfe4da1364fe3a
[ "BSD-3-Clause" ]
12
2017-09-18T12:48:36.000Z
2021-09-22T07:16:07.000Z
from numpy import isnan from wonambi import Dataset from .paths import axon_abf_file d = Dataset(axon_abf_file) def test_abf_read(): assert len(d.header['chan_name']) == 1 assert d.header['start_time'].minute == 47 data = d.read_data(begtime=1, endtime=2) assert data.data[0][0, 0] == 2.197265592...
21.5
59
0.662016
0
0
0
0
0
0
0
0
34
0.052713
a0f1fbf8cfec77c2b1ef56f17fd04592b977c305
9,115
py
Python
tests/Preprocessing_Test.py
Maxence-Labesse/MLKit
7f8d92b5d3e025dc3719c3bbaf1f2e55afda5107
[ "MIT" ]
1
2022-01-11T14:13:22.000Z
2022-01-11T14:13:22.000Z
tests/Preprocessing_Test.py
Maxence-Labesse/MLKit
7f8d92b5d3e025dc3719c3bbaf1f2e55afda5107
[ "MIT" ]
null
null
null
tests/Preprocessing_Test.py
Maxence-Labesse/MLKit
7f8d92b5d3e025dc3719c3bbaf1f2e55afda5107
[ "MIT" ]
1
2020-07-10T09:51:22.000Z
2020-07-10T09:51:22.000Z
from AutoMxL.Preprocessing.Categorical import * from AutoMxL.Preprocessing.Date import * from AutoMxL.Preprocessing.Outliers import * from AutoMxL.Preprocessing.Missing_Values import * import unittest import pandas as pd import math # test config df = pd.read_csv('tests/df_test_bis.csv') class TestMissingValues(unit...
43.822115
120
0.622929
8,298
0.910368
0
0
0
0
0
0
2,510
0.27537
a0f259a7948c591dd236fbcc2a29325e01018267
218
py
Python
PythonTutor/session-4/conditionIfelse.py
krishnamanchikalapudi/examples.py
7a373d24df06b8882d07b850435b268a24317b1e
[ "MIT" ]
null
null
null
PythonTutor/session-4/conditionIfelse.py
krishnamanchikalapudi/examples.py
7a373d24df06b8882d07b850435b268a24317b1e
[ "MIT" ]
1
2020-02-14T13:24:01.000Z
2020-02-14T13:24:01.000Z
PythonTutor/session-4/conditionIfelse.py
krishnamanchikalapudi/examples.py
7a373d24df06b8882d07b850435b268a24317b1e
[ "MIT" ]
2
2020-02-14T13:21:20.000Z
2021-06-30T00:50:33.000Z
""" Session: 4 Topic: Conditional: IF ELSE statement """ x = 20 y = 100 if (x > y): print ('x > y is true') print ('new line 1') else: print('x > y is false') print('new line 2') print ('new line 3')
13.625
37
0.550459
0
0
0
0
0
0
0
0
123
0.56422
a0f3c7164fd5d0e03360ed4d29df99912a368e12
915
py
Python
day02/day02.py
pogross/adventofcode2021
33fc177d30e1104a6203e435f83594c4d3774cdb
[ "MIT" ]
null
null
null
day02/day02.py
pogross/adventofcode2021
33fc177d30e1104a6203e435f83594c4d3774cdb
[ "MIT" ]
null
null
null
day02/day02.py
pogross/adventofcode2021
33fc177d30e1104a6203e435f83594c4d3774cdb
[ "MIT" ]
null
null
null
def execute_command(command: str) -> (int): direction, magnitude = command.split(" ") horizontal, depth = 0, 0 if direction == "forward": horizontal += int(magnitude) elif direction == "up": depth -= int(magnitude) elif direction == "down": depth += int(magnitude) retur...
26.911765
68
0.636066
0
0
0
0
0
0
0
0
148
0.161749
a0f92a83ae88dda1724d8249cb3715aea8d6c4ad
2,073
py
Python
execute.py
r-kapoor/ranking-extractions
59ed7f23d120d1bc7f0ee2af48ffa61817fd1715
[ "MIT" ]
null
null
null
execute.py
r-kapoor/ranking-extractions
59ed7f23d120d1bc7f0ee2af48ffa61817fd1715
[ "MIT" ]
null
null
null
execute.py
r-kapoor/ranking-extractions
59ed7f23d120d1bc7f0ee2af48ffa61817fd1715
[ "MIT" ]
null
null
null
import codecs import json import rank import train_ranker #Files to be present in home dir TRAINING_FILE_CITIES = 'manual_7_cities.jl' TRAINING_FILE_NAMES = 'manual_50_names.jl' TRAINING_FILE_ETHNICITIES = 'manual_50_ethnicities.jl' ACTUAL_FILE_CITIES = 'manual_50_cities.jl' ACTUAL_FILE_NAMES = 'manual_50_names.jl' A...
29.614286
97
0.721177
0
0
0
0
0
0
0
0
675
0.325615
a0f9341f558e2700ed30e7586738a7942212308d
336
py
Python
Python-codes-CeV/32-Leap_year.py
engcristian/Python
726a53e9499fd5d0594572298e59e318f98e2d36
[ "MIT" ]
1
2021-02-22T03:53:23.000Z
2021-02-22T03:53:23.000Z
Python-codes-CeV/32-Leap_year.py
engcristian/Python
726a53e9499fd5d0594572298e59e318f98e2d36
[ "MIT" ]
null
null
null
Python-codes-CeV/32-Leap_year.py
engcristian/Python
726a53e9499fd5d0594572298e59e318f98e2d36
[ "MIT" ]
null
null
null
''' Calculat the leap year''' from datetime import date year = int(input('What year do you want to analyse? Type 0 for the current year.')) if year == 0: year = date.today().year if year%4 ==0 and year%100 != 0 or year%400 == 0: print(F"The year {year} it's a LEAP year.".) else: print(F"The year {year} isn'...
37.333333
84
0.645833
0
0
0
0
0
0
0
0
167
0.497024
a0f9bbfc405c03e8dff904c969ce60482f1a635c
567
py
Python
thesis/code/fairness/gen.py
fz1989/master-thesis
e47af8c90d8d18d87f906a7a4bcadb64669e70db
[ "MIT" ]
null
null
null
thesis/code/fairness/gen.py
fz1989/master-thesis
e47af8c90d8d18d87f906a7a4bcadb64669e70db
[ "MIT" ]
null
null
null
thesis/code/fairness/gen.py
fz1989/master-thesis
e47af8c90d8d18d87f906a7a4bcadb64669e70db
[ "MIT" ]
null
null
null
#!/usr/bin/env python #coding=utf-8 import numpy class Task(object): def __init__(self, cpu, mem): self.cpu = cpu self.mem = mem def __repr__(self): return ("%d,%d") % (self.cpu, self.mem) def get_task_list(): task_list = [] for i in range(0,30): cpu = numpy.random.r...
21
47
0.589065
173
0.305115
0
0
0
0
0
0
59
0.104056
a0fa30f527e6c86b6cb9dc5b7f38c0821721deb9
71
py
Python
tests/routes/__init__.py
Bachhofer/spottydata
e9334c2a32bb65018b57d83fc4522ae241427db7
[ "MIT" ]
null
null
null
tests/routes/__init__.py
Bachhofer/spottydata
e9334c2a32bb65018b57d83fc4522ae241427db7
[ "MIT" ]
null
null
null
tests/routes/__init__.py
Bachhofer/spottydata
e9334c2a32bb65018b57d83fc4522ae241427db7
[ "MIT" ]
null
null
null
# This is an empty python file to expose this directory to it's parent
35.5
70
0.774648
0
0
0
0
0
0
0
0
70
0.985915
a0fccc7e51abcecde4662d4c35aa618544e6087c
7,500
py
Python
Perceptual Hash -Asher/ex1/example_solution.py
kidist-amde/image-search-engine
467d022f7248a74822dd9ae938b5b86333ce417a
[ "MIT" ]
null
null
null
Perceptual Hash -Asher/ex1/example_solution.py
kidist-amde/image-search-engine
467d022f7248a74822dd9ae938b5b86333ce417a
[ "MIT" ]
null
null
null
Perceptual Hash -Asher/ex1/example_solution.py
kidist-amde/image-search-engine
467d022f7248a74822dd9ae938b5b86333ce417a
[ "MIT" ]
null
null
null
import os import cv2 from sklearn.cluster import KMeans, DBSCAN, MiniBatchKMeans from scipy import spatial from sklearn.preprocessing import StandardScaler import numpy as np from tqdm import tqdm import argparse parser = argparse.ArgumentParser(description='Challenge presentation example') parser.add_argument('--data...
34.246575
122
0.608133
3,471
0.4628
0
0
0
0
0
0
1,197
0.1596
a0fd132d4d35c39d83a7f211d5d4e4443ddf2030
1,399
py
Python
src/modeling/train_test.py
samsonq/Macroeconomic-Default-Analysis
1a155873f951b1584c33c2d91bd525b67f78136d
[ "MIT" ]
4
2020-06-12T22:20:48.000Z
2021-08-08T15:49:38.000Z
src/modeling/train_test.py
samsonq/Macroeconomic-Default-Analysis
1a155873f951b1584c33c2d91bd525b67f78136d
[ "MIT" ]
1
2020-04-15T07:11:43.000Z
2020-04-15T07:11:43.000Z
src/modeling/train_test.py
samsonq/Macroeconomic-Default-Analysis
1a155873f951b1584c33c2d91bd525b67f78136d
[ "MIT" ]
3
2020-09-18T02:27:58.000Z
2021-10-30T21:22:10.000Z
""" Prepare training, validation, and testing data after preprocessing of the large dataset. Used in training and evaluating models. """ import numpy as np import pandas as pd from sklearn.model_selection import train_test_split def feature_selection(data, features): """ Choose which features to use for trai...
35.871795
114
0.735525
0
0
0
0
0
0
0
0
793
0.566833
a0fd2af6803ffa9be2e8f4bfae48a6a7e68eb4ea
179,927
py
Python
cyberradiodriver/CyberRadioDriver/radio.py
CyberRadio/CyberRadioDriver
44e6fc0e805981981514e6edc18d11d5fa33e659
[ "MIT" ]
null
null
null
cyberradiodriver/CyberRadioDriver/radio.py
CyberRadio/CyberRadioDriver
44e6fc0e805981981514e6edc18d11d5fa33e659
[ "MIT" ]
null
null
null
cyberradiodriver/CyberRadioDriver/radio.py
CyberRadio/CyberRadioDriver
44e6fc0e805981981514e6edc18d11d5fa33e659
[ "MIT" ]
null
null
null
#!/usr/bin/env python ############################################################### # \package CyberRadioDriver.radio # # \brief Defines basic functionality for radio handler objects. # # \note This module defines basic behavior only. To customize # a radio handler class for a particular radio, derive a new # ...
43.884634
168
0.591156
175,738
0.976718
0
0
20,995
0.116686
0
0
53,714
0.298532
a0fde969f3e2acaa6481f6fe003e765cdca46b4c
1,686
py
Python
alpha_zero/NeuralNet.py
blekinge/alpha-zero-general
7cc33e9b2e40602549b59fe753956e69a56f51f1
[ "MIT" ]
null
null
null
alpha_zero/NeuralNet.py
blekinge/alpha-zero-general
7cc33e9b2e40602549b59fe753956e69a56f51f1
[ "MIT" ]
null
null
null
alpha_zero/NeuralNet.py
blekinge/alpha-zero-general
7cc33e9b2e40602549b59fe753956e69a56f51f1
[ "MIT" ]
null
null
null
from typing import List, Tuple import numpy as np from alpha_zero.Board import Board class NeuralNet(): """ This class specifies the base NeuralNet class. To define your own neural network, subclass this class and implement the functions below. The neural network does not consider the current player...
31.222222
102
0.6293
1,596
0.946619
0
0
0
0
0
0
1,186
0.70344
a0fef1eaf1459e3aa6754a55ca8204b402a0ab05
785
py
Python
server/app/forms.py
zhancongc/bugaboo
ac78e7e0274492273554b089122196b7869e8bfb
[ "Apache-2.0" ]
null
null
null
server/app/forms.py
zhancongc/bugaboo
ac78e7e0274492273554b089122196b7869e8bfb
[ "Apache-2.0" ]
null
null
null
server/app/forms.py
zhancongc/bugaboo
ac78e7e0274492273554b089122196b7869e8bfb
[ "Apache-2.0" ]
null
null
null
""" Project : bugaboo Filename : forms.py Author : zhancongc Description : 表单管理 """ from flask_wtf import FlaskForm from wtforms import StringField, BooleanField, TextAreaField, SelectField, FileField, IntegerField, PasswordField, SubmitField from wtforms.validators import DataRequired class GodLoginForm...
23.787879
126
0.718471
491
0.606922
0
0
0
0
0
0
214
0.264524
9d006b0d7e89fe26f4e43d422a80339277272355
3,836
py
Python
synthdid/variance.py
MasaAsami/pysynthdid
01afe33ae22f513c65f9cfdec56a4b21ca547c28
[ "Apache-2.0" ]
null
null
null
synthdid/variance.py
MasaAsami/pysynthdid
01afe33ae22f513c65f9cfdec56a4b21ca547c28
[ "Apache-2.0" ]
null
null
null
synthdid/variance.py
MasaAsami/pysynthdid
01afe33ae22f513c65f9cfdec56a4b21ca547c28
[ "Apache-2.0" ]
2
2022-03-11T03:13:36.000Z
2022-03-20T22:55:13.000Z
import pandas as pd import numpy as np from tqdm import tqdm class Variance(object): def estimate_variance(self, algo="placebo", replications=200): """ # algo - placebo ## The following algorithms are omitted because they are not practical. - bootstrap - jackknife ...
36.884615
88
0.516945
3,772
0.983316
0
0
0
0
0
0
335
0.087331
9d01bb83bee5f2c4612c59332de6ea7b9e34ac2f
681
py
Python
todo/views.py
arascch/Todo_list
a4c88abaa4e6c1e158135b4fce4bcfbf64cb86e2
[ "Apache-2.0" ]
1
2020-03-24T09:26:23.000Z
2020-03-24T09:26:23.000Z
todo/views.py
arascch/Todo_list
a4c88abaa4e6c1e158135b4fce4bcfbf64cb86e2
[ "Apache-2.0" ]
null
null
null
todo/views.py
arascch/Todo_list
a4c88abaa4e6c1e158135b4fce4bcfbf64cb86e2
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render from django.utils import timezone from todo.models import Todo from django.http import HttpResponseRedirect def home(request): todo_items = Todo.objects.all().order_by("-added_date") return render(request , 'todo/index.html' , {"todo_items":todo_items}) def add_todo(request)...
35.842105
82
0.737151
0
0
0
0
0
0
0
0
57
0.0837
9d02e73cfc6d5e0a0462f594bbcafd9199cb2c88
816
py
Python
Easy/Hangman/HangMan - Stage 6.py
michael-act/HyperSkill
ce16eb3b6f755f7f8f21a57ef2679fcb8a4bd55c
[ "MIT" ]
1
2020-11-17T18:09:30.000Z
2020-11-17T18:09:30.000Z
Easy/Hangman/HangMan - Stage 6.py
michael-act/HyperSkill
ce16eb3b6f755f7f8f21a57ef2679fcb8a4bd55c
[ "MIT" ]
null
null
null
Easy/Hangman/HangMan - Stage 6.py
michael-act/HyperSkill
ce16eb3b6f755f7f8f21a57ef2679fcb8a4bd55c
[ "MIT" ]
null
null
null
import random category = ['python', 'java', 'kotlin', 'javascript'] computer = random.choice(category) hidden = list(len(computer) * "-") print("H A N G M A N") counter = 8 while counter > 0: print() print("".join(hidden)) letter = input("Input a letter: ") if (letter in hidden) or (letter in hidden...
24
61
0.616422
0
0
0
0
0
0
0
0
177
0.216912
9d03157b2910202ba3c53d84197f7000003a404d
6,536
py
Python
sklcc/taskEdit.py
pyxuweitao/MSZ_YCL
23323c4660f44af0a45d6ab81cd496b81976f5a0
[ "Apache-2.0" ]
null
null
null
sklcc/taskEdit.py
pyxuweitao/MSZ_YCL
23323c4660f44af0a45d6ab81cd496b81976f5a0
[ "Apache-2.0" ]
null
null
null
sklcc/taskEdit.py
pyxuweitao/MSZ_YCL
23323c4660f44af0a45d6ab81cd496b81976f5a0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ 所有任务task相关功能函数 """ __author__ = "XuWeitao" import CommonUtilities import rawSql def getTasksList(UserID): """ 获取任务列表,包括任务流水号,创建时间,最近一次修改时间,货号,色号以及到料时间和创建人 :param UserID:创建人ID,如果为ALL则返回所有的任务列表 :return:{ "SerialNo":任务流水号, "CreateTime":任务创建时间, "LastModifiedTime":最近一次修改时间, "ProductNo"...
41.106918
140
0.671665
0
0
0
0
0
0
0
0
4,903
0.657768
9d064db24d2e119266bc78323c4a529982872160
744
py
Python
Leetcoding-Actions/my-weekly-DSA-challenge/2020-w44-p0200-Number-of-Islands.py
shoaibur/SWE
1e114a2750f2df5d6c50b48c8e439224894d65da
[ "MIT" ]
1
2020-11-14T18:28:13.000Z
2020-11-14T18:28:13.000Z
Leetcoding-Actions/my-weekly-DSA-challenge/2020-w44-p0200-Number-of-Islands.py
shoaibur/SWE
1e114a2750f2df5d6c50b48c8e439224894d65da
[ "MIT" ]
null
null
null
Leetcoding-Actions/my-weekly-DSA-challenge/2020-w44-p0200-Number-of-Islands.py
shoaibur/SWE
1e114a2750f2df5d6c50b48c8e439224894d65da
[ "MIT" ]
null
null
null
class Solution: def numIslands(self, grid: List[List[str]]) -> int: ''' T: O(mn) and S: O(1) ''' if not grid: return 0 nrow, ncol = len(grid), len(grid[0]) def exploreIsland(grid, i, j): if i < 0 or i > nrow - 1 or j < 0 or j > ncol-1 or grid[i][j...
32.347826
81
0.415323
743
0.998656
0
0
0
0
0
0
53
0.071237
9d07e918f729733a967e2d67e465e2cf7ce7d2a4
11,417
py
Python
tensor2tensor/models/revnet.py
ysglh/tensor2tensor
f55462a9928f3f8af0b1275a4fb40d13cae6cc79
[ "Apache-2.0" ]
null
null
null
tensor2tensor/models/revnet.py
ysglh/tensor2tensor
f55462a9928f3f8af0b1275a4fb40d13cae6cc79
[ "Apache-2.0" ]
null
null
null
tensor2tensor/models/revnet.py
ysglh/tensor2tensor
f55462a9928f3f8af0b1275a4fb40d13cae6cc79
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2017 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
38.441077
80
0.681177
120
0.010511
0
0
877
0.076815
0
0
6,530
0.571954
9d08e38fa29119640133acdff959362b1c00409d
4,166
py
Python
tests/unit/test_services.py
BlooAM/Online-shopping-app
aa68d258fe32bf5a792e534dddd9def7c25460e2
[ "MIT" ]
null
null
null
tests/unit/test_services.py
BlooAM/Online-shopping-app
aa68d258fe32bf5a792e534dddd9def7c25460e2
[ "MIT" ]
null
null
null
tests/unit/test_services.py
BlooAM/Online-shopping-app
aa68d258fe32bf5a792e534dddd9def7c25460e2
[ "MIT" ]
null
null
null
import pytest from datetime import date, timedelta from adapters import repository from domain.model import Batch, OrderLine, allocate, OutOfStock from domain import model from service_layer import handlers, unit_of_work class FakeSession: def __init__(self): self.committed = False def commit(self):...
32.046154
89
0.702112
683
0.163946
0
0
0
0
0
0
675
0.162026
9d08ebe64750ed4ee86af0207bca624b0391ff75
1,786
py
Python
DQMOffline/L1Trigger/python/L1TEGammaOffline_cfi.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
DQMOffline/L1Trigger/python/L1TEGammaOffline_cfi.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
DQMOffline/L1Trigger/python/L1TEGammaOffline_cfi.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
import FWCore.ParameterSet.Config as cms electronEfficiencyThresholds = [36, 68, 128, 176] electronEfficiencyBins = [] electronEfficiencyBins.extend(list(xrange(0, 120, 10))) electronEfficiencyBins.extend(list(xrange(120, 180, 20))) electronEfficiencyBins.extend(list(xrange(180, 300, 40))) electronEfficiencyBins.exte...
37.208333
75
0.783875
0
0
0
0
0
0
0
0
370
0.207167
9d092f6e945eea14883d51652329fcd4951dee46
18,548
py
Python
ion_networks/numba_functions.py
swillems/ion_networks
5304a92248ec007ac2253f246a3d44bdb58ae110
[ "MIT" ]
2
2020-10-28T16:11:56.000Z
2020-12-03T13:19:18.000Z
ion_networks/numba_functions.py
swillems/ion_networks
5304a92248ec007ac2253f246a3d44bdb58ae110
[ "MIT" ]
null
null
null
ion_networks/numba_functions.py
swillems/ion_networks
5304a92248ec007ac2253f246a3d44bdb58ae110
[ "MIT" ]
null
null
null
#!python # external import numpy as np import numba @numba.njit(nogil=True, cache=True) def longest_increasing_subsequence(sequence): # TODO:Docstring M = np.zeros(len(sequence) + 1, np.int64) P = np.zeros(len(sequence), np.int64) max_subsequence_length = 0 for current_index, current_element in e...
34.864662
82
0.630418
0
0
0
0
18,456
0.99504
0
0
389
0.020973
9d099c325b8e8eb13555bc61afea2a208b9050c9
241
py
Python
Programming Fundamentals/Dictionaries/bakery.py
antonarnaudov/SoftUniProjects
01cbdce2b350b57240045d1bc3e21d34f9d0351d
[ "MIT" ]
null
null
null
Programming Fundamentals/Dictionaries/bakery.py
antonarnaudov/SoftUniProjects
01cbdce2b350b57240045d1bc3e21d34f9d0351d
[ "MIT" ]
null
null
null
Programming Fundamentals/Dictionaries/bakery.py
antonarnaudov/SoftUniProjects
01cbdce2b350b57240045d1bc3e21d34f9d0351d
[ "MIT" ]
null
null
null
def result(elements): bakery = {} for i in range(0, len(elements), 2): key = elements[i] value = elements[i + 1] bakery[key] = int(value) return bakery tokens = input().split(' ') print(result(tokens))
18.538462
40
0.564315
0
0
0
0
0
0
0
0
3
0.012448
9d0ab807d87d356a4a4fb529654e22486400f676
1,525
py
Python
vtrace/const.py
rnui2k/vivisect
b7b00f2d03defef28b4b8c912e3a8016e956c5f7
[ "ECL-2.0", "Apache-2.0" ]
716
2015-01-01T14:41:11.000Z
2022-03-28T06:51:50.000Z
vtrace/const.py
rnui2k/vivisect
b7b00f2d03defef28b4b8c912e3a8016e956c5f7
[ "ECL-2.0", "Apache-2.0" ]
266
2015-01-01T15:07:27.000Z
2022-03-30T15:19:26.000Z
vtrace/const.py
rnui2k/vivisect
b7b00f2d03defef28b4b8c912e3a8016e956c5f7
[ "ECL-2.0", "Apache-2.0" ]
159
2015-01-01T16:19:44.000Z
2022-03-21T21:55:34.000Z
# Order must match format junk # NOTIFY_ALL is kinda special, if you registerNotifier # with it, you get ALL notifications. NOTIFY_ALL = 0 # Get all notifications NOTIFY_SIGNAL = 1 # Callback on signal/exception NOTIFY_BREAK = 2 # Callback on breakpoint / sigtrap NOTIFY_STEP = 3 # Callback...
33.152174
66
0.733115
0
0
0
0
0
0
0
0
869
0.569836
9d0d12599f8d63386d38681b6e12a10636886357
3,248
py
Python
src/ezdxf/groupby.py
jkjt/ezdxf
2acc5611b81476ea16b98063b9f55446a9182b81
[ "MIT" ]
515
2017-01-25T05:46:52.000Z
2022-03-29T09:52:27.000Z
src/ezdxf/groupby.py
jkjt/ezdxf
2acc5611b81476ea16b98063b9f55446a9182b81
[ "MIT" ]
417
2017-01-25T10:01:17.000Z
2022-03-29T09:22:04.000Z
src/ezdxf/groupby.py
jkjt/ezdxf
2acc5611b81476ea16b98063b9f55446a9182b81
[ "MIT" ]
149
2017-02-01T15:52:02.000Z
2022-03-17T10:33:38.000Z
# Purpose: Grouping entities by DXF attributes or a key function. # Copyright (c) 2017-2021, Manfred Moitzi # License: MIT License from typing import Iterable, Hashable, Dict, List, TYPE_CHECKING from ezdxf.lldxf.const import DXFValueError, DXFAttributeError if TYPE_CHECKING: from ezdxf.eztypes import DXFEntity, ...
35.692308
79
0.601293
0
0
0
0
0
0
0
0
2,292
0.705665
9d0e38af685d991cde1a6a41f4c243ad673af7b8
1,839
py
Python
tests/test_basic.py
nk412/companycase
5b93478a79293a4bc93112b805eff56c44756f18
[ "MIT" ]
7
2016-09-08T15:25:33.000Z
2022-02-01T13:21:40.000Z
tests/test_basic.py
nk412/companycase
5b93478a79293a4bc93112b805eff56c44756f18
[ "MIT" ]
1
2016-07-12T10:36:02.000Z
2016-07-12T10:36:02.000Z
tests/test_basic.py
nk412/companycase
5b93478a79293a4bc93112b805eff56c44756f18
[ "MIT" ]
2
2016-09-17T17:41:28.000Z
2020-02-29T22:58:09.000Z
# coding=utf-8 import unittest from companycase import CompanyCase class TestEnglishCCase(unittest.TestCase): @classmethod def setUpClass(cls): cls.ccase = CompanyCase() def test_simple(self): self.assertEqual(self.ccase.apply("foobar ltd"), "Foobar LTD") self.assertEqual(self.cca...
39.12766
113
0.659598
1,724
0.935431
0
0
71
0.038524
0
0
557
0.302225
9d0eed15b3c0630d157c26b0aac4e458a282e19f
8,527
py
Python
main_single.py
wang-chen/AirLoop
12fb442c911002427a51f00d43f747ef593bd186
[ "BSD-3-Clause" ]
39
2021-09-28T19:48:13.000Z
2022-03-17T06:44:19.000Z
main_single.py
wang-chen/AirLoop
12fb442c911002427a51f00d43f747ef593bd186
[ "BSD-3-Clause" ]
null
null
null
main_single.py
wang-chen/AirLoop
12fb442c911002427a51f00d43f747ef593bd186
[ "BSD-3-Clause" ]
3
2021-10-04T01:26:17.000Z
2022-02-12T04:48:50.000Z
#!/usr/bin/env python3 import os import tqdm import torch import random import numpy as np import torch.nn as nn import configargparse import torch.optim as optim from tensorboard import program from torch.utils.tensorboard import SummaryWriter import yaml from models import FeatureNet from datasets import get_datase...
45.844086
137
0.673273
0
0
0
0
345
0.04046
0
0
2,094
0.245573
9d0fc4d37e8008ce4ffedc8ff1748729bd11a8f1
271
py
Python
skilletlib/skillet/__init__.py
annabarone/skilletlib
d1298218a1a0be35eb9fac2ae79323df600d8900
[ "Apache-2.0" ]
6
2020-04-27T18:08:02.000Z
2022-01-14T13:27:19.000Z
skilletlib/skillet/__init__.py
annabarone/skilletlib
d1298218a1a0be35eb9fac2ae79323df600d8900
[ "Apache-2.0" ]
85
2019-10-28T19:13:55.000Z
2021-07-14T13:00:28.000Z
skilletlib/skillet/__init__.py
annabarone/skilletlib
d1298218a1a0be35eb9fac2ae79323df600d8900
[ "Apache-2.0" ]
7
2019-12-05T20:17:16.000Z
2021-12-09T01:16:58.000Z
# from .panos import PanosSkillet # from .docker import DockerSkillet # from .pan_validation import PanValidationSkillet # from .python3 import Python3Skillet # from .rest import RestSkillet # from .template import TemplateSkillet # from .workflow import WorkflowSkillet
33.875
50
0.819188
0
0
0
0
0
0
0
0
264
0.97417
9d10f233df729f37438c93bc6d49f9504b03d459
1,192
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/rss_proxy/views.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/rss_proxy/views.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/rss_proxy/views.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2019-01-02T14:38:50.000Z
2019-01-02T14:38:50.000Z
""" Views for the rss_proxy djangoapp. """ import requests from django.conf import settings from django.core.cache import cache from django.http import HttpResponse, HttpResponseNotFound from lms.djangoapps.rss_proxy.models import WhitelistedRssUrl CACHE_KEY_RSS = "rss_proxy.{url}" def proxy(request): """ ...
29.8
84
0.653523
0
0
0
0
0
0
0
0
293
0.245805
9d1115c99ef6af6ee80e12df2bf5eac7ff811ea7
149
py
Python
CorePythonProg/ch02/0206.py
mallius/CppPrimer
0285fabe5934492dfed0a9cf67ba5650982a5f76
[ "MIT" ]
null
null
null
CorePythonProg/ch02/0206.py
mallius/CppPrimer
0285fabe5934492dfed0a9cf67ba5650982a5f76
[ "MIT" ]
null
null
null
CorePythonProg/ch02/0206.py
mallius/CppPrimer
0285fabe5934492dfed0a9cf67ba5650982a5f76
[ "MIT" ]
1
2022-01-25T15:51:34.000Z
2022-01-25T15:51:34.000Z
#!/usr/bin/env python numTemp = raw_input('Enter a number: ') num = int(numTemp) if num > 0: print '>0' elif num ==0: print '0' else: print '<0'
13.545455
39
0.61745
0
0
0
0
0
0
0
0
50
0.33557
9d123f052b89aece17eb457b8ad9cafa6d71e501
314
py
Python
bootcamp/accounts/urls.py
elbakouchi/bootcamp
2c7a0cd2ddb7632acb3009f94d728792ddf9644f
[ "MIT" ]
null
null
null
bootcamp/accounts/urls.py
elbakouchi/bootcamp
2c7a0cd2ddb7632acb3009f94d728792ddf9644f
[ "MIT" ]
null
null
null
bootcamp/accounts/urls.py
elbakouchi/bootcamp
2c7a0cd2ddb7632acb3009f94d728792ddf9644f
[ "MIT" ]
null
null
null
from django.conf.urls import url from .views import * app_name = "accounts" urlpatterns = [ url(r"^signup/$", CustomSignupView.as_view(), name="custom_signup"), url(r"^destroy/$", AjaxLogoutView.as_view(), name="destroy"), url(r"^(?P<username>[\w.@+-]+)/$", ProfileView.as_view(), name="profile"), ]
28.545455
78
0.652866
0
0
0
0
0
0
0
0
97
0.308917
9d1277aded11ab70c99a610d14fb0758ed951638
8,195
py
Python
utils/mininet/mininet_builder.py
jstavr/SDN_Project
9fe5a65f46eadf15e1da43d9f8125b8c15161bbd
[ "Apache-2.0" ]
null
null
null
utils/mininet/mininet_builder.py
jstavr/SDN_Project
9fe5a65f46eadf15e1da43d9f8125b8c15161bbd
[ "Apache-2.0" ]
null
null
null
utils/mininet/mininet_builder.py
jstavr/SDN_Project
9fe5a65f46eadf15e1da43d9f8125b8c15161bbd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python Description: Load topology in Mininet Author: James Hongyi Zeng (hyzeng_at_stanford.edu) ''' from argparse import ArgumentParser from socket import gethostbyname from os import getuid from mininet.log import lg, info from mininet.cli import CLI from mininet.net import Mininet from ...
39.210526
150
0.598292
0
0
0
0
0
0
0
0
2,758
0.336547
9d1338f96592532b4f49b0f4d8c0180dee99ffe0
1,833
py
Python
tests/integration/test_translated_content.py
asmeurer/nikola
ea1c651bfed0fd6337f1d22cf8dd99899722912c
[ "MIT" ]
1,901
2015-01-02T02:49:51.000Z
2022-03-30T23:31:35.000Z
tests/integration/test_translated_content.py
asmeurer/nikola
ea1c651bfed0fd6337f1d22cf8dd99899722912c
[ "MIT" ]
1,755
2015-01-01T08:17:16.000Z
2022-03-24T18:02:22.000Z
tests/integration/test_translated_content.py
asmeurer/nikola
ea1c651bfed0fd6337f1d22cf8dd99899722912c
[ "MIT" ]
421
2015-01-02T18:06:37.000Z
2022-03-28T23:18:54.000Z
""" Test a site with translated content. Do not test titles as we remove the translation. """ import io import os import shutil import lxml.html import pytest import nikola.plugins.command.init from nikola import __main__ from .helper import cd from .test_empty_build import ( # NOQA test_archive_exists, t...
29.095238
88
0.681942
0
0
0
0
663
0.361702
0
0
383
0.208947
9d13de1d5fcb7bb17eb81bbe83f7d14929b0ec78
8,826
py
Python
src/train.py
weiyi1991/UA_Concurrent
11238c778c60095abf326800d6e6a13a643bf071
[ "MIT" ]
null
null
null
src/train.py
weiyi1991/UA_Concurrent
11238c778c60095abf326800d6e6a13a643bf071
[ "MIT" ]
1
2020-09-02T12:24:59.000Z
2020-09-02T12:24:59.000Z
src/train.py
weiyi1991/UA_Concurrent
11238c778c60095abf326800d6e6a13a643bf071
[ "MIT" ]
null
null
null
import argparse import os import torch import torch.nn.functional as F from model_ST import * import data import numpy as np import matplotlib.pyplot as plt from torch.utils.data import Dataset, DataLoader import sys from predict import evaluate_MA from tensorboardX import SummaryWriter # print model parameter def pri...
41.051163
140
0.643327
0
0
0
0
0
0
0
0
2,575
0.291752
9d192ebb1226024bcb7fe7faa5cd19ef549419f8
130
py
Python
illud/exceptions/quit_exception.py
AustinScola/illud
a6aca1de38bbe9d5a795aaa084bcbd6731767d18
[ "MIT" ]
1
2020-12-05T00:59:15.000Z
2020-12-05T00:59:15.000Z
illud/exceptions/quit_exception.py
AustinScola/illud
a6aca1de38bbe9d5a795aaa084bcbd6731767d18
[ "MIT" ]
112
2021-01-15T21:42:27.000Z
2021-04-17T19:11:21.000Z
illud/exceptions/quit_exception.py
AustinScola/illud
a6aca1de38bbe9d5a795aaa084bcbd6731767d18
[ "MIT" ]
null
null
null
"""Raised to quit.""" from illud.exception import IlludException class QuitException(IlludException): """Raised to quit."""
18.571429
42
0.723077
62
0.476923
0
0
0
0
0
0
42
0.323077