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
892ddbf9761a9ac75a73aa7d4771197be4dee5a9
10,730
py
Python
internalScripts/analysis-scripts/GeneratePhenotypeROCCurve.py
kbase/probabilistic_annotation
2454925ca98c80c73bda327a0eff8aed94c5a48d
[ "MIT" ]
null
null
null
internalScripts/analysis-scripts/GeneratePhenotypeROCCurve.py
kbase/probabilistic_annotation
2454925ca98c80c73bda327a0eff8aed94c5a48d
[ "MIT" ]
null
null
null
internalScripts/analysis-scripts/GeneratePhenotypeROCCurve.py
kbase/probabilistic_annotation
2454925ca98c80c73bda327a0eff8aed94c5a48d
[ "MIT" ]
null
null
null
#!/usr/bin/python -u import argparse import sys import re import os import traceback from operator import itemgetter, attrgetter from biokbase.probabilistic_annotation.Client import _read_inifile from biokbase.workspaceService.Client import * desc = ''' Given a JSON object calculate the false positive, negative rates...
54.191919
170
0.656198
#!/usr/bin/python -u import argparse import sys import re import os import traceback from operator import itemgetter, attrgetter from biokbase.probabilistic_annotation.Client import _read_inifile from biokbase.workspaceService.Client import * desc = ''' Given a JSON object calculate the false positive, negative rates...
0
0
0
fd0f329ab7fc7ffe7339fd4bccaa6df4c6149391
836
py
Python
modules/sentiment.py
jsamar1/wtfthisarticle
e0ed4ff0e70822339d9b8c6bed49ac165f2f97a2
[ "MIT" ]
null
null
null
modules/sentiment.py
jsamar1/wtfthisarticle
e0ed4ff0e70822339d9b8c6bed49ac165f2f97a2
[ "MIT" ]
7
2021-03-18T21:01:21.000Z
2022-03-11T23:28:59.000Z
modules/sentiment.py
jsamar1/wtfthisarticle
e0ed4ff0e70822339d9b8c6bed49ac165f2f97a2
[ "MIT" ]
1
2018-09-30T10:09:53.000Z
2018-09-30T10:09:53.000Z
# Imports the Google Cloud client library from google.cloud import language from google.cloud.language import enums from google.cloud.language import types import json import re
27.866667
78
0.696172
# Imports the Google Cloud client library from google.cloud import language from google.cloud.language import enums from google.cloud.language import types import json import re def analyze(text): # Instantiates a client client = language.LanguageServiceClient() # The text to analyze document = types...
634
0
23
13fa97be4cc3d64f3acac671d8fd28e7569d6f67
64
py
Python
Dangerous/Golismero/thirdparty_libs/requests_ntlm/__init__.py
JeyZeta/Dangerous-
824ea6b571eda98bb855f176361e9b35dfda578e
[ "MIT" ]
null
null
null
Dangerous/Golismero/thirdparty_libs/requests_ntlm/__init__.py
JeyZeta/Dangerous-
824ea6b571eda98bb855f176361e9b35dfda578e
[ "MIT" ]
null
null
null
Dangerous/Golismero/thirdparty_libs/requests_ntlm/__init__.py
JeyZeta/Dangerous-
824ea6b571eda98bb855f176361e9b35dfda578e
[ "MIT" ]
1
2018-07-04T18:35:16.000Z
2018-07-04T18:35:16.000Z
from requests_ntlm import HttpNtlmAuth __all__ = [HttpNtlmAuth]
21.333333
38
0.84375
from requests_ntlm import HttpNtlmAuth __all__ = [HttpNtlmAuth]
0
0
0
b9440083d88705c3693e34c4cc54c50c8df8fe7f
634
py
Python
liliput/migrations/0002_verify_and_count.py
strassan/www.kaifeck.de
b54698e8e57eaedbc4cb4ea3335fc719df92108f
[ "MIT" ]
2
2020-07-29T17:35:31.000Z
2021-06-06T11:37:49.000Z
liliput/migrations/0002_verify_and_count.py
strassan/www.kaifeck.de
b54698e8e57eaedbc4cb4ea3335fc719df92108f
[ "MIT" ]
4
2020-10-28T19:06:02.000Z
2021-01-11T16:06:46.000Z
liliput/migrations/0002_verify_and_count.py
strassan/www.kaifeck.de
b54698e8e57eaedbc4cb4ea3335fc719df92108f
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-06-30 14:42 from django.db import migrations, models
24.384615
65
0.585174
# Generated by Django 3.0.7 on 2020-06-30 14:42 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('liliput', '0001_initial'), ] operations = [ migrations.AddField( model_name='shortlink', name='number_of_requests', ...
0
520
23
c361e3d7e233b7a9094e7596ce0361df9cd3aa9d
946
py
Python
src/gamesbyexample/tutorialguess1.py
RedStarfish/PythonStdioGames
0fa4d42f1a0c2dde403e70cdd47e7a9e81430efe
[ "MIT" ]
null
null
null
src/gamesbyexample/tutorialguess1.py
RedStarfish/PythonStdioGames
0fa4d42f1a0c2dde403e70cdd47e7a9e81430efe
[ "MIT" ]
null
null
null
src/gamesbyexample/tutorialguess1.py
RedStarfish/PythonStdioGames
0fa4d42f1a0c2dde403e70cdd47e7a9e81430efe
[ "MIT" ]
null
null
null
"""Tutorial: Guess the Number, by Al Sweigart al@inventwithpython.com Part 1 of a tutorial to make a "Guess the Number" game, bit by bit.""" # Try copying the code in this program on your own and running the # program before moving on to part 2. (You don't have to copy the # comments.) # Everything after a # is a "c...
36.384615
72
0.739958
"""Tutorial: Guess the Number, by Al Sweigart al@inventwithpython.com Part 1 of a tutorial to make a "Guess the Number" game, bit by bit.""" # Try copying the code in this program on your own and running the # program before moving on to part 2. (You don't have to copy the # comments.) # Everything after a # is a "c...
0
0
0
0af06fb53569af078a78e8ae77d7643b0412ff90
251
py
Python
tests/fixtures/auth.py
reiem/python-economic-rest
0d2df7fef8ea6a567f9a651e4f70ac4045180b79
[ "BSD-3-Clause" ]
null
null
null
tests/fixtures/auth.py
reiem/python-economic-rest
0d2df7fef8ea6a567f9a651e4f70ac4045180b79
[ "BSD-3-Clause" ]
null
null
null
tests/fixtures/auth.py
reiem/python-economic-rest
0d2df7fef8ea6a567f9a651e4f70ac4045180b79
[ "BSD-3-Clause" ]
null
null
null
from economic.auth import Authentication import pytest from _pytest.fixtures import SubRequest @pytest.fixture
20.916667
40
0.752988
from economic.auth import Authentication import pytest from _pytest.fixtures import SubRequest @pytest.fixture def auth(request: SubRequest): return Authentication( request.config.option.app_id, request.config.option.token )
116
0
22
f5ce58a0e4e3e74a06b00a176dd1ef7357320590
4,710
py
Python
ptranking/ltr_adhoc/listwise/lambdarank.py
ii-research-ranking/ptranking
2794e6e086bcd87ce177f40194339e9b825e9f4c
[ "MIT" ]
64
2018-09-19T17:04:04.000Z
2020-04-30T07:54:04.000Z
ptranking/ltr_adhoc/listwise/lambdarank.py
ii-research-ranking/ptranking
2794e6e086bcd87ce177f40194339e9b825e9f4c
[ "MIT" ]
4
2018-09-27T06:59:02.000Z
2020-01-05T12:35:12.000Z
ptranking/ltr_adhoc/listwise/lambdarank.py
ii-research-ranking/ptranking
2794e6e086bcd87ce177f40194339e9b825e9f4c
[ "MIT" ]
11
2018-09-28T07:17:51.000Z
2020-03-12T06:28:35.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Description Christopher J.C. Burges, Robert Ragno, and Quoc Viet Le. 2006. Learning to Rank with Nonsmooth Cost Functions. In Proceedings of NIPS conference. 193–200. """ import torch import torch.nn.functional as F from ptranking.data.data_utils import LABEL_TYPE fro...
44.018692
149
0.661146
#!/usr/bin/env python # -*- coding: utf-8 -*- """Description Christopher J.C. Burges, Robert Ragno, and Quoc Viet Le. 2006. Learning to Rank with Nonsmooth Cost Functions. In Proceedings of NIPS conference. 193–200. """ import torch import torch.nn.functional as F from ptranking.data.data_utils import LABEL_TYPE fro...
366
0
52
78d1e28cfc697d589decfb83ba1a7618a037e58a
1,928
py
Python
dash_extra_components/TableOfContents.py
plotly/dash-extra-components
947b13e045806b4f158d77d84bd5ade938fce96e
[ "MIT" ]
12
2019-01-03T21:13:59.000Z
2021-08-10T22:55:52.000Z
dash_extra_components/TableOfContents.py
plotly/dash-extra-components
947b13e045806b4f158d77d84bd5ade938fce96e
[ "MIT" ]
7
2018-12-20T22:08:23.000Z
2021-05-07T23:54:50.000Z
dash_extra_components/TableOfContents.py
plotly/dash-extra-components
947b13e045806b4f158d77d84bd5ade938fce96e
[ "MIT" ]
1
2021-06-18T19:12:40.000Z
2021-06-18T19:12:40.000Z
# AUTO GENERATED FILE - DO NOT EDIT from dash.development.base_component import Component, _explicitize_args class TableOfContents(Component): """A TableOfContents component. Build a table of contents list with links to the headers tag. Keyword arguments: - id (string; optional): Unique identifier for the compo...
49.435897
222
0.695539
# AUTO GENERATED FILE - DO NOT EDIT from dash.development.base_component import Component, _explicitize_args class TableOfContents(Component): """A TableOfContents component. Build a table of contents list with links to the headers tag. Keyword arguments: - id (string; optional): Unique identifier for the compo...
1,072
0
26
feb7dbf6b94b36b4b780077450bb6fc7721e7421
1,191
py
Python
tests/integration/models/test_front.py
Lordshinjo/asyncpraw
d94d89a992d9b5b300439ea6884a9df1d95511e2
[ "BSD-2-Clause" ]
72
2020-07-14T02:02:21.000Z
2022-03-15T13:10:02.000Z
tests/integration/models/test_front.py
Lordshinjo/asyncpraw
d94d89a992d9b5b300439ea6884a9df1d95511e2
[ "BSD-2-Clause" ]
68
2020-07-16T05:29:43.000Z
2022-03-14T12:04:56.000Z
tests/integration/models/test_front.py
Lordshinjo/asyncpraw
d94d89a992d9b5b300439ea6884a9df1d95511e2
[ "BSD-2-Clause" ]
19
2020-07-22T15:34:30.000Z
2022-03-27T20:28:46.000Z
"""Test asyncpraw.models.front.""" from .. import IntegrationTest
34.028571
82
0.648195
"""Test asyncpraw.models.front.""" from .. import IntegrationTest class TestFront(IntegrationTest): async def test_best(self): with self.use_cassette(): submissions = await self.async_list(self.reddit.front.best()) assert len(submissions) == 100 async def test_controversial(self):...
928
12
184
eeae97e3e1918c205fa4325233b0d7d25463308e
3,303
py
Python
app/routes.py
kasztp/Scrabble
6d97044a539a76271f8540709efa332a92362c84
[ "MIT" ]
1
2020-11-18T20:05:43.000Z
2020-11-18T20:05:43.000Z
app/routes.py
kasztp/Scrabble
6d97044a539a76271f8540709efa332a92362c84
[ "MIT" ]
1
2021-12-11T15:43:27.000Z
2021-12-11T15:48:51.000Z
app/routes.py
kasztp/Scrabble
6d97044a539a76271f8540709efa332a92362c84
[ "MIT" ]
4
2020-04-01T16:53:12.000Z
2021-01-14T10:19:02.000Z
from flask import render_template, flash, redirect, request, url_for from app import app from .forms import ConfigForm from .scrabble_logic import Scrabble tile_draw = [] grouped = {} hasblank = 0 @app.route('/') @app.route('/index') @app.route('/table') @app.route('/config', methods=['GET', 'POST'])
39.795181
92
0.536482
from flask import render_template, flash, redirect, request, url_for from app import app from .forms import ConfigForm from .scrabble_logic import Scrabble tile_draw = [] grouped = {} hasblank = 0 @app.route('/') def root(): return render_template('index.html', title='Home', scores=grouped, ...
2,904
0
88
cc8939a085c9bc31314eff4ab8366df0f9f57fe8
3,091
py
Python
elkconfdparser/parser.py
iaroslavscript/elk-confd-parser
6930afa981468ddf24c80a33feba5e10ca870b9d
[ "MIT" ]
null
null
null
elkconfdparser/parser.py
iaroslavscript/elk-confd-parser
6930afa981468ddf24c80a33feba5e10ca870b9d
[ "MIT" ]
18
2021-07-29T18:24:28.000Z
2021-08-01T07:44:16.000Z
elkconfdparser/parser.py
iaroslavscript/elk-confd-parser
6930afa981468ddf24c80a33feba5e10ca870b9d
[ "MIT" ]
null
null
null
import enum from elkconfdparser import errors
25.758333
97
0.527337
import enum from elkconfdparser import errors class _BlockType(enum.Enum): NONE = enum.auto() COMMENT = enum.auto() STRING = enum.auto() VARIABLE = enum.auto() IGNORED = enum.auto() class _ParserAction(enum.IntFlag): NONE = 0 IGNORE_SYMBOL = enum.auto() DROP_VALUE = enum.auto() ...
2,673
251
115
1f8b2985369841e17a42d01d25ee774e67366b41
754
py
Python
Rasp_Pi_2018/should_i_water/send_mail_task.py
BitKnitting/should_I_water
8d849671892b7bbc9e947e0ba041c4c3527b6bbd
[ "MIT" ]
2
2018-05-20T00:26:31.000Z
2018-06-13T16:22:48.000Z
Rasp_Pi_2018/should_i_water/send_mail_task.py
BitKnitting/should_I_water
8d849671892b7bbc9e947e0ba041c4c3527b6bbd
[ "MIT" ]
null
null
null
Rasp_Pi_2018/should_i_water/send_mail_task.py
BitKnitting/should_I_water
8d849671892b7bbc9e947e0ba041c4c3527b6bbd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import sys LIB_PATH = os.environ['LADYBUG_LIB_PATH'] sys.path.append(LIB_PATH) from build_message_lib import BuildMessage from plot_weather_lib import PlotWeather from send_message_lib import SendMessage # TODO: Error checking needs improvement. # plot_weather() returns True (could cre...
34.272727
77
0.777188
#!/usr/bin/env python3 import os import sys LIB_PATH = os.environ['LADYBUG_LIB_PATH'] sys.path.append(LIB_PATH) from build_message_lib import BuildMessage from plot_weather_lib import PlotWeather from send_message_lib import SendMessage # TODO: Error checking needs improvement. # plot_weather() returns True (could cre...
0
0
0
a938390837c72c215ad582ed7f13afb2eb5ac461
9,644
py
Python
autocompletion.py
giladbarnea/autocompletion
2e67ba64951754c34348756d5790714f04725ed7
[ "MIT" ]
1
2020-10-23T05:22:04.000Z
2020-10-23T05:22:04.000Z
autocompletion.py
giladbarnea/autocompletion
2e67ba64951754c34348756d5790714f04725ed7
[ "MIT" ]
null
null
null
autocompletion.py
giladbarnea/autocompletion
2e67ba64951754c34348756d5790714f04725ed7
[ "MIT" ]
null
null
null
''':' autocomplete() { if [ $# != 2 ] then echo "USAGE: autocomplete <command> <config-path>" return 1 fi local COMMAND="$1" local CONFIG_PATH="$(readlink -f "$2")" eval " _complete_$COMMAND() { local THIS_FILE=\"\$(readlink -f \"\${BASH_SOURCE[0]}\")\...
35.586716
120
0.579013
''':' autocomplete() { if [ $# != 2 ] then echo "USAGE: autocomplete <command> <config-path>" return 1 fi local COMMAND="$1" local CONFIG_PATH="$(readlink -f "$2")" eval " _complete_$COMMAND() { local THIS_FILE=\"\$(readlink -f \"\${BASH_SOURCE[0]}\")\...
7,858
11
485
860cbfb88ef007ae90c1c2fb1f851645620e3633
63
py
Python
habitica/__init__.py
clckwrkbdgr/habitica
2fbbdf1da8de5803b8132f2d51817ffc671364b2
[ "MIT" ]
1
2020-05-10T09:20:08.000Z
2020-05-10T09:20:08.000Z
habitica/__init__.py
clckwrkbdgr/habitica
2fbbdf1da8de5803b8132f2d51817ffc671364b2
[ "MIT" ]
null
null
null
habitica/__init__.py
clckwrkbdgr/habitica
2fbbdf1da8de5803b8132f2d51817ffc671364b2
[ "MIT" ]
null
null
null
from . import api, cli, extra, core from .core import Habitica
21
35
0.746032
from . import api, cli, extra, core from .core import Habitica
0
0
0
6b9b3ccccc7e73c7edc904ee8464ac9829c22050
220
py
Python
haravan/resources/blog.py
vivekpatel111/HaravanAPI
bec18d43b485c966e1396ce990c7b0fd40c96de0
[ "MIT" ]
null
null
null
haravan/resources/blog.py
vivekpatel111/HaravanAPI
bec18d43b485c966e1396ce990c7b0fd40c96de0
[ "MIT" ]
null
null
null
haravan/resources/blog.py
vivekpatel111/HaravanAPI
bec18d43b485c966e1396ce990c7b0fd40c96de0
[ "MIT" ]
1
2019-03-08T06:28:48.000Z
2019-03-08T06:28:48.000Z
from ..base import HaravanResource from haravan import mixins import haravan
22
62
0.768182
from ..base import HaravanResource from haravan import mixins import haravan class Blog(HaravanResource, mixins.Metafields, mixins.Events): def articles(self): return haravan.Article.find(blog_id=self.id)
51
41
50
bb0cca9978a14262fdad4a5cb740fe6cfea8d3e5
576
py
Python
abc229/abc229_d.py
Vermee81/practice-coding-contests
78aada60fa75f208ee0eef337b33b27b1c260d18
[ "MIT" ]
null
null
null
abc229/abc229_d.py
Vermee81/practice-coding-contests
78aada60fa75f208ee0eef337b33b27b1c260d18
[ "MIT" ]
null
null
null
abc229/abc229_d.py
Vermee81/practice-coding-contests
78aada60fa75f208ee0eef337b33b27b1c260d18
[ "MIT" ]
null
null
null
# https://atcoder.jp/contests/abc229/tasks/abc229_d S = input() K = int(input()) ans = 0 tail_idx = 0 cum_dot = [0] * (len(S) + 1) for i in range(len(S)): if S[i] == '.': cum_dot[i + 1] = cum_dot[i] + 1 else: cum_dot[i + 1] = cum_dot[i] for head_idx in range(len(S)): while tail_idx <= l...
20.571429
75
0.581597
# https://atcoder.jp/contests/abc229/tasks/abc229_d S = input() K = int(input()) ans = 0 tail_idx = 0 cum_dot = [0] * (len(S) + 1) for i in range(len(S)): if S[i] == '.': cum_dot[i + 1] = cum_dot[i] + 1 else: cum_dot[i + 1] = cum_dot[i] def can_swap_to_x(start: int, end: int) -> bool: if...
106
0
23
0fadf45c92b0a0910501554f2fdcc4259660a3ab
3,513
py
Python
c7n/resources/shield.py
fadiguezel/cloud-custodian
147fffcf9a109ffd4248a746775b55def5a727c5
[ "Apache-2.0" ]
null
null
null
c7n/resources/shield.py
fadiguezel/cloud-custodian
147fffcf9a109ffd4248a746775b55def5a727c5
[ "Apache-2.0" ]
1
2021-02-24T04:42:37.000Z
2021-02-24T04:42:37.000Z
c7n/resources/shield.py
fadiguezel/cloud-custodian
147fffcf9a109ffd4248a746775b55def5a727c5
[ "Apache-2.0" ]
1
2021-01-26T10:03:21.000Z
2021-01-26T10:03:21.000Z
# Copyright 2015-2017 Capital One Services, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
34.441176
83
0.652149
# Copyright 2015-2017 Capital One Services, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
1,417
747
94
ebc7816cbcf82d03551d822b1195efe4648cf28f
1,309
py
Python
07-Forms/newDjangoProject/newDjangoProject/todo_app/views.py
M0673N/Python-Web-Basics
cecc27f7a12f990756edcc8885290eb3b2e487b7
[ "MIT" ]
null
null
null
07-Forms/newDjangoProject/newDjangoProject/todo_app/views.py
M0673N/Python-Web-Basics
cecc27f7a12f990756edcc8885290eb3b2e487b7
[ "MIT" ]
null
null
null
07-Forms/newDjangoProject/newDjangoProject/todo_app/views.py
M0673N/Python-Web-Basics
cecc27f7a12f990756edcc8885290eb3b2e487b7
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from newDjangoProject.todo_app.forms import TodoForm from newDjangoProject.todo_app.models import Todo
26.714286
65
0.637128
from django.shortcuts import render, redirect from newDjangoProject.todo_app.forms import TodoForm from newDjangoProject.todo_app.models import Todo def index(request): todos = Todo.objects.all() context = {'todos': todos} return render(request, 'index.html', context=context) def create(request): i...
1,063
0
92
9e2765f3e4657262b967d2c8984a56f0d3a891f1
883
py
Python
exercicios/aula18-ex084.py
anildoferreira/CursoPython-PyCharm
56c3962d6cc7d43482a9649a482619adba780d81
[ "MIT" ]
null
null
null
exercicios/aula18-ex084.py
anildoferreira/CursoPython-PyCharm
56c3962d6cc7d43482a9649a482619adba780d81
[ "MIT" ]
null
null
null
exercicios/aula18-ex084.py
anildoferreira/CursoPython-PyCharm
56c3962d6cc7d43482a9649a482619adba780d81
[ "MIT" ]
null
null
null
temp = [] princ = [] c = maior = menor = 0 continuar = ' ' while continuar not in 'Nn': c += 1 print(f'{c}º PESSOA') print('-' * 10) temp.append(str(input(f'Digite o seu nome: '))) temp.append(float(input(f'Digite o seu peso: '))) if c == 1: maior = menor = temp[1] else: if t...
22.641026
56
0.520951
temp = [] princ = [] c = maior = menor = 0 continuar = ' ' while continuar not in 'Nn': c += 1 print(f'{c}º PESSOA') print('-' * 10) temp.append(str(input(f'Digite o seu nome: '))) temp.append(float(input(f'Digite o seu peso: '))) if c == 1: maior = menor = temp[1] else: if t...
0
0
0
e05b3d75e3b753188335b9edf04c6ef40364090b
20,463
py
Python
core/botCore.py
iwannadapdap/Simple-Binance-Trader
905e205803c0e8f5b5af27e5a32c563944362424
[ "MIT" ]
null
null
null
core/botCore.py
iwannadapdap/Simple-Binance-Trader
905e205803c0e8f5b5af27e5a32c563944362424
[ "MIT" ]
null
null
null
core/botCore.py
iwannadapdap/Simple-Binance-Trader
905e205803c0e8f5b5af27e5a32c563944362424
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import os import sys import time import json import os.path import hashlib import logging import threading from decimal import Decimal from flask_socketio import SocketIO from flask import Flask, render_template, url_for, request from binance_api import api_master_rest_caller from binance_api i...
39.126195
203
0.620779
#! /usr/bin/env python3 import os import sys import time import json import os.path import hashlib import logging import threading from decimal import Decimal from flask_socketio import SocketIO from flask import Flask, render_template, url_for, request from binance_api import api_master_rest_caller from binance_api i...
15,008
4,041
292
12c2373f5be85698acee1ae90c41ce2fe8b0ed68
1,641
py
Python
frontend/test/test_SignUpRequest.py
CMPUT404-wi21-project/CMPUT404-project-socialdistribution
b88ca3608e16a1bae72cd7c8cfc212db74d1b2c0
[ "W3C-20150513" ]
1
2021-04-08T22:02:44.000Z
2021-04-08T22:02:44.000Z
frontend/test/test_SignUpRequest.py
CMPUT404-wi21-project/CMPUT404-project-socialdistribution
b88ca3608e16a1bae72cd7c8cfc212db74d1b2c0
[ "W3C-20150513" ]
79
2021-02-06T22:55:52.000Z
2021-04-15T20:24:56.000Z
frontend/test/test_SignUpRequest.py
CMPUT404-wi21-project/CMPUT404-project-socialdistribution
b88ca3608e16a1bae72cd7c8cfc212db74d1b2c0
[ "W3C-20150513" ]
4
2021-02-14T15:13:15.000Z
2021-04-17T06:21:11.000Z
from selenium import webdriver from test_utils import * from time import sleep import random if __name__ == "__main__": try: test_SignUpRequest() print("test_SignUpRequest passed") except: print("test_SignUpRequest Failed")
37.295455
96
0.730652
from selenium import webdriver from test_utils import * from time import sleep import random def test_SignUpRequest(): driver = getFrontEndWebDriver() sleep(1) driver.find_element_by_xpath(".//div[@role='tab' and contains(@id,'Register')]").click() username_input = driver.find_element_by_xpath(fro...
1,357
0
23
7a635939146e08bb91f77fd1ef12cbe7ecea88c9
224
py
Python
Flask/APIFlask/schemas/book.py
JhonatasMenezes/Projetos_Python
f1989a8cb1c428fdae98da770f8db149b8b8587d
[ "MIT" ]
3
2021-07-15T22:58:00.000Z
2022-02-18T17:42:00.000Z
Flask/APIFlask/schemas/book.py
JhonatasMenezes/Projetos_Python
f1989a8cb1c428fdae98da770f8db149b8b8587d
[ "MIT" ]
1
2021-10-01T17:52:49.000Z
2021-10-01T17:52:49.000Z
Flask/APIFlask/schemas/book.py
JhonatasMenezes/Projetos_Python
f1989a8cb1c428fdae98da770f8db149b8b8587d
[ "MIT" ]
null
null
null
from marshmallow import EXCLUDE from ma import ma from models.book import BookModel
24.888889
42
0.723214
from marshmallow import EXCLUDE from ma import ma from models.book import BookModel class BookSchema(ma.SQLAlchemyAutoSchema): class Beta: model = BookModel load_instance = True unknown = EXCLUDE
0
118
23
6b795fa3b8cecd2854b0c676c4b54bf5e6a30cf3
601
py
Python
07_hidden_dir/Resources/script.py
ssmrabet/Darkly
089ac7ac19fd1f08a61c81e63becbea65e2f3b4f
[ "MIT" ]
null
null
null
07_hidden_dir/Resources/script.py
ssmrabet/Darkly
089ac7ac19fd1f08a61c81e63becbea65e2f3b4f
[ "MIT" ]
null
null
null
07_hidden_dir/Resources/script.py
ssmrabet/Darkly
089ac7ac19fd1f08a61c81e63becbea65e2f3b4f
[ "MIT" ]
null
null
null
import requests import bs4 as bs if __name__ == "__main__": url = "http://192.168.1.40/.hidden/" scrapping_recursive(url)
23.115385
44
0.625624
import requests import bs4 as bs def scrapping_recursive(url): r = requests.get(url) s = bs.BeautifulSoup(r.text, 'html.parser') if (s is not None): links = s.find_all("a") #f = open("result.txt", "a+") for link in links: final_link = link.get('href') if (final_link == "README"): r = requests.get(...
453
0
23
0e7a9cfca5eead38c216a3c2821ac65326cfec71
6,193
py
Python
Sketches/MPS/BugReports/FixTests/Kamaelia/Kamaelia/Apps/MH/Profiling.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
12
2015-10-20T10:22:01.000Z
2021-07-19T10:09:44.000Z
Sketches/MPS/BugReports/FixTests/Kamaelia/Kamaelia/Apps/MH/Profiling.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
2
2015-10-20T10:22:55.000Z
2017-02-13T11:05:25.000Z
Sketches/MPS/BugReports/FixTests/Kamaelia/Kamaelia/Apps/MH/Profiling.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
6
2015-03-09T12:51:59.000Z
2020-03-01T13:06:21.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License,...
37.083832
145
0.51316
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License,...
4,017
30
241
0ff91e3fafb80c50fca16bcdb41b0cd40242dff6
1,373
py
Python
hummingbot/cli/utils/symbol_splitter.py
mitakash/hummingbot
58c2bc421f5da9cef472fea473f9b5273466b11c
[ "Apache-2.0" ]
null
null
null
hummingbot/cli/utils/symbol_splitter.py
mitakash/hummingbot
58c2bc421f5da9cef472fea473f9b5273466b11c
[ "Apache-2.0" ]
null
null
null
hummingbot/cli/utils/symbol_splitter.py
mitakash/hummingbot
58c2bc421f5da9cef472fea473f9b5273466b11c
[ "Apache-2.0" ]
null
null
null
import re from typing import Tuple BINANCE_SYMBOL_SPLITTER = re.compile(r"^(\w+)(BTC|ETH|BNB|XRP|USDT|USDC|TUSD|PAX)$")
30.511111
118
0.589221
import re from typing import Tuple BINANCE_SYMBOL_SPLITTER = re.compile(r"^(\w+)(BTC|ETH|BNB|XRP|USDT|USDC|TUSD|PAX)$") class SymbolSplitter: def __init__(self, market: str, symbol: str): self._symbol: Tuple[str, str] = self.split(market, symbol) @property def base_asset(self): return s...
154
1,071
23
fffd4b71438fcbfa4a73dc716b4d928f5fe5b3c0
2,290
py
Python
code/analyze_type_precision.py
MrZhengXin/OptiPrompt
ec3654ecdcb6b7fb7d35b0e7f5c56687ff757f76
[ "MIT" ]
null
null
null
code/analyze_type_precision.py
MrZhengXin/OptiPrompt
ec3654ecdcb6b7fb7d35b0e7f5c56687ff757f76
[ "MIT" ]
null
null
null
code/analyze_type_precision.py
MrZhengXin/OptiPrompt
ec3654ecdcb6b7fb7d35b0e7f5c56687ff757f76
[ "MIT" ]
null
null
null
import json import os print("relation", "raw_p", "few_p", "p inc", "raw_type_p", "few_type_p", "t inc", sep='\t') relations = ['P1001', 'P101', 'P103', 'P106', 'P108', 'P127', 'P1303', 'P131', 'P136', 'P1376', 'P138', 'P140', 'P1412', 'P159', 'P17', 'P176', 'P178', 'P19', 'P190', 'P20', 'P264', 'P27', 'P276', 'P279'...
39.482759
334
0.662882
import json import os print("relation", "raw_p", "few_p", "p inc", "raw_type_p", "few_type_p", "t inc", sep='\t') relations = ['P1001', 'P101', 'P103', 'P106', 'P108', 'P127', 'P1303', 'P131', 'P136', 'P1376', 'P138', 'P140', 'P1412', 'P159', 'P17', 'P176', 'P178', 'P19', 'P190', 'P20', 'P264', 'P27', 'P276', 'P279'...
645
0
46
22ea2f0346f2cc607b6a5343c004181e08422137
2,229
py
Python
utils.py
nrichards17/diabetes-pytorch
80ba7e366e5850657cdd29dd8f81adf81408c56f
[ "MIT" ]
null
null
null
utils.py
nrichards17/diabetes-pytorch
80ba7e366e5850657cdd29dd8f81adf81408c56f
[ "MIT" ]
null
null
null
utils.py
nrichards17/diabetes-pytorch
80ba7e366e5850657cdd29dd8f81adf81408c56f
[ "MIT" ]
null
null
null
import json import os import logging import pandas as pd import torch def set_logger(log_path): """Set the logger to log info in terminal and file `log_path`. In general, it is useful to have a logger so that every output to the terminal is saved in a permanent file. Here we save it to `model_dir/train....
28.576923
96
0.662629
import json import os import logging import pandas as pd import torch class Params(dict): def save(self, json_path): with open(json_path, 'w') as f: json.dump(self, f, indent=4) def load(self, json_path): with open(json_path) as f: params = json.load(f) sel...
581
-2
198
54d538a4ca0dd49fa6ee3492bdccefda46e1cbaa
1,500
py
Python
tests/tests_test_workflow/test_integ_workflow/integ_test/test_integ_test_start_properties_opensearch_dashboards.py
rishabh6788/opensearch-build
f03a5848397a2758ea29a4edc0bb6b221c0fc2e3
[ "Apache-2.0" ]
null
null
null
tests/tests_test_workflow/test_integ_workflow/integ_test/test_integ_test_start_properties_opensearch_dashboards.py
rishabh6788/opensearch-build
f03a5848397a2758ea29a4edc0bb6b221c0fc2e3
[ "Apache-2.0" ]
null
null
null
tests/tests_test_workflow/test_integ_workflow/integ_test/test_integ_test_start_properties_opensearch_dashboards.py
rishabh6788/opensearch-build
f03a5848397a2758ea29a4edc0bb6b221c0fc2e3
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license. import unittest from unittest.mock import MagicMock, Mock, patch from test_workflow.integ_test.integ_test_start_properties_ope...
45.454545
131
0.796
# SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license. import unittest from unittest.mock import MagicMock, Mock, patch from test_workflow.integ_test.integ_test_start_properties_ope...
713
372
23
5d40ae920735fb7e5b921b8c8a69c1c85db58c7a
907
py
Python
Python/main.py
edeutsch/USI
7fadea3cc1e23cea8b33a210b05bf67ebc0a4b38
[ "Apache-2.0" ]
null
null
null
Python/main.py
edeutsch/USI
7fadea3cc1e23cea8b33a210b05bf67ebc0a4b38
[ "Apache-2.0" ]
1
2018-08-31T16:59:03.000Z
2018-08-31T16:59:03.000Z
Python/main.py
edeutsch/USI
7fadea3cc1e23cea8b33a210b05bf67ebc0a4b38
[ "Apache-2.0" ]
1
2018-08-06T17:46:37.000Z
2018-08-06T17:46:37.000Z
from Spectrum import Spectrum from UniversalSpectrumIdentifier import UniversalSpectrumIdentifier # USI created usi = UniversalSpectrumIdentifier("asdf:PXD000561::Adult_Frontalcortex_bRP_Elite_85_f09:scan:17555:VLHPLEGAVVIIFK/2") # usi = UniversalSpectrumIdentifier("mzspec:PXD002437:00261_A06_P001564_B00E_A00_R1:...
43.190476
127
0.76516
from Spectrum import Spectrum from UniversalSpectrumIdentifier import UniversalSpectrumIdentifier # USI created usi = UniversalSpectrumIdentifier("asdf:PXD000561::Adult_Frontalcortex_bRP_Elite_85_f09:scan:17555:VLHPLEGAVVIIFK/2") # usi = UniversalSpectrumIdentifier("mzspec:PXD002437:00261_A06_P001564_B00E_A00_R1:...
0
0
0
78b70ffad5c6ae171231f8e98d808c39a15557be
2,854
py
Python
src/vtra/plot/create_crop_maps.py
GFDRR/vietnam-transport
71f6fc8cb7f1ca7bccb9a29d544869b442e68bfc
[ "MIT" ]
3
2018-07-09T12:15:46.000Z
2020-12-03T07:02:23.000Z
src/vtra/plot/create_crop_maps.py
GFDRR/vietnam-transport
71f6fc8cb7f1ca7bccb9a29d544869b442e68bfc
[ "MIT" ]
1
2019-05-09T21:57:20.000Z
2019-05-09T21:57:20.000Z
src/vtra/plot/create_crop_maps.py
GFDRR/vietnam-transport
71f6fc8cb7f1ca7bccb9a29d544869b442e68bfc
[ "MIT" ]
2
2018-07-23T12:49:21.000Z
2021-06-03T11:00:44.000Z
"""Crop maps """ # pylint: disable=C0103 import os import sys import cartopy.crs as ccrs import cartopy.io.shapereader as shpreader import matplotlib as mpl import matplotlib.pyplot as plt import numpy as np from vtra.utils import * mpl.style.use('ggplot') mpl.rcParams['font.size'] = 11. mpl.rcParams['axes.labelsize'...
38.567568
126
0.565172
"""Crop maps """ # pylint: disable=C0103 import os import sys import cartopy.crs as ccrs import cartopy.io.shapereader as shpreader import matplotlib as mpl import matplotlib.pyplot as plt import numpy as np from vtra.utils import * mpl.style.use('ggplot') mpl.rcParams['font.size'] = 11. mpl.rcParams['axes.labelsize'...
2,344
0
23
0369ac970383309c0f70c4043c5bd0ee8c516bbb
1,113
py
Python
src/plot-figure-7.py
lorenzocorneo/surrounded-by-the-clouds
536375943f8a6c23b31d6528403624d586ce1270
[ "MIT" ]
2
2021-03-25T15:56:07.000Z
2021-10-10T13:02:52.000Z
src/plot-figure-7.py
lorenzocorneo/surrounded-by-the-clouds
536375943f8a6c23b31d6528403624d586ce1270
[ "MIT" ]
null
null
null
src/plot-figure-7.py
lorenzocorneo/surrounded-by-the-clouds
536375943f8a6c23b31d6528403624d586ce1270
[ "MIT" ]
null
null
null
from collections import defaultdict import matplotlib.pyplot as plt from boxes import generate_legend_handles, group_boxplot from commons import WIDTH_IN with open("data/hops.csv") as f: ret = defaultdict(list) for l in f.readlines()[1:]: split = l.rstrip("\n").split(",") # is datacenter? ...
25.295455
77
0.638814
from collections import defaultdict import matplotlib.pyplot as plt from boxes import generate_legend_handles, group_boxplot from commons import WIDTH_IN with open("data/hops.csv") as f: ret = defaultdict(list) for l in f.readlines()[1:]: split = l.rstrip("\n").split(",") # is datacenter? ...
0
0
0
55b3ede38b9889f29e3a15bff2b46b25815cfeec
740
py
Python
DataAnalysis/SearchTools/WordSearches.py
AdamSwenson/TwitterProject
8c5dc7a57eac611b555058736d609f2f204cb836
[ "MIT" ]
null
null
null
DataAnalysis/SearchTools/WordSearches.py
AdamSwenson/TwitterProject
8c5dc7a57eac611b555058736d609f2f204cb836
[ "MIT" ]
6
2020-03-24T17:34:24.000Z
2021-12-13T20:14:34.000Z
DataAnalysis/SearchTools/WordSearches.py
AdamSwenson/TwitterProject
8c5dc7a57eac611b555058736d609f2f204cb836
[ "MIT" ]
null
null
null
""" Created by adam on 5/31/18 """ __author__ = 'adam' import sqlite3 import environment def get_all_words_in_tweet(tweetId, db): """ Returns all the words used in the tweet Example: words = get_all_words_in_tweet(331546674315014144, db=environment.TWEET_DB_NO_STOP) words = [x[2] for x in...
21.764706
91
0.589189
""" Created by adam on 5/31/18 """ __author__ = 'adam' import sqlite3 import environment def get_all_words_in_tweet(tweetId, db): """ Returns all the words used in the tweet Example: words = get_all_words_in_tweet(331546674315014144, db=environment.TWEET_DB_NO_STOP) words = [x[2] for x in...
0
0
0
f65859568809091cac6c05f41f4c989b4ab25104
1,318
py
Python
Source/SourceGaussian.py
srio/BeamlineComponents
0fd107365f2ff3ec413df5ec6f4694a7903cbb94
[ "MIT" ]
null
null
null
Source/SourceGaussian.py
srio/BeamlineComponents
0fd107365f2ff3ec413df5ec6f4694a7903cbb94
[ "MIT" ]
2
2016-11-04T15:10:30.000Z
2016-11-04T15:15:59.000Z
Source/SourceGaussian.py
srio/BeamlineComponents
0fd107365f2ff3ec413df5ec6f4694a7903cbb94
[ "MIT" ]
null
null
null
""" Represents an optical Gaussian source. """
25.843137
79
0.685888
""" Represents an optical Gaussian source. """ class SourceGaussian(object): def __init__(self, sigma_x, sigma_y, sigma_x_prime, sigma_y_prime, energy): self._sigma_x = sigma_x self._sigma_y = sigma_y self._sigma_x_prime = sigma_x_prime self._sigma_y_prime = sigma_y_prime se...
842
8
421
60487050897e32dddf4b8bc06326498770016f4e
2,165
py
Python
data/transcoder_evaluation_gfg/python/SUBSET_SUM_DIVISIBLE_M.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
241
2021-07-20T08:35:20.000Z
2022-03-31T02:39:08.000Z
data/transcoder_evaluation_gfg/python/SUBSET_SUM_DIVISIBLE_M.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
49
2021-07-22T23:18:42.000Z
2022-03-24T09:15:26.000Z
data/transcoder_evaluation_gfg/python/SUBSET_SUM_DIVISIBLE_M.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
71
2021-07-21T05:17:52.000Z
2022-03-29T23:49:28.000Z
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # #TOFILL if __name__ == '__main__': param = [ ([2, 5, 7, 12, 13, 13, 15, 18, 20, 21, 22, 26, 27, 41, 41, 50, 53, 57, 5...
48.111111
171
0.439261
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( arr , n , m ) : if ( n > m ) : return True DP = [ False for i in range ( m ) ] for i in range (...
550
0
22
5a67f959ffbb10d127fdebfd245b28d5f2ba7a70
11,801
py
Python
python/aocrecs/logic/events.py
Rotzbua/aocrecs.com
2f03ece75e7367a99e5f36874727cd5bb90508f7
[ "MIT" ]
7
2019-10-08T09:04:48.000Z
2021-02-06T00:05:53.000Z
python/aocrecs/logic/events.py
happyleavesaoc/aocrecs.com
2f03ece75e7367a99e5f36874727cd5bb90508f7
[ "MIT" ]
10
2020-01-18T22:14:09.000Z
2021-07-31T21:43:05.000Z
python/aocrecs/logic/events.py
happyleavesaoc/aocrecs.com
2f03ece75e7367a99e5f36874727cd5bb90508f7
[ "MIT" ]
5
2020-05-08T11:35:14.000Z
2022-01-16T12:41:57.000Z
"""Events.""" import asyncio import networkx from aocrecs.cache import cached from aocrecs.util import by_key def get_sides(matches, participants): """Get users per side given matches.""" users = {} for match in matches: users.update({ p['user_id']: dict( id=p['user_id...
41.847518
149
0.614185
"""Events.""" import asyncio import networkx from aocrecs.cache import cached from aocrecs.util import by_key def get_sides(matches, participants): """Get users per side given matches.""" users = {} for match in matches: users.update({ p['user_id']: dict( id=p['user_id...
0
0
0
1e4aa6c0af4512f3bea0466bf347d6d2bb5d4aa6
225
py
Python
lib/uModBus/defconvert.py
mbrizuelaarg/isp_node_v3
0656c8fed380ed7db8970113aae63a2d155e3420
[ "MIT" ]
null
null
null
lib/uModBus/defconvert.py
mbrizuelaarg/isp_node_v3
0656c8fed380ed7db8970113aae63a2d155e3420
[ "MIT" ]
null
null
null
lib/uModBus/defconvert.py
mbrizuelaarg/isp_node_v3
0656c8fed380ed7db8970113aae63a2d155e3420
[ "MIT" ]
null
null
null
# Coneversiones de unidades import struct import binascii
22.5
60
0.675556
# Coneversiones de unidades import struct import binascii def float_to_hex(f): return hex(struct.unpack('<I', struct.pack('<f', f))[0]) def double_to_hex(f): return hex(struct.unpack('<Q', struct.pack('<d', f))[0])
121
0
46
d6406d3649d44ec3b677763c0ad156e48067ec63
3,959
py
Python
MiniPlayerViewWidget.py
neoaggelos/qcmus
b584b3de55efe24a2fab35f7b29eeef6148428f4
[ "MIT" ]
3
2018-05-29T07:02:03.000Z
2021-10-30T16:25:56.000Z
MiniPlayerViewWidget.py
neoaggelos/qcmus
b584b3de55efe24a2fab35f7b29eeef6148428f4
[ "MIT" ]
null
null
null
MiniPlayerViewWidget.py
neoaggelos/qcmus
b584b3de55efe24a2fab35f7b29eeef6148428f4
[ "MIT" ]
null
null
null
# MiniPlayerViewWidget.py from PyQt5.QtCore import * from PyQt5.QtWidgets import * from PyQt5.QtGui import * import sys, subprocess, time, threading, datetime, os, mutagen from _prefs import miniplayer_coversize, cmus_remote_cmd, player_coversize coversize = miniplayer_coversize
35.348214
120
0.610255
# MiniPlayerViewWidget.py from PyQt5.QtCore import * from PyQt5.QtWidgets import * from PyQt5.QtGui import * import sys, subprocess, time, threading, datetime, os, mutagen from _prefs import miniplayer_coversize, cmus_remote_cmd, player_coversize coversize = miniplayer_coversize class MiniPlayerViewWidget(QWidget)...
3,421
15
239
1073dbfbefe70f8b5ce421cb36d8c129550ec237
1,420
py
Python
src/flake8_absolute_import/core.py
bskinn/flake8-absolute-import
18c97a5da14717ad4ed079eaec526826be7bf16c
[ "MIT" ]
10
2019-09-06T21:51:43.000Z
2022-03-26T12:27:16.000Z
src/flake8_absolute_import/core.py
bskinn/flake8-absolute-import
18c97a5da14717ad4ed079eaec526826be7bf16c
[ "MIT" ]
12
2019-09-06T19:15:52.000Z
2021-12-05T02:05:10.000Z
src/flake8_absolute_import/core.py
bskinn/flake8-absolute-import
18c97a5da14717ad4ed079eaec526826be7bf16c
[ "MIT" ]
1
2020-06-13T20:23:42.000Z
2020-06-13T20:23:42.000Z
r"""*Main implementation file for* ``flake8-absolute-import``. flake8 plugin to require absolute imports **Author** Brian Skinn (bskinn@alum.mit.edu) **File Created** 6 Sep 2019 **Copyright** \(c) Brian Skinn 2019-2021 **Source Repository** http://github.com/bskinn/flake8-absolute-import **License...
22.1875
70
0.647887
r"""*Main implementation file for* ``flake8-absolute-import``. flake8 plugin to require absolute imports **Author** Brian Skinn (bskinn@alum.mit.edu) **File Created** 6 Sep 2019 **Copyright** \(c) Brian Skinn 2019-2021 **Source Repository** http://github.com/bskinn/flake8-absolute-import **License...
0
0
0
885c791a63037ad680d9dcaab6b342c198504176
732
py
Python
urls.py
yoramk2/halolib
c05bc9f9c37d09700c5a42dcd3b9a74c0c5c0c29
[ "MIT" ]
2
2020-07-22T13:28:47.000Z
2021-02-08T04:38:06.000Z
urls.py
yoramk2/halolib
c05bc9f9c37d09700c5a42dcd3b9a74c0c5c0c29
[ "MIT" ]
2
2021-06-10T20:59:03.000Z
2021-11-15T17:47:59.000Z
urls.py
yoramk2/halolib
c05bc9f9c37d09700c5a42dcd3b9a74c0c5c0c29
[ "MIT" ]
1
2021-02-08T04:38:09.000Z
2021-02-08T04:38:09.000Z
from django.conf.urls import * # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() # from django.conf import settings urlpatterns = [ # Example: url(r'^', include('halolib.halolib.urls')), #url(r'^(?P<url>.*)$', proxy),#, ProxyLink.as_view(), name='pr...
30.5
91
0.698087
from django.conf.urls import * # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() # from django.conf import settings urlpatterns = [ # Example: url(r'^', include('halolib.halolib.urls')), #url(r'^(?P<url>.*)$', proxy),#, ProxyLink.as_view(), name='pr...
0
0
0
45df360af4bd2108103929d449a6b5f49a957b14
13,766
py
Python
web/kathe.py
avuko/kathe
d7f80965484fb83f47e4f7cb78c424ff8722a319
[ "BSD-3-Clause" ]
21
2018-03-23T13:44:09.000Z
2022-01-19T01:16:06.000Z
web/kathe.py
avuko/kathe
d7f80965484fb83f47e4f7cb78c424ff8722a319
[ "BSD-3-Clause" ]
11
2019-07-29T12:57:41.000Z
2022-01-22T09:27:41.000Z
web/kathe.py
avuko/kathe
d7f80965484fb83f47e4f7cb78c424ff8722a319
[ "BSD-3-Clause" ]
5
2018-12-11T01:23:14.000Z
2021-09-16T06:16:21.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ This module is meant to be used together with the web app. For the stand alone CLI implementation, see parent directory. """ from datetime import datetime import ast import os import re import unicodedata import logging import defaults logger = logging.getLogger() tr...
40.369501
86
0.645576
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ This module is meant to be used together with the web app. For the stand alone CLI implementation, see parent directory. """ from datetime import datetime import ast import os import re import unicodedata import logging import defaults logger = logging.getLogger() tr...
2,446
0
138
2c88d2e79259cfe90133daf6b9c7d0e294c455db
877
py
Python
main.py
mdarman187/website-blocker
c0191e9679f128aa95f7d5a5aff65f0a755b9ce3
[ "BSD-2-Clause" ]
1
2021-05-06T11:53:51.000Z
2021-05-06T11:53:51.000Z
main.py
mdarman187/website-blocker
c0191e9679f128aa95f7d5a5aff65f0a755b9ce3
[ "BSD-2-Clause" ]
null
null
null
main.py
mdarman187/website-blocker
c0191e9679f128aa95f7d5a5aff65f0a755b9ce3
[ "BSD-2-Clause" ]
1
2021-05-09T15:31:14.000Z
2021-05-09T15:31:14.000Z
import time from datetime import datetime as dt hp = r"C:\Windows\System32\drivers\hosts" #provide the proper host path according to yor system redirect = "127.0.0.1" web = ["www.youtube.com","www.facebook.com"] #add the website links in the list while True: if dt(dt.now().year, dt.now().month, dt.now().day,9) <...
31.321429
119
0.600912
import time from datetime import datetime as dt hp = r"C:\Windows\System32\drivers\hosts" #provide the proper host path according to yor system redirect = "127.0.0.1" web = ["www.youtube.com","www.facebook.com"] #add the website links in the list while True: if dt(dt.now().year, dt.now().month, dt.now().day,9) <...
0
0
0
a7745a192cb1bb04a777308a559458f888187067
7,501
py
Python
sedldata/migrate/versions/c2f1fafd2225_fix_bad_casting.py
OpenDataServices/sedldata
c7f3b13969bb9c9a494a5fadf1456cc85e9bf2cc
[ "BSD-3-Clause" ]
null
null
null
sedldata/migrate/versions/c2f1fafd2225_fix_bad_casting.py
OpenDataServices/sedldata
c7f3b13969bb9c9a494a5fadf1456cc85e9bf2cc
[ "BSD-3-Clause" ]
null
null
null
sedldata/migrate/versions/c2f1fafd2225_fix_bad_casting.py
OpenDataServices/sedldata
c7f3b13969bb9c9a494a5fadf1456cc85e9bf2cc
[ "BSD-3-Clause" ]
1
2019-01-20T19:39:11.000Z
2019-01-20T19:39:11.000Z
"""Fix bad casting Revision ID: c2f1fafd2225 Revises: bff84c33d64d Create Date: 2019-01-10 15:41:34.358222 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = 'c2f1fafd2225' down_revision = 'bff84c33d64d' branch_labels = No...
39.898936
163
0.710039
"""Fix bad casting Revision ID: c2f1fafd2225 Revises: bff84c33d64d Create Date: 2019-01-10 15:41:34.358222 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = 'c2f1fafd2225' down_revision = 'bff84c33d64d' branch_labels = No...
7,112
0
46
f20b9ad554df7baf34a36e8ad592de4e2452bc61
1,226
py
Python
src/HafrenHaver/pexels_pager.py
InnovAnon-Inc/HafrenHaver
5283ae3817c500f2365d1c8108dd3270aceb28fa
[ "Unlicense" ]
2
2020-11-09T19:30:26.000Z
2020-12-29T21:38:40.000Z
src/HafrenHaver/pexels_pager.py
InnovAnon-Inc/HafrenHaver
5283ae3817c500f2365d1c8108dd3270aceb28fa
[ "Unlicense" ]
null
null
null
src/HafrenHaver/pexels_pager.py
InnovAnon-Inc/HafrenHaver
5283ae3817c500f2365d1c8108dd3270aceb28fa
[ "Unlicense" ]
null
null
null
#! /usr/bin/env python3 from pager import Pager from pexels_results import PexelsResults if __name__ == "__main__": import requests main () quit ()
25.541667
53
0.563622
#! /usr/bin/env python3 from pager import Pager from pexels_results import PexelsResults class PexelsPager (Pager): def __init__ (self, session=None, *args, **kwargs): results = PexelsResults (session, *args, **kwargs) Pager.__init__ (self, results, *args, **kwargs) def req (self, **kwargs): rets = Pager...
973
5
95
d1b3a101bc62092128d8f6f3b3d8380a8a37832c
641
py
Python
schemaregistry/storage/error.py
reducingwip/schemaregistry
30f0377b70253c642404f152c4eb531406ecfd5a
[ "MIT" ]
null
null
null
schemaregistry/storage/error.py
reducingwip/schemaregistry
30f0377b70253c642404f152c4eb531406ecfd5a
[ "MIT" ]
null
null
null
schemaregistry/storage/error.py
reducingwip/schemaregistry
30f0377b70253c642404f152c4eb531406ecfd5a
[ "MIT" ]
null
null
null
""" error.py ~~~~~~~~ This module contains errors to be thrown by storage modules :copyright: (c) by 2016 James Moore :license: BSD, see LICENSE for more details """ class SchemaExistsError(Exception): """ Thrown when a schema already exists """ pass class SchemaDoesNotExistError...
19.424242
63
0.650546
""" error.py ~~~~~~~~ This module contains errors to be thrown by storage modules :copyright: (c) by 2016 James Moore :license: BSD, see LICENSE for more details """ class SchemaExistsError(Exception): """ Thrown when a schema already exists """ pass class SchemaDoesNotExistError...
0
0
0
6d3ab87a1c16bb84c009a754914c611e25536fb3
512
py
Python
backend/apps/blackswan/migrations/0011_auto_20190716_1943.py
arshul/blackswan
1a651214e14e738ebac320c775e05ece61a2a1f8
[ "MIT" ]
2
2019-09-10T21:58:19.000Z
2019-10-20T18:46:23.000Z
backend/apps/blackswan/migrations/0011_auto_20190716_1943.py
arshul/blackswan
1a651214e14e738ebac320c775e05ece61a2a1f8
[ "MIT" ]
46
2019-05-14T03:26:00.000Z
2020-06-05T20:48:16.000Z
backend/apps/blackswan/migrations/0011_auto_20190716_1943.py
arshul/blackswan
1a651214e14e738ebac320c775e05ece61a2a1f8
[ "MIT" ]
5
2019-10-02T16:46:32.000Z
2020-02-18T05:53:37.000Z
# Generated by Django 2.1.1 on 2019-07-16 19:43 from django.db import migrations
21.333333
47
0.5625
# Generated by Django 2.1.1 on 2019-07-16 19:43 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('blackswan', '0010_user_full_name'), ] operations = [ migrations.RenameField( model_name='project', old_name='title', ...
0
406
23
0f572b130d1694f5c837089a20bc12b0396745a6
1,307
py
Python
097_Interleaving_String.py
adwardlee/leetcode_solutions
f386869161181e153e29165d8fff06492bb192f3
[ "MIT" ]
null
null
null
097_Interleaving_String.py
adwardlee/leetcode_solutions
f386869161181e153e29165d8fff06492bb192f3
[ "MIT" ]
null
null
null
097_Interleaving_String.py
adwardlee/leetcode_solutions
f386869161181e153e29165d8fff06492bb192f3
[ "MIT" ]
null
null
null
''' Given strings s1, s2, and s3, find whether s3 is formed by an interleaving of s1 and s2. An interleaving of two strings s and t is a configuration where they are divided into non-empty substrings such that: s = s1 + s2 + ... + sn t = t1 + t2 + ... + tm |n - m| <= 1 The interleaving is s1 + t1 + s2 + t2 + s3 + t3 ...
29.044444
117
0.505738
''' Given strings s1, s2, and s3, find whether s3 is formed by an interleaving of s1 and s2. An interleaving of two strings s and t is a configuration where they are divided into non-empty substrings such that: s = s1 + s2 + ... + sn t = t1 + t2 + ... + tm |n - m| <= 1 The interleaving is s1 + t1 + s2 + t2 + s3 + t3 ...
625
-6
48
7a67be7f805caf6e90c3c75aaa16a3abda76ba3a
487
py
Python
for.py
PMinThant/My-Python
fbcd6906e442c0d7b42a93c366ec608de9fb402e
[ "MIT" ]
null
null
null
for.py
PMinThant/My-Python
fbcd6906e442c0d7b42a93c366ec608de9fb402e
[ "MIT" ]
null
null
null
for.py
PMinThant/My-Python
fbcd6906e442c0d7b42a93c366ec608de9fb402e
[ "MIT" ]
null
null
null
for var_x in range(1,6): print(var_x) var_i = ["Apple","Banana","Pieapple","Orange","Lime"] for var_x in var_i: print(var_x) food_info={"Food_1":"Apple","Food_2":"Banana","Food_3":"Pieapple","Food_4":"Mango","Food_5":"Orange","Food_6":"Lime"} index_num1 = range(len(dict.keys(food_info))) key_...
30.4375
118
0.64271
for var_x in range(1,6): print(var_x) var_i = ["Apple","Banana","Pieapple","Orange","Lime"] for var_x in var_i: print(var_x) food_info={"Food_1":"Apple","Food_2":"Banana","Food_3":"Pieapple","Food_4":"Mango","Food_5":"Orange","Food_6":"Lime"} index_num1 = range(len(dict.keys(food_info))) key_...
0
0
0
247cf1f7a45b192ebd2e976ae9aad0f33c3fa562
989
py
Python
Server/app/schema/mutations/quickmemo/new.py
Team-SeeTo/SeeTo-Backend
19990cd6f4895e773eaa504f7b7a07ddbb5856e5
[ "Apache-2.0" ]
4
2018-06-18T06:50:12.000Z
2018-11-15T00:08:24.000Z
Server/app/schema/mutations/quickmemo/new.py
Team-SeeTo/SeeTo-Backend
19990cd6f4895e773eaa504f7b7a07ddbb5856e5
[ "Apache-2.0" ]
null
null
null
Server/app/schema/mutations/quickmemo/new.py
Team-SeeTo/SeeTo-Backend
19990cd6f4895e773eaa504f7b7a07ddbb5856e5
[ "Apache-2.0" ]
null
null
null
import graphene from flask_graphql_auth import mutation_jwt_required, get_jwt_identity, AuthInfoField from app.models import User, QuickMemo from app.schema.unions import ResponseUnion from app.schema.fields import ResponseMessageField
30.90625
101
0.661274
import graphene from flask_graphql_auth import mutation_jwt_required, get_jwt_identity, AuthInfoField from app.models import User, QuickMemo from app.schema.unions import ResponseUnion from app.schema.fields import ResponseMessageField class NewQuickMemoMutation(graphene.Mutation): class Arguments(object): ...
484
270
23
448a9870dfde912c7a758d249170aff35f96d60b
97
py
Python
my/media/movies.py
aluhrs13/HPI
e750666e30e8987f3a4c46755857dc85dd64446c
[ "MIT" ]
1,026
2020-03-16T16:53:29.000Z
2022-03-29T16:03:38.000Z
my/media/movies.py
aluhrs13/HPI
e750666e30e8987f3a4c46755857dc85dd64446c
[ "MIT" ]
102
2020-03-18T22:53:29.000Z
2022-03-22T00:34:46.000Z
my/media/movies.py
aluhrs13/HPI
e750666e30e8987f3a4c46755857dc85dd64446c
[ "MIT" ]
50
2020-03-17T21:00:34.000Z
2022-03-28T08:37:13.000Z
from .imdb import get_movies # TODO extract items from org mode? perhaps not very high priority
24.25
66
0.793814
from .imdb import get_movies # TODO extract items from org mode? perhaps not very high priority
0
0
0
bd832959fc599907901c316c690667a4d2b13c90
9,505
py
Python
ai/STA/Strategy/graphless_offense.py
RoboCupULaval/StrategyAI
ccddde144f2c0a67113d2e5ffe7c75ed9d4a3d19
[ "MIT" ]
13
2018-03-14T10:20:10.000Z
2021-12-10T05:36:47.000Z
ai/STA/Strategy/graphless_offense.py
RoboCupULaval/StrategyIA
ccddde144f2c0a67113d2e5ffe7c75ed9d4a3d19
[ "MIT" ]
200
2016-04-29T23:13:01.000Z
2018-03-13T14:36:39.000Z
ai/STA/Strategy/graphless_offense.py
RoboCupULaval/StrategyIA
ccddde144f2c0a67113d2e5ffe7c75ed9d4a3d19
[ "MIT" ]
45
2015-07-04T18:57:39.000Z
2018-01-11T16:11:13.000Z
# Under MIT license, see LICENSE.txt import numpy as np from Util.geometry import wrap_to_pi from Util.role import Role from ai.Algorithm.evaluation_module import closest_players_to_point_except, ball_going_toward_player from ai.GameDomainObjects import Player from ai.STA.Strategy.graphless_strategy import GraphlessS...
53.398876
156
0.604945
# Under MIT license, see LICENSE.txt import numpy as np from Util.geometry import wrap_to_pi from Util.role import Role from ai.Algorithm.evaluation_module import closest_players_to_point_except, ball_going_toward_player from ai.GameDomainObjects import Player from ai.STA.Strategy.graphless_strategy import GraphlessS...
8,375
376
23
c44b7120c318e903bf67ddb2e46c2955ce7565b7
7,777
py
Python
Tests/Methods/Slot/test_HoleM53_meth.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
2
2020-08-28T14:54:55.000Z
2021-03-13T19:34:45.000Z
Tests/Methods/Slot/test_HoleM53_meth.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
null
null
null
Tests/Methods/Slot/test_HoleM53_meth.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import pytest from pyleecan.Classes.Segment import Segment from pyleecan.Classes.SurfLine import SurfLine from pyleecan.Classes.LamHole import LamHole from pyleecan.Classes.HoleM53 import HoleM53 from pyleecan.Classes.Magnet import Magnet from numpy import exp, arcsin, ndarray, pi from pyleec...
29.683206
88
0.557284
# -*- coding: utf-8 -*- import pytest from pyleecan.Classes.Segment import Segment from pyleecan.Classes.SurfLine import SurfLine from pyleecan.Classes.LamHole import LamHole from pyleecan.Classes.HoleM53 import HoleM53 from pyleecan.Classes.Magnet import Magnet from numpy import exp, arcsin, ndarray, pi from pyleec...
0
0
0
57393cfb77555e6eedd1e1f644547de5412d9e00
81
py
Python
mmdet/ops/box_iou_rotated/__init__.py
JarvisUSTC/DARDet
debbf476e9750030db67f030a40cf8d4f03e46ee
[ "Apache-2.0" ]
23
2021-09-22T14:05:49.000Z
2022-02-15T09:45:23.000Z
mmdet/ops/box_iou_rotated/__init__.py
JarvisUSTC/DARDet
debbf476e9750030db67f030a40cf8d4f03e46ee
[ "Apache-2.0" ]
13
2021-10-09T07:08:17.000Z
2022-01-06T05:53:45.000Z
mmdet/ops/box_iou_rotated/__init__.py
JarvisUSTC/DARDet
debbf476e9750030db67f030a40cf8d4f03e46ee
[ "Apache-2.0" ]
6
2021-11-15T03:16:51.000Z
2022-03-20T08:55:19.000Z
from .box_iou_rotated_cuda import box_iou_rotated __all__ = ['box_iou_rotated']
20.25
49
0.82716
from .box_iou_rotated_cuda import box_iou_rotated __all__ = ['box_iou_rotated']
0
0
0
2d94622d5e13f03b2513ee75ca6a50d0f1931939
341
py
Python
vcsver/util.py
janneronkko/vcsver
77020e296a8239ee142213642504c03b9064653f
[ "MIT" ]
1
2020-12-23T19:22:51.000Z
2020-12-23T19:22:51.000Z
vcsver/util.py
janneronkko/vcsver
77020e296a8239ee142213642504c03b9064653f
[ "MIT" ]
null
null
null
vcsver/util.py
janneronkko/vcsver
77020e296a8239ee142213642504c03b9064653f
[ "MIT" ]
null
null
null
import typing
24.357143
60
0.478006
import typing def parse_pkg_info_file(path: str) -> typing.Dict[str, str]: with open(path, 'rt') as pkg_info_file: return { key.strip(): value.strip() for key, value in ( line.split(':', 1) for line in pkg_info_file if ':' in line ...
303
0
23
1e85fd4f4ea8db04a18b0e7537753f2dffeb788d
2,912
py
Python
spotseeker_server/auth/oauth.py
uw-it-aca/spotseeker_server
1d8a5bf98b76fdcb807ed4cd32f939bb7e9aa66c
[ "Apache-2.0" ]
5
2015-03-12T00:36:33.000Z
2022-02-24T16:41:25.000Z
spotseeker_server/auth/oauth.py
uw-it-aca/spotseeker_server
1d8a5bf98b76fdcb807ed4cd32f939bb7e9aa66c
[ "Apache-2.0" ]
133
2016-02-03T23:54:45.000Z
2022-03-30T21:33:58.000Z
spotseeker_server/auth/oauth.py
uw-it-aca/spotseeker_server
1d8a5bf98b76fdcb807ed4cd32f939bb7e9aa66c
[ "Apache-2.0" ]
6
2015-01-07T23:21:15.000Z
2017-12-07T08:26:33.000Z
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 """ This module uses oauth to allow applications and users access. Supports 2-legged oauth for application requests, and for trusted applications accessing user-restricted methods. Supports 3-legged oauth for non-trusted applicatio...
34.666667
79
0.668613
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 """ This module uses oauth to allow applications and users access. Supports 2-legged oauth for application requests, and for trusted applications accessing user-restricted methods. Supports 3-legged oauth for non-trusted applicatio...
2,134
0
46
c19d9ada1c4db136f3439e7b6dffa4c5b94a5de8
2,824
py
Python
examples/DPUCADF8H/tf_resnet/utils.py
Carles-Figuerola/Vitis-AI
fc043ea4aca1f9fe4e18962e6a6ae397812bb34b
[ "Apache-2.0" ]
1
2020-12-18T14:49:19.000Z
2020-12-18T14:49:19.000Z
examples/DPUCADF8H/tf_resnet/utils.py
cy333/Vitis-AI
611b82cfc32ea2fe04491432bf8feed1f378c9de
[ "Apache-2.0" ]
null
null
null
examples/DPUCADF8H/tf_resnet/utils.py
cy333/Vitis-AI
611b82cfc32ea2fe04491432bf8feed1f378c9de
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2019 Xilinx Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
36.675325
127
0.651204
#!/usr/bin/env python # Copyright 2019 Xilinx Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
960
0
46
1ca477dab2a4289e5804db7eecd473adf8fe8b7d
8,923
py
Python
examples/20_mnist_ddp.py
todd-deshane/aihwkit
07269e29731f9a6482d25326400437f6bef2fc94
[ "Apache-2.0" ]
133
2020-09-17T20:36:08.000Z
2022-03-21T12:15:40.000Z
examples/20_mnist_ddp.py
todd-deshane/aihwkit
07269e29731f9a6482d25326400437f6bef2fc94
[ "Apache-2.0" ]
140
2020-09-21T12:16:55.000Z
2022-03-31T18:07:37.000Z
examples/20_mnist_ddp.py
todd-deshane/aihwkit
07269e29731f9a6482d25326400437f6bef2fc94
[ "Apache-2.0" ]
53
2020-09-17T15:53:31.000Z
2022-03-30T12:22:04.000Z
# -*- coding: utf-8 -*- # (C) Copyright 2020, 2021 IBM. All Rights Reserved. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modificatio...
31.199301
96
0.631402
# -*- coding: utf-8 -*- # (C) Copyright 2020, 2021 IBM. All Rights Reserved. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modificatio...
0
0
0
23f32a0c11babe495ce710c08005cd357fd003c8
295
py
Python
bitmovin_api_sdk/models/rate_distortion_level_for_quantization.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
11
2019-07-03T10:41:16.000Z
2022-02-25T21:48:06.000Z
bitmovin_api_sdk/models/rate_distortion_level_for_quantization.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
8
2019-11-23T00:01:25.000Z
2021-04-29T12:30:31.000Z
bitmovin_api_sdk/models/rate_distortion_level_for_quantization.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
13
2020-01-02T14:58:18.000Z
2022-03-26T12:10:30.000Z
# coding: utf-8 from enum import Enum from six import string_types, iteritems from bitmovin_api_sdk.common.poscheck import poscheck_model
24.583333
59
0.79661
# coding: utf-8 from enum import Enum from six import string_types, iteritems from bitmovin_api_sdk.common.poscheck import poscheck_model class RateDistortionLevelForQuantization(Enum): DISABLED = "DISABLED" LEVELS = "LEVELS" LEVELS_AND_CODING_GROUPS = "LEVELS_AND_CODING_GROUPS"
0
132
23
da952d5df89a3a8565908d0e2b88228f1f82071c
609
py
Python
ppr-api/src/database/postgres_functions/sim_number.py
cameron-freshworks/ppr
01d6f5d300c791aebad5e58bb4601e9be2ccfc46
[ "Apache-2.0" ]
null
null
null
ppr-api/src/database/postgres_functions/sim_number.py
cameron-freshworks/ppr
01d6f5d300c791aebad5e58bb4601e9be2ccfc46
[ "Apache-2.0" ]
null
null
null
ppr-api/src/database/postgres_functions/sim_number.py
cameron-freshworks/ppr
01d6f5d300c791aebad5e58bb4601e9be2ccfc46
[ "Apache-2.0" ]
null
null
null
"""Maintain db function searchkey_first_name here.""" from alembic_utils.pg_function import PGFunction sim_number = PGFunction( schema="public", signature="sim_number(actual_name character varying)", definition=""" RETURNS numeric LANGUAGE plpgsql AS $function$ DECLARE v_name VARCHAR(60); v_sim_nu...
21
69
0.673235
"""Maintain db function searchkey_first_name here.""" from alembic_utils.pg_function import PGFunction sim_number = PGFunction( schema="public", signature="sim_number(actual_name character varying)", definition=""" RETURNS numeric LANGUAGE plpgsql AS $function$ DECLARE v_name VARCHAR(60); v_sim_nu...
0
0
0
ed3b192957fb52fcf051e34f1c02df774bbee1c4
24,801
py
Python
tests/sentry/utils/test_snuba.py
FelixSchwarz/sentry
7c92c4fa2b6b9f214764f48c82594acae1549e52
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/utils/test_snuba.py
FelixSchwarz/sentry
7c92c4fa2b6b9f214764f48c82594acae1549e52
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/utils/test_snuba.py
FelixSchwarz/sentry
7c92c4fa2b6b9f214764f48c82594acae1549e52
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from datetime import datetime from mock import patch import pytest import pytz from sentry.models import GroupRelease, Release from sentry.testutils import TestCase, SnubaTestCase from sentry.testutils.helpers.datetime import iso_format, before_now from sentry.utils.snuba import...
39.056693
100
0.570703
from __future__ import absolute_import from datetime import datetime from mock import patch import pytest import pytz from sentry.models import GroupRelease, Release from sentry.testutils import TestCase, SnubaTestCase from sentry.testutils.helpers.datetime import iso_format, before_now from sentry.utils.snuba import...
22,658
80
944
fa132a8030c21b8f2d0d0428523ec55f885b4421
3,712
py
Python
src/utoolbox/filters/perona_malik.py
liuyenting/utoolbox-legacy
dfcb24701ca25a37a223cc3c14b4433e6c296bfd
[ "Apache-2.0" ]
2
2020-09-03T06:22:14.000Z
2020-10-04T10:14:56.000Z
src/utoolbox/filters/perona_malik.py
liuyenting/utoolbox-legacy
dfcb24701ca25a37a223cc3c14b4433e6c296bfd
[ "Apache-2.0" ]
null
null
null
src/utoolbox/filters/perona_malik.py
liuyenting/utoolbox-legacy
dfcb24701ca25a37a223cc3c14b4433e6c296bfd
[ "Apache-2.0" ]
null
null
null
""" Perona-Malik anisotropic smoothing filter [Sergeevich]_. .. [Sergeevich] Employing the Perona - Malik anisotropic filter for the problem of landing site detection: https://github.com/Galarius/pm-ocl """ import logging from math import ceil import os import cupy as cp import numpy as np from utoolbox.parallel imp...
30.42623
141
0.627155
""" Perona-Malik anisotropic smoothing filter [Sergeevich]_. .. [Sergeevich] Employing the Perona - Malik anisotropic filter for the problem of landing site detection: https://github.com/Galarius/pm-ocl """ import logging from math import ceil import os import cupy as cp import numpy as np from utoolbox.parallel imp...
585
0
54
3c4d27d48356baf985b7fec6b617c3526b7bce2b
1,902
py
Python
DeepAgent/interfaces/ibaseBuffer.py
LANNDS18/DeepAgent_Atari
d9e984f5eba35b845b3bbb2a06dc7975159dbf43
[ "MIT" ]
3
2022-02-28T15:44:16.000Z
2022-03-02T17:00:59.000Z
DeepAgent/interfaces/ibaseBuffer.py
LANNDS18/DeepAgent_DemonAttack
ce86a8365ac31833cd5824a68d81892871d81182
[ "MIT" ]
null
null
null
DeepAgent/interfaces/ibaseBuffer.py
LANNDS18/DeepAgent_DemonAttack
ce86a8365ac31833cd5824a68d81892871d81182
[ "MIT" ]
null
null
null
from collections import namedtuple Transition = namedtuple("Transition", ("state", "action", "reward", "done", "new_state")) class BaseBuffer: """ Base class for replay buffer. """ def __init__(self, size, batch_size=32, n_step=0): """ Initialize replay buffer. Args: ...
31.7
97
0.585174
from collections import namedtuple Transition = namedtuple("Transition", ("state", "action", "reward", "done", "new_state")) class BaseBuffer: """ Base class for replay buffer. """ def __init__(self, size, batch_size=32, n_step=0): """ Initialize replay buffer. Args: ...
0
0
0
792a0df8a0a05daebef053e1d6c299973259af08
254
py
Python
office365/onedrive/sharepointIds.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
544
2016-08-04T17:10:16.000Z
2022-03-31T07:17:20.000Z
office365/onedrive/sharepointIds.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
438
2016-10-11T12:24:22.000Z
2022-03-31T19:30:35.000Z
office365/onedrive/sharepointIds.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
202
2016-08-22T19:29:40.000Z
2022-03-30T20:26:15.000Z
from office365.runtime.client_value import ClientValue class SharePointIds(ClientValue): """The SharePointIds resource groups the various identifiers for an item stored in a SharePoint site or OneDrive for Business into a single structure. """
36.285714
116
0.795276
from office365.runtime.client_value import ClientValue class SharePointIds(ClientValue): """The SharePointIds resource groups the various identifiers for an item stored in a SharePoint site or OneDrive for Business into a single structure. """
0
0
0
3da4e40bc237552e858407e97b5b4238a39df90c
1,945
py
Python
passgenerate/passgenerate.py
eaybek/passgenerate
b08896efa6127ef597521c6067e09f6921032acf
[ "MIT" ]
null
null
null
passgenerate/passgenerate.py
eaybek/passgenerate
b08896efa6127ef597521c6067e09f6921032acf
[ "MIT" ]
null
null
null
passgenerate/passgenerate.py
eaybek/passgenerate
b08896efa6127ef597521c6067e09f6921032acf
[ "MIT" ]
null
null
null
import random
26.643836
58
0.617995
import random def generate( times=5, passlength=32, include=[], exclude=[], include_numbers=True, include_big_letters=True, include_little_letters=True, include_special_chars1=False, include_special_chars2=False, include_special_chars3=False, include_special_chars4=False, )...
1,907
0
23
5aed65375fea66e5d3e5e1b637854272be09ff01
1,998
py
Python
uci.py
zeFresk/deep-position-analysis
f3f24e4587cf623e8b7d19a8e5682c7b6d0efaf4
[ "MIT" ]
20
2018-12-12T12:50:16.000Z
2021-09-29T14:39:23.000Z
uci.py
ScallyBag/deep-position-analysis
f3f24e4587cf623e8b7d19a8e5682c7b6d0efaf4
[ "MIT" ]
6
2019-07-22T18:22:25.000Z
2021-07-01T09:49:30.000Z
uci.py
ScallyBag/deep-position-analysis
f3f24e4587cf623e8b7d19a8e5682c7b6d0efaf4
[ "MIT" ]
1
2021-09-29T14:39:09.000Z
2021-09-29T14:39:09.000Z
import chess.uci import sys import os ########################################### ########## UCI config functions ########### ########################################### def write_config(opt, file): """Export options dictionnary to config file.""" for key, value in opt.items(): if key.lower() == "mult...
31.21875
123
0.588088
import chess.uci import sys import os ########################################### ########## UCI config functions ########### ########################################### def write_config(opt, file): """Export options dictionnary to config file.""" for key, value in opt.items(): if key.lower() == "mult...
0
0
0
0157b26dfb05673b29e289dfb9935a9a1efc3039
1,284
py
Python
abstract_factory/__init__.py
tolunaykatirci/design-patterns
e7013b003199b7400d825c992b77a800e440ad5a
[ "Apache-2.0" ]
null
null
null
abstract_factory/__init__.py
tolunaykatirci/design-patterns
e7013b003199b7400d825c992b77a800e440ad5a
[ "Apache-2.0" ]
null
null
null
abstract_factory/__init__.py
tolunaykatirci/design-patterns
e7013b003199b7400d825c992b77a800e440ad5a
[ "Apache-2.0" ]
null
null
null
from abstract_factory.factories.furniture_factory import FurnitureFactory from abstract_factory.factories.modern_furniture_factory import ModernFurnitureFactory from abstract_factory.factories.victorian_furniture_factory import VictorianFurnitureFactory ''' Abstract Factory is a creational design pattern that lets you...
34.702703
94
0.767134
from abstract_factory.factories.furniture_factory import FurnitureFactory from abstract_factory.factories.modern_furniture_factory import ModernFurnitureFactory from abstract_factory.factories.victorian_furniture_factory import VictorianFurnitureFactory ''' Abstract Factory is a creational design pattern that lets you...
0
0
0
ede2b9d349c94c7787fbfa393de8b4efe911a0ba
617
py
Python
django_vend/stores/views.py
remarkablerocket/django-vend
c07809a7f1748d98ed78c115dcf22de1e0875f94
[ "BSD-3-Clause" ]
null
null
null
django_vend/stores/views.py
remarkablerocket/django-vend
c07809a7f1748d98ed78c115dcf22de1e0875f94
[ "BSD-3-Clause" ]
null
null
null
django_vend/stores/views.py
remarkablerocket/django-vend
c07809a7f1748d98ed78c115dcf22de1e0875f94
[ "BSD-3-Clause" ]
null
null
null
from django.shortcuts import render from django.views.generic import ListView, DetailView from django_vend.core.views import (VendAuthSingleObjectSyncMixin, VendAuthCollectionSyncMixin) from .models import VendOutlet, VendRegister
25.708333
66
0.779579
from django.shortcuts import render from django.views.generic import ListView, DetailView from django_vend.core.views import (VendAuthSingleObjectSyncMixin, VendAuthCollectionSyncMixin) from .models import VendOutlet, VendRegister class RegisterList(VendAuthCollectionSyncMixin, L...
0
252
92
bc705f5a48abf88fe4dd6878918563245bb06910
1,210
py
Python
Noise_Reduction/TSNR.py
cooperbarth/Joint-Audio-Correction-Kit
511a8ee249ca8cd0695afee11f15ad38b1a9452e
[ "MIT" ]
6
2019-06-13T06:07:34.000Z
2021-09-17T22:14:12.000Z
Noise_Reduction/TSNR.py
cooperbarth/Joint-Audio-Correction-Kit
511a8ee249ca8cd0695afee11f15ad38b1a9452e
[ "MIT" ]
2
2019-03-22T01:06:33.000Z
2019-06-20T04:17:24.000Z
Noise_Reduction/TSNR.py
cooperbarth/Joint-Audio-Correction-Kit
511a8ee249ca8cd0695afee11f15ad38b1a9452e
[ "MIT" ]
1
2019-11-13T22:44:53.000Z
2019-11-13T22:44:53.000Z
import numpy as np def TSNR(noisy_stft, signal_gains, noise_estimation): """ Reconstructs the signal by re-adding phase components to the magnitude estimate :param noisy_stft: stft of original noisy signal :param signal_gains: gains of each stft frame returned by DD :param noise_estimation: noise e...
39.032258
93
0.71405
import numpy as np def TSNR(noisy_stft, signal_gains, noise_estimation): """ Reconstructs the signal by re-adding phase components to the magnitude estimate :param noisy_stft: stft of original noisy signal :param signal_gains: gains of each stft frame returned by DD :param noise_estimation: noise e...
0
0
0
897c27db77012c8ae94c2d760b68e0b8dbc97aec
4,160
py
Python
screen.py
logoner/py_adventure
312cb9ae44a9061d92b36d338e63c15f62718457
[ "CC0-1.0" ]
null
null
null
screen.py
logoner/py_adventure
312cb9ae44a9061d92b36d338e63c15f62718457
[ "CC0-1.0" ]
null
null
null
screen.py
logoner/py_adventure
312cb9ae44a9061d92b36d338e63c15f62718457
[ "CC0-1.0" ]
null
null
null
# py_adventure screen scrypt import config import os
101.463415
151
0.108173
# py_adventure screen scrypt import config import os def display_interface(location, meeting, menu): # config.location_number, enemy_meeting, displayed_menu # строку "Вы оказались в необычном месте." нужно заменить на параметр location_descriptor(location) в котором описание места. screen = ['*********...
4,217
0
24
90d2721fb801ab6fff85d03a472b3766fe0c3540
6,330
py
Python
EGAT/feature_generator/distance_and_angle_generator.py
sailfish009/EGAT
a03d6cbeb3e6d8f75edd608370256326d8fcb05b
[ "MIT" ]
11
2020-11-06T08:37:39.000Z
2021-01-22T08:46:37.000Z
EGAT/feature_generator/distance_and_angle_generator.py
MaxCodeXTC/EGAT
9f6f88bf2fe08965e9c7092e0f7717120e09b0e3
[ "MIT" ]
1
2021-08-14T08:26:56.000Z
2021-08-19T21:08:06.000Z
EGAT/feature_generator/distance_and_angle_generator.py
MaxCodeXTC/EGAT
9f6f88bf2fe08965e9c7092e0f7717120e09b0e3
[ "MIT" ]
5
2020-11-09T04:15:42.000Z
2021-01-19T05:53:26.000Z
# coding: utf-8 # In[1]: import numpy as np from time import time import gzip import warnings import pickle warnings.filterwarnings("ignore") from Bio.PDB import * import Bio from config import DefaultConfig configs = DefaultConfig() parser = PDBParser() THIRD_ATOM = 'N' # 'O' # In[2]: # In[3]: from B...
33.670213
112
0.599684
# coding: utf-8 # In[1]: import numpy as np from time import time import gzip import warnings import pickle warnings.filterwarnings("ignore") from Bio.PDB import * import Bio from config import DefaultConfig configs = DefaultConfig() parser = PDBParser() THIRD_ATOM = 'N' # 'O' # In[2]: def residue_distance...
5,704
0
92
569d38194b1b31a4c8eebb0a5e9a0b3fc694bf4d
2,222
py
Python
Day-04_Giant-Squid/puzzle_2.py
richardangell/advent-of-code-2021
48397e980fd6d4d43234df89e47bf22581c0611e
[ "BSD-3-Clause" ]
null
null
null
Day-04_Giant-Squid/puzzle_2.py
richardangell/advent-of-code-2021
48397e980fd6d4d43234df89e47bf22581c0611e
[ "BSD-3-Clause" ]
null
null
null
Day-04_Giant-Squid/puzzle_2.py
richardangell/advent-of-code-2021
48397e980fd6d4d43234df89e47bf22581c0611e
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from numpy.typing import ArrayLike import sys from puzzle_1 import load_input sys.path.append("..") import helpers # noqa def calculate_last_winning_score( draw_numbers: list[int], boards: list[ArrayLike], blank_boards: list[ArrayLike] ) -> tuple[int, int, int]: """Function to calculate t...
27.097561
83
0.565257
import numpy as np from numpy.typing import ArrayLike import sys from puzzle_1 import load_input sys.path.append("..") import helpers # noqa def calculate_last_winning_score( draw_numbers: list[int], boards: list[ArrayLike], blank_boards: list[ArrayLike] ) -> tuple[int, int, int]: """Function to calculate t...
0
0
0
e0aae4b1cbbabd84c6ef45d5488c32b230ae2b94
8,642
py
Python
qiskit_machine_learning/neural_networks/neural_network.py
FrankFeenix/qiskit-machine-learning
ec800bc8a58b32f3052ff399d54f19a74417fc7d
[ "Apache-2.0" ]
null
null
null
qiskit_machine_learning/neural_networks/neural_network.py
FrankFeenix/qiskit-machine-learning
ec800bc8a58b32f3052ff399d54f19a74417fc7d
[ "Apache-2.0" ]
null
null
null
qiskit_machine_learning/neural_networks/neural_network.py
FrankFeenix/qiskit-machine-learning
ec800bc8a58b32f3052ff399d54f19a74417fc7d
[ "Apache-2.0" ]
1
2021-06-15T16:41:39.000Z
2021-06-15T16:41:39.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2020, 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
37.573913
100
0.640361
# This code is part of Qiskit. # # (C) Copyright IBM 2020, 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
2,631
0
160
8fd5aaa621aee3a0c3eab511248713236b6221a9
4,822
py
Python
docker2shell.py
Vayel/publik
8b8da0bd8f8aa99fdcda55300e9f04aea9101a62
[ "MIT" ]
null
null
null
docker2shell.py
Vayel/publik
8b8da0bd8f8aa99fdcda55300e9f04aea9101a62
[ "MIT" ]
null
null
null
docker2shell.py
Vayel/publik
8b8da0bd8f8aa99fdcda55300e9f04aea9101a62
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import re import shutil import glob # This script converts from the docker version to a shell install version # Useful for installation without docker # Manual installation # - Init a database using ../postgresql/docker-entrypoint-initdb.d/init-database.sh # - Add db, smtp and rabbit...
34.442857
96
0.592493
#!/usr/bin/env python import os import re import shutil import glob # This script converts from the docker version to a shell install version # Useful for installation without docker # Manual installation # - Init a database using ../postgresql/docker-entrypoint-initdb.d/init-database.sh # - Add db, smtp and rabbit...
675
0
24
6284f4c4e9787b2a2c648b7e2f1218b645b002e2
330
py
Python
jotleaf/test_localsettings.py
reverie/jotleaf.com
86311b546bb5bae7ba826f5576ea82ac515e8b7d
[ "MIT" ]
1
2020-10-25T15:10:43.000Z
2020-10-25T15:10:43.000Z
jotleaf/test_localsettings.py
reverie/jotleaf.com
86311b546bb5bae7ba826f5576ea82ac515e8b7d
[ "MIT" ]
null
null
null
jotleaf/test_localsettings.py
reverie/jotleaf.com
86311b546bb5bae7ba826f5576ea82ac515e8b7d
[ "MIT" ]
null
null
null
from root_dir import root_dir DEBUG = True LOG_DIRECTORY = root_dir('..', 'dev_logs') EMAIL_BACKEND = 'django.core.mail.backends.locmem.EmailBackend' EMAIL_PORT = 1025 YWOT_HOST = 'localhost:8001' PUSHER_APP_ID = '...' PUSHER_KEY = '...' PUSHER_SECRET = '...' MIXPANEL_ID = "..." STATIC_URL = '/static/' SENTRY_DS...
15.714286
63
0.69697
from root_dir import root_dir DEBUG = True LOG_DIRECTORY = root_dir('..', 'dev_logs') EMAIL_BACKEND = 'django.core.mail.backends.locmem.EmailBackend' EMAIL_PORT = 1025 YWOT_HOST = 'localhost:8001' PUSHER_APP_ID = '...' PUSHER_KEY = '...' PUSHER_SECRET = '...' MIXPANEL_ID = "..." STATIC_URL = '/static/' SENTRY_DS...
0
0
0
f05122174cbeb25e8dcc8f8551911789fe0a1b12
1,190
py
Python
lplangid/tokenizer.py
stephantul/lplangid
11dc6d1b0283ffe3a96159da6b68854ae698280b
[ "MIT" ]
3
2021-09-22T07:35:58.000Z
2021-10-02T20:23:52.000Z
lplangid/tokenizer.py
stephantul/lplangid
11dc6d1b0283ffe3a96159da6b68854ae698280b
[ "MIT" ]
3
2021-09-22T07:51:02.000Z
2021-09-30T20:24:04.000Z
lplangid/tokenizer.py
stephantul/lplangid
11dc6d1b0283ffe3a96159da6b68854ae698280b
[ "MIT" ]
3
2021-09-22T07:36:01.000Z
2021-10-02T20:23:55.000Z
import re import string from typing import List def tokenize_fast(input_text: str) -> List[str]: """Returns a very naive whitespace and punctuation based tokenization. This helps for most but not all languages, should only be used if you don't know the language yet, or if you have a lot of data and can s...
35
106
0.642857
import re import string from typing import List def tokenize_fast(input_text: str) -> List[str]: """Returns a very naive whitespace and punctuation based tokenization. This helps for most but not all languages, should only be used if you don't know the language yet, or if you have a lot of data and can s...
0
0
0
244b09637d99df431294fd2b8181aae392e105de
2,035
py
Python
project-euler/601/euler_601_v1.py
zoffixznet/project-euler
39921379385ae2521354c7266a541c46785e85a2
[ "MIT" ]
null
null
null
project-euler/601/euler_601_v1.py
zoffixznet/project-euler
39921379385ae2521354c7266a541c46785e85a2
[ "MIT" ]
null
null
null
project-euler/601/euler_601_v1.py
zoffixznet/project-euler
39921379385ae2521354c7266a541c46785e85a2
[ "MIT" ]
null
null
null
# The Expat License # # Copyright (c) 2017, Shlomi Fish # # 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, ...
27.133333
79
0.655037
# The Expat License # # Copyright (c) 2017, Shlomi Fish # # 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, ...
635
0
115
e0e05b806c74b1fcaf1ba79e312e6b56d299af1e
884
py
Python
auto-blog/delete.py
alpeshjamgade/auto-blog
656929acdacdb9bbfe0c0aa37b478963f96a0b1f
[ "MIT" ]
null
null
null
auto-blog/delete.py
alpeshjamgade/auto-blog
656929acdacdb9bbfe0c0aa37b478963f96a0b1f
[ "MIT" ]
null
null
null
auto-blog/delete.py
alpeshjamgade/auto-blog
656929acdacdb9bbfe0c0aa37b478963f96a0b1f
[ "MIT" ]
null
null
null
import requests from requests.structures import CaseInsensitiveDict import json BLOG_ID = "2352119848425464545" BASE_URL = "https://www.googleapis.com/blogger/v3/blogs/" if __name__ == "__main__": main()
26
180
0.745475
import requests from requests.structures import CaseInsensitiveDict import json BLOG_ID = "2352119848425464545" BASE_URL = "https://www.googleapis.com/blogger/v3/blogs/" def delete_post(post_id): endpoint = "https://www.googleapis.com/blogger/v3/blogs/2352119848425464545/posts/{post_id}".format( post_id...
625
0
46
ac2c4fbc88dd909c10b15938d1091b8b904be397
2,227
py
Python
app.py
amrrs/real-time-live-streamlit-dashboard-python
72347d9de864218944aa3d7ad93a10133defc49b
[ "MIT" ]
5
2022-01-21T11:57:51.000Z
2022-03-20T01:46:15.000Z
app.py
amrrs/real-time-live-streamlit-dashboard-python
72347d9de864218944aa3d7ad93a10133defc49b
[ "MIT" ]
null
null
null
app.py
amrrs/real-time-live-streamlit-dashboard-python
72347d9de864218944aa3d7ad93a10133defc49b
[ "MIT" ]
2
2022-02-18T14:38:38.000Z
2022-03-14T06:28:12.000Z
import streamlit as st # web development import numpy as np # np mean, np random import pandas as pd # read csv, df manipulation import time # to simulate a real time data, time loop import plotly.express as px # interactive charts # read csv from a github repo df = pd.read_csv("https://raw.githubusercontent.com/L...
29.693333
120
0.63718
import streamlit as st # web development import numpy as np # np mean, np random import pandas as pd # read csv, df manipulation import time # to simulate a real time data, time loop import plotly.express as px # interactive charts # read csv from a github repo df = pd.read_csv("https://raw.githubusercontent.com/L...
0
0
0
24b11a228e261e489b2172e72feaa5017619873e
2,421
py
Python
venv/Lib/site-packages/arcade/examples/test2.py
JohnWJackson/arcadePython
b69058b0241d332a81a7d7319f70ae9237bdca94
[ "MIT" ]
null
null
null
venv/Lib/site-packages/arcade/examples/test2.py
JohnWJackson/arcadePython
b69058b0241d332a81a7d7319f70ae9237bdca94
[ "MIT" ]
null
null
null
venv/Lib/site-packages/arcade/examples/test2.py
JohnWJackson/arcadePython
b69058b0241d332a81a7d7319f70ae9237bdca94
[ "MIT" ]
1
2020-11-06T18:46:35.000Z
2020-11-06T18:46:35.000Z
""" Earth moon sun """ import arcade SCREEN_WIDTH = 600 SCREEN_HEIGHT = 600 class MyGame(arcade.Window): """ Main application class. """ def on_draw(self): """ Render the screen. """ # This command has to happen before we start drawing arcade.start_render() ...
31.038462
103
0.624122
""" Earth moon sun """ import arcade SCREEN_WIDTH = 600 SCREEN_HEIGHT = 600 class MyGame(arcade.Window): """ Main application class. """ def __init__(self): # Call the parent class initializer super().__init__(SCREEN_WIDTH, SCREEN_HEIGHT, "Earth Moon Sun") self.sun_x = SCREEN_WIDTH ...
1,422
0
50
4288e59835e07bac230630007cd7f939850fbd5e
2,247
py
Python
mytest_export_py.py
wangping984/Ultra-Fast-Lane-Detection
b7559c1469d832bf5afe5d158dd3ad63b4df9d9c
[ "MIT" ]
null
null
null
mytest_export_py.py
wangping984/Ultra-Fast-Lane-Detection
b7559c1469d832bf5afe5d158dd3ad63b4df9d9c
[ "MIT" ]
null
null
null
mytest_export_py.py
wangping984/Ultra-Fast-Lane-Detection
b7559c1469d832bf5afe5d158dd3ad63b4df9d9c
[ "MIT" ]
null
null
null
# %% [markdown] # 分析test.py文件 # %% import torch from model.model import parsingNet import torchvision.transforms as transforms from torch.utils.data import DataLoader from torchvision.io import read_image from PIL import Image import cv2 import scipy.special torch.backends.cudnn.benchmark = True cls_num_per_lane = 18...
24.966667
131
0.653761
# %% [markdown] # 分析test.py文件 # %% import torch from model.model import parsingNet import torchvision.transforms as transforms from torch.utils.data import DataLoader from torchvision.io import read_image from PIL import Image import cv2 import scipy.special torch.backends.cudnn.benchmark = True cls_num_per_lane = 18...
0
0
0
84eec7287516857ac3fe21ded84f7686a66988d3
131
py
Python
venv/lib/python3.7/site-packages/crispy_forms_materialize/__init__.py
fullstack-overkill/Api
77cb5b8209be3b34bb2f7ea7b3ec979cc46a3b55
[ "MIT" ]
null
null
null
venv/lib/python3.7/site-packages/crispy_forms_materialize/__init__.py
fullstack-overkill/Api
77cb5b8209be3b34bb2f7ea7b3ec979cc46a3b55
[ "MIT" ]
4
2020-06-05T21:11:56.000Z
2021-09-08T01:02:17.000Z
venv/lib/python3.7/site-packages/crispy_forms_materialize/__init__.py
fullstack-overkill/Api
77cb5b8209be3b34bb2f7ea7b3ec979cc46a3b55
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Django application to add 'django-crispy-forms' layout objects for Materialize """ __version__ = '0.2'
21.833333
78
0.679389
# -*- coding: utf-8 -*- """ Django application to add 'django-crispy-forms' layout objects for Materialize """ __version__ = '0.2'
0
0
0
6d4307cc55255c7f8c96605174ff284f8569c1df
25,124
py
Python
server/models/match.py
nikolastojsin/donkey-kong-drs-projekat
f7f837a7195aa731badb25d280c06317e9ada7d1
[ "MIT" ]
null
null
null
server/models/match.py
nikolastojsin/donkey-kong-drs-projekat
f7f837a7195aa731badb25d280c06317e9ada7d1
[ "MIT" ]
null
null
null
server/models/match.py
nikolastojsin/donkey-kong-drs-projekat
f7f837a7195aa731badb25d280c06317e9ada7d1
[ "MIT" ]
null
null
null
import json import multiprocessing as mp import random import threading import time import numpy as np from threading import Thread, Lock from common.constants import * from common.enums.climb_state import ClimbState from common.enums.collision_control_methods import CCMethods from common.enums.direction import Directi...
47.855238
139
0.607427
import json import multiprocessing as mp import random import threading import time import numpy as np from threading import Thread, Lock from common.constants import * from common.enums.climb_state import ClimbState from common.enums.collision_control_methods import CCMethods from common.enums.direction import Directi...
21,372
0
858
1a8755e5e7b5dfa739b4ec592ba01c44219647aa
15,585
py
Python
tests/test_workflow.py
SergiuIliev/up42-py
132682cf6c9d12ab68972f187ab82a998ee36e11
[ "MIT" ]
null
null
null
tests/test_workflow.py
SergiuIliev/up42-py
132682cf6c9d12ab68972f187ab82a998ee36e11
[ "MIT" ]
null
null
null
tests/test_workflow.py
SergiuIliev/up42-py
132682cf6c9d12ab68972f187ab82a998ee36e11
[ "MIT" ]
null
null
null
from pathlib import Path import json import pytest import requests_mock import shapely # pylint: disable=unused-import,wrong-import-order from .context import Workflow from .fixtures import auth_mock, auth_live, workflow_mock, workflow_live, job_mock import up42 json_workflow_tasks = { "data": [ { ...
34.943946
101
0.60924
from pathlib import Path import json import pytest import requests_mock import shapely # pylint: disable=unused-import,wrong-import-order from .context import Workflow from .fixtures import auth_mock, auth_live, workflow_mock, workflow_live, job_mock import up42 json_workflow_tasks = { "data": [ { ...
12,713
0
451
009f418f44c5d85a6d3e9d6e673290c3f794646f
451
py
Python
redsys/languages.py
brunovila/python-redsys
f7e6dfd692e4ad5f887baf59e283d4406700f2ab
[ "MIT" ]
13
2017-04-27T08:16:38.000Z
2021-06-15T12:12:51.000Z
redsys/languages.py
brunovila/python-redsys
f7e6dfd692e4ad5f887baf59e283d4406700f2ab
[ "MIT" ]
12
2017-08-17T11:52:50.000Z
2021-09-12T17:18:23.000Z
redsys/languages.py
brunovila/python-redsys
f7e6dfd692e4ad5f887baf59e283d4406700f2ab
[ "MIT" ]
18
2017-03-16T17:36:01.000Z
2021-11-01T00:29:44.000Z
# -*- coding: utf-8 -*- CUSTOMER = '000' SPANISH = '001' ENGLISH = '002' CATALAN = '003' FRENCH = '004' GERMAN = '005' DUTCH = '006' ITALIAN = '007' SWEDISH = '008' PORTUGUESE = '009' VALENCIAN = '010' POLISH = '011' GALICIAN = '012' EUSKERA = '013' LANGUAGES = [ CUSTOMER, SPANISH, ENGLISH, CATALAN, ...
13.264706
23
0.578714
# -*- coding: utf-8 -*- CUSTOMER = '000' SPANISH = '001' ENGLISH = '002' CATALAN = '003' FRENCH = '004' GERMAN = '005' DUTCH = '006' ITALIAN = '007' SWEDISH = '008' PORTUGUESE = '009' VALENCIAN = '010' POLISH = '011' GALICIAN = '012' EUSKERA = '013' LANGUAGES = [ CUSTOMER, SPANISH, ENGLISH, CATALAN, ...
0
0
0
ad4da63243211d9ff16d05cfe6062d9d6bd2770e
1,321
py
Python
tests/tests_vipps.py
almazkun/vipps-python
107e065d551f0aff908f6685afc8d26d89d82176
[ "MIT" ]
2
2021-04-05T04:11:39.000Z
2021-04-08T12:56:15.000Z
tests/tests_vipps.py
asmexcaliburwoods/vipps-python
bd205e2a0a6c096bde09906baed4139b92a5b56a
[ "MIT" ]
null
null
null
tests/tests_vipps.py
asmexcaliburwoods/vipps-python
bd205e2a0a6c096bde09906baed4139b92a5b56a
[ "MIT" ]
2
2021-04-05T04:11:44.000Z
2021-05-20T13:44:47.000Z
import os import unittest from vipps import VippsEcomApi, VippsSignupApi import env VIPPS_CLIENT_ID = env.VIPPS_CLIENT_ID VIPPS_CLIENT_SECRET = env.VIPPS_CLIENT_SECRET VIPPS_SUBSCRIPTION_KEY = env.VIPPS_SUBSCRIPTION_KEY VIPPS_MERCHANT_SERIAL_NUMBER = env.VIPPS_MERCHANT_SERIAL_NUMBER VIPPS_SERVER = env.VIPPS_SERVER ...
31.452381
65
0.719909
import os import unittest from vipps import VippsEcomApi, VippsSignupApi import env VIPPS_CLIENT_ID = env.VIPPS_CLIENT_ID VIPPS_CLIENT_SECRET = env.VIPPS_CLIENT_SECRET VIPPS_SUBSCRIPTION_KEY = env.VIPPS_SUBSCRIPTION_KEY VIPPS_MERCHANT_SERIAL_NUMBER = env.VIPPS_MERCHANT_SERIAL_NUMBER VIPPS_SERVER = env.VIPPS_SERVER ...
809
21
76
4bf76a83a9f3978f8a59f0e184e23fca4032779f
455
py
Python
task_1/__init__.py
Quinlys/-Yakymiv_Igor--tasks
4992ca5fd050ed35f060b5b22ed05133be5c1d5a
[ "MIT" ]
null
null
null
task_1/__init__.py
Quinlys/-Yakymiv_Igor--tasks
4992ca5fd050ed35f060b5b22ed05133be5c1d5a
[ "MIT" ]
null
null
null
task_1/__init__.py
Quinlys/-Yakymiv_Igor--tasks
4992ca5fd050ed35f060b5b22ed05133be5c1d5a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*-
25.277778
59
0.424176
# -*- coding: utf-8 -*- def fill_spiral_matrix(n): result = [] x, y, dx, dy = 0, 0, 1, 0 arr = [[0] * n for i in range(n)] for i in range(1, n**2+1): arr[x][y] = i nx, ny = x+dx, y+dy if 0 <= nx < n and 0 <= ny < n and not arr[nx][ny]: x, y = nx, ny else: ...
408
0
22
4dc424f27991bfbf38e953e9b306af71d998143b
7,711
py
Python
preprocessing/preprocessing/BubbleExtractorCombined_V1.py
gitter-manish/deploy-ml-model
90c792f2c58316ca133f31758890c92fbf0f72c0
[ "MIT" ]
null
null
null
preprocessing/preprocessing/BubbleExtractorCombined_V1.py
gitter-manish/deploy-ml-model
90c792f2c58316ca133f31758890c92fbf0f72c0
[ "MIT" ]
null
null
null
preprocessing/preprocessing/BubbleExtractorCombined_V1.py
gitter-manish/deploy-ml-model
90c792f2c58316ca133f31758890c92fbf0f72c0
[ "MIT" ]
null
null
null
import cv2 as cv import numpy as np import pandas as pd import time import os start_time = time.time() lengi = 0 df = pd.DataFrame(columns=['document_id', 'set_id', 'student_id', 'answer_keys']) xForQuads = [(344, 552), (620, 828), (897, 1106), (1174, 1382)] yForQuads = [(897, 1115), (1115, 1333), (1333, 1550), (1550,...
45.358824
150
0.474517
import cv2 as cv import numpy as np import pandas as pd import time import os start_time = time.time() lengi = 0 df = pd.DataFrame(columns=['document_id', 'set_id', 'student_id', 'answer_keys']) xForQuads = [(344, 552), (620, 828), (897, 1106), (1174, 1382)] yForQuads = [(897, 1115), (1115, 1333), (1333, 1550), (1550,...
6,047
0
69
7e544ac2398c762a2eb06014b20d482e0428f1b8
3,848
py
Python
porosityMethods.py
mbandreeta/supervisionedPorosity
96a8cab628df19d173791729b34fa3ed6e55ed80
[ "MIT" ]
null
null
null
porosityMethods.py
mbandreeta/supervisionedPorosity
96a8cab628df19d173791729b34fa3ed6e55ed80
[ "MIT" ]
null
null
null
porosityMethods.py
mbandreeta/supervisionedPorosity
96a8cab628df19d173791729b34fa3ed6e55ed80
[ "MIT" ]
null
null
null
import skimage import tqdm import numpy as np from imageProcessing import *
35.962617
140
0.690229
import skimage import tqdm import numpy as np from imageProcessing import * def segmentSolidPhase(segmented,f,threshold): from scipy.ndimage import binary_dilation w=1; d = binary_dilation(segmented==1); d = d-((segmented==1)*1) positions = np.where(d>0); for idx in (range(positions[0].size)): [i...
3,634
0
125
666da4bf7ea8cb6e53488d2bb095018500fea12d
354
py
Python
myUniversePython/analyser.py
saygindogu/universe
e7de1e897ab0d1d0551e0bd1d91c32ac670ae13a
[ "MIT" ]
null
null
null
myUniversePython/analyser.py
saygindogu/universe
e7de1e897ab0d1d0551e0bd1d91c32ac670ae13a
[ "MIT" ]
null
null
null
myUniversePython/analyser.py
saygindogu/universe
e7de1e897ab0d1d0551e0bd1d91c32ac670ae13a
[ "MIT" ]
null
null
null
# Import the necessary packages and modules import matplotlib.pyplot as plt import numpy as np f = open('history.txt', 'r') for line in f: if line.startswith('='): tokens = line.split('\t') # Prepare the data x = np.linspace(0, 10, 100) # Plot the data plt.plot(x, x, label='linear') # Add a legend plt.le...
15.391304
43
0.663842
# Import the necessary packages and modules import matplotlib.pyplot as plt import numpy as np f = open('history.txt', 'r') for line in f: if line.startswith('='): tokens = line.split('\t') # Prepare the data x = np.linspace(0, 10, 100) # Plot the data plt.plot(x, x, label='linear') # Add a legend plt.le...
0
0
0
17fd905bf344238092df2c2454e797b7c916eb09
4,612
py
Python
remix_bot/slap_msgs.py
uhwot/telegram-remix-bo
6ae9b7ff6cf758454d668784050f036d8d63627b
[ "MIT" ]
null
null
null
remix_bot/slap_msgs.py
uhwot/telegram-remix-bo
6ae9b7ff6cf758454d668784050f036d8d63627b
[ "MIT" ]
1
2020-10-22T19:14:32.000Z
2020-10-28T08:46:20.000Z
remix_bot/slap_msgs.py
uhwot/telegram-remix-bot
6ae9b7ff6cf758454d668784050f036d8d63627b
[ "MIT" ]
null
null
null
SLAP_TEMPLATES = ( "{user1} {hits} {user2} with a {item}.", "{user1} {hits} {user2} in the face with a {item}.", "{user1} {hits} {user2} around a bit with a {item}.", "{user1} {throws} a {item} at {user2}.", "{user1} grabs a {item} and {throws} it at {user2}'s face.", "{user1} launches a {item} ...
37.803279
112
0.614918
SLAP_TEMPLATES = ( "{user1} {hits} {user2} with a {item}.", "{user1} {hits} {user2} in the face with a {item}.", "{user1} {hits} {user2} around a bit with a {item}.", "{user1} {throws} a {item} at {user2}.", "{user1} grabs a {item} and {throws} it at {user2}'s face.", "{user1} launches a {item} ...
0
0
0
0c7093ad3dc6e521bebc114441fff78b91e63857
14,175
py
Python
OrchardWatch-ML/growth_model/server.py
david-fisher/320-F19-Track-I
cddff29ad9f79a794928eb29d44bc9f53f46f3fd
[ "BSD-3-Clause" ]
8
2019-09-04T14:18:30.000Z
2020-02-04T18:06:50.000Z
OrchardWatch-ML/growth_model/server.py
david-fisher/320-F19-Track-I
cddff29ad9f79a794928eb29d44bc9f53f46f3fd
[ "BSD-3-Clause" ]
103
2019-09-19T18:15:25.000Z
2020-05-05T01:39:40.000Z
OrchardWatch-ML/growth_model/server.py
david-fisher/320-F19-Track-I
cddff29ad9f79a794928eb29d44bc9f53f46f3fd
[ "BSD-3-Clause" ]
2
2020-01-17T18:46:46.000Z
2020-05-04T15:53:34.000Z
import os import argparse from flask import request from flask_api import FlaskAPI, status, exceptions from werkzeug.utils import secure_filename import io import numpy as np from PIL import Image import cv2 from datetime import datetime import re import math import apriltag from flask_cors import CORS from logzero im...
35.977157
216
0.634215
import os import argparse from flask import request from flask_api import FlaskAPI, status, exceptions from werkzeug.utils import secure_filename import io import numpy as np from PIL import Image import cv2 from datetime import datetime import re import math import apriltag from flask_cors import CORS from logzero im...
10,871
0
275
202920f8de2be9a2ad13e317799f56b62fff1ef6
10,034
py
Python
program.py
kokuraxc/lift_simulation
7ef7a292ccb19fbe3b1146240df4a0cdeef46fad
[ "MIT" ]
null
null
null
program.py
kokuraxc/lift_simulation
7ef7a292ccb19fbe3b1146240df4a0cdeef46fad
[ "MIT" ]
null
null
null
program.py
kokuraxc/lift_simulation
7ef7a292ccb19fbe3b1146240df4a0cdeef46fad
[ "MIT" ]
null
null
null
import threading import time import logging import math class Cart: """ need to implement the move method with threading so that it won't interfere with other functions """ # the original implmentation, with the bug. # get all the passengers who want to go the "direction" if __name__ == '__main...
46.669767
219
0.632749
import threading import time import logging import math class Planner: def __init__(self, total_storeys, total_carts_number): self.levels = [Level(i) for i in range(total_storeys)] self.carts = [Cart(i, self) for i in range(total_carts_number)] def passenger_calls_cart(self, level, direction):...
8,938
-24
441
060754a0900fca850d2f4210065f69b20f828318
1,010
py
Python
PEH_COURSE_NOTES/02_ethical_python/pyport.py
dustin-py/info_sec_notes
c793aa3c837d428d240ce9a97d151541ecf5b825
[ "MIT" ]
1
2020-09-17T05:40:15.000Z
2020-09-17T05:40:15.000Z
PEH_COURSE_NOTES/02_ethical_python/pyport.py
dustin-py/info_sec_notes
c793aa3c837d428d240ce9a97d151541ecf5b825
[ "MIT" ]
null
null
null
PEH_COURSE_NOTES/02_ethical_python/pyport.py
dustin-py/info_sec_notes
c793aa3c837d428d240ce9a97d151541ecf5b825
[ "MIT" ]
2
2020-09-10T01:42:13.000Z
2020-09-14T16:56:30.000Z
#!/bin/python3 """This is a very simple/terrible port scanner for educational purpose""" import sys import socket from datetime import datetime if len(sys.argv) == 2: target = socket.gethostbyname(sys.argv[1]) # translate hostname else: print("Invalid amount of arguments.") print("Syntax: python3 pyport....
28.055556
73
0.661386
#!/bin/python3 """This is a very simple/terrible port scanner for educational purpose""" import sys import socket from datetime import datetime if len(sys.argv) == 2: target = socket.gethostbyname(sys.argv[1]) # translate hostname else: print("Invalid amount of arguments.") print("Syntax: python3 pyport....
0
0
0
1022b74220051619e3fbc2df75398be21afd784a
705
py
Python
python/45_bitmap/bitmap.py
shipan3452/algo
0494cc0d8f5daf108daf4358c4531a29279dd380
[ "Apache-2.0" ]
22,028
2018-09-27T05:55:19.000Z
2022-03-30T10:44:46.000Z
python/45_bitmap/bitmap.py
wangjing013/algo
b2c1228ff915287ad7ebeae4355fa26854ea1557
[ "Apache-2.0" ]
164
2018-10-06T15:11:08.000Z
2022-03-28T10:04:34.000Z
python/45_bitmap/bitmap.py
wangjing013/algo
b2c1228ff915287ad7ebeae4355fa26854ea1557
[ "Apache-2.0" ]
7,250
2018-09-30T00:45:25.000Z
2022-03-31T20:15:33.000Z
""" Author: Wenru Dong """ from typing import Optional if __name__ == "__main__": bitmap = Bitmap(10) bitmap.setbit(1) bitmap.setbit(3) bitmap.setbit(6) bitmap.setbit(7) bitmap.setbit(8) for i in range(1, 11): print(bitmap.getbit(i))
23.5
54
0.558865
""" Author: Wenru Dong """ from typing import Optional class Bitmap: def __init__(self, num_bits: int): self._num_bits = num_bits self._bytes = bytearray(num_bits // 8 + 1) def setbit(self, k: int) -> None: if k > self._num_bits or k < 1: return self._bytes[k // 8] |= ...
325
-8
111
e587999a7e8362a1ea53e0597090bc5e5186a9de
1,110
py
Python
data_show.py
sherlock1987/ConvLab-2
9547cb09bfd7e297e2c609637c9e38f6c94fdbfb
[ "Apache-2.0" ]
1
2020-06-05T08:42:51.000Z
2020-06-05T08:42:51.000Z
data_show.py
sherlock1987/ConvLab-2
9547cb09bfd7e297e2c609637c9e38f6c94fdbfb
[ "Apache-2.0" ]
null
null
null
data_show.py
sherlock1987/ConvLab-2
9547cb09bfd7e297e2c609637c9e38f6c94fdbfb
[ "Apache-2.0" ]
1
2020-06-05T09:15:51.000Z
2020-06-05T09:15:51.000Z
a = [[['Inform', 'Train', 'Choice', 'over 1'], ['Inform', 'Train', 'Choice', '000'], ['Request', 'Train', 'Depart', '?']], [['Inform', 'Train', 'Depart', 'birmingham new street']], [['Request', 'Train', 'Day', '?']], [['Inform', 'Train', 'Day', 'wednesday']], [['Inform', 'Train', 'Arrive', '20:23'], ['Inform', 'Train'...
46.25
177
0.513514
a = [[['Inform', 'Train', 'Choice', 'over 1'], ['Inform', 'Train', 'Choice', '000'], ['Request', 'Train', 'Depart', '?']], [['Inform', 'Train', 'Depart', 'birmingham new street']], [['Request', 'Train', 'Day', '?']], [['Inform', 'Train', 'Day', 'wednesday']], [['Inform', 'Train', 'Arrive', '20:23'], ['Inform', 'Train'...
0
0
0
fc7c412d4a6ededf0a68602a59234bebc3e8681c
7,522
py
Python
sdks/python/apache_beam/io/gcp/datastore_write_it_pipeline.py
dlesco/beam
fcf00b234a66a8d111b201f08ace46e3c3b38b5e
[ "Apache-2.0" ]
4
2018-09-25T16:10:54.000Z
2020-07-13T23:52:12.000Z
sdks/python/apache_beam/io/gcp/datastore_write_it_pipeline.py
dlesco/beam
fcf00b234a66a8d111b201f08ace46e3c3b38b5e
[ "Apache-2.0" ]
41
2018-08-16T23:54:04.000Z
2022-01-24T20:27:19.000Z
sdks/python/apache_beam/io/gcp/datastore_write_it_pipeline.py
dlesco/beam
fcf00b234a66a8d111b201f08ace46e3c3b38b5e
[ "Apache-2.0" ]
2
2019-04-16T15:29:22.000Z
2020-03-30T18:43:34.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
36.163462
80
0.724807
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
109
0
25
ec82df66a47bfadb6c53a47eb1ea15809590e667
127
py
Python
Snippets/code-gym-1/highlight.py
ursaMaj0r/python-csc-125
1d0968ad144112e24ae331c75aad58b74041593a
[ "MIT" ]
null
null
null
Snippets/code-gym-1/highlight.py
ursaMaj0r/python-csc-125
1d0968ad144112e24ae331c75aad58b74041593a
[ "MIT" ]
null
null
null
Snippets/code-gym-1/highlight.py
ursaMaj0r/python-csc-125
1d0968ad144112e24ae331c75aad58b74041593a
[ "MIT" ]
null
null
null
# input input_word = input("Enter a word: ") # response print('***') for letter in input_word: print(letter) print('***')
14.111111
36
0.629921
# input input_word = input("Enter a word: ") # response print('***') for letter in input_word: print(letter) print('***')
0
0
0
f1fcb1fb36d49f30f0e0393bfc90d7b785f822e9
18,682
py
Python
python/tinkoff/cloud/stt/v1/stt_pb2.py
Tinkoff/voicekit-examples
fbfe789135bb0b9360f7fb5669b7953616f18502
[ "Apache-2.0" ]
3
2022-02-11T04:34:18.000Z
2022-03-29T19:35:57.000Z
python/tinkoff/cloud/stt/v1/stt_pb2.py
Tinkoff/voicekit-examples
fbfe789135bb0b9360f7fb5669b7953616f18502
[ "Apache-2.0" ]
3
2022-01-27T15:40:38.000Z
2022-03-31T10:03:35.000Z
python/tinkoff/cloud/stt/v1/stt_pb2.py
Tinkoff/voicekit-examples
fbfe789135bb0b9360f7fb5669b7953616f18502
[ "Apache-2.0" ]
5
2022-01-27T15:15:06.000Z
2022-03-24T22:06:18.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: tinkoff/cloud/stt/v1/stt.proto """Generated protocol buffer code.""" from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _d...
77.198347
6,418
0.827267
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: tinkoff/cloud/stt/v1/stt.proto """Generated protocol buffer code.""" from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _d...
0
0
0
3c1857c084ab7406d5713284152cbbf14f15e691
2,504
py
Python
ml4vision/ml/engines/detection_engine.py
ml4vision/ml4vision-py
5c8da0a0a099d70b390d5875ac08fbabe01372f1
[ "MIT" ]
null
null
null
ml4vision/ml/engines/detection_engine.py
ml4vision/ml4vision-py
5c8da0a0a099d70b390d5875ac08fbabe01372f1
[ "MIT" ]
null
null
null
ml4vision/ml/engines/detection_engine.py
ml4vision/ml4vision-py
5c8da0a0a099d70b390d5875ac08fbabe01372f1
[ "MIT" ]
null
null
null
from .engine import Engine from ..utils.collate import box_collate_fn from ..utils.visualizer import ObjectDetectionVisualizer from ..utils.centernet.parse_detections import parse_detections, parse_batch_detections from ..utils.ap_metrics import APMeter import torch import os import json
34.30137
115
0.653754
from .engine import Engine from ..utils.collate import box_collate_fn from ..utils.visualizer import ObjectDetectionVisualizer from ..utils.centernet.parse_detections import parse_detections, parse_batch_detections from ..utils.ap_metrics import APMeter import torch import os import json class DetectionEngine(Engine)...
1,993
9
212
098ad775b96835b594b952a0d399601e34c38200
118
py
Python
movies_front/wsgi.py
microstack/movies-front
432119a22f08c6a03f90089b2e47296822859957
[ "MIT" ]
null
null
null
movies_front/wsgi.py
microstack/movies-front
432119a22f08c6a03f90089b2e47296822859957
[ "MIT" ]
null
null
null
movies_front/wsgi.py
microstack/movies-front
432119a22f08c6a03f90089b2e47296822859957
[ "MIT" ]
null
null
null
import os from views import app if __name__ == "__main__": host = os.environ.get('HOST') app.run(host=host)
14.75
33
0.661017
import os from views import app if __name__ == "__main__": host = os.environ.get('HOST') app.run(host=host)
0
0
0
f536c2f6ef1a68d088de084db7796591fafa5eb4
1,270
py
Python
Book/chap5/Supporting Materials/MultPlotDemo.py
lorenghoh/pyman
9b4ddd52c5577fc85e2601ae3128f398f0eb673c
[ "CC0-1.0" ]
3
2020-04-30T19:50:11.000Z
2020-10-17T02:07:00.000Z
Book/chap5/Supporting Materials/MultPlotDemo.py
lorenghoh/pyman
9b4ddd52c5577fc85e2601ae3128f398f0eb673c
[ "CC0-1.0" ]
35
2020-04-21T04:25:31.000Z
2021-11-06T22:49:44.000Z
Book/chap5/Supporting Materials/MultPlotDemo.py
lorenghoh/pyman
9b4ddd52c5577fc85e2601ae3128f398f0eb673c
[ "CC0-1.0" ]
11
2020-04-21T04:33:48.000Z
2020-10-23T21:12:12.000Z
# Demonstrates the following: # plotting logarithmic axes # user-defined functions # "where" function, NumPy array conditional import numpy as np import matplotlib.pyplot as plt # Define the sinc function, with output for x=0 defined # as a special case to avoid division by zero # create arrays for plott...
23.518519
71
0.708661
# Demonstrates the following: # plotting logarithmic axes # user-defined functions # "where" function, NumPy array conditional import numpy as np import matplotlib.pyplot as plt # Define the sinc function, with output for x=0 defined # as a special case to avoid division by zero def s(x): a = np.where(x...
38
0
22