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
903e7c7c7eb9a7d02da0c1871291e12b6246e93e
20,260
py
Python
shoptimizer_api/optimizers_builtin/title_word_order_optimizer_test.py
astivi/shoptimizer
e9e415650b2b8fc07e4ae68c741e692b538e4a2c
[ "Apache-2.0" ]
null
null
null
shoptimizer_api/optimizers_builtin/title_word_order_optimizer_test.py
astivi/shoptimizer
e9e415650b2b8fc07e4ae68c741e692b538e4a2c
[ "Apache-2.0" ]
null
null
null
shoptimizer_api/optimizers_builtin/title_word_order_optimizer_test.py
astivi/shoptimizer
e9e415650b2b8fc07e4ae68c741e692b538e4a2c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
40.846774
123
0.696249
903ed7280655c7a88f5f5eb4e9a427e26a17d12e
4,035
py
Python
contracts/models.py
sivanagarajumolabanti/IPFS
9ae01ce09c97660ca312aad7d612bbc8eb8146e7
[ "MIT" ]
1
2019-08-27T04:20:06.000Z
2019-08-27T04:20:06.000Z
contracts/models.py
sivanagarajumolabanti/IPFS
9ae01ce09c97660ca312aad7d612bbc8eb8146e7
[ "MIT" ]
null
null
null
contracts/models.py
sivanagarajumolabanti/IPFS
9ae01ce09c97660ca312aad7d612bbc8eb8146e7
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.db import models from django.utils.timezone import now
36.351351
102
0.691698
903f6e6ec0a321ed686c231ab9ebc657c40c7407
1,500
py
Python
models/DenseNet.py
Apollo1840/DeepECG
5132b5fc8f6b40c4b2f175cd5e56c4aec128ab3e
[ "MIT" ]
2
2020-11-16T10:50:56.000Z
2020-11-23T12:31:30.000Z
models/DenseNet.py
Apollo1840/DeepECG
5132b5fc8f6b40c4b2f175cd5e56c4aec128ab3e
[ "MIT" ]
null
null
null
models/DenseNet.py
Apollo1840/DeepECG
5132b5fc8f6b40c4b2f175cd5e56c4aec128ab3e
[ "MIT" ]
1
2020-08-05T00:23:54.000Z
2020-08-05T00:23:54.000Z
from keras.models import Sequential from keras.layers import Dense, Dropout
41.666667
100
0.719333
9040b2be08c9dcba639583373b5f0c4c01de3091
13,242
py
Python
openstackclient/tests/unit/volume/v3/fakes.py
mydevice/python-openstackclient
4891bb38208fdcd1a2ae60e47b056841e14fbdf7
[ "Apache-2.0" ]
262
2015-01-29T20:10:49.000Z
2022-03-23T01:59:23.000Z
openstackclient/tests/unit/volume/v3/fakes.py
mydevice/python-openstackclient
4891bb38208fdcd1a2ae60e47b056841e14fbdf7
[ "Apache-2.0" ]
5
2015-01-21T02:37:35.000Z
2021-11-23T02:26:00.000Z
openstackclient/tests/unit/volume/v3/fakes.py
mydevice/python-openstackclient
4891bb38208fdcd1a2ae60e47b056841e14fbdf7
[ "Apache-2.0" ]
194
2015-01-08T07:39:27.000Z
2022-03-30T13:51:23.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under th...
33.953846
79
0.614258
9040cb412be761146b6669d9fd4eade5a3ac0512
12,287
py
Python
gammapy/cube/tests/test_core.py
grburgess/gammapy
609e460698caca7223afeef5e71826c7b32728d1
[ "BSD-3-Clause" ]
3
2019-01-28T12:21:14.000Z
2019-02-10T19:58:07.000Z
gammapy/cube/tests/test_core.py
grburgess/gammapy
609e460698caca7223afeef5e71826c7b32728d1
[ "BSD-3-Clause" ]
null
null
null
gammapy/cube/tests/test_core.py
grburgess/gammapy
609e460698caca7223afeef5e71826c7b32728d1
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import absolute_import, division, print_function, unicode_literals import numpy as np from numpy.testing import assert_allclose from astropy.coordinates import Angle from astropy.tests.helper import pytest, assert_quantity_allclose from ast...
39.763754
90
0.657524
90429ee16f26834b4fd4e1ca6831ceabda97033d
298
py
Python
api/applications/migrations/0042_merge_20201213_0228.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
3
2019-05-15T09:30:39.000Z
2020-04-22T16:14:23.000Z
api/applications/migrations/0042_merge_20201213_0228.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
85
2019-04-24T10:39:35.000Z
2022-03-21T14:52:12.000Z
api/applications/migrations/0042_merge_20201213_0228.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
1
2021-01-17T11:12:19.000Z
2021-01-17T11:12:19.000Z
# Generated by Django 2.2.16 on 2020-12-13 02:28 from django.db import migrations
21.285714
64
0.694631
90459d8bfe26d007178d66a09649931906768496
5,829
py
Python
web_app/ca_modules/make_utils.py
Lockers13/codagio
cfe9325cb3c207f7728db3c287439ce761ffea14
[ "MIT" ]
2
2021-01-16T13:42:14.000Z
2021-03-03T19:36:47.000Z
web_app/ca_modules/make_utils.py
Lockers13/codagio
cfe9325cb3c207f7728db3c287439ce761ffea14
[ "MIT" ]
null
null
null
web_app/ca_modules/make_utils.py
Lockers13/codagio
cfe9325cb3c207f7728db3c287439ce761ffea14
[ "MIT" ]
null
null
null
### A module containing various utilities used at various points throughout the processes of submitting and analyzing problems ### import os import json import subprocess import hashlib import sys import random import string from .output_processor import process_output from . import code_templates def make_file(path,...
40.2
198
0.632699
904821f621f97dceeec43eb063d81e21fa90c37c
21,136
py
Python
wazimap/data/utils.py
AssembleOnline/wazimap
1b8b68fb231b768047eee1b20ed180e4820a2890
[ "MIT" ]
1
2019-01-14T15:37:03.000Z
2019-01-14T15:37:03.000Z
wazimap/data/utils.py
Bhanditz/wazimap
fde22a0874020cf0ae013aeec7ab55b7c5a70b27
[ "MIT" ]
null
null
null
wazimap/data/utils.py
Bhanditz/wazimap
fde22a0874020cf0ae013aeec7ab55b7c5a70b27
[ "MIT" ]
null
null
null
from __future__ import division from collections import OrderedDict from sqlalchemy import create_engine, MetaData, func from sqlalchemy.orm import sessionmaker, class_mapper from django.conf import settings from django.db.backends.base.creation import TEST_DATABASE_PREFIX from django.db import connection if settin...
36.758261
138
0.607116
9048acfcee11de068839ac11bcc199658e3bb1fe
9,913
py
Python
ovis/analysis/gradients.py
vlievin/ovis
71f05a5f5219b2df66a9cdbd5a5339e0e179597b
[ "MIT" ]
10
2020-08-06T22:25:11.000Z
2022-03-07T13:10:15.000Z
ovis/analysis/gradients.py
vlievin/ovis
71f05a5f5219b2df66a9cdbd5a5339e0e179597b
[ "MIT" ]
2
2021-06-08T22:15:24.000Z
2022-03-12T00:45:59.000Z
ovis/analysis/gradients.py
vlievin/ovis
71f05a5f5219b2df66a9cdbd5a5339e0e179597b
[ "MIT" ]
null
null
null
from time import time from typing import * import torch from booster import Diagnostic from torch import Tensor from tqdm import tqdm from .utils import cosine, percentile, RunningMean, RunningVariance from ..estimators import GradientEstimator from ..models import TemplateModel def get_grads_from_tensor(model: Tem...
42.545064
125
0.611924
904a907ab750687eb1de030da0541431f23b5d88
1,081
py
Python
Sem-09-T1-Q5.py
daianasousa/Semana-09
decfc9b47931ae4f5a4f30a0d26b931ecd548f59
[ "MIT" ]
null
null
null
Sem-09-T1-Q5.py
daianasousa/Semana-09
decfc9b47931ae4f5a4f30a0d26b931ecd548f59
[ "MIT" ]
null
null
null
Sem-09-T1-Q5.py
daianasousa/Semana-09
decfc9b47931ae4f5a4f30a0d26b931ecd548f59
[ "MIT" ]
null
null
null
if __name__ == '__main__': main()
30.885714
138
0.543941
5f3a8ec38dd614e2783df50d617c5b8f3ca8b0f8
1,428
py
Python
data_split.py
CodeDogandCat/ChineseGrammarErrorDiagnose
4e1ec745ae938f742c6afb0e88b08ea50c6028cb
[ "Apache-2.0" ]
null
null
null
data_split.py
CodeDogandCat/ChineseGrammarErrorDiagnose
4e1ec745ae938f742c6afb0e88b08ea50c6028cb
[ "Apache-2.0" ]
null
null
null
data_split.py
CodeDogandCat/ChineseGrammarErrorDiagnose
4e1ec745ae938f742c6afb0e88b08ea50c6028cb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import re # from pyltp import Segmentor import jieba.posseg as pseg import jieba import os import sys import json import math # import kenlm import nltk from collections import Counter # dataSplit('TNewsSegafter2.txt', 32) dataSplit('TNewsSegafter1.txt', 32)
28
81
0.621148
5f3bba72b50ee67716dbeda71e53db5b079da28f
2,435
py
Python
Code/Python/pract_fund1_sol.py
kunal-mulki/Materials
b76bba123002972e4063b9b24cd5dc3d980e16e9
[ "MIT" ]
27
2016-12-07T17:38:41.000Z
2021-06-28T06:19:49.000Z
Code/Python/pract_fund1_sol.py
kunal-mulki/Materials
b76bba123002972e4063b9b24cd5dc3d980e16e9
[ "MIT" ]
27
2016-05-28T21:32:24.000Z
2016-12-08T16:47:09.000Z
Code/Python/pract_fund1_sol.py
NYUDataBootcamp/Materials
b76bba123002972e4063b9b24cd5dc3d980e16e9
[ "MIT" ]
50
2016-10-12T11:04:50.000Z
2021-06-01T23:24:45.000Z
""" Practice problems, Python fundamentals 1 -- Solutions @authors: Balint Szoke, Daniel Csaba @date: 06/02/2017 """ #------------------------------------------------------- # 1) Solution good_string = "Sarah's code" #or good_string = """Sarah's code""" #------------------------------------------------------- ...
21.936937
62
0.433265
5f3df5f78e78d0ee2fc42ec4cf3a85208b508f67
7,178
py
Python
eos/old_scott_ANEOS_conversion.py
ScottHull/FDPS_SPH
6db11d599d433f889da100e78c17d6f65365ceda
[ "MIT" ]
null
null
null
eos/old_scott_ANEOS_conversion.py
ScottHull/FDPS_SPH
6db11d599d433f889da100e78c17d6f65365ceda
[ "MIT" ]
null
null
null
eos/old_scott_ANEOS_conversion.py
ScottHull/FDPS_SPH
6db11d599d433f889da100e78c17d6f65365ceda
[ "MIT" ]
null
null
null
""" This is a python script that converts u(rho, T), P(rho, T), Cs(rho,T), S(rho, T) to T(rho, u), P(rho, u), Cs(rho, u), S(rho, u), which is more useful for SPH calculations """ import matplotlib.pyplot as plt from collections import OrderedDict import numpy as np import pandas as pd import csv import sys from scipy...
34.344498
146
0.636389
5f3f44af77a5d9949e7fe7c6858624af3b7fa923
346
py
Python
scheduler/post_scheduler/urls.py
Awinja-j/Social-Media-post-Scheduler
4f95b4bb2ca3f890d3e22bcda859b94ebc483b87
[ "MIT" ]
1
2021-05-08T08:21:06.000Z
2021-05-08T08:21:06.000Z
scheduler/post_scheduler/urls.py
Awinja-j/Social-Media-post-Scheduler
4f95b4bb2ca3f890d3e22bcda859b94ebc483b87
[ "MIT" ]
null
null
null
scheduler/post_scheduler/urls.py
Awinja-j/Social-Media-post-Scheduler
4f95b4bb2ca3f890d3e22bcda859b94ebc483b87
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('post_posts', views.post_posts), path('fetch_posts', views.get_posts), path('fetch_post/<pk>', views.get_post), path('delete_post/<pk>', views.delete_post), path('edit_post/<pk>', views.edit_post), path('search_for_a_post', v...
28.833333
54
0.699422
5f3fad78b868dac1b90ecb78a5594353e0e31396
506
py
Python
dato-graphlab/src/config.py
warreee/apache-flink_vs_dato-graphlab
cd01cee208461479d3f27489ab45df439b8b9820
[ "Apache-2.0" ]
null
null
null
dato-graphlab/src/config.py
warreee/apache-flink_vs_dato-graphlab
cd01cee208461479d3f27489ab45df439b8b9820
[ "Apache-2.0" ]
null
null
null
dato-graphlab/src/config.py
warreee/apache-flink_vs_dato-graphlab
cd01cee208461479d3f27489ab45df439b8b9820
[ "Apache-2.0" ]
null
null
null
import os
16.322581
63
0.666008
5f42caff296a8e9070523febb1d633e533ecbfff
950
py
Python
tools.py
chougousui/keyboard_layout_for_mobile
3bb59169f10ac56fb82cb62be07f821f1ecac22e
[ "MIT" ]
5
2019-06-12T09:29:06.000Z
2020-12-31T08:53:19.000Z
tools.py
chougousui/keyboard_layout_for_mobile
3bb59169f10ac56fb82cb62be07f821f1ecac22e
[ "MIT" ]
null
null
null
tools.py
chougousui/keyboard_layout_for_mobile
3bb59169f10ac56fb82cb62be07f821f1ecac22e
[ "MIT" ]
null
null
null
import numpy as np
29.6875
119
0.489474
5f43a06d91c00b879b94bd9ca11de4d7d8fcab07
377
py
Python
full-stack/backend/django-app/django-jwt-app/settings/urls.py
mp5maker/library
b4d2eea70ae0da9d917285569031edfb4d8ab9fc
[ "MIT" ]
null
null
null
full-stack/backend/django-app/django-jwt-app/settings/urls.py
mp5maker/library
b4d2eea70ae0da9d917285569031edfb4d8ab9fc
[ "MIT" ]
23
2020-08-15T15:18:32.000Z
2022-02-26T13:49:05.000Z
full-stack/backend/django-app/django-jwt-app/settings/urls.py
mp5maker/library
b4d2eea70ae0da9d917285569031edfb4d8ab9fc
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path, include from rest_framework_jwt.views import ( obtain_jwt_token, refresh_jwt_token, ) urlpatterns = [ path('admin/', admin.site.urls), path('token-auth/', obtain_jwt_token), path('token-refresh/', refresh_jwt_token), path('employ...
22.176471
70
0.710875
5f45037068a6ca19658fc2ba430b609e4386fc29
15,989
py
Python
models/train_classifier.py
tarcisobraz/disaster-message-clf
22de03350a0f993005564a1d07a43da6bd989e67
[ "DOC" ]
null
null
null
models/train_classifier.py
tarcisobraz/disaster-message-clf
22de03350a0f993005564a1d07a43da6bd989e67
[ "DOC" ]
null
null
null
models/train_classifier.py
tarcisobraz/disaster-message-clf
22de03350a0f993005564a1d07a43da6bd989e67
[ "DOC" ]
null
null
null
#General libs import sys import os import json from datetime import datetime import time #Data wrangling libs import pandas as pd import numpy as np #DB related libs from sqlalchemy import create_engine #ML models related libs from sklearn.pipeline import Pipeline, FeatureUnion from sklearn.metrics import confusion_...
37.888626
117
0.659704
5f468ef647d08df9b7e435bbbbaaf01ef4277cf4
148
py
Python
src/cortexpy/test/constants.py
karljohanw/cortexpy
70dcce771136f98edb5250ad8abd2a46bda7f0a6
[ "Apache-2.0" ]
2
2020-04-08T15:31:12.000Z
2020-07-01T11:04:47.000Z
src/cortexpy/test/constants.py
karljohanw/cortexpy
70dcce771136f98edb5250ad8abd2a46bda7f0a6
[ "Apache-2.0" ]
9
2018-09-12T09:29:43.000Z
2020-03-15T09:11:25.000Z
src/cortexpy/test/constants.py
karljohanw/cortexpy
70dcce771136f98edb5250ad8abd2a46bda7f0a6
[ "Apache-2.0" ]
1
2019-03-29T10:59:13.000Z
2019-03-29T10:59:13.000Z
import struct MAX_UINT = 2 ** (struct.calcsize('I') * 8) - 1 MAX_ULONG = 2 ** (struct.calcsize('L') * 8) - 1 UINT8_T = 1 UINT32_T = 4 UINT64_T = 8
18.5
47
0.614865
5f47bfe261a0653163329656400b45e38dc2e334
2,103
py
Python
tests/functional_tests/authors/test_authors_login.py
Kaique425/recipes
ab188dbe1ca3891160f65a7858613b8750faa721
[ "MIT" ]
null
null
null
tests/functional_tests/authors/test_authors_login.py
Kaique425/recipes
ab188dbe1ca3891160f65a7858613b8750faa721
[ "MIT" ]
null
null
null
tests/functional_tests/authors/test_authors_login.py
Kaique425/recipes
ab188dbe1ca3891160f65a7858613b8750faa721
[ "MIT" ]
null
null
null
import pytest from django.contrib.auth.models import User from django.urls import reverse from selenium.webdriver.common.by import By from .base import AuthorBaseFunctionalTest
37.553571
85
0.661912
5f4b11817e6c6f5664fb7eebcff8bd3df9ed5773
42
py
Python
varex/__init__.py
weiyi-bitw/varex
765e8876c0ced480a47c0e523736bd31b7897644
[ "MIT" ]
null
null
null
varex/__init__.py
weiyi-bitw/varex
765e8876c0ced480a47c0e523736bd31b7897644
[ "MIT" ]
null
null
null
varex/__init__.py
weiyi-bitw/varex
765e8876c0ced480a47c0e523736bd31b7897644
[ "MIT" ]
null
null
null
from .commons import VCFEntry, LabeledMat
21
41
0.833333
5f4ba7ea00a9b4ae2bec68e16163449e185187d1
2,612
py
Python
simulation/battery/base_battery.py
BillMakwae/Simulation
8d0ec274643f23bc0e78c96e50508b60791c11d2
[ "MIT" ]
8
2020-03-29T01:44:16.000Z
2022-03-26T23:15:34.000Z
simulation/battery/base_battery.py
BillMakwae/Simulation
8d0ec274643f23bc0e78c96e50508b60791c11d2
[ "MIT" ]
60
2020-02-08T22:07:16.000Z
2022-03-26T23:51:55.000Z
simulation/battery/base_battery.py
BillMakwae/Simulation
8d0ec274643f23bc0e78c96e50508b60791c11d2
[ "MIT" ]
1
2021-10-20T20:07:06.000Z
2021-10-20T20:07:06.000Z
from simulation.common import Storage from simulation.common import BatteryEmptyError
39.575758
116
0.61562
5f501af017d1618fd9d8ac7f58bef0af07c22038
2,757
py
Python
MLP/Detectar cancer de mama/Cancer_mama_simples.py
alex7alves/Deep-Learning
7843629d5367f3ea8b15915a7ba3667cf7a65587
[ "Apache-2.0" ]
null
null
null
MLP/Detectar cancer de mama/Cancer_mama_simples.py
alex7alves/Deep-Learning
7843629d5367f3ea8b15915a7ba3667cf7a65587
[ "Apache-2.0" ]
null
null
null
MLP/Detectar cancer de mama/Cancer_mama_simples.py
alex7alves/Deep-Learning
7843629d5367f3ea8b15915a7ba3667cf7a65587
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Wed Oct 17 21:04:48 2018 @author: Alex Alves Programa para determinar se um tumor de mama benigno (saida 0) ou maligno (saida 1) """ import pandas as pa # Importao para poder dividir os dados entre treinamento da rede e testes de validao from sklearn....
33.216867
114
0.791077
5f50dd9219cff3c1253c4849dd5381638d312cc3
1,214
py
Python
py/py_0736_paths_to_equality.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
py/py_0736_paths_to_equality.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
py/py_0736_paths_to_equality.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
# Solution of; # Project Euler Problem 736: Paths to Equality # https://projecteuler.net/problem=736 # # Define two functions on lattice points:$r(x,y) = (x+1,2y)$$s(x,y) = # (2x,y+1)$A path to equality of length $n$ for a pair $(a,b)$ is a sequence # $\Big((a_1,b_1),(a_2,b_2),\ldots,(a_n,b_n)\Big)$, where:$(a_1,b_1...
40.466667
213
0.651565
5f548523f9dcf1f62a0e2fe0f345f22d699939d1
1,728
py
Python
codejam/2020-qualification/d.py
Ashindustry007/competitive-programming
2eabd3975c029d235abb7854569593d334acae2f
[ "WTFPL" ]
506
2018-08-22T10:30:38.000Z
2022-03-31T10:01:49.000Z
codejam/2020-qualification/d.py
Ashindustry007/competitive-programming
2eabd3975c029d235abb7854569593d334acae2f
[ "WTFPL" ]
13
2019-08-07T18:31:18.000Z
2020-12-15T21:54:41.000Z
codejam/2020-qualification/d.py
Ashindustry007/competitive-programming
2eabd3975c029d235abb7854569593d334acae2f
[ "WTFPL" ]
234
2018-08-06T17:11:41.000Z
2022-03-26T10:56:42.000Z
#!/usr/bin/env python3 # https://codingcompetitions.withgoogle.com/codejam/round/000000000019fd27/0000000000209a9e t, b = map(int, input().split()) for _ in range(t): xs = [None] * b q, k, k1, k2 = 0, 0, None, None while True: if q > 0 and q % 10 == 0: if k1 is not None and k2 is not No...
27
91
0.358218
5f587bf36e711ee18aa81e26269a6338ac9328eb
1,388
py
Python
Stephanie/updater.py
JeremyARussell/stephanie-va
acc894fa69b4e5559308067d525f71f951ecc258
[ "MIT" ]
866
2017-06-10T19:25:28.000Z
2022-01-06T18:29:36.000Z
Stephanie/updater.py
JeremyARussell/stephanie-va
acc894fa69b4e5559308067d525f71f951ecc258
[ "MIT" ]
54
2017-06-11T06:41:19.000Z
2022-01-10T23:06:03.000Z
Stephanie/updater.py
JeremyARussell/stephanie-va
acc894fa69b4e5559308067d525f71f951ecc258
[ "MIT" ]
167
2017-06-10T19:32:54.000Z
2022-01-03T07:01:39.000Z
import requests from Stephanie.configurer import config
34.7
142
0.730548
5f591fe59a581e7f936f818cedb0f094b131b698
24,533
py
Python
WORC/featureprocessing/ComBat.py
MStarmans91/WORC
b6b8fc2ccb7d443a69b5ca20b1d6efb65b3f0fc7
[ "ECL-2.0", "Apache-2.0" ]
47
2018-01-28T14:08:15.000Z
2022-03-24T16:10:07.000Z
WORC/featureprocessing/ComBat.py
JZK00/WORC
14e8099835eccb35d49b52b97c0be64ecca3809c
[ "ECL-2.0", "Apache-2.0" ]
13
2018-08-28T13:32:57.000Z
2020-10-26T16:35:59.000Z
WORC/featureprocessing/ComBat.py
JZK00/WORC
14e8099835eccb35d49b52b97c0be64ecca3809c
[ "ECL-2.0", "Apache-2.0" ]
16
2017-11-13T10:53:36.000Z
2022-03-18T17:02:04.000Z
#!/usr/bin/env python # Copyright 2020 Biomedical Imaging Group Rotterdam, Departments of # Medical Informatics and Radiology, Erasmus MC, Rotterdam, The Netherlands # # 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...
40.684909
161
0.604329
5f59e320e469d3924b3247fe49f94eea11acee62
727
py
Python
setup.py
mariocesar/pg-worker
d79c6daa8825226c754330c21150e4e416b09005
[ "MIT" ]
1
2020-06-03T21:21:03.000Z
2020-06-03T21:21:03.000Z
setup.py
mariocesar/pg-worker
d79c6daa8825226c754330c21150e4e416b09005
[ "MIT" ]
null
null
null
setup.py
mariocesar/pg-worker
d79c6daa8825226c754330c21150e4e416b09005
[ "MIT" ]
null
null
null
import os import sys from setuptools import setup, find_packages ROOT = os.path.realpath(os.path.join(os.path.dirname( sys.modules['__main__'].__file__))) sys.path.insert(0, os.path.join(ROOT, 'src')) setup( name='pgworker', packages=find_packages('src'), package_dir={'': 'src'}, classifiers=[ ...
24.233333
53
0.603851
5f5a0eafce7a5f076591e84cd9440a10e1d4e795
2,040
py
Python
PyBank/main.py
gentikosumi/python-challenge
e6532bf1033f5272616d4f8a1cf623bbafe1a1c2
[ "ADSL" ]
null
null
null
PyBank/main.py
gentikosumi/python-challenge
e6532bf1033f5272616d4f8a1cf623bbafe1a1c2
[ "ADSL" ]
null
null
null
PyBank/main.py
gentikosumi/python-challenge
e6532bf1033f5272616d4f8a1cf623bbafe1a1c2
[ "ADSL" ]
null
null
null
import os import csv path = '/Users/kevinkosumi12345/Genti/python-challenge/PyBank/Resources/budget_data.csv' budget_csv=os.path.join("../Resources", "budget_data.csv") csvfile = open(path, newline="") reader=csv.reader(csvfile, delimiter=",") header = next(reader) # print(header) # the columns we have to convert ...
30.909091
129
0.702451
5f5b2c35892025ff370debbb01a9bff69a798ad0
1,516
py
Python
models/python/hypothalamus/dynamical/old/simple.py
ABRG-Models/MammalBot
0b153232b94197c7a65156c1c3451ab2b9f725ae
[ "MIT" ]
null
null
null
models/python/hypothalamus/dynamical/old/simple.py
ABRG-Models/MammalBot
0b153232b94197c7a65156c1c3451ab2b9f725ae
[ "MIT" ]
null
null
null
models/python/hypothalamus/dynamical/old/simple.py
ABRG-Models/MammalBot
0b153232b94197c7a65156c1c3451ab2b9f725ae
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt T = 30000 # v = 0.02906 # v = 0.617085 v = 0.99 h = 0.01 a = 0.5 b = 0.5 epsilon = 0.05 c = 0.4 eta = lambda rho: np.exp(-(rho)**2/(2*c**2)) nrho = lambda rho, v: -2.0*(rho**3 + (rho-1.0)*v/2.0 - rho)/(rho + 1.0) nu = lambda rho: (b - eta(rho+1))/a u = np.zeros(T) ...
28.603774
85
0.529024
5f5c0b0acb48624cb76c04ec88d096e81b40a0f1
176
py
Python
test_script.py
SamPurle/DE17_Flask
a6462b85854f7bd72c80ebcc555d50488ef17e67
[ "MIT" ]
null
null
null
test_script.py
SamPurle/DE17_Flask
a6462b85854f7bd72c80ebcc555d50488ef17e67
[ "MIT" ]
null
null
null
test_script.py
SamPurle/DE17_Flask
a6462b85854f7bd72c80ebcc555d50488ef17e67
[ "MIT" ]
null
null
null
import numpy as np import os my_array = np.zeros(10) print(my_array) os.system('pip freeze > requirements.txt') my_list = [1,2,3,4,5] for item in my_list: print(item)
12.571429
42
0.693182
5f5ebabcae4886b932638d5f3ecd10d1eb595d7b
6,058
py
Python
lib/blastin.py
zbwrnz/blastdbm
ee694c01ebb00779623702738a9c958fd496a080
[ "Unlicense" ]
1
2018-03-22T10:34:20.000Z
2018-03-22T10:34:20.000Z
lib/blastin.py
arendsee/blastdbm
ee694c01ebb00779623702738a9c958fd496a080
[ "Unlicense" ]
null
null
null
lib/blastin.py
arendsee/blastdbm
ee694c01ebb00779623702738a9c958fd496a080
[ "Unlicense" ]
null
null
null
#! /usr/bin/python3 import argparse import os import re import sqlite3 as sql import sys import xml.etree.cElementTree as et import traceback import lib.initialize as initialize import lib.sqlite_interface as misc import lib.meta as meta # ================== # EXPORTED FUNCTIONS # ==================
31.552083
83
0.530538
5f63c4934790515bb6fc74d4d7ecc9a70d977a36
646
py
Python
tests/test_get_image.py
kortizceballos/codeastro-group6
9f0ceb8a0fca3e619dbabe97105a3f283e59fa04
[ "BSD-3-Clause" ]
1
2021-06-25T21:20:42.000Z
2021-06-25T21:20:42.000Z
tests/test_get_image.py
kortizceballos/codeastro-group6
9f0ceb8a0fca3e619dbabe97105a3f283e59fa04
[ "BSD-3-Clause" ]
null
null
null
tests/test_get_image.py
kortizceballos/codeastro-group6
9f0ceb8a0fca3e619dbabe97105a3f283e59fa04
[ "BSD-3-Clause" ]
null
null
null
from matplotlib.pyplot import get import pyhips from pyhips import get_image def test_get_image(): """ Tests the get_image() function to make sure no errors are thrown. """ assert get_image("Vega", frame="ICRS", survey="DSS", cmap="plasma") == 0 assert get_image("notanid", frame="ICRS", survey="D...
35.888889
83
0.662539
5f65055d81665e397feccfc78dd6d2f299634b64
138
py
Python
cumulus2/template.py
peterkh/cumulus2
11352ce469acb0c319ba9cfb8691d80f4ae5048e
[ "Apache-2.0" ]
1
2016-02-12T11:54:07.000Z
2016-02-12T11:54:07.000Z
cumulus2/template.py
peterkh/cumulus2
11352ce469acb0c319ba9cfb8691d80f4ae5048e
[ "Apache-2.0" ]
null
null
null
cumulus2/template.py
peterkh/cumulus2
11352ce469acb0c319ba9cfb8691d80f4ae5048e
[ "Apache-2.0" ]
null
null
null
""" Template module for cumulus. template class for reading yaml tempalte and creating data_source objects to retrieve external data. """
23
76
0.797101
5f67096a7114362044846dbb3a2978d1562f88ac
700
py
Python
Python-AI-Algorithms/Bubble_sort.py
screadore/Artificial-Intelligence-Sorting-Algorithms
d69f34dbd02556c6a7bbb8e0dee45ab7fdb4b12c
[ "MIT" ]
null
null
null
Python-AI-Algorithms/Bubble_sort.py
screadore/Artificial-Intelligence-Sorting-Algorithms
d69f34dbd02556c6a7bbb8e0dee45ab7fdb4b12c
[ "MIT" ]
null
null
null
Python-AI-Algorithms/Bubble_sort.py
screadore/Artificial-Intelligence-Sorting-Algorithms
d69f34dbd02556c6a7bbb8e0dee45ab7fdb4b12c
[ "MIT" ]
null
null
null
# Bubble sort steps through the list and compares adjacent pairs of elements. The elements are swapped if they are in the wrong order. The pass through the unsorted portion of the list is repeated until the list is sorted. Because Bubble sort repeatedly passes through the unsorted part of the list, it has a worst case...
36.842105
342
0.591429
5f670af72f12c73cbff679c29371d4269f74b778
551
py
Python
Practice/Python/Strings/the_minion_game.py
nifannn/HackerRank
b05318251226704b1fb949c29aa49493d6ced44b
[ "MIT" ]
7
2019-02-22T10:34:26.000Z
2021-07-13T01:51:48.000Z
Practice/Python/Strings/the_minion_game.py
nifannn/HackerRank
b05318251226704b1fb949c29aa49493d6ced44b
[ "MIT" ]
null
null
null
Practice/Python/Strings/the_minion_game.py
nifannn/HackerRank
b05318251226704b1fb949c29aa49493d6ced44b
[ "MIT" ]
7
2018-11-09T13:52:34.000Z
2021-03-18T20:36:22.000Z
if __name__ == '__main__': minion_game(input("Enter a string: "))
30.611111
65
0.604356
5f6e27388481683369aca2bd805d2c503d7286e8
189
py
Python
deep_learning_zero/ch5/sample.py
kaito0223/shakyou
8d901b4da24fbf0c708e3eb429a57d194e9857c1
[ "MIT" ]
null
null
null
deep_learning_zero/ch5/sample.py
kaito0223/shakyou
8d901b4da24fbf0c708e3eb429a57d194e9857c1
[ "MIT" ]
null
null
null
deep_learning_zero/ch5/sample.py
kaito0223/shakyou
8d901b4da24fbf0c708e3eb429a57d194e9857c1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np X = np.random.rand(2) #input W = np.random.rand(2,3) #weight B = np.random.rand(3) #bias print(X) print(W) print(B) Y=np.dot(X,W)+B print(Y)
11.8125
31
0.613757
5f71554b9254c1a62eba83f18f61c6f664cfe709
2,485
py
Python
bdd/contact_stepts.py
LukinVV/python_training
9e6eb57fe9527fd591d563b4219c19e49188c4de
[ "Apache-2.0" ]
null
null
null
bdd/contact_stepts.py
LukinVV/python_training
9e6eb57fe9527fd591d563b4219c19e49188c4de
[ "Apache-2.0" ]
null
null
null
bdd/contact_stepts.py
LukinVV/python_training
9e6eb57fe9527fd591d563b4219c19e49188c4de
[ "Apache-2.0" ]
null
null
null
from pytest_bdd import given, when, then from model.contact import Contact import random
42.118644
101
0.781087
5f72286dd657c066d24e11dfe7993aa6f68aabbc
769
py
Python
FigureMaker.py
space-physics/histfeas
caa0100087d8c2b8711c1c3cb60c322379ef5431
[ "MIT" ]
null
null
null
FigureMaker.py
space-physics/histfeas
caa0100087d8c2b8711c1c3cb60c322379ef5431
[ "MIT" ]
null
null
null
FigureMaker.py
space-physics/histfeas
caa0100087d8c2b8711c1c3cb60c322379ef5431
[ "MIT" ]
1
2015-05-22T23:51:58.000Z
2015-05-22T23:51:58.000Z
#!/usr/bin/env python """ Figures generated by HiST program intended for use with in/ files including: *_flame.ini *_impulse.ini *_trans.ini Flaming Aurora 2 cameras: ./FigureMaker.py in/2cam_flame.ini Translating Aurora 2 cameras: ./FigureMaker.py in/2cam_trans.ini Impulse Aurora (for testing): ./FigureMaker.py in...
20.783784
55
0.758127
5f72433b75556b159f57faa7593653f49eb2cb21
3,557
py
Python
T53/webapp/accounts/models.py
DevelopAppWithMe/Hackathon_5.0
6af503a995721c04986931d6a29d8f946ceaa067
[ "MIT" ]
null
null
null
T53/webapp/accounts/models.py
DevelopAppWithMe/Hackathon_5.0
6af503a995721c04986931d6a29d8f946ceaa067
[ "MIT" ]
null
null
null
T53/webapp/accounts/models.py
DevelopAppWithMe/Hackathon_5.0
6af503a995721c04986931d6a29d8f946ceaa067
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. from django.contrib.auth.models import ( AbstractBaseUser, BaseUserManager, PermissionsMixin, ) from django.core.validators import RegexValidator from django.db import models
32.336364
104
0.687939
5f72dad431a7abe4ecae9aa703b14fc2183ff13a
2,998
py
Python
pyv6m/ha/v6m.py
dubnom/pyv6m
d56bf3f3d39b7c2f747b08bc1974dc3dbe6ccff8
[ "MIT" ]
1
2020-02-16T00:42:17.000Z
2020-02-16T00:42:17.000Z
pyv6m/ha/v6m.py
dubnom/pyv6m
d56bf3f3d39b7c2f747b08bc1974dc3dbe6ccff8
[ "MIT" ]
null
null
null
pyv6m/ha/v6m.py
dubnom/pyv6m
d56bf3f3d39b7c2f747b08bc1974dc3dbe6ccff8
[ "MIT" ]
null
null
null
"""Component to control v6m relays and sensors. For more details about this component, please refer to the documentation at https://home-assistant.io/components/v6m/ """ import logging import voluptuous as vol from homeassistant.const import ( EVENT_HOMEASSISTANT_STOP, CONF_HOST, CONF_PORT, CONF_NAME) import homea...
28.552381
75
0.615744
5f7622df0a14efca2dcdfe048326621ae11f4cbc
550
py
Python
blog/models.py
Happy-Project-Foundation/HappyProject
86e9fa7633e68c026e0003f8494df0226fa0dfcf
[ "Apache-2.0" ]
3
2021-12-04T15:00:54.000Z
2021-12-08T16:07:35.000Z
blog/models.py
BirnadinErick/HappyProject
4993a2d966d9c1458ce0e29e72c3a758a7a4ef54
[ "Apache-2.0" ]
3
2021-12-15T00:49:01.000Z
2021-12-16T00:46:14.000Z
blog/models.py
Happy-Project-Foundation/HappyProject
86e9fa7633e68c026e0003f8494df0226fa0dfcf
[ "Apache-2.0" ]
3
2021-12-04T14:18:15.000Z
2021-12-05T08:40:13.000Z
import uuid from django.db import models from django.db.models.fields import TextField
32.352941
109
0.736364
5f79434b07d0fd0852489b19f8f438fa54ae857d
7,273
py
Python
finetune_test.py
tengfeixue-victor/One-Shot-Animal-Video-Segmentation
15f9011c1b10f1e0c068f90ed46e72b3bc343310
[ "MIT" ]
2
2021-09-26T07:03:54.000Z
2022-02-21T15:46:30.000Z
finetune_test.py
tengfeixue-victor/One-Shot-Animal-Video-Segmentation
15f9011c1b10f1e0c068f90ed46e72b3bc343310
[ "MIT" ]
null
null
null
finetune_test.py
tengfeixue-victor/One-Shot-Animal-Video-Segmentation
15f9011c1b10f1e0c068f90ed46e72b3bc343310
[ "MIT" ]
1
2021-04-16T06:11:41.000Z
2021-04-16T06:11:41.000Z
""" References: https://github.com/scaelles/OSVOS-TensorFlow """ from __future__ import print_function import os import random import tensorflow as tf import time import numpy as np from utils import models from utils.load_data_finetune import Dataset from utils.logger import create_logger # seed seed = random.randin...
41.56
126
0.639214
5f79476b04b3854cb2181098acbee05c751aa836
307
py
Python
kinopoisk_unofficial/response/films/seasons_response.py
masterWeber/kinopoisk-api-unofficial-client
5c95e1ec6e43bd302399b63a1525ee7e61724155
[ "MIT" ]
2
2021-11-13T12:23:41.000Z
2021-12-24T14:09:49.000Z
kinopoisk_unofficial/response/films/seasons_response.py
masterWeber/kinopoisk-api-unofficial-client
5c95e1ec6e43bd302399b63a1525ee7e61724155
[ "MIT" ]
1
2022-03-29T19:13:24.000Z
2022-03-30T18:57:23.000Z
kinopoisk_unofficial/response/films/seasons_response.py
masterWeber/kinopoisk-api-unofficial-client
5c95e1ec6e43bd302399b63a1525ee7e61724155
[ "MIT" ]
1
2021-11-13T12:30:01.000Z
2021-11-13T12:30:01.000Z
from dataclasses import field, dataclass from typing import List from kinopoisk_unofficial.contract.response import Response from kinopoisk_unofficial.model.season import Season
25.583333
59
0.814332
5f7a417145bc1e9d7aeea4542c8fef811419cb42
4,906
py
Python
codepod/impl.py
alexmorley/codepod
d932391beda9c4df7f048326afe7d0ea73ccb141
[ "Apache-2.0" ]
null
null
null
codepod/impl.py
alexmorley/codepod
d932391beda9c4df7f048326afe7d0ea73ccb141
[ "Apache-2.0" ]
null
null
null
codepod/impl.py
alexmorley/codepod
d932391beda9c4df7f048326afe7d0ea73ccb141
[ "Apache-2.0" ]
null
null
null
import subprocess import os import shutil import tempfile import random import string import yaml src_dir=os.path.dirname(os.path.realpath(__file__)) #def _write_text_file(fname,txt): # with open(fname,'w') as f: # f.write(txt)
35.294964
155
0.664492
5f7b66cd930462b5d1756ba227c23eb8265b8002
5,040
py
Python
closed/FuriosaAI/code/inference/vision/medical_imaging/3d-unet-kits19/inference_utils.py
ctuning/inference_results_v1.1
d9176eca28fcf6d7a05ccb97994362a76a1eb5ab
[ "Apache-2.0" ]
388
2018-09-13T20:48:58.000Z
2020-11-23T11:52:13.000Z
closed/FuriosaAI/code/inference/vision/medical_imaging/3d-unet-kits19/inference_utils.py
ctuning/inference_results_v1.1
d9176eca28fcf6d7a05ccb97994362a76a1eb5ab
[ "Apache-2.0" ]
597
2018-10-08T12:45:29.000Z
2020-11-24T17:53:12.000Z
closed/FuriosaAI/code/inference/vision/medical_imaging/3d-unet-kits19/inference_utils.py
ctuning/inference_results_v1.1
d9176eca28fcf6d7a05ccb97994362a76a1eb5ab
[ "Apache-2.0" ]
228
2018-11-06T02:04:14.000Z
2020-12-09T07:51:02.000Z
#! /usr/bin/env python3 # coding=utf-8 # Copyright (c) 2021 NVIDIA CORPORATION. All rights reserved. # Copyright 2021 The MLPerf 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...
32.101911
91
0.698611
5f7d2edfb9acb222096440265492c363f375f8a6
3,047
py
Python
fdtool/modules/GetFDs.py
dancps/FDTool
0958f79fccbb3bb7d55cf9031ee4bd411e9c9b5a
[ "CC0-1.0" ]
13
2019-03-22T13:30:04.000Z
2022-02-01T04:46:44.000Z
fdtool/modules/GetFDs.py
dancps/FDTool
0958f79fccbb3bb7d55cf9031ee4bd411e9c9b5a
[ "CC0-1.0" ]
3
2020-07-01T11:17:40.000Z
2022-02-13T11:20:34.000Z
fdtool/modules/GetFDs.py
dancps/FDTool
0958f79fccbb3bb7d55cf9031ee4bd411e9c9b5a
[ "CC0-1.0" ]
11
2018-07-02T23:46:31.000Z
2021-12-14T12:29:38.000Z
import binaryRepr # Create decorator function to see how many times functions are called # Calculate Partition (C_k, r(U)) - the partitions # of each candidate at level k are calculated # Takes in data frame of relation and a candidate in C_km1 # Outputs partition of Candidate in C_k...
43.528571
187
0.637348
5f7e6f4612c23637da085f15ec80d97da8c65063
1,712
py
Python
experiments/benchmarks/activity_benchmark.py
Oidlichtnwoada/LongTermDependenciesLearning
f2913e86183588107f16402b402524a57b6ea057
[ "MIT" ]
1
2021-01-16T15:42:01.000Z
2021-01-16T15:42:01.000Z
experiments/benchmarks/activity_benchmark.py
Oidlichtnwoada/LongTermDependenciesLearning
f2913e86183588107f16402b402524a57b6ea057
[ "MIT" ]
null
null
null
experiments/benchmarks/activity_benchmark.py
Oidlichtnwoada/LongTermDependenciesLearning
f2913e86183588107f16402b402524a57b6ea057
[ "MIT" ]
null
null
null
import os import numpy as np import pandas as pd import experiments.benchmarks.benchmark as benchmark ActivityBenchmark()
45.052632
139
0.624416
5f8081343c9866235ed311ae6467c672bfbe7609
4,685
py
Python
apps/menuplans/views.py
jajadinimueter/recipe
f3f0a4054a14637bf4e49728876fe7b0a029a21f
[ "MIT" ]
null
null
null
apps/menuplans/views.py
jajadinimueter/recipe
f3f0a4054a14637bf4e49728876fe7b0a029a21f
[ "MIT" ]
null
null
null
apps/menuplans/views.py
jajadinimueter/recipe
f3f0a4054a14637bf4e49728876fe7b0a029a21f
[ "MIT" ]
null
null
null
import xml.etree.ElementTree as et from dateutil import parser from django.shortcuts import render from django.shortcuts import redirect from django.core.urlresolvers import reverse import untangle from .forms import MenuplanSearchForm from .forms import MenuplanCreateForm from .tables import MenuplanTable from ....
30.225806
81
0.547492
5f809ea0bdda1d52d937bea676c3f2375a0406e8
6,448
py
Python
data-detective-airflow/data_detective_airflow/operators/sinks/pg_scd1_df_update_insert.py
dmitriy-e/metadata-governance
018a879951dee3f3c2c05ac8e05b8360dd7f4ab3
[ "Apache-2.0" ]
5
2021-12-01T09:55:23.000Z
2021-12-21T16:23:33.000Z
data-detective-airflow/data_detective_airflow/operators/sinks/pg_scd1_df_update_insert.py
dmitriy-e/metadata-governance
018a879951dee3f3c2c05ac8e05b8360dd7f4ab3
[ "Apache-2.0" ]
1
2022-03-14T16:50:41.000Z
2022-03-14T16:50:41.000Z
data-detective-airflow/data_detective_airflow/operators/sinks/pg_scd1_df_update_insert.py
dmitriy-e/metadata-governance
018a879951dee3f3c2c05ac8e05b8360dd7f4ab3
[ "Apache-2.0" ]
2
2021-11-03T09:43:09.000Z
2021-11-17T10:16:29.000Z
from contextlib import closing from io import StringIO import numpy import pandas from airflow.providers.postgres.hooks.postgres import PostgresHook from psycopg2.extensions import connection as psycopg2_connection from data_detective_airflow.dag_generator.works import WorkType from data_detective_airflow.operators.s...
39.317073
109
0.640199
5f83b8fcb8f9923c7beb83eb883b788a12549bf3
32,588
py
Python
plangym/core.py
FragileTech/plangym
9a1482bea099f12f82bae27f1c5d13393daa8032
[ "MIT" ]
3
2020-03-25T22:19:17.000Z
2020-11-02T16:11:32.000Z
plangym/core.py
FragileTech/plangym
9a1482bea099f12f82bae27f1c5d13393daa8032
[ "MIT" ]
44
2020-03-25T14:17:54.000Z
2022-03-12T00:18:48.000Z
plangym/core.py
FragileTech/plangym
9a1482bea099f12f82bae27f1c5d13393daa8032
[ "MIT" ]
2
2020-03-25T12:17:12.000Z
2020-06-19T23:07:52.000Z
"""Plangym API implementation.""" from abc import ABC from typing import Any, Callable, Dict, Generator, Iterable, Optional, Tuple, Union import gym from gym.envs.registration import registry as gym_registry from gym.spaces import Space import numpy import numpy as np wrap_callable = Union[Callable[[], gym.Wrapper],...
36.574635
99
0.613232
5f890b9328d6983928b109fecc583fe7148f59dc
6,426
py
Python
L2.py
coka28/AlignmentCluster
11a4e5fc578258bd3a2181a13bdaa60346eca8da
[ "MIT" ]
null
null
null
L2.py
coka28/AlignmentCluster
11a4e5fc578258bd3a2181a13bdaa60346eca8da
[ "MIT" ]
null
null
null
L2.py
coka28/AlignmentCluster
11a4e5fc578258bd3a2181a13bdaa60346eca8da
[ "MIT" ]
null
null
null
# Layer 2 server script # project worker '''-. +#_p'-..... *+...:(loop):.............................................. m}: \ >!: 1. register clients \ &w^: 2. distribute WLs and add them to pending \ j/...
36.931034
124
0.495331
5f8a8dc4b802b22d26a8494296192bb50d7f2d9a
2,677
py
Python
test/factory/schedule_factory.py
choonho/statistics
31fbae2d0772a2e8b717ac12c8de9edd9d8f1734
[ "Apache-2.0" ]
null
null
null
test/factory/schedule_factory.py
choonho/statistics
31fbae2d0772a2e8b717ac12c8de9edd9d8f1734
[ "Apache-2.0" ]
null
null
null
test/factory/schedule_factory.py
choonho/statistics
31fbae2d0772a2e8b717ac12c8de9edd9d8f1734
[ "Apache-2.0" ]
null
null
null
import factory from spaceone.core import utils from spaceone.statistics.model.schedule_model import Schedule, Scheduled, JoinQuery, Formula, QueryOption
26.245098
105
0.548001
5f9164c1cc7e9494a573895e93fd39680b8520f6
1,324
py
Python
ymir/backend/src/ymir_app/app/models/iteration.py
Zhang-SJ930104/ymir
dd6481be6f229ade4cf8fba64ef44a15357430c4
[ "Apache-2.0" ]
null
null
null
ymir/backend/src/ymir_app/app/models/iteration.py
Zhang-SJ930104/ymir
dd6481be6f229ade4cf8fba64ef44a15357430c4
[ "Apache-2.0" ]
1
2022-01-18T09:28:29.000Z
2022-01-18T09:28:29.000Z
ymir/backend/src/ymir_app/app/models/iteration.py
Aryalfrat/ymir
d4617ed00ef67a77ab4e1944763f608bface4be6
[ "Apache-2.0" ]
null
null
null
from datetime import datetime from sqlalchemy import Boolean, Column, DateTime, Integer, SmallInteger, String from app.config import settings from app.db.base_class import Base from app.models.task import Task # noqa
36.777778
79
0.749245
5f92da5358e075a34f655feb29ca353ec1f92807
2,833
py
Python
src/jenova/components/common.py
inova-tecnologias/jenova
c975f0894b8663c6a9c9fdc7fa33590a219a6ad3
[ "Apache-2.0" ]
2
2016-08-10T15:08:47.000Z
2016-10-25T14:27:51.000Z
src/jenova/components/common.py
inova-tecnologias/jenova
c975f0894b8663c6a9c9fdc7fa33590a219a6ad3
[ "Apache-2.0" ]
41
2016-08-04T20:19:49.000Z
2017-03-07T20:05:53.000Z
src/jenova/components/common.py
inova-tecnologias/jenova
c975f0894b8663c6a9c9fdc7fa33590a219a6ad3
[ "Apache-2.0" ]
3
2016-09-26T19:04:51.000Z
2017-10-26T22:13:45.000Z
import uuid, hashlib, os, yaml, logging.config, json, requests, re from bcrypt import hashpw, gensalt from collections import namedtuple from sqlalchemy import create_engine from datetime import datetime CONFIG_FILE = os.environ.get('CONFIG_PATH_FILE') ZimbraGrant = namedtuple( 'ZimbraGrant', [ 'target_name', ...
26.726415
85
0.693611
5f9463815346a08c07f5a3a2ec02e760f4e9de1f
3,569
py
Python
hbutils/binary/base.py
HansBug/hbutils
6872311c8a441c5955572e0093b10189a2b90708
[ "Apache-2.0" ]
null
null
null
hbutils/binary/base.py
HansBug/hbutils
6872311c8a441c5955572e0093b10189a2b90708
[ "Apache-2.0" ]
25
2021-10-03T06:19:05.000Z
2022-03-27T12:48:57.000Z
hbutils/binary/base.py
HansBug/hbutils
6872311c8a441c5955572e0093b10189a2b90708
[ "Apache-2.0" ]
null
null
null
import struct from typing import BinaryIO def write(self, file: BinaryIO, val): raise NotImplementedError # pragma: no cover class CMarkedType(CFixedType): """ Overview: Type with struct mark, which can be directly read by ``struct`` module. """ def __init__(self, mark: str, ...
24.445205
87
0.55842
5f94b482c019a016c621810412b2112d18748236
958
py
Python
Rosalind/iprb.py
yuriyshapovalov/Prototypes
1fc4af4434440a8f59a4bcb486e79fd53d199a7d
[ "Apache-2.0" ]
null
null
null
Rosalind/iprb.py
yuriyshapovalov/Prototypes
1fc4af4434440a8f59a4bcb486e79fd53d199a7d
[ "Apache-2.0" ]
1
2015-03-25T22:35:52.000Z
2015-03-25T22:35:52.000Z
Rosalind/iprb.py
yuriyshapovalov/Prototypes
1fc4af4434440a8f59a4bcb486e79fd53d199a7d
[ "Apache-2.0" ]
null
null
null
# Mendel's First Law # http://rosalind.info/problems/iprb/ import sys import unittest if __name__ == '__main__': hom_dom = int(sys.argv[1]) het = int(sys.argv[2]) hom_rec = int(sys.argv[3]) if hom_dom == 0 or het == 0 or hom_rec == 0: raise Exception("ERROR: Incorrect parameters") result = iprb().main(hom_dom, ...
23.365854
51
0.654489
5f96125b242a38cf3339aa9cccbeb3af52c0c4f9
3,679
py
Python
boltzmann.py
jkotrc/2D-Elastic-Gas
ee7632518adb03076a684dae48f0fb6f8c44efa3
[ "Unlicense" ]
null
null
null
boltzmann.py
jkotrc/2D-Elastic-Gas
ee7632518adb03076a684dae48f0fb6f8c44efa3
[ "Unlicense" ]
null
null
null
boltzmann.py
jkotrc/2D-Elastic-Gas
ee7632518adb03076a684dae48f0fb6f8c44efa3
[ "Unlicense" ]
null
null
null
#MAIN method and graphics try: from OpenGL.GL import * from OpenGL import GLU import OpenGL.GL.shaders except: print("OpenGL wrapper for python not found") import glfw import numpy as np from computation import Computation if __name__ == "__main__": #A good configuration: 80x80 balls, s...
44.325301
141
0.651264
5f972ab5ab25213d75c3f56834078dbd2a9d9668
706
py
Python
python/src/day06.py
azuline/aoc2020
849b48adf3a67ac0eeb485818e38a4b3a72fc03a
[ "Apache-2.0" ]
3
2020-12-09T11:36:31.000Z
2020-12-11T01:41:52.000Z
python/src/day06.py
azuline/aoc2020
849b48adf3a67ac0eeb485818e38a4b3a72fc03a
[ "Apache-2.0" ]
null
null
null
python/src/day06.py
azuline/aoc2020
849b48adf3a67ac0eeb485818e38a4b3a72fc03a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from itertools import chain from pathlib import Path from typing import List INPUT_FILE = Path.cwd().parent / "inputs" / "day06.txt" AnswerGroup = List[str] if __name__ == "__main__": with INPUT_FILE.open("r") as f: input = transform_input(f.read()) print(f"Part 1: {part1(...
23.533333
75
0.660057
5f979d09341797e001c31791e45f05729f30d0c6
933
py
Python
symopt/objective.py
spcornelius/symopt
6f276ca07cc266af1cd58758a0cf413ab85f2591
[ "MIT" ]
null
null
null
symopt/objective.py
spcornelius/symopt
6f276ca07cc266af1cd58758a0cf413ab85f2591
[ "MIT" ]
null
null
null
symopt/objective.py
spcornelius/symopt
6f276ca07cc266af1cd58758a0cf413ab85f2591
[ "MIT" ]
null
null
null
from symopt.base import SymOptExpr import sympy as sym
27.441176
72
0.608789
5f97f0b8c3e75f1f6f491e876381487088f22f49
771
py
Python
batch_run.py
hrishioa/Oyente
76c8943426727c93ab161a4e196dc6abdf636fe2
[ "MIT" ]
4
2017-01-25T05:25:52.000Z
2021-02-18T08:48:51.000Z
batch_run.py
hrishioa/Oyente
76c8943426727c93ab161a4e196dc6abdf636fe2
[ "MIT" ]
null
null
null
batch_run.py
hrishioa/Oyente
76c8943426727c93ab161a4e196dc6abdf636fe2
[ "MIT" ]
1
2018-08-09T20:57:31.000Z
2018-08-09T20:57:31.000Z
import json import glob from tqdm import tqdm import os contract_dir = 'contract_data' cfiles = glob.glob(contract_dir+'/contract*.json') cjson = {} print "Loading contracts..." for cfile in tqdm(cfiles): cjson.update(json.loads(open(cfile).read())) results = {} missed = [] print "Running analysis..." for c in...
19.769231
54
0.66537
5f981f7b480688c0f261ed48cbccc55b236c176c
2,266
py
Python
tests/test_statistics.py
BENR0/textory
0f81b8b6726298b9181be27da7aaac2dd25bd763
[ "MIT" ]
1
2020-07-01T14:40:10.000Z
2020-07-01T14:40:10.000Z
tests/test_statistics.py
BENR0/textory
0f81b8b6726298b9181be27da7aaac2dd25bd763
[ "MIT" ]
9
2020-02-07T11:58:51.000Z
2021-09-07T16:23:38.000Z
tests/test_statistics.py
BENR0/textory
0f81b8b6726298b9181be27da7aaac2dd25bd763
[ "MIT" ]
1
2019-11-20T05:53:13.000Z
2019-11-20T05:53:13.000Z
#! /usr/bin/python # -*- coding: utf-8 -*- import pytest import numpy as np from textory.util import neighbour_diff_squared, num_neighbours, neighbour_count, create_kernel from textory.statistics import variogram, pseudo_cross_variogram def test_variogram(init_np_arrays): """THIS TEST ONLY COVERS THE VERSION WIT...
27.634146
101
0.566637
5f9861c2730925ff3619b6059676dc2a261cbae6
827
py
Python
question_bank/lemonade-change/lemonade-change.py
yatengLG/leetcode-python
5d48aecb578c86d69835368fad3d9cc21961c226
[ "Apache-2.0" ]
9
2020-08-12T10:01:00.000Z
2022-01-05T04:37:48.000Z
question_bank/lemonade-change/lemonade-change.py
yatengLG/leetcode-python
5d48aecb578c86d69835368fad3d9cc21961c226
[ "Apache-2.0" ]
1
2021-02-16T10:19:31.000Z
2021-02-16T10:19:31.000Z
question_bank/lemonade-change/lemonade-change.py
yatengLG/leetcode-python
5d48aecb578c86d69835368fad3d9cc21961c226
[ "Apache-2.0" ]
4
2020-08-12T10:13:31.000Z
2021-11-05T01:26:58.000Z
# -*- coding: utf-8 -*- # @Author : LG """ 152 ms, Python3 96.83% 14 MB, Python3 12.45% """
27.566667
59
0.41717
5f98d7e1817b744273f69d626fee4ccb8dd5c371
319
py
Python
pythonProject/MUNDO 2/Desafio 57.py
lucasjlgc/Aulas-de-Python-
6aaed1c660487a680e9c449210600ccdfa326612
[ "MIT" ]
null
null
null
pythonProject/MUNDO 2/Desafio 57.py
lucasjlgc/Aulas-de-Python-
6aaed1c660487a680e9c449210600ccdfa326612
[ "MIT" ]
1
2021-06-25T15:29:11.000Z
2021-06-25T15:29:11.000Z
pythonProject/MUNDO 2/Desafio 57.py
lucasjlgc/Aulas-de-Python-
6aaed1c660487a680e9c449210600ccdfa326612
[ "MIT" ]
null
null
null
#Leia o sexo de uma pessoa, s aceite as letras M ou F; Caso contrario, pea a digitao novamente sexo= str(input('Digite seu sexo [M/F]: ')).strip().upper()[0] while sexo not in 'MF': sexo=str(input('DIGITE O SEXO [M/F]: ')).strip().upper()[0] print('seu sexo {} e est registrado com sucesso!'.format(sexo))
39.875
98
0.670846
5f993e929da96965b346f667b7d028433a1f27c0
2,157
py
Python
plugins/uma/plugins/uma_whois/__init__.py
liangzimiao/miyubot
c2788712255e39348c8980c8ace2f6f75fb6621c
[ "Apache-2.0" ]
null
null
null
plugins/uma/plugins/uma_whois/__init__.py
liangzimiao/miyubot
c2788712255e39348c8980c8ace2f6f75fb6621c
[ "Apache-2.0" ]
null
null
null
plugins/uma/plugins/uma_whois/__init__.py
liangzimiao/miyubot
c2788712255e39348c8980c8ace2f6f75fb6621c
[ "Apache-2.0" ]
null
null
null
from nonebot.adapters.onebot.v11.event import MessageEvent from nonebot.typing import T_State from nonebot.adapters.onebot.v11 import Bot, Message from plugins.uma.plugins.uma_whois.data_source import UmaWhois from plugins.uma import chara #matcher =on_endswith({'','?',''},priority=5) matcher =UmaWhois().on_regex(r'^(...
32.19403
94
0.623551
5f99e058ef025684556e0579c4ec1d81fb084ff1
8,288
py
Python
analyzer/views.py
jonfang/CMPE295_DataAnalyzer
6d74f55fa7e38ff8d25aecc388a5ed87c95037ae
[ "MIT" ]
1
2020-10-12T18:17:05.000Z
2020-10-12T18:17:05.000Z
analyzer/views.py
jonfang/CMPE295_DataAnalyzer
6d74f55fa7e38ff8d25aecc388a5ed87c95037ae
[ "MIT" ]
3
2019-11-19T20:41:50.000Z
2021-06-10T21:48:44.000Z
analyzer/views.py
jonfang/CMPE295_DataAnalyzer
6d74f55fa7e38ff8d25aecc388a5ed87c95037ae
[ "MIT" ]
2
2019-10-30T23:18:57.000Z
2019-11-23T00:23:17.000Z
from django.http import HttpResponse from pyspark.sql import SparkSession from django.shortcuts import render from datetime import datetime from core.chartfactory import createBarChart, createPieChart from core.dataprocessor import DataProcessor def sample(request): """ sample python report """ keys =...
35.418803
131
0.595077
5f9a0e11f9d9a926bf4cc162d77896b7f50869b6
4,668
py
Python
utils/augment_data.py
caiobarrosv/object-detection-for-grasping
2ac2f58700dff73032836ce33d3b98ebf3f29257
[ "BSD-3-Clause" ]
null
null
null
utils/augment_data.py
caiobarrosv/object-detection-for-grasping
2ac2f58700dff73032836ce33d3b98ebf3f29257
[ "BSD-3-Clause" ]
4
2020-07-24T19:31:51.000Z
2022-03-12T00:41:28.000Z
utils/augment_data.py
caiobarrosv/object-detection-for-grasping
2ac2f58700dff73032836ce33d3b98ebf3f29257
[ "BSD-3-Clause" ]
null
null
null
from mxnet import nd import os import sys sys.path.append(os.path.abspath(os.path.join(os.path.dirname( __file__ ), '..'))) import utils.common as dataset_commons import cv2 import numpy as np import glob import pandas as pd from gluoncv.data.transforms.presets.ssd import SSDDefaultTrainTransform from matplotlib import...
33.826087
130
0.633248
5f9a91b6b4cb83726c16979ae7cd27a95c8fd08d
12,235
py
Python
ultracart/models/apply_library_item_response.py
UltraCart/rest_api_v2_sdk_python
d734ea13fabc7a57872ff68bac06861edb8fd882
[ "Apache-2.0" ]
1
2018-03-15T16:56:23.000Z
2018-03-15T16:56:23.000Z
ultracart/models/apply_library_item_response.py
UltraCart/rest_api_v2_sdk_python
d734ea13fabc7a57872ff68bac06861edb8fd882
[ "Apache-2.0" ]
null
null
null
ultracart/models/apply_library_item_response.py
UltraCart/rest_api_v2_sdk_python
d734ea13fabc7a57872ff68bac06861edb8fd882
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ UltraCart Rest API V2 UltraCart REST API Version 2 # noqa: E501 OpenAPI spec version: 2.0.0 Contact: support@ultracart.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six def to_str(self): ...
31.211735
213
0.621087
5f9b09cbcd120955bb173c4d9f5b1fd61f32f6e1
103
py
Python
notebooks/python_recap/_solutions/python_rehearsal6.py
jonasvdd/DS-python-data-analysis
835226f562ee0b0631d70e48a17c4526ff58a538
[ "BSD-3-Clause" ]
65
2017-03-21T09:15:40.000Z
2022-02-01T23:43:08.000Z
notebooks/python_recap/_solutions/python_rehearsal6.py
jonasvdd/DS-python-data-analysis
835226f562ee0b0631d70e48a17c4526ff58a538
[ "BSD-3-Clause" ]
100
2016-12-15T03:44:06.000Z
2022-03-07T08:14:07.000Z
notebooks/python_recap/_solutions/python_rehearsal6.py
jonasvdd/DS-python-data-analysis
835226f562ee0b0631d70e48a17c4526ff58a538
[ "BSD-3-Clause" ]
52
2016-12-19T07:48:52.000Z
2022-02-19T17:53:48.000Z
np_pressures_hPa * math.exp(-gravit_acc * molar_mass_earth* height/(gas_constant*standard_temperature))
103
103
0.84466
5f9b8fe1beadc23d6a4c015ccb7948ee8af7a618
322
py
Python
test/test_coverage.py
atupilojon/-resources--pytest
eae62b54828bb82dc534b37d9b46b83cb6d31c03
[ "MIT" ]
null
null
null
test/test_coverage.py
atupilojon/-resources--pytest
eae62b54828bb82dc534b37d9b46b83cb6d31c03
[ "MIT" ]
null
null
null
test/test_coverage.py
atupilojon/-resources--pytest
eae62b54828bb82dc534b37d9b46b83cb6d31c03
[ "MIT" ]
null
null
null
from pytest import mark # if setup.py present, code could be installed as library # so that there's no need include path # pip install -e . from pytest_resources import do_lower_case # from src.for_testing import do_lower_case
24.769231
57
0.773292
5f9c3b49af1837552a765743d83f19677ef7b0fe
3,476
py
Python
targets/simple_router/flow_radar_bm/change_bm.py
tsihang-zz/FlowRadar-P4
1b4f92b83257ba8f34475c098bce8b84daa35b7c
[ "Apache-2.0" ]
15
2018-08-21T10:49:38.000Z
2021-06-23T14:33:32.000Z
targets/simple_router/flow_radar_bm/change_bm.py
harvard-cns/FlowRadar-P4
1b4f92b83257ba8f34475c098bce8b84daa35b7c
[ "Apache-2.0" ]
1
2017-10-16T07:49:06.000Z
2017-10-16T13:45:36.000Z
targets/simple_router/flow_radar_bm/change_bm.py
USC-NSL/FlowRadar-P4
1b4f92b83257ba8f34475c098bce8b84daa35b7c
[ "Apache-2.0" ]
6
2016-07-26T15:47:46.000Z
2018-03-23T01:50:06.000Z
import re import os # copy required files # change actions.c to add flow_radar lock # change p4_pd_rpc_server.ipp if __name__ == "__main__": copy_files() change_actions_c() change_p4_pd_rpc_server_ipp() change_p4_pd_rpc_thrift()
31.035714
148
0.649597
5f9c54619428b0b6d3296e3c0080e9ec17335d9c
2,807
py
Python
elecalc.py
shka86/py_calc
780167bc10e2a74741ac9620dbc859c0d310e299
[ "MIT" ]
null
null
null
elecalc.py
shka86/py_calc
780167bc10e2a74741ac9620dbc859c0d310e299
[ "MIT" ]
null
null
null
elecalc.py
shka86/py_calc
780167bc10e2a74741ac9620dbc859c0d310e299
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- # calculation tool for a bridge circuit with two input current sources # two current sources can supply from both of top of the bridge and middle of the bridge # define the voltage name as follows: # Vp: voltage at the top of the bridge # Vn: voltage at the middle of the brid...
25.990741
88
0.540791
5f9c577bd20e78c6c12bbdda22baa4f5a81a595e
618
py
Python
Python/Armstrong_Number.py
shashwat-agarwal/hacktoberfest-2
552a4278ffd671603f8659562427b0f1ac5127a4
[ "Apache-2.0" ]
17
2020-10-02T03:28:33.000Z
2020-10-24T04:08:30.000Z
Python/Armstrong_Number.py
shubhamgoel90/hacktoberfest
e7b1aa18485c4a080b2568910f82e98a5feb6f37
[ "Apache-2.0" ]
22
2020-10-01T20:00:56.000Z
2020-10-31T01:56:10.000Z
Python/Armstrong_Number.py
shubhamgoel90/hacktoberfest
e7b1aa18485c4a080b2568910f82e98a5feb6f37
[ "Apache-2.0" ]
139
2020-10-01T19:51:40.000Z
2020-11-02T19:58:19.000Z
#Program to check whether the number is an armstrong number or not #Ask user to enter the number number=int(input("Enter the number you want to check armstrong: ")) #To calculate the length of number entered. order=len(str(number)) #Initialise sum to 0 sum=0 temp=number while temp>0: num=temp%10 sum+=num**o...
21.310345
68
0.723301
5f9c87648a4e17596d684c15485c9c92d81abb57
304
py
Python
pyexlatex/models/format/hline.py
whoopnip/py-ex-latex
66f5fadc35a0bfdce5f1ccb3c80dce8885b061b6
[ "MIT" ]
4
2020-06-08T07:17:12.000Z
2021-11-04T21:39:52.000Z
pyexlatex/models/format/hline.py
nickderobertis/py-ex-latex
66f5fadc35a0bfdce5f1ccb3c80dce8885b061b6
[ "MIT" ]
24
2020-02-17T17:20:44.000Z
2021-12-20T00:10:19.000Z
pyexlatex/models/format/hline.py
nickderobertis/py-ex-latex
66f5fadc35a0bfdce5f1ccb3c80dce8885b061b6
[ "MIT" ]
null
null
null
from pyexlatex.models.sizes.textwidth import TextWidth from pyexlatex.models.format.rule import Rule
25.333333
65
0.710526
5f9d943e1c5e5e036c07d0eb1ed8c96b9fd06019
4,038
py
Python
sixx/plugins/images.py
TildeBeta/6X
1814eb8f394b7c25b49decdd7d7249567c85f30f
[ "MIT" ]
2
2018-03-06T20:39:49.000Z
2018-03-17T04:28:57.000Z
sixx/plugins/images.py
TildeBeta/TwitterImages
1814eb8f394b7c25b49decdd7d7249567c85f30f
[ "MIT" ]
2
2018-03-06T20:39:46.000Z
2018-03-15T17:03:03.000Z
sixx/plugins/images.py
TildeBeta/TwitterImages
1814eb8f394b7c25b49decdd7d7249567c85f30f
[ "MIT" ]
1
2018-04-25T22:24:40.000Z
2018-04-25T22:24:40.000Z
from math import sqrt import asks import datetime import numpy as np import random from PIL import Image from PIL.ImageDraw import Draw from PIL.ImageEnhance import Brightness from PIL.ImageFont import truetype from curio import spawn_thread from curious.commands import Context, Plugin, command from io import BytesIO ...
40.38
124
0.488856
5f9df6e37fc71858adef3ee969afe3699916d4a6
2,669
py
Python
plugins/DonorlessOperation/__init__.py
j-h-m/Media-Journaling-Tool
4ab6961e2768dc002c9bbad182f83188631f01bd
[ "BSD-3-Clause" ]
null
null
null
plugins/DonorlessOperation/__init__.py
j-h-m/Media-Journaling-Tool
4ab6961e2768dc002c9bbad182f83188631f01bd
[ "BSD-3-Clause" ]
null
null
null
plugins/DonorlessOperation/__init__.py
j-h-m/Media-Journaling-Tool
4ab6961e2768dc002c9bbad182f83188631f01bd
[ "BSD-3-Clause" ]
null
null
null
import logging from maskgen import video_tools import random import maskgen.video_tools import os import maskgen import json plugin = "DonorPicker"
38.128571
124
0.557887
5f9e0f831db1b36f8edc783c6c1bfaa61c116474
1,228
py
Python
track_model/eval_avg_scores.py
QUVA-Lab/lang-tracker
6cb3630471765565b6f2d34a160f0cd51d95a082
[ "BSD-2-Clause-FreeBSD" ]
31
2017-09-13T13:40:59.000Z
2022-01-25T16:55:19.000Z
track_model/eval_avg_scores.py
zhenyangli/lang-tracker
dddd808a22582573ab0a5e4c3dbf0ba054e42d61
[ "BSD-3-Clause" ]
4
2017-09-14T01:56:58.000Z
2021-01-28T00:58:58.000Z
track_model/eval_avg_scores.py
QUVA-Lab/lang-tracker
6cb3630471765565b6f2d34a160f0cd51d95a082
[ "BSD-2-Clause-FreeBSD" ]
9
2017-09-28T03:22:08.000Z
2021-01-19T10:56:44.000Z
import caffe import numpy as np import os import sys import track_model_train as track_model import train_config max_iter = 1000 if __name__ == '__main__': config = train_config.Config() eval_avg_scores(config)
29.95122
90
0.643322
5f9e1b47610239b65145f24fa61ab7d89533b94e
1,968
py
Python
tests/group_test.py
gekkeharry13/api-python
b18d1694c19f5f972a126ee9ff3d3971a08815cb
[ "Apache-2.0" ]
1
2018-05-31T17:29:30.000Z
2018-05-31T17:29:30.000Z
tests/group_test.py
gekkeharry13/api-python
b18d1694c19f5f972a126ee9ff3d3971a08815cb
[ "Apache-2.0" ]
8
2015-02-20T16:22:12.000Z
2019-04-25T23:57:43.000Z
tests/group_test.py
gekkeharry13/api-python
b18d1694c19f5f972a126ee9ff3d3971a08815cb
[ "Apache-2.0" ]
8
2015-02-28T06:56:15.000Z
2020-01-02T22:42:09.000Z
# # Copyright (C) 2014 Conjur Inc # # 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, distri...
37.132075
82
0.757622
5f9e9628295536489ee271571858b5c113c24c7c
99,362
py
Python
Scripts/generated/protocolbuffers/Social_pb2.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/generated/protocolbuffers/Social_pb2.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/generated/protocolbuffers/Social_pb2.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
# uncompyle6 version 3.7.4 # Python bytecode 3.7 (3394) # Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] # Embedded file name: D:\dev\TS4\_deploy\Client\Releasex64\Python\Generated\protocolbuffers\Social_pb2.py # Compiled at: 2020-12-13 14:24:09 # Size of sourc...
31.050625
10,693
0.763723
5f9ec6c74b57542c9787a229e40967ba3e06098c
56
py
Python
NumpyUtility/__init__.py
PaulKGrimes/NumpyUtility
35607725d07952deca10d7342043db7e77756278
[ "MIT" ]
null
null
null
NumpyUtility/__init__.py
PaulKGrimes/NumpyUtility
35607725d07952deca10d7342043db7e77756278
[ "MIT" ]
null
null
null
NumpyUtility/__init__.py
PaulKGrimes/NumpyUtility
35607725d07952deca10d7342043db7e77756278
[ "MIT" ]
null
null
null
__all__ = ["NumpyUtility"] from .NumpyUtility import *
14
27
0.732143
5f9f9ecefb3439db4ca570e4a61b0846cf1331d6
188
py
Python
09-Data-Analysis/Sweetviz/ReprotViz.py
NguyenQuangBinh803/Python-Heritage
7da72b2926cefc4903086a1cab7de3a64764d648
[ "MIT" ]
1
2021-01-10T12:06:26.000Z
2021-01-10T12:06:26.000Z
09-Data-Analysis/Sweetviz/ReprotViz.py
NguyenQuangBinh803/Python-Heritage
7da72b2926cefc4903086a1cab7de3a64764d648
[ "MIT" ]
null
null
null
09-Data-Analysis/Sweetviz/ReprotViz.py
NguyenQuangBinh803/Python-Heritage
7da72b2926cefc4903086a1cab7de3a64764d648
[ "MIT" ]
null
null
null
import sweetviz import pandas as pd if __name__ == '__main__': df = pd.read_csv("BankChurners_clean.csv") report = sweetviz.analyze(df, "Attrition_Flag") report.show_html()
20.888889
51
0.707447
5fa0436f9f5d626cf4b365a484376d1f5343ee15
5,046
py
Python
FTPShell/FTPShell.py
dsogo/H4CKING
58aaaabc25995dbff9aa4985e8308a963772b87e
[ "MIT" ]
17
2020-10-07T01:37:32.000Z
2021-12-11T21:23:25.000Z
FTPShell/FTPShell.py
Al0nnso/H4CKING
58aaaabc25995dbff9aa4985e8308a963772b87e
[ "MIT" ]
null
null
null
FTPShell/FTPShell.py
Al0nnso/H4CKING
58aaaabc25995dbff9aa4985e8308a963772b87e
[ "MIT" ]
8
2020-09-22T03:14:51.000Z
2022-03-07T16:03:24.000Z
from pyftpdlib.authorizers import DummyAuthorizer from pyftpdlib.handlers import FTPHandler from multiprocessing import Process from pyftpdlib import servers from time import sleep from requests import get import socket import psutil import win32api # Al0nnso - 2019 # FTP Reverse Shell # NOT TESTED WITH EXTERN NETWOR...
35.535211
92
0.441538
5fa103b113b3be7f53cb7ec2e64ba88c2cf38693
8,321
py
Python
tests/test_io.py
wellcometrust/deep_reference_parser
b58e4616f4de9bfe18ab41e90f696f80ab876245
[ "MIT" ]
13
2020-02-19T02:09:00.000Z
2021-12-16T23:15:58.000Z
tests/test_io.py
wellcometrust/deep_reference_parser
b58e4616f4de9bfe18ab41e90f696f80ab876245
[ "MIT" ]
33
2020-02-12T11:21:51.000Z
2022-02-10T00:48:17.000Z
tests/test_io.py
wellcometrust/deep_reference_parser
b58e4616f4de9bfe18ab41e90f696f80ab876245
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 import os import pytest from deep_reference_parser.io.io import ( read_jsonl, write_jsonl, load_tsv, write_tsv, _split_list_by_linebreaks, _unpack, ) from deep_reference_parser.reference_utils import yield_token_label_pairs from .common import TEST_JSON...
24.259475
88
0.414373
5fa141b264762a22f9a2b6309a86900f4d79fb07
389
py
Python
tests/unit/test_priorities.py
anshumangoyal/testrail-api
a9b2983a59667999a8432fa0af034c1fbd07e1cc
[ "MIT" ]
21
2019-04-15T07:25:48.000Z
2022-03-19T04:21:43.000Z
tests/unit/test_priorities.py
anshumangoyal/testrail-api
a9b2983a59667999a8432fa0af034c1fbd07e1cc
[ "MIT" ]
30
2019-04-15T07:18:59.000Z
2022-03-19T07:26:57.000Z
tests/unit/test_priorities.py
anshumangoyal/testrail-api
a9b2983a59667999a8432fa0af034c1fbd07e1cc
[ "MIT" ]
16
2019-02-21T11:59:32.000Z
2022-02-23T17:33:16.000Z
import json import responses
24.3125
93
0.59383
5fa14c2eb69ff76b5ae4ab590ca445b49132d179
37,185
py
Python
prescient/gosm/tester.py
iSoron/Prescient
a3c1d7c5840893ff43dca48c40dc90f083292d26
[ "BSD-3-Clause" ]
21
2020-06-03T13:54:22.000Z
2022-02-27T18:20:35.000Z
prescient/gosm/tester.py
iSoron/Prescient
a3c1d7c5840893ff43dca48c40dc90f083292d26
[ "BSD-3-Clause" ]
79
2020-07-30T17:29:04.000Z
2022-03-09T00:06:39.000Z
prescient/gosm/tester.py
bknueven/Prescient
6289c06a5ea06c137cf1321603a15e0c96ddfb85
[ "BSD-3-Clause" ]
16
2020-07-14T17:05:56.000Z
2022-02-17T17:51:13.000Z
# ___________________________________________________________________________ # # Prescient # Copyright 2020 National Technology & Engineering Solutions of Sandia, LLC # (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. # Government retains certain rights in this software. # This software is ...
43.644366
134
0.61584
5fa27ee2e5dad2743d90292ecca26ad61a23a586
615
py
Python
inbound/admin.py
nilesh-kr-dubey/django-inbound-rules
5ca122bf915d17c04a63b1464048bba91006e854
[ "MIT" ]
1
2020-07-31T06:34:27.000Z
2020-07-31T06:34:27.000Z
inbound/admin.py
nilesh-kr-dubey/django-inbound-rules
5ca122bf915d17c04a63b1464048bba91006e854
[ "MIT" ]
null
null
null
inbound/admin.py
nilesh-kr-dubey/django-inbound-rules
5ca122bf915d17c04a63b1464048bba91006e854
[ "MIT" ]
null
null
null
from django.contrib import admin from inbound.models import Rule, InboundIP # Register your models here. admin.site.register(Rule, RuleAdmin)
25.625
98
0.676423
5fa29ec1b9e32e73683aab09293ca2018836774b
397
py
Python
firldBuzzUserEntryApp/login/loginForm.py
sir-rasel/backend-api-integration
41e3d44caa6ec10382efbb482cb9d0f77bd4a5fb
[ "MIT" ]
2
2020-12-11T12:45:34.000Z
2021-11-09T11:25:23.000Z
firldBuzzUserEntryApp/login/loginForm.py
sir-rasel/backend-api-integration
41e3d44caa6ec10382efbb482cb9d0f77bd4a5fb
[ "MIT" ]
null
null
null
firldBuzzUserEntryApp/login/loginForm.py
sir-rasel/backend-api-integration
41e3d44caa6ec10382efbb482cb9d0f77bd4a5fb
[ "MIT" ]
null
null
null
from django import forms
49.625
89
0.722922
5fa32fa26545cc0a0f75090c1a789058c3f6ac3d
751
py
Python
src/level2/뉴스클러스터링.py
iml1111/programmers_coding_study
07e89220c59c3b40dd92edc39d1b573d018efae4
[ "MIT" ]
1
2021-01-03T13:01:33.000Z
2021-01-03T13:01:33.000Z
src/level2/뉴스클러스터링.py
iml1111/programmers_coding_study
07e89220c59c3b40dd92edc39d1b573d018efae4
[ "MIT" ]
null
null
null
src/level2/뉴스클러스터링.py
iml1111/programmers_coding_study
07e89220c59c3b40dd92edc39d1b573d018efae4
[ "MIT" ]
null
null
null
from collections import Counter if __name__ == '__main__': #print(solution("FRANCE", "french")) print(solution("E=M*C^2", "e=m*c^2"))
31.291667
77
0.609854
5fa6b75aa0e33eeec7402b44584c8450dcb054c7
1,226
py
Python
gssClients/gssPythonClients/download_gss.py
SemWES/client_libs
48c3af519ceaf80b3f33cf509c72376b9b3d9582
[ "Zlib" ]
null
null
null
gssClients/gssPythonClients/download_gss.py
SemWES/client_libs
48c3af519ceaf80b3f33cf509c72376b9b3d9582
[ "Zlib" ]
null
null
null
gssClients/gssPythonClients/download_gss.py
SemWES/client_libs
48c3af519ceaf80b3f33cf509c72376b9b3d9582
[ "Zlib" ]
null
null
null
#!/bin/env python # Copyright STIFTELSEN SINTEF 2016 import suds import urllib2 import sys if len(sys.argv) < 4: print ("Usage:") print ("\t %s gss-url outputfilename token" % sys.argv[0]) exit() # get url: url = sys.argv[1] outputfileName = sys.argv[2] sessionToken = sys.argv[3] wsdlLocation = "https:...
29.190476
88
0.686786
5faad04658ea51684534a077173c5f03481fc86f
6,728
py
Python
Zmuggler.py
electronicbots/Zmuggler
5b9df5919367dffb588b18c5acd567e20135d2b7
[ "MIT" ]
1
2021-07-28T06:02:44.000Z
2021-07-28T06:02:44.000Z
Zmuggler.py
electronicbots/Zmuggler
5b9df5919367dffb588b18c5acd567e20135d2b7
[ "MIT" ]
null
null
null
Zmuggler.py
electronicbots/Zmuggler
5b9df5919367dffb588b18c5acd567e20135d2b7
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from requests import Request, Session from requests.exceptions import ReadTimeout import urllib3, requests, collections, http.client, optparse, sys, os print("""\033[1;36m _____ _ |__ /_ __ ___ _ _ __ _ __ _| | ___ _ __ / /| '_ ` _ \| | | |/ _` |/ ...
35.597884
148
0.5
5faed7df0481d882b8814038712e8be58ef77e17
3,397
py
Python
cosmosis-standard-library/shear/cl_to_xi_fullsky/cl_to_xi_interface.py
ktanidis2/Modified_CosmoSIS_for_galaxy_number_count_angular_power_spectra
07e5d308c6a8641a369a3e0b8d13c4104988cd2b
[ "BSD-2-Clause" ]
1
2021-09-15T10:10:26.000Z
2021-09-15T10:10:26.000Z
cosmosis-standard-library/shear/cl_to_xi_fullsky/cl_to_xi_interface.py
ktanidis2/Modified_CosmoSIS_for_galaxy_number_count_angular_power_spectra
07e5d308c6a8641a369a3e0b8d13c4104988cd2b
[ "BSD-2-Clause" ]
null
null
null
cosmosis-standard-library/shear/cl_to_xi_fullsky/cl_to_xi_interface.py
ktanidis2/Modified_CosmoSIS_for_galaxy_number_count_angular_power_spectra
07e5d308c6a8641a369a3e0b8d13c4104988cd2b
[ "BSD-2-Clause" ]
1
2021-06-11T15:29:43.000Z
2021-06-11T15:29:43.000Z
#coding: utf-8 #import cl_to_xi_full from __future__ import print_function from builtins import range import numpy as np from cosmosis.datablock import option_section, names as section_names from cl_to_xi import save_xi_00_02, save_xi_22, arcmin_to_radians, SpectrumInterp from legendre import get_legfactors_00, get_leg...
36.138298
87
0.657345
5fafc8dcb4215c91fc9ae3f825e9c6da430bff4a
326
py
Python
software/glasgow/applet/video/__init__.py
electroniceel/Glasgow
f6d8fda1d5baec006a6c43fa3d2547a33bdee666
[ "Apache-2.0", "0BSD" ]
1,014
2019-10-05T16:21:43.000Z
2022-03-31T09:26:43.000Z
software/glasgow/applet/video/__init__.py
attie/glasgow
eca2cb278478d9cb9a102e6e99dfc5bd2d77a549
[ "Apache-2.0", "0BSD" ]
113
2019-10-06T07:49:37.000Z
2022-03-24T04:33:08.000Z
software/glasgow/applet/video/__init__.py
attie/glasgow
eca2cb278478d9cb9a102e6e99dfc5bd2d77a549
[ "Apache-2.0", "0BSD" ]
79
2019-10-08T07:36:03.000Z
2022-03-21T07:00:27.000Z
""" The ``video`` taxon groups applets implementing video interfaces, that is, interfaces for periodic transfers of 2d arrays of samples of electromagnetic wave properties. Examples: VGA output, TFT LCD capture, TFT LCD output. Counterexamples: SCSI scanner (use taxon ``photo``), SPI LCD output (use taxon ``display``)...
40.75
98
0.757669
5fb11bba5257814c53fdaf00b36feffb7caef7ad
22,329
py
Python
aiida_vasp/parsers/content_parsers/vasprun.py
DropD/aiida_vasp
9967f5501a6fc1c67981154068135cec7be5396a
[ "MIT" ]
3
2016-11-18T07:19:57.000Z
2016-11-28T08:28:38.000Z
aiida_vasp/parsers/content_parsers/vasprun.py
DropD/aiida_vasp
9967f5501a6fc1c67981154068135cec7be5396a
[ "MIT" ]
null
null
null
aiida_vasp/parsers/content_parsers/vasprun.py
DropD/aiida_vasp
9967f5501a6fc1c67981154068135cec7be5396a
[ "MIT" ]
null
null
null
""" The vasprun.xml parser interface. --------------------------------- Contains the parsing interfaces to ``parsevasp`` used to parse ``vasprun.xml`` content. """ # pylint: disable=abstract-method, too-many-public-methods import numpy as np from parsevasp.vasprun import Xml from parsevasp import constants as parseva...
31.898571
132
0.578261
5fb1b34629d1b25a94935e87aa37911d21e8edb9
704
py
Python
estoque/admin.py
Felipebros/mini_curso_django
965dd5e8837db9dea4485e889c2b8703fb5e902d
[ "MIT" ]
8
2019-06-18T20:20:39.000Z
2019-11-09T20:21:06.000Z
estoque/admin.py
Felipebros/mini_curso_django
965dd5e8837db9dea4485e889c2b8703fb5e902d
[ "MIT" ]
8
2019-12-04T23:26:42.000Z
2022-02-10T12:02:19.000Z
estoque/admin.py
Felipebros/mini_curso_django
965dd5e8837db9dea4485e889c2b8703fb5e902d
[ "MIT" ]
3
2019-06-21T22:37:32.000Z
2019-10-31T00:38:45.000Z
from django.contrib import admin from .models import Produto, TipoProduto, Estoque # Register your models here. admin.site.register(TipoProduto, TipoProdutoAdmin) admin.site.register(Estoque, EstoqueAdmin) admin.site.register(Produto, ProdutoAdmin)
35.2
105
0.755682
5fb1ba21e31a7c2b9e588c895f10ae57243ce651
3,137
py
Python
star/star.py
gd-star-pp/star-pp
24c7289199215961fe5462b99ec600907b305d3f
[ "MIT" ]
2
2021-10-10T23:42:30.000Z
2022-03-31T19:43:13.000Z
star/star.py
lotus-gd/azalea
24c7289199215961fe5462b99ec600907b305d3f
[ "MIT" ]
null
null
null
star/star.py
lotus-gd/azalea
24c7289199215961fe5462b99ec600907b305d3f
[ "MIT" ]
null
null
null
import gd, itertools from cube import calculate_cube from ball import calculate_ball from helpers import average client = gd.Client() modes = {gd.PortalType.CUBE: calculate_cube, gd.PortalType.SHIP: calculate_ship, gd.PortalType.BALL: calculate_ball, gd.PortalType.BALL: calculate_ufo, ...
36.057471
203
0.646159
5fb3ccf7fca90c61707cbd90f3475846779b54b9
341
py
Python
clash-of-code/shortest/number_categories.py
jonasnic/codingame
f1a7fe8007b9ca63bdf30cd72f4d6ac41a5ac721
[ "MIT" ]
30
2016-04-30T01:56:05.000Z
2022-03-09T22:19:12.000Z
clash-of-code/shortest/number_categories.py
jonasnic/codingame
f1a7fe8007b9ca63bdf30cd72f4d6ac41a5ac721
[ "MIT" ]
1
2021-05-19T19:36:45.000Z
2021-05-19T19:36:45.000Z
clash-of-code/shortest/number_categories.py
jonasnic/codingame
f1a7fe8007b9ca63bdf30cd72f4d6ac41a5ac721
[ "MIT" ]
17
2020-01-28T13:54:06.000Z
2022-03-26T09:49:27.000Z
from collections import defaultdict c=defaultdict(set) f=lambda:[int(i) for i in input().split()] a,b=f() s,e=f() for i in range(s,e+1): x=i%a==0 y=i%b==0 if x and y: c[3].add(i) elif x and not y: c[1].add(i) elif y and not x: c[2].add(i) else: c[4].add(i) o=[] for i in range(1,5): o.append(str(len(c[i])...
17.05
42
0.58651
5fb5e0196946388daa9f3a5d9e0cb39eba4f8a0c
520
py
Python
interpreter/src/parser/errors.py
Cdayz/simple_lang
dc19d6ef76bb69c87981c8b826cf8f71b0cc475b
[ "MIT" ]
3
2019-08-22T01:20:16.000Z
2021-02-05T09:11:50.000Z
interpreter/src/parser/errors.py
Cdayz/simple_lang
dc19d6ef76bb69c87981c8b826cf8f71b0cc475b
[ "MIT" ]
null
null
null
interpreter/src/parser/errors.py
Cdayz/simple_lang
dc19d6ef76bb69c87981c8b826cf8f71b0cc475b
[ "MIT" ]
2
2019-08-22T01:20:18.000Z
2021-05-27T14:40:12.000Z
"""Module with useful exceptions for Parser."""
22.608696
52
0.696154
5fb78ad70383d16f179dd4a23ab825be06e844e6
1,919
py
Python
apps/DuelingBanditsPureExploration/dashboard/Dashboard.py
erinzm/NEXT-chemistry
d6ca0a80640937b36f9cafb5ead371e7a8677734
[ "Apache-2.0" ]
155
2015-11-01T17:48:41.000Z
2022-02-06T21:37:41.000Z
apps/DuelingBanditsPureExploration/dashboard/Dashboard.py
erinzm/NEXT-chemistry
d6ca0a80640937b36f9cafb5ead371e7a8677734
[ "Apache-2.0" ]
193
2015-09-29T21:40:31.000Z
2020-04-21T15:09:13.000Z
apps/DuelingBanditsPureExploration/dashboard/Dashboard.py
erinzm/NEXT-chemistry
d6ca0a80640937b36f9cafb5ead371e7a8677734
[ "Apache-2.0" ]
54
2015-09-30T15:51:05.000Z
2022-02-13T05:26:20.000Z
import json import next.utils as utils from next.apps.AppDashboard import AppDashboard
47.975
158
0.604482
5fba9266d157d784d487f4f6d96c252ab58bc927
221
py
Python
modules/module0/02_datastructures_and_geometry/datastructures_0b.py
tetov/ITA19
1af68a8885caf83acd98f4136d0286539ccbe63b
[ "MIT" ]
7
2019-11-13T20:29:54.000Z
2020-02-26T14:30:54.000Z
modules/module0/02_datastructures_and_geometry/datastructures_0b.py
GeneKao/ITA19
c4b10dc183599eed4ed60d922b6ef5922d173bdb
[ "MIT" ]
4
2019-11-07T20:57:51.000Z
2020-03-04T11:43:18.000Z
modules/module0/02_datastructures_and_geometry/datastructures_0b.py
GeneKao/ITA19
c4b10dc183599eed4ed60d922b6ef5922d173bdb
[ "MIT" ]
6
2019-10-30T13:25:54.000Z
2020-02-14T14:06:09.000Z
import os import compas from compas.datastructures import Mesh HERE = os.path.dirname(__file__) DATA = os.path.join(HERE, 'data') FILE = os.path.join(DATA, 'faces.obj') mesh = Mesh.from_obj(FILE) print(mesh.summary())
18.416667
38
0.737557
5fbebd443ba2cc788cd34ccb4de7f2967a894072
3,957
py
Python
vis_utils/animation/group_animation_controller.py
eherr/vis_utils
b757b01f42e6da02ad62130c3b0e61e9eaa3886f
[ "MIT" ]
4
2020-05-20T03:55:19.000Z
2020-12-24T06:33:40.000Z
vis_utils/animation/group_animation_controller.py
eherr/vis_utils
b757b01f42e6da02ad62130c3b0e61e9eaa3886f
[ "MIT" ]
1
2020-05-18T11:21:35.000Z
2020-07-07T21:25:57.000Z
vis_utils/animation/group_animation_controller.py
eherr/vis_utils
b757b01f42e6da02ad62130c3b0e61e9eaa3886f
[ "MIT" ]
1
2020-07-20T06:57:13.000Z
2020-07-20T06:57:13.000Z
#!/usr/bin/env python # # Copyright 2019 DFKI GmbH. # # 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, merg...
39.57
98
0.706849