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
d2d415b3f1a1db25737dd9e6b40de2eb5823d384
325
py
Python
DjangoTry/venv/Lib/site-packages/django_select2/__init__.py
PavelKoksharov/QR-BOOK
8b05cecd7a3cffcec281f2e17da398ad9e4c5de5
[ "MIT" ]
null
null
null
DjangoTry/venv/Lib/site-packages/django_select2/__init__.py
PavelKoksharov/QR-BOOK
8b05cecd7a3cffcec281f2e17da398ad9e4c5de5
[ "MIT" ]
null
null
null
DjangoTry/venv/Lib/site-packages/django_select2/__init__.py
PavelKoksharov/QR-BOOK
8b05cecd7a3cffcec281f2e17da398ad9e4c5de5
[ "MIT" ]
null
null
null
""" This is a Django_ integration of Select2_. The application includes Select2 driven Django Widgets and Form Fields. .. _Django: https://www.djangoproject.com/ .. _Select2: https://select2.org/ """ from django import get_version if get_version() < '3.2': default_app_config = "django_select2.apps.Select2AppCon...
23.214286
71
0.750769
0
0
0
0
0
0
0
0
245
0.753846
d2d4cdab7ece6cb0f6e54ac92797ae4e32cdf266
673
py
Python
Sorting/bubble.py
Krylovsentry/Algorithms
0cd236f04dc065d5247a6f274bb3db503db591b0
[ "MIT" ]
1
2016-08-21T13:01:42.000Z
2016-08-21T13:01:42.000Z
Sorting/bubble.py
Krylovsentry/Algorithms
0cd236f04dc065d5247a6f274bb3db503db591b0
[ "MIT" ]
null
null
null
Sorting/bubble.py
Krylovsentry/Algorithms
0cd236f04dc065d5247a6f274bb3db503db591b0
[ "MIT" ]
null
null
null
# O(n ** 2) def bubble_sort(slist, asc=True): need_exchanges = False for iteration in range(len(slist))[:: -1]: for j in range(iteration): if asc: if slist[j] > slist[j + 1]: need_exchanges = True slist[j], slist[j + 1] = slist[j + 1], ...
32.047619
67
0.473997
0
0
0
0
0
0
0
0
11
0.016345
d2d55fb8abaabd881c853630310ad6dc464e75ff
8,247
py
Python
chapter_13/pymail.py
bimri/programming_python
ba52ccd18b9b4e6c5387bf4032f381ae816b5e77
[ "MIT" ]
null
null
null
chapter_13/pymail.py
bimri/programming_python
ba52ccd18b9b4e6c5387bf4032f381ae816b5e77
[ "MIT" ]
null
null
null
chapter_13/pymail.py
bimri/programming_python
ba52ccd18b9b4e6c5387bf4032f381ae816b5e77
[ "MIT" ]
null
null
null
"A Console-Based Email Client" #!/usr/local/bin/python """ ########################################################################## pymail - a simple console email interface client in Python; uses Python poplib module to view POP email messages, smtplib to send new mails, and the email package to extract mail header...
37.830275
84
0.547229
0
0
0
0
0
0
0
0
2,703
0.327756
d2d6774deb12048e5d8199a5f876c5130870f008
1,027
py
Python
dependencyinjection/internal/param_type_resolver.py
Cologler/dependencyinjection-python
dc05c61571f10652d82929ebec4b255f109b840b
[ "MIT" ]
null
null
null
dependencyinjection/internal/param_type_resolver.py
Cologler/dependencyinjection-python
dc05c61571f10652d82929ebec4b255f109b840b
[ "MIT" ]
null
null
null
dependencyinjection/internal/param_type_resolver.py
Cologler/dependencyinjection-python
dc05c61571f10652d82929ebec4b255f109b840b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2017~2999 - cologler <skyoflw@gmail.com> # ---------- # # ---------- import typing import inspect from .errors import ParameterTypeResolveError class ParameterTypeResolver: ''' desgin for resolve type from parameter. ''' def __init__(self, name_...
31.121212
92
0.641675
816
0.794547
0
0
0
0
0
0
259
0.252191
d2d69439ae028b8caac841d651293bd86aa4f321
639
py
Python
rest-api/server.py
phenomax/resnet50-miml-rest
4f78dd2c9454c54d013085eb4d50080d38a833ac
[ "Unlicense" ]
1
2020-08-29T16:51:47.000Z
2020-08-29T16:51:47.000Z
rest-api/server.py
phenomax/resnet50-miml-rest
4f78dd2c9454c54d013085eb4d50080d38a833ac
[ "Unlicense" ]
null
null
null
rest-api/server.py
phenomax/resnet50-miml-rest
4f78dd2c9454c54d013085eb4d50080d38a833ac
[ "Unlicense" ]
null
null
null
import io import os from flask import Flask, request, jsonify from PIL import Image from resnet_model import MyResnetModel app = Flask(__name__) # max filesize 2mb app.config['MAX_CONTENT_LENGTH'] = 2 * 1024 * 1024 # setup resnet model model = MyResnetModel(os.path.dirname(os.path.abspath(__file__))) @app.route("/...
22.034483
65
0.694836
0
0
0
0
328
0.513302
0
0
160
0.250391
d2d95eb0f80255c257603ed734e875c5ce26b88b
2,945
py
Python
authors/apps/profiles/tests/test_follow.py
KabohaJeanMark/ah-backend-invictus
a9cf930934e8cbcb4ee370a088df57abe50ee6d6
[ "BSD-3-Clause" ]
7
2021-03-04T09:29:13.000Z
2021-03-17T17:35:42.000Z
authors/apps/profiles/tests/test_follow.py
KabohaJeanMark/ah-backend-invictus
a9cf930934e8cbcb4ee370a088df57abe50ee6d6
[ "BSD-3-Clause" ]
25
2019-04-23T18:51:02.000Z
2021-06-10T21:22:47.000Z
authors/apps/profiles/tests/test_follow.py
KabohaJeanMark/ah-backend-invictus
a9cf930934e8cbcb4ee370a088df57abe50ee6d6
[ "BSD-3-Clause" ]
7
2019-06-29T10:40:38.000Z
2019-09-23T09:05:45.000Z
from django.urls import reverse from rest_framework import status from .base import BaseTestCase class FollowTestCase(BaseTestCase): """Testcases for following a user.""" def test_follow_user_post(self): """Test start following a user.""" url = reverse('follow', kwargs={'username': 'test2'}) ...
50.775862
86
0.711036
2,845
0.966044
0
0
0
0
0
0
570
0.193548
d2dbd1807d449ae04403cf686fe2378b35d5fa68
6,585
py
Python
OpenPNM/Phases/__GenericPhase__.py
thirtywang/OpenPNM
e55ee7ae69a8be3e2b0e6bf24c9ff92b6d24e16a
[ "MIT" ]
null
null
null
OpenPNM/Phases/__GenericPhase__.py
thirtywang/OpenPNM
e55ee7ae69a8be3e2b0e6bf24c9ff92b6d24e16a
[ "MIT" ]
null
null
null
OpenPNM/Phases/__GenericPhase__.py
thirtywang/OpenPNM
e55ee7ae69a8be3e2b0e6bf24c9ff92b6d24e16a
[ "MIT" ]
1
2020-07-02T02:21:10.000Z
2020-07-02T02:21:10.000Z
# -*- coding: utf-8 -*- """ =============================================================================== module __GenericPhase__: Base class for building Phase objects =============================================================================== """ from OpenPNM.Network import GenericNetwork import OpenPNM.Phases...
39.909091
82
0.577525
6,152
0.934244
0
0
0
0
0
0
2,884
0.437965
d2dbe93b08cbd7c9fba4a7da5b0696432c491446
2,860
py
Python
rqt_mypkg/src/rqt_mypkg/statistics.py
mounteverset/moveit_path_visualizer
15e55c631cb4c4d052763ebd695ce5fcb6de5a4c
[ "BSD-3-Clause" ]
null
null
null
rqt_mypkg/src/rqt_mypkg/statistics.py
mounteverset/moveit_path_visualizer
15e55c631cb4c4d052763ebd695ce5fcb6de5a4c
[ "BSD-3-Clause" ]
null
null
null
rqt_mypkg/src/rqt_mypkg/statistics.py
mounteverset/moveit_path_visualizer
15e55c631cb4c4d052763ebd695ce5fcb6de5a4c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import sys import copy from moveit_commander import move_group import rospy import moveit_commander import moveit_msgs.msg import geometry_msgs.msg from math import pi, sqrt, pow from std_msgs.msg import String import io import shutil import json #used to convert the points from the gui in a va...
39.178082
110
0.681469
1,977
0.691259
0
0
0
0
0
0
1,066
0.372727
d2dbfa2d8a9c4169b00a898c87b761496a338473
596
py
Python
apps/sendmail/admin.py
CasualGaming/studlan
63daed67c1d309e4d5bd755eb68163e2174d0e00
[ "MIT" ]
9
2016-03-15T21:03:49.000Z
2020-12-02T19:45:44.000Z
apps/sendmail/admin.py
piyushd26/studlan
6eb96ebda182f44759b430cd497a727e0ee5bb63
[ "MIT" ]
161
2016-02-05T14:11:50.000Z
2020-10-14T10:13:21.000Z
apps/sendmail/admin.py
piyushd26/studlan
6eb96ebda182f44759b430cd497a727e0ee5bb63
[ "MIT" ]
11
2016-07-27T12:20:05.000Z
2021-04-18T05:49:17.000Z
# -*- coding: utf-8 -*- from django.contrib import admin from .models import Mail class MailAdmin(admin.ModelAdmin): list_display = ['subject', 'sent_time', 'recipients_total', 'successful_mails', 'failed_mails', 'done_sending'] ordering = ['-sent_time'] # Prevent creation def has_add_permission(s...
22.074074
115
0.676174
470
0.788591
0
0
0
0
0
0
175
0.293624
d2dc2ba48e9f74dafb44ffcc8ba8cd1cd50c6109
2,922
py
Python
event/test_event.py
Web-Team-IITI-Gymkhana/gymkhana_server
67f4eba9dc0a55de04b3006ffeb5f608086b89ce
[ "MIT" ]
null
null
null
event/test_event.py
Web-Team-IITI-Gymkhana/gymkhana_server
67f4eba9dc0a55de04b3006ffeb5f608086b89ce
[ "MIT" ]
4
2022-01-14T12:31:33.000Z
2022-01-28T10:25:44.000Z
event/test_event.py
Web-Team-IITI-Gymkhana/gymkhana_server
67f4eba9dc0a55de04b3006ffeb5f608086b89ce
[ "MIT" ]
null
null
null
from uuid import uuid4 from fastapi.testclient import TestClient from ..main import app client = TestClient(app) class Test_Event: record = { "name": "Winter of CP", "description": "It is a coding event held in the month of Decemeber by Programming Club", "created_on": "2022-01-28T21:33...
36.525
97
0.612936
2,802
0.958932
0
0
0
0
0
0
1,205
0.412389
d2dc62d8070e943c3939b3b81fa0c4b500c8b2a5
629
py
Python
zigzag_conversion.py
cheng10/leetcode
8ecab26e354501e7819afe29aa79df2eb8caa8ca
[ "MIT" ]
null
null
null
zigzag_conversion.py
cheng10/leetcode
8ecab26e354501e7819afe29aa79df2eb8caa8ca
[ "MIT" ]
null
null
null
zigzag_conversion.py
cheng10/leetcode
8ecab26e354501e7819afe29aa79df2eb8caa8ca
[ "MIT" ]
null
null
null
class Solution(object): def convert(self, s, numRows): """ :type s: str :type numRows: int :rtype: str """ cycle = 2*(numRows-1) if numRows == 1: cycle = 1 map = [] for i in range(numRows): map.append('') for j ...
24.192308
46
0.384738
628
0.99841
0
0
0
0
0
0
87
0.138315
d2dc870265729c9617c1afe744f12af18a12c128
24,837
py
Python
src/tests/ftest/soak/soak.py
cdurf1/daos
f57f682ba07560fd35c0991798c5496c20f10769
[ "Apache-2.0" ]
null
null
null
src/tests/ftest/soak/soak.py
cdurf1/daos
f57f682ba07560fd35c0991798c5496c20f10769
[ "Apache-2.0" ]
null
null
null
src/tests/ftest/soak/soak.py
cdurf1/daos
f57f682ba07560fd35c0991798c5496c20f10769
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python """ (C) Copyright 2019 Intel Corporation. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed t...
39.930868
79
0.566856
23,540
0.94778
0
0
0
0
0
0
11,012
0.443371
d2dcba40eaf1e9db722986c2a78f80438fb6fdb3
1,066
py
Python
aoc/year_2020/day_06/solver.py
logan-connolly/AoC
23f47e72abaf438cc97897616be4d6b057a01bf3
[ "MIT" ]
2
2020-12-06T10:59:52.000Z
2021-09-29T22:14:03.000Z
aoc/year_2020/day_06/solver.py
logan-connolly/AoC
23f47e72abaf438cc97897616be4d6b057a01bf3
[ "MIT" ]
null
null
null
aoc/year_2020/day_06/solver.py
logan-connolly/AoC
23f47e72abaf438cc97897616be4d6b057a01bf3
[ "MIT" ]
2
2021-09-29T22:14:18.000Z
2022-01-18T02:20:26.000Z
"""This is the Solution for Year 2020 Day 06""" import re from aoc.abstracts.solver import Answers, StrLines class Solver: def __init__(self, data: str) -> None: self.data = data def _preprocess(self) -> StrLines: delim = "\n\n" return self.data.split(delim) def _solve_part_one...
32.30303
81
0.641651
952
0.893058
0
0
0
0
0
0
68
0.06379
d2defb686bfc61f23201cb71e5a9d368779c4dfa
98
py
Python
setup.py
kuzxnia/typer
39007237d552e4f4920b2c6e13e5f0ce482d4427
[ "MIT" ]
null
null
null
setup.py
kuzxnia/typer
39007237d552e4f4920b2c6e13e5f0ce482d4427
[ "MIT" ]
3
2020-04-07T12:39:51.000Z
2020-04-09T22:49:16.000Z
setup.py
kuzxnia/typer
39007237d552e4f4920b2c6e13e5f0ce482d4427
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name="typer", packages=find_packages(), )
16.333333
43
0.744898
0
0
0
0
0
0
0
0
7
0.071429
d2dfa41f3a05071765ff4e4b5a6aecdae50d42b0
7,105
py
Python
speedup.py
hjdeheer/malpaca
a0e5471a06175ef34aa95b3a1caea407e4e624a8
[ "MIT" ]
null
null
null
speedup.py
hjdeheer/malpaca
a0e5471a06175ef34aa95b3a1caea407e4e624a8
[ "MIT" ]
null
null
null
speedup.py
hjdeheer/malpaca
a0e5471a06175ef34aa95b3a1caea407e4e624a8
[ "MIT" ]
null
null
null
import numpy as np from numba import jit, prange from scipy.stats import mode from sklearn.metrics import accuracy_score __all__ = ['dtw_distance', 'KnnDTW'] @jit(nopython=True, fastmath=True) def cosine_distance(u:np.ndarray, v:np.ndarray): assert(u.shape[0] == v.shape[0]) uv = 0 uu = 0 vv = 0 ...
28.194444
91
0.570443
4,611
0.64898
0
0
2,232
0.314145
0
0
3,628
0.510626
d2dfc266c6056fe94eecb550bf60b54a02eaa933
470
py
Python
setup.py
colineRamee/UAM_simulator_scitech2021
0583f5ce195cf1ec4f6919d6523fa39851c419fc
[ "MIT" ]
1
2021-02-04T15:57:03.000Z
2021-02-04T15:57:03.000Z
setup.py
colineRamee/UAM_simulator_scitech2021
0583f5ce195cf1ec4f6919d6523fa39851c419fc
[ "MIT" ]
null
null
null
setup.py
colineRamee/UAM_simulator_scitech2021
0583f5ce195cf1ec4f6919d6523fa39851c419fc
[ "MIT" ]
2
2021-02-04T04:41:08.000Z
2022-03-01T16:18:14.000Z
from setuptools import setup setup( name='uam_simulator', version='1.0', description='A tool to simulate different architectures for UAM traffic management', author='Coline Ramee', author_email='coline.ramee@gatech.edu', packages=['uam_simulator'], install_requires=['numpy', 'scikit-learn',...
36.153846
134
0.734043
0
0
0
0
0
0
0
0
310
0.659574
d2e2156c949fb7522a291e88e911e831ba30e23c
1,115
py
Python
DFS/Leetcode1239.py
Rylie-W/LeetRecord
623c4efe88b3af54b8a65f6ec23db850b8c6f46f
[ "Apache-2.0" ]
null
null
null
DFS/Leetcode1239.py
Rylie-W/LeetRecord
623c4efe88b3af54b8a65f6ec23db850b8c6f46f
[ "Apache-2.0" ]
null
null
null
DFS/Leetcode1239.py
Rylie-W/LeetRecord
623c4efe88b3af54b8a65f6ec23db850b8c6f46f
[ "Apache-2.0" ]
null
null
null
class Solution: def maxLength(self, arr) -> int: def helper(word): temp=[] temp[:0]=word res=set() for w in temp: if w not in res: res.add(w) else: return None return res ...
26.547619
90
0.419731
832
0.746188
0
0
0
0
0
0
180
0.161435
d2e2e8b5aeb34c6ee7b5e4eefd603f0d67226b67
419
py
Python
apps/addresses/migrations/0002_address_picture.py
skyride/python-docker-compose
b3ac1a4da4ae2133b94504447a6cb353cc96f45b
[ "MIT" ]
null
null
null
apps/addresses/migrations/0002_address_picture.py
skyride/python-docker-compose
b3ac1a4da4ae2133b94504447a6cb353cc96f45b
[ "MIT" ]
null
null
null
apps/addresses/migrations/0002_address_picture.py
skyride/python-docker-compose
b3ac1a4da4ae2133b94504447a6cb353cc96f45b
[ "MIT" ]
null
null
null
# Generated by Django 3.0.6 on 2020-05-25 22:13 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('addresses', '0001_initial'), ] operations = [ migrations.AddField( model_name='address', name='picture', ...
22.052632
92
0.606205
326
0.778043
0
0
0
0
0
0
109
0.260143
d2e3431a8ca64567f24a9939424b3256a13d8da9
34,809
py
Python
liberapay/payin/common.py
Panquesito7/liberapay.com
d6806390a533061c2b9fb147d7139d06024f9a1b
[ "PostgreSQL", "CC0-1.0" ]
1
2021-07-26T02:07:13.000Z
2021-07-26T02:07:13.000Z
liberapay/payin/common.py
Panquesito7/liberapay.com
d6806390a533061c2b9fb147d7139d06024f9a1b
[ "PostgreSQL", "CC0-1.0" ]
null
null
null
liberapay/payin/common.py
Panquesito7/liberapay.com
d6806390a533061c2b9fb147d7139d06024f9a1b
[ "PostgreSQL", "CC0-1.0" ]
null
null
null
from collections import namedtuple from datetime import timedelta import itertools from operator import attrgetter from pando.utils import utcnow from psycopg2.extras import execute_batch from ..constants import SEPA from ..exceptions import ( AccountSuspended, MissingPaymentAccount, RecipientAccountSuspended, ...
39.964409
108
0.579965
0
0
0
0
0
0
0
0
19,136
0.549743
d2e3ae6e131a5fa41bdb17b19d893736dfd4f861
4,967
py
Python
vendor/func_lib/assert_handle.py
diudiu/featurefactory
ee02ad9e3ea66e2eeafe6e11859801f0420c7d9e
[ "MIT" ]
null
null
null
vendor/func_lib/assert_handle.py
diudiu/featurefactory
ee02ad9e3ea66e2eeafe6e11859801f0420c7d9e
[ "MIT" ]
null
null
null
vendor/func_lib/assert_handle.py
diudiu/featurefactory
ee02ad9e3ea66e2eeafe6e11859801f0420c7d9e
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from vendor.errors.feature import FeatureProcessError """ 此目录下所有功能函数均为: 按一定条件检查传入参数合法性 **若不合法, 将抛出异常** """ def f_assert_not_null(seq): """检测值是否非空或值得列表是否存在非空元素""" if seq in (None, '', [], {}, ()): raise FeatureProcessError("value: %s f_assert_not_null Error...
29.742515
124
0.571774
0
0
0
0
0
0
0
0
2,635
0.474518
d2e3af7e8020910904dd800db879455657d8308e
4,993
py
Python
main.py
Potapov-AA/CaesarCipherWithKeyword
4bd520418254b56950be079d0fce638039d4e202
[ "MIT" ]
null
null
null
main.py
Potapov-AA/CaesarCipherWithKeyword
4bd520418254b56950be079d0fce638039d4e202
[ "MIT" ]
null
null
null
main.py
Potapov-AA/CaesarCipherWithKeyword
4bd520418254b56950be079d0fce638039d4e202
[ "MIT" ]
null
null
null
import time from os import system, walk from config import CONFIG from encry import ENCRY from decry import DECRY # Функция настройки конфигурации def conf_setting(): system('CLS') print("Enter key elements: ") # Выбор алфавита alphabet = input("Select the used alphabet [EN]GLISH | [RU]SSIAN: ") #...
32.848684
143
0.488684
0
0
0
0
0
0
0
0
1,896
0.354326
d2e4753ddf7c063ce13b4c81cfba0d2c46394e4c
504
py
Python
frappe/email/doctype/email_queue_recipient/email_queue_recipient.py
oryxsolutions/frappe
d193ea22d17ca40d57432040a8afad72287d9e23
[ "MIT" ]
null
null
null
frappe/email/doctype/email_queue_recipient/email_queue_recipient.py
oryxsolutions/frappe
d193ea22d17ca40d57432040a8afad72287d9e23
[ "MIT" ]
null
null
null
frappe/email/doctype/email_queue_recipient/email_queue_recipient.py
oryxsolutions/frappe
d193ea22d17ca40d57432040a8afad72287d9e23
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2015, Frappe Technologies and contributors # License: MIT. See LICENSE import frappe from frappe.model.document import Document class EmailQueueRecipient(Document): DOCTYPE = "Email Queue Recipient" def is_mail_to_be_sent(self): return self.status == "Not Sent" def is_m...
22.909091
58
0.730159
332
0.65873
0
0
0
0
0
0
147
0.291667
d2e52be160ba41f3c7d6be5212d1c7221d94eb66
3,211
py
Python
tests/groups/family/test_pseudo_dojo.py
mbercx/aiida-pseudo
070bdfa37d30674e1f83bf6d14987aa977426d92
[ "MIT" ]
null
null
null
tests/groups/family/test_pseudo_dojo.py
mbercx/aiida-pseudo
070bdfa37d30674e1f83bf6d14987aa977426d92
[ "MIT" ]
2
2021-09-21T11:28:55.000Z
2021-09-21T12:13:48.000Z
tests/groups/family/test_pseudo_dojo.py
mbercx/aiida-pseudo
070bdfa37d30674e1f83bf6d14987aa977426d92
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # pylint: disable=unused-argument,pointless-statement """Tests for the `PseudoDojoFamily` class.""" import pytest from aiida_pseudo.data.pseudo import UpfData, Psp8Data, PsmlData, JthXmlData from aiida_pseudo.groups.family import PseudoDojoConfiguration, PseudoDojoFamily def test_type_string(...
40.64557
110
0.766116
0
0
0
0
785
0.244472
0
0
1,206
0.375584
d2e5ecb02a9dd4eeeac961445b6d9553ecd7b3a1
1,743
py
Python
converter.py
Poudingue/Max2Mitsuba
857c67b91f524de3e33f66958f26b022fa0a38f0
[ "WTFPL" ]
4
2019-10-30T09:18:42.000Z
2020-06-18T12:50:06.000Z
converter.py
Poudingue/Fbx2Mitsuba
857c67b91f524de3e33f66958f26b022fa0a38f0
[ "WTFPL" ]
null
null
null
converter.py
Poudingue/Fbx2Mitsuba
857c67b91f524de3e33f66958f26b022fa0a38f0
[ "WTFPL" ]
null
null
null
import sys import os if sys.version_info[0] != 3 : print("Running in python "+sys.version_info[0]+", should be python 3.") print("Please install python 3.7 from the official site python.org") print("Exiting now.") exit() import shutil import argparse import fbx2tree import builder_fromfbx import time # config is...
34.86
176
0.724613
0
0
0
0
0
0
0
0
776
0.445209
d2e64e022f433cd3fd044c614f4cd92d7a6f232d
4,256
py
Python
run.py
snandasena/disaster-response-pipeline
709af8c5fcb520dae82dc3b75c30ab2609402f53
[ "MIT" ]
null
null
null
run.py
snandasena/disaster-response-pipeline
709af8c5fcb520dae82dc3b75c30ab2609402f53
[ "MIT" ]
null
null
null
run.py
snandasena/disaster-response-pipeline
709af8c5fcb520dae82dc3b75c30ab2609402f53
[ "MIT" ]
null
null
null
import sys import json import plotly from flask import Flask from flask import render_template, request from plotly.graph_objects import Heatmap, Bar from sklearn.externals import joblib from sqlalchemy import create_engine sys.path.append("common") from common.nlp_common_utils import * if len(sys.argv) == 1: s...
25.95122
79
0.672227
0
0
0
0
836
0.196429
0
0
1,532
0.359962
d2e65a9a5236dcdd44347a721b18b12179871e04
840
py
Python
process.py
s-xie/processing
e0f1a851bed6159a718ae4e4afb3bfe3a30f6af5
[ "MIT" ]
null
null
null
process.py
s-xie/processing
e0f1a851bed6159a718ae4e4afb3bfe3a30f6af5
[ "MIT" ]
null
null
null
process.py
s-xie/processing
e0f1a851bed6159a718ae4e4afb3bfe3a30f6af5
[ "MIT" ]
null
null
null
import re import sys from nltk.tokenize import word_tokenize from unidecode import unidecode from nltk.tokenize import sent_tokenize import argparse parser = argparse.ArgumentParser() parser.add_argument('fin') parser.add_argument('fout') args = parser.parse_args() textproc = TextProc() tokenizer = Tokenizer() sente...
20
45
0.613095
0
0
0
0
0
0
0
0
43
0.05119
d2e6ff17f08688e760eb2d19c6c6dfcc805a369d
1,071
py
Python
Aula 14 - Estrutura de repetição while/desafio058-jogo-da-adivinhação.py
josue-rosa/Python---Curso-em-Video
2d74c7421a49952b7c3eadb1010533525f2de338
[ "MIT" ]
3
2020-10-07T03:21:07.000Z
2020-10-13T14:18:49.000Z
Aula 14 - Estrutura de repetição while/desafio058-jogo-da-adivinhação.py
josue-rosa/Python---Curso-em-Video
2d74c7421a49952b7c3eadb1010533525f2de338
[ "MIT" ]
null
null
null
Aula 14 - Estrutura de repetição while/desafio058-jogo-da-adivinhação.py
josue-rosa/Python---Curso-em-Video
2d74c7421a49952b7c3eadb1010533525f2de338
[ "MIT" ]
null
null
null
""" Melhore o jogo do DESAFIO 028 onde o computador vai "pensar" em um numero entre 0 e 10. Só que agora o jogador vai tentar adivinhar até acertar, mostrando no final quantos palpites foram necessários para vencer """ """ from random import randint tentativas = 1 computador = randint(0, 10) jogador = int(input('Infor...
28.945946
87
0.687208
0
0
0
0
0
0
0
0
738
0.685237
d2e7114d8d4486671f83a30e7420ce1d69cd65c1
1,550
py
Python
plugins/googlefight.py
serpis/pynik
074e6b2d2282557976eee3681d8bfcd5659c011e
[ "MIT" ]
4
2016-08-09T21:25:23.000Z
2019-08-16T21:55:17.000Z
plugins/googlefight.py
serpis/pynik
074e6b2d2282557976eee3681d8bfcd5659c011e
[ "MIT" ]
10
2015-01-25T21:25:22.000Z
2021-01-28T19:50:22.000Z
plugins/googlefight.py
serpis/pynik
074e6b2d2282557976eee3681d8bfcd5659c011e
[ "MIT" ]
4
2015-05-06T21:45:39.000Z
2018-07-02T16:47:36.000Z
# coding: utf-8 import re import utility from commands import Command def google_pages(string): url = 'http://www.google.se/search?q=' + utility.escape(string) + '&ie=UTF-8&oe=UTF-8' response = utility.read_url(url) data = response["data"] search = re.search('swrnum=(\d+)">', data) if search: result = searc...
22.142857
100
0.623226
864
0.557419
0
0
0
0
0
0
228
0.147097
d2e7cc251d72d1b4b8afa5565221124b4f826ce6
457
py
Python
was/lib/tuning/actions/ThreadPool.py
rocksun/ucmd
486de31324195f48c4110e327d635aaafe3d74d6
[ "Apache-2.0" ]
2
2019-10-09T06:59:47.000Z
2019-10-10T03:20:17.000Z
was/lib/tuning/actions/ThreadPool.py
rocksun/ucmd
486de31324195f48c4110e327d635aaafe3d74d6
[ "Apache-2.0" ]
null
null
null
was/lib/tuning/actions/ThreadPool.py
rocksun/ucmd
486de31324195f48c4110e327d635aaafe3d74d6
[ "Apache-2.0" ]
1
2021-11-25T06:41:17.000Z
2021-11-25T06:41:17.000Z
import os min=512 max=512 def app_server_tuning(server_confid): server_name=AdminConfig.showAttribute(server_confid, "name") threadpool_list=AdminConfig.list('ThreadPool',server_confid).split("\n") for tp in threadpool_list: if tp.count('WebContainer')==1: print "Modify Server '%s' Web...
30.466667
96
0.68709
0
0
0
0
0
0
0
0
115
0.251641
d2e833d9d9dbd44a801765209ab9f359cdd98029
6,770
py
Python
app/api/v2/resources/saleorders.py
calebrotich10/store-manager-api-v2
16dff84823e77218f1135c99f0592f113fddee84
[ "MIT" ]
null
null
null
app/api/v2/resources/saleorders.py
calebrotich10/store-manager-api-v2
16dff84823e77218f1135c99f0592f113fddee84
[ "MIT" ]
null
null
null
app/api/v2/resources/saleorders.py
calebrotich10/store-manager-api-v2
16dff84823e77218f1135c99f0592f113fddee84
[ "MIT" ]
1
2018-11-04T18:09:38.000Z
2018-11-04T18:09:38.000Z
"""This module contains objects for saleorders endpoints""" from flask import Flask, jsonify, request, abort, make_response from flask_restful import Resource from flask_jwt_extended import get_jwt_identity, jwt_required from . import common_functions from ..models import products, saleorders from ..utils import veri...
39.590643
180
0.578434
6,419
0.948154
0
0
0
0
0
0
1,479
0.218464
d2e9b98d6967be78af6014083084b5dab63e624c
61
py
Python
nautobot/circuits/__init__.py
psmware-ltd/nautobot
ac516287fb8edcc3482bd011839de837c6bbf0df
[ "Apache-2.0" ]
384
2021-02-24T01:40:40.000Z
2022-03-30T10:30:59.000Z
nautobot/circuits/__init__.py
psmware-ltd/nautobot
ac516287fb8edcc3482bd011839de837c6bbf0df
[ "Apache-2.0" ]
1,067
2021-02-24T00:58:08.000Z
2022-03-31T23:38:23.000Z
nautobot/circuits/__init__.py
psmware-ltd/nautobot
ac516287fb8edcc3482bd011839de837c6bbf0df
[ "Apache-2.0" ]
128
2021-02-24T02:45:16.000Z
2022-03-20T18:48:36.000Z
default_app_config = "nautobot.circuits.apps.CircuitsConfig"
30.5
60
0.852459
0
0
0
0
0
0
0
0
39
0.639344
d2e9f3e2143b7da446094a72db5befcb7fc0a728
54,559
py
Python
autogalaxy/profiles/mass_profiles/stellar_mass_profiles.py
Jammy2211/PyAutoModel
02f54e71900de9ec12c9070dc00a4bd001b25afa
[ "MIT" ]
4
2019-10-29T13:27:23.000Z
2020-03-24T11:13:35.000Z
autogalaxy/profiles/mass_profiles/stellar_mass_profiles.py
Jammy2211/PyAutoModel
02f54e71900de9ec12c9070dc00a4bd001b25afa
[ "MIT" ]
null
null
null
autogalaxy/profiles/mass_profiles/stellar_mass_profiles.py
Jammy2211/PyAutoModel
02f54e71900de9ec12c9070dc00a4bd001b25afa
[ "MIT" ]
3
2020-02-12T10:29:59.000Z
2020-03-24T11:13:53.000Z
import copy import numpy as np from scipy.special import wofz from scipy.integrate import quad from typing import List, Tuple import autoarray as aa from autogalaxy.profiles.mass_profiles import MassProfile from autogalaxy.profiles.mass_profiles.mass_profiles import ( MassProfileMGE, MassProfileCSE...
36.372667
129
0.560604
51,804
0.949504
0
0
17,582
0.322257
0
0
19,667
0.360472
d2ea517f3b08f633622c54a6e6b06e1d6019f32c
627
py
Python
installer/core/terraform/resources/variable.py
Diffblue-benchmarks/pacbot
4709eb11f87636bc42a52e7a76b740f9d76d156d
[ "Apache-2.0" ]
1,165
2018-10-05T19:07:34.000Z
2022-03-28T19:34:27.000Z
installer/core/terraform/resources/variable.py
Diffblue-benchmarks/pacbot
4709eb11f87636bc42a52e7a76b740f9d76d156d
[ "Apache-2.0" ]
334
2018-10-10T14:00:41.000Z
2022-03-19T16:32:08.000Z
installer/core/terraform/resources/variable.py
Diffblue-benchmarks/pacbot
4709eb11f87636bc42a52e7a76b740f9d76d156d
[ "Apache-2.0" ]
268
2018-10-05T19:53:25.000Z
2022-03-31T07:39:47.000Z
from core.terraform.resources import BaseTerraformVariable class TerraformVariable(BaseTerraformVariable): """ Base resource class for Terraform tfvar variable Attributes: variable_dict_input (dict/none): Var dict values available_args (dict): Instance configurations variable_type...
31.35
98
0.6874
565
0.901116
0
0
0
0
0
0
367
0.585327
d2eb169f57649820eef340c3a134f871d837dd00
887
py
Python
bfs.py
mpHarm88/Algorithms-and-Data-Structures-In-Python
a0689e57e0895c375715f39d078704e6faf72f0e
[ "MIT" ]
null
null
null
bfs.py
mpHarm88/Algorithms-and-Data-Structures-In-Python
a0689e57e0895c375715f39d078704e6faf72f0e
[ "MIT" ]
null
null
null
bfs.py
mpHarm88/Algorithms-and-Data-Structures-In-Python
a0689e57e0895c375715f39d078704e6faf72f0e
[ "MIT" ]
null
null
null
class Node(object): def __init__(self, name): self.name = name; self.adjacencyList = []; self.visited = False; self.predecessor = None; class BreadthFirstSearch(object): def bfs(self, startNode): queue = []; queue.append(startNode); startNode.visited = True; # BFS -> queue ...
21.634146
83
0.626832
578
0.651635
0
0
0
0
0
0
101
0.113867
d2ed017d8f6bd12bbaded9891125e05125930fde
3,932
py
Python
supervisor/dbus/network/connection.py
peddamat/home-assistant-supervisor-test
5da55772bcb2db3c6d8432cbc08e2ac9fbf480c4
[ "Apache-2.0" ]
1
2022-02-08T21:32:33.000Z
2022-02-08T21:32:33.000Z
supervisor/dbus/network/connection.py
peddamat/home-assistant-supervisor-test
5da55772bcb2db3c6d8432cbc08e2ac9fbf480c4
[ "Apache-2.0" ]
310
2020-03-12T16:02:13.000Z
2022-03-31T06:01:49.000Z
supervisor/dbus/network/connection.py
peddamat/home-assistant-supervisor-test
5da55772bcb2db3c6d8432cbc08e2ac9fbf480c4
[ "Apache-2.0" ]
2
2021-09-22T00:13:58.000Z
2021-09-22T15:06:27.000Z
"""Connection object for Network Manager.""" from ipaddress import ip_address, ip_interface from typing import Optional from ...const import ATTR_ADDRESS, ATTR_PREFIX from ...utils.gdbus import DBus from ..const import ( DBUS_ATTR_ADDRESS_DATA, DBUS_ATTR_CONNECTION, DBUS_ATTR_GATEWAY, DBUS_ATTR_ID, ...
33.606838
88
0.630214
3,232
0.821974
0
0
977
0.248474
1,830
0.465412
597
0.151831
d2efe900f19b7e3838e3eb40b9017e440e296e62
4,969
py
Python
quark/databricks.py
mistsys/quark
7baef5e18d5b9d12384a92487151337878958f36
[ "Apache-2.0" ]
2
2019-02-27T20:51:30.000Z
2021-05-26T02:35:29.000Z
quark/databricks.py
mistsys/quark
7baef5e18d5b9d12384a92487151337878958f36
[ "Apache-2.0" ]
null
null
null
quark/databricks.py
mistsys/quark
7baef5e18d5b9d12384a92487151337878958f36
[ "Apache-2.0" ]
1
2020-05-30T22:59:16.000Z
2020-05-30T22:59:16.000Z
from __future__ import print_function, absolute_import from .beats import Beat from StringIO import StringIO import sys import os import json import urllib import webbrowser try: import pycurl except: print("Need pycurl dependency to use qubole as the deployment platform. Run pip install pycurl in your virtuale...
33.126667
141
0.602737
4,606
0.926947
0
0
0
0
0
0
1,111
0.223586
d2efeac4ab430fe4ec37a8045db0d9bc80676c48
9,658
py
Python
appimagebuilder/builder/deploy/apt/venv.py
mssalvatore/appimage-builder
2ecb7973cedfff9d03a21258419e515c48cafe84
[ "MIT" ]
null
null
null
appimagebuilder/builder/deploy/apt/venv.py
mssalvatore/appimage-builder
2ecb7973cedfff9d03a21258419e515c48cafe84
[ "MIT" ]
null
null
null
appimagebuilder/builder/deploy/apt/venv.py
mssalvatore/appimage-builder
2ecb7973cedfff9d03a21258419e515c48cafe84
[ "MIT" ]
null
null
null
# Copyright 2020 Alexis Lopez Zubieta # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, ...
37.003831
98
0.610685
8,746
0.905571
0
0
0
0
0
0
1,782
0.18451
d2f040bef7df7c165fa2e1f80723815e7bebcf83
11,453
py
Python
tests/test_assertion_method.py
katakumpo/nicepy
fa2b0bae8e4b66d92e756687ded58d355c444eca
[ "MIT" ]
null
null
null
tests/test_assertion_method.py
katakumpo/nicepy
fa2b0bae8e4b66d92e756687ded58d355c444eca
[ "MIT" ]
null
null
null
tests/test_assertion_method.py
katakumpo/nicepy
fa2b0bae8e4b66d92e756687ded58d355c444eca
[ "MIT" ]
null
null
null
# -*- coding: utf-8 *-* import logging from unittest import TestCase from nicepy import assert_equal_struct, multi_assert_equal_struct, pretty_repr, permuteflat log = logging.getLogger(__name__) class Foo(object): def __init__(self, **kwargs): for k, v in kwargs.iteritems(): self[k] = v ...
42.895131
100
0.516546
11,248
0.982101
0
0
0
0
0
0
2,782
0.242906
d2f17cb8a3f0726fbc17e46d02f025d7c4a03f17
4,322
py
Python
usaspending_api/awards/migrations/0074_auto_20170320_1607.py
toolness/usaspending-api
ed9a396e20a52749f01f43494763903cc371f9c2
[ "CC0-1.0" ]
1
2021-06-17T05:09:00.000Z
2021-06-17T05:09:00.000Z
usaspending_api/awards/migrations/0074_auto_20170320_1607.py
toolness/usaspending-api
ed9a396e20a52749f01f43494763903cc371f9c2
[ "CC0-1.0" ]
null
null
null
usaspending_api/awards/migrations/0074_auto_20170320_1607.py
toolness/usaspending-api
ed9a396e20a52749f01f43494763903cc371f9c2
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2017-03-20 16:07 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('awards', '0073_auto_20170320_1455'), ] operations = [ migrations.AlterField...
65.484848
726
0.672837
4,166
0.96346
0
0
0
0
0
0
2,083
0.48173
d2f1e1f4951c3e0fd8684c1a41e6225fa4a4907c
100
py
Python
COVIDSafepassage/passsystem/apps.py
VICS-CORE/safepassage_server
58bc04dbfa55430c0218567211e5259de77518ae
[ "MIT" ]
null
null
null
COVIDSafepassage/passsystem/apps.py
VICS-CORE/safepassage_server
58bc04dbfa55430c0218567211e5259de77518ae
[ "MIT" ]
8
2020-04-25T09:42:25.000Z
2022-03-12T00:23:32.000Z
COVIDSafepassage/passsystem/apps.py
VICS-CORE/safepassage_server
58bc04dbfa55430c0218567211e5259de77518ae
[ "MIT" ]
null
null
null
from django.apps import AppConfig class PasssystemConfig(AppConfig): name = 'passsystem'
16.666667
35
0.73
59
0.59
0
0
0
0
0
0
12
0.12
d2f36e17b1fe05c90facefa1af9d3583979040ce
220
py
Python
src/intervals/once.py
Eagerod/tasker
b2bfbd6557063da389d1839f4f151bb4ad78b075
[ "MIT" ]
null
null
null
src/intervals/once.py
Eagerod/tasker
b2bfbd6557063da389d1839f4f151bb4ad78b075
[ "MIT" ]
null
null
null
src/intervals/once.py
Eagerod/tasker
b2bfbd6557063da389d1839f4f151bb4ad78b075
[ "MIT" ]
null
null
null
from base_interval import BaseInterval class OnceInterval(BaseInterval): @staticmethod def next_interval(start_date): return start_date @staticmethod def approximate_period(): return 0
18.333333
38
0.718182
178
0.809091
0
0
134
0.609091
0
0
0
0
d2f4c426757a6a0f92d35c0788647479f59e49fb
118,437
py
Python
env/Lib/site-packages/azure/mgmt/storage/storagemanagement.py
Ammar12/simplebanking
6080d638b2e98bfcf96d782703e1dce25aebfcbc
[ "MIT" ]
null
null
null
env/Lib/site-packages/azure/mgmt/storage/storagemanagement.py
Ammar12/simplebanking
6080d638b2e98bfcf96d782703e1dce25aebfcbc
[ "MIT" ]
null
null
null
env/Lib/site-packages/azure/mgmt/storage/storagemanagement.py
Ammar12/simplebanking
6080d638b2e98bfcf96d782703e1dce25aebfcbc
[ "MIT" ]
null
null
null
# # Copyright (c) Microsoft and contributors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
44.012263
133
0.558753
117,146
0.988966
0
0
13,432
0.113395
0
0
25,760
0.21747
d2f56951f340d9aa264e8c54df9fedc28d30df30
1,832
py
Python
src/nucleotide/component/linux/gcc/atom/rtl.py
dmilos/nucleotide
aad5d60508c9e4baf4888069284f2cb5c9fd7c55
[ "Apache-2.0" ]
1
2020-09-04T13:00:04.000Z
2020-09-04T13:00:04.000Z
src/nucleotide/component/linux/gcc/atom/rtl.py
dmilos/nucleotide
aad5d60508c9e4baf4888069284f2cb5c9fd7c55
[ "Apache-2.0" ]
1
2020-04-10T01:52:32.000Z
2020-04-10T09:11:29.000Z
src/nucleotide/component/linux/gcc/atom/rtl.py
dmilos/nucleotide
aad5d60508c9e4baf4888069284f2cb5c9fd7c55
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 # Copyright 2015 Dejan D. M. Milosavljevic # # 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 r...
27.343284
104
0.60917
561
0.306223
0
0
502
0.274017
0
0
904
0.49345
d2f5d91da9ad5c16c7e8d867f33c570f4ad80d87
1,127
py
Python
notebooks/denerator_tests/actions/config.py
Collen-Roller/Rasa-Denerator
728d21d93f21a18c9de7be303ceae59392de9a41
[ "MIT" ]
11
2019-09-11T13:48:53.000Z
2021-11-26T00:48:57.000Z
notebooks/denerator_tests/actions/config.py
Collen-Roller/Rasa-Denerator
728d21d93f21a18c9de7be303ceae59392de9a41
[ "MIT" ]
2
2019-10-18T17:21:54.000Z
2021-10-08T06:45:11.000Z
notebooks/denerator_tests/actions/config.py
Collen-Roller/Rasa-Denerator
728d21d93f21a18c9de7be303ceae59392de9a41
[ "MIT" ]
4
2019-10-04T14:43:06.000Z
2021-06-16T21:23:23.000Z
import os policy_model_dir = os.environ.get("POLICY_MODEL_DIR", "models/dialogue/") rasa_nlu_config = os.environ.get("RASA_NLU_CONFIG", "nlu_config.yml") account_sid = os.environ.get("ACCOUNT_SID", "") auth_token = os.environ.get("AUTH_TOKEN", "") twilio_number = os.environ.get("TWILIO_NUMBER", "") platform_api =...
30.459459
84
0.747116
0
0
0
0
0
0
0
0
450
0.39929
d2f65b3512d928c10cc32ae1efdfb3cff693d569
876
py
Python
python/moderation_text_token_demo.py
huaweicloud/huaweicloud-sdk-moderation
fa7cfda017a71ec8abf3afc57a0e476dd7508167
[ "Apache-2.0" ]
8
2019-06-04T06:24:54.000Z
2022-01-29T13:16:53.000Z
python/moderation_text_token_demo.py
huaweicloud/huaweicloud-sdk-moderation
fa7cfda017a71ec8abf3afc57a0e476dd7508167
[ "Apache-2.0" ]
4
2021-12-14T21:21:03.000Z
2022-01-04T16:34:33.000Z
python/moderation_text_token_demo.py
huaweicloud/huaweicloud-sdk-moderation
fa7cfda017a71ec8abf3afc57a0e476dd7508167
[ "Apache-2.0" ]
8
2019-08-12T02:18:03.000Z
2021-11-30T10:39:23.000Z
# -*- coding:utf-8 -*- from moderation_sdk.gettoken import get_token from moderation_sdk.moderation_text import moderation_text from moderation_sdk.utils import init_global_env if __name__ == '__main__': # Services currently support North China-Beijing(cn-north-4),China East-Shanghai1(cn-east-3), CN-Hong Kong(ap-s...
38.086957
155
0.680365
0
0
0
0
0
0
0
0
458
0.512304
d2f6c77eeb49683e8ab27570e5b6c4f101091a5b
2,195
py
Python
tests/system/action/test_general.py
FinnStutzenstein/openslides-backend
fffc152f79d3446591e07a6913d9fdf30b46f577
[ "MIT" ]
null
null
null
tests/system/action/test_general.py
FinnStutzenstein/openslides-backend
fffc152f79d3446591e07a6913d9fdf30b46f577
[ "MIT" ]
null
null
null
tests/system/action/test_general.py
FinnStutzenstein/openslides-backend
fffc152f79d3446591e07a6913d9fdf30b46f577
[ "MIT" ]
null
null
null
from .base import BaseActionTestCase class GeneralActionWSGITester(BaseActionTestCase): """ Tests the action WSGI application in general. """ def test_request_wrong_method(self) -> None: response = self.client.get("/") self.assert_status_code(response, 405) def test_request_wrong...
35.403226
79
0.625968
2,155
0.981777
0
0
0
0
0
0
519
0.236446
d2f71173ca42ab7fa57a0943b698ed9189ef93d3
2,897
py
Python
src/thead/cls/amsart.py
jakub-oprsal/thead
df175adf6ad0b3b16ec0703a31e7020327df4c92
[ "MIT" ]
null
null
null
src/thead/cls/amsart.py
jakub-oprsal/thead
df175adf6ad0b3b16ec0703a31e7020327df4c92
[ "MIT" ]
null
null
null
src/thead/cls/amsart.py
jakub-oprsal/thead
df175adf6ad0b3b16ec0703a31e7020327df4c92
[ "MIT" ]
null
null
null
from .common import * HEADER = r'''\usepackage{tikz} \definecolor{purple}{cmyk}{0.55,1,0,0.15} \definecolor{darkblue}{cmyk}{1,0.58,0,0.21} \usepackage[colorlinks, linkcolor=black, urlcolor=darkblue, citecolor=purple]{hyperref} \urlstyle{same} \newtheorem{theorem}{Theorem}[section] \newtheorem{lemma}[theorem]{L...
27.074766
75
0.643079
0
0
0
0
0
0
0
0
1,125
0.388333
d2f89e6b57c9a1b93947576a30ec79f4c0bc634e
88
py
Python
Workflow/packages/__init__.py
MATS64664-2021-Group-2/Hydride-Connect-Group-2
fa95d38174ffd85461bf66f923c38a3908a469a7
[ "MIT" ]
null
null
null
Workflow/packages/__init__.py
MATS64664-2021-Group-2/Hydride-Connect-Group-2
fa95d38174ffd85461bf66f923c38a3908a469a7
[ "MIT" ]
2
2021-04-12T20:30:48.000Z
2021-05-24T14:07:24.000Z
Workflow/packages/__init__.py
MATS64664-2021-Group-2/Hydride_Connection
fa95d38174ffd85461bf66f923c38a3908a469a7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Apr 15 11:31:06 2021 @author: a77510jm """
11
35
0.579545
0
0
0
0
0
0
0
0
85
0.965909
d2f90e2105f715bfa385ede947f0041c8746e8c3
6,133
py
Python
in_progress/GiRaFFEfood_NRPy/GiRaFFEfood_NRPy_Aligned_Rotator.py
fedelopezar/nrpytutorial
753acd954be4a2f99639c9f9fd5e623689fc7493
[ "BSD-2-Clause" ]
1
2021-12-13T05:51:18.000Z
2021-12-13T05:51:18.000Z
in_progress/GiRaFFEfood_NRPy/GiRaFFEfood_NRPy_Aligned_Rotator.py
fedelopezar/nrpytutorial
753acd954be4a2f99639c9f9fd5e623689fc7493
[ "BSD-2-Clause" ]
null
null
null
in_progress/GiRaFFEfood_NRPy/GiRaFFEfood_NRPy_Aligned_Rotator.py
fedelopezar/nrpytutorial
753acd954be4a2f99639c9f9fd5e623689fc7493
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # <a id='top'></a> # # # # $\texttt{GiRaFFEfood}$: Initial data for $\texttt{GiRaFFE}$ # # ## Aligned Rotator # # $$\label{top}$$ # # This module provides another initial data option for $\texttt{GiRaFFE}$. This is a flat-spacetime test with initial data $$A_{\phi} = \frac{\mu \va...
43.807143
334
0.633458
0
0
0
0
0
0
0
0
4,001
0.652372
d2fa22173570793bad17191d495756a260b18a45
803
py
Python
deploys/call_httpx.py
vic9527/ViClassifier
fd6c4730e880f35a9429277a6025219315e067cc
[ "MIT" ]
1
2021-11-03T05:05:34.000Z
2021-11-03T05:05:34.000Z
deploys/call_httpx.py
vic9527/viclassifier
fd6c4730e880f35a9429277a6025219315e067cc
[ "MIT" ]
null
null
null
deploys/call_httpx.py
vic9527/viclassifier
fd6c4730e880f35a9429277a6025219315e067cc
[ "MIT" ]
null
null
null
""" 比requests更强大python库,让你的爬虫效率提高一倍 https://mp.weixin.qq.com/s/jqGx-4t4ytDDnXxDkzbPqw HTTPX 基础教程 https://zhuanlan.zhihu.com/p/103824900 """ def interface(url, data): import httpx head = {"Content-Type": "application/json; charset=UTF-8"} return httpx.request('POST', url, json=data, headers=head) if __...
27.689655
62
0.651308
0
0
0
0
0
0
0
0
602
0.65506
d2fb4e383d869720b16333431cb622b5be807b1f
9,034
py
Python
src/rgt/THOR/THOR.py
mguo123/pan_omics
e1cacd543635b398fb08c0b31d08fa6b7c389658
[ "MIT" ]
null
null
null
src/rgt/THOR/THOR.py
mguo123/pan_omics
e1cacd543635b398fb08c0b31d08fa6b7c389658
[ "MIT" ]
null
null
null
src/rgt/THOR/THOR.py
mguo123/pan_omics
e1cacd543635b398fb08c0b31d08fa6b7c389658
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ THOR detects differential peaks in multiple ChIP-seq profiles associated with two distinct biological conditions. Copyright (C) 2014-2016 Manuel Allhoff (allhoff@aices.rwth-aachen.de) This program is free software: you can redistribute it and/or modify it under the te...
55.765432
132
0.649878
0
0
0
0
0
0
0
0
2,000
0.221386
d2fb7b436323415834f7a74459e3f1d624c2d737
5,864
py
Python
web/api/classroom.py
bbougon/crm-pilates
47de4bad3d48208f9b499139fcddb7f8955b2509
[ "MIT" ]
null
null
null
web/api/classroom.py
bbougon/crm-pilates
47de4bad3d48208f9b499139fcddb7f8955b2509
[ "MIT" ]
2
2021-05-26T20:47:29.000Z
2021-07-11T23:18:55.000Z
web/api/classroom.py
bbougon/crm-pilates
47de4bad3d48208f9b499139fcddb7f8955b2509
[ "MIT" ]
1
2021-06-30T15:20:54.000Z
2021-06-30T15:20:54.000Z
from http import HTTPStatus from typing import Tuple from uuid import UUID from fastapi import status, APIRouter, Response, Depends, HTTPException from command.command_handler import Status from domain.classroom.classroom_creation_command_handler import ClassroomCreated from domain.classroom.classroom_type import Cla...
45.8125
120
0.603342
0
0
0
0
4,966
0.846862
0
0
1,043
0.177865
d2fb7f6e9f85db6c80048daaef30c307b92d98da
2,145
py
Python
community_codebook/eda.py
etstieber/ledatascifi-2022
67bc56a60ec498c62ceba03e0b6b9ae8f3fc7fd9
[ "MIT" ]
null
null
null
community_codebook/eda.py
etstieber/ledatascifi-2022
67bc56a60ec498c62ceba03e0b6b9ae8f3fc7fd9
[ "MIT" ]
3
2022-01-30T18:34:22.000Z
2022-02-10T15:48:48.000Z
community_codebook/eda.py
etstieber/ledatascifi-2022
67bc56a60ec498c62ceba03e0b6b9ae8f3fc7fd9
[ "MIT" ]
14
2022-01-26T10:45:19.000Z
2022-03-28T15:59:56.000Z
############################################################### # # This function is... INSUFFICIENT. It was developed as an # illustration of EDA lessons in the 2021 class. It's quick and # works well. # # Want a higher grade version of me? Then try pandas-profiling: # https://github.com/pandas-profiling/pandas-...
35.75
124
0.607459
0
0
0
0
0
0
0
0
1,753
0.817249
d2fd24c8d34e5c25a5210eb1ab2a18308730ef2b
2,778
py
Python
angr/codenode.py
mariusmue/angr
f8304c4b1f0097a721a6692b02a45cabaae137c5
[ "BSD-2-Clause" ]
2
2018-05-02T17:41:36.000Z
2020-05-18T02:49:16.000Z
angr/codenode.py
mariusmue/angr
f8304c4b1f0097a721a6692b02a45cabaae137c5
[ "BSD-2-Clause" ]
null
null
null
angr/codenode.py
mariusmue/angr
f8304c4b1f0097a721a6692b02a45cabaae137c5
[ "BSD-2-Clause" ]
1
2019-08-07T01:42:01.000Z
2019-08-07T01:42:01.000Z
import logging l = logging.getLogger("angr.codenode") class CodeNode(object): __slots__ = ['addr', 'size', '_graph', 'thumb'] def __init__(self, addr, size, graph=None, thumb=False): self.addr = addr self.size = size self.thumb = thumb self._graph = graph def __len__(sel...
27.78
92
0.62527
2,689
0.967963
0
0
0
0
0
0
349
0.12563
d2fd57ba506b050706da4ce9ab6b0a547ce3b622
806
py
Python
第12章/program/Requester/Launcher.py
kingname/SourceCodeOfBook
ab7275108994dca564905818b678bbd2f771c18e
[ "MIT" ]
274
2018-10-01T11:07:25.000Z
2022-03-17T13:48:45.000Z
第12章/program/Requester/Launcher.py
kingname/SourceCodeOfBook
ab7275108994dca564905818b678bbd2f771c18e
[ "MIT" ]
6
2019-02-28T14:18:21.000Z
2022-03-02T14:57:39.000Z
第12章/program/Requester/Launcher.py
kingname/SourceCodeOfBook
ab7275108994dca564905818b678bbd2f771c18e
[ "MIT" ]
110
2018-10-16T06:08:37.000Z
2022-03-16T08:19:29.000Z
import os scrapy_project_path = '/Users/kingname/book/chapter_12/DeploySpider' os.chdir(scrapy_project_path) #切换工作区,进入爬虫工程根目录执行命令 os.system('scrapyd-deploy') import json import time import requests start_url = 'http://45.76.110.210:6800/schedule.json' start_data = {'project': 'DeploySpider', 'spider':...
26.866667
84
0.719603
0
0
0
0
0
0
0
0
523
0.60814
d2fdf4a6c5371384e165ae59f3bd959f997c90d9
511
py
Python
unittest_example/mathfunc.py
RobinCPC/experiment_code
0d3791a97815651945ad7787ba4e6c7df037740b
[ "MIT" ]
null
null
null
unittest_example/mathfunc.py
RobinCPC/experiment_code
0d3791a97815651945ad7787ba4e6c7df037740b
[ "MIT" ]
null
null
null
unittest_example/mathfunc.py
RobinCPC/experiment_code
0d3791a97815651945ad7787ba4e6c7df037740b
[ "MIT" ]
null
null
null
""" Simple math operating functions for unit test """ def add(a, b): """ Adding to parameters and return result :param a: :param b: :return: """ return a + b def minus(a, b): """ subtraction :param a: :param b: :return: """ return a - b def multi(a, b): ...
11.613636
45
0.473581
0
0
0
0
0
0
0
0
346
0.677104
d2ff009598eedc70cbe497c5d19827bdffd07954
144,055
py
Python
test/test_parameters.py
HubukiNinten/imgaug
2570c5651ed1c90addbaffc0f8be226646c55334
[ "MIT" ]
1
2019-10-25T17:43:20.000Z
2019-10-25T17:43:20.000Z
test/test_parameters.py
HubukiNinten/imgaug
2570c5651ed1c90addbaffc0f8be226646c55334
[ "MIT" ]
null
null
null
test/test_parameters.py
HubukiNinten/imgaug
2570c5651ed1c90addbaffc0f8be226646c55334
[ "MIT" ]
null
null
null
from __future__ import print_function, division, absolute_import import itertools import sys # unittest only added in 3.4 self.subTest() if sys.version_info[0] < 3 or sys.version_info[1] < 4: import unittest2 as unittest else: import unittest # unittest.mock is not available in 2.7 (though unittest2 might cont...
34.712048
83
0.557204
143,054
0.993051
0
0
200
0.001388
0
0
7,815
0.05425
9600225ca5edde94d999985a5e32bc3c498cea99
1,731
py
Python
ml_snek/datasets/jsnek_dataset.py
joram/ml-snek
e1ed8aa831a4683dfe51a6af0cb25a44c3978903
[ "MIT" ]
null
null
null
ml_snek/datasets/jsnek_dataset.py
joram/ml-snek
e1ed8aa831a4683dfe51a6af0cb25a44c3978903
[ "MIT" ]
13
2019-12-25T21:04:49.000Z
2020-01-04T20:25:05.000Z
ml_snek/datasets/jsnek_dataset.py
joram/ml-snek
e1ed8aa831a4683dfe51a6af0cb25a44c3978903
[ "MIT" ]
null
null
null
""" jsnek_saved_games_dataset that returns flat (vectorized) data """ from .jsnek_base_dataset import JSnekBaseDataset from .. import utils class JSnekDataset(JSnekBaseDataset): """Represents a board state in the following way: board_state: `torch.Tensor` Board state in torch.Tensor format. Board st...
26.630769
82
0.622184
1,587
0.916811
0
0
0
0
0
0
855
0.493934
960075d5d481ca0949f159a6dd4c4e2e599c3197
391
py
Python
src/posts/migrations/0007_recipe_preface.py
eduardkh/matkonim2
d836b16403d7fce0db88dd39dac2ba24575e6fca
[ "MIT" ]
null
null
null
src/posts/migrations/0007_recipe_preface.py
eduardkh/matkonim2
d836b16403d7fce0db88dd39dac2ba24575e6fca
[ "MIT" ]
null
null
null
src/posts/migrations/0007_recipe_preface.py
eduardkh/matkonim2
d836b16403d7fce0db88dd39dac2ba24575e6fca
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-09-15 15:40 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('posts', '0006_auto_20210914_0910'), ] operations = [ migrations.AddField( model_name='recipe', name='preface', ...
20.578947
58
0.595908
298
0.762148
0
0
0
0
0
0
96
0.245524
96021a52c512a37d56b88bb769ca1d2cad4e3a5c
490
py
Python
app/database/db.py
flych3r/spotify-tracker
306d549da6a57866ea480c85286d870e7653a1eb
[ "MIT" ]
2
2021-06-25T00:24:13.000Z
2021-07-10T13:00:39.000Z
app/database/db.py
flych3r/spotify-tracker
306d549da6a57866ea480c85286d870e7653a1eb
[ "MIT" ]
null
null
null
app/database/db.py
flych3r/spotify-tracker
306d549da6a57866ea480c85286d870e7653a1eb
[ "MIT" ]
2
2021-05-16T01:40:39.000Z
2021-07-10T12:59:07.000Z
import os import databases import sqlalchemy DB_CONNECTOR = os.getenv('APP_DB_CONNECTOR') DB_USERNAME = os.getenv('APP_DB_USERNAME') DB_PASSWORD = os.getenv('APP_DB_PASSWORD') DB_HOST = os.getenv('APP_DB_HOST') DB_PORT = os.getenv('APP_DB_PORT') DB_DATABASE = os.getenv('APP_DB_DATABASE') DB_URL = f'{DB_CONNECTOR}://...
28.823529
90
0.777551
0
0
0
0
0
0
0
0
176
0.359184
96023217ef1c244003018d7cd3aa5cc748e1d708
7,631
py
Python
examples/stl10/main_info.py
hehaodele/align_uniform
898b9fed960316d4cab6f8b6080490125fc362cd
[ "MIT" ]
null
null
null
examples/stl10/main_info.py
hehaodele/align_uniform
898b9fed960316d4cab6f8b6080490125fc362cd
[ "MIT" ]
null
null
null
examples/stl10/main_info.py
hehaodele/align_uniform
898b9fed960316d4cab6f8b6080490125fc362cd
[ "MIT" ]
null
null
null
import os import time import argparse import torchvision import torch import torch.nn as nn from util import AverageMeter, TwoAugUnsupervisedDataset from encoder import SmallAlexNet from align_uniform import align_loss, uniform_loss import json def parse_option(): parser = argparse.ArgumentParser('STL-10 Repres...
43.357955
129
0.657974
0
0
0
0
0
0
0
0
1,482
0.194208
96024e0d78c0a224ad13e044ee7fc8d5953df2e6
259
py
Python
app/__init__.py
nic-mon/IAIOLab
b8c4a23c95ee722938b393e4824b7fc94447f17c
[ "MIT" ]
null
null
null
app/__init__.py
nic-mon/IAIOLab
b8c4a23c95ee722938b393e4824b7fc94447f17c
[ "MIT" ]
null
null
null
app/__init__.py
nic-mon/IAIOLab
b8c4a23c95ee722938b393e4824b7fc94447f17c
[ "MIT" ]
1
2018-04-11T00:34:09.000Z
2018-04-11T00:34:09.000Z
from flask import Flask """ 1. Creating a flask application instance, the name argument is passed to flask application constructor. It's used to determine the root path""" app = Flask(__name__) app.config.from_object('config') from app import views, models
28.777778
82
0.776062
0
0
0
0
0
0
0
0
155
0.598456
96037b162a17a26e6138061ce184f323626f7486
5,305
py
Python
ptf/tests/linerate/qos_metrics.py
dariusgrassi/upf-epc
aef4648db118d6e1bdb23a07e4774177bd58fc50
[ "Apache-2.0" ]
null
null
null
ptf/tests/linerate/qos_metrics.py
dariusgrassi/upf-epc
aef4648db118d6e1bdb23a07e4774177bd58fc50
[ "Apache-2.0" ]
13
2021-12-15T18:39:52.000Z
2022-03-31T00:08:21.000Z
ptf/tests/linerate/qos_metrics.py
dariusgrassi/upf-epc
aef4648db118d6e1bdb23a07e4774177bd58fc50
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: Apache-2.0 # Copyright(c) 2021 Open Networking Foundation import time from ipaddress import IPv4Address from pprint import pprint from trex_test import TrexTest from grpc_test import * from trex_stl_lib.api import ( STLVM, STLPktBuilder, STLStream, STLTXCont, ) import ptf.t...
30.314286
96
0.535344
4,709
0.887653
0
0
4,477
0.843921
0
0
1,407
0.265221
9604a31aa1a2fd0161bb919247c6389804233e2e
6,209
py
Python
archives_app/documents_serializers.py
DITGO/2021.1-PC-GO1-Archives
d9f28bb29dbe96331b6e2d0beb7ca37875d61300
[ "MIT" ]
1
2021-08-22T13:39:56.000Z
2021-08-22T13:39:56.000Z
archives_app/documents_serializers.py
DITGO/2021.1-PC-GO1-Archives
d9f28bb29dbe96331b6e2d0beb7ca37875d61300
[ "MIT" ]
36
2021-09-01T19:12:17.000Z
2022-03-18T23:43:13.000Z
archives_app/documents_serializers.py
DITGO/2021.1-PC-GO1-Archives
d9f28bb29dbe96331b6e2d0beb7ca37875d61300
[ "MIT" ]
5
2021-09-10T21:01:07.000Z
2021-09-17T16:35:21.000Z
from rest_framework import serializers from archives_app.documents_models import (FrequencyRelation, BoxArchiving, AdministrativeProcess, OriginBox, FrequencySheet, DocumentTypes) class FrequencySupport(serializers.ModelSerializer):...
29.995169
82
0.573522
5,922
0.953777
0
0
0
0
0
0
1,207
0.194395
960632beca7334764b877e64f50cf461743b9b2b
7,132
py
Python
src/fparser/common/tests/test_base_classes.py
sturmianseq/fparser
bf3cba3f31a72671d4d4a93b6ef4f9832006219f
[ "BSD-3-Clause" ]
33
2017-08-18T16:31:27.000Z
2022-03-28T09:43:50.000Z
src/fparser/common/tests/test_base_classes.py
sturmianseq/fparser
bf3cba3f31a72671d4d4a93b6ef4f9832006219f
[ "BSD-3-Clause" ]
319
2017-01-12T14:22:07.000Z
2022-03-23T20:53:25.000Z
src/fparser/common/tests/test_base_classes.py
sturmianseq/fparser
bf3cba3f31a72671d4d4a93b6ef4f9832006219f
[ "BSD-3-Clause" ]
17
2017-10-13T07:12:28.000Z
2022-02-11T14:42:18.000Z
# -*- coding: utf-8 -*- ############################################################################## # Copyright (c) 2017 Science and Technology Facilities Council # # All rights reserved. # # Modifications made as part of the fparser project are distributed # under the following license: # # Redistribution and use i...
35.839196
79
0.599411
1,302
0.182557
0
0
0
0
0
0
3,760
0.527201
96065ad383494de22a076bf5a911760ad23ad0e8
87
py
Python
pyvecorg/__main__.py
torsava/pyvec.org
809812395e4bffdb0522a52c6a7f7468ffc7ccd6
[ "MIT" ]
3
2016-09-08T09:28:02.000Z
2019-08-25T11:56:26.000Z
pyvecorg/__main__.py
torsava/pyvec.org
809812395e4bffdb0522a52c6a7f7468ffc7ccd6
[ "MIT" ]
97
2016-08-20T17:11:34.000Z
2022-03-29T07:52:13.000Z
pyvecorg/__main__.py
torsava/pyvec.org
809812395e4bffdb0522a52c6a7f7468ffc7ccd6
[ "MIT" ]
7
2016-11-26T20:38:29.000Z
2021-08-20T11:11:47.000Z
from elsa import cli from pyvecorg import app cli(app, base_url='http://pyvec.org')
12.428571
37
0.735632
0
0
0
0
0
0
0
0
18
0.206897
96072e15a870bb0da5695f16be671c56e832f75e
10,397
py
Python
ppython/input_handler.py
paberr/ppython
0c59d503cbd1ca619ad51b627614ae2dd9549c38
[ "MIT" ]
1
2016-06-15T17:21:22.000Z
2016-06-15T17:21:22.000Z
ppython/input_handler.py
paberr/ppython
0c59d503cbd1ca619ad51b627614ae2dd9549c38
[ "MIT" ]
null
null
null
ppython/input_handler.py
paberr/ppython
0c59d503cbd1ca619ad51b627614ae2dd9549c38
[ "MIT" ]
null
null
null
import curtsies.events as ev import sys DELIMITERS = ' .' WHITESPACE = ' ' def print_console(txt, npadding=0, newline=False, flush=True): """ Prints txt without newline, cursor positioned at the end. :param txt: The text to print :param length: The txt will be padded with spaces to fit this length ...
28.1
101
0.541406
9,103
0.875541
0
0
0
0
0
0
3,192
0.307012
960742a391af9a30c0acaaa433fd60815de5da1f
1,601
py
Python
pycon_graphql/events/tests/test_models.py
CarlosMart626/graphql-workshop-pycon.co2019
466e56052efcfc7455336a0ac5c6637c68fcb3b9
[ "MIT" ]
1
2019-02-10T12:35:14.000Z
2019-02-10T12:35:14.000Z
pycon_graphql/events/tests/test_models.py
CarlosMart626/graphql-workshop-pycon.co2019
466e56052efcfc7455336a0ac5c6637c68fcb3b9
[ "MIT" ]
null
null
null
pycon_graphql/events/tests/test_models.py
CarlosMart626/graphql-workshop-pycon.co2019
466e56052efcfc7455336a0ac5c6637c68fcb3b9
[ "MIT" ]
1
2019-02-10T15:02:30.000Z
2019-02-10T15:02:30.000Z
from django.core.exceptions import ValidationError from django.utils import timezone from django.test import TestCase from events.models import Event, Invitee from users.tests.factories import UserFactory from users.models import get_sentinel_user class EventModelTestCase(TestCase): def setUp(self): self....
36.386364
83
0.67208
1,351
0.843321
0
0
0
0
0
0
150
0.093633
9607844773359aa6aa0c7976c01c1f1c73d9292a
145
py
Python
cryptos.py
pogoetic/tricero
6cb60e780bf9056ad9887a84e2ba7d73787ac2fc
[ "MIT" ]
null
null
null
cryptos.py
pogoetic/tricero
6cb60e780bf9056ad9887a84e2ba7d73787ac2fc
[ "MIT" ]
null
null
null
cryptos.py
pogoetic/tricero
6cb60e780bf9056ad9887a84e2ba7d73787ac2fc
[ "MIT" ]
null
null
null
cryptolist = ['ETH','BTC','XRP','EOS','ADA','NEO','STEEM', 'BTS','ZEC','XMR','XVG','XEM','OMG','MIOTA','XTZ','SC', 'CVC','BAT','XLM','ZRX','VEN']
48.333333
58
0.524138
0
0
0
0
0
0
0
0
108
0.744828
96085c19f88d75b4448b45a1368f150dc76f3edb
2,615
py
Python
python/test/utils/test_sliced_data_iterator.py
kodavatimahendra/nnabla
72009f670af075f17ffca9c809b07d48cca30bd9
[ "Apache-2.0" ]
null
null
null
python/test/utils/test_sliced_data_iterator.py
kodavatimahendra/nnabla
72009f670af075f17ffca9c809b07d48cca30bd9
[ "Apache-2.0" ]
null
null
null
python/test/utils/test_sliced_data_iterator.py
kodavatimahendra/nnabla
72009f670af075f17ffca9c809b07d48cca30bd9
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017 Sony Corporation. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
34.866667
94
0.66348
0
0
0
0
1,785
0.6826
0
0
635
0.24283
96090a33ab17b3ef5237b33e54e263f6d813f39f
819
py
Python
python/leetcode/646.py
ParkinWu/leetcode
b31312bdefbb2be795f3459e1a76fbc927cab052
[ "MIT" ]
null
null
null
python/leetcode/646.py
ParkinWu/leetcode
b31312bdefbb2be795f3459e1a76fbc927cab052
[ "MIT" ]
null
null
null
python/leetcode/646.py
ParkinWu/leetcode
b31312bdefbb2be795f3459e1a76fbc927cab052
[ "MIT" ]
null
null
null
# 给出 n 个数对。 在每一个数对中,第一个数字总是比第二个数字小。 # # 现在,我们定义一种跟随关系,当且仅当 b < c 时,数对(c, d) 才可以跟在 (a, b) 后面。我们用这种形式来构造一个数对链。 # # 给定一个对数集合,找出能够形成的最长数对链的长度。你不需要用到所有的数对,你可以以任何顺序选择其中的一些数对来构造。 # # 示例 : # # 输入: [[1,2], [2,3], [3,4]] # 输出: 2 # 解释: 最长的数对链是 [1,2] -> [3,4] # 注意: # # 给出数对的个数在 [1, 1000] 范围内。 # # 来源:力扣(LeetCode) # 链接:https://leetc...
22.75
70
0.57265
278
0.223833
0
0
0
0
0
0
821
0.661031
960b4705f7f9212fc6fe401b9f516bcb627b27a2
19,044
py
Python
FactorTestMain.py
WeiYouyi/FactorTest
fc23e23252614ce4ed8973416f7fbb2d0dbb5ccc
[ "MIT" ]
null
null
null
FactorTestMain.py
WeiYouyi/FactorTest
fc23e23252614ce4ed8973416f7fbb2d0dbb5ccc
[ "MIT" ]
null
null
null
FactorTestMain.py
WeiYouyi/FactorTest
fc23e23252614ce4ed8973416f7fbb2d0dbb5ccc
[ "MIT" ]
null
null
null
from FactorTest.FactorTestPara import * from FactorTest.FactorTestBox import * class FactorTest(): def __init__(self): self.startdate=20000101 self.enddate=21000101 self.factorlist=[] self.FactorDataBase={'v':pd.DataFrame(columns=['time','code'])} self.filterStock...
45.342857
313
0.56548
19,895
0.994949
0
0
1,293
0.064663
0
0
3,783
0.189188
960b6014f14f9123b0ec09ae60429c45aaf956f5
3,094
py
Python
src/qm/terachem/terachem.py
hkimaf/unixmd
616634c720d0589fd600e3268afab9da957e18bb
[ "MIT" ]
null
null
null
src/qm/terachem/terachem.py
hkimaf/unixmd
616634c720d0589fd600e3268afab9da957e18bb
[ "MIT" ]
null
null
null
src/qm/terachem/terachem.py
hkimaf/unixmd
616634c720d0589fd600e3268afab9da957e18bb
[ "MIT" ]
null
null
null
from __future__ import division from qm.qm_calculator import QM_calculator from misc import call_name import os class TeraChem(QM_calculator): """ Class for common parts of TeraChem :param string basis_set: Basis set information :param string functional: Exchange-correlation functional information...
43.577465
108
0.61894
2,978
0.962508
0
0
0
0
0
0
1,507
0.487072
960c00e5d06118cad7de3e170d517ce0e7416494
11,668
py
Python
tests/unit/modules/test_reg_win.py
l2ol33rt/salt
ff68bbd9f4bda992a3e039822fb32f141e94347c
[ "Apache-2.0" ]
null
null
null
tests/unit/modules/test_reg_win.py
l2ol33rt/salt
ff68bbd9f4bda992a3e039822fb32f141e94347c
[ "Apache-2.0" ]
null
null
null
tests/unit/modules/test_reg_win.py
l2ol33rt/salt
ff68bbd9f4bda992a3e039822fb32f141e94347c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' :synopsis: Unit Tests for Windows Registry Module 'module.reg' :platform: Windows :maturity: develop :codeauthor: Damon Atkins <https://github.com/damon-atkins> versionadded:: 2016.11.0 ''' # Import Python future libs from __future__ import absolute_import from __future__...
38.508251
110
0.573706
9,979
0.855245
0
0
10,055
0.861759
0
0
3,925
0.33639
960c27eda1d8cb31a885faeca6a1d05da5d1bc43
9,197
py
Python
glacier/glacierexception.py
JeffAlyanak/amazon-glacier-cmd-interface
f9e50cbc49156233a87f1975323e315370aeeabe
[ "MIT" ]
166
2015-01-01T14:14:56.000Z
2022-02-20T21:59:45.000Z
glacier/glacierexception.py
JeffAlyanak/amazon-glacier-cmd-interface
f9e50cbc49156233a87f1975323e315370aeeabe
[ "MIT" ]
31
2015-01-04T13:18:02.000Z
2022-01-10T18:40:52.000Z
glacier/glacierexception.py
JeffAlyanak/amazon-glacier-cmd-interface
f9e50cbc49156233a87f1975323e315370aeeabe
[ "MIT" ]
75
2015-01-03T10:33:41.000Z
2022-02-22T21:21:47.000Z
import traceback import re import sys import logging """ ********** Note by wvmarle: This file contains the complete code from chained_exception.py plus the error handling code from GlacierWrapper.py, allowing it to be used in other modules like glaciercorecalls as well. ********** """ class GlacierException(Except...
38.805907
100
0.577145
8,630
0.938349
1,937
0.210612
0
0
0
0
4,075
0.443079
960d016ae24c4293c672a990c11ba81afe431984
29,912
py
Python
modes/import_corpus.py
freingruber/JavaScript-Raider
d1c1fff2fcfc60f210b93dbe063216fa1a83c1d0
[ "Apache-2.0" ]
91
2022-01-24T07:32:34.000Z
2022-03-31T23:37:15.000Z
modes/import_corpus.py
zeusguy/JavaScript-Raider
d1c1fff2fcfc60f210b93dbe063216fa1a83c1d0
[ "Apache-2.0" ]
null
null
null
modes/import_corpus.py
zeusguy/JavaScript-Raider
d1c1fff2fcfc60f210b93dbe063216fa1a83c1d0
[ "Apache-2.0" ]
11
2022-01-24T14:21:12.000Z
2022-03-31T23:37:23.000Z
# Copyright 2022 @ReneFreingruber # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
46.7375
233
0.688587
0
0
0
0
0
0
0
0
13,886
0.464213
960d83d2c94c5959a98a0bd8469e0e2f1a880ff6
5,590
py
Python
crazyflie_demo/scripts/mapping/mapper.py
wydmynd/crazyflie_tom
0d1cc63dcd0f055d78da82515729ce2098e086cf
[ "MIT" ]
null
null
null
crazyflie_demo/scripts/mapping/mapper.py
wydmynd/crazyflie_tom
0d1cc63dcd0f055d78da82515729ce2098e086cf
[ "MIT" ]
null
null
null
crazyflie_demo/scripts/mapping/mapper.py
wydmynd/crazyflie_tom
0d1cc63dcd0f055d78da82515729ce2098e086cf
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Simple occupancy-grid-based mapping without localization. Subscribed topics: /scan Published topics: /map /map_metadata Author: Nathan Sprague Version: 2/13/14 """ import rospy from nav_msgs.msg import OccupancyGrid, MapMetaData from geometry_msgs.msg import Pose, Point, Quaternion from ...
33.878788
75
0.581038
5,101
0.912522
0
0
0
0
0
0
3,251
0.581574
960dcc8a44c5847743443e7deb1bcd0169e59d72
469
py
Python
flags.py
oaxiom/glbase3
9d3fc1efaad58ffb97e5b8126c2a96802daf9bac
[ "MIT" ]
8
2019-06-11T02:13:20.000Z
2022-02-22T09:27:23.000Z
flags.py
JackNg88/glbase3
4af190d06b89ef360dcba201d9e4e81f41ef8379
[ "MIT" ]
6
2020-12-18T15:08:14.000Z
2021-05-22T00:31:57.000Z
flags.py
JackNg88/glbase3
4af190d06b89ef360dcba201d9e4e81f41ef8379
[ "MIT" ]
2
2020-05-06T04:27:03.000Z
2022-02-22T09:28:25.000Z
""" flags.py . should be renamed helpers... . This file is scheduled for deletion """ """ valid accessory tags: "any_tag": {"code": "code_insert_as_string"} # execute arbitrary code to construct this key. "dialect": csv.excel_tab # dialect of the file, default = csv, set this to use tsv. or sniffer "skip_lines": num...
23.45
94
0.712154
0
0
0
0
0
0
0
0
463
0.987207
960deebf26b738896cbcd2ee2bd2d46605e19141
2,106
py
Python
packages/jet_bridge/jet_bridge/app.py
goncalomi/jet-bridge
ed968ac3407affdc99059faafb86ec67ac995838
[ "MIT" ]
2
2020-04-18T14:34:44.000Z
2020-04-18T14:34:47.000Z
packages/jet_bridge/jet_bridge/app.py
goncalomi/jet-bridge
ed968ac3407affdc99059faafb86ec67ac995838
[ "MIT" ]
null
null
null
packages/jet_bridge/jet_bridge/app.py
goncalomi/jet-bridge
ed968ac3407affdc99059faafb86ec67ac995838
[ "MIT" ]
null
null
null
import os import tornado.ioloop import tornado.web from jet_bridge.handlers.temporary_redirect import TemporaryRedirectHandler from jet_bridge_base import settings as base_settings from jet_bridge_base.views.api import ApiView from jet_bridge_base.views.image_resize import ImageResizeView from jet_bridge_base.views.f...
39
99
0.738367
0
0
0
0
0
0
0
0
248
0.117759
960e05f94b044cbb96eace708beb765aa68c9708
1,553
py
Python
openslides_backend/services/media/adapter.py
FinnStutzenstein/openslides-backend
fffc152f79d3446591e07a6913d9fdf30b46f577
[ "MIT" ]
null
null
null
openslides_backend/services/media/adapter.py
FinnStutzenstein/openslides-backend
fffc152f79d3446591e07a6913d9fdf30b46f577
[ "MIT" ]
null
null
null
openslides_backend/services/media/adapter.py
FinnStutzenstein/openslides-backend
fffc152f79d3446591e07a6913d9fdf30b46f577
[ "MIT" ]
null
null
null
import requests from ...shared.exceptions import MediaServiceException from ...shared.interfaces.logging import LoggingModule from .interface import MediaService class MediaServiceAdapter(MediaService): """ Adapter to connect to media service. """ def __init__(self, media_url: str, logging: LoggingM...
37.878049
79
0.647778
1,387
0.89311
0
0
0
0
0
0
302
0.194462
960faa636c63399c1988c58ce0e7c98b90dc797e
169
py
Python
Lib/async/test/test_echoupper.py
pyparallel/pyparallel
11e8c6072d48c8f13641925d17b147bf36ee0ba3
[ "PSF-2.0" ]
652
2015-07-26T00:00:17.000Z
2022-02-24T18:30:04.000Z
Lib/async/test/test_echoupper.py
tpn/pyparallel
11e8c6072d48c8f13641925d17b147bf36ee0ba3
[ "PSF-2.0" ]
8
2015-09-07T03:38:19.000Z
2021-05-23T03:18:51.000Z
Lib/async/test/test_echoupper.py
tpn/pyparallel
11e8c6072d48c8f13641925d17b147bf36ee0ba3
[ "PSF-2.0" ]
40
2015-07-24T19:45:08.000Z
2021-11-01T14:54:56.000Z
import async from async.services import EchoUpperData server = async.server('10.211.55.3', 20007) async.register(transport=server, protocol=EchoUpperData) async.run()
21.125
56
0.792899
0
0
0
0
0
0
0
0
13
0.076923
960fe6f4df41a131c506151d154738d3ea6e3c53
533
py
Python
alerter/src/alerter/alert_code/node/evm_alert_code.py
SimplyVC/panic
2f5c327ea0d14b6a49dc8f4599a255048bc2ff6d
[ "Apache-2.0" ]
41
2019-08-23T12:40:42.000Z
2022-03-28T11:06:02.000Z
alerter/src/alerter/alert_code/node/evm_alert_code.py
SimplyVC/panic
2f5c327ea0d14b6a49dc8f4599a255048bc2ff6d
[ "Apache-2.0" ]
147
2019-08-30T22:09:48.000Z
2022-03-30T08:46:26.000Z
alerter/src/alerter/alert_code/node/evm_alert_code.py
SimplyVC/panic
2f5c327ea0d14b6a49dc8f4599a255048bc2ff6d
[ "Apache-2.0" ]
3
2019-09-03T21:12:28.000Z
2021-08-18T14:27:56.000Z
from ..alert_code import AlertCode class EVMNodeAlertCode(AlertCode): NoChangeInBlockHeight = 'evm_node_alert_1' BlockHeightUpdatedAlert = 'evm_node_alert_2' BlockHeightDifferenceIncreasedAboveThresholdAlert = 'evm_node_alert_3' BlockHeightDifferenceDecreasedBelowThresholdAlert = 'evm_node_alert_4' ...
38.071429
74
0.806754
495
0.928705
0
0
0
0
0
0
162
0.30394
96106fecaab4ad8d3cfef08e2a652f7ab8fec921
422
py
Python
blaze/compute/tests/test_pmap.py
jdmcbr/blaze
79515a8f0d25a0ff7f87a4cfbed615858241c832
[ "BSD-3-Clause" ]
1
2015-05-17T23:17:12.000Z
2015-05-17T23:17:12.000Z
blaze/compute/tests/test_pmap.py
jreback/blaze
85c39335cac4ef7f2921a7f621bc13525880fc44
[ "BSD-3-Clause" ]
null
null
null
blaze/compute/tests/test_pmap.py
jreback/blaze
85c39335cac4ef7f2921a7f621bc13525880fc44
[ "BSD-3-Clause" ]
null
null
null
from blaze import compute, resource, symbol, discover from blaze.utils import example flag = [False] def mymap(func, *args): flag[0] = True return map(func, *args) def test_map_called_on_resource_star(): r = resource(example('accounts_*.csv')) s = symbol('s', discover(r)) flag[0] = False a ...
21.1
53
0.637441
0
0
0
0
0
0
0
0
19
0.045024
9610832f6a592c17ec9781319d909b5b964100ab
15,186
py
Python
mwtab/mwschema.py
MoseleyBioinformaticsLab/mwtab
1bc1e3715538348b29a5760a9c3184fe04f568a6
[ "BSD-3-Clause-Clear" ]
7
2018-02-02T07:50:20.000Z
2021-03-14T22:46:58.000Z
mwtab/mwschema.py
MoseleyBioinformaticsLab/mwtab
1bc1e3715538348b29a5760a9c3184fe04f568a6
[ "BSD-3-Clause-Clear" ]
2
2019-02-14T08:38:54.000Z
2020-02-19T08:08:02.000Z
mwtab/mwschema.py
MoseleyBioinformaticsLab/mwtab
1bc1e3715538348b29a5760a9c3184fe04f568a6
[ "BSD-3-Clause-Clear" ]
1
2019-10-12T23:38:44.000Z
2019-10-12T23:38:44.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ mwtab.mwschema ~~~~~~~~~~~~~~ This module provides schema definitions for different sections of the ``mwTab`` Metabolomics Workbench format. """ import sys from schema import Schema, Optional, Or if sys.version_info.major == 2: str = unicode metabolomics_wor...
34.049327
94
0.61965
0
0
0
0
0
0
0
0
6,224
0.409851
9610da1cf47afbf95b11be72f8e2780125e49449
27,544
py
Python
functions/asmm_xml.py
EUFAR/asmm-eufar
69ede7a24f757392e63f04091e86c50ab129016f
[ "BSD-3-Clause" ]
null
null
null
functions/asmm_xml.py
EUFAR/asmm-eufar
69ede7a24f757392e63f04091e86c50ab129016f
[ "BSD-3-Clause" ]
2
2015-06-12T09:28:29.000Z
2015-06-12T09:34:16.000Z
functions/asmm_xml.py
eufarn7sp/asmm-eufar
69ede7a24f757392e63f04091e86c50ab129016f
[ "BSD-3-Clause" ]
null
null
null
import datetime import xml.dom.minidom import logging from PyQt5 import QtCore, QtWidgets from functions.button_functions import add_read NAMESPACE_URI = 'http://www.eufar.net/ASMM' def create_asmm_xml(self, out_file_name): logging.debug('asmm_xml.py - create_asmm_xml - out_file_name ' + out_file_name) doc =...
46.37037
138
0.647255
0
0
0
0
0
0
0
0
4,994
0.18131
9610eaf838ce8599d05cfd89f28acb8943b4bb46
191
py
Python
github/models.py
pyprism/Hiren-Git-Commit-Reminder
253ba078f63cc9bf3f39a5b735a783c4846b5ba7
[ "MIT" ]
null
null
null
github/models.py
pyprism/Hiren-Git-Commit-Reminder
253ba078f63cc9bf3f39a5b735a783c4846b5ba7
[ "MIT" ]
null
null
null
github/models.py
pyprism/Hiren-Git-Commit-Reminder
253ba078f63cc9bf3f39a5b735a783c4846b5ba7
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Hiren(models.Model): access_token = models.CharField(max_length=200) authorized = models.BooleanField(default=False)
19.1
51
0.759162
130
0.680628
0
0
0
0
0
0
26
0.136126
961296a2dbd17acbbeca5341d04b5200b3df15a3
4,973
py
Python
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Axon/idGen.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
1
2017-03-28T06:41:51.000Z
2017-03-28T06:41:51.000Z
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Axon/idGen.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
null
null
null
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Axon/idGen.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
1
2016-12-13T21:08:58.000Z
2016-12-13T21:08:58.000Z
#!/usr/bin/python # # Copyright (C) 2004 British Broadcasting Corporation and Kamaelia Contributors(1) # All Rights Reserved. # # You may only modify and redistribute this under the terms of any of the # following licenses(2): Mozilla Public License, V1.1, GNU General # Public License, V2.0, GNU Lesser Gener...
31.474684
83
0.646893
1,763
0.354514
0
0
0
0
0
0
3,797
0.763523
961374e180229cec23558c1850e6a56b8464ae8b
63,005
py
Python
pyCEvNS/flux.py
athompson-tamu/pyCEvNS
feb3f83c706e6604608eae83c50ac79ced9140bf
[ "MIT" ]
null
null
null
pyCEvNS/flux.py
athompson-tamu/pyCEvNS
feb3f83c706e6604608eae83c50ac79ced9140bf
[ "MIT" ]
null
null
null
pyCEvNS/flux.py
athompson-tamu/pyCEvNS
feb3f83c706e6604608eae83c50ac79ced9140bf
[ "MIT" ]
null
null
null
""" flux related class and functions """ from scipy.integrate import quad import pandas as pd from .helper import LinearInterp, polar_to_cartesian, lorentz_boost, lorentz_matrix from .oscillation import survival_solar from .parameters import * def _invs(ev): return 1/ev**2 class FluxBaseContinuous: def ...
48.09542
163
0.53164
62,689
0.994985
0
0
0
0
0
0
11,155
0.177049
9613fedd3e0d7142ca8e288d57dc930f5c14893f
7,252
py
Python
enso/contrib/minimessages.py
blackdaemon/enso-launcher-continued
346f82811e77caf73560619cdeb16afabfbf1fce
[ "BSD-3-Clause" ]
7
2015-09-19T20:57:32.000Z
2020-12-31T16:34:42.000Z
enso/contrib/minimessages.py
blackdaemon/enso-launcher-continued
346f82811e77caf73560619cdeb16afabfbf1fce
[ "BSD-3-Clause" ]
21
2015-11-03T23:15:25.000Z
2018-10-11T21:57:45.000Z
enso/contrib/minimessages.py
blackdaemon/enso-launcher-continued
346f82811e77caf73560619cdeb16afabfbf1fce
[ "BSD-3-Clause" ]
4
2015-09-15T17:18:00.000Z
2021-06-16T07:06:06.000Z
# Author : Pavel Vitis "blackdaemon" # Email : blackdaemon@seznam.cz # # Copyright (c) 2010, Pavel Vitis <blackdaemon@seznam.cz> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistri...
34.533333
90
0.59818
3,797
0.52358
0
0
1,368
0.188638
0
0
3,993
0.550607
9616192a13cde5beffe85342bdb0bcbe725c8e0a
3,597
py
Python
article_curation/test_article_curation.py
mrkarezina/graph-recommendation-api
8ed3895f7816b095ec27f3c1d972bf5b8e163b34
[ "MIT" ]
null
null
null
article_curation/test_article_curation.py
mrkarezina/graph-recommendation-api
8ed3895f7816b095ec27f3c1d972bf5b8e163b34
[ "MIT" ]
null
null
null
article_curation/test_article_curation.py
mrkarezina/graph-recommendation-api
8ed3895f7816b095ec27f3c1d972bf5b8e163b34
[ "MIT" ]
null
null
null
import unittest from unittest.mock import Mock import json from processor import scrape_article import main class ArticleCurationTestCase(unittest.TestCase): def test_article_fetch(self): response = scrape_article( url='https://www.cnn.com/2019/03/25/us/yale-rescinds-student-admissions-scand...
34.586538
186
0.633584
3,485
0.968863
0
0
0
0
0
0
1,611
0.447873
9616936f76e77083ea419e018de9e5eaec39224e
4,715
py
Python
test.py
chdre/noise-randomized
c803fd6c6fd641a0b1c0f4880920584a647587bc
[ "MIT" ]
null
null
null
test.py
chdre/noise-randomized
c803fd6c6fd641a0b1c0f4880920584a647587bc
[ "MIT" ]
null
null
null
test.py
chdre/noise-randomized
c803fd6c6fd641a0b1c0f4880920584a647587bc
[ "MIT" ]
3
2021-10-05T09:01:51.000Z
2021-10-05T09:37:06.000Z
import unittest class PerlinTestCase(unittest.TestCase): def test_perlin_1d_range(self): from noise import pnoise1 for i in range(-10000, 10000): x = i * 0.49 n = pnoise1(x) self.assertTrue(-1.0 <= n <= 1.0, (x, n)) def test_perlin_1d_octaves_range(self): ...
32.972028
79
0.487381
4,644
0.984942
0
0
0
0
0
0
10
0.002121
961a0eab590ae86fe03daebff4911d080dc4f38a
3,829
py
Python
pipelines/controllers/datasets.py
platiagro/pipeline-generator
d84b9512c39970c469154eaed56f08780ebf21eb
[ "Apache-2.0" ]
1
2020-05-19T14:57:55.000Z
2020-05-19T14:57:55.000Z
pipelines/controllers/datasets.py
platiagro/pipelines
d84b9512c39970c469154eaed56f08780ebf21eb
[ "Apache-2.0" ]
93
2020-04-25T21:10:49.000Z
2020-12-15T18:25:49.000Z
pipelines/controllers/datasets.py
platiagro/pipelines
d84b9512c39970c469154eaed56f08780ebf21eb
[ "Apache-2.0" ]
6
2019-09-05T12:37:59.000Z
2020-08-08T00:08:25.000Z
# -*- coding: utf-8 -*- import platiagro import pandas as pd from werkzeug.exceptions import NotFound from pipelines.database import db_session from pipelines.models import Operator from pipelines.models.utils import raise_if_experiment_does_not_exist def get_dataset_name(experiment_id, operator_id,): """Retrie...
32.176471
91
0.58527
0
0
0
0
0
0
0
0
1,054
0.275268
961b41ac7e12348d2cd9bb21a06c9a3f33d3b4af
4,545
py
Python
tests/test_message.py
jfkinslow/flask-mailing
dda99214b783b60fabc7dfad209fff4438eaf61c
[ "MIT" ]
null
null
null
tests/test_message.py
jfkinslow/flask-mailing
dda99214b783b60fabc7dfad209fff4438eaf61c
[ "MIT" ]
null
null
null
tests/test_message.py
jfkinslow/flask-mailing
dda99214b783b60fabc7dfad209fff4438eaf61c
[ "MIT" ]
null
null
null
import pytest from flask_mailing.schemas import Message, MultipartSubtypeEnum from flask_mailing.msg import MailMsg import os CONTENT = "file test content" def test_initialize(): message = Message( subject="test subject", recipients=["uzezio22@gmail.com"], body="test", subtype="pl...
24.175532
105
0.59824
0
0
0
0
719
0.158196
677
0.148955
958
0.210781
961ccfb0c6fb46c865492bed7af363f36b450b4b
1,239
py
Python
utils/checks.py
JDJGInc/JDBot
057bcc5c80452c9282606e9bf66219e614aac5e1
[ "MIT" ]
12
2021-01-09T06:17:51.000Z
2022-03-18T06:30:15.000Z
utils/checks.py
JDJGInc/JDBot
057bcc5c80452c9282606e9bf66219e614aac5e1
[ "MIT" ]
21
2021-03-21T16:43:45.000Z
2022-02-01T16:02:26.000Z
utils/checks.py
JDJGInc/JDBot
057bcc5c80452c9282606e9bf66219e614aac5e1
[ "MIT" ]
25
2021-03-21T16:33:56.000Z
2022-03-12T16:52:25.000Z
import discord def check(ctx): def inner(m): return m.author == ctx.author return inner def Membercheck(ctx): def inner(m): return m.author == ctx.guild.me return inner def warn_permission(ctx, Member): if isinstance(ctx.channel, discord.TextChannel): return ctx.author.guild_permissions.ma...
27.533333
158
0.742534
0
0
0
0
0
0
222
0.179177
113
0.091203
961ceec2cadcdefd7771e879e51fe43976210c30
46,670
py
Python
scripts/mgear/rigbits/eye_rigger.py
stormstudios/rigbits
37ce738952a3cd31ba8a18b8989f5ea491d03bf0
[ "MIT" ]
1
2020-08-11T01:17:19.000Z
2020-08-11T01:17:19.000Z
scripts/mgear/rigbits/eye_rigger.py
stormstudios/rigbits
37ce738952a3cd31ba8a18b8989f5ea491d03bf0
[ "MIT" ]
null
null
null
scripts/mgear/rigbits/eye_rigger.py
stormstudios/rigbits
37ce738952a3cd31ba8a18b8989f5ea491d03bf0
[ "MIT" ]
null
null
null
"""Rigbits eye rigger tool""" import json import traceback from functools import partial import mgear.core.pyqt as gqt import pymel.core as pm from maya.app.general.mayaMixin import MayaQWidgetDockableMixin from mgear.core import meshNavigation, curve, applyop, node, primitive, icon from mgear.core import transform, ...
38.698176
79
0.541526
16,004
0.342918
0
0
0
0
0
0
6,718
0.143947
961d4ae687b3642af37cc358422318fe31255362
3,260
py
Python
Python/expert/interact_with_linux/solution.py
fpichl/ProgrammingTasks
da494022455dd77de1c99a6c6e4962616e9764e6
[ "Unlicense" ]
2
2018-10-18T16:35:56.000Z
2019-03-07T06:16:18.000Z
Python/expert/interact_with_linux/solution.py
fpichl/ProgrammingTasks
da494022455dd77de1c99a6c6e4962616e9764e6
[ "Unlicense" ]
2
2019-11-13T09:25:54.000Z
2021-08-19T08:23:32.000Z
Python/expert/interact_with_linux/solution.py
fpichl/ProgrammingTasks
da494022455dd77de1c99a6c6e4962616e9764e6
[ "Unlicense" ]
3
2019-05-22T12:20:05.000Z
2019-08-30T12:57:56.000Z
#!/usr/bin/env python3 import os import shutil import sys import pathlib import logging # I will NEVER EVER use subproccess again # At least not for something like Popen try: from sh import wget except Exception: print('[!] Just install sh right now!(pip install --user sh)') sys.exit(0) # Dumb Python2 sup...
33.958333
91
0.674233
0
0
0
0
0
0
0
0
1,589
0.487423
961e5e18627878c209a335c0392cc2286e8803ad
323
py
Python
Asap-3.8.4/Projects/NanoparticleMC/misc/viewatomsmc.py
auag92/n2dm
03403ef8da303b79478580ae76466e374ec9da60
[ "MIT" ]
1
2021-10-19T11:35:34.000Z
2021-10-19T11:35:34.000Z
Asap-3.8.4/Projects/NanoparticleMC/misc/viewatomsmc.py
auag92/n2dm
03403ef8da303b79478580ae76466e374ec9da60
[ "MIT" ]
null
null
null
Asap-3.8.4/Projects/NanoparticleMC/misc/viewatomsmc.py
auag92/n2dm
03403ef8da303b79478580ae76466e374ec9da60
[ "MIT" ]
3
2016-07-18T19:22:48.000Z
2021-07-06T03:06:42.000Z
import ase from ase import Atoms from ase.atom import Atom import sys from ase.visualize import view import pickle f = open(sys.argv[1],'r') #The .amc file p = pickle.load(f) positions = p['atomspositions'] atms = Atoms() for p0 in positions: a = Atom('Au',position=p0) atms.append(a) atms.center(vacuum=2) view(atm...
17
40
0.721362
0
0
0
0
0
0
0
0
37
0.114551
961e930045b962f6aec047adbd1d0fd8f14a977a
453
py
Python
bot_settings_example.py
nikmedoed/BalanceBot
731e6d09d71bbf8d7802d0b42a570947343d3ce6
[ "MIT" ]
null
null
null
bot_settings_example.py
nikmedoed/BalanceBot
731e6d09d71bbf8d7802d0b42a570947343d3ce6
[ "MIT" ]
null
null
null
bot_settings_example.py
nikmedoed/BalanceBot
731e6d09d71bbf8d7802d0b42a570947343d3ce6
[ "MIT" ]
null
null
null
# это dev среда TELEGRAM_TOKEN = "..." RELATIVE_CHAT_IDS = [ "...", '...'] TEXT = { "bot_info": ('Привет, я бот, который отвечает за равномерное распределение участников по комнатам.\n\n' 'Нажми кнопку, если готов сменить комнату'), "get_link": "Получить рекомендацию", "new_room": "Ваша н...
30.2
107
0.655629
0
0
0
0
0
0
0
0
489
0.765258
961f8e0ded1739e7f84175c2bdac8bbf64966432
8,270
py
Python
test/xslt/borrowed/sm_20000304.py
zepheira/amara
d3ffe07d6e2266b34d72b012a82d572c8edbf1e7
[ "Apache-2.0" ]
6
2015-01-30T03:50:36.000Z
2022-03-20T16:09:58.000Z
test/xslt/borrowed/sm_20000304.py
zepheira/amara
d3ffe07d6e2266b34d72b012a82d572c8edbf1e7
[ "Apache-2.0" ]
2
2015-02-04T17:18:47.000Z
2019-09-27T23:39:52.000Z
test/xslt/borrowed/sm_20000304.py
zepheira/amara
d3ffe07d6e2266b34d72b012a82d572c8edbf1e7
[ "Apache-2.0" ]
6
2015-02-04T16:16:18.000Z
2019-10-30T20:07:48.000Z
######################################################################## # test/xslt/sm20000304.py # Example from Steve Muench <smuench@us.oracle.com> # to Jon Smirl <jonsmirl@mediaone.net> # on 4 March 2000 """ From: "Steve Muench" <smuench@us.oracle.com> To: <xsl-list@mulberrytech.com> Subject: Re: SVG charts and gr...
32.687747
143
0.606167
4,739
0.573035
0
0
0
0
0
0
5,769
0.697582
961fc04d55a2472f650b925e3c30b289d25af832
123
py
Python
model-server/config.py
campos537/deep-fashion-system
1de31dd6260cc967e1832cff63ae7e537a3a4e9d
[ "Unlicense" ]
1
2021-04-06T00:43:26.000Z
2021-04-06T00:43:26.000Z
model-server/config.py
campos537/deep-fashion-system
1de31dd6260cc967e1832cff63ae7e537a3a4e9d
[ "Unlicense" ]
null
null
null
model-server/config.py
campos537/deep-fashion-system
1de31dd6260cc967e1832cff63ae7e537a3a4e9d
[ "Unlicense" ]
null
null
null
import json def Config(config_path): with open(config_path) as config_file: return json.load(config_file)
20.5
42
0.707317
0
0
0
0
0
0
0
0
0
0