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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
14707c163eafcd974725dfd54d470997350920ec | 1,008 | py | Python | scripts/use_dataframe_with_info.py | HK3-Lab-Team/pytrousse | 59744b3e3c19dd07b43fec3ddaf60bc889a140a9 | [
"Apache-2.0"
] | null | null | null | scripts/use_dataframe_with_info.py | HK3-Lab-Team/pytrousse | 59744b3e3c19dd07b43fec3ddaf60bc889a140a9 | [
"Apache-2.0"
] | 52 | 2020-09-11T10:33:39.000Z | 2021-02-03T12:09:50.000Z | scripts/use_dataframe_with_info.py | HK3-Lab-Team/pytrousse | 59744b3e3c19dd07b43fec3ddaf60bc889a140a9 | [
"Apache-2.0"
] | null | null | null | import os
import time
from trousse.dataset import Dataset
df_sani_dir = os.path.join(
"/home/lorenzo-hk3lab/WorkspaceHK3Lab/",
"smvet",
"data",
"Sani_15300_anonym.csv",
)
metadata_cols = (
"GROUPS TAG DATA_SCHEDA NOME ID_SCHEDA COMUNE PROV MONTH YEAR BREED"
" SEX AGE SEXUAL STATUS BODYWEIGHT ... | 25.846154 | 78 | 0.670635 |
14717a6c7ca6f6055e2601fb501025c2b4eb4af3 | 3,303 | py | Python | tests/test_spatial_sort.py | Ruibin-Liu/Despace | f26b06398a1100696f335ca1c7f4852b31e1f2e9 | [
"Apache-2.0"
] | 2 | 2022-03-17T02:37:45.000Z | 2022-03-17T13:24:24.000Z | tests/test_spatial_sort.py | Ruibin-Liu/Despace | f26b06398a1100696f335ca1c7f4852b31e1f2e9 | [
"Apache-2.0"
] | 1 | 2022-03-17T01:22:27.000Z | 2022-03-17T03:28:10.000Z | tests/test_spatial_sort.py | Ruibin-Liu/Despace | f26b06398a1100696f335ca1c7f4852b31e1f2e9 | [
"Apache-2.0"
] | null | null | null | import sys
from os.path import exists
from unittest.mock import patch
import numpy as np # type: ignore
import pytest
from despace.spatial_sort import SortND
sys.path.append("..")
coords_1d = np.array([1.0, 0.1, 1.5, -0.3, 0.0])
sorted_coords_1d = np.array([-0.3, 0.0, 0.1, 1.0, 1.5])
coords_2d = np.array(
[[1... | 23.76259 | 88 | 0.546776 |
147277a6aa2b1959c8dba97e04e292544cd443d3 | 5,517 | py | Python | examples/pendulum/Train_Pendulum.py | JayLago/Hankel-DLDMD | c1b739a7488fbeb71a1f581c288843e9de66d2fc | [
"MIT"
] | null | null | null | examples/pendulum/Train_Pendulum.py | JayLago/Hankel-DLDMD | c1b739a7488fbeb71a1f581c288843e9de66d2fc | [
"MIT"
] | null | null | null | examples/pendulum/Train_Pendulum.py | JayLago/Hankel-DLDMD | c1b739a7488fbeb71a1f581c288843e9de66d2fc | [
"MIT"
] | null | null | null | """
Author:
Jay Lago, SDSU, 2021
"""
import tensorflow as tf
import pickle
import datetime as dt
import os
import sys
sys.path.insert(0, '../../')
import HDMD as dl
import LossDLDMD as lf
import Data as dat
import Training as tr
# ===========================================================================... | 40.270073 | 106 | 0.634584 |
14728ecbe8e51b8719ee9b289419e71b4c078ce0 | 1,542 | py | Python | FIST.py | IGN-Styly/FIST | 69f0b11b863f3440d716ad302e7fc2acddfb145f | [
"MIT"
] | 2 | 2022-01-20T18:57:53.000Z | 2022-03-16T23:23:47.000Z | FIST.py | IGN-Styly/FIST | 69f0b11b863f3440d716ad302e7fc2acddfb145f | [
"MIT"
] | 2 | 2022-01-20T18:41:46.000Z | 2022-01-24T18:15:53.000Z | FIST.py | IGN-Styly/FIST | 69f0b11b863f3440d716ad302e7fc2acddfb145f | [
"MIT"
] | 1 | 2022-01-20T01:29:03.000Z | 2022-01-20T01:29:03.000Z | import json
| 22.028571 | 78 | 0.592088 |
1472d75a6abf289e47bd71dbaf7c5950d9fe47ac | 1,332 | py | Python | john_zelle_python3/gpa.py | alirkaya/programming-textbook-solutions | 7362dce474b8a881d654f95604e09d1d0e76aec2 | [
"MIT"
] | null | null | null | john_zelle_python3/gpa.py | alirkaya/programming-textbook-solutions | 7362dce474b8a881d654f95604e09d1d0e76aec2 | [
"MIT"
] | null | null | null | john_zelle_python3/gpa.py | alirkaya/programming-textbook-solutions | 7362dce474b8a881d654f95604e09d1d0e76aec2 | [
"MIT"
] | null | null | null |
if __name__ == '__main__': main() | 25.615385 | 63 | 0.627628 |
147420a84e36353cde55058397ca18c7de1ab832 | 1,292 | py | Python | {{cookiecutter.project_name}}/Data/sample_treatment/simple_repeat.py | piperwelch/SymbulationProjectTemplate | 7bdfafb33bae821fc0f3406e363b8b9f0b7cc831 | [
"MIT"
] | null | null | null | {{cookiecutter.project_name}}/Data/sample_treatment/simple_repeat.py | piperwelch/SymbulationProjectTemplate | 7bdfafb33bae821fc0f3406e363b8b9f0b7cc831 | [
"MIT"
] | null | null | null | {{cookiecutter.project_name}}/Data/sample_treatment/simple_repeat.py | piperwelch/SymbulationProjectTemplate | 7bdfafb33bae821fc0f3406e363b8b9f0b7cc831 | [
"MIT"
] | null | null | null | #a script to run several replicates of several treatments locally
#You should create a directory for your result files and run this script from within that directory
seeds = range(21, 41)
verts = [0.3]
h_mut_rate = [0.1, 0.5, 1.0]
import subprocess
def cmd(command):
'''This wait causes all executions to run in s... | 46.142857 | 279 | 0.645511 |
147447bc0d6e65d1e4b7dc6b9ee8bffa5888dd3b | 499 | py | Python | First Unique Character in a String.py | frank0215/Leetcode_python | 9428ded4f9abd347b12bfef8aa1dd2d177f3afea | [
"MIT"
] | null | null | null | First Unique Character in a String.py | frank0215/Leetcode_python | 9428ded4f9abd347b12bfef8aa1dd2d177f3afea | [
"MIT"
] | null | null | null | First Unique Character in a String.py | frank0215/Leetcode_python | 9428ded4f9abd347b12bfef8aa1dd2d177f3afea | [
"MIT"
] | null | null | null |
if __name__ == '__main__':
s = 'leetcode' # output 0
#s = 'loveleetcode' # output 2
#s = 'llee' # output -1
print(Solution().firstUniqChar(s)) | 27.722222 | 46 | 0.472946 |
14770d630f638d640c9e37a29b68e980bdb4f14d | 2,897 | py | Python | tests/list_tests.py | kzawisto/mc | ce37f0bbfd73e0767b4edc905ce2a75777b33f42 | [
"MIT"
] | null | null | null | tests/list_tests.py | kzawisto/mc | ce37f0bbfd73e0767b4edc905ce2a75777b33f42 | [
"MIT"
] | null | null | null | tests/list_tests.py | kzawisto/mc | ce37f0bbfd73e0767b4edc905ce2a75777b33f42 | [
"MIT"
] | null | null | null | from hamcrest import *
from nose.tools import eq_
from mc import List, Some, Nothing,add
| 21.145985 | 85 | 0.556438 |
147880e13d2fb6983b451f768932d5c83c8eb10b | 1,087 | py | Python | src/groktoolkit/__init__.py | zopefoundation/groktoolkit | 6d295997510139b0588b2401d5f54fca8234a15e | [
"ZPL-2.1"
] | 2 | 2015-12-05T05:46:55.000Z | 2017-07-03T17:39:32.000Z | src/groktoolkit/__init__.py | zopefoundation/groktoolkit | 6d295997510139b0588b2401d5f54fca8234a15e | [
"ZPL-2.1"
] | 7 | 2017-07-06T15:07:31.000Z | 2021-04-20T14:38:21.000Z | src/groktoolkit/__init__.py | zopefoundation/groktoolkit | 6d295997510139b0588b2401d5f54fca8234a15e | [
"ZPL-2.1"
] | 2 | 2016-03-20T18:03:15.000Z | 2018-01-11T04:33:40.000Z | import sys
import re
import os
import commands
HOST = 'grok.zope.org'
RELEASEINFOPATH = '/var/www/html/grok/releaseinfo'
| 31.970588 | 68 | 0.679853 |
147a0334d820a059fbd8f4598327b2b7c87e1f19 | 3,720 | py | Python | obywatele/migrations/0020_auto_20201225_1624.py | soma115/wikikracja | 7715ca1daa4ca09888e1c7389ed5f8a2df29898b | [
"MIT"
] | 7 | 2016-02-21T17:25:54.000Z | 2021-10-09T19:36:10.000Z | obywatele/migrations/0020_auto_20201225_1624.py | soma115/wikikracja | 7715ca1daa4ca09888e1c7389ed5f8a2df29898b | [
"MIT"
] | 19 | 2020-02-11T23:55:01.000Z | 2022-03-31T18:11:56.000Z | obywatele/migrations/0020_auto_20201225_1624.py | soma115/wikikracja | 7715ca1daa4ca09888e1c7389ed5f8a2df29898b | [
"MIT"
] | 3 | 2016-01-20T22:34:58.000Z | 2020-09-16T07:45:42.000Z | # Generated by Django 3.1 on 2020-12-25 15:24
from django.db import migrations, models
| 44.285714 | 162 | 0.618548 |
147a5096d0d2e1067ea8f8785a929ae310227d3e | 386 | py | Python | Darlington/phase1/python Basic 2/day 21 solution/qtn1.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 6 | 2020-05-23T19:53:25.000Z | 2021-05-08T20:21:30.000Z | Darlington/phase1/python Basic 2/day 21 solution/qtn1.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 8 | 2020-05-14T18:53:12.000Z | 2020-07-03T00:06:20.000Z | Darlington/phase1/python Basic 2/day 21 solution/qtn1.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 39 | 2020-05-10T20:55:02.000Z | 2020-09-12T17:40:59.000Z | #program to compute and print sum of two given integers (more than or equal to zero).
# If given integers or the sum have more than 80 digits, print "overflow".
print("Input first integer:")
x = int(input())
print("Input second integer:")
y = int(input())
if x >= 10 ** 80 or y >= 10 ** 80 or x + y >= 10 ** 80:
pri... | 38.6 | 86 | 0.647668 |
147c28455f56f5983cd813f99265bdd8b89586bb | 270 | py | Python | app/cli/__init__.py | Hacker-1202/Selfium | 7e798c23c9f24aacab6f6a485d6355f1045bc65c | [
"MIT"
] | 14 | 2021-11-05T11:27:25.000Z | 2022-02-28T02:04:32.000Z | app/cli/__init__.py | CssHammer/Selfium | 7e798c23c9f24aacab6f6a485d6355f1045bc65c | [
"MIT"
] | 2 | 2021-05-17T23:55:34.000Z | 2021-07-09T17:24:44.000Z | app/cli/__init__.py | CssHammer/Selfium | 7e798c23c9f24aacab6f6a485d6355f1045bc65c | [
"MIT"
] | 5 | 2022-01-02T13:33:17.000Z | 2022-02-26T13:09:50.000Z |
"""
Selfium CLI Tools
~~~~~~~~~~~~~~~~~~~
All cli functions used in Selfium project;
:copyright: (c) 2021 - Caillou and ZeusHay;
:license: MIT, see LICENSE for more details.
"""
from .logo import *
from .clear import *
from .welcome import *
from .tokenError import *
| 19.285714 | 44 | 0.67037 |
147d0d54209eeeaab12be3279f9d110b874ff369 | 5,136 | py | Python | controllers/mainController.py | jersobh/zfs-resty | 2a71d89df6b90992723a87ee8bf5eeb2ac27cc8a | [
"MIT"
] | 11 | 2019-01-03T04:05:31.000Z | 2021-09-22T23:47:05.000Z | controllers/mainController.py | jersobh/zfs-resty | 2a71d89df6b90992723a87ee8bf5eeb2ac27cc8a | [
"MIT"
] | 11 | 2020-10-28T08:02:06.000Z | 2022-03-18T08:02:51.000Z | controllers/mainController.py | jersobh/zfs-resty | 2a71d89df6b90992723a87ee8bf5eeb2ac27cc8a | [
"MIT"
] | null | null | null | import uuid
from datetime import datetime, timedelta
from controllers import zfsController
import jwt
import pam
import render
JWT_SECRET = "7wXJ4kxCRWJpMQNqRVTVR3Qbc"
JWT_ALGORITHM = "HS256"
JWT_EXP_DELTA_SECONDS = 4300
| 31.900621 | 104 | 0.596379 |
147d6b7888d4e07de9fd294908f9ee518aa81f10 | 2,888 | py | Python | agent/stubs/retina.py | yoshi-ono/WM_Hackathon | 546996c80b53a155ca94417b2fd19412c8f9f9c4 | [
"Apache-2.0"
] | 9 | 2020-09-08T04:39:55.000Z | 2021-08-03T14:28:33.000Z | agent/stubs/retina.py | pulinagrawal/WM_Hackathon | 19522ba74c5cf1d78b19d58b1881e77b5ef26c27 | [
"Apache-2.0"
] | null | null | null | agent/stubs/retina.py | pulinagrawal/WM_Hackathon | 19522ba74c5cf1d78b19d58b1881e77b5ef26c27 | [
"Apache-2.0"
] | 4 | 2021-04-21T00:48:28.000Z | 2021-06-28T02:33:04.000Z | import torch.nn as nn
import torch
import torchvision
from utils.image_filter_utils import get_dog_image_filter, conv2d_output_shape
from utils.writer_singleton import WriterSingleton
| 36.1 | 111 | 0.684557 |
147da05a9f652a5715c04bef141e04cc07ea681a | 790 | py | Python | aws_sso/utils/registry.py | rkhullar/many-sso | 14e019187e411bdeee77152310b09d250ec90555 | [
"MIT"
] | 2 | 2019-12-15T18:57:58.000Z | 2020-06-15T22:02:29.000Z | aws_sso/utils/registry.py | rkhullar/many-sso | 14e019187e411bdeee77152310b09d250ec90555 | [
"MIT"
] | 1 | 2020-02-06T19:02:36.000Z | 2020-02-06T19:02:36.000Z | aws_sso/utils/registry.py | rkhullar/many-sso | 14e019187e411bdeee77152310b09d250ec90555 | [
"MIT"
] | null | null | null | from typing import Callable, Dict, Type
def register_service(cls):
"""discover methods within a class with prefix "handle_" and populate the actions"""
| 30.384615 | 123 | 0.663291 |
147e3d176f26326ab89c0aebc52786cc4463a120 | 5,154 | py | Python | tools/waf-tools/f_cppcheck.py | TerraWilly/foxbms-2 | 62288b333fe6da52deae91f74fb15e71060ac99c | [
"CC-BY-4.0"
] | 1 | 2021-04-11T02:02:28.000Z | 2021-04-11T02:02:28.000Z | tools/waf-tools/f_cppcheck.py | TerraWilly/foxbms-2 | 62288b333fe6da52deae91f74fb15e71060ac99c | [
"CC-BY-4.0"
] | null | null | null | tools/waf-tools/f_cppcheck.py | TerraWilly/foxbms-2 | 62288b333fe6da52deae91f74fb15e71060ac99c | [
"CC-BY-4.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @copyright © 2010 - 2021, Fraunhofer-Gesellschaft zur Foerderung der
# angewandten Forschung e.V. All rights reserved.
#
# BSD 3-Clause License
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the fol... | 37.620438 | 99 | 0.689367 |
147e734bd09bed751a8e4643798609eb58918fad | 539 | py | Python | updater/models.py | h4ck3rm1k3/srtracker | 2ef54b1854bbc082c871ce08ea22f6c9ce03eb37 | [
"Ruby"
] | 1 | 2019-04-27T20:15:11.000Z | 2019-04-27T20:15:11.000Z | updater/models.py | h4ck3rm1k3/srtracker | 2ef54b1854bbc082c871ce08ea22f6c9ce03eb37 | [
"Ruby"
] | null | null | null | updater/models.py | h4ck3rm1k3/srtracker | 2ef54b1854bbc082c871ce08ea22f6c9ce03eb37 | [
"Ruby"
] | null | null | null | from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, Integer, String, DateTime, Sequence
Base = declarative_base()
| 25.666667 | 80 | 0.714286 |
147f8e40d8bb9c99516ab75985ce538329215277 | 1,352 | py | Python | setup.py | writememe/motherstarter | e326ad8f73fc8741fa69faf20ea214486aca1c42 | [
"Apache-2.0"
] | 33 | 2020-11-15T09:51:11.000Z | 2022-01-23T09:51:49.000Z | setup.py | writememe/motherstarter | e326ad8f73fc8741fa69faf20ea214486aca1c42 | [
"Apache-2.0"
] | 98 | 2020-11-08T21:55:12.000Z | 2022-03-01T15:53:08.000Z | setup.py | writememe/motherstarter | e326ad8f73fc8741fa69faf20ea214486aca1c42 | [
"Apache-2.0"
] | 2 | 2022-01-10T07:15:15.000Z | 2022-02-25T04:22:46.000Z | #!/usr/bin/env python
# Motherstarter setup file
from setuptools import setup, find_packages
from motherstarter import __version__, __author__
# Open and read README file
with open("README.md", "r", encoding="utf-8") as f:
README = f.read()
# Setup requirements to be installed
requirements = []
with open("requi... | 29.391304 | 70 | 0.674556 |
147faa823472137bc7f168c087637c0fa7b9e1d9 | 8,006 | py | Python | rgw/v2/tests/s3_swift/test_dynamic_bucket_resharding.py | rpratap-bot/ceph-qe-scripts | 8a7090d6707a8e7b927eabfc9c9212f343a35bc4 | [
"MIT"
] | null | null | null | rgw/v2/tests/s3_swift/test_dynamic_bucket_resharding.py | rpratap-bot/ceph-qe-scripts | 8a7090d6707a8e7b927eabfc9c9212f343a35bc4 | [
"MIT"
] | null | null | null | rgw/v2/tests/s3_swift/test_dynamic_bucket_resharding.py | rpratap-bot/ceph-qe-scripts | 8a7090d6707a8e7b927eabfc9c9212f343a35bc4 | [
"MIT"
] | null | null | null | """
test_dynamic_bucket_resharding - Test resharding operations on bucket
Usage: test_dynamic_bucket_resharding.py -c <input_yaml>
<input_yaml>
Note: any one of these yamls can be used
test_manual_resharding.yaml
test_dynamic_resharding.yaml
Operation:
Create user
Perform IOs in specific bucket
... | 41.697917 | 116 | 0.673995 |
14817026f39bd06023f2b84c932bb54cab1a147b | 690 | py | Python | example/schema.py | devind-team/devind-django-dictionaries | 6b2086a15590c968450a5c6fa2a81b4734ee1a81 | [
"MIT"
] | null | null | null | example/schema.py | devind-team/devind-django-dictionaries | 6b2086a15590c968450a5c6fa2a81b4734ee1a81 | [
"MIT"
] | 1 | 2022-03-30T02:44:05.000Z | 2022-03-30T02:44:05.000Z | example/schema.py | devind-team/devind-django-dictionaries | 6b2086a15590c968450a5c6fa2a81b4734ee1a81 | [
"MIT"
] | null | null | null |
import graphene
from typing import cast
from graphene_django import DjangoObjectType
from graphene_django.debug import DjangoDebug
from django.contrib.auth import get_user_model
import devind_dictionaries.schema
schema = graphene.Schema(query=cast(graphene.ObjectType, Query), mutation=Mutation)
| 20.294118 | 83 | 0.750725 |
14848a43d3f090cdc183de7af48de1c3e490059a | 311 | py | Python | fuzzi-gen/fuzzi/evaluation/pate.py | hengchu/fuzzi-impl | bcf49c42d2dd4e1e3c1fe8b85fa7f845ea8fd016 | [
"BSD-3-Clause"
] | 4 | 2019-04-02T15:54:21.000Z | 2022-02-14T20:34:00.000Z | fuzzi-gen/fuzzi/evaluation/pate.py | hengchu/fuzzi-impl | bcf49c42d2dd4e1e3c1fe8b85fa7f845ea8fd016 | [
"BSD-3-Clause"
] | 1 | 2019-08-19T13:53:50.000Z | 2019-08-19T13:53:50.000Z | fuzzi-gen/fuzzi/evaluation/pate.py | hengchu/fuzzi-impl | bcf49c42d2dd4e1e3c1fe8b85fa7f845ea8fd016 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
| 25.916667 | 65 | 0.691318 |
1486390989e81040ce5dfa57404584bdd0aad30e | 462 | py | Python | bedrock/app/utils/jinja.py | ronbeltran/webapp2-bedrock | 42909fd6eb99ffe19ff941f9c66c9c84548139c6 | [
"MIT"
] | 1 | 2019-01-09T10:14:38.000Z | 2019-01-09T10:14:38.000Z | bedrock/app/utils/jinja.py | ronbeltran/webapp2-bedrock | 42909fd6eb99ffe19ff941f9c66c9c84548139c6 | [
"MIT"
] | null | null | null | bedrock/app/utils/jinja.py | ronbeltran/webapp2-bedrock | 42909fd6eb99ffe19ff941f9c66c9c84548139c6 | [
"MIT"
] | null | null | null | import os
import webapp2
import jinja2
import config
from app.utils.compressor import WEBASSETS_ENV
JINJA_ENV = jinja2.Environment(
autoescape=lambda x: True,
extensions=['jinja2.ext.autoescape',
'webassets.ext.jinja2.AssetsExtension'],
loader=jinja2.FileSystemLoader(
os.path.joi... | 22 | 56 | 0.742424 |
14878c677e10667944d3fa541d7f4f2e7bfbbbc0 | 1,479 | py | Python | Mundo 3/ex094.py | adonaifariasdev/cursoemvideo-python3 | 1fd35e45b24c52013fa3bc98e723971db8e6b7d1 | [
"MIT"
] | null | null | null | Mundo 3/ex094.py | adonaifariasdev/cursoemvideo-python3 | 1fd35e45b24c52013fa3bc98e723971db8e6b7d1 | [
"MIT"
] | null | null | null | Mundo 3/ex094.py | adonaifariasdev/cursoemvideo-python3 | 1fd35e45b24c52013fa3bc98e723971db8e6b7d1 | [
"MIT"
] | null | null | null | # Crie um programa que leia nome, sexo e idade de vrias pessoas, guardando os dados
# de cada pessoa em um dicionrio e todos os dicionrios em uma lista. No final, mostre:
# A) Quantas pessoas foram cadastradas B) A mdia de idade C) Uma lista com as mulheres
# D) Uma lista de pessoas com idade acima da mdia
dados = dic... | 33.613636 | 88 | 0.584178 |
1487bed70be2fb31efb307ee1f6bd18e9a12f492 | 3,794 | py | Python | lonet.py | johan12345/lonet.py | 903138df325ad7be91d17045d0fcf768ca09aa4e | [
"MIT"
] | 1 | 2016-09-28T06:53:45.000Z | 2016-09-28T06:53:45.000Z | lonet.py | johan12345/lonet.py | 903138df325ad7be91d17045d0fcf768ca09aa4e | [
"MIT"
] | null | null | null | lonet.py | johan12345/lonet.py | 903138df325ad7be91d17045d0fcf768ca09aa4e | [
"MIT"
] | null | null | null | import argparse
import os
import re
import urllib.parse
import requests
from bs4 import BeautifulSoup
from pushbullet import Pushbullet
pushbullet = None
parser = argparse.ArgumentParser(description='Download files from lo-net2.de file storage')
parser.add_argument('-u', '--username', type=str, required=True,
... | 35.12963 | 101 | 0.614128 |
148809bfd699775d4def161db38c6f759cec7977 | 1,404 | py | Python | multiagent/scenarios/simple_spread_random_one.py | enikon/MACP | 2de004d4eaf09f3b02dde3b7041ce6d693d0c25c | [
"MIT"
] | null | null | null | multiagent/scenarios/simple_spread_random_one.py | enikon/MACP | 2de004d4eaf09f3b02dde3b7041ce6d693d0c25c | [
"MIT"
] | null | null | null | multiagent/scenarios/simple_spread_random_one.py | enikon/MACP | 2de004d4eaf09f3b02dde3b7041ce6d693d0c25c | [
"MIT"
] | null | null | null | import random
from multiagent.scenarios.commons import *
from multiagent.scenarios.simple_spread import Scenario as S
| 34.243902 | 104 | 0.675926 |
14898fa376cacb6e7cf263f4a13f44d71dbd2631 | 1,961 | py | Python | tests/unit/seed/test_extra_install.py | hauntsaninja/virtualenv | 8c2985c2946e767bb6f74a7e22f51add17b38987 | [
"MIT"
] | 1 | 2022-02-21T02:01:37.000Z | 2022-02-21T02:01:37.000Z | tests/unit/seed/test_extra_install.py | hauntsaninja/virtualenv | 8c2985c2946e767bb6f74a7e22f51add17b38987 | [
"MIT"
] | null | null | null | tests/unit/seed/test_extra_install.py | hauntsaninja/virtualenv | 8c2985c2946e767bb6f74a7e22f51add17b38987 | [
"MIT"
] | null | null | null | from __future__ import absolute_import, unicode_literals
import os
import subprocess
import pytest
from virtualenv.discovery.py_info import PythonInfo
from virtualenv.run import run_via_cli
from virtualenv.util.path import Path
from virtualenv.util.subprocess import Popen
CURRENT = PythonInfo.current_system()
CREAT... | 31.629032 | 94 | 0.694034 |
1489fd9b83819471be937ccd9caa3138125a9719 | 481 | py | Python | pyhanko_certvalidator/_types.py | MatthiasValvekens/certvalidator | 246c5075ecdb6d50b14c93fdc97a9d0470f84821 | [
"MIT"
] | 4 | 2020-11-11T13:59:05.000Z | 2022-03-13T14:06:10.000Z | pyhanko_certvalidator/_types.py | MatthiasValvekens/certvalidator | 246c5075ecdb6d50b14c93fdc97a9d0470f84821 | [
"MIT"
] | 1 | 2020-11-11T11:29:37.000Z | 2020-11-11T11:29:37.000Z | pyhanko_certvalidator/_types.py | MatthiasValvekens/certvalidator | 246c5075ecdb6d50b14c93fdc97a9d0470f84821 | [
"MIT"
] | 2 | 2020-11-11T10:33:32.000Z | 2022-03-13T14:06:11.000Z | # coding: utf-8
import inspect
def type_name(value):
"""
Returns a user-readable name for the type of an object
:param value:
A value to get the type name of
:return:
A unicode string of the object's type name
"""
if inspect.isclass(value):
cls = value
else:
... | 20.041667 | 58 | 0.609148 |
148a037daf2a31f1b0747c7a72dcdff26d1106d3 | 959 | gyp | Python | allofw.node/binding.gyp | donghaoren/AllofwModule | 4367327cda0605aad53469294ed8751f8befbdc3 | [
"Unlicense"
] | 3 | 2016-05-04T23:23:48.000Z | 2021-08-03T21:48:07.000Z | allofw.node/binding.gyp | donghaoren/AllofwModule | 4367327cda0605aad53469294ed8751f8befbdc3 | [
"Unlicense"
] | null | null | null | allofw.node/binding.gyp | donghaoren/AllofwModule | 4367327cda0605aad53469294ed8751f8befbdc3 | [
"Unlicense"
] | 2 | 2016-01-31T04:06:51.000Z | 2016-09-30T16:38:36.000Z | {
"targets": [
{
"target_name": "allofw",
"include_dirs": [
"<!@(pkg-config liballofw --cflags-only-I | sed s/-I//g)",
"<!(node -e \"require('nan')\")"
],
"libraries": [
"<!@(pkg-config liballofw --libs)",
"<!@(pkg-config glew --libs)",
],
"cflag... | 25.236842 | 66 | 0.448384 |
148ab50bbb98c6b8649b8ab5529309acc57c2593 | 5,237 | py | Python | LeetCode-All-Solution/Python3/LC-0388-Longest-Absolute-File-Path.py | YuweiYin/Algorithm_YuweiYin | 28648fac59c5a4e3c907978cbd1b3e662ba18fd5 | [
"MIT"
] | null | null | null | LeetCode-All-Solution/Python3/LC-0388-Longest-Absolute-File-Path.py | YuweiYin/Algorithm_YuweiYin | 28648fac59c5a4e3c907978cbd1b3e662ba18fd5 | [
"MIT"
] | null | null | null | LeetCode-All-Solution/Python3/LC-0388-Longest-Absolute-File-Path.py | YuweiYin/Algorithm_YuweiYin | 28648fac59c5a4e3c907978cbd1b3e662ba18fd5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""=================================================================
@Project : Algorithm_YuweiYin/LeetCode-All-Solution/Python3
@File : LC-0388-Longest-Absolute-File-Path.py
@Author : [YuweiYin](https://github.com/YuweiYin)
@Date : 2022-04-20
========================... | 35.385135 | 110 | 0.618293 |
148cb7b0b27629b649b5fbda0b3320b27df1be32 | 44,876 | py | Python | main.py | DeadCodeProductions/dead | a8e65abd76bf4a10268317bbf7a168c03c84e5f8 | [
"Apache-2.0"
] | 20 | 2022-02-25T10:49:53.000Z | 2022-03-17T09:17:27.000Z | main.py | DeadCodeProductions/dead | a8e65abd76bf4a10268317bbf7a168c03c84e5f8 | [
"Apache-2.0"
] | 3 | 2022-02-28T20:00:32.000Z | 2022-03-28T12:52:35.000Z | main.py | DeadCodeProductions/dead | a8e65abd76bf4a10268317bbf7a168c03c84e5f8 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import copy
import hashlib
import logging
import os
import random
import re
import subprocess
import sys
import tempfile
import time
from multiprocessing import Pool
from pathlib import Path
from typing import Any, Dict, Optional, cast
import requests
import bisector
import builder
import chec... | 34.022745 | 198 | 0.572867 |
148e62acadab2abb7a544e4448e8d3e81c73ab98 | 585 | py | Python | pathod/__init__.py | illera88/mitmproxy | 4f464001841e5119bf57ef620a3257892ded2ded | [
"MIT"
] | 6 | 2020-11-25T07:33:05.000Z | 2022-01-25T07:25:54.000Z | pathod/__init__.py | illera88/mitmproxy | 4f464001841e5119bf57ef620a3257892ded2ded | [
"MIT"
] | null | null | null | pathod/__init__.py | illera88/mitmproxy | 4f464001841e5119bf57ef620a3257892ded2ded | [
"MIT"
] | 4 | 2021-03-14T16:14:27.000Z | 2021-09-25T03:01:15.000Z | import os
import sys
import warnings
warnings.warn(
"pathod and pathoc modules are deprecated, see https://github.com/mitmproxy/mitmproxy/issues/4273",
DeprecationWarning,
stacklevel=2
)
| 30.789474 | 131 | 0.707692 |
148fa74d7a5813457d336a4cb138f1b0a1e99c02 | 1,321 | py | Python | urchin/fs/mp3file.py | kellen/urchinfs | ea47d8997b42b9b472ea16d1bc7921b988840e4b | [
"Unlicense"
] | 2 | 2021-11-08T03:11:32.000Z | 2021-11-08T08:21:24.000Z | urchin/fs/mp3file.py | kellen/urchinfs | ea47d8997b42b9b472ea16d1bc7921b988840e4b | [
"Unlicense"
] | null | null | null | urchin/fs/mp3file.py | kellen/urchinfs | ea47d8997b42b9b472ea16d1bc7921b988840e4b | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
import os
import logging
from fnmatch import fnmatch
import mutagen
from mutagen.easyid3 import EasyID3
import urchin.fs.default
import urchin.fs.json
import urchin.fs.plugin
import urchin.fs.mp3
MP3_GLOB = "*.mp3"
| 30.022727 | 96 | 0.659349 |
14902d3960eb5bce06bda721f56d69952ffbd4d8 | 2,449 | py | Python | tests/model/test_qubic.py | Reathe/Qubic | 7ee18eb6cb67ff3637f664dd225273c51ae19847 | [
"MIT"
] | null | null | null | tests/model/test_qubic.py | Reathe/Qubic | 7ee18eb6cb67ff3637f664dd225273c51ae19847 | [
"MIT"
] | null | null | null | tests/model/test_qubic.py | Reathe/Qubic | 7ee18eb6cb67ff3637f664dd225273c51ae19847 | [
"MIT"
] | null | null | null | import unittest
from model.curseur import Curseur
from model.pion import PionBlanc, PionNoir
from model.qubic import Qubic
if __name__ == '__main__':
unittest.main()
| 25.778947 | 83 | 0.60392 |
1490c779943d925d00b0d9fdb094aaea36004a99 | 1,536 | py | Python | sherpa_client/models/project_status.py | kairntech/sherpa-client | cd259c87b7291eeec3f3ea025e368f2f069a06cd | [
"Apache-2.0"
] | null | null | null | sherpa_client/models/project_status.py | kairntech/sherpa-client | cd259c87b7291eeec3f3ea025e368f2f069a06cd | [
"Apache-2.0"
] | null | null | null | sherpa_client/models/project_status.py | kairntech/sherpa-client | cd259c87b7291eeec3f3ea025e368f2f069a06cd | [
"Apache-2.0"
] | null | null | null | from typing import Any, Dict, Type, TypeVar, Union
import attr
from ..models.sherpa_job_bean import SherpaJobBean
from ..types import UNSET, Unset
T = TypeVar("T", bound="ProjectStatus")
| 26.033898 | 63 | 0.598958 |
14911714ce686af966b277b1e70139fd1fd7f793 | 597 | py | Python | notify.py | MoveOnOrg/merkle | 764351cf6a21bb718343ae7488735f077aee3afe | [
"MIT"
] | null | null | null | notify.py | MoveOnOrg/merkle | 764351cf6a21bb718343ae7488735f077aee3afe | [
"MIT"
] | 50 | 2019-08-15T16:10:19.000Z | 2021-06-25T15:20:44.000Z | notify.py | MoveOnOrg/merkle | 764351cf6a21bb718343ae7488735f077aee3afe | [
"MIT"
] | null | null | null | import os
import sys
import slackweb
from pywell.entry_points import run_from_cli
DESCRIPTION = 'Send notification to Slack.'
ARG_DEFINITIONS = {
'SLACK_WEBHOOK': 'Web hook URL for Slack.',
'SLACK_CHANNEL': 'Slack channel to send to.',
'TEXT': 'Text to send.'
}
REQUIRED_ARGS = [
'SLACK_WEBHOOK', '... | 21.321429 | 69 | 0.716918 |
14913f5e91c0397a0cf3445e632e873adf524250 | 4,203 | py | Python | src/lib/earlystopping.py | dreizehnutters/pcapae | d436e5a8d74656875918d612d1700e063ec08bbb | [
"MIT"
] | null | null | null | src/lib/earlystopping.py | dreizehnutters/pcapae | d436e5a8d74656875918d612d1700e063ec08bbb | [
"MIT"
] | null | null | null | src/lib/earlystopping.py | dreizehnutters/pcapae | d436e5a8d74656875918d612d1700e063ec08bbb | [
"MIT"
] | null | null | null | from os import path, makedirs, walk ,remove, scandir, unlink
from numpy import inf
from torch import save as t_save
from lib.utils import sort_human, BOLD, CLR
| 38.209091 | 114 | 0.546039 |
149261fa7cc26a67d1e1edf484e1fa0b7d33452a | 97 | py | Python | ldapauthenticator/__init__.py | jbmarcille/ldapauthenticator | f6037d72bd8c76317b8741d96de1c7b1dee26298 | [
"BSD-3-Clause"
] | null | null | null | ldapauthenticator/__init__.py | jbmarcille/ldapauthenticator | f6037d72bd8c76317b8741d96de1c7b1dee26298 | [
"BSD-3-Clause"
] | null | null | null | ldapauthenticator/__init__.py | jbmarcille/ldapauthenticator | f6037d72bd8c76317b8741d96de1c7b1dee26298 | [
"BSD-3-Clause"
] | null | null | null | from ldapauthenticator.ldapauthenticator import LDAPAuthenticator
__all__ = [LDAPAuthenticator]
| 24.25 | 65 | 0.876289 |
14938eb4c17ff96d22edd6168c88c690385d934d | 2,207 | py | Python | tests/test_tc100.py | radoering/flake8-type-checking | 02c2af870e8098d0c5bd623591c5b184c0614213 | [
"BSD-3-Clause"
] | 19 | 2021-04-21T14:12:24.000Z | 2022-03-13T07:42:26.000Z | tests/test_tc100.py | radoering/flake8-type-checking | 02c2af870e8098d0c5bd623591c5b184c0614213 | [
"BSD-3-Clause"
] | 29 | 2021-04-21T14:31:12.000Z | 2022-03-26T08:57:54.000Z | tests/test_tc100.py | sondrelg/flake8-typing-only-imports | d27ffece2cdd5b57a529c8d9f45ba2173c29066f | [
"BSD-3-Clause"
] | 2 | 2021-04-08T08:04:44.000Z | 2021-04-14T11:00:18.000Z | """
This file tests the TC100 error:
>> Missing 'from __future__ import annotations' import
The idea is that we should raise one of these errors if a file contains any type-checking imports and one is missing.
One thing to note: futures imports should always be at the top of a file, so we only need to check one ... | 46.957447 | 117 | 0.670594 |
1493af77067165c908670ab195f77e6b1342b801 | 6,628 | py | Python | scripts/plot_sorting.py | t1mm3/fluid_coprocessing | 2cec71e1b9cb52cccf6c29ccf7193b845e67bc48 | [
"BSD-3-Clause"
] | 2 | 2019-07-01T14:38:55.000Z | 2021-03-16T14:05:26.000Z | scripts/plot_sorting.py | t1mm3/fluid_coprocessing | 2cec71e1b9cb52cccf6c29ccf7193b845e67bc48 | [
"BSD-3-Clause"
] | null | null | null | scripts/plot_sorting.py | t1mm3/fluid_coprocessing | 2cec71e1b9cb52cccf6c29ccf7193b845e67bc48 | [
"BSD-3-Clause"
] | 1 | 2019-11-28T07:25:03.000Z | 2019-11-28T07:25:03.000Z | #!/bin/env python2
import matplotlib as mpl
mpl.use('pgf')
pgf_with_pgflatex = {
"pgf.texsystem": "pdflatex",
"pgf.rcfonts": False,
"pgf.preamble": [
r"\usepackage[utf8x]{inputenc}",
r"\usepackage[T1]{fontenc}",
# r"\usepackage{cmbright}",
]
}
mpl.rcParams.update(pgf_wit... | 39.218935 | 178 | 0.650875 |
1493c59c1b444ee2035222130759f4547fe142d3 | 5,272 | py | Python | morf-python-api/build/lib/morf/utils/caching.py | jpgard/morf | f17afcacef68929a5ce9e7714208be1002a42418 | [
"MIT"
] | 14 | 2018-06-27T13:15:46.000Z | 2021-08-30T08:24:38.000Z | morf-python-api/build/lib/morf/utils/caching.py | jpgard/morf | f17afcacef68929a5ce9e7714208be1002a42418 | [
"MIT"
] | 58 | 2018-02-03T15:31:15.000Z | 2019-10-15T02:12:05.000Z | morf-python-api/build/lib/morf/utils/caching.py | jpgard/morf | f17afcacef68929a5ce9e7714208be1002a42418 | [
"MIT"
] | 7 | 2018-03-29T14:47:34.000Z | 2021-06-22T01:34:52.000Z | # Copyright (c) 2018 The Regents of the University of Michigan
# and the University of Pennsylvania
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without li... | 41.1875 | 150 | 0.75588 |
149847bd740c757e149d66da0c573d0fe5e56850 | 91 | py | Python | tests/basic/lambda4.py | Slater-Victoroff/pyjaco | 89c4e3c46399c5023b0e160005d855a01241c58a | [
"MIT"
] | 38 | 2015-01-01T18:08:59.000Z | 2022-02-18T08:57:27.000Z | tests/basic/lambda4.py | dusty-phillips/pyjaco | 066895ae38d1828498e529c1875cb88df6cbc54d | [
"MIT"
] | 1 | 2020-07-15T13:30:32.000Z | 2020-07-15T13:30:32.000Z | tests/basic/lambda4.py | Slater-Victoroff/pyjaco | 89c4e3c46399c5023b0e160005d855a01241c58a | [
"MIT"
] | 12 | 2016-03-07T09:30:49.000Z | 2021-09-05T20:38:47.000Z |
la = []
for x in range(5):
la.append(lambda x: (lambda q: q + x)(x))
print la[3](1)
| 11.375 | 45 | 0.527473 |
14989b6b36688f784980d216d72aa340a8737398 | 153 | py | Python | python/ctypes/hello_rust/hello_rust_ctypes.py | JamesMcGuigan/ecosystem-research | bfd98bd5b0a2165f449eb36b368b54fe972374fe | [
"MIT"
] | 1 | 2019-01-01T02:04:27.000Z | 2019-01-01T02:04:27.000Z | python/ctypes/hello_rust/hello_rust_ctypes.py | JamesMcGuigan/ecosystem-research | bfd98bd5b0a2165f449eb36b368b54fe972374fe | [
"MIT"
] | 1 | 2020-03-09T17:51:00.000Z | 2020-03-09T17:51:00.000Z | python/ctypes/hello_rust/hello_rust_ctypes.py | JamesMcGuigan/ecosystem-research | bfd98bd5b0a2165f449eb36b368b54fe972374fe | [
"MIT"
] | null | null | null | from ctypes import *
rust = cdll.LoadLibrary("./target/debug/libhello_rust.dylib")
answer = rust.times2(64)
print('rust.times2(64)', rust.times2(64))
| 25.5 | 63 | 0.72549 |
1498ede07d931cf49daf4b8c46bbfef73eb7fec5 | 2,323 | py | Python | black_jack.py | brynpatel/Deck-of-cards | 4d775940895d32fcb9ae25db17adc865c7e8befe | [
"MIT"
] | null | null | null | black_jack.py | brynpatel/Deck-of-cards | 4d775940895d32fcb9ae25db17adc865c7e8befe | [
"MIT"
] | null | null | null | black_jack.py | brynpatel/Deck-of-cards | 4d775940895d32fcb9ae25db17adc865c7e8befe | [
"MIT"
] | null | null | null | from deck_of_cards import *
hand_size = 7
deck =Deck()
my_hand = Hand()
opponents_hand = Hand()
discard_pile = Discard_Pile()
my_card = 0
opponents_card = 0
win = False
deck.shuffle()
for i in range(hand_size):
deck.deal(my_hand)
deck.deal(opponents_hand)
print(my_hand)
#print(opponents_hand)
deck.cards[0]... | 29.405063 | 85 | 0.577701 |
1499d3b358461ba8ac5bf3d7291f9f342918734a | 674 | py | Python | dashboard/settings.py | hosseinmoghimi/instamarket | 6f2f557843ff3105c6ca62a8b85311f0de79a2fe | [
"MIT"
] | 3 | 2020-08-14T20:17:57.000Z | 2020-09-15T19:35:40.000Z | dashboard/settings.py | hosseinmoghimi/instamarket | 6f2f557843ff3105c6ca62a8b85311f0de79a2fe | [
"MIT"
] | 5 | 2020-08-16T21:47:12.000Z | 2020-08-17T03:18:10.000Z | dashboard/settings.py | hosseinmoghimi/instamarket | 6f2f557843ff3105c6ca62a8b85311f0de79a2fe | [
"MIT"
] | null | null | null |
from instamarket import settings
ON_SERVER=settings.ON_SERVER
ON_HEROKU=settings.ON_HEROKU
ON_MAGGIE=settings.ON_MAGGIE
REMOTE_MEDIA=settings.REMOTE_MEDIA
ON_SERVER=settings.ON_SERVER
DEBUG=settings.DEBUG
BASE_DIR=settings.BASE_DIR
COMING_SOON=settings.COMING_SOON
MYSQL=settings.MYSQL
TIME_ZONE=settings.TIME_ZONE
STA... | 22.466667 | 50 | 0.876855 |
1499e05f9e701f51c62ae9adf1ada191425c6e1e | 326 | py | Python | mindpile/Utility/memo.py | MelbourneHighSchoolRobotics/Mindpile | 9dd0a14ee336810c2b62826afff4da8719455ba0 | [
"BSD-3-Clause"
] | 2 | 2021-02-16T22:21:36.000Z | 2021-02-17T03:16:30.000Z | mindpile/Utility/memo.py | MelbourneHighSchoolRobotics/Mindpile | 9dd0a14ee336810c2b62826afff4da8719455ba0 | [
"BSD-3-Clause"
] | 2 | 2021-02-17T03:20:24.000Z | 2021-04-30T06:46:02.000Z | mindpile/Utility/memo.py | MelbourneHighSchoolRobotics/mindpile | 9dd0a14ee336810c2b62826afff4da8719455ba0 | [
"BSD-3-Clause"
] | null | null | null | import functools
| 23.285714 | 50 | 0.628834 |
149d6e3aa3b814bd2610d018aafdae3c04933009 | 348 | py | Python | tests/__init__.py | UOC/dlkit | a9d265db67e81b9e0f405457464e762e2c03f769 | [
"MIT"
] | 2 | 2018-02-23T12:16:11.000Z | 2020-10-08T17:54:24.000Z | tests/__init__.py | UOC/dlkit | a9d265db67e81b9e0f405457464e762e2c03f769 | [
"MIT"
] | 87 | 2017-04-21T18:57:15.000Z | 2021-12-13T19:43:57.000Z | tests/__init__.py | UOC/dlkit | a9d265db67e81b9e0f405457464e762e2c03f769 | [
"MIT"
] | 1 | 2018-03-01T16:44:25.000Z | 2018-03-01T16:44:25.000Z | # Pytest fixtures to get different DLKit configs during tests
# Implemented from documentation here:
# https://docs.pytest.org/en/latest/unittest.html
import pytest
| 29 | 67 | 0.747126 |
149df9e3f7439d9013fa722d9aa4c7ae4e678566 | 1,432 | py | Python | dataloaders.py | mrubio-chavarria/project_2 | c78d5e4048af193770d52efb2c5a132f6eb6370c | [
"MIT"
] | null | null | null | dataloaders.py | mrubio-chavarria/project_2 | c78d5e4048af193770d52efb2c5a132f6eb6370c | [
"MIT"
] | null | null | null | dataloaders.py | mrubio-chavarria/project_2 | c78d5e4048af193770d52efb2c5a132f6eb6370c | [
"MIT"
] | null | null | null | #!/venv/bin python
"""
DESCRIPTION:
This file contains wrappers and variations on DataLoader.
"""
# Libraries
import os
from random import shuffle
import torch
import numpy as np
from torch.utils.data import Dataset
from resquiggle_utils import parse_resquiggle, window_resquiggle
from torch import nn
| 22.730159 | 93 | 0.639665 |
149ef58d13dd8a52e0e9a53ee7b6bc88f4c88418 | 405 | py | Python | setup.py | bkanchan6/high-res-stereo | 80eb23ce0fe532f4cd238f25b4c3fced249269e3 | [
"MIT"
] | null | null | null | setup.py | bkanchan6/high-res-stereo | 80eb23ce0fe532f4cd238f25b4c3fced249269e3 | [
"MIT"
] | null | null | null | setup.py | bkanchan6/high-res-stereo | 80eb23ce0fe532f4cd238f25b4c3fced249269e3 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
import os
version = "0.0.1"
if "VERSION" in os.environ:
version = os.environ["VERSION"]
setup(
name="high-res-stereo",
version=version,
description="high-res-stereo",
author="Jariullah Safi",
author_email="safijari@isu.edu",
packages=find_packag... | 22.5 | 76 | 0.68642 |
149f1595ee377a7f0c819fd8202bd1c39fe66ec2 | 7,169 | py | Python | main.py | tokudaek/image-viewer | 262e2ccb165824b3edbb275cc981650487ed8cf4 | [
"MIT"
] | null | null | null | main.py | tokudaek/image-viewer | 262e2ccb165824b3edbb275cc981650487ed8cf4 | [
"MIT"
] | 1 | 2017-03-28T15:23:07.000Z | 2017-03-28T15:23:07.000Z | main.py | tokudaek/image-viewer | 262e2ccb165824b3edbb275cc981650487ed8cf4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
""" Image viewer based on Tkinter and integrated to the database.
"""
##########################################################IMPORTS
import argparse
import os
import tkinter
import tkinter.messagebox
import tkinter.filedialog
import tkinter.font
import PIL
import PIL.Image
import PIL.ImageTk
i... | 32.004464 | 87 | 0.594644 |
149fdd39d511ea3e1c778093005d088b6ec5befd | 1,882 | py | Python | ozellikler/tarih.py | ny4rlk0/nyarlko | e4224ed11647ffbbdf86d9e7c7834e2d5dc2966c | [
"MIT"
] | null | null | null | ozellikler/tarih.py | ny4rlk0/nyarlko | e4224ed11647ffbbdf86d9e7c7834e2d5dc2966c | [
"MIT"
] | null | null | null | ozellikler/tarih.py | ny4rlk0/nyarlko | e4224ed11647ffbbdf86d9e7c7834e2d5dc2966c | [
"MIT"
] | null | null | null | import datetime as suan
| 30.852459 | 94 | 0.463337 |
14a1226bd39340b0ae889c9808fb6bb548a8f7b1 | 10,467 | py | Python | examples/xlnet/utils/processor.py | qinzzz/texar-pytorch | d66258a599a291418004170e62864b001b650926 | [
"Apache-2.0"
] | 746 | 2019-06-09T12:38:52.000Z | 2022-03-23T12:40:55.000Z | examples/xlnet/utils/processor.py | qinzzz/texar-pytorch | d66258a599a291418004170e62864b001b650926 | [
"Apache-2.0"
] | 247 | 2019-06-11T18:32:44.000Z | 2022-02-17T20:12:04.000Z | examples/xlnet/utils/processor.py | qinzzz/texar-pytorch | d66258a599a291418004170e62864b001b650926 | [
"Apache-2.0"
] | 143 | 2019-06-10T19:38:30.000Z | 2022-03-13T09:43:10.000Z | # Copyright 2019 The Texar Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 35.361486 | 80 | 0.602369 |
14a2c2afb9c59044a6c39bbd0a8f0ba276f110ad | 4,110 | py | Python | src/pyhf_benchmark/plot.py | pyhf/pyhf-benchmark | bc0f91253e8d6d4dbc7205cabf0ec7a9d5402dcf | [
"Apache-2.0"
] | 3 | 2020-05-22T22:50:22.000Z | 2020-06-02T16:28:37.000Z | src/pyhf_benchmark/plot.py | pyhf/pyhf-benchmark | bc0f91253e8d6d4dbc7205cabf0ec7a9d5402dcf | [
"Apache-2.0"
] | 30 | 2020-06-02T16:22:27.000Z | 2020-08-20T04:55:59.000Z | src/pyhf_benchmark/plot.py | pyhf/pyhf-benchmark | bc0f91253e8d6d4dbc7205cabf0ec7a9d5402dcf | [
"Apache-2.0"
] | 1 | 2020-07-28T02:32:58.000Z | 2020-07-28T02:32:58.000Z | import json
import pandas as pd
import time
import matplotlib.pyplot as plt
ylabels = [
"CPU Utilization (%)",
"Disk I/O Utilization (%)",
"Process CPU Threads In Use",
"Network Traffic (bytes)",
"System Memory Utilization (%)",
"Process Memory Available (non-swap) (MB)",
"Process Memory In... | 29.568345 | 84 | 0.605596 |
14a5b4ceef7a61b358d2f461acdd1773fb472818 | 3,045 | py | Python | serial.py | Tythos/SeRes | 724dcfff8a4fbeb77090cb6e6cf0bd101abe70e4 | [
"MIT"
] | null | null | null | serial.py | Tythos/SeRes | 724dcfff8a4fbeb77090cb6e6cf0bd101abe70e4 | [
"MIT"
] | null | null | null | serial.py | Tythos/SeRes | 724dcfff8a4fbeb77090cb6e6cf0bd101abe70e4 | [
"MIT"
] | null | null | null | """Serial objects are responsible for:
* Maintaining specific catalogues of Format and Protocol parsers
* Serializing and deserializing Python objects to and from dictionary equivalents
Eventually, the second item will need to support more complex types, such as
user-defined enumerations. For now, the following f... | 32.393617 | 133 | 0.7133 |
14a6ef3b95c24784d64e5d97515f9bb8133b3f76 | 3,893 | py | Python | Scraper.py | Warthog710/FFXIV-Alert-API | 5264eeae2c67cb3e0bfe09169a207d9ec63012ce | [
"MIT"
] | null | null | null | Scraper.py | Warthog710/FFXIV-Alert-API | 5264eeae2c67cb3e0bfe09169a207d9ec63012ce | [
"MIT"
] | null | null | null | Scraper.py | Warthog710/FFXIV-Alert-API | 5264eeae2c67cb3e0bfe09169a207d9ec63012ce | [
"MIT"
] | null | null | null | import requests
import atexit
from apscheduler.schedulers.background import BackgroundScheduler
from bs4 import BeautifulSoup | 37.432692 | 123 | 0.624454 |
14a796965ec7f09f47a00c7f1ad7492a84deaf81 | 1,078 | py | Python | carmesi/nucleo/tests/constant.py | RedGranatum/Carmesi | bde1d4dd104401ba08e7ba2f3de5b9d5f537dd94 | [
"MIT"
] | null | null | null | carmesi/nucleo/tests/constant.py | RedGranatum/Carmesi | bde1d4dd104401ba08e7ba2f3de5b9d5f537dd94 | [
"MIT"
] | null | null | null | carmesi/nucleo/tests/constant.py | RedGranatum/Carmesi | bde1d4dd104401ba08e7ba2f3de5b9d5f537dd94 | [
"MIT"
] | null | null | null |
TOKEN_PREALTA_CLIENTE = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6InJhdWx0ckBnbWFpbC5jb20iLCJleHAiOjQ3MzM1MTA0MDAsIm93bmVyX25hbWUiOiJSYXVsIEVucmlxdWUgVG9ycmVzIFJleWVzIiwidHlwZSI6ImVtYWlsX2NvbmZpcm1hdGlvbl9uZXdfY2xpZW50In0.R-nXh1nXvlBABfEdV1g81mdIzJqMFLvFV7FAP7PQRCM'
TOKEN_PREALTA_CLIENTE_CADUCO = 'eyJ0eXAiOiJ... | 119.777778 | 299 | 0.963822 |
14a905270cca517cd153387fad1257a23aa0b010 | 275 | py | Python | futbol-news/backend/app/app/models/search_term.py | davidespicolomina/proyecto-personal | 807445546d493f9c092720e18e5fefa3281da4c9 | [
"Apache-2.0"
] | null | null | null | futbol-news/backend/app/app/models/search_term.py | davidespicolomina/proyecto-personal | 807445546d493f9c092720e18e5fefa3281da4c9 | [
"Apache-2.0"
] | null | null | null | futbol-news/backend/app/app/models/search_term.py | davidespicolomina/proyecto-personal | 807445546d493f9c092720e18e5fefa3281da4c9 | [
"Apache-2.0"
] | null | null | null | from sqlalchemy import Column, Integer, String
from app.db.base_class import Base
| 30.555556 | 110 | 0.76 |
14abdb3685da3455677e3f4bfa4490aa74a6ac0c | 2,565 | py | Python | trufimonitor/configParser.py | trufi-association/trufi-monitor-backend | 8974a061debe3582605a6e6ec63e4116fe7ef60b | [
"MIT"
] | null | null | null | trufimonitor/configParser.py | trufi-association/trufi-monitor-backend | 8974a061debe3582605a6e6ec63e4116fe7ef60b | [
"MIT"
] | null | null | null | trufimonitor/configParser.py | trufi-association/trufi-monitor-backend | 8974a061debe3582605a6e6ec63e4116fe7ef60b | [
"MIT"
] | null | null | null | """
It converts Strings in the format
# to deactivate commands just comment them out by putting a # to the beginning of the line
# optional commands can be deactivated by putting a # to the lines' beginning and activated by removing # from the beginning
# replace 'example.com' with the hostname or ip address of the se... | 40.078125 | 131 | 0.727096 |
14ac2d2492de50193750cbad1ef4a4ffc1cccf0a | 618 | py | Python | app/core/serializers.py | jblanquicett92/django_celery_app | 5b0069905ec721cc1632611f08c733a5b93d20d8 | [
"MIT"
] | null | null | null | app/core/serializers.py | jblanquicett92/django_celery_app | 5b0069905ec721cc1632611f08c733a5b93d20d8 | [
"MIT"
] | null | null | null | app/core/serializers.py | jblanquicett92/django_celery_app | 5b0069905ec721cc1632611f08c733a5b93d20d8 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import Event, Notification
| 25.75 | 77 | 0.669903 |
14ae087d34a01217e2efdb31229417cab63aa812 | 3,458 | py | Python | modules/plugin_tablecheckbox.py | jredrejo/sqlabs | 2cf39ff924579e72bc0092f2a6d65214dafd4bfe | [
"MIT"
] | 1 | 2017-12-01T22:46:33.000Z | 2017-12-01T22:46:33.000Z | modules/plugin_tablecheckbox.py | jredrejo/sqlabs | 2cf39ff924579e72bc0092f2a6d65214dafd4bfe | [
"MIT"
] | null | null | null | modules/plugin_tablecheckbox.py | jredrejo/sqlabs | 2cf39ff924579e72bc0092f2a6d65214dafd4bfe | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# This plugins is licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
# Authors: Kenji Hosoda <hosoda@s-cubism.jp>
from gluon import *
| 45.5 | 109 | 0.589647 |
14b1286bb9090e5e7de52578dcf3d83c33bdb3b1 | 2,781 | py | Python | src/py_dss_interface/models/Sensors/SensorsV.py | davilamds/py_dss_interface | a447c97787aeac962381db88dd622ccb235eef4b | [
"MIT"
] | 8 | 2020-08-15T12:56:03.000Z | 2022-01-04T15:51:14.000Z | src/py_dss_interface/models/Sensors/SensorsV.py | rodolfoplondero/py_dss_interface | cb6771b34ed322a5df7ef1cc194611e794f26441 | [
"MIT"
] | 24 | 2021-04-24T18:33:19.000Z | 2021-11-13T14:59:54.000Z | src/py_dss_interface/models/Sensors/SensorsV.py | rodolfoplondero/py_dss_interface | cb6771b34ed322a5df7ef1cc194611e794f26441 | [
"MIT"
] | 7 | 2020-08-15T12:56:04.000Z | 2021-10-04T16:14:30.000Z | # -*- encoding: utf-8 -*-
"""
Created by eniocc at 11/10/2020
"""
import ctypes
from py_dss_interface.models import Bridge
from py_dss_interface.models.Base import Base
from py_dss_interface.models.Sensors.SensorsS import SensorsS
from py_dss_interface.models.Text.Text import Text
| 44.142857 | 115 | 0.703344 |
14b28f425c17976ebe25adcac758c6934615dd00 | 25,967 | py | Python | netapp/santricity/models/v2/__init__.py | NetApp/santricity-webapi-pythonsdk | 1d3df4a00561192f4cdcdd1890f4d27547ed2de2 | [
"BSD-3-Clause-Clear"
] | 5 | 2016-08-23T17:52:22.000Z | 2019-05-16T08:45:30.000Z | netapp/santricity/models/v2/__init__.py | NetApp/santricity-webapi-pythonsdk | 1d3df4a00561192f4cdcdd1890f4d27547ed2de2 | [
"BSD-3-Clause-Clear"
] | 2 | 2016-11-10T05:30:21.000Z | 2019-04-05T15:03:37.000Z | netapp/santricity/models/v2/__init__.py | NetApp/santricity-webapi-pythonsdk | 1d3df4a00561192f4cdcdd1890f4d27547ed2de2 | [
"BSD-3-Clause-Clear"
] | 7 | 2016-08-25T16:11:44.000Z | 2021-02-22T05:31:25.000Z | from __future__ import absolute_import
# import models into model package
from netapp.santricity.models.v2.access_volume_ex import AccessVolumeEx
from netapp.santricity.models.v2.add_batch_cg_members_request import AddBatchCGMembersRequest
from netapp.santricity.models.v2.add_consistency_group_member_request impo... | 85.69967 | 129 | 0.89606 |
14b3ea58e56ed94f8934f892735450dec9e7e14d | 629 | py | Python | config/wsgi.py | e2718281/template_test | 3d47741e657138b1ccfee7af19476a796a099b2b | [
"MIT"
] | null | null | null | config/wsgi.py | e2718281/template_test | 3d47741e657138b1ccfee7af19476a796a099b2b | [
"MIT"
] | null | null | null | config/wsgi.py | e2718281/template_test | 3d47741e657138b1ccfee7af19476a796a099b2b | [
"MIT"
] | null | null | null | """
WSGI config for test_project project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
import sys
from django.core.wsgi import get_wsgi_application
# This allows easy... | 27.347826 | 78 | 0.779014 |
14b53da5ae7dc9a0ddd6d2cbcafa9f97c4f9a304 | 747 | py | Python | app/app/migrations/0001_initial.py | poornachandrakashi/covid-cough-prediction | 3466d21c1e9e9931484db486116afe8f591e6ab8 | [
"MIT"
] | 3 | 2020-04-05T21:09:07.000Z | 2022-02-15T15:23:37.000Z | app/app/migrations/0001_initial.py | poornachandrakashi/covid-cough-prediction | 3466d21c1e9e9931484db486116afe8f591e6ab8 | [
"MIT"
] | 2 | 2020-06-06T01:42:31.000Z | 2021-06-10T22:43:54.000Z | app/app/migrations/0001_initial.py | poornachandrakashi/covid-cough-prediction | 3466d21c1e9e9931484db486116afe8f591e6ab8 | [
"MIT"
] | 3 | 2020-04-08T12:53:47.000Z | 2021-08-10T11:10:32.000Z | # Generated by Django 2.1.1 on 2020-04-05 06:12
from django.db import migrations, models
| 28.730769 | 114 | 0.570281 |
14b6e3bd8ac3a7eb4e7e8620a55ce89ce7b5721c | 1,534 | py | Python | apps/brew/settings.py | martync/zython | e008bbb33e212f0856e85b8594003402e0a635c0 | [
"Beerware"
] | null | null | null | apps/brew/settings.py | martync/zython | e008bbb33e212f0856e85b8594003402e0a635c0 | [
"Beerware"
] | 5 | 2020-06-05T21:26:16.000Z | 2022-01-13T01:21:27.000Z | apps/brew/settings.py | martync/zython | e008bbb33e212f0856e85b8594003402e0a635c0 | [
"Beerware"
] | null | null | null | SRM_TO_HEX = {
"0": "#FFFFFF",
"1": "#F3F993",
"2": "#F5F75C",
"3": "#F6F513",
"4": "#EAE615",
"5": "#E0D01B",
"6": "#D5BC26",
"7": "#CDAA37",
"8": "#C1963C",
"9": "#BE8C3A",
"10": "#BE823A",
"11": "#C17A37",
"12": "#BF7138",
"13": "#BC6733",
"14": "#B26033",
... | 22.895522 | 46 | 0.468057 |
14b757978821b5341ed6a4a277fcfd2e75bc9742 | 107 | py | Python | egs/codeswitching/asr/local_yzl23/test_libsndfile.py | luyizhou4/espnet | a408b9372df3f57ef33b8a378a8d9abc7f872cf5 | [
"Apache-2.0"
] | null | null | null | egs/codeswitching/asr/local_yzl23/test_libsndfile.py | luyizhou4/espnet | a408b9372df3f57ef33b8a378a8d9abc7f872cf5 | [
"Apache-2.0"
] | null | null | null | egs/codeswitching/asr/local_yzl23/test_libsndfile.py | luyizhou4/espnet | a408b9372df3f57ef33b8a378a8d9abc7f872cf5 | [
"Apache-2.0"
] | null | null | null | from ctypes.util import find_library as _find_library
print(_find_library('sndfile'))
print('test fine')
| 17.833333 | 53 | 0.794393 |
14b9762b78c281460ee5ec96e6878f3d8ee83597 | 561 | py | Python | tests/test_utils.py | vnmabus/incense | 6542c7cb082e313f4caa77fdb04be65ebc15bc65 | [
"MIT"
] | 78 | 2019-01-23T10:50:18.000Z | 2022-03-26T15:17:18.000Z | tests/test_utils.py | vnmabus/incense | 6542c7cb082e313f4caa77fdb04be65ebc15bc65 | [
"MIT"
] | 59 | 2018-12-31T18:13:13.000Z | 2021-08-25T15:24:28.000Z | tests/test_utils.py | vnmabus/incense | 6542c7cb082e313f4caa77fdb04be65ebc15bc65 | [
"MIT"
] | 6 | 2019-06-25T18:48:00.000Z | 2021-04-12T18:51:38.000Z | from incense import utils
| 40.071429 | 98 | 0.727273 |
14b9e8b4dcb1e20a307af26c71e8f867c0782a0d | 285 | py | Python | tdd/run.py | LarsAsplund/vunit_tdd | db16c32968675abdacc9939e3573f37a2cbaf431 | [
"MIT"
] | 10 | 2020-08-12T22:27:15.000Z | 2022-03-31T13:34:12.000Z | tdd/run.py | LarsAsplund/vunit_tdd | db16c32968675abdacc9939e3573f37a2cbaf431 | [
"MIT"
] | 7 | 2021-09-06T05:30:07.000Z | 2021-09-08T02:25:41.000Z | tdd/run.py | LarsAsplund/vunit_tdd | db16c32968675abdacc9939e3573f37a2cbaf431 | [
"MIT"
] | 3 | 2021-05-27T11:31:45.000Z | 2021-05-28T07:22:08.000Z | #!/usr/bin/env python3
"""VUnit run script."""
from pathlib import Path
from vunit import VUnit
prj = VUnit.from_argv()
lib = prj.add_library("lib")
root = Path(__file__).parent
lib.add_source_files(root / "src" / "*.vhd")
lib.add_source_files(root / "test" / "*.vhd")
prj.main()
| 17.8125 | 45 | 0.687719 |
14bc1271077b75e0d1cf036fe2b3bbfce7418f99 | 6,420 | py | Python | tests/test_regular.py | atiqm/adapt | af9833cb7e698bdcb722941622d67c06f04822f7 | [
"BSD-2-Clause"
] | null | null | null | tests/test_regular.py | atiqm/adapt | af9833cb7e698bdcb722941622d67c06f04822f7 | [
"BSD-2-Clause"
] | null | null | null | tests/test_regular.py | atiqm/adapt | af9833cb7e698bdcb722941622d67c06f04822f7 | [
"BSD-2-Clause"
] | null | null | null | """
Test functions for regular module.
"""
import pytest
import numpy as np
from sklearn.linear_model import LinearRegression, LogisticRegression
from sklearn.base import clone
import tensorflow as tf
from tensorflow.keras import Sequential, Model
from tensorflow.keras.layers import Dense
from tensorflow.keras.optimiz... | 32.923077 | 84 | 0.634579 |
14bd6078e39ef46714d7bb697f11da50734262f2 | 1,810 | py | Python | tests/test_env_var.py | sfelix-martins/laradock-up-env | 7e7e3e513083afedf724a9b4e2dd8c6ff0b9eb71 | [
"MIT"
] | 2 | 2020-10-06T15:40:43.000Z | 2020-11-27T12:13:10.000Z | tests/test_env_var.py | sfelix-martins/laradock-up-env | 7e7e3e513083afedf724a9b4e2dd8c6ff0b9eb71 | [
"MIT"
] | 5 | 2019-11-10T12:08:35.000Z | 2019-11-10T13:34:54.000Z | tests/test_env_var.py | sfelix-martins/laradock-multiple-env | 7e7e3e513083afedf724a9b4e2dd8c6ff0b9eb71 | [
"MIT"
] | 1 | 2020-11-27T12:13:13.000Z | 2020-11-27T12:13:13.000Z | import unittest
from multienv.config import Config
from multienv.env_var import EnvVar
from multienv.exceptions import InvalidYamlFileException, \
EnvVarContainerBuildNotFoundException
if __name__ == '__main__':
unittest.main()
| 39.347826 | 79 | 0.649724 |
14bd7f91251b03987f5221c2978864b319af6c5c | 3,097 | py | Python | Payload_Type/apollo/mythic/agent_functions/assembly_inject.py | n0pe-sled/Apollo | cfc5804d163e1b47f6614321434a717b2bd2066f | [
"BSD-3-Clause"
] | null | null | null | Payload_Type/apollo/mythic/agent_functions/assembly_inject.py | n0pe-sled/Apollo | cfc5804d163e1b47f6614321434a717b2bd2066f | [
"BSD-3-Clause"
] | null | null | null | Payload_Type/apollo/mythic/agent_functions/assembly_inject.py | n0pe-sled/Apollo | cfc5804d163e1b47f6614321434a717b2bd2066f | [
"BSD-3-Clause"
] | null | null | null | from mythic_payloadtype_container.MythicCommandBase import *
import json
from uuid import uuid4
from os import path
from mythic_payloadtype_container.MythicRPC import *
import base64
import donut
| 41.293333 | 164 | 0.638037 |
14bdf9d8a47eb3b241902145e3f586e258032f0c | 6,211 | py | Python | Lab_Week_05_-_Value_Functions,_Policies_and_Policy_Iteration/Solutions/recycling_robot/recycling_robot_environment.py | annasu1225/COMP0037-21_22 | e98e8d278b35ee0550e6c09b35ab08b23e60ca82 | [
"Apache-2.0"
] | null | null | null | Lab_Week_05_-_Value_Functions,_Policies_and_Policy_Iteration/Solutions/recycling_robot/recycling_robot_environment.py | annasu1225/COMP0037-21_22 | e98e8d278b35ee0550e6c09b35ab08b23e60ca82 | [
"Apache-2.0"
] | null | null | null | Lab_Week_05_-_Value_Functions,_Policies_and_Policy_Iteration/Solutions/recycling_robot/recycling_robot_environment.py | annasu1225/COMP0037-21_22 | e98e8d278b35ee0550e6c09b35ab08b23e60ca82 | [
"Apache-2.0"
] | null | null | null | '''
Created on 4 Feb 2022
@author: ucacsjj
'''
import random
from enum import Enum
import numpy as np
from gym import Env, spaces
from .robot_states_and_actions import *
# This environment affords a much lower level control of the robot than the
# battery environment. It is partially inspired by the AI Gymn Frozen... | 33.572973 | 84 | 0.555144 |
14c105a1705141babfa862aab74d81e82f18db15 | 753 | py | Python | arc/queues.py | arc-repos/arc-functions-python | 796e7661afa069c3a2f7bc609fd0c0af512244cb | [
"Apache-2.0"
] | 4 | 2020-05-21T04:55:02.000Z | 2020-12-22T02:17:30.000Z | arc/queues.py | arc-repos/arc-functions-python | 796e7661afa069c3a2f7bc609fd0c0af512244cb | [
"Apache-2.0"
] | 10 | 2020-02-04T02:00:47.000Z | 2021-06-25T15:34:47.000Z | arc/queues.py | arc-repos/arc-functions-python | 796e7661afa069c3a2f7bc609fd0c0af512244cb | [
"Apache-2.0"
] | 3 | 2020-03-02T22:17:18.000Z | 2021-03-11T09:50:52.000Z | import boto3
import json
import urllib.request
import os
from . import reflect
| 28.961538 | 82 | 0.584329 |
1ad1eb88994e214fd47ed40845356d1110f90028 | 1,927 | py | Python | format_database.py | CS3244-Group10/NameABird | e41c1c5a38b062943b1f6c0d8b51afe80b13c4ca | [
"MIT"
] | null | null | null | format_database.py | CS3244-Group10/NameABird | e41c1c5a38b062943b1f6c0d8b51afe80b13c4ca | [
"MIT"
] | null | null | null | format_database.py | CS3244-Group10/NameABird | e41c1c5a38b062943b1f6c0d8b51afe80b13c4ca | [
"MIT"
] | 2 | 2018-04-08T12:04:59.000Z | 2018-04-13T05:25:09.000Z | import os
import numpy as np
from scipy.misc import imread, imresize
| 29.19697 | 121 | 0.626362 |
1ad2c6a11db3d3af3b1a5dc0792859101e67bf90 | 1,964 | py | Python | tools/tflitefile_tool/parser/tflite_parser.py | YongseopKim/ONE | 65d4a582621deb0a594343d9cc40ec777ad77e57 | [
"Apache-2.0"
] | null | null | null | tools/tflitefile_tool/parser/tflite_parser.py | YongseopKim/ONE | 65d4a582621deb0a594343d9cc40ec777ad77e57 | [
"Apache-2.0"
] | 36 | 2020-06-17T04:48:55.000Z | 2022-02-07T12:04:10.000Z | tools/tflitefile_tool/parser/tflite_parser.py | YongseopKim/ONE | 65d4a582621deb0a594343d9cc40ec777ad77e57 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Copyright (c) 2021 Samsung Electronics Co., Ltd. All Rights Reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0... | 33.862069 | 78 | 0.67057 |
1ad2ef9f07071572275789fdd3c3da196769692b | 6,857 | py | Python | modules/text/text_generation/plato2_en_base/module.py | AK391/PaddleHub | a51ab7447e089776766becb3297e560dfed98573 | [
"Apache-2.0"
] | 8,360 | 2019-01-18T10:46:45.000Z | 2022-03-31T14:50:02.000Z | modules/text/text_generation/plato2_en_base/module.py | dwuping/PaddleHub | 9a3b23295947e22149cc85c17cb4cf23c03f9e06 | [
"Apache-2.0"
] | 1,158 | 2019-04-11T09:22:43.000Z | 2022-03-31T12:12:09.000Z | modules/text/text_generation/plato2_en_base/module.py | dwuping/PaddleHub | 9a3b23295947e22149cc85c17cb4cf23c03f9e06 | [
"Apache-2.0"
] | 1,677 | 2019-04-09T15:07:40.000Z | 2022-03-31T06:41:10.000Z | # coding:utf-8
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | 37.883978 | 151 | 0.648972 |
1ad42eeaa6ca55779055e15041fcb384578133d5 | 929 | py | Python | Uncuffed/web/routes.py | WckdAwe/Uncuffed | c86c2ef33c689d7895ff45e9ba6108a9f7831c2d | [
"MIT"
] | 2 | 2021-09-16T09:17:34.000Z | 2021-11-18T12:44:34.000Z | Uncuffed/web/routes.py | WckdAwe/Uncuffed | c86c2ef33c689d7895ff45e9ba6108a9f7831c2d | [
"MIT"
] | null | null | null | Uncuffed/web/routes.py | WckdAwe/Uncuffed | c86c2ef33c689d7895ff45e9ba6108a9f7831c2d | [
"MIT"
] | null | null | null | # ------ [ API ] ------
API = '/api'
# ---------- [ BLOCKCHAIN ] ----------
API_BLOCKCHAIN = f'{API}/blockchain'
API_BLOCKCHAIN_LENGTH = f'{API_BLOCKCHAIN}/length'
API_BLOCKCHAIN_BLOCKS = f'{API_BLOCKCHAIN}/blocks'
# ---------- [ BROADCASTS ] ----------
API_BROADCASTS = f'{API}/broadcasts'
API_BROADCASTS_NEW_BLOCK =... | 27.323529 | 68 | 0.652314 |
1ad46089871178a892672859920709ee5db5e62e | 1,748 | py | Python | autumn/infrastructure/tasks/utils.py | emmamcbryde/AuTuMN-1 | b1e7de15ac6ef6bed95a80efab17f0780ec9ff6f | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | autumn/infrastructure/tasks/utils.py | emmamcbryde/AuTuMN-1 | b1e7de15ac6ef6bed95a80efab17f0780ec9ff6f | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | autumn/infrastructure/tasks/utils.py | emmamcbryde/AuTuMN-1 | b1e7de15ac6ef6bed95a80efab17f0780ec9ff6f | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | import logging
import logging.config
import socket
import os
from autumn.core.utils.runs import read_run_id
from autumn.core.project import Project, get_project
| 28.193548 | 81 | 0.548627 |
1ad6a9afd46eb178c8ea9b62b017c639613e7aef | 6,433 | py | Python | lib/datasets/wider_face.py | thesuperorange/face-faster-rcnn.pytorch | cfc11e792f87fb132674680f34db193996ea6890 | [
"MIT"
] | 14 | 2018-04-16T13:02:04.000Z | 2020-05-09T15:33:20.000Z | faster-RCNN/lib/datasets/wider_face.py | thesuperorange/deepMI3 | ddc502c831d2f12325157d7503e1e39a218ebe21 | [
"MIT"
] | null | null | null | faster-RCNN/lib/datasets/wider_face.py | thesuperorange/deepMI3 | ddc502c831d2f12325157d7503e1e39a218ebe21 | [
"MIT"
] | 5 | 2018-08-06T13:48:59.000Z | 2022-01-14T05:57:27.000Z | # --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick and Xinlei Chen
# --------------------------------------------------------
from __future__ import absolute_import
from __future__ i... | 38.065089 | 112 | 0.581222 |
1ad8a215b26ac1fc0fb1060b601d1debf1dc679f | 573 | py | Python | locale/pot/api/core/_autosummary/pyvista-ExplicitStructuredGrid-compute_implicit_distance-1.py | tkoyama010/pyvista-doc-translations | 23bb813387b7f8bfe17e86c2244d5dd2243990db | [
"MIT"
] | 4 | 2020-08-07T08:19:19.000Z | 2020-12-04T09:51:11.000Z | locale/pot/api/core/_autosummary/pyvista-UnstructuredGrid-compute_implicit_distance-1.py | tkoyama010/pyvista-doc-translations | 23bb813387b7f8bfe17e86c2244d5dd2243990db | [
"MIT"
] | 19 | 2020-08-06T00:24:30.000Z | 2022-03-30T19:22:24.000Z | locale/pot/api/core/_autosummary/pyvista-StructuredGrid-compute_implicit_distance-1.py | tkoyama010/pyvista-doc-translations | 23bb813387b7f8bfe17e86c2244d5dd2243990db | [
"MIT"
] | 1 | 2021-03-09T07:50:40.000Z | 2021-03-09T07:50:40.000Z | # Compute the distance between all the points on a sphere and a
# plane.
#
import pyvista as pv
sphere = pv.Sphere()
plane = pv.Plane()
_ = sphere.compute_implicit_distance(plane, inplace=True)
dist = sphere['implicit_distance']
type(dist)
# Expected:
## <class 'numpy.ndarray'>
#
# Plot these distances as a heatmap
#
p... | 26.045455 | 64 | 0.734729 |
1ad93b581be550c1b778274bfd4d391d94cbf882 | 1,953 | py | Python | web_Project/Data_Predict/predict_lead.py | mscenter1/pigpriceML | d51f645a590cebd65126e867d6ef0d3d437e9bc7 | [
"MIT"
] | 8 | 2019-02-02T11:41:28.000Z | 2022-03-10T14:15:09.000Z | web_Project/Data_Predict/predict_lead.py | mscenter1/pigpriceML | d51f645a590cebd65126e867d6ef0d3d437e9bc7 | [
"MIT"
] | 2 | 2019-02-01T07:57:57.000Z | 2021-03-01T06:16:35.000Z | web_Project/Data_Predict/predict_lead.py | mscenter1/pigpriceML | d51f645a590cebd65126e867d6ef0d3d437e9bc7 | [
"MIT"
] | 6 | 2019-02-01T07:17:38.000Z | 2021-12-28T02:37:29.000Z | # -*- coding: utf-8 -*-
#
import sys
#
import pandas as pd
#
#
from predict_prepare import Predict_Prepare as Prepare
#
from predict_predict import Predict_Predict as Predict
| 35.509091 | 206 | 0.729647 |
1ada20acc9ce4a88cc954468b6dae92540d23e52 | 4,255 | py | Python | aerforge/text.py | Aermoss/AerForge | 1f57ff69f3b2f8052a2a266d3e5c04cfa4ec0e99 | [
"MIT"
] | 2 | 2021-09-24T12:57:07.000Z | 2022-01-14T00:47:43.000Z | aerforge/text.py | Aermoss/AerForge | 1f57ff69f3b2f8052a2a266d3e5c04cfa4ec0e99 | [
"MIT"
] | null | null | null | aerforge/text.py | Aermoss/AerForge | 1f57ff69f3b2f8052a2a266d3e5c04cfa4ec0e99 | [
"MIT"
] | null | null | null | import pygame
from aerforge.color import *
from aerforge.error import *
| 26.93038 | 224 | 0.568038 |
1ada715fb82ce5567b931b5b4c65641a0f3234b9 | 47 | py | Python | xchange/__init__.py | jrgparkinson/ouccc | 36824cd944620b6e28795f43a24e17e648b1f0bb | [
"MIT"
] | null | null | null | xchange/__init__.py | jrgparkinson/ouccc | 36824cd944620b6e28795f43a24e17e648b1f0bb | [
"MIT"
] | 5 | 2020-06-06T00:19:41.000Z | 2022-02-13T18:49:17.000Z | xchange/__init__.py | jrgparkinson/ouccc | 36824cd944620b6e28795f43a24e17e648b1f0bb | [
"MIT"
] | null | null | null | default_app_config = 'webapp.apps.WebAppConfig' | 47 | 47 | 0.851064 |
1adbac124bbaf8f82229656776f6cf0f6360b65e | 500 | py | Python | setup.py | ruivieira/python-als | c98914991a0812084c85e0ded621334c24866b54 | [
"Apache-2.0"
] | 2 | 2021-03-02T04:44:08.000Z | 2021-08-25T09:42:06.000Z | setup.py | ruivieira/python-als | c98914991a0812084c85e0ded621334c24866b54 | [
"Apache-2.0"
] | null | null | null | setup.py | ruivieira/python-als | c98914991a0812084c85e0ded621334c24866b54 | [
"Apache-2.0"
] | 1 | 2019-05-19T10:51:53.000Z | 2019-05-19T10:51:53.000Z | from distutils.core import setup
setup(
name='als',
packages=['als'],
version='0.0.2',
description='Python library for Alternating Least Squares (ALS)',
author='Rui Vieira',
author_email='ruidevieira@googlemail.com',
url='https://github.com/ruivieira/python-als',
download_url='https://g... | 31.25 | 83 | 0.652 |
1adbb705c738a912188b371ea95988590ae0bd44 | 8,274 | py | Python | echolab2/instruments/util/bottom_data.py | iambaim/pyEcholab | 6e165ad1a947e62fc233467631c445fe9ebcdad2 | [
"MIT"
] | null | null | null | echolab2/instruments/util/bottom_data.py | iambaim/pyEcholab | 6e165ad1a947e62fc233467631c445fe9ebcdad2 | [
"MIT"
] | null | null | null | echolab2/instruments/util/bottom_data.py | iambaim/pyEcholab | 6e165ad1a947e62fc233467631c445fe9ebcdad2 | [
"MIT"
] | null | null | null | # coding=utf-8
# National Oceanic and Atmospheric Administration (NOAA)
# Alaskan Fisheries Science Center (AFSC)
# Resource Assessment and Conservation Engineering (RACE)
# Midwater Assessment and Conservation Engineering (MACE)
# THIS SOFTWARE AND ITS DOCUMENTATION ARE CONSIDERED TO BE IN THE PUBLI... | 37.780822 | 98 | 0.634155 |
1adbdfb4bc66d95866bcc5ed925f8780b4dac055 | 318 | py | Python | npy2f32.py | shaun95/LPCNet | 117214c3a63d4f43cf5741b299c497e85c983327 | [
"BSD-3-Clause"
] | null | null | null | npy2f32.py | shaun95/LPCNet | 117214c3a63d4f43cf5741b299c497e85c983327 | [
"BSD-3-Clause"
] | 1 | 2020-06-17T12:07:27.000Z | 2020-06-17T12:07:27.000Z | npy2f32.py | shaun95/LPCNet | 117214c3a63d4f43cf5741b299c497e85c983327 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
import argparse
import sys
import os
dir_name = os.path.dirname(os.path.realpath(__file__))
npy_data = np.load(os.path.join(dir_name, sys.argv[1]))
npy_data = npy_data.astype(np.float32)
npy_data = npy_data.reshape((-1,))
npy_data.tofile(os.path.join(dir_name, sys.argv[1].split(".")[0] + ".f32"))
| 28.909091 | 75 | 0.732704 |
1adc3dc40aa2436be842596159a801f5a7ff9623 | 15,448 | py | Python | scripts/generator/filter_domains.py | kcappieg/metronome | 65601b0993550a86843fa2b2f116fcd663118b2c | [
"MIT"
] | null | null | null | scripts/generator/filter_domains.py | kcappieg/metronome | 65601b0993550a86843fa2b2f116fcd663118b2c | [
"MIT"
] | null | null | null | scripts/generator/filter_domains.py | kcappieg/metronome | 65601b0993550a86843fa2b2f116fcd663118b2c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
import sys
from shutil import copyfile, move
import argparse
from glob import glob
sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))
from Metronome import distributed_execution
def move_agrd_filter_results(successes_info_by_depth_bound, timeouts_i... | 39.408163 | 120 | 0.621051 |
1ae21a526218223ed04c6372b03062ed8240aa78 | 1,671 | py | Python | Controller/controleTelas.py | IuriBritoDev/TKINO | 3c689788324bd5badc84c7969f331b076046c211 | [
"MIT"
] | null | null | null | Controller/controleTelas.py | IuriBritoDev/TKINO | 3c689788324bd5badc84c7969f331b076046c211 | [
"MIT"
] | null | null | null | Controller/controleTelas.py | IuriBritoDev/TKINO | 3c689788324bd5badc84c7969f331b076046c211 | [
"MIT"
] | null | null | null | from View import telaRelatorio, telaNovoProjeto, telaAbrirProjeto, telaCadastro, telaConfigura, telaConexao, telaEditarControle, telaPopUp
from View.Painel import painelSensores, painelControladores, painelConexao
from View.Conexao import telaConAnalogAnalog, telaConAnalogDigit, telaConDigitAnalog, telaConDigitDigit
... | 24.217391 | 138 | 0.79234 |
1ae3b0d4623fb39afa8ccdec2cd3e21e3a3da924 | 109 | py | Python | paul_analysis/Python/util/hdf5lib_param.py | lzkelley/arepo-mbh-sims_analysis | f14519552cedd39a040b53e6d7cc538b5b8f38a3 | [
"MIT"
] | null | null | null | paul_analysis/Python/util/hdf5lib_param.py | lzkelley/arepo-mbh-sims_analysis | f14519552cedd39a040b53e6d7cc538b5b8f38a3 | [
"MIT"
] | null | null | null | paul_analysis/Python/util/hdf5lib_param.py | lzkelley/arepo-mbh-sims_analysis | f14519552cedd39a040b53e6d7cc538b5b8f38a3 | [
"MIT"
] | null | null | null | #tables or h5py
libname="h5py" #tables"
#libname="tables"
| 13.625 | 23 | 0.724771 |
1ae48f79b3cd5943abe896aa004066a2e8e41b32 | 2,914 | py | Python | setup_project.py | WindfallLabs/setup_project | fe87ef0fa9d2152a877c94465b3038ecf092463a | [
"MIT"
] | 1 | 2021-01-29T03:44:06.000Z | 2021-01-29T03:44:06.000Z | setup_project.py | WindfallLabs/setup_project | fe87ef0fa9d2152a877c94465b3038ecf092463a | [
"MIT"
] | null | null | null | setup_project.py | WindfallLabs/setup_project | fe87ef0fa9d2152a877c94465b3038ecf092463a | [
"MIT"
] | 1 | 2021-01-29T03:44:16.000Z | 2021-01-29T03:44:16.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
setup_project.py -- GIS Project Setup Utility
Garin Wally; May 2014/May 2016
This script creates a project folder-environment for GIS projects as follows:
<project_name>/
data/
raw/
<project_name>.gdb
design/
fonts/
images/
... | 26.017857 | 79 | 0.555251 |
1ae51ac2c341ebe5300267cfbe20cb5e5c501fda | 1,816 | py | Python | tests/format_directory_test.py | garysb/dismantle | b2aeed5916f980c20852d99ae379b0dc1da5a135 | [
"MIT"
] | 2 | 2021-06-02T12:37:13.000Z | 2021-06-08T07:13:20.000Z | tests/format_directory_test.py | garysb/dismantle | b2aeed5916f980c20852d99ae379b0dc1da5a135 | [
"MIT"
] | 5 | 2021-06-29T09:56:15.000Z | 2021-07-12T09:41:19.000Z | tests/format_directory_test.py | area28technologies/dismantle | b2aeed5916f980c20852d99ae379b0dc1da5a135 | [
"MIT"
] | 1 | 2021-12-12T06:17:27.000Z | 2021-12-12T06:17:27.000Z | import os
from pathlib import Path
import pytest
from dismantle.package import DirectoryPackageFormat, PackageFormat
| 32.428571 | 68 | 0.740639 |
1ae5744d76fd5fe30712a3dceb1ec7d3ea37f9e1 | 1,394 | py | Python | labour/helpers.py | darkismus/kompassi | 35dea2c7af2857a69cae5c5982b48f01ba56da1f | [
"CC-BY-3.0"
] | 13 | 2015-11-29T12:19:12.000Z | 2021-02-21T15:42:11.000Z | labour/helpers.py | darkismus/kompassi | 35dea2c7af2857a69cae5c5982b48f01ba56da1f | [
"CC-BY-3.0"
] | 23 | 2015-04-29T19:43:34.000Z | 2021-02-10T05:50:17.000Z | labour/helpers.py | darkismus/kompassi | 35dea2c7af2857a69cae5c5982b48f01ba56da1f | [
"CC-BY-3.0"
] | 11 | 2015-09-20T18:59:00.000Z | 2020-02-07T08:47:34.000Z | from functools import wraps
from django.contrib import messages
from django.shortcuts import get_object_or_404, redirect
from access.cbac import default_cbac_required
from core.models import Event
from .views.admin_menu_items import labour_admin_menu_items
| 30.304348 | 94 | 0.691535 |
1ae6b0af984b4e774a2ea4fe2177c6d38cd7328b | 411 | py | Python | mnist/knows.py | huangjunxiong11/TF2 | 6de61c28c59ef34be7e53762b3a759da152642f7 | [
"MIT"
] | null | null | null | mnist/knows.py | huangjunxiong11/TF2 | 6de61c28c59ef34be7e53762b3a759da152642f7 | [
"MIT"
] | null | null | null | mnist/knows.py | huangjunxiong11/TF2 | 6de61c28c59ef34be7e53762b3a759da152642f7 | [
"MIT"
] | null | null | null | import tensorflow as tf
import numpy as np
a = np.arange(15)
out = a.reshape(5, 3)
c = np.arange(15) / 2
y_onehot = c.reshape(5, 3)
out_tensor = tf.convert_to_tensor(out, dtype=tf.float32)
y_onehot_tensor = tf.convert_to_tensor(y_onehot, dtype=tf.float32)
# y_onehot = tf.one_hot(y_onehot_tensor, depth=3) # one-hot... | 22.833333 | 66 | 0.737226 |
1ae7b7205eff654470b26ae16a62edb36fffcde1 | 632 | py | Python | belady.py | EstebanGS13/operating-system-algorithms | 4f9ec10bb3c57e56816329c19971df71a75f4216 | [
"MIT"
] | null | null | null | belady.py | EstebanGS13/operating-system-algorithms | 4f9ec10bb3c57e56816329c19971df71a75f4216 | [
"MIT"
] | null | null | null | belady.py | EstebanGS13/operating-system-algorithms | 4f9ec10bb3c57e56816329c19971df71a75f4216 | [
"MIT"
] | null | null | null |
if __name__ == "__main__":
pages = [5, 4, 3, 2, 1, 4, 3, 5, 4, 3, 2, 1, 5]
faults = {3: 0, 4: 0}
for frames in faults:
memory = []
for page in pages:
out = None
if page not in memory:
if len(memory) == frames:
out =... | 24.307692 | 66 | 0.457278 |
1ae930f6ba395d300d3bc1a025005ce82d81ccc0 | 247 | py | Python | dictvaluesortt.py | Srinivassan-Ramamurthy/python_programs | 53b390669c7e88532c67d80b758a9199d6fde8cf | [
"bzip2-1.0.6"
] | null | null | null | dictvaluesortt.py | Srinivassan-Ramamurthy/python_programs | 53b390669c7e88532c67d80b758a9199d6fde8cf | [
"bzip2-1.0.6"
] | null | null | null | dictvaluesortt.py | Srinivassan-Ramamurthy/python_programs | 53b390669c7e88532c67d80b758a9199d6fde8cf | [
"bzip2-1.0.6"
] | null | null | null | a={'a':'hello','b':'1','c':'jayalatha','d':[1,2]}
d={}
val=list(a.values())
val.sort(key=len)
print(val)
for i in val:
for j in a:
if(i==a[j]):
d.update({j:a[j]})
print(d)
| 13.722222 | 49 | 0.384615 |
1aea758ba84a554dd7667811c068380137ca1b62 | 2,419 | py | Python | papermerge/core/urls.py | ebdavison/papermerge | d177f1af331214e0f62407624e7029ce4953bd9b | [
"Apache-2.0"
] | null | null | null | papermerge/core/urls.py | ebdavison/papermerge | d177f1af331214e0f62407624e7029ce4953bd9b | [
"Apache-2.0"
] | null | null | null | papermerge/core/urls.py | ebdavison/papermerge | d177f1af331214e0f62407624e7029ce4953bd9b | [
"Apache-2.0"
] | null | null | null | from django.urls import path, include
from django.contrib.auth.decorators import login_required
from papermerge.core.views import documents as doc_views
from papermerge.core.views import access as access_views
from papermerge.core.views import api as api_views
document_patterns = [
path(
'<int:id>/previe... | 22.820755 | 72 | 0.56759 |
1aeac0d09b1ffbcde4dd4b8e81ad05b4d31e9264 | 4,773 | py | Python | Ene-Jun-2021/flores-fernandez-fernando/Primer Parcial/Ejercicio 2/Ejercicio_2.py | bryanbalderas/DAS_Sistemas | 1e31f088c0de7134471025a5730b0abfc19d936e | [
"MIT"
] | 41 | 2017-09-26T09:36:32.000Z | 2022-03-19T18:05:25.000Z | Ene-Jun-2021/flores-fernandez-fernando/Primer Parcial/Ejercicio 2/Ejercicio_2.py | bryanbalderas/DAS_Sistemas | 1e31f088c0de7134471025a5730b0abfc19d936e | [
"MIT"
] | 67 | 2017-09-11T05:06:12.000Z | 2022-02-14T04:44:04.000Z | Ene-Jun-2021/flores-fernandez-fernando/Primer Parcial/Ejercicio 2/Ejercicio_2.py | bryanbalderas/DAS_Sistemas | 1e31f088c0de7134471025a5730b0abfc19d936e | [
"MIT"
] | 210 | 2017-09-01T00:10:08.000Z | 2022-03-19T18:05:12.000Z | import abc
#inteface Component creamos la funcion buscador que es la que buscara alguna PaginaWeb en el SitioWeb
# Concrete Component
# Base Decorator
# Concrete Decorator: A
#clase PaginaWeb la misma del Ejercicio_1
def main():
#llenamos los objetos de PaginaWeb y SitioWeb
pagina1 = Pagina... | 44.194444 | 122 | 0.577415 |
1aec3c2b4298503556aef1b8d4f0b2abb934f5fa | 2,003 | py | Python | DeBERTa/data/data_sampler.py | tirkarthi/DeBERTa | c558ad99373dac695128c9ec45f39869aafd374e | [
"MIT"
] | 7 | 2021-02-04T01:26:55.000Z | 2021-11-23T00:38:47.000Z | DeBERTa/data/data_sampler.py | tirkarthi/DeBERTa | c558ad99373dac695128c9ec45f39869aafd374e | [
"MIT"
] | 1 | 2021-03-18T00:23:17.000Z | 2022-01-05T15:36:48.000Z | src/LASER/data/data_sampler.py | BigBird01/LASER | 57143200814583410acdd0c5ac0a0f8bab8a1f7e | [
"MIT"
] | null | null | null | #
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
# Author: Pengcheng He (penhe@microsoft.com)
# Date: 05/15/2019
#
import os
import numpy as np
import math
import sys
from torch.utils.data import Sampler
__all__=['BatchSampler', 'Distribut... | 26.012987 | 89 | 0.683974 |
1aef2eb7ef26d06658597d29156fcd62d72c7d03 | 85 | py | Python | full_simulation/my_code/physics.py | kvmu/KURRI-workterm | 275f73bdbd8e5ecd7689715f0adc9e824c7ee720 | [
"MIT"
] | null | null | null | full_simulation/my_code/physics.py | kvmu/KURRI-workterm | 275f73bdbd8e5ecd7689715f0adc9e824c7ee720 | [
"MIT"
] | 1 | 2015-11-11T05:06:27.000Z | 2015-11-11T05:06:27.000Z | full_simulation/my_code/physics.py | kvmu/KURRI-workterm | 275f73bdbd8e5ecd7689715f0adc9e824c7ee720 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Nov 04 17:37:37 2015
@author: Kevin
"""
| 10.625 | 35 | 0.564706 |
1aef5c7a0e77fccf10468e703c0a3cb229409069 | 2,336 | py | Python | tests/__init__.py | contentstack/contentstack-utils-python | 3c7bb445dc77e5a2ab18ceac6f87a35d37b52186 | [
"MIT"
] | null | null | null | tests/__init__.py | contentstack/contentstack-utils-python | 3c7bb445dc77e5a2ab18ceac6f87a35d37b52186 | [
"MIT"
] | null | null | null | tests/__init__.py | contentstack/contentstack-utils-python | 3c7bb445dc77e5a2ab18ceac6f87a35d37b52186 | [
"MIT"
] | null | null | null | # pytest --html=tests/report/test-report.html
# above command runs tests and test reports generates in tests/report location.
# nosetests --with-coverage --cover-html
# clean all the .pyc files
# find . -name \*.pyc -delete
# nosetests --with-coverage --cover-html
# pytest --cov=contentstack_utils
# pytest -v --cov=co... | 44.075472 | 99 | 0.81036 |
1af00cd12e0385425fbe7be77246922d83387198 | 584 | py | Python | sorting/builtin.py | umd-coding-workshop/algorithms | 49ea6f39167b627a0a3d2e9e4bf249e3e828f4e5 | [
"Apache-2.0"
] | null | null | null | sorting/builtin.py | umd-coding-workshop/algorithms | 49ea6f39167b627a0a3d2e9e4bf249e3e828f4e5 | [
"Apache-2.0"
] | null | null | null | sorting/builtin.py | umd-coding-workshop/algorithms | 49ea6f39167b627a0a3d2e9e4bf249e3e828f4e5 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
''' Use the python built-in sort for comparison
against other implementations.'''
import sys
with open(sys.argv[1], 'r') as datafile:
data = [int(line.split('\t')[0].strip()) for line in datafile.readlines()]
result = sorted(data)
print(len(result), result)
| 21.62963 | 78 | 0.568493 |