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
1d611badfcce77d76278b903a3e886a36ee2bfd5
443
py
Python
setup.py
gabeabrams/niu
a2979b6b3ed497a1cfa421f105c9e919d7709832
[ "MIT" ]
null
null
null
setup.py
gabeabrams/niu
a2979b6b3ed497a1cfa421f105c9e919d7709832
[ "MIT" ]
null
null
null
setup.py
gabeabrams/niu
a2979b6b3ed497a1cfa421f105c9e919d7709832
[ "MIT" ]
null
null
null
from distutils.core import setup setup( name = 'niu', packages = ['niu'], version = '0.2', description = 'A grouping and pairing library', author = 'Gabriel Abrams', author_email = 'gabeabrams@gmail.com', url = 'https://github.com/gabeabrams/niu', download_url = 'https://github.com/gabeabrams/niu/archi...
26.058824
72
0.656885
1d61ecbda3d99cd0aa543ea4733231e129cbee3a
544
py
Python
etherscan/stats.py
adamzhang1987/py-etherscan-api
9a3accfa455eb1d9d82ac7be41012948a58f90e3
[ "MIT" ]
458
2016-07-21T19:49:30.000Z
2022-03-23T18:01:19.000Z
etherscan/stats.py
adamzhang1987/py-etherscan-api
9a3accfa455eb1d9d82ac7be41012948a58f90e3
[ "MIT" ]
71
2016-06-17T19:34:18.000Z
2022-03-06T20:13:37.000Z
etherscan/stats.py
adamzhang1987/py-etherscan-api
9a3accfa455eb1d9d82ac7be41012948a58f90e3
[ "MIT" ]
269
2016-06-20T09:51:17.000Z
2022-03-17T19:19:10.000Z
from .client import Client
27.2
58
0.628676
1d6268f350e6d98480c5a0858a845fd5f515b56e
2,842
py
Python
hidrocomp/graphics/gantt.py
clebsonpy/HydroComp
9d17fa533e8a15c760030df5246ff531ddb4cb22
[ "MIT" ]
4
2020-05-14T20:03:49.000Z
2020-05-22T19:56:43.000Z
hidrocomp/graphics/gantt.py
clebsonpy/HydroComp
9d17fa533e8a15c760030df5246ff531ddb4cb22
[ "MIT" ]
19
2019-06-27T18:12:27.000Z
2020-04-28T13:28:03.000Z
hidrocomp/graphics/gantt.py
clebsonpy/HydroComp
9d17fa533e8a15c760030df5246ff531ddb4cb22
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import calendar import datetime import plotly as py import plotly.graph_objs as go
40.028169
126
0.478184
1d642def5287972efd9e7b0713ed0b36627e2f0c
8,530
py
Python
scripts/clues_ancient_samples.py
ekirving/mesoneo_paper
7b5ac1b5beff8bfc09dca18554502518f6f15e36
[ "MIT" ]
null
null
null
scripts/clues_ancient_samples.py
ekirving/mesoneo_paper
7b5ac1b5beff8bfc09dca18554502518f6f15e36
[ "MIT" ]
null
null
null
scripts/clues_ancient_samples.py
ekirving/mesoneo_paper
7b5ac1b5beff8bfc09dca18554502518f6f15e36
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = "Evan K. Irving-Pease" __copyright__ = "Copyright 2020, University of Copenhagen" __email__ = "evan.irvingpease@gmail.com" __license__ = "MIT" import os import sys from math import log import click import pysam import yaml sys.path.append(os.getcwd()) from...
38.423423
117
0.605393
1d66db9f64a830eb8e8e7037d37357c250c45e15
5,773
py
Python
auth/app.py
Celeo/GETIN-HR
3acc4bd1b09abf4fe7da05e25fd849ebe7c6f6a6
[ "MIT" ]
null
null
null
auth/app.py
Celeo/GETIN-HR
3acc4bd1b09abf4fe7da05e25fd849ebe7c6f6a6
[ "MIT" ]
null
null
null
auth/app.py
Celeo/GETIN-HR
3acc4bd1b09abf4fe7da05e25fd849ebe7c6f6a6
[ "MIT" ]
null
null
null
import logging from datetime import timedelta from flask import Flask, render_template, redirect, request, url_for, flash from flask_login import LoginManager, login_user, logout_user, current_user from preston.crest import Preston as CREST from preston.xmlapi import Preston as XMLAPI from auth.shared import db, evea...
30.067708
120
0.690802
1d67b713f23618331d3a012ef4bff6ddf73e4235
3,891
py
Python
setup.py
cathalmccabe/IIoT-SPYN
3d7ac560bfc31ecd763ac3a8c266fc63874f20ad
[ "BSD-3-Clause" ]
1
2019-01-01T14:52:51.000Z
2019-01-01T14:52:51.000Z
setup.py
cathalmccabe/IIoT-SPYN
3d7ac560bfc31ecd763ac3a8c266fc63874f20ad
[ "BSD-3-Clause" ]
null
null
null
setup.py
cathalmccabe/IIoT-SPYN
3d7ac560bfc31ecd763ac3a8c266fc63874f20ad
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2018, Xilinx, Inc. # 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 ...
35.372727
79
0.67926
1d6897c7f3fa33acc1091f86b4c9ad7e47b3a66b
4,141
py
Python
eth2/beacon/tools/builder/initializer.py
Jwomers/trinity
3a09276d2f21adfc5b233272e1b1cc2ad1a0c11e
[ "MIT" ]
null
null
null
eth2/beacon/tools/builder/initializer.py
Jwomers/trinity
3a09276d2f21adfc5b233272e1b1cc2ad1a0c11e
[ "MIT" ]
null
null
null
eth2/beacon/tools/builder/initializer.py
Jwomers/trinity
3a09276d2f21adfc5b233272e1b1cc2ad1a0c11e
[ "MIT" ]
null
null
null
from typing import ( Dict, Sequence, Tuple, Type, ) from eth2.beacon.on_startup import ( get_genesis_block, get_initial_beacon_state, ) from eth2.beacon.state_machines.configs import BeaconConfig from eth2.beacon.types.blocks import ( BaseBeaconBlock, ) from eth2.beacon.types.deposits imp...
32.351563
74
0.658295
1d6909e7697fe6f7ef13f4e0b61221718a698804
1,525
py
Python
settings.py
oogles/django-goodies
bef5f322f848e2bd466cc4955061ead9bed8c6c5
[ "BSD-3-Clause" ]
2
2020-08-28T00:36:48.000Z
2021-07-01T07:14:31.000Z
settings.py
oogles/djem
bef5f322f848e2bd466cc4955061ead9bed8c6c5
[ "BSD-3-Clause" ]
2
2018-03-22T05:46:17.000Z
2022-02-10T11:41:26.000Z
settings.py
oogles/djem
bef5f322f848e2bd466cc4955061ead9bed8c6c5
[ "BSD-3-Clause" ]
null
null
null
# Minimal settings file to allow the running of tests, execution of migrations, # and several other useful management commands. SECRET_KEY = 'abcde12345' # nosec # Needs to point to something to allow tests to perform url resolving. The file # doesn't actually need to contain any urls (but does need to define "urlpa...
27.727273
84
0.664918
1d6e65b0e5d6c4ee6ad11a44b07d0b7c7fe3d49f
360
py
Python
SimpleSign.py
wanzhiguo/mininero
7dd71b02a4613478b59b2670ccf7c74a22cc2ffd
[ "BSD-3-Clause" ]
182
2016-02-05T18:33:09.000Z
2022-03-23T12:31:54.000Z
SimpleSign.py
wanzhiguo/mininero
7dd71b02a4613478b59b2670ccf7c74a22cc2ffd
[ "BSD-3-Clause" ]
81
2016-09-04T14:00:24.000Z
2022-03-28T17:22:52.000Z
SimpleSign.py
wanzhiguo/mininero
7dd71b02a4613478b59b2670ccf7c74a22cc2ffd
[ "BSD-3-Clause" ]
63
2016-02-05T19:38:06.000Z
2022-03-07T06:07:46.000Z
import MiniNero import ed25519 import binascii import PaperWallet import cherrypy import os import time import bitmonerod import SimpleXMR2 import SimpleServer message = "send0d000114545737471em2WCg9QKxRxbo6S3xKF2K4UDvdu6hMc" message = "send0d0114545747771em2WCg9QKxRxbo6S3xKF2K4UDvdu6hMc" sec = raw_input("sec?") print...
21.176471
65
0.858333
1d6e919f05dbd8e9f87f5045a93be702a3ed1a8c
599
py
Python
lib/logger.py
amkolhar/JamaAutomation
840d404df0b1483cdbb85e17e1e5059a36c69cc7
[ "Apache-2.0" ]
null
null
null
lib/logger.py
amkolhar/JamaAutomation
840d404df0b1483cdbb85e17e1e5059a36c69cc7
[ "Apache-2.0" ]
null
null
null
lib/logger.py
amkolhar/JamaAutomation
840d404df0b1483cdbb85e17e1e5059a36c69cc7
[ "Apache-2.0" ]
null
null
null
# Atharv Kolhar (atharv) import logging import warnings warnings.filterwarnings("ignore") jamalogger = logging.getLogger("JAMALIB") jamalogger.setLevel(logging.DEBUG) handle = logging.StreamHandler() formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s', ...
27.227273
85
0.737896
1d6f6b83566cbb11fd4ba3d140094d32e8247565
1,851
py
Python
src/common/download.py
Nut-Guo/adv
b0fdcfbf8acfe59916118e152d3c63d27ea88611
[ "MIT" ]
2
2021-09-25T05:26:47.000Z
2022-03-09T13:42:10.000Z
src/common/download.py
Nut-Guo/adv
b0fdcfbf8acfe59916118e152d3c63d27ea88611
[ "MIT" ]
null
null
null
src/common/download.py
Nut-Guo/adv
b0fdcfbf8acfe59916118e152d3c63d27ea88611
[ "MIT" ]
null
null
null
import os import requests import logging from tqdm import tqdm as tq import zipfile import tarfile def download_file(url: str, path: str, verbose: bool = False) -> None: """ Download file with progressbar Usage: download_file('http://web4host.net/5MB.zip') """ if not os.path.exists(path):...
26.442857
96
0.589411
1d72d39d1134cd19db279903a576512ac8b9b659
139
py
Python
vedasal/criteria/losses/builder.py
Kuro96/vedasal
3c5588bf12059af5bd7bc779fd5f9dc0b2901cb2
[ "Apache-2.0" ]
2
2020-11-06T06:39:04.000Z
2020-11-11T03:39:22.000Z
vedasal/criteria/losses/builder.py
Kuro96/vedasal
3c5588bf12059af5bd7bc779fd5f9dc0b2901cb2
[ "Apache-2.0" ]
null
null
null
vedasal/criteria/losses/builder.py
Kuro96/vedasal
3c5588bf12059af5bd7bc779fd5f9dc0b2901cb2
[ "Apache-2.0" ]
null
null
null
from vedacore.misc import registry, build_from_cfg
19.857143
50
0.741007
1d73ed57b830c4f17e023e29c9340e779af1482f
6,667
py
Python
django_rest_scaffold/management/commands/create-model.py
regisec/django-rest-scaffold
8ba5c5ad3105812d4b0143f4e69bb687ba1ac166
[ "BSD-3-Clause" ]
null
null
null
django_rest_scaffold/management/commands/create-model.py
regisec/django-rest-scaffold
8ba5c5ad3105812d4b0143f4e69bb687ba1ac166
[ "BSD-3-Clause" ]
4
2019-08-05T05:00:45.000Z
2021-06-10T19:28:56.000Z
django_rest_scaffold/management/commands/create-model.py
regisec/django-rest-scaffold
8ba5c5ad3105812d4b0143f4e69bb687ba1ac166
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: UTF-8 -*- """ Created by Rgis Eduardo Crestani <regis.crestani@gmail.com> on 19/06/2016. """ import os from datetime import datetime from django.core.management.base import BaseCommand, CommandError from django_rest_scaffold.settings import DJANGO_REST_SCAFFOLD_SETTINGS as SETTINGS
44.152318
118
0.578071
1d740317cdf78e3f80e81cac80068c2f4804af40
3,066
py
Python
social_api/urls.py
muhfajar/social_api
05ca23b215db5cb4f9060134b464b643c49beb0f
[ "MIT" ]
null
null
null
social_api/urls.py
muhfajar/social_api
05ca23b215db5cb4f9060134b464b643c49beb0f
[ "MIT" ]
null
null
null
social_api/urls.py
muhfajar/social_api
05ca23b215db5cb4f9060134b464b643c49beb0f
[ "MIT" ]
null
null
null
"""social_api URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class...
47.90625
115
0.665688
1d7424d7e6f29bb89685d0551b4a9bc7832c6b24
5,186
py
Python
src/meta_memcache/base/connection_pool.py
RevenueCat/meta-memcache-py
755ecfc4cfbb029d3435590c5f9aa8a8aa2a36e3
[ "MIT" ]
null
null
null
src/meta_memcache/base/connection_pool.py
RevenueCat/meta-memcache-py
755ecfc4cfbb029d3435590c5f9aa8a8aa2a36e3
[ "MIT" ]
4
2022-01-10T23:06:43.000Z
2022-03-08T22:49:39.000Z
src/meta_memcache/base/connection_pool.py
RevenueCat/meta-memcache-py
755ecfc4cfbb029d3435590c5f9aa8a8aa2a36e3
[ "MIT" ]
null
null
null
import itertools import logging import socket import time from collections import deque from contextlib import contextmanager from typing import Callable, Deque, Generator, NamedTuple, Optional from meta_memcache.base.memcache_socket import MemcacheSocket from meta_memcache.errors import MemcacheServerError from meta_...
38.414815
87
0.652912
1d7bf9fe9ade355b6e87b40c8b814174167a1aed
1,599
py
Python
src/derl/tracker.py
tpiekarski/derl
b2687f8f02870b2a29bc7466195d4ed45f192cbf
[ "MIT" ]
10
2020-06-17T12:03:28.000Z
2021-09-07T04:03:34.000Z
src/derl/tracker.py
tpiekarski/derl
b2687f8f02870b2a29bc7466195d4ed45f192cbf
[ "MIT" ]
42
2020-06-17T12:27:26.000Z
2021-09-05T10:51:43.000Z
src/derl/tracker.py
tpiekarski/derl
b2687f8f02870b2a29bc7466195d4ed45f192cbf
[ "MIT" ]
1
2020-06-17T12:03:30.000Z
2020-06-17T12:03:30.000Z
# # derl: CLI Utility for searching for dead URLs <https://github.com/tpiekarski/derl> # --- # Copyright 2020 Thomas Piekarski <t.piekarski@deloquencia.de> # from time import perf_counter from derl.model.stats import Stats def get_tracker() -> "Tracker": return Tracker()
24.227273
100
0.614134
1d808fc6752a54152448f2c150ce9d43facfe6b6
1,813
py
Python
class/lect/Lect-06/shuffle.py
MikenzieAlasca/F21-1010
a7c15b8d9bf84f316aa6921f6d8a588c513a22b8
[ "MIT" ]
5
2021-09-09T21:08:14.000Z
2021-12-14T02:30:52.000Z
class/lect/Lect-06/shuffle.py
MikenzieAlasca/F21-1010
a7c15b8d9bf84f316aa6921f6d8a588c513a22b8
[ "MIT" ]
null
null
null
class/lect/Lect-06/shuffle.py
MikenzieAlasca/F21-1010
a7c15b8d9bf84f316aa6921f6d8a588c513a22b8
[ "MIT" ]
8
2021-09-09T17:46:07.000Z
2022-02-08T22:41:35.000Z
import random import copy rr = random.Random ( 22 ) letters = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'] key = readKey() print ( f"key = {key}" ) encrypt("test2.txt", "test2.enc") decrypt("test2.enc", "test2.orig")
22.382716
115
0.479868
1d8175f2740077e4e182203daab2cb883fd6dc00
3,641
py
Python
step_impl/http.py
WorldHealthOrganization/ddcc-gateway-api-tests
914e81243e162c3e8375786df2f21f8e1008fc0d
[ "Apache-2.0" ]
null
null
null
step_impl/http.py
WorldHealthOrganization/ddcc-gateway-api-tests
914e81243e162c3e8375786df2f21f8e1008fc0d
[ "Apache-2.0" ]
null
null
null
step_impl/http.py
WorldHealthOrganization/ddcc-gateway-api-tests
914e81243e162c3e8375786df2f21f8e1008fc0d
[ "Apache-2.0" ]
2
2022-02-04T11:10:27.000Z
2022-02-17T09:06:29.000Z
# ---license-start # eu-digital-green-certificates / dgc-api-tests # --- # Copyright (C) 2021 T-Systems International GmbH and all other contributors # --- # 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 ...
41.375
128
0.753364
1d83766ae57b1b09e9fc0fe2cbd36a3f3b83c731
4,503
py
Python
celligner2/surgery/trvae.py
broadinstitute/celligner2
ddddb3f4c13c66277bc93b08ebe65c1cc0bd941c
[ "Unlicense" ]
null
null
null
celligner2/surgery/trvae.py
broadinstitute/celligner2
ddddb3f4c13c66277bc93b08ebe65c1cc0bd941c
[ "Unlicense" ]
null
null
null
celligner2/surgery/trvae.py
broadinstitute/celligner2
ddddb3f4c13c66277bc93b08ebe65c1cc0bd941c
[ "Unlicense" ]
null
null
null
import numpy as np import torch import anndata from celligner2.othermodels.trvae.trvae import trVAE from celligner2.trainers.trvae.unsupervised import trVAETrainer def trvae_operate( network: trVAE, data: anndata, condition_key: str = None, size_factor_key: str = None, n_epoch...
37.525
118
0.653342
1d8538ea9563fe089e63d6ca2260f4ed77161708
2,519
py
Python
helpers/connections.py
cheak1974/remi-app-template
6c724dda0294b41b906134b9062eadce0f6c0617
[ "Apache-2.0" ]
12
2020-02-24T08:44:29.000Z
2022-02-21T07:18:31.000Z
helpers/connections.py
cheak1974/remi-app-template
6c724dda0294b41b906134b9062eadce0f6c0617
[ "Apache-2.0" ]
null
null
null
helpers/connections.py
cheak1974/remi-app-template
6c724dda0294b41b906134b9062eadce0f6c0617
[ "Apache-2.0" ]
3
2020-05-02T15:47:09.000Z
2021-06-12T23:56:52.000Z
import datetime import remi import core.globals connected_clients = {} # Dict with key=session id of App Instance and value=ws_client.client_address of App Instance connected_clients['number'] = 0 # Special Dict Field for amount of active connections client_route_url_to...
66.289474
167
0.691147
1d8628fbeb788aef2e5985787b2abb68a9b0d934
2,111
py
Python
tests/api/endpoints/admin/test_two_factor_auth.py
weimens/seahub
5ecf78ed7a2ddc72a23961804ee41be21c24893f
[ "Apache-2.0" ]
420
2015-01-03T11:34:46.000Z
2022-03-10T07:15:41.000Z
tests/api/endpoints/admin/test_two_factor_auth.py
weimens/seahub
5ecf78ed7a2ddc72a23961804ee41be21c24893f
[ "Apache-2.0" ]
735
2015-01-04T21:22:51.000Z
2022-03-31T09:26:07.000Z
tests/api/endpoints/admin/test_two_factor_auth.py
weimens/seahub
5ecf78ed7a2ddc72a23961804ee41be21c24893f
[ "Apache-2.0" ]
379
2015-01-05T17:08:03.000Z
2022-03-06T00:11:50.000Z
import os import pytest from django.urls import reverse from seahub.options.models import (UserOptions, KEY_FORCE_2FA, VAL_FORCE_2FA) from seahub.test_utils import BaseTestCase from seahub.two_factor.models import TOTPDevice, devices_for_user TRAVIS = 'TRAVIS' in os.environ
32.476923
99
0.58882
1d873a9042df6f711d83b72908d095913ffcd921
1,495
py
Python
saucenao/http.py
DaRealFreak/saucenao
28a1abc4fba6b7efdda54b140ba0c164e0b9c11a
[ "MIT" ]
30
2018-04-04T19:58:39.000Z
2021-11-24T16:25:51.000Z
saucenao/http.py
DaRealFreak/saucenao
28a1abc4fba6b7efdda54b140ba0c164e0b9c11a
[ "MIT" ]
6
2019-04-02T04:53:47.000Z
2020-09-25T09:50:15.000Z
saucenao/http.py
DaRealFreak/saucenao
28a1abc4fba6b7efdda54b140ba0c164e0b9c11a
[ "MIT" ]
4
2018-04-04T05:07:20.000Z
2020-03-10T14:19:03.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import requests from saucenao.exceptions import * PREVIOUS_STATUS_CODE = None STATUS_CODE_OK = 1 STATUS_CODE_SKIP = 2 STATUS_CODE_REPEAT = 3 def verify_status_code(request_response: requests.Response) -> tuple: """Verify the status code of the post request to the sear...
35.595238
114
0.70301
1d8982e4961fe4520d62952b9772740d30716f97
6,711
py
Python
dialogue/sinodoju.py
jeanlucancey/pronunciamento
a7c7407cda8e5dace3f4cd8eebbfee9bdd469e14
[ "BSD-2-Clause" ]
null
null
null
dialogue/sinodoju.py
jeanlucancey/pronunciamento
a7c7407cda8e5dace3f4cd8eebbfee9bdd469e14
[ "BSD-2-Clause" ]
null
null
null
dialogue/sinodoju.py
jeanlucancey/pronunciamento
a7c7407cda8e5dace3f4cd8eebbfee9bdd469e14
[ "BSD-2-Clause" ]
null
null
null
import time from os import system from django.http import HttpResponse from django.template import Context, loader from django.views.decorators.csrf import csrf_exempt # Pour des formulaires POST libres from jla_utils.utils import Fichier from .models import ElementDialogue
35.696809
101
0.649829
1d8a630a7af7286dcfe25ff650a3b9fddf8961f0
1,294
py
Python
tools/python/boutiques/tests/test_bids.py
shots47s/boutiques
831f937a6b1491af63a800786967e4d9bca1e262
[ "MIT" ]
54
2016-07-21T19:14:13.000Z
2021-11-16T11:49:15.000Z
tools/python/boutiques/tests/test_bids.py
shots47s/boutiques
831f937a6b1491af63a800786967e4d9bca1e262
[ "MIT" ]
539
2016-07-20T20:09:38.000Z
2022-03-17T00:45:26.000Z
tools/python/boutiques/tests/test_bids.py
shots47s/boutiques
831f937a6b1491af63a800786967e4d9bca1e262
[ "MIT" ]
52
2016-07-22T18:09:59.000Z
2021-02-03T15:22:55.000Z
#!/usr/bin/env python from unittest import TestCase from boutiques.bosh import bosh from boutiques.bids import validate_bids from boutiques import __file__ as bofile from jsonschema.exceptions import ValidationError from boutiques.validator import DescriptorValidationError import os.path as op import simplejson as jso...
36.971429
76
0.641422
1d8b6f8e19293ba21c2228c7a6bbaaebe7835fb6
425
py
Python
libs/yowsup/yowsup/yowsup/layers/protocol_receipts/protocolentities/test_receipt_outgoing.py
akshitpradhan/TomHack
837226e7b38de1140c19bc2d478eeb9e379ed1fd
[ "MIT" ]
22
2017-07-14T20:01:17.000Z
2022-03-08T14:22:39.000Z
libs/yowsup/yowsup/yowsup/layers/protocol_receipts/protocolentities/test_receipt_outgoing.py
akshitpradhan/TomHack
837226e7b38de1140c19bc2d478eeb9e379ed1fd
[ "MIT" ]
6
2017-07-14T21:03:50.000Z
2021-06-10T19:08:32.000Z
libs/yowsup/yowsup/yowsup/layers/protocol_receipts/protocolentities/test_receipt_outgoing.py
akshitpradhan/TomHack
837226e7b38de1140c19bc2d478eeb9e379ed1fd
[ "MIT" ]
13
2017-07-14T20:13:14.000Z
2020-11-12T08:06:05.000Z
from yowsup.layers.protocol_receipts.protocolentities import OutgoingReceiptProtocolEntity from yowsup.structs.protocolentity import ProtocolEntityTest import unittest
53.125
95
0.828235
1d8e88981310f80f962aaedf4421391c24b8f208
2,769
py
Python
empire/server/modules/powershell/situational_awareness/network/get_sql_server_info.py
awsmhacks/Empire
6a6f0881798ce92a54ce9896d2ffe4855855872d
[ "BSD-3-Clause" ]
null
null
null
empire/server/modules/powershell/situational_awareness/network/get_sql_server_info.py
awsmhacks/Empire
6a6f0881798ce92a54ce9896d2ffe4855855872d
[ "BSD-3-Clause" ]
null
null
null
empire/server/modules/powershell/situational_awareness/network/get_sql_server_info.py
awsmhacks/Empire
6a6f0881798ce92a54ce9896d2ffe4855855872d
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function import pathlib from builtins import object, str from typing import Dict from empire.server.common import helpers from empire.server.common.module_models import PydanticModule from empire.server.utils import data_util from empire.server.utils.module_util import handle_error_messag...
33.361446
86
0.552907
1d8eb891210e75a2298ded03715a2b3415109050
230
py
Python
gameplay/urls.py
Urosh91/TicTacToe
40d6c763993b525327d2c3cd3f132dc8822c85fe
[ "MIT" ]
null
null
null
gameplay/urls.py
Urosh91/TicTacToe
40d6c763993b525327d2c3cd3f132dc8822c85fe
[ "MIT" ]
null
null
null
gameplay/urls.py
Urosh91/TicTacToe
40d6c763993b525327d2c3cd3f132dc8822c85fe
[ "MIT" ]
null
null
null
from django.urls import path from .views import game_detail, make_move urlpatterns = [ path(r'detail/<int:id>/', game_detail, name="gameplay_detail"), path(r'make_move/<int:id>', make_move, name="gameplay_make_move") ]
23
69
0.721739
1d9140bd33fb078d1bfd2d6231763b19bed995bc
740
py
Python
setup.py
Bonifatius94/sc2sim
ac765f826e2465354aa4b619ab84d52249eec474
[ "MIT" ]
null
null
null
setup.py
Bonifatius94/sc2sim
ac765f826e2465354aa4b619ab84d52249eec474
[ "MIT" ]
null
null
null
setup.py
Bonifatius94/sc2sim
ac765f826e2465354aa4b619ab84d52249eec474
[ "MIT" ]
null
null
null
from setuptools import setup setup( name="sc2sim", version="1.0.0", author="Marco Trster", author_email="marco@troester-gmbh.de", description="A StarCraft II environment for reinforcement learning purposes", long_description=load_readme_desc(), long_description_content_type="text/markdown",...
30.833333
81
0.7
1d91db395da59fee0f0dc15b16ea80b100b25421
1,906
py
Python
2016/24/air_duct_spelunking.py
GeoffRiley/AdventOfCode
27fe8670a1923cb3b0675784f5e855ad18c29c93
[ "Unlicense" ]
2
2020-12-12T03:18:45.000Z
2021-12-17T00:35:33.000Z
2016/24/air_duct_spelunking.py
GeoffRiley/AdventOfCode
27fe8670a1923cb3b0675784f5e855ad18c29c93
[ "Unlicense" ]
null
null
null
2016/24/air_duct_spelunking.py
GeoffRiley/AdventOfCode
27fe8670a1923cb3b0675784f5e855ad18c29c93
[ "Unlicense" ]
null
null
null
from collections import defaultdict from itertools import permutations import networkx as nx if __name__ == '__main__': with open('input.txt') as cave_file: cave_lines = cave_file.read().splitlines(keepends=False) print(f'Day 24, part 1: {air_duct_spelunking(cave_lines)}') print(f'Day 24...
33.438596
91
0.53043
1d92705a0e03671b2fdc534d799cc8d39e832d40
3,889
py
Python
src/bo4e/com/angebotsteil.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/com/angebotsteil.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/com/angebotsteil.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
""" Contains Angebotsteil class and corresponding marshmallow schema for de-/serialization """ from typing import List, Optional import attr from marshmallow import fields from bo4e.bo.marktlokation import Marktlokation, MarktlokationSchema from bo4e.com.angebotsposition import Angebotsposition, AngebotspositionSche...
41.37234
179
0.750579
1d929ee149bb8ee418892e5d7ce4bfaffb5ee0ea
63,926
py
Python
lib/kb_kaiju/Utils/OutputBuilder.py
mclark58/kb_kaiju
477b23ef7fdf8b75a9cffc2239c546c915875c74
[ "MIT" ]
null
null
null
lib/kb_kaiju/Utils/OutputBuilder.py
mclark58/kb_kaiju
477b23ef7fdf8b75a9cffc2239c546c915875c74
[ "MIT" ]
null
null
null
lib/kb_kaiju/Utils/OutputBuilder.py
mclark58/kb_kaiju
477b23ef7fdf8b75a9cffc2239c546c915875c74
[ "MIT" ]
null
null
null
import os import shutil import ast import sys import time import re from datetime import datetime as dt import pytz import numpy as np import matplotlib.pyplot as plt import matplotlib.patches as mpatches import random from random import shuffle from biokbase.workspace.client import Workspace as workspaceService #fro...
41.61849
148
0.543018
1d93308a11488dd842ee04ecb3fb3f177a82ba23
1,723
py
Python
Gds/src/fprime_gds/wxgui/tools/PexpectRunnerConsolGUI.py
hunterpaulson/fprime
70560897b56dc3037dc966c99751b708b1cc8a05
[ "Apache-2.0" ]
null
null
null
Gds/src/fprime_gds/wxgui/tools/PexpectRunnerConsolGUI.py
hunterpaulson/fprime
70560897b56dc3037dc966c99751b708b1cc8a05
[ "Apache-2.0" ]
5
2020-07-13T16:56:33.000Z
2020-07-23T20:38:13.000Z
Gds/src/fprime_gds/wxgui/tools/PexpectRunnerConsolGUI.py
hunterpaulson/lgtm-fprime
9eeda383c263ecba8da8188a45e1d020107ff323
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### ## Python code generated with wxFormBuilder (version May 29 2018) ## http://www.wxformbuilder.org/ ## ## PLEASE DO *NOT* EDIT THIS FILE! ########################################################################### impor...
27.790323
75
0.490424
1d950e325ef85dc98b69ae74e351c6705f81fa42
20,121
py
Python
web/openerp/addons/base/tests/test_ir_actions.py
diogocs1/comps
63df07f6cf21c41e4527c06e2d0499f23f4322e7
[ "Apache-2.0" ]
1
2019-12-29T11:53:56.000Z
2019-12-29T11:53:56.000Z
odoo/openerp/addons/base/tests/test_ir_actions.py
tuanquanghpvn/odoo8-tutorial
52d25f1ca5f233c431cb9d3b24b79c3b4fb5127e
[ "MIT" ]
null
null
null
odoo/openerp/addons/base/tests/test_ir_actions.py
tuanquanghpvn/odoo8-tutorial
52d25f1ca5f233c431cb9d3b24b79c3b4fb5127e
[ "MIT" ]
3
2020-10-08T14:42:10.000Z
2022-01-28T14:12:29.000Z
import unittest2 from openerp.osv.orm import except_orm import openerp.tests.common as common from openerp.tools import mute_logger if __name__ == '__main__': unittest2.main()
49.195599
163
0.610705
1d955fce32b36603e242788ccaf03954bf57a21c
506
py
Python
linchpin/provision/filter_plugins/duplicateattr.py
seandst/linchpin
427b6fb61f550a4d1120ac94c55d121fbecd70a6
[ "Apache-2.0" ]
null
null
null
linchpin/provision/filter_plugins/duplicateattr.py
seandst/linchpin
427b6fb61f550a4d1120ac94c55d121fbecd70a6
[ "Apache-2.0" ]
null
null
null
linchpin/provision/filter_plugins/duplicateattr.py
seandst/linchpin
427b6fb61f550a4d1120ac94c55d121fbecd70a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os import sys import abc import StringIO from ansible import errors
22
42
0.624506
1d95852843689e3fd89ad1bab5143b8e92c83354
3,564
py
Python
memory.py
Bl41r/gb-emulator-python
04917fa0cdd09eb522e1409fc992e41df34fbf9a
[ "MIT" ]
null
null
null
memory.py
Bl41r/gb-emulator-python
04917fa0cdd09eb522e1409fc992e41df34fbf9a
[ "MIT" ]
null
null
null
memory.py
Bl41r/gb-emulator-python
04917fa0cdd09eb522e1409fc992e41df34fbf9a
[ "MIT" ]
null
null
null
"""Gameboy memory. Cartridge --------- [0000-3FFF] Cartridge ROM, bank 0: The first 16,384 bytes of the cartridge program are always available at this point in the memory map. Special circumstances apply: [0000-00FF] BIOS: When the CPU starts up, PC starts at 0000h, which is the start of the 256-byte GameBoy BIOS code...
59.4
332
0.720819
1d95ef9da2b683c95ffb53337138d330ab1ec3fd
1,127
py
Python
elstruct/reader/_orca4/surface.py
sjklipp/elstruct
1db630a12e11bf70df91443f963f79637244e844
[ "Apache-2.0" ]
null
null
null
elstruct/reader/_orca4/surface.py
sjklipp/elstruct
1db630a12e11bf70df91443f963f79637244e844
[ "Apache-2.0" ]
null
null
null
elstruct/reader/_orca4/surface.py
sjklipp/elstruct
1db630a12e11bf70df91443f963f79637244e844
[ "Apache-2.0" ]
null
null
null
""" gradient and hessian readers """ import numpy import autoread as ar import autoparse.pattern as app def gradient(output_string): """ read gradient from the output string """ grad = ar.matrix.read( output_string, start_ptt=app.padded(app.NEWLINE).join([ app.padded(app.escape...
27.487805
73
0.60071
1d95ff83525f3bfc63f6749e33f1c51f0190ec41
1,072
py
Python
Language/Parser/lr1_item.py
Chains99/Battlefield-Simulator
9dc209c34aac5160232e47d6799bbe1b1bfcebad
[ "MIT" ]
null
null
null
Language/Parser/lr1_item.py
Chains99/Battlefield-Simulator
9dc209c34aac5160232e47d6799bbe1b1bfcebad
[ "MIT" ]
null
null
null
Language/Parser/lr1_item.py
Chains99/Battlefield-Simulator
9dc209c34aac5160232e47d6799bbe1b1bfcebad
[ "MIT" ]
null
null
null
from Language.Grammar.grammar import Production, Symbol, Terminal
34.580645
123
0.630597
1d97b0cbdfb243aad3abbcdbd52cf67f81f74a12
1,402
py
Python
example/0_Basic_usage_of_the_library/python_feapder/1_quick_start/1_quick_start.py
RecluseXU/learning_spider
45fa790ed7970be57a21b40817cc66856de3d99b
[ "MIT" ]
38
2020-08-30T11:41:53.000Z
2022-03-23T04:30:26.000Z
example/0_Basic_usage_of_the_library/python_feapder/1_quick_start/1_quick_start.py
AndersonHJB/learning_spider
b855b7808fb5268e9564180cf73ba5b1fb133f58
[ "MIT" ]
2
2021-08-20T16:34:12.000Z
2021-10-08T11:06:41.000Z
example/0_Basic_usage_of_the_library/python_feapder/1_quick_start/1_quick_start.py
AndersonHJB/learning_spider
b855b7808fb5268e9564180cf73ba5b1fb133f58
[ "MIT" ]
10
2020-11-24T09:15:42.000Z
2022-02-25T06:05:16.000Z
# -*- coding: utf-8 -*- """ Created on 2021-03-11 18:53:58 --------- @summary: --------- @author: Administrator """ import feapder if __name__ == "__main__": # Spider().start() Spider(thread_count=3).start() # 3
34.195122
106
0.603424
1d9ac71d3a8fcaba493e70c86ce538da80100fc4
613
py
Python
Python3-GUI/Turtle01_Motion.py
anliven/L-Python
a814cab207bbaad6b5c69b9feeb8bf2f459baf2b
[ "Apache-2.0" ]
null
null
null
Python3-GUI/Turtle01_Motion.py
anliven/L-Python
a814cab207bbaad6b5c69b9feeb8bf2f459baf2b
[ "Apache-2.0" ]
null
null
null
Python3-GUI/Turtle01_Motion.py
anliven/L-Python
a814cab207bbaad6b5c69b9feeb8bf2f459baf2b
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 import turtle t = turtle.Turtle() t.goto(-50, 0) for j in range(3): t.forward(180) t.right(120) t.reset() # turtle t2 = turtle.Turtle() t2.speed(50) for i in range(5): t2.forward(150) t2.right(144) turtle.exitonclick() # # ### turtle # turtle Turtle graphics # ...
19.15625
48
0.619902
1d9b3dd104b11b23ec830541750f56c9d580c920
519
py
Python
backend/core/MlDiagnosis/ML_models/heartAttackPrediction/testDeploy.py
arc-arnob/Reddit-Clone
607918160596a10b0aff85bc7f472c8b76ace7c5
[ "Apache-2.0" ]
null
null
null
backend/core/MlDiagnosis/ML_models/heartAttackPrediction/testDeploy.py
arc-arnob/Reddit-Clone
607918160596a10b0aff85bc7f472c8b76ace7c5
[ "Apache-2.0" ]
null
null
null
backend/core/MlDiagnosis/ML_models/heartAttackPrediction/testDeploy.py
arc-arnob/Reddit-Clone
607918160596a10b0aff85bc7f472c8b76ace7c5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Mar 13 10:26:55 2021 @author: hp """ import importlib import prediction import numpy as np dataframe_instance = [] msg = ["marital status","age","hypertension","heart","glucose"] for i in range(13): read = (float(input())) dataframe_instance.append(read) #data_np = n...
23.590909
63
0.71869
1d9d41151655848833ede87fdc1e56259da9adc2
327
py
Python
lib/signtest.py
Laurancy-Dorian/DrawTheTableau
c8b1e67286303f0b0098cdbb8fb662ccfa31c235
[ "MIT" ]
null
null
null
lib/signtest.py
Laurancy-Dorian/DrawTheTableau
c8b1e67286303f0b0098cdbb8fb662ccfa31c235
[ "MIT" ]
null
null
null
lib/signtest.py
Laurancy-Dorian/DrawTheTableau
c8b1e67286303f0b0098cdbb8fb662ccfa31c235
[ "MIT" ]
null
null
null
import signal import os import time signal.signal(signal.SIGUSR1, receive_signal) signal.signal(signal.SIGUSR2, receive_signal) signal.signal(signal.SIGINT, receive_signal) print 'My PID is:', os.getpid() while True: print 'Waiting...' time.sleep(3)
19.235294
45
0.746177
1d9d9317657c45de513b0d2d559ef0e59aa2beb3
5,211
py
Python
maskfirst/masker.py
xianpf/CenterMask
287111f4abd58df356e7899a22bf47d23647ee72
[ "BSD-2-Clause" ]
null
null
null
maskfirst/masker.py
xianpf/CenterMask
287111f4abd58df356e7899a22bf47d23647ee72
[ "BSD-2-Clause" ]
null
null
null
maskfirst/masker.py
xianpf/CenterMask
287111f4abd58df356e7899a22bf47d23647ee72
[ "BSD-2-Clause" ]
null
null
null
import torch import torch.nn.functional as F from maskrcnn_benchmark.structures.bounding_box import BoxList # the next two functions should be merged inside Masker # but are kept here for the moment while we need them # temporarily gor paste_mask_in_image
32.166667
105
0.587027
1d9dcef6f5f353c0ea5bbef7cb388e0ae27dc089
2,047
py
Python
certbot-ventilator/tests/conftest.py
gerrito333/letsencrypt-cert-manager
957ea555cc0f18fc3af9c275dc2fc5a8ab0a1668
[ "MIT" ]
2
2020-07-08T17:36:11.000Z
2020-07-08T18:20:59.000Z
certbot-ventilator/tests/conftest.py
gerrito333/letsencrypt-cert-manager
957ea555cc0f18fc3af9c275dc2fc5a8ab0a1668
[ "MIT" ]
2
2020-07-08T17:57:19.000Z
2020-07-08T18:00:38.000Z
certbot-ventilator/tests/conftest.py
gerrito333/letsencrypt-cert-manager
957ea555cc0f18fc3af9c275dc2fc5a8ab0a1668
[ "MIT" ]
1
2020-12-18T21:49:10.000Z
2020-12-18T21:49:10.000Z
"""Fixtures for tests.""" import json import boto3 from moto import mock_dynamodb2 import pytest from fixtures import LambdaContextMock import payloads
24.662651
69
0.651685
1d9dfc92ac3aa9a3c4519b13db031ca1c8e467a6
51,450
py
Python
smarc_bt/src/bt_actions.py
svbhat/smarc_missions
0fa9f858dff033a88385a156b5bb09b3f8fe2780
[ "BSD-3-Clause" ]
null
null
null
smarc_bt/src/bt_actions.py
svbhat/smarc_missions
0fa9f858dff033a88385a156b5bb09b3f8fe2780
[ "BSD-3-Clause" ]
null
null
null
smarc_bt/src/bt_actions.py
svbhat/smarc_missions
0fa9f858dff033a88385a156b5bb09b3f8fe2780
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # Ozer Ozkahraman (ozero@kth.se) import py_trees as pt import py_trees_ros as ptr import time import numpy as np import rospy import tf import actionlib # from move_base_msgs.msg import MoveBaseAction, MoveBaseGoal from smarc_msgs.msg import GotoWaypo...
36.437677
165
0.634772
1da32fba530eac4eeca4097a02c12b5c6d943941
464
py
Python
back-end/src/handler/common/image.py
gfxcc/san11-platform
1d085d818bc265f5ffa7e8a7279c3b686deed98c
[ "MIT" ]
2
2021-12-23T06:18:35.000Z
2021-12-23T06:18:39.000Z
back-end/src/handler/common/image.py
gfxcc/san11-platform-back-end
74f60d201e21396c5c8601ddc404077ebd97871f
[ "MIT" ]
9
2021-03-10T01:54:16.000Z
2022-03-27T21:38:34.000Z
back-end/src/handler/common/image.py
gfxcc/san11-platform-back-end
74f60d201e21396c5c8601ddc404077ebd97871f
[ "MIT" ]
null
null
null
from __future__ import annotations import logging import os import os.path from ..util import gcs logger = logging.getLogger(os.path.basename(__file__))
17.846154
54
0.650862
1da36580d402ceaa2d29765e76d1412b05300439
285
py
Python
diofant/tests/utilities/test_misc.py
rajkk1/diofant
6b361334569e4ec2e8c7d30dc324387a4ad417c2
[ "BSD-3-Clause" ]
57
2016-09-13T23:16:26.000Z
2022-03-29T06:45:51.000Z
diofant/tests/utilities/test_misc.py
rajkk1/diofant
6b361334569e4ec2e8c7d30dc324387a4ad417c2
[ "BSD-3-Clause" ]
402
2016-05-11T11:11:47.000Z
2022-03-31T14:27:02.000Z
diofant/tests/utilities/test_misc.py
rajkk1/diofant
6b361334569e4ec2e8c7d30dc324387a4ad417c2
[ "BSD-3-Clause" ]
20
2016-05-11T08:17:37.000Z
2021-09-10T09:15:51.000Z
from diofant.utilities.decorator import no_attrs_in_subclass __all__ = ()
15.833333
60
0.631579
1da4cb39ba5d9ec1a0b4a7639eec537b2e91f417
921
py
Python
ccc_client/app_repo/cli/upload_image.py
ohsu-comp-bio/ccc_client
433a7fad3d8e6817362678b783110f38ca81e0a7
[ "MIT" ]
null
null
null
ccc_client/app_repo/cli/upload_image.py
ohsu-comp-bio/ccc_client
433a7fad3d8e6817362678b783110f38ca81e0a7
[ "MIT" ]
null
null
null
ccc_client/app_repo/cli/upload_image.py
ohsu-comp-bio/ccc_client
433a7fad3d8e6817362678b783110f38ca81e0a7
[ "MIT" ]
null
null
null
import argparse from ccc_client.app_repo.AppRepoRunner import AppRepoRunner from ccc_client.utils import print_API_response parser = argparse.ArgumentParser() parser.set_defaults(runner=run) parser.add_argument( "--imageBlob", "-b", type=str, help="name of file or path" ) parser.add_argument( "--ima...
23.615385
74
0.693811
1daa69dd3bb44dba1f878107d4e4e2d32c7a2934
43
py
Python
utils/__init__.py
Lolik-Bolik/The-production-cells-formation-problem
8c4f5790b92fbca7c9c5c8143c7e70fb3bb8b78b
[ "MIT" ]
5
2020-06-01T18:58:14.000Z
2020-06-17T04:52:49.000Z
utils/__init__.py
Lolik-Bolik/The-production-cells-formation-problem
8c4f5790b92fbca7c9c5c8143c7e70fb3bb8b78b
[ "MIT" ]
null
null
null
utils/__init__.py
Lolik-Bolik/The-production-cells-formation-problem
8c4f5790b92fbca7c9c5c8143c7e70fb3bb8b78b
[ "MIT" ]
null
null
null
from .dataloader import CellsProductionData
43
43
0.906977
d517cc6539e57b415b0f04b37c782b97faf26a2f
4,586
py
Python
create-kickstart.py
ulzeraj/autobond-autoraid-kickstarter
935d9857fe31c9a70a4cdda5e872060abf09238d
[ "Unlicense" ]
null
null
null
create-kickstart.py
ulzeraj/autobond-autoraid-kickstarter
935d9857fe31c9a70a4cdda5e872060abf09238d
[ "Unlicense" ]
null
null
null
create-kickstart.py
ulzeraj/autobond-autoraid-kickstarter
935d9857fe31c9a70a4cdda5e872060abf09238d
[ "Unlicense" ]
null
null
null
#!/usr/bin/python2.6 #-*- coding: utf-8 -*- import signal import subprocess from glob import glob from os import listdir from os.path import basename, dirname label = 'CentOS_6.9_Final' discoverdisks = discoverdisks() source = getinstallmedia(discoverdisks) localdisks = sorted(getinternal(discoverdisks))[:2] ...
30.986486
126
0.703445
d518b9809b1e54d82285859972d83bf60fe776bf
6,023
py
Python
src/kalman_filter.py
Ashwin-Rajesh/Kalman_filter_carla
75887655043070842bb0d292bf511e8ddc8fd40c
[ "MIT" ]
1
2021-04-10T09:01:08.000Z
2021-04-10T09:01:08.000Z
src/kalman_filter.py
Ashwin-Rajesh/Kalman_filter_carla
75887655043070842bb0d292bf511e8ddc8fd40c
[ "MIT" ]
1
2021-11-22T10:42:11.000Z
2021-11-22T10:42:11.000Z
src/kalman_filter.py
Ashwin-Rajesh/Kalman_filter_carla
75887655043070842bb0d292bf511e8ddc8fd40c
[ "MIT" ]
3
2021-04-06T08:41:23.000Z
2021-09-24T09:50:10.000Z
#!/usr/bin/env python3 # MIT License # # Copyright (c) 2021 Ashwin Rajesh # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to ...
35.429412
122
0.492612
d519202436d106e402d5a165429654cca28794e3
2,096
py
Python
fileMover.py
ioawnen/fileMover2
4f5746e1d3261793403ef7d95c388792f58c3028
[ "MIT" ]
null
null
null
fileMover.py
ioawnen/fileMover2
4f5746e1d3261793403ef7d95c388792f58c3028
[ "MIT" ]
null
null
null
fileMover.py
ioawnen/fileMover2
4f5746e1d3261793403ef7d95c388792f58c3028
[ "MIT" ]
null
null
null
import re import sre_constants from fileIO import * from moveTasks import MoveTasks, MoveTaskIface import logging if __name__ == '__main__': main()
35.525424
101
0.510496
d519270c80775a7bacb99ae959f7231648e44d40
222
py
Python
ckan_cloud_operator/drivers/kubectl/driver.py
MuhammadIsmailShahzad/ckan-cloud-operator
35a4ca88c4908d81d1040a21fca8904e77c4cded
[ "MIT" ]
14
2019-11-18T12:01:03.000Z
2021-09-15T15:29:50.000Z
ckan_cloud_operator/drivers/kubectl/driver.py
MuhammadIsmailShahzad/ckan-cloud-operator
35a4ca88c4908d81d1040a21fca8904e77c4cded
[ "MIT" ]
52
2019-09-09T14:22:41.000Z
2021-09-29T08:29:24.000Z
ckan_cloud_operator/drivers/kubectl/driver.py
MuhammadIsmailShahzad/ckan-cloud-operator
35a4ca88c4908d81d1040a21fca8904e77c4cded
[ "MIT" ]
8
2019-10-05T12:46:25.000Z
2021-09-15T15:13:05.000Z
from ckan_cloud_operator import kubectl
37
102
0.765766
d51abf3de14a0e2363d262ce1c07a37057407501
2,121
py
Python
wafextras/lyx2tex.py
tjhunter/phd-thesis-tjhunter
8238e156b5dba9940bdda2a46cfffb62699f364d
[ "Apache-2.0" ]
1
2018-03-25T11:36:21.000Z
2018-03-25T11:36:21.000Z
wafextras/lyx2tex.py
tjhunter/phd-thesis-tjhunter
8238e156b5dba9940bdda2a46cfffb62699f364d
[ "Apache-2.0" ]
null
null
null
wafextras/lyx2tex.py
tjhunter/phd-thesis-tjhunter
8238e156b5dba9940bdda2a46cfffb62699f364d
[ "Apache-2.0" ]
null
null
null
""" Converts some lyx files to the latex format. Note: everything in the file is thrown away until a section or the workd "stopskip" is found. This way, all the preamble added by lyx is removed. """ from waflib import Logs from waflib import TaskGen,Task from waflib import Utils from waflib.Configure import conf def ...
31.191176
119
0.666195
d51cc9225f7dcd43ef79699c1d6c59de3a5d91bf
492
py
Python
monero_glue/xmr/core/pycompat.py
ph4r05/monero-agent
0bac0e6f33142b2bb885565bfd1ef8ac04559280
[ "MIT" ]
20
2018-04-05T22:06:10.000Z
2021-09-18T10:43:44.000Z
monero_glue/xmr/core/pycompat.py
ph4r05/monero-agent
0bac0e6f33142b2bb885565bfd1ef8ac04559280
[ "MIT" ]
null
null
null
monero_glue/xmr/core/pycompat.py
ph4r05/monero-agent
0bac0e6f33142b2bb885565bfd1ef8ac04559280
[ "MIT" ]
5
2018-08-06T15:06:04.000Z
2021-07-16T01:58:43.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Author: Dusan Klinec, ph4r05, 2018 import operator import sys # Useful for very coarse version differentiation. PY3 = sys.version_info[0] == 3 if PY3: indexbytes = operator.getitem intlist2bytes = bytes int2byte = operator.methodcaller("to_bytes", 1, "big")...
19.68
58
0.648374
d51eac1b5ab841692ba733e2c183650a99fc9aed
2,324
py
Python
train.py
liaojh1998/RNW
412764400a4a555fb8245ab51047019429d1141f
[ "MIT" ]
null
null
null
train.py
liaojh1998/RNW
412764400a4a555fb8245ab51047019429d1141f
[ "MIT" ]
null
null
null
train.py
liaojh1998/RNW
412764400a4a555fb8245ab51047019429d1141f
[ "MIT" ]
null
null
null
import os.path as osp from argparse import ArgumentParser from mmcv import Config from pytorch_lightning import Trainer, seed_everything from pytorch_lightning.callbacks import ModelCheckpoint from torch.utils.data import DataLoader from datasets import build_dataset from models import MODELS import torch if __na...
30.578947
113
0.596816
d51ec3243c5401e7f40b444326beab4b487e1f76
11,327
py
Python
Audio_record_and_classifier_framework/helpers.py
stanFurrer/Multimodal-solution-for-grasp-stability-prediction
b7d07a217e2a4846f3fe782fe7c3f4942f3299b3
[ "MIT" ]
null
null
null
Audio_record_and_classifier_framework/helpers.py
stanFurrer/Multimodal-solution-for-grasp-stability-prediction
b7d07a217e2a4846f3fe782fe7c3f4942f3299b3
[ "MIT" ]
null
null
null
Audio_record_and_classifier_framework/helpers.py
stanFurrer/Multimodal-solution-for-grasp-stability-prediction
b7d07a217e2a4846f3fe782fe7c3f4942f3299b3
[ "MIT" ]
null
null
null
""" This Script contain the different function used in the framework part1. Data processing part2. Prediction and analisys part3. Plotting """ import numpy as np import librosa import matplotlib.pyplot as plt from sklearn import metrics import os import pickle import time import struct """ Data processing """ def g...
33.71131
116
0.611636
d51ed2677db13fc8507ae2a63e4d95395e17a141
15,067
py
Python
pdfimage/jb2.py
MatthewDaws/PDFImage
c5bcdbc324a28271fb9fa006989270ef0d1ea0d5
[ "MIT" ]
3
2019-06-11T14:12:15.000Z
2022-02-17T10:57:20.000Z
pdfimage/jb2.py
MatthewDaws/PDFImage
c5bcdbc324a28271fb9fa006989270ef0d1ea0d5
[ "MIT" ]
null
null
null
pdfimage/jb2.py
MatthewDaws/PDFImage
c5bcdbc324a28271fb9fa006989270ef0d1ea0d5
[ "MIT" ]
null
null
null
""" jb2.py ~~~~~~ Use JBIG2, and an external compressor, for black and white images. """ import os, sys, subprocess, struct, zipfile, random from . import pdf_image from . import pdf_write from . import pdf import PIL.Image as _PILImage _default_jbig2_exe = os.path.join(os.path.abspath(".."), "agl-jbig2enc", "jbig2....
37.387097
113
0.605761
d52024545b971d12235af9a15abe55f96fe6aa8a
1,581
py
Python
python/mpopt/ct/cmdline/jug.py
vislearn/libmpopt
11c9e99bedc7fb5dd2e11bff69c60d4ce974f525
[ "MIT" ]
1
2021-03-23T06:45:42.000Z
2021-03-23T06:45:42.000Z
python/mpopt/ct/cmdline/jug.py
vislearn/libmpopt
11c9e99bedc7fb5dd2e11bff69c60d4ce974f525
[ "MIT" ]
1
2022-01-18T03:17:09.000Z
2022-01-18T03:17:09.000Z
python/mpopt/ct/cmdline/jug.py
vislearn/libmpopt
11c9e99bedc7fb5dd2e11bff69c60d4ce974f525
[ "MIT" ]
2
2021-03-03T14:01:52.000Z
2022-01-18T02:45:55.000Z
#!/usr/bin/env python3 import argparse import sys from mpopt import ct, utils if __name__ == '__main__': parser = argparse.ArgumentParser(prog='ct_jug', description='Optimizer for *.jug cell tracking models.') parser.add_argument('-B', '--batch-size', type=int, default=ct.DEFAULT_BATCH_SIZE) parser.add_...
37.642857
114
0.667932
d520c0da5ba138e741aa09521a01f1f65620aa03
1,436
py
Python
setup.py
CybercentreCanada/assemblyline-v4-p2compat
96aa268f672f8d226eb9f4234d2e97c1a39b7b66
[ "MIT" ]
null
null
null
setup.py
CybercentreCanada/assemblyline-v4-p2compat
96aa268f672f8d226eb9f4234d2e97c1a39b7b66
[ "MIT" ]
1
2020-09-09T13:26:52.000Z
2020-09-09T13:26:52.000Z
setup.py
CybercentreCanada/assemblyline-v4-p2compat
96aa268f672f8d226eb9f4234d2e97c1a39b7b66
[ "MIT" ]
2
2020-09-08T16:59:57.000Z
2020-09-09T12:08:07.000Z
import os from setuptools import setup, find_packages # For development and local builds use this version number, but for real builds replace it # with the tag found in the environment package_version = "4.0.0.dev0" if 'BITBUCKET_TAG' in os.environ: package_version = os.environ['BITBUCKET_TAG'].lstrip('v') elif '...
34.190476
95
0.685237
d5220e82bf5048293d79285d2100fa6124ce5c82
695
py
Python
Arrays and Strings/LongestSubstringWithoutRepeating.py
dileeppandey/hello-interview
78f6cf4e2da4106fd07f4bd86247026396075c69
[ "MIT" ]
null
null
null
Arrays and Strings/LongestSubstringWithoutRepeating.py
dileeppandey/hello-interview
78f6cf4e2da4106fd07f4bd86247026396075c69
[ "MIT" ]
null
null
null
Arrays and Strings/LongestSubstringWithoutRepeating.py
dileeppandey/hello-interview
78f6cf4e2da4106fd07f4bd86247026396075c69
[ "MIT" ]
1
2020-02-12T16:57:46.000Z
2020-02-12T16:57:46.000Z
""" https://leetcode.com/problems/longest-substring-without-repeating-characters/ Given a string, find the length of the longest substring without repeating characters. """ s=Solution() print(s.lengthOfLongestSubstring("umvejcuuk"))
27.8
86
0.630216
d522a2438ec803dddc6ee2c08ebc2b5bae1d14b5
388
py
Python
core/src/trezor/messages/TxAck.py
Kayuii/trezor-crypto
6556616681a4e2d7e18817e8692d4f6e041dee01
[ "MIT" ]
null
null
null
core/src/trezor/messages/TxAck.py
Kayuii/trezor-crypto
6556616681a4e2d7e18817e8692d4f6e041dee01
[ "MIT" ]
1
2019-02-08T00:22:42.000Z
2019-02-13T09:41:54.000Z
core/src/trezor/messages/TxAck.py
Kayuii/trezor-crypto
6556616681a4e2d7e18817e8692d4f6e041dee01
[ "MIT" ]
2
2019-02-07T23:57:09.000Z
2020-10-21T07:07:27.000Z
# Automatically generated by pb2py # fmt: off import protobuf as p from .TransactionType import TransactionType
17.636364
44
0.600515
d52368f2b3c16c6294cb4e60b4f69e820a0d92d4
12,476
py
Python
balrog/__main__.py
samhorsfield96/ggCaller
01a32b85e3221e9e3d3552095c439dfc89cd70b6
[ "MIT" ]
15
2020-08-26T10:31:37.000Z
2022-03-03T15:42:04.000Z
balrog/__main__.py
samhorsfield96/ggCaller
01a32b85e3221e9e3d3552095c439dfc89cd70b6
[ "MIT" ]
null
null
null
balrog/__main__.py
samhorsfield96/ggCaller
01a32b85e3221e9e3d3552095c439dfc89cd70b6
[ "MIT" ]
null
null
null
import os import tarfile import time import pickle import numpy as np from Bio.Seq import Seq from scipy.special import expit from scipy.special import logit import torch import torch.nn.functional as F """ Get directories for model and seengenes """ module_dir = os.path.dirname(os.path.realpath(__file__)) model_dir ...
32.321244
106
0.605162
d52452bbbdfe7f2a5739d5992e91cfe848ffbc23
154
py
Python
toal/annotators/AbstractAnnotator.py
Bhaskers-Blu-Org1/text-oriented-active-learning
facfb40673a59e43391b7bdb508e612dff1988d9
[ "MIT" ]
4
2020-10-23T14:42:30.000Z
2021-06-10T13:29:04.000Z
toal/annotators/AbstractAnnotator.py
Bhaskers-Blu-Org1/text-oriented-active-learning
facfb40673a59e43391b7bdb508e612dff1988d9
[ "MIT" ]
null
null
null
toal/annotators/AbstractAnnotator.py
Bhaskers-Blu-Org1/text-oriented-active-learning
facfb40673a59e43391b7bdb508e612dff1988d9
[ "MIT" ]
1
2020-07-30T10:35:09.000Z
2020-07-30T10:35:09.000Z
import abc
22
47
0.733766
d52485559a1125bc8acdb1957ce05811a8034901
1,046
py
Python
code/HHV2020_07/Adafruit_Trinket_Neopixel_Strip_Cycle/main.py
gowenrw/BSidesDFW_2020_HHV
accfe2d4ba91f8899c3d4dca75c13c220e224960
[ "MIT" ]
null
null
null
code/HHV2020_07/Adafruit_Trinket_Neopixel_Strip_Cycle/main.py
gowenrw/BSidesDFW_2020_HHV
accfe2d4ba91f8899c3d4dca75c13c220e224960
[ "MIT" ]
null
null
null
code/HHV2020_07/Adafruit_Trinket_Neopixel_Strip_Cycle/main.py
gowenrw/BSidesDFW_2020_HHV
accfe2d4ba91f8899c3d4dca75c13c220e224960
[ "MIT" ]
null
null
null
import board, time import neopixel # Define Neopixels LED7_PIN = board.D0 # pin that the NeoPixel is connected to # Most Neopixels have a color order of GRB or GRBW some use RGB LED7_ORDER = neopixel.GRB # pixel color channel order # Create NeoPixel object LED6 = neopixel.NeoPixel(board.D1, 1, pixel_order=neopixel.R...
29.055556
63
0.614723
d52c443ce49f74f8bcfed2e21fe8f2f3f85e5084
263
py
Python
abc/abc163/abc163c-1.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
1
2019-08-21T00:49:34.000Z
2019-08-21T00:49:34.000Z
abc/abc163/abc163c-1.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
abc/abc163/abc163c-1.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
N = int(input()) A = list(map(int, input().split())) d = {} for i in range(N - 1): if A[i] in d: d[A[i]].append(i + 2) else: d[A[i]] = [i + 2] for i in range(1, N + 1): if i in d: print(len(d[i])) else: print(0)
15.470588
35
0.422053
d52dbcb5f5f927e8beee568c91222838c4d49f6e
11,606
py
Python
cross_correlation.py
sbargy/cross-correlation
ee6f991758dbe6715d8cbf3ec03b07407f2acdf1
[ "MIT" ]
null
null
null
cross_correlation.py
sbargy/cross-correlation
ee6f991758dbe6715d8cbf3ec03b07407f2acdf1
[ "MIT" ]
null
null
null
cross_correlation.py
sbargy/cross-correlation
ee6f991758dbe6715d8cbf3ec03b07407f2acdf1
[ "MIT" ]
1
2020-06-23T21:06:33.000Z
2020-06-23T21:06:33.000Z
#!/usr/bin/env python3 # system imports import argparse import sys # obspy imports from obspy.clients.fdsn import Client from obspy import read, read_inventory, UTCDateTime from scipy import signal from obspy.signal.cross_correlation import correlate, xcorr_max from obspy.clients.fdsn.header import FDSNNoDataExceptio...
41.45
126
0.525418
d52e9d0960091a82d4473fa8f90e1a3e2e15884d
32,810
py
Python
djcloudbridge/serializers.py
almahmoud/djcloudbridge
0a00ccefb217cc3962315019405dd176956c1830
[ "MIT" ]
null
null
null
djcloudbridge/serializers.py
almahmoud/djcloudbridge
0a00ccefb217cc3962315019405dd176956c1830
[ "MIT" ]
null
null
null
djcloudbridge/serializers.py
almahmoud/djcloudbridge
0a00ccefb217cc3962315019405dd176956c1830
[ "MIT" ]
null
null
null
import urllib from cloudbridge.cloud.interfaces.resources import TrafficDirection from rest_auth.serializers import UserDetailsSerializer from rest_framework import serializers from rest_framework.reverse import reverse from . import models from . import view_helpers from .drf_helpers import CustomHyperlinkedIdenti...
38.6
79
0.65666
d52fc94190a48ed5868310e2aad92eeeb9feb60b
866
py
Python
what_apps/mooncalendar/admin.py
SlashRoot/WHAT
69e78d01065142446234e77ea7c8c31e3482af29
[ "MIT" ]
null
null
null
what_apps/mooncalendar/admin.py
SlashRoot/WHAT
69e78d01065142446234e77ea7c8c31e3482af29
[ "MIT" ]
null
null
null
what_apps/mooncalendar/admin.py
SlashRoot/WHAT
69e78d01065142446234e77ea7c8c31e3482af29
[ "MIT" ]
null
null
null
from what_apps.mooncalendar.models import Event from what_apps.mooncalendar.models import Moon from django.contrib import admin admin.site.register(Event, EventAdmin) admin.site.register(Moon, MoonAdmin)
30.928571
63
0.575058
d53250d431f3b7786477248a4bd086c3905e3d46
4,019
py
Python
kvdbclient/bigtable/utils.py
seung-lab/KVDbClient
4b82ded0c19b89cc9887ed60998583989a086506
[ "MIT" ]
null
null
null
kvdbclient/bigtable/utils.py
seung-lab/KVDbClient
4b82ded0c19b89cc9887ed60998583989a086506
[ "MIT" ]
null
null
null
kvdbclient/bigtable/utils.py
seung-lab/KVDbClient
4b82ded0c19b89cc9887ed60998583989a086506
[ "MIT" ]
null
null
null
from typing import Dict from typing import Union from typing import Iterable from typing import Optional from datetime import datetime from datetime import timedelta import numpy as np from google.cloud.bigtable.row_data import PartialRowData from google.cloud.bigtable.row_filters import RowFilter from . import attri...
34.646552
93
0.718089
d5341906de628d8bd34733d0c157d31c4b909dfe
551
py
Python
Introducing_CircuitPlaygroundExpress/CircuitPlaygroundExpress_LightSensor_cpx.py
joewalk102/Adafruit_Learning_System_Guides
2bda607f8c433c661a2d9d40b4db4fd132334c9a
[ "MIT" ]
665
2017-09-27T21:20:14.000Z
2022-03-31T09:09:25.000Z
Introducing_CircuitPlaygroundExpress/CircuitPlaygroundExpress_LightSensor_cpx.py
joewalk102/Adafruit_Learning_System_Guides
2bda607f8c433c661a2d9d40b4db4fd132334c9a
[ "MIT" ]
641
2017-10-03T19:46:37.000Z
2022-03-30T18:28:46.000Z
Introducing_CircuitPlaygroundExpress/CircuitPlaygroundExpress_LightSensor_cpx.py
joewalk102/Adafruit_Learning_System_Guides
2bda607f8c433c661a2d9d40b4db4fd132334c9a
[ "MIT" ]
734
2017-10-02T22:47:38.000Z
2022-03-30T14:03:51.000Z
# CircuitPlaygroundExpress_LightSensor # reads the on-board light sensor and graphs the brighness with NeoPixels import time from adafruit_circuitplayground.express import cpx from simpleio import map_range cpx.pixels.brightness = 0.05 while True: # light value remaped to pixel position peak = map_range(cpx...
22.958333
73
0.653358
d534b5964680d262bdbcff4ab014dca342de302c
3,258
py
Python
mpc.py
clovaai/subword-qac
df7a9a557a594712f757adccf86fdaf365bff601
[ "MIT" ]
65
2019-09-04T01:53:31.000Z
2022-03-13T09:39:47.000Z
mpc.py
naver-ai/subword-qac
df7a9a557a594712f757adccf86fdaf365bff601
[ "MIT" ]
3
2020-10-09T14:24:54.000Z
2021-08-24T06:23:09.000Z
mpc.py
naver-ai/subword-qac
df7a9a557a594712f757adccf86fdaf365bff601
[ "MIT" ]
13
2019-09-09T11:19:43.000Z
2021-08-30T23:10:06.000Z
""" Copyright (c) 2019-present NAVER Corp. MIT License """ import os import sys import json import logging import argparse import pickle from tqdm import tqdm from dataset import read_data, PrefixDataset from trie import Trie from metric import calc_rank, calc_partial_rank, mrr_summary, mrl_summary logging.basicCo...
33.244898
105
0.656845
d534d824de326bc7eb62d09547d2ef9f6480689c
813
py
Python
old_source_code/Experiment 4 Extended Game Convergency/plotHistory.py
prasoonpatidar/multiagentRL-resource-sharing
e63ba7fc3c7ab019e9fd109cd45b739e3322152f
[ "MIT" ]
null
null
null
old_source_code/Experiment 4 Extended Game Convergency/plotHistory.py
prasoonpatidar/multiagentRL-resource-sharing
e63ba7fc3c7ab019e9fd109cd45b739e3322152f
[ "MIT" ]
null
null
null
old_source_code/Experiment 4 Extended Game Convergency/plotHistory.py
prasoonpatidar/multiagentRL-resource-sharing
e63ba7fc3c7ab019e9fd109cd45b739e3322152f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Apr 16 18:18:29 2020 @author: xuhuiying """ import numpy as np import matplotlib.pyplot as plt # plt.savefig('%sWith%dSellersAnd%dBuyer.jpg'%(fileNamePre,N,M), dpi=300,bbox_inches = 'tight') # plt.show()
32.52
98
0.682657
d535465b4cadf1f4ee90d4f52f137ea35dc5bc11
56
py
Python
dominion/cards/__init__.py
billletson/dominion
ad430e20aa1615758091df1ca39a5fc7313e921e
[ "MIT" ]
null
null
null
dominion/cards/__init__.py
billletson/dominion
ad430e20aa1615758091df1ca39a5fc7313e921e
[ "MIT" ]
null
null
null
dominion/cards/__init__.py
billletson/dominion
ad430e20aa1615758091df1ca39a5fc7313e921e
[ "MIT" ]
null
null
null
from .constants import * from .actions import ACTIONS
18.666667
29
0.767857
d535a3e83f35b85829a2417b8b9cf8c664d410a0
1,497
py
Python
VMTranslator.py
Nismirno/n2tVMTranslator
0274f5a51a5e3209e3536c1de5b4ff8b3824a116
[ "MIT" ]
null
null
null
VMTranslator.py
Nismirno/n2tVMTranslator
0274f5a51a5e3209e3536c1de5b4ff8b3824a116
[ "MIT" ]
null
null
null
VMTranslator.py
Nismirno/n2tVMTranslator
0274f5a51a5e3209e3536c1de5b4ff8b3824a116
[ "MIT" ]
null
null
null
#!/usr/bin/env python from VMParser import Parser from VMCodewriter import CodeWriter from pathlib import Path import sys if __name__ == "__main__": main()
28.788462
56
0.637275
d535db0b037e93b7fd2d6697df93c4c6ea03dea8
19,343
py
Python
python/package/solution.py
pchtsp/ROADEF2018
442dfe919a41fa993155226b601625917e632577
[ "MIT" ]
null
null
null
python/package/solution.py
pchtsp/ROADEF2018
442dfe919a41fa993155226b601625917e632577
[ "MIT" ]
null
null
null
python/package/solution.py
pchtsp/ROADEF2018
442dfe919a41fa993155226b601625917e632577
[ "MIT" ]
null
null
null
import package.data_input as di import ete3 import math import package.instance as inst import package.params as pm import numpy as np import matplotlib try: import tkinter except: matplotlib.use('Qt5Agg', warn=False, force=True) import matplotlib.pyplot as plt import palettable as pal import pprint as pp impor...
39.964876
132
0.596133
d535e635e6b66ba70c20fb56aebb09ef9c95a99d
2,435
py
Python
tests/engine/training/test_fingerprinting.py
fintzd/rasa
6359be5509c7d87cd29c2ab5149bc45e843fea85
[ "Apache-2.0" ]
9,701
2019-04-16T15:46:27.000Z
2022-03-31T11:52:18.000Z
tests/engine/training/test_fingerprinting.py
fintzd/rasa
6359be5509c7d87cd29c2ab5149bc45e843fea85
[ "Apache-2.0" ]
6,420
2019-04-16T15:58:22.000Z
2022-03-31T17:54:35.000Z
tests/engine/training/test_fingerprinting.py
fintzd/rasa
6359be5509c7d87cd29c2ab5149bc45e843fea85
[ "Apache-2.0" ]
3,063
2019-04-16T15:23:52.000Z
2022-03-31T00:01:12.000Z
import inspect from unittest.mock import Mock from _pytest.monkeypatch import MonkeyPatch from rasa.core.policies.ted_policy import TEDPolicy from rasa.engine.training import fingerprinting from rasa.nlu.classifiers.diet_classifier import DIETClassifier from rasa.nlu.selectors.response_selector import ResponseSelector...
30.822785
88
0.725667
d535fc7f00accf0db8f763c0a2459c7d2e6f66c8
10,068
py
Python
smarty/cli_smirky.py
openforcefield/smarty
882d54b6d6d0fada748c71789964b07be2210a6a
[ "MIT" ]
10
2018-03-29T15:31:50.000Z
2022-02-17T14:04:37.000Z
smarty/cli_smirky.py
openforcefield/smarty
882d54b6d6d0fada748c71789964b07be2210a6a
[ "MIT" ]
14
2017-11-22T21:27:25.000Z
2019-01-24T04:50:42.000Z
smarty/cli_smirky.py
openforcefield/smarty
882d54b6d6d0fada748c71789964b07be2210a6a
[ "MIT" ]
2
2019-03-05T22:52:26.000Z
2022-02-17T14:05:06.000Z
""" Command-line driver example for SMIRKY. """ import sys import string import time from optparse import OptionParser # For parsing of command line arguments import smarty from openforcefield.utils import utils import os import math import copy import re import numpy from numpy import random
53.839572
309
0.689114
d53653c57078f22dc6820daf96fa072146e66f13
100
py
Python
zim/plugins/zimclip/tests/__init__.py
stiles69/bin
a327326ae22933e44c7ee2268f973dcedf7c8b3c
[ "MIT" ]
null
null
null
zim/plugins/zimclip/tests/__init__.py
stiles69/bin
a327326ae22933e44c7ee2268f973dcedf7c8b3c
[ "MIT" ]
null
null
null
zim/plugins/zimclip/tests/__init__.py
stiles69/bin
a327326ae22933e44c7ee2268f973dcedf7c8b3c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging import os import sys import unittest # FIXME Do some tests
11.111111
23
0.7
d536849becbcd8fd7d2759bd7a26ed03c8235dce
9,800
py
Python
fastai/classifyAllSnippets.py
jtbr/tv-news-quality
0aa57a67ff3f3207e5cdf4129d58ea967e698e90
[ "MIT" ]
null
null
null
fastai/classifyAllSnippets.py
jtbr/tv-news-quality
0aa57a67ff3f3207e5cdf4129d58ea967e698e90
[ "MIT" ]
null
null
null
fastai/classifyAllSnippets.py
jtbr/tv-news-quality
0aa57a67ff3f3207e5cdf4129d58ea967e698e90
[ "MIT" ]
null
null
null
from collections import defaultdict, deque from datetime import datetime import pandas as pd import random import numpy as np import sys sys.path.append("..") # Adds higher directory to python modules path. from common import Label_DbFields, Synthetic_Category_Group_Names, Other_Synthetic_Group_Names, MultiLabel_Group_...
52.12766
205
0.655612
d536b7482bc290966d04a1055fdea35f0784a032
3,385
py
Python
LDDMM_Python/lddmm_python/modules/io/anim3D.py
tt6746690/lddmm-ot
98e45d44969221b0fc8206560d9b7a655ef7e137
[ "MIT" ]
48
2017-08-04T03:30:22.000Z
2022-03-09T03:24:11.000Z
LDDMM_Python/lddmm_python/modules/io/anim3D.py
hushunbo/lddmm-ot
5af26fe32ae440c598ed403ce2876e98d6e1c692
[ "MIT" ]
null
null
null
LDDMM_Python/lddmm_python/modules/io/anim3D.py
hushunbo/lddmm-ot
5af26fe32ae440c598ed403ce2876e98d6e1c692
[ "MIT" ]
15
2017-09-30T18:55:48.000Z
2021-04-27T18:27:55.000Z
# We use a slightly hacked version of the plot.ly js/python library lddmm_python = __import__(__name__.split('.')[0]) print(lddmm_python) import lddmm_python.lib.plotly as plotly import re from pylab import * from IPython.html.widgets import interact from IPython.display import HTML, display from pprint import pprint ...
28.686441
113
0.644313
d537bbba3a9ba3ab580ea135450c563c974dfe24
3,180
py
Python
driftbase/api/users.py
directivegames/drift-base
5fc7d4686c56e93fc22178f3b1bb49239d7eee45
[ "MIT" ]
1
2021-09-04T01:45:44.000Z
2021-09-04T01:45:44.000Z
driftbase/api/users.py
directivegames/drift-base
5fc7d4686c56e93fc22178f3b1bb49239d7eee45
[ "MIT" ]
30
2020-12-09T04:10:26.000Z
2022-03-02T02:34:49.000Z
driftbase/api/users.py
directivegames/drift-base
5fc7d4686c56e93fc22178f3b1bb49239d7eee45
[ "MIT" ]
null
null
null
import logging import http.client as http_client from flask import url_for, g from flask.views import MethodView import marshmallow as ma from flask_smorest import Blueprint, abort from marshmallow_sqlalchemy import SQLAlchemyAutoSchema from drift.core.extensions.urlregistry import Endpoints from driftbase.models.db i...
27.894737
96
0.654403
d539894b90e242423be7b5a80d8dab14133e7cdc
1,342
py
Python
xlsx2x.py
KhanShaheb34/xlsx2pdf
2ed6c687ac1ae664fb0599c8b9138a3bdc0cd828
[ "MIT" ]
null
null
null
xlsx2x.py
KhanShaheb34/xlsx2pdf
2ed6c687ac1ae664fb0599c8b9138a3bdc0cd828
[ "MIT" ]
null
null
null
xlsx2x.py
KhanShaheb34/xlsx2pdf
2ed6c687ac1ae664fb0599c8b9138a3bdc0cd828
[ "MIT" ]
null
null
null
import os import cv2 import jpype import shutil import weasyprint from bs4 import BeautifulSoup jpype.startJVM() from asposecells.api import *
25.807692
68
0.612519
d53a3a12bcf8b7a3bf6b3520d6ff05036c95f9f7
6,912
py
Python
test/test_one.py
hellhound/pyejdb
cdb8285eef5417cd1fcaf84ecdfa2f2cb0fa6a18
[ "Python-2.0", "OLDAP-2.3" ]
null
null
null
test/test_one.py
hellhound/pyejdb
cdb8285eef5417cd1fcaf84ecdfa2f2cb0fa6a18
[ "Python-2.0", "OLDAP-2.3" ]
null
null
null
test/test_one.py
hellhound/pyejdb
cdb8285eef5417cd1fcaf84ecdfa2f2cb0fa6a18
[ "Python-2.0", "OLDAP-2.3" ]
2
2015-08-11T17:00:17.000Z
2021-01-04T08:34:47.000Z
#-*- coding: utf8 -*- # ************************************************************************************************* # Python API for EJDB database library http://ejdb.org # Copyright (C) 2012-2013 Softmotions Ltd. # # This file is part of EJDB. # EJDB is free software; you can redistribute it and/or modify i...
34.38806
99
0.552228
d53acbe8d2fd10ef53b5cd93c9f759efa5b93c91
242
py
Python
accounts/urls.py
bekzod-fayzikuloff/djChat
d58e882c26d461b110c8b3277998108214d72fd5
[ "MIT" ]
null
null
null
accounts/urls.py
bekzod-fayzikuloff/djChat
d58e882c26d461b110c8b3277998108214d72fd5
[ "MIT" ]
null
null
null
accounts/urls.py
bekzod-fayzikuloff/djChat
d58e882c26d461b110c8b3277998108214d72fd5
[ "MIT" ]
null
null
null
from django.urls import path from . import views app_name = 'users' urlpatterns = [ path('<int:pk>/', views.user_profile, name='user_profile'), path('messages/<int:pk>/', views.PrivateMessageView.as_view(), name='private_message') ]
26.888889
90
0.706612
d53b07a8a498ac3b78d4cd3571eb5f9210cc5922
2,029
py
Python
vkmz/__main__.py
HegemanLab/VKMZ
5876c24913a3b778980b6d1d4046f4c481222005
[ "MIT" ]
1
2022-01-12T15:41:00.000Z
2022-01-12T15:41:00.000Z
vkmz/__main__.py
HegemanLab/VanKrevelin_galaxy_wrapper
5876c24913a3b778980b6d1d4046f4c481222005
[ "MIT" ]
2
2021-06-09T14:41:47.000Z
2021-06-09T17:56:30.000Z
vkmz/__main__.py
HegemanLab/VanKrevelin_galaxy_wrapper
5876c24913a3b778980b6d1d4046f4c481222005
[ "MIT" ]
2
2018-07-26T21:55:17.000Z
2018-08-01T17:59:00.000Z
#!/usr/bin/env python def main(): """Main flow control of vkmz Read input data into feature objects. Results in dictionaries for samples and features. Then, make predictions for features. Features without predictions are removed by default. Finally, write results. """ from vkmz.ar...
32.206349
81
0.638245
d53da663fdb9651c945c63d8d3b450c89e7a3a5a
1,076
py
Python
python/problem-080.py
mbuhot/mbuhot-euler-solutions
30066543cfd2d84976beb0605839750b64f4b8ef
[ "MIT" ]
1
2015-12-18T13:25:41.000Z
2015-12-18T13:25:41.000Z
python/problem-080.py
mbuhot/mbuhot-euler-solutions
30066543cfd2d84976beb0605839750b64f4b8ef
[ "MIT" ]
null
null
null
python/problem-080.py
mbuhot/mbuhot-euler-solutions
30066543cfd2d84976beb0605839750b64f4b8ef
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 from math import sqrt from decimal import getcontext, Decimal description = ''' Square root digital expansion Problem 80 It is well known that if the square root of a natural number is not an integer, then it is irrational. The decimal expansion of such square roots is infinite without any rep...
34.709677
195
0.746283
d53df78809e1584483410583a6ebc437b5a2b0ef
36
py
Python
indra/assemblers/tsv/__init__.py
zebulon2/indra
7727ddcab52ad8012eb6592635bfa114e904bd48
[ "BSD-2-Clause" ]
136
2016-02-11T22:06:37.000Z
2022-03-31T17:26:20.000Z
indra/assemblers/tsv/__init__.py
zebulon2/indra
7727ddcab52ad8012eb6592635bfa114e904bd48
[ "BSD-2-Clause" ]
748
2016-02-03T16:27:56.000Z
2022-03-09T14:27:54.000Z
indra/assemblers/tsv/__init__.py
zebulon2/indra
7727ddcab52ad8012eb6592635bfa114e904bd48
[ "BSD-2-Clause" ]
56
2015-08-28T14:03:44.000Z
2022-02-04T06:15:55.000Z
from .assembler import TsvAssembler
18
35
0.861111
d53e507f1e8d5bf59c86b10b14c714438e608427
971
py
Python
binary_classifiers/KerasLogReg.py
zcikojevic/toxic-language-detection
32e0e83fbc5d341dbb77bfa677f78dce82960861
[ "MIT" ]
1
2019-07-02T08:12:21.000Z
2019-07-02T08:12:21.000Z
binary_classifiers/KerasLogReg.py
zcikojevic/toxic-language-detection
32e0e83fbc5d341dbb77bfa677f78dce82960861
[ "MIT" ]
null
null
null
binary_classifiers/KerasLogReg.py
zcikojevic/toxic-language-detection
32e0e83fbc5d341dbb77bfa677f78dce82960861
[ "MIT" ]
null
null
null
from keras.layers import Dense from keras.models import Sequential from keras.wrappers.scikit_learn import KerasClassifier from run_binary_classifier import run from keras import regularizers param_grid = { 'bag_of_words__stop_words': ['english'], 'bag_of_words__ngram_range': [(1, 2)], 'bag_of...
31.322581
91
0.658084
d53f500a66c4a9814996ed105b5158ad59abc0ad
1,910
py
Python
phantomapp/migrations/0009_order_orderproduct.py
t7hm1/My-django-project
cf1a86a5134a86af510f9392a748f129954d1c76
[ "MIT" ]
5
2018-09-21T13:56:19.000Z
2019-10-23T23:48:20.000Z
phantomapp/migrations/0009_order_orderproduct.py
mach1el/My-django-project
cf1a86a5134a86af510f9392a748f129954d1c76
[ "MIT" ]
null
null
null
phantomapp/migrations/0009_order_orderproduct.py
mach1el/My-django-project
cf1a86a5134a86af510f9392a748f129954d1c76
[ "MIT" ]
1
2019-01-11T10:41:55.000Z
2019-01-11T10:41:55.000Z
# Generated by Django 2.1 on 2018-09-06 02:03 from django.db import migrations, models import django.db.models.deletion
42.444444
146
0.575916
d53f7a92ad96592864829c170139b3f620bcb9e7
109
py
Python
aiohttp_devtools/start/__init__.py
antonmyronyuk/aiohttp-devtools
be06d295a8911a43f7ad582a88a3d64d6482b6e8
[ "MIT" ]
2
2018-11-13T06:34:17.000Z
2019-01-08T14:33:09.000Z
aiohttp_devtools/start/__init__.py
theruziev/aiohttp-devtools
8ab8a621964c8af0021c62e7971eea8c04f534e8
[ "MIT" ]
1
2021-02-27T14:13:58.000Z
2021-02-27T14:13:58.000Z
aiohttp_devtools/start/__init__.py
theruziev/aiohttp-devtools
8ab8a621964c8af0021c62e7971eea8c04f534e8
[ "MIT" ]
null
null
null
# flake8: noqa from .main import DatabaseChoice, ExampleChoice, SessionChoices, StartProject, TemplateChoice
36.333333
93
0.834862
d540205fcfb3b4dcc91f1525818782cb26364ac5
178
py
Python
epmclib/getPMID.py
tarrow/epmclib
aea429d640b0e4a7375db4bd90ce04693c940340
[ "MIT" ]
2
2015-12-07T17:56:25.000Z
2016-01-28T16:47:21.000Z
epmclib/getPMID.py
tarrow/epmclib
aea429d640b0e4a7375db4bd90ce04693c940340
[ "MIT" ]
8
2015-12-03T17:57:54.000Z
2016-01-21T10:22:10.000Z
epmclib/getPMID.py
tarrow/epmclib
aea429d640b0e4a7375db4bd90ce04693c940340
[ "MIT" ]
null
null
null
from . getID import getID
25.428571
60
0.679775
d5410810359ac36bb644e7de8c9340cf0988d530
560
py
Python
test/test_levelsymmetric.py
camminady/sphericalquadpy
0646547cc69e27de7ce36f4b519d4f420ef443e7
[ "MIT" ]
1
2020-11-15T23:47:48.000Z
2020-11-15T23:47:48.000Z
test/test_levelsymmetric.py
camminady/sphericalquadpy
0646547cc69e27de7ce36f4b519d4f420ef443e7
[ "MIT" ]
1
2019-04-09T08:38:21.000Z
2019-04-09T08:38:21.000Z
test/test_levelsymmetric.py
camminady/sphericalquadpy
0646547cc69e27de7ce36f4b519d4f420ef443e7
[ "MIT" ]
1
2020-12-19T21:12:59.000Z
2020-12-19T21:12:59.000Z
from sphericalquadpy.levelsymmetric.levelsymmetric import Levelsymmetric import pytest
23.333333
72
0.707143
d541c05f38e8c5156b01666be9ab4d4d64d8249a
2,202
py
Python
skinport/enums.py
PaxxPatriot/skinport.py
37cf131aa468a3218a6bb694c5fead0353c32623
[ "MIT" ]
null
null
null
skinport/enums.py
PaxxPatriot/skinport.py
37cf131aa468a3218a6bb694c5fead0353c32623
[ "MIT" ]
1
2022-02-23T19:17:16.000Z
2022-02-23T19:17:16.000Z
skinport/enums.py
PaxxPatriot/skinport.py
37cf131aa468a3218a6bb694c5fead0353c32623
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2022 PaxxPatriot Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, d...
22.701031
78
0.653951
d5434f4d2e70af5a0a1a114b544845f6ac8dde26
387
py
Python
lib/mcapi.py
RalphORama/MCPerms
099d9169b1c7992b7d1c9b72003b846366eb78f7
[ "MIT" ]
3
2017-12-01T09:39:36.000Z
2021-07-27T23:52:11.000Z
lib/mcapi.py
RalphORama/MCPerms
099d9169b1c7992b7d1c9b72003b846366eb78f7
[ "MIT" ]
null
null
null
lib/mcapi.py
RalphORama/MCPerms
099d9169b1c7992b7d1c9b72003b846366eb78f7
[ "MIT" ]
2
2019-02-25T19:05:05.000Z
2020-02-12T13:17:01.000Z
from requests import get from json import loads from time import time from uuid import UUID
21.5
68
0.648579
d543530f4df09080f53a3a25090b0d0f7018de42
329
py
Python
src/dictionaries/generic_subjects.py
FNClassificator/FNC-classificators
c159a04dff9edb714f69b323f6c46a15de63c278
[ "Apache-2.0" ]
null
null
null
src/dictionaries/generic_subjects.py
FNClassificator/FNC-classificators
c159a04dff9edb714f69b323f6c46a15de63c278
[ "Apache-2.0" ]
null
null
null
src/dictionaries/generic_subjects.py
FNClassificator/FNC-classificators
c159a04dff9edb714f69b323f6c46a15de63c278
[ "Apache-2.0" ]
null
null
null
GENERIC = [ 'Half of US adults have had family jailed', 'Judge stopped me winning election', 'Stock markets stabilise after earlier sell-off' ] NON_GENERIC = [ 'Leicester helicopter rotor controls failed', 'Pizza Express founder Peter Boizot dies aged 89', 'Senior Tory suggests vote could be d...
27.416667
54
0.711246
d543615e9951c7852a85d6e69de555518f2e11f8
604
py
Python
tests/testPublishedServices.py
mapledyne/skytap
c7fb43e7d2b3e97c619948a9e5b3f03472b5cd45
[ "MIT" ]
3
2019-04-17T13:07:30.000Z
2021-09-09T22:01:14.000Z
tests/testPublishedServices.py
FulcrumIT/skytap
c7fb43e7d2b3e97c619948a9e5b3f03472b5cd45
[ "MIT" ]
10
2016-11-02T20:48:38.000Z
2021-09-15T15:29:34.000Z
tests/testPublishedServices.py
FulcrumIT/skytap
c7fb43e7d2b3e97c619948a9e5b3f03472b5cd45
[ "MIT" ]
3
2016-03-03T07:25:13.000Z
2016-08-30T15:33:03.000Z
"""Test Skytap published services API access.""" import json import os import time import sys sys.path.append('..') from skytap.Environments import Environments # noqa from skytap.framework.ApiClient import ApiClient # noqa environments = Environments() def test_ps_values(): """Ensure published service capabi...
24.16
64
0.650662
d5495231e3d431fe1e3c8b0e5b54558d71f22bf7
411
py
Python
pythonDesafios/desafio031.py
mateusdev7/desafios-python
6160ddc84548c7af7f5775f9acabe58238f83008
[ "MIT" ]
null
null
null
pythonDesafios/desafio031.py
mateusdev7/desafios-python
6160ddc84548c7af7f5775f9acabe58238f83008
[ "MIT" ]
null
null
null
pythonDesafios/desafio031.py
mateusdev7/desafios-python
6160ddc84548c7af7f5775f9acabe58238f83008
[ "MIT" ]
null
null
null
from time import sleep print('-=-' * 15) print('Iremos calcular o preo da sua viagem (R$)') print('-=-' * 15) distancia = float(input('Qual a distncia da viagem?\n>')) print('CALCULANDO...') sleep(2) if distancia <= 200: preco = distancia * 0.50 print(f'O preo da sua viagem vai custar R${preco:.2f}') else: ...
25.6875
60
0.644769
d54a0002af3d3a00d396f68eb323f46a1f109f28
357
py
Python
backend/saas_framework/sharing/views.py
snarayanank2/django-workspaces
46ef92a4caa95eee617a24ead284e533422afca0
[ "MIT" ]
1
2021-01-27T17:51:58.000Z
2021-01-27T17:51:58.000Z
backend/saas_framework/sharing/views.py
snarayanank2/django-workspaces
46ef92a4caa95eee617a24ead284e533422afca0
[ "MIT" ]
6
2021-03-30T13:51:35.000Z
2022-03-02T09:24:07.000Z
backend/saas_framework/sharing/views.py
snarayanank2/django-workspaces
46ef92a4caa95eee617a24ead284e533422afca0
[ "MIT" ]
1
2022-03-18T08:43:17.000Z
2022-03-18T08:43:17.000Z
import logging from rest_framework import viewsets from saas_framework.sharing.models import Sharing from saas_framework.sharing.serializers import SharingSerializer logger = logging.getLogger(__name__)
27.461538
64
0.820728
d54ab457563a7da1ea0a8ea69694b17e69f12c37
228
py
Python
meridian/acupoints/yifeng41.py
sinotradition/meridian
8c6c1762b204b72346be4bbfb74dedd792ae3024
[ "Apache-2.0" ]
5
2015-12-14T15:14:23.000Z
2022-02-09T10:15:33.000Z
meridian/acupoints/yifeng41.py
sinotradition/meridian
8c6c1762b204b72346be4bbfb74dedd792ae3024
[ "Apache-2.0" ]
null
null
null
meridian/acupoints/yifeng41.py
sinotradition/meridian
8c6c1762b204b72346be4bbfb74dedd792ae3024
[ "Apache-2.0" ]
3
2015-11-27T05:23:49.000Z
2020-11-28T09:01:56.000Z
#!/usr/bin/python #coding=utf-8 ''' @author: sheng @license: ''' SPELL=u'yfng' CN=u'' NAME=u'yifeng41' CHANNEL='sanjiao' CHANNEL_FULLNAME='SanjiaoChannelofHand-Shaoyang' SEQ='SJ17' if __name__ == '__main__': pass
10.857143
48
0.688596
d54b25a37b893cdc466d3bbbe69d97e87c53a99c
106
py
Python
qubeInfraSight/projectoffice/apps.py
debaleena2019/QubInfraInsight
70b0b2654f6589e65283bd6fc779b13be32512ab
[ "Apache-2.0" ]
1
2019-06-17T06:06:11.000Z
2019-06-17T06:06:11.000Z
qubeInfraSight/projectoffice/apps.py
debaleena2019/QubInfraInsight
70b0b2654f6589e65283bd6fc779b13be32512ab
[ "Apache-2.0" ]
null
null
null
qubeInfraSight/projectoffice/apps.py
debaleena2019/QubInfraInsight
70b0b2654f6589e65283bd6fc779b13be32512ab
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig
17.666667
38
0.745283