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
4a15522556ac2707bb2e56fc9f0957552104a37f
504
py
Python
checkboxes.py
PiyushKumar186/programming
4dc17488a2d197ccdb6acd6f80732da81147bb1b
[ "MIT" ]
null
null
null
checkboxes.py
PiyushKumar186/programming
4dc17488a2d197ccdb6acd6f80732da81147bb1b
[ "MIT" ]
null
null
null
checkboxes.py
PiyushKumar186/programming
4dc17488a2d197ccdb6acd6f80732da81147bb1b
[ "MIT" ]
null
null
null
from Tkinter import * master = Tk() def var_states(): print("male: %d,\nfemale: %d" %(var1.get(),var2.get())) Label(master, text="Your sex:").grid(row=0,sticky = W) var1 = IntVar() Checkbutton(master, text="male",variable=var1).grid(row=1,sticky=W) var2 = IntVar() Checkbutton(master, text="female",variable=var2)....
36
77
0.702381
4a1552fdcb94ea12aea00ecce6c40ae936e168b9
848
py
Python
zar/urls.py
jdevries3133/ea_internal_tools
7c9f411605021ac8aec4ef734da065cd1f611208
[ "Apache-2.0" ]
null
null
null
zar/urls.py
jdevries3133/ea_internal_tools
7c9f411605021ac8aec4ef734da065cd1f611208
[ "Apache-2.0" ]
4
2021-04-08T20:25:58.000Z
2021-09-22T19:38:45.000Z
zar/urls.py
jdevries3133/ea_internal_tools
7c9f411605021ac8aec4ef734da065cd1f611208
[ "Apache-2.0" ]
null
null
null
from django.urls import path from .views import ( file_upload, name_match, monitor_progress, download_previous_reports, download_direct, skip_name_match, no_active_meeting_decision_fork, ) urlpatterns = [ path('', file_upload, name='file_upload'), path('name-match/', name_match, na...
24.941176
73
0.658019
4a1553adcca88aaa6ed2588cabea3f4b8344d4dc
1,962
py
Python
taurus_pyqtgraph/examples/y2axis.py
jordiandreu/taurus_pyqtgraph
f2500da108809e01b624e41a6b897f6bdccfafbe
[ "CC-BY-3.0" ]
null
null
null
taurus_pyqtgraph/examples/y2axis.py
jordiandreu/taurus_pyqtgraph
f2500da108809e01b624e41a6b897f6bdccfafbe
[ "CC-BY-3.0" ]
null
null
null
taurus_pyqtgraph/examples/y2axis.py
jordiandreu/taurus_pyqtgraph
f2500da108809e01b624e41a6b897f6bdccfafbe
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python ############################################################################# ## # This file is part of Taurus ## # http://taurus-scada.org ## # Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain ## # Taurus is free software: you can redistribute it and/or modify # it under the terms of t...
32.163934
78
0.648318
4a15547215a44089034205abb984857aee70336e
9,509
py
Python
tests/util/test_saas_util.py
mohan-pogala/fidesops
5c686362d4fb3b85253dd7e2898be1131a5071ab
[ "Apache-2.0" ]
null
null
null
tests/util/test_saas_util.py
mohan-pogala/fidesops
5c686362d4fb3b85253dd7e2898be1131a5071ab
[ "Apache-2.0" ]
null
null
null
tests/util/test_saas_util.py
mohan-pogala/fidesops
5c686362d4fb3b85253dd7e2898be1131a5071ab
[ "Apache-2.0" ]
null
null
null
from fidesops.common_exceptions import FidesopsException import pytest from fidesops.graph.config import ( Collection, Dataset, FieldAddress, FieldPath, ObjectField, ScalarField, ) from fidesops.util.saas_util import unflatten_dict, merge_datasets class TestMergeDatasets: """ Multiple...
33.248252
97
0.479546
4a15565f38143279d37cd39e7581faafb7de905e
2,860
py
Python
db/migrations/versions/76cfe6045752_eftv_order_and_selectable.py
DeschutesBrewery/brewerypi
5459dfc6b1ed415920c13a8a7c9a2d3d3c82099f
[ "MIT" ]
27
2017-11-27T05:01:05.000Z
2020-11-14T19:52:26.000Z
db/migrations/versions/76cfe6045752_eftv_order_and_selectable.py
DeschutesBrewery/brewerypi
5459dfc6b1ed415920c13a8a7c9a2d3d3c82099f
[ "MIT" ]
259
2017-11-23T00:43:26.000Z
2020-11-03T01:07:30.000Z
db/migrations/versions/76cfe6045752_eftv_order_and_selectable.py
DeschutesBrewery/brewerypi
5459dfc6b1ed415920c13a8a7c9a2d3d3c82099f
[ "MIT" ]
8
2018-10-29T04:39:29.000Z
2020-10-01T22:18:12.000Z
"""EFTV Order and Selectable. Revision ID: 76cfe6045752 Revises: b13236977763 Create Date: 2020-08-30 22:12:40.468380 """ from alembic import op import sqlalchemy as sa from sqlalchemy import orm from sqlalchemy.dialects import mysql from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() ...
40.28169
136
0.761189
4a1556fcefc6f81fe6cf42b11d57abd7f2472c05
4,607
py
Python
nova/tests/unit/notifications/test_base.py
WeifanFu-bsn/nova
c7b54a80ac25f6a01d0a150c546532f5ae2592ce
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/notifications/test_base.py
WeifanFu-bsn/nova
c7b54a80ac25f6a01d0a150c546532f5ae2592ce
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/notifications/test_base.py
WeifanFu-bsn/nova
c7b54a80ac25f6a01d0a150c546532f5ae2592ce
[ "Apache-2.0" ]
1
2020-07-22T21:17:41.000Z
2020-07-22T21:17:41.000Z
# Copyright (c) 2017 OpenStack Foundation # All Rights Reserved. # # 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 ...
43.87619
79
0.622097
4a1557ad408f60d581992055e41843d91518891e
4,433
py
Python
hydra/models.py
dbsiavichay/django-hydra
9b1bbfe762c4c64ea6b59a02226084ad88257f64
[ "MIT" ]
null
null
null
hydra/models.py
dbsiavichay/django-hydra
9b1bbfe762c4c64ea6b59a02226084ad88257f64
[ "MIT" ]
null
null
null
hydra/models.py
dbsiavichay/django-hydra
9b1bbfe762c4c64ea6b59a02226084ad88257f64
[ "MIT" ]
null
null
null
""" Models for buid menus """ # Django from django.db import models from django.urls import reverse from django.urls.exceptions import NoReverseMatch from django.utils.text import slugify from django.apps import apps from django.contrib.auth.models import Permission from django.contrib.contenttypes.models import Conte...
29.164474
104
0.616513
4a15583a27141718ddef5903c16d9c1726c800f4
983
py
Python
configs/transforms_config.py
wkabbani/egain
3357e8e612fe2d2a158ea15184442f54b942dc0d
[ "Apache-2.0", "BSD-2-Clause", "MIT" ]
null
null
null
configs/transforms_config.py
wkabbani/egain
3357e8e612fe2d2a158ea15184442f54b942dc0d
[ "Apache-2.0", "BSD-2-Clause", "MIT" ]
null
null
null
configs/transforms_config.py
wkabbani/egain
3357e8e612fe2d2a158ea15184442f54b942dc0d
[ "Apache-2.0", "BSD-2-Clause", "MIT" ]
null
null
null
from abc import abstractmethod import torchvision.transforms as transforms class TransformsConfig(object): def __init__(self, opts): self.opts = opts @abstractmethod def get_transforms(self): pass class EncodeTransforms(TransformsConfig): def __init__(self, opts): super(EncodeTransforms, self).__init__...
25.868421
61
0.69176
4a15585b977e2015f5ba393faf926483d93d2c03
1,334
py
Python
.github/workflows/aws/upload_nightly_index.py
pyg-team/pyg-lib
c1656eda314cc7d161e85da96300ffeea29d0bcb
[ "MIT" ]
13
2022-03-26T21:44:41.000Z
2022-03-31T03:36:23.000Z
.github/workflows/aws/upload_nightly_index.py
pyg-team/pyg-lib
c1656eda314cc7d161e85da96300ffeea29d0bcb
[ "MIT" ]
null
null
null
.github/workflows/aws/upload_nightly_index.py
pyg-team/pyg-lib
c1656eda314cc7d161e85da96300ffeea29d0bcb
[ "MIT" ]
null
null
null
from collections import defaultdict import boto3 ROOT_URL = 'https://data.pyg.org/whl/nightly' html = '<!DOCTYPE html>\n<html>\n<body>\n{}\n</body>\n</html>' href = ' <a href="{}">{}</a><br/>' args = { 'ContentType': 'text/html', 'CacheControl': 'max-age=300', 'ACL': 'public-read', } bucket = boto3.reso...
31.023256
75
0.646177
4a15595ff86f4a9fab5464cf1def1afb0d91d9eb
6,594
py
Python
test/test_misc_explainers.py
jjog22/interpret-community
cb613a2edc455f505bba41382b842bc240f59ee2
[ "MIT" ]
2
2020-10-14T01:02:37.000Z
2022-02-17T01:47:49.000Z
test/test_misc_explainers.py
malikamalik/interpret-community
17f5a3fd28e6377f51e9532c5648e91e2037b9e5
[ "MIT" ]
12
2021-03-10T01:29:02.000Z
2022-02-26T21:11:42.000Z
test/test_misc_explainers.py
malikamalik/interpret-community
17f5a3fd28e6377f51e9532c5648e91e2037b9e5
[ "MIT" ]
1
2020-11-19T20:00:23.000Z
2020-11-19T20:00:23.000Z
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- # Tests for kernel, tree and deep explainers. import pytest import logging from lightgbm import LGBMClassifier, LGBMRegressor from inter...
42.541935
109
0.775099
4a1559ee12dac1bc4dec2ae0637f5d77e3df37f0
6,463
py
Python
src/classification/aggregating_results.py
PeterJackNaylor/CellularHeatmaps
52829685683b6f3315b62246a77cc2206326e2b3
[ "Apache-2.0" ]
null
null
null
src/classification/aggregating_results.py
PeterJackNaylor/CellularHeatmaps
52829685683b6f3315b62246a77cc2206326e2b3
[ "Apache-2.0" ]
2
2022-01-13T03:57:02.000Z
2022-03-12T01:01:45.000Z
src/classification/aggregating_results.py
PeterJackNaylor/CellularHeatmaps
52829685683b6f3315b62246a77cc2206326e2b3
[ "Apache-2.0" ]
1
2020-10-12T07:56:51.000Z
2020-10-12T07:56:51.000Z
import pandas as pd import pickle as pkl from glob import glob import numpy as np from sklearn.metrics import roc_auc_score, accuracy_score, recall_score, precision_score, f1_score import pandas as pd inner_fold = 5 label_file = "/mnt/data3/pnaylor/CellularHeatmaps/outputs/label_nature.csv" y_interest = "Residual" ...
40.647799
109
0.621229
4a155aa7dddf00535ff85a81dff56c47757cc68c
1,106
py
Python
src/labware_domain_models/__init__.py
CuriBio/labware-domain-models
ad263027a9661cb98a7d92f5194cbbf2260dccd2
[ "MIT" ]
null
null
null
src/labware_domain_models/__init__.py
CuriBio/labware-domain-models
ad263027a9661cb98a7d92f5194cbbf2260dccd2
[ "MIT" ]
22
2020-08-17T23:40:17.000Z
2022-03-30T21:03:17.000Z
src/labware_domain_models/__init__.py
CuriBio/labware-domain-models
ad263027a9661cb98a7d92f5194cbbf2260dccd2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Labware and Barcoded SBS Labware models.""" from .barcoded_sbs_labware import BarcodedSbsLabware from .exceptions import CartesianVectorRequirePlateHeightError from .exceptions import PositionInvalidForLabwareDefinitionError from .exceptions import WellCoordinatesRequireA1CenterError from .ex...
39.5
66
0.83906
4a155b47f1fca0b2023ca0e0b75fd7bc54cc610f
4,778
py
Python
msgraph-cli-extensions/v1_0/usersfunctions_v1_0/azext_usersfunctions_v1_0/vendored_sdks/usersfunctions/aio/operations/_users_calendar_groups_calendars_calendar_view_instances_operations.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
msgraph-cli-extensions/v1_0/usersfunctions_v1_0/azext_usersfunctions_v1_0/vendored_sdks/usersfunctions/aio/operations/_users_calendar_groups_calendars_calendar_view_instances_operations.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
msgraph-cli-extensions/v1_0/usersfunctions_v1_0/azext_usersfunctions_v1_0/vendored_sdks/usersfunctions/aio/operations/_users_calendar_groups_calendars_calendar_view_instances_operations.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
44.240741
180
0.673085
4a155bb837725b90d1dfea3c3e4420670f1b89e0
6,282
py
Python
examples/timelineCsvConverter.py
ubaldb/TradeRepublicApi
8df80a75483c85361c4c0a729ad7a8235ee54b12
[ "MIT" ]
1
2021-04-03T13:42:59.000Z
2021-04-03T13:42:59.000Z
examples/timelineCsvConverter.py
ubaldb/TradeRepublicApi
8df80a75483c85361c4c0a729ad7a8235ee54b12
[ "MIT" ]
null
null
null
examples/timelineCsvConverter.py
ubaldb/TradeRepublicApi
8df80a75483c85361c4c0a729ad7a8235ee54b12
[ "MIT" ]
null
null
null
import json import re from datetime import datetime # Read my timeline with open("myTimeline.json", "r", encoding="utf-8") as f: timeline = json.loads(f.read()) # Read stock JSON data with open("../LS/isins.json", "r", encoding="utf-8") as f: lsIsins = json.loads(f.read()) # All stocks crawled from TR with o...
34.707182
111
0.515123
4a155c9f042f5515f9b3c0af6ad39938daa83a19
1,959
py
Python
tests/test_dashboard.py
491852809/ceph-dash
503923035d347a8e8bf7d7020c1c24c87b47919d
[ "BSD-2-Clause" ]
427
2015-01-05T17:58:46.000Z
2022-03-23T03:03:09.000Z
tests/test_dashboard.py
491852809/ceph-dash
503923035d347a8e8bf7d7020c1c24c87b47919d
[ "BSD-2-Clause" ]
53
2015-01-19T16:06:31.000Z
2021-12-02T19:28:33.000Z
tests/test_dashboard.py
491852809/ceph-dash
503923035d347a8e8bf7d7020c1c24c87b47919d
[ "BSD-2-Clause" ]
154
2015-01-02T14:11:53.000Z
2022-03-04T02:23:19.000Z
import unittest from app.dashboard.views import find_host_for_osd from app.dashboard.views import get_unhealthy_osd_details CEPH_OSD_TREE = { 'nodes': [ { 'type': 'host', 'name': 'testhost01', 'children': [ 1, 2, 3 ...
23.890244
57
0.455334
4a155dc79d24a41d9a82e292d670c43e08d1dfa2
6,194
py
Python
autoscale_cloudcafe/autoscale/models/request/autoscale_requests.py
alex/otter
e46316634ae4c211f7436aa4d41321ac1edba0af
[ "Apache-2.0" ]
1
2015-11-08T12:58:44.000Z
2015-11-08T12:58:44.000Z
autoscale_cloudcafe/autoscale/models/request/autoscale_requests.py
alex/otter
e46316634ae4c211f7436aa4d41321ac1edba0af
[ "Apache-2.0" ]
null
null
null
autoscale_cloudcafe/autoscale/models/request/autoscale_requests.py
alex/otter
e46316634ae4c211f7436aa4d41321ac1edba0af
[ "Apache-2.0" ]
null
null
null
""" Marshalling for autoscale requests """ from cafe.engine.models.base import AutoMarshallingModel from cloudcafe.compute.servers_api.models.requests import CreateServer import json class Webhook_Request(AutoMarshallingModel): """ Marshalling for webhook requests """ def __init__(self, name, metadat...
34.032967
79
0.620278
4a155e0e81b731e7054eb7cb3df4c7c6f5008de4
34,151
py
Python
python/ccxt/async/kucoin.py
guoliangli123/ccxt
b2c797330bb150e5bbe1db6f95d49a4f777c8da0
[ "MIT" ]
2
2018-03-25T09:41:57.000Z
2019-03-14T04:07:56.000Z
python/ccxt/async/kucoin.py
guoliangli123/ccxt
b2c797330bb150e5bbe1db6f95d49a4f777c8da0
[ "MIT" ]
null
null
null
python/ccxt/async/kucoin.py
guoliangli123/ccxt
b2c797330bb150e5bbe1db6f95d49a4f777c8da0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async.base.exchange import Exchange import base64 import hashlib import math import json from ccxt.base.errors import ExchangeErr...
39.029714
126
0.48432
4a155ec278a5ccbe2c1b45913942a5c7816d4aaf
780
py
Python
apps/courses/serializers.py
umairqadir97/learning-management-system
9924326e77146830f3fb05a9d86f876f86c4d9b8
[ "MIT" ]
7
2020-06-03T15:31:44.000Z
2021-11-21T21:19:59.000Z
apps/courses/serializers.py
umairqadir97/learning-management-system
9924326e77146830f3fb05a9d86f876f86c4d9b8
[ "MIT" ]
null
null
null
apps/courses/serializers.py
umairqadir97/learning-management-system
9924326e77146830f3fb05a9d86f876f86c4d9b8
[ "MIT" ]
10
2020-11-06T00:40:01.000Z
2022-01-12T03:20:14.000Z
from django.contrib.auth.models import User from rest_framework import serializers from .models import Courses class UserSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = User fields = ('username', 'first_name', 'last_name', 'email') class CourseSerializer(serializers.Mode...
25.16129
65
0.673077
4a155ed5cb37592835d6fe20d2bbabd01cf2d725
1,221
py
Python
pipenv/vendor/shellingham/posix/ps.py
erikkemperman/pipenv
8707fe52571422ff5aa2905a2063fdf5ce14840b
[ "MIT" ]
3
2020-06-04T05:22:33.000Z
2020-09-23T19:44:02.000Z
pipenv/vendor/shellingham/posix/ps.py
erikkemperman/pipenv
8707fe52571422ff5aa2905a2063fdf5ce14840b
[ "MIT" ]
9
2019-12-05T00:49:12.000Z
2021-09-08T01:31:25.000Z
pipenv/vendor/shellingham/posix/ps.py
erikkemperman/pipenv
8707fe52571422ff5aa2905a2063fdf5ce14840b
[ "MIT" ]
1
2019-06-10T13:45:08.000Z
2019-06-10T13:45:08.000Z
import errno import shlex import subprocess import sys from ._core import Process class PsNotAvailable(EnvironmentError): pass def get_process_mapping(): """Try to look up the process tree via the output of `ps`. """ try: output = subprocess.check_output([ 'ps', '-ww', '-o', 'pi...
28.395349
74
0.587224
4a155f63953ebb5962e824e6c65a9ba6edeb6fc1
4,098
py
Python
ui/src/lib/pybitcointools/bitcoin/mnemonic.py
superzitao/Wallet
a7018511afcf47e04e563640e52b86fd4862f838
[ "MIT" ]
null
null
null
ui/src/lib/pybitcointools/bitcoin/mnemonic.py
superzitao/Wallet
a7018511afcf47e04e563640e52b86fd4862f838
[ "MIT" ]
null
null
null
ui/src/lib/pybitcointools/bitcoin/mnemonic.py
superzitao/Wallet
a7018511afcf47e04e563640e52b86fd4862f838
[ "MIT" ]
null
null
null
import hashlib import os.path import binascii import random from bisect import bisect_left wordlist_english=list(open(os.path.join(os.path.dirname(os.path.realpath(__file__)),'english.txt'),'r')) def eint_to_bytes(entint,entbits): a=hex(entint)[2:].rstrip('L').zfill(32) print(a) return binascii.unhexlify(a) def m...
32.267717
113
0.758419
4a155ff882ed1a8e72e89a111f577e2c5d222f93
324
py
Python
reviews/admin.py
Flict-dev/Boxes-api
a2aa76b2db6aaa5af1028138566dc3b2b251fcdb
[ "MIT" ]
1
2021-12-13T22:03:58.000Z
2021-12-13T22:03:58.000Z
reviews/admin.py
Flict-dev/Boxes-api
a2aa76b2db6aaa5af1028138566dc3b2b251fcdb
[ "MIT" ]
null
null
null
reviews/admin.py
Flict-dev/Boxes-api
a2aa76b2db6aaa5af1028138566dc3b2b251fcdb
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Reviews @admin.register(Reviews) class ReviewsAdmin(admin.ModelAdmin): list_display = ( 'id', 'author', 'text', 'created_at', 'published_at', 'status', ) list_filter = ('author', 'created_at', 'published_...
20.25
58
0.598765
4a15604b6405a502b536f0088ab5d1496cb42e35
428,355
py
Python
tests/hwsim/test_ap_wps.py
westermo/hostapd
42bc5b5afa5c80faeef414bfd8a5e6316c12352d
[ "Unlicense" ]
1
2022-03-11T09:42:27.000Z
2022-03-11T09:42:27.000Z
tests/hwsim/test_ap_wps.py
westermo/hostapd
42bc5b5afa5c80faeef414bfd8a5e6316c12352d
[ "Unlicense" ]
null
null
null
tests/hwsim/test_ap_wps.py
westermo/hostapd
42bc5b5afa5c80faeef414bfd8a5e6316c12352d
[ "Unlicense" ]
null
null
null
# WPS tests # Copyright (c) 2013-2017, Jouni Malinen <j@w1.fi> # # This software may be distributed under the terms of the BSD license. # See README for more details. from remotehost import remote_compatible from tshark import run_tshark import base64 import binascii from Crypto.Cipher import AES import hashlib import...
40.372762
753
0.629889
4a15610b4ed5cae8ed288a16d09937efb603ffd2
9,277
py
Python
oase-root/tests/web_app/views/system/test_sso_info.py
Masa-Yasuno/oase
90f3cee73c0d9b3153808a4a72bd19984a4873f9
[ "Apache-2.0" ]
9
2020-03-25T07:51:47.000Z
2022-02-07T00:07:28.000Z
oase-root/tests/web_app/views/system/test_sso_info.py
Masa-Yasuno/oase
90f3cee73c0d9b3153808a4a72bd19984a4873f9
[ "Apache-2.0" ]
1,164
2021-01-28T23:16:11.000Z
2022-03-28T07:23:10.000Z
oase-root/tests/web_app/views/system/test_sso_info.py
Masa-Yasuno/oase
90f3cee73c0d9b3153808a4a72bd19984a4873f9
[ "Apache-2.0" ]
25
2020-03-17T06:48:30.000Z
2022-02-15T15:13:44.000Z
# Copyright 2019 NEC Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
29.733974
113
0.519565
4a156159b21225cc2e801288493b99e449953b9b
561
py
Python
setup.py
jcc-ne/mlpods
020d512c6977f88c5c3df04406c122d52c1dceb6
[ "Apache-2.0" ]
null
null
null
setup.py
jcc-ne/mlpods
020d512c6977f88c5c3df04406c122d52c1dceb6
[ "Apache-2.0" ]
2
2017-04-27T18:22:30.000Z
2017-04-27T18:23:10.000Z
setup.py
jcc-ne/mlpods
020d512c6977f88c5c3df04406c122d52c1dceb6
[ "Apache-2.0" ]
null
null
null
from distutils.core import setup setup( name = 'mlpods', packages = ['mlpods', 'mlpods.funpod'], # this must be the same as the name above version = '0.1.7', description = 'MLpods', author = 'Janine Cheng, Ketan Patel', author_email = 'janine.cheng@mlpods.com', url = 'https://github.com/jcc-ne/mlpods', # ...
37.4
83
0.657754
4a156184a30d5e4c83e792fd90f1abfeacf486d2
504
py
Python
TSP19simpack/utils/auto_shrink.py
anantgupt/GraphAssociation
514ebe3b532eb211384915354ce89fdc276c0395
[ "MIT" ]
2
2021-05-31T12:36:27.000Z
2021-07-27T07:28:33.000Z
TSP19simpack/utils/auto_shrink.py
anantgupt/GraphAssociation
514ebe3b532eb211384915354ce89fdc276c0395
[ "MIT" ]
null
null
null
TSP19simpack/utils/auto_shrink.py
anantgupt/GraphAssociation
514ebe3b532eb211384915354ce89fdc276c0395
[ "MIT" ]
null
null
null
# Auto deletes large pickle files to save space import os, subprocess from tqdm import tqdm for (path, folder, files) in os.walk('.'): for file in files: if file in ['plot5.pickle','plot8.pickle','plot9.pickle']: target = os.path.join(path,file) try: os.remove(target) print('\x1b[1;33;40m Removed ',ta...
28
60
0.638889
4a15622e5a2d057bfaedcd2dcac478eea10adc2b
8,698
py
Python
tools/tcpaccept.py
kernel-z/bcc
4b91369990332657490e4cbbe9291a251abc01c9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tools/tcpaccept.py
kernel-z/bcc
4b91369990332657490e4cbbe9291a251abc01c9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tools/tcpaccept.py
kernel-z/bcc
4b91369990332657490e4cbbe9291a251abc01c9
[ "ECL-2.0", "Apache-2.0" ]
1
2019-11-04T18:21:02.000Z
2019-11-04T18:21:02.000Z
#!/usr/bin/python # @lint-avoid-python-3-compatibility-imports # # tcpaccept Trace TCP accept()s. # For Linux, uses BCC, eBPF. Embedded C. # # USAGE: tcpaccept [-h] [-t] [-p PID] # # This uses dynamic tracing of the kernel inet_csk_accept() socket function # (from tcp_prot.accept), and will need to be modifie...
31.744526
108
0.642102
4a156431f5ce4e5e5f5e37536317bdef40e241d3
1,174
py
Python
model/condition_block.py
Top34051/stargan-zsvc
ac9f91ec6ea6fa8c1950d28cca1a23931388d496
[ "MIT" ]
8
2021-08-05T07:50:12.000Z
2021-11-11T13:24:35.000Z
model/condition_block.py
Top34051/stargan-zsvc
ac9f91ec6ea6fa8c1950d28cca1a23931388d496
[ "MIT" ]
null
null
null
model/condition_block.py
Top34051/stargan-zsvc
ac9f91ec6ea6fa8c1950d28cca1a23931388d496
[ "MIT" ]
1
2021-08-12T02:51:06.000Z
2021-08-12T02:51:06.000Z
import torch from torch import nn from fastai.layers import init_linear class CIN(nn.Module): def __init__(self, dim_out, embed_dim): super().__init__() self.gamma = nn.Linear(embed_dim, dim_out) init_linear(self.gamma) self.beta = nn.Linear(embed_dim, dim_out) ...
30.102564
81
0.60477
4a1564a09ea5d9244c98a6051f6b3c426cf498a6
6,871
py
Python
scout/adapter/mongo/hpo.py
Clinical-Genomics/scout
1ec4daa76093c2ffa4655612b63d325970253f58
[ "BSD-3-Clause" ]
111
2015-01-15T11:53:20.000Z
2022-03-26T19:55:24.000Z
scout/adapter/mongo/hpo.py
Clinical-Genomics/scout
1ec4daa76093c2ffa4655612b63d325970253f58
[ "BSD-3-Clause" ]
2,995
2015-01-15T16:14:20.000Z
2022-03-31T13:36:32.000Z
scout/adapter/mongo/hpo.py
Clinical-Genomics/scout
1ec4daa76093c2ffa4655612b63d325970253f58
[ "BSD-3-Clause" ]
55
2015-05-31T19:09:49.000Z
2021-11-01T10:50:31.000Z
# -*- coding: utf-8 -*- import logging import operator import pymongo from anytree import Node, RenderTree, resolver, search from anytree.exporter import DictExporter from pymongo.errors import BulkWriteError, DuplicateKeyError from scout.exceptions import IntegrityError LOG = logging.getLogger(__name__) class Hpo...
34.878173
108
0.563819
4a1564a73d6664a4c698e66be943aef05071a253
2,798
py
Python
uproot/source/http.py
riga/uproot
78de42f849079c35fd05ae22033e56f02492b6c1
[ "BSD-3-Clause" ]
1
2021-03-18T23:33:35.000Z
2021-03-18T23:33:35.000Z
uproot/source/http.py
riga/uproot
78de42f849079c35fd05ae22033e56f02492b6c1
[ "BSD-3-Clause" ]
17
2020-01-28T22:33:27.000Z
2021-06-10T21:05:49.000Z
uproot/source/http.py
riga/uproot
78de42f849079c35fd05ae22033e56f02492b6c1
[ "BSD-3-Clause" ]
1
2020-04-17T15:33:03.000Z
2020-04-17T15:33:03.000Z
#!/usr/bin/env python # Copyright (c) 2017, DIANA-HEP # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # list of...
40.550725
147
0.721587
4a15652363de33ea41f6a314154f01c3279e8a9c
2,702
py
Python
Configuration/Geometry/python/GeometryDD4hepExtended2026D78Reco_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
5
2020-07-02T19:05:26.000Z
2022-02-25T14:37:09.000Z
Configuration/Geometry/python/GeometryDD4hepExtended2026D78Reco_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
524
2018-01-29T15:50:45.000Z
2021-08-04T14:03:21.000Z
Configuration/Geometry/python/GeometryDD4hepExtended2026D78Reco_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
8
2020-06-08T16:28:54.000Z
2021-11-16T14:40:00.000Z
import FWCore.ParameterSet.Config as cms # This config was generated automatically using generate2026Geometry.py # If you notice a mistake, please update the generating script, not just this config from Configuration.Geometry.GeometryDD4hepExtended2026D78_cff import * # tracker from Geometry.CommonTopologies.globalT...
45.033333
84
0.801999
4a15662bd1dda538f11181578ac77eb4d534032b
9,383
py
Python
step2_preprocess/src/tanqeebpreprocess.py
natc79/MENAJobData
ab6e03522470d1657ed9ace47734bf3597efe645
[ "MIT" ]
null
null
null
step2_preprocess/src/tanqeebpreprocess.py
natc79/MENAJobData
ab6e03522470d1657ed9ace47734bf3597efe645
[ "MIT" ]
null
null
null
step2_preprocess/src/tanqeebpreprocess.py
natc79/MENAJobData
ab6e03522470d1657ed9ace47734bf3597efe645
[ "MIT" ]
null
null
null
""" Purpose: This class consists of general functions that are useful in processing data from various websites containing job advertisement data that was scraped from the web. Author: Natalie Chun Created: 23 November 2018 """ from pytz import timezone import csv import pandas as pd import numpy as np import re fr...
45.328502
244
0.610892
4a15662e4c30d18bbec95ca77faa14de065c1fe7
87,578
py
Python
ibis/expr/operations.py
jclay/ibis
a32dc3b58c485e4706e9e8493dc8c031fe14a865
[ "Apache-2.0" ]
1
2020-08-04T08:29:44.000Z
2020-08-04T08:29:44.000Z
ibis/expr/operations.py
jclay/ibis
a32dc3b58c485e4706e9e8493dc8c031fe14a865
[ "Apache-2.0" ]
null
null
null
ibis/expr/operations.py
jclay/ibis
a32dc3b58c485e4706e9e8493dc8c031fe14a865
[ "Apache-2.0" ]
null
null
null
import collections import functools import itertools import operator from contextlib import suppress from typing import List import toolz import ibis.common.exceptions as com import ibis.expr.datatypes as dt import ibis.expr.rules as rlz import ibis.expr.schema as sch import ibis.expr.types as ir from ibis import uti...
24.690725
80
0.623193
4a1566c009344becc57f87877c9727d8e8d6a5ce
6,891
py
Python
utils/build/build_llvm.py
goku2610/hermes
f3ddbbac8cb0e0d9214926b58242440b9cf1055c
[ "MIT" ]
null
null
null
utils/build/build_llvm.py
goku2610/hermes
f3ddbbac8cb0e0d9214926b58242440b9cf1055c
[ "MIT" ]
null
null
null
utils/build/build_llvm.py
goku2610/hermes
f3ddbbac8cb0e0d9214926b58242440b9cf1055c
[ "MIT" ]
1
2021-03-26T18:18:26.000Z
2021-03-26T18:18:26.000Z
#!/usr/bin/env python # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the LICENSE # file in the root directory of this source tree. from __future__ import absolute_import, division, print_function, unicode_literals import os import platform import sub...
33.614634
87
0.605718
4a1566e47f9e7ace0efe62186ac4aa96dc8fdbf9
498
py
Python
tests/test_maybe/test_maybe_functions/test_maybe_decorator.py
internetimagery/returns
8f4f23bae6861fb3969a8d0c8979f96c5589fc61
[ "BSD-2-Clause" ]
null
null
null
tests/test_maybe/test_maybe_functions/test_maybe_decorator.py
internetimagery/returns
8f4f23bae6861fb3969a8d0c8979f96c5589fc61
[ "BSD-2-Clause" ]
null
null
null
tests/test_maybe/test_maybe_functions/test_maybe_decorator.py
internetimagery/returns
8f4f23bae6861fb3969a8d0c8979f96c5589fc61
[ "BSD-2-Clause" ]
null
null
null
from __future__ import absolute_import from typing import Dict, Optional from returns.maybe import Nothing, Some, maybe @maybe def _function(hashmap, key): return hashmap.get(key, None) def test_maybe_some(): u"""Ensures that maybe decorator works correctly for some case.""" assert _function({u'a': u'b...
24.9
73
0.702811
4a1568185e43cd8fd3501b2d0b86df2b1f0d309a
896
py
Python
python_brasilidades/telefones_br.py
lariodiniz/Alura-Python-Brasil-validacao-de-dados
e8e2f551e69a996cf4d47c93cc60664670637289
[ "MIT" ]
null
null
null
python_brasilidades/telefones_br.py
lariodiniz/Alura-Python-Brasil-validacao-de-dados
e8e2f551e69a996cf4d47c93cc60664670637289
[ "MIT" ]
null
null
null
python_brasilidades/telefones_br.py
lariodiniz/Alura-Python-Brasil-validacao-de-dados
e8e2f551e69a996cf4d47c93cc60664670637289
[ "MIT" ]
null
null
null
import re class TelefonesBr: def __init__(self, telefone): if self.valida_telefone(telefone): self.numero = telefone else: raise ValueError('Telefone não encontrado!') def valida_telefone(self, telefone): padrao = "([0-9]{2,3})?([0-9]{2})([0-9]{4,5})([0-9]{4})"...
28.903226
64
0.551339
4a1568b0ec15009b614a022d046d9dc8e83f2c6a
875
py
Python
app/core/inventory/commands/update_items.py
sns/burgess
23a73660ff5079b282d44329e7a150757a2a9c61
[ "BSD-3-Clause" ]
null
null
null
app/core/inventory/commands/update_items.py
sns/burgess
23a73660ff5079b282d44329e7a150757a2a9c61
[ "BSD-3-Clause" ]
null
null
null
app/core/inventory/commands/update_items.py
sns/burgess
23a73660ff5079b282d44329e7a150757a2a9c61
[ "BSD-3-Clause" ]
null
null
null
from sqlalchemy.orm import Session from app.core.inventory.models.item import Item from app.core.request_handler import RequestHandler from app.core.inventory.schemas.item import Item as ItemSchema from typing import List class Command: items: List[ItemSchema] def __init__(self, items): self.items = it...
30.172414
75
0.627429
4a156a15c0573d056308e5b5184672cbaedbbc84
24,908
py
Python
Lib/site-packages/aniso8601/tests/test_time.py
EduMacedoEng/ScreenRecorder
40050789074a40d214cb09d9f6a7b504e345617f
[ "MIT" ]
1
2021-01-27T17:14:06.000Z
2021-01-27T17:14:06.000Z
Lib/site-packages/aniso8601/tests/test_time.py
EduMacedoEng/ScreenRecorder
40050789074a40d214cb09d9f6a7b504e345617f
[ "MIT" ]
null
null
null
Lib/site-packages/aniso8601/tests/test_time.py
EduMacedoEng/ScreenRecorder
40050789074a40d214cb09d9f6a7b504e345617f
[ "MIT" ]
2
2021-01-20T12:39:49.000Z
2021-02-11T10:08:16.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2020, Brandon Nielsen # All rights reserved. # # This software may be modified and distributed under the terms # of the BSD license. See the LICENSE file for details. import unittest import aniso8601 from aniso8601.exceptions import ISOFormatError from aniso8601.resolution im...
48.084942
79
0.418982
4a156acfb4ab1018b0cf761c8a07645d196bab63
5,975
py
Python
codespace/python/examples/persistentconversationbot.py
tzpBingo/github-trending
05dc0a4a5aae91871a57b9c6db5d9faee243173e
[ "MIT" ]
37
2017-10-12T01:50:42.000Z
2022-02-24T02:44:45.000Z
codespace/python/examples/persistentconversationbot.py
tzpBingo/github-trending
05dc0a4a5aae91871a57b9c6db5d9faee243173e
[ "MIT" ]
null
null
null
codespace/python/examples/persistentconversationbot.py
tzpBingo/github-trending
05dc0a4a5aae91871a57b9c6db5d9faee243173e
[ "MIT" ]
12
2018-07-31T10:04:56.000Z
2022-02-07T00:08:06.000Z
#!/usr/bin/env python # pylint: disable=C0116,W0613 # This program is dedicated to the public domain under the CC0 license. """ First, a few callback functions are defined. Then, those functions are passed to the Dispatcher and registered at their respective places. Then, the bot is started and runs until we press Ctr...
32.472826
96
0.660753
4a156b191b1f69480034ecb7cf46cbf99436479b
1,760
py
Python
test/hummingbot/core/mock_api/test_mock_web_socket_server.py
subchap/hummingbot
de1ed87977c45a72425bb9708e707230fe117b99
[ "Apache-2.0" ]
2
2021-06-17T13:09:25.000Z
2021-06-17T13:09:29.000Z
test/hummingbot/core/mock_api/test_mock_web_socket_server.py
rabbitholeanalytics/hummingbot
60e5b0f7eca84cbd3288a786a20ac99d622510a8
[ "Apache-2.0" ]
null
null
null
test/hummingbot/core/mock_api/test_mock_web_socket_server.py
rabbitholeanalytics/hummingbot
60e5b0f7eca84cbd3288a786a20ac99d622510a8
[ "Apache-2.0" ]
1
2021-06-02T09:34:13.000Z
2021-06-02T09:34:13.000Z
import asyncio import unittest.mock import websockets from hummingbot.core.mock_api.mock_web_socket_server import MockWebSocketServerFactory import json class MockWebSocketServerFactoryTest(unittest.TestCase): @classmethod def setUpClass(cls) -> None: cls.ev_loop: asyncio.AbstractEventLoop = asyncio.g...
37.446809
95
0.669318
4a156b3a0eead5ce632fd8b164418516bce5b0f8
2,577
py
Python
users/models.py
ephyle/Legit-Info
7f3845563a64299aa64e4fdba75949276ed9a711
[ "BSD-2-Clause", "CC-BY-4.0", "Apache-2.0" ]
44
2020-10-19T13:06:10.000Z
2022-01-23T10:56:31.000Z
users/models.py
ephyle/Legit-Info
7f3845563a64299aa64e4fdba75949276ed9a711
[ "BSD-2-Clause", "CC-BY-4.0", "Apache-2.0" ]
111
2020-10-20T22:12:58.000Z
2022-03-28T00:25:13.000Z
users/models.py
ephyle/Legit-Info
7f3845563a64299aa64e4fdba75949276ed9a711
[ "BSD-2-Clause", "CC-BY-4.0", "Apache-2.0" ]
31
2021-02-08T22:32:37.000Z
2022-03-11T10:57:29.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ users/models.py -- Database ORM models related to users and profiles. Written by Tony Pearson, IBM, 2020 Licensed under Apache 2.0, see LICENSE for details """ # System imports from django.db import models from django.contrib.auth.models import User from django.db.m...
28.633333
69
0.606907
4a156c1382f732f825f89678222d6fac9c21cbe6
17,319
py
Python
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/aio/operations/_private_endpoint_connections_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/aio/operations/_private_endpoint_connections_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
2
2021-11-03T06:10:36.000Z
2021-12-01T06:29:39.000Z
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/aio/operations/_private_endpoint_connections_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
1
2021-05-19T02:55:10.000Z
2021-05-19T02:55:10.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
53.125767
232
0.685317
4a156c4d42c75af7f1b4cee5423d3410590e3b70
1,405
py
Python
tests/test_compat.py
piglei/attrs
b9668ef791a35e5bd2dc9f05c90ff427dc5c6fed
[ "MIT" ]
null
null
null
tests/test_compat.py
piglei/attrs
b9668ef791a35e5bd2dc9f05c90ff427dc5c6fed
[ "MIT" ]
null
null
null
tests/test_compat.py
piglei/attrs
b9668ef791a35e5bd2dc9f05c90ff427dc5c6fed
[ "MIT" ]
null
null
null
# SPDX-License-Identifier: MIT import types import pytest @pytest.fixture(name="mp") def _mp(): return types.MappingProxyType({"x": 42, "y": "foo"}) class TestMetadataProxy: """ Ensure properties of metadata proxy independently of hypothesis strategies. """ def test_repr(self, mp): ""...
26.509434
79
0.564413
4a156d36191daf87f2f337154b6759b1c495eeef
12,661
py
Python
flask/sessions.py
bells/flask
1441e02256a169ded5e1bdeaa304b279de98d53a
[ "BSD-3-Clause" ]
1
2019-06-21T14:28:53.000Z
2019-06-21T14:28:53.000Z
flask/sessions.py
bells/flask
1441e02256a169ded5e1bdeaa304b279de98d53a
[ "BSD-3-Clause" ]
null
null
null
flask/sessions.py
bells/flask
1441e02256a169ded5e1bdeaa304b279de98d53a
[ "BSD-3-Clause" ]
1
2019-08-13T08:08:53.000Z
2019-08-13T08:08:53.000Z
# -*- coding: utf-8 -*- """ flask.sessions ~~~~~~~~~~~~~~ Implements cookie based sessions based on itsdangerous. :copyright: (c) 2012 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ import hashlib from datetime import datetime from werkzeug.http import http_date, parse_date f...
39.319876
79
0.642603
4a156d7b6401c4d9af1ca038ae1063534a0a05d2
12,423
py
Python
tests/sentry/api/endpoints/test_sentry_apps.py
mikiec84/sentry
4594f479db9a079d7f1ed41a9e07d8f36953319f
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/api/endpoints/test_sentry_apps.py
mikiec84/sentry
4594f479db9a079d7f1ed41a9e07d8f36953319f
[ "BSD-3-Clause" ]
1
2022-01-15T02:36:18.000Z
2022-01-15T02:36:18.000Z
tests/sentry/api/endpoints/test_sentry_apps.py
gaybro8777/sentry
4594f479db9a079d7f1ed41a9e07d8f36953319f
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import six from django.core.urlresolvers import reverse from sentry.constants import SentryAppStatus from sentry.utils import json from sentry.testutils import APITestCase from sentry.testutils.helpers import with_feature class SentryAppsTest(APITestCase): def setUp(self)...
36.754438
90
0.606214
4a156eec493bb5b9ebd21598eaca40741549a007
353
py
Python
tests/miscellaneous/test_utils.py
lucasvieirasilva/aws-ssm-secrets-cli
861779099dd5a77c7166d69cad90bba5a1145001
[ "MIT" ]
4
2021-05-18T16:11:26.000Z
2022-01-10T14:23:11.000Z
tests/miscellaneous/test_utils.py
lucasvieirasilva/aws-ssm-secrets-cli
861779099dd5a77c7166d69cad90bba5a1145001
[ "MIT" ]
45
2020-09-14T08:57:53.000Z
2021-09-16T16:13:58.000Z
tests/miscellaneous/test_utils.py
lucasvieirasilva/aws-ssm-secrets-cli
861779099dd5a77c7166d69cad90bba5a1145001
[ "MIT" ]
null
null
null
import pytest from aws_secrets.miscellaneous import utils @pytest.mark.parametrize("value,size,expected", [ ('#', 5, "#####"), ('=', 10, "=========="), ('=', 1, "=") ]) def test_repeat_to_length(value, size, expected): """ Should generate the string correctly """ assert utils.repeat_to...
23.533333
58
0.594901
4a156f868db1cc61902c372eab6ef4f13bf98db3
910
py
Python
app/migrations/0003_admin.py
kuwii/some-information-system
82ecb6d3ee07294ce80bf22b9bbfcf71ce957c00
[ "PSF-2.0", "MIT" ]
null
null
null
app/migrations/0003_admin.py
kuwii/some-information-system
82ecb6d3ee07294ce80bf22b9bbfcf71ce957c00
[ "PSF-2.0", "MIT" ]
null
null
null
app/migrations/0003_admin.py
kuwii/some-information-system
82ecb6d3ee07294ce80bf22b9bbfcf71ce957c00
[ "PSF-2.0", "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-01-06 03:11 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_depende...
32.5
143
0.640659
4a156fcfa914616a8b18e0b265cf47828413acb8
4,381
py
Python
www/python/server.py
amenoyoya/tus-upload-form
ed0fc6da58ccb50a8911205ca07d012eec7f7009
[ "MIT" ]
null
null
null
www/python/server.py
amenoyoya/tus-upload-form
ed0fc6da58ccb50a8911205ca07d012eec7f7009
[ "MIT" ]
2
2019-08-25T12:40:29.000Z
2019-08-31T03:49:00.000Z
www/python/server.py
amenoyoya/tus-upload-form
ed0fc6da58ccb50a8911205ca07d012eec7f7009
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request, make_response from flask_cors import CORS from datetime import datetime, timedelta import os, uuid, base64 # metadata -> dict def metadata2dict(metadata): data = {} for field in metadata.split(','): values = field.split(' ') data[values[0]] = b...
40.192661
205
0.642319
4a1570637989fa2210517a813b7f71217c27d6aa
9,491
py
Python
haikuza_main.py
justinmklam/project-haikuza
dda9e75977a043a8eaa818746764c0685b6d6172
[ "MIT" ]
null
null
null
haikuza_main.py
justinmklam/project-haikuza
dda9e75977a043a8eaa818746764c0685b6d6172
[ "MIT" ]
null
null
null
haikuza_main.py
justinmklam/project-haikuza
dda9e75977a043a8eaa818746764c0685b6d6172
[ "MIT" ]
null
null
null
__author__ = 'Justin' # from numpy import random from syllable_counter import sylco # from haiku_training import LearnHaiku from twitter import Twitter # import nltk import time import logging import lyrics as lyricwiki from markov import Markov from gsheets import GSheets from time import strftime cl...
29.566978
118
0.521125
4a15717ffdfa1b8c4a497ccb445ebb3faba423b4
386
py
Python
objectModel/Python/cdm/objectmodel/spew_catcher.py
rt112000/CDM
34bd34f9260140a8f8aa02bd87c23033f3daad4c
[ "CC-BY-4.0", "MIT" ]
884
2019-05-10T02:09:10.000Z
2022-03-31T14:02:00.000Z
objectModel/Python/cdm/objectmodel/spew_catcher.py
spbast/CDM
bf97a3720c97ee4c9df3625084cf8b3bc65ff9c7
[ "CC-BY-4.0", "MIT" ]
171
2019-06-10T11:34:37.000Z
2022-03-31T22:50:12.000Z
objectModel/Python/cdm/objectmodel/spew_catcher.py
spbast/CDM
bf97a3720c97ee4c9df3625084cf8b3bc65ff9c7
[ "CC-BY-4.0", "MIT" ]
340
2019-05-07T18:00:16.000Z
2022-03-31T12:00:15.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. from abc import ABC, abstractmethod class SpewCatcher(ABC): @abstractmethod def clear(self) -> None: raise NotImplementedError() def spew_l...
25.733333
94
0.717617
4a1573071bb4d72eb4cc27677343aba0e2e639c6
2,234
py
Python
app_model/src/model/train.py
DavidBky/dsti-2021-ml-pipeline
61deb0b134c8359044ac64ee1dcacd04e493a7e8
[ "MIT" ]
1
2020-10-06T14:27:22.000Z
2020-10-06T14:27:22.000Z
app_model/src/model/train.py
DavidBky/dsti-2021-ml-pipeline
61deb0b134c8359044ac64ee1dcacd04e493a7e8
[ "MIT" ]
null
null
null
app_model/src/model/train.py
DavidBky/dsti-2021-ml-pipeline
61deb0b134c8359044ac64ee1dcacd04e493a7e8
[ "MIT" ]
3
2020-10-06T13:01:02.000Z
2020-10-06T13:33:37.000Z
import numpy as np import pandas as pd from sklearn.model_selection import train_test_split from sklearn.metrics import mean_squared_error, mean_absolute_error, r2_score from sklearn.ensemble import RandomForestClassifier import mlflow import mlflow.sklearn try: import cPickle as pickle except ImportError: ...
23.765957
111
0.671889
4a157340443cbe1f9ecc1d8c1d81aeccfbee704a
1,027
py
Python
setup.py
LFLab/aiotodoist
3eff1927053445ea72aae04f1bf0d851e5f1f8d6
[ "MIT" ]
1
2021-03-03T09:17:32.000Z
2021-03-03T09:17:32.000Z
setup.py
LFLab/aiotodoist
3eff1927053445ea72aae04f1bf0d851e5f1f8d6
[ "MIT" ]
1
2021-12-23T03:59:35.000Z
2021-12-23T04:09:34.000Z
setup.py
LFLab/aiotodoist
3eff1927053445ea72aae04f1bf0d851e5f1f8d6
[ "MIT" ]
null
null
null
import re from pathlib import Path from setuptools import setup, find_packages with open("README.md", "r") as f: long_description = f.read() txt = (Path(__file__).parent / 'aiotodoist' / '__init__.py').read_text('utf-8') version = re.findall(r"^__version__ = '([^']+)'\r?", txt, re.M)[0] setup( name="aiotod...
30.205882
79
0.631938
4a15739a8030ce2b5d6c23b88137eb35dc7dbc72
6,847
py
Python
conf_media_driver.py
aukhina/product-configs
958db11ec5fe631b0c39f02d0fb34742ae206ade
[ "MIT" ]
null
null
null
conf_media_driver.py
aukhina/product-configs
958db11ec5fe631b0c39f02d0fb34742ae206ade
[ "MIT" ]
null
null
null
conf_media_driver.py
aukhina/product-configs
958db11ec5fe631b0c39f02d0fb34742ae206ade
[ "MIT" ]
null
null
null
# Copyright (c) 2019-2020 Intel Corporation # # 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, publi...
35.661458
121
0.706003
4a1573b015ad31d3bb312735a1e752daba15ee33
3,294
py
Python
statick_tool/plugins/tool/lizard_tool_plugin.py
xydesa/statick
22d863306bfd6fe411758e5807ae036679a309c5
[ "CC0-1.0" ]
1
2022-01-25T16:08:45.000Z
2022-01-25T16:08:45.000Z
statick_tool/plugins/tool/lizard_tool_plugin.py
xydesa/statick
22d863306bfd6fe411758e5807ae036679a309c5
[ "CC0-1.0" ]
1
2020-05-06T01:41:35.000Z
2020-05-06T01:41:35.000Z
statick_tool/plugins/tool/lizard_tool_plugin.py
jhdcs/statick
121ab511f206967c587d70d88217ae23db84726d
[ "CC0-1.0" ]
null
null
null
"""Apply lizard tool and gather results.""" import io import logging import re from contextlib import redirect_stdout from typing import List, Match, Optional, Pattern import lizard from statick_tool.issue import Issue from statick_tool.package import Package from statick_tool.tool_plugin import ToolPlugin class Li...
32.613861
88
0.606861
4a157409806230927348fb8ddf9fda2a3f668bad
1,366
py
Python
mathgenerator/funcs/misc/geometric_progression.py
Sankari-K/mathgenerator
712c74fbe34fe594c4c0f7e3b3057b01d85112ba
[ "MIT" ]
40
2020-11-17T19:45:20.000Z
2022-03-22T18:16:43.000Z
mathgenerator/funcs/misc/geometric_progression.py
Sankari-K/mathgenerator
712c74fbe34fe594c4c0f7e3b3057b01d85112ba
[ "MIT" ]
209
2020-10-14T15:32:08.000Z
2020-11-03T19:08:19.000Z
mathgenerator/funcs/misc/geometric_progression.py
Sankari-K/mathgenerator
712c74fbe34fe594c4c0f7e3b3057b01d85112ba
[ "MIT" ]
179
2020-10-14T15:36:55.000Z
2020-10-29T19:26:16.000Z
from .__init__ import * def gen_func(number_values=6, min_value=2, max_value=12, n_term=7, sum_term=5, format='string'): r = random.randint(min_value, max_value) a = random.randint(min_value, max_value) n_term = random.randint(number_values,...
36.918919
114
0.586384
4a1575ea3d6a0aa6a2f468d02c2cad8d9b904e53
29,049
py
Python
platform/gsutil/gslib/wildcard_iterator.py
IsaacHuang/google-cloud-sdk
52afa5d1a75dff08f4f5380c5cccc015bf796ca5
[ "Apache-2.0" ]
null
null
null
platform/gsutil/gslib/wildcard_iterator.py
IsaacHuang/google-cloud-sdk
52afa5d1a75dff08f4f5380c5cccc015bf796ca5
[ "Apache-2.0" ]
null
null
null
platform/gsutil/gslib/wildcard_iterator.py
IsaacHuang/google-cloud-sdk
52afa5d1a75dff08f4f5380c5cccc015bf796ca5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2010 Google Inc. All Rights Reserved. # # 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 require...
44.417431
80
0.671314
4a15769d5f4d4439c17ce2b1dde5270a398094e0
479
py
Python
tools/gen_random_csv.py
arjun-menon/vcalc
899c890b100ce33fb4bf2f94653c57d1a1997bc7
[ "Apache-2.0" ]
1
2019-07-16T08:25:52.000Z
2019-07-16T08:25:52.000Z
tools/gen_random_csv.py
arjun-menon/vcalc
899c890b100ce33fb4bf2f94653c57d1a1997bc7
[ "Apache-2.0" ]
null
null
null
tools/gen_random_csv.py
arjun-menon/vcalc
899c890b100ce33fb4bf2f94653c57d1a1997bc7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import sys, random try: col_count = int(sys.argv[1]) row_count = int(sys.argv[2]) if col_count <= 0 or row_count <= 0: raise ValueError() except (IndexError, ValueError): print("Usage: %s col_count row_count" % sys.argv[0], file=sys.stderr) sys.exit(1) columns = [ random.sample(range...
22.809524
87
0.688935
4a1576ba8d8404c19e2c0d893a9499af77344395
3,878
py
Python
app_name/steps/generic_steps.py
radu-sover/naaf
a9bbccdb83454c223d86ca83abe00212871ad697
[ "MIT" ]
null
null
null
app_name/steps/generic_steps.py
radu-sover/naaf
a9bbccdb83454c223d86ca83abe00212871ad697
[ "MIT" ]
null
null
null
app_name/steps/generic_steps.py
radu-sover/naaf
a9bbccdb83454c223d86ca83abe00212871ad697
[ "MIT" ]
null
null
null
""" This would be a generic steps module - common actions to Pages and Elements. This steps were suposed to be implemented in the framework: naaf.page_steps, but I had some issues with "reflection" and for now is here. Should I continue with this generalization? Feature files will be more conventions and will eliminat...
35.907407
83
0.746003
4a1577fb7ff51205a1baead9dc25783d604953cd
2,596
py
Python
mmdet/models/losses/giou_loss.py
zhangxiaosong18/LTM
31676e24aabc7d15ba0ac833dea55c03a22b8e5d
[ "Apache-2.0" ]
3
2021-03-06T09:18:03.000Z
2021-12-04T13:01:03.000Z
mmdet/models/losses/giou_loss.py
zhangxiaosong18/LTM
31676e24aabc7d15ba0ac833dea55c03a22b8e5d
[ "Apache-2.0" ]
null
null
null
mmdet/models/losses/giou_loss.py
zhangxiaosong18/LTM
31676e24aabc7d15ba0ac833dea55c03a22b8e5d
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn from ..registry import LOSSES from .utils import weighted_loss @weighted_loss def giou_loss(pred, target): """IoU loss. Computing the IoU loss between a set of predicted bboxes and target bboxes. The loss is calculated as negative log of IoU. Args: pred (T...
32.45
114
0.617103
4a15790f42b2c129030b63b9b193217df52f9921
3,641
py
Python
mux_python/models/upload_response.py
moaazsidat/mux-python
3f03b9dd0761fa1a0cd5bdbeac85ccf4f326508c
[ "MIT" ]
36
2019-02-28T21:18:39.000Z
2022-03-04T19:58:45.000Z
mux_python/models/upload_response.py
moaazsidat/mux-python
3f03b9dd0761fa1a0cd5bdbeac85ccf4f326508c
[ "MIT" ]
7
2019-04-01T14:48:34.000Z
2022-03-04T16:31:34.000Z
mux_python/models/upload_response.py
moaazsidat/mux-python
3f03b9dd0761fa1a0cd5bdbeac85ccf4f326508c
[ "MIT" ]
9
2019-11-29T03:57:58.000Z
2022-03-02T17:29:25.000Z
# coding: utf-8 """ Mux API Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before. # noqa: E501 The version of the OpenAPI document: v1 Contact: devex@mux.com Gener...
28.007692
204
0.570722
4a1579212946a709b889476706dfb6d6a51d9f8d
1,665
py
Python
{{cookiecutter.project_slug}}/scripts/test.py
blueskyideas/cookiecutter-python
754c1c7f457e3cd13918308a4b946eaeac5b2529
[ "MIT" ]
1
2018-01-18T12:54:03.000Z
2018-01-18T12:54:03.000Z
{{cookiecutter.project_slug}}/scripts/test.py
blueskyideas/cookiecutter-python
754c1c7f457e3cd13918308a4b946eaeac5b2529
[ "MIT" ]
null
null
null
{{cookiecutter.project_slug}}/scripts/test.py
blueskyideas/cookiecutter-python
754c1c7f457e3cd13918308a4b946eaeac5b2529
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.6 ''' Run the test suite. Part of the Scripts to Rule them All suite of scripts to provide a consistent developer experience for working on our repos https://githubengineering.com/scripts-to-rule-them-all/ ''' import argparse import logging import os import subprocess import common import b...
25.227273
111
0.695495
4a157926929b77e9951fcdc9ee4ca958a7b0102d
649
py
Python
examples/web/jsonserializer.py
spaceone/circuits
ed6d5464f1f83034109ed3d23d126c715450cfd2
[ "MIT" ]
null
null
null
examples/web/jsonserializer.py
spaceone/circuits
ed6d5464f1f83034109ed3d23d126c715450cfd2
[ "MIT" ]
null
null
null
examples/web/jsonserializer.py
spaceone/circuits
ed6d5464f1f83034109ed3d23d126c715450cfd2
[ "MIT" ]
null
null
null
#!/usr/bin/env python from json import dumps from circuits import Component, handler from circuits.web import Controller, Logger, Server class JSONSerializer(Component): channel = "web" # 1 higher than the default response handler @handler("response", priority=1.0) def serialize_response_body(self,...
21.633333
61
0.696456
4a15799390341963532a100a7765bf73b854da61
1,247
py
Python
webscaff/commands/sys/apt.py
idlesign/webscaff
b839e6c9bbdf491c3bd0f392f80d39762b8549ee
[ "BSD-3-Clause" ]
3
2017-03-22T15:07:20.000Z
2021-01-16T19:23:14.000Z
webscaff/commands/sys/apt.py
idlesign/webscaff
b839e6c9bbdf491c3bd0f392f80d39762b8549ee
[ "BSD-3-Clause" ]
null
null
null
webscaff/commands/sys/apt.py
idlesign/webscaff
b839e6c9bbdf491c3bd0f392f80d39762b8549ee
[ "BSD-3-Clause" ]
null
null
null
from invoke import task BOOTSTRAP_SYSTEM_PACKAGES = [ 'python3-dev', 'python3-pip', 'python3-venv', 'python3-wheel', # For source builds. 'build-essential', 'libjpeg-dev', # for Pillow 'libxml2-dev', 'libxslt1-dev', # for lxml 'libpcre3-dev', 'libssl-dev', # for uWSGI with SSL ...
19.184615
95
0.619086
4a157a687fae0e5d69f4e41bbd32a101741da65b
8,844
py
Python
neutron/db/dvr_mac_db.py
congnt95/neutron
6a73a362c5ff5b7c28c15a49f47a9900c0d2b4e1
[ "Apache-2.0" ]
1,080
2015-01-04T08:35:00.000Z
2022-03-27T09:15:52.000Z
neutron/db/dvr_mac_db.py
congnt95/neutron
6a73a362c5ff5b7c28c15a49f47a9900c0d2b4e1
[ "Apache-2.0" ]
24
2015-02-21T01:48:28.000Z
2021-11-26T02:38:56.000Z
neutron/db/dvr_mac_db.py
congnt95/neutron
6a73a362c5ff5b7c28c15a49f47a9900c0d2b4e1
[ "Apache-2.0" ]
1,241
2015-01-02T10:47:10.000Z
2022-03-27T09:42:23.000Z
# Copyright 2014 Hewlett-Packard Development Company, L.P. # All rights reserved. # # 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...
38.789474
79
0.668137
4a157a82091931dbe7ffc1289ac736172f4e6b40
15,863
py
Python
scripts/primes_scratch.py
rcasero/cytometer
d76e58fa37f83f6a666d556ba061530d787fcfb2
[ "Apache-2.0" ]
1
2021-06-09T10:18:26.000Z
2021-06-09T10:18:26.000Z
scripts/primes_scratch.py
rcasero/cytometer
d76e58fa37f83f6a666d556ba061530d787fcfb2
[ "Apache-2.0" ]
null
null
null
scripts/primes_scratch.py
rcasero/cytometer
d76e58fa37f83f6a666d556ba061530d787fcfb2
[ "Apache-2.0" ]
null
null
null
""" This file is part of Cytometer Copyright 2021 Medical Research Council SPDX-License-Identifier: Apache-2.0 Author: Ramon Casero <rcasero@gmail.com> """ import numpy as np import matplotlib.pyplot as plt import matplotlib.ticker as plticker from primesieve import * import pandas as pd import time DEBUG = False de...
32.774793
118
0.583937
4a157af317b9f2b1c5d1f99e7b0cd9056db3df49
2,865
py
Python
sdk/python/pulumi_azure_nextgen/datafactory/v20180601/get_exposure_control_feature_value.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/datafactory/v20180601/get_exposure_control_feature_value.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/datafactory/v20180601/get_exposure_control_feature_value.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
35.37037
174
0.673298
4a157bc3f45ed90f81141ccdc9ef138629427633
18,580
py
Python
CHIP-Network-Model/model_fitting_utils.py
IdeasLabUT/WSDM-2022-Challenge
f4d0aa8dc3491c8ab77b86e376f37d04720389e3
[ "BSD-3-Clause" ]
2
2022-01-22T21:53:36.000Z
2022-01-25T08:05:21.000Z
CHIP-Network-Model/model_fitting_utils.py
IdeasLabUT/WSDM-2022-Challenge
f4d0aa8dc3491c8ab77b86e376f37d04720389e3
[ "BSD-3-Clause" ]
null
null
null
CHIP-Network-Model/model_fitting_utils.py
IdeasLabUT/WSDM-2022-Challenge
f4d0aa8dc3491c8ab77b86e376f37d04720389e3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ @author: Makan Arastuie """ import numpy as np from scipy.stats import norm import chip_local_search as cls import matplotlib.pyplot as plt from scipy.stats import multinomial import generative_model_utils as utils import parameter_estimation as estimate_utils from spectral_clustering impor...
45.876543
120
0.662648
4a157c5cac14d06f43f8e7bb4f14087ede0633a0
19,868
py
Python
aiohttp/test_utils.py
shootkin/aiohttp
2d8621a62903a2db9d55b05485fa6895dd0fc59a
[ "Apache-2.0" ]
2
2021-02-04T10:49:55.000Z
2021-02-04T10:50:31.000Z
aiohttp/test_utils.py
shootkin/aiohttp
2d8621a62903a2db9d55b05485fa6895dd0fc59a
[ "Apache-2.0" ]
228
2020-10-17T22:31:34.000Z
2022-03-28T18:13:31.000Z
aiohttp/test_utils.py
shootkin/aiohttp
2d8621a62903a2db9d55b05485fa6895dd0fc59a
[ "Apache-2.0" ]
1
2021-07-22T04:21:08.000Z
2021-07-22T04:21:08.000Z
"""Utilities shared by tests.""" import asyncio import contextlib import gc import inspect import ipaddress import os import socket import sys from abc import ABC, abstractmethod from types import TracebackType from typing import ( TYPE_CHECKING, Any, Callable, Iterator, List, Optional, Typ...
29.787106
107
0.636451
4a157ca83f1569e902e2d8787625d514504365bd
2,087
py
Python
pypy/objspace/std/test/test_identitydict.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
1
2021-06-02T23:02:09.000Z
2021-06-02T23:02:09.000Z
pypy/objspace/std/test/test_identitydict.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
1
2021-03-30T18:08:41.000Z
2021-03-30T18:08:41.000Z
pypy/objspace/std/test/test_identitydict.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
1
2022-03-30T11:42:37.000Z
2022-03-30T11:42:37.000Z
import py from pypy.interpreter.gateway import interp2app class AppTestIdentityDict(object): def setup_class(cls): if cls.runappdirect: py.test.skip("interp2app doesn't work on appdirect") def w_uses_identity_strategy(self, obj): import __pypy__ return "IdentityDictStrateg...
24.267442
68
0.519885
4a157d77c5e645f8e17ca55591ceaf7b884347e3
5,273
py
Python
cride/users/migrations/0001_initial.py
mpita/cride
5e8afb710d3ac704c9c3819e0f7ff762e60948ff
[ "MIT" ]
1
2019-04-09T07:15:46.000Z
2019-04-09T07:15:46.000Z
cride/users/migrations/0001_initial.py
mpita/cride
5e8afb710d3ac704c9c3819e0f7ff762e60948ff
[ "MIT" ]
7
2020-06-05T19:54:39.000Z
2022-03-11T23:41:06.000Z
cride/users/migrations/0001_initial.py
mpita/cride
5e8afb710d3ac704c9c3819e0f7ff762e60948ff
[ "MIT" ]
null
null
null
# Generated by Django 2.0.10 on 2019-02-24 21:49 from django.conf import settings import django.contrib.auth.models import django.contrib.auth.validators import django.core.validators from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Mig...
73.236111
329
0.658259
4a157e5fa5b27f99ea3ac507b06cb7cee3e10104
475
py
Python
src/ui/validate_text.py
KenyC/Shajara
ec5ab94e92cf154aef63ac2278fddff901f6328c
[ "MIT" ]
null
null
null
src/ui/validate_text.py
KenyC/Shajara
ec5ab94e92cf154aef63ac2278fddff901f6328c
[ "MIT" ]
null
null
null
src/ui/validate_text.py
KenyC/Shajara
ec5ab94e92cf154aef63ac2278fddff901f6328c
[ "MIT" ]
null
null
null
from PyQt5.QtWidgets import QTextEdit, QApplication from PyQt5.QtCore import Qt class ValidateText(QTextEdit): """Makes Enter key board press copy to clipboard""" def keyPressEvent(self, event): if self.treat_event(event): return elif event.key() == Qt.Key_Return or event.key() == Qt.Key_Return: QApp...
25
69
0.738947
4a157e95bde7b19a396e4751fa9932ca2e063327
4,364
py
Python
django_shop/apps/trade/migrations/0001_initial.py
XZH950926/mydjango
a6f7ecceda251f20778124a81b3e71e98bab2a08
[ "Apache-2.0" ]
null
null
null
django_shop/apps/trade/migrations/0001_initial.py
XZH950926/mydjango
a6f7ecceda251f20778124a81b3e71e98bab2a08
[ "Apache-2.0" ]
null
null
null
django_shop/apps/trade/migrations/0001_initial.py
XZH950926/mydjango
a6f7ecceda251f20778124a81b3e71e98bab2a08
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0 on 2018-11-08 20:34 import datetime from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('goods', '0001_initial'), migrations.swappable_dep...
55.240506
239
0.59945
4a157ed10f68c31a89ebf3cc0d961156cf9bd43d
20,806
py
Python
myems-api/core/costcenter.py
18600575648/myems
38ab7d509b5ab275a4df0333e6256c586abdfbf9
[ "MIT" ]
null
null
null
myems-api/core/costcenter.py
18600575648/myems
38ab7d509b5ab275a4df0333e6256c586abdfbf9
[ "MIT" ]
null
null
null
myems-api/core/costcenter.py
18600575648/myems
38ab7d509b5ab275a4df0333e6256c586abdfbf9
[ "MIT" ]
null
null
null
import falcon import simplejson as json import mysql.connector import config import uuid from core.useractivity import user_logger, access_control class CostCenterCollection: @staticmethod def __init__(): """"Initializes CostCenterCollection""" pass @staticmethod def on_options(req, r...
38.744879
112
0.520907
4a157f1467ac92ac6ef44cb911cfaf74b9b1f4a7
134
py
Python
misc/hello/hello.py
HenrikSamuelsson/advent-of-code
728907af50728148794b3897f6713504e84b9d9d
[ "MIT" ]
null
null
null
misc/hello/hello.py
HenrikSamuelsson/advent-of-code
728907af50728148794b3897f6713504e84b9d9d
[ "MIT" ]
null
null
null
misc/hello/hello.py
HenrikSamuelsson/advent-of-code
728907af50728148794b3897f6713504e84b9d9d
[ "MIT" ]
null
null
null
""" Hello world application. Mostly just to test the Python setup on current computer. """ MESSSAGE = "Hello World" print(MESSSAGE)
14.888889
57
0.738806
4a15807fa46cf0888a60a3e7e5ffc6f98b053c6d
176
py
Python
place/models/type.py
Kradukman/beesUlb
1234658af3aff7d2f580212c01d8acec96167078
[ "MIT" ]
null
null
null
place/models/type.py
Kradukman/beesUlb
1234658af3aff7d2f580212c01d8acec96167078
[ "MIT" ]
null
null
null
place/models/type.py
Kradukman/beesUlb
1234658af3aff7d2f580212c01d8acec96167078
[ "MIT" ]
null
null
null
from odoo import api, fields, models, _ class PlaceType(models.Model): _name = "place.type" _description = "Place Type" name = fields.Char('Name', required=True)
22
45
0.681818
4a158082c058c807140f2fdee5311c482268437f
5,159
py
Python
test/posix/integration/syslog_default/test.py
paulyc/IncludeOS
5c82bad4a22838bc2219fbadef57d94f006b4760
[ "Apache-2.0" ]
null
null
null
test/posix/integration/syslog_default/test.py
paulyc/IncludeOS
5c82bad4a22838bc2219fbadef57d94f006b4760
[ "Apache-2.0" ]
null
null
null
test/posix/integration/syslog_default/test.py
paulyc/IncludeOS
5c82bad4a22838bc2219fbadef57d94f006b4760
[ "Apache-2.0" ]
1
2021-06-16T22:48:53.000Z
2021-06-16T22:48:53.000Z
#! /usr/bin/env python import sys import os includeos_src = os.environ.get('INCLUDEOS_SRC', os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))).split('/test')[0]) print 'includeos_src: {0}'.format(includeos_src) sys.path.insert(0,includeos_src) from vmrunner import v...
45.254386
139
0.698779
4a1580aa9c7f3ccadf0f5afe769158d1f83e6b64
5,059
py
Python
mil/archive/script_train_CAEP.py
labsyspharm/deeptile
b79a52f9613d5f8861b31e68a407cf507a90bcbe
[ "MIT" ]
null
null
null
mil/archive/script_train_CAEP.py
labsyspharm/deeptile
b79a52f9613d5f8861b31e68a407cf507a90bcbe
[ "MIT" ]
1
2020-04-05T01:13:24.000Z
2020-04-05T01:13:24.000Z
mil/archive/script_train_CAEP.py
labsyspharm/deeptile
b79a52f9613d5f8861b31e68a407cf507a90bcbe
[ "MIT" ]
2
2019-07-29T17:45:13.000Z
2019-08-06T15:44:00.000Z
import numpy as np import pandas as pd import time import argparse import os import copy import yaml import tqdm import tensorflow as tf import CAEP import preprocessing if __name__ == '__main__': # parameter defined within the scope of model preparation BATCH_SIZE = 10 LATENT_DIM = 20 LEARNING_RATE ...
38.037594
93
0.622455
4a1580b0b3ee114babac8608a4754a13402b948f
7,616
py
Python
st2actions/st2actions/runners/remote_script_runner.py
totalkyos/stack-storm
b89bc648d53dae03c7484d22abd771edfe45bbb8
[ "Apache-2.0" ]
null
null
null
st2actions/st2actions/runners/remote_script_runner.py
totalkyos/stack-storm
b89bc648d53dae03c7484d22abd771edfe45bbb8
[ "Apache-2.0" ]
null
null
null
st2actions/st2actions/runners/remote_script_runner.py
totalkyos/stack-storm
b89bc648d53dae03c7484d22abd771edfe45bbb8
[ "Apache-2.0" ]
null
null
null
# Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use th...
47.012346
98
0.607012
4a1580f572a92ce6f03e43ffe56cab65c9be6eaf
7,573
py
Python
src/setup.py
figtools/figgy-cli
88f4ccb8221ef9734f95b2637acfacc6e00983e7
[ "Apache-2.0" ]
36
2020-07-21T21:22:02.000Z
2021-10-20T06:55:47.000Z
src/setup.py
figtools/figgy-cli
88f4ccb8221ef9734f95b2637acfacc6e00983e7
[ "Apache-2.0" ]
2
2020-10-29T12:49:15.000Z
2021-04-29T01:12:05.000Z
src/setup.py
figtools/figgy-cli
88f4ccb8221ef9734f95b2637acfacc6e00983e7
[ "Apache-2.0" ]
null
null
null
import re from setuptools import setup, find_packages import platform import os # Platform Constants LINUX, MAC, WINDOWS = "Linux", "Darwin", "Windows" SHORT_DESCRIPTION = "Tired of managing hundreds or thousands of configurations as your microservice footprint " \ "scales? Tired of config files, e...
39.238342
141
0.718738
4a158144a087a7d04c14ee086ba29694cd53232b
7,658
py
Python
rasa_nlu/converters.py
MartinoMensio/rasa_nlu
29251aa35ce57db25538c819babfb0f0fb42dac6
[ "Apache-2.0" ]
null
null
null
rasa_nlu/converters.py
MartinoMensio/rasa_nlu
29251aa35ce57db25538c819babfb0f0fb42dac6
[ "Apache-2.0" ]
null
null
null
rasa_nlu/converters.py
MartinoMensio/rasa_nlu
29251aa35ce57db25538c819babfb0f0fb42dac6
[ "Apache-2.0" ]
null
null
null
import codecs import json import re import warnings from typing import Optional from rasa_nlu import utils from rasa_nlu.tokenizers import Tokenizer from rasa_nlu.training_data import TrainingData # Different supported file formats and their identifier WIT_FILE_FORMAT = "wit" API_FILE_FORMAT = "api" LUIS_FILE_FORMAT...
38.099502
113
0.60538
4a15817ab29fe03de1e92eebcf19a9a48ee3f94d
1,209
py
Python
runFDDB_example.py
zhly0/FDDB-evaluation
3064424b1f28c1a6ccf32bea97a8311c70aca8f0
[ "Unlicense" ]
null
null
null
runFDDB_example.py
zhly0/FDDB-evaluation
3064424b1f28c1a6ccf32bea97a8311c70aca8f0
[ "Unlicense" ]
null
null
null
runFDDB_example.py
zhly0/FDDB-evaluation
3064424b1f28c1a6ccf32bea97a8311c70aca8f0
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[1]: # use #from FDDB import runFDDB #runFDDB(pred='./FDDB-result/result.txt', result_path=None, index=-1) # In[2]: #get_ipython().run_line_magic('matplotlib', 'inline') from matplotlib import pyplot as plt import numpy as np path_ContROC = "./FDDB-result/ContROC.txt" p...
19.5
100
0.673284
4a1582bc743d6a8cdd29402fd39671fa1e1e9c77
4,698
py
Python
src/pipeline/region_utils.py
weimingguo/open-covid-19-data
c0e599a49e27d8f418e90b8a29d740dccffe6c74
[ "Apache-2.0" ]
129
2020-05-21T03:35:17.000Z
2022-03-16T03:49:34.000Z
src/pipeline/region_utils.py
weimingguo/open-covid-19-data
c0e599a49e27d8f418e90b8a29d740dccffe6c74
[ "Apache-2.0" ]
72
2020-06-09T06:20:58.000Z
2020-12-17T18:07:35.000Z
src/pipeline/region_utils.py
weimingguo/open-covid-19-data
c0e599a49e27d8f418e90b8a29d740dccffe6c74
[ "Apache-2.0" ]
82
2020-05-22T03:30:15.000Z
2022-03-16T00:04:55.000Z
# Copyright 2020 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
47.938776
116
0.709025
4a1586f018040a73f1a21fc6840043174c8284d9
1,297
py
Python
testupload.py
jlberzal/Paramassi
6c740eae60134180f5009c5a4f524a3c50ee384a
[ "BSD-2-Clause" ]
null
null
null
testupload.py
jlberzal/Paramassi
6c740eae60134180f5009c5a4f524a3c50ee384a
[ "BSD-2-Clause" ]
null
null
null
testupload.py
jlberzal/Paramassi
6c740eae60134180f5009c5a4f524a3c50ee384a
[ "BSD-2-Clause" ]
null
null
null
import os from flask import Flask, request, redirect, url_for from werkzeug import secure_filename UPLOAD_FOLDER = '' ALLOWED_EXTENSIONS = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif']) app = Flask(__name__) app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER def allowed_file(filename): return '.' in filename and \ ...
30.162791
74
0.624518
4a1589bafd54e1cbcae86ebc12eeee475dd47361
1,181
py
Python
setup.py
zengzhiying/py3monchickey
706706140c38be1556b44132200ea77c61e346f6
[ "Apache-2.0" ]
1
2021-09-29T08:43:51.000Z
2021-09-29T08:43:51.000Z
setup.py
zengzhiying/py3monchickey
706706140c38be1556b44132200ea77c61e346f6
[ "Apache-2.0" ]
null
null
null
setup.py
zengzhiying/py3monchickey
706706140c38be1556b44132200ea77c61e346f6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # coding=utf-8 import os import sys import codecs from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) packages = ['monchickey'] requires = [ 'PyMySQL>=0.7.11', 'pyyaml>=3.11', 'xxhash>=1.2.0' ] longdesc = ''' This is a tool library based on python 3. It...
23.156863
88
0.69602
4a1589cff4d427eb734f212f4fee20fc36f0a807
2,527
py
Python
writeup-scripts/2018-2019/SogetiCyberEscape/gocrack/solve.py
Lexios4/hackademint.github.io
4e1047dd7d91d59daf327da6ae6b6913a451a67a
[ "CC0-1.0" ]
5
2019-04-11T16:03:34.000Z
2019-08-26T20:50:45.000Z
writeup-scripts/2018-2019/SogetiCyberEscape/gocrack/solve.py
Lexios4/hackademint.github.io
4e1047dd7d91d59daf327da6ae6b6913a451a67a
[ "CC0-1.0" ]
4
2019-03-29T23:30:05.000Z
2020-08-20T17:12:31.000Z
writeup-scripts/2018-2019/SogetiCyberEscape/gocrack/solve.py
Lexios4/hackademint.github.io
4e1047dd7d91d59daf327da6ae6b6913a451a67a
[ "CC0-1.0" ]
2
2019-05-07T12:56:25.000Z
2021-06-18T16:32:22.000Z
#!/usr/bin/python3 from binascii import hexlify import hashlib, string bytes_list = [157, 94, 214, 120, 254, 87, 188, 202, 97, 1, 64, 149, 122, 250, 181, 113, 76, 97, 67, 96, 218, 147, 192, 160, 65, 178, 46, 83, 125, 225, 81, 235, 13, 97, 248, 55, 12, 173, 29, 65, 47, 128, 184, 77, 20, 62, 18, 87, 165, 243, 198, 161,...
76.575758
1,843
0.587258
4a158c50f8312034fc202a5567c59c5cebcdf071
5,348
py
Python
miniconda3-lnx/pyzo-4.10.2/source/pyzo/core/commandline.py
Thibaut-Kovaltchouk/MultiPyzo
a15ecf77e31ebeb195e70385f5ac132f6ab4504d
[ "CC0-1.0" ]
null
null
null
miniconda3-lnx/pyzo-4.10.2/source/pyzo/core/commandline.py
Thibaut-Kovaltchouk/MultiPyzo
a15ecf77e31ebeb195e70385f5ac132f6ab4504d
[ "CC0-1.0" ]
null
null
null
miniconda3-lnx/pyzo-4.10.2/source/pyzo/core/commandline.py
Thibaut-Kovaltchouk/MultiPyzo
a15ecf77e31ebeb195e70385f5ac132f6ab4504d
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2014, the Pyzo development team # # Pyzo is distributed under the terms of the 2-Clause BSD License. # The full license can be found in 'license.txt'. """ Module to deal with command line arguments. In specific, this allows doing "pyzo some_file.py" and the file will be opened ...
29.711111
78
0.631077
4a158d95cd04236f6f169edf719b00c3d0df1cc8
529
py
Python
setup.py
borisbolliet/pi_spec
88c96f86253b4e719fe31642f3d779e1f4ae576b
[ "MIT" ]
1
2021-11-03T16:11:37.000Z
2021-11-03T16:11:37.000Z
setup.py
borisbolliet/specdist
88c96f86253b4e719fe31642f3d779e1f4ae576b
[ "MIT" ]
null
null
null
setup.py
borisbolliet/specdist
88c96f86253b4e719fe31642f3d779e1f4ae576b
[ "MIT" ]
null
null
null
from setuptools import setup setup( name="specdist", version="0.1", description="Python package for spectral distortions", zip_safe=False, packages=["specdist"], author = 'Boris Bolliet and Jens Chluba', author_email = 'boris.bolliet@gmail.com', url = 'https://github.com/borisbolliet...
23
81
0.654064
4a158fbf1c36cc898660cc4dc1bf0aff4f473c70
971
py
Python
Platforms/Web/Processing/Admin/protocols.py
HeapUnderfl0w/Phaazebot
54e637bd4bc213b8efdaf23d5f331f2569e96843
[ "MIT" ]
null
null
null
Platforms/Web/Processing/Admin/protocols.py
HeapUnderfl0w/Phaazebot
54e637bd4bc213b8efdaf23d5f331f2569e96843
[ "MIT" ]
null
null
null
Platforms/Web/Processing/Admin/protocols.py
HeapUnderfl0w/Phaazebot
54e637bd4bc213b8efdaf23d5f331f2569e96843
[ "MIT" ]
null
null
null
from typing import TYPE_CHECKING if TYPE_CHECKING: from Platforms.Web.index import WebIndex from aiohttp.web import Response, Request from Utils.Classes.htmlformatter import HTMLFormatter from Utils.Classes.webuserinfo import WebUserInfo from Platforms.Web.utils import getNavbar async def adminProtocols(cls:"WebInde...
29.424242
117
0.777549
4a15905829aaee4880014437edb09d76e82ccda3
288
py
Python
exercises/project_euler_solutions/problem_48.py
leonel-123/python-fundamentals
1ce9f666449866a13147d4f3a774c43f9107da41
[ "MIT" ]
null
null
null
exercises/project_euler_solutions/problem_48.py
leonel-123/python-fundamentals
1ce9f666449866a13147d4f3a774c43f9107da41
[ "MIT" ]
null
null
null
exercises/project_euler_solutions/problem_48.py
leonel-123/python-fundamentals
1ce9f666449866a13147d4f3a774c43f9107da41
[ "MIT" ]
null
null
null
""" problem 48 The series, 1^1 + 2^2 + 3^3 + ... + 10^10 = 10405071317. Find the last ten digits of the series, 1^1 + 2^2 + 3^3 + ... + 1000^1000. """ def series(to_number): tn = to_number s = 0 for k in range(1, tn + 1): s += k**k return s print(series(1000))
16.941176
56
0.538194
4a15905c8ae5dd7f02f8e8df3768fb66d74b8b71
2,160
py
Python
ezotv/discordbot_tools/discord_bot.py
marcsello/ezotv-frontend
405c440a567e8a0f1577f10d45385f3171398afe
[ "CC0-1.0" ]
null
null
null
ezotv/discordbot_tools/discord_bot.py
marcsello/ezotv-frontend
405c440a567e8a0f1577f10d45385f3171398afe
[ "CC0-1.0" ]
7
2020-01-23T00:50:39.000Z
2020-04-18T20:34:40.000Z
ezotv/discordbot_tools/discord_bot.py
marcsello/ezotv-frontend
405c440a567e8a0f1577f10d45385f3171398afe
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 from cache_tools import CachedBaseHttpSession class DiscordBot(object): def __init__(self, bot_token: str, guild_id: str, admin_role_name: str, admin_chat_id: str): self._session = CachedBaseHttpSession("DISCORD", "https://discordapp.com/api/") self._session.headers.update(...
30
96
0.610648
4a15913b285e320842474f1a02025d23f5d9fa3e
10,520
py
Python
intersight/model/compute_storage_virtual_drive_operation_all_of.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
5
2021-12-16T15:13:32.000Z
2022-03-29T16:09:54.000Z
intersight/model/compute_storage_virtual_drive_operation_all_of.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
4
2022-01-25T19:05:51.000Z
2022-03-29T20:18:37.000Z
intersight/model/compute_storage_virtual_drive_operation_all_of.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
2
2020-07-07T15:01:08.000Z
2022-01-31T04:27:35.000Z
""" Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advan...
52.338308
1,678
0.645532
4a1592875c479347f14aa2c4c71d9e16fe54e043
5,164
py
Python
src/serenity/strategy/backtester.py
neosavvy/serenity
c7c8f4d2f48437cd33e0f6b135455f008031b19f
[ "Apache-2.0" ]
null
null
null
src/serenity/strategy/backtester.py
neosavvy/serenity
c7c8f4d2f48437cd33e0f6b135455f008031b19f
[ "Apache-2.0" ]
null
null
null
src/serenity/strategy/backtester.py
neosavvy/serenity
c7c8f4d2f48437cd33e0f6b135455f008031b19f
[ "Apache-2.0" ]
null
null
null
import logging from pathlib import Path import fire import toml from tau.core import HistoricNetworkScheduler, Event from serenity.equity.sharadar_api import create_sharadar_session from serenity.strategy.api import PriceField, InvestmentStrategy, Portfolio from serenity.strategy.core import TradableUniversePricingCo...
44.904348
119
0.713013
4a15936579b91a1ea1cbf4e9a0b98797bb90a4a2
519
py
Python
migrations/versions/021_Add_allow_duplicate_study_number_column.py
LCBRU/lbrc_upload
be42fef97b67c1f25329db52ae3a88eb293a1203
[ "MIT" ]
null
null
null
migrations/versions/021_Add_allow_duplicate_study_number_column.py
LCBRU/lbrc_upload
be42fef97b67c1f25329db52ae3a88eb293a1203
[ "MIT" ]
null
null
null
migrations/versions/021_Add_allow_duplicate_study_number_column.py
LCBRU/lbrc_upload
be42fef97b67c1f25329db52ae3a88eb293a1203
[ "MIT" ]
null
null
null
from sqlalchemy import MetaData, Table, Index, Column, Boolean meta = MetaData() def upgrade(migrate_engine): meta = MetaData(bind=migrate_engine) study = Table("study", meta, autoload=True) allow_duplicate_study_number = Column("allow_duplicate_study_number", Boolean, default=False) allow_duplicate...
27.315789
97
0.757225
4a15936e9b5c7e40f5dd5436f90eabc9486380b6
15,400
py
Python
awx/api/views/root.py
sumit-21/awx
966a62c6bf2ec0c672e076684341bc6bd75827af
[ "Apache-2.0" ]
17
2021-04-03T01:40:17.000Z
2022-03-03T11:45:20.000Z
awx/api/views/root.py
sumit-21/awx
966a62c6bf2ec0c672e076684341bc6bd75827af
[ "Apache-2.0" ]
24
2021-05-18T21:13:35.000Z
2022-03-29T10:23:52.000Z
awx/api/views/root.py
dkelosky/awx
44223003aa87b6580dfb99595f5898b9a88f6e73
[ "Apache-2.0" ]
14
2021-04-06T20:05:41.000Z
2022-03-24T14:16:03.000Z
# Copyright (c) 2018 Ansible, Inc. # All Rights Reserved. import logging import operator import json from collections import OrderedDict from django.conf import settings from django.utils.encoding import smart_text from django.utils.decorators import method_decorator from django.views.decorators.csrf import ensure_cs...
46.95122
131
0.667532
4a15944560ddb696558e3eff128a36726f5c40f4
2,399
py
Python
pysb/examples/run_earm_hpp.py
weilandtd/pysb
8037bc735797ca667af43496127b8ee4cc63a75f
[ "BSD-2-Clause" ]
null
null
null
pysb/examples/run_earm_hpp.py
weilandtd/pysb
8037bc735797ca667af43496127b8ee4cc63a75f
[ "BSD-2-Clause" ]
null
null
null
pysb/examples/run_earm_hpp.py
weilandtd/pysb
8037bc735797ca667af43496127b8ee4cc63a75f
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """ Run the Extrinsic Apoptosis Reaction Model (EARM) using BioNetGen's Hybrid-Particle Population (HPP) algorithm. NFsim provides stochastic simulation without reaction network generation, allowing simulation of models with large (or infinite) reaction networks by keeping track of species coun...
35.80597
76
0.72697
4a1594590b073202c4e0dfefd88db183da2b39c7
10,756
py
Python
server/sqlmap/lib/techniques/brute/use.py
kurpav/volcano
31d5f8f6f5a282abbea3861368eb39cfe33bba77
[ "MIT" ]
null
null
null
server/sqlmap/lib/techniques/brute/use.py
kurpav/volcano
31d5f8f6f5a282abbea3861368eb39cfe33bba77
[ "MIT" ]
null
null
null
server/sqlmap/lib/techniques/brute/use.py
kurpav/volcano
31d5f8f6f5a282abbea3861368eb39cfe33bba77
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Copyright (c) 2006-2015 sqlmap developers (http://sqlmap.org/) See the file 'doc/COPYING' for copying permission """ import time from lib.core.common import clearConsoleLine from lib.core.common import dataToStdout from lib.core.common import filterListValue from lib.core.common import getF...
39.399267
167
0.659074
4a15954f862cd5afee68d629b588a3ed21b05c3b
5,861
py
Python
test/unit/test_pack.py
Kris-b50122/pyOCD
df605c7aa04d72c5187ab652445063cc232cf378
[ "Apache-2.0" ]
3
2019-06-05T01:32:06.000Z
2020-05-20T08:55:46.000Z
test/unit/test_pack.py
asky2083664719/pyOCD
5a835e1017182975a11a4caddd83332f74b75fa4
[ "Apache-2.0" ]
1
2019-07-05T10:13:09.000Z
2019-07-05T10:51:43.000Z
test/unit/test_pack.py
asky2083664719/pyOCD
5a835e1017182975a11a4caddd83332f74b75fa4
[ "Apache-2.0" ]
1
2019-01-21T03:01:53.000Z
2019-01-21T03:01:53.000Z
# pyOCD debugger # Copyright (c) 2019-2020 Arm Limited # SPDX-License-Identifier: Apache-2.0 # # 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...
36.403727
97
0.679918
4a1595ac89967546b356e0952e012452c53a4ed4
1,336
py
Python
coco_annotation.py
exploding-gradients/keras-yolo3
dd6787a892e41d405b543060b2ecb25bdca99b6e
[ "MIT" ]
null
null
null
coco_annotation.py
exploding-gradients/keras-yolo3
dd6787a892e41d405b543060b2ecb25bdca99b6e
[ "MIT" ]
null
null
null
coco_annotation.py
exploding-gradients/keras-yolo3
dd6787a892e41d405b543060b2ecb25bdca99b6e
[ "MIT" ]
null
null
null
import json from collections import defaultdict name_box_id = defaultdict(list) id_name = dict() f = open( "/data/COCO_2017/annotations/instances_train2017_og.json", encoding='utf-8') data = json.load(f) annotations = data['annotations'] for ant in annotations: id = ant['image_id'] name = '/data/COCO_...
25.207547
62
0.538922
4a159610a98c71cfee9df2edb82543ba63e96ed0
14,782
py
Python
sdk/storage/azure-mgmt-storagesync/tests/test_cli_mgmt_storagesync.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/storage/azure-mgmt-storagesync/tests/test_cli_mgmt_storagesync.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
sdk/storage/azure-mgmt-storagesync/tests/test_cli_mgmt_storagesync.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
2
2020-05-21T22:51:22.000Z
2020-05-26T20:53:01.000Z
# coding: utf-8 #------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #----------------------------------------------------------------------...
49.109635
1,099
0.707414
4a15970d41c9cb141afaa234ae4fd1670349f8ed
2,955
py
Python
sopel/modules/keyexchange.py
paulmadore/funkshelper
cfe60ef4015381b6c4fb01e453523d571af0b2de
[ "EFL-2.0" ]
null
null
null
sopel/modules/keyexchange.py
paulmadore/funkshelper
cfe60ef4015381b6c4fb01e453523d571af0b2de
[ "EFL-2.0" ]
null
null
null
sopel/modules/keyexchange.py
paulmadore/funkshelper
cfe60ef4015381b6c4fb01e453523d571af0b2de
[ "EFL-2.0" ]
null
null
null
# coding=utf-8 """ Woodcoin IRC GPG Key Association Module copyright 2015 phm.link Licensed under Mozilla Public License Version 2. Synopsis: a module that will register a user with their designated GPG key. Behavior: should import the public key it is told to import, then store that in a file it then associates with...
51.842105
357
0.729949
4a1599b08eeb93706ded3ad73a16c3dc4a0128d4
614
py
Python
houses/migrations/0014_auto_20190908_2134.py
xNovax/RoomScout
287240a9d13f2b8f6ce9abdc95cf611671970fc3
[ "MIT" ]
24
2020-02-01T17:22:47.000Z
2020-10-24T19:49:36.000Z
houses/migrations/0014_auto_20190908_2134.py
xNovax/RoomScout
287240a9d13f2b8f6ce9abdc95cf611671970fc3
[ "MIT" ]
16
2020-02-01T14:30:15.000Z
2020-08-13T20:49:56.000Z
houses/migrations/0014_auto_20190908_2134.py
aaronspindler/RoomScout
287240a9d13f2b8f6ce9abdc95cf611671970fc3
[ "MIT" ]
6
2020-02-01T22:07:46.000Z
2021-03-05T14:05:27.000Z
# Generated by Django 2.2.4 on 2019-09-09 01:34 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('houses', '0013_auto_20190908_2133'), ] operations = [ migrations.RemoveField( model_name='house', name='cats_allowed'...
23.615385
53
0.566775