hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
9316207e90c627d34e1845fc9367e6cc457b8539
2,898
py
Python
deeptech/training/trainers/base_trainer.py
penguinmenac3/deeptech
0c7fb170d62f193dbbb2018f7b8d42f713178bb8
[ "MIT" ]
1
2020-10-10T10:11:54.000Z
2020-10-10T10:11:54.000Z
deeptech/training/trainers/base_trainer.py
penguinmenac3/deeptech
0c7fb170d62f193dbbb2018f7b8d42f713178bb8
[ "MIT" ]
null
null
null
deeptech/training/trainers/base_trainer.py
penguinmenac3/deeptech
0c7fb170d62f193dbbb2018f7b8d42f713178bb8
[ "MIT" ]
null
null
null
"""doc # deeptech.training.trainers.base_trainer > Every trainer implements the trainer interface. """ import os from deeptech.core import logging from deeptech.core.checkpoint import load_state class BaseTrainer(object): def __init__(self, model, loss, optim, callbacks, train_data, val_data): """ ...
36.225
113
0.633195
9316427e5002f9f816996d7389b0beb7f0966a46
6,209
py
Python
letsencrypt-apache/letsencrypt_apache/tls_sni_01.py
mrudtf/letsencrypt
6a7b4a8e142eb392a8fe696d9536b52c0fc4b5e3
[ "Apache-2.0" ]
null
null
null
letsencrypt-apache/letsencrypt_apache/tls_sni_01.py
mrudtf/letsencrypt
6a7b4a8e142eb392a8fe696d9536b52c0fc4b5e3
[ "Apache-2.0" ]
null
null
null
letsencrypt-apache/letsencrypt_apache/tls_sni_01.py
mrudtf/letsencrypt
6a7b4a8e142eb392a8fe696d9536b52c0fc4b5e3
[ "Apache-2.0" ]
null
null
null
"""A class that performs TLS-SNI-01 challenges for Apache""" import os import logging from letsencrypt.plugins import common from letsencrypt_apache import obj from letsencrypt_apache import parser logger = logging.getLogger(__name__) class ApacheTlsSni01(common.TLSSNI01): """Class that performs TLS-SNI-01 ch...
34.303867
79
0.65389
93164d9d683ec4c3492e8e186cac98dbb977d9c0
17,648
py
Python
melody/solver/pitch_constraint_solver.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
1
2021-05-06T19:45:54.000Z
2021-05-06T19:45:54.000Z
melody/solver/pitch_constraint_solver.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
null
null
null
melody/solver/pitch_constraint_solver.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
null
null
null
""" File: pitch_constraint_solver.py Purpose: For a melody define as a p_map, and a set of policy constraints, solve for compatible melodies satisfying constraints, as a set of p_map's. """ from melody.solver.p_map import PMap from structure.note import Note from misc.ordered_set import OrderedSet class ...
42.939173
120
0.577913
9316530f3a0833b8c8954cef1e3b6f8ea74cf2b2
180
py
Python
by-session/class-921/week6/entekhab.py
amiraliakbari/sharif-mabani-python
5d14a08d165267fe71c28389ddbafe29af7078c5
[ "MIT" ]
2
2015-04-29T20:59:35.000Z
2018-09-26T13:33:43.000Z
by-session/class-921/week6/entekhab.py
amiraliakbari/sharif-mabani-python
5d14a08d165267fe71c28389ddbafe29af7078c5
[ "MIT" ]
null
null
null
by-session/class-921/week6/entekhab.py
amiraliakbari/sharif-mabani-python
5d14a08d165267fe71c28389ddbafe29af7078c5
[ "MIT" ]
null
null
null
#c(n, r) = c(n-1, r) + c(n-1, r-1) #r <= n #r,n >= 0 def c(n, r): if r == 0: return 1 if n == r: return 1 return c(n-1, r) + c(n-1, r-1) print c(6, 4)
15
34
0.377778
93168cba1f484f67bcaa8dcb12ca6a6507673754
24,419
py
Python
tests/frontend/pull.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
tests/frontend/pull.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
tests/frontend/pull.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
# Pylint doesn't play well with fixtures and dependency injection from pytest # pylint: disable=redefined-outer-name import os import shutil import stat import pytest from buildstream import utils, _yaml from buildstream.testing import cli # pylint: disable=unused-import from buildstream.testing import create_repo fr...
40.971477
119
0.660305
93169d126b47eeb71243f854f77737607a717b6c
36,278
py
Python
glue/core/data.py
JudoWill/glue
7372b58d44f69107877fa87eeaf8209c0e4bfff2
[ "BSD-3-Clause" ]
null
null
null
glue/core/data.py
JudoWill/glue
7372b58d44f69107877fa87eeaf8209c0e4bfff2
[ "BSD-3-Clause" ]
null
null
null
glue/core/data.py
JudoWill/glue
7372b58d44f69107877fa87eeaf8209c0e4bfff2
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, division, print_function import operator import logging import numpy as np import pandas as pd from .contracts import contract from .coordinates import Coordinates from .visual import VisualAttributes from .visual import COLORS from .exceptions import IncompatibleAttribute fro...
31.409524
97
0.602404
9316b0f5c274c478be9ce1fab806153f63e8d8e7
532
py
Python
practice/75.py
porala/python
41213189a9b35b5b8c40c048f4d6cd3f8e5f25f4
[ "DOC" ]
1
2020-01-15T11:04:16.000Z
2020-01-15T11:04:16.000Z
practice/75.py
porala/python
41213189a9b35b5b8c40c048f4d6cd3f8e5f25f4
[ "DOC" ]
2
2021-03-31T19:36:19.000Z
2021-06-10T22:29:26.000Z
practice/75.py
porala/python
41213189a9b35b5b8c40c048f4d6cd3f8e5f25f4
[ "DOC" ]
null
null
null
#Plot the data in the file provided through the URL http://www.pythonhow.com/data/sampledata.txt import pandas import pylab as plt data = pandas.read_csv("http://www.pythonhow.com/data/sampledata.txt") data.plot(x='x', y='y', kind='scatter') plt.show() """ from bokeh.plotting import figure from bokeh.io i...
24.181818
97
0.699248
9316f7469018c4802902b6a415535497116e8ac2
164
py
Python
turbulette/management/templates/project/app.py
gitter-badger/turbulette
abc61b58033f4f53bbefe5a1e10bf6550d2ce86f
[ "BSD-3-Clause" ]
null
null
null
turbulette/management/templates/project/app.py
gitter-badger/turbulette
abc61b58033f4f53bbefe5a1e10bf6550d2ce86f
[ "BSD-3-Clause" ]
null
null
null
turbulette/management/templates/project/app.py
gitter-badger/turbulette
abc61b58033f4f53bbefe5a1e10bf6550d2ce86f
[ "BSD-3-Clause" ]
null
null
null
from os import environ from turbulette import turbulette_starlette environ.setdefault("TURBULETTE_SETTINGS_MODULE", "{{ settings }}") app = turbulette_starlette()
27.333333
66
0.810976
93170fb82ad33ae67afda4f516f7ebc176e60f49
3,973
py
Python
alipay/aop/api/request/AlipayEcoSignflowsDetailQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayEcoSignflowsDetailQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayEcoSignflowsDetailQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayEcoSignflowsDetailQueryModel import AlipayEcoSignflowsDetailQueryModel class AlipayEcoSignflowsDetailQueryRequest(object): ...
27.4
148
0.644853
931754878dd873cbab57192b725f0a95788d431d
7,208
py
Python
server/danesfield_server/algorithms/generate_point_cloud.py
Kitware/Danesfield-App
70d9f5c7c5af2ca92d274c99175783ea43087592
[ "Apache-2.0" ]
25
2018-12-19T08:45:13.000Z
2022-03-27T14:20:42.000Z
server/danesfield_server/algorithms/generate_point_cloud.py
Kitware/Danesfield-App
70d9f5c7c5af2ca92d274c99175783ea43087592
[ "Apache-2.0" ]
10
2018-11-30T22:21:45.000Z
2022-01-21T19:43:47.000Z
server/danesfield_server/algorithms/generate_point_cloud.py
Kitware/Danesfield-App
70d9f5c7c5af2ca92d274c99175783ea43087592
[ "Apache-2.0" ]
7
2018-12-03T21:42:53.000Z
2021-09-07T17:09:10.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # Copyright Kitware Inc. and Contributors # Distributed under the Apache License, 2.0 (apache.org/licenses/LICENSE-2.0) # See accompanying Copyright.txt and LICENSE files for details ##########...
29.662551
83
0.611265
9317ce2d3ae451adb9a8922bf5881f6c0b3e35a2
1,118
py
Python
leetcode_python/String/delete-columns-to-make-sorted.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
18
2019-08-01T07:45:02.000Z
2022-03-31T18:05:44.000Z
leetcode_python/String/delete-columns-to-make-sorted.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/String/delete-columns-to-make-sorted.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
15
2019-12-29T08:46:20.000Z
2022-03-08T14:14:05.000Z
# V0 # V1 # https://blog.csdn.net/fuxuemingzhu/article/details/84206638 class Solution: def minDeletionSize(self, A): """ :type A: List[str] :rtype: int """ res = 0 N = len(A[0]) for i in range(N): col = [a[i] for a in A] if col != s...
22.816327
65
0.440966
9317e6a03bcc568d32415864a14ff28ff9511914
6,234
py
Python
tests/test_show_details.py
andrsd/podcastista
c05a1de09d2820899aebe592d3d4b01d64d1e5fe
[ "MIT" ]
null
null
null
tests/test_show_details.py
andrsd/podcastista
c05a1de09d2820899aebe592d3d4b01d64d1e5fe
[ "MIT" ]
17
2021-09-22T12:21:46.000Z
2022-02-26T12:26:40.000Z
tests/test_show_details.py
andrsd/podcastista
c05a1de09d2820899aebe592d3d4b01d64d1e5fe
[ "MIT" ]
null
null
null
import platform import pytest from unittest.mock import MagicMock, patch if platform.system() == "Darwin": @pytest.fixture def widget(qtbot, main_window): from podcastista.ShowDetails import ShowDetails w = ShowDetails(main_window) yield w def test_init(widget): from podca...
32.134021
78
0.567533
9317f70a1d4a85f84a839a9197d32fe178f8874a
407
py
Python
arc/arc123/a/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
arc/arc123/a/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
arc/arc123/a/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
import sys from collections import defaultdict sys.setrecursionlimit(10 ** 6) stdin = sys.stdin INF = float('inf') ni = lambda: int(ns()) na = lambda: list(map(int, stdin.readline().split())) ns = lambda: stdin.readline().strip() a, b, c = na() left = 2 * b right = a + c ans = 0 if left > right: ans = left - ri...
18.5
54
0.614251
931801fff87f638bfe132fbc78a670c21b5533f1
5,348
py
Python
eventsourcing/tests/core_tests/test_event_store.py
alexanderlarin/eventsourcing
6f2a4ded3c783ba3ee465243a48f66ecdee20f52
[ "BSD-3-Clause" ]
1
2020-02-10T08:12:31.000Z
2020-02-10T08:12:31.000Z
eventsourcing/tests/core_tests/test_event_store.py
alexanderlarin/eventsourcing
6f2a4ded3c783ba3ee465243a48f66ecdee20f52
[ "BSD-3-Clause" ]
null
null
null
eventsourcing/tests/core_tests/test_event_store.py
alexanderlarin/eventsourcing
6f2a4ded3c783ba3ee465243a48f66ecdee20f52
[ "BSD-3-Clause" ]
null
null
null
from uuid import uuid4 from eventsourcing.example.domainmodel import Example from eventsourcing.infrastructure.eventstore import EventStore from eventsourcing.infrastructure.sequenceditem import SequencedItem from eventsourcing.infrastructure.sequenceditemmapper import SequencedItemMapper from eventsourcing.tests.data...
36.380952
92
0.666978
931806f950045f63f43168c82659e07e2614b2df
30
py
Python
btd6_memory_info/generated/NinjaKiwi/LiNK/Endpoints/Utils_ESFullSearch/utils_es_full_search.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/NinjaKiwi/LiNK/Endpoints/Utils_ESFullSearch/utils_es_full_search.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/NinjaKiwi/LiNK/Endpoints/Utils_ESFullSearch/utils_es_full_search.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class Utils_ESFullSearch: pass
30
30
0.9
93185e549084d74a4657b897863b03e59302852c
9,508
py
Python
waterbutler/providers/dropbox/provider.py
laurenrevere/waterbutler
4f358d94376997cd9592b18b67d13a7482c7aa2a
[ "Apache-2.0" ]
null
null
null
waterbutler/providers/dropbox/provider.py
laurenrevere/waterbutler
4f358d94376997cd9592b18b67d13a7482c7aa2a
[ "Apache-2.0" ]
null
null
null
waterbutler/providers/dropbox/provider.py
laurenrevere/waterbutler
4f358d94376997cd9592b18b67d13a7482c7aa2a
[ "Apache-2.0" ]
null
null
null
import json import http import asyncio from waterbutler.core import streams from waterbutler.core import provider from waterbutler.core import exceptions from waterbutler.core.path import WaterButlerPath from waterbutler.providers.dropbox import settings from waterbutler.providers.dropbox.metadata import DropboxRevis...
35.084871
109
0.565419
931866c70b27fded077ed5ed23ec885d5e45e97a
3,330
py
Python
pcstac/pcstac/search.py
developmentseed/planetary-computer-apis
174db793bfe9f572fff13b04e13bac1005d212fc
[ "MIT" ]
null
null
null
pcstac/pcstac/search.py
developmentseed/planetary-computer-apis
174db793bfe9f572fff13b04e13bac1005d212fc
[ "MIT" ]
1
2022-01-13T15:51:19.000Z
2022-01-13T15:51:19.000Z
pcstac/pcstac/search.py
developmentseed/planetary-computer-apis
174db793bfe9f572fff13b04e13bac1005d212fc
[ "MIT" ]
null
null
null
import logging from typing import Any, Callable, Coroutine, Dict, List, Optional, Union import attr from geojson_pydantic.geometries import ( GeometryCollection, LineString, MultiLineString, MultiPoint, MultiPolygon, Point, Polygon, ) from pydantic import validator from pydantic.types impor...
28.956522
86
0.645646
9318cb958097f7e1459bf695a43f7e0d41a584a8
1,084
py
Python
tinydb_base/exporter/jsonExport.py
MechaCoder/tinydb-baseClass
10ce8b8b34418d6f48287bbe83713cbde0e9270a
[ "MIT" ]
4
2020-11-14T20:19:55.000Z
2021-11-26T04:04:11.000Z
tinydb_base/exporter/jsonExport.py
MechaCoder/tinydb-baseClass
10ce8b8b34418d6f48287bbe83713cbde0e9270a
[ "MIT" ]
20
2020-03-31T11:34:35.000Z
2021-12-24T15:04:19.000Z
tinydb_base/exporter/jsonExport.py
MechaCoder/tinydb-baseClass
10ce8b8b34418d6f48287bbe83713cbde0e9270a
[ "MIT" ]
null
null
null
from datetime import datetime from json import dumps from tinydb.database import Document from .exceptions import ExportTypeError def jsonExport(rows: list, exportPath: str): """ Exports a table list data to a json file. """ if isinstance(rows, list) is False: raise ExportTypeError('the rows must be...
27.1
100
0.637454
931951441bce56cd74f38e7f4bb907266066d766
2,851
py
Python
sahana/admin.py
jj0hns0n/mednet
efb6681292e7ac8f870ee5967a5a2b352853ae35
[ "BSD-3-Clause" ]
2
2016-02-18T01:06:04.000Z
2016-02-18T03:53:37.000Z
sahana/admin.py
jj0hns0n/mednet
efb6681292e7ac8f870ee5967a5a2b352853ae35
[ "BSD-3-Clause" ]
null
null
null
sahana/admin.py
jj0hns0n/mednet
efb6681292e7ac8f870ee5967a5a2b352853ae35
[ "BSD-3-Clause" ]
null
null
null
from mednet.sahana.models import * from django.contrib.gis import admin class HmsHospitalAdmin(admin.OSMGeoAdmin): list_display = ('name', 'city', 'phone_business', 'phone_emergency', 'ems_status', 'facility_status', 'clinical_status', 'security_status') search_fields = ('name', 'comments', 'phone_business', ...
42.552239
143
0.741143
93199c6041277b906f131c20d97f81c26a424f58
741
py
Python
tests/no_real_test.py
Maximilian-Staab/karlsruhe_trash_crawler
c5be08803888e73a6ade7d63e858a6a14bae27e6
[ "MIT" ]
null
null
null
tests/no_real_test.py
Maximilian-Staab/karlsruhe_trash_crawler
c5be08803888e73a6ade7d63e858a6a14bae27e6
[ "MIT" ]
null
null
null
tests/no_real_test.py
Maximilian-Staab/karlsruhe_trash_crawler
c5be08803888e73a6ade7d63e858a6a14bae27e6
[ "MIT" ]
null
null
null
import aiounittest import pytest import requests_mock from muell import ALL_STREETS_URL, put_streets_in_db from muell.main import connect, send_trash class NoRealTest(aiounittest.AsyncTestCase): @pytest.mark.skip() def test_get_all_streets(self): with requests_mock.Mocker() as mock: with ...
33.681818
78
0.699055
9319b58c6ba4c5c26e710ede3c7189c3191d1a39
14,327
py
Python
pygithubctl/pygithubctl.py
sarathkumarsivan/pygithubctl
f99e5a5a4c35c5d877c617435965c468a9b4f6c7
[ "MIT" ]
null
null
null
pygithubctl/pygithubctl.py
sarathkumarsivan/pygithubctl
f99e5a5a4c35c5d877c617435965c468a9b4f6c7
[ "MIT" ]
null
null
null
pygithubctl/pygithubctl.py
sarathkumarsivan/pygithubctl
f99e5a5a4c35c5d877c617435965c468a9b4f6c7
[ "MIT" ]
1
2020-02-29T02:50:13.000Z
2020-02-29T02:50:13.000Z
#!/usr/bin/env python # Copyright (c) 2019 Sarath Kumar Sivan, https://github.com/sarathkumarsivan # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without li...
38.721622
90
0.684582
9319c4df6fc4ca689807a90a2ee9326215c9a124
2,481
py
Python
expts/process_not_mnist.py
jayaram-r/adversarial-detection
94fd0881a3eef179e66301629c9a5e348ce46bd1
[ "MIT" ]
12
2021-06-08T14:34:10.000Z
2022-03-27T08:01:00.000Z
expts/process_not_mnist.py
adverML/adversarial-detection
0173b19a7352a2ec769f24a89d4e2cf8f4423514
[ "MIT" ]
6
2021-04-19T19:13:37.000Z
2022-02-15T17:50:31.000Z
expts/process_not_mnist.py
adverML/adversarial-detection
0173b19a7352a2ec769f24a89d4e2cf8f4423514
[ "MIT" ]
6
2021-05-26T11:53:45.000Z
2022-02-23T22:39:33.000Z
# Utility to load the not-mnist dataset, pre-process and save it to numpy files import os from PIL import Image import numpy as np from sklearn.model_selection import StratifiedKFold import torch from torchvision.transforms.functional import normalize from helpers.constants import DATA_PATH, NUMPY_DATA_PATH, NORMALIZE_...
35.442857
95
0.71705
9319ee697ed3de3fbd9e6cb2293e3e8bb02287e6
3,753
py
Python
thiscli/project/nodejs.py
iBelieve/this
9653a83ebd1ee1f1c04c72e3bab96635316c2ff7
[ "MIT" ]
12
2018-04-15T13:48:49.000Z
2021-09-22T13:33:19.000Z
thiscli/project/nodejs.py
iBelieve/dothingy
9653a83ebd1ee1f1c04c72e3bab96635316c2ff7
[ "MIT" ]
13
2018-04-23T22:39:51.000Z
2021-06-01T22:10:40.000Z
thiscli/project/nodejs.py
iBelieve/dothingy
9653a83ebd1ee1f1c04c72e3bab96635316c2ff7
[ "MIT" ]
3
2018-04-23T18:30:37.000Z
2021-08-20T20:26:24.000Z
import json import os from . import Project from ..env import short_env_name, all_env_names, DEV_PROD_NAMES from ..util import needs_update, has_command, warn, fatal def get_npm_cmd(path): has_yarn = has_command('yarn') has_yarn_lock = os.path.exists(os.path.join(path, 'yarn.lock')) has_npm_lock = os.pat...
30.512195
78
0.565414
9319f788ddf612298baea4df52a6a4dc060b4ff3
1,170
py
Python
server/login/migrations/0002_auto_20200513_2259.py
ltw18/action_recognition
fa6fe963fe3697b43af3e7cb31fa8150d8ecbf07
[ "MIT" ]
1
2020-05-19T08:50:03.000Z
2020-05-19T08:50:03.000Z
server/login/migrations/0002_auto_20200513_2259.py
ltw18/action_recognition
fa6fe963fe3697b43af3e7cb31fa8150d8ecbf07
[ "MIT" ]
null
null
null
server/login/migrations/0002_auto_20200513_2259.py
ltw18/action_recognition
fa6fe963fe3697b43af3e7cb31fa8150d8ecbf07
[ "MIT" ]
null
null
null
# Generated by Django 2.2.12 on 2020-05-13 22:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('login', '0001_initial'), ] operations = [ migrations.AlterField( model_name='video', name='alarm_action', ...
30
128
0.539316
931a3da886611623726149908540197b36c52263
3,126
py
Python
tests/test_action_issue.py
Xander982/gaphor
b5c55fa18b79b80d9c14ee0cb0ce8a9963e90f86
[ "Apache-2.0" ]
null
null
null
tests/test_action_issue.py
Xander982/gaphor
b5c55fa18b79b80d9c14ee0cb0ce8a9963e90f86
[ "Apache-2.0" ]
null
null
null
tests/test_action_issue.py
Xander982/gaphor
b5c55fa18b79b80d9c14ee0cb0ce8a9963e90f86
[ "Apache-2.0" ]
null
null
null
from gaphor import UML from gaphor.application import distribution from gaphor.storage import storage from gaphor.tests import TestCase from gaphor.UML.actions import ActionItem, FlowItem class ActionIssueTestCase(TestCase): def test_it(self): """ Test an issue when loading a freshly created actio...
38.592593
80
0.635317
931a50a8b494b438d60527f4b275a7f5b5bb9223
3,525
py
Python
components/flow-generator/src/services/test_generator_service.py
sfahad1414/AGENT
84069edc96b6190bb03ffd5099cbc8966061a563
[ "Apache-2.0" ]
15
2020-05-06T16:17:56.000Z
2022-03-30T12:25:16.000Z
components/flow-generator/src/services/test_generator_service.py
dionny/AGENT
8a833406b590e23623fcc67db99f6f964d002396
[ "Apache-2.0" ]
2
2021-08-25T16:17:16.000Z
2022-02-10T06:35:58.000Z
components/flow-generator/src/services/test_generator_service.py
dionny/AGENT
8a833406b590e23623fcc67db99f6f964d002396
[ "Apache-2.0" ]
7
2020-04-07T18:47:55.000Z
2022-03-30T12:14:58.000Z
"""Handles abstract test flow generation requests.""" import os import random import json import numpy as np import tensorflow as tf from aist_common.log import get_logger from keras.models import load_model LOGGER = get_logger('test-generator-service') BASE_PATH = os.path.abspath(os.path.join(os.path.dirname(__file...
33.571429
108
0.60539
931a5cc7df3dbb648b075cf09996e0bc6a0c7709
100
py
Python
generator/templates/entity_type.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
544
2016-08-04T17:10:16.000Z
2022-03-31T07:17:20.000Z
generator/templates/entity_type.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
438
2016-10-11T12:24:22.000Z
2022-03-31T19:30:35.000Z
generator/templates/entity_type.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
202
2016-08-22T19:29:40.000Z
2022-03-30T20:26:15.000Z
from office365.runtime.client_object import ClientObject class EntityType(ClientObject): pass
16.666667
56
0.82
931a6c1b8856cfe5805daade17567c846198ee02
364
py
Python
src/python/setup.py
garmin-data/garmdown
5f466ebb0b9450890d5fc75336ccafa3654a9464
[ "MIT" ]
14
2020-01-13T10:39:35.000Z
2021-12-19T13:17:46.000Z
src/python/setup.py
garmin-data/garmdown
5f466ebb0b9450890d5fc75336ccafa3654a9464
[ "MIT" ]
4
2020-02-28T08:39:17.000Z
2021-02-28T19:05:06.000Z
src/python/setup.py
garmin-data/garmdown
5f466ebb0b9450890d5fc75336ccafa3654a9464
[ "MIT" ]
6
2020-04-22T06:12:07.000Z
2022-01-02T13:25:24.000Z
from pathlib import Path from zensols.pybuild import SetupUtil SetupUtil( setup_path=Path(__file__).parent.absolute(), name="zensols.garmdown", package_names=['zensols', 'resources'], package_data={'': ['*.conf']}, description='Download Garmin Connect data', user='plandes', project='garmdow...
26
48
0.681319
931a81274b4fe2ae830421b9322bcb0da3ab1178
13,497
py
Python
SCRAPE/Lib/site-packages/twisted/internet/test/test_fdset.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
4,612
2015-01-01T12:57:23.000Z
2022-03-30T01:08:23.000Z
SCRAPE/Lib/site-packages/twisted/internet/test/test_fdset.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1,243
2015-01-23T17:23:59.000Z
2022-03-28T13:46:17.000Z
SCRAPE/Lib/site-packages/twisted/internet/test/test_fdset.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1,236
2015-01-13T14:41:26.000Z
2022-03-17T07:12:36.000Z
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for implementations of L{IReactorFDSet}. """ import os import socket import traceback from unittest import skipIf from zope.interface import implementer from twisted.internet.abstract import FileDescriptor from twisted.internet.interf...
32.135714
80
0.624954
931ae14e67d09ed935db9454d3a7effb6ccc3169
39,303
py
Python
private/templates/DRMP/controllers.py
gurlinthewurld/eden
726aea55c95ee33f48dace63f76496e22e529157
[ "MIT" ]
1
2018-01-06T12:58:32.000Z
2018-01-06T12:58:32.000Z
private/templates/DRMP/controllers.py
gurlinthewurld/eden
726aea55c95ee33f48dace63f76496e22e529157
[ "MIT" ]
null
null
null
private/templates/DRMP/controllers.py
gurlinthewurld/eden
726aea55c95ee33f48dace63f76496e22e529157
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from os import path try: import json # try stdlib (Python 2.6) except ImportError: try: import simplejson as json # try external module except: import gluon.contrib.simplejson as json # fallback to pure-Python module from gluon import current from gluon.html import...
36.973659
117
0.445742
931b0679bec8b0e304e8efdd210f58df3fe90566
2,052
py
Python
starterkit/password_validation.py
MikaSoftware/django-starterk
b82c4cb56ab8ec0b46136e9efcc3d6481fca1eeb
[ "BSD-3-Clause" ]
1
2019-07-09T20:31:18.000Z
2019-07-09T20:31:18.000Z
starterkit/password_validation.py
MikaSoftware/django-starterk
b82c4cb56ab8ec0b46136e9efcc3d6481fca1eeb
[ "BSD-3-Clause" ]
4
2020-02-11T23:36:41.000Z
2020-06-05T19:40:05.000Z
starterkit/password_validation.py
MikaSoftware/django-starterkit
b82c4cb56ab8ec0b46136e9efcc3d6481fca1eeb
[ "BSD-3-Clause" ]
null
null
null
import re from string import punctuation from django.core.exceptions import ValidationError from django.utils.translation import ugettext as _ class UppercaseCharacterPasswortValidator(object): def __init__(self, min_occurrence=1): self.min_occurrence = min_occurrence def validate(self, password, use...
38
114
0.63694
931b26af350ce43cbf964ba0f07e86bcfe9d3922
1,184
py
Python
setup.py
akursar/aiohttp-client-cache
8bddc511c46fb5dfe06e7638a963d8a262adecc7
[ "MIT" ]
null
null
null
setup.py
akursar/aiohttp-client-cache
8bddc511c46fb5dfe06e7638a963d8a262adecc7
[ "MIT" ]
null
null
null
setup.py
akursar/aiohttp-client-cache
8bddc511c46fb5dfe06e7638a963d8a262adecc7
[ "MIT" ]
null
null
null
#!/usr/bin/env python from itertools import chain from setuptools import find_packages, setup from aiohttp_client_cache import __version__ extras_require = { # Packages used for CI jobs 'build': ['coveralls', 'twine', 'wheel'], # Packages for all supported backends 'backends': ['aiosqlite', 'boto3', '...
26.311111
74
0.625
931b7082aa8181bbb48f08be42bf93aeaf146121
5,669
py
Python
doc/conf.py
thekad/clusto
c141ea3ef4931c6a21fdf42845c6e9de5ee08caa
[ "BSD-3-Clause" ]
1
2018-08-18T20:07:29.000Z
2018-08-18T20:07:29.000Z
doc/conf.py
thekad/clusto
c141ea3ef4931c6a21fdf42845c6e9de5ee08caa
[ "BSD-3-Clause" ]
null
null
null
doc/conf.py
thekad/clusto
c141ea3ef4931c6a21fdf42845c6e9de5ee08caa
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # clusto documentation build configuration file, created by # sphinx-quickstart on Wed Feb 24 23:53:25 2010. # # This file is execfile()d with the current directory set to its containing dir. # # The contents of this file are pickled, so don't put values in the namespace # that aren't pickleab...
31.494444
82
0.727289
931b8765540d8dd1f5cea0136c2b82d5b6172f4b
443
py
Python
core/migrations/0004_alter_userprofile_id.py
tiagocordeiro/zumaq-partners
ba2c5d4257438ec062ef034096cd203efe58ef4a
[ "MIT" ]
1
2019-02-13T11:01:25.000Z
2019-02-13T11:01:25.000Z
core/migrations/0004_alter_userprofile_id.py
tiagocordeiro/zumaq-partners
ba2c5d4257438ec062ef034096cd203efe58ef4a
[ "MIT" ]
619
2018-11-26T06:11:05.000Z
2022-03-31T22:56:13.000Z
core/migrations/0004_alter_userprofile_id.py
tiagocordeiro/zumaq-partners
ba2c5d4257438ec062ef034096cd203efe58ef4a
[ "MIT" ]
1
2020-03-12T16:34:13.000Z
2020-03-12T16:34:13.000Z
# Generated by Django 3.2 on 2021-04-20 13:36 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0003_auto_20201022_0123'), ] operations = [ migrations.AlterField( model_name='userprofile', name='id', ...
23.315789
111
0.62754
931bae4335e44eaf12a0512c17e6a41660c28e8b
4,028
py
Python
alipay/aop/api/request/AlipayPcreditHuabeiSceneprodBenefitAddRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayPcreditHuabeiSceneprodBenefitAddRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayPcreditHuabeiSceneprodBenefitAddRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayPcreditHuabeiSceneprodBenefitAddModel import AlipayPcreditHuabeiSceneprodBenefitAddModel class AlipayPcreditHuabeiSceneprodBen...
27.77931
148
0.649454
931bc59f97189c6d39a0c1351c95061c67b27faf
585
py
Python
terrascript/provider/DeviaVir/gsuite.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/provider/DeviaVir/gsuite.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/provider/DeviaVir/gsuite.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/provider/DeviaVir/gsuite.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:17:44 UTC) import terrascript class gsuite(terrascript.Provider): """A @HashiCorp Terraform provider for managing G Suite resources.""" __description__ = "A @HashiCorp Terraform provider for managing G S...
29.25
87
0.724786
931bcb41e6bd32b10d60f6abef9caacf1e7758a4
8,572
py
Python
neutron/tests/unit/objects/qos/test_rule.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
4
2018-08-05T00:43:03.000Z
2021-10-13T00:45:45.000Z
neutron/tests/unit/objects/qos/test_rule.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
8
2018-06-14T14:50:16.000Z
2018-11-13T16:30:42.000Z
neutron/tests/unit/objects/qos/test_rule.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
7
2018-06-12T18:57:04.000Z
2019-05-09T15:42:30.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
40.433962
79
0.690387
931bcc4c4015113cab559f72b0e38acac3f10237
1,685
py
Python
python/test/test_neighbor_search_filter.py
openlattice/api-clients
1d5be9861785b295089b732f37464e31bf80c8ca
[ "Apache-2.0" ]
null
null
null
python/test/test_neighbor_search_filter.py
openlattice/api-clients
1d5be9861785b295089b732f37464e31bf80c8ca
[ "Apache-2.0" ]
1
2021-01-20T00:20:01.000Z
2021-01-20T00:20:01.000Z
python/test/test_neighbor_search_filter.py
openlattice/api-clients
1d5be9861785b295089b732f37464e31bf80c8ca
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ OpenLattice API OpenLattice API # noqa: E501 The version of the OpenAPI document: 0.0.1 Contact: support@openlattice.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import datetime import openlattice from openlat...
25.923077
96
0.58635
931be29cc285fac3b368fad4896cffdf3ebc99cf
981
py
Python
src/inventory.py
gertwin/Minecraft
521207410b8552e9c643eef825c7c78ae0e58340
[ "MIT" ]
null
null
null
src/inventory.py
gertwin/Minecraft
521207410b8552e9c643eef825c7c78ae0e58340
[ "MIT" ]
null
null
null
src/inventory.py
gertwin/Minecraft
521207410b8552e9c643eef825c7c78ae0e58340
[ "MIT" ]
null
null
null
class Inventory: """ Inventory class """ def __init__(self): self.GRASS = self.tex_coords((1, 0), (0, 1), (0, 0)) self.SAND = self.tex_coords((1, 1), (1, 1), (1, 1)) self.BRICK = self.tex_coords((2, 0), (2, 0), (2, 0)) self.STONE = self.tex_coords((2, 1), (2, 1), (2, 1...
24.525
74
0.501529
931be476e7c2304dde3059fa9a235854403d3015
2,590
py
Python
tests/test_api.py
LaudateCorpus1/windlass
721c3a8eb7e0afc5b8a152d90958a1b9e007c5c5
[ "Apache-2.0" ]
4
2018-09-11T15:57:10.000Z
2019-06-17T08:01:51.000Z
tests/test_api.py
LaudateCorpus1/windlass
721c3a8eb7e0afc5b8a152d90958a1b9e007c5c5
[ "Apache-2.0" ]
8
2019-06-11T10:17:29.000Z
2021-05-04T16:59:28.000Z
tests/test_api.py
LaudateCorpus1/windlass
721c3a8eb7e0afc5b8a152d90958a1b9e007c5c5
[ "Apache-2.0" ]
1
2019-05-30T15:33:42.000Z
2019-05-30T15:33:42.000Z
# # (c) Copyright 2018-2019 Hewlett Packard Enterprise Development LP # # 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 app...
37
79
0.695367
931bec0a50cb4d9ba57da6afb4db2c7d62045bf2
102
py
Python
tests/testAny.py
samueldy/pov_mileage_stats
4f142cacdda0ea39aceab174a29b71068aaefa17
[ "MIT" ]
null
null
null
tests/testAny.py
samueldy/pov_mileage_stats
4f142cacdda0ea39aceab174a29b71068aaefa17
[ "MIT" ]
null
null
null
tests/testAny.py
samueldy/pov_mileage_stats
4f142cacdda0ea39aceab174a29b71068aaefa17
[ "MIT" ]
null
null
null
import unittest class myTests(unittest.TestCase): def test_0(self): self.assertEqual(1,1)
20.4
33
0.705882
931c348463b036a485d4e4842fa6f53da340f1a8
8,123
py
Python
botcity/maestro/model.py
botcity-dev/botcity-maestro-sdk-python
63b942dacc0266df12fcd3430d119f9efccc9c71
[ "Apache-2.0" ]
9
2021-06-10T17:43:01.000Z
2022-03-15T12:29:39.000Z
botcity/maestro/model.py
botcity-dev/botcity-maestro-sdk-python
63b942dacc0266df12fcd3430d119f9efccc9c71
[ "Apache-2.0" ]
null
null
null
botcity/maestro/model.py
botcity-dev/botcity-maestro-sdk-python
63b942dacc0266df12fcd3430d119f9efccc9c71
[ "Apache-2.0" ]
4
2021-08-18T14:47:59.000Z
2022-02-19T20:31:00.000Z
import enum import json from dataclasses import asdict, dataclass from typing import Any, Dict, Optional class AlertType(str, enum.Enum): """ Type of alerts to be emitted. Attributes: INFO (str): Information alert type WARN (str): Warning alert type ERROR (str): Error alert type ...
27.914089
100
0.625631
931c5234cc22a9031bb34362182f850daf83d912
754
py
Python
tests/test_inspections.py
NCPlayz/jishaku
9e99154613d03925c94cc1be522604c6065a73bd
[ "MIT" ]
null
null
null
tests/test_inspections.py
NCPlayz/jishaku
9e99154613d03925c94cc1be522604c6065a73bd
[ "MIT" ]
null
null
null
tests/test_inspections.py
NCPlayz/jishaku
9e99154613d03925c94cc1be522604c6065a73bd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ jishaku.inspections test ~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2020 Devon (Gorialis) R :license: MIT, see LICENSE for more details. """ import collections # for __iadd__ test import discord import pytest from jishaku.repl.inspections import all_inspections from utils import run_a...
21.542857
64
0.649867
931c842511de668673c55f45132c1f2e0d378f64
713
py
Python
aula3/Aula3-1-Input-If-Else2.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
aula3/Aula3-1-Input-If-Else2.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
aula3/Aula3-1-Input-If-Else2.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
#--- Aula 3 18-11-2019 #--- Input e Estruturas de decisão # lista_numeros = [1,2,3] # numero = 2 # if 'Teti'.count('t') > 0 : # print('Existe "t" em "teti" ') # if 'e' in 'Teti' : # print('Existe "e" em "teti" ') # if 'M' not in 'Teti' : # print('Nao Existe "M" em "teti" ') # if numero in lista_numeros...
16.204545
40
0.546985
931c9f58da0b59e9364a0d7ccbb38a6e5096a107
1,697
py
Python
passrotate/providers/facebook.py
simon816/pass-rotate
2c133e736cb27cebf2d903f863722b685f4f76fc
[ "MIT" ]
null
null
null
passrotate/providers/facebook.py
simon816/pass-rotate
2c133e736cb27cebf2d903f863722b685f4f76fc
[ "MIT" ]
null
null
null
passrotate/providers/facebook.py
simon816/pass-rotate
2c133e736cb27cebf2d903f863722b685f4f76fc
[ "MIT" ]
null
null
null
from passrotate.provider import Provider, ProviderOption, register_provider from passrotate.forms import get_form import requests class Facebook(Provider): """ [facebook.com] username=Your Facebook username """ name = "Facebook" domains = [ "facebook.com", ] options = { ...
32.634615
97
0.624042
931cb804515b642e97bcc7881b3136c1508487d6
443
py
Python
two_pointer/26_remove_duplicates_from_sorted_array.py
shawlu95/Algorithm-Toolbox
b6c7b2228d8e70e0842e0bad607533a2c8322cf0
[ "MIT" ]
null
null
null
two_pointer/26_remove_duplicates_from_sorted_array.py
shawlu95/Algorithm-Toolbox
b6c7b2228d8e70e0842e0bad607533a2c8322cf0
[ "MIT" ]
null
null
null
two_pointer/26_remove_duplicates_from_sorted_array.py
shawlu95/Algorithm-Toolbox
b6c7b2228d8e70e0842e0bad607533a2c8322cf0
[ "MIT" ]
2
2020-02-07T20:49:02.000Z
2020-02-11T06:01:55.000Z
class Solution: def removeDuplicates(self, nums): """ :type nums: List[int] :rtype: int """ s, f = 0, 1 while f < len(nums): if nums[s] != nums[f]: s += 1 nums[s] = nums[f] f += 1 return nums, s + 1 sol...
23.315789
54
0.458239
931cce83d91f7245438d9bf4a19b7d73672bc711
411
py
Python
setup.py
texnofobix/pyrcon
fa9eddb57dc4ee4cbdb2cf90925397dfaa9d8d32
[ "MIT" ]
1
2021-12-20T16:52:12.000Z
2021-12-20T16:52:12.000Z
setup.py
texnofobix/pyrcon
fa9eddb57dc4ee4cbdb2cf90925397dfaa9d8d32
[ "MIT" ]
null
null
null
setup.py
texnofobix/pyrcon
fa9eddb57dc4ee4cbdb2cf90925397dfaa9d8d32
[ "MIT" ]
1
2021-12-20T16:52:27.000Z
2021-12-20T16:52:27.000Z
#!/usr/bin/env python from distutils.core import setup setup( name="pyrcon", version="1.0.0", author="Anthony Nguyen", author_email="anknguyen@gmail.com", packages=["pyrcon"], url="https://github.com/clearskies/pyrcon", license="MIT", description="A stupidly simple RCON library (for UDP...
25.6875
67
0.664234
931cd93e1384c913cc88b51010a6fc81237582e4
33,055
py
Python
epp/useq_finance_overview.py
UMCUGenetics/clarity_utils
85c79a906bc587fbdc67d1329e0bc56923769d53
[ "MIT" ]
1
2018-06-18T16:15:48.000Z
2018-06-18T16:15:48.000Z
epp/useq_finance_overview.py
UMCUGenetics/clarity_utils
85c79a906bc587fbdc67d1329e0bc56923769d53
[ "MIT" ]
1
2018-06-20T13:00:40.000Z
2018-06-26T12:10:58.000Z
epp/useq_finance_overview.py
UMCUGenetics/clarity_utils_usf
85c79a906bc587fbdc67d1329e0bc56923769d53
[ "MIT" ]
null
null
null
from genologics.entities import Step, ProtocolStep from modules.useq_template import TEMPLATE_PATH,TEMPLATE_ENVIRONMENT,renderTemplate from config import Config import re import sys import json import urllib from datetime import datetime from sqlalchemy.ext.automap import automap_base from sqlalchemy.orm import Session...
64.184466
244
0.618152
931d00f41afbe2d33b05281c200616305167b911
684
py
Python
talkpython/100-days-of-code-in-python/my_progress/day_020_itertools_traffic_lights.py
djrgit/coursework
2a91da9b76cb1acbd12f3d8049f15d2e71f475a1
[ "MIT" ]
null
null
null
talkpython/100-days-of-code-in-python/my_progress/day_020_itertools_traffic_lights.py
djrgit/coursework
2a91da9b76cb1acbd12f3d8049f15d2e71f475a1
[ "MIT" ]
null
null
null
talkpython/100-days-of-code-in-python/my_progress/day_020_itertools_traffic_lights.py
djrgit/coursework
2a91da9b76cb1acbd12f3d8049f15d2e71f475a1
[ "MIT" ]
3
2018-08-13T23:14:22.000Z
2019-01-11T22:50:07.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from time import sleep import itertools import random colors = 'Green Yellow Red'.split() light_cycle = itertools.cycle(colors) def rg_timer(): return random.randint(3,7) def light_rotation(light_cycle): for color in light_cycle: if color == 'Green':...
20.727273
52
0.592105
931d111e869cc9496922c233298c7613fa38fbda
2,595
py
Python
tests/trinity/core/chains-utils/test_chain_config_object.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
5
2018-09-28T20:01:42.000Z
2022-02-22T19:54:46.000Z
tests/trinity/core/chains-utils/test_chain_config_object.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
null
null
null
tests/trinity/core/chains-utils/test_chain_config_object.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
null
null
null
from pathlib import Path import pytest from eth_utils import ( decode_hex, ) from eth_keys import keys from trinity.utils.chains import ( get_data_dir_for_network_id, get_local_data_dir, get_nodekey_path, ) from trinity.config import ( ChainConfig, DATABASE_DIR_NAME, ) from trinity.utils.fil...
27.903226
79
0.758767
931d377487a23bf431eb9cc6c7679bdcc7c67466
288
py
Python
ejector/client.py
glstr/python_learning
243908d6f358764386f2e58dfbfde10a406d803c
[ "Apache-2.0" ]
2
2018-09-20T06:08:00.000Z
2018-09-26T13:57:20.000Z
ejector/client.py
glstr/python_learning
243908d6f358764386f2e58dfbfde10a406d803c
[ "Apache-2.0" ]
null
null
null
ejector/client.py
glstr/python_learning
243908d6f358764386f2e58dfbfde10a406d803c
[ "Apache-2.0" ]
1
2019-03-25T05:53:32.000Z
2019-03-25T05:53:32.000Z
#!/usr/bin/python # coding=utf-8 import socket class Client: def __init__(self): return def send_data(): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) address = ("10.100.57.125", 8882) s.connect(address) s.sendall("hello") send_data()
14.4
57
0.621528
931d518ee5e4acb543782a6691c065283cb5626b
42,652
py
Python
OpenModal/gui/preferences_window.py
MonashSmartStructures/OpenModal
a76a258c420954eab4a8b4ef37b487616c9f6c62
[ "CNRI-Python" ]
85
2016-12-04T10:34:08.000Z
2022-03-26T18:03:47.000Z
OpenModal/gui/preferences_window.py
MonashSmartStructures/OpenModal
a76a258c420954eab4a8b4ef37b487616c9f6c62
[ "CNRI-Python" ]
55
2016-12-02T15:01:15.000Z
2022-01-07T11:10:26.000Z
OpenModal/gui/preferences_window.py
gusshmn/OpenModal
a76a258c420954eab4a8b4ef37b487616c9f6c62
[ "CNRI-Python" ]
51
2016-12-30T16:33:36.000Z
2021-11-13T11:05:34.000Z
# Copyright (C) 2014-2017 Matjaž Mršnik, Miha Pirnat, Janko Slavič, Blaž Starc (in alphabetic order) # # This file is part of OpenModal. # # OpenModal 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, version...
42.271556
131
0.612726
931d5dcd03711a6fa19a8536df698f52d96e2eab
6,034
py
Python
marchena/urls/single.py
samuelmaudo/marchena
e9a522a9be66f7043aa61e316f7e733e8ccf1e32
[ "BSD-3-Clause" ]
null
null
null
marchena/urls/single.py
samuelmaudo/marchena
e9a522a9be66f7043aa61e316f7e733e8ccf1e32
[ "BSD-3-Clause" ]
null
null
null
marchena/urls/single.py
samuelmaudo/marchena
e9a522a9be66f7043aa61e316f7e733e8ccf1e32
[ "BSD-3-Clause" ]
null
null
null
# -*- coding:utf-8 -*- from __future__ import unicode_literals from django.conf.urls import url from yepes.apps import apps from yepes.contrib.sitemaps.views import SitemapIndexView from yepes.urlresolvers import full_reverse_lazy CommentAtomFeed = apps.get_class('comments.feeds', 'CommentAtomFeed') CommentRssFeed ...
34.090395
84
0.629765
931d99e945c8b4be10e73737e3a6d08b020ec157
4,048
py
Python
mclumi/deduplicate/monomer/Build.py
cribbslab/mclumi
3c38f1dd4de11f0f20121a4027f7e104c4059bbe
[ "MIT" ]
3
2021-12-18T09:55:09.000Z
2022-01-12T10:25:28.000Z
mclumi/deduplicate/monomer/Build.py
cribbslab/mclumi
3c38f1dd4de11f0f20121a4027f7e104c4059bbe
[ "MIT" ]
null
null
null
mclumi/deduplicate/monomer/Build.py
cribbslab/mclumi
3c38f1dd4de11f0f20121a4027f7e104c4059bbe
[ "MIT" ]
null
null
null
__version__ = "v1.0" __copyright__ = "Copyright 2021" __license__ = "MIT" __lab__ = "Adam Cribbs lab" import time import pandas as pd from mclumi.Path import to from mclumi.util.Number import number as rannum from mclumi.util.Hamming import hamming from mclumi.network.Edge import edge as guuedge from mclumi.util.Conso...
34.598291
119
0.583251
931de16dac7abb24ff21e0cca939d4408f7a1045
385
py
Python
test.py
iaaft/spyclib
c13a387330d32bf79fe86492add4bea94fc1110a
[ "MIT" ]
null
null
null
test.py
iaaft/spyclib
c13a387330d32bf79fe86492add4bea94fc1110a
[ "MIT" ]
null
null
null
test.py
iaaft/spyclib
c13a387330d32bf79fe86492add4bea94fc1110a
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import spyclib import numpy as np import matplotlib.pyplot as plt # Test cluster radius interface R = np.array([11.0, 9., 13.]) dR = np.array([0.1, 0.9, 3.]) for i in np.arange(3): solver = spyclib.Spaic2Solver() # if this line is moved to the line prior the for-loop, this example does not s...
24.0625
131
0.688312
931dec23d9317bae990a593ff5f1b982e86f945a
6,790
py
Python
mplStyle/types/Data.py
khanfarhan10/mplStyle
f657f54c6c101811b8bf0c44f4b16d4f4926685d
[ "BSD-3-Clause" ]
39
2015-03-08T23:05:01.000Z
2022-02-07T16:03:35.000Z
mplStyle/types/Data.py
khanfarhan10/mplStyle
f657f54c6c101811b8bf0c44f4b16d4f4926685d
[ "BSD-3-Clause" ]
null
null
null
mplStyle/types/Data.py
khanfarhan10/mplStyle
f657f54c6c101811b8bf0c44f4b16d4f4926685d
[ "BSD-3-Clause" ]
23
2015-03-08T19:56:59.000Z
2021-07-15T15:16:26.000Z
#=========================================================================== # # Copyright (c) 2014, California Institute of Technology. # U.S. Government Sponsorship under NASA Contract NAS7-03001 is # acknowledged. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modific...
34.642857
76
0.488218
931df329d0beb7a2284dd54e8950b00592804da0
2,518
py
Python
benchmarks/data.py
knarflin/CrypTen
6a06dc8cd52200f40a9fc520be0066bd0dea6b14
[ "MIT" ]
1,074
2019-10-09T20:30:48.000Z
2022-03-31T04:06:55.000Z
benchmarks/data.py
knarflin/CrypTen
6a06dc8cd52200f40a9fc520be0066bd0dea6b14
[ "MIT" ]
335
2019-10-10T22:25:18.000Z
2022-03-30T20:52:03.000Z
benchmarks/data.py
knarflin/CrypTen
6a06dc8cd52200f40a9fc520be0066bd0dea6b14
[ "MIT" ]
196
2019-10-10T19:28:57.000Z
2022-03-31T01:32:04.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Contains data used for training / testing model benchmarks """ import os from pathlib import Path import crypten ...
30.337349
84
0.626291
931e221c7acca3c882e87e6cf4f4d70f0cba5158
27,091
py
Python
lib_yolo/yolov3.py
frezaeix/bayesian-yolov3
65d3213253f716b3322192297d3a350a0d9a0354
[ "MIT" ]
59
2019-05-27T01:37:32.000Z
2022-03-23T05:41:40.000Z
lib_yolo/yolov3.py
frezaeix/bayesian-yolov3
65d3213253f716b3322192297d3a350a0d9a0354
[ "MIT" ]
5
2019-05-27T04:15:27.000Z
2022-03-07T13:50:32.000Z
lib_yolo/yolov3.py
frezaeix/bayesian-yolov3
65d3213253f716b3322192297d3a350a0d9a0354
[ "MIT" ]
16
2019-05-28T04:20:38.000Z
2022-03-22T06:43:09.000Z
import tensorflow as tf from lib_yolo import darknet, model, data def _get_city_persons_9_priors(): priors = [[495.27, 203.83], [297.84, 122.19], [197.44, 81.48], [141.07, 58.5], [102.72, 43.1], [75.78, 31.66], [54.24, 23.19], ...
43.069952
120
0.52977
931e86704e97f0ce00ccc254ad3fa1425646c21b
4,685
py
Python
gitgrid/utils/git.py
RocketScienceAbteilung/git-grid
c38c6d73089a51144899161b19356808ceb4d725
[ "MIT" ]
9
2015-05-10T11:07:15.000Z
2020-12-26T16:43:19.000Z
gitgrid/utils/git.py
RocketScienceAbteilung/git-grid
c38c6d73089a51144899161b19356808ceb4d725
[ "MIT" ]
null
null
null
gitgrid/utils/git.py
RocketScienceAbteilung/git-grid
c38c6d73089a51144899161b19356808ceb4d725
[ "MIT" ]
null
null
null
import random import string import subprocess import re import sys from . import utils, names def run(cmd, print_cmd=False, print_ret=False): if print_cmd: print ">>> %s" % cmd ret = subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT) if print_ret: print ret return ret ...
20.638767
79
0.534899
931ee5cd2de3cb6f4cb6a819cbc9b863635e9cad
13,172
py
Python
config/settings/base.py
rajat-np/notification-django-app
37929b654cc8bceadb73b50897297ef49f1af7c4
[ "MIT" ]
null
null
null
config/settings/base.py
rajat-np/notification-django-app
37929b654cc8bceadb73b50897297ef49f1af7c4
[ "MIT" ]
1
2022-02-28T23:10:02.000Z
2022-02-28T23:10:02.000Z
config/settings/base.py
rajat-np/notification-django-app
37929b654cc8bceadb73b50897297ef49f1af7c4
[ "MIT" ]
null
null
null
""" Base settings to build other settings files upon. """ from pathlib import Path import environ ROOT_DIR = Path(__file__).resolve(strict=True).parent.parent.parent # notification_django_app/ APPS_DIR = ROOT_DIR / "notification_django_app" env = environ.Env() READ_DOT_ENV_FILE = env.bool("DJANGO_READ_DOT_ENV_FILE",...
42.627832
100
0.651306
931ee6ea9545b85ba07ccea1fc9a241b096c869c
927
py
Python
botx/models/menu.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
13
2021-01-21T12:43:10.000Z
2022-03-23T11:11:59.000Z
botx/models/menu.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
259
2020-02-26T08:51:03.000Z
2022-03-23T11:08:36.000Z
botx/models/menu.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
5
2019-12-02T16:19:22.000Z
2021-11-22T20:33:34.000Z
"""Pydantic models for bot menu.""" from typing import List from botx.models.base import BotXBaseModel from botx.models.enums import Statuses class MenuCommand(BotXBaseModel): """Command that is shown in bot menu.""" #: command description that will be shown in menu. description: str #: command bo...
21.55814
76
0.676375
931ef220e17ccac219972b07409ce353cf38892c
2,780
py
Python
app_helpers.py
kbhalerao/pdfWorker
855b0a4e214f85608d367add15b5deacb3ece91d
[ "MIT" ]
null
null
null
app_helpers.py
kbhalerao/pdfWorker
855b0a4e214f85608d367add15b5deacb3ece91d
[ "MIT" ]
null
null
null
app_helpers.py
kbhalerao/pdfWorker
855b0a4e214f85608d367add15b5deacb3ece91d
[ "MIT" ]
null
null
null
import json from pdf2image import convert_from_bytes import base64 from io import BytesIO from weasyprint import HTML, CSS from weasyprint.text.fonts import FontConfiguration def pdf_to_img(pdf: str) -> [str]: """ Takes a base64 encoded string representing a PDF and turns it into a list of base64 encoded stri...
26.990291
105
0.669784
931f2853668f889ba376ada19828c509f8edd059
1,114
py
Python
tests/test_w90_pythtb.py
henhans/TBmodels
7424acaea8d91850d80bb48898af875430f25fa0
[ "Apache-2.0" ]
1
2021-01-18T13:55:40.000Z
2021-01-18T13:55:40.000Z
tests/test_w90_pythtb.py
henhans/TBmodels
7424acaea8d91850d80bb48898af875430f25fa0
[ "Apache-2.0" ]
null
null
null
tests/test_w90_pythtb.py
henhans/TBmodels
7424acaea8d91850d80bb48898af875430f25fa0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # (c) 2015-2018, ETH Zurich, Institut fuer Theoretische Physik # Author: Dominik Gresch <greschd@gmx.ch> import pytest import numpy as np import pythtb as pt import tbmodels as tb @pytest.mark.parametrize('prefix', ['silicon']) # bi takes too long def test_consistency_...
35.935484
96
0.680431
931f30d3eccef0b9dad8445e2ae3f90b3db51954
253
py
Python
group3/code/config.py
wuxmax/Deep-Text-Complexity-Metric-Challenge
4ea357ec08e499a9323cea8a6235dcb30af6563b
[ "MIT" ]
null
null
null
group3/code/config.py
wuxmax/Deep-Text-Complexity-Metric-Challenge
4ea357ec08e499a9323cea8a6235dcb30af6563b
[ "MIT" ]
null
null
null
group3/code/config.py
wuxmax/Deep-Text-Complexity-Metric-Challenge
4ea357ec08e499a9323cea8a6235dcb30af6563b
[ "MIT" ]
1
2021-09-21T11:26:25.000Z
2021-09-21T11:26:25.000Z
# default global variables DEFAULT_DATASET_PATH = "test1.csv" EVAL_RESULT_PATH = "eval.csv" BASE_BERT_MODEL = "deepset/gbert-base" FINETUNED_BERT_MODEL_PATH = "model/deepset-gbert-base-finetuned" DEFAULT_TEST_SPLIT_RATIO = 0.33 RANDOM_SPLIT_SEED = 0
23
64
0.806324
931f58c2f8461be87ef9344ccf5108e70908bbdb
93
py
Python
ksksite/danmakuwall/admin.py
Ki-Seki/ki-seki.site
efef59ee52a0b69501385c06ef6e4265f39d1738
[ "MIT" ]
null
null
null
ksksite/danmakuwall/admin.py
Ki-Seki/ki-seki.site
efef59ee52a0b69501385c06ef6e4265f39d1738
[ "MIT" ]
null
null
null
ksksite/danmakuwall/admin.py
Ki-Seki/ki-seki.site
efef59ee52a0b69501385c06ef6e4265f39d1738
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Danmaku admin.site.register(Danmaku)
13.285714
32
0.806452
931f7f4f1a5c8bcc366d5a43692636f0eb669ead
8,643
py
Python
app.py
pizzic/fast-waters-53015
4c95aa487c256d0d609c1080a699478bd9e5524e
[ "BSD-2-Clause" ]
null
null
null
app.py
pizzic/fast-waters-53015
4c95aa487c256d0d609c1080a699478bd9e5524e
[ "BSD-2-Clause" ]
null
null
null
app.py
pizzic/fast-waters-53015
4c95aa487c256d0d609c1080a699478bd9e5524e
[ "BSD-2-Clause" ]
1
2018-04-15T17:27:03.000Z
2018-04-15T17:27:03.000Z
import flask import json import os import time from PIL import Image, ImageFile from gevent.event import AsyncResult, Timeout from gevent.queue import Empty, Queue from shutil import rmtree from hashlib import sha1 from stat import S_ISREG, ST_CTIME, ST_MODE import predict_image DATA_DIR = 'data' KEEP_ALIVE_DELAY = 2...
30.326316
117
0.618072
931f80447f6b201c569d2be5456ef600e6ab77c0
3,948
py
Python
PythonEuterpeaN/FromMidi2.py
donya/PythonEuterpea
3033417b41053a8f928fe1525a845e2438933e55
[ "CNRI-Python" ]
7
2018-07-14T04:52:38.000Z
2021-08-08T02:59:21.000Z
PythonEuterpeaN/FromMidi2.py
donya/PythonEuterpea
3033417b41053a8f928fe1525a845e2438933e55
[ "CNRI-Python" ]
null
null
null
PythonEuterpeaN/FromMidi2.py
donya/PythonEuterpea
3033417b41053a8f928fe1525a845e2438933e55
[ "CNRI-Python" ]
null
null
null
from Chunk import * from PythonEuterpea import * from GMInstruments import * from copy import deepcopy from MidiReader import * def extractChord(startChunk, chunks): ''' Locate well-formed chords of Chunks with the same onsets and durations :param startChunk: Chunk to compare against :param chunks: Al...
29.244444
103
0.629686
931f967715aef59a3ce358345792cd52558b7580
30,132
py
Python
ibmsecurity/isam/web/reverse_proxy/junctions.py
ibm-enio/ibmsecurity
81f989678642c3b6a49b2a3fbb5d9ca98804ef17
[ "Apache-2.0" ]
null
null
null
ibmsecurity/isam/web/reverse_proxy/junctions.py
ibm-enio/ibmsecurity
81f989678642c3b6a49b2a3fbb5d9ca98804ef17
[ "Apache-2.0" ]
null
null
null
ibmsecurity/isam/web/reverse_proxy/junctions.py
ibm-enio/ibmsecurity
81f989678642c3b6a49b2a3fbb5d9ca98804ef17
[ "Apache-2.0" ]
null
null
null
import logging from ibmsecurity.utilities import tools logger = logging.getLogger(__name__) # URI for this module uri = "/wga/reverseproxy" requires_modules = ["wga"] requires_version = None def get_all(isamAppliance, reverseproxy_id, check_mode=False, force=False): """ Retrieving a list of standard and vir...
51.773196
166
0.600624
931f96a03943444c617eec89b02ca312a25c6e5a
23,371
py
Python
appengine/monorail/third_party/ezt.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/monorail/third_party/ezt.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
16
2020-09-07T11:55:09.000Z
2022-03-02T05:47:58.000Z
appengine/monorail/third_party/ezt.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ezt.py -- EaZy Templating For documentation, please see: http://code.google.com/p/ezt/wiki/Syntax """ from __future__ import absolute_import from __future__ import division from __future__ import print_function # # Copyright (C) 2001-2011 Greg Stein. All Rights Reserved. # # Redistribution a...
34.726597
80
0.632536
931f972ab8afe6a1ad6682b34afc3455b8c12d48
521
py
Python
tests/test_math.py
TensorX/tensorx
11d7727b055fbee29e122ffbfc7a39057aeeae40
[ "Apache-2.0" ]
5
2017-09-21T22:12:19.000Z
2021-02-22T10:42:28.000Z
tests/test_math.py
TensorX/tensorx
11d7727b055fbee29e122ffbfc7a39057aeeae40
[ "Apache-2.0" ]
null
null
null
tests/test_math.py
TensorX/tensorx
11d7727b055fbee29e122ffbfc7a39057aeeae40
[ "Apache-2.0" ]
2
2018-04-02T09:26:41.000Z
2022-01-06T15:41:06.000Z
import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' import tensorx as tx import numpy as np import pytest import tensorflow as tf def test_sparse_dense_mul(): x = tf.random.uniform([2, 4]) s = tx.to_sparse(x) v = tf.random.uniform([4, 3]) # matmul mul0 = tf.matmul(x, v) mul1 = tf.sparse.spar...
19.296296
46
0.667946
931fa5220af20757611112820c0a07e16eb37b7a
14,870
py
Python
python/ray/tune/trainable.py
bmorier/ray
0aadf11c10e11245229023eeee15019866bf33ec
[ "Apache-2.0" ]
1
2019-06-12T07:04:22.000Z
2019-06-12T07:04:22.000Z
python/ray/tune/trainable.py
bmorier/ray
0aadf11c10e11245229023eeee15019866bf33ec
[ "Apache-2.0" ]
null
null
null
python/ray/tune/trainable.py
bmorier/ray
0aadf11c10e11245229023eeee15019866bf33ec
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from datetime import datetime import copy import gzip import io import logging import os import pickle from six import string_types import shutil import tempfile import time import uuid import ray from ray.tu...
35.917874
79
0.626631
931fab5c8dec4ab887d29e6311d48e57178269b5
20,556
py
Python
sdk/trafficmanager/azure-mgmt-trafficmanager/azure/mgmt/trafficmanager/aio/operations/_profiles_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/trafficmanager/azure-mgmt-trafficmanager/azure/mgmt/trafficmanager/aio/operations/_profiles_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/trafficmanager/azure-mgmt-trafficmanager/azure/mgmt/trafficmanager/aio/operations/_profiles_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
44.206452
282
0.678245
931fba8996089274beb6ee1d671f09f741adf16a
1,850
py
Python
master/bopytest-code/code/ch5/tasks_proj/tests/conftest.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
master/bopytest-code/code/ch5/tasks_proj/tests/conftest.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
master/bopytest-code/code/ch5/tasks_proj/tests/conftest.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
import pytest import tasks # @pytest.fixture(scope='session', params=['tiny', 'mongo']) # def tasks_db_session(tmpdir_factory, request): @pytest.fixture(scope='session') def tasks_db_session(tmpdir_factory): # Setup : start db temp_dir = tmpdir_factory.mktemp('temp') tasks.start_tasks_db(str(temp_dir), '...
26.811594
60
0.650811
931fd4ee99a0220961431f3109f5820abd20b2c0
45,529
py
Python
tests/data_context/test_data_context_test_yaml_config.py
UtahDave/great_expectations
99a54370f7ebeea5d95bca726200db01c7326d68
[ "Apache-2.0" ]
1
2021-06-25T17:47:32.000Z
2021-06-25T17:47:32.000Z
tests/data_context/test_data_context_test_yaml_config.py
UtahDave/great_expectations
99a54370f7ebeea5d95bca726200db01c7326d68
[ "Apache-2.0" ]
null
null
null
tests/data_context/test_data_context_test_yaml_config.py
UtahDave/great_expectations
99a54370f7ebeea5d95bca726200db01c7326d68
[ "Apache-2.0" ]
1
2021-10-08T01:24:50.000Z
2021-10-08T01:24:50.000Z
import datetime import json import os import tempfile from unittest import mock import pytest import great_expectations.exceptions as ge_exceptions from great_expectations import DataContext from great_expectations.core import ExpectationSuite from great_expectations.data_context.store import CheckpointStore from gre...
35.022308
125
0.622504
931fe6411d410b3d5d587930609ec572eb7dfac0
3,769
py
Python
escli/esstyle.py
zhongnansu/es-cli
e0656c21392e52a8b9cfafa69acfa0c13b743a9c
[ "Apache-2.0" ]
6
2019-08-23T18:06:41.000Z
2020-05-06T18:26:53.000Z
escli/esstyle.py
zhongnansu/es-cli
e0656c21392e52a8b9cfafa69acfa0c13b743a9c
[ "Apache-2.0" ]
null
null
null
escli/esstyle.py
zhongnansu/es-cli
e0656c21392e52a8b9cfafa69acfa0c13b743a9c
[ "Apache-2.0" ]
null
null
null
""" Copyright 2019, Amazon Web Services 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,...
39.260417
113
0.738923
931ff70dd3a603db08154073765974aeda5c9186
10,814
py
Python
scanners/zap-advanced/scanner/zapclient/context/zap_context_authentication.py
watchmen-coder/secureCodeBox
ac3482d4ffa6ced7e8251bc7b72144d11ec2d62d
[ "Apache-2.0" ]
1
2021-05-24T08:17:48.000Z
2021-05-24T08:17:48.000Z
scanners/zap-advanced/scanner/zapclient/context/zap_context_authentication.py
watchmen-coder/secureCodeBox
ac3482d4ffa6ced7e8251bc7b72144d11ec2d62d
[ "Apache-2.0" ]
null
null
null
scanners/zap-advanced/scanner/zapclient/context/zap_context_authentication.py
watchmen-coder/secureCodeBox
ac3482d4ffa6ced7e8251bc7b72144d11ec2d62d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # SPDX-FileCopyrightText: 2021 iteratec GmbH # # SPDX-License-Identifier: Apache-2.0 # -*- coding: utf-8 -*- import collections import logging from zapv2 import ZAPv2 from .. import ZapClient from ..configuration import ZapConfiguration # set up logging to file - see previous section for mor...
50.53271
211
0.682541
931ff86624f1bc227d858d4c690d487170febf50
2,323
py
Python
test/test_downloader.py
joniok/hybra-medialoader
ebc6df58287b5146917d66de69d807309cea4a8f
[ "MIT" ]
null
null
null
test/test_downloader.py
joniok/hybra-medialoader
ebc6df58287b5146917d66de69d807309cea4a8f
[ "MIT" ]
14
2016-10-14T15:09:42.000Z
2017-03-01T14:29:29.000Z
test/test_downloader.py
joniok/hybra-medialoader
ebc6df58287b5146917d66de69d807309cea4a8f
[ "MIT" ]
1
2020-11-18T13:06:48.000Z
2020-11-18T13:06:48.000Z
import sys import os path = os.path.abspath('.') sys.path.append(path) import downloader as d good_urls = [ 'http://yle.fi/uutiset/tv-uutisten_politiikantoimittaja_timo_kuparinen_kuollut/9167149', 'http://www.hs.fi/kotimaa/art-2000005007566.html', 'http://www.iltasanomat.fi/musiikki/art-2000005008209.htm...
27.987952
121
0.597073
93201aa2ede7369bd24faf1454952ac53d2512e2
1,410
py
Python
tests/test_online_kmeans.py
opeltre/geomstats
135d5bb6f19e29dd453c68399e04100a9e2c76bf
[ "MIT" ]
null
null
null
tests/test_online_kmeans.py
opeltre/geomstats
135d5bb6f19e29dd453c68399e04100a9e2c76bf
[ "MIT" ]
null
null
null
tests/test_online_kmeans.py
opeltre/geomstats
135d5bb6f19e29dd453c68399e04100a9e2c76bf
[ "MIT" ]
null
null
null
""" Unit tests for Online k-means. """ import geomstats.backend as gs import geomstats.tests from geomstats.geometry.hypersphere import Hypersphere from geomstats.learning.online_kmeans import OnlineKMeans TOLERANCE = 1e-3 class TestOnlineKmeansMethods(geomstats.tests.TestCase): def setUp(self): gs.rand...
28.77551
67
0.641844
93202b7013d1780ba0ebd80f5cfe4ae91606a10f
539
py
Python
src/confidentialledger/azext_confidentialledger/vendored_sdks/__init__.py
saisankargochhayat/azure-cli-extensions
f89443a766961f984977a2cf1b682973fcb61edd
[ "MIT" ]
null
null
null
src/confidentialledger/azext_confidentialledger/vendored_sdks/__init__.py
saisankargochhayat/azure-cli-extensions
f89443a766961f984977a2cf1b682973fcb61edd
[ "MIT" ]
null
null
null
src/confidentialledger/azext_confidentialledger/vendored_sdks/__init__.py
saisankargochhayat/azure-cli-extensions
f89443a766961f984977a2cf1b682973fcb61edd
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
41.461538
76
0.552876
93205aaf9a614595e7350ad7c74447c6af9a5095
6,195
py
Python
flashbang/plotting/plotter.py
zacjohnston/bangpy
674248695efaa6cabf73525e6fdf600414abec57
[ "MIT" ]
null
null
null
flashbang/plotting/plotter.py
zacjohnston/bangpy
674248695efaa6cabf73525e6fdf600414abec57
[ "MIT" ]
null
null
null
flashbang/plotting/plotter.py
zacjohnston/bangpy
674248695efaa6cabf73525e6fdf600414abec57
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt # flashbang from ..config import Config class Plotter: def __init__(self, ax=None, config=None, x_var=None, y_var=None, x_scale=None, y_scale=None, x_label=None, y_label=None, x_l...
28.548387
63
0.481195
93207a8c38bed8bde7bb3033bc56bc668bcbe8d1
2,886
py
Python
cfnbootstrap/cfn_logging.py
roberthutto/aws-cfn-bootstrap
801a16802a931fa4dae0eba4898fe1ccdb304924
[ "Apache-2.0" ]
null
null
null
cfnbootstrap/cfn_logging.py
roberthutto/aws-cfn-bootstrap
801a16802a931fa4dae0eba4898fe1ccdb304924
[ "Apache-2.0" ]
null
null
null
cfnbootstrap/cfn_logging.py
roberthutto/aws-cfn-bootstrap
801a16802a931fa4dae0eba4898fe1ccdb304924
[ "Apache-2.0" ]
null
null
null
#============================================================================== # Copyright 2011 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. # You may obtain a copy of the ...
43.074627
117
0.684338
93208a8073f7d5db8928abe154289c78313d193d
2,403
py
Python
src/uproot_browser/tui.py
amangoel185/uproot-browser
8181913ac04d0318b05256923d8980d6d3acaa7f
[ "BSD-3-Clause" ]
null
null
null
src/uproot_browser/tui.py
amangoel185/uproot-browser
8181913ac04d0318b05256923d8980d6d3acaa7f
[ "BSD-3-Clause" ]
null
null
null
src/uproot_browser/tui.py
amangoel185/uproot-browser
8181913ac04d0318b05256923d8980d6d3acaa7f
[ "BSD-3-Clause" ]
null
null
null
from __future__ import annotations from pathlib import Path from typing import Any import rich.syntax import textual.geometry import textual.views import textual.widgets from textual.app import App from textual.widgets import Footer from .header import Header from .plot_view import Plot, PlotWidget from .tree_view i...
30.807692
84
0.613816
93209b96d518786dff3305a32124c95fae1635cd
1,004
py
Python
ice/parsing/rom_parser.py
gordonshieh94/Ice
595a6c6790bbc46709c2871245756ca7c045a98b
[ "MIT" ]
null
null
null
ice/parsing/rom_parser.py
gordonshieh94/Ice
595a6c6790bbc46709c2871245756ca7c045a98b
[ "MIT" ]
null
null
null
ice/parsing/rom_parser.py
gordonshieh94/Ice
595a6c6790bbc46709c2871245756ca7c045a98b
[ "MIT" ]
null
null
null
import os import re from functools import reduce from ice.logs import logger class ROMParser(object): regexes = [ # Regex that matches the entire string up until it hits the first '[', # ']', '(', ')', or '.' # DOESN'T WORK FOR GAMES WITH ()s IN THEIR NAME r"(?P<name>[^\(\)\[\]]*).*", ] def _...
30.424242
127
0.63745
9320c7176b7d0f5a4f94419ff900dc0287dd18c3
8,544
py
Python
tests/l_layer/backward.py
felix990302/nnlib
618c9f860ff2298ed2e0bbcb249ae74eeb8a408b
[ "Apache-2.0" ]
1
2019-03-27T17:02:50.000Z
2019-03-27T17:02:50.000Z
tests/l_layer/backward.py
felix990302/nnlib
618c9f860ff2298ed2e0bbcb249ae74eeb8a408b
[ "Apache-2.0" ]
null
null
null
tests/l_layer/backward.py
felix990302/nnlib
618c9f860ff2298ed2e0bbcb249ae74eeb8a408b
[ "Apache-2.0" ]
null
null
null
import numpy as np from numpy.random import RandomState from numpy.testing import assert_allclose from nnlib.l_layer.backward import linear_backward, linear_backward_activation, model_backward from nnlib.utils.derivative import sigmoid_backward, relu_backward from nnlib.utils.activation import sigmoid, relu def test...
37.147826
122
0.508544
9320caadfd5c845a6404bd4174e3d363b9ef83b4
9,659
py
Python
spydrnet/ir/port.py
chgentso/spydrnet
2cfc33ae367771cd2f3a15f240ebd0ec76841b5f
[ "BSD-3-Clause" ]
34
2020-03-12T15:40:49.000Z
2022-02-28T07:13:47.000Z
spydrnet/ir/port.py
chgentso/spydrnet
2cfc33ae367771cd2f3a15f240ebd0ec76841b5f
[ "BSD-3-Clause" ]
104
2020-01-06T20:32:19.000Z
2022-01-02T00:20:14.000Z
spydrnet/ir/port.py
chgentso/spydrnet
2cfc33ae367771cd2f3a15f240ebd0ec76841b5f
[ "BSD-3-Clause" ]
10
2020-09-02T20:24:00.000Z
2022-02-24T16:10:07.000Z
from spydrnet.ir.bundle import Bundle from spydrnet.ir.innerpin import InnerPin from spydrnet.ir.outerpin import OuterPin from spydrnet.ir.views.listview import ListView from spydrnet.global_state import global_callback from spydrnet.global_state.global_callback import _call_create_port from copy import deepcopy, copy,...
34.373665
289
0.597888
9320e6203b207895fb01c62dc4ac66d4ea3be0c4
352
py
Python
askDir.py
vymaztom/JPG_grupe_rename
df1afa66d5a8dc47a1373ae07fc1f085c59c29c1
[ "MIT" ]
null
null
null
askDir.py
vymaztom/JPG_grupe_rename
df1afa66d5a8dc47a1373ae07fc1f085c59c29c1
[ "MIT" ]
null
null
null
askDir.py
vymaztom/JPG_grupe_rename
df1afa66d5a8dc47a1373ae07fc1f085c59c29c1
[ "MIT" ]
null
null
null
import tkinter as tk import tkinter.ttk as ttk from tkinter.filedialog import askdirectory def askDir(): '''function for ask user witch directory should be used by program''' win = tk.Tk() win.title() win.withdraw() directory = askdirectory() win.destroy() return(directory) if __name__ == ...
22
73
0.681818
9320f6f01164f135ad43d91e8555c9a1bff2396c
939
py
Python
custom_components/nomics/const.py
anybody84/ha-nomics
c00f153ace569edd82940a3eb87a70a8a7859c88
[ "MIT" ]
null
null
null
custom_components/nomics/const.py
anybody84/ha-nomics
c00f153ace569edd82940a3eb87a70a8a7859c88
[ "MIT" ]
null
null
null
custom_components/nomics/const.py
anybody84/ha-nomics
c00f153ace569edd82940a3eb87a70a8a7859c88
[ "MIT" ]
null
null
null
"""Constants to use in Nomics integration.""" DOMAIN = "nomics" ATTRIBUTION = "Crypto Market Cap & Pricing Data Provided By Nomics" DEFAULT_ICON = "mdi:cash-multiple" DEFAULT_NAME = "Nomics" DEFAULT_CURRENCY = "USD" SCAN_INTERVAL_MINUTES = 1 SPECIAL_ICONS = { "BTC": "mdi:currency-btc", "ETH": "mdi:currency-eth"...
30.290323
173
0.738019
93212c88d5670aafc7c70c17a328d8c60ebf9d3c
2,546
py
Python
lang/py3/avro/tests/test_datafile_interop.py
gth828r/avro-python3
c8379728b4a762d99262e526fb53f631076fb143
[ "Apache-2.0" ]
21
2015-09-11T19:52:23.000Z
2021-12-17T02:50:47.000Z
lang/py3/avro/tests/test_datafile_interop.py
gth828r/avro-python3
c8379728b4a762d99262e526fb53f631076fb143
[ "Apache-2.0" ]
16
2018-03-15T23:11:29.000Z
2021-09-20T12:45:54.000Z
lang/py3/avro/tests/test_datafile_interop.py
gth828r/avro-python3
c8379728b4a762d99262e526fb53f631076fb143
[ "Apache-2.0" ]
25
2018-01-05T15:13:55.000Z
2021-12-10T20:01:28.000Z
#!/usr/bin/env python3 # -*- mode: python -*- # -*- coding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you...
30.309524
74
0.692066
932139a2e94537b81bbe5c85461632dc9970297c
747
py
Python
desafios/Mundo 1/Ex018.py
duartecgustavo/Python---Estudos-
13a47f115dd24ef475addaed7b0c860a7b3817ca
[ "MIT" ]
6
2021-01-20T20:43:39.000Z
2021-08-13T15:44:10.000Z
desafios/Mundo 1/Ex018.py
duartecgustavo/PythonProgress
13a47f115dd24ef475addaed7b0c860a7b3817ca
[ "MIT" ]
null
null
null
desafios/Mundo 1/Ex018.py
duartecgustavo/PythonProgress
13a47f115dd24ef475addaed7b0c860a7b3817ca
[ "MIT" ]
1
2020-09-06T03:34:19.000Z
2020-09-06T03:34:19.000Z
# Desafio 18 - Aula 8 : Faça um programa que leia um angulo qualquer e calcule seu SENO, COSSENO E TANGENTE import math angulo = float(input('Digite um \033[4:32mangulo\033[m: ')) # no próprio python já possuem os calculos prontos para o SENO, COSSENO e TANGENTE seno = math.sin(math.radians(angulo)) cos = math.cos(m...
49.8
107
0.718876
93214691d35ec5d0b54a5164b8ae7d5b3f55c0d7
4,670
py
Python
premade_modules/2.79/2.79b/bpy/ops/constraint.py
echantry/fake-bpy-module
004cdf198841e639b7d9a4c4db95ca1c0d3aa2c7
[ "MIT" ]
null
null
null
premade_modules/2.79/2.79b/bpy/ops/constraint.py
echantry/fake-bpy-module
004cdf198841e639b7d9a4c4db95ca1c0d3aa2c7
[ "MIT" ]
null
null
null
premade_modules/2.79/2.79b/bpy/ops/constraint.py
echantry/fake-bpy-module
004cdf198841e639b7d9a4c4db95ca1c0d3aa2c7
[ "MIT" ]
null
null
null
def childof_clear_inverse(constraint="", owner='OBJECT'): '''Clear inverse correction for ChildOf constraint :param constraint: Constraint, Name of the constraint to edit :type constraint: string, (optional, never None) :param owner: Owner, The owner of this constraintOBJECT Object, Edit a constraint...
38.278689
156
0.692934
93214ef12ffac1c48b86ff6de91fcd9d79f54f7e
468
py
Python
py/desimeter/posparams/movemask.py
julienguy/desimeter
9dd40251b0c483b525a952051a73587ac9180e8a
[ "BSD-3-Clause" ]
1
2022-01-25T00:18:55.000Z
2022-01-25T00:18:55.000Z
py/desimeter/posparams/movemask.py
desihub/desimeter
e575f22c8820d4f98a6715ad7574130a6d11b09b
[ "BSD-3-Clause" ]
124
2019-12-30T20:46:43.000Z
2021-12-09T21:33:57.000Z
py/desimeter/posparams/movemask.py
julienguy/desimeter
9dd40251b0c483b525a952051a73587ac9180e8a
[ "BSD-3-Clause" ]
5
2020-01-17T16:51:11.000Z
2020-07-27T09:34:46.000Z
import yaml from desimeter.bitmask import BitMask _bitdefs = yaml.safe_load(""" #- position move mask movemask: - [THETA_STUCK, 0, "Theta motor is not moving"] - [PHI_STUCK, 1, "Phi motor is not moving"] - [FAILED_FIT, 2, "Calibration fit failed"] - [INVALID_TABLE, 3, "I/O issue or...
27.529412
77
0.651709
93218afdfef30298947cccbaac9285c3cd05a7e7
7,420
py
Python
api/src/opentrons/protocol_engine/state/commands.py
Opentrons/opentrons
23cb4bb9e1d1f9bd73a63f5837e947c337cdb9dc
[ "Apache-2.0" ]
235
2017-10-27T20:37:27.000Z
2022-03-30T14:09:49.000Z
api/src/opentrons/protocol_engine/state/commands.py
koji/opentrons
0f339f45de238183b2c433e67f839363d5177582
[ "Apache-2.0" ]
8,425
2017-10-26T15:25:43.000Z
2022-03-31T23:54:26.000Z
api/src/opentrons/protocol_engine/state/commands.py
koji/opentrons
0f339f45de238183b2c433e67f839363d5177582
[ "Apache-2.0" ]
130
2017-11-09T21:02:37.000Z
2022-03-15T18:01:24.000Z
"""Protocol engine commands sub-state.""" from __future__ import annotations from collections import OrderedDict from dataclasses import dataclass, replace from typing import List, Optional, Union from ..actions import Action, UpdateCommandAction, PlayAction, PauseAction, StopAction from ..commands import Command, Com...
36.195122
87
0.651348
9321940381278c758f28221ccc9307625299fecb
624
py
Python
terrascript/confluentcloud/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/confluentcloud/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/confluentcloud/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/confluentcloud/r.py # Automatically generated by tools/makecode.py () import warnings warnings.warn( "using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2 ) import terrascript class confluentcloud_api_key(terrascript.Resource): pass class confluentcloud_connector(terras...
18.352941
79
0.799679
9321965ce460bc7cbc7219b3be81823522d9c66a
890
py
Python
tests/test_decorators.py
m-lab/mlab-vis-api
2368d88223148bf73d83c62d285fb458558619e0
[ "MIT" ]
1
2017-09-05T14:52:11.000Z
2017-09-05T14:52:11.000Z
tests/test_decorators.py
m-lab/mlab-vis-api
2368d88223148bf73d83c62d285fb458558619e0
[ "MIT" ]
9
2017-09-14T15:30:02.000Z
2019-03-05T18:35:20.000Z
tests/test_decorators.py
m-lab/mlab-vis-api
2368d88223148bf73d83c62d285fb458558619e0
[ "MIT" ]
3
2017-06-01T16:01:37.000Z
2017-10-24T22:44:47.000Z
''' Test Decorators ''' from mlab_api.decorators import add_id @add_id('id_name') def simple_add_id(): ''' Add a sample ID ''' return {'meta':{'id_name': 'aaa'}} @add_id(['id1', 'id2']) def compound_add_id(have_meta=True): ''' Add potential metadata or multiple ids ''' if have_meta: ...
19.777778
50
0.58764
9321dff061cf061e501302984b82a38a22daaa51
798
py
Python
setup.py
nelsyeung/bgwgen
8fbbabbab8fe417dd1883ebe9f5a5f450ffe0743
[ "MIT" ]
null
null
null
setup.py
nelsyeung/bgwgen
8fbbabbab8fe417dd1883ebe9f5a5f450ffe0743
[ "MIT" ]
null
null
null
setup.py
nelsyeung/bgwgen
8fbbabbab8fe417dd1883ebe9f5a5f450ffe0743
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='bgwgen', version='0.1.0', description='Generate BerkeleyGW simulation files from a single input', url='http://github.com/nelsyeung/bgwgen', author='Nelson Yeung', author_email='nelsyeung@icloud.com', license='MIT', packages=['bgwgen'], ...
34.695652
77
0.586466
9321ec733682f11c887302d23f75b16734401e24
6,251
py
Python
userbot/prettyjson.py
FSharon/UserBot
e21c30ffc15143a97cd2a3ad133926b34b68b8f1
[ "Naumen", "Condor-1.1", "MS-PL" ]
5
2021-06-23T06:34:45.000Z
2021-12-21T14:26:32.000Z
userbot/prettyjson.py
FSharon/UserBot
e21c30ffc15143a97cd2a3ad133926b34b68b8f1
[ "Naumen", "Condor-1.1", "MS-PL" ]
65
2021-06-23T22:14:48.000Z
2022-03-31T22:28:00.000Z
userbot/utils/prettyjson.py
aryazakaria01/CyberDyne-Userbot
20e85ad5286bece5052a4ff636e6f0e3274bf2c5
[ "PostgreSQL" ]
7
2020-10-27T03:00:57.000Z
2021-09-02T12:17:54.000Z
# https://github.com/andy-gh/prettyjson/blob/master/prettyjson.py def prettyjson(obj, indent=2, maxlinelength=80): """Renders JSON content with indentation and line splits/concatenations to fit maxlinelength. Only dicts, lists and basic types are supported""" items, _ = getsubitems(obj, itemkey="", islas...
37.208333
130
0.532395
9321ee46abd5e4b2ec8ddbbe89063d84c1e93ec3
199
py
Python
simulation_bif.py
jpra2/Presto2
71525a8dece2bcc4f16ff4a2120d7627e9ecd776
[ "CNRI-Python" ]
1
2018-12-09T05:31:38.000Z
2018-12-09T05:31:38.000Z
simulation_bif.py
jpra2/Presto2
71525a8dece2bcc4f16ff4a2120d7627e9ecd776
[ "CNRI-Python" ]
null
null
null
simulation_bif.py
jpra2/Presto2
71525a8dece2bcc4f16ff4a2120d7627e9ecd776
[ "CNRI-Python" ]
null
null
null
import numpy as np from test34_bif import Msclassic_bif import time t1 = time.time() sim_bif = Msclassic_bif() sim_bif.run_2() t2 = time.time() print('\n') print('tempo de simulacao') print(t2-t1)
15.307692
36
0.733668
9322001858aaaee78e3bacae794e912ed954c8f2
152
py
Python
aioblescan/plugins/__init__.py
brewpi-remix/aioblescan-tilt
7becf3bd21d31a8fd26e0283b2d30a1fdd4c0bee
[ "MIT" ]
null
null
null
aioblescan/plugins/__init__.py
brewpi-remix/aioblescan-tilt
7becf3bd21d31a8fd26e0283b2d30a1fdd4c0bee
[ "MIT" ]
1
2020-04-13T16:33:02.000Z
2020-04-17T13:11:05.000Z
aioblescan/plugins/__init__.py
brewpi-remix/aioblescan-tilt
7becf3bd21d31a8fd26e0283b2d30a1fdd4c0bee
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from .eddystone import EddyStone from .ruuviweather import RuuviWeather from .bluemaestro import BlueMaestro from .tilt import Tilt
21.714286
38
0.822368
932219b8a7ad2d90e5f4dea795f356f55eb45484
3,548
py
Python
backtesters/MA_live_optimise.py
learn-crypto-trading/crypto-price-analysis
70618ecf296e40404f3ebaa2e640c90097c227cb
[ "MIT" ]
29
2018-07-06T18:05:31.000Z
2021-11-29T18:22:36.000Z
backtesters/MA_live_optimise.py
dcimring/crypto-price-analysis
70618ecf296e40404f3ebaa2e640c90097c227cb
[ "MIT" ]
null
null
null
backtesters/MA_live_optimise.py
dcimring/crypto-price-analysis
70618ecf296e40404f3ebaa2e640c90097c227cb
[ "MIT" ]
24
2018-06-15T17:36:31.000Z
2022-03-29T07:27:47.000Z
'''Backtest a strategy that keeps choosing the best MA pair from the past x days and uses that until a better MA pair is found ''' import math import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from ipywidgets import IntProgress from IPython.display import display from backtes...
27.503876
90
0.540868
93222eb288e8c48e9796b7d8747076bd6f9050e5
13,635
py
Python
overcooked_ai_py/mdp/layout_generator.py
ml-lab/overcooked_ai
ee6c2aecd01c8712218b34156246af8c247846aa
[ "MIT" ]
4
2021-07-05T15:06:53.000Z
2021-07-05T15:17:31.000Z
overcooked_ai_py/mdp/layout_generator.py
ml-lab/overcooked_ai
ee6c2aecd01c8712218b34156246af8c247846aa
[ "MIT" ]
null
null
null
overcooked_ai_py/mdp/layout_generator.py
ml-lab/overcooked_ai
ee6c2aecd01c8712218b34156246af8c247846aa
[ "MIT" ]
null
null
null
import numpy as np from overcooked_ai_py.utils import rnd_int_uniform, rnd_uniform from overcooked_ai_py.mdp.actions import Action, Direction from overcooked_ai_py.mdp.overcooked_mdp import OvercookedGridworld EMPTY = ' ' COUNTER = 'X' ONION_DISPENSER = 'O' TOMATO_DISPENSER = 'T' POT = 'P' DISH_DISPENSER = 'D' SERVIN...
36.457219
122
0.625889