hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
74877429e18bcfa340754eb9e9aa938f6c52e134
22,591
py
Python
datanodes/nodes/math.py
sergiinichenko/dataNode
a3baf796bd813d2c2b6f78e05f0216e7f461b67e
[ "MIT" ]
1
2022-02-03T20:52:48.000Z
2022-02-03T20:52:48.000Z
datanodes/nodes/math.py
sergiinichenko/dataNodes
a3baf796bd813d2c2b6f78e05f0216e7f461b67e
[ "MIT" ]
null
null
null
datanodes/nodes/math.py
sergiinichenko/dataNodes
a3baf796bd813d2c2b6f78e05f0216e7f461b67e
[ "MIT" ]
null
null
null
from datanodes.core.utils import dumpException from datanodes.core.main_conf import * from datanodes.nodes.datanode import * import numpy as np import re from math import * import copy class MathGraphicsNode(DataGraphicsNode): def initSizes(self): super().initSizes() self.width = 160.0 se...
33.320059
106
0.554292
748774a1d3904519f6f21ed8014603124b7f24c8
4,625
py
Python
demisto_sdk/commands/common/tests/base_validator_test.py
SepioSystems/demisto-sdk
f28007a637b7a38f4165bc522328ccbbd9b05628
[ "MIT" ]
null
null
null
demisto_sdk/commands/common/tests/base_validator_test.py
SepioSystems/demisto-sdk
f28007a637b7a38f4165bc522328ccbbd9b05628
[ "MIT" ]
null
null
null
demisto_sdk/commands/common/tests/base_validator_test.py
SepioSystems/demisto-sdk
f28007a637b7a38f4165bc522328ccbbd9b05628
[ "MIT" ]
null
null
null
import pytest from demisto_sdk.commands.common.hook_validations.base_validator import \ BaseValidator from demisto_sdk.commands.common.hook_validations.structure import \ StructureValidator from demisto_sdk.commands.common.tools import (get_not_registered_tests, is...
31.25
117
0.645838
74881a686bf73f4eb53ae23d9ef0f0f3fb080f62
20,763
py
Python
timesketch/models/sketch.py
markmckinnon/timesketch
96ec30adf0b8c2e46ce66f0dd1ca389bfc8abe02
[ "Apache-2.0" ]
1
2021-11-04T23:40:26.000Z
2021-11-04T23:40:26.000Z
timesketch/models/sketch.py
markmckinnon/timesketch
96ec30adf0b8c2e46ce66f0dd1ca389bfc8abe02
[ "Apache-2.0" ]
null
null
null
timesketch/models/sketch.py
markmckinnon/timesketch
96ec30adf0b8c2e46ce66f0dd1ca389bfc8abe02
[ "Apache-2.0" ]
1
2021-02-13T09:41:52.000Z
2021-02-13T09:41:52.000Z
# Copyright 2015 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 required by applicable law or a...
37.209677
79
0.628715
74882fd6816d5dcd4449c7d4d58004c64e83ab8e
7,243
py
Python
instrumentation/opentelemetry-instrumentation-falcon/tests/test_falcon.py
Zajozor/opentelemetry-python-contrib
370952f68495bc5542885ddf7067986fb339c21f
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
instrumentation/opentelemetry-instrumentation-falcon/tests/test_falcon.py
Zajozor/opentelemetry-python-contrib
370952f68495bc5542885ddf7067986fb339c21f
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
instrumentation/opentelemetry-instrumentation-falcon/tests/test_falcon.py
Zajozor/opentelemetry-python-contrib
370952f68495bc5542885ddf7067986fb339c21f
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# Copyright The OpenTelemetry Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
34.990338
79
0.598923
748845c5575c4b0821953d4c51a58f76debb9365
678
py
Python
apps/core/permissions/article.py
sparcs-kaist/new-ara-api
63998da575cb148347708199fe1345c4e7ee3e1b
[ "MIT" ]
19
2017-09-13T07:51:58.000Z
2022-03-28T11:04:03.000Z
apps/core/permissions/article.py
sparcs-kaist/new-ara-api
63998da575cb148347708199fe1345c4e7ee3e1b
[ "MIT" ]
147
2017-09-14T13:45:30.000Z
2022-03-14T15:54:09.000Z
apps/core/permissions/article.py
sparcs-kaist/new-ara-api
63998da575cb148347708199fe1345c4e7ee3e1b
[ "MIT" ]
5
2019-08-31T13:13:30.000Z
2021-03-26T15:46:38.000Z
from rest_framework import permissions from apps.core.models import Article class ArticlePermission(permissions.IsAuthenticated): def has_object_permission(self, request, view, obj): if request.method not in permissions.SAFE_METHODS: return request.user.is_staff or request.user == obj.created...
33.9
76
0.764012
7488664a2009c0eec3c40ae725d1c9781ac731bd
1,725
py
Python
bibliohub/catalog/models.py
apjanco/bibliohub
95da034d2e136bd4ae25a9b6932fd19124dacd9b
[ "MIT" ]
null
null
null
bibliohub/catalog/models.py
apjanco/bibliohub
95da034d2e136bd4ae25a9b6932fd19124dacd9b
[ "MIT" ]
null
null
null
bibliohub/catalog/models.py
apjanco/bibliohub
95da034d2e136bd4ae25a9b6932fd19124dacd9b
[ "MIT" ]
null
null
null
from django.db import models from django.urls import reverse # Used to generate URLs by reversing the URL patterns # Create your models here. class Author(models.Model): first_name = models.CharField(max_length=100) last_name = models.CharField(max_length=100) class Meta: ordering = ['last_name'...
31.363636
95
0.688696
7488886b9e1e55353f641b54561463ec44a47528
1,520
py
Python
_OnSet/AUROC_L.py
lshvartser1959/TSG-ICU
a8d4af29a9de957bde32e1b783f537a8823ac8f4
[ "MIT" ]
null
null
null
_OnSet/AUROC_L.py
lshvartser1959/TSG-ICU
a8d4af29a9de957bde32e1b783f537a8823ac8f4
[ "MIT" ]
null
null
null
_OnSet/AUROC_L.py
lshvartser1959/TSG-ICU
a8d4af29a9de957bde32e1b783f537a8823ac8f4
[ "MIT" ]
null
null
null
def Gntbok2(y_pred, y_true, GAP): # %% from scipy import interp import numpy as np import pandas as pd from itertools import cycle import warnings warnings.filterwarnings('ignore') from sklearn.metrics import roc_curve, auc, recall_score, confusion_matrix, precision_score, accu...
25.333333
112
0.596711
7488a83d077d35b6c650450cb20af019e2c63e06
4,009
py
Python
alipay/aop/api/request/AlipayOpenIotvspOrguserfaceoutQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/AlipayOpenIotvspOrguserfaceoutQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/AlipayOpenIotvspOrguserfaceoutQueryRequest.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.AlipayOpenIotvspOrguserfaceoutQueryModel import AlipayOpenIotvspOrguserfaceoutQueryModel class AlipayOpenIotvspOrguserfaceoutQueryRe...
27.648276
148
0.648042
7488b6a890e4b6c236d836f30ca275111164c2bb
59,186
py
Python
interaction/views.py
Jimmy-A-Caroli/protwis
8987947f9325b2e331e957587cda39e4995628f5
[ "Apache-2.0" ]
null
null
null
interaction/views.py
Jimmy-A-Caroli/protwis
8987947f9325b2e331e957587cda39e4995628f5
[ "Apache-2.0" ]
null
null
null
interaction/views.py
Jimmy-A-Caroli/protwis
8987947f9325b2e331e957587cda39e4995628f5
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render, redirect from django.http import HttpResponse, HttpResponseRedirect from django.conf import settings from django import forms from django.db.models import Count, Min, Sum, Avg, Q from django.utils.text import slugify from django.core.cache import cache from django.views.decorators.c...
48.394113
250
0.58154
7488deeb7fcc75f477c0139fedfdb8e934340971
3,782
py
Python
migrations/versions/0171_add_org_invite_template.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
41
2019-11-28T16:58:41.000Z
2022-01-28T21:11:16.000Z
migrations/versions/0171_add_org_invite_template.py
cds-snc/notification-api
b1c1064f291eb860b494c3fa65ac256ad70bf47c
[ "MIT" ]
1,083
2019-07-08T12:57:24.000Z
2022-03-08T18:53:40.000Z
migrations/versions/0171_add_org_invite_template.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
9
2020-01-24T19:56:43.000Z
2022-01-27T21:36:53.000Z
""" Revision ID: 0171_add_org_invite_template Revises: 0170_hidden_non_nullable Create Date: 2018-02-16 14:16:43.618062 """ from datetime import datetime from alembic import op from flask import current_app revision = "0171_add_org_invite_template" down_revision = "0170_hidden_non_nullable" template_id = "203566f...
36.019048
120
0.625066
7488f743cc62a10e3f4b2eb9958ffa731f01fe9a
473
py
Python
alipay/aop/api/response/AlipayOpenAuthOperatorPasswordModifyResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayOpenAuthOperatorPasswordModifyResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayOpenAuthOperatorPasswordModifyResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayOpenAuthOperatorPasswordModifyResponse(AlipayResponse): def __init__(self): super(AlipayOpenAuthOperatorPasswordModifyResponse, self).__init__() def parse_respons...
29.5625
117
0.794926
748900363a975ba1c5ed8749ca65a3cdc63591a1
17,812
py
Python
py_labeler/tests/test_labeler.py
anhaidgroup/magellan_labeler
97583163091cd04a8bfd3824d78291da58f24f9c
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
5
2019-03-13T11:49:35.000Z
2021-11-17T01:37:36.000Z
py_labeler/tests/test_labeler.py
anhaidgroup/magellan_labeler
97583163091cd04a8bfd3824d78291da58f24f9c
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
5
2017-12-31T19:00:37.000Z
2020-01-29T18:56:47.000Z
py_labeler/tests/test_labeler.py
anhaidgroup/magellan_labeler
97583163091cd04a8bfd3824d78291da58f24f9c
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
4
2017-12-30T17:23:07.000Z
2020-02-25T20:49:35.000Z
from nose.tools import * import unittest import os from py_labeler.utils.generic_helper import get_install_path from pandas import read_csv from py_labeler.labeler.labeler import label_table from py_labeler.utils import ApplicationContext from py_labeler.labeler.controller.FilterController import FilterController from...
51.183908
142
0.754716
74892a24d502ad769d78171653e085c09420d93b
35,250
py
Python
vilbert/task_utils.py
alisonreboud/vilbert-multi-task
f358bbf1ad71bcd576d0f4b7487c9397449a421c
[ "MIT" ]
2
2021-01-14T14:07:40.000Z
2021-03-09T10:57:36.000Z
vilbert/task_utils.py
alisonreboud/vilbert-multi-task
f358bbf1ad71bcd576d0f4b7487c9397449a421c
[ "MIT" ]
null
null
null
vilbert/task_utils.py
alisonreboud/vilbert-multi-task
f358bbf1ad71bcd576d0f4b7487c9397449a421c
[ "MIT" ]
1
2021-01-12T16:52:28.000Z
2021-01-12T16:52:28.000Z
# 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 io import open import json import logging import os import sys import torch import torch.nn.functional as F import torch.nn as nn import ...
38.315217
202
0.606468
74894b684e953e454a452d802a0cf1c0578a5835
6,849
py
Python
BuildingDepot-v3.2.8/buildingdepot/DataService/app/api_0_0/resources/utils.py
Entromorgan/GIoTTo
53ba7519c56d46af1e32a77aab5cf1c5cd8143fc
[ "MIT" ]
null
null
null
BuildingDepot-v3.2.8/buildingdepot/DataService/app/api_0_0/resources/utils.py
Entromorgan/GIoTTo
53ba7519c56d46af1e32a77aab5cf1c5cd8143fc
[ "MIT" ]
null
null
null
BuildingDepot-v3.2.8/buildingdepot/DataService/app/api_0_0/resources/utils.py
Entromorgan/GIoTTo
53ba7519c56d46af1e32a77aab5cf1c5cd8143fc
[ "MIT" ]
null
null
null
""" DataService.api_0_0.resources.utils ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Contains the definitions for all the various decorator functions that are called to authenticate,validate email,define what level of access the user has to the specified sensor. @copyright: (c) 2016 SynergyLabs @license: UCSD License. See License fi...
36.238095
103
0.640093
74895301884e0296ae815534ee0d2b3b1eaafab1
13,409
py
Python
langid/train/train.py
bpopeters/langid.py
9c6187f21bfd7f150bdd6d36a121353bd77ea990
[ "BSD-2-Clause-FreeBSD" ]
1,774
2015-01-03T00:15:46.000Z
2022-03-31T14:52:13.000Z
langid/train/train.py
bpopeters/langid.py
9c6187f21bfd7f150bdd6d36a121353bd77ea990
[ "BSD-2-Clause-FreeBSD" ]
57
2015-01-13T09:14:40.000Z
2021-09-14T13:14:31.000Z
langid/train/train.py
bpopeters/langid.py
9c6187f21bfd7f150bdd6d36a121353bd77ea990
[ "BSD-2-Clause-FreeBSD" ]
292
2015-01-20T00:52:29.000Z
2022-03-31T14:52:16.000Z
#!/usr/bin/env python """ train.py - All-in-one tool for easy training of a model for langid.py. This depends on the training tools for individual steps, which can be run separately. Marco Lui, January 2013 Copyright 2013 Marco Lui <saffsd@gmail.com>. All rights reserved. Redistribution and use in source and binary...
45.148148
163
0.717503
74895f08d0f09a4aaae73b868dadc4525dc1c750
5,156
py
Python
python/paddle/fluid/dygraph/dygraph_to_static/error.py
randytli/Paddle
75dadd586996c71cf5b088b6141b94705561773f
[ "Apache-2.0" ]
1
2020-05-27T05:21:42.000Z
2020-05-27T05:21:42.000Z
python/paddle/fluid/dygraph/dygraph_to_static/error.py
randytli/Paddle
75dadd586996c71cf5b088b6141b94705561773f
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/dygraph/dygraph_to_static/error.py
randytli/Paddle
75dadd586996c71cf5b088b6141b94705561773f
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 PaddlePaddle Authors. 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 required by appli...
38.477612
126
0.687355
74897657e8861baada17acd5c09c0972f398bf04
13,688
py
Python
old/commonroad-telluride2020/vehicleDynamics_MB.py
neuromorphs/l2race
ad5271afdd9d81375e45402bbef4a077d4bd45ac
[ "MIT" ]
12
2020-07-21T07:56:48.000Z
2022-03-17T09:24:58.000Z
old/commonroad-telluride2020/vehicleDynamics_MB.py
neuromorphs/l2race
ad5271afdd9d81375e45402bbef4a077d4bd45ac
[ "MIT" ]
1
2020-09-04T21:56:27.000Z
2020-09-06T06:00:36.000Z
old/commonroad-telluride2020/vehicleDynamics_MB.py
neuromorphs/l2race
ad5271afdd9d81375e45402bbef4a077d4bd45ac
[ "MIT" ]
5
2020-08-10T16:00:35.000Z
2022-02-25T15:25:43.000Z
import logging from src.l2race_settings import KS_TO_ST_SPEED_M_PER_SEC from .steeringConstraints import steeringConstraints from .accelerationConstraints import accelerationConstraints from .vehicleDynamics_KS import vehicleDynamics_KS from . import vehicleParameters from . import tireModel import math from typing im...
39.790698
197
0.588326
7489d3b7a80800cf62685e967d628ceb6b938e22
21,484
py
Python
PyFunceble/cli/production.py
NeolithEra/PyFunceble
58db861d36224f279a460f4959aaa2e140ce749f
[ "MIT" ]
null
null
null
PyFunceble/cli/production.py
NeolithEra/PyFunceble
58db861d36224f279a460f4959aaa2e140ce749f
[ "MIT" ]
null
null
null
PyFunceble/cli/production.py
NeolithEra/PyFunceble
58db861d36224f279a460f4959aaa2e140ce749f
[ "MIT" ]
null
null
null
""" The tool to check the availability or syntax of domains, IPv4, IPv6 or URL. :: ██████╗ ██╗ ██╗███████╗██╗ ██╗███╗ ██╗ ██████╗███████╗██████╗ ██╗ ███████╗ ██╔══██╗╚██╗ ██╔╝██╔════╝██║ ██║████╗ ██║██╔════╝██╔════╝██╔══██╗██║ ██╔════╝ ██████╔╝ ╚████╔╝ █████╗ ██║ ██║██╔██╗ ██║██║ ...
36.475382
149
0.559812
7489db4edd6c598a7ac3729b5f90ceaa2d11a838
5,701
py
Python
fake_data_creator.py
sherifelmotayam/Honeypot
859c8d046279ab8dd9231d7ef89fa9ce82f5f0fa
[ "MIT" ]
null
null
null
fake_data_creator.py
sherifelmotayam/Honeypot
859c8d046279ab8dd9231d7ef89fa9ce82f5f0fa
[ "MIT" ]
null
null
null
fake_data_creator.py
sherifelmotayam/Honeypot
859c8d046279ab8dd9231d7ef89fa9ce82f5f0fa
[ "MIT" ]
1
2022-01-03T21:20:54.000Z
2022-01-03T21:20:54.000Z
from aifc import Error import pandas as pd # import uuid from faker import Faker import datetime from datetime import date import random # import mysql.connector from dbsetup import create_connection faker = Faker() def name_gen(gender): """ Quickly generates a name based on gender """ if gender == 'm...
25.450893
158
0.60656
7489eab33411d55ba90c98a8605481076e7876e8
7,018
py
Python
alipay/aop/api/domain/CateringStoreInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/CateringStoreInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/CateringStoreInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.BusinessHoursInfo import BusinessHoursInfo from alipay.aop.api.domain.CateringStoreDeliveryInfo import CateringStoreDeliveryInfo from alipay.aop.api.domain.StoreAddressInfo import S...
35.09
87
0.617697
7489f63d80d108c40687e0abd465cbb5aa579bbf
5,154
py
Python
cpfinder/methods/online_changepoint_detection.py
iboraham/changepoint_detector
275e378e9deb08a08954c3d73cb4ef8bb72464c2
[ "MIT" ]
2
2021-11-02T10:49:02.000Z
2022-02-17T11:38:15.000Z
cpfinder/methods/online_changepoint_detection.py
iboraham/changepoint_detector
275e378e9deb08a08954c3d73cb4ef8bb72464c2
[ "MIT" ]
38
2021-08-03T17:28:55.000Z
2021-08-21T14:52:01.000Z
cpfinder/methods/online_changepoint_detection.py
iboraham/online_changepoint_detector
275e378e9deb08a08954c3d73cb4ef8bb72464c2
[ "MIT" ]
null
null
null
from matplotlib.animation import FuncAnimation import matplotlib.pyplot as plt import numpy as np from scipy.stats import norm from scipy.special import logsumexp from tqdm import tqdm from cpfinder.vis import plot_matplotlib_animation # ----------------------------------------------------------------------------- ...
31.426829
119
0.607683
748a26001b8ad288b9e09878351f32831694463d
560
py
Python
newfolderdialogimpl.py
BlueQuartzSoftware/EasyBake
3f218013938d8b979d1371871a70a4901987abd6
[ "BSD-3-Clause" ]
null
null
null
newfolderdialogimpl.py
BlueQuartzSoftware/EasyBake
3f218013938d8b979d1371871a70a4901987abd6
[ "BSD-3-Clause" ]
27
2021-04-06T18:17:18.000Z
2021-06-23T14:03:56.000Z
newfolderdialogimpl.py
joeykleingers/EasyBake
3f218013938d8b979d1371871a70a4901987abd6
[ "BSD-3-Clause" ]
1
2021-06-22T18:10:44.000Z
2021-06-22T18:10:44.000Z
from PySide2.QtWidgets import QDialog, QMessageBox, QApplication, QStyle from PySide2.QtCore import Signal, QStringListModel from newfolderdialog import Ui_NewFolderDialog class NewFolderDialogImpl(QDialog): nameSubmitted = Signal(str) def __init__(self, parent=None): super(NewFolderDialogImpl, self)._...
37.333333
72
0.757143
748a4ea815e217052058253037cd0caf9139aad0
4,531
py
Python
kubric/post_processing.py
Xtuden-com/kubric
e31bf6a32eada4465fe5a03af88e99e626f53522
[ "Apache-2.0" ]
null
null
null
kubric/post_processing.py
Xtuden-com/kubric
e31bf6a32eada4465fe5a03af88e99e626f53522
[ "Apache-2.0" ]
null
null
null
kubric/post_processing.py
Xtuden-com/kubric
e31bf6a32eada4465fe5a03af88e99e626f53522
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The Kubric 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
47.197917
101
0.70117
748a5c0ff778c050d4f95041eab2ea31b285a8c7
58,061
py
Python
aiolifx/aiolifx.py
frawau/aiolifx
7ba0a3775e273ac878f286e9685939f8fa19da70
[ "MIT" ]
11
2017-03-22T12:38:47.000Z
2021-02-15T17:30:46.000Z
aiolifx/aiolifx.py
frawau/aiolifx
7ba0a3775e273ac878f286e9685939f8fa19da70
[ "MIT" ]
31
2017-03-10T03:29:48.000Z
2022-03-06T12:36:09.000Z
aiolifx/aiolifx.py
frawau/aiolifx
7ba0a3775e273ac878f286e9685939f8fa19da70
[ "MIT" ]
11
2017-03-10T00:32:06.000Z
2022-02-19T20:40:02.000Z
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # # This application is simply a bridge application for Lifx bulbs. # # Copyright (c) 2016 François Wautier # # 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 ...
39.849691
121
0.608171
748a5db56287860bb230ec14da406c1c0baa51c2
2,116
py
Python
example/exampleapp/models.py
netzkolchose/django-fast-update
13bfd99b3ac90d3fc04fde1c3350f84dae7a4be4
[ "MIT" ]
null
null
null
example/exampleapp/models.py
netzkolchose/django-fast-update
13bfd99b3ac90d3fc04fde1c3350f84dae7a4be4
[ "MIT" ]
null
null
null
example/exampleapp/models.py
netzkolchose/django-fast-update
13bfd99b3ac90d3fc04fde1c3350f84dae7a4be4
[ "MIT" ]
null
null
null
from django.db import models from fast_update.query import FastUpdateManager class Foo(models.Model): objects = FastUpdateManager() f1 = models.IntegerField(default=1) f2 = models.IntegerField(default=2) f3 = models.IntegerField(default=3) f4 = models.IntegerField(default=4) f5 = models.Intege...
32.060606
79
0.730624
748a6079270f2201aa1873942c37f32d6d3f8dd7
2,616
py
Python
tests/test_datetime.py
hpcugent/jsonpickle
c5bd1614ef693b0e0c6b333587ec751174eb5a63
[ "BSD-3-Clause" ]
null
null
null
tests/test_datetime.py
hpcugent/jsonpickle
c5bd1614ef693b0e0c6b333587ec751174eb5a63
[ "BSD-3-Clause" ]
null
null
null
tests/test_datetime.py
hpcugent/jsonpickle
c5bd1614ef693b0e0c6b333587ec751174eb5a63
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2013 Jason R. Coombs <jaraco@jaraco.com> # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. import unittest import datetime import jsonpickle from jsonpickle._samples import Ob...
26.16
75
0.634939
748a7426e9dbf2a8120dd1897d5d8fa3eceee16e
18,005
py
Python
backends.py
tp-m/meson
2d1aa395e86848ca948d30d83cc5357777e5b490
[ "Apache-2.0" ]
null
null
null
backends.py
tp-m/meson
2d1aa395e86848ca948d30d83cc5357777e5b490
[ "Apache-2.0" ]
null
null
null
backends.py
tp-m/meson
2d1aa395e86848ca948d30d83cc5357777e5b490
[ "Apache-2.0" ]
null
null
null
# Copyright 2012-2014 The Meson development team # 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 agree...
44.022005
116
0.597501
748a74b5455846a89462e29d64762bc40640ba72
370
py
Python
abc/abc171/c/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
abc/abc171/c/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
abc/abc171/c/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
import sys import math from collections import defaultdict, deque sys.setrecursionlimit(10 ** 6) stdin = sys.stdin INF = float('inf') ni = lambda: int(ns()) na = lambda: list(map(int, stdin.readline().split())) ns = lambda: stdin.readline().strip() N = ni() ans = [] while N: N -= 1 ans.append(chr(ord('a') +...
18.5
53
0.613514
748a7f38c3bd3859e8d098e3df22063fb2106276
13,914
py
Python
google/appengine/api/urlfetch_stub.py
luduvigo/app-blog-code
2de41573955f8dfb5f6d964d3cae2bbee6db2f9a
[ "Apache-2.0" ]
null
null
null
google/appengine/api/urlfetch_stub.py
luduvigo/app-blog-code
2de41573955f8dfb5f6d964d3cae2bbee6db2f9a
[ "Apache-2.0" ]
null
null
null
google/appengine/api/urlfetch_stub.py
luduvigo/app-blog-code
2de41573955f8dfb5f6d964d3cae2bbee6db2f9a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2007 Google 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 o...
30.715232
80
0.666739
748a8bb71af9aa28464a4e983a9a268751e42eaa
236
py
Python
mlvajra/visualization/__init__.py
rajagurunath/mlvajra
abaa40717342cecc785144700884e1c9d5910c43
[ "Apache-2.0" ]
2
2019-04-22T12:25:05.000Z
2019-05-05T16:49:12.000Z
mlvajra/visualization/__init__.py
rajagurunath/mlvajra
abaa40717342cecc785144700884e1c9d5910c43
[ "Apache-2.0" ]
9
2019-04-06T14:27:22.000Z
2021-04-30T20:42:19.000Z
mlvajra/visualization/__init__.py
rajagurunath/mlvajra
abaa40717342cecc785144700884e1c9d5910c43
[ "Apache-2.0" ]
null
null
null
""" vis utils TODO: Add a visualization to add preprocessing feature Add a visualization to add evalution [Add interactive charts and dashboard utilities -superset] --Not programatically atleast for time being """
26.222222
108
0.724576
748a98caaf9e231389a01aed0e59e465ea6abef0
23,602
py
Python
tempest/test.py
vmahuli/tempest
f70319f5eda72b8c8a913ae1002ec531324e4116
[ "Apache-2.0" ]
null
null
null
tempest/test.py
vmahuli/tempest
f70319f5eda72b8c8a913ae1002ec531324e4116
[ "Apache-2.0" ]
null
null
null
tempest/test.py
vmahuli/tempest
f70319f5eda72b8c8a913ae1002ec531324e4116
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 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 requ...
38.006441
79
0.594822
748aefba78aa5a70681f4b1fea2041f654ef250c
630
py
Python
DjangoTraining/DjProject1/manage.py
udhayprakash/Django_Projects
5c5257944d36a552428f8b8a926110d64055fc12
[ "Apache-2.0" ]
null
null
null
DjangoTraining/DjProject1/manage.py
udhayprakash/Django_Projects
5c5257944d36a552428f8b8a926110d64055fc12
[ "Apache-2.0" ]
27
2020-06-05T23:26:44.000Z
2022-02-10T11:21:31.000Z
DjangoTraining/DjProject1/manage.py
udhayprakash/Django_Projects
5c5257944d36a552428f8b8a926110d64055fc12
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'DjProject1.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Imp...
28.636364
74
0.684127
748b33474f25ede8b95d75d2b3757f504395ef8d
492
py
Python
flask_hackernews_clone/blueprints/user/forms.py
andyguwc/flask-hackernews-clone
8b3f5a5e58f8e71e6991a248cc5287e753f43048
[ "MIT" ]
null
null
null
flask_hackernews_clone/blueprints/user/forms.py
andyguwc/flask-hackernews-clone
8b3f5a5e58f8e71e6991a248cc5287e753f43048
[ "MIT" ]
null
null
null
flask_hackernews_clone/blueprints/user/forms.py
andyguwc/flask-hackernews-clone
8b3f5a5e58f8e71e6991a248cc5287e753f43048
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """User forms.""" from flask_wtf import FlaskForm from wtforms import PasswordField, StringField, SubmitField, TextAreaField from wtforms.validators import DataRequired, Email, EqualTo, Length from .models import User class EditProfileForm(FlaskForm): first_name = StringField("First name"...
32.8
74
0.735772
748b4715203577b510bd4c897a49e79e2e331502
5,294
py
Python
src/panoptes/utils/config/cli.py
danjampro/panoptes-utils
ff51019cdd0e188cf5e8d8d70fc3579776a31716
[ "MIT" ]
3
2019-03-26T03:35:46.000Z
2021-08-16T16:59:12.000Z
src/panoptes/utils/config/cli.py
danjampro/panoptes-utils
ff51019cdd0e188cf5e8d8d70fc3579776a31716
[ "MIT" ]
254
2019-03-29T05:42:54.000Z
2022-02-18T05:03:09.000Z
src/panoptes/utils/config/cli.py
danjampro/panoptes-utils
ff51019cdd0e188cf5e8d8d70fc3579776a31716
[ "MIT" ]
9
2019-03-25T09:55:35.000Z
2021-05-18T02:45:17.000Z
import time import click from loguru import logger from panoptes.utils.config import server from panoptes.utils.config.client import get_config from panoptes.utils.config.client import server_is_running from panoptes.utils.config.client import set_config @click.group() @click.option('--verbose/--no-verbose', ...
35.77027
104
0.656215
748b4e5bbf16cb689336d26d95353fc20f6985d0
746
py
Python
config/config.py
mirceadino/music-genre-classifier
bd8d5d2b0c787dda2dcc7d41b19a53763fbdf451
[ "MIT" ]
null
null
null
config/config.py
mirceadino/music-genre-classifier
bd8d5d2b0c787dda2dcc7d41b19a53763fbdf451
[ "MIT" ]
11
2020-03-24T15:47:23.000Z
2022-03-11T23:21:34.000Z
config/config.py
mirceadino/music-genre-classifier
bd8d5d2b0c787dda2dcc7d41b19a53763fbdf451
[ "MIT" ]
null
null
null
# General NAME = "small-yt" ROOT_MODEL = "resources/model/" + NAME + "/" ROOT_DATASET = "resources/dataset/" + NAME + "/" ROOT_SONGS = "resources/raw_dataset/" + NAME + "/" # Classifier GENRES = sorted(["electro", "latino"]) # Model NUM_CLASSES = len(GENRES) SLICE_HEIGHT = 128 SLICE_WIDTH = 128 SLICE_OVERLAP = 64 PAT...
22.606061
53
0.741287
748b9ce06def9661832661cc0c3d4dffdd08d4f1
4,510
py
Python
tests/core/test_statsd.py
vincentfretin/kinto
34ff8093ab708eae55fc4eefa237fb420e808a6a
[ "Apache-2.0" ]
4,618
2015-08-06T18:17:02.000Z
2022-03-31T10:03:07.000Z
tests/core/test_statsd.py
vincentfretin/kinto
34ff8093ab708eae55fc4eefa237fb420e808a6a
[ "Apache-2.0" ]
1,578
2015-07-30T09:47:41.000Z
2022-03-31T13:12:50.000Z
tests/core/test_statsd.py
vincentfretin/kinto
34ff8093ab708eae55fc4eefa237fb420e808a6a
[ "Apache-2.0" ]
546
2015-07-30T10:31:35.000Z
2022-03-31T12:44:32.000Z
from unittest import mock from pyramid import testing from pyramid.exceptions import ConfigurationError from kinto.core import statsd from kinto.core.testing import skip_if_no_statsd, unittest from .support import BaseWebTest class TestedClass: attribute = 3.14 def test_method(self): pass def...
37.272727
94
0.705765
748bacb757eaaa1a2b3b19c77024ee6d694ec290
46,150
py
Python
test/unit/testvars.py
ebini/curator
eaf312aa729538940c9415ad1a16718889e7f1f3
[ "Apache-2.0" ]
2,449
2015-03-11T05:04:13.000Z
2022-03-30T11:24:31.000Z
test/unit/testvars.py
ebini/curator
eaf312aa729538940c9415ad1a16718889e7f1f3
[ "Apache-2.0" ]
960
2015-03-10T20:58:11.000Z
2022-03-24T15:26:40.000Z
test/unit/testvars.py
ebini/curator
eaf312aa729538940c9415ad1a16718889e7f1f3
[ "Apache-2.0" ]
702
2015-03-11T09:35:39.000Z
2022-03-28T06:22:59.000Z
import elasticsearch fake_fail = Exception('Simulated Failure') four_oh_one = elasticsearch.TransportError(401, "simulated error") four_oh_four = elasticsearch.TransportError(404, "simulated error") get_alias_fail = elasticsearch.NotFoundError(404, "simulated error") named_index = 'index_name' named_indic...
53.850642
11,002
0.561733
748bd1ca82a809e42c89fa1df3bd19998bf56459
386
py
Python
DataSets/process.py
SlackEight/DNN-CPP
4cc8fbdc4c402ffa0ed71d19340b2150765de056
[ "CC0-1.0" ]
null
null
null
DataSets/process.py
SlackEight/DNN-CPP
4cc8fbdc4c402ffa0ed71d19340b2150765de056
[ "CC0-1.0" ]
null
null
null
DataSets/process.py
SlackEight/DNN-CPP
4cc8fbdc4c402ffa0ed71d19340b2150765de056
[ "CC0-1.0" ]
null
null
null
f = open("DataSets/N225.csv") # change the file to only contain the 4th column series = [] lines = f.readlines()[1::] for x in range(len(lines)): v = lines[x].split(",")[4] if v == "null": series.append(series[-1]) else: series.append(float(v)) # write series to file with open("N225P.csv",...
24.125
48
0.580311
748be719bdb0d6650dfef93370d19a3d31a62767
1,913
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/virtual_machine_scale_set_sku_capacity_py3.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/v2019_03_01/models/virtual_machine_scale_set_sku_capacity_py3.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/v2019_03_01/models/virtual_machine_scale_set_sku_capacity_py3.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 ...
36.09434
89
0.6184
748beb0fcf8c274031c22cc496aa1f1c5b05f765
2,373
py
Python
solutions/rank-1/scripts/05_blend_predictions.py
mattmotoki/ashrae-great-energy-predictor-3-solution-analysis
8a5260049d4537c57c37a78e77f2fba13c55177d
[ "MIT" ]
null
null
null
solutions/rank-1/scripts/05_blend_predictions.py
mattmotoki/ashrae-great-energy-predictor-3-solution-analysis
8a5260049d4537c57c37a78e77f2fba13c55177d
[ "MIT" ]
null
null
null
solutions/rank-1/scripts/05_blend_predictions.py
mattmotoki/ashrae-great-energy-predictor-3-solution-analysis
8a5260049d4537c57c37a78e77f2fba13c55177d
[ "MIT" ]
null
null
null
import os import glob import numpy as np import pandas as pd from functools import partial from sklearn.metrics import mean_squared_error from ashrae.blenders import load_preds, GeneralizedMeanBlender from ashrae.utils import OUTPUT_PATH, load_data, rmsle, timer if __name__ == "__main__": """ python scripts...
37.078125
108
0.623262
748c05524e3b2a0b2038b7733e9f19803461e142
4,014
py
Python
skdatasets/repositories/ucr.py
daviddiazvico/scikit-datasets
53fde6cb40aff051ca3042e4e3e45c621be95ed9
[ "MIT" ]
13
2017-11-24T13:24:16.000Z
2022-03-14T11:29:56.000Z
skdatasets/repositories/ucr.py
daviddiazvico/scikit-datasets
53fde6cb40aff051ca3042e4e3e45c621be95ed9
[ "MIT" ]
20
2018-09-03T17:12:58.000Z
2022-03-17T09:49:54.000Z
skdatasets/repositories/ucr.py
daviddiazvico/scikit-datasets
53fde6cb40aff051ca3042e4e3e45c621be95ed9
[ "MIT" ]
3
2018-08-08T13:51:40.000Z
2020-06-19T06:44:33.000Z
""" Datasets from the UCR time series database. @author: Carlos Ramos Carreño @license: MIT """ import numpy as np from sklearn.utils import Bunch import scipy.io.arff from .base import fetch_zip as _fetch_zip BASE_URL = 'http://www.timeseriesclassification.com/Downloads/' def _target_conversion(target): try...
30.641221
79
0.653712
748c098bf389afec889dbe4474e4b4007c33eea7
473
py
Python
__init__.py
airflow-plugins/aptrinsic_plugin
73e10274eb29ff1e3faea3a231509bfa382ec6f7
[ "Apache-2.0" ]
null
null
null
__init__.py
airflow-plugins/aptrinsic_plugin
73e10274eb29ff1e3faea3a231509bfa382ec6f7
[ "Apache-2.0" ]
null
null
null
__init__.py
airflow-plugins/aptrinsic_plugin
73e10274eb29ff1e3faea3a231509bfa382ec6f7
[ "Apache-2.0" ]
1
2021-03-24T11:23:30.000Z
2021-03-24T11:23:30.000Z
from airflow.plugins_manager import AirflowPlugin from aptrinsic_plugin.hooks.aptrinsic_hook import AptrinsicHook from aptrinsic_plugin.operators.aptrinsic_to_s3_operator import AptrinsicToS3Operator class aptrinsic_plugin(AirflowPlugin): name = "aptrinsic_plugin" operators = [AptrinsicToS3Operator] # Lea...
29.5625
85
0.758985
748c1453941fb5083032d73ad1035eb4d7002282
311
py
Python
ML/cutimage/setup.py
Ythosa/hokiyomi
42412b5302bbdcdaddda44cb06e5108beefa96ab
[ "MIT" ]
9
2020-06-06T18:36:42.000Z
2020-06-10T09:54:26.000Z
ML/cutimage/setup.py
Ythosa/hokiyomi
42412b5302bbdcdaddda44cb06e5108beefa96ab
[ "MIT" ]
null
null
null
ML/cutimage/setup.py
Ythosa/hokiyomi
42412b5302bbdcdaddda44cb06e5108beefa96ab
[ "MIT" ]
1
2020-06-09T18:55:03.000Z
2020-06-09T18:55:03.000Z
from setuptools import setup setup( name="cutimage", version='0.1', install_requires=[ 'Click', 'torchvision', 'torch', 'numpy', 'opencv-python', 'matplotlib' ], entry_points=''' [console_scripts] cutimage=main:cli ''', )
16.368421
28
0.504823
748c42bda987fd9ff9a508583ceab25fb5e9ba51
31
py
Python
btd6_memory_info/generated/System/Diagnostics/Tracing/ClassPropertyWriter/class_property_writer.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/System/Diagnostics/Tracing/ClassPropertyWriter/class_property_writer.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/System/Diagnostics/Tracing/ClassPropertyWriter/class_property_writer.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class ClassPropertyWriter: pass
31
31
0.903226
748c5321dc3abd5288e5c327e23703b3cd14dccb
44,313
py
Python
lib/mods.py
jermnelson/FRBR-Redis-Datastore
d44af821536b82f5fafa5bed7a51fa86e9a92243
[ "Apache-2.0" ]
1
2015-09-24T01:12:02.000Z
2015-09-24T01:12:02.000Z
lib/mods.py
jermnelson/FRBR-Redis-Datastore
d44af821536b82f5fafa5bed7a51fa86e9a92243
[ "Apache-2.0" ]
1
2021-12-13T19:39:44.000Z
2021-12-13T19:39:44.000Z
lib/mods.py
jermnelson/FRBR-Redis-Datastore
d44af821536b82f5fafa5bed7a51fa86e9a92243
[ "Apache-2.0" ]
null
null
null
""" :mod:`mods` -- MODS Redis set-up and support """ __author__ = 'Jeremy Nelson' import datetime,os,logging from redisco import models,connection_setup import redis,urllib2,common from lxml import etree import namespaces as ns def set_attributes(xml_element, redis_mods): """ Helper func...
32.655122
105
0.638752
748c715e0cc8130f0eae4459810c92cad32b5aab
1,024
py
Python
tests/test_peer.py
bohblue2/callosum
adb8f6aa2d44cd3c4448f6899027a2964eca380a
[ "MIT" ]
19
2018-08-17T15:58:43.000Z
2022-03-31T07:12:43.000Z
tests/test_peer.py
bohblue2/callosum
adb8f6aa2d44cd3c4448f6899027a2964eca380a
[ "MIT" ]
9
2018-11-15T15:44:11.000Z
2019-12-06T15:32:57.000Z
tests/test_peer.py
bohblue2/callosum
adb8f6aa2d44cd3c4448f6899027a2964eca380a
[ "MIT" ]
2
2018-05-16T06:02:39.000Z
2020-07-24T06:30:58.000Z
import json from callosum.rpc import Peer from callosum.lower.zeromq import ZeroMQAddress, ZeroMQRPCTransport import pytest @pytest.mark.asyncio async def test_init(): p = Peer(connect=ZeroMQAddress('tcp://127.0.0.1:5000'), serializer=json.dumps, deserializer=json.loads, t...
27.675676
67
0.677734
748c8b6ded93161ab2d7f0fc59826411ddf6fdb9
11,190
py
Python
mobiletrans/mtimport/importer.py
JoeJasinski/WindyTransit
b883c7eebe618923ecc7b1914a696543d8864215
[ "MIT" ]
1
2015-04-28T14:48:27.000Z
2015-04-28T14:48:27.000Z
mobiletrans/mtimport/importer.py
JoeJasinski/WindyTransit
b883c7eebe618923ecc7b1914a696543d8864215
[ "MIT" ]
null
null
null
mobiletrans/mtimport/importer.py
JoeJasinski/WindyTransit
b883c7eebe618923ecc7b1914a696543d8864215
[ "MIT" ]
null
null
null
import json, csv, logging, traceback from django.contrib.gis import gdal from xml.dom import minidom from mobiletrans.mtimport import models from mobiletrans.mtimport.exceptions import * import logging logger = logging.getLogger(__name__) class ImportBase(object): def __init__(self, input_record, input_data)...
38.061224
122
0.59857
748cc6bc2fd6cf26197f67ba90a0132e3ee7f499
23,231
py
Python
pgsqltoolsservice/query_execution/query_execution_service.py
rich617/pgtoolsservice
24d81677eaf6f7cdb6c2caaddf1f55a90ce6006c
[ "MIT" ]
null
null
null
pgsqltoolsservice/query_execution/query_execution_service.py
rich617/pgtoolsservice
24d81677eaf6f7cdb6c2caaddf1f55a90ce6006c
[ "MIT" ]
null
null
null
pgsqltoolsservice/query_execution/query_execution_service.py
rich617/pgtoolsservice
24d81677eaf6f7cdb6c2caaddf1f55a90ce6006c
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
53.28211
157
0.72343
748cc81fc635df0049fa6a3d60b0af66b63f06b7
7,587
py
Python
papers/none2021_predicting_transition_using_reservoir_computing/extensions.py
anton-pershin/restools
eb141f0989617db796d106de1b0824161ccaa0aa
[ "MIT" ]
null
null
null
papers/none2021_predicting_transition_using_reservoir_computing/extensions.py
anton-pershin/restools
eb141f0989617db796d106de1b0824161ccaa0aa
[ "MIT" ]
null
null
null
papers/none2021_predicting_transition_using_reservoir_computing/extensions.py
anton-pershin/restools
eb141f0989617db796d106de1b0824161ccaa0aa
[ "MIT" ]
null
null
null
import math import time import numpy as np from restools.standardised_programs import StandardisedIntegrator, StandardisedProgramEdge from comsdk.research import CreateTaskGraph from comsdk.graph import Graph, State, Func from comsdk.edge import Edge, dummy_predicate, InOutMapping, DownloadFromRemoteEdge, \ Uploa...
46.262195
121
0.650587
748d3c6fb891c98ad60164108add53b3e128e86a
1,010
py
Python
Leetcode/easy/isomorphic-strings.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
6
2021-07-29T03:26:20.000Z
2022-01-28T15:11:45.000Z
Leetcode/easy/isomorphic-strings.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
2
2021-09-30T09:47:23.000Z
2022-01-31T03:08:24.000Z
Leetcode/easy/isomorphic-strings.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
5
2021-08-10T06:41:11.000Z
2022-01-29T17:50:20.000Z
""" # ISOMORPHIC STRINGS Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All occurrences of a character must be replaced with another character while preserving the order of characters. No two characters may map to the same cha...
24.047619
195
0.568317
748d4b4a734ecdbb8b4082128123fa2889aa607b
1,616
py
Python
wmtexe/cmi/git.py
csdms/wmt-exe
d1e21537135a2d2c442ae6244427b076803d1254
[ "MIT" ]
null
null
null
wmtexe/cmi/git.py
csdms/wmt-exe
d1e21537135a2d2c442ae6244427b076803d1254
[ "MIT" ]
10
2016-02-04T17:55:34.000Z
2019-03-19T21:10:39.000Z
wmtexe/cmi/git.py
csdms/wmt-exe
d1e21537135a2d2c442ae6244427b076803d1254
[ "MIT" ]
1
2015-07-29T22:22:46.000Z
2015-07-29T22:22:46.000Z
#! /usr/bin/env python import os from .utils import which, check_output, system, cd, status def git_repo_name(url): (base, _) = os.path.splitext(os.path.basename(url)) return base def git_repo_sha(url, git=None, branch='master'): git = git or which('git') lines = check_output([git, 'ls-remote', ur...
30.490566
90
0.572401
748d4ea4cabb8f9cfbb8de597846080df50f867a
5,413
py
Python
docs/source/conf.py
Privex/python-exchange
858d5d2499bba0169fd58763aa3214b3d4e8dc80
[ "X11" ]
null
null
null
docs/source/conf.py
Privex/python-exchange
858d5d2499bba0169fd58763aa3214b3d4e8dc80
[ "X11" ]
5
2020-08-15T17:40:52.000Z
2021-09-22T19:05:52.000Z
docs/source/conf.py
Privex/python-exchange
858d5d2499bba0169fd58763aa3214b3d4e8dc80
[ "X11" ]
1
2021-02-28T18:02:04.000Z
2021-02-28T18:02:04.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup -------------------------------------------------------------- # If extensions (or module...
29.102151
86
0.649917
748d5eb01c683f3e71c2ff97f3993de7a214127b
1,292
py
Python
tf2onnx/tflite/WhereOptions.py
LoicDagnas/tensorflow-onnx
6691850e79047d05d85017573170fd8240393b57
[ "Apache-2.0" ]
1,473
2018-03-16T02:47:33.000Z
2022-03-31T03:43:52.000Z
tf2onnx/tflite/WhereOptions.py
LoicDagnas/tensorflow-onnx
6691850e79047d05d85017573170fd8240393b57
[ "Apache-2.0" ]
1,208
2018-03-14T09:58:49.000Z
2022-03-31T17:56:20.000Z
tf2onnx/tflite/WhereOptions.py
LoicDagnas/tensorflow-onnx
6691850e79047d05d85017573170fd8240393b57
[ "Apache-2.0" ]
350
2018-04-03T03:48:40.000Z
2022-03-30T11:23:55.000Z
# SPDX-License-Identifier: Apache-2.0 # automatically generated by the FlatBuffers compiler, do not modify # namespace: tflite import flatbuffers from flatbuffers.compat import import_numpy np = import_numpy() class WhereOptions(object): __slots__ = ['_tab'] @classmethod def GetRootAs(cls, buf, offset=...
32.3
114
0.70743
748d5ff6abb197cbdde2b04e04cc91de3e088441
903
py
Python
app/enquiries/admin.py
uktrade/enquiry-mgmt-tool
547a195cb9296ad0b1dbc5c8435bfeeae9755bb4
[ "MIT" ]
3
2020-04-03T12:16:56.000Z
2020-12-09T18:18:49.000Z
app/enquiries/admin.py
uktrade/enquiry-mgmt-tool
547a195cb9296ad0b1dbc5c8435bfeeae9755bb4
[ "MIT" ]
173
2020-03-18T09:31:50.000Z
2022-03-26T04:19:41.000Z
app/enquiries/admin.py
uktrade/enquiry-mgmt-tool
547a195cb9296ad0b1dbc5c8435bfeeae9755bb4
[ "MIT" ]
null
null
null
from django.contrib import admin from app.enquiries.models import Enquiry, Enquirer, Owner def all_fields_of(model, exclude=()): return [field.name for field in model._meta.fields if field.name not in exclude] @admin.register(Enquirer) class EnquirerAdmin(admin.ModelAdmin): list_display = all_f...
26.558824
78
0.700997
748d632f0d2173c606d32e294447577c418103b4
6,737
py
Python
st2common/st2common/content/policies.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
1
2020-11-21T10:11:25.000Z
2020-11-21T10:11:25.000Z
st2common/st2common/content/policies.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
1
2015-06-08T15:27:11.000Z
2015-06-08T15:27:11.000Z
st2common/st2common/content/policies.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
13
2017-01-12T11:07:20.000Z
2019-04-19T09:55:49.000Z
# 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...
34.906736
94
0.644946
748d7cd011f32fdebd781176b560b9b7498f327e
67,432
py
Python
tensorflow/contrib/cudnn_rnn/python/ops/cudnn_rnn_ops.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/contrib/cudnn_rnn/python/ops/cudnn_rnn_ops.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/cudnn_rnn/python/ops/cudnn_rnn_ops.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
26
2017-04-12T16:25:44.000Z
2018-10-30T10:10:15.000Z
# Copyright 2016 The TensorFlow Authors. 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 required by applica...
40.892662
113
0.664506
748db3a66ad087a873bbf223aea3c9df2ebe9c1b
106
py
Python
export/__init__.py
Symbian9/BoardCAM
03d154c881ab03c80c28715d84810f80361912b1
[ "MIT" ]
null
null
null
export/__init__.py
Symbian9/BoardCAM
03d154c881ab03c80c28715d84810f80361912b1
[ "MIT" ]
null
null
null
export/__init__.py
Symbian9/BoardCAM
03d154c881ab03c80c28715d84810f80361912b1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Author: Zheng <me@BoardCAM.org> # Date: 2019/7/5 # Desc:
17.666667
33
0.603774
748de58727f8e6feb6bb8bda20940732b1a86a1e
2,836
py
Python
tests/retrieval_metrics/test_bndcg.py
phillips96/similarity
3794f288f17f47f1f90b5368e5c0eeac1e81e10d
[ "Apache-2.0" ]
706
2021-09-04T02:11:05.000Z
2022-03-31T13:29:14.000Z
tests/retrieval_metrics/test_bndcg.py
phillips96/similarity
3794f288f17f47f1f90b5368e5c0eeac1e81e10d
[ "Apache-2.0" ]
119
2021-09-01T22:32:40.000Z
2022-03-30T22:39:27.000Z
tests/retrieval_metrics/test_bndcg.py
phillips96/similarity
3794f288f17f47f1f90b5368e5c0eeac1e81e10d
[ "Apache-2.0" ]
57
2021-09-04T02:11:14.000Z
2022-03-31T13:29:15.000Z
import math import re import numpy as np import pytest import tensorflow as tf from tensorflow_similarity.retrieval_metrics import BNDCG @pytest.fixture def test_data(): return { "query_labels": tf.constant([1, 1, 1, 0]), "lookup_distances": tf.constant( [ [0.0, 0.1, ...
24.033898
76
0.565233
748df28c719c0204f0ea7369478504f2b402244d
67,886
py
Python
libapparmor/utils/test/test-file.py
pyronia-sys/libpyronia
02ccf1d832754f771d1f9a60e5e91819ec878757
[ "Apache-2.0" ]
null
null
null
libapparmor/utils/test/test-file.py
pyronia-sys/libpyronia
02ccf1d832754f771d1f9a60e5e91819ec878757
[ "Apache-2.0" ]
2
2020-02-05T01:26:55.000Z
2020-02-05T01:31:32.000Z
libapparmor/utils/test/test-file.py
pyronia-sys/libpyronia
02ccf1d832754f771d1f9a60e5e91819ec878757
[ "Apache-2.0" ]
1
2021-12-05T19:53:32.000Z
2021-12-05T19:53:32.000Z
#!/usr/bin/python3 # ---------------------------------------------------------------------- # Copyright (C) 2015 Christian Boltz <apparmor@cboltz.de> # # This program is free software; you can redistribute it and/or # modify it under the terms of version 2 of the GNU General Public # License as published by...
61.435294
281
0.416949
748e34fb0aa4ec9a43fbe6a9a0f8f44915f31253
1,244
py
Python
api/utils.py
stPhoenix/project_osirius
35718b2ddb2f6de86011199ad93238faa67f8957
[ "MIT" ]
1
2020-07-27T02:31:52.000Z
2020-07-27T02:31:52.000Z
api/utils.py
stPhoenix/project_osirius
35718b2ddb2f6de86011199ad93238faa67f8957
[ "MIT" ]
18
2020-02-11T21:21:56.000Z
2022-02-26T03:41:40.000Z
api/utils.py
stPhoenix/project_osirius
35718b2ddb2f6de86011199ad93238faa67f8957
[ "MIT" ]
null
null
null
from linguist.core import LinguistHQ from linguist.models import GlobalWord from googletrans.models import Translated class LinguistInitializer: def initial(self, request, *args, **kwargs): super(LinguistInitializer, self).initial(request, *args, **kwargs) student = request.user self.lingu...
36.588235
157
0.699357
748e5d78ba7ab2398ad5752a9083bb0f85f027a8
62,791
py
Python
tensorflow/python/debug/lib/debug_data.py
dongjiewhu/tensorflow
fac9b8830e967bb5dd9adc61f86a9b354c31744d
[ "Apache-2.0" ]
1
2017-06-28T10:56:40.000Z
2017-06-28T10:56:40.000Z
tensorflow/python/debug/lib/debug_data.py
LaiPeter/tensorflow
08ed32dbb9e8f67eec9efce3807b5bdb3933eb2f
[ "Apache-2.0" ]
null
null
null
tensorflow/python/debug/lib/debug_data.py
LaiPeter/tensorflow
08ed32dbb9e8f67eec9efce3807b5bdb3933eb2f
[ "Apache-2.0" ]
2
2017-07-16T13:54:08.000Z
2018-05-21T09:02:34.000Z
# Copyright 2016 The TensorFlow Authors. 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 required by applica...
35.256036
80
0.680336
748e6453b018716e298a879b07b99cdfd307a739
1,481
py
Python
test_service.py
AndySchuetz/homemade_pi
fc828ce747cb90d01687cf0dc702aac4b29f5b46
[ "MIT" ]
null
null
null
test_service.py
AndySchuetz/homemade_pi
fc828ce747cb90d01687cf0dc702aac4b29f5b46
[ "MIT" ]
null
null
null
test_service.py
AndySchuetz/homemade_pi
fc828ce747cb90d01687cf0dc702aac4b29f5b46
[ "MIT" ]
null
null
null
# # Unit tests for web_service.py, using nose framework # # tests are designed to use ~/testing/ as a safe place to create, manip, and delete files # # import web_service import random import time UPLOAD_FOLDER = '/Users/andy/Documents/Software/imageProcessing/testing/' MAX_IMAGES_KEPT = 5 class TestWebService: ...
27.943396
107
0.675219
748e67af9b886551f344e2501f9c4a452615458a
9,316
py
Python
src/visgraph.py
george1459/ICSE2022_158
f8bb797fc003f11485d3552f81cc7b8ba8a22b9b
[ "BSD-2-Clause" ]
1
2022-03-07T03:38:09.000Z
2022-03-07T03:38:09.000Z
src/visgraph.py
george1459/ICSE2022_158
f8bb797fc003f11485d3552f81cc7b8ba8a22b9b
[ "BSD-2-Clause" ]
null
null
null
src/visgraph.py
george1459/ICSE2022_158
f8bb797fc003f11485d3552f81cc7b8ba8a22b9b
[ "BSD-2-Clause" ]
1
2022-01-12T05:30:40.000Z
2022-01-12T05:30:40.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Format-agnostic representation of the output graph.""" import colorsys import logging import re class Colorizer: """Output graph color manager. We set node color by filename. HSL: hue = top-level namespace, lightness = nesting level, saturation constant...
36.968254
115
0.553564
748ec5867e801e224871808d4e972df5bfb550f1
597
py
Python
photometry/photometry/__init__.py
aditya-sengupta/tesscomp-prototyping
93da86cd139c240ba5f59f187bcbc47e899c3519
[ "MIT" ]
null
null
null
photometry/photometry/__init__.py
aditya-sengupta/tesscomp-prototyping
93da86cd139c240ba5f59f187bcbc47e899c3519
[ "MIT" ]
null
null
null
photometry/photometry/__init__.py
aditya-sengupta/tesscomp-prototyping
93da86cd139c240ba5f59f187bcbc47e899c3519
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # flake8: noqa from .BasePhotometry import BasePhotometry, STATUS from .AperturePhotometry import AperturePhotometry from .psf_photometry import PSFPhotometry from .linpsf_photometry import LinPSFPhotometry from .halo import HaloPhotometry from .tessphot import tessphot fr...
35.117647
79
0.840871
748ec894127315a876af9cc8d9f079db3a2b5eb5
5,120
py
Python
rlkit/torch/disentanglement/trainer.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
rlkit/torch/disentanglement/trainer.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
rlkit/torch/disentanglement/trainer.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
from collections import OrderedDict from typing import Tuple import numpy as np import torch import rlkit.torch.pytorch_util as ptu from rlkit.core.logging import add_prefix from rlkit.core.loss import LossStatistics from rlkit.misc.eval_util import create_stats_ordered_dict from rlkit.torch.sac.sac import SACTrainer...
36.571429
91
0.600977
748ed15084315f6b281501f4e51dce32368c7200
11,227
py
Python
dataset/database.py
dshepelev15/dataset
8f78466fcbdbed736af9c37c0fa6d5705efba64a
[ "MIT" ]
null
null
null
dataset/database.py
dshepelev15/dataset
8f78466fcbdbed736af9c37c0fa6d5705efba64a
[ "MIT" ]
null
null
null
dataset/database.py
dshepelev15/dataset
8f78466fcbdbed736af9c37c0fa6d5705efba64a
[ "MIT" ]
null
null
null
import logging import threading from urllib.parse import parse_qs, urlparse from sqlalchemy import create_engine from sqlalchemy.sql import text from sqlalchemy.schema import MetaData from sqlalchemy.util import safe_reraise from sqlalchemy.engine.reflection import Inspector from sqlalchemy import event from alembic....
35.754777
109
0.602654
748ee66bca6d985d15a04a0e01ce9e90ef9f47c7
491
py
Python
exe1004.py
juniorpedroso/Curso-Intensivo-de-Python
4357e313660e77f5e43bb516c1b19fd979de5070
[ "MIT" ]
null
null
null
exe1004.py
juniorpedroso/Curso-Intensivo-de-Python
4357e313660e77f5e43bb516c1b19fd979de5070
[ "MIT" ]
null
null
null
exe1004.py
juniorpedroso/Curso-Intensivo-de-Python
4357e313660e77f5e43bb516c1b19fd979de5070
[ "MIT" ]
null
null
null
file_name = 'exe1004_usuarios.txt' continua = True while continua: usuario = input('Nome do usuário: (s para sair) ') if usuario.upper() == 'S': continua = False else: print(f'Bem vindo {usuario.title()}!') with open(file_name, 'a') as file_object: file_object.write(f'{...
23.380952
54
0.631365
748eee930ed41270ce9c67a4b71a32b4ecdc3238
147
py
Python
abc/097/B.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
abc/097/B.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
abc/097/B.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
X = int(input()) ans = 1 for i in range(2, 100): for j in range(2, 11): if i ** j <= X: ans = max(ans, i ** j) print(ans)
16.333333
34
0.44898
748eff656d1edf1f70ad4c650c0314bc1aa1865b
463
py
Python
src/ggrc/settings/app_engine_demo.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc/settings/app_engine_demo.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
10
2018-07-06T00:04:23.000Z
2021-02-26T21:13:20.000Z
src/ggrc/settings/app_engine_demo.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
1
2017-11-11T22:16:56.000Z
2017-11-11T22:16:56.000Z
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> APP_ENGINE = True ENABLE_JASMINE = False LOGIN_MANAGER = 'ggrc.login.noop' FULLTEXT_INDEXER = 'ggrc.fulltext.mysql.MysqlIndexer' # Cannot access filesystem on AppEngine or when using SDK AUTOBUILD_ASSETS = F...
33.071429
78
0.803456
748f2b724a4f4da3dade54f596f19ecc59fd88e0
1,800
py
Python
datawinners/dcs_web/registration_backend.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
datawinners/dcs_web/registration_backend.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
datawinners/dcs_web/registration_backend.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
from django.core.mail import EmailMessage from django.template.loader import render_to_string from datawinners import settings from registration.models import RegistrationProfile from datawinners.accountmanagement.models import Organization from datawinners.accountmanagement.registration_backend import RegistrationBack...
46.153846
122
0.727222
748f94b755f5c85034bbb42308e5eae5d9ffecde
2,342
py
Python
ABLIRC/bin/ablib/pipeline/pipeline_modules.py
ablifedev/ABLIRC
875278b748a8e22ada2c76c3c76dbf970be4a6a4
[ "MIT" ]
1
2020-02-25T13:08:20.000Z
2020-02-25T13:08:20.000Z
ABLIRC/bin/ablib/pipeline/pipeline_modules.py
ablifedev/ABLIRC
875278b748a8e22ada2c76c3c76dbf970be4a6a4
[ "MIT" ]
1
2020-02-25T13:16:03.000Z
2020-02-25T13:16:03.000Z
ABLIRC/bin/ablib/pipeline/pipeline_modules.py
ablifedev/ABLIRC
875278b748a8e22ada2c76c3c76dbf970be4a6a4
[ "MIT" ]
null
null
null
#!/usr/bin/env python #################################################################################### ### Copyright (C) 2015-2019 by ABLIFE #################################################################################### #################################################################################### ###...
32.082192
85
0.423997
748fb30f5ba1ed7324a26b4ac0d95965ef51914e
2,695
py
Python
ucb_cs61A/lab/lab10/tests/prologue.py
tavaresdong/courses-notes
7fb89103bca679f5ef9b14cbc777152daac1402e
[ "MIT" ]
null
null
null
ucb_cs61A/lab/lab10/tests/prologue.py
tavaresdong/courses-notes
7fb89103bca679f5ef9b14cbc777152daac1402e
[ "MIT" ]
1
2017-07-31T08:15:26.000Z
2017-07-31T08:15:26.000Z
ucb_cs61A/lab/lab10/tests/prologue.py
tavaresdong/courses-notes
7fb89103bca679f5ef9b14cbc777152daac1402e
[ "MIT" ]
1
2019-10-06T16:52:31.000Z
2019-10-06T16:52:31.000Z
test = { 'name': 'Prologue', 'points': 0, 'suites': [ { 'cases': [ { 'answer': 'Turns input into tokens', 'choices': [ 'Turns input into tokens', 'Tries to beat Superman', 'Organizes tokens in a data structure', 'Makes sure that...
28.670213
70
0.41039
748fcdb8c5cdb6ee97df61df0cfae33a91236345
6,336
py
Python
tests/test_subset.py
GBillotey/Fractal-shades
99c690cb1114ab7edcbfd9836af585fed2b133e8
[ "MIT" ]
3
2021-03-06T18:32:51.000Z
2021-07-07T01:35:21.000Z
tests/test_subset.py
GBillotey/Fractal-shades
99c690cb1114ab7edcbfd9836af585fed2b133e8
[ "MIT" ]
null
null
null
tests/test_subset.py
GBillotey/Fractal-shades
99c690cb1114ab7edcbfd9836af585fed2b133e8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import unittest import shutil import numpy as np import fractalshades import fractalshades.utils as fsutils import fractalshades.colors as fscolors import fractalshades.models as fsm from fractalshades.postproc import ( Postproc_batch, Raw_pp, Attr_normal_pp, Attr_pp,...
32.829016
83
0.568497
748fe957ca3c3d11eff573b66a0b4b81299d1515
6,080
py
Python
src/minigames/timed_shoot.py
andy-hanson/monis-xtreme
5d483e93adaf4425364919344f9a092c16b79577
[ "Unlicense" ]
null
null
null
src/minigames/timed_shoot.py
andy-hanson/monis-xtreme
5d483e93adaf4425364919344f9a092c16b79577
[ "Unlicense" ]
null
null
null
src/minigames/timed_shoot.py
andy-hanson/monis-xtreme
5d483e93adaf4425364919344f9a092c16b79577
[ "Unlicense" ]
null
null
null
import math import os import pygame import random import helpers class TimedShoot: def __init__(self,manager): self.manager = manager self.shotSpeed = 20 self.shotSize = 20 self.targetSize = int(round(128 - self.manager.difficulty*64/6.0)) self.explosionGraphics = self.ExplosionGraphics() #Hint of a fut...
31.020408
135
0.683388
748ff05245aa8286566da7a34e19d7cc3c47c3d4
431
py
Python
rerun/mapper.py
dhiltonp/salt-reduce
7807449aac14de8e58e08747d63a18a8492d1e7c
[ "Apache-2.0" ]
null
null
null
rerun/mapper.py
dhiltonp/salt-reduce
7807449aac14de8e58e08747d63a18a8492d1e7c
[ "Apache-2.0" ]
null
null
null
rerun/mapper.py
dhiltonp/salt-reduce
7807449aac14de8e58e08747d63a18a8492d1e7c
[ "Apache-2.0" ]
null
null
null
__author__ = 'lane' from sys import maxint import itertools class mapper: def __init__(self, module_name=None): self.module_name = module_name def partializer(self, fun_args): # return iter(xrange(0, limit)) # return iter([ fun_args[0:]]) # return iter([ fun_args for x in xra...
21.55
58
0.649652
7490031c5eddf7d9c9a1627ad860e4486815b373
568
py
Python
tests.py
yawnoc/big-two-stats
4ad6dfda433792af997dbb0f2572dbcf575071ea
[ "MIT-0" ]
null
null
null
tests.py
yawnoc/big-two-stats
4ad6dfda433792af997dbb0f2572dbcf575071ea
[ "MIT-0" ]
null
null
null
tests.py
yawnoc/big-two-stats
4ad6dfda433792af997dbb0f2572dbcf575071ea
[ "MIT-0" ]
null
null
null
#!/usr/bin/env python3 import subprocess def big_two_call(scores_file, args_list = []): subprocess.call(['python3', 'big2.py', scores_file] + args_list) # For scores.txt big_two_call('scores') # For test/test.txt args_list_list = [ [], ['-e', '20190100'], ['-e', '20190101'], ['-e', '20190102'], ['-s', '...
22.72
66
0.588028
74900b4e6617d51b078037cd68439491d8eda9f1
63,732
py
Python
src/azul/service/manifest_service.py
DataBiosphere/azul
abcaa7c6a04f1f5b8fd74e449e254eff6c433913
[ "Apache-2.0" ]
17
2018-07-20T02:53:35.000Z
2022-01-11T12:27:31.000Z
src/azul/service/manifest_service.py
DataBiosphere/azul
abcaa7c6a04f1f5b8fd74e449e254eff6c433913
[ "Apache-2.0" ]
3,887
2018-06-29T15:23:02.000Z
2022-03-31T23:29:37.000Z
src/azul/service/manifest_service.py
DataBiosphere/azul
abcaa7c6a04f1f5b8fd74e449e254eff6c433913
[ "Apache-2.0" ]
21
2018-07-06T03:17:33.000Z
2022-02-18T04:10:02.000Z
from abc import ( ABCMeta, abstractmethod, ) from collections import ( defaultdict, ) from copy import ( deepcopy, ) import csv from datetime import ( datetime, timedelta, timezone, ) import email.utils from enum import ( Enum, ) from inspect import ( isabstract, ) from io import ( ...
38.742857
120
0.580666
749018f3ee24ee2aafd6195deadd5178e4cd8adf
1,152
py
Python
examples/inverse/plot_morph_data.py
mluessi/mne-python
aef0cd79b0543c6d121de236098bd7865feff39e
[ "BSD-3-Clause" ]
1
2022-03-23T22:26:50.000Z
2022-03-23T22:26:50.000Z
examples/inverse/plot_morph_data.py
neurodebian/mne-python
44a5ef5241a748b2f77c62fdcda6334220c6af45
[ "BSD-3-Clause" ]
null
null
null
examples/inverse/plot_morph_data.py
neurodebian/mne-python
44a5ef5241a748b2f77c62fdcda6334220c6af45
[ "BSD-3-Clause" ]
null
null
null
""" ========================================================== Morph source estimates from one subject to another subject ========================================================== A source estimate from a given subject 'sample' is morphed to the anatomy of another subject 'fsaverage'. The output is a source estimate ...
26.790698
70
0.669271
749026f3c83c1c45cd9afb12ab1e7bf5676ebffc
4,784
py
Python
benchmarks/object_detection/tensorflow/faster_rcnn/inference/int8/model_init.py
arita37/models
659895bff24589829b317f5180d60329906dc13c
[ "Apache-2.0" ]
1
2019-05-23T01:07:23.000Z
2019-05-23T01:07:23.000Z
benchmarks/object_detection/tensorflow/faster_rcnn/inference/int8/model_init.py
arita37/models
659895bff24589829b317f5180d60329906dc13c
[ "Apache-2.0" ]
null
null
null
benchmarks/object_detection/tensorflow/faster_rcnn/inference/int8/model_init.py
arita37/models
659895bff24589829b317f5180d60329906dc13c
[ "Apache-2.0" ]
null
null
null
# # -*- coding: utf-8 -*- # # Copyright (c) 2019 Intel 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 app...
39.866667
82
0.625418
7490412301c4d9f2fd60e810f2f3a87dfe038eea
1,452
py
Python
lib/stream.py
cabernetwork/provider_video_locast
5feda6068f9bffefdfe86a1f34a48cc58857415f
[ "MIT" ]
null
null
null
lib/stream.py
cabernetwork/provider_video_locast
5feda6068f9bffefdfe86a1f34a48cc58857415f
[ "MIT" ]
null
null
null
lib/stream.py
cabernetwork/provider_video_locast
5feda6068f9bffefdfe86a1f34a48cc58857415f
[ "MIT" ]
null
null
null
""" MIT License Copyright (C) 2021 ROCKY4546 https://github.com/rocky4546 This file is part of Cabernet 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 lim...
35.414634
133
0.732094
74904426a67d85adf2b4c2fcaa170d141f032e8e
346
py
Python
lib/model/faster_rcnn/maml.py
denglixi/faster-rcnn.pytorch
12158fa2ec998ba3733a4696b7a4e08a35c157e3
[ "MIT" ]
null
null
null
lib/model/faster_rcnn/maml.py
denglixi/faster-rcnn.pytorch
12158fa2ec998ba3733a4696b7a4e08a35c157e3
[ "MIT" ]
null
null
null
lib/model/faster_rcnn/maml.py
denglixi/faster-rcnn.pytorch
12158fa2ec998ba3733a4696b7a4e08a35c157e3
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2019 denglixi <denglixi@xgpd8> # # Distributed under terms of the MIT license. """ """ from model.faster_rcnn.prefood_res50_meta import PreResNet50Meta class MetaLearner(object): def __init__(): self.net = PreResNet50Meta() ...
17.3
64
0.67341
74906ec0b59c599b2b183bfdf027587c41b58a50
920
py
Python
script/stat_accuracy_read_assign.py
xie186/dragmap-meth
6e9ccfd281bd317a56b8c4e87b5386978eb8de45
[ "MIT" ]
4
2021-12-18T20:33:16.000Z
2022-01-03T02:54:13.000Z
script/stat_accuracy_read_assign.py
xie186/dragmap-meth
6e9ccfd281bd317a56b8c4e87b5386978eb8de45
[ "MIT" ]
null
null
null
script/stat_accuracy_read_assign.py
xie186/dragmap-meth
6e9ccfd281bd317a56b8c4e87b5386978eb8de45
[ "MIT" ]
null
null
null
from Bio import TogoWS import argparse import sys import os def summary(options): with open(options.input) as file_input: for line in file_input: line = line.rstrip() ele = line.split("\t") handle = TogoWS.entry("nucleotide", ele[2], field="organism") if ele[...
34.074074
80
0.571739
74906f079e9960f34c01a09921c9c8cfe7cb822f
21,221
py
Python
myia/compile/backends/python/implementations.py
strint/myia
3d00d3fb3df80ab7a264a724226c5f56c6ff1a8a
[ "MIT" ]
222
2019-02-13T07:56:28.000Z
2022-03-28T07:07:54.000Z
myia/compile/backends/python/implementations.py
strint/myia
3d00d3fb3df80ab7a264a724226c5f56c6ff1a8a
[ "MIT" ]
107
2019-02-12T21:56:39.000Z
2022-03-12T01:08:03.000Z
myia/compile/backends/python/implementations.py
strint/myia
3d00d3fb3df80ab7a264a724226c5f56c6ff1a8a
[ "MIT" ]
27
2017-11-14T17:58:15.000Z
2019-01-14T01:36:09.000Z
"""Implementation of complext primitives.""" import itertools import warnings import numpy as np from scipy.signal.signaltools import _bvalfromboundary, _valfrommode from scipy.signal.sigtools import _convolve2d def _get_conv_shape_1axis( image_shape, kernel_shape, border_mode, subsample, dilation=1 ): """Th...
31.863363
90
0.578531
7490855c4f104cf371d7e0bec01c7049db466a0e
3,992
py
Python
Selenium_PhantomJS/source/boto3/exceptions.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2019-06-27T12:09:44.000Z
2019-06-27T12:09:44.000Z
Selenium_PhantomJS/source/boto3/exceptions.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
Selenium_PhantomJS/source/boto3/exceptions.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
# Copyright 2014 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompa...
36.623853
79
0.684118
7490903688ac40e45903f673d8c94cd14bd25421
4,428
py
Python
tests/test_mesh.py
nbraem/trimesh
63b56b90cb764e1138d6c373fab58ddff3fcae75
[ "MIT" ]
null
null
null
tests/test_mesh.py
nbraem/trimesh
63b56b90cb764e1138d6c373fab58ddff3fcae75
[ "MIT" ]
null
null
null
tests/test_mesh.py
nbraem/trimesh
63b56b90cb764e1138d6c373fab58ddff3fcae75
[ "MIT" ]
null
null
null
try: from . import generic as g except BaseException: import generic as g class MeshTests(g.unittest.TestCase): def test_meshes(self): # make sure we can load everything we think we can formats = g.trimesh.available_formats() assert all(isinstance(i, str) for i in formats) ...
34.59375
79
0.556007
749098563ec8746f792b994933857c56dc7342c1
41,121
py
Python
custom_components/aarlo/camera.py
aneisch/home-assistant
d8a866d75f512d23ffa7b9e5d82d7c575ece3c76
[ "Apache-2.0" ]
18
2016-08-10T01:02:27.000Z
2017-10-26T04:19:49.000Z
custom_components/aarlo/camera.py
aneisch/home-assistant
d8a866d75f512d23ffa7b9e5d82d7c575ece3c76
[ "Apache-2.0" ]
null
null
null
custom_components/aarlo/camera.py
aneisch/home-assistant
d8a866d75f512d23ffa7b9e5d82d7c575ece3c76
[ "Apache-2.0" ]
4
2017-04-20T19:41:21.000Z
2017-05-16T17:10:05.000Z
""" Support for Netgear Arlo IP cameras. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/camera.arlo/ """ from __future__ import annotations import base64 import logging import homeassistant.helpers.config_validation as cv import voluptuous as vol from ...
35.757391
90
0.640524
74909c127f3b789af392fcd22039ad1cb737ba99
297
py
Python
retrobiocat_web/mongo/models/comments.py
ihayhurst/RetroBioCat
d674897459c0ab65faad5ed3017c55cf51bcc020
[ "MIT" ]
9
2020-12-01T16:33:02.000Z
2022-01-19T20:02:42.000Z
retrobiocat_web/mongo/models/comments.py
ihayhurst/RetroBioCat
d674897459c0ab65faad5ed3017c55cf51bcc020
[ "MIT" ]
4
2020-10-02T14:38:32.000Z
2021-08-02T09:23:58.000Z
retrobiocat_web/mongo/models/comments.py
ihayhurst/RetroBioCat
d674897459c0ab65faad5ed3017c55cf51bcc020
[ "MIT" ]
6
2021-01-14T07:48:36.000Z
2022-03-20T17:34:27.000Z
import mongoengine as db from retrobiocat_web.mongo.models.user_models import User from datetime import datetime import uuid from bson import ObjectId class Comment(db.Document): owner = db.ReferenceField(User) text = db.StringField() date = db.DateTimeField(default=datetime.utcnow)
27
57
0.787879
7490b651cdc9b9f58edcf14f9c40650de759db79
23,380
py
Python
spinel/const.py
kszewenko/pyspinel
31937fe03beacbcc3d3de3a63cb97fdd88bd6535
[ "Apache-2.0" ]
null
null
null
spinel/const.py
kszewenko/pyspinel
31937fe03beacbcc3d3de3a63cb97fdd88bd6535
[ "Apache-2.0" ]
null
null
null
spinel/const.py
kszewenko/pyspinel
31937fe03beacbcc3d3de3a63cb97fdd88bd6535
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2016-2017, The OpenThread Authors. # 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 re...
41.601423
121
0.644782
7490c79d58eac30e18e198546ff7f09bef9e6961
4,720
py
Python
scripts/fb/CoinChange.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
scripts/fb/CoinChange.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
8
2020-09-05T16:04:31.000Z
2022-02-27T09:57:51.000Z
scripts/fb/CoinChange.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
""" """ import math class Solution: def coinChange(self, coins, amount): ''' Logic, well at most index would be at index amount times. Also, it would be the same for every index So normally this is O(3^n), but since im guaranteeing to cache, the max possibilities of the key in cache is in...
39.333333
307
0.554873
7490c87233ed44700224021d2f7017fe0960f882
1,511
py
Python
predictionserver/futureconventions/typeconventions.py
microprediction/predictionserver
817243a4c85aac63995ab3a18cfbdcb01bb07bd0
[ "MIT" ]
1
2020-12-04T17:59:19.000Z
2020-12-04T17:59:19.000Z
predictionserver/futureconventions/typeconventions.py
microprediction/predictionserver
817243a4c85aac63995ab3a18cfbdcb01bb07bd0
[ "MIT" ]
null
null
null
predictionserver/futureconventions/typeconventions.py
microprediction/predictionserver
817243a4c85aac63995ab3a18cfbdcb01bb07bd0
[ "MIT" ]
1
2021-03-05T05:03:36.000Z
2021-03-05T05:03:36.000Z
from typing import List, Union, Optional from enum import Enum from predictionserver.futureconventions.sepconventions import SepConventions KeyList = List[Optional[str]] NameList = List[Optional[str]] Value = Union[str, int] ValueList = List[Optional[Value]] DelayList = List[Optional[int]] class StrEnum(Enum): ...
23.609375
84
0.617472
7490ee44d71888d14b9cc40c28df580686a03ca3
12,755
py
Python
rbac/server/db/users_query.py
Nonj/sawtooth-next-directory
32b3de8efca89b4485af785fe955974e76c093db
[ "Apache-2.0" ]
null
null
null
rbac/server/db/users_query.py
Nonj/sawtooth-next-directory
32b3de8efca89b4485af785fe955974e76c093db
[ "Apache-2.0" ]
null
null
null
rbac/server/db/users_query.py
Nonj/sawtooth-next-directory
32b3de8efca89b4485af785fe955974e76c093db
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Contributors to Hyperledger Sawtooth # # 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 ...
32.128463
88
0.525911
749108781ea3cfc2ab6b149484562796394a8dbd
240
py
Python
udemy/python-video-workbook/my_progress/036.py
djrgit/coursework
2a91da9b76cb1acbd12f3d8049f15d2e71f475a1
[ "MIT" ]
null
null
null
udemy/python-video-workbook/my_progress/036.py
djrgit/coursework
2a91da9b76cb1acbd12f3d8049f15d2e71f475a1
[ "MIT" ]
null
null
null
udemy/python-video-workbook/my_progress/036.py
djrgit/coursework
2a91da9b76cb1acbd12f3d8049f15d2e71f475a1
[ "MIT" ]
3
2018-08-13T23:14:22.000Z
2019-01-11T22:50:07.000Z
# Exercise 36 - Word Counter import sys file = sys.argv[1] def word_counter(file): total = 0 if file.endswith('txt'): with open(file, 'r') as f: for line in f: total += len(line.split()) return total print(word_counter(file))
17.142857
30
0.6625
74911e3b78a2752f7929ee361bf72ce97a8ba048
1,936
py
Python
client/paddleflow/pipeline/dsl/options/cache_options.py
qiaoshuangshuang/PaddleFlow
15155a553587f18b09d4edfc604cb64a1fbe01a7
[ "Apache-2.0" ]
23
2021-12-31T02:36:13.000Z
2022-03-29T07:38:43.000Z
client/paddleflow/pipeline/dsl/options/cache_options.py
qiaoshuangshuang/PaddleFlow
15155a553587f18b09d4edfc604cb64a1fbe01a7
[ "Apache-2.0" ]
10
2022-01-05T08:47:37.000Z
2022-03-29T11:59:43.000Z
client/paddleflow/pipeline/dsl/options/cache_options.py
qiaoshuangshuang/PaddleFlow
15155a553587f18b09d4edfc604cb64a1fbe01a7
[ "Apache-2.0" ]
19
2021-12-30T14:37:24.000Z
2022-03-23T03:30:32.000Z
#!/usr/bin/env python3 """ Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserve. 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...
33.964912
200
0.65186
74911f1e8149dcfeb9deaac0da0c9e7ff46055c7
11,937
py
Python
mitmproxy/net/tls.py
takeratta/mitmproxy
569d275d763f499cce9673fcf118dcc8d59d2eeb
[ "MIT" ]
null
null
null
mitmproxy/net/tls.py
takeratta/mitmproxy
569d275d763f499cce9673fcf118dcc8d59d2eeb
[ "MIT" ]
null
null
null
mitmproxy/net/tls.py
takeratta/mitmproxy
569d275d763f499cce9673fcf118dcc8d59d2eeb
[ "MIT" ]
null
null
null
# To enable all SSL methods use: SSLv23 # then add options to disable certain methods # https://bugs.launchpad.net/pyopenssl/+bug/1020632/comments/3 import binascii import os import threading import typing from ssl import match_hostname, CertificateError import certifi from OpenSSL import SSL from mitmproxy import ex...
35.005865
116
0.625618
7491308d7a1420b09d1cf799daf6de377634302f
438
py
Python
revelation/execute_jump.py
futurecore/revelation
859de37f5c3ecf5366cc7ba65900754862843366
[ "BSD-3-Clause" ]
4
2015-09-21T13:52:33.000Z
2016-12-29T23:24:51.000Z
revelation/execute_jump.py
futurecore/revelation
859de37f5c3ecf5366cc7ba65900754862843366
[ "BSD-3-Clause" ]
59
2015-07-17T01:09:12.000Z
2016-09-19T13:32:19.000Z
revelation/execute_jump.py
futurecore/epiphany-simulator
859de37f5c3ecf5366cc7ba65900754862843366
[ "BSD-3-Clause" ]
1
2015-08-01T00:42:03.000Z
2015-08-01T00:42:03.000Z
from revelation.registers import reg_map from revelation.utils import trim_32 def make_jr_executor(is16bit, save_lr): def execute_jr(s, inst): """ LR = PC + 2 (16 bit) 4 (32 bit) JALR only. PC = RN; """ if is16bit: inst.bits &= 0xffff if save_lr: ...
27.375
71
0.557078
7491859c50a3dcf04ff78c5a7cd0b63aa9e51d4b
3,213
py
Python
photometry/tests/test_todolist.py
aditya-sengupta/tesscomp-prototyping
93da86cd139c240ba5f59f187bcbc47e899c3519
[ "MIT" ]
null
null
null
photometry/tests/test_todolist.py
aditya-sengupta/tesscomp-prototyping
93da86cd139c240ba5f59f187bcbc47e899c3519
[ "MIT" ]
null
null
null
photometry/tests/test_todolist.py
aditya-sengupta/tesscomp-prototyping
93da86cd139c240ba5f59f187bcbc47e899c3519
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ .. codeauthor:: Rasmus Handberg <rasmush@phys.au.dk> """ import pytest import os import numpy as np import tempfile import logging import sqlite3 import contextlib #import itertools import conftest # noqa: F401 from photometry import todolist from photometry.utilities ...
30.6
107
0.615313
749194de252b4465659a51f48164a5e15ad2ce9d
130
py
Python
models/outputs_container.py
computational-imaging/DepthFromDefocusWithLearnedOptics
c3cf3fb46f2151e67236a294f8b19ba2269a47ca
[ "MIT" ]
19
2021-05-26T12:27:12.000Z
2022-03-24T02:55:41.000Z
models/outputs_container.py
computational-imaging/DepthFromDefocusWithLearnedOptics
c3cf3fb46f2151e67236a294f8b19ba2269a47ca
[ "MIT" ]
null
null
null
models/outputs_container.py
computational-imaging/DepthFromDefocusWithLearnedOptics
c3cf3fb46f2151e67236a294f8b19ba2269a47ca
[ "MIT" ]
4
2021-06-02T03:14:27.000Z
2022-02-23T13:09:48.000Z
from collections import namedtuple OutputsContainer = namedtuple('OutputContainer', field_names=['est_images', 'est_depthmaps'])
32.5
93
0.815385
74919f68f680fcf3bc3a42cea41566f905264f38
1,024
py
Python
test.py
MunskyGroup/rSNAPsim
af3e496d5252e1d2e1da061277123233a5d609b4
[ "MIT" ]
1
2022-01-28T18:17:37.000Z
2022-01-28T18:17:37.000Z
test.py
MunskyGroup/rSNAPsim
af3e496d5252e1d2e1da061277123233a5d609b4
[ "MIT" ]
null
null
null
test.py
MunskyGroup/rSNAPsim
af3e496d5252e1d2e1da061277123233a5d609b4
[ "MIT" ]
1
2020-12-02T06:36:17.000Z
2020-12-02T06:36:17.000Z
# -*- coding: utf-8 -*- """ Created on Mon Dec 21 15:16:37 2020 @author: willi """ #test_everything import rsnapsim import numpy as np #### test a full example ## 1 color sim proteins, protein_strs, poi_objs = rsnapsim.seqmanip.open_seq_file('./rsnapsim/gene_files/Bactin_withTags.txt' ) rsnapsim.solver.protein = p...
29.257143
112
0.746094
7491a4edc57679bc197356ccbc9ee0dad50a3e78
365
py
Python
cryptography/isbn_verifier/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
cryptography/isbn_verifier/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
cryptography/isbn_verifier/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
def verify(isbn): characters = list(isbn.replace("-", "")) if characters and characters[-1] == "X": characters[-1] = "10" if not len(characters) == 10 or not all(char.isdigit() for char in characters): return False indices = range(10, 0, -1) return sum(int(char) * index for char, ...
30.416667
87
0.605479
7491b3005184cac25aeae8a9dd4c70e77257fd23
46
py
Python
traktor_nowplaying/options.py
macostea/traktor_nowplaying
7b5c6c04e8292b97ad88daa0bb1a908d6d53b2ce
[ "MIT" ]
null
null
null
traktor_nowplaying/options.py
macostea/traktor_nowplaying
7b5c6c04e8292b97ad88daa0bb1a908d6d53b2ce
[ "MIT" ]
null
null
null
traktor_nowplaying/options.py
macostea/traktor_nowplaying
7b5c6c04e8292b97ad88daa0bb1a908d6d53b2ce
[ "MIT" ]
null
null
null
PORT = 8000 QUIET = False INTERACTIVE = False
11.5
19
0.73913