blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c68e398d0bbc80c7096a5f5ae75510261395be33 | cab14a6de18660d831eca8da3a713cb5d7c06476 | /decorator/5_deco_arg.py | 9120ed28307e21ff1a70b70025ec25871208384a | [] | no_license | sjl421/python_batteries_examples | 85da0dba187aa55b00f369f316cd948467712f43 | 3461d3561b6f45da15216e909fd91f396308ff74 | refs/heads/master | 2020-12-24T09:53:40.112603 | 2014-10-13T21:57:25 | 2014-10-13T21:57:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py |
'''
after decorator wrapping, i can use functools.wrapp to protect my internal information
'''
from functools import wraps
def tag(tag_name): # <== it takes an argu, return a decorator
def tags_dec(func):
@wraps(func)
def func_wrapper(name):
'this is a wrapper'
return "<{... | [
"dingzezhu@gmail.com"
] | dingzezhu@gmail.com |
48014e8268d7ec2ec7fcb92fc8e09e35141019bf | 3823bb52ce03e1f79c41b61c8c660b49ffdb32cd | /ApiGateway_StepFunc_CF/product_function.py | d5ec6a48234dedbffb3e1c2cc99d4ffc1902d985 | [
"Apache-2.0"
] | permissive | SSopin/aws-playground | 33c0588c350264c943d96eedc56ef97d28bac458 | 78449c0b0df3bed283330a1f84c1ffbbcfed4460 | refs/heads/main | 2023-06-30T04:18:19.574973 | 2021-08-08T00:59:40 | 2021-08-08T00:59:40 | 337,905,098 | 0 | 1 | Apache-2.0 | 2021-08-07T18:34:50 | 2021-02-11T01:52:27 | Python | UTF-8 | Python | false | false | 816 | py | import os
import json
import boto3
from decimal import Decimal
class DecimalEncoder(json.JSONEncoder):
def default(self, obj):
if isinstance(obj, Decimal):
return str(obj)
return json.JSONEncoder.default(self, obj)
def lambda_handler(event, context):
json_region = os.environ['AWS_R... | [
"Sergii_Sopin@epam.com"
] | Sergii_Sopin@epam.com |
6aef9694bff099a39f6f438b8b39618c6dff377a | e84b00e384f6258634877b53f84d3c934a155104 | /test/test_add_contact.py | d13bb1c1f47caec0dc50fb1a9133b9a0c7e252c7 | [
"Apache-2.0"
] | permissive | yevhen-hornysh/python_courses | bca39e5f871a4777920dfba0c72e29aca603cfad | 729b54af3a120305a812e7db558f74c81c419a83 | refs/heads/master | 2022-12-18T12:06:58.822539 | 2020-09-28T15:00:49 | 2020-09-28T15:00:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | from model.contact import Contact
def test_add_contact(app, json_contacts):
contact = json_contacts
old_contacts = app.contact.get_contact_list()
app.contact.create(contact)
assert len(old_contacts) + 1 == app.contact.count()
new_contacts = app.contact.get_contact_list()
old_contacts.append(co... | [
"e.gornysh@gmail.com"
] | e.gornysh@gmail.com |
94621ca749f8c94686b0a0c342ba70ad63847902 | eedef2d97a4a98c6ef3e6a9775c360b88ffb68b5 | /tumblr_ranking/asgi.py | b1696d23d8210bccb5c8fbab74fd0f6c455ea86f | [
"MIT"
] | permissive | hnkm525/dashboard_ranking | 2a60c4892e49454b3239664c50e5662c8f0ddcea | 3c2087c3d02270c0748d81238d5f6e2967c34c1c | refs/heads/main | 2023-07-04T07:30:25.613550 | 2021-08-12T10:20:42 | 2021-08-12T10:20:42 | 304,541,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
ASGI config for tumblr_ranking project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANG... | [
"tarakosuki98525mk2@gmail.com"
] | tarakosuki98525mk2@gmail.com |
f0f5f9bb71d27cc86c17f2383ef9578dabca489c | 8edcc353815cd13b3e921c0f4e4acebea7498d72 | /packages/py-ab-testing/ABTesting/utils.py | 950df0425f58339137d318df8f312ac15af7f57f | [
"MIT"
] | permissive | ZigZagT/ab-testing | 03e4766513401a434b71ea044b268b89df772684 | a99983eb692f4cdd81cc8c96d732c806fad4e626 | refs/heads/master | 2023-07-17T17:40:26.688925 | 2021-08-20T23:14:46 | 2021-08-20T23:14:46 | 386,172,921 | 0 | 0 | MIT | 2021-07-15T05:19:54 | 2021-07-15T05:19:53 | null | UTF-8 | Python | false | false | 605 | py | import hashlib
from typing import Any, Dict, Union, List
def hash_with_salt(value, salt):
# type: (Any, str) -> str
ret = hashlib.sha256()
ret.update(salt.encode())
ret.update(str(value).encode())
return ret.hexdigest()
def hash_dict(in_dict, salt):
# type: (Dict[str, Union[List[Any], Any]],... | [
"i@BananaWanted.com"
] | i@BananaWanted.com |
b2792abda27dd21efd115c3f7a3e03fd913de933 | e3afe6d75545f1910215bad7d648b0d2aca71e84 | /ROS/catkin_ws/build/mavros_msgs/catkin_generated/pkg.develspace.context.pc.py | 07bc0c391e1c31b8fc03a82d50dfb52a57694070 | [] | no_license | TonMise/ROS_robot | 1c1c1c98c26435276e609d6f890833b0cb3ef1be | 796cf81e97fe02faa9fd90b82d173c2b3e7bd0e7 | refs/heads/main | 2023-02-05T02:34:05.291874 | 2020-12-21T19:15:53 | 2020-12-21T19:15:53 | 322,928,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/ros/catkin_ws/devel/.private/mavros_msgs/include;/home/ros/catkin_ws/src/mavros/mavros_msgs/include".split(';') if "/home/ros/catkin_ws/devel/.private/mavros_msgs/include;/home/ros/catkin_ws/src/... | [
"31542846+TonMise@users.noreply.github.com"
] | 31542846+TonMise@users.noreply.github.com |
80bd30070081c87580a675c4a7064188852123d7 | 03cdc6e6150c8729fc5675c5902a9f5d3e299ab8 | /While_loop.py | a30f52d8e2c96c8f020130c40650d60e5b4badae | [] | no_license | Rahul-D78/Git_learningRepo | cd581b7d352ca45dc875e4db74db53fb02e94668 | 1ae80236b34acc9162f3b1c7445501a351821b89 | refs/heads/master | 2020-12-15T15:11:22.065959 | 2020-01-20T17:47:06 | 2020-01-20T17:47:06 | 235,152,564 | 1 | 0 | null | 2020-01-20T17:23:29 | 2020-01-20T17:01:36 | Python | UTF-8 | Python | false | false | 69 | py | count = 0
while count < 9:
print(count)
count = count +1 | [
"rahulparida933@gamil.com"
] | rahulparida933@gamil.com |
b4c5bf77782cafdad5cf024489467e9df7a2e79c | c6de409840b15f8dbd414ff204a4b0d464ef2a72 | /dangerzone/cli.py | 2e40e9728bcc10b1336bf8facdb3e0f870640860 | [
"MIT"
] | permissive | pianomanx/dangerzone | 6a102cbb0cab6267a8b68aea43f8272d6c5c91d1 | 7a4788f7a444077d734d119cfe444503bb67e91c | refs/heads/master | 2023-07-04T05:25:50.899746 | 2021-08-06T18:46:19 | 2021-08-06T18:46:19 | 326,886,504 | 0 | 0 | MIT | 2021-08-06T21:40:54 | 2021-01-05T04:32:17 | Python | UTF-8 | Python | false | false | 5,810 | py | import os
import shutil
import click
from colorama import Fore, Back, Style
from .global_common import GlobalCommon
from .common import Common
def print_header(s):
click.echo("")
click.echo(Style.BRIGHT + s)
def exec_container(global_common, args):
output = ""
with global_common.exec_dangerzone_co... | [
"micah@micahflee.com"
] | micah@micahflee.com |
dd9675cb1854f23944c78c9feb2843772a73ecc3 | 1617f6f07eaaa33681ccddb14c3c2cb1c834468d | /cryptoshredding/s3/stream_body_wrapper.py | c7b135db333902a77beba90c1170417b8a93b043 | [
"MIT"
] | permissive | hupe1980/cryptoshredding | 96e576b16913d33371f28628c9794ec4456de6da | 1ab5ee452c4435f486006aa2cc1a7bee440d91fe | refs/heads/main | 2023-02-27T17:46:18.405696 | 2021-02-10T19:36:00 | 2021-02-10T19:36:00 | 334,744,116 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py | import base64
import json
from cryptography.hazmat.primitives.ciphers.aead import AESGCM
from ..key_store import KeyStore
class StreamBodyWrapper(object):
def __init__(self, key_store: KeyStore, stream_body, metadata) -> None:
self._key_store = key_store
self._stream_body = stream_body
se... | [
"frankhuebner1980@gmail.com"
] | frankhuebner1980@gmail.com |
242131050ae51d854e5df08fbdd9fef3a8d5c0b4 | 79b10d9f827c489d7964bf024acb834265cbf249 | /snippets/linspace.py | 5f20152c8423ad927e8f4394849a3feb27a4d276 | [
"MIT"
] | permissive | lshappylife/snippet-manager | d9b2428f14f10b4ee7c78893dce1b2dd227eca88 | bebe45a601368947168e3ee6e6ab8c1fc2ee2055 | refs/heads/master | 2021-05-20T13:59:57.336622 | 2019-01-17T06:01:41 | 2019-01-17T06:02:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | >>> np.linspace(2.0, 3.0, num=5)
array([ 2. , 2.25, 2.5 , 2.75, 3. ])
>>> np.linspace(2.0, 3.0, num=5, endpoint=False)
array([ 2. , 2.2, 2.4, 2.6, 2.8])
>>> np.linspace(2.0, 3.0, num=5, retstep=True)
(array([ 2. , 2.25, 2.5 , 2.75, 3. ]), 0.25)
| [
"zhixiong@momenta.ai"
] | zhixiong@momenta.ai |
15e0f1f816ce0dfd0f44058032326839b6d3164c | 0012d7e04ad2728f29bb2bfc8393058927095c24 | /sms_server.py | 26a455c09c99e1f6bea799626869c25903aef6c4 | [] | no_license | wjimenez5271/ignite-chat | f11613f08e94223e0069b4ad90108f1474820876 | e16fecc86e2f1b67aebba9354486001ad8f247f4 | refs/heads/master | 2020-12-12T22:47:15.664414 | 2016-04-10T03:24:45 | 2016-04-10T03:24:45 | 23,649,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,911 | py | from flask import Flask, request, redirect
import argparse
import twilio.twiml
import db_json as db
import s3_sync
import logging
app = Flask(__name__)
@app.route("/", methods=['GET', 'POST'])
def receive_sms():
from_number = request.values.get('From', None)
message_body = request.values.get('Body', None)
... | [
"wjimenez5271@gmail.com"
] | wjimenez5271@gmail.com |
aab5a54931faf087288ffdc28be9628d6cacce0c | c95817a60f6cd2b2e6fe8a7a0bda78cea6fe7f1e | /allesfitter/v2/detection/injection_recovery_output.py | a02592464446673756c0c20a3747a65f50a0a64e | [
"MIT"
] | permissive | MNGuenther/allesfitter | 0f41b860f5274dc78ddb9d84406650edcc7cc3ed | 81e37ab16c28648858e4d9188182949023465f58 | refs/heads/master | 2023-04-30T10:25:08.821361 | 2023-04-14T20:07:16 | 2023-04-14T20:07:16 | 150,273,868 | 56 | 39 | MIT | 2023-04-14T20:07:17 | 2018-09-25T13:56:51 | Jupyter Notebook | UTF-8 | Python | false | false | 8,791 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu May 9 10:01:30 2019
@author:
Maximilian N. Günther
MIT Kavli Institute for Astrophysics and Space Research,
Massachusetts Institute of Technology,
77 Massachusetts Avenue,
Cambridge, MA 02109,
USA
Email: maxgue@mit.edu
Web: www.mnguenther.com
"""
fr... | [
"mx@mxs-MacBook-Pro.lan"
] | mx@mxs-MacBook-Pro.lan |
7c48a6336ed13d3cafa8be90309f7e193d5a44da | 159d4ae61f4ca91d94e29e769697ff46d11ae4a4 | /venv/lib/python3.9/site-packages/pandas/core/arraylike.py | 7cf34635ce9c1b6aa5d15eb0d47d8400b01cdff4 | [
"MIT"
] | permissive | davidycliao/bisCrawler | 729db002afe10ae405306b9eed45b782e68eace8 | f42281f35b866b52e5860b6a062790ae8147a4a4 | refs/heads/main | 2023-05-24T00:41:50.224279 | 2023-01-22T23:17:51 | 2023-01-22T23:17:51 | 411,470,732 | 8 | 0 | MIT | 2023-02-09T16:28:24 | 2021-09-28T23:48:13 | Python | UTF-8 | Python | false | false | 13,829 | py | """
Methods that can be shared by many array-like classes or subclasses:
Series
Index
ExtensionArray
"""
import operator
from typing import Any
import warnings
import numpy as np
from pandas._libs import lib
from pandas.core.construction import extract_array
from pandas.core.ops import (
maybe_dispat... | [
"davidycliao@gmail.com"
] | davidycliao@gmail.com |
4762d94945681bd6e8e5976586adc89a1d38421a | 50e9ce5de71e78384e8c2aa658016dc36b01c356 | /WebIntro.py | b0a1e503891d722cb685cefcaa431fe04859238a | [] | no_license | LRBeaver/WebProgrammingPython35 | bca1e9c3a69a01fd9d1af733d665616774e41ac4 | fc8067dc91ac4dcca6373d8deab8289835884e98 | refs/heads/master | 2021-01-12T13:29:02.510126 | 2016-09-30T12:47:52 | 2016-09-30T12:47:52 | 69,954,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37 | py | import os
os.system('cls')
print(2+3) | [
"GitPass16!"
] | GitPass16! |
1b9cfcc3315a6b382af914c6a625a67b54624d09 | 9ad76bcc6b959491911bd3f49870cda205cf721a | /cleaner.py | 481e524c5bc23110e7a36434a26a4b08df6aa6ba | [] | no_license | Makeshiftshelter01/preprocessing | 6378ecbb96d731e813896ba36afcda644d1cb5e0 | 1e4d9d83047502629b4402328422e52ec53b7d75 | refs/heads/master | 2020-04-18T07:32:35.339570 | 2019-02-11T11:28:35 | 2019-02-11T11:28:35 | 167,362,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,834 | py | from cleaning import first
from cleaning import cleaner
from cleaning import tokenizer
from cleaning import classifier
from cleaning import update_db
import time
from ckonlpy.tag import Twitter as Okt
import re
import psutil
import os
timehisory = []
memory = []
process = psutil.Process(os.getpid()) # 메모리 확인용
mem... | [
"staceycheon@gmail.com"
] | staceycheon@gmail.com |
8d2f0ebd90fd687534ecf68cd168d277f3317c92 | 9db9e8b2458e5c65513081047d7d0d460ea4082c | /2020_08_16/excises/请求接口操作.py | bf57b9464f43aee59c5ebc239b4a08424f0f50f3 | [] | no_license | wsdxl/new_review | 8e8a3a755859cc4817f8879af2ee2ea24d79d5b3 | e4f1ca4850430868ce3a2076c50f232432c757cf | refs/heads/master | 2022-12-15T09:03:23.530782 | 2020-09-03T15:37:07 | 2020-09-03T15:37:07 | 288,185,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,080 | py | """
Author:dxl
Time: 2020/8/16 16:54
File: 请求接口操作.py
"""
import jsonpath
import requests
login_url='http://api.lemonban.com/futureloan/member/login'
data={
'mobile_phone':'13641878150',
'pwd':'12345678',
}
headers = {
"X-Lemonban-Media-Type": "lemonban.v2",
"Content-Type": "application/json"
}
response... | [
"dxl20@163.com"
] | dxl20@163.com |
74a71cc9b00f4156f22b00b4a5e3d19efbf05ca0 | 808a412cd83a12676aedaf3dcae212c0ba559986 | /05_number_checker_v1.py | 8a4015eb6c9c69c852cf3147c29b3af0ddb66edd | [] | no_license | jesset685/temperature_converter | ff42d04209acd78defbb69d0efcd67222a819706 | af2651e08148dd9f0687dada602d60248c6f6947 | refs/heads/master | 2023-05-03T21:09:06.135117 | 2021-05-18T21:51:40 | 2021-05-18T21:51:40 | 343,579,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | # Code to check that number is valid...
def temp_check(low):
valid = False
while not valid:
try:
response = float(input("Enter a number: "))
if response < low:
print("Too Cold!!")
else:
return response
except ValueError:
... | [
"teumoh.vikia@awatapu.school.nz"
] | teumoh.vikia@awatapu.school.nz |
d9ae65225c06397fa8783c0e427e4a38cdfa071f | 167b5a809781d6f5d140dfe1e060da22d1580067 | /app/auth/views.py | 0817f3cd37074cfa4c8b5a74d207af5642187dfe | [
"MIT"
] | permissive | guomaoqiu/flask_bootstrap | a42cb786a861a939540dcab70448901bb424a611 | d1c0aa1b055d317bc0d58faf336a8938d6818e24 | refs/heads/master | 2022-12-13T06:36:38.854338 | 2018-07-20T09:46:33 | 2018-07-20T09:46:33 | 129,188,981 | 1 | 0 | MIT | 2022-12-07T23:39:39 | 2018-04-12T03:43:41 | Python | UTF-8 | Python | false | false | 6,271 | py | # -*- coding: utf-8 -*-
from flask import render_template, redirect, request, url_for, flash
from flask_login import login_user, logout_user, login_required, \
current_user
from . import auth
from .. import db
from ..models import User
from ..email import send_email
from .forms import LoginForm, RegistrationForm, C... | [
"guomaoqiu@sina.com"
] | guomaoqiu@sina.com |
d3487dbe30d9753fca0d826f19057405136dca9d | be84a1d38369ef6649a7e5d53338f8afec969f33 | /src/SaveWordTextNum.py | 2d8710141033d3a270a80ada632ec5eb76bf677d | [] | no_license | Joylim/Classifier | 0229ddfa64ce033b6999b8a269f0189dd2b69a67 | 4c675dc34dbf43d5d56d7e06ae9a309abbef6898 | refs/heads/master | 2021-03-12T20:15:40.424282 | 2013-12-29T14:14:04 | 2013-12-29T14:14:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | # -*- coding = utf-8 -*-
#Huangyao THU
#12-14 2013
import util
import featureSelected
import json
import pickle
def saveWordTextDict(label,fileNum):
str1=('../data/trainData/Dict/%d.txt') % label
str2=('../data/trainData/Dict/words%d.txt') %label
f1=open(str1,'rb')
Dict=pickle.load(f1)
f1.close()
... | [
"hy23thu@163.com"
] | hy23thu@163.com |
c53dfb794093c790c63e72f2080aae10a8cf91a1 | de606c031df83cc697fe2b3786fe627349d9f814 | /connction_pool/function_redirect_client.py | d62b855a9ad069b4e1dd430048a49554e3146ad4 | [] | no_license | rajaramanram/python | 06c2219f3ca1444779146f7055f493927ffcd3eb | aed865d9ccd5e07460bd3c157a753074dfdfb828 | refs/heads/main | 2023-06-17T04:42:53.251368 | 2021-07-12T15:38:36 | 2021-07-12T15:38:36 | 310,102,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,049 | py | from flask import Flask, request, jsonify, g,url_for
from flask_sqlalchemy import SQLAlchemy
import json
from flask_oidc import OpenIDConnect
from urllib.parse import urlparse
import psycopg2
from psycopg2 import pool
app = Flask(__name__)
app.config['SERVER_NAME'] = "localhost:5000"
app.config['SQLALCHEMY... | [
"noreply@github.com"
] | noreply@github.com |
91646ef48a02f3186ef12a064074f34674dd5102 | ef30056d39a1767123399fc31de20f2e09f3a1aa | /hello7/settings/prod.py | 7d77d628f8ef7b5f5c02299a18ac1c9f49ec5806 | [] | no_license | honestjjun/exercise | 2cc63bdd9c8d9fb5754e0a1e5c8f7622357892f8 | 7be69bf9d57bb659729e9c5226bae059cde3ee01 | refs/heads/master | 2020-07-15T04:07:21.904876 | 2017-06-14T07:50:42 | 2017-06-14T07:50:42 | 94,304,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,069 | py | from .base import *
ALLOWED_HOSTS = ['*']
# DEBUG = True
INSTALLED_APPS += [
'storages'
]
DATABASES = {
'default': {
'ENGINE': os.environ.get('DB_ENGINE', 'django.db.backends.postgresql_psycopg2'),
'NAME': os.environ['DB_NAME'],
'USER': os.environ['DB_USER'],
'PASSWORD': os.e... | [
"ionman83@gmail.com"
] | ionman83@gmail.com |
bfdf7a5f7fc0d22e55cb3938c474e0931f238b11 | d3c2fb9fc557aa371b2954992b2f89e9e8453d03 | /tests/contracts/interop/test_native.py | 12fab39808d68b8ab6860f4eb2c4c169f1f0a99a | [
"MIT"
] | permissive | simplitech/neo-mamba | f2bf14a5027d26d79f0a91834fbb8b247768d044 | 8b8a7bf2e600f89b91caff253f25c1c8afee6c0a | refs/heads/master | 2023-07-04T08:05:01.960301 | 2020-12-24T12:06:55 | 2020-12-24T12:06:55 | 351,549,364 | 0 | 1 | MIT | 2021-05-12T17:06:50 | 2021-03-25T19:15:53 | null | UTF-8 | Python | false | false | 36,916 | py | import unittest
import binascii
from unittest import mock
from collections import namedtuple
from neo3 import vm, contracts, storage, settings, cryptography
from neo3.core import types, to_script_hash, msgrouter
from neo3.network import message
from .utils import syscall_name_to_int, test_engine, test_block, TestIVerif... | [
"noreply@github.com"
] | noreply@github.com |
d891cf67239e4bbaad3bcfd8585d19565271145f | 0cc7c0347ea613311ea31b834eed3f46cf1403bd | /baidu/segment.py | 1bdae3f933d4184db70d1ac283a658cb07820a32 | [] | no_license | Goerwa/Craw | b53e280e9adffa54eec4f8ae6c25b99315b269e7 | 8a19b7631f2f8678197bb8afe533e7ee8e942eee | refs/heads/master | 2021-03-28T22:54:28.849789 | 2020-03-17T13:30:19 | 2020-03-17T13:30:19 | 247,903,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,008 | py | import time
import os
import json
def ltp_seg():
"""
使用LTP 对json文件中的标题和正文进行分词
"""
LTP_DATA_DIR = 'D:\BaiduNetdiskDownload\ltp_data_v3.4.0' # ltp模型目录的路径
cws_model_path = os.path.join(LTP_DATA_DIR, 'cws.model') # 分词模型路径,模型名称为`cws.model`
from pyltp import Segmentor
segmentor = Segmentor() ... | [
"wqsnzszw@163.com"
] | wqsnzszw@163.com |
f28b53a8e49e5b661deda7350778a27a7ba6095a | a24269de977124c853023eb5cb5e3971178acebe | /db/init_db.py | 24d9ff23d948791594847c22165434806ccd1a83 | [] | no_license | 05113/fastapi-testplatform | 05de134db4a06d8906fff0b017dfdf08eb85dd10 | 8de0839d502106b2e0169d999942355273caf1fd | refs/heads/master | 2023-06-21T19:41:39.124467 | 2021-07-18T10:03:41 | 2021-07-18T10:03:41 | 329,851,342 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | from sqlalchemy.orm import Session
def init_db(db:Session) -> None :
pass
| [
"wangquanfeng@flashhold.com"
] | wangquanfeng@flashhold.com |
cd3751c7353dba0e6904e5ee5cb6bbf17323d40d | 808443b95bf49567ee82f1967892156cf1c6a62c | /0x08-user_authentication_service/auth.py | 066fc54a1174d6de4853b260883e3db40de07f21 | [] | no_license | NasserAbuchaibe/holbertonschool-web_back_end | f0d93901b193058fd70451678e1d6174537bd226 | 3a051eab09c1c50ac56c05f530c3a4b616dde5f7 | refs/heads/master | 2023-08-25T13:34:30.278442 | 2021-10-12T04:07:47 | 2021-10-12T04:07:47 | 361,899,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,450 | py | #!/usr/bin/env python3
""" Authentication
"""
from typing import Union
from uuid import uuid4
from bcrypt import checkpw, gensalt, hashpw
from sqlalchemy.orm.exc import NoResultFound
from db import DB
from user import User
def _hash_password(password: str) -> str:
""" that takes in a password string arguments a... | [
"nasser_abuchaibe@hotmail.com"
] | nasser_abuchaibe@hotmail.com |
a9275a724adb5f73c2ef4c7c132a2920032b6135 | 1a1647e1e37f6c06f97edeb89dbc4daab2fc3f85 | /train_and_collect_images.py | 4255688b405ef4865b7ac3c76d1df992f7279d00 | [] | no_license | pankajrajput0312/automatic_attendance_macUC | 120e28317b2a6c1dbeb9e4745822e3ff78c7c8ed | 7be02fe39851f67c55bb361cde9e4feec18d35de | refs/heads/main | 2022-12-26T00:46:02.391712 | 2020-10-04T15:59:58 | 2020-10-04T15:59:58 | 301,161,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,179 | py | import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
import cv2
from PIL import Image
import PIL
import os
import shutil
import datetime
import time
from threading import Thread
def collect_data():
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
... | [
"noreply@github.com"
] | noreply@github.com |
8b2525db6dfc58d5c9dd37f6b89837cb56ae4aa7 | 46ac0965941d06fde419a6f216db2a653a245dbd | /sdks/python/appcenter_sdk/models/ExportConfigurationListResult.py | dc23e10e4c72c670b462af795bcded85e19b94ee | [
"MIT",
"Unlicense"
] | permissive | b3nab/appcenter-sdks | 11f0bab00d020abb30ee951f7656a3d7ed783eac | bcc19c998b5f648a147f0d6a593dd0324e2ab1ea | refs/heads/master | 2022-01-27T15:06:07.202852 | 2019-05-19T00:12:43 | 2019-05-19T00:12:43 | 187,386,747 | 0 | 3 | MIT | 2022-01-22T07:57:59 | 2019-05-18T17:29:21 | Python | UTF-8 | Python | false | false | 4,770 | py | # coding: utf-8
"""
App Center Client
Microsoft Visual Studio App Center API # noqa: E501
OpenAPI spec version: preview
Contact: benedetto.abbenanti@gmail.com
Project Repository: https://github.com/b3nab/appcenter-sdks
"""
import pprint
import re # noqa: F401
import six
class ExportConfigur... | [
"b3nab@users.noreply.github.com"
] | b3nab@users.noreply.github.com |
ca60621aa6c8dcb7c069ed6f98b0540b50236ff7 | ca4c1ff931e5a2b54a669aec1dc9ae53083544cc | /ntx/components/navigation.py | 413e79aaeac84f7e20b7e2f202ad441a09fe2a09 | [] | no_license | medubin/ntx | c92e6f74c70a1bb628ef2275228c5d3bc133027f | 3367f19c4d525d9e6ab346453cd0b9dccba84241 | refs/heads/master | 2021-03-30T21:36:10.622042 | 2018-05-17T23:58:57 | 2018-05-17T23:58:57 | 124,611,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,750 | py | import urwid
import os
import ntx.helpers.directory_helper as directory_helper
from pathlib import Path
from ntx.base.base_component import BaseComponent
class Navigation(BaseComponent):
BASE_DIRECTORY = str(Path.home()) + '/.ntx'
def __init__(self, env):
self.env = env
self.__last_search = ''... | [
"medubin@gmail.com"
] | medubin@gmail.com |
019b9314fefde11f12dde8785c9b56d0dd7a1851 | 0e686997d9d83e2a6dd14cd7ed7fa521ada788f6 | /Bit Manipulation/502 Binary to String.py | 69cd30aee2152cf0eaa4ee4e60ae76d758111ed7 | [] | no_license | vaibhavigaekwad007/Cracking-the-Coding-Interview | 97cec02d87463971108a42f2434896fe126bf5a9 | 1677a2d78d6aa9df8f1da04a1c086b9f1ff4858e | refs/heads/master | 2022-03-21T07:17:56.602596 | 2020-01-02T06:32:26 | 2020-01-02T06:32:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,120 | py | """
Given a real number between 8 and 1 (e.g., 0.72) that is passed in as a double, print the binary representation.
If the number cannot be represented accurately in binary with at most 32 characters, print "ERROR:'
Solution:
1. Compare number to . 5, then. 25, and so on
"""
__author__ = 'abhireddy96'
class Solutio... | [
"abishekreddy.dommasandravenkataswamyreddy@tomtom.com"
] | abishekreddy.dommasandravenkataswamyreddy@tomtom.com |
e3b21efcb547b054c173e8a767e3fdb62f682a42 | b3b105cff650721c718c0121b2786b2d232daa2c | /SAC_modular/DQ_visual.py | 1ed3993f40cad0bef6540409b01592db4a7d81fa | [] | no_license | sholtodouglas/SAC_TF2 | 8456eb31e596d3f39f8f7bb94e2ea78461f50e85 | 0ed808ead85fd5e48a86cd6de33c5df7bd9cd724 | refs/heads/master | 2020-06-15T23:21:00.190018 | 2019-10-13T05:11:27 | 2019-10-13T05:11:27 | 195,418,783 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,316 | py | #!/usr/bin/env python
# coding: utf-8
# In[5]:
from tensorflow.keras.layers import Dense, Lambda, Conv2D, Flatten, LeakyReLU, Conv2DTranspose
from tensorflow.keras.models import Model
from tensorflow.keras.optimizers import Adam
import tensorflow as tf
import numpy as np
from huskarl.policy import EpsGreedy, Gree... | [
"sholto.douglas1@gmail.com"
] | sholto.douglas1@gmail.com |
1bf98af7c914e7b1f6af93dc0673a32b3ee164fb | dd5e7697d6c2fc67ea195d8d3d38c19947433a45 | /chapter3_python-stringprocess/string.py | bad20a3dde5c89bb5b84504f2ab8f537bf7b99c1 | [] | no_license | ksm0207/Python_study | e8350e05f11497db345ef38939308b7e8b3b5e13 | 4b5f1bb1ae95a38e399bd4e789cdba57655caf3b | refs/heads/master | 2023-02-03T02:44:16.199225 | 2020-12-23T08:05:40 | 2020-12-23T08:05:40 | 288,656,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | # 문자열
name = "선풍기"
print(name)
name2 = "에어컨"
print(name2)
name3 = """
Hello Python !
"""
print(name3)
| [
"ksm03071@naver.com"
] | ksm03071@naver.com |
39ab4982e78a4b7bf135c5ad7f9176d3529e949e | 0fdae1776b655c03ce0de85d2b79350a88c3b707 | /I0320005_Exercise 7.29.py | 8db693b74d621dbb2410de8e682d3af2c9f513ee | [] | no_license | rafiadn/Ahmad-Rafi-Adnanta_I0320005_Abyan_Tugas7 | 257256eed11e68060396d0d856c9fe5ef92d4893 | 4b9f925f7f22b702b5bd24fb4fb394708a9480f1 | refs/heads/main | 2023-04-07T02:42:44.225270 | 2021-04-16T06:28:24 | 2021-04-16T06:28:24 | 358,496,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | a = [10, 40, 30, 10, 30, 20]
print('a = ', a)
print('jumah nlai 10 = ', a.count(10))
print('jumah nlai 30 = ', a.count(30)) | [
"noreply@github.com"
] | noreply@github.com |
ddda108c48b2a50a4dccf4df130003cfd4157fb0 | 0cbf107de8b6ae51308765d321d8c134ea8108f1 | /Algorithms.py | 7c635b1fb6d136953b8f2323cf26aa52d8e5d6be | [] | no_license | dcormar/pyScripts | eee3555ddad83de0a66d4122f3e3809589166a84 | b75fb32f0469b35a5e88ed8ba006854909ec1eec | refs/heads/master | 2020-04-08T19:18:09.082347 | 2019-05-05T18:10:32 | 2019-05-05T18:10:32 | 159,649,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | from math import log, ceil
def bouncingBall(h, bounce, window):
return -1 if (h <= 0 or bounce <= 0 or bounce >= 1 or window >= h) else (ceil(log(window/h,bounce))*2 - 1)
print (bouncingBall(30, 0.66, 1.5))
'''
CON EL SIGTE CÓDIGO, DA ERROR DE "RecursionError: maximum recursion depth exceeded while calling a Py... | [
"dcormar@gmail.com"
] | dcormar@gmail.com |
2a072def812c6e995bddd52a6145ef5abdb5b46c | 451722014b427806a2988b04797dcdcbcbab3836 | /musterdaten/migrations/0001_initial.py | 898a8f0819944b0098cb0268114422e1b2c1a8e8 | [] | no_license | CivicVision/musterdatenkatalog | 0de148c28ca24c1e47a2b145c575fd0bfbdbc169 | 9875b74ed17b6417298ee7758b7060de50094185 | refs/heads/master | 2023-03-07T04:42:54.935932 | 2021-02-15T12:32:44 | 2021-02-15T12:34:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,347 | py | import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
('id', models.AutoField(auto_created=Tr... | [
"mila.frerichs@gmail.com"
] | mila.frerichs@gmail.com |
c1274ab381afe7f4c02a38e209d14657c51870cf | 36b86e45774fbb0658bddafb3ea5df3200ff7c43 | /Chapter08/Number_10/decimalToBinary.py | 27bdcfe86b3b7b1cbec0bbab335c82a49859aec2 | [] | no_license | lunyy/ScriptProgramming_Python | 7c871f59a4932348af06e99dd03e6fd8f2e066e0 | bfd616b6d653d9c11ff58d2ed9011c4e814bb7c8 | refs/heads/master | 2020-06-17T12:19:00.820102 | 2016-11-26T17:40:58 | 2016-11-26T17:40:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | def decimalToBinary(value):
value = eval((value))
str_list = []
while(1) :
if value == 0:
str_list.append(0)
break
elif value == 1:
str_list.append(1)
break
# 0이나 1이면 맨 마지막에 0,1을 넣고 break
else :
str_list.append(value % 2)
value = round(value / 2)
# 다른 수이면 2로 나눈 나머지를 append하고 value를 2로 나눈 ... | [
"daisy7024@koreatech.ac.kr"
] | daisy7024@koreatech.ac.kr |
988c68789e7119f20d7f7715581ef86a77fbb952 | 5941c9b7047054d7be3e55f460a3d5b35b987498 | /GeeksForGeeks/Searching/MajorityElement.py | a96ab75d69a3a46708549b96369b6d86dd683628 | [] | no_license | mohtashimkamran/DSA-GeeksForGeeks-Codechef-Codeforces-solutions | 19d3a0d716160750bac70fc979a982c4fde085bd | 364e7e68e32ebdb2429754883465696e06b3a436 | refs/heads/main | 2023-05-08T16:44:42.309261 | 2021-05-31T17:46:40 | 2021-05-31T17:46:40 | 307,804,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | # Majority Lement in an array
# def majority(arr,n):
# res=0
# count=1
# for i in range(1,n):
# if(arr[res]==arr[i]):
# count+=1
# else:
# count-=1
# if(count==0):
# res=i
# count=1
# count=0
# for i in range(n):
#... | [
"noreply@github.com"
] | noreply@github.com |
887dd01dedd2f043d77af10aac2940397c5305da | 9611f657bbb92d2cc3edd556ea3ffaa702e997f0 | /graphics/screen.py | ae886934405652017bcfbd3dccb607f3cffc0d56 | [] | no_license | donhilion/JumpAndRun | 10fdfdcc5fdcd5619b757c3f65e68d2bf4085852 | 0308785a51bf61d9a4fec2d8370540df502b8178 | refs/heads/master | 2021-01-23T08:38:53.808186 | 2014-01-28T20:26:53 | 2014-01-28T20:26:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py | __author__ = 'Donhilion'
class Screen(object):
""" The screen class.
This class provides an interface for screen which could be displayed in the Window class.
"""
def __init__(self):
""" Generates a new instance of this class.
Generates a new instance of this class.
"""
pass
def draw(self):
""" Draw... | [
"donhilion@googlemail.com"
] | donhilion@googlemail.com |
f496a5cffa7a254d07e540baad61197bc12f653d | 60d5b5b1f1c912d1655de3884efc09dfddd8d132 | /sites/kotourism/places/migrations/0026_auto__add_track.py | e79459953a770ed672440949f28f15b68d8eff12 | [] | no_license | alexgula/django_sites | 15033c739401f24603e957c5a034d63652f0d21f | 038834c0f544d6997613d61d593a7d5abf673c70 | refs/heads/master | 2016-09-05T11:02:43.838095 | 2014-07-07T11:36:07 | 2014-07-07T11:36:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,361 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Track'
db.create_table('places_track', (
('id', self.gf('django.db.models.fields.Auto... | [
"alexgula@gmail.com"
] | alexgula@gmail.com |
74b8760b1c181f2762ce273af444d1053d1ac0a9 | 02c1fe563ab440eaee0a6e49d3e118f790dd563e | /tests/conftest.py | 3d84cedcce3a7914f6b4001fe8fde04ca7c30970 | [] | no_license | arijit05saha/arijit05saha | 63cebbfd750a5d41dbca0d0758880b11e9b0044d | 9000bb834ced5a28286989436895298b67af6a56 | refs/heads/master | 2023-06-25T09:15:32.701309 | 2021-07-28T20:41:15 | 2021-07-28T20:41:15 | 390,500,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,016 | py | import pytest
from selenium import webdriver
driver = None
def pytest_addoption(parser):
parser.addoption(
"--browser_name", action="store", default="chrome"
)
@pytest.fixture(scope="class")
def setup(request):
browser_name = request.config.getoption("browser_name")
global driver
if brow... | [
"arijit05saha@gmail.com"
] | arijit05saha@gmail.com |
6267765ba313ba8bed3090256c418033627aabe9 | 4798f79ff2f430f643863742b49b84243a480e26 | /manage.py | 4d78a65f7e54363f16cfefd8265f5fba4c0937aa | [
"MIT"
] | permissive | MachineLearningProject/flight-delay-prediction | 86c2ab17e40edc50e86c31f8308fcf91aa96aad6 | 915879f26ece8a1e5bf8678668cc2980a2d0e240 | refs/heads/master | 2021-01-10T17:00:46.955059 | 2016-03-16T11:36:42 | 2016-03-16T11:36:42 | 51,708,787 | 0 | 0 | null | 2016-03-16T11:36:43 | 2016-02-14T19:05:50 | Python | UTF-8 | Python | false | false | 249 | py | from flask.ext.script import Manager
from app import app
manager = Manager(app)
@manager.command
def runworker():
from app import cronjobs
job = cronjobs.AirportDelayRetriever()
job.run()
if __name__ == "__main__":
manager.run()
| [
"cesar.rdz.v@gmail.com"
] | cesar.rdz.v@gmail.com |
b685e2e64e61cf761c0ca71b0c7f808d61cc266e | b3ab7562ae1b054f4da45192a0d711c71764e42b | /MachineLearning-StudentActivity/DSML_Task3/SVMRegression/SVMRegressorAllAttribute.py | 8b714fcb0b88a256b0ce72aca04a005302ee0209 | [] | no_license | Sebastiano2906/MachineLearning-StudentActivity | 80d7d41c527224d5dd23dcfabf2081e56829b4d0 | cdb17f01655a255b856d37473415fc66b5fa3d49 | refs/heads/master | 2022-11-30T08:53:25.438953 | 2020-08-12T17:37:28 | 2020-08-12T17:37:28 | 196,618,732 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,772 | py | from sklearn.svm import LinearSVR
import pandas as pd
from sklearn.metrics import mean_squared_error
import numpy as np
predictiveAttributeDegree = pd.read_json("../predictiveDegree.txt", orient='records', dtype=True,typ="series") #AGGIUSTARE I PATH, IN MODO DA RAGGIUNGERE QUESTO FILE
predictiveAttributeNotDegree = pd.... | [
"sebastiano.caruso95@gmail.com"
] | sebastiano.caruso95@gmail.com |
8a59cb38a53397dc4e6561f775085d240748723e | aa05f0676d8969d97520a30e4bc9671e6c23f4f6 | /Chapter 11 - PsychoPy入门 - 基本刺激材料的呈现/ioHub-example.py | ed1d5255865a02116c78d3c5cdd4732eb24a97ff | [] | no_license | hejibo/Python-for-social-scientists | 6c7ad858ed4faa02667300d33d68896a9f3ffe49 | 28b81e25b98a7836bc5a06c03faecb54ffe3281a | refs/heads/master | 2021-09-15T12:53:20.795539 | 2018-03-09T19:54:04 | 2018-03-09T19:54:04 | 100,620,818 | 12 | 5 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | '''
http://www.psychopy.org/api/iohub/starting.html
'''
from psychopy.iohub import launchHubServer
# Start the ioHub process. The return variable is what is used
# during the experiment to control the iohub process itself,
# as well as any running iohub devices.
io=launchHubServer()
# By default, ioHub will create Ke... | [
"drhejibo@gmail.com"
] | drhejibo@gmail.com |
3b6223b97fe67858b854914186d80bf6ee010f70 | d7016f69993570a1c55974582cda899ff70907ec | /sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2021_01_01/aio/operations/_file_shares_operations.py | 49e789635d95f6ce5f8b69f63250a9f13496a15b | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 39,965 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | noreply@github.com |
308603f8349a5cc5bfcc057fbb89eb84b03a9878 | f87c86c4dcb9192717a06ec41caa5c49b1fd0201 | /adv/yukata_cassandra.py | 8dc435fad72e2a8adcdfe667606037d43be82aff | [
"Apache-2.0"
] | permissive | Caledor/dl | 5377982f31f0c1890aff487d5eefc1ffb6f7115f | fc5e9b6855afb40c4c499a70dfa0e0503e8c8f05 | refs/heads/master | 2023-04-01T19:15:04.372285 | 2021-03-28T23:25:06 | 2021-03-28T23:25:06 | 277,363,765 | 0 | 0 | Apache-2.0 | 2020-07-05T18:49:36 | 2020-07-05T18:49:36 | null | UTF-8 | Python | false | false | 582 | py | from core.advbase import *
class Yukata_Cassandra(Adv):
comment = "s1 overdamage team buff not considered"
def prerun(self):
self.a3_att_mod = Modifier("a3_att", "att", "passive", 0.30, get=self.a3_get)
def a3_get(self):
return self.s2.sp == self.s2.charged
def post_run(self, end):
... | [
"wildshinobu@gmail.com"
] | wildshinobu@gmail.com |
ad4dca58852c4ae0ee83f2c284671f8f824fb71c | 6db9f9c1d0c282935bc52d1acac309ea6f183173 | /first.py | 4036d95429901a70f82d11b3ebf491f212c82591 | [] | no_license | timsl/DeepRL | a572fdc37a24199cf132488316bfec703615ca17 | 7d7a53dfb2cdea6f3d898af8c173b8faa6033f30 | refs/heads/master | 2021-01-22T03:58:01.295851 | 2017-04-24T14:08:26 | 2017-04-24T14:08:26 | 81,486,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | import gym
import universe # register the universe environments
env = gym.make('flashgames.DuskDrive-v0')
env.configure(remotes=1) # automatically creates a local docker container
observation_n = env.reset()
while True:
action_n = [[('KeyEvent', 'ArrowUp', True)] for ob in observation_n] # your agent here
obse... | [
"tiol@kth.se"
] | tiol@kth.se |
e2d0b71910a531d634540fbe04b274c9751b2a10 | 4943d1a9f7dcaca8f6f674ec03e8a4abb5f6ec45 | /custom/telegram.py | 2bf21e4732b3ca0250099a962a876b364634954d | [] | no_license | krlosMata/token-check | 43317503a19febc45a03e3139b27a6cd60a10d6a | af88dc3d82c5853c754551ad2e0ff76c769d6110 | refs/heads/master | 2020-09-02T23:16:22.035306 | 2019-11-09T11:54:37 | 2019-11-09T11:54:37 | 219,329,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | import telegram
from telegram.ext import Updater, CommandHandler
class Ctelegram:
def __init__(self, _token, _chatId):
self.chatId = _chatId
self.bot = telegram.Bot(_token)
def sendMessage(self, message):
self.bot.send_message(self.chatId, message) | [
"krlosmata@gmail.com"
] | krlosmata@gmail.com |
c37590dea59a0dbf01de377374de3ac608339a88 | 40acb96668d2154f087207ce744af280afa2b387 | /temps/main_tom.py | e67a30647113e9c6381c27fde07aaf52262657fe | [] | no_license | TomBugnon/hill_tononi_synthesis | 61a69e1911e1c74ae0f5f2b0745329c0660d6044 | c63bc6fc3c0406795bcfd7db3ccbf152aaf8e358 | refs/heads/master | 2020-12-30T12:10:33.169075 | 2017-06-07T20:55:29 | 2017-06-07T20:55:29 | 91,501,507 | 0 | 1 | null | 2017-05-16T20:28:52 | 2017-05-16T20:28:52 | null | UTF-8 | Python | false | false | 6,318 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Simulation of figures 3 & 4 in Hill-Tononi paper.
# Author: Pablo Martinez Cañada (pablomc@ugr.es)
# Modified by Keiko Fujii and Leonardo S. Barbosa
import nest
import nest.topology as tp
import numpy as np
import time
import math
import figure_4_plot_tom
reload(figure... | [
"tombugnon@hotmail.com"
] | tombugnon@hotmail.com |
4c1950d06935ea7fd2a092991a9f0c3bd7238253 | 3a76de34371839c5b86f9fdbf216204c558cca18 | /venv/bin/easy_install | 4e19c72d5bdcafcda271ae024f8d6b3fd1587cda | [] | no_license | aaogoltcov/Selenium | a3637bb5d9adaaa3a706ed6c6e8a76c7faa72a4b | f8bb741e139668e3ea5fb6901c0eecceed132667 | refs/heads/master | 2022-05-20T06:36:36.983648 | 2020-04-17T13:01:01 | 2020-04-17T13:01:01 | 256,491,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | #!/Users/alexeyogoltsov/PycharmProjects/SeleniumTests/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"aaogoltcov@mail.ru"
] | aaogoltcov@mail.ru | |
cf04ec4ee20713b3c77053a60735d4274bcb3066 | 3b50b3663abd4c6b01ae667f4bc6aca2ecf3bbba | /app_payment/urls.py | 4e0fb72475aa5786d1ee7dd3a8127de22400e284 | [] | no_license | DSIW/sdf | 394d48da286fa3ac311b44cf390a0f94b75b5cb0 | 655ecadf59cadf44086322932328d91d65f7e9e4 | refs/heads/develop | 2021-01-10T17:57:04.658816 | 2016-01-18T19:41:09 | 2016-01-18T19:41:09 | 44,266,686 | 2 | 3 | null | 2016-01-17T14:29:17 | 2015-10-14T18:04:27 | JavaScript | UTF-8 | Python | false | false | 620 | py | from django.conf.urls import *
from . import views
urlpatterns = [
url(r'^offers/(?P<id>[0-9]+)/start_payment/$', views.start_paypal_payment, name='start_paypal_payment'),
url(r'^payments/(?P<id>[0-9]+)/redirection/$', views.paypal_redirection, name='paypal_redirection'),
url(r'^payments/(?P<id>[0-9]+)/suc... | [
"dsiw@dsiw-it.de"
] | dsiw@dsiw-it.de |
806723070baf939c6680b67d3f641580da57af0b | fb242bc6565251d69dabb33fae91ac36f9ff95f3 | /cloudstack/src/python/dnsinfo.py | 5e2ae0e2fa727b3f0837999cb279a04b02a1ded4 | [
"MIT"
] | permissive | OpenSciViz/cloud | b12aaeefe971936d75be2c110aa278e5f25d33de | 50cba2c3869790e558171b7d10b5d84328046383 | refs/heads/master | 2022-05-02T08:14:55.542360 | 2022-03-11T21:20:29 | 2022-03-11T21:20:29 | 66,280,280 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,149 | py | #!/usr/bin/env python
"""
DNSinfo module should support forward and reverse lookups of one or more IPs
and domain names.
"""
from __future__ import print_function
import pprint, socket, sys, timeit
if(sys.version_info.major < 3):
import six # allows python3 syntax in python2
def dnsinfo(ip='10.101.8.92'):
"""
D... | [
"david.hon@icbr-ci-ws-m013.local"
] | david.hon@icbr-ci-ws-m013.local |
1914ad0b73c9d0629afa0ba9729d9141ed746d6b | ebd78e20eacc840e52ebf2f0c44a779bc3d4ec42 | /blog/templatetags/blog_tags.py | c2077360adb572fe872e8f1cbc59941277371a55 | [] | no_license | Timehsw/djangoblogproject | ed22bfbf188881de27706475785d680cc3cfaafc | 019f0e1f2649b0f3d878498141d89e972fe67eaa | refs/heads/master | 2021-07-10T11:06:18.102644 | 2017-10-14T12:26:25 | 2017-10-14T12:26:25 | 104,549,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | # -*- coding: utf-8 -*-
'''
Created by hushiwei on 2017/9/23.
存放自定义的模板标签
'''
from django import template
from django.db.models.aggregates import Count
from ..models import Post,Category,Tag
register=template.Library()
@register.simple_tag
def get_recent_posts(num=5):
return Post.objects.all().order_by('-... | [
"hsw.time@gmail.com"
] | hsw.time@gmail.com |
173c61dcde3d13a5d5b69dda6a1ef55260f9fd73 | 45ceea0823a81f47a996e598ecb08c53c68ef68d | /src/test/test_main.py | e6ba06d46257976c03f402443105979822761d10 | [] | no_license | mjapon/acme-test | aae94662fadda97618778ec7fad2800257d8c252 | 0cfb8d83499a332fa1ab495a6d4271018b279c51 | refs/heads/master | 2023-08-05T12:02:29.646411 | 2021-09-18T16:46:12 | 2021-09-18T16:46:12 | 407,908,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | import pytest
from main import compute_payment, get_payment_by_day
@pytest.mark.parametrize(
"input, expected",
[
('RENE=MO10:00-12:00,TU10:00-12:00,TH01:00-03:00,SA14:00-18:00,SU20:00-21:00',
'The amount to pay RENE is: 215 USD'),
('ASTRID=MO10:00-12:00,TH12:00-14:00,SU20:00-21:00', ... | [
"efrain.japon@gmail.com"
] | efrain.japon@gmail.com |
ed132bc2b3a89eb0b02afa38e70f953619164897 | 1ff7c07d526390c3b2a74ec0e1a860299dd45c49 | /online_course/4.1.advanced.feature.slice.py | 33b94a8f2076ad4186bab4b3683e96341bdb7f04 | [] | no_license | strange-uncle/python-study | d25741c674d3a04df4b054edb8a27611cd0deeb3 | 8d8c1d53bd7f8574d5b95317cf03147df5a14edc | refs/heads/master | 2021-07-12T21:23:46.874546 | 2020-05-25T14:46:30 | 2020-05-25T14:46:30 | 142,584,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
l = list(range(20))
print(l)
# 注意下标的起点是0
# [x:y] 的终点y元素不包含
print(l[2:5])
print(l[2:])
print(l[:5])
print('负数是倒数,最后一个元素的位置是-1')
print(l[-3:])
print(l[-2:-1])
print('指定步长')
print(l[-6::2])
print('INDEX的顺序要从小到大,否则没有数据,返回的是[],如下:')
print(l[6:2])
print(l[-2:-6])
| [
"seraphwu@foxmail.com"
] | seraphwu@foxmail.com |
93dcd149dcc82638dc801ae8162ab4b5d62ecea7 | d78d9361ca266295a9b20050025f311044a5c73a | /env/lib/python3.6/enum.py | 54a601b4e4bb0619329c6d404e163a3b3b5c21f6 | [] | no_license | diptinayan/Project1 | 8a2b61d29bcdc41ece1cb5f945ab42574d0fa375 | 822d7ce0da35a10232039e91931c6ab4553d077a | refs/heads/master | 2022-10-18T21:38:59.943783 | 2018-08-24T17:54:10 | 2018-08-24T17:54:10 | 145,874,360 | 0 | 1 | null | 2022-10-01T08:39:34 | 2018-08-23T15:40:29 | Python | UTF-8 | Python | false | false | 73 | py | C:/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/enum.py | [
"diptinayan21@gmail.com"
] | diptinayan21@gmail.com |
8d00210f9368fa31f8f1faf90b5566dc764f3616 | 0415162c40a1e1af3bdf2bbc6b65457f5c0346a3 | /dashboard/urls.py | a3216d318d1ee482aeb1e5f67b6c35834726a634 | [] | no_license | rhrokib/code_aqua | 413316ecbe0e8cfde48bd5af4387f517403d2459 | 04c3e58072727a613ea918cc804bd6b23873828c | refs/heads/main | 2023-05-13T13:33:55.223096 | 2021-06-05T04:33:29 | 2021-06-05T04:33:29 | 356,197,318 | 0 | 1 | null | 2021-06-05T04:33:30 | 2021-04-09T08:33:26 | Python | UTF-8 | Python | false | false | 356 | py | from django.urls import path
from . import views
from . import forms
urlpatterns = [
path('', views.dashboard, name='dashboard'),
path('create', views.NewBudgetCreate.as_view(), name='budget_create'),
path('update/<str:pk>', views.BudgetUpdate.as_view(), name='budget_update'),
path('daily_spend', views... | [
"rokib.hridoy@gmail.com"
] | rokib.hridoy@gmail.com |
1bc320f2d0646971d9ce6eff7a3c4c40082dce9b | 08acec95bd1dc302633fadf7b47cd8ba3b749ff3 | /day-2018-04-02/myproject/venv/lib/python2.7/site-packages/zope/app/form/browser/metadirectives.py | 464769b9cd251dcf2a1e20c1e58f456edd5888c6 | [] | no_license | WeAreHus/StudyRecord | 74a312103ad2c037de23534160fa42d6a68ad174 | 047b7d9dcbee7c01ad2e8b888b160e66dfa9012d | refs/heads/master | 2022-12-16T14:47:15.984939 | 2019-04-29T15:16:15 | 2019-04-29T15:16:15 | 127,758,387 | 2 | 1 | null | 2022-11-22T02:50:30 | 2018-04-02T13:15:07 | Python | UTF-8 | Python | false | false | 9,031 | py | ##############################################################################
#
# Copyright (c) 2001, 2002 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# TH... | [
"1131360171@qq.com"
] | 1131360171@qq.com |
dd5732d78973606d48ef3676f52ba5c7835bca04 | 59412824148807a9ed029619ab52c7cc2e50b91a | /check_elidb_upf_backlog.py | 61a784d4bc583df88fe6af0a009bd189da217463 | [] | no_license | drain166/Nagios-Scripts | 3ebb75c31c67a73b4570a812b56bbe8c162e19f4 | 98c4357c33955780943bf7f5e3cd6f411ed9dd8d | refs/heads/master | 2021-01-01T06:17:34.135873 | 2014-06-06T16:14:41 | 2014-06-06T16:14:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,457 | py | #!/usr/bin/python
import re
import sys
import glob
import commands
### Set these ###################################
threshold = 100 #
upf_dir = '/app/tnstaf/cedfiles/elidb-lookup' #
cfg_file = '/app/tnstaf/cfg/elidb-local.cfg' #
log_file = '/app/tnstaf/logs/elidb-updated.log' #
#... | [
"steven.m.kirk@gmail.com"
] | steven.m.kirk@gmail.com |
c0a350cbef560a6e15b5006690002b05789143b8 | 73a06c33e686f7e01055fdf8d7c69eca901fe40d | /indiaxrussia/day2/path.py | ba8cbdebfc459a6a593b582daa9d7d7b7335fdc7 | [] | no_license | hashkanna/codeforces | cb8eee2d19e354b32b84208920c8a91995da050f | fc56cb9caaa52aac157ba9e4b717c13d8f51ce1f | refs/heads/master | 2021-06-27T10:37:01.906835 | 2019-01-16T15:55:06 | 2019-01-16T15:55:06 | 112,921,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,732 | py | from collections import defaultdict
from collections import Counter
def dfs(u,p):
# visited[u]=True
global timer
# global cycle
colors[u]=1
parents[u]=p
tin[u]=timer
timer+=1
# cc[u]=cc_num
# print(u)
for v in sorted(g[u]):
# if not visited[v]:
# if colors[v]==1:... | [
"sirchabesank@E0414577.local"
] | sirchabesank@E0414577.local |
dcb51eed179018baa2f80a7d0e9555486ecaece9 | ea4069901aa42076f3edb3ebfd3d3fcbdd4d6635 | /project1/project1/urls.py | 3079c5c0202336176181979d83c9a8f332a8c97a | [] | no_license | sunnystory/RestaurantWeb_mulcam | cc04dcb7a1d3e897811f8aa76ebc9f68c53855f8 | db5efcea47f56a9fd747bd8312c4222fde451e6f | refs/heads/master | 2022-12-04T18:07:12.904533 | 2020-08-24T08:56:30 | 2020-08-24T08:56:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | """project1 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-base... | [
"tkdtnrwjs@naver.com"
] | tkdtnrwjs@naver.com |
145e6696b9b729046af44b249ac01f731bbd07ec | ed3d9adbca4c55ea53227b6a3b5d81d30d7313cb | /gcp/extract/lib/bundles.py | fbc60eedc56d4b94d8ab93c38b52eb3e1125b8f9 | [
"MIT"
] | permissive | delgadom/prospectus-tools | 112671bafa8a95df002b4dabdc3397b8f9a29ccf | 05adc34a54e0296af5e7516f3d5b69b53a53e989 | refs/heads/master | 2021-01-15T22:38:59.866068 | 2016-05-28T22:28:45 | 2016-05-28T22:28:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,752 | py | # -*- coding: utf-8 -*-
################################################################################
# Copyright 2014, Distributed Meta-Analysis System
################################################################################
"""
This file provides methods for extracting data from impact bundles (.nc4 files... | [
"jarising@gmail.com"
] | jarising@gmail.com |
be1cbd8e6125aa0ef337267c5865735cc9869c6a | bb7dfc95d7e02549a316995280475e2255a959b6 | /module/blenderQtIntegrationComm.py | 5830758cf4cdc781d6efeea06cddb743044298f9 | [] | no_license | subing85/packages_test | 508df542efecaed7a53ca9356f53b4fb290f3149 | 50a202e0bc6bfb199363622d07cbc858bcd277f2 | refs/heads/master | 2021-04-12T12:23:49.020561 | 2018-03-30T20:21:50 | 2018-03-30T20:21:50 | 126,643,399 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,296 | py | bl_info = { 'name': 'Qt Integration',
'author': 'Vincent Gires',
'description': 'Qt Integration',
'version': (0, 0, 0),
'blender': (2, 7, 9),
'location': '',
'warning': '',
'wiki_url': '',
'tracker_url': '',
'cat... | [
"subing85@gmail.com"
] | subing85@gmail.com |
00333ebb89e9f206b7a0a0e04c031045f5f683cd | 7949f96ee7feeaa163608dbd256b0b76d1b89258 | /toontown/coghq/DistributedGridAI.py | b09c5b13b7be520586cc519cc09d06bf0bc7ed04 | [] | no_license | xxdecryptionxx/ToontownOnline | 414619744b4c40588f9a86c8e01cb951ffe53e2d | e6c20e6ce56f2320217f2ddde8f632a63848bd6b | refs/heads/master | 2021-01-11T03:08:59.934044 | 2018-07-27T01:26:21 | 2018-07-27T01:26:21 | 71,086,644 | 8 | 10 | null | 2018-06-01T00:13:34 | 2016-10-17T00:39:41 | Python | UTF-8 | Python | false | false | 10,497 | py | # File: t (Python 2.4)
from CrateGlobals import *
from otp.level import DistributedEntityAI
from direct.directnotify import DirectNotifyGlobal
class DistributedGridAI(DistributedEntityAI.DistributedEntityAI):
notify = DirectNotifyGlobal.directNotify.newCategory('DistributedGridAI')
def __init__(self, lev... | [
"fr1tzanatore@aol.com"
] | fr1tzanatore@aol.com |
669beaf3ea25605a65cd83b7b25f54b79271deb5 | d9351a62a2e90b3bc486d4a11a715735108e3851 | /ajaxDemo/ajaxdemo.py | cb4c2f4b7b612e5fee477bf3cd385150aa5baa46 | [] | no_license | mooonpark/flask-demo | b1f3af7692b531f30acc9fb4b05c0aa335ed8edd | 07f30428df72d3b7d663234f4b7510610ae48d5d | refs/heads/master | 2021-06-20T20:57:44.872229 | 2017-08-06T06:35:00 | 2017-08-06T06:35:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | from flask import Flask, jsonify, render_template, request
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')
@app.route('/_add_numbers')
def add_numbers():
a = request.args.get('a', 0, type=int)
b = request.args.get('b', 0, type=int)
return jsonify(result=a+b)
... | [
"liushuangmail@126.com"
] | liushuangmail@126.com |
a49b1655f351657ebc0aa3a89a0e6034ae07f6ed | 439d363d13eb643cee2ef6027c016904ce6dfc4e | /gRNAtoOligo.py | 4f08aaf0bfaf3794413a08f19228cc48f3692a3f | [] | no_license | allgenesconsidered/gRNAtoOligo | 4cb3560e8dc8925f0112308b18502cd6529051dd | 9f44c5447cc90986738605fad1b9b16b6e2bac97 | refs/heads/master | 2021-01-11T06:24:47.316587 | 2017-02-23T22:05:48 | 2017-02-23T22:05:48 | 69,590,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,960 | py | from __future__ import print_function, division
import pandas as pd
from os.path import dirname, basename
import sys, csv, re, argparse
def parseFile(doc):
"""
Input: Document of gRNAs (for now, a .csv).
Output: panda df with gRNA and names
"""
if not '.csv' in basename(doc):
raise IOError(
"Please convert ... | [
"allgenesconsidered@gmail.com"
] | allgenesconsidered@gmail.com |
018a7e833574ab840bbdb00dcefad15b440f8303 | f673c526701163c1ce94608a2af3181a78bdf40f | /examples/statemachine/documentSignoffDemo.py | 58aa2088fc67a4985acd454f80e238c85c402a04 | [
"MIT"
] | permissive | nikiluc/pyparsing | 01df25c5dd1f087fb5dacac834aa41c6e325c4a3 | adf8dd00b736ba1934914e1db78528af02662b65 | refs/heads/master | 2020-05-07T19:33:14.489282 | 2019-04-07T18:45:07 | 2019-04-07T18:45:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,523 | py | #
# documentSignoffDemo.py
#
# Example of a state machine modeling the state of a document in a document
# control system, using named state transitions
#
import statemachine
import documentsignoffstate
class Document:
def __init__(self):
# start light in Red state
self._state = documentsignoffsta... | [
"ptmcg@austin.rr.com"
] | ptmcg@austin.rr.com |
44f8298f84297e99a2d2c81e62f01a2c0c474552 | 7dfef87d8ea1436c3610cb221b24ed37f6722f8b | /backend/feature/database.py | 08c5cb842c7f0a03a1e9fd0456fb19dc24f26d7f | [
"MIT"
] | permissive | weihuan830/LAK-2020 | 240136e1b682411d80cfd9aa01d5099477fc730b | b36b3e3234f4589b6f3b7fd67e818b6eeca79776 | refs/heads/main | 2023-02-11T14:58:00.859433 | 2021-01-14T14:15:50 | 2021-01-14T14:15:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,124 | py | import pymongo
from pymongo import MongoClient
def userSequenceByUidPid(userid, problemid):
client = MongoClient("127.0.0.1", 27017)
db = client.trumptech
collection = db.records
cursor = collection.find({"userid":userid, "d_source":problemid}, {"_id":0,"pageX":1,"pageY":1,"type":1})
return list(cu... | [
"weihuan.luositing@gmail.com"
] | weihuan.luositing@gmail.com |
40cd31bcd64b58fe57787fb1f99f3698c6dae001 | 6b89e007ca00754e7578add541b771c389055d62 | /tests/splitDrillFileTest.py | e34fcbe9d794c641e29eafa189e72dd8d746ebdb | [] | no_license | andyalexander/gcodeParser | 28e0c093c62d8bb6ccc633425529d76e0fa3241c | 7ff7e3a589ff6e16d2d51fd8230a342bcb2c260a | refs/heads/master | 2021-01-10T13:50:09.082117 | 2015-09-23T21:57:22 | 2015-09-23T21:57:22 | 43,025,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | __author__ = 'Andrew'
from splitDrillFile import splitDrillFile
path = r"../files"
fn = "reflow_controller.top.drill.gcode"
fnIn = path + '/' + fn
splitDrillFile(fnIn, True)
| [
"andrew@homeemail.me.uk"
] | andrew@homeemail.me.uk |
4647a6afa7a22d863f5a25b077b14361588c742e | 63f9a0d150cbef75f4e6e8246dc7ecac3f3b6d09 | /python/ray/tune/examples/mxnet_example.py | a8639c618f8ab3c596924d4383a087f4eb996877 | [
"Apache-2.0",
"MIT"
] | permissive | ray-project/maze-raylit | 79f0a5af9fe4bdc13a2d5b3919da867ed5439aab | a03cd14a50d87d58effea1d749391af530d7609c | refs/heads/master | 2023-01-23T04:23:35.178501 | 2020-12-04T22:34:14 | 2020-12-04T22:34:14 | 318,274,659 | 5 | 0 | Apache-2.0 | 2020-12-04T22:34:15 | 2020-12-03T17:47:58 | Python | UTF-8 | Python | false | false | 2,963 | py | import mxnet as mx
from ray import tune, logger
from ray.tune.integration.mxnet import TuneCheckpointCallback, \
TuneReportCallback
from ray.tune.schedulers import ASHAScheduler
def train_mnist_mxnet(config, mnist, num_epochs=10):
batch_size = config["batch_size"]
train_iter = mx.io.NDArrayIter(
... | [
"noreply@github.com"
] | noreply@github.com |
22fe8f97d897364e3f5210e66debabccab2dde5d | 7aa031cb4d132bf0d27a800fcbce2b847cab4562 | /NBodySim.py | ba608d2758b877427d28d987351efe587c5d2e2a | [] | no_license | samirjohnson/Ph22_Repository | 7ef39d7d30cb5c2d3beb055c50ba0ad40cd22df1 | 90de66b608e9bb39640871df6576b66a3d7e8ff2 | refs/heads/master | 2021-05-24T16:12:55.421589 | 2020-06-05T22:34:17 | 2020-06-05T22:34:17 | 253,650,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,751 | py | from Vector import *
from SymplecticIntegrator import *
import math
import numpy as np
import matplotlib.pyplot as plt
from random import random
M = 1; G = 1; R = 1; a = 0.1; N = 100; tdyn = math.sqrt(R**3/(G*M*N));
tfinal = 6*math.pi*tdyn; timestep = 0.005; trelax = N / (10 * math.log(N)) * tdyn;
def func(... | [
"noreply@github.com"
] | noreply@github.com |
a3cdc718709cd35dba2b09fedaa48fa75134f80d | fe4e2c7cab09446c6eb51d49f80ec8bbecea7068 | /Song-Processor/nfeibel_202_P5.py | 07fd47c3c264696e16e2ae004044f43c655ad950 | [] | no_license | nfeibel/Python | f2200873c4a353eb628ec01295579742431d7bfd | 9041029f8b936dd47ad52a1066f54637902872fc | refs/heads/main | 2023-02-15T00:16:21.378806 | 2021-01-14T02:30:58 | 2021-01-14T02:30:58 | 329,484,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,782 | py | #-------------------------------------------------------------------------------
# Name: Nick Feibel
# Project 5
# Due Date: 10/31/2019
#-------------------------------------------------------------------------------
# Honor Code Statement: I received no assistance on this assignment that
# violates the ethical g... | [
"noreply@github.com"
] | noreply@github.com |
e5b7ab5bbefba46b68568440aedf0a897e14c2cc | 02b48b9f515406da1c980c4feb9d268f69a4d24d | /tools/alf_plugins/write_to_file/write_to_file.py | 0c1578396b7c43defa656886ed42bdd564654346 | [] | no_license | dspking111/ossie-june | 3b2f12835021b9f26daed019ae637fe17b64dcdb | f14b2a133416df44f411c9d06115bb968cfb7c69 | refs/heads/master | 2020-03-26T07:20:15.300009 | 2012-01-27T20:52:46 | 2012-01-27T20:52:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,498 | py | #!/usr/bin/env python
## Copyright 2007 Virginia Polytechnic Institute and State University
##
## This file is part of the OSSIE ALF write_to_file tool.
##
## OSSIE ALF write_to_file is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the F... | [
"nzneer@gmail.com"
] | nzneer@gmail.com |
60cf113ec864ba308dd3a9eb858b02fec6d69017 | 73b44c96ba8cb8221370fc9b517ba0dd6ae8b6b5 | /rhea/vendor/altera/device_serdes.py | a2e022b40b424c7c4f5491d338e0264b32510192 | [
"MIT"
] | permissive | Vikram9866/rhea | cf07e8f3075a605453b496714fccc08cb9e3af03 | 47edf23d975c3b04e8d4d0399137ead7580e0ef2 | refs/heads/master | 2021-01-17T22:55:15.214226 | 2016-06-19T16:04:00 | 2016-06-19T16:04:00 | 61,488,094 | 1 | 0 | null | 2016-06-20T20:03:40 | 2016-06-19T15:59:23 | Python | UTF-8 | Python | false | false | 376 | py |
from __future__ import absolute_import
from .._device_serdes_prim import device_serdes_input_prim
from .._device_serdes_prim import device_serdes_output_prim
def device_serdes_input(serdes):
prim_inst = device_serdes_input_prim(serdes)
return prim_inst
def device_serdes_output(serdes):
prim_inst = ... | [
"chris.felton@gmail.com"
] | chris.felton@gmail.com |
d5b0a9a8aec526687311ce8c89804dd7cec1eedb | fd2125d194e6da6563f62863cf5fa4e9f7beac3a | /IPList.py | 1f483b15d23322dcabdd02a2107975b326010b23 | [] | no_license | myzhongguo/OpenSaaSAPI | 006e13f4b5271e1e382edfb8044ec84ae71a4de6 | c606ca0e9f6c824806ccae12e0092c1400860eb7 | refs/heads/master | 2020-03-18T01:13:02.220025 | 2017-06-02T08:58:27 | 2017-06-02T08:58:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | # -*- coding: utf-8 -*-
IPAccess = [
"0.0.0.0",
] | [
"sudazhuang1@163.com"
] | sudazhuang1@163.com |
f7bf6095895c712679c0b8ed82e18d1a3b89e999 | 98f730ec6a43d8be4a34b0f2a44a9d35989d2287 | /tests/unit/api/test_policies_api.py | ed585f675a7b9a759f97a8a55947354b12753fd1 | [] | no_license | scottwr98/pynifi-client | 9337a4f322536ee466d419a788b8b5948cdc62d7 | 013ac2ffa591284a0d6cbb9ed552681cc6f91165 | refs/heads/master | 2020-04-18T08:47:03.680749 | 2017-11-04T23:59:58 | 2017-11-04T23:59:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,985 | py | # coding: utf-8
"""
NiFi Rest Api
The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, ... | [
"ajish@rootedinsights.com"
] | ajish@rootedinsights.com |
34a19e920f8df9aa9076fa26e7b77e8971382a7c | c0de3ab530bc9fcf673735f117f0a3cbee08efbb | /ejerci2.py | 6deb00bda68f933e49d0d6aeaea768d9e655dfbf | [] | no_license | matrix231993/tareapython2 | 857e9b4a3493646465c1d5c7733360ba2db84238 | 89e35d712de8e5f8a00ce2b19444cb77e69afe12 | refs/heads/main | 2023-07-30T07:17:32.353403 | 2021-09-20T04:30:22 | 2021-09-20T04:30:22 | 408,204,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py |
#2) Realiza un programa que lea un número impar por teclado. Si el usuario no introduce un número impar, debe repetise el proceso hasta que lo introduzca correctamente.
numero = 0
while numero % 2 == 0:
numero = int(input("Ingrese un número impar: ") ) | [
"josechavez23@outlook.com"
] | josechavez23@outlook.com |
05329e10052643e0d41a74ee7c613e6d110d6847 | 79bceb0af5b658cd45d46bdf7f3fcffb17b7ddf5 | /apps/hello/apps.py | 51fd39919ac4c320019f041a89631d6473c4d8b0 | [] | no_license | 42cc/FortyTwoTestTask | a655d646955a1731ec44111a797e00b19fd5ebee | 5b71a1f8bf3fd15975986f30f8b17732b4805305 | refs/heads/master | 2021-07-05T20:47:48.733401 | 2021-04-23T18:37:41 | 2021-04-23T18:37:41 | 26,122,037 | 2 | 831 | null | 2021-04-23T18:37:42 | 2014-11-03T14:27:30 | Python | UTF-8 | Python | false | false | 90 | py | from django.apps import AppConfig
class HelloConfig(AppConfig):
name = "apps.hello"
| [
"netwintercom@gmail.com"
] | netwintercom@gmail.com |
b3641cc7b3263bdf1d532e504074816ce17a495a | bb7f97a9bf71d05cc4fb479389c31032b70d8e08 | /djangosnippets/cab/urls/bookmarks.py | 160c08f9af3ba841a4bdab77c8dce57a89caabed | [
"BSD-3-Clause"
] | permissive | williamratcliff/scisnippets | 352e584e67e5c3ad1ccbe46f71334eca3982885e | 255f9b80080f608cb015b78b97b95b4806519b31 | refs/heads/master | 2021-01-02T09:32:54.534426 | 2010-11-05T06:56:40 | 2010-11-05T06:56:40 | 1,049,021 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | from django.conf.urls.defaults import *
from cab.views import bookmarks
urlpatterns = patterns('',
url(r'^$',
bookmarks.user_bookmarks,
name='cab_user_bookmarks'),
url(r'^add/(?P<snippet_id>\d+)/$',
bookmarks.add_bookmark,
name='cab_bookmark_add'),
url(r'^delete/(?P<snippet_... | [
"william.ratcliff@gmail.com"
] | william.ratcliff@gmail.com |
80d29ad699bb72bfe60efd725afef7cca6ac3d36 | 969bb0fb57e9d3a59009c327142fe63d96001daf | /app/auth/forms.py | bffd6406e5146d998e51ca7e2ae54ee7a5d1c7a2 | [] | no_license | AnumAsif/watch-list | 96acd78df2166b70c2455ecd463a3440fa438a96 | 446105a03531b106255b64e1285b00d33d74e787 | refs/heads/master | 2020-04-20T05:49:53.266049 | 2019-02-08T13:30:16 | 2019-02-08T13:30:16 | 168,666,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,301 | py | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, SubmitField, BooleanField
from wtforms.validators import Required, Email, EqualTo
from ..models import User
from wtforms import ValidationError
# from RegistrationForm (FLaskform)
class RegistrationForm(FlaskForm):
email = StringField('... | [
"anum@cockar.com"
] | anum@cockar.com |
b6a5232fb03423e27b2bc4dc2b9ee7c6575a3e89 | ebec4fb7b2eb36b0214e7c018dd1a2f9a9f7b67d | /SPLN/aulas_kiko/aula4/exer_aula3-cont MEH.py | c2bfa06a8a9d0195dd590924fe316eab3180774a | [] | no_license | MrBoas/PLC | cb09aaa2440a8711a6ba888a92cdcd2559b0b8cf | 3f77cf1ce96cf8c4bb21ee4ec05f1fc418e9b73e | refs/heads/master | 2022-02-02T10:45:16.322559 | 2019-08-05T15:51:51 | 2019-08-05T15:51:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,349 | py | #!/usr/bin/python3
import re
# Limpar titulo e autor
def clean(file):
text=open(file).read()
text = re.sub(r'\n\d*\n?O SENHOR DOS ANÉIS(?: I)?\n\d*',"",text)
text = re.sub(r'\n\d+\nJ. R. R. TOLKIEN',"",text)
# text = re.sub(r'\n\d+\n',"\n",text)
text = re.sub(r' +',r' ',text)
return text
par_... | [
"fjmo_1997@hotmail.com"
] | fjmo_1997@hotmail.com |
bb0f62e0a3e7fc8450eff2a2d172019dfd01fbdc | fea9a0aea71c1e4c49c78246faf9f2069b9e5d15 | /fullshelf/shop/migrations/0008_auto_20180606_1352.py | dc6c5884a8e056f6ed2255784bf4b72d06f78325 | [] | no_license | CBA222/shopping-aggregator | 3cb8c05751682c70455cbe0ef0142182131599e1 | 4b3c33a484519eb91c30eb29e37c5dc7048f023a | refs/heads/master | 2020-04-16T22:44:15.092997 | 2019-03-16T21:54:48 | 2019-03-16T21:54:48 | 165,981,473 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py | # Generated by Django 2.0.5 on 2018-06-06 13:52
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0007_auto_20180602_1129'),
]
operations = [
migrations.RemoveField(
model_na... | [
"blin.smic@hotmail.com"
] | blin.smic@hotmail.com |
07e878d9a5f9f25899a092ea350dc879418b05b0 | fffdd07b462ff5df3e87511d8399328b67a52dfc | /run_script.py | 0aa35d6a460364aa7f2dd2a3ffa1774e40b59fe4 | [] | no_license | thebjm/HomeSecurity | 29f8506adb141deb90e6adc6acad7ff894d4ce3e | 199e42f0a530325b7a0b19e53067317eb486ef94 | refs/heads/master | 2020-08-21T00:36:29.763179 | 2019-10-18T18:33:13 | 2019-10-18T18:33:13 | 216,082,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,585 | py | #!/usr/bin/python3
import subprocess
import os
import time
import RPi.GPIO as GPIO
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
mail = os.path.join(BASE_DIR, 'mail.py')
target = os.path.join(BASE_DIR, 'recognize_video.py')
print(target)
GPIO.setmode(GPIO.BCM)
servo = 4
pir_sensor = 17
piezo = 27
pushbtn =... | [
"noreply@github.com"
] | noreply@github.com |
a5700105db1ed5b4cb1c283c8f04460173e54956 | 7dc1854d63a4d13e939354ee3fbbbdf0222b62cf | /train.py | 64a553da899439fa867ab46d77d1d408aad9f56e | [] | no_license | samuelvinicius777/classificador_dogs_cats | bf2e04793bd47c32d0232a0df52fc51356d5bb4c | 19d4e7ae0a2341163dbc2aad631d0b18bce8dba2 | refs/heads/master | 2023-07-15T15:32:27.337766 | 2021-08-30T01:22:30 | 2021-08-30T01:22:30 | 400,398,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,814 | py | # https://github.com/samuelvinicius777/classificador_dogs_cats.git
# Carregandos imports
import tensorflow as tf
import matplotlib.pyplot as plt
import numpy as np
import cv2
import os
from tensorflow.keras.preprocessing.image import ImageDataGenerator
from tensorflow.keras.preprocessing import image
from tensorflow.k... | [
"69094525+samuelvinicius777@users.noreply.github.com"
] | 69094525+samuelvinicius777@users.noreply.github.com |
1830bb394a72fc8c8712b10b63aabefbb67a8f1b | a1d34642f258cc3cdf58ba5f6cddee6e2e4ec76f | /Portfolio_VaR_Toolv4.py | aedae2f60afbc6ebe76681bcd3ef9f133a5c683b | [] | no_license | royopa/Python_Portfolio__VaR_Tool | a4133e7a4da11d357d9030589241d4ad8da068ef | e797d43e25f35b391b48c3697e0c0f68d9c10b6a | refs/heads/master | 2021-07-03T01:12:27.500950 | 2018-10-30T07:30:49 | 2018-10-30T07:30:49 | 169,900,791 | 1 | 1 | null | 2019-02-09T18:46:02 | 2019-02-09T18:46:02 | null | UTF-8 | Python | false | false | 33,428 | py |
import datetime
import pandas as pd
from pandas.tseries.offsets import BDay
import pandas_datareader.data as web
import numpy as np
import math
import matplotlib as plt
import matplotlib.dates as mdates
from matplotlib import cm as cm
from matplotlib.figure import Figure
from matplotlib.backends.backend_wxagg import F... | [
"noreply@github.com"
] | noreply@github.com |
f315bd7932192543dd844061a0c1e9ca384a68cb | fe039d4ba46deb5f184f5330ebd044663078bb50 | /nerTagger.py | 8d12fa592d21573e6518469a8451d7f15f11c209 | [] | no_license | anishsaha12/hindi-bank-chatbot | 81317dc2220897fe722e6eec907d2565cc0a33f5 | d16f553297a617098cc61c33c2cfa0121114d818 | refs/heads/master | 2022-11-15T22:13:29.804780 | 2020-07-15T14:46:39 | 2020-07-15T14:46:39 | 275,863,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,437 | py | import pickle
import numpy as np
from keras.models import load_model
from keras.preprocessing.sequence import pad_sequences
from posTagger import *
with open('nerTagger/max_len.pkl', 'rb') as f:
max_len = pickle.load(f)
with open('nerTagger/max_len_char_prefix.pkl', 'rb') as f:
max_len_char_prefix = pickle.lo... | [
"anishsaha12@gmail.com"
] | anishsaha12@gmail.com |
50f4234ba65b18f9731d6d8d9726096e4ff88174 | 89cd8b77ad5171c336cc60b2133fe6468a6cb53f | /AirBattle_Demo/07-抽取模型.py | 4ce4d8dedbe2faac02e51b1e65733fe0b97115f6 | [
"MIT"
] | permissive | fenglihanxiao/Python | 75178f6b6b0c53345e1ed54226ea645216572d6c | 872baf3a3a5ee42740161152605ca2b1ddf4cd30 | refs/heads/master | 2021-05-23T18:49:20.656433 | 2020-04-29T01:06:21 | 2020-04-29T01:06:21 | 253,199,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,598 | py | """
飞机大战——传智播客·黑马程序员出品
"""
import sys # 导入系统模块
import pygame # 导入pygame模块
import pygame.locals # 导入pygame本地策略
# from pygame.locals import *
APP_ICON = "res/app.ico" # 设计公共的图片常量,定义在文件中,方便管理
IMG_BACKGROUND = "res/img_bg_level_1.jpg" # 设计公共的图片常量,定义在文件中,方便管理
# TODO 2.创建所有显示的图形父类Model
class Model:
window =... | [
"fenglihanxiao@qq.com"
] | fenglihanxiao@qq.com |
babb4edc8375a09c12a27e9a4a0fca74a59ff456 | 0ec8af881e552cd1aeef75f9fbfe63172a72b6ff | /Chapter04/gather.py | 52f60f9d5f3e3268edda593a5ebe8fafee509e84 | [
"MIT"
] | permissive | gridl/Python-Parallel-Programming-Cookbook-Second-Edition | 3d26b7a1b3b9aef7975aa97922dfc7d9ff10dedd | cccf14fada24b9f2c12ace5ff9b8f4334cae1da2 | refs/heads/master | 2020-07-05T09:57:35.121344 | 2019-07-26T14:08:57 | 2019-07-26T14:08:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | from mpi4py import MPI
comm = MPI.COMM_WORLD
size = comm.Get_size()
rank = comm.Get_rank()
data = (rank+1)**2
data = comm.gather(data, root=0)
if rank == 0:
print ("rank = %s " %rank +\
"...receiving data to other process")
for i in range(1,size):
#value = data[i]
print(" process %s recei... | [
"35489117+gaurav-packt@users.noreply.github.com"
] | 35489117+gaurav-packt@users.noreply.github.com |
8d291cdccecb664a81a8a9dc57ef536d88f22907 | b89474ef844f3b860b0027e46206ae0aa911dfd3 | /DataStructures and Algorithms Using Python/Day 1/store_marks.py | 74f7cb9e9e0260e97505fd42e74b3ccbcef39892 | [] | no_license | AgentT30/InfyTq-Foundation_Courses | 6e2574fca0dc5ff1126d1e910d5086e695921dce | a676478df0c083839ebe56ee3dcb9fffd2307390 | refs/heads/master | 2022-12-01T11:28:06.052658 | 2020-08-13T04:41:34 | 2020-08-13T04:41:34 | 287,181,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | def update_mark_list(mark_list, new_element, pos):
mark_list.insert(pos, new_element)
return mark_list
def find_mark(mark_list, pos1, pos2):
return [mark_list[pos1], mark_list[pos2]]
# Provide different values for the variables and test your program
mark_list = [89, 78, 99, 76, 77, 72, 88, 99]
new_el... | [
"cthekkunja304@gmail.com"
] | cthekkunja304@gmail.com |
7f9f050dabcf470350cad0530c1bacaedf380699 | c100b41ac9c3686a97a91ceaf38ac08654779c45 | /button | bcf4d9548db001d1785d5a97a533d60142d4e058 | [] | no_license | enderwing/raspberry-pi-projects | 2d3c33623c3ec6309669ee95311a0bff5425dc88 | d67e9b3c55b73dd9a4316d0a872d4c6683d384e1 | refs/heads/master | 2021-01-16T21:23:57.958808 | 2017-11-09T19:42:56 | 2017-11-09T19:42:56 | 38,697,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | #!/usr/bin/env python3
import RPi.GPIO as GPIO
import time as t
GPIO.setmode(GPIO.BCM)
GPIO.setup(26, GPIO.IN)
count = 0
while True:
input = GPIO.input(26)
if input == True:
count += 1
print("Pressed: " + str(count) + " times")
t.sleep(0.5)
| [
"enderwing1@gmail.com"
] | enderwing1@gmail.com | |
9b99b2aeef5a36a5e2a204a7692ce3647e4a4ac5 | 79ee6fe7d3fcb4ca0df5501941e4e069bc3378b3 | /01-donar-search/visuals.py | d347dd1b5a6c77f1fecd91d9dfa4a51ca3bfebbe | [] | no_license | dingdl/ds-learning-projects | 501ef041e4b18408534fda3bf252fd2e1d4c322e | 7533581389f0ec1df86e7ccb22b3f92b5a4309df | refs/heads/master | 2022-12-31T12:46:14.144953 | 2020-10-20T07:26:47 | 2020-10-20T07:26:47 | 271,525,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,397 | py | ###########################################
# Suppress matplotlib user warnings
# Necessary for newer version of matplotlib
import warnings
warnings.filterwarnings("ignore", category = UserWarning, module = "matplotlib")
#
# Display inline matplotlib plots with IPython
from IPython import get_ipython
get_ipython().run_... | [
"luo.ding@outlook.com"
] | luo.ding@outlook.com |
8b84974960ab4670c153766baa45d4edbe1447d2 | ece82340214eb823a245a12aa15f86052ff93e90 | /app/accounts/serializers.py | 289095e73bf9ba7aa1a0066e0c2d9829c3ef6cb6 | [] | no_license | M-Moein-M/django-wechange | 37bde4f56773f144a3c2fc18e29efb2b3bda29a4 | e030e2e11e7b32d16a55a97055382b97c41c7b9c | refs/heads/master | 2023-07-28T04:52:21.975770 | 2021-09-10T06:07:17 | 2021-09-10T06:07:17 | 402,376,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | from rest_framework import serializers
from django.contrib.auth.models import User
from core.models import Profile
class UserSerializer(serializers.ModelSerializer):
"""Serializer for User model"""
class Meta:
model = User
fields = ['id', 'username', 'email']
read_only_fields = ['id']... | [
"mohammadmoein.moradi@gmail.com"
] | mohammadmoein.moradi@gmail.com |
1e82fbb61dcfee01d4b4e3eeed7d289c4d825811 | 71c4e18cb0e059a47195a64e799629c86db54e76 | /tests/test_medleydb_pitch.py | f2e05d05b95d2078062a934a1f8b6b805580697c | [
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | TheagaoMIR/mirdata | 5b68a32de96033d44913e3e9259cb3e3f153cd04 | d1b7e2059762b7398e5fa7967947f4e25043c0be | refs/heads/master | 2022-05-27T21:53:57.144554 | 2019-06-26T20:04:49 | 2019-06-26T20:04:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | from __future__ import absolute_import
import os
import pytest
from mirdata import medleydb_pitch, utils
from tests.test_utils import mock_validated, mock_validator
@pytest.fixture
def mock_validate(mocker):
return mocker.patch.object(medleydb_pitch, 'validate')
@pytest.fixture
def data_home(tmpdir):
ret... | [
"noreply@github.com"
] | noreply@github.com |
14f645240d248751bd612aa5bfef0050ddf1eb72 | eb84ce60ea926e59ab299a2e1b74c80348bd1788 | /src/main.py | 8fe68ac16e9f10af843d3fe592fecbc3ad361fe4 | [] | no_license | zhvkgj/test-task | 83f6f2f8d3f0f6a987f8de089b7552251cfa7f44 | 598f0e9523f28de1894fb20b2bd90eabb4e342fe | refs/heads/main | 2023-03-16T12:33:55.708863 | 2021-03-07T20:26:56 | 2021-03-07T20:26:56 | 345,441,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,532 | py | import sys
from collections import namedtuple
from radon.raw import analyze, Module
from radon.metrics import mi_visit, mi_rank
from radon.complexity import cc_visit, cc_rank
from radon.cli.tools import iter_filenames
def analyze_directory(name: str, exclude=None, ignore=None):
"""Iter through filenames starting... | [
"zhvkgj@yandex.ru"
] | zhvkgj@yandex.ru |
dffed13817ad16821e54303c7bd4dcbc1398cce3 | 085be96bab2b8a9880d002c7cc089619983866f8 | /core/migrations/0011_auto_20200923_2215.py | f1746b5c8e6690b257844cafe309454223187ac0 | [] | no_license | Naman-Monga/forum-clone-django | 3d19b92af1bd2f2ce9409804221d4a420437c149 | 4e705f40696995a75b33bc01cb60a47923c1e60b | refs/heads/master | 2022-12-20T08:23:38.940467 | 2020-10-02T06:35:14 | 2020-10-02T06:35:14 | 297,880,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | # Generated by Django 3.1.1 on 2020-09-23 16:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0010_userprofile_ans_upvoted'),
]
operations = [
migrations.AddField(
model_name='userprofile',
name='fname'... | [
"namanmonga27@gmail.com"
] | namanmonga27@gmail.com |
d762d56e3d99ec560babfc608a2657f9fc44a751 | d7016f69993570a1c55974582cda899ff70907ec | /sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2019_09_01/models/__init__.py | 3167e9fc085a2acf7f385f26d438de6efe4e1593 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 5,397 | py | # 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 ... | [
"noreply@github.com"
] | noreply@github.com |
c86170ab17c8fbe779c49babd5e821ef631247f6 | f5a5d270d4d6e4a066359b0b43ba73f6511ed1de | /bin/classify.py | a0dd78c64c3d21edf05d70c6e44be078a51551d4 | [] | no_license | wkodate/Juminhyo | 72ad7f29f38880e0b4946d0793836e0c7c0f7de3 | c515e6b0ef4a19082d75ec80ffb0237aad007e95 | HEAD | 2016-09-06T02:17:35.534011 | 2014-12-13T10:42:58 | 2014-12-13T10:42:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
sys.path.append("/Users/wkodate/Develop/Juminhyo/classes")
import twitterapi
import classifier
argvs = sys.argv
argc = len(argvs)
def printDebug():
print 'Usage: python %s <account>' % argvs[0]
quit()
if argc != 2:
printDebug()
account = argvs[... | [
"n9lfcth9@gmail.com"
] | n9lfcth9@gmail.com |
76074538499b5f4cf5f15686dc1159da4845c032 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/decalogu.py | 20a8a4306b46289efb9fa1b83691b0139bf4b807 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 100 | py | ii = [('CarlTFR.py', 1), ('GrimSLE.py', 1), ('CrokTPS.py', 1), ('MereHHB.py', 1), ('ThomWEC.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
2f1a769560876d03cb82983a4c69c96188ce8cfa | 3fbca797017e49cd12209386fbbab5980aa04aa2 | /fabfile.py | deeb1f0ff19f411607574b2ef37a42963fe50876 | [] | no_license | fylaw/awesome-python-webapp | 65ebfb48d082b37cddaf0b33fb4cdd91c5f64c2a | 4fe83511bfcc3065b88486e0a3094f2c9b7b3e18 | refs/heads/master | 2020-03-15T04:15:53.946190 | 2018-05-22T08:16:16 | 2018-05-22T08:16:16 | 131,961,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | true | false | 2,276 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
__author__ = 'y'
import os, re
from datetime import datetime
from fabric.api import env, local, lcd, settings, put, run, cd, get, sudo
from invoke import task
# 服务器用户
env.user = 'root'
env.sudo_user='root'
env.hosts=['awesome-python-webapp.mlb.com']
_TAR_FILE = 'dist-a... | [
"cnbjyez@gmail.com"
] | cnbjyez@gmail.com |
46e78e315c056d7e98c0e40a4e9a68c78e975f54 | 009df7ad499b19a4df066160cf0c7d8b20355dfb | /src/the_tale/the_tale/accounts/friends/views.py | 56066cebec413f9bbcf9f42dad449e0df61434c3 | [
"BSD-3-Clause"
] | permissive | devapromix/the-tale | c0804c7475e877f12f29444ddbbba025561d3412 | 2a10efd3270734f8cf482b4cfbc5353ef8f0494c | refs/heads/develop | 2020-03-28T20:26:30.492292 | 2018-10-07T17:32:46 | 2018-10-07T17:32:46 | 149,070,887 | 1 | 0 | BSD-3-Clause | 2018-10-07T17:32:47 | 2018-09-17T04:57:50 | Python | UTF-8 | Python | false | false | 4,157 | py |
import smart_imports
smart_imports.all()
class FriendsResource(utils_resources.Resource):
@utils_decorators.login_required
@accounts_views.validate_fast_account()
def initialize(self, *args, **kwargs):
super(FriendsResource, self).initialize(*args, **kwargs)
@dext_old_views.handler('', met... | [
"a.eletsky@gmail.com"
] | a.eletsky@gmail.com |
00485b88423f11e87d3f8364cb04b9faf59ad77a | be72227efe777774aeb8acc3b0ef3133803871c1 | /timelapse.py | cc6fe9622ad6267e45f370836742cab7bedba8f4 | [] | no_license | nicgaudio/foundry-bot | 2f634f1b128fb8a02b5b39405e6cbe5520cd20c5 | 02b266400c98ec606a587721a1130e1229ccb484 | refs/heads/master | 2022-04-17T01:05:07.017995 | 2020-04-15T16:29:52 | 2020-04-15T16:29:52 | 255,972,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,145 | py | #Timelapse script for 3D print captures
#Run on Raspberry pi
#Import peripheral modules
# from picamera import PiCamera
import dropbox
from dotenv import load_dotenv
#Standard imports
import os
from os import system
import argparse
from time import sleep
import logging as log
#Load .env
load_dotenv()
# #Define arg ... | [
"nicgaudio@gmail.com"
] | nicgaudio@gmail.com |
d84ce3c2229a57a35bcbab2aa2380cb1dbd8ac6a | 06e0c89781ae9c07a55090c43d8609e9dfefbb6f | /School_13/School_13/urls.py | e2644ac2d642e915d18468194c0d27885be0f873 | [] | no_license | mfarzamalam/django | d6d4302910301ae3e135a95a9982f3bd01218260 | 935a60d3ac874b7adb4287b4c2d172b89c6551b9 | refs/heads/master | 2023-04-10T21:06:11.601436 | 2021-04-27T21:31:47 | 2021-04-27T21:31:47 | 345,129,992 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | """School_13 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"mfarzamalam@gmail.com"
] | mfarzamalam@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.