hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
a6e3c6c6cbfa7bd4641dbc0c7e82c376d36e69e1
12,233
py
Python
jaseci_serv/jaseci_serv/user_api/tests/test_user_api.py
seed4600/jaseci
d738cb5e9e90d5e3e78f516af15cdd5ad920276a
[ "MIT" ]
null
null
null
jaseci_serv/jaseci_serv/user_api/tests/test_user_api.py
seed4600/jaseci
d738cb5e9e90d5e3e78f516af15cdd5ad920276a
[ "MIT" ]
null
null
null
jaseci_serv/jaseci_serv/user_api/tests/test_user_api.py
seed4600/jaseci
d738cb5e9e90d5e3e78f516af15cdd5ad920276a
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.urls import reverse from rest_framework.test import APIClient from rest_framework import status from jaseci.utils.utils import TestCaseHelper from django.test import TestCase # Consts for url CREATE_USER_URL = reverse('user_api:create') TOKEN_URL = reverse(...
38.468553
79
0.650372
7e1871b1f52f24980e227fb47e5247f69958763e
2,804
py
Python
backend-project/small_eod/events/views.py
WlodzimierzKorza/small_eod
027022bd71122a949a2787d0fb86518df80e48cd
[ "MIT" ]
null
null
null
backend-project/small_eod/events/views.py
WlodzimierzKorza/small_eod
027022bd71122a949a2787d0fb86518df80e48cd
[ "MIT" ]
null
null
null
backend-project/small_eod/events/views.py
WlodzimierzKorza/small_eod
027022bd71122a949a2787d0fb86518df80e48cd
[ "MIT" ]
null
null
null
from django.http import HttpResponse from django.template import loader from django.urls import reverse from django.utils.translation import ugettext as _ from django_filters.rest_framework import DjangoFilterBackend from drf_yasg2.utils import swagger_auto_schema from icalendar import Calendar from icalendar import Ev...
35.05
87
0.653352
c0f145734e78e0c159cfc363e8be6b10566c1d82
1,036
py
Python
python/ray/rllib/utils/tracking_dict.py
kirarpit/ray
c759cd8781d172d7cd52da6c08b941ab12953a34
[ "Apache-2.0" ]
null
null
null
python/ray/rllib/utils/tracking_dict.py
kirarpit/ray
c759cd8781d172d7cd52da6c08b941ab12953a34
[ "Apache-2.0" ]
null
null
null
python/ray/rllib/utils/tracking_dict.py
kirarpit/ray
c759cd8781d172d7cd52da6c08b941ab12953a34
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function class UsageTrackingDict(dict): """Dict that tracks which keys have been accessed. It can also intercept gets and allow an arbitrary callback to be applied (i.e., to lazily convert numpy arrays to ...
31.393939
76
0.678571
60e382ab0deeea8a96bdb4fbe648998e6dfd3173
25
py
Python
cadnano/strandset/__init__.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
69
2015-01-13T02:54:40.000Z
2022-03-27T14:25:51.000Z
cadnano/strandset/__init__.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
127
2015-01-01T06:26:34.000Z
2022-03-02T12:48:05.000Z
cadnano/strandset/__init__.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
48
2015-01-22T19:57:49.000Z
2022-03-27T14:27:53.000Z
from .strandset import *
12.5
24
0.76
8a7ccbfd0cccd3ecf016a45099f1f742a95fa5eb
3,402
py
Python
pandapower/test/shortcircuit/test_sgen.py
bergkvist/pandapower
450bbd99888e7e5913905b20b848ee1cfa669ee8
[ "BSD-3-Clause" ]
1
2020-04-25T21:49:34.000Z
2020-04-25T21:49:34.000Z
pandapower/test/shortcircuit/test_sgen.py
bergkvist/pandapower
450bbd99888e7e5913905b20b848ee1cfa669ee8
[ "BSD-3-Clause" ]
1
2020-10-20T19:23:18.000Z
2020-10-24T19:45:47.000Z
pandapower/test/shortcircuit/test_sgen.py
bergkvist/pandapower
450bbd99888e7e5913905b20b848ee1cfa669ee8
[ "BSD-3-Clause" ]
1
2020-11-03T01:40:38.000Z
2020-11-03T01:40:38.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2016-2020 by University of Kassel and Fraunhofer Institute for Energy Economics # and Energy System Technology (IEE), Kassel. All rights reserved. import numpy as np import pytest import pandapower as pp import pandapower.shortcircuit as sc @pytest.fixture def w...
45.36
147
0.703998
899ba9507e6195693df4e78344eca74148c6b93e
5,448
py
Python
Economic_Dispatch/model.py
asuncionjc/Pyomo_Playground
b81a12905fb6cdd041b11f89ee4bbbc20168d4d2
[ "Apache-2.0" ]
1
2019-04-12T14:47:58.000Z
2019-04-12T14:47:58.000Z
Economic_Dispatch/model.py
asuncionjc/Pyomo_Playground
b81a12905fb6cdd041b11f89ee4bbbc20168d4d2
[ "Apache-2.0" ]
null
null
null
Economic_Dispatch/model.py
asuncionjc/Pyomo_Playground
b81a12905fb6cdd041b11f89ee4bbbc20168d4d2
[ "Apache-2.0" ]
1
2021-02-14T18:40:13.000Z
2021-02-14T18:40:13.000Z
# -*- coding: utf-8 -*- """ Created on Wed Apr 10 09:12:06 2019 @author: Asun """ from __future__ import division import pyomo.environ as pe def create_model(number_of_time_periods, number_of_generating_units, number_of_nodes, number_of_lines, gener...
37.833333
386
0.564794
cd5f7649bcc73c4101fc22ac1b1e471904d27206
140
py
Python
testesAdb/teste_brute_force.py
felipedantas043/python
bff2775b2fac89a7789e09f6e55919b37781977b
[ "MIT" ]
null
null
null
testesAdb/teste_brute_force.py
felipedantas043/python
bff2775b2fac89a7789e09f6e55919b37781977b
[ "MIT" ]
null
null
null
testesAdb/teste_brute_force.py
felipedantas043/python
bff2775b2fac89a7789e09f6e55919b37781977b
[ "MIT" ]
null
null
null
from ppadb.device import Device from teste_scrcpy import connectAdb device, client = connectAdb.connect() device.shell("input keyevent 27")
28
37
0.814286
d5c045fbc3cdd9b4123ce82e9133e39418207ed2
1,861
py
Python
GenerateDummyData.py
kenkenpa198/GenerateDummyData
faab717caee34e0463355d49929faa5d99003de6
[ "MIT" ]
null
null
null
GenerateDummyData.py
kenkenpa198/GenerateDummyData
faab717caee34e0463355d49929faa5d99003de6
[ "MIT" ]
null
null
null
GenerateDummyData.py
kenkenpa198/GenerateDummyData
faab717caee34e0463355d49929faa5d99003de6
[ "MIT" ]
null
null
null
''''''''''''''''''''''''''''''''''''''' GenerateDummyData.py / メイン処理 ''''''''''''''''''''''''''''''''''''''' import utils as ut print('') print('=========================') print(' GenerateDummyData ') print('=========================') try: # 設定ファイル用フォルダから設定ファイルのリストを取得 print('\nsettings フォルダに格納されている J...
29.078125
116
0.681354
486041344f0625c7349da116763c9d352156988f
6,988
py
Python
rotkehlchen/data/importer.py
MrChico/rotki
4cf8a964a5121d79ca5e1ad3a2b84d6dca77c439
[ "BSD-3-Clause" ]
null
null
null
rotkehlchen/data/importer.py
MrChico/rotki
4cf8a964a5121d79ca5e1ad3a2b84d6dca77c439
[ "BSD-3-Clause" ]
3
2020-08-03T03:03:51.000Z
2021-05-11T21:26:14.000Z
rotkehlchen/data/importer.py
DUMIE505/rotki
046169bc068c7b29a271d6e80d978e02d0ea76ac
[ "BSD-3-Clause" ]
null
null
null
import csv from pathlib import Path from typing import List from rotkehlchen.assets.asset import Asset from rotkehlchen.constants.assets import A_USD from rotkehlchen.constants.misc import ZERO from rotkehlchen.db.dbhandler import DBHandler from rotkehlchen.errors import DeserializationError, UnknownAsset from rotkehl...
41.595238
98
0.604179
6e9e3a02efaddf69c5c99e6c2ca5bf26bbbfb81e
31,148
py
Python
docs/git_to_sphinx.py
Isshub-io/isshub
21c5c2ff20040b61f4efca384b844987f110e0cb
[ "MIT" ]
1
2021-02-11T00:49:15.000Z
2021-02-11T00:49:15.000Z
docs/git_to_sphinx.py
Isshub-io/isshub
21c5c2ff20040b61f4efca384b844987f110e0cb
[ "MIT" ]
4
2019-06-07T19:06:03.000Z
2020-10-04T10:09:46.000Z
docs/git_to_sphinx.py
Isshub-io/isshub
21c5c2ff20040b61f4efca384b844987f110e0cb
[ "MIT" ]
1
2019-09-15T09:00:52.000Z
2019-09-15T09:00:52.000Z
#!/usr/bin/env python # Set env `GIT_TO_SPHINX_UPDATE_BRANCHES` to other than empty string to update the remote branches # Careful: in dev environment it will reset all your local branches if they diverged from the # remove ones import os import re import shutil import sys import tempfile from collections import defa...
27.711744
128
0.623122
aaab3c3f2e6ba2e5b4b16536a39fc964c3f9a8a9
770
py
Python
yt_concate/model/yto.py
smallwater94/yt-concat
3bec02f25ac41263511c26917a87deac3edc65b9
[ "MIT" ]
null
null
null
yt_concate/model/yto.py
smallwater94/yt-concat
3bec02f25ac41263511c26917a87deac3edc65b9
[ "MIT" ]
null
null
null
yt_concate/model/yto.py
smallwater94/yt-concat
3bec02f25ac41263511c26917a87deac3edc65b9
[ "MIT" ]
null
null
null
# yto YouTube object import os from yt_concate.settings import CAPTIONS_DIR, VIDEOS_DIR class YTO: def __init__(self, url): self.url = url self.v_id = self.get_video_id_from_url(url) self.caption_filepath = self.get_caption_filepath() self.video_filepath = self.get_video_filepath()...
27.5
61
0.672727
03fd901c38c821fa01e793c2b3814717dbcfae98
126
py
Python
alis/lib/__init__.py
alisista/py-alis
08f76d0681c28700145a7839f3e97ee02fd0eb23
[ "MIT" ]
4
2018-08-22T03:44:04.000Z
2019-10-27T05:34:24.000Z
alis/lib/__init__.py
alisista/py-alis
08f76d0681c28700145a7839f3e97ee02fd0eb23
[ "MIT" ]
1
2021-06-02T00:36:04.000Z
2021-06-02T00:36:04.000Z
alis/lib/__init__.py
alisista/py-alis
08f76d0681c28700145a7839f3e97ee02fd0eb23
[ "MIT" ]
null
null
null
from . import apis from . import Call from . import Cognito from . import Pagination from . import Request from . import Util
18
24
0.761905
4776ec6e7ba9d3b53c5b2d11d3292558e3591f3a
20,751
py
Python
src/struct_methods.py
nurmians/ASA_UTA
414d0b7588f3600273220741ca793ea4ed6b1734
[ "MIT" ]
1
2019-09-01T04:55:01.000Z
2019-09-01T04:55:01.000Z
src/utils/struct_methods.py
nurmians/StructureMapper
a759cee2a49ea83d9932ef72f7d967dd60f723fb
[ "MIT" ]
null
null
null
src/utils/struct_methods.py
nurmians/StructureMapper
a759cee2a49ea83d9932ef72f7d967dd60f723fb
[ "MIT" ]
null
null
null
#!/usr/bin/python # coding=UTF-8 # -*- coding: UTF-8 -*- # This file is part of the StructureMapper algorithm. # Please cite the authors if you find this software useful # # https://academic.oup.com/bioinformatics/advance-article/doi/10.1093/bioinformatics/bty086/4857361 # MIT License # # Copyright 2018 Anssi Nurmin...
29.434043
172
0.611489
178d83b14394ce5eb6506133580761220f203dd2
7,014
py
Python
gdm/planing_tool/models/pautas.py
Deonstudios/GDM
ad6c8182d3e70a6c4d1490f452b2c16e12dc85d8
[ "Apache-2.0" ]
null
null
null
gdm/planing_tool/models/pautas.py
Deonstudios/GDM
ad6c8182d3e70a6c4d1490f452b2c16e12dc85d8
[ "Apache-2.0" ]
null
null
null
gdm/planing_tool/models/pautas.py
Deonstudios/GDM
ad6c8182d3e70a6c4d1490f452b2c16e12dc85d8
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # -*- coding: utf-8 -*- from datetime import datetime, timedelta from django.db import models from autoslug import AutoSlugField from django.utils.translation import ugettext_lazy as _ from libs.currency_utils import CurrencyUtils from simple_history.models import HistoricalRecords from planing_tool.mode...
25.881919
69
0.63801
ed91875de38e512e7d740f59fb858158a3d8f61b
1,981
py
Python
ooobuild/lo/form/x_forms.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/form/x_forms.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/form/x_forms.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http: // www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
41.270833
204
0.786471
dbad9c829b8689044e37b146607350a9aa77406d
802
py
Python
generate/fortran/enums.py
Luthaf/Chemharp-bindgen
7d25556773fb5fe22dd1dbb0bd0d34fb2e6dccb8
[ "MIT" ]
null
null
null
generate/fortran/enums.py
Luthaf/Chemharp-bindgen
7d25556773fb5fe22dd1dbb0bd0d34fb2e6dccb8
[ "MIT" ]
2
2018-02-25T21:46:45.000Z
2018-11-19T22:39:54.000Z
generate/fortran/enums.py
chemfiles/bindgen
7d25556773fb5fe22dd1dbb0bd0d34fb2e6dccb8
[ "MIT" ]
null
null
null
# -* coding: utf-8 -* """ This module generate the a Fortran declaration for the C enums. """ from .constants import BEGINING TEMPLATE = """ enum, bind(C) {enumerators} end enum integer, parameter :: {name} = kind({first_enumerator}) """ def enum_to_fortran(enum): names_values = [ "enumerator :: " +...
21.675676
63
0.583541
120cd7250cdacf239c124371a95aa93f153d1bb2
3,704
py
Python
sublime/Packages/Anaconda/anaconda_lib/linting/anaconda_mypy.py
mklewitz-kisura/dotfiles
ab090ddb7a6d892a957fb23923d4a6aedf3d2d8a
[ "MIT" ]
null
null
null
sublime/Packages/Anaconda/anaconda_lib/linting/anaconda_mypy.py
mklewitz-kisura/dotfiles
ab090ddb7a6d892a957fb23923d4a6aedf3d2d8a
[ "MIT" ]
3
2021-05-10T18:59:14.000Z
2021-09-02T01:50:15.000Z
sublime/Packages/Anaconda/anaconda_lib/linting/anaconda_mypy.py
mklewitz-kisura/dotfiles
ab090ddb7a6d892a957fb23923d4a6aedf3d2d8a
[ "MIT" ]
3
2020-02-03T13:24:54.000Z
2020-02-03T13:45:37.000Z
# Copyright (C) 2013 - 2016 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details """ Anaconda MyPy wrapper """ import os import sys import shlex import logging import subprocess from subprocess import PIPE, Popen def parse_mypy_version(): try: from m...
28.9375
78
0.534287
0fa55e03b45b80814d044100db096b901bf1d8dc
59,900
py
Python
tests/rest/admin/test_room.py
maxkratz/synapse
e46ac85d674d90fa01aa49aee9587093ab6d8677
[ "Apache-2.0" ]
1
2021-10-16T07:33:46.000Z
2021-10-16T07:33:46.000Z
tests/rest/admin/test_room.py
maxkratz/synapse
e46ac85d674d90fa01aa49aee9587093ab6d8677
[ "Apache-2.0" ]
1
2021-10-16T08:27:46.000Z
2021-10-16T08:27:46.000Z
tests/rest/admin/test_room.py
maxkratz/synapse
e46ac85d674d90fa01aa49aee9587093ab6d8677
[ "Apache-2.0" ]
1
2022-03-29T21:46:53.000Z
2022-03-29T21:46:53.000Z
# Copyright 2020 Dirk Klimpel # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
36.613692
96
0.605576
7515b3de75faa5346d0718771c787355e1bb62ef
1,973
py
Python
CircuitPython/basic_bmp280_vl53l1x/code.py
sourceperl/pico-explorer
6ae564e63bedfc0928e799060957af3f43a59408
[ "MIT" ]
null
null
null
CircuitPython/basic_bmp280_vl53l1x/code.py
sourceperl/pico-explorer
6ae564e63bedfc0928e799060957af3f43a59408
[ "MIT" ]
null
null
null
CircuitPython/basic_bmp280_vl53l1x/code.py
sourceperl/pico-explorer
6ae564e63bedfc0928e799060957af3f43a59408
[ "MIT" ]
null
null
null
import time import board import busio import terminalio import displayio # from https://circuitpython.org/libraries from adafruit_display_text import label from adafruit_st7789 import ST7789 import adafruit_bmp280 # custom code for VL53L1x (not official support at this time) from custom_vl53l1x import VL53L1X...
32.344262
88
0.704004
874f82720161be355e3c97578952b3b98e5e6974
423
py
Python
server/lib/python3.9/site-packages/stripe/api_resources/tax_rate.py
ejanicas-stripe/hotel
a0d0a7e1ae14b509a5c9d05d17603b99399cb752
[ "MIT" ]
1,078
2015-01-06T03:35:05.000Z
2022-03-25T13:25:48.000Z
server/lib/python3.9/site-packages/stripe/api_resources/tax_rate.py
ejanicas-stripe/hotel
a0d0a7e1ae14b509a5c9d05d17603b99399cb752
[ "MIT" ]
558
2015-01-07T19:05:02.000Z
2022-03-28T22:19:24.000Z
server/lib/python3.9/site-packages/stripe/api_resources/tax_rate.py
ejanicas-stripe/hotel
a0d0a7e1ae14b509a5c9d05d17603b99399cb752
[ "MIT" ]
382
2015-01-04T14:06:09.000Z
2022-03-16T04:52:04.000Z
# File generated from our OpenAPI spec from __future__ import absolute_import, division, print_function from stripe.api_resources.abstract import CreateableAPIResource from stripe.api_resources.abstract import ListableAPIResource from stripe.api_resources.abstract import UpdateableAPIResource class TaxRate( Crea...
28.2
64
0.832151
f4630551c6146bbfcc18462640352daf8c29389a
1,387
py
Python
localflavor/tr/forms.py
3DHubs/localflavor
d84f7e13c738402790ab84ab894227c509826b02
[ "BSD-3-Clause" ]
1
2022-01-31T11:12:03.000Z
2022-01-31T11:12:03.000Z
localflavor/tr/forms.py
3DHubs/localflavor
d84f7e13c738402790ab84ab894227c509826b02
[ "BSD-3-Clause" ]
2
2021-04-22T09:02:20.000Z
2021-09-20T09:23:45.000Z
localflavor/tr/forms.py
3DHubs/localflavor
d84f7e13c738402790ab84ab894227c509826b02
[ "BSD-3-Clause" ]
1
2021-02-05T09:42:52.000Z
2021-02-05T09:42:52.000Z
from __future__ import unicode_literals from localflavor.exceptions import ValidationError from localflavor.base import RegexValidator, Select from localflavor.stub import _ from .tr_provinces import PROVINCE_CHOICES class TRPostalCodeField(RegexValidator): """ A form field that validates input as a Turkish...
31.522727
81
0.679164
5db17904bcd89304cb6c38463d2b61d5571bafb1
1,116
py
Python
leetcode/ag_146.py
baobei813214232/common-alglib
303e4edc5f7c1b5e9a2a6ebc4742d7bae61c5d31
[ "MIT" ]
4
2017-05-02T09:47:48.000Z
2019-05-01T06:26:26.000Z
leetcode/ag_146.py
xiaolongnk/Alglib
303e4edc5f7c1b5e9a2a6ebc4742d7bae61c5d31
[ "MIT" ]
null
null
null
leetcode/ag_146.py
xiaolongnk/Alglib
303e4edc5f7c1b5e9a2a6ebc4742d7bae61c5d31
[ "MIT" ]
1
2021-01-31T07:21:53.000Z
2021-01-31T07:21:53.000Z
import collections class LRUCache(object): def __init__(self, capacity): """ :type capacity: int """ self.capacity = capacity self.ldict = collections.OrderedDict() def get(self, key): """ :rtype: int """ try: value ...
19.578947
48
0.473118
e7c41ba6edbbe539809762500e07e3213dd3ce00
1,910
py
Python
projects/mirem/build_database/build_mirnaref.py
tri-CSI/Bioinfo
9a5dc39068af9ae9286e4b24458cd48656788cd6
[ "CC0-1.0" ]
1
2020-06-15T22:41:13.000Z
2020-06-15T22:41:13.000Z
projects/mirem/build_database/build_mirnaref.py
tri-CSI/Bioinfo
9a5dc39068af9ae9286e4b24458cd48656788cd6
[ "CC0-1.0" ]
null
null
null
projects/mirem/build_database/build_mirnaref.py
tri-CSI/Bioinfo
9a5dc39068af9ae9286e4b24458cd48656788cd6
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/python3 """ Author: TRAN Minh Tri - csitmt Date: Sep 2015 Use: python3 build_mirnaref.py hairpin mature dblist """ import argparse, sys, gzip parser = argparse.ArgumentParser( description="Convert miRNA family into miRNA, one line per entry." ) #parser.add_argument( 'hairpin', metavar="hairpinfa", type...
29.384615
120
0.68377
1b5983b7d562f22b440139720f287189da600e84
16,877
py
Python
src/sage/combinat/rigged_configurations/rc_crystal.py
bopopescu/sage
2d495be78e0bdc7a0a635454290b27bb4f5f70f0
[ "BSL-1.0" ]
3
2018-09-11T11:16:26.000Z
2019-09-10T15:26:37.000Z
src/sage/combinat/rigged_configurations/rc_crystal.py
bopopescu/sage
2d495be78e0bdc7a0a635454290b27bb4f5f70f0
[ "BSL-1.0" ]
2
2018-10-30T13:40:20.000Z
2020-07-23T12:13:30.000Z
src/sage/combinat/rigged_configurations/rc_crystal.py
bopopescu/sage
2d495be78e0bdc7a0a635454290b27bb4f5f70f0
[ "BSL-1.0" ]
1
2020-07-23T10:29:58.000Z
2020-07-23T10:29:58.000Z
r""" Crystal of Rigged Configurations AUTHORS: - Travis Scrimshaw (2010-09-26): Initial version We only consider the highest weight crystal structure, not the Kirillov-Reshetikhin structure, and we extend this to symmetrizable types. """ #*****************************************************************************...
36.530303
118
0.58796
6ed08fb63907cc1ae4f260438353329654de02f0
1,169
py
Python
data/utils/sampling.py
IvoOVerhoeven/meta-learning-emotion-detection
fb076d7644173b13eb62d6301544af9e98352512
[ "Apache-2.0" ]
3
2021-04-21T15:44:50.000Z
2021-05-28T15:53:23.000Z
data/utils/sampling.py
IvoOVerhoeven/meta-learning-emotion-detection
fb076d7644173b13eb62d6301544af9e98352512
[ "Apache-2.0" ]
null
null
null
data/utils/sampling.py
IvoOVerhoeven/meta-learning-emotion-detection
fb076d7644173b13eb62d6301544af9e98352512
[ "Apache-2.0" ]
1
2021-09-10T18:13:28.000Z
2021-09-10T18:13:28.000Z
import numpy as np def dataset_sampler(dataset, sampling_method='sqrt'): """Function to sample a single sub-dataset from a meta-dataset. Args: dataset (object): dataset class with .lens as property. This must be a dictionary with sub-datasets as keys and sizes as values. sampling_method (str,...
36.53125
312
0.670659
c146f1a3f73e7197494daef3b42e5c6d11455be3
145
py
Python
Topics/List comprehension/How many days?/main.py
soukalli/jetbrain-accademy
fc486d439b4b54a58956e1186eb69c56b85f85f1
[ "MIT" ]
null
null
null
Topics/List comprehension/How many days?/main.py
soukalli/jetbrain-accademy
fc486d439b4b54a58956e1186eb69c56b85f85f1
[ "MIT" ]
null
null
null
Topics/List comprehension/How many days?/main.py
soukalli/jetbrain-accademy
fc486d439b4b54a58956e1186eb69c56b85f85f1
[ "MIT" ]
null
null
null
seconds = [86400, 1028397, 8372891, 219983, 865779330, 3276993204380912] # create a list of days here print([s // (3600 * 24) for s in seconds])
36.25
72
0.710345
34bb2c4bfad410f2bc9e4afe647f8d3f390806ae
1,814
py
Python
floodsystem/flood.py
james-992/flood-warning
1687da32fa29232e334c9d48dd1007a93e8258b3
[ "MIT" ]
null
null
null
floodsystem/flood.py
james-992/flood-warning
1687da32fa29232e334c9d48dd1007a93e8258b3
[ "MIT" ]
null
null
null
floodsystem/flood.py
james-992/flood-warning
1687da32fa29232e334c9d48dd1007a93e8258b3
[ "MIT" ]
1
2022-01-27T11:00:32.000Z
2022-01-27T11:00:32.000Z
"""for task 2B""" from floodsystem.station import MonitoringStation from floodsystem.stationdata import update_water_levels def stations_over_threshold(stations, tol): """returns all stations with a water level over a threshold ratio""" #Update list of station objects update_water_levels(stations) s...
32.392857
96
0.692393
b0820105c8bfa45b76a3d48a55679ccb03e90ffd
1,513
py
Python
setup.py
ClementJehanno/sage-engine
432deaf1a2ec755c598d71723d786523acea08e8
[ "MIT" ]
null
null
null
setup.py
ClementJehanno/sage-engine
432deaf1a2ec755c598d71723d786523acea08e8
[ "MIT" ]
null
null
null
setup.py
ClementJehanno/sage-engine
432deaf1a2ec755c598d71723d786523acea08e8
[ "MIT" ]
3
2019-01-03T12:49:54.000Z
2019-01-18T16:32:53.000Z
# setup.py # Author: Thomas MINIER - MIT License 2017-2018 from setuptools import setup, find_packages from subprocess import run, SubprocessError from os import getcwd from sys import exit def install_web_deps(): """Install Sage web interface dependencies using npm""" path = "{}/http_server/static".format(ge...
28.018519
82
0.703239
e364ac6be07a882f5cba4e64298754cf99ca5960
286
py
Python
app/user/urls.py
imrishabh95-exe/recepie-app-api
894ec36551c3391b7da522e20ad4f899cfbd437d
[ "MIT" ]
null
null
null
app/user/urls.py
imrishabh95-exe/recepie-app-api
894ec36551c3391b7da522e20ad4f899cfbd437d
[ "MIT" ]
null
null
null
app/user/urls.py
imrishabh95-exe/recepie-app-api
894ec36551c3391b7da522e20ad4f899cfbd437d
[ "MIT" ]
null
null
null
from django.urls import path from user import views app_name = 'user' urlpatterns = [ path('create/', views.CreateUserView.as_view(), name='create'), path('token/', views.CreateTokenView.as_view(), name='token'), path('me/', views.ManageUserViews.as_view(), name='me'), ]
26
67
0.685315
7ec770fed08e80bb4242cca578731dc5331e8f8c
402
py
Python
oy/project_templates/default/build_context.py
mush42/oy-cms
66f2490be7eab9a692a68bb635099ba21d5944ae
[ "MIT" ]
5
2019-02-12T08:54:46.000Z
2021-03-15T09:22:44.000Z
oy/project_templates/default/build_context.py
mush42/oy-cms
66f2490be7eab9a692a68bb635099ba21d5944ae
[ "MIT" ]
2
2020-04-30T01:27:08.000Z
2020-07-16T18:04:16.000Z
oy/project_templates/default/build_context.py
mush42/oy-cms
66f2490be7eab9a692a68bb635099ba21d5944ae
[ "MIT" ]
3
2019-10-16T05:53:31.000Z
2021-10-11T09:37:16.000Z
# -*-coding: utf-8-*- # This file is used to generate the render context to # be used in the rendering of other files in this project # It will be deleted from the final output folder import secrets import oy __all__ = ["secret_key", "db_uri", "password_sult", "oy_version"] secret_key = secrets.token_hex(32) db_ur...
23.647059
65
0.743781
baedba345eaed08fd7c7187cb1ccee4ac9af60b0
2,060
py
Python
packages/python/plotly/plotly/validators/scattergeo/_hoverlabel.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/scattergeo/_hoverlabel.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/scattergeo/_hoverlabel.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
import _plotly_utils.basevalidators class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__(self, plotly_name="hoverlabel", parent_name="scattergeo", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_na...
39.615385
85
0.548058
b1545504c3ef80032a4f07491dbd776ea26498f7
3,492
py
Python
georiviere/description/forms.py
Georiviere/Georiviere-admin
f59e1b979a758958a64899916b8b72d580128ee9
[ "BSD-2-Clause" ]
7
2021-11-05T14:52:25.000Z
2022-03-24T21:18:02.000Z
georiviere/description/forms.py
Georiviere/Georiviere-admin
f59e1b979a758958a64899916b8b72d580128ee9
[ "BSD-2-Clause" ]
57
2021-11-02T10:27:34.000Z
2022-03-31T14:08:32.000Z
georiviere/description/forms.py
Georiviere/Georiviere-admin
f59e1b979a758958a64899916b8b72d580128ee9
[ "BSD-2-Clause" ]
1
2021-12-05T14:55:42.000Z
2021-12-05T14:55:42.000Z
from django import forms from django.core.exceptions import ValidationError from django.utils.translation import gettext_lazy as _ from crispy_forms.layout import Field from crispy_forms.bootstrap import AppendedText from geotrek.common.forms import CommonForm from georiviere.description.models import Land, Status, M...
32.036697
121
0.655212
0e4c0e16658871dc30d16c084163591a3cee9e04
237
py
Python
config/config/settings/local.py
DURGESHBARWAL/modern-django
89455e8acba03fd3c775f6e76a10a2aed6d6f368
[ "MIT" ]
null
null
null
config/config/settings/local.py
DURGESHBARWAL/modern-django
89455e8acba03fd3c775f6e76a10a2aed6d6f368
[ "MIT" ]
null
null
null
config/config/settings/local.py
DURGESHBARWAL/modern-django
89455e8acba03fd3c775f6e76a10a2aed6d6f368
[ "MIT" ]
null
null
null
from .base import* # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = env('DJANGO_SECRET_KEY', default='yq6yl7#7=o7u5-gw&d!0wasc607u)%@z404*c93dq%o79c#g6d') DEBUG = env.bool('DJANGO_DEBUG', default=True)
26.333333
99
0.751055
8e77560921c8ee5ae49c4a2c321de56f8f95c529
2,270
py
Python
docs/conf.py
idannik/soduko_django
d4633784bbf2006e3673e2e04e4f803b21d0afc8
[ "MIT" ]
null
null
null
docs/conf.py
idannik/soduko_django
d4633784bbf2006e3673e2e04e4f803b21d0afc8
[ "MIT" ]
null
null
null
docs/conf.py
idannik/soduko_django
d4633784bbf2006e3673e2e04e4f803b21d0afc8
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
36.031746
79
0.66652
268123eccd80af9284a834eb24ef40f36de1c5e8
2,063
py
Python
flax/linen/activation.py
mattjj/flax
ebc8df57a4e982eaa82f6e5b0d5a399c9bae2032
[ "Apache-2.0" ]
1
2022-02-27T13:50:55.000Z
2022-02-27T13:50:55.000Z
flax/linen/activation.py
mattjj/flax
ebc8df57a4e982eaa82f6e5b0d5a399c9bae2032
[ "Apache-2.0" ]
null
null
null
flax/linen/activation.py
mattjj/flax
ebc8df57a4e982eaa82f6e5b0d5a399c9bae2032
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 The Flax Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
27.506667
93
0.751818
353b753bf389bd465ebcf3af06adb90725046fa1
3,746
py
Python
opensanctions/crawlers/fr_tresor_gels_avoir.py
quantumchips/opensanctions
56f19dcfea704480e56a311d2a807c8446237457
[ "MIT" ]
102
2018-03-22T16:33:17.000Z
2021-01-20T07:39:43.000Z
opensanctions/crawlers/fr_tresor_gels_avoir.py
quantumchips/opensanctions
56f19dcfea704480e56a311d2a807c8446237457
[ "MIT" ]
101
2021-02-12T18:26:16.000Z
2022-01-27T14:01:53.000Z
opensanctions/crawlers/fr_tresor_gels_avoir.py
quantumchips/opensanctions
56f19dcfea704480e56a311d2a807c8446237457
[ "MIT" ]
50
2018-05-11T18:00:49.000Z
2021-01-26T12:11:20.000Z
import json from prefixdate import parse_parts from pantomime.types import JSON from opensanctions import helpers as h SCHEMATA = { "Personne physique": "Person", "Personne morale": "Organization", "Navire": "Vessel", } def apply_prop(context, entity, sanction, field, value): if field == "ALIAS": ...
36.019231
84
0.619861
ee123c4fab2aea7124094b0ac99e98217b78c117
559
py
Python
developer_ws/src/demo_sub/demo_sub/demo_subscriber.py
niksacdev/ros2_demo_pubsub
25c751b54b41e3bec15ec03b03485c4bacb84aa8
[ "Unlicense" ]
null
null
null
developer_ws/src/demo_sub/demo_sub/demo_subscriber.py
niksacdev/ros2_demo_pubsub
25c751b54b41e3bec15ec03b03485c4bacb84aa8
[ "Unlicense" ]
null
null
null
developer_ws/src/demo_sub/demo_sub/demo_subscriber.py
niksacdev/ros2_demo_pubsub
25c751b54b41e3bec15ec03b03485c4bacb84aa8
[ "Unlicense" ]
null
null
null
from rclpy.node import Node from std_msgs.msg import String class DemoSubscriber(Node): """Subscriber type to create a subscriber and listen on a topic""" def __init__(self): """initialize the listener to subscribe to the desired topic""" super().__init__("demo_subscriber") self.subscr...
37.266667
102
0.703041
0571b81710f99f8049fd5af1cac4c51db3bd3fde
537
py
Python
f1wdc/manage.py
venkatsgithub1/formula1Till2017WithDjango
a36b9c41c831a66d4198c580910d9f48cf61acca
[ "MIT" ]
null
null
null
f1wdc/manage.py
venkatsgithub1/formula1Till2017WithDjango
a36b9c41c831a66d4198c580910d9f48cf61acca
[ "MIT" ]
null
null
null
f1wdc/manage.py
venkatsgithub1/formula1Till2017WithDjango
a36b9c41c831a66d4198c580910d9f48cf61acca
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "f1wdc.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are yo...
33.5625
73
0.685289
ff6de57133c5d79e0e7d9f174d1b407ad88d9e58
3,356
py
Python
src/streamlink/plugins/earthcam.py
isqad/streamlink
f6708f1d38d056177ac3d614ebbb740d956d46f0
[ "BSD-2-Clause" ]
1
2017-11-26T18:48:29.000Z
2017-11-26T18:48:29.000Z
src/streamlink/plugins/earthcam.py
isqad/streamlink
f6708f1d38d056177ac3d614ebbb740d956d46f0
[ "BSD-2-Clause" ]
null
null
null
src/streamlink/plugins/earthcam.py
isqad/streamlink
f6708f1d38d056177ac3d614ebbb740d956d46f0
[ "BSD-2-Clause" ]
1
2021-06-03T23:08:48.000Z
2021-06-03T23:08:48.000Z
from __future__ import print_function import re from streamlink.plugin import Plugin from streamlink.plugin.api import http from streamlink.plugin.api import validate from streamlink.stream import HLSStream, RTMPStream from streamlink.utils import parse_json class EarthCam(Plugin): url_re = re.compile(r"https?:...
33.227723
117
0.570918
5b801c0362758cc3fe59866d1b1b01ece640a00d
209
py
Python
exercicios-python/ex023.py
DaviStalleiken/codigos-de-desafios
e9ec388022b5f4bb2a5ab170c17969154ceaece3
[ "MIT" ]
null
null
null
exercicios-python/ex023.py
DaviStalleiken/codigos-de-desafios
e9ec388022b5f4bb2a5ab170c17969154ceaece3
[ "MIT" ]
null
null
null
exercicios-python/ex023.py
DaviStalleiken/codigos-de-desafios
e9ec388022b5f4bb2a5ab170c17969154ceaece3
[ "MIT" ]
null
null
null
n = int(input('Digite um número de 0 a 9999: ')) u = n // 1 % 10 d = n // 10 % 10 c = n // 100 % 10 m = n // 1000 % 10 print(f'Unidade: {u}') print(f'Dezena: {d}') print(f'Centena: {c}') print(f'Milhar: {m}')
20.9
48
0.5311
b202a6f43489b91539a398dacba9075b95d78f5f
3,462
py
Python
controller/schedule.py
Sherlock113/ks-installer
147db25ae6885ddab9981494b8baf8d7ef7353b1
[ "Apache-2.0" ]
1
2021-03-26T17:08:43.000Z
2021-03-26T17:08:43.000Z
controller/schedule.py
Sherlock113/ks-installer
147db25ae6885ddab9981494b8baf8d7ef7353b1
[ "Apache-2.0" ]
null
null
null
controller/schedule.py
Sherlock113/ks-installer
147db25ae6885ddab9981494b8baf8d7ef7353b1
[ "Apache-2.0" ]
5
2021-02-14T11:13:18.000Z
2021-03-08T05:59:56.000Z
#!/usr/bin/env python3 # encoding: utf-8 import os import sys import time import shutil import yaml import json import datetime import ansible_runner import collections # playbookBasePath = '/root/ks-installer/playbooks' # privateDataDir = '/etc/kubesphere/results' # configFile = '/root/ks-installer/controller/confi...
32.055556
257
0.524841
f60ace46db33dc362b694ee66f18c93fb89b7b5e
1,788
py
Python
tests/test_1_nonsense.py
mrksbrg/SE-Achievements
730efb1a6feeca98750d9b1d69fad760dfed990e
[ "MIT" ]
3
2020-05-07T09:10:55.000Z
2022-01-07T10:24:15.000Z
tests/test_1_nonsense.py
mrksbrg/SE-Achievements
730efb1a6feeca98750d9b1d69fad760dfed990e
[ "MIT" ]
6
2020-01-13T09:11:01.000Z
2021-07-30T20:45:15.000Z
tests/test_1_nonsense.py
mrksbrg/SE-Achievements
730efb1a6feeca98750d9b1d69fad760dfed990e
[ "MIT" ]
1
2020-10-13T08:46:12.000Z
2020-10-13T08:46:12.000Z
# -*- coding: utf-8 -*- """ Created on Sat Jun 15 16:50:30 2019 @author: Markus Borg """ from datetime import date from swesesci.scholar import SSSScholar from swesesci.affiliation import SSSAffiliation from swesesci.scholar_miner import ScholarMiner class TestClass_NonSense: def setup_method(self): sel...
34.384615
93
0.603468
5b9c69fdf6973ed7c50c4a71a25273f6fc4aa760
3,529
py
Python
bindings/python/ensmallen/datasets/string/slackiapiriformis.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-09-10T18:31:58.000Z
2022-03-24T04:28:04.000Z
bindings/python/ensmallen/datasets/string/slackiapiriformis.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/slackiapiriformis.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Slackia piriformis. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: protein--protein ass...
32.675926
223
0.675829
0605e709db0b7e635601c7fbb987cea1ccfbc745
4,583
py
Python
turbinia/lib/utils.py
CiaranFahy/turbinia
5423ac3106cb6a3b74a8277302695a32775caad6
[ "Apache-2.0" ]
null
null
null
turbinia/lib/utils.py
CiaranFahy/turbinia
5423ac3106cb6a3b74a8277302695a32775caad6
[ "Apache-2.0" ]
null
null
null
turbinia/lib/utils.py
CiaranFahy/turbinia
5423ac3106cb6a3b74a8277302695a32775caad6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018 Google 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 ...
30.553333
80
0.720271
6bbba6a85a8a59d1860c48961cc1fa7aeb4dab1f
8,254
py
Python
pyfdb/pyfdb.py
ecmwf/pyfdb
90716ddcaa8b3d981e695b47a1690123e0c230ba
[ "Apache-2.0" ]
null
null
null
pyfdb/pyfdb.py
ecmwf/pyfdb
90716ddcaa8b3d981e695b47a1690123e0c230ba
[ "Apache-2.0" ]
null
null
null
pyfdb/pyfdb.py
ecmwf/pyfdb
90716ddcaa8b3d981e695b47a1690123e0c230ba
[ "Apache-2.0" ]
null
null
null
# # Copyright 2017-2018 European Centre for Medium-Range Weather Forecasts (ECMWF). # # 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...
27.421927
118
0.603586
128a64ef3200e240d7e235e75137ca20c871e0f9
934
py
Python
myapp/ChunkManager.py
abars/illustbook
3e790a688c19205b7384cc5815ca76c23b88f09a
[ "MIT" ]
3
2016-06-16T20:11:45.000Z
2022-01-27T04:23:09.000Z
myapp/ChunkManager.py
abars/illustbook
3e790a688c19205b7384cc5815ca76c23b88f09a
[ "MIT" ]
1
2017-10-23T00:23:13.000Z
2017-10-23T00:23:13.000Z
myapp/ChunkManager.py
abars/illustbook
3e790a688c19205b7384cc5815ca76c23b88f09a
[ "MIT" ]
null
null
null
#!-*- coding:utf-8 -*- #!/usr/bin/env python #--------------------------------------------------- #1MBを超えるファイルをチャンク分割して保存する #copyright 2010-2012 ABARS all rights reserved. #--------------------------------------------------- from myapp.Chunk import Chunk from google.appengine.ext import db class ChunkManager (): @...
21.72093
52
0.630621
d7b27fe2a2054b7bf427ada240a828eedf8a77e6
168
py
Python
poetry/installation/operations/__init__.py
uda/poetry
30e3d7e33c20cbe2af8eda06e0db4888275caaa1
[ "MIT" ]
12,347
2019-12-12T07:07:32.000Z
2022-03-31T21:08:50.000Z
poetry/installation/operations/__init__.py
uda/poetry
30e3d7e33c20cbe2af8eda06e0db4888275caaa1
[ "MIT" ]
3,483
2019-12-11T20:20:20.000Z
2022-03-31T23:18:18.000Z
poetry/installation/operations/__init__.py
uda/poetry
30e3d7e33c20cbe2af8eda06e0db4888275caaa1
[ "MIT" ]
1,399
2019-12-12T12:27:46.000Z
2022-03-31T09:12:53.000Z
from typing import Union from .install import Install from .uninstall import Uninstall from .update import Update OperationTypes = Union[Install, Uninstall, Update]
18.666667
50
0.809524
fae5ffa784443562571b10c6f372f67f5a9f7461
13,816
py
Python
lemur/plugins/lemur_acme/ultradns.py
dck25/lemur
32dda00f9fb4b72091bb3f4e7be1d262ea5fd857
[ "Apache-2.0" ]
1,656
2015-09-20T03:12:28.000Z
2022-03-29T18:00:54.000Z
lemur/plugins/lemur_acme/ultradns.py
infor-cloud/lemur
1f8be151d41cda6445eabea53a71f5482be58ea7
[ "Apache-2.0" ]
3,017
2015-09-18T23:15:24.000Z
2022-03-30T22:40:02.000Z
lemur/plugins/lemur_acme/ultradns.py
hosseinsh/lemur
fbf50b365cb0f7a0e9cae31dec1b853b958c45bb
[ "Apache-2.0" ]
401
2015-09-18T23:02:18.000Z
2022-02-20T16:13:14.000Z
import time import requests import json import sys import dns import dns.exception import dns.name import dns.query import dns.resolver from flask import current_app from sentry_sdk import capture_exception from lemur.extensions import metrics class Record: """ This class implements an Ultra DNS record. ...
30.839286
106
0.615373
83797b7276bce95b14ec30f1755edf1b913082ac
910
py
Python
share/qt/clean_mac_info_plist.py
coinkeeper/2015-04-19_21-26_umbrella-ltc
8793c46ec070c01204b3838818e2c0dbad0c8185
[ "MIT" ]
null
null
null
share/qt/clean_mac_info_plist.py
coinkeeper/2015-04-19_21-26_umbrella-ltc
8793c46ec070c01204b3838818e2c0dbad0c8185
[ "MIT" ]
null
null
null
share/qt/clean_mac_info_plist.py
coinkeeper/2015-04-19_21-26_umbrella-ltc
8793c46ec070c01204b3838818e2c0dbad0c8185
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Jonas Schnelli, 2013 # make sure the Umbrella-LTC-Qt.app contains the right plist (including the right version) # fix made because of serval bugs in Qt mac deployment (https://bugreports.qt-project.org/browse/QTBUG-21267) from string import Template from datetime import date bitcoinDir = "./";...
30.333333
109
0.726374
6cedb8e2fd225389be7c7cd032bac694a00566d6
534
py
Python
app/recipe/urls.py
Hima-Varshith/recipe-app-api
ffbe575f218faa04f682925a6c08ffa70f9ae7d5
[ "MIT" ]
null
null
null
app/recipe/urls.py
Hima-Varshith/recipe-app-api
ffbe575f218faa04f682925a6c08ffa70f9ae7d5
[ "MIT" ]
null
null
null
app/recipe/urls.py
Hima-Varshith/recipe-app-api
ffbe575f218faa04f682925a6c08ffa70f9ae7d5
[ "MIT" ]
null
null
null
from django.urls import path, include from rest_framework.routers import DefaultRouter from recipe import views #def-router automatically generates/registers all the URLs for our user : /api/recipe/tags/id router = DefaultRouter() router.register('tags', views.TagViewSet) router.register('ingredients',views.Ingredient...
31.411765
93
0.792135
b79fc6b1b9bf8932e34fd308ebd3f09be402fe75
130
py
Python
{{cookiecutter.project_slug}}/app/accounts/email.py
n0tNoah/django-cookiecutter-rest
8f8f85559d2e16f028cec7eb13b10f7378118074
[ "MIT" ]
4
2022-01-27T13:30:10.000Z
2022-02-10T15:27:29.000Z
{{cookiecutter.project_slug}}/app/accounts/email.py
n0tNoah/djangoLTS-slim
9136b54037be89992db0e92bc0e6040010ac357d
[ "MIT" ]
8
2022-01-31T15:58:31.000Z
2022-03-30T19:30:33.000Z
{{cookiecutter.project_slug}}/app/accounts/email.py
n0tNoah/djangoLTS-slim
9136b54037be89992db0e92bc0e6040010ac357d
[ "MIT" ]
1
2022-02-01T07:05:37.000Z
2022-02-01T07:05:37.000Z
from djoser import email class PasswordResetEmail(email.PasswordResetEmail): template_name = "email/password_reset_v1.html"
21.666667
51
0.815385
096fa29a319e2f1b24c301d2e2923fed802fefc8
9,761
py
Python
development_playgrounds/StructuredInferencePlaygroundLorentzExperiment.py
ai-di/Brancher
01d51137b0e6fc81512994c21cc3a19287353767
[ "MIT" ]
208
2019-06-15T13:48:40.000Z
2021-10-16T05:03:46.000Z
development_playgrounds/StructuredInferencePlaygroundLorentzExperiment.py
ai-di/Brancher
01d51137b0e6fc81512994c21cc3a19287353767
[ "MIT" ]
18
2019-06-17T11:22:13.000Z
2019-09-26T10:45:59.000Z
development_playgrounds/StructuredInferencePlaygroundLorentzExperiment.py
ai-di/Brancher
01d51137b0e6fc81512994c21cc3a19287353767
[ "MIT" ]
32
2019-06-15T19:08:53.000Z
2020-02-16T13:39:41.000Z
import matplotlib.pyplot as plt import numpy as np import seaborn as sbn import pandas as pd from brancher.variables import RootVariable, RandomVariable, ProbabilisticModel from brancher.standard_variables import NormalVariable, LogNormalVariable, BetaVariable, MultivariateNormalVariable from brancher import inference...
40.334711
115
0.552095
c2be71aa21cbd64819b49f4faf8783ed29904774
2,102
py
Python
bots/economy/glbonds.py
23errg/GamestonkTerminal
826cd8a723d8e2b810c51bf8266c09e8e55059c4
[ "MIT" ]
null
null
null
bots/economy/glbonds.py
23errg/GamestonkTerminal
826cd8a723d8e2b810c51bf8266c09e8e55059c4
[ "MIT" ]
null
null
null
bots/economy/glbonds.py
23errg/GamestonkTerminal
826cd8a723d8e2b810c51bf8266c09e8e55059c4
[ "MIT" ]
null
null
null
import logging import pandas as pd from bots import imps from openbb_terminal.decorators import log_start_end from openbb_terminal.economy import wsj_model logger = logging.getLogger(__name__) @log_start_end(log=logger) def glbonds_command(): """Global bonds overview [Wall St. Journal]""" # Debug user inp...
26.275
88
0.552807
f00c4dc1385f15d3a8f7cc08eb0ef91a028b57a4
5,304
py
Python
airplane/airplane.py
milkmeat/thomas
fbc72af34267488d931a4885d4e19fce22fea582
[ "MIT" ]
null
null
null
airplane/airplane.py
milkmeat/thomas
fbc72af34267488d931a4885d4e19fce22fea582
[ "MIT" ]
null
null
null
airplane/airplane.py
milkmeat/thomas
fbc72af34267488d931a4885d4e19fce22fea582
[ "MIT" ]
null
null
null
import cocos from pyglet.window import key from cocos.actions import* from cocos.director import director import random import cocos.collision_model as cm import cocos.euclid as eu class GameOver(cocos.layer.Layer): def __init__(self): super( GameOver, self ).__init__() background=coco...
34.441558
115
0.525641
4d121e199ce11535302911a29623a6b030e7eef0
6,615
py
Python
examples/chicago_taxi/trainer/model.py
hakanhp/chanel
6825b60e86c46daabb18f40f1e45d3de2ff8e983
[ "Apache-2.0" ]
1
2019-03-24T15:09:56.000Z
2019-03-24T15:09:56.000Z
examples/chicago_taxi/trainer/model.py
hakanhp/chanel
6825b60e86c46daabb18f40f1e45d3de2ff8e983
[ "Apache-2.0" ]
null
null
null
examples/chicago_taxi/trainer/model.py
hakanhp/chanel
6825b60e86c46daabb18f40f1e45d3de2ff8e983
[ "Apache-2.0" ]
1
2020-04-12T14:29:27.000Z
2020-04-12T14:29:27.000Z
# Copyright 2018 Google 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
39.610778
79
0.763265
de9763fd6b887b5e2d57d5f551b5f82eafa35099
212
py
Python
scripts/servedocs.py
sdaves/mything-test-deploy
4900e5cca3fbc9bb48076ab49c5d0d8bb09443aa
[ "MIT" ]
null
null
null
scripts/servedocs.py
sdaves/mything-test-deploy
4900e5cca3fbc9bb48076ab49c5d0d8bb09443aa
[ "MIT" ]
null
null
null
scripts/servedocs.py
sdaves/mything-test-deploy
4900e5cca3fbc9bb48076ab49c5d0d8bb09443aa
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import webbrowser webbrowser.open('http://0.0.0.0:8000') import os os.chdir(os.path.abspath(os.path.dirname(__file__))) os.chdir('..') os.chdir('docs') os.system('python3 -m http.server')
21.2
52
0.712264
dd33f5b752f13d3c32d0c5990b448fb962e5b4e6
6,811
py
Python
pm4pygpu/social_network.py
mnghiap/pm4pygpu
3cd0dbcbf01377c3a9af5f748ef993c095de6b41
[ "Apache-2.0" ]
null
null
null
pm4pygpu/social_network.py
mnghiap/pm4pygpu
3cd0dbcbf01377c3a9af5f748ef993c095de6b41
[ "Apache-2.0" ]
null
null
null
pm4pygpu/social_network.py
mnghiap/pm4pygpu
3cd0dbcbf01377c3a9af5f748ef993c095de6b41
[ "Apache-2.0" ]
null
null
null
from pm4pygpu.constants import Constants from pm4pygpu.dfg import paths_udf, get_frequency_dfg import numpy as np from scipy.stats import pearsonr from pm4pygpu.basic import num_cases from pm4pygpu.cases_df import build_cases_df def get_num_cases_of_resource(df): ''' Calculate for each resource the number of c...
55.827869
178
0.718837
81dd81a863012921a2a736a01d87de3807afc5af
3,018
py
Python
Kij_modification_framework.py
pferna6/phasepy
92bea943e93b1e1decc5f2c5af4c29528eb7c96c
[ "MIT" ]
2
2022-03-08T23:22:52.000Z
2022-03-08T23:23:01.000Z
Kij_modification_framework.py
pferna6/phasepy
92bea943e93b1e1decc5f2c5af4c29528eb7c96c
[ "MIT" ]
null
null
null
Kij_modification_framework.py
pferna6/phasepy
92bea943e93b1e1decc5f2c5af4c29528eb7c96c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Mar 30 13:06:30 2022 @author: Pedro """ class kijCalc(object): def doubleSummation(a,b): nums = a+1 dums = b+1 sum = 0 for i in range(1,nums): for j in range(2,dums): sum +=i+j print(sum) dou...
30.795918
92
0.409874
cf66ae16eb908b957c95d44aad1ae83043a1baa8
11,476
py
Python
py2many/clike.py
laszlo-kiss/py2many
34569bc57f844ad4d68b7b9cf09316fbb71ccd88
[ "MIT" ]
1
2021-05-14T00:38:10.000Z
2021-05-14T00:38:10.000Z
py2many/clike.py
laszlo-kiss/py2many
34569bc57f844ad4d68b7b9cf09316fbb71ccd88
[ "MIT" ]
null
null
null
py2many/clike.py
laszlo-kiss/py2many
34569bc57f844ad4d68b7b9cf09316fbb71ccd88
[ "MIT" ]
null
null
null
import ast import sys from py2many.analysis import get_id from typing import List, Optional, Tuple symbols = { ast.Eq: "==", ast.Is: "==", ast.NotEq: "!=", ast.Mult: "*", ast.Add: "+", ast.Sub: "-", ast.Div: "/", ast.FloorDiv: "/", ast.Mod: "%", ast.Lt: "<", ast.Gt: ">", ...
33.457726
86
0.58435
f604d983738b53257b62af02608a1c043552377f
232
py
Python
python__OOP/02.defining_classes_exercise/spoopify/project/song.py
EmilianStoyanov/Projects-in-SoftUni
e83996670fe00424a158905d537a7bbbeee8fb59
[ "MIT" ]
1
2020-07-14T12:32:47.000Z
2020-07-14T12:32:47.000Z
python__OOP/02.defining_classes_exercise/spoopify/project/song.py
EmilianStoyanov/Projects-in-SoftUni
e83996670fe00424a158905d537a7bbbeee8fb59
[ "MIT" ]
null
null
null
python__OOP/02.defining_classes_exercise/spoopify/project/song.py
EmilianStoyanov/Projects-in-SoftUni
e83996670fe00424a158905d537a7bbbeee8fb59
[ "MIT" ]
null
null
null
class Song: def __init__(self, name: str, length: float, single: bool): self.name = name self.length = length self.single = single def get_info(self): return f"{self.name} - {self.length}"
21.090909
63
0.586207
9cfca373dd6986029bb7207c82ba7b39508e800c
4,123
py
Python
src/test.py
jizefeng0810/SDA-OD
c564bcc561fd06fbe07ff8c2301ec74ef881ca1c
[ "MIT" ]
5
2020-12-09T13:25:56.000Z
2022-01-21T12:54:39.000Z
src/test.py
jizefeng0810/SDA-OD
c564bcc561fd06fbe07ff8c2301ec74ef881ca1c
[ "MIT" ]
1
2022-02-28T16:24:25.000Z
2022-03-14T02:43:38.000Z
src/test.py
jizefeng0810/SDA-OD
c564bcc561fd06fbe07ff8c2301ec74ef881ca1c
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import _init_paths import os import json import cv2 import numpy as np import time from progress.bar import Bar import torch from lib.external.nms import soft_nms from lib.opts import opts from lib.logger imp...
32.722222
78
0.682998
377d10027837e4455f80976f9ee69979ec3b4d43
4,003
py
Python
rebound/setup.py
rodluger/ttv-devil
e534e4f3cd75db951cba54441f7a5458c87e0cf9
[ "MIT" ]
null
null
null
rebound/setup.py
rodluger/ttv-devil
e534e4f3cd75db951cba54441f7a5458c87e0cf9
[ "MIT" ]
null
null
null
rebound/setup.py
rodluger/ttv-devil
e534e4f3cd75db951cba54441f7a5458c87e0cf9
[ "MIT" ]
null
null
null
try: from setuptools import setup, Extension except ImportError: from distutils.core import setup, Extension from codecs import open import os import sys import sysconfig suffix = sysconfig.get_config_var('EXT_SUFFIX') if suffix is None: suffix = ".so" # Try to get git hash try: import subprocess ...
40.03
155
0.543093
57634127e27f674e855632588ac8b347c52b5b97
873
py
Python
setup.py
josepablocam/common-code-extraction
a6978fae73eee8ece6f1db09f2f38cf92f03b3ad
[ "MIT" ]
null
null
null
setup.py
josepablocam/common-code-extraction
a6978fae73eee8ece6f1db09f2f38cf92f03b3ad
[ "MIT" ]
null
null
null
setup.py
josepablocam/common-code-extraction
a6978fae73eee8ece6f1db09f2f38cf92f03b3ad
[ "MIT" ]
2
2021-07-12T00:48:08.000Z
2021-08-11T12:53:05.000Z
from setuptools import setup setup( name='wranglesearch', version='0.1', description='Mining wrangling functions from Python programs', url='https://github.com/josepablocam/wranglesearch', author='Jose Cambronero', author_email='jcamsan@mit.edu', license='MIT', packages=['wranglesearch'...
29.1
92
0.596793
0e3255b6059a7d3fecef81e8b0d2d847f015e519
1,842
py
Python
src/zope/formlib/tests/test_selectwidget.py
zopefoundation/zope.formlib
af2d587a6eb24e59e95a8b1feb7aafc5d3b87ba4
[ "ZPL-2.1" ]
4
2018-05-09T04:16:25.000Z
2021-03-05T17:27:21.000Z
src/zope/formlib/tests/test_selectwidget.py
zopefoundation/zope.formlib
af2d587a6eb24e59e95a8b1feb7aafc5d3b87ba4
[ "ZPL-2.1" ]
25
2016-03-24T15:23:08.000Z
2021-03-05T16:53:53.000Z
src/zope/formlib/tests/test_selectwidget.py
zopefoundation/zope.formlib
af2d587a6eb24e59e95a8b1feb7aafc5d3b87ba4
[ "ZPL-2.1" ]
5
2015-02-11T13:32:06.000Z
2018-05-09T04:16:26.000Z
############################################################################## # # Copyright (c) 2004 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
31.758621
78
0.61835
afed7005a094ce4ceda790f93de46e38c68d5f9c
5,728
py
Python
aircrack-ng-master/scripts/airdrop-ng/airdrop/libOuiParse.py
Ridge3d/The-Hiking-Swede
392e52e6be22599c0d9877403808d38ebf145ad7
[ "MIT" ]
null
null
null
aircrack-ng-master/scripts/airdrop-ng/airdrop/libOuiParse.py
Ridge3d/The-Hiking-Swede
392e52e6be22599c0d9877403808d38ebf145ad7
[ "MIT" ]
null
null
null
aircrack-ng-master/scripts/airdrop-ng/airdrop/libOuiParse.py
Ridge3d/The-Hiking-Swede
392e52e6be22599c0d9877403808d38ebf145ad7
[ "MIT" ]
null
null
null
#!/usr/bin/env python __author__ = 'Ben "TheX1le" Smith, Marfi' __email__ = 'thex1le@gmail.com' __website__= '' __date__ = '09/19/09' __version__ = '2009.11.23' __file__ = 'ouiParse.py' __data__ = 'a class for dealing with the oui txt file' """ ######################################## # # This program and its support ...
33.694118
104
0.557961
4d6251795459b099434f5f217079474a98df7f6e
1,758
py
Python
cpp/scons/scons-local-2.0.0.final.0/SCons/Platform/darwin.py
smartshowltd/zxing
5760e3f45a24f2b1f10d47079c44f53c804b8e9a
[ "Apache-2.0" ]
9
2015-02-01T12:45:53.000Z
2016-09-14T07:36:24.000Z
cpp/scons/scons-local-2.0.0.final.0/SCons/Platform/darwin.py
smartshowltd/zxing
5760e3f45a24f2b1f10d47079c44f53c804b8e9a
[ "Apache-2.0" ]
7
2015-11-19T01:58:56.000Z
2019-12-21T00:14:26.000Z
cpp/scons/scons-local-2.0.0.final.0/SCons/Platform/darwin.py
smartshowltd/zxing
5760e3f45a24f2b1f10d47079c44f53c804b8e9a
[ "Apache-2.0" ]
22
2015-07-15T21:57:37.000Z
2019-09-14T03:41:51.000Z
"""engine.SCons.Platform.darwin Platform-specific initialization for Mac OS X systems. There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Platform.Platform() selection method. """ # # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008...
37.404255
95
0.753129
f98491648669fbf34fab19bc7c492aefa0078f7c
4,420
py
Python
examples/cobalt-preproc/Arctic/remap_bio.py
bilgetutak/pyroms
3b0550f26f4ac181b7812e14a7167cd1ca0797f0
[ "BSD-3-Clause" ]
75
2016-04-05T07:15:57.000Z
2022-03-04T22:49:54.000Z
examples/cobalt-preproc/Arctic/remap_bio.py
bilgetutak/pyroms
3b0550f26f4ac181b7812e14a7167cd1ca0797f0
[ "BSD-3-Clause" ]
27
2017-02-26T04:27:49.000Z
2021-12-01T17:26:56.000Z
examples/cobalt-preproc/Arctic/remap_bio.py
bilgetutak/pyroms
3b0550f26f4ac181b7812e14a7167cd1ca0797f0
[ "BSD-3-Clause" ]
56
2016-05-11T06:19:14.000Z
2022-03-22T19:04:17.000Z
import numpy as np import os try: import netCDF4 as netCDF except: import netCDF3 as netCDF import matplotlib.pyplot as plt import time from datetime import datetime from matplotlib.dates import date2num, num2date import pyroms import pyroms_toolbox from pyroms import _remapping class nctime(object): pass de...
30.694444
94
0.647511
d7b0bdd2e6c3d2c8ef8afc9a2153f195cbe02400
2,780
py
Python
lapps-grid/lib/galaxy/datatypes/ngsindex.py
CDCgov/DCPC
c3fadef1bd6345e01a58afef051491d8ef6a7f93
[ "Apache-2.0" ]
6
2018-11-03T22:43:35.000Z
2022-02-15T17:51:33.000Z
lapps-grid/lib/galaxy/datatypes/ngsindex.py
CDCgov/DCPC
c3fadef1bd6345e01a58afef051491d8ef6a7f93
[ "Apache-2.0" ]
3
2015-06-06T22:16:03.000Z
2015-11-12T00:22:45.000Z
lapps-grid/lib/galaxy/datatypes/ngsindex.py
CDCgov/DCPC
c3fadef1bd6345e01a58afef051491d8ef6a7f93
[ "Apache-2.0" ]
10
2017-04-10T21:40:22.000Z
2022-02-21T16:50:10.000Z
""" NGS indexes """ import os import logging from metadata import MetadataElement from text import Html log = logging.getLogger(__name__) class BowtieIndex( Html ): """ base class for BowtieIndex is subclassed by BowtieColorIndex and BowtieBaseIndex """ MetadataElement( name="base_name", desc="b...
33.902439
152
0.648201
d167c5113d395945d45c9d0784a3e8985db2b0a1
10,576
py
Python
mmpose/datasets/datasets/top_down/topdown_h36m_dataset.py
yulong314/mmpose
cdfce789d0e48dd868c70a405a7d7f3da2b4ebe3
[ "Apache-2.0" ]
1
2021-06-01T08:21:32.000Z
2021-06-01T08:21:32.000Z
mmpose/datasets/datasets/top_down/topdown_h36m_dataset.py
yulong314/mmpose
cdfce789d0e48dd868c70a405a7d7f3da2b4ebe3
[ "Apache-2.0" ]
null
null
null
mmpose/datasets/datasets/top_down/topdown_h36m_dataset.py
yulong314/mmpose
cdfce789d0e48dd868c70a405a7d7f3da2b4ebe3
[ "Apache-2.0" ]
1
2021-06-22T06:41:45.000Z
2021-06-22T06:41:45.000Z
# Copyright (c) OpenMMLab. All rights reserved. import os from collections import OrderedDict import json_tricks as json import numpy as np from xtcocotools.coco import COCO from mmpose.core.evaluation.top_down_eval import (keypoint_epe, keypoint_pck_accuracy) from .....
34.789474
79
0.53177
65e0f3ab898d6932f456545798aa38c75fcc36c1
5,803
py
Python
airflow/contrib/auth/backends/google_auth.py
KarthikKothareddy/AirFlow
faaf0b8b4467bcf5bff4a5b49086a9e02cb9c112
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2021-04-28T21:40:27.000Z
2021-04-28T21:40:27.000Z
airflow/contrib/auth/backends/google_auth.py
KarthikKothareddy/AirFlow
faaf0b8b4467bcf5bff4a5b49086a9e02cb9c112
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
airflow/contrib/auth/backends/google_auth.py
KarthikKothareddy/AirFlow
faaf0b8b4467bcf5bff4a5b49086a9e02cb9c112
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
3
2020-11-25T15:01:28.000Z
2021-04-12T04:09:41.000Z
# Copyright 2016 Ananya Mishra (am747@cornell.edu) # # 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 ...
31.032086
85
0.62864
2247531e4035ec7f628c36dc3e6b1d70afff3ef6
1,398
py
Python
variants/migrations/0071_smallvariantflags_flag_molecular.py
brand-fabian/varfish-server
6a084d891d676ff29355e72a29d4f7b207220283
[ "MIT" ]
14
2019-09-30T12:44:17.000Z
2022-02-04T14:45:16.000Z
variants/migrations/0071_smallvariantflags_flag_molecular.py
brand-fabian/varfish-server
6a084d891d676ff29355e72a29d4f7b207220283
[ "MIT" ]
244
2021-03-26T15:13:15.000Z
2022-03-31T15:48:04.000Z
variants/migrations/0071_smallvariantflags_flag_molecular.py
brand-fabian/varfish-server
6a084d891d676ff29355e72a29d4f7b207220283
[ "MIT" ]
8
2020-05-19T21:55:13.000Z
2022-03-31T07:02:58.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.25 on 2020-02-13 17:09 from __future__ import unicode_literals from django.db import migrations, models from variants.models import SmallVariantComment, SmallVariantFlags # Was in migration 0062 before. Didn't work anymore, because of the new field in SmallVariantFl...
34.097561
106
0.627325
d385b6d5ede51536092052ae226959f858dad4d3
939
py
Python
Exercicios/Ex_084.py
jotmar/PythonEx
bf026518ae5479d5c99ff7a4e95fc383dec22d36
[ "MIT" ]
null
null
null
Exercicios/Ex_084.py
jotmar/PythonEx
bf026518ae5479d5c99ff7a4e95fc383dec22d36
[ "MIT" ]
null
null
null
Exercicios/Ex_084.py
jotmar/PythonEx
bf026518ae5479d5c99ff7a4e95fc383dec22d36
[ "MIT" ]
null
null
null
pessoas = [] dados = [] maior = menor = c = 0 while True: nome = str(input('Nome: ')) peso = float(input('Peso: ')) if c == 0: maior = peso menor = peso if peso > maior: maior = peso if peso < menor: menor = peso dados.append(nome) dados.append(peso) pesso...
25.378378
61
0.538871
2fefd22416aace25f95977e0f701aebbff9621f6
12,665
py
Python
cpyasm.py
abarnert/cpyasm
637359a4f38e988ab21b77e1239502a4b3b4a1c8
[ "MIT" ]
2
2019-03-18T22:46:41.000Z
2020-08-17T02:13:29.000Z
cpyasm.py
abarnert/cpyasm
637359a4f38e988ab21b77e1239502a4b3b4a1c8
[ "MIT" ]
1
2018-03-06T17:57:54.000Z
2018-03-07T12:48:12.000Z
cpyasm.py
abarnert/cpyasm
637359a4f38e988ab21b77e1239502a4b3b4a1c8
[ "MIT" ]
1
2018-03-06T15:34:01.000Z
2018-03-06T15:34:01.000Z
#!/usr/bin/env python3 """Assembles CPython bytecode out of source in the dis module's format.""" import ast import dis import re import struct import types class Assembler: _hasjrel = set(dis.hasjrel) _hasjabs = set(dis.hasjabs) _hasjump = _hasjrel | _hasjabs _hasconst = set(dis.hasconst) _...
38.730887
82
0.546625
c2433f57ec00899d09bd4651a88673be6f58ba1d
14,617
py
Python
scripts/test_splice_events.py
jeffhsu3/genda
5adbb5b5620c592849fa4a61126b934e1857cd77
[ "BSD-3-Clause" ]
5
2016-01-12T15:12:18.000Z
2022-02-10T21:57:39.000Z
scripts/test_splice_events.py
jeffhsu3/genda
5adbb5b5620c592849fa4a61126b934e1857cd77
[ "BSD-3-Clause" ]
5
2015-01-20T04:22:50.000Z
2018-10-02T19:39:12.000Z
scripts/test_splice_events.py
jeffhsu3/genda
5adbb5b5620c592849fa4a61126b934e1857cd77
[ "BSD-3-Clause" ]
1
2022-03-04T06:49:39.000Z
2022-03-04T06:49:39.000Z
import ConfigParser import sys from decimal import Decimal #from interval import Interval, IntervalSet from collections import defaultdict import Queue import multiprocessing import pandas as pd import matplotlib import statsmodels.api as sm import numpy as np matplotlib.use('Agg') from IPython import embed import m...
34.9689
88
0.575289
9fb306daf248eafe09b528a6e4f6a1fa39518a2f
13,310
py
Python
openstack_dashboard/dashboards/identity/xusers/views.py
sreenathmmenon/astttproject
464fe20c8acf14afdfe03d1e4758e3df2b06196e
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/identity/xusers/views.py
sreenathmmenon/astttproject
464fe20c8acf14afdfe03d1e4758e3df2b06196e
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/identity/xusers/views.py
sreenathmmenon/astttproject
464fe20c8acf14afdfe03d1e4758e3df2b06196e
[ "Apache-2.0" ]
1
2018-02-24T10:32:41.000Z
2018-02-24T10:32:41.000Z
# Copyright 2012 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2012 Nebula, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the...
39.96997
87
0.585349
6e655315202a34c68d642b9336babe4fdec1cc94
1,716
py
Python
aiohttp_03.py
penglee87/lpython
3a53322ccdebf83d6b358386518cf81712433c9e
[ "bzip2-1.0.6" ]
null
null
null
aiohttp_03.py
penglee87/lpython
3a53322ccdebf83d6b358386518cf81712433c9e
[ "bzip2-1.0.6" ]
null
null
null
aiohttp_03.py
penglee87/lpython
3a53322ccdebf83d6b358386518cf81712433c9e
[ "bzip2-1.0.6" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ 作者:柯豪 链接:https://www.zhihu.com/question/38202077/answer/75930426 来源:知乎 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。 """ import aiohttp import asyncio import requests import time def timing(f): """function timing wrapper""" def wrapper(*arg, **kw): t1 = time.t...
21.185185
89
0.653846
150dbe7cb43dcac4a698ab2f9f3a8bf6940f8835
558
py
Python
alembic/versions/40893c285ef5_add_stages_authors.py
scifanchain/api
eadb46625971bdc9ffe1893fa634907d54e9919f
[ "MIT" ]
2
2021-06-22T14:13:33.000Z
2021-07-04T18:18:37.000Z
alembic/versions/40893c285ef5_add_stages_authors.py
scifanchain/api
eadb46625971bdc9ffe1893fa634907d54e9919f
[ "MIT" ]
null
null
null
alembic/versions/40893c285ef5_add_stages_authors.py
scifanchain/api
eadb46625971bdc9ffe1893fa634907d54e9919f
[ "MIT" ]
null
null
null
"""add stages_authors Revision ID: 40893c285ef5 Revises: 6f1e7ecaa9fd Create Date: 2021-07-04 22:09:09.258191 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '40893c285ef5' down_revision = '6f1e7ecaa9fd' branch_labels = None depends_on = None def upgrade(): ...
19.241379
65
0.689964
fd2c12fa5c319ed884730d68337437f222020750
25
py
Python
scrapper/__init__.py
Faianca/Anime-Tv-shows-Scrapper
70512656a64c7371aaa49148fa5c89be57820378
[ "Apache-2.0" ]
null
null
null
scrapper/__init__.py
Faianca/Anime-Tv-shows-Scrapper
70512656a64c7371aaa49148fa5c89be57820378
[ "Apache-2.0" ]
9
2021-02-08T20:20:14.000Z
2022-03-02T14:54:40.000Z
scrapper/__init__.py
Faianca/Anime-Tv-shows-Scrapper
70512656a64c7371aaa49148fa5c89be57820378
[ "Apache-2.0" ]
null
null
null
__author__ = 'jmeireles'
12.5
24
0.76
c524dfafc1a0f03be0632d94f5d20e1dc3c99c36
1,963
py
Python
player.py
bkosciow/piader
81ca2c8a4bd4a834fb460b5306fca0c5ce0584c4
[ "MIT" ]
null
null
null
player.py
bkosciow/piader
81ca2c8a4bd4a834fb460b5306fca0c5ce0584c4
[ "MIT" ]
null
null
null
player.py
bkosciow/piader
81ca2c8a4bd4a834fb460b5306fca0c5ce0584c4
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- #pylint: disable=I0011,W0231 """Player class""" import item import missile import bomb class Player(item.Item): """Player class""" sprite = { 'left': "{#", 'right': "#}" } heading = 'left' missile = { "current": 0, "max": ...
23.939024
69
0.508915
5abd709efe8f59c94af57f8e499c20788c977a38
1,056
py
Python
tests/conftest.py
hankei6km/mirage_linemode
b394deef4cc1cf13fae5a9400ed84d18375e552f
[ "MIT" ]
4
2018-09-08T17:11:08.000Z
2021-09-14T15:42:12.000Z
tests/conftest.py
hankei6km/mirage_linemode
b394deef4cc1cf13fae5a9400ed84d18375e552f
[ "MIT" ]
1
2020-08-01T08:34:57.000Z
2020-08-01T08:34:57.000Z
tests/conftest.py
hankei6km/mirage_linemode
b394deef4cc1cf13fae5a9400ed84d18375e552f
[ "MIT" ]
1
2020-07-31T17:30:00.000Z
2020-07-31T17:30:00.000Z
# -*- coding: utf-8 -*- # # Copyright (c) 2018 hankei6km # Licensed under the MIT License. See LICENSE.txt in the project root. # from unittest import mock # Mock = mock.Mock import os import pytest config_filename_dummy = 'test_config.yml' config_filename_no_exist = 'test_config_no_exit.yml' theme_filename_dummy = '...
27.076923
70
0.773674
369cba89e736f4f1ca1765e2f9abaa5c8bf982ae
61,415
py
Python
openshift/installer/vendored/openshift-ansible-3.10.0-0.29.0/roles/lib_openshift/library/oc_label.py
fahlmant/openshift-tools
dbb4f16ccde3404c36c23108c45ca7b67138ee12
[ "Apache-2.0" ]
164
2015-07-29T17:35:04.000Z
2021-12-16T16:38:04.000Z
openshift/installer/vendored/openshift-ansible-3.10.0-0.29.0/roles/lib_openshift/library/oc_label.py
fahlmant/openshift-tools
dbb4f16ccde3404c36c23108c45ca7b67138ee12
[ "Apache-2.0" ]
3,634
2015-06-09T13:49:15.000Z
2022-03-23T20:55:44.000Z
openshift/installer/vendored/openshift-ansible-3.10.0-0.29.0/roles/lib_openshift/library/oc_label.py
fahlmant/openshift-tools
dbb4f16ccde3404c36c23108c45ca7b67138ee12
[ "Apache-2.0" ]
250
2015-06-08T19:53:11.000Z
2022-03-01T04:51:23.000Z
#!/usr/bin/env python # pylint: disable=missing-docstring # flake8: noqa: T001 # ___ ___ _ _ ___ ___ _ _____ ___ ___ # / __| __| \| | __| _ \ /_\_ _| __| \ # | (_ | _|| .` | _|| / / _ \| | | _|| |) | # \___|___|_|\_|___|_|_\/_/_\_\_|_|___|___/_ _____ # | \ / _ \ | \| |/ _ \_ _| | __| \_ ...
33.930939
118
0.544134
f986ee779387d2186cce1852bf9e11d234ace95e
10,047
py
Python
multi-pose/utils/sundermeyer/meshrenderer_phong.py
shbe-aau/multi-pose-estimation
0425ed9dcc7969f0281cb435615abc33c640e157
[ "MIT" ]
4
2021-12-28T09:25:06.000Z
2022-01-13T12:55:44.000Z
multi-pose/utils/sundermeyer/meshrenderer_phong.py
shbe-aau/multi-view-pose-estimation
22cea6cd09684fe655fb2214bc14856f589048e1
[ "MIT" ]
null
null
null
multi-pose/utils/sundermeyer/meshrenderer_phong.py
shbe-aau/multi-view-pose-estimation
22cea6cd09684fe655fb2214bc14856f589048e1
[ "MIT" ]
1
2022-01-13T13:00:15.000Z
2022-01-13T13:00:15.000Z
# -*- coding: utf-8 -*- import os import numpy as np from OpenGL.GL import * import utils.sundermeyer.gl_utils as gu from utils.sundermeyer.pysixd import misc class Renderer(object): MAX_FBO_WIDTH = 2000 MAX_FBO_HEIGHT = 2000 def __init__(self, models_cad_files, samples=1, vertex_tmp_store_folder='.',...
44.259912
151
0.62337
5edd4dd2e3d4e9e6ebccea0e3e6bc597aadb7197
1,127
py
Python
diffiehellman.py
neurorishika/babySSH
9239ce7243250bdd0f5f57e8919c0b15dca41c5a
[ "MIT" ]
null
null
null
diffiehellman.py
neurorishika/babySSH
9239ce7243250bdd0f5f57e8919c0b15dca41c5a
[ "MIT" ]
null
null
null
diffiehellman.py
neurorishika/babySSH
9239ce7243250bdd0f5f57e8919c0b15dca41c5a
[ "MIT" ]
1
2021-05-14T11:21:56.000Z
2021-05-14T11:21:56.000Z
from math import gcd import numpy as np from util import * def getSafePrime(digits): ''' To get the a random safe prime of the form p = 2q+1 where q is also a prime Implemented by Rishika Mohanta ''' while True: p = generate_prime(digits) if MillerRabin_test(int((p-1)/2)): ...
27.487805
79
0.628217
8c842d60f9e247a6153d4dd58eae5e3378bf9a77
444
py
Python
tests/__init__.py
btrspg/Animal-Courier
59be3b3cf53f42a1101635eec61904a0be20957f
[ "MIT" ]
null
null
null
tests/__init__.py
btrspg/Animal-Courier
59be3b3cf53f42a1101635eec61904a0be20957f
[ "MIT" ]
null
null
null
tests/__init__.py
btrspg/Animal-Courier
59be3b3cf53f42a1101635eec61904a0be20957f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @License : Copyright(c) 2018 MIT License # @Time : 2018-12-27 22:49 # @Author : YUELONG.CHEN # @Mail : yuelong_chen@yahoo.com # @File : __init__.py.py # @Software: PyCharm from __future__ import absolute_import, unicode_literals import os, sys sys.path.append...
21.142857
76
0.675676
a7d385c349a555d13fac672effad323892118a1f
821
py
Python
spark_auto_mapper_fhir/value_sets/v2_0201.py
imranq2/SparkAutoMapper.FHIR
dd23b218fb0097d1edc2f3e688e8d6d4d7278bd2
[ "Apache-2.0" ]
1
2020-10-31T23:25:07.000Z
2020-10-31T23:25:07.000Z
spark_auto_mapper_fhir/value_sets/v2_0201.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
null
null
null
spark_auto_mapper_fhir/value_sets/v2_0201.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations from spark_auto_mapper_fhir.fhir_types.uri import FhirUri from spark_auto_mapper_fhir.value_sets.generic_type import GenericTypeCode from spark_auto_mapper.type_definitions.defined_types import AutoMapperTextInputType # This file is auto-generated by generate_classes so do not edi...
31.576923
84
0.758831
d1f2f70d3ed4ee26b46125acaefa66c659af9016
2,498
py
Python
tests/test_paxton.py
futhewo/paxton
10bed0c0d94ca27e7b83fc5087b069a8e2e5d753
[ "Apache-2.0" ]
null
null
null
tests/test_paxton.py
futhewo/paxton
10bed0c0d94ca27e7b83fc5087b069a8e2e5d753
[ "Apache-2.0" ]
null
null
null
tests/test_paxton.py
futhewo/paxton
10bed0c0d94ca27e7b83fc5087b069a8e2e5d753
[ "Apache-2.0" ]
null
null
null
from paxton.paxton import * from nose.tools import * def test_parseCharacters(): data = "ABBCCCDDDDEEEEE" mem = Memory() mem.parseCharacters(data) assert_equals(mem.charactersTotal, 15) assert_equals(len(mem.characters.keys()), 5) assert_equals(mem.characters["A"], 1) assert_equals(mem.ch...
31.620253
56
0.651721
2353b642b2496a50c275a5d5e5b2f924eaa624a4
1,364
py
Python
imutils/video/webcamvideostream.py
WattahSG/imutils
81f0024297674382b1f737372358db70595f6e15
[ "MIT" ]
null
null
null
imutils/video/webcamvideostream.py
WattahSG/imutils
81f0024297674382b1f737372358db70595f6e15
[ "MIT" ]
null
null
null
imutils/video/webcamvideostream.py
WattahSG/imutils
81f0024297674382b1f737372358db70595f6e15
[ "MIT" ]
null
null
null
# import the necessary packages from threading import Thread import cv2 class WebcamVideoStream: def __init__(self, src=0, name="WebcamVideoStream", resolution=(320, 240), framerate=32): # initialize the video camera stream and read the first frame # from the stream self.stream = cv2.VideoCapture(src) # se...
27.28
75
0.728739
6e5568d5a3b5ae8a7a7f5ac6525fd73233217626
1,729
py
Python
IMLearn/desent_methods/learning_rate.py
noamkari/IML.HUJI
6708f8983dbbcddaba6caf7c759d6a24e0198e96
[ "MIT" ]
null
null
null
IMLearn/desent_methods/learning_rate.py
noamkari/IML.HUJI
6708f8983dbbcddaba6caf7c759d6a24e0198e96
[ "MIT" ]
null
null
null
IMLearn/desent_methods/learning_rate.py
noamkari/IML.HUJI
6708f8983dbbcddaba6caf7c759d6a24e0198e96
[ "MIT" ]
null
null
null
import numpy as np from IMLearn.base import BaseModule, BaseLR class FixedLR(BaseLR): """ Class representing a fixed learning rate """ def __init__(self, base_lr: float): """ Instantiate a fixed learning-rate object Parameters: ----------- base_lr: float ...
23.364865
92
0.548294
46d26e2a794e0d2eff0b6b812d812d63a24576a4
10,327
py
Python
conans/test/functional/remote/rest_api_test.py
xaqq/conan
ab0870336550b7521da71595c6babf42d5690f7b
[ "MIT" ]
null
null
null
conans/test/functional/remote/rest_api_test.py
xaqq/conan
ab0870336550b7521da71595c6babf42d5690f7b
[ "MIT" ]
null
null
null
conans/test/functional/remote/rest_api_test.py
xaqq/conan
ab0870336550b7521da71595c6babf42d5690f7b
[ "MIT" ]
null
null
null
import os import platform import unittest import requests from nose.plugins.attrib import attr from conans import DEFAULT_REVISION_V1 from conans.client.rest.rest_client import RestApiClient from conans.client.rest.rest_client_v1 import complete_url from conans.model.info import ConanInfo from conans.model.manifest i...
36.491166
97
0.644621
56efe9177ad69f52aecae4b9f02b30ede59c2205
52,102
py
Python
salt/loader.py
mmckinst/salt
4dd606a0e37cf319a080d712f668ab9a1833b502
[ "Apache-2.0" ]
null
null
null
salt/loader.py
mmckinst/salt
4dd606a0e37cf319a080d712f668ab9a1833b502
[ "Apache-2.0" ]
1
2018-08-23T18:25:42.000Z
2018-08-23T18:25:42.000Z
salt/loader.py
mmckinst/salt
4dd606a0e37cf319a080d712f668ab9a1833b502
[ "Apache-2.0" ]
1
2018-04-19T16:57:27.000Z
2018-04-19T16:57:27.000Z
# -*- coding: utf-8 -*- ''' We wanna be free to ride our machines without being hassled by The Man! And we wanna get loaded! And we wanna have a good time! And that's what we are gonna do. We are gonna have a good time... ''' # Import python libs from __future__ import absolute_import import os import imp import sys i...
33.101652
118
0.547426
f269624f106861e1c2882de99d9e20728992a1f0
809
py
Python
apps/core/account/migrations/0005_auto_20210122_0916.py
GMNaim/Online-Exam-System
ed1e18cf0c0fa7f896bde261988982b49825e61f
[ "MIT" ]
null
null
null
apps/core/account/migrations/0005_auto_20210122_0916.py
GMNaim/Online-Exam-System
ed1e18cf0c0fa7f896bde261988982b49825e61f
[ "MIT" ]
null
null
null
apps/core/account/migrations/0005_auto_20210122_0916.py
GMNaim/Online-Exam-System
ed1e18cf0c0fa7f896bde261988982b49825e61f
[ "MIT" ]
null
null
null
# Generated by Django 3.1.5 on 2021-01-22 03:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('account', '0004_auto_20210122_0857'), ] operations = [ migrations.AlterField( model_name='permission', name='hashed_...
27.896552
86
0.589617
f3306d4338289f76155a62eb7270d2d6fad5afce
1,252
py
Python
qc_rnu/playground.py
pdf-analytics/confluence-tools
8e09a4e83a5c9c099a17483669b5ed4e00a56076
[ "MIT" ]
1
2020-05-31T16:50:37.000Z
2020-05-31T16:50:37.000Z
qc_rnu/playground.py
pdf-analytics/confluence-tools
8e09a4e83a5c9c099a17483669b5ed4e00a56076
[ "MIT" ]
2
2021-03-31T19:19:42.000Z
2021-12-13T20:24:33.000Z
qc_rnu/playground.py
pdf-analytics/confluence-tools
8e09a4e83a5c9c099a17483669b5ed4e00a56076
[ "MIT" ]
null
null
null
import configparser import json from bs4 import BeautifulSoup from atlassian import Confluence class ConfluencePlayground(): def __init__(self): conf = configparser.ConfigParser() conf.read('credentials.ini') self.site = Confluence(url=conf.get('CONFLUENCE', 'url'), ...
32.947368
90
0.623003
207ad9e2e542ac8b3a2943512de4e9e78fd7fbda
503
py
Python
task4/ex3-reverse_word.py
zhangkai803/data_structure_python
d57e686eca3d500c4a9893172cab1213192414b5
[ "Apache-2.0" ]
null
null
null
task4/ex3-reverse_word.py
zhangkai803/data_structure_python
d57e686eca3d500c4a9893172cab1213192414b5
[ "Apache-2.0" ]
null
null
null
task4/ex3-reverse_word.py
zhangkai803/data_structure_python
d57e686eca3d500c4a9893172cab1213192414b5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2019-08-14 12:04 # @Author : Kai Zhang # @Email : kai.zhang@lizhiweike.com # @File : ex3-reverse_word.py # @Software: PyCharm class Solution: def reverseWords(self, s: str) -> str: import re partten = re.compile(' {2,}') s = partten.sub(' ', s) ...
22.863636
42
0.576541
10487f798851d2a674f4b7e7bc7715252f457109
673
py
Python
online_judges/mult_other_numbers/test_mult_other_numbers.py
rubenparedes0796/interactive-coding-challenges
4a942ff7a8b4a78052eae7e2b33d129683796570
[ "Apache-2.0" ]
27,173
2015-07-06T12:36:05.000Z
2022-03-31T23:56:41.000Z
online_judges/mult_other_numbers/test_mult_other_numbers.py
govind527/interactive-coding-challenges
358f2cc60426d5c4c3d7d580910eec9a7b393fa9
[ "Apache-2.0" ]
143
2015-07-07T05:13:11.000Z
2021-12-07T17:05:54.000Z
online_judges/mult_other_numbers/test_mult_other_numbers.py
govind527/interactive-coding-challenges
358f2cc60426d5c4c3d7d580910eec9a7b393fa9
[ "Apache-2.0" ]
4,657
2015-07-06T13:28:02.000Z
2022-03-31T10:11:28.000Z
import unittest class TestMultOtherNumbers(unittest.TestCase): def test_mult_other_numbers(self): solution = Solution() self.assertRaises(TypeError, solution.mult_other_numbers, None) self.assertEqual(solution.mult_other_numbers([0]), []) self.assertEqual(solution.mult_other_numbe...
29.26087
83
0.677563
037a6f6c2b463bb9f977ddfb23f43f464dfe294e
5,579
py
Python
opensilexClientToolsPython/models/theme_config_dto.py
OpenSILEX/opensilexClientToolsPython
41b1e7e707670ecf1b2c06d79bdd9749945788cb
[ "RSA-MD" ]
null
null
null
opensilexClientToolsPython/models/theme_config_dto.py
OpenSILEX/opensilexClientToolsPython
41b1e7e707670ecf1b2c06d79bdd9749945788cb
[ "RSA-MD" ]
7
2021-05-25T14:06:04.000Z
2021-11-05T15:42:14.000Z
opensilexClientToolsPython/models/theme_config_dto.py
OpenSILEX/opensilexClientToolsPython
41b1e7e707670ecf1b2c06d79bdd9749945788cb
[ "RSA-MD" ]
null
null
null
# coding: utf-8 """ OpenSilex API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: INSTANCE-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F4...
28.757732
119
0.597777
97f20877b4351e6504545d0e5ba3957c0fac107b
5,030
py
Python
CS/Machine-Learning/lab/lab4/src/kmeans.py
pingzhiLi/USTC-CS-Resources
0f2f2d7f3adb2746557d6fde2fdb4bbd18d0325f
[ "MIT" ]
7
2020-09-10T05:18:26.000Z
2021-01-03T02:07:40.000Z
CS/Machine-Learning/lab/lab4/src/kmeans.py
wkzcml/USTC-CS-Resources
0f2f2d7f3adb2746557d6fde2fdb4bbd18d0325f
[ "MIT" ]
null
null
null
CS/Machine-Learning/lab/lab4/src/kmeans.py
wkzcml/USTC-CS-Resources
0f2f2d7f3adb2746557d6fde2fdb4bbd18d0325f
[ "MIT" ]
2
2021-01-03T07:10:37.000Z
2021-01-06T11:20:56.000Z
import numpy as np import random import matplotlib.pyplot as plt class KMeans: def __init__(self, n_clusters=3, tol=0.0001, init='random', stopby='class'): assert init == 'random' or init == 'sample' assert stopby == 'class' or stopby == 'tol' self.data = None self.n_clusters = n_c...
39.920635
117
0.509344
208b99c1bea5cdd74693dfe98619b49cce9b9c98
390
py
Python
docs/shell/printshell.py
gmijenes/autogoal
916b0eb4d1aa1a222d0ff1b0f6f202bf56458ef5
[ "MIT" ]
null
null
null
docs/shell/printshell.py
gmijenes/autogoal
916b0eb4d1aa1a222d0ff1b0f6f202bf56458ef5
[ "MIT" ]
null
null
null
docs/shell/printshell.py
gmijenes/autogoal
916b0eb4d1aa1a222d0ff1b0f6f202bf56458ef5
[ "MIT" ]
null
null
null
import sys from sys import argv from rich.console import Console import time console = Console() console.print("") command = " ".join(sys.argv[1:]) console.print("[bold blue]$[/] ", end="") time.sleep(0.5) for c in command: console.print(c, end="", style="bold") if c == " ": time.s...
16.956522
43
0.571795
7632963a09ed8704bcf4848105034a1850ddbd3f
698
py
Python
huazhuang/utils/download_electra.py
johnson7788/TextBrewer
fa7fa4d4a2a8debde5b148d448238f3b4fa1aa9a
[ "Apache-2.0" ]
1
2021-02-08T08:44:13.000Z
2021-02-08T08:44:13.000Z
huazhuang/utils/download_electra.py
johnson7788/TextBrewer
fa7fa4d4a2a8debde5b148d448238f3b4fa1aa9a
[ "Apache-2.0" ]
null
null
null
huazhuang/utils/download_electra.py
johnson7788/TextBrewer
fa7fa4d4a2a8debde5b148d448238f3b4fa1aa9a
[ "Apache-2.0" ]
2
2021-09-06T06:17:27.000Z
2022-03-20T09:10:05.000Z
from transformers import AutoTokenizer, AutoModelForMaskedLM import os tokenizer = AutoTokenizer.from_pretrained("hfl/chinese-electra-180g-base-discriminator") model = AutoModelForMaskedLM.from_pretrained("hfl/chinese-electra-180g-base-discriminator") model.save_pretrained('electra_model') tokenizer.save_pretrained('el...
46.533333
91
0.830946
01bac1cffb6d0873af17b1129a89626bfcdcaadc
48,070
py
Python
submarine-sdk/pysubmarine/submarine/client/api/experiment_api.py
wsk1314zwr/submarine
673c6b71012c25f80e4826aba40443cc72198e92
[ "Apache-2.0" ]
40
2019-09-19T07:00:44.000Z
2019-10-28T16:39:20.000Z
submarine-sdk/pysubmarine/submarine/client/api/experiment_api.py
wsk1314zwr/submarine
673c6b71012c25f80e4826aba40443cc72198e92
[ "Apache-2.0" ]
51
2019-09-20T16:09:54.000Z
2019-10-25T15:28:08.000Z
submarine-sdk/pysubmarine/submarine/client/api/experiment_api.py
wsk1314zwr/submarine
673c6b71012c25f80e4826aba40443cc72198e92
[ "Apache-2.0" ]
25
2019-09-19T11:02:54.000Z
2019-10-26T04:13:58.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 use ...
42.464664
322
0.592823
182a4c9a013d771f356a8e8788631608cbfba929
5,993
py
Python
profiler/profiler.py
csmith608/ScientificShark
b9dda5989fce1b8a694f2853599b0b3cc1bbdf96
[ "MIT" ]
null
null
null
profiler/profiler.py
csmith608/ScientificShark
b9dda5989fce1b8a694f2853599b0b3cc1bbdf96
[ "MIT" ]
null
null
null
profiler/profiler.py
csmith608/ScientificShark
b9dda5989fce1b8a694f2853599b0b3cc1bbdf96
[ "MIT" ]
null
null
null
""" Main program for profiler processor, gathers data, goes to surface, relays data, returns under ocean, loops Radio code from: https://learn.adafruit.com/lora-and-lorawan-for-raspberry-pi Author: Nicholas Nguyen, Srushty Changela, Celeste Smith """ #!/usr/bin/env python3 # Import Python System Libraries import time...
29.668317
107
0.658268