hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 251 | max_forks_repo_name stringlengths 4 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
52a7bb8061d2a7831f792c5ce19bca7393244db9 | 11,046 | py | Python | google/ads/google_ads/v6/proto/resources/shared_set_pb2.py | jphanwebstaurant/google-ads-python | 600812b2afcc4d57f00b47dfe436620ce50bfe9b | [
"Apache-2.0"
] | 1 | 2021-04-09T04:28:47.000Z | 2021-04-09T04:28:47.000Z | google/ads/google_ads/v6/proto/resources/shared_set_pb2.py | jphanwebstaurant/google-ads-python | 600812b2afcc4d57f00b47dfe436620ce50bfe9b | [
"Apache-2.0"
] | null | null | null | google/ads/google_ads/v6/proto/resources/shared_set_pb2.py | jphanwebstaurant/google-ads-python | 600812b2afcc4d57f00b47dfe436620ce50bfe9b | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads_v6/proto/resources/shared_set.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.p... | 58.444444 | 1,499 | 0.779558 |
52aac1e125cfaa8a910431ade1ba06863dbcee6c | 2,722 | py | Python | garecovery/mnemonic.py | LeoComandini/garecovery | 66f7fe4c15b3866e751162fd990bd5bc8c58ec7a | [
"MIT"
] | 61 | 2017-08-30T13:16:42.000Z | 2022-03-24T16:28:18.000Z | garecovery/mnemonic.py | baby636/garecovery | 9ced74920b804adc3a7be443f09a950a884c8c0c | [
"MIT"
] | 34 | 2017-08-11T16:58:16.000Z | 2022-02-18T09:00:23.000Z | garecovery/mnemonic.py | baby636/garecovery | 9ced74920b804adc3a7be443f09a950a884c8c0c | [
"MIT"
] | 46 | 2017-08-09T18:11:55.000Z | 2022-03-04T05:30:54.000Z | import wallycore as wally
from . import exceptions
from gaservices.utils import h2b
wordlist_ = wally.bip39_get_wordlist('en')
wordlist = [wally.bip39_get_word(wordlist_, i) for i in range(2048)]
def seed_from_mnemonic(mnemonic_or_hex_seed):
"""Return seed, mnemonic given an input string
mnemonic_or_hex_se... | 37.805556 | 86 | 0.709405 |
52ab08bb235449b1d6733e6d61123545bf0f1f33 | 16,752 | py | Python | probability_kernels.py | jessebmurray/polygenic | 19c1ca5d7cf5e1b22f4301f7864a7b12ea46ac84 | [
"MIT"
] | 2 | 2020-03-12T16:45:24.000Z | 2020-03-12T23:09:05.000Z | probability_kernels.py | jessebmurray/polygenic | 19c1ca5d7cf5e1b22f4301f7864a7b12ea46ac84 | [
"MIT"
] | null | null | null | probability_kernels.py | jessebmurray/polygenic | 19c1ca5d7cf5e1b22f4301f7864a7b12ea46ac84 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import scipy.stats as st
# Basic model functions
def pdf(x_i, sigma_i=1, mu=0):
"""Returns the marginal (population) pdf of X_i ~ Normal(mu, sigma_i^2)."""
return st.norm.pdf(x_i, scale=sigma_i, loc=mu)
def stable_rs(r):
"""Calculates r_s from r unde... | 38.422018 | 94 | 0.660757 |
52ab535bd1515f812b69c19c90b0debaf79326f8 | 6,661 | py | Python | main/part1/utils.py | YerbaPage/KnowledgeGraph | 6e839ee2fa677360b47eefe4947c4f9d0591685c | [
"MIT"
] | 2 | 2021-04-22T01:59:57.000Z | 2021-07-26T08:55:36.000Z | main/part1/utils.py | YerbaPage/KnowledgeGraph | 6e839ee2fa677360b47eefe4947c4f9d0591685c | [
"MIT"
] | null | null | null | main/part1/utils.py | YerbaPage/KnowledgeGraph | 6e839ee2fa677360b47eefe4947c4f9d0591685c | [
"MIT"
] | null | null | null | # coding: UTF-8
import torch
from tqdm import tqdm
import time
from datetime import timedelta
import torch.nn as nn
from torch.autograd import Variable
import numpy as np
import torch.nn.functional as F
PAD, CLS = '[PAD]', '[CLS]' # padding, bert
def get_time_dif(start_time):
""""""
end_time = time.time(... | 36.201087 | 118 | 0.583696 |
52acccd56e887711b8141885aa5194b4be9e5cd8 | 2,596 | py | Python | tools/improve_8105.py | dophist/pinyin-data | 8010e208f7cbc44290e960e1ed75aeb5ba2b1daf | [
"MIT"
] | 823 | 2016-03-02T04:24:43.000Z | 2022-03-26T13:57:23.000Z | tools/improve_8105.py | dophist/pinyin-data | 8010e208f7cbc44290e960e1ed75aeb5ba2b1daf | [
"MIT"
] | 32 | 2016-07-19T07:44:20.000Z | 2022-03-07T05:43:10.000Z | tools/improve_8105.py | dophist/pinyin-data | 8010e208f7cbc44290e960e1ed75aeb5ba2b1daf | [
"MIT"
] | 185 | 2016-03-12T12:09:09.000Z | 2022-03-28T00:57:10.000Z | # -*- coding: utf-8 -*-
""" 8105 """
from collections import namedtuple
import re
import sys
from pyquery import PyQuery
import requests
re_pinyin = re.compile(r'(?P<pinyin>\S+) ')
re_code = re.compile(r'\w?(?P<code>\S+) ')
re_alternate = re.compile(r'\s+?(?P<alternate>\S+)')
HanziInfo = namedtuple('HanziInfo', 'piny... | 29.168539 | 69 | 0.552003 |
52b16b71969cb385515263b871a73adfb7b77434 | 4,812 | py | Python | src/olympia/blocklist/tests/test_cron.py | CSCD01/addons-server-team02 | 053f43d00fec71d8b9d3280ba9ef1ca46aae3aa6 | [
"BSD-3-Clause"
] | 3 | 2020-03-05T18:17:14.000Z | 2020-03-09T01:24:38.000Z | src/olympia/blocklist/tests/test_cron.py | CSCD01/addons-server-team02 | 053f43d00fec71d8b9d3280ba9ef1ca46aae3aa6 | [
"BSD-3-Clause"
] | null | null | null | src/olympia/blocklist/tests/test_cron.py | CSCD01/addons-server-team02 | 053f43d00fec71d8b9d3280ba9ef1ca46aae3aa6 | [
"BSD-3-Clause"
] | null | null | null | import datetime
import json
import os
from unittest import mock
from django.conf import settings
from django.core.files.storage import default_storage as storage
from freezegun import freeze_time
from waffle.testutils import override_switch
from olympia.amo.tests import addon_factory, TestCase, user_factory
from oly... | 39.768595 | 78 | 0.67207 |
52b263d46a219a4b05582cac52569631b70e8be8 | 1,442 | py | Python | PuLP/magic_sqare.py | yunzhang599/Python3_Package_Examples | 3e479925f3f6818bf35e46123f720839acf075eb | [
"MIT"
] | 1 | 2019-11-16T05:06:01.000Z | 2019-11-16T05:06:01.000Z | PuLP/magic_sqare.py | yunzhang599/Python3_Package_Examples | 3e479925f3f6818bf35e46123f720839acf075eb | [
"MIT"
] | null | null | null | PuLP/magic_sqare.py | yunzhang599/Python3_Package_Examples | 3e479925f3f6818bf35e46123f720839acf075eb | [
"MIT"
] | null | null | null |
from pulp import *
prob = LpProblem("PULPTEST", LpMinimize)
# model variables
XCOORD = [0, 1, 2]
YCOORD = [0, 1, 2]
NUMBERS = [1, 2, 3, 4, 5, 6, 7, 8, 9]
# variable is a 3 x 3 x 9 matrix of binary values
allocation = LpVariable.dicts("square", (XCOORD, YCOORD, NUMBERS), 0, 1, LpInteger)
# target function
prob += 0... | 27.207547 | 90 | 0.633842 |
52b2cef2321b28d9b382b11b584f50285ddca3b9 | 482 | py | Python | api/features/exceptions.py | SolidStateGroup/Bullet-Train-API | ea47ccbdadf665a806ae4e0eff6ad1a2f1b0ba19 | [
"BSD-3-Clause"
] | 126 | 2019-12-13T18:41:43.000Z | 2020-11-10T13:33:55.000Z | api/features/exceptions.py | SolidStateGroup/Bullet-Train-API | ea47ccbdadf665a806ae4e0eff6ad1a2f1b0ba19 | [
"BSD-3-Clause"
] | 30 | 2019-12-12T16:52:01.000Z | 2020-11-09T18:55:29.000Z | api/features/exceptions.py | SolidStateGroup/Bullet-Train-API | ea47ccbdadf665a806ae4e0eff6ad1a2f1b0ba19 | [
"BSD-3-Clause"
] | 20 | 2020-02-14T21:55:36.000Z | 2020-11-03T22:29:03.000Z | from rest_framework import status
from rest_framework.exceptions import APIException
| 30.125 | 70 | 0.786307 |
52b4503e9b65d5bfcaf5744d5b9da4e173053293 | 74,777 | py | Python | ai_economist/real_business_cycle/rbc/cuda_manager.py | tljstewart/ai-economist | 4f57accbed95522a1ad90c50f7810282fde6e52c | [
"BSD-3-Clause"
] | 1 | 2022-03-28T21:07:08.000Z | 2022-03-28T21:07:08.000Z | ai_economist/real_business_cycle/rbc/cuda_manager.py | SocioProphet/ai-economist | 4ae6a7ddb7481eb22cde8f42267024fc9a6dbc01 | [
"BSD-3-Clause"
] | null | null | null | ai_economist/real_business_cycle/rbc/cuda_manager.py | SocioProphet/ai-economist | 4ae6a7ddb7481eb22cde8f42267024fc9a6dbc01 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2021, salesforce.com, inc.
# All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause
# For full license text, see the LICENSE file in the repo root
# or https://opensource.org/licenses/BSD-3-Clause
import itertools
import os
import random
from pathlib import Path
import numpy as np
import pycuda
... | 38.724495 | 88 | 0.567527 |
52b53fc840acc1bf09eb244812212a0134629fbd | 11,030 | py | Python | tests/test_transforms/test_encoders/test_categorical_transform.py | Pacman1984/etna | 9b3ccb980e576d56858f14aca2e06ce2957b0fa9 | [
"Apache-2.0"
] | 96 | 2021-09-05T06:29:34.000Z | 2021-11-07T15:22:54.000Z | tests/test_transforms/test_encoders/test_categorical_transform.py | Pacman1984/etna | 9b3ccb980e576d56858f14aca2e06ce2957b0fa9 | [
"Apache-2.0"
] | 188 | 2021-09-06T15:59:58.000Z | 2021-11-17T09:34:16.000Z | tests/test_transforms/test_encoders/test_categorical_transform.py | Pacman1984/etna | 9b3ccb980e576d56858f14aca2e06ce2957b0fa9 | [
"Apache-2.0"
] | 8 | 2021-09-06T09:18:35.000Z | 2021-11-11T21:18:39.000Z | import numpy as np
import pandas as pd
import pytest
from etna.datasets import TSDataset
from etna.datasets import generate_ar_df
from etna.datasets import generate_const_df
from etna.datasets import generate_periodic_df
from etna.metrics import R2
from etna.models import LinearPerSegmentModel
from etna.transforms imp... | 44.837398 | 114 | 0.685766 |
52b58fbb3b5abd32caee769dd685ed00d95121c9 | 1,467 | py | Python | platform/core/polyaxon/db/migrations/0017_auto_20190104_2032.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | platform/core/polyaxon/db/migrations/0017_auto_20190104_2032.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | platform/core/polyaxon/db/migrations/0017_auto_20190104_2032.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.1.3 on 2019-01-04 20:32
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import libs.spec_validation
| 35.780488 | 192 | 0.641445 |
52b64d6a3cc20fe5b367848db8ee78806a620b35 | 1,591 | py | Python | validate.py | AVturbine/mapmaker | c70d748c340158a9be08df088e21cc70f0b84753 | [
"MIT"
] | 3 | 2018-01-14T21:24:11.000Z | 2018-07-26T14:11:01.000Z | validate.py | AVturbine/mapmaker | c70d748c340158a9be08df088e21cc70f0b84753 | [
"MIT"
] | 3 | 2018-01-14T02:12:12.000Z | 2018-01-25T16:02:55.000Z | validate.py | AVturbine/mapmaker | c70d748c340158a9be08df088e21cc70f0b84753 | [
"MIT"
] | 3 | 2018-01-13T04:30:27.000Z | 2018-01-19T00:10:16.000Z | MAP_HEIGHT_MIN = 20
MAP_HEIGHT_MAX = 50
MAP_WIDTH_MIN = 20
MAP_WIDTH_MAX = 50
MAP_KARBONITE_MIN = 0
MAP_KARBONITE_MAX = 50
ASTEROID_ROUND_MIN = 10
ASTEROID_ROUND_MAX = 20
ASTEROID_KARB_MIN = 20
ASTEROID_KARB_MAX = 100
ORBIT_FLIGHT_MIN = 50
ORBIT_FLIGHT_MAX = 200
ROUND_LIMIT = 1000
| 31.196078 | 92 | 0.664362 |
52b68564244ef7d53bf8d8e23a3a806ccdf7449e | 544 | py | Python | webserver/testserver/main/urls.py | frankovacevich/aleph | 9b01dcabf3c074e8617e50fffd35c9ee1960eab6 | [
"MIT"
] | null | null | null | webserver/testserver/main/urls.py | frankovacevich/aleph | 9b01dcabf3c074e8617e50fffd35c9ee1960eab6 | [
"MIT"
] | null | null | null | webserver/testserver/main/urls.py | frankovacevich/aleph | 9b01dcabf3c074e8617e50fffd35c9ee1960eab6 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('home', views.home, name='home'),
path('login', views.ulogin, name='login'),
path('logout', views.ulogout, name='logout'),
path('password_change', views.password_change, name='password_change... | 30.222222 | 75 | 0.650735 |
52b72cd9290f8164c698fae5869224cfa6d4ff36 | 8,603 | py | Python | exporter.py | mrDoctorWho/VK-Exporter | ecdcc818b2b375b2a42f0b106706c62cf833e1c4 | [
"MIT"
] | 9 | 2015-01-16T09:24:47.000Z | 2021-04-29T15:41:56.000Z | exporter.py | mrDoctorWho/VK-Exporter | ecdcc818b2b375b2a42f0b106706c62cf833e1c4 | [
"MIT"
] | 5 | 2018-04-02T05:50:20.000Z | 2018-06-05T23:40:35.000Z | exporter.py | mrDoctorWho/VK-Exporter | ecdcc818b2b375b2a42f0b106706c62cf833e1c4 | [
"MIT"
] | 1 | 2019-10-23T05:29:20.000Z | 2019-10-23T05:29:20.000Z | #!/usr/bin/env python2
# coding: utf-8
# based on the vk4xmpp gateway, v2.25
# simpleApps, 2013 2014.
# Program published under MIT license.
import gc
import json
import logging
import os
import re
import signal
import sys
import threading
import time
import urllib
core = getattr(sys.modules["__main__"], "__file__... | 26.884375 | 150 | 0.683018 |
52b76fc4164fe4af1de4e58e8df86ebc7ba9d189 | 160 | py | Python | rmidi/math/functions.py | rushike/rmidipy | 7d80dc2cc584cb2e8b8df0eeedc34e9e11ab0de7 | [
"MIT"
] | 5 | 2019-11-30T11:12:14.000Z | 2021-08-15T00:47:23.000Z | rmidi/math/functions.py | rushike/rmidipy | 7d80dc2cc584cb2e8b8df0eeedc34e9e11ab0de7 | [
"MIT"
] | 3 | 2020-03-14T04:45:38.000Z | 2020-05-31T15:07:13.000Z | rmidi/math/functions.py | rushike/rmidipy | 7d80dc2cc584cb2e8b8df0eeedc34e9e11ab0de7 | [
"MIT"
] | null | null | null | import math
| 32 | 122 | 0.55 |
52b94f6a46ab67c738007f61f91f1b32ae3ae2ba | 2,577 | py | Python | bot.py | Olegt0rr/calendar-telegram | 099e2c856fc6fbfeffe35bcb666e2800e41634ee | [
"MIT"
] | 4 | 2019-03-03T21:45:42.000Z | 2021-06-27T12:35:29.000Z | bot.py | Pestov/calendar-telegram | 099e2c856fc6fbfeffe35bcb666e2800e41634ee | [
"MIT"
] | null | null | null | bot.py | Pestov/calendar-telegram | 099e2c856fc6fbfeffe35bcb666e2800e41634ee | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import telebot
from telebot import types
import datetime
from telegramcalendar import create_calendar
bot = telebot.TeleBot("")
current_shown_dates={}
bot.polling()
| 33.467532 | 119 | 0.676756 |
52b9ce2bf8d9de0c43c56e76507be9b3c2b1b317 | 5,094 | py | Python | Src/models/model2_3L.py | OferMon/Covid19-DeepLearning-XAI | 34c390755aafcc376c2a27a283af8e96ea7ce318 | [
"Apache-2.0"
] | 2 | 2021-11-14T11:59:46.000Z | 2022-03-31T03:40:14.000Z | Src/models/model2_3L.py | OferMon/Covid19-DeepLearning-XAI | 34c390755aafcc376c2a27a283af8e96ea7ce318 | [
"Apache-2.0"
] | null | null | null | Src/models/model2_3L.py | OferMon/Covid19-DeepLearning-XAI | 34c390755aafcc376c2a27a283af8e96ea7ce318 | [
"Apache-2.0"
] | null | null | null | from sklearn.model_selection import train_test_split
import pandas as pd
import numpy as np
from keras.models import Sequential
from keras.layers import Dense, Activation, Flatten
from sklearn.ensemble import RandomForestClassifier
from sklearn.metrics import f1_score
from sklearn.metrics import accuracy_score, confusi... | 32.240506 | 108 | 0.669808 |
52b9e9f5160628ec72547ecc1f6e6284bb31babb | 14,275 | py | Python | models/FSSD_SE.py | cenchaojun/TDFSSD | 4c151fa1f26dd599849311bbdaee4f500c576f66 | [
"MIT"
] | null | null | null | models/FSSD_SE.py | cenchaojun/TDFSSD | 4c151fa1f26dd599849311bbdaee4f500c576f66 | [
"MIT"
] | null | null | null | models/FSSD_SE.py | cenchaojun/TDFSSD | 4c151fa1f26dd599849311bbdaee4f500c576f66 | [
"MIT"
] | null | null | null | '''
Micro Object Detector Net
the author:Luis
date : 11.25
'''
import os
import torch
import torch.nn as nn
import torch.nn.functional as F
from layers import *
from models.base_models import vgg, vgg_base
from ptflops import get_model_complexity_info
def low_pooling(vgg, extracts, size):
if size == 300:
... | 44.058642 | 121 | 0.596077 |
52b9eddf6573e3f16266c439e6b72ad18cdb718c | 24 | py | Python | __init__.py | yuta-hi/chainer_extensions | f0dbc898623c25251aa0820bfda8417e9edced6a | [
"MIT"
] | 1 | 2020-01-23T10:15:53.000Z | 2020-01-23T10:15:53.000Z | __init__.py | yuta-hi/chainer_extensions | f0dbc898623c25251aa0820bfda8417e9edced6a | [
"MIT"
] | null | null | null | __init__.py | yuta-hi/chainer_extensions | f0dbc898623c25251aa0820bfda8417e9edced6a | [
"MIT"
] | null | null | null | from . import extensions | 24 | 24 | 0.833333 |
52b9f9e9f171e8a8b809496821ff4343dbc31d1c | 412 | py | Python | change_wall.py | masoodmomin/Python | 1545cb1f5ae08e9df8682b893079c8ce776944eb | [
"MIT"
] | null | null | null | change_wall.py | masoodmomin/Python | 1545cb1f5ae08e9df8682b893079c8ce776944eb | [
"MIT"
] | null | null | null | change_wall.py | masoodmomin/Python | 1545cb1f5ae08e9df8682b893079c8ce776944eb | [
"MIT"
] | null | null | null | import os
import ctypes
import time
PATH = 'C:/Users/acer/Downloads/wall/'
SPI=20
def changeBG(path):
"""Change background depending on bit size"""
count=0
for x in os.listdir(PATH):
while True:
ctypes.windll.user32.SystemParametersInfoW(SPI, 0, PATH+x, 3)
ti... | 20.6 | 74 | 0.580097 |
52ba39cbc7fb572147ab2b78903b1a54e6357b9c | 11,085 | py | Python | rump/rule.py | bninja/rump | 3b6c4ff29974b3c04a260d8275567beebb296e5d | [
"0BSD"
] | 6 | 2015-07-27T09:02:36.000Z | 2018-07-18T11:11:33.000Z | rump/rule.py | bninja/rump | 3b6c4ff29974b3c04a260d8275567beebb296e5d | [
"0BSD"
] | null | null | null | rump/rule.py | bninja/rump | 3b6c4ff29974b3c04a260d8275567beebb296e5d | [
"0BSD"
] | null | null | null | import collections
import logging
import StringIO
from . import exc, Request, Expression
logger = logging.getLogger(__name__)
def loads(self, s, strict=None):
io = StringIO.StringIO(s)
return self.load(io, strict=strict)
def dump(self, io):
for rule in self:
io.write(... | 29.959459 | 80 | 0.564727 |
52bde9994c231b7dab0757f34ebf002f12e33370 | 951 | py | Python | tests/__init__.py | adelosa/cardutil | fa31223aaac1f0749d50368bb639a311d98e279a | [
"MIT"
] | null | null | null | tests/__init__.py | adelosa/cardutil | fa31223aaac1f0749d50368bb639a311d98e279a | [
"MIT"
] | 1 | 2022-03-25T20:15:24.000Z | 2022-03-30T09:20:34.000Z | tests/__init__.py | adelosa/cardutil | fa31223aaac1f0749d50368bb639a311d98e279a | [
"MIT"
] | null | null | null | import binascii
message_ascii_raw = test_message()
message_ebcdic_raw = test_message('cp500')
message_ascii_raw_hex = test_message(hex_bitmap=True)
message_ebcdic_raw_hex = test_message('cp500', hex_bitmap=True)
| 32.793103 | 95 | 0.729758 |
52be6c2a30d69c057fc9279336d0f7c1bee4db5d | 16,265 | py | Python | bot/discordbot.py | DuckMcFuddle/forum-sweats | 56a6df2bcb7beb630cc375638e6a31d4d234050b | [
"MIT"
] | 2 | 2020-12-05T07:56:59.000Z | 2021-05-18T19:34:27.000Z | bot/discordbot.py | antisynth/forum-sweats | b3d5352cfdb993c592085420ade2ed9c58b47b08 | [
"MIT"
] | null | null | null | bot/discordbot.py | antisynth/forum-sweats | b3d5352cfdb993c592085420ade2ed9c58b47b08 | [
"MIT"
] | null | null | null | from .betterbot import BetterBot
from . import commands
from datetime import datetime, timedelta
import importlib
import discord
import asyncio
import modbot
import forums
import base64
import json
import time
import os
import db
intents = discord.Intents.default()
intents.members = True
intents.presences = True
pre... | 31.582524 | 155 | 0.745958 |
52bf9e552405d6d0c21e5f6ccdaebea54d983579 | 2,089 | py | Python | management/commands/start_taskforce.py | mallipeddi/django-taskforce | dd7aa1eae508b15428dd0fe9c2be969a75038890 | [
"BSD-3-Clause"
] | 3 | 2015-11-05T06:07:22.000Z | 2021-11-08T11:21:51.000Z | management/commands/start_taskforce.py | mallipeddi/django-taskforce | dd7aa1eae508b15428dd0fe9c2be969a75038890 | [
"BSD-3-Clause"
] | null | null | null | management/commands/start_taskforce.py | mallipeddi/django-taskforce | dd7aa1eae508b15428dd0fe9c2be969a75038890 | [
"BSD-3-Clause"
] | null | null | null | import sys
from optparse import make_option
from django.core.management.base import BaseCommand
from django.conf import settings
import taskforce
| 36.017241 | 107 | 0.581618 |
52c00979320f1e4a0f34214d8d935b0833088713 | 521 | py | Python | profiles/migrations/0004_profile_smapply_user_data.py | umarmughal824/bootcamp-ecommerce | 681bcc788a66867b8f240790c0ed33680b73932b | [
"BSD-3-Clause"
] | 2 | 2018-06-20T19:37:03.000Z | 2021-01-06T09:51:40.000Z | profiles/migrations/0004_profile_smapply_user_data.py | mitodl/bootcamp-ecommerce | ba7d6aefe56c6481ae2a5afc84cdd644538b6d50 | [
"BSD-3-Clause"
] | 1,226 | 2017-02-23T14:52:28.000Z | 2022-03-29T13:19:54.000Z | profiles/migrations/0004_profile_smapply_user_data.py | umarmughal824/bootcamp-ecommerce | 681bcc788a66867b8f240790c0ed33680b73932b | [
"BSD-3-Clause"
] | 3 | 2017-03-20T03:51:27.000Z | 2021-03-19T15:54:31.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-09-13 18:42
from __future__ import unicode_literals
import django.contrib.postgres.fields.jsonb
from django.db import migrations
| 26.05 | 88 | 0.677543 |
52c0834ff93f1ed8d51ad80ac5952cb23df17269 | 250 | py | Python | Lists/list_of_beggars.py | petel3/Softuni_education | 4fd80f8c6ce6c3d6a838edecdb091dda2ed1084c | [
"MIT"
] | 2 | 2022-03-05T13:17:12.000Z | 2022-03-05T13:17:16.000Z | Lists/list_of_beggars.py | petel3/Softuni_education | 4fd80f8c6ce6c3d6a838edecdb091dda2ed1084c | [
"MIT"
] | null | null | null | Lists/list_of_beggars.py | petel3/Softuni_education | 4fd80f8c6ce6c3d6a838edecdb091dda2ed1084c | [
"MIT"
] | null | null | null | string = input().split(", ")
beggars = int(input())
beggars_list = []
for x in range(0, beggars):
temp = string[x::beggars]
for j in range(0, len(temp)):
temp[j] = int(temp[j])
beggars_list.append(sum(temp))
print(beggars_list) | 20.833333 | 34 | 0.616 |
52c2f493c965a91dab85655d544b65075ea9b225 | 1,978 | py | Python | python/locate_2D_array1.py | leewalter/coding | 2afd9dbfc1ecb94def35b953f4195a310d6953c9 | [
"Apache-2.0"
] | null | null | null | python/locate_2D_array1.py | leewalter/coding | 2afd9dbfc1ecb94def35b953f4195a310d6953c9 | [
"Apache-2.0"
] | null | null | null | python/locate_2D_array1.py | leewalter/coding | 2afd9dbfc1ecb94def35b953f4195a310d6953c9 | [
"Apache-2.0"
] | 1 | 2020-08-29T17:12:52.000Z | 2020-08-29T17:12:52.000Z | # python to locate 1 in a 2D array
#below save it into a dictionary
# python to locate 1 in a 2D array
array1 = [
[1, 1, 0, 0],
[0, 0, 1, 1],
[0, 1, 0, 1]
]
array2 = [
[1, 1, 0, 0, 0],
[0, 0, 1, 1, 0],
[0, 0, 1, 0, 1]
]
print(check_zero(array1))
print(check_zero(array2))
'''
array index zeros at:
{0:... | 14.87218 | 101 | 0.532356 |
52c38d1cc6e6ce5d847e7873d6a974fa56d65e99 | 163 | py | Python | tests/__init__.py | RonenTRA/faster-than-requests | 237a57cf2607e0694c87fea8e313461bf9a462e7 | [
"MIT"
] | 857 | 2018-11-18T17:55:01.000Z | 2022-03-31T23:39:10.000Z | tests/__init__.py | RonenTRA/faster-than-requests | 237a57cf2607e0694c87fea8e313461bf9a462e7 | [
"MIT"
] | 181 | 2018-12-08T18:31:05.000Z | 2022-03-29T01:40:02.000Z | tests/__init__.py | RonenTRA/faster-than-requests | 237a57cf2607e0694c87fea8e313461bf9a462e7 | [
"MIT"
] | 92 | 2018-11-22T03:53:31.000Z | 2022-03-21T10:54:24.000Z | # Allow tests/ directory to see faster_than_requests/ package on PYTHONPATH
import sys
from pathlib import Path
sys.path.append(str(Path(__file__).parent.parent))
| 32.6 | 75 | 0.815951 |
52c49ba6e0f3c37a7b4d0399f526ea22dc7636df | 7,711 | py | Python | fib_optimizer/fib_optimizer.py | dbarrosop/sir_tools | 0c325eb8ea9667ecdc9da4f524ef2224b098fc81 | [
"Apache-2.0"
] | 9 | 2015-09-13T20:00:52.000Z | 2018-04-04T09:07:55.000Z | fib_optimizer/fib_optimizer.py | dbarrosop/sir_tools | 0c325eb8ea9667ecdc9da4f524ef2224b098fc81 | [
"Apache-2.0"
] | 2 | 2015-09-28T14:12:41.000Z | 2017-03-02T16:29:48.000Z | fib_optimizer/fib_optimizer.py | dbarrosop/sir_tools | 0c325eb8ea9667ecdc9da4f524ef2224b098fc81 | [
"Apache-2.0"
] | 5 | 2015-09-28T13:54:02.000Z | 2016-04-19T23:50:34.000Z | #!/usr/bin/env python
from pySIR.pySIR import pySIR
import argparse
import datetime
import json
import os
import shlex
import subprocess
import sys
import time
import logging
logger = logging.getLogger('fib_optimizer')
log_format = '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
logging.basicConfig(level=log... | 30.844 | 117 | 0.606925 |
52c4acd2d2a5426d20652531bc70630c947940a9 | 247 | py | Python | Py_Print_Function_With_Loop.py | ZeroHero77/PythonChallenges | 516f02d6dcc65b47563642de9707bb32ac392f21 | [
"MIT"
] | null | null | null | Py_Print_Function_With_Loop.py | ZeroHero77/PythonChallenges | 516f02d6dcc65b47563642de9707bb32ac392f21 | [
"MIT"
] | null | null | null | Py_Print_Function_With_Loop.py | ZeroHero77/PythonChallenges | 516f02d6dcc65b47563642de9707bb32ac392f21 | [
"MIT"
] | null | null | null | import re
n = int(input())
if __name__ == '__main__':
main()
| 16.466667 | 81 | 0.441296 |
52c51b70ee280d26ac396fd1baa601910de8efa3 | 343 | py | Python | good_spot/common/views.py | jasmine92122/NightClubBackend | 7f59129b78baaba0e0c25de2b493033b858f1b00 | [
"MIT"
] | null | null | null | good_spot/common/views.py | jasmine92122/NightClubBackend | 7f59129b78baaba0e0c25de2b493033b858f1b00 | [
"MIT"
] | 5 | 2020-02-12T03:13:11.000Z | 2022-01-13T01:41:14.000Z | good_spot/common/views.py | jasmine92122/NightClubBackend | 7f59129b78baaba0e0c25de2b493033b858f1b00 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
from django.conf import settings
from django.http.response import HttpResponse
from django.views.generic import View
| 28.583333 | 67 | 0.769679 |
52c72675260b9c9944a7f437f0e277d4c24506aa | 691 | py | Python | year2020/day21/test_reader.py | Sebaestschjin/advent-of-code | 5fd708efa355483fc0ccddf7548b62682662bcc8 | [
"MIT"
] | null | null | null | year2020/day21/test_reader.py | Sebaestschjin/advent-of-code | 5fd708efa355483fc0ccddf7548b62682662bcc8 | [
"MIT"
] | null | null | null | year2020/day21/test_reader.py | Sebaestschjin/advent-of-code | 5fd708efa355483fc0ccddf7548b62682662bcc8 | [
"MIT"
] | null | null | null | from assertpy import assert_that
import year2020.day21.reader as reader
| 43.1875 | 96 | 0.507959 |
52c7bf2510e8384dd01a5738c1a369e2f22577eb | 4,109 | py | Python | realtime_hand_3d/segmentation/utils/data_utils.py | NeelayS/realtime_hand | 219c772b9b7df60c390edac7da23f9cdddebca4d | [
"MIT"
] | null | null | null | realtime_hand_3d/segmentation/utils/data_utils.py | NeelayS/realtime_hand | 219c772b9b7df60c390edac7da23f9cdddebca4d | [
"MIT"
] | null | null | null | realtime_hand_3d/segmentation/utils/data_utils.py | NeelayS/realtime_hand | 219c772b9b7df60c390edac7da23f9cdddebca4d | [
"MIT"
] | null | null | null | import cv2 as cv
import numpy as np
import os
import shutil
import torch
from torchvision import io
def resize_image(
image, expected_size, pad_value, ret_params=True, mode=cv.INTER_LINEAR
):
"""
image (ndarray) with either shape of [H,W,3] for RGB or [H,W] for grayscale.
Padding is added so that the... | 30.894737 | 88 | 0.556826 |
52c9891e030597761f62c3109bb03c2ff213dd4d | 281 | py | Python | intro/hello.py | ANU-WALD/acawsi | f6f340b59de8814173ab7dc8195c0fced53e652e | [
"MIT"
] | 1 | 2020-02-03T03:05:44.000Z | 2020-02-03T03:05:44.000Z | intro/hello.py | ANU-WALD/acawsi | f6f340b59de8814173ab7dc8195c0fced53e652e | [
"MIT"
] | null | null | null | intro/hello.py | ANU-WALD/acawsi | f6f340b59de8814173ab7dc8195c0fced53e652e | [
"MIT"
] | null | null | null |
name = "Sharalanda"
age = 10
hobbies = ["draw", "swim", "dance"]
address = {"city": "Sebastopol", "Post Code": 1234, "country": "Enchantia"}
print("My name is", name)
print("I am", age, "years old")
print("My favourite hobbie is", hobbies[0])
print("I live in", address["city"])
| 25.545455 | 75 | 0.637011 |
52cbf168ddc176a88ff38b6b38497de610416b77 | 20,279 | py | Python | src/third_party/wiredtiger/tools/wtperf_stats/3rdparty/nvd3/NVD3Chart.py | rueckstiess/mongo | 2a4111960fee25453ed0974ee9eae95ec25bd556 | [
"Apache-2.0"
] | null | null | null | src/third_party/wiredtiger/tools/wtperf_stats/3rdparty/nvd3/NVD3Chart.py | rueckstiess/mongo | 2a4111960fee25453ed0974ee9eae95ec25bd556 | [
"Apache-2.0"
] | null | null | null | src/third_party/wiredtiger/tools/wtperf_stats/3rdparty/nvd3/NVD3Chart.py | rueckstiess/mongo | 2a4111960fee25453ed0974ee9eae95ec25bd556 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Python-nvd3 is a Python wrapper for NVD3 graph library.
NVD3 is an attempt to build re-usable charts and chart components
for d3.js without taking away the power that d3.js gives you.
Project location : https://github.com/areski/python-nvd3
"""
from optparse import Optio... | 37.005474 | 121 | 0.529612 |
52ccbe1d1ecd046246c4b0fe1da5ae87b3459108 | 5,733 | py | Python | pycaz/lib/s3_objects.py | jmunhoz/pycaz | 5e2bbd954657403992d0c2bf668b9ca0bde7e740 | [
"MIT"
] | null | null | null | pycaz/lib/s3_objects.py | jmunhoz/pycaz | 5e2bbd954657403992d0c2bf668b9ca0bde7e740 | [
"MIT"
] | null | null | null | pycaz/lib/s3_objects.py | jmunhoz/pycaz | 5e2bbd954657403992d0c2bf668b9ca0bde7e740 | [
"MIT"
] | null | null | null | # Copyright (c) 2018 Javier M. Mellid <jmunhoz@igalia.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modif... | 41.846715 | 105 | 0.431013 |
52ccdc49aef97ed8b47fad9ada0088091eb98d80 | 1,822 | py | Python | mmdet/models/losses/dice_loss.py | liuyanyi/mmdetection | d2003536af6f08cb9bd7a75e0444eef03ace4bb3 | [
"Apache-2.0"
] | null | null | null | mmdet/models/losses/dice_loss.py | liuyanyi/mmdetection | d2003536af6f08cb9bd7a75e0444eef03ace4bb3 | [
"Apache-2.0"
] | null | null | null | mmdet/models/losses/dice_loss.py | liuyanyi/mmdetection | d2003536af6f08cb9bd7a75e0444eef03ace4bb3 | [
"Apache-2.0"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
from ..builder import LOSSES
| 35.038462 | 75 | 0.558178 |
52cecdcf1301a05a1abc0b2231ff2258f8575da0 | 2,676 | py | Python | model/contact.py | Keith234/python_training | ff476423cda06d1846761500cc7bd7acb9edf16c | [
"Apache-2.0"
] | null | null | null | model/contact.py | Keith234/python_training | ff476423cda06d1846761500cc7bd7acb9edf16c | [
"Apache-2.0"
] | null | null | null | model/contact.py | Keith234/python_training | ff476423cda06d1846761500cc7bd7acb9edf16c | [
"Apache-2.0"
] | null | null | null | from sys import maxsize
| 49.555556 | 116 | 0.613602 |
52cf7e995d7f53da62cf8abc38f6b4412b3b46df | 717 | py | Python | test/manager_drmaa_test.py | jmchilton/pulsar | 783b90cf0bce893a11c347fcaf6778b98e0bb062 | [
"Apache-2.0"
] | null | null | null | test/manager_drmaa_test.py | jmchilton/pulsar | 783b90cf0bce893a11c347fcaf6778b98e0bb062 | [
"Apache-2.0"
] | null | null | null | test/manager_drmaa_test.py | jmchilton/pulsar | 783b90cf0bce893a11c347fcaf6778b98e0bb062 | [
"Apache-2.0"
] | null | null | null | from .test_utils import (
BaseManagerTestCase,
skip_unless_module
)
from pulsar.managers.queued_drmaa import DrmaaQueueManager
| 24.724138 | 71 | 0.701534 |
52d07595fd7ad4acc1310734ea1028229e6c89c6 | 2,235 | py | Python | nerddiary/user/user.py | mishamsk/nerddiary | 2d0981c5034460f353c2994347fb95a5c94a55bd | [
"Apache-2.0"
] | null | null | null | nerddiary/user/user.py | mishamsk/nerddiary | 2d0981c5034460f353c2994347fb95a5c94a55bd | [
"Apache-2.0"
] | 5 | 2022-02-20T06:10:28.000Z | 2022-03-28T03:22:41.000Z | nerddiary/user/user.py | mishamsk/nerddiary | 2d0981c5034460f353c2994347fb95a5c94a55bd | [
"Apache-2.0"
] | null | null | null | """ User model """
from __future__ import annotations
from datetime import tzinfo
import pytz
from pydantic import BaseModel, PrivateAttr, validator
from pydantic.fields import Field
from ..poll.poll import Poll
from ..primitive.timezone import TimeZone
from ..report.report import Report
from typing import Dict, L... | 32.867647 | 103 | 0.640716 |
52d1423501559358e6f7024a091cf36f17c291a8 | 5,264 | py | Python | Testes/Trabalho/album.py | matheusmenezs/com220 | d699f00892df1259249ae012aa2a02f63ae0f06f | [
"MIT"
] | null | null | null | Testes/Trabalho/album.py | matheusmenezs/com220 | d699f00892df1259249ae012aa2a02f63ae0f06f | [
"MIT"
] | null | null | null | Testes/Trabalho/album.py | matheusmenezs/com220 | d699f00892df1259249ae012aa2a02f63ae0f06f | [
"MIT"
] | null | null | null | import tkinter as tk
from tkinter import ttk
from tkinter import simpledialog, messagebox
import os.path
import pickle
| 30.604651 | 102 | 0.601254 |
52d15598b3845713de68c7a188bed8ef0fab4e10 | 7,191 | py | Python | src/otest/aus/app.py | rohe/otest | 8983db8abfa63eda4e8a35bbe193ac80793c14bb | [
"Apache-2.0"
] | 2 | 2016-08-26T07:42:19.000Z | 2017-09-06T02:13:02.000Z | src/otest/aus/app.py | rohe/otest | 8983db8abfa63eda4e8a35bbe193ac80793c14bb | [
"Apache-2.0"
] | 3 | 2017-06-15T06:07:18.000Z | 2018-06-28T07:43:21.000Z | src/otest/aus/app.py | rohe/otest | 8983db8abfa63eda4e8a35bbe193ac80793c14bb | [
"Apache-2.0"
] | 5 | 2016-07-22T21:38:40.000Z | 2019-04-05T19:20:23.000Z | import logging
import os
from oic.utils.http_util import BadRequest
from oic.utils.http_util import SeeOther
from otest.events import EV_HTTP_ARGS
from otest.result import safe_url
__author__ = 'roland'
logger = logging.getLogger(__name__)
| 35.955 | 80 | 0.478932 |
52d370ee2b072b19dce1e99ad9c3e3612bd78c77 | 4,821 | py | Python | my_weather_api/handlers.py | swingthrough/weather-api-task-django | b7de39fef470ed5eb36c28fc7ea23f3780d0535c | [
"MIT"
] | null | null | null | my_weather_api/handlers.py | swingthrough/weather-api-task-django | b7de39fef470ed5eb36c28fc7ea23f3780d0535c | [
"MIT"
] | null | null | null | my_weather_api/handlers.py | swingthrough/weather-api-task-django | b7de39fef470ed5eb36c28fc7ea23f3780d0535c | [
"MIT"
] | null | null | null | from .serializers import WeatherForecastDaySerializer
from .models import WeatherForecastDay
from datetime import datetime, timedelta
import requests
from decouple import config
import json
DATE_FORMAT = '%Y-%m-%d'
COUNTRY_CODES_TO_CAPITAL = {
'CZ': 'Prague',
'UK': 'London',
'SK': 'Bratislava',
}
WEATHER_... | 37.664063 | 204 | 0.644472 |
52d3d72868c077690bde8ce4b9a24f77c6b48f81 | 134 | py | Python | app/blueprints/printing/__init__.py | OrigamiCranes/PrintingPortal | e25f9f683dca3a0dcf4c90ae50515d7693447cb8 | [
"MIT",
"Unlicense"
] | null | null | null | app/blueprints/printing/__init__.py | OrigamiCranes/PrintingPortal | e25f9f683dca3a0dcf4c90ae50515d7693447cb8 | [
"MIT",
"Unlicense"
] | null | null | null | app/blueprints/printing/__init__.py | OrigamiCranes/PrintingPortal | e25f9f683dca3a0dcf4c90ae50515d7693447cb8 | [
"MIT",
"Unlicense"
] | null | null | null | from flask import Blueprint, url_for
bp = Blueprint('printing', __name__,template_folder='templates')
from . import routes, forms
| 16.75 | 64 | 0.768657 |
52d4e85bc2d0512c2b40fb706b7936fa8d8f91d2 | 5,239 | py | Python | csbiginteger/BigIntegerNet.py | NeoResearch/csBigInteger.py | 209046f6539a00b6dae9f5a58dda0fdba0ef20a2 | [
"MIT"
] | 2 | 2019-07-12T17:09:16.000Z | 2019-07-26T03:17:56.000Z | csbiginteger/BigIntegerNet.py | NeoResearch/csbiginteger-py | 209046f6539a00b6dae9f5a58dda0fdba0ef20a2 | [
"MIT"
] | 9 | 2019-07-15T06:48:19.000Z | 2019-07-16T13:56:15.000Z | csbiginteger/BigIntegerNet.py | NeoResearch/csbiginteger-py | 209046f6539a00b6dae9f5a58dda0fdba0ef20a2 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
from csbiginteger.BigInteger import BigInteger
from functools import total_ordering
# requires: pip install msl-loadlib pycparser pythonnet
from msl.loadlib import LoadLibrary
# remember to execute first: cd csbiginteger/dotnet && dotnet build -c Release
net = LoadLibrary('csbiginteger/dotnet/bi... | 27.719577 | 134 | 0.620538 |
52d5e881d194a755ed3fbfaa3392720a723678a2 | 8,841 | py | Python | cdci_spiacs_plugin/spiacs_lightcurve_query.py | andreatramacere/cdci_spiacs_plugin | 44227a4132b118b4f1f41d76b5aa7be23a1c66dd | [
"MIT"
] | null | null | null | cdci_spiacs_plugin/spiacs_lightcurve_query.py | andreatramacere/cdci_spiacs_plugin | 44227a4132b118b4f1f41d76b5aa7be23a1c66dd | [
"MIT"
] | null | null | null | cdci_spiacs_plugin/spiacs_lightcurve_query.py | andreatramacere/cdci_spiacs_plugin | 44227a4132b118b4f1f41d76b5aa7be23a1c66dd | [
"MIT"
] | null | null | null | """
Overview
--------
general info about this module
Classes and Inheritance Structure
----------------------------------------------
.. inheritance-diagram::
Summary
---------
.. autosummary::
list of the module you want
Module API
----------
"""
from __future__ import absolute_import, division, print_functio... | 30.912587 | 136 | 0.552766 |
52d62a879cc5245c35a6c1ccbaf5bd54273348f1 | 334 | py | Python | addons/basic.py | dico-api/dicobot | 4471c4d2f20cb7890c2ae818d87d852d1a442471 | [
"MIT"
] | 1 | 2021-09-18T13:26:18.000Z | 2021-09-18T13:26:18.000Z | addons/basic.py | dico-api/dicobot | 4471c4d2f20cb7890c2ae818d87d852d1a442471 | [
"MIT"
] | null | null | null | addons/basic.py | dico-api/dicobot | 4471c4d2f20cb7890c2ae818d87d852d1a442471 | [
"MIT"
] | null | null | null | import dico_command
| 20.875 | 63 | 0.712575 |
52d6a9a85d70a1ba3fa92ec4b665bd33d6738e19 | 11,643 | py | Python | lambda_code/lambda_function.py | ReadingPlus/aurora-gfs-snapshot-tool | 1e5394a55bc28f6dfa0c5c573adc0de7d594b57d | [
"MIT"
] | 2 | 2018-12-12T15:41:05.000Z | 2019-10-16T13:05:00.000Z | lambda_code/lambda_function.py | ReadingPlus/aurora-gfs-snapshot-tool | 1e5394a55bc28f6dfa0c5c573adc0de7d594b57d | [
"MIT"
] | null | null | null | lambda_code/lambda_function.py | ReadingPlus/aurora-gfs-snapshot-tool | 1e5394a55bc28f6dfa0c5c573adc0de7d594b57d | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from datetime import datetime, timezone, date
import os
import sys
import boto3
import logging
import json
#setup global logger
logger = logging.getLogger("SnapTool")
#set log level
LOGLEVEL = os.environ['LogLevel'].strip()
logger.setLevel(LOGLEVEL.upper())
logging.getLogger("botocore").setLeve... | 37.079618 | 145 | 0.592201 |
52d6e3a13bb4f93454f95d8e2e0f6d4354044c0f | 4,176 | py | Python | bench/models.py | jareddk/bench | 2e6726a830bbe94a4daab1f892818bde0e3b9888 | [
"MIT-0"
] | null | null | null | bench/models.py | jareddk/bench | 2e6726a830bbe94a4daab1f892818bde0e3b9888 | [
"MIT-0"
] | null | null | null | bench/models.py | jareddk/bench | 2e6726a830bbe94a4daab1f892818bde0e3b9888 | [
"MIT-0"
] | null | null | null | import torch
from fielder import FieldClass
import yaml
def forward(self, x):
x = self.torso(x).reshape(-1, self.D_in)
return self.output_linear(x)
class SimpleTransformerLayer(ModelBase):
d_model: int = 32
m_mlp: int = 4
n_head: int = 1
n_ctx: int = 4
| 28.8 | 83 | 0.597462 |
52d7092eed9829703d91d03c000f7d21e7f84106 | 5,138 | py | Python | pytope/demo.py | XuShenLZ/pytope | b6f01582ff43250467fa953f3ec31d520f77716e | [
"MIT"
] | null | null | null | pytope/demo.py | XuShenLZ/pytope | b6f01582ff43250467fa953f3ec31d520f77716e | [
"MIT"
] | null | null | null | pytope/demo.py | XuShenLZ/pytope | b6f01582ff43250467fa953f3ec31d520f77716e | [
"MIT"
] | null | null | null | import numpy as np
from pytope import Polytope
import matplotlib.pyplot as plt
np.random.seed(1)
# Create a polytope in R^2 with -1 <= x1 <= 4, -2 <= x2 <= 3
lower_bound1 = (-1, -2) # [-1, -2]' <= x
upper_bound1 = (4, 3) # x <= [4, 3]'
P1 = Polytope(lb=lower_bound1, ub=upper_bound1)
# Print the halfspace represen... | 35.191781 | 80 | 0.616972 |
52d7acd4e38632fe10b9ea332f1e4413f361d8b4 | 3,458 | py | Python | apetools/commands/ifconfig.py | rsnakamura/oldape | b4d1c77e1d611fe2b30768b42bdc7493afb0ea95 | [
"Apache-2.0"
] | null | null | null | apetools/commands/ifconfig.py | rsnakamura/oldape | b4d1c77e1d611fe2b30768b42bdc7493afb0ea95 | [
"Apache-2.0"
] | null | null | null | apetools/commands/ifconfig.py | rsnakamura/oldape | b4d1c77e1d611fe2b30768b42bdc7493afb0ea95 | [
"Apache-2.0"
] | null | null | null |
#python libraries
import re
import os
# this package
from apetools.baseclass import BaseClass
from apetools.commons import enumerations
from apetools.commons import expressions
from apetools.commons.errors import ConfigurationError
MAC_UNAVAILABLE = "MAC Unavailable (use `netcfg`)"
# end class Ifconfig error
# end c... | 31.436364 | 79 | 0.617409 |
52da868b9fee80215c6c514d746db382c4f63313 | 2,471 | py | Python | neat-paralle-sonic.py | healthpotionstudios/MarioWorldAI-NEAT | 41df8ebe92702244883354dd65cbe0227bca97d0 | [
"MIT"
] | 7 | 2021-01-05T18:04:48.000Z | 2022-01-08T23:57:37.000Z | neat-paralle-sonic.py | healthpotionstudios/MarioWorldAI-NEAT | 41df8ebe92702244883354dd65cbe0227bca97d0 | [
"MIT"
] | null | null | null | neat-paralle-sonic.py | healthpotionstudios/MarioWorldAI-NEAT | 41df8ebe92702244883354dd65cbe0227bca97d0 | [
"MIT"
] | 3 | 2020-11-20T18:48:13.000Z | 2021-02-09T17:52:35.000Z | import retro # pip install gym-retro
import numpy as np # pip install numpy
import cv2 # pip install opencv-python
import neat # pip install neat-python
import pickle # pip install cloudpickle
config = neat.Config(neat.DefaultGenome, neat.DefaultReproduction,
neat... | 27.764045 | 79 | 0.533387 |
52dbaf4703b5efff66916435a9a7afda3fc69e88 | 9,420 | py | Python | shapespace/eval_shapespace.py | Chumbyte/DiGS | e2226c1bf294ee901970b617c3d6aff34220c169 | [
"MIT"
] | null | null | null | shapespace/eval_shapespace.py | Chumbyte/DiGS | e2226c1bf294ee901970b617c3d6aff34220c169 | [
"MIT"
] | null | null | null | shapespace/eval_shapespace.py | Chumbyte/DiGS | e2226c1bf294ee901970b617c3d6aff34220c169 | [
"MIT"
] | null | null | null | # Yizhak Ben-Shabat (Itzik) <sitzikbs@gmail.com>
# Chamin Hewa Koneputugodage <chamin.hewa@anu.edu.au>
import os, sys, time
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from shapespace.dfaust_dataset import DFaustDataSet
import torch
import utils.visualizations as vis
import numpy as np
... | 52.625698 | 149 | 0.670276 |
52dbfba445e18389a6ca13cbc5580b99d308ec2f | 208 | py | Python | html/semantics/scripting-1/the-script-element/module/resources/delayed-modulescript.py | meyerweb/wpt | f04261533819893c71289614c03434c06856c13e | [
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | html/semantics/scripting-1/the-script-element/module/resources/delayed-modulescript.py | meyerweb/wpt | f04261533819893c71289614c03434c06856c13e | [
"BSD-3-Clause"
] | 7,642 | 2018-05-28T09:38:03.000Z | 2022-03-31T20:55:48.000Z | html/semantics/scripting-1/the-script-element/module/resources/delayed-modulescript.py | meyerweb/wpt | f04261533819893c71289614c03434c06856c13e | [
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | import time
| 26 | 87 | 0.673077 |
52df7f048377d6e209717eb8a5895ca66dae1ca8 | 12,533 | py | Python | ingestion/src/metadata/utils/sql_lineage.py | TeddyCr/OpenMetadata | 9e11ad54d99a3317c27c101269768e7aa2c6eb5f | [
"Apache-2.0"
] | null | null | null | ingestion/src/metadata/utils/sql_lineage.py | TeddyCr/OpenMetadata | 9e11ad54d99a3317c27c101269768e7aa2c6eb5f | [
"Apache-2.0"
] | null | null | null | ingestion/src/metadata/utils/sql_lineage.py | TeddyCr/OpenMetadata | 9e11ad54d99a3317c27c101269768e7aa2c6eb5f | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Collate
# 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... | 35.403955 | 107 | 0.629698 |
52dff2e2e050102f09392ebcaa10f06cee060760 | 8,695 | py | Python | dcgan/utils/train.py | Ontheway361/ak47GAN | 7a1b4b3c2159ab0e2662f3d0a2cedccb30e62f3c | [
"MIT"
] | null | null | null | dcgan/utils/train.py | Ontheway361/ak47GAN | 7a1b4b3c2159ab0e2662f3d0a2cedccb30e62f3c | [
"MIT"
] | null | null | null | dcgan/utils/train.py | Ontheway361/ak47GAN | 7a1b4b3c2159ab0e2662f3d0a2cedccb30e62f3c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys
import time
import torch
import numpy as np
import torchvision
import torch.nn as nn
import torch.optim as optim
import matplotlib.pyplot as plt
from torch.utils.data import DataLoader
from utils import *
from IPython import embed
if __name__ ... | 37.317597 | 126 | 0.53272 |
52e00f970cfb2937e6c8fd35dd1fbfe0b22df7e8 | 8,940 | py | Python | testscripts/RDKB/component/sysutil/TS_SANITY_CheckLanMode_AfterReboot.py | cablelabs/tools-tdkb | 1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69 | [
"Apache-2.0"
] | null | null | null | testscripts/RDKB/component/sysutil/TS_SANITY_CheckLanMode_AfterReboot.py | cablelabs/tools-tdkb | 1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69 | [
"Apache-2.0"
] | null | null | null | testscripts/RDKB/component/sysutil/TS_SANITY_CheckLanMode_AfterReboot.py | cablelabs/tools-tdkb | 1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69 | [
"Apache-2.0"
] | null | null | null | ##########################################################################
# If not stated otherwise in this file or this component's Licenses.txt
# file the following copyright and licenses apply:
#
# Copyright 2018 RDK Management
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use th... | 42.980769 | 132 | 0.687248 |
52e223443238aa78f530247b57393b36f3ae7fbd | 37,563 | py | Python | fsrobo_r_driver/fsrobo_r_controller/info_catch_client.py | FUJISOFT-Robotics/fsrobo_r | 89f113f81f9119d1667b5afa4e718e2814c8dfd8 | [
"BSD-3-Clause"
] | 4 | 2019-10-15T14:32:07.000Z | 2021-02-05T01:01:02.000Z | fsrobo_r_driver/fsrobo_r_controller/info_catch_client.py | FUJISOFT-Robotics/fsrobo_r | 89f113f81f9119d1667b5afa4e718e2814c8dfd8 | [
"BSD-3-Clause"
] | 1 | 2019-10-24T08:42:21.000Z | 2019-10-31T06:05:00.000Z | fsrobo_r_driver/fsrobo_r_controller/info_catch_client.py | FUJISOFT-Robotics/fsrobo_r | 89f113f81f9119d1667b5afa4e718e2814c8dfd8 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# FSRobo-R Package BSDL
# ---------
# Copyright (C) 2019 FUJISOFT. 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... | 41.876254 | 99 | 0.554109 |
52e372e0f9b035b427af0f50f47141dc81bfbd38 | 2,734 | py | Python | src/models/spikeconvnet.py | k-timy/snn_pytorch | db13b68dd9dd92d624a60ad6af9776e06ebfbed3 | [
"MIT"
] | null | null | null | src/models/spikeconvnet.py | k-timy/snn_pytorch | db13b68dd9dd92d624a60ad6af9776e06ebfbed3 | [
"MIT"
] | null | null | null | src/models/spikeconvnet.py | k-timy/snn_pytorch | db13b68dd9dd92d624a60ad6af9776e06ebfbed3 | [
"MIT"
] | null | null | null | """
Author: Kourosh T. Baghaei
April 2021
"""
import torch
import torch.nn as nn
import torch.nn.functional as F
from .convnet import ConvNet
from .spikingconv2D import SpikingConv2D
from .spikingpool2D import SpikingAveragePool2D
from .spikinglinear import SpikingLinear | 37.972222 | 125 | 0.608266 |
52e3bcaa661af90f19ebadd86534e44f67f824f9 | 1,483 | py | Python | test/test_linked_list.py | kessler-oliveira/linkedlist | 17034b1ce9f72149db4e9b465df67de0a08f5d32 | [
"Apache-2.0"
] | null | null | null | test/test_linked_list.py | kessler-oliveira/linkedlist | 17034b1ce9f72149db4e9b465df67de0a08f5d32 | [
"Apache-2.0"
] | null | null | null | test/test_linked_list.py | kessler-oliveira/linkedlist | 17034b1ce9f72149db4e9b465df67de0a08f5d32 | [
"Apache-2.0"
] | null | null | null | import unittest
from random import randint
from model.node import Node
from model.linked_list import LinkedList
SIZE = 5
if __name__ == '__main__':
unittest.main()
| 27.462963 | 77 | 0.466622 |
52e437d3e14d1999a9a643451767e7bea8ba79b9 | 3,141 | py | Python | res/pygments/ptx.py | wilwxk/GPUCompiler.jl | 03006840df21fb452f9eebc64c4d0a71123ed3b2 | [
"MIT"
] | 68 | 2020-04-06T14:02:31.000Z | 2022-03-11T02:00:57.000Z | res/pygments/ptx.py | wilwxk/GPUCompiler.jl | 03006840df21fb452f9eebc64c4d0a71123ed3b2 | [
"MIT"
] | 243 | 2020-04-09T19:31:49.000Z | 2022-03-16T15:48:21.000Z | res/pygments/ptx.py | wilwxk/GPUCompiler.jl | 03006840df21fb452f9eebc64c4d0a71123ed3b2 | [
"MIT"
] | 31 | 2020-04-09T14:02:05.000Z | 2022-03-11T02:01:03.000Z | from pygments.lexer import RegexLexer, include, words
from pygments.token import *
# https://docs.nvidia.com/cuda/parallel-thread-execution/index.html
| 43.027397 | 98 | 0.418338 |
52e56046055c96a92245aac6c622f673ad51945f | 1,962 | py | Python | tests/test_dork_erd.py | msudenvercs/Dork | 601cbb21398ac8edf5e688db2089ed8805bbdf00 | [
"MIT"
] | 1 | 2021-04-04T20:40:18.000Z | 2021-04-04T20:40:18.000Z | tests/test_dork_erd.py | msudenvercs/Dork | 601cbb21398ac8edf5e688db2089ed8805bbdf00 | [
"MIT"
] | 4 | 2019-06-04T00:59:46.000Z | 2019-06-08T17:22:19.000Z | tests/test_dork_erd.py | zenostrash/dork | 601cbb21398ac8edf5e688db2089ed8805bbdf00 | [
"MIT"
] | 4 | 2019-05-29T04:56:28.000Z | 2019-05-30T18:17:55.000Z | # -*- coding: utf-8 -*-
"""Basic tests for state and entity relationships in dork
"""
import dork.types
from tests.utils import has_many, is_a
def test_items_exist():
"""the dork module should define an Item
"""
assert "Item" in vars(dork.types)
is_a(dork.types.Item, type)
def test_holders_exist():
... | 23.082353 | 71 | 0.664628 |
52e589ec26ec934cedbbb77cf5a8fda7e7d9cd96 | 1,115 | py | Python | woffle/data/parse.py | Finnkauski/woffle | 746ceb22ef03232f7963db6f7fb2f95fe0164a07 | [
"MIT"
] | null | null | null | woffle/data/parse.py | Finnkauski/woffle | 746ceb22ef03232f7963db6f7fb2f95fe0164a07 | [
"MIT"
] | null | null | null | woffle/data/parse.py | Finnkauski/woffle | 746ceb22ef03232f7963db6f7fb2f95fe0164a07 | [
"MIT"
] | null | null | null | """
text cleaning
"""
#-- Imports ---------------------------------------------------------------------
# base
import functools
import re
# third party
import toml
# project
from woffle.functions.compose import compose
#-- Definitions -----------------------------------------------------------------
#-- cleaning
#... | 24.23913 | 81 | 0.528251 |
52e5f2e5b814ac4ae07480be88792003d295e02d | 452 | py | Python | tpRigToolkit/libs/ziva/core/utils.py | tpRigToolkit/tpRigToolkit-libs-ziva | dd317b7ec62ee4ef01f2d64e9dbca54061c24072 | [
"MIT"
] | null | null | null | tpRigToolkit/libs/ziva/core/utils.py | tpRigToolkit/tpRigToolkit-libs-ziva | dd317b7ec62ee4ef01f2d64e9dbca54061c24072 | [
"MIT"
] | null | null | null | tpRigToolkit/libs/ziva/core/utils.py | tpRigToolkit/tpRigToolkit-libs-ziva | dd317b7ec62ee4ef01f2d64e9dbca54061c24072 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
Module that contains utils functions related with Ziva plugin
"""
from __future__ import print_function, division, absolute_import
from tpDcc import dcc
PLUGIN_NAME = 'ziva'
| 18.833333 | 64 | 0.738938 |
52e701ca2bd2e9c2118744e9eca7070d4919aed3 | 2,737 | py | Python | algolearn/coderunner.py | gda2048/algo_deep | 8076028b14276d653896b045f60d7c41a404a030 | [
"MIT"
] | 8 | 2019-06-08T14:50:21.000Z | 2019-12-19T19:04:01.000Z | algolearn/coderunner.py | gda2048/algo_deep | 8076028b14276d653896b045f60d7c41a404a030 | [
"MIT"
] | 7 | 2020-02-12T00:28:15.000Z | 2022-02-10T09:29:22.000Z | algolearn/coderunner.py | gda2048/algo_deep | 8076028b14276d653896b045f60d7c41a404a030 | [
"MIT"
] | null | null | null | import json
import sys
import io
import time
from wrapt_timeout_decorator import *
from contextlib import redirect_stdout
| 33.378049 | 141 | 0.571794 |
52e897895ea9d9c314ef07443d9e4d0cc03615ec | 1,225 | py | Python | scaffold/iam/cf_builder.py | mccormickmichael/laurel | 6222d8d2dea6fa18cfe3b031434154003e8a125b | [
"Unlicense"
] | 1 | 2018-08-20T13:49:46.000Z | 2018-08-20T13:49:46.000Z | scaffold/iam/cf_builder.py | mccormickmichael/laurel | 6222d8d2dea6fa18cfe3b031434154003e8a125b | [
"Unlicense"
] | null | null | null | scaffold/iam/cf_builder.py | mccormickmichael/laurel | 6222d8d2dea6fa18cfe3b031434154003e8a125b | [
"Unlicense"
] | null | null | null | from datetime import datetime
from .cf_template import IAMTemplate
from scaffold.cf.stack.builder import StackBuilder
| 38.28125 | 111 | 0.72 |
52e9d1812195fe5ed4ea6b6573203c34b1a66a6e | 175 | py | Python | editor/scheduler/__init__.py | iamsayem/smart-editor | 012ad2775cd33247642c629a2a92ec89e4462412 | [
"MIT"
] | null | null | null | editor/scheduler/__init__.py | iamsayem/smart-editor | 012ad2775cd33247642c629a2a92ec89e4462412 | [
"MIT"
] | null | null | null | editor/scheduler/__init__.py | iamsayem/smart-editor | 012ad2775cd33247642c629a2a92ec89e4462412 | [
"MIT"
] | null | null | null | """
Created by Sayem on 14 March, 2021
All rights reserved. Copyright 2020.
"""
from .celery import app as celery_app
__author__ = "Sayem"
__all__ = ["celery_app"]
| 19.444444 | 42 | 0.685714 |
52ebf319bf4a7a4da28db62e1cc1e5ef45bb9c2a | 194,383 | py | Python | sippy/thrift_stub_dir/thrift/ttypes.py | devatsrs/neon.service | b8630f64a2c9967b680eb1db69f06a92dfca3005 | [
"MIT"
] | null | null | null | sippy/thrift_stub_dir/thrift/ttypes.py | devatsrs/neon.service | b8630f64a2c9967b680eb1db69f06a92dfca3005 | [
"MIT"
] | null | null | null | sippy/thrift_stub_dir/thrift/ttypes.py | devatsrs/neon.service | b8630f64a2c9967b680eb1db69f06a92dfca3005 | [
"MIT"
] | null | null | null | #
# Autogenerated by Thrift Compiler (1.0.0-dev)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py:new_style1
#
#from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
from thrift.Thrift import TType, TMessageType, TException, TApplicati... | 34.373652 | 603 | 0.640874 |
52edcb7aea820f4031994c44df4c877102b60d05 | 385 | py | Python | Chapter 4 - Lists & Tuples/01_list.py | alex-dsouza777/Python-Basics | 8f1c406f2319cd65b5d54dfea990d09fa69d9adf | [
"MIT"
] | null | null | null | Chapter 4 - Lists & Tuples/01_list.py | alex-dsouza777/Python-Basics | 8f1c406f2319cd65b5d54dfea990d09fa69d9adf | [
"MIT"
] | null | null | null | Chapter 4 - Lists & Tuples/01_list.py | alex-dsouza777/Python-Basics | 8f1c406f2319cd65b5d54dfea990d09fa69d9adf | [
"MIT"
] | 1 | 2021-04-21T10:23:08.000Z | 2021-04-21T10:23:08.000Z | #Create a list using []
a = [1,2,3,7,66]
#print the list using print() function
print(a)
#Access using index using a[0], a[1], ....
print(a[2])
#Changing the value of the list
a[0] = 777
print(a)
#We can create a list with items of different type
b = [77,"Root",False,6.9]
print(b)
#List Slicing
friends = ["Root","... | 16.73913 | 50 | 0.649351 |
52eed26c5719e163902c297e3bbd2c62a20d2246 | 3,596 | py | Python | lab_1/orthograph/errors1.py | etzinis/speech_nlp_labs | 128ea5a79a0502aa80fb2f4eee4af051049a9e0e | [
"MIT"
] | null | null | null | lab_1/orthograph/errors1.py | etzinis/speech_nlp_labs | 128ea5a79a0502aa80fb2f4eee4af051049a9e0e | [
"MIT"
] | null | null | null | lab_1/orthograph/errors1.py | etzinis/speech_nlp_labs | 128ea5a79a0502aa80fb2f4eee4af051049a9e0e | [
"MIT"
] | null | null | null | import math
fco = open('train_co.txt', 'r')
fwr =open('train_wr.txt', 'r')
fcoal = open('train_co_al.txt', 'w')
fwral =open('train_wr_al.txt', 'w')
#first we align the two files
colines = fco.readlines()
wrlines = fwr.readlines()
for i in colines:
cols = i.split()
for j in cols:
fcoal.write(j+'\n')
for i in wrli... | 23.350649 | 103 | 0.611235 |
52efbce325d7ba01d3a81e4caaaade2bb5824322 | 25 | py | Python | examples/basic/src/events/__init__.py | boosterl/rabbitmq-pika-flask | 45b98624c49c800c4e2bdaa9e1c04f1aa5863369 | [
"MIT"
] | 17 | 2021-04-04T17:24:06.000Z | 2022-03-11T13:22:01.000Z | examples/basic/src/events/__init__.py | boosterl/rabbitmq-pika-flask | 45b98624c49c800c4e2bdaa9e1c04f1aa5863369 | [
"MIT"
] | 10 | 2021-02-11T18:13:11.000Z | 2022-03-10T17:53:08.000Z | examples/basic/src/events/__init__.py | boosterl/rabbitmq-pika-flask | 45b98624c49c800c4e2bdaa9e1c04f1aa5863369 | [
"MIT"
] | 5 | 2021-04-04T17:23:46.000Z | 2021-12-11T07:49:10.000Z | __all__ = ['PingEvents']
| 12.5 | 24 | 0.68 |
52f61b19ff8770f512160af7fe3ad09b84f41c3c | 217 | py | Python | snowy_version_python2.py | cclauss/flake8_for_ow | f665197bf6a36e1a9b0f274b01032c9006338067 | [
"Apache-2.0"
] | null | null | null | snowy_version_python2.py | cclauss/flake8_for_ow | f665197bf6a36e1a9b0f274b01032c9006338067 | [
"Apache-2.0"
] | null | null | null | snowy_version_python2.py | cclauss/flake8_for_ow | f665197bf6a36e1a9b0f274b01032c9006338067 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python2
# coding: utf-8
import sys
if __name__ == '__main__':
main()
| 16.692308 | 62 | 0.539171 |
52f7087deb618b8761200bf76550f8eceae6e954 | 80 | py | Python | scripts/ai.py | MaxReimann/Troen | aeabab35da15fe69f89b163f3762dccb9947e93c | [
"MIT"
] | null | null | null | scripts/ai.py | MaxReimann/Troen | aeabab35da15fe69f89b163f3762dccb9947e93c | [
"MIT"
] | 6 | 2016-08-15T01:56:11.000Z | 2016-08-15T01:56:40.000Z | scripts/ai.py | MaxReimann/Troen | aeabab35da15fe69f89b163f3762dccb9947e93c | [
"MIT"
] | null | null | null | #AI is imported by default
#this is only a test for now
print "hello from aipy"
| 20 | 28 | 0.75 |
52f8caa37db41e0bb16922cb2ce77c7b5e60682e | 542 | py | Python | answers/old/python/fizzBuzz.py | mschultz4/practice | 3c692953bffbfc6a9d362d880087ecfcec1b6bea | [
"MIT"
] | null | null | null | answers/old/python/fizzBuzz.py | mschultz4/practice | 3c692953bffbfc6a9d362d880087ecfcec1b6bea | [
"MIT"
] | null | null | null | answers/old/python/fizzBuzz.py | mschultz4/practice | 3c692953bffbfc6a9d362d880087ecfcec1b6bea | [
"MIT"
] | null | null | null | # Fizzbuzz.py
import sys
with open(sys.argv[1], 'r') as file:
for line in file:
nums = line.split()
i = int(nums[2])
n = 1
output = ""
while n <= i:
if n % int(nums[0]) == 0 and n % int(nums[1]) == 0:
output += "FB "
elif n % int(nums... | 27.1 | 64 | 0.369004 |
52fa77fc729c94ac81a3d83288fe663868091162 | 5,421 | py | Python | 2parser/word_lists.py | formalabstracts/CNL-CIC | c857ee0d52b4ba91dd06a51c8f9f3ec2749ca0eb | [
"MIT"
] | 14 | 2019-06-27T16:34:39.000Z | 2021-01-07T18:13:04.000Z | 2parser/word_lists.py | formalabstracts/CNL-CIC | c857ee0d52b4ba91dd06a51c8f9f3ec2749ca0eb | [
"MIT"
] | 8 | 2019-10-17T06:09:51.000Z | 2020-03-25T15:51:32.000Z | 2parser/word_lists.py | formalabstracts/CNL-CIC | c857ee0d52b4ba91dd06a51c8f9f3ec2749ca0eb | [
"MIT"
] | 17 | 2019-06-27T16:34:53.000Z | 2020-08-15T01:30:32.000Z | singular = [
'this','as','is','thesis','hypothesis','less','obvious','us','yes','cos',
'always','perhaps','alias','plus','apropos',
'was','its','bus','his','is','us',
'this','thus','axis','bias','minus','basis',
'praxis','status','modulus','analysis',
'aparatus'
]
invariable = [ #frozen_li... | 47.13913 | 92 | 0.635307 |
52faf9ee9dd8c96e16c79f2d90387099a923bd12 | 3,707 | py | Python | tests/test_cue.py | philipdexter/pycue | 07daeae58602a5d6d00c4bc7abb252da1644f529 | [
"Apache-2.0"
] | 6 | 2020-05-07T03:39:50.000Z | 2022-02-22T17:36:30.000Z | tests/test_cue.py | philipdexter/pycue | 07daeae58602a5d6d00c4bc7abb252da1644f529 | [
"Apache-2.0"
] | null | null | null | tests/test_cue.py | philipdexter/pycue | 07daeae58602a5d6d00c4bc7abb252da1644f529 | [
"Apache-2.0"
] | null | null | null |
import pytest
import cue
| 34.971698 | 95 | 0.582951 |
52fb85c29047f791c52471a045a458308ca562b8 | 11,924 | py | Python | control/tests/xferfcn_input_test.py | samlaf/python-control | c49b55b1f8dfe8e74c562d6a83bf5359343cdccb | [
"BSD-3-Clause"
] | 1 | 2019-04-13T02:54:56.000Z | 2019-04-13T02:54:56.000Z | control/tests/xferfcn_input_test.py | samlaf/python-control | c49b55b1f8dfe8e74c562d6a83bf5359343cdccb | [
"BSD-3-Clause"
] | 1 | 2018-01-06T18:35:50.000Z | 2018-01-06T19:02:25.000Z | control/tests/xferfcn_input_test.py | samlaf/python-control | c49b55b1f8dfe8e74c562d6a83bf5359343cdccb | [
"BSD-3-Clause"
] | 1 | 2019-05-27T16:11:18.000Z | 2019-05-27T16:11:18.000Z | #!/usr/bin/env python
#
# xferfcn_input_test.py - test inputs to TransferFunction class
# jed-frey, 18 Feb 2017 (based on xferfcn_test.py)
import unittest
import numpy as np
from numpy import int, int8, int16, int32, int64
from numpy import float, float16, float32, float64, longdouble
from numpy import all, ndarray, ... | 45.861538 | 100 | 0.615062 |
52fc538b86844a30d2ac300d10bcb5488b65cb8c | 218 | py | Python | annodize/__init__.py | NowanIlfideme/annodize | d31f68b62f473990a43334ef50a0a176847b1f7a | [
"MIT"
] | null | null | null | annodize/__init__.py | NowanIlfideme/annodize | d31f68b62f473990a43334ef50a0a176847b1f7a | [
"MIT"
] | null | null | null | annodize/__init__.py | NowanIlfideme/annodize | d31f68b62f473990a43334ef50a0a176847b1f7a | [
"MIT"
] | null | null | null | """Python Annotations that are shockingly useful."""
__all__ = ["__version__", "Field", "FunctionFields", "NamespaceFields"]
from .field import Field, FunctionFields, NamespaceFields
from .version import __version__
| 31.142857 | 71 | 0.775229 |
52fc7df4b4b16f1ad555d16b6d091a22b3e1319c | 751 | py | Python | tests/test_Policy.py | christophevg/py-mqfactory | 6681fea96efe6985f6dc8631cb96eb48c43146dd | [
"MIT"
] | null | null | null | tests/test_Policy.py | christophevg/py-mqfactory | 6681fea96efe6985f6dc8631cb96eb48c43146dd | [
"MIT"
] | 4 | 2020-03-24T16:51:35.000Z | 2021-06-01T23:37:00.000Z | tests/test_Policy.py | christophevg/py-mqfactory | 6681fea96efe6985f6dc8631cb96eb48c43146dd | [
"MIT"
] | null | null | null | from mqfactory.tools import Policy, Rule, CATCH_ALL
| 35.761905 | 65 | 0.459387 |
52fd271d2646685318f80cb843416d0abdde4775 | 1,837 | py | Python | test/test_request.py | Ryuno-Ki/webmention-tools | 54409786327c2b43516c2b5b96e5d0a18a96c0f3 | [
"MIT"
] | 26 | 2019-05-05T01:42:37.000Z | 2021-12-17T02:47:44.000Z | test/test_request.py | Ryuno-Ki/webmention-tools | 54409786327c2b43516c2b5b96e5d0a18a96c0f3 | [
"MIT"
] | 44 | 2019-04-16T12:35:13.000Z | 2021-09-19T05:21:22.000Z | test/test_request.py | vrypan/webmention-tools | 54409786327c2b43516c2b5b96e5d0a18a96c0f3 | [
"MIT"
] | 3 | 2016-12-23T12:11:36.000Z | 2019-01-13T20:14:46.000Z | import unittest
import pytest
import requests
import webmentiontools
from webmentiontools.request import (
is_successful_response,
request_get_url,
request_head_url,
request_post_url,
USER_AGENT
)
from .endpoints import WEBMENTION_ROCKS_TESTS
| 31.672414 | 73 | 0.672292 |
52fd9f23e266b4e14ba35f92f1f82313c189267a | 26,257 | py | Python | sleep_utils.py | skjerns/NT1-HRV | cb6de312f6b2710c4d059bb2a4638b053617c2f7 | [
"MIT"
] | 1 | 2022-03-06T03:32:15.000Z | 2022-03-06T03:32:15.000Z | sleep_utils.py | skjerns/NT1-HRV | cb6de312f6b2710c4d059bb2a4638b053617c2f7 | [
"MIT"
] | null | null | null | sleep_utils.py | skjerns/NT1-HRV | cb6de312f6b2710c4d059bb2a4638b053617c2f7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 21 20:19:26 2019
@author: skjerns
"""
from pyedflib.highlevel import *
import os
import gc
import warnings
import ospath #pip install https://github.com/skjerns/skjerns-utils
import numpy as np
import pyedflib #pip install https://github.com/skjerns/pyedflib/archive/custo... | 39.248132 | 133 | 0.589214 |
52fddc869556dcf56427929cc447dd8453bf656c | 789 | py | Python | amplpy/tests/TestBase.py | dish59742/amplpy | 9309a947b74dcc524a07809a68bf32d93e9f0a48 | [
"BSD-3-Clause"
] | null | null | null | amplpy/tests/TestBase.py | dish59742/amplpy | 9309a947b74dcc524a07809a68bf32d93e9f0a48 | [
"BSD-3-Clause"
] | 4 | 2021-06-08T22:16:26.000Z | 2022-03-12T00:48:56.000Z | amplpy/tests/TestBase.py | dish59742/amplpy | 9309a947b74dcc524a07809a68bf32d93e9f0a48 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function, absolute_import, division
from builtins import map, range, object, zip, sorted
from .context import amplpy
import unittest
import tempfile
import shutil
import os
if __name__ == '__main__':
unittest.main()
| 23.205882 | 64 | 0.665399 |
52fe203ea6a382182458a46a4edbd741b0f6208f | 919 | py | Python | lib/MetaboliteAtlasImpl.py | kbaseIncubator/metabolite_atlas | 229edbab6ce05a7d3ebacbc66570d82c9ad28578 | [
"MIT"
] | null | null | null | lib/MetaboliteAtlasImpl.py | kbaseIncubator/metabolite_atlas | 229edbab6ce05a7d3ebacbc66570d82c9ad28578 | [
"MIT"
] | null | null | null | lib/MetaboliteAtlasImpl.py | kbaseIncubator/metabolite_atlas | 229edbab6ce05a7d3ebacbc66570d82c9ad28578 | [
"MIT"
] | null | null | null | #BEGIN_HEADER
#END_HEADER
'''
Module Name:
MetaboliteAtlas
Module Description:
A web-based atlas to liquid chromatographymass spectrometry (LCMS) data
'''
| 24.837838 | 103 | 0.645267 |
52fea36dd1d5595eb45032e212c7c224730f7fd2 | 2,179 | py | Python | week2/decrypt.py | vtnil/Cryptography-I-Homework | 1f2bcce5ecfdf8472ddaaaa45eb25266f0279224 | [
"MIT"
] | null | null | null | week2/decrypt.py | vtnil/Cryptography-I-Homework | 1f2bcce5ecfdf8472ddaaaa45eb25266f0279224 | [
"MIT"
] | 1 | 2020-07-31T05:21:07.000Z | 2020-10-23T17:28:12.000Z | week2/decrypt.py | vtnil/Cryptography-I-Homework | 1f2bcce5ecfdf8472ddaaaa45eb25266f0279224 | [
"MIT"
] | null | null | null | # vtnil write for Cryptography1 week2 homework
# ppt https://crypto.stanford.edu/~dabo/cs255/lectures/PRP-PRF.pdf
from Crypto.Cipher import AES
from binascii import a2b_hex
from math import ceil
questions = [
{"key": "140b41b22a29beb4061bda66b6747e14",
"ct": "4ca00ff4c898d61e1edbf1800618fb2828a226d160dad0... | 33.523077 | 167 | 0.679211 |
5e0051e97518630cd66c32fa7fedd4d72f028d14 | 2,716 | py | Python | fastreid/modeling/meta_arch/AFF.py | SZLSP/reid2020NAIC | d0eaee768e0be606417a27ce5ea2b3071b5a9bc2 | [
"Apache-2.0"
] | 2 | 2021-05-12T13:36:46.000Z | 2021-08-15T10:35:08.000Z | fastreid/modeling/meta_arch/AFF.py | SZLSP/reid2020NAIC | d0eaee768e0be606417a27ce5ea2b3071b5a9bc2 | [
"Apache-2.0"
] | 1 | 2021-12-28T12:49:49.000Z | 2021-12-28T12:49:49.000Z | fastreid/modeling/meta_arch/AFF.py | SZLSP/reid2020NAIC | d0eaee768e0be606417a27ce5ea2b3071b5a9bc2 | [
"Apache-2.0"
] | null | null | null | import torch
from torch import nn
if __name__ == '__main__':
i = torch.randn((50, 10, 5, 3))
m = MS_CAM(10, 5, 3, 2)
out0 = m(i)
a = AFF(10, 5, 3, 2)
b = iAFF(10, 5, 3, 2)
j = torch.randn((50, 10, 5, 3))
out1 = a(i, i)
out2 = b(i, i)
pass
| 28.893617 | 89 | 0.566642 |
5e012b3443d887f6bd91f7a94690e51a832da05e | 343 | py | Python | 17_process_thread/30_3_multithread_rlock.py | hemuke/python | bc99f2b5aee997083ae31f59a2b33db48c8255f3 | [
"Apache-2.0"
] | null | null | null | 17_process_thread/30_3_multithread_rlock.py | hemuke/python | bc99f2b5aee997083ae31f59a2b33db48c8255f3 | [
"Apache-2.0"
] | null | null | null | 17_process_thread/30_3_multithread_rlock.py | hemuke/python | bc99f2b5aee997083ae31f59a2b33db48c8255f3 | [
"Apache-2.0"
] | null | null | null | from threading import Thread
num = 0
t1 = Thread(target=do_sth)
t2 = Thread(target=do_sth)
t1.start()
t2.start()
t1.join()
t2.join()
print(num)
#
| 10.088235 | 28 | 0.580175 |
5e02596f2098cd63767a99d6eb7f6f25245bc38b | 3,318 | py | Python | fn_aws_iam/fn_aws_iam/components/fn_aws_iam_deactivate_mfa_devices.py | nickpartner-goahead/resilient-community-apps | 097c0dbefddbd221b31149d82af9809420498134 | [
"MIT"
] | 65 | 2017-12-04T13:58:32.000Z | 2022-03-24T18:33:17.000Z | fn_aws_iam/fn_aws_iam/components/fn_aws_iam_deactivate_mfa_devices.py | nickpartner-goahead/resilient-community-apps | 097c0dbefddbd221b31149d82af9809420498134 | [
"MIT"
] | 48 | 2018-03-02T19:17:14.000Z | 2022-03-09T22:00:38.000Z | fn_aws_iam/fn_aws_iam/components/fn_aws_iam_deactivate_mfa_devices.py | nickpartner-goahead/resilient-community-apps | 097c0dbefddbd221b31149d82af9809420498134 | [
"MIT"
] | 95 | 2018-01-11T16:23:39.000Z | 2022-03-21T11:34:29.000Z | # -*- coding: utf-8 -*-
# (c) Copyright IBM Corp. 2010, 2020. All Rights Reserved.
# pragma pylint: disable=unused-argument, no-self-use
"""Function implementation"""
import logging
import re
from fn_aws_iam.lib.aws_iam_client import AwsIamClient
from fn_aws_iam.lib.helpers import CONFIG_DATA_SECTION, transform_kwarg... | 43.090909 | 119 | 0.670283 |
5e03010aadf0f1430a137f0fe8614a9be339de88 | 7,258 | py | Python | bluebottle/clients/management/commands/new_tenant.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 10 | 2015-05-28T18:26:40.000Z | 2021-09-06T10:07:03.000Z | bluebottle/clients/management/commands/new_tenant.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 762 | 2015-01-15T10:00:59.000Z | 2022-03-31T15:35:14.000Z | bluebottle/clients/management/commands/new_tenant.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 9 | 2015-02-20T13:19:30.000Z | 2022-03-08T14:09:17.000Z | # coding=utf-8
from builtins import input
from optparse import make_option
from django.core import exceptions
from django.utils.encoding import force_str
from django.conf import settings
from django.db.utils import IntegrityError
from django.core.management import call_command
from tenant_schemas.utils import get_ten... | 38.812834 | 99 | 0.533067 |
5e0306f967c71be1d0eb14d40dbc5b84ec045a83 | 3,565 | py | Python | tests/util_image.py | parmarsuraj99/objax | 111cd78960f5812885505b5ec02552b98a789973 | [
"Apache-2.0"
] | 2 | 2021-02-23T18:23:40.000Z | 2022-03-09T09:38:37.000Z | tests/util_image.py | parmarsuraj99/objax | 111cd78960f5812885505b5ec02552b98a789973 | [
"Apache-2.0"
] | null | null | null | tests/util_image.py | parmarsuraj99/objax | 111cd78960f5812885505b5ec02552b98a789973 | [
"Apache-2.0"
] | 1 | 2020-09-20T23:56:29.000Z | 2020-09-20T23:56:29.000Z | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 44.012346 | 120 | 0.609818 |
5e043abcf5a29bdcffd9f45c532c8fa1ae641968 | 311 | py | Python | alpyro_msgs/actionlib/testrequestresult.py | rho2/alpyro_msgs | b5a680976c40c83df70d61bb2db1de32a1cde8d3 | [
"MIT"
] | 1 | 2020-12-13T13:07:10.000Z | 2020-12-13T13:07:10.000Z | alpyro_msgs/actionlib/testrequestresult.py | rho2/alpyro_msgs | b5a680976c40c83df70d61bb2db1de32a1cde8d3 | [
"MIT"
] | null | null | null | alpyro_msgs/actionlib/testrequestresult.py | rho2/alpyro_msgs | b5a680976c40c83df70d61bb2db1de32a1cde8d3 | [
"MIT"
] | null | null | null | from alpyro_msgs import RosMessage, boolean, int32
| 28.272727 | 74 | 0.829582 |
5e05ca6490bebc35ad6718a788941b84ebc6f86b | 1,313 | py | Python | tests/test_pycolor.py | edonyzpc/toolkitem | 3a09ebf45eee8ecd9ff0e441392d5fc746b996e5 | [
"MIT"
] | 3 | 2015-04-20T08:17:09.000Z | 2020-07-07T15:22:06.000Z | tests/test_pycolor.py | edonyzpc/toolkitem | 3a09ebf45eee8ecd9ff0e441392d5fc746b996e5 | [
"MIT"
] | 24 | 2015-11-14T14:54:59.000Z | 2017-10-23T15:14:45.000Z | tests/test_pycolor.py | edonyzpc/toolkitem | 3a09ebf45eee8ecd9ff0e441392d5fc746b996e5 | [
"MIT"
] | 1 | 2017-02-28T06:35:44.000Z | 2017-02-28T06:35:44.000Z | from __future__ import print_function
import sys
sys.path.append('./')
from colorprinter.pycolor import PyColor
from colorprinter.pycolor import cprint
#if __name__ == "__main__":
# cprint('ugreen', 'hello edony')
# printer('edony')
# py_color = PyColor('green')
# py_color.format = 'ucyan'
# print(py_co... | 27.93617 | 65 | 0.619193 |
5e05f2cccefdec04a8fd2cca1ee7503f900daacf | 292 | py | Python | app/main/views.py | chushijituan/job_analysis | a99d8f12b9dafa93de448a27d2f76ee6ddbde469 | [
"MIT"
] | 45 | 2016-07-07T08:53:04.000Z | 2022-01-10T11:00:40.000Z | app/main/views.py | chushijituan/job_analysis | a99d8f12b9dafa93de448a27d2f76ee6ddbde469 | [
"MIT"
] | 1 | 2016-07-09T03:40:13.000Z | 2017-02-02T06:58:27.000Z | app/main/views.py | chushijituan/job_analysis | a99d8f12b9dafa93de448a27d2f76ee6ddbde469 | [
"MIT"
] | 20 | 2016-07-08T02:18:49.000Z | 2019-06-09T14:21:26.000Z | # coding: utf-8
from . import main
from flask import render_template, jsonify, flash, request, current_app, url_for, Response, g, abort
| 20.857143 | 100 | 0.715753 |
5e0820cd30478afe8761f3ecbdb9b91773ce5cd6 | 9,918 | py | Python | da4py/main/conformanceChecking/antiAlignmentBetweenNets.py | BoltMaud/da4py | 535372c9cbce2f6adfff181d3b2e1b33422fed8a | [
"MIT"
] | 2 | 2020-01-22T15:46:20.000Z | 2020-12-26T19:15:18.000Z | da4py/main/conformanceChecking/antiAlignmentBetweenNets.py | BoltMaud/da4py | 535372c9cbce2f6adfff181d3b2e1b33422fed8a | [
"MIT"
] | 1 | 2019-10-07T07:08:03.000Z | 2019-10-07T07:08:03.000Z | da4py/main/conformanceChecking/antiAlignmentBetweenNets.py | BoltMaud/da4py | 535372c9cbce2f6adfff181d3b2e1b33422fed8a | [
"MIT"
] | 1 | 2019-10-04T13:14:12.000Z | 2019-10-04T13:14:12.000Z | import itertools
from pm4py.objects.petri.petrinet import PetriNet
from da4py.main.objects.pnToFormulas import petri_net_to_SAT
from da4py.main.utils import variablesGenerator as vg, formulas
from da4py.main.utils.formulas import Or, And
from da4py.main.utils.unSat2qbfReader import writeQDimacs, cadetOutputQDimacs, r... | 49.59 | 163 | 0.619984 |
5e08de868f4d13f8b2e2b7a064674d9d0ec35a63 | 6,215 | py | Python | projects-import.py | kprussing/resume | b7df1db6ec1709152b2e4727c90b12eac81f258b | [
"BSD-2-Clause"
] | null | null | null | projects-import.py | kprussing/resume | b7df1db6ec1709152b2e4727c90b12eac81f258b | [
"BSD-2-Clause"
] | null | null | null | projects-import.py | kprussing/resume | b7df1db6ec1709152b2e4727c90b12eac81f258b | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
__doc__ = """Process a dump from the 'Charge Activity Report by Employee
- Project Detail Information' report from Webwise. We only need the
table view because we simply want to extract the fields. For this to
work, we _must_ have the table headers. Those are used as the keys in
the YAML forma... | 43.159722 | 99 | 0.545455 |
5e094e096519c145228a9361bab704ba9763c4d7 | 4,240 | py | Python | jenkins/docker_diff.py | smarterclayton/test-infra | 13bff73612f370ad8096e8a8d731faa5e3697adb | [
"Apache-2.0"
] | null | null | null | jenkins/docker_diff.py | smarterclayton/test-infra | 13bff73612f370ad8096e8a8d731faa5e3697adb | [
"Apache-2.0"
] | 1 | 2021-03-20T05:41:39.000Z | 2021-03-20T05:41:39.000Z | jenkins/docker_diff.py | smarterclayton/test-infra | 13bff73612f370ad8096e8a8d731faa5e3697adb | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Copyright 2016 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 29.241379 | 86 | 0.640802 |
5e099ec7e7075858d79dcc6c43ed33bc1961d2a0 | 25,459 | py | Python | crawler/libs/extractors.py | riszkymf/pricefinder_full | dc70332757d4487826204fa2a249deb22148bb7b | [
"MIT"
] | 1 | 2019-07-26T12:40:25.000Z | 2019-07-26T12:40:25.000Z | crawler/libs/extractors.py | riszkymf/pricefinder_full | dc70332757d4487826204fa2a249deb22148bb7b | [
"MIT"
] | 1 | 2020-03-02T08:27:51.000Z | 2020-03-02T08:27:51.000Z | crawler/libs/extractors.py | riszkymf/pricefinder_full | dc70332757d4487826204fa2a249deb22148bb7b | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver import ActionChains
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.support.ui import WebDriverWait
from selenium.common.exceptions import Time... | 33.587071 | 116 | 0.558977 |
5e0b345e85244d00d3751d3404f05d4e2bfd639f | 269 | py | Python | bo/files/applicant/registulang/fileupload/pdf2txt/main.py | isoneday/KMS | 7d27e16af7626afd27a0980735985f5f2590f500 | [
"MIT"
] | null | null | null | bo/files/applicant/registulang/fileupload/pdf2txt/main.py | isoneday/KMS | 7d27e16af7626afd27a0980735985f5f2590f500 | [
"MIT"
] | null | null | null | bo/files/applicant/registulang/fileupload/pdf2txt/main.py | isoneday/KMS | 7d27e16af7626afd27a0980735985f5f2590f500 | [
"MIT"
] | null | null | null | from src import mining
from tkinter import filedialog
from PyQt4 import QtGui
dir=filedialog.askdirectory()
direcciones, nomArchivo = mining.path(dir)
cont=mining.coincidencias(direcciones,nomArchivo)
for i in range(len(nomArchivo)):
print(nomArchivo[i],cont[i]) | 24.454545 | 49 | 0.795539 |
5e0cc7316c8aff667a7e4fcdd2c61cb61f60b410 | 380 | py | Python | src/platform/jboss/fingerprints/JBoss71Manage.py | 0x27/clusterd | 0f04a4955c61aa523274e9ae35d750f4339b1e59 | [
"MIT"
] | 539 | 2015-01-08T23:59:32.000Z | 2022-03-29T17:53:02.000Z | src/platform/jboss/fingerprints/JBoss71Manage.py | M31MOTH/clusterd | d190b2cbaa93820e928a7ce5471c661d4559fb7c | [
"MIT"
] | 21 | 2015-01-17T21:51:21.000Z | 2019-09-20T09:23:18.000Z | src/platform/jboss/fingerprints/JBoss71Manage.py | M31MOTH/clusterd | d190b2cbaa93820e928a7ce5471c661d4559fb7c | [
"MIT"
] | 192 | 2015-01-26T20:44:14.000Z | 2021-12-22T01:39:50.000Z | from src.platform.jboss.interfaces import JINTERFACES
from cprint import FingerPrint
| 27.142857 | 59 | 0.668421 |
5e0cdea905b5b41aac70d7b34ce67692a178cd47 | 455 | py | Python | ip_system/models.py | 9dev/django-ip-system | 8d53fea89c0fcef3bdea27a893ce6a484b8b900a | [
"MIT"
] | null | null | null | ip_system/models.py | 9dev/django-ip-system | 8d53fea89c0fcef3bdea27a893ce6a484b8b900a | [
"MIT"
] | null | null | null | ip_system/models.py | 9dev/django-ip-system | 8d53fea89c0fcef3bdea27a893ce6a484b8b900a | [
"MIT"
] | null | null | null | from django.db import models
from .utils import get_ip_from_request
| 22.75 | 70 | 0.679121 |
5e0eb2ef8cc5a92c789db67d4485bba124df7161 | 1,640 | py | Python | qs_backend/qs_backend/backend.py | Praneesh/quickstocks | 2ad4f985b7cc11721209cc81c36937e9cf25fb60 | [
"MIT"
] | 2 | 2016-12-28T18:08:23.000Z | 2017-04-01T18:09:55.000Z | qs_backend/qs_backend/backend.py | Praneesh/quickstocks | 2ad4f985b7cc11721209cc81c36937e9cf25fb60 | [
"MIT"
] | null | null | null | qs_backend/qs_backend/backend.py | Praneesh/quickstocks | 2ad4f985b7cc11721209cc81c36937e9cf25fb60 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
# __author__ = "Praneesh Kataru"
# __credits__ = []
# __version__ = "0.2.1"
# __maintainer__ = "Praneesh Kataru"
# __email__ = "pranuvitmsse05@gmail.com"
# __status__ = "Prototype"
#
# Responsible for starting the required number of processes and threads
import threading
i... | 30.37037 | 112 | 0.690854 |