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
ae8a6e4bdddcbc9fac409eabb59750fe2825a857
3,785
py
Python
exp/ground/infonce_acc_plot/plot.py
ChopinSharp/info-ground
12fba3c478b806f2fe068faac81237fd0f458b80
[ "Apache-2.0" ]
56
2020-09-21T07:41:08.000Z
2022-01-10T13:28:36.000Z
exp/ground/infonce_acc_plot/plot.py
ChopinSharp/info-ground
12fba3c478b806f2fe068faac81237fd0f458b80
[ "Apache-2.0" ]
5
2020-08-26T15:50:29.000Z
2022-01-04T07:53:07.000Z
exp/ground/infonce_acc_plot/plot.py
ChopinSharp/info-ground
12fba3c478b806f2fe068faac81237fd0f458b80
[ "Apache-2.0" ]
15
2020-08-24T16:36:20.000Z
2022-01-17T12:51:45.000Z
import os import numpy as np import matplotlib.pyplot as plt import utils.io as io from global_constants import misc_paths def get_infonce_data(infonce_dir,layers): infonce_data = io.load_json_object( os.path.join( infonce_dir, f'infonce_{layers}_layer.json')) iters = [] lo...
33.495575
115
0.622985
0
0
0
0
0
0
0
0
984
0.259974
ae8ae6c3af80fec8fe0b9de9dbde6389fdebdfe5
889
py
Python
sciwx/demo/canvas4_tool.py
Pad0y/imagepy
23f41b64ade02f94b566b0d23a4b6459c1a1578d
[ "BSD-4-Clause" ]
null
null
null
sciwx/demo/canvas4_tool.py
Pad0y/imagepy
23f41b64ade02f94b566b0d23a4b6459c1a1578d
[ "BSD-4-Clause" ]
null
null
null
sciwx/demo/canvas4_tool.py
Pad0y/imagepy
23f41b64ade02f94b566b0d23a4b6459c1a1578d
[ "BSD-4-Clause" ]
null
null
null
import sys sys.path.append("../../") from skimage.data import astronaut, camera from sciwx.canvas import ICanvas from sciapp.action import Tool import wx class TestTool(Tool): def __init__(self): Tool.__init__(self) def mouse_down(self, image, x, y, btn, **key): print( "x:%d y:%d...
22.794872
64
0.574803
517
0.581552
0
0
0
0
0
0
86
0.096738
ae8b36f89eab35825f3909abeb288a05a078f59a
5,416
py
Python
fairness/app.py
Tomcli/ffdl-knative
b68edaaa1717ac34c946e25d24198590012b0e20
[ "Apache-2.0" ]
2
2019-01-18T16:10:50.000Z
2019-10-24T11:42:31.000Z
fairness/app.py
Tomcli/ffdl-knative
b68edaaa1717ac34c946e25d24198590012b0e20
[ "Apache-2.0" ]
null
null
null
fairness/app.py
Tomcli/ffdl-knative
b68edaaa1717ac34c946e25d24198590012b0e20
[ "Apache-2.0" ]
null
null
null
import os from aif360.datasets import BinaryLabelDataset from aif360.metrics import ClassificationMetric import numpy as np import argparse import pandas as pd import boto3 import botocore import json from flask import Flask, request, abort from flask_cors import CORS app = Flask(__name__) CORS(app) def dataset_wrap...
41.984496
116
0.636263
0
0
0
0
547
0.100997
0
0
917
0.169313
ae8cd09d05a4a07cf96b19a5f1e50745c23583f0
1,352
py
Python
socialserver/conftest.py
niallasher/socialserver-neo
7e7d25d939133d149b56ccd54fbfa62d75cabb73
[ "MIT" ]
null
null
null
socialserver/conftest.py
niallasher/socialserver-neo
7e7d25d939133d149b56ccd54fbfa62d75cabb73
[ "MIT" ]
11
2022-03-10T04:55:09.000Z
2022-03-30T14:24:19.000Z
socialserver/conftest.py
niallasher/socialserver-neo
7e7d25d939133d149b56ccd54fbfa62d75cabb73
[ "MIT" ]
null
null
null
# Copyright (c) Niall Asher 2022 from os import remove, path, mkdir from socialserver.util.output import console from socialserver.util.config import config from socialserver import application from werkzeug.serving import make_server from threading import Thread class TestingServer(Thread): def __init__(self, ...
28.765957
87
0.713018
448
0.331361
0
0
0
0
0
0
339
0.25074
ae8d4fb7a13c8900171e04c43ef88541458c98e4
484
py
Python
wildlifecompliance/migrations/0258_auto_20190717_1102.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
1
2020-12-07T17:12:40.000Z
2020-12-07T17:12:40.000Z
wildlifecompliance/migrations/0258_auto_20190717_1102.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
14
2020-01-08T08:08:26.000Z
2021-03-19T22:59:46.000Z
wildlifecompliance/migrations/0258_auto_20190717_1102.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
15
2020-01-08T08:02:28.000Z
2021-11-03T06:48:32.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2019-07-17 03:02 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('wildlifecompliance', '0257_auto_20190717_1034'), ] operations = [ migration...
23.047619
58
0.636364
326
0.673554
0
0
0
0
0
0
146
0.301653
ae8f4daece742a4c95381dd42af1f242bb79321d
1,739
py
Python
trseeker/models/chromosome_model.py
ad3002/Lyrebird
8c0a186e32d61189f073401152c52a89bfed46ed
[ "MIT" ]
null
null
null
trseeker/models/chromosome_model.py
ad3002/Lyrebird
8c0a186e32d61189f073401152c52a89bfed46ed
[ "MIT" ]
null
null
null
trseeker/models/chromosome_model.py
ad3002/Lyrebird
8c0a186e32d61189f073401152c52a89bfed46ed
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # #@created: 08.09.2011 #@author: Aleksey Komissarov #@contact: [email protected] from PyExp import AbstractModel class ChomosomeModel(AbstractModel): ''' Chromosome model. Dumpable attributes: - "chr_genome", - "chr_number", - "chr_tax...
28.048387
87
0.496262
1,568
0.901668
0
0
0
0
0
0
823
0.47326
ae9051d6cbac2dfdb6778875e7c06650eadb0b18
448
py
Python
config.py
richardpanda/todo-api
40ee3cc3fa96fc58fa6721e92a057c01ac938273
[ "MIT" ]
null
null
null
config.py
richardpanda/todo-api
40ee3cc3fa96fc58fa6721e92a057c01ac938273
[ "MIT" ]
null
null
null
config.py
richardpanda/todo-api
40ee3cc3fa96fc58fa6721e92a057c01ac938273
[ "MIT" ]
null
null
null
import os from dotenv import load_dotenv load_dotenv() class Config(): DEBUG = True ENV = 'dev' JWT_SECRET = os.getenv('JWT_SECRET', 'secret') SQLALCHEMY_DATABASE_URI = os.getenv('DEV_DB_URI', 'sqlite://') SQLALCHEMY_TRACK_MODIFICATIONS = False TESTING = False class TestingConfig(Config): ...
20.363636
70
0.683036
385
0.859375
0
0
0
0
0
0
84
0.1875
ae913a111fa67bd457b4fc79bdf05c3e30106229
724
py
Python
src/DevicesAPP/migrations/0003_auto_20180418_1607.py
mizamae/HomeAutomation
8c462ee4c31c1fea6792cb19af66a4d2cf7bb2ca
[ "MIT" ]
null
null
null
src/DevicesAPP/migrations/0003_auto_20180418_1607.py
mizamae/HomeAutomation
8c462ee4c31c1fea6792cb19af66a4d2cf7bb2ca
[ "MIT" ]
9
2017-11-21T15:45:18.000Z
2022-02-11T03:37:54.000Z
src/DevicesAPP/migrations/0003_auto_20180418_1607.py
mizamae/HomeAutomation
8c462ee4c31c1fea6792cb19af66a4d2cf7bb2ca
[ "MIT" ]
1
2020-07-22T02:24:17.000Z
2020-07-22T02:24:17.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2018-04-18 14:07 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('DevicesAPP', '0002_auto_20180404_1557'), ] operations = [ migrations....
36.2
314
0.683702
566
0.781768
0
0
0
0
0
0
408
0.563536
ae91c071e030f6f6416a98aa6827070d9d7478ef
7,395
py
Python
backtoshops/notifs/views.py
RaphaelPrevost/Back2Shops
5f2d369e82fe2a7b9b3a6c55782319b23d142dfd
[ "CECILL-B" ]
null
null
null
backtoshops/notifs/views.py
RaphaelPrevost/Back2Shops
5f2d369e82fe2a7b9b3a6c55782319b23d142dfd
[ "CECILL-B" ]
6
2021-03-31T19:21:50.000Z
2022-01-13T01:46:09.000Z
backtoshops/notifs/views.py
RaphaelPrevost/Back2Shops
5f2d369e82fe2a7b9b3a6c55782319b23d142dfd
[ "CECILL-B" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################# # # Copyright © Dragon Dollar Limited # contact: [email protected] # # This software is a collection of webservices designed to provide a secure # and scalable framework to build e-commerce websites. # # This s...
36.975
85
0.652738
4,980
0.673337
0
0
0
0
0
0
2,188
0.295836
ae93028834095132f0d185515f7eb82644b3d574
478
py
Python
heap/1.py
miiiingi/algorithmstudy
75eaf97e2c41d7edf32eb4a57d4d7685c9218aba
[ "MIT" ]
null
null
null
heap/1.py
miiiingi/algorithmstudy
75eaf97e2c41d7edf32eb4a57d4d7685c9218aba
[ "MIT" ]
null
null
null
heap/1.py
miiiingi/algorithmstudy
75eaf97e2c41d7edf32eb4a57d4d7685c9218aba
[ "MIT" ]
null
null
null
import heapq def solution(scoville, K) : heapq.heapify(scoville) count = 0 while scoville : try : first = heapq.heappop(scoville) second = heapq.heappop(scoville) combine = first + second * 2 count += 1 heapq.heappush(scoville, combine)...
28.117647
45
0.523013
0
0
0
0
0
0
0
0
0
0
ae98e871311e8fb43a781a04df1f457c09b8bd46
587
py
Python
x_rebirth_station_calculator/station_data/modules/valley_forge.py
Phipsz/XRebirthStationCalculator
ac31c2f5816be34a7df2d7c4eb4bd5e01f7ff835
[ "MIT" ]
1
2016-04-17T11:00:22.000Z
2016-04-17T11:00:22.000Z
x_rebirth_station_calculator/station_data/modules/valley_forge.py
Phipsz/XRebirthStationCalculator
ac31c2f5816be34a7df2d7c4eb4bd5e01f7ff835
[ "MIT" ]
null
null
null
x_rebirth_station_calculator/station_data/modules/valley_forge.py
Phipsz/XRebirthStationCalculator
ac31c2f5816be34a7df2d7c4eb4bd5e01f7ff835
[ "MIT" ]
null
null
null
from x_rebirth_station_calculator.station_data.station_base import Module from x_rebirth_station_calculator.station_data.station_base import Production from x_rebirth_station_calculator.station_data.station_base import Consumption from x_rebirth_station_calculator.station_data import wares names = {'L044': 'Valley For...
39.133333
78
0.775128
0
0
0
0
0
0
0
0
47
0.080068
ae999dae84b2cf7e73c7d8ac63967bb8d105893f
652
py
Python
migrations/versions/e424d03ba260_.py
danielSbastos/gistified
96a8b61df4dbe54cc2e808734976c969e024976b
[ "MIT" ]
null
null
null
migrations/versions/e424d03ba260_.py
danielSbastos/gistified
96a8b61df4dbe54cc2e808734976c969e024976b
[ "MIT" ]
null
null
null
migrations/versions/e424d03ba260_.py
danielSbastos/gistified
96a8b61df4dbe54cc2e808734976c969e024976b
[ "MIT" ]
null
null
null
"""empty message Revision ID: e424d03ba260 Revises: ace8d095a26b Create Date: 2017-10-12 11:25:11.775853 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'e424d03ba260' down_revision = 'ace8d095a26b' branch_labels = None depends_on = None def upgrade(): # ...
22.482759
81
0.68865
0
0
0
0
0
0
0
0
384
0.588957
ae9c101bafb94a97148b51abc123ec5cc959835d
428
py
Python
backend/setup.py
erik/smiegel
34e9d132e241f2db4e96e84295588cd11d7c0164
[ "MIT" ]
null
null
null
backend/setup.py
erik/smiegel
34e9d132e241f2db4e96e84295588cd11d7c0164
[ "MIT" ]
null
null
null
backend/setup.py
erik/smiegel
34e9d132e241f2db4e96e84295588cd11d7c0164
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='smiegel', version='0.0', long_description=__doc__, packages=['smiegel'], include_package_data=True, author='Erik Price', description='Self hosted SMS mirroring service', license='MIT', install_requires=open('requirements.txt').readlines(), ...
22.526316
58
0.640187
0
0
0
0
0
0
0
0
143
0.334112
ae9ca2472d73373711675aa4fb19922a4e4088ab
1,558
py
Python
buycoins/ngnt.py
Youngestdev/buycoins-python
fa17600cfa92278d1c7f80f0a860e3ba7b5bc3b0
[ "MIT" ]
46
2021-02-06T07:29:22.000Z
2022-01-28T06:52:18.000Z
buycoins/ngnt.py
Youngestdev/buycoins-python
fa17600cfa92278d1c7f80f0a860e3ba7b5bc3b0
[ "MIT" ]
1
2021-04-05T12:40:38.000Z
2021-04-09T18:46:20.000Z
buycoins/ngnt.py
Youngestdev/buycoins-python
fa17600cfa92278d1c7f80f0a860e3ba7b5bc3b0
[ "MIT" ]
5
2021-02-06T08:02:19.000Z
2022-02-18T12:46:26.000Z
from buycoins.client import BuyCoinsClient from buycoins.exceptions import AccountError, ClientError, ServerError from buycoins.exceptions.utils import check_response class NGNT(BuyCoinsClient): """The NGNT class handles the generations of virtual bank deposit account.""" def create_deposit_account(self, acc...
35.409091
89
0.596919
1,388
0.890886
0
0
0
0
0
0
804
0.516046
ae9d77bf011601ea6bcbab318779c48b7e9a439f
1,510
py
Python
factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/azure_training_status/signals.py
piyushka17/azure-intelligent-edge-patterns
0d088899afb0022daa2ac434226824dba2c997c1
[ "MIT" ]
null
null
null
factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/azure_training_status/signals.py
piyushka17/azure-intelligent-edge-patterns
0d088899afb0022daa2ac434226824dba2c997c1
[ "MIT" ]
null
null
null
factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/azure_training_status/signals.py
piyushka17/azure-intelligent-edge-patterns
0d088899afb0022daa2ac434226824dba2c997c1
[ "MIT" ]
null
null
null
"""App Signals """ import logging from django.db.models.signals import post_save from django.dispatch import receiver from vision_on_edge.azure_training_status.models import TrainingStatus from vision_on_edge.notifications.models import Notification logger = logging.getLogger(__name__) @receiver(signal=post_save,...
33.555556
75
0.654305
0
0
0
0
1,216
0.805298
0
0
415
0.274834
ae9e92c6d74c509eb9f3ed8c37b24f34f450e293
2,526
py
Python
brilleaux_flask/brilleaux.py
digirati-co-uk/brilleaux
5061d96e60239380c052f70dd12c4bec830e80db
[ "MIT" ]
null
null
null
brilleaux_flask/brilleaux.py
digirati-co-uk/brilleaux
5061d96e60239380c052f70dd12c4bec830e80db
[ "MIT" ]
null
null
null
brilleaux_flask/brilleaux.py
digirati-co-uk/brilleaux
5061d96e60239380c052f70dd12c4bec830e80db
[ "MIT" ]
null
null
null
import json import brilleaux_settings import flask from flask_caching import Cache from flask_cors import CORS import logging import sys from pyelucidate.pyelucidate import async_items_by_container, format_results, mirador_oa app = flask.Flask(__name__) CORS(app) cache = Cache( app, config={"CACHE_TYPE": "filesyst...
32.805195
88
0.644497
0
0
0
0
1,896
0.750594
0
0
1,006
0.398258
8818024dcc74585344f5c0d78dbccf72a3196b14
1,253
py
Python
src/aioros_master/master.py
mgrrx/aioros_master
24e74e851d6a00fb6517d053d78c02ed8b8bede2
[ "Apache-2.0" ]
1
2020-09-01T07:29:21.000Z
2020-09-01T07:29:21.000Z
src/aioros_master/master.py
mgrrx/aioros_master
24e74e851d6a00fb6517d053d78c02ed8b8bede2
[ "Apache-2.0" ]
null
null
null
src/aioros_master/master.py
mgrrx/aioros_master
24e74e851d6a00fb6517d053d78c02ed8b8bede2
[ "Apache-2.0" ]
null
null
null
from typing import Optional from aiohttp.web import AppRunner # TODO fix import from aioros.graph_resource import get_local_address from .master_api_server import start_server from .param_cache import ParamCache from .registration_manager import RegistrationManager class Master: def __init__(self): se...
28.477273
72
0.656824
981
0.782921
0
0
0
0
714
0.569832
17
0.013567
881919bc42fa47660473b0dc049df1de113f468a
1,344
py
Python
models/agent.py
AfrinAyesha/data-service
09d4aa45b1f8b0340646739fb0cf17966541af9d
[ "MIT" ]
null
null
null
models/agent.py
AfrinAyesha/data-service
09d4aa45b1f8b0340646739fb0cf17966541af9d
[ "MIT" ]
null
null
null
models/agent.py
AfrinAyesha/data-service
09d4aa45b1f8b0340646739fb0cf17966541af9d
[ "MIT" ]
null
null
null
from db import db class AgentModel(db.Model): __tablename__ = 'agents' id = db.Column(db.Integer, primary_key=True) agent_id = db.Column(db.Integer, db.ForeignKey('users.id'), unique=True) customers = db.relationship("CustomerModel", backref='agent') name = db.Column(db.String(80)) email = db.C...
30.545455
123
0.638393
1,321
0.982887
0
0
243
0.180804
0
0
130
0.096726
881a66b8c5d567be876f01b26aae1838a9ef3f6f
421
py
Python
oa/migrations/0004_auto_20171023_1747.py
htwenhe/DJOA
3c2d384a983e42dedfd72561353ecf9370a02115
[ "MIT" ]
1
2017-10-31T02:37:37.000Z
2017-10-31T02:37:37.000Z
oa/migrations/0004_auto_20171023_1747.py
htwenhe/whoa
3c2d384a983e42dedfd72561353ecf9370a02115
[ "MIT" ]
1
2017-10-31T01:56:58.000Z
2017-10-31T01:57:03.000Z
oa/migrations/0004_auto_20171023_1747.py
htwenhe/whoa
3c2d384a983e42dedfd72561353ecf9370a02115
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.13 on 2017-10-23 09:47 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('oa', '0003_auto_20171023_1746'), ] operations = [ migrations.RenameField( ...
20.047619
48
0.598575
271
0.643705
0
0
0
0
0
0
122
0.289786
881a7473f1b598f91ff5fb6ca636049be01b75ae
836
py
Python
DateVersioning.py
EinarArnason/DateVersioning
8e5a5e89218eed6324f71c9377d7342a0fd60cbd
[ "MIT" ]
null
null
null
DateVersioning.py
EinarArnason/DateVersioning
8e5a5e89218eed6324f71c9377d7342a0fd60cbd
[ "MIT" ]
null
null
null
DateVersioning.py
EinarArnason/DateVersioning
8e5a5e89218eed6324f71c9377d7342a0fd60cbd
[ "MIT" ]
null
null
null
import time import subprocess import sys import logging class GitDirectoryError(Exception): """Directory not a git repository""" def generate(directory=".") -> str: commitDate = 0 try: commitDate = int( subprocess.check_output( "git show -s --format='%ct'", shell=True...
25.333333
71
0.600478
76
0.090909
0
0
0
0
0
0
151
0.180622
881a898ae26445fd0e94d07ff062d0f6af611593
520
py
Python
src/cli_report.py
dmitryvodop/vk_likechecker
3673ecf7548b3374aa5082bc69b7db1669f2f9c2
[ "MIT" ]
null
null
null
src/cli_report.py
dmitryvodop/vk_likechecker
3673ecf7548b3374aa5082bc69b7db1669f2f9c2
[ "MIT" ]
null
null
null
src/cli_report.py
dmitryvodop/vk_likechecker
3673ecf7548b3374aa5082bc69b7db1669f2f9c2
[ "MIT" ]
null
null
null
MAX_CONSOLE_LINE_LENGTH = 79 class CliReport: def __init__(self): self.is_initialized = False def print(self, string='', length=MAX_CONSOLE_LINE_LENGTH, end='\n'): if self.is_initialized: number_of_spaces = 0 if length > len(string): number_of_spaces = ...
34.666667
108
0.607692
488
0.938462
0
0
0
0
0
0
55
0.105769
881aadb872501d08df8bad8897f3a02a5ed64924
5,138
py
Python
s3splitmerge/merge.py
MacHu-GWU/s3splitmerge-project
873892158f4a2d0ee20f291e5d3b2a80f0bae1ba
[ "MIT" ]
null
null
null
s3splitmerge/merge.py
MacHu-GWU/s3splitmerge-project
873892158f4a2d0ee20f291e5d3b2a80f0bae1ba
[ "MIT" ]
null
null
null
s3splitmerge/merge.py
MacHu-GWU/s3splitmerge-project
873892158f4a2d0ee20f291e5d3b2a80f0bae1ba
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import typing import pandas as pd import smart_open import awswrangler as wr from .helpers import ( check_enumeration_s3_key_string, get_key_size_all_objects, group_s3_objects_no_larger_than, ) from .options import ZFILL def merge_csv( s3_client, source_bucket: str, so...
29.528736
87
0.610743
0
0
0
0
0
0
0
0
603
0.117361
881b4859fbf99cdf056286c05c45307fee24239c
5,316
py
Python
maraboupy/test/test_query.py
yuvaljacoby/Marabou-1
553b780ef2e2cfe349b3954adc433a27af37a50f
[ "BSD-3-Clause" ]
null
null
null
maraboupy/test/test_query.py
yuvaljacoby/Marabou-1
553b780ef2e2cfe349b3954adc433a27af37a50f
[ "BSD-3-Clause" ]
null
null
null
maraboupy/test/test_query.py
yuvaljacoby/Marabou-1
553b780ef2e2cfe349b3954adc433a27af37a50f
[ "BSD-3-Clause" ]
1
2021-06-29T06:54:29.000Z
2021-06-29T06:54:29.000Z
# Supress warnings caused by tensorflow import warnings warnings.filterwarnings('ignore', category = DeprecationWarning) warnings.filterwarnings('ignore', category = PendingDeprecationWarning) import pytest from .. import Marabou import numpy as np import os # Global settings TOL = 1e-4 ...
40.892308
112
0.702784
0
0
0
0
0
0
0
0
2,327
0.437735
881f656efbfa94bdb3489d35c6e705e30fa814e3
2,703
py
Python
blog/migrations/0006_auto_20220424_1910.py
moboroboo/training-site
053628c9ce131c3d88c621b837bf67fdd3c59cf2
[ "MIT" ]
null
null
null
blog/migrations/0006_auto_20220424_1910.py
moboroboo/training-site
053628c9ce131c3d88c621b837bf67fdd3c59cf2
[ "MIT" ]
null
null
null
blog/migrations/0006_auto_20220424_1910.py
moboroboo/training-site
053628c9ce131c3d88c621b837bf67fdd3c59cf2
[ "MIT" ]
null
null
null
# Generated by Django 3.2.12 on 2022-04-24 14:40 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django_jalali.db.models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
35.565789
146
0.593045
2,620
0.932053
0
0
0
0
0
0
654
0.232657
88203bc1014682e00a112fd76476f7cca8c80dfe
6,825
py
Python
module4-acid-and-database-scalability-tradeoffs/titanic_queries.py
imdeja/DS-Unit-3-Sprint-2-SQL-and-Databases
100546c4c8acdecd3361661705f373a2bcd3e7c9
[ "MIT" ]
null
null
null
module4-acid-and-database-scalability-tradeoffs/titanic_queries.py
imdeja/DS-Unit-3-Sprint-2-SQL-and-Databases
100546c4c8acdecd3361661705f373a2bcd3e7c9
[ "MIT" ]
null
null
null
module4-acid-and-database-scalability-tradeoffs/titanic_queries.py
imdeja/DS-Unit-3-Sprint-2-SQL-and-Databases
100546c4c8acdecd3361661705f373a2bcd3e7c9
[ "MIT" ]
null
null
null
import os from dotenv import load_dotenv import pandas as pd import psycopg2 from psycopg2.extras import execute_values import json import numpy as np load_dotenv() DB_NAME = os.getenv("DB_NAME") DB_USER = os.getenv("DB_USER") DB_PASSWORD = os.getenv("DB_PASSWORD") DB_HOST= os.getenv("DB_HOST") conn = psycopg2.con...
42.12963
89
0.74989
0
0
0
0
0
0
0
0
4,237
0.620806
88209768adc40766b4eb56ddccfe9cdaf5de8651
2,530
py
Python
flask-example/data-server/A.py
YJDoc2/Kerberos-Examples
cc5bb8fcbec52ab84e6f0e88d0843f8c564f0689
[ "MIT" ]
null
null
null
flask-example/data-server/A.py
YJDoc2/Kerberos-Examples
cc5bb8fcbec52ab84e6f0e88d0843f8c564f0689
[ "MIT" ]
null
null
null
flask-example/data-server/A.py
YJDoc2/Kerberos-Examples
cc5bb8fcbec52ab84e6f0e88d0843f8c564f0689
[ "MIT" ]
null
null
null
import json from flask import Flask, render_template, redirect, Response, jsonify,request from flask_cors import CORS from Kerberos import Server,Server_Error app = Flask(__name__, static_folder='./static', static_url_path='/') cors = CORS(app) #! This server uses distinct routes for different type of requests #? We ...
38.923077
110
0.679447
0
0
0
0
1,904
0.752569
0
0
1,121
0.443083
8820ecc0654f8927cee2ae38d218e22ba45c5793
3,050
py
Python
scripts/computeDice.py
STORM-IRIT/pcednet-supp
68d2a2a62bfb7b450bf241c2251ee3bb99d18c7e
[ "CC-BY-3.0" ]
7
2022-01-28T14:59:11.000Z
2022-03-17T05:09:28.000Z
scripts/computeDice.py
STORM-IRIT/pcednet-supp
68d2a2a62bfb7b450bf241c2251ee3bb99d18c7e
[ "CC-BY-3.0" ]
4
2021-11-18T13:50:21.000Z
2022-02-25T15:10:06.000Z
scripts/computeDice.py
STORM-IRIT/pcednet-supp
68d2a2a62bfb7b450bf241c2251ee3bb99d18c7e
[ "CC-BY-3.0" ]
null
null
null
import sys, glob from os import listdir, remove from os.path import dirname, join, isfile, abspath from io import StringIO import numpy as np import utilsmodule as um script_path = dirname(abspath(__file__)) datasetPath = join(script_path,"data/") e = 'shrec' ### Compute the dice coefficient used in Table 1, # E Mo...
26.99115
107
0.615738
0
0
0
0
0
0
0
0
1,080
0.35375
8821e5692a8f5f25d979cb717b556c74dc17abc9
23
py
Python
pyfirebase/__init__.py
andela-cnnadi/python-fire
11868007a7ff7fec45ed87cec18466e351cdb5ab
[ "MIT" ]
14
2016-08-31T06:24:33.000Z
2019-12-12T11:23:21.000Z
pyfirebase/__init__.py
andela-cnnadi/python-fire
11868007a7ff7fec45ed87cec18466e351cdb5ab
[ "MIT" ]
2
2016-09-16T12:40:51.000Z
2016-12-27T06:26:39.000Z
pyfirebase/__init__.py
andela-cnnadi/python-fire
11868007a7ff7fec45ed87cec18466e351cdb5ab
[ "MIT" ]
5
2016-08-30T21:16:32.000Z
2020-11-05T20:39:52.000Z
from firebase import *
11.5
22
0.782609
0
0
0
0
0
0
0
0
0
0
8823f9acf9979c7b6037b4ffb5d08ae416a7a660
1,094
py
Python
plugins/dbnd-test-scenarios/src/dbnd_test_scenarios/integrations/mlflow_example.py
ipattarapong/dbnd
7bd65621c46c73e078eb628f994127ad4c7dbd1a
[ "Apache-2.0" ]
224
2020-01-02T10:46:37.000Z
2022-03-02T13:54:08.000Z
plugins/dbnd-test-scenarios/src/dbnd_test_scenarios/integrations/mlflow_example.py
ipattarapong/dbnd
7bd65621c46c73e078eb628f994127ad4c7dbd1a
[ "Apache-2.0" ]
16
2020-03-11T09:37:58.000Z
2022-01-26T10:22:08.000Z
plugins/dbnd-test-scenarios/src/dbnd_test_scenarios/integrations/mlflow_example.py
ipattarapong/dbnd
7bd65621c46c73e078eb628f994127ad4c7dbd1a
[ "Apache-2.0" ]
24
2020-03-24T13:53:50.000Z
2022-03-22T11:55:18.000Z
import logging from random import randint, random from mlflow import ( active_run, end_run, get_tracking_uri, log_metric, log_param, start_run, ) from mlflow.tracking import MlflowClient from dbnd import task logger = logging.getLogger(__name__) @task def mlflow_example(): logger.info...
20.259259
75
0.662706
0
0
0
0
703
0.642596
0
0
297
0.271481
88256ef9dd2f406213232667e9ac4bf44aae2ebc
312
py
Python
src/models/functions/__init__.py
takedarts/skipresnet
d6f1e16042f8433a287355009e17e4e5768ad319
[ "MIT" ]
3
2022-02-03T13:25:12.000Z
2022-02-04T16:12:23.000Z
src/models/functions/__init__.py
takedarts/skipresnet
d6f1e16042f8433a287355009e17e4e5768ad319
[ "MIT" ]
null
null
null
src/models/functions/__init__.py
takedarts/skipresnet
d6f1e16042f8433a287355009e17e4e5768ad319
[ "MIT" ]
1
2022-02-04T12:28:02.000Z
2022-02-04T12:28:02.000Z
from .channelpad import channelpad from .conv2d_same import conv2d_same from .padding import get_same_padding, pad_same from .shakedrop import shakedrop from .sigaug import signal_augment from .sigmoid import h_sigmoid from .stack import adjusted_concat, adjusted_stack from .swish import h_swish, swish
34.666667
51
0.826923
0
0
0
0
0
0
0
0
0
0
8826f802253e79fbdf200b9f603f2a1bd96164e1
2,673
py
Python
notes/conditionals/if_blocks.py
mcorley-gba/IntroCS21-22
a823e17f2cb618be0e67468cb15f48873ae85152
[ "MIT" ]
null
null
null
notes/conditionals/if_blocks.py
mcorley-gba/IntroCS21-22
a823e17f2cb618be0e67468cb15f48873ae85152
[ "MIT" ]
null
null
null
notes/conditionals/if_blocks.py
mcorley-gba/IntroCS21-22
a823e17f2cb618be0e67468cb15f48873ae85152
[ "MIT" ]
null
null
null
#Conditional Tests HW - Due Monday # 13 Tests --> 1 True and 1 False for each #If Statements #Simplest structure of an if statement: # if conditional_test: # do something <-- Instructions/commands #my_age = 13 #if my_age >= 18: # print("You are old enough to vote.") # print("Are you registered to vote?...
29.373626
76
0.716423
0
0
0
0
0
0
0
0
2,219
0.830153
8828b21c1d7aa3ef1f1b5b77da67057776db662c
3,798
py
Python
make_histogram.py
hijinks/python-bcet
3e2fac66c82fb3f1c02e8e19153f5e3e97f57aca
[ "MIT" ]
null
null
null
make_histogram.py
hijinks/python-bcet
3e2fac66c82fb3f1c02e8e19153f5e3e97f57aca
[ "MIT" ]
null
null
null
make_histogram.py
hijinks/python-bcet
3e2fac66c82fb3f1c02e8e19153f5e3e97f57aca
[ "MIT" ]
null
null
null
#!/usr/bin/env python # BCET Workflow __author__ = 'Sam Brooke' __date__ = 'September 2017' __copyright__ = '(C) 2017, Sam Brooke' __email__ = "[email protected]" import os import georasters as gr import matplotlib.pyplot as plt import numpy as np from optparse import OptionParser import fnmatch import re from scipy....
27.926471
120
0.700105
0
0
0
0
0
0
0
0
985
0.259347
882c6ccf86c14fc6738ccff54229e3586e042456
1,989
py
Python
subsurfaceCollabor8/frame_utils.py
digitalcollaboration-collabor8/subsurfaceSampleClient
f5009f3c7740d718392c0a9a2ec6179a51fd28cf
[ "Apache-2.0" ]
null
null
null
subsurfaceCollabor8/frame_utils.py
digitalcollaboration-collabor8/subsurfaceSampleClient
f5009f3c7740d718392c0a9a2ec6179a51fd28cf
[ "Apache-2.0" ]
3
2021-03-08T08:32:39.000Z
2021-07-29T08:56:49.000Z
subsurfaceCollabor8/frame_utils.py
digitalcollaboration-collabor8/subsurfaceSampleClient
f5009f3c7740d718392c0a9a2ec6179a51fd28cf
[ "Apache-2.0" ]
null
null
null
from pandas import DataFrame import os def frame_to_csv(frame:DataFrame,output_file:str,decimal_format=',', float_format=None,date_format=None,quote_char='"',no_data_repr='',sep=';'): """ Converts a pandas dataframe to a csv file Parameters ---------- output_file -> path to file to write to d...
33.15
94
0.712418
0
0
0
0
0
0
0
0
1,151
0.578683
882fe548d37c7d24cd165d77437c6ae5e4632773
1,562
py
Python
integrationtest/vm/ha/test_ui_stop.py
sherry546/zstack-woodpecker
54a37459f2d72ce6820974feaa6eb55772c3d2ce
[ "Apache-2.0" ]
1
2021-03-21T12:41:11.000Z
2021-03-21T12:41:11.000Z
integrationtest/vm/ha/test_ui_stop.py
sherry546/zstack-woodpecker
54a37459f2d72ce6820974feaa6eb55772c3d2ce
[ "Apache-2.0" ]
null
null
null
integrationtest/vm/ha/test_ui_stop.py
sherry546/zstack-woodpecker
54a37459f2d72ce6820974feaa6eb55772c3d2ce
[ "Apache-2.0" ]
1
2017-05-19T06:40:40.000Z
2017-05-19T06:40:40.000Z
''' Integration Test for HA mode with UI stop on one node. @author: Quarkonics ''' import zstackwoodpecker.test_util as test_util import zstackwoodpecker.test_state as test_state import zstackwoodpecker.test_lib as test_lib import zstackwoodpecker.operations.resource_operations as res_ops import zstackwoo...
37.190476
97
0.733675
0
0
0
0
0
0
0
0
421
0.269526
8832c2e7a770e80b777ea2950239b133e7919983
4,736
py
Python
scope/device/andor/lowlevel.py
drew-sinha/rpc-scope
268864097b5b7d123a842f216adc446ec6b32d01
[ "MIT" ]
1
2017-11-10T17:23:11.000Z
2017-11-10T17:23:11.000Z
scope/device/andor/lowlevel.py
drew-sinha/rpc-scope
268864097b5b7d123a842f216adc446ec6b32d01
[ "MIT" ]
5
2018-08-01T03:05:35.000Z
2018-11-29T22:11:25.000Z
scope/device/andor/lowlevel.py
drew-sinha/rpc-scope
268864097b5b7d123a842f216adc446ec6b32d01
[ "MIT" ]
3
2016-05-25T18:58:35.000Z
2018-11-29T23:40:45.000Z
# This code is licensed under the MIT License (see LICENSE file for details) import ctypes import atexit # import all the autogenerated functions and definitions # note: also pulls in common which provides AndorError and several other constants from . import wrapper from .wrapper import * # Provided for reference pu...
31.157895
117
0.714949
0
0
0
0
0
0
0
0
2,287
0.482897
88398ae2c4128d5752a93cafe6efa48eb9858180
3,718
py
Python
tests/integration/questionnaire/test_questionnaire_save_sign_out.py
uk-gov-mirror/ONSdigital.eq-survey-runner
b3a67a82347d024177f7fa6bf05499f47ece7ea5
[ "MIT" ]
27
2015-10-02T17:27:54.000Z
2021-04-05T12:39:16.000Z
tests/integration/questionnaire/test_questionnaire_save_sign_out.py
uk-gov-mirror/ONSdigital.eq-survey-runner
b3a67a82347d024177f7fa6bf05499f47ece7ea5
[ "MIT" ]
1,836
2015-09-16T09:59:03.000Z
2022-03-30T14:27:06.000Z
tests/integration/questionnaire/test_questionnaire_save_sign_out.py
uk-gov-mirror/ONSdigital.eq-survey-runner
b3a67a82347d024177f7fa6bf05499f47ece7ea5
[ "MIT" ]
20
2016-09-09T16:56:12.000Z
2021-11-12T06:09:27.000Z
from app.validation.error_messages import error_messages from tests.integration.integration_test_case import IntegrationTestCase class TestSaveSignOut(IntegrationTestCase): def test_save_sign_out_with_mandatory_question_not_answered(self): # We can save and go to the sign-out page without having to fill ...
35.75
149
0.655998
3,586
0.964497
0
0
0
0
0
0
1,633
0.439215
883ab54b46f93c6809f1bedd1cd71a0ee4774d4e
16,479
py
Python
model/UniGNN.py
czc567/UniGNN
bbb061f393b847ff6c7c20cab9e1ecb8f1c3eb96
[ "MIT" ]
null
null
null
model/UniGNN.py
czc567/UniGNN
bbb061f393b847ff6c7c20cab9e1ecb8f1c3eb96
[ "MIT" ]
null
null
null
model/UniGNN.py
czc567/UniGNN
bbb061f393b847ff6c7c20cab9e1ecb8f1c3eb96
[ "MIT" ]
null
null
null
import torch import torch.nn as nn, torch.nn.functional as F from torch.nn.parameter import Parameter import math from torch_scatter import scatter from torch_geometric.utils import softmax # NOTE: can not tell which implementation is better statistically def glorot(tensor): if tensor is not None: s...
32.311765
141
0.550155
15,548
0.943504
0
0
0
0
0
0
2,870
0.174161
883dc5b6a2c7b8f6d8eeeaa196713dc1735f14e3
23,515
py
Python
emolog_pc/emolog/emotool/main.py
alon/emolog
ed6e9e30a46ffc04282527ee73aa3bb8605e2dc9
[ "MIT" ]
null
null
null
emolog_pc/emolog/emotool/main.py
alon/emolog
ed6e9e30a46ffc04282527ee73aa3bb8605e2dc9
[ "MIT" ]
2
2019-01-29T15:27:34.000Z
2021-03-06T20:00:16.000Z
emolog_pc/emolog/emotool/main.py
alon/emolog
ed6e9e30a46ffc04282527ee73aa3bb8605e2dc9
[ "MIT" ]
1
2019-01-03T18:44:54.000Z
2019-01-03T18:44:54.000Z
#!/bin/env python3 # import os # os.environ['PYTHONASYNCIODEBUG'] = '1' # import logging # logging.getLogger('asyncio').setLevel(logging.DEBUG) from datetime import datetime import traceback import atexit import argparse import os from os import path import sys import logging from struct import pack import random fro...
39.991497
180
0.671444
1,585
0.067404
119
0.005061
336
0.014289
8,096
0.344291
6,255
0.266
8840790f6010bda703bcb00bd31eb62706621ff5
799
py
Python
Workflows/pyOpenMS/OpenSwathFeatureXMLToTSV_basics.py
Leon-Bichmann/Tutorials
c9183f98b162833cbca59e6d71a5ae3cc4375b31
[ "BSD-3-Clause" ]
null
null
null
Workflows/pyOpenMS/OpenSwathFeatureXMLToTSV_basics.py
Leon-Bichmann/Tutorials
c9183f98b162833cbca59e6d71a5ae3cc4375b31
[ "BSD-3-Clause" ]
null
null
null
Workflows/pyOpenMS/OpenSwathFeatureXMLToTSV_basics.py
Leon-Bichmann/Tutorials
c9183f98b162833cbca59e6d71a5ae3cc4375b31
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys def main(options): # test parameter handling print options.infile, options.traml_in, options.outfile def handle_args(): import argparse usage = "" usage += "\nOpenSwathFeatureXMLToTSV −− Converts a featureXML to a mProphet tsv." parse...
799
799
0.68836
0
0
0
0
0
0
0
0
803
1
88409ac26b662efb26f26a13bba8f1ae10c3260d
487
py
Python
test.py
exc4l/kanjigrid
9e7dc0dadb578fc7ee4129aca5abf0a3767bc6dd
[ "MIT" ]
1
2021-03-23T14:10:59.000Z
2021-03-23T14:10:59.000Z
test.py
exc4l/kanjigrid
9e7dc0dadb578fc7ee4129aca5abf0a3767bc6dd
[ "MIT" ]
null
null
null
test.py
exc4l/kanjigrid
9e7dc0dadb578fc7ee4129aca5abf0a3767bc6dd
[ "MIT" ]
null
null
null
import kanjigrid gridder = kanjigrid.Gridder("Kanji", 40, "Header", 52) grading = kanjigrid.Jouyou() with open("test.txt", "r", encoding="utf-8") as f: data = f.read() gridder.feed_text(data) grid = gridder.make_grid(grading, outside_of_grading=True, stats=True, bar_graph=True) grid.save("test.png") if "𠮟" in g...
28.647059
86
0.702259
0
0
0
0
0
0
0
0
92
0.183633
8843966a1736b059d72b2035589a76126f469706
12,738
py
Python
spectrl/rl/ars_discrete.py
luigiberducci/dirl
5f7997aea20dfb7347ebdee66de9bea4e6cd3c62
[ "MIT" ]
6
2021-11-11T00:29:18.000Z
2022-03-18T13:56:51.000Z
spectrl/rl/ars_discrete.py
luigiberducci/dirl
5f7997aea20dfb7347ebdee66de9bea4e6cd3c62
[ "MIT" ]
null
null
null
spectrl/rl/ars_discrete.py
luigiberducci/dirl
5f7997aea20dfb7347ebdee66de9bea4e6cd3c62
[ "MIT" ]
4
2021-11-26T03:11:02.000Z
2022-01-13T02:32:29.000Z
import torch import numpy as np import time from spectrl.util.rl import get_rollout, test_policy class NNParams: ''' Defines the neural network architecture. Parameters: state_dim: int (continuous state dimension for nn input) action_dim: int (action space dimension for nn output) ...
33.87766
100
0.622861
6,314
0.495682
0
0
0
0
0
0
4,052
0.318103
8844d83df31129aa57478e21727d0b2f1ba309a4
640
py
Python
backends/c-scpu/config.py
guoshzhao/antares
30a6338dd6ce4100922cf26ec515e615b449f76a
[ "MIT" ]
null
null
null
backends/c-scpu/config.py
guoshzhao/antares
30a6338dd6ce4100922cf26ec515e615b449f76a
[ "MIT" ]
null
null
null
backends/c-scpu/config.py
guoshzhao/antares
30a6338dd6ce4100922cf26ec515e615b449f76a
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import subprocess def get_execution_parallism(): return 1 def do_native_translation_v2(codeset, **kwargs): kernel_name, in_args, out_args, body = codeset expand_args = ' '.join([f'{x[0]}* {x[1]} = ({x[0]}*)__args[{i}];' for i, x in enu...
22.857143
111
0.673438
0
0
0
0
0
0
0
0
371
0.579688
884592962cd70a31da5127626d57fbccde00c157
408
py
Python
grab-exceptions.py
Plexical/pymod.me
b3bf1a8c6e15fa02d1b58a8f296ba60aae60d18a
[ "MIT" ]
1
2016-06-13T19:17:03.000Z
2016-06-13T19:17:03.000Z
grab-exceptions.py
Plexical/pymod.me
b3bf1a8c6e15fa02d1b58a8f296ba60aae60d18a
[ "MIT" ]
3
2017-05-10T08:29:20.000Z
2018-02-07T20:57:16.000Z
grab-exceptions.py
Plexical/pydoc.me
b3bf1a8c6e15fa02d1b58a8f296ba60aae60d18a
[ "MIT" ]
null
null
null
import sys from pymod import index from pymod.index import modules from pymod.mappings import url out = lambda s: sys.stdout.write(s) out('{ ') dom = index.domof('https://docs.python.org/2/library/exceptions.html') for el in (el for el in dom.findAll('a', {'class': 'headerlink'}) if '-' not in el.attrs['...
25.5
70
0.644608
0
0
0
0
0
0
0
0
119
0.291667
8845d03ee4e193d770ba1a3bdc365691fd17435f
878
py
Python
src/10_reactive/db.py
rurumimic/concurrency-python
3eb7875dd4848872226f8035d295a31a40e32bf0
[ "MIT" ]
null
null
null
src/10_reactive/db.py
rurumimic/concurrency-python
3eb7875dd4848872226f8035d295a31a40e32bf0
[ "MIT" ]
null
null
null
src/10_reactive/db.py
rurumimic/concurrency-python
3eb7875dd4848872226f8035d295a31a40e32bf0
[ "MIT" ]
null
null
null
import sqlite3 from collections import namedtuple from functional import seq with sqlite3.connect(':memory:') as conn: conn.execute('CREATE TABLE user (id INT, name TEXT)') conn.commit() User = namedtuple('User', 'id name') seq([(1, 'pedro'), (2, 'fritz')]).to_sqlite3( conn, 'INSERT INTO user...
31.357143
84
0.555809
0
0
0
0
0
0
0
0
342
0.389522
88466faa8fda4f9d6ebd884891fe47a03fd3b5e7
298
py
Python
run_wrf/configs/test/config_test_jobsched.py
matzegoebel/run_wrf
cbbbb0ec818416d9b24698d369f70ad9ba8cb801
[ "BSD-2-Clause" ]
2
2021-01-15T11:05:37.000Z
2021-01-15T11:05:39.000Z
run_wrf/configs/test/config_test_jobsched.py
matzegoebel/run_wrf
cbbbb0ec818416d9b24698d369f70ad9ba8cb801
[ "BSD-2-Clause" ]
null
null
null
run_wrf/configs/test/config_test_jobsched.py
matzegoebel/run_wrf
cbbbb0ec818416d9b24698d369f70ad9ba8cb801
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Settings for launch_jobs.py Test settings for automated tests. To test run with job scheduler @author: Matthias Göbel """ from run_wrf.configs.test.config_test import * from copy import deepcopy params = deepcopy(params) params["vmem"] = 500
16.555556
46
0.728188
0
0
0
0
0
0
0
0
181
0.605351
8846dbf904bdc1c8ef7bcf560fdf92013cf493ce
362
py
Python
Chapter 02/Chap02_Example2.9.py
bpbpublications/Programming-Techniques-using-Python
49b785f37e95a3aad1d36cef51e219ac56e5e9f0
[ "MIT" ]
null
null
null
Chapter 02/Chap02_Example2.9.py
bpbpublications/Programming-Techniques-using-Python
49b785f37e95a3aad1d36cef51e219ac56e5e9f0
[ "MIT" ]
null
null
null
Chapter 02/Chap02_Example2.9.py
bpbpublications/Programming-Techniques-using-Python
49b785f37e95a3aad1d36cef51e219ac56e5e9f0
[ "MIT" ]
null
null
null
s1 = "I am a beginner in python \nI will study the concepts to be familiar with this language.\nIt is a very user friendly language" print("The long string is: \n" + s1) # -- L1 s2 = """The long string is: I am a beginner in python I will study the concepts to be familiar with this language. It is a very user ...
40.222222
133
0.69337
0
0
0
0
0
0
0
0
319
0.881215
884a95c1571d9440eebd2ee5b658dea1bc3ebe28
5,177
py
Python
requirements/docutils-0.18/setup.py
QuentinTournier40/AnimationFreeCAD
8eaff8356ec68b948a721b83a6888b652278db8a
[ "Apache-2.0" ]
null
null
null
requirements/docutils-0.18/setup.py
QuentinTournier40/AnimationFreeCAD
8eaff8356ec68b948a721b83a6888b652278db8a
[ "Apache-2.0" ]
null
null
null
requirements/docutils-0.18/setup.py
QuentinTournier40/AnimationFreeCAD
8eaff8356ec68b948a721b83a6888b652278db8a
[ "Apache-2.0" ]
1
2022-02-03T08:03:30.000Z
2022-02-03T08:03:30.000Z
#!/usr/bin/env python # $Id: setup.py 8864 2021-10-26 11:46:55Z grubert $ # Copyright: This file has been placed in the public domain. from __future__ import print_function import glob import os import sys try: from setuptools import setup except ImportError: print('Error: The "setuptools" module, which is r...
35.703448
78
0.603631
0
0
0
0
0
0
0
0
3,794
0.732857
884b8595b246a25d1c4c0a76969e4887169352b3
3,171
py
Python
tests/plugins/remove/test_rm_cli.py
jtpavlock/moe
6f053c8c53f92686013657bda676b00f97edd230
[ "MIT" ]
14
2021-09-04T11:42:18.000Z
2022-02-04T05:11:46.000Z
tests/plugins/remove/test_rm_cli.py
jtpavlock/Moe
6f053c8c53f92686013657bda676b00f97edd230
[ "MIT" ]
56
2021-05-26T00:00:46.000Z
2021-08-08T17:14:31.000Z
tests/plugins/remove/test_rm_cli.py
jtpavlock/moe
6f053c8c53f92686013657bda676b00f97edd230
[ "MIT" ]
1
2021-07-22T21:55:21.000Z
2021-07-22T21:55:21.000Z
"""Tests the ``remove`` plugin.""" from unittest.mock import patch import pytest import moe @pytest.fixture def mock_rm(): """Mock the `remove_item()` api call.""" with patch("moe.plugins.remove.remove_item", autospec=True) as mock_rm: yield mock_rm @pytest.fixture def tmp_rm_config(tmp_config): ...
33.03125
84
0.666667
2,721
0.858089
157
0.049511
343
0.108168
0
0
906
0.285714
884fed80e4bfbef3b30a1a62c33621b37d15f8a9
2,089
py
Python
include/PyBool_builder.py
tyler-utah/PBL
842a3fab949528bc03ee03d1f802e4163604d0f5
[ "BSD-2-Clause-FreeBSD" ]
9
2015-04-03T10:40:35.000Z
2021-02-18T21:54:54.000Z
include/PyBool_builder.py
tyler-utah/PBL
842a3fab949528bc03ee03d1f802e4163604d0f5
[ "BSD-2-Clause-FreeBSD" ]
1
2017-08-06T18:46:35.000Z
2017-08-07T14:01:23.000Z
include/PyBool_builder.py
tyler-utah/PBL
842a3fab949528bc03ee03d1f802e4163604d0f5
[ "BSD-2-Clause-FreeBSD" ]
7
2015-10-09T05:42:04.000Z
2022-03-24T19:07:19.000Z
#Tyler Sorensen #February 15, 2012 #University of Utah #PyBool_builder.py #The interface to build recursive style boolean expressions #See README.txt for more information def mk_const_expr(val): """ returns a constant expression of value VAL VAL should be of type boolean """ return {"type" : "con...
23.47191
59
0.560555
0
0
0
0
0
0
0
0
1,273
0.609382
8850e891db7232fd18b38c698cdc17d7011b2602
2,595
py
Python
spotify-monitor.py
tmessi/bins
6fdd738ee44b5dc68849ddb6056667c4170dd603
[ "MIT" ]
null
null
null
spotify-monitor.py
tmessi/bins
6fdd738ee44b5dc68849ddb6056667c4170dd603
[ "MIT" ]
null
null
null
spotify-monitor.py
tmessi/bins
6fdd738ee44b5dc68849ddb6056667c4170dd603
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 ''' A simple script to get the playback status of spotify. This script needs ``dbus-python`` for spotify communication To run simply:: ./spotify-monitor.py <command> Where command is one of the following:: ``playback`` ``playing`` ''' # pylint: disable=W0703 import dbus from db...
27.315789
85
0.563391
0
0
0
0
0
0
0
0
945
0.364162
8851d7b5290203c0b1a5e1b0bf63d3352db40abc
787
py
Python
tests/file-test/test-pyro.py
nelmiux/CS347-Data_Management
1e9d87097b5a373f9312b0d6b413198e495fd6c0
[ "CNRI-Jython" ]
null
null
null
tests/file-test/test-pyro.py
nelmiux/CS347-Data_Management
1e9d87097b5a373f9312b0d6b413198e495fd6c0
[ "CNRI-Jython" ]
null
null
null
tests/file-test/test-pyro.py
nelmiux/CS347-Data_Management
1e9d87097b5a373f9312b0d6b413198e495fd6c0
[ "CNRI-Jython" ]
null
null
null
import sys sys.path.insert(0, '../Pyro4-4.17') import Pyro4 from time import clock """ log = open('pyro.log', 'w') times = [] proxy = Pyro4.Proxy("PYRO:example.service@localhost:54642") for i in range(100) : local = [] begin = clock() for files in proxy.getFiles(proxy.getcwd()) : for file in file...
24.59375
72
0.617535
0
0
0
0
0
0
0
0
500
0.635324
88521be531a73b3f205941d7145e1d213b76932c
117
py
Python
tests/test_controllers/test_demo.py
wikimedia/analytics-wikimetrics
1d2036657b06ccd16ecfc76edd3f9a6119ff75f4
[ "MIT" ]
6
2015-01-28T05:59:08.000Z
2018-01-09T07:48:57.000Z
tests/test_controllers/test_demo.py
wikimedia/analytics-wikimetrics
1d2036657b06ccd16ecfc76edd3f9a6119ff75f4
[ "MIT" ]
2
2020-05-09T16:36:43.000Z
2020-05-09T16:52:35.000Z
tests/test_controllers/test_demo.py
wikimedia/analytics-wikimetrics
1d2036657b06ccd16ecfc76edd3f9a6119ff75f4
[ "MIT" ]
1
2016-01-13T07:19:44.000Z
2016-01-13T07:19:44.000Z
from nose.tools import assert_equal from tests.fixtures import WebTest class TestDemoController(WebTest): pass
16.714286
35
0.811966
43
0.367521
0
0
0
0
0
0
0
0
8852b79b5bfc54d623d2ee6424607b818660de24
1,358
py
Python
evaluation/hpt/sizes/plot.py
cucl-srg/Measuring-Burstiness
b9024bf606362d5587773a0c5b892fcb97a3d577
[ "Apache-2.0" ]
1
2022-03-21T02:26:27.000Z
2022-03-21T02:26:27.000Z
evaluation/hpt/sizes/plot.py
cucl-srg/Measuring-Burstiness
b9024bf606362d5587773a0c5b892fcb97a3d577
[ "Apache-2.0" ]
null
null
null
evaluation/hpt/sizes/plot.py
cucl-srg/Measuring-Burstiness
b9024bf606362d5587773a0c5b892fcb97a3d577
[ "Apache-2.0" ]
1
2020-08-10T16:46:05.000Z
2020-08-10T16:46:05.000Z
import sys import matplotlib import numpy as np # Avoid errors when running on headless servers. matplotlib.use('Agg') import matplotlib.pyplot as plt if len(sys.argv) != 6: print "Usage plot.py <data file port 1> <min size> <step size> <max size> <num packets sent>" sys.exit(1) width = 20 data_file = sys.ar...
28.893617
97
0.658321
0
0
0
0
0
0
0
0
307
0.226068
8853e415ffd0f52c5a2f8419a9bf5ebfef325883
2,678
py
Python
examples/pytorch/dtgrnn/dataloading.py
ketyi/dgl
a1b859c29b63a673c148d13231a49504740e0e01
[ "Apache-2.0" ]
9,516
2018-12-08T22:11:31.000Z
2022-03-31T13:04:33.000Z
examples/pytorch/dtgrnn/dataloading.py
ketyi/dgl
a1b859c29b63a673c148d13231a49504740e0e01
[ "Apache-2.0" ]
2,494
2018-12-08T22:43:00.000Z
2022-03-31T21:16:27.000Z
examples/pytorch/dtgrnn/dataloading.py
ketyi/dgl
a1b859c29b63a673c148d13231a49504740e0e01
[ "Apache-2.0" ]
2,529
2018-12-08T22:56:14.000Z
2022-03-31T13:07:41.000Z
import os import ssl from six.moves import urllib import torch import numpy as np import dgl from torch.utils.data import Dataset, DataLoader def download_file(dataset): print("Start Downloading data: {}".format(dataset)) url = "https://s3.us-west-2.amazonaws.com/dgl-data/dataset/{}".format( dataset) ...
28.795699
78
0.639283
1,602
0.598208
0
0
0
0
0
0
421
0.157207
88551bbfcb08a1b53c119a389c90207f6e61b6cd
1,552
py
Python
django_boto/tests.py
degerli/django-boto
930863b75c0f26eb10090a6802e16e1cf127b588
[ "MIT" ]
54
2015-02-09T14:25:56.000Z
2021-09-03T21:11:29.000Z
django_boto/tests.py
degerli/django-boto
930863b75c0f26eb10090a6802e16e1cf127b588
[ "MIT" ]
12
2015-01-10T06:39:56.000Z
2019-06-19T19:36:40.000Z
django_boto/tests.py
degerli/django-boto
930863b75c0f26eb10090a6802e16e1cf127b588
[ "MIT" ]
18
2015-01-09T20:06:38.000Z
2019-02-22T12:33:44.000Z
# -*- coding: utf-8 -*- import string import random import logging import urllib2 from os import path from django.test import TestCase from django.core.files.base import ContentFile from s3 import upload from s3.storage import S3Storage from settings import BOTO_S3_BUCKET logger = logging.getLogger(__name__) local...
23.164179
74
0.661727
1,052
0.677835
0
0
0
0
0
0
166
0.106959
8857049e6802ce1ea80b578b8e1834b184a88a8c
4,060
py
Python
src/roswire/ros1/bag/player.py
ChrisTimperley/roswire
3220583305dc3e90b8cf0a7653cbc1b9c7fdb83b
[ "Apache-2.0" ]
4
2019-09-22T18:38:33.000Z
2021-04-02T01:37:10.000Z
src/roswire/ros1/bag/player.py
ChrisTimperley/roswire
3220583305dc3e90b8cf0a7653cbc1b9c7fdb83b
[ "Apache-2.0" ]
208
2019-03-27T18:34:39.000Z
2021-07-26T20:36:07.000Z
src/roswire/ros1/bag/player.py
ChrisTimperley/roswire
3220583305dc3e90b8cf0a7653cbc1b9c7fdb83b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # http://wiki.ros.org/Bags/Format/2.0 __all__ = ("BagPlayer",) import subprocess import threading from types import TracebackType from typing import Optional, Type import dockerblade from loguru import logger from ... import exceptions class BagPlayer: def __init__( self, ...
29.852941
71
0.578818
3,794
0.934483
0
0
262
0.064532
0
0
1,127
0.277586
885a5fd1a5967b9a6efcaa58fe258ea5b945e757
3,120
py
Python
flask_vgavro_utils/decorators.py
vgavro/flask-vgavro-utils
01b7caa0241a6b606c228081eea169e51a0d1337
[ "BSD-2-Clause" ]
null
null
null
flask_vgavro_utils/decorators.py
vgavro/flask-vgavro-utils
01b7caa0241a6b606c228081eea169e51a0d1337
[ "BSD-2-Clause" ]
null
null
null
flask_vgavro_utils/decorators.py
vgavro/flask-vgavro-utils
01b7caa0241a6b606c228081eea169e51a0d1337
[ "BSD-2-Clause" ]
null
null
null
from functools import wraps from flask import request, make_response from .exceptions import ApiError from .schemas import create_schema, ma_version_lt_300b7 def request_schema(schema_or_dict, extends=None, many=None, cache_schema=True, pass_data=False): schema_ = create_schema(schema_or_dict, extends) def...
31.515152
96
0.605769
0
0
0
0
1,988
0.637179
0
0
245
0.078526
885c26a7ab9bb55b6a5e53e5c4ace165bde1c509
1,447
py
Python
manolo/urls.py
rmaceissoft/django-manolo
7a447b6b06a5a9a0bbc3ed5daf754721a48bbd76
[ "BSD-3-Clause" ]
null
null
null
manolo/urls.py
rmaceissoft/django-manolo
7a447b6b06a5a9a0bbc3ed5daf754721a48bbd76
[ "BSD-3-Clause" ]
null
null
null
manolo/urls.py
rmaceissoft/django-manolo
7a447b6b06a5a9a0bbc3ed5daf754721a48bbd76
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static from django.urls import path # Uncomment the next two lines to enable the admin: from django.contrib import admin from drf_yasg.views im...
34.452381
105
0.704216
0
0
0
0
0
0
0
0
439
0.303386
885c8e23ca6cf334dab1eb1260245a09eefae5fc
2,043
py
Python
samples/frontend/datagator/rest/decorators.py
liuyu81/datagator-contrib
813529e211f680732bd1dc9568f5b4f2bdcacdcc
[ "Apache-2.0" ]
2
2015-02-20T02:50:07.000Z
2017-05-02T19:26:42.000Z
samples/frontend/datagator/rest/decorators.py
liuyu81/datagator-contrib
813529e211f680732bd1dc9568f5b4f2bdcacdcc
[ "Apache-2.0" ]
null
null
null
samples/frontend/datagator/rest/decorators.py
liuyu81/datagator-contrib
813529e211f680732bd1dc9568f5b4f2bdcacdcc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ datagator.rest.decorators ~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: 2015 by `University of Denver <http://pardee.du.edu/>`_ :license: Apache 2.0, see LICENSE for more details. """ import base64 from django.contrib.auth import authenticate, login from django.core.exceptions imp...
29.608696
78
0.600587
0
0
0
0
692
0.338718
0
0
517
0.253059
885d21f84b46886e1d6a64a22aa7df5e772efb4b
2,836
py
Python
src/ui.py
ajstensland/slyther
176e901120032b94427d634e647cb8940b019f14
[ "MIT" ]
9
2019-10-15T17:24:09.000Z
2021-11-07T20:23:43.000Z
src/ui.py
ajstensland/slyther
176e901120032b94427d634e647cb8940b019f14
[ "MIT" ]
21
2019-10-17T15:42:04.000Z
2019-11-14T20:43:55.000Z
src/ui.py
ajstensland/slyther
176e901120032b94427d634e647cb8940b019f14
[ "MIT" ]
4
2019-10-27T13:54:03.000Z
2021-07-09T12:54:02.000Z
from getpass import getpass import socket COLORS = {"green" : "\33[92m", "red" : "\33[91m", "yellow" : "\33[93m", "endc" : "\33[0m" } def print_green(msg): """Prints msg in green text.""" print("{0}{1}{2}".format(COLORS["green"], msg, COLORS["endc"])) def print_yellow(ms...
26.259259
82
0.575811
0
0
0
0
0
0
0
0
1,238
0.43653
885d4d75f5722e68e64b97b960999165b69c5ecc
1,244
py
Python
src/data processing - clinical notes and structured data/step5_note_level_tagging.py
arjun-parthi/SSRI-Project
62f610a594e5849ccf0f3c25cd6adcd63888ec2a
[ "MIT" ]
2
2019-02-12T00:37:37.000Z
2021-03-25T05:40:06.000Z
src/data processing - clinical notes and structured data/step5_note_level_tagging.py
arjun-parthi/SSRI-Project
62f610a594e5849ccf0f3c25cd6adcd63888ec2a
[ "MIT" ]
null
null
null
src/data processing - clinical notes and structured data/step5_note_level_tagging.py
arjun-parthi/SSRI-Project
62f610a594e5849ccf0f3c25cd6adcd63888ec2a
[ "MIT" ]
1
2021-03-25T05:40:17.000Z
2021-03-25T05:40:17.000Z
import pandas as pd import numpy as np from collections import Counter data = pd.read_csv('out/negex_all.txt', sep="\t", header=None) print(data.shape) data.columns = ['PAT_DEID','NOTE_DEID','NOTE_DATE','ENCOUNTER_DATE','NOTE_CODE','TEXT_SNIPPET','lower_text','STATUS'] df = data.groupby(['PAT_DEID','NOTE_DEID','NOTE_...
34.555556
141
0.676045
0
0
0
0
0
0
0
0
480
0.385852
885d8583c03a1a8044c9ab014f78fb40213a58b5
821
py
Python
app.py
shaungarwood/co-voter-db
bcbc0d46459cc9913ed318b32b284a4139c75b74
[ "MIT" ]
null
null
null
app.py
shaungarwood/co-voter-db
bcbc0d46459cc9913ed318b32b284a4139c75b74
[ "MIT" ]
null
null
null
app.py
shaungarwood/co-voter-db
bcbc0d46459cc9913ed318b32b284a4139c75b74
[ "MIT" ]
null
null
null
from flask import Flask from flask import request from flask import jsonify from os import environ import query app = Flask(__name__) if 'MONGODB_HOST' in environ: mongodb_host = environ['MONGODB_HOST'] else: mongodb_host = "localhost" if 'MONGODB_PORT' in environ: mongodb_port = environ['MONGODB_PORT']...
21.605263
52
0.686967
0
0
0
0
341
0.415347
0
0
150
0.182704
885e29d199b2465852d40fecbeb6ea0388645c61
972
py
Python
stack/tests/m_decoded_string_test.py
dhrubach/python-code-recipes
14356c6adb1946417482eaaf6f42dde4b8351d2f
[ "MIT" ]
null
null
null
stack/tests/m_decoded_string_test.py
dhrubach/python-code-recipes
14356c6adb1946417482eaaf6f42dde4b8351d2f
[ "MIT" ]
null
null
null
stack/tests/m_decoded_string_test.py
dhrubach/python-code-recipes
14356c6adb1946417482eaaf6f42dde4b8351d2f
[ "MIT" ]
null
null
null
from stack.m_decoded_string import DecodeString class TestDecodeString: def test_lc_data_1(self): ds = DecodeString() ans = ds.valueAtIndex_bf("leet2code3", 15) assert ans == "e" ans = ds.valueAtIndex_opm("leet2code3", 15) assert ans == "e" ans = ds.valueAtIndex_...
24.3
66
0.595679
921
0.947531
0
0
0
0
0
0
153
0.157407
885efaccc06cb190fd2ac00927d90705f3efe0f0
534
py
Python
tests/uranium/plot_rho.py
rc/dftatom
fe479fd27a7e0f77c6a88a1949996406ec935ac2
[ "MIT" ]
40
2015-03-19T16:00:14.000Z
2021-12-29T03:06:10.000Z
tests/uranium/plot_rho.py
rc/dftatom
fe479fd27a7e0f77c6a88a1949996406ec935ac2
[ "MIT" ]
6
2015-06-23T21:59:56.000Z
2019-09-04T20:36:51.000Z
tests/uranium/plot_rho.py
rc/dftatom
fe479fd27a7e0f77c6a88a1949996406ec935ac2
[ "MIT" ]
15
2015-06-07T15:14:49.000Z
2021-12-05T07:03:24.000Z
from pylab import plot, show, legend from numpy import array from h5py import File data = File("data.h5") iter = 2 R = array(data["/%04d/R" % iter]) rho = array(data["/%04d/rho" % iter]) Vtot = array(data["/%04d/V_tot" % iter]) Zeff = -Vtot * R #for i in range(1, 19): # P = array(data["/%04d/P%04d" % (iter, i)])...
22.25
47
0.571161
0
0
0
0
0
0
0
0
175
0.327715
88601c88f30dcd435b8268d9578887c317aa8098
379
py
Python
src/account/migrations/0002_address_default_add.py
amaan2398/EcommerceWebsiteDjango
5173d13d60c1276c957161ce0ea37b8de5acddf4
[ "MIT" ]
1
2020-08-11T01:17:36.000Z
2020-08-11T01:17:36.000Z
src/account/migrations/0002_address_default_add.py
amaan2398/EcommerceWebsiteDjango
5173d13d60c1276c957161ce0ea37b8de5acddf4
[ "MIT" ]
null
null
null
src/account/migrations/0002_address_default_add.py
amaan2398/EcommerceWebsiteDjango
5173d13d60c1276c957161ce0ea37b8de5acddf4
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2020-08-18 13:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('account', '0001_initial'), ] operations = [ migrations.AddField( model_name='address', name='default_add', ...
19.947368
52
0.593668
288
0.759894
0
0
0
0
0
0
90
0.237467
886187760f06162d24653efb204965a6811cff20
2,029
py
Python
kacl/validation.py
kianmeng/python-kacl
98df1a6c93489e0078deadd47ee80212ffab597e
[ "MIT" ]
8
2020-01-07T10:29:19.000Z
2022-03-15T13:55:50.000Z
kacl/validation.py
kianmeng/python-kacl
98df1a6c93489e0078deadd47ee80212ffab597e
[ "MIT" ]
10
2020-01-07T10:30:41.000Z
2022-03-20T14:25:53.000Z
kacl/validation.py
kianmeng/python-kacl
98df1a6c93489e0078deadd47ee80212ffab597e
[ "MIT" ]
5
2020-01-15T07:45:41.000Z
2022-03-20T13:34:49.000Z
class KACLValidationError(): def __init__(self, line="", line_number=0, start_character_pos=None, end_character_pos=None, error_message=""): self.__line_number = line_number self.__start_character_pos = start_character_pos self.__end_character_pos = end_character_pos self.__error_mes...
36.890909
115
0.588467
2,025
0.998029
0
0
0
0
0
0
88
0.043371
886191b83cc6306a7a234ebf3e4730d225e73536
692
py
Python
100-clean_web_static.py
cbarros7/AirBnB_clone_v2
b25d8facc07ac5be2092a9f6214d1ef8c32ce60e
[ "MIT" ]
null
null
null
100-clean_web_static.py
cbarros7/AirBnB_clone_v2
b25d8facc07ac5be2092a9f6214d1ef8c32ce60e
[ "MIT" ]
null
null
null
100-clean_web_static.py
cbarros7/AirBnB_clone_v2
b25d8facc07ac5be2092a9f6214d1ef8c32ce60e
[ "MIT" ]
1
2021-08-11T05:20:27.000Z
2021-08-11T05:20:27.000Z
#!/usr/bin/python3 # Fabfile to delete out-of-date archives. import os from fabric.api import * env.hosts = ['104.196.116.233', '54.165.130.77'] def do_clean(number=0): """Delete out-of-date archives. """ number = 1 if int(number) == 0 else int(number) archives = sorted(os.listdir("versions")) [...
28.833333
62
0.606936
0
0
0
0
0
0
0
0
220
0.317919
88627cf7ecface35fcb049861351f30b77fd4c4c
173
py
Python
tfrec/utils/__init__.py
Praful932/Tf-Rec
fe0e08d3621da911149a95d8a701e434dfa61161
[ "MIT" ]
18
2020-12-22T04:16:54.000Z
2022-03-23T08:49:16.000Z
tfrec/utils/__init__.py
Praful932/Tf-Rec
fe0e08d3621da911149a95d8a701e434dfa61161
[ "MIT" ]
1
2021-05-11T12:28:07.000Z
2022-03-16T17:33:03.000Z
tfrec/utils/__init__.py
Praful932/Tf-Rec
fe0e08d3621da911149a95d8a701e434dfa61161
[ "MIT" ]
2
2021-04-26T10:29:44.000Z
2021-07-01T03:31:31.000Z
from tfrec.utils.model_utils import cross_validate from tfrec.utils.model_utils import preprocess_and_split __all__ = [ 'cross_validate', 'preprocess_and_split', ]
21.625
56
0.791908
0
0
0
0
0
0
0
0
38
0.219653
8863590d6524676746195e9a24531f9c96bd95d5
17,316
py
Python
dask/threaded.py
eriknw/dask
f654b47a61cbbddaf5d2f4d1a3e6e07373b86709
[ "BSD-3-Clause" ]
null
null
null
dask/threaded.py
eriknw/dask
f654b47a61cbbddaf5d2f4d1a3e6e07373b86709
[ "BSD-3-Clause" ]
null
null
null
dask/threaded.py
eriknw/dask
f654b47a61cbbddaf5d2f4d1a3e6e07373b86709
[ "BSD-3-Clause" ]
null
null
null
""" A threaded shared-memory scheduler for dask graphs. This code is experimental and fairly ugly. It should probably be rewritten before anyone really depends on it. It is very stateful and error-prone. That being said, it is decently fast. State ===== Many functions pass around a ``state`` variable that holds t...
28.340426
88
0.569416
0
0
0
0
0
0
0
0
9,786
0.565142
8863c6f90ec7586192322c6a14b72934c7e25e1f
495
py
Python
ToDo/todoapp/migrations/0003_auto_20200901_1842.py
UTKx/vigilant-octo-waffle
77beec55877bb12ebb4d2db5a8f673c32cfe69de
[ "MIT" ]
1
2020-09-04T22:07:23.000Z
2020-09-04T22:07:23.000Z
ToDo/todoapp/migrations/0003_auto_20200901_1842.py
UTKx/vigilant-octo-waffle
77beec55877bb12ebb4d2db5a8f673c32cfe69de
[ "MIT" ]
null
null
null
ToDo/todoapp/migrations/0003_auto_20200901_1842.py
UTKx/vigilant-octo-waffle
77beec55877bb12ebb4d2db5a8f673c32cfe69de
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-09-01 18:42 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('todoapp', '0002_auto_20200719_2021'), ] operations = [ migrations.AlterField( model_name='todo'...
24.75
126
0.646465
369
0.745455
0
0
0
0
0
0
122
0.246465
886441bce8027fa3056e6171153d3d8c51ba7d04
360
py
Python
yachter/courses/management/commands/courses_export_static.py
rcoup/yachter
8a73af1b5205f194000a6eac5974b3751d5d00f5
[ "Apache-2.0" ]
1
2015-10-09T11:07:32.000Z
2015-10-09T11:07:32.000Z
yachter/courses/management/commands/courses_export_static.py
rcoup/yachter
8a73af1b5205f194000a6eac5974b3751d5d00f5
[ "Apache-2.0" ]
null
null
null
yachter/courses/management/commands/courses_export_static.py
rcoup/yachter
8a73af1b5205f194000a6eac5974b3751d5d00f5
[ "Apache-2.0" ]
null
null
null
from django.core.management.base import LabelCommand from yachter.courses.utils import export_static_html class Command(LabelCommand): help = "Export a static HTML/JSON website for browsing the courses." args = "exportPath" label = 'path to export dir' def handle_label(self, export_path, **options): ...
30
72
0.75
251
0.697222
0
0
0
0
0
0
93
0.258333
8864cc357b1ab216b6ae36ff17356348ff1a4bee
6,163
py
Python
deprecated/test_01_job_cli.py
cloudmesh/cloudmesh-queue
8a299c8a4915916c9214d4b9e681da4a1b36bfd4
[ "Apache-2.0" ]
null
null
null
deprecated/test_01_job_cli.py
cloudmesh/cloudmesh-queue
8a299c8a4915916c9214d4b9e681da4a1b36bfd4
[ "Apache-2.0" ]
12
2020-12-18T09:57:49.000Z
2020-12-28T12:34:15.000Z
deprecated/test_01_job_cli.py
cloudmesh/cloudmesh-queue
8a299c8a4915916c9214d4b9e681da4a1b36bfd4
[ "Apache-2.0" ]
null
null
null
############################################################### # cms set host='juliet.futuresystems.org' # cms set user=$USER # # pytest -v --capture=no tests/test_01_job_cli.py # pytest -v tests/test_01_job_cli.py # pytest -v --capture=no tests/test_01_job_cli.py::TestJob::<METHODNAME> #############################...
28.013636
80
0.577154
5,074
0.8233
0
0
5,099
0.827357
0
0
1,737
0.281843
88663926b411e82cb276e8ee0d40df6d2b4d5fe4
3,370
py
Python
source/pysqlizer-cli.py
slafi/pysqlizer
871ad922d42fd99a59dd33091ea3eaa4406542b4
[ "MIT" ]
null
null
null
source/pysqlizer-cli.py
slafi/pysqlizer
871ad922d42fd99a59dd33091ea3eaa4406542b4
[ "MIT" ]
null
null
null
source/pysqlizer-cli.py
slafi/pysqlizer
871ad922d42fd99a59dd33091ea3eaa4406542b4
[ "MIT" ]
1
2020-01-05T05:36:58.000Z
2020-01-05T05:36:58.000Z
import argparse import time from pathlib import Path from logger import get_logger from csv_reader import CSVReader from utils import infer_type, clear_console from sql_generator import SQLGenerator if __name__ == "__main__": ## Clear console clear_console() ## get logger logger = get_logger('pysql...
35.104167
123
0.663205
0
0
0
0
0
0
0
0
794
0.235608
88672f1ee1e8b7ba396e5278ca480986acfefed4
854
py
Python
MergeIntervals56.py
Bit64L/LeetCode-Python-
64847cbb1adcaca4561b949e8acc52e8e031a6cb
[ "MIT" ]
null
null
null
MergeIntervals56.py
Bit64L/LeetCode-Python-
64847cbb1adcaca4561b949e8acc52e8e031a6cb
[ "MIT" ]
null
null
null
MergeIntervals56.py
Bit64L/LeetCode-Python-
64847cbb1adcaca4561b949e8acc52e8e031a6cb
[ "MIT" ]
null
null
null
# Definition for an interval. class Interval(object): def __init__(self, s=0, e=0): self.start = s self.end = e class Solution(object): def merge(self, intervals): """ :type intervals: List[Interval] :rtype: List[Interval] """ if intervals is None or l...
24.4
54
0.529274
701
0.820843
0
0
0
0
0
0
115
0.13466
88681b8ce61bdcea470b1b26564a91d9e24035aa
221
py
Python
Training/mangement_system.py
Orleanslindsay/Python_Programming
dacc08090e9ebf9eb43aec127ee3e2e3cdcb4f55
[ "MIT" ]
1
2021-08-16T10:25:01.000Z
2021-08-16T10:25:01.000Z
Training/mangement_system.py
Orleanslindsay/Python_Programming
dacc08090e9ebf9eb43aec127ee3e2e3cdcb4f55
[ "MIT" ]
null
null
null
Training/mangement_system.py
Orleanslindsay/Python_Programming
dacc08090e9ebf9eb43aec127ee3e2e3cdcb4f55
[ "MIT" ]
null
null
null
from tkinter import * import mariadb root = Tk() root.title('SCHOOL MANAGEMENT') root.geometry("900x700") counter=2 for i in range(1,20): label=Entry(root).grid(row=counter,column=0) counter += 2 root.mainloop()
13
45
0.710407
0
0
0
0
0
0
0
0
28
0.126697
88688860861603e2b3b947fdc9d58f769c86e31d
2,742
py
Python
FlopyAdapter/MtPackages/SftAdapter.py
inowas/InowasFlopyAdapter
43ddf223778693ea5e7651d7a55bef56deff0ad5
[ "MIT" ]
null
null
null
FlopyAdapter/MtPackages/SftAdapter.py
inowas/InowasFlopyAdapter
43ddf223778693ea5e7651d7a55bef56deff0ad5
[ "MIT" ]
null
null
null
FlopyAdapter/MtPackages/SftAdapter.py
inowas/InowasFlopyAdapter
43ddf223778693ea5e7651d7a55bef56deff0ad5
[ "MIT" ]
1
2020-09-27T23:26:14.000Z
2020-09-27T23:26:14.000Z
import flopy.mt3d as mt class SftAdapter: _data = None def __init__(self, data): self._data = data def validate(self): # should be implemented # for key in content: # do something # return some hints pass def is_valid(self): # should be im...
26.882353
67
0.486871
2,715
0.990153
0
0
1,624
0.592268
0
0
585
0.213348
8869c83d02e1a922baaa9130b61848763de1897f
2,089
py
Python
src/payoff_landscape.py
khozzy/phd
9a05572a6960d948320669c51e0c80bb9d037d4a
[ "CC-BY-4.0" ]
null
null
null
src/payoff_landscape.py
khozzy/phd
9a05572a6960d948320669c51e0c80bb9d037d4a
[ "CC-BY-4.0" ]
null
null
null
src/payoff_landscape.py
khozzy/phd
9a05572a6960d948320669c51e0c80bb9d037d4a
[ "CC-BY-4.0" ]
null
null
null
import matplotlib.pyplot as plt from matplotlib.ticker import MultipleLocator, FormatStrFormatter from collections import namedtuple from typing import Dict from src.visualization import diminishing_reward_colors, PLOT_DPI StateAction = namedtuple('StateAction', 'id state action') def get_all_state_action(state_to...
34.245902
100
0.691719
0
0
0
0
0
0
0
0
260
0.124461
886aabc8aa4ca1dc2dab928e6d2e967f6a38ad60
5,626
py
Python
Mods/Chatpp/Mod.py
3p0bleedthemoncrip/Tobify-Overlay-Download
00c0c8a7f3c7ccefce9387b9209dcc86e3b2abc9
[ "MIT" ]
null
null
null
Mods/Chatpp/Mod.py
3p0bleedthemoncrip/Tobify-Overlay-Download
00c0c8a7f3c7ccefce9387b9209dcc86e3b2abc9
[ "MIT" ]
null
null
null
Mods/Chatpp/Mod.py
3p0bleedthemoncrip/Tobify-Overlay-Download
00c0c8a7f3c7ccefce9387b9209dcc86e3b2abc9
[ "MIT" ]
null
null
null
class MOD: def __init__(self, Globals): """ This adds additional message categories to the player detection algorithm """ # data transfer variables self.Globals = Globals self.G = self.Globals self.ModData = Globals.ModData["Chatpp"] self.backend = Globals.ui_backend ...
38.534247
171
0.530928
5,625
0.999822
0
0
0
0
0
0
1,935
0.343939
886c6ba2396b2e58f84b93dfe9961e27c379d6bf
520
py
Python
fly/ModelStart.py
cheburakshu/fly
d452af4b83e4cb0f8d0094bf1e0c1b407d39bdf5
[ "Apache-2.0" ]
null
null
null
fly/ModelStart.py
cheburakshu/fly
d452af4b83e4cb0f8d0094bf1e0c1b407d39bdf5
[ "Apache-2.0" ]
null
null
null
fly/ModelStart.py
cheburakshu/fly
d452af4b83e4cb0f8d0094bf1e0c1b407d39bdf5
[ "Apache-2.0" ]
null
null
null
import time import sys import threading import asyncio # fly from .ModelBootstrap import ModelBootstrap from . import ModelManager def bootstrap(_filename,): #Model Bootstrap runForEver = threading.Event() mb = ModelBootstrap(filename=_filename,) runForEver.wait() #runForEver = threading.E...
21.666667
72
0.725
0
0
0
0
0
0
0
0
239
0.459615
886c941fa641d07a3da73aedf1058de8f4d4b127
569
py
Python
newss.py
krishnansuki/daily-news
3b03ea4bcd0aed8ddf69d91128bfce1f3d9192c0
[ "Apache-2.0" ]
1
2020-08-01T04:04:34.000Z
2020-08-01T04:04:34.000Z
newss.py
krishnansuki/daily-news
3b03ea4bcd0aed8ddf69d91128bfce1f3d9192c0
[ "Apache-2.0" ]
null
null
null
newss.py
krishnansuki/daily-news
3b03ea4bcd0aed8ddf69d91128bfce1f3d9192c0
[ "Apache-2.0" ]
null
null
null
import feedparser def parseRSS(rss_url): return feedparser.parse(rss_url) def getHeadLines(rss_url): headlines = [] feed = parseRSS(rss_url) for newitem in feed['items']: headlines.append(newitem['title']) return headlines allheadlines = [] newsurls={'googlenews': 'https://news.goo...
35.5625
172
0.692443
0
0
0
0
0
0
0
0
172
0.302285
886e4ad951e13066662fa39167df5cb479e0a992
664
py
Python
features/steps/public_pages.py
geeksforsocialchange/imok
efb7189c13c398dbd5d4301ca496a2e583b0f5b7
[ "MIT" ]
6
2021-05-12T08:40:36.000Z
2022-01-25T08:31:06.000Z
features/steps/public_pages.py
geeksforsocialchange/imok
efb7189c13c398dbd5d4301ca496a2e583b0f5b7
[ "MIT" ]
14
2021-05-12T09:03:08.000Z
2021-06-10T13:18:52.000Z
features/steps/public_pages.py
geeksforsocialchange/imok
efb7189c13c398dbd5d4301ca496a2e583b0f5b7
[ "MIT" ]
1
2021-05-14T20:54:15.000Z
2021-05-14T20:54:15.000Z
from behave import when, then from application.models import Member @when(u'I request \'{page}\'') def step_impl(context, page): context.response = context.test.client.get(page) @when(u'there are no members') def step_impl(context): Member.objects.all().delete() @then(u'I see \'{content}\'') def step_imp...
22.896552
77
0.709337
0
0
0
0
580
0.873494
0
0
142
0.213855
886fdb38b86a90cbac81f513da517e4152656447
2,824
py
Python
examples/05_fields.py
johnaparker/MiePy
5c5bb5a07c8ab79e9e2a9fc79fb9779e690147be
[ "MIT" ]
3
2016-05-30T06:45:29.000Z
2017-08-30T19:58:56.000Z
examples/05_fields.py
johnaparker/MiePy
5c5bb5a07c8ab79e9e2a9fc79fb9779e690147be
[ "MIT" ]
null
null
null
examples/05_fields.py
johnaparker/MiePy
5c5bb5a07c8ab79e9e2a9fc79fb9779e690147be
[ "MIT" ]
5
2016-12-13T02:05:31.000Z
2018-03-23T07:11:30.000Z
""" Displaying the fields in an xy cross section of the sphere (x polarized light, z-propagating) """ import numpy as np import matplotlib.pyplot as plt import miepy from mpl_toolkits.mplot3d import Axes3D import matplotlib.cm as cm Ag = miepy.materials. Ag() # calculate scattering coefficients, 800 nm illumination ...
29.726316
147
0.645892
0
0
0
0
0
0
0
0
1,233
0.436615
887136302539945d1d8fc0fd52d9556bdb55e9ef
13,616
py
Python
pya2a/models.py
LvanWissen/pya2a
d8a7848ba408850aedd79d18ad2816524499f528
[ "MIT" ]
null
null
null
pya2a/models.py
LvanWissen/pya2a
d8a7848ba408850aedd79d18ad2816524499f528
[ "MIT" ]
null
null
null
pya2a/models.py
LvanWissen/pya2a
d8a7848ba408850aedd79d18ad2816524499f528
[ "MIT" ]
null
null
null
import datetime import dateutil.parser import xml import xml.etree.ElementTree from pya2a.utils import parseRemark class Entity: NAMESPACE = {"a2a": "http://Mindbus.nl/A2A"} class Person(Entity): """ """ def __init__(self, element: xml.etree.ElementTree.Element): self.id = element.attrib...
32.809639
107
0.563234
13,448
0.987662
181
0.013293
0
0
0
0
2,768
0.20329
887318ae1de3947a937b8a9fff9e751422b6ec84
4,059
py
Python
python/quantization.py
simnalamburt/snippets
8ba4cfcb1305d2b82ea892e3305613eeb7ba382b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
31
2016-01-27T07:03:25.000Z
2022-02-25T07:59:11.000Z
python/quantization.py
simnalamburt/snippets
8ba4cfcb1305d2b82ea892e3305613eeb7ba382b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2015-01-26T01:27:21.000Z
2015-01-30T16:16:30.000Z
python/quantization.py
simnalamburt/snippets
8ba4cfcb1305d2b82ea892e3305613eeb7ba382b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
3
2017-02-07T04:17:56.000Z
2020-06-12T05:01:31.000Z
import numpy as np min, max = -0.8777435, 0.57090986 M = np.asmatrix([ [0.02355068, -0.50542802, 0.16642167, -0.44872788, -0.05130898, 0.13320047, 0.41464597, -0.55703336, 0.52567458, 0.23784444, 0.15049535, 0.16599870, -0.28757980, 0.22277315, 0.56460077, -0.70838273, -0.61990398, -0.39724344, -0.09969769, 0.4583...
156.115385
384
0.700172
0
0
0
0
0
0
0
0
7
0.001725
8873474612b143bfb3dcc0cc047dd90038304a53
3,391
py
Python
Modulo_01/Aula09-ManipulandoStrings.py
rodrigojackal/Python-Guanabara
8bfbbbd7b4549b9235d9b6fcb3a0c3d00eb384f2
[ "MIT" ]
null
null
null
Modulo_01/Aula09-ManipulandoStrings.py
rodrigojackal/Python-Guanabara
8bfbbbd7b4549b9235d9b6fcb3a0c3d00eb384f2
[ "MIT" ]
null
null
null
Modulo_01/Aula09-ManipulandoStrings.py
rodrigojackal/Python-Guanabara
8bfbbbd7b4549b9235d9b6fcb3a0c3d00eb384f2
[ "MIT" ]
null
null
null
# Aula 09 - Manipulando de cadeias de texto (Strings) """ Técnica de Fatiamento Frase = Curso em Video Python Frase [9]: letra específica Frase [9:13]: Vai pegar do 9 ao 12 (menos um no final) Frase [9:21:2]: Pula de 2 em 2 Frase [:5]: Irá começar no primeiro caracter e terminar no 4 (excluindo o número 5) Frase [15:...
33.245098
112
0.760248
0
0
0
0
0
0
0
0
3,301
0.95212
88735f42e1881dd628983cb3ca2947d11d481c02
2,575
py
Python
{{ cookiecutter.repo_name }}/{{ cookiecutter.repo_name }}/models/train.py
vasinkd/cookiecutter-data-science
3b1be4b701198b73e9701af498381a2c55da9fe6
[ "MIT" ]
2
2020-03-26T22:06:11.000Z
2021-04-02T08:52:38.000Z
{{ cookiecutter.repo_name }}/{{ cookiecutter.repo_name }}/models/train.py
vasinkd/cookiecutter-data-science
3b1be4b701198b73e9701af498381a2c55da9fe6
[ "MIT" ]
1
2019-10-19T13:36:33.000Z
2019-10-19T13:36:33.000Z
{{ cookiecutter.repo_name }}/{{ cookiecutter.repo_name }}/models/train.py
vasinkd/cookiecutter-data-science
3b1be4b701198b73e9701af498381a2c55da9fe6
[ "MIT" ]
8
2019-10-17T20:32:07.000Z
2022-03-10T15:28:49.000Z
import optuna from {{cookiecutter.repo_name}}.utils import check_args_num, \ read_config, set_random_seed, str_hash, file_hash from {{cookiecutter.repo_name}}.settings import optuna_db_path def read_inp_file(filepath): raise NotImplementedError def write_output(out, filepath): raise NotImplementedError ...
28.932584
79
0.717282
0
0
0
0
0
0
0
0
499
0.193786
88737c6f1857632bec14f3d69ee844444dd65d17
2,221
py
Python
musiker_fille_bot.py
pranay414/musiker_fille_bot
55d87a3bfdbaf8b99b5ca86c6f7a433cd6280d42
[ "MIT" ]
null
null
null
musiker_fille_bot.py
pranay414/musiker_fille_bot
55d87a3bfdbaf8b99b5ca86c6f7a433cd6280d42
[ "MIT" ]
1
2017-12-24T11:18:07.000Z
2017-12-25T20:29:18.000Z
musiker_fille_bot.py
pranay414/musiker_fille_bot
55d87a3bfdbaf8b99b5ca86c6f7a433cd6280d42
[ "MIT" ]
null
null
null
# - *- coding: utf- 8 - *- """ Bot to suggest music from Spotify based on your mood. """ import spotipy, os from spotipy.oauth2 import SpotifyClientCredentials from telegram.ext import Updater, CommandHandler, MessageHandler, Filters #from access_token import AUTH_TOKEN, CLIENT_ID, CLIENT_SECRET # Intialise spotipy cl...
38.964912
185
0.722647
0
0
0
0
0
0
0
0
1,036
0.465827
8875919d1f2a6e03d1eb055a54e6b7d341bfcdca
1,544
py
Python
tracker/utils/projects.py
dti-research/tracker
f2384c0c7b631aa9efd39bf606cda8b85187fcc6
[ "BSD-3-Clause" ]
1
2019-07-25T18:02:37.000Z
2019-07-25T18:02:37.000Z
tracker/utils/projects.py
dti-research/tracker
f2384c0c7b631aa9efd39bf606cda8b85187fcc6
[ "BSD-3-Clause" ]
10
2019-08-29T12:27:35.000Z
2020-01-04T18:40:48.000Z
tracker/utils/projects.py
dti-research/tracker
f2384c0c7b631aa9efd39bf606cda8b85187fcc6
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2019, Danish Technological Institute. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. # -*- coding: utf-8 -*- """ Utility code to locate tracker projects """ from tracker.tracker_file import Tra...
21.746479
75
0.609456
0
0
0
0
0
0
0
0
492
0.318653
8875c6d752de20720e19e0bcf7801a8392c5567b
220
py
Python
int/Lib/site-packages/hn/__init__.py
yoniv/shellHN-main
767e78f54403ebd3193ee9ada8672cfc06705967
[ "MIT" ]
null
null
null
int/Lib/site-packages/hn/__init__.py
yoniv/shellHN-main
767e78f54403ebd3193ee9ada8672cfc06705967
[ "MIT" ]
null
null
null
int/Lib/site-packages/hn/__init__.py
yoniv/shellHN-main
767e78f54403ebd3193ee9ada8672cfc06705967
[ "MIT" ]
1
2021-09-22T10:41:46.000Z
2021-09-22T10:41:46.000Z
""" Python API for Hacker News. @author Karan Goel @email [email protected] """ __title__ = 'hackernews' __author__ = 'Karan Goel' __license__ = 'MIT' __copyright__ = 'Copyright 2014 Karan Goel' from .hn import HN, Story
15.714286
43
0.722727
0
0
0
0
0
0
0
0
132
0.6
887679321d473fff8303fdde842a58ecb25c93a7
57
py
Python
training/constants.py
vlad-danaila/deep_hiv_ab_pred
651e9174cef9d5f27de328536aec5ebea3af8f3d
[ "MIT" ]
null
null
null
training/constants.py
vlad-danaila/deep_hiv_ab_pred
651e9174cef9d5f27de328536aec5ebea3af8f3d
[ "MIT" ]
null
null
null
training/constants.py
vlad-danaila/deep_hiv_ab_pred
651e9174cef9d5f27de328536aec5ebea3af8f3d
[ "MIT" ]
null
null
null
ACCURACY = 0 MATTHEWS_CORRELATION_COEFFICIENT = 1 AUC = 2
19
36
0.807018
0
0
0
0
0
0
0
0
0
0
8876c3bace11ab590dd97932baa4aa09e457abf7
2,580
py
Python
day06.py
AnthonyFloyd/2017-AdventOfCode-Python
ef66ed25fef416f1f5f269810e6039cab53dc6d0
[ "MIT" ]
null
null
null
day06.py
AnthonyFloyd/2017-AdventOfCode-Python
ef66ed25fef416f1f5f269810e6039cab53dc6d0
[ "MIT" ]
null
null
null
day06.py
AnthonyFloyd/2017-AdventOfCode-Python
ef66ed25fef416f1f5f269810e6039cab53dc6d0
[ "MIT" ]
null
null
null
''' Advent of Code 2017 Day 6: Memory Reallocation ''' import unittest TEST_BANKS = ('0 2 7 0', 5, 4) INPUT_BANKS = '0 5 10 0 11 14 13 4 11 8 8 7 1 4 12 11' def findInfiniteLoop(memoryBanks): ''' Finds the number of iterations required to detect an infinite loop with the given start condition. memoryBa...
27.446809
109
0.637597
481
0.186434
0
0
0
0
0
0
1,135
0.439922
887a62af70424662df05268a24baf2a7aafc6529
1,757
py
Python
iucas/utils.py
rysdyk/django-iucas
d534800c6a1fc6cf3ea5e3f1c0d9bc0dc7a2b4db
[ "BSD-3-Clause" ]
null
null
null
iucas/utils.py
rysdyk/django-iucas
d534800c6a1fc6cf3ea5e3f1c0d9bc0dc7a2b4db
[ "BSD-3-Clause" ]
null
null
null
iucas/utils.py
rysdyk/django-iucas
d534800c6a1fc6cf3ea5e3f1c0d9bc0dc7a2b4db
[ "BSD-3-Clause" ]
1
2020-01-16T20:25:52.000Z
2020-01-16T20:25:52.000Z
""" Utility Methods for Authenticating against and using Indiana University CAS. """ import httplib2 from django.contrib.auth.models import User from django.core.exceptions import ObjectDoesNotExist from django.conf import settings def validate_cas_ticket(casticket, casurl): """ Takes a CAS Ticket and makes th...
30.293103
76
0.632328
687
0.391007
0
0
0
0
0
0
477
0.271485
887a99f77ebc5982239f9bc71d68f9e4f2afc02f
20,460
py
Python
blousebrothers/confs/views.py
sladinji/blousebrothers
461de3ba011c0aaed3f0014136c4497b6890d086
[ "MIT" ]
1
2022-01-27T11:58:10.000Z
2022-01-27T11:58:10.000Z
blousebrothers/confs/views.py
sladinji/blousebrothers
461de3ba011c0aaed3f0014136c4497b6890d086
[ "MIT" ]
5
2021-03-19T00:01:54.000Z
2022-03-11T23:46:21.000Z
blousebrothers/confs/views.py
sladinji/blousebrothers
461de3ba011c0aaed3f0014136c4497b6890d086
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.http import JsonResponse from decimal import Decimal from datetime import datetime, timedelta import re import logging from disqusapi import DisqusAPI from django.contrib import messages from django.apps import apps from django.core.mail import mail_admins from django.core.urlresolv...
36.34103
115
0.62219
18,199
0.889274
0
0
3,000
0.146592
0
0
3,252
0.158905
887ad1b6a09fd7cd401ad5b4a47a80e80503fdb2
3,177
py
Python
software/robotClass.py
technovus-sfu/swarmbots
6a50193a78056c0359c426b097b96e1c37678a55
[ "MIT" ]
null
null
null
software/robotClass.py
technovus-sfu/swarmbots
6a50193a78056c0359c426b097b96e1c37678a55
[ "MIT" ]
3
2018-02-05T23:21:02.000Z
2018-05-03T02:58:50.000Z
software/robotClass.py
technovus-sfu/swarmbots
6a50193a78056c0359c426b097b96e1c37678a55
[ "MIT" ]
null
null
null
import serial import string import math from itertools import chain class robot: address = "/dev/cu.HC-05-DevB" speed = 0; current_position = [0,0,0] target_position = [0, 0] distance = 0; angle_diff = 0; compliment = 0; colorLower = [0,0,0] colorUpper = [0,0,0] ID = 0 # def __init__ (self): # pass #...
27.868421
95
0.678942
3,106
0.977652
0
0
0
0
0
0
705
0.221907
887cf7708e8f994e5fe9bde9079bf51b3a0cab82
4,054
py
Python
hijackednode/logger.py
Luxter77/Hijacked-Node
378cbb4201e891e81107b22ba568b3564b2e4197
[ "BSD-3-Clause" ]
null
null
null
hijackednode/logger.py
Luxter77/Hijacked-Node
378cbb4201e891e81107b22ba568b3564b2e4197
[ "BSD-3-Clause" ]
null
null
null
hijackednode/logger.py
Luxter77/Hijacked-Node
378cbb4201e891e81107b22ba568b3564b2e4197
[ "BSD-3-Clause" ]
null
null
null
from discord import TextChannel, User from discord.ext.commands import Bot from .configuration import CONF0 from tqdm.asyncio import tqdm # class LogMe: # """This is a complicated logger I came up with.\n # Feel free to insult me whilst readding it.""" # _std = { # "LS": "|-----------------Log_ ST...
45.044444
89
0.415886
0
0
0
0
0
0
0
0
3,831
0.944993
887d7ad21774f9d78fa33b58dec3b6e2af7b8b30
13,930
py
Python
tests/test_api.py
vsoch/django-oci
e60b2d0501ddd45f6ca3596b126180bebb2e6903
[ "Apache-2.0" ]
5
2020-03-24T23:45:28.000Z
2021-11-26T03:31:05.000Z
tests/test_api.py
vsoch/django-oci
e60b2d0501ddd45f6ca3596b126180bebb2e6903
[ "Apache-2.0" ]
14
2020-04-02T17:13:28.000Z
2020-12-29T12:36:38.000Z
tests/test_api.py
vsoch/django-oci
e60b2d0501ddd45f6ca3596b126180bebb2e6903
[ "Apache-2.0" ]
null
null
null
""" test_django-oci api ------------------- Tests for `django-oci` api. """ from django.urls import reverse from django.contrib.auth.models import User from django_oci import settings from rest_framework import status from rest_framework.test import APITestCase from django.test.utils import override_settings from tim...
37.245989
87
0.618808
10,421
0.748098
227
0.016296
0
0
0
0
4,201
0.301579
887d7f78ede177237d678a89bcd14f2af84d31d3
1,492
py
Python
LCSTPlotter.py
edwinstorres/LCST-Plotter
1afbd251cc395461498e902069e90bb14e66b013
[ "MIT" ]
null
null
null
LCSTPlotter.py
edwinstorres/LCST-Plotter
1afbd251cc395461498e902069e90bb14e66b013
[ "MIT" ]
null
null
null
LCSTPlotter.py
edwinstorres/LCST-Plotter
1afbd251cc395461498e902069e90bb14e66b013
[ "MIT" ]
null
null
null
#LCST Plotter #Author: ESTC import numpy import streamlit import matplotlib.pyplot as plt import pandas def launch_app(): streamlit.title("LCST Plotter") global cation, anion, mw_cat, mw_an, datafile cation = streamlit.text_input("Enter the abbreviation of the cation:") # mw_cat = streaml...
32.434783
81
0.661528
0
0
0
0
0
0
0
0
488
0.32664
887dda35242cbfb0d65a1b78e9d2c415c3d774ec
13,039
py
Python
hello.py
zarqabiqbal/RTDA-Real-Time-Data-Analysis-ML-Project-
0659191afa6a8802647f46d0dc4f85f2044639e5
[ "Apache-2.0" ]
null
null
null
hello.py
zarqabiqbal/RTDA-Real-Time-Data-Analysis-ML-Project-
0659191afa6a8802647f46d0dc4f85f2044639e5
[ "Apache-2.0" ]
null
null
null
hello.py
zarqabiqbal/RTDA-Real-Time-Data-Analysis-ML-Project-
0659191afa6a8802647f46d0dc4f85f2044639e5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from flask import Flask, render_template, app, url_for,request import tweepy # To consume Twitter's API import pandas as pd # To handle data import numpy as np # For number computing from textblob import TextBlob import re import pandas as pa from sklearn.tree import DecisionTr...
37.90407
190
0.638162
0
0
0
0
12,186
0.934581
0
0
2,897
0.22218
887ec99957073c1e4d84bfa70941e65fc56ac5fc
529
py
Python
utils.py
Ji-Xinyou/DIP-proj-DepthEstimation
5432c14ce1d0cdc9b8b6ab0a273678ffbe6086bd
[ "MIT" ]
null
null
null
utils.py
Ji-Xinyou/DIP-proj-DepthEstimation
5432c14ce1d0cdc9b8b6ab0a273678ffbe6086bd
[ "MIT" ]
null
null
null
utils.py
Ji-Xinyou/DIP-proj-DepthEstimation
5432c14ce1d0cdc9b8b6ab0a273678ffbe6086bd
[ "MIT" ]
null
null
null
import torch def save_param(model, pth_path): ''' save the parameters of the model Args: model: the model to which the params belong pth_path: the path where .pth file is saved ''' torch.save(model.state_dict(), pth_path) def load_param(model, pth_path): ''' load t...
25.190476
61
0.635161
0
0
0
0
0
0
0
0
342
0.646503
8883af6b6c6f6d7fd863836a0ab018f4af35d11b
1,348
py
Python
prob-77.py
tushargayan2324/Project_Euler
874accc918e23337510056d7140cd85a1656dd3e
[ "MIT" ]
null
null
null
prob-77.py
tushargayan2324/Project_Euler
874accc918e23337510056d7140cd85a1656dd3e
[ "MIT" ]
null
null
null
prob-77.py
tushargayan2324/Project_Euler
874accc918e23337510056d7140cd85a1656dd3e
[ "MIT" ]
null
null
null
#Project Euler Problem-77 #Author Tushar Gayan #Multinomial Theorem import math import numpy as np def mod_list(pow,terms): m = [] for i in range(terms): if i%pow == 0: m.append(1) else: m.append(0) return m[::-1] def prime_check(num): i...
18.985915
57
0.5
0
0
0
0
0
0
0
0
456
0.338279