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
7a599551cbe10405a6533fa72546665cfe501142
4,954
py
Python
tests/test_stopwatch.py
Harlocks/python-stopwatch2
b636b03896744536a561acc0046d67db3463cbb6
[ "MIT" ]
null
null
null
tests/test_stopwatch.py
Harlocks/python-stopwatch2
b636b03896744536a561acc0046d67db3463cbb6
[ "MIT" ]
null
null
null
tests/test_stopwatch.py
Harlocks/python-stopwatch2
b636b03896744536a561acc0046d67db3463cbb6
[ "MIT" ]
null
null
null
from pytest import fixture from pytest_mock import MockerFixture from stopwatch import Stopwatch from .mocks.time import TimeMock
39.951613
79
0.589826
7a5aa6189fc8e42cc3bd513c379d34e07b3d5263
189
py
Python
Curso de Cisco/Actividades/Operaciones con cadenas - min().py
tomasfriz/Curso-de-Cisco
a50ee5fa96bd86d468403e29ccdc3565a181af60
[ "MIT" ]
null
null
null
Curso de Cisco/Actividades/Operaciones con cadenas - min().py
tomasfriz/Curso-de-Cisco
a50ee5fa96bd86d468403e29ccdc3565a181af60
[ "MIT" ]
null
null
null
Curso de Cisco/Actividades/Operaciones con cadenas - min().py
tomasfriz/Curso-de-Cisco
a50ee5fa96bd86d468403e29ccdc3565a181af60
[ "MIT" ]
null
null
null
# Demonstrando min() - Ejemplo 1 print(min("aAbByYzZ")) # Demonstrando min() - Examplos 2 y 3 t = 'Los Caballeros Que Dicen "Ni!"' print('[' + min(t) + ']') t = [0, 1, 2] print(min(t))
18.9
37
0.587302
7a5ac1356d168562059a4532a4fd8b8099698391
2,346
py
Python
tests/ribbon/loadbalancer/dynamic_server_list_load_balancer_test.py
haribo0915/Spring-Cloud-in-Python
0bcd7093869c797df14428bf2d1b0a779f96e573
[ "Apache-2.0" ]
5
2020-10-06T09:48:23.000Z
2020-10-07T13:19:46.000Z
tests/ribbon/loadbalancer/dynamic_server_list_load_balancer_test.py
haribo0915/Spring-Cloud-in-Python
0bcd7093869c797df14428bf2d1b0a779f96e573
[ "Apache-2.0" ]
5
2020-10-05T09:57:01.000Z
2020-10-12T19:52:48.000Z
tests/ribbon/loadbalancer/dynamic_server_list_load_balancer_test.py
haribo0915/Spring-Cloud-in-Python
0bcd7093869c797df14428bf2d1b0a779f96e573
[ "Apache-2.0" ]
8
2020-10-05T06:34:49.000Z
2020-10-07T13:19:46.000Z
# -*- coding: utf-8 -*- __author__ = "MJ (tsngmj@gmail.com)" __license__ = "Apache 2.0" # scip plugin from ribbon.client.config.client_config import ClientConfig from ribbon.eureka.discovery_enabled_server import DiscoveryEnabledServer from ribbon.loadbalancer.dynamic_server_list_load_balancer import DynamicServerLis...
33.514286
113
0.752771
7a5c1827901197aa7326bbd090e7c79c0c6b55cd
2,608
py
Python
modes.py
nondejus/bitcoind-ncurses2
2384065ad53e7034eac36b7692dfd24d81678ea4
[ "MIT" ]
72
2017-10-01T18:37:42.000Z
2022-01-26T01:17:34.000Z
modes.py
nondejus/bitcoind-ncurses2
2384065ad53e7034eac36b7692dfd24d81678ea4
[ "MIT" ]
16
2017-10-02T03:29:06.000Z
2019-02-20T13:00:22.000Z
modes.py
nondejus/bitcoind-ncurses2
2384065ad53e7034eac36b7692dfd24d81678ea4
[ "MIT" ]
27
2017-10-01T22:49:47.000Z
2021-06-08T01:13:26.000Z
# Copyright (c) 2014-2017 esotericnonsense (Daniel Edgecumbe) # Distributed under the MIT software license, see the accompanying # file COPYING or https://opensource.org/licenses/mit-license.php from macros import MODES
26.886598
66
0.572469
7a5ed90ae0d088e309d2023cf7397da8e6396fb7
5,043
py
Python
check_requirements_txt.py
ferstar/check-requirements-txt
3cb0d1135de66c99b8e4ef77c88645174388e0b7
[ "MIT" ]
1
2021-06-14T00:36:18.000Z
2021-06-14T00:36:18.000Z
check_requirements_txt.py
ferstar/check-requirements-txt
3cb0d1135de66c99b8e4ef77c88645174388e0b7
[ "MIT" ]
1
2020-09-10T06:34:02.000Z
2020-09-10T11:08:09.000Z
check_requirements_txt.py
ferstar/check-requirements-txt
3cb0d1135de66c99b8e4ef77c88645174388e0b7
[ "MIT" ]
null
null
null
import argparse import os import re import sys from collections import defaultdict from pathlib import Path from typing import Dict from typing import Generator from typing import Iterable from typing import List from typing import Optional from typing import Sequence from typing import Set from typing import Union fr...
34.074324
118
0.622645
7a5ee84e6d9c767a419743056d427e75818c7b96
5,957
py
Python
bpg_file_size.py
yoshitomo-matsubara/supervised-compression
6df52222c6407e8fac7d34d5e25b218910f686cf
[ "Apache-2.0" ]
12
2021-11-02T00:38:47.000Z
2022-03-15T12:57:03.000Z
bpg_file_size.py
yoshitomo-matsubara/supervised-compression
6df52222c6407e8fac7d34d5e25b218910f686cf
[ "Apache-2.0" ]
null
null
null
bpg_file_size.py
yoshitomo-matsubara/supervised-compression
6df52222c6407e8fac7d34d5e25b218910f686cf
[ "Apache-2.0" ]
1
2022-02-22T06:53:35.000Z
2022-02-22T06:53:35.000Z
import argparse import os import numpy as np from torchdistill.datasets.transform import CustomCompose, CustomRandomResize from torchdistill.datasets.util import load_coco_dataset, build_transform from torchvision.datasets import ImageFolder, VOCSegmentation from torchvision.transforms import transforms from custom.t...
44.789474
113
0.737787
7a5f45847ce76f45725bec3e256fc722d6260c66
556
py
Python
setup.py
Don-Felice/photoraspi
04b64f65cacde6c7d31acd1b5f337444d1ee7489
[ "MIT" ]
null
null
null
setup.py
Don-Felice/photoraspi
04b64f65cacde6c7d31acd1b5f337444d1ee7489
[ "MIT" ]
null
null
null
setup.py
Don-Felice/photoraspi
04b64f65cacde6c7d31acd1b5f337444d1ee7489
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='photoraspi', version='0.1.0', author='Felix Segerer', packages=['photoraspi'], license='LICENSE', description='Photography tools using the raspberry pi', entry_points={ 'console_scripts': [ 'photoraspi = photoraspi.__main__:main...
25.272727
61
0.595324
7a5f59b8105d8c01b6a6b66cefa57d4ad90dde3c
92,239
py
Python
psx/_dump_/17/_dump_ida_/set_vars.py
maoa3/scalpel
2e7381b516cded28996d290438acc618d00b2aa7
[ "Unlicense" ]
15
2018-06-28T01:11:25.000Z
2021-09-27T15:57:18.000Z
psx/_dump_/17/_dump_ida_/set_vars.py
maoa3/scalpel
2e7381b516cded28996d290438acc618d00b2aa7
[ "Unlicense" ]
7
2018-06-29T04:08:23.000Z
2019-10-17T13:57:22.000Z
psx/_dump_/17/_dump_ida_/set_vars.py
maoa3/scalpel
2e7381b516cded28996d290438acc618d00b2aa7
[ "Unlicense" ]
7
2018-06-28T01:11:34.000Z
2020-05-23T09:21:48.000Z
del_items(0x80114B24) SetType(0x80114B24, "int NumOfMonsterListLevels") del_items(0x800A49E4) SetType(0x800A49E4, "struct MonstLevel AllLevels[16]") del_items(0x80114820) SetType(0x80114820, "unsigned char NumsLEV1M1A[4]") del_items(0x80114824) SetType(0x80114824, "unsigned char NumsLEV1M1B[4]") del_items(0x80114828) S...
33.407823
67
0.815414
7a5fee112f902807e76829aa201549d3ad0aaa04
8,247
py
Python
sdk/python/pulumi_grafana/organization.py
mazamats/pulumi-grafana
f7bbcbcd386a523e96862bf140e3fd31879885a4
[ "ECL-2.0", "Apache-2.0" ]
7
2019-12-06T16:29:04.000Z
2022-03-09T03:10:14.000Z
sdk/python/pulumi_grafana/organization.py
mazamats/pulumi-grafana
f7bbcbcd386a523e96862bf140e3fd31879885a4
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_grafana/organization.py
mazamats/pulumi-grafana
f7bbcbcd386a523e96862bf140e3fd31879885a4
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import json import warnings import pulumi import pulumi.runtime from typing import Union from . import utilities, tables
54.615894
187
0.680975
7a603be8111d7ede38d1bc5287fc6087f2a2a579
1,545
py
Python
backend/chineseocr_lite/config.py
MrZilinXiao/Fighting-Meme-python-wechaty
5fbd148635928ceb22fba7cf1a4880a0045a3764
[ "Apache-2.0" ]
6
2020-08-13T10:02:32.000Z
2020-12-07T14:22:03.000Z
backend/chineseocr_lite/config.py
MrZilinXiao/Fighting-Meme-python-wechaty
5fbd148635928ceb22fba7cf1a4880a0045a3764
[ "Apache-2.0" ]
3
2021-06-08T21:55:26.000Z
2022-03-12T00:38:10.000Z
backend/chineseocr_lite/config.py
MrZilinXiao/python-wechaty-meme-bo
5fbd148635928ceb22fba7cf1a4880a0045a3764
[ "Apache-2.0" ]
2
2020-08-19T02:34:01.000Z
2020-12-07T06:54:04.000Z
import os filt_path = os.path.abspath(__file__) father_path = os.path.abspath(os.path.dirname(filt_path) + os.path.sep + ".") GPU_ID = 0 # psenet pse_long_size = 960 # pse_model_type = "mobilenetv2" pse_scale = 1 if pse_model_type == "mobilenetv2": pse_model_path = os.path.join(father_path, "models/psenet_lit...
30.9
98
0.732039
7a61a5f99ef1647f179b9b8ba21e03e5c3108ee4
875
py
Python
stac/test_sort.py
amandaortega/stac
c4e126ff211e4256b19ccb4104c4ca86014c8edd
[ "BSD-2-Clause" ]
null
null
null
stac/test_sort.py
amandaortega/stac
c4e126ff211e4256b19ccb4104c4ca86014c8edd
[ "BSD-2-Clause" ]
null
null
null
stac/test_sort.py
amandaortega/stac
c4e126ff211e4256b19ccb4104c4ca86014c8edd
[ "BSD-2-Clause" ]
null
null
null
from sort_algorithms import sort_algorithms print_sort('/home/amanda/Dropbox/trabalho/doutorado/testes/aplicacoes/vento/USA/resultados/geral/2/RMSE_complete.csv', 0.05, 'RMSE complete') #print_sort('/home/amanda/Dropbox/trabalho/doutorado/testes/aplicacoes/vento/USA/resultados/geral/2/RMSE_test.csv', 0.05, 'RMSE test'...
51.470588
141
0.733714
7a63316cc2473a14ba5d4e9c197dca6675e2448b
868
py
Python
src/utils.py
zongxj/simple-cloud-disk
2d33ef84c6812717e29a34c0d7d65d740e3b7dc9
[ "MIT" ]
1
2020-01-08T05:01:32.000Z
2020-01-08T05:01:32.000Z
src/utils.py
zongxj/simple-cloud-disk
2d33ef84c6812717e29a34c0d7d65d740e3b7dc9
[ "MIT" ]
null
null
null
src/utils.py
zongxj/simple-cloud-disk
2d33ef84c6812717e29a34c0d7d65d740e3b7dc9
[ "MIT" ]
2
2019-05-15T06:49:36.000Z
2020-07-17T01:11:10.000Z
import os from . import db from .form import User from .const import SCP_DIR, DISK_DIR def delete_admin(): """ :return: """ users = User.query.all() for u in users: db.session.delete(u) db.session.commit() def get_disk_main_dir(): """ :return: """ if os.pat...
18.083333
54
0.579493
7a633c099499f37d537aa1e6570a5359e2ba2008
117
py
Python
sloth_job/admin.py
Alexoner/sloth
ac2668d1e096de474429fc0d1a5291b107374c32
[ "Unlicense" ]
null
null
null
sloth_job/admin.py
Alexoner/sloth
ac2668d1e096de474429fc0d1a5291b107374c32
[ "Unlicense" ]
null
null
null
sloth_job/admin.py
Alexoner/sloth
ac2668d1e096de474429fc0d1a5291b107374c32
[ "Unlicense" ]
null
null
null
from django.contrib import admin from .models import Proxy # Register your models here. admin.site.register(Proxy)
16.714286
32
0.794872
7a63b52d1ba7994909360329ec8e1560e0aa8522
3,845
py
Python
gerritviewer/views/groups.py
tivaliy/gerrit-quick-viewer
86d6995faf2a1eeb611eb861fef2a8c856f4be86
[ "Apache-2.0" ]
null
null
null
gerritviewer/views/groups.py
tivaliy/gerrit-quick-viewer
86d6995faf2a1eeb611eb861fef2a8c856f4be86
[ "Apache-2.0" ]
null
null
null
gerritviewer/views/groups.py
tivaliy/gerrit-quick-viewer
86d6995faf2a1eeb611eb861fef2a8c856f4be86
[ "Apache-2.0" ]
null
null
null
# # Copyright 2017 Vitalii Kulanov # # 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 ...
42.722222
78
0.576333
7a63ebc8faf56252bf51b4bbf71aad27de4c9ad0
5,492
py
Python
postRunScripts/convergence.py
burks-pub/gecco2015
2a7e32381d2e978e52c824d8348cf106619bb795
[ "BSD-2-Clause" ]
null
null
null
postRunScripts/convergence.py
burks-pub/gecco2015
2a7e32381d2e978e52c824d8348cf106619bb795
[ "BSD-2-Clause" ]
null
null
null
postRunScripts/convergence.py
burks-pub/gecco2015
2a7e32381d2e978e52c824d8348cf106619bb795
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python import sys import os import re import matplotlib import matplotlib.pyplot as plt from matplotlib.lines import Line2D import numpy as np import scipy.stats as stats #Matplotlib font stuff (for making figures with legible text) font = {'size': '9'} matplotlib.rc('font', **font) #USE TYPE 1 FONTS!! ma...
28.604167
95
0.675346
7a6544bb6af90bee9c01341925aa7f31eace86ba
3,218
py
Python
doppler_imaging/training/lstm.py
aasensio/DeepLearning
71838115ce93e0ca96c8314cff3f07de1d64c235
[ "MIT" ]
null
null
null
doppler_imaging/training/lstm.py
aasensio/DeepLearning
71838115ce93e0ca96c8314cff3f07de1d64c235
[ "MIT" ]
null
null
null
doppler_imaging/training/lstm.py
aasensio/DeepLearning
71838115ce93e0ca96c8314cff3f07de1d64c235
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as pl import os from ipdb import set_trace as stop os.environ["KERAS_BACKEND"] = "tensorflow" from keras.optimizers import Adam from keras.layers import Dense, LSTM, Input, TimeDistributed, Flatten from keras.models import Model import tensorflow as tf import keras.backend....
29.522936
101
0.568676
7a659e86d3a082c888e88ec97b156d1c8a2c932d
5,322
py
Python
nautobot_ssot/tests/test_views.py
smk4664/nautobot-plugin-ssot
7020d0d1910a09c408885bae9f9324fb91977928
[ "Apache-2.0" ]
9
2021-07-28T19:21:22.000Z
2022-02-16T10:00:36.000Z
nautobot_ssot/tests/test_views.py
smk4664/nautobot-plugin-ssot
7020d0d1910a09c408885bae9f9324fb91977928
[ "Apache-2.0" ]
15
2021-11-10T07:18:59.000Z
2022-03-28T05:39:55.000Z
nautobot_ssot/tests/test_views.py
smk4664/nautobot-plugin-ssot
7020d0d1910a09c408885bae9f9324fb91977928
[ "Apache-2.0" ]
6
2021-09-22T15:38:11.000Z
2022-03-15T14:46:14.000Z
"""View test cases for nautobot_ssot.""" from datetime import datetime import uuid from django.contrib.contenttypes.models import ContentType from django.urls import reverse from nautobot.extras.models import Job, JobResult from nautobot.users.models import ObjectPermission from nautobot.utilities.testing import Vie...
37.478873
109
0.618001
7a66397e7772830697bee3478cb657c01b06a8bc
655
py
Python
src/aspire/utils/em.py
janden/ASPIRE-Python
5bcf831881fd0e42630c3b99671c5ed08de260ea
[ "MIT" ]
null
null
null
src/aspire/utils/em.py
janden/ASPIRE-Python
5bcf831881fd0e42630c3b99671c5ed08de260ea
[ "MIT" ]
5
2019-06-07T13:25:29.000Z
2019-06-18T20:34:37.000Z
src/aspire/utils/em.py
janden/ASPIRE-Python
5bcf831881fd0e42630c3b99671c5ed08de260ea
[ "MIT" ]
1
2019-06-18T17:41:52.000Z
2019-06-18T17:41:52.000Z
""" Utility functions for Electron-Microscopy """ import math def voltage_to_wavelength(voltage): """ Convert from electron voltage to wavelength. :param voltage: float, The electron voltage in kV. :return: float, The electron wavelength in nm. """ return 12.2643247 / math.sqrt(voltage*1e3 + ...
27.291667
98
0.680916
7a66b9823f7d52c9e9c0c939ea4f42557703720b
23,954
py
Python
larpWikiAnomalyScanner.py
AllanWegan/larpWikiAnomalyScanner
72615627254d34195b22f744d6961dc80527f751
[ "Unlicense" ]
null
null
null
larpWikiAnomalyScanner.py
AllanWegan/larpWikiAnomalyScanner
72615627254d34195b22f744d6961dc80527f751
[ "Unlicense" ]
null
null
null
larpWikiAnomalyScanner.py
AllanWegan/larpWikiAnomalyScanner
72615627254d34195b22f744d6961dc80527f751
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 import time import re import glob import os import platform import sys import unicodedata import urllib.parse import codecs import queue from multiprocessing import Process, Event, Queue from collections import Counter baseDir = os.path.dirname(__file__) sourceDir = os.path.join(baseDir, 'back...
35.071742
88
0.586207
7a679d1a00efd7ff99cef00976d5ad2c0db00094
268
py
Python
1 MyPractice/A_Tutorials/Socratica/2InteractiveHelp.py
Davidjbennett/DavidBennett.github.io
09a2652b7ace8741bf23c6432abd58ee790b9f0c
[ "MIT" ]
3
2021-05-18T16:17:29.000Z
2022-01-20T15:46:59.000Z
1 MyPractice/A_Tutorials/Socratica/2InteractiveHelp.py
Davidjbennett/DavidBennett
09a2652b7ace8741bf23c6432abd58ee790b9f0c
[ "MIT" ]
null
null
null
1 MyPractice/A_Tutorials/Socratica/2InteractiveHelp.py
Davidjbennett/DavidBennett
09a2652b7ace8741bf23c6432abd58ee790b9f0c
[ "MIT" ]
null
null
null
import math print(dir()) #short for directory #print(dir(__builtins__)) #containes many functions and types help(pow) #shows documentation for specific function print(pow(2,10),"\n") help(hex) print("\n", hex(10)) print(0xa,"\n") #help('modules') print(dir(math))
17.866667
61
0.712687
7a67bebe0580d55980e54fbc6f55a144c53ec12f
7,953
py
Python
voicefixer/vocoder/config.py
ishine/voicefixer
0966a2f39096575cf8ae3fed8b53daf2f4512f35
[ "MIT" ]
159
2021-09-26T08:09:45.000Z
2022-03-30T07:51:02.000Z
voicefixer/vocoder/config.py
ishine/voicefixer
0966a2f39096575cf8ae3fed8b53daf2f4512f35
[ "MIT" ]
15
2021-09-30T04:28:09.000Z
2022-03-27T05:06:32.000Z
voicefixer/vocoder/config.py
ishine/voicefixer
0966a2f39096575cf8ae3fed8b53daf2f4512f35
[ "MIT" ]
32
2021-09-27T03:24:01.000Z
2022-03-30T07:52:15.000Z
import torch import numpy as np import os from voicefixer.tools.path import root_path
25.088328
88
0.530995
7a685330ea7dc697bfb2bb1cb1fdd5db2f1757dd
938
py
Python
build/platform/python/tests/test_common.py
jochenater/catboost
de2786fbc633b0d6ea6a23b3862496c6151b95c2
[ "Apache-2.0" ]
6,989
2017-07-18T06:23:18.000Z
2022-03-31T15:58:36.000Z
build/platform/python/tests/test_common.py
birichie/catboost
de75c6af12cf490700e76c22072fbdc15b35d679
[ "Apache-2.0" ]
1,978
2017-07-18T09:17:58.000Z
2022-03-31T14:28:43.000Z
build/platform/python/tests/test_common.py
birichie/catboost
de75c6af12cf490700e76c22072fbdc15b35d679
[ "Apache-2.0" ]
1,228
2017-07-18T09:03:13.000Z
2022-03-29T05:57:40.000Z
import subprocess import pytest from build.platform.python.tests import testlib PYTHON_VERSIONS = ["2.7", "3.4", "3.5", "3.6"] # 3.7, 3.8 are not runnable
29.3125
87
0.678038
7a68e5cb42401f3e82044e1020bd74333978f7a4
1,694
py
Python
test.py
grvkmrpandit/competitiveprogramming
1edb34ee7167599404ac45b9155588b79592ef4d
[ "MIT" ]
3
2020-05-07T10:48:11.000Z
2020-08-15T08:31:40.000Z
New folder/Minstack.py
gaurav-kumar-pandit/competitiveprogramming
1edb34ee7167599404ac45b9155588b79592ef4d
[ "MIT" ]
null
null
null
New folder/Minstack.py
gaurav-kumar-pandit/competitiveprogramming
1edb34ee7167599404ac45b9155588b79592ef4d
[ "MIT" ]
2
2021-05-22T13:45:06.000Z
2022-03-06T18:22:05.000Z
''' push:O(1) getMin:O(1) pop:O(1) ''' heap=MinStack() heap.push(1) heap.push(2) heap.push(10) heap.push(-10) print("min ->"+str(heap.getMin())) print("poped ->"+str(heap.pop())) print("min ->" + str(heap.getMin()))
20.91358
87
0.445691
7a68ee5cfb75060e92e8a59c8b964441ef6f6710
1,519
py
Python
app.py
Garimadhall4/Breast-cancer-detection
7e67fdba409728b91deb584bda3d1be218f4c72f
[ "MIT" ]
null
null
null
app.py
Garimadhall4/Breast-cancer-detection
7e67fdba409728b91deb584bda3d1be218f4c72f
[ "MIT" ]
null
null
null
app.py
Garimadhall4/Breast-cancer-detection
7e67fdba409728b91deb584bda3d1be218f4c72f
[ "MIT" ]
null
null
null
from flask import Flask ,request,render_template import requests import numpy as np import pandas as pd import pickle app= Flask(__name__, static_url_path="/static") model=pickle.load(open("BREAST_CANCER_MODEL.pkl",'rb')) if __name__ == "__main__": app.run(debug=True)
35.325581
90
0.658986
7a6b83a0bee88253c26fcd25c16206c94fab72ee
10,062
py
Python
faststats/hist.py
mfouesneau/faststats
9a75ac37afe12daee8d9bb0a4a56cec817967e04
[ "MIT" ]
25
2015-03-21T23:44:21.000Z
2022-02-19T08:47:48.000Z
faststats/hist.py
mfouesneau/faststats
9a75ac37afe12daee8d9bb0a4a56cec817967e04
[ "MIT" ]
3
2019-11-20T15:42:56.000Z
2019-11-21T13:42:39.000Z
faststats/hist.py
mfouesneau/faststats
9a75ac37afe12daee8d9bb0a4a56cec817967e04
[ "MIT" ]
3
2016-11-29T15:51:30.000Z
2018-10-11T22:16:24.000Z
from __future__ import print_function import numpy as np from scipy import sparse from scipy.interpolate import griddata def fast_histogram2d(x, y, bins=10, weights=None, reduce_w=None, NULL=None, reinterp=None): """ Compute the sparse bi-dimensional histogram of two data samples where *x...
31.841772
117
0.577221
7a6f34c003af798da7fd7b8b00dd6aa486e15ff9
3,711
py
Python
wetrunner/classes.py
DavidMStraub/python-wetrunner
be9549535aab3a00e496002a515c647d112ea090
[ "MIT" ]
null
null
null
wetrunner/classes.py
DavidMStraub/python-wetrunner
be9549535aab3a00e496002a515c647d112ea090
[ "MIT" ]
4
2018-01-11T10:29:16.000Z
2018-04-12T15:36:20.000Z
wetrunner/classes.py
DavidMStraub/python-wetrunner
be9549535aab3a00e496002a515c647d112ea090
[ "MIT" ]
2
2018-01-11T10:20:55.000Z
2018-03-07T22:13:34.000Z
"""Defines the `WET` class that provides the main interface to the wetrunner package.""" import wcxf from wcxf.util import qcd from wetrunner import rge, definitions from wetrunner.parameters import p as default_parameters from collections import OrderedDict
40.336957
93
0.601725
7a6ff3a5dd2da7887cb19a6ed2c1752b6e82d6cc
2,834
py
Python
src/score.py
alexwarstadt/phrase-analogies-large-vae
2d5734ebdcdee916038f4654fd1a9339df3d2273
[ "MIT" ]
1
2021-04-22T14:52:10.000Z
2021-04-22T14:52:10.000Z
src/score.py
alexwarstadt/phrase-analogies-large-vae
2d5734ebdcdee916038f4654fd1a9339df3d2273
[ "MIT" ]
1
2021-04-26T22:28:42.000Z
2021-04-28T19:09:11.000Z
src/score.py
alexwarstadt/phrase-analogies-large-vae
2d5734ebdcdee916038f4654fd1a9339df3d2273
[ "MIT" ]
1
2021-08-06T14:55:16.000Z
2021-08-06T14:55:16.000Z
import re from nltk.translate import bleu_score as nltkbleu from typing import List, Optional import nli def nli_calc(sent_c, predicted_d): """ sent_c is a list /tensor / series of c sentences, predicted_d a list/tensor/series of predicated d sentences. Returns one of entailment/contradiction/neutral fo...
34.144578
113
0.673606
7a71861c0f1e88264bb0498cb0a74829ba71cba0
1,020
py
Python
examples/anomaly_detection.py
KrishnanSG/pytsal
204b4952c17fa3158a4ec7efb3a89588b73f66f2
[ "MIT" ]
32
2021-04-22T08:08:04.000Z
2022-03-27T03:24:45.000Z
examples/anomaly_detection.py
KrishnanSG/pytsal
204b4952c17fa3158a4ec7efb3a89588b73f66f2
[ "MIT" ]
null
null
null
examples/anomaly_detection.py
KrishnanSG/pytsal
204b4952c17fa3158a4ec7efb3a89588b73f66f2
[ "MIT" ]
8
2021-05-08T13:45:58.000Z
2021-12-06T07:07:51.000Z
""" Holt Winter Anomaly detection Example In this example we will look into how to create holt winters model and build an anomaly detection model in less than 4 steps. """ if __name__ == '__main__': from pytsal import anomaly, forecasting from pytsal.dataset import * # 1. Load the dataset ts_...
30.909091
107
0.686275
7a73b084c360609a225d9aad6ac427126687eac2
82
py
Python
bili_kits/account/__init__.py
LonelySteve/Bili-Kits
42e536400b2f35d57e5871de34303b6f2fc901ed
[ "MIT" ]
null
null
null
bili_kits/account/__init__.py
LonelySteve/Bili-Kits
42e536400b2f35d57e5871de34303b6f2fc901ed
[ "MIT" ]
null
null
null
bili_kits/account/__init__.py
LonelySteve/Bili-Kits
42e536400b2f35d57e5871de34303b6f2fc901ed
[ "MIT" ]
null
null
null
from .user import BaseUser,WebUser,ClientUser,UserNotLoginError,get_user_card_info
82
82
0.902439
7a7692d101eac813e617e9f26a5e8626e4284e53
3,828
py
Python
personalwebsite/project/views.py
Liuqian0501/personalwebsite
a3c880aa8ce5cb61e93825e37693c8ee4f421172
[ "MIT" ]
null
null
null
personalwebsite/project/views.py
Liuqian0501/personalwebsite
a3c880aa8ce5cb61e93825e37693c8ee4f421172
[ "MIT" ]
null
null
null
personalwebsite/project/views.py
Liuqian0501/personalwebsite
a3c880aa8ce5cb61e93825e37693c8ee4f421172
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.views.decorators.csrf import csrf_exempt from django.core.files.storage import default_storage from django.core.files.base import ContentFile from django.conf import settings from .models import ContentImage import io import os import json from .src.trans_model import Tr...
28.355556
109
0.573929
7a77403338ee31e5e87171f17d753b2434e4a1a1
7,341
py
Python
appengine/findit/waterfall/try_job_util.py
eunchong/infra
ce3728559112bfb3e8b32137eada517aec6d22f9
[ "BSD-3-Clause" ]
null
null
null
appengine/findit/waterfall/try_job_util.py
eunchong/infra
ce3728559112bfb3e8b32137eada517aec6d22f9
[ "BSD-3-Clause" ]
null
null
null
appengine/findit/waterfall/try_job_util.py
eunchong/infra
ce3728559112bfb3e8b32137eada517aec6d22f9
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import logging from google.appengine.ext import ndb from common import appengine_util from common import constants from model import analysis_status from m...
38.434555
80
0.721428
7a776ceea520cad01647ff7e5d85119dfe2ab2b4
7,477
py
Python
galaxy_dive/analyze_data/gridded_data.py
zhafen/galaxy-dive
e1127da25d10f699b3ada01b1b4635255f4f3917
[ "MIT" ]
null
null
null
galaxy_dive/analyze_data/gridded_data.py
zhafen/galaxy-dive
e1127da25d10f699b3ada01b1b4635255f4f3917
[ "MIT" ]
1
2018-12-17T21:11:18.000Z
2018-12-17T21:11:18.000Z
galaxy_dive/analyze_data/gridded_data.py
zhafen/galaxy-dive
e1127da25d10f699b3ada01b1b4635255f4f3917
[ "MIT" ]
null
null
null
#!/usr/bin/env python '''Subclass for analyzing particle data. @author: Zach Hafen @contact: zachary.h.hafen@gmail.com @status: Development ''' import h5py import numpy as np import galaxy_dive.utils.io as io import galaxy_dive.analyze_data.simulation_data as simulation_data import galaxy_dive.utils.utilities as uti...
33.832579
112
0.545138
7a7a6aee5c4f33116044d955e189da7e038a356e
1,187
py
Python
tests/dsdcompiler/test_compiler.py
DNA-and-Natural-Algorithms-Group/nuskell
45493408fd5efe378b52c14ee886a39e07fe00b5
[ "MIT" ]
5
2018-08-17T09:17:36.000Z
2021-12-04T10:32:55.000Z
tests/dsdcompiler/test_compiler.py
DNA-and-Natural-Algorithms-Group/nuskell
45493408fd5efe378b52c14ee886a39e07fe00b5
[ "MIT" ]
null
null
null
tests/dsdcompiler/test_compiler.py
DNA-and-Natural-Algorithms-Group/nuskell
45493408fd5efe378b52c14ee886a39e07fe00b5
[ "MIT" ]
1
2017-08-21T03:32:54.000Z
2017-08-21T03:32:54.000Z
# # Unittests for nuskell.dsdcompiler.compiler # # Written by Stefan Badelt (bad-ants-fleet@posteo.eu). # import unittest from nuskell.dsdcompiler.objects import clear_memory, NuskellComplex from nuskell.dsdcompiler.compiler import translate if __name__ == '__main__': unittest.main()
28.95122
68
0.611626
7a7d743d69dc7c6daf84cd840fef8e51bc6ce65b
7,943
py
Python
pa1/solution/runtagger.py
le0tan/cs4248-pos-tagger
927b166f73abe898319c756e301da68556a96a5c
[ "MIT" ]
null
null
null
pa1/solution/runtagger.py
le0tan/cs4248-pos-tagger
927b166f73abe898319c756e301da68556a96a5c
[ "MIT" ]
null
null
null
pa1/solution/runtagger.py
le0tan/cs4248-pos-tagger
927b166f73abe898319c756e301da68556a96a5c
[ "MIT" ]
null
null
null
# python3.5 runtagger.py <test_file_absolute_path> <model_file_absolute_path> <output_file_absolute_path> import os import math import sys import datetime import re import json START_TAG = '<s>' END_TAG = '</s>' UNKNOWN_TAG = '<UNK>' SUM_TAG = '<SUM>' SEEN_TAG = '<SEEN>' SUM_WORD = '_SUM' SEEN_WORD = '_SEEN' UNK_WORD...
40.733333
123
0.525116
7a7e76d080d012d4a75a0317b71ab3a4be2a2138
269
py
Python
src/boiga/util.py
amarshall/boiga
faef732a59b7308b0f3be0d1d1ea047a405d641d
[ "MIT" ]
2
2018-10-30T13:17:23.000Z
2018-11-19T06:39:49.000Z
src/boiga/util.py
amarshall/boiga
faef732a59b7308b0f3be0d1d1ea047a405d641d
[ "MIT" ]
2
2020-03-24T16:15:45.000Z
2020-03-31T00:02:27.000Z
src/boiga/util.py
amarshall/boiga
faef732a59b7308b0f3be0d1d1ea047a405d641d
[ "MIT" ]
null
null
null
import typing as T _T = T.TypeVar('_T')
19.214286
46
0.594796
7a7e91f2a51abd5462f88d90da4e7d75394b3857
9,392
py
Python
homeassistant/components/aruba_instant/device_tracker.py
mww012/home-assistant
c112439894f9afbda34e27a7510e558a98feb6c6
[ "Apache-2.0" ]
null
null
null
homeassistant/components/aruba_instant/device_tracker.py
mww012/home-assistant
c112439894f9afbda34e27a7510e558a98feb6c6
[ "Apache-2.0" ]
40
2020-08-05T17:00:26.000Z
2022-03-04T06:01:46.000Z
homeassistant/components/aruba_instant/device_tracker.py
mww012/home-assistant
c112439894f9afbda34e27a7510e558a98feb6c6
[ "Apache-2.0" ]
1
2020-08-05T21:59:22.000Z
2020-08-05T21:59:22.000Z
"""Aruba Instant Device Tracker""" from datetime import timedelta import logging from homeassistant.components.device_tracker.config_entry import ScannerEntity from homeassistant.components.device_tracker.const import SOURCE_TYPE_ROUTER from homeassistant.core import HomeAssistant from homeassistant.helpers import de...
38.178862
93
0.617121
7a8029358015421569438f7b5dd805c889af9da0
97
py
Python
cryptodock_suite/actions/order_rate_over_time/__init__.py
the-launch-tech/cryptodock-suite
360d90c3531322b43df8df5e64ebbffc3241fe07
[ "MIT" ]
null
null
null
cryptodock_suite/actions/order_rate_over_time/__init__.py
the-launch-tech/cryptodock-suite
360d90c3531322b43df8df5e64ebbffc3241fe07
[ "MIT" ]
null
null
null
cryptodock_suite/actions/order_rate_over_time/__init__.py
the-launch-tech/cryptodock-suite
360d90c3531322b43df8df5e64ebbffc3241fe07
[ "MIT" ]
null
null
null
__all__ = [ 'order_rate_over_time' ] from .order_rate_over_time import order_rate_over_time
16.166667
54
0.793814
7a80576ba2d6a34faada6026570439ce28a802f6
1,136
py
Python
rantlib/core_application/auth.py
AlgoRythm-Dylan/qtpy-rant
2b41503fb5f8d182e89a27d4727e50bb57912b1a
[ "MIT" ]
1
2020-10-19T17:07:58.000Z
2020-10-19T17:07:58.000Z
rantlib/core_application/auth.py
AlgoRythm-Dylan/qtpy-rant
2b41503fb5f8d182e89a27d4727e50bb57912b1a
[ "MIT" ]
null
null
null
rantlib/core_application/auth.py
AlgoRythm-Dylan/qtpy-rant
2b41503fb5f8d182e89a27d4727e50bb57912b1a
[ "MIT" ]
null
null
null
from rantlib.core_application.storage import write_data_file, read_data_file, STD_PATH_AUTH from rantlib.devrant.devrant import Auth
30.702703
91
0.638204
7a8068b588950e77e441c757a0d83af5c854fb97
2,947
py
Python
python/01_Retrieve_network_data.py
martinfleis/seashore-streets
3ef24ffba063f13f654d82977d626e7e6cf9eb21
[ "CC-BY-4.0" ]
null
null
null
python/01_Retrieve_network_data.py
martinfleis/seashore-streets
3ef24ffba063f13f654d82977d626e7e6cf9eb21
[ "CC-BY-4.0" ]
null
null
null
python/01_Retrieve_network_data.py
martinfleis/seashore-streets
3ef24ffba063f13f654d82977d626e7e6cf9eb21
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Extract street networks from OpenStreetMap # # Computational notebook 01 for Climate adaptation plans in the context of coastal settlements: the case of Portugal. # # Date: 27/06/2020 # # --- # # Input data contains manually digitised building footprints stored in geopacka...
26.079646
175
0.644384
7a82209a0b8c35e72eca0a3ec87b75876b07012f
4,057
py
Python
ids/server.py
Xzh0u/AttackScenarioDetector
c4d94647cc8341145838365fb460722bc2fc26b4
[ "MIT" ]
null
null
null
ids/server.py
Xzh0u/AttackScenarioDetector
c4d94647cc8341145838365fb460722bc2fc26b4
[ "MIT" ]
null
null
null
ids/server.py
Xzh0u/AttackScenarioDetector
c4d94647cc8341145838365fb460722bc2fc26b4
[ "MIT" ]
null
null
null
from utils import load_data from torch.nn.modules.module import Module from torch.nn.parameter import Parameter import math import os import time from datetime import datetime from py.predict import Predictor from py.predict import ttypes from thrift.transport import TSocket from thrift.transport import TTransport from...
30.969466
103
0.653931
7a847cf3dea8aedaffbf98ed70101ea3bd516174
876
py
Python
accounts/urls.py
j-windsor/cs3240-f15-team21-v2
ec95c6629b84e7e0f52d34990ec8bec863d90a7b
[ "MIT" ]
null
null
null
accounts/urls.py
j-windsor/cs3240-f15-team21-v2
ec95c6629b84e7e0f52d34990ec8bec863d90a7b
[ "MIT" ]
null
null
null
accounts/urls.py
j-windsor/cs3240-f15-team21-v2
ec95c6629b84e7e0f52d34990ec8bec863d90a7b
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views urlpatterns = [ url(r'^register/$', views.register, name='register'), url(r'^login/$', views.user_login, name='login'), url(r'^logout/$', views.user_logout, name='logout'), url(r'^groups/$', views.groups, name='groups'), url(r'^sitemanager/$', v...
48.666667
104
0.655251
7a84f01ca428f54ff44dff96ff54b827f508dc48
3,179
py
Python
src/parse_settings.py
ChillerDragon-backup/TeeworldsEconMod
d41560104f79ebbeea2b9e6227ae7e93c1a90ec2
[ "MIT" ]
5
2019-05-04T00:48:12.000Z
2021-02-22T11:03:19.000Z
src/parse_settings.py
ChillerDragon-backup/TeeworldsEconMod
d41560104f79ebbeea2b9e6227ae7e93c1a90ec2
[ "MIT" ]
41
2019-04-04T16:04:14.000Z
2022-01-24T20:35:20.000Z
src/parse_settings.py
ChillerDragon-backup/TeeworldsEconMod
d41560104f79ebbeea2b9e6227ae7e93c1a90ec2
[ "MIT" ]
1
2018-11-04T20:16:28.000Z
2018-11-04T20:16:28.000Z
#!/usr/bin/env python3 """Module for parsing tem setting files""" from base.rcon import echo import base.settings def parse_error(err_type: str, err_msg: str): """Throw parser error""" echo("[ERROR:settings] " + str(err_type) + ": " + str(err_msg)) raise TemParseError(err_type + ": " + err_msg) def parse...
34.934066
97
0.587921
7a85f57aa8332f5ce9cf5d444a6a042b48d3edd7
1,506
py
Python
main.py
RickleAndMortimer/LongToeNailIdentifier
c87de25706736c9328731a7203fc3f4a8b469459
[ "Apache-2.0" ]
null
null
null
main.py
RickleAndMortimer/LongToeNailIdentifier
c87de25706736c9328731a7203fc3f4a8b469459
[ "Apache-2.0" ]
null
null
null
main.py
RickleAndMortimer/LongToeNailIdentifier
c87de25706736c9328731a7203fc3f4a8b469459
[ "Apache-2.0" ]
null
null
null
from flask import Flask from flask import render_template from flask import Flask, flash, request, redirect, url_for from werkzeug.utils import secure_filename import os import numpy as np import tensorflow as tf import PIL from tensorflow import keras #backend instantiation app = Flask(__name__) app.config['UPLOAD_F...
30.12
139
0.685923
7a864ede76e4af6969e4739c1618d4a0c97f278c
1,533
py
Python
scripts/disabled_tests/tests/test_exclude_parser.py
SarveshLimaye/aqa-tests
2e0e22e0c87de5f1ca6cbd44853b6c810dffaf16
[ "Apache-2.0" ]
null
null
null
scripts/disabled_tests/tests/test_exclude_parser.py
SarveshLimaye/aqa-tests
2e0e22e0c87de5f1ca6cbd44853b6c810dffaf16
[ "Apache-2.0" ]
null
null
null
scripts/disabled_tests/tests/test_exclude_parser.py
SarveshLimaye/aqa-tests
2e0e22e0c87de5f1ca6cbd44853b6c810dffaf16
[ "Apache-2.0" ]
null
null
null
import json import os from unittest import TestCase from exclude_parser import transform_platform, parse_all_files platform_map = { "linux-aarch64": "aarch64_linux", "linux-ppc64le": "ppc64le_linux", "linux-arm": "arm_linux", "linux-s390x": "s390x_linux", "linux-x64": "x86-64_linux", "macosx-x...
33.326087
91
0.666014
7a869da16ee7f6f377c38cf336a106c5df5cc130
247
py
Python
tests/conftest.py
SunsetWolf/qlib
89972f6c6f9fa629b4f74093d4ba1e93c9f7a5e5
[ "MIT" ]
1
2021-12-14T13:48:38.000Z
2021-12-14T13:48:38.000Z
tests/conftest.py
SunsetWolf/qlib
89972f6c6f9fa629b4f74093d4ba1e93c9f7a5e5
[ "MIT" ]
null
null
null
tests/conftest.py
SunsetWolf/qlib
89972f6c6f9fa629b4f74093d4ba1e93c9f7a5e5
[ "MIT" ]
null
null
null
import os import sys """Ignore RL tests on non-linux platform.""" collect_ignore = [] if sys.platform != "linux": for root, dirs, files in os.walk("rl"): for file in files: collect_ignore.append(os.path.join(root, file))
22.454545
59
0.639676
7a880650ca92d9038cfd1525741d5fec7515eb91
389
py
Python
idangr_core.py
IMULMUL/IDAngr
dea91475893178b3a665b7be57eb4140ea002f84
[ "BSD-2-Clause" ]
237
2018-02-07T11:18:09.000Z
2022-02-18T13:28:29.000Z
idangr_core.py
IMULMUL/IDAngr
dea91475893178b3a665b7be57eb4140ea002f84
[ "BSD-2-Clause" ]
5
2018-02-15T14:48:10.000Z
2019-10-01T18:18:41.000Z
idangr_core.py
IMULMUL/IDAngr
dea91475893178b3a665b7be57eb4140ea002f84
[ "BSD-2-Clause" ]
34
2018-02-14T12:28:09.000Z
2022-02-18T13:28:47.000Z
###################################################### # Author: Andrea Fioraldi <andreafioraldi@gmail.com> # # License: BSD 2-Clause # ###################################################### import idangr print print "################### IDAngr ###################" print " usage: idangr....
25.933333
54
0.377892
7a896e893315d43a62612933ed64349a7cf531d4
3,480
py
Python
erikagnvall-python3/day12.py
joelfak/advent_of_code_2019
d5031078c53c181835b4bf86458b360542f0122e
[ "Apache-2.0" ]
9
2019-12-01T14:52:40.000Z
2020-12-16T14:24:19.000Z
erikagnvall-python3/day12.py
joelfak/advent_of_code_2019
d5031078c53c181835b4bf86458b360542f0122e
[ "Apache-2.0" ]
null
null
null
erikagnvall-python3/day12.py
joelfak/advent_of_code_2019
d5031078c53c181835b4bf86458b360542f0122e
[ "Apache-2.0" ]
51
2019-11-26T14:49:05.000Z
2021-12-01T20:53:41.000Z
import math import os.path from dataclasses import dataclass from itertools import combinations if __name__ == '__main__': moons = _read_input() print(part1(moons)) moons = _read_input() print(part2(moons)) ############ # Tests example_1 = '''\ <x=-1, y=0, z=2> <x=2, y=-10, z=-7> <x=4, y=...
19.772727
79
0.531897
7a8af1f00b23ee7ec14f2f6cc5bec1afdb6d0b35
286
py
Python
team_app/sitemaps.py
dcopm999/initpy
63e4452d7c3523bb3b38abdae8d685c7e0f54233
[ "MIT" ]
null
null
null
team_app/sitemaps.py
dcopm999/initpy
63e4452d7c3523bb3b38abdae8d685c7e0f54233
[ "MIT" ]
3
2019-07-29T05:33:39.000Z
2022-01-13T01:24:41.000Z
team_app/sitemaps.py
dcopm999/initpy
63e4452d7c3523bb3b38abdae8d685c7e0f54233
[ "MIT" ]
2
2019-07-12T04:12:20.000Z
2019-07-29T04:34:04.000Z
from django.contrib.sitemaps import Sitemap from django.shortcuts import reverse
15.888889
43
0.671329
7a8afbf7a5a5a3530cfe29a371a839efa2a02e4a
491
py
Python
Exemples cours 5/pointOBJ.py
geocot/coursPython
74f634a96146c2244f859b9d449534330d9542fb
[ "Apache-2.0" ]
null
null
null
Exemples cours 5/pointOBJ.py
geocot/coursPython
74f634a96146c2244f859b9d449534330d9542fb
[ "Apache-2.0" ]
null
null
null
Exemples cours 5/pointOBJ.py
geocot/coursPython
74f634a96146c2244f859b9d449534330d9542fb
[ "Apache-2.0" ]
null
null
null
p1 = Point(-73,45) p1.translation(2) print(p1.getx()) print(p1.gety())
19.64
55
0.535642
7a8b3203daf2aae6490d9025629535ad4c3f8337
4,634
py
Python
cubelang/parser.py
poletaevvlad/CubeLang
06f34e7204f4656589eb33c4afe660383704861f
[ "MIT" ]
1
2019-12-04T04:02:11.000Z
2019-12-04T04:02:11.000Z
cubelang/parser.py
poletaevvlad/CubeLang
06f34e7204f4656589eb33c4afe660383704861f
[ "MIT" ]
null
null
null
cubelang/parser.py
poletaevvlad/CubeLang
06f34e7204f4656589eb33c4afe660383704861f
[ "MIT" ]
null
null
null
from typing import Iterator, Dict from string import whitespace from .actions import Turn, Action, Rotate from .orientation import Side SIDE_LETTERS: Dict[str, Side] = { "L": Side.LEFT, "R": Side.RIGHT, "F": Side.FRONT, "B": Side.BACK, "U": Side.TOP, "D": Side.BOTTOM } ROTATE_LETTERS: Dict[s...
30.688742
100
0.572076
7a8b9bc8c83018223580b28db60854c71ccc69e4
1,826
py
Python
fabfile.py
zzz123-tech/zhanzhenblog
0faafe4f1977b4d42bc9c5b992ab7f42bf3bfe0d
[ "MIT" ]
null
null
null
fabfile.py
zzz123-tech/zhanzhenblog
0faafe4f1977b4d42bc9c5b992ab7f42bf3bfe0d
[ "MIT" ]
5
2021-04-08T19:40:57.000Z
2021-09-22T19:40:18.000Z
fabfile.py
zzz123-tech/zhanzhenblog
0faafe4f1977b4d42bc9c5b992ab7f42bf3bfe0d
[ "MIT" ]
null
null
null
from fabric import task from invoke import Responder from _credentials import github_username, github_password def _get_github_auth_responders(): """ GitHub """ username_responder = Responder( pattern="Username for 'https://github.com':", response='{}\...
38.041667
120
0.535597
7a8baad099e110d3f7118d2a08b476cbf8a6d48b
2,414
py
Python
pebble_helpers/views/mixins/auth.py
scott-w/view-helpers
389fe3599e5b4e5da35f490a33895b220025b2a5
[ "BSD-3-Clause" ]
1
2015-12-10T17:52:50.000Z
2015-12-10T17:52:50.000Z
pebble_helpers/views/mixins/auth.py
scott-w/view-helpers
389fe3599e5b4e5da35f490a33895b220025b2a5
[ "BSD-3-Clause" ]
null
null
null
pebble_helpers/views/mixins/auth.py
scott-w/view-helpers
389fe3599e5b4e5da35f490a33895b220025b2a5
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings from django.contrib.auth import REDIRECT_FIELD_NAME from django.shortcuts import redirect, resolve_url from django.utils.http import is_safe_url from django.contrib.auth.decorators import login_required def already_logged_in(login_function): """Wraps login_function with a redirec...
34.985507
78
0.67937
7a8cb2e77bc04acf83fe78c12ebe944bd64c7b64
396
py
Python
user/migrations/0009_user_website.py
kthaisse/website
be0d0e0763ae2a6b8351c08b432229eae9521f1d
[ "MIT" ]
1
2020-03-19T09:44:16.000Z
2020-03-19T09:44:16.000Z
user/migrations/0009_user_website.py
kthaisse/website
be0d0e0763ae2a6b8351c08b432229eae9521f1d
[ "MIT" ]
43
2020-02-22T09:32:27.000Z
2022-03-22T11:24:51.000Z
user/migrations/0009_user_website.py
kthaisse/website
be0d0e0763ae2a6b8351c08b432229eae9521f1d
[ "MIT" ]
3
2020-03-06T13:27:12.000Z
2022-02-07T09:01:07.000Z
# Generated by Django 2.2.10 on 2020-04-04 17:49 from django.db import migrations, models
23.294118
74
0.633838
7a8cd44d6b4dfe99af7fb007576bfb73aabaaa2b
93
py
Python
hive/controllers/api/users.py
evilinc-dev/hive
898691bcae6dc9733d1e239113c327a96d2e6501
[ "MIT" ]
1
2019-10-26T06:32:41.000Z
2019-10-26T06:32:41.000Z
hive/controllers/api/users.py
evilinc-dev/hive
898691bcae6dc9733d1e239113c327a96d2e6501
[ "MIT" ]
2
2020-11-06T04:24:53.000Z
2020-11-06T04:26:04.000Z
hive/controllers/api/users.py
evilinc-dev/hive
898691bcae6dc9733d1e239113c327a96d2e6501
[ "MIT" ]
null
null
null
from flask import Blueprint, jsonify route = Blueprint("users", __name__, url_prefix='/api')
31
55
0.763441
7a8e4bbe77573044dc32a4127a4bbb4d91a902d1
649
py
Python
library/lib_study/159_debug_trace.py
gottaegbert/penter
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
[ "MIT" ]
13
2020-01-04T07:37:38.000Z
2021-08-31T05:19:58.000Z
library/lib_study/159_debug_trace.py
gottaegbert/penter
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
[ "MIT" ]
3
2020-06-05T22:42:53.000Z
2020-08-24T07:18:54.000Z
library/lib_study/159_debug_trace.py
gottaegbert/penter
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
[ "MIT" ]
9
2020-10-19T04:53:06.000Z
2021-08-31T05:20:01.000Z
# python -m trace --count -C . somefile.py # https://docs.python.org/zh-cn/3/library/trace.html # python trace python -m trace --trace 159_debug_trace.py main() # import sys # import trace # # create a Trace object, telling it what to ignore, and whether to # # do tracing or line-counting or both. # tracer = trace.T...
24.037037
68
0.684129
7a8e4bd0cee35d215bbcf4afedff8f4ee5461f7e
1,527
py
Python
wcd/wcc.py
brunofauth/wcd
a811f0f33ba90681b5d55096c1babddcce12fd1f
[ "MIT" ]
null
null
null
wcd/wcc.py
brunofauth/wcd
a811f0f33ba90681b5d55096c1babddcce12fd1f
[ "MIT" ]
null
null
null
wcd/wcc.py
brunofauth/wcd
a811f0f33ba90681b5d55096c1babddcce12fd1f
[ "MIT" ]
null
null
null
import asyncio as aio import argparse as ap import sys import os from pathlib import Path from typing import Optional from .cfg import get_cfg from .event import ConnectionMode, DaemonEvent # tbf this didnt need to be async, but ive never used synchronous unix sockets if __name__ == "__main__": main()
28.811321
101
0.687623
7a8f66c910018df30656f640554a4b526aeeb3d9
1,496
py
Python
python-pong/main.py
emobileingenieria/youtube
1c9e2074ae3fd248b9c22ed6172cc1ba62353605
[ "MIT" ]
176
2020-04-19T15:17:59.000Z
2022-03-29T19:06:32.000Z
python-pong/main.py
emobileingenieria/youtube
1c9e2074ae3fd248b9c22ed6172cc1ba62353605
[ "MIT" ]
27
2020-08-15T02:46:15.000Z
2022-03-25T19:05:34.000Z
python-pong/main.py
emobileingenieria/youtube
1c9e2074ae3fd248b9c22ed6172cc1ba62353605
[ "MIT" ]
410
2020-01-30T11:03:22.000Z
2022-03-30T18:35:57.000Z
import pygame from pygame.locals import * from paddle import Paddle from ball import Ball from inputs import handle_events, handle_input from constants import SCREEN_WIDTH, SCREEN_HEIGHT, WHITE, RED ball = None left_paddle = None right_paddle = None pygame.init() screen = pygame.display.set_mode((SCREEN_WIDTH, SCREEN...
20.493151
67
0.70254
7a90dede031ad5cf6333fc8dd16c4c89761ca0d8
2,994
py
Python
tvrenamer/service.py
shad7/tvrenamer
7fb59cb02669357e73b7acb92dcb6d74fdff4654
[ "MIT" ]
1
2017-11-25T05:01:24.000Z
2017-11-25T05:01:24.000Z
tvrenamer/service.py
shad7/tvrenamer
7fb59cb02669357e73b7acb92dcb6d74fdff4654
[ "MIT" ]
2
2015-09-19T05:08:58.000Z
2016-12-15T18:52:07.000Z
tvrenamer/service.py
shad7/tvrenamer
7fb59cb02669357e73b7acb92dcb6d74fdff4654
[ "MIT" ]
2
2019-05-10T12:36:04.000Z
2021-01-03T19:59:45.000Z
import logging import logging.config import logging.handlers import os import sys from oslo_config import cfg import six from six import moves import tvrenamer from tvrenamer import options from tvrenamer import services logging.getLogger().addHandler(logging.NullHandler()) DEFAULT_LIBRARY_LOG_LEVEL = {'stevedore':...
33.640449
78
0.667335
7a9163686720b28ba98796c68d0cd6e016ed9e64
1,637
py
Python
binary_for_search.py
jorgeMorfinezM/binary_search_algorithms
75a4f6febe6ffddbaa09aa10c87ba76027cd7af3
[ "Apache-2.0" ]
null
null
null
binary_for_search.py
jorgeMorfinezM/binary_search_algorithms
75a4f6febe6ffddbaa09aa10c87ba76027cd7af3
[ "Apache-2.0" ]
null
null
null
binary_for_search.py
jorgeMorfinezM/binary_search_algorithms
75a4f6febe6ffddbaa09aa10c87ba76027cd7af3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Algoritmo de busqueda binaria usando el ciclo while escrito en Python. Este metodo funciona con cadenas y numeros por igual, ya que el lenguaje trata a las cadenas lexicograficamente; comparando sus valores en el codigo ASCII """ """ Tests """ # Test con arreglo numericos data_list = [...
25.184615
83
0.6854
7a916a9d126a25799ce3473d1cbc7c356c7ec1da
353
py
Python
ressources/migrations/0005_auto_20200804_2357.py
rollanda21/Genetic-algorithm-for-time-table-generation
fb1ab13ab54da1a5d0582787baa2c444a9a838db
[ "MIT" ]
null
null
null
ressources/migrations/0005_auto_20200804_2357.py
rollanda21/Genetic-algorithm-for-time-table-generation
fb1ab13ab54da1a5d0582787baa2c444a9a838db
[ "MIT" ]
null
null
null
ressources/migrations/0005_auto_20200804_2357.py
rollanda21/Genetic-algorithm-for-time-table-generation
fb1ab13ab54da1a5d0582787baa2c444a9a838db
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-08-04 22:57 from django.db import migrations
19.611111
50
0.594901
7a917601f43966f35d030de0a4f74845b051da5b
78
py
Python
bandoleers/__init__.py
ibnpaul/bandoleers
22398b134be40abd9a08f121f342923675b9fb52
[ "BSD-3-Clause" ]
null
null
null
bandoleers/__init__.py
ibnpaul/bandoleers
22398b134be40abd9a08f121f342923675b9fb52
[ "BSD-3-Clause" ]
null
null
null
bandoleers/__init__.py
ibnpaul/bandoleers
22398b134be40abd9a08f121f342923675b9fb52
[ "BSD-3-Clause" ]
null
null
null
version_info = (3, 1, 0) __version__ = '.'.join(str(s) for s in version_info)
26
52
0.666667
7a92082d3d523c6edc93f0763c489fce6fec5488
3,612
py
Python
src/TypeChecker.py
leveryd/PlayWithCompiler
0701fbb7d94512e3af05a95266e0fdc562b3d40c
[ "MIT" ]
8
2021-01-16T09:29:54.000Z
2022-03-25T11:22:09.000Z
src/TypeChecker.py
leveryd/PlayWithCompiler
0701fbb7d94512e3af05a95266e0fdc562b3d40c
[ "MIT" ]
null
null
null
src/TypeChecker.py
leveryd/PlayWithCompiler
0701fbb7d94512e3af05a95266e0fdc562b3d40c
[ "MIT" ]
null
null
null
# coding:utf-8 """ 1. 2. 3. 4. [] """ from dist.PlayScriptListener import PlayScriptListener from dist.PlayScriptParser import PlayScriptParser from src.DataStructures import *
38.83871
113
0.550941
7a9209287de1f8c2c641f48b14aba0f2acae7c18
456
py
Python
Script/Clients/discord.py
AIDRI/Clash-Of-Clans-Discord-Bot
2a9f0495e30ae22ca487886fa48f9d206a545b99
[ "BSD-3-Clause" ]
null
null
null
Script/Clients/discord.py
AIDRI/Clash-Of-Clans-Discord-Bot
2a9f0495e30ae22ca487886fa48f9d206a545b99
[ "BSD-3-Clause" ]
null
null
null
Script/Clients/discord.py
AIDRI/Clash-Of-Clans-Discord-Bot
2a9f0495e30ae22ca487886fa48f9d206a545b99
[ "BSD-3-Clause" ]
null
null
null
import discord from Script.clash_info import Bot from Script.Const_variables.import_const import Login intents = discord.Intents.default() intents.members = True Clash_info = Bot(intents=intents) main_bot = 1 if main_bot: Token = Login["discord"]["token"] Clash_info.default_prefix = "/" Clash_info.id = 7...
24
53
0.739035
7a927e322c5b074520434339070daf7e2d615386
28,633
py
Python
BivariateShapley/shapley_value_functions.py
anonymous29387491/iclr2022
60c5727f8519e64610b632d074510587fb7ff692
[ "MIT" ]
2
2022-03-15T05:28:48.000Z
2022-03-17T16:23:45.000Z
BivariateShapley/shapley_value_functions.py
anonymous29387491/iclr2022
60c5727f8519e64610b632d074510587fb7ff692
[ "MIT" ]
null
null
null
BivariateShapley/shapley_value_functions.py
anonymous29387491/iclr2022
60c5727f8519e64610b632d074510587fb7ff692
[ "MIT" ]
null
null
null
import torch import torch.nn.functional as F from utils_shapley import * import xgboost as xgb from sklearn import metrics ''' class eval_XGB_cox(): def __init__(self, model): self.model = model def init_baseline(self, x, **kwargs): _, self.d = x.shape de...
36.99354
142
0.497189
7a93af7390a86a63dfa10a4fce34e5b00f2746a9
2,452
py
Python
realsense2_camera/scripts/importRosbag/messageTypes/geometry_msgs_TwistStamped.py
seasony-org/realsense-ros
c3641acd94986ca79f6bc7e21425fe1316e59a9c
[ "Apache-2.0" ]
1
2021-03-07T16:21:25.000Z
2021-03-07T16:21:25.000Z
realsense2_camera/scripts/importRosbag/messageTypes/geometry_msgs_TwistStamped.py
seasony-org/realsense-ros
c3641acd94986ca79f6bc7e21425fe1316e59a9c
[ "Apache-2.0" ]
3
2021-08-02T16:37:30.000Z
2021-11-11T23:31:55.000Z
realsense2_camera/scripts/importRosbag/messageTypes/geometry_msgs_TwistStamped.py
seasony-org/realsense-ros
c3641acd94986ca79f6bc7e21425fe1316e59a9c
[ "Apache-2.0" ]
1
2020-12-03T08:07:01.000Z
2020-12-03T08:07:01.000Z
# -*- coding: utf-8 -*- """ Copyright (C) 2019 Event-driven Perception for Robotics Authors: Sim Bamford This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your...
40.196721
90
0.696574
7a98c181267dbbf866969a8eeec7fa019843d167
2,150
py
Python
src/main.py
Merk0ff/PicRandomFromImgur
f2080f0a812bb77bd6f755c301f243596cad9838
[ "MIT" ]
null
null
null
src/main.py
Merk0ff/PicRandomFromImgur
f2080f0a812bb77bd6f755c301f243596cad9838
[ "MIT" ]
null
null
null
src/main.py
Merk0ff/PicRandomFromImgur
f2080f0a812bb77bd6f755c301f243596cad9838
[ "MIT" ]
null
null
null
import urllib.request import random import time import os from bs4 import BeautifulSoup chars = ["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3...
23.11828
257
0.52186
7a9ac7f445754aa77ec1c6acd2381e69f15d4ea3
1,483
py
Python
setup.py
mvantellingen/python-ideal
fe1254ff8b8199791855b8467c80cca3563d6f68
[ "MIT" ]
null
null
null
setup.py
mvantellingen/python-ideal
fe1254ff8b8199791855b8467c80cca3563d6f68
[ "MIT" ]
null
null
null
setup.py
mvantellingen/python-ideal
fe1254ff8b8199791855b8467c80cca3563d6f68
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys import ideal from setuptools import setup, find_packages readme = read_file('README.rst') changes = read_file('CHANGES.rst') install_requires = [ 'requests>=1.2.0', 'lxml', 'python-dateutil', 'pyOpenSSL' ] tests_require = [ 'nose', ...
24.716667
70
0.612947
7a9c270af83981606714f4300077542e6e870eab
378
py
Python
archive/migrations/0007_auto_20190715_0559.py
emawind84/rrwebtv
ae22cd39ea430aed0de2b852e40c309465a7237b
[ "MIT" ]
null
null
null
archive/migrations/0007_auto_20190715_0559.py
emawind84/rrwebtv
ae22cd39ea430aed0de2b852e40c309465a7237b
[ "MIT" ]
2
2020-06-05T20:13:36.000Z
2021-06-10T21:18:43.000Z
archive/migrations/0007_auto_20190715_0559.py
emawind84/rrwebtv
ae22cd39ea430aed0de2b852e40c309465a7237b
[ "MIT" ]
null
null
null
# Generated by Django 2.0.13 on 2019-07-15 05:59 from django.db import migrations
19.894737
49
0.600529
7a9c731d26c1abf0b1abd41d7bb369cce99cfdb6
2,072
py
Python
base100/base100/base_81-90.py
cwenao/python_web_learn
1ee2bc60de757734403ed749c6f33d3690678fa0
[ "Apache-2.0" ]
null
null
null
base100/base100/base_81-90.py
cwenao/python_web_learn
1ee2bc60de757734403ed749c6f33d3690678fa0
[ "Apache-2.0" ]
null
null
null
base100/base100/base_81-90.py
cwenao/python_web_learn
1ee2bc60de757734403ed749c6f33d3690678fa0
[ "Apache-2.0" ]
null
null
null
#81. 809*??=800*??+9*??+1 ??,8*??9*??3??809*?? # #82 convert8to10(122) #83. 07 count_odd_num() #84 x = ['a', 'b', 'dd', 'good', 'lucky', 'day'] join_str(',', x) #85 9 numerator(13) #87. x = GoodDay() x.m = 100 x.n = 20 print('this is the x.m %d and x.n %d' % (x.m, x.n)) struct_do(x) pri...
15.014493
86
0.551158
7aa00615c0b94b6e49a52a8d141fa1c7aa174f50
2,089
py
Python
Week1/main.py
EricCharnesky/CIS2001-Winter2022
9c74433ade96e4c7bf9029543285f1ded1fe91e5
[ "MIT" ]
3
2022-01-20T21:55:17.000Z
2022-02-02T23:10:45.000Z
Week1/main.py
EricCharnesky/CIS2001-Winter2022
9c74433ade96e4c7bf9029543285f1ded1fe91e5
[ "MIT" ]
null
null
null
Week1/main.py
EricCharnesky/CIS2001-Winter2022
9c74433ade96e4c7bf9029543285f1ded1fe91e5
[ "MIT" ]
2
2022-02-06T02:59:32.000Z
2022-02-23T02:34:13.000Z
import random value_a = int(input("enter the first number")) value_b = int(input("enter the second number")) value_c = int(input("enter the third number")) print(value_b + value_a + value_c) list_of_numbers = [] for number in range(100): list_of_numbers.append(random.randint(1,100)) # inclusive of both values ...
31.651515
191
0.713739
7aa1ed7ff69e5fa06e1999f4f1988858993f4c39
640
py
Python
exercicios/ex034.py
mrcbnu/python-_exercicios
773da52a227f0e9ecce998cb6b50b3fe167a4f1d
[ "MIT" ]
null
null
null
exercicios/ex034.py
mrcbnu/python-_exercicios
773da52a227f0e9ecce998cb6b50b3fe167a4f1d
[ "MIT" ]
null
null
null
exercicios/ex034.py
mrcbnu/python-_exercicios
773da52a227f0e9ecce998cb6b50b3fe167a4f1d
[ "MIT" ]
null
null
null
########################################### # EXERCICIO 034 # ########################################### '''ESCREVA UM PROGRAMA QUE PERGUNTE O SALARIO DE UM FUNCIONARIO E CALCULE O VALOR DE SEU AUMENTO: PARA SALARIO SUPERIORES A R$1250,00 CALCULE AUMENTO DE 10 %, PARA SALARIOS MENORES OU IGUA...
35.555556
73
0.542188
7aa3bc06ce88a6510c42ac13c32774a8c30eb09b
41,395
py
Python
python/getdist/gui/Resources_pyside.py
sjoudaki/CosmoJBD
3c1d029b74034b92cb2974de15e4c18637a5277e
[ "MIT" ]
1
2020-06-04T15:29:37.000Z
2020-06-04T15:29:37.000Z
python/getdist/gui/Resources_pyside.py
sjoudaki/CosmoJBD
3c1d029b74034b92cb2974de15e4c18637a5277e
[ "MIT" ]
null
null
null
python/getdist/gui/Resources_pyside.py
sjoudaki/CosmoJBD
3c1d029b74034b92cb2974de15e4c18637a5277e
[ "MIT" ]
null
null
null
# Resource object code # # Created: sam. mars 28 17:53:16 2015 # by: The Resource Compiler for PySide (Qt v4.8.6) # # WARNING! All changes made in this file will be lost! from PySide import QtCore qt_resource_data = b"\x00\x00\x06\xe0\x89PNG\x0d\x0a\x1a\x0a\x00\x00\x00\x0dIHDR\x00\x00\x00 \x00\x00\x00 \x08\x06\x...
2,069.75
39,249
0.744559
7aa7b397c8a186c0ba8a769562764b679d11f2b9
3,613
py
Python
train.py
Unique-Divine/Neural-Networks-for-Gravitational-Lens-Modeling
cd64ceda84bdd1486ad17585074ba8c7a0576ab5
[ "MIT" ]
null
null
null
train.py
Unique-Divine/Neural-Networks-for-Gravitational-Lens-Modeling
cd64ceda84bdd1486ad17585074ba8c7a0576ab5
[ "MIT" ]
null
null
null
train.py
Unique-Divine/Neural-Networks-for-Gravitational-Lens-Modeling
cd64ceda84bdd1486ad17585074ba8c7a0576ab5
[ "MIT" ]
null
null
null
############### OPTIMIZER: learning_rate = 1e-6 train_step = tf.train.AdamOptimizer(learning_rate).minimize( MeanSquareCost, var_list=train_pars) ########################## num_batch_samples = 50 num_iterations = 1 min_eval_cost = 0.06 X = np.zeros((cycle_batch_size, numpix_side*numpix_side), dtype='float32')...
38.849462
80
0.562137
7aaa78c4723caeac3fb5b1b2b9fe69e555ed2d5d
654
py
Python
instructors/course-2015/errors_and_introspection/project/primesieve1.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
46
2017-09-27T20:19:36.000Z
2020-12-08T10:07:19.000Z
instructors/course-2015/errors_and_introspection/project/primesieve1.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
6
2018-01-09T08:07:37.000Z
2020-09-07T12:25:13.000Z
instructors/course-2015/errors_and_introspection/project/primesieve1.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
18
2017-10-10T02:06:51.000Z
2019-12-01T10:18:13.000Z
""" Sieve of Erasmus - Prime Sieve Goal: Find the first n primes What we know: For a given integer, take every integer between 1 and itself. Test itself modulo that integer. If results is zero, then it is nonprime. If none of these modulo give zero, then it is prime. """ # range will include the first...
17.210526
77
0.637615
7aab6b0db7e62b035b739900d595c37d109328d7
824
py
Python
events/migrations/0003_event_color.py
jjorissen52/golf_site2
bcadd35f8386a20e532769cadf93eed6cea304fa
[ "MIT" ]
null
null
null
events/migrations/0003_event_color.py
jjorissen52/golf_site2
bcadd35f8386a20e532769cadf93eed6cea304fa
[ "MIT" ]
7
2019-10-21T21:55:23.000Z
2021-06-08T19:43:12.000Z
events/migrations/0003_event_color.py
jjorissen52/golf-site
4050f4518daf4c5b058f7fc38702a153021c2e1b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2017-11-04 03:34 from __future__ import unicode_literals from django.db import migrations, models
39.238095
428
0.565534
7aadb468bc8909478a44a2b0813c2fd13594ee74
7,011
py
Python
algorithms/aiAlgorithms/cnn/cnn_facial_recognition.py
bigfoolliu/liu_aistuff
aa661d37c05c257ee293285dd0868fb7e8227628
[ "MIT" ]
1
2019-11-25T07:23:42.000Z
2019-11-25T07:23:42.000Z
algorithms/aiAlgorithms/cnn/cnn_facial_recognition.py
bigfoolliu/liu_aistuff
aa661d37c05c257ee293285dd0868fb7e8227628
[ "MIT" ]
13
2020-01-07T16:09:47.000Z
2022-03-02T12:51:44.000Z
algorithms/aiAlgorithms/cnn/cnn_facial_recognition.py
bigfoolliu/liu_aistuff
aa661d37c05c257ee293285dd0868fb7e8227628
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # author: bigfoolliu # TODO: not finished. """ fer2013.csv - emotion,pixels,Usage - pixels48*48 """ import string, os, sys import numpy as np import matplotlib.pyplot as plt import scipy.io import random import tensorflow as tf import pandas as pd import datetime # FIL...
36.326425
120
0.609471
7aadd67713b04f99020d3336572a2b1f949370d1
2,237
py
Python
lib/file_tools.py
apimetre/MetreAppUI_v0.25
16cdee8154bca18cffeff512a431249f79a62f83
[ "MIT" ]
null
null
null
lib/file_tools.py
apimetre/MetreAppUI_v0.25
16cdee8154bca18cffeff512a431249f79a62f83
[ "MIT" ]
null
null
null
lib/file_tools.py
apimetre/MetreAppUI_v0.25
16cdee8154bca18cffeff512a431249f79a62f83
[ "MIT" ]
null
null
null
import os import json import textwrap CONSOLE_WIDTH = 140 INDENT_STR = ' ' if __name__ == '__main__': # test print_wrap(f"binfile_to_list: {binfile_to_list('../result.bin')}", INDENT_STR, CONSOLE_WIDTH) print_wrap(f"binfile_to_dict (bin): {binfile_to_dict('../result.bin')}", INDENT_STR, CONS...
31.507042
103
0.640143
7aae6ff3ef827f9d09728a23412642eaab0c7bb6
899
py
Python
importall/finder.py
markrofail/importall
91ea72c259fb84090bd6ab300b021092cb110c8e
[ "MIT" ]
null
null
null
importall/finder.py
markrofail/importall
91ea72c259fb84090bd6ab300b021092cb110c8e
[ "MIT" ]
1
2020-10-03T23:07:36.000Z
2020-10-04T17:06:25.000Z
importall/finder.py
markrofail/importall
91ea72c259fb84090bd6ab300b021092cb110c8e
[ "MIT" ]
2
2020-10-04T07:05:45.000Z
2022-01-27T13:24:53.000Z
import sys from pathlib import Path from typing import Generator, Optional, Set
26.441176
52
0.556174
7aaf81246d4bfc468f02f4d25847da25eaa2d04d
34,760
py
Python
src/ngs_te_mapper2/utility.py
bergmanlab/ngs_te_mapper2
478eb9586ef275304d16c81d484d7e408fa6e691
[ "BSD-2-Clause" ]
7
2021-01-29T21:01:19.000Z
2021-03-29T15:34:38.000Z
sourceCode/utility.py
altingia/ngs_te_mapper2
220619a3dd00b8c05c3b96328eb2424c6aad623e
[ "Unlicense" ]
2
2021-04-24T13:37:23.000Z
2021-07-30T03:32:09.000Z
sourceCode/utility.py
altingia/ngs_te_mapper2
220619a3dd00b8c05c3b96328eb2424c6aad623e
[ "Unlicense" ]
1
2021-07-15T08:30:36.000Z
2021-07-15T08:30:36.000Z
#!/usr/bin/env python3 import sys import os import subprocess import logging import re from Bio import SeqIO import math from datetime import datetime, timedelta from statistics import mean import pysam """ This script provides utility functions that are used by ngs_te_mapper program """ def parse_input(input_re...
34.552684
100
0.491628
7ab150a3ed8c0b8808f9451af96aeb4944ce2970
801
py
Python
gameParameters.py
VerdantFox/TowerDefense
1463fcd5067a565d049303ba04564e44051dc7ae
[ "CC-BY-4.0" ]
6
2019-01-30T00:06:43.000Z
2021-11-29T13:15:42.000Z
gameParameters.py
VerdantFox/TowerDefense
1463fcd5067a565d049303ba04564e44051dc7ae
[ "CC-BY-4.0" ]
null
null
null
gameParameters.py
VerdantFox/TowerDefense
1463fcd5067a565d049303ba04564e44051dc7ae
[ "CC-BY-4.0" ]
2
2020-12-15T07:55:34.000Z
2021-07-28T12:09:16.000Z
import pygame # https://stackoverflow.com/questions/28005641 # /how-to-add-a-background-image-into-pygame # Set constants for game dimensions, background, title and icon backgroundImage = Background('gameBackDrop.png') display_width = 860 display_height = 760 gameDisplay = pygame.display.set_mode((display_width, d...
29.666667
70
0.742821
7ab37cc2249d58e9dcecc9e7c9472bb35cb53ad8
5,754
py
Python
server/auto.py
adeept/Adeept_PiCar-A_OpenCV
f3f2cc3e19a75ee65f2878681ae37712af21c5c6
[ "MIT" ]
null
null
null
server/auto.py
adeept/Adeept_PiCar-A_OpenCV
f3f2cc3e19a75ee65f2878681ae37712af21c5c6
[ "MIT" ]
null
null
null
server/auto.py
adeept/Adeept_PiCar-A_OpenCV
f3f2cc3e19a75ee65f2878681ae37712af21c5c6
[ "MIT" ]
1
2020-07-14T10:38:01.000Z
2020-07-14T10:38:01.000Z
#!/usr/bin/evn python # File name : auto.py # Description : By detecting the distance through Ultrasonic,controlling the RPi car move to the four directons:the front,back,left and right,thus the car achieves automatic avoidance. # Website : www.adeept.com # E-mail : support@adeept.com # Author : Willi...
38.61745
186
0.574035
7ab3d8c6fd521a3eb09a2a807ea3c5f59c26bd3d
692
py
Python
pavo_cristatus/tests/interactions_tests/test_non_annotated_project_loader_interaction.py
MATTHEWFRAZER/pavo_cristatus
a4b96c0eb6c454fbe38d2092e29f63457a4ee955
[ "MIT" ]
null
null
null
pavo_cristatus/tests/interactions_tests/test_non_annotated_project_loader_interaction.py
MATTHEWFRAZER/pavo_cristatus
a4b96c0eb6c454fbe38d2092e29f63457a4ee955
[ "MIT" ]
null
null
null
pavo_cristatus/tests/interactions_tests/test_non_annotated_project_loader_interaction.py
MATTHEWFRAZER/pavo_cristatus
a4b96c0eb6c454fbe38d2092e29f63457a4ee955
[ "MIT" ]
null
null
null
import os from pavo_cristatus.interactions.non_annotated_project_loader_interaction.non_annotated_project_loader_interaction import interact from pavo_cristatus.interactions.pavo_cristatus_status import PavoCristatusStatus unit_test_path = os.path.split(__file__)[0] project_root_path = os.path.normpath(os.path.join(u...
46.133333
130
0.812139
7ab5d3886e481d9fd30cc1cfa29570356f13d910
945
py
Python
book_env/Lib/site-packages/pandas_datareader/tests/test_base.py
als0052/Hands-On-Data-Analysis-with-Pandas
ea4e94f93a1e00cbccb493f22dde5c8007ed5e76
[ "MIT" ]
1
2018-01-11T14:11:40.000Z
2018-01-11T14:11:40.000Z
book_env/Lib/site-packages/pandas_datareader/tests/test_base.py
als0052/Hands-On-Data-Analysis-with-Pandas
ea4e94f93a1e00cbccb493f22dde5c8007ed5e76
[ "MIT" ]
12
2020-06-06T01:22:26.000Z
2022-03-12T00:13:42.000Z
book_env/Lib/site-packages/pandas_datareader/tests/test_base.py
als0052/Hands-On-Data-Analysis-with-Pandas
ea4e94f93a1e00cbccb493f22dde5c8007ed5e76
[ "MIT" ]
5
2018-05-19T05:08:51.000Z
2021-04-29T16:03:45.000Z
import pytest import requests import pandas_datareader.base as base
28.636364
54
0.660317
7ab62d959e429878d13e44a7850041a15a64d80c
6,692
py
Python
streamalert/scheduled_queries/config/services.py
Meliairon/streamalert
3b774a59d260b2822cd156e837781bd34f3625f7
[ "Apache-2.0" ]
null
null
null
streamalert/scheduled_queries/config/services.py
Meliairon/streamalert
3b774a59d260b2822cd156e837781bd34f3625f7
[ "Apache-2.0" ]
null
null
null
streamalert/scheduled_queries/config/services.py
Meliairon/streamalert
3b774a59d260b2822cd156e837781bd34f3625f7
[ "Apache-2.0" ]
null
null
null
""" Copyright 2017-present, Airbnb Inc. 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, sof...
33.128713
100
0.745965
7ab674f9cee64f6395f521ac99930ad93c5cdb4a
2,006
py
Python
Lesson_3/List.py
mirdinemris/Python_lesson_2
bf2fce1dbd6ae635d6aa631703b9930b164972b0
[ "MIT" ]
null
null
null
Lesson_3/List.py
mirdinemris/Python_lesson_2
bf2fce1dbd6ae635d6aa631703b9930b164972b0
[ "MIT" ]
1
2020-04-14T14:13:57.000Z
2020-04-14T14:13:57.000Z
Lesson_3/List.py
mirdinemris/Python_lesson_2
bf2fce1dbd6ae635d6aa631703b9930b164972b0
[ "MIT" ]
null
null
null
# - (List) # () list_temp = [] # print(type(list_temp)) list_temp = [1.2, 123, 'Volvo', [1,2,3,]] for el in list_temp: print(el, type(el)) # - list list_str = list('Volvo') print(list_str) # , for i in range(len(list_temp)): print(i, ':', list_temp[i]) for i in range(len(list_temp)):...
25.075
86
0.720837
7ab67c6ce48ef47990e3682f8981f7154e3213d5
2,545
py
Python
Pyhton-303-main/loops.py
meminds/DataScience
4671fab86d50d4fefd88732afed767a0280e3a6b
[ "MIT" ]
null
null
null
Pyhton-303-main/loops.py
meminds/DataScience
4671fab86d50d4fefd88732afed767a0280e3a6b
[ "MIT" ]
null
null
null
Pyhton-303-main/loops.py
meminds/DataScience
4671fab86d50d4fefd88732afed767a0280e3a6b
[ "MIT" ]
null
null
null
# FOR loop student = ["ali","veli","isik","berk"] for i in student: print(i) """returns ali veli isik berk """...
34.391892
96
0.203929
7ab71be8f87ed1d659c3f47a1fed46f77be7dcc7
1,387
py
Python
run.py
ITJoker233/RaspberryPiWebSDK
ae24ec9a84ed34efcccca59055bdf097a42c3409
[ "MIT" ]
4
2020-11-15T05:38:02.000Z
2022-03-07T12:19:37.000Z
run.py
ITJoker233/RaspberryPiWebSDK
ae24ec9a84ed34efcccca59055bdf097a42c3409
[ "MIT" ]
null
null
null
run.py
ITJoker233/RaspberryPiWebSDK
ae24ec9a84ed34efcccca59055bdf097a42c3409
[ "MIT" ]
null
null
null
import uvicorn from datetime import datetime from typing import List, Optional from fastapi import FastAPI from fastapi.encoders import jsonable_encoder from fastapi.responses import JSONResponse from pydantic import BaseModel, EmailStr app = FastAPI() _version_ = '1.0.0' response = { 'root':{'data'...
27.196078
114
0.669791
7ab7bec0f8bfba5a0308d1a7185df4375a786d60
3,387
py
Python
hs_access_control/tests/test_group_public.py
tommac7/hydroshare
87c4543a55f98103d2614bf4c47f7904c3f9c029
[ "BSD-3-Clause" ]
178
2015-01-08T23:03:36.000Z
2022-03-03T13:56:45.000Z
hs_access_control/tests/test_group_public.py
tommac7/hydroshare
87c4543a55f98103d2614bf4c47f7904c3f9c029
[ "BSD-3-Clause" ]
4,125
2015-01-01T14:26:15.000Z
2022-03-31T16:38:55.000Z
hs_access_control/tests/test_group_public.py
tommac7/hydroshare
87c4543a55f98103d2614bf4c47f7904c3f9c029
[ "BSD-3-Clause" ]
53
2015-03-15T17:56:51.000Z
2022-03-17T00:32:16.000Z
from django.test import TestCase from django.contrib.auth.models import Group from hs_access_control.models import PrivilegeCodes from hs_core import hydroshare from hs_core.testing import MockIRODSTestCaseMixin from hs_access_control.tests.utilities import global_reset, is_equal_to_as_set
39.383721
89
0.631532
7ab8a9c5276a11c96afe25603d9046739df569e8
605
py
Python
python/show_spec.py
nox-410/MusicAndMathClassProject
457e800b05dcf1595f97e359f75d14bf1fcc35d4
[ "Apache-2.0" ]
null
null
null
python/show_spec.py
nox-410/MusicAndMathClassProject
457e800b05dcf1595f97e359f75d14bf1fcc35d4
[ "Apache-2.0" ]
null
null
null
python/show_spec.py
nox-410/MusicAndMathClassProject
457e800b05dcf1595f97e359f75d14bf1fcc35d4
[ "Apache-2.0" ]
null
null
null
import sys import numpy as np from PIL import Image if __name__ == '__main__': spec_to_png(sys.argv[1], sys.argv[2])
28.809524
59
0.672727
7ab956a815b0bc9b3b82b8a3c52b0520c009dc57
610
py
Python
server/src/weaverbird/backends/pandas_executor/steps/unpivot.py
JeremyJacquemont/weaverbird
e04ab6f9c8381986ab71078e5199ece7a875e743
[ "BSD-3-Clause" ]
54
2019-11-20T15:07:39.000Z
2022-03-24T22:13:51.000Z
server/src/weaverbird/backends/pandas_executor/steps/unpivot.py
JeremyJacquemont/weaverbird
e04ab6f9c8381986ab71078e5199ece7a875e743
[ "BSD-3-Clause" ]
786
2019-10-20T11:48:37.000Z
2022-03-23T08:58:18.000Z
server/src/weaverbird/backends/pandas_executor/steps/unpivot.py
JeremyJacquemont/weaverbird
e04ab6f9c8381986ab71078e5199ece7a875e743
[ "BSD-3-Clause" ]
10
2019-11-21T10:16:16.000Z
2022-03-21T10:34:06.000Z
from pandas import DataFrame from weaverbird.backends.pandas_executor.types import DomainRetriever, PipelineExecutor from weaverbird.pipeline.steps import UnpivotStep
30.5
90
0.75082
7abaea9847e955cb5a546f8665d8382cf96f1721
1,610
py
Python
dwitter/feed/urls.py
yonatan/dwitter
b3f6cabc41388afd8ca391591212c66e72c2c5bb
[ "Apache-2.0" ]
null
null
null
dwitter/feed/urls.py
yonatan/dwitter
b3f6cabc41388afd8ca391591212c66e72c2c5bb
[ "Apache-2.0" ]
null
null
null
dwitter/feed/urls.py
yonatan/dwitter
b3f6cabc41388afd8ca391591212c66e72c2c5bb
[ "Apache-2.0" ]
2
2019-10-10T00:52:11.000Z
2021-01-19T19:58:04.000Z
from django.conf.urls import url from . import views from .views import HotDweetFeed, NewDweetFeed, RandomDweetFeed from .views import TopWeekDweetFeed, TopMonthDweetFeed, TopYearDweetFeed, TopAllDweetFeed from .views import NewHashtagFeed, TopHashtagFeed urlpatterns = [ url(r'^test/', HotDweetFeed.as_view()), ...
40.25
97
0.659627
7abe28c365aac27b7165b4ab17f3803fad4552ae
7,075
py
Python
EDA_T-20WorldCup.py
Saurabh2509/T-20_World_Cup_EDA
39c236b97f48155a535b0b0c7730eb70d020c261
[ "MIT" ]
null
null
null
EDA_T-20WorldCup.py
Saurabh2509/T-20_World_Cup_EDA
39c236b97f48155a535b0b0c7730eb70d020c261
[ "MIT" ]
null
null
null
EDA_T-20WorldCup.py
Saurabh2509/T-20_World_Cup_EDA
39c236b97f48155a535b0b0c7730eb70d020c261
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # ## Exploratory_Data_Analysis # In[4]: Image("E:\DataScience\Data_Center\T_20_World_cup_data\ICC_Men's_T20_World_Cup_2021.png") # In[1]: pwd # In[2]: import os import matplotlib.pyplot as plt import seaborn as sns sns.set_style('darkgrid') import plotly.express as px ...
14.15
141
0.642686
7abf0dedd7528e5e8c658c425a2c635f12f405fd
874
py
Python
flask-api/api/models/rating.py
reciprep/reciprep-dev
73c9e7084c7797ed7ce51c624f527c52ee3a5d87
[ "MIT" ]
null
null
null
flask-api/api/models/rating.py
reciprep/reciprep-dev
73c9e7084c7797ed7ce51c624f527c52ee3a5d87
[ "MIT" ]
5
2017-03-07T23:20:30.000Z
2017-03-07T23:22:10.000Z
flask-api/api/models/rating.py
reciprep/reciprep-server
73c9e7084c7797ed7ce51c624f527c52ee3a5d87
[ "MIT" ]
null
null
null
import uuid from sqlalchemy.ext.associationproxy import association_proxy from sqlalchemy.dialects.postgresql import UUID from sqlalchemy.dialects.postgresql import ARRAY from api import app, db, bcrypt from api.models.user import User from api.models.recipe import Recipe
33.615385
90
0.729977
7abf302d77b8306fe6c03216dc740599f58eee4e
4,776
py
Python
CH14/RBM_01.py
PacktPublishing/Artificial-Intelligence-By-Example-Second-Edition
610682976a65dc75d9f2316776a83beb186b7870
[ "MIT" ]
33
2019-09-30T17:37:49.000Z
2022-02-21T00:53:14.000Z
CH14/RBM_01.py
PacktPublishing/Artificial-Intelligence-By-Example-Second-Edition
610682976a65dc75d9f2316776a83beb186b7870
[ "MIT" ]
null
null
null
CH14/RBM_01.py
PacktPublishing/Artificial-Intelligence-By-Example-Second-Edition
610682976a65dc75d9f2316776a83beb186b7870
[ "MIT" ]
26
2019-08-15T21:30:04.000Z
2022-02-26T22:21:00.000Z
#Cognitive NPL (Natural Language Processing) #Copyright 2020 Denis Rothman MIT License. READ LICENSE. #Personality Profiling with a Restricted Botzmannm Machine (RBM) import numpy as np from random import randint if __name__ == '__main__': r = RBM(num_visible = 6, num_hidden = 2) training_data = np.array...
45.056604
189
0.637772
7ac27734e010014816c427be9ac60c65e722250c
18,980
py
Python
clrs/_src/baselines.py
fpjnijweide/clrs
452964b491f38501e1e42edc216b606d83ffd780
[ "Apache-2.0" ]
1
2022-03-24T16:21:56.000Z
2022-03-24T16:21:56.000Z
clrs/_src/baselines.py
fpjnijweide/clrs
452964b491f38501e1e42edc216b606d83ffd780
[ "Apache-2.0" ]
null
null
null
clrs/_src/baselines.py
fpjnijweide/clrs
452964b491f38501e1e42edc216b606d83ffd780
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 DeepMind Technologies Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
36.998051
80
0.66844
8f81f4cfe87bac50670acf3a61610147f3e9fb75
341
py
Python
eisenmann-backend/product/views/product_entry_view.py
RubenRodrigo/Eisenmann-Inventory
5abb59a11d43987db3d1742b6f0978c6aa6ee81d
[ "MIT" ]
null
null
null
eisenmann-backend/product/views/product_entry_view.py
RubenRodrigo/Eisenmann-Inventory
5abb59a11d43987db3d1742b6f0978c6aa6ee81d
[ "MIT" ]
null
null
null
eisenmann-backend/product/views/product_entry_view.py
RubenRodrigo/Eisenmann-Inventory
5abb59a11d43987db3d1742b6f0978c6aa6ee81d
[ "MIT" ]
null
null
null
# DRF from rest_framework import viewsets # Models from product.models.product_entry import ProductEntry # Serializers from product.serializers.product_entry_serializer import ProductEntrySerializer
24.357143
79
0.83871
8f825abc4f12e51fe3d60358fb12202956f9cf02
11,531
py
Python
app/views.py
fisle/netflask
155f131c87574cadbd96a33e9fde8e5116aa44c1
[ "WTFPL" ]
17
2015-06-18T04:55:54.000Z
2021-07-26T04:43:45.000Z
app/views.py
fisle/netflask
155f131c87574cadbd96a33e9fde8e5116aa44c1
[ "WTFPL" ]
null
null
null
app/views.py
fisle/netflask
155f131c87574cadbd96a33e9fde8e5116aa44c1
[ "WTFPL" ]
7
2015-11-16T23:52:18.000Z
2019-09-15T17:40:23.000Z
# -*- coding: utf-8 -*- from flask import render_template, flash, redirect, url_for, session, request, g, send_from_directory, send_file, Response, abort, safe_join, make_response from flask.ext.login import login_user, logout_user, current_user, login_required from sqlalchemy import exc from app import app, db, lm fro...
35.69969
155
0.612523
8f830bdf8ea6b9fb08df352f98d824cf4af0553d
9,837
py
Python
tests/test_pep585_integration.py
loyada/typed-py
8f946ed0cddb38bf7fd463a4c8111a592ccae31a
[ "MIT" ]
14
2018-02-14T13:28:47.000Z
2022-02-12T08:03:21.000Z
tests/test_pep585_integration.py
loyada/typed-py
8f946ed0cddb38bf7fd463a4c8111a592ccae31a
[ "MIT" ]
142
2017-11-22T14:02:33.000Z
2022-03-23T21:26:29.000Z
tests/test_pep585_integration.py
loyada/typed-py
8f946ed0cddb38bf7fd463a4c8111a592ccae31a
[ "MIT" ]
4
2017-12-14T16:46:45.000Z
2021-12-15T16:33:31.000Z
import typing import sys from typing import List from pytest import raises, mark from typedpy import ( Array, Deserializer, Integer, SerializableField, Serializer, String, Structure, )
31.228571
88
0.610959
8f859e0dedf02e5bcbd6a37e5ecd8ed71a06265a
8,682
py
Python
src/ortec/scientific/benchmarks/loadbuilding/common/Requirements.py
ORTECScientificBenchmarks/ortec-scientific-benchmarks-loadbuilding
8b1f5c58d930448a29195355d28fda856f4705b2
[ "MIT" ]
4
2018-05-23T22:48:42.000Z
2020-04-21T10:21:30.000Z
src/ortec/scientific/benchmarks/loadbuilding/common/Requirements.py
ORTECScientificBenchmarks/ortec-scientific-benchmarks-loadbuilding
8b1f5c58d930448a29195355d28fda856f4705b2
[ "MIT" ]
null
null
null
src/ortec/scientific/benchmarks/loadbuilding/common/Requirements.py
ORTECScientificBenchmarks/ortec-scientific-benchmarks-loadbuilding
8b1f5c58d930448a29195355d28fda856f4705b2
[ "MIT" ]
null
null
null
from .utils import flatten import pkgutil import os import importlib # Used for checking whether all defaults match for all fields in the Constraints and Objectives files itemkindDefaults = dict() boxkindDefaults = dict() palletkindDefaults = dict() containerkindDefaults = dict() loadingspaceDe...
43.41
191
0.605045
8f8682388b990eefc83c6cd9ade9d11a4829e808
129
py
Python
visualize/example/__init__.py
rentainhe/visualization
d9a8aac82ac6049b3fd59754c6ccf3bd60206218
[ "MIT" ]
169
2021-03-14T13:35:07.000Z
2022-03-29T12:21:18.000Z
visualize/example/__init__.py
liwanzhao/visualization
0cd047a02957019f9b551f016db21b5117e1cfcd
[ "MIT" ]
6
2021-09-29T08:15:53.000Z
2022-03-13T10:08:29.000Z
visualize/example/__init__.py
liwanzhao/visualization
0cd047a02957019f9b551f016db21b5117e1cfcd
[ "MIT" ]
31
2021-03-14T13:35:11.000Z
2022-03-25T11:10:45.000Z
from .grid_attention_example import run_grid_attention_example from .region_attention_example import run_region_attention_example
64.5
66
0.930233