hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
c678e771e656c40554793300ea72d58a952d58cd
301
py
Python
slack_invite/slack_invite/forms.py
sanchagrins/umuc-cs-slack
648e709905b153ad17a3df8bd826a784edd5c11b
[ "MIT" ]
null
null
null
slack_invite/slack_invite/forms.py
sanchagrins/umuc-cs-slack
648e709905b153ad17a3df8bd826a784edd5c11b
[ "MIT" ]
13
2017-08-18T01:19:49.000Z
2017-11-16T02:24:07.000Z
slack_invite/slack_invite/forms.py
umuc-cs/umuc-cs-slack
648e709905b153ad17a3df8bd826a784edd5c11b
[ "MIT" ]
null
null
null
from django import forms class InviteForm(forms.Form): email_addr = forms.EmailField(widget=forms.EmailInput(attrs={'class':'form-control','placeholder':'Email address','id':'email'}), label='') check_terms = forms.BooleanField(label="I agree to the <a link''>Terms and Code of Conduct</a>")
50.166667
143
0.724252
274
0.910299
0
0
0
0
0
0
118
0.392027
c67973e1c48ecff18bf6a4fc82b259940ef31d3c
4,561
py
Python
tools/fastq_pair_names/fastq_pair_names.py
Neato-Nick/pico_galaxy
79666612a9ca2d335622bc282a4768bb43d91419
[ "MIT" ]
18
2015-06-09T13:57:09.000Z
2022-01-14T21:05:54.000Z
tools/fastq_pair_names/fastq_pair_names.py
Neato-Nick/pico_galaxy
79666612a9ca2d335622bc282a4768bb43d91419
[ "MIT" ]
34
2015-04-02T19:26:08.000Z
2021-06-17T18:59:24.000Z
tools/fastq_pair_names/fastq_pair_names.py
Neato-Nick/pico_galaxy
79666612a9ca2d335622bc282a4768bb43d91419
[ "MIT" ]
24
2015-02-25T13:40:19.000Z
2021-09-08T20:40:40.000Z
#!/usr/bin/env python """Extract paired read names from FASTQ file(s). The input file should be a valid FASTQ file(s), the output is two tabular files - the paired read names (without suffixes), and unpaired read names (including any unrecognised pair names). Note that the FASTQ variant is unimportant (Sanger, Solexa...
31.027211
86
0.611489
0
0
0
0
0
0
0
0
1,847
0.404955
c6798f3695e83af119f05e4fdd4f14111d00889d
2,903
py
Python
code/05_speech_to_text/main_05_b_wake_word.py
padmalcom/AISpeechAssistant
b7501a23a8f513acb5043f3c7bb06df129bdc2cc
[ "Apache-2.0" ]
1
2021-09-08T09:21:16.000Z
2021-09-08T09:21:16.000Z
code/05_speech_to_text/main_05_b_wake_word.py
padmalcom/AISpeechAssistant
b7501a23a8f513acb5043f3c7bb06df129bdc2cc
[ "Apache-2.0" ]
null
null
null
code/05_speech_to_text/main_05_b_wake_word.py
padmalcom/AISpeechAssistant
b7501a23a8f513acb5043f3c7bb06df129bdc2cc
[ "Apache-2.0" ]
2
2022-02-06T09:54:40.000Z
2022-03-01T07:52:51.000Z
from loguru import logger import yaml import time import pyaudio import struct import os import sys from vosk import Model, SpkModel, KaldiRecognizer import json import text2numde from TTS import Voice import multiprocessing CONFIG_FILE = "config.yml" SAMPLE_RATE = 16000 FRAME_LENGTH = 512 class VoiceAssistant():...
27.130841
86
0.709955
2,457
0.845783
0
0
0
0
0
0
884
0.304303
c67b22952d56027ba353d1b1a79d790cab33d849
4,781
py
Python
PlotlyandPython/Lessons/(01) Intro to Python/Notebooks/Python Scripts/(09) Dictionaries (2).py
peternewman22/Python_Courses
07a798b6f264fc6069eb1205c9d429f00fb54bc5
[ "MIT" ]
null
null
null
PlotlyandPython/Lessons/(01) Intro to Python/Notebooks/Python Scripts/(09) Dictionaries (2).py
peternewman22/Python_Courses
07a798b6f264fc6069eb1205c9d429f00fb54bc5
[ "MIT" ]
null
null
null
PlotlyandPython/Lessons/(01) Intro to Python/Notebooks/Python Scripts/(09) Dictionaries (2).py
peternewman22/Python_Courses
07a798b6f264fc6069eb1205c9d429f00fb54bc5
[ "MIT" ]
null
null
null
# coding: utf-8 # # Dictionaries (2) # In the last lesson we saw how to create dictionaries and how to access the different items in a dictionary by their key. We also saw how to add to and update the items in a dictionary using assignment, or the <code>dict.update()</code> method, and how to delete items using the...
32.972414
497
0.72328
0
0
0
0
0
0
0
0
4,113
0.86028
c67c053ab03a0bdd40b9436db19002f5b98e01a7
7,851
py
Python
ros/src/waypoint_updater/waypoint_updater.py
rezarajan/sdc-capstone
a1612fc8acd544e892d8d98142ffc161edf9989a
[ "MIT" ]
null
null
null
ros/src/waypoint_updater/waypoint_updater.py
rezarajan/sdc-capstone
a1612fc8acd544e892d8d98142ffc161edf9989a
[ "MIT" ]
null
null
null
ros/src/waypoint_updater/waypoint_updater.py
rezarajan/sdc-capstone
a1612fc8acd544e892d8d98142ffc161edf9989a
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy import numpy as np from scipy.spatial import KDTree from std_msgs.msg import Int32 from geometry_msgs.msg import PoseStamped from styx_msgs.msg import Lane, Waypoint import math ''' This node will publish waypoints from the car's current position to some `x` distance ahead. As men...
41.760638
136
0.659279
6,749
0.859636
0
0
0
0
0
0
2,930
0.373201
c67c49682485de62598f7200a4f39c46aba3d865
1,353
py
Python
apps/hosts/migrations/0001_initial.py
yhgnice/toolsvb
35f9d27ee2439d134cab160a7cf930ea13a31d26
[ "Apache-2.0" ]
null
null
null
apps/hosts/migrations/0001_initial.py
yhgnice/toolsvb
35f9d27ee2439d134cab160a7cf930ea13a31d26
[ "Apache-2.0" ]
null
null
null
apps/hosts/migrations/0001_initial.py
yhgnice/toolsvb
35f9d27ee2439d134cab160a7cf930ea13a31d26
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.8 on 2017-03-09 10:31 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='HostLis...
39.794118
120
0.602365
1,196
0.883962
0
0
0
0
0
0
378
0.279379
c67cc3624a702cafd7e7246abe8b88132e111d61
53
py
Python
modules/__init__.py
richardHaw/nagare
4909c4ba8833e7cf5152e39a7bc58a558aaa2c7c
[ "MIT" ]
null
null
null
modules/__init__.py
richardHaw/nagare
4909c4ba8833e7cf5152e39a7bc58a558aaa2c7c
[ "MIT" ]
null
null
null
modules/__init__.py
richardHaw/nagare
4909c4ba8833e7cf5152e39a7bc58a558aaa2c7c
[ "MIT" ]
null
null
null
# this file is needed for python2, delete for python3
53
53
0.792453
0
0
0
0
0
0
0
0
53
1
c67cf2280718f5ed4b61e267d9cdf0637f3ec6f1
3,603
py
Python
src/originexample/pipelines/handle_ggo_received.py
project-origin/example-backend
13d9b528533dcaada8b0f0b93bbe2ef6a25c38ae
[ "MIT" ]
null
null
null
src/originexample/pipelines/handle_ggo_received.py
project-origin/example-backend
13d9b528533dcaada8b0f0b93bbe2ef6a25c38ae
[ "MIT" ]
1
2021-02-10T02:22:51.000Z
2021-02-10T02:22:51.000Z
src/originexample/pipelines/handle_ggo_received.py
project-origin/example-backend
13d9b528533dcaada8b0f0b93bbe2ef6a25c38ae
[ "MIT" ]
null
null
null
""" TODO write this """ import marshmallow_dataclass as md from sqlalchemy import orm from originexample import logger from originexample.db import inject_session from originexample.tasks import celery_app, lock from originexample.auth import User, UserQuery from originexample.consuming import ( GgoConsumerControl...
27.503817
93
0.64141
0
0
0
0
2,408
0.668332
0
0
1,264
0.350819
c680e030b9ebdb230ac43be3ba2a8e742227cf78
113
py
Python
tests/test_spliceai_wrapper.py
RipollJ/spliceai-wrapper
29adcc7c93fa45bec953e9df078151653f419a73
[ "MIT" ]
2
2020-05-27T12:55:22.000Z
2020-05-30T12:59:49.000Z
tests/test_spliceai_wrapper.py
RipollJ/spliceai-wrapper
29adcc7c93fa45bec953e9df078151653f419a73
[ "MIT" ]
3
2019-10-08T03:38:55.000Z
2021-11-15T17:51:09.000Z
tests/test_spliceai_wrapper.py
RipollJ/spliceai-wrapper
29adcc7c93fa45bec953e9df078151653f419a73
[ "MIT" ]
2
2020-05-19T12:48:57.000Z
2020-05-20T05:44:21.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `spliceai_wrapper` package.""" import pytest # noqa
18.833333
43
0.637168
0
0
0
0
0
0
0
0
93
0.823009
c68186a925cc94d28ae976073b01ff32e11600e6
313
py
Python
src/pythonboilerplate/app.py
favgeris/pythonBoilerplate
c367758ae01137f3b499ca0d4f8ebb414ae2c4d2
[ "MIT" ]
null
null
null
src/pythonboilerplate/app.py
favgeris/pythonBoilerplate
c367758ae01137f3b499ca0d4f8ebb414ae2c4d2
[ "MIT" ]
null
null
null
src/pythonboilerplate/app.py
favgeris/pythonBoilerplate
c367758ae01137f3b499ca0d4f8ebb414ae2c4d2
[ "MIT" ]
null
null
null
import argparse import logging import os import pathlib from typing import Union logger = logging.getLogger(__name__) def run(somearg) -> int: """Run app""" try: print(f'Some exciting argument: {somearg}') except RuntimeError as ex: logger.error(ex) return 1 return 0
15.65
51
0.658147
0
0
0
0
0
0
0
0
49
0.15655
c681980ffe6cfcb7e6776781d202be19d967c86b
4,656
py
Python
hard-gists/81635e6cbc933b7e8862/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/81635e6cbc933b7e8862/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/81635e6cbc933b7e8862/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
import os import sys import time import atomac import subprocess if len(sys.argv) < 2: print "Usage: bouncer.py <path_to_logic_project> (<path_to_logic_project>)" os.exit(1) bundleId = 'com.apple.logic10' for project in sys.argv[1:]: projectName = project.split('/')[-1].replace('.logicx', '') filename...
30.631579
95
0.618986
0
0
0
0
0
0
0
0
1,346
0.289089
c6832c12d1f11f0fd4b7b74f990fd950eb68d5c6
2,506
py
Python
functions/formatString.py
Steve-Xyh/AutoAoxiang
a8f1abed0f17b967456b1fa539c0aae79dac1d01
[ "WTFPL" ]
7
2020-02-17T08:12:14.000Z
2021-12-29T09:41:35.000Z
functions/formatString.py
Steve-Xyh/AutoAoxiang
a8f1abed0f17b967456b1fa539c0aae79dac1d01
[ "WTFPL" ]
null
null
null
functions/formatString.py
Steve-Xyh/AutoAoxiang
a8f1abed0f17b967456b1fa539c0aae79dac1d01
[ "WTFPL" ]
1
2020-07-24T07:16:14.000Z
2020-07-24T07:16:14.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import datetime import colorama colorama.init(autoreset=True) logData = { '所在位置': 'Location', '是否经停湖北': '否', '接触湖北籍人员': '否', '接触确诊疑似': '否', '今日体温': '37.2度以下', '有无疑似或异常': '无', '是否隔离': '否', } def log_line(dic: dict, color=True): ''' 中文...
25.571429
111
0.541899
0
0
0
0
0
0
0
0
774
0.294745
c6843679e999329dca1a8986c704607c2cb84a96
433
py
Python
2 - Automation tools with IP hiding techniques/checkValidJson.py
Phong940253/facebook-data-extraction
fa64680dcff900db4d852af06ff792ccf4d5be33
[ "MIT" ]
null
null
null
2 - Automation tools with IP hiding techniques/checkValidJson.py
Phong940253/facebook-data-extraction
fa64680dcff900db4d852af06ff792ccf4d5be33
[ "MIT" ]
null
null
null
2 - Automation tools with IP hiding techniques/checkValidJson.py
Phong940253/facebook-data-extraction
fa64680dcff900db4d852af06ff792ccf4d5be33
[ "MIT" ]
null
null
null
import json import glob groupPost = glob.glob("rawData/*/*/*.json") pagePost = glob.glob("rawData/*/*.json") groupPagePost = groupPost + pagePost def is_json(myjson): try: json.load(myjson) except ValueError as e: return False return True for postFile in groupPagePost: with open(pos...
19.681818
52
0.628176
0
0
0
0
0
0
0
0
48
0.110855
c684d80b73e9aa13f3fe72698614ec87757d94ac
805
py
Python
Observed_Game_Parra/consent/models.py
danielfParra/Lying_Online_Parra2022
10e8ef6248f684f63e9dea1314ef57f197e48773
[ "CC0-1.0" ]
null
null
null
Observed_Game_Parra/consent/models.py
danielfParra/Lying_Online_Parra2022
10e8ef6248f684f63e9dea1314ef57f197e48773
[ "CC0-1.0" ]
null
null
null
Observed_Game_Parra/consent/models.py
danielfParra/Lying_Online_Parra2022
10e8ef6248f684f63e9dea1314ef57f197e48773
[ "CC0-1.0" ]
null
null
null
from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) author = 'Daniel Parra' doc = """ Consent """ class Constants(BaseConstants): name_in_url = 'consent' players_per_group = None num_rounds = 1 ...
18.72093
88
0.649689
584
0.725466
0
0
0
0
0
0
266
0.330435
c685b0ee814971262f2ee615d82d87aa09cf8cef
448
py
Python
tests/compute/utils.py
joshcarty/dgl
4464b9734c1061bd84325a54883c5046031def37
[ "Apache-2.0" ]
4
2018-12-25T14:59:08.000Z
2021-07-02T12:36:40.000Z
tests/compute/utils.py
xyanAI/dgl
36daf66f6216bad4d30651311bcb87aa45dd33d5
[ "Apache-2.0" ]
6
2018-12-13T15:22:08.000Z
2021-04-22T02:40:27.000Z
tests/compute/utils.py
xyanAI/dgl
36daf66f6216bad4d30651311bcb87aa45dd33d5
[ "Apache-2.0" ]
4
2020-12-26T10:39:36.000Z
2020-12-26T12:38:52.000Z
import pytest import backend as F if F._default_context_str == 'cpu': parametrize_dtype = pytest.mark.parametrize("idtype", [F.int32, F.int64]) else: # only test int32 on GPU because many graph operators are not supported for int64. parametrize_dtype = pytest.mark.parametrize("idtype", [F.int32, F.int64]) ...
28
86
0.676339
0
0
0
0
0
0
0
0
103
0.229911
c685c691386312383505490cedb37b0394b57c94
1,069
py
Python
apps/controllerx/cx_helper.py
xaviml/z2m_ikea_controller
e612af5a913e8b4784dcaa23ea5319115427d083
[ "MIT" ]
19
2019-11-21T19:51:40.000Z
2020-01-14T09:24:33.000Z
apps/controllerx/cx_helper.py
xaviml/z2m_ikea_controller
e612af5a913e8b4784dcaa23ea5319115427d083
[ "MIT" ]
11
2019-11-20T16:43:35.000Z
2020-01-17T16:23:06.000Z
apps/controllerx/cx_helper.py
xaviml/z2m_ikea_controller
e612af5a913e8b4784dcaa23ea5319115427d083
[ "MIT" ]
5
2019-12-20T21:31:07.000Z
2020-01-06T18:49:52.000Z
import importlib import os import pkgutil from typing import Any, List, Type def _import_modules(file_dir: str, package: str) -> None: pkg_dir = os.path.dirname(file_dir) for (_, name, ispkg) in pkgutil.iter_modules([pkg_dir]): if ispkg: _import_modules(pkg_dir + "/" + name + "/__init__.py...
31.441176
88
0.658559
0
0
0
0
0
0
0
0
37
0.034612
c686c1dded95c4fb11f50e8f958330e48395c1cb
304
py
Python
34.PySimpleGUI.py
sarincr/GUI-With-Tkinter-using-Python
3b57fc4aeed9e4a3018fc940bafdb4160ec853fc
[ "MIT" ]
null
null
null
34.PySimpleGUI.py
sarincr/GUI-With-Tkinter-using-Python
3b57fc4aeed9e4a3018fc940bafdb4160ec853fc
[ "MIT" ]
null
null
null
34.PySimpleGUI.py
sarincr/GUI-With-Tkinter-using-Python
3b57fc4aeed9e4a3018fc940bafdb4160ec853fc
[ "MIT" ]
null
null
null
import PySimpleGUI as PySG lay = [ [PySG.Text("What's your name?")], [PySG.Input()], [PySG.Button('Ok')] ] wd = PySG.Window('Python Simple GUI', lay) event, values = wd.read() print('Hello', values[0]) wd.close()
21.714286
48
0.457237
0
0
0
0
0
0
0
0
49
0.161184
c687f6be8dfca9ca6885acd96b6da1567a4b50ba
270
py
Python
slbo/policies/uniform_policy.py
LinZichuan/AdMRL
50a22d4d480e99125cc91cc65dfcc0df4a883ac6
[ "MIT" ]
27
2020-06-17T11:40:17.000Z
2021-11-16T07:39:33.000Z
slbo/policies/uniform_policy.py
LinZichuan/AdMRL
50a22d4d480e99125cc91cc65dfcc0df4a883ac6
[ "MIT" ]
3
2020-06-19T07:01:48.000Z
2020-06-19T07:14:57.000Z
slbo/policies/uniform_policy.py
LinZichuan/AdMRL
50a22d4d480e99125cc91cc65dfcc0df4a883ac6
[ "MIT" ]
5
2020-11-19T01:11:24.000Z
2021-12-24T09:03:56.000Z
import numpy as np from . import BasePolicy class UniformPolicy(BasePolicy): def __init__(self, dim_action): self.dim_action = dim_action def get_actions(self, states): return np.random.uniform(-1., 1., states.shape[:-1] + (self.dim_action,))
24.545455
81
0.685185
223
0.825926
0
0
0
0
0
0
0
0
c688fe0af58ac798c7af0c9f68af25aff660071c
5,304
py
Python
models/ScrabbleGAN.py
iambhuvi/ScrabbleGAN
30dce26a1a103a0fd6ce7269d6ccdcaccb32fd3b
[ "MIT" ]
9
2021-02-02T06:31:32.000Z
2021-11-03T11:19:58.000Z
models/ScrabbleGAN.py
iambhuvi/ScrabbleGAN
30dce26a1a103a0fd6ce7269d6ccdcaccb32fd3b
[ "MIT" ]
1
2021-12-01T12:13:14.000Z
2021-12-01T12:13:14.000Z
models/ScrabbleGAN.py
iambhuvi/ScrabbleGAN
30dce26a1a103a0fd6ce7269d6ccdcaccb32fd3b
[ "MIT" ]
6
2021-02-02T06:31:49.000Z
2022-01-21T14:33:43.000Z
import torch import torch.nn as nn import torch.nn.functional as F import torch.utils.data from models.model_utils import BigGAN as BGAN from utils.data_utils import * import pandas as pd class Recognizer(nn.Module): def __init__(self, cfg): super(Recognizer, self).__init__() input_size = 1 ...
37.617021
112
0.572587
4,989
0.939725
0
0
0
0
0
0
390
0.07346
c689b60ebca7bfda5e5401b93bdc1651fc7b24be
2,745
py
Python
jobbing/controllers/providers_controller.py
davidall-amdocs/jobbing
b13311da07606366dfbe2eb737483a5820038557
[ "Apache-2.0" ]
null
null
null
jobbing/controllers/providers_controller.py
davidall-amdocs/jobbing
b13311da07606366dfbe2eb737483a5820038557
[ "Apache-2.0" ]
1
2021-06-10T03:34:07.000Z
2021-06-10T03:34:07.000Z
jobbing/controllers/providers_controller.py
davidall-amdocs/jobbing
b13311da07606366dfbe2eb737483a5820038557
[ "Apache-2.0" ]
1
2022-02-14T15:51:01.000Z
2022-02-14T15:51:01.000Z
from flask import abort from jobbing.models.user_profile import UserProfile # noqa: E501 from jobbing.models.service import Service # noqa: E501 from jobbing.DBModels import Profile as DBProfile from jobbing.DBModels import Service as DBService from jobbing.login import token_required @token_required def get_provi...
34.746835
82
0.647723
0
0
0
0
2,450
0.892532
0
0
427
0.155556
c68a6d8f407663035b0e8aaa5e7a9d1c6021d7ca
11,082
py
Python
app/tests/evaluation_tests/test_views.py
njmhendrix/grand-challenge.org
9bc36f5e26561a78bd405e8ea5e4c0f86c95f011
[ "Apache-2.0" ]
null
null
null
app/tests/evaluation_tests/test_views.py
njmhendrix/grand-challenge.org
9bc36f5e26561a78bd405e8ea5e4c0f86c95f011
[ "Apache-2.0" ]
null
null
null
app/tests/evaluation_tests/test_views.py
njmhendrix/grand-challenge.org
9bc36f5e26561a78bd405e8ea5e4c0f86c95f011
[ "Apache-2.0" ]
null
null
null
from collections import namedtuple from datetime import timedelta import factory import pytest from django.db.models import signals from django.utils import timezone from tests.factories import ( EvaluationFactory, MethodFactory, SubmissionFactory, ) from tests.utils import ( get_view_for_user, va...
33.889908
78
0.721891
0
0
0
0
8,631
0.778831
0
0
1,328
0.119834
c68b2764c5975cf7d7cb7f41a4acfa6e9c0a27aa
2,496
py
Python
Misc/convm.py
Dengjianping/AlgorithmsPractice
612f40b4fca4c1cf2b0cd9ca4df63e217b7affbf
[ "MIT" ]
null
null
null
Misc/convm.py
Dengjianping/AlgorithmsPractice
612f40b4fca4c1cf2b0cd9ca4df63e217b7affbf
[ "MIT" ]
null
null
null
Misc/convm.py
Dengjianping/AlgorithmsPractice
612f40b4fca4c1cf2b0cd9ca4df63e217b7affbf
[ "MIT" ]
null
null
null
a=[[1,2,3,4,5],[1,2,3,4,5],[1,2,3,4,5]] b=[[1,2,3,4],[3,4,5,5]] def convMatrix(a, b, mode='full'): if mode == 'full': row=len(a)+len(b) - 1 col=len(a[0])+len(b[0]) - 1 c= [[0 for i in range(col)] for i in range(row)] for i in range(len(a)): for j in range(len(a[0])): ...
35.15493
84
0.405849
0
0
0
0
0
0
0
0
88
0.035256
c68b2c92d58355bdae49241aa6bb6793ce19665b
1,170
py
Python
com.systemincloud.examples.tasks.pythontask/src/test/py/tasks/ports/Atomic3SIn0AIn2Out.py
systemincloud/sic-examples
b82d5d672f515b1deb5ddb35c5a93c003e03c030
[ "Apache-2.0" ]
null
null
null
com.systemincloud.examples.tasks.pythontask/src/test/py/tasks/ports/Atomic3SIn0AIn2Out.py
systemincloud/sic-examples
b82d5d672f515b1deb5ddb35c5a93c003e03c030
[ "Apache-2.0" ]
15
2015-01-08T20:28:19.000Z
2016-07-20T07:19:15.000Z
com.systemincloud.examples.tasks.pythontask/src/test/py/tasks/ports/Atomic3SIn0AIn2Out.py
systemincloud/sic-examples
b82d5d672f515b1deb5ddb35c5a93c003e03c030
[ "Apache-2.0" ]
null
null
null
from sicpythontask.PythonTaskInfo import PythonTaskInfo from sicpythontask.PythonTask import PythonTask from sicpythontask.InputPort import InputPort from sicpythontask.OutputPort import OutputPort from sicpythontask.data.Int32 import Int32 from sicpythontask.data.Float32 import Float32 from sicpythontask.data.Float64 ...
39
92
0.718803
775
0.662393
0
0
791
0.676068
0
0
37
0.031624
c68c3919e177e8d1de7b30c2a650b62b74c47975
6,811
py
Python
bin/extract_bcs.py
dmaticzka/bctools
e4733b1f59a151f8158a8173a3cde48a5d119bc2
[ "Apache-2.0" ]
null
null
null
bin/extract_bcs.py
dmaticzka/bctools
e4733b1f59a151f8158a8173a3cde48a5d119bc2
[ "Apache-2.0" ]
3
2016-04-24T14:26:17.000Z
2017-04-28T15:17:20.000Z
bin/extract_bcs.py
dmaticzka/bctools
e4733b1f59a151f8158a8173a3cde48a5d119bc2
[ "Apache-2.0" ]
2
2016-05-06T03:57:25.000Z
2018-11-06T10:57:32.000Z
#!/usr/bin/env python import argparse import logging import re from sys import stdout from Bio.SeqIO.QualityIO import FastqGeneralIterator # avoid ugly python IOError when stdout output is piped into another program # and then truncated (such as piping to head) from signal import signal, SIGPIPE, SIG_DFL signal(SIGPIP...
39.143678
198
0.707238
0
0
0
0
0
0
0
0
2,924
0.429306
c68e39b0e1053cfb768407c21209e2d2583bacc2
1,226
py
Python
main.py
pranavbaburaj/sh
dc0da9e10e7935310ae40d350c1897fcd65bce8f
[ "MIT" ]
4
2021-01-30T12:25:21.000Z
2022-03-13T07:23:19.000Z
main.py
pranavbaburaj/sh
dc0da9e10e7935310ae40d350c1897fcd65bce8f
[ "MIT" ]
3
2021-02-26T13:11:17.000Z
2021-06-04T17:26:05.000Z
main.py
pranavbaburaj/sh
dc0da9e10e7935310ae40d350c1897fcd65bce8f
[ "MIT" ]
1
2021-02-08T10:18:29.000Z
2021-02-08T10:18:29.000Z
import pyfiglet as figlet import click as click from project import Project, ApplicationRunner # The application package manager # get from package import PackageManager # print out the application name def print_app_name(app_name): figlet_object = figlet.Figlet(font='slant') return figlet_object...
24.52
69
0.693312
0
0
0
0
386
0.314845
0
0
317
0.258564
c68e5add13f063fbcdf222fe47050eb0edc40e67
1,970
py
Python
src/container/cni/cni/test/kube_cni/test_kube_params.py
Dmitry-Eremeev/contrail-controller
1238bcff697981662225ec5a15bc4d3d2237ae93
[ "Apache-2.0" ]
null
null
null
src/container/cni/cni/test/kube_cni/test_kube_params.py
Dmitry-Eremeev/contrail-controller
1238bcff697981662225ec5a15bc4d3d2237ae93
[ "Apache-2.0" ]
2
2018-12-04T02:20:52.000Z
2018-12-22T06:16:30.000Z
src/container/cni/cni/test/kube_cni/test_kube_params.py
Dmitry-Eremeev/contrail-controller
1238bcff697981662225ec5a15bc4d3d2237ae93
[ "Apache-2.0" ]
1
2018-12-04T02:07:47.000Z
2018-12-04T02:07:47.000Z
import sys import mock import unittest import os import types from mock import patch, Mock docker = Mock() docker.client = Mock() sys.modules['docker'] = docker from cni.kube_cni import kube_params class DockerClientMock(object): def __init__(self): pass def inspect_container(self, id): retu...
30.78125
84
0.63198
1,765
0.895939
0
0
1,376
0.698477
0
0
360
0.182741
c68e8c8615c536021a7d96bf97849a89f15fbe86
672
py
Python
build/lib/ripda/__init__.py
isakruas/ripda
a85e04be6f2d019a294a284e16b55b533cd32c33
[ "MIT" ]
3
2021-06-05T13:05:49.000Z
2021-06-08T12:01:16.000Z
build/lib/ripda/__init__.py
isakruas/ripda
a85e04be6f2d019a294a284e16b55b533cd32c33
[ "MIT" ]
null
null
null
build/lib/ripda/__init__.py
isakruas/ripda
a85e04be6f2d019a294a284e16b55b533cd32c33
[ "MIT" ]
1
2021-06-05T13:06:15.000Z
2021-06-05T13:06:15.000Z
import os from pathlib import Path from .settings import default import logging try: if os.path.isdir(str(Path.home()) + '/ripda/'): if not os.path.isdir(str(Path.home()) + '/ripda/blocks/'): os.mkdir(str(Path.home()) + '/ripda/blocks/') pass if not os.path.isfile(str(Path...
21.677419
70
0.549107
0
0
0
0
0
0
0
0
138
0.205357
c6904f6da38987f613861eec004342d5edfec9c2
1,339
py
Python
src/21.py
peter-hunt/project-euler-solution
ce5be80043e892e3a95604bd5ebec9dc88c7c037
[ "MIT" ]
null
null
null
src/21.py
peter-hunt/project-euler-solution
ce5be80043e892e3a95604bd5ebec9dc88c7c037
[ "MIT" ]
null
null
null
src/21.py
peter-hunt/project-euler-solution
ce5be80043e892e3a95604bd5ebec9dc88c7c037
[ "MIT" ]
null
null
null
""" Amicable numbers Let d(n) be defined as the sum of proper divisors of n (numbers less than n which divide evenly into n). If d(a) = b and d(b) = a, where a ≠ b, then a and b are an amicable pair and each of a and b are called amicable numbers. For example, the proper divisors of 220 are 1, 2, 4, 5, 10, 11, 20, 22...
21.596774
79
0.551158
0
0
0
0
0
0
0
0
531
0.395973
c691c92322330bef3cb93860c43c284649dcb60d
120
py
Python
cronicl/tracers/__init__.py
joocer/cronicl
5ab215554939699683752cb7b8549756edff9ea5
[ "Apache-2.0" ]
null
null
null
cronicl/tracers/__init__.py
joocer/cronicl
5ab215554939699683752cb7b8549756edff9ea5
[ "Apache-2.0" ]
73
2020-10-05T21:00:48.000Z
2020-11-16T23:29:41.000Z
cronicl/tracers/__init__.py
joocer/cronicl
5ab215554939699683752cb7b8549756edff9ea5
[ "Apache-2.0" ]
null
null
null
from .file_tracer import FileTracer from .null_tracer import NullTracer from .base_tracer import BaseTracer, get_tracer
30
47
0.858333
0
0
0
0
0
0
0
0
0
0
c6929965a631981dae06929029921384cdc65b4d
2,156
py
Python
test.py
adrianlazar-personal/py-jwt-validator
1d586129a1279f90b4b326aa29f40b9302004e43
[ "MIT" ]
6
2020-05-28T20:22:23.000Z
2021-09-21T06:26:52.000Z
test.py
adrianlazar-personal/py-jwt-validator
1d586129a1279f90b4b326aa29f40b9302004e43
[ "MIT" ]
4
2020-11-09T23:12:38.000Z
2021-03-03T16:39:59.000Z
test.py
adrianlazar-personal/py-jwt-validator
1d586129a1279f90b4b326aa29f40b9302004e43
[ "MIT" ]
1
2020-12-07T15:00:35.000Z
2020-12-07T15:00:35.000Z
from py_jwt_validator import PyJwtValidator, PyJwtException import requests jwt = 'eyJraWQiOiIyMjIiLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdF9oYXNoIjoic2pvdjVKajlXLXdkblBZUDd3djZ0USIsInN1YiI6Imh0dHBzOi8vbG9naW4uc2FsZXNmb3JjZS5jb20vaWQvMDBEMXQwMDAwMDBEVUo2RUFPLzAwNTF0MDAwMDAwRHlhUEFBUyIsInpvbmVpbmZvIjoiRXVyb3BlL0R1Ymx...
269.5
1,920
0.967532
0
0
0
0
0
0
0
0
1,945
0.902134
c6934a03c692a0936dbdefc83d05a9252b05f1c4
6,795
py
Python
files/area.py
joaovpassos/USP-Programs
09ddb8aed238df1f1a2e80afdc202ac4538daf41
[ "MIT" ]
2
2021-05-26T19:14:16.000Z
2021-05-27T21:14:24.000Z
files/area.py
joaovpassos/USP-Programs
09ddb8aed238df1f1a2e80afdc202ac4538daf41
[ "MIT" ]
null
null
null
files/area.py
joaovpassos/USP-Programs
09ddb8aed238df1f1a2e80afdc202ac4538daf41
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #------------------------------------------------------------------ # Constantes que você pode utilizar nesse exercício # Em notação científica 1.0e-6 é o o mesmo qoe 0.000001 (10 elevado a -6) EPSILON = 1.0e-6 #------------------------------------------------------------------ # O import abai...
31.901408
98
0.512288
0
0
0
0
0
0
0
0
5,325
0.769286
c693df3548964a87b3411b88e56a453a7a597f59
4,421
py
Python
gribmagic/unity/download/engine.py
earthobservations/gribmagic
59c647d3ca3ecaf2d720837ba0cec9cc2aa2546e
[ "MIT" ]
9
2020-12-18T13:26:45.000Z
2022-03-03T16:46:33.000Z
gribmagic/unity/download/engine.py
earthobservations/gribmagic
59c647d3ca3ecaf2d720837ba0cec9cc2aa2546e
[ "MIT" ]
12
2020-12-19T18:32:51.000Z
2021-10-30T17:48:35.000Z
gribmagic/unity/download/engine.py
earthobservations/gribmagic
59c647d3ca3ecaf2d720837ba0cec9cc2aa2546e
[ "MIT" ]
2
2020-12-19T08:02:03.000Z
2021-10-30T16:01:02.000Z
""" Handle download of NWP data from remote servers. """ import logging from concurrent.futures import ThreadPoolExecutor from pathlib import Path from typing import Dict, List import requests from gribmagic.unity.configuration.constants import ( KEY_COMPRESSION, KEY_LOCAL_FILE_PATHS, KEY_REMOTE_FILE_PATH...
27.459627
97
0.680615
0
0
0
0
0
0
0
0
1,037
0.234562
c696cbe9a74a6a3f3db61104f5e94acb0ded96e3
2,195
py
Python
tests/main.py
Antojitos/guacamole
50b4da41a45b2b4dd4f63f6c6cc68bfcf8563152
[ "MIT" ]
3
2015-10-30T13:09:13.000Z
2021-02-17T19:12:37.000Z
tests/main.py
amessinger/guacamole
50b4da41a45b2b4dd4f63f6c6cc68bfcf8563152
[ "MIT" ]
5
2015-10-30T12:53:05.000Z
2015-12-14T15:20:04.000Z
tests/main.py
Antojitos/guacamole
50b4da41a45b2b4dd4f63f6c6cc68bfcf8563152
[ "MIT" ]
1
2015-10-28T08:44:48.000Z
2015-10-28T08:44:48.000Z
import sys import os import shutil import filecmp import json import unittest # Path hack. http://stackoverflow.com/questions/6323860/sibling-package-imports sys.path.insert(0, os.path.abspath('../guacamole')) import guacamole class GuacamoleTestCase(unittest.TestCase): def setUp(self): guacamole.app.con...
32.279412
89
0.626424
1,918
0.873804
0
0
0
0
0
0
388
0.176765
c696f39c84a65ece0fb68103ccf754b71fcc536c
1,249
py
Python
scripts/devicereload/reload_cisco_device.py
chrisbalmer/netauto-helper-scripts
1855085f899fa1cfbf86d6515330e0a2b002ec6a
[ "MIT" ]
null
null
null
scripts/devicereload/reload_cisco_device.py
chrisbalmer/netauto-helper-scripts
1855085f899fa1cfbf86d6515330e0a2b002ec6a
[ "MIT" ]
null
null
null
scripts/devicereload/reload_cisco_device.py
chrisbalmer/netauto-helper-scripts
1855085f899fa1cfbf86d6515330e0a2b002ec6a
[ "MIT" ]
null
null
null
# coding: utf-8 import sys import yaml import paramiko import base64 import time import keychain import re import console def connect_to_device(ssh): print "\n\nConnecting to device..." keys = ssh.get_host_keys() keys.add(hostname,'ssh-rsa',public_key) password = keychain.get_password(hostname, ...
22.303571
70
0.72458
0
0
0
0
0
0
0
0
276
0.220977
c697934e43005813bbf25f5936b378004c77b6ac
324
py
Python
settings.py
musahibrahimali/flasket-api
d212cb84817dee90e9a53015b2811468a4db75ff
[ "MIT" ]
7
2018-02-23T17:41:04.000Z
2022-03-09T12:20:56.000Z
settings.py
musahibrahimali/flasket-api
d212cb84817dee90e9a53015b2811468a4db75ff
[ "MIT" ]
null
null
null
settings.py
musahibrahimali/flasket-api
d212cb84817dee90e9a53015b2811468a4db75ff
[ "MIT" ]
1
2021-06-02T17:23:45.000Z
2021-06-02T17:23:45.000Z
# Flask settings FLASK_DEBUG = True # Do not use debug mode in production # SQLAlchemy settings SQLALCHEMY_DATABASE_URI = 'sqlite:///db.sqlite' SQLALCHEMY_TRACK_MODIFICATIONS = True # Flask-Restplus settings SWAGGER_UI_DOC_EXPANSION = 'list' RESTPLUS_VALIDATE = True RESTPLUS_MASK_SWAGGER = False ERROR_404_HELP = Fa...
23.142857
57
0.805556
0
0
0
0
0
0
0
0
126
0.388889
c69cba0e213110d86560b0464617fbc29e061f5e
1,409
py
Python
parkings/management/commands/create_init_user.py
PICTEC/pgs
c5e8fd78d411937ce60e733316d4d425410153bc
[ "MIT" ]
1
2021-03-26T05:49:08.000Z
2021-03-26T05:49:08.000Z
parkings/management/commands/create_init_user.py
PICTEC/PGS
813721b3bdbaf173d68cb81b3dc0886e542b9a4e
[ "MIT" ]
null
null
null
parkings/management/commands/create_init_user.py
PICTEC/PGS
813721b3bdbaf173d68cb81b3dc0886e542b9a4e
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Create superuser and monitoring group """ from django.core.management.base import BaseCommand from django.contrib.auth.models import Group from django.contrib.auth.models import Permission from django.contrib.auth.models import User from parkings.models import Monitor from parkings.models imp...
35.225
111
0.698368
929
0.659333
0
0
0
0
0
0
326
0.23137
c69d613e92541912c5d1aa1169340677fbcf4a96
5,437
py
Python
mlops/parallelm/mlops/ml_metrics_stat/ml_stat_object_creator.py
mlpiper/mlpiper
0fd2b6773f970c831038db47bf4920ada21a5f51
[ "Apache-2.0" ]
7
2019-04-08T02:31:55.000Z
2021-11-15T14:40:49.000Z
mlops/parallelm/mlops/ml_metrics_stat/ml_stat_object_creator.py
mlpiper/mlpiper
0fd2b6773f970c831038db47bf4920ada21a5f51
[ "Apache-2.0" ]
31
2019-02-22T22:23:26.000Z
2021-08-02T17:17:06.000Z
mlops/parallelm/mlops/ml_metrics_stat/ml_stat_object_creator.py
mlpiper/mlpiper
0fd2b6773f970c831038db47bf4920ada21a5f51
[ "Apache-2.0" ]
8
2019-03-15T23:46:08.000Z
2020-02-06T09:16:02.000Z
import numpy as np from parallelm.mlops.mlops_exception import MLOpsStatisticsException from parallelm.mlops.stats.graph import Graph from parallelm.mlops.stats.multi_line_graph import MultiLineGraph from parallelm.mlops.stats.single_value import SingleValue from parallelm.mlops.stats.table import Table from parallelm...
41.823077
161
0.609343
5,072
0.932867
0
0
5,015
0.922384
0
0
1,916
0.3524
c69e524f9b42fcb4896f83fcc4785aff222562d4
303
py
Python
terrascript/data/davidji99/split.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/data/davidji99/split.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/data/davidji99/split.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/data/davidji99/split.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:27:33 UTC) import terrascript class split_traffic_type(terrascript.Data): pass class split_workspace(terrascript.Data): pass __all__ = [ "split_traffic_type", "split_workspace", ]
16.833333
73
0.745875
101
0.333333
0
0
0
0
0
0
147
0.485149
c69f9f22e1976429e68cc587ef9c41a2baa5fb93
85
py
Python
nginx/apps.py
rockychen-dpaw/it-assets
92ec23c6a413c5c45bb3d96981d6af68535d225c
[ "Apache-2.0" ]
4
2018-11-16T13:49:49.000Z
2021-08-19T05:16:50.000Z
nginx/apps.py
rockychen-dpaw/it-assets
92ec23c6a413c5c45bb3d96981d6af68535d225c
[ "Apache-2.0" ]
10
2018-07-06T09:34:56.000Z
2022-01-28T06:09:05.000Z
nginx/apps.py
rockychen-dpaw/it-assets
92ec23c6a413c5c45bb3d96981d6af68535d225c
[ "Apache-2.0" ]
9
2018-05-05T23:29:10.000Z
2020-06-26T02:29:17.000Z
from django.apps import AppConfig class NginxConfig(AppConfig): name = 'nginx'
14.166667
33
0.741176
48
0.564706
0
0
0
0
0
0
7
0.082353
c69faa343bb44ce7636a902fb8fc9cfe5f9f2c0d
3,511
py
Python
tools/telemetry/telemetry/unittest/output_formatter.py
aranajhonny/chromium
caf5bcb822f79b8997720e589334266551a50a13
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2019-01-16T03:57:39.000Z
2019-01-16T03:57:39.000Z
tools/telemetry/telemetry/unittest/output_formatter.py
aranajhonny/chromium
caf5bcb822f79b8997720e589334266551a50a13
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2018-02-10T21:00:08.000Z
2018-03-20T05:09:50.000Z
tools/telemetry/telemetry/unittest/output_formatter.py
aranajhonny/chromium
caf5bcb822f79b8997720e589334266551a50a13
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import unittest from telemetry.core import util from telemetry.unittest import options_for_unittests class OutputFormatter(object): def __init__(self, o...
26.801527
80
0.727428
3,234
0.921105
0
0
81
0.02307
0
0
291
0.082882
c69fe4b03acf538832512321d83a32c7f8cc326f
480
py
Python
awsflow/lambdas/demo.py
algorithmia-algorithms/awsflow
927698c27e57377dbe8094c71d5b0c36548b0937
[ "MIT" ]
12
2019-04-06T14:59:29.000Z
2020-04-14T21:02:23.000Z
awsflow/lambdas/demo.py
vaquarkhan/awsflow
59f9001972aec2bac60a97d174b97f96689360ce
[ "MIT" ]
null
null
null
awsflow/lambdas/demo.py
vaquarkhan/awsflow
59f9001972aec2bac60a97d174b97f96689360ce
[ "MIT" ]
3
2019-07-30T17:11:14.000Z
2020-02-17T20:39:25.000Z
from awsflow.tools.emr import logging from awsflow.version import __version__ def hello_world(event, context): """ Test function, does nothing :param event: AWS lambdas function event :param context: AWS lambdas function context :return: """ message = 'event={} context={}'.format(event, c...
25.263158
62
0.666667
0
0
0
0
0
0
0
0
228
0.475
c6a0b2e6f13cc83e001ace2dc43eeb51890ba31f
1,074
py
Python
weather/tools.py
yulinliu101/DeepTP
bc4f9adad6dda6c32e58026dda7863e0cb2a6072
[ "MIT" ]
46
2018-09-23T02:08:02.000Z
2022-03-19T15:56:15.000Z
weather/tools.py
yulinliu101/DeepTP
bc4f9adad6dda6c32e58026dda7863e0cb2a6072
[ "MIT" ]
6
2018-12-02T09:04:56.000Z
2021-09-30T12:14:53.000Z
weather/tools.py
yulinliu101/DeepTP
bc4f9adad6dda6c32e58026dda7863e0cb2a6072
[ "MIT" ]
27
2018-11-19T18:17:07.000Z
2021-08-28T17:07:11.000Z
''' Module's author : Jarry Gabriel Date : June, July 2016 Some Algorithms was made by : Malivai Luce, Helene Piquet This module handle different tools ''' from pyproj import Proj, Geod import numpy as np # Projections wgs84=Proj("+init=EPSG:4326") epsg3857=Proj("+init=EPSG:3857") g=Geod(ellps='WGS84') ...
25.571429
58
0.57635
0
0
0
0
0
0
0
0
714
0.664804
c6a0ccd39f3cb516016d54f1a50913914e43bf5d
1,315
py
Python
src/database/report.py
moevm/nosql1h19-report-stats
ab1dc80858df2d8b44489dc7ca900371b1fcc80f
[ "MIT" ]
null
null
null
src/database/report.py
moevm/nosql1h19-report-stats
ab1dc80858df2d8b44489dc7ca900371b1fcc80f
[ "MIT" ]
null
null
null
src/database/report.py
moevm/nosql1h19-report-stats
ab1dc80858df2d8b44489dc7ca900371b1fcc80f
[ "MIT" ]
null
null
null
from docx import Document class Report: def __init__(self, docx_text, meta, text_processor): self.document = Document(docx_text) self.date = self.document.core_properties.modified self.title = meta['title'] self.author = meta['author'] self.group = int(meta['group']...
32.073171
75
0.579468
1,325
0.979305
0
0
0
0
0
0
260
0.192166
c6a371ecbe5a163fba368a97852b226ecc2b76c6
19,724
py
Python
transmission/PFM_v24.py
zarppy/MUREIL_2014
25ba16554ce8f614b9337e0fffce75da3fa259a4
[ "MIT" ]
null
null
null
transmission/PFM_v24.py
zarppy/MUREIL_2014
25ba16554ce8f614b9337e0fffce75da3fa259a4
[ "MIT" ]
null
null
null
transmission/PFM_v24.py
zarppy/MUREIL_2014
25ba16554ce8f614b9337e0fffce75da3fa259a4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # # Copyright (C) University of Melbourne 2012 # # # #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 us...
45.657407
97
0.523575
18,506
0.938248
0
0
0
0
0
0
7,545
0.382529
c6a5691106c675b51a0898624e8d7f4af7a6316d
11,893
py
Python
ecl/tests/unit/compute/v2/test_server.py
keiichi-hikita/eclsdk
c43afb982fd54eb1875cdc22d46044644d804c4a
[ "Apache-2.0" ]
5
2017-04-07T06:23:04.000Z
2019-11-19T00:52:34.000Z
ecl/tests/unit/compute/v2/test_server.py
keiichi-hikita/eclsdk
c43afb982fd54eb1875cdc22d46044644d804c4a
[ "Apache-2.0" ]
16
2018-09-12T11:14:40.000Z
2021-04-19T09:02:44.000Z
ecl/tests/unit/compute/v2/test_server.py
keiichi-hikita/eclsdk
c43afb982fd54eb1875cdc22d46044644d804c4a
[ "Apache-2.0" ]
14
2017-05-11T14:26:26.000Z
2021-07-14T14:00:06.000Z
# 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, software # distributed under t...
38.739414
79
0.600858
10,184
0.856302
0
0
0
0
0
0
3,285
0.276213
c6a5791901b1fc6361134fdaba0ad7eda0768c85
1,577
py
Python
packages/diana/diana/connect/utils/orth_fiq.py
derekmerck/diana-star
78aa7badb27677a1f5c83d744852f659e2541567
[ "MIT" ]
null
null
null
packages/diana/diana/connect/utils/orth_fiq.py
derekmerck/diana-star
78aa7badb27677a1f5c83d744852f659e2541567
[ "MIT" ]
null
null
null
packages/diana/diana/connect/utils/orth_fiq.py
derekmerck/diana-star
78aa7badb27677a1f5c83d744852f659e2541567
[ "MIT" ]
null
null
null
# import logging # from pprint import pformat from diana.utils.dicom import DicomLevel def find_item_query(item): """ Have some information about the dixel, want to find the STUID, SERUID, INSTUID Returns a _list_ of dictionaries with matches, retrieves any if "retrieve" flag """ q = {} keys ...
30.326923
83
0.521877
0
0
0
0
0
0
0
0
642
0.407102
c6a59cf0b7d0aebf7e2f62e142e7553ec2e18c60
32,332
py
Python
IRIS_data_download/IRIS_download_support/obspy/io/ascii/tests/test_ascii.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
2
2020-03-05T01:03:01.000Z
2020-12-17T05:04:07.000Z
IRIS_data_download/IRIS_download_support/obspy/io/ascii/tests/test_ascii.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
4
2021-03-31T19:25:55.000Z
2021-12-13T20:32:46.000Z
IRIS_data_download/IRIS_download_support/obspy/io/ascii/tests/test_ascii.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
2
2020-09-08T19:33:40.000Z
2021-04-05T09:47:50.000Z
# -*- coding: utf-8 -*- from __future__ import (absolute_import, division, print_function, unicode_literals) from future.builtins import * # NOQA @UnusedWildImport import os import unittest import numpy as np from obspy import Trace, UTCDateTime, read from obspy.io.ascii.core import (_determ...
45.346424
79
0.578034
31,670
0.979525
0
0
0
0
0
0
6,566
0.203081
c6ac1de06c12088cfd7b5e0c3570e7c36efacf0e
68
py
Python
libMap/__init__.py
ChrisSJard/PythonGUI-WinApplication1
54f658e7d345a63d09bff683a635d01d57856e6e
[ "Apache-2.0" ]
null
null
null
libMap/__init__.py
ChrisSJard/PythonGUI-WinApplication1
54f658e7d345a63d09bff683a635d01d57856e6e
[ "Apache-2.0" ]
null
null
null
libMap/__init__.py
ChrisSJard/PythonGUI-WinApplication1
54f658e7d345a63d09bff683a635d01d57856e6e
[ "Apache-2.0" ]
null
null
null
''' MAP v-SCREEN gargle test - Shimadzu 8020 H Date: 30/11/2020 '''
17
43
0.661765
0
0
0
0
0
0
0
0
68
1
c6ac4f68c9c3e35b48eadd2793c372b95b8f9ebd
1,793
py
Python
zinnia/converters.py
emencia/django-blog-xinnia
ab19b55477ce7003b6f0712f8bd12af3501c4829
[ "BSD-3-Clause" ]
null
null
null
zinnia/converters.py
emencia/django-blog-xinnia
ab19b55477ce7003b6f0712f8bd12af3501c4829
[ "BSD-3-Clause" ]
null
null
null
zinnia/converters.py
emencia/django-blog-xinnia
ab19b55477ce7003b6f0712f8bd12af3501c4829
[ "BSD-3-Clause" ]
1
2021-06-17T14:02:21.000Z
2021-06-17T14:02:21.000Z
"""URL converters for the Zinnia project""" class FourDigitYearConverter: """ Pattern converter for a Year on four digits exactly """ regex = '[0-9]{4}' def to_python(self, value): return int(value) def to_url(self, value): # Enforce integer since some code may try to pass a nu...
20.146067
78
0.611824
1,730
0.964863
0
0
0
0
0
0
768
0.428332
c6acd732e85ef3e6872505baf917d917ef7c0ec1
8,045
py
Python
nisse/routes/slack/command_handlers/report_command_handler.py
nexocodecom/nisse.io
58a64072bc8dad87fbb1f54dabc93fd2d4cff6eb
[ "MIT" ]
null
null
null
nisse/routes/slack/command_handlers/report_command_handler.py
nexocodecom/nisse.io
58a64072bc8dad87fbb1f54dabc93fd2d4cff6eb
[ "MIT" ]
42
2018-07-20T14:15:48.000Z
2019-09-26T05:44:21.000Z
nisse/routes/slack/command_handlers/report_command_handler.py
nexocodecom/nisse.io
58a64072bc8dad87fbb1f54dabc93fd2d4cff6eb
[ "MIT" ]
null
null
null
import logging import os import uuid from typing import List from flask import current_app from flask.config import Config from flask_injector import inject from slackclient import SlackClient from werkzeug.utils import secure_filename from nisse.models.DTO import PrintParametersDto from nisse.models.slack.common imp...
43.252688
121
0.640895
6,870
0.853947
0
0
492
0.061156
0
0
712
0.088502
c6acd7e0d4951d5c3034a6f821df7b9a82c0e2f9
369
py
Python
days/day01/part1.py
jaredbancroft/aoc2021
4eaf339cc0c8566da2af13f7cb9cf6fe87355aac
[ "MIT" ]
null
null
null
days/day01/part1.py
jaredbancroft/aoc2021
4eaf339cc0c8566da2af13f7cb9cf6fe87355aac
[ "MIT" ]
null
null
null
days/day01/part1.py
jaredbancroft/aoc2021
4eaf339cc0c8566da2af13f7cb9cf6fe87355aac
[ "MIT" ]
null
null
null
from helpers import inputs def solution(day): depths = inputs.read_to_list(f"inputs/{day}.txt") part1_total = 0 for index, depth in enumerate(depths): if index - 1 >= 0: diff = int(depth) - int(depths[index - 1]) if diff > 0: part1_total += 1 return f"Da...
28.384615
63
0.588076
0
0
0
0
0
0
0
0
71
0.192412
c6ad38af41dda6b3a428b74b7d6a179478b67cda
583
py
Python
packages/syft/src/syft/core/node/common/node_table/setup.py
callezenwaka/PySyft
2545c302441cfe727ec095c4f9aa136bff02be32
[ "Apache-1.1" ]
2
2022-02-18T03:48:27.000Z
2022-03-05T06:13:57.000Z
packages/syft/src/syft/core/node/common/node_table/setup.py
callezenwaka/PySyft
2545c302441cfe727ec095c4f9aa136bff02be32
[ "Apache-1.1" ]
3
2021-11-17T15:34:03.000Z
2021-12-08T14:39:10.000Z
packages/syft/src/syft/core/node/common/node_table/setup.py
callezenwaka/PySyft
2545c302441cfe727ec095c4f9aa136bff02be32
[ "Apache-1.1" ]
1
2021-08-19T12:23:01.000Z
2021-08-19T12:23:01.000Z
# third party from sqlalchemy import Column from sqlalchemy import Integer from sqlalchemy import String # relative from . import Base class SetupConfig(Base): __tablename__ = "setup" id = Column(Integer(), primary_key=True, autoincrement=True) domain_name = Column(String(255), default="") node_id =...
25.347826
73
0.716981
296
0.507719
0
0
0
0
0
0
70
0.120069
c6afea6ff7fcfa0cc419b40bc7e78312c3c4768e
1,983
py
Python
third_party/blink/renderer/bindings/scripts/web_idl/make_copy_test.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
third_party/blink/renderer/bindings/scripts/web_idl/make_copy_test.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
113
2015-05-04T09:58:14.000Z
2022-01-31T19:35:03.000Z
third_party/blink/renderer/bindings/scripts/web_idl/make_copy_test.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
# Copyright 2019 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import unittest from .composition_parts import Component from .composition_parts import Identifier from .make_copy import make_copy class MakeCopyTest(uni...
34.189655
73
0.616742
1,684
0.849218
0
0
0
0
0
0
494
0.249117
c6b2844ec8d83bfcefb1163893e3fea8102bf2bc
1,554
py
Python
04 - Classes-inheritance-oops/39-classes-numeric-normal-magic-methods.py
python-demo-codes/basics
2a151bbff4b528cefd52978829c632fd087c8f20
[ "DOC" ]
2
2019-08-23T06:05:55.000Z
2019-08-26T03:56:07.000Z
04 - Classes-inheritance-oops/39-classes-numeric-normal-magic-methods.py
python-lang-codes/basics
2a151bbff4b528cefd52978829c632fd087c8f20
[ "DOC" ]
null
null
null
04 - Classes-inheritance-oops/39-classes-numeric-normal-magic-methods.py
python-lang-codes/basics
2a151bbff4b528cefd52978829c632fd087c8f20
[ "DOC" ]
4
2020-10-01T07:16:07.000Z
2021-07-17T07:55:08.000Z
# HEAD # Classes - Magic Methods - Normal Numeric Magic Methods # DESCRIPTION # Describes the magic methods of classes # add, sub, mul, floordiv, div, truediv, mod, # divmod, pow, lshift, rshift, and, or, xor # RESOURCES # # https://rszalski.github.io/magicmethods/ # Normal arithmetic operators # Now, ...
34.533333
146
0.714286
0
0
0
0
0
0
0
0
1,510
0.971686
c6b2c3233e24382da55f5267e87bb737b994481e
11,384
py
Python
abcdeep/argsutils.py
Conchylicultor/AbcDeep
6fcfc03a1a516ccd760201bb004098e6f6fe0e7e
[ "Apache-2.0" ]
1
2017-09-10T14:13:39.000Z
2017-09-10T14:13:39.000Z
abcdeep/argsutils.py
Conchylicultor/AbcDeep
6fcfc03a1a516ccd760201bb004098e6f6fe0e7e
[ "Apache-2.0" ]
null
null
null
abcdeep/argsutils.py
Conchylicultor/AbcDeep
6fcfc03a1a516ccd760201bb004098e6f6fe0e7e
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Conchylicultor. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
45.903226
236
0.634048
10,073
0.884838
0
0
2,723
0.239195
0
0
6,016
0.528461
c6b65a93ba4bfc063204ecefff708893dd868984
265
py
Python
listas/gabarito/lista4CT/exe-1.py
yujinishioka/computacional-thinking-python
38abfc00d94c45cc5a7d4303e57cb8f0cab4272a
[ "MIT" ]
1
2022-03-08T21:54:49.000Z
2022-03-08T21:54:49.000Z
listas/gabarito/lista4CT/exe-1.py
yujinishioka/computacional-thinking-python
38abfc00d94c45cc5a7d4303e57cb8f0cab4272a
[ "MIT" ]
null
null
null
listas/gabarito/lista4CT/exe-1.py
yujinishioka/computacional-thinking-python
38abfc00d94c45cc5a7d4303e57cb8f0cab4272a
[ "MIT" ]
null
null
null
soma = 0 print("0 para parar") numero = int(input("Digite numero: ")) while numero != 0: if numero %2 == 0: soma += numero if numero == 0: break print("0 para parar") numero = int(input("Digite numero: ")) print("O total é", soma)
18.928571
42
0.562264
0
0
0
0
0
0
0
0
74
0.278195
c6b714242593972ca83e47dd6c36c7d8b16188e4
41,780
py
Python
venv/lib/python3.8/site-packages/spaceone/api/power_scheduler/v1/schedule_rule_pb2.py
choonho/plugin-prometheus-mon-webhook
afa7d65d12715fd0480fb4f92a9c62da2d6128e0
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/spaceone/api/power_scheduler/v1/schedule_rule_pb2.py
choonho/plugin-prometheus-mon-webhook
afa7d65d12715fd0480fb4f92a9c62da2d6128e0
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/spaceone/api/power_scheduler/v1/schedule_rule_pb2.py
choonho/plugin-prometheus-mon-webhook
afa7d65d12715fd0480fb4f92a9c62da2d6128e0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: spaceone/api/power_scheduler/v1/schedule_rule.proto """Generated protocol buffer code.""" from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import ...
50.035928
4,517
0.769196
0
0
0
0
0
0
0
0
12,214
0.292341
c6b71b4c3e09976fe7726eb682b74cdf5af82966
990
py
Python
django_boost/admin/sites.py
toshiki-tosshi/django-boost
2431b743af2d976571d491ae232a5cb03c760b7e
[ "MIT" ]
null
null
null
django_boost/admin/sites.py
toshiki-tosshi/django-boost
2431b743af2d976571d491ae232a5cb03c760b7e
[ "MIT" ]
null
null
null
django_boost/admin/sites.py
toshiki-tosshi/django-boost
2431b743af2d976571d491ae232a5cb03c760b7e
[ "MIT" ]
null
null
null
from django.contrib import admin from django.db.models import Model __all__ = ["register_all"] def register_all(models, admin_class=admin.ModelAdmin): """ Easily register Models to Django admin site. :: from yourapp import models from django_boost.admin.sites import register_all regi...
26.052632
70
0.651515
0
0
0
0
0
0
0
0
511
0.516162
c6b79f701bcc0df19eeeaf217d68d4ce14a63d1a
251
py
Python
bot.py
White-ZacK/HLavalink
917a2a5abf3df2b2fbdff93709b9eb9e47c033aa
[ "MIT" ]
null
null
null
bot.py
White-ZacK/HLavalink
917a2a5abf3df2b2fbdff93709b9eb9e47c033aa
[ "MIT" ]
null
null
null
bot.py
White-ZacK/HLavalink
917a2a5abf3df2b2fbdff93709b9eb9e47c033aa
[ "MIT" ]
null
null
null
import discord import os from discord.ext import commands bot = commands.Bot(command_prefix=">") TOKEN = os.environ.get('TOKEN') @bot.event async def on_ready(): print(f'{bot.user} has logged in.') bot.load_extension('cogs.WVL') bot.run(TOKEN)
17.928571
38
0.7251
0
0
0
0
103
0.410359
92
0.366534
48
0.191235
c6b7b42e398b5ad8a87b392745a1b79c63f44e1e
1,612
py
Python
sdk/ml/azure-ai-ml/tests/batch_services/unittests/test_batch_deployment_schema.py
dubiety/azure-sdk-for-python
62ffa839f5d753594cf0fe63668f454a9d87a346
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/ml/azure-ai-ml/tests/batch_services/unittests/test_batch_deployment_schema.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
sdk/ml/azure-ai-ml/tests/batch_services/unittests/test_batch_deployment_schema.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
from pathlib import Path import pytest import yaml from azure.ai.ml._schema._deployment.batch.batch_deployment import BatchDeploymentSchema from azure.ai.ml.constants import BASE_PATH_CONTEXT_KEY, BatchDeploymentOutputAction from azure.ai.ml.entities._util import load_from_dict from azure.ai.ml.entities import BatchDe...
46.057143
99
0.782258
894
0.554591
0
0
916
0.568238
0
0
195
0.120968
c6b8d428a66aa6d3e2e0df39f78679dd2657686d
105
py
Python
Programs/functions/returnFunction.py
LuciKritZ/python
ed5500f5aad3cb15354ca5ebf71748029fc6ae77
[ "MIT" ]
null
null
null
Programs/functions/returnFunction.py
LuciKritZ/python
ed5500f5aad3cb15354ca5ebf71748029fc6ae77
[ "MIT" ]
null
null
null
Programs/functions/returnFunction.py
LuciKritZ/python
ed5500f5aad3cb15354ca5ebf71748029fc6ae77
[ "MIT" ]
null
null
null
def display(): def message(): return "Hello" return message fun = display() print(fun())
15
22
0.590476
0
0
0
0
0
0
0
0
7
0.066667
c6badd66c9c53436c0cfcf31174d258e7727a76d
795
py
Python
test.py
Roulbac/GanSeg
78f354da5d724b93ead3ac6c2b15ae18d3ac0aea
[ "MIT" ]
20
2019-04-13T07:07:49.000Z
2022-02-23T03:10:40.000Z
test.py
Roulbac/GanSeg
78f354da5d724b93ead3ac6c2b15ae18d3ac0aea
[ "MIT" ]
null
null
null
test.py
Roulbac/GanSeg
78f354da5d724b93ead3ac6c2b15ae18d3ac0aea
[ "MIT" ]
4
2019-04-13T13:50:39.000Z
2020-11-08T03:50:54.000Z
from options.test_parser import TestParser from models import create_model, get_model_parsing_modifier from datasets import create_dataset, get_dataset_parsing_modifier parser = TestParser() model_name = parser.get_model_name() dataset_name = parser.get_dataset_name() print('Model name: {}'.format(model_name)) print(...
27.413793
68
0.820126
0
0
0
0
0
0
0
0
34
0.042767
c6bbabf1d22c4d30fab6e968dbe23f93d2189af5
67
py
Python
codes/course1/demo3_3.py
BigShuang/big-shuang-python-introductory-course
c4fd1343c4c539567180072c749b68bda7c28075
[ "MIT" ]
null
null
null
codes/course1/demo3_3.py
BigShuang/big-shuang-python-introductory-course
c4fd1343c4c539567180072c749b68bda7c28075
[ "MIT" ]
null
null
null
codes/course1/demo3_3.py
BigShuang/big-shuang-python-introductory-course
c4fd1343c4c539567180072c749b68bda7c28075
[ "MIT" ]
null
null
null
for i in range(11): v = 2 ** i print("2^%s = %s" % (i, v))
16.75
31
0.38806
0
0
0
0
0
0
0
0
11
0.164179
c6bbf866443aff7a6fcd220b4ae5ee2ac61f6a5c
353
py
Python
2018-12-31.py
shangpf1/python_study
6730519ce7b5cf4612e1c778ae5876cfbb748a4f
[ "MIT" ]
null
null
null
2018-12-31.py
shangpf1/python_study
6730519ce7b5cf4612e1c778ae5876cfbb748a4f
[ "MIT" ]
null
null
null
2018-12-31.py
shangpf1/python_study
6730519ce7b5cf4612e1c778ae5876cfbb748a4f
[ "MIT" ]
null
null
null
# 浏览器最大化窗口、截屏 from selenium import webdriver from os import path driver = webdriver.Chrome() d = path.dirname('__file__') index = path.join(d,'index.png') driver.get("https://www.baidu.com/") # 最大化窗口 driver.maximize_window() # 截屏 driver.save_screenshot(index) # 后退操作 driver.back() # 前进操作 driver.forward() # 刷新操...
12.172414
36
0.716714
0
0
0
0
0
0
0
0
147
0.355932
c6bcdd4e1b6e9560584746d256ad5769eed1114e
4,016
py
Python
flask_webapi/exceptions.py
viniciuschiele/flask-webapi
4901c0b78fc61b8db18c211c5858b84901d0f4ab
[ "MIT" ]
null
null
null
flask_webapi/exceptions.py
viniciuschiele/flask-webapi
4901c0b78fc61b8db18c211c5858b84901d0f4ab
[ "MIT" ]
null
null
null
flask_webapi/exceptions.py
viniciuschiele/flask-webapi
4901c0b78fc61b8db18c211c5858b84901d0f4ab
[ "MIT" ]
null
null
null
""" Handles exceptions raised by Flask WebAPI. """ from . import status class APIException(Exception): """ Base class for Flask WebAPI exceptions. Subclasses should provide `.status_code` and `.default_message` properties. :param str message: The actual message. :param kwargs: The extra attribute...
30.656489
108
0.586404
3,934
0.979582
0
0
0
0
0
0
765
0.190488
c6bec2b7b19f2adc7fd34bc6ce05b27edb1743ba
5,133
py
Python
plugins/module_utils/fortiwebcloud/request.py
fortinet/fortiwebcloud-ansible
4a6a2b139b88d6428494ca87d570a0a09988b15d
[ "MIT" ]
5
2021-01-09T23:09:22.000Z
2022-01-22T12:34:25.000Z
plugins/module_utils/fortiwebcloud/request.py
fortinet/fortiwebcloud-ansible
4a6a2b139b88d6428494ca87d570a0a09988b15d
[ "MIT" ]
2
2021-01-19T03:46:53.000Z
2021-06-28T15:19:24.000Z
plugins/module_utils/fortiwebcloud/request.py
fortinet/fortiwebcloud-ansible
4a6a2b139b88d6428494ca87d570a0a09988b15d
[ "MIT" ]
2
2021-09-17T11:13:31.000Z
2021-11-30T10:53:49.000Z
#!/usr/bin/python # This code is part of Ansible, but is an independent component. # This particular file snippet, and this file snippet only, is BSD licensed. # Modules you write using this snippet, which is embedded dynamically by Ansible # still belong to the author of the module, and may assign their own license #...
36.664286
116
0.643678
3,064
0.596922
0
0
111
0.021625
0
0
2,150
0.418858
c6bf070a0e1401995e4a06960552d64f43d04d96
497
py
Python
tests/test_account.py
thangduong/lendingclub2
b16552807b69b81804369fd1a9058fa8f89ce1ef
[ "MIT" ]
null
null
null
tests/test_account.py
thangduong/lendingclub2
b16552807b69b81804369fd1a9058fa8f89ce1ef
[ "MIT" ]
null
null
null
tests/test_account.py
thangduong/lendingclub2
b16552807b69b81804369fd1a9058fa8f89ce1ef
[ "MIT" ]
null
null
null
# Filename: test_account.py """ Test the lendingclub2.accountmodule """ # PyTest import pytest # lendingclub2 from lendingclub2.account import InvestorAccount from lendingclub2.error import LCError class TestInvestorAccount: def test_properties(self): try: investor = InvestorAccount() ...
20.708333
62
0.702213
293
0.589537
0
0
0
0
0
0
129
0.259557
c6c065b4b597b12187960a9bbab5ef9b81fb5b2a
3,318
py
Python
src/webserver.py
sadjadeb/qrCode_ticket
36e5762e6fcb77315385922bb4568f2e0b67888c
[ "MIT" ]
10
2021-12-25T16:58:45.000Z
2022-03-21T02:25:10.000Z
src/webserver.py
sadjadeb/qrCode_ticket
36e5762e6fcb77315385922bb4568f2e0b67888c
[ "MIT" ]
2
2021-12-31T10:48:57.000Z
2022-01-01T12:05:02.000Z
src/webserver.py
sadjadeb/qrCode_ticket
36e5762e6fcb77315385922bb4568f2e0b67888c
[ "MIT" ]
null
null
null
from config import * from excel_handler import get_users_from_excel from fastapi import FastAPI, HTTPException, status, Request from fastapi.middleware.cors import CORSMiddleware from fastapi.responses import HTMLResponse from fastapi.staticfiles import StaticFiles from fastapi.templating import Jinja2Templates from ty...
34.926316
98
0.61965
0
0
0
0
2,058
0.620253
1,799
0.542194
448
0.135021
c6c0d208582ba1aed39ac80bef8ef9d7e28b0eae
337
py
Python
main/test/test.py
gitter-badger/grow-controller-Rpi
0107251af85a4dc23b61b8be66fe49d597fd776b
[ "Unlicense" ]
3
2017-03-21T22:35:01.000Z
2021-08-19T03:16:39.000Z
main/test/test.py
gitter-badger/grow-controller-Rpi
0107251af85a4dc23b61b8be66fe49d597fd776b
[ "Unlicense" ]
null
null
null
main/test/test.py
gitter-badger/grow-controller-Rpi
0107251af85a4dc23b61b8be66fe49d597fd776b
[ "Unlicense" ]
null
null
null
###PiPlate buttons print('sudo crontab /home/pi/grow-controller-Rpi/main/ref/crontab.cron') ''' while True: time.sleep(0.5) # without this time.sleep, 23% cpu usage. with 3% if lcd.is_pressed(LCD.UP): GPIO.output(pin1, GPIO.LOW) # on if lcd.is_pressed(LCD.DOWN): GPIO.output(pin1, GPIO...
22.466667
72
0.64095
0
0
0
0
0
0
0
0
323
0.958457
c6c2c18414f129c6c748df8b453b0adccb5dbf36
2,010
py
Python
generate.py
xphip/feather
18a9c88bdb545e4f33a35e0e771b07d8c5c8c56e
[ "MIT" ]
null
null
null
generate.py
xphip/feather
18a9c88bdb545e4f33a35e0e771b07d8c5c8c56e
[ "MIT" ]
null
null
null
generate.py
xphip/feather
18a9c88bdb545e4f33a35e0e771b07d8c5c8c56e
[ "MIT" ]
null
null
null
#!/usr/bin/python # import os import subprocess import sys def CSSMaker(): output = 'css/icons_list.css' css = '' for icon in os.listdir('./icons'): [name, ext] = icon.split('.') css += 'i[data-feather="{}"]:after {{ background-image: url(../icons/{}); }}\n'.format(name, icon); f = open(output, 'w+') f.wri...
21.612903
101
0.593035
0
0
0
0
0
0
0
0
1,079
0.536816
c6c3cf7f18578ef4fee0cf3ceb347dcb151e1993
3,827
py
Python
Lib/corpuscrawler/crawl_pl.py
cash/corpuscrawler
8913fe1fb2b6bfdfbf2ba01d2ce88057b3b5ba3d
[ "Apache-2.0" ]
95
2019-06-13T23:34:21.000Z
2022-03-12T05:22:49.000Z
Lib/corpuscrawler/crawl_pl.py
sahwar/corpuscrawler
8913fe1fb2b6bfdfbf2ba01d2ce88057b3b5ba3d
[ "Apache-2.0" ]
31
2019-06-02T18:56:53.000Z
2021-08-10T20:16:02.000Z
Lib/corpuscrawler/crawl_pl.py
sahwar/corpuscrawler
8913fe1fb2b6bfdfbf2ba01d2ce88057b3b5ba3d
[ "Apache-2.0" ]
35
2019-06-18T08:26:24.000Z
2022-01-11T13:59:40.000Z
# 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 required by ap...
40.284211
92
0.629736
0
0
0
0
0
0
0
0
1,303
0.340298
c6c507d5077fa7072a210afdf6ced8586dc0a30d
2,775
py
Python
typewise_alert.py
clean-code-craft-tcq-1/add-variety-python-AkshayUHegde
924beb7195d960d3fe06460da9df1a42c5d5693f
[ "MIT" ]
null
null
null
typewise_alert.py
clean-code-craft-tcq-1/add-variety-python-AkshayUHegde
924beb7195d960d3fe06460da9df1a42c5d5693f
[ "MIT" ]
null
null
null
typewise_alert.py
clean-code-craft-tcq-1/add-variety-python-AkshayUHegde
924beb7195d960d3fe06460da9df1a42c5d5693f
[ "MIT" ]
null
null
null
class TypewiseAlert: def __init__(self, limits_for_types=None, alert_target_funcs=None): self.default_limits_for_cooling_types = { "PASSIVE_COOLING": (0, 35), "MED_ACTIVE_COOLING": (0, 40), "HI_ACTIVE_COOLING": (0, 45), } self.default_alert_funcs = { ...
45.491803
101
0.627027
2,773
0.999279
0
0
0
0
0
0
737
0.265586
c6c6489454579f788af2d644a9acb3a3264844fe
1,245
py
Python
froide/publicbody/search_indexes.py
rufuspollock/froide
8ef4dbdd54a74f8c986d59e90348dfdbd85c5da4
[ "MIT" ]
null
null
null
froide/publicbody/search_indexes.py
rufuspollock/froide
8ef4dbdd54a74f8c986d59e90348dfdbd85c5da4
[ "MIT" ]
null
null
null
froide/publicbody/search_indexes.py
rufuspollock/froide
8ef4dbdd54a74f8c986d59e90348dfdbd85c5da4
[ "MIT" ]
null
null
null
from django.conf import settings from haystack import indexes from celery_haystack.indexes import CelerySearchIndex from .models import PublicBody PUBLIC_BODY_BOOSTS = settings.FROIDE_CONFIG.get("public_body_boosts", {}) class PublicBodyIndex(CelerySearchIndex, indexes.Indexable): text = indexes.EdgeNgramField...
37.727273
81
0.727711
1,018
0.817671
0
0
0
0
0
0
184
0.147791
c6c9aa4e57c89e6f69fa55d265d499cc88ae995f
1,519
py
Python
4_factory/factory_method/dependent_pizza_store.py
hypersport/Head-First-Design-Patterns-Python
0c8b831ae89ebbbef8b203b96508deb7e3063590
[ "MIT" ]
null
null
null
4_factory/factory_method/dependent_pizza_store.py
hypersport/Head-First-Design-Patterns-Python
0c8b831ae89ebbbef8b203b96508deb7e3063590
[ "MIT" ]
null
null
null
4_factory/factory_method/dependent_pizza_store.py
hypersport/Head-First-Design-Patterns-Python
0c8b831ae89ebbbef8b203b96508deb7e3063590
[ "MIT" ]
null
null
null
from chicago_style_clam_pizza import ChicagoStyleClamPizza from chicago_style_cheese_pizza import ChicagoStyleCheesePizza from chicago_style_pepperoni_pizza import ChicagoStylePepperoniPizza from chicago_style_veggie_pizza import ChicagoStyleVeggiePizza from ny_style_clam_pizza import NYStyleClamPizza from ny_style_che...
35.325581
68
0.631336
1,048
0.689928
0
0
0
0
0
0
109
0.071758
c6cac8b3c9901ec09333ce8b40056a0c6f21d27c
459
py
Python
tests/performance/cte-arm/tests/rf_mnist.py
alexbarcelo/dislib
989f81f235ae30b17410a8d805df258c7d931b38
[ "Apache-2.0" ]
36
2018-10-22T19:21:14.000Z
2022-03-22T12:10:01.000Z
tests/performance/cte-arm/tests/rf_mnist.py
alexbarcelo/dislib
989f81f235ae30b17410a8d805df258c7d931b38
[ "Apache-2.0" ]
329
2018-11-22T18:04:57.000Z
2022-03-18T01:26:55.000Z
tests/performance/cte-arm/tests/rf_mnist.py
alexbarcelo/dislib
989f81f235ae30b17410a8d805df258c7d931b38
[ "Apache-2.0" ]
21
2019-01-10T11:46:39.000Z
2022-03-17T12:59:45.000Z
import performance import dislib as ds from dislib.classification import RandomForestClassifier def main(): x_mn, y_mn = ds.load_svmlight_file( "/fefs/scratch/bsc19/bsc19029/PERFORMANCE/datasets/train.scaled", block_size=(5000, 780), n_features=780, store_sparse=False) rf = RandomForestClas...
24.157895
73
0.723312
0
0
0
0
0
0
0
0
85
0.185185
c6cc6e291c2d423fccb4a28cc69ba02ced719b37
186
py
Python
Python_Files/murach/solutions/ch14/movies/objects.py
Interloper2448/BCGPortfolio
c4c160a835c64c8d099d44c0995197f806ccc824
[ "MIT" ]
null
null
null
Python_Files/murach/solutions/ch14/movies/objects.py
Interloper2448/BCGPortfolio
c4c160a835c64c8d099d44c0995197f806ccc824
[ "MIT" ]
null
null
null
Python_Files/murach/solutions/ch14/movies/objects.py
Interloper2448/BCGPortfolio
c4c160a835c64c8d099d44c0995197f806ccc824
[ "MIT" ]
null
null
null
class Movie: def __init__(self, name="", year=1901): self.name = name self.year = year def getStr(self): return self.name + " (" + str(self.year) + ")"
23.25
55
0.532258
185
0.994624
0
0
0
0
0
0
9
0.048387
c6d0b39109db93442e531726d432358337458672
2,275
py
Python
pwn/shellcode/misc/exit.py
Haabb/pwnfork
c2530ea2fd2f9d4e65df234afeb8f7def93afe49
[ "MIT" ]
1
2016-08-29T03:38:42.000Z
2016-08-29T03:38:42.000Z
pwn/shellcode/misc/exit.py
Haabb/pwnfork
c2530ea2fd2f9d4e65df234afeb8f7def93afe49
[ "MIT" ]
null
null
null
pwn/shellcode/misc/exit.py
Haabb/pwnfork
c2530ea2fd2f9d4e65df234afeb8f7def93afe49
[ "MIT" ]
null
null
null
from pwn.internal.shellcode_helper import * from ..misc.pushstr import pushstr @shellcode_reqs(arch=['i386', 'amd64'], os=['linux', 'freebsd']) def exit(returncode = None, arch = None, os = None): """Exits. Default return code, None, means "I don't care".""" returncode = arg_fixup(returncode) if arch == ...
29.545455
78
0.465934
0
0
0
0
524
0.23033
0
0
845
0.371429
c6d1c365ef9f848b0908e928e06218bc28eb4a5c
1,037
py
Python
backend/bundle/tests/seeker_tests/samples/indentation.py
fossabot/Graphery
61f23b2ad4ad0fa5dff643047597f9bb6cae35a2
[ "MIT" ]
5
2020-08-26T00:15:01.000Z
2021-01-11T17:24:51.000Z
backend/bundle/tests/seeker_tests/samples/indentation.py
fossabot/Graphery
61f23b2ad4ad0fa5dff643047597f9bb6cae35a2
[ "MIT" ]
69
2020-08-02T23:45:44.000Z
2021-04-17T03:04:32.000Z
backend/bundle/tests/seeker_tests/samples/indentation.py
fossabot/Graphery
61f23b2ad4ad0fa5dff643047597f9bb6cae35a2
[ "MIT" ]
4
2020-09-10T05:40:49.000Z
2020-12-20T11:44:16.000Z
from bundle import seeker @seeker.tracer(depth=2, only_watch=False) def main(): f2() def f2(): f3() def f3(): f4() @seeker.tracer(depth=2, only_watch=False) def f4(): f5() def f5(): pass expected_output = ''' Source path:... Whatever call 5 def main(): ...
21.604167
52
0.387657
0
0
0
0
122
0.117647
0
0
799
0.770492
c6d2c43f2fbd2525762b6b965846526e85874c64
1,451
py
Python
qiskit_experiments/framework/matplotlib.py
QuantumHardware/qiskit-experiments
c09cf35bb922419354955abe8d536a97a9ea286b
[ "Apache-2.0" ]
72
2021-02-24T19:28:51.000Z
2022-03-27T02:56:59.000Z
qiskit_experiments/framework/matplotlib.py
dongcc/qiskit-experiments
894dcf41ac69ace9e6a0a3c4800d4b6994ac3b5a
[ "Apache-2.0" ]
509
2021-03-04T13:46:00.000Z
2022-03-31T18:09:16.000Z
qiskit_experiments/framework/matplotlib.py
dongcc/qiskit-experiments
894dcf41ac69ace9e6a0a3c4800d4b6994ac3b5a
[ "Apache-2.0" ]
70
2021-02-24T19:21:39.000Z
2022-03-05T04:00:12.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
36.275
89
0.751206
0
0
0
0
0
0
0
0
1,179
0.812543
c6d4b9bc3a7c3d3b66374d69e6147ebd024b69ea
14,117
py
Python
effect_tools.py
rsjones94/hurricane_analysis
b619526dcf40ea83e9ae3ba92f3a1d28fce25776
[ "MIT" ]
null
null
null
effect_tools.py
rsjones94/hurricane_analysis
b619526dcf40ea83e9ae3ba92f3a1d28fce25776
[ "MIT" ]
null
null
null
effect_tools.py
rsjones94/hurricane_analysis
b619526dcf40ea83e9ae3ba92f3a1d28fce25776
[ "MIT" ]
null
null
null
import os import shutil import numpy as np import pandas as pd import matplotlib.pyplot as plt from read import clean_read from detrend import * def get_effect(data, param, mean, stddev, start_index, lag=3, effect_type=1, returning_gap=0, dropthrough=(0, 0), forcing=(None, None), max_e...
32.602771
120
0.551463
0
0
0
0
0
0
0
0
7,062
0.500248
c6d681ac44ef1494d6073c997560935007da32f3
131
py
Python
lightning_transformers/task/nlp/multiple_choice/datasets/swag/__init__.py
maksym-taranukhin/lightning-transformers
aa7202657973b5b65c3c36eb745621043859ebc4
[ "Apache-2.0" ]
451
2021-04-21T15:53:59.000Z
2022-03-29T10:39:45.000Z
lightning_transformers/task/nlp/multiple_choice/datasets/swag/__init__.py
mathemusician/lightning-transformers
b2ef06113433e6a178ce4d3c9df7ede8064e247f
[ "Apache-2.0" ]
92
2021-04-21T18:42:58.000Z
2022-03-30T05:29:54.000Z
lightning_transformers/task/nlp/multiple_choice/datasets/swag/__init__.py
mathemusician/lightning-transformers
b2ef06113433e6a178ce4d3c9df7ede8064e247f
[ "Apache-2.0" ]
51
2021-04-22T05:35:28.000Z
2022-03-17T13:08:12.000Z
from lightning_transformers.task.nlp.multiple_choice.datasets.swag.data import ( # noqa: F401 SwagMultipleChoiceDataModule, )
32.75
94
0.80916
0
0
0
0
0
0
0
0
12
0.091603
c6d6b79b9b74cb519b433548531f1d028f0803ab
871
py
Python
warningshot.py
DeadpoolPancakes/nerf-sentry
0f9cccd78e66f4020f1960871fd35c328a697086
[ "MIT" ]
null
null
null
warningshot.py
DeadpoolPancakes/nerf-sentry
0f9cccd78e66f4020f1960871fd35c328a697086
[ "MIT" ]
null
null
null
warningshot.py
DeadpoolPancakes/nerf-sentry
0f9cccd78e66f4020f1960871fd35c328a697086
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO from time import sleep GPIO.setmode(GPIO.BCM) Motor1Enable = 5 Motor1B = 24 Motor1A = 27 Motor2Enable = 17 Motor2B = 6 Motor2A = 22 #single shot script used as a warning shot # Set up defined GPIO pins GPIO.setup(Motor1A,GPIO.OUT) GPIO.setup(Motor1B,GPIO.OUT) GPIO.setup(Motor1Enable,GPIO.OUT)...
21.243902
45
0.771527
0
0
0
0
0
0
0
0
211
0.24225
c6d814a8e68b9da379529a21009897f7697124d2
1,979
py
Python
ampadb_index/parse_md.py
ampafdv/ampadb
25c804a5cb21afcbe4e222a3b48cca27ff2d9e19
[ "MIT" ]
null
null
null
ampadb_index/parse_md.py
ampafdv/ampadb
25c804a5cb21afcbe4e222a3b48cca27ff2d9e19
[ "MIT" ]
28
2016-10-21T16:04:56.000Z
2018-11-10T20:55:40.000Z
ampadb_index/parse_md.py
ampafdv/ampadb
25c804a5cb21afcbe4e222a3b48cca27ff2d9e19
[ "MIT" ]
2
2016-10-22T19:24:45.000Z
2017-02-11T10:49:02.000Z
import html import markdown import bleach import lxml.html from lxml.html import builder as E TAGS = [ 'p', 'img', 'em', 'strong', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ol', 'ul', 'li', 'br', 'hr', 'a', 'img', 'blockquote', 'b', 'i', 'u', 's', 'pre', 'code', 'table', 'thead', 'tr', 'th', 'tbody', 'td' ] AT...
29.984848
79
0.560889
0
0
0
0
0
0
0
0
533
0.269192
c6d82f38c4cf48f9145d5b9fdd0bf2b8b2b2ea04
552
py
Python
removeModule.py
ahmedwab/MMM-ModularHandlet.py
8bdc59730507333d280f2120849c5881dac7b1ad
[ "MIT" ]
1
2022-01-16T20:21:15.000Z
2022-01-16T20:21:15.000Z
removeModule.py
ahmedwab/MMM-ModuleHandler
8bdc59730507333d280f2120849c5881dac7b1ad
[ "MIT" ]
null
null
null
removeModule.py
ahmedwab/MMM-ModuleHandler
8bdc59730507333d280f2120849c5881dac7b1ad
[ "MIT" ]
null
null
null
import subprocess import os def removeModule(filename): try: path = os.path.abspath(os.path.join(os.path.dirname(__file__),"..")) path = path +"/modules" shellCommand = "cd " + path + " && rm -r -f " + filename subprocess.call(shellCommand, shell=True) shellCommand = "node ...
27.6
76
0.565217
0
0
0
0
0
0
0
0
127
0.230072
c6d82fc284eef62f6b254b22655051352ba00a72
532
py
Python
src/server_3D/API/Rice/factoryTypes/hybridShapeFactoryMeth/addNewLinePtPt.py
robertpardillo/Funnel
f45e419f55e085bbb95e17c47b4c94a7c625ba9b
[ "MIT" ]
1
2021-05-18T16:10:49.000Z
2021-05-18T16:10:49.000Z
src/server_3D/API/Rice/factoryTypes/hybridShapeFactoryMeth/addNewLinePtPt.py
robertpardillo/Funnel
f45e419f55e085bbb95e17c47b4c94a7c625ba9b
[ "MIT" ]
null
null
null
src/server_3D/API/Rice/factoryTypes/hybridShapeFactoryMeth/addNewLinePtPt.py
robertpardillo/Funnel
f45e419f55e085bbb95e17c47b4c94a7c625ba9b
[ "MIT" ]
null
null
null
from ...abstractObjects.hybridShapes.line import LinePtPt def AddNewLinePtPt(self, geometrical_set, start, end): part = geometrical_set.parentsDict['Part'] reference1 = part._createReferenceFromObject(start) reference2 = part._createReferenceFromObject(end) cat_constructor = self.cat_construc...
40.923077
82
0.781955
0
0
0
0
0
0
0
0
6
0.011278
c6d92303c364567cf9a1dd4b401fd0429cd92a45
195
py
Python
Latest/venv/Lib/site-packages/pyface/resource/__init__.py
adamcvj/SatelliteTracker
49a8f26804422fdad6f330a5548e9f283d84a55d
[ "Apache-2.0" ]
1
2022-01-09T20:04:31.000Z
2022-01-09T20:04:31.000Z
Latest/venv/Lib/site-packages/pyface/resource/__init__.py
adamcvj/SatelliteTracker
49a8f26804422fdad6f330a5548e9f283d84a55d
[ "Apache-2.0" ]
1
2022-02-15T12:01:57.000Z
2022-03-24T19:48:47.000Z
Latest/venv/Lib/site-packages/pyface/resource/__init__.py
adamcvj/SatelliteTracker
49a8f26804422fdad6f330a5548e9f283d84a55d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2005-2011, Enthought, Inc. # All rights reserved. """ Support for managing resources such as images and sounds. Part of the TraitsGUI project of the Enthought Tool Suite. """
32.5
62
0.733333
0
0
0
0
0
0
0
0
192
0.984615
c6d9810ee3519ae415fa0512f84807c328a50106
1,223
py
Python
Lab Activity 6.py
Jeralph-Red/OOP-58001
4e38f9a0a58098a121a61e640a53e9568bf529b0
[ "Apache-2.0" ]
null
null
null
Lab Activity 6.py
Jeralph-Red/OOP-58001
4e38f9a0a58098a121a61e640a53e9568bf529b0
[ "Apache-2.0" ]
null
null
null
Lab Activity 6.py
Jeralph-Red/OOP-58001
4e38f9a0a58098a121a61e640a53e9568bf529b0
[ "Apache-2.0" ]
null
null
null
from tkinter import * class SemGrade: def __init__(self, win): self.lbl1=Label(win, text='Prelim:') self.lbl2=Label(win, text='Midterm:') self.lbl3=Label(win, text='Final:') self.lbl4=Label(win, text='Semestral Grade:') self.t1=Entry(bd=3) self.t2=Entry(bd=3...
31.358974
88
0.567457
1,064
0.869992
0
0
0
0
0
0
127
0.103843
c6da86aae41063146c3bc7bd5c1f243c9c0368e2
1,853
py
Python
parse_wfd.py
ajsimon1/Cazar
6831dbdb63764ad2159eaad45fe2b6cfc7edd553
[ "MIT" ]
null
null
null
parse_wfd.py
ajsimon1/Cazar
6831dbdb63764ad2159eaad45fe2b6cfc7edd553
[ "MIT" ]
null
null
null
parse_wfd.py
ajsimon1/Cazar
6831dbdb63764ad2159eaad45fe2b6cfc7edd553
[ "MIT" ]
null
null
null
import os import sys import pandas as pd from xml.etree import ElementTree as et cwd = os.getcwd() filepath = 'C:\\Users\\asimon\\Desktop\\Practice-' \ 'Training\\p21_template_out3.xml' def parse_wfd_xml(filepath): tree = et.parse(filepath) root = tree.getroot() data, page = root.findall('.//...
39.425532
75
0.447922
0
0
0
0
0
0
0
0
407
0.219644
c6db094a77c778676e8dbdbc124941b532991717
1,598
py
Python
setup.py
yonglehou/memsql-loader
5e7bb5787991aa990889c4e709f63a3529544268
[ "MIT" ]
1
2021-05-10T03:37:26.000Z
2021-05-10T03:37:26.000Z
setup.py
yonglehou/memsql-loader
5e7bb5787991aa990889c4e709f63a3529544268
[ "MIT" ]
null
null
null
setup.py
yonglehou/memsql-loader
5e7bb5787991aa990889c4e709f63a3529544268
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup # get version from memsql_loader import __version__ setup( name='memsql-loader', version=__version__, author='MemSQL', author_email='support@memsql.com', url='https://github.com/memsql/memsql-loader', download_url='https://github.com/memsql/me...
27.084746
83
0.574468
0
0
0
0
0
0
0
0
886
0.554443
c6dbe3048a8498d4b259596610f445fd78aa7173
17,022
py
Python
p20191120_wada.py
tmseegoslo/wada
1f0163ccc0e0815ae7586291712f8920b00cf7ba
[ "Apache-2.0" ]
null
null
null
p20191120_wada.py
tmseegoslo/wada
1f0163ccc0e0815ae7586291712f8920b00cf7ba
[ "Apache-2.0" ]
null
null
null
p20191120_wada.py
tmseegoslo/wada
1f0163ccc0e0815ae7586291712f8920b00cf7ba
[ "Apache-2.0" ]
null
null
null
#MNE tutorial #Import modules import os import numpy as np import mne import re import complexity_entropy as ce #Import specific smodules for filtering from numpy.fft import fft, fftfreq from scipy import signal from mne.time_frequency.tfr import morlet from mne.viz import plot_filter, plot_ideal_filter ...
39.311778
124
0.584714
0
0
0
0
0
0
0
0
9,312
0.547057
c6dc529d66bad976f5633ed5b6e53c5c1922f83f
1,790
py
Python
classifiers.py
mavroudisv/Mahalanobis-Classifier
9029b2d84215afd02d8ccdbe3be7ea875b83deb6
[ "MIT" ]
1
2021-01-12T19:12:06.000Z
2021-01-12T19:12:06.000Z
classifiers.py
mavroudisv/Mahalanobis-Classifier
9029b2d84215afd02d8ccdbe3be7ea875b83deb6
[ "MIT" ]
null
null
null
classifiers.py
mavroudisv/Mahalanobis-Classifier
9029b2d84215afd02d8ccdbe3be7ea875b83deb6
[ "MIT" ]
null
null
null
import numpy as np import scipy as sp class MahalanobisClassifier(): def __init__(self, samples, labels): self.clusters={} for lbl in np.unique(labels): self.clusters[lbl] = samples.loc[labels == lbl, :] def mahalanobis(self, x, data, cov=None): """Compute the Mahalanobis D...
37.291667
118
0.6
1,750
0.977654
0
0
0
0
0
0
406
0.226816
c6dcf725bd23764de094f21a2a52e9e26e955427
1,982
py
Python
augmentation/postprocessor.py
abamaxa/docvision_generator
8017f29c7d908cb80ddcd59e345a222271fa74de
[ "MIT" ]
2
2020-02-06T17:30:41.000Z
2020-08-04T10:35:46.000Z
augmentation/postprocessor.py
abamaxa/docvision_generator
8017f29c7d908cb80ddcd59e345a222271fa74de
[ "MIT" ]
null
null
null
augmentation/postprocessor.py
abamaxa/docvision_generator
8017f29c7d908cb80ddcd59e345a222271fa74de
[ "MIT" ]
null
null
null
import os import shutil import json import time import cv2 import numpy as np import PIL def convert_image_to_numpy(image) : (im_width, im_height) = image.size image_np = np.fromstring(image.tobytes(), dtype='uint8', count=-1, sep='') array_shape = (im_height, im_width, int(image_np.shape[0] / (im_height...
29.58209
88
0.639758
0
0
0
0
0
0
0
0
139
0.070131
c6dd53889ed24a20c2e564119c4f2587d1b0b030
12,891
py
Python
Functions/learning_models.py
goyalpike/RK4_SinDy
7a53b03611f28915244a86f11de6552e513d0dbb
[ "MIT" ]
null
null
null
Functions/learning_models.py
goyalpike/RK4_SinDy
7a53b03611f28915244a86f11de6552e513d0dbb
[ "MIT" ]
null
null
null
Functions/learning_models.py
goyalpike/RK4_SinDy
7a53b03611f28915244a86f11de6552e513d0dbb
[ "MIT" ]
null
null
null
""" Training of a network """ import torch import sys import torch_optimizer as optim_all import numpy as np from .modules import rk4th_onestep_SparseId, rk4th_onestep_SparseId_parameter def learning_sparse_model(dictionary, Coeffs, dataloaders, Params,lr_reduction = 10, quite = False): ''' Parameters ...
44.298969
135
0.581258
0
0
0
0
0
0
0
0
4,794
0.371887
c6e2e070ba03aa1892f65c8ab57f90a175c0ba2f
31
py
Python
flask/deploy.py
dcu-sharepoint/Browser-id
4baeb18cb6bef26dad5a1a6fcf815ac1024203da
[ "MIT" ]
1
2018-05-14T20:00:21.000Z
2018-05-14T20:00:21.000Z
flask/deploy.py
zakybstrd21215/cross_browser
4baeb18cb6bef26dad5a1a6fcf815ac1024203da
[ "MIT" ]
null
null
null
flask/deploy.py
zakybstrd21215/cross_browser
4baeb18cb6bef26dad5a1a6fcf815ac1024203da
[ "MIT" ]
null
null
null
cp ./* ~/server/uniquemachine/
15.5
30
0.677419
0
0
0
0
0
0
0
0
0
0
c6e3e9d0abc03b1874ad93609b620dcead66d6e3
4,874
py
Python
repairfiles.py
MrForg3t/sourcecodetrm
de9ce6eb1714d28998ef1f4a2ebc05cd7bf7d78f
[ "MIT" ]
null
null
null
repairfiles.py
MrForg3t/sourcecodetrm
de9ce6eb1714d28998ef1f4a2ebc05cd7bf7d78f
[ "MIT" ]
null
null
null
repairfiles.py
MrForg3t/sourcecodetrm
de9ce6eb1714d28998ef1f4a2ebc05cd7bf7d78f
[ "MIT" ]
null
null
null
from urllib import request from os import path, system from platform import system as osInfo from time import sleep from urllib import request def repairFileMain(): print("\n") repairAppData() sleep(.2) print("\n") repairEssential() sleep(.2) print("\n") def repairAppData():...
33.156463
144
0.533032
0
0
0
0
0
0
0
0
1,995
0.409315
c6e4a42a16095039958ecdd10b4a917bcf6aef59
581
py
Python
resources/samd21flash.py
dotchetter/W.O.O.B.S
6055020f21c462940e9477192c831d8ad0b2669e
[ "MIT" ]
null
null
null
resources/samd21flash.py
dotchetter/W.O.O.B.S
6055020f21c462940e9477192c831d8ad0b2669e
[ "MIT" ]
13
2020-11-10T12:29:46.000Z
2020-11-20T00:04:02.000Z
resources/samd21flash.py
dotchetter/W.O.O.B.S
6055020f21c462940e9477192c831d8ad0b2669e
[ "MIT" ]
null
null
null
import os import argparse if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("-port") parser.add_argument("-programmer") parser.add_argument("-binary") args = parser.parse_args() port_norm = args.port port_bootloader = f"{port_norm[0:3]}{int(port_norm[-1])+1...
32.277778
95
0.666093
0
0
0
0
0
0
0
0
282
0.48537
c6e54cd48762f141a1090fb8f2221a27cae5656e
136
py
Python
introduction/model_answer/python/09_tenka1_programmer_contest_1998.py
AAAR-Salmon/procon
d65865e7c7d98f7194f93610b4f06df8fff3332c
[ "MIT" ]
null
null
null
introduction/model_answer/python/09_tenka1_programmer_contest_1998.py
AAAR-Salmon/procon
d65865e7c7d98f7194f93610b4f06df8fff3332c
[ "MIT" ]
null
null
null
introduction/model_answer/python/09_tenka1_programmer_contest_1998.py
AAAR-Salmon/procon
d65865e7c7d98f7194f93610b4f06df8fff3332c
[ "MIT" ]
null
null
null
# 空の固定長配列はNoneを入れておくと高速に生成できます a=[None] * 20 a[0]=a[1]=100 a[2]=200 for i in range(3,20): a[i] = a[i-1] + a[i-2] + a[i-3] print(a[19])
17
32
0.588235
0
0
0
0
0
0
0
0
78
0.423913
c6e60e06fca1a3189ef7b894a20c3b5c14557fda
41,045
py
Python
test/ontic_type_test.py
neoinsanity/ontic
2b313fb9fc45faf550791a797624c9997386c343
[ "Apache-2.0" ]
2
2017-11-06T12:01:20.000Z
2021-03-01T23:52:41.000Z
test/ontic_type_test.py
neoinsanity/ontic
2b313fb9fc45faf550791a797624c9997386c343
[ "Apache-2.0" ]
1
2016-12-02T04:04:03.000Z
2016-12-02T04:04:03.000Z
test/ontic_type_test.py
neoinsanity/ontic
2b313fb9fc45faf550791a797624c9997386c343
[ "Apache-2.0" ]
2
2015-06-26T22:24:57.000Z
2016-12-01T02:15:36.000Z
"""Test the basic functionality of the base and core data types.""" from datetime import date, time, datetime from typing import NoReturn from ontic import OnticType from ontic import property from ontic import type as o_type from ontic.meta import Meta from ontic.property import OnticProperty from ontic.schema import...
37.111212
122
0.599903
40,522
0.987258
0
0
0
0
0
0
11,968
0.291582
c6e6312f6be52c69218d6689cca0b968307e1db4
46,788
py
Python
resources.py
jajberni/BreederMap
8a14d906a6af63dc2c27d77e43968c2e2794fa06
[ "MIT" ]
null
null
null
resources.py
jajberni/BreederMap
8a14d906a6af63dc2c27d77e43968c2e2794fa06
[ "MIT" ]
null
null
null
resources.py
jajberni/BreederMap
8a14d906a6af63dc2c27d77e43968c2e2794fa06
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Resource object code # # Created by: The Resource Compiler for PyQt5 (Qt v5.9.7) # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore qt_resource_data = b"\ \x00\x00\x2a\xae\ \x89\ \x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\ \x00\x01\xd0\x0...
62.634538
103
0.727131
0
0
0
0
0
0
0
0
46,184
0.987091
c6e972384085a17d4254d8b48954d37e8355bbe9
5,503
py
Python
api/telegram.py
ongzhixian/python-apps
11a0d0ce656a7e9d7bdff18dd29feaa2bb436ae6
[ "MIT" ]
null
null
null
api/telegram.py
ongzhixian/python-apps
11a0d0ce656a7e9d7bdff18dd29feaa2bb436ae6
[ "MIT" ]
null
null
null
api/telegram.py
ongzhixian/python-apps
11a0d0ce656a7e9d7bdff18dd29feaa2bb436ae6
[ "MIT" ]
null
null
null
import json import logging import os import pdb import re from helpers.app_helpers import * from helpers.page_helpers import * from helpers.jinja2_helpers import * from helpers.telegram_helpers import * #from main import * #from flask import request #####################################################################...
35.050955
123
0.623296
0
0
0
0
2,849
0.517718
0
0
2,223
0.403961