hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
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
251
max_issues_repo_name
stringlengths
4
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
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
65106635994d91a479c18b140e8932588b6e8457
2,385
py
Python
result/forms.py
Uqhs-1/uqhs
1c7199d8c23a9d9eb3f75b1e36633a145fd2cd40
[ "MIT" ]
3
2020-06-16T20:03:31.000Z
2021-01-17T20:45:51.000Z
result/forms.py
Uqhs-1/uqhs
1c7199d8c23a9d9eb3f75b1e36633a145fd2cd40
[ "MIT" ]
8
2020-02-08T09:04:08.000Z
2021-06-09T18:31:03.000Z
result/forms.py
Uqhs-1/uqhs
1c7199d8c23a9d9eb3f75b1e36633a145fd2cd40
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Jan 23 08:25:37 2019 @author: AdeolaOlalekan """ from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from .models import BTUTOR, CNAME, Edit_User, QSUBJECT, Post ####################################...
29.8125
154
0.609224
6512ccce127a82c68b221b5453c2086be0c2bb8b
3,165
py
Python
00-basic/04_01_data_structures_lists.py
TranXuanHoang/Python
6e62282540a7f1e2b2d0dff99b1803715bf6c4b0
[ "CNRI-Python" ]
null
null
null
00-basic/04_01_data_structures_lists.py
TranXuanHoang/Python
6e62282540a7f1e2b2d0dff99b1803715bf6c4b0
[ "CNRI-Python" ]
null
null
null
00-basic/04_01_data_structures_lists.py
TranXuanHoang/Python
6e62282540a7f1e2b2d0dff99b1803715bf6c4b0
[ "CNRI-Python" ]
null
null
null
# Lists # Basics foods = ['rice', 'Meat', 'vegetables', 'Eggs'] print(foods) # Same as foods[len(foods):] = ['butter'] foods.append('butter') print(foods) # Same as foods[len(foods):] = ['tomatoes', 'chili sauce'] foods.extend(['tomatoes', 'Chili sauce']) print(foods) # Reverse order of elements in th...
25.524194
79
0.581043
6513f213b7ae02509adbae8bebb7d8031a8a3323
110
py
Python
pond5/blueprints/webui/views.py
IvanFrezzaJr/pond5
02cc39262b33eac59727ee416645f7006a99b099
[ "MIT" ]
null
null
null
pond5/blueprints/webui/views.py
IvanFrezzaJr/pond5
02cc39262b33eac59727ee416645f7006a99b099
[ "MIT" ]
null
null
null
pond5/blueprints/webui/views.py
IvanFrezzaJr/pond5
02cc39262b33eac59727ee416645f7006a99b099
[ "MIT" ]
null
null
null
from flask import render_template
18.333333
60
0.745455
6514ff55c2d00ee1deed3eaa7d8b92b095c218ad
141
py
Python
featureflags/__init__.py
enverbisevac/ff-python-server-sdk
e7c809229d13517e0bf4b28fc0a556e693c9034e
[ "Apache-2.0" ]
null
null
null
featureflags/__init__.py
enverbisevac/ff-python-server-sdk
e7c809229d13517e0bf4b28fc0a556e693c9034e
[ "Apache-2.0" ]
null
null
null
featureflags/__init__.py
enverbisevac/ff-python-server-sdk
e7c809229d13517e0bf4b28fc0a556e693c9034e
[ "Apache-2.0" ]
null
null
null
"""Top-level package for Feature Flag Server SDK.""" __author__ = """Enver Bisevac""" __email__ = "enver@bisevac.com" __version__ = "0.1.0"
23.5
52
0.695035
651500c04d2f53be7a66dad2701232feba9db8b0
4,919
py
Python
MachineLearning/potential_field.py
JhaAman/lihax
c0421f62d7b86908a7c74251c1dc35b1407c4568
[ "MIT" ]
null
null
null
MachineLearning/potential_field.py
JhaAman/lihax
c0421f62d7b86908a7c74251c1dc35b1407c4568
[ "MIT" ]
null
null
null
MachineLearning/potential_field.py
JhaAman/lihax
c0421f62d7b86908a7c74251c1dc35b1407c4568
[ "MIT" ]
null
null
null
#!/usr/bin/env python import math, socket, struct, numpy as np, sys # Get the gradient of the potential of an obstacle # particle at (ox, oy) with the origin at (mx, my) # Get the potential of an obstacle particle at (ox, oy) # with the origin at (mx, my) pf = PotentialField() pf.receive_lidar()
42.042735
237
0.584468
6515124d4e3250bc474b369d4832ef055edc0d00
5,031
py
Python
decomp/c/gen.py
nihilus/epanos
998a9e3f45337df98b1bbc40b64954b079a1d4de
[ "MIT" ]
1
2017-07-25T00:05:09.000Z
2017-07-25T00:05:09.000Z
decomp/c/gen.py
nihilus/epanos
998a9e3f45337df98b1bbc40b64954b079a1d4de
[ "MIT" ]
null
null
null
decomp/c/gen.py
nihilus/epanos
998a9e3f45337df98b1bbc40b64954b079a1d4de
[ "MIT" ]
null
null
null
from itertools import imap, chain from pycparser import c_generator, c_ast from decomp import data, ida from decomp.c import decl as cdecl, types as ep_ct from decomp.cpu import ida as cpu_ida XXX_INTRO_HACK = cpu_ida.ida_current_cpu().insns.support_header + ''' #include <stdint.h> typedef union EPANOS_REG { uint8...
33.993243
135
0.624329
6515bd49015bb821ccbe010e9e5fbc460bed9de7
1,112
py
Python
ocelot/io/__init__.py
cmutel/Ocelot
20e9639570c43f84ae255750a6c402ebabe00981
[ "BSD-3-Clause" ]
21
2016-06-01T14:10:07.000Z
2022-02-28T01:56:31.000Z
ocelot/io/__init__.py
cmutel/Ocelot
20e9639570c43f84ae255750a6c402ebabe00981
[ "BSD-3-Clause" ]
152
2016-05-16T21:33:22.000Z
2019-06-24T12:57:14.000Z
ocelot/io/__init__.py
cmutel/Ocelot
20e9639570c43f84ae255750a6c402ebabe00981
[ "BSD-3-Clause" ]
12
2016-09-05T15:35:59.000Z
2021-07-03T19:28:47.000Z
# -*- coding: utf-8 -*- __all__ = ( "extract_directory", "cleanup_data_directory", "dataset_schema", "validate_directory", "validate_directory_against_xsd", ) from .extract_ecospold2 import extract_ecospold2_directory from ..filesystem import check_cache_directory, get_from_cache, cache_data import...
31.771429
82
0.75
65164ebc73c88c773a56c1c8312715ea40cc9b6c
626
py
Python
Data-Structure/Basic-Struct/Stack-Queues/Evaluation-of-Expressions/Eval.py
tz70s/lesson
a647105682bb0d1420c450d0cd7c56fe1de6e21b
[ "Apache-2.0" ]
1
2015-08-27T17:27:43.000Z
2015-08-27T17:27:43.000Z
Data-Structure/Basic-Struct/Stack-Queues/Evaluation-of-Expressions/Eval.py
tz70s/lesson
a647105682bb0d1420c450d0cd7c56fe1de6e21b
[ "Apache-2.0" ]
null
null
null
Data-Structure/Basic-Struct/Stack-Queues/Evaluation-of-Expressions/Eval.py
tz70s/lesson
a647105682bb0d1420c450d0cd7c56fe1de6e21b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import stack import queue opset = {'*','+','(',")"} if __name__ == "__main__": eval()
17.885714
41
0.469649
65185342728b8ea46c26ce2b78a8072737b087c9
2,102
py
Python
example/py/CHSHInequality/chsh_inequality.py
samn33/qlazy
b215febfec0a3b8192e57a20ec85f14576745a89
[ "Apache-2.0" ]
15
2019-04-09T13:02:58.000Z
2022-01-13T12:57:08.000Z
example/py/CHSHInequality/chsh_inequality.py
samn33/qlazy
b215febfec0a3b8192e57a20ec85f14576745a89
[ "Apache-2.0" ]
3
2020-02-26T16:21:18.000Z
2022-03-31T00:46:53.000Z
example/py/CHSHInequality/chsh_inequality.py
samn33/qlazy
b215febfec0a3b8192e57a20ec85f14576745a89
[ "Apache-2.0" ]
3
2021-01-28T05:38:55.000Z
2021-10-30T12:19:19.000Z
import random from qlazy import QState if __name__ == '__main__': classical_strategy() quantum_strategy()
25.634146
77
0.450523
65192f76bf69dd1b91580c7c3d8c5be7720e2e54
410
py
Python
peerplays/blockchainobject.py
farisshajahan/python-peerplays
260e43d39307554f5c35574fe7a6f5451a51697f
[ "MIT" ]
10
2019-03-14T03:09:42.000Z
2021-03-17T10:20:05.000Z
peerplays/blockchainobject.py
farisshajahan/python-peerplays
260e43d39307554f5c35574fe7a6f5451a51697f
[ "MIT" ]
8
2019-04-02T17:07:20.000Z
2020-04-30T08:24:01.000Z
peerplays/blockchainobject.py
farisshajahan/python-peerplays
260e43d39307554f5c35574fe7a6f5451a51697f
[ "MIT" ]
4
2019-04-02T17:00:22.000Z
2021-08-09T11:28:20.000Z
# -*- coding: utf-8 -*- from .instance import BlockchainInstance from graphenecommon.blockchainobject import ( BlockchainObject as GrapheneBlockchainObject, BlockchainObjects as GrapheneBlockchainObjects, ObjectCache, )
22.777778
51
0.807317
651a2825c2a207bb2573070d6b6a820935667fe9
102
py
Python
Code/Python/LeetCode/tempCodeRunnerFile.py
dks1018/CoffeeShopCoding
13ac1700673c86c601eb2758570920620a956e4c
[ "ADSL" ]
null
null
null
Code/Python/LeetCode/tempCodeRunnerFile.py
dks1018/CoffeeShopCoding
13ac1700673c86c601eb2758570920620a956e4c
[ "ADSL" ]
null
null
null
Code/Python/LeetCode/tempCodeRunnerFile.py
dks1018/CoffeeShopCoding
13ac1700673c86c601eb2758570920620a956e4c
[ "ADSL" ]
null
null
null
arr_1 = ["1","2","3","4","5","6","7"] arr_2 = [] for n in arr_1: arr_2.insert(0,n) print(arr_2)
12.75
37
0.5
651ec842e96c1b1f0d0e9ffe6067c0199b8a1424
124
py
Python
pyvat/utils.py
ponyville/pyvat
75fb781d3c00cf323544eb929a96344c1978e2c8
[ "Apache-2.0" ]
48
2015-07-22T12:02:20.000Z
2022-02-07T16:54:13.000Z
pyvat/utils.py
ponyville/pyvat
75fb781d3c00cf323544eb929a96344c1978e2c8
[ "Apache-2.0" ]
34
2015-03-27T17:47:38.000Z
2022-02-08T18:14:55.000Z
pyvat/utils.py
ponyville/pyvat
75fb781d3c00cf323544eb929a96344c1978e2c8
[ "Apache-2.0" ]
40
2015-04-08T14:03:06.000Z
2022-02-09T12:29:04.000Z
from decimal import Decimal
20.666667
66
0.782258
651f360c505b719ccafc01d1fe50f1f24c9b71d7
117
py
Python
pype/modules/idle_manager/__init__.py
simonebarbieri/pype
a6dc83aa1300738749cbe8e5e2e6d2d1794e0289
[ "MIT" ]
null
null
null
pype/modules/idle_manager/__init__.py
simonebarbieri/pype
a6dc83aa1300738749cbe8e5e2e6d2d1794e0289
[ "MIT" ]
null
null
null
pype/modules/idle_manager/__init__.py
simonebarbieri/pype
a6dc83aa1300738749cbe8e5e2e6d2d1794e0289
[ "MIT" ]
null
null
null
from .idle_module import ( IdleManager, IIdleManager ) __all__ = ( "IdleManager", "IIdleManager" )
10.636364
26
0.632479
652012211d75f39757469a76ffbd1e2d590d912a
289
py
Python
server/src/tests/samples/typeConstraint3.py
higoshi/pyright
183c0ef56d2c010d28018149949cda1a40aa59b8
[ "MIT" ]
null
null
null
server/src/tests/samples/typeConstraint3.py
higoshi/pyright
183c0ef56d2c010d28018149949cda1a40aa59b8
[ "MIT" ]
null
null
null
server/src/tests/samples/typeConstraint3.py
higoshi/pyright
183c0ef56d2c010d28018149949cda1a40aa59b8
[ "MIT" ]
null
null
null
# This sample exercises the type analyzer's assert type constraint logic. from typing import Union
19.266667
73
0.643599
65204673556284e6d6670bed61daa5eb343644d4
2,764
py
Python
Attention.py
Pok0923/Time-series-forecasting-model
58c0b1fd151b7fa73be323e8e1a6072876f06d10
[ "MIT" ]
null
null
null
Attention.py
Pok0923/Time-series-forecasting-model
58c0b1fd151b7fa73be323e8e1a6072876f06d10
[ "MIT" ]
null
null
null
Attention.py
Pok0923/Time-series-forecasting-model
58c0b1fd151b7fa73be323e8e1a6072876f06d10
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow import keras from tensorflow.keras import backend as K from keras.models import Sequential,Model from keras.layers import * from keras.optimizers import SGD,Adam def selfattention_timeseries(nb_class, input_dim,): model_input = Input(shape=input_dim) #model_input = SinC...
36.368421
71
0.608538
6523b70720c5c976b6f562eb7fe63867146d03b1
774
py
Python
tests/remix/test_audio_chunk_merger.py
nroldanf/infiniteremixer
5ffc2fc85e9cbebf6196d5baa374ba4630f2e3c0
[ "MIT" ]
null
null
null
tests/remix/test_audio_chunk_merger.py
nroldanf/infiniteremixer
5ffc2fc85e9cbebf6196d5baa374ba4630f2e3c0
[ "MIT" ]
null
null
null
tests/remix/test_audio_chunk_merger.py
nroldanf/infiniteremixer
5ffc2fc85e9cbebf6196d5baa374ba4630f2e3c0
[ "MIT" ]
null
null
null
import numpy as np import pytest from infiniteremixer.remix.audiochunkmerger import AudioChunkMerger
27.642857
85
0.744186
6524869e78875d68bc7830017790dd24a2253209
738
py
Python
app/libpinanny/__init__.py
MelonSmasher/piNanny
2bc3a7b5eda83615e21518a2f36c3844b241d201
[ "MIT" ]
null
null
null
app/libpinanny/__init__.py
MelonSmasher/piNanny
2bc3a7b5eda83615e21518a2f36c3844b241d201
[ "MIT" ]
2
2021-03-10T05:28:36.000Z
2021-09-02T05:40:44.000Z
app/libpinanny/__init__.py
MelonSmasher/piNanny
2bc3a7b5eda83615e21518a2f36c3844b241d201
[ "MIT" ]
null
null
null
from subprocess import PIPE, Popen # Converts celsius temps to fahrenheit # Gets the CPU temperature in degrees C
25.448276
62
0.609756
6525a7237e80a2dde7d058af9b7795a2a3cd2f21
4,247
py
Python
paas-ce/paas/paas/esb/apps/guide/component_template/en/hcp/get_host_list.py
renmcc/bk-PaaS
1c9e4e9cfb40fc3375cd6b5f08af8c84203de246
[ "Apache-2.0" ]
2
2019-09-22T13:54:53.000Z
2021-07-29T02:31:40.000Z
paas-ce/paas/paas/esb/apps/guide/component_template/en/hcp/get_host_list.py
renmcc/bk-PaaS
1c9e4e9cfb40fc3375cd6b5f08af8c84203de246
[ "Apache-2.0" ]
10
2021-02-08T20:32:31.000Z
2022-03-11T23:47:06.000Z
paas-ce/paas/paas/esb/apps/guide/component_template/en/hcp/get_host_list.py
renmcc/bk-PaaS
1c9e4e9cfb40fc3375cd6b5f08af8c84203de246
[ "Apache-2.0" ]
3
2019-08-22T09:05:31.000Z
2021-03-23T14:21:19.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making PaaS (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance ...
30.120567
305
0.536379
6525b9fa24410fbd6e88a3ac0d7c4387bef24c34
1,354
py
Python
pretix_googlepaypasses/views.py
pc-coholic/pretix-googlepaypasses
1591ebf2b53294989ffca6ffcb185842196e034d
[ "Apache-2.0" ]
2
2018-11-02T11:32:21.000Z
2018-12-07T07:18:06.000Z
pretix_googlepaypasses/views.py
pc-coholic/pretix-googlepaypasses
1591ebf2b53294989ffca6ffcb185842196e034d
[ "Apache-2.0" ]
5
2018-10-30T19:49:56.000Z
2018-11-26T21:11:42.000Z
pretix_googlepaypasses/views.py
pc-coholic/pretix-googlepaypasses
1591ebf2b53294989ffca6ffcb185842196e034d
[ "Apache-2.0" ]
null
null
null
import json import logging from json import JSONDecodeError from django.http import ( HttpResponse, HttpResponseBadRequest, HttpResponseForbidden, ) from django.views.decorators.csrf import csrf_exempt from django.views.decorators.http import require_POST from pretix.base.models import Organizer from . import tas...
31.488372
117
0.716396
652624be473f589627bafdda2fb46234674c0cff
12,300
py
Python
alf/utils/checkpoint_utils.py
breakds/alf
b3d60048daee2c9625ba44f778e49570d0d029a7
[ "Apache-2.0" ]
1
2021-11-17T17:08:04.000Z
2021-11-17T17:08:04.000Z
alf/utils/checkpoint_utils.py
ipsec/alf
15fd71896eac5ad0987dbe14a9f630b32e0e131f
[ "Apache-2.0" ]
null
null
null
alf/utils/checkpoint_utils.py
ipsec/alf
15fd71896eac5ad0987dbe14a9f630b32e0e131f
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 Horizon Robotics and ALF Contributors. 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...
39.805825
89
0.579106
6526bd14e91e02ab2897caf04024aa618b204008
956
py
Python
automon/integrations/slack/config.py
TheShellLand/automonisaur
b5f304a44449b8664c93d8a8a3c3cf2d73aa0ce9
[ "MIT" ]
2
2021-09-15T18:35:44.000Z
2022-01-18T05:36:54.000Z
automon/integrations/slack/config.py
TheShellLand/automonisaur
b5f304a44449b8664c93d8a8a3c3cf2d73aa0ce9
[ "MIT" ]
16
2021-08-29T22:51:53.000Z
2022-03-09T16:08:19.000Z
automon/integrations/slack/config.py
TheShellLand/automonisaur
b5f304a44449b8664c93d8a8a3c3cf2d73aa0ce9
[ "MIT" ]
null
null
null
import os from automon.log import Logging log = Logging(name=__name__, level=Logging.ERROR)
35.407407
70
0.707113
652a2bec3a1bbb15dcd3f0465f2e3a5760856d24
182
py
Python
z2z_metadata/__init__.py
Mitchellpkt/z2z-metadata
261a694225efc21d65a9f3be69a9017bbc29864e
[ "MIT" ]
null
null
null
z2z_metadata/__init__.py
Mitchellpkt/z2z-metadata
261a694225efc21d65a9f3be69a9017bbc29864e
[ "MIT" ]
null
null
null
z2z_metadata/__init__.py
Mitchellpkt/z2z-metadata
261a694225efc21d65a9f3be69a9017bbc29864e
[ "MIT" ]
null
null
null
"""Top-level package for z2z Metadata analysis.""" __author__ = """Isthmus // Mitchell P. Krawiec-Thayer""" __email__ = 'project_z2z_metadata@mitchellpkt.com' __version__ = '0.0.1'
30.333333
56
0.730769
652bea27b54e41523374e9b0f3eb5a5744c81344
81
py
Python
pyeparse/tests/__init__.py
Eric89GXL/pyeparse
c1907c39276aacb0fad80034d69b537b07f82786
[ "BSD-3-Clause" ]
null
null
null
pyeparse/tests/__init__.py
Eric89GXL/pyeparse
c1907c39276aacb0fad80034d69b537b07f82786
[ "BSD-3-Clause" ]
null
null
null
pyeparse/tests/__init__.py
Eric89GXL/pyeparse
c1907c39276aacb0fad80034d69b537b07f82786
[ "BSD-3-Clause" ]
null
null
null
# Authors: Denis Engemann <denis.engemann@gmail.com> # # License: BSD (3-clause)
20.25
52
0.716049
652cc48a5f826ddc6ae73b306f5bcedc4dba7eb7
1,659
py
Python
Murphi/ModularMurphi/TemplateClass.py
icsa-caps/HieraGen
4026c1718878d2ef69dd13d3e6e10cab69174fda
[ "MIT" ]
6
2020-07-07T15:45:13.000Z
2021-08-29T06:44:29.000Z
Murphi/ModularMurphi/TemplateClass.py
icsa-caps/HieraGen
4026c1718878d2ef69dd13d3e6e10cab69174fda
[ "MIT" ]
null
null
null
Murphi/ModularMurphi/TemplateClass.py
icsa-caps/HieraGen
4026c1718878d2ef69dd13d3e6e10cab69174fda
[ "MIT" ]
null
null
null
import inspect import os import re
29.105263
120
0.485835
652d0559a2243d1e92871449e1c32a5d4ef6cbbb
8,660
py
Python
bot/exts/filters/token_remover.py
adhikariprajitraj/bot
207eb16e7be7a339bb3e670ffd74283e755a73a7
[ "MIT" ]
null
null
null
bot/exts/filters/token_remover.py
adhikariprajitraj/bot
207eb16e7be7a339bb3e670ffd74283e755a73a7
[ "MIT" ]
null
null
null
bot/exts/filters/token_remover.py
adhikariprajitraj/bot
207eb16e7be7a339bb3e670ffd74283e755a73a7
[ "MIT" ]
null
null
null
import base64 import binascii import logging import re import typing as t from discord import Colour, Message, NotFound from discord.ext.commands import Cog from bot import utils from bot.bot import Bot from bot.constants import Channels, Colours, Event, Icons from bot.exts.moderation.modlog import ModLog from bot.ut...
37.008547
105
0.639145
652e84bd8ad0187eda337ba399fb9e1a9cdb03eb
377
py
Python
setup.py
PaulDodd/pynomial
8da81bf37ee96b8e3c49b40cdfcae075ba667632
[ "Apache-2.0" ]
null
null
null
setup.py
PaulDodd/pynomial
8da81bf37ee96b8e3c49b40cdfcae075ba667632
[ "Apache-2.0" ]
null
null
null
setup.py
PaulDodd/pynomial
8da81bf37ee96b8e3c49b40cdfcae075ba667632
[ "Apache-2.0" ]
null
null
null
import sys from setuptools import setup, find_packages setup( name='pynomial', version='0.0.0', packages=find_packages(), author='Paul M Dodd', author_email='pdodd@umich.edu', description="python package for combinatorial problems", url="https://github.com/PaulDodd/pynomial.git", instal...
26.928571
64
0.70557
652f515638fabbdc29fa03743668cd7f3bcdf458
830
py
Python
src/seedbox/migrations/versions/35099fc974d2_.py
nailgun/seedbox
d124f71017dbbe5af81592e76933809b5cdddb08
[ "Apache-2.0" ]
29
2017-03-22T23:12:56.000Z
2021-05-29T23:40:50.000Z
src/seedbox/migrations/versions/35099fc974d2_.py
macduff23/seedbox
d124f71017dbbe5af81592e76933809b5cdddb08
[ "Apache-2.0" ]
27
2017-04-10T14:00:11.000Z
2017-12-01T06:56:15.000Z
src/seedbox/migrations/versions/35099fc974d2_.py
macduff23/seedbox
d124f71017dbbe5af81592e76933809b5cdddb08
[ "Apache-2.0" ]
6
2017-04-10T09:17:32.000Z
2020-01-25T02:08:21.000Z
"""empty message Revision ID: 35099fc974d2 Revises: ae00e7974dca Create Date: 2017-05-19 17:01:48.878196 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '35099fc974d2' down_revision = 'ae00e7974dca' branch_labels = None depends_on = None
28.62069
117
0.749398
6531c01cdf271608c3cf89baaec7f83d527a1013
658
py
Python
searchNMin2.py
plguhur/random-sets
8cd0d18816628909f304d839b1a7eed208dfb49f
[ "Apache-2.0" ]
null
null
null
searchNMin2.py
plguhur/random-sets
8cd0d18816628909f304d839b1a7eed208dfb49f
[ "Apache-2.0" ]
null
null
null
searchNMin2.py
plguhur/random-sets
8cd0d18816628909f304d839b1a7eed208dfb49f
[ "Apache-2.0" ]
null
null
null
from randomSets import * import numpy as np winners = [1,5,10] candidates = range(100, 1100, 500) Nmin = np.zeros((len(winners),len(candidates))) for i in range(len(winners)): for j in range(len(candidates)): print("Nwinner: %i, Ncandidates: %i" % (winners[i], candidates[j])) #alpha = findMinAlpha(...
41.125
130
0.647416
6532631e7c9cbad3268bcb207c447017749491f6
894
py
Python
drs4Calibration/drs4Calibration_version_0/config.py
fact-project/DrsTemperatureCalibration
3702ee390c16cf2c5930d4a0f24c1354d036d645
[ "MIT" ]
null
null
null
drs4Calibration/drs4Calibration_version_0/config.py
fact-project/DrsTemperatureCalibration
3702ee390c16cf2c5930d4a0f24c1354d036d645
[ "MIT" ]
null
null
null
drs4Calibration/drs4Calibration_version_0/config.py
fact-project/DrsTemperatureCalibration
3702ee390c16cf2c5930d4a0f24c1354d036d645
[ "MIT" ]
null
null
null
from drs4Calibration.drs4Calibration_version_0.constants import NRCELL, ROI # Dont shuffle drsValueTypes # The order have to be the same as the of the 'RUNIDs' # in the drsFiles drsValueTypes = ['Baseline', 'Gain', 'TriggerOffset'] renamedDrsValueTypes = ['Baseline', ...
31.928571
75
0.589485
6532a25e13d94b833b61abb8bf5f04bc39b60efe
91
py
Python
bai03.py
trietto/python
b89b990fc509228445157465f6af3371c4b4d159
[ "Apache-2.0" ]
null
null
null
bai03.py
trietto/python
b89b990fc509228445157465f6af3371c4b4d159
[ "Apache-2.0" ]
null
null
null
bai03.py
trietto/python
b89b990fc509228445157465f6af3371c4b4d159
[ "Apache-2.0" ]
null
null
null
n=int(input("Nhap vao mot so:")) d=dict() for i in range(1, n+1): d[i]=i*i print(d)
18.2
32
0.549451
653326363f171f61656c55ab1ac0a5e07a6afbd8
18,085
pyw
Python
quizme.pyw
dmahugh/quizme
edd5340db4524855c7e0dea0340339dafb10a78a
[ "MIT" ]
null
null
null
quizme.pyw
dmahugh/quizme
edd5340db4524855c7e0dea0340339dafb10a78a
[ "MIT" ]
null
null
null
quizme.pyw
dmahugh/quizme
edd5340db4524855c7e0dea0340339dafb10a78a
[ "MIT" ]
null
null
null
"""GUI for taking tests based on quizme-xxx.json files. """ import os import sys import json from random import randint import tkinter as tk from tkinter import font from tkinter import ttk from tkinter import filedialog from tkinter import messagebox from widgetrefs import widgets def center_window(window): """...
38.397028
80
0.648825
6533cb2d911f06e68a721247deb37def17dac93b
5,448
py
Python
kedro/extras/datasets/pandas/appendable_excel_dataset.py
hfwittmann/kedro
b0d4fcd8f19b49a7916d78fd09daeb6209a7b6c6
[ "Apache-2.0" ]
1
2021-11-25T12:33:13.000Z
2021-11-25T12:33:13.000Z
kedro/extras/datasets/pandas/appendable_excel_dataset.py
MerelTheisenQB/kedro
1eaa2e0fa5d80f96e18ea60b9f3d6e6efc161827
[ "Apache-2.0" ]
null
null
null
kedro/extras/datasets/pandas/appendable_excel_dataset.py
MerelTheisenQB/kedro
1eaa2e0fa5d80f96e18ea60b9f3d6e6efc161827
[ "Apache-2.0" ]
null
null
null
"""``AppendableExcelDataSet`` loads/saves data from/to a local Excel file opened in append mode. It uses pandas to handle the Excel file. """ from copy import deepcopy from pathlib import Path, PurePosixPath from typing import Any, Dict import pandas as pd from kedro.io.core import AbstractDataSet, DataSetError
39.766423
101
0.612518
6534588d4ecf52898349353cb160282e5abd6d54
3,360
py
Python
graalpython/benchmarks/src/meso/euler31.py
muellren/graalpython
9104425805f1d38ad7a521c75e53798a3b79b4f0
[ "UPL-1.0", "Apache-2.0", "OpenSSL" ]
1
2019-05-28T13:04:32.000Z
2019-05-28T13:04:32.000Z
graalpython/benchmarks/src/meso/euler31.py
muellren/graalpython
9104425805f1d38ad7a521c75e53798a3b79b4f0
[ "UPL-1.0", "Apache-2.0", "OpenSSL" ]
null
null
null
graalpython/benchmarks/src/meso/euler31.py
muellren/graalpython
9104425805f1d38ad7a521c75e53798a3b79b4f0
[ "UPL-1.0", "Apache-2.0", "OpenSSL" ]
null
null
null
#!/usr/bin/env python # Copyright 2008-2010 Isaac Gouy # Copyright (c) 2013, 2014, Regents of the University of California # Copyright (c) 2017, 2018, Oracle and/or its affiliates. # All rights reserved. # # Revised BSD license # # This is a specific instance of the Open Source Initiative (OSI) BSD license # template h...
34.639175
115
0.698214
65349ddf8e79064277992fac5e85fa136f547f1d
3,150
py
Python
comicMaker/readComicsOnlineRu.py
Gunjan933/comicMaker
9e10f8bc7d1b9c9ad6af271ca7a01fb03b26c6ee
[ "MIT" ]
3
2019-09-03T14:27:28.000Z
2021-03-04T04:23:38.000Z
comicMaker/readComicsOnlineRu.py
Gunjan933/comicMaker
9e10f8bc7d1b9c9ad6af271ca7a01fb03b26c6ee
[ "MIT" ]
null
null
null
comicMaker/readComicsOnlineRu.py
Gunjan933/comicMaker
9e10f8bc7d1b9c9ad6af271ca7a01fb03b26c6ee
[ "MIT" ]
2
2019-06-18T04:21:28.000Z
2021-08-17T18:24:20.000Z
from .makeFullPdf import makeFullPdf from .parseImage import parseImage from .makePdf import makePdf import requests,os,os.path,sys,time,json from bs4 import BeautifulSoup
30.288462
99
0.668889
65351167928ce81c735f063228eadca0eb91e2b5
828
py
Python
geoipgen/generate.py
christivn/INDES-devices-scan-engine
5229ac68f0b075ffaba7641e5c8fb634d42d4915
[ "MIT" ]
2
2020-09-11T11:30:49.000Z
2021-07-01T22:06:25.000Z
geoipgen/generate.py
christivn/INDES-devices-scan-engine
5229ac68f0b075ffaba7641e5c8fb634d42d4915
[ "MIT" ]
null
null
null
geoipgen/generate.py
christivn/INDES-devices-scan-engine
5229ac68f0b075ffaba7641e5c8fb634d42d4915
[ "MIT" ]
null
null
null
from . import subnetCal from . import functions from random import randint
23.657143
66
0.629227
6536be01b7eb4b8a845b975aa35e3be000f854f3
1,182
py
Python
lib/googlecloudsdk/command_lib/filestore/operations/flags.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/command_lib/filestore/operations/flags.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/command_lib/filestore/operations/flags.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2017 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 requir...
40.758621
141
0.716582
65373505df666d8a906bfd1acd7f0539541bd3a0
940
py
Python
model_agreement.py
ntunlp/coherence-paradigm
7219fe5b57f5a44e780ca8ba5632194a68e07528
[ "MIT" ]
null
null
null
model_agreement.py
ntunlp/coherence-paradigm
7219fe5b57f5a44e780ca8ba5632194a68e07528
[ "MIT" ]
null
null
null
model_agreement.py
ntunlp/coherence-paradigm
7219fe5b57f5a44e780ca8ba5632194a68e07528
[ "MIT" ]
null
null
null
import sys import pickle from krips_alpha import krippendorff_alpha, nominal_metric annotations = pickle.load(open(sys.argv[1], 'rb')) #print(len(annotations[0])) alpha = krippendorff_alpha(annotations, nominal_metric) #print(alpha) model_output = pickle.load(open(sys.argv[2], 'rb')) print(len(model_output)) model...
24.102564
61
0.71383
65380b922221efe3ab83a1ce124526460a9adeeb
10,392
py
Python
lewansoul-lx16a/lewansoul_lx16a.py
christophschnabl/lewansoul-lx16a
fc92dc3470bc12353576bae00f6bc0873c753a7a
[ "MIT" ]
2
2019-10-22T10:37:56.000Z
2020-01-19T20:43:45.000Z
lewansoul-lx16a/lewansoul_lx16a.py
christophschnabl/lewansoul-lx16a
fc92dc3470bc12353576bae00f6bc0873c753a7a
[ "MIT" ]
null
null
null
lewansoul-lx16a/lewansoul_lx16a.py
christophschnabl/lewansoul-lx16a
fc92dc3470bc12353576bae00f6bc0873c753a7a
[ "MIT" ]
1
2022-01-05T08:20:38.000Z
2022-01-05T08:20:38.000Z
__all__ = [ 'ServoController', 'TimeoutError', 'SERVO_ERROR_OVER_TEMPERATURE', 'SERVO_ERROR_OVER_VOLTAGE', 'SERVO_ERROR_LOCKED_ROTOR', ] from serial.serialutil import * from functools import partial import threading import logging SERVO_ID_ALL = 0xfe SERVO_MOVE_TIME_WRITE = 1 SERVO_MOVE_TIME_R...
32.373832
84
0.647998
653ce627115bca9b0a99c6fcb8f87bd198d5309b
1,223
py
Python
Basic Data Structures/string/leet_551_StudentAttendanceRecordI.py
rush2catch/algorithms-leetcode
38a5e6aa33d48fa14fe09c50c28a2eaabd736e55
[ "MIT" ]
null
null
null
Basic Data Structures/string/leet_551_StudentAttendanceRecordI.py
rush2catch/algorithms-leetcode
38a5e6aa33d48fa14fe09c50c28a2eaabd736e55
[ "MIT" ]
null
null
null
Basic Data Structures/string/leet_551_StudentAttendanceRecordI.py
rush2catch/algorithms-leetcode
38a5e6aa33d48fa14fe09c50c28a2eaabd736e55
[ "MIT" ]
null
null
null
# Problem: Student Attendance Record I # Difficulty: Easy # Category: String # Leetcode 551: https://leetcode.com/problems/student-attendance-record-i/#/description # Description: """ You are given a string representing an attendance record for a student. The record only contains the following three characters: 'A' : ...
23.519231
92
0.681112
653d695cd3021eadcb097d2dd9fa97ca942ec702
10,454
py
Python
etc/check-python.py
maxzheng/auto-update
7d9afa139f890ff9a6bbeb01549a311bdb5168d0
[ "MIT" ]
7
2018-08-22T21:03:54.000Z
2022-02-04T20:31:20.000Z
etc/check-python.py
maxzheng/auto-update
7d9afa139f890ff9a6bbeb01549a311bdb5168d0
[ "MIT" ]
null
null
null
etc/check-python.py
maxzheng/auto-update
7d9afa139f890ff9a6bbeb01549a311bdb5168d0
[ "MIT" ]
2
2019-04-24T20:49:01.000Z
2019-10-30T17:45:19.000Z
#!/usr/bin/env python import argparse import os import platform import re import shutil import subprocess import sys SUPPORTED_VERSIONS = ('3.6', '3.7') IS_DEBIAN = platform.system() == 'Linux' and os.path.exists('/etc/debian_version') IS_OLD_UBUNTU = (IS_DEBIAN and os.path.exists('/etc/lsb-release') ...
34.730897
117
0.583604
653e20753803cf3d8c774a1a90f5c5407a146bd4
3,463
py
Python
pnet/measure.py
changshuowang/PersistenceNetwork
519aa3b4a123091ae6cc3cf619182b5be54fcac3
[ "ISC" ]
1
2020-01-20T06:44:14.000Z
2020-01-20T06:44:14.000Z
pnet/measure.py
changshuowang/PersistenceNetwork
519aa3b4a123091ae6cc3cf619182b5be54fcac3
[ "ISC" ]
null
null
null
pnet/measure.py
changshuowang/PersistenceNetwork
519aa3b4a123091ae6cc3cf619182b5be54fcac3
[ "ISC" ]
null
null
null
import numpy as np from sklearn.metrics import average_precision_score as ap from sklearn.metrics import roc_auc_score """ each row is an instance each column is the prediction of a class """ # For clip evaluation def auc_y_classwise(Y_target, Y_score): """ Y_target: list of lists. {0, 1} real labels...
24.913669
74
0.636442
653e59fcbdd6ab10a8f9cfbeb5d59f5f53315a37
6,114
py
Python
src/trainer/transformations.py
tiborkubik/Robust-Teeth-Detection-in-3D-Dental-Scans-by-Automated-Multi-View-Landmarking
c7d9fa29b3b94ea786da5f4ec11a11520c1b882a
[ "MIT" ]
2
2022-02-20T23:45:47.000Z
2022-03-14T07:36:53.000Z
src/trainer/transformations.py
tiborkubik/Robust-Teeth-Detection-in-3D-Dental-Scans-by-Automated-Multi-View-Landmarking
c7d9fa29b3b94ea786da5f4ec11a11520c1b882a
[ "MIT" ]
null
null
null
src/trainer/transformations.py
tiborkubik/Robust-Teeth-Detection-in-3D-Dental-Scans-by-Automated-Multi-View-Landmarking
c7d9fa29b3b94ea786da5f4ec11a11520c1b882a
[ "MIT" ]
null
null
null
""" :filename transformations.py :author Tibor Kubik :email xkubik34@stud.fit.vutbr.cz from Classes of custom transformations that are applied during the training as additional augmentation of the depth maps. """ import torch import random import numpy as np import torch.nn.functional as F from random...
31.678756
129
0.596663
653f571cf7026f415159e6338a4dc99110c41d1a
5,691
py
Python
cappuccino.py
y-tsutsu/cappuccino
11212565c064a8e65f5858d2ea457b5cd0389799
[ "MIT" ]
1
2017-08-15T11:47:37.000Z
2017-08-15T11:47:37.000Z
cappuccino.py
y-tsutsu/cappuccino
11212565c064a8e65f5858d2ea457b5cd0389799
[ "MIT" ]
1
2021-06-02T10:32:27.000Z
2021-06-02T10:32:27.000Z
cappuccino.py
y-tsutsu/cappuccino
11212565c064a8e65f5858d2ea457b5cd0389799
[ "MIT" ]
null
null
null
import random import shutil import sys from argparse import ArgumentParser from os import path from pathlib import Path from threading import Thread from PySide6 import __version__ as PySideVer from PySide6.QtCore import (Property, QCoreApplication, QObject, Qt, QTimer, Signal, Slot) from P...
29.795812
102
0.692497
654050d7cccb1b2c34b6283890ccaab142889563
48,459
py
Python
lofti_gaia/lofti.py
logan-pearce/lofti_gaia
b88940553669a134a461bb052843afa0dad4d71f
[ "BSD-3-Clause" ]
2
2020-05-06T07:39:56.000Z
2020-07-23T16:39:55.000Z
lofti_gaia/lofti.py
logan-pearce/lofti_gaia
b88940553669a134a461bb052843afa0dad4d71f
[ "BSD-3-Clause" ]
null
null
null
lofti_gaia/lofti.py
logan-pearce/lofti_gaia
b88940553669a134a461bb052843afa0dad4d71f
[ "BSD-3-Clause" ]
2
2020-07-25T15:43:52.000Z
2021-05-18T20:20:55.000Z
import astropy.units as u import numpy as np from lofti_gaia.loftitools import * from lofti_gaia.cFunctions import calcOFTI_C #from loftitools import * import pickle import time import matplotlib.pyplot as plt # Astroquery throws some warnings we can ignore: import warnings warnings.filterwarnings("ignore") '''This mo...
49.650615
170
0.585278
65411b851445a48f4001d24e9d3426293a327569
243
py
Python
src/data_curation/dataset_manager/views.py
NovaSBE-DSKC/retention-evaluation
5b68b9282f0b5479a9dc5238faef68067c76b861
[ "MIT" ]
null
null
null
src/data_curation/dataset_manager/views.py
NovaSBE-DSKC/retention-evaluation
5b68b9282f0b5479a9dc5238faef68067c76b861
[ "MIT" ]
null
null
null
src/data_curation/dataset_manager/views.py
NovaSBE-DSKC/retention-evaluation
5b68b9282f0b5479a9dc5238faef68067c76b861
[ "MIT" ]
null
null
null
from src.data_curation.dataset_manager import get_meta import pandas as pd
17.357143
54
0.654321
6541203743362ff0dff952a51d471197ab93e9cb
109
py
Python
deid/model/layers/__init__.py
KavishBhatia/deid-training-data
9d586cd7f52d929b2571028365587d3f96e44caa
[ "MIT" ]
15
2018-10-28T13:57:55.000Z
2022-01-03T07:25:04.000Z
deid/model/layers/__init__.py
KavishBhatia/deid-training-data
9d586cd7f52d929b2571028365587d3f96e44caa
[ "MIT" ]
7
2019-04-29T13:55:52.000Z
2021-12-13T19:51:30.000Z
deid/model/layers/__init__.py
KavishBhatia/deid-training-data
9d586cd7f52d929b2571028365587d3f96e44caa
[ "MIT" ]
3
2019-08-01T19:02:37.000Z
2021-01-08T09:12:25.000Z
from .gradient_reversal import GradientReversal from .noise import Noise, AdditiveNoise, MultiplicativeNoise
36.333333
60
0.87156
654539319f4d10a8899c207b7e590fdb33eef877
2,344
py
Python
db_pool/mysql/base.py
GiftLee/devops
1d63ee32c3e9519131bf5f6f2cda19675a1ca833
[ "MIT" ]
300
2019-07-30T03:01:29.000Z
2022-03-14T05:51:41.000Z
db_pool/mysql/base.py
nice555/devops
fe09e6a3165d92dcd2dc67a0df3c2e47c6accc41
[ "MIT" ]
27
2019-11-04T08:41:52.000Z
2021-09-27T07:51:41.000Z
db_pool/mysql/base.py
nice555/devops
fe09e6a3165d92dcd2dc67a0df3c2e47c6accc41
[ "MIT" ]
124
2019-08-21T03:32:15.000Z
2022-03-14T05:51:43.000Z
# -*- coding: utf-8 -*- """ django.db.backends.mysql.base.by django mysql django CONN_MAX_AGE CONN_MAX_AGE close too many connections mysql """ from django.core.exceptions import ImproperlyConfigured import queue import threading try: import MySQLdb as Database except ImportError as err: raise Impr...
32.109589
95
0.677901
6546238c5cc99f6434344bc2dc8680356df8f817
34,758
py
Python
flowsa/flowbyfunctions.py
modelearth/flowsa
d4dcf5ef8764b4ef895080a54d0546668daf0e1a
[ "CC0-1.0" ]
13
2020-04-10T20:43:00.000Z
2022-02-12T09:00:56.000Z
flowsa/flowbyfunctions.py
modelearth/flowsa
d4dcf5ef8764b4ef895080a54d0546668daf0e1a
[ "CC0-1.0" ]
93
2020-03-05T14:22:42.000Z
2022-03-30T20:33:06.000Z
flowsa/flowbyfunctions.py
modelearth/flowsa
d4dcf5ef8764b4ef895080a54d0546668daf0e1a
[ "CC0-1.0" ]
16
2020-05-03T13:54:59.000Z
2022-01-06T16:42:53.000Z
# flowbyfunctions.py (flowsa) # !/usr/bin/env python3 # coding=utf-8 """ Helper functions for flowbyactivity and flowbysector data """ import pandas as pd import numpy as np from esupy.dqi import get_weighted_average import flowsa from flowsa.common import fbs_activity_fields, US_FIPS, get_state_FIPS, \ get_county...
46.97027
100
0.638328
6547bff0921c0fa8bf1ae4180062d6c76818b672
3,553
py
Python
stochastic_hill_climbing/src/AdalineSGD.py
Wookhwang/Machine-Learning
8eaf8517057d4beb3272081cb2f2092687123f3d
[ "Apache-2.0" ]
null
null
null
stochastic_hill_climbing/src/AdalineSGD.py
Wookhwang/Machine-Learning
8eaf8517057d4beb3272081cb2f2092687123f3d
[ "Apache-2.0" ]
1
2020-01-19T10:14:41.000Z
2020-01-19T10:14:41.000Z
stochastic_hill_climbing/src/AdalineSGD.py
Wookhwang/Machine-Learning
8eaf8517057d4beb3272081cb2f2092687123f3d
[ "Apache-2.0" ]
null
null
null
import numpy as np # gradient descent tensorflow . # .
30.110169
77
0.509992
65489ab1059af5d3af74f3912af4a5da4c39124a
383
py
Python
las1.2.py
Theskill19/sweetpotato
7cb46c412f400bcd51838db365038a766cf593cd
[ "CC0-1.0" ]
null
null
null
las1.2.py
Theskill19/sweetpotato
7cb46c412f400bcd51838db365038a766cf593cd
[ "CC0-1.0" ]
null
null
null
las1.2.py
Theskill19/sweetpotato
7cb46c412f400bcd51838db365038a766cf593cd
[ "CC0-1.0" ]
null
null
null
#2. . # , ::. # . time = int(input(" ")) hours = time // 3600 minutes = (time - hours * 3600) // 60 seconds = time - (hours * 3600 + minutes * 60) print(f" :: {hours} : {minutes} : {seconds}")
42.555556
75
0.681462
654ad9f66cc00d76dc7800cff09e9d14c95e20e3
2,259
py
Python
tpdatasrc/tpgamefiles/rules/char_class/class020_archmage.py
edoipi/TemplePlus
f0e552289822fea908f16daa379fa568b1bd286d
[ "MIT" ]
null
null
null
tpdatasrc/tpgamefiles/rules/char_class/class020_archmage.py
edoipi/TemplePlus
f0e552289822fea908f16daa379fa568b1bd286d
[ "MIT" ]
null
null
null
tpdatasrc/tpgamefiles/rules/char_class/class020_archmage.py
edoipi/TemplePlus
f0e552289822fea908f16daa379fa568b1bd286d
[ "MIT" ]
null
null
null
from toee import * import char_class_utils ################################################### classEnum = stat_level_archmage ################################################### class_feats = { } class_skills = (skill_alchemy, skill_concentration, skill_craft, skill_knowledge_all, skill_profession, skill_search,...
20.916667
135
0.736609
654b5be42b94507090bb99be14ad14d6bad404c8
427
py
Python
src/bananas/drf/errors.py
beshrkayali/django-bananas
8e832ca91287c5b3eed5af8de948c67fd026c4b9
[ "MIT" ]
26
2015-04-07T12:18:26.000Z
2021-07-23T18:05:52.000Z
src/bananas/drf/errors.py
beshrkayali/django-bananas
8e832ca91287c5b3eed5af8de948c67fd026c4b9
[ "MIT" ]
55
2016-10-25T08:13:50.000Z
2022-03-04T12:53:24.000Z
src/bananas/drf/errors.py
beshrkayali/django-bananas
8e832ca91287c5b3eed5af8de948c67fd026c4b9
[ "MIT" ]
16
2015-10-13T10:11:59.000Z
2021-11-11T12:30:32.000Z
from rest_framework import status from rest_framework.exceptions import APIException
28.466667
53
0.800937
654c820b6644777c47304297e45e886b1326f0ee
11,749
py
Python
tools/train_net.py
luzhenyv/sesame
5cef18c45192f7886b1c3c0096327e0095663adc
[ "Apache-2.0" ]
null
null
null
tools/train_net.py
luzhenyv/sesame
5cef18c45192f7886b1c3c0096327e0095663adc
[ "Apache-2.0" ]
null
null
null
tools/train_net.py
luzhenyv/sesame
5cef18c45192f7886b1c3c0096327e0095663adc
[ "Apache-2.0" ]
null
null
null
"""Train a video classification""" import torch import sesame.models.losses as losses import sesame.models.optimizer as optim import sesame.utils.distributed as du import sesame.utils.misc as misc import sesame.utils.metrics as metrics import sesame.utils.logger as logger from sesame.datasets.mixup import MixUp log ...
35.929664
97
0.544302
e8da2871c87cf2076690059ef9b906d674072b5a
846
py
Python
setup.py
stshrive/pycense
5bfd1b7b6b326a5592f58d621ee596c6c1d8a490
[ "MIT" ]
null
null
null
setup.py
stshrive/pycense
5bfd1b7b6b326a5592f58d621ee596c6c1d8a490
[ "MIT" ]
5
2018-09-15T23:40:11.000Z
2018-10-05T22:57:13.000Z
setup.py
stshrive/pycense
5bfd1b7b6b326a5592f58d621ee596c6c1d8a490
[ "MIT" ]
1
2018-10-04T23:43:42.000Z
2018-10-04T23:43:42.000Z
import os import setuptools VERSION = "1.0.0a1+dev" INSTALL_REQUIRES = [ 'pip-licenses', ] CLASSIFIERS = [ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Intended Audience :: Science/Research' ] setuptools.setup( name='pycense', version="0.1.0", description='Pytho...
24.171429
78
0.682033
e8db35ba967d9e65ca9d8b55e48764bb1fce3b61
101
py
Python
parents/admin.py
joseph0919/Student_Management_Django
085e839a86ac574f5ebe83a4911c5808841f50cd
[ "MIT" ]
null
null
null
parents/admin.py
joseph0919/Student_Management_Django
085e839a86ac574f5ebe83a4911c5808841f50cd
[ "MIT" ]
null
null
null
parents/admin.py
joseph0919/Student_Management_Django
085e839a86ac574f5ebe83a4911c5808841f50cd
[ "MIT" ]
null
null
null
from django.contrib import admin from parents.models import Guardian admin.site.register(Guardian)
16.833333
35
0.831683
e8db7b8afe28efde2a5b3d53186f27fb42108a8d
1,912
py
Python
src/test/tests/hybrid/missingdata.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/hybrid/missingdata.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/hybrid/missingdata.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: missingdata.py # # Tests: missing data # # Programmer: Brad Whitlock # Date: Thu Jan 19 09:49:15 PST 2012 # # Modifications: # # ------------------------------------------------------------...
26.555556
78
0.619247
e8dc347e2e8914b12566e7ce88c38a00dd0fd08d
540
py
Python
data_input/__init__.py
uabalabadubdub/ppcd-pec4
b9b1dfae84fd987c4e9b4ea09c0197ef746b30d7
[ "CC0-1.0" ]
null
null
null
data_input/__init__.py
uabalabadubdub/ppcd-pec4
b9b1dfae84fd987c4e9b4ea09c0197ef746b30d7
[ "CC0-1.0" ]
null
null
null
data_input/__init__.py
uabalabadubdub/ppcd-pec4
b9b1dfae84fd987c4e9b4ea09c0197ef746b30d7
[ "CC0-1.0" ]
null
null
null
from pathlib import Path current_path = Path(".") datafolder = current_path / "data" imagefolder = current_path / "images" if not datafolder.exists(): print(f"Creating {datafolder}/...") datafolder.mkdir() if not imagefolder.exists(): print(f"Creating {imagefolder}/...") imagefolder.mkdir() print("S...
24.545455
49
0.668519
e8dd9680732e2d43b71a4834c51c94a4f70393dd
4,521
py
Python
displacy_service_tests/test_server.py
mjfox3/spacy-api-docker
8622ae1cc3e18835d4675432f9d286794dd380f5
[ "MIT" ]
null
null
null
displacy_service_tests/test_server.py
mjfox3/spacy-api-docker
8622ae1cc3e18835d4675432f9d286794dd380f5
[ "MIT" ]
1
2019-11-08T14:39:55.000Z
2019-11-08T14:39:55.000Z
displacy_service_tests/test_server.py
mjfox3/spacy-api-docker
8622ae1cc3e18835d4675432f9d286794dd380f5
[ "MIT" ]
1
2019-11-07T14:15:37.000Z
2019-11-07T14:15:37.000Z
import falcon.testing import pytest import json from displacy_service.server import APP, MODELS model = MODELS[0]
47.09375
211
0.523114
e8df842f0c6982487b7ca3ace562a894cc9d1940
606
py
Python
exposures/generate_passwords.py
jarnoln/exposures
bbae3f79078048d25b77e178db6c0801ffe9f97e
[ "MIT" ]
null
null
null
exposures/generate_passwords.py
jarnoln/exposures
bbae3f79078048d25b77e178db6c0801ffe9f97e
[ "MIT" ]
null
null
null
exposures/generate_passwords.py
jarnoln/exposures
bbae3f79078048d25b77e178db6c0801ffe9f97e
[ "MIT" ]
null
null
null
#!/usr/bin/env python import random import argparse if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('password_file_path', help='Where password file will be placed') args = parser.parse_args() generate_passwords(args.password_file_path)
31.894737
88
0.737624
e8e12c70a26b28e73712420fd03691434cb4267c
13,354
py
Python
adversarial-transfer-nlp/CW_attack.py
AI-secure/Uncovering-the-Connections-BetweenAdversarial-Transferability-and-Knowledge-Transferability
a2fb10f56618c6d6dd1638967d59c4a83ffa1c05
[ "CC0-1.0" ]
8
2021-06-18T10:32:27.000Z
2022-01-16T06:46:25.000Z
adversarial-transfer-nlp/CW_attack.py
AI-secure/Does-Adversairal-Transferability-Indicate-Knowledge-Transferability
a2fb10f56618c6d6dd1638967d59c4a83ffa1c05
[ "CC0-1.0" ]
2
2021-08-25T15:14:12.000Z
2022-02-09T23:55:46.000Z
adversarial-transfer-nlp/CW_attack.py
AI-secure/Does-Adversairal-Transferability-Indicate-Knowledge-Transferability
a2fb10f56618c6d6dd1638967d59c4a83ffa1c05
[ "CC0-1.0" ]
null
null
null
import sys import torch import numpy as np from torch import optim from util import args
44.962963
126
0.543582
e8e227fac1aeb6cb15d17a60f96b91194af13f7f
639
py
Python
api/cueSearch/migrations/0005_searchcardtemplate_connectiontype.py
cuebook/CueSearch
8bf047de273b27bba41b8bf4e266aac1eee7f81a
[ "Apache-2.0" ]
3
2022-02-10T17:00:19.000Z
2022-03-29T14:31:25.000Z
api/cueSearch/migrations/0005_searchcardtemplate_connectiontype.py
cuebook/CueSearch
8bf047de273b27bba41b8bf4e266aac1eee7f81a
[ "Apache-2.0" ]
null
null
null
api/cueSearch/migrations/0005_searchcardtemplate_connectiontype.py
cuebook/CueSearch
8bf047de273b27bba41b8bf4e266aac1eee7f81a
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.5 on 2022-02-18 08:20 from django.db import migrations, models import django.db.models.deletion
24.576923
61
0.57277
e8e29b7b8972a06149daa7c111affc519cbc1ff4
629
py
Python
FormulaAccordingPrint.py
FreeBirdsCrew/Brainstorming_Codes
9d06216cd0772ce56586acff2c240a210b94ba1f
[ "Apache-2.0" ]
1
2020-12-11T10:24:08.000Z
2020-12-11T10:24:08.000Z
FormulaAccordingPrint.py
FreeBirdsCrew/Brainstorming_Codes
9d06216cd0772ce56586acff2c240a210b94ba1f
[ "Apache-2.0" ]
null
null
null
FormulaAccordingPrint.py
FreeBirdsCrew/Brainstorming_Codes
9d06216cd0772ce56586acff2c240a210b94ba1f
[ "Apache-2.0" ]
null
null
null
""" Write a program that calculates and prints the value according to the given formula: Q = Square root of [(2 * C * D)/H] Following are the fixed values of C and H: C is 50. H is 30. D is the variable whose values should be input to your program in a comma-separated sequence. Example Let us assume the followin...
28.590909
94
0.694754
e8e2e1e3ca7f9bd9067ac2608c856319f1c4cab7
675
py
Python
src/django_sys_indicator/utils.py
marksweb/django-sys-indicator
7318a7df8a6cda613a999d1129d00a181403cbaf
[ "MIT" ]
1
2022-02-12T15:33:53.000Z
2022-02-12T15:33:53.000Z
src/django_sys_indicator/utils.py
marksweb/django-sys-indicator
7318a7df8a6cda613a999d1129d00a181403cbaf
[ "MIT" ]
null
null
null
src/django_sys_indicator/utils.py
marksweb/django-sys-indicator
7318a7df8a6cda613a999d1129d00a181403cbaf
[ "MIT" ]
null
null
null
from __future__ import annotations from django.template.loader import render_to_string from .conf import settings
25.961538
69
0.668148
e8e431aaa0e0c0342df0906099d3bfe584c4dc40
262
py
Python
MUNDO 1/ex023.py
athavus/Curso-em-video-Python-3
a32be95adbccfcbe512a1ed30d3859141a230b5e
[ "MIT" ]
1
2020-11-12T14:03:32.000Z
2020-11-12T14:03:32.000Z
MUNDO 1/ex023.py
athavus/Curso-em-video-Python-3
a32be95adbccfcbe512a1ed30d3859141a230b5e
[ "MIT" ]
null
null
null
MUNDO 1/ex023.py
athavus/Curso-em-video-Python-3
a32be95adbccfcbe512a1ed30d3859141a230b5e
[ "MIT" ]
1
2021-01-05T22:18:46.000Z
2021-01-05T22:18:46.000Z
n1 = int(input('Digite um nmero entre 0 e 9999: ')) u = n1 // 1 % 10 d = n1 // 10 % 10 c = n1 // 100 % 10 m = n1 // 1000 % 10 print(f'Analisando o nmero {n1}') print(f'unidade: {u}') print(f'dezena: {d}') print(f'centena: {c}') print(f'milhar: {m}')
23.818182
53
0.549618
e8e44f8a42a8c9211af1456c9b87394460144341
3,366
py
Python
openapi_server/controllers/instance_metadata_controller.py
eugenegesdisc/gmuedr
e8b3e5c7b8d18421d875f0f6f778a37a6d8ec3fd
[ "MIT" ]
null
null
null
openapi_server/controllers/instance_metadata_controller.py
eugenegesdisc/gmuedr
e8b3e5c7b8d18421d875f0f6f778a37a6d8ec3fd
[ "MIT" ]
null
null
null
openapi_server/controllers/instance_metadata_controller.py
eugenegesdisc/gmuedr
e8b3e5c7b8d18421d875f0f6f778a37a6d8ec3fd
[ "MIT" ]
null
null
null
from typing import List, Dict from aiohttp import web from openapi_server.models.edr_feature_collection_geo_json import EdrFeatureCollectionGeoJSON from openapi_server.models.exception import Exception from openapi_server.models.one_ofobjectobject import OneOfobjectobject from openapi_server import util
116.068966
1,557
0.778372
e8e693322ca4748ac11e7ad6f26ec9749c3ce95e
904
py
Python
Python Notebook/Python files/data_utility.py
wilfy9249/Capstone-Fall-18
832632eb00a10240e0ad16c364449d5020814c83
[ "MIT" ]
2
2018-10-24T21:32:17.000Z
2019-02-19T21:15:29.000Z
Python Notebook/Python files/data_utility.py
wilfy9249/Capstone-Fall-18
832632eb00a10240e0ad16c364449d5020814c83
[ "MIT" ]
null
null
null
Python Notebook/Python files/data_utility.py
wilfy9249/Capstone-Fall-18
832632eb00a10240e0ad16c364449d5020814c83
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[1]: import numpy as np import pandas as pd import os # In[2]: #function to get current directory # In[3]: #function to read csv file # In[4]: #function to filter Data # In[5]: #function to get count of a value # In[7]: #function to sort # In[ ]: ...
14.580645
85
0.692478
e8e88d99dce51ba1201b6f79edf2263f1faa8d1a
125
py
Python
microtbs_rl/algorithms/common/__init__.py
alex-petrenko/simple-reinforcement-learning
d0da1d9026d1f05e2552d08e56fbe58ad869fafd
[ "MIT" ]
8
2018-03-05T05:13:39.000Z
2021-02-27T03:12:05.000Z
microtbs_rl/algorithms/common/__init__.py
alex-petrenko/simple-reinforcement-learning
d0da1d9026d1f05e2552d08e56fbe58ad869fafd
[ "MIT" ]
null
null
null
microtbs_rl/algorithms/common/__init__.py
alex-petrenko/simple-reinforcement-learning
d0da1d9026d1f05e2552d08e56fbe58ad869fafd
[ "MIT" ]
4
2018-09-04T04:44:26.000Z
2021-07-22T06:34:51.000Z
from microtbs_rl.algorithms.common.agent import AgentLearner from microtbs_rl.algorithms.common.loops import run_policy_loop
41.666667
63
0.888
e8e961a8029a5dbe75bc908fc0b55465398ece35
806
py
Python
retrieve/GetTotalEarnings.py
TRiCAM-Lab/task-effort
69d072470359a20dfb3eb5df84bf1331a48e59f2
[ "MIT" ]
null
null
null
retrieve/GetTotalEarnings.py
TRiCAM-Lab/task-effort
69d072470359a20dfb3eb5df84bf1331a48e59f2
[ "MIT" ]
1
2022-03-25T19:16:43.000Z
2022-03-25T19:16:43.000Z
retrieve/GetTotalEarnings.py
TRiCAM-Lab/task-effort
69d072470359a20dfb3eb5df84bf1331a48e59f2
[ "MIT" ]
null
null
null
import sys from collections.abc import Mapping import firebase_admin from firebase_admin import credentials from firebase_admin import firestore # Use a service account cred = credentials.Certificate('./service-account-key.json') firebase_admin.initialize_app(cred) db = firestore.client() for row in sys.stdin: ...
24.424242
70
0.636476
e8eaacdbf20c0fc2ed919b5008d2aa81872089dc
192
py
Python
pyGAE/handlers/ManageSubscriptionHandler.py
analyticstraining/pycocms
29d7c3eea9377495bcafd8b8c62016c21c1a74a7
[ "MIT" ]
null
null
null
pyGAE/handlers/ManageSubscriptionHandler.py
analyticstraining/pycocms
29d7c3eea9377495bcafd8b8c62016c21c1a74a7
[ "MIT" ]
null
null
null
pyGAE/handlers/ManageSubscriptionHandler.py
analyticstraining/pycocms
29d7c3eea9377495bcafd8b8c62016c21c1a74a7
[ "MIT" ]
null
null
null
from BaseHandler import BaseHandler, user_required
32
56
0.786458
e8ec71dfe68f78e0bbd64c46510e470c4242fa2e
1,228
py
Python
aiphysim/models/spacetime.py
perovai/deepkoopman
eb6de915f5ea1f20b47cb3a22a384f55c30f0558
[ "MIT" ]
null
null
null
aiphysim/models/spacetime.py
perovai/deepkoopman
eb6de915f5ea1f20b47cb3a22a384f55c30f0558
[ "MIT" ]
10
2021-07-07T09:24:33.000Z
2021-09-27T14:32:59.000Z
aiphysim/models/spacetime.py
perovai/deepkoopman
eb6de915f5ea1f20b47cb3a22a384f55c30f0558
[ "MIT" ]
null
null
null
import torch import torch.nn as nn
34.111111
98
0.666124
e8ed02dac89d480ead9705b1ad919290dfc731c8
934
py
Python
fabfile/text.py
nprapps/austin
45237e878260678bbeb57801e798b89e67ad4e0b
[ "MIT" ]
7
2015-01-26T16:02:49.000Z
2015-04-01T12:37:52.000Z
fabfile/text.py
nprapps/austin
45237e878260678bbeb57801e798b89e67ad4e0b
[ "MIT" ]
272
2015-01-26T16:37:22.000Z
2016-04-04T17:08:55.000Z
fabfile/text.py
nprapps/austin
45237e878260678bbeb57801e798b89e67ad4e0b
[ "MIT" ]
4
2015-03-05T00:38:17.000Z
2021-02-23T10:26:28.000Z
#!/usr/bin/env python """ Commands related to syncing copytext from Google Docs. """ from fabric.api import task from termcolor import colored import app_config from etc.gdocs import GoogleDoc
24.578947
175
0.586724
e8ed68a76b6810bfc7416102a15fd740faaea0ec
4,699
py
Python
program.py
jaesik817/programmable-agents_tensorflow
b64d1774803c585e87aa9769beadde31e18f8ea4
[ "MIT" ]
39
2017-09-25T02:01:18.000Z
2019-06-18T15:17:53.000Z
program.py
jsikyoon/programmable-agents_tensorflow
b64d1774803c585e87aa9769beadde31e18f8ea4
[ "MIT" ]
5
2017-09-22T00:40:09.000Z
2018-05-07T15:11:11.000Z
program.py
jsikyoon/programmable-agents_tensorflow
b64d1774803c585e87aa9769beadde31e18f8ea4
[ "MIT" ]
10
2017-09-25T06:49:12.000Z
2019-06-18T10:17:03.000Z
import tensorflow as tf import numpy as np import math # Parameter order_num=2;
53.397727
262
0.668227
e8eead32e4d9ed6fcdbc15a39026a6dc60b3a888
3,161
py
Python
ism_pkg/tools/opt_gaussian.py
endsley/stochastic_ISM
6438eb17bd391e8698e989156acb9b786c8f7299
[ "MIT" ]
1
2021-11-04T06:30:22.000Z
2021-11-04T06:30:22.000Z
ism_pkg/tools/opt_gaussian.py
endsley/stochastic_ISM
6438eb17bd391e8698e989156acb9b786c8f7299
[ "MIT" ]
null
null
null
ism_pkg/tools/opt_gaussian.py
endsley/stochastic_ISM
6438eb17bd391e8698e989156acb9b786c8f7299
[ "MIT" ]
2
2021-11-04T06:30:24.000Z
2022-02-07T02:04:14.000Z
#!/usr/bin/env python import sys import matplotlib import numpy as np import random import itertools import socket import sklearn.metrics from scipy.optimize import minimize from scipy.optimize import Bounds from sklearn import preprocessing from sklearn.preprocessing import OneHotEncoder from sklearn.utils.random im...
25.288
127
0.660234
e8eedc51b24c6143d7853efa95a31479c5ffbbd9
2,645
py
Python
tests/commands/test_generate.py
pedrovelho/camp
98105c9054b8db3377cb6a06e7b5451b97c6c285
[ "MIT" ]
null
null
null
tests/commands/test_generate.py
pedrovelho/camp
98105c9054b8db3377cb6a06e7b5451b97c6c285
[ "MIT" ]
null
null
null
tests/commands/test_generate.py
pedrovelho/camp
98105c9054b8db3377cb6a06e7b5451b97c6c285
[ "MIT" ]
1
2019-02-05T08:49:41.000Z
2019-02-05T08:49:41.000Z
# # CAMP # # Copyright (C) 2017, 2018 SINTEF Digital # All rights reserved. # # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE file for details. # from unittest import TestCase from camp.commands import Command, Generate
25.190476
63
0.689981
e8eedebb919e5d37cf8c9784ea6066d77842d262
4,757
py
Python
create_cpu_config.py
ttungl/HeteroArchGen4M2S
85752243dc38b3d44207b6b200d6ebc88c2be8ea
[ "MIT" ]
5
2018-04-29T15:33:01.000Z
2021-11-17T11:41:45.000Z
create_cpu_config.py
berwingan/HeteroArchGen4M2S
4922711cdfe20d120dc525a6c7cb8cd2230cba09
[ "MIT" ]
null
null
null
create_cpu_config.py
berwingan/HeteroArchGen4M2S
4922711cdfe20d120dc525a6c7cb8cd2230cba09
[ "MIT" ]
7
2017-07-28T02:29:59.000Z
2021-11-20T12:01:40.000Z
#!/usr/bin/env python # =========================================================================== # Copyright 2017 `Tung Thanh Le` # Email: ttungl at gmail dot com # Heterogeneous Architecture Configurations Generator for Multi2Sim simulator # (aka, `HeteroArchGen4M2S`) # `HeteroArchGen4M2S` is free software, which...
41.008621
115
0.634433
e8ef256cd90a45f756f9b6bac7615546b4352096
7,475
py
Python
app/wall_e/models/canvas_api.py
dbwebb-se/umbridge
76dd1a15f2f481c1fc3819990ab41e20ca65afe3
[ "MIT" ]
null
null
null
app/wall_e/models/canvas_api.py
dbwebb-se/umbridge
76dd1a15f2f481c1fc3819990ab41e20ca65afe3
[ "MIT" ]
12
2021-09-07T12:11:31.000Z
2022-03-22T10:05:03.000Z
app/wall_e/models/canvas_api.py
dbwebb-se/umbridge
76dd1a15f2f481c1fc3819990ab41e20ca65afe3
[ "MIT" ]
null
null
null
""" """ import os from flask import current_app from canvasapi import submission, requester from app.wall_e.models.requester import Requester from app.settings import settings
34.447005
147
0.597458
e8f09f4acc1e578e6bbb291e4f8a3a87b3a0b297
908
py
Python
chat/views.py
xiaoqiao99/chat
ca65ed25fbc277828390b890a50ecadf4675cfb4
[ "MIT" ]
2
2019-06-21T10:30:18.000Z
2019-07-12T07:46:25.000Z
chat/views.py
xiaoqiao99/chat
ca65ed25fbc277828390b890a50ecadf4675cfb4
[ "MIT" ]
8
2020-06-05T19:56:53.000Z
2022-03-11T23:41:44.000Z
chat/views.py
xiaoqiao99/chat
ca65ed25fbc277828390b890a50ecadf4675cfb4
[ "MIT" ]
3
2020-03-13T03:22:40.000Z
2020-07-03T03:03:02.000Z
from django.shortcuts import render # Create your views here. # chat/views.py from django.shortcuts import render from django.utils.safestring import mark_safe import json from chat.models import Room
27.515152
93
0.654185
e8f180504d0fc36abc7d16119e4914419e1e1ee4
806
py
Python
src/app/db.py
jorwalk/fastapi-crud-async
000705ac977673d316a5fac2ce98adac23768b6e
[ "MIT" ]
null
null
null
src/app/db.py
jorwalk/fastapi-crud-async
000705ac977673d316a5fac2ce98adac23768b6e
[ "MIT" ]
null
null
null
src/app/db.py
jorwalk/fastapi-crud-async
000705ac977673d316a5fac2ce98adac23768b6e
[ "MIT" ]
null
null
null
import os from sqlalchemy import (Column, DateTime, Integer, MetaData, String, Text, Table, create_engine) from sqlalchemy.sql import func from databases import Database DATABASE_URL = os.getenv("DATABASE_URL") # SQLAlchemy engine = create_engine(DATABASE_URL) metadata = MetaData() movies =...
26
81
0.672457
e8f1a3ca50bcfed7f7af218f87aa8a2b2ac30b0f
3,224
py
Python
python/greshunkel.py
qpfiffer/38-Moths
e7985b3ee655bca965c37b8fefde6c6ad70fdd4f
[ "MIT" ]
14
2015-02-23T07:16:36.000Z
2021-05-05T11:49:57.000Z
python/greshunkel.py
qpfiffer/futility
e7985b3ee655bca965c37b8fefde6c6ad70fdd4f
[ "MIT" ]
19
2015-03-21T22:14:28.000Z
2017-01-25T17:07:21.000Z
python/greshunkel.py
qpfiffer/futility
e7985b3ee655bca965c37b8fefde6c6ad70fdd4f
[ "MIT" ]
3
2015-02-23T07:17:08.000Z
2015-03-23T18:05:34.000Z
from ctypes import cdll, c_char_p, c_size_t, c_void_p, Union,\ LittleEndianStructure, c_char, POINTER,\ c_int, byref, CFUNCTYPE, create_string_buffer GshklFilterFunc = CFUNCTYPE(c_char_p, c_char_p) lib38moths = cdll.LoadLibrary("lib38moths.so") lib38moths.gshkl_init_context.rest...
45.408451
109
0.715261
e8f205c39839ed18e131eea74299ddd64618a420
11,443
py
Python
objects/paginators.py
fossabot/KiwiBot
cd077ce742775ed69ea7a14796c967ed878e1abc
[ "MIT" ]
null
null
null
objects/paginators.py
fossabot/KiwiBot
cd077ce742775ed69ea7a14796c967ed878e1abc
[ "MIT" ]
null
null
null
objects/paginators.py
fossabot/KiwiBot
cd077ce742775ed69ea7a14796c967ed878e1abc
[ "MIT" ]
null
null
null
from collections import OrderedDict from asyncio import TimeoutError, wait from concurrent.futures import FIRST_COMPLETED import time from discord import TextChannel, DMChannel from discord.errors import Forbidden, NotFound from objects.context import Context class Paginator(PaginatorABC): """ Basic pagin...
31.874652
131
0.589094
e8f4043d5536bdca2c37406c6cd15241be633a78
21,362
py
Python
tests/test_managedblockchain/test_managedblockchain_proposalvotes.py
junelife/moto
e61d794cbc9c18b06c11014da666e25f3fce637b
[ "Apache-2.0" ]
1
2021-12-12T04:23:06.000Z
2021-12-12T04:23:06.000Z
tests/test_managedblockchain/test_managedblockchain_proposalvotes.py
junelife/moto
e61d794cbc9c18b06c11014da666e25f3fce637b
[ "Apache-2.0" ]
2
2018-08-07T10:47:18.000Z
2018-08-08T15:13:04.000Z
tests/test_managedblockchain/test_managedblockchain_proposalvotes.py
junelife/moto
e61d794cbc9c18b06c11014da666e25f3fce637b
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals import os import boto3 import sure # noqa from freezegun import freeze_time from unittest import SkipTest from moto import mock_managedblockchain, settings from . import helpers
31.836066
87
0.679805
e8f4751164f0af5c0a64d647c72d41648acdaa32
752
py
Python
docs/Others/Python_leetcode/Codes/1.Two_Sum.py
mheanng/PythonNote
e3e5ede07968fab0a45f6ac4db96e62092c17026
[ "Apache-2.0" ]
2
2020-04-09T05:56:23.000Z
2021-03-25T18:42:36.000Z
docs/Others/Python_leetcode/Codes/1.Two_Sum.py
mheanng/PythonNote
e3e5ede07968fab0a45f6ac4db96e62092c17026
[ "Apache-2.0" ]
22
2020-04-09T06:09:14.000Z
2021-01-06T01:05:32.000Z
docs/Others/Python_leetcode/Codes/1.Two_Sum.py
mheanng/PythonNote
e3e5ede07968fab0a45f6ac4db96e62092c17026
[ "Apache-2.0" ]
6
2020-03-09T07:19:21.000Z
2021-01-05T23:23:42.000Z
""" nums target : nums = [2, 7, 11, 15], target = 9 nums[0] + nums[1] = 2 + 7 = 9 [0, 1] """ # %% nums = [2, 2, 7, 11, 15] target = 9 print(Solution().twoSum(nums, target)) nums = [2, 5, 5, 11] target = 10 print(Solution().twoSum(nums, target))
22.117647
66
0.542553
e8f4b23ed19c18a99bdef84f2585aee923db8769
3,306
py
Python
pyathena/util/rebin.py
changgoo/pyathena-1
c461ac3390d773537ce52393e3ebf68a3282aa46
[ "MIT" ]
1
2019-10-03T13:59:14.000Z
2019-10-03T13:59:14.000Z
pyathena/util/rebin.py
changgoo/pyathena-1
c461ac3390d773537ce52393e3ebf68a3282aa46
[ "MIT" ]
3
2020-09-23T23:36:17.000Z
2022-01-11T06:16:56.000Z
pyathena/util/rebin.py
changgoo/pyathena-1
c461ac3390d773537ce52393e3ebf68a3282aa46
[ "MIT" ]
2
2019-06-10T04:26:16.000Z
2019-12-04T22:27:02.000Z
from __future__ import print_function import numpy as np def rebin_xyz(arr, bin_factor, fill_value=None): """ Function to rebin masked 3d array. Parameters ---------- arr : ndarray Masked or unmasked 3d numpy array. Shape is assumed to be (nz, ny, nx). bin_factor : int bin...
28.747826
109
0.578947
e8f589ed3e76934af8053deea1546715e9acd247
9,095
py
Python
fn_utilities/fn_utilities/components/utilities_shell_command.py
rudimeyer/resilient-community-apps
7a46841ba41fa7a1c421d4b392b0a3ca9e36bd00
[ "MIT" ]
1
2020-08-25T03:43:07.000Z
2020-08-25T03:43:07.000Z
fn_utilities/fn_utilities/components/utilities_shell_command.py
rudimeyer/resilient-community-apps
7a46841ba41fa7a1c421d4b392b0a3ca9e36bd00
[ "MIT" ]
1
2019-07-08T16:57:48.000Z
2019-07-08T16:57:48.000Z
fn_utilities/fn_utilities/components/utilities_shell_command.py
rudimeyer/resilient-community-apps
7a46841ba41fa7a1c421d4b392b0a3ca9e36bd00
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # (c) Copyright IBM Corp. 2018. All Rights Reserved. # pragma pylint: disable=unused-argument, no-self-use """Function implementation""" import os import logging import time import shlex import subprocess import json import chardet import winrm import re from resilient_circuits import Resilien...
45.934343
119
0.534469
e8f5e5aaaf237abae1b7ee4f6b5a71282972a181
428
py
Python
snapmerge/home/migrations/0010_project_email.py
R4356th/smerge
2f2a6a4acfe3903ed4f71d90537f7277248e8b59
[ "MIT" ]
13
2018-07-16T09:59:55.000Z
2022-01-27T19:07:17.000Z
snapmerge/home/migrations/0010_project_email.py
R4356th/smerge
2f2a6a4acfe3903ed4f71d90537f7277248e8b59
[ "MIT" ]
55
2018-07-16T12:17:58.000Z
2022-03-17T16:10:30.000Z
snapmerge/home/migrations/0010_project_email.py
R4356th/smerge
2f2a6a4acfe3903ed4f71d90537f7277248e8b59
[ "MIT" ]
4
2019-10-10T20:16:49.000Z
2021-03-12T07:15:50.000Z
# Generated by Django 2.0.1 on 2018-07-26 12:51 from django.db import migrations, models
22.526316
97
0.61215
e8f70cb35f8f35780ab43f567c03a983bf3f8b23
5,512
py
Python
othello.py
edjacob25/Intelligent-Systems
ae24c7e1039c98cd2940a5a813aae27fabadb99f
[ "MIT" ]
null
null
null
othello.py
edjacob25/Intelligent-Systems
ae24c7e1039c98cd2940a5a813aae27fabadb99f
[ "MIT" ]
null
null
null
othello.py
edjacob25/Intelligent-Systems
ae24c7e1039c98cd2940a5a813aae27fabadb99f
[ "MIT" ]
null
null
null
from games import (GameState, Game, query_player, random_player, alphabeta_player, play_game, minimax_decision, alphabeta_full_search, alphabeta_search)
40.529412
80
0.502903
e8fb499b8bff3a7d1f52fd19a5495fe47b6684e5
2,165
py
Python
bot/lib/controller/GetCommentTask.py
nullwriter/ig-actor
a089107657ccdf11ba213160c4cc5d3690cecd76
[ "MIT" ]
null
null
null
bot/lib/controller/GetCommentTask.py
nullwriter/ig-actor
a089107657ccdf11ba213160c4cc5d3690cecd76
[ "MIT" ]
null
null
null
bot/lib/controller/GetCommentTask.py
nullwriter/ig-actor
a089107657ccdf11ba213160c4cc5d3690cecd76
[ "MIT" ]
null
null
null
import time import re from FileLogger import FileLogger as FL import datetime
28.116883
100
0.525635
e8fc53ef376367f7c8b17273ac9b30e8bcf26788
4,981
py
Python
scripts/mc_counting_same_origin.py
jonassagild/Track-to-Track-Fusion
6bb7fbe6a6e2d9a2713c47f211899226485eee79
[ "MIT" ]
4
2021-06-16T19:33:56.000Z
2022-03-14T06:47:41.000Z
scripts/mc_counting_same_origin.py
jonassagild/Track-to-Track-Fusion
6bb7fbe6a6e2d9a2713c47f211899226485eee79
[ "MIT" ]
2
2021-06-08T16:18:45.000Z
2021-11-25T09:38:08.000Z
scripts/mc_counting_same_origin.py
jonassagild/Track-to-Track-Fusion
6bb7fbe6a6e2d9a2713c47f211899226485eee79
[ "MIT" ]
4
2020-09-28T04:54:17.000Z
2021-10-15T15:58:38.000Z
""" script to run mc sims on the three associations techniques when the tracks origin are equal. Used to calculate the total number of correctly associating tracks and total # falsly not associating tracks from the same target. """ import numpy as np from stonesoup.types.state import GaussianState from data_associati...
49.81
116
0.682995
e8fc72a77fdd416f9afae8ddad6132491cc5fabf
4,405
py
Python
c4/system/history.py
Brewgarten/c4-system-manager
6fdec33ced4b1cb32d82a24cd168447a899b7e10
[ "MIT" ]
null
null
null
c4/system/history.py
Brewgarten/c4-system-manager
6fdec33ced4b1cb32d82a24cd168447a899b7e10
[ "MIT" ]
1
2017-10-17T21:51:40.000Z
2017-10-17T21:51:40.000Z
c4/system/history.py
Brewgarten/c4-system-manager
6fdec33ced4b1cb32d82a24cd168447a899b7e10
[ "MIT" ]
null
null
null
""" Copyright (c) IBM 2015-2017. All Rights Reserved. Project name: c4-system-manager This project is licensed under the MIT License, see LICENSE """ from abc import ABCMeta, abstractmethod
26.065089
90
0.595687
e8ff4205f8efbe6454dce1e931b810fa2782cb7c
5,876
py
Python
zkfarmer/utils.py
artarik/zkfarmer
e1297bd27347ac8a5333b4b10aaae3868f457222
[ "MIT" ]
null
null
null
zkfarmer/utils.py
artarik/zkfarmer
e1297bd27347ac8a5333b4b10aaae3868f457222
[ "MIT" ]
null
null
null
zkfarmer/utils.py
artarik/zkfarmer
e1297bd27347ac8a5333b4b10aaae3868f457222
[ "MIT" ]
null
null
null
import json import operator import logging import re import time from socket import socket, AF_INET, SOCK_DGRAM from functools import reduce logger = logging.getLogger(__name__) def ip(): """Find default IP""" ip = None s = socket(AF_INET, SOCK_DGRAM) try: s.connect(('239.255.0.0', 9)) ...
31.934783
96
0.536079
e8ff9e109d1e3411f4ef5d970014c1908546fefe
6,168
py
Python
support/update_dht_servers.py
sonofmom/ton-zabbix-scripts
b43471d058873c5ba78a92fa79d334380df5f6fc
[ "MIT" ]
null
null
null
support/update_dht_servers.py
sonofmom/ton-zabbix-scripts
b43471d058873c5ba78a92fa79d334380df5f6fc
[ "MIT" ]
null
null
null
support/update_dht_servers.py
sonofmom/ton-zabbix-scripts
b43471d058873c5ba78a92fa79d334380df5f6fc
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # import sys import os sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__)))) import argparse import Libraries.arguments as ar import Libraries.tools.general as gt import Libraries.tools.zabbix as zt import Classes.AppConfig as AppConfig import requests import copy if __...
35.245714
148
0.50989
330000bbbc4cd1509f76a97c2471648387f8c603
332
py
Python
src/data/dbConnection.py
leonardoleyva/api-agenda-uas
697740a0a3feebb2ada01133db020fcf5127e1de
[ "MIT" ]
1
2022-03-13T02:28:29.000Z
2022-03-13T02:28:29.000Z
src/data/dbConnection.py
leonardoleyva/api-agenda-uas
697740a0a3feebb2ada01133db020fcf5127e1de
[ "MIT" ]
null
null
null
src/data/dbConnection.py
leonardoleyva/api-agenda-uas
697740a0a3feebb2ada01133db020fcf5127e1de
[ "MIT" ]
null
null
null
from firebase_admin import firestore from google.cloud.firestore_v1.base_client import BaseClient from ..core.app import App
23.714286
60
0.710843
3300e6cf675f4b79e58bd1692aff8eee2b9eee77
124
py
Python
math/PowerModPower.py
silvioedu/HackerRank-Python-Practice
e31ebe49d431c0a23fed0cd67a6984e2b0b7a260
[ "MIT" ]
null
null
null
math/PowerModPower.py
silvioedu/HackerRank-Python-Practice
e31ebe49d431c0a23fed0cd67a6984e2b0b7a260
[ "MIT" ]
null
null
null
math/PowerModPower.py
silvioedu/HackerRank-Python-Practice
e31ebe49d431c0a23fed0cd67a6984e2b0b7a260
[ "MIT" ]
null
null
null
if __name__ == '__main__': a, b, m = int(input()),int(input()),int(input()) print(pow(a,b)) print(pow(a,b,m))
31
53
0.532258
3301f92fef2ea95eab5a3e90a808b11c54276e49
273
py
Python
test_autolens/integration/tests/imaging/lens_only/mock_nlo/lens_light__hyper_bg_noise.py
PyJedi/PyAutoLens
bcfb2e7b447aa24508fc648d60b6fd9b4fd852e7
[ "MIT" ]
1
2020-04-06T20:07:56.000Z
2020-04-06T20:07:56.000Z
test_autolens/integration/tests/imaging/lens_only/mock_nlo/lens_light__hyper_bg_noise.py
PyJedi/PyAutoLens
bcfb2e7b447aa24508fc648d60b6fd9b4fd852e7
[ "MIT" ]
null
null
null
test_autolens/integration/tests/imaging/lens_only/mock_nlo/lens_light__hyper_bg_noise.py
PyJedi/PyAutoLens
bcfb2e7b447aa24508fc648d60b6fd9b4fd852e7
[ "MIT" ]
null
null
null
from test_autolens.integration.tests.imaging.lens_only import lens_light__hyper_bg_noise from test_autolens.integration.tests.imaging.runner import run_a_mock
34.125
88
0.849817
33026e3d3385ab0a61779b22eebf7f1ae1b53d97
3,047
py
Python
pyleecan/Methods/Slot/HoleM51/_comp_point_coordinate.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
95
2019-01-23T04:19:45.000Z
2022-03-17T18:22:10.000Z
pyleecan/Methods/Slot/HoleM51/_comp_point_coordinate.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
366
2019-02-20T07:15:08.000Z
2022-03-31T13:37:23.000Z
pyleecan/Methods/Slot/HoleM51/_comp_point_coordinate.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
74
2019-01-24T01:47:31.000Z
2022-02-25T05:44:42.000Z
from numpy import exp, pi, cos, sin, tan from ....Functions.Geometry.inter_line_circle import inter_line_circle def _comp_point_coordinate(self): """Compute the point coordinates needed to plot the Slot. Parameters ---------- self : HoleM51 A HoleM51 object Returns ------- point_...
31.091837
81
0.535609
3302f95944549893e6c718830b8f06c614895c10
8,700
py
Python
Python/cs611python.py
david145/CS6112018
7a74c239bf5157507594157b5871c9d0c70fcc23
[ "MIT" ]
null
null
null
Python/cs611python.py
david145/CS6112018
7a74c239bf5157507594157b5871c9d0c70fcc23
[ "MIT" ]
1
2018-10-29T17:41:08.000Z
2018-10-29T17:41:08.000Z
Python/cs611python.py
david145/CS6112018
7a74c239bf5157507594157b5871c9d0c70fcc23
[ "MIT" ]
null
null
null
print("\n") print("PythonExercises-v2 by David Bochan") print("\n") print("=== EXERCISE 1 ===") print("\n") print("(a) 5 / 3 = " + str(5 / 3)) print("=> with python3 you can receive a float even if you divide two \ integers") print("\n") print("(b) 5 % 3 = " + str(5 % 3)) print("=> % is the modulus which divides lef...
23.138298
79
0.608046
33030065b5b2083f8a15967babebd9c665e0b507
5,774
py
Python
src/usgsgeomag.py
jake9wi/spaceweather
a0e08033c3dc34835f8d5d46c6263b5f4b5f0877
[ "MIT" ]
null
null
null
src/usgsgeomag.py
jake9wi/spaceweather
a0e08033c3dc34835f8d5d46c6263b5f4b5f0877
[ "MIT" ]
null
null
null
src/usgsgeomag.py
jake9wi/spaceweather
a0e08033c3dc34835f8d5d46c6263b5f4b5f0877
[ "MIT" ]
null
null
null
"""Plot USGS geomag data.""" import argparse import pathlib as pl import datetime as dt import matplotlib; matplotlib.use('cairo') import matplotlib.pyplot as plt import matplotlib.dates as mdates import matplotlib.ticker as mticker import requests import pandas as pd import funcs funcs.check_cwd(pl.Path.cwd()) DTG_F...
20.621429
72
0.574991
3304cda4bb7181483694fd293ce4ad5249b9bc1e
2,178
py
Python
checkov/terraform/checks/resource/kubernetes/PodSecurityContext.py
pmalkki/checkov
b6cdf386dd976fe27c16fed6d550756a678a5d7b
[ "Apache-2.0" ]
null
null
null
checkov/terraform/checks/resource/kubernetes/PodSecurityContext.py
pmalkki/checkov
b6cdf386dd976fe27c16fed6d550756a678a5d7b
[ "Apache-2.0" ]
null
null
null
checkov/terraform/checks/resource/kubernetes/PodSecurityContext.py
pmalkki/checkov
b6cdf386dd976fe27c16fed6d550756a678a5d7b
[ "Apache-2.0" ]
null
null
null
from checkov.common.models.enums import CheckCategories, CheckResult from checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck check = PodSecurityContext()
41.09434
106
0.596878
33050cf010c98c8d6ee47a3c7fc7081460e0df92
345
py
Python
hardware/demo_i2c.py
leeehuang/MaixPy_scripts
79a5485ec983e67bb8861305a52418b29e0dc205
[ "MIT" ]
null
null
null
hardware/demo_i2c.py
leeehuang/MaixPy_scripts
79a5485ec983e67bb8861305a52418b29e0dc205
[ "MIT" ]
null
null
null
hardware/demo_i2c.py
leeehuang/MaixPy_scripts
79a5485ec983e67bb8861305a52418b29e0dc205
[ "MIT" ]
null
null
null
from machine import I2C # i2c = I2C(I2C.I2C0, freq=100000, scl=28, sda=29) # hardware i2c i2c = I2C(I2C.I2C3, freq=100000, scl=28, sda=29) # software i2c devices = i2c.scan() print(devices) for device in devices: i2c.writeto(device, b'123') i2c.readfrom(device, 3) # tmp = bytearray(6) # i2c.readfrom_...
23
65
0.672464
3305691c62826956ff8ed131b9e4f86523e06726
1,431
py
Python
repos/system_upgrade/common/models/selinux.py
sm00th/leapp-repository
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
[ "Apache-2.0" ]
null
null
null
repos/system_upgrade/common/models/selinux.py
sm00th/leapp-repository
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
[ "Apache-2.0" ]
1
2022-03-07T15:34:11.000Z
2022-03-07T15:35:15.000Z
repos/system_upgrade/common/models/selinux.py
sm00th/leapp-repository
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
[ "Apache-2.0" ]
null
null
null
from leapp.models import fields, Model from leapp.topics import SystemInfoTopic, TransactionTopic
31.108696
70
0.716981