hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
fff190148a03e69459b59c42a7ffff8717696f9f
147
py
Python
level0/question81.py
kevin00000000/Python-programming-exercises
87546906d817263ae7ddbd0276f0bb36e0d63c41
[ "MIT" ]
null
null
null
level0/question81.py
kevin00000000/Python-programming-exercises
87546906d817263ae7ddbd0276f0bb36e0d63c41
[ "MIT" ]
null
null
null
level0/question81.py
kevin00000000/Python-programming-exercises
87546906d817263ae7ddbd0276f0bb36e0d63c41
[ "MIT" ]
null
null
null
import zlib s = 'hello world!hello world!hello world!hello world!' t = zlib.compress(s.encode()) print(t) print(bytes(zlib.decompress(t)).decode())
29.4
54
0.734694
import zlib s = 'hello world!hello world!hello world!hello world!' t = zlib.compress(s.encode()) print(t) print(bytes(zlib.decompress(t)).decode())
0
0
0
0
0
0
0
0
0
a6fca02226b0b52aa6be593066ec3394841fec73
883
py
Python
Client_Android.py
Mandar-Sharma/Sockets
687d61e89da29b208ca3cd4d8ca03d0b84193aa8
[ "MIT" ]
null
null
null
Client_Android.py
Mandar-Sharma/Sockets
687d61e89da29b208ca3cd4d8ca03d0b84193aa8
[ "MIT" ]
null
null
null
Client_Android.py
Mandar-Sharma/Sockets
687d61e89da29b208ca3cd4d8ca03d0b84193aa8
[ "MIT" ]
null
null
null
import os import time os.chdir("/storage/emulated/0/Project") s = socket(AF_INET,SOCK_STREAM) host = "192.168.64.1" port = 9010 s.connect((host,port)) filename = 'Text.txt' clock_start = time.clock() time_start = time.time() #rb- readonly : Binary f = open(filename, 'rb') #1024 BufferSize l = f.read(10...
25.228571
76
0.676104
import os from socket import * import time os.chdir("/storage/emulated/0/Project") s = socket(AF_INET,SOCK_STREAM) host = "192.168.64.1" port = 9010 s.connect((host,port)) filename = 'Text.txt' clock_start = time.clock() time_start = time.time() #rb- readonly : Binary f = open(filename, 'rb') #1024 Buf...
0
0
0
0
0
0
0
-1
23
b68441d9d8dd3c633e51ecf4a376cd1b7694255e
2,771
py
Python
scripts/ingests/2020Best_pmUKIRT_ingest.py
cfontanive/SIMPLE-db
92dd86c043c5cf610e3097928936ed15c72f7697
[ "BSD-3-Clause" ]
6
2020-10-21T05:56:25.000Z
2021-09-25T00:06:46.000Z
scripts/ingests/2020Best_pmUKIRT_ingest.py
cfontanive/SIMPLE-db
92dd86c043c5cf610e3097928936ed15c72f7697
[ "BSD-3-Clause" ]
130
2020-10-27T20:25:22.000Z
2022-03-15T21:23:23.000Z
scripts/ingests/2020Best_pmUKIRT_ingest.py
cfontanive/SIMPLE-db
92dd86c043c5cf610e3097928936ed15c72f7697
[ "BSD-3-Clause" ]
8
2020-10-27T19:54:01.000Z
2021-11-19T18:59:47.000Z
import sys sys.path.append('.') from astropy.table import Table from scripts.ingests.utils import ingest_proper_motions import warnings warnings.filterwarnings("ignore", module='astroquery.simbad') import pandas as pd SAVE_DB = True # save the data files in addition to modifying the .db file RECREATE_DB = True # re...
35.075949
178
0.760736
import sys sys.path.append('.') from astrodbkit2.astrodb import create_database from astrodbkit2.astrodb import Database from simple.schema import * from astropy.table import Table import numpy as np from scripts.ingests.utils import ingest_proper_motions from astropy.coordinates import SkyCoord import astropy.units as...
0
0
0
0
0
715
0
65
243
95adfcedeeceb1f8475fea951258d8cb1f33e0df
2,503
py
Python
blog/models.py
roofxixi/July
d02965c989adde4ad1aadaffdf9f7bd334810dcf
[ "MIT" ]
null
null
null
blog/models.py
roofxixi/July
d02965c989adde4ad1aadaffdf9f7bd334810dcf
[ "MIT" ]
null
null
null
blog/models.py
roofxixi/July
d02965c989adde4ad1aadaffdf9f7bd334810dcf
[ "MIT" ]
1
2021-06-05T15:32:43.000Z
2021-06-05T15:32:43.000Z
# Create your models here. __all__ = [ 'Categories', 'Article', 'Links', 'Tag' ]
30.52439
101
0.679584
from django.db import models # Create your models here. __all__ = [ 'Categories', 'Article', 'Links', 'Tag' ] class Categories(models.Model): name = models.CharField(max_length=32, unique=True, verbose_name='分类名称') title = models.CharField(max_length=64, verbose_name='标题') description = ...
249
0
0
2,196
0
0
0
7
114
e8c3c51f619356e810aecfe09d711fb7f47243cc
770
py
Python
kintone/icon_kintone/actions/get_record_by_id/action.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
1
2020-03-18T09:14:55.000Z
2020-03-18T09:14:55.000Z
kintone/icon_kintone/actions/get_record_by_id/action.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
1
2021-02-23T23:57:37.000Z
2021-02-23T23:57:37.000Z
kintone/icon_kintone/actions/get_record_by_id/action.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
null
null
null
# Custom imports below
32.083333
96
0.680519
import komand from .schema import GetRecordByIdInput, GetRecordByIdOutput, Input, Output, Component # Custom imports below from icon_kintone.util.kintone import get_record class GetRecordById(komand.Action): def __init__(self): super(self.__class__, self).__init__( name='get_record_by_id'...
0
0
0
574
0
0
0
83
89
6194050e1c395ec5c5e4b253d6977c10ebfc1e77
6,892
py
Python
Assets/Tools/generate_scales.py
elkwolf/ear-training
1d210dd4723e2edd50969fb693f0110b81e849ec
[ "MIT" ]
6
2020-06-01T18:39:26.000Z
2020-10-15T12:54:08.000Z
Assets/Tools/generate_scales.py
elkwolf/ear-training
1d210dd4723e2edd50969fb693f0110b81e849ec
[ "MIT" ]
11
2020-06-03T01:35:47.000Z
2021-04-06T18:58:00.000Z
Assets/Tools/generate_scales.py
elkwolf/ear-training
1d210dd4723e2edd50969fb693f0110b81e849ec
[ "MIT" ]
2
2021-03-30T17:28:11.000Z
2021-03-30T17:37:04.000Z
# -*- coding: utf-8 -*- """Generate all the scales in different notations. This code has been written to test whether the user interface works. The notations and names are approximated, as I am no expert of any other way of spelling scales than spanish, and maybe english. For the generation of these scales, an equal-...
37.254054
111
0.435142
# -*- coding: utf-8 -*- """Generate all the scales in different notations. This code has been written to test whether the user interface works. The notations and names are approximated, as I am no expert of any other way of spelling scales than spanish, and maybe english. For the generation of these scales, an equal-...
270
0
0
0
0
0
0
0
0
93b4317c019f6e5107db5321f2babd1d5d74946e
5,142
py
Python
Poem_generator/codes/visualization.py
shenhao-stu/2021_computer_design
8729c1962a0aeaa12888092dda5d00723f62aad2
[ "MIT" ]
3
2021-03-29T08:25:29.000Z
2021-09-17T22:45:18.000Z
Poem_generator/codes/visualization.py
shenhao-stu/2021_computer_design
8729c1962a0aeaa12888092dda5d00723f62aad2
[ "MIT" ]
null
null
null
Poem_generator/codes/visualization.py
shenhao-stu/2021_computer_design
8729c1962a0aeaa12888092dda5d00723f62aad2
[ "MIT" ]
1
2022-02-22T02:15:51.000Z
2022-02-22T02:15:51.000Z
# -*- coding: utf-8 -*- # @Author: Xiaoyuan Yi # @Last Modified by: Xiaoyuan Yi # @Last Modified time: 2020-06-11 22:04:36 # @Email: yi-xy16@mails.tsinghua.edu.cn # @Description: ''' Copyright 2020 THUNLP Lab. All Rights Reserved. This code is part of the online Chinese poetry generation system, Jiuge. System URL: ht...
32.961538
118
0.604434
# -*- coding: utf-8 -*- # @Author: Xiaoyuan Yi # @Last Modified by: Xiaoyuan Yi # @Last Modified time: 2020-06-11 22:04:36 # @Email: yi-xy16@mails.tsinghua.edu.cn # @Description: ''' Copyright 2020 THUNLP Lab. All Rights Reserved. This code is part of the online Chinese poetry generation system, Jiuge. System URL: ht...
0
0
0
4,521
0
0
0
9
114
35944c066e9e73f69a07d3e3dc969e189308bc87
3,934
py
Python
SERVER/buissness/UMS_services.py
PawaN-K-MishrA/FTP-server
090040ed7b40a8507578cd124dd18f9911068a14
[ "MIT" ]
null
null
null
SERVER/buissness/UMS_services.py
PawaN-K-MishrA/FTP-server
090040ed7b40a8507578cd124dd18f9911068a14
[ "MIT" ]
null
null
null
SERVER/buissness/UMS_services.py
PawaN-K-MishrA/FTP-server
090040ed7b40a8507578cd124dd18f9911068a14
[ "MIT" ]
null
null
null
import sys sys.path.append('..')
21.855556
141
0.669039
import sys sys.path.append('..') from data.DBConnection import DBConnection from data.user import User class UMS_services: @staticmethod def add(u): result=False conx=DBConnection.connect() cur=conx.cursor() query='insert into userMaster (userName,password,userType,userStatus,name,email,contact,address,gender...
0
3,591
0
-2
0
0
0
26
250
16f381165f84836e0d5f3f01fed80f56a786bce1
16,514
py
Python
tests/test_xlsx_to_arrow.py
CJWorkbench/arrow-tools
1944e40853d82d7dad3d47a72958326cefff367a
[ "MIT" ]
1
2021-11-23T03:57:03.000Z
2021-11-23T03:57:03.000Z
tests/test_xlsx_to_arrow.py
CJWorkbench/arrow-tools
1944e40853d82d7dad3d47a72958326cefff367a
[ "MIT" ]
null
null
null
tests/test_xlsx_to_arrow.py
CJWorkbench/arrow-tools
1944e40853d82d7dad3d47a72958326cefff367a
[ "MIT" ]
1
2021-11-23T03:57:06.000Z
2021-11-23T03:57:06.000Z
# This is hard to test, since it's really an invalid Excel file # def test_no_sheets_is_error(): # # https://openpyxl.readthedocs.io/en/stable/optimized.html#write-only-mode # # ... to create a workbook with no worksheets # workbook = xl.Workbook() # workbook.remove(workbook.active) # workbook.g...
32.128405
102
0.579206
import datetime from pathlib import Path import subprocess import tempfile from typing import Tuple, Union import openpyxl as xl import pyarrow from .util import assert_table_equals def do_convert( xlsx_path: Path, *, max_rows: int = 99999, max_columns: int = 99998, max_bytes_per_value: int = 9999...
29
0
0
0
0
14,801
0
6
820
ff09700cf57e7d8296d2dca0aeb45a99125e1f13
31,256
py
Python
src/fr/tagc/rainet/core/execution/processing/catrapid/ReadCatrapid.py
TAGC-Brun/RAINET-RNA
4d5a6658c41d4ab28d7c3d168eed65fe79233b48
[ "Linux-OpenIB" ]
null
null
null
src/fr/tagc/rainet/core/execution/processing/catrapid/ReadCatrapid.py
TAGC-Brun/RAINET-RNA
4d5a6658c41d4ab28d7c3d168eed65fe79233b48
[ "Linux-OpenIB" ]
null
null
null
src/fr/tagc/rainet/core/execution/processing/catrapid/ReadCatrapid.py
TAGC-Brun/RAINET-RNA
4d5a6658c41d4ab28d7c3d168eed65fe79233b48
[ "Linux-OpenIB" ]
null
null
null
import os import argparse import numpy as np from fr.tagc.rainet.core.util.exception.RainetException import RainetException from fr.tagc.rainet.core.util.log.Logger import Logger from fr.tagc.rainet.core.util.time.Timer import Timer from fr.tagc.rainet.core.util.subprocess.SubprocessUtil import SubprocessUtil #======...
48.234568
281
0.559829
import os import argparse import numpy as np from fr.tagc.rainet.core.util.exception.RainetException import RainetException from fr.tagc.rainet.core.util.log.Logger import Logger from fr.tagc.rainet.core.util.time.Timer import Timer from fr.tagc.rainet.core.util.subprocess.SubprocessUtil import SubprocessUtil #======...
0
0
0
25,692
0
0
0
0
23
b6d0c601f0b3ca1259885a7dddccd7cb50af0917
2,047
py
Python
watchdog_s3.py
giuliocalzolari/watchdog_s3
2578791fd82114afe79c77469e2d969e162b29a2
[ "MIT" ]
3
2018-02-28T16:19:20.000Z
2021-11-05T06:47:51.000Z
watchdog_s3.py
giuliocalzolari/watchdog_s3
2578791fd82114afe79c77469e2d969e162b29a2
[ "MIT" ]
null
null
null
watchdog_s3.py
giuliocalzolari/watchdog_s3
2578791fd82114afe79c77469e2d969e162b29a2
[ "MIT" ]
1
2020-08-15T02:19:53.000Z
2020-08-15T02:19:53.000Z
#!/usr/bin/env python import sys import time import logging import boto3 from watchdog.observers import Observer logging.basicConfig(level=logging.INFO,format='%(asctime)s - %(message)s', datefmt='%Y-%m-%d %H:%M:%S') logging.getLogger('boto3').setLevel(logging.CRITICAL) logging.getLogger('botocore').setLevel(logging.C...
27.293333
103
0.602345
#!/usr/bin/env python import sys import time import logging import boto3 from botocore.exceptions import ClientError from watchdog.observers import Observer from watchdog.events import PatternMatchingEventHandler logging.basicConfig(level=logging.INFO,format='%(asctime)s - %(message)s', datefmt='%Y-%m-%d %H:%M:%S') lo...
0
0
0
1,211
0
0
0
56
67
bf1f7972df9e38d244077c4f38d14e906f106268
177
py
Python
tiger_pl/__main__.py
dmzobel/tiger
bc3b936bd596235360f3cd8f02c9746279af00ed
[ "MIT" ]
null
null
null
tiger_pl/__main__.py
dmzobel/tiger
bc3b936bd596235360f3cd8f02c9746279af00ed
[ "MIT" ]
null
null
null
tiger_pl/__main__.py
dmzobel/tiger
bc3b936bd596235360f3cd8f02c9746279af00ed
[ "MIT" ]
null
null
null
import argparse from tiger_pl import Tiger parser = argparse.ArgumentParser() parser.add_argument("filename") args = parser.parse_args() print(Tiger(args.filename).execute())
19.666667
37
0.79096
import argparse from tiger_pl import Tiger parser = argparse.ArgumentParser() parser.add_argument("filename") args = parser.parse_args() print(Tiger(args.filename).execute())
0
0
0
0
0
0
0
0
0
95d68597ab6f351f4854c1f350aad77f05ff8017
5,275
py
Python
adi_study_watch/nrf5_sdk_15.2.0/adi_study_watch/cli/m2m2/inc/master_definitions/bia_application_interface.py
ArrowElectronics/Vital-Signs-Monitoring
ba43fe9a116d94170561433910fd7bffba5726e7
[ "Unlicense" ]
5
2021-06-13T17:11:19.000Z
2021-12-01T18:20:38.000Z
adi_study_watch/nrf5_sdk_15.2.0/adi_study_watch/cli/m2m2/inc/master_definitions/bia_application_interface.py
ArrowElectronics/Vital-Signs-Monitoring
ba43fe9a116d94170561433910fd7bffba5726e7
[ "Unlicense" ]
null
null
null
adi_study_watch/nrf5_sdk_15.2.0/adi_study_watch/cli/m2m2/inc/master_definitions/bia_application_interface.py
ArrowElectronics/Vital-Signs-Monitoring
ba43fe9a116d94170561433910fd7bffba5726e7
[ "Unlicense" ]
1
2022-01-08T15:01:44.000Z
2022-01-08T15:01:44.000Z
#!/usr/bin/env python3
33.386076
79
0.660474
#!/usr/bin/env python3 from ctypes import * import common_application_interface import common_sensor_interface class M2M2_BIA_APP_CMD_ENUM_t(c_uint8): _M2M2_BIA_APP_CMD_LOWEST = 0x40 M2M2_BIA_APP_CMD_SWEEP_FREQ_ENABLE_REQ = 0x42 M2M2_BIA_APP_CMD_SWEEP_FREQ_ENABLE_RESP = 0x43 M2M2_BIA_APP_CMD_SWEEP_F...
0
0
0
4,678
0
0
0
22
552
2570e87ff7b6b4f4aaed4a328b7361c96668d859
1,409
py
Python
setup.py
Adalyia/aiowowapi
660297d00273468b336749e8a079f7292a6be4d8
[ "MIT" ]
null
null
null
setup.py
Adalyia/aiowowapi
660297d00273468b336749e8a079f7292a6be4d8
[ "MIT" ]
null
null
null
setup.py
Adalyia/aiowowapi
660297d00273468b336749e8a079f7292a6be4d8
[ "MIT" ]
null
null
null
from setuptools import setup readme = '' with open('README.rst') as f: readme = f.read() requirements = [ 'aiohttp>=3.7.0,<3.8.0' ] extras_require = { 'docs': [ 'sphinx>=4.1.2', 'sphinx_rtd_theme>=0.5.2', ] } packages = [ 'aiowowapi', 'aiowowapi.retail', ] setup( ...
25.618182
79
0.631654
from setuptools import setup readme = '' with open('README.rst') as f: readme = f.read() requirements = [ 'aiohttp>=3.7.0,<3.8.0' ] extras_require = { 'docs': [ 'sphinx>=4.1.2', 'sphinx_rtd_theme>=0.5.2', ] } packages = [ 'aiowowapi', 'aiowowapi.retail', ] setup( ...
0
0
0
0
0
0
0
0
0
948ced1d7fbe483c56ec4e04a79fdbbf44a8dcd3
5,329
py
Python
redirect_demo/settings.py
mllrsohn/django-cms-redirects
3398528e44594adb708aa090d5b7867f619db10e
[ "BSD-3-Clause" ]
8
2015-02-10T20:30:26.000Z
2020-05-31T20:20:51.000Z
redirect_demo/settings.py
mllrsohn/django-cms-redirects
3398528e44594adb708aa090d5b7867f619db10e
[ "BSD-3-Clause" ]
5
2017-04-10T07:41:45.000Z
2021-12-20T08:49:35.000Z
redirect_demo/settings.py
mllrsohn/django-cms-redirects
3398528e44594adb708aa090d5b7867f619db10e
[ "BSD-3-Clause" ]
8
2015-04-16T21:25:55.000Z
2018-09-27T11:15:12.000Z
# Django settings for redirect_demo project. import os PROJECT_DIR = os.path.abspath(os.path.dirname(__file__)) gettext = lambda s: s DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@domain.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends...
29.605556
122
0.691687
# Django settings for redirect_demo project. import os PROJECT_DIR = os.path.abspath(os.path.dirname(__file__)) gettext = lambda s: s DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@domain.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends...
0
0
0
0
0
0
0
5
26
bd3809cf0caa404dcf1774a91b849c420fd6f92c
2,615
py
Python
src/m1_hangman.py
theneltj/21-FunctionalDecomposition
53dd19436a3f33e65957e8db0216bcb056ce187e
[ "MIT" ]
null
null
null
src/m1_hangman.py
theneltj/21-FunctionalDecomposition
53dd19436a3f33e65957e8db0216bcb056ce187e
[ "MIT" ]
null
null
null
src/m1_hangman.py
theneltj/21-FunctionalDecomposition
53dd19436a3f33e65957e8db0216bcb056ce187e
[ "MIT" ]
null
null
null
""" Hangman. Authors: Tyler Thenell and Zachary Zdanavicius. """ # DONE: 1. PUT YOUR NAME IN THE ABOVE LINE. # DONE: 2. Implement Hangman using your Iterative Enhancement Plan. ####### Do NOT attempt this assignment before class! ####### main()
27.526316
67
0.56673
""" Hangman. Authors: Tyler Thenell and Zachary Zdanavicius. """ # DONE: 1. PUT YOUR NAME IN THE ABOVE LINE. # DONE: 2. Implement Hangman using your Iterative Enhancement Plan. import random ####### Do NOT attempt this assignment before class! ####### def main(): print('_________________________________') ...
0
0
0
0
0
2,208
0
-8
160
cfac305f0f7ce458aca125a8380e57d97d04bc9b
81,938
py
Python
openstuder.py
OpenStuder/openstuder-client-python
ade667116afcd084faed93febfa4e267972f5250
[ "MIT" ]
null
null
null
openstuder.py
OpenStuder/openstuder-client-python
ade667116afcd084faed93febfa4e267972f5250
[ "MIT" ]
null
null
null
openstuder.py
OpenStuder/openstuder-client-python
ade667116afcd084faed93febfa4e267972f5250
[ "MIT" ]
null
null
null
from __future__ import annotations
48.541469
180
0.672435
from __future__ import annotations from typing import Callable, Optional, Tuple, List from enum import Enum, Flag, auto from threading import Thread import datetime import json import websocket class SIStatus(Enum): """ Status of operations on the OpenStuder gateway. - **SIStatus.SUCCESS**: Operation was...
0
18,042
0
63,390
0
0
0
27
431
19edf52f2ee673c122ec1d673f22633ce7ecfbaf
1,675
py
Python
py_neuromodulation/nm_fft.py
neuromodulation/py_neuromodulation
1e8505d4324c9d2f37e5d56629a2ee418ea0b12b
[ "MIT" ]
7
2021-05-12T02:13:12.000Z
2022-02-28T13:14:23.000Z
py_neuromodulation/nm_fft.py
neuromodulation/py_neuromodulation
1e8505d4324c9d2f37e5d56629a2ee418ea0b12b
[ "MIT" ]
98
2021-03-26T19:04:20.000Z
2022-03-15T09:07:29.000Z
py_neuromodulation/nm_fft.py
neuromodulation/py_neuromodulation
1e8505d4324c9d2f37e5d56629a2ee418ea0b12b
[ "MIT" ]
1
2021-07-16T10:39:01.000Z
2021-07-16T10:39:01.000Z
from scipy import fft import numpy as np def get_fft_features(features_, s, fs, data, KF_dict, ch, f_ranges, f_band_names): """Get FFT features for different f_ranges. Data needs to be a batch of 1s length Parameters ---------- features_ : dict feature dictionary s : dict settings...
32.843137
85
0.616716
from scipy import fft import numpy as np def get_fft_features(features_, s, fs, data, KF_dict, ch, f_ranges, f_band_names): """Get FFT features for different f_ranges. Data needs to be a batch of 1s length Parameters ---------- features_ : dict feature dictionary s : dict settings...
0
0
0
0
0
0
0
0
0
0086c54dad5b6fdac6f2eec722f377e833b2a519
2,099
py
Python
kubeasy_sdk/service.py
dylanturn/kubeasy
7c9fd62e22ecd89632f5aa7a7a17fda24ebe7490
[ "Apache-2.0" ]
null
null
null
kubeasy_sdk/service.py
dylanturn/kubeasy
7c9fd62e22ecd89632f5aa7a7a17fda24ebe7490
[ "Apache-2.0" ]
null
null
null
kubeasy_sdk/service.py
dylanturn/kubeasy
7c9fd62e22ecd89632f5aa7a7a17fda24ebe7490
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations
28.364865
110
0.738923
from __future__ import annotations from enum import Enum from imports import k8s from cdk8s import Chart from kubeasy_sdk.deployment import Deployment from kubeasy_sdk.utils.resource import Rendered from kubeasy_sdk.utils.networking.service_port import ServicePort from kubeasy_sdk.utils.collections.service_ports impo...
0
0
0
1,711
0
0
0
145
202
6176f54a26a8cd4a12b47289cd60ad078137a050
1,602
py
Python
day14/solution.py
Mark-Simulacrum/advent-of-code-2015
8b842eba07a68fd4c2baad60f4ea204429d62f35
[ "MIT" ]
1
2015-12-20T23:59:34.000Z
2015-12-20T23:59:34.000Z
day14/solution.py
Mark-Simulacrum/advent-of-code-2015
8b842eba07a68fd4c2baad60f4ea204429d62f35
[ "MIT" ]
null
null
null
day14/solution.py
Mark-Simulacrum/advent-of-code-2015
8b842eba07a68fd4c2baad60f4ea204429d62f35
[ "MIT" ]
null
null
null
import operator import re data = open("data", "r").read() seconds = 2503 reindeers = map(parseDataLine, data.split("\n")) reindeerNames = {} for reindeer in reindeers: reindeerNames[reindeer[0]] = 0 for second in range(seconds + 1): inLeads = inLeadAtSecond(reindeers, second) for inLead in inLeads: reindeerN...
23.910448
102
0.708489
import operator import re data = open("data", "r").read() def parseDataLine(line): name, kmPerSec, speedTime, restTime = re.search( r'(\w+) .* (\d+) km/s for (\d+) .* (\d+)', line).groups() kmPerSec = int(kmPerSec) speedTime = int(speedTime) restTime = int(restTime) return ( name, kmPerSec, speedTime, restTi...
0
0
0
0
0
1,001
0
0
69
8a523dc01e2cfb12326fe5012d648b8bc8959329
1,834
py
Python
samples/quandl_sample.py
daxlab/pyalgotrade
5517c2644da97e7ef143d344d813232d6845a29f
[ "Apache-2.0" ]
1,000
2016-01-26T12:10:11.000Z
2022-03-01T23:59:50.000Z
samples/quandl_sample.py
leeong05/pyalgotrade
5578596f2442aeb3f1a777a79f82e041c1609f5f
[ "Apache-2.0" ]
22
2016-01-26T15:14:09.000Z
2019-01-30T02:36:38.000Z
samples/quandl_sample.py
leeong05/pyalgotrade
5578596f2442aeb3f1a777a79f82e041c1609f5f
[ "Apache-2.0" ]
613
2016-01-27T01:02:30.000Z
2022-03-21T01:38:58.000Z
if __name__ == "__main__": main(True)
33.345455
134
0.703381
from pyalgotrade import strategy from pyalgotrade import plotter from pyalgotrade.tools import quandl from pyalgotrade.feed import csvfeed import datetime class MyStrategy(strategy.BacktestingStrategy): def __init__(self, feed, quandlFeed, instrument): strategy.BacktestingStrategy.__init__(self, feed) ...
0
0
0
673
0
914
0
45
156
ef7deba50f2dc714d92981f52b24ec7718b9a073
1,629
py
Python
tests/unit/test_notebooks.py
Saransh-cpp/liionpack
82ab00ad257ccb2bc8dbcb71bc08baa30fa9ed43
[ "MIT" ]
23
2021-09-28T15:48:48.000Z
2022-03-15T10:34:35.000Z
tests/unit/test_notebooks.py
Saransh-cpp/liionpack
82ab00ad257ccb2bc8dbcb71bc08baa30fa9ed43
[ "MIT" ]
131
2021-09-29T09:18:50.000Z
2022-03-03T06:09:52.000Z
tests/unit/test_notebooks.py
Saransh-cpp/liionpack
82ab00ad257ccb2bc8dbcb71bc08baa30fa9ed43
[ "MIT" ]
17
2021-09-29T13:14:00.000Z
2022-03-24T11:01:19.000Z
# # Tests jupyter notebooks # import unittest if __name__ == "__main__": unittest.main()
31.941176
151
0.544506
# # Tests jupyter notebooks # import os import subprocess import unittest import nbconvert import liionpack as lp class TestNotebooks(unittest.TestCase): def test_notebooks(self): examples_folder = os.path.join(lp.ROOT_DIR, "docs", "examples") for filename in os.listdir(examples_folder): ...
0
0
0
1,440
0
0
0
-20
113
8284ceab076e729a53283aca651148ca390bb5ce
2,485
py
Python
app.py
andresmvidaurre/Project
a3c1193f8c6aac13218715a8ad98479c60f0168a
[ "MIT" ]
1
2022-03-04T22:21:54.000Z
2022-03-04T22:21:54.000Z
app.py
andresmvidaurre/Project
a3c1193f8c6aac13218715a8ad98479c60f0168a
[ "MIT" ]
null
null
null
app.py
andresmvidaurre/Project
a3c1193f8c6aac13218715a8ad98479c60f0168a
[ "MIT" ]
2
2022-02-02T19:24:12.000Z
2022-02-09T02:33:15.000Z
from flask import Flask import pickle # app instantiation APP = Flask(__name__) # Load model with open("xgb_class_1.pkl", "rb") as f: model = pickle.load(f)
36.544118
125
0.651911
from flask import Flask, render_template, request import pickle import pandas as pd # app instantiation APP = Flask(__name__) # Load model with open("xgb_class_1.pkl", "rb") as f: model = pickle.load(f) def create_project_df(name, blurb, goal, category, length): # function to process user input and make a da...
0
892
0
0
0
1,315
0
24
91
2cdf216954cfff6bf8963150ed97dfed0f7362b0
1,125
py
Python
leetcode/implement_queue_using_stacks.py
zhangao0086/Python-Algorithm
981c875b2e0f30619bd3d44e1f2bd0c47d1464a2
[ "MIT" ]
3
2021-05-21T12:55:14.000Z
2022-02-01T16:21:30.000Z
leetcode/implement_queue_using_stacks.py
zhangao0086/Python-Algorithm
981c875b2e0f30619bd3d44e1f2bd0c47d1464a2
[ "MIT" ]
null
null
null
leetcode/implement_queue_using_stacks.py
zhangao0086/Python-Algorithm
981c875b2e0f30619bd3d44e1f2bd0c47d1464a2
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*-coding:utf-8-*- __author__ = "Bannings" if __name__ == '__main__': obj = MyQueue() obj.push(1) obj.push(2) assert obj.peek() == 1 assert obj.pop() == 1 assert obj.empty() == False
22.5
76
0.524444
#!/usr/bin/python3 # -*-coding:utf-8-*- __author__ = "Bannings" class MyQueue: def __init__(self): """ Initialize your data structure here. """ self.stack = [] self.reverse_stack = [] def push(self, x: int) -> None: """ Push element x to the back of qu...
0
0
0
873
0
0
0
0
23
53f979a770bf36c7d39eb7c9093dddfa222161db
20,464
py
Python
Tests/interop/net/field/test_static_fields.py
btddg28/ironpython
8006238c19d08db5db9bada39d765143e631059e
[ "Apache-2.0" ]
null
null
null
Tests/interop/net/field/test_static_fields.py
btddg28/ironpython
8006238c19d08db5db9bada39d765143e631059e
[ "Apache-2.0" ]
null
null
null
Tests/interop/net/field/test_static_fields.py
btddg28/ironpython
8006238c19d08db5db9bada39d765143e631059e
[ "Apache-2.0" ]
1
2019-09-18T05:37:46.000Z
2019-09-18T05:37:46.000Z
##################################################################################### # # Copyright (c) Microsoft Corporation. All rights reserved. # # This source code is subject to terms and conditions of the Apache License, Version 2.0. A # copy of the license can be found in the License.html file at the root of t...
44.008602
115
0.722097
##################################################################################### # # Copyright (c) Microsoft Corporation. All rights reserved. # # This source code is subject to terms and conditions of the Apache License, Version 2.0. A # copy of the license can be found in the License.html file at the root of t...
0
690
0
0
0
17,371
0
45
403
4e71ac5ceee753ffebe093fcf274c014b19c977c
4,299
py
Python
RKD/model/backbone/inception/google.py
pantheon5100/fmcw-finetune-RKD
1e606432ca3006e8c5d48030301988d5febb4c1b
[ "Apache-2.0" ]
2
2020-08-24T07:57:16.000Z
2022-01-16T02:06:40.000Z
RKD/model/backbone/inception/google.py
pantheon5100/fmcw-finetune-RKD
1e606432ca3006e8c5d48030301988d5febb4c1b
[ "Apache-2.0" ]
null
null
null
RKD/model/backbone/inception/google.py
pantheon5100/fmcw-finetune-RKD
1e606432ca3006e8c5d48030301988d5febb4c1b
[ "Apache-2.0" ]
null
null
null
import torch.nn as nn __all__ = ["GoogleNet"]
40.556604
120
0.551058
import os import torch import torch.nn as nn import h5py from collections import OrderedDict from torchvision.datasets.utils import download_url __all__ = ["GoogleNet"] class GoogleNet(nn.Sequential): output_size = 1024 input_side = 227 rescale = 255.0 rgb_mean = [122.7717, 115.9465, 102.9801] r...
0
0
0
4,080
0
0
0
13
157
0f6cbf7880a269cc7ee9969661d51e032171160e
1,448
py
Python
string_constants.py
PyPals/pywebsis
01d9dd9751fa0296c11354322b70c6efef4a9671
[ "MIT" ]
null
null
null
string_constants.py
PyPals/pywebsis
01d9dd9751fa0296c11354322b70c6efef4a9671
[ "MIT" ]
7
2016-04-18T17:04:58.000Z
2016-08-11T13:05:31.000Z
string_constants.py
PyPals/pywebsis
01d9dd9751fa0296c11354322b70c6efef4a9671
[ "MIT" ]
null
null
null
base_url = 'http://websismit.manipal.edu/websis/control/StudentAcademicProfile' url = base_url + '?productCategoryId=0905-TERM-' base_url_details = 'http://websismit.manipal.edu/websis/control/' url_details = base_url_details + 'ListCTPEnrollment?customTimePeriodId=' #HTML IDs to be used in first url form_id = 'P...
46.709677
79
0.839088
import constants base_url = 'http://websismit.manipal.edu/websis/control/StudentAcademicProfile' url = base_url + '?productCategoryId=0905-TERM-' base_url_details = 'http://websismit.manipal.edu/websis/control/' url_details = base_url_details + 'ListCTPEnrollment?customTimePeriodId=' #HTML IDs to be used in first...
0
0
0
0
0
0
0
-5
22
ad7f3ce39bee40ba0b8f15a52a9d6a03823d342e
282
py
Python
sample_problems/problems_with_solution101.py
adi01trip01/adi_workspace
f493b3ba84645eec3a57607243760a826880d1a3
[ "MIT" ]
null
null
null
sample_problems/problems_with_solution101.py
adi01trip01/adi_workspace
f493b3ba84645eec3a57607243760a826880d1a3
[ "MIT" ]
null
null
null
sample_problems/problems_with_solution101.py
adi01trip01/adi_workspace
f493b3ba84645eec3a57607243760a826880d1a3
[ "MIT" ]
null
null
null
# Write a Python program to access and print a URL's content to the console. from http.client import HTTPConnection conn = HTTPConnection("example.com") conn.request("GET", "/") result = conn.getresponse() # retrieves the entire contents. contents = result.read() print(contents)
28.2
76
0.755319
# Write a Python program to access and print a URL's content to the console. from http.client import HTTPConnection conn = HTTPConnection("example.com") conn.request("GET", "/") result = conn.getresponse() # retrieves the entire contents. contents = result.read() print(contents)
0
0
0
0
0
0
0
0
0
a7f198e1d8cff8833d4ae6d9f3264eb305093d82
549
py
Python
answers/vjha21/Day8/question1.py
arc03/30-DaysOfCode-March-2021
6d6e11bf70280a578113f163352fa4fa8408baf6
[ "MIT" ]
22
2021-03-16T14:07:47.000Z
2021-08-13T08:52:50.000Z
answers/vjha21/Day8/question1.py
arc03/30-DaysOfCode-March-2021
6d6e11bf70280a578113f163352fa4fa8408baf6
[ "MIT" ]
174
2021-03-16T21:16:40.000Z
2021-06-12T05:19:51.000Z
answers/vjha21/Day8/question1.py
arc03/30-DaysOfCode-March-2021
6d6e11bf70280a578113f163352fa4fa8408baf6
[ "MIT" ]
135
2021-03-16T16:47:12.000Z
2021-06-27T14:22:38.000Z
##Return sum of all unique elements of an array if __name__ == "__main__": nums = [1, 2, 3, 2] print(unique_element(nums))
24.954545
65
0.586521
##Return sum of all unique elements of an array def unique_element(array): n = len(array) unique_elements = [] array.sort() if array[0] != array[1]: unique_elements.append(array[0]) for i in range(1, n - 1): if array[i] != array[i + 1] and array[i] != array[i - 1]: uniq...
0
0
0
0
0
392
0
0
23
422a4cf2546ac8427c4d0f426776bc704bc59852
1,119
py
Python
7/13/solve.py
juancroldan/tuenti-challenge
4b0b233f457366dd78e80c011ade138cd162e297
[ "Unlicense" ]
null
null
null
7/13/solve.py
juancroldan/tuenti-challenge
4b0b233f457366dd78e80c011ade138cd162e297
[ "Unlicense" ]
null
null
null
7/13/solve.py
juancroldan/tuenti-challenge
4b0b233f457366dd78e80c011ade138cd162e297
[ "Unlicense" ]
null
null
null
from numpy import uint64 as ui START = 1050 ONE = ui(1) n = START while n < 2**32 -1: print(n) with open("fromto.txt", "a") as f: f.write("%s\t%s\n" % (n, carvedToWritten(n))) n += 1
31.083333
62
0.460232
from numpy import uint64 as ui, arange START = 1050 ONE = ui(1) def carvedToWritten(n): n = ui(n) r = ui(0) for i in arange(64, dtype = ui): a = ui(0) for j in reversed(arange(n + 1, dtype = ui)): b = ui(0) for k in arange(i+1, dtype = ui): #print("N: {0:064b}".format(n).replace("0"," ")+"|%s" % n) ...
0
0
0
0
0
899
0
8
22
1cbcd39bc17ace2409f7b87b96e0cffb046b876c
3,893
py
Python
jina/peapods/peas/helper.py
anuragdw710/jina
b2d3577f2d5b86399f0b4a8e4529df4929dd18ff
[ "Apache-2.0" ]
3
2021-09-02T04:55:20.000Z
2021-11-15T09:41:50.000Z
jina/peapods/peas/helper.py
sheetal01761/jina
520fc0794fb43d96e1fc85534e9df3cf9c89c42e
[ "Apache-2.0" ]
null
null
null
jina/peapods/peas/helper.py
sheetal01761/jina
520fc0794fb43d96e1fc85534e9df3cf9c89c42e
[ "Apache-2.0" ]
null
null
null
from typing import TYPE_CHECKING from copy import deepcopy from ... import __default_host__ from ...hubble.hubio import HubIO from ...hubble.helper import is_valid_huburi from ...enums import GatewayProtocolType from ...parsers.hubble import set_hub_pull_parser if TYPE_CHECKING: from argparse import Namespace ...
34.451327
106
0.670948
import multiprocessing import threading from functools import partial from typing import Union, TYPE_CHECKING from copy import deepcopy from ... import __default_host__ from ...hubble.hubio import HubIO from ...hubble.helper import is_valid_huburi from ...enums import GatewayProtocolType, RuntimeBackendType from ...pa...
0
0
0
1,464
0
544
0
31
112
f0028266ec1bf2c346a778c1687f14b66af3ebf8
400
py
Python
tests/test_ukw_intelli_store.py
Maddonix/ukw-intelli-store
a6ba088e70d5ee2e9499a9c72477833dfccafb0b
[ "MIT" ]
null
null
null
tests/test_ukw_intelli_store.py
Maddonix/ukw-intelli-store
a6ba088e70d5ee2e9499a9c72477833dfccafb0b
[ "MIT" ]
null
null
null
tests/test_ukw_intelli_store.py
Maddonix/ukw-intelli-store
a6ba088e70d5ee2e9499a9c72477833dfccafb0b
[ "MIT" ]
null
null
null
path_test_imd = "tests/data/imd.xlsx" path_test_mat = "tests/data/mat.xlsx"
25
55
0.75
from ukw_intelli_store.cli import main from ukw_intelli_store.endomaterial import EndoMaterial path_test_imd = "tests/data/imd.xlsx" path_test_mat = "tests/data/mat.xlsx" def test_main(): assert main([]) == 0 def test_init(): em = EndoMaterial(path_test_imd, path_test_mat) def test_dgvs_keys(): em = En...
0
0
0
0
0
159
0
51
114
c58165e956f88791ce62265295e7af9606f33f81
16
py
Python
main_1.py
jayz0417/second_project
44f0912d58330e84654277b51268b30f5599ddc1
[ "MIT" ]
null
null
null
main_1.py
jayz0417/second_project
44f0912d58330e84654277b51268b30f5599ddc1
[ "MIT" ]
null
null
null
main_1.py
jayz0417/second_project
44f0912d58330e84654277b51268b30f5599ddc1
[ "MIT" ]
null
null
null
print("user 1")
8
15
0.625
print("user 1")
0
0
0
0
0
0
0
0
0
04070cd4f46b9eb0eadbd6ad622f2b8d021be30e
11,573
py
Python
pysnmp-with-texts/CISCO-MGX82XX-RPM-RSRC-PART-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/CISCO-MGX82XX-RPM-RSRC-PART-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/CISCO-MGX82XX-RPM-RSRC-PART-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CISCO-MGX82XX-RPM-RSRC-PART-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-MGX82XX-RPM-RSRC-PART-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:07:29 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Pytho...
148.371795
980
0.786054
# # PySNMP MIB module CISCO-MGX82XX-RPM-RSRC-PART-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-MGX82XX-RPM-RSRC-PART-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:07:29 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Pytho...
0
0
0
0
0
0
0
0
0
85cb17c76ba00077b48b22352c3160c6a838c796
5,108
py
Python
bin/gen_config_files.py
dannima/pae_probe_experiments-1
28e9f2b3873f21b39c377899d31c7a04da2b844b
[ "BSD-2-Clause" ]
null
null
null
bin/gen_config_files.py
dannima/pae_probe_experiments-1
28e9f2b3873f21b39c377899d31c7a04da2b844b
[ "BSD-2-Clause" ]
null
null
null
bin/gen_config_files.py
dannima/pae_probe_experiments-1
28e9f2b3873f21b39c377899d31c7a04da2b844b
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 if __name__ == '__main__': main()
38.406015
75
0.42502
#!/usr/bin/env python3 import argparse import os import sys import yaml from pathlib import Path def main(): parser = argparse.ArgumentParser( 'generate configuration files', add_help=True) parser.add_argument( 'feats_dir', nargs=None, help='directory of extracted features') parser...
0
0
0
0
0
4,947
0
-36
133
70eff2f01152c525f8b8dc057859f9aef2a73800
1,273
py
Python
setup.py
AT0myks/imbox
6cdc0f01350a6c4b7721e0b9666cb9ce272f2282
[ "MIT" ]
null
null
null
setup.py
AT0myks/imbox
6cdc0f01350a6c4b7721e0b9666cb9ce272f2282
[ "MIT" ]
null
null
null
setup.py
AT0myks/imbox
6cdc0f01350a6c4b7721e0b9666cb9ce272f2282
[ "MIT" ]
null
null
null
from setuptools import setup # Get version without importing, which avoids dependency issues setup( name='imbox', version=get_version(), description="Python IMAP for Human beings", long_description=read('README.md'), keywords='email, IMAP, parsing emails', author='Martin Rusev', author_...
28.288889
75
0.61194
from setuptools import setup import os # Get version without importing, which avoids dependency issues def get_version(): import re with open('imbox/version.py') as version_file: return re.search(r"""__version__\s+=\s+(['"])(?P<version>.+?)\1""", version_file.read()).group('ve...
0
0
0
0
0
294
0
-12
67
023af08d13a34ed97c0a6e47836ce856fe50e698
1,666
py
Python
decode.py
cardi/proofpoint-url-decoder
eef834b35faabfe3c8fdb856089151b4f7471143
[ "CC0-1.0" ]
12
2018-02-24T20:00:51.000Z
2021-08-05T16:52:55.000Z
decode.py
cardi/proofpoint-url-decoder
eef834b35faabfe3c8fdb856089151b4f7471143
[ "CC0-1.0" ]
4
2016-02-17T02:58:03.000Z
2020-05-05T06:35:50.000Z
decode.py
cardi/proofpoint-url-decoder
eef834b35faabfe3c8fdb856089151b4f7471143
[ "CC0-1.0" ]
2
2018-09-24T17:31:23.000Z
2018-11-14T15:53:28.000Z
#!/usr/bin/env python3 # # Written in 2016 by Calvin Ardi <calvin@isi.edu> # # To the extent possible under law, the author(s) have dedicated all copyright # and related and neighboring rights to this software to the public domain # worldwide. This software is distributed without any warranty. # # You should have rece...
24.865672
78
0.655462
#!/usr/bin/env python3 # # Written in 2016 by Calvin Ardi <calvin@isi.edu> # # To the extent possible under law, the author(s) have dedicated all copyright # and related and neighboring rights to this software to the public domain # worldwide. This software is distributed without any warranty. # # You should have rece...
0
0
0
0
0
0
0
0
0
b49fa7e2bb38a1cf88dd66da0115311861eadda9
6,341
py
Python
pyibisami/tools/ami_generator.py
jdpatt/PyAMI
82b4912496b7c5ca89b20974a5e93eddb2c519de
[ "BSD-2-Clause" ]
null
null
null
pyibisami/tools/ami_generator.py
jdpatt/PyAMI
82b4912496b7c5ca89b20974a5e93eddb2c519de
[ "BSD-2-Clause" ]
1
2019-03-20T01:33:20.000Z
2019-04-12T00:22:02.000Z
pyibisami/tools/ami_generator.py
jdpatt/PyAMI
82b4912496b7c5ca89b20974a5e93eddb2c519de
[ "BSD-2-Clause" ]
null
null
null
#! /usr/bin/env python """ IBIS-AMI model source code, AMI file, and IBIS file configuration utility. Original author: David Banas Original date: February 26, 2016 This script gets called from a makefile, when any of the following need rebuilding: * a C++ source code file * a ``*.AMI`` file * a ``*.IBS`` file A...
36.234286
115
0.565211
#! /usr/bin/env python """ IBIS-AMI model source code, AMI file, and IBIS file configuration utility. Original author: David Banas Original date: February 26, 2016 This script gets called from a makefile, when any of the following need rebuilding: * a C++ source code file * a ``*.AMI`` file * a ``*.IBS`` file A...
0
560
0
0
0
0
0
-9
46
7fca02acbdaee874a9f10b153ace0e59eaf7cad1
1,272
py
Python
namematcher/name.py
sansbacon/namematcher
0f6c3327784d3db5be0f59853d11604fd802a7a0
[ "MIT" ]
1
2019-05-01T04:47:29.000Z
2019-05-01T04:47:29.000Z
namematcher/name.py
sansbacon/playermatcher
0f6c3327784d3db5be0f59853d11604fd802a7a0
[ "MIT" ]
null
null
null
namematcher/name.py
sansbacon/playermatcher
0f6c3327784d3db5be0f59853d11604fd802a7a0
[ "MIT" ]
null
null
null
''' name.py Common name functions ''' import logging from nameparser import HumanName logging.getLogger(__name__).addHandler(logging.NullHandler()) def first_last(name): ''' Returns name in First Last format Args: name(str) Returns: str ''' hn = HumanName(name) return...
15.512195
68
0.543239
''' name.py Common name functions ''' import logging from nameparser import HumanName logging.getLogger(__name__).addHandler(logging.NullHandler()) def first_last(name): ''' Returns name in First Last format Args: name(str) Returns: str ''' hn = HumanName(name) return...
0
0
0
0
0
0
0
0
0
29822bb68190a23a133bc28ddc7ced8fd2e1380e
1,175
py
Python
setup.py
niall-twomey/recommender_metrics
a195ffbfdfb261bb973479a58123c0cc9ae2ae4c
[ "MIT" ]
1
2021-05-19T18:10:23.000Z
2021-05-19T18:10:23.000Z
setup.py
niall-twomey/recommender_metrics
a195ffbfdfb261bb973479a58123c0cc9ae2ae4c
[ "MIT" ]
null
null
null
setup.py
niall-twomey/recommender_metrics
a195ffbfdfb261bb973479a58123c0cc9ae2ae4c
[ "MIT" ]
null
null
null
from distutils.util import convert_path import setuptools # Load the readme with open("README.md", "r") as fh: long_description = fh.read() # Load the version info version_namespace = {} ver_path = convert_path("recommender_metrics/version.py") with open(ver_path) as ver_file: exec(ver_file.read(), version_n...
31.756757
69
0.704681
from distutils.util import convert_path import setuptools # Load the readme with open("README.md", "r") as fh: long_description = fh.read() # Load the version info version_namespace = {} ver_path = convert_path("recommender_metrics/version.py") with open(ver_path) as ver_file: exec(ver_file.read(), version_n...
0
0
0
0
0
0
0
0
0
bc2a45af624278e403bb3fb45fea1f5191ff6ddc
5,417
py
Python
renormalizer/spectra/finitet.py
liwt31/Renormalizer
123a9d53f4f5f32c0088c255475f0ee60d02c745
[ "Apache-2.0" ]
null
null
null
renormalizer/spectra/finitet.py
liwt31/Renormalizer
123a9d53f4f5f32c0088c255475f0ee60d02c745
[ "Apache-2.0" ]
null
null
null
renormalizer/spectra/finitet.py
liwt31/Renormalizer
123a9d53f4f5f32c0088c255475f0ee60d02c745
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Author: Jiajun Ren <jiajunren0522@gmail.com> import logging logger = logging.getLogger(__name__)
35.874172
115
0.634484
# -*- coding: utf-8 -*- # Author: Jiajun Ren <jiajunren0522@gmail.com> import numpy as np from renormalizer.mps import Mpo, MpDm, ThermalProp from renormalizer.spectra.base import SpectraTdMpsJobBase from renormalizer.mps.mps import BraKetPair from renormalizer.utils import CompressConfig, EvolveConfig import os impo...
0
135
0
4,841
0
0
0
111
203
5674fd5c9728b9f954621893c6f14f5e32ddb63a
1,969
py
Python
quakenet/data_io.py
AfricaMachineIntelligence/ConvNetQuake
6fea487ce0031d31cc64ad14f9ffc6a0b088a723
[ "MIT" ]
162
2017-02-10T20:13:57.000Z
2022-03-06T12:50:50.000Z
quakenet/data_io.py
VioletaSeo/ConvNetQuake
9d8bb6d41e5e3185edf3a3fc716539b910e17cfe
[ "MIT" ]
15
2017-05-25T03:58:35.000Z
2020-03-12T18:39:10.000Z
quakenet/data_io.py
VioletaSeo/ConvNetQuake
9d8bb6d41e5e3185edf3a3fc716539b910e17cfe
[ "MIT" ]
108
2017-05-25T03:19:51.000Z
2022-03-18T02:07:09.000Z
"""Handle the raw data input/output and interface with external formats.""" from obspy.core import read from obspy.core.utcdatetime import UTCDateTime import pandas as pd def load_stream(path): """Loads a Stream object from the file at path. Args: path: path to the input file, (for supported formats...
28.536232
103
0.670391
"""Handle the raw data input/output and interface with external formats.""" from obspy.core import read from obspy.core.utcdatetime import UTCDateTime import pandas as pd import datetime as dt def load_stream(path): """Loads a Stream object from the file at path. Args: path: path to the input file, ...
0
0
0
0
0
607
0
0
91
96b0b2385f546a67ce430aec7c5a1b3251ee87e9
277
py
Python
c__84.py
fhansmann/coding-challenges
eebb37565c72e05b77383c24e8273a1e4019b58e
[ "MIT" ]
null
null
null
c__84.py
fhansmann/coding-challenges
eebb37565c72e05b77383c24e8273a1e4019b58e
[ "MIT" ]
null
null
null
c__84.py
fhansmann/coding-challenges
eebb37565c72e05b77383c24e8273a1e4019b58e
[ "MIT" ]
null
null
null
subjects=["I", "You"] verbs=["Play", "Love"] objects=["Hockey","Football"] for i in range(len(subjects)): for j in range(len(verbs)): for k in range(len(objects)): sentence = "%s %s %s." % (subjects[i], verbs[j], objects[k]) print(sentence)
30.777778
72
0.559567
subjects=["I", "You"] verbs=["Play", "Love"] objects=["Hockey","Football"] for i in range(len(subjects)): for j in range(len(verbs)): for k in range(len(objects)): sentence = "%s %s %s." % (subjects[i], verbs[j], objects[k]) print(sentence)
0
0
0
0
0
0
0
0
0
444d27edb84e0134aecd2dd93a8734c3940cff4b
26
py
Python
compose/__init__.py
pareshmg/compose
cba758361499d74ef26bf281b73206e6dc12b5c9
[ "Apache-2.0" ]
2
2020-12-08T21:11:58.000Z
2021-02-19T11:59:47.000Z
compose/__init__.py
pareshmg/compose
cba758361499d74ef26bf281b73206e6dc12b5c9
[ "Apache-2.0" ]
20
2020-09-07T16:12:31.000Z
2022-03-29T22:05:14.000Z
compose/__init__.py
pareshmg/compose
cba758361499d74ef26bf281b73206e6dc12b5c9
[ "Apache-2.0" ]
1
2019-06-11T15:42:28.000Z
2019-06-11T15:42:28.000Z
__version__ = '1.28.0dev'
13
25
0.692308
__version__ = '1.28.0dev'
0
0
0
0
0
0
0
0
0
e59a74324e1f816e6c8f796417e7e26135c6bb8d
6,746
py
Python
examples/Python/XdmfExampleMap.py
scottwedge/xdmf
f41196c966997a20f60525a3d2083490a63626a3
[ "BSD-3-Clause" ]
4
2015-12-07T08:11:06.000Z
2020-06-15T01:39:07.000Z
examples/Python/XdmfExampleMap.py
scottwedge/xdmf
f41196c966997a20f60525a3d2083490a63626a3
[ "BSD-3-Clause" ]
1
2020-04-26T16:50:37.000Z
2020-04-26T16:50:37.000Z
examples/Python/XdmfExampleMap.py
scottwedge/xdmf
f41196c966997a20f60525a3d2083490a63626a3
[ "BSD-3-Clause" ]
4
2016-04-04T20:54:31.000Z
2020-06-15T01:39:08.000Z
if __name__ == "__main__": #//initialization begin exampleMap = XdmfMap.New() #//initialization end #//initializationnode begin #create attributes for each task id #the index of the node id in the attribute is the local node id map1Attribute = XdmfAttribute....
32.747573
121
0.581085
from Xdmf import * if __name__ == "__main__": #//initialization begin exampleMap = XdmfMap.New() #//initialization end #//initializationnode begin #create attributes for each task id #the index of the node id in the attribute is the local node id map1Attribu...
0
0
0
0
0
0
0
-3
22
2d6fb01b6e6bd5b2b3104188d493377d8ad5da52
1,203
py
Python
functions/shared.py
Lynxtickler/rest-api-terraform
d8b8125de80228a4bee2d8ad4ff7593b77eff121
[ "MIT" ]
null
null
null
functions/shared.py
Lynxtickler/rest-api-terraform
d8b8125de80228a4bee2d8ad4ff7593b77eff121
[ "MIT" ]
4
2021-10-16T06:37:28.000Z
2022-01-05T19:49:44.000Z
functions/shared.py
Lynxtickler/rest-api-terraform
d8b8125de80228a4bee2d8ad4ff7593b77eff121
[ "MIT" ]
1
2021-11-22T14:24:17.000Z
2021-11-22T14:24:17.000Z
import boto3 TABLE_NAME = 'Quotes' DAILY_RESOURCE_NAME = 'daily' dynamodb = boto3.resource('dynamodb') table = dynamodb.Table(TABLE_NAME)
27.340909
81
0.677473
import json import traceback import boto3 from boto3.dynamodb.conditions import Attr TABLE_NAME = 'Quotes' DAILY_RESOURCE_NAME = 'daily' dynamodb = boto3.resource('dynamodb') table = dynamodb.Table(TABLE_NAME) def response(code=200, headers=None, body='', encode=False): if not headers: headers = {'Conte...
0
0
0
0
0
895
0
6
158
2647696ce205cc1642aeaa417b1a7a5955aaec8e
4,474
py
Python
Carteira.py
racoba/AppCarteiraPY
a95749ccbf453b40ecaccedba090b78a922cddc5
[ "MIT" ]
null
null
null
Carteira.py
racoba/AppCarteiraPY
a95749ccbf453b40ecaccedba090b78a922cddc5
[ "MIT" ]
null
null
null
Carteira.py
racoba/AppCarteiraPY
a95749ccbf453b40ecaccedba090b78a922cddc5
[ "MIT" ]
null
null
null
import numpy as np; import matplotlib.pyplot as plt; from pandas_datareader import data as web import yfinance as yf yf.pdr_override() import os import dadosCart as c somaPal=0 somaEu=0 rentTotal=0 decisao=1 while decisao!=5: os.system('cls') decisao = int(input('Digite o que voc deseja fazer:\n1-Calcular c...
38.568966
268
0.524139
import numpy as np; import pandas as pd import matplotlib.pyplot as plt; from pandas_datareader import data as web import yfinance as yf yf.pdr_override() import os import dadosCart as c somaPal=0 somaEu=0 rentTotal=0 decisao=1 while decisao!=5: os.system('cls') decisao = int(input('Digite o que você deseja...
56
0
0
0
0
0
0
-2
22
5cd05fd5f965eaf7a1a4a0b1f9bcc7674c613cb6
136
py
Python
Ago-Dic-2019/JOSE ONOFRE/PRACTICAS/Practica1/Names.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
41
2017-09-26T09:36:32.000Z
2022-03-19T18:05:25.000Z
Ago-Dic-2019/JOSE ONOFRE/PRACTICAS/Practica1/Names.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
67
2017-09-11T05:06:12.000Z
2022-02-14T04:44:04.000Z
Ago-Dic-2019/JOSE ONOFRE/PRACTICAS/Practica1/Names.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
210
2017-09-01T00:10:08.000Z
2022-03-19T18:05:12.000Z
names = ['Juan','Pedro','Alejandro','Roberto','Enrique'] print(names[0]) print(names[1]) print(names[2]) print(names[3]) print(names[4])
22.666667
56
0.676471
names = ['Juan','Pedro','Alejandro','Roberto','Enrique'] print(names[0]) print(names[1]) print(names[2]) print(names[3]) print(names[4])
0
0
0
0
0
0
0
0
0
bff90483e6a444cb5f10ac00e642caca1f6c71ca
504
py
Python
tests/test_basic_shell.py
TheFriendlyCoder/FriendlyShell
8508c09e787cb8f0fc44c2a9e2587e8d4eec555c
[ "Apache-2.0" ]
null
null
null
tests/test_basic_shell.py
TheFriendlyCoder/FriendlyShell
8508c09e787cb8f0fc44c2a9e2587e8d4eec555c
[ "Apache-2.0" ]
93
2018-04-21T01:03:06.000Z
2019-06-23T14:22:37.000Z
tests/test_basic_shell.py
TheFriendlyCoder/FriendlyShell
8508c09e787cb8f0fc44c2a9e2587e8d4eec555c
[ "Apache-2.0" ]
null
null
null
import pytest if __name__ == "__main__": pytest.main([__file__, "-v", "-s"])
26.526316
62
0.668651
import platform from friendlyshell.basic_shell import BasicShell import pytest from mock import patch @pytest.mark.skipif(platform.python_implementation()=="PyPy", reason="Test not supported on PyPy") def test_init(): obj = BasicShell() with patch('friendlyshell.base_shell.input') as Mock...
0
310
0
0
0
0
0
22
89
ed3b5929aff7dcafb1020e00298084831d34d5d6
10,294
py
Python
tests/app/tests/test_webpack.py
codetigerco/django-webpack-loader
5e14eb3b82a92226b27788a08ac8bf08d6eb131e
[ "MIT" ]
null
null
null
tests/app/tests/test_webpack.py
codetigerco/django-webpack-loader
5e14eb3b82a92226b27788a08ac8bf08d6eb131e
[ "MIT" ]
null
null
null
tests/app/tests/test_webpack.py
codetigerco/django-webpack-loader
5e14eb3b82a92226b27788a08ac8bf08d6eb131e
[ "MIT" ]
3
2020-06-19T15:41:19.000Z
2020-10-05T08:58:10.000Z
import os from django.conf import settings BUNDLE_PATH = os.path.join(settings.BASE_DIR, 'assets/bundles/') DEFAULT_CONFIG = 'DEFAULT'
41.676113
146
0.61191
import json import os import time from subprocess import call from threading import Thread import django from django.conf import settings from django.test import RequestFactory, TestCase from django.views.generic.base import TemplateView from django_jinja.builtins import DEFAULT_EXTENSIONS from unittest2 import skipIf...
0
822
0
8,837
0
0
0
231
266
84fd261465f62516dc0af20810d688ccad73a067
2,863
py
Python
coyote_framework/util/apps/parallel.py
vaibhavrastogi1988/python_testing_framework
583a2286479ed0ccda309c866a403dc92fa1bb3b
[ "MIT" ]
null
null
null
coyote_framework/util/apps/parallel.py
vaibhavrastogi1988/python_testing_framework
583a2286479ed0ccda309c866a403dc92fa1bb3b
[ "MIT" ]
null
null
null
coyote_framework/util/apps/parallel.py
vaibhavrastogi1988/python_testing_framework
583a2286479ed0ccda309c866a403dc92fa1bb3b
[ "MIT" ]
null
null
null
from multiprocessing import Process, Queue def run_parallel(*functions): """Runs a series of functions in parallel. Return values are ordered by the order in which their functions were passed. >>> val1, val2 = run_parallel( >>> lambda: 1 + 1 >>> lambda: 0 >>> ) I...
37.671053
120
0.648271
from multiprocessing import Process, Queue import warnings class ErrorInProcessException(RuntimeError): """Exception raised when one or more parallel processes raises an exception""" def __init__(self, message, errors, *args, **kwargs): self.message = message self.errors = errors sup...
0
0
0
418
0
395
0
-6
71
052059728aad75e7ecd44a97f4cab5c5b0b4bbc9
898
py
Python
ms2ldaviz/update_features.py
RP0001/ms2ldaviz
35ae516f5d3ec9d1a348e8308a4ea50f3ebcdfd7
[ "MIT" ]
null
null
null
ms2ldaviz/update_features.py
RP0001/ms2ldaviz
35ae516f5d3ec9d1a348e8308a4ea50f3ebcdfd7
[ "MIT" ]
null
null
null
ms2ldaviz/update_features.py
RP0001/ms2ldaviz
35ae516f5d3ec9d1a348e8308a4ea50f3ebcdfd7
[ "MIT" ]
null
null
null
# Script to add the min and max mz values to feature objects # takes as input the path of a dictionary file that must have a 'features' key import os import pickle import numpy as np import sys os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ms2ldaviz.settings") import django django.setup() from basicviz.models im...
25.657143
78
0.717149
# Script to add the min and max mz values to feature objects # takes as input the path of a dictionary file that must have a 'features' key import os import pickle import numpy as np import sys os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ms2ldaviz.settings") import django django.setup() from basicviz.models im...
0
0
0
0
0
0
0
-1
0
942405e40afdd88558f03c151717b3c3dd3b1fe0
2,282
py
Python
octavia-cli/octavia_cli/init/commands.py
faros-ai/airbyte
2ebafe1817a71b5c0a8f8b6f448dbef9db708668
[ "MIT" ]
22
2020-08-27T00:47:20.000Z
2020-09-17T15:39:39.000Z
octavia-cli/octavia_cli/init/commands.py
burmecia/airbyte
b9f79ccdf085ae69cff8743fc3f3191ef2b579d9
[ "MIT" ]
116
2020-08-27T01:11:27.000Z
2020-09-19T02:47:52.000Z
octavia-cli/octavia_cli/init/commands.py
burmecia/airbyte
b9f79ccdf085ae69cff8743fc3f3191ef2b579d9
[ "MIT" ]
1
2020-09-15T06:10:01.000Z
2020-09-15T06:10:01.000Z
# # Copyright (c) 2022 Airbyte, Inc., all rights reserved. # import importlib.resources as pkg_resources from pathlib import Path from . import example_files DIRECTORIES_TO_CREATE = {"connections", "destinations", "sources"} DEFAULT_API_HEADERS_FILE_CONTENT = pkg_resources.read_text(example_files, "example_api_http_...
38.677966
106
0.738826
# # Copyright (c) 2022 Airbyte, Inc., all rights reserved. # import importlib.resources as pkg_resources import os from pathlib import Path from typing import Iterable, Tuple import click from octavia_cli.base_commands import OctaviaCommand from . import example_files DIRECTORIES_TO_CREATE = {"connections", "destin...
16
1,037
0
0
0
660
0
23
158
8315d2c7afb85dde1c99d1c84afee33fbbff73e6
5,734
py
Python
applets/playgrounds/plots_playground.py
xenomarz/deep-signature
f831f05971727c5d00cf3b5c556b6a8b658048df
[ "MIT" ]
null
null
null
applets/playgrounds/plots_playground.py
xenomarz/deep-signature
f831f05971727c5d00cf3b5c556b6a8b658048df
[ "MIT" ]
null
null
null
applets/playgrounds/plots_playground.py
xenomarz/deep-signature
f831f05971727c5d00cf3b5c556b6a8b658048df
[ "MIT" ]
null
null
null
# python peripherals import os import sys sys.path.insert(1, os.path.join(sys.path[0], '../..')) # numpy import numpy # pandas # ipython # matplotlib import matplotlib.pyplot as plt import matplotlib.ticker as ticker # pytorch import torch # deep signature from deep_signature.data_generation.curve_generation impo...
36.062893
121
0.844785
# python peripherals import random import os import sys import math sys.path.insert(1, os.path.join(sys.path[0], '../..')) # numpy import numpy # pandas import pandas # ipython from IPython.display import display, HTML # matplotlib import matplotlib.pyplot as plt import matplotlib.ticker as ticker import matplotlib...
0
0
0
0
0
0
0
344
352
ff094f9844c007f21c1361d067d8f484dff418e6
27,270
py
Python
pokeminer/notification.py
levijoseph/Levi
e8058933e8830fa07c6fbecbb15a0b3c585b402d
[ "MIT" ]
null
null
null
pokeminer/notification.py
levijoseph/Levi
e8058933e8830fa07c6fbecbb15a0b3c585b402d
[ "MIT" ]
null
null
null
pokeminer/notification.py
levijoseph/Levi
e8058933e8830fa07c6fbecbb15a0b3c585b402d
[ "MIT" ]
null
null
null
from . import config # set unset config options to None for variable_name in ('PB_API_KEY', 'PB_CHANNEL', 'TWITTER_CONSUMER_KEY', 'TWITTER_CONSUMER_SECRET', 'TWITTER_ACCESS_KEY', 'TWITTER_ACCESS_SECRET', 'LANDMARKS', 'AREA_NAME', 'HASHTAGS', 'TZ_OFFSET'...
38.901569
121
0.579941
from datetime import datetime, timedelta, timezone from collections import deque from math import sqrt from time import monotonic from logging import getLogger from pkg_resources import resource_stream from tempfile import NamedTemporaryFile from .utils import load_pickle, dump_pickle from .db import Session, get_poke...
0
362
0
23,170
0
0
0
206
464
f1c1bf77c34041980fcc84957b781098ab32a71f
3,159
py
Python
AbletonLiveScripts/v10/ComradeEncoders/skin.py
lzref/ComradeEncoders
154a10d7d1c83e6b8f28af7f19ee6cb2a45a88e9
[ "MIT" ]
1
2021-11-26T01:52:30.000Z
2021-11-26T01:52:30.000Z
AbletonLiveScripts/v10/ComradeEncoders/skin.py
lzref/ComradeEncoders
154a10d7d1c83e6b8f28af7f19ee6cb2a45a88e9
[ "MIT" ]
null
null
null
AbletonLiveScripts/v10/ComradeEncoders/skin.py
lzref/ComradeEncoders
154a10d7d1c83e6b8f28af7f19ee6cb2a45a88e9
[ "MIT" ]
1
2021-11-26T01:52:31.000Z
2021-11-26T01:52:31.000Z
# uncompyle6 version 3.4.1 # Python bytecode 2.7 (62211) # Decompiled from: Python 2.7.16 (v2.7.16:413a49145e, Mar 2 2019, 14:32:10) # [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] # Embedded file name: /Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/SL_MkIII/ski...
25.475806
132
0.600823
# uncompyle6 version 3.4.1 # Python bytecode 2.7 (62211) # Decompiled from: Python 2.7.16 (v2.7.16:413a49145e, Mar 2 2019, 14:32:10) # [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] # Embedded file name: /Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/SL_MkIII/ski...
0
0
0
2,614
0
0
0
2
45
21379215feb06f7d3c18bd160f2818dca2bcd3d0
186
py
Python
1117 - Validacao de Nota.py
le16bits/URI---Python
9d22ae74f008104bc9c3c0e2d5f8cd59303bc1db
[ "Apache-2.0" ]
null
null
null
1117 - Validacao de Nota.py
le16bits/URI---Python
9d22ae74f008104bc9c3c0e2d5f8cd59303bc1db
[ "Apache-2.0" ]
null
null
null
1117 - Validacao de Nota.py
le16bits/URI---Python
9d22ae74f008104bc9c3c0e2d5f8cd59303bc1db
[ "Apache-2.0" ]
null
null
null
med=0 c=0 while c!=2: n=float(input()) if n>=0 and n<=10: med=med+n c=c+1 else: print("nota invalida") med=med/2 print("media = %.2f" %med)
14.307692
32
0.467742
med=0 c=0 while c!=2: n=float(input()) if n>=0 and n<=10: med=med+n c=c+1 else: print("nota invalida") med=med/2 print("media = %.2f" %med)
0
0
0
0
0
0
0
0
0
9bd8849c7f1a7f3654e2873c3d90677a63dbc9bc
517
py
Python
atcoder/agc/agc026_b.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
1
2018-11-12T15:18:55.000Z
2018-11-12T15:18:55.000Z
atcoder/agc/agc026_b.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
null
null
null
atcoder/agc/agc026_b.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
null
null
null
for _ in range(int(input())): A, B, C, D = map(int, input().split()) if A < B or C + D < B: print("No") continue elif C >= B - 1: print("Yes") continue ret = [] s_set = set() now = A while True: now %= B if now in s_set: print("Yes"...
20.68
42
0.382979
for _ in range(int(input())): A, B, C, D = map(int, input().split()) if A < B or C + D < B: print("No") continue elif C >= B - 1: print("Yes") continue ret = [] s_set = set() now = A while True: now %= B if now in s_set: print("Yes"...
0
0
0
0
0
0
0
0
0
988add07bc2ff22289d10f731798d2cfd279ae40
3,529
py
Python
program files/plot_3d.py
FiZ-ix/FSAE-Tyre-Analysis
f41a6f84c221404983e6a8af5341aa2193126c4d
[ "MIT" ]
3
2020-10-23T13:03:35.000Z
2020-11-01T01:41:55.000Z
program files/plot_3d.py
FiZ-ix/FSAE-Tyre-Analysis
f41a6f84c221404983e6a8af5341aa2193126c4d
[ "MIT" ]
null
null
null
program files/plot_3d.py
FiZ-ix/FSAE-Tyre-Analysis
f41a6f84c221404983e6a8af5341aa2193126c4d
[ "MIT" ]
null
null
null
''' A.Q. Snyder TFR Tire Data Analysis this code is written to analyze the TTC FSAE tire data the code is written in a linear, easy to read format catered towards an engineering mindset rather than efficient software Contact: aaron.snyder@temple.edu for help running or understanding the program ''' #_____________...
34.940594
137
0.731935
''' A.Q. Snyder TFR Tire Data Analysis this code is written to analyze the TTC FSAE tire data the code is written in a linear, easy to read format catered towards an engineering mindset rather than efficient software Contact: aaron.snyder@temple.edu for help running or understanding the program ''' #_____________...
0
0
0
0
0
0
0
0
0
e32f3c14c79545ff05c55c5bc297341537edf039
4,614
py
Python
clickhouse.py
RaviTejaKomma/clickhouse-data-backup
f6f001346b94ab198068f424b008374e97302b5b
[ "MIT" ]
1
2021-11-29T10:46:46.000Z
2021-11-29T10:46:46.000Z
clickhouse.py
RaviTejaKomma/clickhouse-data-backup
f6f001346b94ab198068f424b008374e97302b5b
[ "MIT" ]
null
null
null
clickhouse.py
RaviTejaKomma/clickhouse-data-backup
f6f001346b94ab198068f424b008374e97302b5b
[ "MIT" ]
null
null
null
from clickhouse_driver import Client def connect_db(): ''' Creates a connection to the CLickhouse database. :return: Error if some exception occurred else tuple containing connection object and None. ''' try: client = Client(host='localhost') except Exception as e: print("Excep...
34.954545
193
0.651062
from clickhouse_driver import Client from utils import * from configs.default import * def connect_db(): ''' Creates a connection to the CLickhouse database. :return: Error if some exception occurred else tuple containing connection object and None. ''' try: client = Client(host='localhost...
0
0
0
0
0
0
0
6
44
70f243da8ea27dfd8b48b82b37efe2226ca86dd1
3,967
py
Python
dynaconf/base.py
rochacbruno/dynaconf_ng
2127ce78c511047f4aa9499a826caf842dcdf036
[ "MIT" ]
6
2021-07-08T05:53:26.000Z
2022-03-02T15:11:42.000Z
dynaconf/base.py
rochacbruno/dynaconf_ng
2127ce78c511047f4aa9499a826caf842dcdf036
[ "MIT" ]
1
2021-07-13T13:49:43.000Z
2021-07-13T13:49:43.000Z
dynaconf/base.py
rochacbruno/dynaconf_ng
2127ce78c511047f4aa9499a826caf842dcdf036
[ "MIT" ]
null
null
null
from pydantic import Field SettingsField = Field # noqa """Extendable settings field"""
31.23622
79
0.586337
from pathlib import Path from typing import Any, Optional, Union from pydantic import BaseModel, BaseSettings, Extra, Field SettingsField = Field # noqa """Extendable settings field""" class BaseDynaconf: """Extendable model""" def _d_get_value(self, key: str, default: Any = None) -> Any: """Get ...
0
0
0
3,706
0
0
0
53
113
6441c7d1b42e0ec4602b09d8c03ae526ed933d76
1,728
py
Python
GUI/printer/Pillow-2.7.0/Tests/test_image_mode.py
y-gupta/rfid-auth-system
44f3de884d05e1906757b97f0a1a140469a3290f
[ "Apache-2.0" ]
5
2015-01-21T14:13:34.000Z
2016-05-14T06:53:38.000Z
GUI/printer/Pillow-2.7.0/Tests/test_image_mode.py
1upon0/rfid-auth-system
44f3de884d05e1906757b97f0a1a140469a3290f
[ "Apache-2.0" ]
null
null
null
GUI/printer/Pillow-2.7.0/Tests/test_image_mode.py
1upon0/rfid-auth-system
44f3de884d05e1906757b97f0a1a140469a3290f
[ "Apache-2.0" ]
3
2015-02-01T17:10:39.000Z
2019-12-05T05:21:42.000Z
from helper import unittest if __name__ == '__main__': unittest.main() # End of file
29.793103
71
0.489583
from helper import unittest, PillowTestCase, hopper from PIL import Image class TestImageMode(PillowTestCase): def test_sanity(self): im = hopper() im.mode from PIL import ImageMode ImageMode.getmode("1") ImageMode.getmode("L") ImageMode.getmode("P") Im...
0
0
0
1,565
0
0
0
24
46
eab6c257c582df55a8d67f6190eb0e09bd9ee002
5,713
py
Python
pvlibs/data_import/loana.py
bfw930/pvlibs
94bed6cbca1b349eac29136d6703959aeb61bf29
[ "MIT" ]
null
null
null
pvlibs/data_import/loana.py
bfw930/pvlibs
94bed6cbca1b349eac29136d6703959aeb61bf29
[ "MIT" ]
5
2020-03-24T17:26:11.000Z
2020-12-15T04:39:42.000Z
pvlibs/data_import/loana.py
bfw930/pvlibs
94bed6cbca1b349eac29136d6703959aeb61bf29
[ "MIT" ]
null
null
null
''' Functions Summary: This file contains Example: Usage of Todo: * ''' ''' Imports ''' # data array handling import numpy as np # data table handling ''' Current-Voltage File Format Parse Functions ''' def type_loana(file_path): ''' Parse HALM Current-Voltage Format Import cur...
24.731602
117
0.561001
''' Functions Summary: This file contains Example: Usage of Todo: * ''' ''' Imports ''' # data array handling import numpy as np # data table handling import pandas as pd from operator import itemgetter from itertools import groupby ''' Current-Voltage File Format Parse Functions ''' def ty...
0
0
0
0
0
0
0
16
67
109fa9280bd1e97603de17491d9fb060284caed0
2,121
py
Python
test/unit/core/hooks/test_HooksRegistry.py
novopl/peltak
7c8ac44f994d923091a534870960fdae1e15e95e
[ "Apache-2.0" ]
6
2015-09-10T13:20:34.000Z
2021-02-15T08:10:27.000Z
test/unit/core/hooks/test_HooksRegistry.py
novopl/peltak
7c8ac44f994d923091a534870960fdae1e15e95e
[ "Apache-2.0" ]
41
2015-09-09T12:44:55.000Z
2021-06-01T23:25:56.000Z
test/unit/core/hooks/test_HooksRegistry.py
novopl/peltak
7c8ac44f994d923091a534870960fdae1e15e95e
[ "Apache-2.0" ]
null
null
null
# pylint: disable=missing-docstring
23.054348
65
0.7124
# pylint: disable=missing-docstring from unittest.mock import Mock import pytest from peltak.core.hooks import HooksRegister def test_is_called_when_subscribed(): fake_handler = Mock() register = HooksRegister() register('fake-hook')(fake_handler) register.call('fake-hook') fake_handler.assert...
0
85
0
0
0
1,717
0
23
252
6793f836930f73e131d4395418728751c84330db
2,155
py
Python
backend/src/tests/test_datasets.py
VarityPlatform/lablr
f6eee78f5eb352f21c849a5ee72ee23b418167e1
[ "MIT" ]
1
2021-09-20T18:21:15.000Z
2021-09-20T18:21:15.000Z
backend/src/tests/test_datasets.py
VarityPlatform/lablr
f6eee78f5eb352f21c849a5ee72ee23b418167e1
[ "MIT" ]
null
null
null
backend/src/tests/test_datasets.py
VarityPlatform/lablr
f6eee78f5eb352f21c849a5ee72ee23b418167e1
[ "MIT" ]
null
null
null
""" Test datasets """ from fastapi.testclient import TestClient from main import app, PREFIX client = TestClient(app) EXAMPLE_DATASET_BODY = { "name": "Unit Test Dataset", "description": "Dataset created during a unit test", "labels": [ { "name": "Boolean", "variant": "bo...
25.963855
83
0.657077
""" Test datasets """ from fastapi.testclient import TestClient from main import app, PREFIX client = TestClient(app) EXAMPLE_DATASET_BODY = { "name": "Unit Test Dataset", "description": "Dataset created during a unit test", "labels": [ { "name": "Boolean", "variant": "bo...
0
0
0
0
0
0
0
0
0
6fa132238cc81afebcb7ad528f8226ca00e5c954
1,484
py
Python
stego/mainPage/pythonScripts/decodification_commas.py
alexauf/steganographyLab
57d47d81f9e6b076740d817e7334270420e0c489
[ "Apache-2.0" ]
null
null
null
stego/mainPage/pythonScripts/decodification_commas.py
alexauf/steganographyLab
57d47d81f9e6b076740d817e7334270420e0c489
[ "Apache-2.0" ]
null
null
null
stego/mainPage/pythonScripts/decodification_commas.py
alexauf/steganographyLab
57d47d81f9e6b076740d817e7334270420e0c489
[ "Apache-2.0" ]
null
null
null
#If len > 0, the HTML line given contains single and/or double quotation marks #Takes the HTML lines with quotation marks and returns the codification #depending on if it has single or double quotation marks. if __name__ == "__main__": # test_bits_total() # test_num_attributes_line() main()
20.328767
78
0.588275
import os import re #If len > 0, the HTML line given contains single and/or double quotation marks def quotation_marks_lines (input): re_list = [r'"(.*?)"', r"'(.*?)'"] matches = [] for r in re_list: matches += re.findall(r, input) return len(matches) def total_capacity (input): maxbit...
0
0
0
0
0
1,060
0
-24
134
88d13ee6499a366bc31e75cade118cbe9a24e1e1
1,955
py
Python
copy_timecode.py
flow-dev/CopyTimecodeAtoB
5e4852dbff6d128b00160bddc20da5b222fe4f33
[ "MIT" ]
null
null
null
copy_timecode.py
flow-dev/CopyTimecodeAtoB
5e4852dbff6d128b00160bddc20da5b222fe4f33
[ "MIT" ]
null
null
null
copy_timecode.py
flow-dev/CopyTimecodeAtoB
5e4852dbff6d128b00160bddc20da5b222fe4f33
[ "MIT" ]
null
null
null
import argparse from video_ffmpeg_utils import VideoFfmpegUtils """ Copy Timecode and enc ProResHQ or h265 Example: python3 copy_timecode.py \ --video-src "PATH_TO_VIDEO_SRC" \ --video-out "PATH_TO_VIDEO_OUT" \ --codec h265 \ --copy-tc \ """ # --------------- Arguments ----------...
31.031746
120
0.662916
import argparse import glob import os from video_ffmpeg_utils import VideoFfmpegUtils """ Copy Timecode and enc ProResHQ or h265 Example: python3 copy_timecode.py \ --video-src "PATH_TO_VIDEO_SRC" \ --video-out "PATH_TO_VIDEO_OUT" \ --codec h265 \ --copy-tc \ """ # --------------...
0
0
0
0
0
0
0
-22
44
663ab76b35a4777947c738b5b827fe96066f92dc
53,509
py
Python
idpmodem/codecs/common.py
Inmarsat/idpmodem
2b77f7ead25fa71a390fb4eb97ae966a464d6132
[ "Apache-2.0" ]
3
2021-01-07T16:01:54.000Z
2021-12-19T04:15:12.000Z
idpmodem/codecs/common.py
Inmarsat/idpmodem
2b77f7ead25fa71a390fb4eb97ae966a464d6132
[ "Apache-2.0" ]
1
2021-12-17T15:09:06.000Z
2021-12-17T15:09:06.000Z
idpmodem/codecs/common.py
Inmarsat/idpmodem
2b77f7ead25fa71a390fb4eb97ae966a464d6132
[ "Apache-2.0" ]
2
2019-02-06T09:02:40.000Z
2020-03-17T02:55:16.000Z
"""Codec functions for IDP Common Message Format supported by Inmarsat MGS. Also supported on ORBCOMM IGWS1. """ from math import log2, ceil import xml.etree.ElementTree as ET __version__ = '2.0.0' DATA_TYPES = { 'bool': 'BooleanField', 'int_8': 'SignedIntField', 'uint_8': 'UnsignedIntField', 'int_1...
35.912081
85
0.556617
"""Codec functions for IDP Common Message Format supported by Inmarsat MGS. Also supported on ORBCOMM IGWS1. """ from binascii import b2a_base64 from math import log2, ceil from struct import pack, unpack from typing import Tuple, Union from warnings import WarningMessage, warn import xml.etree.ElementTree as ET from...
0
8,319
0
41,731
0
1,292
0
125
571
884d81afcabb1bff852b98a3da835296414d403e
1,109
py
Python
Python Essential Training/StructuredData.py
RaghuBhogireddy/python
2f4a0118715dcf6829dc72b32256d5cb1e6df19f
[ "Apache-2.0" ]
null
null
null
Python Essential Training/StructuredData.py
RaghuBhogireddy/python
2f4a0118715dcf6829dc72b32256d5cb1e6df19f
[ "Apache-2.0" ]
null
null
null
Python Essential Training/StructuredData.py
RaghuBhogireddy/python
2f4a0118715dcf6829dc72b32256d5cb1e6df19f
[ "Apache-2.0" ]
null
null
null
if __name__ == "__main__" : main()
26.404762
101
0.542831
def main(): lists() tuples() dictionaries() def lists(): # Lists are mutable means we can alter the data in the List Object game = ['Rock', 'Paper', 'Scissors', 'Lizard', 'Spark'] # We can add items using append game.append('Cricket') print(game) print('=====================') ...
0
0
0
0
0
978
0
0
92
7dbd1e9b99127d118ff1370eda23f186ecbe47ac
82
py
Python
tests/__init__.py
omarvaneer/pharynx_redox
ffcd5733fd0823244f50590951e9af0bc9ae2518
[ "MIT" ]
2
2018-06-08T12:45:03.000Z
2018-07-13T04:17:01.000Z
tests/__init__.py
omarvaneer/pharynx_redox
ffcd5733fd0823244f50590951e9af0bc9ae2518
[ "MIT" ]
17
2020-03-18T11:43:39.000Z
2020-07-21T18:04:25.000Z
tests/__init__.py
half-adder/pharynx_redox
a5b99f6afb4a36a021d0439bb15d2c826de605b1
[ "MIT" ]
3
2021-07-21T16:14:28.000Z
2021-07-27T15:38:39.000Z
from pathlib import Path TEST_DATA_DIR = Path("/Users/sean/code/pharedox/data")
16.4
54
0.768293
from pathlib import Path TEST_DATA_DIR = Path("/Users/sean/code/pharedox/data")
0
0
0
0
0
0
0
0
0
d9df54afb8190932c8344788b1e8fec7824d4429
4,582
py
Python
fastproject/modules/users/service.py
jorge4larcon/fastproject
0a091940c22e27d813f38819027081314d334c22
[ "MIT" ]
12
2022-02-11T04:03:17.000Z
2022-02-15T03:34:50.000Z
fastproject/modules/users/service.py
jorge4larcon/fastproject
0a091940c22e27d813f38819027081314d334c22
[ "MIT" ]
null
null
null
fastproject/modules/users/service.py
jorge4larcon/fastproject
0a091940c22e27d813f38819027081314d334c22
[ "MIT" ]
1
2022-02-13T02:55:50.000Z
2022-02-13T02:55:50.000Z
"""Service module.""" from ... import config
34.712121
80
0.691619
"""Service module.""" import datetime import uuid import zoneinfo from typing import Any, Optional from ... import config from ...utils import encoding from . import password_hashing, repository async def create_user( username: str, email: str, first_name: str, last_name: str, password: str, ...
0
0
4,289
0
0
0
0
18
225
45c50b07d8e2b5ce4b964895748ab5d6910015ff
1,091
py
Python
pySnowRadar/algorithms/GSFC.py
kingjml/pySnowRadar
a64721c3a84f255aa3bb9b872682a79969f7b1be
[ "MIT" ]
4
2020-06-04T00:25:46.000Z
2021-12-17T15:08:35.000Z
pySnowRadar/algorithms/GSFC.py
kingjml/pySnowRadar
a64721c3a84f255aa3bb9b872682a79969f7b1be
[ "MIT" ]
7
2020-02-19T11:34:26.000Z
2020-10-02T12:52:17.000Z
pySnowRadar/algorithms/GSFC.py
kingjml/pySnowRadar
a64721c3a84f255aa3bb9b872682a79969f7b1be
[ "MIT" ]
null
null
null
import numpy as np def GSFC_NK(data, **kwargs): ''' Picker algorithm by NASA Goddard Arguments must include the snowradar trace data itself (passed as a 1D float array) as well as any parameters required by the algorithm for layer-picking Only 2 picked layers are expected 1. air-snow lay...
33.060606
99
0.694775
import numpy as np def GSFC_NK(data, **kwargs): ''' Picker algorithm by NASA Goddard Arguments must include the snowradar trace data itself (passed as a 1D float array) as well as any parameters required by the algorithm for layer-picking Only 2 picked layers are expected 1. air-snow lay...
0
0
0
0
0
0
0
0
0
bd76b89d924fd22fe938563772ebe5dbb2038dcc
205
py
Python
xarray_schema/types.py
carbonplan/xarray-schema
0af2699ccc06b8028acff138deb452000c7bea86
[ "MIT" ]
16
2021-11-08T17:38:16.000Z
2022-03-22T12:06:01.000Z
xarray_schema/types.py
carbonplan/xarray-schema
0af2699ccc06b8028acff138deb452000c7bea86
[ "MIT" ]
25
2021-11-18T06:18:43.000Z
2022-03-31T06:26:42.000Z
xarray_schema/types.py
carbonplan/xarray-schema
0af2699ccc06b8028acff138deb452000c7bea86
[ "MIT" ]
2
2021-11-08T20:46:01.000Z
2022-03-14T16:50:53.000Z
from typing import Dict, Tuple, Union DimsT = Tuple[Union[str, None]] ShapeT = Tuple[Union[int, None]] ChunksT = Union[bool, Dict[str, Union[int, None]]]
25.625
50
0.721951
from typing import Dict, Tuple, Union from numpy.typing import DTypeLike # noqa: F401 DimsT = Tuple[Union[str, None]] ShapeT = Tuple[Union[int, None]] ChunksT = Union[bool, Dict[str, Union[int, None]]]
0
0
0
0
0
0
0
13
37
997f062bf1fa44535ddbcb9d6600f67079e41a9f
1,008
py
Python
setup.py
Hi-king/redshells
de1bd1c7c95355a0b7f5920dacad7351d065bd4d
[ "MIT" ]
null
null
null
setup.py
Hi-king/redshells
de1bd1c7c95355a0b7f5920dacad7351d065bd4d
[ "MIT" ]
null
null
null
setup.py
Hi-king/redshells
de1bd1c7c95355a0b7f5920dacad7351d065bd4d
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() install_requires = [ 'luigi', 'gokart>=0.1.20', 'python-dateutil==2.7.5', ...
27.243243
125
0.673611
from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() install_requires = [ 'luigi', 'gokart>=0.1.20', 'python-dateutil==2.7.5', ...
0
0
0
0
0
0
0
0
0
4522b1410f732f09ed17b24de0fed7e2b5760f44
3,020
py
Python
rio_viz/scripts/cli.py
bradh/rio-viz
bc73a06c09e49b19541543f1e758109466ca17f8
[ "MIT" ]
null
null
null
rio_viz/scripts/cli.py
bradh/rio-viz
bc73a06c09e49b19541543f1e758109466ca17f8
[ "MIT" ]
null
null
null
rio_viz/scripts/cli.py
bradh/rio-viz
bc73a06c09e49b19541543f1e758109466ca17f8
[ "MIT" ]
null
null
null
"""rio_viz.cli."""
31.789474
90
0.613245
"""rio_viz.cli.""" import os import tempfile from contextlib import contextmanager, ExitStack import click from rio_viz import app, raster from rio_cogeo.cogeo import cog_validate, cog_translate from rio_cogeo.profiles import cog_profiles @contextmanager def TemporaryRasterFile(dst_path, suffix=".tif"): """Cre...
0
2,048
0
658
0
0
0
66
226
ddf8a80c9ef40019459999285c100aa0e114c9b4
1,040
py
Python
solo/migrations/0001_initial.py
Saket-Komawar/Forex
a470cb59cc0e9d4ed71713975cd8d2f778540100
[ "Apache-2.0" ]
null
null
null
solo/migrations/0001_initial.py
Saket-Komawar/Forex
a470cb59cc0e9d4ed71713975cd8d2f778540100
[ "Apache-2.0" ]
2
2020-06-05T17:30:33.000Z
2021-06-10T18:53:59.000Z
solo/migrations/0001_initial.py
Saket-Komawar/Forex
a470cb59cc0e9d4ed71713975cd8d2f778540100
[ "Apache-2.0" ]
2
2017-02-01T09:24:27.000Z
2017-02-05T17:09:02.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-01-24 09:04 from __future__ import unicode_literals
29.714286
114
0.567308
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-01-24 09:04 from __future__ import unicode_literals from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateMo...
0
0
0
832
0
0
0
26
68
23fc7876e4e6e46fbb838f9d38c3d65f4947fba6
26,623
py
Python
sequana/scripts/main.py
ddesvillechabrol/sequana
c92d6071e782df78566fffd15ad619c8c3df6fe3
[ "BSD-3-Clause" ]
null
null
null
sequana/scripts/main.py
ddesvillechabrol/sequana
c92d6071e782df78566fffd15ad619c8c3df6fe3
[ "BSD-3-Clause" ]
null
null
null
sequana/scripts/main.py
ddesvillechabrol/sequana
c92d6071e782df78566fffd15ad619c8c3df6fe3
[ "BSD-3-Clause" ]
null
null
null
#-*- coding: utf-8 -*- #import click_completion #click_completion.init() from sequana import version __all__ = ["main"] import colorlog logger = colorlog.getLogger(__name__) # This can be used by all commands as a simple decorator CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help']) import pkg_resource...
36.469863
190
0.645232
#-*- coding: utf-8 -*- import sys import os import glob import click #import click_completion #click_completion.init() from sequana import version import functools __all__ = ["main"] import sequana import colorlog logger = colorlog.getLogger(__name__) # This can be used by all commands as a simple decorator def...
0
24,848
0
0
0
128
0
-54
454
5d1e7dc3e866c93d2b4626e52d2811ac3aeffb26
430
py
Python
src/euler_python_package/euler_python/medium/p463.py
wilsonify/euler
5214b776175e6d76a7c6d8915d0e062d189d9b79
[ "MIT" ]
null
null
null
src/euler_python_package/euler_python/medium/p463.py
wilsonify/euler
5214b776175e6d76a7c6d8915d0e062d189d9b79
[ "MIT" ]
null
null
null
src/euler_python_package/euler_python/medium/p463.py
wilsonify/euler
5214b776175e6d76a7c6d8915d0e062d189d9b79
[ "MIT" ]
null
null
null
def problem463(): """ The function $f$ is defined for all positive integers as follows: $f(1)=1$ $f(3)=3$ $f(2n)=f(n)$ $f(4n + 1)=2f(2n + 1) - f(n)$ $f(4n + 3)=3f(2n + 1) - 2f(n)$ The function $S(n)$ is defined as $\\sum_{i=1}^{n}f(i)$. $S(8)=...
21.5
69
0.439535
def problem463(): """ The function $f$ is defined for all positive integers as follows: • $f(1)=1$ • $f(3)=3$ • $f(2n)=f(n)$ • $f(4n + 1)=2f(2n + 1) - f(n)$ • $f(4n + 3)=3f(2n + 1) - 2f(n)$ The function $S(n)$ is defined as $\\sum_{i=1}^{n}f(i)$. $...
15
0
0
0
0
0
0
0
0
f8167a1c1ad122d2aa27edbcc0972069992f92e2
792
py
Python
src/testscrape.py
kelpabc123/UCSDCourseBot
267900801b00c7f470fc6c2dfb0f0cfe30580b13
[ "MIT" ]
null
null
null
src/testscrape.py
kelpabc123/UCSDCourseBot
267900801b00c7f470fc6c2dfb0f0cfe30580b13
[ "MIT" ]
null
null
null
src/testscrape.py
kelpabc123/UCSDCourseBot
267900801b00c7f470fc6c2dfb0f0cfe30580b13
[ "MIT" ]
null
null
null
#this is for testing, an internal testbench to verify implemented features import cscraper cscraper.updateCSV() courses = cscraper.findCoursebyID("MaTh 170") for course in courses: course.printCourse() courses = cscraper.findCoursebyDesc("experiment") for course in courses: print(course) courses = cscraper.fin...
30.461538
74
0.744949
#this is for testing, an internal testbench to verify implemented features from bs4 import BeautifulSoup from course import MyCourse import requests import csv import cscraper cscraper.updateCSV() courses = cscraper.findCoursebyID("MaTh 170") for course in courses: course.printCourse() courses = cscraper.findCour...
0
0
0
0
0
0
0
-3
89
d387510f698295a09b2327c0611bdbb9f98c718e
3,452
py
Python
utils_ml/tests/unittest/data_processing/test_data_processing_utils.py
RodSernaPerez/utils_ml
72251447f5c33f3873c746e98f532ce19a5b6003
[ "MIT" ]
null
null
null
utils_ml/tests/unittest/data_processing/test_data_processing_utils.py
RodSernaPerez/utils_ml
72251447f5c33f3873c746e98f532ce19a5b6003
[ "MIT" ]
null
null
null
utils_ml/tests/unittest/data_processing/test_data_processing_utils.py
RodSernaPerez/utils_ml
72251447f5c33f3873c746e98f532ce19a5b6003
[ "MIT" ]
null
null
null
import unittest if __name__ == '__main__': unittest.main()
33.514563
119
0.532155
import unittest import numpy as np from utils_ml.src.data_processing import data_processing_utils class TestDataProcessingUtils(unittest.TestCase): MSG = "Data processing utils:: UNITTEST:: " def test_convert_to_one_hot_vectors_list_with_ints(self): msg = self.MSG + "convert_to_one_hot_vectors_list...
0
0
0
3,279
0
0
0
38
69
dc3f2757c0df48ed984cc60afdc04795aceea950
8,952
py
Python
dependencies/FontTools/Mac/TTX.py
charlesmchen/typefacet
8c6db26d0c599ece16f3704696811275120a4044
[ "Apache-2.0" ]
21
2015-01-16T05:10:02.000Z
2021-06-11T20:48:15.000Z
dependencies/FontTools/Mac/TTX.py
charlesmchen/typefacet
8c6db26d0c599ece16f3704696811275120a4044
[ "Apache-2.0" ]
1
2019-09-09T12:10:27.000Z
2020-05-22T10:12:14.000Z
dependencies/FontTools/Mac/TTX.py
charlesmchen/typefacet
8c6db26d0c599ece16f3704696811275120a4044
[ "Apache-2.0" ]
2
2015-05-03T04:51:08.000Z
2018-08-24T08:28:53.000Z
"""Main TTX application, Mac-only""" #make sure we don't lose events to SIOUX import MacOS MacOS.EnableAppswitch(-1) SetWatchCursor() # a few constants LOGFILENAME = "TTX errors" PREFSFILENAME = "TTX preferences" DEFAULTXMLOUTPUT = ":XML output" DEFAULTTTOUTPUT = ":TrueType output" import FrameWork import MiniAEF...
27.71517
93
0.705541
"""Main TTX application, Mac-only""" #make sure we don't lose events to SIOUX import MacOS MacOS.EnableAppswitch(-1) def SetWatchCursor(): import Qd, QuickDraw Qd.SetCursor(Qd.GetCursor(QuickDraw.watchCursor).data) def SetArrowCursor(): import Qd Qd.SetCursor(Qd.qd.arrow) SetWatchCursor() # a few constants LO...
0
0
0
5,039
0
954
0
0
138
027ccfc7c5e008bba853d139b86860d3618ffd39
1,412
py
Python
main.py
rudradatta/Flames
3692564ef1c3493eb2e1586be47ca997ede97cb4
[ "BSD-3-Clause" ]
null
null
null
main.py
rudradatta/Flames
3692564ef1c3493eb2e1586be47ca997ede97cb4
[ "BSD-3-Clause" ]
null
null
null
main.py
rudradatta/Flames
3692564ef1c3493eb2e1586be47ca997ede97cb4
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
27.153846
75
0.751416
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
0
0
0
0
0
182
0
31
90
de7fb23e68e497f342ffadf54e891b1ee5789685
315
py
Python
.ycm_extra_conf.py
AleksanderGondek/py-friends-and-strangers
eda80c13653b6208c8d178feb6283f5279abc6bf
[ "MIT" ]
null
null
null
.ycm_extra_conf.py
AleksanderGondek/py-friends-and-strangers
eda80c13653b6208c8d178feb6283f5279abc6bf
[ "MIT" ]
null
null
null
.ycm_extra_conf.py
AleksanderGondek/py-friends-and-strangers
eda80c13653b6208c8d178feb6283f5279abc6bf
[ "MIT" ]
null
null
null
""" Vim YouCompleteMe"""
21
46
0.619048
""" Vim YouCompleteMe""" import pathlib def Settings(**kwargs): return { "interpreter_path": pathlib.Path(__file__) .parent.absolute() .joinpath(".venv/bin/python"), "sys_path": [ pathlib.Path(__file__) .parent.absolute() .joinpath("py_friends_and_strangers") ] }
0
0
0
0
0
252
0
-7
45
395347f97ebf9ebe9440f03168b3fc2acdb1aae1
124
py
Python
apiproxy/resources/py/base64-encode.py
shahbagdadi/apigee-saml-idp
f881ac7579e6496965b4aeac22ef132ac9857c1a
[ "MIT" ]
3
2016-02-01T16:37:51.000Z
2022-01-13T03:14:31.000Z
apiproxy/resources/py/base64-encode.py
shahbagdadi/apigee-saml-idp
f881ac7579e6496965b4aeac22ef132ac9857c1a
[ "MIT" ]
1
2016-01-15T02:52:56.000Z
2016-01-15T02:52:56.000Z
apiproxy/resources/py/base64-encode.py
shahbagdadi/apigee-saml-idp
f881ac7579e6496965b4aeac22ef132ac9857c1a
[ "MIT" ]
6
2015-09-30T05:37:38.000Z
2022-01-13T03:14:43.000Z
import base64 enc_response = base64.b64encode(flow.getVariable("sf.response")) flow.setVariable("sf.response", enc_response)
41.333333
64
0.814516
import base64 enc_response = base64.b64encode(flow.getVariable("sf.response")) flow.setVariable("sf.response", enc_response)
0
0
0
0
0
0
0
0
0
ab4b9cb10b61ad5a5c3b660008f819e16fe29a51
1,022
py
Python
aiida/storage/sqlite_temp/__init__.py
aiidateam/aiida_core
46d244e32ac5eca2e22a3d088314591ce064be57
[ "PSF-2.0", "MIT" ]
153
2016-12-23T20:59:03.000Z
2019-07-02T06:47:52.000Z
aiida/storage/sqlite_temp/__init__.py
aiidateam/aiida_core
46d244e32ac5eca2e22a3d088314591ce064be57
[ "PSF-2.0", "MIT" ]
2,466
2016-12-24T01:03:52.000Z
2019-07-04T13:41:08.000Z
aiida/storage/sqlite_temp/__init__.py
aiidateam/aiida_core
46d244e32ac5eca2e22a3d088314591ce064be57
[ "PSF-2.0", "MIT" ]
88
2016-12-23T16:28:00.000Z
2019-07-01T15:55:20.000Z
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
35.241379
75
0.515656
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
0
0
0
0
0
0
0
1
23
8421e6f29dc860c958defcb0f8837716e7ec31c1
633
py
Python
migrations/versions/e1855559096_connection_full_name.py
ArthurPBressan/sisgep1
d11151353b895a1a7b7673f90248ea3a0c209da6
[ "MIT" ]
null
null
null
migrations/versions/e1855559096_connection_full_name.py
ArthurPBressan/sisgep1
d11151353b895a1a7b7673f90248ea3a0c209da6
[ "MIT" ]
null
null
null
migrations/versions/e1855559096_connection_full_name.py
ArthurPBressan/sisgep1
d11151353b895a1a7b7673f90248ea3a0c209da6
[ "MIT" ]
null
null
null
"""connection full name Revision ID: e1855559096 Revises: 401bc82cc255 Create Date: 2015-09-26 17:40:20.742180 """ # revision identifiers, used by Alembic. revision = 'e1855559096' down_revision = '401bc82cc255'
23.444444
93
0.703002
"""connection full name Revision ID: e1855559096 Revises: 401bc82cc255 Create Date: 2015-09-26 17:40:20.742180 """ # revision identifiers, used by Alembic. revision = 'e1855559096' down_revision = '401bc82cc255' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alemb...
0
0
0
0
0
322
0
3
91
a119345d10c5b52a1ebc1a6ecbd3b0e6b211e871
3,156
py
Python
dnppy/raster/to_numpy.py
NASA-DEVELOP/dnppy
8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b
[ "NASA-1.3" ]
65
2015-09-10T12:59:56.000Z
2022-02-27T22:09:03.000Z
dnppy/raster/to_numpy.py
snowzm/dnppy
8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b
[ "NASA-1.3" ]
40
2015-04-08T19:23:30.000Z
2015-08-04T15:53:11.000Z
dnppy/raster/to_numpy.py
snowzm/dnppy
8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b
[ "NASA-1.3" ]
45
2015-08-14T19:09:38.000Z
2022-02-15T18:53:16.000Z
__author__ = "jwely" __all__ = ["to_numpy"] from is_rast import is_rast from metadata import metadata import os import arcpy import numpy def to_numpy(raster, numpy_datatype = None): """ Wrapper for arcpy.RasterToNumpyArray with better metadata handling This is just a wraper for the RasterToNumPyArray...
34.681319
125
0.647655
__author__ = "jwely" __all__ = ["to_numpy"] from is_rast import is_rast from metadata import metadata import os import arcpy import numpy def to_numpy(raster, numpy_datatype = None): """ Wrapper for arcpy.RasterToNumpyArray with better metadata handling This is just a wraper for the RasterToNumPyArray...
0
0
0
0
0
0
0
0
0
76d771bbdc8f3eb0a59c176355568f1a9c11c64f
244
py
Python
output/models/nist_data/list_pkg/duration/schema_instance/nistschema_sv_iv_list_duration_length_2_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/list_pkg/duration/schema_instance/nistschema_sv_iv_list_duration_length_2_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/list_pkg/duration/schema_instance/nistschema_sv_iv_list_duration_length_2_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.nist_data.list_pkg.duration.schema_instance.nistschema_sv_iv_list_duration_length_2_xsd.nistschema_sv_iv_list_duration_length_2 import NistschemaSvIvListDurationLength2 __all__ = [ "NistschemaSvIvListDurationLength2", ]
40.666667
187
0.889344
from output.models.nist_data.list_pkg.duration.schema_instance.nistschema_sv_iv_list_duration_length_2_xsd.nistschema_sv_iv_list_duration_length_2 import NistschemaSvIvListDurationLength2 __all__ = [ "NistschemaSvIvListDurationLength2", ]
0
0
0
0
0
0
0
0
0
b23d36fa5033cff1b7860caf5d44f22ca9d35ade
3,422
py
Python
iwjam_import.py
patrickgh3/iwjam
fd6f58bd5217dc13ed475779fe7f1ff6ca7f13be
[ "MIT" ]
null
null
null
iwjam_import.py
patrickgh3/iwjam
fd6f58bd5217dc13ed475779fe7f1ff6ca7f13be
[ "MIT" ]
null
null
null
iwjam_import.py
patrickgh3/iwjam
fd6f58bd5217dc13ed475779fe7f1ff6ca7f13be
[ "MIT" ]
null
null
null
# Performs an import of a mod project into a base project given a # previously computed ProjectDiff between them, # and a list of folder names to prefix # ('%modname%' will be replaced with the mod's name)
36.404255
78
0.63647
from lxml import etree import os import sys import shutil import iwjam_util # Performs an import of a mod project into a base project given a # previously computed ProjectDiff between them, # and a list of folder names to prefix # ('%modname%' will be replaced with the mod's name) def do_import(base_dir, mod_dir, pdif...
0
0
0
0
0
3,086
0
-34
155
da909f52e4e4629a36fb95351150753741737518
591
py
Python
Code/Simple_plots/SDA.py
Basvdbrink1998/Influencing-social-networks
7b512edc4127680a37115c7e1434b06ebfa67e8a
[ "MIT" ]
null
null
null
Code/Simple_plots/SDA.py
Basvdbrink1998/Influencing-social-networks
7b512edc4127680a37115c7e1434b06ebfa67e8a
[ "MIT" ]
null
null
null
Code/Simple_plots/SDA.py
Basvdbrink1998/Influencing-social-networks
7b512edc4127680a37115c7e1434b06ebfa67e8a
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt """ SDA.py: Plots the probability of the SDA model generating a connection based on different parameters for Figure 2.4. """ n = 3 alphas = [2, 3, 8] betas = [2, 3, 5] colors = ['r', 'g', 'b'] d = np.arange(0.0, 10.0, 0.1) ax = plt.subplot() for i in range...
19.7
74
0.597293
import numpy as np import matplotlib.pyplot as plt """ SDA.py: Plots the probability of the SDA model generating a connection based on different parameters for Figure 2.4. """ def prop(a, b, d): return 1/(1+(1/b*d)**a) n = 3 alphas = [2, 3, 8] betas = [2, 3, 5] colors = ['r', 'g', 'b'] d = np.arange(0....
0
0
0
0
0
25
0
0
23
d7abc7d7c4ba16df06d2efc32c2e5bcb55a94d2b
3,939
py
Python
stratified_group_fold/sources/StratifiedGroupKFold.py
erelcan/stratified-group-fold
0c38f403636b8b493abd145b5e03c09895182e83
[ "Apache-2.0" ]
2
2021-07-03T15:52:59.000Z
2021-07-03T17:24:19.000Z
stratified_group_fold/sources/StratifiedGroupKFold.py
erelcan/stratified-group-fold
0c38f403636b8b493abd145b5e03c09895182e83
[ "Apache-2.0" ]
null
null
null
stratified_group_fold/sources/StratifiedGroupKFold.py
erelcan/stratified-group-fold
0c38f403636b8b493abd145b5e03c09895182e83
[ "Apache-2.0" ]
null
null
null
# Using get_n_splits from the super class.
44.258427
138
0.637218
import pandas as pd from sklearn.model_selection._split import _BaseKFold from partition_optimizers import equally_partition_into_bins, mixed_equally_partition_into_bins # Using get_n_splits from the super class. class StratifiedGroupKFold(_BaseKFold): def __init__(self, n_splits=5, mixed_groups=False, opt_type=0,...
0
0
0
3,704
0
0
0
104
88
5bb3d6d12d12e77d5fb9cceeb72b3faad2278553
515
py
Python
the_mechanic_backend/apps/stock/migrations/0002_spare_store.py
muthukumar4999/the-mechanic-backend
1e31affddf60d2de72445a85dd2055bdeba6f670
[ "MIT" ]
null
null
null
the_mechanic_backend/apps/stock/migrations/0002_spare_store.py
muthukumar4999/the-mechanic-backend
1e31affddf60d2de72445a85dd2055bdeba6f670
[ "MIT" ]
5
2020-06-05T22:30:20.000Z
2021-09-08T01:12:27.000Z
the_mechanic_backend/apps/stock/migrations/0002_spare_store.py
muthukumar4999/the-mechanic-backend
1e31affddf60d2de72445a85dd2055bdeba6f670
[ "MIT" ]
null
null
null
# Generated by Django 2.1.5 on 2019-03-31 08:34
24.52381
125
0.623301
# Generated by Django 2.1.5 on 2019-03-31 08:34 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('accounts', '0001_initial'), ('stock', '0001_initial'), ] operations = [ migrations.AddField( ...
0
0
0
368
0
0
0
30
68
9eea5aa106be395c4d8d95d6ed8621ad09adecab
11,054
py
Python
src/yativ/resources/testscale.py
Ahuge/yativ
506511c9f5c6d77c6e488f6f593044b78541cfb5
[ "MIT" ]
null
null
null
src/yativ/resources/testscale.py
Ahuge/yativ
506511c9f5c6d77c6e488f6f593044b78541cfb5
[ "MIT" ]
null
null
null
src/yativ/resources/testscale.py
Ahuge/yativ
506511c9f5c6d77c6e488f6f593044b78541cfb5
[ "MIT" ]
null
null
null
import numpy from numpy import genfromtxt my_data = genfromtxt('matrix.csv', delimiter=',') def bin_ndarray(ndarray, new_shape, operation='sum'): """ Bins an ndarray in all axes based on the target shape, by summing or averaging. Number of output dimensions must match number of input dimensions...
33.907975
102
0.495024
import numpy from numpy import genfromtxt my_data = genfromtxt('matrix.csv', delimiter=',') def bin_ndarray(ndarray, new_shape, operation='sum'): """ Bins an ndarray in all axes based on the target shape, by summing or averaging. Number of output dimensions must match number of input dimensions...
0
0
0
0
0
3,226
0
0
138
0b841db886c83062d035de64ee8299f98561f3f8
14,235
py
Python
apps/pay/views.py
agamgn/django-Tourism
ee8fae54981d135cbd7ddaf9131eb77ea7b2fb8a
[ "MIT" ]
9
2019-06-30T06:34:22.000Z
2021-11-09T17:21:16.000Z
apps/pay/views.py
agamgn/django-Tourism
ee8fae54981d135cbd7ddaf9131eb77ea7b2fb8a
[ "MIT" ]
14
2019-12-22T02:04:18.000Z
2022-03-11T23:44:38.000Z
apps/pay/views.py
agamgn/django-Tourism
ee8fae54981d135cbd7ddaf9131eb77ea7b2fb8a
[ "MIT" ]
3
2019-06-30T06:35:57.000Z
2019-12-18T03:42:43.000Z
from django.shortcuts import render from alipay import Alipay import time import string import random from treval import settings def create_alipay(): """ :return: """ alipay = Alipay( appid=settings.ALIPAY_APPID, # app_notify_url=None, # alipay_public...
33.104651
101
0.58595
from django.shortcuts import render from django.views.generic import View from django.shortcuts import render, redirect, HttpResponseRedirect, reverse, HttpResponse from alipay import Alipay import time import string import random import json from operation.models import ShoppingCart, Shopping from .models import * f...
1,821
0
0
11,811
0
0
0
155
315
e7f8c7e0394d0153b2a8616fd41a38bdbade771f
4,958
py
Python
authorize/apis/transaction.py
pegler/authorizesauce
e0dc408638b916973db9185911a20aec8fa6143d
[ "MIT" ]
null
null
null
authorize/apis/transaction.py
pegler/authorizesauce
e0dc408638b916973db9185911a20aec8fa6143d
[ "MIT" ]
1
2020-08-07T16:56:59.000Z
2020-08-07T16:56:59.000Z
authorize/apis/transaction.py
pegler/authorizesauce
e0dc408638b916973db9185911a20aec8fa6143d
[ "MIT" ]
2
2018-09-05T14:47:08.000Z
2020-08-07T15:52:37.000Z
PROD_URL = 'https://secure.authorize.net/gateway/transact.dll' TEST_URL = 'https://test.authorize.net/gateway/transact.dll' RESPONSE_FIELDS = { 0: 'response_code', 2: 'response_reason_code', 3: 'response_reason_text', 4: 'authorization_code', 5: 'avs_response', 6: 'transaction_id', 9: 'amo...
38.434109
77
0.615772
from decimal import Decimal import urllib import requests from authorize.exceptions import AuthorizeConnectionError, \ AuthorizeResponseError PROD_URL = 'https://secure.authorize.net/gateway/transact.dll' TEST_URL = 'https://test.authorize.net/gateway/transact.dll' RESPONSE_FIELDS = { 0: 'response_code', ...
0
0
0
4,212
0
164
0
58
135
031d46e50198f0c6342052897973976a91bd5c45
3,897
py
Python
src/core/src/tortuga/scripts/get_component_list.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
33
2018-03-02T17:07:39.000Z
2021-05-21T18:02:51.000Z
src/core/src/tortuga/scripts/get_component_list.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
201
2018-03-05T14:28:24.000Z
2020-11-23T19:58:27.000Z
src/core/src/tortuga/scripts/get_component_list.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
23
2018-03-02T17:21:59.000Z
2020-11-18T14:52:38.000Z
# Copyright 2008-2018 Univa Corporation # # 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...
31.942623
80
0.627149
# Copyright 2008-2018 Univa Corporation # # 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...
0
0
0
2,808
0
116
0
140
180
c764640dcde065c4a996dc262f48bc4fce5645f6
6,311
py
Python
darling_ansible/python_venv/lib/python3.7/site-packages/oci/os_management/models/software_package_file.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
null
null
null
darling_ansible/python_venv/lib/python3.7/site-packages/oci/os_management/models/software_package_file.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
null
null
null
darling_ansible/python_venv/lib/python3.7/site-packages/oci/os_management/models/software_package_file.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
1
2020-06-25T03:12:58.000Z
2020-06-25T03:12:58.000Z
# coding: utf-8 # Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
27.202586
245
0.615116
# coding: utf-8 # Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
0
5,780
0
0
0
0
0
105
82
4a054595b354fc56a93e4664562ef67d04d9e103
1,765
py
Python
esp32_ulp/definesdb.py
wnienhaus/micropython-esp32-ulp
19d4b98d41fae74062d855760d7aaef1988804f6
[ "MIT" ]
63
2018-03-11T20:28:18.000Z
2022-02-03T15:03:24.000Z
esp32_ulp/definesdb.py
wnienhaus/micropython-esp32-ulp
19d4b98d41fae74062d855760d7aaef1988804f6
[ "MIT" ]
56
2018-03-11T18:48:18.000Z
2022-03-01T00:16:26.000Z
esp32_ulp/definesdb.py
wnienhaus/micropython-esp32-ulp
19d4b98d41fae74062d855760d7aaef1988804f6
[ "MIT" ]
14
2018-03-13T07:33:39.000Z
2022-02-03T15:03:27.000Z
DBNAME = 'defines.db'
22.341772
52
0.538244
import os import btree from .util import file_exists DBNAME = 'defines.db' class DefinesDB: def __init__(self): self._file = None self._db = None self._db_exists = None def clear(self): self.close() try: os.remove(DBNAME) self._db_exists = Fals...
0
0
0
1,665
0
0
0
-13
89
5fba5e1f1bfcf9ffc2e970adf233be126a9270aa
630
py
Python
app/bootstrap/settings/components/db.py
enix403/django-compose-starter-template
5195ee0a1e59f567fcb314973a91a531324e50b2
[ "Apache-2.0" ]
null
null
null
app/bootstrap/settings/components/db.py
enix403/django-compose-starter-template
5195ee0a1e59f567fcb314973a91a531324e50b2
[ "Apache-2.0" ]
null
null
null
app/bootstrap/settings/components/db.py
enix403/django-compose-starter-template
5195ee0a1e59f567fcb314973a91a531324e50b2
[ "Apache-2.0" ]
null
null
null
from app.bootstrap.configmanager import ConfigManager DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'USER': ConfigManager.get('db.user'), 'NAME': ConfigManager.get('db.name'), 'PASSWORD': ConfigManager.get('db.pass'), 'HOST': ConfigManager.get('db.hos...
31.5
69
0.684127
from app.bootstrap.configmanager import ConfigManager DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'USER': ConfigManager.get('db.user'), 'NAME': ConfigManager.get('db.name'), 'PASSWORD': ConfigManager.get('db.pass'), 'HOST': ConfigManager.get('db.hos...
0
0
0
0
0
0
0
0
0
010a4ac03204c1908e45dac9fcc0777e17bb6512
1,485
py
Python
polygones_rose_v4.py
mercadder/python
85a005fee24a613ac5bb33847cccc8e32f1ceebd
[ "MIT" ]
null
null
null
polygones_rose_v4.py
mercadder/python
85a005fee24a613ac5bb33847cccc8e32f1ceebd
[ "MIT" ]
null
null
null
polygones_rose_v4.py
mercadder/python
85a005fee24a613ac5bb33847cccc8e32f1ceebd
[ "MIT" ]
null
null
null
draw_square()
29.117647
63
0.531987
import turtle #module tha drawn things def draw_square(): turtle.setworldcoordinates(-300, -300, 600, 600) background = turtle.Screen() #create the background background.bgcolor ("#084B8A") #background color titi = turtle.Turtle() #titi is an intance of Turtle class titi.shape("square") titi.co...
0
0
0
0
0
1,408
0
-8
69