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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d5330ff256d87e5e4d011bc3c2a06f779221895e | 71 | py | Python | tests/functional/__init__.py | bianhaoyi/necache | aaaee900c0cf57bfc477fb790858709c7f2d69fe | [
"BSD-3-Clause"
] | 351 | 2015-01-06T09:49:19.000Z | 2022-03-30T12:46:23.000Z | tests/functional/__init__.py | bianhaoyi/necache | aaaee900c0cf57bfc477fb790858709c7f2d69fe | [
"BSD-3-Clause"
] | 10 | 2015-11-19T21:10:18.000Z | 2021-08-16T14:29:01.000Z | tests/functional/__init__.py | LaudateCorpus1/twemcache | 8cfc4ca5e76ed936bd3786c8cc43ed47e7778c08 | [
"BSD-3-Clause"
] | 73 | 2015-01-07T07:06:46.000Z | 2022-03-21T00:59:23.000Z | __all__ = ['basic', 'expiry', 'stats', 'advanced', 'startup', '64bit']
| 35.5 | 70 | 0.605634 |
d534130c3adddf6058dcb013d4b80cff8777ad9e | 2,024 | py | Python | laygo2/interface/bag.py | dwkim565/laygo2 | fea1263638fa5641ad27f2000d7562cdf910c67f | [
"BSD-3-Clause"
] | null | null | null | laygo2/interface/bag.py | dwkim565/laygo2 | fea1263638fa5641ad27f2000d7562cdf910c67f | [
"BSD-3-Clause"
] | null | null | null | laygo2/interface/bag.py | dwkim565/laygo2 | fea1263638fa5641ad27f2000d7562cdf910c67f | [
"BSD-3-Clause"
] | 1 | 2021-12-31T08:21:43.000Z | 2021-12-31T08:21:43.000Z | #!/usr/bin/python
########################################################################################################################
#
# Copyright (c) 2014, Regents of the University of California
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are permi... | 53.263158 | 120 | 0.685771 |
d534c630f8ec7158aa367faf059fd230fe16ae61 | 1,035 | py | Python | CamJam EduKit 2 - GPIO Zero/Code/5-PIR.py | CamJam-EduKit/EduKit2 | e7920420fa6b46233304ae57d8eb39255ade3e1e | [
"MIT"
] | 45 | 2016-02-03T21:59:28.000Z | 2021-11-14T02:24:02.000Z | CamJam EduKit 2 - GPIO Zero/Code/5-PIR.py | CamJam-EduKit/EduKit2 | e7920420fa6b46233304ae57d8eb39255ade3e1e | [
"MIT"
] | 7 | 2017-05-24T11:44:31.000Z | 2022-03-13T11:56:08.000Z | CamJam EduKit 2 - GPIO Zero/Code/5-PIR.py | CamJam-EduKit/EduKit2 | e7920420fa6b46233304ae57d8eb39255ade3e1e | [
"MIT"
] | 29 | 2016-02-13T13:37:54.000Z | 2021-04-28T16:43:49.000Z | # CamJam EduKit 2 - Sensors (GPIO Zero)
# Worksheet 5 - Movement
# Import Python header files
from gpiozero import MotionSensor
import time
# Set a variable to hold the GPIO Pin identity
pir = MotionSensor(17)
print("Waiting for PIR to settle")
pir.wait_for_no_motion()
print("PIR Module Test (CTRL-C to exit)")
# V... | 25.243902 | 61 | 0.651208 |
d534d4c11072c8911ea392648daa8cbe0a59680b | 5,014 | py | Python | match.py | skysea04/Scard | 11c30084398860bc31326c56424d6794806245eb | [
"Apache-2.0"
] | 5 | 2021-08-05T16:06:39.000Z | 2021-11-20T04:52:02.000Z | match.py | skysea04/Scard | 11c30084398860bc31326c56424d6794806245eb | [
"Apache-2.0"
] | null | null | null | match.py | skysea04/Scard | 11c30084398860bc31326c56424d6794806245eb | [
"Apache-2.0"
] | 5 | 2021-07-29T03:05:26.000Z | 2022-03-08T14:02:34.000Z | import sys, random, math, time, json
from datetime import date, timedelta
import threading
from models.model import db, User, Scard, cache
import mysql.connector
from app import app, mysql_host, mysql_user, mysql_password, mysql_database
db.__init__(app)
'''
'''
start_time = time.time()
today = date.today()
yesterd... | 30.573171 | 182 | 0.6071 |
d53515f8808fbd2654fdca8c8f013d1618ebdb2b | 1,067 | py | Python | setup.py | clementsw/interferometer | 5fbf74e5aa011d381c112c0adbc9fb0d1144d331 | [
"MIT"
] | 6 | 2021-07-01T19:53:27.000Z | 2022-03-24T12:55:09.000Z | setup.py | clementsw/interferometer | 5fbf74e5aa011d381c112c0adbc9fb0d1144d331 | [
"MIT"
] | 1 | 2021-08-08T03:39:38.000Z | 2021-08-08T03:39:38.000Z | setup.py | clementsw/interferometer | 5fbf74e5aa011d381c112c0adbc9fb0d1144d331 | [
"MIT"
] | 1 | 2022-03-09T16:57:40.000Z | 2022-03-09T16:57:40.000Z | # -*- coding: utf-8 -*-
"""
Created on Fri Mar 23 16:16:20 2018
@author: clementsw
"""
from setuptools import setup
setup(name='interferometer',
version='0.1',
description='Algorithms for universal interferometers',
long_description='Decompose unitary matrices into interferometers using two differe... | 29.638889 | 139 | 0.627929 |
d5372720a1be5cab4ade8dc5c07291e11eb0a610 | 825 | py | Python | github_releaser/cmd/asset.py | dfurtado/github-releaser | 6b4fc35d1abc6ce3d2e5ab1441d3df0ad482bf65 | [
"MIT"
] | 2 | 2020-07-03T09:44:08.000Z | 2020-07-03T13:10:48.000Z | github_releaser/cmd/asset.py | dfurtado/github-releaser | 6b4fc35d1abc6ce3d2e5ab1441d3df0ad482bf65 | [
"MIT"
] | 2 | 2020-07-21T10:50:17.000Z | 2020-08-03T11:07:22.000Z | github_releaser/cmd/asset.py | dfurtado/github-releaser | 6b4fc35d1abc6ce3d2e5ab1441d3df0ad482bf65 | [
"MIT"
] | null | null | null | import click
import os
from github_releaser import GithubReleaser
| 34.375 | 90 | 0.700606 |
d53971f07f775a3aa711042218ce3a65fcaf552c | 2,355 | py | Python | decisionTrees/decisionTree/partii/Gain.py | evamy/mlBucket | 15fb9687a4c853edeaace23e752de069214f3cf3 | [
"MIT"
] | null | null | null | decisionTrees/decisionTree/partii/Gain.py | evamy/mlBucket | 15fb9687a4c853edeaace23e752de069214f3cf3 | [
"MIT"
] | null | null | null | decisionTrees/decisionTree/partii/Gain.py | evamy/mlBucket | 15fb9687a4c853edeaace23e752de069214f3cf3 | [
"MIT"
] | null | null | null | ##
# Gain Calculation
# for implementing decision trees
#
# @author antriksh
# Version 1: 09/16/2017
from Dataset import Dataset
import pandas as pd
import numpy as np
import random
| 23.787879 | 77 | 0.539278 |
d53e4eb300c1cc0390929d5bc39197d9c1362656 | 667 | py | Python | tests/getnet/services/token/test_card_number.py | rafagonc/getnet-py | d2a5278b497408b5245d5d0fecd2e424f4ddb0d5 | [
"MIT"
] | null | null | null | tests/getnet/services/token/test_card_number.py | rafagonc/getnet-py | d2a5278b497408b5245d5d0fecd2e424f4ddb0d5 | [
"MIT"
] | null | null | null | tests/getnet/services/token/test_card_number.py | rafagonc/getnet-py | d2a5278b497408b5245d5d0fecd2e424f4ddb0d5 | [
"MIT"
] | null | null | null | import unittest
from getnet.services.token import CardNumber
if __name__ == "__main__":
unittest.main()
| 26.68 | 84 | 0.661169 |
d53f47f532735f17bfb2f4eb7d8d52537f38dd98 | 935 | py | Python | inference_converter/utils/argparser.py | mzeynali/dl-model-converter | 3adff16661254f29a4e9b2d76402ba9b064d3d97 | [
"Apache-2.0"
] | null | null | null | inference_converter/utils/argparser.py | mzeynali/dl-model-converter | 3adff16661254f29a4e9b2d76402ba9b064d3d97 | [
"Apache-2.0"
] | null | null | null | inference_converter/utils/argparser.py | mzeynali/dl-model-converter | 3adff16661254f29a4e9b2d76402ba9b064d3d97 | [
"Apache-2.0"
] | null | null | null | import sys
import json
import argparse
import sys
| 20.777778 | 52 | 0.627807 |
d5434871e6b9c2f656f5e120340151b549c7af58 | 12,703 | py | Python | three_wolves/envs/contact_cube_env.py | 42jaylonw/rrc_2021_three_wolves | f5b8c1589f14c6b8455f438cbb62ed74e9ad8551 | [
"BSD-3-Clause"
] | null | null | null | three_wolves/envs/contact_cube_env.py | 42jaylonw/rrc_2021_three_wolves | f5b8c1589f14c6b8455f438cbb62ed74e9ad8551 | [
"BSD-3-Clause"
] | null | null | null | three_wolves/envs/contact_cube_env.py | 42jaylonw/rrc_2021_three_wolves | f5b8c1589f14c6b8455f438cbb62ed74e9ad8551 | [
"BSD-3-Clause"
] | 1 | 2022-01-05T11:40:32.000Z | 2022-01-05T11:40:32.000Z | import time
import gym
import numpy as np
import pybullet
from trifinger_simulation import TriFingerPlatform, visual_objects
from trifinger_simulation.tasks import move_cube_on_trajectory as task
from three_wolves.envs.base_cube_env import ActionType, BaseCubeTrajectoryEnv
from three_wolves.envs.utilities.env_utils i... | 41.64918 | 121 | 0.615288 |
d54427a0aba1c3116e4d85ec6e7cfa958b479d0b | 1,220 | py | Python | iamheadless_publisher_admin/mixins.py | plain-ie/iamheadless_publisher_admin | 03e0406d5d6e40132fb63100f184ce5e90c0ad31 | [
"MIT"
] | null | null | null | iamheadless_publisher_admin/mixins.py | plain-ie/iamheadless_publisher_admin | 03e0406d5d6e40132fb63100f184ce5e90c0ad31 | [
"MIT"
] | null | null | null | iamheadless_publisher_admin/mixins.py | plain-ie/iamheadless_publisher_admin | 03e0406d5d6e40132fb63100f184ce5e90c0ad31 | [
"MIT"
] | null | null | null | from django.urls import path
from . import permissions
from . import utils
| 25.957447 | 61 | 0.690984 |
d54c508466e035352ddb860546e3c55067122dc2 | 599 | py | Python | setup.py | K0lb3/texgenpack_py | 28951dd2eb18c1d84483910eaf29846e7ecdfc33 | [
"Zlib"
] | null | null | null | setup.py | K0lb3/texgenpack_py | 28951dd2eb18c1d84483910eaf29846e7ecdfc33 | [
"Zlib"
] | null | null | null | setup.py | K0lb3/texgenpack_py | 28951dd2eb18c1d84483910eaf29846e7ecdfc33 | [
"Zlib"
] | null | null | null | import os
from setuptools import Extension, setup
try:
from Cython.Build import cythonize
except ImportError:
cythonize = None
extensions = [
Extension(
name="texgenpy",
sources=[
"texgen.pyx",
*ALL_C('texgenpack'),
],
include_dirs=[
"t... | 17.617647 | 46 | 0.559265 |
d54c6db149f6401a788e181c4dc27753be8b1fc7 | 2,967 | py | Python | sdk/python/pulumi_azure_native/web/v20150801/__init__.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/web/v20150801/__init__.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/web/v20150801/__init__.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
from ... import _utilities
import typing
# Export this package's modules as members:
from ._enums import *
from .certificate import *
from .certificate... | 38.038462 | 80 | 0.834176 |
d54cca8c5b64ee4952f55cc7414cf0f7c89b54c0 | 4,976 | py | Python | app/main/views.py | Amin1014/blogs-1 | 7bb51e270385877edb2e0819b503dde512c27b6d | [
"MIT"
] | null | null | null | app/main/views.py | Amin1014/blogs-1 | 7bb51e270385877edb2e0819b503dde512c27b6d | [
"MIT"
] | null | null | null | app/main/views.py | Amin1014/blogs-1 | 7bb51e270385877edb2e0819b503dde512c27b6d | [
"MIT"
] | null | null | null | from flask import render_template,redirect,url_for,abort,request,flash
from app.main import main
from .forms import UpdateProfile,CreateBlog
from flask_login import login_required,current_user
from ..email import mail_message
from app.models import User,Blog,Comment,Follower
from ..import db
from app.requests import ge... | 33.85034 | 110 | 0.679863 |
d54e7671cd752c4f6814416f2822aa1db9d9be69 | 380 | py | Python | debufftracker/__main__.py | nstatz/PoEDebuffTracker | 5129c57e2fa9e43d820dec3eb0f44dddbd49c860 | [
"MIT"
] | null | null | null | debufftracker/__main__.py | nstatz/PoEDebuffTracker | 5129c57e2fa9e43d820dec3eb0f44dddbd49c860 | [
"MIT"
] | null | null | null | debufftracker/__main__.py | nstatz/PoEDebuffTracker | 5129c57e2fa9e43d820dec3eb0f44dddbd49c860 | [
"MIT"
] | null | null | null | import os
from debufftracker import screen_tools
current_dir = os.path.dirname( os.path.abspath(__file__))
project_dir = os.path.join(current_dir, os.path.pardir)
# set project source folder as working directory
os.chdir(project_dir)
if __name__ == "__main__":
screentracker = screen_tools.ScreenTracker()
scr... | 29.230769 | 57 | 0.784211 |
d54e9e653fd46c7bedfaa8531863df8dbad56a84 | 279 | py | Python | extension_examples/setup.py | malte-storm/Savu | 16291e8a22464c50c511af01fbc648860c1236e6 | [
"Apache-2.0"
] | 39 | 2015-03-30T14:03:42.000Z | 2022-03-16T16:50:33.000Z | extension_examples/setup.py | malte-storm/Savu | 16291e8a22464c50c511af01fbc648860c1236e6 | [
"Apache-2.0"
] | 670 | 2015-02-11T11:08:09.000Z | 2022-03-21T09:27:57.000Z | extension_examples/setup.py | malte-storm/Savu | 16291e8a22464c50c511af01fbc648860c1236e6 | [
"Apache-2.0"
] | 54 | 2015-02-13T14:09:52.000Z | 2022-01-24T13:57:09.000Z |
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
setup(
cmdclass={'build_ext':build_ext},
ext_modules=[
Extension("dezing",["dezing.pyx"],
libraries=["dezing"])
]
)
| 23.25 | 43 | 0.645161 |
d55090df04a7b080af6bf93b66774f6acfb91c99 | 1,231 | py | Python | bonus_top_interview_questions/315. Count of Smaller Numbers After Self.py | JacopoPan/leetcode-top100-liked-questions | 03dc05f087d05805d54b7585ce740338f3128833 | [
"MIT"
] | null | null | null | bonus_top_interview_questions/315. Count of Smaller Numbers After Self.py | JacopoPan/leetcode-top100-liked-questions | 03dc05f087d05805d54b7585ce740338f3128833 | [
"MIT"
] | null | null | null | bonus_top_interview_questions/315. Count of Smaller Numbers After Self.py | JacopoPan/leetcode-top100-liked-questions | 03dc05f087d05805d54b7585ce740338f3128833 | [
"MIT"
] | null | null | null | """
Runtime: 3284 ms, faster than 74.29% of Python3 online submissions for Count of Smaller Numbers After Self.
Memory Usage: 33.2 MB, less than 76.39% of Python3 online submissions for Count of Smaller Numbers After Self.
"""
from typing import List
from typing import Optional
if __name__ == "__main__":
main()
| 33.27027 | 110 | 0.561332 |
d5511838b4b4d80eeeb07f7837865dc3b34ed429 | 1,130 | py | Python | util/Tool.py | EmeryWan/GradeEntry | 3c4e27588e714df8fe26b29758a961830f9e770d | [
"MIT"
] | 3 | 2019-07-31T13:09:52.000Z | 2019-09-30T10:26:03.000Z | util/Tool.py | EmeryWan/GradeEntry | 3c4e27588e714df8fe26b29758a961830f9e770d | [
"MIT"
] | null | null | null | util/Tool.py | EmeryWan/GradeEntry | 3c4e27588e714df8fe26b29758a961830f9e770d | [
"MIT"
] | null | null | null | import inspect
from singleton.AboutViewSingleton import AboutViewSingle
| 21.320755 | 56 | 0.546903 |
d553ade15a4eefdbc36f33e88c8c183a77abed27 | 696 | py | Python | Tkinter_Scripts/tkinter-dropdown01.py | anupam-sy/Python-GUI | 5017b5deccd5f7a592922907aba1ff8b062b9b0a | [
"MIT"
] | 1 | 2020-04-25T01:20:01.000Z | 2020-04-25T01:20:01.000Z | Tkinter_Scripts/tkinter-dropdown01.py | anupam-sy/Python-GUI | 5017b5deccd5f7a592922907aba1ff8b062b9b0a | [
"MIT"
] | null | null | null | Tkinter_Scripts/tkinter-dropdown01.py | anupam-sy/Python-GUI | 5017b5deccd5f7a592922907aba1ff8b062b9b0a | [
"MIT"
] | null | null | null | # Implementation of Dropdown in tkinter
from tkinter import *
root = Tk()
root.title("Dropdown Implementation")
root.geometry("200x50")
# create a menubar
menubar = Menu(root)
# configure root to use that menubar
# display the menu
root.config(menu=menubar)
# Add items in menu bar
menubar.add_command(label="Hello!... | 22.451613 | 75 | 0.752874 |
d555e94e143a29f11e123e6f014810777702c950 | 106 | py | Python | mix_beta/example1.py | TomiBelan/multiparser | d23ee69c0771d2b0f899d1cc88bde16aa22f7a9f | [
"Apache-2.0"
] | null | null | null | mix_beta/example1.py | TomiBelan/multiparser | d23ee69c0771d2b0f899d1cc88bde16aa22f7a9f | [
"Apache-2.0"
] | null | null | null | mix_beta/example1.py | TomiBelan/multiparser | d23ee69c0771d2b0f899d1cc88bde16aa22f7a9f | [
"Apache-2.0"
] | null | null | null |
print((:(:7:):))
a = (: [[lua string]] :)
b = (: x .. y :)
c = (: 1 + (: (: (yield 1) :) * 2 :) ^ -6 :)
| 15.142857 | 44 | 0.273585 |
d55987fd12bdc575cb7211586969ce4f4d999611 | 11,031 | py | Python | chaos_genius/core/rca/rca_utils/api_utils.py | chaos-genius/chaos_genius | b5eadb6c38b5d449e54889a167c9034f6cec6009 | [
"MIT"
] | 320 | 2022-02-18T18:18:42.000Z | 2022-03-31T16:42:38.000Z | chaos_genius/core/rca/rca_utils/api_utils.py | chaos-genius/chaos_genius | b5eadb6c38b5d449e54889a167c9034f6cec6009 | [
"MIT"
] | 115 | 2022-02-18T16:39:01.000Z | 2022-03-31T15:23:52.000Z | chaos_genius/core/rca/rca_utils/api_utils.py | chaos-genius/chaos_genius | b5eadb6c38b5d449e54889a167c9034f6cec6009 | [
"MIT"
] | 18 | 2022-02-18T18:44:01.000Z | 2022-03-10T08:33:34.000Z | """Utility functions for RCA API endpoints."""
import logging
from datetime import date, datetime, timedelta
from typing import List
from chaos_genius.databases.models.anomaly_data_model import AnomalyDataOutput
from chaos_genius.extensions import db
from chaos_genius.controllers.kpi_controller import get_kpi_data_fro... | 32.06686 | 85 | 0.528329 |
d55c5a73eca5eab76ef8ba52d0cc0073bdf209e2 | 4,027 | py | Python | clock/exports/stundenzettel_generator/strategy.py | chgad/django-clock | f855cd1253574c0582ed53a0ac34206c242f04c9 | [
"MIT"
] | null | null | null | clock/exports/stundenzettel_generator/strategy.py | chgad/django-clock | f855cd1253574c0582ed53a0ac34206c242f04c9 | [
"MIT"
] | null | null | null | clock/exports/stundenzettel_generator/strategy.py | chgad/django-clock | f855cd1253574c0582ed53a0ac34206c242f04c9 | [
"MIT"
] | 1 | 2020-03-13T14:42:11.000Z | 2020-03-13T14:42:11.000Z | # Package "stundenzettel_generator", Strategy abstract class
# (c) 2015 Sven K., GPL
# Python batteries
import re
from datetime import datetime, timedelta, date
from os import path
# adopt this to your needs
freedays_file = path.join(path.dirname(__file__), 'feier-brueckentage2015.txt')
# abstract class
| 37.635514 | 104 | 0.57785 |
d55c7d8f96a78059d6e8c8a3ed3364b75170413a | 410 | py | Python | tests/Clients/test_serializers.py | Sheshtawy/featurette | d3d75bcf11b7db6f46e35615656e694e13463d1d | [
"MIT"
] | null | null | null | tests/Clients/test_serializers.py | Sheshtawy/featurette | d3d75bcf11b7db6f46e35615656e694e13463d1d | [
"MIT"
] | null | null | null | tests/Clients/test_serializers.py | Sheshtawy/featurette | d3d75bcf11b7db6f46e35615656e694e13463d1d | [
"MIT"
] | null | null | null | from app.Clients.serializers import ClientSchema
from app.Clients.models import Client
| 31.538462 | 58 | 0.7 |
d55da3bd990fcd7c4231a540e95539db3b6dd742 | 5,696 | py | Python | palabox/apis/duolingo.py | marcoboucas/palabox | d6e937db909daac0f9d3c5dff2309c29b5b68ea8 | [
"MIT"
] | null | null | null | palabox/apis/duolingo.py | marcoboucas/palabox | d6e937db909daac0f9d3c5dff2309c29b5b68ea8 | [
"MIT"
] | null | null | null | palabox/apis/duolingo.py | marcoboucas/palabox | d6e937db909daac0f9d3c5dff2309c29b5b68ea8 | [
"MIT"
] | null | null | null | """Duolingo API."""
from dataclasses import dataclass
from datetime import datetime
import dacite
import requests
from .base import BaseApi, BaseApiConfig
from .types.duolingo import DuolingoStats
| 53.233645 | 2,345 | 0.748244 |
d55dda708b14770945e0676691a296378b570ba7 | 4,157 | py | Python | autofields/tests/autofield.py | lygaret/django-autofields | 842a4624b727fabae77a6ad43faf198acf42ecb7 | [
"BSD-3-Clause"
] | 1 | 2015-05-01T23:53:01.000Z | 2015-05-01T23:53:01.000Z | autofields/tests/autofield.py | lygaret/django-autofields | 842a4624b727fabae77a6ad43faf198acf42ecb7 | [
"BSD-3-Clause"
] | null | null | null | autofields/tests/autofield.py | lygaret/django-autofields | 842a4624b727fabae77a6ad43faf198acf42ecb7 | [
"BSD-3-Clause"
] | null | null | null | from django.test import TestCase
from django.conf import settings
from .. import fields
from models import *
from datetime import date
incoming_markdown = "**bold**, *italic*"
gen_html = "<p><strong>bold</strong>, <em>italic</em></p>"
| 30.343066 | 59 | 0.618956 |
d55e96c721c18cb1f3e8bef1df0d73fa400bed48 | 14,804 | py | Python | tests/unit/service_test.py | TUNE-Archive/freight_forwarder | 6ea4a49f474ec04abb8bb81b175c774a16b5312f | [
"MIT"
] | null | null | null | tests/unit/service_test.py | TUNE-Archive/freight_forwarder | 6ea4a49f474ec04abb8bb81b175c774a16b5312f | [
"MIT"
] | null | null | null | tests/unit/service_test.py | TUNE-Archive/freight_forwarder | 6ea4a49f474ec04abb8bb81b175c774a16b5312f | [
"MIT"
] | null | null | null | # -*- coding: utf-8; -*-
from __future__ import absolute_import, unicode_literals
import os
import six
from tests import unittest, mock
from freight_forwarder.registry.registry import V1
from freight_forwarder.container.host_config import HostConfig
from freight_forwarder.container.config import Config as ContainerCo... | 42.056818 | 123 | 0.714469 |
d55efdb47af4ac34ac2686622df940350716567f | 386 | py | Python | lb_ec2_db.py | DiptoChakrabarty/diagrams | 6efaff8b06b49c071bf243bc266f0be9fdd70afb | [
"MIT"
] | null | null | null | lb_ec2_db.py | DiptoChakrabarty/diagrams | 6efaff8b06b49c071bf243bc266f0be9fdd70afb | [
"MIT"
] | null | null | null | lb_ec2_db.py | DiptoChakrabarty/diagrams | 6efaff8b06b49c071bf243bc266f0be9fdd70afb | [
"MIT"
] | null | null | null | from diagrams import Diagram
from diagrams.aws.compute import EC2
from diagrams.aws.database import RDS
from diagrams.aws.network import ELB
with Diagram("Grouped Workers",show=True,direction="TB"):
ELB("lb") >> [EC2("node1"),
EC2("node2"),
EC2("node3"),
... | 29.692308 | 57 | 0.562176 |
d56065015acdcfc5b50c685207e82f83e0d13834 | 7,884 | py | Python | cymlda.py | LaoWang-Lab/multi-dimensional-topic-model | bbebc15e595ac793a790646a2ff5d0677ec6b2de | [
"MIT"
] | 1 | 2015-11-09T14:17:30.000Z | 2015-11-09T14:17:30.000Z | cymlda.py | LaoWang-Lab/multi-dimensional-topic-model | bbebc15e595ac793a790646a2ff5d0677ec6b2de | [
"MIT"
] | null | null | null | cymlda.py | LaoWang-Lab/multi-dimensional-topic-model | bbebc15e595ac793a790646a2ff5d0677ec6b2de | [
"MIT"
] | null | null | null | __author__ = 'Linwei'
import numpy as np
import os, json, sys, re
import _cymlda
from settings import H, E, alpha, beta, gamma, docDir, outputDir, iter_max, run_num, dictionary, docset
PY2 = sys.version_info[0] == 2
if PY2:
range = xrange
def n2s(counts):
"""convert a counts vector to corresponding samples"... | 39.818182 | 146 | 0.539954 |
d56088b13e056734a3376fd9aad22a5e70b7c4da | 8,223 | py | Python | uos3/configUp/migrations/0001_initial.py | aliaksei135/telecommand-server | eb6f23f03ff75a18a5115f3038bb4d4192594627 | [
"MIT"
] | null | null | null | uos3/configUp/migrations/0001_initial.py | aliaksei135/telecommand-server | eb6f23f03ff75a18a5115f3038bb4d4192594627 | [
"MIT"
] | null | null | null | uos3/configUp/migrations/0001_initial.py | aliaksei135/telecommand-server | eb6f23f03ff75a18a5115f3038bb4d4192594627 | [
"MIT"
] | 1 | 2020-04-22T20:39:49.000Z | 2020-04-22T20:39:49.000Z | # Generated by Django 2.2.6 on 2019-11-01 18:25
import datetime
import django.core.validators
from django.db import migrations, models
| 75.440367 | 219 | 0.548705 |
d5617408fe61ad79898cc6e28c5136f3b8cef58c | 3,176 | py | Python | atom/factory.py | yoshiask/PyZuneCatalogServer | b176155f89e3a990456248175b458ba309b808e0 | [
"MIT"
] | 7 | 2021-02-21T10:45:25.000Z | 2021-03-28T10:29:36.000Z | atom/factory.py | yoshiask/PyZuneCatalogServer | b176155f89e3a990456248175b458ba309b808e0 | [
"MIT"
] | 1 | 2022-02-16T08:18:36.000Z | 2022-02-20T04:17:02.000Z | atom/factory.py | yoshiask/PyZuneCatalogServer | b176155f89e3a990456248175b458ba309b808e0 | [
"MIT"
] | null | null | null | from typing import Dict, Any
from xml.dom import minidom
from xml.dom.minidom import Element, Document, Text
from datetime import datetime
MIME_XML = "text/xml"
MIME_ATOM_XML = "application/atom+xml"
MIME_UIX = "application/uix"
MIME_JPG = "image/jpeg"
| 32.408163 | 118 | 0.71694 |
d562d010288aefc6638d20954153035f7622937e | 290 | py | Python | snippets - machine learning sklearn/loading-data.py | bjfisica/MachineLearning | 20349301ae7f82cd5048410b0cf1f7a5f7d7e5a2 | [
"MIT"
] | 52 | 2019-02-15T16:37:13.000Z | 2022-02-17T18:34:30.000Z | snippets - machine learning sklearn/loading-data.py | RodeoBlues/Complete-Data-Science-Toolkits | c5e83889e24af825ec3baed6e8198debb135f1ff | [
"MIT"
] | null | null | null | snippets - machine learning sklearn/loading-data.py | RodeoBlues/Complete-Data-Science-Toolkits | c5e83889e24af825ec3baed6e8198debb135f1ff | [
"MIT"
] | 22 | 2019-02-25T23:52:09.000Z | 2021-09-21T03:09:35.000Z | import numpy as np
X = np.random.random((10,5))
y = np.array(['M','M','F','F','M','F','M','M','F','F','F'])
X[X < 0.7] = 0
#use model selection to split our data
from sklearn.model_selection import train_test_split
X_train, X_test, y_train, y_test = train_test_split(X, y, random_state=0)
| 36.25 | 73 | 0.665517 |
d564c433a41a9d425ea19b0dd2e0474e38611f74 | 3,296 | py | Python | cyder/base/eav/models.py | drkitty/cyder | 1babc443cc03aa51fa3c1015bcd22f0ea2e5f0f8 | [
"BSD-3-Clause"
] | 6 | 2015-04-16T23:18:22.000Z | 2020-08-25T22:50:13.000Z | cyder/base/eav/models.py | drkitty/cyder | 1babc443cc03aa51fa3c1015bcd22f0ea2e5f0f8 | [
"BSD-3-Clause"
] | 267 | 2015-01-01T00:18:57.000Z | 2015-10-14T00:01:13.000Z | cyder/base/eav/models.py | drkitty/cyder | 1babc443cc03aa51fa3c1015bcd22f0ea2e5f0f8 | [
"BSD-3-Clause"
] | 5 | 2015-03-23T00:57:09.000Z | 2019-09-09T22:42:37.000Z | from django.db import models
from cyder.base.eav.constants import (ATTRIBUTE_TYPES, ATTRIBUTE_INVENTORY,
ATTRIBUTE_OPTION, ATTRIBUTE_STATEMENT)
from cyder.base.eav.fields import AttributeValueTypeField, EAVValueField
from cyder.base.eav.utils import is_hex_byte_sequence
from cyder... | 31.390476 | 79 | 0.646238 |
d56541d5aa20af499f0418b573223a43ac7ab22d | 982 | py | Python | Sources/ui/mk_icons_android.py | codingisacopingstrategy/raduga | fab71b2c7630ac141c3cb588a6ff59edf5eb2072 | [
"Apache-2.0"
] | null | null | null | Sources/ui/mk_icons_android.py | codingisacopingstrategy/raduga | fab71b2c7630ac141c3cb588a6ff59edf5eb2072 | [
"Apache-2.0"
] | 1 | 2015-06-22T10:26:55.000Z | 2015-06-22T10:26:58.000Z | Sources/ui/mk_icons_android.py | codingisacopingstrategy/raduga | fab71b2c7630ac141c3cb588a6ff59edf5eb2072 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import subprocess
import os
"""
Resize a PDF icon to to all icon sizes possibly required for Android,
Uses OS Xs scriptable image processing system command line utility.
http://straylink.wordpress.com/2009/01/24/os-x-command-line-image-manipulation/
On Linux, Ghostscript is your best bet!
"... | 30.6875 | 79 | 0.602851 |
d5672c64e05c057c731faac1ae947bf84604cb2e | 12,071 | py | Python | cldfbench_pulotu.py | D-PLACE/dplace-dataset-pulotu | a26070a803d75dc9cc67e8233d48eee0f9fa0fcd | [
"CC-BY-4.0"
] | null | null | null | cldfbench_pulotu.py | D-PLACE/dplace-dataset-pulotu | a26070a803d75dc9cc67e8233d48eee0f9fa0fcd | [
"CC-BY-4.0"
] | null | null | null | cldfbench_pulotu.py | D-PLACE/dplace-dataset-pulotu | a26070a803d75dc9cc67e8233d48eee0f9fa0fcd | [
"CC-BY-4.0"
] | null | null | null | import re
import pathlib
import subprocess
import collections
from clldutils.text import split_text
from clldutils.misc import slug
from cldfbench import Dataset as BaseDataset, CLDFSpec
import errata
# The following variables go into LanguageTable, we want to be able to identify these by ID:
MD = {
'Latitude': ... | 32.712737 | 109 | 0.515947 |
d56a97f82f78b9061fb5f7e8a3676e542e4c4969 | 1,908 | py | Python | selenium/test_navbar.py | mattruston/idb | 5c041f0a844fa025b920471bfe826fed0ce23c61 | [
"MIT"
] | 1 | 2017-10-19T21:46:35.000Z | 2017-10-19T21:46:35.000Z | selenium/test_navbar.py | mattruston/idb | 5c041f0a844fa025b920471bfe826fed0ce23c61 | [
"MIT"
] | 1 | 2017-09-22T15:24:27.000Z | 2017-09-22T15:24:27.000Z | selenium/test_navbar.py | mattruston/idb | 5c041f0a844fa025b920471bfe826fed0ce23c61 | [
"MIT"
] | null | null | null | import unittest
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
if __name__ == "__main__":
unittest.main() | 31.278689 | 70 | 0.630503 |
d56c4f18f73c4cc41e3d1508894b7b35f74be651 | 4,724 | py | Python | led/Feature.py | cloudy/osr-rover-code | 07d370ae1cde75eaf2d279fcc7f220c95cf6d736 | [
"Apache-2.0"
] | 5 | 2019-02-13T20:15:27.000Z | 2019-08-10T07:07:57.000Z | led/Feature.py | cloudy/osr-rover-code | 07d370ae1cde75eaf2d279fcc7f220c95cf6d736 | [
"Apache-2.0"
] | null | null | null | led/Feature.py | cloudy/osr-rover-code | 07d370ae1cde75eaf2d279fcc7f220c95cf6d736 | [
"Apache-2.0"
] | null | null | null | #Framework for FeatureData
#Defines and controls Feature objects that can be placed on the Display
#from Updater import Updater
'''
Feature List
Eye(style,x,y,[c1,c2])
8bit
wink
'''
| 25.673913 | 71 | 0.696867 |
d56cf4b8f7c59a6b0306ac4185b0f9d60b73fa75 | 1,390 | py | Python | lyrics/models.py | stuntman723/rap-analyzer | 46af59a16d2f48795f44c317eafa5143ed79b7bf | [
"MIT"
] | null | null | null | lyrics/models.py | stuntman723/rap-analyzer | 46af59a16d2f48795f44c317eafa5143ed79b7bf | [
"MIT"
] | null | null | null | lyrics/models.py | stuntman723/rap-analyzer | 46af59a16d2f48795f44c317eafa5143ed79b7bf | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here. | 26.226415 | 56 | 0.657554 |
d56cf7a16d71912684f9735b1322042ef090fe2a | 12,365 | py | Python | mushr_rhc/cost/block_push.py | Rockett8855/mushr_rhc | 79ea69020ce208c1000ab8a33e5774abf52d882d | [
"BSD-3-Clause"
] | null | null | null | mushr_rhc/cost/block_push.py | Rockett8855/mushr_rhc | 79ea69020ce208c1000ab8a33e5774abf52d882d | [
"BSD-3-Clause"
] | null | null | null | mushr_rhc/cost/block_push.py | Rockett8855/mushr_rhc | 79ea69020ce208c1000ab8a33e5774abf52d882d | [
"BSD-3-Clause"
] | null | null | null | import torch
import math
import threading
import Tkinter as tk
import mushr_rhc.utils as utils
| 37.929448 | 103 | 0.559968 |
d56d17b418a5e4e2217bc6482393e687e1206211 | 935 | py | Python | src/Modules/Communication/bluetooth.py | bopopescu/PyHouse_1 | 6444ed0b4c38ab59b9e419e4d54d65d598e6a54e | [
"MIT"
] | 1 | 2016-09-21T19:30:21.000Z | 2016-09-21T19:30:21.000Z | src/Modules/Communication/bluetooth.py | bopopescu/PyHouse_1 | 6444ed0b4c38ab59b9e419e4d54d65d598e6a54e | [
"MIT"
] | null | null | null | src/Modules/Communication/bluetooth.py | bopopescu/PyHouse_1 | 6444ed0b4c38ab59b9e419e4d54d65d598e6a54e | [
"MIT"
] | 1 | 2020-07-23T11:13:36.000Z | 2020-07-23T11:13:36.000Z | """
-*- test-case-name: PyHouse.src.Modules.communication.test.test_bluetooth -*-
@name: PyHouse/src/Modules/communication/bluteooth.py
@author: D. Brian Kimmel
@contact: D.BrianKimmel@gmail.com
@copyright: (c) 2013-2016 by D. Brian Kimmel
@note: Created on Nov 18, 2013
@license: MIT License
@summary:... | 23.375 | 80 | 0.675936 |
d56e2f18944e986ee97c42e87f550658e1b8ea3b | 1,438 | py | Python | Demo2_PageObjectModel/features/steps/PageObject_Admin.py | imademethink/imademethink_python_selenium_demo | cc364bda00e75eb9115c680ddea5e2fbca1d7acb | [
"BSD-4-Clause"
] | 2 | 2019-04-05T05:09:14.000Z | 2020-07-21T16:06:53.000Z | Demo2_PageObjectModel/features/steps/PageObject_Admin.py | imademethink/Python_Selenium_Demo | cc364bda00e75eb9115c680ddea5e2fbca1d7acb | [
"BSD-4-Clause"
] | 1 | 2020-01-08T08:15:42.000Z | 2020-01-08T08:15:42.000Z | Demo2_PageObjectModel/features/steps/PageObject_Admin.py | imademethink/Python_Selenium_Demo | cc364bda00e75eb9115c680ddea5e2fbca1d7acb | [
"BSD-4-Clause"
] | 4 | 2018-04-13T08:28:53.000Z | 2018-12-30T20:35:19.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
import time
from page_objects import PageObject, PageElement
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions
from selenium.webdriver.common.by import By
delay_mi... | 39.944444 | 120 | 0.769819 |
d57009adc53facb72827aa979d3b948b07800f00 | 9,629 | py | Python | theano/groundhog/models/LM_model.py | haxzie/deepAPI | 12c11a40074a0a2893102f42859c9e01dc28df37 | [
"MIT"
] | 46 | 2018-09-14T10:33:28.000Z | 2022-03-31T14:06:56.000Z | theano/groundhog/models/LM_model.py | haxzie/deepAPI | 12c11a40074a0a2893102f42859c9e01dc28df37 | [
"MIT"
] | 8 | 2018-10-29T20:10:18.000Z | 2022-03-29T06:04:08.000Z | theano/groundhog/models/LM_model.py | haxzie/deepAPI | 12c11a40074a0a2893102f42859c9e01dc28df37 | [
"MIT"
] | 16 | 2018-11-07T08:20:35.000Z | 2022-02-06T18:19:03.000Z | """
Implementation of a language model class.
TODO: write more documentation
"""
__docformat__ = 'restructedtext en'
__authors__ = ("Razvan Pascanu "
"KyungHyun Cho "
"Caglar Gulcehre ")
__contact__ = "Razvan Pascanu <r.pascanu@gmail>"
import numpy
import itertools
import logging
impo... | 40.120833 | 99 | 0.555094 |
d57370505dd6c699ee24135375eff7199d64f441 | 1,058 | py | Python | metricsML/MetricsML.py | Elscha/MetricsML | 2ecbc42ad7bd2465f4f75658f44452ea5c552c3b | [
"Apache-2.0"
] | null | null | null | metricsML/MetricsML.py | Elscha/MetricsML | 2ecbc42ad7bd2465f4f75658f44452ea5c552c3b | [
"Apache-2.0"
] | null | null | null | metricsML/MetricsML.py | Elscha/MetricsML | 2ecbc42ad7bd2465f4f75658f44452ea5c552c3b | [
"Apache-2.0"
] | null | null | null | '''
Created on 03.12.2018
@author: el-sharkawy
'''
from metricsML import DataConvertor
from metricsML import MachineLearning
from metricsML import Normalizator
import numpy as np
### File Operations ###
### Machine learning ###
# binaryClassification=MachineLearning.binaryClassification | 37.785714 | 142 | 0.793951 |
d573e4185d520f3b0945c93a25dc8a1b391318cd | 51 | py | Python | unsplash_get/__init__.py | streanger/unsplash_get | 9de91c973fb9c449db9795fdd83cae7843f6f1e8 | [
"MIT"
] | 3 | 2020-07-23T11:33:31.000Z | 2020-08-31T23:06:56.000Z | unsplash_get/__init__.py | streanger/unsplash_get | 9de91c973fb9c449db9795fdd83cae7843f6f1e8 | [
"MIT"
] | null | null | null | unsplash_get/__init__.py | streanger/unsplash_get | 9de91c973fb9c449db9795fdd83cae7843f6f1e8 | [
"MIT"
] | null | null | null | from .unsplash_get import save_img, search, example | 51 | 51 | 0.843137 |
d5749c06941decb603c446b4a6e5e526c6140f9d | 2,099 | py | Python | sqlib.py | OwnerHunter/round2bot | 634bf2592216903c12636becdd91141d4b0588f7 | [
"MIT"
] | null | null | null | sqlib.py | OwnerHunter/round2bot | 634bf2592216903c12636becdd91141d4b0588f7 | [
"MIT"
] | null | null | null | sqlib.py | OwnerHunter/round2bot | 634bf2592216903c12636becdd91141d4b0588f7 | [
"MIT"
] | null | null | null | import sqlite3
tickets = Table('tickets', ('id', 'author', 'server', 'info', 'added', 'closed'))
servers = Table('servers', ('id', 'prefix', 'channel', 'role'))
| 30.42029 | 102 | 0.519771 |
d57570a3a363af59763a311ae6f93a074dbbc0af | 454 | py | Python | HRserver/app.py | Tinformant/HalliganReviews | adf15793c4cb963aa53e0b20ce3790e1f45ed1da | [
"MIT"
] | 3 | 2020-06-09T21:31:54.000Z | 2020-06-10T02:13:37.000Z | HRserver/app.py | Jarvis7923/HalliganReviews | adf15793c4cb963aa53e0b20ce3790e1f45ed1da | [
"MIT"
] | 5 | 2020-06-09T22:43:14.000Z | 2022-02-27T10:10:30.000Z | HRserver/app.py | Jarvis7923/HalliganReviews | adf15793c4cb963aa53e0b20ce3790e1f45ed1da | [
"MIT"
] | 3 | 2020-06-03T02:00:07.000Z | 2021-04-13T15:44:46.000Z | from flask import Flask
from flask_restful import Api
from resources.searchRes import searchRes
from resources.reviewRes import reviewRes
from resources.detailRes import detailRes
from resources.manage import manageRes
app = Flask(__name__)
api = Api(app)
api.add_resource(searchRes, '/courses/<name>')
api.add_resour... | 26.705882 | 46 | 0.801762 |
d5766034b6755a99fc3c93ef4f55c3a9891d426c | 2,259 | py | Python | tests/test_client.py | bluethon/flasky-learn | db2e966e9b32fa7c0d34472a24c048cc27a0ff39 | [
"MIT"
] | 1 | 2017-10-22T02:36:18.000Z | 2017-10-22T02:36:18.000Z | tests/test_client.py | bluethon/flasky-learn | db2e966e9b32fa7c0d34472a24c048cc27a0ff39 | [
"MIT"
] | null | null | null | tests/test_client.py | bluethon/flasky-learn | db2e966e9b32fa7c0d34472a24c048cc27a0ff39 | [
"MIT"
] | 2 | 2017-10-26T08:18:57.000Z | 2018-09-04T02:17:38.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Date : 2016-07-14 15:27
# @Author : Bluethon (j5088794@gmail.com)
# @Link : http://github.com/bluethon
import re
import unittest
from flask import url_for
from app import create_app, db
from app.models import User, Role
| 32.73913 | 81 | 0.611775 |
d578d5f1779229089045f31733bae711e4fd76ce | 867 | py | Python | vagrancy/__init__.py | seeraven/vagrancyCtrl | 1908ab913dd896a45cc0582ebf356eba071fb2ab | [
"BSD-3-Clause-Clear"
] | null | null | null | vagrancy/__init__.py | seeraven/vagrancyCtrl | 1908ab913dd896a45cc0582ebf356eba071fb2ab | [
"BSD-3-Clause-Clear"
] | null | null | null | vagrancy/__init__.py | seeraven/vagrancyCtrl | 1908ab913dd896a45cc0582ebf356eba071fb2ab | [
"BSD-3-Clause-Clear"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Module for accessing a vagrancy instance.
Vagrancy stores the boxes for different versions and different providers in the
following way:
- Each box has a unique name consisting of ``<username>/<name>``.
- Each box has one or more versions. The version can be anything like a
semanti... | 36.125 | 85 | 0.707036 |
d579c5b3c6c69430ad1dba477769dc68edc6b543 | 3,114 | py | Python | plagiarismdetector/tokenizer.py | singhay/plagiarism-detector | fca69af56974bb1ff6e62cfa81eea521df659b61 | [
"MIT"
] | null | null | null | plagiarismdetector/tokenizer.py | singhay/plagiarism-detector | fca69af56974bb1ff6e62cfa81eea521df659b61 | [
"MIT"
] | 1 | 2018-02-27T02:34:26.000Z | 2018-02-27T02:34:26.000Z | plagiarismdetector/tokenizer.py | singhay/plagiarism-detector | fca69af56974bb1ff6e62cfa81eea521df659b61 | [
"MIT"
] | null | null | null | import re
| 35.793103 | 97 | 0.477521 |
d57c7e00fb1f3b54590c0aed7560a46aa3cf7ab3 | 628 | py | Python | test_project/rename_forward/urls.py | epoiate/django-autocomplete-light | 6cefd5ea73d1ef2c1c800cd1fdcf6cc6fbe27886 | [
"MIT"
] | 1,368 | 2015-01-03T09:52:33.000Z | 2022-03-27T09:06:00.000Z | test_project/rename_forward/urls.py | epoiate/django-autocomplete-light | 6cefd5ea73d1ef2c1c800cd1fdcf6cc6fbe27886 | [
"MIT"
] | 919 | 2015-01-01T05:17:48.000Z | 2022-03-25T22:41:14.000Z | test_project/rename_forward/urls.py | epoiate/django-autocomplete-light | 6cefd5ea73d1ef2c1c800cd1fdcf6cc6fbe27886 | [
"MIT"
] | 469 | 2015-01-19T21:40:30.000Z | 2022-03-26T17:27:40.000Z | from dal import autocomplete
from django.conf.urls import url
from .models import TModel
urlpatterns = [
url(
'^linked_data/$',
LinkedDataView.as_view(model=TModel),
name='linked_data_rf'
),
]
| 20.258065 | 57 | 0.632166 |
d57d8c0b27441b3e6a130ef67c3109a4e8ff4d0b | 1,319 | py | Python | script/data_annotation/annotate_cluster.py | carushi/Catactor | 27d35261249daf695659f2f329aa470922f60922 | [
"MIT"
] | null | null | null | script/data_annotation/annotate_cluster.py | carushi/Catactor | 27d35261249daf695659f2f329aa470922f60922 | [
"MIT"
] | null | null | null | script/data_annotation/annotate_cluster.py | carushi/Catactor | 27d35261249daf695659f2f329aa470922f60922 | [
"MIT"
] | null | null | null | import os
import pandas as pd
import sys
gse_number = sys.argv[1]
for dirpath, dnames, fnames in os.walk("./"+gse_number+'/'):
all = None
for fname in fnames:
tail = 'celltype_annotation'
if tail in fname:
continue
if 'cell_ng' in fname and 'meta' in fname:
df = ... | 43.966667 | 139 | 0.595148 |
d57e3da3875c01e0d6644b979fd57f301a325ded | 3,137 | py | Python | pentestly-master/modules/pentestly/login.py | Marzooq13579/Hack-Gadgets | 4b9351c4465f3e01fb0390b1e86dfe7c26237a19 | [
"MIT"
] | 8 | 2019-02-17T20:11:46.000Z | 2019-10-18T06:27:16.000Z | pentestly-master/modules/pentestly/login.py | Marzooq13579/Hack-Gadgets | 4b9351c4465f3e01fb0390b1e86dfe7c26237a19 | [
"MIT"
] | null | null | null | pentestly-master/modules/pentestly/login.py | Marzooq13579/Hack-Gadgets | 4b9351c4465f3e01fb0390b1e86dfe7c26237a19 | [
"MIT"
] | 4 | 2019-02-17T23:00:18.000Z | 2019-10-18T06:27:14.000Z | from __future__ import print_function
import sys
import os
from libs.pentestlymodule import PentestlyModule
| 39.708861 | 125 | 0.555308 |
d57ffd90b51e46dfbf8af28cb4ecc6af09fd1c10 | 194 | py | Python | Python/11.container-with-most-water.py | Mo-Shakib/LeetCode | a3f1cfda648d9abf504e9d79697f1ca433c48460 | [
"Apache-2.0"
] | 1 | 2022-01-10T01:10:03.000Z | 2022-01-10T01:10:03.000Z | Python/11.container-with-most-water.py | Mo-Shakib/LeetCode | a3f1cfda648d9abf504e9d79697f1ca433c48460 | [
"Apache-2.0"
] | 3 | 2022-01-10T18:24:21.000Z | 2022-01-10T22:38:38.000Z | Python/11.container-with-most-water.py | Mo-Shakib/LeetCode | a3f1cfda648d9abf504e9d79697f1ca433c48460 | [
"Apache-2.0"
] | 2 | 2022-01-10T05:06:22.000Z | 2022-01-14T06:20:09.000Z | #
# @lc app=leetcode id=11 lang=python3
#
# [11] Container With Most Water
#
# @lc code=start
# @lc code=end
| 13.857143 | 48 | 0.592784 |
d581a27c402119743d0fd709f001a408b09eda63 | 1,092 | py | Python | blink_dl.py | CodeYouMust/blink_cam_vision | de5838e35d15a4ba3d4cd38b633e3f35decbafc5 | [
"BSD-3-Clause"
] | 1 | 2019-09-07T21:31:03.000Z | 2019-09-07T21:31:03.000Z | blink_dl.py | CodeYouMust/blink_cam_vision | de5838e35d15a4ba3d4cd38b633e3f35decbafc5 | [
"BSD-3-Clause"
] | null | null | null | blink_dl.py | CodeYouMust/blink_cam_vision | de5838e35d15a4ba3d4cd38b633e3f35decbafc5 | [
"BSD-3-Clause"
] | null | null | null | from fire import Fire
from cameras.blink_api import BlinkApi
import time
from util.polite_access import PoliteAccess
POLITE_DL_WAIT_SECONDS = 60 * 1.5
polite = PoliteAccess('blink-api-access')
def polite_dl_blink_videos(user, pwd, fldr, skip_if_frequent=True):
'''
Prevent frequent access to blink. Helpful i... | 25.395349 | 78 | 0.690476 |
d581c7865172c3d3afbc5893affb2782540a00a3 | 5,177 | py | Python | pymapadmin/grpc/admin_grpc.py | icgood/pymap-admin | 6cde908af84f52d4cd591a80503a19f784e47a35 | [
"MIT"
] | 2 | 2021-11-17T22:28:46.000Z | 2021-11-18T14:47:07.000Z | pymapadmin/grpc/admin_grpc.py | icgood/pymap-admin | 6cde908af84f52d4cd591a80503a19f784e47a35 | [
"MIT"
] | null | null | null | pymapadmin/grpc/admin_grpc.py | icgood/pymap-admin | 6cde908af84f52d4cd591a80503a19f784e47a35 | [
"MIT"
] | null | null | null | # Generated by the Protocol Buffers compiler. DO NOT EDIT!
# source: pymapadmin/grpc/admin.proto
# plugin: grpclib.plugin.main
import abc
import typing
import grpclib.const
import grpclib.client
if typing.TYPE_CHECKING:
import grpclib.server
import pymapadmin.grpc.admin_pb2
class SystemStub:
class UserStu... | 35.703448 | 157 | 0.639946 |
d583ddd9da1e8a66b1c4175158f5b3a31784216e | 622 | py | Python | component/logging_.py | laashub-sua/businesser | 5c50daa561fe35c74d1ce1a2ba0e645f769a165c | [
"Apache-2.0"
] | 1 | 2020-12-17T10:56:44.000Z | 2020-12-17T10:56:44.000Z | component/logging_.py | laashub-sua/businesser | 5c50daa561fe35c74d1ce1a2ba0e645f769a165c | [
"Apache-2.0"
] | 1 | 2020-12-30T05:53:34.000Z | 2020-12-30T05:53:34.000Z | component/logging_.py | laashub-sua/businesser | 5c50daa561fe35c74d1ce1a2ba0e645f769a165c | [
"Apache-2.0"
] | null | null | null | import logging
import os
from logging.handlers import TimedRotatingFileHandler
logging.basicConfig(
level=logging.INFO
)
| 23.923077 | 90 | 0.672026 |
d58403c1fa4c0290dcdfef391ce8c75ae48bc48f | 944 | py | Python | backend/user/filters.py | sonpham08/dj_angular | 17881978726969c31c61febc51f4b8a552323873 | [
"MIT"
] | null | null | null | backend/user/filters.py | sonpham08/dj_angular | 17881978726969c31c61febc51f4b8a552323873 | [
"MIT"
] | 9 | 2020-06-05T21:28:57.000Z | 2022-02-12T12:30:39.000Z | backend/user/filters.py | sonpham08/dj_angular | 17881978726969c31c61febc51f4b8a552323873 | [
"MIT"
] | null | null | null | import django_filters
from .models import User
import coreapi
import coreschema
from django_filters.rest_framework import DjangoFilterBackend
| 28.606061 | 70 | 0.608051 |
d5845720b89f922c6865488be9b0fe6954b474be | 1,089 | py | Python | ejemplos/7 hola mundo con imagenes/hola.py | gentooza/taller-licenciado-software | 421ab6d23a945ef71b5a31c9d0a1c47b75a3ebac | [
"CC-BY-3.0"
] | null | null | null | ejemplos/7 hola mundo con imagenes/hola.py | gentooza/taller-licenciado-software | 421ab6d23a945ef71b5a31c9d0a1c47b75a3ebac | [
"CC-BY-3.0"
] | null | null | null | ejemplos/7 hola mundo con imagenes/hola.py | gentooza/taller-licenciado-software | 421ab6d23a945ef71b5a31c9d0a1c47b75a3ebac | [
"CC-BY-3.0"
] | null | null | null | #!/bin/python3
'''
Copyright 2022 Joaqun Cullar.
This file is part of Hola Mundo Especial.
Hola Mundo Especial 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,
either version 3 of the Li... | 33 | 102 | 0.724518 |
d5846b72013188d68b2e5949bd8de4747ea8754d | 1,824 | py | Python | plugins/holland.lib.lvm/tests/xfs/test_snapshot.py | a5a351e7/holland | 58a12a5ce10206eed9434ab42b02217de29784bb | [
"BSD-3-Clause"
] | 1 | 2019-06-06T01:07:34.000Z | 2019-06-06T01:07:34.000Z | plugins/holland.lib.lvm/tests/xfs/test_snapshot.py | a5a351e7/holland | 58a12a5ce10206eed9434ab42b02217de29784bb | [
"BSD-3-Clause"
] | null | null | null | plugins/holland.lib.lvm/tests/xfs/test_snapshot.py | a5a351e7/holland | 58a12a5ce10206eed9434ab42b02217de29784bb | [
"BSD-3-Clause"
] | 2 | 2015-12-04T12:17:59.000Z | 2022-03-23T07:22:02.000Z | import shutil
from nose.tools import *
from holland.lib.lvm import LogicalVolume
from holland.lib.lvm.snapshot import *
from tests.constants import *
| 34.415094 | 98 | 0.616776 |
d585e6b9ba2ab30b151e86f51487d51f7096feb6 | 4,094 | py | Python | src/lecture10/output.py | wakky927/Computational-Engineering-B | 3720d96668a32dc73f38ed0bc8afe4705452de9e | [
"MIT"
] | 1 | 2021-05-03T09:11:35.000Z | 2021-05-03T09:11:35.000Z | src/lecture10/output.py | wakky927/Computational-Engineering-B | 3720d96668a32dc73f38ed0bc8afe4705452de9e | [
"MIT"
] | null | null | null | src/lecture10/output.py | wakky927/Computational-Engineering-B | 3720d96668a32dc73f38ed0bc8afe4705452de9e | [
"MIT"
] | null | null | null | import os
import numpy as np
| 28.430556 | 79 | 0.445774 |
d586e0b9a83c43e39d9998f70d6cc8f9eb25632d | 1,655 | py | Python | mmaction/core/utils/dist_utils.py | sovrasov/mmaction2 | 055625bf6d6e06e9f811cc4f8b0332c18cebc98c | [
"Apache-2.0"
] | null | null | null | mmaction/core/utils/dist_utils.py | sovrasov/mmaction2 | 055625bf6d6e06e9f811cc4f8b0332c18cebc98c | [
"Apache-2.0"
] | null | null | null | mmaction/core/utils/dist_utils.py | sovrasov/mmaction2 | 055625bf6d6e06e9f811cc4f8b0332c18cebc98c | [
"Apache-2.0"
] | null | null | null | from collections import OrderedDict
import torch.distributed as dist
from torch._utils import _flatten_dense_tensors, _unflatten_dense_tensors, _take_tensors
from mmcv.runner import OptimizerHook
| 34.479167 | 96 | 0.693656 |
d586f302acc1562c0c4ae689fc7c91008984ede8 | 469 | py | Python | app/assets.py | tobymccann/flask-base | 3a93a9171b07d97036d144df7c45397735789431 | [
"MIT"
] | null | null | null | app/assets.py | tobymccann/flask-base | 3a93a9171b07d97036d144df7c45397735789431 | [
"MIT"
] | null | null | null | app/assets.py | tobymccann/flask-base | 3a93a9171b07d97036d144df7c45397735789431 | [
"MIT"
] | null | null | null | from flask_assets import Bundle
app_css = Bundle('app.scss', filters='scss', output='css/app.css')
app_js = Bundle('app.js', filters='jsmin', output='js/app.js')
vendor_css = Bundle('vendor/semantic.css', 'vendor/components/*.css', output='css/vendor.css')
vendor_js = Bundle('vendor/jquery-3.1.1.min.js', 'vendor/se... | 42.636364 | 108 | 0.684435 |
d5874bed0cd3c033a4979987b99271b1f947ea02 | 375 | py | Python | ea_server/model/ea_function_model.py | tamirho/evo-delivery | 02bc62401d63f5321fa4bc1ee9a83409f9948c97 | [
"MIT"
] | null | null | null | ea_server/model/ea_function_model.py | tamirho/evo-delivery | 02bc62401d63f5321fa4bc1ee9a83409f9948c97 | [
"MIT"
] | 15 | 2022-01-27T09:58:59.000Z | 2022-03-29T17:19:18.000Z | ea_server/model/ea_function_model.py | tamirho/evo-delivery | 02bc62401d63f5321fa4bc1ee9a83409f9948c97 | [
"MIT"
] | 1 | 2021-12-26T11:38:50.000Z | 2021-12-26T11:38:50.000Z | from dataclasses import dataclass
from typing import Callable, List
# class representation of possible kwarg of a Deap function
# class representation of possible EA functions to choose
| 19.736842 | 59 | 0.762667 |
d58793b80ef5f72c4f7f559049461feeea80ac8d | 107 | py | Python | tutorials/prompt/placeholder.py | chouette254/quo | 8979afd118e77d3d0f93f9fbe8711efada7158c5 | [
"MIT"
] | 5 | 2021-06-17T21:06:39.000Z | 2022-03-11T06:45:51.000Z | tutorials/prompt/placeholder.py | chouette254/quo | 8979afd118e77d3d0f93f9fbe8711efada7158c5 | [
"MIT"
] | 39 | 2021-07-19T19:36:18.000Z | 2022-02-23T14:55:08.000Z | tutorials/prompt/placeholder.py | secretuminc/quo | c4f77d52f015c612d32ed0fc2fc79545af598f10 | [
"MIT"
] | 1 | 2021-05-31T17:19:15.000Z | 2021-05-31T17:19:15.000Z | import quo
from quo.widget.placeholder import *
s = quo.Elicit()
s.elicit("You said :", placeholder=grey)
| 17.833333 | 40 | 0.728972 |
d587af9d25e5c593cce6ae428161bb61a3dfe55f | 735 | py | Python | scripts/uwds3_core_node.py | underworlds-robot/uwds3_core | 3aec39f83ec5ba2c0b70485aa23bf6eeaedeeda7 | [
"MIT"
] | 1 | 2021-06-08T02:55:15.000Z | 2021-06-08T02:55:15.000Z | scripts/uwds3_core_node.py | underworlds-robot/uwds3_core | 3aec39f83ec5ba2c0b70485aa23bf6eeaedeeda7 | [
"MIT"
] | null | null | null | scripts/uwds3_core_node.py | underworlds-robot/uwds3_core | 3aec39f83ec5ba2c0b70485aa23bf6eeaedeeda7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
import rospy
import tf2_ros
from tf2_ros import Buffer, TransformListener
import numpy as np
from sensor_msgs.msg import CameraInfo, Image, JointState
from uwds3_msgs.msg import SceneChangesStamped
from uwds3_core.underworlds_core import UnderworldsCore
import message_filt... | 26.25 | 57 | 0.721088 |
d58809adbdbf2a2fc2b413121b0fd593f92bae53 | 518 | py | Python | pavo_cristatus/symbol_signature_replacer/__init__.py | MATTHEWFRAZER/pavo_cristatus | a4b96c0eb6c454fbe38d2092e29f63457a4ee955 | [
"MIT"
] | null | null | null | pavo_cristatus/symbol_signature_replacer/__init__.py | MATTHEWFRAZER/pavo_cristatus | a4b96c0eb6c454fbe38d2092e29f63457a4ee955 | [
"MIT"
] | null | null | null | pavo_cristatus/symbol_signature_replacer/__init__.py | MATTHEWFRAZER/pavo_cristatus | a4b96c0eb6c454fbe38d2092e29f63457a4ee955 | [
"MIT"
] | null | null | null | from pavo_cristatus.dependency_injection.ploceidae_configurator import pavo_cristatus_dependency_wrapper
from picidae import lazily_echo, access_attribute
from pavo_cristatus.symbol_signature_replacer import symbol_signature_replacer
dependency_module_name = "symbol_signature_replacer"
__all__ = [dependency_module_n... | 39.846154 | 116 | 0.839768 |
d589965f796bd5e6baad650eddf2a9493846b256 | 3,438 | py | Python | scripts/getPrototypeInfo.py | voxie-viewer/voxie | d2b5e6760519782e9ef2e51f5322a3baa0cb1198 | [
"MIT"
] | 4 | 2016-06-03T18:41:43.000Z | 2020-04-17T20:28:58.000Z | scripts/getPrototypeInfo.py | voxie-viewer/voxie | d2b5e6760519782e9ef2e51f5322a3baa0cb1198 | [
"MIT"
] | null | null | null | scripts/getPrototypeInfo.py | voxie-viewer/voxie | d2b5e6760519782e9ef2e51f5322a3baa0cb1198 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
#
# Copyright (c) 2014-2022 The Voxie Authors
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy,... | 36.967742 | 100 | 0.689645 |
d589a037968bcf740aed2dcef5dbc252418fcbd4 | 1,782 | py | Python | apollo/components/event/models.py | Aukbit/apollo | 0afd1360f5a102335c55afaf138e0ecb96644128 | [
"MIT"
] | null | null | null | apollo/components/event/models.py | Aukbit/apollo | 0afd1360f5a102335c55afaf138e0ecb96644128 | [
"MIT"
] | null | null | null | apollo/components/event/models.py | Aukbit/apollo | 0afd1360f5a102335c55afaf138e0ecb96644128 | [
"MIT"
] | null | null | null | import uuid
from datetime import datetime
import time
import simplejson as json
from blinker import signal
from cassandra.cqlengine import columns, ValidationError
from cassandra.cqlengine.models import Model
from .general import ACTIONS_MAP
| 26.597015 | 88 | 0.662177 |
d58a3c01fcf5f3a56967acb56a0aa33122e205fa | 78 | py | Python | nordestao/tests/fixtures.py | intelivix/pyne-workshop-scraping-web | c0696b669934eef2dbda81da3b7c058810041fa5 | [
"MIT"
] | null | null | null | nordestao/tests/fixtures.py | intelivix/pyne-workshop-scraping-web | c0696b669934eef2dbda81da3b7c058810041fa5 | [
"MIT"
] | null | null | null | nordestao/tests/fixtures.py | intelivix/pyne-workshop-scraping-web | c0696b669934eef2dbda81da3b7c058810041fa5 | [
"MIT"
] | null | null | null |
import pytest
| 9.75 | 22 | 0.717949 |
d58bfd0e20ee60c02c3420764a7d8d41f3f95eee | 387 | py | Python | 2-4.bool_opr.py | iwhgao/python_practise | b85e5ffd8703faa04c5f1bd03c09ea4522e238f2 | [
"Apache-2.0"
] | 1 | 2017-08-30T09:06:41.000Z | 2017-08-30T09:06:41.000Z | 2-4.bool_opr.py | iwhgao/python_practise | b85e5ffd8703faa04c5f1bd03c09ea4522e238f2 | [
"Apache-2.0"
] | null | null | null | 2-4.bool_opr.py | iwhgao/python_practise | b85e5ffd8703faa04c5f1bd03c09ea4522e238f2 | [
"Apache-2.0"
] | 1 | 2018-10-08T06:13:51.000Z | 2018-10-08T06:13:51.000Z | #!/usr/bin/python
# -*- coding:utf-8 -*-
# ---------------------------
# Author: deangao
# Copyright: 2016 deangao
# Version: v1.0.0
# Created: 2016/2/15
# ---------------------------
__author__ = 'deangao'
'''
-
'''
# ---bool---
bool1 = True
bool2 = (2 > 3)
print bool1, bool2
# ------
# ------
print bool1 and bo... | 13.821429 | 29 | 0.5323 |
d58d09288e8a693fa23a5cc7bf11d95086946be2 | 11,038 | py | Python | src/sos/substep_executor.py | pgcudahy/sos | ee902841003c7630db501101038f370650955ef9 | [
"BSD-3-Clause"
] | null | null | null | src/sos/substep_executor.py | pgcudahy/sos | ee902841003c7630db501101038f370650955ef9 | [
"BSD-3-Clause"
] | null | null | null | src/sos/substep_executor.py | pgcudahy/sos | ee902841003c7630db501101038f370650955ef9 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
#
# Copyright (c) Bo Peng and the University of Texas MD Anderson Cancer Center
# Distributed under the terms of the 3-clause BSD License.
import contextlib
import subprocess
import sys
import os
from io import StringIO
import zmq
from .controller import close_socket, create_socket, send_messa... | 35.152866 | 90 | 0.590959 |
d58d12ad60defa24864c4dcc70d63506876a50bc | 830 | py | Python | pytorch-frontend/caffe2/python/test/fakefp16_transform_test.py | AndreasKaratzas/stonne | 2915fcc46cc94196303d81abbd1d79a56d6dd4a9 | [
"MIT"
] | 40 | 2021-06-01T07:37:59.000Z | 2022-03-25T01:42:09.000Z | pytorch-frontend/caffe2/python/test/fakefp16_transform_test.py | AndreasKaratzas/stonne | 2915fcc46cc94196303d81abbd1d79a56d6dd4a9 | [
"MIT"
] | 14 | 2021-06-01T11:52:46.000Z | 2022-03-25T02:13:08.000Z | pytorch-frontend/caffe2/python/test/fakefp16_transform_test.py | AndreasKaratzas/stonne | 2915fcc46cc94196303d81abbd1d79a56d6dd4a9 | [
"MIT"
] | 7 | 2021-07-20T19:34:26.000Z | 2022-03-13T21:07:36.000Z | from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import unittest
from caffe2.python.fakefp16_transform_lib import fakeFp16FuseOps
from caffe2.python import core
| 33.2 | 71 | 0.654217 |
d58e3dacf06c22cbf3e53b3c6fce879593ab1ce8 | 12,546 | py | Python | bert_ptrnet_coqa.py | yumere/for-QuAC | af1594a0856e20a526e3c3f383b1f8fbfdf7ddd3 | [
"MIT"
] | 2 | 2019-07-30T15:38:24.000Z | 2019-08-08T15:49:13.000Z | bert_ptrnet_coqa.py | yumere/for-QuAC | af1594a0856e20a526e3c3f383b1f8fbfdf7ddd3 | [
"MIT"
] | null | null | null | bert_ptrnet_coqa.py | yumere/for-QuAC | af1594a0856e20a526e3c3f383b1f8fbfdf7ddd3 | [
"MIT"
] | null | null | null | from __future__ import absolute_import, division, print_function
import argparse
import logging
import os
import math
import numpy as np
import torch
from pytorch_transformers import AdamW, WarmupLinearSchedule
from pytorch_transformers import BertTokenizer
from pytorch_transformers.modeling_bert import BertPreTraine... | 45.129496 | 155 | 0.640682 |
d58e44cff21b274169bf4e894702c779f915b4ea | 2,192 | py | Python | sdk/containerregistry/azure-containerregistry/samples/sample_repository_actions.py | romahamu/azure-sdk-for-python | a57c9f73b9121f79d317e1679b81fd460d6a25b8 | [
"MIT"
] | 1 | 2021-04-05T17:38:42.000Z | 2021-04-05T17:38:42.000Z | sdk/containerregistry/azure-containerregistry/samples/sample_repository_actions.py | romahamu/azure-sdk-for-python | a57c9f73b9121f79d317e1679b81fd460d6a25b8 | [
"MIT"
] | null | null | null | sdk/containerregistry/azure-containerregistry/samples/sample_repository_actions.py | romahamu/azure-sdk-for-python | a57c9f73b9121f79d317e1679b81fd460d6a25b8 | [
"MIT"
] | 1 | 2021-12-18T20:01:22.000Z | 2021-12-18T20:01:22.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 35.934426 | 94 | 0.662865 |
d58f37dc64174329c72118114782bf793424350d | 15,588 | py | Python | python/ray/rllib/ddpg/models.py | songqing/ray | 166000b089ee15d44635ebca00f12320f51ce587 | [
"Apache-2.0"
] | 1 | 2018-06-25T08:00:51.000Z | 2018-06-25T08:00:51.000Z | python/ray/rllib/ddpg/models.py | songqing/ray | 166000b089ee15d44635ebca00f12320f51ce587 | [
"Apache-2.0"
] | 1 | 2018-01-26T05:11:04.000Z | 2018-01-26T05:11:04.000Z | python/ray/rllib/ddpg/models.py | songqing/ray | 166000b089ee15d44635ebca00f12320f51ce587 | [
"Apache-2.0"
] | 1 | 2020-10-16T08:42:32.000Z | 2020-10-16T08:42:32.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import tensorflow as tf
import tensorflow.contrib.layers as layers
from ray.rllib.models import ModelCatalog
def _build_p_network(registry, inputs, dim_actions, config):
"""
map a... | 39.765306 | 79 | 0.608417 |
d590209692c1d7210deccd9547439bea4bd197cf | 51,866 | py | Python | MindSPONGE/mindsponge/md/simulation.py | mindspore-ai/mindscience | b5269245915695de2d99fb290fef662c241db189 | [
"Apache-2.0"
] | 3 | 2021-11-10T06:17:50.000Z | 2022-03-21T14:25:30.000Z | MindSPONGE/mindsponge/md/simulation.py | mindspore-ai/mindscience | b5269245915695de2d99fb290fef662c241db189 | [
"Apache-2.0"
] | null | null | null | MindSPONGE/mindsponge/md/simulation.py | mindspore-ai/mindscience | b5269245915695de2d99fb290fef662c241db189 | [
"Apache-2.0"
] | 1 | 2021-12-05T11:41:29.000Z | 2021-12-05T11:41:29.000Z | # Copyright 2021 Huawei Technologies Co., Ltd
#
# 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... | 62.71584 | 120 | 0.578433 |
d593ab3607b07be083ccac7468de89c6a5f553aa | 346 | py | Python | download_wmt16_en_de_data.py | kgarg8/NMT-RNN | 3c97f94dc244e7fbe188204793651ade36f4dced | [
"MIT"
] | 1 | 2021-10-01T15:03:35.000Z | 2021-10-01T15:03:35.000Z | download_wmt16_en_de_data.py | kgarg8/NMT-RNN | 3c97f94dc244e7fbe188204793651ade36f4dced | [
"MIT"
] | null | null | null | download_wmt16_en_de_data.py | kgarg8/NMT-RNN | 3c97f94dc244e7fbe188204793651ade36f4dced | [
"MIT"
] | null | null | null | from datasets import load_dataset
dataset = load_dataset('wmt16', 'de-en')
base = 'data/wmt16_en_de/'
with open(base + 'test.en','w') as en:
for data in dataset['test']['translation']:
en.write(data['en']+'\n')
with open(base + 'test.de','w') as de:
for data in dataset['test']['translation']:
... | 28.833333 | 47 | 0.615607 |
d594e3e8fe7c45b6ff37f0de5953a37cae49e1bc | 1,771 | py | Python | WordVectorFetcher.py | whosxavierwu/Chinese-Word-Vectors | 7841eb6a4ec235662828b3cb13f45956c28f2a3c | [
"Apache-2.0"
] | null | null | null | WordVectorFetcher.py | whosxavierwu/Chinese-Word-Vectors | 7841eb6a4ec235662828b3cb13f45956c28f2a3c | [
"Apache-2.0"
] | null | null | null | WordVectorFetcher.py | whosxavierwu/Chinese-Word-Vectors | 7841eb6a4ec235662828b3cb13f45956c28f2a3c | [
"Apache-2.0"
] | null | null | null | # -*- coding:utf-8 -*-
# Created by: wuzewei
# Created on: 2019/3/25 0025
from gensim.models import KeyedVectors
import numpy as np
from pyhanlp import HanLP
if __name__ == '__main__':
fn = 'SGNS/sgns.target.word-word.dynwin5.thr10.neg5.dim300.iter5/sgns.target.word-word.dynwin5.thr10.neg5.dim300.iter5'
fet... | 33.415094 | 126 | 0.667984 |
d59522b920665ba6dfb6d6975bb0f59df3dd2148 | 732 | py | Python | scipy/fftpack/helper.py | lesserwhirls/scipy-cwt | ee673656d879d9356892621e23ed0ced3d358621 | [
"BSD-3-Clause"
] | 8 | 2015-10-07T00:37:32.000Z | 2022-01-21T17:02:33.000Z | scipy/fftpack/helper.py | lesserwhirls/scipy-cwt | ee673656d879d9356892621e23ed0ced3d358621 | [
"BSD-3-Clause"
] | null | null | null | scipy/fftpack/helper.py | lesserwhirls/scipy-cwt | ee673656d879d9356892621e23ed0ced3d358621 | [
"BSD-3-Clause"
] | 8 | 2015-05-09T14:23:57.000Z | 2018-11-15T05:56:00.000Z | __all__ = ['fftshift', 'ifftshift', 'fftfreq', 'rfftfreq']
from numpy import array
from numpy.fft.helper import fftshift, ifftshift, fftfreq
def rfftfreq(n, d=1.0):
""" rfftfreq(n, d=1.0) -> f
DFT sample frequencies (for usage with rfft,irfft).
The returned float array contains the frequency bins in
... | 34.857143 | 86 | 0.61612 |
d595973d050f83ac64d0631fb100031b6ece759a | 158 | py | Python | micro_shop/staff/urls.py | SlavaSkvortsov/micro-shop | fd8ac23550da9be277a9234464fdab1213356f3d | [
"MIT"
] | 1 | 2021-06-17T15:11:03.000Z | 2021-06-17T15:11:03.000Z | micro_shop/staff/urls.py | SlavaSkvortsov/micro-shop | fd8ac23550da9be277a9234464fdab1213356f3d | [
"MIT"
] | 7 | 2020-06-30T11:25:28.000Z | 2021-06-09T18:51:55.000Z | micro_shop/staff/urls.py | SlavaSkvortsov/micro-shop | fd8ac23550da9be277a9234464fdab1213356f3d | [
"MIT"
] | 5 | 2020-10-02T20:01:43.000Z | 2021-06-21T08:57:29.000Z | from django.urls import path
from .views import UserProfileUpdate
urlpatterns = [
path('<int:pk>/', UserProfileUpdate.as_view(), name='profile_url')
]
| 17.555556 | 70 | 0.727848 |
d5984597e026da67fe45ea35e3d5d4f7f24dc819 | 1,083 | py | Python | common_functions.py | KirillYabl/Comics_publisher | 85df6020f24fc5984f28ce0f875485e4f421f3a2 | [
"MIT"
] | null | null | null | common_functions.py | KirillYabl/Comics_publisher | 85df6020f24fc5984f28ce0f875485e4f421f3a2 | [
"MIT"
] | null | null | null | common_functions.py | KirillYabl/Comics_publisher | 85df6020f24fc5984f28ce0f875485e4f421f3a2 | [
"MIT"
] | null | null | null | import requests
def load_image(url, path):
"""Load image by url to file.
Params
--------------------------------------------
:param url: str
Url with image.
:param path: str
Path, where image will be saved.
--------------------------------------------
"""
response = request... | 25.186047 | 69 | 0.597415 |
d599ecfbc81eccc7acb2cf1afb0c4d9b6fde3f7a | 736 | py | Python | input_output/gpio_input.py | rakibulmdalam/IOT-Hardware-Abstraction-Layer | 4d344a82aa94ae561a7c2889f942c6a892e6810e | [
"MIT"
] | 1 | 2018-06-12T15:40:45.000Z | 2018-06-12T15:40:45.000Z | input_output/gpio_input.py | UyumazHakan/Hardware-Abstraction-Platform | 52f13df333351516a88497e4a655ee1333abe7eb | [
"MIT"
] | null | null | null | input_output/gpio_input.py | UyumazHakan/Hardware-Abstraction-Platform | 52f13df333351516a88497e4a655ee1333abe7eb | [
"MIT"
] | null | null | null | from .gpio_input_output import *
from time import sleep
from threading import Timer, Thread
| 27.259259 | 86 | 0.736413 |
d59beefcb5d771dbc0b133551011f217f29ab97f | 964 | py | Python | os_scrapy_linkextractor/lx_extensions/regex.py | Ghamster0/scrapy-linkextractor | 11cd09c30e1a0d7f18474f240dc974488fb17c63 | [
"MIT"
] | 2 | 2020-07-20T03:54:01.000Z | 2020-07-29T12:00:59.000Z | os_scrapy_linkextractor/lx_extensions/regex.py | Ghamster0/os-scrapy-linkextractor | 11cd09c30e1a0d7f18474f240dc974488fb17c63 | [
"MIT"
] | 1 | 2020-07-21T03:14:02.000Z | 2020-07-21T03:14:02.000Z | os_scrapy_linkextractor/lx_extensions/regex.py | Ghamster0/os-scrapy-linkextractor | 11cd09c30e1a0d7f18474f240dc974488fb17c63 | [
"MIT"
] | 1 | 2020-07-21T01:17:56.000Z | 2020-07-21T01:17:56.000Z | from os_scrapy_linkextractor.linkextractors.regex import RegexLinkExtractor
from os_scrapy_linkextractor.lx_extensions import LinkExtractorExtension
| 34.428571 | 88 | 0.640041 |
d59cd017a36d985975d03a9f718909fa314e7e24 | 475 | py | Python | 01_binary_search.py | burakaslantas/Grokking-Algorithms | 2ecf73a683b11288d419cc1d8dc665ab2240e8bc | [
"MIT"
] | null | null | null | 01_binary_search.py | burakaslantas/Grokking-Algorithms | 2ecf73a683b11288d419cc1d8dc665ab2240e8bc | [
"MIT"
] | null | null | null | 01_binary_search.py | burakaslantas/Grokking-Algorithms | 2ecf73a683b11288d419cc1d8dc665ab2240e8bc | [
"MIT"
] | null | null | null |
my_array = [32,2,25,3,11,78,-2,32]
my_array.sort()
print(my_array)
print(binary_search(my_array, 78))
| 22.619048 | 41 | 0.555789 |
d59d2c94661a033f56d6a553671b7ccc14da900f | 1,210 | py | Python | variables.py | FoRavel/test-python | 8c4f01a7f1acd2c85893f7d53880a8c26ff62a24 | [
"Unlicense"
] | null | null | null | variables.py | FoRavel/test-python | 8c4f01a7f1acd2c85893f7d53880a8c26ff62a24 | [
"Unlicense"
] | null | null | null | variables.py | FoRavel/test-python | 8c4f01a7f1acd2c85893f7d53880a8c26ff62a24 | [
"Unlicense"
] | null | null | null |
#Exercice 4
t1=[100,28,31,1,31,30,31,31,30,31,30,31]
#a)Compter nombre lments non nuls
compteur = 0
for i in range(len(t1)):
if t1[i] != 0:
compteur = compteur + 1
print(compteur)
#b)Le plus grand lment
max = max(t1)
#c)La position p du plus petit lment
plusPetit = min(t1)
p = 0
for i in range(len(t1)): ... | 20.862069 | 83 | 0.642975 |
d5a0090aa43ff53c9b28a557356175161cf42d2f | 736 | py | Python | falseSubmission.py | suhailnajeeb/pneumothorax-lungnet | eb3cafcef74e3840a5b013727d6cb39d0062f7ee | [
"MIT"
] | null | null | null | falseSubmission.py | suhailnajeeb/pneumothorax-lungnet | eb3cafcef74e3840a5b013727d6cb39d0062f7ee | [
"MIT"
] | null | null | null | falseSubmission.py | suhailnajeeb/pneumothorax-lungnet | eb3cafcef74e3840a5b013727d6cb39d0062f7ee | [
"MIT"
] | null | null | null | import pandas as pd
import glob2
import os
PATH_VAL = '..\\Data\\dicom-images-test\\'
CSVFILE = '..\\Data\\kanvari.csv'
SUBCSV = '..\\out\\submission.csv'
val = glob2.glob(os.path.join(PATH_VAL,'**/*.dcm'))
df = pd.read_csv('..\\Data\\kanvari.csv')
ids = []
rles = []
# Issue: f = '1.2.276.0.7230010.3.1.4.8323329.... | 20.444444 | 69 | 0.558424 |
d5a07c9caf586abadb82cefa679b347214d86c90 | 12,967 | py | Python | aizynthfinder/analysis/routes.py | ShantamShorewala/aizynthfinder | 6b15d5846558b14c4ce3c353727d9d676af7f6fb | [
"MIT"
] | 219 | 2020-06-15T08:04:53.000Z | 2022-03-31T09:02:47.000Z | aizynthfinder/analysis/routes.py | ShantamShorewala/aizynthfinder | 6b15d5846558b14c4ce3c353727d9d676af7f6fb | [
"MIT"
] | 56 | 2020-08-14T14:50:42.000Z | 2022-03-22T12:49:06.000Z | aizynthfinder/analysis/routes.py | ShantamShorewala/aizynthfinder | 6b15d5846558b14c4ce3c353727d9d676af7f6fb | [
"MIT"
] | 58 | 2020-06-15T13:36:42.000Z | 2022-03-21T06:18:02.000Z | """ Module containing classes to store and manipulate collections of synthetic routes.
"""
from __future__ import annotations
from typing import TYPE_CHECKING
import numpy as np
from route_distances.clustering import ClusteringHelper
from route_distances.route_distances import route_distances_calculator
from aizynthf... | 37.915205 | 102 | 0.632529 |
d5a1131395736b2e09683a257a59f8aeb1dd31b9 | 15,570 | py | Python | specutils/manipulation/resample.py | parejkoj/specutils | 53a00def68882d9e91044d00a043f1bff1a046fd | [
"BSD-3-Clause"
] | null | null | null | specutils/manipulation/resample.py | parejkoj/specutils | 53a00def68882d9e91044d00a043f1bff1a046fd | [
"BSD-3-Clause"
] | null | null | null | specutils/manipulation/resample.py | parejkoj/specutils | 53a00def68882d9e91044d00a043f1bff1a046fd | [
"BSD-3-Clause"
] | null | null | null | from abc import ABC, abstractmethod
import numpy as np
from scipy.interpolate import CubicSpline
from astropy.units import Quantity
from astropy.nddata import StdDevUncertainty, VarianceUncertainty, InverseVariance
from ..spectra import Spectrum1D
__all__ = ['ResamplerBase', 'FluxConservingResampler',
'Li... | 38.06846 | 108 | 0.634297 |
d5a1f8e45bc2fd24ac139bfff6fce49d306cde0d | 907 | py | Python | gmso/tests/test_gsd.py | zijiewu3/gmso | 49217ca8daa6c8b01f6bc667d271a321b6f6f16a | [
"MIT"
] | 1 | 2020-11-08T23:50:09.000Z | 2020-11-08T23:50:09.000Z | gmso/tests/test_gsd.py | zijiewu3/gmso | 49217ca8daa6c8b01f6bc667d271a321b6f6f16a | [
"MIT"
] | null | null | null | gmso/tests/test_gsd.py | zijiewu3/gmso | 49217ca8daa6c8b01f6bc667d271a321b6f6f16a | [
"MIT"
] | null | null | null | import unyt as u
import pytest
from gmso.formats.gsd import write_gsd
from gmso.external.convert_parmed import from_parmed
from gmso.tests.base_test import BaseTest
from gmso.utils.io import get_fn
from gmso.utils.io import import_, has_gsd, has_parmed
if has_parmed:
pmd = import_('parmed')
| 30.233333 | 69 | 0.702315 |
d5a265575d027993c7c43d372f8dbcbce4bf1072 | 3,283 | py | Python | src/utils/utilities.py | ShivangMathur1/Face-Recognition-System | 3a7eb1af8830d6c36218652ed30edd8a49b7bb4d | [
"MIT"
] | null | null | null | src/utils/utilities.py | ShivangMathur1/Face-Recognition-System | 3a7eb1af8830d6c36218652ed30edd8a49b7bb4d | [
"MIT"
] | 3 | 2022-01-15T06:46:26.000Z | 2022-02-23T11:14:03.000Z | src/utils/utilities.py | ShivangMathur1/Face-Recognition-System | 3a7eb1af8830d6c36218652ed30edd8a49b7bb4d | [
"MIT"
] | 3 | 2022-01-11T08:33:15.000Z | 2022-02-21T09:26:26.000Z | from json import load
import os
from datetime import datetime
import cv2
import requests
# def load_database(path):
# students = requests.post
# database = []
# for name in names:
# img = cv2.imread(f'{path}/{name}')
# database.append((name.split('_')[0], img))
# return database
... | 33.845361 | 163 | 0.570819 |
d5a43ee3c91d95efecf4342234f30ff3f2618e78 | 3,584 | py | Python | tests/test_models/test_stylegan1.py | shinya7y/mmgeneration | c3b9e0af29d0117e27b18b712b0ddbf343275859 | [
"Apache-2.0"
] | 1 | 2021-05-27T13:04:41.000Z | 2021-05-27T13:04:41.000Z | tests/test_models/test_stylegan1.py | shinya7y/mmgeneration | c3b9e0af29d0117e27b18b712b0ddbf343275859 | [
"Apache-2.0"
] | null | null | null | tests/test_models/test_stylegan1.py | shinya7y/mmgeneration | c3b9e0af29d0117e27b18b712b0ddbf343275859 | [
"Apache-2.0"
] | null | null | null | import math
import pytest
import torch
from mmgen.models import build_model
# from mmgen.models.gans import StyleGANV1
| 37.333333 | 79 | 0.538225 |
d5a5bfc69f63922f80d7abc5218c00111e9972c6 | 7,658 | py | Python | generated-libraries/python/netapp/active_directory/__init__.py | radekg/netapp-ontap-lib-get | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | [
"MIT"
] | 2 | 2017-03-28T15:31:26.000Z | 2018-08-16T22:15:18.000Z | generated-libraries/python/netapp/active_directory/__init__.py | radekg/netapp-ontap-lib-get | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | [
"MIT"
] | null | null | null | generated-libraries/python/netapp/active_directory/__init__.py | radekg/netapp-ontap-lib-get | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | [
"MIT"
] | null | null | null | from netapp.connection import NaConnection
from active_directory_account_get_iter_key_td import ActiveDirectoryAccountGetIterKeyTd # 1 properties
from active_directory_account_config import ActiveDirectoryAccountConfig # 5 properties
| 51.743243 | 156 | 0.644685 |
d5a5d9f285d99e4d51d173ac72c21fd4c540fc07 | 7,891 | py | Python | script/src/page_categories/page_categories.py | ncatlab/nlab | 8e35d93f6e34dd3d21c59bbb76b40b334365deda | [
"Ruby"
] | 78 | 2015-05-14T06:27:13.000Z | 2022-03-27T16:35:09.000Z | script/src/page_categories/page_categories.py | ncatlab/nlab | 8e35d93f6e34dd3d21c59bbb76b40b334365deda | [
"Ruby"
] | 10 | 2019-03-17T14:48:41.000Z | 2021-12-02T16:30:36.000Z | script/src/page_categories/page_categories.py | ncatlab/nlab | 8e35d93f6e34dd3d21c59bbb76b40b334365deda | [
"Ruby"
] | 11 | 2018-01-17T19:36:06.000Z | 2022-03-22T17:32:37.000Z | #!/usr/bin/python3.7
"""
API for listing all page categories for a given web, and for checking whether
a given string defines a page category in this web
---
To use, set up (if it is not already in place) a virtual environment as follows.
python3 -m venv venv
source venv/bin/activate
pip3 install MySQ... | 30.70428 | 80 | 0.637435 |
d5a7137f1791e922a3801b5fb27951f1e74fe687 | 4,329 | py | Python | evaluation/check_grammaticality_preservation.py | demelin/wsd_biases_for_nmt | cd0bccfd653d5f5ee9286a98791944f876b97f1b | [
"MIT"
] | 2 | 2020-12-02T09:59:09.000Z | 2022-02-18T19:58:48.000Z | evaluation/check_grammaticality_preservation.py | demelin/wsd_biases_for_nmt | cd0bccfd653d5f5ee9286a98791944f876b97f1b | [
"MIT"
] | null | null | null | evaluation/check_grammaticality_preservation.py | demelin/wsd_biases_for_nmt | cd0bccfd653d5f5ee9286a98791944f876b97f1b | [
"MIT"
] | 1 | 2021-03-26T08:06:01.000Z | 2021-03-26T08:06:01.000Z | import sys
import json
import argparse
import language_tool_python
import numpy as np
def check_grammar(adversarial_samples_path):
""" Checks grammar preservation between natural seed sentences and adversarial samples that have been derived
from them. """
# Read in attractor phrase table
print('Read... | 41.228571 | 133 | 0.594133 |
d5a9730e5e604235c70d82217d7abcd958783532 | 2,967 | py | Python | scripts/mosh.py | wmodes/blackrockstation | 8134322517803d225b936958a2d4ad16e286397a | [
"MIT"
] | 1 | 2021-04-18T06:46:07.000Z | 2021-04-18T06:46:07.000Z | scripts/mosh.py | wmodes/blackrockstation | 8134322517803d225b936958a2d4ad16e286397a | [
"MIT"
] | null | null | null | scripts/mosh.py | wmodes/blackrockstation | 8134322517803d225b936958a2d4ad16e286397a | [
"MIT"
] | null | null | null | import os
import sys
import getopt
#Load file and create temp files
inputfile = 'blank'
outputfile = 'blank'
filters = 'blank'
loadfi(sys.argv[1:])
try:
a = str(inputfile).rsplit('.',1)[0]+'-a.tmp'
b = str(outputfile).rsplit('.',1)[0]+'-b.tmp'
if filters == 'blank':
print("Filters are required to av... | 31.56383 | 237 | 0.559488 |
d5aa4545a646814ef6af3187191b63fb5876eb06 | 1,294 | py | Python | test/unit/gen_libs/prt_msg.py | deepcoder42/python-lib | 249f456fdd41a6883206fea8e19c9e098cc969e5 | [
"MIT"
] | null | null | null | test/unit/gen_libs/prt_msg.py | deepcoder42/python-lib | 249f456fdd41a6883206fea8e19c9e098cc969e5 | [
"MIT"
] | null | null | null | test/unit/gen_libs/prt_msg.py | deepcoder42/python-lib | 249f456fdd41a6883206fea8e19c9e098cc969e5 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# Classification (U)
"""Program: prt_msg.py
Description: Unit testing of prt_msg in gen_libs.py.
Usage:
test/unit/gen_libs/prt_msg.py
Arguments:
"""
# Libraries and Global Variables
# Standard
import sys
import os
if sys.version_info < (2, 7):
import unittest2 as unit... | 15.780488 | 76 | 0.630603 |
d5aa8ee377904ab5a674241f789900ee6b5dc751 | 6,432 | py | Python | src/train.py | shabnam-b/crosslingual-nlp | ccd91baaea23004eab9c4d871910945ca3e61ab7 | [
"MIT"
] | 64 | 2019-11-25T09:33:29.000Z | 2022-03-31T22:38:21.000Z | src/train.py | shabnam-b/crosslingual-nlp | ccd91baaea23004eab9c4d871910945ca3e61ab7 | [
"MIT"
] | 2 | 2022-02-14T05:46:10.000Z | 2022-02-18T20:40:02.000Z | src/train.py | shabnam-b/crosslingual-nlp | ccd91baaea23004eab9c4d871910945ca3e61ab7 | [
"MIT"
] | 7 | 2021-04-02T07:00:36.000Z | 2022-03-28T15:08:50.000Z | import os
from argparse import ArgumentParser
import pytorch_lightning as pl
import util
from enumeration import Task
from model import Aligner, Classifier, DependencyParser, Model, Tagger
if __name__ == "__main__":
parser = ArgumentParser()
parser.add_argument("--exp_name", default="default", type=str)
... | 41.766234 | 86 | 0.684546 |
d5abcbe8cfb21a7294348cb0c5948348bf4ecebf | 338 | py | Python | docs/components_page/components/breadcrumb/simple.py | glsdown/dash-bootstrap-components | 0ebea4f7de43975f6e3a2958359c4480ae1d4927 | [
"Apache-2.0"
] | 776 | 2019-02-07T19:36:59.000Z | 2022-03-31T05:53:04.000Z | docs/components_page/components/breadcrumb/simple.py | glsdown/dash-bootstrap-components | 0ebea4f7de43975f6e3a2958359c4480ae1d4927 | [
"Apache-2.0"
] | 350 | 2019-02-05T10:42:19.000Z | 2022-03-31T19:23:35.000Z | docs/components_page/components/breadcrumb/simple.py | glsdown/dash-bootstrap-components | 0ebea4f7de43975f6e3a2958359c4480ae1d4927 | [
"Apache-2.0"
] | 219 | 2019-02-10T13:46:25.000Z | 2022-03-23T17:03:39.000Z | import dash_bootstrap_components as dbc
breadcrumb = dbc.Breadcrumb(
items=[
{"label": "Docs", "href": "/docs", "external_link": True},
{
"label": "Components",
"href": "/docs/components",
"external_link": True,
},
{"label": "Breadcrumb", "active"... | 24.142857 | 66 | 0.511834 |
d5ae335355bc99ca0c56f7196c057bea2de78e07 | 1,599 | py | Python | tests/test_util_math.py | mirochaj/ares | b3335ad30435ee0d7f17d0110aa164a35f252d78 | [
"MIT"
] | 10 | 2020-03-26T01:08:10.000Z | 2021-12-04T13:02:10.000Z | tests/test_util_math.py | mirochaj/ares | b3335ad30435ee0d7f17d0110aa164a35f252d78 | [
"MIT"
] | 25 | 2020-06-08T14:52:28.000Z | 2022-03-08T02:30:54.000Z | tests/test_util_math.py | mirochaj/ares | b3335ad30435ee0d7f17d0110aa164a35f252d78 | [
"MIT"
] | 8 | 2020-03-24T14:11:25.000Z | 2021-11-06T06:32:59.000Z | """
test_util_stats.py
Author: Jordan Mirocha
Affiliation: McGill
Created on: Tue 24 Mar 2020 22:11:31 EDT
Description:
"""
import numpy as np
from scipy.interpolate import interp1d
from ares.util.Math import interp1d_wrapper, forward_difference, \
central_difference, five_pt_stencil, LinearNDInterpolator, smo... | 23.865672 | 69 | 0.619762 |
d5aec803a6617ec14a27790815813f0c6e3a1936 | 175 | py | Python | mailer/cleaner.py | AgooDev/Automatic | b3d162aa0447a9fce340eac9604e9ff395967d11 | [
"BSD-3-Clause"
] | 2 | 2016-05-20T22:14:48.000Z | 2016-05-20T22:14:50.000Z | mailer/cleaner.py | AgooDev/Automatic | b3d162aa0447a9fce340eac9604e9ff395967d11 | [
"BSD-3-Clause"
] | null | null | null | mailer/cleaner.py | AgooDev/Automatic | b3d162aa0447a9fce340eac9604e9ff395967d11 | [
"BSD-3-Clause"
] | null | null | null | # Imports
import json
with open('../config/config.json') as config:
data = json.load(config)
historyPath = data['mailer']['paths']['history']
# Check if folder exists
| 15.909091 | 48 | 0.68 |
d5af38e5eeb161d0d352eaa24c10832386dba330 | 6,398 | py | Python | Scripts/convertor2.py | hyller/GladiatorFirmware | 535de3f74a773614648279ceb7cab06714c2cec2 | [
"Unlicense"
] | 1 | 2015-09-17T07:00:59.000Z | 2015-09-17T07:00:59.000Z | Scripts/convertor2.py | hyller/GladiatorFirmware | 535de3f74a773614648279ceb7cab06714c2cec2 | [
"Unlicense"
] | null | null | null | Scripts/convertor2.py | hyller/GladiatorFirmware | 535de3f74a773614648279ceb7cab06714c2cec2 | [
"Unlicense"
] | null | null | null | # 1. Extract crash address form reset information in internal log
# 2. According the crash address to find the crash function by search IAR map file
# 3. Output the crash address and function name to file
# NOTE: map file should in UTF-8 format
import csv
import os
import sys
import os.path
code_list = []
co... | 46.362319 | 125 | 0.479056 |