hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
f11be192d1ddd50cdda688a06bb1a1af21e7e165
428
py
Python
mnist/configs/resnet18.py
anisayari/pipeline
48313bc5c459fde0d3fc0acd9f78ccfb677a5197
[ "MIT" ]
1
2019-02-14T13:59:03.000Z
2019-02-14T13:59:03.000Z
mnist/configs/resnet18.py
anisayari/pipeline
48313bc5c459fde0d3fc0acd9f78ccfb677a5197
[ "MIT" ]
null
null
null
mnist/configs/resnet18.py
anisayari/pipeline
48313bc5c459fde0d3fc0acd9f78ccfb677a5197
[ "MIT" ]
null
null
null
from .base import ConfigMNISTBase from pipeline.models.classification import ClassificationModuleLinear from pipeline.models.image_classification import Resnet18Model import torch.nn as nn
25.176471
70
0.733645
f11cab81fb1cb2404eb1a34c3cbe73863457b730
6,658
py
Python
src/multimodal/models/train_model.py
markrofail/multi-modal-deep-learning-for-vehicle-sensor-data-abstraction-and-attack-detection
2f252c072f3091bb27506978dd90311f7f82f386
[ "MIT" ]
null
null
null
src/multimodal/models/train_model.py
markrofail/multi-modal-deep-learning-for-vehicle-sensor-data-abstraction-and-attack-detection
2f252c072f3091bb27506978dd90311f7f82f386
[ "MIT" ]
6
2020-09-25T22:41:00.000Z
2021-06-08T21:50:37.000Z
src/multimodal/models/train_model.py
markrofail/multi-modal-deep-learning-for-vehicle-sensor-data-abstraction-and-attack-detection
2f252c072f3091bb27506978dd90311f7f82f386
[ "MIT" ]
null
null
null
import os import pickle import click import numpy as np from tensorflow.python import keras from tensorflow.python.keras import backend as K from tensorflow.python.keras import callbacks import src.helpers.keras as kh from src.helpers import paths, timeit from src.helpers.keras import early_stopping from src.multimod...
34.319588
97
0.702013
f1222e71693a1bddc61ac300a966554fe85f6b6d
1,799
py
Python
lav/train_bev.py
Kin-Zhang/LAV
4d984ca4c006b6b307b7a2ca030bd448e1a70ccf
[ "Apache-2.0" ]
122
2022-03-22T18:15:25.000Z
2022-03-31T13:28:57.000Z
lav/train_bev.py
chisyliu/LAV
0a5068c0fad3ecc2f2616801c6d3b00bc0ff03f3
[ "Apache-2.0" ]
5
2022-03-23T06:20:25.000Z
2022-03-30T09:23:09.000Z
lav/train_bev.py
chisyliu/LAV
0a5068c0fad3ecc2f2616801c6d3b00bc0ff03f3
[ "Apache-2.0" ]
11
2022-03-22T19:23:09.000Z
2022-03-30T08:13:33.000Z
import tqdm import torch from lav.lav_privileged import LAV from lav.utils.datasets import get_data_loader from lav.utils.logger import Logger if __name__ == '__main__': import argparse parser = argparse.ArgumentParser() parser.add_argument('--config-path', default='config.yaml') parser.add_argument...
29.016129
86
0.652029
f122d1050b4294b76f8e7e4d847c1c5f4e158ab7
4,575
py
Python
timm/models/factory.py
Annonymous-code-release/HardCore-NAS
ec5bcedb929373bf0b2539dcb918e7ce2bdadacd
[ "MIT" ]
30
2021-02-27T09:08:53.000Z
2021-12-27T10:23:53.000Z
timm/models/factory.py
Annonymous-code-release/HardCore-NAS
ec5bcedb929373bf0b2539dcb918e7ce2bdadacd
[ "MIT" ]
2
2021-05-13T08:44:11.000Z
2021-05-17T12:25:54.000Z
timm/models/factory.py
Annonymous-code-release/HardCore-NAS
ec5bcedb929373bf0b2539dcb918e7ce2bdadacd
[ "MIT" ]
4
2021-04-22T04:15:51.000Z
2021-10-18T09:49:48.000Z
import torch.utils.model_zoo as model_zoo from .registry import is_model, is_model_in_modules, model_entrypoint from .helpers import load_checkpoint from .layers import set_layer_config def create_model( model_name, pretrained=False, num_classes=1000, in_chans=3, checkpoint_path='', scriptable...
41.590909
116
0.665574
f1234b9c8ef43aa2f0707dff31059d7699fbe651
6,132
py
Python
sample-asyncio/async_requests.py
IvanDemin3467/sample-asyncio
fe462f70aadeb39335d392b9e14d6c7d25550fbb
[ "Unlicense" ]
null
null
null
sample-asyncio/async_requests.py
IvanDemin3467/sample-asyncio
fe462f70aadeb39335d392b9e14d6c7d25550fbb
[ "Unlicense" ]
null
null
null
sample-asyncio/async_requests.py
IvanDemin3467/sample-asyncio
fe462f70aadeb39335d392b9e14d6c7d25550fbb
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 # async_requests.py """Asynchronously get links embedded in multiple pages' HTML.""" import asyncio import logging import re import sys # from typing import IO # Use pathlib instead import urllib.error import urllib.parse import aiofiles import aiohttp from aiohttp import ClientSession impor...
42.881119
120
0.66422
f12352df10226259fd2f7adb00c402a851d5ea01
839
py
Python
python/magic-8-ball.py
CindyMullins/intro-to-open-source
6099f28b30c62ee6362ae67f31d2d665ae2a6326
[ "MIT" ]
16
2017-08-20T06:08:53.000Z
2021-02-18T03:41:28.000Z
python/magic-8-ball.py
CindyMullins/intro-to-open-source
6099f28b30c62ee6362ae67f31d2d665ae2a6326
[ "MIT" ]
19
2017-08-19T05:32:30.000Z
2021-03-26T18:40:19.000Z
python/magic-8-ball.py
CindyMullins/intro-to-open-source
6099f28b30c62ee6362ae67f31d2d665ae2a6326
[ "MIT" ]
44
2017-08-19T05:09:13.000Z
2021-07-28T13:39:33.000Z
import random import time responses = ["Not so sure", "Shitty", "Great", "Absolutely not", "Outlook is good", "I see good things happening", "Never", "Negative", "Could be", "Unclear, ask again", "Yes definitely", "No, Idon't think so"] ## Following function asks user question, then returns random results from respons...
34.958333
210
0.692491
f124c20b1fe8e78ebe894a5b161358d7754b3437
584
py
Python
DJangoHotel/viewspackage/roomInfoView.py
chuangkee/mygithub
a3742d45002de55378987eea551776a3168acc17
[ "MIT" ]
null
null
null
DJangoHotel/viewspackage/roomInfoView.py
chuangkee/mygithub
a3742d45002de55378987eea551776a3168acc17
[ "MIT" ]
null
null
null
DJangoHotel/viewspackage/roomInfoView.py
chuangkee/mygithub
a3742d45002de55378987eea551776a3168acc17
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.shortcuts import render from qiniuyun.backend import QiniuPush from qiniuyun.models import ImageAtQiniu from .indexView import ImgList from DJangoHotel.models import RoomInfo
29.2
76
0.688356
f1258b84a5f07855c0ccdb502f37da06ed7d3811
1,830
py
Python
01-face-detection.py
ShawnHymel/face-tracking-camera-openmv
c0a1762e4109e70333740f864678be0ed8b39a38
[ "0BSD" ]
null
null
null
01-face-detection.py
ShawnHymel/face-tracking-camera-openmv
c0a1762e4109e70333740f864678be0ed8b39a38
[ "0BSD" ]
null
null
null
01-face-detection.py
ShawnHymel/face-tracking-camera-openmv
c0a1762e4109e70333740f864678be0ed8b39a38
[ "0BSD" ]
null
null
null
import pyb import sensor import image import time # Status LED led = pyb.LED(3) # Configure camera sensor.reset() sensor.set_contrast(3) sensor.set_gainceiling(16) sensor.set_framesize(sensor.QVGA) sensor.set_pixformat(sensor.GRAYSCALE) # Get center x, y of camera image WIDTH = sensor.width() HEIGHT = sensor.height(...
23.461538
80
0.650273
f125b78a417e8406008b5e709431f7cbdc42edc8
719
py
Python
src/app/user/models.py
jamshidyerzakov/fastapi-blog
26828556482b1b5824781b321558776b5cd882ea
[ "MIT" ]
null
null
null
src/app/user/models.py
jamshidyerzakov/fastapi-blog
26828556482b1b5824781b321558776b5cd882ea
[ "MIT" ]
null
null
null
src/app/user/models.py
jamshidyerzakov/fastapi-blog
26828556482b1b5824781b321558776b5cd882ea
[ "MIT" ]
null
null
null
from tortoise import fields, models
37.842105
60
0.742698
f125d8e87c442a8cc269a58a0d478df4c01d50d7
5,311
py
Python
models/impact.py
ptressel/sahana-eden-madpub
b16418b36d0fb781fd045f7e7edd1a30259a1f35
[ "MIT" ]
1
2016-01-01T12:22:48.000Z
2016-01-01T12:22:48.000Z
models/impact.py
ptressel/sahana-eden-madpub
b16418b36d0fb781fd045f7e7edd1a30259a1f35
[ "MIT" ]
null
null
null
models/impact.py
ptressel/sahana-eden-madpub
b16418b36d0fb781fd045f7e7edd1a30259a1f35
[ "MIT" ]
1
2020-04-29T13:58:31.000Z
2020-04-29T13:58:31.000Z
# -*- coding: utf-8 -*- """ Impact @author: Michael Howden (michael@sahanafoundation.org) @date-created: 2010-10-12 Impact resources used by I(ncident)RS and Assessment """ module = "impact" if deployment_settings.has_module("irs") or deployment_settings.has_module("assess"): # ---...
46.182609
135
0.472416
f12913ad1c3dbc3a14c703a151bdf8159fa5b1c5
1,176
py
Python
punica/cli/box_cmd.py
PunicaSuite/punica-python
dfcd50de4452454b96d0c252c2db994e3bad38c0
[ "MIT" ]
6
2018-11-01T23:39:32.000Z
2020-03-25T13:39:46.000Z
punica/cli/box_cmd.py
PunicaSuite/punica-python
dfcd50de4452454b96d0c252c2db994e3bad38c0
[ "MIT" ]
3
2018-10-26T12:53:16.000Z
2019-06-21T13:22:56.000Z
punica/cli/box_cmd.py
PunicaSuite/punica-python
dfcd50de4452454b96d0c252c2db994e3bad38c0
[ "MIT" ]
7
2018-10-11T07:03:10.000Z
2019-06-26T02:38:58.000Z
import webbrowser from ontology.exception.exception import SDKException from click import ( argument, pass_context ) from .main import main from punica.box.repo_box import Box from punica.utils.output import echo_cli_exception from punica.exception.punica_exception import PunicaException
21.777778
61
0.681973
f129d05f44cb10146314dfec6c8c71b0ec708d35
510
py
Python
Module 1/task1_5.py
bondss/python_scripts
e1fd96b15c22811e43f665ec354563f35522d2ad
[ "Apache-2.0" ]
null
null
null
Module 1/task1_5.py
bondss/python_scripts
e1fd96b15c22811e43f665ec354563f35522d2ad
[ "Apache-2.0" ]
null
null
null
Module 1/task1_5.py
bondss/python_scripts
e1fd96b15c22811e43f665ec354563f35522d2ad
[ "Apache-2.0" ]
null
null
null
# TASK: # : ' n. # . # : n- . # SOLUTION: # Importing modules to work with embedded functions import sys n = int(sys.argv[1]) a_0 = 0 a_1 = 1 # Fibonacci sequence without recursion if n < 0: print("n cannot be negative number") else: for i in range(0, n): temp = a_0 a_0 = a_1 ...
22.173913
92
0.684314
f12a2635fbf63d772fb7935a404f7cffb8039de1
1,474
py
Python
mawiparse/download.py
zouchengyao/MAWI_trace
8c02efdf6909b9e88207d1d4a6eb06484f6232db
[ "Unlicense" ]
null
null
null
mawiparse/download.py
zouchengyao/MAWI_trace
8c02efdf6909b9e88207d1d4a6eb06484f6232db
[ "Unlicense" ]
null
null
null
mawiparse/download.py
zouchengyao/MAWI_trace
8c02efdf6909b9e88207d1d4a6eb06484f6232db
[ "Unlicense" ]
null
null
null
import sys from datetime import date, timedelta import requests ''' Example Usage Below: ''' if __name__ == '__main__': date_list = date_gen(d1=date(2020, 3, 1), d2=date(2020, 3, 6)) date_list += date_gen(d1=date(2020, 5, 1), d2=date(2020, 5, 31)) print(date_list) download(date_list)
33.5
110
0.566486
f12ad4d081af029b8fac96e0ad750e41145f8ce6
227
py
Python
moceansdk/modules/command/content_builder/wa_photo_content_builder.py
d3no/mocean-sdk-python
cbc215a0eb8aa26c04afb940eab6482f23150c75
[ "MIT" ]
null
null
null
moceansdk/modules/command/content_builder/wa_photo_content_builder.py
d3no/mocean-sdk-python
cbc215a0eb8aa26c04afb940eab6482f23150c75
[ "MIT" ]
null
null
null
moceansdk/modules/command/content_builder/wa_photo_content_builder.py
d3no/mocean-sdk-python
cbc215a0eb8aa26c04afb940eab6482f23150c75
[ "MIT" ]
null
null
null
from moceansdk.modules.command.content_builder.wa_rich_media_content_builder_basic import WaRichMediaContentBuilderBasic
32.428571
120
0.84141
f12c0dba60c660fd2a9eda0a22218a7e249c34ce
2,693
py
Python
project4/route_planner/shortest_path.py
jurayev/algorithms-datastructures-udacity
e29149d8fdf65c27a8ceed205b6640e6a4c36e5a
[ "MIT" ]
1
2020-05-08T17:52:19.000Z
2020-05-08T17:52:19.000Z
project4/route_planner/shortest_path.py
jurayev/algorithms-datastructures-udacity
e29149d8fdf65c27a8ceed205b6640e6a4c36e5a
[ "MIT" ]
null
null
null
project4/route_planner/shortest_path.py
jurayev/algorithms-datastructures-udacity
e29149d8fdf65c27a8ceed205b6640e6a4c36e5a
[ "MIT" ]
null
null
null
from heapq import heapify, heappush, heappop from collections import defaultdict import math def distance(M, node_1, node_2): """Computes the Euclidean L2 Distance.""" x1, y1 = M.intersections[node_1] x2, y2 = M.intersections[node_2] return math.sqrt(math.pow(x1 - x2, 2) + math.pow(y1 - y2, 2)) ...
32.841463
144
0.62941
f12f4b77b17ee877874d3070b4b8e671066a09f5
1,086
py
Python
tests/functional/test_tools.py
luciddg/auth-tool
4dc250ce2bb6f44c866f5feb6091febb641d45cc
[ "MIT" ]
8
2016-01-01T23:59:30.000Z
2018-09-08T02:26:04.000Z
tests/functional/test_tools.py
luciddg/auth-tool
4dc250ce2bb6f44c866f5feb6091febb641d45cc
[ "MIT" ]
1
2016-01-01T23:47:34.000Z
2016-01-01T23:47:34.000Z
tests/functional/test_tools.py
luciddg/auth-tool
4dc250ce2bb6f44c866f5feb6091febb641d45cc
[ "MIT" ]
4
2016-01-27T21:34:11.000Z
2020-11-01T23:48:52.000Z
# -*- coding: utf-8 -*- import cherrypy from jinja2 import Template import mock from tests.utils import BaseToolsTest from lib.tool.allowed_methods import AllowedMethodsTool from lib.tool.cpemail import EmailTool from lib.tool.template import Jinja2Tool
26.487805
74
0.680479
f130abbd9a592d4de131ea1853b6cde621507aeb
1,417
py
Python
instanotifier/taskapp/celery.py
chaudbak/instanotifier
d29bc6bd9b7a003403886bfff1376b2c1925cc74
[ "MIT" ]
null
null
null
instanotifier/taskapp/celery.py
chaudbak/instanotifier
d29bc6bd9b7a003403886bfff1376b2c1925cc74
[ "MIT" ]
6
2020-06-06T01:27:17.000Z
2022-02-10T11:20:17.000Z
instanotifier/taskapp/celery.py
chaudbak/instanotifier
d29bc6bd9b7a003403886bfff1376b2c1925cc74
[ "MIT" ]
null
null
null
import os import logging import stackprinter from celery import Celery, Task from celery.schedules import crontab from django.apps import apps, AppConfig from django.conf import settings if not settings.configured: # set the default Django settings module for the 'celery' program. os.environ.setdefault( ...
28.34
83
0.701482
f13290e16a577b6d0531e42f7d49808bc196e0e5
8,650
py
Python
src/encoded/audit/reference_epigenome.py
KCL-ORG/encoded
5a1904e948bfd652e8a8d52c6717d7fc0b56b681
[ "MIT" ]
4
2018-01-04T22:31:08.000Z
2021-07-15T17:39:16.000Z
src/encoded/audit/reference_epigenome.py
KCL-ORG/encoded
5a1904e948bfd652e8a8d52c6717d7fc0b56b681
[ "MIT" ]
7
2017-10-31T23:47:47.000Z
2022-01-10T00:12:42.000Z
src/encoded/audit/reference_epigenome.py
KCL-ORG/encoded
5a1904e948bfd652e8a8d52c6717d7fc0b56b681
[ "MIT" ]
10
2017-09-14T00:57:07.000Z
2021-07-27T23:41:14.000Z
from snovault import ( AuditFailure, audit_checker, )
48.595506
104
0.529711
f1333a9e3ae0d19e9779bfea7609d6c1f32c57ab
7,203
py
Python
geolang/__init__.py
Lh4cKg/simple-geolang-toolkit
98a488095b09fdbb218a6e534b521750fd66c118
[ "MIT" ]
6
2016-02-05T06:53:42.000Z
2019-11-25T22:19:33.000Z
geolang/__init__.py
Lh4cKg/simple-geolang-toolkit-py3
98a488095b09fdbb218a6e534b521750fd66c118
[ "MIT" ]
null
null
null
geolang/__init__.py
Lh4cKg/simple-geolang-toolkit-py3
98a488095b09fdbb218a6e534b521750fd66c118
[ "MIT" ]
2
2016-06-29T13:54:03.000Z
2016-10-10T06:57:41.000Z
# -*- coding: utf-8 -* """ Georgian Language Toolkit for Python 3 Source: <https://github.com/Lh4cKg/simple-geolang-toolkit> """ import re from typing import Dict, Any, Iterable, Union, List, Tuple from functools import lru_cache, partial from unicodedata import normalize __author__ = 'Lasha Gogua' __email__ = 'Lh...
29.4
81
0.530057
f1338c2d7facf161dcd7e05ce938ac8ab160185f
156
py
Python
advent-of-code/aoc-2020/helpers.py
ikumen/problems-solvers
c1847b09babbef344b2043b575fc81fed5809725
[ "MIT" ]
null
null
null
advent-of-code/aoc-2020/helpers.py
ikumen/problems-solvers
c1847b09babbef344b2043b575fc81fed5809725
[ "MIT" ]
null
null
null
advent-of-code/aoc-2020/helpers.py
ikumen/problems-solvers
c1847b09babbef344b2043b575fc81fed5809725
[ "MIT" ]
null
null
null
import os
22.285714
59
0.737179
f133ac3bc0b0cb76c03d05a0ae01490536510130
4,436
py
Python
extract_t_production_map.py
RemDelaporteMathurin/T_transport_LIBRA
5002c3f670f85053751026cfa8079188cd4eb7ab
[ "MIT" ]
null
null
null
extract_t_production_map.py
RemDelaporteMathurin/T_transport_LIBRA
5002c3f670f85053751026cfa8079188cd4eb7ab
[ "MIT" ]
null
null
null
extract_t_production_map.py
RemDelaporteMathurin/T_transport_LIBRA
5002c3f670f85053751026cfa8079188cd4eb7ab
[ "MIT" ]
null
null
null
import openmc from scipy import interpolate import matplotlib.pyplot as plt from matplotlib.colors import LogNorm from matplotlib import ticker import matplotx import numpy as np import scipy.ndimage as ndimage source_strength = 1e10/4 # n/s statepoint_file = "statepoint.4.h5" # loads up the statepoint file with ...
32.379562
135
0.658476
f1363e56bdfc412112127936e4e7fe72aeef181e
10,827
py
Python
python/project_kine/kine.py
OthmanEmpire/misc_code
4d487db518167b62969ad65abaffbc9e01777d91
[ "MIT" ]
null
null
null
python/project_kine/kine.py
OthmanEmpire/misc_code
4d487db518167b62969ad65abaffbc9e01777d91
[ "MIT" ]
null
null
null
python/project_kine/kine.py
OthmanEmpire/misc_code
4d487db518167b62969ad65abaffbc9e01777d91
[ "MIT" ]
null
null
null
################################################################################ # Author: Othman Alikhan # # Year Initiated: 2012 # # ...
32.70997
81
0.590745
f137bc4b01b5db85d64c99e987d9f3821f1ccd3f
10,845
py
Python
cucm_cdr_email_alerts.py
nithinmulley/CUCM_CDR_Email_Alert
4ba8b85f8ce380a51e7cd4adf1f404d1cd52d2b9
[ "MIT" ]
2
2020-09-06T21:18:25.000Z
2021-07-29T20:33:24.000Z
cucm_cdr_email_alerts.py
nithinmulley/CUCM_CDR_Email_Alert
4ba8b85f8ce380a51e7cd4adf1f404d1cd52d2b9
[ "MIT" ]
null
null
null
cucm_cdr_email_alerts.py
nithinmulley/CUCM_CDR_Email_Alert
4ba8b85f8ce380a51e7cd4adf1f404d1cd52d2b9
[ "MIT" ]
1
2021-07-29T20:33:18.000Z
2021-07-29T20:33:18.000Z
#!/usr/bin/python3 ############################################################################### # This Script searches for 911 calls in the CDR Dump and sends an email alert # # with the required details. It can also check GW names and send alert only # # to the site specific personnel. CUCM AXL is used to get...
42.198444
117
0.460028
f138db4de20797c1a18afcc173579df60eb96a10
1,608
py
Python
homebrain/agents/devicemanager/devicemanager.py
ErikBjare/Homebrain
7e4dcc9d0e5f5ef6bde3d2cf31639527166ab124
[ "MIT" ]
1
2015-12-03T18:42:54.000Z
2015-12-03T18:42:54.000Z
homebrain/agents/devicemanager/devicemanager.py
ErikBjare/Homebrain
7e4dcc9d0e5f5ef6bde3d2cf31639527166ab124
[ "MIT" ]
14
2015-12-02T22:21:12.000Z
2019-11-06T10:26:08.000Z
homebrain/agents/devicemanager/devicemanager.py
ErikBjare/Homebrain
7e4dcc9d0e5f5ef6bde3d2cf31639527166ab124
[ "MIT" ]
null
null
null
from homebrain import Agent, Dispatcher, AgentManager from homebrain.core.decorators import stop_on_shutdown_event from lamphandler import LampHandler from ttshandler import TTSHandler from idfilter import IDFilter import logging
36.545455
73
0.600124
f139fb71cd890e05932e05089ee6bc01628c1c14
1,890
py
Python
core/logger.py
nragon/keeper
e7e668a89799759009dacb1e33bae07b3bcea40a
[ "MIT" ]
28
2018-11-29T10:33:35.000Z
2022-01-18T10:36:08.000Z
core/logger.py
nragon/keeper
e7e668a89799759009dacb1e33bae07b3bcea40a
[ "MIT" ]
3
2019-04-26T14:13:29.000Z
2020-05-22T20:12:01.000Z
core/logger.py
nragon/keeper
e7e668a89799759009dacb1e33bae07b3bcea40a
[ "MIT" ]
9
2019-01-08T04:20:46.000Z
2022-01-03T05:14:48.000Z
# -*- coding: utf-8 -*- """ Provides base logging functions :copyright: 2018 by Nuno Gonalves :license: MIT, see LICENSE for more details. """ from logging import getLevelName, INFO, WARN, ERROR, DEBUG from multiprocessing import current_process from time import strftime from core.common import load_confi...
22.771084
82
0.566667
f13a4cc826ea37913e60b843ea7611564973e259
149
py
Python
terms_finder/__init__.py
elderdk/pyxliff
ae641f0e93790498798f64ce1b64b16e9334cf75
[ "MIT" ]
2
2021-12-10T17:16:14.000Z
2022-02-28T12:37:21.000Z
terms_finder/__init__.py
elderdk/pyxliff
ae641f0e93790498798f64ce1b64b16e9334cf75
[ "MIT" ]
null
null
null
terms_finder/__init__.py
elderdk/pyxliff
ae641f0e93790498798f64ce1b64b16e9334cf75
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # pyxliff/__init__.py """Provides useful functions for SDLXliff terms verification and discovery.""" __version__ = "0.1.0"
21.285714
78
0.697987
f13bc8574caf238361be4402a6e53cb212736b36
11,239
py
Python
selene_sdk/targets/tests/test_genomic_features.py
msindeeva/selene
601d0d11e11838a61778b4282482cacd20ce1a4a
[ "BSD-3-Clause-Clear" ]
307
2018-09-21T16:48:12.000Z
2022-03-23T21:42:04.000Z
selene_sdk/targets/tests/test_genomic_features.py
msindeeva/selene
601d0d11e11838a61778b4282482cacd20ce1a4a
[ "BSD-3-Clause-Clear" ]
104
2018-08-07T13:44:29.000Z
2022-01-12T01:35:30.000Z
selene_sdk/targets/tests/test_genomic_features.py
msindeeva/selene
601d0d11e11838a61778b4282482cacd20ce1a4a
[ "BSD-3-Clause-Clear" ]
85
2018-10-20T08:06:31.000Z
2022-03-29T15:17:30.000Z
import os import unittest import numpy as np from selene_sdk.targets import GenomicFeatures from selene_sdk.targets.genomic_features import _any_positive_rows, \ _is_positive_row, _get_feature_data if __name__ == "__main__": unittest.main()
37.969595
80
0.585728
f13bcd20053baa92075a05739364b6b7dd954df4
87
py
Python
BotAPI/apps.py
hanihusam/kitabisa-faqBot-api
e938be93dcb0fd1f8aa70ed31ec78fd6dd769aaf
[ "MIT" ]
null
null
null
BotAPI/apps.py
hanihusam/kitabisa-faqBot-api
e938be93dcb0fd1f8aa70ed31ec78fd6dd769aaf
[ "MIT" ]
null
null
null
BotAPI/apps.py
hanihusam/kitabisa-faqBot-api
e938be93dcb0fd1f8aa70ed31ec78fd6dd769aaf
[ "MIT" ]
1
2021-05-28T03:55:44.000Z
2021-05-28T03:55:44.000Z
from django.apps import AppConfig
14.5
33
0.747126
f140a85804be9f86cc527818513ef5706f31e72f
2,251
py
Python
codewar/4 By 4 Skyscrapers -2k/4 By 4 Skyscrapers.py
z7211979/practise-Python
fb3c72b5e094b4102c9cce0513f48fca6ef4d8bc
[ "MIT" ]
1
2018-08-30T23:11:47.000Z
2018-08-30T23:11:47.000Z
codewar/4 By 4 Skyscrapers -2k/4 By 4 Skyscrapers.py
z7211979/practise-Python
fb3c72b5e094b4102c9cce0513f48fca6ef4d8bc
[ "MIT" ]
null
null
null
codewar/4 By 4 Skyscrapers -2k/4 By 4 Skyscrapers.py
z7211979/practise-Python
fb3c72b5e094b4102c9cce0513f48fca6ef4d8bc
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- ''' not worked ''' import sys sys.path.append('../') import cw as test import time N=4 def rotate(matrix): """ :contrarotate matrix. """ return list(map(list,zip(*matrix[::])))[::-1] def visible_onerow(array): """ :return visible number in ...
21.438095
73
0.513994
f140c7545f7a24cc77e25acf7054d41c00c1c115
518
py
Python
setup.py
madhav-datt/seeyourmail
0fa1d312dbd8b091b41c92d4bcc26590705c1b97
[ "MIT" ]
1
2016-08-13T07:07:30.000Z
2016-08-13T07:07:30.000Z
setup.py
madhav-datt/seeyourmail
0fa1d312dbd8b091b41c92d4bcc26590705c1b97
[ "MIT" ]
null
null
null
setup.py
madhav-datt/seeyourmail
0fa1d312dbd8b091b41c92d4bcc26590705c1b97
[ "MIT" ]
null
null
null
from distutils.core import setup setup( name='seeyourmail', packages=['seeyourmail'], version='1.0', description='seeyourmail makes retrieving and checking your email in programs as simple as can be', author='Madhav Datt', author_email='madhav.datt@hotmail.com', url='https://github.com/mad...
32.375
103
0.696911
f1421331a8ad297681d71b1a57c45b9b1014e0fc
1,418
py
Python
setup.py
vinmorel/MapleWrapper
449472407b08979e38c66ccd5d2c17d790a007d0
[ "MIT" ]
16
2020-10-03T03:21:35.000Z
2022-01-27T03:19:16.000Z
setup.py
vinmorel/MapleWrapper
449472407b08979e38c66ccd5d2c17d790a007d0
[ "MIT" ]
1
2022-01-02T16:28:36.000Z
2022-02-01T14:28:30.000Z
setup.py
vinmorel/MapleWrapper
449472407b08979e38c66ccd5d2c17d790a007d0
[ "MIT" ]
6
2020-09-19T17:37:10.000Z
2021-11-12T07:29:56.000Z
from setuptools import setup description = """MapleWrapper allows real-time game data extraction for MapleStory v.92 and below clients. It is primarily intended to facilitate the production of reinforcement learning environments for game agents. For more information, read the README at https://github.com/vinmorel/M...
33.761905
101
0.581805
f14358487fc37d982a80c44f9b83e827a8884fc4
2,669
py
Python
service/watch_tower.py
sroy96/Stock_Price_Notification
944acd2104461663b7811f6e63d06a4ef3a3911b
[ "MIT" ]
2
2020-11-10T21:34:22.000Z
2020-11-10T23:37:04.000Z
service/watch_tower.py
sroy96/Stock_Price_Notification
944acd2104461663b7811f6e63d06a4ef3a3911b
[ "MIT" ]
1
2020-11-09T06:08:56.000Z
2020-11-09T19:01:42.000Z
service/watch_tower.py
sroy96/Stock_Price_Notification
944acd2104461663b7811f6e63d06a4ef3a3911b
[ "MIT" ]
null
null
null
from interfaces.interface import Publisher, stock_list from utils.notifier import NotificationUtils from service.loader import LoadStock from utils import cache_util, common_constants
42.365079
126
0.654552
f1440fd46e2a7fc12bee012f62a878da9039092a
517
py
Python
history/migrations/0005_auto_20190411_2258.py
hereischen/Goliath
2305048537f892febde6610b4cd108d3fb1b895a
[ "BSD-3-Clause" ]
5
2019-05-08T00:50:25.000Z
2021-11-24T07:33:10.000Z
history/migrations/0005_auto_20190411_2258.py
hereischen/Goliath
2305048537f892febde6610b4cd108d3fb1b895a
[ "BSD-3-Clause" ]
12
2019-12-02T00:05:06.000Z
2022-01-13T01:04:35.000Z
history/migrations/0005_auto_20190411_2258.py
hereischen/Goliath
2305048537f892febde6610b4cd108d3fb1b895a
[ "BSD-3-Clause" ]
1
2019-01-08T17:43:41.000Z
2019-01-08T17:43:41.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.18 on 2019-04-11 22:58 from __future__ import unicode_literals from django.db import migrations, models
24.619048
104
0.646035
f14424adcb8aac9e22ace84eb995a3cb2391743f
1,047
py
Python
stereomideval/test_exceptions.py
i3drobotics/StereoMiddleburyEval
014d8a6ebf2df42bdac9bfca66b28a909adae983
[ "MIT" ]
2
2020-11-29T21:48:46.000Z
2021-09-22T09:25:12.000Z
stereomideval/test_exceptions.py
i3drobotics/StereoMiddleburyEval
014d8a6ebf2df42bdac9bfca66b28a909adae983
[ "MIT" ]
null
null
null
stereomideval/test_exceptions.py
i3drobotics/StereoMiddleburyEval
014d8a6ebf2df42bdac9bfca66b28a909adae983
[ "MIT" ]
1
2021-11-29T09:12:51.000Z
2021-11-29T09:12:51.000Z
"""This module tests Exceptions functionality in stereomideval module""" import pytest import numpy as np from stereomideval.dataset import Dataset from stereomideval.exceptions import ImageSizeNotEqual, PathNotFound, InvalidSceneName def test_catch_invalid_image_sizes(): """Test catching invalid image sizes""" ...
34.9
96
0.758357
f144927d7307f39c0724b738d54c86ff0018c2c6
2,897
py
Python
Diskmag/sources/mag.py
w84death/rpii-fdd-mag
0ebd63648e731ed65e68a7f8cdb701413c370177
[ "MIT" ]
null
null
null
Diskmag/sources/mag.py
w84death/rpii-fdd-mag
0ebd63648e731ed65e68a7f8cdb701413c370177
[ "MIT" ]
null
null
null
Diskmag/sources/mag.py
w84death/rpii-fdd-mag
0ebd63648e731ed65e68a7f8cdb701413c370177
[ "MIT" ]
null
null
null
# # Nomad Diskmag - Mag class # Main loop and app initiation. # # E-zine on a 1.44 floppy tailored made on Raspberry Pi computer. # Created by Krzysztof Krystian Jankowski # https://krzysztofjankowski.com/nomad-diskmag # import pygame from pygame.locals import * from sources.chapter import Chapter from sources.cursor ...
24.550847
118
0.705212
f1466265e389573bb78149ea31304ec7d422874a
22,156
py
Python
applications/cpfecys/controllers/default.py
SIMBitGt-Company/RepoRepo
b84c39d9643a0c5e51291d5e62e36b6080a7e622
[ "BSD-3-Clause" ]
null
null
null
applications/cpfecys/controllers/default.py
SIMBitGt-Company/RepoRepo
b84c39d9643a0c5e51291d5e62e36b6080a7e622
[ "BSD-3-Clause" ]
null
null
null
applications/cpfecys/controllers/default.py
SIMBitGt-Company/RepoRepo
b84c39d9643a0c5e51291d5e62e36b6080a7e622
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # this file is released under public domain and you can use without limitations ######################################################################### ## This is a sample controller ## - index is the default action of any application ## - user is required for authentication and authorization...
46.644211
302
0.586162
f146f75f4952a6393d885745d75d9ffaca94a1b1
4,624
py
Python
ice_validator/tests/test_network_format.py
tlovett/vvp-validation-scripts
b54d8aeee3c8681d943f6c3e20bad87723abb051
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
ice_validator/tests/test_network_format.py
tlovett/vvp-validation-scripts
b54d8aeee3c8681d943f6c3e20bad87723abb051
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
ice_validator/tests/test_network_format.py
tlovett/vvp-validation-scripts
b54d8aeee3c8681d943f6c3e20bad87723abb051
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
# -*- coding: utf8 -*- # ============LICENSE_START======================================================= # org.onap.vvp/validation-scripts # =================================================================== # Copyright 2017 AT&T Intellectual Property. All rights reserved. # =========================================...
33.266187
85
0.622621
f148a0878c8fb132c93c5a6ed444cf5362a2ef2f
558
py
Python
server/huTools/couch.py
jeffjia/Send2Cloud
4900c0a85ba9ea817bf34f0b5356580c2c3117c3
[ "Apache-2.0" ]
1
2018-03-01T13:12:46.000Z
2018-03-01T13:12:46.000Z
server/huTools/couch.py
jeffjia/Send2Cloud
4900c0a85ba9ea817bf34f0b5356580c2c3117c3
[ "Apache-2.0" ]
null
null
null
server/huTools/couch.py
jeffjia/Send2Cloud
4900c0a85ba9ea817bf34f0b5356580c2c3117c3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ couch.py Created by Christian Klein on 2010-02-26. Copyright (c) 2010 HUDORA GmbH. All rights reserved. """ import couchdb.client import warnings def setup_couchdb(servername, database): """Get a connection handler to the CouchDB Database, creating it when needed.""" ...
25.363636
84
0.724014
f14921b446dc5a23fa822e2572f00ead72c3441d
1,931
py
Python
app/mixins.py
valentinDruzhinin/todo-lists
b517137437d5480d1aaec0451f060e1556bf3d8f
[ "MIT" ]
null
null
null
app/mixins.py
valentinDruzhinin/todo-lists
b517137437d5480d1aaec0451f060e1556bf3d8f
[ "MIT" ]
null
null
null
app/mixins.py
valentinDruzhinin/todo-lists
b517137437d5480d1aaec0451f060e1556bf3d8f
[ "MIT" ]
null
null
null
import json from bson import ObjectId from pymongo import ReturnDocument from .exceptions import DBException
31.655738
100
0.663905
f14955222f7c605c7eb4345df4bf62f501a01858
22,021
py
Python
training/utils/divide_data.py
liecn/Oort
9ecbcd6070dd1e70a07152bd6da811df3e5966ec
[ "Apache-2.0" ]
43
2021-05-27T09:20:30.000Z
2022-03-11T03:55:37.000Z
training/utils/divide_data.py
zyxum/Oort
05a3aa1677a10f8e621055b1626ef82e73d09759
[ "Apache-2.0" ]
3
2021-06-25T11:54:08.000Z
2021-08-08T23:03:16.000Z
training/utils/divide_data.py
zyxum/Oort
05a3aa1677a10f8e621055b1626ef82e73d09759
[ "Apache-2.0" ]
14
2021-05-30T14:24:30.000Z
2022-02-23T23:14:50.000Z
# -*- coding: utf-8 -*- from random import Random #from core.dataloader import DataLoader from torch.utils.data import DataLoader import numpy as np from math import * import logging from scipy import stats import numpy as np from pyemd import emd from collections import OrderedDict import time import pickle, random fr...
40.184307
214
0.591481
f149870ce5099dc14c5ea591f5e0b61107cd647f
276
py
Python
demo.py
re-treat/DialoFlow
b7b729ddf5d146ee201c987f3a44894ad24938ce
[ "MIT" ]
null
null
null
demo.py
re-treat/DialoFlow
b7b729ddf5d146ee201c987f3a44894ad24938ce
[ "MIT" ]
null
null
null
demo.py
re-treat/DialoFlow
b7b729ddf5d146ee201c987f3a44894ad24938ce
[ "MIT" ]
null
null
null
from generate import * history = [] while True: new_sentence = input('>> User: ').replace('\n','') history.append(new_sentence) resps = get_responses(history[-5:],mode='sample') best_resp = resps[0] print(">> Bot:",best_resp) history.append(best_resp)
27.6
54
0.644928
f149e20c2201d07c22b3575638131ab63fa971d2
2,920
py
Python
tests/pyposmat/engines/PyposmatEngine/dev__Ni_eam__born_exp_rose/dev__PyposmatEngine__eam_Ni.py
eragasa/pypospack
21cdecaf3b05c87acc532d992be2c04d85bfbc22
[ "MIT" ]
4
2018-01-18T19:59:56.000Z
2020-08-25T11:56:52.000Z
tests/pyposmat/engines/PyposmatEngine/dev__Ni_eam__born_exp_rose/dev__PyposmatEngine__eam_Ni.py
eragasa/pypospack
21cdecaf3b05c87acc532d992be2c04d85bfbc22
[ "MIT" ]
1
2018-04-22T23:02:13.000Z
2018-04-22T23:02:13.000Z
tests/pyposmat/engines/PyposmatEngine/dev__Ni_eam__born_exp_rose/dev__PyposmatEngine__eam_Ni.py
eragasa/pypospack
21cdecaf3b05c87acc532d992be2c04d85bfbc22
[ "MIT" ]
1
2019-09-14T07:04:42.000Z
2019-09-14T07:04:42.000Z
import os import shutil import Ni__eam__born_exp_rose as configuration from collections import OrderedDict # symbols = ['Ni'] # THE LATTICE INFORMATION IS NORMALLY A QOI, BUT THE QOI'S ARE BURNED HERE lattice_info = OrderedDict() for s in symbols: lattice_info[s] = OrderedDict() lattice_info['Ni']['lattice_type'...
34.761905
90
0.721233
f14b9d77365ef2d8aa26fb023135e2cc8bebca98
6,335
py
Python
dash-cytoscape/cyto-edit-graph.py
anhinga/2019-python-drafts
d312e4c902f650fb4ad91b9ae7df934ab530a6c6
[ "MIT" ]
4
2019-05-27T15:31:24.000Z
2021-02-17T12:55:58.000Z
dash-cytoscape/cyto-edit-graph.py
anhinga/2019-python-drafts
d312e4c902f650fb4ad91b9ae7df934ab530a6c6
[ "MIT" ]
null
null
null
dash-cytoscape/cyto-edit-graph.py
anhinga/2019-python-drafts
d312e4c902f650fb4ad91b9ae7df934ab530a6c6
[ "MIT" ]
1
2021-02-17T12:56:00.000Z
2021-02-17T12:56:00.000Z
# based on cyto-multiselect-callback.py # added ability to add nodes and edges # + experiments with styling # + logging (but not enough to conveniently store changes between sessions) #import json import datetime print("START") with open("logfile.txt", "a") as file: print(str(datetime.datetime.now()), file=file...
32.321429
125
0.540647
f14ca1f87eb014f04eefe6485b3e9dd32f417cfa
6,308
py
Python
pysnmp-with-texts/ZYXEL-L3-IP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/ZYXEL-L3-IP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/ZYXEL-L3-IP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module ZYXEL-L3-IP-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ZYXEL-L3-IP-MIB # Produced by pysmi-0.3.4 at Wed May 1 15:50:32 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27...
121.307692
643
0.789474
f15199cf75b6d96e43e6247a8d94b1105d31afcf
1,104
py
Python
timesearch_modules/get_styles.py
clayne/timesearch
b2abb296268f1f785c7ebfd98eb7f0e1c46d3e6c
[ "BSD-3-Clause" ]
127
2017-11-15T23:21:30.000Z
2022-03-30T01:21:38.000Z
timesearch_modules/get_styles.py
clayne/timesearch
b2abb296268f1f785c7ebfd98eb7f0e1c46d3e6c
[ "BSD-3-Clause" ]
11
2018-03-15T23:21:19.000Z
2021-07-05T17:35:40.000Z
timesearch_modules/get_styles.py
clayne/timesearch
b2abb296268f1f785c7ebfd98eb7f0e1c46d3e6c
[ "BSD-3-Clause" ]
9
2017-11-25T19:56:16.000Z
2021-10-29T18:30:36.000Z
import os import requests from . import common from . import tsdb session = requests.Session()
33.454545
77
0.708333
f151a37ab8e8d0aaebed15ae6a6151719ffc3011
200
py
Python
stade/core/admin/challenge.py
ImageMarkup/stade
d930e8c7487754b2babd6a3be69f2c614cd7f609
[ "Apache-2.0" ]
4
2019-09-25T22:57:32.000Z
2021-03-03T16:49:30.000Z
stade/core/admin/challenge.py
ImageMarkup/stade
d930e8c7487754b2babd6a3be69f2c614cd7f609
[ "Apache-2.0" ]
55
2019-10-30T16:58:43.000Z
2021-10-09T23:26:03.000Z
stade/core/admin/challenge.py
ImageMarkup/stade
d930e8c7487754b2babd6a3be69f2c614cd7f609
[ "Apache-2.0" ]
1
2020-02-03T17:14:32.000Z
2020-02-03T17:14:32.000Z
from django.contrib import admin from stade.core.models import Challenge from .task import TaskInline
18.181818
39
0.795
f15240d4907266913b6662a9ece2cb32b8fefe12
22,490
py
Python
isovar/read_collector.py
openvax/isovar
98a8bb33df5664973ff6ded5944a3024258217bd
[ "Apache-2.0" ]
12
2018-05-19T23:43:32.000Z
2021-11-16T04:10:17.000Z
isovar/read_collector.py
hammerlab/isovar
98a8bb33df5664973ff6ded5944a3024258217bd
[ "Apache-2.0" ]
86
2016-03-30T05:06:39.000Z
2017-11-27T21:40:58.000Z
isovar/read_collector.py
openvax/isovar
98a8bb33df5664973ff6ded5944a3024258217bd
[ "Apache-2.0" ]
9
2018-06-07T09:57:33.000Z
2021-06-01T03:42:05.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under th...
40.816697
103
0.620009
f15247f7b99217210cf0f3554e3dcfde968fa32f
3,223
py
Python
py/problem_059.py
curtislb/ProjectEuler
7baf8d7b7ac0e8697d4dec03458b473095a45da4
[ "MIT" ]
null
null
null
py/problem_059.py
curtislb/ProjectEuler
7baf8d7b7ac0e8697d4dec03458b473095a45da4
[ "MIT" ]
null
null
null
py/problem_059.py
curtislb/ProjectEuler
7baf8d7b7ac0e8697d4dec03458b473095a45da4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """problem_059.py Problem 59: XOR decryption Each character on a computer is assigned a unique code and the preferred standard is ASCII (American Standard Code for Information Interchange). For example, uppercase A = 65, asterisk (*) = 42, and lowercase k = 107. A modern encryption method is ...
36.213483
79
0.667391
f1526efede384c420a349749deb717be3531861e
30
py
Python
app/model/__init__.py
wax911/insomnia-graphql-generator
290490a96eaf6d6a892e2e1ee4e970b3b3b5c02d
[ "Apache-2.0" ]
7
2018-09-18T08:44:18.000Z
2021-03-31T23:36:35.000Z
app/model/__init__.py
wax911/insomnia-graphql-generator
290490a96eaf6d6a892e2e1ee4e970b3b3b5c02d
[ "Apache-2.0" ]
null
null
null
app/model/__init__.py
wax911/insomnia-graphql-generator
290490a96eaf6d6a892e2e1ee4e970b3b3b5c02d
[ "Apache-2.0" ]
2
2018-05-06T13:43:15.000Z
2021-01-26T01:03:35.000Z
from app.model.basic import *
15
29
0.766667
f15323130dcce31ab29d531d0d9ad58c8cc2b73f
4,766
py
Python
tests/o3_test.py
sophiaas/e3nn
92351b9225df7aeaf70fdc124c7b0e566d4c0eda
[ "MIT" ]
1
2021-01-11T18:34:39.000Z
2021-01-11T18:34:39.000Z
tests/o3_test.py
sophiaas/e3nn
92351b9225df7aeaf70fdc124c7b0e566d4c0eda
[ "MIT" ]
null
null
null
tests/o3_test.py
sophiaas/e3nn
92351b9225df7aeaf70fdc124c7b0e566d4c0eda
[ "MIT" ]
null
null
null
# pylint: disable=not-callable, no-member, invalid-name, line-too-long, wildcard-import, unused-wildcard-import, missing-docstring, no-value-for-parameter import unittest from functools import partial import torch from e3nn import o3 if __name__ == '__main__': unittest.main()
37.234375
154
0.516366
f1536b23646ae8873aeb40a048ca647cac26aaa8
304
py
Python
test/app/api/query/test_common.py
awaisali88/Python-Flask-mongo
4c7177587a90a109ea16fd8c1ec79ed15dbd35a0
[ "MIT" ]
3
2021-04-16T09:16:34.000Z
2021-07-20T19:36:20.000Z
test/app/api/query/test_common.py
fsjunior/python-flask-restful-seed
1b989d17ac3a0f27cb60be43c5e81310bf8a4c53
[ "MIT" ]
10
2020-11-03T14:52:24.000Z
2021-06-28T21:25:05.000Z
test/app/api/query/test_common.py
fsjunior/python-flask-restful-seed
1b989d17ac3a0f27cb60be43c5e81310bf8a4c53
[ "MIT" ]
1
2021-08-20T22:58:33.000Z
2021-08-20T22:58:33.000Z
import pytest from app.api.business.common import _validate_objectid
23.384615
54
0.743421
f154d345f816a74824e50cd5c1e77536a81645a0
2,920
py
Python
LeetCode/Python3/BackTracking/351. Android Unlock Patterns.py
WatsonWangZh/CodingPractice
dc057dd6ea2fc2034e14fd73e07e73e6364be2ae
[ "MIT" ]
11
2019-09-01T22:36:00.000Z
2021-11-08T08:57:20.000Z
LeetCode/Python3/BackTracking/351. Android Unlock Patterns.py
WatsonWangZh/LeetCodePractice
dc057dd6ea2fc2034e14fd73e07e73e6364be2ae
[ "MIT" ]
null
null
null
LeetCode/Python3/BackTracking/351. Android Unlock Patterns.py
WatsonWangZh/LeetCodePractice
dc057dd6ea2fc2034e14fd73e07e73e6364be2ae
[ "MIT" ]
2
2020-05-27T14:58:52.000Z
2020-05-27T15:04:17.000Z
# Given an Android 3x3 key lock screen and two integers m and n, # where 1 m n 9, count the total number of unlock patterns of the Android lock screen, # which consist of minimum of m keys and maximum n keys. # Rules for a valid pattern: # Each pattern must connect at least m keys and at most n keys. # All the ke...
35.180723
121
0.564726
f155bc1a211793a970fc169120e7e51e08372932
1,153
py
Python
video_capture/plotting.py
FrostyDesigner/Python_Scripts
ec9dcf1a8787e60e40cd72260618739a681087ef
[ "Unlicense" ]
1
2021-07-05T22:30:47.000Z
2021-07-05T22:30:47.000Z
video_capture/plotting.py
FrostyDesigner/Python_Scripts
ec9dcf1a8787e60e40cd72260618739a681087ef
[ "Unlicense" ]
8
2020-03-24T15:58:07.000Z
2022-03-11T23:26:05.000Z
video_capture/plotting.py
FrostyDesigner/Python_Scripts
ec9dcf1a8787e60e40cd72260618739a681087ef
[ "Unlicense" ]
null
null
null
from motion_capture import df from bokeh.plotting import figure, show, output_file from bokeh.models import HoverTool, ColumnDataSource #convert start and end columns to strings for easy reading df["Start_string"]=df["Start"].dt.strftime("%Y-%m-%d %H:%M:%S") df["End_string"]=df["End"].dt.strftime("%Y-%m-%d %H:%M:%S") ...
39.758621
97
0.738075
f156d7501e25676570361ba9f12e5b8dfa1c31af
3,344
py
Python
code_test.py
wanglikun1973/CrIS_VIIRS_collocation
080ae61be4db7b18ac2677fee45a276896cb9d74
[ "MIT" ]
1
2019-12-17T08:00:03.000Z
2019-12-17T08:00:03.000Z
code_test.py
wanglikun1973/CrIS_VIIRS_collocation
080ae61be4db7b18ac2677fee45a276896cb9d74
[ "MIT" ]
null
null
null
code_test.py
wanglikun1973/CrIS_VIIRS_collocation
080ae61be4db7b18ac2677fee45a276896cb9d74
[ "MIT" ]
1
2020-11-29T04:05:00.000Z
2020-11-29T04:05:00.000Z
import numpy as np import glob import geo import time import pdb start_time = time.time() dataDir='./data/' # get CrIS files cris_sdr_files = sorted(glob.glob(dataDir+'SCRIS*')) cris_geo_files = sorted(glob.glob(dataDir+'GCRSO*')) # get VIIRS files viirs_sdr_files = sorted(glob.glob(dataDir+'SVM15*')) viirs_geo_f...
32.784314
126
0.690789
f1578ea3e2ec0797d4e0fcb6b81d3654602b18e7
988
py
Python
examples/search/aggregate_hosts.py
FantasqueX/censys-python
7969206dd3e80cc5eac4df8fd2cb65440f387e37
[ "Apache-2.0" ]
1
2022-03-25T06:22:08.000Z
2022-03-25T06:22:08.000Z
examples/search/aggregate_hosts.py
FantasqueX/censys-python
7969206dd3e80cc5eac4df8fd2cb65440f387e37
[ "Apache-2.0" ]
null
null
null
examples/search/aggregate_hosts.py
FantasqueX/censys-python
7969206dd3e80cc5eac4df8fd2cb65440f387e37
[ "Apache-2.0" ]
null
null
null
"""Aggregate hosts data set.""" from censys.search import SearchClient c = SearchClient() # The aggregate method constructs a report using a query, an aggregation field, and the # number of buckets to bin. report = c.v2.hosts.aggregate( "service.service_name: HTTP", "services.port", num_buckets=5, ) print...
26.702703
87
0.61336
f157eff518045470000236a31762b2403070f16a
1,407
py
Python
riego/web/views/events.py
samibarasi/riego
5ec2b28a3ce3d62a8b7b683a2520d33ae6b569af
[ "MIT" ]
1
2021-08-17T20:23:49.000Z
2021-08-17T20:23:49.000Z
riego/web/views/events.py
samibarasi/riego
5ec2b28a3ce3d62a8b7b683a2520d33ae6b569af
[ "MIT" ]
null
null
null
riego/web/views/events.py
samibarasi/riego
5ec2b28a3ce3d62a8b7b683a2520d33ae6b569af
[ "MIT" ]
1
2021-05-12T13:18:27.000Z
2021-05-12T13:18:27.000Z
import aiohttp_jinja2 from aiohttp import web from riego.db import get_db from riego.web.security import raise_permission router = web.RouteTableDef()
31.266667
67
0.634684
f15869078cd0dd7a1fe8a9ab38ea4519aefe6a92
195
py
Python
pypcl/__init__.py
r9y9/pypcl
0528aacb8cfa1ceea2cbb3c7e3f20a1f066f23bf
[ "MIT" ]
null
null
null
pypcl/__init__.py
r9y9/pypcl
0528aacb8cfa1ceea2cbb3c7e3f20a1f066f23bf
[ "MIT" ]
null
null
null
pypcl/__init__.py
r9y9/pypcl
0528aacb8cfa1ceea2cbb3c7e3f20a1f066f23bf
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import division, print_function, absolute_import import pkg_resources __version__ = pkg_resources.get_distribution('pypcl').version from pypcl.common import *
19.5
64
0.815385
f15aa4f81b999bc2e7f42337f9bf0777f29a9ba6
2,754
py
Python
share/when-wizard/plugins/fileops-opendir.py
almostearthling/when-wizard
8323a6f71f54a36ac7d9e42489593b2fc80364f2
[ "BSD-3-Clause" ]
2
2016-03-28T22:17:53.000Z
2018-12-12T15:16:58.000Z
share/when-wizard/plugins/fileops-opendir.py
almostearthling/when-wizard
8323a6f71f54a36ac7d9e42489593b2fc80364f2
[ "BSD-3-Clause" ]
7
2016-02-20T16:09:39.000Z
2017-03-01T00:42:40.000Z
share/when-wizard/plugins/fileops-opendir.py
almostearthling/when-wizard
8323a6f71f54a36ac7d9e42489593b2fc80364f2
[ "BSD-3-Clause" ]
null
null
null
# file: share/when-wizard/modules/fileops-openfile.py # -*- coding: utf-8 -*- # # Task plugin to show a directory # Copyright (c) 2015-2018 Francesco Garosi # Released under the BSD License (see LICENSE file) import os import locale from plugin import TaskPlugin, PLUGIN_CONST, plugin_name from gi.repository import Gt...
30.6
82
0.63435
f15bd40bc91e997607bbaa33f696afb7ae9bfdcc
2,425
py
Python
view/gameBoard/HistoryView.py
achrafJhidri/LeCompteEstBon
06e1a3b3ca1ea9db2807e942ab8ab1bfe050ef90
[ "MIT" ]
null
null
null
view/gameBoard/HistoryView.py
achrafJhidri/LeCompteEstBon
06e1a3b3ca1ea9db2807e942ab8ab1bfe050ef90
[ "MIT" ]
null
null
null
view/gameBoard/HistoryView.py
achrafJhidri/LeCompteEstBon
06e1a3b3ca1ea9db2807e942ab8ab1bfe050ef90
[ "MIT" ]
null
null
null
import tkinter as tk import tkinter.font as tkFont
29.938272
106
0.562887
f15ec5f7359b60cd104f3106c21b81d6754b87d4
5,793
py
Python
etl/steps/data/garden/owid/latest/key_indicators/table_population.py
owid/etl
c859554268c65c4a1b04f8b58fe1a71747dbea3f
[ "MIT" ]
5
2021-11-01T18:54:52.000Z
2022-03-10T17:19:14.000Z
etl/steps/data/garden/owid/latest/key_indicators/table_population.py
owid/etl
c859554268c65c4a1b04f8b58fe1a71747dbea3f
[ "MIT" ]
98
2021-09-24T19:29:34.000Z
2022-03-31T15:57:18.000Z
etl/steps/data/garden/owid/latest/key_indicators/table_population.py
owid/etl
c859554268c65c4a1b04f8b58fe1a71747dbea3f
[ "MIT" ]
2
2021-12-15T07:53:38.000Z
2022-02-05T14:50:43.000Z
# # table_population.py # key_indicators # """ Adapted from Ed's importers script: https://github.com/owid/importers/blob/master/population/etl.py """ from pathlib import Path from typing import cast, List import pandas as pd from owid.catalog import Dataset, Table, Source from etl.paths import DATA_DIR from etl...
32.728814
438
0.645434
f15eff38cf6a3ed2d15feaee016deb1e1b69b324
35,492
py
Python
lcr/data_gathering/optimal_compression.py
pinarda/lcr
1054bd70aecd4f7400d9b9459e7cb6177ff468b7
[ "Apache-2.0" ]
null
null
null
lcr/data_gathering/optimal_compression.py
pinarda/lcr
1054bd70aecd4f7400d9b9459e7cb6177ff468b7
[ "Apache-2.0" ]
null
null
null
lcr/data_gathering/optimal_compression.py
pinarda/lcr
1054bd70aecd4f7400d9b9459e7cb6177ff468b7
[ "Apache-2.0" ]
null
null
null
""" Contains the code necessary to extract a list of optimal compression values from a csv file containing columns corresponding to {compression_type}_{level}, {variable}, {time}, and {DSSIM} It would be best to open the csv file once, and get a list of all variables, levels, and timesteps so I don't read the csv file...
39.21768
163
0.428378
f15f139fa9354be5d310a537e18612012d1f77d1
1,924
py
Python
qa327_test/frontend/test_logout_page.py
jacob-seiler/seetgeek
07affac0b06b8670911e348fc9d078bdf5242dc0
[ "MIT" ]
null
null
null
qa327_test/frontend/test_logout_page.py
jacob-seiler/seetgeek
07affac0b06b8670911e348fc9d078bdf5242dc0
[ "MIT" ]
null
null
null
qa327_test/frontend/test_logout_page.py
jacob-seiler/seetgeek
07affac0b06b8670911e348fc9d078bdf5242dc0
[ "MIT" ]
1
2021-01-02T19:44:53.000Z
2021-01-02T19:44:53.000Z
import pytest from seleniumbase import BaseCase from qa327_test.conftest import base_url from unittest.mock import patch from qa327.models import User from werkzeug.security import generate_password_hash, check_password_hash """ This file defines all unit tests for the logout page. The tests will only test the front...
32.066667
95
0.690229
f15f43daea5e4b5fe8d0b408d0ba74de358571e1
491
py
Python
beyondtheadmin/clients/migrations/0014_auto_20210825_0854.py
gfavre/invoice-manager
2a1db22edd51b461c090282c6fc1f290f3265379
[ "MIT" ]
1
2021-11-27T06:40:34.000Z
2021-11-27T06:40:34.000Z
beyondtheadmin/clients/migrations/0014_auto_20210825_0854.py
gfavre/invoice-manager
2a1db22edd51b461c090282c6fc1f290f3265379
[ "MIT" ]
2
2021-05-13T04:50:50.000Z
2022-02-28T21:06:24.000Z
beyondtheadmin/clients/migrations/0014_auto_20210825_0854.py
gfavre/invoice-manager
2a1db22edd51b461c090282c6fc1f290f3265379
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-08-25 06:54 from django.db import migrations import django_countries.fields
23.380952
130
0.645621
f15fa1621bf648bff3125bf87a871e48607871cf
475
py
Python
Section_6/Exercise_11.py
Szymon-Budziak/WDI_exercises_solutions
51ffc9ec8b3cd6809bd55e98ecb8aed759c2d460
[ "MIT" ]
null
null
null
Section_6/Exercise_11.py
Szymon-Budziak/WDI_exercises_solutions
51ffc9ec8b3cd6809bd55e98ecb8aed759c2d460
[ "MIT" ]
null
null
null
Section_6/Exercise_11.py
Szymon-Budziak/WDI_exercises_solutions
51ffc9ec8b3cd6809bd55e98ecb8aed759c2d460
[ "MIT" ]
1
2021-11-21T09:38:33.000Z
2021-11-21T09:38:33.000Z
""" Dana jest tablica T[N]. Prosz napisa program zliczajcy liczb enek o okrelonym iloczynie. """ T = [4, 6, 1, 7, 8, 3, 8, 9, 4, 21, 6, 12, 9, 6, 2] print(number_of_ns(T, 16, 3))
23.75
95
0.536842
f15fe7f3ec30388e1673de1ba753c2248eade0f8
225
py
Python
loggers.py
IanVzs/WindWhisper
742bc3e08d3edbd3ad9112c3149c0ad291b5e762
[ "MIT" ]
2
2020-11-18T11:01:24.000Z
2020-11-19T16:10:59.000Z
loggers.py
IanVzs/WindWhisper
742bc3e08d3edbd3ad9112c3149c0ad291b5e762
[ "MIT" ]
2
2020-09-10T06:20:28.000Z
2020-11-18T10:45:19.000Z
loggers.py
IanVzs/WindWhisper
742bc3e08d3edbd3ad9112c3149c0ad291b5e762
[ "MIT" ]
null
null
null
import logging import logging.config logging.config.fileConfig('logging.ini') # create wea logger weatherLog = logging.getLogger('weatherLog') debugLog = logging.getLogger('debugLog') scheLog = logging.getLogger('scheLog')
22.5
44
0.791111
f161ba512b2ca7dd31fe078838b6c241e56ebb1b
9,470
py
Python
examples/models/plot_horsager2009.py
aiwenxu/pulse2percept
700586e661a11ee4e108d70eebd56bd0ef4c01ee
[ "BSD-3-Clause" ]
null
null
null
examples/models/plot_horsager2009.py
aiwenxu/pulse2percept
700586e661a11ee4e108d70eebd56bd0ef4c01ee
[ "BSD-3-Clause" ]
null
null
null
examples/models/plot_horsager2009.py
aiwenxu/pulse2percept
700586e661a11ee4e108d70eebd56bd0ef4c01ee
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ =============================================================================== Horsager et al. (2009): Predicting temporal sensitivity =============================================================================== This example shows how to use the :py:class:`~pulse2percept.models.Horsager...
36.705426
79
0.613939
f1624fc7acc4aea1db82d1a5689c7c3fa486c42f
1,681
py
Python
essaie_snippet/test_find_planet.py
Vahen/millenium_falcon_challenge
1cc2493ae1f4a95b0bb7332bb877035a7070657d
[ "MIT" ]
null
null
null
essaie_snippet/test_find_planet.py
Vahen/millenium_falcon_challenge
1cc2493ae1f4a95b0bb7332bb877035a7070657d
[ "MIT" ]
null
null
null
essaie_snippet/test_find_planet.py
Vahen/millenium_falcon_challenge
1cc2493ae1f4a95b0bb7332bb877035a7070657d
[ "MIT" ]
null
null
null
##planets = [ ## { ## "planet": "Tatooine", ## "visited": False, ## "reachable": ["Dagobah", "Hoth"] ## }, ## { ## "planet": "Dagobah", ## "visited": False, ## "reachable": ["Hoth", "Endor"] ## }, ## { ## "planet": "Endor", ## "visited": False, ## ...
28.491525
94
0.568709
f16280252c9840cdee510267af09c4d7567873a5
261
py
Python
thehardway/exts/ext10.py
abos5/pythontutor
eba451700def8bd98d74668d1b6cc08c0ccc0d3c
[ "MIT" ]
null
null
null
thehardway/exts/ext10.py
abos5/pythontutor
eba451700def8bd98d74668d1b6cc08c0ccc0d3c
[ "MIT" ]
null
null
null
thehardway/exts/ext10.py
abos5/pythontutor
eba451700def8bd98d74668d1b6cc08c0ccc0d3c
[ "MIT" ]
null
null
null
tabby_cat = "\tI'm tabbed in" persian_cat = "I'm split\non a line." backslash_cat = "I'm \\ a \\ cat." fat_cat = """ I'll do a list: \t\t* Cat food. \t* Fishes. \t\t\t* Catnip\n\t* Grass """ print tabby_cat print persian_cat print backslash_cat print fat_cat
16.3125
37
0.666667
f1633f649d0f1c1a41f819eb66c27318389d52d9
3,591
py
Python
relational/populate-maria/populate-maria.py
eduardolfalcao/bigdata-unifacisa
a725fafd88c9508a717d7b0979dac9770dee6905
[ "Apache-2.0" ]
1
2020-11-02T18:44:46.000Z
2020-11-02T18:44:46.000Z
relational/populate-maria/populate-maria.py
eduardolfalcao/bigdata-unifacisa
a725fafd88c9508a717d7b0979dac9770dee6905
[ "Apache-2.0" ]
null
null
null
relational/populate-maria/populate-maria.py
eduardolfalcao/bigdata-unifacisa
a725fafd88c9508a717d7b0979dac9770dee6905
[ "Apache-2.0" ]
1
2021-09-15T01:42:35.000Z
2021-09-15T01:42:35.000Z
#!/usr/bin/python3 import mysql.connector from mysql.connector import Error from mysql.connector import errorcode from os import environ import json DB_HOST = environ.get('DB_HOST') DB_NAME = environ.get('DB_NAME') DB_USER = environ.get('DB_USER') DB_PASSWORD = environ.get('DB_PASSWORD') if DB_PASSWORD is not None: ...
37.40625
137
0.644946
f1637b2f1a04bcbe1902f64e15364798ff383c47
41
py
Python
extra/graph/company_tree.py
lsbardel/mathfun
98e7c210409c2b5777e91059c3651cef4f3045dd
[ "BSD-3-Clause" ]
null
null
null
extra/graph/company_tree.py
lsbardel/mathfun
98e7c210409c2b5777e91059c3651cef4f3045dd
[ "BSD-3-Clause" ]
null
null
null
extra/graph/company_tree.py
lsbardel/mathfun
98e7c210409c2b5777e91059c3651cef4f3045dd
[ "BSD-3-Clause" ]
null
null
null
from mathfun.graph.template import Graph
20.5
40
0.853659
f164576ac0bb7895918555451d19f329cfae39a3
32,175
py
Python
.circleci/build_recipes.py
gogetdata/ggd-recipes
32827f95d6a74484c04571c6f43fef49a7118193
[ "MIT" ]
87
2016-04-13T02:18:19.000Z
2022-01-25T16:24:31.000Z
.circleci/build_recipes.py
gogetdata/ggd-recipes
32827f95d6a74484c04571c6f43fef49a7118193
[ "MIT" ]
34
2016-04-21T19:46:33.000Z
2020-11-23T03:05:06.000Z
.circleci/build_recipes.py
gogetdata/ggd-recipes
32827f95d6a74484c04571c6f43fef49a7118193
[ "MIT" ]
18
2016-04-13T17:32:24.000Z
2021-04-14T01:30:39.000Z
from __future__ import print_function import argparse import glob import io import os import subprocess as sp import sys from collections import defaultdict from itertools import chain import networkx as nx import requests import yaml from conda_build import api # ----------------------------------------------------...
34.011628
193
0.595556
f1646ba658b1f55a41fe9c12275aaeab654ef2b5
19,470
py
Python
Illust.py
Armageddon-15/pixivpy
2a4d8c9ebdb28efeceabe87e6f9950cb20a83aed
[ "Unlicense" ]
null
null
null
Illust.py
Armageddon-15/pixivpy
2a4d8c9ebdb28efeceabe87e6f9950cb20a83aed
[ "Unlicense" ]
null
null
null
Illust.py
Armageddon-15/pixivpy
2a4d8c9ebdb28efeceabe87e6f9950cb20a83aed
[ "Unlicense" ]
null
null
null
from Parameters import * import pixivpy3 as pixiv import os import pickle import time import re import random import requests import shutil import datetime import imageio.v3 as iio import zipfile import queue import threading import math import numpy as np from typing import Union path_list = [illust_data_path, illus...
35.335753
170
0.54566
f165dc6651485b189667c7065cc6cc8aee155840
432
py
Python
ABC/abc101-abc150/abc117/c.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
2
2020-06-12T09:54:23.000Z
2021-05-04T01:34:07.000Z
ABC/abc101-abc150/abc117/c.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
961
2020-06-23T07:26:22.000Z
2022-03-31T21:34:52.000Z
ABC/abc101-abc150/abc117/c.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- if __name__ == '__main__': main()
19.636364
61
0.428241
f165eb4279e4cf8b1edf4411b446f09e25f38be4
781
py
Python
corehq/motech/dhis2/tests/test_tasks.py
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
471
2015-01-10T02:55:01.000Z
2022-03-29T18:07:18.000Z
corehq/motech/dhis2/tests/test_tasks.py
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
14,354
2015-01-01T07:38:23.000Z
2022-03-31T20:55:14.000Z
corehq/motech/dhis2/tests/test_tasks.py
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
175
2015-01-06T07:16:47.000Z
2022-03-29T13:27:01.000Z
from django.test import TestCase from corehq import toggles from corehq.motech.dhis2.tasks import send_datasets_for_all_domains
25.193548
74
0.659411
f166b83cb55b6c74eee0dd5f0a9ce8e64248745d
9,515
py
Python
AlphaGoZero/code/UI/UI.py
OoSnowfxm/AlphaZero_Othello
3e94ac29dbac413502eb85628a0f8eb6d402d5e9
[ "MIT" ]
null
null
null
AlphaGoZero/code/UI/UI.py
OoSnowfxm/AlphaZero_Othello
3e94ac29dbac413502eb85628a0f8eb6d402d5e9
[ "MIT" ]
null
null
null
AlphaGoZero/code/UI/UI.py
OoSnowfxm/AlphaZero_Othello
3e94ac29dbac413502eb85628a0f8eb6d402d5e9
[ "MIT" ]
null
null
null
''' @Author: fxm @Date: Dec 27, 2020. @Title: UI class. ''' import sys sys.path.append('..') import pygame import logging from pygame.locals import * import pygame.gfxdraw from collections import namedtuple from Framework.Net import dotdict from Othello.Board import Board log = logging.getLogger(__name__) ...
43.447489
122
0.521913
f167f8607d39b774461215b64dcc6b2455470234
1,317
py
Python
src/django_opt_out/plugins/sparkpost/views.py
fossabot/django-opt-out
82b2fda6d55974df19e620e9a55cac56688f74b2
[ "MIT" ]
null
null
null
src/django_opt_out/plugins/sparkpost/views.py
fossabot/django-opt-out
82b2fda6d55974df19e620e9a55cac56688f74b2
[ "MIT" ]
null
null
null
src/django_opt_out/plugins/sparkpost/views.py
fossabot/django-opt-out
82b2fda6d55974df19e620e9a55cac56688f74b2
[ "MIT" ]
null
null
null
# coding=utf-8 import json import logging from django.http import HttpResponse from django.utils.decorators import method_decorator from django.views import View from django.views.decorators.csrf import csrf_exempt from . import signals from ...signals import send_signal log = logging.getLogger(__name__)
35.594595
116
0.6735
f168a1d3f5afb927cad4184fcf58c64c1f1bd211
3,395
py
Python
hooks/relations/bind-rndc/requires.py
Boolman/designate
71fbb595a0a5030ca2e9cc6041484f11e0978918
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
hooks/relations/bind-rndc/requires.py
Boolman/designate
71fbb595a0a5030ca2e9cc6041484f11e0978918
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
hooks/relations/bind-rndc/requires.py
Boolman/designate
71fbb595a0a5030ca2e9cc6041484f11e0978918
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2016 Canonical Ltd # # 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 ...
31.728972
77
0.641532
f16971b36b3a751347c35eb371dce2fda69c3718
9,071
py
Python
mount_point_checker.py
light-bringer/mount-point-verifier
883a1391e3d79b25444efc4351aaa9dc9828c002
[ "MIT" ]
null
null
null
mount_point_checker.py
light-bringer/mount-point-verifier
883a1391e3d79b25444efc4351aaa9dc9828c002
[ "MIT" ]
null
null
null
mount_point_checker.py
light-bringer/mount-point-verifier
883a1391e3d79b25444efc4351aaa9dc9828c002
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ PROGRAM : mount_point_checker.py PyVersion : Python 2.7 This module takes multiple mount paths and compares them after backup The module has 2 modes : Backup (-b) and Verify (-v) Input Params : -m <mount_points> All the mount point data that need to be backed up, ...
35.996032
131
0.631904
f16a791d25b74cea013a19c66e01310b130ce613
6,678
py
Python
handlers/account.py
zhy0216-collection/Gather
4a42715b83ad8802514c4f8128fd0a30658ba359
[ "MIT" ]
null
null
null
handlers/account.py
zhy0216-collection/Gather
4a42715b83ad8802514c4f8128fd0a30658ba359
[ "MIT" ]
null
null
null
handlers/account.py
zhy0216-collection/Gather
4a42715b83ad8802514c4f8128fd0a30658ba359
[ "MIT" ]
null
null
null
# coding=utf-8 import time import hashlib import tornado.web import tornado.locale from bson.objectid import ObjectId from . import BaseHandler from .utils import username_validator, email_validator handlers = [ (r'/account/signup', SignupHandler), (r'/account/signin', SigninHandler), (r'/account...
37.516854
78
0.614555
f16a9f1e0a62e908912b60fb92e081e1677a4276
3,772
py
Python
main.py
sajidengg/tets
34287901dfb9222b109525f2198e73b561a1c55f
[ "MIT" ]
1
2019-09-12T02:19:50.000Z
2019-09-12T02:19:50.000Z
main.py
sajidengg/tets
34287901dfb9222b109525f2198e73b561a1c55f
[ "MIT" ]
1
2019-04-10T15:16:54.000Z
2019-04-10T15:17:28.000Z
main.py
sajidengg/tets
34287901dfb9222b109525f2198e73b561a1c55f
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- # main.py # Root file for EmotionDetection program. # Prints out command line menu and handles user choices from __future__ import print_function from EmotionDetection import WordMap from EmotionDetection import EvaluateText from EmotionDetection import GUI try: input = raw_input except N...
29.936508
101
0.574231
f16aa5a10900f590a1f636b716ba8b50fdc12bc3
1,816
py
Python
python/cmd/print_tables.py
yousero/scrape
bed9f2e1f0eb17915c6ec51cf6eb122d7c325969
[ "Unlicense" ]
null
null
null
python/cmd/print_tables.py
yousero/scrape
bed9f2e1f0eb17915c6ec51cf6eb122d7c325969
[ "Unlicense" ]
null
null
null
python/cmd/print_tables.py
yousero/scrape
bed9f2e1f0eb17915c6ec51cf6eb122d7c325969
[ "Unlicense" ]
null
null
null
import os if __name__ == '__main__': A = [ '123123123', '66669999', '0xffffff', 'VVVVVVVV', 'QWEQWEASDASD', ] B = [ 'OOOOOOOOOO', 'AAAAAAAAAA', 'AHAHAHAHAHA', ] C = [ 'XXXXXXXXXXXXXXXXXxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'WWWWWWWWW', ...
20.404494
88
0.573238
f16dd89025e2106f8191be212a0d810c79d31ba2
5,329
py
Python
uploader/database/database_utils.py
umed/xl2pgtable
124276d6a12d9f2a201956d5917b7ed4a6cce392
[ "MIT" ]
4
2019-09-13T08:55:17.000Z
2019-09-14T02:47:49.000Z
uploader/database/database_utils.py
umed/xl2pgtable
124276d6a12d9f2a201956d5917b7ed4a6cce392
[ "MIT" ]
29
2019-08-28T12:58:33.000Z
2020-04-06T22:12:09.000Z
uploader/database/database_utils.py
umed/xl2pgtable
124276d6a12d9f2a201956d5917b7ed4a6cce392
[ "MIT" ]
2
2019-09-13T08:55:25.000Z
2021-01-13T14:38:57.000Z
import datetime as dt from uploader.utils import NULL from typing import List __ESCAPE_SYMBOLS_MAPPING = {"'": r"''"} # def convert_datetime_to_str(value, dt_format: str) -> str: # if type(value) == str: # return value # else: # return value.strftime(dt_format) # def datetime_to_null...
32.493902
117
0.511728
f17253e50c3d29da6840924939fc8b996955e407
545
py
Python
main.py
upkodah/upkodah-service
8ec16a4d5e53ec8a50cb3808d4473f60c5b12507
[ "MIT" ]
null
null
null
main.py
upkodah/upkodah-service
8ec16a4d5e53ec8a50cb3808d4473f60c5b12507
[ "MIT" ]
5
2020-10-29T01:27:37.000Z
2020-11-26T09:10:12.000Z
main.py
upkodah/upkodah-service
8ec16a4d5e53ec8a50cb3808d4473f60c5b12507
[ "MIT" ]
null
null
null
import destination_search ''' test gpsX = 127.0816985 # - gpsY = 37.5642135 # - time = 20 1. , -> ID 2. ID -> 3. , ''' print("gps_x : ", end='') gps_x = input() print("gps_y : ", end='') gps_y = input() print("time : ", end='') time = int(input()) print('gps X : ', gps_x, 'gp...
20.185185
66
0.609174
f1731651396b2a238aba5379816eae3426c0050e
978
py
Python
src/predict-algae-species/core/dataloader.py
mahyar-osn/predict-algae-species
d3a710572f66203b3964f49cba7e836b7cc1ba6f
[ "MIT" ]
null
null
null
src/predict-algae-species/core/dataloader.py
mahyar-osn/predict-algae-species
d3a710572f66203b3964f49cba7e836b7cc1ba6f
[ "MIT" ]
null
null
null
src/predict-algae-species/core/dataloader.py
mahyar-osn/predict-algae-species
d3a710572f66203b3964f49cba7e836b7cc1ba6f
[ "MIT" ]
null
null
null
from torch.utils.data import Dataset import cv2
33.724138
88
0.668712
f173bcf75f906c9b2bdcda49a6bb523a1689592f
54,956
py
Python
hdl21/elab.py
dan-fritchman/Hdl21
adb7787b137f2bea720e576a3027314a1dcd0947
[ "BSD-3-Clause" ]
1
2022-02-19T18:48:45.000Z
2022-02-19T18:48:45.000Z
hdl21/elab.py
dan-fritchman/Hdl21
adb7787b137f2bea720e576a3027314a1dcd0947
[ "BSD-3-Clause" ]
13
2021-07-21T17:48:49.000Z
2022-01-31T23:12:08.000Z
hdl21/elab.py
dan-fritchman/Hdl21
adb7787b137f2bea720e576a3027314a1dcd0947
[ "BSD-3-Clause" ]
null
null
null
""" # hdl21 Elaboration Defines the primary `elaborate` method used to flesh out an in-memory `Module` or `Generator`. Internally defines and uses a number of hierarchical visitor-classes which traverse the hardware hierarchy, performing one or more transformation-passes. """ # Std-Lib Imports import copy from e...
43.306541
160
0.620296
f174b37eebb631204fc40f7007742e5afac7c6b6
10,002
py
Python
odoo-13.0/addons/account/wizard/account_accrual_accounting.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/addons/account/wizard/account_accrual_accounting.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/addons/account/wizard/account_accrual_accounting.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from odoo import api, fields, models, _ from odoo.exceptions import UserError from odoo.tools.misc import format_date
52.09375
301
0.573685
f176084fe3aa291d27de5d013bb0095782edacd7
2,819
py
Python
test.py
minizon/Mask_RCNN_KP
56df6a1b9711d53d87924ac9da4e7eedc46b4be3
[ "MIT" ]
1
2019-07-09T04:26:16.000Z
2019-07-09T04:26:16.000Z
test.py
minizon/Mask_RCNN_KP
56df6a1b9711d53d87924ac9da4e7eedc46b4be3
[ "MIT" ]
null
null
null
test.py
minizon/Mask_RCNN_KP
56df6a1b9711d53d87924ac9da4e7eedc46b4be3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Mar 11 21:22:59 2018 @author: pami4 """ #CUDA_VISIBLE_DEVICES=0 python from pycocotools.coco import COCO import coco import numpy as np from matplotlib import pyplot as plt import visualize import custom_utils config = coco.CocoConfig() config.GPU_CO...
32.77907
216
0.761618
f1782944c639b14d71ac08800edccf0760178af8
186
py
Python
src/x_mlps/_version.py
PyriteAI/x-mlps
fcbba196384f16b742fccb8e82bd2adc467b1ef2
[ "MIT" ]
4
2021-12-29T03:04:58.000Z
2022-01-13T13:07:43.000Z
src/x_mlps/_version.py
PyriteAI/x-mlps
fcbba196384f16b742fccb8e82bd2adc467b1ef2
[ "MIT" ]
1
2022-01-24T00:06:46.000Z
2022-01-24T00:06:46.000Z
src/x_mlps/_version.py
PyriteAI/x-mlps
fcbba196384f16b742fccb8e82bd2adc467b1ef2
[ "MIT" ]
1
2022-02-24T10:17:17.000Z
2022-02-24T10:17:17.000Z
from importlib.metadata import PackageNotFoundError, version try: __version__ = version("x_mlps") except PackageNotFoundError: # package is not installed __version__ = None
23.25
60
0.768817
f1797974af0b1c517090e44934a9250630e99a4d
324
py
Python
company/signals/handlers.py
OnGridSystems/RobotVeraWebApp
01cee658a3983fcaf128b40bb99c1a4272e90c07
[ "MIT" ]
11
2018-06-13T10:10:11.000Z
2021-06-05T08:23:43.000Z
company/signals/handlers.py
OnGridSystems/RobotVeraWebApp
01cee658a3983fcaf128b40bb99c1a4272e90c07
[ "MIT" ]
5
2020-06-05T18:24:25.000Z
2022-03-11T23:21:01.000Z
company/signals/handlers.py
OnGridSystems/RobotVeraWebApp
01cee658a3983fcaf128b40bb99c1a4272e90c07
[ "MIT" ]
5
2018-08-17T16:09:33.000Z
2021-06-06T05:32:10.000Z
from django.db.models.signals import post_save from django.dispatch import receiver from company.models import Company from company.tasks import deploy_new_company
27
57
0.799383
f17d5629104c63897a4fbfefaa73edad287f30c6
2,361
py
Python
libs/gen_shop.py
a1ex4/ownfoil
fed98a393b83e10509dda7a397c6ab4d8feb0960
[ "BSD-3-Clause" ]
7
2021-06-15T21:17:25.000Z
2022-03-21T15:02:29.000Z
libs/gen_shop.py
a1ex4/ownfoil
fed98a393b83e10509dda7a397c6ab4d8feb0960
[ "BSD-3-Clause" ]
1
2021-08-30T00:57:11.000Z
2021-10-19T00:21:10.000Z
libs/gen_shop.py
a1ex4/ownfoil
fed98a393b83e10509dda7a397c6ab4d8feb0960
[ "BSD-3-Clause" ]
2
2021-09-08T02:29:48.000Z
2021-11-15T10:44:42.000Z
# Usage: # python gen_shop.py <directory to scan> # Generate a 'shop.tfl' Tinfoil index file # as well as 'shop.json', same content but viewable in the browser import os, json, sys, time from consts import * from jsonc_parser.parser import JsoncParser import logging logging.basicConfig(format='%(asctime)s | %(levelna...
31.065789
124
0.611605
f180164738e1dc06d26dc68102e4eeb08427357b
2,944
py
Python
tech_project/lib/python2.7/site-packages/aldryn_common/timesince.py
priyamshah112/Project-Descripton-Blog
8e01016c6be79776c4f5ca75563fa3daa839e39e
[ "MIT" ]
2
2015-03-11T09:58:13.000Z
2016-08-05T20:18:37.000Z
tech_project/lib/python2.7/site-packages/aldryn_common/timesince.py
priyamshah112/Project-Descripton-Blog
8e01016c6be79776c4f5ca75563fa3daa839e39e
[ "MIT" ]
27
2015-03-23T16:09:02.000Z
2018-12-18T14:22:20.000Z
tech_project/lib/python2.7/site-packages/aldryn_common/timesince.py
priyamshah112/Project-Descripton-Blog
8e01016c6be79776c4f5ca75563fa3daa839e39e
[ "MIT" ]
8
2015-03-23T16:14:22.000Z
2017-02-21T21:07:01.000Z
import datetime from django.utils.timezone import is_aware, utc from django.utils.translation import ugettext, ungettext def timesince_data(d, now=None, reverse=False): """ Takes two datetime objects and returns the time between d and now as a list of components, ordered by size. e.g. [{'number': 2, ...
34.232558
83
0.619565
f180dff549149975d4c7a023ee54b8511da7791a
107,339
py
Python
ratemap_lib.py
bartulem/KISN-pancortical-kinematics
a849a71a59143e432f5dc048cd0d700373082933
[ "MIT" ]
2
2022-02-11T00:45:46.000Z
2022-03-16T15:00:50.000Z
ratemap_lib.py
bartulem/KISN-pancortical-kinematics
a849a71a59143e432f5dc048cd0d700373082933
[ "MIT" ]
null
null
null
ratemap_lib.py
bartulem/KISN-pancortical-kinematics
a849a71a59143e432f5dc048cd0d700373082933
[ "MIT" ]
1
2022-03-08T07:12:59.000Z
2022-03-08T07:12:59.000Z
""" Calculates ratemaps. @author: Benjamin Adric Dunn @modified: JingyiGF """ import matplotlib from scipy import * import scipy.linalg as linalg import scipy.ndimage.filters import scipy.io import numpy as np import math import copy as copycopy import pickle from scipy.optimize import minimize import matplotlib.pypl...
51.432199
198
0.531866
f18149106761c94bdd9c0ff1355357b1477e815c
1,789
py
Python
tests/test1.py
BykovDmitrii/rubymine-is2018
b25940118c767b5354a9e76e4807928fe9c9abe7
[ "Apache-2.0" ]
1
2019-02-14T05:13:46.000Z
2019-02-14T05:13:46.000Z
tests/test1.py
BykovDmitrii/rubymine-is2018
b25940118c767b5354a9e76e4807928fe9c9abe7
[ "Apache-2.0" ]
null
null
null
tests/test1.py
BykovDmitrii/rubymine-is2018
b25940118c767b5354a9e76e4807928fe9c9abe7
[ "Apache-2.0" ]
null
null
null
if True: pass if 0: pass if 1: pass if (1==1) : pass if 1 == 2 + - 1 : pass if 456 == 244: pass if 1 == 0 - 5 + 6 - 1: pass if 2 + 2 == 5: pass if 23313 + 31313 == 0: pass if 2 + 2 == 3 + 1 * 0 + 1 : pass if 1 == 1: pass if - 1== 2-3 : pass if (2 + 2) + 2 == 7: ...
21.297619
131
0.416434
f18222bb866f8803a0299c939e4f88ed09f1badc
3,262
py
Python
src/samples/lists02.py
comcy/python-basics
3cfde058bc74c0016c24854e8e009cd4564d693c
[ "MIT" ]
null
null
null
src/samples/lists02.py
comcy/python-basics
3cfde058bc74c0016c24854e8e009cd4564d693c
[ "MIT" ]
null
null
null
src/samples/lists02.py
comcy/python-basics
3cfde058bc74c0016c24854e8e009cd4564d693c
[ "MIT" ]
null
null
null
# lists02.py # test_list_01() # test_list_02() # test_list_03() # test_list_04() # test_list_05() test_list_06()
19.532934
83
0.506131
f182c6983830d035507955727121b80132d7f104
307
py
Python
cocutils/pathutils.py
zhs007/cocutils
ca8fa1e21570793dfd732143cfc577accfa3a8da
[ "Apache-2.0" ]
null
null
null
cocutils/pathutils.py
zhs007/cocutils
ca8fa1e21570793dfd732143cfc577accfa3a8da
[ "Apache-2.0" ]
null
null
null
cocutils/pathutils.py
zhs007/cocutils
ca8fa1e21570793dfd732143cfc577accfa3a8da
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- from sc import SupercellSWF import os
25.583333
62
0.583062
f1853efb3d6e89cce0865bf2ee1ca56c64894ddc
141
py
Python
Chapter_8/regexFileSearch.py
TravisLeeWolf/ATBS
9075eabaa0a788f58435eff9e0df488806a0770b
[ "Apache-2.0" ]
null
null
null
Chapter_8/regexFileSearch.py
TravisLeeWolf/ATBS
9075eabaa0a788f58435eff9e0df488806a0770b
[ "Apache-2.0" ]
null
null
null
Chapter_8/regexFileSearch.py
TravisLeeWolf/ATBS
9075eabaa0a788f58435eff9e0df488806a0770b
[ "Apache-2.0" ]
null
null
null
#! python3 # regexFileSearch.py - Opens all .txt files in a folder and searches for any matching line # The results are printed to the screen
47
90
0.77305
f1874ca2b1ef65b9e26573b3fff6e3b3e2f3eeda
1,901
py
Python
madgraph_plugin/__init__.py
simonthor/madflow
cc4ee123d1d6cea7295a8f4be774eff87ea727cf
[ "Apache-2.0" ]
6
2021-06-22T06:49:48.000Z
2021-06-24T02:38:37.000Z
madgraph_plugin/__init__.py
simonthor/madflow
cc4ee123d1d6cea7295a8f4be774eff87ea727cf
[ "Apache-2.0" ]
13
2021-06-14T13:27:03.000Z
2022-03-28T09:53:46.000Z
madgraph_plugin/__init__.py
simonthor/madflow
cc4ee123d1d6cea7295a8f4be774eff87ea727cf
[ "Apache-2.0" ]
1
2022-02-15T19:27:36.000Z
2022-02-15T19:27:36.000Z
##################################################### # # # Source file of the MadFlow plugin # # Use only with consent of its authors. # # # # authors: S.Carrazza, J.Cruz-Martinez, ...
38.02
85
0.566544
f18932fda35ad5e4905d90baae28a6ebce82f86c
7,870
py
Python
dubdub/interpreter.py
RLToolsWorkshop/tunnel-arrow
f4e8575ed3a7a796cc6c3178165ebb2dd63f35aa
[ "Apache-2.0" ]
null
null
null
dubdub/interpreter.py
RLToolsWorkshop/tunnel-arrow
f4e8575ed3a7a796cc6c3178165ebb2dd63f35aa
[ "Apache-2.0" ]
null
null
null
dubdub/interpreter.py
RLToolsWorkshop/tunnel-arrow
f4e8575ed3a7a796cc6c3178165ebb2dd63f35aa
[ "Apache-2.0" ]
2
2021-07-10T11:35:45.000Z
2021-07-14T21:34:10.000Z
import abc import time from datetime import datetime from pathlib import Path from typing import Any, Dict, List, Optional, cast from loguru import logger from rich import print from dubdub import ( Binary, Grouping, Literal, Node, Token, TokenType, Unary, Visitor, dataclass, ) fro...
30.3861
115
0.620839
f189cebe2f26722af23468e59d891613ab08abdc
365
py
Python
tests/data/expected/main/multiple_files_self_ref_single/output.py
adaamz/datamodel-code-generator
3b34573f35f8d420e4668a85047c757fd1da7754
[ "MIT" ]
891
2019-07-23T04:23:32.000Z
2022-03-31T13:36:33.000Z
tests/data/expected/main/multiple_files_self_ref_single/output.py
adaamz/datamodel-code-generator
3b34573f35f8d420e4668a85047c757fd1da7754
[ "MIT" ]
663
2019-07-23T09:50:26.000Z
2022-03-29T01:56:55.000Z
tests/data/expected/main/multiple_files_self_ref_single/output.py
adaamz/datamodel-code-generator
3b34573f35f8d420e4668a85047c757fd1da7754
[ "MIT" ]
108
2019-07-23T08:50:37.000Z
2022-03-09T10:50:22.000Z
# generated by datamodel-codegen: # filename: test.json # timestamp: 2019-07-26T00:00:00+00:00 from __future__ import annotations from pydantic import BaseModel, Field
17.380952
52
0.715068
f18b122ebd25754c938b423e7a0ac2fc831ba94c
1,968
py
Python
mz_alerts/pagerduty-client/pd_client.py
dunithd/edu-samples
c00c44e5e72bedc5cc343a6895eb5307a2476bc1
[ "Apache-2.0" ]
9
2021-03-25T00:43:14.000Z
2022-03-22T21:59:28.000Z
mz_alerts/pagerduty-client/pd_client.py
dunithd/edu-samples
c00c44e5e72bedc5cc343a6895eb5307a2476bc1
[ "Apache-2.0" ]
null
null
null
mz_alerts/pagerduty-client/pd_client.py
dunithd/edu-samples
c00c44e5e72bedc5cc343a6895eb5307a2476bc1
[ "Apache-2.0" ]
8
2021-05-01T02:45:36.000Z
2022-03-24T14:32:34.000Z
from pdpyras import APISession from requests.sessions import session from kafka import KafkaConsumer import json import sys print("Starting the alerts listener") # Kafka configurations kafka_broker = 'kafka:9092' alerts_topic = "high-temp-alerts-u5-1631586083-13100517045407420899" # PageDuty configurations api_token...
28.941176
155
0.685467