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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
443924889fb2bc02902f4276bdfdab0574a5167f | 493 | py | Python | lbry/lbry/wallet/__init__.py | JupyterJones/lbry-sdk | be89436fa869e1b4b9f05c3faa5c126ebcfe6e57 | [
"MIT"
] | null | null | null | lbry/lbry/wallet/__init__.py | JupyterJones/lbry-sdk | be89436fa869e1b4b9f05c3faa5c126ebcfe6e57 | [
"MIT"
] | null | null | null | lbry/lbry/wallet/__init__.py | JupyterJones/lbry-sdk | be89436fa869e1b4b9f05c3faa5c126ebcfe6e57 | [
"MIT"
] | null | null | null | __node_daemon__ = 'lbrycrdd'
__node_cli__ = 'lbrycrd-cli'
__node_bin__ = ''
__node_url__ = (
'https://github.com/lbryio/lbrycrd/releases/download/v0.17.2.1/lbrycrd-linux.zip'
# 'https://github.com/lbryio/lbrycrd/releases/download/v0.17.3.1/lbrycrd-linux-1731.zip'
)
__spvserver__ = 'lbry.wallet.server.coin.LBCRe... | 37.923077 | 92 | 0.78499 |
443a0fbbf12f2c065e3a541ea080bc7fd07fd5a3 | 6,797 | py | Python | logdweb/views.py | hiidef/logdweb | c80d47f4c5759cadeb3088b9f7fa093c30e11696 | [
"MIT"
] | 1 | 2015-08-30T02:36:13.000Z | 2015-08-30T02:36:13.000Z | logdweb/views.py | hiidef/logdweb | c80d47f4c5759cadeb3088b9f7fa093c30e11696 | [
"MIT"
] | null | null | null | logdweb/views.py | hiidef/logdweb | c80d47f4c5759cadeb3088b9f7fa093c30e11696 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""logdweb admin views."""
try:
import simplejson as json
except ImportError:
import json
import time
from django.core.urlresolvers import reverse
from django.http import HttpResponse, Http404, HttpResponseRedirect
from django_jinja2 import render_to_response, ... | 35.586387 | 88 | 0.692364 |
443b502ac58401b00845def4467d9edb1103c525 | 432 | py | Python | iocage/tests/functional_tests/0003_ioc_fetch_test.py | project-fifo/iocage | 1b8669bc2119718dbea8f2707a4eb4c92197c0f0 | [
"BSD-2-Clause"
] | null | null | null | iocage/tests/functional_tests/0003_ioc_fetch_test.py | project-fifo/iocage | 1b8669bc2119718dbea8f2707a4eb4c92197c0f0 | [
"BSD-2-Clause"
] | null | null | null | iocage/tests/functional_tests/0003_ioc_fetch_test.py | project-fifo/iocage | 1b8669bc2119718dbea8f2707a4eb4c92197c0f0 | [
"BSD-2-Clause"
] | 1 | 2022-03-06T10:09:18.000Z | 2022-03-06T10:09:18.000Z | import pytest
from iocage.lib.ioc_fetch import IOCFetch
require_root = pytest.mark.require_root
require_zpool = pytest.mark.require_zpool
| 27 | 76 | 0.731481 |
443b816e6fab5e5910eb3a6e77ce61c180e68e96 | 537 | py | Python | scripts/nightly/settings/stage.py | agrc/deq-enviro | 32cb7afd5e57fc6e2363492c95f042a305e6da3d | [
"MIT"
] | 3 | 2015-12-27T07:28:13.000Z | 2021-08-05T16:55:41.000Z | scripts/nightly/settings/stage.py | agrc/deq-enviro | 32cb7afd5e57fc6e2363492c95f042a305e6da3d | [
"MIT"
] | 133 | 2015-01-01T18:57:03.000Z | 2022-03-25T13:59:53.000Z | scripts/nightly/settings/stage.py | agrc/deq-enviro | 32cb7afd5e57fc6e2363492c95f042a305e6da3d | [
"MIT"
] | 1 | 2017-06-26T16:14:59.000Z | 2017-06-26T16:14:59.000Z | from .dev import *
# overrides for stage environment
mapServiceJson = 'http://localhost:6080/arcgis/rest/services/DEQEnviro/MapService/MapServer?f=json'
securedServiceJson = 'http://localhost:6080/arcgis/rest/services/DEQEnviro/Secure/MapServer?f=json'
webdata = r'C:\inetpub\wwwroot\deqenviro\webdata'
sgid = {'ENVIRON... | 53.7 | 99 | 0.744879 |
443d9413d2bd1afe7dab3a1392c07a5c51c65936 | 4,999 | py | Python | moves/auth.py | iwharris/moves-transponder | df72fd0f6a0dd77997376c2979c5c00edb7c6bab | [
"MIT"
] | null | null | null | moves/auth.py | iwharris/moves-transponder | df72fd0f6a0dd77997376c2979c5c00edb7c6bab | [
"MIT"
] | null | null | null | moves/auth.py | iwharris/moves-transponder | df72fd0f6a0dd77997376c2979c5c00edb7c6bab | [
"MIT"
] | null | null | null | from __future__ import print_function
import requests
import time
import sys
from lxml import html
import urlparse
from util import *
__author__ = 'iwharris'
def request_auth_desktop(base_url, client_id, client_secret, scope, redirect_uri, state=''):
"""Makes an auth request to the Moves API.
scope may be '... | 37.586466 | 161 | 0.656931 |
443e527fc0cc1d91bb3a8b7413b0fe5d01bf9dbe | 1,011 | py | Python | env.py | claywahlstrom/pack | 86b70198a4b185611c2ce3d29df99dd01233a6ac | [
"BSD-2-Clause"
] | 2 | 2019-05-04T09:32:15.000Z | 2021-02-08T08:38:23.000Z | env.py | claywahlstrom/pack | 86b70198a4b185611c2ce3d29df99dd01233a6ac | [
"BSD-2-Clause"
] | null | null | null | env.py | claywahlstrom/pack | 86b70198a4b185611c2ce3d29df99dd01233a6ac | [
"BSD-2-Clause"
] | null | null | null |
"""
Runtime environment settings
"""
import os as _os
import sys as _sys
def is_idle() -> bool:
"""Returns True if the script is running within IDLE, False otherwise"""
return 'idlelib' in _sys.modules
def is_powershell() -> bool:
"""Returns True if the script is running within PowerShell, False otherw... | 26.605263 | 91 | 0.677547 |
443e9ab7bbad66ea70cd4a40efdfc77e47bdb161 | 63 | py | Python | test.py | emmatysinger/test | e1946f46b492370bad07c601c1d12d62043a8461 | [
"MIT"
] | null | null | null | test.py | emmatysinger/test | e1946f46b492370bad07c601c1d12d62043a8461 | [
"MIT"
] | null | null | null | test.py | emmatysinger/test | e1946f46b492370bad07c601c1d12d62043a8461 | [
"MIT"
] | null | null | null | # python file: test.py
print("This is my first python program") | 31.5 | 40 | 0.746032 |
443ec98bcd2dc6957fa92fd540a750b1e3acc89e | 5,907 | py | Python | Code_for_Signal_Processing_test/open_data_FFR_mac_v2.0.1.py | puyaraimondii/biometric-classification-of-frequency-following-responses | f5b5dca516592be451a3133acb8fa178519bc991 | [
"MIT"
] | 1 | 2021-04-20T14:47:40.000Z | 2021-04-20T14:47:40.000Z | Code_for_Signal_Processing_test/open_data_FFR_mac_v2.0.1.py | puyaraimondii/biometric-classification-of-frequency-following-responses | f5b5dca516592be451a3133acb8fa178519bc991 | [
"MIT"
] | null | null | null | Code_for_Signal_Processing_test/open_data_FFR_mac_v2.0.1.py | puyaraimondii/biometric-classification-of-frequency-following-responses | f5b5dca516592be451a3133acb8fa178519bc991 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Jul 22 21:22:58 2018
@author: bruce
"""
import pandas as pd
import os
import numpy as np
from scipy import fftpack
from scipy import signal
import matplotlib.pyplot as plt
pkl_file=pd.read_pickle('/Users/bruce/Documents/uOttawa/Project/audio_brainst... | 23.164706 | 147 | 0.716946 |
443fa32c189f00023a8d9b89e8fc6e723ffab926 | 4,511 | py | Python | mnist_model.py | shudong-zhang/Train-generator | 65688c36ffcaba688e96bf3932db07ab658ea99d | [
"MIT"
] | null | null | null | mnist_model.py | shudong-zhang/Train-generator | 65688c36ffcaba688e96bf3932db07ab658ea99d | [
"MIT"
] | null | null | null | mnist_model.py | shudong-zhang/Train-generator | 65688c36ffcaba688e96bf3932db07ab658ea99d | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
# target1target2 mnists1mnists2 vae
# target1target2
# target1mnist_gputarget2mnist_models/checkpoints/mnist_target_2_best.pth.tar | 33.917293 | 113 | 0.530924 |
444109ce8cf31f72f2c3c1602e9ba493a22264fc | 339 | py | Python | function/news_text.py | zoohee/SqueezeNews | 4f51b307c05259fb567cbe2027fed09a354b4773 | [
"Apache-2.0"
] | null | null | null | function/news_text.py | zoohee/SqueezeNews | 4f51b307c05259fb567cbe2027fed09a354b4773 | [
"Apache-2.0"
] | 7 | 2021-11-01T08:41:33.000Z | 2021-11-06T20:42:41.000Z | function/news_text.py | zoohee/SqueezeNews | 4f51b307c05259fb567cbe2027fed09a354b4773 | [
"Apache-2.0"
] | 3 | 2021-11-01T14:58:55.000Z | 2022-03-21T07:37:05.000Z | import newspaper
from newspaper import Article
# url = 'http://fox13now.com/2013/12/30/new-year-new-laws-obamacare-pot-guns-and-drones/'
| 21.1875 | 89 | 0.631268 |
4442d92247cbfe0d0e84fd864ec88c5b85026c4b | 860 | py | Python | Error_Correction_in_Reads.py | Esprit-Nobel/ROSALIND | ec964f6d9cc5d97339106c89df865fb105251928 | [
"MIT"
] | null | null | null | Error_Correction_in_Reads.py | Esprit-Nobel/ROSALIND | ec964f6d9cc5d97339106c89df865fb105251928 | [
"MIT"
] | null | null | null | Error_Correction_in_Reads.py | Esprit-Nobel/ROSALIND | ec964f6d9cc5d97339106c89df865fb105251928 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Wed Oct 19 18:00:30 2016
@author: yannick
"""
import sys
with open(sys.argv[1], "r") as fichier_lu:
CONTENU = fichier_lu.readlines() [1::2]
CONTENU = [ elt.strip("\n\r\t ") for elt in CONTENU ]
for elta in CONTENU:
REVERSE = [ elta.replace("A... | 22.631579 | 73 | 0.540698 |
4442e1e42c8a05325da84390b0857ac472f29c66 | 561 | py | Python | Swati Singh/week 2_Q.13.py | singhs1234/Python-BootCamp | 6f5ff8f4a4e5b8de32eb6506830f13d6939def1c | [
"MIT"
] | 4 | 2022-03-20T10:59:53.000Z | 2022-03-25T18:28:04.000Z | Swati Singh/week 2_Q.13.py | singhs1234/Python-BootCamp | 6f5ff8f4a4e5b8de32eb6506830f13d6939def1c | [
"MIT"
] | null | null | null | Swati Singh/week 2_Q.13.py | singhs1234/Python-BootCamp | 6f5ff8f4a4e5b8de32eb6506830f13d6939def1c | [
"MIT"
] | 15 | 2022-03-12T11:49:10.000Z | 2022-03-15T06:22:55.000Z | # 13. Accept any city from the user and display monument of that city. City Monument Delhi Red Fort Agra Taj Mahal Jaipur Jal Mahal
city=input("Enter any city (Delhi, Agra, Jaipur, Lucknow, Kanpur) : ")
city=city.lower()
if city=="delhi":
print("Monument: Red Fort")
elif city=="agra":
print("Monument: Taj Mahal... | 35.0625 | 131 | 0.691622 |
4444135fa7d08d614e7f61e0bef051df28da21d9 | 192 | py | Python | tests/_other_module.py | gregie156/rdisq | bed3028997f7f64d956b2731437febfc5f2d0061 | [
"MIT"
] | 1 | 2015-09-08T06:12:14.000Z | 2015-09-08T06:12:14.000Z | tests/_other_module.py | gregie156/rdisq | bed3028997f7f64d956b2731437febfc5f2d0061 | [
"MIT"
] | null | null | null | tests/_other_module.py | gregie156/rdisq | bed3028997f7f64d956b2731437febfc5f2d0061 | [
"MIT"
] | 2 | 2016-12-16T10:17:39.000Z | 2020-06-13T14:37:57.000Z | """To test how auto-detection of handler-class works with classes from other modules"""
from rdisq.request.message import RdisqMessage | 32 | 87 | 0.807292 |
4444f0e3181e23072fbbbadc9683f81ee6d5b50a | 609 | py | Python | libcard2/localization/wave_ja.py | stmkza/arposandra | e76f9886f98b3e5068b5f135be398c9e77bd3b65 | [
"MIT"
] | 12 | 2020-02-01T03:41:17.000Z | 2022-03-02T06:02:36.000Z | libcard2/localization/wave_ja.py | stmkza/arposandra | e76f9886f98b3e5068b5f135be398c9e77bd3b65 | [
"MIT"
] | 6 | 2020-03-15T02:28:52.000Z | 2021-08-31T11:16:00.000Z | libcard2/localization/wave_ja.py | stmkza/arposandra | e76f9886f98b3e5068b5f135be398c9e77bd3b65 | [
"MIT"
] | 3 | 2020-03-19T12:42:00.000Z | 2021-12-28T05:06:02.000Z | from ..wave_cs_enums import WaveType
from ..wave_description_base import WaveMissionDescriber
######################################################
JA = WaveMissionDescriber()
# fmt: off
JA.missions[WaveType.MaxVoltage] = "1$1"
JA.missions[WaveType.UseCardUniq] = "$1"
JA.missions[WaveType.JudgeSuccessPerfect] = "W... | 32.052632 | 66 | 0.729064 |
44454b3951561028466a5296e4c73346be5078a6 | 313 | py | Python | jsonbender/__init__.py | csestelo/jsonbender | 008c570c6bfc217c8b6e488df803340b070f78e5 | [
"MIT"
] | null | null | null | jsonbender/__init__.py | csestelo/jsonbender | 008c570c6bfc217c8b6e488df803340b070f78e5 | [
"MIT"
] | null | null | null | jsonbender/__init__.py | csestelo/jsonbender | 008c570c6bfc217c8b6e488df803340b070f78e5 | [
"MIT"
] | null | null | null | from jsonbender.core import Bender, Context, bend, BendingException
from jsonbender.list_ops import FlatForall, Forall, Filter, Reduce
from jsonbender.string_ops import Format
from jsonbender.selectors import F, K, S, OptionalS
from jsonbender.control_flow import Alternation, If, Switch
__version__ = '0.9.2'
| 31.3 | 67 | 0.814696 |
4446b6d9a76d9e3d9522a1991982c08308682321 | 7,889 | py | Python | myflaskapp/public/views.py | IT-corridor/Parking | 528a7e084cd4a54a80aad33488f9a83f4f07fb59 | [
"BSD-3-Clause"
] | null | null | null | myflaskapp/public/views.py | IT-corridor/Parking | 528a7e084cd4a54a80aad33488f9a83f4f07fb59 | [
"BSD-3-Clause"
] | null | null | null | myflaskapp/public/views.py | IT-corridor/Parking | 528a7e084cd4a54a80aad33488f9a83f4f07fb59 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""Public section, including homepage and signup."""
import datetime
from flask import Blueprint, flash, redirect, render_template, request, url_for, jsonify, session, g, abort
from flask_login import login_required, login_user, logout_user, current_user
from flask_cors import CORS, cross_origin... | 34.600877 | 111 | 0.672962 |
4446c274e989ed70ad29771b455c77fbf8f5c5b0 | 391 | py | Python | mobiles/migrations/0002_alter_product_details_star.py | saikatsingha/flipkart_crawl | dc0c4e82206bb974560d87e5d94ea778d9411a9c | [
"MIT"
] | null | null | null | mobiles/migrations/0002_alter_product_details_star.py | saikatsingha/flipkart_crawl | dc0c4e82206bb974560d87e5d94ea778d9411a9c | [
"MIT"
] | null | null | null | mobiles/migrations/0002_alter_product_details_star.py | saikatsingha/flipkart_crawl | dc0c4e82206bb974560d87e5d94ea778d9411a9c | [
"MIT"
] | null | null | null | # Generated by Django 3.2.6 on 2021-09-08 18:51
from django.db import migrations, models
| 20.578947 | 59 | 0.595908 |
4447cebaca237fce398177fea1226e3ccac3370d | 4,724 | py | Python | handroute-power-stripes/check_sram.py | pohantw/caravel_user_project | 2589b79bf97fd43186bf854ca3aaa60665f573ba | [
"Apache-2.0"
] | 1 | 2021-11-24T12:42:26.000Z | 2021-11-24T12:42:26.000Z | handroute-power-stripes/check_sram.py | pohantw/caravel_user_project | 2589b79bf97fd43186bf854ca3aaa60665f573ba | [
"Apache-2.0"
] | null | null | null | handroute-power-stripes/check_sram.py | pohantw/caravel_user_project | 2589b79bf97fd43186bf854ca3aaa60665f573ba | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
#
# Script to read a GDS file, and replace a single cell structure with a cell of
# the same name from a different GDS file. If a checksum is provided, then
# the cell contents will be checked against the checksum before allowing the
# replacement. The checksum is just the sum of the lengt... | 41.438596 | 120 | 0.563506 |
4449bfa6d89ff2ac50729d1ef0563c812702054a | 527 | py | Python | python/draw_map.py | dickensn/irlome-dev | 40228014e7d82c3f629f5d86d489cf6b888cd089 | [
"MIT"
] | null | null | null | python/draw_map.py | dickensn/irlome-dev | 40228014e7d82c3f629f5d86d489cf6b888cd089 | [
"MIT"
] | 3 | 2018-11-03T16:17:17.000Z | 2018-11-04T04:55:31.000Z | python/draw_map.py | dickensn/irlome-dev | 40228014e7d82c3f629f5d86d489cf6b888cd089 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
''' IRLOME maps
'''
__author__ = "Nick Dickens"
__copyright__ = "Copyright 2018, Nicholas J. Dickens"
__email__ = "dickensn@fau.edu"
__license__ = "MIT"
import matplotlib.pyplot as plt
import mplleaflet
points = []
with open("../web/data/user_data.csv") as in_fh:
for line in in_fh:
line ... | 20.269231 | 53 | 0.673624 |
444b2e2c7f0f65d0b5f7ba6fdf7f0ecfc97f4d1c | 118 | py | Python | backend/users/admin.py | rabbilyasar/photo-app | a479eb1d9aed5f2b0c6a8bff182fc754e094ef85 | [
"MIT"
] | null | null | null | backend/users/admin.py | rabbilyasar/photo-app | a479eb1d9aed5f2b0c6a8bff182fc754e094ef85 | [
"MIT"
] | null | null | null | backend/users/admin.py | rabbilyasar/photo-app | a479eb1d9aed5f2b0c6a8bff182fc754e094ef85 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.contrib.auth import get_user_model
admin.site.register(get_user_model()) | 29.5 | 46 | 0.847458 |
444ba1502ff8f9ffdc326e213b915090ee1da1e9 | 188 | py | Python | factorial.py | ncooper76/Python-Scripts | e0197a8d613b761c123677699be974a7aec08c97 | [
"MIT"
] | null | null | null | factorial.py | ncooper76/Python-Scripts | e0197a8d613b761c123677699be974a7aec08c97 | [
"MIT"
] | null | null | null | factorial.py | ncooper76/Python-Scripts | e0197a8d613b761c123677699be974a7aec08c97 | [
"MIT"
] | null | null | null | #Calculates the factorial of x, so 5! = 1*2*3*4*5 = 120
| 20.888889 | 56 | 0.510638 |
444cbbd79867b31c9d614358ce159cbee2d40095 | 269 | py | Python | ex15.py | phyuthinzarmg/python-exercises | cfa907dd45623c1c58b96f3588af04e1e7b452ff | [
"MIT"
] | null | null | null | ex15.py | phyuthinzarmg/python-exercises | cfa907dd45623c1c58b96f3588af04e1e7b452ff | [
"MIT"
] | null | null | null | ex15.py | phyuthinzarmg/python-exercises | cfa907dd45623c1c58b96f3588af04e1e7b452ff | [
"MIT"
] | null | null | null | from sys import argv
2
3 script, filename = argv
4
5 txt = open(filename)
6
7 print(f"Here's your file {filename}:")
8 print(txt.read())
9
10 print("Type the filename again:")
11 file_again = input("> ")
12
13 txt_again = open(file_again)
14
15 print(txt_again.read())
| 16.8125 | 40 | 0.70632 |
444e14447cb4f0e4bc8141a034007957513313e9 | 6,787 | py | Python | pickle_mom_seeding.py | garudlab/mother_infant | 98a27c83bf5ece9497d5a030c6c9396a8c514781 | [
"BSD-2-Clause"
] | null | null | null | pickle_mom_seeding.py | garudlab/mother_infant | 98a27c83bf5ece9497d5a030c6c9396a8c514781 | [
"BSD-2-Clause"
] | null | null | null | pickle_mom_seeding.py | garudlab/mother_infant | 98a27c83bf5ece9497d5a030c6c9396a8c514781 | [
"BSD-2-Clause"
] | null | null | null | # Question: are sweeping alleles in infants present in mom?
# Idea: store data on allele frequency in mom for each sweeping allele in infant
from utils import sample_utils as su, parse_midas_data, substitution_rates_utils, config, temporal_changes_utils, snps_utils, core_gene_utils, gene_diversity_utils
import numpy a... | 34.984536 | 163 | 0.731104 |
444ffd5c03aa03460e6f6f58b1c0373b3a4eb52f | 2,132 | py | Python | easy_mindoc/easy_mindoc.py | zsb514/easy_mindoc | 326d926af8025ebcd69097028c2684c47d99f900 | [
"WTFPL"
] | null | null | null | easy_mindoc/easy_mindoc.py | zsb514/easy_mindoc | 326d926af8025ebcd69097028c2684c47d99f900 | [
"WTFPL"
] | null | null | null | easy_mindoc/easy_mindoc.py | zsb514/easy_mindoc | 326d926af8025ebcd69097028c2684c47d99f900 | [
"WTFPL"
] | null | null | null | from mindoc import MinDoc
from markdown import Markdown
from easy_mindoc import load_cfg, write_config
import sys, getopt, os
import typer
app = typer.Typer()
''
os.getcwd()
def main():
app()
if __name__ == "__main__":
main()
'''
def main():
argv = sys.argv[1:]
inputfile = ''
user = lo... | 22.924731 | 84 | 0.566604 |
44501000b3734b479464d60d1f33e27a81e07057 | 821 | py | Python | recipes/Python/531821_Error_logging_context_manager/recipe-531821.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/531821_Error_logging_context_manager/recipe-531821.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/531821_Error_logging_context_manager/recipe-531821.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | from __future__ import with_statement
from contextlib import contextmanager
from functools import wraps
import logging
def trap_errors(f):
''' A decorator to trap and log exceptions '''
return wrapper
| 26.483871 | 69 | 0.624848 |
445010b448f3c8808d15429f677ead36a271dff0 | 2,850 | py | Python | shardDesigner/shardTemplateDir/shardNodeDir/starterFlask.py | vinci-project/rootShard | 2f6633c7fb1c1b690c0a38ffbb16af0b50d532bb | [
"MIT"
] | null | null | null | shardDesigner/shardTemplateDir/shardNodeDir/starterFlask.py | vinci-project/rootShard | 2f6633c7fb1c1b690c0a38ffbb16af0b50d532bb | [
"MIT"
] | 7 | 2020-03-02T11:23:41.000Z | 2022-03-11T23:52:51.000Z | shardDesigner/shardTemplateDir/shardNodeDir/starterFlask.py | vinci-project/rootShard | 2f6633c7fb1c1b690c0a38ffbb16af0b50d532bb | [
"MIT"
] | null | null | null | import sys, os
import json
import redis
import shutil
from crypto.vncCrypto import VncCrypto
from crypto.cryptoFernet import cryptoFernet
from datetime import datetime, date, time
from random import randint
import psutil
import uuid
from werkzeug.utils import secure_filename
import webbrowser
#=====================... | 29.6875 | 134 | 0.570526 |
445059d8b1c766c83467bf2bfc61d8690f94ea35 | 86 | py | Python | tyadmin_api_cli/adapters/__init__.py | a24zlab/django-antd-tyadmin | 49797ecbb477b00fc934b774fbc33a4dc23f9d80 | [
"MIT"
] | 308 | 2021-02-04T08:18:13.000Z | 2022-03-30T10:38:30.000Z | tyadmin_api_cli/adapters/__init__.py | a24zlab/django-antd-tyadmin | 49797ecbb477b00fc934b774fbc33a4dc23f9d80 | [
"MIT"
] | 23 | 2021-02-02T08:29:02.000Z | 2022-03-08T13:14:55.000Z | tyadmin_api_cli/adapters/__init__.py | a24zlab/django-antd-tyadmin | 49797ecbb477b00fc934b774fbc33a4dc23f9d80 | [
"MIT"
] | 90 | 2021-02-03T08:03:17.000Z | 2022-03-31T19:03:02.000Z | ADAPTER_DICT = {
'django_celery_beat': {
'PeriodicTask': ['task']
}
}
| 14.333333 | 32 | 0.534884 |
44505ee5565c15ff2332d974385cc5824f0522fa | 1,004 | py | Python | escolaridade/tests.py | Bleno/sisgestor-django | c35f76eafc3e51afb99c84245e01881cef43aa5b | [
"MIT"
] | 1 | 2017-04-27T19:26:49.000Z | 2017-04-27T19:26:49.000Z | escolaridade/tests.py | Bleno/sisgestor-django | c35f76eafc3e51afb99c84245e01881cef43aa5b | [
"MIT"
] | null | null | null | escolaridade/tests.py | Bleno/sisgestor-django | c35f76eafc3e51afb99c84245e01881cef43aa5b | [
"MIT"
] | null | null | null | from django.test import TestCase
from django.test import Client
from .models import Escolaridade
| 32.387097 | 73 | 0.692231 |
4450c03b84b4b673f18bc1860ea01b76a4f2ec4d | 4,799 | py | Python | python_ws/src/sim/src/aruco_front.py | boris-gu/drone-api | fd90f226bf83c79eb7c31b69b9141474017160a3 | [
"BSD-3-Clause"
] | null | null | null | python_ws/src/sim/src/aruco_front.py | boris-gu/drone-api | fd90f226bf83c79eb7c31b69b9141474017160a3 | [
"BSD-3-Clause"
] | null | null | null | python_ws/src/sim/src/aruco_front.py | boris-gu/drone-api | fd90f226bf83c79eb7c31b69b9141474017160a3 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# =====================
#
# =====================
import numpy as np
import rospy
import cv2
import cv2.aruco as aruco
from sensor_msgs.msg import Image
from cv_bridge import CvBridge
from aruco_calibration import Calibration as clb
from drone_api import *
from math import pi, sqrt, sin, co... | 40.669492 | 95 | 0.549489 |
44521e90db92fc5a401f00f8e02d47faa82b474b | 288 | py | Python | Testing.py | thetensor-space/SageTensorSpace | 5fb48dbfa03fa89c9f714643e1e5d9ba60e98176 | [
"MIT"
] | null | null | null | Testing.py | thetensor-space/SageTensorSpace | 5fb48dbfa03fa89c9f714643e1e5d9ba60e98176 | [
"MIT"
] | null | null | null | Testing.py | thetensor-space/SageTensorSpace | 5fb48dbfa03fa89c9f714643e1e5d9ba60e98176 | [
"MIT"
] | null | null | null | import SageTensorSpace as TS
MS = MatrixSpace(GF(7), 5, 6)
M = MS.random_element()
t = TS.TensorFromMatrices([M], 2, 1)
# Testing a property
U = VectorSpace(GF(7), 5)
V = VectorSpace(GF(7), 6)
assert all(M[i][j] == t((U.basis()[i], V.basis()[j]))[0] for i in range(5) for j in range(6))
| 28.8 | 93 | 0.638889 |
4452b02d3ec66c4927bb44a51aa1b641b11fd632 | 3,933 | py | Python | Pipelines/Torch/Data/mnist.py | AkibMashrur/Research | a981e3410917216e03e09431c837607543905d83 | [
"Apache-2.0"
] | null | null | null | Pipelines/Torch/Data/mnist.py | AkibMashrur/Research | a981e3410917216e03e09431c837607543905d83 | [
"Apache-2.0"
] | null | null | null | Pipelines/Torch/Data/mnist.py | AkibMashrur/Research | a981e3410917216e03e09431c837607543905d83 | [
"Apache-2.0"
] | null | null | null | # Reference: https://stackoverflow.com/questions/40427435/extract-images-from-idx3-ubyte-file-or-gzip-via-python
# Based on answer by UdaraWanasinghe
import os
import gzip
import numpy as np
import torch
import torch.nn.functional as F
home_dir = os.path.expanduser('~')
parent_dir = "Datasets/Images/MNIST/"
i... | 37.817308 | 112 | 0.637935 |
4452eed1643b0ab8c55a85a0007be4f6da57ef15 | 7,968 | py | Python | resources/rest-service/cloudify/migrations/versions/b92770a7b6ca_5_3_to_6_0.py | ilan-WS/cloudify-manager | 510d8a277c848db351f38fc5b264806b2cb36d0b | [
"Apache-2.0"
] | 124 | 2015-01-22T22:28:37.000Z | 2022-02-26T23:12:06.000Z | resources/rest-service/cloudify/migrations/versions/b92770a7b6ca_5_3_to_6_0.py | cloudify-cosmo/cloudify-manager | 4a3f44ceb49d449bc5ebc8766b1c7b9c174ff972 | [
"Apache-2.0"
] | 345 | 2015-01-08T15:49:40.000Z | 2022-03-29T08:33:00.000Z | resources/rest-service/cloudify/migrations/versions/b92770a7b6ca_5_3_to_6_0.py | ilan-WS/cloudify-manager | 510d8a277c848db351f38fc5b264806b2cb36d0b | [
"Apache-2.0"
] | 77 | 2015-01-07T14:04:35.000Z | 2022-03-07T22:46:00.000Z | """5_3 to 6_0
Revision ID: b92770a7b6ca
Revises: 396303c07e35
Create Date: 2021-04-12 09:33:44.399254
"""
from alembic import op
import sqlalchemy as sa
from manager_rest.storage import models
# revision identifiers, used by Alembic.
revision = 'b92770a7b6ca'
down_revision = '396303c07e35'
branch_labels = None
depe... | 25.538462 | 74 | 0.633032 |
4453f380fc213caa0d80109b5bcb911e30dcaa44 | 233 | py | Python | django_iris/validation.py | nickmitchko/django-iris | 2eb59553e554ad022b96bd37921f7f35bbb64e38 | [
"MIT"
] | 2 | 2022-02-23T12:46:23.000Z | 2022-02-27T22:14:36.000Z | django_iris/validation.py | nickmitchko/django-iris | 2eb59553e554ad022b96bd37921f7f35bbb64e38 | [
"MIT"
] | 3 | 2022-03-19T02:04:51.000Z | 2022-03-19T19:15:55.000Z | django_iris/validation.py | nickmitchko/django-iris | 2eb59553e554ad022b96bd37921f7f35bbb64e38 | [
"MIT"
] | 3 | 2022-02-15T14:08:45.000Z | 2022-03-19T17:05:37.000Z | from django.db.backends.base.validation import BaseDatabaseValidation
| 25.888889 | 69 | 0.712446 |
445428db18a5d529d31ee62c9b30f8bb8c4c0aea | 1,763 | py | Python | Asap-3.8.4/Debug/UnBalance.py | auag92/n2dm | 03403ef8da303b79478580ae76466e374ec9da60 | [
"MIT"
] | 1 | 2021-10-19T11:35:34.000Z | 2021-10-19T11:35:34.000Z | Asap-3.8.4/Debug/UnBalance.py | auag92/n2dm | 03403ef8da303b79478580ae76466e374ec9da60 | [
"MIT"
] | null | null | null | Asap-3.8.4/Debug/UnBalance.py | auag92/n2dm | 03403ef8da303b79478580ae76466e374ec9da60 | [
"MIT"
] | 3 | 2016-07-18T19:22:48.000Z | 2021-07-06T03:06:42.000Z | #PBS -N UnBalance
#PBS -m ae
#PBS -q long
#PBS -l nodes=1:opteron:ppn=2
"""Test handling of extreme load-unbalancing."""
from asap3 import *
from asap3.md import MDLogger
from ase.lattice.cubic import FaceCenteredCubic
import numpy as np
from asap3.mpi import world
#DebugOutput("UnBalance.%d.out")
#set_verbose(1)
pr... | 24.486111 | 81 | 0.618264 |
44546d7a23a84bcd8913fc44866867d90b0aa3bc | 2,721 | py | Python | Notatki/1_Podstawy/3_Funkcje/2_Argumenty.py | bzglinicki/Programowanie-I-R | 02a63a44bb9eeea2aa7dbbb0ec18c0462d692ef0 | [
"MIT"
] | 2 | 2022-03-01T14:45:01.000Z | 2022-03-19T17:36:07.000Z | Notatki/1_Podstawy/3_Funkcje/2_Argumenty.py | bzglinicki/Programowanie-I-R | 02a63a44bb9eeea2aa7dbbb0ec18c0462d692ef0 | [
"MIT"
] | null | null | null | Notatki/1_Podstawy/3_Funkcje/2_Argumenty.py | bzglinicki/Programowanie-I-R | 02a63a44bb9eeea2aa7dbbb0ec18c0462d692ef0 | [
"MIT"
] | 1 | 2021-03-20T21:01:37.000Z | 2021-03-20T21:01:37.000Z | # Programowanie I R
# Funkcje: argumenty
# Funkcja z trzema argumentami: name, surname, age
# Argumenty pozycyjne **************************************************************
print("Argumenty pozycyjne:\n")
printPersonalData("Jan", "Nowak", 25) # name = "Jan", surname = "Nowak",
print() ... | 27.765306 | 84 | 0.593164 |
445599346e06ef1c078e67979b49a7714f6c5b59 | 541 | py | Python | setup.py | sihrc/vortex | 4b913946c8c1743a5cd7a07b80bc7ab516ce12f2 | [
"MIT"
] | null | null | null | setup.py | sihrc/vortex | 4b913946c8c1743a5cd7a07b80bc7ab516ce12f2 | [
"MIT"
] | 6 | 2018-08-04T21:29:11.000Z | 2021-05-16T05:30:34.000Z | setup.py | sihrc/vortex | 4b913946c8c1743a5cd7a07b80bc7ab516ce12f2 | [
"MIT"
] | 1 | 2019-08-22T11:48:30.000Z | 2019-08-22T11:48:30.000Z | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="vortex-http",
version="0.4.1",
description="aiohttp wrapped web framework",
author="Chris Lee",
author_email="sihrc.c.lee@gmail.com",
packages=find_packages(),
install_requires=[
"aiodns==2.0.0",
... | 23.521739 | 48 | 0.563771 |
44567aa723c7083a702d9f866e897914bb948003 | 47,745 | py | Python | script/FilesFunctions/FilesFunctions.py | totordudu/UTBM_TZ20 | 27e4d3f247a3eba26c1c7c7a21e184917056ac52 | [
"MIT"
] | null | null | null | script/FilesFunctions/FilesFunctions.py | totordudu/UTBM_TZ20 | 27e4d3f247a3eba26c1c7c7a21e184917056ac52 | [
"MIT"
] | null | null | null | script/FilesFunctions/FilesFunctions.py | totordudu/UTBM_TZ20 | 27e4d3f247a3eba26c1c7c7a21e184917056ac52 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
from datetime import datetime, timedelta
import errno
import time
import USBKey
# prefer absolute path over relative ones for parentDir
def listDirectory(parentDir, list_folders, list_files, only_csv):
if only_csv and not list_files:
print("Incoherent parameters")
... | 48.969231 | 230 | 0.489517 |
44585e2e58dd7c6c6dcab8b55ab1edd7e5fa7f24 | 5,835 | py | Python | soil/settings.py | major-hub/soil_app | ddd250161ad496afd4c8484f79500ff2657b51df | [
"MIT"
] | null | null | null | soil/settings.py | major-hub/soil_app | ddd250161ad496afd4c8484f79500ff2657b51df | [
"MIT"
] | null | null | null | soil/settings.py | major-hub/soil_app | ddd250161ad496afd4c8484f79500ff2657b51df | [
"MIT"
] | null | null | null | import os
import sys
from pathlib import Path
from datetime import timedelta
from django.conf import global_settings
from django.utils.translation import gettext_lazy as _
import django.conf.locale
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
sys... | 27.91866 | 107 | 0.671637 |
4458de209412ad014e27667db524e01364c91585 | 1,531 | py | Python | serial_scripts/sriov/test_sriov.py | vkolli/5.0_contrail-test | 1793f169a94100400a1b2fafbad21daf5aa4d48a | [
"Apache-2.0"
] | 1 | 2017-06-13T04:42:34.000Z | 2017-06-13T04:42:34.000Z | serial_scripts/sriov/test_sriov.py | vkolli/contrail-test-perf | db04b8924a2c330baabe3059788b149d957a7d67 | [
"Apache-2.0"
] | 1 | 2021-06-01T22:18:29.000Z | 2021-06-01T22:18:29.000Z | serial_scripts/sriov/test_sriov.py | vkolli/contrail-test-perf | db04b8924a2c330baabe3059788b149d957a7d67 | [
"Apache-2.0"
] | null | null | null | # Need to import path to test/fixtures and test/scripts/
# Ex : export PYTHONPATH='$PATH:/root/test/fixtures/:/root/test/scripts/'
#
# To run tests, you can do 'python -m testtools.run tests'. To run specific tests,
# You can do 'python -m testtools.run -l tests'
# Set the env variable PARAMS_FILE to point to your ini ... | 31.895833 | 104 | 0.704768 |
445a5c1f65437e8b862503db26771c6d527b8a82 | 11,681 | py | Python | fandango/excepts.py | rhomspuron/fandango | 51cc7659dfa7ea8c5890a993bbcc4c2049e45136 | [
"CC-BY-3.0"
] | null | null | null | fandango/excepts.py | rhomspuron/fandango | 51cc7659dfa7ea8c5890a993bbcc4c2049e45136 | [
"CC-BY-3.0"
] | null | null | null | fandango/excepts.py | rhomspuron/fandango | 51cc7659dfa7ea8c5890a993bbcc4c2049e45136 | [
"CC-BY-3.0"
] | null | null | null | from __future__ import with_statement
#!/usr/bin/env python2.5
"""
#############################################################################
##
## file : excepts.py
##
## description : see below
##
## project : Tango Control System
##
## $Author: Sergi Rubio Manrique, srubio@cells.es $
##
## $Revision: 20... | 35.941538 | 158 | 0.605256 |
445ab1c1e4d78b8048df97b2a01122c5b251eb06 | 4,345 | py | Python | Practica4/QuickSort/grafica.py | JosueHernandezR/An-lisis-de-Algoritmos | 9953f2d3fee6b4cfe842fdbbea83b46b62fa123f | [
"MIT"
] | 1 | 2021-09-30T20:05:41.000Z | 2021-09-30T20:05:41.000Z | Practica4/QuickSort/grafica.py | JosueHernandezR/An-lisis-de-Algoritmos | 9953f2d3fee6b4cfe842fdbbea83b46b62fa123f | [
"MIT"
] | null | null | null | Practica4/QuickSort/grafica.py | JosueHernandezR/An-lisis-de-Algoritmos | 9953f2d3fee6b4cfe842fdbbea83b46b62fa123f | [
"MIT"
] | null | null | null | #Anlisis de Algoritmos 3CV2
# Alan Romero Lucero
# Josu David Hernndez Ramrez
# Prctica 4 Divide y vencers
import matplotlib.pyplot as plt
import numpy as np
import gb
"""
Variables globales:
proposed2: Funcin propuesta para el algoritmo Quicktime. Dependiendo
si el usuario elige ordenar el peor de... | 38.451327 | 126 | 0.571231 |
445af064114f9ecae141a654e3f107b836136ba6 | 1,207 | py | Python | vista.py | CristianCala/UIDesignPyQt5 | 6ba68813f86e46a47c4519f83ccbd46b6dd635ff | [
"MIT"
] | null | null | null | vista.py | CristianCala/UIDesignPyQt5 | 6ba68813f86e46a47c4519f83ccbd46b6dd635ff | [
"MIT"
] | null | null | null | vista.py | CristianCala/UIDesignPyQt5 | 6ba68813f86e46a47c4519f83ccbd46b6dd635ff | [
"MIT"
] | null | null | null | estiloFondo = ("QMainWindow{\n"
"background-color: white;}")
estiloFrame = ("QFrame{\n"
"background-image: url(ui.png);}\n")
estiloNombre = ("QLabel{\n"
"color: #E84C70;}\n")
estiloTitulo = ("QLabel{\n"
"color: #2F475E;}\n")
estiloLine = ("QLineEdit {\n"
"color: black;\n"
"background: transpa... | 21.945455 | 47 | 0.610605 |
445b95e70338446bf09b6f119beadcc108bb73c6 | 4,260 | py | Python | simArch/run_nets.py | mfkiwl/uSystolic-Sim | ed03101108d299557ff215239caa1b51783882f6 | [
"MIT"
] | 18 | 2021-04-08T10:35:31.000Z | 2022-03-03T14:29:06.000Z | simArch/run_nets.py | mfkiwl/uSystolic-Sim | ed03101108d299557ff215239caa1b51783882f6 | [
"MIT"
] | 1 | 2021-06-29T10:55:35.000Z | 2021-10-08T21:04:54.000Z | simArch/run_nets.py | mfkiwl/uSystolic-Sim | ed03101108d299557ff215239caa1b51783882f6 | [
"MIT"
] | 4 | 2021-04-08T10:35:32.000Z | 2021-12-11T13:45:24.000Z | import simArch.gemm_trace_wrapper as gemm_trace
| 38.378378 | 110 | 0.480047 |
445d5c9f90f1e235cdc97e3d99dbadddc792e214 | 550 | py | Python | homepage/views.py | c17r/tsace | 59c6e0388429943dc3de879745119f9c94cd9ccc | [
"MIT"
] | null | null | null | homepage/views.py | c17r/tsace | 59c6e0388429943dc3de879745119f9c94cd9ccc | [
"MIT"
] | null | null | null | homepage/views.py | c17r/tsace | 59c6e0388429943dc3de879745119f9c94cd9ccc | [
"MIT"
] | null | null | null | from datetime import datetime, timedelta
from django.shortcuts import render
from django.template import RequestContext
import api
| 22 | 53 | 0.658182 |
445ef4455f305009ac0e1b4aeb8c80e0b3115162 | 20,825 | py | Python | wolfgang_robot/wolfgang_pybullet_sim/src/wolfgang_pybullet_sim/simulation.py | MosHumanoid/bitbots_thmos_meta | f45ccc362dc689b69027be5b0d000d2a08580de4 | [
"MIT"
] | null | null | null | wolfgang_robot/wolfgang_pybullet_sim/src/wolfgang_pybullet_sim/simulation.py | MosHumanoid/bitbots_thmos_meta | f45ccc362dc689b69027be5b0d000d2a08580de4 | [
"MIT"
] | null | null | null | wolfgang_robot/wolfgang_pybullet_sim/src/wolfgang_pybullet_sim/simulation.py | MosHumanoid/bitbots_thmos_meta | f45ccc362dc689b69027be5b0d000d2a08580de4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import math
import sys
import os
import time
import pybullet as p
from time import sleep
import time
import rospy
import tf
from scipy import signal
import pybullet_data
import rospkg
from transforms3d.quaternions import quat2mat
from wolfgang_pybullet_sim.terrain import Terrain
import numpy as... | 47.115385 | 120 | 0.585066 |
4460bbb142aa4c99178afe32a15838a44e96e1f2 | 11,641 | py | Python | dataloader_cifar.py | pizard/DivideMix | 9610201b9eb5dc871a77bf12017c137be291c71c | [
"MIT"
] | null | null | null | dataloader_cifar.py | pizard/DivideMix | 9610201b9eb5dc871a77bf12017c137be291c71c | [
"MIT"
] | null | null | null | dataloader_cifar.py | pizard/DivideMix | 9610201b9eb5dc871a77bf12017c137be291c71c | [
"MIT"
] | null | null | null | from torch.utils.data import Dataset, DataLoader
import torchvision.transforms as transforms
import random
import numpy as np
from PIL import Image
import json
import os
from torchnet.meter import AUCMeter
def uniform_mix_C(mixing_ratio, num_classes):
'''
returns a linear interpolation of a uniform matrix and a... | 44.601533 | 259 | 0.545486 |
4460e4feed0f72a43de6ee2899df2357b585c9b2 | 4,134 | py | Python | tests/render-out/Drawing13.py | debragail/reportlab-mirror | 1e5814e1313ed50d5abb65487b207711cb4f7595 | [
"BSD-3-Clause"
] | 1 | 2020-05-21T23:34:55.000Z | 2020-05-21T23:34:55.000Z | tests/render-out/Drawing13.py | debragail/reportlab-mirror | 1e5814e1313ed50d5abb65487b207711cb4f7595 | [
"BSD-3-Clause"
] | null | null | null | tests/render-out/Drawing13.py | debragail/reportlab-mirror | 1e5814e1313ed50d5abb65487b207711cb4f7595 | [
"BSD-3-Clause"
] | null | null | null | #Autogenerated by ReportLab guiedit do not edit
from reportlab.graphics.shapes import _DrawingEditorMixin, Drawing, Group, Rect, String
from reportlab.lib.colors import Color, CMYKColor, PCMYKColor
if __name__=="__main__": #NORUNTESTS
ExplodedDrawing_Drawing().save(formats=['pdf'],outDir='.',fnRoot=None)
| 142.551724 | 242 | 0.779149 |
4460f4628cd89ed83a3cb70a7461035c26830bb4 | 2,971 | py | Python | rnnparser/RecursiveNN/tests/test_vectorized_variables.py | uphere-co/nlp-prototype | c4623927e5c5c5f9c3e702eb36497ea1d9fd1ff3 | [
"BSD-3-Clause"
] | null | null | null | rnnparser/RecursiveNN/tests/test_vectorized_variables.py | uphere-co/nlp-prototype | c4623927e5c5c5f9c3e702eb36497ea1d9fd1ff3 | [
"BSD-3-Clause"
] | null | null | null | rnnparser/RecursiveNN/tests/test_vectorized_variables.py | uphere-co/nlp-prototype | c4623927e5c5c5f9c3e702eb36497ea1d9fd1ff3 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import numpy as np
import pytest
from vecGraphComp.base import MatrixValues, ValueHolder, Block, NodeType, ExpressionWriter
| 30.947917 | 90 | 0.63211 |
4462a86f114257e11040144f6da38d51df8b1bf2 | 6,421 | py | Python | code/pyorg/scripts/ribo_mt/particles_curator.py | anmartinezs/pyseg_system | 5bb07c7901062452a34b73f376057cabc15a13c3 | [
"Apache-2.0"
] | 12 | 2020-01-08T01:33:02.000Z | 2022-03-16T00:25:34.000Z | code/pyorg/scripts/ribo_mt/particles_curator.py | anmartinezs/pyseg_system | 5bb07c7901062452a34b73f376057cabc15a13c3 | [
"Apache-2.0"
] | 8 | 2019-12-19T19:34:56.000Z | 2022-03-10T10:11:28.000Z | code/pyorg/scripts/ribo_mt/particles_curator.py | anmartinezs/pyseg_system | 5bb07c7901062452a34b73f376057cabc15a13c3 | [
"Apache-2.0"
] | 2 | 2022-03-30T13:12:22.000Z | 2022-03-30T18:12:10.000Z | """
Curates an output STAR file from Relion to work as input for pyseg.pyorg scripts for microtubules
Input: - STAR file with the particles to curate
- STAR file to pair tomograms used for reconstruction with the one segmented used to pick the particles
Output: - A curated output STAR file
... | 35.672222 | 115 | 0.63339 |
4462c41b0b42cc76b2753d10c545dd05d91c8946 | 1,954 | py | Python | tests/test_proprietor_validation.py | LandRegistry/datatypes-alpha | b7ec20c9aec84697aa49aaf6bff52fac3770a942 | [
"MIT"
] | null | null | null | tests/test_proprietor_validation.py | LandRegistry/datatypes-alpha | b7ec20c9aec84697aa49aaf6bff52fac3770a942 | [
"MIT"
] | null | null | null | tests/test_proprietor_validation.py | LandRegistry/datatypes-alpha | b7ec20c9aec84697aa49aaf6bff52fac3770a942 | [
"MIT"
] | 1 | 2021-04-11T06:07:21.000Z | 2021-04-11T06:07:21.000Z | import unittest
from copy import deepcopy
from datatypes.exceptions import DataDoesNotMatchSchemaException
from datatypes import proprietor_validator
from datatypes.core import unicoded
proprietor = unicoded({
"title" : "Mrs",
"full_name": "Bootata Smick",
"decoration": "tidy"
})
proprietor_with_additi... | 39.08 | 149 | 0.754862 |
446311708b993bd3bd09966b836ad93712d7141b | 2,999 | py | Python | neuralknight/tests/test_mock_board_integration.py | grandquista/neuralknight-v1 | f54e8e1ac90019c1a3a84089bac20485e8f626b4 | [
"MIT"
] | null | null | null | neuralknight/tests/test_mock_board_integration.py | grandquista/neuralknight-v1 | f54e8e1ac90019c1a3a84089bac20485e8f626b4 | [
"MIT"
] | 158 | 2018-08-14T17:42:49.000Z | 2021-08-19T13:19:44.000Z | neuralknight/tests/test_mock_board_integration.py | grandquista/neuralknight-v1 | f54e8e1ac90019c1a3a84089bac20485e8f626b4 | [
"MIT"
] | 2 | 2018-04-06T02:40:16.000Z | 2018-04-16T16:13:21.000Z | from ..models.base_agent import BaseAgent
# def test_agent_play_through(testapp):
# player1_moves = [tuple(map(bytes, (
# (12, 6, 2, 10, 4, 2, 6, 12),
# (8, 8, 8, 8, 8, 8, 8, 8),
# (0, 0, 0, 0, 0, 0, 0, 0),
# (0, 0, 0, 0, 0, 0, 0, 0),
# (0, 0, 0, 0, 0, 0, 0, 0),
# ... | 32.247312 | 64 | 0.481827 |
44632699c65d23e5e6c27862e4557240a69f61f0 | 1,888 | py | Python | Selenium-Test/script.py | zeabdelkhalek/TP-IGL-Client | b75904df147fa3905d5e8e1d666ef54e3aefe4a2 | [
"MIT"
] | 1 | 2020-05-11T02:38:22.000Z | 2020-05-11T02:38:22.000Z | Selenium-Test/script.py | AbdelkhalekESI/TP-IGL-Client | b75904df147fa3905d5e8e1d666ef54e3aefe4a2 | [
"MIT"
] | 3 | 2020-07-19T04:53:34.000Z | 2021-05-10T23:00:57.000Z | Selenium-Test/script.py | zeabdelkhalek/TP-IGL-Client | b75904df147fa3905d5e8e1d666ef54e3aefe4a2 | [
"MIT"
] | null | null | null | from selenium import webdriver
import time
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import TimeoutException
options = webdriver.ChromeOptions()
options.add_argument('--disable-web-security')
url='http://127... | 32.551724 | 73 | 0.739407 |
4463d5e39650a4e7422e085de2d3acc28f0ff1e9 | 815 | py | Python | python100days/day09/multi.py | lanSeFangZhou/pythonbase | f4daa373573b2fc0a59a5eb919d02eddf5914e18 | [
"Apache-2.0"
] | null | null | null | python100days/day09/multi.py | lanSeFangZhou/pythonbase | f4daa373573b2fc0a59a5eb919d02eddf5914e18 | [
"Apache-2.0"
] | 1 | 2021-06-02T00:58:26.000Z | 2021-06-02T00:58:26.000Z | python100days/day09/multi.py | lanSeFangZhou/pythonbase | f4daa373573b2fc0a59a5eb919d02eddf5914e18 | [
"Apache-2.0"
] | null | null | null | '''
-
-
'''
#
# class Son(Monk, Father, Musician)
# class Son(Musician, Father, Monk)
son = Son('')
son.gamble()
# Fathereat
son.eat()
son.chant()
son.play_piano() | 18.111111 | 38 | 0.619632 |
446691647b7b65b8fcd033c966f9edcd95dfe8b8 | 907 | py | Python | src/plots/experiments_1.py | ekreutz/bayes-cv-pruning | a82888fcc8771fdf90d51bd6c37c5bc7a449c81a | [
"MIT"
] | null | null | null | src/plots/experiments_1.py | ekreutz/bayes-cv-pruning | a82888fcc8771fdf90d51bd6c37c5bc7a449c81a | [
"MIT"
] | null | null | null | src/plots/experiments_1.py | ekreutz/bayes-cv-pruning | a82888fcc8771fdf90d51bd6c37c5bc7a449c81a | [
"MIT"
] | null | null | null | import os
import pickle
import numpy as np
import matplotlib.font_manager as font_manager
import matplotlib.pyplot as plt
import seaborn as sns
# Plot
sns.set(context="paper", style="whitegrid", font="STIXGeneral", font_scale=1.25)
| 29.258065 | 80 | 0.654906 |
44674ec2d9f2bc00d3172b73a93d3bb416c64936 | 1,661 | py | Python | cyberexperiment/core/models.py | udrems/cyberexperiment | 9ad9c9580cd9dd1c28c0d8e27975f5bca530e101 | [
"MIT"
] | null | null | null | cyberexperiment/core/models.py | udrems/cyberexperiment | 9ad9c9580cd9dd1c28c0d8e27975f5bca530e101 | [
"MIT"
] | 4 | 2021-09-10T16:21:53.000Z | 2021-09-17T18:04:22.000Z | cyberexperiment/core/models.py | udrems/cyberexperiment | 9ad9c9580cd9dd1c28c0d8e27975f5bca530e101 | [
"MIT"
] | 2 | 2021-09-08T07:50:59.000Z | 2021-09-08T16:15:26.000Z | from django.conf import settings
from django.db import models
from django.shortcuts import redirect
# general model
# class Message(TimeStamp):
# sender = models.ManyToManyField(settings.)
| 27.229508 | 110 | 0.713426 |
44677c1268d64c9902a9bcde21123859ab265c49 | 709 | py | Python | quickstart.py | adamstimb/nimbusinator | a7bb7e282b8322c1a97bffc3c40ab0541f746615 | [
"MIT"
] | null | null | null | quickstart.py | adamstimb/nimbusinator | a7bb7e282b8322c1a97bffc3c40ab0541f746615 | [
"MIT"
] | 16 | 2019-11-23T19:08:45.000Z | 2020-03-13T17:13:23.000Z | quickstart.py | adamstimb/nimbusinator | a7bb7e282b8322c1a97bffc3c40ab0541f746615 | [
"MIT"
] | null | null | null | from nimbusinator.nimbus import Nimbus
from nimbusinator.command import Command
if __name__ == '__main__':
# Create and bind nimbusinator objects:
nim = Nimbus(full_screen=True)
cmd = Command(nim)
nim.boot() # Boot the Nimbus
cmd.set_mode(40) # Low resolution mode
cmd.set_border(1)... | 33.761905 | 57 | 0.638928 |
4467af496402d2c4c04283d114962eb0a43111b9 | 264 | py | Python | 03-threads/threads_example.py | LeandroMelloo/programacao_concorrente_assincrona_com_python | 49790de6004d588ccc2a07d1be0c420d6a1e4b7a | [
"Apache-2.0"
] | null | null | null | 03-threads/threads_example.py | LeandroMelloo/programacao_concorrente_assincrona_com_python | 49790de6004d588ccc2a07d1be0c420d6a1e4b7a | [
"Apache-2.0"
] | null | null | null | 03-threads/threads_example.py | LeandroMelloo/programacao_concorrente_assincrona_com_python | 49790de6004d588ccc2a07d1be0c420d6a1e4b7a | [
"Apache-2.0"
] | null | null | null | import threading
th = threading.Thread(target=start_threading, args=(5,))
th.start()
th.join()
| 18.857143 | 56 | 0.689394 |
4469f717f508277478e42eda4cc4da6b53f5509d | 2,386 | py | Python | bench_scenarios/generate_obj_based_scope.py | JanDorniak99/pmemkv-bench | c89cfec5bc12f8a54424572b149e843f9f5a5379 | [
"Apache-2.0"
] | null | null | null | bench_scenarios/generate_obj_based_scope.py | JanDorniak99/pmemkv-bench | c89cfec5bc12f8a54424572b149e843f9f5a5379 | [
"Apache-2.0"
] | null | null | null | bench_scenarios/generate_obj_based_scope.py | JanDorniak99/pmemkv-bench | c89cfec5bc12f8a54424572b149e843f9f5a5379 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
#
# SPDX-License-Identifier: Apache-2.0
# Copyright 2021, Intel Corporation
# This script implements generate() method, which may be invoked by run_benchmark.py directly,
# or used as standalone application, which prints configuration json (also validated against schema)
# to stdout. Such once g... | 29.097561 | 100 | 0.642498 |
446a9b413000d786cd15da4f54dc59cd09eba6bf | 9,450 | py | Python | catan-simulator/src/Api/Catan.py | williamaredal/Catan-Simulator | 27b5fa2bb77554fc5dfc67286899a70d3c41aeb4 | [
"MIT"
] | null | null | null | catan-simulator/src/Api/Catan.py | williamaredal/Catan-Simulator | 27b5fa2bb77554fc5dfc67286899a70d3c41aeb4 | [
"MIT"
] | null | null | null | catan-simulator/src/Api/Catan.py | williamaredal/Catan-Simulator | 27b5fa2bb77554fc5dfc67286899a70d3c41aeb4 | [
"MIT"
] | null | null | null | from collections import Counter
from random import choice
import numpy as np
# Figuring out the roads to victory requiring the minimum number of cards to achieve victory in catan
def VictoryCondition(player, ledger):
requiredScore = ledger.victoryPointCondition
playerScore = int(
(player.villag... | 31.605351 | 153 | 0.610899 |
446aff1f81c23a0f38cd568dd2d43f6846714b6e | 29,745 | py | Python | client_server_test INHERIT/LocalModel.py | hades208002/mdp-project | c242a8d00412cc3772d298986977f6acc47002ee | [
"MIT"
] | null | null | null | client_server_test INHERIT/LocalModel.py | hades208002/mdp-project | c242a8d00412cc3772d298986977f6acc47002ee | [
"MIT"
] | null | null | null | client_server_test INHERIT/LocalModel.py | hades208002/mdp-project | c242a8d00412cc3772d298986977f6acc47002ee | [
"MIT"
] | null | null | null | # Import all the useful libraries
import numpy as np
import pandas as pd
import fancyimpute
from sklearn import model_selection
from sklearn.model_selection import StratifiedKFold
from sklearn.ensemble import AdaBoostClassifier # PROBABILITY
from sklearn.tree import DecisionTreeClassifier # PROBABILITY
from sklearn.... | 59.49 | 605 | 0.755455 |
446b4021141854c01eb8346f6d3902a45b8ff171 | 4,455 | py | Python | get_weibo.py | SUIBE-Blockchain/Data-Crawler-Practice | 46f4b98f05923ab534e28e51456c87efc33dbb8d | [
"Apache-2.0"
] | 1 | 2021-10-05T05:52:39.000Z | 2021-10-05T05:52:39.000Z | get_weibo.py | SUIBE-Blockchain/Data-Crawler-Practice | 46f4b98f05923ab534e28e51456c87efc33dbb8d | [
"Apache-2.0"
] | null | null | null | get_weibo.py | SUIBE-Blockchain/Data-Crawler-Practice | 46f4b98f05923ab534e28e51456c87efc33dbb8d | [
"Apache-2.0"
] | 7 | 2020-08-09T09:52:15.000Z | 2020-08-16T08:04:02.000Z | import sys
from bs4 import BeautifulSoup
import re
import urllib.request, urllib.error
import xlwt # Excel
import time
#
ID = re.compile(r'M_(.*?)')
#ID
findID = re.compile(r'M_(.*?)">')
#
findTitle = re.compile(r'">#(.*?)#</a>|(.*?)')
#
findlink = re.compile(r'<a href=(.*?)>#')
#
findComme... | 28.928571 | 412 | 0.525701 |
446c1a08792230c1d74587f3d323492f2871df02 | 3,273 | py | Python | mouse.py | AlbertMelo/MouseExpressions | 8e2bc36d8378541d512e04b17908bdefac6090e8 | [
"MIT"
] | 3 | 2019-07-22T18:29:10.000Z | 2019-09-11T12:24:05.000Z | mouse.py | AlbertMelo/MouseExpressions | 8e2bc36d8378541d512e04b17908bdefac6090e8 | [
"MIT"
] | 7 | 2019-12-16T22:20:58.000Z | 2022-02-10T00:50:45.000Z | mouse.py | AlbertMelo/MouseExpressions | 8e2bc36d8378541d512e04b17908bdefac6090e8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import pyautogui as pyg
import os
import subprocess
import programa
| 21.966443 | 101 | 0.676749 |
446d377b81da3c67728272ccd4cb25650010c8a7 | 549 | py | Python | unittests/check_external_packages.py | davidharvey1986/rrg | 26b4658f14279af21af1a61d57e9936daf315a71 | [
"MIT"
] | 2 | 2019-11-18T12:51:09.000Z | 2019-12-11T03:13:51.000Z | unittests/check_external_packages.py | davidharvey1986/rrg | 26b4658f14279af21af1a61d57e9936daf315a71 | [
"MIT"
] | 5 | 2017-06-09T10:06:27.000Z | 2019-07-19T11:28:18.000Z | unittests/check_external_packages.py | davidharvey1986/rrg | 26b4658f14279af21af1a61d57e9936daf315a71 | [
"MIT"
] | 2 | 2017-07-19T15:48:33.000Z | 2017-08-09T16:07:20.000Z | import subprocess
| 27.45 | 105 | 0.668488 |
446d5bb17dd8a928ca7451126fb10c9f182c9616 | 6,084 | py | Python | 2020/day16/day16ab.py | jeremy-frank/advent-of-code | 6a9dd284f0e67fea694548f1545402c579ef3f08 | [
"MIT"
] | null | null | null | 2020/day16/day16ab.py | jeremy-frank/advent-of-code | 6a9dd284f0e67fea694548f1545402c579ef3f08 | [
"MIT"
] | null | null | null | 2020/day16/day16ab.py | jeremy-frank/advent-of-code | 6a9dd284f0e67fea694548f1545402c579ef3f08 | [
"MIT"
] | null | null | null | """
day16ab - https://adventofcode.com/2020/day/16
--- Day 16: Ticket Translation ---
* Part 1
Three input files:
the rules for ticket fields
the numbers on your ticket
the numbers on other nearby tickets
The rules for ticket fields specify a list of fields that exist somewhere on the ticket
and the valid r... | 28.971429 | 100 | 0.619001 |
446f6522d2f68fb06ab1adc22f7cb83ad19c1bfc | 712 | py | Python | docs/blog/2017/0610.py | CylonOven/blog | ddc560edb0445f950b39d441b569ef2258abc2d6 | [
"BSD-2-Clause"
] | null | null | null | docs/blog/2017/0610.py | CylonOven/blog | ddc560edb0445f950b39d441b569ef2258abc2d6 | [
"BSD-2-Clause"
] | null | null | null | docs/blog/2017/0610.py | CylonOven/blog | ddc560edb0445f950b39d441b569ef2258abc2d6 | [
"BSD-2-Clause"
] | null | null | null | import random
random.seed("lel")
t = table.gen_matix(10,10)
print(t) | 20.342857 | 66 | 0.463483 |
447050f1592cecfe7f5d28a4335436f9cc0b4d7b | 228 | py | Python | regtests/loop/while_else.py | bpmbank/PythonJS | 591a80afd8233fb715493591db2b68f1748558d9 | [
"BSD-3-Clause"
] | 319 | 2015-01-02T11:34:16.000Z | 2022-03-25T00:43:33.000Z | regtests/loop/while_else.py | bpmbank/PythonJS | 591a80afd8233fb715493591db2b68f1748558d9 | [
"BSD-3-Clause"
] | 10 | 2015-02-03T02:33:09.000Z | 2021-11-09T21:41:00.000Z | regtests/loop/while_else.py | bpmbank/PythonJS | 591a80afd8233fb715493591db2b68f1748558d9 | [
"BSD-3-Clause"
] | 61 | 2015-01-02T12:01:56.000Z | 2021-12-08T07:16:16.000Z | '''
while else loop (DEPRECATED)
'''
| 8.769231 | 28 | 0.517544 |
447144dab05f58bb3666adc6c76ca187a3b6abdf | 2,116 | py | Python | Firefly.py | iglennrogers/swarm_pyside | 8930f668473c5f9b399c29661295be47f31b9164 | [
"BSD-2-Clause"
] | null | null | null | Firefly.py | iglennrogers/swarm_pyside | 8930f668473c5f9b399c29661295be47f31b9164 | [
"BSD-2-Clause"
] | null | null | null | Firefly.py | iglennrogers/swarm_pyside | 8930f668473c5f9b399c29661295be47f31b9164 | [
"BSD-2-Clause"
] | null | null | null | import PySide.QtGui as QtGui
import PySide.QtCore as QtCore
import GravitionalObject as go
| 32.553846 | 112 | 0.557183 |
44721cfa8e5eb18c5d3df0207aabe203967e7af7 | 14,325 | py | Python | translate.py | mursalinkhan0018/python-translation-project | 11a4b333cea3aaee1a90291898c293c7a6f96c45 | [
"CC-BY-4.0"
] | null | null | null | translate.py | mursalinkhan0018/python-translation-project | 11a4b333cea3aaee1a90291898c293c7a6f96c45 | [
"CC-BY-4.0"
] | null | null | null | translate.py | mursalinkhan0018/python-translation-project | 11a4b333cea3aaee1a90291898c293c7a6f96c45 | [
"CC-BY-4.0"
] | null | null | null | #! /usr/bin/env python3
import sys
#1 DONE!!! Passed 9/10
#2 Passed 2/4 All giving protein but not passing
# print ("\n \n Protein String3: ", protein_string3)
#3 DONE Passed All
#4 DONE Passed All
#5 DONE Passed All
#6
def get_longest_peptide(rna_sequence, genetic_code):
"""Get the longest peptide ... | 28.198819 | 787 | 0.530471 |
44738fe37e6ee74c46f89a6a97da23dbbd1f4bcc | 289 | py | Python | utils/parsing.py | Cherimolah/TeaBot | 6c475bc70e2d71b37d613fbd4df16529d4c1d28c | [
"MIT"
] | 2 | 2021-12-26T09:31:15.000Z | 2022-02-15T17:08:19.000Z | utils/parsing.py | Cherimolah/TeaBot | 6c475bc70e2d71b37d613fbd4df16529d4c1d28c | [
"MIT"
] | null | null | null | utils/parsing.py | Cherimolah/TeaBot | 6c475bc70e2d71b37d613fbd4df16529d4c1d28c | [
"MIT"
] | null | null | null | from datetime import datetime, timedelta
from typing import Union
| 20.642857 | 105 | 0.695502 |
4475eccd120177058a082a3f92db22d0104dd277 | 4,226 | py | Python | sasoptpy/abstract/parameter.py | jld23/sasoptpy | f96911f04d6c0c01fce902f1f995935583df69a8 | [
"Apache-2.0"
] | 20 | 2017-12-22T18:29:55.000Z | 2021-09-12T15:04:39.000Z | sasoptpy/abstract/parameter.py | jld23/sasoptpy | f96911f04d6c0c01fce902f1f995935583df69a8 | [
"Apache-2.0"
] | 9 | 2019-01-24T14:52:33.000Z | 2022-03-16T14:14:35.000Z | sasoptpy/abstract/parameter.py | jld23/sasoptpy | f96911f04d6c0c01fce902f1f995935583df69a8 | [
"Apache-2.0"
] | 12 | 2017-12-22T19:37:16.000Z | 2021-07-30T21:04:03.000Z | #!/usr/bin/env python
# encoding: utf-8
#
# Copyright SAS Institute
#
# 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 b... | 27.986755 | 80 | 0.604827 |
447765c57c490141d0b8cee8dfb8c7b014fcc8e9 | 721 | py | Python | truffe2/communication/forms2.py | JonathanCollaud/truffe2 | 5cbb055ac1acf7e7dc697340618fcb56c67fbd91 | [
"BSD-2-Clause"
] | 9 | 2016-09-14T02:19:19.000Z | 2020-10-18T14:52:14.000Z | truffe2/communication/forms2.py | JonathanCollaud/truffe2 | 5cbb055ac1acf7e7dc697340618fcb56c67fbd91 | [
"BSD-2-Clause"
] | 19 | 2016-11-09T21:28:51.000Z | 2021-02-10T22:37:31.000Z | truffe2/communication/forms2.py | JonathanCollaud/truffe2 | 5cbb055ac1acf7e7dc697340618fcb56c67fbd91 | [
"BSD-2-Clause"
] | 13 | 2016-12-31T14:22:09.000Z | 2020-12-27T19:43:19.000Z | from django.forms import ModelForm
from django.utils.safestring import mark_safe
from django.utils.html import escape
from .models import DisplayReservationLine, Display | 40.055556 | 130 | 0.705964 |
447ad10e9234f1a46678ef5e6f05c247b8fa544c | 468 | py | Python | windowsbuild/MSVC2017/python/3.7.7/Scripts/pygmentize-script.py | Tech-XCorp/visit-deps | 23e2bd534bf9c332d6b7d32310495f1f65b1b936 | [
"BSD-3-Clause"
] | null | null | null | windowsbuild/MSVC2017/python/3.7.7/Scripts/pygmentize-script.py | Tech-XCorp/visit-deps | 23e2bd534bf9c332d6b7d32310495f1f65b1b936 | [
"BSD-3-Clause"
] | null | null | null | windowsbuild/MSVC2017/python/3.7.7/Scripts/pygmentize-script.py | Tech-XCorp/visit-deps | 23e2bd534bf9c332d6b7d32310495f1f65b1b936 | [
"BSD-3-Clause"
] | null | null | null | #!C:\A_Visit\ForRegression\visit-deps\windowsbuild\MSVC2017\python\3.7.7\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pygments==2.5.2','console_scripts','pygmentize'
__requires__ = 'pygments==2.5.2'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(... | 36 | 84 | 0.675214 |
447be6e4fc567f716395f5061f29158ceb4b650e | 1,034 | py | Python | day-03/automatic-pizza-order-program.py | swokyisalreadytaken/100-Days-of-Code-in-Python | 269c99a481b94248454114c051fafa8f52697332 | [
"Unlicense"
] | 1 | 2021-08-13T23:46:20.000Z | 2021-08-13T23:46:20.000Z | day-03/automatic-pizza-order-program.py | swokyisalreadytaken/100-Days-of-Code-in-Python | 269c99a481b94248454114c051fafa8f52697332 | [
"Unlicense"
] | null | null | null | day-03/automatic-pizza-order-program.py | swokyisalreadytaken/100-Days-of-Code-in-Python | 269c99a481b94248454114c051fafa8f52697332 | [
"Unlicense"
] | null | null | null | # build an automatic pizza order program.
# ask the user the size and extra ingredients inputs
print("Welcome to Python Pizza Deliveries!")
size = input("What size pizza do you want? S, M, or L \n")
add_pepperoni = input("Do you want pepperoni? Y or N \n")
extra_cheese = input("Do you want extra cheese? Y or N \n")
# ... | 27.945946 | 59 | 0.647002 |
44809a2040f353f40337b79e36aebadd2135b1f0 | 2,091 | py | Python | WindowOperators.py | zatricion/Streams | d2f688e230b4cb325d5f76886a7499d132591bd4 | [
"MIT"
] | null | null | null | WindowOperators.py | zatricion/Streams | d2f688e230b4cb325d5f76886a7499d132591bd4 | [
"MIT"
] | null | null | null | WindowOperators.py | zatricion/Streams | d2f688e230b4cb325d5f76886a7499d132591bd4 | [
"MIT"
] | null | null | null | from Agent import *
from Stream import *
from MergeSplitOpStructures import *
| 44.489362 | 93 | 0.679101 |
4482d252ebee04a4fe3a2d16129164bc0d1de4ec | 623 | py | Python | frontend_command.py | privacyrespected/Alpha | 60ffdb73b334e37a87be119ce881d084aef8d7a1 | [
"Apache-2.0"
] | null | null | null | frontend_command.py | privacyrespected/Alpha | 60ffdb73b334e37a87be119ce881d084aef8d7a1 | [
"Apache-2.0"
] | null | null | null | frontend_command.py | privacyrespected/Alpha | 60ffdb73b334e37a87be119ce881d084aef8d7a1 | [
"Apache-2.0"
] | null | null | null | #this files process commands entered through the front end
from modules.sense import *
from modules.mainsystem import * | 34.611111 | 60 | 0.64366 |
4483b0857e8241cf5117ec7285f536dc85720d7e | 2,177 | py | Python | swamp/mr/tests/test_mrjob.py | rigdenlab/SWAMP | 3e93ab27f4acf0124f7cb2d78a151cc3352b9c6e | [
"BSD-3-Clause"
] | 2 | 2020-02-15T11:06:34.000Z | 2020-04-10T08:48:49.000Z | swamp/mr/tests/test_mrjob.py | rigdenlab/SWAMP | 3e93ab27f4acf0124f7cb2d78a151cc3352b9c6e | [
"BSD-3-Clause"
] | 15 | 2020-02-04T10:56:07.000Z | 2021-02-12T09:11:03.000Z | swamp/mr/tests/test_mrjob.py | rigdenlab/SWAMP | 3e93ab27f4acf0124f7cb2d78a151cc3352b9c6e | [
"BSD-3-Clause"
] | 4 | 2020-02-04T13:25:09.000Z | 2022-03-23T13:44:17.000Z | import os
import dill
import unittest
import collections
from pyjob import Script
from swamp.utils import remove
from swamp.mr.mrjob import MrJob
RESULTS = collections.namedtuple('results', ['results'])
WORKDIR = os.path.join(os.environ['CCP4_SCR'], 'test_workdir')
| 38.875 | 137 | 0.673404 |
44844a84b744658a244c29556a18ff7de739bdd6 | 6,306 | py | Python | distil/active_learning_strategies/partition_strategy.py | ansunsujoe/distil | cf6cae2b88ef129d09c159aae0569978190e9f98 | [
"MIT"
] | 83 | 2021-01-06T06:50:30.000Z | 2022-03-31T05:16:32.000Z | distil/active_learning_strategies/partition_strategy.py | ansunsujoe/distil | cf6cae2b88ef129d09c159aae0569978190e9f98 | [
"MIT"
] | 30 | 2021-02-27T06:09:47.000Z | 2021-12-23T11:03:36.000Z | distil/active_learning_strategies/partition_strategy.py | ansunsujoe/distil | cf6cae2b88ef129d09c159aae0569978190e9f98 | [
"MIT"
] | 13 | 2021-03-05T18:26:58.000Z | 2022-03-12T01:53:17.000Z | import math
import numpy as np
from torch.utils.data import Subset
from .strategy import Strategy | 52.115702 | 189 | 0.669997 |
4485c237e7028b7f11bca171722bc70d54c20ee5 | 2,120 | py | Python | lib/lib_constant.py | NingAnMe/GFSSI | 066ac3dcffe04927aa497ee8b2257bee3ec3789a | [
"MIT"
] | 1 | 2020-08-18T08:05:35.000Z | 2020-08-18T08:05:35.000Z | lib/lib_constant.py | NingAnMe/GFSSI | 066ac3dcffe04927aa497ee8b2257bee3ec3789a | [
"MIT"
] | null | null | null | lib/lib_constant.py | NingAnMe/GFSSI | 066ac3dcffe04927aa497ee8b2257bee3ec3789a | [
"MIT"
] | 1 | 2020-08-26T06:50:59.000Z | 2020-08-26T06:50:59.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@Time : 2019/8/2
@Author : AnNing
"""
import os
from lib.lib_path import get_aid_path, GFSSI_DIR
aid_path = get_aid_path()
#
FULL_VALUE = -999
#
BASEMAP_FY4_4KM = os.path.join(aid_path, 'ditu_fy4a_4km.png')
LON_LAT_LUT_FY4_4KM = os.path.join(aid_path, 'lonlat_l... | 37.192982 | 92 | 0.745283 |
44860ad18421633ee3079c64cf2ba7d53eaef76a | 1,647 | py | Python | fondo_api/tests/runner.py | Fonmon/Fondo-API | 0c78eaab259df18219c01fceb67bd1b6ff8ec941 | [
"MIT"
] | null | null | null | fondo_api/tests/runner.py | Fonmon/Fondo-API | 0c78eaab259df18219c01fceb67bd1b6ff8ec941 | [
"MIT"
] | 48 | 2018-01-13T14:52:52.000Z | 2022-03-13T17:41:42.000Z | fondo_api/tests/runner.py | Fonmon/Fondo-API | 0c78eaab259df18219c01fceb67bd1b6ff8ec941 | [
"MIT"
] | null | null | null | import logging
from django.test.runner import DiscoverRunner | 44.513514 | 84 | 0.680631 |
44862ca62ad76ed43e2aa3db0d2b5e1183483ba1 | 3,706 | py | Python | tests/test_reference.py | foliant-docs/foliantcontrib.apireferences | 4b4bfe865970b7adb1a8c7b5f3cb697ec3257976 | [
"MIT"
] | null | null | null | tests/test_reference.py | foliant-docs/foliantcontrib.apireferences | 4b4bfe865970b7adb1a8c7b5f3cb697ec3257976 | [
"MIT"
] | null | null | null | tests/test_reference.py | foliant-docs/foliantcontrib.apireferences | 4b4bfe865970b7adb1a8c7b5f3cb697ec3257976 | [
"MIT"
] | null | null | null | import re
from foliant.preprocessors.apireferences.apireferences import DEFAULT_REF_REGEX
from foliant.preprocessors.apireferences.classes import Reference
from unittest import TestCase
| 32.79646 | 79 | 0.611441 |
448774b167c44c150d8ea3fd24f5266556ab412f | 460 | py | Python | Diffusion of Infection and Campus Evacuation/parameters.py | dem123456789/Computer-Simulation | ec61bdd7ca767f631ef190c1248690bd65327302 | [
"MIT"
] | 2 | 2016-07-03T05:19:20.000Z | 2021-03-07T04:39:07.000Z | Diffusion of Infection and Campus Evacuation/parameters.py | dem123456789/Computer-Simulation | ec61bdd7ca767f631ef190c1248690bd65327302 | [
"MIT"
] | null | null | null | Diffusion of Infection and Campus Evacuation/parameters.py | dem123456789/Computer-Simulation | ec61bdd7ca767f631ef190c1248690bd65327302 | [
"MIT"
] | null | null | null | import math
DEBUG = 1
PARKING_NODE_COLOR = '#FF0099'
EXIT_NODE_COLOR = 'r'
STREET_NODE_COLOR = 'g'
COP_NODE_COLOR = '#3c3ccc'
VISUAL = 1
COP_MODE = 0
COP_INTERSECTION_THRESHOLD = 0
COP_CONGESTION_THRESHOLD = 0.5
COP_EVACUATION_THRESHOLD = 0
DEPTH_OF_AWARENESS = 1
EAST_TENDENCY = 0
SPACE_TIME_TRADEOFF = 1
DEAD_END = []
... | 20.909091 | 39 | 0.773913 |
4487941981e54376941db03ab4c7b9fc524aa4f4 | 316 | py | Python | Section 3/33_alert.py | IgorPavlovski84/-Automating-Web-Testing-with-Selenium-and-Python | c57b43416bb4bdc7242e79aa9d202851a852daae | [
"MIT"
] | 26 | 2018-12-21T00:52:01.000Z | 2021-11-08T13:12:26.000Z | Section 3/33_alert.py | calvinkkd/-Automating-Web-Testing-with-Selenium-and-Python | ca6e427cf6393993245263e26a704beeea8c1fed | [
"MIT"
] | 1 | 2021-02-02T22:05:36.000Z | 2021-02-02T22:05:36.000Z | Section 3/33_alert.py | calvinkkd/-Automating-Web-Testing-with-Selenium-and-Python | ca6e427cf6393993245263e26a704beeea8c1fed | [
"MIT"
] | 14 | 2018-12-08T11:40:38.000Z | 2021-05-04T01:02:39.000Z | from selenium import webdriver
import time
driver = webdriver.Chrome()
driver.get('http://localhost/se/33.html')
driver.execute_script("document.body.style.zoom = '1.5'")
time.sleep(1)
driver.find_element_by_css_selector('button').click()
time.sleep(1)
driver.switch_to_alert().accept()
time.sleep(1)
driver.close() | 28.727273 | 57 | 0.772152 |
448bc1e703300278885ac596fbdec39b730d307d | 3,611 | py | Python | constrained_language_typology/plot_languages_main.py | deepneuralmachine/google-research | d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231 | [
"Apache-2.0"
] | 23,901 | 2018-10-04T19:48:53.000Z | 2022-03-31T21:27:42.000Z | constrained_language_typology/plot_languages_main.py | deepneuralmachine/google-research | d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231 | [
"Apache-2.0"
] | 891 | 2018-11-10T06:16:13.000Z | 2022-03-31T10:42:34.000Z | constrained_language_typology/plot_languages_main.py | deepneuralmachine/google-research | d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231 | [
"Apache-2.0"
] | 6,047 | 2018-10-12T06:31:02.000Z | 2022-03-31T13:59:28.000Z | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 32.241071 | 77 | 0.663805 |
448ce569784ffe842d7c48946cdd94821413b192 | 1,515 | py | Python | experiments/cartpole_dqn.py | jkulhanek/deep-rl-pytorch | 6fa7ceee8524f002d4a8d93295b231f6b9b7c29c | [
"MIT"
] | 7 | 2019-03-24T19:51:11.000Z | 2022-01-27T17:20:29.000Z | experiments/cartpole_dqn.py | jkulhanek/deep-rl-pytorch | 6fa7ceee8524f002d4a8d93295b231f6b9b7c29c | [
"MIT"
] | null | null | null | experiments/cartpole_dqn.py | jkulhanek/deep-rl-pytorch | 6fa7ceee8524f002d4a8d93295b231f6b9b7c29c | [
"MIT"
] | 4 | 2020-04-11T01:06:24.000Z | 2021-07-18T01:22:36.000Z | import gym
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
import deep_rl.deepq as deepq
from deep_rl import register_trainer
def default_args():
return dict(
env_kwargs=dict(id='CartPole-v0'),
model_kwargs=dict()
)
| 25.25 | 65 | 0.617162 |
448dcd1097bbc80970b03d1a55067eb7abf25a12 | 3,314 | py | Python | account/views.py | Django-Pyhon/basic-banking-django | c0393fcc06101ebfde8a681fa2d6c8cd8d02a3bc | [
"MIT"
] | 1 | 2021-07-27T22:20:17.000Z | 2021-07-27T22:20:17.000Z | account/views.py | Django-Pyhon/basic-banking-django | c0393fcc06101ebfde8a681fa2d6c8cd8d02a3bc | [
"MIT"
] | null | null | null | account/views.py | Django-Pyhon/basic-banking-django | c0393fcc06101ebfde8a681fa2d6c8cd8d02a3bc | [
"MIT"
] | null | null | null | from django.http import Http404
from django.shortcuts import render
# Create your views here.
from django.contrib.auth.models import User, Group
from rest_framework import views, status
from rest_framework.response import Response
from account.serializers import *
| 31.865385 | 82 | 0.67592 |
448f5af76ad0cc20a0a28294b6c5340ad6385f98 | 1,063 | py | Python | setup.py | pymgrit/pymgrit | 40eca08cedf486de22604279b4add87086b7d3cc | [
"MIT"
] | 6 | 2020-04-24T13:14:17.000Z | 2022-03-09T14:16:51.000Z | setup.py | pymgrit/pymgrit | 40eca08cedf486de22604279b4add87086b7d3cc | [
"MIT"
] | 6 | 2020-03-24T09:03:05.000Z | 2021-08-02T13:31:39.000Z | setup.py | pymgrit/pymgrit | 40eca08cedf486de22604279b4add87086b7d3cc | [
"MIT"
] | 4 | 2020-06-09T21:11:19.000Z | 2021-06-27T11:34:58.000Z | from setuptools import setup, find_packages
install_requires = [
'numpy>=1.17.0',
'scipy>=1.4.1',
'mpi4py>=3.0',
'matplotlib>=3.1.3'
]
extras_requires = {
'docs': [
'sphinx'
],
'tests': [
'tox',
]
}
setup(name='pymgrit',
version='1.0.6',
description='Pyth... | 25.309524 | 116 | 0.631232 |
448fa6d89d25e8087b61e1aab2f8a346c2002a80 | 185 | py | Python | study/python/OtherTutorials/flexibleNumberOfArgs.py | YoungsAppWorkshop/dev_environment_setup | f197c81059ec5f1ce0bd8b5d972034252f29d9d0 | [
"MIT"
] | null | null | null | study/python/OtherTutorials/flexibleNumberOfArgs.py | YoungsAppWorkshop/dev_environment_setup | f197c81059ec5f1ce0bd8b5d972034252f29d9d0 | [
"MIT"
] | 3 | 2021-01-06T10:18:17.000Z | 2021-09-02T17:55:51.000Z | study/python/OtherTutorials/flexibleNumberOfArgs.py | YoungsAppWorkshop/dev_environment_setup | f197c81059ec5f1ce0bd8b5d972034252f29d9d0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
add_numbers(3)
add_numbers(3, 2)
add_numbers(1, 3, 5, 6, 7, 8)
| 15.416667 | 29 | 0.605405 |
4490ad67efce400919429713bee906671961ca09 | 2,590 | py | Python | mod6_lab1.py | KMSkelton/pyPrac | 11cec31d4cc1cbb890f89324a10f4daf66376de0 | [
"MIT"
] | 1 | 2017-08-08T20:38:27.000Z | 2017-08-08T20:38:27.000Z | mod6_lab1.py | KMSkelton/pyPrac | 11cec31d4cc1cbb890f89324a10f4daf66376de0 | [
"MIT"
] | 1 | 2018-08-15T22:26:29.000Z | 2018-08-15T22:26:29.000Z | mod6_lab1.py | KMSkelton/pyPrac | 11cec31d4cc1cbb890f89324a10f4daf66376de0 | [
"MIT"
] | null | null | null | # Update the code to have a function that reads in the file and returns contents as a list
# Update the code to have a function that converts the list of book lines into a list of the words
# Update the code to have a function that calculates the minum word frequency
# and gets the list of words from the word freque... | 41.774194 | 105 | 0.71583 |
4490e5d26b0906c435e659bb5263d97c5a74554f | 648 | py | Python | tests/two_three_compat_test.py | dw/econtext | c1e72b82258752d4a3155e88806c2e1235805eff | [
"BSD-3-Clause"
] | null | null | null | tests/two_three_compat_test.py | dw/econtext | c1e72b82258752d4a3155e88806c2e1235805eff | [
"BSD-3-Clause"
] | 27 | 2017-08-22T21:20:22.000Z | 2017-09-10T07:35:55.000Z | tests/two_three_compat_test.py | dw/econtext | c1e72b82258752d4a3155e88806c2e1235805eff | [
"BSD-3-Clause"
] | null | null | null | import mitogen.core
import testlib
import simple_pkg.ping
# TODO: this is a joke. 2/3 interop is one of the hardest bits to get right.
# There should be 100 tests in this file.
| 28.173913 | 76 | 0.700617 |
44911cbbd93bdb5beaecefc59e565353a88e30d2 | 1,439 | py | Python | volume/pipeline.py | Napam/INF399-Master-Evaluation | d6e66397ae6951cffae65ddd41979bab367abdb8 | [
"MIT"
] | 1 | 2021-05-31T13:32:09.000Z | 2021-05-31T13:32:09.000Z | volume/pipeline.py | Napam/INF399-Master-Evaluation | d6e66397ae6951cffae65ddd41979bab367abdb8 | [
"MIT"
] | null | null | null | volume/pipeline.py | Napam/INF399-Master-Evaluation | d6e66397ae6951cffae65ddd41979bab367abdb8 | [
"MIT"
] | null | null | null | import glob, os
from cococonvert import convert_csv_labels, convert_csv_outputs
from cocoeval import COCO, COCOeval
import sys
if __name__ == '__main__':
mapdir = '/mnt/deepvol/mapdir'
print("\x1b[33mConverting from CSV to JSON format\x1b[0m")
convert_csv_labels(os.path.join(mapdir, "nogit_val_labels.c... | 32.704545 | 99 | 0.660181 |
4492af236eff4aa2e983034e070713b3b4e8e677 | 3,076 | py | Python | play.py | brandoFranco/tictactoeOpenCV | 60eaa9c028cdfe13e68124de4037b39fcfa7432c | [
"MIT"
] | null | null | null | play.py | brandoFranco/tictactoeOpenCV | 60eaa9c028cdfe13e68124de4037b39fcfa7432c | [
"MIT"
] | null | null | null | play.py | brandoFranco/tictactoeOpenCV | 60eaa9c028cdfe13e68124de4037b39fcfa7432c | [
"MIT"
] | null | null | null | #
# Jogo da Velha utilizando Visao Computacional e Realidade aumentada.
# Definicao de funcoes auxiliares
#
import numpy as np
# Funcao que verifica se e o fim do jogo.
# Realiza um movimento em uma posicao livre no tabuleiro.
# funcao para localizar os cantos do tabuleiro.
# funcao utilizada para ordenar os... | 28.220183 | 69 | 0.535761 |
4492b1a697142e5525ad3f5dfe95027989301553 | 1,407 | py | Python | src/main.py | TomoTom0/DiscordBot_Heroku_Stat.ink | 458ad08fb53a83b8fa96dad25fd603c9d14722b2 | [
"MIT"
] | 1 | 2020-11-12T04:26:30.000Z | 2020-11-12T04:26:30.000Z | src/main.py | TomoTom0/DiscordBot_Heroku_Stat.ink | 458ad08fb53a83b8fa96dad25fd603c9d14722b2 | [
"MIT"
] | null | null | null | src/main.py | TomoTom0/DiscordBot_Heroku_Stat.ink | 458ad08fb53a83b8fa96dad25fd603c9d14722b2 | [
"MIT"
] | 4 | 2020-11-14T14:53:30.000Z | 2021-07-05T11:36:59.000Z | #! /usr/bin/env python3
import discord
from discord.ext import commands
import subprocess
import re
import os, sys
import json
import basic
import datetime
import traceback
import iksm_discord
TOKEN = basic.DISCORD_TOKENS["0"]
startup_extensions = ["splat"] # cog
description = f"stat.inkbot\nstat.inkAPI KEY"+\
'\nHe... | 25.125 | 86 | 0.702914 |
44932b7c61cbe0cddbdb7086477b87d6e2cfcb5d | 1,019 | py | Python | tls/Alerts.py | anuraagbaishya/tls1.3 | e86b575431694fe4ea987cdb89ef3438f7f28360 | [
"MIT"
] | null | null | null | tls/Alerts.py | anuraagbaishya/tls1.3 | e86b575431694fe4ea987cdb89ef3438f7f28360 | [
"MIT"
] | null | null | null | tls/Alerts.py | anuraagbaishya/tls1.3 | e86b575431694fe4ea987cdb89ef3438f7f28360 | [
"MIT"
] | null | null | null | from tls.CustomEnums import UInt8Enum
| 23.697674 | 43 | 0.708538 |
4494889d1e0dfebc5119191d7266469bf0009a3a | 21,922 | py | Python | ProjectSurveillance/views.py | psymen145/OVS-django-fe | 1823e8b42c17276d6b50a63dddd9b04a21c2038c | [
"MIT"
] | null | null | null | ProjectSurveillance/views.py | psymen145/OVS-django-fe | 1823e8b42c17276d6b50a63dddd9b04a21c2038c | [
"MIT"
] | null | null | null | ProjectSurveillance/views.py | psymen145/OVS-django-fe | 1823e8b42c17276d6b50a63dddd9b04a21c2038c | [
"MIT"
] | null | null | null | from django.shortcuts import render, get_object_or_404, redirect
from django.http import HttpResponse, JsonResponse, Http404
from django.contrib.auth.decorators import login_required
from django.core.exceptions import ObjectDoesNotExist
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from ... | 42.238921 | 178 | 0.59251 |
4496bc453a600d2cdbfc10306dcde26b6af41bee | 41 | py | Python | test_server/src/controllers/__init__.py | s-nao/gatling-practice | 5d4e6abfbed34a4e356a7ef770393e57411de80c | [
"Apache-2.0"
] | null | null | null | test_server/src/controllers/__init__.py | s-nao/gatling-practice | 5d4e6abfbed34a4e356a7ef770393e57411de80c | [
"Apache-2.0"
] | null | null | null | test_server/src/controllers/__init__.py | s-nao/gatling-practice | 5d4e6abfbed34a4e356a7ef770393e57411de80c | [
"Apache-2.0"
] | null | null | null | from . import (
users,
search,
)
| 8.2 | 15 | 0.512195 |
4497d26024dfdc2730aaaf21bcb0e80805684f50 | 7,806 | py | Python | optur/storages/backends/mysql.py | ytsmiling/optur | cbc56c60b322ea764592f01758798f745199b455 | [
"MIT"
] | 1 | 2022-01-19T09:18:15.000Z | 2022-01-19T09:18:15.000Z | optur/storages/backends/mysql.py | ytsmiling/optur | cbc56c60b322ea764592f01758798f745199b455 | [
"MIT"
] | null | null | null | optur/storages/backends/mysql.py | ytsmiling/optur | cbc56c60b322ea764592f01758798f745199b455 | [
"MIT"
] | null | null | null | import time
from typing import Any, Callable, List, Optional
from google.protobuf.timestamp_pb2 import Timestamp
from optur.errors import NotFoundError
from optur.proto.study_pb2 import StudyInfo
from optur.proto.study_pb2 import Trial as TrialProto
from optur.storages.backends.backend import StorageBackend
| 37.893204 | 99 | 0.55816 |
449998dcb11c693a0012e9960aaba5d1b4901d48 | 1,394 | py | Python | pymclevel/test/templevel.py | bennettdc/MCEdit-Unified | 90abfb170c65b877ac67193e717fa3a3ded635dd | [
"0BSD"
] | 237 | 2018-02-04T19:13:31.000Z | 2022-03-26T03:06:07.000Z | pymclevel/test/templevel.py | bennettdc/MCEdit-Unified | 90abfb170c65b877ac67193e717fa3a3ded635dd | [
"0BSD"
] | 551 | 2015-01-01T02:36:53.000Z | 2018-02-01T00:03:12.000Z | pymclevel/test/templevel.py | bennettdc/MCEdit-Unified | 90abfb170c65b877ac67193e717fa3a3ded635dd | [
"0BSD"
] | 97 | 2015-01-02T01:31:12.000Z | 2018-01-22T05:37:47.000Z | import atexit
import os
from os.path import join
import shutil
import tempfile
from pymclevel import mclevel
__author__ = 'Rio'
tempdir = os.path.join(tempfile.gettempdir(), "pymclevel_test")
if not os.path.exists(tempdir):
os.mkdir(tempdir)
| 24.892857 | 63 | 0.601148 |
449a09fa6cac651fdb37c7759dc5ded62edc72b2 | 5,157 | py | Python | dags/oss_know/libs/github/init_profiles.py | HexaemeronFsk/airflow-jobs | 674f4c15f6889653bf5578117b085ef794c7b3f4 | [
"Apache-2.0"
] | null | null | null | dags/oss_know/libs/github/init_profiles.py | HexaemeronFsk/airflow-jobs | 674f4c15f6889653bf5578117b085ef794c7b3f4 | [
"Apache-2.0"
] | null | null | null | dags/oss_know/libs/github/init_profiles.py | HexaemeronFsk/airflow-jobs | 674f4c15f6889653bf5578117b085ef794c7b3f4 | [
"Apache-2.0"
] | null | null | null | import itertools
from loguru import logger
from opensearchpy.helpers import scan as os_scan
from oss_know.libs.base_dict.opensearch_index import OPENSEARCH_INDEX_GITHUB_COMMITS, \
OPENSEARCH_INDEX_GITHUB_ISSUES_TIMELINE
from oss_know.libs.util.opensearch_api import OpensearchAPI
from oss_know.libs.util.base import ... | 46.459459 | 114 | 0.61528 |
921fdb31b845a38c9c0e90ae7d4068748c59af90 | 10,274 | py | Python | json_to_relation/test/testModuleStoreImporter.py | paepcke/json_to_relation | acfa58d540f8f51d1d913d0c173ee3ded1b6c2a9 | [
"BSD-3-Clause"
] | 4 | 2015-10-10T19:09:49.000Z | 2021-09-02T00:58:06.000Z | json_to_relation/test/testModuleStoreImporter.py | paepcke/json_to_relation | acfa58d540f8f51d1d913d0c173ee3ded1b6c2a9 | [
"BSD-3-Clause"
] | null | null | null | json_to_relation/test/testModuleStoreImporter.py | paepcke/json_to_relation | acfa58d540f8f51d1d913d0c173ee3ded1b6c2a9 | [
"BSD-3-Clause"
] | 8 | 2015-05-16T14:33:33.000Z | 2019-10-24T08:56:25.000Z | # Copyright (c) 2014, Stanford University
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the ... | 51.114428 | 757 | 0.662644 |
922098fba0782c8cc0b4f538f40dc425f77aa77a | 1,457 | py | Python | image_extractor.py | satrajit-chatterjee/DeXpression-PyTorch | 00100385145485cf00b0a1cc53154db623c8a14f | [
"MIT"
] | 6 | 2019-01-18T02:34:21.000Z | 2022-03-22T13:37:11.000Z | image_extractor.py | satrajit-chatterjee/DeXpression-PyTorch | 00100385145485cf00b0a1cc53154db623c8a14f | [
"MIT"
] | 3 | 2019-01-18T02:44:13.000Z | 2019-12-16T14:32:55.000Z | image_extractor.py | satrajit-chatterjee/DeXpression-PyTorch | 00100385145485cf00b0a1cc53154db623c8a14f | [
"MIT"
] | 1 | 2022-03-14T03:29:47.000Z | 2022-03-14T03:29:47.000Z | import glob
from shutil import copyfile
emotions = ["neutral", "anger", "contempt", "disgust", "fear", "happy", "sadness", "surprise"] # Define emotion order
participants = glob.glob("source_emotion\\*") # Returns a list of all folders with participant numbers
for x in participants:
part = "%s" % x[-4:] ... | 60.708333 | 121 | 0.621139 |