hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
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
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
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
3
251
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.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
5087fd9779109ae3757b5e0e1a9ac31884d9c109
1,844
py
Python
pl_extension/callbacks/speed.py
DuinoDu/pl-extension
1ed8f3dd95aa569ee3493fcc69634d3ab9322430
[ "Apache-2.0" ]
null
null
null
pl_extension/callbacks/speed.py
DuinoDu/pl-extension
1ed8f3dd95aa569ee3493fcc69634d3ab9322430
[ "Apache-2.0" ]
null
null
null
pl_extension/callbacks/speed.py
DuinoDu/pl-extension
1ed8f3dd95aa569ee3493fcc69634d3ab9322430
[ "Apache-2.0" ]
null
null
null
import logging from pytorch_lightning.callbacks.base import Callback __all__ = ["Speed"] logger = logging.getLogger(__name__)
32.928571
78
0.642082
50889e61c09c24ca6b275f770b232c7c15f511c1
3,158
py
Python
spectacles/validators/validator.py
felipefrancisco/spectacles
92f7af5810e2669343dd18425b2a8cb49d7167d2
[ "MIT" ]
150
2019-10-05T18:35:36.000Z
2022-03-26T21:21:44.000Z
spectacles/validators/validator.py
felipefrancisco/spectacles
92f7af5810e2669343dd18425b2a8cb49d7167d2
[ "MIT" ]
406
2019-10-03T14:54:22.000Z
2022-03-28T04:02:31.000Z
spectacles/validators/validator.py
felipefrancisco/spectacles
92f7af5810e2669343dd18425b2a8cb49d7167d2
[ "MIT" ]
26
2019-11-08T16:21:50.000Z
2022-03-28T06:06:14.000Z
from typing import Optional, List from abc import ABC, abstractmethod from spectacles.client import LookerClient from spectacles.lookml import Project, Model, Dimension from spectacles.select import is_selected from spectacles.exceptions import LookMlNotFound
34.703297
84
0.569981
5088c0c6396ddfd3443bddad31b38216e9bda0c1
1,330
py
Python
python/periodic-web-scrapper/scraper/Scraper.py
MarioCodes/ProyectosClaseDAM
df568b4feda8bf3a6cf7cc8e81e7dfa4156dcfd9
[ "Apache-2.0" ]
null
null
null
python/periodic-web-scrapper/scraper/Scraper.py
MarioCodes/ProyectosClaseDAM
df568b4feda8bf3a6cf7cc8e81e7dfa4156dcfd9
[ "Apache-2.0" ]
17
2019-06-14T12:30:46.000Z
2022-02-18T11:38:50.000Z
python/periodic-web-scrapper/scraper/Scraper.py
MarioCodes/ProyectosClaseDAM
df568b4feda8bf3a6cf7cc8e81e7dfa4156dcfd9
[ "Apache-2.0" ]
null
null
null
''' Created on Apr 18, 2018 @author: msanchez ''' from scraper.RequestScraper import RequestScraper from scraper.HTMLFilter import HTMLFilter from scraper.NewsFilter import NewsFilter from scraper.utilities.WebUtilities import WebUtilities
30.930233
159
0.64812
50897cd7ac40da6c45acf1571aad36057bdb2d94
2,877
py
Python
cabot_alert_pushover/models.py
dnelson/cabot-alert-pushover
c10f34e59c9f289e60016e7240c4e6ada611f611
[ "MIT" ]
null
null
null
cabot_alert_pushover/models.py
dnelson/cabot-alert-pushover
c10f34e59c9f289e60016e7240c4e6ada611f611
[ "MIT" ]
1
2015-02-09T22:26:48.000Z
2015-02-09T22:26:48.000Z
cabot_alert_pushover/models.py
packetcollision/cabot-alert-pushover
c10f34e59c9f289e60016e7240c4e6ada611f611
[ "MIT" ]
1
2015-04-29T15:43:31.000Z
2015-04-29T15:43:31.000Z
from django.db import models from django.conf import settings from django.template import Context, Template from cabot.cabotapp.alert import AlertPlugin, AlertPluginUserData from os import environ as env import requests pushover_alert_url = "https://api.pushover.net/1/messages.json" pushover_template = "Service {{ ...
35.518519
250
0.583246
508b71956b5d3b6c286150774b34745d6e9b14c4
683
py
Python
mezzanine_faq/templatetags/faq_tags.py
fpytloun/mezzanine-faq
01f8d5a33bb97a2c72679675ef98c4318ac70779
[ "BSD-3-Clause" ]
null
null
null
mezzanine_faq/templatetags/faq_tags.py
fpytloun/mezzanine-faq
01f8d5a33bb97a2c72679675ef98c4318ac70779
[ "BSD-3-Clause" ]
null
null
null
mezzanine_faq/templatetags/faq_tags.py
fpytloun/mezzanine-faq
01f8d5a33bb97a2c72679675ef98c4318ac70779
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django import template from mezzanine.conf import settings from mezzanine_faq.models import FaqPage register = template.Library()
24.392857
72
0.66325
508bdde093af310cb7c78c41d80054d13c12905d
1,234
py
Python
easy/543-Diameter of Binary Tree.py
Davidxswang/leetcode
d554b7f5228f14c646f726ddb91014a612673e06
[ "Apache-2.0" ]
2
2020-05-08T02:17:17.000Z
2020-05-17T04:55:56.000Z
easy/543-Diameter of Binary Tree.py
Davidxswang/leetcode
d554b7f5228f14c646f726ddb91014a612673e06
[ "Apache-2.0" ]
null
null
null
easy/543-Diameter of Binary Tree.py
Davidxswang/leetcode
d554b7f5228f14c646f726ddb91014a612673e06
[ "Apache-2.0" ]
null
null
null
""" https://leetcode.com/problems/diameter-of-binary-tree/ Given a binary tree, you need to compute the length of the diameter of the tree. The diameter of a binary tree is the length of the longest path between any two nodes in a tree. This path may or may not pass through the root. Example: Given a binary tree ...
31.641026
225
0.626418
508c6c7312c3774719180054ec3e60ba8af3b4ea
1,114
py
Python
hsf_website_helpers/bin/hsf_reformat_training_events.py
HSF/website-helpers
7b01db3648d9f8026a318a4fac2fd3a8aeea354e
[ "MIT" ]
null
null
null
hsf_website_helpers/bin/hsf_reformat_training_events.py
HSF/website-helpers
7b01db3648d9f8026a318a4fac2fd3a8aeea354e
[ "MIT" ]
null
null
null
hsf_website_helpers/bin/hsf_reformat_training_events.py
HSF/website-helpers
7b01db3648d9f8026a318a4fac2fd3a8aeea354e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Quick script to read all training schools from data file and write them out again to e.g. update the formatting. """ import argparse from hsf_website_helpers.events.event import EventDatabase from hsf_website_helpers.util.cli import add_website_home_option if __name__ == "__main__": ...
28.564103
77
0.682226
508e3fc0c39607a000fe637e25c5db2d8a7dc060
275
py
Python
clothstream/styletags/urls.py
julienaubert/clothstream
daa76389be8b359208e88cd1f7aa8e7e98766656
[ "MIT" ]
null
null
null
clothstream/styletags/urls.py
julienaubert/clothstream
daa76389be8b359208e88cd1f7aa8e7e98766656
[ "MIT" ]
null
null
null
clothstream/styletags/urls.py
julienaubert/clothstream
daa76389be8b359208e88cd1f7aa8e7e98766656
[ "MIT" ]
null
null
null
from clothstream.lib.rest import SharedAPIRootRouter from .views import ItemStyleTagCreate, StyleTagList router = SharedAPIRootRouter() router.register(r'styletag-item/create', ItemStyleTagCreate, base_name='itemstyletag-create') router.register(r'styletags', StyleTagList)
39.285714
93
0.84
508e54ebec8de34c224abfb2a9e4b84d25629fa1
6,652
py
Python
aws_automation/s3.py
VCCRI/Scavenger
a17f48b242a1cd8d626ad3a21439fa2c80b06533
[ "MIT" ]
4
2018-07-25T15:52:00.000Z
2020-10-20T00:47:35.000Z
aws_automation/s3.py
VCCRI/Scavenger
a17f48b242a1cd8d626ad3a21439fa2c80b06533
[ "MIT" ]
null
null
null
aws_automation/s3.py
VCCRI/Scavenger
a17f48b242a1cd8d626ad3a21439fa2c80b06533
[ "MIT" ]
null
null
null
# a module that wraps some of the S3 commands import boto3 from botocore.exceptions import ClientError from boto3.s3.transfer import S3Transfer import re import os # check for existance of bucket # get list of bucket contents # check bucket exists (efficient version) # NOTE: s3 bucket name space is for all AWS users...
34.827225
96
0.637853
508f157fb5ef3d702783d7357c19874b1334a4e9
7,597
py
Python
bot/exts/info/codeblock/_instructions.py
zwycl/bot
862fb070a501ca45cccb481d62f079b3bdb1d16f
[ "MIT", "BSD-3-Clause" ]
1
2020-12-22T09:13:09.000Z
2020-12-22T09:13:09.000Z
bot/exts/info/codeblock/_instructions.py
Ezamey/bot
0b7a1be1dd57a464fc79fcb235b79d75bec43f99
[ "MIT", "BSD-3-Clause" ]
null
null
null
bot/exts/info/codeblock/_instructions.py
Ezamey/bot
0b7a1be1dd57a464fc79fcb235b79d75bec43f99
[ "MIT", "BSD-3-Clause" ]
null
null
null
"""This module generates and formats instructional messages about fixing Markdown code blocks.""" import logging from typing import Optional from bot.exts.info.codeblock import _parsing log = logging.getLogger(__name__) _EXAMPLE_PY = "{lang}\nprint('Hello, world!')" # Make sure to escape any Markdown symbols here....
41.064865
97
0.675925
508f3ea247a38d0be96d2163379720704f7d48b6
533
py
Python
app/urls.py
julesc00/madmin
c02d8c61e96831270075aa827d3de9d53ff8048d
[ "MIT" ]
null
null
null
app/urls.py
julesc00/madmin
c02d8c61e96831270075aa827d3de9d53ff8048d
[ "MIT" ]
null
null
null
app/urls.py
julesc00/madmin
c02d8c61e96831270075aa827d3de9d53ff8048d
[ "MIT" ]
null
null
null
from django.urls import path from . import views app_name = "app" urlpatterns = [ path('', views.index, name="index"), path('posts/', views.posts, name="posts"), path('categories/', views.categories, name="categories"), path('comments/', views.comments, name="comments"), path('users/', views.user...
31.352941
61
0.634146
5092dda4e656ef453bfc8239860a22fcd917e66f
11,775
py
Python
lib/python/cellranger/analysis/pca.py
qiangli/cellranger
046e24c3275cfbd4516a6ebc064594513a5c45b7
[ "MIT" ]
1
2019-03-29T04:05:58.000Z
2019-03-29T04:05:58.000Z
lib/python/cellranger/analysis/pca.py
qiangli/cellranger
046e24c3275cfbd4516a6ebc064594513a5c45b7
[ "MIT" ]
null
null
null
lib/python/cellranger/analysis/pca.py
qiangli/cellranger
046e24c3275cfbd4516a6ebc064594513a5c45b7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2017 10X Genomics, Inc. All rights reserved. # import cellranger.analysis.io as analysis_io import cellranger.analysis.constants as analysis_constants import cellranger.h5_constants as h5_constants import cellranger.io as cr_io import cellranger.analysis.stats as analysis_stats ...
52.802691
150
0.726369
5093de6bb237feb29997a009c2a055d96c61745b
221
py
Python
src/atc/etl/__init__.py
atc-net/atc-dataplatform
4614efbbc9a5b2b4e063cc12211aa5c697cad115
[ "MIT" ]
6
2021-09-10T09:50:20.000Z
2022-02-12T09:30:47.000Z
src/atc/etl/__init__.py
atc-net/atc-dataplatform
4614efbbc9a5b2b4e063cc12211aa5c697cad115
[ "MIT" ]
40
2021-09-10T11:20:42.000Z
2022-03-25T08:26:57.000Z
src/atc/etl/__init__.py
atc-net/atc-dataplatform
4614efbbc9a5b2b4e063cc12211aa5c697cad115
[ "MIT" ]
2
2021-09-10T10:07:04.000Z
2022-02-16T17:49:08.000Z
from .loader import Loader from .extractor import Extractor from .transformer import Transformer from .orchestrator import Orchestrator __all__ = [ "Loader", "Extractor", "Transformer", "Orchestrator", ]
18.416667
38
0.728507
5096dbccfc3c601a9f1661b60c8a31eb3826dccd
3,182
py
Python
a.py
Planecrayon/DAT120_Oblig_9
7cb6a6e9443ed609d27177746f532ee09dcf32e4
[ "MIT" ]
null
null
null
a.py
Planecrayon/DAT120_Oblig_9
7cb6a6e9443ed609d27177746f532ee09dcf32e4
[ "MIT" ]
null
null
null
a.py
Planecrayon/DAT120_Oblig_9
7cb6a6e9443ed609d27177746f532ee09dcf32e4
[ "MIT" ]
null
null
null
# Som del av et sprrespill skal du lage en klasse for flervalgsprsml. # Et flervalgsprsml skal ha en sprsmlstekst, ei liste med svaralternativer # (hvert svaralternativ er en tekststreng), og et tall som sier hvilket av # svaralternativene som er korrekt.Klassen skal ha en __str__ metode som returnerer # en streng som ...
39.775
184
0.664676
5096fa7b9ba14d4d27ff9de996781aa68a5007aa
4,047
py
Python
py/abd/abdcmd_instaweb.py
valhallasw/phabricator-tools
397406485901ce3bd26e1aee122e652539f99f98
[ "Apache-2.0" ]
null
null
null
py/abd/abdcmd_instaweb.py
valhallasw/phabricator-tools
397406485901ce3bd26e1aee122e652539f99f98
[ "Apache-2.0" ]
null
null
null
py/abd/abdcmd_instaweb.py
valhallasw/phabricator-tools
397406485901ce3bd26e1aee122e652539f99f98
[ "Apache-2.0" ]
null
null
null
"""Start a local webserver to report the status of an arcyd instance.""" # ============================================================================= # CONTENTS # ----------------------------------------------------------------------------- # abdcmd_instaweb # # Public Functions: # getFromfilePrefixChars # setup...
29.757353
79
0.57277
5097201247dfae21276abab2938bc5634f746acc
23,328
py
Python
instana/span.py
tirkarthi/python-sensor
9872d146ac00baff2673fde5ba97fdbe596869a4
[ "MIT" ]
2
2019-12-02T10:08:58.000Z
2020-10-04T09:34:20.000Z
instana/span.py
tirkarthi/python-sensor
9872d146ac00baff2673fde5ba97fdbe596869a4
[ "MIT" ]
2
2020-06-09T12:24:54.000Z
2021-03-15T12:49:15.000Z
instana/span.py
takeaway/python-sensor
52d6eaa2d6a8e625201bad36ac2448201c4bd63d
[ "MIT" ]
null
null
null
# (c) Copyright IBM Corp. 2021 # (c) Copyright Instana Inc. 2017 """ This module contains the classes that represents spans. InstanaSpan - the OpenTracing based span used during tracing When an InstanaSpan is finished, it is converted into either an SDKSpan or RegisteredSpan depending on type. BaseSpan: Base class ...
46.656
116
0.578018
5098655d84e342408ca02ab0c8f4527b84ed0fab
2,787
py
Python
code/import_iworx.py
StolkArjen/human-interaction
0559a58ea8131f61ed661c093045b34284568bc4
[ "Apache-2.0" ]
1
2022-01-10T02:18:45.000Z
2022-01-10T02:18:45.000Z
code/import_iworx.py
StolkArjen/human-interaction
d87badf7db20a50db058ca714f3d77664111100b
[ "Apache-2.0" ]
null
null
null
code/import_iworx.py
StolkArjen/human-interaction
d87badf7db20a50db058ca714f3d77664111100b
[ "Apache-2.0" ]
1
2022-02-14T15:28:48.000Z
2022-02-14T15:28:48.000Z
#!/usr/bin/env python """ -------------------------------------------------------- IMPORT_IWORX reads and converts various IWORX datafiles into a FieldTrip-type data structure. Use as data, event = import_iworx(filename) where the filename should point to a .mat or .txt datafile. data has the followin...
27.323529
80
0.547542
5098854b1bebe51b75f24ed1504c767942b2632b
961
py
Python
ex/classifier.py
scw/conda-uc-2017
c113583b88beb58adf51e4fc4ee6b6f6a963638d
[ "Apache-2.0" ]
1
2019-09-19T01:37:27.000Z
2019-09-19T01:37:27.000Z
ex/classifier.py
scw/conda-uc-2017
c113583b88beb58adf51e4fc4ee6b6f6a963638d
[ "Apache-2.0" ]
null
null
null
ex/classifier.py
scw/conda-uc-2017
c113583b88beb58adf51e4fc4ee6b6f6a963638d
[ "Apache-2.0" ]
null
null
null
import arcpy import pandas as pd from sklearn.feature_extraction.text import CountVectorizer from sklearn.naive_bayes import MultinomialNB input_csv = arcpy.GetParameterAsText(0) test_string = arcpy.GetParameterAsText(1) df = pd.read_csv(input_csv) target = df['is_there_an_emotion_directed_at_a_brand_or_product'] tex...
31
70
0.790843
50993243321f041c53a88a278ea5aece495a4f45
9,453
py
Python
pysnmp/TRANGO-APEX-TRAP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/TRANGO-APEX-TRAP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/TRANGO-APEX-TRAP-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 TRANGO-APEX-TRAP-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TRANGO-APEX-TRAP-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 21:19:34 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (defau...
95.484848
1,742
0.756056
509a3e7b6cd578f69b49591849f510331b44efb2
8,780
py
Python
test/test_gg_snippets.py
ooz/ggpy
a222299c3fc23739576ae0d3dfc75362fb1152cd
[ "MIT" ]
null
null
null
test/test_gg_snippets.py
ooz/ggpy
a222299c3fc23739576ae0d3dfc75362fb1152cd
[ "MIT" ]
2
2020-05-13T22:12:39.000Z
2021-05-01T22:41:55.000Z
test/test_gg_snippets.py
ooz/ggpy
a222299c3fc23739576ae0d3dfc75362fb1152cd
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import gg from ggconfig import config ############################################################################## # CONTENT SNIPPETS ############################################################################## def test_posts_index(): '''Generate index without in...
37.20339
185
0.637813
509af6bcf44faa152d90bad8b829b7b4847920a9
359
py
Python
example/controller/tests/helper/security/web/csrf/verify/by_value.py
donghak-shin/dp-tornado
095bb293661af35cce5f917d8a2228d273489496
[ "MIT" ]
18
2015-04-07T14:28:39.000Z
2020-02-08T14:03:38.000Z
example/controller/tests/helper/security/web/csrf/verify/by_value.py
donghak-shin/dp-tornado
095bb293661af35cce5f917d8a2228d273489496
[ "MIT" ]
7
2016-10-05T05:14:06.000Z
2021-05-20T02:07:22.000Z
example/controller/tests/helper/security/web/csrf/verify/by_value.py
donghak-shin/dp-tornado
095bb293661af35cce5f917d8a2228d273489496
[ "MIT" ]
11
2015-12-15T09:49:39.000Z
2021-09-06T18:38:21.000Z
# -*- coding: utf-8 -*- from dp_tornado.engine.controller import Controller
23.933333
111
0.688022
509bc06e0b8597b7dcfcd3d366bc4b0a1b33cced
1,913
py
Python
dis_snek/api/http/route.py
BoredManCodes/Dis-Snek
662dbc3f86c133fd704c22d3d6d55af5ee1f6f5b
[ "MIT" ]
null
null
null
dis_snek/api/http/route.py
BoredManCodes/Dis-Snek
662dbc3f86c133fd704c22d3d6d55af5ee1f6f5b
[ "MIT" ]
null
null
null
dis_snek/api/http/route.py
BoredManCodes/Dis-Snek
662dbc3f86c133fd704c22d3d6d55af5ee1f6f5b
[ "MIT" ]
null
null
null
from typing import TYPE_CHECKING, Any, ClassVar, Optional from urllib.parse import quote as _uriquote if TYPE_CHECKING: from dis_snek.models.discord.snowflake import Snowflake_Type __all__ = ["Route"]
28.984848
109
0.634605
509cf64c7635b5d2dcfcf6e0039a3e50e9325a99
13,539
py
Python
second/data/udi_dataset.py
muzi2045/second_TANET.pytorch
3e10c93075a76684871fe0f188819c7b282671fd
[ "MIT" ]
6
2020-02-15T09:11:53.000Z
2021-11-12T09:03:41.000Z
second/data/udi_dataset.py
muzi2045/second_TANET.pytorch
3e10c93075a76684871fe0f188819c7b282671fd
[ "MIT" ]
2
2020-04-15T02:40:44.000Z
2020-11-28T02:14:32.000Z
second/data/udi_dataset.py
muzi2045/second_TANET.pytorch
3e10c93075a76684871fe0f188819c7b282671fd
[ "MIT" ]
3
2020-02-11T20:12:50.000Z
2021-05-28T07:31:02.000Z
# udi dataset process module # modiflied from nuscenes_dataset.py import json import pickle import time import random from copy import deepcopy from functools import partial from pathlib import Path import subprocess import fire import numpy as np import os from second.core import box_np_ops from second.core import...
34.189394
106
0.557648
509dc1b0cc588c10476a8cfd8e1bdc0626468d3f
14,657
py
Python
storm_analysis/diagnostics/multicolor/configure.py
oxfordni/storm-analysis
835a5c17497c563c3632db561ae7e7c9144a8dd1
[ "CNRI-Python" ]
null
null
null
storm_analysis/diagnostics/multicolor/configure.py
oxfordni/storm-analysis
835a5c17497c563c3632db561ae7e7c9144a8dd1
[ "CNRI-Python" ]
null
null
null
storm_analysis/diagnostics/multicolor/configure.py
oxfordni/storm-analysis
835a5c17497c563c3632db561ae7e7c9144a8dd1
[ "CNRI-Python" ]
null
null
null
#!/usr/bin/env python """ Configure folder for Multicolor testing. Hazen 01/18 """ import argparse import inspect import numpy import os import pickle import subprocess import storm_analysis import storm_analysis.sa_library.parameters as parameters import storm_analysis.sa_library.sa_h5py as saH5Py import storm_anal...
39.720867
138
0.542608
509ed4cc66c4ac402187a077d75f1b426136225c
430
py
Python
tests/views/test_application_views.py
snowdensb/domain-manager-api
9bde9cec4231c0a0e27a12730182315571967980
[ "CC0-1.0" ]
null
null
null
tests/views/test_application_views.py
snowdensb/domain-manager-api
9bde9cec4231c0a0e27a12730182315571967980
[ "CC0-1.0" ]
28
2021-08-09T15:04:22.000Z
2022-03-19T01:11:58.000Z
tests/views/test_application_views.py
snowdensb/domain-manager-api
9bde9cec4231c0a0e27a12730182315571967980
[ "CC0-1.0" ]
null
null
null
"""Application View Tests.""" # Standard Python Libraries import json # cisagov Libraries from tests.data.application_data import get_applications def test_applications_get(client, mocker): """Test getting list of applications.""" mocker.patch("api.manager.ApplicationManager.all", return_value=get_applicatio...
28.666667
88
0.74186
50a2baaf689466aee04130a2a99ad570fae29004
967
py
Python
infratabapp/tasks.py
sheeshmohsin/infratabtask
5884c06d21d0c62a92ae203d941baafffab2e278
[ "MIT" ]
null
null
null
infratabapp/tasks.py
sheeshmohsin/infratabtask
5884c06d21d0c62a92ae203d941baafffab2e278
[ "MIT" ]
null
null
null
infratabapp/tasks.py
sheeshmohsin/infratabtask
5884c06d21d0c62a92ae203d941baafffab2e278
[ "MIT" ]
null
null
null
from __future__ import absolute_import from infratabtask.celery import app from celery import Task from infratabapp.utils import send_email_notf, send_phone_notf
28.441176
62
0.66908
50a3bc0cc77af6e3f24e20ed927fe327a30a1517
695
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/survey/admin.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/survey/admin.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/survey/admin.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2019-01-02T14:38:50.000Z
2019-01-02T14:38:50.000Z
""" Provide accessors to these models via the Django Admin pages """ from django import forms from django.contrib import admin from lms.djangoapps.survey.models import SurveyForm admin.site.register(SurveyForm, SurveyFormAdmin)
21.71875
60
0.700719
50a4666c1ec0642dcf588201b7c9a50b15e6dd48
1,804
py
Python
resources/lib/guisettings.py
gade01/xbmcbackup
6f4921a77eb1f73cdf30ddd863c38609ce5bd164
[ "MIT" ]
86
2015-01-11T12:41:31.000Z
2022-02-08T09:59:59.000Z
resources/lib/guisettings.py
weblate/xbmcbackup
40b626052160ce06663d3ea467122641b84651ae
[ "MIT" ]
126
2015-01-28T20:18:44.000Z
2022-02-27T16:03:26.000Z
resources/lib/guisettings.py
weblate/xbmcbackup
40b626052160ce06663d3ea467122641b84651ae
[ "MIT" ]
43
2015-01-11T02:57:49.000Z
2022-03-01T00:13:54.000Z
import json import xbmc from . import utils as utils
37.583333
145
0.608093
50a50aa1a40424c9e929c23a7eb5cdd5ccf71c81
120
py
Python
distopia/mapping/__init__.py
kevinguo344/distopia
077dd3501bd43565d1a9647a151fb20b90b71a54
[ "MIT" ]
null
null
null
distopia/mapping/__init__.py
kevinguo344/distopia
077dd3501bd43565d1a9647a151fb20b90b71a54
[ "MIT" ]
7
2019-07-11T04:19:01.000Z
2019-10-31T15:26:49.000Z
distopia/mapping/__init__.py
kevinguo344/distopia
077dd3501bd43565d1a9647a151fb20b90b71a54
[ "MIT" ]
4
2018-10-29T20:32:03.000Z
2019-10-02T03:15:57.000Z
""" District Mapping ================ Defines the algorithms that perform the mapping from precincts to districts. """
17.142857
76
0.666667
50a51e2bd1f9dab244096057e39978a0aa037170
1,741
py
Python
pymilldb/context/Column.py
Toka-Taka/mill-db
1edf390f2ce89d9232ba91d722cb4b104c398078
[ "MIT" ]
2
2019-11-05T06:24:59.000Z
2020-03-06T09:04:38.000Z
pymilldb/context/Column.py
bmstu-iu9/mill-db
a3725b11fcd995953dabc21f7fe6f4d5f5d38815
[ "MIT" ]
2
2019-05-22T09:40:51.000Z
2020-03-03T12:17:12.000Z
pymilldb/context/Column.py
Toka-Taka/mill-db
1edf390f2ce89d9232ba91d722cb4b104c398078
[ "MIT" ]
6
2018-05-03T16:04:13.000Z
2019-12-01T11:01:07.000Z
from .DataType import BaseType
28.540984
89
0.657668
50a5a6f4507fa5ed92be275eb4339130e457b023
6,369
py
Python
calico/etcddriver/test/test_hwm.py
ozdanborne/felix
5eff313e6498b3a7d775aa16cb09fd4578331701
[ "Apache-2.0" ]
6
2016-10-18T04:04:25.000Z
2016-10-18T04:06:49.000Z
calico/etcddriver/test/test_hwm.py
ozdanborne/felix
5eff313e6498b3a7d775aa16cb09fd4578331701
[ "Apache-2.0" ]
1
2021-06-01T21:45:37.000Z
2021-06-01T21:45:37.000Z
calico/etcddriver/test/test_hwm.py
ozdanborne/felix
5eff313e6498b3a7d775aa16cb09fd4578331701
[ "Apache-2.0" ]
2
2018-10-31T08:55:19.000Z
2019-04-16T02:14:50.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2015-2016 Tigera, Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unle...
41.627451
79
0.633851
50a67e7e71443f0123964ab785888984cda3fc3b
404
py
Python
skdecide/hub/domain/gym/__init__.py
jeromerobert/scikit-decide
900916e627669fb3f7520edb2aaef55e08064b25
[ "MIT" ]
null
null
null
skdecide/hub/domain/gym/__init__.py
jeromerobert/scikit-decide
900916e627669fb3f7520edb2aaef55e08064b25
[ "MIT" ]
null
null
null
skdecide/hub/domain/gym/__init__.py
jeromerobert/scikit-decide
900916e627669fb3f7520edb2aaef55e08064b25
[ "MIT" ]
1
2021-02-26T17:31:51.000Z
2021-02-26T17:31:51.000Z
# Copyright (c) AIRBUS and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from .gym import GymDomain, DeterministicInitializedGymDomain, GymWidthDomain, \ GymDiscreteActionDomain, DeterministicGymDomain, CostDeterministicG...
50.5
82
0.816832
50a78e2e1ef64a3b922e626522f2580ee9837a7c
7,092
py
Python
openwisp_network_topology/tests/test_admin.py
mafalaz/openwisp-network-topology
36188cfd20ad62787e8202bb6a4e106aaa26ef18
[ "BSD-3-Clause" ]
1
2018-12-07T14:24:26.000Z
2018-12-07T14:24:26.000Z
openwisp_network_topology/tests/test_admin.py
mafalaz/openwisp-network-topology
36188cfd20ad62787e8202bb6a4e106aaa26ef18
[ "BSD-3-Clause" ]
null
null
null
openwisp_network_topology/tests/test_admin.py
mafalaz/openwisp-network-topology
36188cfd20ad62787e8202bb6a4e106aaa26ef18
[ "BSD-3-Clause" ]
null
null
null
from django.test import TestCase from django.urls import reverse from django_netjsongraph.tests import CreateGraphObjectsMixin from django_netjsongraph.tests.base.test_admin import TestAdminMixin from openwisp_users.tests.utils import TestOrganizationMixin from openwisp_utils.tests.utils import TestMultitenantAdminMix...
41.473684
90
0.607727
50a7e0a80d5cef9b4bb80a0f46b84c78195b8ae4
527
py
Python
FaceLandmarking.LearningProcess/readers/regressor_example_reader.py
TomaszRewak/FaceLandmarking
74bc5cbcdb61cd9835e5bfc61e978fad256940f4
[ "MIT" ]
78
2018-02-09T14:30:06.000Z
2020-10-01T08:43:32.000Z
FaceLandmarking.LearningProcess/readers/regressor_example_reader.py
YoungerGao/Face-Landmarking
74bc5cbcdb61cd9835e5bfc61e978fad256940f4
[ "MIT" ]
1
2019-03-20T00:16:47.000Z
2019-03-24T09:12:25.000Z
FaceLandmarking.LearningProcess/readers/regressor_example_reader.py
YoungerGao/Face-Landmarking
74bc5cbcdb61cd9835e5bfc61e978fad256940f4
[ "MIT" ]
8
2019-03-03T11:57:43.000Z
2021-07-01T09:27:20.000Z
import csv
23.954545
101
0.571157
50a82399bf9b9b372729a8b7cc2d453fc77656d4
3,355
py
Python
tests/test_models.py
jmichalicek/django-mail-viewer
ede04bc6a0809b8e62621f5646396893ad966d71
[ "MIT" ]
3
2017-07-19T23:35:31.000Z
2022-02-13T18:49:04.000Z
tests/test_models.py
jmichalicek/django-mail-viewer
ede04bc6a0809b8e62621f5646396893ad966d71
[ "MIT" ]
1
2019-10-05T14:51:39.000Z
2019-10-05T14:51:40.000Z
tests/test_models.py
jmichalicek/django-mail-viewer
ede04bc6a0809b8e62621f5646396893ad966d71
[ "MIT" ]
null
null
null
from pathlib import Path import shutil from django.conf import settings from django.core import cache, mail from django.test import TestCase from django_mail_viewer.backends.database.models import EmailMessage
37.277778
119
0.633085
50a8805bffcc07db1ad4a801fc9b5ce33c494c35
5,977
py
Python
utils.py
mfouilleul/Haddock
de5f0ad9966707b09ff2a77f10d64290fb26083b
[ "MIT" ]
null
null
null
utils.py
mfouilleul/Haddock
de5f0ad9966707b09ff2a77f10d64290fb26083b
[ "MIT" ]
null
null
null
utils.py
mfouilleul/Haddock
de5f0ad9966707b09ff2a77f10d64290fb26083b
[ "MIT" ]
null
null
null
''' utils.py General utility functions: unit conversions, great-circle distances, CSV queries, platform-independent web browsing. ''' import csv import math import webbrowser # UNIT CONVERSIONS MPS_TO_KTS = 1.944
34.549133
147
0.565501
50a8f8b8a04737c09a518f900e9a3dbfb59b7774
1,862
py
Python
frontend/front.py
streampizza/chirrup
39444cdaa1af7fdcac9d8dcd34df644d4feae496
[ "Apache-2.0" ]
null
null
null
frontend/front.py
streampizza/chirrup
39444cdaa1af7fdcac9d8dcd34df644d4feae496
[ "Apache-2.0" ]
null
null
null
frontend/front.py
streampizza/chirrup
39444cdaa1af7fdcac9d8dcd34df644d4feae496
[ "Apache-2.0" ]
null
null
null
from flask import Flask from flask import request, render_template, redirect from datetime import datetime from pymongo import MongoClient import html import random import json import ast from flask.ext.pymongo import PyMongo from flask import make_response, request, current_app from functools import update_wrapper app...
40.478261
176
0.727175
50abbdac4aab572c750bb3e9b9b2333c098a8e14
1,578
py
Python
resticweb/engine_configure.py
XXL6/resticweb
48f8c86438d6c67b9f20f062d8c9e04ea6732767
[ "MIT" ]
1
2019-07-29T13:54:58.000Z
2019-07-29T13:54:58.000Z
resticweb/engine_configure.py
XXL6/resticweb
48f8c86438d6c67b9f20f062d8c9e04ea6732767
[ "MIT" ]
1
2020-04-30T09:57:31.000Z
2020-04-30T09:57:31.000Z
resticweb/engine_configure.py
XXL6/resticweb
48f8c86438d6c67b9f20f062d8c9e04ea6732767
[ "MIT" ]
1
2019-08-02T22:51:28.000Z
2019-08-02T22:51:28.000Z
from resticweb.dictionary.resticweb_variables import Config import resticweb.engine as local_engine from resticweb.dictionary.resticweb_exceptions import NoEngineAvailable import subprocess import os.path as path
35.863636
71
0.609632
50acb7ed0b3df74f0efa284a48e9366ef80c9de6
2,104
py
Python
saas/aiops/api/anomalydetection/main/anomaly_detection.py
iuskye/SREWorks
a2a7446767d97ec5f6d15bd00189c42150d6c894
[ "Apache-2.0" ]
407
2022-03-16T08:09:38.000Z
2022-03-31T12:27:10.000Z
saas/aiops/api/anomalydetection/main/anomaly_detection.py
Kwafoor/SREWorks
37a64a0a84b29c65cf6b77424bd2acd0c7b42e2b
[ "Apache-2.0" ]
25
2022-03-22T04:27:31.000Z
2022-03-30T08:47:28.000Z
saas/aiops/api/anomalydetection/main/anomaly_detection.py
Kwafoor/SREWorks
37a64a0a84b29c65cf6b77424bd2acd0c7b42e2b
[ "Apache-2.0" ]
109
2022-03-21T17:30:44.000Z
2022-03-31T09:36:28.000Z
import pandas as pd import json import time from bentoml import env, artifacts, api, BentoService from bentoml.adapters import DataframeInput, JsonInput, StringInput from bentoml.frameworks.sklearn import SklearnModelArtifact
28.821918
88
0.613593
50acfb5ef2c2292d0cbbb5ceac5eacf6da2c2045
139
py
Python
test cases/windows/10 vs module defs generated custom target/subdir/make_def.py
kira78/meson
0ae840656c5b87f30872072aa8694667c63c96d2
[ "Apache-2.0" ]
4,047
2015-06-18T10:36:48.000Z
2022-03-31T09:47:02.000Z
test cases/windows/10 vs module defs generated custom target/subdir/make_def.py
kira78/meson
0ae840656c5b87f30872072aa8694667c63c96d2
[ "Apache-2.0" ]
8,206
2015-06-14T12:20:48.000Z
2022-03-31T22:50:37.000Z
test cases/windows/10 vs module defs generated custom target/subdir/make_def.py
kira78/meson
0ae840656c5b87f30872072aa8694667c63c96d2
[ "Apache-2.0" ]
1,489
2015-06-27T04:06:38.000Z
2022-03-29T10:14:48.000Z
#!/usr/bin/env python3 import sys with open(sys.argv[1], 'w') as f: print('EXPORTS', file=f) print(' somedllfunc', file=f)
19.857143
40
0.597122
50ad9dd5356464000203ac7fc55703309310959c
730
py
Python
class-notes/fukushu/F-0728_graph.py
rhoenkelevra/python_simple_applications
28ceb5f9fe7ecf11d606d49463385e92927e8f98
[ "MIT" ]
null
null
null
class-notes/fukushu/F-0728_graph.py
rhoenkelevra/python_simple_applications
28ceb5f9fe7ecf11d606d49463385e92927e8f98
[ "MIT" ]
null
null
null
class-notes/fukushu/F-0728_graph.py
rhoenkelevra/python_simple_applications
28ceb5f9fe7ecf11d606d49463385e92927e8f98
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Jul 28 13:31:06 2021 @author: user24 """ ''' Suchi wo nyuryoku only accepts integer end shuryou creates a graph as image ''' import matplotlib.pyplot as plt cnt = 0 Y = [] while True: ans = input(" \n-->") if ans == "end": break try: ans_int = ...
16.590909
76
0.521918
50ae8802ab2f67d8085eed2af76c35268d1f3319
3,167
py
Python
flan/exports/awssqs.py
bretlowery/flan
b79319044fcdb2230ac090232e9056719cb09f17
[ "MIT" ]
3
2019-08-03T13:27:31.000Z
2021-06-08T16:25:31.000Z
flan/exports/awssqs.py
bretlowery/flan
b79319044fcdb2230ac090232e9056719cb09f17
[ "MIT" ]
2
2020-09-24T10:44:55.000Z
2021-06-25T15:31:24.000Z
flan/exports/awssqs.py
bretlowery/flan
b79319044fcdb2230ac090232e9056719cb09f17
[ "MIT" ]
null
null
null
from flanexport import FlanExport, timeout_after import os import ast try: from boto.sqs import connection from boto.sqs.message import Message except: pass
38.156627
94
0.610988
50af227f5cf4f7092ecffc1ecb9dc0ca94929c50
905
py
Python
setup.py
jongwon-jay-lee/ko_lm_dataformat
6ab51d9a021c550bab92534caf130f9cd7e26972
[ "MIT" ]
22
2021-06-30T03:13:21.000Z
2022-01-12T05:16:59.000Z
setup.py
jongwon-jay-lee/ko_lm_dataformat
6ab51d9a021c550bab92534caf130f9cd7e26972
[ "MIT" ]
10
2021-07-08T09:14:29.000Z
2021-11-07T18:54:50.000Z
setup.py
jongwon-jay-lee/ko_lm_dataformat
6ab51d9a021c550bab92534caf130f9cd7e26972
[ "MIT" ]
1
2021-07-08T01:44:51.000Z
2021-07-08T01:44:51.000Z
import os import sys from setuptools import setup, find_packages if sys.version_info < (3, 6): sys.exit("Sorry, Python >= 3.6 is required for ko_lm_dataformat") with open("requirements.txt") as f: require_packages = [line.strip() for line in f] with open(os.path.join("ko_lm_dataformat", "version.txt")) as f:...
31.206897
82
0.707182
50b00721b02820e3b4b32a57d5d51dcc9d8741c6
5,852
py
Python
tools/prepare_iata_airline_dump_file.py
mtrampont/opentraveldata
94d10fc313f75058079d9a3e1a766c704fbe9488
[ "CC-BY-4.0" ]
208
2015-03-24T13:42:20.000Z
2022-01-16T23:48:02.000Z
tools/prepare_iata_airline_dump_file.py
mtrampont/opentraveldata
94d10fc313f75058079d9a3e1a766c704fbe9488
[ "CC-BY-4.0" ]
155
2015-02-11T13:53:43.000Z
2022-03-12T08:25:13.000Z
tools/prepare_iata_airline_dump_file.py
mtrampont/opentraveldata
94d10fc313f75058079d9a3e1a766c704fbe9488
[ "CC-BY-4.0" ]
99
2015-01-27T14:32:19.000Z
2022-02-05T15:13:13.000Z
#!/usr/bin/env python import getopt, sys, io import pandas as pd # # Usage # def usage (script_name): """ Display the usage. """ print ("") print ("Usage: {} [options]".format(script_name)) print ("") print ("That script transforms and filter a fix width data file into a hat symbol separa...
32.876404
136
0.576384
50b0d3191e31237febc87109e80b45a79739c498
8,117
py
Python
sanalberto/views/polls.py
xJavii8/dafi-system
6f4a3f77c40424a0c1d7c80236f0bf52be4304d2
[ "MIT" ]
7
2019-08-03T12:25:18.000Z
2021-11-02T12:51:33.000Z
sanalberto/views/polls.py
xJavii8/dafi-system
6f4a3f77c40424a0c1d7c80236f0bf52be4304d2
[ "MIT" ]
11
2019-08-20T17:07:37.000Z
2021-11-23T14:26:07.000Z
sanalberto/views/polls.py
xJavii8/dafi-system
6f4a3f77c40424a0c1d7c80236f0bf52be4304d2
[ "MIT" ]
4
2020-04-06T11:33:02.000Z
2021-10-31T09:10:53.000Z
from collections import Counter from typing import ( Any, cast, ) from django.contrib import messages from django.contrib.auth.mixins import ( LoginRequiredMixin, UserPassesTestMixin, ) from django.db import transaction from django.db.models import ( Count, Q, ) from django.forms.models import ...
28.28223
92
0.604164
50b1a3151683891fe29f85b69660417956b904a6
4,473
py
Python
face_morpher/facemorpher/warper.py
ivan-uskov/faces
59a27c305888e8e000cb1549f8b06216449b1f05
[ "MIT" ]
1
2021-09-16T00:02:48.000Z
2021-09-16T00:02:48.000Z
facemorpher/warper.py
ImpactCrater/AutoFaceMorpher
9955a02d9cec309ca0db8c2454f9466f7e1633c5
[ "MIT" ]
null
null
null
facemorpher/warper.py
ImpactCrater/AutoFaceMorpher
9955a02d9cec309ca0db8c2454f9466f7e1633c5
[ "MIT" ]
null
null
null
import numpy as np import scipy.spatial as spatial def bilinear_interpolate(img, coords): """ Interpolates over every image channel http://en.wikipedia.org/wiki/Bilinear_interpolation :param img: max 3 channel image :param coords: 2 x _m_ array. 1st row = xcoords, 2nd row = ycoords :returns: array of interp...
31.95
79
0.709144
50b1e8b1216b573ce1073b4417985c18776e49bb
346
py
Python
paddlehub/serving/gunicorn.py
18621579069/PaddleHub-yu
15e8bcef2addf239081e235bdcfd039de12330e0
[ "Apache-2.0" ]
4
2021-02-25T03:27:38.000Z
2021-05-15T03:20:23.000Z
paddlehub/serving/gunicorn.py
Melissa9596/PaddleHub
0b002a0add1c982d52f7591a5e773bf09b3e6361
[ "Apache-2.0" ]
null
null
null
paddlehub/serving/gunicorn.py
Melissa9596/PaddleHub
0b002a0add1c982d52f7591a5e773bf09b3e6361
[ "Apache-2.0" ]
2
2021-03-01T07:04:01.000Z
2021-05-14T05:54:18.000Z
#!/usr/bin/env python # coding=utf-8 # coding: utf8 """ configuration for gunicorn """ import multiprocessing bind = '0.0.0.0:8888' backlog = 2048 workers = multiprocessing.cpu_count() * 2 + 1 threads = 1 worker_class = 'sync' worker_connections = 1000 timeout = 500 keepalive = 40 daemon = False loglevel = 'info' error...
17.3
45
0.702312
50b2c8b6eb4eb1e401d69a4ec9a24c73d1dd8ed4
220
py
Python
Exercices/Secao04/exercicio46.py
Guilt-tech/PythonExercices
e59bffae997a1974d3e3cdcfff7700afbed65e6e
[ "MIT" ]
null
null
null
Exercices/Secao04/exercicio46.py
Guilt-tech/PythonExercices
e59bffae997a1974d3e3cdcfff7700afbed65e6e
[ "MIT" ]
null
null
null
Exercices/Secao04/exercicio46.py
Guilt-tech/PythonExercices
e59bffae997a1974d3e3cdcfff7700afbed65e6e
[ "MIT" ]
null
null
null
print('Digite um nmero inteiro positivo de trs dgitos (100 a 999), para gerar o nmero invertido') num = int(input('Nmero: ')) num = str(num) reverso = num[::-1] print(f'O nmero ao contrrio de: {num} : {reverso}')
44
101
0.695455
50b40243d48dd7096f88e7ab86cfe6c9d963a1b7
1,277
py
Python
webapp/assessdb/scripts/import_csv_instruments.py
sspickle/assessdb
89f99424ef7ab1405d7fa37a74764dd12cef1abf
[ "BSD-2-Clause" ]
null
null
null
webapp/assessdb/scripts/import_csv_instruments.py
sspickle/assessdb
89f99424ef7ab1405d7fa37a74764dd12cef1abf
[ "BSD-2-Clause" ]
null
null
null
webapp/assessdb/scripts/import_csv_instruments.py
sspickle/assessdb
89f99424ef7ab1405d7fa37a74764dd12cef1abf
[ "BSD-2-Clause" ]
null
null
null
import os import sys import transaction import csv from pyramid.paster import ( get_appsettings, setup_logging, ) from pyramid.scripts.common import parse_vars from ..models.meta import Base from ..models import ( get_engine, get_session_factory, get_tm_session, ) from ..models import Ins...
24.557692
72
0.636648
50b4618057184dfc1016b24c9b7fde5730dbf199
14,440
py
Python
stock/experiment_compare_iterations_autions.py
dvirg/auctions
da706f3d11b9582c7f811de9f50b96b43ac8cbd0
[ "MIT" ]
1
2021-11-20T19:27:45.000Z
2021-11-20T19:27:45.000Z
stock/experiment_compare_iterations_autions.py
dvirg/auctions
da706f3d11b9582c7f811de9f50b96b43ac8cbd0
[ "MIT" ]
null
null
null
stock/experiment_compare_iterations_autions.py
dvirg/auctions
da706f3d11b9582c7f811de9f50b96b43ac8cbd0
[ "MIT" ]
null
null
null
#!python3 """ A utility for performing simulation experiments on auction mechanisms. The experiment is similar to the one described by McAfee (1992), Table I (page 448). In each experiment, we measure the actual vs. the optimal gain-from-trade. This experiment using the real prices from Stock market. the prices are i...
60.92827
290
0.572853
50b799f3f9190f81ef4e7396819f3c43e59e132b
106
py
Python
categorias/iniciante/python/1095.py
carlos3g/URI-solutions
dc7f9b896cdff88aedf67611917b178d3ad60ab3
[ "MIT" ]
1
2022-01-26T23:38:17.000Z
2022-01-26T23:38:17.000Z
categorias/iniciante/python/1095.py
carlos3g/URI-solutions
dc7f9b896cdff88aedf67611917b178d3ad60ab3
[ "MIT" ]
1
2020-07-12T00:49:35.000Z
2021-06-26T20:53:18.000Z
categorias/iniciante/python/1095.py
carlos3g/URI-solutions
dc7f9b896cdff88aedf67611917b178d3ad60ab3
[ "MIT" ]
1
2020-07-04T03:27:04.000Z
2020-07-04T03:27:04.000Z
# -*- coding: utf-8 -*- i = 1 for x in range(60, -1, -5): print('I={} J={}'.format(i, x)) i += 3
15.142857
35
0.415094
50bb8c5b0c6ec60a8f6499ccba72330254c202d1
6,572
py
Python
py_version/primary.py
the-phinisher/tic-tac-toe
d8aa6c396fb3c97c3c97ebbcf68c80663bb04723
[ "MIT" ]
null
null
null
py_version/primary.py
the-phinisher/tic-tac-toe
d8aa6c396fb3c97c3c97ebbcf68c80663bb04723
[ "MIT" ]
1
2022-02-22T09:48:54.000Z
2022-02-22T09:48:54.000Z
py_version/primary.py
the-phinisher/tic-tac-toe
d8aa6c396fb3c97c3c97ebbcf68c80663bb04723
[ "MIT" ]
null
null
null
from copy import deepcopy from math import inf import platform from os import system if platform.system() == 'Windows': else: board = [[0,0,0], [0,0,0], [0,0,0]] player1 = 1 player2 = -1 null_move = [None, None] draw = 0 def wins(state: list, player: int) -> bool: """ Returns if...
24.522388
73
0.574559
50bd37ee8461876376290a970632ede83e07fe93
183
py
Python
set.py
git4satya/koleksyon
966f3f6ea16a9c5c0bb12d2aec52c5c89e42090c
[ "MIT" ]
null
null
null
set.py
git4satya/koleksyon
966f3f6ea16a9c5c0bb12d2aec52c5c89e42090c
[ "MIT" ]
null
null
null
set.py
git4satya/koleksyon
966f3f6ea16a9c5c0bb12d2aec52c5c89e42090c
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from distutils.core import setup from Cython.Build import cythonize setup(name="mcmc", ext_modules=cythonize("./src/koleksyon/mcmc.pyx"))
30.5
69
0.808743
50becd1ac57ae3a984bcaa01bb929787c41d56e8
995
py
Python
tests/test_functions/http_log_exception/main.py
KaylaNguyen/functions-framework-python
e44416e8e35a0f997d0dacd9f313306fe63646a4
[ "Apache-2.0" ]
479
2020-01-09T19:50:54.000Z
2022-03-31T11:26:16.000Z
tests/test_functions/http_log_exception/main.py
KaylaNguyen/functions-framework-python
e44416e8e35a0f997d0dacd9f313306fe63646a4
[ "Apache-2.0" ]
97
2020-01-10T21:45:46.000Z
2022-03-29T12:19:17.000Z
tests/test_functions/http_log_exception/main.py
KaylaNguyen/functions-framework-python
e44416e8e35a0f997d0dacd9f313306fe63646a4
[ "Apache-2.0" ]
81
2020-01-09T22:20:08.000Z
2022-03-25T21:55:20.000Z
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
29.264706
74
0.725628
50bf59fcf053969178b6b0b82c944711edaaf728
574
py
Python
tivol/tests/assets/migration_handlers.py
RoySegall/tivol
b3f32470e10f1d94c88df095e4cb67adb97b6b1a
[ "MIT" ]
2
2020-02-14T01:34:03.000Z
2020-03-16T16:22:56.000Z
tivol/tests/assets/migration_handlers.py
RoySegall/tivol
b3f32470e10f1d94c88df095e4cb67adb97b6b1a
[ "MIT" ]
8
2020-01-23T14:12:23.000Z
2020-02-01T09:49:28.000Z
tivol/tests/assets/migration_handlers.py
RoySegall/django-tivol
b3f32470e10f1d94c88df095e4cb67adb97b6b1a
[ "MIT" ]
null
null
null
from tivol.base_classes.mappers import CsvMapper from tivol.base_classes.migration_handler_base import MigrationHandlerBase import os
30.210526
74
0.688153
50c1727f4cbaa7d21dda9d008ae65222d11294d4
1,718
py
Python
2017/day25/day25.py
icemanblues/advent-of-code
eac937ac2762d1c8b8cec358a13af352e339446c
[ "Apache-2.0" ]
null
null
null
2017/day25/day25.py
icemanblues/advent-of-code
eac937ac2762d1c8b8cec358a13af352e339446c
[ "Apache-2.0" ]
2
2020-04-06T18:56:13.000Z
2022-03-30T20:32:50.000Z
2017/day25/day25.py
icemanblues/advent-of-code
eac937ac2762d1c8b8cec358a13af352e339446c
[ "Apache-2.0" ]
null
null
null
from typing import Set day_num = "25" day_title = "The Halting Problem" if __name__ == '__main__': main()
23.534247
41
0.419092
50c19a0a1d56c769b8744b086fd0f546baaa2e03
263
py
Python
Code.py
sad786/Python
738198bbab5abfa1d521e83291eed7026a4f6f12
[ "Apache-2.0" ]
null
null
null
Code.py
sad786/Python
738198bbab5abfa1d521e83291eed7026a4f6f12
[ "Apache-2.0" ]
null
null
null
Code.py
sad786/Python
738198bbab5abfa1d521e83291eed7026a4f6f12
[ "Apache-2.0" ]
null
null
null
T = int(input()) for t in range(T): N = int(input()) res1,res2 = process(N) print('Case #{}: {} {}'.format(t+1,res1,res2))
20.230769
50
0.536122
50c26ee0fff34f323c178c0a015c36474ab32bbb
1,067
py
Python
repos/insightface/deploy/test.py
batermj/DeepVideoAnalytics
daad116b87370fce1799b7948af73b92f617cf41
[ "BSD-3-Clause", "Apache-2.0", "MIT" ]
1
2021-03-23T12:31:59.000Z
2021-03-23T12:31:59.000Z
repos/insightface/deploy/test.py
batermj/DeepVideoAnalytics
daad116b87370fce1799b7948af73b92f617cf41
[ "BSD-3-Clause", "Apache-2.0", "MIT" ]
null
null
null
repos/insightface/deploy/test.py
batermj/DeepVideoAnalytics
daad116b87370fce1799b7948af73b92f617cf41
[ "BSD-3-Clause", "Apache-2.0", "MIT" ]
null
null
null
import face_embedding import argparse import cv2 import numpy as np parser = argparse.ArgumentParser(description='face model test') # general parser.add_argument('--image-size', default='112,112', help='') parser.add_argument('--model', default='../models/model-r34-amf/model,0', help='path to load model.') parser.add_...
41.038462
103
0.700094
50c35512a7e771c592f2f59783b3d7b03116ff00
6,509
py
Python
apollon/io.py
bader28/apollon
588a347f02e4c78a455d7c6ae7e61af80058eafa
[ "BSD-3-Clause" ]
null
null
null
apollon/io.py
bader28/apollon
588a347f02e4c78a455d7c6ae7e61af80058eafa
[ "BSD-3-Clause" ]
null
null
null
apollon/io.py
bader28/apollon
588a347f02e4c78a455d7c6ae7e61af80058eafa
[ "BSD-3-Clause" ]
null
null
null
# Licensed under the terms of the BSD-3-Clause license. # Copyright (C) 2019 Michael Bla # michael.blass@uni-hamburg.de """apollon/io.py -- General I/O functionallity. Classes: ArrayEncoder Serialize numpy array to JSON. FileAccessControl Descriptor for file name attributes. Functions: a...
29.586364
94
0.591796
50c4211594641f15f4d0dd51846dc4859fa97b1a
3,327
py
Python
stockbot/provider/yahoo.py
Habbie/stockbot
648e70604828d0ed762c243b4eb83122fd393b4d
[ "Apache-2.0" ]
null
null
null
stockbot/provider/yahoo.py
Habbie/stockbot
648e70604828d0ed762c243b4eb83122fd393b4d
[ "Apache-2.0" ]
null
null
null
stockbot/provider/yahoo.py
Habbie/stockbot
648e70604828d0ed762c243b4eb83122fd393b4d
[ "Apache-2.0" ]
null
null
null
import logging import requests import urllib.parse from datetime import datetime from stockbot.provider.base import BaseQuoteService, BaseQuote LOGGER = logging.getLogger(__name__)
31.990385
113
0.613766
50c582358879f0d88ea08b7b116c6d9019fa47eb
850
py
Python
Database/SQLIte/15.Limit/U1.py
sarincr/Business-analytics-Course-with-Python-
10e577fdb3cf90bb87c97cd23ee3ecd6a083bfc4
[ "MIT" ]
3
2022-01-18T05:35:52.000Z
2022-03-25T06:13:54.000Z
Database/SQLIte/15.Limit/U1.py
sarincr/Business-analytics-Course-with-Python-
10e577fdb3cf90bb87c97cd23ee3ecd6a083bfc4
[ "MIT" ]
null
null
null
Database/SQLIte/15.Limit/U1.py
sarincr/Business-analytics-Course-with-Python-
10e577fdb3cf90bb87c97cd23ee3ecd6a083bfc4
[ "MIT" ]
2
2022-01-17T08:23:59.000Z
2022-01-17T08:28:18.000Z
import sqlite3 X = sqlite3.connect('NeDB.db') Y = X.cursor() Y.execute('''CREATE TABLE IF NOT EXISTS EMPLOYEE ( ID integer, Name text NOT NULL, Date_Join text, Place text, Age integer, Salary real);''') Y.execute('''INSERT INT...
27.419355
167
0.556471
50c5e0a8570cdd739aa3c8e994e48c1fd64e8100
196
py
Python
lambda/python/ip/what_is_my_ip.py
enrikiko/AWS
e8984e5fc5d015285ef2cc3f4295a273d1994e22
[ "MIT" ]
null
null
null
lambda/python/ip/what_is_my_ip.py
enrikiko/AWS
e8984e5fc5d015285ef2cc3f4295a273d1994e22
[ "MIT" ]
null
null
null
lambda/python/ip/what_is_my_ip.py
enrikiko/AWS
e8984e5fc5d015285ef2cc3f4295a273d1994e22
[ "MIT" ]
null
null
null
import json
21.777778
57
0.561224
50c7a3be78d0fd416ee2c6259ac08e9ae566c6ec
47
py
Python
week1/8.py
kamorozov/coursera_python
706bc1bc46839f8b3debdf293240ad5ce20c9775
[ "Unlicense" ]
2
2019-05-17T13:42:02.000Z
2019-05-18T04:00:35.000Z
week1/8.py
kamorozov/coursera_python
706bc1bc46839f8b3debdf293240ad5ce20c9775
[ "Unlicense" ]
null
null
null
week1/8.py
kamorozov/coursera_python
706bc1bc46839f8b3debdf293240ad5ce20c9775
[ "Unlicense" ]
2
2019-10-03T09:07:44.000Z
2019-12-28T19:17:20.000Z
n = int(input()) n = n % 100 print(n // 10)
11.75
17
0.468085
50c9aef6ef070fdd9753a4e730c01e945a86b51c
3,581
py
Python
qtpp/views/auth.py
xzdylyh/qtppy
baa37c59082863ace3cddb09c30a55a92d64f656
[ "Apache-2.0" ]
2
2020-04-23T06:10:05.000Z
2021-01-21T08:56:09.000Z
qtpp/views/auth.py
xzdylyh/qtppy
baa37c59082863ace3cddb09c30a55a92d64f656
[ "Apache-2.0" ]
2
2020-04-22T10:11:29.000Z
2020-05-12T10:02:14.000Z
qtpp/views/auth.py
xzdylyh/qtppy
baa37c59082863ace3cddb09c30a55a92d64f656
[ "Apache-2.0" ]
4
2020-04-22T09:35:14.000Z
2020-12-19T08:15:25.000Z
import functools from flask import ( Blueprint, flash, g, redirect, render_template, request, session, url_for, jsonify, abort ) from werkzeug.security import check_password_hash, generate_password_hash from qtpp import db from qtpp.libs.framework.operate_db import OperationDB from qtpp.libs.framework.constant i...
26.330882
93
0.647584
50cb859c45255f62ffcfcc061001338143096d48
403
py
Python
engine/mixer.py
UnidayStudio/Easy-2D-Game-Engine
1a8501cba538d7542b0e24bf64eead388085480f
[ "MIT" ]
8
2019-12-15T22:32:30.000Z
2021-06-14T07:38:51.000Z
engine/mixer.py
UnidayStudio/Easy-2D-Game-Engine
1a8501cba538d7542b0e24bf64eead388085480f
[ "MIT" ]
null
null
null
engine/mixer.py
UnidayStudio/Easy-2D-Game-Engine
1a8501cba538d7542b0e24bf64eead388085480f
[ "MIT" ]
2
2020-09-10T17:34:23.000Z
2021-03-11T09:26:26.000Z
import pygame import engine.file
17.521739
55
0.674938
50cdb2534223082d1a5457fe8849bcb64350b906
3,984
py
Python
csv sift.py
hitime1234/progress-8-sorter
91007d823f0b64c082c39a619464b3c0b7af7bd9
[ "Unlicense" ]
null
null
null
csv sift.py
hitime1234/progress-8-sorter
91007d823f0b64c082c39a619464b3c0b7af7bd9
[ "Unlicense" ]
null
null
null
csv sift.py
hitime1234/progress-8-sorter
91007d823f0b64c082c39a619464b3c0b7af7bd9
[ "Unlicense" ]
null
null
null
import time print("starting up") filename = input("filename without csv? ") data = readcsv(filename, 5680) print("data loaded") print("\n") while True: print("\n") choice = input("would you like to do?\n1.generate rank text file\n2.search for progress 8 average\n3.search for ranking ...
27.86014
148
0.482681
50d06ff15aa34045442b090d6e40b36a03bc3175
714
py
Python
kge/util/glove_to_word2vec.py
Team-Project-OKG/kge
d09e41ccc30b54c1de983e8c4f6f95b92983bcb3
[ "MIT" ]
null
null
null
kge/util/glove_to_word2vec.py
Team-Project-OKG/kge
d09e41ccc30b54c1de983e8c4f6f95b92983bcb3
[ "MIT" ]
1
2020-12-10T16:59:43.000Z
2020-12-10T16:59:43.000Z
kge/util/glove_to_word2vec.py
Team-Project-OKG/kge
d09e41ccc30b54c1de983e8c4f6f95b92983bcb3
[ "MIT" ]
null
null
null
import os import sys from gensim.scripts.glove2word2vec import glove2word2vec from kge.misc import kge_base_dir def _convert_to_word2vec( filename: str ): """ Convert file of pretrained embeddings in GloVe format to word2vec format. """ folder = os.path.join(kge_base_dir(), "pretrained") ...
27.461538
81
0.72409
50d086d27fad503205a3c61c81321db64af884db
25,829
py
Python
ui/command_list.py
wangjing1215/COM-DEV
2d8e412447cb2b98847c871208af3d2497f19d1b
[ "MIT" ]
null
null
null
ui/command_list.py
wangjing1215/COM-DEV
2d8e412447cb2b98847c871208af3d2497f19d1b
[ "MIT" ]
null
null
null
ui/command_list.py
wangjing1215/COM-DEV
2d8e412447cb2b98847c871208af3d2497f19d1b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'command_list.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore,...
41.3264
150
0.628634
50d091c9f0425cffc07e257ef10b1881ccd4fbda
1,514
py
Python
pedidos/migrations/0001_initial.py
tiagocordeiro/zumaq-partners
ba2c5d4257438ec062ef034096cd203efe58ef4a
[ "MIT" ]
1
2019-02-13T11:01:25.000Z
2019-02-13T11:01:25.000Z
pedidos/migrations/0001_initial.py
tiagocordeiro/zumaq-partners
ba2c5d4257438ec062ef034096cd203efe58ef4a
[ "MIT" ]
619
2018-11-26T06:11:05.000Z
2022-03-31T22:56:13.000Z
pedidos/migrations/0001_initial.py
tiagocordeiro/zumaq-partners
ba2c5d4257438ec062ef034096cd203efe58ef4a
[ "MIT" ]
1
2020-03-12T16:34:13.000Z
2020-03-12T16:34:13.000Z
# Generated by Django 2.1.7 on 2019-02-14 13:07 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
38.820513
174
0.602378
50d1ff29cc95475cd6346e510fcbdb66477154e4
2,358
py
Python
spyderlib/utils/debug.py
MarlaJahari/Marve
d8d18122c19f050429a91ef23edc87a85fecad1d
[ "MIT" ]
1
2021-01-25T02:13:36.000Z
2021-01-25T02:13:36.000Z
SMlib/utils/debug.py
koll00/Gui_SM
d02d28b20ef2ae1aa602b9bb52a6bb55fd66be9c
[ "MIT" ]
null
null
null
SMlib/utils/debug.py
koll00/Gui_SM
d02d28b20ef2ae1aa602b9bb52a6bb55fd66be9c
[ "MIT" ]
1
2021-08-04T08:13:34.000Z
2021-08-04T08:13:34.000Z
# -*- coding: utf-8 -*- # # Copyright 2009-2010 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """Debug utilities""" import inspect import traceback import time def log_last_error(fname, context=None): """Log last error in filename *fname* -...
31.026316
79
0.583121
50d2c1c7aa4bbe6ee66540b15f05fba5392b4c86
5,495
bzl
Python
swift/internal/swift_c_module.bzl
BalestraPatrick/rules_swift
35ef1d6ebd7adb8d20c096bb4355cf41c9a0b5cf
[ "Apache-2.0" ]
215
2018-06-06T18:05:25.000Z
2022-03-28T09:46:50.000Z
swift/internal/swift_c_module.bzl
BalestraPatrick/rules_swift
35ef1d6ebd7adb8d20c096bb4355cf41c9a0b5cf
[ "Apache-2.0" ]
416
2018-06-06T22:13:18.000Z
2022-03-31T15:57:04.000Z
swift/internal/swift_c_module.bzl
BalestraPatrick/rules_swift
35ef1d6ebd7adb8d20c096bb4355cf41c9a0b5cf
[ "Apache-2.0" ]
92
2018-06-10T17:45:35.000Z
2022-03-17T21:45:27.000Z
# Copyright 2018 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
41.315789
80
0.682621
50d2c63c50baed76074a457c6cee5b8d1cf60572
2,170
py
Python
PytomationMailStandalone.py
riensWinoto/PytomationMail
c29f406a86eecabd7e1258795ed95b5328be9d5f
[ "MIT" ]
null
null
null
PytomationMailStandalone.py
riensWinoto/PytomationMail
c29f406a86eecabd7e1258795ed95b5328be9d5f
[ "MIT" ]
null
null
null
PytomationMailStandalone.py
riensWinoto/PytomationMail
c29f406a86eecabd7e1258795ed95b5328be9d5f
[ "MIT" ]
null
null
null
import smtplib import sys import time from datetime import datetime # variable trigger = 0 myName = "your name" myEmail = "your@email.com" myPass = "y0urP4s5w0rd" myEmailSMTP = "smtp.yourEmailProvider.com" #for gmail: smtp.gmail.com for outlook: smtp.office365.com mySMTPPort = 587 receivers = {"receiver name": "rece...
28.181818
102
0.670507
50d316e96203c330defac6b5f9275d3b8cbbe62b
220
py
Python
tempgui.py
mustafaIhssan/semantic-segmentation-maker
83ac9af29fccdba83e463762116e22445938987b
[ "MIT" ]
1
2016-12-29T07:59:10.000Z
2016-12-29T07:59:10.000Z
tempgui.py
mustafaIhssan/semantic-segmentation-maker
83ac9af29fccdba83e463762116e22445938987b
[ "MIT" ]
null
null
null
tempgui.py
mustafaIhssan/semantic-segmentation-maker
83ac9af29fccdba83e463762116e22445938987b
[ "MIT" ]
null
null
null
import Tkinter parent_widget = Tkinter.Tk() scale_widget = Tkinter.Scale(parent_widget, from_=0, to=100, orient=Tkinter.HORIZONTAL) scale_widget.set(25) scale_widget.pack() Tkinter.mainloop()
31.428571
60
0.7
50d3680b3ac0276b323b0fe43cf5218d56058d3e
2,864
py
Python
main.py
agoupy/parrainages
383e69e962ef256c9375d2b5ce01dbcad656c579
[ "MIT" ]
null
null
null
main.py
agoupy/parrainages
383e69e962ef256c9375d2b5ce01dbcad656c579
[ "MIT" ]
null
null
null
main.py
agoupy/parrainages
383e69e962ef256c9375d2b5ce01dbcad656c579
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Feb 24 14:12:38 2022 @author: j64280 """ import alluvial import pandas as pd import matplotlib.pyplot as plt import numpy as np import matplotlib.cm list_2017 = pd.read_csv('parrainagestotal_2017.csv',sep=';') list_2022 = pd.read_csv('parrainagestot...
44.061538
133
0.688198
50d3d47aab29740b1510e0aea9c31e455ae9cd65
21,767
py
Python
bridge_sim/sim/run/opensees/build/d3/__init__.py
jerbaroo/bridge-sim
c4ec1c18a07a78462ccf3b970a99a1bd7efcc2af
[ "MIT" ]
2
2020-05-12T11:41:49.000Z
2020-08-10T15:00:58.000Z
bridge_sim/sim/run/opensees/build/d3/__init__.py
barischrooneyj/bridge-sim
c4ec1c18a07a78462ccf3b970a99a1bd7efcc2af
[ "MIT" ]
48
2020-05-11T23:58:22.000Z
2020-09-18T20:28:52.000Z
bridge_sim/sim/run/opensees/build/d3/__init__.py
jerbaroo/bridge-sim
c4ec1c18a07a78462ccf3b970a99a1bd7efcc2af
[ "MIT" ]
1
2020-05-27T12:43:37.000Z
2020-05-27T12:43:37.000Z
"""Build OpenSees 3D model files.""" import os from collections import OrderedDict, defaultdict from itertools import chain from typing import List, Optional, Tuple import numpy as np from bridge_sim.model import PierSettlement, PointLoad, Config, Material from bridge_sim.sim.model import ( BuildContext, Dec...
35.45114
89
0.612119
50d3ff539d0dc35fa385af4b1fce1942ee1690c8
1,944
py
Python
setup.py
KathleenLabrie/KLpysci
848f659dd6743e2f390ee08ac7d350817ef5e9b3
[ "0BSD" ]
null
null
null
setup.py
KathleenLabrie/KLpysci
848f659dd6743e2f390ee08ac7d350817ef5e9b3
[ "0BSD" ]
null
null
null
setup.py
KathleenLabrie/KLpysci
848f659dd6743e2f390ee08ac7d350817ef5e9b3
[ "0BSD" ]
null
null
null
from setuptools import setup, find_packages from codecs import open import os import klpysci VERSION = klpysci.__version__ cwd = os.path.abspath(os.path.dirname(__file__)) # Get the long_description from the Description.rst file with open(os.path.join(cwd, 'DESCRIPTION.rst'), encoding='utf-8') as f: long_descrip...
29.014925
93
0.542181
50d864ab62ce6a701debae2af6bac07b0dbf0ee8
9,439
py
Python
libsolresol.py
MishaKlopukh/solresol-language
075332912fdda7412e11c759c958997fee6c87a9
[ "MIT" ]
null
null
null
libsolresol.py
MishaKlopukh/solresol-language
075332912fdda7412e11c759c958997fee6c87a9
[ "MIT" ]
null
null
null
libsolresol.py
MishaKlopukh/solresol-language
075332912fdda7412e11c759c958997fee6c87a9
[ "MIT" ]
null
null
null
import enum import numpy as np import matplotlib.pyplot as plt import matplotlib.patches as patches from scipy.io import wavfile import json jupyter_nb_mode = False try: assert jupyter_nb_mode from IPython.display import Audio except: import sounddevice as sd class SolresolWord(): def __str__(self): ...
44.523585
156
0.599534
50d889e431ae6bc543ceb74e6af10a5b1cfede00
4,351
py
Python
src/icegrams/trie_build.py
vthorsteinsson/Icegrams
d20d137a7e2b3316f38dfd5ace826993704c2050
[ "MIT" ]
7
2019-03-04T18:14:37.000Z
2019-03-29T02:57:02.000Z
src/icegrams/trie_build.py
vthorsteinsson/Icegrams
d20d137a7e2b3316f38dfd5ace826993704c2050
[ "MIT" ]
1
2020-09-04T13:19:38.000Z
2020-09-06T20:14:58.000Z
src/icegrams/trie_build.py
vthorsteinsson/Icegrams
d20d137a7e2b3316f38dfd5ace826993704c2050
[ "MIT" ]
1
2019-05-31T11:45:51.000Z
2019-05-31T11:45:51.000Z
""" Icegrams: A trigrams library for Icelandic CFFI builder for _trie module Copyright (C) 2020 Mieind ehf. Original author: Vilhjlmur orsteinsson This software is licensed under the MIT License: Permission is hereby granted, free of charge, to any person obtaining a copy of thi...
35.08871
81
0.69846
50d8d110901dc8d422a6e7035234a1d64625b3dc
1,854
py
Python
raspi/test/bork_dprc.py
lukaschoebel/bed
4f3619809adab9156e530bfa71c426871749d53b
[ "MIT" ]
null
null
null
raspi/test/bork_dprc.py
lukaschoebel/bed
4f3619809adab9156e530bfa71c426871749d53b
[ "MIT" ]
1
2020-09-11T13:11:16.000Z
2020-09-11T13:11:16.000Z
raspi/test/bork_dprc.py
lukaschoebel/bed
4f3619809adab9156e530bfa71c426871749d53b
[ "MIT" ]
null
null
null
#!/usr/bin/python import time import random import RPi.GPIO as GPIO import firebase_admin from firebase_admin import credentials, firestore cred = credentials.Certificate("secrets/firestore-creds.json") firebase_admin.initialize_app(cred) db = firestore.client() GPIO.setwarnings(False) GPIO.setmode(GPIO.BCM) GPIO.set...
22.888889
62
0.639159
50d94d09fea5fca32eea005cff0447eb0f2d233c
461
py
Python
src/test/when.py
cgjones/rr
dcdde9c497cad27618b27f6754c11b0693894178
[ "MIT" ]
3
2015-03-01T23:26:27.000Z
2021-01-14T03:31:36.000Z
src/test/when.py
rogerwang/rr
619b8951d392b46c6f62b2bad7c0861a05d9f32e
[ "MIT" ]
null
null
null
src/test/when.py
rogerwang/rr
619b8951d392b46c6f62b2bad7c0861a05d9f32e
[ "MIT" ]
null
null
null
from rrutil import * import re send_gdb('when\n') expect_gdb(re.compile(r'= (\d+)')) t = eval(last_match().group(1)); if t < 1 or t > 10000: failed('ERROR in first "when"') send_gdb('b main\n') expect_gdb('Breakpoint 1') send_gdb('c\n') send_gdb('when\n') expect_gdb(re.compile(r'= (\d+)')) t2 = eval(last_match()...
20.043478
48
0.624729
50d96de220acc9a59d7ab8f8ff91b286fe24be92
1,137
py
Python
tests/test_invex.py
xridge/invex
05cbdea29e486a82965d6798d2482296654939bd
[ "Apache-2.0" ]
1
2019-09-08T19:30:28.000Z
2019-09-08T19:30:28.000Z
tests/test_invex.py
xridge/invex
05cbdea29e486a82965d6798d2482296654939bd
[ "Apache-2.0" ]
7
2020-03-24T17:02:53.000Z
2021-12-13T19:59:03.000Z
tests/test_invex.py
otto-von-bivouac/invex
05cbdea29e486a82965d6798d2482296654939bd
[ "Apache-2.0" ]
1
2019-04-24T21:20:37.000Z
2019-04-24T21:20:37.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `invex` package.""" import os import py from click.testing import CliRunner import pytest from flexfolio.utils import run from invex import cli from .reports import ALL_FLEX_REPORTS
28.425
77
0.663149
50d99798c529ede9378d5878470651f778e5c271
2,078
py
Python
lista_ex3.1.py/exercicio23.py
robinson-1985/mentoria_exercises
8359cead6ee5351851b04cb45f252e3881b79117
[ "MIT" ]
null
null
null
lista_ex3.1.py/exercicio23.py
robinson-1985/mentoria_exercises
8359cead6ee5351851b04cb45f252e3881b79117
[ "MIT" ]
null
null
null
lista_ex3.1.py/exercicio23.py
robinson-1985/mentoria_exercises
8359cead6ee5351851b04cb45f252e3881b79117
[ "MIT" ]
null
null
null
''' 23. Faa um programa que receba o valor do salrio mnimo, o turno de trabalho (M matutino; V vespertino; ou N noturno), a categoria (O operrio; G gerente) e o nmero de horas trabalhadas no ms de um funcionrio. Suponha a digitao apenas de dados vlidos e, quando houver digitao de letras, utilize maisculas. Calcule...
50.682927
88
0.63667
50db4e1da37404b4b48c1ff5cba8f3fb72458aa5
538
py
Python
how-to-use-azureml/training-with-deep-learning/how-to-use-estimator/dummy_train.py
faxu/MachineLearningNotebooks
ea1b7599c3e6903873aa152dc5829afa080e885a
[ "MIT" ]
1
2021-01-18T16:19:04.000Z
2021-01-18T16:19:04.000Z
how-to-use-azureml/training-with-deep-learning/how-to-use-estimator/dummy_train.py
faxu/MachineLearningNotebooks
ea1b7599c3e6903873aa152dc5829afa080e885a
[ "MIT" ]
1
2019-03-18T04:33:24.000Z
2019-03-18T04:33:24.000Z
MachineLearningNotebooks/how-to-use-azureml/training-with-deep-learning/how-to-use-estimator/dummy_train.py
raina777/bp-demo
064848299731d8388c3709b5b809788860b63fc5
[ "MIT" ]
2
2020-09-07T01:41:49.000Z
2020-10-01T18:16:28.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. print("*********************************************************") print("Hello Azure ML!") try: from azureml.core import Run run = Run.get_context() print("Log Fibonacci numbers.") run.log_list('Fibonacci nu...
31.647059
79
0.524164
50dcec222e6e08eebcd423b5a1becc6f5cb978b4
5,916
py
Python
sequential_inference/envs/mujoco/rand_param_envs/gym/scoreboard/client/api_requestor.py
cvoelcker/sequential_inference
acdc23aa8fdbfc76ded771e82a4abcdd081a3280
[ "MIT" ]
null
null
null
sequential_inference/envs/mujoco/rand_param_envs/gym/scoreboard/client/api_requestor.py
cvoelcker/sequential_inference
acdc23aa8fdbfc76ded771e82a4abcdd081a3280
[ "MIT" ]
null
null
null
sequential_inference/envs/mujoco/rand_param_envs/gym/scoreboard/client/api_requestor.py
cvoelcker/sequential_inference
acdc23aa8fdbfc76ded771e82a4abcdd081a3280
[ "MIT" ]
null
null
null
import json import platform import gym import six.moves.urllib as urlparse from six import iteritems from environments.mujoco.rand_param_envs.gym import error, version from environments.mujoco.rand_param_envs.gym.scoreboard.client import http_client verify_ssl_certs = True # [SECURITY CRITICAL] only turn this off w...
34
199
0.560514
50dd6bc0abebb9b9d1eabf20579e458a1fd16adf
3,835
py
Python
FinanceDicBuilder/DicBuilder.py
dukechain2333/Finance-Text-Analysis-System
12c55e5298fb6d5420acae6d361db4506fef0d64
[ "MIT" ]
2
2021-05-25T02:36:13.000Z
2021-09-11T01:44:16.000Z
FinanceDicBuilder/DicBuilder.py
dukechain2333/Finance-Text-Analysis-System
12c55e5298fb6d5420acae6d361db4506fef0d64
[ "MIT" ]
null
null
null
FinanceDicBuilder/DicBuilder.py
dukechain2333/Finance-Text-Analysis-System
12c55e5298fb6d5420acae6d361db4506fef0d64
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- from pyhanlp import * from DataBaseOperator import DBConnector # if __name__ == '__main__': # test = DicBuilder() # test.build_dic()
24.741935
90
0.538722
50dda263e8c9ba571f0162aea021e38ba614e662
6,781
py
Python
adalam/ransac.py
happylin0427/AdaLAM
5d7748fda7f76683e60c7053a0792a2ae9ef8800
[ "BSD-3-Clause" ]
1
2021-08-12T15:56:33.000Z
2021-08-12T15:56:33.000Z
adalam/ransac.py
happylin0427/AdaLAM
5d7748fda7f76683e60c7053a0792a2ae9ef8800
[ "BSD-3-Clause" ]
null
null
null
adalam/ransac.py
happylin0427/AdaLAM
5d7748fda7f76683e60c7053a0792a2ae9ef8800
[ "BSD-3-Clause" ]
null
null
null
from .utils import draw_first_k_couples, batch_2x2_inv, batch_2x2_ellipse, arange_sequence, piecewise_arange import torch
48.092199
140
0.720543
50dfeb4080e6537a7028d39ac5a866d9104a49fa
1,705
py
Python
85/ninja.py
jsh/pybites
73c79ed962c15247cead173b17f69f248ea51b96
[ "MIT" ]
null
null
null
85/ninja.py
jsh/pybites
73c79ed962c15247cead173b17f69f248ea51b96
[ "MIT" ]
null
null
null
85/ninja.py
jsh/pybites
73c79ed962c15247cead173b17f69f248ea51b96
[ "MIT" ]
null
null
null
"""Bite 85. Write a score property.""" from typing import Optional SCORES = [10, 50, 100, 175, 250, 400, 600, 800, 1000] RANKS = "white yellow orange green blue brown black paneled red".split() BELTS = dict(zip(SCORES, RANKS))
34.1
80
0.606452
50dff37f03053b54880a5058a34de49805426364
671
py
Python
python_base/binary_array_to_number.py
GlacierBo/python_learn
f604029a1ec449d8d24bb5d40215f25df2a2b027
[ "MIT" ]
1
2018-02-12T04:56:08.000Z
2018-02-12T04:56:08.000Z
python_base/binary_array_to_number.py
GlacierBo/python_learn
f604029a1ec449d8d24bb5d40215f25df2a2b027
[ "MIT" ]
null
null
null
python_base/binary_array_to_number.py
GlacierBo/python_learn
f604029a1ec449d8d24bb5d40215f25df2a2b027
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2017/12/15 11:26 # @Author : glacier # @Site : # @File : binary_array_to_number.py # @Software: PyCharm Edu # def binary_array_to_number(arr): # sum = 0 # index = len(arr)-1 # i = 0 # while(index >= 0): # sum += mul(arr[i]...
19.171429
42
0.535022
50e1a65ca98824ba44c4c4b031d3410bbf590547
5,630
py
Python
py_reportit/shared/config/container.py
fedus/py_reportit
46422cabb652571d8cce6c8e91a229009dcca141
[ "MIT" ]
1
2021-12-05T19:16:16.000Z
2021-12-05T19:16:16.000Z
py_reportit/shared/config/container.py
fedus/py_reportit
46422cabb652571d8cce6c8e91a229009dcca141
[ "MIT" ]
null
null
null
py_reportit/shared/config/container.py
fedus/py_reportit
46422cabb652571d8cce6c8e91a229009dcca141
[ "MIT" ]
null
null
null
from dependency_injector import containers, providers from pytz import timezone as pytz_timezone from py_reportit.shared.config import config from py_reportit.shared.config.db import Database from py_reportit.shared.config.requests_session import get_requests_session from py_reportit.shared.repository.category import...
39.097222
130
0.758615
50e348bba044ee5e4a0d44816e957948a33e2934
4,837
py
Python
event_loop/select_loop.py
mapogolions/pyreact-event-loop
6bfdf34c73a8ef1ce89adb3af69ac07314a0ae3e
[ "MIT" ]
null
null
null
event_loop/select_loop.py
mapogolions/pyreact-event-loop
6bfdf34c73a8ef1ce89adb3af69ac07314a0ae3e
[ "MIT" ]
2
2019-05-21T14:46:25.000Z
2021-06-01T23:54:24.000Z
event_loop/select_loop.py
mapogolions/pyreact
8d91f8397e6bec3fb02140015c68b50f6cb8ea62
[ "MIT" ]
null
null
null
import select import signal import time import event_loop.tick import event_loop.timer import event_loop.signal MICROSECONDS_PER_SECOND = 10 ** 6 MAX_TIMEOUT = int(2 ** 63 / 10 ** 9)
31.822368
75
0.612777
50e3b3228607ed7e01edb42284e3a1cc6116992e
2,393
py
Python
scripts/publisher.py
kavyadevd/Toy_Car_Simulation
56609f0b1ae6eb0bb9578615a83bab9ae01d6247
[ "MIT" ]
null
null
null
scripts/publisher.py
kavyadevd/Toy_Car_Simulation
56609f0b1ae6eb0bb9578615a83bab9ae01d6247
[ "MIT" ]
null
null
null
scripts/publisher.py
kavyadevd/Toy_Car_Simulation
56609f0b1ae6eb0bb9578615a83bab9ae01d6247
[ "MIT" ]
null
null
null
#!/usr/bin/python2 import rospy from std_msgs.msg import String from std_msgs.msg import Float64 if __name__ == '__main__': try: #Testing our function move() except rospy.ROSInterruptException: pass
30.679487
107
0.692018
50e48167c59bb5236d8e48f7dc69c203da793f28
2,638
py
Python
asdf/commands/extension.py
zanecodes/asdf
c1f6cf915409da5372c47ac725dc922b4bd52f7d
[ "BSD-3-Clause" ]
66
2020-06-24T14:10:32.000Z
2022-03-18T11:46:11.000Z
asdf/commands/extension.py
zanecodes/asdf
c1f6cf915409da5372c47ac725dc922b4bd52f7d
[ "BSD-3-Clause" ]
179
2020-06-22T18:48:31.000Z
2022-03-31T22:52:19.000Z
asdf/commands/extension.py
zanecodes/asdf
c1f6cf915409da5372c47ac725dc922b4bd52f7d
[ "BSD-3-Clause" ]
13
2020-07-21T16:11:20.000Z
2022-03-18T20:41:41.000Z
""" Implementation of command for reporting information about installed extensions. """ from .main import Command from ..entry_points import get_extensions __all__ = ['find_extensions']
30.321839
84
0.623578
50e4cae3441c9a1ac3fa340462a6470844f434cf
7,956
py
Python
workflow/Analytical_return_flow_generator.py
IMMM-SFA/ferencz-tidwell_2022_frontiers
bfd4961cc8376e99f1f56d23ee3c43d94818df4b
[ "BSD-2-Clause" ]
null
null
null
workflow/Analytical_return_flow_generator.py
IMMM-SFA/ferencz-tidwell_2022_frontiers
bfd4961cc8376e99f1f56d23ee3c43d94818df4b
[ "BSD-2-Clause" ]
null
null
null
workflow/Analytical_return_flow_generator.py
IMMM-SFA/ferencz-tidwell_2022_frontiers
bfd4961cc8376e99f1f56d23ee3c43d94818df4b
[ "BSD-2-Clause" ]
1
2021-12-02T22:48:55.000Z
2021-12-02T22:48:55.000Z
import math import numpy as np import pandas as pd import matplotlib as mpl import matplotlib.pyplot as plt import os mpl.rc('axes', titlesize=14) plt.rc('font', size= 16) os.chdir('C:/Users/sbferen/Documents/Frontiers_Paper/Analytical_solution_comparison') data = pd.read_csv("Modflow_statemod_comparis...
43.23913
113
0.568502
50e51c505990ca8f05a03573ffb38d38c07be03c
3,776
py
Python
data_toy/bnmtf/generate_bnmtf.py
ThomasBrouwer/BNMTF
34df0c3cebc5e67a5e39762b9305b75d73a2a0e0
[ "Apache-2.0" ]
16
2017-04-19T12:04:47.000Z
2021-12-03T00:50:43.000Z
data_toy/bnmtf/generate_bnmtf.py
ThomasBrouwer/BNMTF
34df0c3cebc5e67a5e39762b9305b75d73a2a0e0
[ "Apache-2.0" ]
1
2017-04-20T11:26:16.000Z
2017-04-20T11:26:16.000Z
data_toy/bnmtf/generate_bnmtf.py
ThomasBrouwer/BNMTF
34df0c3cebc5e67a5e39762b9305b75d73a2a0e0
[ "Apache-2.0" ]
8
2015-12-15T05:29:43.000Z
2019-06-05T03:14:11.000Z
""" Generate a toy dataset for the matrix tri-factorisation case, and store it. We use dimensions 100 by 50 for the dataset, 10 row clusters, and 5 column clusters. As the prior for F, G we take value 1 for all entries (so exp 1), and for S value 2 (so exp 1/2). As a result, each value in R has a value of around 25,...
37.019608
128
0.640625
50e5a28d8d3dff6cd20e630e0c995cafb0c49a98
11,544
py
Python
bot.py
areapergrimm/therejectbot
308a948d0f7fb38edbec55fe55aac62016c59bb7
[ "MIT" ]
null
null
null
bot.py
areapergrimm/therejectbot
308a948d0f7fb38edbec55fe55aac62016c59bb7
[ "MIT" ]
null
null
null
bot.py
areapergrimm/therejectbot
308a948d0f7fb38edbec55fe55aac62016c59bb7
[ "MIT" ]
null
null
null
import discord from discord.ext import commands import random import codenames import trrutils import asyncio description = "The Reject Bot." PREFIX = "." CHANNELNAME = "spam" bot = commands.Bot(command_prefix=PREFIX, description=description) TOKEN = open('TOKEN.txt', 'r').read() PERMLIST = open('PERMLIST....
40.083333
214
0.610707
50e70782136080b3f977a391e6c43c7f88a423c7
13,391
py
Python
kaggle_ensemble/prob_extend_kaggle.py
shayan223/Reverse_GoL
cd71df7b270eabbd57016f0cc72d19d64a9c60b8
[ "MIT" ]
null
null
null
kaggle_ensemble/prob_extend_kaggle.py
shayan223/Reverse_GoL
cd71df7b270eabbd57016f0cc72d19d64a9c60b8
[ "MIT" ]
null
null
null
kaggle_ensemble/prob_extend_kaggle.py
shayan223/Reverse_GoL
cd71df7b270eabbd57016f0cc72d19d64a9c60b8
[ "MIT" ]
null
null
null
'''Code found on this kaggle submission https://www.kaggle.com/yakuben/crgl-probability-extension-true-target-problem''' import pandas as pd import torch import numpy as np from torch import FloatTensor from torch.utils.data import IterableDataset, DataLoader import torch.nn as nn from torch.nn import BCELoss from tor...
36.191892
171
0.659697
50e86f54b6c39a0053edb593684658b152073127
1,704
py
Python
scripts/file_renamer.py
mmenietti/python_code
74df6acf8f950b72f65e27b2ac98854483084b6f
[ "MIT" ]
null
null
null
scripts/file_renamer.py
mmenietti/python_code
74df6acf8f950b72f65e27b2ac98854483084b6f
[ "MIT" ]
null
null
null
scripts/file_renamer.py
mmenietti/python_code
74df6acf8f950b72f65e27b2ac98854483084b6f
[ "MIT" ]
null
null
null
#------------------------------------------------------------ # Dependencies #------------------------------------------------------------ import pathlib import os import argparse #------------------------------------------------------------ # #------------------------------------------------------------ if __name__...
32.150943
113
0.49061
50e8877f0f4dda0b297436942622d7085f968969
135
py
Python
mordae/gpc/__init__.py
mordae/gpc
1de74b9038c576066eccd9ec4c3d0c1769b1ff47
[ "MIT" ]
2
2016-11-11T13:45:54.000Z
2021-12-09T14:35:45.000Z
mordae/gpc/__init__.py
mordae/gpc
1de74b9038c576066eccd9ec4c3d0c1769b1ff47
[ "MIT" ]
null
null
null
mordae/gpc/__init__.py
mordae/gpc
1de74b9038c576066eccd9ec4c3d0c1769b1ff47
[ "MIT" ]
3
2016-11-11T13:46:11.000Z
2021-02-10T15:05:13.000Z
#!/usr/bin/python -tt # -*- coding: utf-8 -*- from mordae.gpc.manager import * from mordae.gpc.site import * # vim:set sw=4 ts=4 et:
16.875
32
0.644444
50eb9232360bd6dafdfc0f9b1de58c1d985a20fc
5,206
py
Python
eznlp/vectors.py
syuoni/eznlp
c0380c6c30d68b4df1769150424735c04ea9d714
[ "Apache-2.0" ]
9
2021-08-06T07:12:55.000Z
2022-03-26T08:20:59.000Z
eznlp/vectors.py
Hhx1999/eznlp
9d1397d8e9630c099295712cbcffa495353a3268
[ "Apache-2.0" ]
1
2022-03-11T13:27:29.000Z
2022-03-16T11:52:14.000Z
eznlp/vectors.py
Hhx1999/eznlp
9d1397d8e9630c099295712cbcffa495353a3268
[ "Apache-2.0" ]
3
2021-11-15T03:24:24.000Z
2022-03-09T09:36:05.000Z
# -*- coding: utf-8 -*- from typing import Union, List import os import tqdm import logging import torch logger = logging.getLogger(__name__)
31.743902
120
0.573569
50ebe457a1b78802dec0ab678d488621c9afcd56
2,389
py
Python
tools/Kline2HDF5.py
wzf92/rqalpha
63a328f10d0488a4b06cd13773e506d4ee96628b
[ "Apache-2.0" ]
null
null
null
tools/Kline2HDF5.py
wzf92/rqalpha
63a328f10d0488a4b06cd13773e506d4ee96628b
[ "Apache-2.0" ]
null
null
null
tools/Kline2HDF5.py
wzf92/rqalpha
63a328f10d0488a4b06cd13773e506d4ee96628b
[ "Apache-2.0" ]
null
null
null
import os import datetime import h5py import numpy as np DEFAULT_DTYPE = np.dtype([ ('datetime', np.int64), ('open', np.float), ('close', np.float), ('high', np.float), ('low', np.float), ('limit_up', np.float), ('limit_down', np.float), ('volume', np.float), ('total_turnover', np.f...
32.726027
97
0.544161