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
cbb1f2e05a98843b34d5e931f7f14a6abe1ca529
3,634
py
Python
bin/vigilance-server.py
EricMountain/weather_risk_metrics
f5962da2547efd7d6bfef6c73d4d5a5b5edbcae6
[ "MIT" ]
null
null
null
bin/vigilance-server.py
EricMountain/weather_risk_metrics
f5962da2547efd7d6bfef6c73d4d5a5b5edbcae6
[ "MIT" ]
null
null
null
bin/vigilance-server.py
EricMountain/weather_risk_metrics
f5962da2547efd7d6bfef6c73d4d5a5b5edbcae6
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from prometheus_client import start_http_server, Gauge import urllib.request import random from datetime import datetime import re import time test = False risks = ["vent violent", "pluie-inondation", "orages", "inondation", "neige-verglas", "canicule", "grand-froid", "avalanches", "vagues-submersi...
34.609524
171
0.625206
0
0
0
0
0
0
0
0
1,165
0.320407
cbb2c9ec40013427f4fe502f0cc420d2699e4241
2,058
py
Python
examples/tutorial/paging_exception_force.py
Wlgen/force-riscv
9f09b86c5a21ca00f8e5ade8e5186d65bc3e26f8
[ "Apache-2.0" ]
null
null
null
examples/tutorial/paging_exception_force.py
Wlgen/force-riscv
9f09b86c5a21ca00f8e5ade8e5186d65bc3e26f8
[ "Apache-2.0" ]
null
null
null
examples/tutorial/paging_exception_force.py
Wlgen/force-riscv
9f09b86c5a21ca00f8e5ade8e5186d65bc3e26f8
[ "Apache-2.0" ]
null
null
null
# # Copyright (C) [2020] Futurewei Technologies, Inc. # # FORCE-RISCV is 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 # # THIS SOFTWARE IS PR...
33.737705
89
0.677357
1,103
0.535957
0
0
0
0
0
0
1,064
0.517007
cbb2f8c56eb07a52d75952fa30eba4aacd7d35ed
2,104
py
Python
test.py
letri6tdn/PythonScript_URLshortener
2d0c80b411b3bdf51ae5446b9bc1080ad54c4215
[ "MIT" ]
null
null
null
test.py
letri6tdn/PythonScript_URLshortener
2d0c80b411b3bdf51ae5446b9bc1080ad54c4215
[ "MIT" ]
null
null
null
test.py
letri6tdn/PythonScript_URLshortener
2d0c80b411b3bdf51ae5446b9bc1080ad54c4215
[ "MIT" ]
null
null
null
# main.py #----------------------------------------------------------------------# # # # #----------------------------------------------------------------------# from math import floor from sqlite3 import OperationalError import string, sqlite3 from urllib.parse import urlparse import http.server import socketserver ...
25.349398
75
0.568916
0
0
0
0
565
0.268536
0
0
727
0.345532
cbb30457af6425432e38e401ec2a806f28ae68ab
6,968
py
Python
SimpleHTTPSAuthServer.py
oza6ut0ne/SimpleHTTPSAuthServer
084e5c0cb686e8c41ba1f911a6bc8939f2e24a59
[ "MIT" ]
null
null
null
SimpleHTTPSAuthServer.py
oza6ut0ne/SimpleHTTPSAuthServer
084e5c0cb686e8c41ba1f911a6bc8939f2e24a59
[ "MIT" ]
null
null
null
SimpleHTTPSAuthServer.py
oza6ut0ne/SimpleHTTPSAuthServer
084e5c0cb686e8c41ba1f911a6bc8939f2e24a59
[ "MIT" ]
null
null
null
import base64 import os import random import re import socket import sys import ssl import string if sys.version_info[0] == 2: from BaseHTTPServer import HTTPServer as Server from SimpleHTTPServer import SimpleHTTPRequestHandler as Handler from SocketServer import ThreadingMixIn from httplib import UNA...
33.5
86
0.617681
3,576
0.513203
0
0
0
0
0
0
835
0.119834
cbb368bf34a52b4d1ae95c69d88a1beadca9817c
903
py
Python
image/__init__.py
navroz-lamba/Image-Classifier-using-VGG-19-CNN
baceb95297b95be19d7e024eac50d5f754d26fa7
[ "MIT" ]
1
2020-12-18T18:45:00.000Z
2020-12-18T18:45:00.000Z
image/__init__.py
navroz-lamba/Image-Classifier-using-VGG-19-CNN
baceb95297b95be19d7e024eac50d5f754d26fa7
[ "MIT" ]
null
null
null
image/__init__.py
navroz-lamba/Image-Classifier-using-VGG-19-CNN
baceb95297b95be19d7e024eac50d5f754d26fa7
[ "MIT" ]
null
null
null
import flask from flask import Flask, url_for from tensorflow.keras.applications.imagenet_utils import preprocess_input, decode_predictions from tensorflow.keras.models import load_model from tensorflow.keras.preprocessing import image import numpy as np # instantiating a class object app = Flask(__name__) model_pat...
27.363636
93
0.746401
0
0
0
0
0
0
0
0
283
0.3134
cbb3e7b69b02ac60b8543485427f81f9ba135f8f
5,419
py
Python
interface/tasks.py
cni-iisc/campus-rakshak-simulator-app
ef30a1fb57b72d25534945526fdb77d158ad16c1
[ "Apache-2.0" ]
1
2021-07-29T10:33:26.000Z
2021-07-29T10:33:26.000Z
interface/tasks.py
cni-iisc/campus-rakshak-simulator-app
ef30a1fb57b72d25534945526fdb77d158ad16c1
[ "Apache-2.0" ]
null
null
null
interface/tasks.py
cni-iisc/campus-rakshak-simulator-app
ef30a1fb57b72d25534945526fdb77d158ad16c1
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from .helper import convert, run_aggregate_sims from django.core.files import File from celery import shared_task from django.core.mail import EmailMultiAlternatives from django.conf import settings from anymail.exceptions import AnymailError from config.celery import app from .m...
41.366412
209
0.704927
0
0
0
0
4,488
0.828197
0
0
1,575
0.290644
cbb42904bf11927aff25c0adb772e27632914a8b
6,566
py
Python
lightweight_mmm/media_transforms_test.py
google/lightweight_mmm
9bbecbeb691e79019f920cf904d8cb8b918e6638
[ "Apache-2.0" ]
45
2022-02-10T09:04:16.000Z
2022-03-29T23:54:16.000Z
lightweight_mmm/media_transforms_test.py
google/lightweight_mmm
9bbecbeb691e79019f920cf904d8cb8b918e6638
[ "Apache-2.0" ]
2
2022-02-14T16:02:55.000Z
2022-02-17T12:43:40.000Z
lightweight_mmm/media_transforms_test.py
google/lightweight_mmm
9bbecbeb691e79019f920cf904d8cb8b918e6638
[ "Apache-2.0" ]
4
2022-02-16T12:21:25.000Z
2022-03-31T16:20:45.000Z
# Copyright 2022 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
34.925532
80
0.646055
5,732
0.872982
0
0
3,654
0.556503
0
0
837
0.127475
cbb6cf178d364c3e00e075d9dd9ffee20b00a722
9,680
py
Python
tests/plugins/inventory/test_simple_inventory.py
kyawmyomin/nornir
4ae009ac894ec5b412c9859fe699b68747526255
[ "Apache-2.0" ]
null
null
null
tests/plugins/inventory/test_simple_inventory.py
kyawmyomin/nornir
4ae009ac894ec5b412c9859fe699b68747526255
[ "Apache-2.0" ]
null
null
null
tests/plugins/inventory/test_simple_inventory.py
kyawmyomin/nornir
4ae009ac894ec5b412c9859fe699b68747526255
[ "Apache-2.0" ]
null
null
null
import os from nornir.plugins.inventory import SimpleInventory dir_path = os.path.dirname(os.path.realpath(__file__)) class Test: def test(self): host_file = f"{dir_path}/data/hosts.yaml" group_file = f"{dir_path}/data/groups.yaml" defaults_file = f"{dir_path}/data/defaults.yaml" ...
39.510204
95
0.31219
9,557
0.987293
0
0
0
0
0
0
3,090
0.319215
cbb6d2fb3dae2334128d6c0086f42f31db307ebc
5,016
py
Python
main.py
shipwreckdev/cloudflare-reconciler
deefb016e5013ad95d59a9e7cc03ce42632e6757
[ "Apache-2.0" ]
null
null
null
main.py
shipwreckdev/cloudflare-reconciler
deefb016e5013ad95d59a9e7cc03ce42632e6757
[ "Apache-2.0" ]
null
null
null
main.py
shipwreckdev/cloudflare-reconciler
deefb016e5013ad95d59a9e7cc03ce42632e6757
[ "Apache-2.0" ]
null
null
null
import argparse import json import os import requests import lib.cf as cf import lib.aws as aws import lib.gh as gh version = "v1.0" api_base = 'https://api.cloudflare.com/client/v4/zones' api_key = os.getenv("CLOUDFLARE_API_KEY") content_type = 'application/json' email = os.getenv("CLOUDFLARE_EMAIL") github_repo = "...
43.617391
279
0.546451
0
0
0
0
0
0
0
0
1,759
0.350678
cbb79607ab88cfb6b0f8cd6f2a609f20a5508f65
867
py
Python
app/helpers.py
QwertygidQ/phystech-backend
657a5862d3bab91623551c7f4f6868cfdb1df4b8
[ "MIT" ]
null
null
null
app/helpers.py
QwertygidQ/phystech-backend
657a5862d3bab91623551c7f4f6868cfdb1df4b8
[ "MIT" ]
null
null
null
app/helpers.py
QwertygidQ/phystech-backend
657a5862d3bab91623551c7f4f6868cfdb1df4b8
[ "MIT" ]
null
null
null
from flask import request, jsonify from functools import wraps from schema import SchemaError def json_required(func): @wraps(func) def wrapper(*args, **kwargs): if not request.data or not request.json: return jsonify({ 'status': 'Error', 'reason': 'No JSON ...
25.5
53
0.517878
0
0
0
0
600
0.692042
0
0
87
0.100346
cbbbcdd9a359c2d8bfbdd28aa61f833e1d9364df
362
py
Python
tests/__init__.py
zhester/jdi
18d43331f15776a5ef94342ac85a24a083a3c7d7
[ "BSD-2-Clause" ]
null
null
null
tests/__init__.py
zhester/jdi
18d43331f15776a5ef94342ac85a24a083a3c7d7
[ "BSD-2-Clause" ]
null
null
null
tests/__init__.py
zhester/jdi
18d43331f15776a5ef94342ac85a24a083a3c7d7
[ "BSD-2-Clause" ]
null
null
null
#============================================================================= # # JDI Unit Tests # #============================================================================= """ JDI Unit Tests ============== Run all unit tests from project's root directory. python -m unittest discover python3 -m unittes...
16.454545
78
0.345304
0
0
0
0
0
0
0
0
336
0.928177
cbbe7b8eb169b6440ac5e6b29f5cb22280403941
13,380
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/grades/course_grade.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/grades/course_grade.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/grades/course_grade.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2019-01-02T14:38:50.000Z
2019-01-02T14:38:50.000Z
""" CourseGrade Class """ from abc import abstractmethod from collections import OrderedDict, defaultdict from ccx_keys.locator import CCXLocator from django.conf import settings from lazy import lazy from openedx.core.lib.grade_utils import round_away_from_zero from xmodule import block_metadata_utils from .confi...
39.122807
120
0.67145
12,757
0.953438
0
0
6,595
0.4929
0
0
5,111
0.381988
cbbeb4b320b177296806f93013a315f5fa18949c
1,385
py
Python
horoscope.py
Srol/Slack-Horoscope-Bot
af88183ff9810cf1606496c11ed949c5b4c27773
[ "MIT" ]
2
2019-11-17T19:28:44.000Z
2020-04-17T15:41:15.000Z
horoscope.py
Srol/Slack-Horoscope-Bot
af88183ff9810cf1606496c11ed949c5b4c27773
[ "MIT" ]
null
null
null
horoscope.py
Srol/Slack-Horoscope-Bot
af88183ff9810cf1606496c11ed949c5b4c27773
[ "MIT" ]
null
null
null
import os import feedparser import json from flask import Flask, request # Add your Slack token to the variable below. SLACK_TOKEN = "" url = "" payload = {} headers = {'content-type': 'application/json'} app = Flask(__name__) # this endpoint listens for incoming slash commands from Slack. @app.route('/horos', metho...
30.777778
133
0.711913
0
0
0
0
408
0.294585
0
0
625
0.451264
cbbecb922401274e31912c3ad07cb8e5c2af2c9e
9,507
py
Python
scripts/segmentation/PointNet/run_pointnet_segmentation.py
devskroy1/ForkedBrainSurfaceTK
774035ab5eae6c0a40eb96eab43d489d3f722eaa
[ "MIT" ]
null
null
null
scripts/segmentation/PointNet/run_pointnet_segmentation.py
devskroy1/ForkedBrainSurfaceTK
774035ab5eae6c0a40eb96eab43d489d3f722eaa
[ "MIT" ]
null
null
null
scripts/segmentation/PointNet/run_pointnet_segmentation.py
devskroy1/ForkedBrainSurfaceTK
774035ab5eae6c0a40eb96eab43d489d3f722eaa
[ "MIT" ]
null
null
null
import os.path as osp PATH_TO_ROOT = osp.join(osp.dirname(osp.realpath(__file__)), '..', '..', '..') import sys sys.path.append(PATH_TO_ROOT) import pickle import time import numpy as np import torch from torch.utils.tensorboard import SummaryWriter from torch.optim.lr_scheduler import StepLR from models.pointnet.src.u...
47.064356
146
0.429999
0
0
0
0
0
0
0
0
1,902
0.200063
cbbf46aa2d552297fb3fb4b62e94db053b8ce1eb
1,581
py
Python
basic_auth/handler.py
andrei-shabanski/s3pypi
48718149cf43d6e3252712d072d5b0de850bac55
[ "MIT" ]
249
2016-04-07T08:36:44.000Z
2021-06-03T06:55:08.000Z
basic_auth/handler.py
andrei-shabanski/s3pypi
48718149cf43d6e3252712d072d5b0de850bac55
[ "MIT" ]
58
2016-06-08T22:41:18.000Z
2021-05-28T20:03:39.000Z
basic_auth/handler.py
AstrocyteResearch/s3pypi
cd8d02015772dcded3b3db1a588c89e174d10471
[ "MIT" ]
100
2016-06-23T23:28:23.000Z
2021-03-12T15:09:29.000Z
import base64 import hashlib import json import logging from dataclasses import dataclass import boto3 log = logging.getLogger() region = "us-east-1" def handle(event: dict, context): request = event["Records"][0]["cf"]["request"] try: authenticate(request["headers"]) except Exception as e: ...
23.597015
73
0.648956
75
0.047438
0
0
86
0.054396
0
0
281
0.177736
cbc097bb33323fa8088310bd343222a9655bd612
11,674
py
Python
misc/zip/Cura-master/plugins/CuraEngineBackend/ProcessSlicedLayersJob.py
criscola/G-Gen
293d4f46cb40d7917a10a95921040a14a086efc1
[ "MIT" ]
1
2018-10-19T10:08:45.000Z
2018-10-19T10:08:45.000Z
misc/zip/Cura-master/plugins/CuraEngineBackend/ProcessSlicedLayersJob.py
criscola/G-Gen
293d4f46cb40d7917a10a95921040a14a086efc1
[ "MIT" ]
null
null
null
misc/zip/Cura-master/plugins/CuraEngineBackend/ProcessSlicedLayersJob.py
criscola/G-Gen
293d4f46cb40d7917a10a95921040a14a086efc1
[ "MIT" ]
null
null
null
#Copyright (c) 2017 Ultimaker B.V. #Cura is released under the terms of the LGPLv3 or higher. import gc from UM.Job import Job from UM.Application import Application from UM.Mesh.MeshData import MeshData from UM.Preferences import Preferences from UM.View.GL.OpenGLContext import OpenGLContext from UM.Message import ...
46.696
165
0.650677
10,407
0.891468
0
0
0
0
0
0
3,442
0.294843
cbc1c81f810a9f128eb409484181a04a43ba666d
262
py
Python
sts/metric.py
LostCow/KLUE
73b1b0526cf6b1b6f5ef535b9527d8abe6ca1a77
[ "MIT" ]
18
2021-12-22T09:41:24.000Z
2022-03-19T12:54:30.000Z
sts/metric.py
LostCow/KLUE
73b1b0526cf6b1b6f5ef535b9527d8abe6ca1a77
[ "MIT" ]
null
null
null
sts/metric.py
LostCow/KLUE
73b1b0526cf6b1b6f5ef535b9527d8abe6ca1a77
[ "MIT" ]
4
2021-12-26T11:31:46.000Z
2022-03-28T07:55:45.000Z
from datasets import load_metric def compute_metrics(pred): pearson = load_metric("pearsonr").compute references = pred.label_ids predictions = pred.predictions metric = pearson(predictions=predictions, references=references) return metric
26.2
68
0.763359
0
0
0
0
0
0
0
0
10
0.038168
cbc2172760f370c3b4d7c60769a266040ec53d06
442
py
Python
BITs/2014/Abdrahmanova_G_I/task_3_1.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/Abdrahmanova_G_I/task_3_1.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/Abdrahmanova_G_I/task_3_1.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача 3. Вариант 1. #Напишите программу, которая выводит имя "Иво Ливи", и запрашивает его псевдоним. Программа должна сцеплять две эти строки и выводить полученную строку, разделяя имя и псевдоним с помощью тире. name=input('Герой нашей сегодняшней программы - Иво Ливи. \nПод каким же именем мы знаем этого человека?...
55.25
193
0.757919
0
0
0
0
0
0
0
0
664
0.927374
cbc43e11b971288afc6b07c65f700ea9583287dc
3,523
py
Python
musiquepy/data/db.py
vitormoura/musiquepy
8065f85f216796d9c00a72ce4cc08cda8c461720
[ "MIT" ]
null
null
null
musiquepy/data/db.py
vitormoura/musiquepy
8065f85f216796d9c00a72ce4cc08cda8c461720
[ "MIT" ]
null
null
null
musiquepy/data/db.py
vitormoura/musiquepy
8065f85f216796d9c00a72ce4cc08cda8c461720
[ "MIT" ]
null
null
null
import io import logging import os import pathlib from datetime import datetime from typing import List from musiquepy.data.errors import MusiquepyExistingUserError from musiquepy.data.media import get_profile_pictures_dir from musiquepy.data.model import ( Album, AlbumPhoto, Artist, MusicGenre, MusicTrack, User) ...
28.184
75
0.649446
3,079
0.873475
0
0
0
0
0
0
89
0.025248
cbc4abcb91f41f2e38663e2ea3967fca2c3cbd66
7,301
py
Python
main.py
Drejky/Genetic-ML
80076246d4a5e75834d95607d04ab0e7e0132c48
[ "MIT" ]
null
null
null
main.py
Drejky/Genetic-ML
80076246d4a5e75834d95607d04ab0e7e0132c48
[ "MIT" ]
null
null
null
main.py
Drejky/Genetic-ML
80076246d4a5e75834d95607d04ab0e7e0132c48
[ "MIT" ]
null
null
null
import random from copy import deepcopy, copy import timeit adrMask = 63 #mask to get our addr bits cmdMask = 192 #mask to get our command bits stepLim = 500 #Limited num of instructions tourFlag = int(input("Input 1 for tournament, 0 for roulette")) mixFlag = int(input("Input 1 for mixed children, 0...
26.26259
99
0.490207
203
0.027804
0
0
0
0
0
0
1,134
0.155321
cbc5080d810af6158c768f9c9a1d4621bd817296
233
py
Python
wordVerification.py
Androcks/SlideWord
0ea3ff886ee142fa2211667d1bd9b73da66129e9
[ "Apache-2.0" ]
null
null
null
wordVerification.py
Androcks/SlideWord
0ea3ff886ee142fa2211667d1bd9b73da66129e9
[ "Apache-2.0" ]
null
null
null
wordVerification.py
Androcks/SlideWord
0ea3ff886ee142fa2211667d1bd9b73da66129e9
[ "Apache-2.0" ]
null
null
null
import enchant ##Use our custom word list wordList = enchant.request_pwl_dict("truncListWords.txt") ##Takes our string from the stage and checks it def checkForWord(playerString) : return wordList.check(playerString)
23.3
58
0.755365
0
0
0
0
0
0
0
0
95
0.407725
cbc5cfd99ada9e09f7fc9fada68993cce224acc8
2,264
py
Python
server/main/components/widgets_content.py
INRIM/forms-theme-italia
45415a16e32c8c93ee8d234262149ed0635cf212
[ "MIT" ]
null
null
null
server/main/components/widgets_content.py
INRIM/forms-theme-italia
45415a16e32c8c93ee8d234262149ed0635cf212
[ "MIT" ]
null
null
null
server/main/components/widgets_content.py
INRIM/forms-theme-italia
45415a16e32c8c93ee8d234262149ed0635cf212
[ "MIT" ]
null
null
null
from .widgets_base import WidgetsBase class PageWidget(WidgetsBase): def __init__(self, templates_engine, request, settings, schema={}, resource_ext=None, disabled=False, **kwargs): super(PageWidget, self).__init__(templates_engine, request, **kwargs) self.base_path = kwargs.get('base_path', "/")...
37.114754
116
0.590989
2,223
0.98189
0
0
0
0
0
0
339
0.149735
cbc761dabe74f703096f63ce1ad894e6e2334799
1,000
py
Python
app/pages/forms.py
MicroprocessorX069/Todo-web-app
c68f2e26eec1c89ab2257a22071133216c743ca0
[ "Apache-2.0" ]
null
null
null
app/pages/forms.py
MicroprocessorX069/Todo-web-app
c68f2e26eec1c89ab2257a22071133216c743ca0
[ "Apache-2.0" ]
1
2021-06-02T00:55:48.000Z
2021-06-02T00:55:48.000Z
app/pages/forms.py
MicroprocessorX069/Todo-web-app
c68f2e26eec1c89ab2257a22071133216c743ca0
[ "Apache-2.0" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, BooleanField, SubmitField, TextAreaField from wtforms.validators import ValidationError, DataRequired, Email, EqualTo, Length from app.models import User from flask import request class CreateChallengeForm(FlaskForm): name = StringField('...
43.478261
94
0.766
736
0.736
0
0
0
0
0
0
129
0.129
cbc875e1529c951ebc046e3930e392b9612e4907
1,302
py
Python
study/hfppnetwork/hfppnetwork/sms/logginghelper.py
NASA-Tournament-Lab/CoECI-CMS-Healthcare-Fraud-Prevention
4facd935920e77239c25323ca7e233cb899ba9f5
[ "Apache-2.0" ]
7
2015-07-15T06:47:16.000Z
2020-10-17T20:51:09.000Z
study/hfppnetwork/hfppnetwork/sms/logginghelper.py
NASA-Tournament-Lab/CoECI-CMS-Healthcare-Fraud-Prevention
4facd935920e77239c25323ca7e233cb899ba9f5
[ "Apache-2.0" ]
null
null
null
study/hfppnetwork/hfppnetwork/sms/logginghelper.py
NASA-Tournament-Lab/CoECI-CMS-Healthcare-Fraud-Prevention
4facd935920e77239c25323ca7e233cb899ba9f5
[ "Apache-2.0" ]
8
2017-01-30T02:27:01.000Z
2021-04-21T04:15:48.000Z
# -*- coding: utf-8 -*- """ Copyright (C) 2013 TopCoder Inc., All Rights Reserved. This is the module that defines logging helper methods This module resides in Python source file logginghelper.py Thread Safety: It is thread safe because no module-level variable is used. @author: TCSASSEMBLER @version: 1.0 """ import...
31.756098
76
0.69278
0
0
0
0
0
0
0
0
906
0.695853
cbca5e82b89e8b333ac4997324a7acc5ec0553d9
2,566
py
Python
hw8/next_permutation.py
alexander-paskal/ece143-hw
9e3d475cb44fd16f87879cb74dc9305d70805355
[ "MIT" ]
1
2022-02-02T07:30:20.000Z
2022-02-02T07:30:20.000Z
hw8/next_permutation.py
alexander-paskal/ece143-hw
9e3d475cb44fd16f87879cb74dc9305d70805355
[ "MIT" ]
null
null
null
hw8/next_permutation.py
alexander-paskal/ece143-hw
9e3d475cb44fd16f87879cb74dc9305d70805355
[ "MIT" ]
null
null
null
""" Given a permutation of any length, generate the next permutation in lexicographic order. For example, this are the permutations for [1,2,3] in lexicographic order. # >>> list(it.permutations([1,2,3])) [(1, 2, 3), (1, 3, 2), (2, 1, 3), (2, 3, 1), (3, 1, 2), (3, 2, 1)] Then, your function next_permutation(t:tuple)...
27.591398
96
0.537412
0
0
0
0
0
0
0
0
1,188
0.462977
cbcc9ac8c10c1c0b1c3e2bbf32ea484ec87b41ee
329
py
Python
8/8.10/great_magician.py
singi2016cn/python-scaffold
274e508d1919da67e599aa73be139800c043bce4
[ "MIT" ]
null
null
null
8/8.10/great_magician.py
singi2016cn/python-scaffold
274e508d1919da67e599aa73be139800c043bce4
[ "MIT" ]
null
null
null
8/8.10/great_magician.py
singi2016cn/python-scaffold
274e508d1919da67e599aa73be139800c043bce4
[ "MIT" ]
null
null
null
# 魔术师 def show_magicians(magicians): for magician in magicians: print('magician\'s name is ' + magician) def make_great(magicians): i = 0 for item in magicians: magicians[i] = 'The Great ' + item i = i + 1 magicians = ['singi', 'sunjun'] make_great(magicians) show_magicians(ma...
16.45
48
0.632219
0
0
0
0
0
0
0
0
60
0.179104
cbce87157b7abadfa6bd754cf2488a033bb5028e
4,889
py
Python
scratchpad/voids_paper/bin/tests/test_smartvis.py
arshadzahangirchowdhury/TomoEncoders
9c2b15fd515d864079f198546821faee5d78df17
[ "BSD-3-Clause" ]
null
null
null
scratchpad/voids_paper/bin/tests/test_smartvis.py
arshadzahangirchowdhury/TomoEncoders
9c2b15fd515d864079f198546821faee5d78df17
[ "BSD-3-Clause" ]
null
null
null
scratchpad/voids_paper/bin/tests/test_smartvis.py
arshadzahangirchowdhury/TomoEncoders
9c2b15fd515d864079f198546821faee5d78df17
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ """ import numpy as np import matplotlib.pyplot as plt import os import h5py import sys import time import seaborn as sns import pandas as pd sys.path.append('/home/atekawade/TomoEncoders/scratchpad/voids_paper/configs') from params import model_path, get_model_p...
41.084034
155
0.720802
0
0
0
0
0
0
0
0
2,467
0.504602
cbce8d593e80431df2ec54039449d1df714915f5
13,919
py
Python
src/Python/flask/app.py
mwaseem75/iris-python-template
c8d75e22a6eee33e796d28f5508fd656a6ea58d6
[ "MIT" ]
null
null
null
src/Python/flask/app.py
mwaseem75/iris-python-template
c8d75e22a6eee33e796d28f5508fd656a6ea58d6
[ "MIT" ]
null
null
null
src/Python/flask/app.py
mwaseem75/iris-python-template
c8d75e22a6eee33e796d28f5508fd656a6ea58d6
[ "MIT" ]
1
2022-02-21T05:14:48.000Z
2022-02-21T05:14:48.000Z
from flask import Flask, jsonify, Response, request, make_response, render_template from definitions.passenger import Passenger import json,util,io,random import iris from matplotlib.backends.backend_agg import FigureCanvasAgg from matplotlib.backends.backend_svg import FigureCanvasSVG from matplotlib.figure import Fi...
39.997126
254
0.613694
0
0
0
0
11,464
0.823622
0
0
4,504
0.323586
cbce9d4c6da7ba7b0d4c2b3424496f644f1e7e6d
10,390
py
Python
unihan_db/importer.py
linnaea/unihan-db
da3730dce0c4aad425e7ab9ae1331762b45793f2
[ "MIT" ]
null
null
null
unihan_db/importer.py
linnaea/unihan-db
da3730dce0c4aad425e7ab9ae1331762b45793f2
[ "MIT" ]
null
null
null
unihan_db/importer.py
linnaea/unihan-db
da3730dce0c4aad425e7ab9ae1331762b45793f2
[ "MIT" ]
null
null
null
from unihan_db.tables import ( UnhnLocation, UnhnLocationkXHC1983, UnhnReading, kCantonese, kCCCII, kCheungBauer, kCheungBauerIndex, kCihaiT, kDaeJaweon, kDefinition, kFenn, kFennIndex, kGSR, kHanYu, kHanyuPinlu, kHanyuPinyin, kHDZRadBreak, kIICore...
31.580547
123
0.528104
0
0
0
0
0
0
0
0
1,813
0.174495
cbcfd99b4f40fab95fa519c4f1885786acde8bae
2,373
py
Python
sylwek/data_provider.py
fizykpl/Synerise2
baf755004d62b3d14a0988bbe8a5add15f10d066
[ "MIT" ]
null
null
null
sylwek/data_provider.py
fizykpl/Synerise2
baf755004d62b3d14a0988bbe8a5add15f10d066
[ "MIT" ]
null
null
null
sylwek/data_provider.py
fizykpl/Synerise2
baf755004d62b3d14a0988bbe8a5add15f10d066
[ "MIT" ]
null
null
null
import time import numpy as np from matplotlib import pyplot as plt from sylwek.similarity_measure import SimilarityMeasure from utils import mnist_reader class DataProvider: images = {} labels = {} similarity_measure = None next_id = -1 #TODO 2. Prosimy nadać każdemu obrazkowi unikalny identyfikator...
28.939024
115
0.604298
1,864
0.783852
0
0
0
0
0
0
564
0.237174
cbd13396135d0966c93e66018afe90dc4090a475
4,933
py
Python
mmtbx/regression/fix_cablam/tst_one_resid_rotation.py
hbrunie/cctbx_project
2d8cb383d50fe20cdbbe4bebae8ed35fabce61e5
[ "BSD-3-Clause-LBNL" ]
2
2021-03-18T12:31:57.000Z
2022-03-14T06:27:06.000Z
mmtbx/regression/fix_cablam/tst_one_resid_rotation.py
hbrunie/cctbx_project
2d8cb383d50fe20cdbbe4bebae8ed35fabce61e5
[ "BSD-3-Clause-LBNL" ]
null
null
null
mmtbx/regression/fix_cablam/tst_one_resid_rotation.py
hbrunie/cctbx_project
2d8cb383d50fe20cdbbe4bebae8ed35fabce61e5
[ "BSD-3-Clause-LBNL" ]
1
2021-03-26T12:52:30.000Z
2021-03-26T12:52:30.000Z
from __future__ import absolute_import, division, print_function import iotbx.pdb import mmtbx.model from mmtbx.building.cablam_idealization import cablam_idealization, master_phil import sys import libtbx.load_env pdb_str = """\ ATOM 2327 N GLY A 318 169.195 115.930 63.690 1.00216.32 N ATOM 23...
59.433735
107
0.598419
0
0
0
0
0
0
0
0
3,770
0.764241
cbd272df4b8ee10d7b3a479337364711ca636afe
9,835
py
Python
mindhome_alpha/erpnext/stock/doctype/batch/test_batch.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
mindhome_alpha/erpnext/stock/doctype/batch/test_batch.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
null
null
null
mindhome_alpha/erpnext/stock/doctype/batch/test_batch.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe.exceptions import ValidationError import unittest from erpnext.stock.doctype.batch.batch import get_batch_qty, UnableToSelect...
29.270833
102
0.716523
8,243
0.838129
0
0
1,071
0.108897
0
0
2,594
0.263752
cbd3598d91ff793b9cf6d9fdbee232e97be7c505
35,768
py
Python
morphological_analysis_v4.py
rivernuthead/DoD_analysis
b06219d4026e89a9b9f1e8939010a63612750c80
[ "MIT" ]
null
null
null
morphological_analysis_v4.py
rivernuthead/DoD_analysis
b06219d4026e89a9b9f1e8939010a63612750c80
[ "MIT" ]
null
null
null
morphological_analysis_v4.py
rivernuthead/DoD_analysis
b06219d4026e89a9b9f1e8939010a63612750c80
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed May 25 16:02:58 2022 @author: erri """ import os import numpy as np import math from morph_quantities_func_v2 import morph_quantities import matplotlib.pyplot as plt # SINGLE RUN NAME run = 'q07_1' DoD_name = 'DoD_s1-s0_filt_nozero_rst.txt' # Step betw...
50.87909
246
0.605374
0
0
0
0
0
0
0
0
27,700
0.774435
cbd426fc2cf477bb0eedd50f6dab71f0530cee3c
1,987
py
Python
SimulationLego/laptop.py
MajesticKhan/Reinforcement-Learning
c488e547afe571b47446be76abf6f5c80e8e6be5
[ "MIT" ]
4
2022-03-30T00:45:29.000Z
2022-03-30T00:45:49.000Z
SimulationLego/laptop.py
MajesticKhan/Reinforcement-Learning
c488e547afe571b47446be76abf6f5c80e8e6be5
[ "MIT" ]
null
null
null
SimulationLego/laptop.py
MajesticKhan/Reinforcement-Learning
c488e547afe571b47446be76abf6f5c80e8e6be5
[ "MIT" ]
null
null
null
#--------------------------------------------------------Import libraries import pickle import socket import struct import cv2 from stable_baselines import PPO2 import numpy as np import imageio #--------------------------------------------------------Establiosh connection s = socket.socket(socket.AF_INET,socket.SOCK_...
32.048387
116
0.560141
0
0
0
0
0
0
0
0
815
0.410166
cbd784fa49d1aeb99aa20877269a15eeae7feeb6
502
py
Python
examples/py/async-generator-multiple-tickers.py
diwenshi61/ccxt
ebdda10e7c4ed8841d572f3bfe198b5f0e949cf6
[ "MIT" ]
24,910
2017-10-27T21:41:59.000Z
2022-03-31T23:08:57.000Z
examples/py/async-generator-multiple-tickers.py
diwenshi61/ccxt
ebdda10e7c4ed8841d572f3bfe198b5f0e949cf6
[ "MIT" ]
8,201
2017-10-28T10:19:28.000Z
2022-03-31T23:49:37.000Z
examples/py/async-generator-multiple-tickers.py
diwenshi61/ccxt
ebdda10e7c4ed8841d572f3bfe198b5f0e949cf6
[ "MIT" ]
6,632
2017-10-28T02:53:24.000Z
2022-03-31T23:20:14.000Z
# -*- coding: utf-8 -*- import asyncio import ccxt.async_support as ccxt async def poll(tickers): i = 0 kraken = ccxt.kraken() while True: symbol = tickers[i % len(tickers)] yield (symbol, await kraken.fetch_ticker(symbol)) i += 1 await asyncio.sleep(kraken.rateLimit / 100...
21.826087
74
0.629482
0
0
246
0.49004
0
0
368
0.733068
50
0.099602
cbd7e3697d362246ff728b1ea5a7f422a2d3dc8c
3,198
py
Python
sdk/keyvault/azure-keyvault-administration/azure/keyvault/administration/_generated/v7_2_preview/models/__init__.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/keyvault/azure-keyvault-administration/azure/keyvault/administration/_generated/v7_2_preview/models/__init__.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
2
2020-03-03T23:11:13.000Z
2020-03-30T18:50:55.000Z
sdk/keyvault/azure-keyvault-administration/azure/keyvault/administration/_generated/v7_2_preview/models/__init__.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
2
2020-05-21T22:51:22.000Z
2020-05-26T20:53:01.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
45.042254
94
0.735147
0
0
0
0
0
0
0
0
1,149
0.359287
cbd972da2a2d979e028c1ffafee8336e9a3e9560
447
py
Python
fitbox/consultas/views.py
ravellys/fitbox
3ca61bf4d27f47dd7fabb1301afdf5c79284f68b
[ "MIT" ]
null
null
null
fitbox/consultas/views.py
ravellys/fitbox
3ca61bf4d27f47dd7fabb1301afdf5c79284f68b
[ "MIT" ]
1
2020-10-29T20:03:11.000Z
2020-10-29T20:03:11.000Z
fitbox/consultas/views.py
ravellys/fitbox
3ca61bf4d27f47dd7fabb1301afdf5c79284f68b
[ "MIT" ]
2
2020-10-27T16:46:18.000Z
2020-11-04T02:29:59.000Z
# from django.shortcuts import render # Create your views here. from django.urls import reverse_lazy from django.views.generic import CreateView from fitbox.consultas.forms import ConsultaForm from fitbox.consultas.models import Consulta class ConsultaCreateView(CreateView): template_name = "consultas/cadastro_...
27.9375
60
0.805369
204
0.456376
0
0
0
0
0
0
124
0.277405
cbd9e2d20a7a2ee57818c7e4187d5b9ba2868f18
598
py
Python
{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/settings/base.py
drgarcia1986/cookiecutter-muffin
7aa861787b4280477a726da99cf9de4047b01d91
[ "MIT" ]
3
2016-06-24T21:14:37.000Z
2017-03-07T05:36:33.000Z
{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/settings/base.py
drgarcia1986/cookiecutter-muffin
7aa861787b4280477a726da99cf9de4047b01d91
[ "MIT" ]
null
null
null
{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/settings/base.py
drgarcia1986/cookiecutter-muffin
7aa861787b4280477a726da99cf9de4047b01d91
[ "MIT" ]
null
null
null
import os STATIC_FOLDERS = ( '{{cookiecutter.repo_name}}/common/static', '{{cookiecutter.repo_name}}/users/static', ) # Muffin Plugins PLUGINS = ( 'muffin_jinja2', 'muffin_peewee', 'muffin_session', ) # Plugins configurations SESSION_SECRET = 'SecretHere' SESSION_LOGIN_URL = '/users/signin/' JI...
22.148148
97
0.70903
0
0
0
0
0
0
0
0
390
0.652174
cbda5badb8318614b5c5a7f8c3574fc8ff467460
6,905
py
Python
rpyc/core/netref.py
fruch/rpyc
8db3fdcef2272d468aca562465279370d075be72
[ "MIT" ]
null
null
null
rpyc/core/netref.py
fruch/rpyc
8db3fdcef2272d468aca562465279370d075be72
[ "MIT" ]
null
null
null
rpyc/core/netref.py
fruch/rpyc
8db3fdcef2272d468aca562465279370d075be72
[ "MIT" ]
null
null
null
""" NetRef - transparent network references implementation. """ import sys import inspect import types import cPickle as pickle from rpyc.core import consts _local_netref_attrs = frozenset([ '____conn__', '____oid__', '__class__', '__cmp__', '__del__', '__delattr__', '__dir__', '__doc__', '__getattr__', '__g...
39.232955
84
0.625344
2,696
0.390442
0
0
0
0
0
0
1,463
0.211875
cbdac3877bab597aa23c31ff7320e50f74d4b377
381
py
Python
hpc/config_manager.py
PRIDE-Toolsuite/trackhub-creator
ade2cfafeaad95088664caecacb783b501c170aa
[ "Apache-2.0" ]
null
null
null
hpc/config_manager.py
PRIDE-Toolsuite/trackhub-creator
ade2cfafeaad95088664caecacb783b501c170aa
[ "Apache-2.0" ]
null
null
null
hpc/config_manager.py
PRIDE-Toolsuite/trackhub-creator
ade2cfafeaad95088664caecacb783b501c170aa
[ "Apache-2.0" ]
null
null
null
# # Author    : Manuel Bernal Llinares # Project   : trackhub-creator # Timestamp : 11-09-2017 11:10 # --- # © 2017 Manuel Bernal Llinares <mbdebian@gmail.com> # All rights reserved. # """ Configuration Manager for this HPC Module """ if __name__ == '__main__': print("ERROR: This script is part of a pipeline co...
23.8125
114
0.695538
0
0
0
0
0
0
0
0
349
0.897172
cbdd50556efcc7c8ce43ff47982d04d269c61a42
3,230
py
Python
exampleScripts/basicClusterHoehnerExampleData.py
StSchulze/pyGCluster
92bb6855faa9e40582326cabfb0323eace72d4b3
[ "MIT" ]
7
2015-01-30T19:47:31.000Z
2019-12-19T04:06:59.000Z
exampleScripts/basicClusterHoehnerExampleData.py
StSchulze/pyGCluster
92bb6855faa9e40582326cabfb0323eace72d4b3
[ "MIT" ]
1
2016-02-22T08:55:39.000Z
2016-02-25T11:08:01.000Z
exampleScripts/basicClusterHoehnerExampleData.py
StSchulze/pyGCluster
92bb6855faa9e40582326cabfb0323eace72d4b3
[ "MIT" ]
6
2017-04-01T13:29:50.000Z
2019-12-19T04:06:58.000Z
#!/usr/bin/env python """ Testscript to demonstrate functionality of pyGCluster This script imports the data of Hoehner et al. (2013) and executes pyGCluster with 250,000 iterations of resampling. pyGCluster will evoke 4 threads (if possible), which each require approx. 1.5GB RAM. Please make sure you have enough ...
36.704545
199
0.662539
0
0
0
0
0
0
0
0
1,538
0.476161
cbdd5fbfea56b41fd5be10c9535f73893f760618
6,767
py
Python
fpga_interchange/convert.py
gatecat/python-fpga-interchange
ddae5bcea8524ffcea61a3558f1971b0b54cf165
[ "0BSD" ]
27
2020-10-27T19:07:19.000Z
2021-11-14T17:11:49.000Z
fpga_interchange/convert.py
gatecat/python-fpga-interchange
ddae5bcea8524ffcea61a3558f1971b0b54cf165
[ "0BSD" ]
61
2020-10-08T17:59:12.000Z
2021-10-01T07:53:53.000Z
fpga_interchange/convert.py
gatecat/python-fpga-interchange
ddae5bcea8524ffcea61a3558f1971b0b54cf165
[ "0BSD" ]
12
2020-10-07T22:24:32.000Z
2021-11-18T21:40:47.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright (C) 2020 The SymbiFlow Authors. # # Use of this source code is governed by a ISC-style # license that can be found in the LICENSE file or at # https://opensource.org/licenses/ISC # # SPDX-License-Identifier: ISC """ Utilities for converting between file form...
32.37799
226
0.685385
0
0
0
0
0
0
0
0
2,357
0.348308
cbddc035a6a6d8c78e66f93a222b27dafd4be1e5
3,602
py
Python
sharpy/plans/tactics/speed_mining.py
DuncanDHall/sharpy-sc2
7a47a7538ad99214e3f0288b6213cac882551180
[ "MIT" ]
null
null
null
sharpy/plans/tactics/speed_mining.py
DuncanDHall/sharpy-sc2
7a47a7538ad99214e3f0288b6213cac882551180
[ "MIT" ]
null
null
null
sharpy/plans/tactics/speed_mining.py
DuncanDHall/sharpy-sc2
7a47a7538ad99214e3f0288b6213cac882551180
[ "MIT" ]
null
null
null
from typing import List, Dict from sc2.ids.ability_id import AbilityId from sc2.position import Point2 from sc2.unit import Unit from sc2.units import Units from sharpy.interfaces import IZoneManager from sharpy.managers.core.roles import UnitTask from sharpy.plans.acts import ActBase from sharpy.sc2math import get_in...
37.134021
103
0.631316
3,244
0.900611
0
0
0
0
369
0.102443
51
0.014159
cbdf9ff14b79b043642bf4e92833f21eebe9c6f0
621
py
Python
build_automation/content_management/migrations/0046_auto_20200228_1432.py
SolarSPELL-Main/DLMS
7e799246c55f5a64fa236567c411d1c2a2c4f38f
[ "MIT" ]
null
null
null
build_automation/content_management/migrations/0046_auto_20200228_1432.py
SolarSPELL-Main/DLMS
7e799246c55f5a64fa236567c411d1c2a2c4f38f
[ "MIT" ]
9
2020-01-15T21:33:16.000Z
2021-06-10T22:13:28.000Z
build_automation/content_management/migrations/0046_auto_20200228_1432.py
SolarSPELL-Main/DLMS
7e799246c55f5a64fa236567c411d1c2a2c4f38f
[ "MIT" ]
3
2019-11-16T03:54:48.000Z
2021-09-10T18:53:20.000Z
# Generated by Django 2.1.3 on 2020-02-28 21:32 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('content_management', '0045_auto_20200228_1345'), ] operations = [ migrations.RemoveField( model...
25.875
129
0.63124
495
0.797101
0
0
0
0
0
0
166
0.267311
cbe454fc38406286a1921bff834cf81ed53fb858
12,700
py
Python
pycudadecon/deconvolution.py
zbarry/pycudadecon
9259a579a3bb2122a2251beb5b910ba2e5828ad3
[ "MIT" ]
46
2019-03-04T04:54:39.000Z
2022-02-28T04:44:27.000Z
pycudadecon/deconvolution.py
zbarry/pycudadecon
9259a579a3bb2122a2251beb5b910ba2e5828ad3
[ "MIT" ]
18
2019-03-08T04:31:23.000Z
2022-02-07T06:43:15.000Z
pycudadecon/deconvolution.py
zbarry/pycudadecon
9259a579a3bb2122a2251beb5b910ba2e5828ad3
[ "MIT" ]
9
2019-03-06T03:07:59.000Z
2022-03-11T17:02:21.000Z
import os from fnmatch import fnmatch from typing import Iterator, List, Optional, Sequence, Tuple, Union import numpy as np from typing_extensions import Literal from . import lib from .otf import TemporaryOTF from .util import PathOrArray, _kwargs_for, imread def rl_cleanup(): """Release GPU buffer and cleanu...
31.127451
88
0.613228
1,414
0.111339
1,289
0.101496
0
0
0
0
7,162
0.563937
cbe6b0eea93a98eae975c5a09c446c6929e03ea6
816
py
Python
deep_learning_with_tensorFlow/Chapter05/p11302.py
pearpai/TensorFlow-action
264099d933988532ed59eaf0f2ad495d40ede4d2
[ "Apache-2.0" ]
3
2018-06-07T07:15:00.000Z
2018-10-09T07:59:50.000Z
deep_learning_with_tensorFlow/Chapter05/p11302.py
pearpai/TensorFlow-action
264099d933988532ed59eaf0f2ad495d40ede4d2
[ "Apache-2.0" ]
null
null
null
deep_learning_with_tensorFlow/Chapter05/p11302.py
pearpai/TensorFlow-action
264099d933988532ed59eaf0f2ad495d40ede4d2
[ "Apache-2.0" ]
4
2017-04-23T05:30:41.000Z
2018-09-27T07:13:37.000Z
# coding=utf-8 import tensorflow as tf v = tf.Variable(0, dtype=tf.float32, name='v3') # 在没有声明滑动平均模型时只有一个变量v,所以下面的语句只会输出v:0 for variables in tf.global_variables(): print(variables.name) ema = tf.train.ExponentialMovingAverage(0.99) # 加入命名空间中 maintain_averages_op = ema.apply(tf.global_variables()) # 在申明滑动平均模型之后,T...
29.142857
55
0.75
0
0
0
0
0
0
0
0
421
0.425253
1dab593015997d8eba3dbafe4c8fcbe0f12b7e14
35
py
Python
build/lib/zorb/models/__init__.py
varunranga/zorb
ffad98d15c3200eafc1b10c68860ce34ebf78f62
[ "MIT" ]
3
2021-05-13T16:28:39.000Z
2022-02-18T23:10:35.000Z
src/zorb/models/__init__.py
varunranga/zorb
ffad98d15c3200eafc1b10c68860ce34ebf78f62
[ "MIT" ]
null
null
null
src/zorb/models/__init__.py
varunranga/zorb
ffad98d15c3200eafc1b10c68860ce34ebf78f62
[ "MIT" ]
null
null
null
from .Sequential import Sequential
17.5
34
0.857143
0
0
0
0
0
0
0
0
0
0
1dae9ce676e6495c35381a8c5c2d8862347c3bd0
28
py
Python
oarepo_whitenoise/__init__.py
oarepo/oarepo-whitenoise
e72a875edc2a8db3c7805c65ed7e73927d20f056
[ "MIT" ]
null
null
null
oarepo_whitenoise/__init__.py
oarepo/oarepo-whitenoise
e72a875edc2a8db3c7805c65ed7e73927d20f056
[ "MIT" ]
null
null
null
oarepo_whitenoise/__init__.py
oarepo/oarepo-whitenoise
e72a875edc2a8db3c7805c65ed7e73927d20f056
[ "MIT" ]
1
2021-06-28T12:21:33.000Z
2021-06-28T12:21:33.000Z
"""Nothing here, really."""
14
27
0.607143
0
0
0
0
0
0
0
0
27
0.964286
1daff2d7a44c6c02cc6f43b03cc6ccde6dd9165f
1,748
py
Python
assets/src/ba_data/python/bastd/mapdata/rampage.py
Benefit-Zebra/ballistica
eb85df82cff22038e74a2d93abdcbe9cd755d782
[ "MIT" ]
317
2020-04-04T00:33:10.000Z
2022-03-28T01:07:09.000Z
assets/src/ba_data/python/bastd/mapdata/rampage.py
Alshahriah/ballistica
326f6677a0118667e93ce9034849622ebef706fa
[ "MIT" ]
315
2020-04-04T22:33:10.000Z
2022-03-31T22:50:02.000Z
assets/src/ba_data/python/bastd/mapdata/rampage.py
Alshahriah/ballistica
326f6677a0118667e93ce9034849622ebef706fa
[ "MIT" ]
97
2020-04-04T01:32:17.000Z
2022-03-16T19:02:59.000Z
# Released under the MIT License. See LICENSE for details. # # This file was automatically generated from "rampage.ma" # pylint: disable=all points = {} # noinspection PyDictCreation boxes = {} boxes['area_of_interest_bounds'] = (0.3544110667, 5.616383286, -4.066055072) + (0.0, 0.0,...
52.969697
77
0.638444
0
0
0
0
0
0
0
0
391
0.223684
1db107f2c1e2018df51dd16f8e25f706a3117779
7,945
py
Python
PyFlow/UI/Widgets/GraphEditor_ui.py
dlario/PyFlow
b53b9d14b37aa586426d85842c6cd9a9c35443f2
[ "MIT" ]
null
null
null
PyFlow/UI/Widgets/GraphEditor_ui.py
dlario/PyFlow
b53b9d14b37aa586426d85842c6cd9a9c35443f2
[ "MIT" ]
null
null
null
PyFlow/UI/Widgets/GraphEditor_ui.py
dlario/PyFlow
b53b9d14b37aa586426d85842c6cd9a9c35443f2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'e:/GIT/PyFlow/PyFlow/UI/Widgets\GraphEditor_ui.ui', # licensing of 'e:/GIT/PyFlow/PyFlow/UI/Widgets\GraphEditor_ui.ui' applies. # # Created: Sat May 4 12:25:24 2019 # by: pyside2-uic running on PySide2 5.12.0 # # WARNING! All changes ...
60.648855
148
0.746633
7,539
0.948899
0
0
0
0
0
0
852
0.107237
1db11b3357bbf28fcc5549063a419c83717d2922
995
py
Python
computer_wordle.py
AntonKueltz/computer-wordle-client
5cd88d779f529de2c19b82d599ff478476cb0feb
[ "MIT" ]
null
null
null
computer_wordle.py
AntonKueltz/computer-wordle-client
5cd88d779f529de2c19b82d599ff478476cb0feb
[ "MIT" ]
null
null
null
computer_wordle.py
AntonKueltz/computer-wordle-client
5cd88d779f529de2c19b82d599ff478476cb0feb
[ "MIT" ]
2
2022-02-03T01:36:51.000Z
2022-02-07T20:52:36.000Z
#!/usr/bin/env python3 import api from urllib.parse import urljoin GREEN = 'G' YELLOW = 'Y' GRAY = '.' with open('wordlist.txt') as wordlist_file: wordlist = tuple(line.strip() for line in wordlist_file) class Game: def __init__(self): response = api.start_new_game() self._game_id = respon...
26.184211
70
0.654271
780
0.78392
0
0
0
0
0
0
178
0.178894
1db1d266c16124792ba1fb342841f354a3bc0a8d
1,450
py
Python
src/validataclass/validators/date_validator.py
binary-butterfly/validataclass
65b07973c66cb4b00404037207405cc4c9580e12
[ "MIT" ]
null
null
null
src/validataclass/validators/date_validator.py
binary-butterfly/validataclass
65b07973c66cb4b00404037207405cc4c9580e12
[ "MIT" ]
20
2021-11-08T15:58:38.000Z
2022-03-02T16:56:15.000Z
src/validataclass/validators/date_validator.py
binary-butterfly/validataclass
65b07973c66cb4b00404037207405cc4c9580e12
[ "MIT" ]
null
null
null
""" validataclass Copyright (c) 2021, binary butterfly GmbH and contributors Use of this source code is governed by an MIT-style license that can be found in the LICENSE file. """ from datetime import date from typing import Any from .string_validator import StringValidator from validataclass.exceptions import Invali...
25.438596
109
0.658621
1,080
0.744828
0
0
0
0
0
0
876
0.604138
1db1f7c927cfaedb78f62fb3695b46b8ba415747
1,810
py
Python
shimmer/apps/SimpleAccelGyro/simpleAccelGyroRecv.py
tinyos-io/tinyos-3.x-contrib
3aaf036722a2afc0c0aad588459a5c3e00bd3c01
[ "BSD-3-Clause", "MIT" ]
1
2020-02-28T20:35:09.000Z
2020-02-28T20:35:09.000Z
shimmer/apps/SimpleAccelGyro/simpleAccelGyroRecv.py
tinyos-io/tinyos-3.x-contrib
3aaf036722a2afc0c0aad588459a5c3e00bd3c01
[ "BSD-3-Clause", "MIT" ]
null
null
null
shimmer/apps/SimpleAccelGyro/simpleAccelGyroRecv.py
tinyos-io/tinyos-3.x-contrib
3aaf036722a2afc0c0aad588459a5c3e00bd3c01
[ "BSD-3-Clause", "MIT" ]
null
null
null
#!/usr/bin/python import sys, os, struct, array, time try: import tos except ImportError: import posix sys.path = [os.path.join(posix.environ['TOSROOT'], 'support', 'sdk', 'python')] + sys.path import tos if len(sys.argv) < 2: print "no device specified" print "example:" print " simpleAccelGyro...
36.938776
131
0.508287
0
0
0
0
0
0
0
0
242
0.133702
1db266d927adb6c005db3a33cf6739b15458b37f
597
py
Python
astronat/core/__init__.py
nstarman/astronat
9e1f41c6de1ca6adbd2bf99414a4c9b61838abf6
[ "BSD-3-Clause" ]
1
2020-11-20T18:25:26.000Z
2020-11-20T18:25:26.000Z
astronat/core/__init__.py
nstarman/astronat
9e1f41c6de1ca6adbd2bf99414a4c9b61838abf6
[ "BSD-3-Clause" ]
3
2020-09-09T06:10:20.000Z
2020-09-16T05:56:10.000Z
astronat/core/__init__.py
nstarman/astronat
9e1f41c6de1ca6adbd2bf99414a4c9b61838abf6
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # see LICENSE.rst """Basic Astronomy Functions. .. todo:: change this to C / pyx. whatever astropy's preferred C thing is. """ __author__ = "" # __copyright__ = "Copyright 2018, " # __credits__ = [""] # __license__ = "" # __version__ = "0.0.0" # __maintainer__ = "" # __email__ = "" # __...
15.710526
78
0.440536
0
0
0
0
0
0
0
0
553
0.926298
1db2abb5c5f56c7175445d7b83c28b635555e35d
28,922
py
Python
CHEBYSHEV/TVB_Method/cheb_class.py
mtmoncur/RootFinding
8d7c8f8d4fda158c83ff1a605f330db14b56ecc7
[ "MIT" ]
null
null
null
CHEBYSHEV/TVB_Method/cheb_class.py
mtmoncur/RootFinding
8d7c8f8d4fda158c83ff1a605f330db14b56ecc7
[ "MIT" ]
null
null
null
CHEBYSHEV/TVB_Method/cheb_class.py
mtmoncur/RootFinding
8d7c8f8d4fda158c83ff1a605f330db14b56ecc7
[ "MIT" ]
null
null
null
import numpy as np import itertools from numpy.polynomial import chebyshev as cheb """ Module for defining the class of Chebyshev polynomials, as well as various related classes and methods, including: Classes: ------- Polynomial: Superclass for MultiPower and MultiCheb. Contains methods and ...
31.817382
118
0.577069
17,081
0.590588
0
0
0
0
0
0
15,902
0.549824
1db3723a72818283ab89562ed96cdc5069ece039
5,072
py
Python
18-Make-and-build/42-Latex/run_45-Copy-latex-typo3-stuff.py
marble/Toolchain_RenderDocumentation
1b206c0478b7418a628233e9e1fd36eeb4224185
[ "MIT" ]
null
null
null
18-Make-and-build/42-Latex/run_45-Copy-latex-typo3-stuff.py
marble/Toolchain_RenderDocumentation
1b206c0478b7418a628233e9e1fd36eeb4224185
[ "MIT" ]
9
2016-09-05T19:24:57.000Z
2018-12-05T16:11:55.000Z
18-Make-and-build/42-Latex/run_45-Copy-latex-typo3-stuff.py
marble/Toolchain_RenderDocumentation
1b206c0478b7418a628233e9e1fd36eeb4224185
[ "MIT" ]
2
2017-04-08T10:12:48.000Z
2020-08-14T13:10:42.000Z
#!/usr/bin/env python # coding: utf-8 from __future__ import print_function from __future__ import absolute_import import os import re import shutil import stat import sys import tct from os.path import exists as ospe, join as ospj from tct import deepget params = tct.readjson(sys.argv[1]) binabspath = sys.argv[2] ...
30.371257
115
0.536475
0
0
0
0
0
0
0
0
1,844
0.363565
1db591283c587148c660788ee47bee65cf843d14
693
py
Python
src/tact/server/websocket.py
wabain/tact
bd95608bebc640e47f31f6d0a403108fe998188d
[ "MIT" ]
null
null
null
src/tact/server/websocket.py
wabain/tact
bd95608bebc640e47f31f6d0a403108fe998188d
[ "MIT" ]
null
null
null
src/tact/server/websocket.py
wabain/tact
bd95608bebc640e47f31f6d0a403108fe998188d
[ "MIT" ]
null
null
null
"""Base definitions for the websocket interface""" import json from abc import ABC, abstractmethod class WebsocketConnectionLost(Exception): pass class AbstractWSManager(ABC): @abstractmethod async def send(self, conn_id: str, msg: dict) -> None: # This is implemented as a separate method primar...
27.72
69
0.695527
588
0.848485
0
0
492
0.709957
432
0.623377
130
0.18759
1db65875e73e38c64b16e13b346efb8fec1b7649
10,312
py
Python
wiimatch/match.py
mcara/wiimatch
c6126a6148588d60dbed68c46a7da14f71410f7f
[ "BSD-3-Clause" ]
2
2019-08-14T12:46:05.000Z
2021-03-30T18:17:47.000Z
wiimatch/match.py
mcara/wiimatch
c6126a6148588d60dbed68c46a7da14f71410f7f
[ "BSD-3-Clause" ]
4
2019-08-07T11:37:34.000Z
2019-08-21T16:54:56.000Z
wiimatch/match.py
mcara/wiimatch
c6126a6148588d60dbed68c46a7da14f71410f7f
[ "BSD-3-Clause" ]
2
2019-08-05T16:44:14.000Z
2019-08-21T13:13:21.000Z
""" A module that provides main API for optimal (LSQ) "matching" of weighted N-dimensional image intensity data using (multivariate) polynomials. :Author: Mihai Cara (contact: help@stsci.edu) :License: :doc:`../LICENSE` """ import numpy as np from .lsq_optimizer import build_lsq_eqs, pinv_solve, rlu_solve __all__...
39.060606
79
0.624903
0
0
0
0
0
0
0
0
8,021
0.777832
1db68436f9947e25427cf7df6c8bf3c1b129ddd8
2,705
py
Python
tests/test_utils.py
plus3it/WatchMaker
0b9d773642709e5b2a2f4a9aac4d682917901b72
[ "Apache-2.0" ]
39
2017-03-07T15:39:47.000Z
2022-02-03T00:51:33.000Z
tests/test_utils.py
plus3it/WatchMaker
0b9d773642709e5b2a2f4a9aac4d682917901b72
[ "Apache-2.0" ]
851
2016-06-01T00:35:46.000Z
2022-03-28T12:03:17.000Z
tests/test_utils.py
eemperor/watchmaker
a007297bd4549e064019d8212ca8cb4da4636686
[ "Apache-2.0" ]
55
2016-06-01T14:15:46.000Z
2021-12-23T14:31:26.000Z
# -*- coding: utf-8 -*- # pylint: disable=redefined-outer-name,protected-access """Salt worker main test module.""" from __future__ import (absolute_import, division, print_function, unicode_literals, with_statement) import watchmaker.utils try: from unittest.mock import patch except Impor...
37.569444
75
0.737893
0
0
0
0
2,050
0.757856
0
0
880
0.325323
1db85436a1e7560cd1e4c27e632933b72b6c79d7
18,256
py
Python
shop/src/transaction_logic.py
gryan12/anonymous_ecommerce
9c46589f6005fd0f7433e024e0d705fdd6038e53
[ "Apache-2.0" ]
null
null
null
shop/src/transaction_logic.py
gryan12/anonymous_ecommerce
9c46589f6005fd0f7433e024e0d705fdd6038e53
[ "Apache-2.0" ]
null
null
null
shop/src/transaction_logic.py
gryan12/anonymous_ecommerce
9c46589f6005fd0f7433e024e0d705fdd6038e53
[ "Apache-2.0" ]
null
null
null
import logging import random import time import src.support.outbound_routing as ob from src.support.creds import build_cred, build_proof_request, build_schema, build_credential_proposal, build_proof_proposal import src.support.settings as config # This file containst the functions that perform transaction-specific # ...
35.51751
124
0.663453
0
0
0
0
0
0
0
0
5,021
0.275033
1db911440c02b6ae5ac0e07ff149aaf4416a4ce3
2,843
py
Python
pymath/renders.py
Lafrite/pyMath
9888e12661d07754568493ab47b5d896349d3784
[ "Apache-2.0" ]
null
null
null
pymath/renders.py
Lafrite/pyMath
9888e12661d07754568493ab47b5d896349d3784
[ "Apache-2.0" ]
null
null
null
pymath/renders.py
Lafrite/pyMath
9888e12661d07754568493ab47b5d896349d3784
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 from .render import Render from .fraction import Fraction from .generic import first_elem, last_elem __all__ = ['post2in_fix', 'tex_render', 'txt_render'] # ------------------------ # A infix to postfix list convertor p2i_infix = {"+": "+", "-": "-", "*": "*", "/" : "/", ":":...
27.336538
85
0.500528
0
0
0
0
0
0
0
0
1,065
0.374604
1db923da6962bff441110d6f89fea97b0bd0f082
1,813
py
Python
examples/wide_and_deep_example.py
meta-soul/MetaSpore
e6fbc12c6a3139df76c87215b16f9dba65962ec7
[ "Apache-2.0" ]
32
2022-03-30T10:24:00.000Z
2022-03-31T16:19:15.000Z
examples/wide_and_deep_example.py
meta-soul/MetaSpore
e6fbc12c6a3139df76c87215b16f9dba65962ec7
[ "Apache-2.0" ]
null
null
null
examples/wide_and_deep_example.py
meta-soul/MetaSpore
e6fbc12c6a3139df76c87215b16f9dba65962ec7
[ "Apache-2.0" ]
3
2022-03-30T10:28:57.000Z
2022-03-30T11:37:39.000Z
# # To run locally, execute: # # spark-submit --master local[2] wide_and_deep_example.py # S3_ROOT_DIR = 's3://{YOUR_S3_BUCKET}/{YOUR_S3_PATH}/' batch_size = 100 worker_count = 1 server_count = 1 import metaspore as ms spark = ms.spark.get_session(batch_size=batch_size, worker_count=wo...
37.770833
92
0.665196
0
0
0
0
0
0
0
0
395
0.217871
1db9945d0a006ee0eef48ac4ca55f27881406e8a
1,213
py
Python
O3/_10_bias_variance_tradeoff/bias_variance_tradeoff.py
ShAlireza/ML-Tries
4516be7a3275c9bdedd7bd258800be384b6b34f0
[ "MIT" ]
null
null
null
O3/_10_bias_variance_tradeoff/bias_variance_tradeoff.py
ShAlireza/ML-Tries
4516be7a3275c9bdedd7bd258800be384b6b34f0
[ "MIT" ]
null
null
null
O3/_10_bias_variance_tradeoff/bias_variance_tradeoff.py
ShAlireza/ML-Tries
4516be7a3275c9bdedd7bd258800be384b6b34f0
[ "MIT" ]
null
null
null
"""The bias-variance tradeoff Often, researchers use the terms "bias" and "variance" or "bias- variance tradeoff" to describe the performance of a model—that is, you may stumble upon talks, books, or articles where people say that a model has a "high variance" or "high bias." So, what does that mea...
46.653846
82
0.751031
0
0
0
0
0
0
0
0
1,214
0.999177
1db9aba6d555320304b7768349db8870cdc9782b
496
py
Python
pytronlinks/__init__.py
wahyubram82/PytronAI
52953461727cda6f60fedf802b748352095ba6ec
[ "BSD-3-Clause" ]
2
2016-12-04T03:03:40.000Z
2018-05-21T15:28:45.000Z
pytronlinks/__init__.py
wahyubram82/PytronAI
52953461727cda6f60fedf802b748352095ba6ec
[ "BSD-3-Clause" ]
2
2019-02-24T17:04:03.000Z
2021-04-12T13:00:08.000Z
pytronlinks/__init__.py
wahyubram82/PytronAI
52953461727cda6f60fedf802b748352095ba6ec
[ "BSD-3-Clause" ]
6
2016-11-20T15:08:29.000Z
2020-07-08T12:36:30.000Z
# -*- coding: UTF-8 -*- """ Pytron - Links Mark II Interface ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Links for Python :copyright: (c) 2016 by Scott Doucet / aka: traBpUkciP. :license: BSD, see LICENSE for more details. """ from .client import * __copyright__ = 'Copyright 2016 by traBpUkciP' __versi...
18.37037
59
0.612903
0
0
0
0
0
0
0
0
358
0.721774
1db9f8268801e37ed09678dd7bdfdf9e618fd8da
2,324
py
Python
tests/test_nestedprops.py
atviriduomenys/spinta
77a10e201f8cdc63143fce7996fd0898acb1ff58
[ "MIT" ]
2
2019-03-14T06:41:14.000Z
2019-03-26T11:48:14.000Z
tests/test_nestedprops.py
sirex/spinta
77a10e201f8cdc63143fce7996fd0898acb1ff58
[ "MIT" ]
44
2019-04-05T15:52:45.000Z
2022-03-30T07:41:33.000Z
tests/test_nestedprops.py
sirex/spinta
77a10e201f8cdc63143fce7996fd0898acb1ff58
[ "MIT" ]
1
2019-04-01T09:54:27.000Z
2019-04-01T09:54:27.000Z
import pytest @pytest.mark.models( 'backends/mongo/report', 'backends/postgres/report', ) def test_update_object(model, app): app.authmodel(model, ['insert', 'patch', 'getone']) resp = app.post(f'/{model}', json={ 'status': 'ok', 'sync': { 'sync_revision': '1', ...
24.463158
55
0.449656
0
0
0
0
2,304
0.991394
0
0
705
0.303356
1dba0895c59eec6cd5b80fa99e70f9f9b7bf6507
1,979
py
Python
dockerpty/__init__.py
tedivm/dockerpty
f8d17d893c6758b7cc25825e99f6b02202632a97
[ "Apache-2.0" ]
129
2015-01-19T15:02:47.000Z
2022-03-28T07:46:46.000Z
dockerpty/__init__.py
tedivm/dockerpty
f8d17d893c6758b7cc25825e99f6b02202632a97
[ "Apache-2.0" ]
52
2015-01-01T11:22:23.000Z
2021-03-29T14:11:10.000Z
dockerpty/__init__.py
tedivm/dockerpty
f8d17d893c6758b7cc25825e99f6b02202632a97
[ "Apache-2.0" ]
71
2015-02-07T16:25:27.000Z
2022-02-06T02:34:18.000Z
# dockerpty. # # Copyright 2014 Chris Corbyn <chris@w3style.co.uk> # # 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 ap...
38.803922
97
0.71905
0
0
0
0
0
0
0
0
901
0.45528
1dbcfb725076b81e8d7c56d6791f6316aa039467
3,639
py
Python
django_documents_tools/utils.py
pik-software/django-documents-tools
57b3083175d2562af635f0cdde74a681248a444e
[ "BSD-3-Clause" ]
1
2019-12-07T15:51:08.000Z
2019-12-07T15:51:08.000Z
django_documents_tools/utils.py
pik-software/django-documents-tools
57b3083175d2562af635f0cdde74a681248a444e
[ "BSD-3-Clause" ]
9
2019-12-06T10:53:08.000Z
2020-07-06T06:47:45.000Z
django_documents_tools/utils.py
pik-software/django-documents-tools
57b3083175d2562af635f0cdde74a681248a444e
[ "BSD-3-Clause" ]
null
null
null
import os from collections import Counter from django.core.exceptions import ValidationError from django.utils import timezone from django.utils.deconstruct import deconstructible from django_documents_tools.exceptions import ( BusinessEntityCreationIsNotAllowedError) from django_documents_tools.manager import se...
38.712766
109
0.71091
473
0.129981
0
0
490
0.134652
0
0
339
0.093157
1dbddad7e6aa4ab9f3b4b98398e41967db617fa0
2,989
py
Python
database/models.py
zdresearch/Nettacker
6d1653df01fee06ac6906a3cb1beebed39c166ef
[ "Apache-2.0" ]
884
2020-09-26T01:12:09.000Z
2022-03-31T07:39:23.000Z
database/models.py
GeauxWeisbeck4/Nettacker
0d6a907f4528b42ff6460c8a1e58f73ae768b38e
[ "Apache-2.0" ]
185
2018-04-18T12:16:27.000Z
2020-09-25T10:37:23.000Z
database/models.py
GeauxWeisbeck4/Nettacker
0d6a907f4528b42ff6460c8a1e58f73ae768b38e
[ "Apache-2.0" ]
236
2020-09-26T22:19:29.000Z
2022-03-30T08:21:28.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import (Column, Integer, Text, DateTime) Base = declarative_base() class Report(Base): """ This class defines the tab...
28.740385
122
0.573101
2,720
0.910003
0
0
0
0
0
0
1,156
0.386751
1dbf1d60e9c6955adb19358c161e8059577649ad
12,712
py
Python
umigame/plotting.py
penguinwang96825/Umigame
98d647ab6f40df08fe31d6b3bc444afe229a914e
[ "Apache-2.0" ]
null
null
null
umigame/plotting.py
penguinwang96825/Umigame
98d647ab6f40df08fe31d6b3bc444afe229a914e
[ "Apache-2.0" ]
null
null
null
umigame/plotting.py
penguinwang96825/Umigame
98d647ab6f40df08fe31d6b3bc444afe229a914e
[ "Apache-2.0" ]
1
2021-11-01T14:35:32.000Z
2021-11-01T14:35:32.000Z
import matplotlib import matplotlib.pyplot as plt import seaborn as sns import pandas as pd import numpy as np import empyrical as ep from matplotlib.ticker import FuncFormatter def plot_returns(returns, live_start_date=None, ax=None): """ Plots raw returns over time. Bac...
29.910588
87
0.590387
0
0
0
0
0
0
0
0
5,524
0.43455
1dc11d56c934455980afcc662ca3cdb1b2a2b283
154
py
Python
anuvaad-etl/anuvaad-extractor/document-processor/block-segmenter/src/routes/__init__.py
srihari-nagaraj/anuvaad
b09b01a033a033e97db6e404c088e0e6332053e4
[ "MIT" ]
null
null
null
anuvaad-etl/anuvaad-extractor/document-processor/block-segmenter/src/routes/__init__.py
srihari-nagaraj/anuvaad
b09b01a033a033e97db6e404c088e0e6332053e4
[ "MIT" ]
null
null
null
anuvaad-etl/anuvaad-extractor/document-processor/block-segmenter/src/routes/__init__.py
srihari-nagaraj/anuvaad
b09b01a033a033e97db6e404c088e0e6332053e4
[ "MIT" ]
null
null
null
from .routes import Bolck_Segmenter_BLUEPRINT from .routes import Bolck_Segmenter_BLUEPRINT_WF #from .documentstructure import DOCUMENTSTRUCTURE_BLUEPRINT
51.333333
59
0.902597
0
0
0
0
0
0
0
0
59
0.383117
1dc23bb69793b971dce241628dbacc086c1774ec
9,672
py
Python
pysnmp/HPN-ICF-8021PAE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/HPN-ICF-8021PAE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/HPN-ICF-8021PAE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module HPN-ICF-8021PAE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HPN-ICF-8021PAE-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:24:57 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default...
140.173913
1,548
0.770678
0
0
0
0
0
0
0
0
1,801
0.186208
1dc275b3994ff3b09ff1c61b8cf96f51f28bcb83
5,978
py
Python
spectools_ir/slab_fitter/helpers.py
erichegonzales/eriche-thesis
d3e1c67e05f4cf8f636a9365c819538f0f0affcb
[ "MIT" ]
4
2021-06-02T10:45:22.000Z
2022-01-20T13:49:13.000Z
spectools_ir/slab_fitter/helpers.py
erichegonzales/eriche-thesis
d3e1c67e05f4cf8f636a9365c819538f0f0affcb
[ "MIT" ]
null
null
null
spectools_ir/slab_fitter/helpers.py
erichegonzales/eriche-thesis
d3e1c67e05f4cf8f636a9365c819538f0f0affcb
[ "MIT" ]
null
null
null
import numpy as np from astroquery.hitran import Hitran from astropy import units as un from astropy.constants import c, k_B, h, u def calc_solid_angle(radius,distance): ''' Convenience function to calculate solid angle from radius and distance, assuming a disk shape. Parameters ---------- radius ...
50.235294
138
0.457009
0
0
0
0
0
0
0
0
3,205
0.536132
1dc2f03665e1c48e0dda7a55e8fc1d2784bcdfa3
6,513
py
Python
tests/test_models.py
hramezani/django-voting
f07707cb84765be76f7e9e985dd0523842b02ae7
[ "BSD-3-Clause" ]
null
null
null
tests/test_models.py
hramezani/django-voting
f07707cb84765be76f7e9e985dd0523842b02ae7
[ "BSD-3-Clause" ]
null
null
null
tests/test_models.py
hramezani/django-voting
f07707cb84765be76f7e9e985dd0523842b02ae7
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals from django.contrib.auth.models import User from django.test import TestCase from voting.models import Vote from test_app.models import Item # Basic voting ############################################################### class BasicVotingTests(TestCase): ...
41.484076
99
0.595425
6,148
0.943958
0
0
0
0
0
0
582
0.08936
1dc32d294e6a71baf5f6ed3e4a11842ec769ac1d
1,040
py
Python
CodeIA/venv/Lib/site-packages/absl/testing/_parameterized_async.py
Finasty-lab/IA-Python
286113504906fec11a5aa5fd1d12e38536b1c859
[ "Apache-2.0" ]
38,667
2015-01-01T00:15:34.000Z
2022-03-31T22:57:03.000Z
update/venv/lib/python3.9/site-packages/absl/testing/_parameterized_async.py
azizhudai/material-design-icons
63c5cb306073a9ecdfd3579f0f696746ab6305f6
[ "Apache-2.0" ]
1,192
2015-01-03T07:59:34.000Z
2022-03-31T13:22:26.000Z
update/venv/lib/python3.9/site-packages/absl/testing/_parameterized_async.py
azizhudai/material-design-icons
63c5cb306073a9ecdfd3579f0f696746ab6305f6
[ "Apache-2.0" ]
11,269
2015-01-01T08:41:17.000Z
2022-03-31T16:12:52.000Z
# Lint as: python3 # Copyright 2020 The Abseil 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 l...
30.588235
77
0.766346
0
0
0
0
99
0.095192
74
0.071154
770
0.740385
1dc3eb0778658965db00b73aafa4a9ead618309c
10,149
py
Python
app/ImagePreprocessing.py
sadpotatoes/G6capstone-AI_Education
e6ae82a607b74a052a3bb4d7d7d5b2462b5b9e23
[ "MIT" ]
null
null
null
app/ImagePreprocessing.py
sadpotatoes/G6capstone-AI_Education
e6ae82a607b74a052a3bb4d7d7d5b2462b5b9e23
[ "MIT" ]
null
null
null
app/ImagePreprocessing.py
sadpotatoes/G6capstone-AI_Education
e6ae82a607b74a052a3bb4d7d7d5b2462b5b9e23
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Feb 8 11:20:09 2020 @author: Donovan """ class ImagePreprocessing: """@package ImagePreprocessing This class extracts a number of features from the images and saves them in a CSV to be used by the machine learning class. """ import cv2 #conda in...
37.869403
127
0.558282
10,055
0.990738
0
0
0
0
0
0
3,031
0.29865
1dc47681c1599227aeabca5e06abcb71ffb15e6e
1,349
py
Python
www.geofabrik.de/__poly2geojson.py
0xC70FF3/maps-playground
cad0031a11d1c245adbff6981e3dc5921332393c
[ "MIT" ]
null
null
null
www.geofabrik.de/__poly2geojson.py
0xC70FF3/maps-playground
cad0031a11d1c245adbff6981e3dc5921332393c
[ "MIT" ]
null
null
null
www.geofabrik.de/__poly2geojson.py
0xC70FF3/maps-playground
cad0031a11d1c245adbff6981e3dc5921332393c
[ "MIT" ]
null
null
null
import json import os def main(): features = { "type": "FeatureCollection", "features": [] } directory = "poly/" for file in os.listdir(directory): if file.endswith(".poly"): name = os.path.basename(file).split(".")[0] with open(os.path.join(directory, f...
31.372093
86
0.468495
0
0
0
0
0
0
0
0
182
0.134915
1dc562d3f5acb7cb3b986082452a776619fd60b4
881
py
Python
kafka/optstest.py
peterhogan/python
bc6764f7794a862ff0d138bad80f1d6313984dcd
[ "MIT" ]
null
null
null
kafka/optstest.py
peterhogan/python
bc6764f7794a862ff0d138bad80f1d6313984dcd
[ "MIT" ]
null
null
null
kafka/optstest.py
peterhogan/python
bc6764f7794a862ff0d138bad80f1d6313984dcd
[ "MIT" ]
null
null
null
from optparse import OptionParser kafkabroker = "" kafkatopic = "" rssfile = "" helpstring = """Usage: newsreader.py [OPTIONS]... -f <RSS_FILE> <KAFKA_BROKER> <KAFKA_TOPIC> Read news articles from XML rss feeds specified in <RSS_FILE> Feeds must be separated by newlines Feeds to be ignored can be prefixed with # Ma...
32.62963
95
0.669694
0
0
0
0
0
0
0
0
726
0.824064
1dc5a50b94883d015b44bc01453e7a7183a5e0f8
636
py
Python
Shuffle an Array.py
HalShaw/Leetcode
27c52aac5a8ecc5b5f02e54096a001920661b4bb
[ "MIT" ]
1
2016-12-22T04:09:25.000Z
2016-12-22T04:09:25.000Z
Shuffle an Array.py
HalShaw/Leetcode
27c52aac5a8ecc5b5f02e54096a001920661b4bb
[ "MIT" ]
null
null
null
Shuffle an Array.py
HalShaw/Leetcode
27c52aac5a8ecc5b5f02e54096a001920661b4bb
[ "MIT" ]
null
null
null
from random import shuffle#自带洗牌方法 from copy import deepcopy class Solution(object): def __init__(self, nums): """ :type nums: List[int] :type size: int """ self.nums=nums def reset(self): """ Resets the array to its original configurati...
21.931034
69
0.551887
621
0.894813
0
0
0
0
0
0
381
0.548991
1dc85a966947c3cfd792ac63592206b7beb44ee8
11,319
py
Python
ml3/mbrl_utils.py
neha191091/LearningToLearn
3619d27bb3b7a836d9423dfbdd8da82460d4fa73
[ "MIT" ]
76
2020-12-11T02:15:20.000Z
2021-11-16T10:26:45.000Z
ml3/mbrl_utils.py
neha191091/LearningToLearn
3619d27bb3b7a836d9423dfbdd8da82460d4fa73
[ "MIT" ]
2
2021-04-08T21:06:48.000Z
2021-09-09T13:48:59.000Z
ml3/mbrl_utils.py
neha191091/LearningToLearn
3619d27bb3b7a836d9423dfbdd8da82460d4fa73
[ "MIT" ]
18
2020-12-24T14:18:19.000Z
2022-03-14T02:23:02.000Z
# Copyright (c) Facebook, Inc. and its affiliates. import numpy as np from termcolor import colored import logging import torch.nn as nn import torch.utils.data log = logging.getLogger(__name__) import torch import numpy as np import math class Dataset(torch.utils.data.Dataset): def __init__(self, x, y): ...
33.488166
118
0.606767
10,024
0.885591
0
0
0
0
0
0
2,221
0.196219
1dc89df2fe8619ca2bff4d7c4037856cb3d50bae
323
py
Python
src/write.py
toodom02/img-to-css
a8ccd899ca18f86f68f8dcdac7854b0a142841c2
[ "MIT" ]
null
null
null
src/write.py
toodom02/img-to-css
a8ccd899ca18f86f68f8dcdac7854b0a142841c2
[ "MIT" ]
null
null
null
src/write.py
toodom02/img-to-css
a8ccd899ca18f86f68f8dcdac7854b0a142841c2
[ "MIT" ]
null
null
null
from . import config def write_to_css(css): f = open( f"output/{'b' if config.bmethod else 'p'}/{config.filename}.css", "w") f.write(css) f.close() def write_to_HTML(html): f = open( f"output/{'b' if config.bmethod else 'p'}/{config.filename}.html", "w") f.write(html) f.close...
20.1875
79
0.582043
0
0
0
0
0
0
0
0
135
0.417957
1dc9c27b442dd4cf3069aed11e33ffad02388e03
307
py
Python
test/tests/marshal_test.py
jvkersch/pyston
2c7e7a5e0ed7a0a8b4528919f855fa8336b43902
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
test/tests/marshal_test.py
jvkersch/pyston
2c7e7a5e0ed7a0a8b4528919f855fa8336b43902
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
test/tests/marshal_test.py
jvkersch/pyston
2c7e7a5e0ed7a0a8b4528919f855fa8336b43902
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
import marshal o = [-1, 1.23456789, complex(1.2, 3.4)] o += [True, False, None] o += ["Hello World!", u"Hello World!"] o += [{ "Key" : "Value" }, set(["Set"]), frozenset(["FrozenSet"]), (1, 2, 3), [1, 2, 3]] for i in o: s = marshal.dumps(i) r = marshal.loads(s) print "Dumping:", i, "Loaded", r
30.7
88
0.537459
0
0
0
0
0
0
0
0
75
0.2443
1dca8369ce474af0f5d87fe2a557846435779fc6
1,956
py
Python
tests/test_reader.py
goiosunsw/audacity.py
899fa99e11e0345f95a563ea3c72b0d98f84e646
[ "MIT" ]
1
2018-01-05T02:06:04.000Z
2018-01-05T02:06:04.000Z
tests/test_reader.py
goiosunsw/audacity.py
899fa99e11e0345f95a563ea3c72b0d98f84e646
[ "MIT" ]
null
null
null
tests/test_reader.py
goiosunsw/audacity.py
899fa99e11e0345f95a563ea3c72b0d98f84e646
[ "MIT" ]
null
null
null
import unittest import os import sys import argparse import numpy as np import audacity as aud print('Module file:') print(aud.__file__) SCRIPT_DIR = os.path.split(os.path.realpath(__file__))[0] PACKAGE_DIR = os.path.realpath(os.path.join(SCRIPT_DIR,'..')) DATA_DIR = os.path.join(PACKAGE_DIR, 'data') TEST_FILE_1 = ...
26.432432
75
0.644683
1,039
0.531186
0
0
0
0
0
0
241
0.123211
1dcac33d4a64b986ef5357a7616bac8feaec924f
1,715
py
Python
src/models/predict_model.py
Chrypapado/Garbage_Classification
92c8627a430fca305fc5fb38880b6464a6edb9a2
[ "FTL" ]
null
null
null
src/models/predict_model.py
Chrypapado/Garbage_Classification
92c8627a430fca305fc5fb38880b6464a6edb9a2
[ "FTL" ]
1
2021-06-20T13:55:56.000Z
2021-06-20T13:55:56.000Z
src/models/predict_model.py
Chrypapado/Garbage_Classification
92c8627a430fca305fc5fb38880b6464a6edb9a2
[ "FTL" ]
null
null
null
import argparse import sys from pathlib import Path import matplotlib.pyplot as plt import torch import torchvision.transforms as transforms from model import ResNet from PIL import Image if __name__ == '__main__': # Arguments parser = argparse.ArgumentParser(description='Training arguments') parser.add_a...
35.729167
75
0.683382
0
0
0
0
0
0
0
0
291
0.169679
1dcbbd2677c54b75d412f37ba6ff6de126f5a9fa
248
py
Python
tests/test_lightcurve.py
moemyself3/lightcurator
0848435a170fea1d8979a416068ad88f7d8012a2
[ "MIT" ]
2
2019-03-20T15:11:22.000Z
2020-05-31T01:55:03.000Z
tests/test_lightcurve.py
moemyself3/lightcurator
0848435a170fea1d8979a416068ad88f7d8012a2
[ "MIT" ]
18
2019-03-20T06:42:17.000Z
2021-01-24T04:57:08.000Z
tests/test_lightcurve.py
moemyself3/lightcurator
0848435a170fea1d8979a416068ad88f7d8012a2
[ "MIT" ]
null
null
null
import unittest from lightcurator import lightcurve as lc class TestLightcuratorMethods(unittest.TestCase): def test_matchcat(self): cc = lc.matchcat(23) self.assertEqual(cc, 1) if __name__ == '__main__': unittest.main()
20.666667
49
0.709677
140
0.564516
0
0
0
0
0
0
10
0.040323
1dccc5743e94de53f95b5ccf3e289dd5436b798d
17,756
py
Python
baselines/deepq/assembly/data/plot_result.py
DengYuelin/baselines-assembly
d40171845349395f0ed389d725873b389b08f94f
[ "MIT" ]
1
2022-03-23T02:35:05.000Z
2022-03-23T02:35:05.000Z
baselines/deepq/assembly/data/plot_result.py
DengYuelin/baselines-assembly
d40171845349395f0ed389d725873b389b08f94f
[ "MIT" ]
null
null
null
baselines/deepq/assembly/data/plot_result.py
DengYuelin/baselines-assembly
d40171845349395f0ed389d725873b389b08f94f
[ "MIT" ]
3
2018-12-20T10:10:57.000Z
2020-08-07T10:12:57.000Z
# -*- coding: utf-8 -*- """ # @Time : 24/10/18 2:40 PM # @Author : ZHIMIN HOU # @FileName: plot_result.py # @Software: PyCharm # @Github : https://github.com/hzm2016 """ import collections import matplotlib.pyplot as plt import numpy as np import pickle import copy as cp from baselines.deepq.assembly.src.value_f...
42.785542
153
0.592926
0
0
0
0
0
0
0
0
8,474
0.476335
1dcf47342d8ac127388b110b95bb6666da395ea7
895
py
Python
repacolors/palette/__init__.py
dyuri/repacolors
4556efeb262529dde4586dad78ac7ff64d4dedf5
[ "MIT" ]
1
2020-02-29T17:05:06.000Z
2020-02-29T17:05:06.000Z
repacolors/palette/__init__.py
dyuri/repacolors
4556efeb262529dde4586dad78ac7ff64d4dedf5
[ "MIT" ]
null
null
null
repacolors/palette/__init__.py
dyuri/repacolors
4556efeb262529dde4586dad78ac7ff64d4dedf5
[ "MIT" ]
null
null
null
from repacolors import ColorScale from .colorbrewer import PALETTES as CBPALETTES PALETTES = { "ryb": ["#fe2713", "#fd5307", "#fb9900", "#fabc00", "#fefe34", "#d1e92c", "#66b032", "#0492ce", "#0347fe", "#3e01a4", "#8600af", "#a7194b"], "rybw3": ["#FE2712", "#FC600A", "#FB9902", "#FCCC1A", "#FEFE33", "#B2D732"...
30.862069
146
0.607821
0
0
0
0
0
0
0
0
278
0.310615
1dcff6dd57331f977b210a82d3eb44c337f97160
765
py
Python
src/util.py
sgtpepperpt/cowrie-qemu
bf03e1a87af24c53290fd626efd7a5865ae0aa2f
[ "BSD-3-Clause" ]
1
2019-06-05T08:33:52.000Z
2019-06-05T08:33:52.000Z
src/util.py
sgtpepperpt/cowrie-qemu
bf03e1a87af24c53290fd626efd7a5865ae0aa2f
[ "BSD-3-Clause" ]
null
null
null
src/util.py
sgtpepperpt/cowrie-qemu
bf03e1a87af24c53290fd626efd7a5865ae0aa2f
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2019 Guilherme Borges <guilhermerosasborges@gmail.com> # See the COPYRIGHT file for more information import subprocess import time def ping(guest_ip): out = subprocess.run(['ping', '-c 1', guest_ip], capture_output=True) return out.returncode == 0 def nmap_ssh(guest_ip): out = subproces...
23.181818
83
0.665359
0
0
0
0
0
0
0
0
206
0.269281
1dd03130b6b9f8c9a6d3932e46dd12cf5f030098
65,125
py
Python
library/load_partial.py
binaryburn/pan-fca
77f8b47d21a7e5a11b6de0bc7b051837c02b770f
[ "Apache-2.0" ]
26
2019-02-08T16:16:01.000Z
2021-05-03T22:42:02.000Z
library/load_partial.py
binaryburn/pan-fca
77f8b47d21a7e5a11b6de0bc7b051837c02b770f
[ "Apache-2.0" ]
10
2019-02-26T14:22:23.000Z
2021-09-23T23:23:16.000Z
library/load_partial.py
binaryburn/pan-fca
77f8b47d21a7e5a11b6de0bc7b051837c02b770f
[ "Apache-2.0" ]
43
2019-02-09T13:46:45.000Z
2020-10-06T08:38:58.000Z
# -*- coding: utf-8 -*- ## Developed by Uriah Bojorquez from PyQt5.QtWidgets import QMainWindow, QApplication, QFileDialog, QMessageBox, QSizePolicy, QDialog from PyQt5.QtGui import QColor, QPalette from PyQt5 import QtCore from qt_iron_skillet_ui import Ui_Dialog as IRONSKILLET from qt_config_ui_panorama import Ui_Dia...
42.845395
432
0.572468
62,657
0.962104
0
0
0
0
0
0
22,620
0.347332
1dd06073161d1a6fc8153bce35244468454bcf1e
3,173
py
Python
lab_2/find_lcs_length_optimized_test.py
alenashuvar/2020-2-level-labs
aa5185fae19b386c741faa8dcff3424872642090
[ "MIT" ]
3
2020-09-05T16:27:19.000Z
2021-03-12T12:08:00.000Z
lab_2/find_lcs_length_optimized_test.py
alenashuvar/2020-2-level-labs
aa5185fae19b386c741faa8dcff3424872642090
[ "MIT" ]
100
2020-09-06T16:36:23.000Z
2020-12-12T06:18:47.000Z
lab_2/find_lcs_length_optimized_test.py
alenashuvar/2020-2-level-labs
aa5185fae19b386c741faa8dcff3424872642090
[ "MIT" ]
62
2020-09-06T10:49:43.000Z
2021-09-10T07:07:53.000Z
""" Tests find_lcs_optimized function """ import timeit import unittest from memory_profiler import memory_usage from lab_2.main import find_lcs_length_optimized, tokenize_big_file class FindLcsOptimizedTest(unittest.TestCase): """ Checks for find_lcs_optimized function """ def test_find_lcs_length_...
42.306667
95
0.656792
2,988
0.941696
0
0
0
0
0
0
967
0.304759
1dd0b855c9e3e5a1470c944f9d3f6ea76ae0c1de
754
py
Python
second/app.py
angelsoffury/microservices-basic
ad33b9be82e68b0363f6da676ca1d9e9c71b8f0e
[ "BSD-Source-Code" ]
1
2022-01-20T16:36:35.000Z
2022-01-20T16:36:35.000Z
second/app.py
angelsoffury/microservices-basic
ad33b9be82e68b0363f6da676ca1d9e9c71b8f0e
[ "BSD-Source-Code" ]
null
null
null
second/app.py
angelsoffury/microservices-basic
ad33b9be82e68b0363f6da676ca1d9e9c71b8f0e
[ "BSD-Source-Code" ]
null
null
null
from flask import Flask, jsonify, render_template import requests app = Flask(__name__) @app.route('/') def intro(): url = "http://backend-service:6002/" response = requests.get(url) info = response.json()["info"] return render_template('index.html', data=info, title='Hello!') @app.route('/info') d...
23.5625
79
0.656499
0
0
0
0
574
0.761273
0
0
211
0.279841
1dd48b3bcb89fa1bccfb199439da3963a4087136
56,257
py
Python
autokernel/autokernel.py
oddlama/autokernel
cd165cbc9467385c356d4a3d31b524a40d574edd
[ "MIT" ]
49
2020-04-09T14:36:05.000Z
2022-03-19T12:57:54.000Z
autokernel/autokernel.py
oddlama/autokernel
cd165cbc9467385c356d4a3d31b524a40d574edd
[ "MIT" ]
1
2021-08-09T19:11:00.000Z
2021-11-10T17:12:17.000Z
autokernel/autokernel.py
oddlama/autokernel
cd165cbc9467385c356d4a3d31b524a40d574edd
[ "MIT" ]
4
2020-04-16T19:59:34.000Z
2021-12-17T12:57:37.000Z
import autokernel.kconfig import autokernel.config import autokernel.lkddb import autokernel.node_detector import autokernel.symbol_tracking from autokernel import __version__ from autokernel import log from autokernel import util from autokernel.symbol_tracking import set_value_detect_conflicts import argparse import...
40.914182
297
0.654087
6,708
0.119226
0
0
0
0
0
0
19,322
0.343423
1dd75c9d95a741f7dad3e09aacf0d3d73196b181
19,007
py
Python
game.py
henryboisdequin/Tower-Defense-Game
687f509da179678f205b53705abec4b8ad31b188
[ "MIT" ]
null
null
null
game.py
henryboisdequin/Tower-Defense-Game
687f509da179678f205b53705abec4b8ad31b188
[ "MIT" ]
null
null
null
game.py
henryboisdequin/Tower-Defense-Game
687f509da179678f205b53705abec4b8ad31b188
[ "MIT" ]
null
null
null
from Enemy.bosses import * from Enemy.desert_enemies import * from Enemy.field_enemies import * from Enemy.graveyard_enemies import * from Enemy.magic_enemies import * from Enemy.moon_enemies import * from Enemy.winter_enemies import * from Enemy.fire_enemies import * from menu import VerticalMenu from Buildings.archer...
37.637624
119
0.50755
14,001
0.736623
0
0
0
0
0
0
3,157
0.166097
1dd7cafd4dc5d45bf6df84b8e8c9c05df721a1fb
1,177
py
Python
zendesk_tickets/client.py
ibrechin/django-zendesk-tickets
f4651836d6a0aaad46fcd90229e482bf4673e9ac
[ "MIT" ]
4
2017-04-12T08:11:07.000Z
2022-01-26T16:30:52.000Z
zendesk_tickets/client.py
ibrechin/django-zendesk-tickets
f4651836d6a0aaad46fcd90229e482bf4673e9ac
[ "MIT" ]
6
2015-12-07T12:13:49.000Z
2022-03-21T12:19:10.000Z
zendesk_tickets/client.py
ibrechin/django-zendesk-tickets
f4651836d6a0aaad46fcd90229e482bf4673e9ac
[ "MIT" ]
2
2021-04-11T06:31:40.000Z
2021-07-26T06:20:33.000Z
import json from urllib.parse import urljoin from django.conf import settings import requests def get_ticket_endpoint(): return urljoin(settings.ZENDESK_BASE_URL, '/api/v2/tickets.json') def zendesk_auth(): return ( '{username}/token'.format(username=settings.ZENDESK_API_USERNAME), settings...
26.155556
88
0.627018
0
0
0
0
0
0
0
0
239
0.203059
1dd87ba8ad5a67a4277d8da50db47d17748918d9
2,208
py
Python
pravash/servicenowplugin/xlr-servicenow-plugin-master/src/main/resources/servicenow/RequestApproval.py
amvasudeva/rapidata
7b6e984d24866f5cf474847cf462ac628427cf48
[ "Apache-2.0" ]
null
null
null
pravash/servicenowplugin/xlr-servicenow-plugin-master/src/main/resources/servicenow/RequestApproval.py
amvasudeva/rapidata
7b6e984d24866f5cf474847cf462ac628427cf48
[ "Apache-2.0" ]
7
2020-06-30T23:14:35.000Z
2021-08-02T17:08:05.000Z
pravash/servicenowplugin/xlr-servicenow-plugin-master/src/main/resources/servicenow/RequestApproval.py
amvasudeva/rapidata
7b6e984d24866f5cf474847cf462ac628427cf48
[ "Apache-2.0" ]
null
null
null
# # THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS # FOR A PARTICULAR PURPOSE. THIS CODE AND INFORMATION ARE NOT SUPPORTED BY XEBIALABS. # import sys, string, time import c...
27.6
98
0.688859
0
0
0
0
0
0
0
0
754
0.341486
1dd93c15d98d6b6545270d6a317fbfaaacd7b210
1,238
py
Python
migrations/versions/5f810254fdd4_initial_migration7.py
moha-abdul/minute-pitch
4f36d09c61f24fdb983eef2a5b00dc925c34464d
[ "MIT" ]
null
null
null
migrations/versions/5f810254fdd4_initial_migration7.py
moha-abdul/minute-pitch
4f36d09c61f24fdb983eef2a5b00dc925c34464d
[ "MIT" ]
null
null
null
migrations/versions/5f810254fdd4_initial_migration7.py
moha-abdul/minute-pitch
4f36d09c61f24fdb983eef2a5b00dc925c34464d
[ "MIT" ]
null
null
null
"""Initial Migration7 Revision ID: 5f810254fdd4 Revises: c0a6d11f2e37 Create Date: 2018-09-17 20:20:59.265902 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '5f810254fdd4' down_revision = 'c0a6d11f2e37' branch_labels = None depends_on = None def upgrade(): ...
31.74359
98
0.693053
0
0
0
0
0
0
0
0
559
0.451535
1dda73b8c7b716967c6538d6b9f6cbcc77ed0163
625
py
Python
config/api_router.py
Kubiniet/Mailing-messages
14810eaa6bef7895a22b2f5e435e9db410772e1e
[ "MIT" ]
1
2022-03-30T14:24:10.000Z
2022-03-30T14:24:10.000Z
config/api_router.py
Kubiniet/Mailing-messages
14810eaa6bef7895a22b2f5e435e9db410772e1e
[ "MIT" ]
null
null
null
config/api_router.py
Kubiniet/Mailing-messages
14810eaa6bef7895a22b2f5e435e9db410772e1e
[ "MIT" ]
null
null
null
from django.conf import settings from rest_framework.routers import DefaultRouter, SimpleRouter from message_service.mailing.api.views import ( ClientsViewSet, MailingViewSet, MessageViewSet, ) from message_service.users.api.views import UserViewSet if settings.DEBUG: router = DefaultRouter() else: ...
26.041667
67
0.7808
0
0
0
0
0
0
0
0
72
0.1152
1ddaabf5260925241474b1020f7b0e3d597421f5
126
py
Python
fts/backends/xapian.py
filwaitman/django-fts
af9f10d760e543288c21a8f4239288c2e415b9e9
[ "BSD-3-Clause" ]
null
null
null
fts/backends/xapian.py
filwaitman/django-fts
af9f10d760e543288c21a8f4239288c2e415b9e9
[ "BSD-3-Clause" ]
9
2020-02-11T23:38:20.000Z
2022-03-11T23:16:29.000Z
3rdparty/odeoncg-django-fts-odeon-9ea3a64/fts/backends/unported/xapian.py
cltrudeau/django-yacon
d462c88cf98bf8eef50a0696b265fa28dfdb40eb
[ "MIT" ]
2
2017-09-10T11:27:51.000Z
2019-12-28T00:12:58.000Z
from fts.backends.base import InvalidFtsBackendError raise InvalidFtsBackendError("Xapian FTS backend not yet implemented")
42
70
0.849206
0
0
0
0
0
0
0
0
40
0.31746
1ddc7b1c9df94d1d6c3913b9a8bd616213efe883
525
py
Python
Lab2/Exercise3.py
alex99q/python3-lab-exercises
dfa96908f589d2e03ce3a21a3326fd7365d62fcb
[ "MIT" ]
null
null
null
Lab2/Exercise3.py
alex99q/python3-lab-exercises
dfa96908f589d2e03ce3a21a3326fd7365d62fcb
[ "MIT" ]
null
null
null
Lab2/Exercise3.py
alex99q/python3-lab-exercises
dfa96908f589d2e03ce3a21a3326fd7365d62fcb
[ "MIT" ]
null
null
null
import random secret_num = random.randrange(1, 11, 1) player_num = int(input("Guess a number from 1 to 10: ")) list_of_player_nums = [player_num] while player_num != secret_num: if player_num > secret_num: print("Too high!") elif player_num < secret_num: print("Too low!") pl...
27.631579
66
0.660952
0
0
0
0
0
0
0
0
91
0.173333
1ddcb5a365134a0fc6fdd220c36768b3059a205b
363
py
Python
rotor_tm_traj/traj/Optimization/entire_path/generate_poly.py
xl2623/RotorTM
4ef88f1fdb2137ff7f6e7f0acbf9105b99773ed8
[ "BSD-3-Clause" ]
1
2022-01-10T13:43:11.000Z
2022-01-10T13:43:11.000Z
rotor_tm_traj/traj/Optimization/entire_path/generate_poly.py
xl2623/RotorTM
4ef88f1fdb2137ff7f6e7f0acbf9105b99773ed8
[ "BSD-3-Clause" ]
null
null
null
rotor_tm_traj/traj/Optimization/entire_path/generate_poly.py
xl2623/RotorTM
4ef88f1fdb2137ff7f6e7f0acbf9105b99773ed8
[ "BSD-3-Clause" ]
3
2022-01-21T03:04:38.000Z
2022-01-25T15:05:31.000Z
#! /usr/bin/env python from math import factorial import numpy as np # test passed def generate_poly(max_exponent,max_diff,symbol): f=np.zeros((max_diff+1, max_exponent+1), dtype=float) for k in range(max_diff+1): for i in range(max_exponent+1): if (i - k) >= 0: f[k,i] = factorial(i)*symbol**(i-k)/facto...
24.2
55
0.663912
0
0
0
0
0
0
0
0
35
0.096419
1dde29d159ca50f530c3329ce64e235d58752ef0
3,389
py
Python
tests/train.py
lbaret/pytorch_functions
fd6f6b167074acba9981f0dbbf3ad20e93444ff2
[ "MIT" ]
1
2021-04-17T13:33:58.000Z
2021-04-17T13:33:58.000Z
tests/train.py
lbaret/pytorch_functions
fd6f6b167074acba9981f0dbbf3ad20e93444ff2
[ "MIT" ]
null
null
null
tests/train.py
lbaret/pytorch_functions
fd6f6b167074acba9981f0dbbf3ad20e93444ff2
[ "MIT" ]
null
null
null
# --- # jupyter: # jupytext: # formats: ipynb,py:light # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.11.0 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- import torch def train...
29.215517
95
0.553851
0
0
0
0
0
0
0
0
981
0.289466