hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
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
245
max_issues_repo_name
stringlengths
6
130
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
245
max_forks_repo_name
stringlengths
6
130
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
2
1.02M
avg_line_length
float64
1
958k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
2 classes
is_sharp_comment_removed
bool
1 class
f70db2de5a31ed9916519b20186561a12fdb235e
1,902
py
Python
test2.py
sleung852/mahjong
6af93a452c68a9bd5c233b6abcf07a53aca8a2fa
[ "MIT" ]
null
null
null
test2.py
sleung852/mahjong
6af93a452c68a9bd5c233b6abcf07a53aca8a2fa
[ "MIT" ]
1
2020-10-08T11:37:53.000Z
2020-10-08T11:37:53.000Z
testfancalculator.py
sleung852/mahjong
6af93a452c68a9bd5c233b6abcf07a53aca8a2fa
[ "MIT" ]
null
null
null
from engine import * chingyatsikpingwu = [] chingyatsikpingwu.append(SimpleTile(2, 'Man')) chingyatsikpingwu.append(SimpleTile(3, 'Man')) chingyatsikpingwu.append(SimpleTile(4, 'Man')) chingyatsikpingwu.append(SimpleTile(1, 'Man')) chingyatsikpingwu.append(SimpleTile(2, 'Man')) chingyatsikpingwu.append(SimpleTile(3, ...
32.793103
99
0.773396
from engine import * chingyatsikpingwu = [] chingyatsikpingwu.append(SimpleTile(2, 'Man')) chingyatsikpingwu.append(SimpleTile(3, 'Man')) chingyatsikpingwu.append(SimpleTile(4, 'Man')) chingyatsikpingwu.append(SimpleTile(1, 'Man')) chingyatsikpingwu.append(SimpleTile(2, 'Man')) chingyatsikpingwu.append(SimpleTile(3, ...
true
true
f70db34607ec02cb27fca267843c35a0086a13b0
573
py
Python
soulcalibur_vi/migrations/0020_auto_20201209_0127.py
RayGar7/SaltyFramesAPI
af831c1583a613193f059f45480147caf8d1d72d
[ "PostgreSQL" ]
null
null
null
soulcalibur_vi/migrations/0020_auto_20201209_0127.py
RayGar7/SaltyFramesAPI
af831c1583a613193f059f45480147caf8d1d72d
[ "PostgreSQL" ]
null
null
null
soulcalibur_vi/migrations/0020_auto_20201209_0127.py
RayGar7/SaltyFramesAPI
af831c1583a613193f059f45480147caf8d1d72d
[ "PostgreSQL" ]
null
null
null
# Generated by Django 3.1.3 on 2020-12-09 01:27 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('soulcalibur_vi', '0019_auto_20201205_0415'), ] operations = [ migrations.AlterField( model_name='move', name='attack...
23.875
74
0.588133
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('soulcalibur_vi', '0019_auto_20201205_0415'), ] operations = [ migrations.AlterField( model_name='move', name='attack_name', field=models.CharField(blank...
true
true
f70db3e30f6c417576f165fd15b7507499961320
4,098
py
Python
beekeeper/settings.py
evan10s/beekeeper
13fd3bf812e3c78988429a165e149bfbaffb5b17
[ "MIT" ]
null
null
null
beekeeper/settings.py
evan10s/beekeeper
13fd3bf812e3c78988429a165e149bfbaffb5b17
[ "MIT" ]
null
null
null
beekeeper/settings.py
evan10s/beekeeper
13fd3bf812e3c78988429a165e149bfbaffb5b17
[ "MIT" ]
null
null
null
""" Django settings for beekeeper project on Heroku. For more info, see: https://github.com/heroku/heroku-django-template For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settin...
30.355556
91
0.716691
import os import dj_database_url BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__)) SECRET_KEY = os.environ['DJ_SECRET_KEY'] DEBUG = os.getenv('DJ_DEBUG',False) # Application definition INSTALLED_APPS = [ 'django.contrib.admin', ...
true
true
f70db42fafeab99811b4a56e0139d204e50eaa81
2,852
py
Python
maza/modules/creds/generic/telnet_default.py
ArturSpirin/maza
56ae6325c08bcedd22c57b9fe11b58f1b38314ca
[ "MIT" ]
2
2020-02-06T20:24:31.000Z
2022-03-08T19:07:16.000Z
maza/modules/creds/generic/telnet_default.py
ArturSpirin/maza
56ae6325c08bcedd22c57b9fe11b58f1b38314ca
[ "MIT" ]
null
null
null
maza/modules/creds/generic/telnet_default.py
ArturSpirin/maza
56ae6325c08bcedd22c57b9fe11b58f1b38314ca
[ "MIT" ]
null
null
null
from maza.core.exploit import * from maza.core.telnet.telnet_client import TelnetClient from maza.resources import wordlists class Exploit(TelnetClient): __info__ = { "name": "Telnet Default Creds", "description": "Module performs dictionary attack with default credentials against Telnet service. ...
33.162791
111
0.608345
from maza.core.exploit import * from maza.core.telnet.telnet_client import TelnetClient from maza.resources import wordlists class Exploit(TelnetClient): __info__ = { "name": "Telnet Default Creds", "description": "Module performs dictionary attack with default credentials against Telnet service. ...
true
true
f70db552291bdd651d9cd3db3990a9f662669345
2,788
py
Python
capture/noworkflow/now/persistence/models/trial_dot.py
raffaelfoidl/noworkflow
aa4ca189df24fec6c7abd32bcca6a097b21fdf31
[ "MIT" ]
108
2015-02-04T14:16:51.000Z
2022-03-06T13:52:45.000Z
capture/noworkflow/now/persistence/models/trial_dot.py
raffaelfoidl/noworkflow
aa4ca189df24fec6c7abd32bcca6a097b21fdf31
[ "MIT" ]
92
2015-01-19T14:58:06.000Z
2021-04-19T17:28:50.000Z
capture/noworkflow/now/persistence/models/trial_dot.py
raffaelfoidl/noworkflow
aa4ca189df24fec6c7abd32bcca6a097b21fdf31
[ "MIT" ]
31
2015-03-03T23:53:59.000Z
2021-11-11T04:23:44.000Z
# Copyright (c) 2016 Universidade Federal Fluminense (UFF) # Copyright (c) 2016 Polytechnic Institute of New York University. # This file is part of noWorkflow. # Please, consult the license terms in the LICENSE file. """Trial Dot Object""" from __future__ import (absolute_import, print_function, ...
30.977778
127
0.615854
from __future__ import (absolute_import, print_function, division, unicode_literals) import weakref from future.utils import viewitems from .base import Model from . import FileAccess from .graphs.dependency_graph import DependencyFilter, variable_id from .graphs.dependency_graph import DotVi...
true
true
f70db553b343e43a65e07f970865b491dafc586f
866
py
Python
tests/statusupdate_test.py
jgkelly/FreezerState
788733c9d75fa7db99ab787e1b0b6d873c3f0eb2
[ "MIT" ]
null
null
null
tests/statusupdate_test.py
jgkelly/FreezerState
788733c9d75fa7db99ab787e1b0b6d873c3f0eb2
[ "MIT" ]
null
null
null
tests/statusupdate_test.py
jgkelly/FreezerState
788733c9d75fa7db99ab787e1b0b6d873c3f0eb2
[ "MIT" ]
null
null
null
import pytest import datetime #from datetime import datetime from freezerstate.statusupdate import StatusUpdate @pytest.fixture def statusobj(): obj = StatusUpdate(True, '8:00,9:30,21:00,26:99') return obj def test_update_initialization(statusobj): assert len(statusobj.notification_times) == 3 def test_...
26.242424
70
0.78291
import pytest import datetime from freezerstate.statusupdate import StatusUpdate @pytest.fixture def statusobj(): obj = StatusUpdate(True, '8:00,9:30,21:00,26:99') return obj def test_update_initialization(statusobj): assert len(statusobj.notification_times) == 3 def test_should_notify_should_be_false_i...
true
true
f70db616322dfb3e72041d64e42fd190201c6e36
13,707
py
Python
proc/crossref.py
scieloorg/cited-references-norm
e5e568fc6acc7963a2bd0905586f1d1aed181bf0
[ "BSD-2-Clause" ]
null
null
null
proc/crossref.py
scieloorg/cited-references-norm
e5e568fc6acc7963a2bd0905586f1d1aed181bf0
[ "BSD-2-Clause" ]
2
2020-05-29T01:53:35.000Z
2021-12-13T20:51:07.000Z
proc/crossref.py
scieloorg/cited-references-norm
e5e568fc6acc7963a2bd0905586f1d1aed181bf0
[ "BSD-2-Clause" ]
2
2020-05-15T21:24:04.000Z
2020-05-15T21:32:46.000Z
import argparse import asyncio import html import json import logging import os import textwrap import time import xmltodict from aiohttp import ClientSession, ClientConnectorError, ServerDisconnectedError, ContentTypeError from articlemeta.client import RestfulClient from datetime import datetime from json import JSO...
37.348774
136
0.584738
import argparse import asyncio import html import json import logging import os import textwrap import time import xmltodict from aiohttp import ClientSession, ClientConnectorError, ServerDisconnectedError, ContentTypeError from articlemeta.client import RestfulClient from datetime import datetime from json import JSO...
true
true
f70db867f62fffa6d6348dde3c8aeac9d337b99d
2,242
py
Python
Boston-Housing/boston_coreml.py
nikhiljay/ml
b99f2727bcffce6dc8c5313dfac3b7b8387c46f8
[ "MIT" ]
null
null
null
Boston-Housing/boston_coreml.py
nikhiljay/ml
b99f2727bcffce6dc8c5313dfac3b7b8387c46f8
[ "MIT" ]
null
null
null
Boston-Housing/boston_coreml.py
nikhiljay/ml
b99f2727bcffce6dc8c5313dfac3b7b8387c46f8
[ "MIT" ]
1
2019-02-27T18:56:09.000Z
2019-02-27T18:56:09.000Z
# Written by Nikhil D'Souza # Data from http://lib.stat.cmu.edu/datasets/boston # This neural network predicts the values of houses in Boston based on: # 1. per capita crime rate by town # 2. proportion of residential land zoned for lots over 25,000 sq.ft. # 3. proportion of non-retail business acres per town # 4. Cha...
33.462687
134
0.768064
# Data from http://lib.stat.cmu.edu/datasets/boston # This neural network predicts the values of houses in Boston based on: # 1. per capita crime rate by town # 2. proportion of residential land zoned for lots over 25,000 sq.ft. # 3. proportion of non-retail business acres per town # 4. Charles River dummy variable (=...
true
true
f70db896c615082ba7e5afd5363c7bcd246f4e23
426
py
Python
sdk/eventhub/azure-eventhub/azure/eventhub/extensions/__init__.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/eventhub/azure-eventhub/azure/eventhub/extensions/__init__.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/eventhub/azure-eventhub/azure/eventhub/extensions/__init__.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
71
94
0.434272
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
true
true
f70db8ab5e82377aee51f9454306a942435c95aa
29,595
py
Python
hparams.py
d3ft0uch/Tacotron-2
a508bb842053599697a7c0a20d2b8cbb32e28632
[ "MIT" ]
null
null
null
hparams.py
d3ft0uch/Tacotron-2
a508bb842053599697a7c0a20d2b8cbb32e28632
[ "MIT" ]
null
null
null
hparams.py
d3ft0uch/Tacotron-2
a508bb842053599697a7c0a20d2b8cbb32e28632
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np import tensorflow as tf # Default hyperparameters hparams = tf.contrib.training.HParams( # Comma-separated list of cleaners to run on text prior to training and eval. For non-English # text, you may want to use "basic_cleaners" or "transliteration_cleaners". clean...
69.964539
189
0.722859
import numpy as np import tensorflow as tf hparams = tf.contrib.training.HParams( cleaners='transliteration_cleaners', # resources related decisions. # Acknowledgement: # Many thanks to @MlWoo for his awesome work on multi-GPU Taco...
true
true
f70db8c8f8be1dcf1d4fbc35a03c790efce94b44
676
py
Python
settings.py
awesome-archive/DouYinAPI
dec22da42fa9fce3a3731775398e207934c3c354
[ "BSD-3-Clause" ]
12
2019-04-09T09:04:58.000Z
2021-03-05T14:29:56.000Z
settings.py
awesome-archive/DouYinAPI
dec22da42fa9fce3a3731775398e207934c3c354
[ "BSD-3-Clause" ]
1
2020-02-23T15:31:13.000Z
2020-02-23T15:31:13.000Z
settings.py
awesome-archive/DouYinAPI
dec22da42fa9fce3a3731775398e207934c3c354
[ "BSD-3-Clause" ]
7
2019-04-04T09:05:16.000Z
2020-05-02T20:02:20.000Z
API_GET_TOKEN = 'http://sign.vsdouyin.com/api/token/gen/' API_EP_DOUYIN = "https://sign.vsdouyin.com/api" API_DEVICE_REGISTER = "https://log.snssdk.com/service/2/device_register/" #生成签名服务器专用token ROUTE_GEN_TOKEN = "token/gen" ROUTE_INFO_TOKEN = "token/info" # 抖音相关入口 ROUTE_SIGN_DOUYIN = "653d33c/sign" ROUTE_CRYPT_DOUY...
27.04
73
0.730769
API_GET_TOKEN = 'http://sign.vsdouyin.com/api/token/gen/' API_EP_DOUYIN = "https://sign.vsdouyin.com/api" API_DEVICE_REGISTER = "https://log.snssdk.com/service/2/device_register/" ROUTE_GEN_TOKEN = "token/gen" ROUTE_INFO_TOKEN = "token/info" ROUTE_SIGN_DOUYIN = "653d33c/sign" ROUTE_CRYPT_DOUYIN = "653d33c/crypt" FEE...
true
true
f70dba349bb470797300f3ecddd576d0367a3975
2,016
py
Python
data_managers/data_manager_vep_cache_downloader/data_manager/data_manager_vep_cache_download.py
brsynth/tools-iuc
26909099e5c61564bd72f67974e30e75f3fad22c
[ "MIT" ]
1
2022-01-25T21:25:21.000Z
2022-01-25T21:25:21.000Z
data_managers/data_manager_vep_cache_downloader/data_manager/data_manager_vep_cache_download.py
Delphine-L/tools-iuc
26909099e5c61564bd72f67974e30e75f3fad22c
[ "MIT" ]
40
2018-01-29T19:18:43.000Z
2019-03-22T20:33:41.000Z
data_managers/data_manager_vep_cache_downloader/data_manager/data_manager_vep_cache_download.py
Delphine-L/tools-iuc
26909099e5c61564bd72f67974e30e75f3fad22c
[ "MIT" ]
3
2018-02-22T15:30:51.000Z
2019-01-29T18:00:08.000Z
#!/usr/bin/env python import json import os import re import sys import tarfile from urllib.request import urlretrieve def main(): # Read in given out_file and create target directory for file download with open(sys.argv[1]) as fh: params = json.load(fh) target_directory = params['output_data'][0...
35.368421
174
0.598214
import json import os import re import sys import tarfile from urllib.request import urlretrieve def main(): with open(sys.argv[1]) as fh: params = json.load(fh) target_directory = params['output_data'][0]['extra_files_path'] os.mkdir(target_directory) url = params['param_dict']['url...
true
true
f70dbab8eefb6b547f63f4c9cc5f87b20b782acc
4,879
py
Python
litex_boards/platforms/aller.py
mhrtmnn/litex-boards
e950a4a588515c69c0eb559f432fa41d35f5eb0c
[ "BSD-2-Clause" ]
null
null
null
litex_boards/platforms/aller.py
mhrtmnn/litex-boards
e950a4a588515c69c0eb559f432fa41d35f5eb0c
[ "BSD-2-Clause" ]
null
null
null
litex_boards/platforms/aller.py
mhrtmnn/litex-boards
e950a4a588515c69c0eb559f432fa41d35f5eb0c
[ "BSD-2-Clause" ]
null
null
null
# # This file is part of LiteX-Boards. # # Copyright (c) 2018-2019 Rohit Singh <rohit@rohitksingh.in> # Copyright (c) 2019 Florent Kermarrec <florent@enjoy-digital.fr> # SPDX-License-Identifier: BSD-2-Clause from litex.build.generic_platform import * from litex.build.xilinx import XilinxPlatform from litex.build.openo...
37.530769
100
0.555852
from litex.build.generic_platform import * from litex.build.xilinx import XilinxPlatform from litex.build.openocd import OpenOCD _io = [ ("clk100", 0, Pins("W19"), IOStandard("LVCMOS33")), ("user_led", 0, Pins("AB21"), IOStandard("LVCMOS33")), ("user_led", 1, Pins("AB22"), IOStandard("LVCMOS33")...
true
true
f70dbbb741de6aa18a06232d6c29cdf228655fed
597
py
Python
examples/example_are_zones_ipv6_simple.py
dargor/python-cloudflare
fd6464e15b91263f1ce395e4336b1c1fac542880
[ "MIT" ]
2
2020-03-04T17:29:05.000Z
2020-08-13T12:22:06.000Z
examples/example_are_zones_ipv6_simple.py
dargor/python-cloudflare
fd6464e15b91263f1ce395e4336b1c1fac542880
[ "MIT" ]
1
2019-12-31T10:04:40.000Z
2019-12-31T10:04:40.000Z
examples/example_are_zones_ipv6_simple.py
dargor/python-cloudflare
fd6464e15b91263f1ce395e4336b1c1fac542880
[ "MIT" ]
1
2021-05-12T05:37:53.000Z
2021-05-12T05:37:53.000Z
#!/usr/bin/env python """Cloudflare API code - example""" from __future__ import print_function import os import sys sys.path.insert(0, os.path.abspath('..')) import CloudFlare def main(): """Cloudflare API code - example""" cf = CloudFlare.CloudFlare() zones = cf.zones.get(params={'per_page':50}) ...
21.321429
59
0.641541
from __future__ import print_function import os import sys sys.path.insert(0, os.path.abspath('..')) import CloudFlare def main(): cf = CloudFlare.CloudFlare() zones = cf.zones.get(params={'per_page':50}) for zone in zones: zone_name = zone['name'] zone_id = zone['id'] settings_...
true
true
f70dbd3cd08351c60f8c869a40e796334f83d0bc
1,056
py
Python
blog/views/post_cls.py
junaidiiith/Disaster-Help-Predictor
79938619752861e5141207cca920900cea229a62
[ "Apache-2.0" ]
null
null
null
blog/views/post_cls.py
junaidiiith/Disaster-Help-Predictor
79938619752861e5141207cca920900cea229a62
[ "Apache-2.0" ]
null
null
null
blog/views/post_cls.py
junaidiiith/Disaster-Help-Predictor
79938619752861e5141207cca920900cea229a62
[ "Apache-2.0" ]
null
null
null
from django.contrib.auth.models import User from django.core.paginator import Paginator from django.shortcuts import render from blog.models.clasDict import classes from blog.models.post import Post from django.template.defaulttags import register from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTes...
35.2
78
0.773674
from django.contrib.auth.models import User from django.core.paginator import Paginator from django.shortcuts import render from blog.models.clasDict import classes from blog.models.post import Post from django.template.defaulttags import register from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTes...
true
true
f70dbd7d0d336c81ab3e8f1b8917300c587fbab8
16,704
py
Python
archytas.py
javgat/archytas
17bb204d7a605ef802bcd4dab37952a692a8cd8e
[ "Unlicense" ]
1
2021-12-31T20:06:35.000Z
2021-12-31T20:06:35.000Z
archytas.py
javgat/archytas
17bb204d7a605ef802bcd4dab37952a692a8cd8e
[ "Unlicense" ]
null
null
null
archytas.py
javgat/archytas
17bb204d7a605ef802bcd4dab37952a692a8cd8e
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 import sys from PySide2 import QtCore, QtWidgets, QtGui from os.path import exists, join, abspath from os import remove import tweepy from auth.auth import AuthData from tweet.tweet import getTweetsKeyword, tweetRandom, OutputerInterface import types class AuthDataInput(QtWidgets.QWidget): d...
42.503817
126
0.699653
import sys from PySide2 import QtCore, QtWidgets, QtGui from os.path import exists, join, abspath from os import remove import tweepy from auth.auth import AuthData from tweet.tweet import getTweetsKeyword, tweetRandom, OutputerInterface import types class AuthDataInput(QtWidgets.QWidget): def __init__(self, wrapp...
true
true
f70dbdc8b99f161809f8e3871477a8986cf70fdd
958
py
Python
PastYearFeatures/setup.py
Slavkata/Forecast-Report
3cfeac5ab6b60ad32e1b9433b3281b5336373c30
[ "MIT" ]
1
2019-04-11T12:48:44.000Z
2019-04-11T12:48:44.000Z
PastYearFeatures/setup.py
Slavkata/Forecast-Report
3cfeac5ab6b60ad32e1b9433b3281b5336373c30
[ "MIT" ]
null
null
null
PastYearFeatures/setup.py
Slavkata/Forecast-Report
3cfeac5ab6b60ad32e1b9433b3281b5336373c30
[ "MIT" ]
null
null
null
import pandas as p import numpy as np from file_setup_helper import FileSetupHelper as fsh from preprocess_data import PreprocessData as pd from model_export import ModelExport as me import sys from sklearn.linear_model import Ridge def main(): #call for file download with given date file_name = fsh(sys.argv[1...
35.481481
87
0.742171
import pandas as p import numpy as np from file_setup_helper import FileSetupHelper as fsh from preprocess_data import PreprocessData as pd from model_export import ModelExport as me import sys from sklearn.linear_model import Ridge def main(): file_name = fsh(sys.argv[1], 1460, 0).download_csv() feat...
true
true
f70dbf065339946b0e4e8e12839c75e81cfa780d
971
py
Python
api/inventory/views.py
BuildForSDGCohort2/Team-1053
6b3fc485d9be22ca0d03832e0d658359ca88e1c7
[ "Apache-2.0" ]
null
null
null
api/inventory/views.py
BuildForSDGCohort2/Team-1053
6b3fc485d9be22ca0d03832e0d658359ca88e1c7
[ "Apache-2.0" ]
7
2020-09-05T16:58:46.000Z
2020-09-26T17:02:24.000Z
api/inventory/views.py
BuildForSDGCohort2/Team-1053
6b3fc485d9be22ca0d03832e0d658359ca88e1c7
[ "Apache-2.0" ]
2
2020-08-20T13:38:16.000Z
2020-09-10T10:08:27.000Z
from .models import Stock, Tag, Product from rest_framework import viewsets from rest_framework.permissions import AllowAny from .serializers import ( StockSerializer, TagSerializer, ProductSerializer ) class StockViewSet(viewsets.ModelViewSet): """ API endpoint that allows stock to be viewed or e...
26.972222
62
0.723996
from .models import Stock, Tag, Product from rest_framework import viewsets from rest_framework.permissions import AllowAny from .serializers import ( StockSerializer, TagSerializer, ProductSerializer ) class StockViewSet(viewsets.ModelViewSet): queryset = Stock.objects.all().order_by('-date_added') ...
true
true
f70dbf18d4e9125b9c469885dcf5b2a766c2f9e4
4,773
py
Python
tensorflow/python/platform/flags.py
AlexChrisF/udacity
b7f85a74058fc63ccb7601c418450ab934ef5953
[ "Apache-2.0" ]
101
2016-12-03T11:40:52.000Z
2017-12-23T02:02:03.000Z
tensorflow/python/platform/flags.py
AlexChrisF/udacity
b7f85a74058fc63ccb7601c418450ab934ef5953
[ "Apache-2.0" ]
10
2017-07-13T00:24:03.000Z
2017-07-17T07:39:03.000Z
tensorflow/python/platform/flags.py
AlexChrisF/udacity
b7f85a74058fc63ccb7601c418450ab934ef5953
[ "Apache-2.0" ]
47
2016-12-04T12:37:24.000Z
2018-01-14T18:13:07.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
33.145833
80
0.670228
from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse as _argparse from tensorflow.python.util.all_util import remove_undocumented _global_parser = _argparse.ArgumentParser() class _FlagValues(object): def __init__(self): self.__dict_...
true
true
f70dbf8b781aa944ac738e7c84d37db767acba27
8,634
py
Python
airtech_api/users/views.py
chidioguejiofor/airtech-api
45d77da0cc4230dd3cb7ab4cbb5168a9239850f5
[ "MIT" ]
1
2019-04-04T12:27:55.000Z
2019-04-04T12:27:55.000Z
airtech_api/users/views.py
chidioguejiofor/airtech-api
45d77da0cc4230dd3cb7ab4cbb5168a9239850f5
[ "MIT" ]
34
2019-03-26T11:18:17.000Z
2022-02-10T08:12:36.000Z
airtech_api/users/views.py
chidioguejiofor/airtech-api
45d77da0cc4230dd3cb7ab4cbb5168a9239850f5
[ "MIT" ]
null
null
null
# Create your views here. from rest_framework.views import APIView from .serializers import UserSerializer, LoginSerializer from ..utils.helpers.json_helpers import generate_response, raise_error, add_token_to_response, validate_url, validate_confirmation_request from ..utils import success_messages from ..utils.error...
36.584746
139
0.633079
from rest_framework.views import APIView from .serializers import UserSerializer, LoginSerializer from ..utils.helpers.json_helpers import generate_response, raise_error, add_token_to_response, validate_url, validate_confirmation_request from ..utils import success_messages from ..utils.error_messages import serializa...
true
true
f70dc0e1b47b0fa04fb3b4aa6f6643af19261dd4
2,521
py
Python
metricsML/Normalizator.py
Elscha/MetricsML
2ecbc42ad7bd2465f4f75658f44452ea5c552c3b
[ "Apache-2.0" ]
null
null
null
metricsML/Normalizator.py
Elscha/MetricsML
2ecbc42ad7bd2465f4f75658f44452ea5c552c3b
[ "Apache-2.0" ]
null
null
null
metricsML/Normalizator.py
Elscha/MetricsML
2ecbc42ad7bd2465f4f75658f44452ea5c552c3b
[ "Apache-2.0" ]
null
null
null
from metricsML.NormalizationType import NormalizationType import numpy as np import math def normalization(normalization, train_data, test_data, validation_data=None): if not isinstance(normalization, NormalizationType): print("Unknown normalization specified, use " + str(NormalizationType.PERCENTAGE) + " ...
42.016667
116
0.700912
from metricsML.NormalizationType import NormalizationType import numpy as np import math def normalization(normalization, train_data, test_data, validation_data=None): if not isinstance(normalization, NormalizationType): print("Unknown normalization specified, use " + str(NormalizationType.PERCENTAGE) + " ...
true
true
f70dc154bf5a0ec09efd22b5fab261d1b26f93ed
1,324
py
Python
setup.py
bluebottlecoffee/netsuite-1
92f94e10030ff590bb8792772c19e80673b3a722
[ "BSD-2-Clause-FreeBSD" ]
1
2019-07-03T16:16:11.000Z
2019-07-03T16:16:11.000Z
setup.py
bluebottlecoffee/netsuite-1
92f94e10030ff590bb8792772c19e80673b3a722
[ "BSD-2-Clause-FreeBSD" ]
1
2019-03-25T21:16:49.000Z
2019-03-25T21:16:49.000Z
setup.py
bluebottlecoffee/netsuite-1
92f94e10030ff590bb8792772c19e80673b3a722
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
from setuptools import setup setup_kwargs = dict( name='netsuite-bbc-python', version='1.0.1', description='Wrapper around Netsuite SuiteTalk Web Services', packages=['netsuite_bbc'], include_package_data=True, author='Jacob Magnusson', author_email='m@jacobian.se', url='https://github....
25.960784
66
0.535498
from setuptools import setup setup_kwargs = dict( name='netsuite-bbc-python', version='1.0.1', description='Wrapper around Netsuite SuiteTalk Web Services', packages=['netsuite_bbc'], include_package_data=True, author='Jacob Magnusson', author_email='m@jacobian.se', url='https://github....
true
true
f70dc1cc367e3b8c96c568718b8ad0c47232d262
3,774
py
Python
litex_boards/targets/terasic_de1soc.py
trabucayre/litex-boards
94b4789286748f90f1c247d95b51470f3e16d1f5
[ "BSD-2-Clause" ]
2
2021-09-20T11:07:48.000Z
2021-12-21T18:20:54.000Z
litex_boards/targets/terasic_de1soc.py
zeldin/litex-boards
d52859d9ef5d8d210118c01ce89e29404ac8d7c6
[ "BSD-2-Clause" ]
null
null
null
litex_boards/targets/terasic_de1soc.py
zeldin/litex-boards
d52859d9ef5d8d210118c01ce89e29404ac8d7c6
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # # This file is part of LiteX-Boards. # # Copyright (c) 2019 Antony Pavlov <antonynpavlov@gmail.com> # SPDX-License-Identifier: BSD-2-Clause import os import argparse from migen import * from migen.genlib.resetsync import AsyncResetSynchronizer from litex.build.io import DDROutput from lite...
36.288462
110
0.539216
import os import argparse from migen import * from migen.genlib.resetsync import AsyncResetSynchronizer from litex.build.io import DDROutput from litex_boards.platforms import de1soc from litex.soc.cores.clock import CycloneVPLL from litex.soc.integration.soc_core import * from litex.soc.integration.builder impor...
true
true
f70dc2ae8032a89757f7a36b7c0addaadd06f4df
1,651
py
Python
recipes/filters.py
jf248/scrape-the-plate
e51d7e6d234cb5fc4b8c9e18b042b3d602e7661d
[ "MIT" ]
3
2018-08-19T10:58:21.000Z
2019-03-31T17:19:29.000Z
recipes/filters.py
jf248/scrape-the-plate
e51d7e6d234cb5fc4b8c9e18b042b3d602e7661d
[ "MIT" ]
16
2020-02-11T21:59:38.000Z
2022-03-08T22:47:52.000Z
recipes/filters.py
jf248/scrape-the-plate
e51d7e6d234cb5fc4b8c9e18b042b3d602e7661d
[ "MIT" ]
1
2018-08-19T10:58:23.000Z
2018-08-19T10:58:23.000Z
from django_filters import rest_framework as filters from rest_framework.filters import SearchFilter, OrderingFilter from . import models class SearchFilter(SearchFilter): """ A Filter backend """ class DjangoFilterBackend(filters.DjangoFilterBackend): """ A Filter backend """ class Order...
23.253521
65
0.626287
from django_filters import rest_framework as filters from rest_framework.filters import SearchFilter, OrderingFilter from . import models class SearchFilter(SearchFilter): class DjangoFilterBackend(filters.DjangoFilterBackend): class OrderingFilter(OrderingFilter): class NumberInFilter(filters.BaseInFilter, ...
true
true
f70dc481c8030337d093d5b752decf10198ad691
277
py
Python
erpnext/hr/doctype/appraisal/test_appraisal.py
nagendrarawat/erpnext_custom
1b94ecc3e66eae402347c302cd1663b690fb1ade
[ "MIT" ]
2
2019-10-01T13:07:39.000Z
2019-10-03T03:52:19.000Z
erpnext/hr/doctype/appraisal/test_appraisal.py
nagendrarawat/erpnext_custom
1b94ecc3e66eae402347c302cd1663b690fb1ade
[ "MIT" ]
null
null
null
erpnext/hr/doctype/appraisal/test_appraisal.py
nagendrarawat/erpnext_custom
1b94ecc3e66eae402347c302cd1663b690fb1ade
[ "MIT" ]
3
2019-09-30T19:17:44.000Z
2019-10-23T18:59:12.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest # test_records = frappe.get_test_records('Appraisal') class TestAppraisal(unittest.TestCase): pass
23.083333
85
0.808664
from __future__ import unicode_literals import frappe import unittest class TestAppraisal(unittest.TestCase): pass
true
true
f70dc58a1a9f50310b830e0b246cfde547f6836f
1,445
py
Python
Examples/Tests/divb_cleaning/analysis.py
oshapoval/WarpX
84d687da21ee93db67fdc43efec8a9cc80d0e6f9
[ "BSD-3-Clause-LBNL" ]
131
2018-09-29T08:11:40.000Z
2022-03-28T23:24:22.000Z
Examples/Tests/divb_cleaning/analysis.py
oshapoval/WarpX
84d687da21ee93db67fdc43efec8a9cc80d0e6f9
[ "BSD-3-Clause-LBNL" ]
1,656
2018-10-02T01:49:24.000Z
2022-03-31T21:27:31.000Z
Examples/Tests/divb_cleaning/analysis.py
oshapoval/WarpX
84d687da21ee93db67fdc43efec8a9cc80d0e6f9
[ "BSD-3-Clause-LBNL" ]
100
2018-10-01T20:41:14.000Z
2022-03-10T10:30:42.000Z
#! /usr/bin/env python # Copyright 2019 # # This file is part of WarpX. # # License: BSD-3-Clause-LBNL import sys sys.path.insert(1, '../../../../warpx/Regression/Checksum/') import numpy as np import yt yt.funcs.mylog.setLevel(50) import re import checksumAPI from scipy.constants import c # Name of the last plotfil...
28.333333
110
0.717647
import sys sys.path.insert(1, '../../../../warpx/Regression/Checksum/') import numpy as np import yt yt.funcs.mylog.setLevel(50) import re import checksumAPI from scipy.constants import c fn = sys.argv[1] ds_old = yt.load('divb_cleaning_3d_plt00398') ds_mid = yt.load('divb_cleaning_3d_plt00399') ds_new = yt.load(fn...
true
true
f70dc61ab5caf97d2323e6f911de2398a0ffcd48
1,185
py
Python
app/forms/user.py
mofilamamra/APP-WILAYA
43aad0e98ad3934d0e1d94b52eece2574cb3c97e
[ "MIT" ]
null
null
null
app/forms/user.py
mofilamamra/APP-WILAYA
43aad0e98ad3934d0e1d94b52eece2574cb3c97e
[ "MIT" ]
null
null
null
app/forms/user.py
mofilamamra/APP-WILAYA
43aad0e98ad3934d0e1d94b52eece2574cb3c97e
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, SubmitField, SelectField from wtforms.validators import DataRequired, Email, Length, EqualTo from app.models.Model import Category def get_categories(): categories_query = Category.query.all() categories = [] for category in c...
39.5
108
0.745992
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, SubmitField, SelectField from wtforms.validators import DataRequired, Email, Length, EqualTo from app.models.Model import Category def get_categories(): categories_query = Category.query.all() categories = [] for category in c...
true
true
f70dc6349a1611ac2b4477d44033ddef01b29cff
9,878
py
Python
rtlib/setting.py
tuna2134/rt-bot-sdk
79162688e06c30599e74ae881fff102304124474
[ "BSD-4-Clause" ]
null
null
null
rtlib/setting.py
tuna2134/rt-bot-sdk
79162688e06c30599e74ae881fff102304124474
[ "BSD-4-Clause" ]
null
null
null
rtlib/setting.py
tuna2134/rt-bot-sdk
79162688e06c30599e74ae881fff102304124474
[ "BSD-4-Clause" ]
null
null
null
# RT Lib - Setting from typing import ( TYPE_CHECKING, TypedDict, Optional, Union, Literal, Dict, Tuple, List, overload, get_origin, get_args ) from discord.ext import commands import discord from collections import defaultdict from aiohttp import ClientSession from functools import partial from datetime imp...
34.904594
92
0.5738
from typing import ( TYPE_CHECKING, TypedDict, Optional, Union, Literal, Dict, Tuple, List, overload, get_origin, get_args ) from discord.ext import commands import discord from collections import defaultdict from aiohttp import ClientSession from functools import partial from datetime import datetime from u...
true
true
f70dc692a5a50fd9649f6865d30bbedcfd90fc66
11,387
py
Python
mltk/utils/jlink_stream/data_stream.py
SiliconLabs/mltk
56b19518187e9d1c8a0d275de137fc9058984a1f
[ "Zlib" ]
null
null
null
mltk/utils/jlink_stream/data_stream.py
SiliconLabs/mltk
56b19518187e9d1c8a0d275de137fc9058984a1f
[ "Zlib" ]
1
2021-11-19T20:10:09.000Z
2021-11-19T20:10:09.000Z
mltk/utils/jlink_stream/data_stream.py
sldriedler/mltk
d82a60359cf875f542a2257f1bc7d8eb4bdaa204
[ "Zlib" ]
null
null
null
import time from threading import Event, RLock from mltk.utils import hexdump from .device_interface import DeviceInterface, MAX_BUFFER_SIZE WAIT_FOREVER = 4294967.0 class JLinkDataStream(object): """JLink data stream""" def __init__( self, name:str, mode:str, ifc: Dev...
29.423773
114
0.543954
import time from threading import Event, RLock from mltk.utils import hexdump from .device_interface import DeviceInterface, MAX_BUFFER_SIZE WAIT_FOREVER = 4294967.0 class JLinkDataStream(object): def __init__( self, name:str, mode:str, ifc: DeviceInterface, strea...
true
true
f70dc6a5b028fb99479752dedde54048af19c596
2,416
py
Python
main.py
im1-pro/GUI-Based-RSM
a164af708eea814c8c51f8a2178a271e5505b29e
[ "MIT" ]
null
null
null
main.py
im1-pro/GUI-Based-RSM
a164af708eea814c8c51f8a2178a271e5505b29e
[ "MIT" ]
null
null
null
main.py
im1-pro/GUI-Based-RSM
a164af708eea814c8c51f8a2178a271e5505b29e
[ "MIT" ]
null
null
null
import rstools from tkinter import * from functools import partial class mainWindow: def __init__(self,master) -> None: self.master = master self.constraint = IntVar() self.constring = [] Label(self.master , text="Revised Simplex Method", font=("Arial",25)).pack() ...
32.213333
90
0.527732
import rstools from tkinter import * from functools import partial class mainWindow: def __init__(self,master) -> None: self.master = master self.constraint = IntVar() self.constring = [] Label(self.master , text="Revised Simplex Method", font=("Arial",25)).pack() ...
true
true
f70dc89229880140b19e82a38e9b341a4c22fd94
2,897
py
Python
hsdecomp/parse/info.py
popjy0312/hsdecomp
f89a8d6c98c864fa45ee80b92221a973d81bac31
[ "MIT" ]
99
2016-01-05T00:43:33.000Z
2021-08-06T15:23:34.000Z
hsdecomp/parse/info.py
popjy0312/hsdecomp
f89a8d6c98c864fa45ee80b92221a973d81bac31
[ "MIT" ]
5
2017-12-29T09:02:56.000Z
2020-12-07T01:54:19.000Z
hsdecomp/parse/info.py
popjy0312/hsdecomp
f89a8d6c98c864fa45ee80b92221a973d81bac31
[ "MIT" ]
21
2016-01-27T21:24:41.000Z
2020-11-28T09:11:18.000Z
import struct from hsdecomp import ptrutil def read_arg_pattern(settings, address): num_args = read_num_args(settings, address) func_type = read_function_type(settings, address) assert num_args >= len(func_type) return func_type + 'v' * (num_args - len(func_type)) def read_num_args(settings, address)...
31.150538
105
0.539524
import struct from hsdecomp import ptrutil def read_arg_pattern(settings, address): num_args = read_num_args(settings, address) func_type = read_function_type(settings, address) assert num_args >= len(func_type) return func_type + 'v' * (num_args - len(func_type)) def read_num_args(settings, address)...
true
true
f70dc8adfb1822a30031714d95fe2f269af4ee84
7,196
py
Python
one/tests/util.py
int-brain-lab/ONE
8766cd27308ddc2c247acb56685be3b2ce204390
[ "MIT" ]
5
2021-08-05T07:48:18.000Z
2022-01-04T15:14:04.000Z
one/tests/util.py
int-brain-lab/ONE
8766cd27308ddc2c247acb56685be3b2ce204390
[ "MIT" ]
7
2021-07-01T15:44:33.000Z
2021-08-31T14:12:32.000Z
one/tests/util.py
int-brain-lab/ONE
8766cd27308ddc2c247acb56685be3b2ce204390
[ "MIT" ]
2
2021-08-11T11:55:55.000Z
2021-12-05T14:50:57.000Z
"""Utilities functions for setting up test fixtures.""" import tempfile from pathlib import Path import shutil import json from uuid import uuid4 import pandas as pd import numpy as np from iblutil.io.parquet import uuid2np, np2str import one.params def set_up_env(use_temp_cache=True) -> tempfile.TemporaryDirectory...
32.125
98
0.63174
import tempfile from pathlib import Path import shutil import json from uuid import uuid4 import pandas as pd import numpy as np from iblutil.io.parquet import uuid2np, np2str import one.params def set_up_env(use_temp_cache=True) -> tempfile.TemporaryDirectory: fixture = Path(__file__).parent.joinpath('fixtures...
true
true
f70dc9c588d7235403908c4d6bfb12e5f2a8c107
2,813
py
Python
datalabeling/export_data.py
thesugar/python-docs-samples
1a59ca688f1d7602d52cd4088fa7b6e3afe0afd0
[ "Apache-2.0" ]
1
2020-06-04T16:50:49.000Z
2020-06-04T16:50:49.000Z
datalabeling/export_data.py
thesugar/python-docs-samples
1a59ca688f1d7602d52cd4088fa7b6e3afe0afd0
[ "Apache-2.0" ]
1
2020-07-23T10:47:32.000Z
2020-07-23T10:47:32.000Z
datalabeling/export_data.py
thesugar/python-docs-samples
1a59ca688f1d7602d52cd4088fa7b6e3afe0afd0
[ "Apache-2.0" ]
1
2020-05-29T20:33:18.000Z
2020-05-29T20:33:18.000Z
#!/usr/bin/env python # Copyright 2019 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
31.965909
77
0.713829
import argparse import os from google.api_core.client_options import ClientOptions def export_data(dataset_resource_name, annotated_dataset_resource_name, export_gcs_uri): from google.cloud import datalabeling_v1beta1 as datalabeling client = datalabeling.DataLabelingServiceClient() ...
true
true
f70dca2728d6f341e94b533639987379d7d8a49d
635
py
Python
mixpanel_django_graphos/urls.py
sayonetech/mixpanel-django-graphos
cf74dd73ecb62a505d507bc8d122db397a2c6f34
[ "MIT" ]
null
null
null
mixpanel_django_graphos/urls.py
sayonetech/mixpanel-django-graphos
cf74dd73ecb62a505d507bc8d122db397a2c6f34
[ "MIT" ]
null
null
null
mixpanel_django_graphos/urls.py
sayonetech/mixpanel-django-graphos
cf74dd73ecb62a505d507bc8d122db397a2c6f34
[ "MIT" ]
null
null
null
from django.conf.urls import url from django.contrib import admin from mixpanel_django_graphos.views import ReportActivityView admin.site.index_template = 'admin/index.html' admin.autodiscover() def get_admin_urls(urls): """ Extend admin to include additional urls """ def get_urls(): my_url...
23.518519
68
0.708661
from django.conf.urls import url from django.contrib import admin from mixpanel_django_graphos.views import ReportActivityView admin.site.index_template = 'admin/index.html' admin.autodiscover() def get_admin_urls(urls): def get_urls(): my_urls = [url(r'^activity-report/$', admin.site.admin_view( ...
true
true
f70dca3c878f2c608ee4decf93cecab1952362b2
27,393
py
Python
tests/keras/layers/recurrent_test.py
mduranmustafa/keras
d4a14ee54728ac8ea6c5ffbf41f559662dcfba46
[ "MIT" ]
75
2018-08-03T01:10:36.000Z
2022-02-25T05:08:39.000Z
tests/keras/layers/recurrent_test.py
coderclear/ConvGRU
c458024d5c379ef990f72b6f6b738301e1895cff
[ "MIT" ]
9
2018-08-14T14:33:58.000Z
2021-09-06T07:04:14.000Z
tests/keras/layers/recurrent_test.py
coderclear/ConvGRU
c458024d5c379ef990f72b6f6b738301e1895cff
[ "MIT" ]
19
2018-08-11T20:44:42.000Z
2021-12-01T00:41:52.000Z
import pytest import numpy as np from numpy.testing import assert_allclose import keras from keras.utils.test_utils import layer_test from keras.utils.test_utils import keras_test from keras.layers import recurrent from keras.layers import embeddings from keras.models import Sequential from keras.models import Model f...
35.807843
80
0.631694
import pytest import numpy as np from numpy.testing import assert_allclose import keras from keras.utils.test_utils import layer_test from keras.utils.test_utils import keras_test from keras.layers import recurrent from keras.layers import embeddings from keras.models import Sequential from keras.models import Model f...
true
true
f70dca56405821f455674a34af08519dd64b3467
1,005
py
Python
mallenom/workcal/forms.py
crowmurk/mallenom
c85bba2e657965879e6fac18bb762ca739ff4d98
[ "MIT" ]
null
null
null
mallenom/workcal/forms.py
crowmurk/mallenom
c85bba2e657965879e6fac18bb762ca739ff4d98
[ "MIT" ]
9
2020-02-12T01:04:30.000Z
2022-02-10T09:22:09.000Z
mallenom/workcal/forms.py
crowmurk/mallenom
c85bba2e657965879e6fac18bb762ca739ff4d98
[ "MIT" ]
null
null
null
from django import forms from django.core.validators import MinValueValidator from django.utils.translation import gettext_lazy as _ from .models import DayType, Day class DayTypeForm(forms.ModelForm): class Meta: model = DayType fields = '__all__' class DayForm(forms.ModelForm): class Meta...
23.372093
64
0.61592
from django import forms from django.core.validators import MinValueValidator from django.utils.translation import gettext_lazy as _ from .models import DayType, Day class DayTypeForm(forms.ModelForm): class Meta: model = DayType fields = '__all__' class DayForm(forms.ModelForm): class Meta...
true
true
f70dcd890ab8bce5843942a3818fdc0c14bb0bc9
4,723
py
Python
data/forms/__init__.py
pombredanne/vulncode-db
bffd1467df54d98e5271ec977330365d5879b60d
[ "Apache-2.0" ]
592
2019-03-05T13:39:57.000Z
2022-03-31T14:52:58.000Z
data/forms/__init__.py
pombredanne/vulncode-db
bffd1467df54d98e5271ec977330365d5879b60d
[ "Apache-2.0" ]
91
2019-04-05T20:45:26.000Z
2021-12-24T02:10:50.000Z
data/forms/__init__.py
pombredanne/vulncode-db
bffd1467df54d98e5271ec977330365d5879b60d
[ "Apache-2.0" ]
84
2019-03-31T03:55:56.000Z
2022-01-03T13:33:44.000Z
# Copyright 2019 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
30.869281
88
0.677747
from flask_wtf import FlaskForm from wtforms import ( StringField, TextAreaField, SubmitField, FieldList, FormField, IntegerField, HiddenField, BooleanField, ) from wtforms import validators from data.models import VulnerabilityGitCommits, VulnerabilityResources from data.models.base...
true
true
f70dcdbf09dad9fb3d510148238311b3fe78a376
49,747
py
Python
frappe/__init__.py
Havenir/gppert-frappe
d302388ad15b36754a48c5d047d7515dad257b89
[ "MIT" ]
null
null
null
frappe/__init__.py
Havenir/gppert-frappe
d302388ad15b36754a48c5d047d7515dad257b89
[ "MIT" ]
null
null
null
frappe/__init__.py
Havenir/gppert-frappe
d302388ad15b36754a48c5d047d7515dad257b89
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt """ globals attached to frappe module + some utility functions that should probably be moved """ from __future__ import unicode_literals, print_function from six import iteritems, binary_type, text_type, string_types fr...
30.613538
180
0.729552
from __future__ import unicode_literals, print_function from six import iteritems, binary_type, text_type, string_types from werkzeug.local import Local, release_local import os, sys, importlib, inspect, json from past.builtins import cmp from faker import Faker from .exceptions import * from .utils.jinja import (ge...
true
true
f70dcfad1d0ecdb79e189a8b31f0250d95bb0200
18,777
py
Python
docs/mxdoc.py
paulk-asert/incubator-mxnet
6acf7e6a051e75d9f1cca0ec3c198c38c0f6a3fe
[ "Apache-2.0" ]
null
null
null
docs/mxdoc.py
paulk-asert/incubator-mxnet
6acf7e6a051e75d9f1cca0ec3c198c38c0f6a3fe
[ "Apache-2.0" ]
null
null
null
docs/mxdoc.py
paulk-asert/incubator-mxnet
6acf7e6a051e75d9f1cca0ec3c198c38c0f6a3fe
[ "Apache-2.0" ]
1
2020-04-09T09:26:31.000Z
2020-04-09T09:26:31.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 u...
37.33002
134
0.57171
from __future__ import print_function import subprocess import re import os import json import sys from recommonmark import transform import pypandoc import contextlib from six import StringIO from six.moves import configparser _BUILD_VER = os.getenv('BUILD_VER', 'default') print("Building version {}".format(_BUILD_V...
true
true
f70dcff2432a436d9a38ca72b6250e635f385d8f
913
py
Python
ooobuild/dyn/sheet/spreadsheet_view_panes_enumeration.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/dyn/sheet/spreadsheet_view_panes_enumeration.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/dyn/sheet/spreadsheet_view_panes_enumeration.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...
35.115385
125
0.776561
from ...lo.sheet.spreadsheet_view_panes_enumeration import SpreadsheetViewPanesEnumeration as SpreadsheetViewPanesEnumeration __all__ = ['SpreadsheetViewPanesEnumeration']
true
true
f70dd031a18d68a0c0719d6b1e479e6b260cc10d
3,076
py
Python
ndn_python_repo/storage/sqlite.py
susmit85/ndn-python-repo
45a76bd3e78b0157e364413d62d3aaa51cd20353
[ "Apache-2.0" ]
null
null
null
ndn_python_repo/storage/sqlite.py
susmit85/ndn-python-repo
45a76bd3e78b0157e364413d62d3aaa51cd20353
[ "Apache-2.0" ]
null
null
null
ndn_python_repo/storage/sqlite.py
susmit85/ndn-python-repo
45a76bd3e78b0157e364413d62d3aaa51cd20353
[ "Apache-2.0" ]
null
null
null
import os import sqlite3 from typing import List, Optional from .storage_base import Storage class SqliteStorage(Storage): def __init__(self, db_path): """ Init table "data" with the attribute "key" being the primary key :param db_path: str. Path to database file """ super(...
35.767442
102
0.56762
import os import sqlite3 from typing import List, Optional from .storage_base import Storage class SqliteStorage(Storage): def __init__(self, db_path): super().__init__() db_path = os.path.expanduser(db_path) if len(os.path.dirname(db_path)) > 0 and not os.path.exists(os.path.dirname(db_pa...
true
true
f70dd03916809216c5fd10697b0165fef0ccd9f7
3,141
py
Python
suzieq/utilities/sq_simnode_rest.py
LucaNicosia/suzieq
c281807ea2c4f44a9d6cd6c80fd5b71277b3cdcd
[ "Apache-2.0" ]
null
null
null
suzieq/utilities/sq_simnode_rest.py
LucaNicosia/suzieq
c281807ea2c4f44a9d6cd6c80fd5b71277b3cdcd
[ "Apache-2.0" ]
null
null
null
suzieq/utilities/sq_simnode_rest.py
LucaNicosia/suzieq
c281807ea2c4f44a9d6cd6c80fd5b71277b3cdcd
[ "Apache-2.0" ]
null
null
null
''' Serve up a fake REST server acting as device REST API ''' import sys import argparse from pathlib import Path import ssl import logging from aiohttp import web import xmltodict def get_filename_from_cmd(cmd_dict: dict) -> str: """Build filename from an xml command""" keys = [] def recursive_items(c...
29.914286
76
0.606176
import sys import argparse from pathlib import Path import ssl import logging from aiohttp import web import xmltodict def get_filename_from_cmd(cmd_dict: dict) -> str: keys = [] def recursive_items(cmd_dict: dict): for key, value in cmd_dict.items(): if isinstance(value, dict): ...
true
true
f70dd0823804a8aef036ace7e761585472afb4e7
343
py
Python
docs.py
Pure-Peace/New-ot-socketio
c3124aed6941ecf885f8c16522bcc64a3b4b488c
[ "MIT" ]
1
2022-02-15T08:01:10.000Z
2022-02-15T08:01:10.000Z
docs.py
Pure-Peace/New-ot-socketio
c3124aed6941ecf885f8c16522bcc64a3b4b488c
[ "MIT" ]
null
null
null
docs.py
Pure-Peace/New-ot-socketio
c3124aed6941ecf885f8c16522bcc64a3b4b488c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' otsu.fun - SSWA Resources Docs String @version: 0.1 @author: PurePeace @time: 2020-01-07 @describe: docs string for api resources!!! ''' demo = \ ''' 演示接口 传参:{ foo } --- - Nothing here ``` null ``` ''' # run? not. if __name__ == '__main__': print('only docs...
12.703704
44
0.548105
demo = \ ''' 演示接口 传参:{ foo } --- - Nothing here ``` null ``` ''' if __name__ == '__main__': print('only docs, so it doesnt work')
true
true
f70dd0c7750c5520d89862092e2faadca474195e
564
py
Python
recommender/recommender/framework/tf2/__init__.py
ericdoug-qi/RecommendationsInAction
ab1b2b8cd94285b3798df92febc8a73b36db17cd
[ "MIT" ]
null
null
null
recommender/recommender/framework/tf2/__init__.py
ericdoug-qi/RecommendationsInAction
ab1b2b8cd94285b3798df92febc8a73b36db17cd
[ "MIT" ]
null
null
null
recommender/recommender/framework/tf2/__init__.py
ericdoug-qi/RecommendationsInAction
ab1b2b8cd94285b3798df92febc8a73b36db17cd
[ "MIT" ]
null
null
null
# _*_ coding: utf-8 _*_ """ ------------------------------------------------- File Name: __init__.py.py Description : Author : ericdoug date:2021/3/7 ------------------------------------------------- Change Activity: 2021/3/7: created ------------------------------------------------- """ from...
20.142857
49
0.542553
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from __future__ import absolute_import import os
true
true
f70dd0fd149c9b9c8dd2612b9d8bdda428b55863
6,909
py
Python
scripts/pixel_classification_zarr.py
pwalczysko/ilastik
e4fa2c3c1ba1f83d3dcc392ccdd29e4391b8dbcf
[ "BSD-2-Clause" ]
3
2020-08-04T22:09:54.000Z
2021-07-15T11:15:36.000Z
scripts/pixel_classification_zarr.py
pwalczysko/ilastik
e4fa2c3c1ba1f83d3dcc392ccdd29e4391b8dbcf
[ "BSD-2-Clause" ]
29
2019-12-18T11:53:31.000Z
2021-12-10T11:36:20.000Z
scripts/pixel_classification_zarr.py
pwalczysko/ilastik
e4fa2c3c1ba1f83d3dcc392ccdd29e4391b8dbcf
[ "BSD-2-Clause" ]
5
2020-01-24T17:14:57.000Z
2021-04-29T08:51:06.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # # Copyright (c) 2020 University of Dundee. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # Redistributions of source code must retain the above copyright not...
36.363158
134
0.658561
import time import tempfile import tarfile import numpy import os import zarr import dask.array as da import omero.clients from omero.gateway import BlitzGateway from getpass import getpass from ilastik import app from ilastik.applets.dataSelection.opDataSelection import PreloadedArrayDatasetInfo import vigra de...
true
true
f70dd2d9076b8943f6493248c806248898cfa18e
49,133
py
Python
sdk/python/pulumi_aws/codedeploy/_inputs.py
alexbowers/pulumi-aws
7dbdb03b1e4f7c0d51d5b5d17233ff4465c3eff5
[ "ECL-2.0", "Apache-2.0" ]
260
2018-06-18T14:57:00.000Z
2022-03-29T11:41:03.000Z
sdk/python/pulumi_aws/codedeploy/_inputs.py
alexbowers/pulumi-aws
7dbdb03b1e4f7c0d51d5b5d17233ff4465c3eff5
[ "ECL-2.0", "Apache-2.0" ]
1,154
2018-06-19T20:38:20.000Z
2022-03-31T19:48:16.000Z
sdk/python/pulumi_aws/codedeploy/_inputs.py
alexbowers/pulumi-aws
7dbdb03b1e4f7c0d51d5b5d17233ff4465c3eff5
[ "ECL-2.0", "Apache-2.0" ]
115
2018-06-28T03:20:27.000Z
2022-03-29T11:41:06.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
48.264244
495
0.701708
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = [ 'DeploymentConfigMinimumHealthyHostsArgs', 'DeploymentConfigTrafficRoutingConfigArgs', 'DeploymentConfigTrafficRoutingConfigTimeBasedCanaryArgs', ...
true
true
f70dd315e27de4268e1123bfe38e0b2334754b73
696
py
Python
securityheaders/checkers/csp/roonlychecker.py
th3cyb3rc0p/securityheaders
941264be581dc01afe28f6416f2d7bed79aecfb3
[ "Apache-2.0" ]
151
2018-07-29T22:34:43.000Z
2022-03-22T05:08:27.000Z
securityheaders/checkers/csp/roonlychecker.py
th3cyb3rc0p/securityheaders
941264be581dc01afe28f6416f2d7bed79aecfb3
[ "Apache-2.0" ]
5
2019-04-24T07:31:36.000Z
2021-04-15T14:31:23.000Z
securityheaders/checkers/csp/roonlychecker.py
th3cyb3rc0p/securityheaders
941264be581dc01afe28f6416f2d7bed79aecfb3
[ "Apache-2.0" ]
42
2018-07-31T08:18:59.000Z
2022-03-28T08:18:32.000Z
from .checker import CSPChecker from .checkerro import CSPReportOnlyChecker from securityheaders.checkers import Finding,FindingType,FindingSeverity class CSPReportOnlyNoCSPChecker(CSPReportOnlyChecker, CSPChecker): def check(self, headers, opt_options=dict()): rocsp = CSPReportOnlyChecker.getcsp(self,head...
49.714286
159
0.75431
from .checker import CSPChecker from .checkerro import CSPReportOnlyChecker from securityheaders.checkers import Finding,FindingType,FindingSeverity class CSPReportOnlyNoCSPChecker(CSPReportOnlyChecker, CSPChecker): def check(self, headers, opt_options=dict()): rocsp = CSPReportOnlyChecker.getcsp(self,head...
true
true
f70dd473c6c9cff52add68fbc53b82b52967f71d
1,955
py
Python
corehq/apps/linked_domain/applications.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/linked_domain/applications.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/linked_domain/applications.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
null
null
null
from corehq.apps.app_manager.dbaccessors import ( get_brief_apps_in_domain, get_latest_released_app, get_latest_released_app_versions_by_app_id, ) from corehq.apps.linked_domain.models import DomainLink from corehq.apps.linked_domain.remote_accessors import ( get_brief_apps, get_latest_released_vers...
34.910714
107
0.783632
from corehq.apps.app_manager.dbaccessors import ( get_brief_apps_in_domain, get_latest_released_app, get_latest_released_app_versions_by_app_id, ) from corehq.apps.linked_domain.models import DomainLink from corehq.apps.linked_domain.remote_accessors import ( get_brief_apps, get_latest_released_vers...
true
true
f70dd6369cf11d959d98254bff5293d783855f79
4,442
py
Python
examples/example_shortTermExtreme_2.py
ryancoe/WDRT
039d53b13b8d6ee98bbbab69d6433af4f709e6c0
[ "Apache-2.0" ]
null
null
null
examples/example_shortTermExtreme_2.py
ryancoe/WDRT
039d53b13b8d6ee98bbbab69d6433af4f709e6c0
[ "Apache-2.0" ]
null
null
null
examples/example_shortTermExtreme_2.py
ryancoe/WDRT
039d53b13b8d6ee98bbbab69d6433af4f709e6c0
[ "Apache-2.0" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import WDRT.shortTermExtreme as ecm import WDRT.fatigue as fatigue method = 1 # 1 - All peaks Weibull # 2 - Weibull tail fit # 3 - Peaks over threshold # 4 - Block maxima GEV # 5 - Block maxima Gumbel # load global peaks t_peaks = np.loadtxt(r'C:\full\filepath\...
42.711538
242
0.716794
import numpy as np import matplotlib.pyplot as plt import WDRT.shortTermExtreme as ecm import WDRT.fatigue as fatigue method = 1 t_peaks = np.loadtxt(r'C:\full\filepath\to\WDRT\examples\data\t.dat') peaks = np.loadtxt(r'C:\full\filepath\to\WDRT_py3\WDRT\examples\data\peaks.dat')/1000. x_e = np.linspace(0, 2 * ...
true
true
f70dd65eb99390da27c92eb399edadf5cb48eec9
481
py
Python
lazyops/lazyconfig/__init__.py
trisongz/lazyops
e8021e34172087ea36ac690b692fd80d06688fa1
[ "Apache-2.0" ]
3
2021-07-12T20:43:31.000Z
2021-08-06T09:05:18.000Z
lazyops/lazyconfig/__init__.py
trisongz/lazyops
e8021e34172087ea36ac690b692fd80d06688fa1
[ "Apache-2.0" ]
null
null
null
lazyops/lazyconfig/__init__.py
trisongz/lazyops
e8021e34172087ea36ac690b692fd80d06688fa1
[ "Apache-2.0" ]
null
null
null
from .nginx import Nginx, NginxConfig from . import tfserving_pb2 as tfserving_config from . import tfserving_api from ._base import TFSModelVersion, TFSModelConfig from .tfserving_pb2 import TFSConfig from .tfserving_api import TFSModelEndpoint, TFServeModel __all__ = [ 'Nginx', 'NginxConfig', 'tfserving...
22.904762
57
0.733888
from .nginx import Nginx, NginxConfig from . import tfserving_pb2 as tfserving_config from . import tfserving_api from ._base import TFSModelVersion, TFSModelConfig from .tfserving_pb2 import TFSConfig from .tfserving_api import TFSModelEndpoint, TFServeModel __all__ = [ 'Nginx', 'NginxConfig', 'tfserving...
true
true
f70dd7f719724433fbd2b992f920c229ba32ff63
45
py
Python
Num/__init__.py
Ashokkommi0001/patterns
daa1a1d8f3bc6e021e02a0e34458e2c178fc71d2
[ "MIT" ]
2
2021-03-17T12:08:22.000Z
2021-03-17T12:11:10.000Z
Num/__init__.py
Ashokkommi0001/patterns
daa1a1d8f3bc6e021e02a0e34458e2c178fc71d2
[ "MIT" ]
null
null
null
Num/__init__.py
Ashokkommi0001/patterns
daa1a1d8f3bc6e021e02a0e34458e2c178fc71d2
[ "MIT" ]
1
2021-03-17T11:49:39.000Z
2021-03-17T11:49:39.000Z
print("We Created Sub_Package for Numbers")
22.5
44
0.777778
print("We Created Sub_Package for Numbers")
true
true
f70dd94d9dda9ed5dd7b8a20066b99fb23a08f96
1,188
py
Python
maayanlab_bioinformatics/plotting/upset.py
MaayanLab/maayanlab-bioinformatics
f84bda02a8841a65d4c72e491129cdc339fb73b3
[ "Apache-2.0" ]
4
2020-07-16T11:49:59.000Z
2021-08-03T00:54:16.000Z
maayanlab_bioinformatics/plotting/upset.py
MaayanLab/maayanlab-bioinformatics
f84bda02a8841a65d4c72e491129cdc339fb73b3
[ "Apache-2.0" ]
2
2020-05-21T17:04:30.000Z
2022-02-14T21:29:54.000Z
maayanlab_bioinformatics/plotting/upset.py
MaayanLab/maayanlab-bioinformatics
f84bda02a8841a65d4c72e491129cdc339fb73b3
[ "Apache-2.0" ]
null
null
null
import itertools import pandas as pd from typing import Dict, Set, Hashable def upset_from_dict_of_sets(inputs: Dict[Hashable, Set[Hashable]]): ''' Given a dictionary of sets, produce input ready for `upsetplot` python package We produce this input by computing set intersections of all relevant combinations of...
33.942857
87
0.651515
import itertools import pandas as pd from typing import Dict, Set, Hashable def upset_from_dict_of_sets(inputs: Dict[Hashable, Set[Hashable]]): sets = [] for n in range(1, len(inputs)+1): if n == 1: it = [[k] for k in inputs.keys()] else: it = map(list, itertools.combinations(inputs.keys(), n))...
true
true
f70dd9e9a70a580acef12353c814e75039a923c7
1,111
py
Python
python3_exercicios_feitos/Desafio100.py
LouiMaxine/python3-exercicios-cursoemvideo
782f983829a594496262ec30b87d545e928f7322
[ "MIT" ]
null
null
null
python3_exercicios_feitos/Desafio100.py
LouiMaxine/python3-exercicios-cursoemvideo
782f983829a594496262ec30b87d545e928f7322
[ "MIT" ]
null
null
null
python3_exercicios_feitos/Desafio100.py
LouiMaxine/python3-exercicios-cursoemvideo
782f983829a594496262ec30b87d545e928f7322
[ "MIT" ]
null
null
null
#FUPQ tenha uma lista chamada números e duas funções chamadas sorteio() e somaPar(). A primeira função vai sortear 5 números e vai colocá-las dentro da lista e a segunda função vai mostrar a soma entre todos os valores PARES sorteados pela função anterior. #def sorteio(numeros): # for i in range(0,5): # nume...
20.962264
256
0.615662
from random import randint from time import sleep def sorteia(lista): print('Sorteando 5 valores da lista ', end='') for cont in range(0,5): n = randint(1,10) lista.append(n) print(f'{n} ',end='', flush=True) sleep(1) print('PRONTO!') def som...
true
true
f70dda2416705ecdb81d8911d84da03b93d8f992
5,167
py
Python
src/OCR_CNN_Trainning.py
ludwigjer/visualsudoku
a5ed257edfda45123ef3779b8181d5f27412ea50
[ "MIT" ]
null
null
null
src/OCR_CNN_Trainning.py
ludwigjer/visualsudoku
a5ed257edfda45123ef3779b8181d5f27412ea50
[ "MIT" ]
null
null
null
src/OCR_CNN_Trainning.py
ludwigjer/visualsudoku
a5ed257edfda45123ef3779b8181d5f27412ea50
[ "MIT" ]
null
null
null
import numpy as np import cv2 import os from sklearn.model_selection import train_test_split import matplotlib.pyplot as plt from keras.preprocessing.image import ImageDataGenerator from keras.utils.np_utils import to_categorical from keras.models import Sequential from keras.layers import Dense from keras.optimizers i...
30.216374
104
0.698471
import numpy as np import cv2 import os from sklearn.model_selection import train_test_split import matplotlib.pyplot as plt from keras.preprocessing.image import ImageDataGenerator from keras.utils.np_utils import to_categorical from keras.models import Sequential from keras.layers import Dense from keras.optimizers i...
true
true
f70ddab857849f6693382263da31f34ac565729b
13,374
py
Python
cryptoapis/model/inline_response40382.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
5
2021-05-17T04:45:03.000Z
2022-03-23T12:51:46.000Z
cryptoapis/model/inline_response40382.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
null
null
null
cryptoapis/model/inline_response40382.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
2
2021-06-02T07:32:26.000Z
2022-02-12T02:36:23.000Z
""" CryptoAPIs Crypto APIs 2.0 is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs 2.0 can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of thei...
46.926316
484
0.597054
import re import sys from cryptoapis.model_utils import ( ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_type, validate_get_composed_info, OpenApiM...
true
true
f70ddadd8c534ce341100c123ca2bae91c5488da
3,605
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2019_10_01_preview/aio/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2019_10_01_preview/aio/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2019_10_01_preview/aio/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
49.383562
130
0.705687
from typing import Any, TYPE_CHECKING from azure.core.configuration import Configuration from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy, AsyncARMChallengeAuthenticationPolicy from .._version import VERSION if TYPE_CHECKING: from azure.core.credentials_asyn...
true
true
f70ddb2ee46cc780846ac894cd6ace61da1a5f0e
600
py
Python
drink_robot/controllers/__init__.py
cactode/drink_robot
03c9e5605ac3f632d94fe108fb463381e889ed18
[ "MIT" ]
null
null
null
drink_robot/controllers/__init__.py
cactode/drink_robot
03c9e5605ac3f632d94fe108fb463381e889ed18
[ "MIT" ]
null
null
null
drink_robot/controllers/__init__.py
cactode/drink_robot
03c9e5605ac3f632d94fe108fb463381e889ed18
[ "MIT" ]
null
null
null
from drink_robot.controllers.index import bp as index from drink_robot.controllers.recipe import bp as recipe from drink_robot.controllers.bottle import bp as bottle from drink_robot.controllers.pour import bp as pour import pigpio def init_pins(app): if app.config['DEBUG']: return gpio = pigpio.pi() ...
30
55
0.74
from drink_robot.controllers.index import bp as index from drink_robot.controllers.recipe import bp as recipe from drink_robot.controllers.bottle import bp as bottle from drink_robot.controllers.pour import bp as pour import pigpio def init_pins(app): if app.config['DEBUG']: return gpio = pigpio.pi() ...
true
true
f70ddb48a8fccefc2404b635a3c5b13345afc3d7
1,116
py
Python
setup.py
Superbil/django-spgateway
b8fa05d32a929a68bbd5336c38613da6bc35e3b7
[ "MIT" ]
null
null
null
setup.py
Superbil/django-spgateway
b8fa05d32a929a68bbd5336c38613da6bc35e3b7
[ "MIT" ]
null
null
null
setup.py
Superbil/django-spgateway
b8fa05d32a929a68bbd5336c38613da6bc35e3b7
[ "MIT" ]
1
2021-05-05T13:38:50.000Z
2021-05-05T13:38:50.000Z
from setuptools import setup __version__ = "1.0.0" with open('README.rst') as f: long_description = f.read() setup( name = "django-spgateway", version = __version__, description = 'Django support for Spgateway', keywords = "django, spgateway", url = "https://github.com/superbil/django-spgatew...
31.885714
77
0.615591
from setuptools import setup __version__ = "1.0.0" with open('README.rst') as f: long_description = f.read() setup( name = "django-spgateway", version = __version__, description = 'Django support for Spgateway', keywords = "django, spgateway", url = "https://github.com/superbil/django-spgatew...
true
true
f70ddbc685903894099e80ce95cb99f6054b1268
1,934
py
Python
setup.py
Anagraph/titiler
287201a554523a1cb4258ff41ec52ca2bdc0ac13
[ "MIT" ]
null
null
null
setup.py
Anagraph/titiler
287201a554523a1cb4258ff41ec52ca2bdc0ac13
[ "MIT" ]
null
null
null
setup.py
Anagraph/titiler
287201a554523a1cb4258ff41ec52ca2bdc0ac13
[ "MIT" ]
null
null
null
"""Setup titiler.""" from setuptools import find_packages, setup with open("README.md") as f: long_description = f.read() inst_reqs = [ "brotli-asgi>=1.0.0", "cogeo-mosaic>=3.0.0rc2,<3.1", "fastapi==0.63.0", "geojson-pydantic", "jinja2>=2.11.2,<3.0.0", "morecantile", "numpy", "pyd...
31.704918
91
0.632885
from setuptools import find_packages, setup with open("README.md") as f: long_description = f.read() inst_reqs = [ "brotli-asgi>=1.0.0", "cogeo-mosaic>=3.0.0rc2,<3.1", "fastapi==0.63.0", "geojson-pydantic", "jinja2>=2.11.2,<3.0.0", "morecantile", "numpy", "pydantic", "python-d...
true
true
f70ddbf4298f15f9dd01d4b6682cbe474e824eb3
53,943
py
Python
tools/Vitis-AI-Quantizer/vai_q_pytorch/nndct_shared/nndct_graph/operator_definition.py
hito0512/Vitis-AI
996459fb96cb077ed2f7e789d515893b1cccbc95
[ "Apache-2.0" ]
1
2022-02-17T22:13:23.000Z
2022-02-17T22:13:23.000Z
tools/Vitis-AI-Quantizer/vai_q_pytorch/nndct_shared/nndct_graph/operator_definition.py
hito0512/Vitis-AI
996459fb96cb077ed2f7e789d515893b1cccbc95
[ "Apache-2.0" ]
null
null
null
tools/Vitis-AI-Quantizer/vai_q_pytorch/nndct_shared/nndct_graph/operator_definition.py
hito0512/Vitis-AI
996459fb96cb077ed2f7e789d515893b1cccbc95
[ "Apache-2.0" ]
null
null
null
# # 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 agreed to in writi...
32.692727
107
0.648054
from enum import auto, unique, Enum from typing import Any from nndct_shared.base import NNDCT_OP from nndct_shared.nndct_graph.base_operator import (AutoName, NndctIrAttr, OccurenceType, Operation) from nndct_shared.nndct_graph.base_tensor import Tensor import num...
true
true
f70ddc4c4d19b9cebd3863fd65c6a3c4653e8b84
1,276
py
Python
Gathered CTF writeups/ctf-7867/2020/pbctf/queensarah2/graphic.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
1
2022-03-27T06:00:41.000Z
2022-03-27T06:00:41.000Z
Gathered CTF writeups/ctf-7867/2020/pbctf/queensarah2/graphic.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
null
null
null
Gathered CTF writeups/ctf-7867/2020/pbctf/queensarah2/graphic.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
1
2022-03-27T06:01:42.000Z
2022-03-27T06:01:42.000Z
from string import ascii_lowercase from itertools import product import gizeh import numpy as np import random random.seed(1234) alphabet = ascii_lowercase + "_" bigrams = [''.join(bigram) for bigram in product(alphabet, repeat=2)] random.shuffle(bigrams) scale = 2 width = 512 * scale height = 512 * scale def draw...
22.785714
69
0.579937
from string import ascii_lowercase from itertools import product import gizeh import numpy as np import random random.seed(1234) alphabet = ascii_lowercase + "_" bigrams = [''.join(bigram) for bigram in product(alphabet, repeat=2)] random.shuffle(bigrams) scale = 2 width = 512 * scale height = 512 * scale def draw...
true
true
f70ddcf562c1108c3fc8bc142051e25a3d8ed3e5
5,366
py
Python
src/python/tests/metrics_output_parser_test.py
guoyr/genny
f1164927916163824885e019c2498b1ee2042069
[ "Apache-2.0" ]
null
null
null
src/python/tests/metrics_output_parser_test.py
guoyr/genny
f1164927916163824885e019c2498b1ee2042069
[ "Apache-2.0" ]
null
null
null
src/python/tests/metrics_output_parser_test.py
guoyr/genny
f1164927916163824885e019c2498b1ee2042069
[ "Apache-2.0" ]
null
null
null
# Copyright 2019-present MongoDB 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 agreed to in writ...
34.844156
99
0.432725
import unittest import genny.metrics_output_parser as parser import tests.parser_test_lib as test_lib class GennyOutputParserTest(unittest.TestCase): def raises_parse_error(self, input_str): with self.assertRaises(parser.ParseError): test_lib.parse_string(input_str) def test_no_clocks(...
true
true
f70dddfd53fd99825c38c174683fd5bfb96c6f8f
15,270
py
Python
nets/block.py
tarepan/mutated_DVC
7fbbf4754285944387ec5d5108ed5f3d473d4f81
[ "MIT" ]
null
null
null
nets/block.py
tarepan/mutated_DVC
7fbbf4754285944387ec5d5108ed5f3d473d4f81
[ "MIT" ]
null
null
null
nets/block.py
tarepan/mutated_DVC
7fbbf4754285944387ec5d5108ed5f3d473d4f81
[ "MIT" ]
1
2019-06-05T16:03:32.000Z
2019-06-05T16:03:32.000Z
import math import chainer import chainer.functions as F import chainer.links as L import numpy as np from .sn_convolution_2d import SNConvolution2D, SNDeconvolution2D from .sn_linear import SNLinear def _upsample(x): h, w = x.shape[2:] return F.unpooling_2d(x, 2, outsize=(h * 2, w * 2)) def _downsample(x): ...
40.07874
134
0.583628
import math import chainer import chainer.functions as F import chainer.links as L import numpy as np from .sn_convolution_2d import SNConvolution2D, SNDeconvolution2D from .sn_linear import SNLinear def _upsample(x): h, w = x.shape[2:] return F.unpooling_2d(x, 2, outsize=(h * 2, w * 2)) def _downsample(x): ...
true
true
f70de03bca9d19e38a77151c1eec1f1ef25fdc85
4,610
py
Python
test/functional/combine_logs.py
swyft-project/swyft-core
d4575beda0936b0f0a5780610ba6e09cd993add3
[ "MIT" ]
3
2019-09-29T10:50:37.000Z
2020-07-01T23:08:33.000Z
test/functional/combine_logs.py
swyft-project/swyft-core
d4575beda0936b0f0a5780610ba6e09cd993add3
[ "MIT" ]
12
2019-09-09T16:19:47.000Z
2019-09-26T13:18:10.000Z
test/functional/combine_logs.py
swyft-project/swyft-core
d4575beda0936b0f0a5780610ba6e09cd993add3
[ "MIT" ]
1
2019-10-13T10:30:17.000Z
2019-10-13T10:30:17.000Z
#!/usr/bin/env python3 """Combine logs from multiple swyft nodes as well as the test_framework log. This streams the combined log output to stdout. Use combine_logs.py > outputfile to write to an outputfile.""" import argparse from collections import defaultdict, namedtuple import heapq import itertools import os imp...
40.086957
196
0.618221
import argparse from collections import defaultdict, namedtuple import heapq import itertools import os import re import sys TIMESTAMP_PATTERN = re.compile(r"^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{6}Z") LogEvent = namedtuple('LogEvent', ['timestamp', 'source', 'event']) def main(): parser = argparse.Argument...
true
true
f70de0d0901635161785158d2542852de107f55a
7,179
py
Python
kubernetes/client/models/v1beta1_pod_security_policy_list.py
henrywu2019/python
fb7214144395c05349e70a58ea129576f6b11fc4
[ "Apache-2.0" ]
4,417
2018-01-13T04:30:48.000Z
2022-03-31T15:33:59.000Z
kubernetes/client/models/v1beta1_pod_security_policy_list.py
henrywu2019/python
fb7214144395c05349e70a58ea129576f6b11fc4
[ "Apache-2.0" ]
1,414
2018-01-12T19:31:56.000Z
2022-03-31T22:01:02.000Z
kubernetes/client/models/v1beta1_pod_security_policy_list.py
henrywu2019/python
fb7214144395c05349e70a58ea129576f6b11fc4
[ "Apache-2.0" ]
2,854
2018-01-14T08:57:33.000Z
2022-03-31T01:41:56.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: release-1.21 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import si...
34.849515
312
0.63839
import pprint import re import six from kubernetes.client.configuration import Configuration class V1beta1PodSecurityPolicyList(object): openapi_types = { 'api_version': 'str', 'items': 'list[V1beta1PodSecurityPolicy]', 'kind': 'str', 'metadata': 'V1ListMeta' } attr...
true
true
f70de19e3f87e9d3723781f6cf1e2ae3fb38361b
13,640
py
Python
code/main.py
autonomousvision/handheld_svbrdf_geometry
41218b0546e7386229b87c94d528cd193127acff
[ "MIT" ]
53
2020-03-29T04:15:44.000Z
2022-03-19T02:49:12.000Z
code/main.py
autonomousvision/handheld_svbrdf_geometry
41218b0546e7386229b87c94d528cd193127acff
[ "MIT" ]
3
2020-07-13T12:54:58.000Z
2020-11-18T15:50:04.000Z
code/main.py
autonomousvision/handheld_svbrdf_geometry
41218b0546e7386229b87c94d528cd193127acff
[ "MIT" ]
7
2020-06-16T14:42:48.000Z
2021-04-13T04:34:52.000Z
""" Copyright (c) 2020 Autonomous Vision Group (AVG), Max Planck Institute for Intelligent Systems, Tuebingen, Germany 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, includin...
37.888889
114
0.615396
import json import os from tqdm import tqdm import cv2 import torch import itertools from data import DataAdapterFactory from experiment_state import ExperimentState from experiment_settings import ExperimentSettings, recursive_dict_update from optimization import optimize from higo import higo_baseline import genera...
true
true
f70de1a155e0edcd66535bceb99ec7baf0f1e9b8
6,705
py
Python
src/datasets/decorators.py
KMarkert/RHEAS
453f24ef635ca5a6338d3e2b19f215835dd1f10d
[ "MIT" ]
81
2015-12-10T01:46:23.000Z
2022-01-28T18:55:34.000Z
src/datasets/decorators.py
kandread/RHEAS
453f24ef635ca5a6338d3e2b19f215835dd1f10d
[ "MIT" ]
111
2015-12-19T22:29:04.000Z
2019-06-13T17:08:25.000Z
src/datasets/decorators.py
nasa/RHEAS
453f24ef635ca5a6338d3e2b19f215835dd1f10d
[ "MIT" ]
58
2015-12-10T07:23:06.000Z
2021-03-03T17:57:08.000Z
""" Definition for RHEAS Datasets decorators. .. module:: datasets.decorators :synopsis: Definition of the Datasets decorators .. moduleauthor:: Kostas Andreadis <kandread@jpl.nasa.gov> """ from functools import wraps import tempfile import shutil import urllib from datetime import datetime from ftplib import FT...
35.855615
111
0.538702
from functools import wraps import tempfile import shutil import urllib from datetime import datetime from ftplib import FTP import re from pydap.client import open_url import netCDF4 as netcdf4 import numpy as np from osgeo import gdal import datasets def resetDatetime(dt): return datetime(dt.year, dt.month, dt...
true
true
f70de2889f7d7dccb5ca34957060cc783c397d36
8,570
py
Python
openmdao/solvers/tests/test_solver_debug_print.py
LeeElvis/OpenMDAO
e9e002054c0ecad7467da2a7bbb8fdf68fccfb8c
[ "Apache-2.0" ]
null
null
null
openmdao/solvers/tests/test_solver_debug_print.py
LeeElvis/OpenMDAO
e9e002054c0ecad7467da2a7bbb8fdf68fccfb8c
[ "Apache-2.0" ]
null
null
null
openmdao/solvers/tests/test_solver_debug_print.py
LeeElvis/OpenMDAO
e9e002054c0ecad7467da2a7bbb8fdf68fccfb8c
[ "Apache-2.0" ]
null
null
null
"""Tests the `debug_print` option for Nonlinear solvers.""" import os import re import sys import shutil import tempfile import unittest from distutils.version import LooseVersion from io import StringIO import numpy as np import openmdao.api as om from openmdao.test_suite.scripts.circuit_analysis import Circuit f...
32.339623
185
0.597316
import os import re import sys import shutil import tempfile import unittest from distutils.version import LooseVersion from io import StringIO import numpy as np import openmdao.api as om from openmdao.test_suite.scripts.circuit_analysis import Circuit from openmdao.utils.general_utils import run_model from openm...
true
true
f70de34bdaf71e8855fb3a4c101e5c8f21bcd3cd
5,245
py
Python
lib/tool_shed/util/basic_util.py
mysticmirages/GalaxyProject
6a47d2d3a7f27b659e5de5fb1b37c7c1f9d04302
[ "CC-BY-3.0" ]
null
null
null
lib/tool_shed/util/basic_util.py
mysticmirages/GalaxyProject
6a47d2d3a7f27b659e5de5fb1b37c7c1f9d04302
[ "CC-BY-3.0" ]
null
null
null
lib/tool_shed/util/basic_util.py
mysticmirages/GalaxyProject
6a47d2d3a7f27b659e5de5fb1b37c7c1f9d04302
[ "CC-BY-3.0" ]
null
null
null
import logging import os import shutil import sys from string import Template from galaxy import eggs eggs.require( 'MarkupSafe' ) import markupsafe from galaxy.util import nice_size, unicodify log = logging.getLogger( __name__ ) CHUNK_SIZE = 2 ** 20 # 1Mb INSTALLATION_LOG = 'INSTALLATION.log' # Set no activity ti...
34.058442
129
0.701621
import logging import os import shutil import sys from string import Template from galaxy import eggs eggs.require( 'MarkupSafe' ) import markupsafe from galaxy.util import nice_size, unicodify log = logging.getLogger( __name__ ) CHUNK_SIZE = 2 ** 20 INSTALLATION_LOG = 'INSTALLATION.log' NO_OUTPUT_TIMEOUT = 3600.0...
false
true
f70de46ec15d5e1242f26c7edce5421e4886e55d
11,741
py
Python
tests/training/trainer_test.py
vidurj/allennlp
0aec18ed8e076357dcfe0e89bb4078485e1e4e19
[ "Apache-2.0" ]
1
2018-06-14T10:11:20.000Z
2018-06-14T10:11:20.000Z
tests/training/trainer_test.py
Uppaal/allennlp
5b513d4f7c7365ac33b3cbc557506b46a9b50450
[ "Apache-2.0" ]
null
null
null
tests/training/trainer_test.py
Uppaal/allennlp
5b513d4f7c7365ac33b3cbc557506b46a9b50450
[ "Apache-2.0" ]
1
2022-03-27T19:45:13.000Z
2022-03-27T19:45:13.000Z
# pylint: disable=invalid-name import glob import os import re import time import torch import pytest from allennlp.common.testing import AllenNlpTestCase from allennlp.training.trainer import Trainer, sparse_clip_norm, is_sparse from allennlp.data import Vocabulary from allennlp.common.params import Params from alle...
46.964
111
0.597905
import glob import os import re import time import torch import pytest from allennlp.common.testing import AllenNlpTestCase from allennlp.training.trainer import Trainer, sparse_clip_norm, is_sparse from allennlp.data import Vocabulary from allennlp.common.params import Params from allennlp.common.checks import Confi...
true
true
f70de471db03751013d05958de5d7e298c464dd4
9,919
py
Python
tests/store/artifact/test_ftp_artifact_repo.py
iPieter/kiwi
76b66872fce68873809a0dea112e2ed552ae5b63
[ "Apache-2.0" ]
null
null
null
tests/store/artifact/test_ftp_artifact_repo.py
iPieter/kiwi
76b66872fce68873809a0dea112e2ed552ae5b63
[ "Apache-2.0" ]
1
2021-01-24T13:34:51.000Z
2021-01-24T13:34:51.000Z
tests/store/artifact/test_ftp_artifact_repo.py
iPieter/kiwi
76b66872fce68873809a0dea112e2ed552ae5b63
[ "Apache-2.0" ]
null
null
null
# pylint: disable=redefined-outer-name from mock import MagicMock import pytest import posixpath import ftplib from ftplib import FTP from kiwi.store.artifact.artifact_repository_registry import get_artifact_repository from kiwi.store.artifact.ftp_artifact_repo import FTPArtifactRepository @pytest.fixture def ftp_mo...
32.953488
98
0.713177
from mock import MagicMock import pytest import posixpath import ftplib from ftplib import FTP from kiwi.store.artifact.artifact_repository_registry import get_artifact_repository from kiwi.store.artifact.ftp_artifact_repo import FTPArtifactRepository @pytest.fixture def ftp_mock(): return MagicMock(autospec=FTP...
true
true
f70de6df8415c16650561737d8ed1470b7a3654c
2,082
py
Python
inference.py
speakupai/ml_deployment
f80735049de8111b2415608046bb2b0af57fcdd3
[ "MIT" ]
1
2021-03-15T19:09:50.000Z
2021-03-15T19:09:50.000Z
inference.py
speakupai/ml_deployment
f80735049de8111b2415608046bb2b0af57fcdd3
[ "MIT" ]
null
null
null
inference.py
speakupai/ml_deployment
f80735049de8111b2415608046bb2b0af57fcdd3
[ "MIT" ]
1
2022-03-19T15:50:55.000Z
2022-03-19T15:50:55.000Z
import os import librosa import numpy as np import soundfile as sf import torch from tqdm import tqdm from utils import data, spectrogram, spectrogram_clean from models.hifi_gan import Generator from models.wavenet import WaveNet from utils.hparams import hparams as hp def inference(audio_clip): original_file =...
36.526316
78
0.590778
import os import librosa import numpy as np import soundfile as sf import torch from tqdm import tqdm from utils import data, spectrogram, spectrogram_clean from models.hifi_gan import Generator from models.wavenet import WaveNet from utils.hparams import hparams as hp def inference(audio_clip): original_file =...
true
true
f70de75d5798c0cd75fe044ca0665dbad0c8a799
1,796
py
Python
dbaasp_api_helper_libraries/python/request/SearchRequest.py
reymond-group/MLpeptide
675b4777bcaaf09eca21173c15c12450ff515470
[ "MIT" ]
14
2021-03-19T11:52:56.000Z
2022-02-03T13:11:02.000Z
dbaasp_api_helper_libraries/python/request/SearchRequest.py
reymond-group/MLpeptide
675b4777bcaaf09eca21173c15c12450ff515470
[ "MIT" ]
null
null
null
dbaasp_api_helper_libraries/python/request/SearchRequest.py
reymond-group/MLpeptide
675b4777bcaaf09eca21173c15c12450ff515470
[ "MIT" ]
6
2021-03-21T01:28:24.000Z
2021-12-15T09:41:42.000Z
from AbstractRequest import AbstractRequest class SearchRequest(AbstractRequest): name = "" sequence = "" sequence_option = "" sequence_length = "" n_terminus_id = "" c_terminus_id = "" target_group_id = "" target_object_id = "" synthesis_type = "" kingdom_id = "" bond_id =...
35.215686
96
0.662584
from AbstractRequest import AbstractRequest class SearchRequest(AbstractRequest): name = "" sequence = "" sequence_option = "" sequence_length = "" n_terminus_id = "" c_terminus_id = "" target_group_id = "" target_object_id = "" synthesis_type = "" kingdom_id = "" bond_id =...
true
true
f70dea4e11c5c3e043f6e1d93223b8c0819cd935
508
py
Python
examples/reporting/plotly_reporting.py
noklam/trains
70536544ed5e2b9aac8576ef2eaaef31c99ca670
[ "Apache-2.0" ]
1
2020-11-19T14:00:40.000Z
2020-11-19T14:00:40.000Z
examples/reporting/plotly_reporting.py
aliceUnhinged613/trains
8ec6bba4d91104a2bdd2e537bec21078529540e0
[ "Apache-2.0" ]
2
2020-07-05T08:28:40.000Z
2020-08-11T13:32:49.000Z
examples/reporting/plotly_reporting.py
aliceUnhinged613/trains
8ec6bba4d91104a2bdd2e537bec21078529540e0
[ "Apache-2.0" ]
null
null
null
# TRAINS - Example of Plotly integration and reporting # from trains import Task import plotly.express as px task = Task.init('examples', 'plotly reporting') print('reporting plotly figures') # Iris dataset df = px.data.iris() # create complex plotly figure fig = px.scatter(df, x="sepal_width", y="sepal_length", c...
24.190476
114
0.740157
from trains import Task import plotly.express as px task = Task.init('examples', 'plotly reporting') print('reporting plotly figures') df = px.data.iris() fig = px.scatter(df, x="sepal_width", y="sepal_length", color="species", marginal_y="rug", marginal_x="histogram") task.get_logger().report_plotly(title="iris"...
true
true
f70deba878d97e20aa8d572289554d7a64e18ff4
1,543
py
Python
xlsxwriter/test/comparison/test_optimize10.py
eddiechapman/XlsxWriter
c636117ab30e64e4b7b824c9105595c42887c2c9
[ "BSD-2-Clause-FreeBSD" ]
1
2021-03-27T11:14:47.000Z
2021-03-27T11:14:47.000Z
xlsxwriter/test/comparison/test_optimize10.py
xiaolanmeng86/XlsxWriter
6c3ea23a410e8216eab8f5751e5544ffb444b3da
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/test/comparison/test_optimize10.py
xiaolanmeng86/XlsxWriter
6c3ea23a410e8216eab8f5751e5544ffb444b3da
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org # from ..excel_comparison_test import ExcelComparisonTest import codecs from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparison...
28.054545
93
0.594945
from ..excel_comparison_test import ExcelComparisonTest import codecs from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): def setUp(self): self.set_filename('optimize10.xlsx') self.set_text_file('unicode_polish_utf8.txt') def test_create_file(self): ...
true
true
f70dec16ef67a8c588c37a51e5fa25ca0a3c4db9
4,614
py
Python
tebless/widgets/menu.py
Akhail/Tebless
87faff5547f168d0cf2d5caaf313c1efe1c19950
[ "MIT" ]
5
2017-09-20T02:12:25.000Z
2019-10-22T14:12:07.000Z
tebless/widgets/menu.py
mdbetancourt/Tebless
87faff5547f168d0cf2d5caaf313c1efe1c19950
[ "MIT" ]
3
2021-06-14T14:20:53.000Z
2021-11-15T17:47:37.000Z
tebless/widgets/menu.py
Akhail/Tebless
87faff5547f168d0cf2d5caaf313c1efe1c19950
[ "MIT" ]
1
2021-04-13T14:03:53.000Z
2021-04-13T14:03:53.000Z
# Copyright (c) 2017 Michel Betancourt # # This software is released under the MIT License. # https://opensource.org/licenses/MIT """ menu.py Created by Michel Betancourt on 2017. Copyright (c) 2017 MIT. All rights reserved. """ from math import floor, ceil from tebless.utils.styles import red from teb...
29.767742
75
0.552016
from math import floor, ceil from tebless.utils.styles import red from tebless.devs import Widget, echo from tebless.utils.keyboard import KEY_DOWN, KEY_UP __all__ = ['Menu'] class Menu(Widget): def __init__(self, items=None, *args, **kwargs): super().__init__(items=items, on_...
true
true
f70decdb295edbb7dae9d6cc7d9c4abef0653a3b
3,479
py
Python
trackers/tracking/utils/io.py
SvipRepetitionCounting/AlphaPose
0cc38e4c1d6f08ea9c34c720ae188506d3de6eb6
[ "Apache-2.0" ]
6,306
2018-02-04T11:14:11.000Z
2022-03-31T13:36:53.000Z
trackers/tracking/utils/io.py
SvipRepetitionCounting/AlphaPose
0cc38e4c1d6f08ea9c34c720ae188506d3de6eb6
[ "Apache-2.0" ]
982
2018-02-05T03:06:49.000Z
2022-03-31T16:58:57.000Z
trackers/tracking/utils/io.py
SvipRepetitionCounting/AlphaPose
0cc38e4c1d6f08ea9c34c720ae188506d3de6eb6
[ "Apache-2.0" ]
1,855
2018-02-04T11:27:12.000Z
2022-03-31T17:25:53.000Z
import os from typing import Dict import numpy as np from utils.log import logger def write_results(filename, results_dict: Dict, data_type: str): if not filename: return path = os.path.dirname(filename) if not os.path.exists(path): os.makedirs(path) if data_type in ('mot', 'mcmot', ...
31.0625
119
0.500431
import os from typing import Dict import numpy as np from utils.log import logger def write_results(filename, results_dict: Dict, data_type: str): if not filename: return path = os.path.dirname(filename) if not os.path.exists(path): os.makedirs(path) if data_type in ('mot', 'mcmot', ...
true
true
f70ded31226ba5c1563012f47f50290515bf741e
1,738
py
Python
src/day_2/day_2_02/00_relax_homebrew.py
BlockResearchGroup/AAG2018
f4d1188798593b4aec019aa8bfe091305330b374
[ "MIT" ]
1
2018-10-01T16:16:21.000Z
2018-10-01T16:16:21.000Z
src/day_2/day_2_02/00_relax_homebrew.py
compas-Workshops/AAG2018
f4d1188798593b4aec019aa8bfe091305330b374
[ "MIT" ]
null
null
null
src/day_2/day_2_02/00_relax_homebrew.py
compas-Workshops/AAG2018
f4d1188798593b4aec019aa8bfe091305330b374
[ "MIT" ]
2
2018-09-22T22:12:11.000Z
2018-11-30T10:31:00.000Z
import rhinoscriptsyntax as rs from compas.datastructures import Mesh from compas.geometry import add_vectors from compas.geometry import centroid_points from compas.geometry import subtract_vectors from compas.geometry import mesh_smooth_area from compas.geometry import mesh_smooth_centroid from compas_rhino.helpe...
31.035714
73
0.613349
import rhinoscriptsyntax as rs from compas.datastructures import Mesh from compas.geometry import add_vectors from compas.geometry import centroid_points from compas.geometry import subtract_vectors from compas.geometry import mesh_smooth_area from compas.geometry import mesh_smooth_centroid from compas_rhino.helpe...
true
true
f70deec4af033ae1ded15fd2a71343bb676b5a82
1,641
py
Python
supercheckers/journals.py
mikegoodspeed/supercheckers-python
220c271913cedfd5a816b8a2d220e92591c3d936
[ "MIT" ]
null
null
null
supercheckers/journals.py
mikegoodspeed/supercheckers-python
220c271913cedfd5a816b8a2d220e92591c3d936
[ "MIT" ]
null
null
null
supercheckers/journals.py
mikegoodspeed/supercheckers-python
220c271913cedfd5a816b8a2d220e92591c3d936
[ "MIT" ]
null
null
null
import copy from typing import List, Optional, Tuple from . import boards, enums, moves JournalEntry = Tuple[Optional[moves.Move], boards.Board] class Journal: """A journal of all previous Move and Board states.""" def __init__(self, board: boards.Board): """ Create a journal. :par...
24.132353
86
0.585009
import copy from typing import List, Optional, Tuple from . import boards, enums, moves JournalEntry = Tuple[Optional[moves.Move], boards.Board] class Journal: def __init__(self, board: boards.Board): self._log: List[JournalEntry] = [(None, board.copy())] @property def current_turn_number(self...
true
true
f70deeeb8ce7aa5229c9aa79aa8d7741be5bb81b
3,286
py
Python
orchestra/contrib/orchestration/migrations/0009_rename_route_async_run_async.py
RubenPX/django-orchestra
5ab4779e1ae12ec99569d682601b7810587ed381
[ "Unlicense" ]
null
null
null
orchestra/contrib/orchestration/migrations/0009_rename_route_async_run_async.py
RubenPX/django-orchestra
5ab4779e1ae12ec99569d682601b7810587ed381
[ "Unlicense" ]
4
2021-01-30T14:26:46.000Z
2022-03-18T16:28:39.000Z
orchestra/contrib/orchestration/migrations/0009_rename_route_async_run_async.py
RubenPX/django-orchestra
5ab4779e1ae12ec99569d682601b7810587ed381
[ "Unlicense" ]
3
2022-02-06T04:35:59.000Z
2022-03-17T00:40:17.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2021-03-30 10:49 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('orchestration', '0008_auto_20190805_1134'), ] operations = [ migrations.Ren...
126.384615
2,740
0.686549
from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('orchestration', '0008_auto_20190805_1134'), ] operations = [ migrations.RenameField( model_name='route', old_name='async', ...
true
true
f70df10cc910b834bf139d78539754aab65713f2
10,670
py
Python
test/test_bregman.py
rturrisige/POT
c5039bcafde999114283f7e59fb03e176027d740
[ "MIT" ]
null
null
null
test/test_bregman.py
rturrisige/POT
c5039bcafde999114283f7e59fb03e176027d740
[ "MIT" ]
null
null
null
test/test_bregman.py
rturrisige/POT
c5039bcafde999114283f7e59fb03e176027d740
[ "MIT" ]
null
null
null
"""Tests for module bregman on OT with bregman projections """ # Author: Remi Flamary <remi.flamary@unice.fr> # Kilian Fatras <kilian.fatras@irisa.fr> # # License: MIT License import numpy as np import ot import pytest def test_sinkhorn(): # test sinkhorn n = 100 rng = np.random.RandomState(0) ...
31.382353
119
0.625773
import numpy as np import ot import pytest def test_sinkhorn(): n = 100 rng = np.random.RandomState(0) x = rng.randn(n, 2) u = ot.utils.unif(n) M = ot.dist(x, x) G = ot.sinkhorn(u, u, M, 1, stopThr=1e-10) np.testing.assert_allclose( u, G.sum(1), atol=1e-05) np.te...
true
true
f70df122acd2a8ee313bdd36f2a52d143735fdcf
7,347
py
Python
blog/views.py
maretaatmadja/django_patronus
fe34e1a7c40b535165ef4e752adb61e4c41c32ae
[ "MIT" ]
null
null
null
blog/views.py
maretaatmadja/django_patronus
fe34e1a7c40b535165ef4e752adb61e4c41c32ae
[ "MIT" ]
8
2021-03-30T13:46:40.000Z
2022-03-12T00:35:09.000Z
blog/views.py
maretaatmadja/django_patronus
fe34e1a7c40b535165ef4e752adb61e4c41c32ae
[ "MIT" ]
null
null
null
from django.shortcuts import render, get_object_or_404 from .models import Post, Comment from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from .forms import EmailPostForm, CommentForm, SearchForm from django.core.mail import send_mail from taggit.models import Tag from django.db.models import Co...
37.871134
179
0.670206
from django.shortcuts import render, get_object_or_404 from .models import Post, Comment from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from .forms import EmailPostForm, CommentForm, SearchForm from django.core.mail import send_mail from taggit.models import Tag from django.db.models import Co...
true
true
f70df1259d7f6ab6e9e3d00d46b7fa3520b97d6f
5,681
py
Python
asSeq2Int.py
chriskhng/asSeq2Int
d8b6b6c58561ec4e3f91fc35dc56e4d84cc1d0fc
[ "MIT" ]
null
null
null
asSeq2Int.py
chriskhng/asSeq2Int
d8b6b6c58561ec4e3f91fc35dc56e4d84cc1d0fc
[ "MIT" ]
null
null
null
asSeq2Int.py
chriskhng/asSeq2Int
d8b6b6c58561ec4e3f91fc35dc56e4d84cc1d0fc
[ "MIT" ]
null
null
null
## - ## - asSeq2Int ## - ## - Created by Chris Ng 20201214 ## - input the user SoI here: - ## ## - post-CIBR version will prompt the user in the terminal for an SoI user_input_SoI = "mxxt" ## - The following can be used to test the code ## SxSxSSXXSXSS ## s.sXs ## S.s ## m.xT ## - #### Initialize empty lists lst_raw...
47.341667
114
0.701637
user_input_SoI = "mxxt" lst_rawFASTA = [] proteinSeqOnly = [] lst_FASTAentry = [] lst_masterFASTA = [] lst_results = [['Protein Name', 'Sequence Hit', 'Position of Hit']] with open('dummy1.FASTA') as FASTA_file: FASTA_data = FASTA_file.read() lst_rawFASTA = FASTA_data.split('*\n>') for protein_entry in lst_r...
true
true
f70df2368816798a2248ee008d35ad3b0736fda8
4,715
py
Python
src/tensorforce/tensorforce/core/optimizers/optimizer.py
linus87/drl_shape_optimization
39e6b66bd5b70dfce07e145aafe815071bc1b6fe
[ "MIT" ]
17
2020-12-28T16:25:47.000Z
2022-03-27T18:28:44.000Z
src/tensorforce/tensorforce/core/optimizers/optimizer.py
linus87/drl_shape_optimization
39e6b66bd5b70dfce07e145aafe815071bc1b6fe
[ "MIT" ]
2
2021-04-18T03:40:02.000Z
2022-01-24T08:40:10.000Z
src/tensorforce/tensorforce/core/optimizers/optimizer.py
linus87/drl_shape_optimization
39e6b66bd5b70dfce07e145aafe815071bc1b6fe
[ "MIT" ]
8
2020-12-23T05:59:52.000Z
2022-03-28T12:06:35.000Z
# Copyright 2018 Tensorforce Team. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
40.299145
99
0.639449
import tensorflow as tf from tensorforce import TensorforceError, util from tensorforce.core import Module class Optimizer(Module): def __init__(self, name, summary_labels=None): super().__init__(name=name, l2_regularization=0.0, summary_labels=summary_labels) def tf_step(self, variables, **kwargs...
true
true
f70df3e61f4e512407213856daa0ae3a575ea648
415
py
Python
sjfxjc/foundations-for-analytics-with-python-master/csv/pandas_value_meets_condition.py
SaronZhou/python
40d73b49b9b17542c73a3c09d28e479d2fefcde3
[ "MIT" ]
null
null
null
sjfxjc/foundations-for-analytics-with-python-master/csv/pandas_value_meets_condition.py
SaronZhou/python
40d73b49b9b17542c73a3c09d28e479d2fefcde3
[ "MIT" ]
null
null
null
sjfxjc/foundations-for-analytics-with-python-master/csv/pandas_value_meets_condition.py
SaronZhou/python
40d73b49b9b17542c73a3c09d28e479d2fefcde3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import pandas as pd import sys input_file = sys.argv[1] output_file = sys.argv[2] data_frame = pd.read_csv(input_file) data_frame['Cost'] = data_frame['Cost'].str.strip('$').astype(float) data_frame_value_meets_condition = data_frame.loc[(data_frame['Supplier Name']\ .str.contains('Z')) | (dat...
29.642857
79
0.749398
import pandas as pd import sys input_file = sys.argv[1] output_file = sys.argv[2] data_frame = pd.read_csv(input_file) data_frame['Cost'] = data_frame['Cost'].str.strip('$').astype(float) data_frame_value_meets_condition = data_frame.loc[(data_frame['Supplier Name']\ .str.contains('Z')) | (data_frame['Cost'] > 600.0...
true
true
f70df46d75e27c5da8419f866a2137f10d639440
1,708
py
Python
superglue_data_splitting.py
xuqiantong/pet
2287b6e1cea7f3cc1c8a3ba3f07c470a708f10f3
[ "Apache-2.0" ]
null
null
null
superglue_data_splitting.py
xuqiantong/pet
2287b6e1cea7f3cc1c8a3ba3f07c470a708f10f3
[ "Apache-2.0" ]
null
null
null
superglue_data_splitting.py
xuqiantong/pet
2287b6e1cea7f3cc1c8a3ba3f07c470a708f10f3
[ "Apache-2.0" ]
null
null
null
import os import random import shutil # TASK_DEV_SIZES = {"boolq": 500, "cb": 50, "copa": 50, "multirc": 50, "record": 7500, "rte": 250, "wic": 100, "wsc": 50} TASK_DEV_SIZES = {"BoolQ": 500, "CB": 50, "COPA": 50, "MultiRC": 50, "ReCoRD": 7500, "RTE": 250, "WiC": 100, "WSC": 50} def file_len(fname): count = 0 ...
39.72093
121
0.584309
import os import random import shutil TASK_DEV_SIZES = {"BoolQ": 500, "CB": 50, "COPA": 50, "MultiRC": 50, "ReCoRD": 7500, "RTE": 250, "WiC": 100, "WSC": 50} def file_len(fname): count = 0 with open(fname) as file: for line in file: if not line: break else: ...
true
true
f70df4d4be9ecd46e198b7ef771b1a26644c0a2a
9,417
py
Python
src/ui/main_window.py
xiqiuyimeng/Dubbo-test-client
4c7b76767fc5163d086fc5a4a7fc842704e10978
[ "Apache-2.0" ]
null
null
null
src/ui/main_window.py
xiqiuyimeng/Dubbo-test-client
4c7b76767fc5163d086fc5a4a7fc842704e10978
[ "Apache-2.0" ]
null
null
null
src/ui/main_window.py
xiqiuyimeng/Dubbo-test-client
4c7b76767fc5163d086fc5a4a7fc842704e10978
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from PyQt5 import QtWidgets, QtCore from PyQt5.QtCore import Qt from PyQt5.QtGui import QCursor from PyQt5.QtWidgets import QVBoxLayout, QToolBar, QSplitter from src.constant.conn_dialog_constant import ADD_CONN_MENU, EDIT_CONN_MENU from src.constant.main_constant import LOCATION_BUTTON, TAB_ID...
42.040179
111
0.693533
from PyQt5 import QtWidgets, QtCore from PyQt5.QtCore import Qt from PyQt5.QtGui import QCursor from PyQt5.QtWidgets import QVBoxLayout, QToolBar, QSplitter from src.constant.conn_dialog_constant import ADD_CONN_MENU, EDIT_CONN_MENU from src.constant.main_constant import LOCATION_BUTTON, TAB_ID_SEPARATOR, TREE_TOP_TEX...
true
true
f70df560d3b7759360d9cd45c31fd4d6debd635b
2,441
py
Python
simshop/builders/IcarusVerilog.py
inneralien/SimShop
95d0d4fa66a4d20cc2552fa1444915f36ad73926
[ "BSD-2-Clause-FreeBSD" ]
1
2020-07-27T05:05:21.000Z
2020-07-27T05:05:21.000Z
simshop/builders/IcarusVerilog.py
inneralien/SimShop
95d0d4fa66a4d20cc2552fa1444915f36ad73926
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
simshop/builders/IcarusVerilog.py
inneralien/SimShop
95d0d4fa66a4d20cc2552fa1444915f36ad73926
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# Copyright 2010-2011, RTLCores. All rights reserved. # http://rtlcores.com # See LICENSE.txt from VerilogSim import VerilogSim class IcarusVerilog(VerilogSim): """ Icarus Verilog class to build a compile command and a simulation command. Inherits VerilogSim Defaults: TIMESCALE : 1ns / 10ps...
36.432836
75
0.526424
from VerilogSim import VerilogSim class IcarusVerilog(VerilogSim): def __init__(self, cfg): VerilogSim.__init__(self, cfg) self.cfg = cfg self['builddir'] = ['run'] self['warn'] = ['all'] self['warn'].cmd = lambda x: self._prepend('-W', x) self['out...
true
true
f70df5d1b2bf6b206c068257215e8e2edb3034f7
154
py
Python
music_controller/spotify/credentials.py
jinlee487/Music-Controller-Web-App-Tutorial
07216d0bdcb86e0537ffd0ca655dfedcef713fee
[ "Apache-2.0" ]
null
null
null
music_controller/spotify/credentials.py
jinlee487/Music-Controller-Web-App-Tutorial
07216d0bdcb86e0537ffd0ca655dfedcef713fee
[ "Apache-2.0" ]
null
null
null
music_controller/spotify/credentials.py
jinlee487/Music-Controller-Web-App-Tutorial
07216d0bdcb86e0537ffd0ca655dfedcef713fee
[ "Apache-2.0" ]
null
null
null
CLIENT_ID = "a126d5791c694dac84956d88bdeab74f" CLIENT_SECRET = "18f7ba3185ae43df90092e87aedf0b31" REDIRECT_URI = "http://127.0.01:8000/spotify/redirect"
30.8
54
0.824675
CLIENT_ID = "a126d5791c694dac84956d88bdeab74f" CLIENT_SECRET = "18f7ba3185ae43df90092e87aedf0b31" REDIRECT_URI = "http://127.0.01:8000/spotify/redirect"
true
true
f70df74781bebfd64b66722de04dbed6a5678a18
4,168
py
Python
spacy/tests/pipeline/test_spancat.py
yohasebe/spaCy
3dcb747980303457c662d668d5a0735c9efc9b72
[ "BSD-3-Clause", "MIT" ]
null
null
null
spacy/tests/pipeline/test_spancat.py
yohasebe/spaCy
3dcb747980303457c662d668d5a0735c9efc9b72
[ "BSD-3-Clause", "MIT" ]
null
null
null
spacy/tests/pipeline/test_spancat.py
yohasebe/spaCy
3dcb747980303457c662d668d5a0735c9efc9b72
[ "BSD-3-Clause", "MIT" ]
null
null
null
from numpy.testing import assert_equal from spacy.language import Language from spacy.training import Example from spacy.util import fix_random_seed, registry SPAN_KEY = "labeled_spans" TRAIN_DATA = [ ("Who is Shaka Khan?", {"spans": {SPAN_KEY: [(7, 17, "PERSON")]}}), ( "I like London and Berlin.", ...
28.944444
85
0.497601
from numpy.testing import assert_equal from spacy.language import Language from spacy.training import Example from spacy.util import fix_random_seed, registry SPAN_KEY = "labeled_spans" TRAIN_DATA = [ ("Who is Shaka Khan?", {"spans": {SPAN_KEY: [(7, 17, "PERSON")]}}), ( "I like London and Berlin.", ...
true
true
f70df7b09fa8426339edb7e899978fac26c78843
1,039
py
Python
officetimer/timer_controller.py
adityakamble49/office-timer
eff7928c7c0b084d89aad33d9ce31f866dcec295
[ "Apache-2.0" ]
1
2020-12-30T14:42:13.000Z
2020-12-30T14:42:13.000Z
officetimer/timer_controller.py
adityakamble49/office-timer
eff7928c7c0b084d89aad33d9ce31f866dcec295
[ "Apache-2.0" ]
null
null
null
officetimer/timer_controller.py
adityakamble49/office-timer
eff7928c7c0b084d89aad33d9ce31f866dcec295
[ "Apache-2.0" ]
null
null
null
import time from optparse import OptionParser def build_option_parser(): parser = OptionParser() parser.add_option("-t", "--time", dest="given_time", type="string", help="Use HH:MM format for timer") return parser.parse_args() def countdown_timer(given_time_seconds): while given_time_seconds: ...
29.685714
106
0.651588
import time from optparse import OptionParser def build_option_parser(): parser = OptionParser() parser.add_option("-t", "--time", dest="given_time", type="string", help="Use HH:MM format for timer") return parser.parse_args() def countdown_timer(given_time_seconds): while given_time_seconds: ...
true
true
f70df9eae0b23ad5c6e4e7748075f9c9e72b18c2
2,394
py
Python
JPHacks2019-final/JPHacks2019-demofinal/VMforBeginner/VMforBeginnerApp/forms.py
jphacks/FK_1905
37ac7d2373c372d537e5ee4d7ffa441fe10c7770
[ "MIT" ]
null
null
null
JPHacks2019-final/JPHacks2019-demofinal/VMforBeginner/VMforBeginnerApp/forms.py
jphacks/FK_1905
37ac7d2373c372d537e5ee4d7ffa441fe10c7770
[ "MIT" ]
null
null
null
JPHacks2019-final/JPHacks2019-demofinal/VMforBeginner/VMforBeginnerApp/forms.py
jphacks/FK_1905
37ac7d2373c372d537e5ee4d7ffa441fe10c7770
[ "MIT" ]
null
null
null
from django import forms from .utils import PYTHON_PATH class EditorForm(forms.Form): code = forms.CharField( widget=forms.Textarea, required=False, ) file_name = forms.CharField( required=False, ) dir_name = forms.CharField( required=False, ) select_python...
26.898876
95
0.541353
from django import forms from .utils import PYTHON_PATH class EditorForm(forms.Form): code = forms.CharField( widget=forms.Textarea, required=False, ) file_name = forms.CharField( required=False, ) dir_name = forms.CharField( required=False, ) select_python...
true
true
f70dfb0bf7d49dc4a2b2b23391cc48fbcac66557
1,218
py
Python
Applications/ParaView/Testing/Python/TestContourWidget.py
mathstuf/ParaView
e867e280545ada10c4ed137f6a966d9d2f3db4cb
[ "Apache-2.0" ]
1
2020-05-21T20:20:59.000Z
2020-05-21T20:20:59.000Z
Applications/ParaView/Testing/Python/TestContourWidget.py
mathstuf/ParaView
e867e280545ada10c4ed137f6a966d9d2f3db4cb
[ "Apache-2.0" ]
null
null
null
Applications/ParaView/Testing/Python/TestContourWidget.py
mathstuf/ParaView
e867e280545ada10c4ed137f6a966d9d2f3db4cb
[ "Apache-2.0" ]
5
2016-04-14T13:42:37.000Z
2021-05-22T04:59:42.000Z
#/usr/bin/env python import QtTesting object1 = 'pqClientMainWindow/menubar/menuSources' QtTesting.playCommand(object1, 'activate', 'RTAnalyticSource') object2 = 'pqClientMainWindow/propertiesDock/propertiesPanel/Accept' QtTesting.playCommand(object2, 'activate', '') object3 = 'pqClientMainWindow/menubar/menuFilters/...
42
177
0.791461
import QtTesting object1 = 'pqClientMainWindow/menubar/menuSources' QtTesting.playCommand(object1, 'activate', 'RTAnalyticSource') object2 = 'pqClientMainWindow/propertiesDock/propertiesPanel/Accept' QtTesting.playCommand(object2, 'activate', '') object3 = 'pqClientMainWindow/menubar/menuFilters/Common' QtTesting.pla...
false
true
f70dfb1861ab923f051015034244517f67647433
2,009
py
Python
pyatv/protocols/mrp/protobuf/RemoteTextInputMessage_pb2.py
crxporter/pyatv
e694a210b3810c64044116bf40e7b75420b5fe75
[ "MIT" ]
null
null
null
pyatv/protocols/mrp/protobuf/RemoteTextInputMessage_pb2.py
crxporter/pyatv
e694a210b3810c64044116bf40e7b75420b5fe75
[ "MIT" ]
null
null
null
pyatv/protocols/mrp/protobuf/RemoteTextInputMessage_pb2.py
crxporter/pyatv
e694a210b3810c64044116bf40e7b75420b5fe75
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: pyatv/protocols/mrp/protobuf/RemoteTextInputMessage.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.p...
51.512821
431
0.844699
from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database _sym_db = _symbol_database.Default(...
true
true
f70dfb3337113af622cde89f6c3b6714e7082b52
1,610
py
Python
mldictionary_api/routes/api.py
PabloEmidio/MLDictionaryAPI
501f203802c1f6aafe213c0fb7a5808f9a9ad3ab
[ "MIT" ]
2
2022-01-17T16:17:22.000Z
2022-01-27T13:21:37.000Z
mldictionary_api/routes/api.py
PabloEmidio/MLDictionaryAPI
501f203802c1f6aafe213c0fb7a5808f9a9ad3ab
[ "MIT" ]
null
null
null
mldictionary_api/routes/api.py
PabloEmidio/MLDictionaryAPI
501f203802c1f6aafe213c0fb7a5808f9a9ad3ab
[ "MIT" ]
null
null
null
from flask import Blueprint from werkzeug.exceptions import NotFound, InternalServerError, TooManyRequests from mldictionary_api.const import API_PREFIX from mldictionary_api.resources.response import ResponseAPI from mldictionary_api.resources.const import ( ENGLISH_REPR, ENGLISH_TO_PORTUGUESE_REPR, PORTU...
25.967742
78
0.769565
from flask import Blueprint from werkzeug.exceptions import NotFound, InternalServerError, TooManyRequests from mldictionary_api.const import API_PREFIX from mldictionary_api.resources.response import ResponseAPI from mldictionary_api.resources.const import ( ENGLISH_REPR, ENGLISH_TO_PORTUGUESE_REPR, PORTU...
true
true
f70dfbb1563c8580cbfa60c64c23d188248e7d98
3,344
py
Python
scripts/insert2db/reputation/plugins/dshield_medium.py
macdaliot/exist
65244f79c602c5a00c3ea6a7eef512ce9c21e60a
[ "MIT" ]
159
2019-03-15T10:46:19.000Z
2022-03-12T09:19:31.000Z
scripts/insert2db/reputation/plugins/dshield_medium.py
macdaliot/exist
65244f79c602c5a00c3ea6a7eef512ce9c21e60a
[ "MIT" ]
6
2019-03-16T12:51:24.000Z
2020-07-09T02:25:42.000Z
scripts/insert2db/reputation/plugins/dshield_medium.py
macdaliot/exist
65244f79c602c5a00c3ea6a7eef512ce9c21e60a
[ "MIT" ]
36
2019-03-16T10:37:14.000Z
2021-11-14T21:04:18.000Z
import sys import os import configparser import requests import pandas as pd import hashlib from io import StringIO from datetime import datetime, timezone ## Django Setup import django import pymysql pymysql.install_as_MySQLdb() conffile = os.path.join(os.path.dirname(__file__), "../../conf/insert2db.conf") conf = co...
31.54717
96
0.574163
import sys import os import configparser import requests import pandas as pd import hashlib from io import StringIO from datetime import datetime, timezone import django import pymysql pymysql.install_as_MySQLdb() conffile = os.path.join(os.path.dirname(__file__), "../../conf/insert2db.conf") conf = configparser.SafeC...
true
true
f70dfbd382b9b6eecad2903bf2393b0b5e8a7f8d
974
py
Python
reminders/reminders/celery.py
bamboo2panda/reminders
f767f8dca900f16a13e40ae2a7e5645412c54844
[ "MIT" ]
null
null
null
reminders/reminders/celery.py
bamboo2panda/reminders
f767f8dca900f16a13e40ae2a7e5645412c54844
[ "MIT" ]
null
null
null
reminders/reminders/celery.py
bamboo2panda/reminders
f767f8dca900f16a13e40ae2a7e5645412c54844
[ "MIT" ]
null
null
null
import os from celery import Celery from celery.schedules import crontab # set the default Django settings module for the 'celery' program. os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'reminders.settings') app = Celery('reminders') # Using a string here means the worker doesn't have to serialize # the configur...
26.324324
69
0.715606
import os from celery import Celery from celery.schedules import crontab os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'reminders.settings') app = Celery('reminders') # the configuration object to child processes. # - namespace='CELERY' means all celery-related configuration keys # should have a `CELERY_` pref...
true
true
f70dfc229f304b61a9709e930e2e9b4fbec020ab
673
py
Python
pj_358.py
luisalvaradoar/pj_euler
03e4ee9d0cc64ae9650b801554bf053d2db0b684
[ "Apache-2.0" ]
null
null
null
pj_358.py
luisalvaradoar/pj_euler
03e4ee9d0cc64ae9650b801554bf053d2db0b684
[ "Apache-2.0" ]
null
null
null
pj_358.py
luisalvaradoar/pj_euler
03e4ee9d0cc64ae9650b801554bf053d2db0b684
[ "Apache-2.0" ]
null
null
null
def rotcir(ns): lista = [ns] for i in range(len(ns) - 1): a = ns[0] ns = ns[1:len(ns)+1] ns += a lista.append(ns) return(lista) def cyclic_number(ns): rotaciones = rotcir(ns) for n in range(1, len(ns)): Ns = str(n*int(ns)) while len(Ns) != len(ns): Ns = '0' + Ns if Ns not in rotaciones: ret...
14.955556
56
0.606241
def rotcir(ns): lista = [ns] for i in range(len(ns) - 1): a = ns[0] ns = ns[1:len(ns)+1] ns += a lista.append(ns) return(lista) def cyclic_number(ns): rotaciones = rotcir(ns) for n in range(1, len(ns)): Ns = str(n*int(ns)) while len(Ns) != len(ns): Ns = '0' + Ns if Ns not in rotaciones: ret...
true
true
f70dfdbde3e077aab6bf814a03c39fed976f228e
463
py
Python
examples/aditi/aniket/sister.py
FlaskAio/navycut
40f378f1710a26645df8d726c4d1caf33097da50
[ "MIT" ]
4
2021-09-22T09:23:04.000Z
2022-03-05T05:58:46.000Z
examples/aditi/aniket/sister.py
FlaskAio/navycut
40f378f1710a26645df8d726c4d1caf33097da50
[ "MIT" ]
21
2021-09-27T03:19:21.000Z
2022-03-31T03:20:59.000Z
examples/aditi/aniket/sister.py
FlaskAio/navycut
40f378f1710a26645df8d726c4d1caf33097da50
[ "MIT" ]
null
null
null
""" Do not change anything if you dont have enough knowledge how to handle it, otherwise it may mess the server. """ from navycut.core import AppSister from navycut.utils import path __basedir__ = path.abspath(__file__).parent class AniketSister(AppSister): name = "aniket" template_folder = __basedir__ / ...
24.368421
57
0.732181
from navycut.core import AppSister from navycut.utils import path __basedir__ = path.abspath(__file__).parent class AniketSister(AppSister): name = "aniket" template_folder = __basedir__ / "templates" static_folder = __basedir__ / "static" static_url_path = "/static" url_prefix = "/aniket" ...
true
true
f70dfe64c9a27850e1221bf79984fca6b651700b
4,895
py
Python
sphinx_toolbox/wikipedia.py
arisp99/sphinx-toolbox
2987080e2d65c0dd2d392dcf7f1f5a904a9231f5
[ "MIT" ]
30
2021-03-01T00:15:55.000Z
2022-03-01T13:23:59.000Z
sphinx_toolbox/wikipedia.py
arisp99/sphinx-toolbox
2987080e2d65c0dd2d392dcf7f1f5a904a9231f5
[ "MIT" ]
56
2020-12-17T12:39:04.000Z
2022-03-21T19:00:55.000Z
sphinx_toolbox/wikipedia.py
arisp99/sphinx-toolbox
2987080e2d65c0dd2d392dcf7f1f5a904a9231f5
[ "MIT" ]
4
2021-07-04T16:57:52.000Z
2022-03-21T19:35:31.000Z
#!/usr/bin/env python3 # # wikipedia.py """ Sphinx extension to create links to Wikipedia articles. .. versionadded:: 0.2.0 .. extensions:: sphinx_toolbox.wikipedia Configuration -------------- .. latex:vspace:: -5px .. confval:: wikipedia_lang :type: :class:`str` :required: False :default: ``'en'`` The Wiki...
28.794118
111
0.735649
import re from typing import Dict, List, Tuple from urllib.parse import quote from apeye.url import URL from docutils import nodes from docutils.nodes import system_message from docutils.parsers.rst.states import Inliner from sphinx.application import Sphinx from sphinx.util.nodes import split_explicit_title from sp...
true
true