hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
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 def authenticate(username, password): user = Users.query.filter_by(username=username).first() if user and user.check_password(password): return user ...
33.133333
71
0.7666
0
0
0
0
0
0
0
0
33
0.066398
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
0
0
0
0
0
0
0
0
1,359
0.816216
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
0
0
0
0
0
0
0
0
0
0
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
0
0
0
0
0
0
0
0
154
0.192741
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 def get_wss_magnitude(wss_vector): if (wss_vector.shape[-1] != 3): return wss_vector return np.sum(wss_vector ** 2, axis=-1) ** 0.5 def get_tawss(wss, dt): x = np.arange(0, len(wss)) x = np.asarray(x) * dt wss_int = simps(wss, x, axis=...
24.301587
67
0.573481
0
0
0
0
0
0
0
0
48
0.031352
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
0
0
0
0
0
0
0
0
2,247
0.345108
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 = {} class MatchResourceSet(Error): """ Verify that the returned resource set is as expected """ cid = "match...
27.683333
73
0.556291
1,034
0.622517
0
0
0
0
0
0
219
0.131848
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 class strLabelConverter(object): def __init__(self, alphabet_): """ 字符串标签转换 """ self.alphabet = alphabet_ +...
31.582133
136
0.57195
4,103
0.364646
0
0
0
0
0
0
3,188
0.283327
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
0
0
0
0
0
0
0
0
21
0.099526
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 @pytest.fixture(scope="function") def threadpool(): pool = ThreadPool(num_workers=1) ...
37.257143
85
0.648773
3,521
0.900051
122
0.031186
3,004
0.767894
452
0.115542
1,104
0.282209
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['ExchangeDivisi...
39.346154
170
0.69697
0
0
0
0
0
0
0
0
656
0.521877
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 class AllZonesView(MethodView): def...
29.141791
79
0.557746
2,502
0.640717
0
0
0
0
0
0
2,270
0.581306
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 números 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
0
0
0
0
0
0
0
0
116
0.408451
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 class TestRouterListener: def test_dispatching(self): def endpoint(request, args): resp = Response() resp.set_json({"...
33.189189
77
0.592834
1,060
0.863192
0
0
0
0
0
0
210
0.17101
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
0
0
0
0
0
0
0
0
322
0.497682
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 def trenner(anzahl_striche): for i in range(anzahl_striche): print("-", end="") print() def fehler(): print("\nFehler: Bitte geben Sie nur Zahlen an, die zur Auswahl stehen.") def ...
28.875
128
0.599206
0
0
0
0
0
0
0
0
886
0.318247
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) class AsciiNode(asciitreemixin.AsciiTreeMixin): """ Overload of...
23.997628
128
0.571824
19,980
0.987642
721
0.03564
4,381
0.21656
0
0
9,240
0.456747
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
0
0
0
0
280
0.211321
0
0
613
0.462642
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
0
0
0
0
0
0
0
0
215
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
0
0
0
0
0
0
0
0
0
0
34b1bf44dd3558edd70025285efa4c01fcb9a1ed
101
py
Python
wellknownmsgs/AppStartingMsg.py
sdyiheng/SimplePythonWebApp
fc3188796a1e48a42a0c22b5f3b430c0de1be87a
[ "MIT" ]
null
null
null
wellknownmsgs/AppStartingMsg.py
sdyiheng/SimplePythonWebApp
fc3188796a1e48a42a0c22b5f3b430c0de1be87a
[ "MIT" ]
null
null
null
wellknownmsgs/AppStartingMsg.py
sdyiheng/SimplePythonWebApp
fc3188796a1e48a42a0c22b5f3b430c0de1be87a
[ "MIT" ]
null
null
null
class AppStartingMsg(object): '''应用程序启动消息''' def __init__(self): self.ErrorMsg = ""
16.833333
29
0.594059
116
0.991453
0
0
0
0
0
0
32
0.273504
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
0
0
0
0
0
0
0
0
67
0.614679
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 class pyonms(): def __init__(self, hostname, username, password): self.hostname = hostname self.api = api.API(hostname=hostname, username=username, password=password) self.nodes = nodes.Nodes(self.api) self.events = events.Eve...
27.125
83
0.665899
375
0.864055
0
0
0
0
0
0
11
0.025346
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
0
0
0
0
0
0
0
0
1,445
0.278152
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
0
0
0
0
1,920
0.683517
0
0
1,109
0.394802
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
0
0
0
0
12,742
0.941481
0
0
3,175
0.234594
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
26,628
0.851796
0
0
0
0
0
0
8,096
0.258981
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
4,418
0.852567
0
0
932
0.179853
0
0
1,052
0.20301
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) def draw_bordered_square(x, y, f...
25.897959
80
0.636722
0
0
0
0
0
0
0
0
85
0.033491
34ba56f92389624b3e0ca24dcce3ebbffc885fcd
3,494
py
Python
latexnewfloat.py
takaakiaoki/sphinx_latexnewfloat
e20c4b6825484976cf41c48a634b67524024007f
[ "BSD-2-Clause" ]
null
null
null
latexnewfloat.py
takaakiaoki/sphinx_latexnewfloat
e20c4b6825484976cf41c48a634b67524024007f
[ "BSD-2-Clause" ]
null
null
null
latexnewfloat.py
takaakiaoki/sphinx_latexnewfloat
e20c4b6825484976cf41c48a634b67524024007f
[ "BSD-2-Clause" ]
null
null
null
r""" latexnewfloat.py extension for latex builder to replace literal-block environment by \captionof{LiteralBlockNewFloat}{caption_title} command. For \captionof command (in capt-of pacakge), the new environment LiteralBlockNewFloat should be configured by newfloat pagage instead of original float package. needspace ...
40.627907
92
0.709788
1,339
0.383228
0
0
0
0
0
0
2,089
0.597882
34baa570e639a04a3c0bb24a77d73f14fd9abb0d
9,347
py
Python
django_g11n/tools/ipranges.py
martinphellwig/django-g11n
94eb9da7d7027061873cd44356fdf3378cdb3820
[ "BSD-2-Clause" ]
null
null
null
django_g11n/tools/ipranges.py
martinphellwig/django-g11n
94eb9da7d7027061873cd44356fdf3378cdb3820
[ "BSD-2-Clause" ]
null
null
null
django_g11n/tools/ipranges.py
martinphellwig/django-g11n
94eb9da7d7027061873cd44356fdf3378cdb3820
[ "BSD-2-Clause" ]
null
null
null
""" Module to fetch and parse regional NIC delegation data """ import urllib.parse import ftplib import os from functools import lru_cache import socket import ipaddress from binascii import hexlify import tempfile TWD = tempfile.gettempdir() DELEGATES = [ # America (non-latin) "ftp://ftp.arin.net/pub/stats/a...
32.120275
80
0.609714
968
0.103563
718
0.076816
248
0.026533
0
0
3,239
0.346528
34bac3615a35d59de02e3b0769b794431fef838e
548
py
Python
resource/index.py
TintypeMolly/Yuzuki
94dc874c4000ac918f0b52846927311b3f25ce2c
[ "MIT" ]
6
2015-01-09T06:32:15.000Z
2015-08-15T13:23:34.000Z
resource/index.py
TintypeMolly/Yuzuki
94dc874c4000ac918f0b52846927311b3f25ce2c
[ "MIT" ]
73
2015-01-08T11:38:34.000Z
2015-09-10T09:55:08.000Z
resource/index.py
TintypeMolly/Yuzuki
94dc874c4000ac918f0b52846927311b3f25ce2c
[ "MIT" ]
11
2015-01-09T06:26:12.000Z
2015-03-26T13:16:19.000Z
# -*- coding: utf-8 -*- from helper.resource import YuzukiResource from helper.template import render_template from config.config import SITE_DESCRIPTION from helper.content import markdown_convert_file class Index(YuzukiResource): def render_GET(self, request): with open("page/index") as f: c...
32.235294
61
0.656934
342
0.624088
0
0
0
0
0
0
83
0.15146
34bb5b87da16431c41b077d93418d9a992f6e4d0
6,281
py
Python
src/dh2019dataverse.py
Mish-JPFD/DAPIload
d1f2c0e9832e6731c7e98f03481712db765e9af6
[ "MIT" ]
null
null
null
src/dh2019dataverse.py
Mish-JPFD/DAPIload
d1f2c0e9832e6731c7e98f03481712db765e9af6
[ "MIT" ]
null
null
null
src/dh2019dataverse.py
Mish-JPFD/DAPIload
d1f2c0e9832e6731c7e98f03481712db765e9af6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Author : Jacques Flores Created : October 17th,2019 About: Script for creating datasets in Dataverse. An Empty JSON file with Dataverse structure is imported and converted into a JSON dict Metadata is imported from an excel file into a pandas dataframe and written into the ...
44.864286
215
0.603566
0
0
0
0
0
0
0
0
2,880
0.458526
34bbafd4c9930c0faccaa0114904fc2722169c13
778
py
Python
manage.py
YaroslavChyhryn/SchoolAPI
6b5eb4e1faf6b962561109fc227057ad0f8d4d92
[ "MIT" ]
null
null
null
manage.py
YaroslavChyhryn/SchoolAPI
6b5eb4e1faf6b962561109fc227057ad0f8d4d92
[ "MIT" ]
null
null
null
manage.py
YaroslavChyhryn/SchoolAPI
6b5eb4e1faf6b962561109fc227057ad0f8d4d92
[ "MIT" ]
null
null
null
from flask_script import Manager, prompt_bool # from flask_migrate import Migrate, MigrateCommand from school_api.app import create_app from school_api.db import create_tables, drop_tables from school_api.data_generator import test_db """ Refused flask_migration because it was overkill for this project """ app = create...
20.473684
66
0.746787
0
0
0
0
297
0.381748
0
0
249
0.320051
34bbecbef412ab4c340ef6c39922f83c94f745b1
214
py
Python
parrot2.py
AmitSuresh/learning-python
f1ea5b9f3659f21504b1b0e452c03239b03cde85
[ "MIT" ]
null
null
null
parrot2.py
AmitSuresh/learning-python
f1ea5b9f3659f21504b1b0e452c03239b03cde85
[ "MIT" ]
null
null
null
parrot2.py
AmitSuresh/learning-python
f1ea5b9f3659f21504b1b0e452c03239b03cde85
[ "MIT" ]
null
null
null
p="\nTell me something, and I will repeat it back to you" p+="\nEnter 'quit' to end the program." active = True while active: message=input(p) if message =='quit': active = False else: print(message)
23.777778
58
0.663551
0
0
0
0
0
0
0
0
97
0.453271
34bcda748e6f244af235e4cdcc2cf69df9e0d4a6
2,512
py
Python
info_modules/custom/example/layer_info.py
HusseinKabbout/qwc-feature-info-service
3d7cdbc1a3dc4a3725ba0529204848d47c4ed87e
[ "MIT" ]
null
null
null
info_modules/custom/example/layer_info.py
HusseinKabbout/qwc-feature-info-service
3d7cdbc1a3dc4a3725ba0529204848d47c4ed87e
[ "MIT" ]
null
null
null
info_modules/custom/example/layer_info.py
HusseinKabbout/qwc-feature-info-service
3d7cdbc1a3dc4a3725ba0529204848d47c4ed87e
[ "MIT" ]
2
2020-03-24T09:13:14.000Z
2021-09-29T10:43:31.000Z
# Sample implementation of a custom layer info module def layer_info(layer, x, y, crs, params, identity): """Query layer and return info result as dict: { 'features': [ { 'id': <feature ID>, # optional 'attributes': [ ...
31.797468
78
0.48328
0
0
0
0
0
0
0
0
2,016
0.802548
34bce8f103a1242d4cbbb176bc3c65328694b160
20,740
py
Python
integration/gCalIntegration.py
conzty01/RA_Scheduler
6bf4931871aef4058d93917e62ceb31766e06b3a
[ "MIT" ]
1
2021-03-31T05:26:17.000Z
2021-03-31T05:26:17.000Z
integration/gCalIntegration.py
conzty01/RA_Scheduler
6bf4931871aef4058d93917e62ceb31766e06b3a
[ "MIT" ]
83
2018-03-19T18:32:34.000Z
2022-02-01T02:15:01.000Z
integration/gCalIntegration.py
conzty01/RA_Scheduler
6bf4931871aef4058d93917e62ceb31766e06b3a
[ "MIT" ]
2
2021-01-15T22:16:00.000Z
2021-02-10T01:03:32.000Z
from google.auth.transport.requests import Request from googleapiclient.discovery import build from googleapiclient.errors import HttpError import google_auth_oauthlib.flow import logging import os class gCalIntegratinator: """ Object for handling interactions between RADSA and Google Calendar API. This ...
46.711712
129
0.588091
20,478
0.987367
0
0
0
0
0
0
11,683
0.563308
34bff1450311d256bf20dadcb095880fb22acb44
933
py
Python
pins/admin.py
boyombo/smsbet
66c20494b729c930edec553fe71e2084222acc4a
[ "MIT" ]
null
null
null
pins/admin.py
boyombo/smsbet
66c20494b729c930edec553fe71e2084222acc4a
[ "MIT" ]
null
null
null
pins/admin.py
boyombo/smsbet
66c20494b729c930edec553fe71e2084222acc4a
[ "MIT" ]
null
null
null
from random import choice from django.contrib import admin from pins.models import Batch, Pin from pins.forms import BatchForm def gen_randomdigits(size=10): return ''.join([choice('1234567890') for i in range(size)]) class BatchAdmin(admin.ModelAdmin): list_display = ('count', 'used', 'created_on', 'down...
23.923077
69
0.622722
625
0.669882
0
0
0
0
0
0
100
0.107181
34c1c0f2296ec9a8cff26832714ccf9c61244f45
961
py
Python
2017/February/2_maxcross/maxcross.py
alantao5056/USACO_Silver
6998cb916692af58a0b40b1a4aff0708ee1106b8
[ "MIT" ]
null
null
null
2017/February/2_maxcross/maxcross.py
alantao5056/USACO_Silver
6998cb916692af58a0b40b1a4aff0708ee1106b8
[ "MIT" ]
null
null
null
2017/February/2_maxcross/maxcross.py
alantao5056/USACO_Silver
6998cb916692af58a0b40b1a4aff0708ee1106b8
[ "MIT" ]
null
null
null
def getMinFix(K, N, signals): if K == 1: if set(signals) == {False}: return 1 return 0 startInd = 0 endInd = K - 1 lastStart = signals[0] curCount = signals[0:K].count(False) minCount = curCount for _ in range(N-K): startInd += 1 endInd += 1 if not lastStart: curCoun...
20.891304
62
0.612903
0
0
0
0
0
0
0
0
53
0.055151
34c2dd9c20a2135a93d6b5c256d90be592b639fa
752
py
Python
Python/leetcode2/41. First Missing Positive.py
darrencheng0817/AlgorithmLearning
aec1ddd0c51b619c1bae1e05f940d9ed587aa82f
[ "MIT" ]
2
2015-12-02T06:44:01.000Z
2016-05-04T21:40:54.000Z
Python/leetcode2/41. First Missing Positive.py
darrencheng0817/AlgorithmLearning
aec1ddd0c51b619c1bae1e05f940d9ed587aa82f
[ "MIT" ]
null
null
null
Python/leetcode2/41. First Missing Positive.py
darrencheng0817/AlgorithmLearning
aec1ddd0c51b619c1bae1e05f940d9ed587aa82f
[ "MIT" ]
null
null
null
''' Given an unsorted integer array, find the smallest missing positive integer. Example 1: Input: [1,2,0] Output: 3 Example 2: Input: [3,4,-1,1] Output: 2 Example 3: Input: [7,8,9,11,12] Output: 1 Note: Your algorithm should run in O(n) time and uses constant extra space. ''' class Solution: def firstMissingP...
21.485714
76
0.575798
406
0.539894
0
0
0
0
0
0
282
0.375
34c375e2a66eb6bf3befc20ceb9878fbf3112409
6,531
py
Python
4/figs/figX9/entropy_comparison_ew_hsm_igm.py
t-young31/thesis
2dea31ef64f4b7d55b8bdfc2094bab6579a529e0
[ "MIT" ]
null
null
null
4/figs/figX9/entropy_comparison_ew_hsm_igm.py
t-young31/thesis
2dea31ef64f4b7d55b8bdfc2094bab6579a529e0
[ "MIT" ]
null
null
null
4/figs/figX9/entropy_comparison_ew_hsm_igm.py
t-young31/thesis
2dea31ef64f4b7d55b8bdfc2094bab6579a529e0
[ "MIT" ]
null
null
null
""" Calculate the translational entropy with EW, HSM and IGM models """ import numpy as np import matplotlib.pyplot as plt from scipy import integrate plt.style.use("paper") ha2kjmol = 627.5 * 4.184 class Constants: hbar_au = 1.0 h_au = hbar_au * 2.0 * np.pi kb_au = 3.1668114E-6 # hartrees K-1 h_...
34.739362
100
0.548767
4,908
0.751033
0
0
1,202
0.183933
0
0
1,268
0.194032
34c5294b5c38bdcb5b04e56497ca943887aae731
53
py
Python
gramex/apps/nlg/__init__.py
joshuamosesb/gramex
e416cb609698b5941a18b06743c853dee50e0500
[ "MIT" ]
1
2020-05-17T18:03:44.000Z
2020-05-17T18:03:44.000Z
gramex/apps/nlg/__init__.py
joshuamosesb/gramex
e416cb609698b5941a18b06743c853dee50e0500
[ "MIT" ]
null
null
null
gramex/apps/nlg/__init__.py
joshuamosesb/gramex
e416cb609698b5941a18b06743c853dee50e0500
[ "MIT" ]
null
null
null
from .nlgsearch import templatize # NOQA: F401
26.5
52
0.698113
0
0
0
0
0
0
0
0
12
0.226415
34c843d990ddc136afa91e10afc82afbaed4398e
5,300
py
Python
MessagePassingRPC/rpc_client.py
asgokhale/DistributedSystemsCourse
9ae24ed65e7a7ef849c7e39ec5a1a8cc5973c12f
[ "Apache-2.0" ]
4
2022-01-16T17:36:49.000Z
2022-02-07T16:57:33.000Z
MessagePassingRPC/rpc_client.py
asgokhale/DistributedSystemsCourse
9ae24ed65e7a7ef849c7e39ec5a1a8cc5973c12f
[ "Apache-2.0" ]
null
null
null
MessagePassingRPC/rpc_client.py
asgokhale/DistributedSystemsCourse
9ae24ed65e7a7ef849c7e39ec5a1a8cc5973c12f
[ "Apache-2.0" ]
1
2022-01-25T23:51:51.000Z
2022-01-25T23:51:51.000Z
############################################## # # Author: Aniruddha Gokhale # # Created: Spring 2022 # # Purpose: demonstrate a basic remote procedure call-based client # # A RPC uses message passing under the hood but provides a more # type-safe and intuitive way for users to make invocations on the remote # side bec...
37.588652
132
0.658679
1,554
0.293208
0
0
0
0
0
0
3,851
0.726604
34c9095464074f8f39e3db552d812f1238aad8c5
1,305
py
Python
main.py
Sirius1942/Agave_ui_tools
7789de1d40955046d2e40fbe1c552f4a082c1472
[ "MIT" ]
1
2019-04-10T03:17:16.000Z
2019-04-10T03:17:16.000Z
main.py
Sirius1942/Agave_ui_tools
7789de1d40955046d2e40fbe1c552f4a082c1472
[ "MIT" ]
null
null
null
main.py
Sirius1942/Agave_ui_tools
7789de1d40955046d2e40fbe1c552f4a082c1472
[ "MIT" ]
null
null
null
import sys from PyQt5.QtWidgets import QApplication,QMainWindow,QDialog from PyQt5 import QtCore, QtGui, QtWidgets from ui.main_window import Ui_MainWindow # from login import Ui_dialog from lib.tcmd import TCmdClass # from SignalsE import Example class MyMainWindow(QMainWindow,Ui_MainWindow): def __init__(se...
24.622642
75
0.683525
655
0.489903
0
0
0
0
0
0
415
0.310396
34ca769ede09a2256c0d08709d7ea01edfa2631c
1,675
py
Python
lib/python2.7/site-packages/setools/polcapquery.py
TinkerEdgeR-Android/prebuilts_python_linux-x86_2.7.5
5bcc5eb23dbb00d5e5dbf75835aa2fb79e8bafa2
[ "PSF-2.0" ]
null
null
null
lib/python2.7/site-packages/setools/polcapquery.py
TinkerEdgeR-Android/prebuilts_python_linux-x86_2.7.5
5bcc5eb23dbb00d5e5dbf75835aa2fb79e8bafa2
[ "PSF-2.0" ]
null
null
null
lib/python2.7/site-packages/setools/polcapquery.py
TinkerEdgeR-Android/prebuilts_python_linux-x86_2.7.5
5bcc5eb23dbb00d5e5dbf75835aa2fb79e8bafa2
[ "PSF-2.0" ]
1
2020-05-14T05:25:00.000Z
2020-05-14T05:25:00.000Z
# Copyright 2014-2015, Tresys Technology, LLC # # This file is part of SETools. # # SETools is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation, either version 2.1 of # the License, or (at your option) any l...
31.603774
90
0.699104
867
0.517612
354
0.211343
0
0
0
0
1,135
0.677612
34cc917b6b0a55b388657d87b459c3107ab03a8f
2,108
py
Python
src_Python/EtabsAPIbface1/EtabsAPIe_eUnits.py
fjmucho/APIdeEtabsYPython
a5c7f7fe1861c4ac3c9370ef06e291f94c6fd523
[ "MIT" ]
null
null
null
src_Python/EtabsAPIbface1/EtabsAPIe_eUnits.py
fjmucho/APIdeEtabsYPython
a5c7f7fe1861c4ac3c9370ef06e291f94c6fd523
[ "MIT" ]
null
null
null
src_Python/EtabsAPIbface1/EtabsAPIe_eUnits.py
fjmucho/APIdeEtabsYPython
a5c7f7fe1861c4ac3c9370ef06e291f94c6fd523
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- """Description: """ import os import sys import comtypes.client try: ETABSObject = comtypes.client.GetActiveObject("CSI.ETABS.API.ETABSObject") print("Coneccion exitosa!.\nadjuntando a una instancia existente.") except (OSError, comtypes.COMError): ...
31.939394
85
0.693074
0
0
0
0
0
0
0
0
1,163
0.551185
34ccc2dc6b0cda2dc80e2e73e7a9e34065db3f8d
826
py
Python
casepro/msgs/migrations/0040_outgoing_as_single_pt1.py
rapidpro/ureport-partners
16e5b95eae36ecbbe8ab2a59f34a2f5fd32ceacd
[ "BSD-3-Clause" ]
21
2015-07-21T15:57:49.000Z
2021-11-04T18:26:35.000Z
casepro/msgs/migrations/0040_outgoing_as_single_pt1.py
rapidpro/ureport-partners
16e5b95eae36ecbbe8ab2a59f34a2f5fd32ceacd
[ "BSD-3-Clause" ]
357
2015-05-22T07:26:45.000Z
2022-03-12T01:08:28.000Z
casepro/msgs/migrations/0040_outgoing_as_single_pt1.py
rapidpro/ureport-partners
16e5b95eae36ecbbe8ab2a59f34a2f5fd32ceacd
[ "BSD-3-Clause" ]
24
2015-05-28T12:30:25.000Z
2021-11-19T01:57:38.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("msgs", "0039_outgoing_text_non_null")] operations = [ migrations.AlterField( model_name="outgoing", name="backend...
33.04
110
0.654964
717
0.868039
0
0
0
0
0
0
219
0.265133
34d35a78f92c8bdc372877964e8913cfb9da9911
197
py
Python
Areatriangulo.py
ChristianSalas1234567/salas-yupanqui
36fdbe3ebc51cd73f62870fcc8b646ad98133ae7
[ "Apache-2.0" ]
1
2021-04-22T12:34:37.000Z
2021-04-22T12:34:37.000Z
Areatriangulo.py
ChristianSalas1234567/salas-yupanqui
36fdbe3ebc51cd73f62870fcc8b646ad98133ae7
[ "Apache-2.0" ]
null
null
null
Areatriangulo.py
ChristianSalas1234567/salas-yupanqui
36fdbe3ebc51cd73f62870fcc8b646ad98133ae7
[ "Apache-2.0" ]
null
null
null
#variables de entrada print("area del triangulo") #datos de entrada B=int(input("ingrese base:")) H=int(input("ingrese haltura:")) #proceso area=(B*H)/2 #datos de salida print("el area es: ", area)
21.888889
32
0.71066
0
0
0
0
0
0
0
0
129
0.654822
34d4e4b6e7b86d15d1faa785806544997cfd4d94
1,756
py
Python
testing/session.py
edchelstephens/django-rest-utils
15cee427149217d1e53384281894f91e9653b6b4
[ "BSD-3-Clause" ]
1
2022-02-20T01:37:25.000Z
2022-02-20T01:37:25.000Z
testing/session.py
edchelstephens/django-rest-utils
15cee427149217d1e53384281894f91e9653b6b4
[ "BSD-3-Clause" ]
null
null
null
testing/session.py
edchelstephens/django-rest-utils
15cee427149217d1e53384281894f91e9653b6b4
[ "BSD-3-Clause" ]
null
null
null
from typing import Any, Optional from django.contrib.sessions.middleware import SessionMiddleware class SessionTestMixin: """Session Test mixin.""" def is_session_empty(self, request) -> int: """Check if request.session is empty.""" return len(request.session.values()) == 0 def assertSes...
35.12
98
0.649772
1,650
0.939636
0
0
0
0
0
0
560
0.318907
34d967b2599f558aa7f42f79ee2207cb821523d7
2,930
py
Python
test/integration/test_integration_halo.py
cloudpassage/provision_csp_accounts
a99fd6322116d5482bc183c4084a9066d81bc0b3
[ "BSD-3-Clause" ]
2
2020-02-11T21:47:55.000Z
2021-01-16T02:49:06.000Z
test/integration/test_integration_halo.py
cloudpassage/provision_csp_accounts
a99fd6322116d5482bc183c4084a9066d81bc0b3
[ "BSD-3-Clause" ]
2
2019-05-31T22:30:46.000Z
2020-02-11T21:31:38.000Z
test/integration/test_integration_halo.py
cloudpassage/provision_csp_accounts
a99fd6322116d5482bc183c4084a9066d81bc0b3
[ "BSD-3-Clause" ]
1
2020-02-11T21:05:34.000Z
2020-02-11T21:05:34.000Z
import cloudpassage import provisioner import pytest import os here_dir = os.path.abspath(os.path.dirname(__file__)) fixture_dir = os.path.join(here_dir, "../fixture") class TestIntegrationHalo(object): def instantiate_halo_object(self, config): """Return an instance of the provisioner.Halo object.""" ...
41.267606
91
0.695904
2,758
0.941297
0
0
0
0
0
0
713
0.243345
34da6249230478c06324343ddaaf9e58a8828973
22,665
py
Python
tests/python3/test_lambda.py
pecigonzalo/aws-lambda-ddns-function
06e6c06bced80611238734d202deb284a5680813
[ "Apache-2.0" ]
120
2018-02-14T21:36:45.000Z
2022-03-23T20:52:17.000Z
tests/python3/test_lambda.py
pecigonzalo/aws-lambda-ddns-function
06e6c06bced80611238734d202deb284a5680813
[ "Apache-2.0" ]
17
2018-03-29T09:21:23.000Z
2021-04-21T21:48:42.000Z
tests/python3/test_lambda.py
pecigonzalo/aws-lambda-ddns-function
06e6c06bced80611238734d202deb284a5680813
[ "Apache-2.0" ]
70
2018-02-15T13:03:05.000Z
2022-02-24T13:52:43.000Z
import os import sys import boto3 import boto import moto import botocore import unittest import logging import re import sure import botocore.session from datetime import datetime from moto import mock_sns_deprecated, mock_sqs_deprecated from botocore.stub import Stubber from freezegun import freeze_time from mock imp...
30.382038
571
0.528039
21,278
0.938804
0
0
2,612
0.115244
0
0
4,564
0.201368
34db9103dcbc551abbdebff8ae585f4f1742d35b
1,929
py
Python
web/transiq/api/decorators.py
manibhushan05/transiq
763fafb271ce07d13ac8ce575f2fee653cf39343
[ "Apache-2.0" ]
null
null
null
web/transiq/api/decorators.py
manibhushan05/transiq
763fafb271ce07d13ac8ce575f2fee653cf39343
[ "Apache-2.0" ]
14
2020-06-05T23:06:45.000Z
2022-03-12T00:00:18.000Z
web/transiq/api/decorators.py
manibhushan05/transiq
763fafb271ce07d13ac8ce575f2fee653cf39343
[ "Apache-2.0" ]
null
null
null
import json from api.helper import json_405_response, json_error_response def no_test(func): """ Use for URLs that do not require testing, use wisely """ def inner(request, *args, **kwargs): return func(request, *args, **kwargs) inner.__name__ = func.__name__ inner.__module__ = func._...
30.619048
95
0.653188
0
0
0
0
0
0
0
0
163
0.0845
34dbc736ddc462f2c6d882b037aad3cf68384021
16,484
py
Python
ASHMC/courses/management/commands/populate_from_csv.py
haaksmash/Webfront
8eb942394c568c681a83bc2c375d7552f4b3a30c
[ "Apache-2.0" ]
null
null
null
ASHMC/courses/management/commands/populate_from_csv.py
haaksmash/Webfront
8eb942394c568c681a83bc2c375d7552f4b3a30c
[ "Apache-2.0" ]
null
null
null
ASHMC/courses/management/commands/populate_from_csv.py
haaksmash/Webfront
8eb942394c568c681a83bc2c375d7552f4b3a30c
[ "Apache-2.0" ]
null
null
null
''' Created on Apr 16, 2012 @author: Haak Saxberg ''' from django.core.management.base import BaseCommand, CommandError from django.core.exceptions import ObjectDoesNotExist from django.db.utils import IntegrityError from ...models import Campus, Course, Professor, Section, Meeting, Timeslot, Day, Semester,\ ...
44.672087
127
0.473186
16,060
0.974278
0
0
0
0
0
0
4,754
0.288401
34dcd15230933fd8287950f334911c981fecf57b
858
py
Python
Alura/MLClassificacao2/A4V4_Classificando_email.py
EduardoMoraesRitter/Alura
c0f5e7e9807e8e1d1dc46e6b847df8a8085783a6
[ "MIT" ]
null
null
null
Alura/MLClassificacao2/A4V4_Classificando_email.py
EduardoMoraesRitter/Alura
c0f5e7e9807e8e1d1dc46e6b847df8a8085783a6
[ "MIT" ]
null
null
null
Alura/MLClassificacao2/A4V4_Classificando_email.py
EduardoMoraesRitter/Alura
c0f5e7e9807e8e1d1dc46e6b847df8a8085783a6
[ "MIT" ]
null
null
null
import pandas as pd classificacoes = pd.read_csv('email.csv') textosPuros = classificacoes['email'] textosQuebrados = textosPuros.str.lower().str.split(' ') dicionario = set() for lista in textosQuebrados: dicionario.update(lista) totalPalavras = len(dicionario) tuplas = list(zip(dicionario, range(totalPalavras)...
28.6
80
0.749417
0
0
0
0
0
0
0
0
180
0.20979
34dd7a78ed67d24dec24e1e267661e54ecc9605b
23,901
py
Python
tests/test_challonge.py
eprouty/dgcastle
b4b56f7675648987f30d016a45e716cb76c69516
[ "MIT" ]
null
null
null
tests/test_challonge.py
eprouty/dgcastle
b4b56f7675648987f30d016a45e716cb76c69516
[ "MIT" ]
13
2017-01-30T15:38:38.000Z
2017-06-09T00:15:58.000Z
tests/test_challonge.py
eprouty/dgcastle
b4b56f7675648987f30d016a45e716cb76c69516
[ "MIT" ]
null
null
null
import copy import os import pickle import unittest from unittest.mock import patch from dgcastle import dgcastle from dgcastle.exceptions import IncompleteException from dgcastle.exceptions import ValidationException from dgcastle.handlers.challonge import Challonge TEST_TOURNAMENT = pickle.loads(b'\x80\x03}q\x00(X\...
426.803571
10,690
0.770554
1,874
0.078407
0
0
0
0
0
0
21,886
0.915694
34e14659ac3348a14f3cb971dd1656c1b96e47ab
4,917
py
Python
MIDI Remote Scripts/pushbase/step_duplicator.py
aarkwright/ableton_devices
fe5df3bbd64ccbc136bba722ba1e131a02969798
[ "MIT" ]
null
null
null
MIDI Remote Scripts/pushbase/step_duplicator.py
aarkwright/ableton_devices
fe5df3bbd64ccbc136bba722ba1e131a02969798
[ "MIT" ]
null
null
null
MIDI Remote Scripts/pushbase/step_duplicator.py
aarkwright/ableton_devices
fe5df3bbd64ccbc136bba722ba1e131a02969798
[ "MIT" ]
null
null
null
# uncompyle6 version 3.3.5 # Python bytecode 2.7 (62211) # Decompiled from: Python 3.7.3 (default, Apr 24 2019, 15:29:51) [MSC v.1915 64 bit (AMD64)] # Embedded file name: c:\Jenkins\live\output\win_64_static\Release\python-bundle\MIDI Remote Scripts\pushbase\step_duplicator.py # Compiled at: 2018-11-30 15:48:12 from _...
39.653226
216
0.690462
3,473
0.706325
0
0
241
0.049014
0
0
309
0.062843
34e3c30f1eecc4a83cc074f6ae2e470a42d8d132
1,058
py
Python
cride/users/models/exchanges.py
albertoaldanar/betmatcherAPI
c0590025efd79f4e489f9c9433b17554ea6ba23f
[ "MIT" ]
null
null
null
cride/users/models/exchanges.py
albertoaldanar/betmatcherAPI
c0590025efd79f4e489f9c9433b17554ea6ba23f
[ "MIT" ]
7
2020-06-05T20:53:27.000Z
2022-03-11T23:47:12.000Z
cride/users/models/exchanges.py
albertoaldanar/betmatcherAPI
c0590025efd79f4e489f9c9433b17554ea6ba23f
[ "MIT" ]
null
null
null
from django.db import models #Utilities from cride.utils.models import BetmatcherModel class Exchange(BetmatcherModel): user = models.ForeignKey( "users.User", on_delete = models.CASCADE, related_name = "user" ) prize = models.ForeignKey( "users.Prize", on_delete = models.CASCADE, rela...
28.594595
74
0.6862
967
0.913989
0
0
0
0
0
0
79
0.074669
34e4d3ae291ecf089e466ddec64c7d9c23c88213
1,540
py
Python
Python/Examples/Macros/MoveAxis.py
halmusaibeli/RoboDK-API
e017aa26715bc8d0fcbbc05e57acc32f2d2d6174
[ "MIT" ]
null
null
null
Python/Examples/Macros/MoveAxis.py
halmusaibeli/RoboDK-API
e017aa26715bc8d0fcbbc05e57acc32f2d2d6174
[ "MIT" ]
null
null
null
Python/Examples/Macros/MoveAxis.py
halmusaibeli/RoboDK-API
e017aa26715bc8d0fcbbc05e57acc32f2d2d6174
[ "MIT" ]
null
null
null
# This macro allows changing the position of an external axis by hand or within a program as a function call. # Example of a function call (units are in mm or deg): # MoveAxis(0) # MoveAxis(100) # https://robodk.com/doc/en/RoboDK-API.html import sys # allows getting the passed argument parameters from robodk.rob...
32.765957
161
0.698701
0
0
0
0
0
0
0
0
1,038
0.674026
34e56db9261caf77c7f05ca57c7245a93b1deefe
11,035
py
Python
tests/test_setup.py
rozuur/ptvsd
046fd0f054b2eed91ec5df02e5f36151b71e36b1
[ "MIT" ]
null
null
null
tests/test_setup.py
rozuur/ptvsd
046fd0f054b2eed91ec5df02e5f36151b71e36b1
[ "MIT" ]
null
null
null
tests/test_setup.py
rozuur/ptvsd
046fd0f054b2eed91ec5df02e5f36151b71e36b1
[ "MIT" ]
null
null
null
import os.path import unittest from setup import iter_vendored_files class IterVendoredFilesTests(unittest.TestCase): def test_all(self): filenames = set(iter_vendored_files()) self.assertEqual(filenames, VENDORED) VENDORED = {file.replace('/', os.path.sep) for file in [ 'pydevd/pydev_run...
50.852535
79
0.786226
167
0.015134
0
0
0
0
0
0
9,536
0.864159
34e5b5fd754168ef6338e900c37a7a2ea6696ba4
3,126
py
Python
pgcsv/db.py
pudo/pgcsv
9a6ae352da2ae3de5953b8b1f4c48dfcab403a3e
[ "MIT" ]
66
2017-02-05T19:36:03.000Z
2022-01-25T21:41:18.000Z
pgcsv/db.py
pudo/pgcsv
9a6ae352da2ae3de5953b8b1f4c48dfcab403a3e
[ "MIT" ]
4
2020-05-19T20:26:13.000Z
2021-06-25T15:27:47.000Z
pgcsv/db.py
pudo/pgcsv
9a6ae352da2ae3de5953b8b1f4c48dfcab403a3e
[ "MIT" ]
6
2017-12-02T15:37:38.000Z
2021-07-21T15:19:02.000Z
from psycopg2 import connect from psycopg2.sql import SQL, Identifier, Literal, Composed from collections import OrderedDict from itertools import count from pgcsv.util import normalize_column class Database(object): def __init__(self, uri, table, headers): self.conn = connect(uri) self.table = ...
39.075
71
0.519834
2,929
0.93698
0
0
597
0.190979
0
0
462
0.147793
34e6daa9b5c20ae4ca92bdc6ec1b8667b677185b
4,629
py
Python
rate_coeff.py
emilyng/Chemistry-Solver
f4f21dd37898d35d669f9d0223674e251a4c58dd
[ "MIT" ]
null
null
null
rate_coeff.py
emilyng/Chemistry-Solver
f4f21dd37898d35d669f9d0223674e251a4c58dd
[ "MIT" ]
null
null
null
rate_coeff.py
emilyng/Chemistry-Solver
f4f21dd37898d35d669f9d0223674e251a4c58dd
[ "MIT" ]
null
null
null
##Rate Coefficients import numpy as np def k1(T): T_eV = T / 11605. log_T_eV = np.log(T_eV) rv = np.exp(-32.71396786375 + 13.53655609057*log_T_eV - 5.739328757388*log_T_eV**2 + 1.563154982022*log_T_eV**3 - 0.2877056004391*log_T_eV**4 + 0.03482559773736999...
27.885542
85
0.499244
0
0
0
0
0
0
0
0
19
0.004105
34e6e2e24b84eeef879d6258960994f7f583e7ce
2,525
py
Python
control/thrust_vectoring.py
cuauv/software
5ad4d52d603f81a7f254f365d9b0fe636d03a260
[ "BSD-3-Clause" ]
70
2015-11-16T18:04:01.000Z
2022-03-05T09:04:02.000Z
control/thrust_vectoring.py
cuauv/software
5ad4d52d603f81a7f254f365d9b0fe636d03a260
[ "BSD-3-Clause" ]
1
2016-08-03T05:13:19.000Z
2016-08-03T06:19:39.000Z
control/thrust_vectoring.py
cuauv/software
5ad4d52d603f81a7f254f365d9b0fe636d03a260
[ "BSD-3-Clause" ]
34
2015-12-15T17:29:23.000Z
2021-11-18T14:15:12.000Z
import math import numpy as np FULL_RANGE = 1024 class VectoringThrusterData(object): def __init__(self, position, axis, start, angle, offset, _reversed = False): vector_axis = np.array(axis) vector_1 = np.array(start) self.vector_axis = vector_axis / np.linalg.norm(vector_axis) self.force_1 = vecto...
34.589041
79
0.670099
2,473
0.979406
0
0
0
0
0
0
791
0.313267
34e7cf6e1775685d6271aef6702b1730ac2e95bc
1,956
py
Python
tests/unit/test_bad_cluster.py
ylipacbio/pbtranscript
6b4ef164f191ffd4201feb62b951d9eeac3315b6
[ "BSD-3-Clause" ]
null
null
null
tests/unit/test_bad_cluster.py
ylipacbio/pbtranscript
6b4ef164f191ffd4201feb62b951d9eeac3315b6
[ "BSD-3-Clause" ]
null
null
null
tests/unit/test_bad_cluster.py
ylipacbio/pbtranscript
6b4ef164f191ffd4201feb62b951d9eeac3315b6
[ "BSD-3-Clause" ]
1
2021-02-26T10:08:09.000Z
2021-02-26T10:08:09.000Z
# XXX verification for bug 30828 - runs ice_pbdagcon on a spurious cluster # and checks that it discards the resulting all-N consensus sequence import subprocess import tempfile import unittest import os.path as op from pbcore.io import FastaReader CLUSTER_FA = """\ >m54007_151222_230824/47383194/334_64_CCS CATTGAA...
44.454545
327
0.812883
680
0.347648
0
0
0
0
0
0
1,174
0.600204
34ea6bc99bdf93d5fbca0d7c5dabe8656d17800e
96
py
Python
venv/lib/python3.8/site-packages/poetry/core/packages/constraints/union_constraint.py
Retraces/UkraineBot
3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/poetry/core/packages/constraints/union_constraint.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/poetry/core/packages/constraints/union_constraint.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/a5/a1/10/06eab95524f667caa51362a09c577fd5f6d45980e5390034745c0a322f
96
96
0.895833
0
0
0
0
0
0
0
0
0
0
34ebc2d0c5cd30f9146703ef59fd7175839c43d2
4,028
py
Python
test/unit3/test_docstring.py
timmartin/skulpt
2e3a3fbbaccc12baa29094a717ceec491a8a6750
[ "MIT" ]
2,671
2015-01-03T08:23:25.000Z
2022-03-31T06:15:48.000Z
test/unit3/test_docstring.py
timmartin/skulpt
2e3a3fbbaccc12baa29094a717ceec491a8a6750
[ "MIT" ]
972
2015-01-05T08:11:00.000Z
2022-03-29T13:47:15.000Z
test/unit3/test_docstring.py
timmartin/skulpt
2e3a3fbbaccc12baa29094a717ceec491a8a6750
[ "MIT" ]
845
2015-01-03T19:53:36.000Z
2022-03-29T18:34:22.000Z
import unittest def banana(): "Yellow" return 42 def orange(): "Oran" "ge" def blackbirds(): 4 + 20 # Not a docstring def do_nothing(): pass def make_adder(n): "Function adding N" def add(x): "Compute N + X" return n + x return add class Strawberry: "Deli...
24.711656
82
0.638034
3,676
0.912612
0
0
138
0.03426
0
0
771
0.19141
34ebcfd140d8b8342551373bb548dcc3e38235a3
11,609
py
Python
mixer.py
ejhumphrey/mixer_bingo
d78174384e4476de70348d3e17a72d45ff04d960
[ "0BSD" ]
null
null
null
mixer.py
ejhumphrey/mixer_bingo
d78174384e4476de70348d3e17a72d45ff04d960
[ "0BSD" ]
null
null
null
mixer.py
ejhumphrey/mixer_bingo
d78174384e4476de70348d3e17a72d45ff04d960
[ "0BSD" ]
null
null
null
from __future__ import print_function import argparse import json import jsonschema import logging import numpy as np import networkx as nx import os import pandas as pd import random import sys logger = logging.getLogger(name=__file__) def _load_schema(): schema_file = os.path.join(os.path.dirname(__file__), ...
27.839329
81
0.593591
0
0
0
0
0
0
0
0
4,341
0.373934
34f18dca2b35de2acae03f31c1e789e6be8e839f
756
py
Python
mwthesaurus/model.py
PederHA/mwthesaurus
c58d9bdf82fce906c8a2c908b803b2a9db4bc0a2
[ "MIT" ]
null
null
null
mwthesaurus/model.py
PederHA/mwthesaurus
c58d9bdf82fce906c8a2c908b803b2a9db4bc0a2
[ "MIT" ]
null
null
null
mwthesaurus/model.py
PederHA/mwthesaurus
c58d9bdf82fce906c8a2c908b803b2a9db4bc0a2
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from typing import List from itertools import chain @dataclass class Word: word: str wordtype: str shortdef: List[str] = field(default_factory=list) synonyms: List[str] = field(default_factory=list) antonyms: List[str] = field(default_factory=list) stem...
30.24
67
0.640212
649
0.858466
0
0
660
0.873016
0
0
61
0.080688
34f1d3eabe979cf0b88b9e39d396c23d11f9013e
9,487
py
Python
bouncingball_cortix.py
seamuss1/BouncingBall
6c4ff0838fa0366798efd8922c2632a8bfa5f15b
[ "MIT" ]
1
2019-08-11T23:55:05.000Z
2019-08-11T23:55:05.000Z
bouncingball_cortix.py
seamuss1/BouncingBall
6c4ff0838fa0366798efd8922c2632a8bfa5f15b
[ "MIT" ]
null
null
null
bouncingball_cortix.py
seamuss1/BouncingBall
6c4ff0838fa0366798efd8922c2632a8bfa5f15b
[ "MIT" ]
null
null
null
import os, time, datetime, threading, random import numpy as np import matplotlib.pyplot as plt import sys from cortix.src.module import Module from cortix.src.port import Port from cortix.src.cortix_main import Cortix import time from bb_plot import Plot import shapely.geometry as geo import shapely.ops from shapely i...
39.529167
144
0.54211
6,915
0.728892
0
0
0
0
0
0
1,246
0.131338
34f2d98b52c7839e3432965351129274c2ecd039
23,904
py
Python
pgimp/GimpFileCollectionTest.py
netogallo/pgimp
bb86254983e1673d702e1fa2ed207166fd15ec65
[ "MIT" ]
5
2018-10-29T10:09:37.000Z
2020-12-28T04:47:32.000Z
pgimp/GimpFileCollectionTest.py
netogallo/pgimp
bb86254983e1673d702e1fa2ed207166fd15ec65
[ "MIT" ]
1
2020-10-21T18:35:44.000Z
2021-06-17T06:27:26.000Z
pgimp/GimpFileCollectionTest.py
netogallo/pgimp
bb86254983e1673d702e1fa2ed207166fd15ec65
[ "MIT" ]
4
2019-09-20T05:14:39.000Z
2021-04-05T01:55:47.000Z
# Copyright 2018 Mathias Burger <mathias.burger@gmail.com> # # SPDX-License-Identifier: MIT import os import shutil import textwrap from tempfile import TemporaryDirectory import numpy as np import pytest from pgimp.GimpFile import GimpFile, GimpFileType from pgimp.GimpFileCollection import GimpFileCollection, NonEx...
42.084507
125
0.650602
0
0
0
0
0
0
0
0
5,124
0.214357
34f2f00e1352060e6764c5a58765eca101cee86d
2,542
py
Python
lstm.py
ryubidragonfire/text-emo
a03a9aa0d2e055277fc63a70822816853e5a35c0
[ "MIT" ]
null
null
null
lstm.py
ryubidragonfire/text-emo
a03a9aa0d2e055277fc63a70822816853e5a35c0
[ "MIT" ]
null
null
null
lstm.py
ryubidragonfire/text-emo
a03a9aa0d2e055277fc63a70822816853e5a35c0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Sep 29 13:07:10 2016 @author: chyam purpose: A vanila lstm model for text classification. """ from __future__ import print_function from keras.models import Sequential from keras.layers import Dense, Dropout, Activation from keras.layers import LSTM from sklearn.feature_ex...
35.802817
152
0.712825
0
0
0
0
0
0
0
0
593
0.233281
34f37412bfc46db2a069f8207380b8ab7bc124d7
207
py
Python
day_1/fibonacci.py
Ishaan-99-cyber/ml-workshop-wac-1
186d4b6544c7e55cea052312934e455a51d1698a
[ "MIT" ]
6
2020-12-24T07:10:58.000Z
2021-04-11T09:19:18.000Z
day_1/fibonacci.py
Ishaan-99-cyber/ml-workshop-wac-1
186d4b6544c7e55cea052312934e455a51d1698a
[ "MIT" ]
null
null
null
day_1/fibonacci.py
Ishaan-99-cyber/ml-workshop-wac-1
186d4b6544c7e55cea052312934e455a51d1698a
[ "MIT" ]
6
2020-12-24T09:42:25.000Z
2021-01-26T01:34:38.000Z
# 1 1 2 3 5 8 13 21 .... # f(n) = f(n - 1) + f(n - 2) # f(0) = f(1) = 1 def fibonacci(n: int): if n == 0 or n == 1: return 1 return fibonacci(n - 1) + fibonacci(n - 2) print(fibonacci(5))
17.25
46
0.468599
0
0
0
0
0
0
0
0
69
0.333333
34f37aac957cd2dcc7bd8c099147d678a15c4634
160
py
Python
pythran/tests/user_defined_import/simple_case_main.py
davidbrochart/pythran
24b6c8650fe99791a4091cbdc2c24686e86aa67c
[ "BSD-3-Clause" ]
1,647
2015-01-13T01:45:38.000Z
2022-03-28T01:23:41.000Z
pythran/tests/user_defined_import/simple_case_main.py
davidbrochart/pythran
24b6c8650fe99791a4091cbdc2c24686e86aa67c
[ "BSD-3-Clause" ]
1,116
2015-01-01T09:52:05.000Z
2022-03-18T21:06:40.000Z
pythran/tests/user_defined_import/simple_case_main.py
davidbrochart/pythran
24b6c8650fe99791a4091cbdc2c24686e86aa67c
[ "BSD-3-Clause" ]
180
2015-02-12T02:47:28.000Z
2022-03-14T10:28:18.000Z
#pythran export entry() #runas entry() import simple_case_import def forward(a): return simple_case_import.imported(a) def entry(): return forward(1)
16
41
0.7375
0
0
0
0
0
0
0
0
37
0.23125
34f48be78d73f96e6ef88433990d92e5dd1a350b
7,584
py
Python
python/models/model_factory.py
rwightman/pytorch-cdiscount
95901bd77888f7480f282e4b1541c0fc1e021bf9
[ "Apache-2.0" ]
1
2022-03-09T09:40:43.000Z
2022-03-09T09:40:43.000Z
python/models/model_factory.py
rwightman/pytorch-cdiscount
95901bd77888f7480f282e4b1541c0fc1e021bf9
[ "Apache-2.0" ]
null
null
null
python/models/model_factory.py
rwightman/pytorch-cdiscount
95901bd77888f7480f282e4b1541c0fc1e021bf9
[ "Apache-2.0" ]
null
null
null
import torchvision.models from .resnext101_32x4d import resnext101_32x4d from .inception_v4 import inception_v4 from .inception_resnet_v2 import inception_resnet_v2 from .wrn50_2 import wrn50_2 from .my_densenet import densenet161, densenet121, densenet169, densenet201 from .my_resnet import resnet18, resnet34, resnet5...
47.10559
105
0.681566
0
0
0
0
0
0
0
0
2,735
0.360628
34f4d60dbd3b87a88dce9e6ef7fc8bd1f475fd71
585
py
Python
add_+x.py
racytech/rpctests
886d97b9e16fd030586d0fca6945d8f7a277ae27
[ "Apache-2.0" ]
null
null
null
add_+x.py
racytech/rpctests
886d97b9e16fd030586d0fca6945d8f7a277ae27
[ "Apache-2.0" ]
null
null
null
add_+x.py
racytech/rpctests
886d97b9e16fd030586d0fca6945d8f7a277ae27
[ "Apache-2.0" ]
1
2021-09-03T17:14:55.000Z
2021-09-03T17:14:55.000Z
#!/usr/bin/env python3 """ Add +x to every .sh file """ # import argparse import os import subprocess def go_recursive(search_dir: str): objects = os.listdir(search_dir) for obj in objects: if obj == ".git": continue obj_path = f"{search_dir}/{obj}" if os.path.isdir(obj...
20.172414
60
0.560684
0
0
0
0
0
0
0
0
140
0.239316
34f5a27bc2eb816c9dabb375d6159c8eb8e17312
25,985
py
Python
texas.py
isaact23/texas
1ac70b00f0acf2f196aca87476d7bac97418afba
[ "MIT" ]
null
null
null
texas.py
isaact23/texas
1ac70b00f0acf2f196aca87476d7bac97418afba
[ "MIT" ]
null
null
null
texas.py
isaact23/texas
1ac70b00f0acf2f196aca87476d7bac97418afba
[ "MIT" ]
null
null
null
# TEXAS HOLD'EM (Program by Isaac Thompson) import random, itertools, copy, sys import os from playsound import playsound import pyttsx3 # Set to true to enable betting. do_bets = False RANKS = ['2', '3', '4', '5', '6', '7', '8', '9', 'T', 'J', 'Q', 'K', 'A'] SUITS = ['C', 'D', 'H', 'S'] SORT_RANKS = {'2': 0, '3': 1...
40.792779
151
0.516452
20,571
0.791649
0
0
0
0
0
0
6,112
0.235213
34f5d659040a322d337330d8a9d7b5449d63b66f
443
py
Python
no. of occurences of substring.py
devAmoghS/Python-Programs
5b8a67a2a41e0e4a844ae052b59fc22fdcdbdbf9
[ "MIT" ]
1
2019-09-18T14:06:50.000Z
2019-09-18T14:06:50.000Z
no. of occurences of substring.py
devAmoghS/Python-Programs
5b8a67a2a41e0e4a844ae052b59fc22fdcdbdbf9
[ "MIT" ]
null
null
null
no. of occurences of substring.py
devAmoghS/Python-Programs
5b8a67a2a41e0e4a844ae052b59fc22fdcdbdbf9
[ "MIT" ]
null
null
null
""" s="preeni" ss="e" """ s=input("enter the string:") ss=input("enter the substring:") j=0 for i in range(len(s)): m=s.find(ss) #the first occurence of ss if(j==0): print("m=%d"%m) if(m== -1 and j==0): print("no such substring is available") break if(m== -...
17.038462
48
0.465011
0
0
0
0
0
0
0
0
170
0.383747
34f78347f261274809e3a7533c6bc409939bf9b0
1,039
py
Python
leetcode/code/maximumProduct.py
exchris/Pythonlearn
174f38a86cf1c85d6fc099005aab3568e7549cd0
[ "MIT" ]
null
null
null
leetcode/code/maximumProduct.py
exchris/Pythonlearn
174f38a86cf1c85d6fc099005aab3568e7549cd0
[ "MIT" ]
1
2018-11-27T09:58:54.000Z
2018-11-27T09:58:54.000Z
leetcode/code/maximumProduct.py
exchris/pythonlearn
174f38a86cf1c85d6fc099005aab3568e7549cd0
[ "MIT" ]
null
null
null
#!/bin/usr/python # -*- coding:utf-8 -*- # 628.三个数的最大乘积 class Solution: def maximumProduct(self, nums): if len(nums) == 3: return nums[0] * nums[1] * nums[2] elif len(nums) < 3: return None else: z_num, f_num = [], [] for i in nums: ...
25.341463
53
0.405197
923
0.861811
0
0
0
0
0
0
97
0.09057
34f87e0983bc87b776a41bf8fa6bd6191f64154d
437
py
Python
exemplo_47_inspect.py
alef123vinicius/Estudo_python
30b121d611f94eb5df9fbb41ef7279546143221b
[ "Apache-2.0" ]
null
null
null
exemplo_47_inspect.py
alef123vinicius/Estudo_python
30b121d611f94eb5df9fbb41ef7279546143221b
[ "Apache-2.0" ]
null
null
null
exemplo_47_inspect.py
alef123vinicius/Estudo_python
30b121d611f94eb5df9fbb41ef7279546143221b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Feb 16 15:35:53 2021 @author: alef """ import os.path # modulo de instropecção amigável import inspect print('Objeto: ', inspect.getmodule(os.path)) print('Classe?', inspect.isclass(str)) # Lista todas as funções que existem em os.path print('Memb...
17.48
48
0.681922
0
0
0
0
0
0
0
0
218
0.493213
34f90454724956c5a7e90a92e40de7bf13365c40
20,610
py
Python
src/hr_system/hr_system.py
pablomarcel/HR-System
25edf82d0f4f37ededfb6c6b713a5d7c455ff67e
[ "MIT" ]
null
null
null
src/hr_system/hr_system.py
pablomarcel/HR-System
25edf82d0f4f37ededfb6c6b713a5d7c455ff67e
[ "MIT" ]
null
null
null
src/hr_system/hr_system.py
pablomarcel/HR-System
25edf82d0f4f37ededfb6c6b713a5d7c455ff67e
[ "MIT" ]
null
null
null
import sys import pyfiglet import pandas as pd import numpy as np from tabulate import tabulate import dateutil import datetime import re result = pyfiglet.figlet_format("h r s y s t e m", font="slant") strStatus = "" class UserSelection: """Handles User Selection Logic the class is used to implement a case...
29.783237
120
0.539835
19,558
0.948957
0
0
17,248
0.836875
0
0
8,960
0.43474
34fa480bc9c2232054eb51335128e85dbc56e507
169
py
Python
mskit/metric/__init__.py
gureann/MSKit
8b360d38288100476740ad808e11b6c1b454dc2c
[ "MIT" ]
null
null
null
mskit/metric/__init__.py
gureann/MSKit
8b360d38288100476740ad808e11b6c1b454dc2c
[ "MIT" ]
null
null
null
mskit/metric/__init__.py
gureann/MSKit
8b360d38288100476740ad808e11b6c1b454dc2c
[ "MIT" ]
null
null
null
from . import similarity from .distance import frechet_dist from .similarity import pcc, sa from . import robust from .robust import iqr, cv, fwhm, count_missing_values
28.166667
55
0.804734
0
0
0
0
0
0
0
0
0
0
34fae8de500f0fefa1f47e343071d4f10241d272
229
py
Python
__main__.py
Luke-zhang-04/powercord-plugin-emojify
8713f048fb6da160cfdc7d2e7e7aa925eeaaf79e
[ "MIT" ]
null
null
null
__main__.py
Luke-zhang-04/powercord-plugin-emojify
8713f048fb6da160cfdc7d2e7e7aa925eeaaf79e
[ "MIT" ]
null
null
null
__main__.py
Luke-zhang-04/powercord-plugin-emojify
8713f048fb6da160cfdc7d2e7e7aa925eeaaf79e
[ "MIT" ]
null
null
null
import scraper.scraper as scraper import scraper.parser as parser import sys from dotenv import load_dotenv load_dotenv() if __name__ == "__main__": if "--noScrape" not in sys.argv: scraper.main() parser.main()
19.083333
36
0.716157
0
0
0
0
0
0
0
0
22
0.09607
34fdc3e2fc15cdbce1665add1d016bcc03924a78
1,928
py
Python
monitor/redisplay_monitor.py
perone/redisplay
32a8902fafec1af6ecfb12b57f8412dc7018940d
[ "MIT" ]
20
2015-01-14T22:52:27.000Z
2018-02-20T20:34:22.000Z
monitor/redisplay_monitor.py
perone/redisplay
32a8902fafec1af6ecfb12b57f8412dc7018940d
[ "MIT" ]
null
null
null
monitor/redisplay_monitor.py
perone/redisplay
32a8902fafec1af6ecfb12b57f8412dc7018940d
[ "MIT" ]
null
null
null
from __future__ import division import time import json from collections import deque import serial import redis import numpy as np def build_update_basic(info): basic_info = { "cmd": "update_basic", "clients" : "%d" % info["connected_clients"], "memory" : info["used_memory_human"], ...
25.706667
70
0.618776
0
0
0
0
0
0
0
0
404
0.209544
34fe561195c6b90ab544a5eb2c6644d2c927879f
433
py
Python
maniacal-moths/newsly/aggregator/models.py
Kushagra-0801/summer-code-jam-2020
aae9a678b0b30f20ab3cc6cf2b0606ee1f762ca0
[ "MIT" ]
null
null
null
maniacal-moths/newsly/aggregator/models.py
Kushagra-0801/summer-code-jam-2020
aae9a678b0b30f20ab3cc6cf2b0606ee1f762ca0
[ "MIT" ]
null
null
null
maniacal-moths/newsly/aggregator/models.py
Kushagra-0801/summer-code-jam-2020
aae9a678b0b30f20ab3cc6cf2b0606ee1f762ca0
[ "MIT" ]
1
2020-08-04T05:44:34.000Z
2020-08-04T05:44:34.000Z
from django.db import models from django.utils import timezone class Article(models.Model): title = models.CharField(max_length = 100) content = models.TextField() date_posted = models.DateTimeField(default=timezone.now) author = models.CharField(max_length = 100) def __str__(self): re...
30.928571
64
0.704388
369
0.852194
0
0
0
0
0
0
20
0.046189
34ff02f32b21e2a010eed7ca24f81bd53b637b63
73
py
Python
syft_tensorflow/serde/__init__.py
shubham3121/PySyft-TensorFlow
a8a6e47f206e324469dbeb995dc7117c09438ba0
[ "Apache-2.0" ]
39
2019-10-02T13:48:03.000Z
2022-01-22T21:18:43.000Z
syft_tensorflow/serde/__init__.py
shubham3121/PySyft-TensorFlow
a8a6e47f206e324469dbeb995dc7117c09438ba0
[ "Apache-2.0" ]
19
2019-10-10T22:04:47.000Z
2020-12-15T18:00:34.000Z
syft_tensorflow/serde/__init__.py
shubham3121/PySyft-TensorFlow
a8a6e47f206e324469dbeb995dc7117c09438ba0
[ "Apache-2.0" ]
12
2019-10-24T15:11:27.000Z
2022-03-25T09:03:52.000Z
from syft_tensorflow.serde.serde import MAP_TF_SIMPLIFIERS_AND_DETAILERS
36.5
72
0.917808
0
0
0
0
0
0
0
0
0
0
550139e4cbbe8d6698266d6e274ba52d8ab1332c
549
py
Python
challenges/03_analysis/A_re.py
deniederhut/workshop_pyintensive
f8f494081c6daabeae0724aa058c2b80fe42878b
[ "BSD-2-Clause" ]
1
2016-10-04T00:04:56.000Z
2016-10-04T00:04:56.000Z
challenges/03_analysis/A_re.py
deniederhut/workshop_pyintensive
f8f494081c6daabeae0724aa058c2b80fe42878b
[ "BSD-2-Clause" ]
8
2015-12-26T05:49:39.000Z
2016-05-26T00:10:57.000Z
challenges/03_analysis/A_re.py
deniederhut/workshop_pyintensive
f8f494081c6daabeae0724aa058c2b80fe42878b
[ "BSD-2-Clause" ]
null
null
null
#!/bin/env python # In this challenge, we are going to use regular expressions to manipulate # text data import re # 1. Compile a regular expression that matches URLs P_URL = re.compile(r'http://dlab\.berkeley\.edu', flags=re.I) # 2. Using that pattern, write a function that pulls all of the URLs out of a document...
26.142857
113
0.71949
0
0
0
0
0
0
0
0
295
0.537341
5501abe3bf73d0c0ea6df544abcad09c5f1dc8eb
8,706
py
Python
src/pipeline/featureranking.py
heindorf/wsdmcup17-wdvd-classification
7c75447370b0645276e1f918ed1215a3e8a6c62e
[ "MIT" ]
2
2018-03-21T13:21:43.000Z
2018-06-13T21:58:51.000Z
src/pipeline/featureranking.py
wsdm-cup-2017/wsdmcup17-wdvd-classification
7c75447370b0645276e1f918ed1215a3e8a6c62e
[ "MIT" ]
null
null
null
src/pipeline/featureranking.py
wsdm-cup-2017/wsdmcup17-wdvd-classification
7c75447370b0645276e1f918ed1215a3e8a6c62e
[ "MIT" ]
2
2018-03-21T14:07:32.000Z
2020-02-24T10:40:52.000Z
# ----------------------------------------------------------------------------- # WSDM Cup 2017 Classification and Evaluation # # Copyright (c) 2017 Stefan Heindorf, Martin Potthast, Gregor Engels, Benno Stein # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associ...
39.93578
91
0.68045
0
0
0
0
0
0
0
0
3,102
0.356306
550309304b59f46612eb7c9d7614edf6b323939f
25,470
py
Python
libjmp.py
RenolY2/obj2bjmp
de5ea2acf4493bec4c1b918b38099685fd9b864e
[ "MIT" ]
null
null
null
libjmp.py
RenolY2/obj2bjmp
de5ea2acf4493bec4c1b918b38099685fd9b864e
[ "MIT" ]
null
null
null
libjmp.py
RenolY2/obj2bjmp
de5ea2acf4493bec4c1b918b38099685fd9b864e
[ "MIT" ]
null
null
null
from struct import unpack, pack from math import ceil, inf, acos, degrees from vectors import Vector3, Triangle, Vector2, Matrix3x3 from re import match UPVECTOR = Vector3(0.0, 1.0, 0.0) FWVECTOR = Vector3(1.0, 0.0, 0.0) SIDEVECTOR = Vector3(0.0, 0.0, 1.0) def round_vector(vector, digits): vector.x = round(vector...
32.322335
117
0.517314
19,527
0.766667
0
0
13,763
0.540361
0
0
3,234
0.126973
5504298a3a2d8c197f31284679e78d49ef6eed72
585
py
Python
kattis/integerlists.py
div5252/competitive-programming
111902dff75e79e65213c95055ffb0bb15b76e94
[ "WTFPL" ]
506
2018-08-22T10:30:38.000Z
2022-03-31T10:01:49.000Z
kattis/integerlists.py
diegordzr/competitive-programming
1443fb4bd1c92c2acff64ba2828abb21b067e6e0
[ "WTFPL" ]
13
2019-08-07T18:31:18.000Z
2020-12-15T21:54:41.000Z
kattis/integerlists.py
diegordzr/competitive-programming
1443fb4bd1c92c2acff64ba2828abb21b067e6e0
[ "WTFPL" ]
234
2018-08-06T17:11:41.000Z
2022-03-26T10:56:42.000Z
#!/usr/bin/env python3 # https://open.kattis.com/problems/integerlists for _ in range(int(input())): p = input() n = int(input()) i, j = 0, n xs = input()[1:-1].split(',') front = True for c in p: if c == 'R': front = not front elif i == j: i += 1 ...
22.5
54
0.384615
0
0
0
0
0
0
0
0
100
0.17094
55046b3036b22157a72d92e77888dc355a149d40
3,177
py
Python
main/tests/test_middleware.py
uktrade/return-to-office
d4c53c734611413c9f8a7624e52dc35910c5ff57
[ "MIT" ]
1
2020-10-25T18:16:47.000Z
2020-10-25T18:16:47.000Z
main/tests/test_middleware.py
uktrade/return-to-office
d4c53c734611413c9f8a7624e52dc35910c5ff57
[ "MIT" ]
1
2020-10-27T07:11:26.000Z
2020-10-27T07:11:26.000Z
main/tests/test_middleware.py
uktrade/return-to-office
d4c53c734611413c9f8a7624e52dc35910c5ff57
[ "MIT" ]
null
null
null
import pytest from django.http import HttpResponse from django.urls import reverse from main.middleware import IpRestrictionMiddleware def dummy_view(_): return HttpResponse(status=200) class TestIpRestrictionMiddleware: def test_middleware_is_enabled(self, client, settings): settings.IP_RESTRICT =...
34.912088
98
0.657224
2,981
0.938307
0
0
1,931
0.607806
0
0
442
0.139125
5505c2fad9d4eaf68b407e24b865a1b9411e4836
2,418
py
Python
modelproj/topic.py
cesell/modelproj
313f89784a19842c866fa2563b326e5d044a2301
[ "MIT" ]
null
null
null
modelproj/topic.py
cesell/modelproj
313f89784a19842c866fa2563b326e5d044a2301
[ "MIT" ]
null
null
null
modelproj/topic.py
cesell/modelproj
313f89784a19842c866fa2563b326e5d044a2301
[ "MIT" ]
null
null
null
import json import re from urllib.request import urlopen ''' The use of objects has various benefits. 1. Better control of context 2. State that can be evaluated 3. Data can be created and then processing can be added 4. Clean interface ''' class TopicSummarizer(): """TopicSummarizer - Summarizes ...
30.607595
124
0.63689
1,775
0.734078
0
0
0
0
0
0
668
0.276261
550824fc3e2f47ccef32bd1ac78448a3f415ba0f
4,154
py
Python
wanderingpole/classifyingtweets/train_wandering_old.py
ssdorsey/wandering-pole
606ad8f1979354e01dea1acf01107b88b3b9e91b
[ "MIT" ]
null
null
null
wanderingpole/classifyingtweets/train_wandering_old.py
ssdorsey/wandering-pole
606ad8f1979354e01dea1acf01107b88b3b9e91b
[ "MIT" ]
null
null
null
wanderingpole/classifyingtweets/train_wandering_old.py
ssdorsey/wandering-pole
606ad8f1979354e01dea1acf01107b88b3b9e91b
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import json from simpletransformers.classification import ClassificationModel, ClassificationArgs import sklearn from sklearn.model_selection import train_test_split import torch import re import matplotlib.pyplot as plt import matplotlib.ticker as ticker import os from tqdm impor...
32.708661
194
0.684401
0
0
0
0
0
0
0
0
2,035
0.488713
5508e6dcf9a3120fc2d2a1fa35c2fb918cef92fb
3,339
py
Python
Source/common.py
joaohenggeler/twitch-chat-highlights
826cda239de2e5185266a04c12a8909ae5f98a3b
[ "MIT" ]
null
null
null
Source/common.py
joaohenggeler/twitch-chat-highlights
826cda239de2e5185266a04c12a8909ae5f98a3b
[ "MIT" ]
null
null
null
Source/common.py
joaohenggeler/twitch-chat-highlights
826cda239de2e5185266a04c12a8909ae5f98a3b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ A module that defines any general purpose functions used by all scripts, including loading configuration files, connecting to the database, and handling Twitch's timestamp formats. """ import json import sqlite3 from datetime import datetime from typing import Tuple, Union ##############...
30.081081
112
0.632824
1,688
0.505541
0
0
0
0
0
0
1,945
0.58251
550ab4d7e165fcec5a4c9ed00a1fc8a3d4f624ba
986
py
Python
unicodetest.py
conradstorz/SpeedTrivia
e222831223c704f5bb169d4c2d475c9e2a8c4c08
[ "Apache-2.0" ]
null
null
null
unicodetest.py
conradstorz/SpeedTrivia
e222831223c704f5bb169d4c2d475c9e2a8c4c08
[ "Apache-2.0" ]
1
2021-04-26T22:47:19.000Z
2021-04-26T22:47:19.000Z
unicodetest.py
conradstorz/SpeedTrivia
e222831223c704f5bb169d4c2d475c9e2a8c4c08
[ "Apache-2.0" ]
null
null
null
from unidecode import unidecode from unicodedata import name import ftfy for i in range(33, 65535): if i > 0xEFFFF: continue # Characters in Private Use Area and above are ignored if 0xD800 <= i <= 0xDFFF: continue h = hex(i) u = chr(i) f = ftfy.fix_text(u, normalization="NFKC") ...
30.8125
95
0.485801
0
0
0
0
0
0
0
0
244
0.247465
550bcb1222329d8b28b7654dc8f797c3fc71d7e1
4,363
py
Python
codes/mosaic.py
KurmasanaWT/community
5fc9e7da5b3e8df2bc9f85580a070de8c868a656
[ "MIT" ]
null
null
null
codes/mosaic.py
KurmasanaWT/community
5fc9e7da5b3e8df2bc9f85580a070de8c868a656
[ "MIT" ]
null
null
null
codes/mosaic.py
KurmasanaWT/community
5fc9e7da5b3e8df2bc9f85580a070de8c868a656
[ "MIT" ]
null
null
null
import dash_bootstrap_components as dbc from dash import html from app import app layout = dbc.Container( children=[ dbc.Card([ #dbc.CardHeader("EURONEWS (União Européia)"), dbc.CardBody([html.Iframe(className="ytvid", width="420", height="315", src="https://www.youtube.com/embed...
49.579545
247
0.608755
0
0
0
0
0
0
0
0
2,176
0.497827
550c04ca9a44d927c37f244ee230dced2cf832ce
4,387
py
Python
app/weibo/views.py
guoweikuang/weibo_project
38cb2a6d72a16f2f8c1714e83564c833f8e4af0c
[ "Apache-2.0" ]
4
2019-03-25T08:47:22.000Z
2021-03-16T02:39:29.000Z
app/weibo/views.py
guoweikuang/weibo_project
38cb2a6d72a16f2f8c1714e83564c833f8e4af0c
[ "Apache-2.0" ]
1
2020-01-06T03:37:46.000Z
2020-01-06T03:37:46.000Z
app/weibo/views.py
guoweikuang/weibo_project
38cb2a6d72a16f2f8c1714e83564c833f8e4af0c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ ~~~~~~~~~~~~~~~~~~~~~~ main module #author guoweikuang """ from flask import render_template from flask import redirect from flask import url_for from flask import request from flask_login import login_required from pyecharts import Bar from pyecharts.utils import json_dumps #from pyechart...
29.843537
96
0.641213
0
0
0
0
3,505
0.786403
0
0
911
0.204398
550c5f11985d3fc31fb9561d9cb991332777ee6d
2,598
py
Python
source/extras/Mesa/src/mesa/glapi/gl_offsets.py
binaryblob01/zfree86
e80ea992d87501b8e3e2d7c07a414591c2e11c70
[ "Xnet", "X11" ]
1
2021-09-08T21:13:25.000Z
2021-09-08T21:13:25.000Z
source/extras/Mesa/src/mesa/glapi/gl_offsets.py
binaryblob01/zfree86
e80ea992d87501b8e3e2d7c07a414591c2e11c70
[ "Xnet", "X11" ]
null
null
null
source/extras/Mesa/src/mesa/glapi/gl_offsets.py
binaryblob01/zfree86
e80ea992d87501b8e3e2d7c07a414591c2e11c70
[ "Xnet", "X11" ]
1
2021-01-22T00:19:47.000Z
2021-01-22T00:19:47.000Z
#!/usr/bin/env python # (C) Copyright IBM Corporation 2004 # All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # on the...
29.191011
91
0.736336
627
0.241339
0
0
0
0
0
0
1,581
0.608545
550d6f4bd6f869c618dd2e2fd54a7578116878b5
1,728
py
Python
exercises/rational-numbers/rational_numbers.py
southpush/python
048191583ed2cf668c6180d851d100f277a74101
[ "MIT" ]
null
null
null
exercises/rational-numbers/rational_numbers.py
southpush/python
048191583ed2cf668c6180d851d100f277a74101
[ "MIT" ]
null
null
null
exercises/rational-numbers/rational_numbers.py
southpush/python
048191583ed2cf668c6180d851d100f277a74101
[ "MIT" ]
null
null
null
from __future__ import division class Rational(object): def __init__(self, numer, denom): if denom == 0: raise ValueError('denom should not be 0') i = 2 while i <= abs(numer): if numer % i == 0 and denom % i == 0: numer = numer // i d...
32.603774
136
0.567708
1,693
0.979745
0
0
0
0
0
0
30
0.017361
550d81bb5bc1c79a79d6bdfe74dcdeb0caf47b8e
6,269
py
Python
webui/forms/dag.py
blawson/dataforj
2b666f303b628ceced425e2bdb7f93ae2ccc2a73
[ "Apache-2.0" ]
1
2021-04-30T02:15:33.000Z
2021-04-30T02:15:33.000Z
webui/forms/dag.py
blawson/dataforj
2b666f303b628ceced425e2bdb7f93ae2ccc2a73
[ "Apache-2.0" ]
null
null
null
webui/forms/dag.py
blawson/dataforj
2b666f303b628ceced425e2bdb7f93ae2ccc2a73
[ "Apache-2.0" ]
1
2021-04-30T03:27:20.000Z
2021-04-30T03:27:20.000Z
from django import forms from crispy_forms.helper import FormHelper from crispy_forms.layout import Layout, Div, Submit, HTML, Button, Row, Field from crispy_forms.bootstrap import AppendedText, PrependedText, FormActions from webui.dataforj import get_flow class SelectedStepForm(forms.Form): step_name = forms.Cha...
40.445161
128
0.667092
5,803
0.925666
0
0
0
0
0
0
1,831
0.292072
550fca2bdb3d0148522e4c33f7841bfbb8e59b80
3,109
py
Python
remote-access/remote_connect.py
sag-tgo/thin-edge.io_examples
7da43f330b640d48c2b0f3be2594ff85fe5c9dfe
[ "Apache-2.0" ]
3
2021-06-07T19:11:23.000Z
2022-02-03T16:20:27.000Z
remote-access/remote_connect.py
sag-tgo/thin-edge.io_examples
7da43f330b640d48c2b0f3be2594ff85fe5c9dfe
[ "Apache-2.0" ]
5
2021-11-04T09:44:36.000Z
2022-03-30T22:19:11.000Z
remote-access/remote_connect.py
sag-tgo/thin-edge.io_examples
7da43f330b640d48c2b0f3be2594ff85fe5c9dfe
[ "Apache-2.0" ]
11
2021-06-16T14:04:01.000Z
2022-03-17T08:29:54.000Z
import logging from c8ydp.device_proxy import DeviceProxy, WebSocketFailureException from threading import Thread import threading from c8yMQTT import C8yMQTT import concurrent.futures import os logging.basicConfig(level=logging.INFO,format='%(asctime)s %(name)s %(message)s') logger = logging.getLogger(__name__) def...
38.382716
145
0.620135
0
0
0
0
0
0
0
0
724
0.232872
550fdb4e80b863ed65bbb7d6dee920e010a04788
1,397
py
Python
Homework 1/question_solutions/question_3_convergence.py
rukmal/FE-621-Homework
9c7cef7931b58aed54867acd8e8cf1928bc6d2dd
[ "MIT" ]
4
2020-04-29T04:34:50.000Z
2021-11-11T07:49:08.000Z
Homework 1/question_solutions/question_3_convergence.py
rukmal/FE-621-Homework
9c7cef7931b58aed54867acd8e8cf1928bc6d2dd
[ "MIT" ]
null
null
null
Homework 1/question_solutions/question_3_convergence.py
rukmal/FE-621-Homework
9c7cef7931b58aed54867acd8e8cf1928bc6d2dd
[ "MIT" ]
1
2020-04-23T07:32:44.000Z
2020-04-23T07:32:44.000Z
from context import fe621 import numpy as np import pandas as pd def convergenceSegmentLimit(): """Function to compute the number of segments required for convergence of various quadrature methods. """ # Objective function def f(x: float) -> float: return np.where(x == 0.0, 1.0, np.sin(x...
28.510204
78
0.662133
0
0
0
0
0
0
0
0
476
0.34073