hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
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
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a1c8500e99ab2c202368f0456ac1983694bf256
26,574
py
Python
helios/pipeViewer/pipe_view/model/query_set.py
debjyoti0891/map
abdae67964420d7d36255dcbf83e4240a1ef4295
[ "MIT" ]
44
2019-12-13T06:39:13.000Z
2022-03-29T23:09:28.000Z
helios/pipeViewer/pipe_view/model/query_set.py
debjyoti0891/map
abdae67964420d7d36255dcbf83e4240a1ef4295
[ "MIT" ]
222
2020-01-14T21:58:56.000Z
2022-03-31T20:05:12.000Z
helios/pipeViewer/pipe_view/model/query_set.py
debjyoti0891/map
abdae67964420d7d36255dcbf83e4240a1ef4295
[ "MIT" ]
19
2020-01-03T19:03:22.000Z
2022-01-09T08:36:20.000Z
import copy import logging import sys import time from . import content_options as content from logging import info, debug, warn, error # #Formerly known as Ordered_Dict class QuerySet: # For sorting elements with no clock __DEFAULT_T_OFF = 0 # # Get the Ordered Dict initialized. Note: in order to fo...
50.234405
212
0.543765
4a1c85280f06ebfcf1ca1cd229d2ce7c1852ebbc
35,882
py
Python
launchdarkly_api/model/defaults.py
launchdarkly/api-client-python
b72bd94fb65ac57bd95df5767aebcdaff50e5cb6
[ "Apache-2.0" ]
6
2020-02-06T20:17:25.000Z
2021-12-28T20:13:34.000Z
launchdarkly_api/model/defaults.py
launchdarkly/api-client-python
b72bd94fb65ac57bd95df5767aebcdaff50e5cb6
[ "Apache-2.0" ]
7
2019-02-18T21:51:47.000Z
2021-09-03T17:49:33.000Z
launchdarkly_api/model/defaults.py
launchdarkly/api-client-python
b72bd94fb65ac57bd95df5767aebcdaff50e5cb6
[ "Apache-2.0" ]
6
2019-08-02T16:10:31.000Z
2021-05-23T17:47:03.000Z
# -*- coding: utf-8 -*- """ LaunchDarkly REST API # Overview ## Authentication All REST API resources are authenticated with either [personal or service access tokens](https://docs.launchdarkly.com/home/account-security/api-access-tokens), or session cookies. Other authentication mechanisms are not supporte...
132.405904
24,467
0.6372
4a1c859043ec3a4a85781bbf8514ec9ad35c1784
3,703
py
Python
wxgui/debug.py
pshchelo/vampy
85555daf3a04bf36e81d6cd64f66bb1e4b341860
[ "BSD-3-Clause" ]
1
2021-04-19T09:48:04.000Z
2021-04-19T09:48:04.000Z
wxgui/debug.py
pshchelo/vampy
85555daf3a04bf36e81d6cd64f66bb1e4b341860
[ "BSD-3-Clause" ]
null
null
null
wxgui/debug.py
pshchelo/vampy
85555daf3a04bf36e81d6cd64f66bb1e4b341860
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python '''Frame for single image debugging ''' import wx import matplotlib as mplt mplt.use('WXAgg', warn=False) from matplotlib import cm from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas from matplotlib.backends.backend_wxagg import NavigationToolbar2WxAgg as N...
41.606742
123
0.63138
4a1c87732c7b62e0147abcabc405b248f772ccd6
130
py
Python
pantheon-hermes/pantheon/hermes/gpu/nvidia/gtx.py
CaptainBriot/hermes
b603b63b76b1e708364839367632fd3ba6dace97
[ "MIT" ]
null
null
null
pantheon-hermes/pantheon/hermes/gpu/nvidia/gtx.py
CaptainBriot/hermes
b603b63b76b1e708364839367632fd3ba6dace97
[ "MIT" ]
2
2017-12-24T20:13:15.000Z
2017-12-25T20:57:55.000Z
pantheon-hermes/pantheon/hermes/gpu/nvidia/gtx.py
CaptainBriot/pantheon-hermes
b603b63b76b1e708364839367632fd3ba6dace97
[ "MIT" ]
null
null
null
from .. import gpu class Nvidia1070(gpu.BaseGPU): model = 'GeForce GTX 1070' mem = 1300 clock = 100 power = 100
14.444444
30
0.615385
4a1c877858500c664101f51835bf5e58004af0e9
970
py
Python
project_templates/stack_package/example_dds/python/lsst/example/dds/__init__.py
lsst/templates
ea9ea300299eabc482468de6582c71ae3146f671
[ "Adobe-Glyph" ]
6
2016-07-19T20:55:01.000Z
2019-03-29T02:34:00.000Z
project_templates/stack_package/example_dds/python/lsst/example/dds/__init__.py
lsst/templates
ea9ea300299eabc482468de6582c71ae3146f671
[ "Adobe-Glyph" ]
51
2015-12-09T20:50:59.000Z
2022-03-29T17:12:52.000Z
project_templates/stack_package/example_dds/python/lsst/example/dds/__init__.py
lsst/templates
ea9ea300299eabc482468de6582c71ae3146f671
[ "Adobe-Glyph" ]
31
2015-05-06T08:56:44.000Z
2021-03-29T20:18:16.000Z
# This file is part of example_dds. # # Developed for the LSST Data Management System. # This product includes software developed by the LSST Project # (https://www.lsst.org). # See the COPYRIGHT file at the top-level directory of this distribution # for details of code ownership. # # This program is free software: you...
42.173913
72
0.764948
4a1c887f4139d63d1b87243ef3b9e57746dba52e
12,743
py
Python
4_pose_estimation/utils/dataloader.py
ryotaro137/pytorch_advanced
af212d250162d598546fc45b2823b441b013223e
[ "MIT" ]
1
2021-04-11T00:12:41.000Z
2021-04-11T00:12:41.000Z
4_pose_estimation/utils/dataloader.py
ryotaro137/pytorch_advanced
af212d250162d598546fc45b2823b441b013223e
[ "MIT" ]
null
null
null
4_pose_estimation/utils/dataloader.py
ryotaro137/pytorch_advanced
af212d250162d598546fc45b2823b441b013223e
[ "MIT" ]
2
2021-04-11T00:12:24.000Z
2021-05-22T10:06:24.000Z
# 第4章姿勢推定のデータオーギュメンテーション # 実装の一部参考に使用 # https://github.com/tensorboy/pytorch_Realtime_Multi-Person_Pose_Estimation/ # Released under the MIT license import os import os.path as osp import json from PIL import Image import cv2 import numpy as np from scipy import misc, ndimage import torch import torch.utils.data as da...
33.71164
171
0.587774
4a1c889601234d29e9fa7706bb9f84541f39b694
12,023
py
Python
tests/api_workflow/mocked_api_workflow_client.py
dmarx/lightly
d23b639d33f68ce2e986000516770e8f2ee29453
[ "MIT" ]
null
null
null
tests/api_workflow/mocked_api_workflow_client.py
dmarx/lightly
d23b639d33f68ce2e986000516770e8f2ee29453
[ "MIT" ]
null
null
null
tests/api_workflow/mocked_api_workflow_client.py
dmarx/lightly
d23b639d33f68ce2e986000516770e8f2ee29453
[ "MIT" ]
null
null
null
import unittest from io import IOBase from requests import Response from lightly.openapi_generated.swagger_client.models.dataset_create_request import DatasetCreateRequest from lightly.openapi_generated.swagger_client.models.dataset_data import DatasetData from lightly.openapi_generated.swagger_client.api.datasets_...
46.420849
120
0.713882
4a1c88b7de5f651ff18825680f2b76fb515a584a
1,320
py
Python
rallyrolebot/api/bot_activity_mappings.py
Ju99ernaut/RallyRoleBot
068a66fce957c2d65fa8d121fa96abe8c7b00e2d
[ "MIT" ]
null
null
null
rallyrolebot/api/bot_activity_mappings.py
Ju99ernaut/RallyRoleBot
068a66fce957c2d65fa8d121fa96abe8c7b00e2d
[ "MIT" ]
null
null
null
rallyrolebot/api/bot_activity_mappings.py
Ju99ernaut/RallyRoleBot
068a66fce957c2d65fa8d121fa96abe8c7b00e2d
[ "MIT" ]
null
null
null
import data from cogs.update_cog import running_bots, update_activity from fastapi import APIRouter, Depends, HTTPException from .dependencies import owner_or_admin from .models import BotActivityMapping from constants import * import config config.parse_args() router = APIRouter( prefix="/mappings/bot_activity...
29.333333
93
0.757576
4a1c8948c74453991c33d100e993cd03fcec2129
132
py
Python
findyour3d/contact/urls.py
hqpr/findyour3d
8ad3d2cb7bd0adfd080bb2314df1c78b94d3973a
[ "MIT" ]
null
null
null
findyour3d/contact/urls.py
hqpr/findyour3d
8ad3d2cb7bd0adfd080bb2314df1c78b94d3973a
[ "MIT" ]
null
null
null
findyour3d/contact/urls.py
hqpr/findyour3d
8ad3d2cb7bd0adfd080bb2314df1c78b94d3973a
[ "MIT" ]
1
2020-11-26T10:52:20.000Z
2020-11-26T10:52:20.000Z
from django.conf.urls import url from . import views urlpatterns = [ url(regex=r'^add/$', view=views.contact, name='form'), ]
16.5
58
0.674242
4a1c8a1110961eb26419058dab1a14f7a179733c
2,091
py
Python
run/old_scripts/run_plot_train_history.py
olavosamp/semiauto-video-annotation
b1a46f9c0ad3bdcedab76b4cd730747ee2afd2fd
[ "MIT" ]
null
null
null
run/old_scripts/run_plot_train_history.py
olavosamp/semiauto-video-annotation
b1a46f9c0ad3bdcedab76b4cd730747ee2afd2fd
[ "MIT" ]
20
2019-07-15T21:49:29.000Z
2020-01-09T14:35:03.000Z
run/old_scripts/run_plot_train_history.py
olavosamp/semiauto-video-annotation
b1a46f9c0ad3bdcedab76b4cd730747ee2afd2fd
[ "MIT" ]
null
null
null
import numpy as np from pathlib import Path import libs.utils as utils import libs.dirs as dirs from libs.vis_functions import plot_model_history iteration = int(input("Enter iteration number.\n")) epochs = int(input("Enter number of epochs.\n")) rede =...
37.339286
113
0.653754
4a1c8a936e5cee9afa234315181a7be87ecbba2f
809
py
Python
procuret/term_rate/term_rate.py
Procuret/procuret-python
2f49cbd3454e33986c84a6c32c0f0ab8f60d4b82
[ "MIT" ]
null
null
null
procuret/term_rate/term_rate.py
Procuret/procuret-python
2f49cbd3454e33986c84a6c32c0f0ab8f60d4b82
[ "MIT" ]
null
null
null
procuret/term_rate/term_rate.py
Procuret/procuret-python
2f49cbd3454e33986c84a6c32c0f0ab8f60d4b82
[ "MIT" ]
1
2020-10-28T14:26:21.000Z
2020-10-28T14:26:21.000Z
""" Procuret Python Term Rate Module author: hugh@blinkybeach.com """ from procuret.data.codable import Codable, CodingDefinition as CD from decimal import Decimal class TermRate(Codable): path = '/term-rate' coding_map = { 'supplier_entity_id': CD(int), 'periods': CD(int), 'periods_...
22.472222
66
0.663782
4a1c8ae6984ae9ec1b616c78517f0e10ca2113e3
19,020
py
Python
tests/FeatureEngineering_QA.py
SeanBenner/RetroFit
1417775c2154c2127b3dedaf133f8f21d5f1adfa
[ "MIT" ]
null
null
null
tests/FeatureEngineering_QA.py
SeanBenner/RetroFit
1417775c2154c2127b3dedaf133f8f21d5f1adfa
[ "MIT" ]
null
null
null
tests/FeatureEngineering_QA.py
SeanBenner/RetroFit
1417775c2154c2127b3dedaf133f8f21d5f1adfa
[ "MIT" ]
null
null
null
# QA: Test FE0_AutoLags import timeit import datatable as dt import polars as pl import retrofit from retrofit import FeatureEngineering as fe ## No Group Example: datatable data = dt.fread("C:/Users/Bizon/Documents/GitHub/BenchmarkData.csv") t_start = timeit.default_timer() Output = fe.FE0_AutoLags(data=data, ArgsLis...
33.964286
421
0.71572
4a1c8aeea785e250202c2c08969fff022b626c9f
2,402
py
Python
ApplicantClassifier.py
SilverQ/naive-bayes-applicant-classifier
b900e1dedc5fedf96834def230cb25453c4ae372
[ "MIT" ]
null
null
null
ApplicantClassifier.py
SilverQ/naive-bayes-applicant-classifier
b900e1dedc5fedf96834def230cb25453c4ae372
[ "MIT" ]
null
null
null
ApplicantClassifier.py
SilverQ/naive-bayes-applicant-classifier
b900e1dedc5fedf96834def230cb25453c4ae372
[ "MIT" ]
null
null
null
# from naiveBayesClassifier import tokenizer from naiveBayesClassifier.tokenizer import Tokenizer from naiveBayesClassifier.trainer import Trainer from naiveBayesClassifier.classifier import Classifier import csv import numpy as np import argparse parser = argparse.ArgumentParser() parser.add_argument('--train') pars...
33.361111
86
0.738135
4a1c8b01b8c186d362d16ca57de681adc31d0182
60,412
py
Python
jax/_src/random.py
lumip/jax
597879752889277adeaf36c26816b532918fee53
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
jax/_src/random.py
lumip/jax
597879752889277adeaf36c26816b532918fee53
[ "ECL-2.0", "Apache-2.0" ]
2
2022-01-31T13:20:35.000Z
2022-02-14T13:20:49.000Z
jax/_src/random.py
lumip/jax
597879752889277adeaf36c26816b532918fee53
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
37.923415
121
0.675412
4a1c8b0b4b10c228bc48d7183480144734b19537
89
py
Python
proxy/core/apps.py
VitorCapuano/nac-proxy-investimento
9974ddee533d1601339df7a4d76b57677051350b
[ "Apache-2.0" ]
null
null
null
proxy/core/apps.py
VitorCapuano/nac-proxy-investimento
9974ddee533d1601339df7a4d76b57677051350b
[ "Apache-2.0" ]
3
2020-02-11T21:52:37.000Z
2021-03-19T21:45:33.000Z
proxy/core/apps.py
vcapss/nac-proxy-investimento
9974ddee533d1601339df7a4d76b57677051350b
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class CoreConfig(AppConfig): name = 'proxy.core'
14.833333
33
0.741573
4a1c8b7042d3fb948ba246f6a9443dc48912d420
144
py
Python
lab2/mymetaclasses/lab2_task14/ModelField.py
kinpa200296/python_labs
bb26c426cbe9bb27f45b8ee4c974c38db300468f
[ "MIT" ]
null
null
null
lab2/mymetaclasses/lab2_task14/ModelField.py
kinpa200296/python_labs
bb26c426cbe9bb27f45b8ee4c974c38db300468f
[ "MIT" ]
null
null
null
lab2/mymetaclasses/lab2_task14/ModelField.py
kinpa200296/python_labs
bb26c426cbe9bb27f45b8ee4c974c38db300468f
[ "MIT" ]
null
null
null
#!/usr/bin/env python __author__ = 'kinpa200296' class ModelField(object): @classmethod def convert(cls, value): return None
14.4
28
0.666667
4a1c8c6ebdcc95293573babfed6c48d4304bb938
1,744
py
Python
imitation_agent.py
kdliu00/ROAR
17856ee47d842ed8342c34154696a4b10b916891
[ "Apache-2.0" ]
null
null
null
imitation_agent.py
kdliu00/ROAR
17856ee47d842ed8342c34154696a4b10b916891
[ "Apache-2.0" ]
null
null
null
imitation_agent.py
kdliu00/ROAR
17856ee47d842ed8342c34154696a4b10b916891
[ "Apache-2.0" ]
null
null
null
from ROAR.agent_module.agent import Agent from pathlib import Path from ROAR.control_module.pid_controller import PIDController from ROAR.planning_module.local_planner.simple_waypoint_following_local_planner import \ SimpleWaypointFollowingLocalPlanner from ROAR.planning_module.behavior_planner.behavior_planner imp...
38.755556
115
0.694954
4a1c8c8916d6ab79fff383acf26b88b02492e49e
3,320
py
Python
weboa/utils/Processing.py
lonagi/weboa
01fcfffb945b0c77f9e365f07fafe33fe39d52cd
[ "Apache-2.0" ]
null
null
null
weboa/utils/Processing.py
lonagi/weboa
01fcfffb945b0c77f9e365f07fafe33fe39d52cd
[ "Apache-2.0" ]
null
null
null
weboa/utils/Processing.py
lonagi/weboa
01fcfffb945b0c77f9e365f07fafe33fe39d52cd
[ "Apache-2.0" ]
null
null
null
import sys, io, lesscpy, sass, glob from shutil import copy2 from shutil import copytree as copytree2 from weboa import os, json from weboa.utils import Meta, FileSystem from .Printer import * from six import StringIO class Processing(Meta.meta,FileSystem.filesystem): def __init__(self, path = "../", BUILDFOLDER...
31.923077
101
0.552711
4a1c8d0a117b77229367928a938c25d0b460989c
2,162
py
Python
ProjectApplication/project_core/migrations/0052_countryuid_model.py
code-review-doctor/project-application
d85b40b69572efbcda24ce9c40803f76d8ffd192
[ "MIT" ]
5
2020-07-29T10:00:11.000Z
2022-02-19T11:00:34.000Z
ProjectApplication/project_core/migrations/0052_countryuid_model.py
code-review-doctor/project-application
d85b40b69572efbcda24ce9c40803f76d8ffd192
[ "MIT" ]
471
2019-09-20T14:37:28.000Z
2022-03-25T14:16:34.000Z
ProjectApplication/project_core/migrations/0052_countryuid_model.py
code-review-doctor/project-application
d85b40b69572efbcda24ce9c40803f76d8ffd192
[ "MIT" ]
5
2020-03-15T12:42:47.000Z
2022-02-15T18:06:52.000Z
# Generated by Django 2.2.6 on 2019-10-22 15:30 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('project_core', '0051_cre...
50.27907
258
0.654487
4a1c8df21657a2bde287c3fceeed1329e9257f44
3,520
py
Python
cloudkitty/utils/validation.py
elastx/cloudkitty
9654373f12daad606bfabac70a48b68279d522bd
[ "Apache-2.0" ]
97
2015-10-18T02:53:17.000Z
2022-03-07T05:15:39.000Z
cloudkitty/utils/validation.py
shanafang9/cloudkitty
911c90569ccb09ecf0d7aa11a5a707c8ebda09cf
[ "Apache-2.0" ]
1
2017-11-29T15:39:27.000Z
2017-11-29T15:39:27.000Z
cloudkitty/utils/validation.py
shanafang9/cloudkitty
911c90569ccb09ecf0d7aa11a5a707c8ebda09cf
[ "Apache-2.0" ]
54
2015-10-27T10:55:02.000Z
2022-02-18T08:23:19.000Z
# Copyright 2019 Objectif Libre # # 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 agr...
36.666667
78
0.64375
4a1c8e581c171110433c14cfd40bc3dc60426b2f
974
py
Python
selection/log_decorator.py
tlatkowski/deep-learning-gene-expression
47552e8902d9612c87244c26ccc8bfc503a9f9f2
[ "MIT" ]
28
2017-11-29T10:41:41.000Z
2022-03-10T15:31:01.000Z
selection/log_decorator.py
NimritaKoul/deep-learning-gene-expression
47552e8902d9612c87244c26ccc8bfc503a9f9f2
[ "MIT" ]
3
2018-10-27T11:08:00.000Z
2019-09-19T12:40:39.000Z
selection/log_decorator.py
NimritaKoul/deep-learning-gene-expression
47552e8902d9612c87244c26ccc8bfc503a9f9f2
[ "MIT" ]
13
2017-11-29T10:41:44.000Z
2022-02-15T15:19:38.000Z
import logging import os import time logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) class LogDecorator: def __init__(self, name): self.__name = name self.__path = 'features/{}.csv'.format(self.__name) def __call__(self, f, *args, **kwargs): if not os.path.exists(se...
28.647059
91
0.620123
4a1c8e77b8b16cf80ecbb8fa50c8a58f736cfa71
1,283
py
Python
scr/trace_expansion.py
zmoitier/Scattering_BIE_QPAX
a4f9660f570c618f7a14585ab943b0f16c712632
[ "MIT" ]
null
null
null
scr/trace_expansion.py
zmoitier/Scattering_BIE_QPAX
a4f9660f570c618f7a14585ab943b0f16c712632
[ "MIT" ]
null
null
null
scr/trace_expansion.py
zmoitier/Scattering_BIE_QPAX
a4f9660f570c618f7a14585ab943b0f16c712632
[ "MIT" ]
null
null
null
""" Trace expansion for ellipses Author: Zoïs Moitier Karlsruhe Institute of Technology, Germany """ from numpy import pi from .analytic import eval_field def trace_neumann_expansion(field): """ u0, u1 = trace_neu_asy(field) Return the fist two terms of the asymptotic expansion of the t...
21.032787
80
0.564302
4a1c90b27c386d1f7c5c71d7038bebbbf7e74904
8,241
py
Python
virtual/lib/python3.6/site-packages/PIL/ImageColor.py
mzazakeith/flask-blog
2833404cc5e96ffdbfb767f35b9caf2bdcce7997
[ "MIT" ]
4
2018-08-23T14:45:14.000Z
2021-05-22T16:12:33.000Z
virtual/lib/python3.6/site-packages/PIL/ImageColor.py
mzazakeith/flask-blog
2833404cc5e96ffdbfb767f35b9caf2bdcce7997
[ "MIT" ]
13
2020-01-28T22:20:14.000Z
2022-03-11T23:20:14.000Z
virtual/lib/python3.6/site-packages/PIL/ImageColor.py
mzazakeith/flask-blog
2833404cc5e96ffdbfb767f35b9caf2bdcce7997
[ "MIT" ]
2
2019-11-30T10:33:16.000Z
2021-02-03T06:29:40.000Z
# # The Python Imaging Library # $Id$ # # map CSS3-style colour description strings to RGB # # History: # 2002-10-24 fl Added support for CSS-style color strings # 2002-12-15 fl Added RGBA support # 2004-03-27 fl Fixed remaining int() problems for Python 1.5.2 # 2004-07-19 fl Fixed gray/grey spelling issues # 2...
27.841216
78
0.517534
4a1c90d254cc4e8b98de12a39a101d0833b23748
3,168
py
Python
data/custom_dataset.py
ferodia/MichiGAN
a49acb49f9659d7538e62faa3ed08e46afb0ddae
[ "MIT" ]
235
2020-07-21T20:47:15.000Z
2022-03-24T00:32:18.000Z
data/custom_dataset.py
ferodia/MichiGAN
a49acb49f9659d7538e62faa3ed08e46afb0ddae
[ "MIT" ]
16
2020-08-04T06:56:37.000Z
2022-03-21T15:25:29.000Z
data/custom_dataset.py
ferodia/MichiGAN
a49acb49f9659d7538e62faa3ed08e46afb0ddae
[ "MIT" ]
31
2020-07-21T01:53:22.000Z
2022-03-22T11:27:41.000Z
""" Copyright (C) University of Science and Technology of China. Licensed under the MIT License. """ from data.pix2pix_dataset import Pix2pixDataset from data.image_folder import make_dataset import random import os class CustomDataset(Pix2pixDataset): """ Dataset that loads images from directories Use o...
44.619718
122
0.665404
4a1c91182c71546899845ec9d2825fcbb3259610
1,393
py
Python
pantam_cli/action.py
flmnt/pantam
da47d977e69ec410d0642b5ade1f2323c1b6b350
[ "MIT" ]
2
2020-10-04T10:29:43.000Z
2021-03-30T13:45:09.000Z
pantam_cli/action.py
flmnt/pantam
da47d977e69ec410d0642b5ade1f2323c1b6b350
[ "MIT" ]
null
null
null
pantam_cli/action.py
flmnt/pantam
da47d977e69ec410d0642b5ade1f2323c1b6b350
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from os import getcwd from pathlib import Path import sys from pantam_cli.utils.filesystem import ( create_file, make_class_name, load_pantamrc_file, ) from pantam_cli.utils.messages import ( info_msg, error_msg, success_msg, write_error, write_msg, NewLine, )...
24.017241
85
0.646088
4a1c91197664870a0644dbc6e9e3197b297a3c37
412
py
Python
.history/my_classes/FunctionParameters/KeywordArgs_20210630185109.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
.history/my_classes/FunctionParameters/KeywordArgs_20210630185109.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
.history/my_classes/FunctionParameters/KeywordArgs_20210630185109.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
''' [Keyword Arguments] Positional parameters can, optionally be passed as named (keyword) arguments def func(a, b, c): # code func(1, 2, 3) -> a = 1, b = 2, c = 3 func(a=1, c=3, b=2) -> a = 1, b = 2, c = 3 Using named arguments in this case is entirely up to the caller. ...
20.6
76
0.589806
4a1c918301acc361996b739c4dd63c9214eb993c
1,887
py
Python
mesos_viewer/popup.py
alimaken/mesos-viewer
1e6170cf7222b93e37d910477c735daf7f081bb9
[ "MIT" ]
2
2019-05-01T08:20:23.000Z
2020-05-12T04:27:39.000Z
mesos_viewer/popup.py
alimaken/mesos-viewer
1e6170cf7222b93e37d910477c735daf7f081bb9
[ "MIT" ]
1
2019-04-23T11:56:17.000Z
2019-04-23T11:56:17.000Z
mesos_viewer/popup.py
alimaken/mesos-viewer
1e6170cf7222b93e37d910477c735daf7f081bb9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import urwid class Popup(urwid.WidgetWrap): """ Creates a popup menu on top of another BoxWidget. Attributes: selected -- Contains the item the user has selected by pressing <RETURN>, or None if nothing has been selected. """ selected = None def ...
32.534483
77
0.573397
4a1c92ce97507667e8bafa6b2f85245b538f7594
2,889
py
Python
cellfinder_core/tools/tiff.py
npeschke/cellfinder-core
7a86a7d2c879c94da529ec6140f7e5c3f02bf288
[ "BSD-3-Clause" ]
5
2021-01-22T11:40:01.000Z
2021-09-10T07:16:05.000Z
cellfinder_core/tools/tiff.py
npeschke/cellfinder-core
7a86a7d2c879c94da529ec6140f7e5c3f02bf288
[ "BSD-3-Clause" ]
38
2021-01-22T11:50:29.000Z
2022-03-11T11:04:06.000Z
cellfinder_core/tools/tiff.py
npeschke/cellfinder-core
7a86a7d2c879c94da529ec6140f7e5c3f02bf288
[ "BSD-3-Clause" ]
12
2021-06-18T09:57:24.000Z
2022-03-06T13:03:18.000Z
import natsort from os import listdir from os.path import isfile, join from imlib.cells.cells import Cell, UntypedCell class TiffList(object): """This class represents list of tiff files. These tiff files are the output from the cell extractor plugin and are used as training and classification data. ...
29.783505
79
0.585324
4a1c9318f4801e7767efad6e4c6648816524b504
3,427
py
Python
ime/utils/tools.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-02-25T05:34:44.000Z
2022-02-25T05:34:44.000Z
ime/utils/tools.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
null
null
null
ime/utils/tools.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-30T07:20:29.000Z
2022-03-30T07:20:29.000Z
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...
29.042373
102
0.6904
4a1c93502a56d64bad555514380421cfc4b88db4
39,760
py
Python
lolstaticdata/champions/pull_champions_wiki.py
meraki-analytics/lolstaticdata
3ebd99feb58fa8ea69e1b3068a76aa3e8d803eab
[ "MIT" ]
24
2020-05-16T16:33:19.000Z
2022-03-26T16:35:15.000Z
lolstaticdata/champions/pull_champions_wiki.py
meraki-analytics/lolstaticdata
3ebd99feb58fa8ea69e1b3068a76aa3e8d803eab
[ "MIT" ]
17
2020-05-21T14:20:41.000Z
2021-04-26T12:42:23.000Z
lolstaticdata/champions/pull_champions_wiki.py
meraki-analytics/lolstaticdata
3ebd99feb58fa8ea69e1b3068a76aa3e8d803eab
[ "MIT" ]
14
2020-05-24T18:09:11.000Z
2021-10-04T15:11:30.000Z
from typing import Tuple, List, Union, Iterator, Dict import re from bs4 import BeautifulSoup from collections import Counter from slpp import slpp as lua from datetime import datetime from ..common.modelcommon import ( DamageType, Health, HealthRegen, Mana, ManaRegen, Armor, MagicResistanc...
39.879639
179
0.511268
4a1c9554ec10485779e0e007f397ea17c597160a
3,131
py
Python
day/seven/test_main.py
stupoid/aoc-2020
dc72f81c7e0150baeb208bf5470a4cb9d79864d9
[ "MIT" ]
null
null
null
day/seven/test_main.py
stupoid/aoc-2020
dc72f81c7e0150baeb208bf5470a4cb9d79864d9
[ "MIT" ]
null
null
null
day/seven/test_main.py
stupoid/aoc-2020
dc72f81c7e0150baeb208bf5470a4cb9d79864d9
[ "MIT" ]
null
null
null
from day.seven.main import ( generate_lookup, generate_reverse_lookup, get_bags_in_bag, parse, find_bag, ) def test_parse(): input_file = open("day/seven/test_input.txt", "r") rules = [parse(i.strip()) for i in input_file] assert rules == [ ["light red", (1, "bright white"), (2...
35.988506
78
0.582881
4a1c95fde0b1322c8c643a4d68d290da609d9db3
6,241
py
Python
Proyecto_parqueadero_Ean.py
Matieljimenez/Proyecto_parqueadero_Ean
b75d370eea6ad1760c0f248e4aee3d2660d7a7be
[ "MIT" ]
null
null
null
Proyecto_parqueadero_Ean.py
Matieljimenez/Proyecto_parqueadero_Ean
b75d370eea6ad1760c0f248e4aee3d2660d7a7be
[ "MIT" ]
null
null
null
Proyecto_parqueadero_Ean.py
Matieljimenez/Proyecto_parqueadero_Ean
b75d370eea6ad1760c0f248e4aee3d2660d7a7be
[ "MIT" ]
null
null
null
print("¡¡BIENVENIDO AL PARQUEADERO DE LA UNIVERSIDAD EAN!! ") usuario=int(input("Si eres empleado del parqueadero ingresa 1 si eres usuario 0:")) if(usuario==1): lista=["lorena","1234"] while True: empleado=input("Digite Usuario: ") if(empleado==lista[0]): while (empleado==lista[0])==True: contraseña=inpu...
33.021164
257
0.683544
4a1c96368de5084a71fb5519afee0cd8fcc20697
8,685
py
Python
src/griffe/agents/extensions/base.py
WillDaSilva/griffe
301384e499d598c0475814c99f3a15d0b8feb587
[ "ISC" ]
29
2022-01-31T21:39:28.000Z
2022-03-24T04:03:27.000Z
src/griffe/agents/extensions/base.py
WillDaSilva/griffe
301384e499d598c0475814c99f3a15d0b8feb587
[ "ISC" ]
56
2022-01-31T20:41:23.000Z
2022-03-31T19:03:07.000Z
src/griffe/agents/extensions/base.py
WillDaSilva/griffe
301384e499d598c0475814c99f3a15d0b8feb587
[ "ISC" ]
5
2022-02-19T16:58:55.000Z
2022-03-21T18:28:03.000Z
"""This module contains the base classes for dealing with extensions.""" from __future__ import annotations import ast import enum from collections import defaultdict from inspect import isclass from typing import TYPE_CHECKING, Any, Sequence, Type, Union from griffe.agents.base import BaseInspector, BaseVisitor fro...
30.797872
129
0.653541
4a1c976973b2a67a260c3efe014cf5f2eba99d19
3,951
py
Python
api/allennlp_demo/permalinks/api.py
jvstokes/allennlp-demo
f98a72118c3c9e27429d8111fd71e727b647ff89
[ "Apache-2.0" ]
1
2021-01-02T12:59:04.000Z
2021-01-02T12:59:04.000Z
api/allennlp_demo/permalinks/api.py
Przegali/allennlp-demo
f03823d90468b84803a64a87a9cecdac05309838
[ "Apache-2.0" ]
null
null
null
api/allennlp_demo/permalinks/api.py
Przegali/allennlp-demo
f03823d90468b84803a64a87a9cecdac05309838
[ "Apache-2.0" ]
null
null
null
from typing import Optional import psycopg2 from flask import Flask, Response, jsonify, request from werkzeug.exceptions import BadRequest, InternalServerError, NotFound from allennlp_demo.permalinks.db import DemoDatabase, PostgresDemoDatabase from allennlp_demo.permalinks.models import slug_to_int, int_to_slug fro...
36.583333
94
0.587952
4a1c978c9f6246ee22c7d2baa4f7a6053ea34aba
1,097
py
Python
kubernetes/test/test_v2beta2_horizontal_pod_autoscaler_spec.py
L3T/python
b6e4ae81a2afb49f668a142eb7d1c6e2571ef478
[ "Apache-2.0" ]
2
2020-06-21T08:03:18.000Z
2020-06-21T09:53:29.000Z
kubernetes/test/test_v2beta2_horizontal_pod_autoscaler_spec.py
L3T/python
b6e4ae81a2afb49f668a142eb7d1c6e2571ef478
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v2beta2_horizontal_pod_autoscaler_spec.py
L3T/python
b6e4ae81a2afb49f668a142eb7d1c6e2571ef478
[ "Apache-2.0" ]
1
2020-12-10T07:28:08.000Z
2020-12-10T07:28:08.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: release-1.16 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import...
27.425
132
0.758432
4a1c9932ca3aebc963adb17ea24cce0c0e4856c5
13,906
py
Python
pyqldbsamples/insert_ion_types.py
simonz-bq/amazon-qldb-dmv-sample-python
ca27d40d992e63e5dec8e1a431517fc745f8185c
[ "MIT-0" ]
null
null
null
pyqldbsamples/insert_ion_types.py
simonz-bq/amazon-qldb-dmv-sample-python
ca27d40d992e63e5dec8e1a431517fc745f8185c
[ "MIT-0" ]
null
null
null
pyqldbsamples/insert_ion_types.py
simonz-bq/amazon-qldb-dmv-sample-python
ca27d40d992e63e5dec8e1a431517fc745f8185c
[ "MIT-0" ]
null
null
null
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 # # Permission is hereby granted, free of charge, to any person obtaining a copy of this # software and associated documentation files (the "Software"), to deal in the Software # without restriction, including wit...
60.46087
120
0.6106
4a1c9bbd138b37fbe24f58c153d1966d36dc436a
3,248
py
Python
docs/sphinxext/autodoc_traits.py
mariobuikhuizen/pythreejs
150ff1c10c868b17fefa63d19153b5ee1fe87f66
[ "BSD-3-Clause" ]
451
2018-04-20T17:44:49.000Z
2022-03-26T21:53:05.000Z
docs/sphinxext/autodoc_traits.py
Jimmy-INL/pythreejs
a78cb57456948526e39ea79ac003c2cfde5ed0f4
[ "BSD-3-Clause" ]
164
2018-04-19T08:34:57.000Z
2022-03-31T12:58:53.000Z
docs/sphinxext/autodoc_traits.py
Jimmy-INL/pythreejs
a78cb57456948526e39ea79ac003c2cfde5ed0f4
[ "BSD-3-Clause" ]
119
2018-04-23T16:01:02.000Z
2022-03-26T03:28:59.000Z
"""autodoc extension for traits""" from collections import OrderedDict from traitlets import TraitType, Undefined, Container, Dict, Any, HasTraits from sphinx.ext.autodoc import ClassDocumenter, AttributeDocumenter def dict_info(trait): try: trait_base = trait._value_trait except AttributeError: ...
31.843137
89
0.637623
4a1c9bed1782540eaf62e2518db17693e7acbaf9
800
py
Python
puma/attribute/attribute/sharing_attribute_between_scopes_not_allowed_error.py
gift-surg/puma
58beae3459a0c8d96adfe9af323e26868428df4d
[ "Apache-2.0" ]
null
null
null
puma/attribute/attribute/sharing_attribute_between_scopes_not_allowed_error.py
gift-surg/puma
58beae3459a0c8d96adfe9af323e26868428df4d
[ "Apache-2.0" ]
13
2020-05-04T14:14:58.000Z
2020-07-29T16:37:03.000Z
puma/attribute/attribute/sharing_attribute_between_scopes_not_allowed_error.py
gift-surg/puma
58beae3459a0c8d96adfe9af323e26868428df4d
[ "Apache-2.0" ]
null
null
null
from puma.attribute import ThreadAction class SharingAttributeBetweenScopesNotAllowedError(TypeError): def __init__(self, attribute_name: str, scope_type: str, action_type: str) -> None: super().__init__(f"Attribute '{attribute_name}' may not be passed between {scope_type} as its {action_type} is '{Threa...
40
154
0.7825
4a1c9c0740602217e1e0ab20eb228c96098d6c1e
978
py
Python
python/phonenumbers/shortdata/region_GH.py
vishnuku/python-phonenumbers
6ac2cdd06b7ccf709a8efb21629cf2c5f030e627
[ "Apache-2.0" ]
3
2018-12-02T23:09:00.000Z
2018-12-02T23:16:59.000Z
python/phonenumbers/shortdata/region_GH.py
carljm/python-phonenumbers
494044aaf75443dbfd62b8d1352b441af6a458ae
[ "Apache-2.0" ]
null
null
null
python/phonenumbers/shortdata/region_GH.py
carljm/python-phonenumbers
494044aaf75443dbfd62b8d1352b441af6a458ae
[ "Apache-2.0" ]
null
null
null
"""Auto-generated file, do not edit by hand. GH metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_GH = PhoneMetadata(id='GH', country_code=None, international_prefix=None, general_desc=PhoneNumberDesc(national_number_pattern='[14589]\\d{2,4}', possible_number_patte...
75.230769
173
0.757669
4a1c9c3305d19ce1330cb7bd93bf49261a4dce31
6,469
py
Python
tests/test_symbolic.py
mariusmue/angr
f8304c4b1f0097a721a6692b02a45cabaae137c5
[ "BSD-2-Clause" ]
2
2018-05-02T17:41:36.000Z
2020-05-18T02:49:16.000Z
tests/test_symbolic.py
mariusmue/angr
f8304c4b1f0097a721a6692b02a45cabaae137c5
[ "BSD-2-Clause" ]
null
null
null
tests/test_symbolic.py
mariusmue/angr
f8304c4b1f0097a721a6692b02a45cabaae137c5
[ "BSD-2-Clause" ]
1
2019-08-07T01:42:01.000Z
2019-08-07T01:42:01.000Z
import angr import nose #def broken_symvalue(): # # concrete symvalue # zero = SimValue(se.BVV(0, 64)) # nose.tools.assert_false(zero.is_symbolic()) # nose.tools.assert_equal(zero.eval(), 0) # nose.tools.assert_raises(ConcretizingException, zero.eval_exactly, 2) # # # symbolic symvalue # x = se.BVS('x', ...
38.736527
118
0.662544
4a1c9edf8592837c981ab4a7d6383dbc2259c85b
596
py
Python
desafio-04/sklearn_transforms/setup.py
igorvroberto/Maratona-IBM-2020
b8dd6413e3ef80764901bd8d05c5ee307a8ee71d
[ "MIT" ]
null
null
null
desafio-04/sklearn_transforms/setup.py
igorvroberto/Maratona-IBM-2020
b8dd6413e3ef80764901bd8d05c5ee307a8ee71d
[ "MIT" ]
null
null
null
desafio-04/sklearn_transforms/setup.py
igorvroberto/Maratona-IBM-2020
b8dd6413e3ef80764901bd8d05c5ee307a8ee71d
[ "MIT" ]
null
null
null
from setuptools import setup from pandas import Categorical, get_dummies setup( name='my_custom_sklearn_transforms', version='1.0', description=''' This is a sample python package for encapsulating custom tranforms from scikit-learn into Watson Machine Learning ''', ...
29.8
92
0.66443
4a1c9fbd49e836e0079f501713f70ea1c5c090bc
731
py
Python
CONFIG.sample.py
radiantly/ample-indexer
55c607bd3752cef32bf1389ca10b10bc0f24328d
[ "MIT" ]
null
null
null
CONFIG.sample.py
radiantly/ample-indexer
55c607bd3752cef32bf1389ca10b10bc0f24328d
[ "MIT" ]
null
null
null
CONFIG.sample.py
radiantly/ample-indexer
55c607bd3752cef32bf1389ca10b10bc0f24328d
[ "MIT" ]
null
null
null
from webdriver_manager.utils import ChromeType # Your email and password user_email = "" user_passw = "" # What browser to use while retrieving cookies # ChromeType.GOOGLE = Google Chrome # ChromeType.CHROMIUM = Chromium # ChromeType.MSEDGE = Microsoft Edge chrome_type = ChromeType.GOOGLE # For savepdf.py # Base di...
25.206897
66
0.716826
4a1ca051cf8886974877830507736f925e5477d1
1,169
py
Python
test/look_back.py
apolloaggrey/block_chain
62b908239fc866fdc8baa4bf412a36efcc5889f5
[ "MIT" ]
null
null
null
test/look_back.py
apolloaggrey/block_chain
62b908239fc866fdc8baa4bf412a36efcc5889f5
[ "MIT" ]
null
null
null
test/look_back.py
apolloaggrey/block_chain
62b908239fc866fdc8baa4bf412a36efcc5889f5
[ "MIT" ]
null
null
null
import sys as DVDNVSVBUSHNB import time as YRYGFBUYEGBFU def main(): NIFNVNIJCBDB = str(DVDNVSVBUSHNB.argv[0]).split("\\")[-1] NBJYVJHHVYSY = "" with open(NIFNVNIJCBDB, "r") as YTFYBTFBVDYF: for GBGBYFFHTF in YTFYBTFBVDYF: if GBGBYFFHTF.startswith(" JBVFUSVNSVUB"): G...
35.424242
65
0.570573
4a1ca0fc7e4a6e046bbbf8f67c24a3c307e9d7fd
17,536
py
Python
models/resnet.py
YantaoShen/openBCT
69e798c2dd6380572da7a88b68e0e9d31d9b08a4
[ "BSD-2-Clause" ]
64
2020-10-13T06:24:41.000Z
2022-03-08T11:23:22.000Z
models/resnet.py
YantaoShen/openBCT
69e798c2dd6380572da7a88b68e0e9d31d9b08a4
[ "BSD-2-Clause" ]
4
2020-12-29T05:57:34.000Z
2022-01-13T18:07:05.000Z
models/resnet.py
YantaoShen/openBCT
69e798c2dd6380572da7a88b68e0e9d31d9b08a4
[ "BSD-2-Clause" ]
10
2020-10-13T06:25:51.000Z
2022-03-03T00:06:06.000Z
import torch import torch.nn as nn import torch.nn.functional as F import numpy as np from torch.hub import load_state_dict_from_url __all__ = ['ResNet', 'resnet18', 'resnet34', 'resnet50', 'resnet101', 'resnet152', 'resnext50_32x4d', 'resnext101_32x8d', 'wide_resnet50_2', 'wide_resnet101_2'] mo...
41.164319
107
0.607835
4a1ca163f13aebaee21c43f6fa286245720a23db
2,843
py
Python
qiskit/providers/aer/library/save_instructions/save_stabilizer.py
garrison/qiskit-aer
24c51a675b8653c8ad2af587d40b795ac94c07c7
[ "Apache-2.0" ]
313
2018-12-19T09:19:12.000Z
2022-03-21T18:15:41.000Z
qiskit/providers/aer/library/save_instructions/save_stabilizer.py
garrison/qiskit-aer
24c51a675b8653c8ad2af587d40b795ac94c07c7
[ "Apache-2.0" ]
933
2018-12-21T02:56:49.000Z
2022-03-30T01:19:54.000Z
qiskit/providers/aer/library/save_instructions/save_stabilizer.py
chriseclectic/qiskit-aer
61b028b7ccd1d6e96c8de48a10648c0bc3c07ff9
[ "Apache-2.0" ]
313
2018-12-19T14:52:55.000Z
2022-02-28T20:20:14.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2018, 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
38.418919
94
0.641224
4a1ca164c9ee70f8adabde7e754bf34dc4418500
18,280
py
Python
regions/io/crtf/read.py
Yash-10/regions
bd69db9b0e9fe5025bdb2c121086a09325795f9e
[ "BSD-3-Clause" ]
null
null
null
regions/io/crtf/read.py
Yash-10/regions
bd69db9b0e9fe5025bdb2c121086a09325795f9e
[ "BSD-3-Clause" ]
null
null
null
regions/io/crtf/read.py
Yash-10/regions
bd69db9b0e9fe5025bdb2c121086a09325795f9e
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst import re import copy import itertools from warnings import warn from astropy import units as u from astropy import coordinates from .core import CRTFRegionParserError, CRTFRegionParserWarning, valid_symbols from ..core import Shape, ShapeList, reg_mappi...
38.083333
120
0.560449
4a1ca17e3c2ca28e5b76e91bd2eac22604816350
401
py
Python
run.py
bigrepedge/labpipestest
0a2f4ee5ecb8b9f57152ba670fe87d5871b0e606
[ "MIT" ]
null
null
null
run.py
bigrepedge/labpipestest
0a2f4ee5ecb8b9f57152ba670fe87d5871b0e606
[ "MIT" ]
null
null
null
run.py
bigrepedge/labpipestest
0a2f4ee5ecb8b9f57152ba670fe87d5871b0e606
[ "MIT" ]
null
null
null
import logging import os logging.basicConfig(level=logging.INFO) from app import app, opc_ua_machine try: if os.environ.get("WERKZEUG_RUN_MAIN") == "true": opc_ua_machine.start(virtual=True) app.run(host='localhost', port=5000, debug=True, ssl_context = ('cert.pem', 'privkey.pem')) #added self signe...
26.733333
158
0.735661
4a1ca38133907a6f6c1a928d0605fdb61c629fe1
5,448
py
Python
LocalMercurial/mercurial/sslutil.py
l2dy/machg
45695dced17431c914c69528f898d398dd695efe
[ "BSD-3-Clause" ]
null
null
null
LocalMercurial/mercurial/sslutil.py
l2dy/machg
45695dced17431c914c69528f898d398dd695efe
[ "BSD-3-Clause" ]
null
null
null
LocalMercurial/mercurial/sslutil.py
l2dy/machg
45695dced17431c914c69528f898d398dd695efe
[ "BSD-3-Clause" ]
1
2021-12-16T23:31:37.000Z
2021-12-16T23:31:37.000Z
# sslutil.py - SSL handling for mercurial # # Copyright 2005, 2006, 2007, 2008 Matt Mackall <mpm@selenic.com> # Copyright 2006, 2007 Alexis S. L. Carvalho <alexis@cecm.usp.br> # Copyright 2006 Vadim Gelfer <vadim.gelfer@gmail.com> # # This software may be used and distributed according to the terms of the # GNU General...
40.962406
83
0.557819
4a1ca4c963b621cc70abb1ea57bdf4b809ab0b5d
15,055
py
Python
bundle_conda.py
davidpross/napari
11f70f559159632c2af27697046b3d75a529f452
[ "BSD-3-Clause" ]
1
2021-12-14T14:07:40.000Z
2021-12-14T14:07:40.000Z
bundle_conda.py
maweigert/napari
48cdf4d1c4bcf6f76603e90b1c0c7498e2aba6c0
[ "BSD-3-Clause" ]
null
null
null
bundle_conda.py
maweigert/napari
48cdf4d1c4bcf6f76603e90b1c0c7498e2aba6c0
[ "BSD-3-Clause" ]
1
2019-01-12T21:04:14.000Z
2019-01-12T21:04:14.000Z
""" Create napari installers using `constructor`. It creates a `construct.yaml` file with the needed settings and then runs `constructor`. For more information, see Documentation> Developers> Packaging. Some environment variables we use: CONSTRUCTOR_APP_NAME: in case you want to build a non-default distribution...
33.455556
89
0.62916
4a1ca4f575298f94c5ac3b87d6385a265953b2c7
887
py
Python
config.py
FelipeSPB/client_weather_api
297a3801c76fed0abc338a4ebab8ddc499957e4a
[ "Apache-2.0" ]
null
null
null
config.py
FelipeSPB/client_weather_api
297a3801c76fed0abc338a4ebab8ddc499957e4a
[ "Apache-2.0" ]
2
2020-06-05T21:41:49.000Z
2021-06-10T21:36:16.000Z
config.py
FelipeSPB/client_weather_api
297a3801c76fed0abc338a4ebab8ddc499957e4a
[ "Apache-2.0" ]
null
null
null
from pathlib import Path import requests def creating_folder(): folder = Path("config/") folder.mkdir(parents=True, exist_ok=True) def creating_command_install_requirements(): Path('config/install.bat').touch() write = Path('./config/install.bat') write.write_text('cd..\npip install -r requireme...
28.612903
88
0.692221
4a1ca656960daf117f5af95379ff799560b6caaa
972
py
Python
models/download.py
alexlee-gk/citysim3d
37206572100e037f211f9cf1f947108765351c3d
[ "MIT" ]
27
2016-11-24T04:42:23.000Z
2021-10-15T01:43:51.000Z
models/download.py
alexlee-gk/citysim3d
37206572100e037f211f9cf1f947108765351c3d
[ "MIT" ]
1
2020-05-02T15:34:25.000Z
2020-05-02T15:34:25.000Z
models/download.py
alexlee-gk/citysim3d
37206572100e037f211f9cf1f947108765351c3d
[ "MIT" ]
8
2017-04-05T12:54:07.000Z
2021-08-03T06:46:40.000Z
#!/usr/bin/env python import os import subprocess import argparse try: from urllib2 import urlopen except ImportError: from urllib.request import urlopen import tarfile assert "CITYSIM3D_DIR" in os.environ parser = argparse.ArgumentParser() parser.add_argument("--rsync", action="store_true") args = parser.pa...
29.454545
111
0.720165
4a1ca6a6d2e56f344ac200e338aa9cf204e711f0
884
py
Python
src/azure-cli/azure/cli/command_modules/marketplaceordering/generated/_client_factory.py
YuanyuanNi/azure-cli
63844964374858bfacd209bfe1b69eb456bd64ca
[ "MIT" ]
3,287
2016-07-26T17:34:33.000Z
2022-03-31T09:52:13.000Z
src/azure-cli/azure/cli/command_modules/marketplaceordering/generated/_client_factory.py
YuanyuanNi/azure-cli
63844964374858bfacd209bfe1b69eb456bd64ca
[ "MIT" ]
19,206
2016-07-26T07:04:42.000Z
2022-03-31T23:57:09.000Z
src/azure-cli/azure/cli/command_modules/marketplaceordering/generated/_client_factory.py
YuanyuanNi/azure-cli
63844964374858bfacd209bfe1b69eb456bd64ca
[ "MIT" ]
2,575
2016-07-26T06:44:40.000Z
2022-03-31T22:56:06.000Z
# -------------------------------------------------------------------------- # 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 cause incor...
42.095238
78
0.640271
4a1ca6ca8e4b8dd24156c460547b3c02318564f5
6,035
py
Python
arcade/examples/perf_test/stress_test_draw_shapes.py
LiorAvrahami/arcade
fce254a9eb89629de1f99d57a63759a2953184e9
[ "MIT" ]
1
2020-04-04T01:03:24.000Z
2020-04-04T01:03:24.000Z
arcade/examples/perf_test/stress_test_draw_shapes.py
LiorAvrahami/arcade
fce254a9eb89629de1f99d57a63759a2953184e9
[ "MIT" ]
1
2019-08-11T18:47:27.000Z
2019-08-12T03:02:11.000Z
arcade/examples/perf_test/stress_test_draw_shapes.py
LiorAvrahami/arcade
fce254a9eb89629de1f99d57a63759a2953184e9
[ "MIT" ]
null
null
null
""" Moving Sprite Stress Test Simple program to test how fast we can draw sprites that are moving Artwork from http://kenney.nl If Python and Arcade are installed, this example can be run from the command line with: python -m arcade.examples.stress_test_draw_moving """ import random import arcade import os import t...
31.108247
106
0.611599
4a1ca6f79e897db232a0d945dc144bca6ef3b92b
7,037
py
Python
Yachu.py
SeminKim/YachtDiscord
56f30559868c45b754ae37fdcb68de062a7b8a06
[ "MIT" ]
1
2021-01-04T09:15:25.000Z
2021-01-04T09:15:25.000Z
Yachu.py
SeminKim/YachtDiscord
56f30559868c45b754ae37fdcb68de062a7b8a06
[ "MIT" ]
2
2020-07-23T16:16:55.000Z
2020-08-01T06:54:45.000Z
Yachu.py
SeminKim/YachtDiscord
56f30559868c45b754ae37fdcb68de062a7b8a06
[ "MIT" ]
null
null
null
import random import discord class Yachu(): def __init__(self): self.save_log = True # Change to False if you don't want logging self.score = [0] * 15 self.dice = [0] * 5 self.locked = [False] * 5 self.phase = 0 self.isAlive = [True] * 12 self.turn = 0 ...
31.275556
123
0.500355
4a1ca72fb30db0cd94eb6ef5562f3b2013902a44
10,325
py
Python
test/tool_shed/functional/test_1430_repair_installed_repository.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
null
null
null
test/tool_shed/functional/test_1430_repair_installed_repository.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
null
null
null
test/tool_shed/functional/test_1430_repair_installed_repository.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
1
2020-07-25T21:03:18.000Z
2020-07-25T21:03:18.000Z
from tool_shed.base.twilltestcase import ShedTwillTestCase, common, os import tool_shed.base.test_db_util as test_db_util import logging log = logging.getLogger( __name__ ) category_name = 'Test 1430 Repair installed repository' category_description = 'Test script 1430 for repairing an installed repository.' filter_r...
57.044199
142
0.656659
4a1ca8842e2993f48cb70c8b03b37f181133c991
2,164
py
Python
SPY-games/code.py
Ruchita102/ga-learner-dsmp-repo
741b96019b2aaf730efd3b7d1b17965b4da5e743
[ "MIT" ]
null
null
null
SPY-games/code.py
Ruchita102/ga-learner-dsmp-repo
741b96019b2aaf730efd3b7d1b17965b4da5e743
[ "MIT" ]
null
null
null
SPY-games/code.py
Ruchita102/ga-learner-dsmp-repo
741b96019b2aaf730efd3b7d1b17965b4da5e743
[ "MIT" ]
null
null
null
# -------------- def read_file(path): file=open(path,'r') sentence=file.readline() file.close() return sentence sample_message=read_file(file_path) print(sample_message) # -------------- #Code starts here message_1=read_file(file_path_1) message_2=read_file(file_path_2) print(message_1,me...
21.64
71
0.67329
4a1ca8847fb8d1c8c952447b9329ef53703253a0
12,762
py
Python
fHDHR_web/api/tuners.py
alexmerm/fHDHR
586ffe5540a69da1430bec3dbbdcc8e86232fd03
[ "WTFPL" ]
null
null
null
fHDHR_web/api/tuners.py
alexmerm/fHDHR
586ffe5540a69da1430bec3dbbdcc8e86232fd03
[ "WTFPL" ]
null
null
null
fHDHR_web/api/tuners.py
alexmerm/fHDHR
586ffe5540a69da1430bec3dbbdcc8e86232fd03
[ "WTFPL" ]
null
null
null
from flask import Response, request, redirect, abort, stream_with_context, session import urllib.parse import json from fHDHR.exceptions import TunerError class Tuners(): endpoints = ["/api/tuners"] endpoint_name = "api_tuners" endpoint_methods = ["GET", "POST"] endpoint_default_parameters = { ...
48.158491
154
0.558768
4a1ca9697d104014d8cea3a47f68e33f8be8c14c
4,281
py
Python
baccarat.py
lnbalon/open-casino
2358b12fa2c3c6f17a06c261cf763a2709e4b034
[ "MIT" ]
null
null
null
baccarat.py
lnbalon/open-casino
2358b12fa2c3c6f17a06c261cf763a2709e4b034
[ "MIT" ]
null
null
null
baccarat.py
lnbalon/open-casino
2358b12fa2c3c6f17a06c261cf763a2709e4b034
[ "MIT" ]
null
null
null
import random def shuffle_shoe(n_decks=8): cards = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 'J', 'Q', 'K'] deck = cards * 4 shoe = deck * n_decks random.shuffle(shoe) return shoe def deal_game(shoe): # initialize a list to store cards for player and banker player = [] banker = [] # defi...
28.731544
79
0.5758
4a1ca9a2a1daa67ea7772e09aef562b0cc425898
3,017
py
Python
finetuning-transformer-lm/utils.py
take-cheeze/models
3ded8fd062c57f20f6154cac2dd0d998181de755
[ "MIT" ]
112
2018-04-18T07:13:03.000Z
2022-03-11T03:36:34.000Z
finetuning-transformer-lm/utils.py
take-cheeze/models
3ded8fd062c57f20f6154cac2dd0d998181de755
[ "MIT" ]
16
2018-05-11T11:41:08.000Z
2021-04-24T03:50:54.000Z
finetuning-transformer-lm/utils.py
take-cheeze/models
3ded8fd062c57f20f6154cac2dd0d998181de755
[ "MIT" ]
45
2018-04-18T07:13:06.000Z
2021-12-22T03:46:18.000Z
import os import sys import json import time from functools import partial import numpy as np # import tensorflow as tf # from tensorflow.python.framework import function from tqdm import tqdm def encode_dataset(*splits, encoder): encoded_splits = [] for split in splits[0]: fields = [] for fie...
23.387597
62
0.55585
4a1caa1eb1512628d47b8339ba4ff54366625f09
377
py
Python
other/lambda_variables.py
mlobf/python_advanced
9516f64c5a3540af2574e123eab9b36b5c242ec6
[ "BSD-3-Clause" ]
null
null
null
other/lambda_variables.py
mlobf/python_advanced
9516f64c5a3540af2574e123eab9b36b5c242ec6
[ "BSD-3-Clause" ]
null
null
null
other/lambda_variables.py
mlobf/python_advanced
9516f64c5a3540af2574e123eab9b36b5c242ec6
[ "BSD-3-Clause" ]
null
null
null
""" Do lambda function with a external paramet Do not forget to put params in the end of the lambda function. """ x = 5 # print(lambda x: x + 1) # print(x) # l = (lambda x: x + 1)(5) # print(l) items = [1, 2, 3, 4, 5, 6, 7, 8, 9] lista_compras = [] contador = 0 for _ in items: lista_compras....
13.962963
57
0.596817
4a1caa3b95d30b7bd192f4ca055f347552c989cf
1,014
py
Python
accounts/admin.py
slk007/SahiGalat.com
786688e07237f3554187b90e01149225efaa1713
[ "MIT" ]
null
null
null
accounts/admin.py
slk007/SahiGalat.com
786688e07237f3554187b90e01149225efaa1713
[ "MIT" ]
null
null
null
accounts/admin.py
slk007/SahiGalat.com
786688e07237f3554187b90e01149225efaa1713
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth.models import Group from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django.core.exceptions import ValidationError from .forms import UserCreationForm, UserChangeForm from .models import MyUser class UserAdmin(BaseUserAdmin): form...
27.405405
70
0.635108
4a1caab33b43a164bb39532a0cde2c94d985fad0
67,536
py
Python
serial_scripts/asn4/test_asn4.py
atsgen/tf-test
2748fcd81491450c75dadc71849d2a1c11061029
[ "Apache-2.0" ]
5
2020-09-29T00:36:57.000Z
2022-02-16T06:51:32.000Z
serial_scripts/asn4/test_asn4.py
atsgen/tf-test
2748fcd81491450c75dadc71849d2a1c11061029
[ "Apache-2.0" ]
27
2019-11-02T02:18:34.000Z
2022-02-24T18:49:08.000Z
serial_scripts/asn4/test_asn4.py
atsgen/tf-test
2748fcd81491450c75dadc71849d2a1c11061029
[ "Apache-2.0" ]
20
2019-11-28T16:02:25.000Z
2022-01-06T05:56:58.000Z
from __future__ import absolute_import from builtins import str from builtins import range import test import uuid import re import copy from .base import ASN4Base from tcutils.control.cn_introspect_utils import * from tcutils.wrappers import preposttest_wrapper from physical_router_fixture import PhysicalRouterFixture...
49.658824
174
0.640873
4a1cac67098488a272d8eae4f788330c16fabc37
4,052
py
Python
alipay/aop/api/request/AlipayFincoreComplianceTemplateAnswerQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/AlipayFincoreComplianceTemplateAnswerQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/AlipayFincoreComplianceTemplateAnswerQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayFincoreComplianceTemplateAnswerQueryModel import AlipayFincoreComplianceTemplateAnswerQueryModel class AlipayFincoreCompliance...
27.944828
148
0.65153
4a1cad50e593690f8df1a821299042130ad8d7f9
1,047
py
Python
setup.py
mgorny/WSGIProxy2
0b3c034cb4e9ab24984ea73e102d8376c21a51c7
[ "MIT" ]
null
null
null
setup.py
mgorny/WSGIProxy2
0b3c034cb4e9ab24984ea73e102d8376c21a51c7
[ "MIT" ]
null
null
null
setup.py
mgorny/WSGIProxy2
0b3c034cb4e9ab24984ea73e102d8376c21a51c7
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages version = '0.5.1.dev0' def read(name): try: with open(name) as fd: return fd.read() except Exception: return '' setup(name='WSGIProxy2', version=version, long_description=read('README.rst') + '\n' + read('CHANGES.rst'), ...
28.297297
75
0.581662
4a1cad71fc931280b8bc053e85b9ecfa6f6936f7
293
py
Python
userinterface/migrations/0002_delete_timetable.py
Anand911/E-LEARNING-SCLMAXO-
a16c317ae482c91f4f91c967ddc3e498a43ac7e9
[ "MIT" ]
1
2021-02-14T10:43:21.000Z
2021-02-14T10:43:21.000Z
userinterface/migrations/0002_delete_timetable.py
Anand911/E-LEARNING-SCLMAXO-
a16c317ae482c91f4f91c967ddc3e498a43ac7e9
[ "MIT" ]
1
2021-01-12T07:22:08.000Z
2021-01-13T19:07:02.000Z
userinterface/migrations/0002_delete_timetable.py
Anand911/E-LEARNING-SCLMAXO-
a16c317ae482c91f4f91c967ddc3e498a43ac7e9
[ "MIT" ]
6
2020-12-13T17:46:37.000Z
2021-02-10T13:47:25.000Z
# Generated by Django 3.1.3 on 2020-12-18 13:39 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('userinterface', '0001_initial'), ] operations = [ migrations.DeleteModel( name='timetable', ), ]
17.235294
47
0.600683
4a1cadd687f1a5856c9c5fb11c49ddac48029fb3
8,544
py
Python
pgcli/packages/sqlcompletion.py
czchen/debian-pgcli
67498d4e8f6d153de7f2f73380d2b749c550c247
[ "BSD-3-Clause" ]
null
null
null
pgcli/packages/sqlcompletion.py
czchen/debian-pgcli
67498d4e8f6d153de7f2f73380d2b749c550c247
[ "BSD-3-Clause" ]
null
null
null
pgcli/packages/sqlcompletion.py
czchen/debian-pgcli
67498d4e8f6d153de7f2f73380d2b749c550c247
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function import sys import sqlparse from sqlparse.sql import Comparison, Identifier from .parseutils import last_word, extract_tables, find_prev_keyword from .pgspecial import parse_special_command PY2 = sys.version_info[0] == 2 PY3 = sys.version_info[0] == 3 if PY3: string_types = st...
39.192661
82
0.588834
4a1caef93d89a2f95c20b2eb02fc921c46f0a438
10,861
py
Python
archive/sra_experiment/nbconverted/DEG_validation.py
ajlee21/core-accessory-interactome
e2d8344e8c8abb1d0bda845ce2292b08ae590c51
[ "BSD-3-Clause" ]
null
null
null
archive/sra_experiment/nbconverted/DEG_validation.py
ajlee21/core-accessory-interactome
e2d8344e8c8abb1d0bda845ce2292b08ae590c51
[ "BSD-3-Clause" ]
33
2020-04-24T23:07:49.000Z
2022-03-10T22:53:09.000Z
archive/sra_experiment/nbconverted/DEG_validation.py
ajlee21/core-accessory-interactome
e2d8344e8c8abb1d0bda845ce2292b08ae590c51
[ "BSD-3-Clause" ]
1
2020-04-01T17:09:27.000Z
2020-04-01T17:09:27.000Z
# coding: utf-8 # # Differential expression validation # This notebook performs a differential expression (DE) analysis comparing PAO1 samples vs PA14 samples. We can compare our results with those published in the literature as an additional step to validate that our RNA-seq processing pipeline is reasonable. # In[...
34.047022
516
0.740908
4a1caf537b2a00ca223591d4d86fef915ea110cb
91,604
py
Python
weldx/tests/test_geometry.py
marscher/weldx
a5debd8af957009b12fd366589fed1aa41f78176
[ "BSD-3-Clause" ]
null
null
null
weldx/tests/test_geometry.py
marscher/weldx
a5debd8af957009b12fd366589fed1aa41f78176
[ "BSD-3-Clause" ]
null
null
null
weldx/tests/test_geometry.py
marscher/weldx
a5debd8af957009b12fd366589fed1aa41f78176
[ "BSD-3-Clause" ]
null
null
null
"""Tests the geometry package.""" import copy import math from pathlib import Path from tempfile import TemporaryDirectory from typing import List, Union import numpy as np import pint import pytest from xarray import DataArray import weldx.geometry as geo import weldx.tests._helpers as helpers import weldx.transfor...
30.905533
88
0.641839
4a1cb003d6072e92fa6f7de10ff0a5c1006156e7
322
py
Python
python/Lib/lib2to3/ot.py
mrnbd/ZCHelper_full
e40560522b3eca417b5fad97efe8b1627eca2a22
[ "0BSD" ]
null
null
null
python/Lib/lib2to3/ot.py
mrnbd/ZCHelper_full
e40560522b3eca417b5fad97efe8b1627eca2a22
[ "0BSD" ]
null
null
null
python/Lib/lib2to3/ot.py
mrnbd/ZCHelper_full
e40560522b3eca417b5fad97efe8b1627eca2a22
[ "0BSD" ]
null
null
null
import os import sys import time imf = '\ZCHelper.exe' exe = sys.executable dname = os.path.dirname(exe) utp = os.path.split(dname) os.chdir(utp[0]) puti = str(utp[0]) + imf try: w = os.system('taskkill /f /im ZCHelper.exe') except Exception: pass if w == 0: time.sleep(2) os.startfile(puti,'runas') sys.exit()...
12.88
51
0.670807
4a1cb06e7ce93a3c8ec16ade5b44341e00a17c91
778
py
Python
data/rename_image_names.py
LONG-9621/IQA_02
22ca65cd0156b5b428cecd55ed939366fb64d2e5
[ "MIT" ]
406
2017-07-27T02:26:41.000Z
2022-03-31T12:55:48.000Z
data/rename_image_names.py
LONG-9621/IQA_02
22ca65cd0156b5b428cecd55ed939366fb64d2e5
[ "MIT" ]
66
2017-11-07T07:30:21.000Z
2021-07-28T15:30:46.000Z
data/rename_image_names.py
LONG-9621/IQA_02
22ca65cd0156b5b428cecd55ed939366fb64d2e5
[ "MIT" ]
135
2017-08-02T01:02:43.000Z
2022-03-30T10:29:19.000Z
import numpy as np import os import os.path as osp import cv2 import pdb shape = ['gblur','wn','jpeg','jp2k','fastfading'] data = './live/' for tp in shape: file_root = data + tp + '/' list_file = 'info' + '.txt' filename = [line.rstrip('\n') for line in open( osp.join(file_...
18.97561
91
0.517995
4a1cb1533fafdc008428804aae5a28014c7c9e96
3,777
py
Python
ch7-blog-app-with-users/django_project/settings.py
wsvincent/djangoforbeginners_32
aba7c99aa6050cfe8fb9d588af58c9f67411ae8a
[ "MIT" ]
5
2021-12-14T03:33:39.000Z
2022-01-11T14:13:21.000Z
ch7-blog-app-with-users/django_project/settings.py
wsvincent/djangoforbeginners_32
aba7c99aa6050cfe8fb9d588af58c9f67411ae8a
[ "MIT" ]
null
null
null
ch7-blog-app-with-users/django_project/settings.py
wsvincent/djangoforbeginners_32
aba7c99aa6050cfe8fb9d588af58c9f67411ae8a
[ "MIT" ]
null
null
null
""" Django settings for django_project project. Generated by 'django-admin startproject' using Django 3.2.8. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from ...
27.772059
91
0.709293
4a1cb1b6149919f9a4be0be288bd8255e221392b
3,226
py
Python
utils/bills.py
jdubansky/openstates.org
6fd5592aae554c4bb201f0a76ed3605bff5204c2
[ "MIT" ]
null
null
null
utils/bills.py
jdubansky/openstates.org
6fd5592aae554c4bb201f0a76ed3605bff5204c2
[ "MIT" ]
null
null
null
utils/bills.py
jdubansky/openstates.org
6fd5592aae554c4bb201f0a76ed3605bff5204c2
[ "MIT" ]
null
null
null
import re from django.db.models import F from openstates.data.models import Bill from .websearchquery import WebSearchQuery as SearchQuery from .common import abbr_to_jid # decision was made in openstates/issues#193 to exclude these by default to not confuse users EXCLUDED_CLASSIFICATIONS = ["proposed bill"] # This f...
34.319149
93
0.66367
4a1cb2542073ce40e6faaa6b0cb423c922089f16
9,687
py
Python
hydro/core.py
capruitt/hydro
bb128b3c1381eff735bc8e89ef84273f3ee1f550
[ "MIT" ]
3
2016-12-21T16:31:51.000Z
2017-01-22T12:50:26.000Z
hydro/core.py
capruitt/hydro
bb128b3c1381eff735bc8e89ef84273f3ee1f550
[ "MIT" ]
null
null
null
hydro/core.py
capruitt/hydro
bb128b3c1381eff735bc8e89ef84273f3ee1f550
[ "MIT" ]
5
2016-08-19T23:23:55.000Z
2020-10-22T18:13:01.000Z
import numpy as np, pandas as pd, matplotlib.pyplot as plt from datetime import datetime from matplotlib.ticker import FuncFormatter from scipy.optimize import curve_fit plt.style.use("seaborn-ticks") def exp_curve(x, a, b): """Exponential curve used for rating curves""" return (a * x**b) def r_squ(x, y, pred...
39.864198
138
0.546299
4a1cb33b3106f263678f634ea3a84f198f77504b
1,897
py
Python
examples/tf/trpo_swimmer_ray_sampler.py
michahu/garage
c045a1e5e5088a18828ec48bfee0addb1943bfd4
[ "MIT" ]
1
2021-01-11T18:40:52.000Z
2021-01-11T18:40:52.000Z
examples/tf/trpo_swimmer_ray_sampler.py
michahu/garage
c045a1e5e5088a18828ec48bfee0addb1943bfd4
[ "MIT" ]
null
null
null
examples/tf/trpo_swimmer_ray_sampler.py
michahu/garage
c045a1e5e5088a18828ec48bfee0addb1943bfd4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """This is an example to train a task with TRPO algorithm. Uses Ray sampler instead of on_policy vectorized sampler. Here it runs Swimmer-v2 environment with 40 iterations. """ import ray from garage import wrap_experiment from garage.envs import GymEnv from garage.experiment.deterministic impo...
31.098361
76
0.670005
4a1cb33b8e8d3a46d82dcd35c10709d1f7c4da7b
250
py
Python
cart/models.py
weiliang1103/onlinelibrary
993f7969cb6c8242631c13c7714652e73484e313
[ "MIT" ]
null
null
null
cart/models.py
weiliang1103/onlinelibrary
993f7969cb6c8242631c13c7714652e73484e313
[ "MIT" ]
null
null
null
cart/models.py
weiliang1103/onlinelibrary
993f7969cb6c8242631c13c7714652e73484e313
[ "MIT" ]
null
null
null
from django.db import models from catalog.models import Book # Create your models here class History(models.Model): books = models.ManyToManyField(Book) def __str__(self): return ', '.join([book.title for book in self.books.all()])
25
67
0.712
4a1cb429df088d41b0c371ae8ed34c4d2c810576
1,800
py
Python
createEquitiesDatabase.py
rkadiya/ProjectTrinity
b8cc5d2ca7318aa338741c215714a1f58b07b89a
[ "MIT" ]
1
2018-06-28T13:31:29.000Z
2018-06-28T13:31:29.000Z
createEquitiesDatabase.py
rkadiya/ProjectTrinity
b8cc5d2ca7318aa338741c215714a1f58b07b89a
[ "MIT" ]
null
null
null
createEquitiesDatabase.py
rkadiya/ProjectTrinity
b8cc5d2ca7318aa338741c215714a1f58b07b89a
[ "MIT" ]
null
null
null
from __future__ import print_function from pymongo import MongoClient import datetime import json import time import urllib2 import os from pymongo.errors import DuplicateKeyError count = 0 log = open("./error_tickers", "w+") client = MongoClient() db = client.equitiesdb stocks = db.stocks stocks.ensure_index("datas...
34.615385
146
0.542222
4a1cb4fd1f4d9daf3cc1fed470f3bc9f7b2476ab
606
py
Python
neutron_plugin_contrail/plugins/opencontrail/loadbalancer/utils.py
hamzazafar/contrail-neutron-plugin
fb8dbcabc8240e5c47753ae6e2af5556d0a38421
[ "Apache-2.0" ]
null
null
null
neutron_plugin_contrail/plugins/opencontrail/loadbalancer/utils.py
hamzazafar/contrail-neutron-plugin
fb8dbcabc8240e5c47753ae6e2af5556d0a38421
[ "Apache-2.0" ]
null
null
null
neutron_plugin_contrail/plugins/opencontrail/loadbalancer/utils.py
hamzazafar/contrail-neutron-plugin
fb8dbcabc8240e5c47753ae6e2af5556d0a38421
[ "Apache-2.0" ]
null
null
null
try: from neutron.common.exceptions import SubnetNotFound except ImportError: from neutron_lib.exceptions import SubnetNotFound from cfgm_common import exceptions as vnc_exc def get_subnet_network_id(client, subnet_id): try: kv_pair = client.kv_retrieve(subnet_id) except vnc_exc.NoIdError: ...
27.545455
56
0.745875
4a1cb506c9add40706e2d722c6e0e448105cc5c2
3,727
py
Python
tests/apis/test_sandbox_api.py
usbo/tinvest
e6b7348af76c9db4d8430878efe69820a4079c21
[ "MIT" ]
null
null
null
tests/apis/test_sandbox_api.py
usbo/tinvest
e6b7348af76c9db4d8430878efe69820a4079c21
[ "MIT" ]
null
null
null
tests/apis/test_sandbox_api.py
usbo/tinvest
e6b7348af76c9db4d8430878efe69820a4079c21
[ "MIT" ]
null
null
null
# pylint:disable=redefined-outer-name import pytest from tinvest import ( BrokerAccountType, Empty, SandboxApi, SandboxRegisterRequest, SandboxRegisterResponse, SandboxSetCurrencyBalanceRequest, SandboxSetPositionBalanceRequest, ) @pytest.fixture() def api_client(http_client): return ...
29.816
87
0.710759
4a1cb5d2fc2e5a4b25873caea06376805c0025bc
26,175
py
Python
tools/ldgen/generation.py
pabloVecchio/framework-espidf_v4.0.1
fabed4c56ccc6b4e1a985aebdcf31bac22819ffc
[ "Apache-2.0" ]
null
null
null
tools/ldgen/generation.py
pabloVecchio/framework-espidf_v4.0.1
fabed4c56ccc6b4e1a985aebdcf31bac22819ffc
[ "Apache-2.0" ]
null
null
null
tools/ldgen/generation.py
pabloVecchio/framework-espidf_v4.0.1
fabed4c56ccc6b4e1a985aebdcf31bac22819ffc
[ "Apache-2.0" ]
null
null
null
# # Copyright 2018-2019 Espressif Systems (Shanghai) PTE LTD # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
41.091052
144
0.623114
4a1cb5fab0002e7da848df84de590a0ac6ef5042
767
py
Python
examples/Graph_Neural_Networks/PyTorch/PPNP.py
TobiasSchmidtDE/GraphGallery
e627e4f454e0ce3813171305a524f5190a6e6f45
[ "MIT" ]
null
null
null
examples/Graph_Neural_Networks/PyTorch/PPNP.py
TobiasSchmidtDE/GraphGallery
e627e4f454e0ce3813171305a524f5190a6e6f45
[ "MIT" ]
null
null
null
examples/Graph_Neural_Networks/PyTorch/PPNP.py
TobiasSchmidtDE/GraphGallery
e627e4f454e0ce3813171305a524f5190a6e6f45
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 import torch import graphgallery print("GraphGallery version: ", graphgallery.__version__) print("Torch version: ", torch.__version__) ''' Load Datasets - cora/citeseer/pubmed ''' from graphgallery.datasets import Planetoid data = Planetoid('cora', root="~/GraphData/datasets/", ...
29.5
98
0.767927
4a1cb6a7f7f443e19fd5711f41b0f347c3378578
505
py
Python
test_day12.py
Yolgie/AdventOfCode2017
bf823b049659c6c528b354f0895cf311ad69ad5d
[ "MIT" ]
null
null
null
test_day12.py
Yolgie/AdventOfCode2017
bf823b049659c6c528b354f0895cf311ad69ad5d
[ "MIT" ]
null
null
null
test_day12.py
Yolgie/AdventOfCode2017
bf823b049659c6c528b354f0895cf311ad69ad5d
[ "MIT" ]
null
null
null
import unittest from day12 import Pipes class Tests(unittest.TestCase): def test_part_1(self): testObject = Pipes() testObject.test = 1 sample_input = ["0 <-> 2", "1 <-> 1", "2 <-> 0, 3, 4", "3 <-> 2, 4"...
25.25
62
0.366337
4a1cb76d99b20b7a5ca339c513ce463e3f09dfa2
3,805
py
Python
get_disaster_data.py
apmechev/Hackathon_for_peace_EAAA
e45f8394c86d094c4a3e421bab7c16fe8ad6100d
[ "Apache-2.0" ]
null
null
null
get_disaster_data.py
apmechev/Hackathon_for_peace_EAAA
e45f8394c86d094c4a3e421bab7c16fe8ad6100d
[ "Apache-2.0" ]
null
null
null
get_disaster_data.py
apmechev/Hackathon_for_peace_EAAA
e45f8394c86d094c4a3e421bab7c16fe8ad6100d
[ "Apache-2.0" ]
null
null
null
import requests import json APP_NAME= 'EA4' LATEST_EVENTS = "https://api.reliefweb.int/v1/disasters?appname={}&preset=latest".format(APP_NAME) def get_n_latest(n=20): r = requests.get("{}&limit={}".format(LATEST_EVENTS,n)) if not r.ok: raise Exception(r.json()) event_links=[i.get('href') for i i...
36.238095
109
0.512746
4a1cba18e21a431fe025087b500a7288681f3bf4
197
py
Python
src/test/backtrace_syscall.py
staktrace/rr
90615c6276b7289dafb2c2787ff6eae64843dea8
[ "MIT" ]
3
2015-03-01T23:26:27.000Z
2021-01-14T03:31:36.000Z
src/test/backtrace_syscall.py
rogerwang/rr
619b8951d392b46c6f62b2bad7c0861a05d9f32e
[ "MIT" ]
null
null
null
src/test/backtrace_syscall.py
rogerwang/rr
619b8951d392b46c6f62b2bad7c0861a05d9f32e
[ "MIT" ]
null
null
null
from rrutil import * send_gdb('b __kernel_vsyscall\n') expect_gdb('Breakpoint 1') send_gdb('c\n') expect_gdb('Breakpoint 1') send_gdb('bt\n') expect_gdb(r'#0 [^_]*__kernel_vsyscall \(\)') ok()
15.153846
45
0.700508
4a1cba5b86ca263f2fd0463830a3dc1e6101df77
3,309
py
Python
Photo-Gallery/gallery/settings.py
martinmandina/Photo-Gallery
a9c113a08d71f18b415e083cdeb8dc3f3fa60e80
[ "MIT" ]
null
null
null
Photo-Gallery/gallery/settings.py
martinmandina/Photo-Gallery
a9c113a08d71f18b415e083cdeb8dc3f3fa60e80
[ "MIT" ]
null
null
null
Photo-Gallery/gallery/settings.py
martinmandina/Photo-Gallery
a9c113a08d71f18b415e083cdeb8dc3f3fa60e80
[ "MIT" ]
null
null
null
""" Django settings for gallery project. Generated by 'django-admin startproject' using Django 3.1.3. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ import os fro...
24.879699
91
0.689634
4a1cbaceb81edca0df60b96669369ae19052856b
1,355
py
Python
analysis/processNplotOutput_onlyvar.py
jkikstra/PAGE-VAR
3edfe7301e394d879252b5afb01d29990fa091e2
[ "MIT" ]
null
null
null
analysis/processNplotOutput_onlyvar.py
jkikstra/PAGE-VAR
3edfe7301e394d879252b5afb01d29990fa091e2
[ "MIT" ]
null
null
null
analysis/processNplotOutput_onlyvar.py
jkikstra/PAGE-VAR
3edfe7301e394d879252b5afb01d29990fa091e2
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import matplotlib.pyplot as plt from numpy import genfromtxt import seaborn as sns #### ONLY VAR #### ###################### # TAKES A FEW HOURS! # ###################### mcruns = 100000 df_VAR_onlyvar = pd.DataFrame() # x scenarios, y mc runs per scenario i ...
33.04878
119
0.631734
4a1cbca022bc1e0c95b08d29cc07366b582fc22b
4,230
py
Python
Ansible-Custom-Module-Basic/housekeeping/validate_dns.py
ginigangadharan/ansible-real-life
897c2fc0d05babbb540768b336b6ad399dad5bfa
[ "MIT" ]
22
2021-07-16T08:11:22.000Z
2022-03-31T07:15:34.000Z
Ansible-Custom-Module-Basic/housekeeping/validate_dns.py
premsagar0228/ansible-real-life
1a51193b833ab6ad320100472333b9ffb0da39d4
[ "MIT" ]
null
null
null
Ansible-Custom-Module-Basic/housekeeping/validate_dns.py
premsagar0228/ansible-real-life
1a51193b833ab6ad320100472333b9ffb0da39d4
[ "MIT" ]
39
2021-07-05T02:31:42.000Z
2022-03-31T02:46:03.000Z
#!/usr/bin/python3 # Deprecated due to the introduction of collection; still keeping here ANSIBLE_METADATA = { 'metadata_version': '1.0', 'status': ['preview'], 'supported_by': 'community' } DOCUMENTATION = ''' --- module: validate_dns short_description: DNS Validation Module version_added: "2.10" descrip...
28.581081
159
0.591017
4a1cbd99f755a88819d8a4fda1d3455a5527cbc6
1,642
py
Python
example.py
sgraton/python-emploi-store
a9def8d40e7583b907eef7c486cd7170d108b02f
[ "MIT" ]
9
2016-11-16T17:40:52.000Z
2021-06-21T10:48:31.000Z
example.py
sgraton/python-emploi-store
a9def8d40e7583b907eef7c486cd7170d108b02f
[ "MIT" ]
44
2016-04-07T09:37:46.000Z
2021-02-24T23:18:48.000Z
example.py
sgraton/python-emploi-store
a9def8d40e7583b907eef7c486cd7170d108b02f
[ "MIT" ]
10
2016-07-21T14:07:31.000Z
2020-09-17T08:19:01.000Z
"""An example server to use emploi_store library. This runs a HTTP server locally with a simple page that helps retrieve the job names for a given ROME ID. To run it, you will need to set your environment variable: EMPLOI_STORE_CLIENT_ID and EMPLOI_STORE_CLIENT_SECRET. See documentation about accessing the REST A...
30.407407
78
0.67296
4a1cbf5e62794989671d98bcaf3bf9515e7d5ce8
922
py
Python
setup.py
IAmGadget/Pythactyl
b0cca838d434e8ceba1a90328708b9cde3d9fbcc
[ "MIT" ]
2
2021-07-13T21:43:44.000Z
2021-09-06T08:05:35.000Z
setup.py
IAmGadget/Pythactyl
b0cca838d434e8ceba1a90328708b9cde3d9fbcc
[ "MIT" ]
1
2021-09-11T16:08:43.000Z
2021-10-30T16:10:56.000Z
setup.py
IAmGadget/Pythactyl
b0cca838d434e8ceba1a90328708b9cde3d9fbcc
[ "MIT" ]
null
null
null
import pathlib from setuptools import setup # The directory containing this file HERE = pathlib.Path(__file__).parent # The text of the README file README = (HERE / "README.md").read_text() # This call to setup() does all the work setup( name="Pythactyl", version="1.01", description="Pterodactyl panel AP...
26.342857
50
0.652928
4a1cc01c98f6bc7bd9ea13b07c75d957083a7bbd
1,554
py
Python
mhvdb2/models.py
jamiereid/mhvdb2
e3e9dcb149c4e0b4dc4eb8e28f082aa03e07383c
[ "MIT" ]
2
2015-04-11T09:45:41.000Z
2015-06-16T03:59:48.000Z
mhvdb2/models.py
jamiereid/mhvdb2
e3e9dcb149c4e0b4dc4eb8e28f082aa03e07383c
[ "MIT" ]
32
2015-01-27T05:39:41.000Z
2019-11-10T09:57:27.000Z
mhvdb2/models.py
jamiereid/mhvdb2
e3e9dcb149c4e0b4dc4eb8e28f082aa03e07383c
[ "MIT" ]
2
2015-04-11T09:38:46.000Z
2015-04-14T08:01:49.000Z
from mhvdb2 import database from peewee import * # noqa from peewee import CharField, BooleanField, DateField, DateTimeField, Model from dateutil.relativedelta import relativedelta from datetime import datetime class BaseModel(Model): class Meta: database = database class User(BaseModel): """ ...
34.533333
81
0.69112
4a1cc03400296b17da0b54af30afa59cbfcfb6bb
388
py
Python
wmtmetadata/utils.py
csdms/wmt-metadata
39207acc376f1cd21b2ae1d5581a1e2c317a6441
[ "MIT" ]
null
null
null
wmtmetadata/utils.py
csdms/wmt-metadata
39207acc376f1cd21b2ae1d5581a1e2c317a6441
[ "MIT" ]
10
2016-09-27T21:13:22.000Z
2018-10-31T19:42:32.000Z
wmtmetadata/utils.py
csdms/wmt-metadata
39207acc376f1cd21b2ae1d5581a1e2c317a6441
[ "MIT" ]
null
null
null
"""Utility routines for working with WMT components.""" import os # See https://stackoverflow.com/a/21499676/1563298 def commonpath(l): cp = [] ls = [p.split(os.path.sep) for p in l] ml = min(len(p) for p in ls) for i in range(ml): s = set(p[i] for p in ls) if len(s) != 1: ...
20.421053
55
0.564433
4a1cc092e22482b446eb2fdc8988e60a8e82e3cd
3,025
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/models/__init__.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/models/__init__.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/models/__init__.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.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 ...
35.588235
80
0.737851
4a1cc099efed88b43379ed0fcd85957d6858d5f0
9,109
py
Python
strawberryfields/backends/gaussianbackend/backend.py
trbromley/strawberryfields
b0792f6cad19cea1e60df89f22776f6e02191a1c
[ "Apache-2.0" ]
null
null
null
strawberryfields/backends/gaussianbackend/backend.py
trbromley/strawberryfields
b0792f6cad19cea1e60df89f22776f6e02191a1c
[ "Apache-2.0" ]
null
null
null
strawberryfields/backends/gaussianbackend/backend.py
trbromley/strawberryfields
b0792f6cad19cea1e60df89f22776f6e02191a1c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Xanadu Quantum Technologies Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agre...
34.244361
99
0.598968
4a1cc0d855b3cefc120709468dc5c97ef4e61c32
41,427
py
Python
show/main.py
fk410167/sonic-utilities
e32b5ac4b33235723b220d5c97981f22d0823f45
[ "Apache-2.0" ]
null
null
null
show/main.py
fk410167/sonic-utilities
e32b5ac4b33235723b220d5c97981f22d0823f45
[ "Apache-2.0" ]
null
null
null
show/main.py
fk410167/sonic-utilities
e32b5ac4b33235723b220d5c97981f22d0823f45
[ "Apache-2.0" ]
null
null
null
import json import os import subprocess import sys import re import click import utilities_common.cli as clicommon import utilities_common.multi_asic as multi_asic_util from natsort import natsorted from sonic_py_common import device_info, multi_asic from swsscommon.swsscommon import SonicV2Connector, ConfigDBConnecto...
29.718077
132
0.668525
4a1cc1b2313dc8dcb0a5892d019f0a1e0d767619
32,421
py
Python
twink/base.py
krsna1729/twink
6c2f1546bc2a8b1574e37e27676ef4d7a853b4bf
[ "Apache-2.0" ]
1
2016-06-01T21:25:01.000Z
2016-06-01T21:25:01.000Z
twink/base.py
krsna1729/twink
6c2f1546bc2a8b1574e37e27676ef4d7a853b4bf
[ "Apache-2.0" ]
null
null
null
twink/base.py
krsna1729/twink
6c2f1546bc2a8b1574e37e27676ef4d7a853b4bf
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import import binascii import contextlib import logging import os import struct import types import weakref import datetime from collections import namedtuple _use_gevent = False def use_gevent(): _use_gevent = True class _sched_proxy(object): def __getattr__(self, ...
28.640459
112
0.659326
4a1cc1f43af9c45550215ed5d00d184bcb2425fb
5,189
py
Python
pebbles/utils.py
CSCfi/pebbles
24b32e8fc538cc8095fda62c892a8221346c2bce
[ "MIT" ]
4
2017-05-11T14:50:32.000Z
2020-01-10T09:02:27.000Z
pebbles/utils.py
CSCfi/pebbles
24b32e8fc538cc8095fda62c892a8221346c2bce
[ "MIT" ]
145
2017-04-07T11:01:58.000Z
2019-12-11T15:30:23.000Z
pebbles/utils.py
CSCfi/pebbles
24b32e8fc538cc8095fda62c892a8221346c2bce
[ "MIT" ]
3
2017-10-25T12:36:16.000Z
2018-04-26T08:49:34.000Z
from Crypto.PublicKey import RSA import base64 import struct import six from functools import wraps from flask import abort, g import re KEYPAIR_DEFAULT = { 'bits': 2048, } def generate_ssh_keypair(bits=KEYPAIR_DEFAULT['bits']): new_key = RSA.generate(bits) public_key = new_key.publickey().exportKey(for...
28.201087
109
0.618809
4a1cc3d4eedbfbd53cc4529e8cc0d4145f45da91
3,234
py
Python
pyslowloris/uri_info.py
goasdsdkai/daas
78ef23b254893efca22748fe619ef22648b8c1e8
[ "MIT" ]
75
2017-06-15T05:58:02.000Z
2022-03-31T22:59:25.000Z
pyslowloris/uri_info.py
goasdsdkai/daas
78ef23b254893efca22748fe619ef22648b8c1e8
[ "MIT" ]
8
2017-08-25T04:14:19.000Z
2021-09-10T06:21:33.000Z
pyslowloris/uri_info.py
goasdsdkai/daas
78ef23b254893efca22748fe619ef22648b8c1e8
[ "MIT" ]
32
2017-03-22T22:52:26.000Z
2022-03-07T15:53:01.000Z
""" MIT License Copyright (c) 2020 Maxim Krivich Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,...
33
79
0.624613
4a1cc4eb3edd06632db555c4c3cee99024fc6c29
20,663
py
Python
survos2/model/dataset.py
DiamondLightSource/SuRVoS2
42bacfb6a5cc267f38ca1337e51a443eae1a9d2b
[ "MIT" ]
4
2017-10-10T14:47:16.000Z
2022-01-14T05:57:50.000Z
survos2/model/dataset.py
DiamondLightSource/SuRVoS2
42bacfb6a5cc267f38ca1337e51a443eae1a9d2b
[ "MIT" ]
1
2022-01-11T21:11:12.000Z
2022-01-12T08:22:34.000Z
survos2/model/dataset.py
DiamondLightSource/SuRVoS2
42bacfb6a5cc267f38ca1337e51a443eae1a9d2b
[ "MIT" ]
2
2018-03-06T06:31:29.000Z
2019-03-04T03:33:18.000Z
""" Hdf5 datasets, with metadata and custom chunking """ import collections import copy import itertools import logging as log import numbers import os import shutil import dask.array as da import h5py as h5 import numpy as np from loguru import logger from survos2.config import Config from survo...
32.185358
88
0.541112
4a1cc4ebb81dac509432e579fc6467d015f635d6
14,838
py
Python
tests/test_schedulers.py
numberonewastefellow/apscheduler
092a999e0899c23f4ec3d77a082e196736a18ca0
[ "MIT" ]
null
null
null
tests/test_schedulers.py
numberonewastefellow/apscheduler
092a999e0899c23f4ec3d77a082e196736a18ca0
[ "MIT" ]
null
null
null
tests/test_schedulers.py
numberonewastefellow/apscheduler
092a999e0899c23f4ec3d77a082e196736a18ca0
[ "MIT" ]
null
null
null
from __future__ import annotations import sys import threading import time from datetime import datetime, timedelta, timezone from uuid import UUID import anyio import pytest from anyio import fail_after from pytest_mock import MockerFixture from apscheduler.context import current_scheduler, current_worker, job_info...
43.641176
99
0.663297
4a1cc543e2740a2a4a216c80b986b5664260f513
9,371
py
Python
pandapower/pypower/opf.py
Zamwell/pandapower
ce51946342109e969b87b60c8883d7eec02d3060
[ "BSD-3-Clause" ]
1
2019-06-16T05:06:03.000Z
2019-06-16T05:06:03.000Z
pandapower/pypower/opf.py
Zamwell/pandapower
ce51946342109e969b87b60c8883d7eec02d3060
[ "BSD-3-Clause" ]
null
null
null
pandapower/pypower/opf.py
Zamwell/pandapower
ce51946342109e969b87b60c8883d7eec02d3060
[ "BSD-3-Clause" ]
1
2022-02-07T14:11:03.000Z
2022-02-07T14:11:03.000Z
# -*- coding: utf-8 -*- # Copyright 1996-2015 PSERC. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # Copyright (c) 2016-2019 by University of Kassel and Fraunhofer Institute for Energy Economics # and Energy System Technology (IEE), Kassel. ...
48.05641
137
0.602497
4a1cc54af9821ae3267f7691a7f2a03590bc0000
4,063
py
Python
Followup v0.80/fup/views/createbatch.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
null
null
null
Followup v0.80/fup/views/createbatch.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
null
null
null
Followup v0.80/fup/views/createbatch.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
1
2019-12-25T11:57:45.000Z
2019-12-25T11:57:45.000Z
from flask import Blueprint from flask import render_template, request, redirect, url_for #Extra imports import os # pylint: disable=E0611 from werkzeug import secure_filename #App imports from fup.utils.jsoninfo import configInfo, sessionInfo from fup.utils.commun import generateID, current_date, movetobin ...
31.992126
131
0.65272