hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
de170ec508ac65d945b7a84909dff4d3ff97b15a
15,011
py
Python
capacity_admin_sdk/model/container/volume_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
5
2019-07-31T04:11:05.000Z
2021-01-07T03:23:20.000Z
capacity_admin_sdk/model/container/volume_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
capacity_admin_sdk/model/container/volume_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: volume.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf impo...
40.136364
1,361
0.745054
b96108c9c59fa67485f2723841bdc431920bcc78
7,781
py
Python
defenses/victim/blackbox.py
Fraunhofer-SIT/ModExTransformer
709e321ba68d7b4f1e55e50230adec5389574701
[ "Apache-2.0" ]
1
2022-03-21T13:16:42.000Z
2022-03-21T13:16:42.000Z
defenses/victim/blackbox.py
Fraunhofer-SIT/ModExTransformer
709e321ba68d7b4f1e55e50230adec5389574701
[ "Apache-2.0" ]
null
null
null
defenses/victim/blackbox.py
Fraunhofer-SIT/ModExTransformer
709e321ba68d7b4f1e55e50230adec5389574701
[ "Apache-2.0" ]
null
null
null
""" MIT License Copyright (c) 2020 Tribhuvanesh Orekondy This file was copied from https://github.com/tribhuvanesh/prediction-poisoning/blob/master/defenses/victim/blackbox.py and modified by Fraunhofer SIT in order to test the robustness of the proposed DeiT attack model under SOTA defenses...
39.100503
123
0.615088
2734114ec179e2811299824cb355b24965d6881d
7,223
py
Python
sudoku.py
samirladak97/sudoku
c6ace34f214a8bfbfea5b3d05eff6d4ad105ed0f
[ "Apache-2.0" ]
null
null
null
sudoku.py
samirladak97/sudoku
c6ace34f214a8bfbfea5b3d05eff6d4ad105ed0f
[ "Apache-2.0" ]
null
null
null
sudoku.py
samirladak97/sudoku
c6ace34f214a8bfbfea5b3d05eff6d4ad105ed0f
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 D-Wave Systems Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
34.89372
81
0.600581
d535cd78e54f3386263b822460aed026336ce128
2,537
py
Python
src/konfetti/vault/synchronous.py
samarcan/konfetti
77bd06ae0971e854a0241b5b097d004d3c81e3de
[ "MIT" ]
null
null
null
src/konfetti/vault/synchronous.py
samarcan/konfetti
77bd06ae0971e854a0241b5b097d004d3c81e3de
[ "MIT" ]
null
null
null
src/konfetti/vault/synchronous.py
samarcan/konfetti
77bd06ae0971e854a0241b5b097d004d3c81e3de
[ "MIT" ]
null
null
null
from functools import wraps from typing import Any, Dict, Optional # ignore: PyUnusedCodeBear import attr from .. import exceptions from ..cache import EMPTY from ..log import vault_logger from ..utils import NOT_SET from .base import BaseVaultBackend def cached_call(method): @wraps(method) def inner(self,...
34.753425
111
0.636579
74a01a2fd14da00afafd9dcb38dea51fe9e79906
448
py
Python
mlbpool/viewmodels/standings_season_points_viewmodel.py
prcutler/mlbpool2
7e65d2470fd9da514a0d7bb7f9d30f12d33fff5d
[ "MIT" ]
2
2018-01-10T02:33:39.000Z
2018-04-02T00:07:59.000Z
mlbpool/viewmodels/standings_season_points_viewmodel.py
prcutler/mlbpool2
7e65d2470fd9da514a0d7bb7f9d30f12d33fff5d
[ "MIT" ]
114
2018-03-06T19:44:32.000Z
2020-03-11T19:06:19.000Z
mlbpool/viewmodels/standings_season_points_viewmodel.py
prcutler/mlbpool2
7e65d2470fd9da514a0d7bb7f9d30f12d33fff5d
[ "MIT" ]
1
2019-06-04T17:23:51.000Z
2019-06-04T17:23:51.000Z
from mlbpool.viewmodels.viewmodelbase import ViewModelBase class StandingsPointsViewModel(ViewModelBase): def __init__(self): self.season = None self.season_id = None self.is_get = True def from_dict(self, data_dict): # reset_code will be third part of URL: # /acc...
29.866667
58
0.674107
41a56ab85adc6fbf1a5647043a96f3c04c73e53d
210,889
py
Python
salt/modules/file.py
Tracerneo/salt
81ff0715e709b76a90b6b2da009bc7faa1816433
[ "Apache-2.0" ]
null
null
null
salt/modules/file.py
Tracerneo/salt
81ff0715e709b76a90b6b2da009bc7faa1816433
[ "Apache-2.0" ]
1
2018-09-21T05:06:03.000Z
2018-09-21T05:06:03.000Z
salt/modules/file.py
Tracerneo/salt
81ff0715e709b76a90b6b2da009bc7faa1816433
[ "Apache-2.0" ]
1
2015-07-28T15:22:01.000Z
2015-07-28T15:22:01.000Z
# -*- coding: utf-8 -*- ''' Manage information about regular files, directories, and special files on the minion, set/read user, group, mode, and data ''' # TODO: We should add the capability to do u+r type operations here # some time in the future from __future__ import absolute_import, print_function, unicode_liter...
32.128123
178
0.559176
d37061f19755af82bc22bcad410355f6e91caf3d
631
py
Python
cses/dice_combinations.py
leetcode-notes/daily-algorithms-practice
2a03499ed0b403d79f6c8451c9a839991b23e188
[ "Unlicense" ]
null
null
null
cses/dice_combinations.py
leetcode-notes/daily-algorithms-practice
2a03499ed0b403d79f6c8451c9a839991b23e188
[ "Unlicense" ]
null
null
null
cses/dice_combinations.py
leetcode-notes/daily-algorithms-practice
2a03499ed0b403d79f6c8451c9a839991b23e188
[ "Unlicense" ]
null
null
null
from functools import lru_cache def solve(n): if n == 0 or n == 1: return 1 dp = [0]*(n+1) dp[0], dp[1] = 1, 1 for i in range(2, n+1): for j in range(1, 7): if j <= i: dp[i] = (dp[i] + dp[i-j]) % (10**9+7) return dp[-1] % (10**9+7) if __name__ == '__ma...
19.121212
53
0.434231
8c6f5668c3a016dca776a83caa27edd48fecb53f
6,023
py
Python
wrappers/python/src/python/readdy/api/registry/compartments.py
readdy/readdy
ef400db60a29107672a7f2bc42f6c3db4de34eb0
[ "BSD-3-Clause" ]
51
2015-02-24T18:19:34.000Z
2022-03-30T06:57:47.000Z
wrappers/python/src/python/readdy/api/registry/compartments.py
readdy/readdy
ef400db60a29107672a7f2bc42f6c3db4de34eb0
[ "BSD-3-Clause" ]
81
2016-05-25T22:29:39.000Z
2022-03-28T14:22:18.000Z
wrappers/python/src/python/readdy/api/registry/compartments.py
readdy/readdy
ef400db60a29107672a7f2bc42f6c3db4de34eb0
[ "BSD-3-Clause" ]
15
2015-03-10T03:16:49.000Z
2021-10-11T11:26:39.000Z
# coding=utf-8 # Copyright © 2018 Computational Molecular Biology Group, # Freie Universität Berlin (GER) # # Redistribution and use in source and binary forms, with or # without modification, are permitted provided that the # following conditions are met: # 1. Redistributions of source code must ret...
47.425197
119
0.709115
3af4718cea98086a343cf9dd81486bc86191e939
422
py
Python
knn.py
victorkitov/common_plus
b1456c0c1a277b703a1493d047c7f2fefa1e761c
[ "MIT" ]
2
2019-12-18T10:18:48.000Z
2020-06-14T17:44:00.000Z
knn.py
Apogentus/common_plus
b1456c0c1a277b703a1493d047c7f2fefa1e761c
[ "MIT" ]
null
null
null
knn.py
Apogentus/common_plus
b1456c0c1a277b703a1493d047c7f2fefa1e761c
[ "MIT" ]
null
null
null
from pylab import * import numpy as np import pandas as pd def knn_linear_weights(dists): '''Linear dacaying weights for K-NN custom weight specification. Author: Victor Kitov (v.v.kitov@yandex.ru), 03.2016.''' min_dist = np.min(dists) max_dist = np.max(dists) if min_dist==max_dist...
28.133333
69
0.651659
d1c7beca94dd9b133cc7834aead4287d9a0cea4b
16,170
py
Python
tests/test_modeling_longformer.py
leogao2/transformers
850197d888375135157cfcf3d795007849420e07
[ "Apache-2.0" ]
1
2021-04-20T17:01:32.000Z
2021-04-20T17:01:32.000Z
tests/test_modeling_longformer.py
leogao2/transformers
850197d888375135157cfcf3d795007849420e07
[ "Apache-2.0" ]
null
null
null
tests/test_modeling_longformer.py
leogao2/transformers
850197d888375135157cfcf3d795007849420e07
[ "Apache-2.0" ]
1
2021-06-17T01:18:56.000Z
2021-06-17T01:18:56.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team 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 ...
41.891192
119
0.693568
badd6b9dd002a480d1647cca79f2627493250011
199
py
Python
cellgrid/ensemble/__init__.py
Brodinlab/cellgrid
e859850b2b09668a0d72a90caaab5a20abf14a13
[ "MIT" ]
8
2020-07-25T21:28:30.000Z
2022-03-01T20:21:38.000Z
cellgrid/ensemble/__init__.py
Brodinlab/cellgrid
e859850b2b09668a0d72a90caaab5a20abf14a13
[ "MIT" ]
2
2020-07-29T13:51:14.000Z
2020-12-03T20:07:59.000Z
cellgrid/ensemble/__init__.py
Brodinlab/cellgrid
e859850b2b09668a0d72a90caaab5a20abf14a13
[ "MIT" ]
3
2020-07-27T12:04:08.000Z
2021-01-27T09:46:39.000Z
from .classifier import GridClassifier, save_model, load_model, \ ModelBlueprint, GridSchema __all__ = ['GridClassifier', 'save_model', 'load_model', 'ModelBlueprint', 'GridSchema']
28.428571
65
0.718593
2dad11a327c1b370959de931eefa2a15e0a01e56
3,296
py
Python
python/examples/ui_notifications.py
gkprow-runsafe/binaryninja-api
8f9004fa3cba785ec67909e9f96498b00086a3a7
[ "MIT" ]
1
2021-04-05T15:01:23.000Z
2021-04-05T15:01:23.000Z
python/examples/ui_notifications.py
gkprow-runsafe/binaryninja-api
8f9004fa3cba785ec67909e9f96498b00086a3a7
[ "MIT" ]
null
null
null
python/examples/ui_notifications.py
gkprow-runsafe/binaryninja-api
8f9004fa3cba785ec67909e9f96498b00086a3a7
[ "MIT" ]
1
2021-06-10T04:27:19.000Z
2021-06-10T04:27:19.000Z
# Copyright (c) 2015-2021 Vector 35 Inc # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, ...
39.238095
90
0.710862
851b6d0ed6a8f053af137648c5d59910f67ef0ab
15,294
py
Python
Sample/spinnaker_python-2.2.0.48-cp37-cp37m-win_amd64/Examples/Python3/LookupTable.py
BevanLab/Recording_Script
bbe751a55447d1a6fff449d68b3f3a1d2a194f4d
[ "MIT" ]
null
null
null
Sample/spinnaker_python-2.2.0.48-cp37-cp37m-win_amd64/Examples/Python3/LookupTable.py
BevanLab/Recording_Script
bbe751a55447d1a6fff449d68b3f3a1d2a194f4d
[ "MIT" ]
null
null
null
Sample/spinnaker_python-2.2.0.48-cp37-cp37m-win_amd64/Examples/Python3/LookupTable.py
BevanLab/Recording_Script
bbe751a55447d1a6fff449d68b3f3a1d2a194f4d
[ "MIT" ]
1
2021-02-05T17:20:32.000Z
2021-02-05T17:20:32.000Z
# coding=utf-8 # ============================================================================= # Copyright (c) 2001-2019 FLIR Systems, Inc. All Rights Reserved. # # This software is the confidential and proprietary information of FLIR # Integrated Imaging Solutions, Inc. ("Confidential Information"). You # shall not di...
34.680272
111
0.645547
25faae6031ac6637b758db4bd64808f60b33240c
21,395
py
Python
nova/objects/migrate_data.py
bopopescu/TestNova
fb6a183b54f87cc078dc6de5be89711ec0d9ac26
[ "Apache-2.0" ]
1
2018-08-19T02:13:16.000Z
2018-08-19T02:13:16.000Z
nova/objects/migrate_data.py
bopopescu/TestNova
fb6a183b54f87cc078dc6de5be89711ec0d9ac26
[ "Apache-2.0" ]
null
null
null
nova/objects/migrate_data.py
bopopescu/TestNova
fb6a183b54f87cc078dc6de5be89711ec0d9ac26
[ "Apache-2.0" ]
1
2020-07-22T22:13:56.000Z
2020-07-22T22:13:56.000Z
# Copyright 2015 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
42.450397
79
0.660154
287f492c5dc9beca0b9a3b28e70924efaa7c0b4c
2,574
py
Python
lib/mode/direct_list.py
drmarmar/Osmedeus
2fb7870a49f40392a6d0cdc7c184740068a50f74
[ "MIT" ]
null
null
null
lib/mode/direct_list.py
drmarmar/Osmedeus
2fb7870a49f40392a6d0cdc7c184740068a50f74
[ "MIT" ]
null
null
null
lib/mode/direct_list.py
drmarmar/Osmedeus
2fb7870a49f40392a6d0cdc7c184740068a50f74
[ "MIT" ]
null
null
null
import os import sys sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__)))) from lib.sender import send from lib.core import utils from modules import subdomain from modules import vhosts from modules import permutation from modules import probing from modules import fingerprint from modules im...
28.285714
77
0.681818
de09fd8f38ad8383a56207333cf6376f7c34cb7b
8,489
py
Python
translate.py
kestel/dndmonstertrans
4cda656af9083141fec437fbc87258e58dfc21a5
[ "BSD-2-Clause" ]
1
2020-09-22T06:50:45.000Z
2020-09-22T06:50:45.000Z
translate.py
palikhov/dndmonstertrans
5235c2a827663b48bcb33fd548ab2195a8004458
[ "BSD-2-Clause" ]
2
2017-08-18T13:27:30.000Z
2017-08-21T20:06:10.000Z
translate.py
palikhov/dndmonstertrans
5235c2a827663b48bcb33fd548ab2195a8004458
[ "BSD-2-Clause" ]
2
2019-12-19T03:35:24.000Z
2020-09-22T06:50:47.000Z
#!/usr/bin/env python3.6 #-*- coding:utf-8 -*- import re # подцепляем словарь из внешнего файла import dicts.dicts as d def replace_lang(text, dic): """Заменялка для языков""" text = text.replace("Languages:", "Languages") if "---" in text: return "Языки ---" langru = "Языки " langs = text...
41.009662
254
0.559548
b255b02fe4383e0d64a7901349b2e95499d87577
353
py
Python
backend/urls.py
webclinic017/WallStreetBots
f4f73539b080ce7667b52ee8195919ec4e7b79b8
[ "MIT" ]
4
2021-11-12T02:04:30.000Z
2022-01-03T22:56:41.000Z
backend/urls.py
webclinic017/WallStreetBots
f4f73539b080ce7667b52ee8195919ec4e7b79b8
[ "MIT" ]
5
2021-11-11T20:48:34.000Z
2022-03-12T18:08:40.000Z
backend/urls.py
webclinic017/WallStreetBots
f4f73539b080ce7667b52ee8195919ec4e7b79b8
[ "MIT" ]
2
2021-11-15T14:23:36.000Z
2021-11-27T19:44:38.000Z
from django.contrib import admin from django.urls import path, include BASE_API_URL = "api" urlpatterns = [ path(f"{BASE_API_URL}/", include('backend.home.urls')), path(f"{BASE_API_URL}/tradingbot/", include('backend.tradingbot.urls')), path(f"{BASE_API_URL}/admin/", admin.site.urls), path('', includ...
27.153846
76
0.696884
1943663ff05c9823483c251059126c50d0ae5626
22,805
py
Python
samtranslator/model/api/http_api_generator.py
keetonian/serverless-application-model
0eb97af5040fcd9e0f98019cfd4199d2a63b7196
[ "Apache-2.0" ]
null
null
null
samtranslator/model/api/http_api_generator.py
keetonian/serverless-application-model
0eb97af5040fcd9e0f98019cfd4199d2a63b7196
[ "Apache-2.0" ]
null
null
null
samtranslator/model/api/http_api_generator.py
keetonian/serverless-application-model
0eb97af5040fcd9e0f98019cfd4199d2a63b7196
[ "Apache-2.0" ]
1
2019-07-23T11:18:23.000Z
2019-07-23T11:18:23.000Z
import re from collections import namedtuple from six import string_types from samtranslator.model.intrinsics import ref, fnGetAtt from samtranslator.model.apigatewayv2 import ( ApiGatewayV2HttpApi, ApiGatewayV2Stage, ApiGatewayV2Authorizer, ApiGatewayV2DomainName, ApiGatewayV2ApiMapping, ) from sam...
44.195736
138
0.653979
1da798d4ed22de4743f0a6de1d9b2baa192d94d7
869
py
Python
heartFEM/lcleeHeart/vtk_py/getABPointsFromBoundsAndCenter.py
WeiXuanChan/heartFEM
7f26c71434919c3141fac600f08685e5383e7137
[ "MIT" ]
3
2021-04-13T07:05:20.000Z
2021-10-02T13:41:09.000Z
heartFEM/lcleeHeart/vtk_py/getABPointsFromBoundsAndCenter.py
WeiXuanChan/heartFEM
7f26c71434919c3141fac600f08685e5383e7137
[ "MIT" ]
null
null
null
heartFEM/lcleeHeart/vtk_py/getABPointsFromBoundsAndCenter.py
WeiXuanChan/heartFEM
7f26c71434919c3141fac600f08685e5383e7137
[ "MIT" ]
2
2021-09-06T13:13:41.000Z
2022-03-11T18:59:02.000Z
######################################################################## import vtk ######################################################################## def getABPointsFromBoundsAndCenter(ugrid_wall, verbose=True): if (verbose): print ('*** getABPointsFromBoundsAndCenter *...
33.423077
98
0.545455
2ccb75caab263ad9c7aabb790bdebd890644d25e
3,451
py
Python
alarmageddon/validations/kafka.py
PearsonEducation/Alarmageddon
71626baff9dd8066990eacef3f452f21315d4180
[ "Apache-2.0" ]
10
2015-01-22T14:11:31.000Z
2020-08-07T11:41:29.000Z
alarmageddon/validations/kafka.py
PearsonEducation/Alarmageddon
71626baff9dd8066990eacef3f452f21315d4180
[ "Apache-2.0" ]
31
2015-01-07T20:38:16.000Z
2019-04-12T14:06:42.000Z
alarmageddon/validations/kafka.py
PearsonEducation/Alarmageddon
71626baff9dd8066990eacef3f452f21315d4180
[ "Apache-2.0" ]
11
2015-01-07T01:42:01.000Z
2019-03-19T06:32:20.000Z
"""Convenience Validations for working with Kafka""" from alarmageddon.validations.validation import Priority from alarmageddon.validations.ssh import SshValidation import re from collections import Counter from alarmageddon.validations.utilities import format_node, format_cluster import logging logger = logging.g...
40.6
81
0.566502
72fc23d17d0df2ff2741845d0adba79435790ef9
13,691
py
Python
rapid/workflow/data/dal/pipeline_dal.py
m2bright/rapid
fd66515105ca9773c5da8562a878c6b0bfa4487a
[ "Apache-2.0" ]
null
null
null
rapid/workflow/data/dal/pipeline_dal.py
m2bright/rapid
fd66515105ca9773c5da8562a878c6b0bfa4487a
[ "Apache-2.0" ]
null
null
null
rapid/workflow/data/dal/pipeline_dal.py
m2bright/rapid
fd66515105ca9773c5da8562a878c6b0bfa4487a
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 2015 Michael Bright and Bamboo HR 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...
44.307443
165
0.62815
b591f55da36e1f774894ee2aa34c998741e76f94
219
py
Python
python_interview_code/code/3_python_basics/comprehension.py
youaresherlock/PythonPractice
2e22d3fdcb26353cb0d8215c150e84d11bc9a022
[ "Apache-2.0" ]
null
null
null
python_interview_code/code/3_python_basics/comprehension.py
youaresherlock/PythonPractice
2e22d3fdcb26353cb0d8215c150e84d11bc9a022
[ "Apache-2.0" ]
null
null
null
python_interview_code/code/3_python_basics/comprehension.py
youaresherlock/PythonPractice
2e22d3fdcb26353cb0d8215c150e84d11bc9a022
[ "Apache-2.0" ]
1
2019-11-05T01:10:15.000Z
2019-11-05T01:10:15.000Z
#!usr/bin/python # -*- coding:utf8 -*- # 列表/字典推导式 a = ['a', 'b', 'c'] b = [1, 2, 3] # d = {'a': 1, 'b': 2, 'c': 3} d = {} for i in range(len(a)): d[a[i]] = b[i] print(d) d = {k: v for k, v in zip(a, b)} print(d)
13.6875
32
0.420091
81a88f1306b4929047d3ec5658809791c8d676d7
512
py
Python
Silver_Badges/Ayuba_oss_rewards_Bash/oss_bash/forms.py
preciousM494/Voting
295c34814835ed89ddd6ab88a4d5d64a8c86da53
[ "Apache-2.0" ]
5
2021-09-15T08:03:05.000Z
2022-03-31T22:12:35.000Z
Silver_Badges/Ayuba_oss_rewards_Bash/oss_bash/forms.py
preciousM494/Voting
295c34814835ed89ddd6ab88a4d5d64a8c86da53
[ "Apache-2.0" ]
null
null
null
Silver_Badges/Ayuba_oss_rewards_Bash/oss_bash/forms.py
preciousM494/Voting
295c34814835ed89ddd6ab88a4d5d64a8c86da53
[ "Apache-2.0" ]
3
2021-12-10T01:30:38.000Z
2021-12-26T17:45:13.000Z
from django import forms from .models import Developer,Address class DeveloperForm(forms.ModelForm): class Meta: model = Developer fields = '__all__' class RewardForm(forms.ModelForm): class Meta: model = Address fields = '__all__' def __init__(self, *args, **kwargs): ...
25.6
62
0.623047
41f6b01f697293ff653ee3f23426efd5368e164f
5,804
py
Python
core/modules/BasicSR/scripts/download_pretrained_models.py
harryprabowo/multipurpose-iris-recognition
549cb95499abb3ea7900aa29ced55a9ddce895cc
[ "BSD-2-Clause" ]
null
null
null
core/modules/BasicSR/scripts/download_pretrained_models.py
harryprabowo/multipurpose-iris-recognition
549cb95499abb3ea7900aa29ced55a9ddce895cc
[ "BSD-2-Clause" ]
null
null
null
core/modules/BasicSR/scripts/download_pretrained_models.py
harryprabowo/multipurpose-iris-recognition
549cb95499abb3ea7900aa29ced55a9ddce895cc
[ "BSD-2-Clause" ]
null
null
null
import argparse import os from os import path as osp from basicsr.utils.download_util import download_file_from_google_drive def download_pretrained_models(method, file_ids): save_path_root = f'./experiments/pretrained_models/{method}' os.makedirs(save_path_root, exist_ok=True) for file_name, file_id in...
42.676471
94
0.644039
b13574ce7483416019273891845fa34491dff80d
542
py
Python
env/lib/python3.8/site-packages/plotly/validators/parcats/line/_colorscale.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
env/lib/python3.8/site-packages/plotly/validators/parcats/line/_colorscale.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-08-09T02:30:14.000Z
2022-03-12T00:50:14.000Z
env/lib/python3.8/site-packages/plotly/validators/parcats/line/_colorscale.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
import _plotly_utils.basevalidators class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): def __init__(self, plotly_name="colorscale", parent_name="parcats.line", **kwargs): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=paren...
38.714286
87
0.664207
4288cfd2127be8ab9d591d106a5599eb1fa6c91a
1,837
py
Python
tests/formatters/twitter_ios.py
SamuelePilleri/plaso
f5687f12a89c7309797ccc285da78e855c120579
[ "Apache-2.0" ]
null
null
null
tests/formatters/twitter_ios.py
SamuelePilleri/plaso
f5687f12a89c7309797ccc285da78e855c120579
[ "Apache-2.0" ]
null
null
null
tests/formatters/twitter_ios.py
SamuelePilleri/plaso
f5687f12a89c7309797ccc285da78e855c120579
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for Twitter on iOS 8+ database event formatter.""" from __future__ import unicode_literals import unittest from plaso.formatters import twitter_ios from tests.formatters import test_lib class TwitterIOSContactFormatterTest(test_lib.EventFormatterTestCase): "...
27.014706
70
0.711486
f657dbb87298e09c7904239ea7bb8835b085fb09
3,867
py
Python
test/rto_BOD_l2.py
MercuryBench/randomize-then-optimize
fa740352dcbaaf978beccf7f886d0935d4aa9af6
[ "CC-BY-4.0" ]
2
2020-07-01T02:25:29.000Z
2021-01-22T18:41:20.000Z
test/rto_BOD_l2.py
MercuryBench/randomize-then-optimize
fa740352dcbaaf978beccf7f886d0935d4aa9af6
[ "CC-BY-4.0" ]
null
null
null
test/rto_BOD_l2.py
MercuryBench/randomize-then-optimize
fa740352dcbaaf978beccf7f886d0935d4aa9af6
[ "CC-BY-4.0" ]
null
null
null
from __future__ import division import numpy as np import matplotlib.pyplot as plt import scipy.optimize as opt from math import exp import scipy.stats as st import sys sys.path.append('..') from rto_scalable import * import time start = time.time() np.random.seed(100872) f_fnc = lambda x, theta: theta[0]*(1 - np.e...
34.837838
147
0.69925
92dfccbc3209d63d4eab83744b10543f98662008
1,219
py
Python
mopidy_slack/next.py
ablanchard/mopidy-hipchat
3bc13976498f238a9fa69ed60f96587352c14afb
[ "Apache-2.0" ]
null
null
null
mopidy_slack/next.py
ablanchard/mopidy-hipchat
3bc13976498f238a9fa69ed60f96587352c14afb
[ "Apache-2.0" ]
2
2016-09-29T13:29:37.000Z
2016-09-29T13:31:17.000Z
mopidy_slack/next.py
ablanchard/mopidy-hipchat
3bc13976498f238a9fa69ed60f96587352c14afb
[ "Apache-2.0" ]
null
null
null
# stdlib imports import json import logging import time from mopidy.core import CoreListener import pykka from threading import Timer from . import listener logger = logging.getLogger(__name__) class NextListener(listener.CommandListener): def __init__(self,core,counter): self.core = core sel...
21.767857
104
0.636587
62c92f77526c1933b12e0718541191f5ea0c0d76
10,128
py
Python
repolisting.py
swinslow/scaffold
4cf48b9f1545ad789095cf93a68a78a5df63f8b5
[ "Apache-2.0" ]
null
null
null
repolisting.py
swinslow/scaffold
4cf48b9f1545ad789095cf93a68a78a5df63f8b5
[ "Apache-2.0" ]
18
2020-01-09T21:50:34.000Z
2021-01-04T19:02:37.000Z
repolisting.py
swinslow/scaffold
4cf48b9f1545ad789095cf93a68a78a5df63f8b5
[ "Apache-2.0" ]
null
null
null
# Copyright The Linux Foundation # SPDX-License-Identifier: Apache-2.0 from datatypes import ProjectRepoType, Status, Subproject from github import getGithubRepoList from gerrit import getGerritRepoDict, getGerritRepoList # Runner for START in GitHub def doRepoListingForSubproject(cfg, prj, sp): allrepos = getGit...
40.350598
129
0.638033
86375aa728e8946e63bdb61d24a9d185ca69ca53
9,074
py
Python
eth2_sim/simulation/validator.py
hwwhww/trinity
614b083a637c665f84b1af228541f37c25d9c665
[ "MIT" ]
2
2020-01-30T21:51:00.000Z
2020-07-22T14:51:05.000Z
eth2_sim/simulation/validator.py
hwwhww/trinity
614b083a637c665f84b1af228541f37c25d9c665
[ "MIT" ]
null
null
null
eth2_sim/simulation/validator.py
hwwhww/trinity
614b083a637c665f84b1af228541f37c25d9c665
[ "MIT" ]
null
null
null
import random import functools from eth.db.atomic import AtomicDB from eth.exceptions import ( BlockNotFound, # CanonicalHeadNotFound, # ParentNotFound, # StateRootNotFound, ) from eth2.beacon.constants import ( GENESIS_PARENT_ROOT, ) from eth2.beacon.configs import ( CommitteeConfig, ) from ...
29.75082
88
0.606238
a4887a2befc9e1620fd019fe416b62c98cfddc00
3,662
py
Python
geopy_corrected.py
destop4u/gisp2019
aaef5f96b500de5257c15bcdbfa243395e1257d9
[ "MIT" ]
1
2019-09-25T20:37:31.000Z
2019-09-25T20:37:31.000Z
geopy_corrected.py
destop4u/gisp2019
aaef5f96b500de5257c15bcdbfa243395e1257d9
[ "MIT" ]
null
null
null
geopy_corrected.py
destop4u/gisp2019
aaef5f96b500de5257c15bcdbfa243395e1257d9
[ "MIT" ]
null
null
null
import json, datetime from geopy.geocoders import Nominatim # from urllib.request import Request geolocator = Nominatim() import pyproj from fiona.crs import from_epsg def geocode_address(address=""): """ Address geocoder using OSM Nominatim. Accepts 'address' string and returns a JSON response containing ...
28.834646
129
0.620426
b19741c4066ee751fa2dd6c7899a035e02f73b46
675
py
Python
Layers/Remove Hints.py
jpt/Glyphs-Scripts-1
786f3e9f9b846d6daaafe9e665c6184c43835a66
[ "MIT" ]
7
2017-03-27T16:38:30.000Z
2021-08-30T08:09:39.000Z
Layers/Remove Hints.py
jpt/Glyphs-Scripts-1
786f3e9f9b846d6daaafe9e665c6184c43835a66
[ "MIT" ]
3
2019-05-04T17:21:49.000Z
2021-12-13T08:51:07.000Z
Layers/Remove Hints.py
jpt/Glyphs-Scripts-1
786f3e9f9b846d6daaafe9e665c6184c43835a66
[ "MIT" ]
2
2021-05-13T15:13:25.000Z
2021-08-30T00:51:07.000Z
# MenuTitle: Remove Hints from __future__ import ( absolute_import, division, print_function, unicode_literals, ) from GlyphsApp import Glyphs, TOPGHOST, STEM, BOTTOMGHOST __doc__ = """ Remove PostScript hints in selected layers. """ ps_hints = [ TOPGHOST, STEM, BOTTOMGHOST, ] Glyphs.fon...
20.454545
79
0.684444
dd28c319498de0888dee9bf8a59c3d8d91f7fe6e
692
py
Python
example.py
KostyaKow/PyWebKitGtk-wrapper
97d757cc86dd7be0a0c1ac5444ada54203944289
[ "CNRI-Python" ]
null
null
null
example.py
KostyaKow/PyWebKitGtk-wrapper
97d757cc86dd7be0a0c1ac5444ada54203944289
[ "CNRI-Python" ]
null
null
null
example.py
KostyaKow/PyWebKitGtk-wrapper
97d757cc86dd7be0a0c1ac5444ada54203944289
[ "CNRI-Python" ]
null
null
null
#!/usr/bin/env python import sys, time sys.path.append('..') import pwkg def setupElectron(index_path, on_event): w = pwkg.Window(100, 100, "PWKG Window", debug=True) w.load(index_path) w.on_gui_event += on_event return w def sleep(x): time.sleep(x) def on_js_event(msg): print(msg) print(msg['t...
19.222222
58
0.669075
6abc10bc63b314478736359a2c66b07cbedc09c4
1,985
py
Python
setup.py
kmyk/AI-virtual-assistant-python
3f5f5500d1a5af059b510728963f91f05337eca2
[ "MIT" ]
1
2020-07-14T17:42:11.000Z
2020-07-14T17:42:11.000Z
setup.py
kmyk/AI-virtual-assistant-python
3f5f5500d1a5af059b510728963f91f05337eca2
[ "MIT" ]
null
null
null
setup.py
kmyk/AI-virtual-assistant-python
3f5f5500d1a5af059b510728963f91f05337eca2
[ "MIT" ]
null
null
null
from setuptools import find_packages , setup import system.__about__ as version from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name=version.__pa...
25.448718
65
0.596474
d831fdbcc663c15d06ed77a99250bb0b8eb26f91
4,698
py
Python
samples/oauth/oauth_on_appengine/appengine_utilities/flash.py
aigarius/aigarius-gdata
de02b42851e766cc9e90cc7636c1b0a40e3c5d27
[ "Apache-2.0" ]
null
null
null
samples/oauth/oauth_on_appengine/appengine_utilities/flash.py
aigarius/aigarius-gdata
de02b42851e766cc9e90cc7636c1b0a40e3c5d27
[ "Apache-2.0" ]
null
null
null
samples/oauth/oauth_on_appengine/appengine_utilities/flash.py
aigarius/aigarius-gdata
de02b42851e766cc9e90cc7636c1b0a40e3c5d27
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 2008, appengine-utilities project 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 conditions and ...
38.826446
82
0.654747
db3bafd851ed97ba9b4b12a5f36d30dbd870100f
2,741
py
Python
examples/python/teleport.py
indisoluble/qiskit-terra
301bfb537c3d63fa31cb3eb6490d2b8f1fa810fc
[ "Apache-2.0" ]
null
null
null
examples/python/teleport.py
indisoluble/qiskit-terra
301bfb537c3d63fa31cb3eb6490d2b8f1fa810fc
[ "Apache-2.0" ]
null
null
null
examples/python/teleport.py
indisoluble/qiskit-terra
301bfb537c3d63fa31cb3eb6490d2b8f1fa810fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2017, IBM. # # This source code is licensed under the Apache License, Version 2.0 found in # the LICENSE.txt file in the root directory of this source tree. """ Quantum teleportation example. Note: if you have only cloned the Qiskit repository but not used `pip install`, the examp...
30.455556
104
0.610726
9161d99e564082c074eccb4a6d92c0ac1b208f8c
1,393
py
Python
Moudle/Spring/CVE_2022_22963.py
WingsSec/Meppo
454aa6ce6cc3e93cadb2dc0c455c56fa5e0f1a94
[ "MIT" ]
60
2022-03-22T02:40:41.000Z
2022-03-29T06:23:57.000Z
Moudle/Spring/CVE_2022_22963.py
WingsSec/Meppo
454aa6ce6cc3e93cadb2dc0c455c56fa5e0f1a94
[ "MIT" ]
null
null
null
Moudle/Spring/CVE_2022_22963.py
WingsSec/Meppo
454aa6ce6cc3e93cadb2dc0c455c56fa5e0f1a94
[ "MIT" ]
9
2022-03-22T12:10:44.000Z
2022-03-25T07:37:01.000Z
#!/usr/bin/env python3 # _*_ coding:utf-8 _*_ import requests import requests.packages.urllib3 from Config.config_requests import ua from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(InsecureRequestWarning) # 脚本信息 ######################################...
27.86
102
0.572146
bda4dd0fc3f951ad0fd8de5bf8c28aa2137f8347
4,948
py
Python
allennlp_models/coref/dataset_readers/conll.py
rubenwol/allennlp-models
58cab3a359c359cd0a0c5568b86927265f3701ba
[ "Apache-2.0" ]
null
null
null
allennlp_models/coref/dataset_readers/conll.py
rubenwol/allennlp-models
58cab3a359c359cd0a0c5568b86927265f3701ba
[ "Apache-2.0" ]
null
null
null
allennlp_models/coref/dataset_readers/conll.py
rubenwol/allennlp-models
58cab3a359c359cd0a0c5568b86927265f3701ba
[ "Apache-2.0" ]
null
null
null
import logging import collections from typing import Dict, List, Optional, Tuple, DefaultDict from overrides import overrides from allennlp.common.file_utils import cached_path from allennlp.data.dataset_readers.dataset_reader import DatasetReader from allennlp.data.instance import Instance from allennlp.data.tokeniz...
45.814815
100
0.700081
6615989b7fb73f7db556f83556a7399a93a7a430
9,101
py
Python
venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/raw/GL/VERSION/GL_1_3.py
temelkirci/Motion_Editor
a8b8d4c4d2dcc9be28385600f56066cef92a38ad
[ "MIT" ]
1
2022-03-02T17:07:20.000Z
2022-03-02T17:07:20.000Z
venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/raw/GL/VERSION/GL_1_3.py
temelkirci/RealTime_6DOF_Motion_Editor
a8b8d4c4d2dcc9be28385600f56066cef92a38ad
[ "MIT" ]
null
null
null
venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/raw/GL/VERSION/GL_1_3.py
temelkirci/RealTime_6DOF_Motion_Editor
a8b8d4c4d2dcc9be28385600f56066cef92a38ad
[ "MIT" ]
null
null
null
'''OpenGL extension VERSION.GL_1_3 Automatically generated by the get_gl_extensions script, do not edit! ''' from OpenGL import platform, constants, constant, arrays from OpenGL import extensions from OpenGL.GL import glget import ctypes EXTENSION_NAME = 'GL_VERSION_GL_1_3' _DEPRECATED = False GL_TEXTURE0 = constant.C...
56.52795
219
0.805626
691b031e0dafdc1e01aed461781a4174ceb79f71
13,474
py
Python
nova/tests/fake_policy.py
bopopescu/OpenStack-DNRM-Nova
7354f378398850113ac93b511547ed05218dc770
[ "Apache-2.0" ]
null
null
null
nova/tests/fake_policy.py
bopopescu/OpenStack-DNRM-Nova
7354f378398850113ac93b511547ed05218dc770
[ "Apache-2.0" ]
null
null
null
nova/tests/fake_policy.py
bopopescu/OpenStack-DNRM-Nova
7354f378398850113ac93b511547ed05218dc770
[ "Apache-2.0" ]
1
2020-07-24T09:10:21.000Z
2020-07-24T09:10:21.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (c) 2012 OpenStack Foundation # # 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 # # ...
38.829971
77
0.684429
591bccf0245306534151cad74302b718d7c98889
1,247
py
Python
fader.py
adamholdenyall/barbatos-eyes
a938a15dc422731a3f5d49b6223fe07e07930ec6
[ "MIT" ]
null
null
null
fader.py
adamholdenyall/barbatos-eyes
a938a15dc422731a3f5d49b6223fe07e07930ec6
[ "MIT" ]
null
null
null
fader.py
adamholdenyall/barbatos-eyes
a938a15dc422731a3f5d49b6223fe07e07930ec6
[ "MIT" ]
null
null
null
#Adapted from Fader class from https://jjmojojjmojo.github.io/time-based-fading.html import time class Fader: def __init__(self, palette, interval=0.1): self.checkin = time.monotonic() self.color = 0 self.interval = interval self.palette = palette self.max = len(self.palett...
25.979167
84
0.590217
4c4da081429b9a6cd1d0d1e5a742d90fdd8418e7
7,088
py
Python
code.py
Shreyaakar/analyzing-weather-dataset
a5157f89ecd5c351fe78c33d9da1bccf02b480bc
[ "MIT" ]
null
null
null
code.py
Shreyaakar/analyzing-weather-dataset
a5157f89ecd5c351fe78c33d9da1bccf02b480bc
[ "MIT" ]
null
null
null
code.py
Shreyaakar/analyzing-weather-dataset
a5157f89ecd5c351fe78c33d9da1bccf02b480bc
[ "MIT" ]
null
null
null
# -------------- import pandas as pd import numpy as np from scipy.stats import mode #Code for categorical variable def categorical(df): """ Extract names of categorical column This function accepts a dataframe and returns categorical list, containing the names of categorical columns(categor...
37.502646
242
0.709791
c29a73cb40739ca699b9292f65be7ff74399272d
764
py
Python
datadog/remove-users.py
Assassinkin/t5adhrit
a4a9bcde58c8d429e65d92f4316740a91d0b73cc
[ "MIT" ]
13
2019-01-08T14:00:04.000Z
2021-07-30T09:37:23.000Z
datadog/remove-users.py
PsyanticY/t5adhrit
6be0e96c70282ce8fa7a8f644df14448bfc540b7
[ "MIT" ]
null
null
null
datadog/remove-users.py
PsyanticY/t5adhrit
6be0e96c70282ce8fa7a8f644df14448bfc540b7
[ "MIT" ]
null
null
null
#!/bin/python from datadog import initialize, api import argparse options = { 'api_key': '2fqsdfsdqfsdfsfsffdfsdfsdfsb7c3d816', 'app_key': '027f36605d98fdsfsdfsdfsdfsdf fsds qdf sqdf de7' } initialize(**options) parser = argparse.ArgumentParser(description="Add description to security groups") parser.add_arg...
30.56
111
0.736911
3696f068badb42865cf7fc190ab51d74bcc50fe1
9,440
py
Python
src/datadog_api_client/v1/model/gcp_account.py
MichaelTROEHLER/datadog-api-client-python
12c46626622fb1277bb1e172753b342c671348bd
[ "Apache-2.0" ]
null
null
null
src/datadog_api_client/v1/model/gcp_account.py
MichaelTROEHLER/datadog-api-client-python
12c46626622fb1277bb1e172753b342c671348bd
[ "Apache-2.0" ]
null
null
null
src/datadog_api_client/v1/model/gcp_account.py
MichaelTROEHLER/datadog-api-client-python
12c46626622fb1277bb1e172753b342c671348bd
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2019-Present Datadog, Inc. import re # noqa: F401 import sys # noqa: F401 import nulltype # ...
46.732673
250
0.594703
784c9af5c74aac37a254e986bf47671aa4213bc5
409
py
Python
cracking-code-interview/chapter_02/intersection.py
italo-batista/problems-solving
f83ad34f0abebd52925c4020635556f20743ba06
[ "MIT" ]
null
null
null
cracking-code-interview/chapter_02/intersection.py
italo-batista/problems-solving
f83ad34f0abebd52925c4020635556f20743ba06
[ "MIT" ]
null
null
null
cracking-code-interview/chapter_02/intersection.py
italo-batista/problems-solving
f83ad34f0abebd52925c4020635556f20743ba06
[ "MIT" ]
null
null
null
import sys sys.path.append('./linkedlist') from linkedlist import LinkedList, Node def has_intersection(ll1, ll2): tail1 = None curr_node = ll1.head while curr_node: tail1 = curr_node curr_node = curr_node.next tail2 = None curr_node = ll2.head while curr_node: tail2 = ...
20.45
39
0.643032
cc932ac152ff1261058bfc68535a241a33b5b90c
354
py
Python
core/main.py
Vinicius-Soares/nikos-TD
f5c720f3826bf88d04b8898f2de3b488fb2dd60f
[ "MIT" ]
null
null
null
core/main.py
Vinicius-Soares/nikos-TD
f5c720f3826bf88d04b8898f2de3b488fb2dd60f
[ "MIT" ]
null
null
null
core/main.py
Vinicius-Soares/nikos-TD
f5c720f3826bf88d04b8898f2de3b488fb2dd60f
[ "MIT" ]
null
null
null
from .states import gameplay, menu, credits, gameover from . import game def main(): app = game.Control() state_dict = { "MENU": menu.Menu(), "CREDITS": credits.Credits(), "GAMEPLAY": gameplay.Gameplay(), "GAMEOVER": gameover.Gameover() } app.state_machine.setup_states(s...
25.285714
54
0.615819
0db6b1470698e1f5c2543453c936fdbdbdd0bac0
2,464
py
Python
aiohttp/resolver.py
Qix-/aiohttp
aee067dccad3dc0e79778a1b213105f20bf39baf
[ "Apache-2.0" ]
2
2020-08-09T14:24:57.000Z
2020-09-20T16:33:29.000Z
aiohttp/resolver.py
Qix-/aiohttp
aee067dccad3dc0e79778a1b213105f20bf39baf
[ "Apache-2.0" ]
8
2020-08-09T11:03:32.000Z
2020-10-28T15:00:44.000Z
aiohttp/resolver.py
Qix-/aiohttp
aee067dccad3dc0e79778a1b213105f20bf39baf
[ "Apache-2.0" ]
1
2020-10-22T21:25:03.000Z
2020-10-22T21:25:03.000Z
import socket from typing import Any, Dict, List from .abc import AbstractResolver from .helpers import get_running_loop __all__ = ('ThreadedResolver', 'AsyncResolver', 'DefaultResolver') try: import aiodns # aiodns_default = hasattr(aiodns.DNSResolver, 'gethostbyname') except ImportError: # pragma: no cove...
30.8
77
0.606737
645927565080b350c88b1c47fcff05b71ecbe4ff
513
py
Python
external/emulation/emulation/_filesystem.py
jacnugent/fv3net
84958651bdd17784fdab98f87ad0d65414c03368
[ "MIT" ]
5
2021-03-20T22:42:40.000Z
2021-06-30T18:39:36.000Z
external/emulation/emulation/_filesystem.py
jacnugent/fv3net
84958651bdd17784fdab98f87ad0d65414c03368
[ "MIT" ]
195
2021-09-16T05:47:18.000Z
2022-03-31T22:03:15.000Z
external/emulation/emulation/_filesystem.py
ai2cm/fv3net
e62038aee0a97d6207e66baabd8938467838cf51
[ "MIT" ]
1
2021-06-16T22:04:24.000Z
2021-06-16T22:04:24.000Z
# keras has several routines which interact with file paths directly as opposed to # filesystem objects, which means we need these wrappers so we can allow remote paths import contextlib import tempfile import fsspec @contextlib.contextmanager def get_dir(path: str): with tempfile.TemporaryDirectory() as tmpdir:...
32.0625
85
0.746589
cc3489e8448a0bc1da12485a54269ad03ed43181
4,749
py
Python
tests/test_logging.py
drazellan/pytorch-lightning
cd42828e5d5ebe64ca481a9b744c52bca4c96c22
[ "Apache-2.0" ]
null
null
null
tests/test_logging.py
drazellan/pytorch-lightning
cd42828e5d5ebe64ca481a9b744c52bca4c96c22
[ "Apache-2.0" ]
null
null
null
tests/test_logging.py
drazellan/pytorch-lightning
cd42828e5d5ebe64ca481a9b744c52bca4c96c22
[ "Apache-2.0" ]
null
null
null
import os.path import pickle import shutil import numpy as np import torch from pytorch_lightning import Trainer from pytorch_lightning.testing import LightningTestModel from pytorch_lightning.logging import LightningLoggerBase, rank_zero_only from .test_models import get_hparams, get_test_tube_logger, init_save_dir,...
24.606218
89
0.646241
e4eb7ae354729c745de12cfcd83a01e3e6d43009
4,350
py
Python
cms/cms_plugins.py
stefanfoulis/django-cms
5af564879b4222aa00a8ee27fbb7d1b3ae0cbde5
[ "BSD-3-Clause" ]
null
null
null
cms/cms_plugins.py
stefanfoulis/django-cms
5af564879b4222aa00a8ee27fbb7d1b3ae0cbde5
[ "BSD-3-Clause" ]
3
2021-06-08T19:03:14.000Z
2022-03-11T23:12:38.000Z
cms/cms_plugins.py
stefanfoulis/django-cms
5af564879b4222aa00a8ee27fbb7d1b3ae0cbde5
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from cms.models import CMSPlugin, Placeholder from cms.models.aliaspluginmodel import AliasPluginModel from cms.models.placeholderpluginmodel import PlaceholderReference from cms.plugin_base import CMSPluginBase, PluginMenuItem from cms.plugin_pool import plugin_pool from cms.plugin_rendering im...
38.839286
109
0.665977
eb205b0a616ae0f467fd400c7d198df3d62d7a93
1,212
py
Python
djangoproject/custom_user/migrations/0004_auto_20190717_2001.py
moonmirXD/E-barangay
211df250044e30bfb0e56951438f30a0b97e23a8
[ "bzip2-1.0.6" ]
null
null
null
djangoproject/custom_user/migrations/0004_auto_20190717_2001.py
moonmirXD/E-barangay
211df250044e30bfb0e56951438f30a0b97e23a8
[ "bzip2-1.0.6" ]
null
null
null
djangoproject/custom_user/migrations/0004_auto_20190717_2001.py
moonmirXD/E-barangay
211df250044e30bfb0e56951438f30a0b97e23a8
[ "bzip2-1.0.6" ]
null
null
null
# Generated by Django 2.1.7 on 2019-07-17 12:01 import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('custom_user', '0003_auto_20190717_1115'), ] operations = [ migrations.AlterField( model_name='user...
40.4
225
0.64934
ec4699f67d736f5e141b69fde0c0d33165016387
24,943
py
Python
google/cloud/ndb/_gql.py
dhaigh/python-ndb
7b0769236841cea1e864ae1e928a7b7021d300dc
[ "Apache-2.0" ]
null
null
null
google/cloud/ndb/_gql.py
dhaigh/python-ndb
7b0769236841cea1e864ae1e928a7b7021d300dc
[ "Apache-2.0" ]
null
null
null
google/cloud/ndb/_gql.py
dhaigh/python-ndb
7b0769236841cea1e864ae1e928a7b7021d300dc
[ "Apache-2.0" ]
null
null
null
import re import six from google.cloud.ndb import exceptions from google.cloud.ndb import query as query_module from google.cloud.ndb import model from google.cloud.ndb import _datastore_query class GQL(object): """A GQL parser for NDB queries. GQL is a SQL-like language which supports more object-like sema...
31.734097
83
0.560839
576bba13cdfbba5ec9463cc26dbd3f1cf27b56fc
1,315
py
Python
magpie/alembic/versions/2020-10-13_5f2648b8ff49_resource_type_process.py
Ouranosinc/Magpie
24c4ec2d3f98eb71fba7b199281882dbc62b6693
[ "Apache-2.0" ]
null
null
null
magpie/alembic/versions/2020-10-13_5f2648b8ff49_resource_type_process.py
Ouranosinc/Magpie
24c4ec2d3f98eb71fba7b199281882dbc62b6693
[ "Apache-2.0" ]
366
2017-10-04T14:58:52.000Z
2022-03-16T21:44:07.000Z
magpie/alembic/versions/2020-10-13_5f2648b8ff49_resource_type_process.py
Ouranosinc/Magpie
24c4ec2d3f98eb71fba7b199281882dbc62b6693
[ "Apache-2.0" ]
3
2018-09-05T13:46:04.000Z
2021-02-05T14:52:15.000Z
""" Resources of type Process introduced. Revision ID: 5f2648b8ff49 Revises: a2a039e2cff5 Create Date: 2020-10-13 16:20:07.323467 """ from alembic import op from alembic.context import get_context # noqa: F401 from sqlalchemy.dialects.postgresql.base import PGDialect from sqlalchemy.orm.session import sessionmaker f...
28.586957
82
0.755894
cfac9037668e4a52c412a2c61ab00f8109046919
88,827
py
Python
src/azure-cli-core/azure/cli/core/tests/test_profile_v2016_06_01.py
psignoret/azure-cli
1a4a043750315f9a7f2894b4287126089978b615
[ "MIT" ]
1
2020-12-12T02:53:24.000Z
2020-12-12T02:53:24.000Z
src/azure-cli-core/azure/cli/core/tests/test_profile_v2016_06_01.py
psignoret/azure-cli
1a4a043750315f9a7f2894b4287126089978b615
[ "MIT" ]
2
2021-01-15T09:24:07.000Z
2021-01-15T09:30:10.000Z
src/azure-cli-core/azure/cli/core/tests/test_profile_v2016_06_01.py
psignoret/azure-cli
1a4a043750315f9a7f2894b4287126089978b615
[ "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. # --------------------------------------------------------------------...
50.903725
153
0.64978
d65118bdaa2e2a00bbc3269fb1ef1513ef53ffbf
266
py
Python
venv/Lib/site-packages/dask_ml/linear_model/__init__.py
ZhangQingsen/CISC849Proj
ae89693648ead79d97805d663c1db58dfc0786a0
[ "MIT" ]
803
2017-06-16T02:08:30.000Z
2022-03-28T14:02:25.000Z
venv/Lib/site-packages/dask_ml/linear_model/__init__.py
ZhangQingsen/CISC849Proj
ae89693648ead79d97805d663c1db58dfc0786a0
[ "MIT" ]
748
2017-09-24T20:32:33.000Z
2022-03-28T18:49:27.000Z
venv/Lib/site-packages/dask_ml/linear_model/__init__.py
ZhangQingsen/CISC849Proj
ae89693648ead79d97805d663c1db58dfc0786a0
[ "MIT" ]
250
2017-06-15T15:57:18.000Z
2022-03-25T08:31:02.000Z
"""The ``dask_ml.linear_model`` module implements linear models for classification and regression. """ from .glm import LinearRegression, LogisticRegression, PoissonRegression __all__ = [ "LogisticRegression", "LinearRegression", "PoissonRegression", ]
24.181818
72
0.759398
20346afd2806bfc79478736b715bffd7028ce5ff
1,227
py
Python
lib/pygments/tests/test_smarty.py
willemneal/Docky
d3504e1671b4a6557468234c263950bfab461ce4
[ "MIT" ]
null
null
null
lib/pygments/tests/test_smarty.py
willemneal/Docky
d3504e1671b4a6557468234c263950bfab461ce4
[ "MIT" ]
2
2016-11-18T02:24:09.000Z
2017-06-04T08:15:24.000Z
lib/pygments/tests/test_smarty.py
willemneal/Docky
d3504e1671b4a6557468234c263950bfab461ce4
[ "MIT" ]
1
2021-02-08T17:51:42.000Z
2021-02-08T17:51:42.000Z
# -*- coding: utf-8 -*- """ Basic SmartyLexer Test ~~~~~~~~~~~~~~~~~~~~ :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import unittest from pygments.token import Operator, Number, Text, Token from pygments.lexers import SmartyLexer cla...
29.926829
84
0.567237
c081d829580243e265e4053bff8cb152d0af6ffc
447
py
Python
opinionated/fastapi/alembic/env.py
opinionated-code/opinionated-fastapi
9d237237a986604aacf296548619b126b848af0e
[ "MIT" ]
3
2021-08-17T15:42:18.000Z
2022-02-22T11:31:05.000Z
opinionated/fastapi/alembic/env.py
opinionated-code/opinionated-fastapi
9d237237a986604aacf296548619b126b848af0e
[ "MIT" ]
2
2021-08-15T03:18:53.000Z
2021-08-15T03:19:34.000Z
opinionated/fastapi/alembic/env.py
opinionated-code/opinionated-fastapi
9d237237a986604aacf296548619b126b848af0e
[ "MIT" ]
1
2022-02-09T12:53:05.000Z
2022-02-09T12:53:05.000Z
# Do the stuff that needs to be done to load the migrations env; we call functions in migrations.py that does the # actual work - we do it this way in case people want to write their own alembic env.py file instead of using this one from opinionated.fastapi.migrations import load_alembic, run_alembic_migrations # run ...
44.7
118
0.791946
0b560c277aef7e59c189fa7aacc5e2912fbe43d8
18,622
py
Python
xarray/core/missing.py
plogerais/xarray
0f70a876759197388d32d6d9f0317f0fe63e0336
[ "Apache-2.0" ]
2
2019-03-11T12:37:15.000Z
2021-07-16T15:09:41.000Z
xarray/core/missing.py
plogerais/xarray
0f70a876759197388d32d6d9f0317f0fe63e0336
[ "Apache-2.0" ]
2
2018-10-04T06:56:42.000Z
2018-10-04T07:11:13.000Z
xarray/core/missing.py
plogerais/xarray
0f70a876759197388d32d6d9f0317f0fe63e0336
[ "Apache-2.0" ]
1
2019-12-02T09:29:55.000Z
2019-12-02T09:29:55.000Z
from __future__ import absolute_import, division, print_function from collections import Iterable from functools import partial import warnings import numpy as np import pandas as pd from . import rolling from .common import _contains_datetime_like_objects from .computation import apply_ufunc from .pycompat import ...
32.959292
79
0.614327
68ded7231ced83571356957a51c0609abcce0766
4,303
py
Python
system/src/scoring/score.py
nramkissoon/NLP-Final-Project
fe0c2fe018859dd026e97a781f4bdd730e91b680
[ "MIT" ]
null
null
null
system/src/scoring/score.py
nramkissoon/NLP-Final-Project
fe0c2fe018859dd026e97a781f4bdd730e91b680
[ "MIT" ]
null
null
null
system/src/scoring/score.py
nramkissoon/NLP-Final-Project
fe0c2fe018859dd026e97a781f4bdd730e91b680
[ "MIT" ]
null
null
null
import sys def calculate_accuracy(output: list, answer_key: list): correct = 0 total = len(output) assert(len(output) == len(answer_key)) for i in range(len(output)): if output[i] == answer_key[i]: correct+=1 return correct / total def calculate_within_adj_accuracy(output: list...
40.214953
144
0.661631
08d96ca94e5ed7950cf69788d2842d1753e30a02
1,953
py
Python
Algorithms/HieraAlgorithm/HieraTransGen/LLEvictTransGen.py
icsa-caps/HieraGen
4026c1718878d2ef69dd13d3e6e10cab69174fda
[ "MIT" ]
6
2020-07-07T15:45:13.000Z
2021-08-29T06:44:29.000Z
Algorithms/HieraAlgorithm/HieraTransGen/LLEvictTransGen.py
icsa-caps/HieraGen
4026c1718878d2ef69dd13d3e6e10cab69174fda
[ "MIT" ]
null
null
null
Algorithms/HieraAlgorithm/HieraTransGen/LLEvictTransGen.py
icsa-caps/HieraGen
4026c1718878d2ef69dd13d3e6e10cab69174fda
[ "MIT" ]
null
null
null
import copy from typing import Dict, List from DataObjects.ClassState import State from DataObjects.ClassTransition import Transition from Algorithms.HieraAlgorithm.HieraStateTupleClass.CcDirStateTuple import CcDirStateTuple from Algorithms.HieraAlgorithm.HieraTransGen.HieraStateRenameGen import HieraStateRenameGen ...
40.6875
120
0.625192
cfee21fea7f17c524290b73d58436cd6bd0549f8
5,690
py
Python
internal/lib/goldfish_compute_client_test.py
TinkerBoard-Android/tools-acloud
24d4a06dd195458321c206fbacd8333e129d1af7
[ "Apache-2.0" ]
1
2021-11-18T19:08:51.000Z
2021-11-18T19:08:51.000Z
internal/lib/goldfish_compute_client_test.py
LGWingEmulator/tools-acloud
e4cc9ba93c1e6766a2cbc62774d213eecbc246d6
[ "Apache-2.0" ]
null
null
null
internal/lib/goldfish_compute_client_test.py
LGWingEmulator/tools-acloud
e4cc9ba93c1e6766a2cbc62774d213eecbc246d6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2018 - The Android Open Source Project # # 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 requir...
36.948052
78
0.642882
2a0931f9490aa1f1971be65b5aea654e57200aed
69
py
Python
FSGNN/Layers/__init__.py
someshsingh22/Few-Shot-GNN
43cb5da12cff437d55e20ee6b35f6aa1c1e97f5d
[ "MIT" ]
3
2021-05-03T16:20:24.000Z
2021-05-06T16:34:54.000Z
FSGNN/Layers/__init__.py
someshsingh22/Few-Shot-GNN
43cb5da12cff437d55e20ee6b35f6aa1c1e97f5d
[ "MIT" ]
1
2021-09-05T19:21:37.000Z
2021-09-05T19:21:37.000Z
FSGNN/Layers/__init__.py
someshsingh22/Few-Shot-GNN
43cb5da12cff437d55e20ee6b35f6aa1c1e97f5d
[ "MIT" ]
1
2022-03-25T11:09:06.000Z
2022-03-25T11:09:06.000Z
from .Embedder import conv3x3 from .GNN import gmul, Gconv, Wcompute
23
38
0.797101
d50a29b1992c0bb3b95e54104d31d8238c50db4f
223
py
Python
analytics/BeMoBI_PyAnalytics/ExperimentReader.py
xfleckx/BeMoBI_Tools
90a6066648a3249e6ea22165609aaaa763e02f05
[ "MIT" ]
null
null
null
analytics/BeMoBI_PyAnalytics/ExperimentReader.py
xfleckx/BeMoBI_Tools
90a6066648a3249e6ea22165609aaaa763e02f05
[ "MIT" ]
null
null
null
analytics/BeMoBI_PyAnalytics/ExperimentReader.py
xfleckx/BeMoBI_Tools
90a6066648a3249e6ea22165609aaaa763e02f05
[ "MIT" ]
null
null
null
class ExperimentReader(object): """description of class""" def __init__(self, **kwargs): with open( kwargs['fileName'] ) as streamSource: for line in streamSource: pass
18.583333
55
0.569507
5c0122846f2ffd77b0db5d2e1d9a8e8d7922c860
11,267
py
Python
helpDoc/_build/conf.py
ArcGIS/hermes
72a558f943bf055bf05132ced904a8d1b8f3e20e
[ "Apache-2.0" ]
null
null
null
helpDoc/_build/conf.py
ArcGIS/hermes
72a558f943bf055bf05132ced904a8d1b8f3e20e
[ "Apache-2.0" ]
null
null
null
helpDoc/_build/conf.py
ArcGIS/hermes
72a558f943bf055bf05132ced904a8d1b8f3e20e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # src documentation build configuration file, created by # sphinx-quickstart on Wed Feb 10 11:52:44 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All c...
31.384401
92
0.716695
acd129cd21429cdf4e7b4bc1782995bef1790d1f
1,728
py
Python
hikka/modules/system.py
hkkio/hikka
aea075750dc3ce7a81c63961671897315b793f39
[ "BSD-3-Clause" ]
2
2020-03-29T14:39:22.000Z
2022-03-11T05:17:55.000Z
hikka/modules/system.py
hkkio/hikka
aea075750dc3ce7a81c63961671897315b793f39
[ "BSD-3-Clause" ]
5
2021-06-02T00:37:27.000Z
2022-03-12T00:14:43.000Z
hikka/modules/system.py
hkkio/hikka
aea075750dc3ce7a81c63961671897315b793f39
[ "BSD-3-Clause" ]
2
2019-10-27T08:55:40.000Z
2020-03-25T17:22:49.000Z
from hikka.decorators import auth_required, permission_required from hikka.services.permissions import PermissionService from hikka.services.anime import AnimeService from hikka.tools.parser import RequestParser from hikka.tools import helpers from flask import Blueprint blueprint = Blueprint("system", __name__) @blu...
30.857143
81
0.697917
2d34f45ce8112377d876d5473599e3bf1b003c04
236
py
Python
solfasol/context_processors.py
Solfasol/journo-blog
65c925026050b3c030d3a80481bd0f1811b00c97
[ "MIT" ]
null
null
null
solfasol/context_processors.py
Solfasol/journo-blog
65c925026050b3c030d3a80481bd0f1811b00c97
[ "MIT" ]
null
null
null
solfasol/context_processors.py
Solfasol/journo-blog
65c925026050b3c030d3a80481bd0f1811b00c97
[ "MIT" ]
null
null
null
from solfasol.content.models import Category, Content def generic(request): return { 'categories': Category.objects.all(), 'popular_content': Content.objects.filter(publish=True).order_by('-view_count')[:6], }
26.222222
92
0.686441
6e58a777e0096de387fd12ea68b92b5a8e83b30f
2,942
py
Python
skaben/transport/interfaces.py
skaben/server_core
46ba0551459790dda75abc9cf0ff147fae6d62e8
[ "MIT" ]
null
null
null
skaben/transport/interfaces.py
skaben/server_core
46ba0551459790dda75abc9cf0ff147fae6d62e8
[ "MIT" ]
12
2020-08-14T12:43:04.000Z
2021-09-01T00:22:26.000Z
skaben/transport/interfaces.py
skaben/server_core
46ba0551459790dda75abc9cf0ff147fae6d62e8
[ "MIT" ]
null
null
null
import json import time import traceback from transport.rabbitmq import connection, exchanges, pool def publish_without_producer(body: dict, exchange: str, routing_key: str): with pool.acquire() as channel: prod = connection.Producer(channel) prod.publish(body, exchange=excha...
28.288462
81
0.577498
b578ddb054a08927a1e402018e32463249f45abc
63
py
Python
pysac/plot/__init__.py
SolarDrew/pysac
9fd86dd03966b7e7f90653a47a2ccca7964c83bc
[ "BSD-2-Clause" ]
null
null
null
pysac/plot/__init__.py
SolarDrew/pysac
9fd86dd03966b7e7f90653a47a2ccca7964c83bc
[ "BSD-2-Clause" ]
null
null
null
pysac/plot/__init__.py
SolarDrew/pysac
9fd86dd03966b7e7f90653a47a2ccca7964c83bc
[ "BSD-2-Clause" ]
null
null
null
from __future__ import absolute_import from .helpers import *
15.75
38
0.825397
763c2807fbb6e9f843890dc364a286338ed93932
2,446
py
Python
RNN Learning/sequence_example.py
ZLake/Deep_Learning_on_Tensorflow
234fe7c42cc90d99c385dda31c7a4287d0242acf
[ "MIT" ]
null
null
null
RNN Learning/sequence_example.py
ZLake/Deep_Learning_on_Tensorflow
234fe7c42cc90d99c385dda31c7a4287d0242acf
[ "MIT" ]
null
null
null
RNN Learning/sequence_example.py
ZLake/Deep_Learning_on_Tensorflow
234fe7c42cc90d99c385dda31c7a4287d0242acf
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Mon Jan 16 12:47:10 2017 @author: lakezhang """ #============================================================================== # Using tf.SequenceExample #============================================================================== import tensorflow as ...
34.942857
79
0.624693
1bfae6717f512f51b839f0834e4b5f66fbcaa3db
4,319
py
Python
vega/algorithms/nas/auto_lane/auto_lane_nas_codec.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
vega/algorithms/nas/auto_lane/auto_lane_nas_codec.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
vega/algorithms/nas/auto_lane/auto_lane_nas_codec.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. 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...
40.745283
112
0.658023
40c353e033139693d5262eb31300a6575537902d
151
py
Python
app/hooks/logging.py
somespecialone/clever-inspect
8735e0b445c8e7e9b83c627d4a5fbed1428c1891
[ "MIT" ]
1
2022-03-12T05:44:12.000Z
2022-03-12T05:44:12.000Z
app/hooks/logging.py
somespecialone/clever-inspect
8735e0b445c8e7e9b83c627d4a5fbed1428c1891
[ "MIT" ]
null
null
null
app/hooks/logging.py
somespecialone/clever-inspect
8735e0b445c8e7e9b83c627d4a5fbed1428c1891
[ "MIT" ]
null
null
null
from app.core.config import settings from app.core.logging import setup_logging async def logging_startup(): setup_logging(debug=settings.DEBUG)
21.571429
42
0.807947
92740c4e9b14a8ab44e3dbc6f14aad1c441157ca
967
py
Python
setup.py
alonalj/hta
9d267cce0eb037e5aab1ea5787c9b1c9ec0982b1
[ "MIT" ]
2
2021-08-17T20:07:11.000Z
2022-01-13T13:01:20.000Z
setup.py
alonalj/hta
9d267cce0eb037e5aab1ea5787c9b1c9ec0982b1
[ "MIT" ]
null
null
null
setup.py
alonalj/hta
9d267cce0eb037e5aab1ea5787c9b1c9ec0982b1
[ "MIT" ]
1
2021-12-12T07:48:22.000Z
2021-12-12T07:48:22.000Z
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name="hta", version="0.0.2", author="Alona Levy-Jurgenson", author_email="levyalona@gmail.com", description="Statistically assess the level of both spatial and global heterogen...
30.21875
115
0.63909
cd04e4dca5b2a5c1eb7861d4729fcffedf1f8393
117,825
py
Python
models_all_solvable2/syn40m02h.py
grossmann-group/pyomo-MINLP-benchmarking
714f0a0dffd61675649a805683c0627af6b4929e
[ "MIT" ]
7
2019-05-08T19:14:34.000Z
2021-12-24T00:00:40.000Z
models_all_solvable2/syn40m02h.py
grossmann-group/pyomo-MINLP-benchmarking
714f0a0dffd61675649a805683c0627af6b4929e
[ "MIT" ]
null
null
null
models_all_solvable2/syn40m02h.py
grossmann-group/pyomo-MINLP-benchmarking
714f0a0dffd61675649a805683c0627af6b4929e
[ "MIT" ]
2
2020-05-21T22:15:51.000Z
2020-06-02T23:02:08.000Z
# MINLP written by GAMS Convert at 05/15/20 00:51:25 # # Equation counts # Total E G L N X C B # 1213 505 108 600 0 0 0 0 # # Variable counts # x b i s1s s2s sc ...
36.467038
120
0.647494
de199f4ec23a1b51ef5a94c99e727e17a87248af
3,541
py
Python
crispy_forms/tests/forms.py
radicalgraphics/django-crispy-forms
42c84a9b02d885de249c1d003c2e7ad031283c26
[ "MIT" ]
null
null
null
crispy_forms/tests/forms.py
radicalgraphics/django-crispy-forms
42c84a9b02d885de249c1d003c2e7ad031283c26
[ "MIT" ]
null
null
null
crispy_forms/tests/forms.py
radicalgraphics/django-crispy-forms
42c84a9b02d885de249c1d003c2e7ad031283c26
[ "MIT" ]
null
null
null
from django import forms from django.db import models from crispy_forms.helper import FormHelper class TestForm(forms.Form): is_company = forms.CharField(label="company", required=False, widget=forms.CheckboxInput()) email = forms.EmailField(label="email", max_length=30, required=True, widget=forms.TextInput...
30.525862
130
0.633719
f8cd89b0f2ca1a90e02b1cd2824641042a2d8e0a
2,307
py
Python
tests/field_string_test.py
lungdart/packeteer
2c6e0e8683462e17ff095a89f13a10daf29ef9e0
[ "MIT" ]
1
2021-03-01T22:20:58.000Z
2021-03-01T22:20:58.000Z
tests/field_string_test.py
lungdart/packeteer
2c6e0e8683462e17ff095a89f13a10daf29ef9e0
[ "MIT" ]
null
null
null
tests/field_string_test.py
lungdart/packeteer
2c6e0e8683462e17ff095a89f13a10daf29ef9e0
[ "MIT" ]
null
null
null
""" Testing string field packet classes """ #pylint: disable=C0326,W0621 from __future__ import unicode_literals import struct import pytest #pylint: disable=unused-import import six from tests.values.string import good_data #pylint: disable=unused-import from packeteer import packets, fields # Packet classes class V...
31.175676
72
0.666667
1dd8441cc3ac713788521f1f069aaf96e09660e4
8,594
py
Python
python/ray/train/_internal/dataset_spec.py
shrekris-anyscale/ray
d36fd77548e1d83d6510b478f72ac668434458af
[ "Apache-2.0" ]
null
null
null
python/ray/train/_internal/dataset_spec.py
shrekris-anyscale/ray
d36fd77548e1d83d6510b478f72ac668434458af
[ "Apache-2.0" ]
12
2022-03-05T05:37:28.000Z
2022-03-19T07:14:43.000Z
python/ray/train/_internal/dataset_spec.py
shrekris-anyscale/ray
d36fd77548e1d83d6510b478f72ac668434458af
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass from typing import Optional, Union, Dict, Callable, List, TYPE_CHECKING from ray.actor import ActorHandle from ray.air.config import DatasetConfig if TYPE_CHECKING: from ray.data import Dataset, DatasetPipeline from ray.air.preprocessor import Preprocessor RayDataset = Unio...
40.729858
87
0.610891
e898446b9cbeeb8b7ae9599387ac70e6c3ac1839
19,609
py
Python
geocontrib/forms.py
e-babani/geocontrib
dca40cf81f64daad85a5dbac4ab3fbf80d6bbdf6
[ "Apache-2.0" ]
null
null
null
geocontrib/forms.py
e-babani/geocontrib
dca40cf81f64daad85a5dbac4ab3fbf80d6bbdf6
[ "Apache-2.0" ]
null
null
null
geocontrib/forms.py
e-babani/geocontrib
dca40cf81f64daad85a5dbac4ab3fbf80d6bbdf6
[ "Apache-2.0" ]
null
null
null
import json from django.core.serializers.json import DjangoJSONEncoder from django.contrib.gis import forms from django.forms.models import BaseModelFormSet from django.forms.formsets import DELETION_FIELD_NAME from django.forms.models import BaseInlineFormSet from django.forms.models import inlineformset_factory from ...
33.011785
167
0.604008
a0ea7aa1406ecbe5f3d196f05acbd1f4c08871c1
55,620
py
Python
Quanlse/QHamiltonian.py
baidu/Quanlse
f84a9afc66a7a404fc1ee2ea0de110f966491279
[ "Apache-2.0" ]
33
2021-01-22T11:15:32.000Z
2022-03-18T06:04:42.000Z
Quanlse/QHamiltonian.py
baidu/Quanlse
f84a9afc66a7a404fc1ee2ea0de110f966491279
[ "Apache-2.0" ]
null
null
null
Quanlse/QHamiltonian.py
baidu/Quanlse
f84a9afc66a7a404fc1ee2ea0de110f966491279
[ "Apache-2.0" ]
5
2021-01-25T02:56:06.000Z
2022-02-04T13:32:49.000Z
#!/usr/bin/python3 # -*- coding: utf8 -*- # Copyright (c) 2021 Baidu, 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...
42.522936
119
0.583603
868b1e343089292aad503041392d9770f122c536
4,480
py
Python
engine/endpoints/valentine/valentine.py
delftdata/valentine-system
07624fed956b89cf6c8be4d982b9b553624e1ade
[ "Apache-2.0" ]
3
2021-08-28T16:06:50.000Z
2022-03-25T22:33:34.000Z
engine/endpoints/valentine/valentine.py
delftdata/valentine-system
07624fed956b89cf6c8be4d982b9b553624e1ade
[ "Apache-2.0" ]
6
2021-06-08T09:49:48.000Z
2021-08-10T17:06:57.000Z
engine/endpoints/valentine/valentine.py
delftdata/valentine-system
07624fed956b89cf6c8be4d982b9b553624e1ade
[ "Apache-2.0" ]
null
null
null
import json import os import uuid from itertools import product from flask import jsonify, abort, request, Response, Blueprint from engine import VALENTINE_FABRICATED_MINIO_BUCKET, app, VALENTINE_RESULTS_MINIO_BUCKET, TMP_MINIO_BUCKET from engine.db import minio_client from engine.data_sources.minio.minio_utils impor...
53.975904
120
0.69442
bcd86f4e4cbf58e7a40bdc3d60a40b05a94fcbdf
893
py
Python
autostack/error/__tests__/mock_pipe.py
hassan-bazzi/autostack
0072c6b791f328a17d930da5d6934b13cfaf7455
[ "MIT" ]
34
2019-07-31T18:20:12.000Z
2022-01-07T20:31:59.000Z
autostack/error/__tests__/mock_pipe.py
hassan-bazzi/autostack
0072c6b791f328a17d930da5d6934b13cfaf7455
[ "MIT" ]
8
2019-11-14T21:38:32.000Z
2021-12-13T20:08:49.000Z
autostack/error/__tests__/mock_pipe.py
hassan-bazzi/autostack
0072c6b791f328a17d930da5d6934b13cfaf7455
[ "MIT" ]
12
2019-10-28T21:31:20.000Z
2022-03-28T10:04:18.000Z
''' Authors: Elijah Sawyers, Benjamin Sanders Emails: elijahsawyers@gmail.com, ben.sanders97@gmail.com Date: 10/23/2019 Overview: Mocks a pipe. ''' class MockPipe: ''' Mocks a pipe. ''' def __init__(self, readline_returns=''): ''' Initializes a mock pipe with readline return values an...
22.897436
70
0.629339
cd383588259ec3c29e1715369c517599c6a09186
47
py
Python
helikopter/__main__.py
Mohammad-Mohsen/helicopter-helicopter
12b0c57805d97766a0062e671d3403763f74a90d
[ "MIT" ]
8
2021-11-29T02:26:54.000Z
2022-03-14T08:44:28.000Z
helikopter/__main__.py
Mohammad-Mohsen/helicopter-helicopter
12b0c57805d97766a0062e671d3403763f74a90d
[ "MIT" ]
1
2021-12-25T12:55:29.000Z
2021-12-25T12:55:29.000Z
helikopter/__main__.py
Mohammad-Mohsen/helicopter-helicopter
12b0c57805d97766a0062e671d3403763f74a90d
[ "MIT" ]
2
2021-10-01T07:53:45.000Z
2021-11-19T18:13:52.000Z
from helikopter import print_heli print_heli()
15.666667
33
0.851064
6612ccf250b0addc9ffb288072fb31bbd034b4a1
3,124
py
Python
connectedin/settings.py
talkedu/connectedin
70a5432bb5f532234334baff59a5249f5157d3a3
[ "MIT" ]
null
null
null
connectedin/settings.py
talkedu/connectedin
70a5432bb5f532234334baff59a5249f5157d3a3
[ "MIT" ]
null
null
null
connectedin/settings.py
talkedu/connectedin
70a5432bb5f532234334baff59a5249f5157d3a3
[ "MIT" ]
null
null
null
""" Django settings for connectedin project. Generated by 'django-admin startproject' using Django 1.11.2. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ impor...
25.606557
91
0.697503
8f6980364ca2c93a60898575ba4e6084c95ecdf6
2,461
py
Python
tests/unit/s3/test_cors_configuration.py
Yurzs/boto
d739d6c52877699206e69b9901bbe92ea437ba5d
[ "MIT" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
tests/unit/s3/test_cors_configuration.py
Yurzs/boto
d739d6c52877699206e69b9901bbe92ea437ba5d
[ "MIT" ]
4,640
2015-07-08T16:19:08.000Z
2019-12-02T15:01:27.000Z
tests/unit/s3/test_cors_configuration.py
Yurzs/boto
d739d6c52877699206e69b9901bbe92ea437ba5d
[ "MIT" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
#!/usr/bin/env python import unittest from boto.s3.cors import CORSConfiguration CORS_BODY_1 = ( '<CORSConfiguration>' '<CORSRule>' '<AllowedMethod>PUT</AllowedMethod>' '<AllowedMethod>POST</AllowedMethod>' '<AllowedMethod>DELETE</AllowedMethod>' '<AllowedOrigin>http://www.example.com</Allowed...
31.551282
74
0.618854
257ab6f8dd1f716e747d6362d26ef39667d35187
813
py
Python
Week_4/DjangoBlog/DjangoBlog/urls.py
girisagar46/DjangoTrainingClass
373f4151b2ee46ea8f76ffa344603014e87d9764
[ "MIT" ]
null
null
null
Week_4/DjangoBlog/DjangoBlog/urls.py
girisagar46/DjangoTrainingClass
373f4151b2ee46ea8f76ffa344603014e87d9764
[ "MIT" ]
null
null
null
Week_4/DjangoBlog/DjangoBlog/urls.py
girisagar46/DjangoTrainingClass
373f4151b2ee46ea8f76ffa344603014e87d9764
[ "MIT" ]
null
null
null
"""DjangoBlog URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class...
35.347826
79
0.697417
0d46aafa1b0b4f1eef73b078c0e78c7eeecded57
3,764
py
Python
api/models.py
gdelnegro/orders_api
e6cc45e0b486ae5bb50c095174f251a941733d6b
[ "MIT" ]
null
null
null
api/models.py
gdelnegro/orders_api
e6cc45e0b486ae5bb50c095174f251a941733d6b
[ "MIT" ]
null
null
null
api/models.py
gdelnegro/orders_api
e6cc45e0b486ae5bb50c095174f251a941733d6b
[ "MIT" ]
null
null
null
from django.db import models from django.utils.translation import ugettext_lazy as _ from rest_framework.authtoken.models import Token from django.db.models.signals import post_save from django.contrib.auth.models import User from django.dispatch import receiver from phonenumber_field.modelfields import PhoneNumberFiel...
40.913043
113
0.712009
10af6ee04ddf4eb39fde25f8ca531f58ca42f592
15,357
py
Python
venv/lib/python3.6/site-packages/rest_framework/schemas/generators.py
nvmanh/plant
84c9d132a8b5fe5060fda449a4b3972df33d41bc
[ "MIT" ]
4
2018-10-19T04:36:20.000Z
2020-02-13T16:14:09.000Z
venv/lib/python3.6/site-packages/rest_framework/schemas/generators.py
nvmanh/plant
84c9d132a8b5fe5060fda449a4b3972df33d41bc
[ "MIT" ]
16
2020-06-05T20:13:57.000Z
2022-03-11T23:44:03.000Z
venv/lib/python3.6/site-packages/rest_framework/schemas/generators.py
nvmanh/plant
84c9d132a8b5fe5060fda449a4b3972df33d41bc
[ "MIT" ]
1
2021-12-07T16:40:37.000Z
2021-12-07T16:40:37.000Z
""" generators.py # Top-down schema generation See schemas.__init__.py for package overview. """ import re import warnings from collections import Counter, OrderedDict from importlib import import_module from django.conf import settings from django.contrib.admindocs.views import simplify_regex from django.core.exce...
33.24026
123
0.601615
4bd7ca2a0f1cce948b31a81f5ff777d7e2b844d5
24,673
py
Python
qupulse/_program/waveforms.py
Hylta/qupulse
cd941cf46f5a4c47a39d401dcdbaf23c412b8f3a
[ "MIT" ]
2
2021-05-22T00:04:20.000Z
2021-11-17T11:21:46.000Z
qupulse/_program/waveforms.py
bpapajewski/qupulse
c3969a4fa9eabe69c1143ad16e6e3ca5fb9c068e
[ "MIT" ]
null
null
null
qupulse/_program/waveforms.py
bpapajewski/qupulse
c3969a4fa9eabe69c1143ad16e6e3ca5fb9c068e
[ "MIT" ]
null
null
null
"""This module contains all waveform classes Classes: - Waveform: An instantiated pulse which can be sampled to a raw voltage value array. """ import itertools from abc import ABCMeta, abstractmethod from weakref import WeakValueDictionary, ref from typing import Union, Set, Sequence, NamedTuple, Tuple, Any, Iter...
41.889643
120
0.641268
5d16d32887c2a4e78374b9b87f72aa47ef86e99b
1,032
py
Python
incometax_calculator.py
AutomationLife/Python
9777bf06bb5b1be07c125d7c852088ce7a3ca88c
[ "MIT" ]
null
null
null
incometax_calculator.py
AutomationLife/Python
9777bf06bb5b1be07c125d7c852088ce7a3ca88c
[ "MIT" ]
null
null
null
incometax_calculator.py
AutomationLife/Python
9777bf06bb5b1be07c125d7c852088ce7a3ca88c
[ "MIT" ]
null
null
null
personal_allowance = 12_500 personal_allowance_limit = 100_000 basic_band = 37_500 highter_band = 150_000 basic_rate = 0.2 highter_rate = 0.4 additional_rate = 0.45 print(" - Income Tax Calculator - ") salary = float(input("Enter annual salary: ")) if salary > personal_allowance_limit: personal_allowance -= (s...
30.352941
136
0.735465
43b3206145fe4dd42bc6015288bda53526e90625
1,745
py
Python
benchmark/startPyquil2138.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startPyquil2138.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startPyquil2138.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=4 # total number=35 import pyquil from pyquil.api import local_forest_runtime, QVMConnection from pyquil import Program, get_qc from pyquil.gates import * import numpy as np conn = QVMConnection() def make_circuit()-> Program: prog = Program() # circuit begin prog += CNOT(0,3) # number=14 ...
24.928571
64
0.568481
400b62eeacb5ae340fa04801333ab44ba2728c46
26,045
py
Python
WebAPI/trading_assistant_app/app_test.py
bmawji3/trading-assistant-public
d2c299aaaae64302000d622036ec3f7884d48a7f
[ "MIT" ]
1
2022-02-16T05:27:03.000Z
2022-02-16T05:27:03.000Z
WebAPI/trading_assistant_app/app_test.py
bmawji3/trading-assistant-public
d2c299aaaae64302000d622036ec3f7884d48a7f
[ "MIT" ]
null
null
null
WebAPI/trading_assistant_app/app_test.py
bmawji3/trading-assistant-public
d2c299aaaae64302000d622036ec3f7884d48a7f
[ "MIT" ]
null
null
null
import datetime as dt import json import os import time import pandas as pd from sklearn import metrics from sklearn.ensemble import RandomForestClassifier import datetime # Statements with "." allows for relative path importing for WebApp and WebAPI # from .ImportSecurities import * # from .utils.aws_util import * #...
42.696721
122
0.637013
b16fc0bc8b52150ddbbe05ea740c096ff142cf18
6,041
py
Python
main_text_gen_gpt2.py
carlogrisetti/ttsdatasetcreator
6eca5b4329eb4d06c0f03e88f8ec18881608ab98
[ "Apache-2.0" ]
null
null
null
main_text_gen_gpt2.py
carlogrisetti/ttsdatasetcreator
6eca5b4329eb4d06c0f03e88f8ec18881608ab98
[ "Apache-2.0" ]
null
null
null
main_text_gen_gpt2.py
carlogrisetti/ttsdatasetcreator
6eca5b4329eb4d06c0f03e88f8ec18881608ab98
[ "Apache-2.0" ]
null
null
null
import decimal from rich import print from rich.console import Console from rich.table import Table from rich.progress import track import wikipedia import re import os import random import sys from num2words import num2words from spacy.lang.de import German from spacy.lang.en import English from spacy.lang.fr import ...
30.821429
117
0.68151
a91103f27454dc13a38bba63c5379a59779fcd6f
200
py
Python
lecciones/69/expresiones_regulares_5.py
ImAlexisSaez/curso-python-desde-0
c4a84dae0804adefe4ee6024b411d8ed288da759
[ "MIT" ]
2
2020-08-31T02:17:36.000Z
2022-01-29T15:25:27.000Z
lecciones/69/expresiones_regulares_5.py
ImAlexisSaez/curso-python-desde-0
c4a84dae0804adefe4ee6024b411d8ed288da759
[ "MIT" ]
null
null
null
lecciones/69/expresiones_regulares_5.py
ImAlexisSaez/curso-python-desde-0
c4a84dae0804adefe4ee6024b411d8ed288da759
[ "MIT" ]
null
null
null
import re cadena = ''' Vamos a aprender expresiones regulares en Python. Python es un lenguaje de sintaxis sencilla.''' texto_buscar = "Python" print(len(re.findall(texto_buscar, cadena)))
20
53
0.725
2db219dc7e2ed5db58ffd77f185361a025c861eb
362
py
Python
0007/CalPiV2.py
gaoliujiadi/show-me-the-code
24f49e6c002ae6d10b9acc5ad49480c6c87c9a6b
[ "MIT" ]
null
null
null
0007/CalPiV2.py
gaoliujiadi/show-me-the-code
24f49e6c002ae6d10b9acc5ad49480c6c87c9a6b
[ "MIT" ]
null
null
null
0007/CalPiV2.py
gaoliujiadi/show-me-the-code
24f49e6c002ae6d10b9acc5ad49480c6c87c9a6b
[ "MIT" ]
null
null
null
#CalPiV2.py from random import random from time import perf_counter darts = 1000 * 1000 * 10 hits = 0.0 start = perf_counter() for i in range(1,darts+1): x,y = random(),random() dist = pow(x ** 2 + y ** 2,0.5) if dist <= 1.0: hits = hits + 1 pi = 4*(hits/darts) print("pi:{}".format(pi)) print("t...
20.111111
50
0.604972
058988203e5d36ba43b9c72d35bccf0e4cc52729
16,074
py
Python
tests/components/honeywell/test_climate.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
7
2019-02-07T14:14:12.000Z
2019-07-28T06:56:10.000Z
tests/components/honeywell/test_climate.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
58
2020-08-03T07:33:02.000Z
2022-03-31T06:02:05.000Z
tests/components/honeywell/test_climate.py
klauern/home-assistant-core
c18ba6aec0627e6afb6442c678edb5ff2bb17db6
[ "Apache-2.0" ]
14
2018-08-19T16:28:26.000Z
2021-09-02T18:26:53.000Z
"""The test the Honeywell thermostat module.""" import unittest from unittest import mock import pytest import requests.exceptions import somecomfort import voluptuous as vol from homeassistant.components.climate.const import ( ATTR_FAN_MODE, ATTR_FAN_MODES, ATTR_HVAC_MODES, ) import homeassistant.compone...
37.294664
88
0.628095
b41edfeda2fa96850e342194c36ca43044cab3f6
4,123
py
Python
views/buttons.py
TheRealKeto/AppleReleases
68968d8ffca4fb9afff4144ceb3239fff5bd607c
[ "MIT" ]
14
2021-12-28T21:18:04.000Z
2022-03-19T18:27:27.000Z
views/buttons.py
m1stadev/release-bot
fd512006a91a38411513f9d8bc313facf1e093ae
[ "MIT" ]
null
null
null
views/buttons.py
m1stadev/release-bot
fd512006a91a38411513f9d8bc313facf1e093ae
[ "MIT" ]
2
2022-01-02T11:38:04.000Z
2022-02-20T20:44:09.000Z
from typing import Mapping, Optional import discord class SelectButton(discord.ui.Button['SelectView']): def __init__(self, button: dict): super().__init__(**button) self.button_type = button['label'] async def callback(self, interaction: discord.Interaction): self.view.answer = sel...
35.239316
131
0.635217
b6d16377a6ddd8feae584fe5ee0f6f227590c39f
758
py
Python
celescope/citeseq/count_cite.py
susucy/CeleScope
a5d9501ff8bd9dc067b9718070876acb0767a6cf
[ "MIT" ]
null
null
null
celescope/citeseq/count_cite.py
susucy/CeleScope
a5d9501ff8bd9dc067b9718070876acb0767a6cf
[ "MIT" ]
null
null
null
celescope/citeseq/count_cite.py
susucy/CeleScope
a5d9501ff8bd9dc067b9718070876acb0767a6cf
[ "MIT" ]
null
null
null
import argparse from .Count_cite import Count_cite def get_opts_count_cite(parser, sub_program): parser.add_argument("--match_dir", help="matched scRNA-Seq CeleScope directory path", required=True) if sub_program: parser.add_argument('--outdir', help='output dir', required=True) parser.add_argu...
32.956522
104
0.686016
ec7c220a37454e437626cd0d0e8d3e09453da33e
1,834
py
Python
interlink/forms.py
FarsetLabs/farset-nadine
f0f5e81a9fbe98a4333f6318443fefbb5517c60f
[ "Apache-2.0" ]
null
null
null
interlink/forms.py
FarsetLabs/farset-nadine
f0f5e81a9fbe98a4333f6318443fefbb5517c60f
[ "Apache-2.0" ]
4
2021-03-19T16:10:13.000Z
2022-03-12T00:55:50.000Z
interlink/forms.py
FarsetLabs/farset-nadine
f0f5e81a9fbe98a4333f6318443fefbb5517c60f
[ "Apache-2.0" ]
null
null
null
from django import forms from django.contrib.sites.models import Site from interlink.models import MailingList, OutgoingMail class MailingListSubscriptionForm(forms.Form): subscribe = forms.CharField(required=False, widget=forms.HiddenInput) mailing_list_id = forms.IntegerField(required=True, widget=forms.Hi...
65.5
583
0.729008
df815448dc609ed0cff00c23b406cabb673cda9b
7,400
py
Python
server/NucleiDetection/NucleiDetection.py
fbudin69500/HistomicsTK
bd2cf43062d981012ad4f53ff5b84d1d329f3eab
[ "Apache-2.0" ]
null
null
null
server/NucleiDetection/NucleiDetection.py
fbudin69500/HistomicsTK
bd2cf43062d981012ad4f53ff5b84d1d329f3eab
[ "Apache-2.0" ]
1
2021-03-26T00:40:17.000Z
2021-03-26T00:40:17.000Z
server/NucleiDetection/NucleiDetection.py
fbudin69500/HistomicsTK
bd2cf43062d981012ad4f53ff5b84d1d329f3eab
[ "Apache-2.0" ]
null
null
null
import os import sys import json import time import itertools import numpy as np import dask import histomicstk.preprocessing.color_normalization as htk_cnorm import histomicstk.preprocessing.color_deconvolution as htk_cdeconv import histomicstk.utils as htk_utils import large_image from ctk_cli import CLIArgumentP...
27.306273
80
0.650676
994d5bc2b346073fd89bf662ec130ee694c09fe6
6,919
py
Python
synthesize.py
PandoraLS/FastSpeech2
25b8d779501f7773870fdf7a2f6c2e8a9fc431a1
[ "MIT" ]
null
null
null
synthesize.py
PandoraLS/FastSpeech2
25b8d779501f7773870fdf7a2f6c2e8a9fc431a1
[ "MIT" ]
null
null
null
synthesize.py
PandoraLS/FastSpeech2
25b8d779501f7773870fdf7a2f6c2e8a9fc431a1
[ "MIT" ]
null
null
null
import re import argparse from string import punctuation import torch import yaml import numpy as np from torch.utils.data import DataLoader from g2p_en import G2p from pypinyin import pinyin, Style from utils.model import get_model, get_vocoder from utils.tools import to_device, synth_samples from dataset import Tex...
31.026906
181
0.610637
1741685a2475cff26142bef6546c5669699f4e49
2,750
py
Python
instabot/RateControl.py
AlexBGoode/instabot
f4ab651a65f4280c3eb714d8f440c1af0e1bb869
[ "Apache-2.0" ]
1
2017-07-09T20:11:24.000Z
2017-07-09T20:11:24.000Z
instabot/RateControl.py
AlexBGoode/instabot
f4ab651a65f4280c3eb714d8f440c1af0e1bb869
[ "Apache-2.0" ]
null
null
null
instabot/RateControl.py
AlexBGoode/instabot
f4ab651a65f4280c3eb714d8f440c1af0e1bb869
[ "Apache-2.0" ]
null
null
null
from random import randint from time import time, sleep import logging class RateControl(object): def __init__(self, timeFrame, rateLimit, lookAheadRatio=.1): self.logger = logging.getLogger() if timeFrame <= 0 or rateLimit <= 0: raise ValueError('timeFrame and rateLimit are expected ...
38.194444
100
0.617455