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
fb097754f4efecf6545051b20dad8dee8adaa09e
1,136
py
Python
cyto/basic/_dict.py
sbtinstruments/cyto
f452562e5e9ae9d2516cd92958af6e6a2c985dcc
[ "MIT" ]
5
2021-04-03T04:09:38.000Z
2021-12-17T15:05:18.000Z
cyto/basic/_dict.py
sbtinstruments/cyto
f452562e5e9ae9d2516cd92958af6e6a2c985dcc
[ "MIT" ]
1
2021-04-21T17:00:29.000Z
2021-04-21T19:12:30.000Z
cyto/basic/_dict.py
sbtinstruments/cyto
f452562e5e9ae9d2516cd92958af6e6a2c985dcc
[ "MIT" ]
null
null
null
from typing import Any, Dict def deep_update(dest: Dict[Any, Any], other: Dict[Any, Any]) -> None: """Update `dest` with the key/value pairs from `other`. Returns `None`. Note that we modify `dest` in place. Unlike the built-in `dict.Update`, `deep_update` recurses into sub-dictionaries. This effect...
39.172414
84
0.634683
fb0b0d61a04227b98b766bf05a1daba731f1fb99
2,312
py
Python
api_logic_server_cli/create_from_model/ui_basic_web_app_run.py
valhuber/ApiLogicServer
a4acd8d886a18d4d500e0fffffcaa2f1c0765040
[ "BSD-3-Clause" ]
71
2021-01-23T17:34:33.000Z
2022-03-29T13:11:29.000Z
api_logic_server_cli/create_from_model/ui_basic_web_app_run.py
valhuber/ApiLogicServer
a4acd8d886a18d4d500e0fffffcaa2f1c0765040
[ "BSD-3-Clause" ]
38
2021-01-24T21:56:30.000Z
2022-03-08T18:49:00.000Z
api_logic_server_cli/create_from_model/ui_basic_web_app_run.py
valhuber/ApiLogicServer
a4acd8d886a18d4d500e0fffffcaa2f1c0765040
[ "BSD-3-Clause" ]
14
2021-01-23T16:20:44.000Z
2022-03-24T10:48:28.000Z
# runs ApiLogicServer basic web app: # python ui/basic_web_app/run.py # Export PYTHONPATH, to enable python ui/basic_web_app/run.py import os, sys, logging from pathlib import Path logger = logging.getLogger() current_path = Path(os.path.abspath(os.path.dirname(__file__))) current_path = current_path.parent.absolute...
36.125
105
0.733131
fb0b24730ac65daad4c5e515482703fc512b4066
300
py
Python
output/models/nist_data/list_pkg/non_positive_integer/schema_instance/nistschema_sv_iv_list_non_positive_integer_length_1_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/list_pkg/non_positive_integer/schema_instance/nistschema_sv_iv_list_non_positive_integer_length_1_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/list_pkg/non_positive_integer/schema_instance/nistschema_sv_iv_list_non_positive_integer_length_1_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.nist_data.list_pkg.non_positive_integer.schema_instance.nistschema_sv_iv_list_non_positive_integer_length_1_xsd.nistschema_sv_iv_list_non_positive_integer_length_1 import NistschemaSvIvListNonPositiveIntegerLength1 __all__ = [ "NistschemaSvIvListNonPositiveIntegerLength1", ]
50
233
0.91
fb0c48302e90f96e57473fb786d4ea50f4be0f46
190
py
Python
cbot/__init__.py
wangyitao/cbot
6b2500f5118ddd5ef581f31104e70e5a57b72f7d
[ "MIT" ]
8
2018-10-18T09:15:36.000Z
2019-09-01T04:42:59.000Z
cbot/__init__.py
wangyitao/cbot
6b2500f5118ddd5ef581f31104e70e5a57b72f7d
[ "MIT" ]
1
2018-10-19T06:35:38.000Z
2018-10-19T06:35:38.000Z
cbot/__init__.py
wangyitao/cbot
6b2500f5118ddd5ef581f31104e70e5a57b72f7d
[ "MIT" ]
5
2018-10-19T05:56:26.000Z
2019-09-01T04:43:11.000Z
from .main import CBot __version__ = '0.1.0' __author__ = 'Felix Wang' __email__ = 'felix2@foxmail.com' __url__ = 'https://github.com/wangyitao/cbot' __all__ = ( 'CBot', )
15.833333
46
0.636842
fb0e6ce0d08d8c7d2254af54405bab1d2071c99d
4,219
py
Python
elastic_inference/apps/infer_service.py
qzheng527/cloud-native-demos
e2dbcfc0d90c1972bc34a35f5d85f83f2b2b6cf6
[ "Apache-2.0" ]
1
2020-04-06T10:11:27.000Z
2020-04-06T10:11:27.000Z
elastic_inference/apps/infer_service.py
qzheng527/cloud-native-demos
e2dbcfc0d90c1972bc34a35f5d85f83f2b2b6cf6
[ "Apache-2.0" ]
null
null
null
elastic_inference/apps/infer_service.py
qzheng527/cloud-native-demos
e2dbcfc0d90c1972bc34a35f5d85f83f2b2b6cf6
[ "Apache-2.0" ]
2
2021-01-19T21:42:08.000Z
2021-08-13T19:59:06.000Z
#!/usr/bin/python3 """ Infer service. It pick up single frame from frame queue and do inference. The result will be published to stream broker like below. +---------------------+ +---------------+ +-----------------------+ | Frame Queue (redis) | => | Infer Service | => | Stream broker (redis) | +--------...
35.158333
99
0.599194
fb0ed9b104a5cd8f1fa264f1f6318ff1bd1ed415
288
py
Python
P25010-Guangzhou-Jiachengwu/week07/ex_filecopy.py
xiaohh2016/python-25
8981ba89bfb32754c3f9c881ee8fcaf13332ce51
[ "Apache-2.0" ]
1
2019-09-11T23:24:58.000Z
2019-09-11T23:24:58.000Z
P25010-Guangzhou-Jiachengwu/week07/ex_filecopy.py
xiaohh2016/python-25
8981ba89bfb32754c3f9c881ee8fcaf13332ce51
[ "Apache-2.0" ]
null
null
null
P25010-Guangzhou-Jiachengwu/week07/ex_filecopy.py
xiaohh2016/python-25
8981ba89bfb32754c3f9c881ee8fcaf13332ce51
[ "Apache-2.0" ]
5
2019-09-11T06:33:34.000Z
2020-02-17T12:52:31.000Z
# Python copya,copyb import os from pathlib import Path import shutil src_path=Path('a/test') dst_path=Path('b/test') with open(src_path,'w') as src_file: src_file.write('abcd\n1234') shutil.copy(src_path,dst_path) print(os.stat(src_path)) print(os.stat(dst_path))
18
36
0.756944
fb0fe20410b5c56d7291f72bd22a841605532524
548
py
Python
vanirio/module/interface/textfield.py
vaniriovanhalteren/sdk-python
947b08fbe046d46275bf39bc95984fbf3edc0e6c
[ "MIT" ]
null
null
null
vanirio/module/interface/textfield.py
vaniriovanhalteren/sdk-python
947b08fbe046d46275bf39bc95984fbf3edc0e6c
[ "MIT" ]
null
null
null
vanirio/module/interface/textfield.py
vaniriovanhalteren/sdk-python
947b08fbe046d46275bf39bc95984fbf3edc0e6c
[ "MIT" ]
1
2022-02-08T08:15:07.000Z
2022-02-08T08:15:07.000Z
from vanirio.module.interface.base import Base
24.909091
70
0.600365
fb1042dc49fa8be20e43a1d8892da1c69f7bf202
2,348
py
Python
utils.py
lanyinemt2/ST-PlusPlus
7c31abfcf21e390a06c4d5da1f77a9fe5ff071ed
[ "MIT" ]
73
2021-06-10T01:12:04.000Z
2022-03-30T08:31:24.000Z
utils.py
lanyinemt2/ST-PlusPlus
7c31abfcf21e390a06c4d5da1f77a9fe5ff071ed
[ "MIT" ]
12
2021-07-01T00:27:11.000Z
2022-03-17T05:09:49.000Z
utils.py
lanyinemt2/ST-PlusPlus
7c31abfcf21e390a06c4d5da1f77a9fe5ff071ed
[ "MIT" ]
18
2021-06-10T11:24:31.000Z
2022-03-31T16:48:58.000Z
import numpy as np from PIL import Image
33.070423
106
0.520017
fb107ee4532ec8cc33a8bdd76e5d3973b9f4d818
3,671
py
Python
lib/bus/client.py
hoffmannmatheus/eaZy
d79ade0e01a23f1c6fa585ee378ed70c95976b05
[ "MIT", "Unlicense" ]
3
2015-01-11T15:29:48.000Z
2020-09-08T14:52:14.000Z
lib/bus/client.py
hoffmannmatheus/eaZy
d79ade0e01a23f1c6fa585ee378ed70c95976b05
[ "MIT", "Unlicense" ]
null
null
null
lib/bus/client.py
hoffmannmatheus/eaZy
d79ade0e01a23f1c6fa585ee378ed70c95976b05
[ "MIT", "Unlicense" ]
null
null
null
import zmq import json """ Class used by the Client entity to communicate to the Server. The communication channel should be configured using the three ports: - com_port: Used to receive broadcast messages from the Server entity. - set_port: Used to send messages/request data to the Server entity. - res_port: Used t...
35.990196
79
0.625443
fb12ef0139d2387d5de8cd18fde96987527d5c7f
2,821
py
Python
ops.py
fivoskal/MGAN
2eb1407c907af5f472a80e8ae363bee57d5cfaa4
[ "MIT" ]
37
2018-03-07T15:32:09.000Z
2022-03-01T06:54:06.000Z
ops.py
fivoskal/MGAN
2eb1407c907af5f472a80e8ae363bee57d5cfaa4
[ "MIT" ]
2
2018-09-19T23:20:07.000Z
2019-06-15T13:45:54.000Z
ops.py
fivoskal/MGAN
2eb1407c907af5f472a80e8ae363bee57d5cfaa4
[ "MIT" ]
18
2018-05-23T11:09:34.000Z
2022-03-22T08:38:13.000Z
from __future__ import division from __future__ import print_function from __future__ import absolute_import import numpy as np import tensorflow as tf
39.732394
98
0.611485
fb176c1fa7c1a70a322d3da71abe867bb4b0b96a
2,431
py
Python
spacy/tests/regression/test_issue999.py
cmgreivel/spaCy
a31506e06060c559abfeda043503935691af2e98
[ "MIT" ]
88
2018-05-06T17:28:23.000Z
2022-03-06T20:19:16.000Z
spacy/tests/regression/test_issue999.py
cmgreivel/spaCy
a31506e06060c559abfeda043503935691af2e98
[ "MIT" ]
12
2018-07-19T15:11:57.000Z
2021-08-05T11:58:29.000Z
spacy/tests/regression/test_issue999.py
cmgreivel/spaCy
a31506e06060c559abfeda043503935691af2e98
[ "MIT" ]
10
2018-07-28T22:43:04.000Z
2020-11-22T22:58:21.000Z
from __future__ import unicode_literals import os import random import contextlib import shutil import pytest import tempfile from pathlib import Path import pathlib from ...gold import GoldParse from ...pipeline import EntityRecognizer from ...language import Language try: unicode except NameError: unicode ...
29.646341
88
0.633073
fb19896662026b64b3faf3ab0b1d3c77cfab5f56
323
py
Python
mavisetc/__init__.py
jtmendel/mavisetc
4cd6800a7c4462f9a8063060c41e19719d35c5ee
[ "MIT" ]
null
null
null
mavisetc/__init__.py
jtmendel/mavisetc
4cd6800a7c4462f9a8063060c41e19719d35c5ee
[ "MIT" ]
null
null
null
mavisetc/__init__.py
jtmendel/mavisetc
4cd6800a7c4462f9a8063060c41e19719d35c5ee
[ "MIT" ]
null
null
null
try: from ._version import __version__ except(ImportError): pass from . import instruments from . import sources from . import sky from . import utils from . import telescopes from . import detectors from . import filters __all__ = ['instruments', 'sources', 'sky', 'utils', 'telescopes', 'detectors', 'filters...
21.533333
90
0.724458
fb1a14af54cb6584a01ac6a47d46cd0d5260f471
293
py
Python
tests/test_lqr_speed_steer_control.py
pruidzeko/PythonRobotics
5ff9b70d737121c2947d844ecfb1fa07abdd210c
[ "MIT" ]
38
2019-12-08T12:26:04.000Z
2022-03-06T11:29:08.000Z
tests/test_lqr_speed_steer_control.py
pruidzeko/PythonRobotics
5ff9b70d737121c2947d844ecfb1fa07abdd210c
[ "MIT" ]
61
2020-08-17T20:02:09.000Z
2022-03-14T20:01:01.000Z
tests/test_lqr_speed_steer_control.py
pruidzeko/PythonRobotics
5ff9b70d737121c2947d844ecfb1fa07abdd210c
[ "MIT" ]
15
2020-02-12T15:57:28.000Z
2021-08-28T07:39:18.000Z
from unittest import TestCase import sys sys.path.append("./PathTracking/lqr_speed_steer_control/") from PathTracking.lqr_speed_steer_control import lqr_speed_steer_control as m print(__file__)
18.3125
77
0.754266
fb1aa25d697063ac5234b37a20af2edde89cf7c2
825
py
Python
2 - python intermediario/63 - iteraveis/64 - comportamento iteradores e geradores.py
AdrianaViabL/Curso-Python-udemy
a4f230354985d0f6026a1e7b4913a8f64e205654
[ "Apache-2.0" ]
null
null
null
2 - python intermediario/63 - iteraveis/64 - comportamento iteradores e geradores.py
AdrianaViabL/Curso-Python-udemy
a4f230354985d0f6026a1e7b4913a8f64e205654
[ "Apache-2.0" ]
null
null
null
2 - python intermediario/63 - iteraveis/64 - comportamento iteradores e geradores.py
AdrianaViabL/Curso-Python-udemy
a4f230354985d0f6026a1e7b4913a8f64e205654
[ "Apache-2.0" ]
null
null
null
#lists, tuplas, strings -> sequencias -> iteraveis nome = 'nome qualquer' print('comportamento esperado de um valor iteravel') print('o valor vai sempre estar la para ser exibido novamente') for l in nome: print(l) print(nome) print(10 * '=====') iterador = iter(nome) try: # quando mostrado x valor de um itera...
21.153846
86
0.676364
fb1af2b6ba7c64773e3eb0f188fe914ea2ee6f01
1,002
py
Python
src/server/api/API_ingest/dropbox_handler.py
carlos-dominguez/paws-data-pipeline
5c224e1f259c079631df7d3514a873875c633221
[ "MIT" ]
27
2019-11-20T20:20:30.000Z
2022-01-31T17:24:55.000Z
src/server/api/API_ingest/dropbox_handler.py
mrcrnkovich/paws-data-pipeline
7c0bd4c5f23276f541611cb564f2f5abbb6b9887
[ "MIT" ]
348
2019-11-26T20:34:02.000Z
2022-02-27T20:28:20.000Z
src/server/api/API_ingest/dropbox_handler.py
mrcrnkovich/paws-data-pipeline
7c0bd4c5f23276f541611cb564f2f5abbb6b9887
[ "MIT" ]
20
2019-12-03T23:50:33.000Z
2022-02-09T18:38:25.000Z
import dropbox try: from secrets_dict import DROPBOX_APP except ImportError: # Not running locally print("Couldn't get DROPBOX_APP from file, trying environment **********") from os import environ try: DROPBOX_APP = environ['DROPBOX_APP'] except KeyError: # Not in environment ...
27.833333
89
0.691617
fb1b088b1122df174835b7dea6617c979527dde6
32,165
py
Python
tests/card_tests/druid_tests.py
anuragpapineni/Hearthbreaker-evolved-agent
d519d42babd93e3567000c33a381e93db065301c
[ "MIT" ]
null
null
null
tests/card_tests/druid_tests.py
anuragpapineni/Hearthbreaker-evolved-agent
d519d42babd93e3567000c33a381e93db065301c
[ "MIT" ]
null
null
null
tests/card_tests/druid_tests.py
anuragpapineni/Hearthbreaker-evolved-agent
d519d42babd93e3567000c33a381e93db065301c
[ "MIT" ]
null
null
null
import random import unittest from hearthbreaker.agents.basic_agents import DoNothingBot from tests.agents.testing_agents import SelfSpellTestingAgent, EnemySpellTestingAgent, MinionPlayingAgent, \ EnemyMinionSpellTestingAgent, SpellTestingAgent from hearthbreaker.constants import CHARACTER_CLASS from hearthbreake...
40.818528
120
0.684626
fb1c201f8580630fba487344ba7ea5b8003a9260
111
py
Python
projectdjangoportfolio/jobs/admin.py
DevLuDaley/Portfolio
c7215a3b1e5337f9bbb2863bba598b3064ef69e5
[ "MIT" ]
null
null
null
projectdjangoportfolio/jobs/admin.py
DevLuDaley/Portfolio
c7215a3b1e5337f9bbb2863bba598b3064ef69e5
[ "MIT" ]
null
null
null
projectdjangoportfolio/jobs/admin.py
DevLuDaley/Portfolio
c7215a3b1e5337f9bbb2863bba598b3064ef69e5
[ "MIT" ]
null
null
null
from django.contrib import admin from.models import Job admin.site.register(Job) # Register your models here.
18.5
32
0.801802
fb1c95abaf459d4750608d1b3b3b8a20f69d8f30
504
py
Python
KNN/sklearn API.py
wu-huipeng/-
84f681f7488e45c5f357f558defbc27aaf285a16
[ "Apache-2.0" ]
7
2019-09-09T08:55:41.000Z
2020-02-08T13:24:59.000Z
KNN/sklearn API.py
wu-huipeng/machine-learning
84f681f7488e45c5f357f558defbc27aaf285a16
[ "Apache-2.0" ]
null
null
null
KNN/sklearn API.py
wu-huipeng/machine-learning
84f681f7488e45c5f357f558defbc27aaf285a16
[ "Apache-2.0" ]
null
null
null
from sklearn.neighbors import KNeighborsClassifier from sklearn.datasets import make_classification from sklearn.model_selection import train_test_split x , y = make_classification(n_samples=1000,n_features=40,random_state=42) # x_train, x_test ,y_train ,y_test = train_test_split(x,y,random_state=42) # knn =...
22.909091
81
0.759921
fb1d2be116c21e769b849455662ea6590e0d2c00
484
py
Python
egg/resources/__init__.py
eanorambuena/Driver
3cb14f5d741c6bae364326305ae0ded04e10e9d4
[ "MIT" ]
null
null
null
egg/resources/__init__.py
eanorambuena/Driver
3cb14f5d741c6bae364326305ae0ded04e10e9d4
[ "MIT" ]
null
null
null
egg/resources/__init__.py
eanorambuena/Driver
3cb14f5d741c6bae364326305ae0ded04e10e9d4
[ "MIT" ]
null
null
null
from egg.resources.console import * from egg.resources.server import * from egg.resources.structures import * from egg.resources.auth import * from egg.resources.constants import * from egg.resources.extensions import * from egg.resources.help import * from egg.resources.modules import * from egg.resources.parser impor...
32.266667
38
0.805785
fb1f5f0f7eda29bb259446b27b1eadc2e86cdafe
174
py
Python
eln/commands/news/templates/articles.py
lehvitus/eln
b78362af20cacffe076bf3dbfd27dcc090e43e39
[ "BSD-3-Clause" ]
2
2020-02-05T04:00:32.000Z
2020-03-18T02:12:33.000Z
eln/commands/news/templates/articles.py
oleoneto/eln
b78362af20cacffe076bf3dbfd27dcc090e43e39
[ "BSD-3-Clause" ]
1
2020-03-18T02:36:04.000Z
2020-03-18T02:36:04.000Z
eln/commands/news/templates/articles.py
oleoneto/eln
b78362af20cacffe076bf3dbfd27dcc090e43e39
[ "BSD-3-Clause" ]
null
null
null
from jinja2 import Template articles_template = Template("""{{ index }}. {{ title }} \tAuthor: {{ author }} \tPublished on: {{ publication_date }} \tSource: {{ url }} """)
19.333333
56
0.632184
fb21c669f057d7c99ae18966e97b4d0e1e081af7
255
py
Python
statistical_clear_sky/algorithm/exception.py
elsirdavid/StatisticalClearSky
bc3aa9de56a9347c10e2afe23af486d32d476273
[ "BSD-2-Clause" ]
16
2019-05-09T14:17:22.000Z
2022-02-23T18:41:13.000Z
statistical_clear_sky/algorithm/exception.py
elsirdavid/StatisticalClearSky
bc3aa9de56a9347c10e2afe23af486d32d476273
[ "BSD-2-Clause" ]
7
2019-07-09T18:32:29.000Z
2021-07-01T22:28:32.000Z
statistical_clear_sky/algorithm/exception.py
tadatoshi/StatisticalClearSky
40a7354f8e8b65c8008a56c655dddff700031558
[ "BSD-2-Clause" ]
4
2019-12-20T19:15:09.000Z
2021-04-29T17:40:40.000Z
""" Defines exceptions used in the context of this module "algorithm" """
28.333333
72
0.741176
fb223c6e71ca1dc86e9314d86210a866c21d9362
220
py
Python
cauldronBase/Base.py
Razikus/cauldron
cc6e87cb4283efe00ad7e06c98d05e8571883447
[ "MIT" ]
null
null
null
cauldronBase/Base.py
Razikus/cauldron
cc6e87cb4283efe00ad7e06c98d05e8571883447
[ "MIT" ]
null
null
null
cauldronBase/Base.py
Razikus/cauldron
cc6e87cb4283efe00ad7e06c98d05e8571883447
[ "MIT" ]
null
null
null
from sqlalchemy.ext.declarative import declarative_base from flask import Flask from flask import jsonify from flask_marshmallow import Marshmallow Base = declarative_base() app = Flask(__name__) ma = Marshmallow(app)
22
55
0.827273
fb2248e40d3ed11337557c6e7ae9b71e63c167b4
3,622
py
Python
BP.py
WolfMy/predict_stock
7af33404875d19ea93328b8f220d3bd2c0f6d2e5
[ "MIT" ]
1
2021-09-28T02:02:05.000Z
2021-09-28T02:02:05.000Z
BP.py
WolfMy/predict_stock
7af33404875d19ea93328b8f220d3bd2c0f6d2e5
[ "MIT" ]
null
null
null
BP.py
WolfMy/predict_stock
7af33404875d19ea93328b8f220d3bd2c0f6d2e5
[ "MIT" ]
1
2020-10-13T12:13:43.000Z
2020-10-13T12:13:43.000Z
import tensorflow as tf import numpy as np import pandas as pd from MACD_RSI import init_train_data start_date = '2018-11-20' end_date = '2019-03-01' stock_list = ['603000', '002230', '300492', '601688'] df = pd.DataFrame(stock_list, columns=['stock']) train_acc = [] for stock in stock_list: data, label = init_tra...
48.293333
134
0.655163
fb2280120f9263888a0811988826a4305d6b98aa
3,525
py
Python
bananas/transformers/running_stats.py
owahltinez/bananas
4d37af1713b7f166ead3459a7004748f954d336e
[ "MIT" ]
null
null
null
bananas/transformers/running_stats.py
owahltinez/bananas
4d37af1713b7f166ead3459a7004748f954d336e
[ "MIT" ]
null
null
null
bananas/transformers/running_stats.py
owahltinez/bananas
4d37af1713b7f166ead3459a7004748f954d336e
[ "MIT" ]
null
null
null
""" Threshold-based transformers """ from typing import Dict, Iterable, Union from ..changemap.changemap import ChangeMap from ..utils.arrays import flatten, shape_of_array from .base import ColumnHandlingTransformer
36.340206
102
0.588652
fb22dc5bf5bd9013f1aaf4889e65a75279b6e791
197
py
Python
1-beginner/1013.py
alenvieira/uri-online-judge-solutions
ca5ae7064d84af4dae12fc37d4d14ee441e49d06
[ "MIT" ]
null
null
null
1-beginner/1013.py
alenvieira/uri-online-judge-solutions
ca5ae7064d84af4dae12fc37d4d14ee441e49d06
[ "MIT" ]
null
null
null
1-beginner/1013.py
alenvieira/uri-online-judge-solutions
ca5ae7064d84af4dae12fc37d4d14ee441e49d06
[ "MIT" ]
null
null
null
line = input() (a, b, c) = [int(i) for i in line.split(' ')] greatest1 = (a + b + abs(a - b)) / 2 greatest2 = int((greatest1 + c + abs(greatest1 - c)) / 2) print('{} eh o maior'.format(greatest2))
32.833333
57
0.568528
fb24589362ad5872b751372ecb28f328c4ec3892
1,907
py
Python
utils.py
psergal/quiz
9420db013a4ca0662471f716ed5fc1f9cfb2502a
[ "MIT" ]
null
null
null
utils.py
psergal/quiz
9420db013a4ca0662471f716ed5fc1f9cfb2502a
[ "MIT" ]
null
null
null
utils.py
psergal/quiz
9420db013a4ca0662471f716ed5fc1f9cfb2502a
[ "MIT" ]
null
null
null
import argparse from pathlib import Path import random
44.348837
114
0.624541
fb2468353432def77628e6adb7da27b64ec4c1b6
2,684
py
Python
text-editor.py
Shubham05178/Text-Editor
82fff346880bb9e2088a16af20695bb46d68d29a
[ "MIT" ]
1
2021-09-24T16:13:14.000Z
2021-09-24T16:13:14.000Z
text-editor.py
Shubham05178/Text-Editor
82fff346880bb9e2088a16af20695bb46d68d29a
[ "MIT" ]
null
null
null
text-editor.py
Shubham05178/Text-Editor
82fff346880bb9e2088a16af20695bb46d68d29a
[ "MIT" ]
null
null
null
#Author Shubham Nagaria. ShubhamLabs. #Coder. #subhamnagaria@gmail.com import tkinter from tkinter import * from tkinter import Tk, scrolledtext, filedialog, messagebox root = Tk(className=" TextEditor-ShubhamLabs") #name your texteditor in quotes textPad = scrolledtext.ScrolledText(root, width=100, ...
32.731707
256
0.676975
fb27d1e80db32688183c68acefc2b5b91660e81e
852
py
Python
src/core/schemas/entries/event.py
nefarius/portfolio-backend
f595041354eedee71a4aa5b761501be030b81d09
[ "Apache-2.0" ]
6
2019-06-19T12:56:42.000Z
2021-12-26T07:22:47.000Z
src/core/schemas/entries/event.py
nefarius/portfolio-backend
f595041354eedee71a4aa5b761501be030b81d09
[ "Apache-2.0" ]
13
2019-12-20T10:39:44.000Z
2022-02-10T09:11:09.000Z
src/core/schemas/entries/event.py
nefarius/portfolio-backend
f595041354eedee71a4aa5b761501be030b81d09
[ "Apache-2.0" ]
1
2021-12-01T12:03:29.000Z
2021-12-01T12:03:29.000Z
from ...schemas import ICON_EVENT from ...skosmos import get_collection_members from ..base import BaseSchema from ..general import get_contributors_field, get_date_range_time_range_location_group_field, get_url_field from ..utils import years_from_date_range_time_range_location_group_field ICON = ICON_EVENT TYPES = ...
42.6
112
0.805164
fb28158cf8145cabc88ee46d040cb82c54962f04
787
py
Python
fn/instaAPI.py
elsou/ETSE-Warbot
4fd5351688e3cd81d9eeed50586027830dba0c5b
[ "MIT" ]
2
2021-11-09T23:14:53.000Z
2021-11-11T01:09:28.000Z
fn/instaAPI.py
elsou/etse-warbot
4fd5351688e3cd81d9eeed50586027830dba0c5b
[ "MIT" ]
null
null
null
fn/instaAPI.py
elsou/etse-warbot
4fd5351688e3cd81d9eeed50586027830dba0c5b
[ "MIT" ]
null
null
null
from instabot import Bot import os import shutil import time # Dado un tweet (str) e imaxe (str '*.jpeg'), publica o contido en instagram # ...
23.848485
76
0.617535
fb29a12d8ace63ae0afef58e7d2a5734abf0e3c4
2,088
py
Python
memories/api/utils.py
marchelbling/memories-api
e82d6c6ae2b7873fc35ebb301fc073e3ef968a1e
[ "MIT" ]
null
null
null
memories/api/utils.py
marchelbling/memories-api
e82d6c6ae2b7873fc35ebb301fc073e3ef968a1e
[ "MIT" ]
null
null
null
memories/api/utils.py
marchelbling/memories-api
e82d6c6ae2b7873fc35ebb301fc073e3ef968a1e
[ "MIT" ]
null
null
null
import time import logging from functools import wraps logging.basicConfig(level=logging.INFO, format='[%(asctime)s] [%(levelname)s] %(message)s')
33.677419
93
0.561782
fb2abd56368d34ecbc07a95fe8f4a470ff486455
24,641
py
Python
cssedit/editor/gui_qt.py
albertvisser/cssedit
e17ed1b43a0e4d50bfab6a69da47b92cd3213724
[ "MIT" ]
null
null
null
cssedit/editor/gui_qt.py
albertvisser/cssedit
e17ed1b43a0e4d50bfab6a69da47b92cd3213724
[ "MIT" ]
null
null
null
cssedit/editor/gui_qt.py
albertvisser/cssedit
e17ed1b43a0e4d50bfab6a69da47b92cd3213724
[ "MIT" ]
null
null
null
"""cssedit: PyQt specific stuff """ import sys import os import PyQt5.QtWidgets as qtw import PyQt5.QtGui as gui import PyQt5.QtCore as core from .cssedit import parse_log_line, get_definition_from_file
35.302292
97
0.582363
fb2b12951a9311d135394c012f89a0e99ed10eee
13,425
py
Python
mtp_cashbook/apps/disbursements/tests/test_functional.py
uk-gov-mirror/ministryofjustice.money-to-prisoners-cashbook
d35a621e21631e577faacaeacb5ab9f883c9b4f4
[ "MIT" ]
4
2016-01-05T12:21:39.000Z
2016-12-22T15:56:37.000Z
mtp_cashbook/apps/disbursements/tests/test_functional.py
uk-gov-mirror/ministryofjustice.money-to-prisoners-cashbook
d35a621e21631e577faacaeacb5ab9f883c9b4f4
[ "MIT" ]
132
2015-06-10T09:53:14.000Z
2022-02-01T17:35:54.000Z
mtp_cashbook/apps/disbursements/tests/test_functional.py
uk-gov-mirror/ministryofjustice.money-to-prisoners-cashbook
d35a621e21631e577faacaeacb5ab9f883c9b4f4
[ "MIT" ]
3
2015-07-07T14:40:33.000Z
2021-04-11T06:20:14.000Z
from django.utils.crypto import get_random_string from cashbook.tests.test_functional import CashbookTestCase from disbursements.templatetags.disbursements import format_sortcode
39.60177
104
0.659367
fb2bb261a73c74317e9f4c04091925e5a2fa1f5e
2,199
py
Python
quantrocket/satellite.py
Jay-Jay-D/quantrocket-client
b70ac199382d22d56fad923ca2233ce027f3264a
[ "Apache-2.0" ]
null
null
null
quantrocket/satellite.py
Jay-Jay-D/quantrocket-client
b70ac199382d22d56fad923ca2233ce027f3264a
[ "Apache-2.0" ]
null
null
null
quantrocket/satellite.py
Jay-Jay-D/quantrocket-client
b70ac199382d22d56fad923ca2233ce027f3264a
[ "Apache-2.0" ]
1
2019-06-12T11:34:27.000Z
2019-06-12T11:34:27.000Z
# Copyright 2017 QuantRocket - 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 applicable law or ...
32.820896
93
0.71578
fb2ea9cb95f216543b39462cef45459a422c0631
12,367
py
Python
blog_server/app/comm/GeneralOperate.py
szhu9903/flask-react-blog
b1939a5d95e0084a82c230f2a20a9b197d2eef46
[ "MIT" ]
2
2022-03-12T14:51:42.000Z
2022-03-25T13:20:16.000Z
blog_server/app/comm/GeneralOperate.py
szhu9903/flask-react-blog
b1939a5d95e0084a82c230f2a20a9b197d2eef46
[ "MIT" ]
7
2022-03-19T02:17:54.000Z
2022-03-28T10:12:52.000Z
blog_server/app/comm/GeneralOperate.py
szhu9903/flask-react-blog
b1939a5d95e0084a82c230f2a20a9b197d2eef46
[ "MIT" ]
1
2022-03-25T13:20:28.000Z
2022-03-25T13:20:28.000Z
import copy from flask import g from app.comm.TableModule import TableModule from app.comm.SqlExecute import SqlExecute from app.unit_config import default_result, default_limit_size, depth_post_map
32.890957
91
0.602248
fb2eaccf39fb8ba5a32d82bc3c5d4475f3435246
57
py
Python
tests/helpers/test_plotting.py
sebastian-lapuschkin/Quantus
c3b8a9fb2018f34bd89ba38efa2b2b8c38128b3f
[ "MIT" ]
null
null
null
tests/helpers/test_plotting.py
sebastian-lapuschkin/Quantus
c3b8a9fb2018f34bd89ba38efa2b2b8c38128b3f
[ "MIT" ]
null
null
null
tests/helpers/test_plotting.py
sebastian-lapuschkin/Quantus
c3b8a9fb2018f34bd89ba38efa2b2b8c38128b3f
[ "MIT" ]
null
null
null
"""No identified need to test plotting functionality."""
28.5
56
0.754386
fb2ec99c88e89e1bd90620cd1221b2fc2ec8cc12
4,921
py
Python
SmartDeal-Training/models/mobilenetv2_se_mask.py
VITA-Group/SmartDeal
8e1de77497eedbeea412a8c51142834c28a53709
[ "MIT" ]
2
2021-07-20T02:48:35.000Z
2021-11-29T02:55:36.000Z
SmartDeal-Training/models/mobilenetv2_se_mask.py
VITA-Group/SmartDeal
8e1de77497eedbeea412a8c51142834c28a53709
[ "MIT" ]
null
null
null
SmartDeal-Training/models/mobilenetv2_se_mask.py
VITA-Group/SmartDeal
8e1de77497eedbeea412a8c51142834c28a53709
[ "MIT" ]
null
null
null
'''MobileNetV2 in PyTorch. See the paper "Inverted Residuals and Linear Bottlenecks: Mobile Networks for Classification, Detection and Segmentation" for more details. ''' import torch import torch.nn as nn import torch.nn.functional as F from se import SEConv2d, SELinear THRESHOLD = 4e-3 __all__ = ['SEMaskMobileNet...
36.451852
116
0.613696
fb2f3eb592211892766f130ad1032ee5dd774617
911
py
Python
twitter_video.py
keselekpermen69/build_scripts
110392778ad0a8585efa944100aa1c13ef28469e
[ "MIT" ]
5
2020-08-19T05:44:25.000Z
2021-05-13T05:15:50.000Z
twitter_video.py
MrMissx/scripts
110392778ad0a8585efa944100aa1c13ef28469e
[ "MIT" ]
null
null
null
twitter_video.py
MrMissx/scripts
110392778ad0a8585efa944100aa1c13ef28469e
[ "MIT" ]
null
null
null
import requests if __name__ == "__main__": main()
24.621622
86
0.531284
fb2fabace401a8d0a972f811af8b0a86ed348c85
2,951
py
Python
frappe-bench/apps/erpnext/erpnext/regional/india/utils.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/regional/india/utils.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/regional/india/utils.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
import frappe, re from frappe import _ from frappe.utils import cstr from erpnext.regional.india import states, state_numbers from erpnext.controllers.taxes_and_totals import get_itemised_tax, get_itemised_taxable_amount # don't remove this function it is used in tests def test_method(): '''test function''' return '...
36.8875
102
0.74856
fb32689f50782a5ff37cf378f6a450894a0dc23f
22,922
py
Python
tests/cupy_tests/test_cublas.py
Onkar627/cupy
8eef1ad5393c0a92c5065bc05137bf997f37044a
[ "MIT" ]
1
2022-01-12T22:57:54.000Z
2022-01-12T22:57:54.000Z
tests/cupy_tests/test_cublas.py
Onkar627/cupy
8eef1ad5393c0a92c5065bc05137bf997f37044a
[ "MIT" ]
null
null
null
tests/cupy_tests/test_cublas.py
Onkar627/cupy
8eef1ad5393c0a92c5065bc05137bf997f37044a
[ "MIT" ]
1
2022-03-21T20:19:12.000Z
2022-03-21T20:19:12.000Z
import numpy import pytest import cupy from cupy import cublas from cupy import testing from cupy.testing import _attr
35.871674
79
0.547596
fb336072c83fb710a31348edb291a0b22c416bc1
706
py
Python
ProgsByDataset/UnpaywallMAG/create_unpaywall_refs.py
ashwath92/MastersThesis
f74755dc0c32f316da3c860dd5dbfa4c9cad97b3
[ "MIT" ]
5
2020-11-05T07:11:54.000Z
2021-08-04T21:37:28.000Z
ProgsByDataset/UnpaywallMAG/create_unpaywall_refs.py
ashwath92/MastersThesis
f74755dc0c32f316da3c860dd5dbfa4c9cad97b3
[ "MIT" ]
null
null
null
ProgsByDataset/UnpaywallMAG/create_unpaywall_refs.py
ashwath92/MastersThesis
f74755dc0c32f316da3c860dd5dbfa4c9cad97b3
[ "MIT" ]
4
2020-11-05T06:04:38.000Z
2021-08-02T16:25:42.000Z
import re import csv # Unpaywall citing, cited list based on mag ids unpaywall_citing_cited_file = open('AdditionalOutputs/unpaywallmag_references.tsv', 'w') fieldnames = ['citing_mag_id', 'cited_mag_id'] writer = csv.DictWriter(unpaywall_citing_cited_file, delimiter="\t", fieldnames=fieldnames) citation_pattern = r...
39.222222
93
0.730878
fb336c9971fca1cc78e0225c7dbfc79890eb6bc4
721
py
Python
Configuration/Skimming/python/PA_MinBiasSkim_cff.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
Configuration/Skimming/python/PA_MinBiasSkim_cff.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
Configuration/Skimming/python/PA_MinBiasSkim_cff.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
import FWCore.ParameterSet.Config as cms # HLT dimuon trigger import HLTrigger.HLTfilters.hltHighLevel_cfi hltMinBiasHI = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone() hltMinBiasHI.HLTPaths = ["HLT_PAL1MinimumBiasHF_OR_SinglePixelTrack_ForSkim_v*"] hltMinBiasHI.throw = False hltMinBiasHI.andOr = True # s...
32.772727
80
0.769764
fb3473188063f91e4e0dd179c38bc4a0e03e103e
4,523
py
Python
backend/tests/date_arr_test.py
byamba3/mobilemetrics-backend
2e6c53325ecff842bde8c8fe19de220e8f90cb1d
[ "Unlicense" ]
null
null
null
backend/tests/date_arr_test.py
byamba3/mobilemetrics-backend
2e6c53325ecff842bde8c8fe19de220e8f90cb1d
[ "Unlicense" ]
1
2018-08-14T21:26:02.000Z
2018-08-14T21:26:16.000Z
backend/tests/date_arr_test.py
byamba3/mobilemetrics-backend
2e6c53325ecff842bde8c8fe19de220e8f90cb1d
[ "Unlicense" ]
null
null
null
import datetime from calendar import monthrange import calendar import numpy as np ####### #For generate origin repayment schedule date and days columns ####### start_day = 1 start_month = 1 start_year = 2012 num_installment = 12 installment_time_period = 'months' change_col_idx = 1 change_row_idx = 2 change_val = 10...
35.335938
137
0.689808
fb360bb15c3aa59399389bed8b1e64bb7c548a75
3,696
py
Python
launch_hits.py
hinthornw/Pointing
e3cbaf2c5f54d20fe959406714b38634bc4bb3fe
[ "MIT" ]
null
null
null
launch_hits.py
hinthornw/Pointing
e3cbaf2c5f54d20fe959406714b38634bc4bb3fe
[ "MIT" ]
null
null
null
launch_hits.py
hinthornw/Pointing
e3cbaf2c5f54d20fe959406714b38634bc4bb3fe
[ "MIT" ]
null
null
null
from __future__ import print_function import argparse import json from boto.mturk.price import Price from boto.mturk.question import HTMLQuestion from boto.mturk.connection import MTurkRequestError import os import simpleamt import sys import inspect DEBUG = printPlus # Motorbike 20-40 # Dog 40-70 # Person 40-70 M...
36.594059
83
0.628247
fb36ee81af365dbd4ec4f2c01bf63d11e510fd29
2,405
py
Python
scripts/skinning/utils/skin.py
robertjoosten/skinning-tools
1f1ec6c092fdc1e39aa82a711a13a0041f9d5730
[ "MIT" ]
31
2018-09-08T16:42:01.000Z
2022-03-31T12:31:21.000Z
scripts/skinning/utils/skin.py
robertjoosten/skinning-tools
1f1ec6c092fdc1e39aa82a711a13a0041f9d5730
[ "MIT" ]
null
null
null
scripts/skinning/utils/skin.py
robertjoosten/skinning-tools
1f1ec6c092fdc1e39aa82a711a13a0041f9d5730
[ "MIT" ]
11
2018-10-01T09:57:53.000Z
2022-03-19T06:53:02.000Z
from maya import cmds from maya.api import OpenMaya from maya.api import OpenMayaAnim from functools import partial from skinning.utils import api from skinning.vendor import apiundo def get_cluster_fn(node): """ Loop over an objects history and return the skin cluster api node that is part dependency gr...
32.066667
90
0.69106
fb3817bdbf09d70c073184d064ea74bede74d6b3
1,607
py
Python
z_exams/exam_2018_08_26/ex_03_descriptions.py
VasAtanasov/SoftUni-Python-Fundamentals
471d0537dd6e5c8b61ede92b7673c0d67e2964fd
[ "MIT" ]
1
2019-06-05T11:16:08.000Z
2019-06-05T11:16:08.000Z
z_exams/exam_2018_08_26/ex_03_descriptions.py
VasAtanasov/SoftUni-Python-Fundamentals
471d0537dd6e5c8b61ede92b7673c0d67e2964fd
[ "MIT" ]
null
null
null
z_exams/exam_2018_08_26/ex_03_descriptions.py
VasAtanasov/SoftUni-Python-Fundamentals
471d0537dd6e5c8b61ede92b7673c0d67e2964fd
[ "MIT" ]
null
null
null
import re REGEX = { "name": r"name is (?P<name>[A-Z][A-Za-z]+ [A-Z][A-Za-z]+)", "age": r" (?P<age>[0-9]{2}) years", "date": r"on (?P<date>[0-9]{2}-[0-9]{2}-[0-9]{4})." } db = [] while True: line = input() if "make migrations" == line: break if line[len(line) - 1] != '.': con...
23.289855
97
0.533914
fb3a72f79061cb96a4d85d2974153bcda4983c49
7,667
py
Python
GoogleSheetsJobParser.py
mattfromsydney/Scientific-Report-Generator
17ddfe42e38d83341460a6de7b0b156bf7cd820a
[ "MIT" ]
null
null
null
GoogleSheetsJobParser.py
mattfromsydney/Scientific-Report-Generator
17ddfe42e38d83341460a6de7b0b156bf7cd820a
[ "MIT" ]
null
null
null
GoogleSheetsJobParser.py
mattfromsydney/Scientific-Report-Generator
17ddfe42e38d83341460a6de7b0b156bf7cd820a
[ "MIT" ]
null
null
null
""" NOTE on google sheets format: The google sheets document must have the following: Columns A and B from cell 2 down are all the sample details Column A is the name of the detail and Column B is the value of the detail Columns B and onwards can be anything but there must be three speicifc...
43.811429
104
0.60493
fb3a87c53bf0b6e09c757714ba3aaf427f9aff41
1,720
py
Python
aws_lambda/lambda.py
bluthen/utilbula_list
dbe4dfd273c7fa37553d91c5bde8744794ccba70
[ "Apache-2.0" ]
null
null
null
aws_lambda/lambda.py
bluthen/utilbula_list
dbe4dfd273c7fa37553d91c5bde8744794ccba70
[ "Apache-2.0" ]
null
null
null
aws_lambda/lambda.py
bluthen/utilbula_list
dbe4dfd273c7fa37553d91c5bde8744794ccba70
[ "Apache-2.0" ]
null
null
null
import json import base64 import boto3 import uuid import traceback
27.741935
97
0.568023
fb3a92014d6912b9f49fb4d369df04c828bdc5f0
6,565
py
Python
Week3-Case-Studies-Part1/Language-Processing/Language_Processing.py
Lamanova/Harvard-PH526x-Lab
168e4c16fa067905142bb6be106277f228d591c5
[ "MIT" ]
7
2017-08-13T03:03:55.000Z
2022-02-06T17:08:12.000Z
Week3-Case-Studies-Part1/Language-Processing/Language_Processing.py
Lamanova/Harvard-PH526x-Lab
168e4c16fa067905142bb6be106277f228d591c5
[ "MIT" ]
null
null
null
Week3-Case-Studies-Part1/Language-Processing/Language_Processing.py
Lamanova/Harvard-PH526x-Lab
168e4c16fa067905142bb6be106277f228d591c5
[ "MIT" ]
10
2017-09-29T08:22:10.000Z
2021-06-17T22:51:59.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Feb 28 22:41:26 2017 @author: lamahamadeh """ ''' Case Study about Language Processing ''' #counting words #--------------- text = "This is a test text. We're keping this text short to keep things manageable." #test text #Using loops #----------- d...
36.071429
282
0.6262
fb3c3876b330f5a1310fa02ca86fedafa73ed588
273
py
Python
catalog/bindings/csw/brief_record.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/csw/brief_record.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/csw/brief_record.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass from bindings.csw.brief_record_type import BriefRecordType __NAMESPACE__ = "http://www.opengis.net/cat/csw/2.0.2"
24.818182
58
0.754579
fb3db8f6cafb78c9e368cf61c425d4648f50a4a0
8,109
py
Python
R2Py/pre_data_chk.py
OpenBookProjects/ipynb
72a28109e8e30aea0b9c6713e78821e4affa2e33
[ "MIT" ]
6
2015-06-08T12:50:14.000Z
2018-11-20T10:05:01.000Z
R2Py/pre_data_chk.py
OpenBookProjects/ipynb
72a28109e8e30aea0b9c6713e78821e4affa2e33
[ "MIT" ]
null
null
null
R2Py/pre_data_chk.py
OpenBookProjects/ipynb
72a28109e8e30aea0b9c6713e78821e4affa2e33
[ "MIT" ]
8
2016-01-26T14:12:50.000Z
2021-02-20T14:24:09.000Z
# -*- coding: utf-8 -*- '''check and clean and export as .csv - 150602 pike aTimeLogger2 date into .csv - 150601 make handlog export all date into *_all.csv - 150525 make handlog wxport 2types files ''' import os import sys import fnmatch def _load_atl(flines,fname): """load and pick time log from aTimeLogge...
30.715909
82
0.436305
3485a97e04399f112e63493e9a7df6b69342ec0c
313
py
Python
Microservices/Events/Events/producer.py
satyap54/Microservices-Architecture
be397b351a61eb21229fad021590fcb0b07b8089
[ "MIT" ]
null
null
null
Microservices/Events/Events/producer.py
satyap54/Microservices-Architecture
be397b351a61eb21229fad021590fcb0b07b8089
[ "MIT" ]
null
null
null
Microservices/Events/Events/producer.py
satyap54/Microservices-Architecture
be397b351a61eb21229fad021590fcb0b07b8089
[ "MIT" ]
null
null
null
import asyncio import aiormq
20.866667
46
0.664537
3485c332458e998d42d6f67bb82de0ba508582c0
8,473
py
Python
timezone/embeds.py
duanegtr/legendv3-cogs
ffde1452a75ad42b4f6511b612ce486e96fcd6de
[ "MIT" ]
10
2020-05-25T13:32:30.000Z
2022-02-01T12:33:07.000Z
timezone/embeds.py
darcyle/tl-cogs
6b13c4a6247115571c5a2bb6ea98ed1fe2d44d79
[ "MIT" ]
2
2020-05-23T22:53:07.000Z
2020-08-09T11:28:12.000Z
timezone/embeds.py
darcyle/tl-cogs
6b13c4a6247115571c5a2bb6ea98ed1fe2d44d79
[ "MIT" ]
7
2020-05-18T17:37:33.000Z
2022-01-13T04:08:05.000Z
"""Embeds for Timezone Legends discord bot.""" import time import discord from dateutil.parser import parse # pip install python-dateutil from pytz import timezone from datetime import datetime """ embed = discord.Embed(colour=discord.Colour(0x5c0708), description="Listing all Events that matched your request (**if ...
57.639456
331
0.688304
34895fa122da2aa59b08dae55bc7b95297e3503a
1,521
py
Python
utils/commonutils.py
rupakc/Storyweaver
9a6ec1c040a09f730cc6f32ce385f44a79d28663
[ "BSL-1.0" ]
null
null
null
utils/commonutils.py
rupakc/Storyweaver
9a6ec1c040a09f730cc6f32ce385f44a79d28663
[ "BSL-1.0" ]
null
null
null
utils/commonutils.py
rupakc/Storyweaver
9a6ec1c040a09f730cc6f32ce385f44a79d28663
[ "BSL-1.0" ]
null
null
null
import hashlib import shutil import requests import os from config import constants
33.065217
82
0.721893
348a2b80711dded6c85af5b308b4122d1e73013c
14,635
py
Python
flask_app.py
wacovidhackathon/TPCraze
57a9485a008536f6326e29328df6af6d29045a6d
[ "MIT" ]
null
null
null
flask_app.py
wacovidhackathon/TPCraze
57a9485a008536f6326e29328df6af6d29045a6d
[ "MIT" ]
null
null
null
flask_app.py
wacovidhackathon/TPCraze
57a9485a008536f6326e29328df6af6d29045a6d
[ "MIT" ]
null
null
null
import time, os import tomtomSearch from flask_bootstrap import Bootstrap from flask import Flask, render_template, request, redirect, flash, session, jsonify, url_for from flask_wtf import FlaskForm from wtforms import StringField, BooleanField, SubmitField, IntegerField, SelectField, RadioField from wtforms.val...
38.111979
374
0.610386
348c6299bee8c546cf7aa75e9c41522b146fab11
2,634
py
Python
pkg/codegen/internal/test/testdata/output-funcs/py_tests/pulumi_py_tests.py
sticha/pulumi
76ee1b8ccfee815eb315d9e0e0ddfaaf505c472b
[ "Apache-2.0" ]
null
null
null
pkg/codegen/internal/test/testdata/output-funcs/py_tests/pulumi_py_tests.py
sticha/pulumi
76ee1b8ccfee815eb315d9e0e0ddfaaf505c472b
[ "Apache-2.0" ]
null
null
null
pkg/codegen/internal/test/testdata/output-funcs/py_tests/pulumi_py_tests.py
sticha/pulumi
76ee1b8ccfee815eb315d9e0e0ddfaaf505c472b
[ "Apache-2.0" ]
null
null
null
# Copyright 2016-2021, Pulumi Corporation. # # 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 t...
30.988235
89
0.65186
348cdede6c52f1578247987d1f2b6285625e722a
1,800
py
Python
scripts/gan/conditional_dcgan/gen_data_from_img.py
hiroyasuakada/ros_start
10221ad2bcaefa4aaadc6c90424a3751126ac256
[ "MIT" ]
null
null
null
scripts/gan/conditional_dcgan/gen_data_from_img.py
hiroyasuakada/ros_start
10221ad2bcaefa4aaadc6c90424a3751126ac256
[ "MIT" ]
null
null
null
scripts/gan/conditional_dcgan/gen_data_from_img.py
hiroyasuakada/ros_start
10221ad2bcaefa4aaadc6c90424a3751126ac256
[ "MIT" ]
null
null
null
# generate data from bag images from PIL import Image from pathlib import Path import os, glob # manipulate file or directory import numpy as np if __name__ == '__main__': DA = DataArrangement() X_not_traking, Y_not_traking, X_traking, Y_traking = DA.load_data()
36.734694
97
0.566111
348d2d60fb5385e97d0dc27346784f7b73fdadac
331
py
Python
example/demo/book/views.py
iwwxiong/flask_restapi
57fca3bf07d913b31b6b7ef877328b0e07056c39
[ "MIT" ]
6
2019-04-23T02:18:55.000Z
2019-12-10T13:16:21.000Z
example/demo/book/views.py
dracarysX/flask_scaffold
57fca3bf07d913b31b6b7ef877328b0e07056c39
[ "MIT" ]
null
null
null
example/demo/book/views.py
dracarysX/flask_scaffold
57fca3bf07d913b31b6b7ef877328b0e07056c39
[ "MIT" ]
3
2019-05-22T06:00:17.000Z
2020-01-14T17:02:35.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- # flask_restapi import from flask_restapi.views import APIMethodView from .models import Book from .forms import BookForm
19.470588
45
0.716012
348dadc81585ed38d6f51d902f482767add11796
2,484
py
Python
backend/apps/cmdb/models/field.py
codelieche/erp
96861ff63a63a93918fbd5181ffb2646446d0eec
[ "MIT" ]
null
null
null
backend/apps/cmdb/models/field.py
codelieche/erp
96861ff63a63a93918fbd5181ffb2646446d0eec
[ "MIT" ]
29
2020-06-05T19:57:11.000Z
2022-02-26T13:42:36.000Z
backend/apps/cmdb/models/field.py
codelieche/erp
96861ff63a63a93918fbd5181ffb2646446d0eec
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from django.db import models from account.models import User # from cmdb.types import get_instance from cmdb.models import Model
38.8125
107
0.667069
3490cf6f7075a2aef1693d69a9521b0b995d567b
604
py
Python
unidad2/pc2/e1.py
upc-projects/cc76
0f1663cc439889b0c7e924923639e7c2e032b9b6
[ "MIT" ]
1
2020-09-21T16:56:24.000Z
2020-09-21T16:56:24.000Z
unidad2/pc2/e1.py
upc-projects/cc76
0f1663cc439889b0c7e924923639e7c2e032b9b6
[ "MIT" ]
null
null
null
unidad2/pc2/e1.py
upc-projects/cc76
0f1663cc439889b0c7e924923639e7c2e032b9b6
[ "MIT" ]
null
null
null
import math G = [[(2,0)], [(0,20), (3,20)], [(4,-60)], [(5,-60)], []] win = True distance, _ = Bellman_ford(G) for i in distance: if i <= -100: win=False print("winnable" if win else "hopeless")
18.875
53
0.463576
3491846c1c297a3eafd5e93b910d0c66155d9336
1,743
py
Python
Incident-Response/Tools/dfirtrack/dfirtrack_main/exporter/markdown/markdown_check_data.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
1
2021-07-24T17:22:50.000Z
2021-07-24T17:22:50.000Z
Incident-Response/Tools/dfirtrack/dfirtrack_main/exporter/markdown/markdown_check_data.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
2
2022-02-28T03:40:31.000Z
2022-02-28T03:40:52.000Z
Incident-Response/Tools/dfirtrack/dfirtrack_main/exporter/markdown/markdown_check_data.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
2
2022-02-25T08:34:51.000Z
2022-03-16T17:29:44.000Z
from django.contrib import messages from dfirtrack_config.models import SystemExporterMarkdownConfigModel from dfirtrack_main.logger.default_logger import warning_logger import os def check_config(request): """ check variables in config """ # get config model model = SystemExporterMarkdownConfigModel.obje...
44.692308
128
0.729776
3491ecdf0d743d67d90929ff69bd755f765fc9ba
44,309
py
Python
src/module_factions.py
faycalki/medieval-conquests
113e13e2b166b79517c14f2c13f7561307a89f75
[ "MIT" ]
7
2019-08-11T14:20:20.000Z
2021-11-21T06:48:24.000Z
src/module_factions.py
faycalki/medieval-conquests
113e13e2b166b79517c14f2c13f7561307a89f75
[ "MIT" ]
null
null
null
src/module_factions.py
faycalki/medieval-conquests
113e13e2b166b79517c14f2c13f7561307a89f75
[ "MIT" ]
null
null
null
# -*- coding: utf8 -*- from header_factions import * #################################################################################################################### # Each faction record contains the following fields: # 1) Faction id: used for referencing factions in other files. # The prefix fac_ is automa...
131.091716
1,080
0.608296
3492885ac8a900a114a775185286f143d7123ed9
236
py
Python
data/python/pattern_12/code.py
MKAbuMattar/grammind-api
ccf6e9898f50f9e4c7671abecf65029198e2dc72
[ "MIT" ]
3
2021-12-29T13:03:27.000Z
2021-12-31T20:27:17.000Z
data/python/pattern_12/code.py
MKAbuMattar/grammind-api
ccf6e9898f50f9e4c7671abecf65029198e2dc72
[ "MIT" ]
2
2022-01-15T13:08:13.000Z
2022-01-18T19:41:07.000Z
data/python/pattern_12/code.py
MKAbuMattar/grammind-api
ccf6e9898f50f9e4c7671abecf65029198e2dc72
[ "MIT" ]
null
null
null
#MAIN PROGRAM STARTS HERE: num = int(input('Enter the number of rows and columns for the square: ')) for x in range(0, num): i = x + 1 for y in range(0, num): print ('{} '.format(i), end='') i += num print()
26.222222
73
0.555085
34940ee04b10ec17bfb59f0b5abe7be0ed5efa38
4,602
py
Python
models/bert_with_conversation_context.py
RobinRojowiec/intent-recognition-in-doctor-patient-interviews
b91c7a9f3ad70edd0f39b56e3219f48d1fcf2078
[ "Apache-2.0" ]
null
null
null
models/bert_with_conversation_context.py
RobinRojowiec/intent-recognition-in-doctor-patient-interviews
b91c7a9f3ad70edd0f39b56e3219f48d1fcf2078
[ "Apache-2.0" ]
null
null
null
models/bert_with_conversation_context.py
RobinRojowiec/intent-recognition-in-doctor-patient-interviews
b91c7a9f3ad70edd0f39b56e3219f48d1fcf2078
[ "Apache-2.0" ]
1
2021-11-24T18:48:47.000Z
2021-11-24T18:48:47.000Z
import pickle import torch import torch.nn as nn from torchtext.data import Field from common.paths import ROOT_RELATIVE_DIR, MODEL_PATH from models.bert_layer import BERTLayer from probability.tables import TransitionTable from utility.model_parameter import Configuration, ModelParameter
38.672269
140
0.69535
3495b6bc67d0421d48767015a4e9b3c968d3cfd4
3,468
py
Python
2016/qualification/sol.py
victorWeiFreelancer/Hashcode
e9cac8531f07962fedbfba6605acfa6e6067747d
[ "MIT" ]
null
null
null
2016/qualification/sol.py
victorWeiFreelancer/Hashcode
e9cac8531f07962fedbfba6605acfa6e6067747d
[ "MIT" ]
null
null
null
2016/qualification/sol.py
victorWeiFreelancer/Hashcode
e9cac8531f07962fedbfba6605acfa6e6067747d
[ "MIT" ]
null
null
null
import sys import math from time import gmtime, strftime sys.dont_write_bytecode = True def readInput(Plookup, warehouses, orders, drones): if(len(sys.argv)==1): nRow, nCol, nD, T, L = list(map(int, input().split())) P = int(input()) Plookup.extend(list(map(int, input().split()))) ...
30.421053
83
0.531142
3496f98bc54d566d0b2f81898c8f900cd96ce375
2,313
py
Python
app/__init__.py
doshmajhan/python-idp
55be99afd02de4e8b0840c0a2236906d4b9a1827
[ "MIT" ]
1
2021-06-13T18:29:20.000Z
2021-06-13T18:29:20.000Z
app/__init__.py
doshmajhan/python-idp
55be99afd02de4e8b0840c0a2236906d4b9a1827
[ "MIT" ]
1
2022-03-30T05:37:09.000Z
2022-03-30T05:37:09.000Z
app/__init__.py
doshmajhan/python-idp
55be99afd02de4e8b0840c0a2236906d4b9a1827
[ "MIT" ]
null
null
null
from flask import Flask from flask_restful import Api from saml2 import saml, samlp from saml2.config import IdPConfig from saml2.mdstore import MetadataStore from saml2.server import Server from app.config import config from app.database import db from app.resources.idp_config import IdpConfigResource from app.resour...
31.684932
87
0.736273
3499539f373f9ce023ee2fc68de3748959a132f3
5,190
py
Python
install.py
mrobraven/majestic-pi
8ebe001a0e2f2eca475c2a390228e7810630f62e
[ "MIT" ]
null
null
null
install.py
mrobraven/majestic-pi
8ebe001a0e2f2eca475c2a390228e7810630f62e
[ "MIT" ]
null
null
null
install.py
mrobraven/majestic-pi
8ebe001a0e2f2eca475c2a390228e7810630f62e
[ "MIT" ]
null
null
null
import os os.mkdir("3D") os.chdir("3D") print("Configuring 3D...") print("Fetching Intro...") os.system("wget https://raw.githubusercontent.com/mrobraven/majestic-pi/master/majestic-pi/intro.mp4") print("Fetching 3D Feature...") os.system("wget https://raw.githubusercontent.com/mrobraven/majestic-pi/master/majestic-pi/...
55.212766
129
0.773796
349ac7bf295420ef2ab524ccb2bae107924bef1f
9,274
py
Python
docs/conf.py
myii/saltenv
2309e6759504f5326a444270c8e8bb3edf14b760
[ "Apache-2.0" ]
5
2022-03-25T17:15:04.000Z
2022-03-28T23:24:26.000Z
docs/conf.py
myii/saltenv
2309e6759504f5326a444270c8e8bb3edf14b760
[ "Apache-2.0" ]
null
null
null
docs/conf.py
myii/saltenv
2309e6759504f5326a444270c8e8bb3edf14b760
[ "Apache-2.0" ]
2
2022-03-26T06:33:30.000Z
2022-03-29T19:43:50.000Z
# # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup -------------------------------------------------------------- # If extensions (or mo...
34.996226
133
0.667026
349b663f81956d7e9257fe5e42ee283abd8a9e68
2,094
py
Python
utils.py
momskidvaava/firefoxbot
1ed85e4f6594b144ceabdecb19e6e022180e639e
[ "MIT" ]
null
null
null
utils.py
momskidvaava/firefoxbot
1ed85e4f6594b144ceabdecb19e6e022180e639e
[ "MIT" ]
null
null
null
utils.py
momskidvaava/firefoxbot
1ed85e4f6594b144ceabdecb19e6e022180e639e
[ "MIT" ]
1
2021-11-25T14:05:25.000Z
2021-11-25T14:05:25.000Z
import datetime import typing import localization from configurator import Config def get_restriction_time(string: str) -> typing.Optional[int]: """ Get user restriction time in seconds :param string: string to check for multiplier. The last symbol should be one of: "m" for minutes, "h" for hours...
33.238095
118
0.668577
349bc17ddf478dd5dde43f9722c96d91cc6f8502
548
py
Python
test/torch/differential_privacy/test_pate.py
amitkarn3/PythnSyft
8eaa637e1ca54c963281e847556cb14b4a76b46b
[ "Apache-1.1" ]
null
null
null
test/torch/differential_privacy/test_pate.py
amitkarn3/PythnSyft
8eaa637e1ca54c963281e847556cb14b4a76b46b
[ "Apache-1.1" ]
null
null
null
test/torch/differential_privacy/test_pate.py
amitkarn3/PythnSyft
8eaa637e1ca54c963281e847556cb14b4a76b46b
[ "Apache-1.1" ]
null
null
null
import numpy as np from syft.frameworks.torch.differential_privacy import pate
30.444444
95
0.717153
349c048a588296bb67dea9d1d337e93b39772ac1
381
py
Python
03_Avanzado/09_CursoBasico_Python/codigo/funciones.py
LeoSan/CarreraFundamentosProgramacion_Platzi_2021
9db6ac33a755f855fbb9c41a9bd0e02712f37cb3
[ "MIT" ]
null
null
null
03_Avanzado/09_CursoBasico_Python/codigo/funciones.py
LeoSan/CarreraFundamentosProgramacion_Platzi_2021
9db6ac33a755f855fbb9c41a9bd0e02712f37cb3
[ "MIT" ]
null
null
null
03_Avanzado/09_CursoBasico_Python/codigo/funciones.py
LeoSan/CarreraFundamentosProgramacion_Platzi_2021
9db6ac33a755f855fbb9c41a9bd0e02712f37cb3
[ "MIT" ]
null
null
null
#Programa ejemplo para usar funcin #funcion sin parametros imprimir_mensaje() #funcion con parametros valorA= "Hola mundo" valorB= "Funcin con parametros" imprimir_mensaje_param(valorA, valorB)
20.052632
47
0.755906
34a032f572f524fc63d35b7eac84530ba6ee0e35
7,130
py
Python
orchestrator/cots/gdal/gdal_rasterize.py
spacebel/MAJA
3e5d20bc9c744c610e608cfcf1f4c5c738d4de9e
[ "Apache-2.0" ]
57
2020-09-30T08:51:22.000Z
2021-12-19T20:28:30.000Z
orchestrator/cots/gdal/gdal_rasterize.py
spacebel/MAJA
3e5d20bc9c744c610e608cfcf1f4c5c738d4de9e
[ "Apache-2.0" ]
34
2020-09-29T21:27:22.000Z
2022-02-03T09:56:45.000Z
orchestrator/cots/gdal/gdal_rasterize.py
spacebel/MAJA
3e5d20bc9c744c610e608cfcf1f4c5c738d4de9e
[ "Apache-2.0" ]
14
2020-10-11T13:17:59.000Z
2022-03-09T15:58:19.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2020 Centre National d'Etudes Spatiales (CNES) # # 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 # # ...
33.317757
119
0.55021
34a1337c8f6d2a9a081a7f61b09a68afa8480561
7,374
py
Python
theseus/test/test_tracer.py
pexip/os-python-theseus
3093edd7bc4af5556bce42c8602685010c695183
[ "0BSD" ]
1
2016-04-27T07:58:20.000Z
2016-04-27T07:58:20.000Z
theseus/test/test_tracer.py
pexip/os-python-theseus
3093edd7bc4af5556bce42c8602685010c695183
[ "0BSD" ]
null
null
null
theseus/test/test_tracer.py
pexip/os-python-theseus
3093edd7bc4af5556bce42c8602685010c695183
[ "0BSD" ]
null
null
null
from cStringIO import StringIO import inspect import textwrap import pytest from twisted.internet import defer, task from theseus._tracer import Function, Tracer def test_function_of_frame(): """ Function.of_frame examines a frame's code for its filename and code name. """ frame = FakeFrame(FakeC...
27.210332
79
0.649173
34a22dd4ad9ab46d6938c8ba8be9e6f6b3432bf1
497
py
Python
quickkart_api/auth.py
envaleed/quick-kart-api-deploy
2b962dce3bc5ba19d4e90cb86822c016d51f65c2
[ "MIT" ]
null
null
null
quickkart_api/auth.py
envaleed/quick-kart-api-deploy
2b962dce3bc5ba19d4e90cb86822c016d51f65c2
[ "MIT" ]
null
null
null
quickkart_api/auth.py
envaleed/quick-kart-api-deploy
2b962dce3bc5ba19d4e90cb86822c016d51f65c2
[ "MIT" ]
null
null
null
from quickkart_api import app from quickkart_api.models import Users from flask_jwt import JWT, jwt_required, current_identity from flask import abort jwt = JWT(app,authenticate,identity)
33.133333
71
0.7666
34a2c4ef21ebf75e62e5e53df18db5c3d07d0336
1,665
py
Python
testdoc/conf.py
coding-to-music/sphinx-seo-meta-twitter
23ec10e32ae272d5024d2468a87813ecabd30bfa
[ "BSD-3-Clause" ]
null
null
null
testdoc/conf.py
coding-to-music/sphinx-seo-meta-twitter
23ec10e32ae272d5024d2468a87813ecabd30bfa
[ "BSD-3-Clause" ]
null
null
null
testdoc/conf.py
coding-to-music/sphinx-seo-meta-twitter
23ec10e32ae272d5024d2468a87813ecabd30bfa
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import sys, os # If your documentation needs a minimal Sphinx version, state it here. #needs_sphinx = '1.0' # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. extensions = ['sphinxcontrib.seometatwi...
27.295082
80
0.713514
34a3b4a7e1966e32d27cb46659df093776257437
69
py
Python
omnia_timeseries/__init__.py
equinor/omnia-timeseries-python
02cb4fe5eef3703725cb16f1a3d2c7094b3d623d
[ "MIT" ]
5
2021-06-18T10:09:09.000Z
2022-03-04T13:14:57.000Z
omnia_timeseries/__init__.py
equinor/omnia-timeseries-python
02cb4fe5eef3703725cb16f1a3d2c7094b3d623d
[ "MIT" ]
3
2021-05-27T08:49:10.000Z
2021-11-12T11:17:21.000Z
omnia_timeseries/__init__.py
equinor/omnia-timeseries-python
02cb4fe5eef3703725cb16f1a3d2c7094b3d623d
[ "MIT" ]
1
2021-10-06T09:39:08.000Z
2021-10-06T09:39:08.000Z
from omnia_timeseries.api import TimeseriesAPI, TimeseriesEnvironment
69
69
0.913043
34a3c5979c5216c22bb261f3a724f1a3a6ea121a
799
py
Python
corehq/apps/smsforms/util.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/smsforms/util.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
1
2021-06-02T04:45:16.000Z
2021-06-02T04:45:16.000Z
corehq/apps/smsforms/util.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
null
null
null
from dimagi.utils.couch import CriticalSection from corehq.apps.receiverwrapper.util import submit_form_locally def form_requires_input(form): """ Returns True if the form has at least one question that requires input """ for question in form.get_questions([]): if question["tag"] not in ("tri...
30.730769
103
0.738423
34a40b68218e951dfdb50b23863e768a1098e44d
1,531
py
Python
wssnet/utility/tawss_utils.py
EdwardFerdian/WSSNet
b5d2916348e834a5dc5d0c06b001059b2a020080
[ "MIT" ]
2
2022-02-15T12:41:02.000Z
2022-03-15T04:46:10.000Z
wssnet/utility/tawss_utils.py
EdwardFerdian/WSSNet
b5d2916348e834a5dc5d0c06b001059b2a020080
[ "MIT" ]
null
null
null
wssnet/utility/tawss_utils.py
EdwardFerdian/WSSNet
b5d2916348e834a5dc5d0c06b001059b2a020080
[ "MIT" ]
null
null
null
import numpy as np from scipy.integrate import simps
24.301587
67
0.573481
34a414f71bdbac2f19072c327b891b149dfefa34
6,511
py
Python
dash/lib/events/servermanagement.py
wjwwood/open-robotics-platform
c417f1e4e381cdbbe88ba9ad4dea3bdf9840d3d5
[ "MIT" ]
null
null
null
dash/lib/events/servermanagement.py
wjwwood/open-robotics-platform
c417f1e4e381cdbbe88ba9ad4dea3bdf9840d3d5
[ "MIT" ]
null
null
null
dash/lib/events/servermanagement.py
wjwwood/open-robotics-platform
c417f1e4e381cdbbe88ba9ad4dea3bdf9840d3d5
[ "MIT" ]
null
null
null
#!/usr/bin/env python -OO # encoding: utf-8 ########### # ORP - Open Robotics Platform # # Copyright (c) 2010 John Harrison, William Woodall # # 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 Softwa...
38.526627
102
0.665643
34a4b62edf263b2fe76869067f5c2acf0eed223a
1,661
py
Python
test/uma/rp/check.py
rohe/oictest
f6f0800220befd5983b8cb34a5c984f98855d089
[ "Apache-2.0" ]
32
2015-01-02T20:15:17.000Z
2020-02-15T20:46:25.000Z
test/uma/rp/check.py
rohe/oictest
f6f0800220befd5983b8cb34a5c984f98855d089
[ "Apache-2.0" ]
8
2015-02-23T19:48:53.000Z
2016-01-20T08:24:05.000Z
test/uma/rp/check.py
rohe/oictest
f6f0800220befd5983b8cb34a5c984f98855d089
[ "Apache-2.0" ]
17
2015-01-02T20:15:22.000Z
2022-03-22T22:58:28.000Z
import inspect import sys from uma import message from rrtest.check import Error, get_protocol_response from rrtest import Unknown from oictest import check __author__ = 'roland' CLASS_CACHE = {}
27.683333
73
0.556291
34a59aa4fd323b18e2045c4173ab3b0589d86fd9
10,959
py
Python
lib/utils/general.py
yingbiaoluo/ocr_pytorch
7d9163f7d6d557d83e2f50a39a3219f330f0cf84
[ "MIT" ]
null
null
null
lib/utils/general.py
yingbiaoluo/ocr_pytorch
7d9163f7d6d557d83e2f50a39a3219f330f0cf84
[ "MIT" ]
null
null
null
lib/utils/general.py
yingbiaoluo/ocr_pytorch
7d9163f7d6d557d83e2f50a39a3219f330f0cf84
[ "MIT" ]
null
null
null
import os import cv2 import glob import logging import numpy as np from pathlib import Path import torch from torch.autograd import Variable import torch.distributed as dist def generate_alphabets(alphabet_path): """ :param alphabet_path: . :return: . """ with open(alphabet_path, 'r', enco...
31.582133
136
0.57195
34a5f721af5cc589bff5b78d011f713fac9b79a1
211
py
Python
smoothie/plugins/__init__.py
PiterPentester/smoothie
810709273c3d7bb975aca1f44062d39d0b33b678
[ "0BSD" ]
1
2021-02-12T00:24:45.000Z
2021-02-12T00:24:45.000Z
smoothie/plugins/__init__.py
PiterPentester/smoothie
810709273c3d7bb975aca1f44062d39d0b33b678
[ "0BSD" ]
1
2021-03-26T00:37:50.000Z
2021-03-26T00:37:50.000Z
smoothie/plugins/__init__.py
PiterPentester/smoothie
810709273c3d7bb975aca1f44062d39d0b33b678
[ "0BSD" ]
null
null
null
#!/usr/bin/env python from smoothie.plugins.interfaces import run as interfaces from smoothie.plugins.list_networks import run as list_networks from smoothie.plugins.target_network import run as target_network
35.166667
65
0.848341
34a704c37474e7d90bc81f141c9416313e5a36b0
3,912
py
Python
tests/unit_tests/webhook_server_test.py
Leanny/mmpy_bot
fd16db4f1b07130fbf95568fb242387f0c7973e2
[ "MIT" ]
196
2018-05-31T23:45:34.000Z
2022-03-20T09:06:55.000Z
tests/unit_tests/webhook_server_test.py
Leanny/mmpy_bot
fd16db4f1b07130fbf95568fb242387f0c7973e2
[ "MIT" ]
216
2018-05-31T19:18:46.000Z
2022-03-21T17:09:38.000Z
tests/unit_tests/webhook_server_test.py
tgly307/mmpy_bot
0ae52d9db86ac018f3d48dd52c11e4996f549073
[ "MIT" ]
107
2018-06-01T05:12:27.000Z
2022-02-25T12:40:10.000Z
import asyncio import threading import time import pytest from aiohttp import ClientSession from mmpy_bot import Settings from mmpy_bot.threadpool import ThreadPool from mmpy_bot.webhook_server import NoResponse, WebHookServer
37.257143
85
0.648773
34a7b81a028bf0267f44066f902a91829b99db68
1,023
py
Python
sample/Python/kabusapi_ranking.py
HolyMartianEmpire/kabusapi
c88ee958c272fb6e1dfde9a256e138c5760ea545
[ "MIT" ]
212
2020-08-20T09:10:35.000Z
2022-03-31T08:05:21.000Z
sample/Python/kabusapi_ranking.py
U2u14/kabusapi
e41d0c3fcbcf6a1164ace9eac1a4d93685012dcb
[ "MIT" ]
496
2020-08-20T14:23:59.000Z
2022-03-31T23:59:09.000Z
sample/Python/kabusapi_ranking.py
U2u14/kabusapi
e41d0c3fcbcf6a1164ace9eac1a4d93685012dcb
[ "MIT" ]
57
2020-08-20T10:40:07.000Z
2022-03-07T06:28:01.000Z
import urllib.request import json import pprint url = 'http://localhost:18080/kabusapi/ranking' #?type=1&ExchangeDivision=ALL params = { 'type': 15 } #type - 1:2: 3: 4: 5:TICK 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: params['ExchangeDivision'] = 'S' #ExchangeDivision - ALL:T: T1: T2: TM: JQ:JASDAQ M: FK: S: req = urllib.re...
39.346154
170
0.69697
34a95de29250fa6c98650b9aff0293a9f1a7b915
3,905
py
Python
sfa_api/zones.py
lboeman/solarforecastarbiter-api
9df598b5c638c3e36d0649e08e955b3ddc1b542d
[ "MIT" ]
7
2018-12-07T22:05:36.000Z
2020-05-03T03:20:50.000Z
sfa_api/zones.py
lboeman/solarforecastarbiter-api
9df598b5c638c3e36d0649e08e955b3ddc1b542d
[ "MIT" ]
220
2018-11-01T23:33:19.000Z
2021-12-02T21:06:38.000Z
sfa_api/zones.py
lboeman/solarforecastarbiter-api
9df598b5c638c3e36d0649e08e955b3ddc1b542d
[ "MIT" ]
3
2018-10-31T20:55:07.000Z
2021-11-10T22:51:43.000Z
from flask import Blueprint, jsonify, make_response from flask.views import MethodView from sfa_api import spec, json from sfa_api.schema import ZoneListSchema from sfa_api.utils.storage import get_storage from sfa_api.utils.request_handling import validate_latitude_longitude spec.components.parameter( 'zone...
29.141791
79
0.557746
34aad533350d28ac32ca85f8601235b5751af580
283
py
Python
Mundo 3/Aula 16 - Tuplas/Ex074 - Maior e menor valor com tupla.py
Ruben-974/Exercicios-Python
11fc5c7c64c1b5e5f54f59821847987d4878764c
[ "MIT" ]
null
null
null
Mundo 3/Aula 16 - Tuplas/Ex074 - Maior e menor valor com tupla.py
Ruben-974/Exercicios-Python
11fc5c7c64c1b5e5f54f59821847987d4878764c
[ "MIT" ]
null
null
null
Mundo 3/Aula 16 - Tuplas/Ex074 - Maior e menor valor com tupla.py
Ruben-974/Exercicios-Python
11fc5c7c64c1b5e5f54f59821847987d4878764c
[ "MIT" ]
null
null
null
from random import randint n = (randint(1, 9), randint(1, 9), randint(1, 9), randint(1, 9), randint(1, 9)) print('Os nmeros sorteados foram: ', end='') for c in n: print(c, end=' ') print(f'\nO maior valor sorteado foi: {max(n)}') print(f'O menor valor sorteado foi: {min(n)}')
35.375
79
0.639576
34abfc5ba2b2f363e90afe9dd53efcac19d00daf
1,228
py
Python
tests/unit/http_/test_adapters.py
matt-mercer/localstack
b69ba25e495c6ef889d33a050b216d0cd1035041
[ "Apache-2.0" ]
1
2022-03-17T07:22:23.000Z
2022-03-17T07:22:23.000Z
tests/unit/http_/test_adapters.py
matt-mercer/localstack
b69ba25e495c6ef889d33a050b216d0cd1035041
[ "Apache-2.0" ]
null
null
null
tests/unit/http_/test_adapters.py
matt-mercer/localstack
b69ba25e495c6ef889d33a050b216d0cd1035041
[ "Apache-2.0" ]
null
null
null
import requests from localstack.http import Response, Router from localstack.http.adapters import RouterListener from localstack.utils.testutil import proxy_server
33.189189
77
0.592834
34ac4b2375450822de672fe9deedac50930b777e
647
py
Python
setup.py
ZaneColeRiley/ArcherProject
7d9ecf4953e3ea8ce3577321449549743eada34e
[ "MIT" ]
null
null
null
setup.py
ZaneColeRiley/ArcherProject
7d9ecf4953e3ea8ce3577321449549743eada34e
[ "MIT" ]
null
null
null
setup.py
ZaneColeRiley/ArcherProject
7d9ecf4953e3ea8ce3577321449549743eada34e
[ "MIT" ]
null
null
null
from cx_Freeze import setup, Executable import sys base = None if sys.platform == "win32": base = "Win32GUI" executables = [Executable("Archer.py", base=base, icon="favicon.ico")] setup(name="Archer", version="1.0.0", options={"build_exe": {"packages": ["tkinter", "mysql", "PIL", "time",...
40.4375
264
0.638331
34ac94f8711db1745f63a3c064eaa86f3dde0de5
2,772
py
Python
WiSe-2122/Uebung-11/Gruppe-C/U11-A1.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
1
2022-03-23T09:40:39.000Z
2022-03-23T09:40:39.000Z
WiSe-2122/Uebung-11/Gruppe-C/U11-A1.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
WiSe-2122/Uebung-11/Gruppe-C/U11-A1.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
# bung 11 - Aufgabe 1 # Mitarbeiter-Kartei # Bereitgestellt von M. Drews im Wintersemester 2021/22 # Funktionen # Programmablauf print("\n") trenner(120) print("Mitarbeiter-Kartei") trenner(120) trenner(120) ma_kartei = [] programm = True while programm: print("Was mchten Sie tun?") gueltige_eingabe = Fa...
28.875
128
0.599206
34af79c82e2f03fa8bacfe2aa4a2b6da7ce9ee22
20,230
py
Python
asciinode.py
bhsingleton/mason
9a14cdc758b7ef76e53d4ef9d30045834d6c17ef
[ "MIT" ]
1
2021-09-08T00:51:52.000Z
2021-09-08T00:51:52.000Z
asciinode.py
bhsingleton/mason
9a14cdc758b7ef76e53d4ef9d30045834d6c17ef
[ "MIT" ]
null
null
null
asciinode.py
bhsingleton/mason
9a14cdc758b7ef76e53d4ef9d30045834d6c17ef
[ "MIT" ]
null
null
null
import maya.api.OpenMaya as om from . import asciitreemixin, asciiattribute, asciiplug from .collections import hashtable, weakreflist, notifylist import logging logging.basicConfig() log = logging.getLogger(__name__) log.setLevel(logging.INFO) def namespaceChanged(self, oldNamespace, newNamespace): """...
23.997628
128
0.571824
34af9cb845a017d27fd9e7390bfebe5569ce5eaf
1,325
py
Python
freezer_api/policy.py
ctpegasus/freezer-api
b784327252ac6132a4d3b87c50e9a99c70d6c938
[ "Apache-2.0" ]
null
null
null
freezer_api/policy.py
ctpegasus/freezer-api
b784327252ac6132a4d3b87c50e9a99c70d6c938
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
freezer_api/policy.py
ctpegasus/freezer-api
b784327252ac6132a4d3b87c50e9a99c70d6c938
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
""" (c) Copyright 2015-2016 Hewlett-Packard Enterprise Company L.P. 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...
27.604167
72
0.706415
34b0627ddf54dc4030ea1fef447d1fe5ea946c8c
297
py
Python
moviepy/video/fx/all/__init__.py
odidev/moviepy
b19a690fe81b17fa582622d1c0ebe73e4e6380e7
[ "MIT" ]
8,558
2015-01-03T05:14:12.000Z
2022-03-31T21:45:38.000Z
moviepy/video/fx/all/__init__.py
odidev/moviepy
b19a690fe81b17fa582622d1c0ebe73e4e6380e7
[ "MIT" ]
1,592
2015-01-02T22:12:54.000Z
2022-03-30T13:10:40.000Z
moviepy/video/fx/all/__init__.py
odidev/moviepy
b19a690fe81b17fa582622d1c0ebe73e4e6380e7
[ "MIT" ]
1,332
2015-01-02T18:01:53.000Z
2022-03-31T22:47:28.000Z
""" moviepy.video.fx.all is deprecated. Use the fx method directly from the clip instance (e.g. ``clip.resize(...)``) or import the function from moviepy.video.fx instead. """ import warnings from moviepy.video.fx import * # noqa F401,F403 warnings.warn(f"\nMoviePy: {__doc__}", UserWarning)
22.846154
77
0.723906
34b1459af9f8293d45f8ba2c83ea76abe97d3d5b
102
py
Python
core/src/autogluon/core/scheduler/resource/__init__.py
zhiqiangdon/autogluon
71ee7ef0f05d8f0aad112d8c1719174aa33194d9
[ "Apache-2.0" ]
4,462
2019-12-09T17:41:07.000Z
2022-03-31T22:00:41.000Z
core/src/autogluon/core/scheduler/resource/__init__.py
zhiqiangdon/autogluon
71ee7ef0f05d8f0aad112d8c1719174aa33194d9
[ "Apache-2.0" ]
1,408
2019-12-09T17:48:59.000Z
2022-03-31T20:24:12.000Z
core/src/autogluon/core/scheduler/resource/__init__.py
zhiqiangdon/autogluon
71ee7ef0f05d8f0aad112d8c1719174aa33194d9
[ "Apache-2.0" ]
623
2019-12-10T02:04:18.000Z
2022-03-20T17:11:01.000Z
from .resource import * from .dist_manager import * from ...utils import get_cpu_count, get_gpu_count
25.5
49
0.794118
34b2720c17b7d23f1bc3687785eec5b224b79560
109
py
Python
hello_world.py
TruthLacksLyricism/learning-python
7a279ad0698860b612fc6b76ff99c81acd29d31b
[ "MIT" ]
null
null
null
hello_world.py
TruthLacksLyricism/learning-python
7a279ad0698860b612fc6b76ff99c81acd29d31b
[ "MIT" ]
null
null
null
hello_world.py
TruthLacksLyricism/learning-python
7a279ad0698860b612fc6b76ff99c81acd29d31b
[ "MIT" ]
null
null
null
print "This line will be printed." x = "rachel" if x == "rachel": print "Rachel" print "Hello, World!"
13.625
34
0.623853
34b3e94aca6273776ec69ea9dd2046fec59f31b5
434
py
Python
src/pyonms.py
mmahacek/PyONMS
72ef0c2717044db66e4b99fe9820a69f435f44fd
[ "MIT" ]
null
null
null
src/pyonms.py
mmahacek/PyONMS
72ef0c2717044db66e4b99fe9820a69f435f44fd
[ "MIT" ]
null
null
null
src/pyonms.py
mmahacek/PyONMS
72ef0c2717044db66e4b99fe9820a69f435f44fd
[ "MIT" ]
null
null
null
# pyonms.py from dao import api, alarms, events, nodes
27.125
83
0.665899
34b47fa6cab25d27a526a824846c9378728893e8
5,195
py
Python
predicting_molecular_properties/nn_utils.py
ashesh-0/kaggle_competitions
58e927971b6ee67583a76a5ac821430a8d0bc31a
[ "MIT" ]
1
2019-11-20T11:33:51.000Z
2019-11-20T11:33:51.000Z
predicting_molecular_properties/nn_utils.py
ashesh-0/kaggle_competitions
58e927971b6ee67583a76a5ac821430a8d0bc31a
[ "MIT" ]
null
null
null
predicting_molecular_properties/nn_utils.py
ashesh-0/kaggle_competitions
58e927971b6ee67583a76a5ac821430a8d0bc31a
[ "MIT" ]
null
null
null
""" Utility functions for Neural network """ import pandas as pd from keras.callbacks import EarlyStopping, ReduceLROnPlateau, ModelCheckpoint from sklearn.preprocessing import StandardScaler from keras.layers import Dense, BatchNormalization, Input, LeakyReLU, Dropout from keras.models import Model, load_model from ke...
35.101351
112
0.638499
34b6d3e8c3f61f05d6fffeaf8b3486a12424b3e5
2,809
py
Python
fn_portal/tests/api/test_fn026.py
AdamCottrill/FishNetPortal
4e58e05f52346ac1ab46698a03d4229c74828406
[ "MIT" ]
null
null
null
fn_portal/tests/api/test_fn026.py
AdamCottrill/FishNetPortal
4e58e05f52346ac1ab46698a03d4229c74828406
[ "MIT" ]
null
null
null
fn_portal/tests/api/test_fn026.py
AdamCottrill/FishNetPortal
4e58e05f52346ac1ab46698a03d4229c74828406
[ "MIT" ]
null
null
null
"""============================================================= ~/fn_portal/fn_portal/tests/api/test_FN026.py Created: 26 May 2021 18:01:30 DESCRIPTION: This file contains a number of unit tests that verify that the api endpoint for FN026 objects works as expected: + the fn026 list returns all of the spaces...
24.215517
79
0.603062
34b7a38557b1f2eeaa8850899a55b7d31360dad9
13,534
py
Python
test/unit_tests/braket/jobs/local/test_local_job_container.py
orclassiq/amazon-braket-sdk-python
69acaf54237ecbee14b5b5f0549fa28e32eba83b
[ "Apache-2.0" ]
null
null
null
test/unit_tests/braket/jobs/local/test_local_job_container.py
orclassiq/amazon-braket-sdk-python
69acaf54237ecbee14b5b5f0549fa28e32eba83b
[ "Apache-2.0" ]
null
null
null
test/unit_tests/braket/jobs/local/test_local_job_container.py
orclassiq/amazon-braket-sdk-python
69acaf54237ecbee14b5b5f0549fa28e32eba83b
[ "Apache-2.0" ]
null
null
null
# Copyright Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompan...
37.079452
98
0.69935
34b84d492bd695fe750bb5aa931064fc3ca9b938
31,261
py
Python
scripts/regression_test.py
seonmokim/cryptominisat2
706738236fa5553a6e3623f06806d5fded377220
[ "MIT" ]
null
null
null
scripts/regression_test.py
seonmokim/cryptominisat2
706738236fa5553a6e3623f06806d5fded377220
[ "MIT" ]
null
null
null
scripts/regression_test.py
seonmokim/cryptominisat2
706738236fa5553a6e3623f06806d5fded377220
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import with_statement # Required in 2.5 import subprocess import os import fnmatch import gzip import re import commands import getopt import sys import signal import resource import time import struct import random from random import choice from subproces...
34.504415
122
0.530949
34b86bc1dbc7088b4836cb91a3edc65c0a97f48c
5,182
py
Python
mindsdb/proxies/mysql/data_types/mysql_packet.py
aykuttasil/mindsdb
2c36b6f75f13d7104fe4d3dbb7ca307fa84f45ad
[ "MIT" ]
1
2022-03-14T00:32:53.000Z
2022-03-14T00:32:53.000Z
mindsdb/proxies/mysql/data_types/mysql_packet.py
aykuttasil/mindsdb
2c36b6f75f13d7104fe4d3dbb7ca307fa84f45ad
[ "MIT" ]
null
null
null
mindsdb/proxies/mysql/data_types/mysql_packet.py
aykuttasil/mindsdb
2c36b6f75f13d7104fe4d3dbb7ca307fa84f45ad
[ "MIT" ]
null
null
null
""" ******************************************************* * Copyright (C) 2017 MindsDB Inc. <copyright@mindsdb.com> * * This file is part of MindsDB Server. * * MindsDB Server can not be copied and/or distributed without the express * permission of MindsDB Inc **************************************************...
28.31694
147
0.588383
34b987e6c437ee88219466fd33845cf6a6a27b4b
2,538
py
Python
py/example/gol.py
zefaxet/libant
1be1865404eea729f8512e9ccd73899fbd5b7cb2
[ "MIT" ]
4
2019-10-18T06:14:36.000Z
2020-06-01T14:28:57.000Z
py/example/gol.py
zefaxet/libant
1be1865404eea729f8512e9ccd73899fbd5b7cb2
[ "MIT" ]
null
null
null
py/example/gol.py
zefaxet/libant
1be1865404eea729f8512e9ccd73899fbd5b7cb2
[ "MIT" ]
null
null
null
import pygame from random import randint from time import sleep import data SCREEN_SIZE = 700 STAGE_SIZE = 175 # 175 is largest size without bezels for 700 x 700 window sizeof_rect = int(SCREEN_SIZE / STAGE_SIZE) bezel = int((SCREEN_SIZE - (STAGE_SIZE * sizeof_rect)) / 2) directions = [] for x i...
25.897959
80
0.636722