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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
30ecb86d7b4b8c0041f3054b609592352ad97efe | 9,468 | py | Python | src/config/utilities.py | ionitadaniel19/testframeworksevolution | 873b7d7e7de770b9407840f6ccd662929b5dd3b6 | [
"MIT"
] | null | null | null | src/config/utilities.py | ionitadaniel19/testframeworksevolution | 873b7d7e7de770b9407840f6ccd662929b5dd3b6 | [
"MIT"
] | null | null | null | src/config/utilities.py | ionitadaniel19/testframeworksevolution | 873b7d7e7de770b9407840f6ccd662929b5dd3b6 | [
"MIT"
] | null | null | null | '''
Created on 24.05.2014
@author: ionitadaniel19
'''
import logging.config
import os
import json
from xlsmanager import easyExcel
from constants import *
import traceback
import copy
def setup_logging(default_path='logging.json', default_level=logging.INFO,env_key='LOG_CFG'):
"""Setup logging conf... | 47.104478 | 123 | 0.649873 |
30ee18a6b2f022e0885f14c7de3dc685941faaaa | 2,604 | py | Python | puente-etl/jobs.py | puente-development-international/serverless | 5eb89737821e3c711fc9ab9f8738c741e0ff5e03 | [
"MIT"
] | null | null | null | puente-etl/jobs.py | puente-development-international/serverless | 5eb89737821e3c711fc9ab9f8738c741e0ff5e03 | [
"MIT"
] | null | null | null | puente-etl/jobs.py | puente-development-international/serverless | 5eb89737821e3c711fc9ab9f8738c741e0ff5e03 | [
"MIT"
] | 1 | 2020-07-05T22:04:07.000Z | 2020-07-05T22:04:07.000Z | from load_to_s3 import export_to_s3_as_dataframe, export_to_s3_as_csv
from transform_form_specifications import get_custom_form_schema_df
from transform_form_results import get_form_results_df
from utils.clients import Clients
from utils.constants import PuenteTables
def run_transform_jobs(event, context):
"""
... | 38.294118 | 94 | 0.715822 |
30f171763de2f4636a1f96ffc3321d80779aff6d | 670 | py | Python | api/migrations/0001_initial.py | study-abacus/admin-site | 045168cae3edcc95a3bb068d7b1ba19a87bf3070 | [
"MIT"
] | 1 | 2020-10-19T09:26:38.000Z | 2020-10-19T09:26:38.000Z | api/migrations/0001_initial.py | study-abacus/admin-site | 045168cae3edcc95a3bb068d7b1ba19a87bf3070 | [
"MIT"
] | 10 | 2018-10-25T21:06:12.000Z | 2021-06-10T20:57:46.000Z | api/migrations/0001_initial.py | study-abacus/admin-site | 045168cae3edcc95a3bb068d7b1ba19a87bf3070 | [
"MIT"
] | 1 | 2020-10-19T08:55:16.000Z | 2020-10-19T08:55:16.000Z | # Generated by Django 2.1.2 on 2019-06-21 15:16
from django.db import migrations, models
| 26.8 | 114 | 0.567164 |
30f24f3c782ca580ac6fe9778ca672c384b9687e | 930 | py | Python | helper.py | chin-gyou/lstm | 087ae684e0f4fbd91d36140a20de2b8ce1e30790 | [
"MIT"
] | null | null | null | helper.py | chin-gyou/lstm | 087ae684e0f4fbd91d36140a20de2b8ce1e30790 | [
"MIT"
] | null | null | null | helper.py | chin-gyou/lstm | 087ae684e0f4fbd91d36140a20de2b8ce1e30790 | [
"MIT"
] | null | null | null |
#num_contain('../models/tf/8192-2048nd/complete.txt','<S>')
#combine('../data/generate.txt','../models/tf/biglstm/generate_all','../models/tf/biglstm/generate.txt')
combine_for_lstm('../data/generate.txt','../models/tf/biglstm/generate_all','../models/tf/biglstm/complete.txt')
| 33.214286 | 112 | 0.627957 |
30f55feaf26bc2741029bc60ca52c4e976cd149e | 143 | py | Python | views/template.py | dev-easyshares/mighty | a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b | [
"MIT"
] | null | null | null | views/template.py | dev-easyshares/mighty | a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b | [
"MIT"
] | 1 | 2022-03-12T00:57:37.000Z | 2022-03-12T00:57:37.000Z | views/template.py | dev-easyshares/mighty | a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b | [
"MIT"
] | null | null | null | from django.views.generic.base import TemplateView
from mighty.views.base import BaseView | 28.6 | 50 | 0.825175 |
30f6ac72038838fbb62d8afbf8f8604108473475 | 3,840 | py | Python | grading/postgrade.py | berkeley-dsep-infra/data8xhub | 85d6d65b9ab862ffbac3728e542d2b359bbb0898 | [
"BSD-3-Clause"
] | 9 | 2018-01-12T03:16:47.000Z | 2019-06-19T00:01:13.000Z | grading/postgrade.py | berkeley-dsep-infra/data8xhub | 85d6d65b9ab862ffbac3728e542d2b359bbb0898 | [
"BSD-3-Clause"
] | 33 | 2017-11-11T02:17:25.000Z | 2018-06-13T20:44:58.000Z | grading/postgrade.py | berkeley-dsep-infra/data8xhub | 85d6d65b9ab862ffbac3728e542d2b359bbb0898 | [
"BSD-3-Clause"
] | 5 | 2017-11-28T23:01:46.000Z | 2018-07-20T06:52:09.000Z | """
Script to post grades back to EdX
"""
import requests
import json
import os
import time
from oauthlib.oauth1.rfc5849 import signature, parameters
from lxml import etree
from hashlib import sha1
import argparse
import base64
if __name__ == '__main__':
main() | 32 | 117 | 0.658594 |
30fa03612f1fa5e01b83bc4eabcad8efd3af22cc | 3,800 | py | Python | backend/metric/ulca-utility-service/src/repositories/notifierrepo.py | agupta54/ulca | c1f570ac254ce2ac73f40c49716458f4f7cbaee2 | [
"MIT"
] | 3 | 2022-01-12T06:51:51.000Z | 2022-02-23T18:54:33.000Z | backend/metric/ulca-utility-service/src/repositories/notifierrepo.py | agupta54/ulca | c1f570ac254ce2ac73f40c49716458f4f7cbaee2 | [
"MIT"
] | 6 | 2021-08-31T19:21:26.000Z | 2022-01-03T05:53:42.000Z | backend/metric/ulca-utility-service/src/repositories/notifierrepo.py | agupta54/ulca | c1f570ac254ce2ac73f40c49716458f4f7cbaee2 | [
"MIT"
] | 8 | 2021-08-12T08:07:49.000Z | 2022-01-25T04:40:51.000Z | import pymongo
import logging
import config
from logging.config import dictConfig
log = logging.getLogger('fie')
# Log config
dictConfig({
'version': 1,
'formatters': {'default': {
'format': '[%(asctime)s] {%(filename)s:%(lineno)d} %(threadName)s %(levelname)s in %(module)s: %(message)s',
... | 33.628319 | 116 | 0.565 |
30fcff01d319fb3b2de560fc523dea8d584d5468 | 5,904 | py | Python | python/opscore/RO/Astro/Cnv/TopoFromObs.py | sdss/opscore | dd4f2b2ad525fe3dfe3565463de2c079a7e1232e | [
"BSD-3-Clause"
] | null | null | null | python/opscore/RO/Astro/Cnv/TopoFromObs.py | sdss/opscore | dd4f2b2ad525fe3dfe3565463de2c079a7e1232e | [
"BSD-3-Clause"
] | 1 | 2021-08-17T21:08:14.000Z | 2021-08-17T21:08:14.000Z | python/opscore/RO/Astro/Cnv/TopoFromObs.py | sdss/opscore | dd4f2b2ad525fe3dfe3565463de2c079a7e1232e | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
"""
History:
2002-07-22 ROwen Converted to Python from the TCC's cnv_UnRefract 2-2.
2002-12-23 ROwen Fixed "obsP too small" message; thanks to pychecker.
2005-04-26 ROwen Fixed minor indentation oddity.
2007-04-24 ROwen Converted from Numeric to numpy.
2007-09-19 ROwen Mis-called n... | 38.842105 | 105 | 0.612297 |
30fd406ff84db6385d39a46d4bf61bbc0f3165eb | 9,299 | py | Python | pretrain/CP/model.py | datawhales/RE-by-MKD | 32f717926aa034aa107d728107ec55563ca88bb8 | [
"MIT"
] | null | null | null | pretrain/CP/model.py | datawhales/RE-by-MKD | 32f717926aa034aa107d728107ec55563ca88bb8 | [
"MIT"
] | null | null | null | pretrain/CP/model.py | datawhales/RE-by-MKD | 32f717926aa034aa107d728107ec55563ca88bb8 | [
"MIT"
] | null | null | null | import copy
import torch
import torch.nn as nn
from pytorch_metric_learning.losses import NTXentLoss
from transformers import BertForMaskedLM, BertForPreTraining, BertTokenizer
def mask_tokens(inputs, tokenizer, not_mask_pos=None):
""" Prepare masked tokens of inputs and labels for masked language modeling (80% MA... | 45.360976 | 138 | 0.639639 |
30fd4cd9b9a1bbfb52cd47ba296c91f758f5d7ef | 3,193 | py | Python | monitor/services/send_notification_email.py | BrianWaganerSTL/RocketDBaaS | d924589188411371842513060a5e08b1be3cdccf | [
"MIT"
] | 1 | 2018-11-04T09:36:35.000Z | 2018-11-04T09:36:35.000Z | monitor/services/send_notification_email.py | BrianWaganerSTL/RocketDBaaS_api | d924589188411371842513060a5e08b1be3cdccf | [
"MIT"
] | null | null | null | monitor/services/send_notification_email.py | BrianWaganerSTL/RocketDBaaS_api | d924589188411371842513060a5e08b1be3cdccf | [
"MIT"
] | null | null | null | from django.core.exceptions import FieldDoesNotExist, FieldError
from django.core.mail import EmailMessage
from django.db import IntegrityError
from RocketDBaaS.settings_local import emailCcPostgres, emailFromPostgres, emailCcMongo, emailFromMongo, replyToPostgres, replyToMongo
from dbaas.models import ApplicationCont... | 41.467532 | 134 | 0.693079 |
30fdcaddbc3a8de1f4b1b83dd419f15f8cd9d00f | 1,063 | py | Python | src/train_test_split.py | JanMalinowski/Neurabble | 52825b17949ef1f32ba5610ab58319c307cf7dd5 | [
"MIT"
] | null | null | null | src/train_test_split.py | JanMalinowski/Neurabble | 52825b17949ef1f32ba5610ab58319c307cf7dd5 | [
"MIT"
] | null | null | null | src/train_test_split.py | JanMalinowski/Neurabble | 52825b17949ef1f32ba5610ab58319c307cf7dd5 | [
"MIT"
] | null | null | null | import pandas as pd
import os
if __name__ == "__main__":
data_dir = os.environ.get("DATA_DIRECTORY")
data_file = os.environ.get("DATA_FILE")
print(data_dir)
data_df = pd.read_pickle(data_dir + data_file)
test_df = pd.DataFrame()
# Creating two non-overlapping datasets for training and validati... | 33.21875 | 80 | 0.650988 |
30fe6ce496abc5ceaf66693a0dd4dcfed708bdde | 12,399 | py | Python | ADT/acl.py | UKHomeOffice/dq-ssm_ingest | 35aafd637e6d7e75e1d558d275b7d0518bfc6c47 | [
"MIT"
] | 1 | 2018-02-14T10:15:34.000Z | 2018-02-14T10:15:34.000Z | ADT/acl.py | UKHomeOffice/dq-ssm_ingest | 35aafd637e6d7e75e1d558d275b7d0518bfc6c47 | [
"MIT"
] | 2 | 2018-07-17T07:01:43.000Z | 2018-11-22T16:33:33.000Z | ADT/acl.py | UKHomeOffice/dq-ssm_ingest | 35aafd637e6d7e75e1d558d275b7d0518bfc6c47 | [
"MIT"
] | 2 | 2018-02-15T11:48:58.000Z | 2021-04-11T09:24:21.000Z | ## ACL Import Module
# ACL CSV Import
# Version 5
# 2015-10-30
# we only need the datetime class & the static function strptime from datetime module
from datetime import datetime
import re
import sys
import os
import logging
# best postgresql module so far, install it "yum install python-psycopg2"
import psycopg2
im... | 23.662214 | 159 | 0.665941 |
a5003aee3fdfeb112214e2ce995e4b7632c2a000 | 1,077 | py | Python | drdown/medicalrecords/views/view_static_data.py | fga-gpp-mds/2018.1-Cris-Down | 3423374360105b06ac2c57a320bf2ee8deaa08a3 | [
"MIT"
] | 11 | 2018-03-11T01:21:43.000Z | 2018-06-19T21:51:33.000Z | drdown/medicalrecords/views/view_static_data.py | fga-gpp-mds/2018.1-Grupo12 | 3423374360105b06ac2c57a320bf2ee8deaa08a3 | [
"MIT"
] | 245 | 2018-03-13T19:07:14.000Z | 2018-07-07T22:46:00.000Z | drdown/medicalrecords/views/view_static_data.py | fga-gpp-mds/2018.1-Grupo12 | 3423374360105b06ac2c57a320bf2ee8deaa08a3 | [
"MIT"
] | 12 | 2018-08-24T13:26:04.000Z | 2021-03-27T16:28:22.000Z | from drdown.users.models.model_health_team import HealthTeam
from ..models.model_static_data import StaticData
from ..models.model_medical_record import MedicalRecord
from drdown.users.models.model_user import User
from drdown.users.models.model_patient import Patient
from django.views.generic import CreateView, Delete... | 41.423077 | 77 | 0.812442 |
a5023b5db7050e68a3d0b05b54dbb45f33ca5013 | 27 | py | Python | homeassistant/components/fixer/__init__.py | domwillcode/home-assistant | f170c80bea70c939c098b5c88320a1c789858958 | [
"Apache-2.0"
] | 30,023 | 2016-04-13T10:17:53.000Z | 2020-03-02T12:56:31.000Z | homeassistant/components/fixer/__init__.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 31,101 | 2020-03-02T13:00:16.000Z | 2022-03-31T23:57:36.000Z | homeassistant/components/fixer/__init__.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 11,956 | 2016-04-13T18:42:31.000Z | 2020-03-02T09:32:12.000Z | """The fixer component."""
| 13.5 | 26 | 0.62963 |
a502591f7cb547adc2bc20587c11cb27d17a4764 | 2,748 | py | Python | beatbrain/utils/visualization.py | tasercake/BeatBrain | 2d84e1021c509f6564223858c051394c6c8504bb | [
"MIT"
] | 5 | 2019-09-10T22:34:34.000Z | 2019-11-19T07:07:03.000Z | beatbrain/utils/visualization.py | tasercake/BeatBrain | 2d84e1021c509f6564223858c051394c6c8504bb | [
"MIT"
] | 35 | 2019-11-12T03:18:43.000Z | 2019-12-16T14:03:24.000Z | beatbrain/utils/visualization.py | tasercake/Beatbrain | 2d84e1021c509f6564223858c051394c6c8504bb | [
"MIT"
] | 3 | 2019-09-04T10:07:57.000Z | 2019-11-17T10:14:28.000Z | import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
import librosa
import librosa.display
import IPython.display as ipd
from .config import Config, get_default_config
default_config = get_default_config()
def show_heatmap(
spec,
normalize=True,
scale_fn=None,
title=None,
lab... | 28.040816 | 102 | 0.643741 |
a502908e85da3ff6fe88c1e713181e01b6ed126a | 2,750 | py | Python | misty2py_skills/demonstrations/explore.py | ChrisScarred/misty2py-skills | 30557d246b91fb525866fe8b92e280d2609ca26b | [
"MIT"
] | null | null | null | misty2py_skills/demonstrations/explore.py | ChrisScarred/misty2py-skills | 30557d246b91fb525866fe8b92e280d2609ca26b | [
"MIT"
] | null | null | null | misty2py_skills/demonstrations/explore.py | ChrisScarred/misty2py-skills | 30557d246b91fb525866fe8b92e280d2609ca26b | [
"MIT"
] | null | null | null | """This module implements a SLAM mapping skill.
"""
from typing import Union
from misty2py.utils.utils import get_misty
from pynput import keyboard
misty = get_misty()
INFO_KEY = keyboard.KeyCode.from_char("i")
"""The key to print for SLAM information."""
START_KEY = keyboard.Key.home
"""The key to print to start ex... | 26.960784 | 85 | 0.639636 |
a502d12f0279237c690f7a5c8c495908cdb16660 | 654 | py | Python | 18/part2.py | jcsesznegi/advent-of-code-2017 | 9710e184e092b82aa798076b9ce3915c6e42758d | [
"MIT"
] | 1 | 2020-04-12T17:54:52.000Z | 2020-04-12T17:54:52.000Z | 18/part2.py | jcsesznegi/advent-of-code-2017 | 9710e184e092b82aa798076b9ce3915c6e42758d | [
"MIT"
] | null | null | null | 18/part2.py | jcsesznegi/advent-of-code-2017 | 9710e184e092b82aa798076b9ce3915c6e42758d | [
"MIT"
] | null | null | null | import os, queue
from tablet import Tablet
f = open(os.path.join(os.path.dirname(__file__), '../input/18/part1.txt'), 'r')
if __name__ == '__main__':
main()
| 21.096774 | 79 | 0.599388 |
a504c83f1c86b0e83471847dce784f3d93852a20 | 832 | py | Python | viz.py | Zoetic-Zephyr/CarND-Behavioral-Cloning-P3 | 6e7a65f2008f6077e12a0def3600d0711d48d055 | [
"MIT"
] | null | null | null | viz.py | Zoetic-Zephyr/CarND-Behavioral-Cloning-P3 | 6e7a65f2008f6077e12a0def3600d0711d48d055 | [
"MIT"
] | null | null | null | viz.py | Zoetic-Zephyr/CarND-Behavioral-Cloning-P3 | 6e7a65f2008f6077e12a0def3600d0711d48d055 | [
"MIT"
] | null | null | null | import numpy as np
from scipy import ndimage
from matplotlib import pyplot as plt
p_c = "writeup_images/center_2016_12_01_13_36_47_622.jpg"
p_l = "writeup_images/left_2016_12_01_13_36_47_622.jpg"
p_r = "writeup_images/right_2016_12_01_13_36_47_622.jpg"
i_c = ndimage.imread(p_c)
i_l = ndimage.imread(p_l)
i_r = ndimag... | 23.771429 | 65 | 0.742788 |
a50518b05d4a3b822360cc6a23ab6bf41dfaa8d1 | 654 | py | Python | app/model.py | fras2560/flask-pytest-cypress-ci-template | d86bee0a4dd59406093602b671f100bd132c16b0 | [
"MIT"
] | null | null | null | app/model.py | fras2560/flask-pytest-cypress-ci-template | d86bee0a4dd59406093602b671f100bd132c16b0 | [
"MIT"
] | 4 | 2021-01-16T20:33:02.000Z | 2022-01-15T21:17:05.000Z | app/model.py | fras2560/flask-pytest-cypress-ci-template | d86bee0a4dd59406093602b671f100bd132c16b0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Holds a database model for the application."""
from flask_sqlalchemy import SQLAlchemy
"""The database object."""
DB = SQLAlchemy()
| 21.8 | 53 | 0.56422 |
a50528d98c0a07b9041ea5a2238dc30c5ca68f03 | 1,450 | py | Python | data_from_nse.py | anshjeengar/PyFin | 22dd3376835454ad783c80619e2ce5cd19291fd7 | [
"MIT"
] | null | null | null | data_from_nse.py | anshjeengar/PyFin | 22dd3376835454ad783c80619e2ce5cd19291fd7 | [
"MIT"
] | null | null | null | data_from_nse.py | anshjeengar/PyFin | 22dd3376835454ad783c80619e2ce5cd19291fd7 | [
"MIT"
] | null | null | null | import datetime
import os
from zipfile import ZipFile
import requests
from icecream import ic
from wget import download
ic.enable()
date_from = (datetime.date.today() - datetime.timedelta(days=5)).isoformat()
date_to = (datetime.date.today()).isoformat()
ic(f'Date Range: {date_from} to {date_to}')
getbhav_data(dat... | 32.954545 | 174 | 0.673793 |
a50546cd9cbfb205e4f0b6e528f48b172a25493f | 2,906 | py | Python | aioruuvitag/ruuvitag_calc.py | hulttis/ruuvigw | 914eb657e3f2792cecf6848dfa7607ad45f17ab4 | [
"MIT"
] | 7 | 2019-11-08T07:30:05.000Z | 2022-02-20T21:58:44.000Z | aioruuvitag/ruuvitag_calc.py | hulttis/ruuvigw | 914eb657e3f2792cecf6848dfa7607ad45f17ab4 | [
"MIT"
] | null | null | null | aioruuvitag/ruuvitag_calc.py | hulttis/ruuvigw | 914eb657e3f2792cecf6848dfa7607ad45f17ab4 | [
"MIT"
] | 1 | 2021-06-19T16:52:55.000Z | 2021-06-19T16:52:55.000Z | # coding=utf-8
# !/usr/bin/python3
# Name: ruuvitag calc - calculations
# Copyright: (c) 2019 TK
# Licence: MIT
# -------------------------------------------------------------------------------
import logging
logger = logging.getLogger('ruuvitag')
import math
# ----------------------------------------... | 39.27027 | 168 | 0.467309 |
a5054f48ba9c514c979c2fd60441c49991022f98 | 11,681 | py | Python | testware/utils/transforms.py | amansinha/testware | 93eef7f1e1fe0968b66471ef9ce8ac95d55c4f4b | [
"Apache-2.0"
] | null | null | null | testware/utils/transforms.py | amansinha/testware | 93eef7f1e1fe0968b66471ef9ce8ac95d55c4f4b | [
"Apache-2.0"
] | null | null | null | testware/utils/transforms.py | amansinha/testware | 93eef7f1e1fe0968b66471ef9ce8ac95d55c4f4b | [
"Apache-2.0"
] | 4 | 2021-06-21T11:58:51.000Z | 2021-08-06T08:25:54.000Z | # -*- coding: utf-8 -*-
'''
Copyright (c) 2021, Trustworthy AI, Inc. 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 ... | 32.904225 | 98 | 0.732643 |
a505bff8fac36cafc52b390a4914ef4aeb14f516 | 16,554 | py | Python | bigfix_connector.py | splunk-soar-connectors/bigfix | 6fb2eaeff57de99211130de3a5d9c7b2132dbcba | [
"Apache-2.0"
] | null | null | null | bigfix_connector.py | splunk-soar-connectors/bigfix | 6fb2eaeff57de99211130de3a5d9c7b2132dbcba | [
"Apache-2.0"
] | 3 | 2021-12-08T22:30:03.000Z | 2022-01-13T21:42:32.000Z | bigfix_connector.py | splunk-soar-connectors/bigfix | 6fb2eaeff57de99211130de3a5d9c7b2132dbcba | [
"Apache-2.0"
] | null | null | null | # File: bigfix_connector.py
#
# Copyright (c) 2017-2022 Splunk Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | 36.868597 | 126 | 0.636825 |
a50616668f1b0fda24a43ea8fe0b13c1c15724d0 | 978 | py | Python | files/hacktm-ctf-2020/strange-pcap/solution/solve.py | J4sp3r/j4sp3r.github.io | 0bab5698fdeab57426c90a315204bcd39cd79fa4 | [
"MIT"
] | null | null | null | files/hacktm-ctf-2020/strange-pcap/solution/solve.py | J4sp3r/j4sp3r.github.io | 0bab5698fdeab57426c90a315204bcd39cd79fa4 | [
"MIT"
] | null | null | null | files/hacktm-ctf-2020/strange-pcap/solution/solve.py | J4sp3r/j4sp3r.github.io | 0bab5698fdeab57426c90a315204bcd39cd79fa4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
usb_codes = {
0x04:"aA", 0x05:"bB", 0x06:"cC", 0x07:"dD", 0x08:"eE", 0x09:"fF",
0x0A:"gG", 0x0B:"hH", 0x0C:"iI", 0x0D:"jJ", 0x0E:"kK", 0x0F:"lL",
0x10:"mM", 0x11:"nN", 0x12:"oO", 0x13:"pP", 0x14:"qQ", 0x15:"rR",
0x16:"sS", 0x17:"tT", 0x18:"uU", 0x19:"vV", 0x1A:"wW", 0x1B:"xX",
0x1... | 28.764706 | 69 | 0.474438 |
a50618df62098357329e3f13f260013ab38c4a27 | 1,410 | py | Python | problems/easy.py | mrcoles/coding-bee | 04cc5bc8dae92640fc8f01501b3f93e18a2a34c5 | [
"MIT"
] | 1 | 2021-07-26T18:29:16.000Z | 2021-07-26T18:29:16.000Z | problems/easy.py | recursecenter/coding-bee | 04cc5bc8dae92640fc8f01501b3f93e18a2a34c5 | [
"MIT"
] | null | null | null | problems/easy.py | recursecenter/coding-bee | 04cc5bc8dae92640fc8f01501b3f93e18a2a34c5 | [
"MIT"
] | 3 | 2018-06-25T19:10:47.000Z | 2018-09-17T10:43:31.000Z |
# original problems
def easy_sum(a, b):
"""Takes two numbers and returns their sum"""
return a + b
def easy_product(a, b):
"""Takes two numbers and returns their product"""
return a * b
def easy_concat(a, b):
"""Takes two strings and returns their concatenation"""
return a + b
def easy_empty... | 30 | 173 | 0.66383 |
a507195ca3efaaee6d7657b8d6d9ae24627865f9 | 545 | py | Python | vivisect/analysis/generic/impapi.py | cmaruti/vivisect | 828a9af1b662d6417cf4c78f20a4ba37a1b3b670 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-12-23T19:23:17.000Z | 2020-12-23T19:23:17.000Z | vivisect/analysis/generic/impapi.py | cmaruti/vivisect | 828a9af1b662d6417cf4c78f20a4ba37a1b3b670 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | vivisect/analysis/generic/impapi.py | cmaruti/vivisect | 828a9af1b662d6417cf4c78f20a4ba37a1b3b670 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-12-23T19:23:58.000Z | 2020-12-23T19:23:58.000Z | """
Function analysis module which sets function APIs based
on function's name matching impapi. This should ideally go
early in the module order to get the APIs marked asap.
"""
| 32.058824 | 113 | 0.700917 |
a507717714986cd0a25bfc921288a4d277b88b23 | 186 | py | Python | jira_webhook/apps.py | uw-it-aca/jira-webhook | 2c90f8073bc85be499b1c892486083fcdaff56f4 | [
"Apache-2.0"
] | null | null | null | jira_webhook/apps.py | uw-it-aca/jira-webhook | 2c90f8073bc85be499b1c892486083fcdaff56f4 | [
"Apache-2.0"
] | 19 | 2021-04-07T22:48:56.000Z | 2021-07-06T18:34:14.000Z | jira_webhook/apps.py | uw-it-aca/jira-webhook | 2c90f8073bc85be499b1c892486083fcdaff56f4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0
from django.apps import AppConfig
| 20.666667 | 48 | 0.774194 |
a50804ff7329f7171f2151b72aebb23158bac55e | 2,104 | py | Python | src/util/knn.py | FlorianWestphal/ICDAR2019 | c0e53db81b4976a56dc84940ab37ec545fe4fab4 | [
"Apache-2.0"
] | 1 | 2020-04-18T20:14:22.000Z | 2020-04-18T20:14:22.000Z | src/util/knn.py | FlorianWestphal/ICDAR2019 | c0e53db81b4976a56dc84940ab37ec545fe4fab4 | [
"Apache-2.0"
] | null | null | null | src/util/knn.py | FlorianWestphal/ICDAR2019 | c0e53db81b4976a56dc84940ab37ec545fe4fab4 | [
"Apache-2.0"
] | null | null | null | import numpy as np
| 33.396825 | 78 | 0.57557 |
a50a8c12b43e3147dc21fc80b072b9b3ccc322f0 | 583 | py | Python | src/princeton_scraper_cos_courses/__init__.py | jlumbroso/princeton-scraper-cos-courses | 9d666d827a75a60c95c713e101f45d8354e7b40f | [
"Unlicense"
] | 1 | 2021-09-16T16:28:47.000Z | 2021-09-16T16:28:47.000Z | src/princeton_scraper_cos_courses/__init__.py | jlumbroso/princeton-scraper-cos-courses | 9d666d827a75a60c95c713e101f45d8354e7b40f | [
"Unlicense"
] | null | null | null | src/princeton_scraper_cos_courses/__init__.py | jlumbroso/princeton-scraper-cos-courses | 9d666d827a75a60c95c713e101f45d8354e7b40f | [
"Unlicense"
] | null | null | null |
"""
Library to fetch and parse the public Princeton COS courses history as a
Python dictionary or JSON data source.
"""
__version__ = '1.0.0'
__author__ = "Jrmie Lumbroso <lumbroso@cs.princeton.edu>"
__all__ = [
"CosCourseInstance",
"CosCourseTerm",
"fetch_cos_courses",
]
from princeton_scraper_cos_co... | 23.32 | 82 | 0.778731 |
a5109f1adc34ba30dd99b10be532856ef200eb92 | 268 | py | Python | tests/test_print.py | syegulalp/myjit | 7427fee86a871a9c3a45704839ef7d0249773fc0 | [
"MIT"
] | 11 | 2021-03-17T15:08:54.000Z | 2022-02-21T18:31:25.000Z | tests/test_print.py | syegulalp/myjit | 7427fee86a871a9c3a45704839ef7d0249773fc0 | [
"MIT"
] | null | null | null | tests/test_print.py | syegulalp/myjit | 7427fee86a871a9c3a45704839ef7d0249773fc0 | [
"MIT"
] | null | null | null | import unittest
from jit import jit
from jit import j_types as j
| 17.866667 | 43 | 0.697761 |
a51178638a04068eaacf47738aff0a5fca5d3d5f | 3,794 | py | Python | lab.py | LiuDaveLiu/dj-spineimaging | ab7a18e8698a604dfb977def4a65f9c391389f83 | [
"MIT"
] | null | null | null | lab.py | LiuDaveLiu/dj-spineimaging | ab7a18e8698a604dfb977def4a65f9c391389f83 | [
"MIT"
] | null | null | null | lab.py | LiuDaveLiu/dj-spineimaging | ab7a18e8698a604dfb977def4a65f9c391389f83 | [
"MIT"
] | 1 | 2019-02-27T15:18:43.000Z | 2019-02-27T15:18:43.000Z | import datajoint as dj
schema = dj.schema('boazmohar_lab', locals())
| 24.960526 | 137 | 0.570374 |
a5144bf8a34310b90860c52a0311c382b1d5acb6 | 6,767 | py | Python | data_processing.py | neverstoplearn/remote_sensing_change_detection | 34ca27af74c4085331dbabcf678286ed89891493 | [
"MIT"
] | 56 | 2020-04-14T08:37:48.000Z | 2022-03-22T02:40:34.000Z | data_processing.py | neverstoplearn/remote_sensing_change_detection | 34ca27af74c4085331dbabcf678286ed89891493 | [
"MIT"
] | 13 | 2020-04-19T11:24:56.000Z | 2022-03-21T02:03:34.000Z | data_processing.py | neverstoplearn/remote_sensing_change_detection | 34ca27af74c4085331dbabcf678286ed89891493 | [
"MIT"
] | 14 | 2020-04-13T15:19:46.000Z | 2021-11-17T09:03:31.000Z |
# coding: utf-8
# In[1]:
from path import Path
from matplotlib import pyplot as plt
import numpy as np
import skimage.io as io
import os
from PIL import Image
import cv2
import random
import shutil
def crop_by_sequence(image_path,img_class_path,crop_size_w,crop_size_h,prefix,save_dir ,same_scale = False):
... | 35.994681 | 144 | 0.597902 |
a5160e87ba89103aab0ff949efc04f8f0aa92ae8 | 3,230 | py | Python | arc/util/profile.py | dereklarson/ARC_study | ba299e82d162ee317caa14739faa96989ea0cf31 | [
"Apache-2.0"
] | null | null | null | arc/util/profile.py | dereklarson/ARC_study | ba299e82d162ee317caa14739faa96989ea0cf31 | [
"Apache-2.0"
] | null | null | null | arc/util/profile.py | dereklarson/ARC_study | ba299e82d162ee317caa14739faa96989ea0cf31 | [
"Apache-2.0"
] | null | null | null | import cProfile
import functools
import pstats
import resource
import signal
import time
from typing import Any, Callable
# This list is passed to @profile() which aggregates the cumulative runtime
# into these functions, which represent the primary stages of task solutioning.
PROFILE_BREAKOUT_STD: list[str] = [
"... | 32.3 | 94 | 0.591641 |
a5163cf110c5ad9d479ad323c8d5354c82111324 | 4,198 | py | Python | black-hat/chapter-10/bhvulnservice/vulnservice.py | nwiizo/joke | 808c4c998cc7f5b7f6f3fb5a3ce421588a70c087 | [
"MIT"
] | 1 | 2017-01-11T06:12:24.000Z | 2017-01-11T06:12:24.000Z | black-hat/chapter-10/bhvulnservice/vulnservice.py | ShuyaMotouchi/joke | 808c4c998cc7f5b7f6f3fb5a3ce421588a70c087 | [
"MIT"
] | null | null | null | black-hat/chapter-10/bhvulnservice/vulnservice.py | ShuyaMotouchi/joke | 808c4c998cc7f5b7f6f3fb5a3ce421588a70c087 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#Requires Win32 Python Extensions
import os
import servicemanager
import shutil
import subprocess
import sys
import win32api
import win32event
import win32service
import win32serviceutil
import tempfile
if __name__ == '__main__':
win32api... | 36.824561 | 121 | 0.558361 |
a516b6d0d7f7e77d3549a77f30778a6d71d7c2ad | 889 | py | Python | src/xsd_auth/management/commands/delete_orphaned_users.py | minyiky/xSACdb | 8c407e9a9da196750a66ad53613ad67c8c56e1c3 | [
"MIT"
] | 2 | 2017-08-14T14:40:17.000Z | 2019-02-07T13:10:23.000Z | src/xsd_auth/management/commands/delete_orphaned_users.py | minyiky/xSACdb | 8c407e9a9da196750a66ad53613ad67c8c56e1c3 | [
"MIT"
] | 19 | 2016-02-07T18:02:53.000Z | 2019-11-03T17:48:13.000Z | src/xsd_auth/management/commands/delete_orphaned_users.py | minyiky/xSACdb | 8c407e9a9da196750a66ad53613ad67c8c56e1c3 | [
"MIT"
] | 4 | 2015-10-19T17:24:35.000Z | 2021-05-12T07:30:32.000Z | from django.core.management.base import BaseCommand
from xsd_auth.models import User
| 31.75 | 112 | 0.5973 |
a516fe5403ac004bb7f05d5813cb02f12722720e | 26,362 | py | Python | files/spam-filter/tracspamfilter/admin.py | Puppet-Finland/puppet-trac | ffdf467ba80ff995778c30b0bdc6dc3e7d4e6cd3 | [
"BSD-2-Clause"
] | null | null | null | files/spam-filter/tracspamfilter/admin.py | Puppet-Finland/puppet-trac | ffdf467ba80ff995778c30b0bdc6dc3e7d4e6cd3 | [
"BSD-2-Clause"
] | null | null | null | files/spam-filter/tracspamfilter/admin.py | Puppet-Finland/puppet-trac | ffdf467ba80ff995778c30b0bdc6dc3e7d4e6cd3 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (C) 2015 Edgewall Software
# Copyright (C) 2015 Dirk Stcker <trac@dstoecker.de>
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://tra... | 43.573554 | 80 | 0.582278 |
a5179480fa77effa02a250c5278f91140c5e5c57 | 2,130 | py | Python | bin/convert_to_wdiff.py | zerogerc/wikiedits | d9c91d448254ce6f43abb977d492b0d878f6aacc | [
"Apache-2.0"
] | null | null | null | bin/convert_to_wdiff.py | zerogerc/wikiedits | d9c91d448254ce6f43abb977d492b0d878f6aacc | [
"Apache-2.0"
] | null | null | null | bin/convert_to_wdiff.py | zerogerc/wikiedits | d9c91d448254ce6f43abb977d492b0d878f6aacc | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
from difflib import SequenceMatcher
SKIP_COMMENTS = False
ONE_LINE_COMMENTS = False
if __name__ == '__main__':
if '-h' in sys.argv or '--help' in sys.argv:
print "Example: cat enwiki.xxx.txt | perl path/to/mosesdecoder/.../tokenizer-for-... | 26.962025 | 186 | 0.480751 |
a5179f68c24505447773476e48e4e052fb2455ce | 7,143 | py | Python | apps/stock_members.py | ohjho/open_terminal | 35e3fdc0db65a8f91c9e7d2a8685e23a59799f47 | [
"Apache-2.0"
] | null | null | null | apps/stock_members.py | ohjho/open_terminal | 35e3fdc0db65a8f91c9e7d2a8685e23a59799f47 | [
"Apache-2.0"
] | 3 | 2021-04-20T02:37:17.000Z | 2021-08-24T07:24:53.000Z | apps/stock_members.py | ohjho/open_terminal | 35e3fdc0db65a8f91c9e7d2a8685e23a59799f47 | [
"Apache-2.0"
] | null | null | null | import os, sys, json, requests
import streamlit as st
from stqdm import stqdm
import pandas as pd
#Paths
cwdir = os.path.dirname(os.path.realpath(__file__))
sys.path.insert(1, os.path.join(cwdir, "../"))
from toolbox.st_utils import show_plotly
from toolbox.yf_utils import tickers_parser, get_stocks_obj, get_stocks_in... | 42.266272 | 227 | 0.600308 |
a51ad508c3e4605aa5d56cdd71a1936a4330f38d | 6,698 | py | Python | fashion_mnsit.py | samarthbhargav/symstat | e4de589388f64c90a0bd4d32a353cd86f83ff9ac | [
"Apache-2.0"
] | null | null | null | fashion_mnsit.py | samarthbhargav/symstat | e4de589388f64c90a0bd4d32a353cd86f83ff9ac | [
"Apache-2.0"
] | 6 | 2020-03-24T17:12:24.000Z | 2021-09-08T01:02:35.000Z | fashion_mnsit.py | samarthbhargav/symstat | e4de589388f64c90a0bd4d32a353cd86f83ff9ac | [
"Apache-2.0"
] | null | null | null | import copy
import logging
import torch
import numpy as np
from torch.utils.data import DataLoader
from torchvision import datasets, transforms
log = logging.getLogger(__name__)
if __name__ == '__main__':
fmnist_transforms = transforms.Compose([
transforms.ToTensor()
])
fmnist = FashionMNIS... | 34 | 115 | 0.599582 |
a51b82ddbf137ad542daf3f63235b52421d68306 | 4,423 | py | Python | rlgraph/components/layers/preprocessing/image_crop.py | RLGraph/RLGraph | 428fc136a9a075f29a397495b4226a491a287be2 | [
"Apache-2.0"
] | 290 | 2018-07-29T15:30:57.000Z | 2022-03-19T02:46:53.000Z | rlgraph/components/layers/preprocessing/image_crop.py | RLGraph/RLGraph | 428fc136a9a075f29a397495b4226a491a287be2 | [
"Apache-2.0"
] | 76 | 2018-10-19T08:42:01.000Z | 2020-05-03T08:34:21.000Z | rlgraph/components/layers/preprocessing/image_crop.py | RLGraph/RLGraph | 428fc136a9a075f29a397495b4226a491a287be2 | [
"Apache-2.0"
] | 41 | 2018-10-30T07:05:05.000Z | 2022-03-01T08:28:24.000Z | # Copyright 2018/2019 The RLgraph authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 39.846847 | 109 | 0.61248 |
a51d847f710215f54ff0dd865b4e8561ae9c0896 | 2,472 | py | Python | mvpa2/tests/test_gnb.py | arnaudsj/PyMVPA | 3e58b03d843089b1f631774d362a390487411ac6 | [
"MIT"
] | 1 | 2015-11-05T13:58:09.000Z | 2015-11-05T13:58:09.000Z | mvpa2/tests/test_gnb.py | arnaudsj/PyMVPA | 3e58b03d843089b1f631774d362a390487411ac6 | [
"MIT"
] | null | null | null | mvpa2/tests/test_gnb.py | arnaudsj/PyMVPA | 3e58b03d843089b1f631774d362a390487411ac6 | [
"MIT"
] | null | null | null | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
# See COPYING file distributed along with the PyMVPA package for the
# copyright and license terms.
#
### ### ### ### ###... | 37.454545 | 78 | 0.483414 |
eb46b8b46ec40d0c4ce911569a6d2b7eb471f60d | 7,738 | py | Python | test/conftest.py | GillesBouissac/blender-amf | 3a729b60dec7b7d0ab08ce82cadafd3c7f370e31 | [
"MIT"
] | 3 | 2021-06-16T07:54:50.000Z | 2022-03-31T09:44:30.000Z | test/conftest.py | GillesBouissac/blender-amf | 3a729b60dec7b7d0ab08ce82cadafd3c7f370e31 | [
"MIT"
] | null | null | null | test/conftest.py | GillesBouissac/blender-amf | 3a729b60dec7b7d0ab08ce82cadafd3c7f370e31 | [
"MIT"
] | null | null | null | # MIT License
#
# Copyright (c) 2020 Gilles Bouissac
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, mer... | 26.053872 | 79 | 0.642156 |
eb4800714334df908d857a50f10ee0fa491dd971 | 6,900 | py | Python | madpy/amplitude.py | seismomomo/madpy | ab2ce2a94e189e03fcbd2c79d578480c6a3a5025 | [
"MIT"
] | 1 | 2021-10-30T23:29:05.000Z | 2021-10-30T23:29:05.000Z | madpy/amplitude.py | seismomomo/madpy | ab2ce2a94e189e03fcbd2c79d578480c6a3a5025 | [
"MIT"
] | null | null | null | madpy/amplitude.py | seismomomo/madpy | ab2ce2a94e189e03fcbd2c79d578480c6a3a5025 | [
"MIT"
] | null | null | null | """
amplitude.py
measure the maximum peak-to-peak amplitude
"""
import obspy
import types
import numpy as np
import pandas as pd
import madpy.noise as n
from typing import Tuple
import madpy.checks as ch
import madpy.config as config
import matplotlib.pyplot as plt
import madpy.plotting.amp as plot
def measure_ampl... | 24.820144 | 76 | 0.605652 |
eb48ef960c6913ce20374139a49fb2f9e16ae84a | 2,450 | py | Python | accounts/forms.py | rijalanupraj/halkapan | a1b5964034a4086a890f839ba4d3d2885a54235f | [
"MIT"
] | null | null | null | accounts/forms.py | rijalanupraj/halkapan | a1b5964034a4086a890f839ba4d3d2885a54235f | [
"MIT"
] | null | null | null | accounts/forms.py | rijalanupraj/halkapan | a1b5964034a4086a890f839ba4d3d2885a54235f | [
"MIT"
] | null | null | null | # External Import
from django.contrib.auth import get_user_model
from django import forms
from django.contrib.auth.forms import UserCreationForm, AuthenticationForm
from django.core.exceptions import ValidationError
from django.contrib import messages
from django.urls import reverse
from django.contrib.sites.shortcuts ... | 38.888889 | 90 | 0.672245 |
eb4abce918b424db6423be51cf90882e0dc4decd | 4,037 | py | Python | umbra/common/protobuf/umbra_grpc.py | RafaelAPB/umbra | cf075bbe73e46540e9edee25f9ec3d0828620d5f | [
"Apache-2.0"
] | null | null | null | umbra/common/protobuf/umbra_grpc.py | RafaelAPB/umbra | cf075bbe73e46540e9edee25f9ec3d0828620d5f | [
"Apache-2.0"
] | null | null | null | umbra/common/protobuf/umbra_grpc.py | RafaelAPB/umbra | cf075bbe73e46540e9edee25f9ec3d0828620d5f | [
"Apache-2.0"
] | null | null | null | # Generated by the Protocol Buffers compiler. DO NOT EDIT!
# source: umbra.proto
# plugin: grpclib.plugin.main
import abc
import typing
import grpclib.const
import grpclib.client
if typing.TYPE_CHECKING:
import grpclib.server
import google.protobuf.struct_pb2
import google.protobuf.timestamp_pb2
from umbra.common... | 28.230769 | 111 | 0.600446 |
eb4b8f2ac102e07bdbb3c924d9cf3966e3910efa | 81 | py | Python | box/apps.py | mamalmaleki/maktab-community | 8ce25053ea0f6f0a6c082617c9ff306d1ada9707 | [
"MIT"
] | null | null | null | box/apps.py | mamalmaleki/maktab-community | 8ce25053ea0f6f0a6c082617c9ff306d1ada9707 | [
"MIT"
] | 18 | 2020-06-05T19:16:00.000Z | 2022-03-01T17:55:00.000Z | box/apps.py | mamalmaleki/maktab-community | 8ce25053ea0f6f0a6c082617c9ff306d1ada9707 | [
"MIT"
] | 1 | 2020-07-01T20:55:16.000Z | 2020-07-01T20:55:16.000Z | from django.apps import AppConfig
| 13.5 | 33 | 0.728395 |
eb4c504704f94ae13e9bfff2a279044f1e378b1f | 413 | py | Python | pythonforandroid/recipes/pydantic/__init__.py | syrykh/python-for-android | dea23e8c6d11cfad0554f3e846cbe245578781fd | [
"MIT"
] | 6,278 | 2015-01-02T16:34:05.000Z | 2022-03-31T10:24:45.000Z | pythonforandroid/recipes/pydantic/__init__.py | syrykh/python-for-android | dea23e8c6d11cfad0554f3e846cbe245578781fd | [
"MIT"
] | 1,877 | 2015-01-01T16:16:10.000Z | 2022-03-27T17:34:34.000Z | pythonforandroid/recipes/pydantic/__init__.py | syrykh/python-for-android | dea23e8c6d11cfad0554f3e846cbe245578781fd | [
"MIT"
] | 1,565 | 2015-01-02T19:35:37.000Z | 2022-03-31T15:37:06.000Z | from pythonforandroid.recipe import PythonRecipe
recipe = PydanticRecipe()
| 31.769231 | 115 | 0.733656 |
eb4e453e94b7d736a8fe2380efa67ea1aca5f592 | 847 | py | Python | p1_navigation/src/models/dueling_qnetwork.py | JeffersonH44/deep-reinforcement-nd | 90e403d7ba35dd001c0636695351accaa3034075 | [
"MIT"
] | null | null | null | p1_navigation/src/models/dueling_qnetwork.py | JeffersonH44/deep-reinforcement-nd | 90e403d7ba35dd001c0636695351accaa3034075 | [
"MIT"
] | null | null | null | p1_navigation/src/models/dueling_qnetwork.py | JeffersonH44/deep-reinforcement-nd | 90e403d7ba35dd001c0636695351accaa3034075 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
from src.utils import get_seed | 29.206897 | 73 | 0.625738 |
eb50c22d247814c193179eadb9b7153398a4d13c | 1,086 | py | Python | leetcode/2.Add_Two_Numbers/python/add_two_numbers_v2.py | realXuJiang/research_algorithms | 8f2876288cb607b9eddb2aa75f51a1d574b51ec4 | [
"Apache-2.0"
] | 1 | 2019-08-12T09:32:30.000Z | 2019-08-12T09:32:30.000Z | leetcode/2.Add_Two_Numbers/python/add_two_numbers_v2.py | realXuJiang/research_algorithms | 8f2876288cb607b9eddb2aa75f51a1d574b51ec4 | [
"Apache-2.0"
] | null | null | null | leetcode/2.Add_Two_Numbers/python/add_two_numbers_v2.py | realXuJiang/research_algorithms | 8f2876288cb607b9eddb2aa75f51a1d574b51ec4 | [
"Apache-2.0"
] | null | null | null |
l1 = createListNode(243)
l2 = createListNode(564)
print 'Input1:' + printLN(l1)
print 'Input2:' + printLN(l2)
res = addTwoNumbers(l1, l2)
print 'Output:' + printLN(res)
| 23.608696 | 44 | 0.483425 |
eb515a97fa3c4281e75e4d8a079a40de5158df74 | 2,367 | py | Python | gan/evaluation/gan.py | rharish101/mnist-gan | a64d7c3ba55bd4185771d54a6edb07d64ee8853f | [
"MIT"
] | 1 | 2020-05-24T03:46:04.000Z | 2020-05-24T03:46:04.000Z | gan/evaluation/gan.py | rharish101/mnist-gan | a64d7c3ba55bd4185771d54a6edb07d64ee8853f | [
"MIT"
] | 2 | 2020-11-22T11:29:06.000Z | 2022-02-09T23:43:38.000Z | gan/evaluation/gan.py | rharish101/mnist-gan | a64d7c3ba55bd4185771d54a6edb07d64ee8853f | [
"MIT"
] | null | null | null | """Class for generation using the GAN."""
from pathlib import Path
import tensorflow as tf
from tensorflow.keras import Model
from tqdm import tqdm
from ..utils import Config
| 33.814286 | 77 | 0.592311 |
eb519d6e95aedc19625a5475c8538a5f0dcd4657 | 220 | py | Python | alpyro_msgs/actionlib/testresult.py | rho2/alpyro_msgs | b5a680976c40c83df70d61bb2db1de32a1cde8d3 | [
"MIT"
] | 1 | 2020-12-13T13:07:10.000Z | 2020-12-13T13:07:10.000Z | alpyro_msgs/actionlib/testresult.py | rho2/alpyro_msgs | b5a680976c40c83df70d61bb2db1de32a1cde8d3 | [
"MIT"
] | null | null | null | alpyro_msgs/actionlib/testresult.py | rho2/alpyro_msgs | b5a680976c40c83df70d61bb2db1de32a1cde8d3 | [
"MIT"
] | null | null | null | from alpyro_msgs import RosMessage, int32
| 22 | 50 | 0.795455 |
eb52458be0e682e15bfc4c1ef483c0f58df930a3 | 430 | py | Python | datumaro/datumaro/cli/create_command.py | godlikejay/cvat | 50c40ba70dd8f890478068f29ce3de1057ec848c | [
"MIT"
] | 2 | 2020-01-10T08:50:50.000Z | 2020-01-23T06:11:11.000Z | datumaro/datumaro/cli/create_command.py | godlikejay/cvat | 50c40ba70dd8f890478068f29ce3de1057ec848c | [
"MIT"
] | 5 | 2022-02-13T20:46:25.000Z | 2022-02-27T10:34:53.000Z | datumaro/datumaro/cli/create_command.py | godlikejay/cvat | 50c40ba70dd8f890478068f29ce3de1057ec848c | [
"MIT"
] | 1 | 2020-01-24T15:52:00.000Z | 2020-01-24T15:52:00.000Z |
# Copyright (C) 2019 Intel Corporation
#
# SPDX-License-Identifier: MIT
import argparse
from . import project as project_module
| 19.545455 | 60 | 0.744186 |
eb5303b83f08bf3696133274f38a5290ed7baf70 | 981 | py | Python | aula3.py | rafaelmbsouza/python_twitch | d0d4edfee3ea7a2defc4592b2f5887b9be0dfba0 | [
"MIT"
] | null | null | null | aula3.py | rafaelmbsouza/python_twitch | d0d4edfee3ea7a2defc4592b2f5887b9be0dfba0 | [
"MIT"
] | null | null | null | aula3.py | rafaelmbsouza/python_twitch | d0d4edfee3ea7a2defc4592b2f5887b9be0dfba0 | [
"MIT"
] | null | null | null | #REQUESTS -> FAZER REQUISIES HTTP (URLLIB3)
#HTTP = Hypertext Transfer Protocol
#BEAUTIFULSOUP -> HTML ou XML -> Organiza-lo de maneira a ler no python
#PANDAS -> pegar esses objetos e tranformar em EXCEL
#USAR REQUESTS E ENTENDER COMO FUNCIONA.
import requests as req
url = 'https://g1.globo.com'
r = req.get(url)
... | 28.028571 | 71 | 0.681957 |
eb535ada305f4ae02bdd4867457e6dece4a9151e | 3,705 | py | Python | config/includes.chroot/usr/share/tkmenu/tekamenu/tools.py | ddarksmith/S0lar0S | b91971000c089f77d1ff76a00262252a65680e5b | [
"WTFPL"
] | null | null | null | config/includes.chroot/usr/share/tkmenu/tekamenu/tools.py | ddarksmith/S0lar0S | b91971000c089f77d1ff76a00262252a65680e5b | [
"WTFPL"
] | null | null | null | config/includes.chroot/usr/share/tkmenu/tekamenu/tools.py | ddarksmith/S0lar0S | b91971000c089f77d1ff76a00262252a65680e5b | [
"WTFPL"
] | null | null | null | #!/usr/bin/env python
# -*- coding:Utf-8 -*-
import sys
import os
from collections import OrderedDict
from time import time
if sys.version_info >= (3, 0):
import configparser
else:
import ConfigParser as configparser
from subprocess import Popen
from tekamenu.const import *
def read_config(config):
"""Pa... | 27.857143 | 98 | 0.59892 |
eb552cdb6bd1e3421a4d82f772f9b8d658c411e1 | 2,050 | py | Python | zonemanager/utils.py | justinkinney/zonemanager | b0c5e6c1ba96ed240aa956a28cd2fa4c72621ded | [
"MIT"
] | 1 | 2016-06-09T20:02:06.000Z | 2016-06-09T20:02:06.000Z | zonemanager/utils.py | justinkinney/zonemanager | b0c5e6c1ba96ed240aa956a28cd2fa4c72621ded | [
"MIT"
] | null | null | null | zonemanager/utils.py | justinkinney/zonemanager | b0c5e6c1ba96ed240aa956a28cd2fa4c72621ded | [
"MIT"
] | null | null | null | import ConfigParser
import logging
import os
import sys
import yaml
log = logging.getLogger()
def set_env_aws_creds(account='default'):
"""
Parse ~/.aws/credentials for credentials
Allow OS environment variables to override (AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY)
Exit script of neither can be ... | 36.607143 | 101 | 0.669268 |
eb5662511a4d1928b96bb4ed6759cfca593c540f | 930 | py | Python | setup.py | murillotadeo/discsocket | 63d71e7623cf364c19398f00305816623ebc4a41 | [
"MIT"
] | null | null | null | setup.py | murillotadeo/discsocket | 63d71e7623cf364c19398f00305816623ebc4a41 | [
"MIT"
] | null | null | null | setup.py | murillotadeo/discsocket | 63d71e7623cf364c19398f00305816623ebc4a41 | [
"MIT"
] | null | null | null | from setuptools import setup
import setuptools
readme = ''
with open('README.md') as f:
readme = f.read()
setup(
name="discsocket",
author="Tadeo Murillo",
url="https://github.com/murillotadeo/discsocket",
project_urls={
"Issue tracker": "https://github.com/murillotadeo/discsocket/issues"... | 29.0625 | 77 | 0.652688 |
eb566541f6de184d1ac1cf427e1c154f7fe641b8 | 1,067 | py | Python | setup.py | kain88-de/numkit | 31b948b5d6f9093fbb35db98496dd69046511afe | [
"BSD-3-Clause"
] | null | null | null | setup.py | kain88-de/numkit | 31b948b5d6f9093fbb35db98496dd69046511afe | [
"BSD-3-Clause"
] | null | null | null | setup.py | kain88-de/numkit | 31b948b5d6f9093fbb35db98496dd69046511afe | [
"BSD-3-Clause"
] | null | null | null | #! /usr/bin/python
"""Setuptools-based setup script for numkit.
For a basic installation just type the command::
python setup.py install
"""
from setuptools import setup, find_packages
setup(name='numkit',
version='1.1.0-dev',
description='numerical first aid kit',
author='Oliver Beckstein',
... | 29.638889 | 71 | 0.614808 |
eb56e5a79f206e8d2a288c073dcebabf004087f7 | 4,200 | py | Python | dpfinder/algorithms/algorithms.py | barryZZJ/dp-finder | ddf8e3589110b4b35920b437d605b45dd56291da | [
"MIT"
] | null | null | null | dpfinder/algorithms/algorithms.py | barryZZJ/dp-finder | ddf8e3589110b4b35920b437d605b45dd56291da | [
"MIT"
] | null | null | null | dpfinder/algorithms/algorithms.py | barryZZJ/dp-finder | ddf8e3589110b4b35920b437d605b45dd56291da | [
"MIT"
] | null | null | null | # ==BEGIN LICENSE==
#
# MIT License
#
# Copyright (c) 2018 SRI Lab, ETH Zurich
#
# 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 right... | 32.55814 | 100 | 0.739286 |
eb58292318b92d933a7b5900cc0d082100be1cdb | 44,215 | py | Python | Proj029Pipelines/PipelineMetaomics.py | CGATOxford/proj029 | f0a8ea63b4f086e673aa3bf8b7d3b9749261b525 | [
"BSD-3-Clause"
] | 3 | 2016-04-04T22:54:14.000Z | 2017-04-01T09:37:54.000Z | Proj029Pipelines/PipelineMetaomics.py | CGATOxford/proj029 | f0a8ea63b4f086e673aa3bf8b7d3b9749261b525 | [
"BSD-3-Clause"
] | null | null | null | Proj029Pipelines/PipelineMetaomics.py | CGATOxford/proj029 | f0a8ea63b4f086e673aa3bf8b7d3b9749261b525 | [
"BSD-3-Clause"
] | null | null | null | ####################################################
####################################################
# functions and classes used in conjunction with
# pipeline_metaomics.py
####################################################
####################################################
# import libraries
import sys
impo... | 39.690305 | 140 | 0.455728 |
eb586882225257b1dbaef8929cba4d578b66c4f0 | 148,793 | py | Python | src/dlg_windows.py | seung-lab/SBEMimage | 4f563c43350106a2e44dcbab26cb15a98a7d4216 | [
"MIT"
] | null | null | null | src/dlg_windows.py | seung-lab/SBEMimage | 4f563c43350106a2e44dcbab26cb15a98a7d4216 | [
"MIT"
] | null | null | null | src/dlg_windows.py | seung-lab/SBEMimage | 4f563c43350106a2e44dcbab26cb15a98a7d4216 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# ==============================================================================
# SBEMimage, ver. 2.0
# Acquisition control software for serial block-face electron microscopy
# (c) 2018-2019 Friedrich Miescher Institute for Biomedical Research, Basel.
# This software is licensed under ... | 44.535468 | 87 | 0.61181 |
eb5a9418501c2901672aa9f163fdc2b0ebe0e845 | 1,032 | py | Python | src/telliot_core/queries/snapshot.py | tellor-io/telliot-core | e2b6cb3486e1aa796bd4d14147bd18d300191492 | [
"MIT"
] | 9 | 2021-12-15T07:03:34.000Z | 2022-03-30T20:16:45.000Z | src/telliot_core/queries/snapshot.py | tellor-io/telliot-core | e2b6cb3486e1aa796bd4d14147bd18d300191492 | [
"MIT"
] | 76 | 2021-11-11T10:06:11.000Z | 2022-03-30T18:50:48.000Z | src/telliot_core/queries/snapshot.py | tellor-io/telliot-core | e2b6cb3486e1aa796bd4d14147bd18d300191492 | [
"MIT"
] | 7 | 2021-12-17T03:39:23.000Z | 2022-03-29T08:53:43.000Z | import logging
from dataclasses import dataclass
from telliot_core.dtypes.value_type import ValueType
from telliot_core.queries.abi_query import AbiQuery
logger = logging.getLogger(__name__)
| 28.666667 | 107 | 0.694767 |
eb5b86c0e05f68ab77e1e40a0f4e528c78afc55d | 10,844 | py | Python | src/data/label.py | nutcrtnk/PGRA | 4991f591ff7593a9149cc10a484682a834230979 | [
"MIT"
] | 3 | 2021-11-30T08:16:03.000Z | 2022-03-06T07:30:58.000Z | src/data/label.py | nutcrtnk/PGRA | 4991f591ff7593a9149cc10a484682a834230979 | [
"MIT"
] | null | null | null | src/data/label.py | nutcrtnk/PGRA | 4991f591ff7593a9149cc10a484682a834230979 | [
"MIT"
] | null | null | null | import random
from operator import itemgetter
import config
import numpy as np
import hashlib
from data.graph import Graph
from collections import Iterable
import copy
from inspect import signature
import networkx as nx
| 37.264605 | 112 | 0.581335 |
eb5d4dca8b23629a4ac420050579c19d35630257 | 8,352 | py | Python | ls/joyous/tests/test_weeks.py | tjwalch/ls.joyous | 0ee50d3af71c066bddb2310948b02f74b52ee253 | [
"BSD-3-Clause"
] | 72 | 2018-03-16T16:35:08.000Z | 2022-03-23T08:09:33.000Z | polrev/ls/joyous/tests/test_weeks.py | polrev-github/polrev-django | 99108ace1a5307b14c3eccb424a9f9616e8c02ae | [
"MIT"
] | 41 | 2018-03-25T20:36:52.000Z | 2022-03-10T08:59:27.000Z | polrev/ls/joyous/tests/test_weeks.py | polrev-github/polrev-django | 99108ace1a5307b14c3eccb424a9f9616e8c02ae | [
"MIT"
] | 28 | 2018-08-13T22:36:09.000Z | 2022-03-17T12:24:15.000Z | # ------------------------------------------------------------------------------
# Test Formatting weeks
# ------------------------------------------------------------------------------
import sys
import datetime as dt
from django.test import TestCase, override_settings
import ls.joyous.utils.weeks
from ls.joyous.utils... | 53.538462 | 91 | 0.617577 |
eb5d5b5951d8accdb340561d9f4b58a842e8098a | 586 | py | Python | godot-stex-to-png.py | audrey-dogman/godot-stex-to-png | 6402b042e0fecccd661e56bc46cef0f609c6ad77 | [
"MIT"
] | 2 | 2021-07-18T14:27:33.000Z | 2021-11-09T15:59:03.000Z | godot-stex-to-png.py | audrey-dogman/godot-stex-to-png | 6402b042e0fecccd661e56bc46cef0f609c6ad77 | [
"MIT"
] | null | null | null | godot-stex-to-png.py | audrey-dogman/godot-stex-to-png | 6402b042e0fecccd661e56bc46cef0f609c6ad77 | [
"MIT"
] | 1 | 2021-07-28T07:34:57.000Z | 2021-07-28T07:34:57.000Z | # godot-stex-to-png.py
# https://github.com/ClementineAccount/godot-stex-to-png
import sys
if len(sys.argv) > 1:
filename = sys.argv[1]
inputFile = open(filename, 'rb')
outputFile = open(filename + '-output.png', 'wb')
# 32 bits is based off the .stex header which are trimmed for png
inputFile.see... | 22.538462 | 69 | 0.616041 |
eb6129e8100344d2c4d59d1aeb8ace08bde583d7 | 462 | py | Python | mnistwebsite/models.py | 4322vipul/mnist_digit_classifier_website | 7086d9d144a757154e8332accf4efac65e3259e2 | [
"MIT"
] | 1 | 2021-04-18T15:23:23.000Z | 2021-04-18T15:23:23.000Z | mnistwebsite/models.py | 4322vipul/mnist_digit_classifier_website | 7086d9d144a757154e8332accf4efac65e3259e2 | [
"MIT"
] | null | null | null | mnistwebsite/models.py | 4322vipul/mnist_digit_classifier_website | 7086d9d144a757154e8332accf4efac65e3259e2 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
| 17.111111 | 49 | 0.658009 |
eb61429eb7e971ed958dd0c76cd24537219e13f7 | 3,889 | py | Python | utils/shell/pseudo_shell.py | adolabsnet/HatSploit | 0a08521b7623d4ef1aab8f887cd8a23f460d592c | [
"MIT"
] | 2 | 2021-03-20T05:16:03.000Z | 2021-08-11T16:40:04.000Z | utils/shell/pseudo_shell.py | Lencof/HatSploit | 0a08521b7623d4ef1aab8f887cd8a23f460d592c | [
"MIT"
] | null | null | null | utils/shell/pseudo_shell.py | Lencof/HatSploit | 0a08521b7623d4ef1aab8f887cd8a23f460d592c | [
"MIT"
] | 2 | 2021-03-20T05:16:00.000Z | 2021-08-23T18:20:03.000Z | #!/usr/bin/env python3
#
# MIT License
#
# Copyright (c) 2020-2021 EntySec
#
# 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... | 41.817204 | 102 | 0.65261 |
eb62fda76377eaf65d86d6b7b0a1b023fb5e44ae | 431 | py | Python | maskrcnn_benchmark/nas/rl/genotypes.py | DominickZhang/NAS-FCOS | 1f7281478430eaed028e2cc2dfa8be226c63939b | [
"BSD-2-Clause"
] | 187 | 2019-07-04T08:48:52.000Z | 2022-03-16T09:17:59.000Z | maskrcnn_benchmark/nas/rl/genotypes.py | DominickZhang/NAS-FCOS | 1f7281478430eaed028e2cc2dfa8be226c63939b | [
"BSD-2-Clause"
] | 10 | 2019-07-09T03:08:55.000Z | 2022-01-15T13:45:39.000Z | maskrcnn_benchmark/nas/rl/genotypes.py | DominickZhang/NAS-FCOS | 1f7281478430eaed028e2cc2dfa8be226c63939b | [
"BSD-2-Clause"
] | 35 | 2019-07-20T00:05:24.000Z | 2022-03-30T03:56:32.000Z | from collections import namedtuple
Genotype = namedtuple('Genotype', 'backbone rpn')
OP_NAMES = [
'sep_conv_3x3',
'sep_conv_3x3_dil3',
'sep_conv_5x5_dil6',
'skip_connect',
'def_conv_3x3',
]
AGG_NAMES = [
'psum',
'cat'
]
HEAD_OP_NAMES = [
'conv1x1',
'conv3x3',
'sep_conv_3x3',
... | 13.903226 | 49 | 0.610209 |
eb643adf0bc253ac26e0105118c9abc12bbb656a | 10,026 | py | Python | pkgcheck/tests/test_pkgcheck.py | pombredanne/github.com-FFY00-pkgcheck | 72e82bbdfd13c7f4350cf8307fe9fad1a3e5313c | [
"Apache-2.0"
] | 4 | 2020-06-08T21:35:29.000Z | 2020-06-09T02:01:54.000Z | pkgcheck/tests/test_pkgcheck.py | pombredanne/github.com-FFY00-pkgcheck | 72e82bbdfd13c7f4350cf8307fe9fad1a3e5313c | [
"Apache-2.0"
] | null | null | null | pkgcheck/tests/test_pkgcheck.py | pombredanne/github.com-FFY00-pkgcheck | 72e82bbdfd13c7f4350cf8307fe9fad1a3e5313c | [
"Apache-2.0"
] | null | null | null | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | 34.453608 | 75 | 0.654997 |
eb645e069f495029d61c904e21a7f489ff6dcdd7 | 7,610 | py | Python | tgcli/commands/get/app.py | frankfka/TigerGraphCLI | 47b78156c488eef69b5b28aa9bd2b81b3ee7ecab | [
"MIT"
] | 2 | 2020-09-08T19:41:09.000Z | 2021-04-28T02:49:51.000Z | tgcli/commands/get/app.py | frankfka/TigerGraphCLI | 47b78156c488eef69b5b28aa9bd2b81b3ee7ecab | [
"MIT"
] | null | null | null | tgcli/commands/get/app.py | frankfka/TigerGraphCLI | 47b78156c488eef69b5b28aa9bd2b81b3ee7ecab | [
"MIT"
] | null | null | null | from typing import List
import typer
from tgcli.commands.etc.help_text import GRAPH_ARG_HELP, CONFIG_ARG_HELP
from tgcli.commands.util import get_initialized_tg_connection, resolve_multiple_args, preprocess_list_query
from tgcli.util import cli
get_app = typer.Typer(help="Get resources from your TigerGraph server.")... | 47.861635 | 118 | 0.641787 |
eb6802390641aaf06fceb753f88bd100dfda7697 | 2,162 | py | Python | rally/plugins/openstack/scenarios/zaqar/utils.py | varuntiwari27/rally | 948fba0e8fe8214dd3716451d2a52e014a4115be | [
"Apache-2.0"
] | 1 | 2018-01-01T00:43:41.000Z | 2018-01-01T00:43:41.000Z | rally/plugins/openstack/scenarios/zaqar/utils.py | noah8713/rally-ovs | 2434787c2cf4ca267108966c4ddc55ded3c333d9 | [
"Apache-2.0"
] | 1 | 2020-07-14T11:29:31.000Z | 2020-07-14T11:29:31.000Z | rally/plugins/openstack/scenarios/zaqar/utils.py | noah8713/rally-ovs | 2434787c2cf4ca267108966c4ddc55ded3c333d9 | [
"Apache-2.0"
] | 1 | 2020-06-05T10:06:37.000Z | 2020-06-05T10:06:37.000Z | # Copyright (c) 2014 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | 34.31746 | 79 | 0.672525 |
eb68b8a77775f67caad79694156175f63fd2e0b0 | 5,602 | py | Python | ping_utility.py | yogeshsuryawanshi497/ApplicationStatusTracker | 2c1522d53b84677d9dd8bd3f635e45bc86d81f9b | [
"Apache-2.0"
] | null | null | null | ping_utility.py | yogeshsuryawanshi497/ApplicationStatusTracker | 2c1522d53b84677d9dd8bd3f635e45bc86d81f9b | [
"Apache-2.0"
] | null | null | null | ping_utility.py | yogeshsuryawanshi497/ApplicationStatusTracker | 2c1522d53b84677d9dd8bd3f635e45bc86d81f9b | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Script Name: ping_Utility.py
Path: \IPS_DecisionFabric\Exception Handling\
Description: This script is considered as a module for the Application level Exception handling in DF framework.
Author: Yogesh Suryawanshi
Version: 1.0
Revision History:
---------------------------------... | 41.496296 | 124 | 0.620136 |
eb6c6b65812954f620e852a7ab7b9ce069f38685 | 2,000 | py | Python | api/users/models.py | mcauto/japronto-example | 4683dcb1afdded4db86fa8db713289774b65d794 | [
"MIT"
] | 3 | 2018-10-21T13:47:28.000Z | 2020-01-24T19:46:03.000Z | api/users/models.py | mcauto/japronto-example | 4683dcb1afdded4db86fa8db713289774b65d794 | [
"MIT"
] | null | null | null | api/users/models.py | mcauto/japronto-example | 4683dcb1afdded4db86fa8db713289774b65d794 | [
"MIT"
] | null | null | null | # coding=utf-8
import datetime
from sqlalchemy import Column, Integer, String, DateTime
from Database import Base, Session
from werkzeug import generate_password_hash, check_password_hash
| 33.333333 | 114 | 0.5965 |
eb6d0eb419a5d2952ce72fb2728210efca01373f | 956 | py | Python | setup.py | breathe/NotebookScripter | ecdc9b0842e88179df76f96e4fbcf93032effaa5 | [
"MIT"
] | 23 | 2018-11-20T16:50:20.000Z | 2021-11-16T11:36:43.000Z | setup.py | breathe/NotebookScripter | ecdc9b0842e88179df76f96e4fbcf93032effaa5 | [
"MIT"
] | 5 | 2018-11-21T10:57:30.000Z | 2019-12-20T21:53:36.000Z | setup.py | breathe/NotebookScripter | ecdc9b0842e88179df76f96e4fbcf93032effaa5 | [
"MIT"
] | 1 | 2019-06-13T04:32:13.000Z | 2019-06-13T04:32:13.000Z | from setuptools import setup
setup(
name='NotebookScripter',
version='6.0.0',
packages=('NotebookScripter',),
url='https://github.com/breathe/NotebookScripter',
license='MIT',
author='N. Ben Cohen',
author_email='breathevalue@icloud.com',
install_requires=(
"ipython",
"n... | 32.965517 | 139 | 0.64749 |
eb6d6680420075147a2bff5551d9fc4baaa09515 | 664 | py | Python | settings.py | lmason98/PyGraph | 22d734cfd97333578c91ba4e331716df0aec668e | [
"MIT"
] | null | null | null | settings.py | lmason98/PyGraph | 22d734cfd97333578c91ba4e331716df0aec668e | [
"MIT"
] | null | null | null | settings.py | lmason98/PyGraph | 22d734cfd97333578c91ba4e331716df0aec668e | [
"MIT"
] | null | null | null | """
File: settings.py
Author: Luke Mason
Description: Main application development settings file
"""
SCREEN_WIDTH = 1920
SCREEN_HEIGHT = 1080
WIDTH = 800
HEIGHT = 900
PAD = 15
APP_NAME = 'PyGraph' # Str of app name for window title
DEBUG = 1 # Puts the app in debug mode (extra logging to console).
LOG = 1 # Puts... | 18.971429 | 79 | 0.644578 |
eb70ba677dc1dd7a466c342944b35d0477841536 | 3,244 | py | Python | thejoker/distributions.py | adrn/thejoker | e77182bdb368e20127a17cc76ba1083ab77746ea | [
"MIT"
] | 22 | 2016-09-05T00:01:14.000Z | 2021-05-14T19:28:23.000Z | thejoker/distributions.py | adrn/thejoker | e77182bdb368e20127a17cc76ba1083ab77746ea | [
"MIT"
] | 111 | 2016-09-04T18:21:00.000Z | 2022-03-13T06:38:27.000Z | thejoker/distributions.py | adrn/thejoker | e77182bdb368e20127a17cc76ba1083ab77746ea | [
"MIT"
] | 8 | 2016-09-04T17:12:34.000Z | 2022-02-18T13:12:09.000Z | # Third-party
import astropy.units as u
import numpy as np
import pymc3 as pm
from pymc3.distributions import generate_samples
import aesara_theano_fallback.tensor as tt
import exoplanet.units as xu
__all__ = ['UniformLog', 'FixedCompanionMass']
| 28.964286 | 80 | 0.589088 |
eb72965a0a45325849d4f2b7f020b22ca5abd6a7 | 1,369 | py | Python | pythonUtils/reptile/produce_name.py | MarcWong/matlabTools | 183b437707e2a9ddf7a8b5be0a4e874109fcfaa7 | [
"MIT"
] | null | null | null | pythonUtils/reptile/produce_name.py | MarcWong/matlabTools | 183b437707e2a9ddf7a8b5be0a4e874109fcfaa7 | [
"MIT"
] | null | null | null | pythonUtils/reptile/produce_name.py | MarcWong/matlabTools | 183b437707e2a9ddf7a8b5be0a4e874109fcfaa7 | [
"MIT"
] | null | null | null | #usage: python produce_name.py yourpath file_type
#coding=utf8
import sys
reload(sys)
sys.setdefaultencoding('utf8')
import os
import shutil
if __name__ == '__main__':
fp_write = open('index.txt','w')
file_path = sys.argv[1]
file_type = sys.argv[2]
dst_path = './'
departments = os.listdir(file_pat... | 31.837209 | 79 | 0.582177 |
eb7323f677eda55adefa0a933f193c6e45418392 | 491 | py | Python | ExerciciosPythonMundo2/Aula12/Ex038.py | JamesonSantos/Curso-Python-Exercicios-Praticados | 1fc1618ccf8692a552bac408e842dea8328e4e1a | [
"MIT"
] | null | null | null | ExerciciosPythonMundo2/Aula12/Ex038.py | JamesonSantos/Curso-Python-Exercicios-Praticados | 1fc1618ccf8692a552bac408e842dea8328e4e1a | [
"MIT"
] | null | null | null | ExerciciosPythonMundo2/Aula12/Ex038.py | JamesonSantos/Curso-Python-Exercicios-Praticados | 1fc1618ccf8692a552bac408e842dea8328e4e1a | [
"MIT"
] | null | null | null | '''Escreva um programa que leia dois numeros inteiros e compare-os, mostrando na tela uma
mensagem:
-0 primeiro valor maior.
-0 segundo valor maior.
-No existe valor maior, os dois so iguais.'''
numero1 = int(input('Primeiro nmero: '))
numero2 = int(input('Segundo nmero: '))
if numero1 > numero2:
print('O primeir... | 30.6875 | 89 | 0.710794 |
eb73a3b7734e41fc3fe55a18a60b1a2823f19e7c | 2,649 | py | Python | demo/cheeseboard/app.py | dw/acid | 3aabb3940f23c052ed7a009cff5d84cc50b099fb | [
"Apache-2.0"
] | 15 | 2015-09-24T03:57:49.000Z | 2020-08-25T22:44:20.000Z | demo/cheeseboard/app.py | dw/acid | 3aabb3940f23c052ed7a009cff5d84cc50b099fb | [
"Apache-2.0"
] | 2 | 2015-06-21T02:06:20.000Z | 2019-11-14T14:02:39.000Z | demo/cheeseboard/app.py | dw/acid | 3aabb3940f23c052ed7a009cff5d84cc50b099fb | [
"Apache-2.0"
] | 1 | 2019-09-11T03:13:52.000Z | 2019-09-11T03:13:52.000Z | #
# Copyright 2013, David Wilson.
#
# 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 writi... | 27.309278 | 74 | 0.659117 |
eb7438a64c922f1691f5f7bc0e7e1d03e74aaef5 | 1,705 | py | Python | tests/pricehunt_test.py | adipid/pricehunt-py | 095e29f14a4761644b5e35df6c7ca4416eb62331 | [
"MIT"
] | null | null | null | tests/pricehunt_test.py | adipid/pricehunt-py | 095e29f14a4761644b5e35df6c7ca4416eb62331 | [
"MIT"
] | 10 | 2020-01-15T09:29:11.000Z | 2020-05-22T16:40:27.000Z | tests/pricehunt_test.py | adipid/pricehunt-py | 095e29f14a4761644b5e35df6c7ca4416eb62331 | [
"MIT"
] | null | null | null | import json
import os
import unittest
import price_checker
from product import Product
cwd = os.path.dirname(os.path.realpath(__file__))
products_data = load_json(r"" + cwd + "/test-products.json")
products_list = []
if __name__ == '__main__':
unittest.main()
| 27.063492 | 101 | 0.693842 |
eb7571c3591cd8e6a1685d414571fed44ae9e2c9 | 1,194 | py | Python | SuperSafety/Utils/utils.py | BDEvan5/SuperSafety | 73edd8d8b191e291a6f369043698b8763887a1f7 | [
"Apache-2.0"
] | null | null | null | SuperSafety/Utils/utils.py | BDEvan5/SuperSafety | 73edd8d8b191e291a6f369043698b8763887a1f7 | [
"Apache-2.0"
] | null | null | null | SuperSafety/Utils/utils.py | BDEvan5/SuperSafety | 73edd8d8b191e291a6f369043698b8763887a1f7 | [
"Apache-2.0"
] | null | null | null | import yaml
import csv
import os
from argparse import Namespace
import shutil
import numpy as np
from numba import njit
# Admin functions
| 22.961538 | 94 | 0.643216 |
eb76cd449461ae9ddc8f2b3ded2d949a0896df2d | 107 | py | Python | tests/test_json_schema.py | riddopic/opta | 25fa6435fdc7e2ea9c7963ed74100fffb0743063 | [
"Apache-2.0"
] | 595 | 2021-05-21T22:30:48.000Z | 2022-03-31T15:40:25.000Z | tests/test_json_schema.py | riddopic/opta | 25fa6435fdc7e2ea9c7963ed74100fffb0743063 | [
"Apache-2.0"
] | 463 | 2021-05-24T21:32:59.000Z | 2022-03-31T17:12:33.000Z | tests/test_json_schema.py | riddopic/opta | 25fa6435fdc7e2ea9c7963ed74100fffb0743063 | [
"Apache-2.0"
] | 29 | 2021-05-21T22:27:52.000Z | 2022-03-28T16:43:45.000Z | from opta.json_schema import check_schemas
| 17.833333 | 42 | 0.785047 |
eb76ebb737636dcde23367092e160cf174fb33db | 1,090 | py | Python | server.py | Arrisio/dvmn-async-06-filter-news | 4dbac26974f95dc427fb6e44370500edd844cf42 | [
"MIT"
] | null | null | null | server.py | Arrisio/dvmn-async-06-filter-news | 4dbac26974f95dc427fb6e44370500edd844cf42 | [
"MIT"
] | null | null | null | server.py | Arrisio/dvmn-async-06-filter-news | 4dbac26974f95dc427fb6e44370500edd844cf42 | [
"MIT"
] | null | null | null | import json
from dataclasses import asdict
from aiohttp import web
from process_articles import process_articles_from_urls
from settings import MAX_URL_PER_REQUEST
routes = web.RouteTableDef()
if __name__ == "__main__":
main()
| 23.695652 | 93 | 0.641284 |
eb795e6d335d4c9699b49a6938073843fbc850ff | 980 | py | Python | automation/delete_duplicate_lines.py | elyor0529/Awesome-Full-Stack-Web-Developer | d7c8a48ba809832270f2061f6872df7b8550699d | [
"MIT"
] | 12 | 2017-11-15T12:48:06.000Z | 2021-12-28T02:28:24.000Z | automation/delete_duplicate_lines.py | Dmdv/Awesome-Full-Stack-Web-Developer | d7c8a48ba809832270f2061f6872df7b8550699d | [
"MIT"
] | null | null | null | automation/delete_duplicate_lines.py | Dmdv/Awesome-Full-Stack-Web-Developer | d7c8a48ba809832270f2061f6872df7b8550699d | [
"MIT"
] | 7 | 2017-07-14T15:38:32.000Z | 2022-03-25T19:53:08.000Z | # @Author: Anas Aboureada <AnasAboureada>
# @Date: Thu, 6th Oct 2016, T 10:38 +02:00
# @Email: me@anasaboureada.com
# @Project: awesome-full-stack-web-developer
# @Filename: delete_duplicate_lines.py
# @Last modified by: AnasAboureada
# @Last modified time: Sat, 11th Mar 2017, T 14:26 +01:00
# @License: MIT Licens... | 26.486486 | 76 | 0.679592 |
eb7c446d37d14961f6d6144bbaa1f50774431c31 | 4,336 | py | Python | class_lib/solid_objects.py | Tomas-Tamantini/py-cgi | 177930da87aaac721e1294211aa291b11e156ee8 | [
"MIT"
] | null | null | null | class_lib/solid_objects.py | Tomas-Tamantini/py-cgi | 177930da87aaac721e1294211aa291b11e156ee8 | [
"MIT"
] | null | null | null | class_lib/solid_objects.py | Tomas-Tamantini/py-cgi | 177930da87aaac721e1294211aa291b11e156ee8 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from class_lib.color import *
from math import log, exp
| 47.130435 | 131 | 0.721402 |
eb7ce2e0e0ccae64594656f88ac709f3c1f99613 | 13,011 | py | Python | aadcUser/frAIburg_ThriftFacenet/python/gen-py/ExtIf/ttypes.py | PhilJd/frAIburg | 7585999953486bceb945f1eb7a96cbe94ea72186 | [
"BSD-3-Clause"
] | 10 | 2017-11-21T09:34:36.000Z | 2021-07-06T21:15:28.000Z | aadcUser/frAIburg_ThriftFacenet/python/gen-py/ExtIf/ttypes.py | PhilJd/frAIburg | 7585999953486bceb945f1eb7a96cbe94ea72186 | [
"BSD-3-Clause"
] | null | null | null | aadcUser/frAIburg_ThriftFacenet/python/gen-py/ExtIf/ttypes.py | PhilJd/frAIburg | 7585999953486bceb945f1eb7a96cbe94ea72186 | [
"BSD-3-Clause"
] | null | null | null | #
# Autogenerated by Thrift Compiler (0.9.1)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py
#
from thrift.Thrift import TType, TMessageType, TException, TApplicationException
from thrift.transport import TTransport
from thrift.protocol import TBinaryProtocol, TProtocol
tr... | 31.503632 | 188 | 0.648067 |
eb7ea27d449cd305cfd059a8b717ab286d3a4004 | 1,005 | py | Python | hwtHls/netlist/dumpStreamNodes.py | Nic30/hwtHls | 1fac6ed128318e698d51e15e9871249ddf243e1c | [
"MIT"
] | 8 | 2018-09-25T03:28:11.000Z | 2021-12-15T07:44:38.000Z | hwtHls/netlist/dumpStreamNodes.py | Nic30/hwtHls | 1fac6ed128318e698d51e15e9871249ddf243e1c | [
"MIT"
] | 1 | 2020-12-21T10:56:44.000Z | 2020-12-21T10:56:44.000Z | hwtHls/netlist/dumpStreamNodes.py | Nic30/hwtHls | 1fac6ed128318e698d51e15e9871249ddf243e1c | [
"MIT"
] | 2 | 2018-09-25T03:28:18.000Z | 2021-12-15T10:28:35.000Z | from io import StringIO
from hwtHls.netlist.transformations.rtlNetlistPass import RtlNetlistPass
from hwtHls.allocator.allocator import ConnectionsOfStage
| 33.5 | 77 | 0.59403 |
eb8088f88d5e27a4d8e7e996d5f43aa382b4301e | 30 | py | Python | tool/pcdet/version.py | jcuic5/CUDA-PointPillars | 3e1959448366c273914ec5024db39ed4e8c8dcdd | [
"Apache-2.0"
] | 1 | 2021-12-29T00:04:53.000Z | 2021-12-29T00:04:53.000Z | tool/pcdet/version.py | jcuic5/CUDA-PointPillars | 3e1959448366c273914ec5024db39ed4e8c8dcdd | [
"Apache-2.0"
] | null | null | null | tool/pcdet/version.py | jcuic5/CUDA-PointPillars | 3e1959448366c273914ec5024db39ed4e8c8dcdd | [
"Apache-2.0"
] | 1 | 2022-03-18T01:12:24.000Z | 2022-03-18T01:12:24.000Z | __version__ = "0.3.0+d563e17"
| 15 | 29 | 0.7 |
eb80f35fa4930ec027c824efa7f754f7ff93b76c | 251 | py | Python | m2py/thermo/__init__.py | caiorss/m2py | 4a8f754f04adb151b1967fe13b8f80b4ec169560 | [
"BSD-3-Clause"
] | 13 | 2016-12-10T22:03:18.000Z | 2021-11-27T11:55:41.000Z | m2py/thermo/__init__.py | caiorss/m2py | 4a8f754f04adb151b1967fe13b8f80b4ec169560 | [
"BSD-3-Clause"
] | null | null | null | m2py/thermo/__init__.py | caiorss/m2py | 4a8f754f04adb151b1967fe13b8f80b4ec169560 | [
"BSD-3-Clause"
] | 3 | 2017-04-02T00:21:24.000Z | 2021-08-19T14:11:23.000Z | """
Thermodynamic function collection
* Steam tables - module steam
"""
import os
import sys
this = os.path.dirname(os.path.abspath(__file__))
path_dir = os.path.join(this, "..")
sys.path.append(path_dir)
from . import xsteam
from . import gas | 16.733333 | 49 | 0.717131 |
eb810eda66dfd5826e00bd0fb520ef31b3da6623 | 7,638 | py | Python | images/monitor1_cron/src/main.py | diegofps/ngd_docker_images | 859b64186ee7d5aacee7f51c835f27995390c005 | [
"MIT"
] | null | null | null | images/monitor1_cron/src/main.py | diegofps/ngd_docker_images | 859b64186ee7d5aacee7f51c835f27995390c005 | [
"MIT"
] | null | null | null | images/monitor1_cron/src/main.py | diegofps/ngd_docker_images | 859b64186ee7d5aacee7f51c835f27995390c005 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from parquet_digester import ParquetFileDigester, ParquetFaceDigester, ParquetLicensePlateDigester
from csv_digester import CSVFileDigester, CSVFaceDigester, CSVLicensePlateDigester
from pymongo import MongoClient, ASCENDING, DESCENDING
import datetime
import time
import json
import pika
import... | 31.825 | 99 | 0.530505 |
eb8212c1aa2dd7f6bd43df01961f810411d4ee38 | 2,996 | py | Python | pandas_excel_limitedrows/main.py | ibolorino/pandas-excel-limitedrows | e06ddc9dbc992d1945b6a8e61ed48c3116b2a143 | [
"MIT"
] | 5 | 2021-07-29T20:11:23.000Z | 2022-01-12T18:30:48.000Z | pandas_excel_limitedrows/main.py | ibolorino/pandas-excel-limitedrows | e06ddc9dbc992d1945b6a8e61ed48c3116b2a143 | [
"MIT"
] | null | null | null | pandas_excel_limitedrows/main.py | ibolorino/pandas-excel-limitedrows | e06ddc9dbc992d1945b6a8e61ed48c3116b2a143 | [
"MIT"
] | null | null | null |
from pandas import ExcelFile
from pandas._typing import StorageOptions
from pandas_excel_limitedrows.engines._openpyxl import OpenpyxlLimitedReader
from pandas_excel_limitedrows.engines._pyxlsb import PyxlsbLimitedReader
from pandas_excel_limitedrows.engines._xlrd import XlrdLimitedReader
# TODO: Implementar parmetro... | 29.087379 | 116 | 0.637183 |
eb843aebbde5dc8f7ba55b197e4bb3864b54da31 | 15,010 | py | Python | fireant/tests/slicer/mocks.py | vladaspasic/fireant | 2dbae6a97a927ef62fdcd5f37fcb51a7d6d55334 | [
"Apache-2.0"
] | null | null | null | fireant/tests/slicer/mocks.py | vladaspasic/fireant | 2dbae6a97a927ef62fdcd5f37fcb51a7d6d55334 | [
"Apache-2.0"
] | null | null | null | fireant/tests/slicer/mocks.py | vladaspasic/fireant | 2dbae6a97a927ef62fdcd5f37fcb51a7d6d55334 | [
"Apache-2.0"
] | null | null | null | from collections import (
OrderedDict,
)
from unittest.mock import Mock
import pandas as pd
from datetime import (
datetime,
)
from fireant import *
from fireant.slicer.references import ReferenceType
from fireant.slicer.totals import get_totals_marker_for_dtype
from fireant.utils import (
format_dimensio... | 35.400943 | 120 | 0.552498 |
eb8727e8706f77311f8c86ae0f05d2fe84f57d41 | 2,337 | py | Python | app/datascience/api/etl.py | PlatziMasterSound/MasterSound-DataScience | 34bfb929c1f8b52b78270fd72e70a19d61a84d3d | [
"MIT"
] | null | null | null | app/datascience/api/etl.py | PlatziMasterSound/MasterSound-DataScience | 34bfb929c1f8b52b78270fd72e70a19d61a84d3d | [
"MIT"
] | null | null | null | app/datascience/api/etl.py | PlatziMasterSound/MasterSound-DataScience | 34bfb929c1f8b52b78270fd72e70a19d61a84d3d | [
"MIT"
] | null | null | null | import requests
from datetime import timedelta
from app.spotify_api import get_auth_header
| 35.409091 | 104 | 0.481386 |
eb873ee05f656225ec226d30c33f22616f66c979 | 2,924 | py | Python | sites/mysites/models.py | cmwaura/Final_Red_Scrap | 6b1b78de7d1129cda787e9f4688ddd409af39eb5 | [
"MIT"
] | null | null | null | sites/mysites/models.py | cmwaura/Final_Red_Scrap | 6b1b78de7d1129cda787e9f4688ddd409af39eb5 | [
"MIT"
] | null | null | null | sites/mysites/models.py | cmwaura/Final_Red_Scrap | 6b1b78de7d1129cda787e9f4688ddd409af39eb5 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django.db import models
from django.db.models.signals import pre_delete
from scrapy_djangoitem import DjangoItem
from dynamic_scraper.models import Scraper, SchedulerRuntime
from django.dispatch import receiver
# Create your models here.
pre_delete.connect(pre_delet... | 38.473684 | 131 | 0.793434 |
eb87b1ec2a94ebce631b7f6b47c18eb8a3c0f679 | 4,425 | py | Python | coreUI/image_description_dialog.py | HoldenB/dejavu-ir | 2a858a0d194cf8320ae5151d120638d29f08fbe0 | [
"MIT"
] | 1 | 2019-07-16T03:11:43.000Z | 2019-07-16T03:11:43.000Z | coreUI/image_description_dialog.py | prateekgurnani10/Image_recognition | b036bbed4408fb0439bd86d7237c9e5d116d107a | [
"MIT"
] | null | null | null | coreUI/image_description_dialog.py | prateekgurnani10/Image_recognition | b036bbed4408fb0439bd86d7237c9e5d116d107a | [
"MIT"
] | null | null | null | import cv2
import numpy as np
from PyQt5.QtGui import QIntValidator
from PyQt5.QtWidgets import QDialog
from PyQt5.uic import loadUi
from utils import processing_utils as utils
IMAGE_DESCRIPT_DIALOG_UI = 'coreUI/image_description_dialog.ui'
| 33.270677 | 86 | 0.631186 |
eb884854f8edbc60656cfd37b83767e7aec12f2a | 7,123 | py | Python | tests/boardfarm_plugins/boardfarm_prplmesh/tests/nbapi_bss.py | SWRT-dev/easymesh | 12d902edde77599e074c0535f7256499b08f7494 | [
"BSD-3-Clause",
"BSD-2-Clause-Patent",
"MIT"
] | null | null | null | tests/boardfarm_plugins/boardfarm_prplmesh/tests/nbapi_bss.py | SWRT-dev/easymesh | 12d902edde77599e074c0535f7256499b08f7494 | [
"BSD-3-Clause",
"BSD-2-Clause-Patent",
"MIT"
] | null | null | null | tests/boardfarm_plugins/boardfarm_prplmesh/tests/nbapi_bss.py | SWRT-dev/easymesh | 12d902edde77599e074c0535f7256499b08f7494 | [
"BSD-3-Clause",
"BSD-2-Clause-Patent",
"MIT"
] | null | null | null |
# SPDX-License-Identifier: BSD-2-Clause-Patent
# SPDX-FileCopyrightText: 2021 the prplMesh contributors (see AUTHORS.md)
# This code is subject to the terms of the BSD+Patent license.
# See LICENSE file for more details.
from .prplmesh_base_test import PrplMeshBaseTest
from boardfarm.exceptions import SkipTest
from o... | 51.992701 | 98 | 0.623192 |
eb899416ce1493419a9c025cc24c92306ff25556 | 671 | py | Python | basisgen/containers.py | jccriado/basisgen | 9d9f31bf9182915862d3c677f35b668fd3fd7184 | [
"MIT"
] | 7 | 2019-01-14T13:20:16.000Z | 2021-09-09T03:12:48.000Z | basisgen/containers.py | jccriado/basisgen | 9d9f31bf9182915862d3c677f35b668fd3fd7184 | [
"MIT"
] | null | null | null | basisgen/containers.py | jccriado/basisgen | 9d9f31bf9182915862d3c677f35b668fd3fd7184 | [
"MIT"
] | 3 | 2020-09-10T03:43:27.000Z | 2022-02-15T15:11:10.000Z | import collections
| 24.851852 | 67 | 0.636364 |
eb89ef418bbb83aea69f02373ff5948c166278c0 | 6,180 | py | Python | text_detector_craft/text_detector_wrapper.py | sandro-felicioni/CRAFT-pytorch | cf4928928abcc43abbf9a62f10050204d9a9d184 | [
"MIT"
] | null | null | null | text_detector_craft/text_detector_wrapper.py | sandro-felicioni/CRAFT-pytorch | cf4928928abcc43abbf9a62f10050204d9a9d184 | [
"MIT"
] | null | null | null | text_detector_craft/text_detector_wrapper.py | sandro-felicioni/CRAFT-pytorch | cf4928928abcc43abbf9a62f10050204d9a9d184 | [
"MIT"
] | null | null | null | """
Copyright (c) 2019-present NAVER Corp.
MIT License
"""
# -*- coding: utf-8 -*-
import sys
import os
import time
import argparse
import torch
import torch.nn as nn
import torch.backends.cudnn as cudnn
from torch.autograd import Variable
from PIL import Image
import cv2
from skimage import io
import numpy as np
... | 39.615385 | 187 | 0.647411 |
eb8ab72d5b07408e5fd580ca815c4a2e897858db | 2,723 | py | Python | tf-import-examples/src/main/resources/Imdb/imdb_tf.py | shiv4nsh/dl4j-examples | 9f97406c7b4f5a236a68b2d8bdefcf5bf090867e | [
"Apache-2.0"
] | 2 | 2019-02-22T01:56:41.000Z | 2019-08-30T04:28:52.000Z | tf-import-examples/src/main/resources/Imdb/imdb_tf.py | renespeck/dl4j-examples | a385303090132c2bfd5b4343c0df8c88b445ff95 | [
"Apache-2.0"
] | 1 | 2019-01-11T02:43:23.000Z | 2019-01-11T02:43:23.000Z | tf-import-examples/src/main/resources/Imdb/imdb_tf.py | renespeck/dl4j-examples | a385303090132c2bfd5b4343c0df8c88b445ff95 | [
"Apache-2.0"
] | 1 | 2018-10-29T08:40:17.000Z | 2018-10-29T08:40:17.000Z | import tensorflow as tf
from tensorflow import keras
import numpy as np
imdb = keras.datasets.imdb
(train_data, train_labels), (test_data, test_labels) = imdb.load_data(num_words=10000)
# A dictionary mapping words to an integer index
word_index = imdb.get_word_index()
# The first indices are reserved
word_index =... | 31.298851 | 120 | 0.587587 |
eb8b1a7716dbcc642fea899106feb3ac86d6cd27 | 194 | py | Python | src/__init__.py | ukc-co663/dependency-solver-2019-ds576 | a4b029ff53d87ee5e0f58f3f8f431b48410d2de0 | [
"MIT"
] | 1 | 2019-03-05T15:15:11.000Z | 2019-03-05T15:15:11.000Z | src/__init__.py | ukc-co663/dependency-solver-2019-ds576 | a4b029ff53d87ee5e0f58f3f8f431b48410d2de0 | [
"MIT"
] | null | null | null | src/__init__.py | ukc-co663/dependency-solver-2019-ds576 | a4b029ff53d87ee5e0f58f3f8f431b48410d2de0 | [
"MIT"
] | null | null | null | __all__ = [
'cyclic',
'dep_expander',
'dep_manager',
'logger',
'package_filter',
'package',
'parse_input',
'sat_solver_satispy',
'topo_packages',
'util'
] | 16.166667 | 25 | 0.561856 |
eb8b58946c79e1e6114e3885fd5783239dfde293 | 1,979 | py | Python | tags-to-csv.py | just-trees/ec2-tags-to-csv | c0f1db7087b07282390abc9725868bf03ed7f20b | [
"MIT"
] | 9 | 2016-08-24T13:22:52.000Z | 2021-04-26T22:31:36.000Z | tags-to-csv.py | just-trees/ec2-tags-to-csv | c0f1db7087b07282390abc9725868bf03ed7f20b | [
"MIT"
] | null | null | null | tags-to-csv.py | just-trees/ec2-tags-to-csv | c0f1db7087b07282390abc9725868bf03ed7f20b | [
"MIT"
] | 7 | 2016-08-24T06:16:21.000Z | 2021-04-26T22:31:26.000Z | #!/usr/bin/env python
import boto3
import botocore
import argparse
import csv
# parse command line argumetns
#
# Main
#
if __name__ == "__main__":
main()
| 28.271429 | 150 | 0.618494 |