hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
125
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
4
247
max_forks_repo_name
stringlengths
4
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
1
1.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
83d632003dc65364b9c3b47f315c7e542187635d
1,081
py
Python
cli/polyaxon/polyaxonfile/__init__.py
polyaxon/cli
3543c0220a8a7c06fc9573cd2a740f8ae4930641
[ "Apache-2.0" ]
null
null
null
cli/polyaxon/polyaxonfile/__init__.py
polyaxon/cli
3543c0220a8a7c06fc9573cd2a740f8ae4930641
[ "Apache-2.0" ]
1
2022-01-24T11:26:47.000Z
2022-03-18T23:17:58.000Z
cli/polyaxon/polyaxonfile/__init__.py
polyaxon/cli
3543c0220a8a7c06fc9573cd2a740f8ae4930641
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2018-2022 Polyaxon, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
32.757576
74
0.778908
#!/usr/bin/python # # Copyright 2018-2022 Polyaxon, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
0
0
0
3a251362968be1df9abcf85907aac1648df9d37a
4,644
py
Python
artist/migrations/0001_initial.py
ssoumyajit/imgapi2
b2129f1d35d55e093a3d96272686ac25ea2cf7bb
[ "MIT" ]
null
null
null
artist/migrations/0001_initial.py
ssoumyajit/imgapi2
b2129f1d35d55e093a3d96272686ac25ea2cf7bb
[ "MIT" ]
null
null
null
artist/migrations/0001_initial.py
ssoumyajit/imgapi2
b2129f1d35d55e093a3d96272686ac25ea2cf7bb
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-07-18 10:36 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django_countries.fields
56.634146
152
0.594961
# Generated by Django 3.1.7 on 2021-07-18 10:36 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django_countries.fields class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.A...
0
4,433
23
033229fc63bd18de9e276280cd749fb319dcfabb
1,587
py
Python
archive/got.py
SuperSonicHub1/Twitter-RSS
585739604bec89b8a3e867bc67d2f79abe550e85
[ "Unlicense" ]
null
null
null
archive/got.py
SuperSonicHub1/Twitter-RSS
585739604bec89b8a3e867bc67d2f79abe550e85
[ "Unlicense" ]
null
null
null
archive/got.py
SuperSonicHub1/Twitter-RSS
585739604bec89b8a3e867bc67d2f79abe550e85
[ "Unlicense" ]
null
null
null
from rfeed import * # Create RSS feeds import GetOldTweets3 as got # Scrape for tweets from functools import lru_cache # Cache feeds from flask import make_response # Tell Flask that it's being sent XML @lru_cache(maxsize=None)
30.519231
105
0.57845
from rfeed import * # Create RSS feeds import GetOldTweets3 as got # Scrape for tweets from functools import lru_cache # Cache feeds from flask import make_response # Tell Flask that it's being sent XML @lru_cache(maxsize=None) def twitterToRSS(user): items = [] # Create place for items to go. # Create tweet ...
1,335
0
22
0aa6ca5cc6dffd6848eb3fad981099a2c3c93ae1
381
py
Python
authtoken/migrations/0002_auto_20191020_1918.py
mentix02/Scrolls
b2df8b6061027dc9519e90740182a369356d9af9
[ "Apache-2.0" ]
null
null
null
authtoken/migrations/0002_auto_20191020_1918.py
mentix02/Scrolls
b2df8b6061027dc9519e90740182a369356d9af9
[ "Apache-2.0" ]
null
null
null
authtoken/migrations/0002_auto_20191020_1918.py
mentix02/Scrolls
b2df8b6061027dc9519e90740182a369356d9af9
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.6 on 2019-10-21 02:18 from django.db import migrations, models
20.052632
52
0.593176
# Generated by Django 2.2.6 on 2019-10-21 02:18 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('authtoken', '0001_initial'), ] operations = [ migrations.AlterField( model_name='authtoken', name='valid', ...
0
267
23
fa241ad9dc644dc2b7a8120eb7212cf85a481968
5,812
py
Python
procrastinate/worker.py
marqov/procrastinate
0d8ccd1af89f44804b155e395c72892d5d7be052
[ "MIT" ]
null
null
null
procrastinate/worker.py
marqov/procrastinate
0d8ccd1af89f44804b155e395c72892d5d7be052
[ "MIT" ]
null
null
null
procrastinate/worker.py
marqov/procrastinate
0d8ccd1af89f44804b155e395c72892d5d7be052
[ "MIT" ]
null
null
null
import asyncio import logging import time from typing import Iterable, NoReturn, Optional, Set from procrastinate import app, exceptions, jobs, signals, tasks, types logger = logging.getLogger(__name__)
33.402299
86
0.580351
import asyncio import logging import time from typing import Iterable, NoReturn, Optional, Set from procrastinate import app, exceptions, jobs, signals, tasks, types logger = logging.getLogger(__name__) class Worker: def __init__( self, app: app.App, queues: Optional[Iterable[str]] = Non...
5,403
-8
211
02a64f6a7a2a1a03ae94146ba693f12a38f030a4
666
py
Python
src/ui/timermenu.py
chobocho/timer
93b184897a3820ae8354f0f36a7d1716d7e71261
[ "MIT" ]
null
null
null
src/ui/timermenu.py
chobocho/timer
93b184897a3820ae8354f0f36a7d1716d7e71261
[ "MIT" ]
null
null
null
src/ui/timermenu.py
chobocho/timer
93b184897a3820ae8354f0f36a7d1716d7e71261
[ "MIT" ]
null
null
null
import wx
30.272727
69
0.623123
import wx class TimerMenu(): def __init__(self, parent): self.parent = parent self._addMenubar() def _addMenubar(self): menubar = wx.MenuBar() fileMenu = wx.Menu() fileItem = fileMenu.Append(wx.ID_EXIT, 'Quit', 'Quit App') self.parent.Bind(wx.EVT_MENU, self.pare...
583
-3
76
e2a046744c1d193808431b848191976487b18e52
2,539
py
Python
sample/tensorflow/utils/dump_model.py
dujiangsu/FasterTransformer
0648b8839be02eafba1cdba511a41b4fd13e2c9e
[ "Apache-2.0" ]
777
2021-04-05T07:45:07.000Z
2022-03-31T20:40:00.000Z
sample/tensorflow/utils/dump_model.py
dujiangsu/FasterTransformer
0648b8839be02eafba1cdba511a41b4fd13e2c9e
[ "Apache-2.0" ]
119
2021-04-05T08:31:18.000Z
2022-03-31T04:50:25.000Z
sample/tensorflow/utils/dump_model.py
dujiangsu/FasterTransformer
0648b8839be02eafba1cdba511a41b4fd13e2c9e
[ "Apache-2.0" ]
135
2021-04-05T09:12:42.000Z
2022-03-31T09:36:58.000Z
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
48.826923
164
0.745175
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
0
0
0
f1d43560ee9559740ede8d999987b9b115e0f92b
640
py
Python
shell/DBphoto.py
tomorrow00/TutorWeb
a5b41ab6f6ae2d92e5fd7e6e1290f11c65a8f93c
[ "MIT" ]
null
null
null
shell/DBphoto.py
tomorrow00/TutorWeb
a5b41ab6f6ae2d92e5fd7e6e1290f11c65a8f93c
[ "MIT" ]
null
null
null
shell/DBphoto.py
tomorrow00/TutorWeb
a5b41ab6f6ae2d92e5fd7e6e1290f11c65a8f93c
[ "MIT" ]
null
null
null
# coding=utf8 import MySQLdb conn = MySQLdb.connect( host='localhost', user='root', passwd='123456', db='TeacherSchema' ) cur = conn.cursor() cur.execute("SELECT COUNT(Teacher_Name) FROM Teacher;") count = cur.fetchall() count = count[0][0] print count for i in range(count): try: sql = "SELECT Teacher_Photo F...
21.333333
107
0.679688
# coding=utf8 import MySQLdb conn = MySQLdb.connect( host='localhost', user='root', passwd='123456', db='TeacherSchema' ) cur = conn.cursor() cur.execute("SELECT COUNT(Teacher_Name) FROM Teacher;") count = cur.fetchall() count = count[0][0] print count for i in range(count): try: sql = "SELECT Teacher_Photo F...
0
0
0
1a0096f3d4f2fb673a71b4ab030c43b567b17b2e
307
py
Python
tools/convert_mp3_to_wav.py
StasYazykov/alien-invasion
7c49bc446ed9b9576ea041621368573d95871ba8
[ "MIT" ]
null
null
null
tools/convert_mp3_to_wav.py
StasYazykov/alien-invasion
7c49bc446ed9b9576ea041621368573d95871ba8
[ "MIT" ]
null
null
null
tools/convert_mp3_to_wav.py
StasYazykov/alien-invasion
7c49bc446ed9b9576ea041621368573d95871ba8
[ "MIT" ]
null
null
null
""" Setup FFMPEG before!!! https://www.ffmpeg.org/download.html#build-windows """ from pydub import AudioSegment names = [ 'shot', 'explosion', 'explosion_1' ] for name in names: sound = AudioSegment.from_mp3(f"../sound/{name}.mp3") sound.export(f"../sound/{name}.wav", format="wav")
18.058824
57
0.648208
""" Setup FFMPEG before!!! https://www.ffmpeg.org/download.html#build-windows """ from pydub import AudioSegment names = [ 'shot', 'explosion', 'explosion_1' ] for name in names: sound = AudioSegment.from_mp3(f"../sound/{name}.mp3") sound.export(f"../sound/{name}.wav", format="wav")
0
0
0
22ae72eaf75e41f64668915c1d15c92c926eda75
412
py
Python
DegenerateArrow/home/urls.py
Asura0528/Degenerate-arrow
7f624027dbfd9345ddcf51bcdc2a5e7161e44f2e
[ "MIT" ]
1
2021-10-20T16:19:15.000Z
2021-10-20T16:19:15.000Z
DegenerateArrow/home/urls.py
Asura0528/Degenerate-arrow
7f624027dbfd9345ddcf51bcdc2a5e7161e44f2e
[ "MIT" ]
null
null
null
DegenerateArrow/home/urls.py
Asura0528/Degenerate-arrow
7f624027dbfd9345ddcf51bcdc2a5e7161e44f2e
[ "MIT" ]
null
null
null
from django.urls import path from home.views import IndexView, BlogView, DetailView, ToolView, ToolDetailView urlpatterns = [ path('', IndexView.as_view(), name='index'), path('blog/', BlogView.as_view(), name='blog'), path('detail/', DetailView.as_view(), name='detail'), path('tool/', ToolView.as_view...
412
412
0.684466
from django.urls import path from home.views import IndexView, BlogView, DetailView, ToolView, ToolDetailView urlpatterns = [ path('', IndexView.as_view(), name='index'), path('blog/', BlogView.as_view(), name='blog'), path('detail/', DetailView.as_view(), name='detail'), path('tool/', ToolView.as_view...
0
0
0
74f037f90d6edb2f81051ab3b8942e1ed02b9f66
23,029
py
Python
reconbf/lib/result.py
fallenpegasus/reconbf
bfd15bef549f011a3de885c3267d4f718223b798
[ "Apache-2.0" ]
45
2016-08-12T21:37:25.000Z
2022-03-29T00:21:29.000Z
reconbf/lib/result.py
fallenpegasus/reconbf
bfd15bef549f011a3de885c3267d4f718223b798
[ "Apache-2.0" ]
20
2016-08-11T07:42:28.000Z
2016-09-09T13:33:47.000Z
reconbf/lib/result.py
fallenpegasus/reconbf
bfd15bef549f011a3de885c3267d4f718223b798
[ "Apache-2.0" ]
6
2016-08-25T06:31:38.000Z
2019-09-11T04:29:36.000Z
# Copyright 2016 Hewlett Packard Enterprise Development LP # # 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...
33.472384
79
0.575058
# Copyright 2016 Hewlett Packard Enterprise Development LP # # 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...
2,954
12,658
230
73e47859588e3406311a660531152a4ee31a01fc
1,559
py
Python
tests/test_dicomexplorer.py
rbrecheisen/barbell2
19d8c6aa6ddd1b730bb257fadbeacf2d1ac79fd6
[ "MIT" ]
null
null
null
tests/test_dicomexplorer.py
rbrecheisen/barbell2
19d8c6aa6ddd1b730bb257fadbeacf2d1ac79fd6
[ "MIT" ]
null
null
null
tests/test_dicomexplorer.py
rbrecheisen/barbell2
19d8c6aa6ddd1b730bb257fadbeacf2d1ac79fd6
[ "MIT" ]
null
null
null
import os import pytest from barbell2.dicomexplorer.dicomexplorer import DicomExplorer COHORT_DIR = '/Volumes/USB_SECURE1/data/radiomics/projects/deepseg/data/mega/processed/NEWEPOC' COHORT_DCM_FILE = '/Volumes/USB_SECURE1/data/radiomics/projects/deepseg/data/mega/processed/NEWEPOC/003001_pre_PV_L3.dcm' COHORT_TAG_F...
28.87037
121
0.788326
import os import pytest from barbell2.dicomexplorer.dicomexplorer import DicomExplorer COHORT_DIR = '/Volumes/USB_SECURE1/data/radiomics/projects/deepseg/data/mega/processed/NEWEPOC' COHORT_DCM_FILE = '/Volumes/USB_SECURE1/data/radiomics/projects/deepseg/data/mega/processed/NEWEPOC/003001_pre_PV_L3.dcm' COHORT_TAG_F...
810
0
183
f0ba11440a57c43e54a9e22ec22969028fa20fb2
11,936
py
Python
nuitka/codegen/ConstantCodes.py
timgates42/Nuitka
536f39e37d8657ec750304bb1a93ccb19d1942af
[ "Apache-2.0" ]
1
2020-12-20T19:01:50.000Z
2020-12-20T19:01:50.000Z
nuitka/codegen/ConstantCodes.py
timgates42/Nuitka
536f39e37d8657ec750304bb1a93ccb19d1942af
[ "Apache-2.0" ]
1
2021-01-05T09:01:31.000Z
2021-01-05T09:01:31.000Z
nuitka/codegen/ConstantCodes.py
timgates42/Nuitka
536f39e37d8657ec750304bb1a93ccb19d1942af
[ "Apache-2.0" ]
null
null
null
# Copyright 2020, Kay Hayen, mailto:kay.hayen@gmail.com # # Part of "Nuitka", an optimizing Python compiler that is compatible and # integrates with CPython, but also works on its own. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
31.829333
86
0.654742
# Copyright 2020, Kay Hayen, mailto:kay.hayen@gmail.com # # Part of "Nuitka", an optimizing Python compiler that is compatible and # integrates with CPython, but also works on its own. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
2,918
0
23
b5519de4d78c466bb43ac812916905e15580523a
804
py
Python
JiraToNotion/models/notion_config.py
jimdrake55x/NotionTools
eb5e712707959aa54d110f63f71343ca801868e7
[ "MIT" ]
1
2021-02-07T22:00:31.000Z
2021-02-07T22:00:31.000Z
JiraToNotion/models/notion_config.py
jimdrake55x/NotionTools
eb5e712707959aa54d110f63f71343ca801868e7
[ "MIT" ]
5
2020-09-24T21:20:12.000Z
2021-05-27T20:56:33.000Z
JiraToNotion/models/notion_config.py
jimdrake55x/NotionTools
eb5e712707959aa54d110f63f71343ca801868e7
[ "MIT" ]
null
null
null
from constants.constants import FOLDER_CONFIG_FILE_REPLACE, FILE_NOTION_CONFIG, CONFIG_FOLDER from config_builder.config_builder import get_file_data import os
38.285714
120
0.69403
from constants.constants import FOLDER_CONFIG_FILE_REPLACE, FILE_NOTION_CONFIG, CONFIG_FOLDER from config_builder.config_builder import get_file_data import os class Notion_config(): def __init__(self): try: config_path = os.path.split(os.path.dirname(__file__))[0] + CONFIG_FOLDER ...
592
1
50
11a710eb349bd4e2f77184f27918df7983003cf1
12,909
py
Python
Digital-Games/Mud-Online-Game/server/Server.py
wolganens/Computer-Science
a840a1a9656711aaacc873a8a06075ffd322a0d2
[ "MIT" ]
1
2018-09-01T14:03:28.000Z
2018-09-01T14:03:28.000Z
Digital-Games/Mud-Online-Game/server/Server.py
wolganens/Computer-Science
a840a1a9656711aaacc873a8a06075ffd322a0d2
[ "MIT" ]
null
null
null
Digital-Games/Mud-Online-Game/server/Server.py
wolganens/Computer-Science
a840a1a9656711aaacc873a8a06075ffd322a0d2
[ "MIT" ]
null
null
null
import socket import threading import socketserver from Player import Player from Account import Account from World import World import re from copy import deepcopy global commands commands = dict({ "room" : "Exibe a sala atual", "move <n(north), s(south), e(east), w(weast)>" : "Move o personagem para a direção...
40.340625
97
0.607173
import socket import threading import socketserver from Player import Player from Account import Account from World import World import re from copy import deepcopy global commands commands = dict({ "room" : "Exibe a sala atual", "move <n(north), s(south), e(east), w(weast)>" : "Move o personagem para a direção...
11,395
612
68
d8669915ac9546e5d8f8a0c550f88c0e0634fe77
3,805
py
Python
wicarproject/utilities/flask_tracking/__init__.py
todhm/wicarproject
5a3ea7b70ba6649af75d9e9bb49683eb6f94b570
[ "MIT" ]
1
2018-04-20T04:58:50.000Z
2018-04-20T04:58:50.000Z
wicarproject/utilities/flask_tracking/__init__.py
todhm/wicarproject
5a3ea7b70ba6649af75d9e9bb49683eb6f94b570
[ "MIT" ]
7
2021-02-08T20:24:49.000Z
2022-03-11T23:26:33.000Z
wicarproject/utilities/flask_tracking/__init__.py
todhm/wicarproject
5a3ea7b70ba6649af75d9e9bb49683eb6f94b570
[ "MIT" ]
null
null
null
import mongoengine import datetime import re import socket import time from bson.errors import InvalidStringData from flask import request from utilities.flask_tracking import documents from utilities.flask_tracking.utils import WSGICopyBody from mongoengine import Document try: from flask_login import current_u...
35.231481
134
0.607884
import mongoengine import datetime import re import socket import time from bson.errors import InvalidStringData from flask import request from utilities.flask_tracking import documents from utilities.flask_tracking.utils import WSGICopyBody from mongoengine import Document try: from flask_login import current_u...
3,332
2
103
7d536dcdc033935a32c24f2588b7481cf9d479c9
2,456
py
Python
test/TEX/multi-line_include_options.py
azverkan/scons
704ddb9270e14c7771d0c58c04c7afa7bc009603
[ "MIT" ]
1
2015-11-04T22:22:10.000Z
2015-11-04T22:22:10.000Z
test/TEX/multi-line_include_options.py
azverkan/scons
704ddb9270e14c7771d0c58c04c7afa7bc009603
[ "MIT" ]
null
null
null
test/TEX/multi-line_include_options.py
azverkan/scons
704ddb9270e14c7771d0c58c04c7afa7bc009603
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # __COPYRIGHT__ # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, ...
26.989011
73
0.738192
#!/usr/bin/env python # # __COPYRIGHT__ # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, ...
0
0
0
620be75e82b5a7d7986470b1668de1f914065e28
2,600
py
Python
plots/correlation_matrices/plot.py
manuel-rhdt/master-thesis
51806aabefaa66a06bf895cac248fe3bffb04ba7
[ "MIT" ]
null
null
null
plots/correlation_matrices/plot.py
manuel-rhdt/master-thesis
51806aabefaa66a06bf895cac248fe3bffb04ba7
[ "MIT" ]
null
null
null
plots/correlation_matrices/plot.py
manuel-rhdt/master-thesis
51806aabefaa66a06bf895cac248fe3bffb04ba7
[ "MIT" ]
null
null
null
import numpy as np from matplotlib import pyplot from matplotlib.colors import Normalize from scipy import stats from scipy.special import logsumexp from IPython.display import Markdown import seaborn as sns lamda = 0.005 kappa = 0.25 rho = 0.01 mu = 0.01 data = [] for n_dim in [10, 80, 640]: for dt in [1, 8, 64]...
36.111111
162
0.625
import numpy as np from matplotlib import pyplot from matplotlib.colors import Normalize from scipy import stats from scipy.special import logsumexp from IPython.display import Markdown import seaborn as sns lamda = 0.005 kappa = 0.25 rho = 0.01 mu = 0.01 def sigma_ss(rho, mu, lamda, kappa): return kappa / lamda ...
1,458
0
276
8644308e074428da711a9cb73b3d7ee6300609e0
32
py
Python
cards/filtersets/__init__.py
atalaydev/cardify
594a7421580dd5cdc47d5da0d68c7298189a0422
[ "MIT" ]
null
null
null
cards/filtersets/__init__.py
atalaydev/cardify
594a7421580dd5cdc47d5da0d68c7298189a0422
[ "MIT" ]
null
null
null
cards/filtersets/__init__.py
atalaydev/cardify
594a7421580dd5cdc47d5da0d68c7298189a0422
[ "MIT" ]
null
null
null
from .card import CardFilterSet
16
31
0.84375
from .card import CardFilterSet
0
0
0
960c902ece9d890e0669ec62dd52657bef659357
9,195
py
Python
py_dev_hammer/github_status_posting.py
declankeyesbevan/py-dev-hammer
6e5c8a0d35f70a082ec32aa94d01b15dfd8c440b
[ "MIT" ]
2
2019-04-18T21:51:18.000Z
2019-06-17T11:23:15.000Z
py_dev_hammer/github_status_posting.py
declankeyesbevan/py-dev-hammer
6e5c8a0d35f70a082ec32aa94d01b15dfd8c440b
[ "MIT" ]
null
null
null
py_dev_hammer/github_status_posting.py
declankeyesbevan/py-dev-hammer
6e5c8a0d35f70a082ec32aa94d01b15dfd8c440b
[ "MIT" ]
null
null
null
""" This carries out dynamic and static code analysis and POSTs the results to GitHub as statuses. Without passing statuses, a pull request cannot be merged. Dynamic tests require 100% passing to be considered a success. The static tests are informational only and will always generate success if they run correctly. """...
38.634454
100
0.698314
""" This carries out dynamic and static code analysis and POSTs the results to GitHub as statuses. Without passing statuses, a pull request cannot be merged. Dynamic tests require 100% passing to be considered a success. The static tests are informational only and will always generate success if they run correctly. """...
6,992
0
230
ce6cbf92c0572ce7bcc5fb50fce0e547805db9c4
1,647
py
Python
solutions/057_insert_interval.py
abawchen/leetcode
41d3b172a7694a46a860fbcb0565a3acccd000f2
[ "MIT" ]
null
null
null
solutions/057_insert_interval.py
abawchen/leetcode
41d3b172a7694a46a860fbcb0565a3acccd000f2
[ "MIT" ]
null
null
null
solutions/057_insert_interval.py
abawchen/leetcode
41d3b172a7694a46a860fbcb0565a3acccd000f2
[ "MIT" ]
null
null
null
# Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary). # You may assume that the intervals were initially sorted according to their start times. # Example 1: # Given intervals [1,3],[6,9], insert and merge [2,5] in as [1,5],[6,9]. # Example 2: # Given [1,2],[3,5],[...
36.6
106
0.603522
# Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary). # You may assume that the intervals were initially sorted according to their start times. # Example 1: # Given intervals [1,3],[6,9], insert and merge [2,5] in as [1,5],[6,9]. # Example 2: # Given [1,2],[3,5],[...
902
-6
49
33f5e2f04ac8ce4f293dcba5be9901a24c497140
7,963
py
Python
helical_thread/helicalthread.py
winksaville/py-helical-thread
b1f98a6a1af48f7f6d277918c6d0237c8b85241a
[ "MIT" ]
null
null
null
helical_thread/helicalthread.py
winksaville/py-helical-thread
b1f98a6a1af48f7f6d277918c6d0237c8b85241a
[ "MIT" ]
2
2020-10-08T22:07:14.000Z
2020-10-13T00:33:06.000Z
helical_thread/helicalthread.py
winksaville/py-helical-thread
b1f98a6a1af48f7f6d277918c6d0237c8b85241a
[ "MIT" ]
null
null
null
from copy import deepcopy from dataclasses import dataclass, field from math import degrees, radians, sin, tan from typing import List from taperable_helix import Helix, HelixLocation @dataclass class HelicalThread(Helix): """ A set of fields used to represent a helical thread and passed as the parameter...
36.527523
258
0.717192
from copy import deepcopy from dataclasses import dataclass, field from math import degrees, radians, sin, tan from typing import List from taperable_helix import Helix, HelixLocation @dataclass class HelicalThread(Helix): """ A set of fields used to represent a helical thread and passed as the parameter...
0
0
0
0d7508a75b483f9b126cef6158bc6f3affd3618c
46
py
Python
pyqt_transparent_timer/__init__.py
yjg30737/pyqt-transparent-timer
6919a92517db62832e1048b1d1afc3f1b8449c11
[ "MIT" ]
null
null
null
pyqt_transparent_timer/__init__.py
yjg30737/pyqt-transparent-timer
6919a92517db62832e1048b1d1afc3f1b8449c11
[ "MIT" ]
null
null
null
pyqt_transparent_timer/__init__.py
yjg30737/pyqt-transparent-timer
6919a92517db62832e1048b1d1afc3f1b8449c11
[ "MIT" ]
null
null
null
from .transparentTimer import TransparentTimer
46
46
0.913043
from .transparentTimer import TransparentTimer
0
0
0
b25e69fc38d8825c19795cba3e5542aaaa90721e
871
py
Python
restapi/tests/test_db.py
nataliyah123/phageParser
bc05d76c23d37ee80ffa2bbf6e7e977341bab3ee
[ "MIT" ]
65
2017-05-10T15:26:18.000Z
2022-03-07T07:10:12.000Z
restapi/tests/test_db.py
nataliyah123/phageParser
bc05d76c23d37ee80ffa2bbf6e7e977341bab3ee
[ "MIT" ]
143
2017-03-22T22:55:16.000Z
2020-02-13T15:52:03.000Z
restapi/tests/test_db.py
nataliyah123/phageParser
bc05d76c23d37ee80ffa2bbf6e7e977341bab3ee
[ "MIT" ]
44
2017-03-22T20:47:16.000Z
2022-03-15T21:45:12.000Z
import pytest # Create your tests here. from restapi.models import Organism, Repeat @pytest.fixture @pytest.mark.django_db def test_model_can_create_an_organism(organism): """Test the organism model can create an Organism.""" old_count = Organism.objects.count() organism.save() new_count = Organism...
24.194444
67
0.732491
import pytest # Create your tests here. from restapi.models import Organism, Repeat @pytest.fixture def organism(): organism_name = "Organism Name" accession_number = "NC_000000" return Organism(name=organism_name, accession=accession_number) @pytest.mark.django_db def test_model_can_create_an_organism...
185
0
44
36ad03578fbd4cf456a34a1ca1fb206bbfdf9321
3,596
py
Python
training/threshold_launch_all.py
waliens/weakseg
dbd02d2729ae998d89bce0e5585a8144351f1feb
[ "MIT" ]
null
null
null
training/threshold_launch_all.py
waliens/weakseg
dbd02d2729ae998d89bce0e5585a8144351f1feb
[ "MIT" ]
null
null
null
training/threshold_launch_all.py
waliens/weakseg
dbd02d2729ae998d89bce0e5585a8144351f1feb
[ "MIT" ]
null
null
null
import logging import os from clustertools import set_stdout_logging, ParameterSet, Experiment from clustertools.storage import PickleStorage from generic_threshold import TuneThresholdComputation from train_monuseg_selftrain_clustertools import env_parser if __name__ == "__main__": import sys main(sys....
35.254902
138
0.587875
import logging import os from clustertools import set_stdout_logging, ParameterSet, Experiment from clustertools.storage import PickleStorage from generic_threshold import TuneThresholdComputation from train_monuseg_selftrain_clustertools import env_parser def launch(exp_name, comp_indexes, **env_params): thres...
3,197
0
69
4054b214b773978158a4a48d39cba98653492a8f
376
py
Python
ytdl_gui/window.py
Aakodal/ytdl-python
fa40b7722fb51c8cad17d690b83b0f08f36c203a
[ "MIT" ]
null
null
null
ytdl_gui/window.py
Aakodal/ytdl-python
fa40b7722fb51c8cad17d690b83b0f08f36c203a
[ "MIT" ]
null
null
null
ytdl_gui/window.py
Aakodal/ytdl-python
fa40b7722fb51c8cad17d690b83b0f08f36c203a
[ "MIT" ]
null
null
null
import sys from PyQt5.QtCore import QUrl from PyQt5.QtWebEngineWidgets import QWebEngineView from PyQt5.QtWidgets import QApplication from ytdl_gui import host, port
22.117647
51
0.726064
import sys from PyQt5.QtCore import QUrl from PyQt5.QtWebEngineWidgets import QWebEngineView from PyQt5.QtWidgets import QApplication from ytdl_gui import host, port def show(): qtapp = QApplication(sys.argv) web = QWebEngineView() web.load(QUrl(f"http://{host}:{port}")) web.setWindowTitle("YouTube D...
186
0
23
a75a263ae3275978f244dc8bac27acb2d3601033
2,840
py
Python
bb.py
xufuzhi/crnn_pytorch
0e07d1269339101f147a0d83bb41a006cd0406d9
[ "MIT" ]
null
null
null
bb.py
xufuzhi/crnn_pytorch
0e07d1269339101f147a0d83bb41a006cd0406d9
[ "MIT" ]
null
null
null
bb.py
xufuzhi/crnn_pytorch
0e07d1269339101f147a0d83bb41a006cd0406d9
[ "MIT" ]
null
null
null
import lmdb import numpy as np import cv2 as cv from itertools import islice import time import os from os.path import sep as path_sep from os.path import join as path_join import torch import torch.nn as nn import torchvision path = '/home/xfz/Projects/PycharmProjects/TextRecognitionDataGenerator-master/trdg/out' ...
24.912281
104
0.554225
import lmdb import numpy as np import cv2 as cv from itertools import islice import time import os from os.path import sep as path_sep from os.path import join as path_join import torch import torch.nn as nn import torchvision path = '/home/xfz/Projects/PycharmProjects/TextRecognitionDataGenerator-master/trdg/out' ...
129
119
23
871bd408f6825032da50b04b58cfe9556b0affbf
5,657
py
Python
tasks.py
kkuuba/RemoteDownloadApp
3309413cc103dbdb8846bc04d956f25417aae65e
[ "MIT" ]
null
null
null
tasks.py
kkuuba/RemoteDownloadApp
3309413cc103dbdb8846bc04d956f25417aae65e
[ "MIT" ]
null
null
null
tasks.py
kkuuba/RemoteDownloadApp
3309413cc103dbdb8846bc04d956f25417aae65e
[ "MIT" ]
null
null
null
import youtube_dl import datetime import threading import requests import re import time import os threads = [] # all threads list tasks_list = [] # all tasks list def start_received_request_action(data): """ Main function which extract task type and start proper action. Then return response. :param d...
33.473373
112
0.586707
import youtube_dl import datetime import threading import requests import re import time import os threads = [] # all threads list tasks_list = [] # all tasks list def start_received_request_action(data): """ Main function which extract task type and start proper action. Then return response. :param d...
224
4,031
23
0afd0f3258f5d2d8989f155e6e423b8f0d31ea32
1,478
py
Python
python/hongong/ch07/07_1.py
gangserver/py_test
869bdfa5c94c3b6a15b87e0c3de6b2cdaca821f4
[ "Apache-2.0" ]
null
null
null
python/hongong/ch07/07_1.py
gangserver/py_test
869bdfa5c94c3b6a15b87e0c3de6b2cdaca821f4
[ "Apache-2.0" ]
null
null
null
python/hongong/ch07/07_1.py
gangserver/py_test
869bdfa5c94c3b6a15b87e0c3de6b2cdaca821f4
[ "Apache-2.0" ]
null
null
null
from tensorflow import keras import matplotlib.pyplot as plt from sklearn.linear_model import SGDClassifier from sklearn.model_selection import cross_validate import numpy as np from sklearn.model_selection import train_test_split (train_input, train_target), (test_input, test_target) =\ keras.datasets.fashion_mn...
30.163265
80
0.780108
from tensorflow import keras import matplotlib.pyplot as plt from sklearn.linear_model import SGDClassifier from sklearn.model_selection import cross_validate import numpy as np from sklearn.model_selection import train_test_split (train_input, train_target), (test_input, test_target) =\ keras.datasets.fashion_mn...
0
0
0
548170a7d45c113e659cf9fe16bf4c6b87ab63f6
29,271
py
Python
ptah/form/tests/test_fields.py
timgates42/ptah
47594cef8e80397a545bdc9e166eafcac94c72d6
[ "BSD-3-Clause" ]
13
2015-03-18T16:06:50.000Z
2021-04-27T19:14:35.000Z
ptah/form/tests/test_fields.py
timgates42/ptah
47594cef8e80397a545bdc9e166eafcac94c72d6
[ "BSD-3-Clause" ]
null
null
null
ptah/form/tests/test_fields.py
timgates42/ptah
47594cef8e80397a545bdc9e166eafcac94c72d6
[ "BSD-3-Clause" ]
6
2015-01-07T11:17:32.000Z
2020-04-02T11:35:03.000Z
from unittest import mock import decimal from webob.multidict import MultiDict from pyramid.compat import text_type, NativeIO import ptah.form from ptah.form import iso8601 from ptah.testing import strip, BaseTestCase
31.644324
151
0.55379
from unittest import mock import decimal from webob.multidict import MultiDict from pyramid.compat import text_type, NativeIO import ptah.form from ptah.form import iso8601 from ptah.testing import strip, BaseTestCase def invalid_exc(func, *arg, **kw): from ptah.form import Invalid try: func(*arg, *...
25,926
2,741
368
9819c7b7eb6bafe32bbed7d5ce5ac16f938ab47b
3,731
py
Python
src/plasmid_verification/infrastructure/service/error_probability_sample_trimming_service.py
Midnighter/plasmid_verification
844b38047b1bf19fa9903299a1e6470583b9c3d5
[ "Apache-2.0" ]
null
null
null
src/plasmid_verification/infrastructure/service/error_probability_sample_trimming_service.py
Midnighter/plasmid_verification
844b38047b1bf19fa9903299a1e6470583b9c3d5
[ "Apache-2.0" ]
null
null
null
src/plasmid_verification/infrastructure/service/error_probability_sample_trimming_service.py
Midnighter/plasmid_verification
844b38047b1bf19fa9903299a1e6470583b9c3d5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021, Moritz E. Beber. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
34.869159
87
0.629322
# Copyright (c) 2021, Moritz E. Beber. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
411
0
26
a8e2f087a78a168da5dd007f37155dde5ccd18b0
190
py
Python
other/cap_huaxia_fund.py
thedestiny/fund_python
20f55a6b40e70cf9217c9406375653d8aea093d1
[ "Apache-2.0" ]
1
2022-02-14T02:58:02.000Z
2022-02-14T02:58:02.000Z
other/cap_huaxia_fund.py
thedestiny/fund_python
20f55a6b40e70cf9217c9406375653d8aea093d1
[ "Apache-2.0" ]
null
null
null
other/cap_huaxia_fund.py
thedestiny/fund_python
20f55a6b40e70cf9217c9406375653d8aea093d1
[ "Apache-2.0" ]
null
null
null
import requests req_url = "https://www.chinaamc.com/indexfundvalue.js" response = requests.get(req_url) print(response.apparent_encoding) response.encoding = "UTF-8" print(response.text)
19
54
0.784211
import requests req_url = "https://www.chinaamc.com/indexfundvalue.js" response = requests.get(req_url) print(response.apparent_encoding) response.encoding = "UTF-8" print(response.text)
0
0
0
3598ca72244cf9a4dc7bdfd6299f529aa2bb2a1e
7,291
py
Python
alsaloop.py
loichu/alsaloop
dfeca261e2723f594309ea3e585f93eb34cd28b6
[ "MIT" ]
null
null
null
alsaloop.py
loichu/alsaloop
dfeca261e2723f594309ea3e585f93eb34cd28b6
[ "MIT" ]
null
null
null
alsaloop.py
loichu/alsaloop
dfeca261e2723f594309ea3e585f93eb34cd28b6
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' Copyright (c) 2020 Modul 9/HiFiBerry 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, me...
35.740196
117
0.656289
#!/usr/bin/env python ''' Copyright (c) 2020 Modul 9/HiFiBerry 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, me...
826
0
69
a2472b8255a2d5c90e168c0d65b74bc731052a7c
4,485
py
Python
transaction-processor/handler/car.py
mayankmk14/Manufacturing
2b8893210e2443ea04afa2f696f6ffbaf0f2a568
[ "MIT" ]
null
null
null
transaction-processor/handler/car.py
mayankmk14/Manufacturing
2b8893210e2443ea04afa2f696f6ffbaf0f2a568
[ "MIT" ]
null
null
null
transaction-processor/handler/car.py
mayankmk14/Manufacturing
2b8893210e2443ea04afa2f696f6ffbaf0f2a568
[ "MIT" ]
null
null
null
import logging import hashlib import assets_pb2 as assets from sawtooth_sdk.processor.exceptions import InvalidTransaction import handler.addressing as Addressing import handler.utils as utils LOGGER = logging.getLogger(__name__)
44.405941
147
0.759866
import logging import hashlib import assets_pb2 as assets from sawtooth_sdk.processor.exceptions import InvalidTransaction import handler.addressing as Addressing import handler.utils as utils LOGGER = logging.getLogger(__name__) def create_car(payloadobj,signer,context,txId): formDetails = payloadobj.car LO...
4,232
0
22
6f2fae3b336ae14b5b9a45e248451090f7ad2b91
1,825
py
Python
archived/misc/post-processor/archive/lh.py
XiaoxiongXie/WRF-SUEWS
51f8d2359b394016e65121f3baab908b1ad4d89c
[ "MIT" ]
2
2020-09-24T09:15:31.000Z
2020-09-28T16:16:30.000Z
archived/misc/post-processor/archive/lh.py
XiaoxiongXie/WRF-SUEWS
51f8d2359b394016e65121f3baab908b1ad4d89c
[ "MIT" ]
3
2020-09-24T13:46:24.000Z
2020-10-01T09:54:17.000Z
archived/misc/post-processor/archive/lh.py
XiaoxiongXie/WRF-SUEWS
51f8d2359b394016e65121f3baab908b1ad4d89c
[ "MIT" ]
2
2020-10-01T09:46:58.000Z
2022-01-09T10:38:21.000Z
#!/usr/bin/env python from netCDF4 import Dataset import matplotlib.pyplot as plt from matplotlib.cm import get_cmap import cartopy.crs as crs from cartopy.feature import NaturalEarthFeature from wrf import ALL_TIMES, to_np, getvar, smooth2d, get_cartopy, cartopy_xlim, cartopy_ylim, latlon_coords # Open the NetCDF fi...
30.932203
106
0.737534
#!/usr/bin/env python from netCDF4 import Dataset import matplotlib.pyplot as plt from matplotlib.cm import get_cmap import cartopy.crs as crs from cartopy.feature import NaturalEarthFeature from wrf import ALL_TIMES, to_np, getvar, smooth2d, get_cartopy, cartopy_xlim, cartopy_ylim, latlon_coords # Open the NetCDF fi...
0
0
0
f5b2002d2d535781d43dc4470ba6797e234296b6
5,565
py
Python
bytetrack_cpp_node/launch/bytetrack_openvino.launch.py
fateshelled/bytetrack_ros
24d9fc600904201ea710e93c9ab860d475a548ee
[ "MIT" ]
1
2021-12-31T01:36:33.000Z
2021-12-31T01:36:33.000Z
bytetrack_cpp_node/launch/bytetrack_openvino.launch.py
fateshelled/bytetrack_ros
24d9fc600904201ea710e93c9ab860d475a548ee
[ "MIT" ]
null
null
null
bytetrack_cpp_node/launch/bytetrack_openvino.launch.py
fateshelled/bytetrack_ros
24d9fc600904201ea710e93c9ab860d475a548ee
[ "MIT" ]
null
null
null
import os import sys import launch import launch_ros.actions from launch.actions import DeclareLaunchArgument from launch.substitutions import LaunchConfiguration from launch_ros.actions import ComposableNodeContainer from launch_ros.descriptions import ComposableNode
39.190141
101
0.483917
import os import sys import launch import launch_ros.actions from launch.actions import DeclareLaunchArgument from launch.substitutions import LaunchConfiguration from launch_ros.actions import ComposableNodeContainer from launch_ros.descriptions import ComposableNode def generate_launch_description(): launch_args...
5,273
0
23
6dbd2946d5141f0060344f537b12a753d0d1316c
9,055
py
Python
app.py
Aarrtteemm123/Shopping-list
38b2143df69408d7502e8d588c5a479f295a7d9c
[ "MIT" ]
null
null
null
app.py
Aarrtteemm123/Shopping-list
38b2143df69408d7502e8d588c5a479f295a7d9c
[ "MIT" ]
null
null
null
app.py
Aarrtteemm123/Shopping-list
38b2143df69408d7502e8d588c5a479f295a7d9c
[ "MIT" ]
null
null
null
from kivy.storage.jsonstore import JsonStore from kivy.uix.boxlayout import BoxLayout from kivy.uix.floatlayout import FloatLayout from kivy.uix.screenmanager import Screen from kivymd.app import MDApp from kivy.lang import Builder from kivymd.uix.button import MDFlatButton, MDFloatingActionButton from kivymd.uix.dialo...
40.424107
113
0.622529
from kivy.storage.jsonstore import JsonStore from kivy.uix.boxlayout import BoxLayout from kivy.uix.floatlayout import FloatLayout from kivy.uix.screenmanager import Screen from kivymd.app import MDApp from kivy.lang import Builder from kivymd.uix.button import MDFlatButton, MDFloatingActionButton from kivymd.uix.dialo...
7,885
78
597
45c8c3839ce9fa0eb07689fae3e47641138f8273
3,976
py
Python
client.py
chvia223/python-networking
5016bac16be534cb99557414c46bd24e17bd44cc
[ "MIT" ]
null
null
null
client.py
chvia223/python-networking
5016bac16be534cb99557414c46bd24e17bd44cc
[ "MIT" ]
null
null
null
client.py
chvia223/python-networking
5016bac16be534cb99557414c46bd24e17bd44cc
[ "MIT" ]
null
null
null
from multiprocessing.sharedctypes import Value import socket import spotipy from spotipy.oauth2 import SpotifyClientCredentials HEADER = 64 PORT = 5050 FORMAT = 'utf-8' DISCONNECT_MESSAGE = "!DISCONNECT" # SERVER = socket.gethostbyname(socket.gethostname()) SERVER = "192.168.0.155" ADDR = (SERVER, PORT) """ Calls...
32.064516
120
0.584759
from multiprocessing.sharedctypes import Value import socket import spotipy from spotipy.oauth2 import SpotifyClientCredentials HEADER = 64 PORT = 5050 FORMAT = 'utf-8' DISCONNECT_MESSAGE = "!DISCONNECT" # SERVER = socket.gethostbyname(socket.gethostname()) SERVER = "192.168.0.155" ADDR = (SERVER, PORT) def init_cl...
3,226
0
117
2b659a95e79523dc6dbc454ebe70ac949c0e88ad
178
py
Python
Ekeopara_Praise/Phase 2/LIST/Day43 Tasks/Task4.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
6
2020-05-23T19:53:25.000Z
2021-05-08T20:21:30.000Z
Ekeopara_Praise/Phase 2/LIST/Day43 Tasks/Task4.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
8
2020-05-14T18:53:12.000Z
2020-07-03T00:06:20.000Z
Ekeopara_Praise/Phase 2/LIST/Day43 Tasks/Task4.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
39
2020-05-10T20:55:02.000Z
2020-09-12T17:40:59.000Z
'''4. Write a Python program to generate groups of five consecutive numbers in a list. ''' l = [[5*i + j for j in range(1,6)] for i in range(5)] print(l) #Reference: w3resource
29.666667
90
0.679775
'''4. Write a Python program to generate groups of five consecutive numbers in a list. ''' l = [[5*i + j for j in range(1,6)] for i in range(5)] print(l) #Reference: w3resource
0
0
0
4f54f2ccd5f215b846830ebda095fb62b67d6fdf
12,147
py
Python
kursl/mcmc.py
laszukdawid/KurSL
2d7427a71d01f1599c2626da2359f9e495fa4d7e
[ "Apache-2.0" ]
3
2018-01-24T20:10:47.000Z
2020-01-06T23:27:14.000Z
kursl/mcmc.py
laszukdawid/KurSL
2d7427a71d01f1599c2626da2359f9e495fa4d7e
[ "Apache-2.0" ]
1
2018-01-12T05:24:13.000Z
2018-01-12T05:47:11.000Z
kursl/mcmc.py
laszukdawid/KurSL
2d7427a71d01f1599c2626da2359f9e495fa4d7e
[ "Apache-2.0" ]
1
2020-01-06T23:27:17.000Z
2020-01-06T23:27:17.000Z
#!/usr/bin/python # coding: UTF-8 # # Author: Dawid Laszuk # Contact: laszukdawid@gmail.com # # Feel free to contact for any information. from __future__ import division, print_function import emcee import logging import numpy as np import time, datetime from .kursl_model import KurSL from .model import ModelWrapper ...
32.392
103
0.56162
#!/usr/bin/python # coding: UTF-8 # # Author: Dawid Laszuk # Contact: laszukdawid@gmail.com # # Feel free to contact for any information. from __future__ import division, print_function import emcee import logging import numpy as np import time, datetime from .kursl_model import KurSL from .model import ModelWrapper ...
1,008
8,786
23
8041258dfbf3834cf80dcf7d8b33d6f06534a88f
2,941
py
Python
gpu_bestbuy.py
elithaxxor/gpu_scraper
065f33facadaf0bce9e6b5a4b95d1895b340058f
[ "MIT" ]
null
null
null
gpu_bestbuy.py
elithaxxor/gpu_scraper
065f33facadaf0bce9e6b5a4b95d1895b340058f
[ "MIT" ]
null
null
null
gpu_bestbuy.py
elithaxxor/gpu_scraper
065f33facadaf0bce9e6b5a4b95d1895b340058f
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC import info # make sure this path is correct PATH = "C:\Program Files (x86)\ChromeDriver\chromedriver.exe" driver = webdr...
34.6
173
0.66202
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC import info # make sure this path is correct PATH = "C:\Program Files (x86)\ChromeDriver\chromedriver.exe" driver = webdr...
0
0
0
ac0785eb6e8f573fd60308c40a0160d7225b62f0
15,306
py
Python
aws-network-firewall/operations.py
cs-shivaji-kolape/connector-aws-network-firewall
dea59e7bb3c434cf7b3c83764b0a3929071510c9
[ "MIT" ]
null
null
null
aws-network-firewall/operations.py
cs-shivaji-kolape/connector-aws-network-firewall
dea59e7bb3c434cf7b3c83764b0a3929071510c9
[ "MIT" ]
null
null
null
aws-network-firewall/operations.py
cs-shivaji-kolape/connector-aws-network-firewall
dea59e7bb3c434cf7b3c83764b0a3929071510c9
[ "MIT" ]
1
2021-12-17T08:28:33.000Z
2021-12-17T08:28:33.000Z
""" Copyright start Copyright (C) 2008 - 2021 Fortinet Inc. All rights reserved. FORTINET CONFIDENTIAL & FORTINET PROPRIETARY SOURCE CODE Copyright end """ import boto3, requests, json from connectors.core.connector import get_logger, ConnectorError logger = get_logger('aws-network-firewall') TEMP_CRED_ENDPO...
36.705036
117
0.650725
""" Copyright start Copyright (C) 2008 - 2021 Fortinet Inc. All rights reserved. FORTINET CONFIDENTIAL & FORTINET PROPRIETARY SOURCE CODE Copyright end """ import boto3, requests, json from connectors.core.connector import get_logger, ConnectorError logger = get_logger('aws-network-firewall') TEMP_CRED_ENDPO...
13,115
12
709
d63e4a467d3bca00f188583137b8940e30776ece
665
py
Python
hackerrank/13. regex and parsing/15.py
Eurydia/Xian-assignment
4a7e4bcd3d4999ea7429054fec1792064c96ff30
[ "MIT" ]
null
null
null
hackerrank/13. regex and parsing/15.py
Eurydia/Xian-assignment
4a7e4bcd3d4999ea7429054fec1792064c96ff30
[ "MIT" ]
null
null
null
hackerrank/13. regex and parsing/15.py
Eurydia/Xian-assignment
4a7e4bcd3d4999ea7429054fec1792064c96ff30
[ "MIT" ]
null
null
null
# Enter your code here. Read input from STDIN. Print output to STDOUTseen = '' from string import ascii_uppercase, digits import re for _ in range(1, int(input())+1): uid = str(input()) seen = '' valid = True if len(uid) == 10: for char in uid: if char not in seen and char.isaln...
26.6
87
0.503759
# Enter your code here. Read input from STDIN. Print output to STDOUTseen = '' from string import ascii_uppercase, digits import re for _ in range(1, int(input())+1): uid = str(input()) seen = '' valid = True if len(uid) == 10: for char in uid: if char not in seen and char.isaln...
0
0
0
17b7f7b54d65da3b60ca22904903fde7bce6a3ea
9,286
py
Python
django_bitcoin/tasks.py
texib/bitcoin-zoo
69dc3443a5132ef02f340676a985e4ad9a244eed
[ "MIT" ]
1
2018-03-24T14:42:06.000Z
2018-03-24T14:42:06.000Z
django_bitcoin/tasks.py
kenttw/bitcoin-zoo
69dc3443a5132ef02f340676a985e4ad9a244eed
[ "MIT" ]
1
2015-04-21T03:47:07.000Z
2015-04-21T03:47:12.000Z
django_bitcoin/tasks.py
texib/bitcoin-zoo
69dc3443a5132ef02f340676a985e4ad9a244eed
[ "MIT" ]
null
null
null
from __future__ import with_statement import datetime import random import hashlib import base64 from decimal import Decimal from django.db import models from django_bitcoin.utils import bitcoind from django_bitcoin import settings , models from django.utils.translation import ugettext as _ from django_bitcoin.models...
46.89899
123
0.689856
from __future__ import with_statement import datetime import random import hashlib import base64 from decimal import Decimal from django.db import models from django_bitcoin.utils import bitcoind from django_bitcoin import settings , models from django.utils.translation import ugettext as _ from django_bitcoin.models...
8,372
0
89
4bc7429b295385802f8890a45eedec78c502bd33
740
py
Python
test/test_add_contact_to_group.py
Sashatq/python_training
9e403db6e3bf5e17b8ce0d4d3d9887841720913c
[ "Apache-2.0" ]
null
null
null
test/test_add_contact_to_group.py
Sashatq/python_training
9e403db6e3bf5e17b8ce0d4d3d9887841720913c
[ "Apache-2.0" ]
null
null
null
test/test_add_contact_to_group.py
Sashatq/python_training
9e403db6e3bf5e17b8ce0d4d3d9887841720913c
[ "Apache-2.0" ]
null
null
null
from model.contact import Contact from model.group import Group #Главная #Выбираем контакт #Выбираем группу #Нажимаем добавить #Нажимаем перейти в группу #Получаем ид группы #- #Записываем из базы не пустую группу с нашим айдишником #Сравниваем
20.555556
106
0.762162
from model.contact import Contact from model.group import Group def test_add_contact_to_group(app, db): if len(db.get_contact_list()) == 0: app.contact.create.contact(Contact(name='for_group', lname="for_group")) app.group.create(Group(name="add_contact_here", header="add_contact_here", footer="add_co...
457
0
23
e3bee1e25aac8e950866c1724dc7a706a061beb3
4,596
py
Python
polling_stations/apps/councils/management/commands/import_councils.py
chris48s/UK-Polling-Stations
4742b527dae94f0276d35c80460837be743b7d17
[ "BSD-3-Clause" ]
null
null
null
polling_stations/apps/councils/management/commands/import_councils.py
chris48s/UK-Polling-Stations
4742b527dae94f0276d35c80460837be743b7d17
[ "BSD-3-Clause" ]
null
null
null
polling_stations/apps/councils/management/commands/import_councils.py
chris48s/UK-Polling-Stations
4742b527dae94f0276d35c80460837be743b7d17
[ "BSD-3-Clause" ]
null
null
null
import html import json import requests from django.apps import apps from django.contrib.gis.geos import GEOSGeometry, MultiPolygon, Polygon from django.conf import settings from django.core.management.base import BaseCommand from councils.models import Council class Command(BaseCommand): """ Turn off auto sy...
35.353846
108
0.606179
import html import json import requests from django.apps import apps from django.contrib.gis.geos import GEOSGeometry, MultiPolygon, Polygon from django.conf import settings from django.core.management.base import BaseCommand from councils.models import Council class Command(BaseCommand): """ Turn off auto sy...
2,404
0
189
800fd32b0652a937b970d237c4fe071f077120c7
363
py
Python
resume.py
BananaLoaf/pix2pix-tf2-keras
8925941e8e5cd52563255e8e2cc58f03f7cc5cde
[ "MIT" ]
1
2021-08-08T16:30:34.000Z
2021-08-08T16:30:34.000Z
resume.py
BananaLoaf/pix2pix-tf2-keras
8925941e8e5cd52563255e8e2cc58f03f7cc5cde
[ "MIT" ]
null
null
null
resume.py
BananaLoaf/pix2pix-tf2-keras
8925941e8e5cd52563255e8e2cc58f03f7cc5cde
[ "MIT" ]
2
2020-03-24T14:31:42.000Z
2020-11-16T22:36:07.000Z
from pathlib import Path from tools.config import Config, ResumeConfig from tools.runner import CustomRunner if __name__ == '__main__': resume_config = ResumeConfig.cli("Pix2Pix Tensorflow 2 Keras implementation") config = Config.load(Path(resume_config.path).joinpath("config.json")) CustomRunner.resume(c...
36.3
81
0.790634
from pathlib import Path from tools.config import Config, ResumeConfig from tools.runner import CustomRunner if __name__ == '__main__': resume_config = ResumeConfig.cli("Pix2Pix Tensorflow 2 Keras implementation") config = Config.load(Path(resume_config.path).joinpath("config.json")) CustomRunner.resume(c...
0
0
0
6acb5d7172f11394af5532fc042454602331eba6
12,274
py
Python
synthesize.py
tranmanhdat/FastSpeech2
bc5e28e1463de2ba167ae9a2cf32e2d8aa366e02
[ "MIT" ]
null
null
null
synthesize.py
tranmanhdat/FastSpeech2
bc5e28e1463de2ba167ae9a2cf32e2d8aa366e02
[ "MIT" ]
null
null
null
synthesize.py
tranmanhdat/FastSpeech2
bc5e28e1463de2ba167ae9a2cf32e2d8aa366e02
[ "MIT" ]
null
null
null
import re import argparse from string import punctuation from scipy.io import wavfile import torch import yaml import numpy as np from torch.utils.data import DataLoader from g2p_en import G2p from pypinyin import pinyin, Style from utils.model import get_model, get_vocoder from utils.tools import to_dev...
35.576812
98
0.559801
import re import argparse from string import punctuation from scipy.io import wavfile import torch import yaml import numpy as np from torch.utils.data import DataLoader from g2p_en import G2p from pypinyin import pinyin, Style from utils.model import get_model, get_vocoder from utils.tools import to_dev...
6,008
0
148
ef0c02fedf75e263733415cb1b6dfb1fda046eee
482
py
Python
examples/honeypot/topo.py
Dobrrk/minicps
955b0255b2ac79b11f501645b847169848e314d6
[ "MIT" ]
null
null
null
examples/honeypot/topo.py
Dobrrk/minicps
955b0255b2ac79b11f501645b847169848e314d6
[ "MIT" ]
null
null
null
examples/honeypot/topo.py
Dobrrk/minicps
955b0255b2ac79b11f501645b847169848e314d6
[ "MIT" ]
null
null
null
""" swat-s1 topology """ from mininet.topo import Topo as TopoBase from pinger import Pinger from plc2 import Plc2 from plc1 import Plc1
18.538462
42
0.572614
""" swat-s1 topology """ from mininet.topo import Topo as TopoBase from pinger import Pinger from plc2 import Plc2 from plc1 import Plc1 class Topo(TopoBase): NETMASK = '/24' NODES = [Plc1, Plc2, Pinger] def build(self): switch = self.addSwitch('s1') for node in Topo.NODES: ...
239
80
23
b81d6821a26835f297c3903bcbc442d359c7cbe5
2,396
py
Python
DesignPresentation/Amdhal.py
bjlemaire/DEM
b413304fd4d3368af73aff9743d1da9d7deb129e
[ "MIT" ]
null
null
null
DesignPresentation/Amdhal.py
bjlemaire/DEM
b413304fd4d3368af73aff9743d1da9d7deb129e
[ "MIT" ]
null
null
null
DesignPresentation/Amdhal.py
bjlemaire/DEM
b413304fd4d3368af73aff9743d1da9d7deb129e
[ "MIT" ]
1
2019-08-07T17:35:26.000Z
2019-08-07T17:35:26.000Z
import matplotlib.pyplot as plt import numpy as np from matplotlib import rc rc('font',**{'family':'sans-serif','sans-serif':['Helvetica']}) rc('text', usetex=True) c =0.9996 f = lambda p: 1/((1-c)+(c/p)) p_list = np.arange(1,1024) N=100 tsm = 18.4e-9 tnode = 65e-9 tproc = 0.08e-9 toff = 27e-3 T = N*N/6 dt = 0.24 ...
39.933333
155
0.632304
import matplotlib.pyplot as plt import numpy as np from matplotlib import rc rc('font',**{'family':'sans-serif','sans-serif':['Helvetica']}) rc('text', usetex=True) c =0.9996 f = lambda p: 1/((1-c)+(c/p)) p_list = np.arange(1,1024) N=100 tsm = 18.4e-9 tnode = 65e-9 tproc = 0.08e-9 toff = 27e-3 T = N*N/6 dt = 0.24 ...
278
0
46
d2c48659fa5d2855283695eacbcaa778092ba8f8
981
py
Python
src/example/python/read-single-psicquic-python3.py
PSICQUIC/psicquic-solr-ws
9bfe2665fe1071e524548136c66bc1f5c7df2b05
[ "CC-BY-4.0" ]
2
2021-04-30T13:10:50.000Z
2021-12-14T10:55:36.000Z
src/example/python/read-single-psicquic-python3.py
PSICQUIC/psicquic-solr-ws
9bfe2665fe1071e524548136c66bc1f5c7df2b05
[ "CC-BY-4.0" ]
null
null
null
src/example/python/read-single-psicquic-python3.py
PSICQUIC/psicquic-solr-ws
9bfe2665fe1071e524548136c66bc1f5c7df2b05
[ "CC-BY-4.0" ]
1
2018-10-23T11:22:24.000Z
2018-10-23T11:22:24.000Z
from urllib.request import urlopen # ------------------ MITAB FUNCTIONS ------------------ # ----------------------------------------------------- # Note that we are only going to get 10 interactions at most queryUrl = "http://www.ebi.ac.uk/Tools/webservices/psicquic/intact/webservices/current/search/query/BBC1?first...
26.513514
134
0.598369
from urllib.request import urlopen # ------------------ MITAB FUNCTIONS ------------------ def getXrefByDatabase(line, database): fields = line.split('|') for field in fields: parts = field.split(':') db = parts[0] value = parts[1].split('(')[0] if database == db: retur...
213
0
23
81bd654649daec8245593e95ab09d02d5ede25fb
2,240
py
Python
models/PasswordToken.py
PunitTailor55/RootTheBox
9662a1dc5830a03326257fced058fd7384685cff
[ "Apache-2.0" ]
null
null
null
models/PasswordToken.py
PunitTailor55/RootTheBox
9662a1dc5830a03326257fced058fd7384685cff
[ "Apache-2.0" ]
null
null
null
models/PasswordToken.py
PunitTailor55/RootTheBox
9662a1dc5830a03326257fced058fd7384685cff
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sep 6, 2020 @author: eljeffe Copyright 2020 Root the Box 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/licen...
32
88
0.688839
# -*- coding: utf-8 -*- """ Created on Sep 6, 2020 @author: eljeffe Copyright 2020 Root the Box 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/licen...
0
0
0
1d65e18706f1c8de8606f5b1c87e5a658cb46b71
872
py
Python
exercises/matrix-no-numpy/0480-matrix-no-numpy-mul2.py
mahaamesha/fi3201-01-2021-2
80c8fd74ae99c19c5421987c15f6a50985c3b69d
[ "MIT" ]
null
null
null
exercises/matrix-no-numpy/0480-matrix-no-numpy-mul2.py
mahaamesha/fi3201-01-2021-2
80c8fd74ae99c19c5421987c15f6a50985c3b69d
[ "MIT" ]
null
null
null
exercises/matrix-no-numpy/0480-matrix-no-numpy-mul2.py
mahaamesha/fi3201-01-2021-2
80c8fd74ae99c19c5421987c15f6a50985c3b69d
[ "MIT" ]
null
null
null
# 0480-matrix-no-numpy-mul2.py # Multiply a matrix with a matrix # 20220216 Create this example. import matrix as mat # multiply a matrix with a matrix # define a list as two-dimension matrix m1 = [ [1, 1, 1], [1, 2, 1], ] m2 = [ [1, 1], [1, 2], [1, 1], ] m3 = mulmat2(m1, m2) # display ...
18.956522
53
0.540138
# 0480-matrix-no-numpy-mul2.py # Multiply a matrix with a matrix # 20220216 Create this example. import matrix as mat # multiply a matrix with a matrix def mulmat2(m1, m2): # assume column of 1st and row of 2nd are matched row = len(m1) # m1 (row x mid) mid = len(m1[0]) # m2 (mid x col) col =...
432
0
22
c32bc0aa73f4cc496b7277089923a9e0bfb3eaaf
3,122
py
Python
cluster/run.py
jfunston/chogori-platform
e329e892411eeb2142c8d4b603944244d3c559d4
[ "MIT" ]
null
null
null
cluster/run.py
jfunston/chogori-platform
e329e892411eeb2142c8d4b603944244d3c559d4
[ "MIT" ]
null
null
null
cluster/run.py
jfunston/chogori-platform
e329e892411eeb2142c8d4b603944244d3c559d4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ''' MIT License Copyright (c) 2020 Futurewei Cloud 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, cop...
44.6
119
0.71909
#!/usr/bin/env python3 ''' MIT License Copyright (c) 2020 Futurewei Cloud 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, cop...
0
0
0
cd988cca68d439b9a17f793b879fa7a77f20d02a
544
py
Python
toy-evolve/advection_sine_minmod_lf_rk2.py
IanHawke/toy-evolve
a1490327dd19492e2c0bb0d9c6909abe8b167135
[ "MIT" ]
null
null
null
toy-evolve/advection_sine_minmod_lf_rk2.py
IanHawke/toy-evolve
a1490327dd19492e2c0bb0d9c6909abe8b167135
[ "MIT" ]
null
null
null
toy-evolve/advection_sine_minmod_lf_rk2.py
IanHawke/toy-evolve
a1490327dd19492e2c0bb0d9c6909abe8b167135
[ "MIT" ]
null
null
null
# Advection test evolution from models import advection from bcs import periodic from simulation import simulation from methods import minmod_lf from rk import rk2 from grid import grid Npoints = 20 Ngz = 2 interval = grid([-0.5, 0.5], Npoints, Ngz) model = advection.advection(v=1, initia...
28.631579
76
0.694853
# Advection test evolution from models import advection from bcs import periodic from simulation import simulation from methods import minmod_lf from rk import rk2 from grid import grid Npoints = 20 Ngz = 2 interval = grid([-0.5, 0.5], Npoints, Ngz) model = advection.advection(v=1, initia...
0
0
0
ebf355dc451b7f254a5306471df7eb03b476bbc6
651
py
Python
math_ops_linear algebra/tf_tensordot.py
Asurada2015/TFAPI_translation
1c8d9432b0b8a21c2bb5670b25456d095d0a1ecf
[ "Apache-2.0" ]
7
2017-10-19T13:59:24.000Z
2019-11-26T03:40:08.000Z
math_ops_linear algebra/tf_tensordot.py
Asurada2015/TFAPI_translation
1c8d9432b0b8a21c2bb5670b25456d095d0a1ecf
[ "Apache-2.0" ]
null
null
null
math_ops_linear algebra/tf_tensordot.py
Asurada2015/TFAPI_translation
1c8d9432b0b8a21c2bb5670b25456d095d0a1ecf
[ "Apache-2.0" ]
5
2018-08-22T02:57:03.000Z
2020-03-05T07:14:21.000Z
import tensorflow as tf """tf.tensordot(a, b, axes, name=None) 功能:同numpy.tensordot,根据axis计算点乘。 输入:axes=1或axes=[[1],[0]],即为矩阵乘。""" a = tf.constant([1, 2, 3, 4], shape=[2, 2], dtype=tf.float64) b = tf.constant([1, 2, 3, 4], shape=[2, 2], dtype=tf.float64) z = tf.tensordot(a, b, axes=[[1], [1]]) # 第一个矩阵的行乘上第二个矩阵的行 z1 ...
28.304348
62
0.55914
import tensorflow as tf """tf.tensordot(a, b, axes, name=None) 功能:同numpy.tensordot,根据axis计算点乘。 输入:axes=1或axes=[[1],[0]],即为矩阵乘。""" a = tf.constant([1, 2, 3, 4], shape=[2, 2], dtype=tf.float64) b = tf.constant([1, 2, 3, 4], shape=[2, 2], dtype=tf.float64) z = tf.tensordot(a, b, axes=[[1], [1]]) # 第一个矩阵的行乘上第二个矩阵的行 z1 ...
0
0
0
6c7b9112f8212a010bb2403a1e9434ff9122c009
653
py
Python
delpy/errors.py
discordextremelist/del.py
cfb274c7341f297219225911ffbe82e06b668d83
[ "MIT" ]
2
2020-06-29T22:24:11.000Z
2021-01-19T19:35:15.000Z
delpy/errors.py
discordextremelist/del.py
cfb274c7341f297219225911ffbe82e06b668d83
[ "MIT" ]
5
2020-07-01T13:03:37.000Z
2021-10-03T21:34:14.000Z
delpy/errors.py
discordextremelist/del.py
cfb274c7341f297219225911ffbe82e06b668d83
[ "MIT" ]
3
2020-05-23T03:37:23.000Z
2021-01-20T04:54:51.000Z
class DELpy(Exception): """ Raise this so people could easily catch the exception """ pass
29.681818
64
0.588055
class DELpy(Exception): """ Raise this so people could easily catch the exception """ pass class HTTPException(DELpy): def __init__(self, *args, **kwargs): self.raised_error = kwargs.get('raised_error', None) if isinstance(self.raised_error, dict): self.status ...
443
21
77
af04ccd5613fc991ffd9f0612b1286cb60a1fb67
4,853
py
Python
examples/follow_suit/feature_extractor/edl_gen/generate_predictions.py
DanCunnington/FFNSL
fb81da074e95210b75869265d10b645ffde88549
[ "MIT" ]
null
null
null
examples/follow_suit/feature_extractor/edl_gen/generate_predictions.py
DanCunnington/FFNSL
fb81da074e95210b75869265d10b645ffde88549
[ "MIT" ]
null
null
null
examples/follow_suit/feature_extractor/edl_gen/generate_predictions.py
DanCunnington/FFNSL
fb81da074e95210b75869265d10b645ffde88549
[ "MIT" ]
null
null
null
import tensorflow as tf import sys import numpy as np import json import torch import pandas as pd from tensorflow.saved_model import tag_constants from os.path import dirname, realpath # Add root directory to path file_path = realpath(__file__) file_dir = dirname(file_path) parent_dir = dirname(file_dir) sys.path.app...
42.570175
114
0.59489
import tensorflow as tf import sys import numpy as np import json import torch import pandas as pd from tensorflow.saved_model import tag_constants from os.path import dirname, realpath # Add root directory to path file_path = realpath(__file__) file_dir = dirname(file_path) parent_dir = dirname(file_dir) sys.path.app...
286
13
49
e300fd872179c96d2e6a5a81b24d1e6c14c183a9
2,227
py
Python
plugins/maintenance/metadata.py
graphite-project/ceres
0804b6e15857aec461aec76b365bd94c40e30fae
[ "Apache-2.0" ]
175
2015-01-19T10:09:57.000Z
2022-03-31T18:23:03.000Z
plugins/maintenance/metadata.py
graphite-project/ceres
0804b6e15857aec461aec76b365bd94c40e30fae
[ "Apache-2.0" ]
31
2015-01-19T10:40:20.000Z
2017-11-02T17:40:45.000Z
plugins/maintenance/metadata.py
graphite-project/ceres
0804b6e15857aec461aec76b365bd94c40e30fae
[ "Apache-2.0" ]
49
2015-01-06T05:46:51.000Z
2021-05-13T03:12:06.000Z
from itertools import izip try: from carbon.storage import loadStorageSchemas, loadAggregationSchemas SCHEMAS = loadStorageSchemas() AGGREGATION_SCHEMAS = loadAggregationSchemas() except ImportError: SCHEMAS = [] AGGREGATION_SCHEMAS = [] # Update metadata to match carbon schemas.
28.551282
92
0.709026
from itertools import izip try: from carbon.storage import loadStorageSchemas, loadAggregationSchemas SCHEMAS = loadStorageSchemas() AGGREGATION_SCHEMAS = loadAggregationSchemas() except ImportError: SCHEMAS = [] AGGREGATION_SCHEMAS = [] def determine_metadata(metric): metadata = dict(timeStep=None, rete...
1,887
0
45
03de755a2c06e11ce58ae1a848e106a95f38b6bd
932
py
Python
tests/unit/test_filter.py
hugoledoux/pointcloudset
075ddc3f840cc6c2e2505452c1eb9f2e4fce5e99
[ "MIT" ]
23
2021-06-14T10:11:27.000Z
2022-03-07T13:44:36.000Z
tests/unit/test_filter.py
hugoledoux/pointcloudset
075ddc3f840cc6c2e2505452c1eb9f2e4fce5e99
[ "MIT" ]
23
2021-06-14T05:45:23.000Z
2022-03-31T08:24:04.000Z
tests/unit/test_filter.py
hugoledoux/pointcloudset
075ddc3f840cc6c2e2505452c1eb9f2e4fce5e99
[ "MIT" ]
3
2021-07-07T06:58:34.000Z
2021-09-28T11:52:07.000Z
import numpy as np import pytest import pytest_check as check from pointcloudset import PointCloud from pointcloudset.config import OPS @pytest.mark.parametrize("op", ["<", ">=", "<="])
31.066667
74
0.729614
import numpy as np import pytest import pytest_check as check from pointcloudset import PointCloud from pointcloudset.config import OPS def test_wrong_filter(testpointcloud_mini_real: PointCloud): with pytest.raises(ValueError): testpointcloud_mini_real.filter("not available") def test_qf1(testpointclo...
649
0
91
f07666f43ab5eca82f395e078a80a4df700d2441
1,101
py
Python
tngs_results/models.py
rdemolgen/NGS-LIMS
9f10d264897c8b3da32520cd57bc47a592aa6131
[ "MIT" ]
null
null
null
tngs_results/models.py
rdemolgen/NGS-LIMS
9f10d264897c8b3da32520cd57bc47a592aa6131
[ "MIT" ]
null
null
null
tngs_results/models.py
rdemolgen/NGS-LIMS
9f10d264897c8b3da32520cd57bc47a592aa6131
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. #class Al_batch_output(models.Models): #class Coverage_by_base(models.Model): # patient = models.ForeignKey(Patient, on_delete=models.CASCADE) # chromosome = models.CharField(max_length=2) # genomic_coordinate = models.CharField(max_length=30) # dep...
39.321429
93
0.739328
from django.db import models # Create your models here. class Sample_list(models.Model): sequencing_panel_version = models.CharField(max_length=100, blank=True) capture_number = models.CharField(max_length=100, blank=True) mody_number = models.CharField(max_length=100, blank=True) ex_number = models.Ch...
27
544
22
ba228815b4ba54f8ab37ab6654102f19eb9da246
293
py
Python
djangular/scrumboard/urls.py
abumukhlis/djangular
a506152187f2703db1fa98c98a8ddd5afdbe9a8a
[ "MIT" ]
null
null
null
djangular/scrumboard/urls.py
abumukhlis/djangular
a506152187f2703db1fa98c98a8ddd5afdbe9a8a
[ "MIT" ]
null
null
null
djangular/scrumboard/urls.py
abumukhlis/djangular
a506152187f2703db1fa98c98a8ddd5afdbe9a8a
[ "MIT" ]
null
null
null
from django.conf.urls import url from django.views.generic import TemplateView from .api import ListApi, CardApi urlpatterns = [ url(r'^lists$', ListApi.as_view()), url(r'^cards$', CardApi.as_view()), url(r'^home', TemplateView.as_view(template_name="scrumboard/home.html")), ]
24.416667
78
0.713311
from django.conf.urls import url from django.views.generic import TemplateView from .api import ListApi, CardApi urlpatterns = [ url(r'^lists$', ListApi.as_view()), url(r'^cards$', CardApi.as_view()), url(r'^home', TemplateView.as_view(template_name="scrumboard/home.html")), ]
0
0
0
390e4182344bb991febf84b82ca8a4ceb2fc1bfc
100
py
Python
march_madness/apps.py
HashSplat-fun/MarchMadnessSite
0686db44e64f47d7761b371f4d4857531fb840b5
[ "MIT" ]
null
null
null
march_madness/apps.py
HashSplat-fun/MarchMadnessSite
0686db44e64f47d7761b371f4d4857531fb840b5
[ "MIT" ]
null
null
null
march_madness/apps.py
HashSplat-fun/MarchMadnessSite
0686db44e64f47d7761b371f4d4857531fb840b5
[ "MIT" ]
null
null
null
from django.apps import AppConfig
16.666667
36
0.78
from django.apps import AppConfig class MarchMadnessConfig(AppConfig): name = 'march_madness'
0
42
23
1b1712b7058692c9686ce8295db8b259edd19095
142
py
Python
equality/util/default_root.py
grayfallstown/equality-blockchain
019425b703f6b013e441481ac43389a80415f2f1
[ "Apache-2.0" ]
10
2021-07-04T15:14:12.000Z
2021-10-17T14:52:56.000Z
equality/util/default_root.py
grayfallstown/equality-blockchain
019425b703f6b013e441481ac43389a80415f2f1
[ "Apache-2.0" ]
11
2021-07-04T19:31:36.000Z
2022-01-11T02:46:23.000Z
equality/util/default_root.py
grayfallstown/equality-blockchain
019425b703f6b013e441481ac43389a80415f2f1
[ "Apache-2.0" ]
11
2021-07-04T21:49:17.000Z
2021-10-04T17:45:38.000Z
import os from pathlib import Path DEFAULT_ROOT_PATH = Path(os.path.expanduser(os.getenv("EQUALITY_ROOT", "~/.equality/mainnet"))).resolve()
28.4
105
0.767606
import os from pathlib import Path DEFAULT_ROOT_PATH = Path(os.path.expanduser(os.getenv("EQUALITY_ROOT", "~/.equality/mainnet"))).resolve()
0
0
0
5f895f7e7d7b781823aafb786f119240b7436565
3,116
py
Python
Python_datetime_module.py
smalik-hub/Python_datetime_module
f42d4db8d7ed2f07bc32f4206f483d38ade4e23a
[ "MIT" ]
null
null
null
Python_datetime_module.py
smalik-hub/Python_datetime_module
f42d4db8d7ed2f07bc32f4206f483d38ade4e23a
[ "MIT" ]
null
null
null
Python_datetime_module.py
smalik-hub/Python_datetime_module
f42d4db8d7ed2f07bc32f4206f483d38ade4e23a
[ "MIT" ]
null
null
null
import datetime def days_in_month(year, month): """ Inputs: year - an integer between datetime.MINYEAR and datetime.MAXYEAR representing the year month - an integer between 1 and 12 representing the month Returns: The number of days in the input month. """ if month...
29.121495
74
0.630937
import datetime def days_in_month(year, month): """ Inputs: year - an integer between datetime.MINYEAR and datetime.MAXYEAR representing the year month - an integer between 1 and 12 representing the month Returns: The number of days in the input month. """ if month...
0
0
0
4b1c1c2bd38dd57c68ccab633122f46bc2570918
11,854
py
Python
analyze_metric_evaluation_results.py
webis-de/IJCAI-21
1f9fccb07d0d6d1b73da787a1bce499b641c3a5e
[ "MIT" ]
1
2022-03-26T22:30:30.000Z
2022-03-26T22:30:30.000Z
analyze_metric_evaluation_results.py
webis-de/IJCAI-21
1f9fccb07d0d6d1b73da787a1bce499b641c3a5e
[ "MIT" ]
1
2021-09-08T08:26:38.000Z
2021-09-08T08:26:38.000Z
analyze_metric_evaluation_results.py
webis-de/IJCAI-21
1f9fccb07d0d6d1b73da787a1bce499b641c3a5e
[ "MIT" ]
null
null
null
import argparse import json import logging import numpy as np from datetime import datetime from os import path from webias.constants import BIAS_METRIC_LIMITS, BIAS_METRIC_ZERO, LOGGING_CONFIG def calculate_mean_values(results_per_run: list) -> float: """Calculate the mean values of each dimension for the give...
38.487013
100
0.667117
import argparse import json import logging import numpy as np from datetime import datetime from os import path from webias.constants import BIAS_METRIC_LIMITS, BIAS_METRIC_ZERO, LOGGING_CONFIG def calculate_mean_values(results_per_run: list) -> float: """Calculate the mean values of each dimension for the give...
1,442
0
23
260e08f52c4a559ef75f86a101130dc3363e4001
465
py
Python
main.py
GrayXu/NCBI-SuppMat-Spider
bb225095d4fa00a0192c9f5d5b517e3ec155a758
[ "MIT" ]
null
null
null
main.py
GrayXu/NCBI-SuppMat-Spider
bb225095d4fa00a0192c9f5d5b517e3ec155a758
[ "MIT" ]
1
2021-06-12T04:26:46.000Z
2021-06-18T09:28:57.000Z
main.py
GrayXu/NCBI-SuppMat-Spider
bb225095d4fa00a0192c9f5d5b517e3ec155a758
[ "MIT" ]
null
null
null
from searcher import NCBI_searcher # this api_key is only for testing. So pls use your api_key from ur NCBI accounts, otherwise it will effect your speed api_key = '1cb4976dd163905feedacce5da0f10552309' keywords = "metabolomics" keywords_file = "propanoyl-CoA" searcher = NCBI_searcher(api_key=api_key, len_limit=0) ...
29.0625
118
0.806452
from searcher import NCBI_searcher # this api_key is only for testing. So pls use your api_key from ur NCBI accounts, otherwise it will effect your speed api_key = '1cb4976dd163905feedacce5da0f10552309' keywords = "metabolomics" keywords_file = "propanoyl-CoA" searcher = NCBI_searcher(api_key=api_key, len_limit=0) ...
0
0
0
5d9e84e34faf87ac083193ffe9a009e679d66385
40,212
py
Python
general/tasks_importer/sdk/swagger_client/api/users_api.py
CitizenScienceCenter/c3s_tools
36479905ffbeb2bdabbc2be145dfe4fe7258ef5d
[ "Apache-2.0" ]
null
null
null
general/tasks_importer/sdk/swagger_client/api/users_api.py
CitizenScienceCenter/c3s_tools
36479905ffbeb2bdabbc2be145dfe4fe7258ef5d
[ "Apache-2.0" ]
1
2022-03-22T22:11:21.000Z
2022-03-22T22:11:21.000Z
general/tasks_importer/sdk/swagger_client/api/users_api.py
CitizenScienceCenter/c3s_tools
36479905ffbeb2bdabbc2be145dfe4fe7258ef5d
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ CCCS No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 0.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import re # noqa:...
36.556364
154
0.582985
# coding: utf-8 """ CCCS No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 0.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import re # noqa:...
120
0
27
996bffea97a333db29faf95a43c538be6ca01063
1,167
py
Python
bin/generate-download-arrow.py
imagejan/fiji
e0c077afd0b121fc8e74955e7b5bda7175e111ed
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2022-03-14T06:26:16.000Z
2022-03-14T06:26:16.000Z
bin/generate-download-arrow.py
imagejan/fiji
e0c077afd0b121fc8e74955e7b5bda7175e111ed
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2016-09-24T16:47:43.000Z
2016-09-24T16:47:43.000Z
bin/generate-download-arrow.py
imagejan/fiji
e0c077afd0b121fc8e74955e7b5bda7175e111ed
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
from ij import IJ from ij.gui import ShapeRoi from java.awt import Color, Polygon from java.awt.geom import PathIterator w = int(36) h = int(42) lineWidth = 2 arrowWidth = 16 image = IJ.createImage('Download arrow', 'rgb', w, h, 1) ip = image.getProcessor() ip.setLineWidth(lineWidth) ip.setColor(Color(0x65a4e3)) roi ...
29.175
56
0.723222
from ij import IJ from ij.gui import ShapeRoi from java.awt import Color, Polygon from java.awt.geom import PathIterator w = int(36) h = int(42) lineWidth = 2 arrowWidth = 16 image = IJ.createImage('Download arrow', 'rgb', w, h, 1) ip = image.getProcessor() ip.setLineWidth(lineWidth) ip.setColor(Color(0x65a4e3)) roi ...
0
0
0
12d2de0f1f8174b334d048e70abd7141b3e876ad
10,289
py
Python
tests/test_lnd.py
ln2max/noma
766536768b0f839cfb1bcaf2fbaa024381898a3f
[ "Apache-2.0" ]
6
2019-03-18T16:55:13.000Z
2021-07-14T23:49:15.000Z
tests/test_lnd.py
ln2max/noma
766536768b0f839cfb1bcaf2fbaa024381898a3f
[ "Apache-2.0" ]
75
2019-03-19T02:45:30.000Z
2019-12-28T04:11:33.000Z
tests/test_lnd.py
ln2max/noma
766536768b0f839cfb1bcaf2fbaa024381898a3f
[ "Apache-2.0" ]
2
2019-03-28T08:44:02.000Z
2019-07-17T20:26:47.000Z
"""Test LND functions""" import logging import random import json import unittest from unittest import mock from noma import lnd import noma.config as cfg class TestComplete(Exception): """Raise me to stop the test, we're done""" class Unhappy(Exception): """Something has gone wrong""" class LndCreateWall...
37.010791
83
0.59549
"""Test LND functions""" import logging import random import json import unittest from unittest import mock from noma import lnd import noma.config as cfg class TestComplete(Exception): """Raise me to stop the test, we're done""" class Unhappy(Exception): """Something has gone wrong""" class LndCreateWall...
2,096
0
327
4736efc5a7f23956e05fb23e36e0c4950f3c51db
815
py
Python
scouter/sns/publiclyExposedTopics.py
hmussana/Scouter
d0a6acd5756e0d9c13f4a2a193a77340fa0df28a
[ "MIT" ]
11
2018-12-21T11:45:45.000Z
2021-05-26T08:13:32.000Z
scouter/sns/publiclyExposedTopics.py
hmussana/Scouter
d0a6acd5756e0d9c13f4a2a193a77340fa0df28a
[ "MIT" ]
2
2019-10-11T07:50:33.000Z
2021-05-29T22:50:07.000Z
scouter/sns/publiclyExposedTopics.py
hmussana/Scouter
d0a6acd5756e0d9c13f4a2a193a77340fa0df28a
[ "MIT" ]
7
2019-04-12T06:45:31.000Z
2021-05-26T08:13:55.000Z
#!/usr/bin/python3 from jmespath import search as queryJson import boto3 import json if __name__ == '__main__': main()
24.69697
66
0.733742
#!/usr/bin/python3 from jmespath import search as queryJson import boto3 import json def parseJson(query, jsonObj): return(queryJson(query, jsonObj)) def topicsList(clientApiCall): topics = clientApiCall.list_topics() topicsList = parseJson('Topics[*].TopicArn', topics) return(topicsList) def getTopicsAttrs(...
601
0
92
347bed225edd8991964acd25c8ce13fed93d87e7
4,475
py
Python
trove/tests/unittests/configuration/test_configuration_controller.py
denismakogon/trove
753f80d4c833efbd83eb184b10aba0d18babe34b
[ "Apache-2.0" ]
null
null
null
trove/tests/unittests/configuration/test_configuration_controller.py
denismakogon/trove
753f80d4c833efbd83eb184b10aba0d18babe34b
[ "Apache-2.0" ]
null
null
null
trove/tests/unittests/configuration/test_configuration_controller.py
denismakogon/trove
753f80d4c833efbd83eb184b10aba0d18babe34b
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Rackspace # 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 app...
35.23622
78
0.599777
# Copyright 2014 Rackspace # 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 app...
3,390
42
260
8d99575efdd9d8ac0a1ddf8a867f547e81324f04
912
py
Python
profile_generator/schema/map_schema.py
nethy/profile-generator
9bc54bed36b84b45902d75a273739480b4ff2204
[ "MIT" ]
null
null
null
profile_generator/schema/map_schema.py
nethy/profile-generator
9bc54bed36b84b45902d75a273739480b4ff2204
[ "MIT" ]
null
null
null
profile_generator/schema/map_schema.py
nethy/profile-generator
9bc54bed36b84b45902d75a273739480b4ff2204
[ "MIT" ]
null
null
null
from collections.abc import Mapping from typing import Any, Optional from .object_schema import InvalidObjectError, InvalidTypeError from .schema import Schema, SchemaError
28.5
72
0.656798
from collections.abc import Mapping from typing import Any, Optional from .object_schema import InvalidObjectError, InvalidTypeError from .schema import Schema, SchemaError class MapSchema(Schema): def __init__(self, value_schema: Schema): self._value_schema = value_schema def validate(self, data: A...
607
3
126
81c7f112eb4726b9839c0de9698433750367c98d
4,710
py
Python
bed_vcf_match/read_vcf.py
troycomi/bed_vcf_match
66ca12b3d41cfa9bea060f1a97afae9095ee8db5
[ "MIT" ]
null
null
null
bed_vcf_match/read_vcf.py
troycomi/bed_vcf_match
66ca12b3d41cfa9bea060f1a97afae9095ee8db5
[ "MIT" ]
null
null
null
bed_vcf_match/read_vcf.py
troycomi/bed_vcf_match
66ca12b3d41cfa9bea060f1a97afae9095ee8db5
[ "MIT" ]
null
null
null
''' read_vcf Read a vcf file into pandas data frame ''' import pandas as pd from typing import TextIO, List import numpy as np def import_vcf(vcf_reader: TextIO, dataframe: pd.DataFrame = None, check_phasing: bool = False, individuals: List[str] = None) -> pd.DataFrame:...
33.169014
79
0.552866
''' read_vcf Read a vcf file into pandas data frame ''' import pandas as pd from typing import TextIO, List import numpy as np def import_vcf(vcf_reader: TextIO, dataframe: pd.DataFrame = None, check_phasing: bool = False, individuals: List[str] = None) -> pd.DataFrame:...
199
0
57
63833a69f08732db5d51c9fe36cdb142b3ed81b7
5,966
py
Python
tests/test_transport.py
serathius/elasticsearch-raven
17d316d5a466ba2636d9ce4e58cbeb532d3e1dab
[ "MIT" ]
1
2016-12-09T12:54:40.000Z
2016-12-09T12:54:40.000Z
tests/test_transport.py
serathius/elasticsearch-raven
17d316d5a466ba2636d9ce4e58cbeb532d3e1dab
[ "MIT" ]
1
2021-06-01T21:57:44.000Z
2021-06-01T21:57:44.000Z
tests/test_transport.py
serathius/elasticsearch-raven
17d316d5a466ba2636d9ce4e58cbeb532d3e1dab
[ "MIT" ]
1
2016-05-25T02:15:14.000Z
2016-05-25T02:15:14.000Z
import datetime import logging import string from unittest import TestCase from unittest import mock from elasticsearch_raven import exceptions from elasticsearch_raven import transport
40.040268
79
0.620181
import datetime import logging import string from unittest import TestCase from unittest import mock from elasticsearch_raven import exceptions from elasticsearch_raven import transport class DummyMock(mock.Mock): def __eq__(self, other): return True class ParseSentryHeadersTest(TestCase): def test...
4,905
280
587
8ef1a24988dd589571d3796d3f6dd516e65ebe82
3,152
py
Python
helpers.py
its-development/django-api-wrapper
30627cbd14363d5abf806e7eddbceb653189d3c6
[ "MIT" ]
null
null
null
helpers.py
its-development/django-api-wrapper
30627cbd14363d5abf806e7eddbceb653189d3c6
[ "MIT" ]
2
2021-07-02T10:00:32.000Z
2022-02-06T17:47:56.000Z
helpers.py
its-development/django-api-wrapper
30627cbd14363d5abf806e7eddbceb653189d3c6
[ "MIT" ]
null
null
null
import binascii import functools import json import os from rest_framework import permissions from rest_framework import exceptions from api.exceptions import * from api.cryptor import ApiCrypto
23.522388
108
0.580584
import binascii import functools import json import os from rest_framework import permissions from rest_framework import exceptions from api.exceptions import * from api.cryptor import ApiCrypto class ApiHelpers: @staticmethod def rgetattr(obj, attr, *args): def _getattr(obj, attr): ret...
2,496
435
23
a4cdd1af856d3df5d9e3908e411c9966e40a2a98
1,563
py
Python
escalate/core/experiment_templates/wf1.py
darkreactions/ESCALATE
0020da00b81a2dd80d1c9fd72d2edf92b519e605
[ "MIT" ]
11
2020-09-29T13:59:02.000Z
2022-03-23T04:57:52.000Z
escalate/core/experiment_templates/wf1.py
darkreactions/ESCALATE
0020da00b81a2dd80d1c9fd72d2edf92b519e605
[ "MIT" ]
95
2019-11-18T20:10:49.000Z
2022-03-31T17:09:49.000Z
escalate/core/experiment_templates/wf1.py
darkreactions/ESCALATE
0020da00b81a2dd80d1c9fd72d2edf92b519e605
[ "MIT" ]
2
2021-11-26T18:22:08.000Z
2022-03-31T11:57:10.000Z
from core.models.view_tables import Edocument from core.models.core_tables import TypeDef from core.utilities.wf1_utils import generate_robot_file, generate_robot_file_wf1 #
50.419355
92
0.677543
from core.models.view_tables import Edocument from core.models.core_tables import TypeDef from core.utilities.wf1_utils import generate_robot_file, generate_robot_file_wf1 # def perovskite_demo(data, q1, experiment_copy_uuid, exp_name, exp_template): robotfile_blob = generate_robot_file(q1,data,'Symyx_96_well_0003...
1,343
0
45
7852f40ea6ee2265d5791ae3e1f2a09a296ae580
12,587
py
Python
hotpot/models/single_context_models.py
faezezps/SiMQC
cb1f4dc02469189dfb4713b194bdb691f99aa930
[ "BSD-3-Clause" ]
36
2019-06-18T02:30:07.000Z
2021-02-20T03:45:29.000Z
hotpot/models/single_context_models.py
faezezps/SiMQC
cb1f4dc02469189dfb4713b194bdb691f99aa930
[ "BSD-3-Clause" ]
3
2019-09-18T06:52:46.000Z
2020-12-29T06:55:34.000Z
hotpot/models/single_context_models.py
faezezps/SiMQC
cb1f4dc02469189dfb4713b194bdb691f99aa930
[ "BSD-3-Clause" ]
4
2019-11-29T13:56:06.000Z
2021-07-12T12:55:44.000Z
from typing import Optional, Union import tensorflow as tf from tensorflow.python.layers.core import fully_connected from hotpot.elmo.elmo import ElmoWrapper from hotpot.elmo.lm_model import LanguageModel from hotpot.encoder import QuestionsAndParagraphsEncoder from hotpot.models.multiple_context_models import Multipl...
52.665272
120
0.66529
from typing import Optional, Union import tensorflow as tf from tensorflow.python.layers.core import fully_connected from hotpot.elmo.elmo import ElmoWrapper from hotpot.elmo.lm_model import LanguageModel from hotpot.encoder import QuestionsAndParagraphsEncoder from hotpot.models.multiple_context_models import Multipl...
10,059
0
189
a2400a9a19b6520a2473a735fb5534581c2c1f3d
8,106
py
Python
atomsci/ddm/utils/pubchem_utils.py
truatpasteurdotfr/AMPL
0295d56166632647b194e7221eab315bac74dfe0
[ "MIT" ]
1
2019-12-18T20:02:58.000Z
2019-12-18T20:02:58.000Z
atomsci/ddm/utils/pubchem_utils.py
kim79sookyung/AMPL
68dd7a8004272d22ef5d975c57e1e9149c820f8b
[ "MIT" ]
3
2022-01-13T03:51:49.000Z
2022-03-12T00:59:39.000Z
atomsci/ddm/utils/pubchem_utils.py
kim79sookyung/AMPL
68dd7a8004272d22ef5d975c57e1e9149c820f8b
[ "MIT" ]
null
null
null
import urllib.request as urlreq import io,json import pandas as pd # ****************************************************************************************************************************************** def download_smiles(myList,intv=1) : """Retrieve canonical SMILES strings for a list of input INCHIKEYS. ...
34.939655
235
0.535283
import urllib.request as urlreq import io,json import pandas as pd # ****************************************************************************************************************************************** def download_smiles(myList,intv=1) : """Retrieve canonical SMILES strings for a list of input INCHIKEYS. ...
0
0
0
637349731dc5abe031e309e3d3391e433f291f81
7,785
py
Python
others/save_model_result.py
prise-3d/Thesis-NoiseDetection-rfe-attributes
f5062a03876e8f270f79c3d811bf7ba1ec7d9ba1
[ "MIT" ]
null
null
null
others/save_model_result.py
prise-3d/Thesis-NoiseDetection-rfe-attributes
f5062a03876e8f270f79c3d811bf7ba1ec7d9ba1
[ "MIT" ]
null
null
null
others/save_model_result.py
prise-3d/Thesis-NoiseDetection-rfe-attributes
f5062a03876e8f270f79c3d811bf7ba1ec7d9ba1
[ "MIT" ]
null
null
null
# main imports import numpy as np import pandas as pd import sys, os, argparse import subprocess import time import json # models imports from sklearn.utils import shuffle from sklearn.externals import joblib from sklearn.metrics import accuracy_score, f1_score, recall_score, roc_auc_score from sklearn.model_selectio...
35.711009
131
0.721901
# main imports import numpy as np import pandas as pd import sys, os, argparse import subprocess import time import json # models imports from sklearn.utils import shuffle from sklearn.externals import joblib from sklearn.metrics import accuracy_score, f1_score, recall_score, roc_auc_score from sklearn.model_selectio...
6,673
0
23
f70e8a5e36b7b6fa9004e87414745e7ec78d75f6
96
py
Python
venv/lib/python3.8/site-packages/keyring/backends/SecretService.py
GiulianaPola/select_repeats
17a0d053d4f874e42cf654dd142168c2ec8fbd11
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/keyring/backends/SecretService.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/keyring/backends/SecretService.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/b7/df/1e/7980259571f5a43b5ac0c36215dfc4b1485986d14af13b40a821ae930f
96
96
0.895833
/home/runner/.cache/pip/pool/b7/df/1e/7980259571f5a43b5ac0c36215dfc4b1485986d14af13b40a821ae930f
0
0
0
e08073175d03b4f48203fa10fa8dd47aa503d0ff
1,201
py
Python
projecteuler/Question6.py
ashwinchidambaram/PythonCode
8599fa1210e9eefbb9f680712c2edabb7acd2157
[ "MIT" ]
null
null
null
projecteuler/Question6.py
ashwinchidambaram/PythonCode
8599fa1210e9eefbb9f680712c2edabb7acd2157
[ "MIT" ]
null
null
null
projecteuler/Question6.py
ashwinchidambaram/PythonCode
8599fa1210e9eefbb9f680712c2edabb7acd2157
[ "MIT" ]
null
null
null
# Ashwin Chidambaram ## # Task: Find the difference between the sum of the squares of the first one hundred natural numbers and the square of the sum ## ##########################################################...
28.595238
130
0.502914
# Ashwin Chidambaram ## # Task: Find the difference between the sum of the squares of the first one hundred natural numbers and the square of the sum ## ##########################################################...
0
0
0
d0ce3093e578c01c7faea1b1868d054bfd3f17a5
403
py
Python
helpinghand/convenience_gates.py
QuantMarkFramework/helpinghand
c0afef640210e9b1d1a94065f521a42356b8d3a3
[ "MIT" ]
1
2021-08-12T18:20:33.000Z
2021-08-12T18:20:33.000Z
helpinghand/convenience_gates.py
QuantMarkFramework/helpinghand
c0afef640210e9b1d1a94065f521a42356b8d3a3
[ "MIT" ]
null
null
null
helpinghand/convenience_gates.py
QuantMarkFramework/helpinghand
c0afef640210e9b1d1a94065f521a42356b8d3a3
[ "MIT" ]
null
null
null
import tequila as tq import numpy as np import typing
33.583333
97
0.719603
import tequila as tq import numpy as np import typing def V(target: typing.Union[list, int], control: typing.Union[list, int] = None) -> tq.QCircuit: return tq.gates.Rx(target=target, control=control, angle=0.5 * np.pi) def Vdg(target: typing.Union[list, int], control: typing.Union[list, int] = None) -> tq.QCircui...
301
0
46
ecbef9a6ed4d21337a001701bed1db3e21bb31d4
2,978
py
Python
Experiments/MAIN/m_evaluate_model.py
j-wilhelm/Automatic_description_generation
5f2eff0cbc42917e04d23abf231394e98d0db554
[ "FSFAP" ]
null
null
null
Experiments/MAIN/m_evaluate_model.py
j-wilhelm/Automatic_description_generation
5f2eff0cbc42917e04d23abf231394e98d0db554
[ "FSFAP" ]
null
null
null
Experiments/MAIN/m_evaluate_model.py
j-wilhelm/Automatic_description_generation
5f2eff0cbc42917e04d23abf231394e98d0db554
[ "FSFAP" ]
null
null
null
# These need to be at the top to allow for running on cluster import os import random import sys cwd = os.getcwd() sys.path.append(cwd) # Other imports import json import getopt from h_captionmodel import CaptionModel import pickle import time import tensorflow.keras.backend as K arguments = getopt.g...
38.179487
121
0.658496
# These need to be at the top to allow for running on cluster import os import random import sys cwd = os.getcwd() sys.path.append(cwd) # Other imports import json import getopt from h_captionmodel import CaptionModel import pickle import time import tensorflow.keras.backend as K arguments = getopt.g...
0
0
0
004f63b232f6de82e719f0bb174dfade3dd58281
2,613
py
Python
cowin_notifier.py
nirmannarang/cowin-slot-notifier
87e626973cecfd7829e748e8d3b5cf80610feb0e
[ "MIT" ]
null
null
null
cowin_notifier.py
nirmannarang/cowin-slot-notifier
87e626973cecfd7829e748e8d3b5cf80610feb0e
[ "MIT" ]
null
null
null
cowin_notifier.py
nirmannarang/cowin-slot-notifier
87e626973cecfd7829e748e8d3b5cf80610feb0e
[ "MIT" ]
null
null
null
#! /usr/bin/python3 import os import telegram_send import requests from datetime import date,datetime from time import time,ctime,sleep #Refresh Interval in seconds ref_interval = 5 d_today = date.today() age_limit = 18 __district_code = "363" dt = d_today.strftime("%d/%m/%Y") __date_today = str(dt).replace("/","...
35.310811
218
0.66437
#! /usr/bin/python3 import os import telegram_send import requests from datetime import date,datetime from time import time,ctime,sleep #Refresh Interval in seconds ref_interval = 5 d_today = date.today() age_limit = 18 __district_code = "363" dt = d_today.strftime("%d/%m/%Y") __date_today = str(dt).replace("/","...
2,043
0
47
7d809051c608d71775c172088fd72765826b9a34
819
py
Python
more_autograding_examples/python_random_input_output/submissions/solution.py
elihschiff/Submitty
8b980997b6f1dfcd73eb4cf4cca43398e67f96dc
[ "BSD-3-Clause" ]
411
2016-06-14T20:52:25.000Z
2022-03-31T21:20:25.000Z
more_autograding_examples/python_random_input_output/submissions/solution.py
KaelanWillauer/Submitty
cf9b6ceda15ec0a661e2ca81ea7864790094c64a
[ "BSD-3-Clause" ]
5,730
2016-05-23T21:04:32.000Z
2022-03-31T10:08:06.000Z
more_autograding_examples/python_random_input_output/submissions/solution.py
KaelanWillauer/Submitty
cf9b6ceda15ec0a661e2ca81ea7864790094c64a
[ "BSD-3-Clause" ]
423
2016-09-22T21:11:30.000Z
2022-03-29T18:55:28.000Z
import sys print ("#icebucketchallenge vs #alsicebucketchallenge, percentage change") print_change(200,500,100,300) print_change(500,2000,300,1500) print_change(2000,12000,1500,13000) print_change(12000,24000,13000,25000) print_change(24000,65000,25000,105000) print_change(65000,70000,105000,85000) # read the last te...
26.419355
74
0.70696
import sys def percent_change(old,new): return int(100*(float(new)-old)/old) def print_change(old1, new1, old2, new2): p1 = percent_change(old1,new1) p2 = percent_change(old2,new2) print (p1, "vs", p2) print ("#icebucketchallenge vs #alsicebucketchallenge, percentage change") print_change(200,500,100...
163
0
46
c5a2237689eaa1a6a7770832e2664d34b8c27402
930
py
Python
setup.py
Alex-Linhares/gscholar
25388d57dacf5f1fe905321dbf9ec59362c1e92c
[ "MIT" ]
1
2019-06-25T16:55:33.000Z
2019-06-25T16:55:33.000Z
setup.py
Alex-Linhares/gscholar
25388d57dacf5f1fe905321dbf9ec59362c1e92c
[ "MIT" ]
null
null
null
setup.py
Alex-Linhares/gscholar
25388d57dacf5f1fe905321dbf9ec59362c1e92c
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup import gscholar setup(name='gscholar', version=gscholar.__VERSION__, description='Python library to query Google Scholar.', long_description='This package provides a python package and CLI to query google scholar and get references in various form...
31
163
0.61828
#!/usr/bin/env python from setuptools import setup import gscholar setup(name='gscholar', version=gscholar.__VERSION__, description='Python library to query Google Scholar.', long_description='This package provides a python package and CLI to query google scholar and get references in various form...
0
0
0
79065e5eadad7bc0e642e51294c0672d7f8e4553
13,148
py
Python
gensim/gensim/corpora/hashdictionary.py
Abas-Khan/thesis
b733bd4382371203cc4992571890619a2e314047
[ "MIT" ]
null
null
null
gensim/gensim/corpora/hashdictionary.py
Abas-Khan/thesis
b733bd4382371203cc4992571890619a2e314047
[ "MIT" ]
null
null
null
gensim/gensim/corpora/hashdictionary.py
Abas-Khan/thesis
b733bd4382371203cc4992571890619a2e314047
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2012 Homer Strong, Radim Rehurek # Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html """This module implements the "hashing trick" [1]_ -- a mapping between words and their integer ids using a fixed and static mapping. Notes -----...
37.673352
120
0.604198
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2012 Homer Strong, Radim Rehurek # Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html """This module implements the "hashing trick" [1]_ -- a mapping between words and their integer ids using a fixed and static mapping. Notes -----...
116
0
53
0928532889196818149862e59a74c27dd46f1441
8,365
py
Python
Labs_Python/lab6_the_basics/albright_lab6c.py
King-Nivek/Scripting_Class
80e8fd0a5fcb1fddebd41d5bda416208cdd564e0
[ "RSA-MD" ]
null
null
null
Labs_Python/lab6_the_basics/albright_lab6c.py
King-Nivek/Scripting_Class
80e8fd0a5fcb1fddebd41d5bda416208cdd564e0
[ "RSA-MD" ]
null
null
null
Labs_Python/lab6_the_basics/albright_lab6c.py
King-Nivek/Scripting_Class
80e8fd0a5fcb1fddebd41d5bda416208cdd564e0
[ "RSA-MD" ]
null
null
null
#!/usr/bin/python #'''''''10''''''''20''''''''30''''''''40''''''''50''''''''60''''''''70''''''''80 '''_____________________________________________________________________________ ' ' Created By: Kevin M. Albright ' Creation Date: 03.24.2014 ' ' Modified By: Kevin M. Albright ' Last Modified: 03.30.2014 ' ...
32.049808
80
0.613628
#!/usr/bin/python #'''''''10''''''''20''''''''30''''''''40''''''''50''''''''60''''''''70''''''''80 '''_____________________________________________________________________________ ' ' Created By: Kevin M. Albright ' Creation Date: 03.24.2014 ' ' Modified By: Kevin M. Albright ' Last Modified: 03.30.2014 ' ...
3,097
0
220
468c0c8c4c5d08e8bce7f0e65e1ea5486f733075
4,720
py
Python
src/modules/produce_summary.py
jannesgg/fake-news-detection
6d898ca1b9aef98825d2c6f0bf2c65ab023aca74
[ "MIT" ]
null
null
null
src/modules/produce_summary.py
jannesgg/fake-news-detection
6d898ca1b9aef98825d2c6f0bf2c65ab023aca74
[ "MIT" ]
null
null
null
src/modules/produce_summary.py
jannesgg/fake-news-detection
6d898ca1b9aef98825d2c6f0bf2c65ab023aca74
[ "MIT" ]
null
null
null
from nltk.tokenize import sent_tokenize from nltk.corpus import stopwords from sklearn.metrics.pairwise import cosine_similarity import en_coref_lg import networkx as nx import pandas as pd import numpy as np nlp = en_coref_lg.load() # paths # embedding_path = "../../data/embeddings/" # article summarizer # def g...
27.764706
86
0.587076
from nltk.tokenize import sent_tokenize from nltk.corpus import stopwords from sklearn.metrics.pairwise import cosine_similarity import en_coref_lg import networkx as nx import pandas as pd import numpy as np nlp = en_coref_lg.load() # paths # embedding_path = "../../data/embeddings/" # article summarizer # def g...
96
0
26
1bcf57c3832199ff88668abc4e195417ac28330b
5,270
py
Python
koda/edge/network.py
federico-terzi/koda
9a179bbce6f013fbbbf7cf4862facaaed7f487ce
[ "MIT" ]
8
2020-01-16T11:16:20.000Z
2020-07-15T12:45:51.000Z
koda/edge/network.py
federico-terzi/koda
9a179bbce6f013fbbbf7cf4862facaaed7f487ce
[ "MIT" ]
null
null
null
koda/edge/network.py
federico-terzi/koda
9a179bbce6f013fbbbf7cf4862facaaed7f487ce
[ "MIT" ]
1
2020-02-18T07:30:46.000Z
2020-02-18T07:30:46.000Z
import cv2 import keras import numpy as np from keras.models import * from keras.layers import * from keras.optimizers import * from .base import EdgeDetector # Size of the edge mask matrix TARGET_IMAGE_SIZE = 256 class UNetEdgeDetector(EdgeDetector): """ EdgeDetector implementation which uses the UNet deep ...
51.666667
136
0.650285
import cv2 import keras import numpy as np from keras.models import * from keras.layers import * from keras.optimizers import * from .base import EdgeDetector # Size of the edge mask matrix TARGET_IMAGE_SIZE = 256 class UNetEdgeDetector(EdgeDetector): """ EdgeDetector implementation which uses the UNet deep ...
3,624
0
27
f4a63b1bed458fdc17c2176e8f50420f8e9e7bac
528
py
Python
cds_ils/migrator/series/__init__.py
kpsherva/cds-ils
8eeeb6e03784756ed24895c8d030682f9d733e8a
[ "MIT" ]
6
2020-09-18T00:13:38.000Z
2021-11-14T17:12:19.000Z
cds_ils/migrator/series/__init__.py
kpsherva/cds-ils
8eeeb6e03784756ed24895c8d030682f9d733e8a
[ "MIT" ]
321
2020-08-28T15:42:25.000Z
2022-03-14T15:11:50.000Z
cds_ils/migrator/series/__init__.py
kpsherva/cds-ils
8eeeb6e03784756ed24895c8d030682f9d733e8a
[ "MIT" ]
8
2019-07-10T07:02:08.000Z
2020-08-10T14:07:25.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2020 CERN. # # CDS-ILS is free software; you can redistribute it and/or modify it under # the terms of the MIT License; see LICENSE file for more details. """CDS-ILS migrator module.""" from cds_dojson.overdo import OverdoBase serial_marc21 = OverdoBase(entry_point_models="cd...
29.333333
78
0.767045
# -*- coding: utf-8 -*- # # Copyright (C) 2020 CERN. # # CDS-ILS is free software; you can redistribute it and/or modify it under # the terms of the MIT License; see LICENSE file for more details. """CDS-ILS migrator module.""" from cds_dojson.overdo import OverdoBase serial_marc21 = OverdoBase(entry_point_models="cd...
0
0
0
47840db448f0bdb400c56476b1de52d29ca4ebfe
2,710
py
Python
papahana_flask_server_demo/papahana/controllers/instrument_controller.py
KeckObservatory/papahana_backend
4259e236d9ec672e0b36482cc9f81426c468f941
[ "BSD-3-Clause" ]
null
null
null
papahana_flask_server_demo/papahana/controllers/instrument_controller.py
KeckObservatory/papahana_backend
4259e236d9ec672e0b36482cc9f81426c468f941
[ "BSD-3-Clause" ]
null
null
null
papahana_flask_server_demo/papahana/controllers/instrument_controller.py
KeckObservatory/papahana_backend
4259e236d9ec672e0b36482cc9f81426c468f941
[ "BSD-3-Clause" ]
null
null
null
import connexion import six from papahana.models.instrument_enum import InstrumentEnum from papahana.models.instrument_package import InstrumentPackage from papahana import util from papahana.controllers import controller_helper as utils def instrument_packages(instrument): """instrument_packages Retrieves...
31.882353
82
0.734317
import connexion import six from papahana.models.instrument_enum import InstrumentEnum from papahana.models.instrument_package import InstrumentPackage from papahana import util from papahana.controllers import controller_helper as utils def instrument_packages(instrument): """instrument_packages Retrieves...
211
0
23
42e4b898e84c33fec197ea5476852ef49b6329d4
15,992
py
Python
dvmvs/fusionnet/model.py
hashi0203/deep-video-mvs
b3943a9249d522dca3e6cd603e427f611cc7bad5
[ "MIT" ]
1
2022-01-10T07:51:41.000Z
2022-01-10T07:51:41.000Z
dvmvs/fusionnet/model.py
MorchelPeng/deep-video-mvs
fa14288f149c5af7b2a49092f729f5c4f44517ba
[ "MIT" ]
null
null
null
dvmvs/fusionnet/model.py
MorchelPeng/deep-video-mvs
fa14288f149c5af7b2a49092f729f5c4f44517ba
[ "MIT" ]
null
null
null
from collections import OrderedDict import torch from torchvision import models from torchvision.ops import FeaturePyramidNetwork from dvmvs.config import Config from dvmvs.convlstm import MVSLayernormConvLSTMCell from dvmvs.layers import conv_layer, depth_layer_3x3 fpn_output_channels = 32 hyper_channels = 32 ...
47.313609
127
0.55978
from collections import OrderedDict import torch from torchvision import models from torchvision.ops import FeaturePyramidNetwork from dvmvs.config import Config from dvmvs.convlstm import MVSLayernormConvLSTMCell from dvmvs.layers import conv_layer, depth_layer_3x3 fpn_output_channels = 32 hyper_channels = 32 cla...
14,727
180
760
71b3e231730fc9bb2e954c9f746b2fd3d339d508
8,650
py
Python
fabfile.py
rajusjohn/jenkinstest
6c8f3733cc7df98f72373b6cf1985fa4383d9c78
[ "MIT" ]
null
null
null
fabfile.py
rajusjohn/jenkinstest
6c8f3733cc7df98f72373b6cf1985fa4383d9c78
[ "MIT" ]
null
null
null
fabfile.py
rajusjohn/jenkinstest
6c8f3733cc7df98f72373b6cf1985fa4383d9c78
[ "MIT" ]
null
null
null
#!/usr/bin/python from fabric.operations import local as lrun, run from fabric.api import env,cd,run,settings,task from fabric.colors import cyan,red import sys # Usage for VXML -> fab domain_vxml -H <hostname> # Usage for VCS -> fab domain_vcs -H <hostname> env.user = 'root' # Take the host name argument and split it ...
42.401961
119
0.656532
#!/usr/bin/python from fabric.operations import local as lrun, run from fabric.api import env,cd,run,settings,task from fabric.colors import cyan,red import sys # Usage for VXML -> fab domain_vxml -H <hostname> # Usage for VCS -> fab domain_vcs -H <hostname> env.user = 'root' # Take the host name argument and split it ...
7,448
0
274
72d2c91505cab9af198c7abf77799ae787b62e03
571
py
Python
utility/lti.py
FelipeCapati/pid-tuning-using-pso
1b53668f76bf692cdd87edae2148a71bf6c28c70
[ "MIT" ]
null
null
null
utility/lti.py
FelipeCapati/pid-tuning-using-pso
1b53668f76bf692cdd87edae2148a71bf6c28c70
[ "MIT" ]
null
null
null
utility/lti.py
FelipeCapati/pid-tuning-using-pso
1b53668f76bf692cdd87edae2148a71bf6c28c70
[ "MIT" ]
null
null
null
import sympy as sy from scipy import signal
38.066667
81
0.66725
import sympy as sy from scipy import signal def lti_to_sympy(lsys, symplify=True): s = sy.Symbol('s') G = sy.Poly(lsys.num, s) / sy.Poly(lsys.den, s) return sy.simplify(G) if symplify else G def sympy_to_lti(xpr, s=sy.Symbol('s')): num, den = sy.simplify(xpr).as_numer_denom() # expressions p_num...
481
0
46
f6da5428789043e08eb9f1ce35cedf0b3fe38998
362
py
Python
screenplay/screenplay/condition.py
jack-skerrett-bluefruit/Python-ScreenPlay
045486bdf441fa3a7a6cde59e7b7e12a7d53fbed
[ "MIT" ]
null
null
null
screenplay/screenplay/condition.py
jack-skerrett-bluefruit/Python-ScreenPlay
045486bdf441fa3a7a6cde59e7b7e12a7d53fbed
[ "MIT" ]
null
null
null
screenplay/screenplay/condition.py
jack-skerrett-bluefruit/Python-ScreenPlay
045486bdf441fa3a7a6cde59e7b7e12a7d53fbed
[ "MIT" ]
null
null
null
from .question import Question from .matcher import Matcher see_that = Condition
24.133333
98
0.729282
from .question import Question from .matcher import Matcher class Condition: def __init__(self, question: Question, expected: Matcher): self.question = question self.expected = expected def check_as(self, actor): assert self.expected.matches(self.question.answered_by(actor)), self.exp...
207
-5
76
2ff2609b5b28fb9e8b8e1b895ad7a240ffa90447
53
py
Python
dictionaria/scripts/__init__.py
LimorNaaman/dictionaria
9f8a5139af99eb4ae1af9ed0b340120c486cf112
[ "Apache-2.0" ]
5
2017-07-23T15:04:01.000Z
2018-08-10T01:27:08.000Z
dictionaria/scripts/__init__.py
LimorNaaman/dictionaria
9f8a5139af99eb4ae1af9ed0b340120c486cf112
[ "Apache-2.0" ]
72
2015-09-14T07:54:54.000Z
2021-03-15T10:29:26.000Z
dictionaria/scripts/__init__.py
LimorNaaman/dictionaria
9f8a5139af99eb4ae1af9ed0b340120c486cf112
[ "Apache-2.0" ]
4
2015-12-06T22:00:35.000Z
2018-05-04T12:16:53.000Z
# from clld.web.util.helpers import rendered_sentence
26.5
51
0.849057
# from clld.web.util.helpers import rendered_sentence
0
0
0
f45fc4dc6db53b674b8272a626b89695026d1c52
954
py
Python
alacarte/templatetags/alacarte.py
cerealcable/django-alacarte
4ad6fa013365fbcc1034db2eca8f6cab441d14fb
[ "MIT" ]
null
null
null
alacarte/templatetags/alacarte.py
cerealcable/django-alacarte
4ad6fa013365fbcc1034db2eca8f6cab441d14fb
[ "MIT" ]
null
null
null
alacarte/templatetags/alacarte.py
cerealcable/django-alacarte
4ad6fa013365fbcc1034db2eca8f6cab441d14fb
[ "MIT" ]
1
2022-01-13T17:03:29.000Z
2022-01-13T17:03:29.000Z
from __future__ import absolute_import from django import template from django.template.loader import render_to_string from alacarte import get_menus register = template.Library() @register.tag
23.85
62
0.6174
from __future__ import absolute_import from django import template from django.template.loader import render_to_string from alacarte import get_menus register = template.Library() class AlacarteNode(template.Node): def __init__(self, menus): self.menus = menus def render(self, context): # ...
643
13
98
e83973e01df7502aa177d6a269b81d0459b3de02
92
py
Python
inferno/trainers/callbacks/__init__.py
imagirom/inferno
9ea69f8236a0d015898944a4e75d532007d615aa
[ "Apache-2.0" ]
null
null
null
inferno/trainers/callbacks/__init__.py
imagirom/inferno
9ea69f8236a0d015898944a4e75d532007d615aa
[ "Apache-2.0" ]
null
null
null
inferno/trainers/callbacks/__init__.py
imagirom/inferno
9ea69f8236a0d015898944a4e75d532007d615aa
[ "Apache-2.0" ]
null
null
null
from .base import CallbackEngine, Callback from . import essentials from . import scheduling
30.666667
42
0.826087
from .base import CallbackEngine, Callback from . import essentials from . import scheduling
0
0
0