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
0c6200ff0e4e0bec1acf3bffde906f26e624c332
5,980
py
Python
infra/utils/launch_ec2.py
philipmac/nephele2
50acba6b7bb00da6209c75e26c8c040ffacbaa1e
[ "CC0-1.0" ]
1
2021-02-26T23:00:10.000Z
2021-02-26T23:00:10.000Z
infra/utils/launch_ec2.py
philipmac/nephele2
50acba6b7bb00da6209c75e26c8c040ffacbaa1e
[ "CC0-1.0" ]
1
2020-11-16T01:55:06.000Z
2020-11-16T01:55:06.000Z
infra/utils/launch_ec2.py
philipmac/nephele2
50acba6b7bb00da6209c75e26c8c040ffacbaa1e
[ "CC0-1.0" ]
2
2021-08-12T13:59:49.000Z
2022-01-19T17:16:26.000Z
#!/usr/bin/env python3 import os import boto3 import botocore.exceptions import argparse import yaml from nephele2 import NepheleError mand_vars = ['AWS_ACCESS_KEY_ID', 'AWS_SECRET_ACCESS_KEY'] perm_error = """\n\nIt seems you have not set up your AWS correctly. Should you be running this with Awssume? Or have profile...
39.084967
167
0.623746
0c6419af7c4ea362b8097a85b3a1cb0ca9746ce0
9,196
py
Python
tests/test_wvlns.py
seignovert/pyvims
a70b5b9b8bc5c37fa43b7db4d15407f312a31849
[ "BSD-3-Clause" ]
4
2019-09-16T15:50:22.000Z
2021-04-08T15:32:48.000Z
tests/test_wvlns.py
seignovert/pyvims
a70b5b9b8bc5c37fa43b7db4d15407f312a31849
[ "BSD-3-Clause" ]
3
2018-05-04T09:28:24.000Z
2018-12-03T09:00:31.000Z
tests/test_wvlns.py
seignovert/pyvims
a70b5b9b8bc5c37fa43b7db4d15407f312a31849
[ "BSD-3-Clause" ]
1
2020-10-12T15:14:17.000Z
2020-10-12T15:14:17.000Z
"""Test VIMS wavelength module.""" from pathlib import Path import numpy as np from numpy.testing import assert_array_almost_equal as assert_array from pyvims import QUB from pyvims.vars import ROOT_DATA from pyvims.wvlns import (BAD_IR_PIXELS, CHANNELS, FWHM, SHIFT, VIMS_IR, VIMS_VIS, WLN...
27.450746
79
0.605154
0c661084ef2dc9a119cb718b8362035d15b03067
909
py
Python
Outliers/loss/losses.py
MakotoTAKAMATSU013/Outliers
80043027d64b8f07355a05b281925f00bbf1a442
[ "MIT" ]
null
null
null
Outliers/loss/losses.py
MakotoTAKAMATSU013/Outliers
80043027d64b8f07355a05b281925f00bbf1a442
[ "MIT" ]
null
null
null
Outliers/loss/losses.py
MakotoTAKAMATSU013/Outliers
80043027d64b8f07355a05b281925f00bbf1a442
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F
34.961538
73
0.660066
0c663401e4bd928831a371cae4be0b6a743a91c8
5,783
py
Python
esiosdata/importdemdata.py
azogue/esiosdata
680c7918955bc6ceee5bded92b3a4485f5ea8151
[ "MIT" ]
20
2017-06-04T20:34:16.000Z
2021-10-31T22:55:22.000Z
esiosdata/importdemdata.py
azogue/esiosdata
680c7918955bc6ceee5bded92b3a4485f5ea8151
[ "MIT" ]
null
null
null
esiosdata/importdemdata.py
azogue/esiosdata
680c7918955bc6ceee5bded92b3a4485f5ea8151
[ "MIT" ]
4
2020-01-28T19:02:24.000Z
2022-03-08T15:59:11.000Z
# -*- coding: utf-8 -*- """ Created on Sat Feb 27 18:16:24 2015 @author: Eugenio Panadero A raz del cambio previsto: DESCONEXIN DE LA WEB PBLICA CLSICA DE ESIOS La Web pblica clsica de esios (http://www.esios.ree.es) ser desconectada el da 29 de marzo de 2016. Continuaremos ofreciendo servicio en la nueva Web del Op...
39.609589
114
0.639633
a73d0e2b381469762428cb4845c16d12f86b59d9
4,744
py
Python
brainfrick.py
rium9/brainfrick
37f8e3417cde5828e3ed2c2099fc952259f12844
[ "MIT" ]
null
null
null
brainfrick.py
rium9/brainfrick
37f8e3417cde5828e3ed2c2099fc952259f12844
[ "MIT" ]
null
null
null
brainfrick.py
rium9/brainfrick
37f8e3417cde5828e3ed2c2099fc952259f12844
[ "MIT" ]
null
null
null
if __name__ == '__main__': bfm = BrainfuckMachine(cells=8, out_func=chr) bi = BInterpreter(bfm) f = open('helloworld', 'r').read() code = list(BLexer.lex(f)) bi.interpret_code(code)
32.493151
110
0.490304
a73f4577fe0a30a2fdd1d7b44615b63fb0d34f1e
3,476
bzl
Python
infra_macros/fbcode_macros/build_defs/build_info.bzl
martarozek/buckit
343cc5a5964c1d43902b6a77868652adaefa0caa
[ "BSD-3-Clause" ]
null
null
null
infra_macros/fbcode_macros/build_defs/build_info.bzl
martarozek/buckit
343cc5a5964c1d43902b6a77868652adaefa0caa
[ "BSD-3-Clause" ]
null
null
null
infra_macros/fbcode_macros/build_defs/build_info.bzl
martarozek/buckit
343cc5a5964c1d43902b6a77868652adaefa0caa
[ "BSD-3-Clause" ]
null
null
null
load("@fbcode_macros//build_defs:config.bzl", "config") load("@fbcode_macros//build_defs/config:read_configs.bzl", "read_int") load("@fbcode_macros//build_defs:core_tools.bzl", "core_tools") def _get_build_info(package_name, name, rule_type, platform): """ Gets a build_info struct from various configurations (...
35.469388
97
0.635788
a7401ff3c28629b2dc0848d7b3f999f8226d524f
1,885
py
Python
src/scan.py
Unitato/github-public-alert
29dbcf72dd8c18c45385c29f25174c28c3428560
[ "MIT" ]
null
null
null
src/scan.py
Unitato/github-public-alert
29dbcf72dd8c18c45385c29f25174c28c3428560
[ "MIT" ]
null
null
null
src/scan.py
Unitato/github-public-alert
29dbcf72dd8c18c45385c29f25174c28c3428560
[ "MIT" ]
null
null
null
#!#!/usr/bin/env python import os from github import Github from libraries.notify import Notify import json print("") print("Scanning Github repos") GITHUB_API_KEY = os.environ.get('GITHUB_API_KEY') WHITELIST = json.loads(os.environ.get('GITHUB_WHITELIST').lower()) GITHUB_SCAN = json.loads(os.environ.get('GITHUB_SCAN...
30.901639
76
0.671088
a7403e0780a57d1602d030f1189826ad5b0324b5
3,634
py
Python
models.py
YavorPaunov/await
0ea7ad1d0d48b66686e35702d39695268451b688
[ "MIT" ]
null
null
null
models.py
YavorPaunov/await
0ea7ad1d0d48b66686e35702d39695268451b688
[ "MIT" ]
null
null
null
models.py
YavorPaunov/await
0ea7ad1d0d48b66686e35702d39695268451b688
[ "MIT" ]
null
null
null
from flask.ext.sqlalchemy import SQLAlchemy from util import hex_to_rgb, rgb_to_hex from time2words import relative_time_to_text from datetime import datetime from dateutil.tz import tzutc import pytz db = SQLAlchemy() def get_or_create(session, model, **kwargs): instance = session.query(model).filter_by(**kwar...
30.79661
94
0.632911
a74179e3bf17c46fcdccafdc139bb260a2c60cb7
732
py
Python
setup.py
ManuelMeraz/ReinforcementLearning
5d42a88776428308d35c8031c01bf5afdf080079
[ "MIT" ]
1
2020-04-19T15:29:47.000Z
2020-04-19T15:29:47.000Z
setup.py
ManuelMeraz/ReinforcementLearning
5d42a88776428308d35c8031c01bf5afdf080079
[ "MIT" ]
null
null
null
setup.py
ManuelMeraz/ReinforcementLearning
5d42a88776428308d35c8031c01bf5afdf080079
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import setuptools DIR = os.path.dirname(__file__) REQUIREMENTS = os.path.join(DIR, "requirements.txt") with open(REQUIREMENTS) as f: reqs = f.read().strip().split("\n") setuptools.setup( name="rl", version="0.0.1", description="Reinforcement Learning: An Introduction...
25.241379
64
0.648907
a743058f6e943a66d50447c9ef87971c35895cc0
169
py
Python
taxcalc/tbi/__init__.py
ClarePan/Tax-Calculator
d2d6cb4b551f34017db7166d91d982b5c4670816
[ "CC0-1.0" ]
1
2021-02-23T21:03:43.000Z
2021-02-23T21:03:43.000Z
taxcalc/tbi/__init__.py
ClarePan/Tax-Calculator
d2d6cb4b551f34017db7166d91d982b5c4670816
[ "CC0-1.0" ]
null
null
null
taxcalc/tbi/__init__.py
ClarePan/Tax-Calculator
d2d6cb4b551f34017db7166d91d982b5c4670816
[ "CC0-1.0" ]
null
null
null
from taxcalc.tbi.tbi import (run_nth_year_taxcalc_model, run_nth_year_gdp_elast_model, reform_warnings_errors)
42.25
58
0.585799
a7433e8c895ee751d0a668a187a9eb4c45927efe
6,223
py
Python
mooc_access_number.py
mengshouer/mooc_access_number
8de596ce34006f1f8c5d0404f5e40546fb438b2a
[ "MIT" ]
6
2020-05-12T14:36:17.000Z
2021-12-03T01:56:58.000Z
mooc_access_number.py
mengshouer/mooc_tools
8de596ce34006f1f8c5d0404f5e40546fb438b2a
[ "MIT" ]
2
2020-05-11T06:21:13.000Z
2020-05-23T12:34:18.000Z
mooc_access_number.py
mengshouer/mooc_tools
8de596ce34006f1f8c5d0404f5e40546fb438b2a
[ "MIT" ]
1
2020-05-11T04:19:15.000Z
2020-05-11T04:19:15.000Z
import requests,time,json,re,base64 requests.packages.urllib3.disable_warnings() from io import BytesIO from PIL import Image,ImageDraw,ImageChops from lxml import etree from urllib.parse import urlparse, parse_qs username = "" # password = "" # s = requests.Session() s.headers.update({'User-Agent':'Mo...
32.752632
151
0.527398
a743c86ba9ec1ed2c5e5910bec35a0fda5523988
11,174
py
Python
tests/test_json_api.py
Padraic-O-Mhuiris/fava
797ae1ee1f7378c8e7347d2970fc52c4be366b01
[ "MIT" ]
null
null
null
tests/test_json_api.py
Padraic-O-Mhuiris/fava
797ae1ee1f7378c8e7347d2970fc52c4be366b01
[ "MIT" ]
null
null
null
tests/test_json_api.py
Padraic-O-Mhuiris/fava
797ae1ee1f7378c8e7347d2970fc52c4be366b01
[ "MIT" ]
null
null
null
# pylint: disable=missing-docstring from __future__ import annotations import hashlib from io import BytesIO from pathlib import Path from typing import Any import pytest from beancount.core.compare import hash_entry from flask import url_for from flask.testing import FlaskClient from fava.context import g from fava...
31.564972
79
0.578038
a747752e784483f13e0672fa7ef44261d743dd9f
403
py
Python
babybuddy/migrations/0017_promocode_max_usage_per_account.py
amcquistan/babyasst
310a7948f06b71ae0d62593a3b5932abfd4eb444
[ "BSD-2-Clause" ]
null
null
null
babybuddy/migrations/0017_promocode_max_usage_per_account.py
amcquistan/babyasst
310a7948f06b71ae0d62593a3b5932abfd4eb444
[ "BSD-2-Clause" ]
null
null
null
babybuddy/migrations/0017_promocode_max_usage_per_account.py
amcquistan/babyasst
310a7948f06b71ae0d62593a3b5932abfd4eb444
[ "BSD-2-Clause" ]
null
null
null
# Generated by Django 2.2.6 on 2019-11-27 20:28 from django.db import migrations, models
21.210526
49
0.615385
a74a33620df33a15eb19e53e0f2d731815811072
6,218
py
Python
tests/test_upload.py
LuminosoInsight/luminoso-api-client-python
bae7db9b02123718ded5a8345a860bd12680b367
[ "MIT" ]
5
2016-09-14T02:02:30.000Z
2021-06-20T21:11:19.000Z
tests/test_upload.py
LuminosoInsight/luminoso-api-client-python
bae7db9b02123718ded5a8345a860bd12680b367
[ "MIT" ]
29
2015-01-13T15:07:38.000Z
2021-06-14T21:03:06.000Z
tests/test_upload.py
LuminosoInsight/luminoso-api-client-python
bae7db9b02123718ded5a8345a860bd12680b367
[ "MIT" ]
3
2016-03-07T13:04:34.000Z
2017-08-07T21:15:53.000Z
from luminoso_api.v5_client import LuminosoClient from luminoso_api.v5_upload import create_project_with_docs, BATCH_SIZE from unittest.mock import patch import pytest BASE_URL = 'http://mock-api.localhost/api/v5/' DOCS_TO_UPLOAD = [ {'title': 'Document 1', 'text': 'Bonjour', 'extra': 'field'}, {'title': 'Do...
31.72449
78
0.595529
a74ad7dc8ca825fa0b64d0132540f37da6f4e67a
1,259
py
Python
src/oca_github_bot/webhooks/on_command.py
eLBati/oca-github-bot
4fa974f8ec123c9ccfd7bcad22e4baa939c985ac
[ "MIT" ]
null
null
null
src/oca_github_bot/webhooks/on_command.py
eLBati/oca-github-bot
4fa974f8ec123c9ccfd7bcad22e4baa939c985ac
[ "MIT" ]
null
null
null
src/oca_github_bot/webhooks/on_command.py
eLBati/oca-github-bot
4fa974f8ec123c9ccfd7bcad22e4baa939c985ac
[ "MIT" ]
null
null
null
# Copyright (c) initOS GmbH 2019 # Distributed under the MIT License (http://opensource.org/licenses/MIT). from ..commands import CommandError, parse_commands from ..config import OCABOT_EXTRA_DOCUMENTATION, OCABOT_USAGE from ..router import router from ..tasks.add_pr_comment import add_pr_comment
34.972222
73
0.629071
a74cb2eb35421327d8faf002d2a0cd393a5579ab
1,151
py
Python
splitListToParts.py
pflun/learningAlgorithms
3101e989488dfc8a56f1bf256a1c03a837fe7d97
[ "MIT" ]
null
null
null
splitListToParts.py
pflun/learningAlgorithms
3101e989488dfc8a56f1bf256a1c03a837fe7d97
[ "MIT" ]
null
null
null
splitListToParts.py
pflun/learningAlgorithms
3101e989488dfc8a56f1bf256a1c03a837fe7d97
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Definition for singly-linked list. head = ListNode(1) p1 = ListNode(2) p2 = ListNode(3) p3 = ListNode(4) p4 = ListNode(5) p5 = ListNode(6) p6 = ListNode(7) p7 = ListNode(8) p8 = ListNode(9) p9 = ListNode(10) head.next = p1 p1.next = p2 p2.next = p3 p3.next = p4 p4.next = p5 p5.next = p6 p6.ne...
20.553571
47
0.536056
a74cdb915e99b5e47e7fb18dd30921d17381a256
7,744
py
Python
pmlearn/mixture/tests/test_dirichlet_process.py
john-veillette/pymc-learn
267b0084438616b869866194bc167c332c3e3547
[ "BSD-3-Clause" ]
187
2018-10-16T02:33:51.000Z
2022-03-27T14:06:36.000Z
pmlearn/mixture/tests/test_dirichlet_process.py
john-veillette/pymc-learn
267b0084438616b869866194bc167c332c3e3547
[ "BSD-3-Clause" ]
20
2018-10-31T15:13:29.000Z
2022-01-20T18:54:00.000Z
pmlearn/mixture/tests/test_dirichlet_process.py
john-veillette/pymc-learn
267b0084438616b869866194bc167c332c3e3547
[ "BSD-3-Clause" ]
20
2018-10-19T21:32:06.000Z
2022-02-07T06:04:55.000Z
import unittest import shutil import tempfile import numpy as np # import pandas as pd # import pymc3 as pm # from pymc3 import summary # from sklearn.mixture import BayesianGaussianMixture as skBayesianGaussianMixture from sklearn.model_selection import train_test_split from pmlearn.exceptions import NotFittedError ...
38.914573
84
0.594008
a74d82ac6813ed8153326a2d69c62b3256148e18
1,096
py
Python
algorithms/utils.py
billvb/oblio-game
c1c95b9d7bffe4e2841a978e4338cf72c38174ac
[ "MIT" ]
2
2016-03-20T03:03:18.000Z
2021-02-15T22:23:44.000Z
algorithms/utils.py
billvb/oblio-game
c1c95b9d7bffe4e2841a978e4338cf72c38174ac
[ "MIT" ]
null
null
null
algorithms/utils.py
billvb/oblio-game
c1c95b9d7bffe4e2841a978e4338cf72c38174ac
[ "MIT" ]
null
null
null
import random TUPLE_SIZE = 4 DIGIT_BASE = 10 MAX_GUESS = DIGIT_BASE ** TUPLE_SIZE
28.842105
86
0.603102
a74d8736deea9179712853219ede84e9608d42dd
1,276
py
Python
utils/utils.py
cheng052/H3DNet
872dabb37d8c2ca3581cf4e242014e6464debe57
[ "MIT" ]
212
2020-06-11T01:03:36.000Z
2022-03-17T17:29:21.000Z
utils/utils.py
cheng052/H3DNet
872dabb37d8c2ca3581cf4e242014e6464debe57
[ "MIT" ]
25
2020-06-15T13:35:13.000Z
2022-03-10T05:44:05.000Z
utils/utils.py
cheng052/H3DNet
872dabb37d8c2ca3581cf4e242014e6464debe57
[ "MIT" ]
24
2020-06-11T01:17:24.000Z
2022-03-30T13:34:45.000Z
import torch import torch.nn as nn import torch.nn.functional as F
27.73913
103
0.670063
a74f41b8c63e9716f46430fe18d6b543d0682cb3
8,258
py
Python
device/app.py
panjanek/IotCenter
e139617d14617c10a18c35515e2d3aaae797bcac
[ "MIT" ]
2
2016-12-12T15:16:16.000Z
2018-10-30T02:35:36.000Z
device/app.py
panjanek/IotCenter
e139617d14617c10a18c35515e2d3aaae797bcac
[ "MIT" ]
null
null
null
device/app.py
panjanek/IotCenter
e139617d14617c10a18c35515e2d3aaae797bcac
[ "MIT" ]
null
null
null
import logging import threading import json import base64 import os from subprocess import Popen import glob import time import urllib2 import re import string import datetime
47.45977
177
0.552434
a74fb2c9000b17ff11193cacddad30429c023b4c
7,882
py
Python
deepsource/utils.py
vafaei-ar/deepsource
cbb06f5a2105506b63539ae5bfe73a3e62d4055f
[ "BSD-3-Clause" ]
null
null
null
deepsource/utils.py
vafaei-ar/deepsource
cbb06f5a2105506b63539ae5bfe73a3e62d4055f
[ "BSD-3-Clause" ]
1
2020-12-15T10:03:50.000Z
2020-12-16T10:39:00.000Z
deepsource/utils.py
vafaei-ar/deepsource
cbb06f5a2105506b63539ae5bfe73a3e62d4055f
[ "BSD-3-Clause" ]
2
2019-09-02T10:24:22.000Z
2021-03-30T01:29:03.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import numpy as np from skimage import draw from skimage import measure from astropy.io import fits from astropy import units as u from astropy import wcs, coordinates from scipy.ndimage.filters impor...
29.520599
148
0.586399
a74fd79fe36c35a1329c69bf98a54c22cc8f9a55
12,349
py
Python
ftc/lib/net/network.py
efulet/ann_text_classification
fba05a1789a19aa6d607ee36069dda419bb98e28
[ "MIT" ]
null
null
null
ftc/lib/net/network.py
efulet/ann_text_classification
fba05a1789a19aa6d607ee36069dda419bb98e28
[ "MIT" ]
null
null
null
ftc/lib/net/network.py
efulet/ann_text_classification
fba05a1789a19aa6d607ee36069dda419bb98e28
[ "MIT" ]
null
null
null
""" @created_at 2015-01-18 @author Exequiel Fuentes Lettura <efulet@gmail.com> """ from pybrain.datasets import ClassificationDataSet from pybrain.tools.shortcuts import buildNetwork from pybrain.structure.modules import SoftmaxLayer from pybrain.supervised.trainers import BackpropTrainer from pybrain.utilities impor...
38.711599
128
0.581667
a75006d06757a5f27ac00ff68ada7211ab1bbdc4
342
py
Python
python2/probe_yd.py
Nzen/run_ydl
90d7075ba8ec5771b5edcbe2ad52211d95546f83
[ "WTFPL" ]
null
null
null
python2/probe_yd.py
Nzen/run_ydl
90d7075ba8ec5771b5edcbe2ad52211d95546f83
[ "WTFPL" ]
null
null
null
python2/probe_yd.py
Nzen/run_ydl
90d7075ba8ec5771b5edcbe2ad52211d95546f83
[ "WTFPL" ]
null
null
null
from sys import argv from subprocess import call try : link = argv[ 1 ] except IndexError: link = raw_input( " - which url interests you? " ) try: ydl_answ = call( "youtube-dl -F "+ link, shell = True ) if ydl_answ is not 0 : print "-- failed "+ link + " code "+ str(ydl_answ) except OSError as ose : print "Ex...
21.375
56
0.663743
a7538f1279770f7607c3e20bb1757708788234b0
9,689
py
Python
src/cogs/welcome.py
Cr4zi/SynatxBot
eeb59555c1cfa81e05c924b84c601c0b240e5ee3
[ "MIT" ]
4
2021-08-12T08:11:21.000Z
2021-08-12T08:15:22.000Z
src/cogs/welcome.py
Cr4zi/SynatxBot
eeb59555c1cfa81e05c924b84c601c0b240e5ee3
[ "MIT" ]
null
null
null
src/cogs/welcome.py
Cr4zi/SynatxBot
eeb59555c1cfa81e05c924b84c601c0b240e5ee3
[ "MIT" ]
null
null
null
import discord from discord.ext import commands from discord import Embed from discord.utils import get import datetime import psycopg2 from bot import DB_NAME, DB_PASS, DB_HOST, DB_USER, logger, private_message
46.581731
146
0.58489
a7551310f1a028ec26dd2191bdc424bc482a29c5
468
py
Python
etcd_restore_rebuild_util/edit_yaml_for_rebuild.py
Cray-HPE/utils
dd6e13b46500e1c2f6ad887a8c1604044465d1d8
[ "MIT" ]
null
null
null
etcd_restore_rebuild_util/edit_yaml_for_rebuild.py
Cray-HPE/utils
dd6e13b46500e1c2f6ad887a8c1604044465d1d8
[ "MIT" ]
null
null
null
etcd_restore_rebuild_util/edit_yaml_for_rebuild.py
Cray-HPE/utils
dd6e13b46500e1c2f6ad887a8c1604044465d1d8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import sys import yaml file_name=sys.argv[1] file_name = '/root/etcd/' + file_name + '.yaml' with open(file_name) as f: y=yaml.safe_load(f) del y['metadata']['creationTimestamp'] del y['metadata']['generation'] del y['metadata']['resourceVersion'] del y['metad...
22.285714
70
0.67094
a75582560560cf86bc8bb8744feee3c442ea60e2
1,514
py
Python
src/Segmentation/segmentation.py
odigous-labs/video-summarization
c125bf9fa1016d76680d5e9389e4bdb0f83bc4fb
[ "MIT" ]
1
2019-03-05T06:00:38.000Z
2019-03-05T06:00:38.000Z
src/Segmentation/segmentation.py
odigous-labs/video-summarization
c125bf9fa1016d76680d5e9389e4bdb0f83bc4fb
[ "MIT" ]
2
2019-03-02T05:12:59.000Z
2019-09-26T17:03:56.000Z
src/Segmentation/segmentation.py
odigous-labs/video-summarization
c125bf9fa1016d76680d5e9389e4bdb0f83bc4fb
[ "MIT" ]
null
null
null
import os import cv2 from Segmentation import CombinedHist, get_histograms, HistQueue import matplotlib.pyplot as plt import numpy as np listofFiles = os.listdir('generated_frames') # change the size of queue accordingly queue_of_hists = HistQueue.HistQueue(25) x = [] y_r = [] y_g = [] y_b = [] for i in range(0, 40...
29.115385
114
0.718626
a755b8f4c107bcf90ce08cbfeeeaa2d842ac3f66
12,369
py
Python
stickerbot.py
gumblex/stickerindexbot
8e8edaabac54d2747e4b620464670a60a65efcb5
[ "MIT" ]
1
2017-01-20T18:11:46.000Z
2017-01-20T18:11:46.000Z
stickerbot.py
gumblex/stickerindexbot
8e8edaabac54d2747e4b620464670a60a65efcb5
[ "MIT" ]
null
null
null
stickerbot.py
gumblex/stickerindexbot
8e8edaabac54d2747e4b620464670a60a65efcb5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' Telegram Sticker Index Bot ''' import re import sys import time import json import queue import sqlite3 import logging import requests import functools import threading import collections import concurrent.futures import zhconv logging.basicConfig(stream=sys.stderr...
32.379581
160
0.570216
a755c3e60d6f4943e03a99183eadd47ca1d97d29
4,571
py
Python
tests.py
AndreLouisCaron/requests-wsgi-adapter
5506c4785824673147449daabb5c4e06192e5078
[ "BSD-3-Clause" ]
null
null
null
tests.py
AndreLouisCaron/requests-wsgi-adapter
5506c4785824673147449daabb5c4e06192e5078
[ "BSD-3-Clause" ]
null
null
null
tests.py
AndreLouisCaron/requests-wsgi-adapter
5506c4785824673147449daabb5c4e06192e5078
[ "BSD-3-Clause" ]
null
null
null
import json import unittest import requests from urllib3._collections import HTTPHeaderDict from wsgiadapter import WSGIAdapter def test_multiple_cookies(): app = WSGITestHandler( extra_headers=[ ("Set-Cookie", "flimble=floop; Path=/"), ("Set-Cookie", "flamble=flaap; Path=/")]...
39.068376
107
0.640123
a75611852715e07033587bffa7d94fdf7b98243d
548
py
Python
setup.py
ducandu/aiopening
214d8d6dfc928ab4f8db634018092dc43eaf0e3c
[ "MIT" ]
null
null
null
setup.py
ducandu/aiopening
214d8d6dfc928ab4f8db634018092dc43eaf0e3c
[ "MIT" ]
null
null
null
setup.py
ducandu/aiopening
214d8d6dfc928ab4f8db634018092dc43eaf0e3c
[ "MIT" ]
null
null
null
""" ------------------------------------------------------------------------- shine - setup !!TODO: add file description here!! created: 2017/06/04 in PyCharm (c) 2017 Sven - ducandu GmbH ------------------------------------------------------------------------- """ from setuptools import setup setup(nam...
34.25
138
0.501825
a756ca330f0702ca67f549b4365c53dd8dc05dbc
1,932
py
Python
podcast_dl/podcasts.py
RMPR/simple-podcast-dl
bb4419d3beb1a893bfac5aa6546ba25522531b00
[ "MIT" ]
null
null
null
podcast_dl/podcasts.py
RMPR/simple-podcast-dl
bb4419d3beb1a893bfac5aa6546ba25522531b00
[ "MIT" ]
null
null
null
podcast_dl/podcasts.py
RMPR/simple-podcast-dl
bb4419d3beb1a893bfac5aa6546ba25522531b00
[ "MIT" ]
null
null
null
""" List of podcasts and their filename parser types. """ from .rss_parsers import BaseItem, TalkPythonItem, ChangelogItem, IndieHackersItem import attr PODCASTS = [ Podcast( name="talkpython", title="Talk Python To Me", url="https://talkpython.fm", rss="https://talkpython.fm/epis...
27.6
82
0.608696
a75700da032ade0f2e5909a09f4ffc60c4abd193
20,543
py
Python
07_spitzer_aor_extraction.py
rsiverd/ultracool
cbeb2e0e4aee0acc9f8ed2bde7ecdf8be5fa85a1
[ "BSD-2-Clause" ]
null
null
null
07_spitzer_aor_extraction.py
rsiverd/ultracool
cbeb2e0e4aee0acc9f8ed2bde7ecdf8be5fa85a1
[ "BSD-2-Clause" ]
null
null
null
07_spitzer_aor_extraction.py
rsiverd/ultracool
cbeb2e0e4aee0acc9f8ed2bde7ecdf8be5fa85a1
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # vim: set fileencoding=utf-8 ts=4 sts=4 sw=4 et tw=80 : # # Extract and save extended object catalogs from the specified data and # uncertainty images. This version of the script jointly analyzes all # images from a specific AOR/channel to enable more sophisticated # analysis. # # Rob Siverd # Cr...
37.148282
82
0.577861
a7574a31d3793e68486c1afc1807fc0afcd14ce5
6,594
py
Python
project/apps/CI-producer/app/producers_test.py
Monxun/PortainerPractice
a3be077efe5c5eb2aa27b6a2fcf626989bdbbbe4
[ "MIT" ]
null
null
null
project/apps/CI-producer/app/producers_test.py
Monxun/PortainerPractice
a3be077efe5c5eb2aa27b6a2fcf626989bdbbbe4
[ "MIT" ]
1
2022-03-02T22:54:36.000Z
2022-03-02T22:54:36.000Z
project/apps/CI-producer/app/producers_test.py
Monxun/PortainerPractice
a3be077efe5c5eb2aa27b6a2fcf626989bdbbbe4
[ "MIT" ]
null
null
null
from os import strerror import os import pytest import datetime import sqlalchemy from sqlalchemy import inspect from sqlalchemy import select from sqlalchemy.orm import session from sqlalchemy.sql.expression import func ################################################# # DATABASE CONNECTOR user = 'user' password = ...
30.957746
74
0.746588
a7574f04a38567a940cb678fc874747f83a2b6d9
223
py
Python
quran/domain/edition.py
octabytes/quran
974d351cf5e6a12a28a5ac9f29c8d2753ae6dd86
[ "Apache-2.0" ]
null
null
null
quran/domain/edition.py
octabytes/quran
974d351cf5e6a12a28a5ac9f29c8d2753ae6dd86
[ "Apache-2.0" ]
null
null
null
quran/domain/edition.py
octabytes/quran
974d351cf5e6a12a28a5ac9f29c8d2753ae6dd86
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass from quran.domain.entity import Entity
14.866667
38
0.690583
a75778c132db31042c63da3f963565d091dded6a
1,231
py
Python
dataflow/core/visualization.py
alphamatic/amp
5018137097159415c10eaa659a2e0de8c4e403d4
[ "BSD-3-Clause" ]
5
2021-08-10T23:16:44.000Z
2022-03-17T17:27:00.000Z
dataflow/core/visualization.py
alphamatic/amp
5018137097159415c10eaa659a2e0de8c4e403d4
[ "BSD-3-Clause" ]
330
2021-06-10T17:28:22.000Z
2022-03-31T00:55:48.000Z
dataflow/core/visualization.py
alphamatic/amp
5018137097159415c10eaa659a2e0de8c4e403d4
[ "BSD-3-Clause" ]
6
2021-06-10T17:20:32.000Z
2022-03-28T08:08:03.000Z
""" Helper functions to visualize a graph in a notebook or save the plot to file. Import as: import dataflow.core.visualization as dtfcorvisu """ import IPython import networkx as networ import pygraphviz import dataflow.core.dag as dtfcordag import helpers.hdbg as hdbg import helpers.hio as hio def draw(dag: dtf...
25.122449
77
0.707555
a758f541fb2e3c2ec9bc820cd471a439cd2c4443
7,714
py
Python
scripts/pixel_error.py
ling-k/STOVE
fcf36139f41dee5ef892e90dedf1d2208da6fd3c
[ "MIT" ]
31
2019-10-14T01:48:44.000Z
2022-01-20T19:19:14.000Z
scripts/pixel_error.py
ling-k/STOVE
fcf36139f41dee5ef892e90dedf1d2208da6fd3c
[ "MIT" ]
3
2020-05-08T11:01:25.000Z
2021-05-24T07:50:10.000Z
scripts/pixel_error.py
ling-k/STOVE
fcf36139f41dee5ef892e90dedf1d2208da6fd3c
[ "MIT" ]
9
2020-01-13T11:25:16.000Z
2021-05-10T06:04:08.000Z
"""Calculate pixel errors for a single run or all runs in an experiment dir.""" import torch import itertools import numpy as np import imageio import argparse import os import glob from model.main import main as restore_model from model.utils.utils import bw_transform os.environ["CUDA_VISIBLE_DEVICES"] = '-1' def...
34.4375
93
0.621208
a75a94acdbd36e7b6da2d3d837a50b906558f9b8
770
py
Python
users/admin.py
JVacca12/FIRST
e3906209cae1198e1fbda4d00bc0a906e8294a69
[ "MIT" ]
null
null
null
users/admin.py
JVacca12/FIRST
e3906209cae1198e1fbda4d00bc0a906e8294a69
[ "MIT" ]
null
null
null
users/admin.py
JVacca12/FIRST
e3906209cae1198e1fbda4d00bc0a906e8294a69
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. """User admin classes.""" # Django from django.contrib import admin # Models from users.models import User
23.333333
154
0.633766
a75aa0bd60c43a11405b09d22589cf2d9c586cc5
3,469
py
Python
mud/migrations/0001_initial.py
lambda-mud-cs18/backend
060c5c1a317d8b6557e778cd539e75f24eff05dd
[ "MIT" ]
1
2022-01-12T17:44:26.000Z
2022-01-12T17:44:26.000Z
mud/migrations/0001_initial.py
lambda-mud-cs18/backend
060c5c1a317d8b6557e778cd539e75f24eff05dd
[ "MIT" ]
8
2020-02-12T01:12:46.000Z
2022-02-10T10:17:28.000Z
mud/migrations/0001_initial.py
lambda-mud-cs18/backend
060c5c1a317d8b6557e778cd539e75f24eff05dd
[ "MIT" ]
2
2022-01-12T17:44:29.000Z
2022-01-12T17:44:29.000Z
# Generated by Django 2.2.3 on 2019-07-31 17:10 from django.db import migrations, models
39.420455
84
0.51254
a75c1979034dbafe33e7945478e87745ce9ce8e5
918
py
Python
scripts/quest/q22504s.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
54
2019-04-16T23:24:48.000Z
2021-12-18T11:41:50.000Z
scripts/quest/q22504s.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
3
2019-05-19T15:19:41.000Z
2020-04-27T16:29:16.000Z
scripts/quest/q22504s.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
49
2020-11-25T23:29:16.000Z
2022-03-26T16:20:24.000Z
sm.setSpeakerID(1013000) sm.sendNext("Ugh. This isn't going to work. I need something else. No plants. No meat. What, you have no idea? But you're the master, and you're older than me, too. You must know what'd be good for me!") sm.setPlayerAsSpeaker() sm.sendSay("#bBut I don't. It's not like age has anything to do wi...
61.2
203
0.721133
a75cf13072fe0194f0d08765f3c331975a5d8df7
424
py
Python
user/migrations/0002_user_photo.py
martinlehoux/erp-reloaded
db7dea603095dec558f4b0ad9a0d2dbd20f8703c
[ "MIT" ]
null
null
null
user/migrations/0002_user_photo.py
martinlehoux/erp-reloaded
db7dea603095dec558f4b0ad9a0d2dbd20f8703c
[ "MIT" ]
5
2021-04-08T18:54:04.000Z
2021-06-10T18:37:26.000Z
user/migrations/0002_user_photo.py
martinlehoux/erp-reloaded
db7dea603095dec558f4b0ad9a0d2dbd20f8703c
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-03-01 00:58 from django.db import migrations, models import user.models
21.2
88
0.606132
a75f0071595f1cf5e30f78a377181f6b55570f76
61
py
Python
core/models/__init__.py
Bhaskers-Blu-Org1/bLVNet-TAM
feadcd3a1a25723dc28bed867580032181e824a3
[ "Apache-2.0" ]
62
2019-10-22T14:52:30.000Z
2021-07-27T12:07:38.000Z
core/models/__init__.py
Bhaskers-Blu-Org1/bLVNet-TAM
feadcd3a1a25723dc28bed867580032181e824a3
[ "Apache-2.0" ]
6
2019-12-16T06:03:42.000Z
2020-08-31T07:59:04.000Z
core/models/__init__.py
IBM/bLVNet-TAM
feadcd3a1a25723dc28bed867580032181e824a3
[ "Apache-2.0" ]
16
2019-11-02T06:49:19.000Z
2021-12-30T14:51:48.000Z
from .blvnet_tam import bLVNet_TAM __all__ = ['bLVNet_TAM']
15.25
34
0.770492
a760fe286388453e9bf13c54cc23324198919723
438
py
Python
monodepth/geometry/utils.py
vguizilini/packnet-sfm
e462716837f24c11cb227ca99fe30bcf12b3cc56
[ "MIT" ]
1
2020-04-30T07:32:57.000Z
2020-04-30T07:32:57.000Z
monodepth/geometry/utils.py
muzi2045/packnet-sfm
fec6d0b493b784cabe5e6bf9c65b996a83c63fe1
[ "MIT" ]
null
null
null
monodepth/geometry/utils.py
muzi2045/packnet-sfm
fec6d0b493b784cabe5e6bf9c65b996a83c63fe1
[ "MIT" ]
null
null
null
# Copyright 2020 Toyota Research Institute. All rights reserved. """ Geometry utilities """ import numpy as np def invert_pose_numpy(T): """ 'Invert' 4x4 extrinsic matrix Parameters ---------- T: 4x4 matrix (world to camera) Returns ------- 4x4 matrix (camera to world) """ ...
16.222222
65
0.547945
a7624496ee4975eb04a3c005275217a54323fb5d
27,209
py
Python
minesweeper.py
MrAttoAttoAtto/Cool-Programming-Project
68214d089b612fdcca7fe76dce3464edec35ce2b
[ "MIT" ]
null
null
null
minesweeper.py
MrAttoAttoAtto/Cool-Programming-Project
68214d089b612fdcca7fe76dce3464edec35ce2b
[ "MIT" ]
null
null
null
minesweeper.py
MrAttoAttoAtto/Cool-Programming-Project
68214d089b612fdcca7fe76dce3464edec35ce2b
[ "MIT" ]
null
null
null
#Minesweeper! from tkinter import * import random, time, math, threading, os.path, os #Tkinter Class def openMain(caller, xLength=None, yLength=None, percentOfBombs=None, winChoice=None, master=None): #restarts it outside of the class global minesweeper if master != None: #if it has been called from the pl...
40.429421
183
0.592745
a7625f42a7dd6cbf1419217f4da8ae9f6f00c5f6
5,431
py
Python
cannlytics/utils/scraper.py
mindthegrow/cannlytics
c266bc1169bef75214985901cd3165f415ad9ba7
[ "MIT" ]
7
2021-05-31T15:30:22.000Z
2022-02-05T14:12:31.000Z
cannlytics/utils/scraper.py
mindthegrow/cannlytics
c266bc1169bef75214985901cd3165f415ad9ba7
[ "MIT" ]
17
2021-06-09T01:04:27.000Z
2022-03-18T14:48:12.000Z
cannlytics/utils/scraper.py
mindthegrow/cannlytics
c266bc1169bef75214985901cd3165f415ad9ba7
[ "MIT" ]
5
2021-06-07T13:52:33.000Z
2021-08-04T00:09:39.000Z
# -*- coding: utf-8 -*- """ Scrape Website Data | Cannlytics Copyright 2021 Cannlytics Author: Keegan Skeate <keegan@cannlytics.com> Created: 1/10/2021 License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY...
30.511236
110
0.598048
a762725a417c914c2de8c1cfaad398234b972ef4
22,326
py
Python
acsm/utils/bird_vis.py
eldar/acsm
04069e8bb4c12185473dc10c3355e5367fa98968
[ "Apache-2.0" ]
52
2020-04-02T12:35:55.000Z
2022-03-11T07:47:30.000Z
acsm/utils/bird_vis.py
eldar/acsm
04069e8bb4c12185473dc10c3355e5367fa98968
[ "Apache-2.0" ]
8
2020-06-04T07:34:34.000Z
2021-09-18T21:17:26.000Z
acsm/utils/bird_vis.py
eldar/acsm
04069e8bb4c12185473dc10c3355e5367fa98968
[ "Apache-2.0" ]
6
2020-07-12T02:12:18.000Z
2021-03-06T05:03:33.000Z
""" Code borrowed from https://github.com/akanazawa/cmr/blob/master/utils/bird_vis.py Visualization helpers specific to birds. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import torch from torch.autograd import Variable import numpy as np import os...
37.585859
150
0.61874
a7641eec8122f15991dc897dc20ebeb0e83b0d20
10,764
py
Python
gatenlp/corpora/files.py
joancf/python-gatenlp
21441d72ded19e9348052e99ac5bc1fc6af7ab6e
[ "Apache-2.0" ]
30
2020-04-18T12:28:15.000Z
2022-02-18T21:31:18.000Z
gatenlp/corpora/files.py
joancf/python-gatenlp
21441d72ded19e9348052e99ac5bc1fc6af7ab6e
[ "Apache-2.0" ]
133
2019-10-16T07:41:59.000Z
2022-03-31T07:27:07.000Z
gatenlp/corpora/files.py
joancf/python-gatenlp
21441d72ded19e9348052e99ac5bc1fc6af7ab6e
[ "Apache-2.0" ]
4
2021-01-20T08:12:19.000Z
2021-10-21T13:29:44.000Z
""" Module that defines Corpus and DocumentSource/DocumentDestination classes which access documents as lines or parts in a file. """ import json from gatenlp.urlfileutils import yield_lines_from from gatenlp.document import Document from gatenlp.corpora.base import DocumentSource, DocumentDestination from gatenlp.cor...
40.164179
118
0.590673
a7646b2e354d22868d6a6f4cc986b8c2069e186b
709
py
Python
src/ch5-viewmodels/web/services/AccountPageService.py
saryeHaddadi/Python.Course.WebAppFastAPI
ddc1f1850473c227e715c8ecd2afd741e53c4680
[ "MIT" ]
null
null
null
src/ch5-viewmodels/web/services/AccountPageService.py
saryeHaddadi/Python.Course.WebAppFastAPI
ddc1f1850473c227e715c8ecd2afd741e53c4680
[ "MIT" ]
null
null
null
src/ch5-viewmodels/web/services/AccountPageService.py
saryeHaddadi/Python.Course.WebAppFastAPI
ddc1f1850473c227e715c8ecd2afd741e53c4680
[ "MIT" ]
null
null
null
import fastapi from starlette.requests import Request from web.viewmodels.account.AccountViewModel import AccountViewModel from web.viewmodels.account.LoginViewModel import LoginViewModel from web.viewmodels.account.RegisterViewModel import RegisterViewModel router = fastapi.APIRouter()
22.870968
70
0.760226
a7659e9cd38acecd1d387852d0d503d7207e98a9
29,031
py
Python
src/opserver/uveserver.py
madkiss/contrail-controller
17f622dfe99f8ab4163436399e80f95dd564814c
[ "Apache-2.0" ]
null
null
null
src/opserver/uveserver.py
madkiss/contrail-controller
17f622dfe99f8ab4163436399e80f95dd564814c
[ "Apache-2.0" ]
null
null
null
src/opserver/uveserver.py
madkiss/contrail-controller
17f622dfe99f8ab4163436399e80f95dd564814c
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. # # # UVEServer # # Operational State Server for UVEs # import gevent import json import copy import xmltodict import redis import datetime import sys from opserver_util import OpServerUtils import re from gevent.coros import BoundedSemaphore from pys...
41.711207
91
0.450484
a765ce6d1c1eea007b73c094feaef3cfb92302b9
6,559
py
Python
tests/datasets/test_tonas.py
lucaspbastos/mirdata
e591c5411c41591e8606812df869dca1ad52ee0f
[ "BSD-3-Clause" ]
224
2019-05-08T14:46:05.000Z
2022-03-31T12:14:39.000Z
tests/datasets/test_tonas.py
oriolcolomefont/mirdata
e591c5411c41591e8606812df869dca1ad52ee0f
[ "BSD-3-Clause" ]
492
2019-04-08T16:59:33.000Z
2022-01-19T13:50:56.000Z
tests/datasets/test_tonas.py
oriolcolomefont/mirdata
e591c5411c41591e8606812df869dca1ad52ee0f
[ "BSD-3-Clause" ]
46
2019-04-11T15:12:18.000Z
2022-01-19T17:33:50.000Z
import numpy as np from tests.test_utils import run_track_tests from mirdata import annotations from mirdata.datasets import tonas TEST_DATA_HOME = "tests/resources/mir_datasets/tonas"
30.649533
96
0.633938
a765ee4d5ce159cb94158867be1e207d0bdc988c
1,064
py
Python
pycreds.py
Ennovar/aws-creds-test
fcc5c10c8cfb79bb0ea0fd52f2e2f137efd8a9ce
[ "Apache-2.0" ]
7
2017-06-13T15:55:23.000Z
2019-05-23T18:52:00.000Z
pycreds.py
Ennovar/aws-creds-test
fcc5c10c8cfb79bb0ea0fd52f2e2f137efd8a9ce
[ "Apache-2.0" ]
2
2019-02-16T12:56:33.000Z
2020-07-02T19:32:58.000Z
pycreds.py
Ennovar/aws-creds-test
fcc5c10c8cfb79bb0ea0fd52f2e2f137efd8a9ce
[ "Apache-2.0" ]
8
2017-05-17T22:46:07.000Z
2022-03-11T14:27:56.000Z
import os import hashlib import getpass import hmac import botocore.session import botocore.exceptions if __name__ == '__main__': main()
30.4
72
0.656015
a765f6c349621f1e0308c3686c2a549868853c7d
1,854
py
Python
sopel_modules/urban_dictionary/urbandictionary.py
capsterx/sopel-urbandictionary
188a54badc64c4626b1413dfab93ee685f543cf1
[ "MIT" ]
null
null
null
sopel_modules/urban_dictionary/urbandictionary.py
capsterx/sopel-urbandictionary
188a54badc64c4626b1413dfab93ee685f543cf1
[ "MIT" ]
1
2021-01-10T06:53:49.000Z
2021-01-13T02:03:30.000Z
sopel_modules/urban_dictionary/urbandictionary.py
capsterx/sopel-urbandictionary
188a54badc64c4626b1413dfab93ee685f543cf1
[ "MIT" ]
null
null
null
from sopel.module import commands, example from sopel import web import sopel.module import socket import re import urbandictionary as ud BOLD=chr(0x02) ITALICS=chr(0x1D) UNDERLINE=chr(0x1F)
29.903226
119
0.651564
a7660deda124d1efd2085f69810453398abdc730
324
py
Python
Aula01 e exercicios/exercicio_06.py
Dorcival/PYTHON
0dc3fa53699d40b21c6ed721a190ffb4f8404345
[ "MIT" ]
null
null
null
Aula01 e exercicios/exercicio_06.py
Dorcival/PYTHON
0dc3fa53699d40b21c6ed721a190ffb4f8404345
[ "MIT" ]
null
null
null
Aula01 e exercicios/exercicio_06.py
Dorcival/PYTHON
0dc3fa53699d40b21c6ed721a190ffb4f8404345
[ "MIT" ]
null
null
null
# Conversor de CELSIUS para FAHRENHEIT v.0.1 # Por Dorcival Leite 202003362174 import time print("CONVERTER TEMPERATURA DE CELSIUS PARA FAHRENHEIT\n") c = float(input("Digite a temperatura em CELSIUS: ")) f = float((9 * c)/5)+32 print("\nA temperatura de", c, "graus CELSIUS igual a", f, "graus FAHRENHEIT") time.sleep(...
40.5
80
0.734568
a7687184494cf93d9f5d684cfc40811e7667b3e4
772
py
Python
multranslate.py
anoidgit/NMTServer
f608695c4c1f5319fb3c56f218b1d78056861c62
[ "Apache-2.0" ]
3
2017-08-29T22:56:38.000Z
2017-12-12T06:20:35.000Z
multranslate.py
anoidgit/NMTServer
f608695c4c1f5319fb3c56f218b1d78056861c62
[ "Apache-2.0" ]
1
2017-09-10T08:02:24.000Z
2017-09-12T01:03:25.000Z
multranslate.py
anoidgit/NMTServer
f608695c4c1f5319fb3c56f218b1d78056861c62
[ "Apache-2.0" ]
null
null
null
#encoding: utf-8 import sys reload(sys) sys.setdefaultencoding( "utf-8" ) import zmq, sys, json import seg import detoken import datautils from random import sample serverl=["tcp://127.0.0.1:"+str(port) for port in xrange(5556,5556+4)]
19.794872
182
0.75
a769f370668047fa9ac58fd30c92b5d2a06a8ba0
10,995
py
Python
face_detector.py
duwizerak/Keras_insightface
dae425d7ef5dfeccb50a8ddca5814a0901b2957a
[ "MIT" ]
null
null
null
face_detector.py
duwizerak/Keras_insightface
dae425d7ef5dfeccb50a8ddca5814a0901b2957a
[ "MIT" ]
null
null
null
face_detector.py
duwizerak/Keras_insightface
dae425d7ef5dfeccb50a8ddca5814a0901b2957a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import numpy as np import tensorflow as tf from tqdm import tqdm from glob2 import glob from skimage import transform from skimage.io import imread, imsave gpus = tf.config.experimental.list_physical_devices("GPU") for gpu in gpus: tf.config.experimental.set_memory_growth(gpu, Tru...
46.588983
149
0.606639
a76a5f631eaf931f6a0d7bb1f2bdb5a30e7ae751
4,132
py
Python
pyleus/configuration.py
earthmine/pyleus
4d9c14c9df470be6ff544f2ad82985f37e582d80
[ "Apache-2.0" ]
166
2015-01-14T16:06:37.000Z
2021-11-15T12:17:11.000Z
pyleus/configuration.py
WenbinTan/pyleus
8ab87e2d18b8b6a7e0471ceefdbb3ff23a576cce
[ "Apache-2.0" ]
105
2015-01-16T19:59:06.000Z
2016-05-13T19:40:45.000Z
pyleus/configuration.py
WenbinTan/pyleus
8ab87e2d18b8b6a7e0471ceefdbb3ff23a576cce
[ "Apache-2.0" ]
62
2015-01-19T07:42:24.000Z
2021-06-05T21:02:09.000Z
"""Configuration defaults and loading functions. Pyleus will look for configuration files in the following file paths in order of increasing precedence. The latter configuration overrides the previous one. #. /etc/pyleus.conf #. ~/.config/pyleus.conf #. ~/.pyleus.conf You can always specify a configuration file when...
28.694444
79
0.717086
a76b01dad5f2ae8289af31fef183a815e3bdd1f2
1,318
py
Python
tests/conftest.py
sdrobert/pydrobert-param
d9f68bbcebfcc5ca909c639b03b959526a8b1631
[ "Apache-2.0" ]
1
2021-05-14T18:27:13.000Z
2021-05-14T18:27:13.000Z
tests/conftest.py
sdrobert/pydrobert-param
d9f68bbcebfcc5ca909c639b03b959526a8b1631
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
sdrobert/pydrobert-param
d9f68bbcebfcc5ca909c639b03b959526a8b1631
[ "Apache-2.0" ]
null
null
null
from shutil import rmtree from tempfile import mkdtemp import pytest import param import pydrobert.param.serialization as serial param.parameterized.warnings_as_exceptions = True
24.867925
56
0.677542
a76b06cca3e635c2f5710089e70486f5a0bbb87e
1,942
py
Python
tests/test_npaths.py
mtymchenko/npaths
5019694784afee9f60ab0b5f0f0ef3051e113077
[ "MIT" ]
null
null
null
tests/test_npaths.py
mtymchenko/npaths
5019694784afee9f60ab0b5f0f0ef3051e113077
[ "MIT" ]
null
null
null
tests/test_npaths.py
mtymchenko/npaths
5019694784afee9f60ab0b5f0f0ef3051e113077
[ "MIT" ]
null
null
null
import unittest import numpy as np import matplotlib.pyplot as plt from npaths import NPathNode, Filter, Circulator __all__ = [ 'TestNPathNode', 'TestFilter', 'TestCirculator' ] GHz = 1e9 ohm = 1 pF = 1e-12 freqs = np.linspace(0.001, 6, 500)*GHz if __name__ == '__main__': unittest.main()
21.577778
56
0.549949
a76bc9e0503e467514bbda7a08ff3433e4b780d7
2,896
py
Python
python/o80_pam/o80_ball.py
intelligent-soft-robots/o80_pam
3491dcdace61f58e0cf31149184593da3cd2f017
[ "BSD-3-Clause" ]
null
null
null
python/o80_pam/o80_ball.py
intelligent-soft-robots/o80_pam
3491dcdace61f58e0cf31149184593da3cd2f017
[ "BSD-3-Clause" ]
2
2021-02-17T12:55:44.000Z
2021-05-27T14:10:57.000Z
python/o80_pam/o80_ball.py
intelligent-soft-robots/o80_pam
3491dcdace61f58e0cf31149184593da3cd2f017
[ "BSD-3-Clause" ]
null
null
null
import o80 import o80_pam import context # convenience class for shooting virtual balls # via o80, playing pre-recorded trajectories (hosted in context package)
31.139785
88
0.632597
a76c133ddf548f99aff8129ee6e9cbb2e7608901
5,374
py
Python
pymic/transform/threshold.py
HiLab-git/PyMIC
abf5c43de43668b85f4c049c95a8f1b7cf1d9f16
[ "Apache-2.0" ]
147
2019-12-23T02:52:04.000Z
2022-03-06T16:30:43.000Z
pymic/transform/threshold.py
HiLab-git/PyMIC
abf5c43de43668b85f4c049c95a8f1b7cf1d9f16
[ "Apache-2.0" ]
4
2020-12-18T12:47:21.000Z
2021-05-21T02:18:01.000Z
pymic/transform/threshold.py
HiLab-git/PyMIC
abf5c43de43668b85f4c049c95a8f1b7cf1d9f16
[ "Apache-2.0" ]
32
2020-01-08T13:48:50.000Z
2022-03-12T06:31:13.000Z
# -*- coding: utf-8 -*- from __future__ import print_function, division import torch import json import math import random import numpy as np from scipy import ndimage from pymic.transform.abstract_transform import AbstractTransform from pymic.util.image_process import *
48.854545
106
0.619092
a76da74714c837b30e9c8d8f4fbec4b1ea99f85f
211
py
Python
exerc18/18.py
WilliamSampaio/ExerciciosPython
4317d242d2944b91b5d455da8a4ac3a33e154385
[ "MIT" ]
null
null
null
exerc18/18.py
WilliamSampaio/ExerciciosPython
4317d242d2944b91b5d455da8a4ac3a33e154385
[ "MIT" ]
null
null
null
exerc18/18.py
WilliamSampaio/ExerciciosPython
4317d242d2944b91b5d455da8a4ac3a33e154385
[ "MIT" ]
null
null
null
import os numeros = [0,0] numeros[0] = float(input('Digite o numero 1: ')) numeros[1] = float(input('Digite o numero 2: ')) print(f'o maior valor entre os dois : {max(numeros)}') os.system('pause')
21.1
56
0.630332
a76e729d78669a3e706e9fdd618185c47c67bee8
7,958
py
Python
DictionaryOfNewZealandEnglish/headword/citation/views.py
eResearchSandpit/DictionaryOfNewZealandEnglish
cf3cec34aafc7a9a8bd0413883f5eeb314d46a48
[ "BSD-3-Clause" ]
null
null
null
DictionaryOfNewZealandEnglish/headword/citation/views.py
eResearchSandpit/DictionaryOfNewZealandEnglish
cf3cec34aafc7a9a8bd0413883f5eeb314d46a48
[ "BSD-3-Clause" ]
null
null
null
DictionaryOfNewZealandEnglish/headword/citation/views.py
eResearchSandpit/DictionaryOfNewZealandEnglish
cf3cec34aafc7a9a8bd0413883f5eeb314d46a48
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Citations from flask import (Blueprint, request, render_template, flash, url_for, redirect, session) from flask.ext.login import login_required, current_user import logging, sys, re from sqlalchemy.exc import IntegrityError, InvalidRequestError from DictionaryOfNewZealandE...
35.846847
86
0.518975
a76eab46ba07f0fb8885169ad3e849032ee2d76c
81
py
Python
tests/conf.py
xncbf/django-dynamodb-cache
be6d1b4b8e92d581041043bcd694f2a9f00ee386
[ "MIT" ]
21
2022-02-16T10:18:24.000Z
2022-03-31T23:40:06.000Z
tests/conf.py
xncbf/django-dynamodb-cache
be6d1b4b8e92d581041043bcd694f2a9f00ee386
[ "MIT" ]
9
2022-03-01T06:40:59.000Z
2022-03-26T08:12:31.000Z
tests/conf.py
xncbf/django-dynamodb-cache
be6d1b4b8e92d581041043bcd694f2a9f00ee386
[ "MIT" ]
null
null
null
from random import random TABLE_NAME = f"test-django-dynamodb-cache-{random()}"
20.25
53
0.765432
a76f70dafa18b95735a41dd028a3dcb5cbf10b66
1,863
py
Python
dockerfiles/greeting/0.2/database.py
scherbertlemon/docker-training
f94c79b461f78a4d9242a3e838524efb70a2792e
[ "MIT" ]
1
2021-08-06T17:00:53.000Z
2021-08-06T17:00:53.000Z
dockerfiles/greeting/0.2/database.py
scherbertlemon/docker-training
f94c79b461f78a4d9242a3e838524efb70a2792e
[ "MIT" ]
null
null
null
dockerfiles/greeting/0.2/database.py
scherbertlemon/docker-training
f94c79b461f78a4d9242a3e838524efb70a2792e
[ "MIT" ]
null
null
null
import psycopg2 as pg import os """ Database (Postgres) module connecting to the database for the simple greeting app. """ # The hostname where the database is running can be determined via environment PGHOST = os.getenv("PG_HOST") if os.getenv("PG_HOST") else "localhost" def get_pgconn(): """ Connects to t...
23
78
0.616747
a76faf50eeea6f4eeb893d3b2fcef43aec0e7eaf
3,277
py
Python
generator/constant_aug.py
zhou3968322/pytorch-CycleGAN-and-pix2pix
30730fddbc6797c5e421cd49c9fef369011d484d
[ "BSD-3-Clause" ]
null
null
null
generator/constant_aug.py
zhou3968322/pytorch-CycleGAN-and-pix2pix
30730fddbc6797c5e421cd49c9fef369011d484d
[ "BSD-3-Clause" ]
null
null
null
generator/constant_aug.py
zhou3968322/pytorch-CycleGAN-and-pix2pix
30730fddbc6797c5e421cd49c9fef369011d484d
[ "BSD-3-Clause" ]
null
null
null
# 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 # -*- coding:utf-8 -*- # email:bingchengzhou@foxmail.com # create: 2020/11/25 from imgaug imp...
30.915094
90
0.53494
a77112792896e19b96e12810cacf0861b725bf41
3,873
py
Python
ooobuild/lo/packages/x_data_sink_encr_support.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/packages/x_data_sink_encr_support.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/packages/x_data_sink_encr_support.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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...
39.520408
178
0.694036
a77229f1a130b744660ffd1757e86e6d6dd38d54
1,074
py
Python
questions/q197_choose_and_swap/code.py
aadhityasw/Competitive-Programs
901a48d35f024a3a87c32a45b7f4531e8004a203
[ "MIT" ]
null
null
null
questions/q197_choose_and_swap/code.py
aadhityasw/Competitive-Programs
901a48d35f024a3a87c32a45b7f4531e8004a203
[ "MIT" ]
1
2021-05-15T07:56:51.000Z
2021-05-15T07:56:51.000Z
questions/q197_choose_and_swap/code.py
aadhityasw/Competitive-Programs
901a48d35f024a3a87c32a45b7f4531e8004a203
[ "MIT" ]
null
null
null
if __name__ == '__main__': ob = Solution() t = int (input ()) for _ in range (t): A = input() ans = ob.chooseandswap(A) print(ans)
23.347826
46
0.286778
a7730b1c8e64cf80eb7189889ed0d119ac2a5fc8
10,625
py
Python
assignment4/assignment4.py
umamibeef/UBC-EECE-560-Coursework
4c89fb03a4dacf778e31eeb978423bfdaa95b591
[ "MIT" ]
null
null
null
assignment4/assignment4.py
umamibeef/UBC-EECE-560-Coursework
4c89fb03a4dacf778e31eeb978423bfdaa95b591
[ "MIT" ]
null
null
null
assignment4/assignment4.py
umamibeef/UBC-EECE-560-Coursework
4c89fb03a4dacf778e31eeb978423bfdaa95b591
[ "MIT" ]
null
null
null
import argparse import csv import matplotlib import matplotlib.ticker as tck import matplotlib.pyplot as plt import numpy as np # Matplotlib export settings matplotlib.use('pgf') import matplotlib.pyplot as plt matplotlib.rcParams.update({ 'pgf.texsystem': 'pdflatex', 'font.size': 10, 'font.family': 'ser...
48.076923
155
0.660706
a774dc8ec0c70281d59955e540db50979da5c0cf
4,744
py
Python
src/python/pants/scm/subsystems/changed.py
lahosken/pants
1b0340987c9b2eab9411416803c75b80736716e4
[ "Apache-2.0" ]
1
2021-11-11T14:04:24.000Z
2021-11-11T14:04:24.000Z
src/python/pants/scm/subsystems/changed.py
lahosken/pants
1b0340987c9b2eab9411416803c75b80736716e4
[ "Apache-2.0" ]
null
null
null
src/python/pants/scm/subsystems/changed.py
lahosken/pants
1b0340987c9b2eab9411416803c75b80736716e4
[ "Apache-2.0" ]
1
2021-11-11T14:04:12.000Z
2021-11-11T14:04:12.000Z
# coding=utf-8 # Copyright 2016 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) from pants.base.buil...
41.982301
103
0.706788
a775681f9ac02e296e8b3818c15064c985162dc4
1,825
py
Python
SOLID/LSP/GoodLSPCode.py
maumneto/DesignPatternCourse
eb55a3d4e6a3261265dc98fcc6ec48d7b8e6b7a8
[ "MIT" ]
1
2021-06-26T15:32:35.000Z
2021-06-26T15:32:35.000Z
SOLID/LSP/GoodLSPCode.py
maumneto/DesignPatternCourse
eb55a3d4e6a3261265dc98fcc6ec48d7b8e6b7a8
[ "MIT" ]
null
null
null
SOLID/LSP/GoodLSPCode.py
maumneto/DesignPatternCourse
eb55a3d4e6a3261265dc98fcc6ec48d7b8e6b7a8
[ "MIT" ]
null
null
null
if __name__ == '__main__': commonAccount = AccountCommon(500) commonAccount.deposit(500) commonAccount.withdraw(100) commonAccount.income(0.005) commonAccount.message() print(' ------- ') spetialAccount = AccountSpetial(1000) spetialAccount.deposit(500) spetialAccount.withdraw(200) ...
26.449275
65
0.629041
a7758434e025289995bc94bace734e2f383e3e76
818
py
Python
test/test_global_customer_api.py
ezmaxinc/eZmax-SDK-python
6794b8001abfb7d9ae18a3b87aba164839b925a0
[ "MIT" ]
null
null
null
test/test_global_customer_api.py
ezmaxinc/eZmax-SDK-python
6794b8001abfb7d9ae18a3b87aba164839b925a0
[ "MIT" ]
null
null
null
test/test_global_customer_api.py
ezmaxinc/eZmax-SDK-python
6794b8001abfb7d9ae18a3b87aba164839b925a0
[ "MIT" ]
null
null
null
""" eZmax API Definition (Full) This API expose all the functionnalities for the eZmax and eZsign applications. # noqa: E501 The version of the OpenAPI document: 1.1.7 Contact: support-api@ezmax.ca Generated by: https://openapi-generator.tech """ import unittest import eZmaxApi from eZmaxApi.a...
22.108108
97
0.689487
a7762ca16d51e6d7fb512c7980d15ee79dbeff30
3,930
py
Python
reconstruction_model.py
JungahYang/Deep3DFaceReconstruction
041b89a781f90ba459f3294c4e568b5c1a3cf7da
[ "MIT" ]
1,424
2019-05-07T05:03:12.000Z
2022-03-31T08:52:29.000Z
reconstruction_model.py
zepengF/Deep3DFaceReconstruction
5b131a3e67597da67409486e20db50007f48427d
[ "MIT" ]
194
2019-05-08T21:11:23.000Z
2022-03-30T02:58:25.000Z
reconstruction_model.py
zepengF/Deep3DFaceReconstruction
5b131a3e67597da67409486e20db50007f48427d
[ "MIT" ]
359
2019-05-10T11:05:41.000Z
2022-03-28T21:57:42.000Z
import tensorflow as tf import face_decoder import networks import losses from utils import * ############################################################################################### # model for single image face reconstruction ##############################################################################...
45.697674
142
0.711705
a7779af144a3ba68deaf47c8047f304427889fe5
2,002
py
Python
organizational_area/admin.py
mspasiano/uniTicket
1e8e4c2274293e751deea5b8b1fb4116136c5641
[ "Apache-2.0" ]
null
null
null
organizational_area/admin.py
mspasiano/uniTicket
1e8e4c2274293e751deea5b8b1fb4116136c5641
[ "Apache-2.0" ]
null
null
null
organizational_area/admin.py
mspasiano/uniTicket
1e8e4c2274293e751deea5b8b1fb4116136c5641
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from .models import * from .admin_inlines import * #@admin.register(TipoDotazione) #class TipoDotazioneAdmin(admin.ModelAdmin): #list_display = ('nome', 'descrizione') #class Media: #js = ('js/textarea-autosize.js',) #css = {'all': ('css/textarea-small.cs...
29.014493
68
0.700799
a777a11d9cdd73ba24751d88b5b9e8b62e919781
2,509
py
Python
tests/test_symgroup.py
efrembernuz/symeess
d74868bbb8463e0420fcc28e3554fbfa8e6de22f
[ "MIT" ]
1
2017-10-25T01:42:14.000Z
2017-10-25T01:42:14.000Z
tests/test_symgroup.py
efrembernuz/symeess
d74868bbb8463e0420fcc28e3554fbfa8e6de22f
[ "MIT" ]
null
null
null
tests/test_symgroup.py
efrembernuz/symeess
d74868bbb8463e0420fcc28e3554fbfa8e6de22f
[ "MIT" ]
null
null
null
import unittest from cosymlib import file_io from numpy import testing from cosymlib.molecule.geometry import Geometry import os data_dir = os.path.join(os.path.dirname(__file__), 'data')
44.017544
96
0.595058
a777d3b6992912736d9d3c1557062ac6df7a8a29
5,651
py
Python
mouth_detecting.py
nuocheng/Face-detection
84375b0c1bacaf572fb04aa6e05751469fe5f9c8
[ "MIT" ]
null
null
null
mouth_detecting.py
nuocheng/Face-detection
84375b0c1bacaf572fb04aa6e05751469fe5f9c8
[ "MIT" ]
null
null
null
mouth_detecting.py
nuocheng/Face-detection
84375b0c1bacaf572fb04aa6e05751469fe5f9c8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # import the necessary packages from scipy.spatial import distance as dist from imutils.video import FileVideoStream from imutils.video import VideoStream from imutils import face_utils import numpy as np # numpy import argparse import imutils import time import dlib import cv2 # # # EYE...
32.854651
117
0.603787
a7780199003eb4084f3a08db621a30c4ac94b9d2
2,894
py
Python
Scripts/Ros/Identifica_cor.py
pcliquet/robotic_resumo
3d1d8705820cae39d5be956836a94c7884ab490d
[ "MIT" ]
1
2022-03-26T22:50:26.000Z
2022-03-26T22:50:26.000Z
Scripts/Ros/Identifica_cor.py
pcliquet/robotic_resumo
3d1d8705820cae39d5be956836a94c7884ab490d
[ "MIT" ]
null
null
null
Scripts/Ros/Identifica_cor.py
pcliquet/robotic_resumo
3d1d8705820cae39d5be956836a94c7884ab490d
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 # -*- coding:utf-8 -*- import rospy import numpy as np import tf import math import cv2 import time from geometry_msgs.msg import Twist, Vector3, Pose from nav_msgs.msg import Odometry from sensor_msgs.msg import Image, CompressedImage from cv_bridge import CvBridge, CvBridgeError import smach...
33.651163
129
0.664824
a77866394277674aa9998582e0c75620917bdb48
2,041
py
Python
integration_tests/test_test_oracle_tax.py
weblucas/mseg-semantic
ec3d179003bb26dd0f1336853b719319721757a4
[ "MIT" ]
391
2020-06-05T17:30:44.000Z
2022-03-31T12:01:30.000Z
integration_tests/test_test_oracle_tax.py
weblucas/mseg-semantic
ec3d179003bb26dd0f1336853b719319721757a4
[ "MIT" ]
27
2020-06-06T15:08:37.000Z
2022-02-28T07:57:57.000Z
integration_tests/test_test_oracle_tax.py
weblucas/mseg-semantic
ec3d179003bb26dd0f1336853b719319721757a4
[ "MIT" ]
57
2020-06-09T06:05:30.000Z
2022-03-28T15:49:36.000Z
#!/usr/bin/python3 from pathlib import Path from types import SimpleNamespace from mseg_semantic.scripts.collect_results import parse_result_file from mseg_semantic.tool.test_oracle_tax import test_oracle_taxonomy_model REPO_ROOT_ = Path(__file__).resolve().parent.parent # Replace this variables with your own path...
28.347222
96
0.708476
a7799a223cdf2e189549e42fb31de6f6391c2873
1,911
py
Python
sports_manager/models/gymnasium.py
hbuyse/dj-sports-manager
7e32cc41347b968b4ede9ea6846de14d9504c3f9
[ "MIT" ]
null
null
null
sports_manager/models/gymnasium.py
hbuyse/dj-sports-manager
7e32cc41347b968b4ede9ea6846de14d9504c3f9
[ "MIT" ]
null
null
null
sports_manager/models/gymnasium.py
hbuyse/dj-sports-manager
7e32cc41347b968b4ede9ea6846de14d9504c3f9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Gymnasium implementation.""" # Django from django.core.validators import RegexValidator from django.db import models from django.utils.text import slugify from django.utils.translation import ugettext_lazy as _ # noqa
36.75
103
0.588697
a779d1a47d9473c22bbee36fab9477af4aad4943
228
py
Python
01-logica-de-programacao-e-algoritmos/Aula 04/1/exercicio01.py
rafaelbarretomg/Uninter
1f84b0103263177122663e991db3a8aeb106a959
[ "MIT" ]
null
null
null
01-logica-de-programacao-e-algoritmos/Aula 04/1/exercicio01.py
rafaelbarretomg/Uninter
1f84b0103263177122663e991db3a8aeb106a959
[ "MIT" ]
null
null
null
01-logica-de-programacao-e-algoritmos/Aula 04/1/exercicio01.py
rafaelbarretomg/Uninter
1f84b0103263177122663e991db3a8aeb106a959
[ "MIT" ]
null
null
null
# Exercicio 01 Tuplas x = int(input('Digite o primeiro numero: ')) y = int(input('Digite o segundo numero: ')) cont = 1 soma = x while cont < y: soma = soma + x cont = cont + 1 print('O resultado eh: {}' .format(soma))
20.727273
44
0.618421
a77a0a8078a541187f7e349449f50c15dd027ebe
832
py
Python
docs/OOPS/Accessing_pvt_var2.py
munyumunyu/Python-for-beginners
335d001d4b8f13af71f660beed0b7f5fe313aa3b
[ "MIT" ]
158
2018-10-03T23:36:48.000Z
2022-03-25T00:16:00.000Z
docs/OOPS/Accessing_pvt_var2.py
munyumunyu/Python-for-beginners
335d001d4b8f13af71f660beed0b7f5fe313aa3b
[ "MIT" ]
10
2018-10-11T03:52:28.000Z
2019-12-04T02:51:28.000Z
docs/OOPS/Accessing_pvt_var2.py
munyumunyu/Python-for-beginners
335d001d4b8f13af71f660beed0b7f5fe313aa3b
[ "MIT" ]
40
2018-10-03T10:47:28.000Z
2022-02-22T19:55:46.000Z
''' To have a error free way of accessing and updating private variables, we create specific methods for this. Those methods which are meant to set a value to a private variable are called setter methods and methods meant to access private variable values are called getter methods. The below code is an example of g...
32
107
0.71274
a77b4550c67262bf40db6267243d9f55a2869fd2
21,013
py
Python
src/runmanager/runinstance.py
scherma/antfarm
ad4d1d564eb79bdc7e00780b97ca10594c75cd5c
[ "MIT" ]
6
2018-08-26T10:15:29.000Z
2022-03-03T21:12:37.000Z
src/runmanager/runinstance.py
scherma/antfarm
ad4d1d564eb79bdc7e00780b97ca10594c75cd5c
[ "MIT" ]
10
2018-03-09T18:18:28.000Z
2021-05-06T21:37:53.000Z
src/runmanager/runinstance.py
scherma/antfarm
ad4d1d564eb79bdc7e00780b97ca10594c75cd5c
[ "MIT" ]
3
2018-11-29T07:47:30.000Z
2020-05-24T09:58:57.000Z
#!/usr/bin/env python3 # coding: utf-8 # MIT License https://github.com/scherma # contact http_error_418 @ unsafehex.com import logging, os, configparser, libvirt, json, arrow, pyvnc, shutil, time, victimfiles, glob, websockify, multiprocessing, signal import tempfile, evtx_dates, db_calls, psycopg2, psycopg2.extras,...
42.279678
158
0.555942
a77c6d836bc31836353a31c25d2a780968623e8a
4,104
py
Python
test-framework/test-suites/integration/tests/list/test_list_repo.py
sammeidinger/stack
a8085dce179dbe903f65f136f4b63bcc076cc057
[ "BSD-3-Clause" ]
123
2015-05-12T23:36:45.000Z
2017-07-05T23:26:57.000Z
test-framework/test-suites/integration/tests/list/test_list_repo.py
sammeidinger/stack
a8085dce179dbe903f65f136f4b63bcc076cc057
[ "BSD-3-Clause" ]
177
2015-06-05T19:17:47.000Z
2017-07-07T17:57:24.000Z
test-framework/test-suites/integration/tests/list/test_list_repo.py
sammeidinger/stack
a8085dce179dbe903f65f136f4b63bcc076cc057
[ "BSD-3-Clause" ]
32
2015-06-07T02:25:03.000Z
2017-06-23T07:35:35.000Z
import json
33.096774
144
0.690058
a78199b06e3d85a0cae2dc6b22fe2403a2e45cd5
405
py
Python
Python/luhnchecksum.py
JaredLGillespie/OpenKattis
71d26883cb5b8a4a1d63a072587de5575d7c29af
[ "MIT" ]
null
null
null
Python/luhnchecksum.py
JaredLGillespie/OpenKattis
71d26883cb5b8a4a1d63a072587de5575d7c29af
[ "MIT" ]
null
null
null
Python/luhnchecksum.py
JaredLGillespie/OpenKattis
71d26883cb5b8a4a1d63a072587de5575d7c29af
[ "MIT" ]
null
null
null
# https://open.kattis.com/problems/luhnchecksum for _ in range(int(input())): count = 0 for i, d in enumerate(reversed(input())): if i % 2 == 0: count += int(d) continue x = 2 * int(d) if x < 10: count += x else: x = str(x) ...
25.3125
48
0.449383
a7822d26e1d72928c623eabd7ce7c6e586e1f9ee
2,531
py
Python
dart_board/plotting.py
GSavathrakis/dart_board
9430d97675d69e381b701499587a02fd71b02990
[ "MIT" ]
8
2017-12-04T22:32:25.000Z
2021-10-01T11:45:09.000Z
dart_board/plotting.py
GSavathrakis/dart_board
9430d97675d69e381b701499587a02fd71b02990
[ "MIT" ]
2
2018-03-14T00:10:43.000Z
2021-05-02T18:51:11.000Z
dart_board/plotting.py
GSavathrakis/dart_board
9430d97675d69e381b701499587a02fd71b02990
[ "MIT" ]
2
2018-07-17T23:00:01.000Z
2021-08-25T15:46:38.000Z
import matplotlib.pyplot as plt import numpy as np # from dart_board import plotting # import numpy as np # import pickle # chains = pickle.load(open("../data/HMXB_chain.obj", "rb")) # plotting.plot_chains(chains)
30.130952
120
0.621889
a78349abf743773098268654aaf64c037f2be3f7
2,063
py
Python
challenge/eval.py
CodeCrawl/deep_learning
3f9c208bba5ee17b4b68be74dc10e43839b4f6d0
[ "Apache-2.0" ]
8
2018-11-03T16:32:35.000Z
2020-05-18T23:03:17.000Z
challenge/eval.py
CodeCrawl/deep_learning
3f9c208bba5ee17b4b68be74dc10e43839b4f6d0
[ "Apache-2.0" ]
null
null
null
challenge/eval.py
CodeCrawl/deep_learning
3f9c208bba5ee17b4b68be74dc10e43839b4f6d0
[ "Apache-2.0" ]
7
2018-11-07T14:39:20.000Z
2020-04-19T23:54:20.000Z
## ## Evaluation Script ## import numpy as np import time from sample_model import Model from data_loader import data_loader from generator import Generator if __name__ == '__main__': program_start = time.time() accuracy = evaluate() score = calculate_score(accuracy) program_end = time.time() tot...
26.792208
86
0.600582
a78364d0cdf1ba12f5219bbb941cde9ada297c73
7,793
py
Python
PaddleRec/tdm/tdm_demo/infer_network.py
danleifeng/models
b87761f8100a545e0015046dd55d886ce90c190e
[ "Apache-2.0" ]
2
2020-03-12T13:35:02.000Z
2020-03-12T14:54:23.000Z
PaddleRec/tdm/tdm_demo/infer_network.py
danleifeng/models
b87761f8100a545e0015046dd55d886ce90c190e
[ "Apache-2.0" ]
1
2020-07-02T03:05:00.000Z
2020-07-02T03:05:00.000Z
PaddleRec/tdm/tdm_demo/infer_network.py
danleifeng/models
b87761f8100a545e0015046dd55d886ce90c190e
[ "Apache-2.0" ]
1
2020-09-09T16:53:01.000Z
2020-09-09T16:53:01.000Z
# -*- coding=utf-8 -*- """ # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0...
39.760204
80
0.597203
a7855fa0e107181fe9f7c866727366717fbbb9d3
727
py
Python
fixtures/requests.py
AzatAza/december-api-tests
dd120fd0c479b035dbe84ccd1fb1dd687d84af5d
[ "Apache-2.0" ]
null
null
null
fixtures/requests.py
AzatAza/december-api-tests
dd120fd0c479b035dbe84ccd1fb1dd687d84af5d
[ "Apache-2.0" ]
null
null
null
fixtures/requests.py
AzatAza/december-api-tests
dd120fd0c479b035dbe84ccd1fb1dd687d84af5d
[ "Apache-2.0" ]
null
null
null
import requests from requests import Response
42.764706
119
0.645117
a7857bc199ab6450358c23073cebf9f0bd31bb0d
352
py
Python
rules_default/castervoice/lib/ctrl/mgr/grammar_container/base_grammar_container.py
MLH-Fellowship/LarynxCode
840fee18c689a357052825607c27fc8e3e56571c
[ "MIT" ]
1
2021-09-17T06:11:02.000Z
2021-09-17T06:11:02.000Z
rules_default/castervoice/lib/ctrl/mgr/grammar_container/base_grammar_container.py
soma2000-lang/LarynxCode
840fee18c689a357052825607c27fc8e3e56571c
[ "MIT" ]
5
2021-02-03T05:29:41.000Z
2021-02-08T01:14:11.000Z
rules_default/castervoice/lib/ctrl/mgr/grammar_container/base_grammar_container.py
soma2000-lang/LarynxCode
840fee18c689a357052825607c27fc8e3e56571c
[ "MIT" ]
4
2021-02-03T05:05:00.000Z
2021-07-14T06:21:10.000Z
from castervoice.lib.ctrl.mgr.errors.base_class_error import DontUseBaseClassError
25.142857
82
0.75
a7871a31d1f892b28ff5af9f08dffdc9caf09213
262
py
Python
main/urls.py
homata/snow_removing
c02585b8ceab3da107b932d6066c8b8344af1ff7
[ "Apache-2.0" ]
2
2018-12-05T01:03:10.000Z
2019-03-16T04:27:03.000Z
main/urls.py
homata/snow_removing
c02585b8ceab3da107b932d6066c8b8344af1ff7
[ "Apache-2.0" ]
null
null
null
main/urls.py
homata/snow_removing
c02585b8ceab3da107b932d6066c8b8344af1ff7
[ "Apache-2.0" ]
1
2018-12-04T14:18:08.000Z
2018-12-04T14:18:08.000Z
from django.urls import include, path from . import views from django.views.generic.base import RedirectView # # https://docs.djangoproject.com/ja/2.0/intro/tutorial03/ app_name = 'main' urlpatterns = [ path('', views.index, name='index'), ]
21.833333
57
0.736641
a7882585c7ab1245006e29c8a68efd228a0cc9dc
1,114
py
Python
server/server/urls.py
oSoc17/lopeningent_backend
3e1c149038c3773f66dfbbc2f15ebd0692ecb4cd
[ "MIT" ]
4
2017-07-04T15:18:59.000Z
2017-07-08T10:48:37.000Z
server/server/urls.py
oSoc17/lopeningent_backend
3e1c149038c3773f66dfbbc2f15ebd0692ecb4cd
[ "MIT" ]
16
2017-07-04T15:36:41.000Z
2017-10-18T07:47:45.000Z
server/server/urls.py
oSoc17/lopeningent_backend
3e1c149038c3773f66dfbbc2f15ebd0692ecb4cd
[ "MIT" ]
null
null
null
"""server 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-bas...
37.133333
79
0.701975
a7884b84cf2835ce8244b051ecf8f0adaa14e7d4
9,507
py
Python
app/backend/knowledge_base_approach/python-client/swagger_client/api/default_api.py
e-lubrini/fake-news-detector
f2464e4cac73d9203e7483ac0aa5cd47ddfba811
[ "MIT" ]
null
null
null
app/backend/knowledge_base_approach/python-client/swagger_client/api/default_api.py
e-lubrini/fake-news-detector
f2464e4cac73d9203e7483ac0aa5cd47ddfba811
[ "MIT" ]
1
2021-11-24T12:23:49.000Z
2021-11-24T12:23:49.000Z
app/backend/knowledge_base_approach/python-client/swagger_client/api/default_api.py
e-lubrini/fake-news-detector
f2464e4cac73d9203e7483ac0aa5cd47ddfba811
[ "MIT" ]
1
2021-11-24T18:07:44.000Z
2021-11-24T18:07:44.000Z
# coding: utf-8 """ FRED API FRED is a tool for automatically producing RDF/OWL ontologies and linked data from natural language sentences. The method is based on Combinatory Categorial Grammar, Discourse Representation Theory, Linguistic Frames, and Ontology Design Patterns. Results are enriched with NER and...
54.637931
305
0.664458
a788aafcac15ec56bc56e7dbc0349b85a1880056
1,496
py
Python
geesedb/interpreter/metadata.py
informagi/GeeseDB
b502830cafbcba8676e7e779d13d5bc14ba842f9
[ "MIT" ]
12
2021-07-05T12:33:20.000Z
2021-10-11T20:44:12.000Z
geesedb/interpreter/metadata.py
informagi/GeeseDB
b502830cafbcba8676e7e779d13d5bc14ba842f9
[ "MIT" ]
7
2021-07-28T20:40:36.000Z
2021-10-12T12:31:51.000Z
geesedb/interpreter/metadata.py
informagi/GeeseDB
b502830cafbcba8676e7e779d13d5bc14ba842f9
[ "MIT" ]
null
null
null
import json from ..connection import get_connection
34.790698
90
0.584225
a78ab7709a2fb033bbbef0c592de69b2eb89f7f4
2,381
py
Python
content_feeders/in.py
Giapa/ContentAggregator
978c552406a770791cff435d41eb2bf135b5454d
[ "MIT" ]
null
null
null
content_feeders/in.py
Giapa/ContentAggregator
978c552406a770791cff435d41eb2bf135b5454d
[ "MIT" ]
2
2020-04-15T09:16:50.000Z
2020-04-15T09:22:06.000Z
content_feeders/in.py
IEEEdiots/ContentAggregator
978c552406a770791cff435d41eb2bf135b5454d
[ "MIT" ]
1
2021-03-25T17:58:16.000Z
2021-03-25T17:58:16.000Z
import requests from bs4 import BeautifulSoup if __name__ == '__main__': crawl_page()
34.014286
216
0.554389
a78b53e7326a1d9b30856a88ddc123ec056f3a2a
18,573
py
Python
resources/lib/database_tv.py
bradyemerson/plugin.video.showtimeanytime
65e7f130c14c8ef963cb3669638b8cf14860ec82
[ "Apache-2.0" ]
null
null
null
resources/lib/database_tv.py
bradyemerson/plugin.video.showtimeanytime
65e7f130c14c8ef963cb3669638b8cf14860ec82
[ "Apache-2.0" ]
null
null
null
resources/lib/database_tv.py
bradyemerson/plugin.video.showtimeanytime
65e7f130c14c8ef963cb3669638b8cf14860ec82
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os.path from datetime import date, datetime from sqlite3 import dbapi2 as sqlite from bs4 import BeautifulSoup import simplejson as json import xbmcvfs import xbmcgui import common import connection import database_common as db_common ...
33.769091
127
0.586658
a78c1c68d2605e5b65a1772b489da024f926a771
16,450
py
Python
apps/configuration/editions/base.py
sotkonstantinidis/testcircle
448aa2148fbc2c969e60f0b33ce112d4740a8861
[ "Apache-2.0" ]
3
2019-02-24T14:24:43.000Z
2019-10-24T18:51:32.000Z
apps/configuration/editions/base.py
sotkonstantinidis/testcircle
448aa2148fbc2c969e60f0b33ce112d4740a8861
[ "Apache-2.0" ]
17
2017-03-14T10:55:56.000Z
2022-03-11T23:20:19.000Z
apps/configuration/editions/base.py
sotkonstantinidis/testcircle
448aa2148fbc2c969e60f0b33ce112d4740a8861
[ "Apache-2.0" ]
2
2016-02-01T06:32:40.000Z
2019-09-06T04:33:50.000Z
import copy from configuration.configuration import QuestionnaireConfiguration from django.conf import settings from django.core.exceptions import ObjectDoesNotExist from django.db.models import F from django.template.loader import render_to_string from configuration.models import Configuration, Key, Value, Translati...
35.376344
101
0.599392
a78ce58146e32ab5bc583a0b5ea144d7df99f985
10,152
py
Python
EyePatterns/main_test_all_clusters.py
Sale1996/Pattern-detection-of-eye-tracking-scanpaths
15c832f26dce98bb95445f9f39f454f99bbb6029
[ "MIT" ]
1
2021-12-07T08:02:30.000Z
2021-12-07T08:02:30.000Z
EyePatterns/main_test_all_clusters.py
Sale1996/Pattern-detection-of-eye-tracking-scanpaths
15c832f26dce98bb95445f9f39f454f99bbb6029
[ "MIT" ]
null
null
null
EyePatterns/main_test_all_clusters.py
Sale1996/Pattern-detection-of-eye-tracking-scanpaths
15c832f26dce98bb95445f9f39f454f99bbb6029
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import distance from matplotlib import style from clustering_algorithms.affinity_propagation import AffinityPropagation from clustering_algorithms.custom_k_means import KMeans from clustering_algorithms.custom_mean_shift import MeanShift from clustering_algorithms.custom_mean_shift_strin...
42.476987
123
0.775611
a78d7f529a85265c767d731a1463e302ccbc27fe
2,381
py
Python
src/onevision/cv/imgproc/color/integer.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
2
2022-03-28T09:46:38.000Z
2022-03-28T14:12:32.000Z
src/onevision/cv/imgproc/color/integer.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
null
null
null
src/onevision/cv/imgproc/color/integer.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
null
null
null
# !/usr/bin/env python # -*- coding: utf-8 -*- """Conversion between single-channel integer value to 3-channels color image. Mostly used for semantic segmentation. """ from __future__ import annotations import numpy as np import torch from multipledispatch import dispatch from torch import Tensor from onevision.cv....
25.602151
77
0.640067
a78db64f92c9f41c5d84dd1c53250b84b8159383
5,932
py
Python
doepy/problem_instance.py
scwolof/doepy
acb2cad95428de2c14b28563cff1aa30679e1f39
[ "MIT" ]
1
2020-04-23T13:43:35.000Z
2020-04-23T13:43:35.000Z
doepy/problem_instance.py
scwolof/doepy
acb2cad95428de2c14b28563cff1aa30679e1f39
[ "MIT" ]
null
null
null
doepy/problem_instance.py
scwolof/doepy
acb2cad95428de2c14b28563cff1aa30679e1f39
[ "MIT" ]
1
2021-06-13T14:38:32.000Z
2021-06-13T14:38:32.000Z
""" MIT License Copyright (c) 2019 Simon Olofsson 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...
34.289017
78
0.658968
a78f4a33fda334438866cc5eacb65a1aca2c29e8
1,831
py
Python
snuba/datasets/dataset_schemas.py
Appva/snuba
988a4312fc9c107bc735fb2295e269b01ef2dea4
[ "Apache-2.0" ]
null
null
null
snuba/datasets/dataset_schemas.py
Appva/snuba
988a4312fc9c107bc735fb2295e269b01ef2dea4
[ "Apache-2.0" ]
null
null
null
snuba/datasets/dataset_schemas.py
Appva/snuba
988a4312fc9c107bc735fb2295e269b01ef2dea4
[ "Apache-2.0" ]
null
null
null
from typing import Optional, List, Sequence, Union from snuba.datasets.schemas import Schema from snuba.datasets.schemas.tables import TableSchema, WritableTableSchema
33.290909
100
0.677226
a790c9288954c501a2b40dde1e0f624366ddda8c
3,039
py
Python
Benchmarking/benchmark_alphabet_increase.py
icezyclon/AALpy
3c2f05fdbbcdc99b47ba6b918540239568fca17f
[ "MIT" ]
61
2021-04-01T10:38:52.000Z
2022-03-28T13:44:23.000Z
Benchmarking/benchmark_alphabet_increase.py
icezyclon/AALpy
3c2f05fdbbcdc99b47ba6b918540239568fca17f
[ "MIT" ]
16
2021-04-03T20:14:08.000Z
2022-02-16T10:21:48.000Z
Benchmarking/benchmark_alphabet_increase.py
haubitzer/AALpy
e5b51742d886d5c5c72ab3e9c20eb349c56e2469
[ "MIT" ]
9
2021-04-05T13:43:17.000Z
2022-03-09T14:06:17.000Z
from statistics import mean import csv from aalpy.SULs import DfaSUL, MealySUL, MooreSUL from aalpy.learning_algs import run_Lstar from aalpy.oracles import RandomWalkEqOracle from aalpy.utils import generate_random_dfa, generate_random_mealy_machine, generate_random_moore_machine num_states = 1000 alph_size = 5 rep...
35.337209
115
0.699901
a7910f32dd12a019dc980eaf9b89d7426fb179b4
2,505
py
Python
makehuman-master/makehuman/plugins/9_export_obj/mh2obj.py
Radiian-Arts-Main/Radiian-Arts-BioSource
51e08da0b3171fe96badc68780fd0f3381d49738
[ "MIT" ]
1
2022-03-12T03:52:55.000Z
2022-03-12T03:52:55.000Z
makehuman-master/makehuman/plugins/9_export_obj/mh2obj.py
Phantori/Radiian-Arts-BioSource
51e08da0b3171fe96badc68780fd0f3381d49738
[ "MIT" ]
null
null
null
makehuman-master/makehuman/plugins/9_export_obj/mh2obj.py
Phantori/Radiian-Arts-BioSource
51e08da0b3171fe96badc68780fd0f3381d49738
[ "MIT" ]
3
2020-05-10T16:11:23.000Z
2021-05-30T02:11:28.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ **Project Name:** MakeHuman **Product Home Page:** http://www.makehumancommunity.org/ **Github Code Home Page:** https://github.com/makehumancommunity/ **Authors:** Thomas Larsson, Jonas Hauquier **Copyright(c):** MakeHuman Team 2001-2019 *...
32.960526
99
0.686228
a79274aaddcc40eb1292cf7717dedc453646ab72
3,245
py
Python
util/plot_model.py
libccy/inv.cu
bab31a704b24888a99e07148b60266ff703f0968
[ "MIT" ]
null
null
null
util/plot_model.py
libccy/inv.cu
bab31a704b24888a99e07148b60266ff703f0968
[ "MIT" ]
null
null
null
util/plot_model.py
libccy/inv.cu
bab31a704b24888a99e07148b60266ff703f0968
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys from os.path import exists import numpy as np import pylab import scipy.interpolate def read_fortran(filename): """ Reads Fortran style binary data and returns a numpy array. """ with open(filename, 'rb') as f: # read size of record f.seek(0) n = np.fromfile(f, dtype='int32...
24.216418
73
0.659476