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
61982cacdc8a6976367345bdb3009678a7eb11ca
704
py
Python
plynx/utils/executor.py
khaxis/plynx
20768470261fc5f29cb660c815c479b49765b2fe
[ "Apache-2.0" ]
137
2018-11-14T07:13:33.000Z
2020-02-03T12:32:35.000Z
plynx/utils/executor.py
khaxis/plynx
20768470261fc5f29cb660c815c479b49765b2fe
[ "Apache-2.0" ]
10
2019-01-11T21:51:14.000Z
2020-01-30T01:29:22.000Z
plynx/utils/executor.py
khaxis/plynx
20768470261fc5f29cb660c815c479b49765b2fe
[ "Apache-2.0" ]
11
2018-11-14T15:05:54.000Z
2019-09-09T15:45:49.000Z
"""Utils to work with executors""" from typing import Any, Dict import plynx.db.node import plynx.utils.exceptions import plynx.utils.plugin_manager def materialize_executor(node_dict: Dict[str, Any]): """ Create a Node object from a dictionary Parameters: node_dict (dict): dictionary representation...
27.076923
97
0.705966
6198438a50eea685cb2143288d75dfde992efd74
273
py
Python
front_end/django-project/cyder/urls.py
Jonathan56/CyDER
58cc88f5140585b6d4d9073eca29e3d3b324eb5e
[ "BSD-3-Clause-LBNL" ]
10
2017-05-03T18:00:49.000Z
2021-07-25T03:09:32.000Z
front_end/django-project/cyder/urls.py
Jonathan56/CyDER
58cc88f5140585b6d4d9073eca29e3d3b324eb5e
[ "BSD-3-Clause-LBNL" ]
null
null
null
front_end/django-project/cyder/urls.py
Jonathan56/CyDER
58cc88f5140585b6d4d9073eca29e3d3b324eb5e
[ "BSD-3-Clause-LBNL" ]
2
2018-02-12T17:14:15.000Z
2021-02-02T02:12:27.000Z
from django.urls import path, include urlpatterns = [ path('model_viewer/', include('cyder.models.urls')), path('projects/', include('cyder.projects.urls')), path('api/', include('cyder.api.urls', namespace='api')), path('', include('cyder.main.urls')), ]
30.333333
61
0.652015
6198d569648753c3575588522b2c2f89e1b9135e
4,173
py
Python
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/headstock/example/microblog/microblog/web/application.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
1
2017-03-28T06:41:51.000Z
2017-03-28T06:41:51.000Z
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/headstock/example/microblog/microblog/web/application.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
null
null
null
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/headstock/example/microblog/microblog/web/application.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
1
2016-12-13T21:08:58.000Z
2016-12-13T21:08:58.000Z
# -*- coding: utf-8 -*- import cherrypy from microblog.web import MICROBLOG_SESSION_PROFILE from microblog.web.oidtool import DEFAULT_SESSION_NAME from microblog.profile.manager import ProfileManager from microblog.profile.user import EmptyUserProfile, UserProfile from microblog.web.speakup import SpeakUpWebApplication...
37.594595
81
0.654445
61994048e974aac7ccedc29d996420c49db567d8
879
py
Python
examples/renderimage.py
acgessler/pysfml2-cython
dfb81e399af2eb389a1953bbe78c2e73778e3440
[ "Zlib", "BSD-2-Clause" ]
1
2019-08-16T16:33:12.000Z
2019-08-16T16:33:12.000Z
examples/renderimage.py
acgessler/pysfml2-cython
dfb81e399af2eb389a1953bbe78c2e73778e3440
[ "Zlib", "BSD-2-Clause" ]
null
null
null
examples/renderimage.py
acgessler/pysfml2-cython
dfb81e399af2eb389a1953bbe78c2e73778e3440
[ "Zlib", "BSD-2-Clause" ]
null
null
null
#! /usr/bin/env python2 # -*- coding: utf-8 -*- import sf import sys if __name__ == '__main__': main()
23.131579
78
0.583618
6199950eb37c3a2d83fa0622f8dc17926db687b5
21,867
py
Python
hit_z_road.py
bigshotJin/HitZRoad
5f01de7a785a21fc011322f8e3e655e97fcf02a9
[ "MIT" ]
1
2019-12-28T16:47:01.000Z
2019-12-28T16:47:01.000Z
hit_z_road.py
bigshotJin/HitZRoad
5f01de7a785a21fc011322f8e3e655e97fcf02a9
[ "MIT" ]
null
null
null
hit_z_road.py
bigshotJin/HitZRoad
5f01de7a785a21fc011322f8e3e655e97fcf02a9
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ this module need easy_logging """ import os import pandas as pd import numpy as np from easy_logging.easylogging import EasyVerboseLogging EVLobj = EasyVerboseLogging() EVLobj.set_class_logger_level('INFO') EVLobj.get_class_logger() if __name__ == '__main__': HZRobj = HitZombieRoad...
47.536957
137
0.517721
619ac3477b76575f17b9d296fa87950aefd73474
91
py
Python
enthought/envisage/i_application.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
enthought/envisage/i_application.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
enthought/envisage/i_application.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
# proxy module from __future__ import absolute_import from envisage.i_application import *
22.75
38
0.846154
619ba5260e66d9abf9514a7f5139f96e733a0a46
4,085
py
Python
src/lybica/loader.py
protone/lybica-runner
185b3fc4ffc7a6e066baa6c2f030e109db97b4b1
[ "MIT" ]
null
null
null
src/lybica/loader.py
protone/lybica-runner
185b3fc4ffc7a6e066baa6c2f030e109db97b4b1
[ "MIT" ]
3
2015-11-04T09:43:35.000Z
2015-11-12T09:41:21.000Z
src/lybica/loader.py
protone/lybica-runner
185b3fc4ffc7a6e066baa6c2f030e109db97b4b1
[ "MIT" ]
null
null
null
from .executor import ScriptExecutor import logging SCRIPT_CONFIG = [ # health check script before install package { "name": 'install_package_pre_check', "search_path": ["${TESTCASE_PATH}/AreaCI/${PID}/install_package_pre_check", "${BRANCH_ROOT}/PlatformCI/${PID}/${PRODUCT}/${TES...
47.5
107
0.622766
619fe24fa47471571e21443afa6062ff41ae9a71
453
py
Python
src/settings.py
tokku5552/google-photo-backup
6508f98d979faea9de617af91e7f660b2b5de4d1
[ "MIT" ]
1
2022-03-06T22:55:02.000Z
2022-03-06T22:55:02.000Z
src/settings.py
tokku5552/google-photo-backup
6508f98d979faea9de617af91e7f660b2b5de4d1
[ "MIT" ]
3
2021-09-03T15:28:31.000Z
2021-09-09T14:22:52.000Z
src/settings.py
tokku5552/google-photo-backup
6508f98d979faea9de617af91e7f660b2b5de4d1
[ "MIT" ]
null
null
null
# -*- coding: utf_8 -*- SCOPES = ['https://www.googleapis.com/auth/photoslibrary'] API_SERVICE_NAME = 'photoslibrary' API_VERSION = 'v1' CLIENT_SECRET_FILE = 'client_secret.json' CREDENTIAL_FILE = 'credential.json' AQUIRED_MEDIA_LIST = 'aquired_list.json' TMP_DIR = 'tmp' DESTINATION_DIR = '/gpbk' QUERY_FILTER = True PA...
28.3125
58
0.754967
61a1e5af27a2cafee845ea0db041e5f1132696f9
10,968
py
Python
marketplace/views/views_internalpackage.py
MOOCworkbench/MOOCworkbench
c478dd4f185c50e0a48319e2b30d418533c32a34
[ "MIT" ]
null
null
null
marketplace/views/views_internalpackage.py
MOOCworkbench/MOOCworkbench
c478dd4f185c50e0a48319e2b30d418533c32a34
[ "MIT" ]
1
2017-07-09T17:38:21.000Z
2017-07-09T17:38:22.000Z
marketplace/views/views_internalpackage.py
MOOCworkbench/MOOCworkbench
c478dd4f185c50e0a48319e2b30d418533c32a34
[ "MIT" ]
null
null
null
import logging from django.contrib import messages from django.contrib.auth.decorators import login_required from django.core.urlresolvers import reverse from django.http import JsonResponse from django.shortcuts import get_object_or_404, redirect, render from django.views.generic import CreateView, DetailView, Update...
45.510373
122
0.728209
61a374a8f30ac135dfdea6d33f444e83e80642d0
351
py
Python
cmz/cms_news/templatetags/cms_news.py
inmagik/cmz
e183f0c7203bda5efb1cbeb96f4f06a76aa91231
[ "MIT" ]
1
2016-10-01T18:35:24.000Z
2016-10-01T18:35:24.000Z
cmz/cms_news/templatetags/cms_news.py
inmagik/cmz
e183f0c7203bda5efb1cbeb96f4f06a76aa91231
[ "MIT" ]
8
2016-09-14T21:39:09.000Z
2016-10-25T20:08:31.000Z
cmz/cms_news/templatetags/cms_news.py
inmagik/cmz
e183f0c7203bda5efb1cbeb96f4f06a76aa91231
[ "MIT" ]
null
null
null
from django import template from ..models import News register = template.Library()
29.25
70
0.717949
61a3ed8c8f681309c585aa2c83621f052b9174bd
127
py
Python
backend/db.py
Dr-Irina/hac_front
bf1cbc6a23ab799ccaa8cdbbb3372c4812a31ed7
[ "MIT" ]
1
2019-06-24T03:49:40.000Z
2019-06-24T03:49:40.000Z
backend/db.py
DWhistle/VisionLabsHackathon
34feddbc2d076921d22aa1c9260250e190b03aec
[ "MIT" ]
2
2021-03-09T08:28:43.000Z
2021-05-09T05:37:55.000Z
backend/db.py
DWhistle/VisionLabsHackathon
34feddbc2d076921d22aa1c9260250e190b03aec
[ "MIT" ]
null
null
null
import sqlite3 db = sqlite3.connect("database.db") cursor = db.cursor() cursor.execute("CREATE TABLE model (VARCHAR models)")
21.166667
53
0.748031
61a68e456f4449af8da3440868679e66e2e5feef
6,143
py
Python
examples/math/fft/fft.py
matthiaskramm/corepy
b2aad4e86adca10420e825fb65dcbd031cf44bb1
[ "BSD-3-Clause" ]
8
2016-02-20T03:52:58.000Z
2022-01-24T15:04:14.000Z
examples/math/fft/fft.py
matthiaskramm/corepy
b2aad4e86adca10420e825fb65dcbd031cf44bb1
[ "BSD-3-Clause" ]
null
null
null
examples/math/fft/fft.py
matthiaskramm/corepy
b2aad4e86adca10420e825fb65dcbd031cf44bb1
[ "BSD-3-Clause" ]
6
2015-12-11T05:21:15.000Z
2020-12-11T10:59:15.000Z
# Copyright (c) 2006-2009 The Trustees of Indiana University. # All rights reserved. # # Redistribution and use in source and binary forms, with or without ...
27.424107
80
0.541266
61a8845e1ccc4a6f9d7930913c7112d6c98c2b1b
1,049
py
Python
solutions/day13/p2/main.py
tosmun/AdventOfCode
62f4f3a8cc3761ee5d5eaf682ae9c2c985cd80b5
[ "Apache-2.0" ]
1
2017-07-15T19:01:03.000Z
2017-07-15T19:01:03.000Z
solutions/day13/p2/main.py
tosmun/Python-AdventOfCode
62f4f3a8cc3761ee5d5eaf682ae9c2c985cd80b5
[ "Apache-2.0" ]
null
null
null
solutions/day13/p2/main.py
tosmun/Python-AdventOfCode
62f4f3a8cc3761ee5d5eaf682ae9c2c985cd80b5
[ "Apache-2.0" ]
null
null
null
from itertools import permutations if __name__ == "__main__": map = { } with open('../input.txt', 'r') as fp: while True: line=fp.readline() if line is None or line == '': break parts = line.split(" ") person = parts[0] value = int(parts[3]) if parts[2] == 'lose': value = value * -1 ne...
26.225
62
0.622498
61a8ee8668b6519e9812f7d7814d89c33330873b
2,755
py
Python
memberaudit/migrations/0005_add_character_attributes.py
buahaha/aa-memberaudit
3824fd5dec06631f7b54caa0248c2f6dcb08636a
[ "MIT" ]
null
null
null
memberaudit/migrations/0005_add_character_attributes.py
buahaha/aa-memberaudit
3824fd5dec06631f7b54caa0248c2f6dcb08636a
[ "MIT" ]
null
null
null
memberaudit/migrations/0005_add_character_attributes.py
buahaha/aa-memberaudit
3824fd5dec06631f7b54caa0248c2f6dcb08636a
[ "MIT" ]
null
null
null
# Generated by Django 3.1.6 on 2021-02-19 15:45 import django.db.models.deletion from django.db import migrations, models
37.739726
83
0.460254
61aa4cd0aa9e08c093a70a1f326924e6e96fd86c
13,031
py
Python
review/models.py
osaimola/django-review
e4f10838a88b84749bda5bd8febaf7d85447fcdf
[ "MIT" ]
null
null
null
review/models.py
osaimola/django-review
e4f10838a88b84749bda5bd8febaf7d85447fcdf
[ "MIT" ]
null
null
null
review/models.py
osaimola/django-review
e4f10838a88b84749bda5bd8febaf7d85447fcdf
[ "MIT" ]
null
null
null
"""Just an empty models file to let the testrunner recognize this as app.""" from django.conf import settings from django.contrib.contenttypes import fields from django.contrib.contenttypes.models import ContentType from django.db import models from django.utils import timezone from django.utils.encoding import python_...
33.412821
79
0.647149
61aabee9e72f77565b8fbe0b0256f2a2d385c406
2,170
py
Python
python/oneflow/test/modules/test_consistent_stateful_kernel_with_cache.py
L-Net-1992/oneflow
4dc08d65caea36fdd137841ac95551218897e730
[ "Apache-2.0" ]
1
2022-03-14T11:17:56.000Z
2022-03-14T11:17:56.000Z
python/oneflow/test/modules/test_consistent_stateful_kernel_with_cache.py
L-Net-1992/oneflow
4dc08d65caea36fdd137841ac95551218897e730
[ "Apache-2.0" ]
null
null
null
python/oneflow/test/modules/test_consistent_stateful_kernel_with_cache.py
L-Net-1992/oneflow
4dc08d65caea36fdd137841ac95551218897e730
[ "Apache-2.0" ]
1
2021-12-15T02:14:49.000Z
2021-12-15T02:14:49.000Z
""" Copyright 2020 The OneFlow 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 law or agr...
31.449275
84
0.654839
61aae320c56823e1a7c2629bfb5dc35bb1362267
618
py
Python
main.py
johnpfeiffer/go-lanscan
7fde4052249f5535fe3138f8789c04c15fa57eff
[ "MIT" ]
null
null
null
main.py
johnpfeiffer/go-lanscan
7fde4052249f5535fe3138f8789c04c15fa57eff
[ "MIT" ]
null
null
null
main.py
johnpfeiffer/go-lanscan
7fde4052249f5535fe3138f8789c04c15fa57eff
[ "MIT" ]
null
null
null
#!/usr/bin/env python import webapp2 downloads_html = """<html> <body> download the latest build at: <table> <tr> <th>os</th> <th>download link</th> </tr> <tr> <td>linux amd64</td> <td><a href='https://go-lanscan.appspot.com/go-lanscan'>https://go-lanscan.appspot.com/go-lanscan</a></td> </tr> </table> Source code at <...
22.071429
120
0.694175
61ab1ecec0d561e9b48dbeb6b94f8d2303697a63
1,437
py
Python
schools3/ml/experiments/multi_dataset_experiment.py
dssg/mlpolicylab_fall20_schools3_public
f8eff4c56e9bada1eb81ddaca03686d7ef53c2c4
[ "MIT" ]
null
null
null
schools3/ml/experiments/multi_dataset_experiment.py
dssg/mlpolicylab_fall20_schools3_public
f8eff4c56e9bada1eb81ddaca03686d7ef53c2c4
[ "MIT" ]
null
null
null
schools3/ml/experiments/multi_dataset_experiment.py
dssg/mlpolicylab_fall20_schools3_public
f8eff4c56e9bada1eb81ddaca03686d7ef53c2c4
[ "MIT" ]
null
null
null
import pandas as pd from tqdm import tqdm from schools3.data.datasets.datasets_generator import DatasetsGenerator from schools3.ml.experiments.models_experiment import ModelsExperiment from schools3.config import main_config # an experiment that trains models and reports metrics for multiple grades
38.837838
83
0.695894
61ab41a7638425f234e3651bbe06958031c532d2
43,906
py
Python
recordsearch_data_scraper/scrapers.py
wragge/recordsearch_tools_new
b1a8b9d8f7c68107f186cfc69d601489fb4110e1
[ "Apache-2.0" ]
null
null
null
recordsearch_data_scraper/scrapers.py
wragge/recordsearch_tools_new
b1a8b9d8f7c68107f186cfc69d601489fb4110e1
[ "Apache-2.0" ]
1
2021-04-27T01:27:38.000Z
2021-04-27T01:27:38.000Z
recordsearch_data_scraper/scrapers.py
wragge/recordsearch_tools_new
b1a8b9d8f7c68107f186cfc69d601489fb4110e1
[ "Apache-2.0" ]
1
2021-07-14T08:23:29.000Z
2021-07-14T08:23:29.000Z
# AUTOGENERATED! DO NOT EDIT! File to edit: 00_scrapers.ipynb (unless otherwise specified). __all__ = ['make_session', 'make_browser', 's', 'browsers', 'cache_db', 'RS_URLS', 'ITEM_FORM', 'KW_OPTIONS', 'FORMATS', 'LOCATIONS', 'ACCESS', 'AGENCY_FORM', 'AGENCY_LOCATIONS', 'AGENCY_STATUS', 'SERIES_FORM', 'RSBa...
37.114117
159
0.60256
61ab642b229d604ba34d9d88a40117fa3578d4e2
276
py
Python
wrappers/bcftools/view/wrapper.py
delvinso/crg2
366f9dd6f89db2243765688bd0c2d9a2b3d170f4
[ "Apache-2.0" ]
null
null
null
wrappers/bcftools/view/wrapper.py
delvinso/crg2
366f9dd6f89db2243765688bd0c2d9a2b3d170f4
[ "Apache-2.0" ]
null
null
null
wrappers/bcftools/view/wrapper.py
delvinso/crg2
366f9dd6f89db2243765688bd0c2d9a2b3d170f4
[ "Apache-2.0" ]
null
null
null
__author__ = "Johannes Kster" __copyright__ = "Copyright 2016, Johannes Kster" __email__ = "koester@jimmy.harvard.edu" __license__ = "MIT" from snakemake.shell import shell shell( "bcftools view {snakemake.params} {snakemake.input[0]} " "-o {snakemake.output[0]}" )
21.230769
87
0.731884
61ac0e6db30abca8f91a026b4103c099bb566e16
4,728
py
Python
tensorflow/python/ops/ragged/ragged_range_op_test.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/python/ops/ragged/ragged_range_op_test.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/python/ops/ragged/ragged_range_op_test.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
37.52381
81
0.586717
61ac853aed3414f5df7058083f22b577f7f6c8d2
256
py
Python
run/dev.py
LuxQuad/ozet-core-api
bf0cd9e4b58bf9b7e805843df4dfe7320afa7e4b
[ "MIT" ]
null
null
null
run/dev.py
LuxQuad/ozet-core-api
bf0cd9e4b58bf9b7e805843df4dfe7320afa7e4b
[ "MIT" ]
5
2021-08-10T03:38:31.000Z
2021-08-11T12:39:34.000Z
run/dev.py
LuxQuad/ozet-core-api
bf0cd9e4b58bf9b7e805843df4dfe7320afa7e4b
[ "MIT" ]
null
null
null
import uvicorn HOST = "127.0.0.1" PORT = 8000 ENV = ".misc/env/dev.env" SERVICE = "app.main:service" LOG_LEVEL = "trace" if __name__ == "__main__": uvicorn.run(SERVICE, host=HOST, port=PORT, log_level=LOG_LEVEL, workers=4, env_file=ENV, reload=True)
23.272727
105
0.703125
61ad32cce254b0d3a56fc49d9b2af632962590d1
1,692
py
Python
gtkeyaws.py
aissa-laribi/gtkeyaws
f40704db1dd99ce7db28b2e25c09c60bb23689f2
[ "MIT" ]
null
null
null
gtkeyaws.py
aissa-laribi/gtkeyaws
f40704db1dd99ce7db28b2e25c09c60bb23689f2
[ "MIT" ]
null
null
null
gtkeyaws.py
aissa-laribi/gtkeyaws
f40704db1dd99ce7db28b2e25c09c60bb23689f2
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.common.keys import Keys import time browser = webdriver.Firefox(executable_path="./drivers/geckodriver") browser.get('https://ACCOUNTNUMBER.signin.aws.amazon.com/console?region=us-east-1') browser.find_element_by_xpath('//*[@id="username"]').send_keys('USERNAME')...
52.875
273
0.757092
61aea3b9d53c7af9cfa86fadc4caee11c448c970
4,307
py
Python
vgg16_convadd.py
kkkumar2/Vegetable-recognition-with-VGG-16-19-SCRATCH
a1f16bcca0608ae87cbf9b0973ac16d9d2274ae3
[ "Apache-2.0" ]
null
null
null
vgg16_convadd.py
kkkumar2/Vegetable-recognition-with-VGG-16-19-SCRATCH
a1f16bcca0608ae87cbf9b0973ac16d9d2274ae3
[ "Apache-2.0" ]
null
null
null
vgg16_convadd.py
kkkumar2/Vegetable-recognition-with-VGG-16-19-SCRATCH
a1f16bcca0608ae87cbf9b0973ac16d9d2274ae3
[ "Apache-2.0" ]
null
null
null
from tensorflow.keras.layers import Input, Lambda, Dense, Flatten from tensorflow.keras.models import Model from tensorflow.keras.applications.vgg16 import VGG16 from tensorflow.keras.applications.vgg16 import preprocess_input from tensorflow.keras.preprocessing import image from tensorflow.keras.preprocessing.ima...
36.193277
137
0.639424
61af0d4043273f66c7507d94d876e3a5dbecbd8a
4,888
py
Python
scripts/make_phenicx_anechoic_index.py
magdalenafuentes/soundata
4d2dde8e9ef61483bc202bf94d6a0ccc1601c52b
[ "BSD-3-Clause" ]
null
null
null
scripts/make_phenicx_anechoic_index.py
magdalenafuentes/soundata
4d2dde8e9ef61483bc202bf94d6a0ccc1601c52b
[ "BSD-3-Clause" ]
null
null
null
scripts/make_phenicx_anechoic_index.py
magdalenafuentes/soundata
4d2dde8e9ef61483bc202bf94d6a0ccc1601c52b
[ "BSD-3-Clause" ]
1
2021-05-03T19:34:46.000Z
2021-05-03T19:34:46.000Z
import argparse import glob import hashlib import json import os import string DATASET_INDEX_PATH = '../mirdata/datasets/indexes/phenicx_anechoic_index.json' def md5(file_path): """Get md5 hash of a file. Parameters ---------- file_path: str File path. Returns ------- md5_hash: ...
31.133758
88
0.528232
61af771f46003607f0d27ebb336cdcdad337f2c1
4,341
py
Python
Pzzzzz/plugins/code_runner.py
Pzzzzz5142/animal-forest-QQ-group-bot
a9141a212a7746ac95d28459ec9cec5b6c188b35
[ "MIT" ]
5
2020-05-28T06:29:33.000Z
2020-09-30T12:14:46.000Z
Pzzzzz/plugins/code_runner.py
Pzzzzz5142/xjbx-QQ-group-bot
a9141a212a7746ac95d28459ec9cec5b6c188b35
[ "MIT" ]
null
null
null
Pzzzzz/plugins/code_runner.py
Pzzzzz5142/xjbx-QQ-group-bot
a9141a212a7746ac95d28459ec9cec5b6c188b35
[ "MIT" ]
null
null
null
from nonebot import on_command, CommandSession, get_bot from nonebot.command import call_command from nonebot.message import escape as message_escape import aiohttp from nonebot.argparse import ArgumentParser __plugin_name__ = "" RUN_API_URL_FORMAT = "https://glot.io/run/{}?version=latest" SUPPORTED_LANGUAGES = { ...
30.356643
80
0.539968
61b14520dd49127de7f32813b04d71f1ebbf9aa7
2,905
py
Python
jobs.py
gomes-lab/HCLMP
6770579404f6fa76948f688ae3c626ad621284ec
[ "MIT" ]
4
2021-06-04T12:34:19.000Z
2022-01-08T07:12:41.000Z
jobs.py
sk2299/HCLMP
d8b3e4dbf39af8d324c4f57e5d56f5846f2b136e
[ "CC-BY-4.0", "MIT" ]
1
2022-01-07T05:16:26.000Z
2022-01-07T05:55:17.000Z
jobs.py
sk2299/HCLMP
d8b3e4dbf39af8d324c4f57e5d56f5846f2b136e
[ "CC-BY-4.0", "MIT" ]
1
2022-02-21T19:12:14.000Z
2022-02-21T19:12:14.000Z
import os from os import listdir from os.path import isfile, join ''' Author: Shufeng KONG, Cornell University, USA Contact: sk2299@cornell.edu This is an example script to run jobs. Set single_job to be True if you only have one setting or dataset to run. In our experiments, we have 69 systems to run, so we set sing...
39.256757
141
0.679862
61b34cc74049ca79c83591c3b423846191259210
3,460
py
Python
tests/test_readout.py
msohaibalam/forest-benchmarking
40f5fd5235803204b34fa8ba1ced4ef2e0f3098d
[ "Apache-2.0" ]
null
null
null
tests/test_readout.py
msohaibalam/forest-benchmarking
40f5fd5235803204b34fa8ba1ced4ef2e0f3098d
[ "Apache-2.0" ]
null
null
null
tests/test_readout.py
msohaibalam/forest-benchmarking
40f5fd5235803204b34fa8ba1ced4ef2e0f3098d
[ "Apache-2.0" ]
null
null
null
import re import numpy as np from pyquil import Program from pyquil.device import gates_in_isa from pyquil.gates import I, RX, CNOT, MEASURE from pyquil.noise import decoherence_noise_with_asymmetric_ro from forest_benchmarking.readout import get_flipped_program, estimate_confusion_matrix, \ estimate_joint_confus...
39.318182
97
0.650867
61b36588f184550168da888b49440a8f3261fd00
768
py
Python
lib/ohdevtools/default_platform.py
LukiLeu/loadify
740532324e7f94c7ad1f94f78bdce9bc2575811a
[ "MIT" ]
null
null
null
lib/ohdevtools/default_platform.py
LukiLeu/loadify
740532324e7f94c7ad1f94f78bdce9bc2575811a
[ "MIT" ]
null
null
null
lib/ohdevtools/default_platform.py
LukiLeu/loadify
740532324e7f94c7ad1f94f78bdce9bc2575811a
[ "MIT" ]
null
null
null
import platform
42.666667
115
0.632813
61b4b08078de62e176f62f45f211959e7d5273f3
853
py
Python
solutions/numbers/calculator.py
TheAtomicGoose/karan
60222165ad46fe1afc08e631c3171f63ef52b79d
[ "MIT" ]
null
null
null
solutions/numbers/calculator.py
TheAtomicGoose/karan
60222165ad46fe1afc08e631c3171f63ef52b79d
[ "MIT" ]
null
null
null
solutions/numbers/calculator.py
TheAtomicGoose/karan
60222165ad46fe1afc08e631c3171f63ef52b79d
[ "MIT" ]
1
2018-03-25T05:57:57.000Z
2018-03-25T05:57:57.000Z
""" Written by Jesse Evers A basic calculator. """ # Adds x and y # Subtracts y from x # Multiplies x by y # Divides x by y # Raises x to the y print(calc())
17.770833
56
0.531067
61b4d450e641be9b9611606821aba4d81cf19843
20,328
py
Python
minesweeper_tools/WebMinerAnalyzer.py
stg-tud/minesweeper
86c55c4f391a00b3f846ba552bb82c5b497c580a
[ "Apache-2.0" ]
26
2018-11-09T08:48:13.000Z
2021-12-01T07:48:16.000Z
minesweeper_tools/WebMinerAnalyzer.py
stg-tud/minesweeper
86c55c4f391a00b3f846ba552bb82c5b497c580a
[ "Apache-2.0" ]
null
null
null
minesweeper_tools/WebMinerAnalyzer.py
stg-tud/minesweeper
86c55c4f391a00b3f846ba552bb82c5b497c580a
[ "Apache-2.0" ]
13
2018-11-12T12:50:07.000Z
2022-03-22T15:04:27.000Z
#!/usr/bin/env python # python WebMinerAnalyzer.py www.mejortorrent.org ./data 10 import requests import json import sys import os import subprocess import time import json import re import time as t import shutil import datetime import magic import run_web import util import pdb fil = ['chatbro','tidio.co', 'getcou...
38.427221
2,817
0.614719
61b783bd1f645561d692a376da45e46d014ca747
5,367
py
Python
flyingpigeon/processes/wps_pointinspection.py
tlvu/flyingpigeon
2fb3eb4f32c3d2c18ec266834d113dc710e24ffc
[ "Apache-2.0" ]
null
null
null
flyingpigeon/processes/wps_pointinspection.py
tlvu/flyingpigeon
2fb3eb4f32c3d2c18ec266834d113dc710e24ffc
[ "Apache-2.0" ]
null
null
null
flyingpigeon/processes/wps_pointinspection.py
tlvu/flyingpigeon
2fb3eb4f32c3d2c18ec266834d113dc710e24ffc
[ "Apache-2.0" ]
null
null
null
import logging from os.path import join from numpy import savetxt, column_stack from pywps import ComplexInput, ComplexOutput from pywps import Format from pywps import LiteralInput from pywps import Process from pywps.app.Common import Metadata from shapely.geometry import Point from eggshell.nc.ocg_utils import cal...
40.353383
116
0.524688
61b823d8585b20f092c787b7b2c50b78ac5048c4
1,166
py
Python
freshmaker/parsers/errata/signing_change.py
hluk/freshmaker
224875b104b5be9fa6688af31363a387eeb1b05f
[ "MIT" ]
5
2020-06-17T11:29:16.000Z
2022-03-24T07:20:16.000Z
freshmaker/parsers/errata/signing_change.py
ronnyhlim/freshmaker
b7635dcfe631759e917c85e6ef6654024a3fb91c
[ "MIT" ]
96
2020-06-29T15:01:23.000Z
2022-03-30T08:07:06.000Z
freshmaker/parsers/errata/signing_change.py
ronnyhlim/freshmaker
b7635dcfe631759e917c85e6ef6654024a3fb91c
[ "MIT" ]
20
2020-06-16T01:30:08.000Z
2022-02-19T15:34:55.000Z
# SPDX-License-Identifier: MIT from freshmaker.parsers import BaseParser from freshmaker.events import FlatpakModuleAdvisoryReadyEvent from freshmaker.errata import Errata, ErrataAdvisory
32.388889
92
0.715266
61b8dfc3b67dbc326456271271e5948b8211186a
1,940
py
Python
music163/api_test.py
WMLHUST/scrapy_wangyiyun_music
bd6b76d852dc6ead7f88a14843886c233c5a52c7
[ "Apache-2.0" ]
3
2019-07-01T14:20:26.000Z
2019-12-16T01:50:23.000Z
music163/api_test.py
WMLHUST/scrapy_wangyiyun_music
bd6b76d852dc6ead7f88a14843886c233c5a52c7
[ "Apache-2.0" ]
null
null
null
music163/api_test.py
WMLHUST/scrapy_wangyiyun_music
bd6b76d852dc6ead7f88a14843886c233c5a52c7
[ "Apache-2.0" ]
5
2018-10-15T12:47:55.000Z
2019-09-13T13:33:53.000Z
# coding: utf-8 import requests if __name__ == "__main__": rep = get_song_comments(520521342) print(rep.text) # print(get_hot_comments(rep)) # tmp_proxy = ProxyHandler.random_get() # proxy = {"http": tmp_proxy} # rep = requests.get("http://httpbin.org/ip", timeout=(2, 8)) # print(rep.tex...
38.039216
146
0.610309
61b9588fe2949fa1516521e6875b226d81b8b6f7
2,356
py
Python
src/data_modules/image_dataset_data_module.py
gmum/lcw-generator
fde1128505194bd04f04bbddcbe7fcec453b0052
[ "MIT" ]
4
2020-09-17T22:16:48.000Z
2022-02-21T19:07:48.000Z
src/data_modules/image_dataset_data_module.py
gmum/lcw-generator
fde1128505194bd04f04bbddcbe7fcec453b0052
[ "MIT" ]
null
null
null
src/data_modules/image_dataset_data_module.py
gmum/lcw-generator
fde1128505194bd04f04bbddcbe7fcec453b0052
[ "MIT" ]
null
null
null
from typing import Union from torch.utils.data.dataset import Dataset from data_modules.dataset_factory import DatasetFactory from torch.utils.data import DataLoader import pytorch_lightning as pl
43.62963
129
0.702886
61b978854383493ee32031f63ea4d378d345d545
3,429
py
Python
src/methods/model_investigate.py
clownjiahui/kdd2018_air_pollution_prediction
c76c3ee87132a923cf499d9be17d49b2c9b6eac1
[ "MIT" ]
19
2019-03-31T09:06:49.000Z
2022-03-29T12:25:29.000Z
src/methods/model_investigate.py
clownjiahui/kdd2018_air_pollution_prediction
c76c3ee87132a923cf499d9be17d49b2c9b6eac1
[ "MIT" ]
null
null
null
src/methods/model_investigate.py
clownjiahui/kdd2018_air_pollution_prediction
c76c3ee87132a923cf499d9be17d49b2c9b6eac1
[ "MIT" ]
11
2019-04-02T07:59:45.000Z
2022-03-18T08:32:28.000Z
import settings import const import pandas as pd import numpy as np import matplotlib from matplotlib import rcParams rcParams.update({'figure.autolayout': True}) # to prevent labels going out of plot! matplotlib.use('TkAgg') import seaborn as sns import matplotlib.pyplot as plt from src.preprocess import reform from ...
45.72
117
0.633712
61b9871edd93122c9a1e0cadd169ef1f8e7cc7a9
6,002
py
Python
src/obj.py
LemnX4/PointDipole
79223498f6adce9d4f33939bd0173e9f7cd9132a
[ "MIT" ]
null
null
null
src/obj.py
LemnX4/PointDipole
79223498f6adce9d4f33939bd0173e9f7cd9132a
[ "MIT" ]
null
null
null
src/obj.py
LemnX4/PointDipole
79223498f6adce9d4f33939bd0173e9f7cd9132a
[ "MIT" ]
null
null
null
# vim: set et sw=4 ts=4 nu fdm=indent: # coding: utf8 import numpy as np import random from demag import demagnetization from llg import Bth
26.794643
90
0.488004
61ba96c4c02b0b326e2005e4e9d043a4842e135b
828
py
Python
rubbish.bin/legacy/examples/normal_textures.py
Jack12xl/taichi_three
4785aeefd9e0bccd33cc9b564046dc566b03c714
[ "MIT" ]
null
null
null
rubbish.bin/legacy/examples/normal_textures.py
Jack12xl/taichi_three
4785aeefd9e0bccd33cc9b564046dc566b03c714
[ "MIT" ]
null
null
null
rubbish.bin/legacy/examples/normal_textures.py
Jack12xl/taichi_three
4785aeefd9e0bccd33cc9b564046dc566b03c714
[ "MIT" ]
null
null
null
import taichi as ti import taichi_three as t3 import numpy as np ti.init(ti.cpu) scene = t3.Scene() obj = t3.readobj('assets/cube.obj', scale=0.6) model = t3.Model(t3.Mesh.from_obj(obj)) model.material = t3.Material(t3.CookTorrance( color=t3.Texture(ti.imread('assets/cloth.jpg')), normal=t3.NormalMap(texture=...
27.6
76
0.693237
61bce430d360996e97a91a55ee3188cadb7521ab
132,733
py
Python
polls/esp_xlsx.py
raqsilva/VCFDataExporter
b5eaabd82ade95a837fd98dff5e1600046eeb029
[ "Apache-2.0" ]
null
null
null
polls/esp_xlsx.py
raqsilva/VCFDataExporter
b5eaabd82ade95a837fd98dff5e1600046eeb029
[ "Apache-2.0" ]
null
null
null
polls/esp_xlsx.py
raqsilva/VCFDataExporter
b5eaabd82ade95a837fd98dff5e1600046eeb029
[ "Apache-2.0" ]
null
null
null
import vcf from django.http import HttpResponse from django.core.files import File import xlsxwriter import os from .vcf_functions import getBasePath, save_binary, getFilePath, parse_fasta, getEspPath import subprocess import collections from .dictionaries import esp_col_dic from pytera.settings import BASE_DIR # PYTE...
51.407049
120
0.317638
61bfbfcc852afff791e40fe0d4e3cbc4a671f54b
13,003
py
Python
record.py
mahongquan/ipy_rtf
1ac68bd531e1d0f3f12b15a2b10991eb21db0305
[ "Zlib" ]
null
null
null
record.py
mahongquan/ipy_rtf
1ac68bd531e1d0f3f12b15a2b10991eb21db0305
[ "Zlib" ]
null
null
null
record.py
mahongquan/ipy_rtf
1ac68bd531e1d0f3f12b15a2b10991eb21db0305
[ "Zlib" ]
null
null
null
# -*- coding: utf-8 -*- import clr import sys import math import getmethod import genRtf clr.AddReferenceByPartialName("IronPython") #initpath=r"d:\Program Files\NCS\CS3000" #initpath=r"C:\Program Files (x86)\NCS\ONH3000" # initpath=r"C:\CS3000\CS3000_1.7.0" initpath=r"C:\Program Files (x86)\NCS\CS3000" # initpath=r"C:...
32.588972
115
0.484196
61c0a34abeefd2557216aff867ba7f8de9c65cae
799
py
Python
forms-flow-api/src/api/utils/util.py
McCoySmith/forms-flow-ai
5555c1b2a9a5496f1ab98e5339d66537e25974c2
[ "Apache-2.0" ]
null
null
null
forms-flow-api/src/api/utils/util.py
McCoySmith/forms-flow-ai
5555c1b2a9a5496f1ab98e5339d66537e25974c2
[ "Apache-2.0" ]
11
2021-06-02T04:42:50.000Z
2022-02-14T07:24:15.000Z
forms-flow-api/src/api/utils/util.py
McCoySmith/forms-flow-ai
5555c1b2a9a5496f1ab98e5339d66537e25974c2
[ "Apache-2.0" ]
null
null
null
"""Common utils. * CORS pre-flight decorator. A simple decorator to add the options method to a Request Class. """ from .constants import ALLOW_ALL_ORIGINS def cors_preflight(methods: str = "GET"): """Render an option method on the class.""" return wrapper
29.592593
93
0.560701
61c1095b36ced7182f84ce6fb98c5966048a181c
89
py
Python
FoodScan/ShopSync/Shops/__init__.py
danielBreitlauch/FoodScan
cf84209c4da84a8cb56deccdbde9c305eee1b8c3
[ "MIT" ]
1
2017-03-16T00:59:01.000Z
2017-03-16T00:59:01.000Z
FoodScan/ShopSync/Shops/__init__.py
danielBreitlauch/FoodScan
cf84209c4da84a8cb56deccdbde9c305eee1b8c3
[ "MIT" ]
null
null
null
FoodScan/ShopSync/Shops/__init__.py
danielBreitlauch/FoodScan
cf84209c4da84a8cb56deccdbde9c305eee1b8c3
[ "MIT" ]
null
null
null
from .shop import Shop from .allyouneed import AllYouNeed from .kaufland import Kaufland
22.25
34
0.831461
61c6722666daed5da1e5465a987ae0f5c8c2f1c8
11,323
py
Python
wk3_time_space_est.py
pc0179/RomeTaxiData
dff19a538482810e1b84486cdc4299fb820f5051
[ "MIT" ]
null
null
null
wk3_time_space_est.py
pc0179/RomeTaxiData
dff19a538482810e1b84486cdc4299fb820f5051
[ "MIT" ]
null
null
null
wk3_time_space_est.py
pc0179/RomeTaxiData
dff19a538482810e1b84486cdc4299fb820f5051
[ "MIT" ]
null
null
null
""" # week3 madness... # filter, process (map-match) and output data to new postgres database # aim by thurs, to be able to answer question, where are (best-guess/estimate) all the taxis at time T. # then, work out, how far each one is from one another, likely a) search with in BBox, then b) do some fast osrm routing (...
35.495298
244
0.689658
61c780171c158e14c78061e8324344923f5412cc
668
py
Python
lgy/algorithm/9251 LCS.py
Einere/boostcamp_study
63a52253c0ee01354a81dcac6349cc84d738b9ca
[ "MIT" ]
2
2019-06-25T14:18:34.000Z
2019-11-21T01:19:35.000Z
lgy/algorithm/9251 LCS.py
Einere/boostcamp_study
63a52253c0ee01354a81dcac6349cc84d738b9ca
[ "MIT" ]
null
null
null
lgy/algorithm/9251 LCS.py
Einere/boostcamp_study
63a52253c0ee01354a81dcac6349cc84d738b9ca
[ "MIT" ]
1
2019-06-26T05:09:39.000Z
2019-06-26T05:09:39.000Z
import sys sys.path.append('.') from lgy.algorithm.StdIOTestContainer import StdIOTestContainer as T print("ab"[0]) user_input = ''' ACAYKP CAPCAK ''' expected = ''' 4 ''' T.runningTest(user_input.strip(), expected.lstrip(), main)
19.085714
70
0.516467
61c7a9a87067cdc2425518e9bb3374a220504301
5,164
py
Python
gstat/tests/gstat_test.py
nixon/gstat
cf3fdc8b232de380ced2519ae853b46997787eeb
[ "MIT-0" ]
null
null
null
gstat/tests/gstat_test.py
nixon/gstat
cf3fdc8b232de380ced2519ae853b46997787eeb
[ "MIT-0" ]
null
null
null
gstat/tests/gstat_test.py
nixon/gstat
cf3fdc8b232de380ced2519ae853b46997787eeb
[ "MIT-0" ]
null
null
null
#!/usr/bin/env python import os import socket import unittest from ..gstat import gstat, gstats, gstat_event, gstat_elapsed
31.29697
72
0.625097
61c7c024df7aed8146ffceb3d91a5193f97dce1d
1,721
py
Python
app.py
rebeccabilbro/inquire
ff47ff46add727a10f14d801ea924d4b0ece6805
[ "MIT" ]
null
null
null
app.py
rebeccabilbro/inquire
ff47ff46add727a10f14d801ea924d4b0ece6805
[ "MIT" ]
null
null
null
app.py
rebeccabilbro/inquire
ff47ff46add727a10f14d801ea924d4b0ece6805
[ "MIT" ]
1
2019-05-06T13:38:56.000Z
2019-05-06T13:38:56.000Z
from flask import Flask, render_template, request from flask_bootstrap import Bootstrap # from flask_appconfig import AppConfig from flask_wtf import Form, RecaptchaField from wtforms import TextField, HiddenField, ValidationError, RadioField, BooleanField, SubmitField from wtforms.validators import Required import ge...
31.290909
98
0.678094
61c87be5497f3881250ad3985df824448fa55d00
427
py
Python
md2html/weixin/pre_processor.py
g0man/md2html
c7f021298556e60984497464c1f523ac2443e868
[ "MIT" ]
1
2018-08-03T01:25:38.000Z
2018-08-03T01:25:38.000Z
md2html/weixin/pre_processor.py
g0man/md2html
c7f021298556e60984497464c1f523ac2443e868
[ "MIT" ]
null
null
null
md2html/weixin/pre_processor.py
g0man/md2html
c7f021298556e60984497464c1f523ac2443e868
[ "MIT" ]
null
null
null
from markdown.preprocessors import Preprocessor
30.5
74
0.662763
61c9624c9f9d3fcfa45f472861b7d2d95733b378
19,842
py
Python
data/scripts/model.py
Honorates/covid19_scenarios
c0d6d1a34d3650e9812744932b9b661ddac57643
[ "MIT" ]
3
2020-05-23T03:22:08.000Z
2020-05-23T03:22:16.000Z
data/scripts/model.py
Honorates/covid19_scenarios
c0d6d1a34d3650e9812744932b9b661ddac57643
[ "MIT" ]
null
null
null
data/scripts/model.py
Honorates/covid19_scenarios
c0d6d1a34d3650e9812744932b9b661ddac57643
[ "MIT" ]
1
2020-05-25T13:50:23.000Z
2020-05-25T13:50:23.000Z
import csv import importlib import sys sys.path.append('..') import os import json import argparse import copy from enum import IntEnum from datetime import datetime import numpy as np import scipy.integrate as solve import scipy.optimize as opt import matplotlib.pylab as plt from scripts.tsv import parse as parse_ts...
35.945652
136
0.590969
61c99cc2811581dd1cdf3ced3f55a324a3a575c9
3,396
py
Python
mxfold2/fold/fold.py
n-mikamo/mxfold2
8c195c77f824bdd5899d3d01d6a096de95cd0e9b
[ "MIT" ]
46
2020-09-17T04:50:22.000Z
2022-03-22T08:14:15.000Z
mxfold2/fold/fold.py
n-mikamo/mxfold2
8c195c77f824bdd5899d3d01d6a096de95cd0e9b
[ "MIT" ]
7
2021-02-09T10:09:03.000Z
2022-01-14T21:19:02.000Z
mxfold2/fold/fold.py
n-mikamo/mxfold2
8c195c77f824bdd5899d3d01d6a096de95cd0e9b
[ "MIT" ]
20
2020-10-15T09:03:59.000Z
2022-03-09T07:16:20.000Z
import torch import torch.nn as nn import torch.nn.functional as F
46.520548
124
0.575677
61ca7a2cc6d6893b83bcf58c4d2095aac6d4e176
998
py
Python
python/optparse/fib.py
xiaogy0318/coding-exercises
320205f8a14d16faa8a600439ee02c6e380449c8
[ "Unlicense" ]
null
null
null
python/optparse/fib.py
xiaogy0318/coding-exercises
320205f8a14d16faa8a600439ee02c6e380449c8
[ "Unlicense" ]
null
null
null
python/optparse/fib.py
xiaogy0318/coding-exercises
320205f8a14d16faa8a600439ee02c6e380449c8
[ "Unlicense" ]
null
null
null
import optparse else: number = option.num result = fib(number, option.prin) print 'The ' + str(number) + 'th fib number is: ' + str(result) if(option.out != None): f = open(option.out, 'a') f.write(str(result)) + '\n' if (__name__ == '__main__'): Main()
24.95
75
0.608216
4edee1ef5f03774068d2d400a1fd45f888b489f3
3,651
py
Python
test/connectivity/acts/tests/google/ble/api/GattApiTest.py
Keneral/atools
055e76621340c7dced125e9de56e2645b5e1cdfb
[ "Unlicense" ]
null
null
null
test/connectivity/acts/tests/google/ble/api/GattApiTest.py
Keneral/atools
055e76621340c7dced125e9de56e2645b5e1cdfb
[ "Unlicense" ]
null
null
null
test/connectivity/acts/tests/google/ble/api/GattApiTest.py
Keneral/atools
055e76621340c7dced125e9de56e2645b5e1cdfb
[ "Unlicense" ]
1
2018-02-24T19:13:01.000Z
2018-02-24T19:13:01.000Z
#/usr/bin/env python3.4 # # Copyright (C) 2016 The Android Open Source Project # # 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 requir...
30.173554
79
0.67461
4edf4e5da1cf00b7d7db246168a8366bec39843f
3,568
py
Python
python/modeltools/imagetools/test_result.py
GT-AcerZhang/PaddleSelfTools
ad7e45ddc3166f6834e8798011a33488a9f7f70e
[ "Apache-2.0" ]
1
2021-02-27T18:01:44.000Z
2021-02-27T18:01:44.000Z
python/modeltools/imagetools/test_result.py
GT-AcerZhang/PaddleSelfTools
ad7e45ddc3166f6834e8798011a33488a9f7f70e
[ "Apache-2.0" ]
1
2020-03-18T15:55:50.000Z
2020-03-18T15:55:50.000Z
python/modeltools/imagetools/test_result.py
GT-AcerZhang/PaddleSelfTools
ad7e45ddc3166f6834e8798011a33488a9f7f70e
[ "Apache-2.0" ]
1
2021-03-05T10:23:37.000Z
2021-03-05T10:23:37.000Z
# coding=utf-8 import numpy as np # fromfile = np.fromfile('/Users/xiebaiyuan/PaddleProject/paddle-mobile/tools/python/imagetools/datas/jpgs/0000_0.9834-148196_82452-0ad4b83ec6bc0f9c5f28101539267054.jpg_p0_0.126571263346.jpg.npfile', 'f') # fromfile = np.fromfile('/Users/xiebaiyuan/PaddleProject/paddle-mobile/tools/py...
29.00813
204
0.69815
4ee166755be43836f7c47c4a1c08fb0f9fe27932
663
py
Python
url/forms.py
mad-skull/URL-Shortener
09fdf179a2ae0f0f5bc9309e53c0aebf352a9b02
[ "MIT" ]
null
null
null
url/forms.py
mad-skull/URL-Shortener
09fdf179a2ae0f0f5bc9309e53c0aebf352a9b02
[ "MIT" ]
null
null
null
url/forms.py
mad-skull/URL-Shortener
09fdf179a2ae0f0f5bc9309e53c0aebf352a9b02
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm # , RecaptchaField from wtforms import validators, StringField from wtforms.validators import Length # from wtforms.fields.html5 import URLField
30.136364
90
0.624434
4ee1ab036fce9ec6e8e4a17a9395246651c2444f
645
py
Python
Leetcode/0051-0100/0053-maximum-subarray.py
harshbhandari7/Data-Structures-and-Algorithms
0ce0a5bc64d112ff38ae0de51d19ce3751b70eca
[ "MIT" ]
null
null
null
Leetcode/0051-0100/0053-maximum-subarray.py
harshbhandari7/Data-Structures-and-Algorithms
0ce0a5bc64d112ff38ae0de51d19ce3751b70eca
[ "MIT" ]
null
null
null
Leetcode/0051-0100/0053-maximum-subarray.py
harshbhandari7/Data-Structures-and-Algorithms
0ce0a5bc64d112ff38ae0de51d19ce3751b70eca
[ "MIT" ]
1
2019-10-06T15:46:14.000Z
2019-10-06T15:46:14.000Z
''' Author : MiKueen Level : Easy Problem Statement : Maximum Subarray Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. Example: Input: [-2,1,-3,4,-1,2,1,-5,4], Output: 6 Explanation: [4,-1,2,1] has the largest sum = 6. ''' ...
25.8
136
0.575194
4ee29462d01045c39bdef7c5f4256af4c465f988
655
py
Python
setup.py
mit-athena/python-moira
d765eaa608ff1b12423d65c447a27d65eec38988
[ "MIT" ]
null
null
null
setup.py
mit-athena/python-moira
d765eaa608ff1b12423d65c447a27d65eec38988
[ "MIT" ]
null
null
null
setup.py
mit-athena/python-moira
d765eaa608ff1b12423d65c447a27d65eec38988
[ "MIT" ]
null
null
null
#!/usr/bin/python from setuptools import setup from distutils.extension import Extension from Pyrex.Distutils import build_ext setup( name="PyMoira", version="4.3.2", description="PyMoira - Python bindings for the Athena Moira library", author="Evan Broder", author_email="broder@mit.edu", lice...
26.2
73
0.584733
4ee46086988cfd5d4d1141a8637a06a6d2c42445
7,818
py
Python
distributed_social_network/api/models.py
CMPUT404F21-TEAM-PROJECT/cmput404-group-project
5fc929f6bd22d41dc73734d34b1563bcfdc87f27
[ "Apache-2.0" ]
1
2022-02-10T05:50:19.000Z
2022-02-10T05:50:19.000Z
distributed_social_network/api/models.py
CMPUT404F21-TEAM-PROJECT/cmput404-group-project
5fc929f6bd22d41dc73734d34b1563bcfdc87f27
[ "Apache-2.0" ]
43
2022-02-08T00:59:49.000Z
2022-03-14T00:10:01.000Z
distributed_social_network/api/models.py
CMPUT404F21-TEAM-PROJECT/cmput404-group-project
5fc929f6bd22d41dc73734d34b1563bcfdc87f27
[ "Apache-2.0" ]
1
2022-03-17T22:11:38.000Z
2022-03-17T22:11:38.000Z
import uuid from django.db import models from django.contrib.auth.models import AbstractUser import django.utils.timezone import environ, requests env = environ.Env() environ.Env.read_env()
47.96319
140
0.640061
4ee4c9bda6034b23325fab78be4485408477098a
1,727
py
Python
faker_extras/biology.py
nyimbi/faker_extras
37967d9101af217f7671fc2ad071b49258711c29
[ "MIT" ]
null
null
null
faker_extras/biology.py
nyimbi/faker_extras
37967d9101af217f7671fc2ad071b49258711c29
[ "MIT" ]
null
null
null
faker_extras/biology.py
nyimbi/faker_extras
37967d9101af217f7671fc2ad071b49258711c29
[ "MIT" ]
1
2019-05-23T16:02:45.000Z
2019-05-23T16:02:45.000Z
"""Faker data providers for biological data.""" from random import choice from faker.providers import BaseProvider from . import utils
23.337838
66
0.491025
4ee7880d0727b54a66e34d3af262fe8722c42af8
640
py
Python
src/sibyl/transformations/text/data/phrases.py
UCLA-SEAL/Sibyl
06e9d38ef551284ab48f507dc40d14fde3562fb6
[ "BSD-3-Clause" ]
null
null
null
src/sibyl/transformations/text/data/phrases.py
UCLA-SEAL/Sibyl
06e9d38ef551284ab48f507dc40d14fde3562fb6
[ "BSD-3-Clause" ]
null
null
null
src/sibyl/transformations/text/data/phrases.py
UCLA-SEAL/Sibyl
06e9d38ef551284ab48f507dc40d14fde3562fb6
[ "BSD-3-Clause" ]
null
null
null
POSITIVE_PHRASES = [ "That said, I liked it.", "That said, I loved it.", "That said, I couldn't be happier.", "That said, I'm pleased.", "That being said, I liked it.", "That being said, I loved it.", "That being said, I couldn't be happier.", "That being said, I'm pleased." ] NEGATIVE_...
30.47619
49
0.596875
4ee83a8fb82e867ec3132c21b79dd40933bc94ec
2,708
py
Python
tests/conftest.py
TheCuVe/order-service
b23aaa9774bd3430b463ef872babb0e4459518da
[ "MIT" ]
null
null
null
tests/conftest.py
TheCuVe/order-service
b23aaa9774bd3430b463ef872babb0e4459518da
[ "MIT" ]
null
null
null
tests/conftest.py
TheCuVe/order-service
b23aaa9774bd3430b463ef872babb0e4459518da
[ "MIT" ]
2
2018-02-15T11:40:25.000Z
2018-02-15T11:49:25.000Z
import pytest import factory import asyncio from cuve.order_service.db import transaction, tables from cuve.order_service.db.helpers import async_create_database from cuve.order_service.app import application_factory from cuve.order_service.config import load_config, ConfigSchema def pytest_configure(config): "...
27.632653
76
0.695347
4eea6491efcd84bda94636814b33bd0e8caf7e12
351
py
Python
check_file.py
aideyisu/english_study
87f188655f9858dff32ea3f0dc5e86bc79c267ad
[ "MIT" ]
1
2021-08-14T13:42:15.000Z
2021-08-14T13:42:15.000Z
check_file.py
aideyisu/english_study
87f188655f9858dff32ea3f0dc5e86bc79c267ad
[ "MIT" ]
null
null
null
check_file.py
aideyisu/english_study
87f188655f9858dff32ea3f0dc5e86bc79c267ad
[ "MIT" ]
null
null
null
''' ''' from pathlib import Path import os basepath = os.path.dirname(__file__) # file_list = [] for file in file_list: my_file = Path(f'{basepath}/analysis_result/asd') if not my_file.exists(): # id os.makedirs(my_file) # =.= print(f' {my_file} ')
18.473684
53
0.652422
4eeb090fcce31a4d12b4e9146d28f91e0bc82c1a
7,983
py
Python
neutron/tests/unit/plugins/wrs/test_extension_host.py
ericho/stx-neutron
d4a8ad548c4afed73269575c48526a704dd09a9c
[ "Apache-2.0" ]
4
2018-08-05T00:43:03.000Z
2021-10-13T00:45:45.000Z
neutron/tests/unit/plugins/wrs/test_extension_host.py
ericho/stx-neutron
d4a8ad548c4afed73269575c48526a704dd09a9c
[ "Apache-2.0" ]
8
2018-06-14T14:50:16.000Z
2018-11-13T16:30:42.000Z
neutron/tests/unit/plugins/wrs/test_extension_host.py
ericho/stx-neutron
d4a8ad548c4afed73269575c48526a704dd09a9c
[ "Apache-2.0" ]
7
2018-06-12T18:57:04.000Z
2019-05-09T15:42:30.000Z
# Copyright 2013 OpenStack Foundation # # 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 ...
38.014286
78
0.621571
4eeb19e644b70e38ac9382dd07fad932a634f7b9
1,792
py
Python
project4/task1_ground_truth.py
yushanweng/github_projects
e2263a04a37291b767014239c2c23fa25a0811bd
[ "MIT" ]
null
null
null
project4/task1_ground_truth.py
yushanweng/github_projects
e2263a04a37291b767014239c2c23fa25a0811bd
[ "MIT" ]
6
2020-05-18T05:02:09.000Z
2022-02-27T05:41:49.000Z
project4/task1_ground_truth.py
yushanweng/projects
e2263a04a37291b767014239c2c23fa25a0811bd
[ "MIT" ]
null
null
null
from pyspark import SparkContext import os import re import json import sys import time import logging import collections from itertools import combinations from itertools import product s_logger = logging.getLogger('py4j.java_gateway') s_logger.setLevel(logging.ERROR) sc = SparkContext('local[*]', 'task1') sc.setLogL...
28.444444
122
0.707589
4eec905aa21dad34da72aba28caa72b9f1341da1
3,917
py
Python
preprocess_kb.py
ruinunca/NeuralDialog-ZSDG
c20359541036ea876a126d1c7c172b820476dcb2
[ "Apache-2.0" ]
null
null
null
preprocess_kb.py
ruinunca/NeuralDialog-ZSDG
c20359541036ea876a126d1c7c172b820476dcb2
[ "Apache-2.0" ]
null
null
null
preprocess_kb.py
ruinunca/NeuralDialog-ZSDG
c20359541036ea876a126d1c7c172b820476dcb2
[ "Apache-2.0" ]
1
2020-09-24T15:09:34.000Z
2020-09-24T15:09:34.000Z
import os from argparse import ArgumentParser import json import copy import shutil if __name__ == '__main__': parser = configure_argument_parser() args = parser.parse_args() datasets = process_dataset(args.dataset_folder) save_dataset(args.dataset_folder, args.output_folder, datasets)
34.359649
87
0.658667
4eee06b3e3623184a4edfd4ef7d48d4395142249
164
py
Python
runner.py
xoiss/mk60
1e1be5527a7c6a6f95dfede9e5452faa90f7d456
[ "CC0-1.0" ]
null
null
null
runner.py
xoiss/mk60
1e1be5527a7c6a6f95dfede9e5452faa90f7d456
[ "CC0-1.0" ]
null
null
null
runner.py
xoiss/mk60
1e1be5527a7c6a6f95dfede9e5452faa90f7d456
[ "CC0-1.0" ]
null
null
null
if __name__ == '__main__': from sys import exit from mk60.app import main exit(main()) else: raise RuntimeError("runner must be run, not imported")
23.428571
58
0.676829
4eeebae26c14fcd330b4a36375b13a6878c29835
1,038
py
Python
Prettified Stopwatch.py
adrian88szymanski/Automate_the_Boring_Stuff_with_Python_by_Sweigart
a5fa40a3e27c4f0c79d6406926456c3d1a54c0c1
[ "MIT" ]
1
2020-08-15T11:36:24.000Z
2020-08-15T11:36:24.000Z
Prettified Stopwatch.py
adrian88szymanski/Automate_the_Boring_Stuff_with_Python_by_Sweigart
a5fa40a3e27c4f0c79d6406926456c3d1a54c0c1
[ "MIT" ]
2
2022-01-13T03:18:08.000Z
2022-03-12T00:48:23.000Z
Prettified Stopwatch.py
adrian88szymanski/Sweigart_tasks
a5fa40a3e27c4f0c79d6406926456c3d1a54c0c1
[ "MIT" ]
null
null
null
#! python3 """A stopwatch program with a prettier output and pyperclip functionality.""" import time import pyperclip # Display the programs instructions. print('Press ENTER to begin. Afterwards, press ENTER to "click" the stopwatch.' 'Press Ctrl-c to quit.') input() print('Started.') start_time = time.time()...
28.833333
79
0.595376
4eefc422a0f1ecd6f321d7742b73d4e9a3dbaace
2,768
py
Python
src/tspf/main.py
Javernaver/ProyectoTitulo
de8406b13bf62c3f96409ce95675c95a9e00c7f1
[ "Apache-2.0" ]
2
2022-01-28T02:15:55.000Z
2022-01-28T02:16:00.000Z
src/tspf/main.py
Javernaver/TSP-Framework
de8406b13bf62c3f96409ce95675c95a9e00c7f1
[ "Apache-2.0" ]
null
null
null
src/tspf/main.py
Javernaver/TSP-Framework
de8406b13bf62c3f96409ce95675c95a9e00c7f1
[ "Apache-2.0" ]
null
null
null
"""Modulo principal que utiliza todas las demas clases para ejecutar el framework""" from .Algorithms import GeneticAlgorithm, SimulatedAnnealing, LocalSearch, IteratedLocalSearch, timer from . import sys, os, AlgorithmsOptions, MHType, Tsp, Tour, bcolors def main(argv=sys.argv) -> None: """ Funcion principal...
38.444444
128
0.700506
4ef1b6b34b3007f16abb86fd81810b5f9c743ad4
5,879
py
Python
online/train/hmm_online_anomaly_detection.py
birlrobotics/bnpy
8f297d8f3e4a56088d7755134c329f63a550be9e
[ "BSD-3-Clause" ]
3
2018-07-02T03:50:23.000Z
2019-05-16T03:23:55.000Z
online/train/hmm_online_anomaly_detection.py
birlrobotics/bnpy
8f297d8f3e4a56088d7755134c329f63a550be9e
[ "BSD-3-Clause" ]
1
2021-01-07T01:33:06.000Z
2021-01-07T01:33:06.000Z
online/train/hmm_online_anomaly_detection.py
birlrobotics/bnpy
8f297d8f3e4a56088d7755134c329f63a550be9e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import warnings warnings.warn = warn import os import threading from sklearn.externals import joblib import bnpy import rospy import copy from std_msgs.msg import ( Header ) from birl_sim_examples.msg import ( Tag_MultiModal, Hmm_Log ) data_arr = [] hmm_previous_state =0 hmm_state = ...
32.843575
124
0.621534
4ef1fb454c62d9675e2048e32596b30d112e5f10
4,838
py
Python
python_tools/test/test_memory_engine.py
ultimatezen/felix
5a7ad298ca4dcd5f1def05c60ae3c84519ec54c4
[ "MIT" ]
null
null
null
python_tools/test/test_memory_engine.py
ultimatezen/felix
5a7ad298ca4dcd5f1def05c60ae3c84519ec54c4
[ "MIT" ]
null
null
null
python_tools/test/test_memory_engine.py
ultimatezen/felix
5a7ad298ca4dcd5f1def05c60ae3c84519ec54c4
[ "MIT" ]
null
null
null
""" Tests for MemoryEngine::RemoteMemory """ import unittest import cPickle from cStringIO import StringIO import mock from FelixMemoryServes import MemoryEngine
31.620915
60
0.596114
4ef25d0f65d81e8e0d5a9796fa97079edac4afe1
6,033
py
Python
commands/print9.py
egigoka/commands
3431ccdb9b9e8b13957b6cfc10feb51c46188b48
[ "MIT" ]
1
2018-05-23T03:34:05.000Z
2018-05-23T03:34:05.000Z
commands/print9.py
egigoka/commands
3431ccdb9b9e8b13957b6cfc10feb51c46188b48
[ "MIT" ]
null
null
null
commands/print9.py
egigoka/commands
3431ccdb9b9e8b13957b6cfc10feb51c46188b48
[ "MIT" ]
null
null
null
#! python3 # -*- coding: utf-8 -*- from typing import Union """Internal module with functions for print to console. """ __version__ = "0.13.0" Print = __Print()
39.690789
114
0.593403
4ef3dc5e360dade818b286abce16461dc436ebac
3,514
py
Python
src/function_file.py
cognitedata/function-action-oidc
6ba70da59aa1e94fff003def1082f48fc55bd6a2
[ "Apache-2.0" ]
1
2021-09-06T20:57:27.000Z
2021-09-06T20:57:27.000Z
src/function_file.py
cognitedata/function-action-oidc
6ba70da59aa1e94fff003def1082f48fc55bd6a2
[ "Apache-2.0" ]
8
2021-09-06T12:16:39.000Z
2022-02-16T11:48:54.000Z
src/function_file.py
cognitedata/function-action-oidc
6ba70da59aa1e94fff003def1082f48fc55bd6a2
[ "Apache-2.0" ]
null
null
null
import io import logging import os from pathlib import Path from zipfile import ZipFile from cognite.client.data_classes import DataSet, FileMetadata from cognite.client.exceptions import CogniteAPIError from cognite.experimental import CogniteClient from retry import retry # type: ignore from configs import Functio...
37.382979
105
0.684121
4ef491194dad1406c21f05ef14e5bf3fd5cd294c
474
py
Python
learning_python/2.built-in_data_types/1.built-in_data_types.py
thekilian/Python-pratica
875661addd5b8eb4364bc638832c7ab55dcefce4
[ "MIT" ]
null
null
null
learning_python/2.built-in_data_types/1.built-in_data_types.py
thekilian/Python-pratica
875661addd5b8eb4364bc638832c7ab55dcefce4
[ "MIT" ]
null
null
null
learning_python/2.built-in_data_types/1.built-in_data_types.py
thekilian/Python-pratica
875661addd5b8eb4364bc638832c7ab55dcefce4
[ "MIT" ]
null
null
null
''' BUILT-IN DATA TYPES Mutable - the value can change Immutable - the value cannot change ''' # Immutable object age = 99 id(age) age = 100 id(age) ''' We didn't change 99 to 100. We actually just pointed age to a different location: the new int object whose value is 100. We print the IDs by calling the built-in ...
14.8125
120
0.694093
4ef5599e07f8786bc1af735d52d729d2cbe1c992
3,147
py
Python
deep_dream.py
ewalldo/Deep-Dream---Keras
bd4b116c547b008a38cb9e15d7845b1d4f1d120b
[ "MIT" ]
null
null
null
deep_dream.py
ewalldo/Deep-Dream---Keras
bd4b116c547b008a38cb9e15d7845b1d4f1d120b
[ "MIT" ]
null
null
null
deep_dream.py
ewalldo/Deep-Dream---Keras
bd4b116c547b008a38cb9e15d7845b1d4f1d120b
[ "MIT" ]
null
null
null
from keras.applications import inception_v3 from keras import backend as K import scipy import imageio from keras.preprocessing import image import numpy as np K.set_learning_phase(0) model = inception_v3.InceptionV3(weights='imagenet', include_top=False) layer_contributions = {'mixed2': 0.2, 'mixed3': 3., 'mixed4':...
28.351351
81
0.733079
4ef59607a8d06514cadf280683c16c602c23e215
978
py
Python
game.py
greymistcube/racing_game_ai
7e5e6ec781eb3c98729d370cbcc0ab6ed053962f
[ "MIT" ]
null
null
null
game.py
greymistcube/racing_game_ai
7e5e6ec781eb3c98729d370cbcc0ab6ed053962f
[ "MIT" ]
null
null
null
game.py
greymistcube/racing_game_ai
7e5e6ec781eb3c98729d370cbcc0ab6ed053962f
[ "MIT" ]
null
null
null
import pygame import argparser import lib import ai.neatinterface.neatcore pygame.init() if __name__ == "__main__": args = argparser.get_args() # pygame initialization pygame.init() # initialize properly and make links make them as common resources # for other modules # I admit this looks ...
22.744186
70
0.639059
4ef5d87643a24ee31f5dfe4a4c41d372dcfe5746
495
py
Python
tests/test_lines.py
nazcaspider/simple-3dviz
3c40007259a1f754311623f74d24b06f7b98be14
[ "MIT" ]
66
2020-03-31T14:33:20.000Z
2022-03-25T15:48:06.000Z
tests/test_lines.py
nazcaspider/simple-3dviz
3c40007259a1f754311623f74d24b06f7b98be14
[ "MIT" ]
6
2020-04-05T18:20:10.000Z
2021-12-17T19:54:54.000Z
tests/test_lines.py
nazcaspider/simple-3dviz
3c40007259a1f754311623f74d24b06f7b98be14
[ "MIT" ]
9
2020-04-03T14:31:28.000Z
2022-03-15T19:16:41.000Z
import unittest from cv2 import imwrite import numpy as np from simple_3dviz import Scene, Lines, Spherecloud from simple_3dviz.window import show if __name__ == "__main__": unittest.main()
21.521739
50
0.553535
4ef6267fcd36a4e2159433da6c76f793b111f5da
39,946
py
Python
build/lib/biotas/radio_project.py
knebiolo/biotas
2ea06297fc2851bc54ce89f20f8f7aaa98dd8fc1
[ "MIT" ]
1
2021-12-30T14:25:39.000Z
2021-12-30T14:25:39.000Z
build/lib/biotas/radio_project.py
knebiolo/biotas
2ea06297fc2851bc54ce89f20f8f7aaa98dd8fc1
[ "MIT" ]
17
2020-11-27T18:05:45.000Z
2022-01-27T02:46:46.000Z
build/lib/biotas/radio_project.py
knebiolo/biotas
2ea06297fc2851bc54ce89f20f8f7aaa98dd8fc1
[ "MIT" ]
1
2020-11-17T21:07:38.000Z
2020-11-17T21:07:38.000Z
# -*- coding: utf-8 -*- ''' Module contains all of the functions to create a radio telemetry project.''' # import modules required for function dependencies import numpy as np import pandas as pd import os import sqlite3 import datetime import matplotlib.pyplot as plt import matplotlib import matplotlib.dates as mdat...
69.957968
498
0.575953
4ef82bde3ffe5853de425426103656891207a980
250
py
Python
tests/test_graphical_units/test_mobjects.py
osuzdalev/manim-1
adab2430645637a5e7e73832d3a6ff9e7d390159
[ "MIT" ]
5
2019-02-22T14:10:08.000Z
2022-03-13T01:03:49.000Z
tests/test_graphical_units/test_mobjects.py
osuzdalev/manim-1
adab2430645637a5e7e73832d3a6ff9e7d390159
[ "MIT" ]
17
2021-04-10T13:47:17.000Z
2021-05-17T21:25:30.000Z
tests/test_graphical_units/test_mobjects.py
osuzdalev/manim-1
adab2430645637a5e7e73832d3a6ff9e7d390159
[ "MIT" ]
1
2021-03-31T20:46:51.000Z
2021-03-31T20:46:51.000Z
from manim import * from tests.test_graphical_units.testing.frames_comparison import frames_comparison __module_test__ = "mobjects"
22.727273
82
0.804
4ef9b9608e8bbaa101ff10ed781037b8288c8ad9
3,284
py
Python
cpp/python/libgdf_cffi/tests/test_prefixsum.py
tgravescs/cudf
b8e72d713c801afd6b7d3f4b11711ef90b9f1f51
[ "Apache-2.0" ]
1
2021-02-23T21:19:08.000Z
2021-02-23T21:19:08.000Z
cpp/python/libgdf_cffi/tests/test_prefixsum.py
tgravescs/cudf
b8e72d713c801afd6b7d3f4b11711ef90b9f1f51
[ "Apache-2.0" ]
null
null
null
cpp/python/libgdf_cffi/tests/test_prefixsum.py
tgravescs/cudf
b8e72d713c801afd6b7d3f4b11711ef90b9f1f51
[ "Apache-2.0" ]
null
null
null
from __future__ import division, print_function import pytest from itertools import product import numpy as np from libgdf_cffi import ffi, libgdf from librmm_cffi import librmm as rmm from libgdf_cffi.tests.utils import (new_column, unwrap_devary, get_dtype, gen_rand, buffer_as_bits, count_nulls) params_...
29.061947
77
0.640682
4efabc6bb17436720e7713819341d82858e58c26
1,889
py
Python
tests/contrib_django/test_types.py
jhgg/graphene
67904e8329de3d69fec8c82ba8c3b4fe598afa8e
[ "MIT" ]
1
2021-04-28T21:35:01.000Z
2021-04-28T21:35:01.000Z
tests/contrib_django/test_types.py
jhgg/graphene
67904e8329de3d69fec8c82ba8c3b4fe598afa8e
[ "MIT" ]
null
null
null
tests/contrib_django/test_types.py
jhgg/graphene
67904e8329de3d69fec8c82ba8c3b4fe598afa8e
[ "MIT" ]
null
null
null
from py.test import raises from collections import namedtuple from pytest import raises from graphene.core.fields import ( Field, StringField, ) from graphql.core.type import ( GraphQLObjectType, GraphQLInterfaceType ) from graphene import Schema from graphene.contrib.django.types import ( DjangoNo...
24.855263
77
0.71784
4efb4b2a7ac038314937ca7c665e30ce81a582c4
357
py
Python
script_runner/main.py
lab-grid/script-runner
69bf681e9af3fb9300ee1b77290ffd06a09a1a70
[ "MIT" ]
4
2021-06-30T18:00:36.000Z
2022-01-25T21:03:34.000Z
script_runner/main.py
lab-grid/script-runner
69bf681e9af3fb9300ee1b77290ffd06a09a1a70
[ "MIT" ]
14
2021-04-26T09:48:37.000Z
2022-03-31T06:10:10.000Z
script_runner/main.py
lab-grid/script-runner
69bf681e9af3fb9300ee1b77290ffd06a09a1a70
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Sets up a flask-restx server for running the swabseq analysis R-script.""" from script_runner.server import app, api from script_runner.api.script import api as script from script_runner.api.health import api as server_health api.add_namespace(script) api.add_namespace(server_health) if _...
22.3125
77
0.773109
4efd455047eddeff32bc2a390297c2913a743fde
51
py
Python
lib/m3u8/iso8601/__init__.py
arantius/tvheadend-locast
c34d76e663373693994be0b38ded22e51ea2a683
[ "MIT" ]
259
2020-03-25T15:49:02.000Z
2022-03-21T03:39:23.000Z
lib/m3u8/iso8601/__init__.py
arantius/tvheadend-locast
c34d76e663373693994be0b38ded22e51ea2a683
[ "MIT" ]
226
2020-04-13T19:35:06.000Z
2022-03-06T00:21:54.000Z
lib/m3u8/iso8601/__init__.py
arantius/tvheadend-locast
c34d76e663373693994be0b38ded22e51ea2a683
[ "MIT" ]
71
2020-03-25T15:49:06.000Z
2021-09-02T22:57:41.000Z
# pylama:ignore=W0401,W0611 from .iso8601 import *
17
27
0.764706
4efd82d7035e7bb99b1ee82af5fcb6a562111dd9
10,225
py
Python
landia/runner.py
pistarlab/simpleland
e1d5f65ef6ffaf9e32536d46aa3a2526d3b57801
[ "MIT" ]
4
2021-08-19T21:41:34.000Z
2022-02-03T00:44:43.000Z
landia/runner.py
pistarlab/simpleland
e1d5f65ef6ffaf9e32536d46aa3a2526d3b57801
[ "MIT" ]
null
null
null
landia/runner.py
pistarlab/simpleland
e1d5f65ef6ffaf9e32536d46aa3a2526d3b57801
[ "MIT" ]
null
null
null
import argparse import json import logging import threading from pyinstrument import Profiler from landia.client import GameClient from landia.config import GameDef, PlayerDefinition, ServerConfig from landia.content import Content from landia.common import StateDecoder, StateEncoder from landia.registry import lo...
36.3879
203
0.696235
4eff13c2701b38fb56a685cebe6a17525d5923cc
3,734
py
Python
ships.py
prime-ffxiv/primebot
7f30815d06f69bc0f61aeff6dd3a0a19f4002657
[ "MIT" ]
null
null
null
ships.py
prime-ffxiv/primebot
7f30815d06f69bc0f61aeff6dd3a0a19f4002657
[ "MIT" ]
10
2021-07-13T03:39:52.000Z
2021-07-14T05:47:20.000Z
ships.py
prime-ffxiv/primebot
7f30815d06f69bc0f61aeff6dd3a0a19f4002657
[ "MIT" ]
1
2021-07-13T03:24:15.000Z
2021-07-13T03:24:15.000Z
import io import datetime
39.723404
103
0.594537
4eff140b6ab6cbf7d2f94869396489708d4d2a0a
10,735
py
Python
preql/core/pql_types.py
otherJL0/Preql
958a8dfd3a040f9c40fa394a8bfc3295f32a3019
[ "MIT" ]
null
null
null
preql/core/pql_types.py
otherJL0/Preql
958a8dfd3a040f9c40fa394a8bfc3295f32a3019
[ "MIT" ]
null
null
null
preql/core/pql_types.py
otherJL0/Preql
958a8dfd3a040f9c40fa394a8bfc3295f32a3019
[ "MIT" ]
null
null
null
from collections import defaultdict, deque from contextlib import suppress from dataclasses import field from datetime import datetime from decimal import Decimal from typing import Union import arrow import runtype from runtype.typesystem import TypeSystem from preql.utils import dataclass from .base import Object ...
24.453303
98
0.604844
4eff47851c2ce7c0c90b9adfdf5d2fd11cd451cc
947
py
Python
setup.py
MichaelPHartmann/iexfinance-py
9d91002a45747a78d47d3ff364d9ebf0f11a6fba
[ "Apache-2.0" ]
null
null
null
setup.py
MichaelPHartmann/iexfinance-py
9d91002a45747a78d47d3ff364d9ebf0f11a6fba
[ "Apache-2.0" ]
null
null
null
setup.py
MichaelPHartmann/iexfinance-py
9d91002a45747a78d47d3ff364d9ebf0f11a6fba
[ "Apache-2.0" ]
null
null
null
""" Version naming has been simplified in 2.0 going forward. Production releases will be MAJOR.MINOR format. Increments to major are reserved for significant updates. Increments to minor are available for all new versions Test releases are MAJOR.MINOR.PATCH format. """ import setuptools with open("README.md", "r") as...
31.566667
79
0.706441
4effb7076f666229edebecf4f4a1d44bb431565e
2,966
py
Python
pipeline/playground/kafkaStreamToSpark.py
shawntsai/insight-project
67b7ad25c51b0065f958ee499653c91213263cfc
[ "MIT" ]
3
2018-02-12T02:48:12.000Z
2018-08-01T10:17:09.000Z
pipeline/playground/kafkaStreamToSpark.py
shawntsai/insight-project
67b7ad25c51b0065f958ee499653c91213263cfc
[ "MIT" ]
null
null
null
pipeline/playground/kafkaStreamToSpark.py
shawntsai/insight-project
67b7ad25c51b0065f958ee499653c91213263cfc
[ "MIT" ]
1
2018-04-07T06:34:53.000Z
2018-04-07T06:34:53.000Z
from pyspark import SparkConf, SparkContext from pyspark.sql import Row from pyspark.sql import SparkSession from pyspark.streaming import StreamingContext from pyspark.streaming.kafka import KafkaUtils import json import sys import rethinkdb as r from generate_simulate_data import get_attributes_summary from generat...
30.265306
114
0.68004
f600cdcf17d55dccc4d9b7062301ef2ddc2aa1fc
1,464
py
Python
julius/voice/say.py
jane-olszewska/julius
94ac7d099042c8f7dec001fe0a3b384d0c7b7710
[ "MIT" ]
null
null
null
julius/voice/say.py
jane-olszewska/julius
94ac7d099042c8f7dec001fe0a3b384d0c7b7710
[ "MIT" ]
7
2018-02-03T15:37:23.000Z
2018-02-05T23:47:17.000Z
julius/voice/say.py
jane-olszewska/julius
94ac7d099042c8f7dec001fe0a3b384d0c7b7710
[ "MIT" ]
null
null
null
import subprocess import itertools def dictate(parts): """Converts `parts` to valid input for mac os 'say' util.""" # todo: could feed it phrases one by one, to allow the user to pause input_string = " ".join(parts) subprocess.run(['say', '-v', 'Daniel'], stdout=subprocess.PIPE, ...
30.5
79
0.57582
f60131cef6ab000250afbde867534f21183ca0ab
1,964
py
Python
pymic/util/preprocess.py
HiLab-git/PyMIC
abf5c43de43668b85f4c049c95a8f1b7cf1d9f16
[ "Apache-2.0" ]
147
2019-12-23T02:52:04.000Z
2022-03-06T16:30:43.000Z
pymic/util/preprocess.py
HiLab-git/PyMIC
abf5c43de43668b85f4c049c95a8f1b7cf1d9f16
[ "Apache-2.0" ]
4
2020-12-18T12:47:21.000Z
2021-05-21T02:18:01.000Z
pymic/util/preprocess.py
HiLab-git/PyMIC
abf5c43de43668b85f4c049c95a8f1b7cf1d9f16
[ "Apache-2.0" ]
32
2020-01-08T13:48:50.000Z
2022-03-12T06:31:13.000Z
import os import numpy as np import SimpleITK as sitk from pymic.io.image_read_write import load_image_as_nd_array from pymic.transform.trans_dict import TransformDict from pymic.util.parse_config import parse_config def preprocess_with_transform(transforms, img_in_name, img_out_name, lab_in_name = None, lab_ou...
37.056604
74
0.708248
f601696eb01af41cfb6bfff7cab1149a7ddd141f
1,433
py
Python
universum/analyzers/pylint.py
o-andrieiev/Universum
71c9494f59dbac58a378d29eb31f8724964c8067
[ "BSD-2-Clause" ]
21
2019-01-07T03:59:54.000Z
2021-12-13T10:51:54.000Z
universum/analyzers/pylint.py
o-andrieiev/Universum
71c9494f59dbac58a378d29eb31f8724964c8067
[ "BSD-2-Clause" ]
407
2019-01-29T11:50:29.000Z
2022-03-24T15:09:20.000Z
universum/analyzers/pylint.py
o-andrieiev/Universum
71c9494f59dbac58a378d29eb31f8724964c8067
[ "BSD-2-Clause" ]
14
2019-01-08T07:37:13.000Z
2022-02-03T17:00:19.000Z
import argparse import json from typing import List from . import utils if __name__ == "__main__": main() # pylint: disable=no-value-for-parameter # see https://github.com/PyCQA/pylint/issues/259
33.325581
102
0.667132
f60211b49b4a0be6744888f8409578cc9d61668a
5,485
py
Python
fn_jira/fn_jira/components/jira_common.py
rudimeyer/resilient-community-apps
7a46841ba41fa7a1c421d4b392b0a3ca9e36bd00
[ "MIT" ]
1
2020-08-25T03:43:07.000Z
2020-08-25T03:43:07.000Z
fn_jira/fn_jira/components/jira_common.py
rudimeyer/resilient-community-apps
7a46841ba41fa7a1c421d4b392b0a3ca9e36bd00
[ "MIT" ]
1
2019-07-08T16:57:48.000Z
2019-07-08T16:57:48.000Z
fn_jira/fn_jira/components/jira_common.py
rudimeyer/resilient-community-apps
7a46841ba41fa7a1c421d4b392b0a3ca9e36bd00
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # pragma pylint: disable=unused-argument, no-self-use # (c) Copyright IBM Corp. 2010, 2019. All Rights Reserved. """ These are methods for accessing Jira. The Jira REST API is used for general access. Requirements: JIRA URL and basic authentication user/password """ import json import fn_jira....
30.642458
122
0.561531
f6022a0f42919a97b2c08beb7389dd3673ae9256
224
py
Python
CSCI-104/homework-resources/hw1-test/q6_input/generate_input.py
liyang990803/CSCI-103
6f84fbc242be90f7a9c3a58bdcc6f54352e4ae5a
[ "MIT" ]
null
null
null
CSCI-104/homework-resources/hw1-test/q6_input/generate_input.py
liyang990803/CSCI-103
6f84fbc242be90f7a9c3a58bdcc6f54352e4ae5a
[ "MIT" ]
null
null
null
CSCI-104/homework-resources/hw1-test/q6_input/generate_input.py
liyang990803/CSCI-103
6f84fbc242be90f7a9c3a58bdcc6f54352e4ae5a
[ "MIT" ]
1
2018-03-23T04:19:24.000Z
2018-03-23T04:19:24.000Z
import random print 10000 random.seed(a=None) for i in xrange(0,10000): length = random.randint(5,20) string = "" for j in xrange(0, length): x = random.randint(ord('a'), ord('z')) string += chr(x) print string
16
40
0.647321
f6036eaf498e2f4f6785b62692e626d23ee553a9
1,075
py
Python
indy_common/test/auth/multi_sig/test_auth_multi_sig_for_1_owner.py
NeolithEra/indy-node
c1f5ee8643a19d84b06cbb16347df845fa60bdb0
[ "Apache-2.0" ]
null
null
null
indy_common/test/auth/multi_sig/test_auth_multi_sig_for_1_owner.py
NeolithEra/indy-node
c1f5ee8643a19d84b06cbb16347df845fa60bdb0
[ "Apache-2.0" ]
1
2019-02-07T18:11:15.000Z
2019-02-07T18:14:06.000Z
indy_common/test/auth/multi_sig/test_auth_multi_sig_for_1_owner.py
NeolithEra/indy-node
c1f5ee8643a19d84b06cbb16347df845fa60bdb0
[ "Apache-2.0" ]
null
null
null
import pytest from indy_common.authorize.auth_constraints import AuthConstraint, IDENTITY_OWNER
38.392857
113
0.713488
f6038da625ddb01ad152e78f66d06a5031c2352f
660
py
Python
core/management/commands/wait_for_db.py
mrdvince/dgenie
0a901409a9c547d27212e330ad4fce31dc24de83
[ "Apache-2.0" ]
null
null
null
core/management/commands/wait_for_db.py
mrdvince/dgenie
0a901409a9c547d27212e330ad4fce31dc24de83
[ "Apache-2.0" ]
null
null
null
core/management/commands/wait_for_db.py
mrdvince/dgenie
0a901409a9c547d27212e330ad4fce31dc24de83
[ "Apache-2.0" ]
null
null
null
import time from typing import Any from django.core.management import BaseCommand from django.db import connections from django.db.utils import OperationalError
28.695652
83
0.648485
f603fa533fa7372d6f36ecb1fb1141ca4cbdca2b
53
py
Python
code/answer_4-2-5.py
KoyanagiHitoshi/AtCoder-Python-Introduction
6d014e333a873f545b4d32d438e57cf428b10b96
[ "MIT" ]
1
2022-03-29T13:50:12.000Z
2022-03-29T13:50:12.000Z
code/answer_4-2-5.py
KoyanagiHitoshi/AtCoder-Python-Introduction
6d014e333a873f545b4d32d438e57cf428b10b96
[ "MIT" ]
null
null
null
code/answer_4-2-5.py
KoyanagiHitoshi/AtCoder-Python-Introduction
6d014e333a873f545b4d32d438e57cf428b10b96
[ "MIT" ]
null
null
null
S = input() print(S+"s" if S[-1] != "s" else S+"es")
17.666667
40
0.471698
f6041d5b00d1215a7acd7846896aee7bd7b4137c
8,905
py
Python
park/param.py
emperorlu/park
ccbb09dca65cdc6ad7c4dd124520c97e78b411ed
[ "MIT" ]
1
2021-09-30T07:09:12.000Z
2021-09-30T07:09:12.000Z
park/param.py
emperorlu/park
ccbb09dca65cdc6ad7c4dd124520c97e78b411ed
[ "MIT" ]
null
null
null
park/param.py
emperorlu/park
ccbb09dca65cdc6ad7c4dd124520c97e78b411ed
[ "MIT" ]
null
null
null
import argparse parser = argparse.ArgumentParser(description='parameters') # -- Basic -- parser.add_argument('--seed', type=int, default=42, help='random seed (default: 42)') parser.add_argument('--eps', type=float, default=1e-6, help='epsilon (default: 1e-6)') parser.add_argum...
55.310559
104
0.640427
f6044ea76ca13f4f72c527f9840f77894b5d9897
693
py
Python
computer-truevalue.py
yjnanan/Model_Free_Prediction
135762a330ce6879973f005f370c886e53491922
[ "Apache-2.0" ]
null
null
null
computer-truevalue.py
yjnanan/Model_Free_Prediction
135762a330ce6879973f005f370c886e53491922
[ "Apache-2.0" ]
null
null
null
computer-truevalue.py
yjnanan/Model_Free_Prediction
135762a330ce6879973f005f370c886e53491922
[ "Apache-2.0" ]
null
null
null
import numpy as np if __name__ =='__main__': #c1 c2 c3 pass pub fb sleep #probability matrix P_matrix=np.mat([[0,0,0,0,0,0,0], [0.5,0,0.5,0,0,0,0], [0,0.5,0,0.5,0,0,0], [0,0,0.5,0,0.5,0,0], [0,0,0,0.5,0,0.5,0], ...
28.875
61
0.464646
f60485e76e2fa9c06d5985218438d81b933efc5e
1,372
py
Python
day01.py
gugeniubi/pythonjoker
1256e03d85706040480f8e14d0fd1b82067db689
[ "Apache-2.0" ]
null
null
null
day01.py
gugeniubi/pythonjoker
1256e03d85706040480f8e14d0fd1b82067db689
[ "Apache-2.0" ]
null
null
null
day01.py
gugeniubi/pythonjoker
1256e03d85706040480f8e14d0fd1b82067db689
[ "Apache-2.0" ]
null
null
null
#1. # C = float (input(':')) # F = (9 /5) * C + 32 # print('%.2f ' %F) #2. #area: radius: volume: length: =3.14 #radius=float(input('')) #length=float(input('')) #area= radius * length * 3.14 #print(' %0.4f' %area) #volume= area * length #print('%0.4f' %volune) #3.feet=float(input(':')) #meters=f...
21.4375
56
0.567784
f6073840233bba54bc871867d9a6348f670aaee9
22,428
py
Python
staticwebsync/__init__.py
staticwebsync/staticwebsync
84c5f39cdd82192e3ed24541f9208be915ffc6df
[ "MIT" ]
null
null
null
staticwebsync/__init__.py
staticwebsync/staticwebsync
84c5f39cdd82192e3ed24541f9208be915ffc6df
[ "MIT" ]
14
2015-12-20T16:10:44.000Z
2016-03-08T18:21:10.000Z
staticwebsync/__init__.py
staticwebsync/staticwebsync
84c5f39cdd82192e3ed24541f9208be915ffc6df
[ "MIT" ]
1
2017-02-19T01:05:40.000Z
2017-02-19T01:05:40.000Z
__all__ = ('log', 'progress_callback_factory', 'progress_callback_divisions', 'BadUserError', 'setup') import binascii import hashlib import mimetypes import mmap import os import posixpath import re import time import boto3 import botocore import termcolor log = lambda msg: None progress_callback_factory = lambda: ...
40.852459
307
0.581951
f607b3974a5c6166e58b2e10c377a1e3e486d89a
363
py
Python
users/models.py
AhteshamSid/Blog-Post-Django
12cfe49f9909b3f35decda396626bcd010fabc74
[ "MIT" ]
null
null
null
users/models.py
AhteshamSid/Blog-Post-Django
12cfe49f9909b3f35decda396626bcd010fabc74
[ "MIT" ]
null
null
null
users/models.py
AhteshamSid/Blog-Post-Django
12cfe49f9909b3f35decda396626bcd010fabc74
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from PIL import Image # Create your models here.
30.25
79
0.732782
f6083403b4085610d0da9b036de730d7e444c995
136
py
Python
examples/hello/input_format_validators/validate.py
Tyilo/problemtools
307bcbf2c90e75db6513ee6e4daa41590d988906
[ "MIT" ]
3
2019-10-22T17:31:19.000Z
2020-07-14T17:33:58.000Z
examples/hello/input_format_validators/validate.py
godmar/problemtools
4e2b2d7797d8f15e5536a9d2b35d251476bef79c
[ "MIT" ]
null
null
null
examples/hello/input_format_validators/validate.py
godmar/problemtools
4e2b2d7797d8f15e5536a9d2b35d251476bef79c
[ "MIT" ]
3
2019-10-22T17:32:01.000Z
2020-02-26T03:43:45.000Z
#!/usr/bin/env python2 from sys import stdin import sys # There shouldn't be any input assert len(stdin.readline()) == 0 sys.exit(42)
15.111111
33
0.720588
f608cd237ad400b7d70ddc6b3272e50852e00f2c
14,393
py
Python
src/dsa/chapter4_exercises.py
AlexMGitHub/DS-A_Python
a4770c95ef2f76917fb1d8bc8c11433828a735a3
[ "MIT" ]
null
null
null
src/dsa/chapter4_exercises.py
AlexMGitHub/DS-A_Python
a4770c95ef2f76917fb1d8bc8c11433828a735a3
[ "MIT" ]
null
null
null
src/dsa/chapter4_exercises.py
AlexMGitHub/DS-A_Python
a4770c95ef2f76917fb1d8bc8c11433828a735a3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Solutions to chapter 4 exercises. ############################################################################### # chapter4_exercises.py # # Revision: 1.00 # Date: 6/27/2021 # Author: Alex # # Purpose: Solutions to chapter 4 exercises from "Data...
33.472093
79
0.595359