hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 10
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 248 | max_stars_repo_name stringlengths 5 125 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 248 | max_issues_repo_name stringlengths 5 125 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 248 | max_forks_repo_name stringlengths 5 125 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 5 2.06M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.03M | alphanum_fraction float64 0 1 | count_classes int64 0 1.6M | score_classes float64 0 1 | count_generators int64 0 651k | score_generators float64 0 1 | count_decorators int64 0 990k | score_decorators float64 0 1 | count_async_functions int64 0 235k | score_async_functions float64 0 1 | count_documentation int64 0 1.04M | score_documentation float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
360b21f79c3d1e633d2504158f0ac62516a639e7 | 666 | py | Python | bot/welcome_leave.py | Thorappan7/loki | 26bed530997907c93914d6ac42f4a2ad62dc365c | [
"BSD-3-Clause"
] | null | null | null | bot/welcome_leave.py | Thorappan7/loki | 26bed530997907c93914d6ac42f4a2ad62dc365c | [
"BSD-3-Clause"
] | null | null | null | bot/welcome_leave.py | Thorappan7/loki | 26bed530997907c93914d6ac42f4a2ad62dc365c | [
"BSD-3-Clause"
] | null | null | null | from pyrogram import Client as bot, filters, emoji
MENTION = "[{}](tg://user?id={})"
text1="hi{} {} welcome to Group Chat"
group ="jangobotz"
@bot.on_message(filters.chat(group) &filters.new_chat_members)
async def welcome(bot, message):
new_members = [u.mention for u in message.new_chat_members]
TEXT2= te... | 33.3 | 140 | 0.683183 | 0 | 0 | 0 | 0 | 687 | 0.82177 | 195 | 0.233254 | 346 | 0.413876 |
360b7ea47f3ce200b5ccf6c834ad2ed52c42e4f9 | 2,079 | py | Python | script.deluge/resources/lib/basictypes/xmlgenerator.py | ogero/Deluge-Manager-XBMC | 10c4f2a93ac1fffba01209444ba5e597036b968b | [
"MIT"
] | null | null | null | script.deluge/resources/lib/basictypes/xmlgenerator.py | ogero/Deluge-Manager-XBMC | 10c4f2a93ac1fffba01209444ba5e597036b968b | [
"MIT"
] | null | null | null | script.deluge/resources/lib/basictypes/xmlgenerator.py | ogero/Deluge-Manager-XBMC | 10c4f2a93ac1fffba01209444ba5e597036b968b | [
"MIT"
] | null | null | null | import locale
from xml.sax import saxutils
defaultEncoding = locale.getdefaultlocale()[-1]
class Generator(saxutils.XMLGenerator):
"""Friendly generator for XML code"""
def __init__(self, out=None, encoding="utf-8"):
"""Initialise the generator
Just overrides the default encoding of the bas... | 32.484375 | 82 | 0.619529 | 1,981 | 0.952862 | 0 | 0 | 0 | 0 | 0 | 0 | 481 | 0.231361 |
360ce588463dab38c7d8f02e3de4947c05f44448 | 4,877 | py | Python | scrape.py | darenr/contemporary-art--rss-scraper | 92d66d18712e781e6e96980004a17f810568e652 | [
"MIT"
] | null | null | null | scrape.py | darenr/contemporary-art--rss-scraper | 92d66d18712e781e6e96980004a17f810568e652 | [
"MIT"
] | null | null | null | scrape.py | darenr/contemporary-art--rss-scraper | 92d66d18712e781e6e96980004a17f810568e652 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import json
import codecs
import traceback
import sys
import requests
import requests_cache
import feedparser
import collections
from bs4 import BeautifulSoup
from urlparse import urlparse, urljoin
one_day = 60 * 60 * 24
requests_cache.install_cache(
'rss_cache', backend='sqlite', expire_... | 29.029762 | 96 | 0.552184 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,145 | 0.234775 |
360e9e36a16342872103b6bba5218132e5fe10ac | 3,102 | py | Python | src/main/admin_api/endpoint/table_endpoint.py | lemilliard/kibo-db | 2fa1832aa6a8457b428870491aaf64e399cca4d6 | [
"MIT"
] | null | null | null | src/main/admin_api/endpoint/table_endpoint.py | lemilliard/kibo-db | 2fa1832aa6a8457b428870491aaf64e399cca4d6 | [
"MIT"
] | null | null | null | src/main/admin_api/endpoint/table_endpoint.py | lemilliard/kibo-db | 2fa1832aa6a8457b428870491aaf64e399cca4d6 | [
"MIT"
] | null | null | null | from src.main.common.model import endpoint
class TableEndpoint(endpoint.Endpoint):
@classmethod
def do_get(cls, *args, **kwargs):
from src.main.admin_api.utils.descriptor_utils import DescriptorUtils
db_system_name = kwargs.get("db_system_name")
tb_system_name = kwargs.get(... | 40.815789 | 106 | 0.624758 | 3,052 | 0.983881 | 0 | 0 | 2,981 | 0.960993 | 0 | 0 | 145 | 0.046744 |
360ffa9621191899023f1d394dd125777d985f49 | 10,326 | py | Python | tools/testbed_generator.py | vkolli/5.0_contrail-test | 1793f169a94100400a1b2fafbad21daf5aa4d48a | [
"Apache-2.0"
] | null | null | null | tools/testbed_generator.py | vkolli/5.0_contrail-test | 1793f169a94100400a1b2fafbad21daf5aa4d48a | [
"Apache-2.0"
] | 1 | 2021-06-01T22:18:29.000Z | 2021-06-01T22:18:29.000Z | tools/testbed_generator.py | lmadhusudhanan/contrail-test | bd39ff19da06a20bd79af8c25e3cde07375577cf | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import yaml
import json
import sys
import re
import argparse
from distutils.version import LooseVersion
from collections import defaultdict
discovery_port = '5998'
config_api_port = '8082'
analytics_api_port = '8081'
control_port = '8083'
dns_port = '8092'
agent_port = '8085'
def get_neutron_userna... | 43.56962 | 126 | 0.643521 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,850 | 0.276002 |
3610620368663e7a20b5544000c84c6865a97120 | 88 | py | Python | sum of digits using recursion.py | kingRovo/PythonCodingChalenge | b62938592df10ccafec9930b69c14c778e19ad37 | [
"bzip2-1.0.6"
] | 1 | 2021-08-02T16:52:55.000Z | 2021-08-02T16:52:55.000Z | sum of digits using recursion.py | kingRovo/PythonCodingChalenge | b62938592df10ccafec9930b69c14c778e19ad37 | [
"bzip2-1.0.6"
] | null | null | null | sum of digits using recursion.py | kingRovo/PythonCodingChalenge | b62938592df10ccafec9930b69c14c778e19ad37 | [
"bzip2-1.0.6"
] | null | null | null | def rec_sum(n):
if(n<=1):
return n
else:
return(n+rec_sum(n-1))
| 14.666667 | 30 | 0.477273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
36111dceb7e38307b2a633510d6f416394679b79 | 9,292 | py | Python | visualization/POF/data/Base2DReader.py | alvaro-budria/body2hands | 0eba438b4343604548120bdb03c7e1cb2b08bcd6 | [
"BSD-3-Clause"
] | 63 | 2021-05-14T02:55:16.000Z | 2022-03-13T01:51:12.000Z | visualization/POF/data/Base2DReader.py | human2b/body2hands | 8ab4b206dc397c3b326f2b4ec9448c84ee8801fe | [
"BSD-3-Clause"
] | 9 | 2021-06-24T09:59:41.000Z | 2021-12-31T08:15:20.000Z | visualization/POF/data/Base2DReader.py | human2b/body2hands | 8ab4b206dc397c3b326f2b4ec9448c84ee8801fe | [
"BSD-3-Clause"
] | 9 | 2021-05-17T03:33:28.000Z | 2022-02-17T02:30:44.000Z | import tensorflow as tf
from data.BaseReader import BaseReader
import numpy as np
class Base2DReader(BaseReader):
# inherit from BaseReader, implement different 2D cropping (cropping from 2D)
def __init__(self, objtype=0, shuffle=True, batch_size=1, crop_noise=False):
super(Base2DReader, self).__init... | 57.006135 | 183 | 0.574365 | 9,207 | 0.990852 | 0 | 0 | 0 | 0 | 0 | 0 | 1,328 | 0.142919 |
361199dea80437ba6ce5df8eea417f22ea366fce | 301 | py | Python | api/indexer/tzprofiles_indexer/models.py | clehner/tzprofiles | e44497bccf28d2d75cfdfa0c417dbecc0f342c12 | [
"Apache-2.0"
] | null | null | null | api/indexer/tzprofiles_indexer/models.py | clehner/tzprofiles | e44497bccf28d2d75cfdfa0c417dbecc0f342c12 | [
"Apache-2.0"
] | null | null | null | api/indexer/tzprofiles_indexer/models.py | clehner/tzprofiles | e44497bccf28d2d75cfdfa0c417dbecc0f342c12 | [
"Apache-2.0"
] | null | null | null | from tortoise import Model, fields
class TZProfile(Model):
account = fields.CharField(36, pk=True)
contract = fields.CharField(36)
valid_claims = fields.JSONField()
invalid_claims = fields.JSONField()
errored = fields.BooleanField()
class Meta:
table = "tzprofiles"
| 23.153846 | 43 | 0.69103 | 263 | 0.873754 | 0 | 0 | 0 | 0 | 0 | 0 | 12 | 0.039867 |
3611a8921184c2a719ec2f7a6c28b90498243d94 | 6,006 | py | Python | pyscripts/Backups/wikipull.py | mrchaos10/AGRICULTURAL-DOMAIN-SPECIES-IDENTIFICATION-AND-SEMI-SUPERVISED-QUERYING-SYSTEM | 2697c806e4de565767efac276d58b3b3696e4893 | [
"MIT"
] | null | null | null | pyscripts/Backups/wikipull.py | mrchaos10/AGRICULTURAL-DOMAIN-SPECIES-IDENTIFICATION-AND-SEMI-SUPERVISED-QUERYING-SYSTEM | 2697c806e4de565767efac276d58b3b3696e4893 | [
"MIT"
] | null | null | null | pyscripts/Backups/wikipull.py | mrchaos10/AGRICULTURAL-DOMAIN-SPECIES-IDENTIFICATION-AND-SEMI-SUPERVISED-QUERYING-SYSTEM | 2697c806e4de565767efac276d58b3b3696e4893 | [
"MIT"
] | null | null | null | #api for extracting the results from wikidata
#https://www.wikidata.org/w/api.php?search=las&language=en&uselang=en&format=jsonfm&limit=25&action=wbsearchentities
# importing modules
import requests
from lxml import etree
import wikipedia
import sys
import re
import pickle
import numpy as np
import os
import sys
i... | 32.290323 | 141 | 0.705295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,671 | 0.278222 |
3612229195c84fc7e099e8d1a5caa6236355676b | 327 | py | Python | alice.py | atamurad/coinflip | ded3877c808baae843b55c1cfa4685459ba71b29 | [
"MIT"
] | 1 | 2022-02-24T09:29:53.000Z | 2022-02-24T09:29:53.000Z | alice.py | atamurad/coinflip | ded3877c808baae843b55c1cfa4685459ba71b29 | [
"MIT"
] | null | null | null | alice.py | atamurad/coinflip | ded3877c808baae843b55c1cfa4685459ba71b29 | [
"MIT"
] | null | null | null | from Crypto.Util.number import getRandomRange
from sympy.ntheory.residue_ntheory import jacobi_symbol
N = int(input("N ? "))
x = getRandomRange(2, N)
x2 = (x*x) % N
J = jacobi_symbol(x, N)
print(f"x2 = {x2}")
guess = int(input("j_guess ? "))
print(f"x = {x}")
print("Outcome = Heads" if guess == J else "Outcome = T... | 20.4375 | 61 | 0.663609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 74 | 0.2263 |
36134c0670c8fbaeb545400c9c8d63641cf7bd8e | 248 | py | Python | accounts/management/commands/run-stats.py | ChristianJStarr/Scratch-Bowling-Series-Website | 283c7b1b38ffce660464889de3f4dc8050b4008c | [
"MIT"
] | 1 | 2021-05-19T19:30:40.000Z | 2021-05-19T19:30:40.000Z | accounts/management/commands/run-stats.py | ChristianJStarr/Scratch-Bowling-Series-Website | 283c7b1b38ffce660464889de3f4dc8050b4008c | [
"MIT"
] | null | null | null | accounts/management/commands/run-stats.py | ChristianJStarr/Scratch-Bowling-Series-Website | 283c7b1b38ffce660464889de3f4dc8050b4008c | [
"MIT"
] | null | null | null | from django.core.management.base import BaseCommand, CommandError
from scoreboard.ranking import calculate_statistics
class Command(BaseCommand):
help = 'Run Statistics'
def handle(self, *args, **options):
calculate_statistics() | 24.8 | 65 | 0.758065 | 127 | 0.512097 | 0 | 0 | 0 | 0 | 0 | 0 | 16 | 0.064516 |
36136b9058bdd45bb7644ba4b0f512b2d1902d42 | 796 | py | Python | LeetCode/TwoSum.py | batumoglu/Python_Algorithms | f586f386693eaddb64d6a654a89af177fd0e838f | [
"MIT"
] | null | null | null | LeetCode/TwoSum.py | batumoglu/Python_Algorithms | f586f386693eaddb64d6a654a89af177fd0e838f | [
"MIT"
] | null | null | null | LeetCode/TwoSum.py | batumoglu/Python_Algorithms | f586f386693eaddb64d6a654a89af177fd0e838f | [
"MIT"
] | null | null | null | class Solution(object):
def twoSum(self, nums, target):
seen = {}
output = []
for i in range(len(nums)):
k = target - nums[i]
if k in seen:
output.append(seen[k])
output.append(i)
del seen[k]
else:
... | 24.121212 | 38 | 0.442211 | 675 | 0.84799 | 0 | 0 | 0 | 0 | 0 | 0 | 58 | 0.072864 |
3613905669a706db1108a17ee990707e01f2f9a0 | 9,028 | py | Python | src/rospy_crazyflie/crazyflie_server/crazyflie_control.py | JGSuw/rospy_crazyflie | 696aef900138c764419d33e2c8d44ca3f3e33fa1 | [
"BSD-2-Clause-FreeBSD"
] | 5 | 2019-07-26T22:19:53.000Z | 2021-03-04T12:44:35.000Z | src/rospy_crazyflie/crazyflie_server/crazyflie_control.py | JGSuw/rospy_crazyflie | 696aef900138c764419d33e2c8d44ca3f3e33fa1 | [
"BSD-2-Clause-FreeBSD"
] | 4 | 2021-02-17T23:30:48.000Z | 2021-11-29T18:33:05.000Z | src/rospy_crazyflie/crazyflie_server/crazyflie_control.py | JGSuw/rospy_crazyflie | 696aef900138c764419d33e2c8d44ca3f3e33fa1 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-04-24T19:00:31.000Z | 2019-04-24T19:00:31.000Z | """
Copyright (c) 2018, Joseph Sullivan
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the follo... | 37.305785 | 85 | 0.620735 | 7,131 | 0.789876 | 0 | 0 | 0 | 0 | 0 | 0 | 2,144 | 0.237483 |
3613d5c133ef8f38bb7353d844f6628f9fe5e6c6 | 901 | py | Python | examples/imagenet_resnet50.py | inaccel/keras | bebd0ca930b9e2c2aee320e2e40b3d00cd15e46a | [
"Apache-2.0"
] | 1 | 2021-01-27T12:20:35.000Z | 2021-01-27T12:20:35.000Z | examples/imagenet_resnet50.py | inaccel/keras | bebd0ca930b9e2c2aee320e2e40b3d00cd15e46a | [
"Apache-2.0"
] | null | null | null | examples/imagenet_resnet50.py | inaccel/keras | bebd0ca930b9e2c2aee320e2e40b3d00cd15e46a | [
"Apache-2.0"
] | null | null | null | import numpy as np
import time
from inaccel.keras.applications.resnet50 import decode_predictions, ResNet50
from inaccel.keras.preprocessing.image import ImageDataGenerator, load_img
model = ResNet50(weights='imagenet')
data = ImageDataGenerator(dtype='int8')
images = data.flow_from_directory('imagenet/', target_siz... | 30.033333 | 102 | 0.739179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 115 | 0.127636 |
3613f877b238035dadd508a419d964a6d0b3a50e | 1,084 | py | Python | api/permissions.py | letsdowork/yamdb_api | f493309dc52528d980463047d311d898714f3111 | [
"MIT"
] | null | null | null | api/permissions.py | letsdowork/yamdb_api | f493309dc52528d980463047d311d898714f3111 | [
"MIT"
] | null | null | null | api/permissions.py | letsdowork/yamdb_api | f493309dc52528d980463047d311d898714f3111 | [
"MIT"
] | null | null | null | from rest_framework.permissions import BasePermission, SAFE_METHODS
from .models import User
class IsAdminOrReadOnly(BasePermission):
def has_permission(self, request, view):
return bool(
request.method in SAFE_METHODS or
request.user and request.user.is_authenticated and
... | 31.882353 | 67 | 0.681734 | 982 | 0.905904 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
3613fd30924745bd186e0751c87237612b35913e | 8,090 | py | Python | morphological_classifier/classifier.py | selflect11/morphological_classifier | 2ef3c3e1e894220238a36b633d4a164a14fe820f | [
"MIT"
] | null | null | null | morphological_classifier/classifier.py | selflect11/morphological_classifier | 2ef3c3e1e894220238a36b633d4a164a14fe820f | [
"MIT"
] | null | null | null | morphological_classifier/classifier.py | selflect11/morphological_classifier | 2ef3c3e1e894220238a36b633d4a164a14fe820f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from morphological_classifier.perceptron import AveragedPerceptron
from morphological_classifier.performance_metrics import PerformanceMetrics
from morphological_classifier.stats_plot import StatsPlotter
from morphological_classifier import constants, utils
import numpy as np
from collecti... | 38.341232 | 92 | 0.583931 | 7,673 | 0.948455 | 0 | 0 | 0 | 0 | 0 | 0 | 1,463 | 0.180841 |
361427d326c18b286127aad246549f8822f63a94 | 4,263 | py | Python | autoprover/evaluation/evaluation.py | nclab-admin/autoprover | 3fe5a0bb6132ae320461d538bb06c4f0fd604b27 | [
"MIT"
] | 1 | 2019-01-10T08:04:58.000Z | 2019-01-10T08:04:58.000Z | autoprover/evaluation/evaluation.py | nclab-admin/autoprover | 3fe5a0bb6132ae320461d538bb06c4f0fd604b27 | [
"MIT"
] | null | null | null | autoprover/evaluation/evaluation.py | nclab-admin/autoprover | 3fe5a0bb6132ae320461d538bb06c4f0fd604b27 | [
"MIT"
] | 1 | 2019-10-08T16:47:58.000Z | 2019-10-08T16:47:58.000Z | """evaluation function for chromosome
"""
import subprocess
from subprocess import PIPE, STDOUT
from autoprover.evaluation.coqstate import CoqState
def preprocess(theorem, chromosome):
"""
convert chromosome to complete Coq script
Args:
theorem (list): a list of string contains theorem or some pr... | 29 | 79 | 0.601454 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,535 | 0.360075 |
3616727077997c5d64715fd00bfc6be4f8ba4ad8 | 1,323 | py | Python | steapy/velocity_field.py | Sparsh-Sharma/SteaPy | d6f3bee7eb1385c83f65f345d466ef740db4ed3b | [
"MIT"
] | 1 | 2017-04-28T13:05:13.000Z | 2017-04-28T13:05:13.000Z | steapy/velocity_field.py | Sparsh-Sharma/SteaPy | d6f3bee7eb1385c83f65f345d466ef740db4ed3b | [
"MIT"
] | null | null | null | steapy/velocity_field.py | Sparsh-Sharma/SteaPy | d6f3bee7eb1385c83f65f345d466ef740db4ed3b | [
"MIT"
] | null | null | null | import os
import numpy
from numpy import *
import math
from scipy import integrate, linalg
from matplotlib import pyplot
from pylab import *
from .integral import *
def get_velocity_field(panels, freestream, X, Y):
"""
Computes the velocity field on a given 2D mesh.
Parameters
---------
panel... | 29.4 | 87 | 0.652305 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 661 | 0.499622 |
3616ce719b349e94d2bd7c4da3e42707eb0de49d | 4,125 | py | Python | admin/hams_admin/container_manager.py | hku-systems/hams | 3a5720657252c650c9a6c5d9b674f7ea6153e557 | [
"Apache-2.0"
] | 6 | 2020-08-19T11:46:23.000Z | 2021-12-24T07:34:15.000Z | admin/hams_admin/container_manager.py | hku-systems/hams | 3a5720657252c650c9a6c5d9b674f7ea6153e557 | [
"Apache-2.0"
] | 1 | 2021-03-25T23:40:15.000Z | 2021-03-25T23:40:15.000Z | admin/hams_admin/container_manager.py | hku-systems/hams | 3a5720657252c650c9a6c5d9b674f7ea6153e557 | [
"Apache-2.0"
] | 2 | 2020-10-31T16:48:39.000Z | 2021-03-07T09:14:25.000Z | import abc
from .exceptions import HamsException
import logging
# Constants
HAMS_INTERNAL_QUERY_PORT = 1337
HAMS_INTERNAL_MANAGEMENT_PORT = 1338
HAMS_INTERNAL_RPC_PORT = 7000
HAMS_INTERNAL_METRIC_PORT = 1390
HAMS_INTERNAL_REDIS_PORT = 6379
HAMS_DOCKER_LABEL = "ai.hams.container.label"
HAMS_NAME_LABEL = "ai.hams.name"... | 28.448276 | 137 | 0.701333 | 2,476 | 0.600242 | 0 | 0 | 1,847 | 0.447758 | 0 | 0 | 1,047 | 0.253818 |
36170542f3bcc2d21452673199202e71e6245707 | 11,044 | py | Python | solidata_api/api/api_auth/endpoint_user_tokens.py | co-demos/solidata-backend | 2c67aecbd457cdec78b0772d78dcf699e20dd3dc | [
"MIT"
] | 2 | 2019-12-17T22:27:53.000Z | 2020-06-22T12:47:37.000Z | solidata_api/api/api_auth/endpoint_user_tokens.py | co-demos/solidata-backend | 2c67aecbd457cdec78b0772d78dcf699e20dd3dc | [
"MIT"
] | 13 | 2019-06-16T15:42:33.000Z | 2022-02-26T05:12:34.000Z | solidata_api/api/api_auth/endpoint_user_tokens.py | co-demos/solidata-backend | 2c67aecbd457cdec78b0772d78dcf699e20dd3dc | [
"MIT"
] | 1 | 2019-12-17T22:27:58.000Z | 2019-12-17T22:27:58.000Z | # -*- encoding: utf-8 -*-
"""
endpoint_user_tokens.py
"""
from solidata_api.api import *
# from log_config import log, pformat
log.debug(">>> api_auth ... creating api endpoints for USER_TOKENS")
### create namespace
ns = Namespace('tokens', description='User : tokens freshening related endpoints')
### import mo... | 30.174863 | 104 | 0.611554 | 9,105 | 0.82443 | 0 | 0 | 9,480 | 0.858385 | 0 | 0 | 5,886 | 0.532959 |
361738fea8f68576a66d9ee50d5cd2a6da5685cc | 4,750 | py | Python | tektonbundle/tektonbundle.py | chmouel/tektonbundle | 6d44e47f9b6d5c2d1da4663f9c7bfcab50108074 | [
"MIT"
] | 3 | 2020-10-22T04:57:21.000Z | 2021-06-03T16:03:44.000Z | tektonbundle/tektonbundle.py | chmouel/tektonbundle | 6d44e47f9b6d5c2d1da4663f9c7bfcab50108074 | [
"MIT"
] | 3 | 2020-10-27T14:30:33.000Z | 2020-11-12T11:39:07.000Z | tektonbundle/tektonbundle.py | chmouel/tektonbundle | 6d44e47f9b6d5c2d1da4663f9c7bfcab50108074 | [
"MIT"
] | null | null | null | """Main module."""
import copy
import io
import logging
import re
from typing import Dict, List
import yaml
log = logging.getLogger(__name__)
TEKTON_TYPE = ("pipeline", "pipelinerun", "task", "taskrun", "condition")
class TektonBundleError(Exception):
pass
def tpl_apply(yaml_obj, parameters):
def _apply... | 32.986111 | 95 | 0.550105 | 44 | 0.009263 | 0 | 0 | 0 | 0 | 0 | 0 | 1,157 | 0.243579 |
3617e8e260511cf8ba4c78d54d81b23de02b0480 | 2,385 | py | Python | Scripts/sims4communitylib/classes/time/common_alarm_handle.py | ColonolNutty/Sims4CommunityLibrary | 684f28dc3c7deb4d9fd520e21e63942b65a91d31 | [
"CC-BY-4.0"
] | 118 | 2019-08-31T04:33:18.000Z | 2022-03-28T21:12:14.000Z | Scripts/sims4communitylib/classes/time/common_alarm_handle.py | ColonolNutty/Sims4CommunityLibrary | 684f28dc3c7deb4d9fd520e21e63942b65a91d31 | [
"CC-BY-4.0"
] | 15 | 2019-12-05T01:29:46.000Z | 2022-02-18T17:13:46.000Z | Scripts/sims4communitylib/classes/time/common_alarm_handle.py | ColonolNutty/Sims4CommunityLibrary | 684f28dc3c7deb4d9fd520e21e63942b65a91d31 | [
"CC-BY-4.0"
] | 28 | 2019-09-07T04:11:05.000Z | 2022-02-07T18:31:40.000Z | """
The Sims 4 Community Library is licensed under the Creative Commons Attribution 4.0 International public license (CC BY 4.0).
https://creativecommons.org/licenses/by/4.0/
https://creativecommons.org/licenses/by/4.0/legalcode
Copyright (c) COLONOLNUTTY
"""
import os
from sims4.commands import Command, CommandType, ... | 33.125 | 176 | 0.704403 | 994 | 0.416771 | 0 | 0 | 526 | 0.220545 | 0 | 0 | 641 | 0.268763 |
3617f1fcc07ed43dd799a0a44d4cb775cd1c7478 | 1,884 | py | Python | blackbook/migrations/0022_cleanup.py | bsiebens/blackbook | 636d1adc8966db158914abba43e360c6a0d23173 | [
"MIT"
] | 1 | 2021-05-10T19:15:48.000Z | 2021-05-10T19:15:48.000Z | blackbook/migrations/0022_cleanup.py | bsiebens/BlackBook | 636d1adc8966db158914abba43e360c6a0d23173 | [
"MIT"
] | 20 | 2020-12-27T15:56:24.000Z | 2021-09-22T18:25:02.000Z | blackbook/migrations/0022_cleanup.py | bsiebens/BlackBook | 636d1adc8966db158914abba43e360c6a0d23173 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.4 on 2021-01-22 22:56
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blackbook', '0021_update_account_categories'),
]
operations = [
migrations.RemoveField(
model_name='budgetperiod',
name='bud... | 25.459459 | 56 | 0.525478 | 1,799 | 0.954883 | 0 | 0 | 0 | 0 | 0 | 0 | 461 | 0.244692 |
36188c3a24365e2e84cb2983da3bc80cf1611d71 | 1,431 | py | Python | core/myauthbackend.py | devendraotari/HRMS_project | c6480903c2a8212c6698987e8ced96a114c4d7c7 | [
"BSD-2-Clause"
] | null | null | null | core/myauthbackend.py | devendraotari/HRMS_project | c6480903c2a8212c6698987e8ced96a114c4d7c7 | [
"BSD-2-Clause"
] | null | null | null | core/myauthbackend.py | devendraotari/HRMS_project | c6480903c2a8212c6698987e8ced96a114c4d7c7 | [
"BSD-2-Clause"
] | null | null | null | from django.contrib.auth.backends import BaseBackend
from django.contrib.auth import get_user_model
class EmailPhoneBackend(BaseBackend):
"""
docstring
"""
def authenticate(self,request, email=None,phone=None, password=None):
# Check the username/password and return a user.
my_... | 40.885714 | 87 | 0.596785 | 1,317 | 0.920335 | 0 | 0 | 0 | 0 | 0 | 0 | 322 | 0.225017 |
3618b1890763a3badcdbdde17119e78da0fca799 | 1,655 | py | Python | apps/core/management/commands/update-banned-email.py | sparcs-kaist/sparcssso | 9aeedc02652dadacb44c6a4ba06901f6d2372223 | [
"MIT"
] | 18 | 2015-07-06T06:20:14.000Z | 2022-03-20T23:45:40.000Z | apps/core/management/commands/update-banned-email.py | sparcs-kaist/sparcssso | 9aeedc02652dadacb44c6a4ba06901f6d2372223 | [
"MIT"
] | 170 | 2015-07-07T08:42:03.000Z | 2022-03-24T17:31:17.000Z | apps/core/management/commands/update-banned-email.py | sparcs-kaist/sparcssso | 9aeedc02652dadacb44c6a4ba06901f6d2372223 | [
"MIT"
] | 11 | 2015-07-07T20:42:19.000Z | 2022-01-12T22:39:59.000Z | import requests
from django.core.management.base import BaseCommand, CommandError
from apps.core.models import EmailDomain
DATA_URL = (
'https://raw.githubusercontent.com/martenson/disposable-email-domains'
'/master/disposable_email_blacklist.conf'
)
class Command(BaseCommand):
help = 'Update list of b... | 30.648148 | 75 | 0.586103 | 1,390 | 0.839879 | 0 | 0 | 0 | 0 | 0 | 0 | 428 | 0.25861 |
361a68b0ba7eff6cb23d87bfa96dce0e03ec7a08 | 1,659 | py | Python | LeetCode/Python3/Math/1323. Maximum 69 Number.py | WatsonWangZh/CodingPractice | dc057dd6ea2fc2034e14fd73e07e73e6364be2ae | [
"MIT"
] | 11 | 2019-09-01T22:36:00.000Z | 2021-11-08T08:57:20.000Z | LeetCode/Python3/Math/1323. Maximum 69 Number.py | WatsonWangZh/LeetCodePractice | dc057dd6ea2fc2034e14fd73e07e73e6364be2ae | [
"MIT"
] | null | null | null | LeetCode/Python3/Math/1323. Maximum 69 Number.py | WatsonWangZh/LeetCodePractice | dc057dd6ea2fc2034e14fd73e07e73e6364be2ae | [
"MIT"
] | 2 | 2020-05-27T14:58:52.000Z | 2020-05-27T15:04:17.000Z | # Given a positive integer num consisting only of digits 6 and 9.
# Return the maximum number you can get by changing at most one digit (6 becomes 9, and 9 becomes 6).
# Example 1:
# Input: num = 9669
# Output: 9969
# Explanation:
# Changing the first digit results in 6669.
# Changing the second digit results in 9969... | 25.921875 | 101 | 0.57384 | 822 | 0.491921 | 0 | 0 | 0 | 0 | 0 | 0 | 997 | 0.596649 |
361c83b1b112f9b41fc07f6d3ac9327c01a72ef7 | 3,245 | py | Python | ticketing/userticket/createqrcode.py | autlamps/tessera-backend | 1d02e8e3651c1ad75bdf4e5d0e61765a2a6de0c2 | [
"MIT"
] | null | null | null | ticketing/userticket/createqrcode.py | autlamps/tessera-backend | 1d02e8e3651c1ad75bdf4e5d0e61765a2a6de0c2 | [
"MIT"
] | 1 | 2018-08-14T03:15:00.000Z | 2018-08-21T00:33:34.000Z | ticketing/userticket/createqrcode.py | autlamps/tessera-backend | 1d02e8e3651c1ad75bdf4e5d0e61765a2a6de0c2 | [
"MIT"
] | null | null | null | import base64
import rsa
from django.conf import settings
from django.core.exceptions import ObjectDoesNotExist
from ticketing.models import BalanceTicket, RideTicket
class VerifyFailedError(Exception):
pass
class QRCode:
"""
QRCode creator is used to create a user ticket/balance ID,
which is then... | 33.112245 | 79 | 0.561787 | 3,070 | 0.946071 | 0 | 0 | 501 | 0.154391 | 0 | 0 | 413 | 0.127273 |
361df2d9546970e2a42e2d2a91b1abc8fb87455f | 3,015 | py | Python | CollabMoodle.py | dantonbertuol/PyCollab | b36c968f5f1aabf1a322559854db24aa6691ac63 | [
"MIT"
] | null | null | null | CollabMoodle.py | dantonbertuol/PyCollab | b36c968f5f1aabf1a322559854db24aa6691ac63 | [
"MIT"
] | null | null | null | CollabMoodle.py | dantonbertuol/PyCollab | b36c968f5f1aabf1a322559854db24aa6691ac63 | [
"MIT"
] | null | null | null | import datetime
from webService import WebService
import Utilidades as ut
import sys
if __name__ == "__main__":
param = ut.mainMoodle(sys.argv[1:])
#param = 'moodle_plugin_sessions.txt', '', '2020-08-01 00:00:00,2020-12-31 00:00:00'
webService = WebService()
report = []
ret = 0
dates = param[2]... | 47.109375 | 125 | 0.469983 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 572 | 0.189718 |
361df35a0da6b8703efd3e8c9fc20bd6344aa676 | 5,549 | py | Python | eva/views_data.py | aqutor/CE_Backend | 1265f7169aea0b6b8cff3fda742a8a5a295fe9ea | [
"MIT"
] | null | null | null | eva/views_data.py | aqutor/CE_Backend | 1265f7169aea0b6b8cff3fda742a8a5a295fe9ea | [
"MIT"
] | null | null | null | eva/views_data.py | aqutor/CE_Backend | 1265f7169aea0b6b8cff3fda742a8a5a295fe9ea | [
"MIT"
] | null | null | null | from rest_framework.views import APIView
from rest_framework import status
from eva.serializers import WorkSerializer, PageSerializer, WordSerializer, RadicalSerializer
from eva.models import Work, Page, Word, Radical
from rest_framework.response import Response
from django.http import Http404
class WorkView(APIView)... | 29.359788 | 93 | 0.548567 | 5,229 | 0.942332 | 0 | 0 | 0 | 0 | 0 | 0 | 603 | 0.108668 |
361ee510413d5ff2e8e4d3a5aa90b44d49e73ac2 | 1,447 | py | Python | program/appID3.py | trungvuong55555/FlaskAPI_ExpertSystem | 6f7a557fefd093e901070fe2ec363e0c2ed8ffa2 | [
"MIT"
] | null | null | null | program/appID3.py | trungvuong55555/FlaskAPI_ExpertSystem | 6f7a557fefd093e901070fe2ec363e0c2ed8ffa2 | [
"MIT"
] | null | null | null | program/appID3.py | trungvuong55555/FlaskAPI_ExpertSystem | 6f7a557fefd093e901070fe2ec363e0c2ed8ffa2 | [
"MIT"
] | null | null | null | from flask import Flask, request, render_template
import pickle
app = Flask(__name__)#khoi tao flask
model = pickle.load(open('modelID3.pkl', 'rb'))#unpicke model
@app.route('/',methods =["GET", "POST"])
def home():
if request.method == "POST":
#lay gia tri tu form
one= request.form.get("a0")
... | 28.94 | 99 | 0.57982 | 0 | 0 | 0 | 0 | 1,227 | 0.847961 | 0 | 0 | 315 | 0.217692 |
361ef035e9cacacdf5098c184cd2ac1fe4e53da4 | 474 | py | Python | examples/deldup.py | rlan/pydmv | 97619bbd2732b2ad8e64c97fe862a84dc147af93 | [
"MIT"
] | null | null | null | examples/deldup.py | rlan/pydmv | 97619bbd2732b2ad8e64c97fe862a84dc147af93 | [
"MIT"
] | null | null | null | examples/deldup.py | rlan/pydmv | 97619bbd2732b2ad8e64c97fe862a84dc147af93 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import os
import sys
import argparse
#Auto-import parent module
sys.path.insert(1, os.path.join(sys.path[0], '..'))
import voc
#from pydmv import voc
parser = argparse.ArgumentParser(description="Print VOC index file without duplicates")
parser.add_argument("file", help="Input index file")
args = p... | 21.545455 | 87 | 0.736287 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 134 | 0.2827 |
362141754e09b014da8e86cb87845189f022576c | 448 | py | Python | home_work/App/views.py | jianghaiming0707/python1806homework | 2509f75794ac0ef8711cb1d1c2c4378408619a75 | [
"Apache-2.0"
] | 1 | 2018-06-28T01:01:35.000Z | 2018-06-28T01:01:35.000Z | home_work/App/views.py | jianghaiming0707/python1806homework | 2509f75794ac0ef8711cb1d1c2c4378408619a75 | [
"Apache-2.0"
] | 6 | 2018-06-25T04:50:23.000Z | 2018-07-03T10:24:08.000Z | home_work/App/views.py | jianghaiming0707/python1806homework | 2509f75794ac0ef8711cb1d1c2c4378408619a75 | [
"Apache-2.0"
] | 42 | 2018-06-19T09:48:04.000Z | 2019-09-15T01:20:06.000Z | from django.shortcuts import render
from django.http import HttpResponse
from App.models import *
# Create your views here.
def search(seq):
myclass=Myclass.objects.all()
return render(seq,'test.html',context={'myclass':myclass})
def students(req):
students_id=req.GET.get('classid')
studentt=Student.ob... | 34.461538 | 67 | 0.747768 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 78 | 0.174107 |
3621452a8a1c3599be31b149a9b725b8f48992db | 962 | py | Python | Xiaomi_8/day_start/show_screen.py | Lezaza/hotpoor_autoclick_xhs | 52eafad8cce59353a9de5bf6e488e8a2602e5536 | [
"Apache-2.0"
] | 1 | 2021-12-21T10:42:46.000Z | 2021-12-21T10:42:46.000Z | Xiaomi_8/day_start/show_screen.py | 2218084076/hotpoor_autoclick_xhs | a52446ba691ac19e43410a465dc63f940c0e444d | [
"Apache-2.0"
] | 2 | 2021-11-03T11:36:44.000Z | 2021-11-05T07:58:13.000Z | Xiaomi_8/day_start/show_screen.py | 2218084076/hotpoor_autoclick_xhs | a52446ba691ac19e43410a465dc63f940c0e444d | [
"Apache-2.0"
] | 1 | 2021-10-09T10:28:57.000Z | 2021-10-09T10:28:57.000Z | import os
import cv2
import time
path = "C:/Users/lenovo/Documents/Sites/github/hotpoor_autoclick_xhs/Xiaomi_8/day_start/hotpoor_autoclick_cache"
cache = "hotpoor_autoclick_cache/screen.png"
def get_image():
os.system(f"adb shell screencap -p /sdcard/%s"%cache)
os.system(r"adb pull /sdcard/%s %s"%(cache,path))... | 30.0625 | 112 | 0.686071 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 269 | 0.279626 |
3622cd97012a4b31faded8cb9b89d6c988e04256 | 3,359 | py | Python | hknweb/events/views/event_transactions/show_event.py | jyxzhang/hknweb | a01ffd8587859bf63c46213be6a0c8b87164a5c2 | [
"MIT"
] | null | null | null | hknweb/events/views/event_transactions/show_event.py | jyxzhang/hknweb | a01ffd8587859bf63c46213be6a0c8b87164a5c2 | [
"MIT"
] | null | null | null | hknweb/events/views/event_transactions/show_event.py | jyxzhang/hknweb | a01ffd8587859bf63c46213be6a0c8b87164a5c2 | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect, reverse
from django.contrib import messages
from django.shortcuts import get_object_or_404
from django.core.paginator import Paginator
from hknweb.utils import markdownify
from hknweb.utils import allow_public_access
from hknweb.events.constants import (
ACCESSLEVEL_... | 33.59 | 88 | 0.669842 | 0 | 0 | 0 | 0 | 126 | 0.037511 | 0 | 0 | 482 | 0.143495 |
36230cd6aca7407d1176980b4ef533beffe100f8 | 9,756 | py | Python | pysnmp-with-texts/HPN-ICF-VOICE-IF-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/HPN-ICF-VOICE-IF-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/HPN-ICF-VOICE-IF-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 HPN-ICF-VOICE-IF-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HPN-ICF-VOICE-IF-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:41:57 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (defau... | 154.857143 | 863 | 0.791513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,593 | 0.368286 |
3624a7b0fa4de41698f562d63ac67b0fc5033a54 | 1,230 | py | Python | data_access_layer/abstract_classes/customer_dao.py | Alejandro-Fuste/python-bank-application | 46e44c830ab8c13fd64c08e2db4f743a7d1d35de | [
"MIT"
] | null | null | null | data_access_layer/abstract_classes/customer_dao.py | Alejandro-Fuste/python-bank-application | 46e44c830ab8c13fd64c08e2db4f743a7d1d35de | [
"MIT"
] | 15 | 2021-11-22T16:05:42.000Z | 2021-12-08T16:43:37.000Z | data_access_layer/abstract_classes/customer_dao.py | Alejandro-Fuste/python-bank-application | 46e44c830ab8c13fd64c08e2db4f743a7d1d35de | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from entities.customers import Customer
from typing import List
class CustomerDao(ABC):
@abstractmethod
def create_customer_entry(self, customer: Customer) -> Customer:
pass
@abstractmethod
def get_customer_by_id(self, customer_id: str) -> Customer:
... | 27.954545 | 103 | 0.68374 | 1,127 | 0.91626 | 0 | 0 | 1,050 | 0.853659 | 0 | 0 | 0 | 0 |
3624ec443278ac728598d1df9f161910bd3e69fe | 975 | py | Python | examples/make_sphere_graphic.py | itamar-dw/spherecluster | 7c9b81d8bb6c6c2a0c569c17093bf0b4550f2768 | [
"MIT"
] | 186 | 2018-09-14T06:51:59.000Z | 2022-03-30T12:56:01.000Z | examples/make_sphere_graphic.py | itamar-dw/spherecluster | 7c9b81d8bb6c6c2a0c569c17093bf0b4550f2768 | [
"MIT"
] | 20 | 2018-10-16T15:40:08.000Z | 2022-03-23T14:37:52.000Z | examples/make_sphere_graphic.py | itamar-dw/spherecluster | 7c9b81d8bb6c6c2a0c569c17093bf0b4550f2768 | [
"MIT"
] | 40 | 2018-09-13T21:05:50.000Z | 2022-03-09T16:05:53.000Z | import sys
import numpy as np
from matplotlib import pyplot as plt
from mpl_toolkits.mplot3d import Axes3D # NOQA
import seaborn # NOQA
from spherecluster import sample_vMF
plt.ion()
n_clusters = 3
mus = np.random.randn(3, n_clusters)
mus, r = np.linalg.qr(mus, mode='reduced')
kappas = [15, 15, 15]
num_points_per... | 20.744681 | 70 | 0.644103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 67 | 0.068718 |
3626cc57d851fc7ca881f30af21ead100d822372 | 1,043 | py | Python | pointnet2/tf_ops/sampling/tf_sampling.py | ltriess/pointnet2_keras | 29be56161c8c772442b85b8fda300d10ff7fe7b3 | [
"MIT"
] | 2 | 2022-02-06T23:12:15.000Z | 2022-03-28T06:48:52.000Z | pointnet2/tf_ops/sampling/tf_sampling.py | ltriess/pointnet2_keras | 29be56161c8c772442b85b8fda300d10ff7fe7b3 | [
"MIT"
] | null | null | null | pointnet2/tf_ops/sampling/tf_sampling.py | ltriess/pointnet2_keras | 29be56161c8c772442b85b8fda300d10ff7fe7b3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
""" Furthest point sampling
Original author: Haoqiang Fan
Modified by Charles R. Qi
All Rights Reserved. 2017.
Modified by Larissa Triess (2020)
"""
import os
import sys
import tensorflow as tf
from tensorflow.python.framework import ops
BASE_DIR = os.path.dirname(os.p... | 25.439024 | 81 | 0.701822 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 650 | 0.623202 |
3626d45d010076e81364291684b9ea5d2493fb6c | 561 | py | Python | gql/resolvers/mutations/scope.py | apoveda25/graphql-python-server | eb7b911aa1116327120b857beb17da3e30523e74 | [
"Apache-2.0"
] | 4 | 2020-06-20T11:54:04.000Z | 2021-09-07T11:41:32.000Z | gql/resolvers/mutations/scope.py | apoveda25/graphql-python-server | eb7b911aa1116327120b857beb17da3e30523e74 | [
"Apache-2.0"
] | null | null | null | gql/resolvers/mutations/scope.py | apoveda25/graphql-python-server | eb7b911aa1116327120b857beb17da3e30523e74 | [
"Apache-2.0"
] | null | null | null | from ariadne import MutationType
from datetime import datetime as dt
from models.scope import Scope
from schemas.helpers.normalize import change_keys
from schemas.scope import ScopeCreate
mutations_resolvers = MutationType()
@mutations_resolvers.field("scopeCreate")
async def resolve_scope_create(_, info, scope) ->... | 31.166667 | 78 | 0.773619 | 0 | 0 | 0 | 0 | 331 | 0.590018 | 289 | 0.515152 | 60 | 0.106952 |
36288867b24d81ec55fecb507750b334c645d763 | 5,188 | py | Python | napari_subboxer/interactivity_utils.py | alisterburt/napari-subboxer | f450e72a5c1c64c527c4f999644f99f3109c36e8 | [
"BSD-3-Clause"
] | 3 | 2021-11-01T18:18:43.000Z | 2021-11-25T02:59:50.000Z | napari_subboxer/interactivity_utils.py | alisterburt/napari-subboxer | f450e72a5c1c64c527c4f999644f99f3109c36e8 | [
"BSD-3-Clause"
] | 1 | 2021-11-24T20:59:18.000Z | 2021-11-24T20:59:24.000Z | napari_subboxer/interactivity_utils.py | alisterburt/napari-subboxer | f450e72a5c1c64c527c4f999644f99f3109c36e8 | [
"BSD-3-Clause"
] | null | null | null | from typing import Optional
import napari
import napari.layers
import numpy as np
from napari.utils.geometry import project_point_onto_plane
def point_in_bounding_box(point: np.ndarray, bounding_box: np.ndarray) -> bool:
"""Determine whether an nD point is inside an nD bounding box.
Parameters
---------... | 35.292517 | 79 | 0.632999 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,563 | 0.494025 |
3628f30f1da84eb0aeefd00f476c1a8932e5c523 | 1,245 | py | Python | src/attribute_generator.py | neutron101/cs231A-project | a147a3cc7de66c852dfc6b8cb9c65780c9d55d07 | [
"MIT"
] | null | null | null | src/attribute_generator.py | neutron101/cs231A-project | a147a3cc7de66c852dfc6b8cb9c65780c9d55d07 | [
"MIT"
] | null | null | null | src/attribute_generator.py | neutron101/cs231A-project | a147a3cc7de66c852dfc6b8cb9c65780c9d55d07 | [
"MIT"
] | null | null | null | import numpy as np
class AttributeGenerator:
def __init__(self, RTs, Ks, Ps):
self._RTs = RTs
self._Ks = Ks
self._Ps = Ps
def generate(self):
self._update_intrinsics()
self._update_translation_and_rotation()
self._updateProjection()
def use_default_translation_and_rotation(self):
self.rotation_tra... | 24.411765 | 144 | 0.702811 | 1,218 | 0.978313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
362a49ef92737d73a5b3be88d93c98a6d215ec47 | 6,265 | py | Python | theDarkArtsClass.py | biechuyangwang/UniversalAutomaticAnswer | 4c558396cc04b36224e9be4409f80f9654c4aa88 | [
"Apache-2.0"
] | 2 | 2021-12-11T19:11:59.000Z | 2021-12-24T19:32:12.000Z | theDarkArtsClass.py | biechuyangwang/UniversalAutomaticAnswer | 4c558396cc04b36224e9be4409f80f9654c4aa88 | [
"Apache-2.0"
] | null | null | null | theDarkArtsClass.py | biechuyangwang/UniversalAutomaticAnswer | 4c558396cc04b36224e9be4409f80f9654c4aa88 | [
"Apache-2.0"
] | null | null | null | # 分析黑魔法防御课界面
import cv2
import sys
sys.path.append(r"C:\\Users\\SAT") # 添加自定义包的路径
from UniversalAutomaticAnswer.conf.confImp import get_yaml_file
from UniversalAutomaticAnswer.screen.screenImp import ScreenImp # 加入自定义包
from UniversalAutomaticAnswer.ocr.ocrImp import OCRImp
from UniversalAutomaticAnswer.util.filter imp... | 34.423077 | 162 | 0.65012 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,755 | 0.267245 |
362bc4e36845077cd1de93becd4b863b9767b65f | 521 | py | Python | lt_104.py | fdzhonglin/trees | 9a13412a5c424560722abf2caac797540fa508e4 | [
"MIT"
] | null | null | null | lt_104.py | fdzhonglin/trees | 9a13412a5c424560722abf2caac797540fa508e4 | [
"MIT"
] | null | null | null | lt_104.py | fdzhonglin/trees | 9a13412a5c424560722abf2caac797540fa508e4 | [
"MIT"
] | null | null | null | # standard traversal problem
class Solution(object):
def maxDepth(self, root):
"""
:type root: TreeNode
:rtype: int
"""
# leaf condition
if root == None:
return 0
# skeleton, since function has return, need to assign variables for followin... | 30.647059 | 91 | 0.589251 | 492 | 0.944338 | 0 | 0 | 0 | 0 | 0 | 0 | 228 | 0.43762 |
362d167af1df22dfcc0fab4281874b494b14c018 | 826 | py | Python | src/anim.py | JovialKnoll/monsters | 15d969d0220fd003c2c28ae690f66633da370682 | [
"MIT"
] | 2 | 2017-05-14T06:37:14.000Z | 2022-03-07T02:25:32.000Z | src/anim.py | JovialKnoll/monsters | 15d969d0220fd003c2c28ae690f66633da370682 | [
"MIT"
] | 2 | 2017-10-08T19:41:18.000Z | 2021-04-08T04:40:50.000Z | src/anim.py | JovialKnoll/monsters | 15d969d0220fd003c2c28ae690f66633da370682 | [
"MIT"
] | null | null | null | import pygame.mixer
from vec2d import Vec2d
from saveable import Saveable
class Anim(Saveable):
__slots__ = (
'func',
'time',
'pos',
'sound',
'positional_sound',
)
def __init__(self, func: str, time: int, x_or_pair, y=None,
sound: pygame.mixer.Sou... | 25.030303 | 83 | 0.596852 | 748 | 0.905569 | 0 | 0 | 73 | 0.088378 | 0 | 0 | 166 | 0.200969 |
362e01958a44c444693e75555e77973e632954c9 | 5,926 | py | Python | nevermined_compute_api/workflow_utils.py | nevermined-io/compute-api | c0d3b1875b3b95ffa78374ff89a4fefd0d3af598 | [
"Apache-2.0"
] | null | null | null | nevermined_compute_api/workflow_utils.py | nevermined-io/compute-api | c0d3b1875b3b95ffa78374ff89a4fefd0d3af598 | [
"Apache-2.0"
] | 3 | 2020-11-20T11:57:04.000Z | 2021-04-06T10:56:49.000Z | nevermined_compute_api/workflow_utils.py | nevermined-io/compute-api | c0d3b1875b3b95ffa78374ff89a4fefd0d3af598 | [
"Apache-2.0"
] | null | null | null | import os
from pathlib import Path
import json
from contracts_lib_py.utils import get_account
from common_utils_py.ddo.ddo import DDO
from nevermined_sdk_py import Nevermined, Config
import yaml
from configparser import ConfigParser
config_parser = ConfigParser()
configuration = config_parser.read('config.ini')
GROUP... | 35.065089 | 99 | 0.602599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,766 | 0.466757 |
362f493d8462bb8006f529fc1fed6929dd628362 | 1,206 | py | Python | providers/scoop_mock_provider.py | prezesp/scoop-viewer | 115f413979ba2e4e766e334f0240082a9343e314 | [
"MIT"
] | 86 | 2018-07-17T14:21:05.000Z | 2022-03-29T03:00:40.000Z | providers/scoop_mock_provider.py | prezesp/scoop-viewer | 115f413979ba2e4e766e334f0240082a9343e314 | [
"MIT"
] | 16 | 2018-04-24T22:45:24.000Z | 2021-12-15T08:37:38.000Z | providers/scoop_mock_provider.py | prezesp/scoop-viewer | 115f413979ba2e4e766e334f0240082a9343e314 | [
"MIT"
] | 5 | 2018-03-28T18:24:52.000Z | 2022-01-08T11:28:31.000Z | """ Module to interact with scoop. """
from subprocess import Popen, PIPE # nosec
import os
class ScoopMockProvider:
""" Module to interact with scoop. """
def __init__(self):
self.version = 'unknown'
def get_version(self):
pass
def __run_scoop(self, args, universal_newlines=False):
... | 32.594595 | 82 | 0.609453 | 1,112 | 0.922056 | 0 | 0 | 0 | 0 | 0 | 0 | 328 | 0.271973 |
362ff49962e9b464199213d8822138a4aa8efdf5 | 515 | py | Python | services/movies_streaming_converter/src/models/convertation.py | fuodorov/yacinema | 43ad869575fbaab7c7056229538638666aa87110 | [
"MIT"
] | null | null | null | services/movies_streaming_converter/src/models/convertation.py | fuodorov/yacinema | 43ad869575fbaab7c7056229538638666aa87110 | [
"MIT"
] | null | null | null | services/movies_streaming_converter/src/models/convertation.py | fuodorov/yacinema | 43ad869575fbaab7c7056229538638666aa87110 | [
"MIT"
] | 1 | 2021-09-30T09:49:40.000Z | 2021-09-30T09:49:40.000Z | import datetime
import uuid
from typing import Optional
from models.base import CustomBaseModel
class ConvertVideoIn(CustomBaseModel):
source_path: str
destination_path: str
resolution: str
codec_name: Optional[str] = None
display_aspect_ratio: Optional[str] = None
fps: Optional[int] = None
... | 21.458333 | 59 | 0.751456 | 409 | 0.794175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
36307c13abd4a232603e88d4d656fa8c1d5c6d39 | 3,965 | py | Python | flasc/circular_statistics.py | NREL/flasc | ac734892efc1bc7684e2393ffa1ce7a97a54efa1 | [
"Apache-2.0"
] | 3 | 2022-01-23T19:33:32.000Z | 2022-03-14T10:29:36.000Z | flasc/circular_statistics.py | NREL/flasc | ac734892efc1bc7684e2393ffa1ce7a97a54efa1 | [
"Apache-2.0"
] | 2 | 2022-03-02T20:45:30.000Z | 2022-03-22T18:49:24.000Z | flasc/circular_statistics.py | NREL/flasc | ac734892efc1bc7684e2393ffa1ce7a97a54efa1 | [
"Apache-2.0"
] | 4 | 2022-02-17T18:40:36.000Z | 2022-03-24T05:44:31.000Z | # Copyright 2021 NREL
# 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
# distri... | 35.088496 | 79 | 0.682219 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,001 | 0.504666 |
36323555756558519c34b677df24af6e2865a756 | 2,797 | py | Python | src/cltl/backend/source/pyaudio_source.py | leolani/cltl-backend | 4ecc6227f9d48e40b9f59e6d78e0fcee9cdadbd4 | [
"MIT"
] | null | null | null | src/cltl/backend/source/pyaudio_source.py | leolani/cltl-backend | 4ecc6227f9d48e40b9f59e6d78e0fcee9cdadbd4 | [
"MIT"
] | null | null | null | src/cltl/backend/source/pyaudio_source.py | leolani/cltl-backend | 4ecc6227f9d48e40b9f59e6d78e0fcee9cdadbd4 | [
"MIT"
] | null | null | null | import logging
import uuid
from typing import Iterable
import numpy as np
import pyaudio
from cltl.backend.api.util import raw_frames_to_np
from cltl.backend.spi.audio import AudioSource
logger = logging.getLogger(__name__)
class PyAudioSource(AudioSource):
BUFFER = 8
def __init__(self, rate, channels, fr... | 27.15534 | 98 | 0.620665 | 2,568 | 0.918127 | 0 | 0 | 944 | 0.337504 | 0 | 0 | 209 | 0.074723 |
363237db275189c9b2a840bb149422bab3cd8c25 | 21,097 | py | Python | toolkit4nlp/optimizers.py | xv44586/toolkit4nlp | 0ca8c45efe4ad4c6dc20b47016a13326aadcd0bd | [
"Apache-2.0"
] | 94 | 2020-07-16T03:07:59.000Z | 2022-03-13T08:06:30.000Z | toolkit4nlp/optimizers.py | xv44586/toolkit4nlp | 0ca8c45efe4ad4c6dc20b47016a13326aadcd0bd | [
"Apache-2.0"
] | 14 | 2020-11-24T04:26:26.000Z | 2021-09-13T02:44:51.000Z | toolkit4nlp/optimizers.py | xv44586/toolkit4nlp | 0ca8c45efe4ad4c6dc20b47016a13326aadcd0bd | [
"Apache-2.0"
] | 17 | 2020-09-04T07:24:24.000Z | 2021-11-19T06:35:18.000Z | # -*- coding: utf-8 -*-
# @Date : 2020/7/6
# @Author : mingming.xu
# @Email : [email protected]
# @File : optimizers.py
import re
import numpy as np
import tensorflow as tf
from keras.optimizers import *
from toolkit4nlp.backend import keras, K, is_tf_keras, piecewise_linear
from toolkit4nlp.utils import *
... | 37.273852 | 118 | 0.593592 | 18,958 | 0.865978 | 0 | 0 | 12,931 | 0.590672 | 0 | 0 | 4,305 | 0.196647 |
3632e12e345819f464e0f6feced15ba246770c00 | 5,832 | py | Python | quadpy/triangle/_laursen_gellert.py | dariusarnold/quadpy | 9dc7c1ebff99d15ae57ed9195cde94d97a599be8 | [
"MIT"
] | null | null | null | quadpy/triangle/_laursen_gellert.py | dariusarnold/quadpy | 9dc7c1ebff99d15ae57ed9195cde94d97a599be8 | [
"MIT"
] | null | null | null | quadpy/triangle/_laursen_gellert.py | dariusarnold/quadpy | 9dc7c1ebff99d15ae57ed9195cde94d97a599be8 | [
"MIT"
] | null | null | null | from sympy import Rational as frac
from ..helpers import article
from ._helpers import TriangleScheme, concat, s1, s2, s3
citation = article(
authors=["M.E. Laursen", "M. Gellert"],
title="Some criteria for numerically integrated matrices and quadrature formulas for triangles",
journal="International Jour... | 32.043956 | 100 | 0.641632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 571 | 0.097875 |
36359877c7a4f6573f92718849e22bc0b0b933eb | 624 | py | Python | python2/examples/tutorial_threadednotifier.py | openEuler-BaseService/pyinotify | d6c8b832177945106901fb6c0cd5ae7d54df8247 | [
"MIT"
] | 1,509 | 2015-01-04T01:20:06.000Z | 2022-03-29T08:06:41.000Z | python2/examples/tutorial_threadednotifier.py | openEuler-BaseService/pyinotify | d6c8b832177945106901fb6c0cd5ae7d54df8247 | [
"MIT"
] | 98 | 2015-01-09T20:58:57.000Z | 2022-03-29T11:53:44.000Z | python2/examples/tutorial_threadednotifier.py | openEuler-BaseService/pyinotify | d6c8b832177945106901fb6c0cd5ae7d54df8247 | [
"MIT"
] | 333 | 2015-01-02T09:22:01.000Z | 2022-03-24T01:51:40.000Z | # ThreadedNotifier example from tutorial
#
# See: http://github.com/seb-m/pyinotify/wiki/Tutorial
#
import pyinotify
wm = pyinotify.WatchManager() # Watch Manager
mask = pyinotify.IN_DELETE | pyinotify.IN_CREATE # watched events
class EventHandler(pyinotify.ProcessEvent):
def process_IN_CREATE(self, event):
... | 24 | 66 | 0.735577 | 208 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 172 | 0.275641 |
36360d07dd0f1e6bcc68b6986125359b768850eb | 885 | py | Python | VersionMonitorDeamonForPy/deamon/ZTest.py | xblia/Upgrade-service-for-java-application | 6118cb270daba5d6511f41a2b3f0784c5a444c17 | [
"Apache-2.0"
] | null | null | null | VersionMonitorDeamonForPy/deamon/ZTest.py | xblia/Upgrade-service-for-java-application | 6118cb270daba5d6511f41a2b3f0784c5a444c17 | [
"Apache-2.0"
] | null | null | null | VersionMonitorDeamonForPy/deamon/ZTest.py | xblia/Upgrade-service-for-java-application | 6118cb270daba5d6511f41a2b3f0784c5a444c17 | [
"Apache-2.0"
] | null | null | null | #coding=utf-8
'''/*
* Copyright 2015 lixiaobo
*
* VersionUpgrade project licenses this file to you 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
... | 34.038462 | 145 | 0.748023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 842 | 0.945006 |
3636162e87cf5572646ae4d4770a37dc7c29083e | 9,158 | py | Python | ROBOTIS/DynamixelSDK/python/tests/protocol2_0/sync_read_write.py | andy-Chien/timda_dual_arm | 94170d8889218ea0dc4e6031dcbbf59b7e37e70c | [
"MIT"
] | 3 | 2020-02-17T12:56:22.000Z | 2020-09-30T11:17:03.000Z | ROBOTIS/DynamixelSDK/python/tests/protocol2_0/sync_read_write.py | andy-Chien/timda_dual_arm | 94170d8889218ea0dc4e6031dcbbf59b7e37e70c | [
"MIT"
] | 12 | 2019-05-14T12:24:02.000Z | 2020-03-24T14:00:48.000Z | ROBOTIS/DynamixelSDK/python/tests/protocol2_0/sync_read_write.py | andy-Chien/timda_dual_arm | 94170d8889218ea0dc4e6031dcbbf59b7e37e70c | [
"MIT"
] | 9 | 2021-02-01T08:20:53.000Z | 2021-09-17T05:52:35.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
################################################################################
# Copyright 2017 ROBOTIS CO., 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 cop... | 40.166667 | 226 | 0.700371 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,706 | 0.404674 |
3636470ba1388bdc81e02a4d210d625e92578097 | 2,063 | py | Python | models/globalsenti.py | movabo/newstsc | dcf0cff31c0e463c9a96cdaa24e9b662ed53f7ed | [
"MIT"
] | 3 | 2021-02-28T19:14:49.000Z | 2022-03-29T12:10:14.000Z | models/globalsenti.py | movabo/newstsc | dcf0cff31c0e463c9a96cdaa24e9b662ed53f7ed | [
"MIT"
] | null | null | null | models/globalsenti.py | movabo/newstsc | dcf0cff31c0e463c9a96cdaa24e9b662ed53f7ed | [
"MIT"
] | 1 | 2021-05-13T10:27:12.000Z | 2021-05-13T10:27:12.000Z | # -*- coding: utf-8 -*-
# file: lcf_bert.py
# author: yangheng <[email protected]>
# Copyright (C) 2019. All Rights Reserved.
# The code is based on repository: https://github.com/yangheng95/LCF-ABSA
import torch
import torch.nn as nn
from models.lcf import LCF_BERT
class Global_LCF(nn.Module):
def __in... | 38.924528 | 118 | 0.713039 | 1,783 | 0.864275 | 0 | 0 | 0 | 0 | 0 | 0 | 472 | 0.228793 |
36364741a2a1bcdc096a9a1390acb2038c00084b | 10,351 | py | Python | analysis/outflows/__init__.py | lconaboy/seren3 | 5a2ec80adf0d69664d2ee874f5ba12cc02d6c337 | [
"CNRI-Python"
] | 1 | 2017-09-21T14:58:23.000Z | 2017-09-21T14:58:23.000Z | analysis/outflows/__init__.py | lconaboy/seren3 | 5a2ec80adf0d69664d2ee874f5ba12cc02d6c337 | [
"CNRI-Python"
] | 1 | 2020-09-09T08:52:43.000Z | 2020-09-09T08:52:43.000Z | analysis/outflows/__init__.py | lconaboy/seren3 | 5a2ec80adf0d69664d2ee874f5ba12cc02d6c337 | [
"CNRI-Python"
] | 1 | 2019-01-21T10:57:41.000Z | 2019-01-21T10:57:41.000Z | def integrate_surface_flux(flux_map, r):
'''
Integrates a healpix surface flux to compute the total
net flux out of the sphere.
r is the radius of the sphere in meters
'''
import numpy as np
import healpy as hp
from scipy.integrate import trapz
from seren3.array import SimArray
... | 34.734899 | 144 | 0.628925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,775 | 0.171481 |
3637422656965fc8f3771e5007feaef41fa1973f | 2,859 | py | Python | evalution/composes/utils/matrix_utils.py | esantus/evalution2 | 622a9faf729b7c704ad45047911b9a03cf7c8dae | [
"MIT"
] | 1 | 2017-12-06T21:46:26.000Z | 2017-12-06T21:46:26.000Z | evalution/composes/utils/matrix_utils.py | esantus/EVALution-2.0 | 622a9faf729b7c704ad45047911b9a03cf7c8dae | [
"MIT"
] | 5 | 2020-03-24T15:27:40.000Z | 2021-06-01T21:47:18.000Z | evalution/composes/utils/matrix_utils.py | esantus/EVALution-2.0 | 622a9faf729b7c704ad45047911b9a03cf7c8dae | [
"MIT"
] | 1 | 2018-02-15T17:13:02.000Z | 2018-02-15T17:13:02.000Z |
import numpy as np
from composes.matrix.sparse_matrix import SparseMatrix
from composes.matrix.dense_matrix import DenseMatrix
from composes.matrix.matrix import Matrix
from scipy.sparse import issparse
from composes.utils.py_matrix_utils import is_array
from warnings import warn
def to_matrix(matrix_):
"""
C... | 27.490385 | 84 | 0.666317 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 299 | 0.104582 |
3637cf787bdf4e4784cdc6527a8256c98d6b4fec | 1,646 | py | Python | cpu/pipeline/writeback_unit.py | tim-roderick/simple-cpu-simulator | 334baf1934751527b7e5ffa0ad85d5e53e7215a1 | [
"MIT"
] | 2 | 2019-12-09T12:02:50.000Z | 2019-12-09T22:40:01.000Z | cpu/pipeline/writeback_unit.py | tim-roderick/simple-cpu-simulator | 334baf1934751527b7e5ffa0ad85d5e53e7215a1 | [
"MIT"
] | null | null | null | cpu/pipeline/writeback_unit.py | tim-roderick/simple-cpu-simulator | 334baf1934751527b7e5ffa0ad85d5e53e7215a1 | [
"MIT"
] | 1 | 2020-05-04T09:13:50.000Z | 2020-05-04T09:13:50.000Z | from .component import Component
from cpu.Memory import SCOREBOARD
from isa.Instructions import ALUInstruction as alu
class writeback_unit(Component):
def add_result(self, result):
result.finished = True
self.pipeline_register = self.pipeline_register + [result]
self.clean()
def clean(s... | 38.27907 | 94 | 0.567436 | 1,526 | 0.927096 | 0 | 0 | 0 | 0 | 0 | 0 | 92 | 0.055893 |
36397c2f3323af879bfcf0a875f647ed132668eb | 273 | py | Python | ex026.py | juniorpedroso/Exercicios-CEV-Python | 4adad3b6f3994cf61f9ead5564124b8b9c58d304 | [
"MIT"
] | null | null | null | ex026.py | juniorpedroso/Exercicios-CEV-Python | 4adad3b6f3994cf61f9ead5564124b8b9c58d304 | [
"MIT"
] | null | null | null | ex026.py | juniorpedroso/Exercicios-CEV-Python | 4adad3b6f3994cf61f9ead5564124b8b9c58d304 | [
"MIT"
] | null | null | null | frase = str(input('Digite uma frase: ').strip().upper())
print('A letra a aparece {} vezes'.format(frase.count('A')))
print('Sua primeira aparição é na posição {}'.format(frase.find('A') + 1))
print('Ela aparece pela última vez na posição {}'.format(frase.rfind('A') + 1))
| 54.6 | 79 | 0.673993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 147 | 0.523132 |
363ab7e49354291dcd24ad4beee0131449a7700e | 3,269 | py | Python | MyDataLoader.py | WynMew/WaifuLite | fbd9680dda4a5f501b7c66515c9fef1444f2d9e7 | [
"Apache-2.0"
] | 22 | 2019-07-16T13:59:18.000Z | 2022-01-17T02:58:01.000Z | MyDataLoader.py | WynMew/WaifuLite | fbd9680dda4a5f501b7c66515c9fef1444f2d9e7 | [
"Apache-2.0"
] | null | null | null | MyDataLoader.py | WynMew/WaifuLite | fbd9680dda4a5f501b7c66515c9fef1444f2d9e7 | [
"Apache-2.0"
] | 3 | 2020-02-19T19:37:52.000Z | 2021-05-11T05:48:09.000Z | import glob
import io
import numpy as np
import re
import os
from io import BytesIO
import random
from uuid import uuid4
import torch
from PIL import Image
from torch.utils.data import Dataset
from torchvision.transforms import RandomCrop
from torchvision.transforms.functional import to_tensor
class ListDatasetLite(D... | 32.69 | 126 | 0.632303 | 2,967 | 0.907617 | 0 | 0 | 0 | 0 | 0 | 0 | 194 | 0.059345 |
363b300b4584703dde103216ec3118b56fec2aec | 179 | py | Python | model/get_data.py | qq1010903229/OIer | ec1f4c60d76188efd18af157f46849b27dd8ddae | [
"Apache-2.0"
] | null | null | null | model/get_data.py | qq1010903229/OIer | ec1f4c60d76188efd18af157f46849b27dd8ddae | [
"Apache-2.0"
] | null | null | null | model/get_data.py | qq1010903229/OIer | ec1f4c60d76188efd18af157f46849b27dd8ddae | [
"Apache-2.0"
] | null | null | null | f = open("OI_school.csv")
op = open("mdt.txt","w")
for i in f.readlines():
c = i.split('","')
op.write(c[-3]+','+c[-2]+','+"".join([i+',' for i in eval(c[1])])[:-1]+'\n')
| 29.833333 | 80 | 0.463687 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 47 | 0.26257 |
363b4bc29bcc02e72a0083db4df10c04444ae917 | 523 | py | Python | pythontabcmd2/parsers/global_options.py | playkazoomedia/tabcmd2 | a89db9be6047d95379a7c88264236e9cb3e78189 | [
"MIT"
] | 11 | 2020-09-02T03:41:01.000Z | 2022-01-20T12:38:20.000Z | pythontabcmd2/parsers/global_options.py | playkazoomedia/tabcmd2 | a89db9be6047d95379a7c88264236e9cb3e78189 | [
"MIT"
] | 19 | 2020-09-03T04:54:47.000Z | 2022-01-31T17:41:19.000Z | pythontabcmd2/parsers/global_options.py | playkazoomedia/tabcmd2 | a89db9be6047d95379a7c88264236e9cb3e78189 | [
"MIT"
] | 6 | 2020-11-21T15:45:51.000Z | 2022-01-24T12:26:20.000Z | class GlobalOptions:
""" Class to evaluate global options for example: project path"""
@staticmethod
def evaluate_project_path(path):
""" Method to parse the project path provided by the user"""
first_dir_from_end = None
if path[-1] != "/":
path = path + "/"
new_p... | 34.866667 | 69 | 0.565966 | 522 | 0.998088 | 0 | 0 | 427 | 0.816444 | 0 | 0 | 137 | 0.26195 |
363ecc9fcc777c09f95b187bd0eb4e97cd4e05fe | 2,068 | py | Python | power_data_to_sat_passes/filtersatpowerfiles.py | abrahamneben/orbcomm_beam_mapping | 71b3e7d6e4214db0a6f4e68ebeeb7d7f846f5004 | [
"MIT"
] | 1 | 2019-04-10T02:50:19.000Z | 2019-04-10T02:50:19.000Z | power_data_to_sat_passes/filtersatpowerfiles.py | abrahamneben/orbcomm_beam_mapping | 71b3e7d6e4214db0a6f4e68ebeeb7d7f846f5004 | [
"MIT"
] | null | null | null | power_data_to_sat_passes/filtersatpowerfiles.py | abrahamneben/orbcomm_beam_mapping | 71b3e7d6e4214db0a6f4e68ebeeb7d7f846f5004 | [
"MIT"
] | null | null | null | #!/users/aneben/python/bin/python
import sys
import commands
import numpy as np
import string
np.set_printoptions(precision=3,linewidth=200)
months={'Jan':'01','Feb':'02','Mar':'03','Apr':'04','May':'05','Jun':'06','Jul':'07','Aug':'08','Sept':'09','Oct':'10','Nov':'11','Dec':'12'}
def make_datetime_numeric(dt):
d... | 26.512821 | 141 | 0.597679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 370 | 0.178917 |
363f007b5be683fdae2cae98f2ef185659366c8a | 6,060 | py | Python | scripts/utils/prepare.py | Glaciohound/VCML | 5a0f01a0baba238cef2f63131fccd412e3d7822b | [
"MIT"
] | 52 | 2019-12-04T22:26:56.000Z | 2022-03-31T17:04:15.000Z | scripts/utils/prepare.py | guxiwuruo/VCML | 5a0f01a0baba238cef2f63131fccd412e3d7822b | [
"MIT"
] | 6 | 2020-08-25T07:35:14.000Z | 2021-09-09T04:57:09.000Z | scripts/utils/prepare.py | guxiwuruo/VCML | 5a0f01a0baba238cef2f63131fccd412e3d7822b | [
"MIT"
] | 5 | 2020-02-10T07:39:24.000Z | 2021-06-23T02:53:42.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# File : prepare.py
# Author : Chi Han, Jiayuan Mao
# Email : [email protected], [email protected]
# Date : 17.07.2019
# Last Modified Date: 03.12.2019
# Last Modified By : Chi Han
#
# This file is part of the VCML codeb... | 33.854749 | 74 | 0.64769 | 93 | 0.015347 | 0 | 0 | 0 | 0 | 0 | 0 | 1,417 | 0.233828 |
363f6b85601d80ec792d9609a878c76ff8a2a456 | 14,280 | py | Python | burst_paper/all_ds/plot_allband_ds.py | jackievilladsen/dynspec | 87101b188d7891644d848e781bca00f044fe3f0b | [
"MIT"
] | 2 | 2019-05-01T00:34:28.000Z | 2021-02-10T09:18:10.000Z | burst_paper/all_ds/plot_allband_ds.py | jackievilladsen/dynspec | 87101b188d7891644d848e781bca00f044fe3f0b | [
"MIT"
] | null | null | null | burst_paper/all_ds/plot_allband_ds.py | jackievilladsen/dynspec | 87101b188d7891644d848e781bca00f044fe3f0b | [
"MIT"
] | null | null | null | '''
plot_allband_ds.py - Load P,L,S band dynamic spectrum for a given epoch, bin to specified resolution, and plot to file
'''
import dynspec.plot
reload(dynspec.plot)
from dynspec import load_dict
from dynspec.plot import *
from pylab import *
import os, subprocess
import matplotlib.gridspec as gridspec
'''
def get... | 45.769231 | 193 | 0.614566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7,054 | 0.493978 |
363f98c059fbed994ba92f98a94c9d889c901242 | 2,518 | py | Python | src/utils.py | jungtaekkim/On-Uncertainty-Estimation-by-Tree-based-Surrogate-Models-in-SMO | de195a391f1f9bfc4428dadda9400850408e88ca | [
"MIT"
] | null | null | null | src/utils.py | jungtaekkim/On-Uncertainty-Estimation-by-Tree-based-Surrogate-Models-in-SMO | de195a391f1f9bfc4428dadda9400850408e88ca | [
"MIT"
] | null | null | null | src/utils.py | jungtaekkim/On-Uncertainty-Estimation-by-Tree-based-Surrogate-Models-in-SMO | de195a391f1f9bfc4428dadda9400850408e88ca | [
"MIT"
] | null | null | null | import os
import argparse
import numpy as np
import matplotlib.pyplot as plt
from scipy.stats import norm
def plot_1d(X_train, Y_train, X_test, Y_test, mean=None, std=None, str_figure=None, show_fig=True):
plt.rc('text', usetex=True)
fig = plt.figure(figsize=(8, 6))
ax = fig.gca()
ax.plot(X_test, Y_... | 27.67033 | 125 | 0.623511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 81 | 0.032168 |
363fef05c1d19fcf588faad011da861494aa03e5 | 1,191 | py | Python | cocos-example.py | halflings/terrasim | a51c0e7cb28d3a3ec0d9c687d58c1c753d956c2d | [
"Apache-2.0"
] | null | null | null | cocos-example.py | halflings/terrasim | a51c0e7cb28d3a3ec0d9c687d58c1c753d956c2d | [
"Apache-2.0"
] | null | null | null | cocos-example.py | halflings/terrasim | a51c0e7cb28d3a3ec0d9c687d58c1c753d956c2d | [
"Apache-2.0"
] | null | null | null |
import random
import cocos
from cocos.tiles import TileSet, RectCell, RectMapLayer
from cocos.director import director
from cocos.layer.scrolling import ScrollingManager
import pyglet
from game import Game
from views import WorldMap, CharacterView2
class MainLayer(cocos.layer.Layer):
is_event_handler = True
... | 26.466667 | 74 | 0.687657 | 691 | 0.580185 | 0 | 0 | 0 | 0 | 0 | 0 | 52 | 0.043661 |
3641d06d971b0ebba597cba4a1a138c64156e641 | 3,532 | py | Python | view.py | ykmoon04/2021-2-OSSP1-Smith-3 | 66d86e01444b822414a254d0944657ca4ce7dc22 | [
"Apache-2.0"
] | 1 | 2021-10-31T13:01:08.000Z | 2021-10-31T13:01:08.000Z | view.py | ykmoon04/2021-2-OSSP1-Smith-3 | 66d86e01444b822414a254d0944657ca4ce7dc22 | [
"Apache-2.0"
] | null | null | null | view.py | ykmoon04/2021-2-OSSP1-Smith-3 | 66d86e01444b822414a254d0944657ca4ce7dc22 | [
"Apache-2.0"
] | 4 | 2021-11-04T09:03:37.000Z | 2021-12-28T06:28:15.000Z | from itertools import takewhile
from eunjeon import Mecab
import queue
from jamo import h2j, j2hcj
import numpy as np
import re
import json
import sys
from pkg_resources import VersionConflict
global script_table
global voice_table
global s_idx
global v_idx
script_table = []
voice_table = []
def main(ans,speak):
... | 29.433333 | 88 | 0.558607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 909 | 0.234158 |
364307863e32ccdc999357c039cf0832ac94b380 | 103 | py | Python | rboard/board/__init__.py | joalon/rboard | cc743d8c08837c20bcc9382655e36bb79aecd524 | [
"MIT"
] | null | null | null | rboard/board/__init__.py | joalon/rboard | cc743d8c08837c20bcc9382655e36bb79aecd524 | [
"MIT"
] | null | null | null | rboard/board/__init__.py | joalon/rboard | cc743d8c08837c20bcc9382655e36bb79aecd524 | [
"MIT"
] | null | null | null | from flask import Blueprint
blueprint = Blueprint('board', __name__)
from rboard.board import routes
| 17.166667 | 40 | 0.796117 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 0.067961 |
36446df7ecc8c55d638710c593c4957d62d9704f | 615 | py | Python | examples/second_node.py | csunny/kademlia | 5513ff7851aa00601ebc7fd9eb610de4e2147f96 | [
"MIT"
] | 1 | 2018-11-30T13:52:37.000Z | 2018-11-30T13:52:37.000Z | examples/second_node.py | csunny/kademlia | 5513ff7851aa00601ebc7fd9eb610de4e2147f96 | [
"MIT"
] | null | null | null | examples/second_node.py | csunny/kademlia | 5513ff7851aa00601ebc7fd9eb610de4e2147f96 | [
"MIT"
] | null | null | null | import logging
import asyncio
import sys
from kademlia.network import Server
handler = logging.StreamHandler()
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
handler.setFormatter(formatter)
log = logging.getLogger('kademlia')
log.addHandler(handler)
log.setLevel(logging.DEBUG)
... | 21.206897 | 85 | 0.749593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 73 | 0.118699 |
3645c7b92794db29663c1c763622e5f0554a803c | 1,771 | py | Python | src/commons/big_query/big_query_job_reference.py | Morgenz/bbq | f0fd3f626841c610aee80ad08a61123b7cccb775 | [
"Apache-2.0"
] | 41 | 2018-05-08T11:54:37.000Z | 2022-02-09T21:19:17.000Z | src/commons/big_query/big_query_job_reference.py | Morgenz/bbq | f0fd3f626841c610aee80ad08a61123b7cccb775 | [
"Apache-2.0"
] | 139 | 2018-06-07T13:45:21.000Z | 2021-04-30T20:44:06.000Z | src/commons/big_query/big_query_job_reference.py | Morgenz/bbq | f0fd3f626841c610aee80ad08a61123b7cccb775 | [
"Apache-2.0"
] | 5 | 2019-09-11T12:28:24.000Z | 2022-02-04T21:38:29.000Z | from src.commons.big_query.copy_job_async.result_check.result_check_request import \
ResultCheckRequest
from src.commons.big_query.copy_job_async.task_creator import TaskCreator
class BigQueryJobReference(object):
def __init__(self, project_id, job_id, location):
self.project_id = project_id
s... | 36.142857 | 84 | 0.631846 | 1,586 | 0.895539 | 0 | 0 | 231 | 0.130435 | 0 | 0 | 91 | 0.051383 |
36472112e71a6f099b1f967e54265e83e3ef22d7 | 2,068 | py | Python | PyInstaller/hooks/hook-numpy.py | mathiascode/pyinstaller | eaad76a75a5cc7be90e445f974f4bf1731045496 | [
"Apache-2.0"
] | 9,267 | 2015-01-01T04:08:45.000Z | 2022-03-31T11:42:38.000Z | PyInstaller/hooks/hook-numpy.py | bwoodsend/pyinstaller | 2a16bc2fe0a1234d0f89836d39b7877c74b3bca1 | [
"Apache-2.0"
] | 5,150 | 2015-01-01T12:09:56.000Z | 2022-03-31T18:06:12.000Z | PyInstaller/hooks/hook-numpy.py | bwoodsend/pyinstaller | 2a16bc2fe0a1234d0f89836d39b7877c74b3bca1 | [
"Apache-2.0"
] | 2,101 | 2015-01-03T10:25:27.000Z | 2022-03-30T11:04:42.000Z | #!/usr/bin/env python3
# --- Copyright Disclaimer ---
#
# In order to support PyInstaller with numpy<1.20.0 this file will be duplicated for a short period inside
# PyInstaller's repository [1]. However this file is the intellectual property of the NumPy team and is
# under the terms and conditions outlined their repo... | 38.296296 | 119 | 0.758704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,617 | 0.781915 |
36480cab3e7b7b34c639f6dcb640a7d9ee3f2cc1 | 4,480 | py | Python | test_proj/blog/admin.py | Ivan-Feofanov/django-inline-actions | a9410a67e9932152d65a063bea0848c98f5c8d73 | [
"BSD-3-Clause"
] | 204 | 2016-05-10T05:38:27.000Z | 2022-03-25T11:22:28.000Z | test_proj/blog/admin.py | Ivan-Feofanov/django-inline-actions | a9410a67e9932152d65a063bea0848c98f5c8d73 | [
"BSD-3-Clause"
] | 45 | 2016-07-18T15:39:48.000Z | 2022-02-28T17:06:38.000Z | test_proj/blog/admin.py | Ivan-Feofanov/django-inline-actions | a9410a67e9932152d65a063bea0848c98f5c8d73 | [
"BSD-3-Clause"
] | 40 | 2016-09-23T07:27:50.000Z | 2022-03-22T09:44:10.000Z | from django.contrib import admin, messages
from django.shortcuts import render
from django.utils.translation import gettext_lazy as _
from inline_actions.actions import DefaultActionsMixin, ViewAction
from inline_actions.admin import InlineActionsMixin, InlineActionsModelAdminMixin
from . import forms
from .models im... | 29.668874 | 87 | 0.667857 | 4,024 | 0.898214 | 0 | 0 | 644 | 0.14375 | 0 | 0 | 497 | 0.110938 |
3649038aeb95961f992580df722315d018924dd9 | 12,731 | py | Python | ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/macInMACv42_template.py | OpenIxia/ixnetwork_restpy | f628db450573a104f327cf3c737ca25586e067ae | [
"MIT"
] | 20 | 2019-05-07T01:59:14.000Z | 2022-02-11T05:24:47.000Z | ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/macInMACv42_template.py | OpenIxia/ixnetwork_restpy | f628db450573a104f327cf3c737ca25586e067ae | [
"MIT"
] | 60 | 2019-04-03T18:59:35.000Z | 2022-02-22T12:05:05.000Z | ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/macInMACv42_template.py | OpenIxia/ixnetwork_restpy | f628db450573a104f327cf3c737ca25586e067ae | [
"MIT"
] | 13 | 2019-05-20T10:48:31.000Z | 2021-10-06T07:45:44.000Z | from ixnetwork_restpy.base import Base
from ixnetwork_restpy.files import Files
class MacInMACv42(Base):
__slots__ = ()
_SDM_NAME = 'macInMACv42'
_SDM_ATT_MAP = {
'HeaderBDstAddress': 'macInMACv42.header.bDstAddress-1',
'HeaderBSrcAddress': 'macInMACv42.header.bSrcAddress-2',
'BTAG... | 35.561453 | 127 | 0.657843 | 12,648 | 0.99348 | 0 | 0 | 9,681 | 0.760427 | 0 | 0 | 6,153 | 0.483308 |
36490aa7054830d00893922cc4300184b33b2ea9 | 1,037 | py | Python | aries_cloudagent/commands/__init__.py | ldej/aries-cloudagent-python | 25b7a9c08921e67b0962c434102489884ac403b2 | [
"Apache-2.0"
] | 1 | 2021-01-15T01:04:43.000Z | 2021-01-15T01:04:43.000Z | aries_cloudagent/commands/__init__.py | ldej/aries-cloudagent-python | 25b7a9c08921e67b0962c434102489884ac403b2 | [
"Apache-2.0"
] | 1 | 2020-03-06T12:11:29.000Z | 2020-03-06T12:11:29.000Z | aries_cloudagent/commands/__init__.py | ldej/aries-cloudagent-python | 25b7a9c08921e67b0962c434102489884ac403b2 | [
"Apache-2.0"
] | 1 | 2021-01-15T08:45:02.000Z | 2021-01-15T08:45:02.000Z | """Commands module common setup."""
from importlib import import_module
from typing import Sequence
def available_commands():
"""Index available commands."""
return [
{"name": "help", "summary": "Print available commands"},
{"name": "provision", "summary": "Provision an agent"},
{"nam... | 29.628571 | 66 | 0.636451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 374 | 0.360656 |
36493db41d822a42cd12a9cb95ab495245aeb761 | 3,646 | py | Python | AI/Lab 2/astar.py | abikoraj/CSIT | 68ba4944d2b6366a8d5b70b92bdc16b19b7e9208 | [
"MIT"
] | 9 | 2021-11-29T00:56:41.000Z | 2022-03-19T04:41:05.000Z | AI/Lab 2/astar.py | abikoraj/CSIT | 68ba4944d2b6366a8d5b70b92bdc16b19b7e9208 | [
"MIT"
] | null | null | null | AI/Lab 2/astar.py | abikoraj/CSIT | 68ba4944d2b6366a8d5b70b92bdc16b19b7e9208 | [
"MIT"
] | 3 | 2021-11-29T06:30:33.000Z | 2022-03-18T14:27:23.000Z | gScore = 0 #use this to index g(n)
fScore = 1 #use this to index f(n)
previous = 2 #use this to index previous node
inf = 10000 #use this for value of infinity
#we represent the graph usind adjacent list
#as dictionary of dictionaries
G = {
'biratnagar' : {'itahari' : 22, 'biratchowk' : 30, 'rangeli': 2... | 33.145455 | 94 | 0.545804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,135 | 0.3113 |
3649d664027df60736783975e94228ac3542abe3 | 19,918 | py | Python | plio/io/io_controlnetwork.py | jlaura/plio | 980c92d88cc78d27729392c14b3113cfac4f89cd | [
"Unlicense"
] | 11 | 2018-02-01T02:56:26.000Z | 2022-02-21T12:08:12.000Z | plio/io/io_controlnetwork.py | jlaura/plio | 980c92d88cc78d27729392c14b3113cfac4f89cd | [
"Unlicense"
] | 151 | 2016-06-15T21:31:37.000Z | 2021-11-15T16:55:53.000Z | plio/io/io_controlnetwork.py | jlaura/plio | 980c92d88cc78d27729392c14b3113cfac4f89cd | [
"Unlicense"
] | 21 | 2016-06-17T17:02:39.000Z | 2021-03-08T20:47:50.000Z | from enum import IntEnum
from time import gmtime, strftime
import warnings
import pandas as pd
import numpy as np
import pvl
import struct
from plio.io import ControlNetFileV0002_pb2 as cnf
from plio.io import ControlNetFileHeaderV0005_pb2 as cnh5
from plio.io import ControlPointFileEntryV0005_pb2 as cnp5
from plio.u... | 39.836 | 151 | 0.570288 | 16,697 | 0.838287 | 0 | 0 | 191 | 0.009589 | 0 | 0 | 6,543 | 0.328497 |
364ab9b65eb9e9388a14433c72e77abdba6bec4c | 4,028 | py | Python | resources.py | slowiklukasz/qgis-inventories | 6bd247f41ec3340964522b3cac9dd9a924cefbf2 | [
"MIT"
] | null | null | null | resources.py | slowiklukasz/qgis-inventories | 6bd247f41ec3340964522b3cac9dd9a924cefbf2 | [
"MIT"
] | null | null | null | resources.py | slowiklukasz/qgis-inventories | 6bd247f41ec3340964522b3cac9dd9a924cefbf2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt5 (Qt v5.15.2)
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore
qt_resource_data = b"\
\x00\x00\x02\x05\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
... | 41.102041 | 130 | 0.708292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,376 | 0.838133 |
364b2da593ffc26a8e80419fd18f3ad6526af7ad | 2,130 | py | Python | pulsarpy_to_encodedcc/scripts/patch_r2_paired_with.py | yunhailuo/pulsarpy-to-encodedcc | 9fd0ce2b81b502dbd2e1e39910f373bd9635f787 | [
"MIT"
] | null | null | null | pulsarpy_to_encodedcc/scripts/patch_r2_paired_with.py | yunhailuo/pulsarpy-to-encodedcc | 9fd0ce2b81b502dbd2e1e39910f373bd9635f787 | [
"MIT"
] | null | null | null | pulsarpy_to_encodedcc/scripts/patch_r2_paired_with.py | yunhailuo/pulsarpy-to-encodedcc | 9fd0ce2b81b502dbd2e1e39910f373bd9635f787 | [
"MIT"
] | 1 | 2020-02-21T18:09:12.000Z | 2020-02-21T18:09:12.000Z | #!/usr/bin/env python
"""
Given one or more DCC experiment IDs, looks at all read2s that were submitted and updates each r2 file
object such that it's paired_with property points to the correct r1. This works by looking at the aliases
in the r2 file object to see if there is one with _R2_001 in it. If so, it sets pair... | 37.368421 | 105 | 0.553521 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 690 | 0.323944 |
364b86ae80f99f078899fde9b937f621e0386d77 | 1,022 | py | Python | ibsng/handler/bw/update_node.py | ParspooyeshFanavar/pyibsng | d48bcf4f25e3f23461528bf0ff8870cc3d537444 | [
"MIT"
] | 6 | 2018-03-06T10:16:36.000Z | 2021-12-05T12:43:10.000Z | ibsng/handler/bw/update_node.py | ParspooyeshFanavar/pyibsng | d48bcf4f25e3f23461528bf0ff8870cc3d537444 | [
"MIT"
] | 3 | 2018-03-06T10:27:08.000Z | 2022-01-02T15:21:27.000Z | ibsng/handler/bw/update_node.py | ParspooyeshFanavar/pyibsng | d48bcf4f25e3f23461528bf0ff8870cc3d537444 | [
"MIT"
] | 3 | 2018-01-06T16:28:31.000Z | 2018-09-17T19:47:19.000Z | """Update node API method."""
from ibsng.handler.handler import Handler
class updateNode(Handler):
"""Update node class."""
def control(self):
"""Validate inputs after setup method.
:return: None
:rtype: None
"""
self.is_valid(self.node_id, int)
self.is_valid_... | 28.388889 | 66 | 0.629159 | 947 | 0.926614 | 0 | 0 | 0 | 0 | 0 | 0 | 401 | 0.392368 |
364be06117f32488ff211fd30ee702031b4b63f0 | 935 | py | Python | make_mozilla/events/tests/test_paginators.py | Mozilla-GitHub-Standards/54c69db06ef83bda60e995a6c34ecfd168ca028994e40ce817295415bb409f0c | f80e7c0cff97a1e9b301aa04015db983c7645778 | [
"BSD-3-Clause"
] | 4 | 2015-05-08T16:58:53.000Z | 2019-09-06T05:30:59.000Z | make_mozilla/events/tests/test_paginators.py | Mozilla-GitHub-Standards/54c69db06ef83bda60e995a6c34ecfd168ca028994e40ce817295415bb409f0c | f80e7c0cff97a1e9b301aa04015db983c7645778 | [
"BSD-3-Clause"
] | 2 | 2019-02-17T17:44:53.000Z | 2019-03-28T03:54:39.000Z | make_mozilla/events/tests/test_paginators.py | Mozilla-GitHub-Standards/54c69db06ef83bda60e995a6c34ecfd168ca028994e40ce817295415bb409f0c | f80e7c0cff97a1e9b301aa04015db983c7645778 | [
"BSD-3-Clause"
] | 7 | 2015-05-21T15:38:29.000Z | 2019-10-28T23:39:06.000Z | from django.utils import unittest
from nose.tools import eq_, ok_
from make_mozilla.events.paginators import results_page
sample_results = [1,2,3,4,5,6,7,8,9,0]
class TestResultsPage(unittest.TestCase):
def test_returns_page_1_if_page_unspecified(self):
page = results_page(sample_results, 4)
... | 28.333333 | 67 | 0.686631 | 770 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 0.011765 |
364bea1cc3a268196e079579f42571e86d9befb2 | 644 | py | Python | river/ensemble/test_streaming_random_patches.py | brcharron/creme | 25290780f6bba0eb030215194e81b120d0219389 | [
"BSD-3-Clause"
] | 1 | 2020-12-04T18:56:19.000Z | 2020-12-04T18:56:19.000Z | river/ensemble/test_streaming_random_patches.py | brcharron/creme | 25290780f6bba0eb030215194e81b120d0219389 | [
"BSD-3-Clause"
] | null | null | null | river/ensemble/test_streaming_random_patches.py | brcharron/creme | 25290780f6bba0eb030215194e81b120d0219389 | [
"BSD-3-Clause"
] | null | null | null | import copy
import pytest
from river import utils
from river import ensemble
estimator = ensemble.SRPClassifier(
n_models=3, # Smaller ensemble than the default to avoid bottlenecks
seed=42)
@pytest.mark.parametrize('estimator, check', [
pytest.param(
estimator,
check,
id=f'{... | 24.769231 | 75 | 0.726708 | 0 | 0 | 0 | 0 | 436 | 0.677019 | 0 | 0 | 210 | 0.326087 |
364c9e4c77bae14954a377098632009151fcd659 | 2,071 | py | Python | antlir/nspawn_in_subvol/plugin_hooks.py | lhl2617/antlir | 1041732e8163c1316d3e45c0ba4db7937faa4809 | [
"MIT"
] | null | null | null | antlir/nspawn_in_subvol/plugin_hooks.py | lhl2617/antlir | 1041732e8163c1316d3e45c0ba4db7937faa4809 | [
"MIT"
] | null | null | null | antlir/nspawn_in_subvol/plugin_hooks.py | lhl2617/antlir | 1041732e8163c1316d3e45c0ba4db7937faa4809 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"The core logic of how plugins integrate with `popen_nspawn`"
import functools
import subprocess
from contextlib impor... | 30.910448 | 79 | 0.740222 | 0 | 0 | 1,127 | 0.544182 | 1,175 | 0.567359 | 0 | 0 | 275 | 0.132786 |
364d2da5e343e2ce74256399a60ddf18ac23eadf | 4,577 | py | Python | horseDB.py | maf-kakimoto/bet | 3da7c57bca88cee8f5565e605fae38168f6b21fa | [
"Apache-2.0"
] | null | null | null | horseDB.py | maf-kakimoto/bet | 3da7c57bca88cee8f5565e605fae38168f6b21fa | [
"Apache-2.0"
] | null | null | null | horseDB.py | maf-kakimoto/bet | 3da7c57bca88cee8f5565e605fae38168f6b21fa | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import time
import pandas as pd
# self-made
import manage_mysql
def horseDB(table,search):
con = manage_mysql.connect()
c = con.cursor()
column=[]
value=[]
for i in range(len(search)):
if i%2 == 0:
column.append(search[i])
else:
va... | 28.968354 | 89 | 0.489404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,343 | 0.293424 |
364dafdcafb142ed50351e67323fec6552de2b84 | 325 | py | Python | maskrcnn_benchmark/data/datasets/__init__.py | lipengfeizju/Detection | efe00b221725be05e30fd67957958f97ae42b3cf | [
"MIT"
] | null | null | null | maskrcnn_benchmark/data/datasets/__init__.py | lipengfeizju/Detection | efe00b221725be05e30fd67957958f97ae42b3cf | [
"MIT"
] | null | null | null | maskrcnn_benchmark/data/datasets/__init__.py | lipengfeizju/Detection | efe00b221725be05e30fd67957958f97ae42b3cf | [
"MIT"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
from .coco import COCODataset
from .voc import PascalVOCDataset
from .concat_dataset import ConcatDataset
__all__ = ["COCODataset", "ConcatDataset", "PascalVOCDataset"]
# if isinstance(dataset, datasets.MyDataset):
# return coco_evaluation(**... | 36.111111 | 71 | 0.778462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 198 | 0.609231 |
364dc99efa920ea79a2d2856b41d0a11a59412b1 | 68 | py | Python | social/actions.py | raccoongang/python-social-auth | 81c0a542d158772bd3486d31834c10af5d5f08b0 | [
"BSD-3-Clause"
] | 1,987 | 2015-01-01T16:12:45.000Z | 2022-03-29T14:24:25.000Z | social/actions.py | raccoongang/python-social-auth | 81c0a542d158772bd3486d31834c10af5d5f08b0 | [
"BSD-3-Clause"
] | 731 | 2015-01-01T22:55:25.000Z | 2022-03-10T15:07:51.000Z | virtual/lib/python3.6/site-packages/social/actions.py | dennismwaniki67/awards | 80ed10541f5f751aee5f8285ab1ad54cfecba95f | [
"MIT"
] | 1,082 | 2015-01-01T16:27:26.000Z | 2022-03-22T21:18:33.000Z | from social_core.actions import do_auth, do_complete, do_disconnect
| 34 | 67 | 0.867647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
364de668db5e04abf8c4ddb3813bc74fcc464515 | 3,097 | py | Python | src/alphazero/data.py | Whillikers/seldon | 0d3ff7b25c7272d76a9aba38ee22efd910750f84 | [
"MIT"
] | 1 | 2019-11-03T20:18:16.000Z | 2019-11-03T20:18:16.000Z | src/alphazero/data.py | Whillikers/seldon | 0d3ff7b25c7272d76a9aba38ee22efd910750f84 | [
"MIT"
] | null | null | null | src/alphazero/data.py | Whillikers/seldon | 0d3ff7b25c7272d76a9aba38ee22efd910750f84 | [
"MIT"
] | null | null | null | """
Code for working with data.
In-memory format (as a list):
- board: Tensor (8, 8, 2) [bool; one-hot]
- move: Tensor (64,) [bool; one-hot]
- value: Tensor () [float32]
On-disk format (to save space and quicken loading):
- board: int64
- move: int64
- value: float32
"""
from typing import Dict, Tuple
import ... | 34.032967 | 87 | 0.680336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,262 | 0.407491 |
364e9aa16c6e94c8b02ddd7f95c3691e35f760e3 | 140 | py | Python | Codechef Factorial.py | zoya-0509/Practice-codes | 4d71b1b004f309025c215e55a504c7817b00e8c9 | [
"MIT"
] | null | null | null | Codechef Factorial.py | zoya-0509/Practice-codes | 4d71b1b004f309025c215e55a504c7817b00e8c9 | [
"MIT"
] | null | null | null | Codechef Factorial.py | zoya-0509/Practice-codes | 4d71b1b004f309025c215e55a504c7817b00e8c9 | [
"MIT"
] | null | null | null | t=int(input(""))
while (t>0):
n=int(input(""))
f=1
for i in range(1,n+1):
f=f*i
print(f)
t=t-1
| 15.555556 | 28 | 0.378571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0.028571 |
364ed94d670a685e7be3d3182211a00338f863e8 | 269 | py | Python | LC/263.py | szhu3210/LeetCode_Solutions | 64747eb172c2ecb3c889830246f3282669516e10 | [
"MIT"
] | 2 | 2018-02-24T17:20:02.000Z | 2018-02-24T17:25:43.000Z | LC/263.py | szhu3210/LeetCode_Solutions | 64747eb172c2ecb3c889830246f3282669516e10 | [
"MIT"
] | null | null | null | LC/263.py | szhu3210/LeetCode_Solutions | 64747eb172c2ecb3c889830246f3282669516e10 | [
"MIT"
] | null | null | null | class Solution(object):
def isUgly(self, num):
"""
:type num: int
:rtype: bool
"""
if num <= 0:
return False
for x in [2,3,5]:
while(num % x ==0):
num /= x
return num==1 | 22.416667 | 31 | 0.386617 | 269 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 59 | 0.219331 |
364f0f926540cab854ab6053e2e09c0e19eaaacc | 1,569 | py | Python | pkgcore/ebuild/errors.py | pombreda/pkgcore | b438fc573af1a031d7ce12adbbf299bab5338451 | [
"BSD-3-Clause"
] | 1 | 2021-07-05T13:10:18.000Z | 2021-07-05T13:10:18.000Z | pkgcore/ebuild/errors.py | vapier/pkgcore | 35a7e4f4f0fc61dd9c4dc72d35a57e2e9d5b832f | [
"BSD-3-Clause"
] | 8 | 2015-03-24T14:21:44.000Z | 2015-03-24T14:21:44.000Z | pkgcore/ebuild/errors.py | vapier/pkgcore | 35a7e4f4f0fc61dd9c4dc72d35a57e2e9d5b832f | [
"BSD-3-Clause"
] | null | null | null | # Copyright: 2005 Brian Harring <[email protected]>
# License: GPL2/BSD
# "More than one statement on a single line"
# pylint: disable-msg=C0321
"""
atom exceptions
"""
__all__ = ("MalformedAtom", "InvalidVersion", "InvalidCPV", "ParseError")
from pkgcore.package import errors
class MalformedAtom(errors.InvalidD... | 27.526316 | 78 | 0.599745 | 1,274 | 0.811982 | 0 | 0 | 0 | 0 | 0 | 0 | 535 | 0.340982 |
3652d826b86718a511de34e46553dd7eade808bc | 10,578 | py | Python | trainer/train_doc_ml.py | dainis-boumber/AA_CNN | 649612215c7e290ede1c51625268ad9fd7b46228 | [
"MIT"
] | 1 | 2021-09-27T09:39:11.000Z | 2021-09-27T09:39:11.000Z | trainer/train_doc_ml.py | dainis-boumber/AA_CNN | 649612215c7e290ede1c51625268ad9fd7b46228 | [
"MIT"
] | null | null | null | trainer/train_doc_ml.py | dainis-boumber/AA_CNN | 649612215c7e290ede1c51625268ad9fd7b46228 | [
"MIT"
] | 4 | 2018-03-21T23:19:40.000Z | 2021-03-05T15:09:01.000Z | #! /usr/bin/env python
import datetime
import os
import time
import tensorflow as tf
from datahelpers import data_helper_ml_mulmol6_OnTheFly as dh
from evaluators import eval_pan_archy as evaler
from networks.cnn_ml_archy import TextCNN
def init_data(embed_dimension, do_dev_split=False):
dater = dh.DataHelperM... | 45.012766 | 119 | 0.616752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,095 | 0.198053 |
365493226ef8ff623b67882ccdb1d5957462cc3b | 80 | py | Python | releases/_version.py | Nicusor97/releases | 97a763e41bbe7374106a1c648b89346a0d935429 | [
"BSD-2-Clause"
] | null | null | null | releases/_version.py | Nicusor97/releases | 97a763e41bbe7374106a1c648b89346a0d935429 | [
"BSD-2-Clause"
] | null | null | null | releases/_version.py | Nicusor97/releases | 97a763e41bbe7374106a1c648b89346a0d935429 | [
"BSD-2-Clause"
] | null | null | null | __version_info__ = (1, 6, 1)
__version__ = '.'.join(map(str, __version_info__))
| 26.666667 | 50 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0.0375 |
3656cab44b971cc68a2561efdd667d02fb35d8b4 | 442 | py | Python | areaofrectangle.py | Ahmad-Aiman/Calculate-Area-of-Rectangle | ff33a2eab14bffc1a8c29a9134cabea48b69538b | [
"MIT"
] | null | null | null | areaofrectangle.py | Ahmad-Aiman/Calculate-Area-of-Rectangle | ff33a2eab14bffc1a8c29a9134cabea48b69538b | [
"MIT"
] | null | null | null | areaofrectangle.py | Ahmad-Aiman/Calculate-Area-of-Rectangle | ff33a2eab14bffc1a8c29a9134cabea48b69538b | [
"MIT"
] | null | null | null | #Area of a rectangle = width x length
#Perimeter of a rectangle = 2 x [length + width#
width_input = float (input("\nPlease enter width: "))
length_input = float (input("Please enter length: "))
areaofRectangle = width_input * length_input
perimeterofRectangle = 2 * (width_input * length_input)
print ("\n... | 29.466667 | 67 | 0.70362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 199 | 0.450226 |
3657fec70ed8fedb4b5b14e5e0ae343bef42588d | 2,324 | py | Python | python/src/main/python/pygw/store/rocksdb/options.py | Maxar-Corp/sh-geowave | 675781d3898b50c09ee66f57e74cf788286b05d5 | [
"Apache-2.0"
] | null | null | null | python/src/main/python/pygw/store/rocksdb/options.py | Maxar-Corp/sh-geowave | 675781d3898b50c09ee66f57e74cf788286b05d5 | [
"Apache-2.0"
] | null | null | null | python/src/main/python/pygw/store/rocksdb/options.py | Maxar-Corp/sh-geowave | 675781d3898b50c09ee66f57e74cf788286b05d5 | [
"Apache-2.0"
] | null | null | null | #
# Copyright (c) 2013-2020 Contributors to the Eclipse Foundation
#
# See the NOTICE file distributed with this work for additional information regarding copyright
# ownership. All rights reserved. This program and the accompanying materials are made available
# under the terms of the Apache License, Version 2.0 whic... | 31.835616 | 96 | 0.63167 | 1,727 | 0.743115 | 0 | 0 | 0 | 0 | 0 | 0 | 1,461 | 0.628657 |
36595769c1ee20b5e029d4e12f235050f6967122 | 33,084 | py | Python | server/miscellaneous.py | dewancse/SMT-PMR | 8d280ff5d169a021a73ffa30c8159581ab859c62 | [
"MIT"
] | null | null | null | server/miscellaneous.py | dewancse/SMT-PMR | 8d280ff5d169a021a73ffa30c8159581ab859c62 | [
"MIT"
] | 10 | 2017-05-16T22:08:40.000Z | 2017-10-30T21:07:47.000Z | server/miscellaneous.py | dewancse/SMT-PMR | 8d280ff5d169a021a73ffa30c8159581ab859c62 | [
"MIT"
] | null | null | null | import requests
from libcellml import *
import lxml.etree as ET
# pre-generated model recipe in JSON format
model_recipe = [
{
"med_fma": "http://purl.obolibrary.org/obo/FMA_84666",
"med_pr": "http://purl.obolibrary.org/obo/PR_P26433",
"med_pr_text": "sodium/hydrogen exchanger 3 (rat)",
... | 44.647773 | 127 | 0.599716 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 16,959 | 0.512604 |
365d9e30b62ef2b43194d13cd3b143b547c83df7 | 2,383 | py | Python | epg_grabber/sites/beinsports_id.py | akmalharith/epg-grabber | ee6bdd20f7cbb4c780d96a8ce0fe2ca68b553c33 | [
"MIT"
] | 1 | 2022-03-16T00:42:21.000Z | 2022-03-16T00:42:21.000Z | epg_grabber/sites/beinsports_id.py | akmalharith/epg-grabber | ee6bdd20f7cbb4c780d96a8ce0fe2ca68b553c33 | [
"MIT"
] | null | null | null | epg_grabber/sites/beinsports_id.py | akmalharith/epg-grabber | ee6bdd20f7cbb4c780d96a8ce0fe2ca68b553c33 | [
"MIT"
] | 1 | 2022-03-17T17:16:30.000Z | 2022-03-17T17:16:30.000Z | from typing import List
import requests
from pathlib import Path
from datetime import date, datetime
from bs4 import BeautifulSoup
from helper.classes import Channel, Program
from helper.utils import get_channel_by_name, get_epg_datetime
TIMEZONE_OFFSET = "+0800"
PROGRAM_URL = "https://epg.beinsports.com/utctime_id.ph... | 31.773333 | 111 | 0.61645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 377 | 0.158204 |
365ebdd95b4706dd8e23a6549e2d402adf342132 | 1,608 | py | Python | C19/19-1_Blog/blogs/views.py | Triple-Z/Python-Crash-Course | 7e59104420f6110e4d60668314264105534016ce | [
"MIT"
] | null | null | null | C19/19-1_Blog/blogs/views.py | Triple-Z/Python-Crash-Course | 7e59104420f6110e4d60668314264105534016ce | [
"MIT"
] | null | null | null | C19/19-1_Blog/blogs/views.py | Triple-Z/Python-Crash-Course | 7e59104420f6110e4d60668314264105534016ce | [
"MIT"
] | null | null | null | from django.shortcuts import render
from .models import BlogPost
from django.http import HttpResponseRedirect, Http404
from django.urls import reverse
from .forms import BlogForm
from django.contrib.auth.decorators import login_required
from .auth import check_blog_author
def index(request):
blogs = BlogPost.obje... | 26.8 | 78 | 0.663557 | 0 | 0 | 0 | 0 | 1,005 | 0.625 | 0 | 0 | 159 | 0.098881 |
365f44e59be4486a64ab3380f2d229d1dcacfbe6 | 34 | py | Python | SmartAPI/__init__.py | Kreastr/SmartAPI-HEILA | 97dbe9e6e27267c60a4f94f60692d5f391e2ef7f | [
"BSD-2-Clause"
] | null | null | null | SmartAPI/__init__.py | Kreastr/SmartAPI-HEILA | 97dbe9e6e27267c60a4f94f60692d5f391e2ef7f | [
"BSD-2-Clause"
] | null | null | null | SmartAPI/__init__.py | Kreastr/SmartAPI-HEILA | 97dbe9e6e27267c60a4f94f60692d5f391e2ef7f | [
"BSD-2-Clause"
] | null | null | null | import sys
import site
import os
| 6.8 | 11 | 0.794118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
365f7a0a4d0f8739674bb26bb9651db410c27bb4 | 410 | py | Python | compiler/dna/components/DNASuitEdge.py | AnonymousDeveloper65535/libpandadna | 3110a8d576d22093e4c735081c5f639d28397a17 | [
"BSD-3-Clause"
] | 36 | 2015-01-29T19:43:45.000Z | 2022-01-19T11:49:28.000Z | compiler/dna/components/DNASuitEdge.py | AnonymousDeveloper65535/libpandadna | 3110a8d576d22093e4c735081c5f639d28397a17 | [
"BSD-3-Clause"
] | 44 | 2015-01-16T16:09:30.000Z | 2022-01-25T02:29:15.000Z | compiler/dna/components/DNASuitEdge.py | AnonymousDeveloper65535/libpandadna | 3110a8d576d22093e4c735081c5f639d28397a17 | [
"BSD-3-Clause"
] | 42 | 2015-01-03T08:43:21.000Z | 2022-01-11T04:29:11.000Z | class DNASuitEdge:
COMPONENT_CODE = 22
def __init__(self, startPoint, endPoint, zoneId):
self.startPoint = startPoint
self.endPoint = endPoint
self.zoneId = zoneId
def setStartPoint(self, startPoint):
self.startPoint = startPoint
def setEndPoint(self, endPoint):
... | 24.117647 | 53 | 0.656098 | 409 | 0.997561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
3660a38e9b27f00fca04ce1ae0246262cce312d3 | 3,455 | py | Python | cpplint_junit.py | johnthagen/cpplint-junit | 9de4ed6762fdb415e1ebe94f1cd82d2027c2b96f | [
"MIT"
] | 5 | 2016-02-15T19:24:46.000Z | 2020-05-12T12:35:24.000Z | cpplint_junit.py | johnthagen/cpplint-junit | 9de4ed6762fdb415e1ebe94f1cd82d2027c2b96f | [
"MIT"
] | 2 | 2019-10-14T12:25:38.000Z | 2019-12-15T18:34:34.000Z | cpplint_junit.py | johnthagen/cpplint-junit | 9de4ed6762fdb415e1ebe94f1cd82d2027c2b96f | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
"""Converts cpplint output to JUnit XML format."""
import argparse
import collections
import os
import re
import sys
from typing import Dict, List
from xml.etree import ElementTree
from exitstatus import ExitStatus
class CpplintError(object):
def __init__(self, file: str, line: int, mes... | 29.279661 | 96 | 0.58958 | 351 | 0.101592 | 0 | 0 | 0 | 0 | 0 | 0 | 988 | 0.285962 |