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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
61a97b1267f108543615dbe34e597a0abe6754f0 | 672 | py | Python | scripts/energy.py | rinku-mishra/PPDyn | b9e255e673998b9dc9f9753efa44c0c036020bf4 | [
"MIT"
] | 2 | 2021-03-20T23:15:42.000Z | 2021-04-30T14:46:45.000Z | scripts/energy.py | rinku-mishra/PPDyn | b9e255e673998b9dc9f9753efa44c0c036020bf4 | [
"MIT"
] | 20 | 2021-03-25T10:59:29.000Z | 2021-06-15T21:46:09.000Z | scripts/energy.py | rinku-mishra/PPDyn | b9e255e673998b9dc9f9753efa44c0c036020bf4 | [
"MIT"
] | 2 | 2021-03-21T12:20:43.000Z | 2021-06-14T11:11:59.000Z | #!/usr/bin/env python3
import numpy as np
import h5py
import matplotlib.pyplot as plt
# import plotly.graph_objects as go
#========= Configuration ===========
DIR ="../data"
file_name = "particle"#"rhoNeutral" #"P"
h5 = h5py.File('../data/'+file_name+'.hdf5','r')
Lx = h5.attrs["Lx"]
Ly = h5.attrs["Ly"]
Lz = h5.at... | 16.390244 | 57 | 0.620536 |
61a99ae0d6b78d1440e41c906d9b4fb49d1d3957 | 882 | py | Python | webvulnscan/request.py | hhucn/webvulnscan | efb812fd5483157528f37794acecafa35ed0d878 | [
"MIT"
] | 40 | 2015-01-15T14:52:51.000Z | 2022-03-25T08:52:48.000Z | webvulnscan/request.py | RaviRaaja/webvulnscan | efb812fd5483157528f37794acecafa35ed0d878 | [
"MIT"
] | 1 | 2016-07-21T09:51:15.000Z | 2016-10-02T17:45:37.000Z | webvulnscan/request.py | RaviRaaja/webvulnscan | efb812fd5483157528f37794acecafa35ed0d878 | [
"MIT"
] | 22 | 2015-01-23T04:21:21.000Z | 2021-08-22T03:36:21.000Z | import copy
import sys
from . import compat
from .compat import urlencode, parse_qs
| 27.5625 | 60 | 0.557823 |
61aa135945511486eea03b3338aef406ccf3474a | 1,123 | py | Python | api/api.py | mshen63/DevUp | b0e0d9a4a442cd5b51fb60823ed0a0837c440442 | [
"MIT"
] | 2 | 2022-02-13T17:02:05.000Z | 2022-03-01T10:30:02.000Z | api/api.py | mshen63/DevUp | b0e0d9a4a442cd5b51fb60823ed0a0837c440442 | [
"MIT"
] | 62 | 2021-08-03T17:53:17.000Z | 2021-08-31T15:58:24.000Z | api/api.py | mshen63/DevUp | b0e0d9a4a442cd5b51fb60823ed0a0837c440442 | [
"MIT"
] | 4 | 2021-08-04T15:11:06.000Z | 2021-08-29T19:58:42.000Z | import os
from flask import Flask
from dotenv import load_dotenv
from flask_cors import CORS
from flask_mail import Mail
# Database and endpoints
from flask_migrate import Migrate
from models.models import db
from endpoints.exportEndpoints import exportEndpoints
load_dotenv()
app = Flask(__name__, static_folder="../b... | 22.019608 | 73 | 0.737311 |
61ad6e3acd78f945d9279a347fd33983cfd3d024 | 5,812 | py | Python | core/run.py | mofengboy/Chain-of-all-beings | b7f9750391a702b83728118f5db533ecb4d38bf0 | [
"Apache-2.0"
] | 2 | 2022-03-26T15:20:40.000Z | 2022-03-26T15:24:02.000Z | core/run.py | mofengboy/Chain-of-all-beings | b7f9750391a702b83728118f5db533ecb4d38bf0 | [
"Apache-2.0"
] | null | null | null | core/run.py | mofengboy/Chain-of-all-beings | b7f9750391a702b83728118f5db533ecb4d38bf0 | [
"Apache-2.0"
] | 1 | 2022-03-26T15:20:45.000Z | 2022-03-26T15:20:45.000Z | import getopt
import sys
import os
import logging.config
import time
import yaml
sys.path.append("../")
sys.path.append(os.path.abspath("."))
from core.app import APP
from core.utils.ciphersuites import CipherSuites
from core.utils.system_time import STime
from core.config.cycle_Info import ElectionPeriodValue
if ... | 31.759563 | 102 | 0.520303 |
61af5ec45b177f6c19b848d840e3989ad1c6c928 | 3,274 | py | Python | main.py | josehenriqueroveda/spraying-API | dffa2434b19ea75a372dedd7f90a88857b33a726 | [
"MIT"
] | null | null | null | main.py | josehenriqueroveda/spraying-API | dffa2434b19ea75a372dedd7f90a88857b33a726 | [
"MIT"
] | null | null | null | main.py | josehenriqueroveda/spraying-API | dffa2434b19ea75a372dedd7f90a88857b33a726 | [
"MIT"
] | null | null | null | from fastapi import FastAPI
from starlette.responses import RedirectResponse
from ratelimit import limits
import sys
import uvicorn
import requests
import json
import config
ONE_MINUTE = 60
app = FastAPI(title='Spraying conditions API',
description='API for real-time analysis of climatic conditions gene... | 46.112676 | 160 | 0.624007 |
61b0a336f45b9e9a987dc57de808aa5bdd651e6a | 4,519 | py | Python | task3_word2vec_lstm.py | tomelf/cnit-623 | edf25f0b216b2480f7b651d3b94c1377dff721c0 | [
"MIT"
] | 4 | 2020-08-28T21:33:48.000Z | 2021-01-16T22:43:36.000Z | task3_word2vec_lstm.py | tomelf/cnit-623 | edf25f0b216b2480f7b651d3b94c1377dff721c0 | [
"MIT"
] | null | null | null | task3_word2vec_lstm.py | tomelf/cnit-623 | edf25f0b216b2480f7b651d3b94c1377dff721c0 | [
"MIT"
] | 4 | 2021-01-16T22:42:52.000Z | 2021-01-16T22:43:45.000Z | import data_loader
import numpy as np
import pandas as pd
import pickle
import os
import nltk
import re
import timeit
from torch.autograd import Variable
import torch
from sklearn import preprocessing, svm
from sklearn.metrics import roc_auc_score, accuracy_score, classification_report
from sklearn.model_selection im... | 43.451923 | 132 | 0.623811 |
61b0ba8f2fe1cfda56083280555e02a787f5271a | 344 | py | Python | setup.py | trsav/romodel | b9e94edb0eeb89fe75be24e1eb303a077c02f58e | [
"MIT"
] | 27 | 2021-05-17T08:33:51.000Z | 2022-02-09T03:18:11.000Z | setup.py | trsav/romodel | b9e94edb0eeb89fe75be24e1eb303a077c02f58e | [
"MIT"
] | null | null | null | setup.py | trsav/romodel | b9e94edb0eeb89fe75be24e1eb303a077c02f58e | [
"MIT"
] | 7 | 2021-07-15T17:07:23.000Z | 2022-01-18T18:58:56.000Z | from setuptools import setup, find_packages
setup(
name='romodel',
version='0.0.2',
url='https://github.com/johwiebe/romodel.git',
author='Johannes Wiebe',
author_email='j.wiebe17@imperial.ac.uk',
description='Pyomo robust optimization toolbox',
packages=find_packages(),
install_require... | 26.461538 | 52 | 0.69186 |
61b24b373be99e2cd4d1f337b0c0bc83758927a9 | 11,138 | py | Python | lambda_function.py | RAMCO-AMS/AlexaSkill | a3f54107f115b21680e9443b6e8dd63634fe7c81 | [
"MIT"
] | 1 | 2018-02-23T10:28:59.000Z | 2018-02-23T10:28:59.000Z | lambda_function.py | RAMCO-AMS/AlexaSkill | a3f54107f115b21680e9443b6e8dd63634fe7c81 | [
"MIT"
] | null | null | null | lambda_function.py | RAMCO-AMS/AlexaSkill | a3f54107f115b21680e9443b6e8dd63634fe7c81 | [
"MIT"
] | null | null | null | """
This sample demonstrates a simple skill built with the Amazon Alexa Skills Kit.
The Intent Schema, Custom Slots, and Sample Utterances for this skill, as well
as testing instructions are located at http://amzn.to/1LzFrj6
For additional samples, visit the Alexa Skills Kit Getting Started guide at
http://amzn.to/1LG... | 37.755932 | 162 | 0.687915 |
61b28c4bd878652604bcfea27884f4991efa0ed4 | 5,456 | py | Python | preprocessing/HIPSCI/extract_seq_majiq_exon_cons.py | arnegebert/splicing | 3e19ce83a9f6d98bc6c2d8b653660d22e453ca77 | [
"MIT"
] | 1 | 2021-05-13T15:30:39.000Z | 2021-05-13T15:30:39.000Z | preprocessing/HIPSCI/extract_seq_majiq_exon_cons.py | arnegebert/splicing | 3e19ce83a9f6d98bc6c2d8b653660d22e453ca77 | [
"MIT"
] | null | null | null | preprocessing/HIPSCI/extract_seq_majiq_exon_cons.py | arnegebert/splicing | 3e19ce83a9f6d98bc6c2d8b653660d22e453ca77 | [
"MIT"
] | null | null | null | from collections import defaultdict, Counter
import numpy as np
import time
from utils import one_hot_encode_seq, reverse_complement, overlap
import matplotlib.pyplot as plt
startt = time.time()
psis = []
data_path = '../../data'
save_to_cons = 'hipsci_majiq/exon/cons.npy'
introns_bef_start = 70 # introns
exons_afte... | 41.969231 | 113 | 0.61272 |
61b2a1604d4866a4eaf485c5fbc8ad47fa3ccd88 | 8,228 | py | Python | stream/migrations/0001_init_models.py | freejooo/vigilio | d21bf4f9d39e5dcde5d7c21476d8650e914c3c66 | [
"MIT"
] | 137 | 2021-03-26T18:19:45.000Z | 2022-03-06T07:48:23.000Z | stream/migrations/0001_init_models.py | rrosajp/vigilio | d21bf4f9d39e5dcde5d7c21476d8650e914c3c66 | [
"MIT"
] | 11 | 2021-03-28T00:07:00.000Z | 2021-05-04T12:54:58.000Z | stream/migrations/0001_init_models.py | rrosajp/vigilio | d21bf4f9d39e5dcde5d7c21476d8650e914c3c66 | [
"MIT"
] | 16 | 2021-03-27T23:58:53.000Z | 2022-03-20T14:52:13.000Z | # Generated by Django 3.1.5 on 2021-03-17 21:30
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
| 38.448598 | 87 | 0.444336 |
61b2c8e21cc921ae9578df5b257930ae8f0874f7 | 2,958 | py | Python | iris/iris_classifier.py | xuanthuong/tensorflow-course | 6b97ccf92e2586979a50468bd753ff46d00bdfc3 | [
"MIT"
] | null | null | null | iris/iris_classifier.py | xuanthuong/tensorflow-course | 6b97ccf92e2586979a50468bd753ff46d00bdfc3 | [
"MIT"
] | null | null | null | iris/iris_classifier.py | xuanthuong/tensorflow-course | 6b97ccf92e2586979a50468bd753ff46d00bdfc3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Iris classification example, pratice on using high-level API
Algorithms: Neutral Network
Reference: https://www.tensorflow.org/get_started/tflearn
Date: Jun 14, 2017
@author: Thuong Tran
@Library: tensorflow - high-level API with tf.contrib.learn
"""
from __future__ import absolute_impor... | 32.866667 | 91 | 0.684246 |
61b4452039e1df0b8c34d097d279b8a63e6014fc | 1,728 | py | Python | src/main.py | NaBotProject/translate-discord-bot | 41d050a89803c47bf09e5ad0f5119a9ca038d61c | [
"MIT"
] | 1 | 2021-12-12T07:56:34.000Z | 2021-12-12T07:56:34.000Z | src/main.py | NaBotProject/translate-discord-bot | 41d050a89803c47bf09e5ad0f5119a9ca038d61c | [
"MIT"
] | null | null | null | src/main.py | NaBotProject/translate-discord-bot | 41d050a89803c47bf09e5ad0f5119a9ca038d61c | [
"MIT"
] | null | null | null | import discord
import os
import openpyxl
from deep_translator import GoogleTranslator
client = discord.Client()
TOKEN = os.getenv('TOKEN')
client.run(TOKEN)
# print(translated)
| 27.428571 | 254 | 0.545718 |
61b4dd53e7ab50a4c34eeefce040ae4930eeb60c | 14,042 | py | Python | createSampledata.py | sjoplin/Ace-Analytics | 38e39696de594bf6696a6be02066ac6e4ca2b7af | [
"MIT"
] | 1 | 2019-01-09T15:19:44.000Z | 2019-01-09T15:19:44.000Z | createSampledata.py | sjoplin/Moneyball | 38e39696de594bf6696a6be02066ac6e4ca2b7af | [
"MIT"
] | 7 | 2020-02-04T22:11:54.000Z | 2022-03-11T23:37:24.000Z | createSampledata.py | sjoplin/Ace-Analytics | 38e39696de594bf6696a6be02066ac6e4ca2b7af | [
"MIT"
] | null | null | null | # Import all libraries needed for the tutorial
import pandas as pd
import re
import requests
from bs4 import BeautifulSoup
from makePDFs import printPDFs
from time import sleep
#parses the rawtext into panda format
#add playerdata back
# if __name__ == "__main__":
# generateStats()
# if __name__ == "__main_... | 36.855643 | 188 | 0.491668 |
61b92037ab7683a5d5164e4e2f3fc2e47b6106da | 1,172 | py | Python | datasets.py | mokosaur/iris-recognition | 88a99a8b5a4a2c8377b8a92a76750d871373269f | [
"MIT"
] | 17 | 2017-11-11T11:55:13.000Z | 2021-06-11T13:51:32.000Z | datasets.py | pyxsqbs/iris-recognition | 88a99a8b5a4a2c8377b8a92a76750d871373269f | [
"MIT"
] | 5 | 2018-04-21T08:52:21.000Z | 2020-01-11T18:59:13.000Z | datasets.py | pyxsqbs/iris-recognition | 88a99a8b5a4a2c8377b8a92a76750d871373269f | [
"MIT"
] | 10 | 2018-03-07T09:10:19.000Z | 2021-08-31T09:27:48.000Z | import os
import numpy as np
def load_utiris():
"""Fetches NIR images from UTIRIS dataset.
Retrieves image paths and labels for each NIR image in the dataset. There should already exist a directory named
'UTIRIS V.1'. If it does not exist then download the dataset from the official page (https://utiris.w... | 30.051282 | 120 | 0.613481 |
61b9f66c78b8200c4c7baa5db2be449bedc33128 | 634 | py | Python | crescent/resources/s3/bucket/routing_rule.py | mpolatcan/zepyhrus | 2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67 | [
"Apache-2.0"
] | 1 | 2020-03-26T19:20:03.000Z | 2020-03-26T19:20:03.000Z | crescent/resources/s3/bucket/routing_rule.py | mpolatcan/zepyhrus | 2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67 | [
"Apache-2.0"
] | null | null | null | crescent/resources/s3/bucket/routing_rule.py | mpolatcan/zepyhrus | 2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67 | [
"Apache-2.0"
] | null | null | null | from crescent.core import Model
from .redirect_rule import RedirectRule
from .routing_rule_condition import RoutingRuleCondition
from .constants import ModelRequiredProperties
| 39.625 | 99 | 0.817035 |
61ba3d50811169b0b9f01a141d232b991d2868ad | 457 | py | Python | arranging.py | mallimuondu/Algorithims | 9e2ff15ab87c56a38aba18d0e31999e12c9a317e | [
"MIT"
] | null | null | null | arranging.py | mallimuondu/Algorithims | 9e2ff15ab87c56a38aba18d0e31999e12c9a317e | [
"MIT"
] | null | null | null | arranging.py | mallimuondu/Algorithims | 9e2ff15ab87c56a38aba18d0e31999e12c9a317e | [
"MIT"
] | null | null | null | input1 = int(input("Enter the first number: "))
input2 = int(input("Enter the second number: "))
input3 = int(input("Enter the third number: "))
input4 = int(input("Enter the fourth number: "))
input5 = int(input("Enter the fifth number: "))
tuple_num = []
tuple_num.append(input1)
tuple_num.append(input2)
tuple_nu... | 30.466667 | 49 | 0.722101 |
61bcb1723cde31df785e9875b137882312c8d564 | 1,086 | py | Python | tests/test_validation_settings.py | IndicoDataSolutions/finetune-transformer-lm | 3534658e5de281e5634c8481b0fb37635b0cb3af | [
"MIT"
] | null | null | null | tests/test_validation_settings.py | IndicoDataSolutions/finetune-transformer-lm | 3534658e5de281e5634c8481b0fb37635b0cb3af | [
"MIT"
] | null | null | null | tests/test_validation_settings.py | IndicoDataSolutions/finetune-transformer-lm | 3534658e5de281e5634c8481b0fb37635b0cb3af | [
"MIT"
] | null | null | null | import unittest
from finetune.util.input_utils import validation_settings
| 43.44 | 141 | 0.736648 |
61bd467498fdc058f0a60a3407be859056102776 | 1,743 | py | Python | 96. combination_sum.py | chandravenky/puzzles | 17ec86bbad43862830ba7059a448a33b232b4088 | [
"MIT"
] | null | null | null | 96. combination_sum.py | chandravenky/puzzles | 17ec86bbad43862830ba7059a448a33b232b4088 | [
"MIT"
] | null | null | null | 96. combination_sum.py | chandravenky/puzzles | 17ec86bbad43862830ba7059a448a33b232b4088 | [
"MIT"
] | 1 | 2022-03-13T02:04:46.000Z | 2022-03-13T02:04:46.000Z | import copy
| 24.9 | 224 | 0.570281 |
61c22efab1014a2172a1411d32a305d07c0df66e | 6,086 | py | Python | claimreview/claimreview/parser.py | MartinoMensio/claimreview-scraper-other | f1105ef33d706610e8952b389e435590ff85439b | [
"MIT"
] | 2 | 2019-03-05T15:24:44.000Z | 2020-05-27T06:05:48.000Z | claimreview/claimreview/parser.py | MartinoMensio/claimreview-scraper-other | f1105ef33d706610e8952b389e435590ff85439b | [
"MIT"
] | null | null | null | claimreview/claimreview/parser.py | MartinoMensio/claimreview-scraper-other | f1105ef33d706610e8952b389e435590ff85439b | [
"MIT"
] | 1 | 2019-03-05T15:25:00.000Z | 2019-03-05T15:25:00.000Z | import json
import microdata
import dateutil.parser
| 37.801242 | 187 | 0.459086 |
61c26d6718f096ebcf35473494cb3a2610963d4a | 1,097 | py | Python | map/migrations/0001_initial.py | benjaoming/django-denmark.org | f708ce95720fd3452913a003ccf8179f869826c4 | [
"MIT"
] | null | null | null | map/migrations/0001_initial.py | benjaoming/django-denmark.org | f708ce95720fd3452913a003ccf8179f869826c4 | [
"MIT"
] | 1 | 2021-05-03T09:27:59.000Z | 2021-05-03T09:27:59.000Z | map/migrations/0001_initial.py | Nadiahansen15/django-denmark.org | d3be44764367a7c1059d7a0e896fbbc56ce1771f | [
"MIT"
] | null | null | null | # Generated by Django 2.0.3 on 2018-03-16 00:17
from django.conf import settings
import django.contrib.gis.db.models.fields
from django.db import migrations, models
import django.db.models.deletion
| 34.28125 | 154 | 0.640839 |
61c2fff5167df3eebef23e41dd213eb551eb1dca | 34 | py | Python | UNET_EM_DATASET/UNET_EM_DATASET_TERNARY/utility.py | hossein1387/U-Net-Fixed-Point-Quantization-for-Medical-Image-Segmentation | f919935b975461052d5196372a837356379f973a | [
"MIT"
] | 69 | 2019-07-28T06:53:55.000Z | 2022-03-22T01:07:28.000Z | UNET_EM_DATASET/UNET_EM_DATASET_a8_0_w0_8/utility.py | hossein1387/Fixed-Point-U-Net-Quantization-for-Medical-Image-Segmentation | 4835a3d08b38617b952023f19bf59679126f5f59 | [
"MIT"
] | 6 | 2019-08-02T07:47:09.000Z | 2021-06-11T14:35:53.000Z | UNET_EM_DATASET/UNET_EM_DATASET_a8_0_w0_8/utility.py | hossein1387/Fixed-Point-U-Net-Quantization-for-Medical-Image-Segmentation | 4835a3d08b38617b952023f19bf59679126f5f59 | [
"MIT"
] | 20 | 2019-08-10T07:08:56.000Z | 2021-10-09T17:02:30.000Z | ../UNET_EM_DATASET_BASE/utility.py | 34 | 34 | 0.852941 |
61c38035d99d5204568c03e276fa50692ae313a4 | 13,602 | py | Python | frozen_model/gap_model_triplet.py | Yorko/gender-unbiased_BERT-based_pronoun_resolution | 67d8c6b3fce94bbeb75bbc644a3111b168e7c25b | [
"Apache-2.0"
] | 47 | 2019-05-21T06:30:36.000Z | 2022-02-18T08:35:13.000Z | frozen_model/gap_model_triplet.py | Yorko/gender-unbiased_BERT-based_pronoun_resolution | 67d8c6b3fce94bbeb75bbc644a3111b168e7c25b | [
"Apache-2.0"
] | 1 | 2022-01-12T17:40:19.000Z | 2022-01-13T10:50:17.000Z | frozen_model/gap_model_triplet.py | Yorko/gender-unbiased_BERT-based_pronoun_resolution | 67d8c6b3fce94bbeb75bbc644a3111b168e7c25b | [
"Apache-2.0"
] | 6 | 2019-08-12T16:10:52.000Z | 2021-11-15T08:44:31.000Z | import pandas as pd
from tqdm import tqdm
import json
import time
import os
from keras import backend, models, layers, initializers, regularizers, constraints, optimizers
from keras import callbacks as kc
from sklearn.model_selection import cross_val_score, KFold, train_test_split, GroupKFold
from sklearn.metrics impor... | 44.306189 | 119 | 0.551978 |
61c48854a1a1f81599731dfa93278a647742bfa8 | 430 | py | Python | plotly/graph_objs/scattermapbox/__init__.py | gnestor/plotly.py | a8ae062795ddbf9867b8578fe6d9e244948c15ff | [
"MIT"
] | 12 | 2020-04-18T18:10:22.000Z | 2021-12-06T10:11:15.000Z | plotly/graph_objs/scattermapbox/__init__.py | Vesauza/plotly.py | e53e626d59495d440341751f60aeff73ff365c28 | [
"MIT"
] | 27 | 2020-04-28T21:23:12.000Z | 2021-06-25T15:36:38.000Z | plotly/graph_objs/scattermapbox/__init__.py | Vesauza/plotly.py | e53e626d59495d440341751f60aeff73ff365c28 | [
"MIT"
] | 6 | 2020-04-18T23:07:08.000Z | 2021-11-18T07:53:06.000Z | from ._unselected import Unselected
from plotly.graph_objs.scattermapbox import unselected
from ._textfont import Textfont
from ._stream import Stream
from ._selected import Selected
from plotly.graph_objs.scattermapbox import selected
from ._marker import Marker
from plotly.graph_objs.scattermapbox import marker
from ... | 35.833333 | 54 | 0.862791 |
61c555edfec0e4473d4111b7bd23857c81fc59d2 | 140 | py | Python | Javatar.py | evandrocoan/Javatar | b38d4f9d852565d6dcecb236386628b4e56d9d09 | [
"MIT"
] | 142 | 2015-01-11T19:43:17.000Z | 2021-11-15T11:44:56.000Z | Javatar.py | evandroforks/Javatar | b38d4f9d852565d6dcecb236386628b4e56d9d09 | [
"MIT"
] | 46 | 2015-01-02T20:29:37.000Z | 2018-09-15T05:12:52.000Z | Javatar.py | evandroforks/Javatar | b38d4f9d852565d6dcecb236386628b4e56d9d09 | [
"MIT"
] | 25 | 2015-01-16T01:33:39.000Z | 2022-01-07T11:12:43.000Z | from .commands import *
from .core.event_handler import *
from .utils import (
Constant
)
| 14 | 33 | 0.707143 |
61c5fab62fcc113bff6d3faa8d1850fad0a74177 | 1,584 | py | Python | sample/posts/filters.py | pine2104/docker_uwsgi_nginx_django | 47b1618048131fa7c654b9144a4b3372b9662825 | [
"MIT"
] | null | null | null | sample/posts/filters.py | pine2104/docker_uwsgi_nginx_django | 47b1618048131fa7c654b9144a4b3372b9662825 | [
"MIT"
] | null | null | null | sample/posts/filters.py | pine2104/docker_uwsgi_nginx_django | 47b1618048131fa7c654b9144a4b3372b9662825 | [
"MIT"
] | null | null | null | from .models import Post, Jcpaper
import django_filters
from django import forms
from django_filters.widgets import RangeWidget | 29.886792 | 93 | 0.657828 |
61c62c3d85b347faa604f4c73ff8c372c3a358fc | 11,293 | py | Python | src/odinapi/utils/datamodel.py | Odin-SMR/odin-api | dea75016a6f9e61be0dd64a698b03ded5a6f0f10 | [
"MIT"
] | null | null | null | src/odinapi/utils/datamodel.py | Odin-SMR/odin-api | dea75016a6f9e61be0dd64a698b03ded5a6f0f10 | [
"MIT"
] | 85 | 2020-04-01T06:24:29.000Z | 2022-03-28T04:28:56.000Z | src/odinapi/utils/datamodel.py | Odin-SMR/odin-api | dea75016a6f9e61be0dd64a698b03ded5a6f0f10 | [
"MIT"
] | null | null | null | import attr
from typing import List, Any, Dict, Union
import datetime as dt
from enum import Enum, unique, auto
from dateutil.relativedelta import relativedelta
import numpy as np # type: ignore
DATEFMT = "%Y-%m-%dT%H:%M:%SZ"
COMMON_FILE_HEADER_DATA = {
"creator_name": 'Donal Murtagh',
"creator_url": 'odi... | 27.815271 | 79 | 0.622864 |
61c791ad15060de57be0b1ac1c15f970b14dce6c | 2,549 | py | Python | regparser/layer/external_citations.py | cfpb/regulations-parser | 9b6e1ab2dbec93a915eb6da9a2d88c723b9ac424 | [
"CC0-1.0"
] | 36 | 2015-01-05T21:17:36.000Z | 2020-04-28T21:02:55.000Z | regparser/layer/external_citations.py | ascott1/regulations-parser | 1d653ec2d78c9cbfd3b0c651788e5ab14dcc76ca | [
"CC0-1.0"
] | 49 | 2015-01-28T15:54:25.000Z | 2018-08-20T20:20:08.000Z | regparser/layer/external_citations.py | ascott1/regulations-parser | 1d653ec2d78c9cbfd3b0c651788e5ab14dcc76ca | [
"CC0-1.0"
] | 23 | 2015-01-28T15:34:18.000Z | 2021-02-20T10:53:34.000Z | # vim: set encoding=utf-8
from collections import defaultdict
from regparser.grammar import external_citations as grammar
from layer import Layer
| 40.460317 | 79 | 0.630836 |
61c7e61fa0692b457a20ea1dbff37e3628444c4b | 2,521 | py | Python | Server/app.py | Ali-Elganzory/High-Ping | 9d983eb2f56779d0893dd387ffeecf9b80007944 | [
"MIT"
] | 3 | 2020-06-28T02:18:22.000Z | 2021-01-07T19:15:13.000Z | Server/app.py | Ali-Elganzory/High-Ping | 9d983eb2f56779d0893dd387ffeecf9b80007944 | [
"MIT"
] | null | null | null | Server/app.py | Ali-Elganzory/High-Ping | 9d983eb2f56779d0893dd387ffeecf9b80007944 | [
"MIT"
] | null | null | null | import eventlet
import socketio
sio = socketio.Server(async_mode='eventlet')
app = socketio.WSGIApp(sio)
rooms = {}
instructors = {}
clients_in_rooms = {}
if __name__ == "__main__":
eventlet.wsgi.server(eventlet.listen(('', 5000)), app, debug=True)
| 31.5125 | 118 | 0.638239 |
61c8c91a42b220ed80fd252d6e8e255457b5045e | 2,141 | py | Python | bot.py | Shikib/twiliobot | 0077dfc2c1451243839bda4d05e6692d3d70391c | [
"MIT"
] | null | null | null | bot.py | Shikib/twiliobot | 0077dfc2c1451243839bda4d05e6692d3d70391c | [
"MIT"
] | null | null | null | bot.py | Shikib/twiliobot | 0077dfc2c1451243839bda4d05e6692d3d70391c | [
"MIT"
] | null | null | null | from telegram import Updater
from twilio.rest import TwilioRestClient
TELEGRAM_TOKEN = "INSERT_YOUR_TOKEN_HERE"
TWILIO_ACCOUNT_SID = "INSERT_ACCOUNT_SID_HERE"
TWILIO_AUTH_TOKEN = "INSERT_AUTH_TOKEN_HERE"
# initialize telegram updater and dispatcher
updater = Updater(token=TELEGRAM_TOKEN)
dispatcher = updater.dispatch... | 31.028986 | 67 | 0.726763 |
4ede741a2bc6f6afaf8e5917cde1bda2865c5415 | 899 | py | Python | Python/construct-the-lexicographically-largest-valid-sequence.py | sm2774us/leetcode_interview_prep_2021 | 33b41bea66c266b733372d9a8b9d2965cd88bf8c | [
"Fair"
] | null | null | null | Python/construct-the-lexicographically-largest-valid-sequence.py | sm2774us/leetcode_interview_prep_2021 | 33b41bea66c266b733372d9a8b9d2965cd88bf8c | [
"Fair"
] | null | null | null | Python/construct-the-lexicographically-largest-valid-sequence.py | sm2774us/leetcode_interview_prep_2021 | 33b41bea66c266b733372d9a8b9d2965cd88bf8c | [
"Fair"
] | null | null | null | # Time: O(n!)
# Space: O(n)
| 32.107143 | 62 | 0.463849 |
4edfe61322b334879f9f8b3e249afc1b2f4d6883 | 868 | py | Python | General Questions/Longest_Common_Prefix.py | siddhi-244/CompetitiveProgrammingQuestionBank | 4c265d41b82a7d4370c14d367f78effa9ed95d3c | [
"MIT"
] | 931 | 2020-04-18T11:57:30.000Z | 2022-03-31T15:15:39.000Z | General Questions/Longest_Common_Prefix.py | geekySapien/CompetitiveProgrammingQuestionBank | 9e84a88a85dbabd95207391967abde298ddc031d | [
"MIT"
] | 661 | 2020-12-13T04:31:48.000Z | 2022-03-15T19:11:54.000Z | General Questions/Longest_Common_Prefix.py | geekySapien/CompetitiveProgrammingQuestionBank | 9e84a88a85dbabd95207391967abde298ddc031d | [
"MIT"
] | 351 | 2020-08-10T06:49:21.000Z | 2022-03-25T04:02:12.000Z | #Longest Common Prefix in python
#Implementation of python program to find the longest common prefix amongst the given list of strings.
#If there is no common prefix then returning 0.
#define the function to evaluate the longest common prefix
n = int(input("Enter the number of names in list for input:"))
print("Ent... | 37.73913 | 103 | 0.626728 |
4ee2287446b5623f2360208ebd4d39b34fb838c9 | 2,827 | py | Python | codes/1hop_getTwitterUserDetails.py | hridaydutta123/ActiveProbing | 763e90fb9e4d996fefd46fb72a53345f83bb3366 | [
"BSD-2-Clause"
] | null | null | null | codes/1hop_getTwitterUserDetails.py | hridaydutta123/ActiveProbing | 763e90fb9e4d996fefd46fb72a53345f83bb3366 | [
"BSD-2-Clause"
] | null | null | null | codes/1hop_getTwitterUserDetails.py | hridaydutta123/ActiveProbing | 763e90fb9e4d996fefd46fb72a53345f83bb3366 | [
"BSD-2-Clause"
] | null | null | null | import tweepy
from tweepy import OAuthHandler
import sys
import ConfigParser
from pymongo import MongoClient
import datetime
from random import randint
import time
# Mongo Settings
# Connect to MongoDB
client = MongoClient("hpc.iiitd.edu.in", 27017, maxPoolSize=50)
# Connect to db bitcoindb
db=client.activeprobing
s... | 30.728261 | 115 | 0.718783 |
4ee532fd58e6d9d5f5133bca89673cde76f9ac90 | 1,580 | py | Python | netbox/extras/migrations/0061_extras_change_logging.py | TheFlyingCorpse/netbox | a226f06b1beb575011d783b202d76cb74d3b1f79 | [
"Apache-2.0"
] | 4,994 | 2019-07-01T13:15:44.000Z | 2022-03-31T19:55:45.000Z | netbox/extras/migrations/0061_extras_change_logging.py | TheFlyingCorpse/netbox | a226f06b1beb575011d783b202d76cb74d3b1f79 | [
"Apache-2.0"
] | 4,045 | 2019-07-01T14:24:09.000Z | 2022-03-31T16:07:39.000Z | netbox/extras/migrations/0061_extras_change_logging.py | TheFlyingCorpse/netbox | a226f06b1beb575011d783b202d76cb74d3b1f79 | [
"Apache-2.0"
] | 1,225 | 2019-07-01T15:34:03.000Z | 2022-03-31T16:47:09.000Z | from django.db import migrations, models
| 30.384615 | 65 | 0.563924 |
4ee5c4620828c4c0155ae2a8226dc077ef23d941 | 2,849 | py | Python | tests/test_deployment/test__issue_tracker.py | getslash/scotty | 93ea0e41f8e10249e82adc4966ad9aef67b83eba | [
"BSD-3-Clause"
] | 10 | 2015-12-30T14:01:09.000Z | 2020-06-05T19:10:23.000Z | tests/test_deployment/test__issue_tracker.py | getslash/scotty | 93ea0e41f8e10249e82adc4966ad9aef67b83eba | [
"BSD-3-Clause"
] | 41 | 2015-12-31T12:08:15.000Z | 2020-07-27T11:22:56.000Z | tests/test_deployment/test__issue_tracker.py | getslash/scotty | 93ea0e41f8e10249e82adc4966ad9aef67b83eba | [
"BSD-3-Clause"
] | 2 | 2016-05-22T15:25:47.000Z | 2017-06-06T11:11:23.000Z | import http
import uuid
from itertools import chain, combinations
import pytest
import requests
import slash
_TRACKER_PARAMS = frozenset(["url", "name", "config"])
| 29.071429 | 98 | 0.702001 |
4ee889d75d3834fac8478bde6be85577e39bc8ad | 3,826 | py | Python | iotcookbook/device/pi/docker/buzzer/app/client.py | haizaar/crossbar-examples | a3daffc0348565aa5e989433978dec2913242ea8 | [
"Apache-2.0"
] | null | null | null | iotcookbook/device/pi/docker/buzzer/app/client.py | haizaar/crossbar-examples | a3daffc0348565aa5e989433978dec2913242ea8 | [
"Apache-2.0"
] | null | null | null | iotcookbook/device/pi/docker/buzzer/app/client.py | haizaar/crossbar-examples | a3daffc0348565aa5e989433978dec2913242ea8 | [
"Apache-2.0"
] | null | null | null | import os
import argparse
import six
import txaio
txaio.use_twisted()
import RPi.GPIO as GPIO
from twisted.internet import reactor
from twisted.internet.defer import inlineCallbacks
from twisted.internet.error import ReactorNotRunning
from autobahn.twisted.wamp import ApplicationSession
from autobahn.twisted.wamp ... | 27.927007 | 137 | 0.618662 |
4ee8e5064d073bd9fe65b5f652de6a065ad8feed | 468 | py | Python | troupon/deals/tasks.py | andela/troupon | 3704cbe6e69ba3e4c53401d3bbc339208e9ebccd | [
"MIT"
] | 14 | 2016-01-12T07:31:09.000Z | 2021-11-20T19:29:35.000Z | troupon/deals/tasks.py | andela/troupon | 3704cbe6e69ba3e4c53401d3bbc339208e9ebccd | [
"MIT"
] | 52 | 2015-09-02T14:54:43.000Z | 2016-08-01T08:22:21.000Z | troupon/deals/tasks.py | andela/troupon | 3704cbe6e69ba3e4c53401d3bbc339208e9ebccd | [
"MIT"
] | 17 | 2015-09-30T13:18:48.000Z | 2021-11-18T16:25:12.000Z | from celery.decorators import periodic_task
from celery.task.schedules import crontab
from celery.utils.log import get_task_logger
from utils import scraper
logger = get_task_logger(__name__)
# A periodic task that will run every minute
| 29.25 | 69 | 0.779915 |
4ee93f1b5b503980b03dc4c25a2236f84fadfd5f | 806 | py | Python | unit_testing/temp_manage.py | ddsprasad/pythondev | be3e555ff4a877ecac120b650130c601772050b1 | [
"MIT"
] | null | null | null | unit_testing/temp_manage.py | ddsprasad/pythondev | be3e555ff4a877ecac120b650130c601772050b1 | [
"MIT"
] | null | null | null | unit_testing/temp_manage.py | ddsprasad/pythondev | be3e555ff4a877ecac120b650130c601772050b1 | [
"MIT"
] | null | null | null | from memsql.common import database
import sys
from datetime import datetime
DATABASE = 'PREPDB'
HOST = '10.1.100.12'
PORT = '3306'
USER = 'root'
PASSWORD = 'In5pir0n@121'
def get_connection(db=DATABASE):
""" Returns a new connection to the database. """
return database.connect(host=HOST, port=PORT, user=USER... | 28.785714 | 92 | 0.614144 |
4ee959a3b5b6300a196f631748a0e734cce242cc | 534 | py | Python | tabcmd/parsers/remove_users_parser.py | WillAyd/tabcmd | 1ba4a6ce1586b5ec4286aca0edff0fbaa1c69f15 | [
"MIT"
] | null | null | null | tabcmd/parsers/remove_users_parser.py | WillAyd/tabcmd | 1ba4a6ce1586b5ec4286aca0edff0fbaa1c69f15 | [
"MIT"
] | null | null | null | tabcmd/parsers/remove_users_parser.py | WillAyd/tabcmd | 1ba4a6ce1586b5ec4286aca0edff0fbaa1c69f15 | [
"MIT"
] | null | null | null | from .global_options import *
| 31.411765 | 80 | 0.662921 |
4eea4879abfe5efa38a70bbb4827cc57672e6417 | 6,819 | py | Python | Lab6/passengers.py | programiranje3/v2020 | 93c9793aadfea1c15107447951e2db5284fe8802 | [
"MIT"
] | null | null | null | Lab6/passengers.py | programiranje3/v2020 | 93c9793aadfea1c15107447951e2db5284fe8802 | [
"MIT"
] | null | null | null | Lab6/passengers.py | programiranje3/v2020 | 93c9793aadfea1c15107447951e2db5284fe8802 | [
"MIT"
] | null | null | null | #
# Create the FlightService enumeration that defines the following items (services):
# (free) snack, (free) refreshments, (free) meal, priority boarding,
# (free) onboard wifi, and an item for cases when services are not specified.
#
from enum import Enum
#
# Modify the Passenger class from Lab5 as follows:
#
# In ... | 36.079365 | 118 | 0.69585 |
4eea98d24b1e30d22ba208bedbdfdc1f2bbee460 | 722 | py | Python | src/documents/management/commands/generate_documents.py | Talengi/phase | 60ff6f37778971ae356c5b2b20e0d174a8288bfe | [
"MIT"
] | 8 | 2016-01-29T11:53:40.000Z | 2020-03-02T22:42:02.000Z | src/documents/management/commands/generate_documents.py | Talengi/phase | 60ff6f37778971ae356c5b2b20e0d174a8288bfe | [
"MIT"
] | 289 | 2015-03-23T07:42:52.000Z | 2022-03-11T23:26:10.000Z | src/documents/management/commands/generate_documents.py | Talengi/phase | 60ff6f37778971ae356c5b2b20e0d174a8288bfe | [
"MIT"
] | 7 | 2015-12-08T09:03:20.000Z | 2020-05-11T15:36:51.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
from django.core.management.base import BaseCommand
from documents.tests.utils import generate_random_documents
from categories.models import Category
| 26.740741 | 67 | 0.66759 |
4eeadf88e58b24119aee24c1e548e0b28afca7bf | 2,004 | py | Python | checkov/kubernetes/checks/resource/k8s/ImagePullPolicyAlways.py | Devocean8-Official/checkov | 8ce61421fa838a97981ab3bd0ae2a12e541666b2 | [
"Apache-2.0"
] | 1 | 2021-02-13T15:24:42.000Z | 2021-02-13T15:24:42.000Z | checkov/kubernetes/checks/resource/k8s/ImagePullPolicyAlways.py | Devocean8-Official/checkov | 8ce61421fa838a97981ab3bd0ae2a12e541666b2 | [
"Apache-2.0"
] | 7 | 2021-04-12T06:54:07.000Z | 2022-03-21T14:04:14.000Z | checkov/kubernetes/checks/resource/k8s/ImagePullPolicyAlways.py | Devocean8-Official/checkov | 8ce61421fa838a97981ab3bd0ae2a12e541666b2 | [
"Apache-2.0"
] | 1 | 2021-12-16T03:09:55.000Z | 2021-12-16T03:09:55.000Z | import re
from typing import Any, Dict
from checkov.common.models.consts import DOCKER_IMAGE_REGEX
from checkov.common.models.enums import CheckResult
from checkov.kubernetes.checks.resource.base_container_check import BaseK8sContainerCheck
check = ImagePullPolicyAlways()
| 39.294118 | 118 | 0.628244 |
4eeb6f838c4a0c27e093b28216bbce9b8353f8d9 | 381 | py | Python | jobs/migrations/0018_rename_user_id_recruiterpage_user.py | digitaloxford/do-wagtail | 49dd75b95109ebb38bf66aca13d3fdeb8e25d319 | [
"MIT"
] | 2 | 2021-04-11T11:59:51.000Z | 2021-04-12T06:56:23.000Z | jobs/migrations/0018_rename_user_id_recruiterpage_user.py | digitaloxford/do-wagtail | 49dd75b95109ebb38bf66aca13d3fdeb8e25d319 | [
"MIT"
] | 8 | 2021-04-10T10:40:27.000Z | 2022-01-25T16:32:22.000Z | jobs/migrations/0018_rename_user_id_recruiterpage_user.py | digitaloxford/do-wagtail | 49dd75b95109ebb38bf66aca13d3fdeb8e25d319 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.6 on 2021-08-05 11:05
from django.db import migrations
| 20.052632 | 59 | 0.603675 |
4eeb8ef3221f67956b15ccde258bd099c6b02706 | 5,154 | py | Python | celescope/fusion/multi_fusion.py | frostmoure98/CeleScope | e001fa18ba3d4aaf3f5bc40aa9386fa0d7866381 | [
"MIT"
] | null | null | null | celescope/fusion/multi_fusion.py | frostmoure98/CeleScope | e001fa18ba3d4aaf3f5bc40aa9386fa0d7866381 | [
"MIT"
] | null | null | null | celescope/fusion/multi_fusion.py | frostmoure98/CeleScope | e001fa18ba3d4aaf3f5bc40aa9386fa0d7866381 | [
"MIT"
] | null | null | null | import os
import glob
import sys
import argparse
import re
from collections import defaultdict
from celescope.__init__ import __CONDA__
from celescope.fusion.__init__ import __STEPS__, __ASSAY__
from celescope.tools.utils import merge_report, generate_sjm
from celescope.tools.utils import parse_map_col4, multi_opts, li... | 30.862275 | 84 | 0.558013 |
4eeba8c507dbd8f435dcd16c1fc5b07ff0fd0417 | 818 | py | Python | src/uglier/colored_logger.py | MonliH/uglier | 0922ddfab52677f959290400de578953b59e4597 | [
"MIT"
] | 1 | 2022-02-14T02:54:50.000Z | 2022-02-14T02:54:50.000Z | src/uglier/colored_logger.py | MonliH/uglier | 0922ddfab52677f959290400de578953b59e4597 | [
"MIT"
] | null | null | null | src/uglier/colored_logger.py | MonliH/uglier | 0922ddfab52677f959290400de578953b59e4597 | [
"MIT"
] | null | null | null | # Credits to https://stackoverflow.com/a/56944256/9470078
# I wanted a colored logger without dependencies, so here it is!
import logging
| 30.296296 | 64 | 0.625917 |
4eec746d820c53cfe1acfbbe561209eb0112a801 | 207 | py | Python | tests/SHA256/run.py | weikengchen/Virgo | 73b924f33e18c017bafa3ed37da84a7b0d80ec5d | [
"Apache-2.0"
] | 9 | 2020-06-02T04:54:08.000Z | 2021-12-07T12:54:09.000Z | tests/SHA256/run.py | weikengchen/Virgo | 73b924f33e18c017bafa3ed37da84a7b0d80ec5d | [
"Apache-2.0"
] | 2 | 2021-01-07T18:34:10.000Z | 2021-03-22T20:29:43.000Z | tests/SHA256/run.py | weikengchen/Virgo | 73b924f33e18c017bafa3ed37da84a7b0d80ec5d | [
"Apache-2.0"
] | 5 | 2020-06-08T09:11:37.000Z | 2021-07-29T12:15:47.000Z | import os
os.system('mkdir -p LOG')
for i in range(8):
os.system('./zk_proof SHA256_64_merkle_' + str(i + 1) + '_circuit.txt SHA256_64_merkle_' + str(i + 1) + '_meta.txt LOG/SHA256_' + str(i + 1) + '.txt')
| 41.4 | 151 | 0.647343 |
4eee40c453e96ec4d8088f99f82cf3eed41c437d | 1,539 | py | Python | projects/07/src/Parser.py | danibachar/Nand2Tetris | fdce0e87a4869213f3eeb0004ba2af688ea1b1cc | [
"MIT"
] | null | null | null | projects/07/src/Parser.py | danibachar/Nand2Tetris | fdce0e87a4869213f3eeb0004ba2af688ea1b1cc | [
"MIT"
] | null | null | null | projects/07/src/Parser.py | danibachar/Nand2Tetris | fdce0e87a4869213f3eeb0004ba2af688ea1b1cc | [
"MIT"
] | null | null | null | from Lex import Lex, ARITHMETIC_COMMANDS, PUSH_OR_POP_COMMANDS
| 29.596154 | 80 | 0.591293 |
4eef1320c0e0691a8298a782442f1c3ab4a42e10 | 40 | py | Python | testing/examples/import_error.py | dry-python/dependencies | 1a8bba41ab42d0b5249b36471f5300d9faba81e7 | [
"BSD-2-Clause"
] | 175 | 2018-07-21T13:04:44.000Z | 2020-05-27T15:31:06.000Z | tests/helpers/examples/import_error.py | proofit404/dependencies | 204e0cfadca801d64857f24aa4c74e7939ed9af0 | [
"BSD-2-Clause"
] | 325 | 2016-05-16T11:16:11.000Z | 2022-03-04T00:45:57.000Z | testing/examples/import_error.py | dry-python/dependencies | 1a8bba41ab42d0b5249b36471f5300d9faba81e7 | [
"BSD-2-Clause"
] | 18 | 2018-06-17T09:33:16.000Z | 2020-05-20T18:12:30.000Z | from astral import Vision # noqa: F401
| 20 | 39 | 0.75 |
4eef83ede604e40066824025d8e5da2b23f0f80b | 1,297 | py | Python | pywxwork/contact/async.py | renqiukai/pywxwork | 980283b4c89bf60f998071f30551b8802f1cdbf9 | [
"MIT"
] | 2 | 2021-05-22T11:16:47.000Z | 2021-05-27T12:42:38.000Z | pywxwork/contact/async.py | renqiukai/pywxwork | 980283b4c89bf60f998071f30551b8802f1cdbf9 | [
"MIT"
] | null | null | null | pywxwork/contact/async.py | renqiukai/pywxwork | 980283b4c89bf60f998071f30551b8802f1cdbf9 | [
"MIT"
] | null | null | null | from loguru import logger
from ..base import base
| 28.822222 | 65 | 0.59522 |
4eefbfc6df35a9a798314233bdb1d9a5b18867b2 | 551 | py | Python | saleor/University/migrations/0012_auto_20191220_1226.py | pandeyroshan/Saleor | 9f391d7a9d58626d3696781c169b2c8a059f1c0b | [
"CC-BY-4.0"
] | null | null | null | saleor/University/migrations/0012_auto_20191220_1226.py | pandeyroshan/Saleor | 9f391d7a9d58626d3696781c169b2c8a059f1c0b | [
"CC-BY-4.0"
] | null | null | null | saleor/University/migrations/0012_auto_20191220_1226.py | pandeyroshan/Saleor | 9f391d7a9d58626d3696781c169b2c8a059f1c0b | [
"CC-BY-4.0"
] | null | null | null | # Generated by Django 2.2 on 2019-12-20 06:56
from django.db import migrations
| 21.192308 | 50 | 0.555354 |
4ef0b50ef3594f7350bca88a70048229aa579679 | 1,539 | py | Python | app/places/migrations/0001_initial.py | aykutgk/nearapp-web | 469b9878cf7434278c78a733eeac40713dcc40a4 | [
"MIT"
] | null | null | null | app/places/migrations/0001_initial.py | aykutgk/nearapp-web | 469b9878cf7434278c78a733eeac40713dcc40a4 | [
"MIT"
] | null | null | null | app/places/migrations/0001_initial.py | aykutgk/nearapp-web | 469b9878cf7434278c78a733eeac40713dcc40a4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-04-06 23:40
from __future__ import unicode_literals
from django.conf import settings
import django.contrib.gis.db.models.fields
from django.db import migrations, models
import django.db.models.deletion
| 43.971429 | 141 | 0.660169 |
4ef201c0a10d56d741c0b5148b73d6e3ae7ebce4 | 143 | py | Python | acmgnyr2011/b.py | AnAverageHuman/competitive | 4c4b9bdbe91fde1c52f731426f9a53bff97796e1 | [
"BSD-3-Clause"
] | null | null | null | acmgnyr2011/b.py | AnAverageHuman/competitive | 4c4b9bdbe91fde1c52f731426f9a53bff97796e1 | [
"BSD-3-Clause"
] | null | null | null | acmgnyr2011/b.py | AnAverageHuman/competitive | 4c4b9bdbe91fde1c52f731426f9a53bff97796e1 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
P = int(input())
for _ in range(P):
N, n, m = [int(i) for i in input().split()]
print(f"{N} {(n - m) * m + 1}")
| 20.428571 | 47 | 0.48951 |
4ef25edc19b260d4a3119393c3b4c0a16a1f9130 | 462 | py | Python | preprocessing/importlib_read.py | Kunal614/Machine-Learning | 26b3e0f3397ddb524c96c5b6c99b173b6fc80501 | [
"MIT"
] | null | null | null | preprocessing/importlib_read.py | Kunal614/Machine-Learning | 26b3e0f3397ddb524c96c5b6c99b173b6fc80501 | [
"MIT"
] | null | null | null | preprocessing/importlib_read.py | Kunal614/Machine-Learning | 26b3e0f3397ddb524c96c5b6c99b173b6fc80501 | [
"MIT"
] | null | null | null | #importing lib
import pandas as pd
import numpy as np
#Take data
df = pd.DataFrame({"Name":['Kunal' , 'Mohit' , 'Rohit' ] ,"age":[np.nan , 23, 45] , "sex":['M' , np.nan , 'M']})
#check for nnull value
print(df.isnull().sum())
print(df.describe())
# ignore the nan rows
print(len(df.dropna()) , df.dropna())
#for ... | 15.931034 | 112 | 0.634199 |
4ef2b218f2e39c030635631f9cea78b7d43ed7b8 | 2,774 | py | Python | isw2-master/src/app/ui/ajustarReloj.py | marlanbar/academic-projects | bcdc8ca36b6984ab3f83c10b8a3ed45576ecfca1 | [
"MIT"
] | null | null | null | isw2-master/src/app/ui/ajustarReloj.py | marlanbar/academic-projects | bcdc8ca36b6984ab3f83c10b8a3ed45576ecfca1 | [
"MIT"
] | null | null | null | isw2-master/src/app/ui/ajustarReloj.py | marlanbar/academic-projects | bcdc8ca36b6984ab3f83c10b8a3ed45576ecfca1 | [
"MIT"
] | null | null | null | import datetime
from .consola import Consola
from .uiscreen import UIScreen
from ..core.reloj import Reloj
| 37.486486 | 115 | 0.612112 |
4ef40c95ccc6546b171182631d74d1be2a580530 | 2,359 | py | Python | signin/jd.py | nujabse/simpleSignin | e818f9880d97d39beddcadccb53dc23e18fe6d8e | [
"MIT"
] | 11 | 2018-03-07T04:13:05.000Z | 2019-11-28T04:43:55.000Z | signin/jd.py | nujabse/simpleSignin | e818f9880d97d39beddcadccb53dc23e18fe6d8e | [
"MIT"
] | 2 | 2018-03-04T15:08:01.000Z | 2018-05-28T07:42:47.000Z | signin/jd.py | nujabse/simpleSignin | e818f9880d97d39beddcadccb53dc23e18fe6d8e | [
"MIT"
] | 15 | 2018-01-25T10:54:06.000Z | 2019-11-05T07:09:20.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import traceback
from selenium.webdriver import ChromeOptions
from signin.chrome import find_chrome_driver_path, JdSession
from signin.jd_job import jobs_all
from lib.log import logger
from lib.settings import PC_UA
from lib.settings import MOBILE_UA
if __name__ == ... | 30.24359 | 92 | 0.561679 |
4ef48cca62f034a2764603154909770a46970bca | 284 | py | Python | tests/tasks/test_aws_athena_task.py | jezd-axyl/platsec-aws-scanner | bc2b064c87ac2f77fab49c1e1eb3782d6de685b2 | [
"Apache-2.0"
] | null | null | null | tests/tasks/test_aws_athena_task.py | jezd-axyl/platsec-aws-scanner | bc2b064c87ac2f77fab49c1e1eb3782d6de685b2 | [
"Apache-2.0"
] | 4 | 2021-05-06T12:36:46.000Z | 2022-02-11T09:47:57.000Z | tests/tasks/test_aws_athena_task.py | jezd-axyl/platsec-aws-scanner | bc2b064c87ac2f77fab49c1e1eb3782d6de685b2 | [
"Apache-2.0"
] | 2 | 2021-04-21T04:48:47.000Z | 2022-01-14T04:29:17.000Z | from unittest import TestCase
from unittest.mock import Mock
from tests.test_types_generator import athena_task
| 25.818182 | 52 | 0.757042 |
4ef53f10b384a2cdfc48e2d923372b8c68776225 | 1,966 | py | Python | Post-Exploitation/LaZagne/Linux/lazagne/softwares/wallet/gnome.py | FOGSEC/TID3xploits | b57d8bae454081a3883a5684679e2a329e72d6e5 | [
"MIT"
] | 5 | 2018-01-15T13:58:40.000Z | 2022-02-17T02:38:58.000Z | Post-Exploitation/LaZagne/Linux/lazagne/softwares/wallet/gnome.py | bhattsameer/TID3xploits | b57d8bae454081a3883a5684679e2a329e72d6e5 | [
"MIT"
] | null | null | null | Post-Exploitation/LaZagne/Linux/lazagne/softwares/wallet/gnome.py | bhattsameer/TID3xploits | b57d8bae454081a3883a5684679e2a329e72d6e5 | [
"MIT"
] | 4 | 2019-06-21T07:51:11.000Z | 2020-11-04T05:20:09.000Z | #!/usr/bin/env python
import os
from lazagne.config.write_output import print_debug
from lazagne.config.moduleInfo import ModuleInfo
| 31.206349 | 102 | 0.619023 |
4ef55661668508edfc12cbfc3fabe43b080c3a01 | 810 | py | Python | clearsky/main.py | NathanStern/ClearSky | 979583de2c44dcd3f62b96b9b43ba6369dff8a71 | [
"MIT"
] | null | null | null | clearsky/main.py | NathanStern/ClearSky | 979583de2c44dcd3f62b96b9b43ba6369dff8a71 | [
"MIT"
] | null | null | null | clearsky/main.py | NathanStern/ClearSky | 979583de2c44dcd3f62b96b9b43ba6369dff8a71 | [
"MIT"
] | null | null | null | from . import db
from flask import Flask, current_app
from . import create_app
import os
from . import db
app = create_app()
with app.app_context():
if os.path.exists("clearsky/config.json"):
pass
else:
with open('clearsky/config.json', 'w') as configuration:
print("Opened config ... | 28.928571 | 141 | 0.630864 |
4ef5f5eab5f2ada2e47d1bb10c80337bb76665c1 | 6,966 | py | Python | logger.py | despargy/Shade | 8ed54c80154448c2cdc29623c2798a01d594995e | [
"MIT"
] | 3 | 2019-12-28T09:04:09.000Z | 2020-04-19T15:04:49.000Z | logger.py | despargy/Shade | 8ed54c80154448c2cdc29623c2798a01d594995e | [
"MIT"
] | null | null | null | logger.py | despargy/Shade | 8ed54c80154448c2cdc29623c2798a01d594995e | [
"MIT"
] | 1 | 2022-03-25T14:10:45.000Z | 2022-03-25T14:10:45.000Z | import logging
from abc import ABC, abstractmethod
from file_read_backwards import FileReadBackwards
import threading
import os
"""
Class for Logging ADCS action so you can
recover your system.
"""
| 27.864 | 83 | 0.557852 |
4ef6051cf73af32c482601c57498a5943fed63f6 | 5,387 | py | Python | nydus/db/base.py | Elec/nydus | 9b505840da47a34f758a830c3992fa5dcb7bb7ad | [
"Apache-2.0"
] | 102 | 2015-01-12T20:07:37.000Z | 2022-02-21T10:00:07.000Z | nydus/db/base.py | Elec/nydus | 9b505840da47a34f758a830c3992fa5dcb7bb7ad | [
"Apache-2.0"
] | 4 | 2015-02-18T04:04:47.000Z | 2021-06-09T12:14:50.000Z | nydus/db/base.py | Elec/nydus | 9b505840da47a34f758a830c3992fa5dcb7bb7ad | [
"Apache-2.0"
] | 9 | 2015-07-28T15:16:04.000Z | 2021-06-08T20:31:04.000Z | """
nydus.db.base
~~~~~~~~~~~~~
:copyright: (c) 2011-2012 DISQUS.
:license: Apache License 2.0, see LICENSE for more details.
"""
__all__ = ('LazyConnectionHandler', 'BaseCluster')
import collections
from nydus.db.map import DistributedContextManager
from nydus.db.routers import BaseRouter, routing_params
from nydus... | 32.451807 | 108 | 0.633748 |
4ef8c03f9234184a71c8d62d34f7bd0e16bc0579 | 1,212 | py | Python | pytest_voluptuous/plugin.py | F-Secure/pytest-voluptuous | d71da445e49d3c17c959391d56857a468d344f4b | [
"Apache-2.0"
] | 27 | 2018-01-11T09:21:40.000Z | 2021-11-17T06:23:49.000Z | pytest_voluptuous/plugin.py | F-Secure/pytest-voluptuous | d71da445e49d3c17c959391d56857a468d344f4b | [
"Apache-2.0"
] | 8 | 2018-02-16T10:56:36.000Z | 2020-06-12T12:35:49.000Z | pytest_voluptuous/plugin.py | F-Secure/pytest-voluptuous | d71da445e49d3c17c959391d56857a468d344f4b | [
"Apache-2.0"
] | 7 | 2018-02-13T23:05:15.000Z | 2020-05-18T11:59:46.000Z | from __future__ import absolute_import
from voluptuous import MultipleInvalid
from pytest_voluptuous.voluptuous import S
| 24.24 | 97 | 0.55198 |
4ef95f448285155ef51a0543042976937c9cfbc9 | 1,487 | py | Python | amftrack/pipeline/scripts/post_processing/make_small_exp.py | Cocopyth/MscThesis | 60162bc779a3a668e7447b60bb9a4b2a616b8093 | [
"MIT"
] | 1 | 2021-06-10T02:51:53.000Z | 2021-06-10T02:51:53.000Z | amftrack/pipeline/scripts/post_processing/make_small_exp.py | Cocopyth/MscThesis | 60162bc779a3a668e7447b60bb9a4b2a616b8093 | [
"MIT"
] | null | null | null | amftrack/pipeline/scripts/post_processing/make_small_exp.py | Cocopyth/MscThesis | 60162bc779a3a668e7447b60bb9a4b2a616b8093 | [
"MIT"
] | null | null | null | from path import path_code_dir
import sys
sys.path.insert(0, path_code_dir)
from amftrack.pipeline.functions.image_processing.extract_width_fun import *
from amftrack.pipeline.functions.image_processing.experiment_class_surf import Experiment, save_graphs, load_graphs
from amftrack.util import get_dates_datetime... | 36.268293 | 116 | 0.778749 |
4efaee537f830f9cc1209c150188c0e51e4634b7 | 12,476 | py | Python | src/style_transfer/style_transfer_v2_gluon.py | gilbertfrancois/mxnet-cookbook | 95add0415d7c1ddfc4bcdd3d3a41c2e44162f888 | [
"Apache-2.0"
] | 1 | 2020-02-28T03:00:19.000Z | 2020-02-28T03:00:19.000Z | src/style_transfer/style_transfer_v2_gluon.py | gilbertfrancois/mxnet-cookbook | 95add0415d7c1ddfc4bcdd3d3a41c2e44162f888 | [
"Apache-2.0"
] | null | null | null | src/style_transfer/style_transfer_v2_gluon.py | gilbertfrancois/mxnet-cookbook | 95add0415d7c1ddfc4bcdd3d3a41c2e44162f888 | [
"Apache-2.0"
] | 1 | 2020-10-14T20:26:19.000Z | 2020-10-14T20:26:19.000Z | # Copyright 2019 Gilbert Francois Duivesteijn
#
# 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... | 41.311258 | 143 | 0.636181 |
4efc7761548ac36e29fdc7dad0bfff5e1335bdbc | 6,980 | py | Python | torncache/connection.py | shipci/torncache-sample | 790a46812f3a503d2f30eefdd89c974a929c2a4a | [
"Apache-2.0"
] | null | null | null | torncache/connection.py | shipci/torncache-sample | 790a46812f3a503d2f30eefdd89c974a929c2a4a | [
"Apache-2.0"
] | null | null | null | torncache/connection.py | shipci/torncache-sample | 790a46812f3a503d2f30eefdd89c974a929c2a4a | [
"Apache-2.0"
] | null | null | null | # -*- mode: python; coding: utf-8 -*-
"""
Torncache Connection
"""
from __future__ import absolute_import
import os
import stat
import socket
import time
import numbers
import logging
import functools
from tornado import iostream
from tornado import stack_context
from tornado.ioloop import IOLoop
from tornado.platf... | 31.441441 | 79 | 0.593123 |
4efd701d6b8e98e84a695daad78682b43535205a | 10,025 | py | Python | rl-toolkit/rlf/rl/model.py | clvrai/goal_prox_il | 7c809b2ee575a69a14997068db06f3c1f3c8bd08 | [
"MIT"
] | 4 | 2021-11-17T20:19:34.000Z | 2022-03-31T04:21:26.000Z | rl-toolkit/rlf/rl/model.py | clvrai/goal_prox_il | 7c809b2ee575a69a14997068db06f3c1f3c8bd08 | [
"MIT"
] | null | null | null | rl-toolkit/rlf/rl/model.py | clvrai/goal_prox_il | 7c809b2ee575a69a14997068db06f3c1f3c8bd08 | [
"MIT"
] | null | null | null | import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from rlf.rl.loggers import sanity_checker
def reg_mlp_weight_init(m):
"""Does not weight init, defaults to whatever pytorch does."""
return m
class IdentityBase(BaseNet):
class PassThroughBase(BaseNet):
"""
... | 27.924791 | 88 | 0.569875 |
4efe3309dbe459b7936bf0bef1d7d022f2a55e49 | 4,407 | py | Python | pkgs/sdk-pkg/src/genie/libs/sdk/apis/iosxe/apphosting/verify.py | jbronikowski/genielibs | 200a34e5fe4838a27b5a80d5973651b2e34ccafb | [
"Apache-2.0"
] | 94 | 2018-04-30T20:29:15.000Z | 2022-03-29T13:40:31.000Z | pkgs/sdk-pkg/src/genie/libs/sdk/apis/iosxe/apphosting/verify.py | jbronikowski/genielibs | 200a34e5fe4838a27b5a80d5973651b2e34ccafb | [
"Apache-2.0"
] | 67 | 2018-12-06T21:08:09.000Z | 2022-03-29T18:00:46.000Z | pkgs/sdk-pkg/src/genie/libs/sdk/apis/iosxe/apphosting/verify.py | jbronikowski/genielibs | 200a34e5fe4838a27b5a80d5973651b2e34ccafb | [
"Apache-2.0"
] | 49 | 2018-06-29T18:59:03.000Z | 2022-03-10T02:07:59.000Z | ''' Common Verify functions for IOX / app-hosting '''
import logging
import time
log = logging.getLogger(__name__)
# Import parser
from genie.utils.timeout import Timeout
from genie.metaparser.util.exceptions import SchemaEmptyParserError
def verify_app_requested_state(device, app_list=None, requested_st... | 33.386364 | 109 | 0.568187 |
4efef6a46d52e7f4dd5e178790df0f2e99b29bf4 | 15,350 | py | Python | memo/models/neural_nets.py | feloundou/memo | dc988d38dc6bcbcbb6851b78fb90ac77da4ad1b5 | [
"Apache-2.0"
] | null | null | null | memo/models/neural_nets.py | feloundou/memo | dc988d38dc6bcbcbb6851b78fb90ac77da4ad1b5 | [
"Apache-2.0"
] | null | null | null | memo/models/neural_nets.py | feloundou/memo | dc988d38dc6bcbcbb6851b78fb90ac77da4ad1b5 | [
"Apache-2.0"
] | null | null | null | # import scipy.signal
from gym.spaces import Box, Discrete
import numpy as np
import torch
from torch import nn
import IPython
# from torch.nn import Parameter
import torch.nn.functional as F
from torch.distributions import Independent, OneHotCategorical, Categorical
from torch.distributions.normal import Normal
# # fr... | 36.032864 | 127 | 0.641238 |
4eff2ab37a18ee36fb3fd5444900984659555e54 | 855 | py | Python | sprocket/util/extfrm.py | zhouming-hfut/sprocket | 68d4005284b72a891d0c0f81afabea087fc45960 | [
"MIT"
] | 500 | 2017-09-25T14:04:50.000Z | 2022-03-24T22:21:51.000Z | sprocket/util/extfrm.py | zhouming-hfut/sprocket | 68d4005284b72a891d0c0f81afabea087fc45960 | [
"MIT"
] | 73 | 2017-09-25T13:59:38.000Z | 2022-01-12T11:35:58.000Z | sprocket/util/extfrm.py | zhouming-hfut/sprocket | 68d4005284b72a891d0c0f81afabea087fc45960 | [
"MIT"
] | 116 | 2017-09-26T15:54:13.000Z | 2022-03-05T08:40:14.000Z | # -*- coding: utf-8 -*-
from __future__ import division, print_function, absolute_import
import numpy as np
def extfrm(data, npow, power_threshold=-20):
"""Extract frame over the power threshold
Parameters
----------
data: array, shape (`T`, `dim`)
Array of input data
npow : array, shap... | 22.5 | 64 | 0.607018 |
f60095130f09208c0cc014869141663b3698d4a5 | 9,317 | py | Python | tickets_handler/models.py | ChanTerelLy/partnerweb3 | 4f37f032242cbc67d57b7161ecb5960d9cfde76d | [
"MIT"
] | null | null | null | tickets_handler/models.py | ChanTerelLy/partnerweb3 | 4f37f032242cbc67d57b7161ecb5960d9cfde76d | [
"MIT"
] | null | null | null | tickets_handler/models.py | ChanTerelLy/partnerweb3 | 4f37f032242cbc67d57b7161ecb5960d9cfde76d | [
"MIT"
] | null | null | null | import uuid
from django.db import models
from partnerweb_parser.manager import NewDesign, Ticket
import re
from partnerweb_parser import system, mail, manager
import json
import datetime
from partnerweb_parser.date_func import dmYHM_to_datetime
from tickets_handler.tasks import update_date_for_assigned
class Addit... | 37.568548 | 107 | 0.651819 |
f6029db9fa8774e3c51f5cd2c301f93c77ad18fa | 1,184 | py | Python | photos/views.py | Otybrian/personal-gallery | d9492b5d29600da4a2999a9cc4914279e55f87ee | [
"MIT"
] | null | null | null | photos/views.py | Otybrian/personal-gallery | d9492b5d29600da4a2999a9cc4914279e55f87ee | [
"MIT"
] | null | null | null | photos/views.py | Otybrian/personal-gallery | d9492b5d29600da4a2999a9cc4914279e55f87ee | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponse
import datetime as dt
from django.views import View
from photos.models import Image, category
# Create your views here.
| 27.534884 | 105 | 0.699324 |
f602a97c790f5ae9f623af20f687cb178aa58aa5 | 2,530 | py | Python | sem/constants.py | YoannDupont/SEM | ff21c5dc9a8e99eda81dc266e67cfa97dec7c243 | [
"MIT"
] | 22 | 2016-11-13T21:08:58.000Z | 2021-04-26T07:04:54.000Z | sem/constants.py | Raphencoder/SEM | ff21c5dc9a8e99eda81dc266e67cfa97dec7c243 | [
"MIT"
] | 15 | 2016-11-15T10:21:07.000Z | 2021-11-08T10:08:05.000Z | sem/constants.py | Raphencoder/SEM | ff21c5dc9a8e99eda81dc266e67cfa97dec7c243 | [
"MIT"
] | 8 | 2016-11-15T10:21:41.000Z | 2022-03-04T21:28:05.000Z | # -*- coding: utf-8 -*-
"""
file: constants.py
Description: some useful constants that could be of some use in SEM and
beyond.
author: Yoann Dupont
MIT License
Copyright (c) 2018 Yoann Dupont
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation... | 32.857143 | 89 | 0.705929 |
f6039a035e0c79c81407aabe0db10a251b036b44 | 2,383 | py | Python | newsbreak.py | mitchsmith/news_munger | e9c8362dd3085acb2b1f0cfd4cb313ef9f6bf06d | [
"MIT"
] | null | null | null | newsbreak.py | mitchsmith/news_munger | e9c8362dd3085acb2b1f0cfd4cb313ef9f6bf06d | [
"MIT"
] | null | null | null | newsbreak.py | mitchsmith/news_munger | e9c8362dd3085acb2b1f0cfd4cb313ef9f6bf06d | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
""" This module provides a command line interface to news_munger. """
import datetime
import random
import argparse
from munger import DocumentCatalog, Munger
parser = argparse.ArgumentParser()
parser.parse_args()
## Classes ##
if __name__ == "__main__":
cata... | 26.775281 | 77 | 0.586655 |
f6076a72ecf2f080ef45e72da4240a2e7661a299 | 8,246 | py | Python | pipeline/dag.py | OpenSourceEconomics/pipeline | cdd9679c62af32f52a07aba800b752e90af08396 | [
"BSD-3-Clause"
] | 3 | 2020-03-23T12:15:19.000Z | 2020-05-12T11:52:21.000Z | pipeline/dag.py | OpenSourceEconomics/pipeline | cdd9679c62af32f52a07aba800b752e90af08396 | [
"BSD-3-Clause"
] | 22 | 2020-04-06T22:24:18.000Z | 2020-05-13T11:44:57.000Z | pipeline/dag.py | OpenSourceEconomics/pipeline | cdd9679c62af32f52a07aba800b752e90af08396 | [
"BSD-3-Clause"
] | null | null | null | """This module contains the code related to the DAG and the scheduler."""
from pathlib import Path
import matplotlib.pyplot as plt
import networkx as nx
import numpy as np
from matplotlib.colors import LinearSegmentedColormap
from mpl_toolkits.axes_grid1 import make_axes_locatable
from networkx.drawing import nx_pydot... | 31.96124 | 88 | 0.642251 |
f607f4917d87af5bd9f2a106689f14808e678707 | 2,459 | py | Python | windyquery/validator/fullname_json.py | bluerelay/windyquery | 049dc624f4c4a3210d455352b1495db6bd1ff441 | [
"MIT"
] | 51 | 2019-05-13T10:51:23.000Z | 2021-09-12T08:11:56.000Z | windyquery/validator/fullname_json.py | bluerelay/windyquery | 049dc624f4c4a3210d455352b1495db6bd1ff441 | [
"MIT"
] | 2 | 2020-10-08T16:28:45.000Z | 2021-06-23T03:27:42.000Z | windyquery/validator/fullname_json.py | bluerelay/windyquery | 049dc624f4c4a3210d455352b1495db6bd1ff441 | [
"MIT"
] | 3 | 2021-05-10T13:08:21.000Z | 2021-06-20T19:58:30.000Z | from windyquery.provider._base import JSONB
from ._base import _rule
from .fullname import Fullname
from .number import Number
from .operators.minus import Minus
| 30.7375 | 73 | 0.542497 |
f609ea1edf133c69b084cabfbd8b3cb1f4199f52 | 37 | py | Python | heatmap/__init__.py | Bilal-Yousaf/heatmap | 789907301f9663feca72fb84dffbe2de08869975 | [
"MIT"
] | 5 | 2020-03-25T20:31:48.000Z | 2021-04-23T09:53:50.000Z | heatmap/__init__.py | Bilal-Yousaf/HeatMap | 789907301f9663feca72fb84dffbe2de08869975 | [
"MIT"
] | null | null | null | heatmap/__init__.py | Bilal-Yousaf/HeatMap | 789907301f9663feca72fb84dffbe2de08869975 | [
"MIT"
] | null | null | null | from .heatmap import generate_heatmap | 37 | 37 | 0.891892 |
f60a3f4c653a3d461182600bc1efb2e3052bf960 | 1,575 | py | Python | download-files.py | CrowderSoup/download-files | 2abc35aecd010dd246e0b9b8af7880f51ea47b7e | [
"Unlicense"
] | null | null | null | download-files.py | CrowderSoup/download-files | 2abc35aecd010dd246e0b9b8af7880f51ea47b7e | [
"Unlicense"
] | null | null | null | download-files.py | CrowderSoup/download-files | 2abc35aecd010dd246e0b9b8af7880f51ea47b7e | [
"Unlicense"
] | null | null | null | import os, os.path, urllib.request, sys, getopt
if __name__ == "__main__":
main(sys.argv[1:])
| 30.288462 | 78 | 0.510476 |
f60af4235aef343759e761d60c46b44ec31d12af | 929 | py | Python | pynif3d/pipeline/base_pipeline.py | pfnet/pynif3d | da3680cce7e8fc4c194f13a1528cddbad9a18ab0 | [
"MIT"
] | 66 | 2021-08-18T01:30:17.000Z | 2022-02-19T10:35:52.000Z | pynif3d/pipeline/base_pipeline.py | pfnet/pynif3d | da3680cce7e8fc4c194f13a1528cddbad9a18ab0 | [
"MIT"
] | 6 | 2021-08-18T01:36:31.000Z | 2021-09-02T11:18:01.000Z | pynif3d/pipeline/base_pipeline.py | pfnet/pynif3d | da3680cce7e8fc4c194f13a1528cddbad9a18ab0 | [
"MIT"
] | 3 | 2021-11-22T23:06:20.000Z | 2022-02-10T06:24:40.000Z | import os
import gdown
import torch
import yaml
from pynif3d.common.verification import check_in_options, check_path_exists
from pynif3d.log.log_funcs import func_logger
| 28.151515 | 80 | 0.698601 |
f60b7b13f9cee75fd4af4cab97ad49f4feeb9a82 | 392 | py | Python | search.py | joyfulflyer/billboard-spotify | a6561e4718ea671721b2a8f900ecfbf49a9f6c1b | [
"MIT"
] | null | null | null | search.py | joyfulflyer/billboard-spotify | a6561e4718ea671721b2a8f900ecfbf49a9f6c1b | [
"MIT"
] | null | null | null | search.py | joyfulflyer/billboard-spotify | a6561e4718ea671721b2a8f900ecfbf49a9f6c1b | [
"MIT"
] | null | null | null | from spotify_auth import auth
from urllib import parse
import json
| 30.153846 | 77 | 0.701531 |
f60b96e5a2ce996ad44a1fdf8fb2152dfc983fc2 | 9,910 | py | Python | fastccd_support_ioc/fastccd_support_ioc.py | lbl-camera/fastccd_support_ioc | 80b3820744e9aec7923af6adec0a66a0c51b2c21 | [
"BSD-3-Clause"
] | null | null | null | fastccd_support_ioc/fastccd_support_ioc.py | lbl-camera/fastccd_support_ioc | 80b3820744e9aec7923af6adec0a66a0c51b2c21 | [
"BSD-3-Clause"
] | 1 | 2020-08-07T22:22:25.000Z | 2020-08-07T22:22:25.000Z | fastccd_support_ioc/fastccd_support_ioc.py | lbl-camera/fastccd_support_ioc | 80b3820744e9aec7923af6adec0a66a0c51b2c21 | [
"BSD-3-Clause"
] | 1 | 2021-02-08T22:06:05.000Z | 2021-02-08T22:06:05.000Z | from caproto.server import PVGroup, SubGroup, pvproperty, get_pv_pair_wrapper
from caproto import ChannelType
from . import utils, pvproperty_with_rbv, wrap_autosave, FastAutosaveHelper
from textwrap import dedent
import sys
from caproto.server import ioc_arg_parser, run
from caproto.sync.client import write, read
fro... | 43.656388 | 157 | 0.629566 |
f60c8d54e5e796dde011b4726884df78f2198799 | 1,529 | py | Python | MachineLearning/SparkPREDICT_E2E_MLFLOW_Xgboost.py | AjAgr/Synapse | b009b6479c3b9797a12e24dcd110b71ca8566212 | [
"MIT"
] | null | null | null | MachineLearning/SparkPREDICT_E2E_MLFLOW_Xgboost.py | AjAgr/Synapse | b009b6479c3b9797a12e24dcd110b71ca8566212 | [
"MIT"
] | null | null | null | MachineLearning/SparkPREDICT_E2E_MLFLOW_Xgboost.py | AjAgr/Synapse | b009b6479c3b9797a12e24dcd110b71ca8566212 | [
"MIT"
] | 1 | 2022-02-22T11:24:41.000Z | 2022-02-22T11:24:41.000Z | #!/usr/bin/env python
# coding: utf-8
# ## E2E Xgboost MLFLOW
# In[45]:
from pyspark.sql import SparkSession
from pyspark.sql.functions import col, pandas_udf,udf,lit
import azure.synapse.ml.predict as pcontext
import azure.synapse.ml.predict.utils._logger as synapse_predict_logger
import numpy as np
import panda... | 15.602041 | 75 | 0.666449 |
f60d8908048f4ecdd577d5074d14eeb34f78c5bb | 2,930 | py | Python | models/gaze_rnn77.py | yj-yu/Recurrent_Gaze_Prediction | cf366095f19cd8c9ce271930d194db12a7d45018 | [
"MIT"
] | 9 | 2019-06-06T14:55:56.000Z | 2022-01-27T09:35:17.000Z | models/gaze_rnn77.py | yj-yu/Recurrent_Gaze_Prediction | cf366095f19cd8c9ce271930d194db12a7d45018 | [
"MIT"
] | 1 | 2021-06-01T22:34:37.000Z | 2021-06-01T22:34:37.000Z | models/gaze_rnn77.py | yj-yu/Recurrent_Gaze_Prediction | cf366095f19cd8c9ce271930d194db12a7d45018 | [
"MIT"
] | null | null | null | #-*- coding: utf-8 -*-
"""
gaze_rnn7.py
Implement a simple recurrent gaze prediction model based on RNN(GRU).
In this version, the gaze DIM is REDUCED to 7x7 dimension.
"""
# TODO separate pupil from gazemaps, AWFUL design
import numpy as np
import os
import sys
import time
from PIL import Image
import tensorflow ... | 28.173077 | 84 | 0.713652 |
f60df9264d987445f7433e60e82a4593c3bbdb6a | 1,218 | py | Python | py/dcp/problems/graph/max_edges.py | bmoretz/Daily-Coding-Problem | f79e062e9f6e7b18b7e95c071fbe71ad104affcb | [
"MIT"
] | 1 | 2020-06-26T13:28:43.000Z | 2020-06-26T13:28:43.000Z | py/dcp/problems/graph/max_edges.py | bmoretz/Daily-Coding-Problem | f79e062e9f6e7b18b7e95c071fbe71ad104affcb | [
"MIT"
] | 7 | 2021-11-18T19:46:08.000Z | 2022-03-12T01:03:01.000Z | py/dcp/problems/graph/max_edges.py | bmoretz/Daily-Coding-Problem | f79e062e9f6e7b18b7e95c071fbe71ad104affcb | [
"MIT"
] | null | null | null | from collections import defaultdict
from .common import IGraph
''' Remove edges to create even trees.
You are given a tree with an even number of nodes. Consider each connection between a parent and child node to be an "edge". You
would like to remove some of these edges, such that the disconnected subtrees that rem... | 28.325581 | 128 | 0.656814 |
f60e8f8a52c502e39de2e2fbda338251bd902c5a | 1,362 | py | Python | test_pytrain/test_KNN/test_KNN.py | pytrain/pytrain-shallow | c873a6f11f1dd940da12e7c9a3c961507d064d9a | [
"MIT"
] | 20 | 2016-09-03T10:56:06.000Z | 2020-08-21T01:43:47.000Z | test_pytrain/test_KNN/test_KNN.py | pytrain/pytrain | c873a6f11f1dd940da12e7c9a3c961507d064d9a | [
"MIT"
] | 8 | 2016-11-14T12:33:38.000Z | 2017-07-14T15:43:53.000Z | test_pytrain/test_KNN/test_KNN.py | pytrain/pytrain | c873a6f11f1dd940da12e7c9a3c961507d064d9a | [
"MIT"
] | 7 | 2017-02-09T16:50:37.000Z | 2022-01-02T01:18:56.000Z | #
# test KNN
#
# @ author becxer
# @ email becxer87@gmail.com
#
from test_pytrain import test_Suite
from pytrain.KNN import KNN
from pytrain.lib import autotest
from pytrain.lib import dataset
import numpy as np
| 34.05 | 95 | 0.709251 |
f60f32aa489881ec2e8225930b221b8c8e96f54f | 2,416 | py | Python | python_data_utils/spark/ml/randomforest.py | surajiyer/python-data-utils | d6e9bf81204a01545a3edb165c5724eb24f37c18 | [
"MIT"
] | 4 | 2019-01-06T00:09:21.000Z | 2022-01-28T06:03:13.000Z | python_data_utils/spark/ml/randomforest.py | surajiyer/python-data-utils | d6e9bf81204a01545a3edb165c5724eb24f37c18 | [
"MIT"
] | null | null | null | python_data_utils/spark/ml/randomforest.py | surajiyer/python-data-utils | d6e9bf81204a01545a3edb165c5724eb24f37c18 | [
"MIT"
] | null | null | null | __all__ = ['RandomForestBinaryModel']
from pyspark.sql import DataFrame
from pyspark.ml.classification import RandomForestClassifier
from python_data_utils.spark.evaluation.multiclass import MulticlassEvaluator
from python_data_utils.spark.ml.base import BinaryClassCVModel, Metrics
| 39.606557 | 101 | 0.657699 |
f610b3662a3cf10a10d6b9f3bf736444d51ee13b | 2,815 | py | Python | predict.py | zahrabashir98/SmileDetection | 66700dfbd2809f057d224d438a75bef99edffc56 | [
"MIT"
] | 17 | 2019-02-19T15:14:43.000Z | 2021-07-09T14:36:19.000Z | predict.py | zahrabashir98/SmileDetection | 66700dfbd2809f057d224d438a75bef99edffc56 | [
"MIT"
] | 1 | 2021-01-07T02:51:35.000Z | 2021-01-07T02:51:35.000Z | predict.py | zahrabashir98/SmileDetection | 66700dfbd2809f057d224d438a75bef99edffc56 | [
"MIT"
] | 2 | 2019-02-01T17:46:39.000Z | 2020-06-17T12:10:52.000Z | import sys
import cv2
from keras.models import load_model
from matplotlib import pyplot as plt
import time
model = load_model("models/model.h5")
if __name__ == '__main__':
# start time
start_time = time.time()
image, gray_image = load_image(sys.argv[1])
for face_info in predict(gray_ima... | 26.308411 | 110 | 0.621314 |
f612b87c818bc244cde8457fdae9a749fd1f7f0f | 1,088 | py | Python | src/brute_force.py | tcysin/tsp-solver | 5361aefb7e2dc4d851320cd1cc8ac33aad50d76b | [
"MIT"
] | 2 | 2020-10-10T18:21:33.000Z | 2021-05-29T12:53:45.000Z | src/brute_force.py | DishanMdr/tsp-solver | 5361aefb7e2dc4d851320cd1cc8ac33aad50d76b | [
"MIT"
] | 4 | 2019-10-01T19:31:54.000Z | 2019-10-07T09:53:16.000Z | src/brute_force.py | AlekseiTcysin/tsp-solver | 5361aefb7e2dc4d851320cd1cc8ac33aad50d76b | [
"MIT"
] | 1 | 2021-05-29T12:53:47.000Z | 2021-05-29T12:53:47.000Z | """
Implementation of Brute Force algorithm.
Checks all possible tours and selects the shortest one.
"""
from itertools import permutations
def brute_force(graph):
"""Calculates and returns shortest tour using brute force approach.
Runs in O(n!). Provides exact solution.
Args:
graph: instance ... | 23.652174 | 71 | 0.613051 |
f6141ec62f73733e8e0035ee98f16f938d62b41d | 5,414 | py | Python | web_app.py | akshitagupta23/Udacity_DS_ND_Capstone_Project | 1c500765f84160312935c48f9c1432256cf5df06 | [
"MIT"
] | null | null | null | web_app.py | akshitagupta23/Udacity_DS_ND_Capstone_Project | 1c500765f84160312935c48f9c1432256cf5df06 | [
"MIT"
] | null | null | null | web_app.py | akshitagupta23/Udacity_DS_ND_Capstone_Project | 1c500765f84160312935c48f9c1432256cf5df06 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
# coding=utf-8
import streamlit as st
import numpy as np
import pandas as pd
import joblib
from sklearn.ensemble import RandomForestClassifier
from sklearn.pipeline import Pipeline, FeatureUnion
from sklearn.compose import ColumnTransformer
from sklearn.impute import SimpleImpute... | 42.629921 | 152 | 0.634281 |
f614a355b5c9fc85356cc143f4b8958e225a2420 | 9,315 | py | Python | evaluation.py | Sockeye-Project/decl-power-seq | b3eed4b7abfdac647b8ff7653806665436e3e54d | [
"MIT"
] | null | null | null | evaluation.py | Sockeye-Project/decl-power-seq | b3eed4b7abfdac647b8ff7653806665436e3e54d | [
"MIT"
] | null | null | null | evaluation.py | Sockeye-Project/decl-power-seq | b3eed4b7abfdac647b8ff7653806665436e3e54d | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
import argparse
import random
import timeit
import copy
from sequence_generation import State_Search_Flags, Topology, topological_sort
from enzian_descriptions import enzian_nodes, enzian_wires, enzian_nodes_EVAL3
problems = [
("p1", {"cpu" : "POWERED_ON", "fpga": "POWERED_ON"}, {"vdd_ddr... | 45.661765 | 198 | 0.620183 |
f614d1aa5bffc66394d94ec1d27b271cbd750435 | 3,647 | py | Python | venv/Lib/site-packages/gensim/test/test_probability_estimation.py | arnoyu-hub/COMP0016miemie | 59af664dcf190eab4f93cefb8471908717415fea | [
"MIT"
] | null | null | null | venv/Lib/site-packages/gensim/test/test_probability_estimation.py | arnoyu-hub/COMP0016miemie | 59af664dcf190eab4f93cefb8471908717415fea | [
"MIT"
] | null | null | null | venv/Lib/site-packages/gensim/test/test_probability_estimation.py | arnoyu-hub/COMP0016miemie | 59af664dcf190eab4f93cefb8471908717415fea | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2011 Radim Rehurek <radimrehurek@seznam.cz>
# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html
"""
Automated tests for probability estimation algorithms in the probability_estimation module.
"""
import logging
import un... | 35.754902 | 94 | 0.587332 |
f6157ffabb60051dc58e33f25b48c08c00d0742e | 5,877 | py | Python | src/geomm/centering.py | stxinsite/geomm | 05ce2404614e3a594c5d5e059b957140f4983bc3 | [
"MIT"
] | 3 | 2018-05-01T16:26:15.000Z | 2019-06-19T21:17:47.000Z | src/geomm/centering.py | stxinsite/geomm | 05ce2404614e3a594c5d5e059b957140f4983bc3 | [
"MIT"
] | null | null | null | src/geomm/centering.py | stxinsite/geomm | 05ce2404614e3a594c5d5e059b957140f4983bc3 | [
"MIT"
] | 1 | 2021-09-28T15:17:16.000Z | 2021-09-28T15:17:16.000Z | import numpy as np
from geomm.centroid import centroid
def center(coords, center_point):
"""Center coordinates at the origin based on a center point.
If idxs are given the center of mass is computed only from those
coordinates and if weights are given a weighted center of mass is
computed.
Param... | 31.095238 | 90 | 0.680619 |
f61742ad1e6b7bd4951030a62b2c0b4b421ab907 | 4,082 | py | Python | xigt/exporters/itsdb.py | lizcconrad/xigt | 2fd3e107dc2b5e8bf6fa4e6b13cf67028ff89093 | [
"MIT"
] | null | null | null | xigt/exporters/itsdb.py | lizcconrad/xigt | 2fd3e107dc2b5e8bf6fa4e6b13cf67028ff89093 | [
"MIT"
] | null | null | null | xigt/exporters/itsdb.py | lizcconrad/xigt | 2fd3e107dc2b5e8bf6fa4e6b13cf67028ff89093 | [
"MIT"
] | null | null | null | import logging
from os.path import isfile, join as pjoin
from os import environ
try:
from delphin import tsdb
except ImportError:
raise ImportError(
'Could not import pyDelphin module. Get it from here:\n'
' https://github.com/goodmami/pydelphin'
)
# ECC 2021-07-26: the lambda for i-comm... | 40.415842 | 316 | 0.638902 |
f6185b7b68831ed7849329b53e5d282146c91eaa | 1,072 | py | Python | spectrum_test.py | PeiKaLunCi/rectangular_RIE | 29afdde1798ac8c4fb5f162c2033269ac18e1583 | [
"MIT"
] | 2 | 2022-03-19T08:07:00.000Z | 2022-03-22T08:35:06.000Z | spectrum_test.py | PeiKaLunCi/rectangular_RIE | 29afdde1798ac8c4fb5f162c2033269ac18e1583 | [
"MIT"
] | null | null | null | spectrum_test.py | PeiKaLunCi/rectangular_RIE | 29afdde1798ac8c4fb5f162c2033269ac18e1583 | [
"MIT"
] | 1 | 2022-03-19T08:06:51.000Z | 2022-03-19T08:06:51.000Z | import numpy as np
import matplotlib.pyplot as plt
import g_functions as g_f
R1 = 2
R2 = .6
M = 500
Delta = .1
NB_POINTS = 2**10
EPSILON_IMAG = 1e-8
parameters = {
'M' : M,
'R1' : R1,
'R2' : R2,
'NB_POINTS' : NB_POINTS,
'EPSILON_IMAG' : EPSILON_IMAG,
've... | 23.822222 | 90 | 0.655784 |
f618776d83cae749bd8dfd7a18734f7ba04c9b06 | 1,129 | py | Python | Part_2_intermediate/mod_2/lesson_2/homework_1/homework.py | Mikma03/InfoShareacademy_Python_Courses | 3df1008c8c92831bebf1625f960f25b39d6987e6 | [
"MIT"
] | null | null | null | Part_2_intermediate/mod_2/lesson_2/homework_1/homework.py | Mikma03/InfoShareacademy_Python_Courses | 3df1008c8c92831bebf1625f960f25b39d6987e6 | [
"MIT"
] | null | null | null | Part_2_intermediate/mod_2/lesson_2/homework_1/homework.py | Mikma03/InfoShareacademy_Python_Courses | 3df1008c8c92831bebf1625f960f25b39d6987e6 | [
"MIT"
] | null | null | null |
# Utwrz klasy do reprezentacji Produktu, Zamwienia, Jabek i Ziemniakw.
# Stwrz po kilka obiektw typu jabko i ziemniak i wypisz ich typ za pomoc funkcji wbudowanej type.
# Stwrz list zawierajc 5 zamwie oraz sownik, w ktrym kluczami bd nazwy produktw
# a wartociami instancje klasy produkt.
if __name__ == '__main__... | 22.58 | 101 | 0.644818 |
f61930fbe75a973bf027da1a6d037d44481d82ff | 2,625 | py | Python | examples/validate_ndc.py | almarklein/visvis2 | 728a4b7434879d3606f32836eda3971ed73905f8 | [
"BSD-2-Clause"
] | 7 | 2019-12-20T14:15:53.000Z | 2020-05-03T17:43:02.000Z | examples/validate_ndc.py | almarklein/visvis2 | 728a4b7434879d3606f32836eda3971ed73905f8 | [
"BSD-2-Clause"
] | 30 | 2020-02-10T08:59:30.000Z | 2020-06-16T21:21:33.000Z | examples/validate_ndc.py | almarklein/visvis2 | 728a4b7434879d3606f32836eda3971ed73905f8 | [
"BSD-2-Clause"
] | null | null | null | """
Example (and test) for the NDC coordinates. Draws a square that falls partly out of visible range.
* The scene should show a band from the bottom left to the upper right.
* The bottom-left (NDC -1 -1) must be green, the upper-right (NDC 1 1) blue.
* The other corners must be black, cut off at exactly half way: the... | 28.225806 | 123 | 0.602667 |
f61a2ffd3ec4c8094b826196a15aa36e177ad663 | 122 | py | Python | myy/accounts/admin.py | ramadevim/Travel-website | b2bec8d7ea847b5105c181fe1099bb85950dbd76 | [
"MIT"
] | null | null | null | myy/accounts/admin.py | ramadevim/Travel-website | b2bec8d7ea847b5105c181fe1099bb85950dbd76 | [
"MIT"
] | null | null | null | myy/accounts/admin.py | ramadevim/Travel-website | b2bec8d7ea847b5105c181fe1099bb85950dbd76 | [
"MIT"
] | null | null | null | from django.contrib import admin
# Register your models here.
from .models import Register
admin.site.register(Register) | 20.333333 | 32 | 0.811475 |
f61b418707bd8d1c9d2bec14e8a8db0e5f4a45ab | 12,572 | py | Python | ipy/nuisancelib.py | chrispycheng/nuisance | 4ba140b2b8760a45a594cd49451b6d4a7e1cc3db | [
"Apache-2.0"
] | null | null | null | ipy/nuisancelib.py | chrispycheng/nuisance | 4ba140b2b8760a45a594cd49451b6d4a7e1cc3db | [
"Apache-2.0"
] | 8 | 2020-06-29T13:01:22.000Z | 2021-01-21T02:05:24.000Z | ipy/nuisancelib.py | chrispycheng/nuisance | 4ba140b2b8760a45a594cd49451b6d4a7e1cc3db | [
"Apache-2.0"
] | 1 | 2020-08-11T14:09:25.000Z | 2020-08-11T14:09:25.000Z | import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns
import statsmodels.api as sm
import datetime as dt
from statsmodels.stats.multitest import fdrcorrection
from pylab import savefig
# FUNCTIONS YOU CAN USE:
# analyses(filepath) spits out a nifty heatmap to let you check ... | 35.817664 | 124 | 0.613427 |
f61b72c600c72677f6d1712bc62795a8c1da3213 | 7,482 | py | Python | tests/test_config_defaults.py | nmichlo/eunomia | 5c6ef13b5af5335d4437867953b5eaa872ac56bb | [
"MIT"
] | 3 | 2021-02-07T17:55:46.000Z | 2021-02-15T11:58:36.000Z | tests/test_config_defaults.py | nmichlo/eunomia | 5c6ef13b5af5335d4437867953b5eaa872ac56bb | [
"MIT"
] | null | null | null | tests/test_config_defaults.py | nmichlo/eunomia | 5c6ef13b5af5335d4437867953b5eaa872ac56bb | [
"MIT"
] | null | null | null | import pytest
from eunomia.config._default import Default
from eunomia.config.nodes import ConfigNode
from tests.test_backend_obj import _make_config_group
# ========================================================================= #
# Test YAML & Custom Tags #
# ===... | 66.212389 | 189 | 0.62911 |
f61ba368dd6ce3592ab58a543cda6b7e4d14ce8d | 3,499 | py | Python | rj_gameplay/stp/coordinator.py | RoboJackets/robocup-software | ae2920b8b98213e625d0565dd67005e7a8595fac | [
"Apache-2.0"
] | 200 | 2015-01-26T01:45:34.000Z | 2022-03-19T13:05:31.000Z | rj_gameplay/stp/coordinator.py | RoboJackets/robocup-software | ae2920b8b98213e625d0565dd67005e7a8595fac | [
"Apache-2.0"
] | 1,254 | 2015-01-03T01:57:35.000Z | 2022-03-16T06:32:21.000Z | rj_gameplay/stp/coordinator.py | RoboJackets/robocup-software | ae2920b8b98213e625d0565dd67005e7a8595fac | [
"Apache-2.0"
] | 206 | 2015-01-21T02:03:18.000Z | 2022-02-01T17:57:46.000Z | """This module contains the implementation of the coordinator."""
from typing import Any, Dict, Optional, Type, List, Callable
import stp.play
import stp.rc as rc
import stp.role.assignment as assignment
import stp.situation
import stp.skill
from rj_msgs import msg
NUM_ROBOTS = 16
| 36.447917 | 98 | 0.654473 |
f61c2aa8d4b0c6d527e4128c6b11bb2329c17ab9 | 651 | py | Python | apf/core/templates/step/package/step.py | alercebroker/APF | d71cec49ee7f4a1667210b70c48501d036d5c08b | [
"MIT"
] | 2 | 2020-03-12T17:27:11.000Z | 2020-05-28T21:21:51.000Z | apf/core/templates/step/package/step.py | alercebroker/APF | d71cec49ee7f4a1667210b70c48501d036d5c08b | [
"MIT"
] | 15 | 2019-11-25T19:51:39.000Z | 2022-03-04T19:00:31.000Z | apf/core/templates/step/package/step.py | alercebroker/APF | d71cec49ee7f4a1667210b70c48501d036d5c08b | [
"MIT"
] | 2 | 2020-06-21T07:55:58.000Z | 2022-02-08T11:09:05.000Z | from apf.core.step import GenericStep
import logging
class {{step_name}}(GenericStep):
"""{{step_name}} Description
Parameters
----------
consumer : GenericConsumer
Description of parameter `consumer`.
**step_args : type
Other args passed to step (DB connections, API requests, etc... | 26.04 | 87 | 0.560676 |
f61d22ab24870ca8c56c224b5de2063d76fef120 | 5,107 | py | Python | NLPFeatures.py | Nik0l/UTemPr | cc8c64dd01910194d1f18530a687595dceff30df | [
"MIT"
] | 2 | 2016-02-24T19:36:12.000Z | 2017-08-04T07:46:06.000Z | NLPFeatures.py | Nik0l/UTemPr | cc8c64dd01910194d1f18530a687595dceff30df | [
"MIT"
] | 1 | 2016-03-03T09:18:07.000Z | 2016-03-03T09:18:07.000Z | NLPFeatures.py | Nik0l/UTemPr | cc8c64dd01910194d1f18530a687595dceff30df | [
"MIT"
] | 2 | 2017-04-18T09:56:30.000Z | 2019-11-22T01:40:10.000Z | __author__ = 'nb254'
#requires question_title_length.csv for processing: TITLE, BODY, POSTID, USERID
import nltk, csv
import pandas as pd
import Features as features
#test = "<p>I have an original Arduino UNO R3 that I bought and an <a href='http://arduino.cc/en/Main/ArduinoBoardSerialSingleSided3' rel='nofollow'>Ardui... | 45.598214 | 1,568 | 0.649305 |
f61e64e60bae831530e8e51ff7a2f490426146d5 | 4,925 | py | Python | Linux/.local/share/ulauncher/extensions/com.github.ulauncher.ulauncher-kill/main.py | altdx/dotfiles | ff058d343fc2c247f6cb3dfa53edd43f36c279cd | [
"MIT"
] | null | null | null | Linux/.local/share/ulauncher/extensions/com.github.ulauncher.ulauncher-kill/main.py | altdx/dotfiles | ff058d343fc2c247f6cb3dfa53edd43f36c279cd | [
"MIT"
] | null | null | null | Linux/.local/share/ulauncher/extensions/com.github.ulauncher.ulauncher-kill/main.py | altdx/dotfiles | ff058d343fc2c247f6cb3dfa53edd43f36c279cd | [
"MIT"
] | null | null | null | import os
import logging
import gi
gi.require_version('Gtk', '3.0')
gi.require_version('Notify', '0.7')
from locale import atof, setlocale, LC_NUMERIC
from gi.repository import Notify
from itertools import islice
from subprocess import check_output, check_call, CalledProcessError
from ulauncher.api.client.Extension i... | 38.476563 | 120 | 0.596954 |