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
633d6db47ffd3a0bfb75a0fe45f30235b4e37486
834
py
Python
Apriori/src/main.py
ranery/Courses-only
8bc1254076c75b55b536498037ff0594a951d18f
[ "MIT" ]
2
2021-03-31T21:46:58.000Z
2021-04-04T08:59:50.000Z
Apriori/src/main.py
ranery/Courses-only
8bc1254076c75b55b536498037ff0594a951d18f
[ "MIT" ]
null
null
null
Apriori/src/main.py
ranery/Courses-only
8bc1254076c75b55b536498037ff0594a951d18f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @author : Haoran You """ import sys import data from Apriori import Apriori from optparse import OptionParser optparser = OptionParser() optparser.add_option('--inputFile', dest='input', help='filename containing csv', default='goods.csv') optparser.add_option('--minSupport', dest='minS', ...
30.888889
112
0.736211
633d88c667ff815677d77f4463db3ccad4431980
8,791
py
Python
extra/slothclasses/agares.py
Tirithel/sloth-bot
de1f9cc60196d9cd389cdbf38223fa3c35f62eb4
[ "MIT" ]
null
null
null
extra/slothclasses/agares.py
Tirithel/sloth-bot
de1f9cc60196d9cd389cdbf38223fa3c35f62eb4
[ "MIT" ]
null
null
null
extra/slothclasses/agares.py
Tirithel/sloth-bot
de1f9cc60196d9cd389cdbf38223fa3c35f62eb4
[ "MIT" ]
null
null
null
import discord from discord.ext import commands import os from .player import Player from extra.menu import ConfirmSkill import os from datetime import datetime bots_and_commands_channel_id = int(os.getenv('BOTS_AND_COMMANDS_CHANNEL_ID'))
46.760638
173
0.663406
633fea310c7ede3fcdb48e65d6529aca3feaa371
300
py
Python
WhatsAppManifest/automator/android/__init__.py
riquedev/WhatsAppManifest
bcbbd48f6f9152024a54172886876d3a725a3a62
[ "MIT" ]
15
2020-03-11T17:31:12.000Z
2021-11-19T03:26:09.000Z
WhatsAppManifest/automator/android/__init__.py
riquedev/WhatsAppManifest
bcbbd48f6f9152024a54172886876d3a725a3a62
[ "MIT" ]
5
2021-03-31T19:43:15.000Z
2022-03-12T00:18:38.000Z
WhatsAppManifest/automator/android/__init__.py
riquedev/WhatsAppManifest
bcbbd48f6f9152024a54172886876d3a725a3a62
[ "MIT" ]
4
2020-03-11T01:52:57.000Z
2021-03-16T04:14:33.000Z
""" Module responsible for all automation related to the device """ __author__ = 'Henrique da Silva Santos' __copyright__ = 'Copyright 2020, WhatsAppManifest' from WhatsAppManifest.automator.android.phone import AndroidPhone from WhatsAppManifest.automator.android.contacts import AndroidContacts
27.272727
71
0.826667
6341b0389a7fba7d8c81d28e1d7d34cd6e28e72b
1,968
py
Python
threp_example.py
wasupandceacar/threp_fucker
d6879ce613e189131ff994a41d5d828a3e3b527d
[ "MIT" ]
24
2018-02-12T13:44:57.000Z
2021-12-16T09:49:54.000Z
threp_example.py
wasupandceacar/threp_fucker
d6879ce613e189131ff994a41d5d828a3e3b527d
[ "MIT" ]
4
2018-03-14T12:16:29.000Z
2021-12-22T12:03:23.000Z
threp_example.py
wasupandceacar/threp_fucker
d6879ce613e189131ff994a41d5d828a3e3b527d
[ "MIT" ]
3
2020-02-01T12:03:38.000Z
2021-12-15T18:02:32.000Z
from threp import THReplay if __name__ == '__main__': # replay tr = THReplay('rep_tst/th13_01.rpy') # rep # etc. Reimu A Normal All print(tr.getBaseInfo()) # rep # character shottype rank stage # etc. Reimu A Normal All print(tr.getBaseInfoDic()) # repstagelist # etc. [1...
28.521739
325
0.521341
634233844cc354ce43c07fa8d4b0af235345aaef
901
py
Python
web/api/tests/test_health_check.py
marcelomansur/maria-quiteria
953ac1e2caf69e9f44c670d3c4a69e00fff404e4
[ "MIT" ]
151
2019-11-10T02:18:25.000Z
2022-01-18T14:28:25.000Z
web/api/tests/test_health_check.py
marcelomansur/maria-quiteria
953ac1e2caf69e9f44c670d3c4a69e00fff404e4
[ "MIT" ]
202
2019-11-09T16:27:19.000Z
2022-03-22T12:41:27.000Z
web/api/tests/test_health_check.py
marcelomansur/maria-quiteria
953ac1e2caf69e9f44c670d3c4a69e00fff404e4
[ "MIT" ]
69
2020-02-05T01:33:35.000Z
2022-03-30T10:39:27.000Z
import pytest from django.urls import reverse
34.653846
83
0.702553
63428481e47a4cce5e89935d6ef0c546574044b9
2,768
py
Python
examples/client-gen/tictactoe/types/game_state.py
kevinheavey/anchorpy
d4cc28365c6adaeaec7f5001fa6b8a3e719b41ad
[ "MIT" ]
87
2021-09-26T18:14:07.000Z
2022-03-28T08:22:24.000Z
examples/client-gen/tictactoe/types/game_state.py
kevinheavey/anchorpy
d4cc28365c6adaeaec7f5001fa6b8a3e719b41ad
[ "MIT" ]
15
2021-10-07T16:12:23.000Z
2022-03-20T21:04:40.000Z
examples/client-gen/tictactoe/types/game_state.py
kevinheavey/anchorpy
d4cc28365c6adaeaec7f5001fa6b8a3e719b41ad
[ "MIT" ]
16
2021-10-16T04:40:28.000Z
2022-03-18T16:49:40.000Z
from __future__ import annotations import typing from dataclasses import dataclass from solana.publickey import PublicKey from anchorpy.borsh_extension import EnumForCodegen, BorshPubkey import borsh_construct as borsh GameStateKind = typing.Union[Active, Tie, Won] GameStateJSON = typing.Union[ActiveJSON, Tie...
21.292308
64
0.58237
6342acf3483b4a05386806c72b9900a8869e9d07
1,196
py
Python
test/test_cli.py
yxmanfred/optimesh
b85f48d1559a51a01cc3df6214c61ca8ad5ed786
[ "MIT" ]
1
2019-04-12T01:23:17.000Z
2019-04-12T01:23:17.000Z
test/test_cli.py
yxmanfred/optimesh
b85f48d1559a51a01cc3df6214c61ca8ad5ed786
[ "MIT" ]
null
null
null
test/test_cli.py
yxmanfred/optimesh
b85f48d1559a51a01cc3df6214c61ca8ad5ed786
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # import pytest import optimesh from helpers import download_mesh if __name__ == "__main__": test_cli("odt")
24.916667
85
0.576923
6344c1a546dfde9307cede5f7a6e9805a1f7479b
385
py
Python
roles/lib_openshift/src/lib/import.py
ramkrsna/openshift-ansible
fc96d8d22f6c277b599e6e2fa4e9cc06814a9460
[ "Apache-2.0" ]
null
null
null
roles/lib_openshift/src/lib/import.py
ramkrsna/openshift-ansible
fc96d8d22f6c277b599e6e2fa4e9cc06814a9460
[ "Apache-2.0" ]
null
null
null
roles/lib_openshift/src/lib/import.py
ramkrsna/openshift-ansible
fc96d8d22f6c277b599e6e2fa4e9cc06814a9460
[ "Apache-2.0" ]
null
null
null
# pylint: skip-file # flake8: noqa ''' OpenShiftCLI class that wraps the oc commands in a subprocess ''' # pylint: disable=too-many-lines from __future__ import print_function import atexit import json import os import re import shutil import subprocess import tempfile # pylint: disable=import-error import ruamel.y...
20.263158
64
0.8
6344f2d6da2847a70b255b03f0e6dc740b751d0e
1,025
py
Python
ngsutils/bam/t/test_stats.py
bgruening/ngsutils
417e90dc1918fb553dd84990f2c54bd8cea8f44d
[ "BSD-3-Clause" ]
57
2015-03-09T01:26:45.000Z
2022-02-22T07:26:01.000Z
ngsutils/bam/t/test_stats.py
bgruening/ngsutils
417e90dc1918fb553dd84990f2c54bd8cea8f44d
[ "BSD-3-Clause" ]
33
2015-02-03T23:24:46.000Z
2022-03-16T20:08:10.000Z
ngsutils/bam/t/test_stats.py
bgruening/ngsutils
417e90dc1918fb553dd84990f2c54bd8cea8f44d
[ "BSD-3-Clause" ]
33
2015-01-18T16:47:47.000Z
2022-02-22T07:28:09.000Z
#!/usr/bin/env python ''' Tests for bamutils stats ''' import os import unittest import ngsutils.bam import ngsutils.bam.stats if __name__ == '__main__': unittest.main()
27.702703
93
0.660488
6345129d5bc1da3f7a4ddae9ce0115d6922c7000
2,042
py
Python
test/gcp/test_gcs.py
bavard-ai/bavard-ml-utils
00b6575d5c74c66f57ca1da753b91d3ceef6d1e4
[ "MIT" ]
1
2022-02-24T21:25:02.000Z
2022-02-24T21:25:02.000Z
test/gcp/test_gcs.py
bavard-ai/bavard-ml-utils
00b6575d5c74c66f57ca1da753b91d3ceef6d1e4
[ "MIT" ]
null
null
null
test/gcp/test_gcs.py
bavard-ai/bavard-ml-utils
00b6575d5c74c66f57ca1da753b91d3ceef6d1e4
[ "MIT" ]
null
null
null
from unittest import TestCase from bavard_ml_utils.gcp.gcs import GCSClient from test.utils import DirSpec, FileSpec
36.464286
105
0.658668
63456d2b7e536035a7766de0ff9f77efbb0f499a
357
py
Python
utils.py
cyborg00222/kowalsky.at
090778863625b67bce942fe85716941c3bf75a4b
[ "MIT" ]
null
null
null
utils.py
cyborg00222/kowalsky.at
090778863625b67bce942fe85716941c3bf75a4b
[ "MIT" ]
null
null
null
utils.py
cyborg00222/kowalsky.at
090778863625b67bce942fe85716941c3bf75a4b
[ "MIT" ]
null
null
null
# Peter Kowalsky - 10.06.19 import os
17.85
38
0.638655
63468acc0ac6a4997496eeb95bb3c0c24a04aa45
2,746
py
Python
formain.py
GenBill/Maple_2K
e82df2c2d549d91a1d53cc8b8b688949a5280792
[ "MIT" ]
null
null
null
formain.py
GenBill/Maple_2K
e82df2c2d549d91a1d53cc8b8b688949a5280792
[ "MIT" ]
null
null
null
formain.py
GenBill/Maple_2K
e82df2c2d549d91a1d53cc8b8b688949a5280792
[ "MIT" ]
null
null
null
from fim_mission import * import torch import torch.nn as nn import torch.nn.parallel import torch.nn.functional as F import torch.backends.cudnn as cudnn import torch.optim as optim from torch.optim import lr_scheduler import torchvision.transforms as transforms from torchvision import datasets, models import matplo...
32.305882
84
0.633285
6346bc83f256deb2c811a42a3cf69e8067d988ea
4,337
py
Python
sleep_staging_methods/multitaper/train_8m.py
GuanLab/DeepSleep
220ae1348aaaba115b82d89a9a5ab5bb6f569062
[ "MIT" ]
27
2019-04-26T21:12:52.000Z
2022-03-13T15:51:18.000Z
sleep_staging_methods/multitaper/train_8m.py
Hongyang449/DeepSleep
f779e050e4ad1ba7b96ddf0c9aef421770bbbd53
[ "MIT" ]
3
2021-07-20T15:35:07.000Z
2021-11-12T15:35:52.000Z
sleep_staging_methods/multitaper/train_8m.py
GuanLab/DeepSleep
220ae1348aaaba115b82d89a9a5ab5bb6f569062
[ "MIT" ]
9
2019-06-12T20:10:24.000Z
2021-12-08T12:45:36.000Z
from __future__ import print_function import os import sys import numpy as np from keras.models import Model from keras.layers import Input, concatenate, Conv1D, MaxPooling1D, Conv2DTranspose,Lambda from keras.optimizers import Adam from keras.callbacks import ModelCheckpoint from keras import backend as K import tens...
32.609023
93
0.685958
6346c2addc2cf35274df3428a19c76028b86eba4
252
py
Python
Sprachanalyse/versuch.py
DemonicStorm/LitBlogRepo
0fe436071840f3b9af59f4363967cfc6eb397865
[ "MIT" ]
2
2022-02-15T19:18:12.000Z
2022-02-16T08:06:20.000Z
Sprachanalyse/versuch.py
DemonicStorm/LitBlogRepo
0fe436071840f3b9af59f4363967cfc6eb397865
[ "MIT" ]
null
null
null
Sprachanalyse/versuch.py
DemonicStorm/LitBlogRepo
0fe436071840f3b9af59f4363967cfc6eb397865
[ "MIT" ]
null
null
null
import spacy from spacy_langdetect import LanguageDetector import en_core_web_sm from glob import glob nlp = en_core_web_sm.load() #nlp = spacy.load('en') nlp.add_pipe(LanguageDetector(), name='language_detector', last=True) print(LanguageDetector)
21
69
0.805556
63494cbde2d85460ac5f8725fc7d01e2aee00fe5
43,623
py
Python
usr/lib/tuquito/tuquito-software-manager/widgets/pathbar2.py
emmilinuxorg/emmi-aplicativos
ae84dcc8b9441dd6c735f70a9b1a8ec91871955d
[ "MIT" ]
null
null
null
usr/lib/tuquito/tuquito-software-manager/widgets/pathbar2.py
emmilinuxorg/emmi-aplicativos
ae84dcc8b9441dd6c735f70a9b1a8ec91871955d
[ "MIT" ]
null
null
null
usr/lib/tuquito/tuquito-software-manager/widgets/pathbar2.py
emmilinuxorg/emmi-aplicativos
ae84dcc8b9441dd6c735f70a9b1a8ec91871955d
[ "MIT" ]
null
null
null
# Copyright (C) 2009 Matthew McGowan # # Authors: # Matthew McGowan # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. ...
30.763752
86
0.562799
6349977120b1f7e73c34cb0ef18c1955caa9b170
5,971
py
Python
.venv/lib/python3.8/site-packages/rmtest/disposableredis/__init__.py
nuruddinsayeed/ru102py
ef43464a93dd74e24f9447ed5014acb35b9a650e
[ "MIT" ]
null
null
null
.venv/lib/python3.8/site-packages/rmtest/disposableredis/__init__.py
nuruddinsayeed/ru102py
ef43464a93dd74e24f9447ed5014acb35b9a650e
[ "MIT" ]
null
null
null
.venv/lib/python3.8/site-packages/rmtest/disposableredis/__init__.py
nuruddinsayeed/ru102py
ef43464a93dd74e24f9447ed5014acb35b9a650e
[ "MIT" ]
null
null
null
import subprocess import socket import redis import time import os import os.path import sys import warnings import random REDIS_DEBUGGER = os.environ.get('REDIS_DEBUGGER', None) REDIS_SHOW_OUTPUT = int(os.environ.get( 'REDIS_VERBOSE', 1 if REDIS_DEBUGGER else 0))
28.433333
80
0.54212
634aec23f0d6252efab55e311a6bc96d9c7f0eb3
16,843
py
Python
disco_aws_automation/disco_autoscale.py
Angakkuq/asiaq-aws
f7ddec9fc60aef685f372cbaefee2b08ae18b6a0
[ "BSD-2-Clause" ]
null
null
null
disco_aws_automation/disco_autoscale.py
Angakkuq/asiaq-aws
f7ddec9fc60aef685f372cbaefee2b08ae18b6a0
[ "BSD-2-Clause" ]
4
2016-03-22T17:04:04.000Z
2016-03-23T18:03:45.000Z
disco_aws_automation/disco_autoscale.py
Angakkuit/asiaq-aws
f7ddec9fc60aef685f372cbaefee2b08ae18b6a0
[ "BSD-2-Clause" ]
null
null
null
'''Contains DiscoAutoscale class that orchestrates AWS Autoscaling''' import logging import random import boto import boto.ec2 import boto.ec2.autoscale import boto.ec2.autoscale.launchconfig import boto.ec2.autoscale.group from boto.ec2.autoscale.policy import ScalingPolicy from boto.exception import BotoServerError ...
46.271978
110
0.657543
634b0fccab27c3552b1794373b64b0eabd3f0b1b
17,621
py
Python
rrlfd/residual/train.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-13T21:48:52.000Z
2022-03-13T21:48:52.000Z
rrlfd/residual/train.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
null
null
null
rrlfd/residual/train.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-30T07:20:29.000Z
2022-03-30T07:20:29.000Z
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
43.616337
80
0.684524
634b7d80c5c9288d78d5d9a43bb5596a0c00f3ab
438
py
Python
doc/python_study_code/fibc.py
beiliwenxiao/vimrc
eb38fc769f3f5f78000060dac674b5c49d63c24c
[ "MIT" ]
null
null
null
doc/python_study_code/fibc.py
beiliwenxiao/vimrc
eb38fc769f3f5f78000060dac674b5c49d63c24c
[ "MIT" ]
null
null
null
doc/python_study_code/fibc.py
beiliwenxiao/vimrc
eb38fc769f3f5f78000060dac674b5c49d63c24c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 __metaclass__ = type fibs = Fibs() for f in fibs: if f > 9999999999999999999999999L: print 'End Numbers is:',f break else: print f
19.043478
46
0.561644
634dbb7f297045c79fe90538f214e33393d57c93
517
py
Python
Python/turtle_drawer_seanyboi.py
nskesav/Hacktoberfest-Beginner-level
7f834acb0fd3d4556fb2696a2a7d1e82307f0baf
[ "MIT" ]
59
2019-10-03T07:02:22.000Z
2021-09-30T18:24:10.000Z
Python/turtle_drawer_seanyboi.py
nskesav/Hacktoberfest-Beginner-level
7f834acb0fd3d4556fb2696a2a7d1e82307f0baf
[ "MIT" ]
94
2019-10-03T06:58:50.000Z
2020-09-30T08:08:45.000Z
Python/turtle_drawer_seanyboi.py
nskesav/Hacktoberfest-Beginner-level
7f834acb0fd3d4556fb2696a2a7d1e82307f0baf
[ "MIT" ]
267
2019-10-03T07:09:30.000Z
2021-09-30T18:24:11.000Z
# draws a shape and fills with a colour import turtle import math import colorsys phi = 180 * (3 - math.sqrt(5)) # initialises the turtle Pen t = turtle.Pen() t.speed() # defines the shape to be drawn num = 200 for x in reversed(range(0, num)): t.fillcolor(colorsys.hsv_to_rgb(x/num, 1.0, 1.0)) t.begin_fill() t....
15.666667
50
0.667311
634f60b0c83c6e710d6ef16e4bf19157169871cf
12,073
py
Python
mininext/util.py
vikaskamath/miniNExT
6dcf959eec26df50787099a3913a492ba0b35756
[ "MIT" ]
36
2015-02-02T15:02:15.000Z
2022-01-14T22:54:58.000Z
mininext/util.py
RS1999ent/miniNExT_evolvability
1328ea38db507598a430e9f8b547dce06a4374bb
[ "MIT" ]
15
2015-02-21T09:05:13.000Z
2021-08-31T13:04:00.000Z
mininext/util.py
RS1999ent/miniNExT_evolvability
1328ea38db507598a430e9f8b547dce06a4374bb
[ "MIT" ]
29
2015-02-27T02:33:00.000Z
2021-11-21T12:15:31.000Z
""" Additional utilities and patches for MiniNExT. """ from os.path import isdir import os import pwd import grp import shutil from mininet.util import quietRun from mininext.mount import ObjectPermissions # Patches # def isShellBuiltin(cmd): """Override to replace MiniNExT's existing isShellBuiltin() function...
33.350829
79
0.629173
634f8edffeec0c94f327111a1a56115127590074
2,575
py
Python
volaupload/utils.py
RealDolos/volaupload
9705bbc4fcd1dbc59abde092ee48dce1cb0bd3e5
[ "MIT" ]
8
2017-02-19T00:24:24.000Z
2021-02-08T23:52:42.000Z
volaupload/utils.py
RealDolos/volaupload
9705bbc4fcd1dbc59abde092ee48dce1cb0bd3e5
[ "MIT" ]
4
2015-01-19T08:09:07.000Z
2018-09-11T21:57:06.000Z
volaupload/utils.py
RealDolos/volaupload
9705bbc4fcd1dbc59abde092ee48dce1cb0bd3e5
[ "MIT" ]
2
2015-12-19T11:04:48.000Z
2017-04-20T12:55:33.000Z
""" RealDolos' funky volafile upload tool""" # pylint: disable=broad-except import math import re import sys # pylint: disable=no-name-in-module try: from os import posix_fadvise, POSIX_FADV_WILLNEED except ImportError: def posix_fadvise(*args, **kw): """Mock implementation for systems not supporting...
26.010101
74
0.568155
63530b2bd1708f0bb4a3378fe01c2c5c65a9b0bc
3,801
py
Python
openquake/hazardlib/tests/source/non_parametric_test.py
gfzriesgos/shakyground-lfs
2caf67cc32e6800286eded2df1efb05973ccf41b
[ "BSD-3-Clause" ]
1
2019-08-01T00:28:24.000Z
2019-08-01T00:28:24.000Z
openquake/hazardlib/tests/source/non_parametric_test.py
gfzriesgos/shakyground-lfs
2caf67cc32e6800286eded2df1efb05973ccf41b
[ "BSD-3-Clause" ]
4
2018-08-31T14:14:35.000Z
2021-10-11T12:53:13.000Z
openquake/hazardlib/tests/source/non_parametric_test.py
gfzriesgos/shakyground-lfs
2caf67cc32e6800286eded2df1efb05973ccf41b
[ "BSD-3-Clause" ]
3
2018-08-31T14:11:00.000Z
2019-07-17T10:06:02.000Z
# The Hazard Library # Copyright (C) 2013-2018 GEM Foundation # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. #...
40.43617
78
0.675612
6353fd03f408a3e420c9272508ec8a75165d4ec5
2,395
py
Python
tmc/config.py
jgke/tmc.py
a061d199ecce0274c1fa554fb065e13647d9862b
[ "MIT" ]
null
null
null
tmc/config.py
jgke/tmc.py
a061d199ecce0274c1fa554fb065e13647d9862b
[ "MIT" ]
null
null
null
tmc/config.py
jgke/tmc.py
a061d199ecce0274c1fa554fb065e13647d9862b
[ "MIT" ]
null
null
null
import os from os import path, environ from configparser import ConfigParser from collections import OrderedDict
31.513158
78
0.622547
635559b738e5f1db17c5a1b948064af180ddd5b4
819
py
Python
code/main.py
RoshanTanisha/covid19
cdea60b84b2232e84efa0803a9b633d938247590
[ "MIT" ]
1
2020-05-20T03:47:01.000Z
2020-05-20T03:47:01.000Z
code/main.py
RoshanTanisha/covid19
cdea60b84b2232e84efa0803a9b633d938247590
[ "MIT" ]
null
null
null
code/main.py
RoshanTanisha/covid19
cdea60b84b2232e84efa0803a9b633d938247590
[ "MIT" ]
null
null
null
import h5py import numpy as np from code.model import UNetClassifier if __name__ == '__main__': model = Classifier((512, 512, 1), 2, True) all_images, all_labels = load_dataset() print(all_images.shape, all_labels.shape) model.train(all_images, all_labels, 15, 16, 0.2)
27.3
76
0.708181
6355c736188798e18f8ebe25d3c958a69c9cea68
54,947
py
Python
main.py
openmindednewby/Tool-for-creating-lip-recognition-datasets
d8bd97cfa112e8e2fb1f4cca20a7093493e3ed9d
[ "MIT" ]
4
2020-07-22T16:10:55.000Z
2021-11-25T08:32:34.000Z
main.py
openmindednewby/Tool-for-creating-lip-recognition-datasets
d8bd97cfa112e8e2fb1f4cca20a7093493e3ed9d
[ "MIT" ]
null
null
null
main.py
openmindednewby/Tool-for-creating-lip-recognition-datasets
d8bd97cfa112e8e2fb1f4cca20a7093493e3ed9d
[ "MIT" ]
2
2020-12-30T22:07:54.000Z
2021-02-02T01:12:13.000Z
''' Every type you encounter ##EDIT_ME## you will need to adjust these settings ''' import pandas as pd import numpy as np import module_youtube_extract import module_convert_audio_to_wav import module_process_subtitles import module_save_variables import module_video_processing import module_sample_name import module_...
70.80799
1,331
0.834804
63561f96997f9bab466f2fe72890e847cd62196a
9,462
py
Python
datmo/core/storage/local/dal.py
awesome-archive/datmo
72ea51c28a9947e24a464395bb0136b39eb6001a
[ "Apache-2.0" ]
331
2018-03-30T14:33:59.000Z
2022-01-10T19:43:32.000Z
datmo/core/storage/local/dal.py
KIMS-Github/datmo
a456d196006b67ce56af96cb4900682eab747bef
[ "MIT" ]
274
2018-04-08T17:12:44.000Z
2020-07-29T02:45:22.000Z
datmo/core/storage/local/dal.py
KIMS-Github/datmo
a456d196006b67ce56af96cb4900682eab747bef
[ "MIT" ]
28
2018-05-03T21:57:22.000Z
2020-12-31T04:18:42.000Z
import os from kids.cache import cache from datetime import datetime from datmo.core.util.i18n import get as __ from datmo.core.entity.model import Model from datmo.core.entity.code import Code from datmo.core.entity.environment import Environment from datmo.core.entity.file_collection import FileCollection from datmo...
29.84858
123
0.629148
635954cccfa45bc4cb0b41a99fdee38be3ae1775
358
py
Python
CodeForces/StonesOnTheTable/StonesonTheTable.py
GeorgianBadita/algorithmic-problems
6b260050b7a1768b5e47a1d7d4ef7138a52db210
[ "MIT" ]
1
2021-07-05T16:32:14.000Z
2021-07-05T16:32:14.000Z
CodeForces/StonesOnTheTable/StonesonTheTable.py
GeorgianBadita/algorithmic-problems
6b260050b7a1768b5e47a1d7d4ef7138a52db210
[ "MIT" ]
null
null
null
CodeForces/StonesOnTheTable/StonesonTheTable.py
GeorgianBadita/algorithmic-problems
6b260050b7a1768b5e47a1d7d4ef7138a52db210
[ "MIT" ]
1
2021-05-14T15:40:09.000Z
2021-05-14T15:40:09.000Z
print(main())
15.565217
35
0.432961
635a1b194d242f8ac83aa8d4f19dfd8d49c42b24
573
py
Python
app/routes.py
valtemirprocopio/forms
05d819aad3d8c32c87b0f62a3c8e2b6fda8aa26e
[ "MIT" ]
null
null
null
app/routes.py
valtemirprocopio/forms
05d819aad3d8c32c87b0f62a3c8e2b6fda8aa26e
[ "MIT" ]
null
null
null
app/routes.py
valtemirprocopio/forms
05d819aad3d8c32c87b0f62a3c8e2b6fda8aa26e
[ "MIT" ]
null
null
null
from app import app from flask import render_template, flash, redirect, url_for from app.forms import LoginForm
22.92
63
0.678883
635c827babc0af053e69c6189ed75cae75ad2a0f
336
py
Python
Python/Math/Armstrong-Number/armstrong-number.py
manoj-paramsetti-testing/Algorithm-Warehouse
89c41146a1c444605830016319e00c343fdbe154
[ "MIT" ]
4
2021-04-23T06:16:52.000Z
2022-01-03T14:36:51.000Z
Python/Math/Armstrong-Number/armstrong-number.py
manoj-paramsetti-testing/Algorithm-Warehouse
89c41146a1c444605830016319e00c343fdbe154
[ "MIT" ]
9
2021-04-12T02:56:35.000Z
2021-06-19T00:43:04.000Z
Python/Math/Armstrong-Number/armstrong-number.py
manoj-paramsetti-testing/Algorithm-Warehouse
89c41146a1c444605830016319e00c343fdbe154
[ "MIT" ]
2
2021-04-13T06:09:04.000Z
2021-04-13T10:59:15.000Z
num = int(input("Enter a number: ")) sum = 0; size = 0; temp = num; temp2 = num while(temp2!=0): size += 1 temp2 = int(temp2/10) while(temp!=0): remainder = temp%10 sum += remainder**size temp = int(temp/10) if(sum == num): print("It's an armstrong number") else: print("It's not an arms...
17.684211
42
0.58631
635cce5473f8750091e7f18d6db45331eaca5c07
174,251
py
Python
sdk/python/pulumi_spotinst/aws/mr_scalar.py
pulumi/pulumi-spotinst
75592d6293d63f6cec703722f2e02ff1fb1cca44
[ "ECL-2.0", "Apache-2.0" ]
4
2019-12-21T20:50:43.000Z
2021-12-01T20:57:38.000Z
sdk/python/pulumi_spotinst/aws/mr_scalar.py
pulumi/pulumi-spotinst
75592d6293d63f6cec703722f2e02ff1fb1cca44
[ "ECL-2.0", "Apache-2.0" ]
103
2019-12-09T22:03:16.000Z
2022-03-30T17:07:34.000Z
sdk/python/pulumi_spotinst/aws/mr_scalar.py
pulumi/pulumi-spotinst
75592d6293d63f6cec703722f2e02ff1fb1cca44
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
52.88346
338
0.679738
6361591f69d6d58dde012798f78f229535fcd8bf
4,189
py
Python
python-backend/app/api/mines/variances/resources/variance_document_upload.py
ActionAnalytics/mds
7ac61b0b73b1d310db7dcf2d830b5746b851fe4a
[ "Apache-2.0" ]
null
null
null
python-backend/app/api/mines/variances/resources/variance_document_upload.py
ActionAnalytics/mds
7ac61b0b73b1d310db7dcf2d830b5746b851fe4a
[ "Apache-2.0" ]
null
null
null
python-backend/app/api/mines/variances/resources/variance_document_upload.py
ActionAnalytics/mds
7ac61b0b73b1d310db7dcf2d830b5746b851fe4a
[ "Apache-2.0" ]
null
null
null
import base64 import requests from werkzeug.exceptions import BadRequest, NotFound from flask import request, current_app, Response from flask_restplus import Resource from app.extensions import api from ...mine.models.mine import Mine from ....documents.mines.models.mine_document import MineDocument from ....documen...
39.518868
95
0.681308
63625b735919dfc4cb5cbf688dbf97a5a8eb7672
2,709
py
Python
src/generated-spec/data_pipeline.py
wheerd/cloudformation-to-terraform
5411b33293e1f7d7673bb5d4cb52ff0537240db3
[ "MIT" ]
null
null
null
src/generated-spec/data_pipeline.py
wheerd/cloudformation-to-terraform
5411b33293e1f7d7673bb5d4cb52ff0537240db3
[ "MIT" ]
null
null
null
src/generated-spec/data_pipeline.py
wheerd/cloudformation-to-terraform
5411b33293e1f7d7673bb5d4cb52ff0537240db3
[ "MIT" ]
null
null
null
from . import *
42.328125
132
0.741602
63644d194b8d4b983a5942a1f10e9cd725bc6bed
2,295
py
Python
rl_algorithms/utils/config.py
medipixel/rl_algorithms
96bceb9d65c6d66fca59c4115cd7947f87b87ebc
[ "MIT" ]
466
2019-02-14T15:06:01.000Z
2022-03-28T03:08:10.000Z
rl_algorithms/utils/config.py
blakcapple/rl_algorithms
96bceb9d65c6d66fca59c4115cd7947f87b87ebc
[ "MIT" ]
138
2019-02-15T05:44:17.000Z
2021-12-15T06:00:55.000Z
rl_algorithms/utils/config.py
medipixel/reinforcement_learning_examples
c5f7d1d60dcefb3050d75c5c657207183bd8db65
[ "MIT" ]
86
2019-02-25T15:52:29.000Z
2022-03-08T06:30:36.000Z
import collections.abc as collections_abc import os.path as osp from addict import Dict import yaml
30.6
79
0.568192
63645da097f4e87f2edd1db2b89287cf483492a1
7,748
py
Python
elit/components/amr/amr_parser/amr_graph.py
emorynlp/el
dbe73d1ce6f2296a64fb013775d2691ae1ed90d4
[ "Apache-2.0" ]
40
2017-02-27T20:16:44.000Z
2022-03-25T04:58:01.000Z
elit/components/amr/amr_parser/amr_graph.py
emorynlp/el
dbe73d1ce6f2296a64fb013775d2691ae1ed90d4
[ "Apache-2.0" ]
12
2017-02-16T23:50:38.000Z
2022-01-19T21:29:59.000Z
elit/components/amr/amr_parser/amr_graph.py
emorynlp/levi-graph-amr-parser
f71f1056c13181b8db31d6136451fb8d57114819
[ "Apache-2.0" ]
6
2017-05-05T08:02:18.000Z
2021-11-03T23:47:23.000Z
# MIT License # # Copyright (c) 2020 Deng Cai # # 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, pub...
38.934673
116
0.576278
636a9b71316125fb79b3ddc33da9e14bd47d75ca
5,252
py
Python
passage/preprocessing.py
vishalbelsare/Passage
af6e100804dfe332c88bd2cd192e93a807377887
[ "MIT" ]
597
2015-01-15T19:23:32.000Z
2021-08-29T17:53:22.000Z
passage/preprocessing.py
v-mk-s/Passage
af6e100804dfe332c88bd2cd192e93a807377887
[ "MIT" ]
34
2015-01-22T13:50:21.000Z
2018-06-13T14:58:45.000Z
passage/preprocessing.py
v-mk-s/Passage
af6e100804dfe332c88bd2cd192e93a807377887
[ "MIT" ]
152
2015-01-17T02:19:22.000Z
2022-02-05T15:10:04.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import string from collections import Counter import numpy as np import theano import theano.tensor as T punctuation = set(string.punctuation) punctuation.add('\n') punctuation.add('\t') punctuation.add(u'') punctuation.add(u'') punctuation.add(u'') punctuation.add(u'') p...
30.894118
98
0.592917
636d48cb9b81c8aa18e1903f64ee3f997f6ae04e
155
py
Python
agendamentos/apps.py
afnmachado/univesp_pi_1
e6f2b545faaf53d14d17f751d2fb32e6618885b7
[ "MIT" ]
null
null
null
agendamentos/apps.py
afnmachado/univesp_pi_1
e6f2b545faaf53d14d17f751d2fb32e6618885b7
[ "MIT" ]
null
null
null
agendamentos/apps.py
afnmachado/univesp_pi_1
e6f2b545faaf53d14d17f751d2fb32e6618885b7
[ "MIT" ]
null
null
null
from django.apps import AppConfig
22.142857
56
0.774194
636de814ecdedb3663dd101d8eaad27c3d18f26b
3,443
py
Python
app/mods/calculator.py
MzB-Teaching/calculator
2de5f554a6cfb4a5f4047c7779b29808563d99bb
[ "Unlicense" ]
null
null
null
app/mods/calculator.py
MzB-Teaching/calculator
2de5f554a6cfb4a5f4047c7779b29808563d99bb
[ "Unlicense" ]
null
null
null
app/mods/calculator.py
MzB-Teaching/calculator
2de5f554a6cfb4a5f4047c7779b29808563d99bb
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 """This is a simple python3 calculator for demonstration purposes some to-do's but we'll get to that""" __author__ = "Sebastian Meier zu Biesen" __copyright__ = "2000-2019 by MzB Solutions" __email__ = "smzb@mitos-kalandiel.me" def add(self): """This functions adds two numbers""" ...
24.949275
65
0.577984
636ec0c0514935bf57f2ac6d68a3f04a9e9ec222
1,001
py
Python
tcp_syn_flood.py
r3k4t/tcp_syn_flood
b0ccf8199ea9253ad882afb505071e9d01693be8
[ "MIT" ]
null
null
null
tcp_syn_flood.py
r3k4t/tcp_syn_flood
b0ccf8199ea9253ad882afb505071e9d01693be8
[ "MIT" ]
null
null
null
tcp_syn_flood.py
r3k4t/tcp_syn_flood
b0ccf8199ea9253ad882afb505071e9d01693be8
[ "MIT" ]
1
2021-08-08T09:07:31.000Z
2021-08-08T09:07:31.000Z
import os import sys import time import pyfiglet from scapy.all import* os.system("clear") print (chr(27)+"[36m") import pyfiglet banner = pyfiglet.figlet_format("Tcp Syn Flood",font="slant") print (banner) print (chr(27)+"[33m") print (" Author : Rahat Khan Tusar(RKT)") print (" Github...
16.966102
61
0.597403
636ed44c67488a2bf87f694de36be6eb15ddd7e0
1,957
py
Python
tests/test_models.py
lmacaya/oddt
bfbf9ea99768b556684dc99c6ac87a9f16b16f80
[ "BSD-3-Clause" ]
264
2015-02-20T11:11:51.000Z
2022-03-28T06:44:00.000Z
tests/test_models.py
lmacaya/oddt
bfbf9ea99768b556684dc99c6ac87a9f16b16f80
[ "BSD-3-Clause" ]
106
2015-06-22T19:31:27.000Z
2022-03-25T17:21:42.000Z
tests/test_models.py
lmacaya/oddt
bfbf9ea99768b556684dc99c6ac87a9f16b16f80
[ "BSD-3-Clause" ]
106
2015-06-23T22:10:55.000Z
2022-01-21T05:02:32.000Z
import pickle import numpy as np from numpy.testing import assert_array_almost_equal, assert_array_equal import pytest from oddt.scoring.models import classifiers, regressors
31.564516
80
0.599898
636f4efb035fdaa64cb9b8922b6256a38b910e41
9,570
py
Python
data/fech_data.py
wangjiehui11235/panther
cf1ca2f0c7107c5cdacf2f7ff4002d43427d9b07
[ "Apache-2.0" ]
3
2020-01-23T22:23:08.000Z
2020-10-12T20:02:16.000Z
data/fech_data.py
wangjiehui11235/panther
cf1ca2f0c7107c5cdacf2f7ff4002d43427d9b07
[ "Apache-2.0" ]
1
2019-10-28T05:53:08.000Z
2019-10-28T05:53:08.000Z
data/fech_data.py
wangjiehui11235/panther
cf1ca2f0c7107c5cdacf2f7ff4002d43427d9b07
[ "Apache-2.0" ]
9
2019-08-21T07:48:32.000Z
2020-04-04T09:17:54.000Z
# -*- coding: utf-8 -*- import pdb, six, importlib import pandas as pd from PyFin.api import makeSchedule, BizDayConventions from sqlalchemy import create_engine, select, and_, or_ from utilities.singleton import Singleton import sys sys.path.append('..') import config # if __name__ == "__main__": ...
42.914798
116
0.646186
636fae94296d077704f838d5bc8a253de68b535f
549
py
Python
models/collaborator.py
phil-lopreiato/frc-notebook-server
35e79dbcca45f0257a138ca2834b0b6e57b814f1
[ "MIT" ]
null
null
null
models/collaborator.py
phil-lopreiato/frc-notebook-server
35e79dbcca45f0257a138ca2834b0b6e57b814f1
[ "MIT" ]
null
null
null
models/collaborator.py
phil-lopreiato/frc-notebook-server
35e79dbcca45f0257a138ca2834b0b6e57b814f1
[ "MIT" ]
null
null
null
from google.appengine.ext import ndb
30.5
64
0.744991
6371f69bd422691fe8339fc5e5157ce5b0079115
327
py
Python
genomics_geek/graphql/mixins.py
genomics-geek/genomics-geek.com
ba24be4a0e3d569859a5378d4e7054d58c88728e
[ "MIT" ]
null
null
null
genomics_geek/graphql/mixins.py
genomics-geek/genomics-geek.com
ba24be4a0e3d569859a5378d4e7054d58c88728e
[ "MIT" ]
2
2018-10-15T20:37:03.000Z
2018-10-15T20:37:21.000Z
earsie_eats_blog/graphql/mixins.py
genomics-geek/earsie-eats.com
b2d1e6626daa44b5e03198bdc9362758803fd3ee
[ "MIT" ]
1
2019-05-16T03:54:21.000Z
2019-05-16T03:54:21.000Z
from graphene import Int from .decorators import require_authenication
20.4375
64
0.740061
637274d6c48599470c2d5a70eb69d9b7d03629a5
1,237
py
Python
oops_fhir/r4/code_system/flag_priority_codes.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/code_system/flag_priority_codes.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/code_system/flag_priority_codes.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
from pathlib import Path from fhir.resources.codesystem import CodeSystem from oops_fhir.utils import CodeSystemConcept __all__ = ["FlagPriorityCodes"] _resource = CodeSystem.parse_file(Path(__file__).with_suffix(".json"))
19.030769
86
0.606306
63740319cbdd9993b7493ee891f9371a9c6e02c1
256
py
Python
components/collector/src/source_collectors/sonarqube/duplicated_lines.py
kargaranamir/quality-time
1c427c61bee9d31c3526f0a01be2218a7e167c23
[ "Apache-2.0" ]
33
2016-01-20T07:35:48.000Z
2022-03-14T09:20:51.000Z
components/collector/src/source_collectors/sonarqube/duplicated_lines.py
kargaranamir/quality-time
1c427c61bee9d31c3526f0a01be2218a7e167c23
[ "Apache-2.0" ]
2,410
2016-01-22T18:13:01.000Z
2022-03-31T16:57:34.000Z
components/collector/src/source_collectors/sonarqube/duplicated_lines.py
kargaranamir/quality-time
1c427c61bee9d31c3526f0a01be2218a7e167c23
[ "Apache-2.0" ]
21
2016-01-16T11:49:23.000Z
2022-01-14T21:53:22.000Z
"""SonarQube duplicated lines collector.""" from .base import SonarQubeMetricsBaseClass
23.272727
58
0.765625
63763ebb1e4d5814f4a75ddf0793dd74b59fa669
370
py
Python
myapp/migrations/0002_studentmodel_dob.py
RajapandiR/Student
b0da4a04394381fda52f75234f6347c43958454a
[ "MIT" ]
null
null
null
myapp/migrations/0002_studentmodel_dob.py
RajapandiR/Student
b0da4a04394381fda52f75234f6347c43958454a
[ "MIT" ]
null
null
null
myapp/migrations/0002_studentmodel_dob.py
RajapandiR/Student
b0da4a04394381fda52f75234f6347c43958454a
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2021-11-23 16:24 from django.db import migrations, models
19.473684
47
0.581081
63783927c365abff6927c69ef8abf31d89e8cbab
6,159
py
Python
sl_cutscenes/camera.py
AIS-Bonn/sl-cutscenes
d50128b86a9c808cbe5943e737a4974f0a8d3982
[ "MIT" ]
2
2022-03-25T08:24:10.000Z
2022-03-29T09:06:47.000Z
sl_cutscenes/camera.py
AIS-Bonn/sl-scenes
d50128b86a9c808cbe5943e737a4974f0a8d3982
[ "MIT" ]
null
null
null
sl_cutscenes/camera.py
AIS-Bonn/sl-scenes
d50128b86a9c808cbe5943e737a4974f0a8d3982
[ "MIT" ]
null
null
null
import numpy as np import torch from typing import List from sl_cutscenes.constants import SCENARIO_DEFAULTS from sl_cutscenes.utils.camera_utils import ConstFunc, LinFunc, LinFuncOnce, SinFunc, TanhFunc camera_movement_constraints = SCENARIO_DEFAULTS["camera_movement"] def get_pos(self, stereo_position="mono"):...
45.962687
119
0.670401
63785e4a628f813a35572751a22a0fef1e469f30
23,016
py
Python
dpoll/polls/views.py
tymmesyde/dpoll.xyz
d3b6b204026f05b3b7a8e0baccf23dee6a41d679
[ "MIT" ]
null
null
null
dpoll/polls/views.py
tymmesyde/dpoll.xyz
d3b6b204026f05b3b7a8e0baccf23dee6a41d679
[ "MIT" ]
null
null
null
dpoll/polls/views.py
tymmesyde/dpoll.xyz
d3b6b204026f05b3b7a8e0baccf23dee6a41d679
[ "MIT" ]
null
null
null
import copy import uuid import json from datetime import timedelta from dateutil.parser import parse from django.conf import settings from django.contrib import messages from django.contrib.auth import authenticate, login from django.contrib.auth.views import auth_logout from django.core.paginator import Paginator fro...
30.728972
87
0.60849
637b49097674b4c3f8587181a185a473471f7b03
2,251
py
Python
e2e/Tests/Merit/MultiplePacketsTest.py
kayabaNerve/Currency
260ebc20f1704f42ad6183fee39ad58ec6d07961
[ "CC0-1.0" ]
66
2019-01-14T08:39:52.000Z
2022-01-06T11:39:15.000Z
e2e/Tests/Merit/MultiplePacketsTest.py
kayabaNerve/Currency
260ebc20f1704f42ad6183fee39ad58ec6d07961
[ "CC0-1.0" ]
228
2019-01-16T15:42:44.000Z
2022-02-05T07:48:07.000Z
e2e/Tests/Merit/MultiplePacketsTest.py
kayabaNerve/Currency
260ebc20f1704f42ad6183fee39ad58ec6d07961
[ "CC0-1.0" ]
19
2019-01-14T08:53:04.000Z
2021-11-03T20:19:28.000Z
#Tests that blocks can't have multiple verification packets for the same transaction. from typing import Dict, Any import json from pytest import raises from e2e.Libs.Minisketch import Sketch from e2e.Classes.Transactions.Data import Data from e2e.Classes.Consensus.VerificationPacket import VerificationPacket from e...
32.623188
92
0.702355
637c926e9fd9828afed3a289b40e1b60ecb64afd
2,891
py
Python
skworkorders/test_websocket.py
ZhaoUncle/skstack
9e00305f50fdd60125ec37884247b94b70a9020c
[ "Apache-2.0" ]
null
null
null
skworkorders/test_websocket.py
ZhaoUncle/skstack
9e00305f50fdd60125ec37884247b94b70a9020c
[ "Apache-2.0" ]
null
null
null
skworkorders/test_websocket.py
ZhaoUncle/skstack
9e00305f50fdd60125ec37884247b94b70a9020c
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 2018417 @author: encodingl ''' from django.shortcuts import render #from dwebsocket.decorators import accept_websocket, require_websocket from django.http import HttpResponse import paramiko from django.contrib.auth.decorators import login_required fro...
26.522936
99
0.625735
637cc4770c5d2eb1b7ce98fc871fe7b1224b66d6
9,482
py
Python
src/Analyse/views.py
Hash-It-Out/MeetingMinutes
73fc4650ca2bacba09ab3d6c0134f175025342d8
[ "Apache-2.0" ]
3
2021-03-14T23:35:59.000Z
2021-12-16T12:28:40.000Z
src/Analyse/views.py
Hack-Overflow/HackOverflow
cff0a50c794e2c70ca65be8a8b9c7420e7a1927c
[ "Apache-2.0" ]
null
null
null
src/Analyse/views.py
Hack-Overflow/HackOverflow
cff0a50c794e2c70ca65be8a8b9c7420e7a1927c
[ "Apache-2.0" ]
2
2018-10-06T06:18:22.000Z
2018-10-06T17:51:39.000Z
from __future__ import print_function from django.shortcuts import render from django.http import HttpResponse, Http404, HttpResponseRedirect from django.contrib.auth import get_user_model import os from django.core.mail import send_mail import nltk from nltk.tokenize import sent_tokenize, word_tokenize from nltk.st...
28.053254
133
0.640793
637cdb4f017832b717342e2928773f70e1670584
316
py
Python
000000stepikProgBasKirFed/Stepik000000ProgBasKirFedсh01p01st07TASK07_20210205_print.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
000000stepikProgBasKirFed/Stepik000000ProgBasKirFedсh01p01st07TASK07_20210205_print.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
000000stepikProgBasKirFed/Stepik000000ProgBasKirFedсh01p01st07TASK07_20210205_print.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
''' , : "name" "Python". , : "name" "name" 3 8.5 Sample Input: Sample Output: name Python 3 8.5 ''' name = 'Python' print('name', name, 3, 8.5)
19.75
92
0.743671
637e1e9bf118d9a1429a4df90953398c25b3dbcc
24,568
py
Python
cross_loss_influence/helpers/influence_function.py
CORE-Robotics-Lab/Cross_Loss_Influence_Functions
6f0fa45f8896cd6c238c143eca6ddebef97b642c
[ "MIT" ]
1
2022-03-08T05:59:17.000Z
2022-03-08T05:59:17.000Z
cross_loss_influence/helpers/influence_function.py
CORE-Robotics-Lab/Cross_Loss_Influence_Functions
6f0fa45f8896cd6c238c143eca6ddebef97b642c
[ "MIT" ]
null
null
null
cross_loss_influence/helpers/influence_function.py
CORE-Robotics-Lab/Cross_Loss_Influence_Functions
6f0fa45f8896cd6c238c143eca6ddebef97b642c
[ "MIT" ]
null
null
null
# Created by Andrew Silva # Extensions to https://github.com/nimarb/pytorch_influence_functions import torch import time import datetime import numpy as np import copy import logging from torch.autograd import grad import random from cross_loss_influence.helpers.bolukbasi_prior_work.prior_pca_debiasing import extract_...
46.26742
124
0.591379
637fe0e94faeee830062160453c7c20c39eeaafb
6,189
py
Python
tests/test_rtfit_dumps.py
ndraeger/rt1
8cf30a3b3604b78b1422388e479b28c921d01c09
[ "Apache-2.0" ]
null
null
null
tests/test_rtfit_dumps.py
ndraeger/rt1
8cf30a3b3604b78b1422388e479b28c921d01c09
[ "Apache-2.0" ]
null
null
null
tests/test_rtfit_dumps.py
ndraeger/rt1
8cf30a3b3604b78b1422388e479b28c921d01c09
[ "Apache-2.0" ]
null
null
null
""" Test the fits-module by loading a dumped rtfits result and performing all actions again """ import unittest import numpy as np import cloudpickle import matplotlib.pyplot as plt import copy import os if __name__ == "__main__": unittest.main()
40.45098
108
0.487801
637feac03a2aafd17dc15fa959b7227bdea86a08
3,234
py
Python
tests/test_bus_model.py
romainsacchi/carculator_bus
5db105db4223b2f58509fa19b1fccafa16313458
[ "BSD-3-Clause" ]
1
2021-05-31T08:43:06.000Z
2021-05-31T08:43:06.000Z
tests/test_bus_model.py
romainsacchi/carculator_bus
5db105db4223b2f58509fa19b1fccafa16313458
[ "BSD-3-Clause" ]
2
2021-05-27T09:21:52.000Z
2021-06-09T21:35:26.000Z
tests/test_bus_model.py
romainsacchi/carculator_bus
5db105db4223b2f58509fa19b1fccafa16313458
[ "BSD-3-Clause" ]
1
2021-05-31T08:43:12.000Z
2021-05-31T08:43:12.000Z
import numpy as np from carculator_bus import * tip = BusInputParameters() tip.static() _, array = fill_xarray_from_input_parameters(tip) tm = BusModel(array, country="CH") tm.set_all() # The fuel cell stack mass must be in a given interval
28.368421
104
0.624613
6380b2f2030ee551fa4870964c341464ca8bdcf7
2,828
py
Python
Ej-Lab8-MoisesSanjurjo-UO270824/ejercicio2-MoisesSanjurjo-UO270824.py
moiSS00/CN
1e30b43ee2167d15fbc8c472ff9637c2b920c3d4
[ "MIT" ]
null
null
null
Ej-Lab8-MoisesSanjurjo-UO270824/ejercicio2-MoisesSanjurjo-UO270824.py
moiSS00/CN
1e30b43ee2167d15fbc8c472ff9637c2b920c3d4
[ "MIT" ]
null
null
null
Ej-Lab8-MoisesSanjurjo-UO270824/ejercicio2-MoisesSanjurjo-UO270824.py
moiSS00/CN
1e30b43ee2167d15fbc8c472ff9637c2b920c3d4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Ejercicio 2: Aproximacin numrica de orden 1 y de orden 2 de la derivada de la funcin f(x) = 1/x. """ import numpy as np import matplotlib.pyplot as plt # Funcin f(x)= 1/x y su derivada f' f = lambda x:1/x # funcin f df = lambda x:(-1)/x**2 # derivada exacta f' #----------------...
43.507692
110
0.631542
6381338cf437e2f23817a23137a8ed44d42f412e
1,982
py
Python
examples/multi_client_example.py
ondewo/ondewo-csi-client-python
5ba00402d7d28374f49eb485dd6ed661ebc446f2
[ "Apache-2.0" ]
null
null
null
examples/multi_client_example.py
ondewo/ondewo-csi-client-python
5ba00402d7d28374f49eb485dd6ed661ebc446f2
[ "Apache-2.0" ]
2
2021-05-25T09:18:32.000Z
2021-07-02T10:14:29.000Z
examples/multi_client_example.py
ondewo/ondewo-csi-client-python
5ba00402d7d28374f49eb485dd6ed661ebc446f2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Copyright 2021 ONDEWO GmbH # # 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 ap...
41.291667
108
0.799697
63819767d87fb2523fcafd5031ccca5b56c6122d
4,149
py
Python
chrome/tools/extract_actions.py
zachlatta/chromium
c4625eefca763df86471d798ee5a4a054b4716ae
[ "BSD-3-Clause" ]
1
2021-09-24T22:49:10.000Z
2021-09-24T22:49:10.000Z
chrome/tools/extract_actions.py
changbai1980/chromium
c4625eefca763df86471d798ee5a4a054b4716ae
[ "BSD-3-Clause" ]
null
null
null
chrome/tools/extract_actions.py
changbai1980/chromium
c4625eefca763df86471d798ee5a4a054b4716ae
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # Copyright 2007 Google Inc. All rights reserved. """Extract UserMetrics "actions" strings from the Chrome source. This program generates the list of known actions we expect to see in the user behavior logs. It walks the Chrome source, looking for calls to UserMetrics functions, extracting actions...
33.192
78
0.699446
6381feead03b8bd48b3416770eed49408794f57c
1,817
py
Python
hamgr/bin/hamgr-manage.py
platform9/pf9-ha
7d64f9fe6b72fb4c1e5ed5d23e372a62c9e218a8
[ "Apache-2.0" ]
11
2016-09-06T09:59:29.000Z
2021-10-02T07:24:07.000Z
hamgr/bin/hamgr-manage.py
platform9/pf9-ha
7d64f9fe6b72fb4c1e5ed5d23e372a62c9e218a8
[ "Apache-2.0" ]
5
2017-10-16T06:47:14.000Z
2020-07-06T07:20:13.000Z
hamgr/bin/hamgr-manage.py
platform9/pf9-ha
7d64f9fe6b72fb4c1e5ed5d23e372a62c9e218a8
[ "Apache-2.0" ]
3
2016-09-01T06:20:51.000Z
2017-10-16T02:27:07.000Z
#!/bin/env python # Copyright (c) 2019 Platform9 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 applica...
33.036364
74
0.698954
638271269c493149415ea03cdea0dc60c36a233d
2,898
py
Python
src/nerb/named_entities.py
johnnygreco/nerb
1ea395bade7d58b176c965d062987284a2d6f590
[ "MIT" ]
null
null
null
src/nerb/named_entities.py
johnnygreco/nerb
1ea395bade7d58b176c965d062987284a2d6f590
[ "MIT" ]
null
null
null
src/nerb/named_entities.py
johnnygreco/nerb
1ea395bade7d58b176c965d062987284a2d6f590
[ "MIT" ]
null
null
null
from __future__ import annotations # Standard library import re from copy import deepcopy from dataclasses import dataclass from typing import Callable, Optional __all__ = ['NamedEntity', 'NamedEntityList']
32.561798
111
0.622498
63864bd0c8cd0935d04afd12f3430b88b366b42e
8,792
py
Python
sources/rnt/mediane/process.py
bryan-brancotte/rank-aggregation-with-ties
15fffb0b1bee3d6cef7090486a7c910e5f51195d
[ "Apache-2.0" ]
null
null
null
sources/rnt/mediane/process.py
bryan-brancotte/rank-aggregation-with-ties
15fffb0b1bee3d6cef7090486a7c910e5f51195d
[ "Apache-2.0" ]
11
2018-04-04T08:24:30.000Z
2021-03-19T21:45:04.000Z
sources/rnt/mediane/process.py
bryan-brancotte/rank-aggregation-with-ties
15fffb0b1bee3d6cef7090486a7c910e5f51195d
[ "Apache-2.0" ]
1
2018-10-25T09:13:41.000Z
2018-10-25T09:13:41.000Z
from django.utils import timezone from django.utils.translation import ugettext from mediane.algorithms.enumeration import get_name_from from mediane.algorithms.lri.BioConsert import BioConsert from mediane.algorithms.lri.ExactAlgorithm import ExactAlgorithm from mediane.algorithms.misc.borda_count import BordaCount f...
35.595142
116
0.66242
6389dbaa2631db7b30ed8767e0e5b57b31566133
399
py
Python
restaurantapp/mainapp/migrations/0003_auto_20200508_1206.py
ShubhamJain0/ShubhamJain0.github.io
bf73d2a8f55c3362908c8102d1788a34627dba44
[ "MIT" ]
null
null
null
restaurantapp/mainapp/migrations/0003_auto_20200508_1206.py
ShubhamJain0/ShubhamJain0.github.io
bf73d2a8f55c3362908c8102d1788a34627dba44
[ "MIT" ]
4
2021-04-08T21:52:50.000Z
2022-02-10T09:29:03.000Z
restaurantapp/mainapp/migrations/0003_auto_20200508_1206.py
ShubhamJain0/Restaurant-App
bf73d2a8f55c3362908c8102d1788a34627dba44
[ "MIT" ]
null
null
null
# Generated by Django 2.2.2 on 2020-05-08 12:06 from django.db import migrations, models
21
61
0.60401
6389dc63d6c399ed10f73f80566508686888935c
82
py
Python
pybomberman/__init__.py
pybomberman/pybomberman
8c7582ec52bf0dd1d77a3e98f5867ffa97233653
[ "MIT" ]
2
2021-03-29T08:44:54.000Z
2021-05-03T23:34:06.000Z
pybomberman/__init__.py
pybomberman/pybomberman
8c7582ec52bf0dd1d77a3e98f5867ffa97233653
[ "MIT" ]
null
null
null
pybomberman/__init__.py
pybomberman/pybomberman
8c7582ec52bf0dd1d77a3e98f5867ffa97233653
[ "MIT" ]
null
null
null
from .map import Map print("Soon... https://github.com/pybomberman/pybomberman")
20.5
59
0.743902
638b620923dedf797dae35ba43746969775844b6
3,935
py
Python
cd2h_repo_project/modules/doi/schemas.py
galterlibrary/InvenioRDM-at-NU
5aff6ac7c428c9a61bdf221627bfc05f2280d1a3
[ "MIT" ]
6
2019-09-02T00:01:50.000Z
2021-11-04T08:23:40.000Z
cd2h_repo_project/modules/doi/schemas.py
galterlibrary/InvenioRDM-at-NU
5aff6ac7c428c9a61bdf221627bfc05f2280d1a3
[ "MIT" ]
72
2019-09-04T18:52:35.000Z
2020-07-21T19:58:15.000Z
cd2h_repo_project/modules/doi/schemas.py
galterlibrary/InvenioRDM-at-NU
5aff6ac7c428c9a61bdf221627bfc05f2280d1a3
[ "MIT" ]
null
null
null
"""JSON Schemas.""" import csv from collections import defaultdict from datetime import date from os.path import dirname, join, realpath from flask import current_app from marshmallow import Schema, fields from cd2h_repo_project.modules.records.resource_type import ResourceType
30.503876
78
0.653621
638ca1bd53358131bd94d7e2bbba9486f9304c18
1,068
py
Python
python/dazl/model/__init__.py
DACH-NY/dazl-client
56c8b1be047415b2bcb35b6558de4a780a402458
[ "Apache-2.0" ]
null
null
null
python/dazl/model/__init__.py
DACH-NY/dazl-client
56c8b1be047415b2bcb35b6558de4a780a402458
[ "Apache-2.0" ]
null
null
null
python/dazl/model/__init__.py
DACH-NY/dazl-client
56c8b1be047415b2bcb35b6558de4a780a402458
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017-2022 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. # SPDX-License-Identifier: Apache-2.0 """ :mod:`dazl.model` package ========================= This module is deprecated. These types have generally moved to :mod:`dazl.client` (for the API introduced in dazl v5) or ...
30.514286
102
0.712547
638cb4fc9dbdd295d6a3f3e2773674502d0d5ab5
1,559
py
Python
paxes_cinder/scheduler/filters/storage_protocol_filter.py
windskyer/k_cinder
000ee539ee4842a158071d26ee99d12c7c0a87da
[ "Apache-2.0" ]
null
null
null
paxes_cinder/scheduler/filters/storage_protocol_filter.py
windskyer/k_cinder
000ee539ee4842a158071d26ee99d12c7c0a87da
[ "Apache-2.0" ]
null
null
null
paxes_cinder/scheduler/filters/storage_protocol_filter.py
windskyer/k_cinder
000ee539ee4842a158071d26ee99d12c7c0a87da
[ "Apache-2.0" ]
null
null
null
from cinder.openstack.common import log as logging from cinder.openstack.common.scheduler import filters from cinder.openstack.common.scheduler.filters import extra_specs_ops LOG = logging.getLogger(__name__)
38.02439
84
0.62925
6390b3aacb002c83ef8bc4d3f72ff626a4abe7f1
1,771
py
Python
Bioinformatics IV/Week IV/PeptideSequencingProblem.py
egeulgen/Bioinformatics_Specialization
38581b471a54c41d780d9eeb26a7033eb57f3a01
[ "MIT" ]
3
2021-04-03T23:46:42.000Z
2021-08-08T01:19:32.000Z
Bioinformatics IV/Week IV/PeptideSequencingProblem.py
egeulgen/Bioinformatics_Specialization
38581b471a54c41d780d9eeb26a7033eb57f3a01
[ "MIT" ]
null
null
null
Bioinformatics IV/Week IV/PeptideSequencingProblem.py
egeulgen/Bioinformatics_Specialization
38581b471a54c41d780d9eeb26a7033eb57f3a01
[ "MIT" ]
null
null
null
import sys from copy import deepcopy mass_file=open('integer_mass_table.txt') mass_table = {} for line in mass_file: aa, mass = line.rstrip().split(' ') mass_table[int(mass)] = aa # mass_table[4] = 'X' # mass_table[5] = 'Z' if __name__ == "__main__": spectral_vector = [int(x) for x in sys.stdin.read().rs...
28.564516
76
0.539243
6390c12244c07615289c789c791dd14d31ca59c7
2,465
py
Python
test/likelihoods/test_multitask_gaussian_likelihood.py
llguo95/gpytorch
1fa69935104565c377ce95d2c581c9eedfb55817
[ "MIT" ]
2,673
2018-02-19T22:28:58.000Z
2022-03-31T13:22:28.000Z
test/likelihoods/test_multitask_gaussian_likelihood.py
llguo95/gpytorch
1fa69935104565c377ce95d2c581c9eedfb55817
[ "MIT" ]
1,415
2018-02-19T20:38:20.000Z
2022-03-30T12:53:13.000Z
test/likelihoods/test_multitask_gaussian_likelihood.py
llguo95/gpytorch
1fa69935104565c377ce95d2c581c9eedfb55817
[ "MIT" ]
467
2018-03-07T02:06:05.000Z
2022-03-27T07:05:44.000Z
#!/usr/bin/env python3 import unittest import torch from gpytorch.distributions import MultitaskMultivariateNormal from gpytorch.lazy import KroneckerProductLazyTensor, RootLazyTensor from gpytorch.likelihoods import MultitaskGaussianLikelihood from gpytorch.test.base_likelihood_test_case import BaseLikelihoodTestCa...
35.214286
92
0.708722
639138968935973bda9f7100f85f9fc9166454f1
399
py
Python
zip/unzip_print.py
juarezhenriquelisboa/Python
5c5498b33e7cba4e3bfa322a6a76bed74b68e6bf
[ "MIT" ]
1
2021-01-01T14:46:28.000Z
2021-01-01T14:46:28.000Z
zip/unzip_print.py
juarezhenriquelisboa/Python
5c5498b33e7cba4e3bfa322a6a76bed74b68e6bf
[ "MIT" ]
null
null
null
zip/unzip_print.py
juarezhenriquelisboa/Python
5c5498b33e7cba4e3bfa322a6a76bed74b68e6bf
[ "MIT" ]
null
null
null
import zipfile import sys for arg in sys.argv[1:]: senha = str(arg) z = zipfile.ZipFile("protegido.zip") files = z.namelist() z.setpassword(senha) z.extractall() z.close() for extracted_file in files: print "Nome do arquivo: "+extracted_file+"\n\nConteudo: " with open(extracted_file) as f: ...
16.625
61
0.639098
6392f325bfe2c22484f1ffe055193199e29b8c30
948
py
Python
awards/forms.py
JKimani77/awards
8cdfaadbd4aca5ef2031966496ebcb5c3c3ea49e
[ "MIT" ]
null
null
null
awards/forms.py
JKimani77/awards
8cdfaadbd4aca5ef2031966496ebcb5c3c3ea49e
[ "MIT" ]
null
null
null
awards/forms.py
JKimani77/awards
8cdfaadbd4aca5ef2031966496ebcb5c3c3ea49e
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth.forms import UserCreationForm,AuthenticationForm from django.contrib.auth.models import User from .models import Profile,Project,Review
26.333333
75
0.681435
63941acd5ea7c627eccf6daf6a03aa134aea7caf
1,269
py
Python
setup.py
aaren/pharminv
b3d3d11c81bafa40a72583aa98f51b05acec9835
[ "BSD-3-Clause" ]
12
2015-05-12T21:02:44.000Z
2021-04-24T23:05:16.000Z
setup.py
aaren/pharminv
b3d3d11c81bafa40a72583aa98f51b05acec9835
[ "BSD-3-Clause" ]
5
2015-04-05T17:05:09.000Z
2022-02-11T16:46:57.000Z
setup.py
aaren/pharminv
b3d3d11c81bafa40a72583aa98f51b05acec9835
[ "BSD-3-Clause" ]
3
2018-04-27T20:10:10.000Z
2022-02-16T13:12:02.000Z
import subprocess from setuptools import setup, Extension try: pandoc = subprocess.Popen(['pandoc', 'README.md', '--to', 'rst'], stdout=subprocess.PIPE) readme = pandoc.communicate()[0].decode() except OSError: with open('README.md') as f: readme = f.read() cmdclass...
23.943396
69
0.618597
63945460f91035ee579fbea1f037bd4fecb49b1e
8,830
py
Python
RiskQuantLib/Tool/databaseTool.py
SyuyaMurakami/RiskQuantLib-Doc
2503befc24c2e422e51f8b9f468c8d8439e11c65
[ "MIT" ]
1
2021-12-29T12:18:45.000Z
2021-12-29T12:18:45.000Z
RiskQuantLib/Tool/databaseTool.py
SyuyaMurakami/RiskQuantLib-Doc
2503befc24c2e422e51f8b9f468c8d8439e11c65
[ "MIT" ]
null
null
null
RiskQuantLib/Tool/databaseTool.py
SyuyaMurakami/RiskQuantLib-Doc
2503befc24c2e422e51f8b9f468c8d8439e11c65
[ "MIT" ]
1
2021-12-08T02:14:34.000Z
2021-12-08T02:14:34.000Z
#!/usr/bin/python #coding = utf-8 import numpy as np import pandas as pd import mysql.connector
40.504587
160
0.723669
63947c1901639950a3d0a9a8e03f0f05a930b237
270
py
Python
subset_train.py
sngweicong/DeepCTR-Torch
67d4e9d0c8a13aa4d614b2d04397a7f6e7a0e9af
[ "Apache-2.0" ]
null
null
null
subset_train.py
sngweicong/DeepCTR-Torch
67d4e9d0c8a13aa4d614b2d04397a7f6e7a0e9af
[ "Apache-2.0" ]
null
null
null
subset_train.py
sngweicong/DeepCTR-Torch
67d4e9d0c8a13aa4d614b2d04397a7f6e7a0e9af
[ "Apache-2.0" ]
null
null
null
data_size_plus_header = 1000001 train_dir = 'train' subset_train_dir = 'sub_train.txt' fullfile = open(train_dir, 'r') subfile = open(subset_train_dir,'w') for i in range(data_size_plus_header): subfile.write(fullfile.readline()) fullfile.close() subfile.close()
20.769231
38
0.759259
6396512d9916e7db0610bee423d4d3ccdc2c336e
12,095
py
Python
packages/validate_and_forward/lambda_handler.py
NHSDigital/list-reconciliation
37b1ebe99a64275e23b0e7fb6a89415b92d14306
[ "MIT" ]
4
2021-06-25T08:28:54.000Z
2021-12-16T11:03:42.000Z
packages/validate_and_forward/lambda_handler.py
NHSDigital/list-reconciliation
37b1ebe99a64275e23b0e7fb6a89415b92d14306
[ "MIT" ]
184
2021-06-24T15:27:08.000Z
2022-03-17T12:44:28.000Z
packages/validate_and_forward/lambda_handler.py
NHSDigital/list-reconciliation
37b1ebe99a64275e23b0e7fb6a89415b92d14306
[ "MIT" ]
3
2021-11-05T10:21:44.000Z
2022-03-04T14:29:24.000Z
import json import os import traceback from datetime import datetime from uuid import uuid4 import boto3 from aws.ssm import get_ssm_params from database import Jobs from gp_file_parser.parser import parse_gp_extract_file_s3 from jobs.statuses import InputFolderType, InvalidErrorType, JobStatus, ParseStatus from lr_lo...
33.136986
113
0.556676
6396bfd17554b072db271a588e4203eb7b87b54a
1,258
py
Python
src/ucar/unidata/apps/noaapsd/default.py
mhiley/IDV
bf45573c008f4b1d155d42fbb078bd99578d69d3
[ "CNRI-Jython" ]
null
null
null
src/ucar/unidata/apps/noaapsd/default.py
mhiley/IDV
bf45573c008f4b1d155d42fbb078bd99578d69d3
[ "CNRI-Jython" ]
null
null
null
src/ucar/unidata/apps/noaapsd/default.py
mhiley/IDV
bf45573c008f4b1d155d42fbb078bd99578d69d3
[ "CNRI-Jython" ]
null
null
null
""" NOAA/ESRL/PSD Jython functions """ def calcMonAnom(monthly, ltm, normalize=0): """ Calculate the monthly anomaly from a long term mean. The number of timesteps in ltm must be 12 """ from visad import VisADException monAnom = monthly.clone() months = len(ltm) if (not months == 12): raise VisAD...
29.952381
74
0.670111
639892302eb62bb4521dec46165a447fd1bb4884
370
py
Python
bitmovin_api_sdk/account/organizations/groups/__init__.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
11
2019-07-03T10:41:16.000Z
2022-02-25T21:48:06.000Z
bitmovin_api_sdk/account/organizations/groups/__init__.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
8
2019-11-23T00:01:25.000Z
2021-04-29T12:30:31.000Z
bitmovin_api_sdk/account/organizations/groups/__init__.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
13
2020-01-02T14:58:18.000Z
2022-03-26T12:10:30.000Z
from bitmovin_api_sdk.account.organizations.groups.groups_api import GroupsApi from bitmovin_api_sdk.account.organizations.groups.tenants.tenants_api import TenantsApi from bitmovin_api_sdk.account.organizations.groups.invitations.invitations_api import InvitationsApi from bitmovin_api_sdk.account.organizations.groups....
74
100
0.905405
6398ccc3c667be7698d1809b95c494572f689685
1,268
py
Python
08.py
brianfl/project-euler
9f83a3c2da04fd0801a4a575081add665edccd5f
[ "MIT" ]
null
null
null
08.py
brianfl/project-euler
9f83a3c2da04fd0801a4a575081add665edccd5f
[ "MIT" ]
null
null
null
08.py
brianfl/project-euler
9f83a3c2da04fd0801a4a575081add665edccd5f
[ "MIT" ]
null
null
null
long_number = "73167176531330624919225119674426574742355349194934969835203127745063262395783180169848018694788518438586156078911294949545950173795833195285320880551112540698747158523863050715693290963295227443043557668966489504452445231617318564030987111217223831136222989342338030813533627661428280644448664523874930358...
105.666667
1,016
0.932177
639a14e502ea586296e65639c8a98f05735475db
272
py
Python
app/views.py
we-race-here/wrh-brac
6dcd6bb23c86f98896127c89b24e6dc30af9648a
[ "MIT" ]
null
null
null
app/views.py
we-race-here/wrh-brac
6dcd6bb23c86f98896127c89b24e6dc30af9648a
[ "MIT" ]
9
2022-01-13T13:11:03.000Z
2022-01-17T19:12:17.000Z
app/views.py
we-race-here/wrh-brac
6dcd6bb23c86f98896127c89b24e6dc30af9648a
[ "MIT" ]
null
null
null
from django.shortcuts import render # Create your views here. from django.views.generic import TemplateView from . import models, serializers
20.923077
45
0.775735
639b330d716e55cdf8a6ae33248c52fa4f302a3c
755
py
Python
perceptron/gen-data.py
KellyHwong/MIT-ML
0305208956f89cb039292c7cce175852f0783336
[ "MIT" ]
15
2020-02-03T20:28:36.000Z
2021-10-05T14:11:56.000Z
perceptron/gen-data.py
KellyHwong/MIT-ML
0305208956f89cb039292c7cce175852f0783336
[ "MIT" ]
null
null
null
perceptron/gen-data.py
KellyHwong/MIT-ML
0305208956f89cb039292c7cce175852f0783336
[ "MIT" ]
10
2019-08-13T12:54:54.000Z
2021-02-10T20:24:43.000Z
import numpy as np import random N = 10 if __name__ == '__main__': X, y, w = gen_data(10) print(X)
18.414634
78
0.531126
639db7a427799c489966370121dcda273bf83fd4
4,431
py
Python
forgot_password/tests/test_settings.py
oursky/forgot_password
9afde8b9d39a2837676628f12c9b6f2c45da592a
[ "Apache-2.0" ]
1
2017-02-09T10:17:50.000Z
2017-02-09T10:17:50.000Z
forgot_password/tests/test_settings.py
oursky/forgot_password
9afde8b9d39a2837676628f12c9b6f2c45da592a
[ "Apache-2.0" ]
54
2016-09-07T11:01:32.000Z
2020-02-12T06:15:43.000Z
forgot_password/tests/test_settings.py
oursky/forgot_password
9afde8b9d39a2837676628f12c9b6f2c45da592a
[ "Apache-2.0" ]
14
2016-09-20T05:36:49.000Z
2019-04-02T15:42:37.000Z
# Copyright 2018 Oursky Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
39.918919
77
0.679982
639f69e88bb9e0f52e4c78779eac5ba9a648e432
9,213
py
Python
cosa/analyzers/bmc_temporal.py
zsisco/CoSA
b7a5107fcbae9b3ed3726fbcf9240b39252ef551
[ "BSD-3-Clause" ]
52
2018-02-26T19:01:03.000Z
2022-02-24T08:30:00.000Z
cosa/analyzers/bmc_temporal.py
zsisco/CoSA
b7a5107fcbae9b3ed3726fbcf9240b39252ef551
[ "BSD-3-Clause" ]
28
2018-06-07T22:18:23.000Z
2020-10-27T01:21:01.000Z
cosa/analyzers/bmc_temporal.py
zsisco/CoSA
b7a5107fcbae9b3ed3726fbcf9240b39252ef551
[ "BSD-3-Clause" ]
12
2018-08-16T20:02:46.000Z
2021-01-20T18:17:45.000Z
# Copyright 2018 Cristian Mattarei # # Licensed under the modified BSD (3-clause BSD) License. # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the ...
35.709302
130
0.551069
63a0482e773f0b1712ad551a2e29a76da9779874
6,767
py
Python
sdk/python/pulumi_azure/blueprint/get_published_version.py
aangelisc/pulumi-azure
71dd9c75403146e16f7480e5a60b08bc0329660e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/blueprint/get_published_version.py
aangelisc/pulumi-azure
71dd9c75403146e16f7480e5a60b08bc0329660e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/blueprint/get_published_version.py
aangelisc/pulumi-azure
71dd9c75403146e16f7480e5a60b08bc0329660e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
36.578378
192
0.661741
63a05e17f1457914002ddf440d5d635997035ff1
2,952
py
Python
basetrainer/scheduler/MultiStepLR.py
PanJinquan/pytorch-base-trainer
37799c948f72b2f9d3771ff469e06cdbff4a1d07
[ "MIT" ]
11
2022-01-18T10:07:52.000Z
2022-03-16T02:40:31.000Z
basetrainer/scheduler/MultiStepLR.py
PanJinquan/pytorch-base-trainer
37799c948f72b2f9d3771ff469e06cdbff4a1d07
[ "MIT" ]
null
null
null
basetrainer/scheduler/MultiStepLR.py
PanJinquan/pytorch-base-trainer
37799c948f72b2f9d3771ff469e06cdbff4a1d07
[ "MIT" ]
1
2022-01-26T06:31:29.000Z
2022-01-26T06:31:29.000Z
# -*-coding: utf-8 -*- """ @Author : panjq @E-mail : pan_jinquan@163.com @Date : 2021-07-28 15:32:44 """ import torch import torch.optim as optim import torch.nn as nn import numpy as np from .WarmUpLR import WarmUpLR from ..callbacks.callbacks import Callback
33.545455
97
0.572493
63a0b6c965482e6900cbc411399d6b33e24bcb3d
1,232
py
Python
common/inspect.py
skying0527/pull-Demo
5744e31e22ca27d43e04bfbce37e7af251a0fe76
[ "Apache-2.0" ]
null
null
null
common/inspect.py
skying0527/pull-Demo
5744e31e22ca27d43e04bfbce37e7af251a0fe76
[ "Apache-2.0" ]
null
null
null
common/inspect.py
skying0527/pull-Demo
5744e31e22ca27d43e04bfbce37e7af251a0fe76
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- import os import yaml from tools.times import timestamp from config.conf import ELEMENT_PATH, LOCATE_MODE def inspect_element(): """""" start_time = timestamp() for i in os.listdir(ELEMENT_PATH): _path = os.path.join(ELEMENT_PATH, i) if os.path...
35.2
78
0.491071
63a0d5586584f64ab1bee33fc68bb0c0fc21fe84
7,201
py
Python
client/starwhale/swds/store.py
goldenxinxing/starwhale
2fbb72b0ce5e135b432120c779440e53942be3b5
[ "Apache-2.0" ]
1
2022-03-24T02:03:48.000Z
2022-03-24T02:03:48.000Z
client/starwhale/swds/store.py
goldenxinxing/starwhale
2fbb72b0ce5e135b432120c779440e53942be3b5
[ "Apache-2.0" ]
null
null
null
client/starwhale/swds/store.py
goldenxinxing/starwhale
2fbb72b0ce5e135b432120c779440e53942be3b5
[ "Apache-2.0" ]
null
null
null
from pathlib import Path import sys import yaml import typing as t import click import requests from rich.panel import Panel from rich.pretty import Pretty from fs import open_fs from starwhale.base.store import LocalStorage from starwhale.consts import ( DEFAULT_DATASET_YAML_NAME, DEFAULT_MANIFEST_NAME, ...
33.337963
87
0.539786
63a2bc2fc9589a6a626eb31088dda639a15a9368
2,578
py
Python
stx-metrics/footprint/tests/send_data_test.py
gaponcec/tools-contrib
3e0d14040eec54de969dee22919c4d54c4d7c630
[ "Apache-2.0" ]
1
2019-03-25T19:21:57.000Z
2019-03-25T19:21:57.000Z
stx-metrics/footprint/tests/send_data_test.py
gaponcec/tools-contrib
3e0d14040eec54de969dee22919c4d54c4d7c630
[ "Apache-2.0" ]
3
2019-04-03T01:45:24.000Z
2019-07-25T15:22:31.000Z
stx-metrics/footprint/tests/send_data_test.py
gaponcec/tools-contrib
3e0d14040eec54de969dee22919c4d54c4d7c630
[ "Apache-2.0" ]
7
2019-03-25T18:53:44.000Z
2020-02-18T09:17:03.000Z
#!/usr/bin/env python __author__ = "Mario Carrillo" import random import time import argparse from influxdb import InfluxDBClient INFLUX_SERVER = "" INFLUX_PORT = "" INFLUX_PASS = "" INFLUX_USER = "" if __name__ == '__main__': main()
24.320755
70
0.572149
63a41385fdcc3fd156087362665083c0f3d04e78
1,767
py
Python
roll_the_dice/cli.py
pluralsight/tech-blog-roll-the-dice
68ec0aa01f6becaca1ab72e8aff1141e8f253eaa
[ "Apache-2.0" ]
11
2020-02-20T22:33:39.000Z
2022-03-23T11:57:50.000Z
roll_the_dice/cli.py
pluralsight/tech-blog-roll-the-dice
68ec0aa01f6becaca1ab72e8aff1141e8f253eaa
[ "Apache-2.0" ]
null
null
null
roll_the_dice/cli.py
pluralsight/tech-blog-roll-the-dice
68ec0aa01f6becaca1ab72e8aff1141e8f253eaa
[ "Apache-2.0" ]
6
2020-04-01T01:41:37.000Z
2021-11-17T11:14:53.000Z
import typer from .dice import roll, roll_from_string app = typer.Typer() def main(): app()
25.985294
87
0.634975
63a60dfdf997ba92340c90aeb0a57c1998260210
2,311
py
Python
scripts/dfh.py
ldamewood/figures
5a6ee60d308f1726afe491469db3ec6cde9e6d5c
[ "MIT" ]
5
2015-03-06T07:49:43.000Z
2022-03-22T19:52:42.000Z
scripts/dfh.py
ldamewood/figures
5a6ee60d308f1726afe491469db3ec6cde9e6d5c
[ "MIT" ]
null
null
null
scripts/dfh.py
ldamewood/figures
5a6ee60d308f1726afe491469db3ec6cde9e6d5c
[ "MIT" ]
null
null
null
#!/usr/bin/env python import numpy import itertools from pymatgen.core.lattice import Lattice from pymatgen.core.operations import SymmOp from pymatgen.core.structure import Structure from crystal import fillcell, tikz_atoms atoms = dfh(single = True) atoms_full = fillcell(atoms) bondatoms = [] snsite = numpy.array(...
33.492754
100
0.603635
63a6da93520ef33e9f9ab1ed832d591668deed60
3,458
py
Python
instasave/__main__.py
hnrkcode/InstaSave
81dd1638a20d8191566ad30772f652a6781d6c81
[ "MIT" ]
1
2020-07-05T19:42:44.000Z
2020-07-05T19:42:44.000Z
instasave/__main__.py
hnrkcode/InstaSave
81dd1638a20d8191566ad30772f652a6781d6c81
[ "MIT" ]
null
null
null
instasave/__main__.py
hnrkcode/InstaSave
81dd1638a20d8191566ad30772f652a6781d6c81
[ "MIT" ]
2
2019-09-10T20:21:35.000Z
2019-09-19T09:43:03.000Z
import argparse import os.path from .instagram.post import Downloader from .instagram.url import URLScraper from .utils.webaddr import get_url, validate_url from .web.client import HTTPHeaders from .web.geckoloader import GeckoLoader def get_arguments(): """Get arguments passed to the program by the user.""" ...
27.664
79
0.628687
63aa46352916f59092337f4bb1b5c13be2e2644b
649
py
Python
modules/dbnd-airflow/src/dbnd_airflow/web/airflow_app.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
224
2020-01-02T10:46:37.000Z
2022-03-02T13:54:08.000Z
modules/dbnd-airflow/src/dbnd_airflow/web/airflow_app.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
16
2020-03-11T09:37:58.000Z
2022-01-26T10:22:08.000Z
modules/dbnd-airflow/src/dbnd_airflow/web/airflow_app.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
24
2020-03-24T13:53:50.000Z
2022-03-22T11:55:18.000Z
import logging
28.217391
76
0.753467
63ac6d028038f4c5c0f57741dd002fb5b4dacbf1
3,793
py
Python
runway/lookups/handlers/random_string.py
onicagroup/runway
d50cac0e4878ff0691943029aa4f5b85d426a3b0
[ "Apache-2.0" ]
134
2018-02-26T21:35:23.000Z
2022-03-03T00:30:27.000Z
runway/lookups/handlers/random_string.py
onicagroup/runway
d50cac0e4878ff0691943029aa4f5b85d426a3b0
[ "Apache-2.0" ]
937
2018-03-08T22:04:35.000Z
2022-03-30T12:21:47.000Z
runway/lookups/handlers/random_string.py
onicagroup/runway
d50cac0e4878ff0691943029aa4f5b85d426a3b0
[ "Apache-2.0" ]
70
2018-02-26T23:48:11.000Z
2022-03-02T18:44:30.000Z
"""Generate a random string.""" # pyright: reportIncompatibleMethodOverride=none from __future__ import annotations import logging import secrets import string from typing import TYPE_CHECKING, Any, Callable, List, Sequence, Union from typing_extensions import Final, Literal from ...utils import BaseModel from .base...
30.58871
80
0.631426
63adc83e9b99bdc20e56c3462b56c6b2c4cdbcd3
4,523
py
Python
FinBot/intent/Loki_Exchange.py
Lanlanluuu/LokiHub
aae3efb566d2383e78eaa8dc1e8b3f1bb097f2a6
[ "MIT" ]
17
2020-11-25T07:40:18.000Z
2022-03-07T03:29:18.000Z
FinBot/intent/Loki_Exchange.py
Lanlanluuu/LokiHub
aae3efb566d2383e78eaa8dc1e8b3f1bb097f2a6
[ "MIT" ]
8
2020-12-18T13:23:59.000Z
2021-10-03T21:41:50.000Z
FinBot/intent/Loki_Exchange.py
Lanlanluuu/LokiHub
aae3efb566d2383e78eaa8dc1e8b3f1bb097f2a6
[ "MIT" ]
43
2020-12-02T09:03:57.000Z
2021-12-23T03:30:25.000Z
#!/usr/bin/env python3 # -*- coding:utf-8 -*- """ Loki module for Exchange Input: inputSTR str, utterance str, args str[], resultDICT dict Output: resultDICT dict """ DEBUG_Exchange = True userDefinedDICT = {"":"EUR", ...
28.446541
78
0.516914
63ae1f61f819018618faf981a6a8c7128684233e
1,396
py
Python
venv/Lib/site-packages/win32comext/directsound/test/ds_record.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
150
2021-11-02T05:31:51.000Z
2022-03-24T06:22:22.000Z
venv/Lib/site-packages/win32comext/directsound/test/ds_record.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
4
2021-12-01T11:55:58.000Z
2022-02-24T16:14:37.000Z
venv/Lib/site-packages/win32comext/directsound/test/ds_record.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
33
2021-11-03T00:29:41.000Z
2022-03-15T13:15:56.000Z
import pywintypes import struct import win32event, win32api import os import win32com.directsound.directsound as ds d = ds.DirectSoundCaptureCreate(None, None) sdesc = ds.DSCBUFFERDESC() sdesc.dwBufferBytes = 352800 # 2 seconds sdesc.lpwfxFormat = pywintypes.WAVEFORMATEX() sdesc.lpwfxFormat.wFormatTag = pywintypes...
23.661017
75
0.722779
63af8fc8ef5f415eb14f6ce6760e2d9eadfd7966
5,322
py
Python
_unittests/ut_df/test_pandas_groupbynan.py
Pandinosaurus/pandas_streaming
03008b63545e3634290ef0c041e920d94d454ccf
[ "MIT" ]
20
2017-09-23T03:23:13.000Z
2022-02-21T09:10:48.000Z
_unittests/ut_df/test_pandas_groupbynan.py
Pandinosaurus/pandas_streaming
03008b63545e3634290ef0c041e920d94d454ccf
[ "MIT" ]
19
2017-09-24T17:10:39.000Z
2021-12-29T11:02:58.000Z
_unittests/ut_df/test_pandas_groupbynan.py
Pandinosaurus/pandas_streaming
03008b63545e3634290ef0c041e920d94d454ccf
[ "MIT" ]
7
2018-11-09T08:15:20.000Z
2021-09-17T07:39:44.000Z
# coding: utf-8 """ @brief test log(time=1s) """ import unittest import pandas import numpy from scipy.sparse.linalg import lsqr as sparse_lsqr from pyquickhelper.pycode import ExtTestCase, ignore_warnings from pandas_streaming.df import pandas_groupby_nan, numpy_types if __name__ == "__main__": unittest.ma...
37.216783
85
0.485908
63afd781a3f83b4472e5cc0102407a1faccfc8c4
6,769
py
Python
ros/src/tl_detector/tl_detector.py
irt24/Udacity-CarND-FinalProject
0516a39a544f5a90c3b12b44f7ae200d53d8c375
[ "MIT" ]
null
null
null
ros/src/tl_detector/tl_detector.py
irt24/Udacity-CarND-FinalProject
0516a39a544f5a90c3b12b44f7ae200d53d8c375
[ "MIT" ]
null
null
null
ros/src/tl_detector/tl_detector.py
irt24/Udacity-CarND-FinalProject
0516a39a544f5a90c3b12b44f7ae200d53d8c375
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from std_msgs.msg import Int32 from geometry_msgs.msg import PoseStamped, Pose from styx_msgs.msg import TrafficLightArray, TrafficLight from styx_msgs.msg import Lane from sensor_msgs.msg import Image from cv_bridge import CvBridge from light_classification.tl_classifier import TLCla...
36.989071
108
0.646033
63aff24134f0357f39793f17fa4ba1b4b87cbb8d
1,601
py
Python
initGame.py
Sabsterrexx/PingPongGame
61e22838e3f48fcb7ffb4d83cf7c5d793766110b
[ "MIT" ]
null
null
null
initGame.py
Sabsterrexx/PingPongGame
61e22838e3f48fcb7ffb4d83cf7c5d793766110b
[ "MIT" ]
null
null
null
initGame.py
Sabsterrexx/PingPongGame
61e22838e3f48fcb7ffb4d83cf7c5d793766110b
[ "MIT" ]
null
null
null
#Import required Modules: import pygame import constants from paddle import Paddle from ball import Ball from score import Score from text import Text from screenState import ScreenState #This function basically executes everything in the "screenState" module's class
26.245902
123
0.658339
63b1672cda5a034b03a601fa6667760f80b9ca78
1,965
py
Python
minmax.py
patello/subtracting_squares
53ecfbfe96e2ddb9cb82307bae9c779a4d7d7b4d
[ "MIT" ]
null
null
null
minmax.py
patello/subtracting_squares
53ecfbfe96e2ddb9cb82307bae9c779a4d7d7b4d
[ "MIT" ]
null
null
null
minmax.py
patello/subtracting_squares
53ecfbfe96e2ddb9cb82307bae9c779a4d7d7b4d
[ "MIT" ]
null
null
null
if __name__ == "__main__": game=Game() result=game.calculate() print(str(result[-1]))
50.384615
124
0.603562
63b20249148e887bf399bbe4138aaff1329b132a
983
py
Python
fwl-automation-decisions/domain/src/domain/model/firewall/Firewall.py
aherculano/fwl-project
6d4c4d40393b76d45cf13b572b5aabc0696e9285
[ "MIT" ]
null
null
null
fwl-automation-decisions/domain/src/domain/model/firewall/Firewall.py
aherculano/fwl-project
6d4c4d40393b76d45cf13b572b5aabc0696e9285
[ "MIT" ]
null
null
null
fwl-automation-decisions/domain/src/domain/model/firewall/Firewall.py
aherculano/fwl-project
6d4c4d40393b76d45cf13b572b5aabc0696e9285
[ "MIT" ]
null
null
null
from .FirewallName import FirewallName from .FirewallUUID import FirewallUUID from .FirewallAccessLayer import FirewallAccessLayer
23.97561
98
0.670397
63b23605e301a71e7c5288370291d963f9333dd6
3,479
py
Python
other_scripts/check_status.py
seyros/python_training
15a5a3fa471d8ff63ccdd03c13bd09997a8b5794
[ "Apache-2.0" ]
null
null
null
other_scripts/check_status.py
seyros/python_training
15a5a3fa471d8ff63ccdd03c13bd09997a8b5794
[ "Apache-2.0" ]
null
null
null
other_scripts/check_status.py
seyros/python_training
15a5a3fa471d8ff63ccdd03c13bd09997a8b5794
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = 'ivanov' import pymysql # connection = pymysql.connect(host="localhost", user="root", passwd="1112223334", db="testdb", charset='utf8', cursorclass=pymysql.cursors.DictCursor) try: with connection.cursor() as cursor: #create new record # sql = "INSERT INTO C...
89.205128
1,360
0.678068
63b3ca6cdf03796cdc1925b2b477724000dd42e8
3,461
py
Python
inria/helloworld/datamodules.py
hernanlira/inria-anomaly_detection
f1dd980f7245c388f2ab583083ee72fb64d60a17
[ "MIT" ]
null
null
null
inria/helloworld/datamodules.py
hernanlira/inria-anomaly_detection
f1dd980f7245c388f2ab583083ee72fb64d60a17
[ "MIT" ]
null
null
null
inria/helloworld/datamodules.py
hernanlira/inria-anomaly_detection
f1dd980f7245c388f2ab583083ee72fb64d60a17
[ "MIT" ]
null
null
null
from torchvision.datasets import MNIST from torchvision import transforms import pytorch_lightning as pl from torch.utils.data import DataLoader, random_split from multiprocessing import cpu_count from typing import Any, Optional, Union from pl_bolts.datamodules import CIFAR10DataModule from pl_bolts.transforms.datas...
36.431579
122
0.647501