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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bf355dafca1416e7627639d652c8fed0b68000f6 | 11,140 | py | Python | scripts/elasticArchive.py | softandbyte/elasticArchive | 90a2bbe28eca8ee4f8bdeca560e2202ceeef2ba4 | [
"MIT"
] | 16 | 2020-06-09T03:29:03.000Z | 2022-03-12T05:05:54.000Z | scripts/elasticArchive.py | softandbyte/elasticArchive | 90a2bbe28eca8ee4f8bdeca560e2202ceeef2ba4 | [
"MIT"
] | 2 | 2021-11-09T20:50:58.000Z | 2022-03-23T05:17:50.000Z | scripts/elasticArchive.py | softandbyte/elasticArchive | 90a2bbe28eca8ee4f8bdeca560e2202ceeef2ba4 | [
"MIT"
] | 5 | 2021-02-25T08:43:18.000Z | 2022-03-12T05:05:54.000Z | """
This script serializes the entire traffic dump, including websocket traffic,
as JSON, and either sends it to an elasticsearch endpoint for permenant storage.
Unlike some plugins, this one sends all requests and responses to elasticsearch
in real-time.
This script is based on the original mitmproxy scripts jsondum... | 34.382716 | 135 | 0.560503 |
bf35df664a6f006ae32195314f2da6cc632d3aa5 | 1,425 | py | Python | app_covid19data/tests/test_forms.py | falken20/covid19web | 3826e5cc51dc24d373a1f614ccdb7c30993312ce | [
"MIT"
] | null | null | null | app_covid19data/tests/test_forms.py | falken20/covid19web | 3826e5cc51dc24d373a1f614ccdb7c30993312ce | [
"MIT"
] | null | null | null | app_covid19data/tests/test_forms.py | falken20/covid19web | 3826e5cc51dc24d373a1f614ccdb7c30993312ce | [
"MIT"
] | null | null | null | from django.test import TestCase
from django.utils import timezone
from model_bakery import baker
from app_covid19data.models import DataCovid19Item
| 39.583333 | 104 | 0.648421 |
bf365d62fde31326141c9b2b13f45dee2f7dc651 | 823 | py | Python | python/2015/Day 1 Not Quite Lisp/main.py | FirinKinuo/advent-of-code | 97059fc2832b224c24e80bdb658c668bcbb1cb12 | [
"MIT"
] | null | null | null | python/2015/Day 1 Not Quite Lisp/main.py | FirinKinuo/advent-of-code | 97059fc2832b224c24e80bdb658c668bcbb1cb12 | [
"MIT"
] | null | null | null | python/2015/Day 1 Not Quite Lisp/main.py | FirinKinuo/advent-of-code | 97059fc2832b224c24e80bdb658c668bcbb1cb12 | [
"MIT"
] | null | null | null | from python import SolvingBase
if __name__ == "__main__":
solve = Solving(test_case=False)
print(f"First Problem: {solve.first_problem()}\nSecond Problem: {solve.second_problem()}")
| 24.939394 | 94 | 0.589307 |
bf366ea4faa9d83ef47009d3ecfc52584f3dc9bd | 10,032 | py | Python | downscale_/downscale/utils/utils_func.py | louisletoumelin/wind_downscaling_cnn | 9d08711620db1ee1f472847f0e822c5f4eb1d300 | [
"W3C"
] | null | null | null | downscale_/downscale/utils/utils_func.py | louisletoumelin/wind_downscaling_cnn | 9d08711620db1ee1f472847f0e822c5f4eb1d300 | [
"W3C"
] | 12 | 2021-11-30T16:56:05.000Z | 2021-12-13T16:26:31.000Z | downscale_/downscale/utils/utils_func.py | louisletoumelin/wind_downscaling_cnn | 9d08711620db1ee1f472847f0e822c5f4eb1d300 | [
"W3C"
] | null | null | null | import numpy as np
import pandas as pd
import datetime
from downscale.utils.decorators import timer_decorator
def select_range_7days_for_long_periods_prediction(begin="2017-8-2", end="2020-6-30", prm=None):
"""
This function takes as input a date range (begin and end) and split it in 7-days range around exc... | 33.66443 | 112 | 0.572269 |
bf3812d6d4f4e3479497b05d3cbefb4d7e0abe08 | 11,979 | py | Python | assetfactory/images/2021/08/30/base.py | reinhrst/reinhrst.github.io | 3e9dce26c923fca54589ffd1d19d56af0dd27910 | [
"CC0-1.0"
] | null | null | null | assetfactory/images/2021/08/30/base.py | reinhrst/reinhrst.github.io | 3e9dce26c923fca54589ffd1d19d56af0dd27910 | [
"CC0-1.0"
] | 6 | 2021-07-01T19:35:47.000Z | 2022-02-06T10:30:35.000Z | assetfactory/images/2021/08/30/base.py | reinhrst/reinhrst.github.io | 3e9dce26c923fca54589ffd1d19d56af0dd27910 | [
"CC0-1.0"
] | 1 | 2021-08-11T22:46:47.000Z | 2021-08-11T22:46:47.000Z | from __future__ import annotations
import pathlib
import typing as t
import numpy as np
import math
TYPE_MAP = {
"go-native": "Go (native)",
"go": "Go (WebAssembly)",
"tinygo": "TinyGo",
"fzf-for-js": "fzf-for-js",
"gopherjs": "GopherJS",
"go-debugnogc": "Go (WebAssembly; no GC)",
"tinyg... | 32.201613 | 115 | 0.515986 |
bf3866ddc85e7f86c0fd67e88f22e67c934b181e | 46,444 | py | Python | cifar_net_search/syclop_cifar_lstm_no_upsample.py | sashkarivkind/imagewalker | 999e1ae78cfe1512e1be894d9e7891a7d0c41233 | [
"Apache-2.0"
] | 2 | 2021-04-28T13:33:45.000Z | 2021-11-09T14:31:09.000Z | cifar_net_search/syclop_cifar_lstm_no_upsample.py | sashkarivkind/imagewalker | 999e1ae78cfe1512e1be894d9e7891a7d0c41233 | [
"Apache-2.0"
] | null | null | null | cifar_net_search/syclop_cifar_lstm_no_upsample.py | sashkarivkind/imagewalker | 999e1ae78cfe1512e1be894d9e7891a7d0c41233 | [
"Apache-2.0"
] | 1 | 2021-03-07T13:25:59.000Z | 2021-03-07T13:25:59.000Z | '''
The follwing code runs a test lstm network on the CIFAR dataset
I will explicitly write the networks here for ease of understanding
with cnn_sropout = 0.4 and rnn dropout = 0.2 and lr = 1e-3 res = 8
################# cnn_lstm_True Validation Accuracy = [0.363, 0.4258, 0.4332, 0.4142, 0.4802, 0.4838, 0.4988, ... | 143.789474 | 5,586 | 0.682284 |
bf3a501755b78c7fc3712365a7125b728750c56d | 497 | py | Python | smbf/lib/session_ok.py | Alpha-Demon404/RE-14 | b5b46a9f0eee218f2a642b615c77135c33c6f4ad | [
"MIT"
] | 39 | 2020-02-26T09:44:36.000Z | 2022-03-23T00:18:25.000Z | smbf/lib/session_ok.py | B4BY-DG/reverse-enginnering | b5b46a9f0eee218f2a642b615c77135c33c6f4ad | [
"MIT"
] | 15 | 2020-05-14T10:07:26.000Z | 2022-01-06T02:55:32.000Z | smbf/lib/session_ok.py | B4BY-DG/reverse-enginnering | b5b46a9f0eee218f2a642b615c77135c33c6f4ad | [
"MIT"
] | 41 | 2020-03-16T22:36:38.000Z | 2022-03-17T14:47:19.000Z | # Filenames :
# Python bytecode : 3.8
# Time succses decompiled Sat Sep 26 13:17:38 2020
# Selector <module> in line 1 file
# Timestamp in code : 2020-06-27 04:07:18
import requests
ses = requests.Session()
from bs4 import BeautifulSoup as parser
| 24.85 | 124 | 0.690141 |
bf3a5e972de95e03358433c9a82b2ed12f784caf | 1,025 | py | Python | Hackerrank_problems/counting_valleys/solution1_CountingValleys.py | gbrls/CompetitiveCode | b6f1b817a655635c3c843d40bd05793406fea9c6 | [
"MIT"
] | 165 | 2020-10-03T08:01:11.000Z | 2022-03-31T02:42:08.000Z | Hackerrank_problems/counting_valleys/solution1_CountingValleys.py | gbrls/CompetitiveCode | b6f1b817a655635c3c843d40bd05793406fea9c6 | [
"MIT"
] | 383 | 2020-10-03T07:39:11.000Z | 2021-11-20T07:06:35.000Z | Hackerrank_problems/counting_valleys/solution1_CountingValleys.py | gbrls/CompetitiveCode | b6f1b817a655635c3c843d40bd05793406fea9c6 | [
"MIT"
] | 380 | 2020-10-03T08:05:04.000Z | 2022-03-19T06:56:59.000Z | #
# working
# this function takes steps and detail of steps as input
# we declare a zero level above which any up step will be considered as a valley that is climbed
# we run from 0 to length of steps
# if we detect a "U" we increase the zero level
# similary if we detect "D" we decrease the zero... | 26.282051 | 100 | 0.616585 |
bf3a8b4843ac801538ccc5ef189a2684601a4cd6 | 10,419 | py | Python | SemanticCopyandPaste.py | WeiChihChern/Copy-Paste-Semantic-Segmentation | f7725bb385b6decc4e139262fc1c6e3ba30255a3 | [
"MIT"
] | 3 | 2021-08-19T20:08:27.000Z | 2021-09-25T04:12:59.000Z | SemanticCopyandPaste.py | WeiChihChern/Copy-Paste-Semantic-Segmentation | f7725bb385b6decc4e139262fc1c6e3ba30255a3 | [
"MIT"
] | null | null | null | SemanticCopyandPaste.py | WeiChihChern/Copy-Paste-Semantic-Segmentation | f7725bb385b6decc4e139262fc1c6e3ba30255a3 | [
"MIT"
] | 1 | 2022-01-03T07:53:34.000Z | 2022-01-03T07:53:34.000Z | import albumentations as A
import random
import cv2
import os
import numpy as np
import matplotlib.pyplot as plt
| 38.164835 | 335 | 0.585181 |
bf3af0a9b7fb2f7462965878fb057df5c1373af3 | 435 | py | Python | jobs/migrations/0005_job_github_url.py | TobiAdeniyi/django-portfolio-website | 6feda92179ea0d95af75a9f98d1857dafa5350df | [
"MIT"
] | 1 | 2021-03-05T19:07:18.000Z | 2021-03-05T19:07:18.000Z | jobs/migrations/0005_job_github_url.py | TobiAdeniyi/portfolio | 6feda92179ea0d95af75a9f98d1857dafa5350df | [
"MIT"
] | null | null | null | jobs/migrations/0005_job_github_url.py | TobiAdeniyi/portfolio | 6feda92179ea0d95af75a9f98d1857dafa5350df | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-03-04 14:42
from django.db import migrations, models
| 21.75 | 76 | 0.593103 |
bf3c0cb0df6b706d99fdac9f82ea5ed8b6f1d695 | 454 | py | Python | accounts/models.py | Chetnasahay/FireFox | f79b2ea5b03a5e591d9e0837881f4f1811e40ea1 | [
"MIT"
] | null | null | null | accounts/models.py | Chetnasahay/FireFox | f79b2ea5b03a5e591d9e0837881f4f1811e40ea1 | [
"MIT"
] | null | null | null | accounts/models.py | Chetnasahay/FireFox | f79b2ea5b03a5e591d9e0837881f4f1811e40ea1 | [
"MIT"
] | 1 | 2021-05-11T12:05:24.000Z | 2021-05-11T12:05:24.000Z | from django.db import models
# Create your models here.
| 32.428571 | 66 | 0.737885 |
170d1b573c4d139f35fc15ee0ec4fee9fb15a40f | 2,693 | py | Python | indexation.py | zaurelzo/Cerbere | 06232d1328585159c652f91a3d7748a8bb5023cf | [
"WTFPL"
] | null | null | null | indexation.py | zaurelzo/Cerbere | 06232d1328585159c652f91a3d7748a8bb5023cf | [
"WTFPL"
] | null | null | null | indexation.py | zaurelzo/Cerbere | 06232d1328585159c652f91a3d7748a8bb5023cf | [
"WTFPL"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import time,sys
from parser.parser import *
from database_Manager.databaseManager import *
from collections import Counter
if __name__ == '__main__':
#global Variables, chnages for a specific action (1 : do the action , 0 : don't do the action)
action=0
if len(sys.ar... | 32.841463 | 95 | 0.711103 |
170d3e0c7bb509155665bc1b0e23573bfaf15d45 | 1,214 | py | Python | _vcs/git.py | devsetup/devsetup_framework | 6ccd59dab83bc4305e8ff18321bfc14a4e7e79ca | [
"BSD-3-Clause"
] | null | null | null | _vcs/git.py | devsetup/devsetup_framework | 6ccd59dab83bc4305e8ff18321bfc14a4e7e79ca | [
"BSD-3-Clause"
] | null | null | null | _vcs/git.py | devsetup/devsetup_framework | 6ccd59dab83bc4305e8ff18321bfc14a4e7e79ca | [
"BSD-3-Clause"
] | null | null | null | # -*- coding:utf8 -*-
import os
import re
import dsf | 26.977778 | 98 | 0.696046 |
170d6548b3dc09065e688e302239c6b72d24faa5 | 243 | py | Python | 7KYU/is_prime.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | 4 | 2021-07-17T22:48:03.000Z | 2022-03-25T14:10:58.000Z | 7KYU/is_prime.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | null | null | null | 7KYU/is_prime.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | 3 | 2021-06-14T14:18:16.000Z | 2022-03-16T06:02:02.000Z | def is_prime(n: int) -> bool:
'''
This function returns True if n is a prime number otherwise return False.
'''
if n <= 1:
return False
d = 2
while d * d <= n and n % d != 0:
d += 1
return d * d > n
| 22.090909 | 77 | 0.497942 |
1710ee96f11f5467c52c0c184c4411c5e7e24339 | 1,628 | py | Python | HSM/load_data.py | 18F/10x-MLaaS | 3e1df3bbd88037c20e916fab2c07117a63e3c639 | [
"CC0-1.0"
] | 13 | 2019-03-15T20:30:35.000Z | 2022-02-19T08:05:10.000Z | HSM/load_data.py | 18F/10x-MLaaS | 3e1df3bbd88037c20e916fab2c07117a63e3c639 | [
"CC0-1.0"
] | 106 | 2018-11-28T21:17:55.000Z | 2022-03-25T09:18:27.000Z | HSM/load_data.py | 18F/10x-MLaaS | 3e1df3bbd88037c20e916fab2c07117a63e3c639 | [
"CC0-1.0"
] | 8 | 2019-01-05T16:31:02.000Z | 2022-03-20T15:35:06.000Z | import json
from argparse import ArgumentParser
import pandas as pd
from utils import db, db_utils
from utils.db import Data, SupportData
filter_feature = 'Comments Concatenated'
validation = 'Validation'
if __name__ == '__main__':
program_desc = '''This application will get the spreadsheet and pull out essent... | 30.716981 | 107 | 0.699017 |
17111432226dd73d653390de29656f4d3d8a9a11 | 2,882 | py | Python | tools/optimization/driver/ask_tell_parallel_driver.py | MRossol/HOPP | c8bcf610fdd2cbb27a807ddaf444684ef1aab7e8 | [
"BSD-3-Clause"
] | 3 | 2021-03-10T20:03:42.000Z | 2022-03-18T17:10:04.000Z | tools/optimization/driver/ask_tell_parallel_driver.py | MRossol/HOPP | c8bcf610fdd2cbb27a807ddaf444684ef1aab7e8 | [
"BSD-3-Clause"
] | 14 | 2020-12-28T22:32:07.000Z | 2022-03-17T15:33:04.000Z | tools/optimization/driver/ask_tell_parallel_driver.py | MRossol/HOPP | c8bcf610fdd2cbb27a807ddaf444684ef1aab7e8 | [
"BSD-3-Clause"
] | 8 | 2021-01-19T02:39:01.000Z | 2022-01-31T18:04:39.000Z | import multiprocessing
from typing import (
Callable,
Tuple,
)
from ..data_logging.data_recorder import DataRecorder
from ..driver.ask_tell_driver import AskTellDriver
from ..optimizer.ask_tell_optimizer import AskTellOptimizer
from .ask_tell_parallel_driver_fns import *
| 32.022222 | 116 | 0.611381 |
17111a7abf53a035de98baa91e71385ab4317ae0 | 7,123 | py | Python | pygcn/models.py | coquid/pygcn | a11788468514cce47bd4262849456895def13714 | [
"MIT"
] | null | null | null | pygcn/models.py | coquid/pygcn | a11788468514cce47bd4262849456895def13714 | [
"MIT"
] | null | null | null | pygcn/models.py | coquid/pygcn | a11788468514cce47bd4262849456895def13714 | [
"MIT"
] | null | null | null | import torch.nn as nn
import torch.nn.functional as F
from pygcn.layers import GraphConvolution, MyGraphConvolution
| 38.090909 | 62 | 0.600168 |
1711d50df16cf6bbbc6b89a5b298a52cab9c6c7f | 4,255 | py | Python | main.py | BenAsaf/moodle-attendance-bot | bd27263fbb57badbe0ec622b8f72f507795591a2 | [
"MIT"
] | null | null | null | main.py | BenAsaf/moodle-attendance-bot | bd27263fbb57badbe0ec622b8f72f507795591a2 | [
"MIT"
] | null | null | null | main.py | BenAsaf/moodle-attendance-bot | bd27263fbb57badbe0ec622b8f72f507795591a2 | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.common import exceptions
import time
import sched
MOODLE_USER_NAME = ""
MOODLE_PASSWORD = ""
MOODLE_HOME_PAGE = "Moodle Address" # THe moodle main homepage
COURSE_TITLE = "Name of the course as it shows up on the left" # What course to search for in the list
START_HOUR, ... | 32.984496 | 127 | 0.683901 |
1712f4a188130478cc3e6228d716f80f0d9dd93a | 445 | py | Python | iec104/types.py | seregichevks/iec104 | fa7905247869c7a8934dd6a003cb5091b5b1211c | [
"Apache-2.0"
] | 73 | 2015-03-19T03:29:29.000Z | 2022-02-28T05:57:23.000Z | iec104/types.py | seregichevks/iec104 | fa7905247869c7a8934dd6a003cb5091b5b1211c | [
"Apache-2.0"
] | 1 | 2015-06-19T06:01:08.000Z | 2017-10-10T11:09:06.000Z | iec104/types.py | seregichevks/iec104 | fa7905247869c7a8934dd6a003cb5091b5b1211c | [
"Apache-2.0"
] | 52 | 2015-03-04T08:32:31.000Z | 2022-02-05T15:45:13.000Z | # -*- coding: utf-8 -*-
from datetime import datetime
| 22.25 | 72 | 0.593258 |
17134739b8596a864d6e6e37035825d72ffbe045 | 3,119 | py | Python | securetea/lib/antivirus/scanner/yara_scanner.py | neerajv18/SecureTea-Project | e999cbe7c8e497c69b76b4c886de0d063169ea03 | [
"MIT"
] | 257 | 2018-03-28T12:43:20.000Z | 2022-03-29T07:07:23.000Z | securetea/lib/antivirus/scanner/yara_scanner.py | neerajv18/SecureTea-Project | e999cbe7c8e497c69b76b4c886de0d063169ea03 | [
"MIT"
] | 155 | 2018-03-31T14:57:46.000Z | 2022-03-17T18:12:41.000Z | securetea/lib/antivirus/scanner/yara_scanner.py | neerajv18/SecureTea-Project | e999cbe7c8e497c69b76b4c886de0d063169ea03 | [
"MIT"
] | 132 | 2018-03-27T06:25:20.000Z | 2022-03-28T11:32:45.000Z | # -*- coding: utf-8 -*-
u"""Yara Scanner module for SecureTea AntiVirus.
Project:
Author: Abhishek Sharma <abhishek_official@hotmail.com> , Jul 4 2019
Version: 1.4
Module: SecureTea
"""
from securetea.lib.antivirus.scanner.scanner_parent import Scanner
import sys
import os
yar... | 30.281553 | 96 | 0.520359 |
171703df70423764cdb150d7746703a8105fdfbc | 5,823 | py | Python | stable_baselines3/common/buffer_multi_level.py | atishdixit16/stable-baselines3 | 0188d6a7b0c905693f41a68484d71b02faee6146 | [
"MIT"
] | null | null | null | stable_baselines3/common/buffer_multi_level.py | atishdixit16/stable-baselines3 | 0188d6a7b0c905693f41a68484d71b02faee6146 | [
"MIT"
] | null | null | null | stable_baselines3/common/buffer_multi_level.py | atishdixit16/stable-baselines3 | 0188d6a7b0c905693f41a68484d71b02faee6146 | [
"MIT"
] | null | null | null | from os import times
from typing import Generator, Optional, Union, NamedTuple
import numpy as np
import torch as th
from gym import spaces
from stable_baselines3.common.type_aliases import RolloutBufferSamples
from stable_baselines3.common.buffers import RolloutBuffer
from stable_baselines3.common.vec_env import Vec... | 37.567742 | 141 | 0.644341 |
171b77518c7cb37c9e4c98fa3f24461a2dd6e589 | 3,032 | py | Python | Scripts/plot_ArcticSystemsWorkshop_Fig2.py | zmlabe/ThicknessSensitivity | 6defdd897a61d7d1a02f34a9f4ec92b2b17b3075 | [
"MIT"
] | 1 | 2017-10-22T02:22:14.000Z | 2017-10-22T02:22:14.000Z | Scripts/plot_ArcticSystemsWorkshop_Fig2.py | zmlabe/ThicknessSensitivity | 6defdd897a61d7d1a02f34a9f4ec92b2b17b3075 | [
"MIT"
] | null | null | null | Scripts/plot_ArcticSystemsWorkshop_Fig2.py | zmlabe/ThicknessSensitivity | 6defdd897a61d7d1a02f34a9f4ec92b2b17b3075 | [
"MIT"
] | 4 | 2018-04-05T17:55:36.000Z | 2022-03-31T07:05:01.000Z | """
Plot for NCAR Arctic Systems workshop poster. Graph is DJF sea ice volume
from PIOMAS over the satellite era.
Notes
-----
Author : Zachary Labe
Date : 4 April 2018
"""
### Import modules
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
from mpl_toolkits.basemap i... | 30.626263 | 92 | 0.663918 |
171ba407be1f7b1a08a60731bdef6857373c9c26 | 97 | py | Python | binary/setup.py | namsral/piku | 3159127df0d82a49b4efc319344f42e42cbe7867 | [
"MIT"
] | 1,424 | 2019-08-23T22:20:26.000Z | 2022-03-30T16:16:50.000Z | binary/setup.py | namsral/piku | 3159127df0d82a49b4efc319344f42e42cbe7867 | [
"MIT"
] | 125 | 2019-08-22T21:52:33.000Z | 2022-03-22T03:03:51.000Z | binary/setup.py | namsral/piku | 3159127df0d82a49b4efc319344f42e42cbe7867 | [
"MIT"
] | 45 | 2019-08-24T08:13:02.000Z | 2022-03-31T20:34:30.000Z | from distutils.core import setup
setup(name='piku-binary', version='0.0.1', scripts=['piku.py'])
| 32.333333 | 63 | 0.721649 |
171f19a1c9e621f8b1151c6b7c0684a1d90d12d0 | 552 | py | Python | src/ch6/heap_sort.py | tchitchikov/algorithms_practice | 6a1ab226b4eb664a8a46853c94148a1ad0e0a558 | [
"MIT"
] | null | null | null | src/ch6/heap_sort.py | tchitchikov/algorithms_practice | 6a1ab226b4eb664a8a46853c94148a1ad0e0a558 | [
"MIT"
] | null | null | null | src/ch6/heap_sort.py | tchitchikov/algorithms_practice | 6a1ab226b4eb664a8a46853c94148a1ad0e0a558 | [
"MIT"
] | null | null | null | import random
from heaps import max_heaps, min_heaps
if __name__ == '__main__':
# array = [5, 1, 3, 4, 2]
array = [random.randrange(0,10) for x in range(15)]
print(max_heaps.build_max_heap(array))
print(heap_sort(array))
print(min_heaps.build_min_heap(array))
| 21.230769 | 55 | 0.615942 |
171f9e469a7e47e8361d3c06fc99723269112474 | 5,321 | py | Python | test_plmn_codec.py | TwilioDevEd/super-sim-uplmn-coder | a098f18a573364e946f44d0fb14ab4005dc46a6d | [
"MIT"
] | null | null | null | test_plmn_codec.py | TwilioDevEd/super-sim-uplmn-coder | a098f18a573364e946f44d0fb14ab4005dc46a6d | [
"MIT"
] | null | null | null | test_plmn_codec.py | TwilioDevEd/super-sim-uplmn-coder | a098f18a573364e946f44d0fb14ab4005dc46a6d | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
'''
Super SIM UPLMN Codec
@version 1.0.0
@author Tony Smith (@smittytone)
@copyright Twilio, Inc.
@licence MIT
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 w... | 39.125 | 245 | 0.671866 |
17211f08965cfcc8becd31fe9182b1682d452336 | 2,110 | py | Python | setup.py | nickhand/jupyter-panel-proxy | 55f405b7292df281dfd0306f1154fb31992eef19 | [
"BSD-3-Clause"
] | 3 | 2020-04-17T19:54:48.000Z | 2021-03-07T17:08:06.000Z | setup.py | nickhand/jupyter-panel-proxy | 55f405b7292df281dfd0306f1154fb31992eef19 | [
"BSD-3-Clause"
] | 12 | 2020-03-04T13:45:26.000Z | 2022-01-14T04:01:53.000Z | setup.py | nickhand/jupyter-panel-proxy | 55f405b7292df281dfd0306f1154fb31992eef19 | [
"BSD-3-Clause"
] | 3 | 2021-03-08T13:26:50.000Z | 2021-12-20T01:02:00.000Z | import param
from setuptools import find_packages, setup
extras_require = {
'build': ['param >=1.7.0', 'setuptools'],
'tests': [
'flake8',
'twine',
'rfc3986',
'keyring'
],
}
setup_args = dict(
name="jupyter-panel-proxy",
description='Jupyter Server Proxy for Panel... | 31.969697 | 96 | 0.619905 |
172229cdfd779697e208462fd6b7eaf4fd180fa2 | 4,579 | py | Python | cli/api.py | chacreton190/covid-data-model | 10e86dee0aa17e9a4261787203d30c4631b5afb1 | [
"MIT"
] | null | null | null | cli/api.py | chacreton190/covid-data-model | 10e86dee0aa17e9a4261787203d30c4631b5afb1 | [
"MIT"
] | null | null | null | cli/api.py | chacreton190/covid-data-model | 10e86dee0aa17e9a4261787203d30c4631b5afb1 | [
"MIT"
] | null | null | null | import api
import logging
import pathlib
import click
import itertools
import us
from api.can_api_definition import CovidActNowAreaTimeseries
from api.can_api_definition import CovidActNowBulkTimeseries
from libs.pipelines import api_pipeline
from libs.datasets.dataset_utils import AggregationLevel
from libs.datasets i... | 33.181159 | 100 | 0.72767 |
17227cf30b721c2e199e41d4753d20961284c5a7 | 2,335 | py | Python | WilliamWallace/choose_db_dialog.py | gilliM/wallace | 59202aefb6375f23fa6be72c13969bfe36614433 | [
"Apache-2.0"
] | null | null | null | WilliamWallace/choose_db_dialog.py | gilliM/wallace | 59202aefb6375f23fa6be72c13969bfe36614433 | [
"Apache-2.0"
] | null | null | null | WilliamWallace/choose_db_dialog.py | gilliM/wallace | 59202aefb6375f23fa6be72c13969bfe36614433 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
/***************************************************************************
WilliamWallaceDialog
A QGIS plugin
This plugin do a supervised classification
-------------------
begin : 2016-05-17
git... | 40.258621 | 77 | 0.468951 |
1722e1bc2522475bf1abe2be156b72964c609133 | 573 | py | Python | set3/p3_8.py | matheuspercario/python-mit | fc4ae1e546f33e9a77fd4c51a4ddc0854ab06617 | [
"MIT"
] | null | null | null | set3/p3_8.py | matheuspercario/python-mit | fc4ae1e546f33e9a77fd4c51a4ddc0854ab06617 | [
"MIT"
] | null | null | null | set3/p3_8.py | matheuspercario/python-mit | fc4ae1e546f33e9a77fd4c51a4ddc0854ab06617 | [
"MIT"
] | null | null | null | # PYTHON - MIT - UNICAMP
# =============================================================================
# Created By : Matheus Percrio Bruder
# Created Date : February 7th, 2021
# ============================================================================
# print(composite_result(f_1, f_2, 5))
# composite_f1_... | 19.758621 | 79 | 0.458988 |
172496d4e1a8fa80c8e14527010611354beb9faf | 20,039 | py | Python | PyYDLidar/PyX.py | SweiLz/PyYDLidar | ce2d916904af6cad3f64c6a48f7e6534b952d9a9 | [
"MIT"
] | 6 | 2020-09-02T15:32:22.000Z | 2021-12-12T08:27:10.000Z | PyYDLidar/PyX.py | SweiLz/PyYDLidar | ce2d916904af6cad3f64c6a48f7e6534b952d9a9 | [
"MIT"
] | 1 | 2020-03-21T15:24:30.000Z | 2020-03-22T16:50:33.000Z | PyYDLidar/PyX.py | SweiLz/PyYDLidar | ce2d916904af6cad3f64c6a48f7e6534b952d9a9 | [
"MIT"
] | null | null | null | import threading
import time
from math import atan, pi
import numpy as np
from serial import Serial
# if __name__ == "__main__":
# lidar = YDLidarX4("/dev/ttyUSB0")
# lidar.initialize()
# lidar.startScan()
# # for i in range(5):
# # lidar.doProcessSimple()
# # print(lidar._serial.inWaitin... | 33.849662 | 111 | 0.532062 |
1724b372c51eac0a72bead9ebc774a9fc7671773 | 1,868 | py | Python | acs_test_suites/OTC/libs/pyunit/testlib/multimedia/base.py | wangji1/test-framework-and-suites-for-android | 59564f826f205fe7fab64f45b88b1a6dde6900af | [
"Apache-2.0"
] | 8 | 2018-09-14T01:34:01.000Z | 2021-07-01T02:00:23.000Z | acs_test_suites/OTC/libs/pyunit/testlib/multimedia/base.py | wangji1/test-framework-and-suites-for-android | 59564f826f205fe7fab64f45b88b1a6dde6900af | [
"Apache-2.0"
] | 3 | 2019-09-10T11:39:50.000Z | 2019-10-10T08:26:22.000Z | acs_test_suites/OTC/libs/pyunit/testlib/multimedia/base.py | wangji1/test-framework-and-suites-for-android | 59564f826f205fe7fab64f45b88b1a6dde6900af | [
"Apache-2.0"
] | 9 | 2018-10-11T15:14:03.000Z | 2021-02-17T11:37:20.000Z | '''
Copyright (C) 2018 Intel Corporation
?
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,
so... | 25.243243 | 91 | 0.633833 |
1725e9716ced32c4e508d22f5f3d4b1ba272e429 | 44,983 | py | Python | Icarus/Photometry/Photometry_legacy.py | mhvk/Icarus | bd07ba440cc82d4374e90d6d95dc8844fd82ff19 | [
"BSD-3-Clause"
] | 10 | 2016-03-01T10:12:30.000Z | 2021-08-02T02:36:53.000Z | Icarus/Photometry/Photometry_legacy.py | mhvk/Icarus | bd07ba440cc82d4374e90d6d95dc8844fd82ff19 | [
"BSD-3-Clause"
] | 2 | 2016-03-30T07:13:09.000Z | 2016-04-15T08:54:09.000Z | Icarus/Photometry/Photometry_legacy.py | mhvk/Icarus | bd07ba440cc82d4374e90d6d95dc8844fd82ff19 | [
"BSD-3-Clause"
] | 13 | 2016-02-29T19:20:01.000Z | 2017-05-21T15:25:32.000Z | # Licensed under a 3-clause BSD style license - see LICENSE
from __future__ import print_function, division
__all__ = ["Photometry_legacy"]
from ..Utils.import_modules import *
from .. import Utils
from .. import Core
from .. import Atmosphere
######################## class Photometry ########################
####... | 52.003468 | 262 | 0.569415 |
172603d967e38fd3517415d28c601fcda847ad6a | 827 | py | Python | library/co2.py | juby-gif/air-quality-lib | dee707a7cf1479bf7a8d9f4661a87a0c523c895f | [
"BSD-3-Clause"
] | 1 | 2019-09-22T22:20:35.000Z | 2019-09-22T22:20:35.000Z | library/co2.py | juby-gif/air-quality-lib | dee707a7cf1479bf7a8d9f4661a87a0c523c895f | [
"BSD-3-Clause"
] | null | null | null | library/co2.py | juby-gif/air-quality-lib | dee707a7cf1479bf7a8d9f4661a87a0c523c895f | [
"BSD-3-Clause"
] | null | null | null | #a2.t4 #This program is to create a function to check carbondioxide content in air
#taking advantage of python statistics library
import statistics
| 55.133333 | 104 | 0.756953 |
17271fe6063a50ed2061ed3af93c658a70080d06 | 3,952 | py | Python | stayhome/business/forms/add_form.py | mageo/stayhomech | 5afe922b13f0350a79eaff0401709f99c5a31e8b | [
"MIT"
] | 3 | 2020-03-20T11:01:57.000Z | 2020-03-20T16:29:12.000Z | stayhome/business/forms/add_form.py | stayhomech/stayhomech | 5afe922b13f0350a79eaff0401709f99c5a31e8b | [
"MIT"
] | 74 | 2020-03-23T21:35:07.000Z | 2020-04-27T12:55:50.000Z | stayhome/business/forms/add_form.py | mageo/stayhomech | 5afe922b13f0350a79eaff0401709f99c5a31e8b | [
"MIT"
] | 3 | 2020-03-20T11:02:35.000Z | 2020-03-20T16:29:23.000Z | import json
import os
import uuid
from django import forms
from captcha.fields import ReCaptchaField
from phonenumber_field.formfields import PhoneNumberField
from django.utils.translation import gettext_lazy as _
from django.utils.translation import get_language
from geodata.models import NPA
from business.models im... | 29.274074 | 139 | 0.585779 |
172871b0e7ec867be29846f855105f3c9e31abaf | 144 | py | Python | cherry/nn/__init__.py | acse-yl27218/cherry | 5b349cae64b282facf5a874164690c06808b1c61 | [
"Apache-2.0"
] | 160 | 2019-09-14T05:33:29.000Z | 2022-03-12T18:58:51.000Z | cherry/nn/__init__.py | acse-yl27218/cherry | 5b349cae64b282facf5a874164690c06808b1c61 | [
"Apache-2.0"
] | 14 | 2019-12-05T12:14:05.000Z | 2022-02-28T14:52:52.000Z | cherry/nn/__init__.py | acse-yl27218/cherry | 5b349cae64b282facf5a874164690c06808b1c61 | [
"Apache-2.0"
] | 28 | 2019-09-17T02:25:46.000Z | 2022-03-12T19:53:58.000Z | #!/usr/bin/env python3
from .init import robotics_init_
from .robotics_layers import RoboticsLinear
from .epsilon_greedy import EpsilonGreedy
| 20.571429 | 43 | 0.833333 |
172924a6a260577eee406ab8308643a692027ef4 | 1,897 | py | Python | src/management_tools.py | EOEPCA/um-pep-engine | efdf87027b54efc5686b3abd3882095441994978 | [
"Apache-2.0"
] | null | null | null | src/management_tools.py | EOEPCA/um-pep-engine | efdf87027b54efc5686b3abd3882095441994978 | [
"Apache-2.0"
] | 3 | 2021-04-12T11:40:39.000Z | 2022-03-08T17:04:03.000Z | src/management_tools.py | EOEPCA/um-pep-engine | efdf87027b54efc5686b3abd3882095441994978 | [
"Apache-2.0"
] | 1 | 2020-07-22T10:35:58.000Z | 2020-07-22T10:35:58.000Z | #!/usr/local/bin/python3
import argparse
import sys
from handlers.mongo_handler import Mongo_Handler
from bson.json_util import dumps
custom_mongo = Mongo_Handler("resource_db", "resources")
parser = argparse.ArgumentParser(description='Operational management of resources.')
parser.add_argument('action', metavar='ac... | 33.875 | 84 | 0.641539 |
1729bc1792141e43d686d08430a38150299f5fe9 | 56 | py | Python | Web/venv/lib/python3.5/os.py | Pancras-Zheng/Graduation-Project | 5d1ae78d5e890fa7ecc2456d0d3d22bdea7c29f0 | [
"MIT"
] | 37 | 2018-01-25T03:14:24.000Z | 2021-12-15T10:02:37.000Z | Web/venv/lib/python3.5/os.py | Pancras-Zheng/Graduation-Project | 5d1ae78d5e890fa7ecc2456d0d3d22bdea7c29f0 | [
"MIT"
] | null | null | null | Web/venv/lib/python3.5/os.py | Pancras-Zheng/Graduation-Project | 5d1ae78d5e890fa7ecc2456d0d3d22bdea7c29f0 | [
"MIT"
] | 10 | 2019-04-11T07:27:10.000Z | 2021-11-24T11:16:14.000Z | IntxLNK/ u s r / l i b / p y t h o n 3 . 5 / o s . p y | 56 | 56 | 0.446429 |
172a85f182f53fccf2d57615f7dc161c29331240 | 2,310 | py | Python | python/speaker_2_sound.py | now-start/20_HI001L_- | 494607c21a17c093e0d6bad102416c1afa348982 | [
"MIT"
] | null | null | null | python/speaker_2_sound.py | now-start/20_HI001L_- | 494607c21a17c093e0d6bad102416c1afa348982 | [
"MIT"
] | null | null | null | python/speaker_2_sound.py | now-start/20_HI001L_- | 494607c21a17c093e0d6bad102416c1afa348982 | [
"MIT"
] | null | null | null | # speaker_2_sound.py
# , wav ,
# (, wav )
# () , (wav)
import pyaudio
import wave
# , (Merge),
from pydub import AudioSegment
from pydub.playback import play
from scipy.io import wavfile
import matplotlib.pyplot as plt
CHUNK = 1024
FORMAT = pyaudio.paInt16 # Portaudio Sample Format
CHANNE... | 23.814433 | 74 | 0.713853 |
172ae13c89d09756ca732a1e61abb2c47a124303 | 263 | py | Python | exercicios/ex008.py | thiago5171/python. | 92010818bb18ac906a79da762cd7cf219b308a6d | [
"MIT"
] | 1 | 2021-01-04T05:33:32.000Z | 2021-01-04T05:33:32.000Z | exercicios/ex008.py | thiago5171/python. | 92010818bb18ac906a79da762cd7cf219b308a6d | [
"MIT"
] | null | null | null | exercicios/ex008.py | thiago5171/python. | 92010818bb18ac906a79da762cd7cf219b308a6d | [
"MIT"
] | null | null | null | #Crie um programa que leia quanto dinheiro uma pessoa tem na carteira e mostre quantos dlares ela pode comprar.
real = float(input("quantos reais voce tem na carteira: R$"))
dolar = real/5.31
print("com R${:.2f} voce pode comprar U${:.2f}.".format(real,dolar)) | 65.75 | 112 | 0.730038 |
172d04249db22c0e936f3d55daaddef381d26533 | 1,230 | py | Python | demo_wait_negative.py | rdagger/micropython-ads1220 | c90f939517c8163b234210b8cf91b3ce948b5b1c | [
"MIT"
] | 2 | 2021-08-25T11:40:23.000Z | 2022-02-28T05:31:18.000Z | demo_wait_negative.py | rdagger/micropython-ads1220 | c90f939517c8163b234210b8cf91b3ce948b5b1c | [
"MIT"
] | null | null | null | demo_wait_negative.py | rdagger/micropython-ads1220 | c90f939517c8163b234210b8cf91b3ce948b5b1c | [
"MIT"
] | 1 | 2021-08-08T11:39:47.000Z | 2021-08-08T11:39:47.000Z | """ADS1220 example (monitor for negative voltage)."""
from time import sleep
from machine import Pin, SPI # type: ignore
from ads1220 import ADC
cs = 15 # Chip select pin
drdy = 27 # Data ready pin
spi = SPI(1,
baudrate=10000000, # 10 MHz (try lower speed to troubleshoot)
sck=Pin(14),
... | 26.73913 | 72 | 0.598374 |
172ec1ffd20a09752459f22ce0256f74dd0dd346 | 10,026 | py | Python | models/unet.py | c22n/unet-pytorch | fc0db7ca69d4149c736b8d0923272f14fb5693fe | [
"MIT"
] | 3 | 2018-03-10T05:48:42.000Z | 2018-07-25T01:18:30.000Z | models/unet.py | c22n/unet-pytorch | fc0db7ca69d4149c736b8d0923272f14fb5693fe | [
"MIT"
] | null | null | null | models/unet.py | c22n/unet-pytorch | fc0db7ca69d4149c736b8d0923272f14fb5693fe | [
"MIT"
] | null | null | null | ### Class to define 3D U-Net.
from typing import List, Tuple
import numpy as np
import torch
from torch.autograd import Variable
import torch.nn as nn
import torch.nn.functional as F
from models.custom_layers import Softmax3d
| 35.679715 | 80 | 0.555855 |
172edcbd3b6c7bbc0d143811122621972d076286 | 27 | py | Python | July21/EssentialPython/helloworld/helloworld.py | pythonbykhaja/intesivepython | d3074f35bf36a04d4d1d9b4ff4631733d40b5817 | [
"Apache-2.0"
] | 2 | 2021-05-29T18:21:50.000Z | 2021-07-24T13:03:30.000Z | July21/EssentialPython/helloworld/helloworld.py | pythonbykhaja/intesivepython | d3074f35bf36a04d4d1d9b4ff4631733d40b5817 | [
"Apache-2.0"
] | null | null | null | July21/EssentialPython/helloworld/helloworld.py | pythonbykhaja/intesivepython | d3074f35bf36a04d4d1d9b4ff4631733d40b5817 | [
"Apache-2.0"
] | 2 | 2021-05-25T10:19:54.000Z | 2021-09-21T12:20:48.000Z | print('Hello World Python') | 27 | 27 | 0.777778 |
172ef675f698c4e9cb851c5bc1b93239e2fc79c9 | 29,343 | py | Python | EBC/python/antchain_sdk_ebc/client.py | alipay/antchain-openapi-prod-sdk | f78549e5135d91756093bd88d191ca260b28e083 | [
"MIT"
] | 6 | 2020-06-28T06:40:50.000Z | 2022-02-25T11:02:18.000Z | EBC/python/antchain_sdk_ebc/client.py | alipay/antchain-openapi-prod-sdk | f78549e5135d91756093bd88d191ca260b28e083 | [
"MIT"
] | null | null | null | EBC/python/antchain_sdk_ebc/client.py | alipay/antchain-openapi-prod-sdk | f78549e5135d91756093bd88d191ca260b28e083 | [
"MIT"
] | 6 | 2020-06-30T09:29:03.000Z | 2022-01-07T10:42:22.000Z | # -*- coding: utf-8 -*-
# This file is auto-generated, don't edit it. Thanks.
import time
from alibabacloud_tea_util.client import Client as UtilClient
from Tea.exceptions import TeaException
from Tea.request import TeaRequest
from Tea.core import TeaCore
from antchain_alipay_util.client import Client as AlipayUtilCli... | 36.496269 | 198 | 0.638619 |
172f8a9f9d9a0517d21ee1677c5f4b5838bfbc9b | 2,560 | py | Python | scripts/hcmetanode/utils.py | HolisticCoders/metanode | 5e63fadc74eeb634722e12c2bcdc45ca0688087e | [
"MIT"
] | null | null | null | scripts/hcmetanode/utils.py | HolisticCoders/metanode | 5e63fadc74eeb634722e12c2bcdc45ca0688087e | [
"MIT"
] | null | null | null | scripts/hcmetanode/utils.py | HolisticCoders/metanode | 5e63fadc74eeb634722e12c2bcdc45ca0688087e | [
"MIT"
] | null | null | null | import maya.api.OpenMaya as om2
import maya.cmds as cmds
def get_uuid(mobject):
"""Return a `maya.api.OpenMaya.MObject` UUID.
Args:
mobject (maya.api.OpenMaya.MObject): MObject to get the UUID of.
Returns:
str: The MObject UUID.
"""
return om2.MFnDependencyNode(mobject).uuid().as... | 26.666667 | 81 | 0.621484 |
1731602b3f7eea63308baa2e86c34fe547fe10ff | 812 | py | Python | matrix/matrix.py | GlibGozer/Matrix | 5bc978a47a63ccf51b0be01ab28f5eca5819bcba | [
"Apache-2.0"
] | null | null | null | matrix/matrix.py | GlibGozer/Matrix | 5bc978a47a63ccf51b0be01ab28f5eca5819bcba | [
"Apache-2.0"
] | null | null | null | matrix/matrix.py | GlibGozer/Matrix | 5bc978a47a63ccf51b0be01ab28f5eca5819bcba | [
"Apache-2.0"
] | null | null | null | import os
import random
from discord.ext import commands
from dotenv import load_dotenv
load_dotenv()
TOKEN = os.getenv('DISCORD_TOKEN')
bot = commands.Bot(command_prefix='m!')
bot.run(TOKEN) | 27.066667 | 92 | 0.652709 |
173361be9e30006fffba077574f0e94fd3d9ef74 | 1,602 | py | Python | utils/plotting.py | marcelo-santos-12/lbp_paper | 56d2457dce2c97a16de9e034b1a87ef0ceb9446a | [
"MIT"
] | null | null | null | utils/plotting.py | marcelo-santos-12/lbp_paper | 56d2457dce2c97a16de9e034b1a87ef0ceb9446a | [
"MIT"
] | null | null | null | utils/plotting.py | marcelo-santos-12/lbp_paper | 56d2457dce2c97a16de9e034b1a87ef0ceb9446a | [
"MIT"
] | null | null | null | '''
Modulo que implementa as funcoes de plot da curva roc
'''
import matplotlib.pyplot as plt
import numpy as np
import os
from sklearn.metrics import plot_roc_curve
plt.style.use('ggplot')
| 36.409091 | 125 | 0.632959 |
17352702a9e2965909b6092dc8c8e7e3c676d60c | 552 | py | Python | tests/algorithms/test_rice_siff.py | rvyjidacek/fcapsy | 6d531a337b0e65cac10e41b84d232498f3a05b76 | [
"MIT"
] | null | null | null | tests/algorithms/test_rice_siff.py | rvyjidacek/fcapsy | 6d531a337b0e65cac10e41b84d232498f3a05b76 | [
"MIT"
] | null | null | null | tests/algorithms/test_rice_siff.py | rvyjidacek/fcapsy | 6d531a337b0e65cac10e41b84d232498f3a05b76 | [
"MIT"
] | null | null | null | from fcapsy import Lattice, Context, Concept
from fcapsy.similarity import jaccard
from fcapsy.algorithms.rice_siff import concept_subset
object_labels = tuple(range(5))
attribute_labels = tuple(range(4))
bools = [
[1, 0, 0, 0],
[1, 1, 1, 0],
[0, 1, 0, 1],
[1, 1, 0, 0],
[0, 0, 1, 0],
]
context = Co... | 24 | 57 | 0.682971 |
17363b957c4247dd1d67870327e5ffafa8e428ab | 17,766 | py | Python | examples/direct_fidelity_estimation.py | Apratim7py/Cirq | 90bbd14f352980cc222b1b3c05a40d09734b9070 | [
"Apache-2.0"
] | null | null | null | examples/direct_fidelity_estimation.py | Apratim7py/Cirq | 90bbd14f352980cc222b1b3c05a40d09734b9070 | [
"Apache-2.0"
] | null | null | null | examples/direct_fidelity_estimation.py | Apratim7py/Cirq | 90bbd14f352980cc222b1b3c05a40d09734b9070 | [
"Apache-2.0"
] | null | null | null | """Implements direct fidelity estimation.
Fidelity between the desired pure state rho and the actual state sigma is
defined as:
F(rho, sigma) = Tr (rho sigma)
It is a unit-less measurement between 0.0 and 1.0. The following two papers
independently described a faster way to estimate its value:
Direct Fidelity Estima... | 38.960526 | 80 | 0.647923 |
1738bf0d16768883469e7f50b35ee82154920665 | 3,364 | py | Python | large_data_analysis/treePlotter.py | Codefans-fan/p2pSpider | 2f76fb43f3527cea8ed208089153ec12660907f4 | [
"MIT"
] | null | null | null | large_data_analysis/treePlotter.py | Codefans-fan/p2pSpider | 2f76fb43f3527cea8ed208089153ec12660907f4 | [
"MIT"
] | null | null | null | large_data_analysis/treePlotter.py | Codefans-fan/p2pSpider | 2f76fb43f3527cea8ed208089153ec12660907f4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Created on Mar 21, 2016
@author: fky
'''
import matplotlib.pyplot as plt
decisionNode = dict(boxstyle='sawtooth',fc='0.8')
leafNode = dict(boxstyle='round4',fc='0.8')
arrow_args = dict(arrowstyle='<-')
if __name__=='__main__':
mytree = retrieveTr... | 32.660194 | 117 | 0.612663 |
1738c203fb24e9f67f6c94adff022615f21af1f8 | 1,197 | py | Python | test/regexp/python2.py | kylebarron/MagicPython | da6fa0793e2c85d3bf7709ff1d4f65ccf468db11 | [
"MIT"
] | 1,482 | 2015-10-16T21:59:32.000Z | 2022-03-30T11:44:40.000Z | test/regexp/python2.py | kylebarron/MagicPython | da6fa0793e2c85d3bf7709ff1d4f65ccf468db11 | [
"MIT"
] | 226 | 2015-10-15T15:53:44.000Z | 2022-03-25T03:08:27.000Z | test/regexp/python2.py | kylebarron/MagicPython | da6fa0793e2c85d3bf7709ff1d4f65ccf468db11 | [
"MIT"
] | 129 | 2015-10-20T02:41:49.000Z | 2022-03-22T01:44:36.000Z | a = r'
(?x)
foo
'
# comment
a : source.python
: source.python
= : keyword.operator.assignment.python, source.python
: source.python
r : source.python, storage.type.string.python, string.regexp.quoted.single.python
' : punctuation... | 44.333333 | 112 | 0.636591 |
173aba7575e11f2aa772e0bbb6d68ec87ccc6080 | 162,093 | py | Python | envanter.py | yhasansenyurt/InventoryManagementSoftware-DepoTakipYazilimi | 87633f3764b3e25d4050904ee7eeb9f410f562e3 | [
"MIT"
] | null | null | null | envanter.py | yhasansenyurt/InventoryManagementSoftware-DepoTakipYazilimi | 87633f3764b3e25d4050904ee7eeb9f410f562e3 | [
"MIT"
] | null | null | null | envanter.py | yhasansenyurt/InventoryManagementSoftware-DepoTakipYazilimi | 87633f3764b3e25d4050904ee7eeb9f410f562e3 | [
"MIT"
] | null | null | null | # This program is made by Hasan Senyurt for ISTAC A.S. - Inventory Management Software
from tkinter import *
import pandas as pd
from tkinter import ttk
from tkinter import messagebox
from datetime import datetime
import getpass
############################################################
# Arranging row co... | 46.391815 | 246 | 0.518036 |
173b7808d08e95948766b0c4a6adf14d2495a6e0 | 2,164 | py | Python | frog/management/commands/add_release_notes.py | dreamhaven/Frog | 66e50610d5059aa371e0a50b65ceddd4813b2bc1 | [
"MIT"
] | 3 | 2021-10-03T23:11:24.000Z | 2021-10-04T12:14:56.000Z | frog/management/commands/add_release_notes.py | dreamhaven/Frog | 66e50610d5059aa371e0a50b65ceddd4813b2bc1 | [
"MIT"
] | 7 | 2021-03-18T20:43:09.000Z | 2022-02-10T10:06:24.000Z | frog/management/commands/add_release_notes.py | dreamhaven/Frog | 66e50610d5059aa371e0a50b65ceddd4813b2bc1 | [
"MIT"
] | 1 | 2020-09-30T11:23:55.000Z | 2020-09-30T11:23:55.000Z | ##################################################################################################
# Copyright (c) 2012 Brett Dixon
#
# 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 r... | 42.431373 | 123 | 0.65342 |
173d06acf3cf5bd7493cf25b0c6f41cbc47cf052 | 977 | py | Python | corpus/exceptions.py | looselycoupled/partisan-discourse | 8579924094c92e25e21ce59a26232269cf6b34bc | [
"Apache-2.0"
] | 25 | 2017-02-27T19:44:23.000Z | 2021-04-11T00:11:49.000Z | corpus/exceptions.py | looselycoupled/partisan-discourse | 8579924094c92e25e21ce59a26232269cf6b34bc | [
"Apache-2.0"
] | 26 | 2016-07-16T15:41:07.000Z | 2016-10-11T16:44:04.000Z | corpus/exceptions.py | looselycoupled/partisan-discourse | 8579924094c92e25e21ce59a26232269cf6b34bc | [
"Apache-2.0"
] | 9 | 2016-08-08T17:19:34.000Z | 2020-03-04T00:31:26.000Z | # corpus.exceptions
# Custom exceptions for corpus handling.
#
# Author: Benjamin Bengfort <bbengfort@districtdatalabs.com>
# Created: Mon Jul 18 09:57:26 2016 -0400
#
# Copyright (C) 2016 District Data Labs
# For license information, see LICENSE.txt
#
# ID: exceptions.py [63935bc] benjamin@bengfort.com $
"""
Custo... | 21.23913 | 74 | 0.579324 |
173d794fa36219432d2bd1e7a2317117f2a2f269 | 2,617 | py | Python | protogen/core.py | connermarzen/proto_gen_compiler | 38c045dcf90dcf3122dcc389c9ff0e200f9ba21d | [
"MIT"
] | null | null | null | protogen/core.py | connermarzen/proto_gen_compiler | 38c045dcf90dcf3122dcc389c9ff0e200f9ba21d | [
"MIT"
] | null | null | null | protogen/core.py | connermarzen/proto_gen_compiler | 38c045dcf90dcf3122dcc389c9ff0e200f9ba21d | [
"MIT"
] | null | null | null | import glob
import os
import sys
from pprint import pprint
from typing import List
from lark import Lark
from protogen.grammar.transformer import PGTransformer
from protogen.util import PGFile
| 34.434211 | 79 | 0.549866 |
173e0d807440fb436cd40c600fbbb74b5622d72c | 6,145 | py | Python | shell/packaging/setup.py | garyli1019/impala | ea0e1def6160d596082b01365fcbbb6e24afb21d | [
"Apache-2.0"
] | null | null | null | shell/packaging/setup.py | garyli1019/impala | ea0e1def6160d596082b01365fcbbb6e24afb21d | [
"Apache-2.0"
] | 1 | 2022-03-29T21:58:11.000Z | 2022-03-29T21:58:11.000Z | shell/packaging/setup.py | garyli1019/impala | ea0e1def6160d596082b01365fcbbb6e24afb21d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache Licen... | 36.147059 | 84 | 0.706591 |
173fffe9dd2206a27daccda030af3e72d01cef25 | 26 | py | Python | behavior/scripts/main.py | SettingDust/more-chicken | 3816b4f37ed3b6c115dfa9001ec6554b1d69af81 | [
"Apache-2.0"
] | null | null | null | behavior/scripts/main.py | SettingDust/more-chicken | 3816b4f37ed3b6c115dfa9001ec6554b1d69af81 | [
"Apache-2.0"
] | null | null | null | behavior/scripts/main.py | SettingDust/more-chicken | 3816b4f37ed3b6c115dfa9001ec6554b1d69af81 | [
"Apache-2.0"
] | 1 | 2020-10-19T15:32:23.000Z | 2020-10-19T15:32:23.000Z | from common.mod import Mod | 26 | 26 | 0.846154 |
17413f1105780124aeb9ff0b2dc920d49197a4fb | 1,453 | py | Python | tripled/stack/node.py | yeasy/tripled | 2cb1ed9a0455353d39662e5d2043ff76a75b092f | [
"Apache-2.0"
] | 1 | 2018-06-09T03:45:49.000Z | 2018-06-09T03:45:49.000Z | tripled/stack/node.py | yeasy/tripled | 2cb1ed9a0455353d39662e5d2043ff76a75b092f | [
"Apache-2.0"
] | null | null | null | tripled/stack/node.py | yeasy/tripled | 2cb1ed9a0455353d39662e5d2043ff76a75b092f | [
"Apache-2.0"
] | null | null | null | __author__ = 'baohua'
from subprocess import PIPE, Popen
from tripled.common.constants import NODE_ROLES
if __name__ == '__main__':
import doctest
doctest.testmod()
| 22.703125 | 86 | 0.589814 |
17423e053f3c9b2038d99ecf3e00f75df52099d6 | 1,814 | py | Python | opencv-2.4.11/samples/python/convexhull.py | durai-chellamuthu/node-opencv | a9c18c77b2fe0f62f2f8376854bdf33de71f5dc3 | [
"MIT"
] | 55 | 2015-06-20T20:15:33.000Z | 2022-02-10T02:45:14.000Z | opencv-2.4.11/samples/python/convexhull.py | durai-chellamuthu/node-opencv | a9c18c77b2fe0f62f2f8376854bdf33de71f5dc3 | [
"MIT"
] | 8 | 2015-06-20T18:46:52.000Z | 2015-10-31T11:08:04.000Z | opencv-2.4.11/samples/python/convexhull.py | durai-chellamuthu/node-opencv | a9c18c77b2fe0f62f2f8376854bdf33de71f5dc3 | [
"MIT"
] | 73 | 2015-06-20T15:59:27.000Z | 2020-03-15T22:43:36.000Z | #! /usr/bin/env python
print "OpenCV Python version of convexhull"
# import the necessary things for OpenCV
import cv2.cv as cv
# to generate random values
import random
# how many points we want at max
_MAX_POINTS = 100
if __name__ == '__main__':
# main object to get random values from
my_random = random... | 27.484848 | 75 | 0.574972 |
17435a67c44ac869cb192970c53155e65fc347af | 8,912 | py | Python | WN.py | neyudin/wavenetglow | 3261dd8163709b2204b1c9ba90bc544755439fa5 | [
"BSD-3-Clause"
] | null | null | null | WN.py | neyudin/wavenetglow | 3261dd8163709b2204b1c9ba90bc544755439fa5 | [
"BSD-3-Clause"
] | 2 | 2020-01-28T22:48:08.000Z | 2020-03-03T16:25:33.000Z | WN.py | neyudin/wavenetglow | 3261dd8163709b2204b1c9ba90bc544755439fa5 | [
"BSD-3-Clause"
] | null | null | null | import torch
import torch.nn as nn
| 36.080972 | 108 | 0.546118 |
174437ebe7a3e726cb780435f71ba8286739cd0d | 27,514 | py | Python | mavsdk/mission_raw_server_pb2.py | PML-UCF/MAVSDK-Python | a328834518621842f530804572ecb3baeec31805 | [
"BSD-3-Clause"
] | null | null | null | mavsdk/mission_raw_server_pb2.py | PML-UCF/MAVSDK-Python | a328834518621842f530804572ecb3baeec31805 | [
"BSD-3-Clause"
] | null | null | null | mavsdk/mission_raw_server_pb2.py | PML-UCF/MAVSDK-Python | a328834518621842f530804572ecb3baeec31805 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mission_raw_server/mission_raw_server.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _me... | 39.702742 | 2,987 | 0.775096 |
17447407c571b28418fb7fbb866da851ca2f25a2 | 1,420 | py | Python | tests/surf_curl_methods.py | jlmaurer/tectosaur | 7cc5606d814f061395b19754e7a4b6c5e4c236e5 | [
"MIT"
] | 17 | 2017-06-29T16:48:56.000Z | 2021-10-03T18:31:41.000Z | tests/surf_curl_methods.py | jlmaurer/tectosaur | 7cc5606d814f061395b19754e7a4b6c5e4c236e5 | [
"MIT"
] | 4 | 2018-05-29T08:21:13.000Z | 2021-04-01T01:28:50.000Z | tests/surf_curl_methods.py | jlmaurer/tectosaur | 7cc5606d814f061395b19754e7a4b6c5e4c236e5 | [
"MIT"
] | 8 | 2019-06-10T22:19:40.000Z | 2022-01-12T20:55:37.000Z | import numpy as np
basis_gradient = [[-1.0, -1.0], [1.0, 0.0], [0.0, 1.0]]
e = [[[int((i - j) * (j - k) * (k - i) / 2) for k in range(3)]
for j in range(3)] for i in range(3)]
tri = np.random.rand(3,3)
# tri = np.array([[0,0,0],[1.1,0,0],[0,1.1,0]])
# tri = np.array([[0,0,0],[1,1,0],[0,1,0]])
surf_curl = np.empt... | 28.4 | 102 | 0.607042 |
1745411ed8dd4e2c057611bffced47e22e3caab1 | 1,119 | py | Python | ga4gh/testbed/submit/report_submitter.py | ga4gh/ga4gh-testbed-lib | 599bb28e58c82e30058239e04525fba313a4bae4 | [
"Apache-2.0"
] | null | null | null | ga4gh/testbed/submit/report_submitter.py | ga4gh/ga4gh-testbed-lib | 599bb28e58c82e30058239e04525fba313a4bae4 | [
"Apache-2.0"
] | 3 | 2022-03-21T18:30:27.000Z | 2022-03-30T18:04:05.000Z | ga4gh/testbed/submit/report_submitter.py | ga4gh/ga4gh-testbed-lib | 599bb28e58c82e30058239e04525fba313a4bae4 | [
"Apache-2.0"
] | null | null | null | from re import sub
import requests
| 33.909091 | 107 | 0.613941 |
17458c0950b3d6fa10192f5ac3b3e23c730302f2 | 1,611 | py | Python | phovea_server/_utils.py | phovea/phovea_server | f83879f58669ff4d554efcb727b1c6fd0185041a | [
"BSD-3-Clause"
] | 3 | 2018-06-08T01:28:56.000Z | 2020-01-10T14:17:34.000Z | phovea_server/_utils.py | phovea/phovea_server | f83879f58669ff4d554efcb727b1c6fd0185041a | [
"BSD-3-Clause"
] | 88 | 2016-11-06T08:28:21.000Z | 2022-03-22T07:18:59.000Z | phovea_server/_utils.py | phovea/phovea_server | f83879f58669ff4d554efcb727b1c6fd0185041a | [
"BSD-3-Clause"
] | 6 | 2017-06-06T20:43:00.000Z | 2020-02-13T18:23:46.000Z | ###############################################################################
# Caleydo - Visualization for Molecular Biology - http://caleydo.org
# Copyright (c) The Caleydo Team. All rights reserved.
# Licensed under the new BSD license, available at http://caleydo.org/license
######################################... | 26.85 | 79 | 0.577902 |
17479b6aa39e88b50ca6246c79ded1da0b011cc9 | 1,785 | py | Python | ait/core/server/plugins/PacketAccumulator.py | kmarwah/AIT-Core | c7af2ff58f51ba3c3d66cb28fbfe80c3b0712245 | [
"MIT"
] | 1 | 2022-01-22T13:55:49.000Z | 2022-01-22T13:55:49.000Z | ait/core/server/plugins/PacketAccumulator.py | kmarwah/AIT-Core | c7af2ff58f51ba3c3d66cb28fbfe80c3b0712245 | [
"MIT"
] | 2 | 2021-09-16T19:14:52.000Z | 2021-09-16T19:16:03.000Z | ait/core/server/plugins/PacketAccumulator.py | kmarwah/AIT-Core | c7af2ff58f51ba3c3d66cb28fbfe80c3b0712245 | [
"MIT"
] | null | null | null | from ait.core.server.plugins import Plugin
from gevent import Greenlet, sleep
| 34.326923 | 104 | 0.615126 |
17481e10b622b0efff0974078b54a915260f2fb9 | 294 | py | Python | tests/test_crv/test_crv.py | cmarqu/cocotb-coverage | 8e8e769e3df01798f88ab633bfe464f5b3884d55 | [
"BSD-2-Clause"
] | null | null | null | tests/test_crv/test_crv.py | cmarqu/cocotb-coverage | 8e8e769e3df01798f88ab633bfe464f5b3884d55 | [
"BSD-2-Clause"
] | null | null | null | tests/test_crv/test_crv.py | cmarqu/cocotb-coverage | 8e8e769e3df01798f88ab633bfe464f5b3884d55 | [
"BSD-2-Clause"
] | null | null | null |
import cocotb
import unittest
import crv_unittest
from cocotb.triggers import Timer
| 22.615385 | 76 | 0.765306 |
174851ae78f447b7133dd774eabe7edf75caa7c7 | 3,679 | py | Python | services/ui_backend_service/data/cache/generate_dag_action.py | runsascoded/metaflow-service | ac7770dfeae17fd060129d408fa3bb472fc00b86 | [
"Apache-2.0"
] | null | null | null | services/ui_backend_service/data/cache/generate_dag_action.py | runsascoded/metaflow-service | ac7770dfeae17fd060129d408fa3bb472fc00b86 | [
"Apache-2.0"
] | null | null | null | services/ui_backend_service/data/cache/generate_dag_action.py | runsascoded/metaflow-service | ac7770dfeae17fd060129d408fa3bb472fc00b86 | [
"Apache-2.0"
] | null | null | null | import hashlib
import json
from .client import CacheAction
from .utils import streamed_errors, DAGParsingFailed, DAGUnsupportedFlowLanguage
from .custom_flowgraph import FlowGraph
from metaflow import Run, Step, DataArtifact, namespace
from metaflow.exception import MetaflowNotFound
namespace(None) # Always use glo... | 29.669355 | 101 | 0.583582 |
1749ab03881bd2e5bd99504afb6c2d2a4c5881b2 | 3,803 | py | Python | examples/nontrivial/main.py | splnkit/splunk-tracer-python | 4be681cbb4156284daaaa35dcca8c8992f1aa191 | [
"MIT"
] | null | null | null | examples/nontrivial/main.py | splnkit/splunk-tracer-python | 4be681cbb4156284daaaa35dcca8c8992f1aa191 | [
"MIT"
] | null | null | null | examples/nontrivial/main.py | splnkit/splunk-tracer-python | 4be681cbb4156284daaaa35dcca8c8992f1aa191 | [
"MIT"
] | null | null | null | """
Synthetic example with high concurrency. Used primarily to stress test the
library.
"""
import argparse
import sys
import time
import threading
import random
# Comment out to test against the published copy
import os
sys.path.insert(1, os.path.dirname(os.path.realpath(__file__)) + '/../..')
import opentracing
imp... | 34.572727 | 110 | 0.608467 |
174c839ee6b2c3dcc46328886c1e0ff5e1298c8c | 2,773 | py | Python | pyoti/plugins/datasources/generic.py | cellular-nanoscience/pyotic | 4cf68d4fd4efe2f1cbb4bb6fd61a66af0d15eaff | [
"Apache-2.0"
] | 1 | 2018-06-12T11:46:54.000Z | 2018-06-12T11:46:54.000Z | pyoti/plugins/datasources/generic.py | cellular-nanoscience/pyotic | 4cf68d4fd4efe2f1cbb4bb6fd61a66af0d15eaff | [
"Apache-2.0"
] | 6 | 2017-09-08T09:02:20.000Z | 2018-11-14T10:22:01.000Z | pyoti/plugins/datasources/generic.py | cellular-nanoscience/pyotic | 4cf68d4fd4efe2f1cbb4bb6fd61a66af0d15eaff | [
"Apache-2.0"
] | 3 | 2017-09-08T11:08:28.000Z | 2019-07-17T21:40:13.000Z | # -*- coding: utf-8 -*-
"""
Created on Fri Mar 18 13:41:17 2016
@author: Tobias Jachowski
"""
import inspect
import numbers
from pyoti.data.datasource import DataSource
from pyoti.picklable import unboundfunction
| 33.011905 | 77 | 0.573026 |
174dc1f508c7bead5580d0a22374724068ce4f6c | 4,721 | py | Python | src/matlab2cpp/rules/parallel.py | neilferg/matlab2cpp | aa26671fc73dad297c977511053b076e05bdd2df | [
"BSD-3-Clause"
] | null | null | null | src/matlab2cpp/rules/parallel.py | neilferg/matlab2cpp | aa26671fc73dad297c977511053b076e05bdd2df | [
"BSD-3-Clause"
] | null | null | null | src/matlab2cpp/rules/parallel.py | neilferg/matlab2cpp | aa26671fc73dad297c977511053b076e05bdd2df | [
"BSD-3-Clause"
] | null | null | null |
#tbb.counter = 0
| 33.964029 | 100 | 0.528278 |
174dd47506793e6d8f38f7f917f3d5a1459219eb | 1,154 | py | Python | test/test_clock.py | Ham22/python-as1130-clock | a97fbdf3d0fe5a9cafa7392458c44782f688daa7 | [
"Apache-2.0"
] | null | null | null | test/test_clock.py | Ham22/python-as1130-clock | a97fbdf3d0fe5a9cafa7392458c44782f688daa7 | [
"Apache-2.0"
] | null | null | null | test/test_clock.py | Ham22/python-as1130-clock | a97fbdf3d0fe5a9cafa7392458c44782f688daa7 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
import unittest
from unittest.mock import MagicMock, call
from clock import clock
if __name__ == '__main__':
unittest.main()
| 26.227273 | 67 | 0.681109 |
174f039433c2e09bc4b24b82001c92bcb71f38f0 | 2,580 | py | Python | opencv/crop_youtube_video_screenshots.py | kinow/dork-scripts | a4fa7980a8cdff41df806bb4d4b70f7b4ac89349 | [
"CC-BY-4.0"
] | 1 | 2016-08-07T07:45:24.000Z | 2016-08-07T07:45:24.000Z | opencv/crop_youtube_video_screenshots.py | kinow/dork-scripts | a4fa7980a8cdff41df806bb4d4b70f7b4ac89349 | [
"CC-BY-4.0"
] | null | null | null | opencv/crop_youtube_video_screenshots.py | kinow/dork-scripts | a4fa7980a8cdff41df806bb4d4b70f7b4ac89349 | [
"CC-BY-4.0"
] | null | null | null | #!/usr/bin/env python3
"""A script to iterate through directories and produce cropped images.
The images contain the video screen area of YouTube videos. The screenshots
were taken from my computer, with 900/1600 resolution, and the location is
always the same for the ROI.
Ideally a future version will automatically... | 32.25 | 103 | 0.660465 |
1754169b8d71a433dcd5e77169d9d86236b1dbc6 | 336 | py | Python | cartography/intel/jamf/__init__.py | Relys/cartography | 0f71b3f0246665d5fa065afa2e3dc46c22d6c689 | [
"Apache-2.0"
] | 1 | 2021-03-26T12:00:26.000Z | 2021-03-26T12:00:26.000Z | cartography/intel/jamf/__init__.py | srics/cartography | 19a06766e304d657d956246179a2bb01a6d9aef6 | [
"Apache-2.0"
] | 1 | 2021-02-23T18:08:04.000Z | 2021-03-31T08:17:23.000Z | cartography/intel/jamf/__init__.py | srics/cartography | 19a06766e304d657d956246179a2bb01a6d9aef6 | [
"Apache-2.0"
] | 1 | 2021-03-31T17:55:31.000Z | 2021-03-31T17:55:31.000Z | from cartography.intel.jamf import computers
from cartography.util import timeit
| 30.545455 | 118 | 0.78869 |
1754c01d73f56bdac624a68f9dd5e0ed03393ed4 | 1,297 | py | Python | setup.py | carlosdamazio/python-aisweb | bc54e26b5ea758bcc69351d268a44e0b520d0956 | [
"MIT"
] | 8 | 2018-04-03T15:07:09.000Z | 2022-03-13T13:12:45.000Z | setup.py | carlosdamazio/python-aisweb | bc54e26b5ea758bcc69351d268a44e0b520d0956 | [
"MIT"
] | 5 | 2018-04-03T20:09:24.000Z | 2019-09-10T01:17:42.000Z | setup.py | carlosdamazio/python-aisweb | bc54e26b5ea758bcc69351d268a44e0b520d0956 | [
"MIT"
] | 1 | 2018-04-03T04:09:58.000Z | 2018-04-03T04:09:58.000Z | # -*- coding: utf-8 -*-
from setuptools import find_packages, setup
import os
import re
package = 'python_aisweb'
init_py = open(os.path.join(package, '__init__.py')).read()
version = re.search(
"^__version__ = ['\"]([^'\"]+)['\"]", init_py, re.MULTILINE).group(1)
author = re.search(
"^__author__ = ['\"]([^'... | 27.595745 | 75 | 0.619121 |
175519be4a7561f84e8552643f76c512dbaaf58b | 1,254 | py | Python | external_api_tests/test_weather.py | AbhinavTalari/SOAD-Project | aa89f481da2b6f29c8750d9c144f82368be81a7b | [
"MIT"
] | null | null | null | external_api_tests/test_weather.py | AbhinavTalari/SOAD-Project | aa89f481da2b6f29c8750d9c144f82368be81a7b | [
"MIT"
] | null | null | null | external_api_tests/test_weather.py | AbhinavTalari/SOAD-Project | aa89f481da2b6f29c8750d9c144f82368be81a7b | [
"MIT"
] | 2 | 2020-12-21T07:05:41.000Z | 2021-02-17T17:33:48.000Z | import pytest
import requests
MY_KEY = '02db6ca787d18d34175d3c7996cf193b'
| 20.225806 | 116 | 0.596491 |
17553a498d4907cf69fd13bc2a596ad111d2d7ca | 219 | py | Python | cupcake/config/__init__.py | billyeatcookies/cupcake | 2f2d1d5f8a1a454e50283547cf433cc82d1825d6 | [
"MIT"
] | 3 | 2022-03-29T12:55:24.000Z | 2022-03-30T17:06:11.000Z | cupcake/config/__init__.py | billyeatcookies/Cupcake | 2f2d1d5f8a1a454e50283547cf433cc82d1825d6 | [
"MIT"
] | null | null | null | cupcake/config/__init__.py | billyeatcookies/Cupcake | 2f2d1d5f8a1a454e50283547cf433cc82d1825d6 | [
"MIT"
] | null | null | null | from tkinter import font
| 21.9 | 48 | 0.579909 |
175675d7610b11f7f5a72c44eb62e7eb639038db | 1,372 | py | Python | plugins/operators/vivareal_operator.py | lucaspfigueiredo/elt-pipeline | 71537f5c2bd2e6502ea44c8dab44cc4ba8919e7f | [
"MIT"
] | 2 | 2022-03-29T23:48:35.000Z | 2022-03-30T02:10:34.000Z | plugins/operators/vivareal_operator.py | lucaspfigueiredo/elt-pipeline | 71537f5c2bd2e6502ea44c8dab44cc4ba8919e7f | [
"MIT"
] | null | null | null | plugins/operators/vivareal_operator.py | lucaspfigueiredo/elt-pipeline | 71537f5c2bd2e6502ea44c8dab44cc4ba8919e7f | [
"MIT"
] | null | null | null | import json
import logging
from hooks.vivareal_hook import VivarealHook
from airflow.utils.decorators import apply_defaults
from airflow.models.baseoperator import BaseOperator
from airflow.providers.amazon.aws.hooks.s3 import S3Hook
logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.INFO)
if __... | 31.181818 | 80 | 0.625364 |
1757cb3adbb9ba3e3de2859b8f9845a3c7c5f97a | 12,676 | py | Python | utils/yolo.py | Cuda-Chen/fish-yolo-grabcut | 359da92815d49a7d238fe8de7bd51e5de68f0d40 | [
"MIT"
] | 7 | 2020-01-20T00:33:29.000Z | 2022-01-01T04:36:06.000Z | utils/yolo.py | ZurMaD/fish-yolo-grabcut | c2570691143df36d528d2b3c115bf2bc29cddfd6 | [
"MIT"
] | 1 | 2020-01-09T09:18:29.000Z | 2020-01-16T13:22:43.000Z | utils/yolo.py | Cuda-Chen/fish-yolo-grabcut | 359da92815d49a7d238fe8de7bd51e5de68f0d40 | [
"MIT"
] | 5 | 2020-06-20T01:50:10.000Z | 2020-12-24T09:13:10.000Z | #!/usr/bin/python
import numpy as np
import argparse
import time
import cv2 as cv
import os
if __name__ == '__main__':
ap = argparse.ArgumentParser()
ap.add_argument("-i", "--image", required=True,
help="path to input image")
ap.add_argument("-y", "--yolo", required=True,
help="base path ... | 40.758842 | 77 | 0.620227 |
1757edeb0108328d5bcd4183eaebb8af3d8998c6 | 1,619 | py | Python | Machine Learning A-Z/Part 1 - Data Preprocessing/data_preprocessing_template.py | SenonLi/LearnPython | 0d37ed625c623a79daa9c4407751050e683fa3ed | [
"Apache-2.0"
] | null | null | null | Machine Learning A-Z/Part 1 - Data Preprocessing/data_preprocessing_template.py | SenonLi/LearnPython | 0d37ed625c623a79daa9c4407751050e683fa3ed | [
"Apache-2.0"
] | null | null | null | Machine Learning A-Z/Part 1 - Data Preprocessing/data_preprocessing_template.py | SenonLi/LearnPython | 0d37ed625c623a79daa9c4407751050e683fa3ed | [
"Apache-2.0"
] | null | null | null | # Data Preprocessing
# Importing the libraries
import numpy as np # numpy is the library that contains mathematical tools
import matplotlib.pyplot as plt # help plot charts
import pandas as pd # import data sets and manage data sets
# 1. Importing the dataset
df = pd.read_csv('Dat... | 43.756757 | 118 | 0.732551 |
1758ea53434e4693152e9c5c19753c1eb492d79b | 13,073 | py | Python | Artie/internals/rl/environment.py | MaxStrange/ArtieInfant | 1edbb171a5405d2971227f2d2d83acb523c70034 | [
"MIT"
] | 1 | 2018-04-28T16:55:05.000Z | 2018-04-28T16:55:05.000Z | Artie/internals/rl/environment.py | MaxStrange/ArtieInfant | 1edbb171a5405d2971227f2d2d83acb523c70034 | [
"MIT"
] | null | null | null | Artie/internals/rl/environment.py | MaxStrange/ArtieInfant | 1edbb171a5405d2971227f2d2d83acb523c70034 | [
"MIT"
] | null | null | null | """
This module provides the observations and rewards for testing and
for training the RL agent to vocalize.
"""
import collections
import logging
import math
import numpy as np
import random
import output.voice.synthesizer as synth # pylint: disable=locally-disabled, import-error
import warnings
Step = collections.n... | 47.365942 | 146 | 0.599556 |
175a3b4d2739554618c982905727d9731a509a3f | 934 | py | Python | boot.py | Ca11MeE/easy_frame | c3ec3069e3f61d1c01e5bd7ebbdf28e953a8ffa8 | [
"Apache-2.0"
] | null | null | null | boot.py | Ca11MeE/easy_frame | c3ec3069e3f61d1c01e5bd7ebbdf28e953a8ffa8 | [
"Apache-2.0"
] | null | null | null | boot.py | Ca11MeE/easy_frame | c3ec3069e3f61d1c01e5bd7ebbdf28e953a8ffa8 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
from flask import Flask
import mysql,os,re
from mysql import Pool
import properties
# WEB(jsonascii)
app=Flask(__name__)
app.config['JSON_AS_ASCII'] = False
#
# dir_path,routes,'/routes'
print('')
mysql.pool = Pool.Pool()
# print('')
print('')
for path in properties.blueprint_path:
map_apps(pa... | 22.780488 | 96 | 0.639186 |
175af7185594f72ab16004503b17449a4a18cdad | 3,213 | py | Python | chemprop/train/evaluate.py | wangdingyan/hybridUQ | c141a4bec0e716a12444f7e9ab0d7c975df93184 | [
"MIT"
] | 6 | 2021-10-01T10:17:29.000Z | 2021-12-29T04:37:10.000Z | chemprop/train/evaluate.py | wangdingyan/hybridUQ | c141a4bec0e716a12444f7e9ab0d7c975df93184 | [
"MIT"
] | null | null | null | chemprop/train/evaluate.py | wangdingyan/hybridUQ | c141a4bec0e716a12444f7e9ab0d7c975df93184 | [
"MIT"
] | 1 | 2021-09-21T17:39:03.000Z | 2021-09-21T17:39:03.000Z | from collections import defaultdict
import logging
from typing import Dict, List
from .predict import predict
from chemprop.data import MoleculeDataLoader, StandardScaler
from chemprop.utils.metrics import get_metric_func
from chemprop.models import MoleculeModel, PB_MoleculeModel
| 37.360465 | 114 | 0.545907 |
175b67f79dbb7ac7d6310e3500fdb5ac9365371c | 1,326 | py | Python | packages/w3af/w3af/plugins/tests/infrastructure/test_detect_transparent_proxy.py | ZooAtmosphereGroup/HelloPackages | 0ccffd33bf927b13d28c8f715ed35004c33465d9 | [
"Apache-2.0"
] | 3 | 2019-04-09T22:59:33.000Z | 2019-06-14T09:23:24.000Z | tools/w3af/w3af/plugins/tests/infrastructure/test_detect_transparent_proxy.py | sravani-m/Web-Application-Security-Framework | d9f71538f5cba6fe1d8eabcb26c557565472f6a6 | [
"MIT"
] | null | null | null | tools/w3af/w3af/plugins/tests/infrastructure/test_detect_transparent_proxy.py | sravani-m/Web-Application-Security-Framework | d9f71538f5cba6fe1d8eabcb26c557565472f6a6 | [
"MIT"
] | null | null | null | """
test_detect_transparent_proxy.py
Copyright 2012 Andres Riancho
This file is part of w3af, http://w3af.org/ .
w3af is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation version 2 of the License.
w3af is distribute... | 32.341463 | 86 | 0.717195 |
175dc9a3ede195f91638565c928e9e3207f1f8ca | 1,026 | py | Python | python/prototype-python2/test-libchewing-contrib/userphrase_enumerate.py | samwhelp/demo-libchewing | 13ce445cf1b71e42e765d1500d63234f88700835 | [
"MIT"
] | null | null | null | python/prototype-python2/test-libchewing-contrib/userphrase_enumerate.py | samwhelp/demo-libchewing | 13ce445cf1b71e42e765d1500d63234f88700835 | [
"MIT"
] | null | null | null | python/prototype-python2/test-libchewing-contrib/userphrase_enumerate.py | samwhelp/demo-libchewing | 13ce445cf1b71e42e765d1500d63234f88700835 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import chewing
import ctypes
chewing._libchewing.chewing_userphrase_has_next.argtypes = [ctypes.c_void_p, ctypes.POINTER(ctypes.c_uint), ctypes.POINTER(ctypes.c_uint)]
chewing._libchewing.chewing_userphrase_get.argtypes = [ctypes.c_void_p, ctypes.c_char_p, ctypes.c_uint, ... | 30.176471 | 138 | 0.770955 |
17609d169bbc79d752bdaa535b186028a8ee38c2 | 1,752 | py | Python | sports/excel.py | liliangbin/spider | 05080e862f204ce139249f07787de43781e39887 | [
"Apache-2.0"
] | null | null | null | sports/excel.py | liliangbin/spider | 05080e862f204ce139249f07787de43781e39887 | [
"Apache-2.0"
] | null | null | null | sports/excel.py | liliangbin/spider | 05080e862f204ce139249f07787de43781e39887 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import xlrd
import MySQLdb
import datetime
xlsfile = r'li.xlsx'
book = xlrd.open_workbook(xlsfile)
# sheet
count = len(book.sheets())
sheet = book.sheets()[0]
#
database = MySQLdb.connect(host="yb.upc.edu.cn", port=3306, user="yibantest", passwd="yibantest",
... | 23.675676 | 240 | 0.671233 |
1761cb53f94a10c32873088a40b0c2dc8567f7e7 | 18,276 | py | Python | lib/rule_engine/types.py | rwspielman/rule-engine | 1d84d5599fe5ab34bc8d6fc00bbe00f847352428 | [
"BSD-3-Clause"
] | 149 | 2018-04-04T12:47:38.000Z | 2022-03-25T07:25:55.000Z | lib/rule_engine/types.py | rwspielman/rule-engine | 1d84d5599fe5ab34bc8d6fc00bbe00f847352428 | [
"BSD-3-Clause"
] | 26 | 2020-01-06T17:29:26.000Z | 2022-03-25T07:01:49.000Z | lib/rule_engine/types.py | rwspielman/rule-engine | 1d84d5599fe5ab34bc8d6fc00bbe00f847352428 | [
"BSD-3-Clause"
] | 24 | 2020-02-15T22:58:30.000Z | 2022-03-22T02:15:26.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# rule_engine/types.py
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list ... | 35.695313 | 129 | 0.749343 |
17620bdfb4cf67a633f129cfa555700c6171ac09 | 125 | py | Python | number2text/main.py | rgreinho/number2text | 1c32c4e0268ea05baaa5e3b1a06431e006d16d21 | [
"MIT"
] | null | null | null | number2text/main.py | rgreinho/number2text | 1c32c4e0268ea05baaa5e3b1a06431e006d16d21 | [
"MIT"
] | null | null | null | number2text/main.py | rgreinho/number2text | 1c32c4e0268ea05baaa5e3b1a06431e006d16d21 | [
"MIT"
] | null | null | null | """Convert a number to its text representation."""
from number2text.cli.cli import cli
if __name__ == '__main__':
cli()
| 20.833333 | 50 | 0.704 |
17623540444eb9269b6276c7ee4a47d541023c28 | 2,437 | py | Python | data_pr_downloader.py | froi/data-pr | 07b386457f1868573181928cc8caecc970e7b44f | [
"MIT"
] | 6 | 2018-01-09T14:58:42.000Z | 2019-09-17T19:52:03.000Z | data_pr_downloader.py | froi/data-pr | 07b386457f1868573181928cc8caecc970e7b44f | [
"MIT"
] | 40 | 2019-08-21T12:05:26.000Z | 2021-07-14T10:39:27.000Z | data_pr_downloader.py | froi/data-pr | 07b386457f1868573181928cc8caecc970e7b44f | [
"MIT"
] | 1 | 2018-01-09T21:23:53.000Z | 2018-01-09T21:23:53.000Z | from datetime import datetime
import json
import logging
from mimetypes import guess_extension
import os
import requests
from slugify import slugify
FORMAT = '%(asctime)-15s - %(message)s'
logging.basicConfig(format=FORMAT)
logger = logging.getLogger('data_pr')
BASE_DATA_DIR = 'data_files'
DATA_PR_CATALOG_PATH = f'{B... | 34.814286 | 87 | 0.685679 |
1764184768f6f8663aaf405c83cd769d6fb4865b | 1,735 | py | Python | CodeBERT/preprocess_data.py | code-backdoor/code-backdoor | 1eeb3d79aa8a54c8f08e8d0156b569de5edd974e | [
"MIT"
] | null | null | null | CodeBERT/preprocess_data.py | code-backdoor/code-backdoor | 1eeb3d79aa8a54c8f08e8d0156b569de5edd974e | [
"MIT"
] | null | null | null | CodeBERT/preprocess_data.py | code-backdoor/code-backdoor | 1eeb3d79aa8a54c8f08e8d0156b569de5edd974e | [
"MIT"
] | null | null | null | import gzip
import glob
import os
import json
import numpy as np
from more_itertools import chunked
DATA_DIR = '/mnt/wanyao/zsj/codesearchnet'
DEST_DIR = '/mnt/wanyao/zsj/CodeBERT/data/codesearch/train_valid'
# preprocess the training data but not generate negative sample
if __name__ == '__main__':
preprocess... | 33.365385 | 110 | 0.616138 |
1767751b5d41cd4c05b86fd5734231e3fe189e78 | 201 | py | Python | code-pool/max-min2.py | ColorOfLight/kaist-musynth | 98bf12cfac0722e15db2e9a8e01275b002e7bdf3 | [
"MIT"
] | 1 | 2021-09-06T03:09:40.000Z | 2021-09-06T03:09:40.000Z | code-pool/max-min2.py | ColorOfLight/kaist-musynth | 98bf12cfac0722e15db2e9a8e01275b002e7bdf3 | [
"MIT"
] | null | null | null | code-pool/max-min2.py | ColorOfLight/kaist-musynth | 98bf12cfac0722e15db2e9a8e01275b002e7bdf3 | [
"MIT"
] | null | null | null | n=int(input())
k=int(input())
a=[]
m=0
for i in range(n):
a.append(int(input()))
a.sort(reverse=True)
m=a[0]-a[k-1]
for i in range(n-k+1):
if a[i]-a[i+k-1] < m:
m=a[i]-a[i+k-1]
print(m) | 16.75 | 26 | 0.527363 |
17690a767660c008e60f5e5fe1a87037ce7c37c2 | 28,559 | py | Python | bruhat/huffman.py | punkdit/bruhat | 3231eacc49fd3464542f7eb72684751371d9876c | [
"MIT"
] | 3 | 2020-04-07T13:21:30.000Z | 2020-07-15T02:07:20.000Z | bruhat/huffman.py | punkdit/bruhat | 3231eacc49fd3464542f7eb72684751371d9876c | [
"MIT"
] | null | null | null | bruhat/huffman.py | punkdit/bruhat | 3231eacc49fd3464542f7eb72684751371d9876c | [
"MIT"
] | null | null | null | #!/usr/bin/python3
"""
https://golem.ph.utexas.edu/category/2019/03/how_much_work_can_it_be_to_add.html#c055688
see also entropy.py
"""
import sys
from functools import reduce
from operator import add
from math import log, log2
from random import shuffle, choice, randint, seed
#import numpy
#from matplotlib import... | 26.105119 | 101 | 0.482755 |
176cfc7beca4767a39789010087bddac4d12b45d | 1,759 | py | Python | p384_Shuffle_an_Array.py | bzhou26/leetcode_sol | 82506521e2cc412f96cd1dfc3c8c3ab635f67f73 | [
"MIT"
] | null | null | null | p384_Shuffle_an_Array.py | bzhou26/leetcode_sol | 82506521e2cc412f96cd1dfc3c8c3ab635f67f73 | [
"MIT"
] | null | null | null | p384_Shuffle_an_Array.py | bzhou26/leetcode_sol | 82506521e2cc412f96cd1dfc3c8c3ab635f67f73 | [
"MIT"
] | null | null | null | '''
- Leetcode problem: 384
- Difficulty: Medium
- Brief problem description:
Shuffle a set of numbers without duplicates.
Example:
// Init an array with set 1, 2, and 3.
int[] nums = {1,2,3};
Solution solution = new Solution(nums);
// Shuffle the array [1,2,3] and return its result. Any permutation of [1,2,3] mu... | 23.77027 | 114 | 0.533258 |
176fd12839e770c97951f5799e322a7e99606c06 | 10,613 | py | Python | github_update_dara.py | 9bstudios/mecco_dara | 9c460a10e6bf4c3485e602ecbacdeacefaa9154f | [
"MIT"
] | 10 | 2018-06-04T13:18:23.000Z | 2020-06-14T10:09:57.000Z | github_update_dara.py | 9bstudios/mecco_dara | 9c460a10e6bf4c3485e602ecbacdeacefaa9154f | [
"MIT"
] | null | null | null | github_update_dara.py | 9bstudios/mecco_dara | 9c460a10e6bf4c3485e602ecbacdeacefaa9154f | [
"MIT"
] | 1 | 2018-10-26T05:44:25.000Z | 2018-10-26T05:44:25.000Z | # python
import sys, traceback
import requests, pprint, os, zipfile, shutil, glob, xml.etree.ElementTree, getpass
import json
from os.path import expanduser
#from git import Repo
BASE_URL = "https://api.github.com/repos/pixelfondue/%s/releases/latest"
BASE_PATH = os.path.dirname(os.path.realpath(__file__))
print "bas... | 34.016026 | 95 | 0.647508 |
17710ad793bc93dd8874daa574ca41c7a810cdf1 | 1,210 | py | Python | nestor/datasets/base.py | usnistgov/nestor-tmp | 6cc35dcf4dac029f94c4bc92783b5dc37bc205ce | [
"RSA-MD"
] | 16 | 2018-07-06T16:36:56.000Z | 2021-12-13T03:02:02.000Z | nestor/datasets/base.py | usnistgov/nestor-tmp | 6cc35dcf4dac029f94c4bc92783b5dc37bc205ce | [
"RSA-MD"
] | 46 | 2018-08-06T15:51:35.000Z | 2021-08-02T21:00:51.000Z | nestor/datasets/base.py | usnistgov/nestor-tmp | 6cc35dcf4dac029f94c4bc92783b5dc37bc205ce | [
"RSA-MD"
] | 7 | 2020-04-27T18:56:24.000Z | 2021-08-14T02:44:40.000Z | from pathlib import Path
import pandas as pd
def load_excavators(cleaned=False):
"""
Helper function to load excavator toy dataset.
Hodkiewicz, M., and Ho, M. (2016)
"Cleaning historical maintenance work order data for reliability analysis"
in Journal of Quality in Maintenance Engineering, Vol 22... | 35.588235 | 175 | 0.676033 |
177194c329dea268086e33e7d66d605e4b6732f1 | 2,094 | py | Python | server/test/test_server.py | byee123/battleships | 0cd527217c8727f7b3274d8a661cbf8d49aa4276 | [
"MIT"
] | 2 | 2020-11-02T08:04:06.000Z | 2020-11-25T12:20:45.000Z | server/test/test_server.py | byee123/battleships | 0cd527217c8727f7b3274d8a661cbf8d49aa4276 | [
"MIT"
] | 17 | 2020-11-02T04:30:17.000Z | 2020-12-07T00:35:34.000Z | server/test/test_server.py | byee123/battleships | 0cd527217c8727f7b3274d8a661cbf8d49aa4276 | [
"MIT"
] | 14 | 2020-10-05T08:15:59.000Z | 2020-11-28T10:31:40.000Z | import unittest
from game import Game
import server
REDIS_HOST = '192.168.20.50'
| 33.238095 | 70 | 0.617479 |
1772a508f28a639e2e47a3e3c85f76e1e18b4977 | 12,643 | py | Python | src/tenants/management/commands/update_lastseen.py | litedesk/litedesk-webserver-provision | 1576b9d3e5e2e64d1136d276767c2710cfb1938f | [
"Apache-2.0"
] | 1 | 2016-01-18T08:19:22.000Z | 2016-01-18T08:19:22.000Z | src/tenants/management/commands/update_lastseen.py | litedesk/litedesk-webserver-provision | 1576b9d3e5e2e64d1136d276767c2710cfb1938f | [
"Apache-2.0"
] | null | null | null | src/tenants/management/commands/update_lastseen.py | litedesk/litedesk-webserver-provision | 1576b9d3e5e2e64d1136d276767c2710cfb1938f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2014, Deutsche Telekom AG - Laboratories (T-Labs)
#
# 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... | 45.315412 | 91 | 0.536423 |
17738680820320743984fa3e2770dfc03df31cc2 | 83 | py | Python | Chapter 05/Chap05_Example5.47.py | bpbpublications/Programming-Techniques-using-Python | 49b785f37e95a3aad1d36cef51e219ac56e5e9f0 | [
"MIT"
] | null | null | null | Chapter 05/Chap05_Example5.47.py | bpbpublications/Programming-Techniques-using-Python | 49b785f37e95a3aad1d36cef51e219ac56e5e9f0 | [
"MIT"
] | null | null | null | Chapter 05/Chap05_Example5.47.py | bpbpublications/Programming-Techniques-using-Python | 49b785f37e95a3aad1d36cef51e219ac56e5e9f0 | [
"MIT"
] | null | null | null | #games module
from Football.goalkeeper import name_goalkeeper
name_goalkeeper()
| 20.75 | 48 | 0.831325 |
1773d93609383bcbb4fab691a8762940ea340e8e | 1,470 | py | Python | pset6/dna/dna.py | vipsum/cs50 | b3aa05ae470faea657343644a4073814825ceb83 | [
"MIT"
] | null | null | null | pset6/dna/dna.py | vipsum/cs50 | b3aa05ae470faea657343644a4073814825ceb83 | [
"MIT"
] | null | null | null | pset6/dna/dna.py | vipsum/cs50 | b3aa05ae470faea657343644a4073814825ceb83 | [
"MIT"
] | null | null | null | import csv
import sys
# error checking
if len(sys.argv) != 3:
print("ERROR. Usage: Usage: python dna.py data.csv sequence.txt")
sys.exit(1)
#opening csv file and sequence texts
csvFile = open(sys.argv[1])
DNAsequence = open(sys.argv[2]).read()
# reading csv file onto a dictionary
csvReader = csv.DictReader(csvF... | 34.186047 | 94 | 0.687075 |
1777e634f97948573907da1787803d38c27f6c8f | 311 | py | Python | script_utils/read_file.py | img-caption-mania/img_caption_dl_textAnalytic | 444385d928687673b5286ebb0a9b598de019916f | [
"Apache-2.0"
] | null | null | null | script_utils/read_file.py | img-caption-mania/img_caption_dl_textAnalytic | 444385d928687673b5286ebb0a9b598de019916f | [
"Apache-2.0"
] | null | null | null | script_utils/read_file.py | img-caption-mania/img_caption_dl_textAnalytic | 444385d928687673b5286ebb0a9b598de019916f | [
"Apache-2.0"
] | 2 | 2020-06-30T20:53:09.000Z | 2021-09-30T10:29:45.000Z | import os, sys, re, natsort
ls = [this for this in os.listdir(os.getcwd() + '/' + str(sys.argv[1]))]
# ls = ls.sort(key=lambda f: int(re.sub('\D', '', f)))
ls = natsort.natsorted(ls,reverse=False)
with open(os.getcwd() + '/' + str(sys.argv[2]), 'w') as f:
for item in ls:
f.write("%s\n" % item)
| 25.916667 | 72 | 0.569132 |
177931d9295fee1cf93668dbfec3ca5bb4baf4e5 | 1,281 | py | Python | utils.py | sc2h6o/DT | d1cde39c778d827efeb89c1b1d4d54d13214b51f | [
"MIT"
] | null | null | null | utils.py | sc2h6o/DT | d1cde39c778d827efeb89c1b1d4d54d13214b51f | [
"MIT"
] | null | null | null | utils.py | sc2h6o/DT | d1cde39c778d827efeb89c1b1d4d54d13214b51f | [
"MIT"
] | null | null | null | import numpy as np
import cv2
import random
| 20.333333 | 72 | 0.54879 |
177a3ca237d5d4bf472566aa5ce8d9bf5f80f77a | 31 | py | Python | SSM/evaluations/__init__.py | taufikxu/FD-ScoreMatching | 9df0789bb98bb798b3de57072f63ee4b2f19947f | [
"MIT"
] | 12 | 2020-05-23T10:02:12.000Z | 2021-03-25T19:54:00.000Z | SSM/evaluations/__init__.py | taufikxu/FD-ScoreMatching | 9df0789bb98bb798b3de57072f63ee4b2f19947f | [
"MIT"
] | 6 | 2021-03-19T15:30:28.000Z | 2022-03-12T00:51:16.000Z | SSM/evaluations/__init__.py | taufikxu/FD-ScoreMatching | 9df0789bb98bb798b3de57072f63ee4b2f19947f | [
"MIT"
] | 4 | 2020-11-04T03:52:45.000Z | 2021-12-28T16:07:08.000Z | __all__ = ['ais', 'fid', 'hmc'] | 31 | 31 | 0.516129 |