hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
3b8068efc0f900211a91c373f17a6e5f967edb31
2,210
py
Python
jobs/models.py
Qlwentt/qually
550efa326532d6fbb154f9d244905e957f30f3ea
[ "MIT" ]
1
2017-06-20T23:18:15.000Z
2017-06-20T23:18:15.000Z
jobs/models.py
Qlwentt/qually
550efa326532d6fbb154f9d244905e957f30f3ea
[ "MIT" ]
8
2017-02-05T05:51:48.000Z
2017-08-27T15:44:05.000Z
jobs/models.py
Qlwentt/qually
550efa326532d6fbb154f9d244905e957f30f3ea
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.db import models from django.contrib.auth.models import User from django.db.models.signals import post_save from django.dispatch import receiver import uuid # Create your models here. class Keyword(models.Model): name = models.CharField(max_length=255) category ...
30.273973
79
0.762443
1b32cd00cd9ea96807bc71b44d71ea25fb6dd75c
2,856
py
Python
projects/cats/tests/abstraction_check.py
suvix/cs61a-fa19
53a0ecf29d13fc13113894255b6422eba0f82832
[ "MIT" ]
null
null
null
projects/cats/tests/abstraction_check.py
suvix/cs61a-fa19
53a0ecf29d13fc13113894255b6422eba0f82832
[ "MIT" ]
null
null
null
projects/cats/tests/abstraction_check.py
suvix/cs61a-fa19
53a0ecf29d13fc13113894255b6422eba0f82832
[ "MIT" ]
null
null
null
"""Infrastructure for detecting abstraction barrier violations.""" class AbstractionViolation(Exception): pass def datatype(obj): return type(obj).__name__ # Generic abstract data type class Abstract: def __add__(self, other): raise AbstractionViolation("Can't add {} object to {}".format(datatype...
36.151899
116
0.681373
c47a4c8095a3955c4c76893762d1fcea4a571378
130
py
Python
FaceSwap-master/pytorch_stylegan_encoder/InterFaceGAN/models/stylegan_tf_official/training/training_loop.py
CSID-DGU/-2020-1-OSSP1-ninetynine-2
b1824254882eeea0ee44e4e60896b72c51ef1d2c
[ "MIT" ]
1
2020-06-21T13:45:26.000Z
2020-06-21T13:45:26.000Z
FaceSwap-master/pytorch_stylegan_encoder/InterFaceGAN/models/stylegan_tf_official/training/training_loop.py
CSID-DGU/-2020-1-OSSP1-ninetynine-2
b1824254882eeea0ee44e4e60896b72c51ef1d2c
[ "MIT" ]
null
null
null
FaceSwap-master/pytorch_stylegan_encoder/InterFaceGAN/models/stylegan_tf_official/training/training_loop.py
CSID-DGU/-2020-1-OSSP1-ninetynine-2
b1824254882eeea0ee44e4e60896b72c51ef1d2c
[ "MIT" ]
3
2020-09-02T03:18:45.000Z
2021-01-27T08:24:05.000Z
version https://git-lfs.github.com/spec/v1 oid sha256:4d3b31063f0346a76cd3b26d891549ec589c4b0651904fce336e2c7131960cb9 size 15522
32.5
75
0.884615
f08ca577199b5b75ab8087cc511e2b0a602d3808
1,316
py
Python
tests/util/test_streamable.py
nondejus/chia-blockchain
67373400e7f88adff0c86e3bae2ddeadb49429ae
[ "Apache-2.0" ]
null
null
null
tests/util/test_streamable.py
nondejus/chia-blockchain
67373400e7f88adff0c86e3bae2ddeadb49429ae
[ "Apache-2.0" ]
null
null
null
tests/util/test_streamable.py
nondejus/chia-blockchain
67373400e7f88adff0c86e3bae2ddeadb49429ae
[ "Apache-2.0" ]
null
null
null
import unittest from dataclasses import dataclass from typing import List, Optional from src.util.ints import uint32 from src.util.streamable import Streamable, streamable class TestStreamable(unittest.TestCase): def test_basic(self): @dataclass(frozen=True) @streamable class TestClass(St...
23.5
89
0.549392
8c5d1dfa43232513f54a92596fc7f5cd93e3f237
69
py
Python
TextOnScreen/__init__.py
RonNofar/TextOnScreen
8101882cd43c264b8500a6dadf516ac7ea455a52
[ "MIT" ]
null
null
null
TextOnScreen/__init__.py
RonNofar/TextOnScreen
8101882cd43c264b8500a6dadf516ac7ea455a52
[ "MIT" ]
null
null
null
TextOnScreen/__init__.py
RonNofar/TextOnScreen
8101882cd43c264b8500a6dadf516ac7ea455a52
[ "MIT" ]
null
null
null
''' __init__.py ''' from TextOnScreen import tos __all__ = ["tos"]
8.625
28
0.652174
b9f4520c5ef94e8bdab68ce736bcf9b3971b145f
2,374
py
Python
eq_max.py
ArsalanSahab/EA_Equ_Max_Python
74840127c9fc525c5f5e72a18ab17422027aba3f
[ "MIT" ]
null
null
null
eq_max.py
ArsalanSahab/EA_Equ_Max_Python
74840127c9fc525c5f5e72a18ab17422027aba3f
[ "MIT" ]
null
null
null
eq_max.py
ArsalanSahab/EA_Equ_Max_Python
74840127c9fc525c5f5e72a18ab17422027aba3f
[ "MIT" ]
null
null
null
####### IMPORTS ######## import random import genetic_algorithm as ga ''' Problem : Maxmise Output of given equation Given Equation : x^2 + y^2 Techniques : Evolutionary Algortihm > Genetic Algorithm Sub-Techniques Required : 1. Parent Selection > Binary Tournament 2. Crossover 3. Mutation 4. S...
18.261538
86
0.598989
af7a9561369062f4bc3b3cc7feed9860838ab850
3,481
py
Python
bindings/python/ensmallen/datasets/string/marinobactersalarius.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/string/marinobactersalarius.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/marinobactersalarius.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Marinobacter salarius. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: protein--protein ...
33.152381
223
0.678541
82e8bb9aa03890801807fed0468aea44423aa72e
148
py
Python
server/src/tests/samples/import8.py
jhutchings1/pyright
2b8593a58a2aecc95dac49cce92fc16678cd4e14
[ "MIT" ]
1
2020-12-28T16:58:24.000Z
2020-12-28T16:58:24.000Z
server/src/tests/samples/import8.py
jhutchings1/pyright
2b8593a58a2aecc95dac49cce92fc16678cd4e14
[ "MIT" ]
3
2022-03-03T03:03:24.000Z
2022-03-25T14:43:54.000Z
server/src/tests/samples/import8.py
jhutchings1/pyright
2b8593a58a2aecc95dac49cce92fc16678cd4e14
[ "MIT" ]
null
null
null
# This sample is imported by import9.py. # Implement __getattr__ function as described in PEP 562. def __getattr__(name: str): return None
14.8
57
0.736486
237d9c1214d079a549f7def5d35cb43b3a7f2735
372
py
Python
Mycroft/mircetete-indication-skill/__init__.py
wyutong1997/SmartMedicineDispenser
5033b355f4a1fec688a1bd5dd6987611afb8feaa
[ "MIT" ]
5
2020-03-22T22:49:24.000Z
2020-04-08T14:56:23.000Z
Mycroft/mircetete-indication-skill/__init__.py
mcboyd-bu/EC544-Smart-Pill-Dispenser
f1267c5ba2b11c6e0c61ccf3d050dc63cff48091
[ "MIT" ]
1
2021-09-12T21:01:09.000Z
2021-09-12T21:01:09.000Z
Mycroft/mircetete-indication-skill/__init__.py
wyutong1997/SmartMedicineDispenser
5033b355f4a1fec688a1bd5dd6987611afb8feaa
[ "MIT" ]
2
2020-03-28T16:30:23.000Z
2020-04-14T00:03:46.000Z
from mycroft import MycroftSkill, intent_file_handler class MirceteteIndication(MycroftSkill): def __init__(self): MycroftSkill.__init__(self) @intent_file_handler('indication.mircetete.intent') def handle_indication_mircetete(self, message): self.speak_dialog('indication.mircetete') de...
23.25
55
0.760753
3d6c45137feab53cec3191a63356f10877e1dead
169,383
py
Python
languages/prs.py
PeterDaveHello/eden
26174a9dde2f19cd3bc879694f373ad5f765b6ed
[ "MIT" ]
1
2015-01-24T04:31:51.000Z
2015-01-24T04:31:51.000Z
languages/prs.py
PeterDaveHello/eden
26174a9dde2f19cd3bc879694f373ad5f765b6ed
[ "MIT" ]
null
null
null
languages/prs.py
PeterDaveHello/eden
26174a9dde2f19cd3bc879694f373ad5f765b6ed
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- { '# of International Staff': 'کارمندان بین المللی #', '# of National Staff': 'کارمندان ملی #', '# selected': 'انتخاب شده #', '%(app)s not installed. Ask the Server Administrator to install on Server.': '.نصب نشدند. از مدیر سرور تقاضا نمایید تا در سرور نصب کند %(app)s', '%(count)s Roles of the u...
54.745637
476
0.72306
edb3cf751f23883884e3733ae932ea502cffb989
7,523
py
Python
vel/api/model_config.py
cclauss/vel
78a6a20af80ff613898d2983c83fdb223634aaad
[ "MIT" ]
null
null
null
vel/api/model_config.py
cclauss/vel
78a6a20af80ff613898d2983c83fdb223634aaad
[ "MIT" ]
null
null
null
vel/api/model_config.py
cclauss/vel
78a6a20af80ff613898d2983c83fdb223634aaad
[ "MIT" ]
null
null
null
import datetime as dtm import os.path import torch from vel.exceptions import VelInitializationException from vel.internals.parser import Parser from vel.internals.provider import Provider class ModelConfig: """ Read from YAML configuration of a model, specifying all details of the run. Is a frontend for...
40.229947
137
0.569852
ebd53a3d950587dff683ef17de0e89d30c337498
4,115
py
Python
configs/wider_face/ttfnet_d53_face.py
ellery92/mmdetection
5b1dfa2c97aac50458feb18ac3da11a68866f63c
[ "Apache-2.0" ]
null
null
null
configs/wider_face/ttfnet_d53_face.py
ellery92/mmdetection
5b1dfa2c97aac50458feb18ac3da11a68866f63c
[ "Apache-2.0" ]
null
null
null
configs/wider_face/ttfnet_d53_face.py
ellery92/mmdetection
5b1dfa2c97aac50458feb18ac3da11a68866f63c
[ "Apache-2.0" ]
null
null
null
# model settings input_size = 512 model = dict( type='TTFNet', pretrained='./pretrain/darknet53.pth', backbone=dict( type='DarknetV3', layers=[1, 2, 8, 8, 4], inplanes=[3, 32, 64, 128, 256, 512], planes=[32, 64, 128, 256, 512, 1024], norm_cfg=dict(type='BN'), ...
29.818841
77
0.622114
5921c493b179a141674fe44fdde02451be85e99c
7,059
py
Python
intersight/models/iam_resource_permission_all_of.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
21
2018-03-29T14:20:35.000Z
2021-10-13T05:11:41.000Z
intersight/models/iam_resource_permission_all_of.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
14
2018-01-30T15:45:46.000Z
2022-02-23T14:23:21.000Z
intersight/models/iam_resource_permission_all_of.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
18
2018-01-03T15:09:56.000Z
2021-07-16T02:21:54.000Z
# coding: utf-8 """ Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environmen...
34.773399
1,052
0.638617
a912b9dce62a105914574cfb241027366b1a6341
4,128
py
Python
examples/display_text_background_color_padding.py
lesamouraipourpre/Adafruit_CircuitPython_Display_Text
c31c0ef2da48bfed7da2188039b59251f02110ea
[ "Unlicense", "MIT-0", "MIT" ]
37
2019-01-11T16:31:15.000Z
2021-11-09T10:43:38.000Z
examples/display_text_background_color_padding.py
tekktrik/Adafruit_CircuitPython_Display_Text
f60a4095da77710c0b81d66ada148d09ad25dbd4
[ "MIT" ]
123
2019-01-15T21:49:49.000Z
2022-03-13T00:16:52.000Z
examples/display_text_background_color_padding.py
tekktrik/Adafruit_CircuitPython_Display_Text
f60a4095da77710c0b81d66ada148d09ad25dbd4
[ "MIT" ]
41
2019-02-12T01:54:41.000Z
2022-03-12T22:34:31.000Z
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT """ This example shows the use color and background_color """ import time import board import displayio from adafruit_bitmap_font import bitmap_font from adafruit_display_text import label # Setup the SPI display if "DISP...
29.276596
102
0.679506
9ded438115563294e79cbac2450a0b153011e746
387
py
Python
client_side/enums.py
botexpert/Chatter
8cd3262e38c58eae0fcbc49b3973f883a3185a48
[ "MIT" ]
null
null
null
client_side/enums.py
botexpert/Chatter
8cd3262e38c58eae0fcbc49b3973f883a3185a48
[ "MIT" ]
null
null
null
client_side/enums.py
botexpert/Chatter
8cd3262e38c58eae0fcbc49b3973f883a3185a48
[ "MIT" ]
2
2019-07-18T08:35:23.000Z
2019-07-18T09:24:00.000Z
import os class Intervals: POLL_REFRESH_INTERVAL = 1 # Receiving message check frequency HEARTBEAT_INTERVAL = 30 # Sent heartbeat frequency LOGIN_POLL_INTERVAL = 5000 # Wait time at login request class Host: LOGIN_PORT = os.getenv('HOST', '5557') # Login server port PORT = os.getenv('HOST', '55...
27.642857
65
0.70801
089dd16719afbe9729c1ada777b1780015f91177
21,032
py
Python
python/ray/tests/test_advanced_3.py
bynoud/ray
8204717eed71923f1e14fa6bd17ca4588c140c09
[ "Apache-2.0" ]
1
2020-09-10T06:33:46.000Z
2020-09-10T06:33:46.000Z
python/ray/tests/test_advanced_3.py
Nada-Bu/ray
bfa06052828f83ab790e6b6bbfa5b56edb42b45e
[ "Apache-2.0" ]
null
null
null
python/ray/tests/test_advanced_3.py
Nada-Bu/ray
bfa06052828f83ab790e6b6bbfa5b56edb42b45e
[ "Apache-2.0" ]
1
2021-02-02T02:24:12.000Z
2021-02-02T02:24:12.000Z
# coding: utf-8 import glob import logging import os import shutil import json import sys import socket import tempfile import time import numpy as np import pickle import pytest import ray import ray.ray_constants as ray_constants import ray.cluster_utils import ray.test_utils import setproctitle from ray.test_util...
29.960114
79
0.651483
9d104b86ccc0993346d20247efc7184542499b75
6,480
py
Python
train.py
Abastro/PointGroup
4949b81c423cb2c93755621c79ce3bc7f9b0a92a
[ "Apache-2.0" ]
null
null
null
train.py
Abastro/PointGroup
4949b81c423cb2c93755621c79ce3bc7f9b0a92a
[ "Apache-2.0" ]
null
null
null
train.py
Abastro/PointGroup
4949b81c423cb2c93755621c79ce3bc7f9b0a92a
[ "Apache-2.0" ]
null
null
null
''' PointGroup train.py Written by Li Jiang ''' import torch import torch.optim as optim import time, sys, os, random from tensorboardX import SummaryWriter import numpy as np from util.config import cfg from util.log import logger import util.utils as utils def init(): # copy important files to backup backu...
34.83871
174
0.610802
69329637575842a17e8218497b44874986876049
6,756
py
Python
src/visualization/single_participant/visualize_default.py
oesst/HRTF_Model
c60b5e91c6c181a9df6655eabb82183ca8f4d503
[ "MIT" ]
null
null
null
src/visualization/single_participant/visualize_default.py
oesst/HRTF_Model
c60b5e91c6c181a9df6655eabb82183ca8f4d503
[ "MIT" ]
4
2021-06-02T04:10:35.000Z
2022-03-12T00:55:01.000Z
src/visualization/single_participant/visualize_default.py
oesst/HRTF_Model
c60b5e91c6c181a9df6655eabb82183ca8f4d503
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import src.features.helpers_vis as hp_vis import src.features.helpers as hp import logging import pickle from pathlib import Path import numpy as np import click hp_vis.set_layout(15) ROOT = Path(__file__).resolve().parents[3] SOUND_FILES = ROOT / 'data/raw/sound_samples/' # create ...
48.956522
309
0.647128
6525105406048485797da8d096dca4b8ecb45181
6,420
py
Python
homeassistant/components/uvc/camera.py
VirtualL/home-assistant
301829d02be8d865ab46c8901ac046d060849320
[ "Apache-2.0" ]
null
null
null
homeassistant/components/uvc/camera.py
VirtualL/home-assistant
301829d02be8d865ab46c8901ac046d060849320
[ "Apache-2.0" ]
3
2021-09-08T03:34:57.000Z
2022-03-12T00:59:48.000Z
homeassistant/components/uvc/camera.py
VirtualL/home-assistant
301829d02be8d865ab46c8901ac046d060849320
[ "Apache-2.0" ]
null
null
null
"""Support for Ubiquiti's UVC cameras.""" import logging import socket import requests import voluptuous as vol from homeassistant.const import CONF_PORT, CONF_SSL from homeassistant.components.camera import Camera, PLATFORM_SCHEMA import homeassistant.helpers.config_validation as cv from homeassistant.exceptions imp...
32.1
79
0.606698
06eb6a47b1200e9fc67e7795fa62e1052a700881
1,230
py
Python
src/parameters/parameterparser.py
Marco9412/PyMusicServer3
fa264c4344a56ff15d08ec5ffdc9b24cc61db29e
[ "Apache-2.0" ]
null
null
null
src/parameters/parameterparser.py
Marco9412/PyMusicServer3
fa264c4344a56ff15d08ec5ffdc9b24cc61db29e
[ "Apache-2.0" ]
null
null
null
src/parameters/parameterparser.py
Marco9412/PyMusicServer3
fa264c4344a56ff15d08ec5ffdc9b24cc61db29e
[ "Apache-2.0" ]
null
null
null
import argparse import logging import globals from settings.settingsprovider import new_settings_file from utils.logging_utils import init_logging # from utils.printer import redirect_output # from utils.debugUtils import enable_debug def parse_arguments(): parser = argparse.ArgumentParser() parser.add_argum...
41
114
0.697561
a98cfce8d547b3d964e72ac0d5a67726b6d26167
6,878
py
Python
client/watchdog/core/cloud.py
cispa/bitahoy
ffc2004930a033cfb94d13671bc6068b473ce226
[ "MIT" ]
null
null
null
client/watchdog/core/cloud.py
cispa/bitahoy
ffc2004930a033cfb94d13671bc6068b473ce226
[ "MIT" ]
null
null
null
client/watchdog/core/cloud.py
cispa/bitahoy
ffc2004930a033cfb94d13671bc6068b473ce226
[ "MIT" ]
2
2021-12-30T16:48:15.000Z
2022-01-14T14:21:15.000Z
import asyncio import time import aiohttp from bitahoy_sdk.backend import BackendWS requests_exceptions = (aiohttp.ClientError,) default_backends = { "auth": "https://auth.bitahoy.cloud", "control": "https://control.bitahoy.cloud", "monitoring": "https://monitoring.bitahoy.cloud", "update": "https://...
38
129
0.590869
1d4e99d5e669b240519143e3d141a9ac9f45ea5b
6,654
py
Python
bindings/python/ensmallen_graph/datasets/string/oryzabrachyantha.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/oryzabrachyantha.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/oryzabrachyantha.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
""" This file offers the methods to automatically retrieve the graph Oryza brachyantha. The graph is automatically retrieved from the STRING repository. Report --------------------- At the time of rendering these methods (please see datetime below), the graph had the following characteristics: Datetime: 2021-02-0...
35.206349
223
0.700781
5521ba3f86a362306d3ee925ec75414b985d4892
9,459
py
Python
qiskit/opflow/evolutions/pauli_trotter_evolution.py
Roshan-Thomas/qiskit-terra
77219b5c7b7146b1545c5e5190739b36f4064b2f
[ "Apache-2.0" ]
1,599
2018-07-10T10:59:12.000Z
2022-03-31T23:56:25.000Z
qiskit/opflow/evolutions/pauli_trotter_evolution.py
Roshan-Thomas/qiskit-terra
77219b5c7b7146b1545c5e5190739b36f4064b2f
[ "Apache-2.0" ]
5,244
2018-07-10T06:20:13.000Z
2022-03-31T22:18:48.000Z
qiskit/opflow/evolutions/pauli_trotter_evolution.py
Roshan-Thomas/qiskit-terra
77219b5c7b7146b1545c5e5190739b36f4064b2f
[ "Apache-2.0" ]
1,409
2018-07-10T02:16:12.000Z
2022-03-31T09:01:32.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
47.532663
99
0.674596
e34d310d846d1f44ff16eee48cc888c3888263cf
383
py
Python
HackerRank Solutions/Python/Strings/Find a String.py
DevashishPathrabe/Competetive-Coding
91049459359854b7834cbfb31415682600dc9c57
[ "MIT" ]
13
2021-09-02T07:30:02.000Z
2022-03-22T19:32:03.000Z
HackerRank Solutions/Python/Strings/Find a String.py
DevashishPathrabe/Competetive-Coding
91049459359854b7834cbfb31415682600dc9c57
[ "MIT" ]
null
null
null
HackerRank Solutions/Python/Strings/Find a String.py
DevashishPathrabe/Competetive-Coding
91049459359854b7834cbfb31415682600dc9c57
[ "MIT" ]
3
2021-08-24T16:06:22.000Z
2021-09-17T15:39:53.000Z
def count_substring(string, sub_string): noOfOcurrence = 0 for i in range(len(string)-len(sub_string)+1): if string[i:i+len(sub_string)] == sub_string: noOfOcurrence += 1 return noOfOcurrence if __name__ == '__main__': string = input().strip() sub_string = input().strip() ...
29.461538
53
0.64752
f4562187dff299f969f74c37225884c8633126ad
906
py
Python
downloader/markdown_model.py
wmpscc/FocusAX
7bd1d10b4bdb84dc12b00d3fe3ec3a72a6d7fe48
[ "Apache-2.0" ]
2
2022-01-09T12:32:31.000Z
2022-03-03T12:33:24.000Z
downloader/markdown_model.py
wmpscc/FocusAX
7bd1d10b4bdb84dc12b00d3fe3ec3a72a6d7fe48
[ "Apache-2.0" ]
null
null
null
downloader/markdown_model.py
wmpscc/FocusAX
7bd1d10b4bdb84dc12b00d3fe3ec3a72a6d7fe48
[ "Apache-2.0" ]
null
null
null
import os def set_detail(summary, content): content = content.strip() s = f''' <details> <summary>{summary}</summary> {content} </details> ''' return s def set_img(path_img_dir, is_all_typing): files = os.listdir(path_img_dir) if len(files) == 0: return '' s = '' if is_all_...
18.875
82
0.56181
3dc8bff9202f36afd0ba4bd7762cf74c3b8e6219
15,797
py
Python
python/pyarrow/tests/test_schema.py
bob-skowron/arrow
6d23cccef064a3fc99d4e9286f62058cba0ee6b0
[ "Apache-2.0" ]
3
2021-09-10T09:06:22.000Z
2021-09-26T02:07:23.000Z
python/pyarrow/tests/test_schema.py
bob-skowron/arrow
6d23cccef064a3fc99d4e9286f62058cba0ee6b0
[ "Apache-2.0" ]
1
2020-01-03T07:39:04.000Z
2020-01-03T07:39:04.000Z
python/pyarrow/tests/test_schema.py
bob-skowron/arrow
6d23cccef064a3fc99d4e9286f62058cba0ee6b0
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
28.108541
79
0.569412
108ff0d8d3e02c2ac96101e0a29dcd785154950f
3,840
py
Python
getlogin/views.py
chungyan5/MigrateEmailServer
0f1452ddc7e7ec93d18a49c013973b3476138e04
[ "Apache-2.0" ]
null
null
null
getlogin/views.py
chungyan5/MigrateEmailServer
0f1452ddc7e7ec93d18a49c013973b3476138e04
[ "Apache-2.0" ]
null
null
null
getlogin/views.py
chungyan5/MigrateEmailServer
0f1452ddc7e7ec93d18a49c013973b3476138e04
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render from .forms import LoginPairForm import subprocess from .models import LoginPair import shlex import StringIO def home(request): ############################## # user already login and save its login info. if request.method == "POST": form = LoginPairForm(re...
43.146067
135
0.409115
d997d5cddad18c1d2db98b4f8970a43d6d4a0a7e
1,248
py
Python
cosmpy/crypto/interface.py
evsmithx/cosmpy
7dfc81528b287f90190d6d4387942340f8ab88cf
[ "Apache-2.0" ]
15
2021-09-08T05:27:14.000Z
2022-03-29T06:48:08.000Z
cosmpy/crypto/interface.py
evsmithx/cosmpy
7dfc81528b287f90190d6d4387942340f8ab88cf
[ "Apache-2.0" ]
36
2021-09-01T08:58:33.000Z
2022-03-30T11:40:56.000Z
cosmpy/crypto/interface.py
evsmithx/cosmpy
7dfc81528b287f90190d6d4387942340f8ab88cf
[ "Apache-2.0" ]
4
2021-10-04T09:29:56.000Z
2022-03-18T15:43:06.000Z
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2021 Fetch.AI Limited # # 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 ...
32
80
0.592147
f1db4cfbd59bf9326fac2eef8175c230d9c067df
8,326
py
Python
content/test/gpu/unexpected_passes/builders.py
iridium-browser/iridium-browser
907e31cf5ce5ad14d832796e3a7c11e496828959
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
575
2015-06-18T23:58:20.000Z
2022-03-23T09:32:39.000Z
content/test/gpu/unexpected_passes/builders.py
iridium-browser/iridium-browser
907e31cf5ce5ad14d832796e3a7c11e496828959
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
113
2015-05-04T09:58:14.000Z
2022-01-31T19:35:03.000Z
content/test/gpu/unexpected_passes/builders.py
iridium-browser/iridium-browser
907e31cf5ce5ad14d832796e3a7c11e496828959
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
52
2015-07-14T10:40:50.000Z
2022-03-15T01:11:49.000Z
# Copyright 2020 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Methods related to querying builder information from Buildbucket.""" import fnmatch import json import logging import os import subprocess from unexpecte...
34.263374
80
0.684602
e54fc615874b9d4bbc71175fb9aba5ff41d2c7f1
6,589
py
Python
second/pytorch/builder/second_builder.py
jerry99s/second.pytorch
80143908a349b9f3ff1642d21dacaf23455b3cf8
[ "MIT" ]
1,541
2018-10-04T00:32:01.000Z
2022-03-30T17:54:59.000Z
second/pytorch/builder/second_builder.py
jerry99s/second.pytorch
80143908a349b9f3ff1642d21dacaf23455b3cf8
[ "MIT" ]
466
2018-10-06T01:05:28.000Z
2022-03-31T08:49:44.000Z
second/pytorch/builder/second_builder.py
jerry99s/second.pytorch
80143908a349b9f3ff1642d21dacaf23455b3cf8
[ "MIT" ]
537
2018-10-04T07:36:13.000Z
2022-03-27T10:12:02.000Z
# Copyright 2017 yanyan. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
49.171642
89
0.741387
d9e35077e422b38f69c6e8dc862306606d98d2f0
938
py
Python
imma/image_manipulation.py
mjirik/imma
c666e8280028a672a0816cadd4d0ca9fe57489c5
[ "MIT" ]
null
null
null
imma/image_manipulation.py
mjirik/imma
c666e8280028a672a0816cadd4d0ca9fe57489c5
[ "MIT" ]
null
null
null
imma/image_manipulation.py
mjirik/imma
c666e8280028a672a0816cadd4d0ca9fe57489c5
[ "MIT" ]
1
2019-05-20T05:46:02.000Z
2019-05-20T05:46:02.000Z
#! /usr/bin/python # -*- coding: utf-8 -*- from loguru import logger import os.path import sys import numpy as np import scipy import scipy.ndimage from . import dili from .image import ( as_seeds_inds, fit_to_shape, combinecrinfo, crop, fix_crinfo, extend_crinfo, manualcrop, resize_...
18.392157
65
0.719616
ece85262446d899a425ac62a0bb1d7a8ff754a50
3,587
py
Python
deploy/utils/logger.py
TxT1212/PaddleClas
5a24c8700f738f036bf27f80ca12dbe8471a11b0
[ "Apache-2.0" ]
3,763
2020-04-10T04:48:11.000Z
2022-03-31T13:24:37.000Z
deploy/utils/logger.py
TxT1212/PaddleClas
5a24c8700f738f036bf27f80ca12dbe8471a11b0
[ "Apache-2.0" ]
633
2020-04-08T18:27:31.000Z
2022-03-31T01:09:43.000Z
deploy/utils/logger.py
TxT1212/PaddleClas
5a24c8700f738f036bf27f80ca12dbe8471a11b0
[ "Apache-2.0" ]
846
2020-04-08T08:13:18.000Z
2022-03-31T12:28:37.000Z
# copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. # # 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 applica...
29.644628
74
0.560636
a43b6204278e3e416b873ebef1c838f188779aa4
8,183
py
Python
numba/tests/test_conversion.py
gdementen/numba
78486e86ff9fbd343cac3dadbc63ec3bc66c75aa
[ "BSD-2-Clause" ]
null
null
null
numba/tests/test_conversion.py
gdementen/numba
78486e86ff9fbd343cac3dadbc63ec3bc66c75aa
[ "BSD-2-Clause" ]
null
null
null
numba/tests/test_conversion.py
gdementen/numba
78486e86ff9fbd343cac3dadbc63ec3bc66c75aa
[ "BSD-2-Clause" ]
null
null
null
from __future__ import print_function import array import gc import itertools import sys import numpy as np import numba.unittest_support as unittest from numba.compiler import compile_isolated, Flags from numba import types, jit, numpy_support def identity(x): return x def addition(x, y): return x + y d...
33.954357
93
0.590492
7009551f64bdb8f5e39a86ef30079de3dbcc6eb7
32,912
py
Python
spikeinterface/core/base.py
vncntprvst/spikeinterface
dd5ae94f85fe5d9082b45321d2c96ba316eb4b77
[ "MIT" ]
null
null
null
spikeinterface/core/base.py
vncntprvst/spikeinterface
dd5ae94f85fe5d9082b45321d2c96ba316eb4b77
[ "MIT" ]
null
null
null
spikeinterface/core/base.py
vncntprvst/spikeinterface
dd5ae94f85fe5d9082b45321d2c96ba316eb4b77
[ "MIT" ]
null
null
null
from pathlib import Path import importlib from copy import deepcopy import weakref import json import pickle import os import random import string from packaging.version import parse import numpy as np from .default_folders import get_global_tmp_folder, is_set_global_tmp_folder from .core_tools import check_json, is_...
36.528302
123
0.597047
d37309a4d1c56038f4144022f85fdc73eaf3d1f6
8,122
py
Python
make_colors/make_colors.py
cumulus13/make_colors
772e77aeaaa329dc2b34085423046957449f9773
[ "BSD-3-Clause" ]
null
null
null
make_colors/make_colors.py
cumulus13/make_colors
772e77aeaaa329dc2b34085423046957449f9773
[ "BSD-3-Clause" ]
null
null
null
make_colors/make_colors.py
cumulus13/make_colors
772e77aeaaa329dc2b34085423046957449f9773
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function import os import sys import re MODE = 0 if sys.platform == 'win32': import ctypes kernel32 = ctypes.WinDLL('kernel32') hStdOut = kernel32.GetStdHandle(-11) mode = ctypes.c_ulong() MODE = mode if not mode.value == 7: kernel32.GetCons...
33.561983
98
0.468727
a901068c8ffe230bc1f953dbfc586c1c842bc1f9
578
py
Python
tutorials/t1_sugared.py
nkoep/python-libjit
6ca42dc44432cd54c61e6066d382b7f5a9d58f38
[ "Apache-2.0" ]
4
2021-06-07T12:16:23.000Z
2021-06-07T15:05:09.000Z
tutorials/t1_sugared.py
nkoep/python-libjit
6ca42dc44432cd54c61e6066d382b7f5a9d58f38
[ "Apache-2.0" ]
null
null
null
tutorials/t1_sugared.py
nkoep/python-libjit
6ca42dc44432cd54c61e6066d382b7f5a9d58f38
[ "Apache-2.0" ]
null
null
null
"""Translation of t1.c with syntactic sugar""" import jit def run(): with jit.Context() as context: # Build the function signature. signature = jit.Type.create_signature( jit.ABI_CDECL, jit.Type.INT, [jit.Type.INT] * 3) # Create the function object. func = jit.Function...
25.130435
60
0.595156
668753b56e8f6cef9463c3beb8ebf35625b8aee7
2,500
py
Python
house_code/tutorials_altered/modules/property_reading.py
mukobi/Pozyx-Gabe
a8b444c2013b1df5043cd25106b72562409b5130
[ "MIT" ]
1
2020-06-12T07:21:56.000Z
2020-06-12T07:21:56.000Z
house_code/tutorials_altered/modules/property_reading.py
mukobi/Pozyx-Gabe
a8b444c2013b1df5043cd25106b72562409b5130
[ "MIT" ]
null
null
null
house_code/tutorials_altered/modules/property_reading.py
mukobi/Pozyx-Gabe
a8b444c2013b1df5043cd25106b72562409b5130
[ "MIT" ]
null
null
null
from pypozyx import * MASTER_PROPS_LOCATION = "../../original_programs/PSUPozyx/Configuration/MASTER_ACTIVE_CONFIG.properties" class PropertyReading: @staticmethod def getProperties(): P = dict(line.strip().split('=') for line in open(MASTER_PROPS_LOCATION) if not line.startswith('#...
50
104
0.6316
c2fc9e9a8ddd6f3a410e1f413b5d3ef7bb63c4d7
6,483
bzl
Python
haskell/private/actions/info.bzl
dasormeter/rules_haskell
631531550468eca22cce0cd4619009c725e3be92
[ "Apache-2.0" ]
null
null
null
haskell/private/actions/info.bzl
dasormeter/rules_haskell
631531550468eca22cce0cd4619009c725e3be92
[ "Apache-2.0" ]
null
null
null
haskell/private/actions/info.bzl
dasormeter/rules_haskell
631531550468eca22cce0cd4619009c725e3be92
[ "Apache-2.0" ]
null
null
null
"""Defines output groups that are consumed by tools such as 'hrepl'.""" load("@bazel_skylib//lib:dicts.bzl", "dicts") load("@bazel_skylib//lib:paths.bzl", "paths") load(":providers.bzl", "all_package_ids") load(":private/cc_libraries.bzl", "get_ghci_extra_libs") load( ":private/path_utils.bzl", "get_lib_name",...
34.668449
93
0.600339
78220406eb69bd736d760379d5b396bc8735e1e0
116,357
py
Python
tests/test_asyncio/test_commands.py
WisdomPill/redis-py
e5e265de87dfe7ef8cc5cad8c247d067c74fa44d
[ "MIT" ]
null
null
null
tests/test_asyncio/test_commands.py
WisdomPill/redis-py
e5e265de87dfe7ef8cc5cad8c247d067c74fa44d
[ "MIT" ]
null
null
null
tests/test_asyncio/test_commands.py
WisdomPill/redis-py
e5e265de87dfe7ef8cc5cad8c247d067c74fa44d
[ "MIT" ]
null
null
null
""" Tests async overrides of commands from their mixins """ import binascii import datetime import re import time from string import ascii_letters import pytest import redis from redis import exceptions from redis.client import parse_info from tests.conftest import ( skip_if_server_version_gte, skip_if_server...
38.112349
88
0.549103
9fac0ae404f354f71ef4c0a964679fd6510e9e87
604
py
Python
tools/show-profile-results.py
aps-sids/zulip
54fd3219411c9051f5125b7ebd941e95898b8c5d
[ "Apache-2.0" ]
1
2015-09-28T09:50:11.000Z
2015-09-28T09:50:11.000Z
tools/show-profile-results.py
aps-sids/zulip
54fd3219411c9051f5125b7ebd941e95898b8c5d
[ "Apache-2.0" ]
7
2021-04-13T15:47:58.000Z
2022-02-11T03:46:47.000Z
tools/show-profile-results.py
aps-sids/zulip
54fd3219411c9051f5125b7ebd941e95898b8c5d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import sys import pstats ''' This is a helper script to make it easy to show profile results after using a Python decorator. It's meant to be a simple example that you can hack on, or better yet, you can find more advanced tools for showing profiler results. ''' try: fn = sys.argv[1] except...
24.16
66
0.705298
c0147bcfdfdd8e79d3a34ecfeb6498411be1bc46
503
py
Python
pythran/tests/cases/clip2.py
SylvainCorlay/pythran
908ec070d837baf77d828d01c3e35e2f4bfa2bfa
[ "BSD-3-Clause" ]
1
2018-03-24T00:33:03.000Z
2018-03-24T00:33:03.000Z
pythran/tests/cases/clip2.py
SylvainCorlay/pythran
908ec070d837baf77d828d01c3e35e2f4bfa2bfa
[ "BSD-3-Clause" ]
null
null
null
pythran/tests/cases/clip2.py
SylvainCorlay/pythran
908ec070d837baf77d828d01c3e35e2f4bfa2bfa
[ "BSD-3-Clause" ]
null
null
null
# pythran export clip(complex128[], float64), limit (complex128[]) # runas import numpy as np ; a = np.arange(2, dtype=complex); clip(a, .5), clip(a[2::4], .5) import numpy as np def limit (x, epsilon=1e-6): out = np.empty(shape=x.shape, dtype=x.dtype) mask1 = np.abs(x) < epsilon out[mask1] = 0 mask2...
26.473684
92
0.610338
86b44bbe3b709582b062b99d973c610eed27f565
5,579
py
Python
test/dlc_tests/eks/mxnet/inference/test_eks_mxnet_inference.py
Yixiao99/deep-learning-containers
01f078adf5abfb92e802b326511981bdd4a8c85c
[ "Apache-2.0" ]
1
2021-10-22T04:36:45.000Z
2021-10-22T04:36:45.000Z
test/dlc_tests/eks/mxnet/inference/test_eks_mxnet_inference.py
Yixiao99/deep-learning-containers
01f078adf5abfb92e802b326511981bdd4a8c85c
[ "Apache-2.0" ]
32
2021-06-10T21:21:29.000Z
2021-08-06T22:37:37.000Z
test/dlc_tests/eks/mxnet/inference/test_eks_mxnet_inference.py
Yixiao99/deep-learning-containers
01f078adf5abfb92e802b326511981bdd4a8c85c
[ "Apache-2.0" ]
1
2021-04-20T05:05:11.000Z
2021-04-20T05:05:11.000Z
import os import random import pytest from time import sleep from invoke import run import test.test_utils.eks as eks_utils import test.test_utils as test_utils @pytest.mark.model("resnet50") def test_eks_mxnet_neuron_inference(mxnet_inference, neuron_only): if "eia" in mxnet_inference or "neuron" not in mxnet_...
37.952381
178
0.714823
629e4edc04f530f036cf2fa23564ea9d65f7cf92
2,600
py
Python
dashboard/views.py
Attila-Sasvari/django_blog
7aea29932b62d0c46ba1963a3685b6320730a73e
[ "MIT", "Unlicense" ]
null
null
null
dashboard/views.py
Attila-Sasvari/django_blog
7aea29932b62d0c46ba1963a3685b6320730a73e
[ "MIT", "Unlicense" ]
null
null
null
dashboard/views.py
Attila-Sasvari/django_blog
7aea29932b62d0c46ba1963a3685b6320730a73e
[ "MIT", "Unlicense" ]
null
null
null
from django.shortcuts import get_object_or_404, render, redirect from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth.decorators import login_required from django.db.models import Avg, Max, Min, Q, Count, Sum, F from blog.models import Blog, BlogCounts from django.contrib.auth.models impo...
38.235294
146
0.698846
c5b9267f47a5afd909a23cddedd9ff39419b7ceb
3,655
py
Python
tests/thanks_tests.py
LeesahMasko/piwikibot
024af387ff48c21526ee206541178157d2653ddc
[ "MIT" ]
null
null
null
tests/thanks_tests.py
LeesahMasko/piwikibot
024af387ff48c21526ee206541178157d2653ddc
[ "MIT" ]
6
2021-02-27T03:35:42.000Z
2021-03-07T22:17:40.000Z
tests/thanks_tests.py
LeesahMasko/piwikibot
024af387ff48c21526ee206541178157d2653ddc
[ "MIT" ]
null
null
null
"""Tests for thanks-related code.""" # # (C) Pywikibot team, 2016-2021 # # Distributed under the terms of the MIT license. # import unittest from contextlib import suppress from pywikibot.page import Page, User from tests.aspects import TestCase NO_THANKABLE_REVS = 'There is no recent change which can be test than...
31.508621
78
0.592886
12dd18931e52642d1cd15b8d2b313f2b15fc35f8
76
py
Python
python/test/lotto645.py
gangserver/py_test
869bdfa5c94c3b6a15b87e0c3de6b2cdaca821f4
[ "Apache-2.0" ]
null
null
null
python/test/lotto645.py
gangserver/py_test
869bdfa5c94c3b6a15b87e0c3de6b2cdaca821f4
[ "Apache-2.0" ]
null
null
null
python/test/lotto645.py
gangserver/py_test
869bdfa5c94c3b6a15b87e0c3de6b2cdaca821f4
[ "Apache-2.0" ]
null
null
null
from scipy.stats import randint rgen = randint(1, 45) print(rgen.rvs(6))
10.857143
31
0.710526
5b70f4479d64adf2ce8498dd7d210465a89e939a
12,204
py
Python
great_expectations/datasource/data_connector/configured_asset_sql_data_connector.py
Gfeuillen/great_expectations
9c1513ad8ffa92a26a0fd37bf5a4ef258f7e89a0
[ "Apache-2.0" ]
null
null
null
great_expectations/datasource/data_connector/configured_asset_sql_data_connector.py
Gfeuillen/great_expectations
9c1513ad8ffa92a26a0fd37bf5a4ef258f7e89a0
[ "Apache-2.0" ]
null
null
null
great_expectations/datasource/data_connector/configured_asset_sql_data_connector.py
Gfeuillen/great_expectations
9c1513ad8ffa92a26a0fd37bf5a4ef258f7e89a0
[ "Apache-2.0" ]
null
null
null
from copy import deepcopy from typing import Dict, List, Optional from great_expectations.core.batch import ( BatchDefinition, BatchRequest, BatchSpec, IDDict, ) from great_expectations.core.batch_spec import SqlAlchemyDatasourceBatchSpec from great_expectations.datasource.data_connector.data_connector...
36
130
0.643559
15fda50cf1926ad81468beac9b37f60c12b3a4e9
16,982
py
Python
sparsecontainer.py
asaluja/cca-mt
c57fcdd5cff9550bcde81d861b004f254d1b22bf
[ "Apache-2.0" ]
null
null
null
sparsecontainer.py
asaluja/cca-mt
c57fcdd5cff9550bcde81d861b004f254d1b22bf
[ "Apache-2.0" ]
null
null
null
sparsecontainer.py
asaluja/cca-mt
c57fcdd5cff9550bcde81d861b004f254d1b22bf
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python -tt ''' File: sparsecontainer.py (formerly eigentypepy) Date: December 25, 2014 (major changes: January 19, 2015) Description: contains SparseContainer, SparseContext (child of SparseContainer), and ContextExtractor classes. ''' import sys, commands, string, gc import numpy as np import scipy.spars...
49.510204
146
0.600459
5582c36755a9c23046b9379864318d179fc41a91
411
py
Python
coinbase/vwap_calculator.py
flaviostutz/coinbase-vwap-python
87b9a8e819f320af170c7200f92757639b5fb752
[ "MIT" ]
null
null
null
coinbase/vwap_calculator.py
flaviostutz/coinbase-vwap-python
87b9a8e819f320af170c7200f92757639b5fb752
[ "MIT" ]
null
null
null
coinbase/vwap_calculator.py
flaviostutz/coinbase-vwap-python
87b9a8e819f320af170c7200f92757639b5fb752
[ "MIT" ]
null
null
null
from mathutils import weighted_avg from decimal import * weighted_avgs = {} def CalculateVWAP(matchInfo, averagerMaxSize, onVMAPInfo): pid = matchInfo['product_id'] sa = weighted_avgs.get(pid) if sa == None: sa = weighted_avg.WeightedAvg(averagerMaxSize) weighted_avgs[pid] = sa sa.ad...
22.833333
67
0.690998
9e5a094b835add4112dd4cb73f1d217e90178dc0
1,014
py
Python
Course 01 - Getting Started with Python/Extra Studies/Conditionals/ex017.py
marcoshsq/python_practical_exercises
77136cd4bc0f34acde3380ffdc5af74f7a960670
[ "MIT" ]
9
2022-03-22T16:45:17.000Z
2022-03-25T20:22:35.000Z
Course 01 - Getting Started with Python/Extra Studies/Conditionals/ex017.py
marcoshsq/python_practical_exercises
77136cd4bc0f34acde3380ffdc5af74f7a960670
[ "MIT" ]
null
null
null
Course 01 - Getting Started with Python/Extra Studies/Conditionals/ex017.py
marcoshsq/python_practical_exercises
77136cd4bc0f34acde3380ffdc5af74f7a960670
[ "MIT" ]
3
2022-03-22T17:03:38.000Z
2022-03-29T17:20:55.000Z
# Exercise 017 - Payment Manager """ Develop a program that calculates the amount to be paid for a product, Considering your normal price and payment term: - cash/check: 10% discount - cash on card: 5% discount - up to 2x on the card: formal price - 3x or more on the card: 20% interest """ pr...
26
74
0.641026
3d440c955c21aadef37987095957bf0281875c7b
12,894
py
Python
src/run_pt.py
ashmitbhattarai/ITEC876Project
a5a50143bc6df33202bf11cf69f8b1e8903634b3
[ "Apache-2.0" ]
null
null
null
src/run_pt.py
ashmitbhattarai/ITEC876Project
a5a50143bc6df33202bf11cf69f8b1e8903634b3
[ "Apache-2.0" ]
null
null
null
src/run_pt.py
ashmitbhattarai/ITEC876Project
a5a50143bc6df33202bf11cf69f8b1e8903634b3
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team and authors from University of Illinois at Chicago. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with...
42.137255
172
0.632232
54819c9961ce8decf6cabef0b02ca60a59c491c5
3,786
py
Python
src/tests/ftest/osa/osa_offline_extend.py
myliucom/daos
74999a3307a530b307bdd62e3d4e3260648f2315
[ "BSD-2-Clause-Patent" ]
null
null
null
src/tests/ftest/osa/osa_offline_extend.py
myliucom/daos
74999a3307a530b307bdd62e3d4e3260648f2315
[ "BSD-2-Clause-Patent" ]
null
null
null
src/tests/ftest/osa/osa_offline_extend.py
myliucom/daos
74999a3307a530b307bdd62e3d4e3260648f2315
[ "BSD-2-Clause-Patent" ]
1
2021-04-13T16:04:21.000Z
2021-04-13T16:04:21.000Z
#!/usr/bin/python """ (C) Copyright 2020-2021 Intel Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent """ import time from osa_utils import OSAUtils from test_utils_pool import TestPool from apricot import skipForTicket class OSAOfflineExtend(OSAUtils): # pylint: disable=too-many-ancestors """ ...
36.057143
76
0.578183
5c7174faa06c0ea11b9dc25add1cb1b4fd065e04
10,718
py
Python
ignite/contrib/handlers/tqdm_logger.py
VinhLoiIT/ignite
3b2b9655ea9f80ce49b8a9f1c2d72f80e2a95f56
[ "BSD-3-Clause" ]
1
2020-03-04T20:07:45.000Z
2020-03-04T20:07:45.000Z
ignite/contrib/handlers/tqdm_logger.py
hefv57/ignite
a22a0f5e909ac70d2a1f76a60b6e84b2134f196c
[ "BSD-3-Clause" ]
null
null
null
ignite/contrib/handlers/tqdm_logger.py
hefv57/ignite
a22a0f5e909ac70d2a1f76a60b6e84b2134f196c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import warnings import torch from ignite.engine import Events, Engine from ignite.engine.events import CallableEventWithFilter from ignite.contrib.handlers.base_logger import BaseLogger, BaseOutputHandler class ProgressBar(BaseLogger): """ TQDM progress bar handler to log training pr...
40.293233
118
0.637152
ba687141f9a3a29e79977e248d7b2cb403d2e887
20,613
py
Python
src/backend/qai_testbed_backend/usecases/test_description.py
ads-ad-itcenter/qunomon.forked
48d532692d353fe2d3946f62b227f834f9349034
[ "Apache-2.0" ]
16
2020-11-18T05:43:55.000Z
2021-11-27T14:43:26.000Z
src/backend/qai_testbed_backend/usecases/test_description.py
aistairc/qunomon
d4e9c5cb569b16addfbe6c33c73812065065a1df
[ "Apache-2.0" ]
1
2022-03-23T07:55:54.000Z
2022-03-23T13:24:11.000Z
src/backend/qai_testbed_backend/usecases/test_description.py
ads-ad-itcenter/qunomon.forked
48d532692d353fe2d3946f62b227f834f9349034
[ "Apache-2.0" ]
3
2021-02-12T01:56:31.000Z
2022-03-23T02:45:02.000Z
# Copyright © 2019 National Institute of Advanced Industrial Science and Technology (AIST). All rights reserved. from typing import Optional from qlib.utils.logging import get_logger, log from ..controllers.dto import Result from ..controllers.dto.test_description import GetTestDescriptionsRes, GetTestDescriptionDetai...
50.896296
168
0.629457
043cc53837f8e626b1daf317452b578fd22c75bd
56
py
Python
quines/quine2.py
WhitmanCS370-SP2021/examples
dae884df3c6ef5e20464e09c059c197fc962d53a
[ "MIT" ]
null
null
null
quines/quine2.py
WhitmanCS370-SP2021/examples
dae884df3c6ef5e20464e09c059c197fc962d53a
[ "MIT" ]
null
null
null
quines/quine2.py
WhitmanCS370-SP2021/examples
dae884df3c6ef5e20464e09c059c197fc962d53a
[ "MIT" ]
1
2021-03-23T19:57:52.000Z
2021-03-23T19:57:52.000Z
s = r"print 's = r\"' + s + '\"' + '\nexec(s)'" exec(s)
18.666667
47
0.375
92800e47026f1375893131f294b47f9cc14cf01b
1,265
py
Python
python/servotest.py
just4chill/imageprocessing
838beecba13497e5fa91e208304a34141ab1ac2d
[ "MIT" ]
null
null
null
python/servotest.py
just4chill/imageprocessing
838beecba13497e5fa91e208304a34141ab1ac2d
[ "MIT" ]
null
null
null
python/servotest.py
just4chill/imageprocessing
838beecba13497e5fa91e208304a34141ab1ac2d
[ "MIT" ]
null
null
null
# Author: Ingmar Stapel # Usage: Servo test program # URL: http://www.raspberry-pi-car.com/top-story-en/raspberry-pi-controlling-servo-motors/7028 # Version: 0.1 beta import RPi.GPIO as GPIO import time import os GPIO.setwarnings(False) GPIO.setmode(GPIO.BCM) GPIO.setup(4, GPIO.OUT) # Now we will start with a PWM s...
22.589286
94
0.679842
8a320adca9ec9b85fb850b5735ee6bdb2ef01122
921
py
Python
tests/loggers/test_logger.py
growlix/composer
27418a3c65dca26d90ac09c6ae67cbd5d0202ccf
[ "Apache-2.0" ]
null
null
null
tests/loggers/test_logger.py
growlix/composer
27418a3c65dca26d90ac09c6ae67cbd5d0202ccf
[ "Apache-2.0" ]
null
null
null
tests/loggers/test_logger.py
growlix/composer
27418a3c65dca26d90ac09c6ae67cbd5d0202ccf
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 MosaicML Composer authors # SPDX-License-Identifier: Apache-2.0 import pathlib from composer.core.state import State from composer.loggers import Logger, LoggerDestination, LogLevel def test_logger_file_artifact(dummy_state: State): file_logged = False class DummyLoggerDestination(LoggerD...
27.909091
118
0.668838
d67064dd35e2ed4a0362c3b9d3da2036d6bfa4c5
1,675
py
Python
train.py
Noizecube/flair
b163c5506ef60803fb49eab1201c41c93e745cc8
[ "MIT" ]
null
null
null
train.py
Noizecube/flair
b163c5506ef60803fb49eab1201c41c93e745cc8
[ "MIT" ]
null
null
null
train.py
Noizecube/flair
b163c5506ef60803fb49eab1201c41c93e745cc8
[ "MIT" ]
null
null
null
from typing import List import flair.datasets from flair.data import Corpus from flair.embeddings import ( TokenEmbeddings, WordEmbeddings, StackedEmbeddings, FlairEmbeddings, CharacterEmbeddings, ) from flair.training_utils import EvaluationMetric from flair.visual.training_curves import Plotter ...
24.632353
77
0.76597
fa534a5f5dcc7393feca46b81987b2a06ea7b0e8
8,361
py
Python
src/quo/layout/margin.py
scalabli/quo
70b6d4129ee705930f1f8a792fc4c9247d973f9d
[ "MIT" ]
3
2022-03-13T13:22:35.000Z
2022-03-18T08:22:51.000Z
src/quo/layout/margin.py
scalabli/quo
70b6d4129ee705930f1f8a792fc4c9247d973f9d
[ "MIT" ]
1
2022-03-21T16:29:54.000Z
2022-03-21T16:29:54.000Z
src/quo/layout/margin.py
scalabli/quo
70b6d4129ee705930f1f8a792fc4c9247d973f9d
[ "MIT" ]
null
null
null
""" Margin implementations for a :class:`~quo.layout.containers.Window`. """ from abc import ABCMeta, abstractmethod from typing import TYPE_CHECKING, Callable, Optional from quo.filters import FilterOrBool, to_filter from quo.text.core import ( StyleAndTextTuples, to_formatted_text ) from quo.text.utils i...
32.660156
95
0.580194
e41706698550c0f29aed8b9a4865d10e682b7713
6,317
py
Python
analysis/muons.py
TheGreatCabbage/ParticlePy
676d99cfa244b0365dbfb9693acaed1265910299
[ "MIT" ]
null
null
null
analysis/muons.py
TheGreatCabbage/ParticlePy
676d99cfa244b0365dbfb9693acaed1265910299
[ "MIT" ]
null
null
null
analysis/muons.py
TheGreatCabbage/ParticlePy
676d99cfa244b0365dbfb9693acaed1265910299
[ "MIT" ]
null
null
null
import time import os import numpy as np import sys from datetime import datetime folder = "data" def parse_data(*files): """ Parses a data file, returning a dictionary containing the time in seconds since the epoch (key) and muon count (value). """ # Add the path to the filenames (they are in th...
35.290503
111
0.621339
1d4e6983973cfd57c742c5a5a3c3cb88a288a09d
405
py
Python
sdk/python/pulumi_azure_native/subscription/v20200901/_enums.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_native/subscription/v20200901/_enums.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_native/subscription/v20200901/_enums.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** from enum import Enum __all__ = [ 'Workload', ] class Workload(str, Enum): """ The workload type of the subscription. It can be either P...
22.5
82
0.659259
29342ee1661ed9abca3cabee89fbb8d4d65595d6
2,978
py
Python
python/openassetio/specifications.py
j-helman/OpenAssetIO
fd4f23d37dfc104a68f906804846d60b6d78b839
[ "Apache-2.0" ]
null
null
null
python/openassetio/specifications.py
j-helman/OpenAssetIO
fd4f23d37dfc104a68f906804846d60b6d78b839
[ "Apache-2.0" ]
1
2021-11-25T12:24:36.000Z
2021-11-25T18:01:58.000Z
python/openassetio/specifications.py
j-helman/OpenAssetIO
fd4f23d37dfc104a68f906804846d60b6d78b839
[ "Apache-2.0" ]
null
null
null
# # Copyright 2013-2021 [The Foundry Visionmongers 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 a...
39.706667
85
0.709872
1f7dfb3233fd68c8aa69bb56edd0101538ab7257
1,318
py
Python
src/content.py
Hybin/cBook-Updates
97f1ad65a06de861a9da2ecc4ff0e6e890c9f0de
[ "MIT", "Unlicense" ]
null
null
null
src/content.py
Hybin/cBook-Updates
97f1ad65a06de861a9da2ecc4ff0e6e890c9f0de
[ "MIT", "Unlicense" ]
null
null
null
src/content.py
Hybin/cBook-Updates
97f1ad65a06de861a9da2ecc4ff0e6e890c9f0de
[ "MIT", "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- from urllib.request import urlopen from urllib.parse import quote from bs4 import BeautifulSoup import json import re import os import clear def getList(page): jsonOutput = {"items":[]} # open the page of introduction introPage = urlopen(quote(page, safe='/:?=')) soup = BeautifulSoup(intro...
21.258065
77
0.630501
0ef4c4c1f98eacf57a618c0ac1b4360b6319f1d9
3,052
py
Python
checkSpeciesOfGenes.py
jakelever/GNBR
2a457112b60f1667ca06a508a55d892185965db7
[ "MIT" ]
null
null
null
checkSpeciesOfGenes.py
jakelever/GNBR
2a457112b60f1667ca06a508a55d892185965db7
[ "MIT" ]
null
null
null
checkSpeciesOfGenes.py
jakelever/GNBR
2a457112b60f1667ca06a508a55d892185965db7
[ "MIT" ]
null
null
null
import argparse if __name__ == '__main__': parser = argparse.ArgumentParser(description='Check the species of genes from GNBR data') parser.add_argument('--geneIDs',required=True,type=str,help='All the gene IDs in GNBR') parser.add_argument('--ncbiGeneInfo',required=True,type=str,help='Uncompressed version of NCBI ...
34.681818
141
0.681193
f4e3ea8dc5bbdc64f29b833e7096f050ab6bee28
3,164
py
Python
stages/l4lb/fabfile.py
midonet/senbazuru
40653aa1d92d96187baf7bd6a661090027de6c3d
[ "Apache-2.0" ]
1
2015-07-02T05:43:48.000Z
2015-07-02T05:43:48.000Z
stages/l4lb/fabfile.py
midonet/senbazuru
40653aa1d92d96187baf7bd6a661090027de6c3d
[ "Apache-2.0" ]
null
null
null
stages/l4lb/fabfile.py
midonet/senbazuru
40653aa1d92d96187baf7bd6a661090027de6c3d
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2015 Midokura SARL, All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
27.513043
129
0.638748
e21af41cf05676153778e2cfa07c5138f259c22c
6,544
py
Python
adafruit_pca9685.py
sommersoft/Adafruit_CircuitPython_PCA9685
57a4500e883e56508a8e647dc2e9756f905625e1
[ "MIT" ]
1
2020-09-27T20:08:57.000Z
2020-09-27T20:08:57.000Z
adafruit_pca9685.py
sommersoft/Adafruit_CircuitPython_PCA9685
57a4500e883e56508a8e647dc2e9756f905625e1
[ "MIT" ]
null
null
null
adafruit_pca9685.py
sommersoft/Adafruit_CircuitPython_PCA9685
57a4500e883e56508a8e647dc2e9756f905625e1
[ "MIT" ]
null
null
null
# The MIT License (MIT) # # Copyright (c) 2016 Radomir Dopieralski, written for Adafruit Industries # Copyright (c) 2017 Scott Shawcroft for Adafruit Industries LLC # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to...
37.609195
99
0.688417
ba1586a0d048d798a6267feaa8af11625275b627
4,934
py
Python
faceRecognizer.py
Trance5AM/FaceRecogniton
a608c846af0bdd3cb6e478d004373c3987b06f9d
[ "MIT" ]
4
2017-02-08T22:11:22.000Z
2017-02-08T22:24:57.000Z
faceRecognizer.py
etiro/FaceRecogniton
a608c846af0bdd3cb6e478d004373c3987b06f9d
[ "MIT" ]
null
null
null
faceRecognizer.py
etiro/FaceRecogniton
a608c846af0bdd3cb6e478d004373c3987b06f9d
[ "MIT" ]
null
null
null
import cv2 import os import numpy as np from baza import Database class FaceRecognizer(object): def __init__(self, xml_path, index=0,): self.camera = cv2.VideoCapture(index) self.index = index self.haar_cascade = cv2.CascadeClassifier(xml_path) self.xml_path = xml_path self....
42.904348
122
0.548439
f27e1df25818af8bc472c00eea8c9ee389b0164c
859
py
Python
leetcode/771_jewels_and_stones.py
coocos/leetcode
007bbeb46fa4b32e1c92fc894edeb2100eb6ba21
[ "MIT" ]
null
null
null
leetcode/771_jewels_and_stones.py
coocos/leetcode
007bbeb46fa4b32e1c92fc894edeb2100eb6ba21
[ "MIT" ]
null
null
null
leetcode/771_jewels_and_stones.py
coocos/leetcode
007bbeb46fa4b32e1c92fc894edeb2100eb6ba21
[ "MIT" ]
null
null
null
import unittest from collections import Set class Solution: """ This solution simply creates a set with all the jewel tokens and then iterates through the stones one by one incrementing a counter if they are present in the set. Note that using sum() and a comprehension like return sum(s ...
25.264706
74
0.650757
17bb5daad1e5406b9b6c563fb6e51cb767513b54
23,049
py
Python
tests/test_pycfg.py
kshithijiyer/byterun
e3dc1349ed0d5f737708f274f714ac77b6f047cc
[ "PSF-2.0" ]
13
2015-03-19T12:17:07.000Z
2021-07-24T14:22:58.000Z
tests/test_pycfg.py
kshithijiyer/byterun
e3dc1349ed0d5f737708f274f714ac77b6f047cc
[ "PSF-2.0" ]
null
null
null
tests/test_pycfg.py
kshithijiyer/byterun
e3dc1349ed0d5f737708f274f714ac77b6f047cc
[ "PSF-2.0" ]
4
2017-01-27T19:08:50.000Z
2020-10-13T16:32:23.000Z
"""Tests for pycfg. """ import dis import inspect import logging import unittest from byterun import pycfg # Disable because pylint does not like any name for the nested test_code # functions used to get the needed bytecode. # pylint: disable=invalid-name # The bytecode constants used to check against the generate...
35.189313
80
0.5838
39c970e5dae48b7b2e205e34d5587584b0857221
4,158
py
Python
mxnet_benchmarks/custom_operations/custom_operations.py
sandeep-krishnamurthy/dl-operator-benchmark
965797d2b847c840a4b8ef29c70c631f6642890a
[ "Apache-2.0" ]
6
2019-05-01T22:05:05.000Z
2020-02-13T19:07:27.000Z
mxnet_benchmarks/custom_operations/custom_operations.py
sandeep-krishnamurthy/dl-operator-benchmark
965797d2b847c840a4b8ef29c70c631f6642890a
[ "Apache-2.0" ]
2
2019-11-09T06:38:09.000Z
2019-11-09T06:41:44.000Z
mxnet_benchmarks/custom_operations/custom_operations.py
sandeep-krishnamurthy/dl-operator-benchmark
965797d2b847c840a4b8ef29c70c631f6642890a
[ "Apache-2.0" ]
null
null
null
import mxnet as mx import mxnet.ndarray as nd from mxnet_benchmarks.MXNetOperatorBenchmark import MXNetOperatorBenchmarkBase from mxnet_benchmarks.utils.ndarray_utils import get_mx_ndarray from utils.profiler_utils import timer """ MXNet's Custom Operator Benchmark Tests. It does a simple element wise addition to ma...
35.237288
104
0.657287
0979563d043ce86a4304bee2b6bf4695d42f0809
1,515
py
Python
importasol/db/gestorsol/otros.py
telenieko/importasol
92848ff369b664bee5077b821830d690c31e7830
[ "BSD-3-Clause" ]
null
null
null
importasol/db/gestorsol/otros.py
telenieko/importasol
92848ff369b664bee5077b821830d690c31e7830
[ "BSD-3-Clause" ]
null
null
null
importasol/db/gestorsol/otros.py
telenieko/importasol
92848ff369b664bee5077b821830d690c31e7830
[ "BSD-3-Clause" ]
1
2022-02-02T14:29:33.000Z
2022-02-02T14:29:33.000Z
from ..base import SOLFile from ..fields import CampoA, CampoN, CampoB, CampoND, CampoCuenta class FPA(SOLFile): """ Formas de pago/cobro. """ cA = CampoA("Codigo", size=3, truncate=False) cB = CampoA("Descripcion", size=100) cC = CampoN("Numero Vencimientos", size=1) cD = CampoB("Pagos proporci...
22.61194
65
0.592079
353883559497a208043d91b98ce5dc4d54d17fe4
536
py
Python
nn/sk_perceptron.py
binzhihao/py-ai-project
64491f6e5ff2007fd7abad5ee0c6058a914d1f84
[ "MIT" ]
null
null
null
nn/sk_perceptron.py
binzhihao/py-ai-project
64491f6e5ff2007fd7abad5ee0c6058a914d1f84
[ "MIT" ]
null
null
null
nn/sk_perceptron.py
binzhihao/py-ai-project
64491f6e5ff2007fd7abad5ee0c6058a914d1f84
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import data.iris.loader as loader from sklearn.linear_model import Perceptron if __name__ == '__main__': x, y = loader.load_iris() # 探索数据 print(x.head()) print('species: ', pd.unique(y.species)) # 花瓣长度,宽度 x_train = x.loc[:, ['petal_length', 'petal_width...
22.333333
55
0.651119
741dae51137b1b899b9650ba708a92a800c72f05
8,055
py
Python
lib/ansiblelint/rules/__init__.py
moreati/ansible-lint
4d8b52f42879109b02dc3211962421064c90af16
[ "MIT" ]
null
null
null
lib/ansiblelint/rules/__init__.py
moreati/ansible-lint
4d8b52f42879109b02dc3211962421064c90af16
[ "MIT" ]
28
2020-09-01T20:06:28.000Z
2022-02-13T19:01:50.000Z
lib/ansiblelint/rules/__init__.py
moreati/ansible-lint
4d8b52f42879109b02dc3211962421064c90af16
[ "MIT" ]
null
null
null
"""All internal ansible-lint rules.""" import glob import importlib.util import logging import os import re from collections import defaultdict from importlib.abc import Loader from typing import List import ansiblelint.utils from ansiblelint.errors import MatchError from ansiblelint.skip_utils import append_skipped_r...
32.743902
84
0.569957
6ffb73d726e8be8ded0452418cbe95d98da901da
966
py
Python
leetcode/p59.py
mythnc/lab
9f69482a063e3cfce2ce8832c2ef1425658c31b9
[ "MIT" ]
null
null
null
leetcode/p59.py
mythnc/lab
9f69482a063e3cfce2ce8832c2ef1425658c31b9
[ "MIT" ]
null
null
null
leetcode/p59.py
mythnc/lab
9f69482a063e3cfce2ce8832c2ef1425658c31b9
[ "MIT" ]
null
null
null
from typing import List class Solution: def generateMatrix(self, n: int) -> List[List[int]]: r = 0 c = 0 next_direction = ((0, 1), (1, 0), (0, -1), (-1, 0)) next_direction_index = 0 result = [[0] * n for _ in range(n)] for ele in range(1, n**2+1): result...
33.310345
89
0.578675
45e18b454e9a7174b84b0232e97ba7a7249c7d8d
718
py
Python
Python Script Tools/11.0 Game Guess The Number.py
juan1305/0.11-incremento_descremento
954ddb32180c3197e5b01cf95d20f5325ada8a29
[ "MIT" ]
1
2020-04-13T00:16:16.000Z
2020-04-13T00:16:16.000Z
Python Script Tools/11.0 Game Guess The Number.py
juan1305/0.11-incremento_descremento
954ddb32180c3197e5b01cf95d20f5325ada8a29
[ "MIT" ]
null
null
null
Python Script Tools/11.0 Game Guess The Number.py
juan1305/0.11-incremento_descremento
954ddb32180c3197e5b01cf95d20f5325ada8a29
[ "MIT" ]
null
null
null
#Este es un juego de adivinar el numero import random intentos = 0 print('Hola! Cual es tu nombre?') nombre = input() numero = random.randint(1, 20) print('Bueno, '+nombre+', piensa un numero entre 1 y 20.') while intentos < 6: print('Adivinalo! Tienes 6 intentos') adivina = input() adivina = int(adivina) intentos...
28.72
79
0.696379
afdce9dbd92f297e9e76e8a182c450e4ff9cbffd
2,273
py
Python
Linked_list/linked_list_v1.py
AjayJohnAlex/Data-Structure
32ec3cb592b89a8828346d7e0209f1702bcd51b3
[ "MIT" ]
null
null
null
Linked_list/linked_list_v1.py
AjayJohnAlex/Data-Structure
32ec3cb592b89a8828346d7e0209f1702bcd51b3
[ "MIT" ]
null
null
null
Linked_list/linked_list_v1.py
AjayJohnAlex/Data-Structure
32ec3cb592b89a8828346d7e0209f1702bcd51b3
[ "MIT" ]
null
null
null
class Node: def __init__(self,data=None): '''Creates a node in the linked list Takes a data and next_node(pointer to next node )''' self.data = data self.next_node = None def __repr__(self): return f"<NODE data is: {self.data} " class LinkedL...
25.539326
93
0.531016
c286a1d3a371c19195c4525508bc6f1c1f9dfd94
1,666
py
Python
apps/examples/display.py
leolani/pepper
2592b867bdb44dd23a0fa58f9f96b9f6083d6804
[ "MIT" ]
3
2020-11-18T10:29:58.000Z
2021-06-03T18:57:43.000Z
apps/examples/display.py
cltl-leolani/pepper
2592b867bdb44dd23a0fa58f9f96b9f6083d6804
[ "MIT" ]
14
2020-09-08T12:41:37.000Z
2020-10-19T08:42:47.000Z
apps/examples/display.py
cltl-leolani/pepper
2592b867bdb44dd23a0fa58f9f96b9f6083d6804
[ "MIT" ]
3
2020-11-27T12:49:08.000Z
2022-02-16T09:49:14.000Z
"""Example Application that displays what it sees in the browser""" from pepper.app_container import ApplicationContainer, Application from pepper.framework.application.context import ContextComponent from pepper.framework.application.face_detection import FaceRecognitionComponent from pepper.framework.application.int...
57.448276
108
0.733493
feeae46bb070918f2ca6f4c098e3593ec787dd00
1,406
py
Python
heudiconv/info.py
AKSoo/heudiconv
dcc590d0be8c514211c8a7323467acce2b338e9c
[ "Apache-2.0" ]
null
null
null
heudiconv/info.py
AKSoo/heudiconv
dcc590d0be8c514211c8a7323467acce2b338e9c
[ "Apache-2.0" ]
null
null
null
heudiconv/info.py
AKSoo/heudiconv
dcc590d0be8c514211c8a7323467acce2b338e9c
[ "Apache-2.0" ]
null
null
null
__version__ = "0.6.0.dev1" __author__ = "HeuDiConv team and contributors" __url__ = "https://github.com/nipy/heudiconv" __packagename__ = 'heudiconv' __description__ = "Heuristic DICOM Converter" __license__ = "Apache 2.0" __longdesc__ = """Convert DICOM dirs based on heuristic info - HeuDiConv uses the dcmstack packag...
28.12
79
0.641536
0900039bd8e1156c1e7759636c823caaec70bd0c
346
py
Python
src/test.py
imoted/pcl_tutorials_ros
3cbcf2c0d14aacbe9f176f370a95de61808db7c3
[ "MIT" ]
null
null
null
src/test.py
imoted/pcl_tutorials_ros
3cbcf2c0d14aacbe9f176f370a95de61808db7c3
[ "MIT" ]
null
null
null
src/test.py
imoted/pcl_tutorials_ros
3cbcf2c0d14aacbe9f176f370a95de61808db7c3
[ "MIT" ]
null
null
null
#!/usr/bin/python import rospy if __name__ == '__main__': rospy.init_node('test_node_python') rate = rospy.Rate(0.5) test_pub = rospy.Publisher('/test_topic', String, queue_size=10) val = 0 for i in range(10): test_pub.publish(str(val)) rospy.loginfo('node is running') rate...
23.066667
68
0.612717
665540c7d335dcd7715ba58249901b3cac09b153
89,806
py
Python
salt/modules/postgres.py
lvg01/salt
9f42882ed7cc340d6dce6692a1ec1e2fe385d1bd
[ "Apache-2.0" ]
1
2016-05-20T09:15:57.000Z
2016-05-20T09:15:57.000Z
salt/modules/postgres.py
lvg01/salt
9f42882ed7cc340d6dce6692a1ec1e2fe385d1bd
[ "Apache-2.0" ]
null
null
null
salt/modules/postgres.py
lvg01/salt
9f42882ed7cc340d6dce6692a1ec1e2fe385d1bd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Module to provide Postgres compatibility to salt. :configuration: In order to connect to Postgres, certain configuration is required in /etc/salt/minion on the relevant minions. Some sample configs might look like:: postgres.host: 'localhost' postgres.port: '5432' ...
29.224211
90
0.529742
05cd0f75b7988074b375e302a4990178337e98b1
510
py
Python
meiduo_mall/meiduo_mall/apps/meiduo_admin/serializers/permission.py
yeluoguigen/meiduo_admin1
2f2a890ea44a4ba201bed0dc3193aef4fc705d10
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/meiduo_admin/serializers/permission.py
yeluoguigen/meiduo_admin1
2f2a890ea44a4ba201bed0dc3193aef4fc705d10
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/meiduo_admin/serializers/permission.py
yeluoguigen/meiduo_admin1
2f2a890ea44a4ba201bed0dc3193aef4fc705d10
[ "MIT" ]
null
null
null
from django.contrib.auth.models import Permission from django.contrib.contenttypes.models import ContentType from rest_framework import serializers class PermissionSerializer(serializers.ModelSerializer): ''' 权限表序列化器 ''' class Meta: model = Permission fields = '__all__' class ContentTyp...
26.842105
58
0.703922
f3e87fb5ccaf4455569a3dfa7c4041c649df4810
688
py
Python
pava/implementation/natives/sun/awt/image/codec/JPEGImageEncoderImpl.py
laffra/pava
54d10cf7f8def2f96e254c0356623d08f221536f
[ "MIT" ]
4
2017-03-30T16:51:16.000Z
2020-10-05T12:25:47.000Z
pava/implementation/natives/sun/awt/image/codec/JPEGImageEncoderImpl.py
laffra/pava
54d10cf7f8def2f96e254c0356623d08f221536f
[ "MIT" ]
null
null
null
pava/implementation/natives/sun/awt/image/codec/JPEGImageEncoderImpl.py
laffra/pava
54d10cf7f8def2f96e254c0356623d08f221536f
[ "MIT" ]
null
null
null
def add_native_methods(clazz): def initEncoder__java_lang_Class__(a0, a1): raise NotImplementedError() def writeJPEGStream__com_sun_image_codec_jpeg_JPEGEncodeParam__java_awt_image_ColorModel__java_io_OutputStream__java_lang_Object__int__int__(a0, a1, a2, a3, a4, a5, a6): raise NotImplementedEr...
62.545455
285
0.880814
725c043298261f335fee7b49092b3d95bf6b2b29
5,516
py
Python
research/inception/inception/slim/inception_test.py
SimiaCryptus/models
c652a23a650070b71e286f1ded93726670161940
[ "Apache-2.0" ]
null
null
null
research/inception/inception/slim/inception_test.py
SimiaCryptus/models
c652a23a650070b71e286f1ded93726670161940
[ "Apache-2.0" ]
null
null
null
research/inception/inception/slim/inception_test.py
SimiaCryptus/models
c652a23a650070b71e286f1ded93726670161940
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
41.164179
80
0.665337
956cecbd4fa6ec86c691551c92ffbcf97a722935
507
py
Python
apps/commons/templatetags/sku_get.py
makethedayunique/pandama-online-store
38c02809a89087f5a6c83fd6ee2c39dab8d66f6c
[ "MIT" ]
null
null
null
apps/commons/templatetags/sku_get.py
makethedayunique/pandama-online-store
38c02809a89087f5a6c83fd6ee2c39dab8d66f6c
[ "MIT" ]
null
null
null
apps/commons/templatetags/sku_get.py
makethedayunique/pandama-online-store
38c02809a89087f5a6c83fd6ee2c39dab8d66f6c
[ "MIT" ]
null
null
null
from django import template from django.template.defaultfilters import stringfilter import json register = template.Library() @register.filter @stringfilter def sku_get(sku_array, sku_number): """Return the string split by sep. Example usage: {{ sku_array|sku_get:sku_number }} """ res = [] for sk...
26.684211
55
0.66075
e0a29cb34a6ff8cb684bd4a399ca26d8f5cc3fd7
301
py
Python
Python/1072.py
Marcelalopes/Questoes-URI
e13894c1bcbcb252ed814d5b5e930d05c7a8494f
[ "MIT" ]
null
null
null
Python/1072.py
Marcelalopes/Questoes-URI
e13894c1bcbcb252ed814d5b5e930d05c7a8494f
[ "MIT" ]
null
null
null
Python/1072.py
Marcelalopes/Questoes-URI
e13894c1bcbcb252ed814d5b5e930d05c7a8494f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Nov 12 16:43:41 2019 @author: marcela """ n = int(input()) a = 0 b = 0 while n: x = int(input()) if (x>= 10 and x <= 20): a +=1 else: b += 1 n-=1 print("{} in".format(a)) print("{} out".format(b))
14.333333
35
0.478405
9949104398f15ca78196200f1bf775c1d004ea44
4,806
py
Python
treewidth/unoptimized_heuristic.py
TeamNotJava/networkx-related
a045d8a0f66fa365775e4d77ae85e5a1ccb271eb
[ "BSD-3-Clause" ]
2
2018-08-02T15:11:20.000Z
2018-09-18T13:20:36.000Z
treewidth/unoptimized_heuristic.py
TeamNotJava/networkx-related
a045d8a0f66fa365775e4d77ae85e5a1ccb271eb
[ "BSD-3-Clause" ]
3
2018-06-06T15:39:33.000Z
2018-06-06T15:40:11.000Z
treewidth/unoptimized_heuristic.py
TeamNotJava/networkx-related
a045d8a0f66fa365775e4d77ae85e5a1ccb271eb
[ "BSD-3-Clause" ]
1
2018-09-18T13:31:01.000Z
2018-09-18T13:31:01.000Z
import networkx as nx import sys # Returns the node with minimum degree or None (if the abort condition is met) def min_degree_heuristic(G): min_degree = sys.maxsize min_node = None for (node, degree) in G.degree: if degree < min_degree: if degree <= 1: # Return early ...
29.127273
102
0.604869
876f3a56616b641f2be36228f14ee4ed68eb70e3
7,000
gyp
Python
third_party/webrtc/src/chromium/src/third_party/class-dump/class-dump.gyp
bopopescu/webrtc-streaming-node
727a441204344ff596401b0253caac372b714d91
[ "MIT" ]
8
2016-02-08T11:59:31.000Z
2020-05-31T15:19:54.000Z
third_party/webrtc/src/chromium/src/third_party/class-dump/class-dump.gyp
bopopescu/webrtc-streaming-node
727a441204344ff596401b0253caac372b714d91
[ "MIT" ]
1
2021-05-05T11:11:31.000Z
2021-05-05T11:11:31.000Z
third_party/webrtc/src/chromium/src/third_party/class-dump/class-dump.gyp
bopopescu/webrtc-streaming-node
727a441204344ff596401b0253caac372b714d91
[ "MIT" ]
7
2016-02-09T09:28:14.000Z
2020-07-25T19:03:36.000Z
# Copyright (c) 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'mac_deployment_target': '10.9', 'mac_sdk_min': '10.9', }, 'targets': [ { 'target_name': 'class-dump', 'to...
36.458333
72
0.607714
17bc9fb6706efb9d8acbddd05e149901d0c164c7
2,217
py
Python
lineuzinho.py
PedroRossiSR/lineuzinho
78a538a450683b0f21cf12511d00ce968d477e1f
[ "MIT" ]
null
null
null
lineuzinho.py
PedroRossiSR/lineuzinho
78a538a450683b0f21cf12511d00ce968d477e1f
[ "MIT" ]
null
null
null
lineuzinho.py
PedroRossiSR/lineuzinho
78a538a450683b0f21cf12511d00ce968d477e1f
[ "MIT" ]
null
null
null
import os from greeter import Greeter from forwarder import Forwarder from beaner import Beaner class Lineuzinho: def __init__(self): self.API_TOKEN = "1700885261:AAETCokNpqNDk44x3d5XASfnQfzxiNOKWfI" ## os.environ["SECRET"] self.contatinhosSheet = "http://bit.ly/contatosbcc021" self.github...
47.170213
302
0.727109
f47ac23fb53f60cf986ed68abddbfb4c801bb2ed
508
py
Python
005/per-user-todo/main/todo/views/delete.py
akiracadet/django-projects-v1
35ab3b88ed9bb9fab7e3d32a8fb838fff6571937
[ "MIT" ]
null
null
null
005/per-user-todo/main/todo/views/delete.py
akiracadet/django-projects-v1
35ab3b88ed9bb9fab7e3d32a8fb838fff6571937
[ "MIT" ]
5
2021-03-30T14:07:08.000Z
2021-09-22T19:28:43.000Z
006/ui-design/main/todo/views/delete.py
akiracadet/django-projects-v1
35ab3b88ed9bb9fab7e3d32a8fb838fff6571937
[ "MIT" ]
null
null
null
from django.shortcuts import redirect, render from django.views import View from todo.models import Todo class TodoDeleteView(View): template_name = 'todo/delete.html' def get(self, request, *args, **kwargs): return render(request, self.template_name, context=None) def post(self, request, *args...
26.736842
64
0.659449
e79ca5a16d4a123d820d0b9984e70342d3438f27
1,907
py
Python
DQMOffline/CalibTracker/test/template_DQMProfileConverter_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
DQMOffline/CalibTracker/test/template_DQMProfileConverter_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
DQMOffline/CalibTracker/test/template_DQMProfileConverter_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms process = cms.Process("ICALIB") process.load("DQMServices.Core.DQM_cfg") process.MessageLogger = cms.Service("MessageLogger", debugModules = cms.untracked.vstring('*'), cout = cms.untracked.PSet( threshold = cms.untracked.string('INFO') ), destinations ...
34.053571
79
0.738332
7879c4cf76e431ce232354188e4a85f284dfe7f1
2,318
py
Python
app/core/tests/test_models.py
EyesOnly1987/external_feed_api
2dc71052074a890ebcedde5140a6940a30044773
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
EyesOnly1987/external_feed_api
2dc71052074a890ebcedde5140a6940a30044773
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
EyesOnly1987/external_feed_api
2dc71052074a890ebcedde5140a6940a30044773
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model from core import models def sample_user(email='test@londonappdev.com', password='testpass'): """Create a sample user""" return get_user_model().objects.create_user(email, password) class ModelTests(TestCase): def test_crea...
30.5
69
0.63503
fadfadff872f3105c5ef74f53ec439764450a12c
5,007
py
Python
sdk/python/pulumi_azure_native/recoveryservices/get_protection_policy.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/recoveryservices/get_protection_policy.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/recoveryservices/get_protection_policy.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilities, _tables from ...
33.604027
146
0.633513
92f74f1664a78d1952f7483b42a4a2f77a8d9922
1,522
py
Python
app/exo_currency/utils/fixer_currency_exchanger.py
jcazallasc/exo-investing
c32900dd2fd426a15f3b02389d75b51427e5df66
[ "MIT" ]
null
null
null
app/exo_currency/utils/fixer_currency_exchanger.py
jcazallasc/exo-investing
c32900dd2fd426a15f3b02389d75b51427e5df66
[ "MIT" ]
null
null
null
app/exo_currency/utils/fixer_currency_exchanger.py
jcazallasc/exo-investing
c32900dd2fd426a15f3b02389d75b51427e5df66
[ "MIT" ]
null
null
null
import json import os import requests from rest_framework import status from exo_currency.utils.base_currency_exchanger import BaseCurrencyExchanger class FixerCurrencyExchanger(BaseCurrencyExchanger): API_URL = os.getenv('FIXER_API_URL') API_KEY = os.getenv('FIXER_API_KEY') def get_exchange_rate_data...
25.79661
94
0.629435
75679259c5ed73b4a70a0282130eba5b799efe03
965
py
Python
aoc/day10/__init__.py
scorphus/advent-of-code-2020
12270ccc86475a18e587007da0fbfc6c9ef3a6a8
[ "BSD-3-Clause" ]
9
2020-12-04T17:40:49.000Z
2022-01-08T03:14:21.000Z
aoc/day10/__init__.py
scorphus/advent-of-code-2020
12270ccc86475a18e587007da0fbfc6c9ef3a6a8
[ "BSD-3-Clause" ]
1
2021-02-12T20:49:33.000Z
2021-02-12T20:49:33.000Z
aoc/day10/__init__.py
scorphus/advent-of-code-2020
12270ccc86475a18e587007da0fbfc6c9ef3a6a8
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # This file is part of Advent of Code 2020 # https://github.com/scorphus/advent-of-code-2020 # Licensed under the BSD-3-Clause license: # https://opensource.org/licenses/BSD-3-Clause # Copyright (c) 2020, Pablo S. Blum de Aguiar <scorphus@gmail.com> from aoc import integ...
26.081081
79
0.609326
a066130b402494d5493cd54bff4b791715bc426e
1,810
py
Python
contrib/runners/announcement_runner/setup.py
saucetray/st2
8f507d6c8d9483c8371e386fe2b7998596856fd7
[ "Apache-2.0" ]
2
2021-08-04T01:04:06.000Z
2021-08-04T01:04:08.000Z
contrib/runners/announcement_runner/setup.py
saucetray/st2
8f507d6c8d9483c8371e386fe2b7998596856fd7
[ "Apache-2.0" ]
1
2022-03-31T03:53:22.000Z
2022-03-31T03:53:22.000Z
contrib/runners/announcement_runner/setup.py
saucetray/st2
8f507d6c8d9483c8371e386fe2b7998596856fd7
[ "Apache-2.0" ]
1
2019-10-11T14:42:28.000Z
2019-10-11T14:42:28.000Z
# -*- coding: utf-8 -*- # Copyright 2019 Extreme Networks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
32.909091
95
0.749171
3d35477f9210e8a14b78209d2c470acec21ae950
6,104
py
Python
main.py
ramondfdez/kalman-track-TFG
f185ccf37dfa5fe27720a06583fcd6b7c64a7f03
[ "MIT" ]
null
null
null
main.py
ramondfdez/kalman-track-TFG
f185ccf37dfa5fe27720a06583fcd6b7c64a7f03
[ "MIT" ]
null
null
null
main.py
ramondfdez/kalman-track-TFG
f185ccf37dfa5fe27720a06583fcd6b7c64a7f03
[ "MIT" ]
null
null
null
import cv2 import numpy as np import os import math import sys import json import time import argparse import tensorflow as tf from mrcnn import utils from mrcnn import visualize import mrcnn.model as modellib from mrcnn.model import log from sort import Sort sys.path.append(os.path.join("coco/")) # Path dataset co...
30.52
106
0.629915
1d20073c036d909c85054129637ad7db68a00b4b
155
py
Python
src/sentry/mediators/external_requests/__init__.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
2
2019-03-04T12:45:54.000Z
2019-03-04T12:45:55.000Z
src/sentry/mediators/external_requests/__init__.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
196
2019-06-10T08:34:10.000Z
2022-02-22T01:26:13.000Z
src/sentry/mediators/external_requests/__init__.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
1
2017-02-09T06:36:57.000Z
2017-02-09T06:36:57.000Z
from __future__ import absolute_import from .select_requester import SelectRequester # NOQA from .issue_link_requester import IssueLinkRequester # NOQA
31
60
0.851613
50d4d86f469f4638f6bd31275c242deef74bbd42
454
py
Python
minos/migrations/0010_auto_20160713_2221.py
TomWerner/HawkeyeChallenge
69652978b017ebd443c807b8d0091ded2598c86c
[ "MIT" ]
1
2016-07-27T19:10:20.000Z
2016-07-27T19:10:20.000Z
minos/migrations/0010_auto_20160713_2221.py
TomWerner/HawkeyeChallenge
69652978b017ebd443c807b8d0091ded2598c86c
[ "MIT" ]
null
null
null
minos/migrations/0010_auto_20160713_2221.py
TomWerner/HawkeyeChallenge
69652978b017ebd443c807b8d0091ded2598c86c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.2 on 2016-07-14 02:21 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('minos', '0009_auto_20160713_2123'), ] operations = [ migrations.AlterField( ...
21.619048
50
0.618943
44bc96a290fb5e90f008bb903afda8d6a33eb4a6
1,024
py
Python
jirafs/commands/subtask.py
coddingtonbear/jirafs
2eeeeee2188f7945560008e76dfe2a15c4a45da3
[ "MIT" ]
119
2015-01-06T08:05:38.000Z
2022-03-22T21:19:50.000Z
jirafs/commands/subtask.py
coddingtonbear/jirafs
2eeeeee2188f7945560008e76dfe2a15c4a45da3
[ "MIT" ]
54
2015-03-18T20:37:48.000Z
2022-03-23T14:26:26.000Z
jirafs/commands/subtask.py
coddingtonbear/jirafs
2eeeeee2188f7945560008e76dfe2a15c4a45da3
[ "MIT" ]
16
2015-04-29T18:39:31.000Z
2020-09-23T12:30:49.000Z
from jirafs import utils from jirafs.plugin import CommandPlugin class Command(CommandPlugin): """Create a subtask of a given issue.""" MIN_VERSION = "2.0.0" MAX_VERSION = "3.0.0" def main(self, folder, args, **kwargs): summary = " ".join(args.summary) issue_data = { "pr...
29.257143
66
0.59668
8598303acfafbc81aaf7689fea27cd9d5c38460f
32
py
Python
Python/cubesat2017/soft/embedded/cpu/boot.py
Misha91908/Portfolio
c10b06462ec45f039778c77aa6c84e871cac34f6
[ "MIT" ]
3
2017-09-03T17:17:44.000Z
2017-12-10T12:26:46.000Z
Python/cubesat2017/soft/embedded/cpu/boot.py
Misha91908/Portfolio
c10b06462ec45f039778c77aa6c84e871cac34f6
[ "MIT" ]
null
null
null
Python/cubesat2017/soft/embedded/cpu/boot.py
Misha91908/Portfolio
c10b06462ec45f039778c77aa6c84e871cac34f6
[ "MIT" ]
2
2017-10-01T01:10:55.000Z
2018-07-15T19:49:29.000Z
import pyb pyb.main('main.py')
8
19
0.6875
c2e5d37212e62ac6be89f006783fa635129f1882
2,836
py
Python
exec_helpers/_helpers.py
python-useful-helpers/exec-helpers
3e0adfa7dded72ac1c9c93bd88db070f4c9050b6
[ "Apache-2.0" ]
12
2018-03-23T23:37:40.000Z
2021-07-16T16:07:28.000Z
exec_helpers/_helpers.py
python-useful-helpers/exec-helpers
3e0adfa7dded72ac1c9c93bd88db070f4c9050b6
[ "Apache-2.0" ]
111
2018-03-26T14:10:52.000Z
2021-07-12T07:12:45.000Z
exec_helpers/_helpers.py
python-useful-helpers/exec-helpers
3e0adfa7dded72ac1c9c93bd88db070f4c9050b6
[ "Apache-2.0" ]
6
2018-03-26T13:37:21.000Z
2018-09-07T03:35:09.000Z
"""Shared helpers.""" from __future__ import annotations # Standard Library import functools import re import shlex import typing def string_bytes_bytearray_as_bytes(src: typing.Union[str, bytes, bytearray]) -> bytes: """Get bytes string from string/bytes/bytearray union. :param src: source string or bytes...
29.852632
116
0.657616