blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
818657e277840e11174c5f6d239c39a9b39f8b59 | d445862efb3d2970184e9cf2c6ed5ffa3fbc5b16 | /flaskblog/models.py | f1bf45e144db3bf9bced5f19d6a0d7bfc43763bc | [] | no_license | abhinavk001/Flaskblog | 01297ccc810045461200f118881ed9599206936d | 09fbc1f0429ea6c7e84a5a23c0cfd0025ffd4491 | refs/heads/main | 2023-01-12T15:38:04.594525 | 2020-11-21T05:09:50 | 2020-11-21T05:09:50 | 313,699,034 | 0 | 1 | null | 2020-11-21T05:09:51 | 2020-11-17T17:51:21 | HTML | UTF-8 | Python | false | false | 1,778 | py | from datetime import datetime
import pytz
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer
from flask import current_app
from flaskblog import db, login_manager
from flask_login import UserMixin
@login_manager.user_loader
def load_user(user_id):
return User.query.get(int(user_id))
class Us... | [
"godofwars0017@gmail.com"
] | godofwars0017@gmail.com |
e96a934f3c2c33f4107aa1d4e1c91107fa3083ee | 10d17864a685c025bb77959545f74b797f1d6077 | /capitulo 09/09.39.py | 958b1c899df533fdaa5051df081ab12640d19d01 | [] | no_license | jcicerof/IntroducaoPython | 02178d2dfcaa014587edbd3090c517089ccef7c2 | 02e619c7c17e74acdc3268fbfae9ab624a3601dd | refs/heads/master | 2020-04-24T18:12:21.422079 | 2019-02-23T05:14:43 | 2019-02-23T05:14:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | ##############################################################################
# Parte do livro Introdução à Programação com Python
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2019
# Primeira edição - Novembro/2010 - ISBN 978-85-7522-250-8
# Segunda edição - Junho/2014 - ISBN 978-85-7522-408-3
# Terce... | [
"jose.cicero@gmail.com"
] | jose.cicero@gmail.com |
3d65d74d70ae98884bedfe6b4893adc504e45293 | b0dec04a6d705d5f61a3ec0793c613745871db28 | /PythonTestScripts/venv/Scripts/easy_install-script.py | 651b092909ff9d3b56a69107df5fd232b30325fa | [] | no_license | VeyselKayaturk/DataBoss | abedf19d35e9bacabc06bec042b9b61ff8d6e8b3 | 948a915ddd85b46129d427bbf3854a20b788d6ee | refs/heads/master | 2023-02-28T11:32:19.346033 | 2021-01-31T18:32:52 | 2021-01-31T18:32:52 | 334,718,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | #!C:\Users\veysel\DataBoss\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==28.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', s... | [
"veysel_kayaturk@hotmail.com"
] | veysel_kayaturk@hotmail.com |
0608037a4fd1450b915c965d8feff2eace74b368 | 89bc3d20aca14a04bcb40cf756df5291299ed901 | /event_handler.py | dc7650d6a74c40257ef40b284fafec84c0d18399 | [] | no_license | Igluminati/WeObserve | a986c054d9c069fddb78c40412c1cea4dba52577 | 4e6a0d56b00c4a8e95e140d33a13f3cfe88b282b | refs/heads/main | 2023-06-14T13:23:43.486375 | 2021-07-08T10:40:16 | 2021-07-08T10:40:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,175 | py | import watchdog.events, watchdog.observers, os.path, time, socket, datetime
hostname = socket.gethostname()
IPAddr = socket.gethostbyname(hostname)
# Handles Events:
class Events(watchdog.events.PatternMatchingEventHandler):
fucky_endings = {"swp","swx", "swpx"}
def __init__(self):
#... | [
"noreply@github.com"
] | Igluminati.noreply@github.com |
b2559814942217b99314c72521b236d547d3f899 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_symbolising.py | 77549569cc24bdea8347e94d79e7aa93a485c531 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py |
#calss header
class _SYMBOLISING():
def __init__(self,):
self.name = "SYMBOLISING"
self.definitions = symbolise
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['symbolise']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
efffd98635cae516be11bfc3ea1fd3069065a97f | c7787d7e2517cc909d0514e8f45ff96505b40eb0 | /Deep Neural Network/nn/optimizer.py | 4834ed2dbc58c6eb8390658526aa6ce2e039812d | [] | no_license | zhoubaohang/deep-learning-notes | 5037b6a91e83dba2856b7aaee2e9162bac967dad | d912a0dff206f3ff689a8e9ce59aa20f50e87000 | refs/heads/master | 2020-03-28T05:31:55.630779 | 2018-11-09T14:33:35 | 2018-11-09T14:33:35 | 147,782,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,850 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Sep 27 18:34:19 2018
@author: 周宝航
"""
import numpy as np
class Momentem(object):
def __init__(self, shape_vw, shape_vb, beta=0.9):
self.beta = beta
self.vw = np.zeros(shape_vw)
self.vb = np.zeros(shape_vb)
def getWeight(sel... | [
"zbh12306@163.com"
] | zbh12306@163.com |
92babcab54a5514ed755293c6bbcce524d10149b | db3551a44acfcec1eaee6bbbc35efad594d1496c | /data/es_data_processing.py | 2a2612d8ae1f942ec628d77e4d275049176f1b33 | [] | no_license | chesiver/CS6400_Travel_Recommend | 859febfb5cfd54e63ff34ea89f4d53654dbe7742 | ce6d11c080dc1edc8db79c3abe45f289e894d47d | refs/heads/master | 2021-05-15T19:00:17.248979 | 2017-12-07T18:51:40 | 2017-12-07T18:51:40 | 107,738,694 | 0 | 1 | null | 2017-12-07T18:51:41 | 2017-10-21T00:24:31 | HTML | UTF-8 | Python | false | false | 1,962 | py | import pandas as pd
data = pd.read_csv('data/1.csv')
data['id'] = data.index
data = data[['id','name','city', 'country', 'intro']]
filename = "destinations.data"
with open(filename, mode="wb") as outfile:
outfile.write(data.to_json(orient='records', lines = True))
cities = data['city'].drop_duplicates()
cities.in... | [
"chli4250@uni.sydney.edu.au"
] | chli4250@uni.sydney.edu.au |
90c5ddfa0aa0c5bc388b6a212b9985fad2221620 | 4f837af7475b627f354118d13fec8dbff834abd4 | /wechat_spider/history_articles_spider.py | 401f00ea71eeaf549a0f26c3ddef47094e0d93c1 | [] | no_license | DevRoss/spider | 7396149265faa164234d21ea25c89d088ac4544b | d4f52695ca838035ecd0cd002e27f9c81d7d4846 | refs/heads/master | 2020-04-05T11:22:44.407261 | 2017-08-10T03:53:04 | 2017-08-10T03:53:04 | 81,425,612 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,016 | py | import requests
from bs4 import BeautifulSoup
import re
import json
params = {
'SCAU': {
'biz': 'MzIyMjEwMjYxMA',
'uin': 'MjIxMDM2OTM2MQ%3D%3D',
'key': 'bfaceaac636432aaf7364292606c0d1679d45c845fee535185129bdd102d4e3fd3888d978c9d1469deab7d1afc7becd835ba69e50551595eefca33ea38e7851c341b3344d6... | [
"820584458@qq.com"
] | 820584458@qq.com |
3e14063ca00f455ff9db9ed329d5f1846980859c | fd87d932a9089a6a6855ae28a1d46d558349f40d | /pym/scripts/pym.py | 300be0b5fa1d99c643ffc010a634371786349182 | [] | no_license | dmdm/Parenchym | c66b83d330495891002c09e4c0dae78ebf3c0d1f | 63864cdaff76b9aa1b8dbe795eb537b5be5add3a | refs/heads/master | 2020-04-06T15:32:28.762265 | 2014-12-18T22:58:17 | 2014-12-18T22:58:17 | 22,520,527 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 13,327 | py | # -*- coding: utf-8 -*-
"""
``pym`` has several sub-commands to manage your Pym setup: you can
manage principals (users), roles and role memberships as well as install new
sites and check the integrity of existing sites.
The sub-commands are::
list-principals List principals
create-principal Create... | [
"dmakowski@gmx.net"
] | dmakowski@gmx.net |
4cca625f6ace6606c02435c3a6d04ccab7d31b8e | f29bae8e7440e99491f19cf2f28f92b816389628 | /users/admin.py | a4dd70ed94f69a0d66cd9ef43502b1fab2d99640 | [] | no_license | AmulMittal/GrocerizeR | 70b731b13088e228220df43c9016886dccf02c48 | dcd6c0cd7cfef6f07cd368cee2d6b6ca111a2214 | refs/heads/master | 2023-05-31T23:32:33.480593 | 2021-06-09T09:11:45 | 2021-06-09T09:11:45 | 374,734,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 908 | py | # users/admin.py
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.contrib.auth.models import Group
from django.contrib import admin
from users.forms import UserChangeForm, UserCreationForm
from users.models import User
class UserAdmin(BaseUserAdmin):
form = UserChangeForm
add_form =... | [
"amul.smart@gmail.com"
] | amul.smart@gmail.com |
552e505788d948bf31399ff002e7d8a56d6784b2 | df5fd00119006a2ffb6d18a8464d8c48e20f4c8c | /uzdevumi/uzd_05_03.py | ebe49ed75cc7f1a5096aecfd8a76fe981e2d86d4 | [] | no_license | Spector255/izdruka | 0dccbf6d807336f7fe72f9b1f60a6b8ccdd89f2d | 18371da7851c94ff93930f308841aba609cc3e4a | refs/heads/master | 2023-04-26T10:15:59.838338 | 2021-05-27T08:56:43 | 2021-05-27T08:56:43 | 328,662,665 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,338 | py | #Klients pieejot pie kases norāda, vai ir pieejama klienta karte.
#Klients pērk N preces. Klientu karte, katrai precei dod 11% atlaidi.
#Ja pērk vismaz 3 gabalus vai 3 kg ir 5% atlaide, taču, ja ir arī klientu karte tad 15% atlaide.
#Klients ievada preces nosaukumu, cenu (bez atlaides) un daudzumu.
#Programma izvada pi... | [
"daniks255@inbox.lv"
] | daniks255@inbox.lv |
c4d4aada8fe620856ab682e25557de2e5034c076 | d042706db30773bd677c6c8d1eb90018391b1ebf | /food/migrations/0011_remove_userprofile_userid.py | 1e4271272a59f284183ecdeaa5d2a23b3ab486ad | [] | no_license | prolaysaha/Canteen-Management-System-Django | dee94b7858491351edae6f4b5325f6c3dbcec984 | c4bdca299ffb062e76604d391a0bf088f332a6b8 | refs/heads/main | 2023-08-20T22:33:12.531929 | 2021-10-17T17:40:33 | 2021-10-17T17:40:33 | 418,207,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | # Generated by Django 3.0.5 on 2020-04-11 19:57
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('food', '0010_userprofile'),
]
operations = [
migrations.RemoveField(
model_name='userprofile',
name='userid',
),
... | [
"prolaysaha68@gmail.com"
] | prolaysaha68@gmail.com |
22818600f9f264fa75297d122dea89347b0822ea | d3e0794ab3654393c11d227357701762142b626e | /user001/scripts/dash/screens/scheduler/objects.py | 2424c5093ffabee7b0ddf41202dd2a7f19bd6f54 | [] | no_license | aleksProsk/projectHydroOpt | 09604096847cc0726eda6a912f7a1f30a4f5bac6 | aa6f6b7c98567c66f2d0ed60bc5621e5b9bbbb90 | refs/heads/master | 2020-03-26T11:12:16.966021 | 2018-09-11T15:37:30 | 2018-09-11T15:37:30 | 144,833,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | objects = [
{
'object': 'reservoirInputTypeDropdown',
'type': 'CDropdown',
},
{
'object': 'performanceSettingsDropdown',
'type': 'CDropdown',
},
{
'object': 'reservoirInputTypeDropdown',
'type': 'CDropdown',
},
{
'object': 'datePicker',... | [
"alexandriksasha@mail.ru"
] | alexandriksasha@mail.ru |
a4a55a6035f40c5b04aa62febab0769feb9879e7 | 5483f140c3ae34304cd85fe61b70259b688ff455 | /propiedades/migrations/0001_initial.py | a3173b9d4b7fe238042e50bd273b6cd74dd9602b | [] | no_license | inframazing/truehome-test-api | d2b72e4d22213430f6d9979c49f9d51e7ff8ed6a | 29e5000f8cee76fe1ee9b96dae0ac18828a91fc3 | refs/heads/master | 2020-12-21T17:57:31.546592 | 2020-01-27T14:48:14 | 2020-01-27T14:48:14 | 236,512,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | # Generated by Django 3.0.2 on 2020-01-25 23:05
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Propiedad',
fields=[
('id', models.AutoFiel... | [
"inframazing@gmail.com"
] | inframazing@gmail.com |
393fb345917b7098f1abe268a275728ddb549849 | 92efbf5b96cb59c29bc0e20da5f9cf2ff67d5e13 | /chapter4/4.6/HelloProj/com/pkg1/hello.py | 7c5d28aabd3c70de9870cd293471bed102718581 | [] | no_license | chawlau/python_expert | 474cfcecf8093543cb593078a6b9c2b32de7fd98 | 3261a33661576a0da41119c967e074cd6e3abd69 | refs/heads/master | 2020-12-06T03:50:34.805500 | 2020-01-07T13:39:59 | 2020-01-07T13:39:59 | 232,332,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | # coding=utf-8
# 代码文件:chapter4/4.5/com/pkg1/hello.py
import com.pkg2.hello as module1
from com.pkg2.hello import z
y = 20
print(y) # 访问当前模块变量y
print(module1.y) # 访问com.pkg2.hello模块变量y
print(z) # 访问com.pkg2.hello模块变量z
| [
"xiaonongyue@gmail.com"
] | xiaonongyue@gmail.com |
2f2962ea25e9f936fbeeefc8d47ccaa3fd482996 | 007cd60ca84623c5ace8b50e846be659ae2e8c85 | /collectors/icdpcs/record.py | 7684e370c580ba310af74e8cd2de5a1b7fa0b18d | [
"MIT"
] | permissive | kenferrara/collectors | 412a97f0475747a206cbe68890774c0c37e9fc1a | e6c1f45df3a1ffd5d60dada1816484812eb51417 | refs/heads/master | 2023-04-16T22:01:19.899692 | 2020-04-23T02:31:24 | 2020-04-23T02:31:24 | 258,073,992 | 0 | 0 | MIT | 2023-04-04T00:19:23 | 2020-04-23T02:30:59 | Python | UTF-8 | Python | false | false | 516 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from .. import base
from ..base.fields import Text, Date, Boolean
# Module API
class Record(base.Record):
# Config
table = 'icdpcs'
... | [
"roll@post.agency"
] | roll@post.agency |
89bdc85d37ffd1c71be7f5b5ef909ca3a1c4a9bf | 7797913bc78cfa0cfdb30813d4268e02770722e0 | /Section 1/Q34.py | a7f7c3ecae5ac98dcb54dcf7271b5078b9d8f0eb | [] | no_license | pkoi5088/CodeFestival | ecdf5dbdbc78793fd093a614f60d2639a68bffb3 | cdc3065f6a2557936432f09344d5bfa09ff8b651 | refs/heads/main | 2023-03-19T14:49:02.488625 | 2021-03-14T03:20:15 | 2021-03-14T03:20:15 | 345,632,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | n=list(map(int,input().split()))
print('YES' if n==sorted(n) else 'NO') | [
"pkoi5088@gmail.com"
] | pkoi5088@gmail.com |
3ce08fbb326978a3db114eee111616ede922b3a7 | d86b94b9fa849c4421f60bfbc455bb3679e3dbf9 | /CP/codificacao.py | c5869cada9a4eeac869edee4acea0556a434d5f2 | [] | no_license | marciorgb/computacao-evolutiva | 048749f82ccb052620a0f053b847520e33128a60 | af72ea26db598b7bde431309cd6949ccc422c9ec | refs/heads/master | 2020-06-04T08:56:15.511638 | 2019-06-14T14:31:03 | 2019-06-14T14:31:03 | 191,953,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,105 | py | from statistics import mean
from codificacao import start_population
from fitness import *
from Seleção import *
from cruzamento import *
from substituição import *
from graficos import *
import matplotlib.pyplot as plt
import random as r
import copy
import time
def start_conjunct (conjunct_size):
"""inicializa... | [
"marcio@aptans.com"
] | marcio@aptans.com |
8782fd2774cf2e8fc8888edfa047ffb1f2444c9d | 9f99f103281817b7d8bbe0df0c0c68dd2c6b9b06 | /tests/test_blog.py | 31cf02a5197dd6180e75164375dc637a2f92cab3 | [] | no_license | heyitsM/Flaskr-with-behave | a2a6ad59028990200ce65f09df75a7544542331a | 4356755a392b152cac3abfcddeaf6b9b346b1b1a | refs/heads/master | 2023-06-26T20:42:15.062659 | 2021-07-20T19:43:21 | 2021-07-20T19:43:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,611 | py | import pytest
from db import get_db
def test_index(client, auth):
response = client.get('/')
assert b"Log In" in response.data
assert b"Register" in response.data
auth.login()
response = client.get('/')
assert b'Log Out' in response.data
assert b'test title' in response.data
assert b'... | [
"edeitrick@codio.com"
] | edeitrick@codio.com |
df73d08c2176b58e1ab3447f7aebf4509f80e0dd | 44fafa3e65a5af76297b889a3c7dad87270b1c81 | /sentinelle/Order.py | 5943314e411a83836b060de97aab8d2f5d140ce9 | [] | no_license | luciannno/renaissance | 501c045280393c5d61b549ee1f7f28eeb78709df | 94c0f6b90f70451419249964885a14486bf30e82 | refs/heads/master | 2021-06-30T11:35:14.545272 | 2017-01-19T11:10:16 | 2017-01-19T11:10:16 | 56,840,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,004 | py |
import abc
class Order:
"""
"""
__metaclass__ = abc.ABCMeta
instrument = None
side = None
orderType = None
stopPrice = None
trailStopPrice = None
suggested = False
quantity = 0
def __init__(self, instrument, side, orderType, stopPrice=None, trailStopPrice=N... | [
"lbrunette@servidor.(none)"
] | lbrunette@servidor.(none) |
56c26d37646620c5a72bd601ee1e5fa9ab81a06d | e25d02365d14e91ffef84e9f8695c198c4ad6184 | /setup.py | 241aafd3aa37d81658c479a022d7f4c8bae7eac6 | [] | no_license | MahmoudMTaha/ITI_PRO_Project | f9f8bbe12222376f7002569946f5906b6d0ec878 | d01796f93b361f87c6966c74dd69ef212ccbfddb | refs/heads/main | 2023-08-08T08:25:00.127169 | 2021-09-12T17:41:11 | 2021-09-12T17:41:11 | 405,710,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | from setuptools import find_packages, setup
setup(
name='src',
packages=find_packages(),
version='0.1.0',
description='project implemented in dr denna session',
author='Mahmoud Taha',
license='',
)
| [
"43166822+MahmoudMTaha@users.noreply.github.com"
] | 43166822+MahmoudMTaha@users.noreply.github.com |
2d6cc4da009245aa30319aa0653b7d5b9afef22e | f8090ce7564d0b6396adb0f940e8a83b2135d11f | /ipdpw/chrI/sort/dataframe.py | aa3c0be780fc3cb3b9c220e5a468607e0f3da3ee | [] | no_license | zengchan/ipd-pw-code | 013986b8eb4a29d2ee67b117ef4863a9e8b1f564 | 143710ec6b66c1cf64ab72ac1a46bbe1cb09b756 | refs/heads/master | 2020-03-28T03:16:57.625279 | 2018-09-06T07:45:04 | 2018-09-06T07:45:04 | 147,627,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 972 | py | #coding:utf8
import sys
from pandas import DataFrame #DataFrame通常来装二维的表格
import pandas as pd #pandas是流行的做数据分析的包
import numpy as np
#建立字典,键和值都从文件里读出来。键是nam,age……,值是lili,jim……
data = pd.read_table('chrI_ipd_pw_HeChuan36c_ccssubsort.txt', sep='\t',names=["pos","read","SlnIndex","ipd","pw"],usecols=[0,1,3,5... | [
"chanzengupup@163.com"
] | chanzengupup@163.com |
63e199ac8e6c06d09b648c691e651c8c76258e47 | 06c6056d1f7eea23a269b117f30bf8bdc0bd88a3 | /train_lr.py | 01be440c88e62ff433c2a24a2e19d64d132f4763 | [] | no_license | gjy3035/PCC-Net | 3e851e32717c52b6dbc2ceb86c650f3784d90b6d | 5beecd25cc551e2ac3248622abc950d09b526953 | refs/heads/ori_pt1_py3 | 2020-04-12T13:08:00.241032 | 2019-11-29T05:29:16 | 2019-11-29T05:29:16 | 162,512,887 | 77 | 18 | null | 2020-03-12T11:12:23 | 2018-12-20T02:00:13 | Python | UTF-8 | Python | false | false | 8,454 | py | from tensorboardX import SummaryWriter
import os
import random
import torch
from torch import optim
from torch.autograd import Variable
from torch.nn import NLLLoss2d
from torch.optim.lr_scheduler import StepLR
import torchvision.transforms as standard_transforms
import torchvision.utils as vutils
from models.CC imp... | [
"gjy3035@gmail.com"
] | gjy3035@gmail.com |
52a387e2fda6b62173da5b67d8660f46997da921 | c0b6da793db606476bd601b5c1e5671a0fdeaa1c | /scripts/SpArcFiRe-pyvenv/lib/python2.7/site-packages/astropy/units/quantity_helper.py | d005898fdd3c303c5832535be87daba4dac81d7f | [] | no_license | waynebhayes/SpArcFiRe | 201ba0a3724a4349568dfae6c7f7d7952caa2565 | 6d95873226badedbb14f9c355365d692c7b3ea03 | refs/heads/master | 2023-06-08T17:27:21.319312 | 2023-05-28T00:06:32 | 2023-05-28T00:06:32 | 120,016,157 | 8 | 23 | null | 2023-09-08T17:21:55 | 2018-02-02T18:26:09 | Python | UTF-8 | Python | false | false | 25,204 | py | # The idea for this module (but no code) was borrowed from the
# quantities (http://pythonhosted.org/quantities/) package.
from fractions import Fraction
import numpy as np
from .core import (UnitsError, UnitConversionError, UnitTypeError,
dimensionless_unscaled, get_current_unit_registry)
def _d... | [
"dlcheng@andromeda-32.ics.uci.edu"
] | dlcheng@andromeda-32.ics.uci.edu |
f0f45357153653337e8856a9543794329435a92f | 50dd2a43daa8316fc11e0c176b5872738fcc5dde | /Learning/130_Fluent_Python/fp2-utf8/freeinteractive/freeinteractive 124.py | 42249e691553393de2f30d1ce5dfeb475bd97059 | [] | no_license | FrenchBear/Python | 58204d368e3e72071eef298ff00d06ff51bd7914 | b41ab4b6a59ee9e145ef2cd887a5fe306973962b | refs/heads/master | 2023-08-31T18:43:37.792427 | 2023-08-26T15:53:20 | 2023-08-26T15:53:20 | 124,466,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23 | py | >>> my_object.foo += 1
| [
"FrenchBear38@outlook.com"
] | FrenchBear38@outlook.com |
09fd080454a36295d593ea713a30fc521a400773 | 6f05485bc941a3d51383cdec2c3f886021565f88 | /test_app.py | 8012684ac1294b1bd66aa48023cfd6496f066de3 | [] | no_license | lfbatista/postcodes | bec1b8a2bfbcf0ed553957ec622e34934cc7287c | 6793fbc4029f3770fb11a2057703acbb8cf0ca18 | refs/heads/master | 2022-11-12T15:18:15.084628 | 2020-06-25T20:18:13 | 2020-06-25T20:18:13 | 273,566,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | import unittest
from app import get_stores
class TestApp(unittest.TestCase):
def setUp(self):
self.get_stores = get_stores
def test_get_stores(self):
""" :return a list of stores in a given radius of a given postcode sorted from north to south """
expected_output = [{'name': 'Hatfiel... | [
"amail@mail.com"
] | amail@mail.com |
704328caaf953ac8d1422fd6635417ec38f29df1 | d5552cda58e251e6a5983876681be8f641dea86f | /tests/models/layoutlmv2/test_processor_layoutlmv2.py | c1fdde7d7ccc98c5b3468f44993de239fafaa4ed | [
"Apache-2.0"
] | permissive | patrickvonplaten/transformers | feb121e1ee82c317ac7561836b8f95a7de25fc1f | f738502979f6787609dcf0180e6606f464692e27 | refs/heads/master | 2022-12-08T10:15:34.743198 | 2022-11-22T11:00:20 | 2022-11-22T11:00:20 | 226,201,271 | 6 | 1 | Apache-2.0 | 2019-12-05T22:39:46 | 2019-12-05T22:39:45 | null | UTF-8 | Python | false | false | 25,057 | py | # Copyright 2021 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | [
"noreply@github.com"
] | patrickvonplaten.noreply@github.com |
5dc3ba5320c424f0a21bb4c6581942a0eecd817f | 7d66a8382000bf84af00c6154d35b5fc37eeb20f | /torch_train/trainer.py | 4f0d7cd576519e0e243b69d86182f46bd553123f | [] | no_license | thisissum/emo_identification | 54c507d692c048b84623c03d7a0ff64d2168a84f | 20fdf41351061b0771a8ada7f782461370414650 | refs/heads/master | 2022-11-09T01:29:22.526057 | 2020-07-01T01:40:12 | 2020-07-01T01:40:12 | 276,248,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,649 | py | import torch
from torch import nn
import numpy as np
import random
from tqdm import tqdm
from collections import deque
# TODO: distributed(): set to multi-gpu
# TODO: add logger
class Trainer(object):
def __init__(self, device=None, verbose=True, name='trainer'):
self.device = device if device else \
... | [
"ThisIsSunMH@gmail.com"
] | ThisIsSunMH@gmail.com |
f05a92dd67fd9668718e353680d935172e6db74e | c9a0ce3a60e5dba8edcb89e2d710ab5503e7e77a | /webtest/settings.py | 12fa052f0631b36f20dd410d828b37b523386ad4 | [] | no_license | Talgin/tgt_blog | cfa7f3345eb647d5f4ce44f2ef0e7434f8bc7599 | 42565d8e9735f05bb4279cbdab66d58eb1400537 | refs/heads/master | 2022-07-16T05:15:26.980964 | 2020-05-13T12:48:04 | 2020-05-13T12:48:04 | 263,610,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,231 | py | """
Django settings for webtest project.
Generated by 'django-admin startproject' using Django 3.0.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
#... | [
"talgat90.07@gmail.com"
] | talgat90.07@gmail.com |
9e00d81faae31bf4f5fdc1e3f30ff046128cfc9f | 37c414d5f5eab3e5063f09e0bd2a0510dc554264 | /regression/week5/week-5-lasso-assignment-1.py | 6ac7417fd385719e460691c6c7cb6d0591d7f0f9 | [] | no_license | obh/coursera | 17981934bc9c6a47c6c57b7b772594c6c7225065 | 880a8aa960e034dad986617158ba4095ba6b2d98 | refs/heads/master | 2021-01-10T05:50:50.937061 | 2016-03-28T06:39:45 | 2016-03-28T06:39:45 | 51,063,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,535 | py |
# coding: utf-8
# # Regression Week 5: Feature Selection and LASSO (Interpretation)
# In this notebook, you will use LASSO to select features, building on a pre-implemented solver for LASSO (using GraphLab Create, though you can use other solvers). You will:
# * Run LASSO with different L1 penalties.
# * Choose best... | [
"rsedwardian@gmail.com"
] | rsedwardian@gmail.com |
9e5945b82757e60f6524990a32b8dc5a0d66db01 | ea318d69aa23ee4560a28abf34f057f3ae62ee3a | /pyroball/models/svi_dynamic.py | efc7d2a6e645b82ac91a5ce72e68e42ffdfc5f47 | [] | no_license | anguswilliams91/pyroball | e52450fad2d4898ef3192bd433d74d1c3b7ab0f6 | 39c642e20ac3ee5dc5cc75dfc783beb973ca8850 | refs/heads/master | 2020-11-24T08:53:48.806541 | 2019-12-31T13:22:56 | 2019-12-31T13:22:56 | 228,063,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,613 | py | import pyro
from pyro import distributions as dist
from pyro.infer import Trace_ELBO, SVI, Predictive
from pyro.optim import Adam
from pyro.poutine import condition
from pyro.contrib.autoguide import (
AutoMultivariateNormal, AutoDiagonalNormal, AutoIAFNormal, AutoLaplaceApproximation
)
import torch
from pyroball... | [
"anguswilliams91@gmail.com"
] | anguswilliams91@gmail.com |
a0eb71c3bb7ac2b1ce80fd98687dd4b357826921 | 63bbe2f37dc3f9dd11e31c5f0dbcaee362bf069f | /weixitest/basic.py | e4a1cccf9cdbae0dc547afab22bd737cf39de142 | [] | no_license | yuxuefendou/weixin | a3809e86e066a5c14abf38c663834ccf2e4a43cb | 73ebd84c0d8b68214d89cf1a53597544e926b8fc | refs/heads/master | 2021-04-06T12:02:38.724598 | 2018-03-09T09:07:56 | 2018-03-09T09:07:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,195 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
'''
Created on 13:51 2017/11/4
@author: acer
'''
import urllib
import time
import json
class Basic:
def __init__(self):
self.__accessToken = ''
self.__leftTime = 0
def __real_get_acces_token(self):
# appId="wxf6e4bea81a14c7e4"
# appS... | [
"1131419557@qq.com"
] | 1131419557@qq.com |
9c0b88760d4b0038094db668b133cab22473a766 | e3b34c15197f73f1e85dad715bf951be74b54721 | /main/classes/ContentManager.py | 99a79c74158f0ea82daaa012fe57256f00c341b0 | [] | no_license | Kingdomdark/ProjectOP2 | 5531a051fe7f256b3789b4065c93cff373b7070d | 2b390bb8e02d23b3ca3a73edf1b7ff7b1d2e46e8 | refs/heads/master | 2021-01-11T20:53:38.109054 | 2017-02-01T18:11:26 | 2017-02-01T18:11:26 | 79,206,773 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | from .QuestionManager import questionmanager
from .MenuManager import menumanager
from .GameManager import gamemanager
from .TileManager import tilemanager
from .AudioVisualManager import spritemanager
class contentmanager:
def __init__(self,screen):
self.qm = questionmanager()
self.sm = spritemana... | [
"jmolendijk93@gmail.com"
] | jmolendijk93@gmail.com |
e20393aff022c9f8bb1cabe7899c8e008eba862b | 394072f7fd3e2a226aeed78bf0a4f587f4c4e383 | /Tree_gmb/get_name_dict.py | 1f5dea360f5e10e3d7c5edcd4054f3d938068771 | [] | no_license | LeonCrashCode/DRSparsing | ec5cca079a2c73eb512444e1ac86215722e6503a | c7e92beb8878ff2386bc6789e6c17f0d35bf1277 | refs/heads/master | 2020-03-16T09:52:11.217219 | 2019-01-17T14:20:16 | 2019-01-17T14:20:16 | 124,549,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,991 | py | import os
import sys
import re
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--input", required=True)
args = parser.parse_args()
v_p = re.compile("^[XESTPKB][0-9]+$")
d_p = re.compile("^DRS-[0-9]+\($")
pb = re.compile("^P[0-9]+\($")
kb = re.compile("^K[0-9]+\($")
def correct(tree):
# Her... | [
"jiangming_liu@JM-MacBook.local"
] | jiangming_liu@JM-MacBook.local |
45ec02892820ec21cd41b25d8e7086dab47d0908 | 61eaefeba9eb3e1b8fbbc72e6ab76c2bdf8d1cd5 | /基于规则模型/cos.py | 11f305c82ccc30bd4b2e9fb71a77f8effc8590fb | [] | no_license | wutonghua/fenlei | f8b9ce00181623ba17bec799d5223f768a4c69ff | 40bca4e360ee68db929386fc8522abe511d08b62 | refs/heads/master | 2021-04-15T12:33:41.114718 | 2018-03-23T01:49:16 | 2018-03-23T01:49:16 | 126,417,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import numpy
def moreCos(vec1,vec2):
num = float(numpy.sum(vec1 * vec2))
denom = numpy.linalg.norm(vec1) * numpy.linalg.norm(vec2)
cos = num / denom
return 1-cos
def ComputerNearestNeighbor(line_xl,pipei_xl):
distance=[]
for i in range(len(pipei_xl)):
... | [
"382291189@qq.com"
] | 382291189@qq.com |
59c40a0fbcaea3a03fba7f05f4950f4b98fdca8c | 519c809b9c1384f95b04069d73857d42e83e5336 | /t1.py | 24dd66bd8e989fb4e3fc89562a88df8498d23fc4 | [] | no_license | indranilpradhan/Recidivism | 79eb536dba1569132f6d731e7d00076dcc12c88d | 7fdf3f6e0e778dfcd8315935eef9925e9ffa9558 | refs/heads/main | 2023-02-02T05:04:13.861220 | 2020-12-21T11:50:16 | 2020-12-21T11:50:16 | 323,320,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | import os
import pandas as pd
import numpy as np
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis
from sklearn.preprocessing import StandardScaler
from sklearn.preprocessing import MinMaxScaler
from sklearn.naive_bayes import GaussianNB
from sklearn.linear_model import LogisticRegression
from sklear... | [
"noreply@github.com"
] | indranilpradhan.noreply@github.com |
69ce06a042be86047ac1e130738833f21f227950 | e80094d85041869d8900c511d73236fd1100aa5c | /WebService/AuthenticationHandler.py | 44c569363f5abf21afa0a174d2fc90ce559660ee | [] | no_license | aghilesDev/Auth-Server | 35585973332775ac5caa3de7dc9c843181f89751 | 24de73b5a0e5a7467fa8f51feca392d6c9cb506d | refs/heads/master | 2020-12-01T00:10:06.538050 | 2019-12-27T21:08:52 | 2019-12-27T21:08:52 | 230,516,477 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,735 | py | from .Validator import SignatureValidator#,SignatureProvider
from .TokenGenerator import TokenGenerator
import sys
#sys.path.insert(0,'../DataLayer')
from DataLayer.DBRepository import UserRepository
from DataLayer.BCKRepository import AuthenticationRepository as AuthRepo
#class that handles the different step of ... | [
"aghiles.goumeziane@gmail.com"
] | aghiles.goumeziane@gmail.com |
d275d957a097e664c600ccebdc43269bc3a1b768 | 769d4ba08db6ad3707d8435b2d6ec3ca7fbf4a5d | /blender/arm/material/make_mesh.py | 283a58445013255cf0ef9bfd94e64b3cdf787d93 | [
"Zlib",
"GPL-2.0-only"
] | permissive | Leonix/armory | 9f2eee057f2fa66efc306e9e832806aa6ea124ba | 3eaf2dc569d7caf4a7a7c928575d45cbb9aa3c14 | refs/heads/master | 2020-04-15T11:45:55.385644 | 2019-01-07T14:41:06 | 2019-01-07T14:41:06 | 164,643,287 | 0 | 0 | Zlib | 2019-01-08T12:22:26 | 2019-01-08T12:22:25 | null | UTF-8 | Python | false | false | 27,501 | py | import bpy
import arm.assets as assets
import arm.material.mat_state as mat_state
import arm.material.mat_utils as mat_utils
import arm.material.cycles as cycles
import arm.material.make_tess as make_tess
import arm.material.make_particle as make_particle
import arm.material.make_cluster as make_cluster
import arm.mate... | [
"lubos.lenco@gmail.com"
] | lubos.lenco@gmail.com |
18bc49a4a5fa8fcc62814b4b7994eab58a0a4286 | 17cadafa88ac5864a19b99e864953bbd9663cc02 | /elementary/12.py | 938030158ecfdc2604ba3fcf3c3d849d900743a0 | [] | no_license | Ascarik/Checkio | 4b4a23d2bb2d3a62f36958d0717942cd9b42f7f6 | 4bafc893b1c1db88cdba9afed209b10c5453fe6f | refs/heads/master | 2023-06-24T02:53:04.240687 | 2023-06-10T13:36:36 | 2023-06-10T13:36:36 | 230,712,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | def first_word(text: str) -> str:
return text.split(" ")[0]
if __name__ == '__main__':
print("Example:")
print(first_word("Hello world"))
# These "asserts" are used for self-checking and not for an auto-testing
assert first_word("Hello world") == "Hello"
assert first_word("a word") == "a"
... | [
"ascar@list.ru"
] | ascar@list.ru |
d2adb9a0f210f36cd6ff27fe3c481dcff845dab7 | 7c4a0a8f3b9a7e026647cfc48b067bb6cead0918 | /labs/tests/tests_ec.py | a4e4fd953dac5784fde887b5e47bcb9f01a31b2e | [] | no_license | endlessgate/bitLabs | 8651acb5cc978456f0765736386cf53b39f8492f | 50788c705614f8084bb778d4e1e23fbf595389e3 | refs/heads/master | 2021-07-05T05:20:43.076291 | 2019-09-22T05:13:11 | 2019-09-22T05:13:11 | 196,538,922 | 0 | 0 | null | 2020-10-27T21:51:02 | 2019-07-12T08:19:20 | Python | UTF-8 | Python | false | false | 458 | py |
import hashlib
from labs.utils.keys import PrivateKey
from labs.utils.keys.ecdsa import (
sign,
recover,
verifies
)
def tests_ec():
keys = PrivateKey.make()
hashes = hashlib.sha3_256('testMessages'.encode()).digest()
sig_vrs = sign(hashes, keys.private_bytes)
recovery = recover(hashes, s... | [
"endlessgate1@gmail.com"
] | endlessgate1@gmail.com |
11fec0b6e83c48f5561ee16a40d78f2b90ed7d74 | ae0a75d1a4a879961dc1391f0d0e9451e54dc15c | /ui/AccDialog.py | c58d5d40d6ab9e2005e5b3060fbfccf19f8fce55 | [] | no_license | QVllasa/PasswordManager | 986313ceb05c8222efa47883bce2773baec495d3 | aa775bae439156e7fb51602191f2d28168b2de29 | refs/heads/master | 2021-06-27T09:26:17.788159 | 2020-11-05T22:46:39 | 2020-11-05T22:46:39 | 180,325,358 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,404 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui/AccDialog.ui'
#
# Created by: PyQt5 UI code generator 5.12.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_AccDialog(object):
def setupUi(self, AccDialog):
AccD... | [
"qendrimvllasa@hotmail.de"
] | qendrimvllasa@hotmail.de |
d48b252d8c920ec2d420cb460653394e4e7176f0 | 8379fed4da71a1277983dafea7b70d432c2a66a3 | /draw.py | c4aa4ab1ee5bcf27eb7ea7b0ceb27c3d4d374d48 | [] | no_license | alievilya/people_counter_detector | e3d1c1db113e9acaf6f6e4d222b2bd7c30427558 | cd842e51675eb22081132163e20a03476da8d87f | refs/heads/main | 2023-01-19T09:37:08.170937 | 2020-11-22T11:59:23 | 2020-11-22T11:59:23 | 314,923,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,660 | py | import cv2
import numpy as np
from PIL import Image, ImageDraw, ImageFont
# initialize the list of points for the rectangle bbox,
# the temporaray endpoint of the drawing rectangle
# the list of all bounding boxes of selected rois
# and boolean indicating wether drawing of mouse
# is performed or not
rect_endpoint_tmp... | [
"aliev.ilia@yandex.ru"
] | aliev.ilia@yandex.ru |
3b12ed30d55a49b530994d01eebfb63d3b5c1753 | 2c896a677f0b4a06b1395f51e458ce1c0db23928 | /List/Bootcamp/Pop Method.py | 6fcdb77a78af1e085b3f24e41a8d9ce2884f5591 | [] | no_license | alakd1985/Python-with-Selenium | 4a308762d4b7c4fd7d5145c474db7a0e8d926101 | fdd1d4fcdfbe57f3505f9f4d204ac5ee1e4c7dcd | refs/heads/master | 2022-12-18T20:16:44.296221 | 2020-09-20T21:45:18 | 2020-09-20T21:45:18 | 297,119,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | # it removes the last element of the list
l = [10, 20, 30, 40, 10, 20, 60, 50]
print(l.pop())
print(l)
# pop method can not be used in the empty list
print(l.pop(2))
print(l)
# clear method to remove all the elements in the list
print(l.clear())
print(l)
| [
"alakd1985@gmail.com"
] | alakd1985@gmail.com |
bc6ea8c4c07ba0e42327bfce831ff72fd1ee03d2 | a0f31a32590dde50ee78ddea8f74449b1f4f08c6 | /truck_detect.py | ee69506d8a78d2b448a3096971863c4069612439 | [] | no_license | fung7890/AWSPortPrep | 2e79b1480c69d7b557bd1f47374eca40b3e23fef | 45a49ebc68edefa9900c3644d56c0545e09537db | refs/heads/master | 2023-02-12T23:43:04.817847 | 2021-01-15T20:12:53 | 2021-01-15T20:12:53 | 329,722,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,049 | py | import panoramasdk
import cv2
import numpy as np
import time
import boto3
# Global Variables
HEIGHT = 512
WIDTH = 512
class TruckDetection(panoramasdk.base):
def interface(self):
return {
"parameters":
(
("float", "threshold", "Detection threshold", 0.50),
... | [
"kennyf_81@hotmail.com"
] | kennyf_81@hotmail.com |
8b82dc345349f14a1a0cf089c1e1be081d510428 | d056d5d0cc6b16a577d0c0feda39995696907fbf | /heat/tests/openstack/blazar/test_host.py | ab3d750a96523200aa1393bb8ed1817e01751cbf | [
"Apache-2.0"
] | permissive | bbc/heat | e53063ec24e0fbc003104f38c609f18e60f1da5b | 71ea5cbcc5e03710559c7a5635117f2bc350f0d6 | refs/heads/add-public-auth-uri | 2022-07-23T04:52:41.575224 | 2019-04-08T18:00:32 | 2019-04-12T14:52:33 | 183,053,092 | 0 | 1 | Apache-2.0 | 2022-07-06T20:06:00 | 2019-04-23T16:18:31 | Python | UTF-8 | Python | false | false | 6,648 | py | #
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# ... | [
"asmita.singh@nttdata.com"
] | asmita.singh@nttdata.com |
e04fac37b16be01109ed4330e8615540310fe539 | 96217d9919129b995ba2a66be0864143351b3d65 | /Agent-Input/ssi/pipes/avemotione2e/scripts/avemotione2e.py | 4be005adf7b2d3884d67a7b5736d813101b4614b | [] | no_license | nadiacandoit/AVP | a87a84eb1e29f6575d0021fdda536cd187b1a3d9 | 5648adb3cb0059ff5d6fe27764d9a225a94ff050 | refs/heads/master | 2022-04-24T06:19:28.263178 | 2020-04-14T09:21:55 | 2020-04-14T09:21:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,960 | py | '''
avemotione2e.py
authors: Johannes Wagner <wagner@hcm-lab.de>, Eduardo Coutinho <e.coutinho@imperial.ac.uk>
created: 2017/07/25
Copyright (C) University of Augsburg, Lab for Human Centered Multimedia
'''
import numpy as np
import math
from pathlib import Path
import time
import os
# Import tensorflow... | [
"peter.lavalle@gmail.com"
] | peter.lavalle@gmail.com |
e5dad19d318e172e32cb54de2c4eb656a1cec17e | 0196f8f21247672bbfca3232d0d7f6764a929ccf | /stack.py | 44c201da80620d62e92c8ef64c2a95d9d64a653d | [] | no_license | h1dd3n01/DataStructures | 2cf40ff4872d4432dd1996b21505b5a8499e5aec | e18567b409fda8933e78a557a6b5e805827e023c | refs/heads/master | 2022-11-04T15:38:02.788370 | 2020-06-13T12:09:51 | 2020-06-13T12:09:51 | 268,105,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | class Node:
def __init__(self, data=None):
self.data = data
self.next = None
class Stack:
def __init__(self):
self.top = None
self.size = 0
def push(self, data):
node = Node(data)
if self.top:
node.next = self.top
self.top = node
... | [
"h1dd3n1@protonmail.com"
] | h1dd3n1@protonmail.com |
48d667cf4151d200ef909033d9daf17f9fba6c22 | d10819b0048e9365743d92526875fee84ec1396a | /environments/forest.py | 93cea186fbabdd0e9e18ef8995bdf69d783f8af8 | [] | no_license | nss-day-cohort-38/keahua-arboretum-the-bluebell-chateau | 2c4b0f42e9c403ad13c3eac7c8b188263241f2bd | 33597d153231de8ebab9a67f0fca5c96ce6edc1c | refs/heads/master | 2022-04-25T14:01:32.454552 | 2020-04-28T16:01:22 | 2020-04-28T16:01:22 | 257,677,095 | 1 | 3 | null | 2020-04-28T16:01:24 | 2020-04-21T18:10:49 | Python | UTF-8 | Python | false | false | 741 | py | from interfaces import Identifiable
from interfaces import IContainsAnimals
from interfaces import IContainsPlants
class Forest(IContainsAnimals, IContainsPlants, Identifiable):
def __init__(self):
IContainsAnimals.__init__(self)
IContainsPlants.__init__(self)
Identifiable.__init__(self)
d... | [
"Jcsullins222@yahoo.com"
] | Jcsullins222@yahoo.com |
7d11029c0010795c311bf829960b396620d45f52 | 235c4b3aa630737b379050a420923efadd432da8 | /DS-400/Medium/11-Container With Most Water/TwoPointers.py | 86b3c14f907e1ef831bd4c6893ed2b21009cd60d | [
"MIT"
] | permissive | ericchen12377/Leetcode-Algorithm-Python | 4e5dc20062280ef46194da5480600b2459fd89f8 | eb58cd4f01d9b8006b7d1a725fc48910aad7f192 | refs/heads/master | 2023-02-22T22:43:55.612650 | 2021-01-28T04:00:20 | 2021-01-28T04:00:20 | 258,058,468 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | class Solution(object):
def maxArea(self, height):
"""
:type height: List[int]
:rtype: int
"""
left, right = 0, len(height) - 1
area = 0
while left < right:
area = max(area, min(height[left], height[right]) * (right - left))
if(height[... | [
"suiyaochen@mail.usf.edu"
] | suiyaochen@mail.usf.edu |
753981c7539428d4d187a2142f68f6200e4204a5 | bedc747151dbc1e816e562b6753ba44e47a6f378 | /sketch_generation_model/sketch_rnn/utils/misc.py | ff2c463b24f8189f4f8ac2182c9fb39aadf8a286 | [] | no_license | auswls/CS470 | 58f7d2924cf8131e761b52f63a06198da7f4c3f2 | c65a1c57eb2e9d1384b8aa1aeb09241aa0e14334 | refs/heads/master | 2023-01-28T10:43:37.326936 | 2020-12-12T21:52:32 | 2020-12-12T21:52:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | """
SketchRNN data loading and image manipulation utilities.
"""
import numpy as np
import torch
def get_max_len(strokes):
"""Return the maximum length of an array of strokes."""
max_len = 0
for stroke in strokes:
ml = len(stroke)
if ml > max_len:
max_len = ml
return max_le... | [
"vm3fk5dla2@kaist.ac.kr"
] | vm3fk5dla2@kaist.ac.kr |
9e06b0e76c2a4928edfb33c89dd56402f2b0323f | 8b35d2308c23dfe564bd5260766daa6cf293d0a9 | /snippets.py | bc55da826164a7a0b5ec1e517a1dad82af2871cc | [] | no_license | darkrecher/leek | 516264b762bcb374ca8467282854bd749902cfd6 | 0a1e4f4fb038c978a33a808e3984b4f81bc20f23 | refs/heads/master | 2021-04-05T23:53:54.112008 | 2018-03-09T16:12:39 | 2018-03-09T16:12:39 | 124,448,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,953 | py |
def read_file(pathfile):
with open(pathfile, 'r', encoding='utf-8') as file:
return file.read()
def read_file_by_lines(pathfile):
with open(pathfile, 'r', encoding='utf-8') as file:
for file_line in file:
print(file_line)
def write_file(pathfile, value):
with open(pathfile, 'a', encoding='utf-8') as file... | [
"wlanglois@imsnetworks.com"
] | wlanglois@imsnetworks.com |
6767929a79aa8aeed73feeab5279cf0591d10629 | 76aec59e63d34e8e4826dc33483c1a1a4c5264f8 | /fpga_mnn.py | edbf905a67e79d2e415aa98bdc2a6f0c0bc2dfad | [] | no_license | fzp0412/mnist_dnn | 80f011e6fdd490c77f731ce7e0ab213a32ecd409 | a16d867bba8a97e4e0813f4e4483a9550a6b7608 | refs/heads/master | 2021-09-06T01:16:53.234205 | 2018-02-01T08:22:42 | 2018-02-01T08:22:42 | 113,994,006 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,017 | py | import numpy as np
from scipy import misc
import mnn_parameter
'''
three lay NN
two hide lay
hide 1 num = 128
hide 2 num = 64
hide 1 activate function relu
hide 2 activate function relu
relu = 0 when input <0
relu = input when input >=0
output lay activate function softmax
softmax = exp(zi)/sum(exp(zi))
loss funciton... | [
"fzp0412@163.com"
] | fzp0412@163.com |
f7b39c281141f03aad1cab338612855d22d4bc15 | a5df37342f3554789c9ac67e821ba206e2539676 | /postgresql/Backup_postgresql.py | 8022da4f9e5a865503a3eb86eb2a7d9423c1204a | [] | no_license | vincent119/Python-Script | c92ac30088c17b78281402f5f71b1af287870004 | e7191834dd3a59b0e97f28803b3ebf90bcf1ed14 | refs/heads/master | 2021-01-23T20:40:04.429504 | 2019-07-02T06:10:11 | 2019-07-02T06:10:11 | 44,096,268 | 0 | 1 | null | 2018-09-28T11:58:41 | 2015-10-12T09:06:28 | Python | UTF-8 | Python | false | false | 3,300 | py | #!/usr/bin/env python
#coding=utf8
import smtplib
import HTML
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
import subprocess
import sys
import os
import time
import datetime
from time import strftime
from datetime import datetime, timedelta
from pyhtml import *
# 備份檔案路徑
bkDir='... | [
"vincent119@gmail.com"
] | vincent119@gmail.com |
d259a66a39d35b391fa8abaf2bc38ebe5f467633 | ed55ecbf4f90022dc067c8a79f57c299e74849ea | /IV Lecture/Task/Tarea3_andrey_arguedas_ej2.py | bd2ef237dc7905275e9727370766a7eb7d356ce3 | [] | no_license | AndreyArguedas/Data-Science-Course | 336d7e6ede090bac13f9dacadb4f5beed79d4396 | 8e4d02205fff3479ba7fcbf7e95c6270e297a133 | refs/heads/master | 2020-04-24T16:41:21.296047 | 2019-06-09T17:39:04 | 2019-06-09T17:39:04 | 172,117,673 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,690 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Mar 24 20:04:59 2019
@author: Andrey
"""
from abc import ABCMeta, abstractmethod
# Clase Abstracta, ABC Class
class Base(metaclass = ABCMeta):
@abstractmethod
def __str__(self):
pass
@abstractmethod
def Captura(self):
pass
class... | [
"andrey.arguedas.espinoza@est.una.ac.cr"
] | andrey.arguedas.espinoza@est.una.ac.cr |
c1873401ca4c74b9e6da57a7625939420c0ccad7 | d6580417a7d161a34446cb565c406841f311e3a5 | /pate_demo/params.py | 8d32053f0aa63ffb7f7441047bb144f4f85fec0e | [] | no_license | Songpei-Lu/capc-demo | b95e5d36c1444ae0cd90a810931c0f3007daeda8 | 511053e4917fdbcf90ff063b7a5ea3726a9010f1 | refs/heads/main | 2023-09-06T04:45:04.802279 | 2021-11-10T15:41:14 | 2021-11-10T15:41:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52,120 | py | from getpass import getuser
import argparse
import os
from argparse import ArgumentParser
import utils
from models.utils_models import model_size
from models.utils_models import set_model_size
import numpy as np
# from datasets.xray.dataset_pathologies import \
# get_chexpert_intersect_padchest_idexes
from datas... | [
"noreply@github.com"
] | Songpei-Lu.noreply@github.com |
a3ab64812e3683fca07ee72374edefe3d68d5c7b | 84aa6f90e5cf5f2e49a9488c1768f2794cbd50db | /student/101022137/hw2/mandelbrot.py | ee9196ef219d8f3d0e1293e3398c04bc88ad9b2c | [] | no_license | u101022119/NTHU10220PHYS290000 | c927bf480df468d7d113e00d764089600b30e69f | 9e0b5d86117666d04e14f29a253f0aeede4a4dbb | refs/heads/master | 2021-01-16T22:07:41.396855 | 2014-06-22T11:43:36 | 2014-06-22T11:43:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | from cmath import *
from pylab import *
sys.setrecursionlimit(1500)
def myz(c,n):
z = {0:0.}
for i in range(1,n+1):
z[i] = z[i-1]**2 + c
if abs(z[i]) > 2.0:
return 2.
return abs(z[i])
def Mandelbrot (x,y,n):
c = complex(x,y)
return myz(c,n)
x = arange(-2,2,0.005)
y... | [
"dick0914y@yahoo.com.tw"
] | dick0914y@yahoo.com.tw |
cbda68666975a4ac724d50adfd235d7df2d54cc2 | 6d653426a05c5647eb40748a1ed849491ed9e710 | /zjazd_1/kolekcje/zad.4.py | 2e49523b8002a99f4eff1f3fa205d3a8c0beb1f4 | [] | no_license | stanilevitch/python_06102018 | fb908b513ad6a40a66cd02e638fddaf9d698120d | 59a90e20c0c4037f7890e7e6a40e8fb17a3fd907 | refs/heads/master | 2020-03-31T02:51:48.259058 | 2018-12-02T15:44:49 | 2018-12-02T15:44:49 | 151,842,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | # wypisuje liczby od 0 do 100
# for i in range(101):
# print(i)
podzielna = 0
# wypisuje liczby od 0 do 100 podzielne przez 3 lub podzielne przez 5
for i in range(101):
if i % 3 == 0 or i % 5 == 0:
# print(i)
podzielna += 1
# napisz ile liczb wystąpiło w tym przedziale
print(podzielna)
print... | [
"stanilevitch@gmail.com"
] | stanilevitch@gmail.com |
f06136992aafe7aff8e6bff8c86cbd4d74c7cbe1 | 5763d51d0b3ed804bd6a7003eb3b7d21ffb86f50 | /python/zanki0.py | a536409e50c28811956d77056b1fd0409c773232 | [] | no_license | rafael950110/programs | 42ae008c638c5037b15d1610ff61b5904f638c99 | 9f2992d2a487974b62f60526fbfb239aee279845 | refs/heads/master | 2020-05-20T17:53:22.787229 | 2019-07-08T10:12:01 | 2019-07-08T10:12:01 | 185,696,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
l = [0b0101010, 0b0110011, 0b1010111, 0b0011000, 0b1001000, 0b0010011, 0b0100001, 0b0001010]
n = [0 for i in range(len(l))] | [
"ichirosasaki@sf.cs.it-chiba.ac.jp"
] | ichirosasaki@sf.cs.it-chiba.ac.jp |
25fdd9ed11034f1c2c0cdf74d3b2e38b4afd11de | 871775171633543c9f9d37fbc7ab022fec2c434e | /appium_two.py | 6d46a30794afc398634f714502255f747bbd8097 | [] | no_license | ToddCombs/Phenomenon | 886e9da9154c14a298887dd65fabe61db4c2f2ee | d5f656156e05eed7df19e51b22ee7567319eb59a | refs/heads/master | 2020-07-04T14:50:40.482186 | 2020-01-09T02:36:31 | 2020-01-09T02:36:31 | 202,316,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,182 | py | # author:ToddCombs
# appium例子2打开大鹏教育
from appium import webdriver
from selenium import webdriver
import time
desired_caps = {}
desired_caps['platformName'] = 'Android'
# desired_caps['platformVersion'] = '6.0'
desired_caps['deviceName'] = '9HQ4C19909000574'
desired_caps['platformVersion'] = '8.1.0'
# desire... | [
"noreply@github.com"
] | ToddCombs.noreply@github.com |
4d150077efcfe7e49462570169130a9d2b4b2ce1 | 22537dcb756a3bbf7d88879b5330a3dfb8dc613e | /function_example.py | 047038aa357b87fdd357448e1aee67483b14a27e | [] | no_license | nnennandukwe/teaching_python | c50ce23bcbbb82652040192d37d792a974816842 | 9acd07b32c7a1fbebb7c334ee8bff819be1aae26 | refs/heads/master | 2021-01-25T10:01:00.124222 | 2018-02-28T19:57:51 | 2018-02-28T19:57:51 | 123,335,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | def hello(random_word,funny_word,mean_word):
return random_word, funny_word, mean_word
a = hello("school","hahaha","ugly")
b = hello("happy","silly","whatever")
print(a)
print(b)
def goodbye(name):
return "goodbye " + name
def add(first,second):
total = first / second
return "first number divided by second nu... | [
"nnenna.s.ndukwe@gmail.com"
] | nnenna.s.ndukwe@gmail.com |
be6b29b48327bd6c403353bcc6be9d141e456122 | e5a653f690e5d0de3fb5b675ab3f9824b5592a0d | /gitbro/cli.py | dc43bf704e667cda289a3c92011aa2e6fe4514a8 | [
"MIT"
] | permissive | destag/gitbro | c0114636c1c798817a58d24ff102e0ef64d471b1 | 9c2f56df9bda88fb657b371455b694046bd05c96 | refs/heads/master | 2020-04-08T17:24:57.936885 | 2018-11-28T22:02:04 | 2018-11-28T22:02:04 | 159,565,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,248 | py | #!/usr/bin/env python3
"""Module for aggregating git repos."""
import sys
import logging
import argparse
import glob
import pathlib
import subprocess
import re
def main():
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument(
'-p', '--pathname',
dest='pathname',
... | [
"przemyslawp94@gmail.com"
] | przemyslawp94@gmail.com |
b084f8cca901271134f986496362547203b961ef | e728a7b5447c4ca03ba799bec61459528f30fd88 | /test/test_models/recipient.py | 9841fad9857e0befdefa3468f52b10e92c1b3987 | [] | no_license | reritom/Esvi | deb75c0ca4b17494ed80adc3b735be008e0b3352 | 1e3242c61ec86af7b7479cd71f12a8677fcbde1f | refs/heads/master | 2020-03-20T02:08:01.695643 | 2018-11-04T18:35:52 | 2018-11-04T18:35:52 | 137,100,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | from esvi import model
from esvi import fields
from test.test_models.contact import Contact
from test.test_models.message import Message
class Recipient(model.Model):
recipient_id = fields.StringField(primary=True)
contact = fields.ForeignKey(Contact)
message = fields.ForeignKey(Message)
| [
"reikudjinn@gmail.com"
] | reikudjinn@gmail.com |
4566bf037da7d5ffbdbec7a6ab230d3fb82b0c19 | 83684f905274bea5ec0aa81e57abe6d6af5f65c6 | /email_attachment_ept/py/email_attachment_ept.py | f201d5a7bc27a2d7b4307b5ee55d093db0039115 | [] | no_license | arpanv/pansuriya | f47064679aa2c98c1e9d3a6f0605c98a685e00cf | b8615b70c33b79d8b2454cef4151d3f83c3bc77f | refs/heads/master | 2020-04-06T06:54:00.271098 | 2014-09-17T14:06:08 | 2014-09-17T14:06:08 | 24,102,473 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,806 | py | import base64
import logging
from openerp import netsvc
from openerp.osv import osv, fields
from openerp.osv import fields
from openerp import tools
from openerp.tools.translate import _
from urllib import urlencode, quote as quote
import time
class email_attachment_eept(osv.osv):
_inherit = "email.template"
... | [
"sohil@sohil.(none)"
] | sohil@sohil.(none) |
a98a6466c39492721ebce5de522c77874a2cdee4 | bad0c63b82e44293272ab1452d077475f79e69a7 | /Django/mysite/polls/urls.py | ea3f6f26eb2b7ec988a65380df7952ce96c0fa2c | [] | no_license | NahianAlindo/dev_framework_practice | 201102b65c0258941053428e51c42634c0c41cb5 | 9b956167ba0887530cb3492453d2d1f64f80ee11 | refs/heads/main | 2023-06-03T17:29:14.780197 | 2021-06-28T10:41:01 | 2021-06-28T10:41:01 | 332,162,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | from django.urls import path
from . import views
app_name = 'polls'
urlpatterns = [
path('', views.IndexView.as_view(), name='index'),
path('<int:pk>/', views.DetailView.as_view(), name='detail'), #pk means primary key
path('<int:pk>/results/', views.ResultsView.as_view(), name='results'),
path("<int:... | [
"nrifaat26@gmail.com"
] | nrifaat26@gmail.com |
647a162f8c8f6a8d43a163bbbba60c1fd13d27ce | 3c50498feb6fb630bf9574653de7fcb04faf1bdb | /sd_card/Trinket_SDlogger/code.py | a357b497a19103ed800aebceaf5f2685ef238504 | [
"MIT"
] | permissive | DLR-School-Lab-TU-Dresden/weather_station_feather_m0_express | 1c31daafbaf28dafd1176523394ebf82083e52dd | 735b8dda3bd38c8462d66d35ed573c328ad9f9fa | refs/heads/master | 2020-07-03T02:47:22.996131 | 2019-08-14T19:57:30 | 2019-08-14T19:57:30 | 201,760,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 997 | py | import time
import adafruit_sdcard
import board
import busio
import digitalio
import microcontroller
import storage
# Use any pin that is not taken by SPI
SD_CS = board.D10
led = digitalio.DigitalInOut(board.D13)
led.direction = digitalio.Direction.OUTPUT
# Connect to the card and mount the filesystem.
spi = busio.... | [
"jahndiego@mailbox.org"
] | jahndiego@mailbox.org |
efa317d7041599841fb86a0487ec1c5b60012f8f | 10cb11f83e1c8b51b9d72c28d6259a56ff1a97c8 | /tests/integration/testdata/buildcmd/PythonPEP600/main.py | b636d9d592b30d57cbcf48601a1a0c30754d3393 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"BSD-2-Clause"
] | permissive | aws/aws-sam-cli | 6d4411aacf7f861e75e5cf4882a32858797a276d | b297ff015f2b69d7c74059c2d42ece1c29ea73ee | refs/heads/develop | 2023-08-30T23:28:36.179932 | 2023-08-30T21:58:26 | 2023-08-30T21:58:26 | 92,205,085 | 1,402 | 470 | Apache-2.0 | 2023-09-14T21:14:23 | 2017-05-23T18:16:23 | Python | UTF-8 | Python | false | false | 396 | py | import numpy
# from cryptography.fernet import Fernet
def handler(event, context):
# Try using some of the modules to make sure they work & don't crash the process
# print(Fernet.generate_key())
return {"pi": "{0:.2f}".format(numpy.pi)}
def first_function_handler(event, context):
return "Hello Wo... | [
"noreply@github.com"
] | aws.noreply@github.com |
7375245c12052dfb9d73aec915ab424d5375a4ca | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_appals.py | cd6c5bfec1295894c742a3a67db3382d4957e618 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py |
from xai.brain.wordbase.verbs._appal import _APPAL
#calss header
class _APPALS(_APPAL, ):
def __init__(self,):
_APPAL.__init__(self)
self.name = "APPALS"
self.specie = 'verbs'
self.basic = "appal"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
53029b8afdd28c2e40ccc0b7d4e99e6aa2ea3770 | 64dbf9cff4508d5173995e885c151156786329fc | /lulz4life.py | c028900d8725ea7d9dce1f276d7e7e907f083c39 | [] | no_license | LulzSecToolkit/LulzPy-Mass-Mailer | f1c634a3bd03fbb0a99eb12174c367d092604274 | 7b3a313a336d81074b4cf53f921539b6661473c3 | refs/heads/master | 2022-12-02T19:40:43.306176 | 2020-08-25T00:31:16 | 2020-08-25T00:31:16 | 290,068,693 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | import requests
import sys
if len(sys.argv) != 3:
print(f'usage: {sys.argv[0]} <email.txt> <message.html>')
sys.exit()
email=sys.argv[1]
htmlfile=sys.argv[2]
with open(email,"r") as f:
email=f.readlines()
email=[n.rsplit()[0] for n in email]
f.close()
with open(htmlfile,"r") as f:
msg=f.read(... | [
"noreply@github.com"
] | LulzSecToolkit.noreply@github.com |
a6030d9a1e2b395f3ddfb2121f3df47c7aa736b5 | 681cff013b2ad7c654d7744da13d1f3e1320e6ef | /payments/__init__.py | 2b615aeca40e0397cfaa00d5000018dfa1ada61e | [] | no_license | MattTheRed/wigglebar | 56a85961530d5835ffa393197ec08b4a4c58f922 | ffd9eeeb510971321a0142f56964af05929baf78 | refs/heads/master | 2016-09-05T22:08:58.806948 | 2014-12-15T14:32:19 | 2014-12-15T14:32:19 | 28,040,131 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 23 | py | __version__ = "2.0b27"
| [
"pindardev@gmail.com"
] | pindardev@gmail.com |
4dbf7645879c6b1cfecabf6e1cb8a484ad15876a | 5fa8d29f1988e39ca7d0313138dd1832b0966be2 | /dvc/stage/exceptions.py | 19d07aea674c4552246d60de3758055394c0440c | [
"Apache-2.0"
] | permissive | jackwellsxyz/dvc | 11aa627af1ecce1a9079c6992e48ff300fa81cfc | 6a64f861783f3c2eadfc0364725ab06aa3ebb387 | refs/heads/master | 2022-07-09T13:16:44.869416 | 2020-05-06T21:25:41 | 2020-05-06T21:25:41 | 261,893,679 | 0 | 0 | Apache-2.0 | 2020-05-06T22:35:41 | 2020-05-06T22:35:41 | null | UTF-8 | Python | false | false | 3,003 | py | from dvc.exceptions import DvcException
class StageCmdFailedError(DvcException):
def __init__(self, stage, status=None):
msg = "failed to run: {}".format(stage.cmd)
if status is not None:
msg += ", exited with {}".format(status)
super().__init__(msg)
class StageFileFormatErro... | [
"noreply@github.com"
] | jackwellsxyz.noreply@github.com |
2a24cb3857d77f7ce4f16edcec9b5c31a9d4e49c | 6fd7413bea392d6d9cd89aa665c8b8fb4a1edea0 | /Page/Login_Page.py | f13861f14ce711e7050d5a16ec7bd2c7e0996f37 | [] | no_license | cocoL123/app_08test | e5fc24caafa44a0273f127d37120a00f79b4522d | fd242486d802b41f8d99250598ed10aab8a8d881 | refs/heads/master | 2020-03-22T11:09:57.793570 | 2018-07-10T07:31:43 | 2018-07-10T07:31:43 | 139,952,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,451 | py | # __author: Honorbaby
# date: 2018/7/9
import allure
from Base.Base import Base
import Page
class Login_Page(Base):
def __init__(self,driver):
Base.__init__(self,driver)
@allure.step(title = "点击我的按钮")
def click_my_btn(self):
self.click_element(Page.my_btn)
@allure.step(title = "点击登录注... | [
"1715285528@qq.com"
] | 1715285528@qq.com |
5763b4238a4b84b082656990dc79969144711f47 | b7c8760d69977dff3b4a3cb65eceae263d42b8b8 | /server/scripts/monitor.py | a9f21009020a3a8bc4946903218dca1ebe81271d | [] | no_license | x100up/analystics | 086f1578c01255baf7484031d232e87d59fbeeab | 9f58e4c53653e1fe53abc10861008fe0afef5979 | refs/heads/master | 2021-01-15T11:18:49.118104 | 2013-02-14T12:25:36 | 2013-02-14T12:25:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,618 | py | # -*- coding: utf-8 -*-
from scripts.baseScript import BaseAnalyticsScript
from components.listutils import listDiff
from models.Config import Config
import re
from datetime import date
from models.App import App
from services.HiveMetaService import HiveMetaService
CREATE_TABLE_QUERY = """CREATE EXTERNAL TABLE %(table... | [
"x100up@yandex.ru"
] | x100up@yandex.ru |
87a747dc43589b6f9f052e38773a1b58bd9e85a3 | a0fe8fe36a6133b0e98ff64c220b01485ae4dd49 | /carts/paginations.py | b4c67881539cefd2d1999b74e9f5f4f2775ad967 | [] | no_license | spolox/rest_week1 | 27e97864f5c7f44506238db74bd646600f5ccc2d | 0ce93c0e74f2e43935796f12d8ccc8b997d64d6f | refs/heads/main | 2023-03-02T17:51:19.128241 | 2021-02-07T14:50:38 | 2021-02-07T14:50:38 | 329,290,509 | 1 | 0 | null | 2021-02-15T19:14:06 | 2021-01-13T11:45:08 | Python | UTF-8 | Python | false | false | 180 | py | from rest_framework.pagination import LimitOffsetPagination
class CartItemLimitOffsetPagination(LimitOffsetPagination):
default_limit = 6
max_limit = 6
min_limit = 1
| [
"draconvs@yandex.ru"
] | draconvs@yandex.ru |
55ad69397a06078257e33d2bfcaec2cab7cfc7d5 | a6a998561cd087774502a3aea68b1440946049f1 | /SnakeGame.py | 8621b972001d240673806e5e05a8f9994994b551 | [] | no_license | TheDarkKnight1939/Snake | 126e0a7b47cd986493842d23abe8aede6ec0fb25 | 0dece70864beddbb1cd7438a31003cadde6c8687 | refs/heads/master | 2021-06-01T15:50:11.820873 | 2016-03-05T10:10:34 | 2016-03-05T10:10:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,462 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Nov 16 16:43:27 2011
@author: Administrator
"""
from Tkinter import *
import random
words_list=open('words.txt','r')
lines=words_list.readline()
lst=lines.split()
#lst=['clear','cat','move','dog','chemistry','flur','right','heal','python','jerk','land','mark','pla... | [
"735422760@qq.com"
] | 735422760@qq.com |
06027acd18d5ffdf8c7e46375d00f52b1c3c56d6 | 0461798face297be283bcd5c486add9851672ac8 | /usu04a.py | fe44b51f7671c706f59f7a11c37f2876bdcde82c | [] | no_license | chasmack/postgis | a4503679a5008319bfb4b250f767bab78daae7d6 | b3e62cbc00321c17143e9cf9a8e76f43cb351355 | refs/heads/master | 2016-08-11T17:39:45.271484 | 2016-01-12T22:07:53 | 2016-01-12T22:07:53 | 47,844,262 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,719 | py | # USU OS Python Assignment 4a
#
# Print the pixel values for all three bands of aster.img at
# the points contained in sites.shp.
import gdal, ogr
from gdalconst import *
import time
import utils
ogr.UseExceptions()
aster_rasterfile = 'data/usu04/aster.img'
sites_shapefile = 'data/usu04/sites.shp'
sites_schema = '... | [
"chas.mack@asis.com"
] | chas.mack@asis.com |
8a3169a1f97b905640130d9aea6dea851330c763 | fc0e0379889bda5f3b7b7759983b1183ba73f7c9 | /dnppy/download/download_filelist.py | f46b61e7e43aa23ee380a17d506a968e3275b8ea | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-us-govt-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ritviksahajpal/dnppy | 3a52d47f9926b1aff55da46cc45dde09a403ad02 | 2acf9c565ea2f5c79b5cd3d776a35aedd2d31e87 | refs/heads/master | 2021-01-15T21:45:00.924505 | 2015-09-30T14:59:29 | 2015-09-30T14:59:29 | 45,763,646 | 1 | 0 | null | 2015-11-08T02:21:51 | 2015-11-08T02:21:51 | null | UTF-8 | Python | false | false | 2,465 | py | __author__ = 'jwely'
from dnppy import core
from download_urls import download_urls
import os, time
__all__ = ["download_filelist"]
def download_filelist(ftp_texts, file_type = None, outdir = None):
"""
Reads text file of download links, downloads them.
This script reads a text file with urls such as th... | [
"jeff.ely.08@gmail.com"
] | jeff.ely.08@gmail.com |
a799df0fcaf22dcd868fec9bb264a4992a0d23cf | 3bd6c53bff12f7450eafb9750aef8d9755c1643d | /Flask-blog/app/venv/Lib/site-packages/flask/cli.py | 0c7adbbb1342fbb31b22612942783c9793172264 | [] | no_license | harsht24/Blog-flask-web-app | 10872475d166cc6c11a733b6c7eb49eefe7f68a0 | 9605ec67ab20005408786d3da5c5ff5ea6321560 | refs/heads/master | 2022-11-29T16:55:21.282679 | 2019-12-08T09:51:18 | 2019-12-08T09:51:18 | 214,374,818 | 0 | 1 | null | 2022-11-18T23:15:11 | 2019-10-11T07:43:28 | Python | UTF-8 | Python | false | false | 30,939 | py | # -*- coding: utf-8 -*-
"""
flask.cli
~~~~~~~~~
A simple command line application to run flask apps.
:copyright: 2010 Pallets
:license: BSD-3-Clause
"""
from __future__ import print_function
import ast
import inspect
import os
import platform
import re
import sys
import traceback
from functools i... | [
"htamkiya24@gmail.com"
] | htamkiya24@gmail.com |
ca0abc7ff8fd53a24c8109ee36bf48ce9d1726e7 | 543d43411cdb6623f8dc7a1c9578d68113497791 | /fplo/fplo.py | f47340c06727d9c31759a28d4120978a851e0341 | [] | no_license | DMFTSever/wannlib | 4a46ce23df89b9d175b13b24155ebe2d40acdc07 | 459fdb7816ccffecfeb0a4371b981debaca97c29 | refs/heads/master | 2021-07-06T02:13:14.641259 | 2021-04-19T10:04:49 | 2021-04-19T10:04:49 | 232,587,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,704 | py | #########NEEDS TO BE TESTED##########
#########NEEDS TO BE TESTED##########
#########NEEDS TO BE TESTED##########
#########NEEDS TO BE TESTED##########
#########NEEDS TO BE TESTED##########
#########NEEDS TO BE TESTED########## #########NEEDS TO BE TESTED##########
#########NEEDS TO BE TESTED##########
#########NOT WOR... | [
"severino-adler@gmx.at"
] | severino-adler@gmx.at |
71064b46b0fae8627c888907c272fc24bd26f089 | 49edfa75ca899a2ff8c77420b81f6991e325c264 | /manage.py | fafb9cc1d8aecfdaf4e9bc9d798720150e79b8ac | [
"MIT"
] | permissive | renelhs/cellfixstore | 5dd39321c443cd925cca5ffa9b1448d6e7aea4fb | 040f66be7bdb506661ba9d4cf6125d5eaf56711c | refs/heads/master | 2023-04-29T18:50:48.405418 | 2022-05-17T23:11:48 | 2022-05-17T23:11:48 | 195,576,978 | 7 | 1 | MIT | 2023-04-21T20:53:36 | 2019-07-06T19:41:43 | JavaScript | UTF-8 | Python | false | false | 632 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'CellFixStore.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise I... | [
"reneluishs@gmail.com"
] | reneluishs@gmail.com |
e56b7daab727de9003a359bfb002d938fe3de0a0 | 2ed86a79d0fcd299ad4a01310954c5eddcf01edf | /homeassistant/components/unifiprotect/models.py | 40280c028679c32d62305d9bc8484ac72a4f0966 | [
"Apache-2.0"
] | permissive | konnected-io/home-assistant | 037f12c87bb79e19220192eb918e49db1b1a8b3e | 2e65b77b2b5c17919939481f327963abdfdc53f0 | refs/heads/dev | 2023-05-11T08:57:41.891518 | 2023-05-07T20:03:37 | 2023-05-07T20:03:37 | 109,931,626 | 24 | 10 | Apache-2.0 | 2023-02-22T06:24:01 | 2017-11-08T05:27:21 | Python | UTF-8 | Python | false | false | 3,794 | py | """The unifiprotect integration models."""
from __future__ import annotations
from collections.abc import Callable, Coroutine
from dataclasses import dataclass
from enum import Enum
import logging
from typing import Any, Generic, TypeVar, cast
from pyunifiprotect.data import NVR, Event, ProtectAdoptableDeviceModel
f... | [
"noreply@github.com"
] | konnected-io.noreply@github.com |
02363f4518e3339d42cf6906fe43a45d3a73b017 | 79b186222cc8ee6442522f4c5c3ebba4b835f4b4 | /seqlib/gff/add_gene_id.py | 6df07977943317c5adb67080ced856beabc0bd56 | [] | no_license | sudmantlab/seqlib | 2b669df20a862d84e348d6fea7a128ef64729d64 | 071a72f27cd0c160618404850f23b8666a8d74e2 | refs/heads/master | 2022-06-27T01:02:36.381101 | 2022-06-16T19:14:15 | 2022-06-16T19:14:15 | 148,357,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | import sys
if __name__=="__main__":
for l in sys.stdin:
if l[0] == "#":
continue
l=l.rstrip()
sl = l.split()
if "geneID" in sl[-1]:
d={e.split("=")[0]:e.split("=")[1] for e in sl[-1].split(";")}
d["gene_id"] = d['geneID']
sl[-1] = ";... | [
"psudmant@login001.cm.cluster"
] | psudmant@login001.cm.cluster |
b55ff943b7348ac97fe1fa40cdb31aa99fe65765 | 878eb4b539d77051dd7330389b90d988d9aef8f3 | /CAPITULO 8/Exercicio D.py | 84d36064619169f2f794772564090700dfaff17a | [
"MIT"
] | permissive | LarmIg/Algoritmos-Python | a031badc9f607cbbc109ee4ca8bfe60d5636d867 | f2c9889705cacac007833f6ab9a413b06213f882 | refs/heads/master | 2022-11-25T05:36:26.313469 | 2020-07-25T11:59:36 | 2020-07-25T11:59:36 | 282,436,201 | 0 | 0 | MIT | 2020-07-25T12:08:13 | 2020-07-25T12:08:12 | null | UTF-8 | Python | false | false | 1,029 | py | # Elaborar um programa que leia uma matriz A de uma dimensão com dez elementos inteiros. Construir uma matriz C de duas dimensões com três colunas, sendo a primeira coluna da matriz C formada pelos elementos da matriz A somados com 5, a segunda coluna seja formada pelo valor do cálculo da fatorial de cada elemento cor... | [
"noreply@github.com"
] | LarmIg.noreply@github.com |
9077b9c2ed66691d447341572e390acefbb7102b | d0e083ce351b9680f1fe46a5216f605aefc47018 | /Everything/Daily_Backup/multiply_fits.py | dd5b84f66ef69ef9b9d51722a972782bf9fbb9a4 | [] | no_license | bhishanpdl/Backups | ebfad64cc4f0a0999064f5f4dccf2320c7db8329 | e041a6c3f4a15c9e1f3eee88b6ea745fd0ea9add | refs/heads/master | 2020-04-27T09:18:32.444634 | 2019-03-06T19:51:29 | 2019-03-06T19:51:29 | 174,209,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-#
#
# Author : Bhishan Poudel; Physics PhD Student, Ohio University
# Date : May 10, 2017 Wed
# Last update : Jun 19, 2017 Mon
# Est time : 0.001 sec
#
# Imports
import numpy as np
import sys,os,shutil
import random
from astropy.io import fits
from astropy im... | [
"bhishantryphysics@gmail.com"
] | bhishantryphysics@gmail.com |
4a2953c41e514a7923931593ca37e3dd158a7b2a | 5277d3db7b60898536f50ff431de3caeb8e58862 | /src/sensor.py | a312f9070cba4aee46cb5bf023e34e711e913cba | [
"MIT"
] | permissive | alexaldr/python-unit-tests | 7696fef5e2ad68a740914b1a215bb42e8295ee0a | 94512762e96de570eec0f980cb1d94899e580df3 | refs/heads/master | 2023-04-13T20:02:54.230865 | 2020-05-01T02:36:07 | 2020-05-01T02:36:07 | 259,465,259 | 0 | 0 | MIT | 2021-04-20T19:56:10 | 2020-04-27T21:53:33 | Python | UTF-8 | Python | false | false | 62 | py | class Sensor:
def sample_pressure(self):
pass | [
"alex.aldr@gmail.com"
] | alex.aldr@gmail.com |
fa825e94d5fc57e894508ca22017e6457327263a | 55a273347cb103fe2b2704cb9653956956d0dd34 | /code/tmp_rtrip/sqlite3/test/types.py | d816fa20af66bdd8e104eabc6a7b8851ebb72291 | [
"MIT"
] | permissive | emilyemorehouse/ast-and-me | 4af1bc74fc967ea69ac1aed92664f6428acabe6a | 3f58117512e125e1ecbe3c72f2f0d26adb80b7b3 | refs/heads/master | 2022-11-18T03:50:36.505882 | 2018-05-12T17:53:44 | 2018-05-12T17:53:44 | 115,035,148 | 25 | 1 | MIT | 2022-11-04T11:36:43 | 2017-12-21T18:27:19 | Python | UTF-8 | Python | false | false | 13,998 | py | import datetime
import unittest
import sqlite3 as sqlite
try:
import zlib
except ImportError:
zlib = None
class SqliteTypeTests(unittest.TestCase):
def setUp(self):
self.con = sqlite.connect(':memory:')
self.cur = self.con.cursor()
self.cur.execute(
'create table test(... | [
"emily@cuttlesoft.com"
] | emily@cuttlesoft.com |
f0017a2619e7ddc6b04be80e56d4b0a95489a0a6 | cc6147d1989a28a9a7f867156288a2cad89eb353 | /models/student.py | 4a6d21743dba6c196164d3a0e9be49cf11cdea48 | [] | no_license | Wetschi/fastapi-mongodb-crudapp | 68df90638cecd0f73a1b5cfb9670c5c78db22334 | aca65167e69b2d159f9edfceee36083e5108f428 | refs/heads/master | 2023-08-17T00:21:34.194275 | 2021-09-15T08:39:57 | 2021-09-15T08:39:57 | 406,265,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | #import statement
from pydantic import BaseModel
class Student(BaseModel):
student_name: str
student_email: str
student_phone: str
| [
"kujatw@gmail.com"
] | kujatw@gmail.com |
9ec352b1ae6bcb07940bd57c69fb4570274a0d4e | 3b5e09b7ebba5ba915db9e70fdbf1e82e2bf101e | /aws/autoscale.py | dc9d0f5f4a667f841b8fad8da693bb1db7ccd4c0 | [] | no_license | bennettrogers/utilities | bbc2f9d60bcd3c38b2cbc4fded185a54c76c2100 | e08f2277bc12061b530ce2769c16991c1c6f74ed | refs/heads/master | 2021-01-10T20:35:14.522707 | 2013-05-06T21:48:04 | 2013-05-06T21:48:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,298 | py | import boto
from boto.ec2.autoscale import LaunchConfiguration, AutoScalingGroup, Tag
as_conn = boto.connect_autoscale()
elb_conn = boto.connect_elb()
AUTOSCALE_CONFIGS = [
#{
# 'tier':'',
# 'lifecycle':'',
# 'instance_size':'',
# 'image_id':'',
# 'capaci... | [
"bennett@crocodoc.com"
] | bennett@crocodoc.com |
d14446b745d548751ba83f0874137e9af92e0d48 | 751fe2de18f00596e4f1ed342b56bd6f38ee2053 | /wisdem/orbit/phases/install/turbine_install/standard.py | 0fdeed3eccec4f809faae851c7edf31404598ceb | [
"Apache-2.0"
] | permissive | WISDEM/WISDEM | 42fa780915d62fd4e4203050e886093ecc806c8a | d7270ebe1c554293a9d36730d67ab555c071cb17 | refs/heads/master | 2023-08-04T01:22:43.215105 | 2023-06-22T23:36:07 | 2023-06-22T23:36:07 | 23,678,280 | 120 | 86 | Apache-2.0 | 2023-06-22T19:26:34 | 2014-09-04T20:30:24 | Python | UTF-8 | Python | false | false | 13,676 | py | """`TurbineInstallation` class and related processes."""
__author__ = "Jake Nunemaker"
__copyright__ = "Copyright 2020, National Renewable Energy Laboratory"
__maintainer__ = "Jake Nunemaker"
__email__ = "jake.nunemaker@nrel.gov"
from copy import deepcopy
from math import ceil
import numpy as np
import simpy
from m... | [
"garrett.barter@nrel.gov"
] | garrett.barter@nrel.gov |
9b97bf6648e2e2876b8dc321b2f93a5dfe46ff6d | 8ae9bdbb56622e7eb2fe7cf700b8fe4b7bd6e7ae | /llvm-3.8.0-r267675/tools/lldb/packages/Python/lldbsuite/test/lang/objc/objc-static-method-stripped/TestObjCStaticMethodStripped.py | 7d88292a051c3c607fa10a165ca504bdf7621cd3 | [
"NCSA"
] | permissive | mapu/toolchains | f61aa8b64d1dce5e618f0ff919d91dd5b664e901 | 3a6fea03c6a7738091e980b9cdee0447eb08bb1d | refs/heads/master | 2021-09-16T00:07:16.731713 | 2017-12-29T04:09:01 | 2017-12-29T04:09:01 | 104,563,481 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,704 | py | """Test calling functions in static methods with a stripped binary."""
from __future__ import print_function
import os, time
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil
class TestObjCStaticMethodStripped(TestBase):
mydir = TestB... | [
"wangl@cb94f8c2-beb9-42d2-aaaf-6dc30ea5c36a"
] | wangl@cb94f8c2-beb9-42d2-aaaf-6dc30ea5c36a |
8924ae91a905f5467e3fff018de639b0e95d9a0d | 9a7a6190a24b7a570ccdc1b598b1c64428c11c1b | /randomDictionary.py | d6f8cc0baf15657afc356133f8ebd756dca0f95e | [] | no_license | kadeemp/Tweet-Generator | 0254ee07ee1f63684f23b47f9569d40210807613 | d0db07e3f710d27fb29930c4093e762a5b3f36ef | refs/heads/master | 2021-01-11T15:55:55.248665 | 2017-02-22T09:22:00 | 2017-02-22T09:22:00 | 82,723,228 | 0 | 0 | null | 2017-02-21T20:20:51 | 2017-02-21T20:20:51 | null | UTF-8 | Python | false | false | 381 | py | import sys
import random
x = int(sys.argv[1])
resultString = ""
f = open("/usr/share/dict/words", "r")
content = f.readlines()
content = [i.rstrip("\n") for i in content]
if sys.argv[1] is not None:
while x != 0:
resultString += random.choice(content)
resultString += " "
x-=1
if x == ... | [
"kadeempalacios@gmail.com"
] | kadeempalacios@gmail.com |
b2a2c92eb15a5e754235765bfab30e037954b066 | abd80c57a2ce54fa7b14827d30b339956c4391ba | /lesson2/conftest.py | 04862734029e24e11c59472e1ee11d9d174923b0 | [] | no_license | ksanayarysh/otus-qa-course | 8245c1369a6d9b26c81f24a9297ac6e600749480 | 245fd72fa82808b78d52f22e5edc48e5f1cc4bba | refs/heads/master | 2020-05-01T05:21:25.147169 | 2019-07-15T10:10:55 | 2019-07-15T10:10:55 | 177,298,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | """Conftest"""
import pytest
def pytest_addoption(parser):
"""Опция командной строки"""
parser.addoption("--site", action="store", default="None")
def pytest_collection_modifyitems(config, items):
"""Получаем и в зависимости от ее значения скипим тесты"""
value = config.getoption("--site")
skip =... | [
"ksana32@gmail.com"
] | ksana32@gmail.com |
743c943cfb2adf558e8b63f6b4820d215d0b3eb1 | 4db2a13f9f0a85e9fd38cf245462ec91f2c6ce67 | /proj_11/n2tGrader.py | 40c62d524b350537a3aab34970ccda139d9b1696 | [] | no_license | alexgh123/nand_2_tetris | c6f5bde84bf064152e2a3abcbf96d86a707b89da | 1611b8e592082fc12d7d36e23ddb75c2c753b2df | refs/heads/master | 2021-05-12T01:40:08.535774 | 2018-01-15T16:09:16 | 2018-01-15T16:09:16 | 117,565,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,005 | py | #
#
#N2T grading server
# projectnum in executable portion at bottom is the directory to be graded
#
#
# on *nix flavors launch from the command line as
# python3 n2tGrader.py --XX
#
# where --XX is the project number being run
#
#
# on Windows launch from the command line as
# n2tGrader.py --XX --w
#
# ... | [
"hardt.alex@gmail.com"
] | hardt.alex@gmail.com |
8d3d2be82260947a4a95d2a84f66d50d504dd61c | 4e01416394a229e2afeede99493d282f4259b1a1 | /examples/optimal_transport/crowd/converging_corridor.py | cd4e833c29abd66373a46cc9a712f89ec1e8d84f | [] | no_license | sd-ot/pysdot | b2b2abb53e4e87d53e0bb3734c1624b1fc5e5f3b | 8d16000c36deb9ab1aa98b819179741b7b65409d | refs/heads/master | 2023-07-20T07:15:58.469620 | 2023-07-14T13:42:48 | 2023-07-14T13:42:48 | 176,300,757 | 4 | 2 | null | 2020-08-02T06:19:26 | 2019-03-18T14:13:33 | Jupyter Notebook | UTF-8 | Python | false | false | 2,168 | py | from pysdot.domain_types import ConvexPolyhedraAssembly
from pysdot.radial_funcs import RadialFuncInBall
from pysdot import OptimalTransport
import numpy as np
# constants
for n in [ 160 ]: # 20, 40, 80,
directory = "results/converging_corridor_{}".format( n )
t = np.linspace(-2,2,n)
h = 2./n
x,y = n... | [
"hugal.leclerc@gmail.com"
] | hugal.leclerc@gmail.com |
634dcc3314cc9dc2e05696d565b2107bde5d47b9 | 758ac6a75ca021d8595975be0d41fa50c7bfdf88 | /snownlp/recipes.py | f551ff43cf6bf604199eb3d92f46e6401ca365bd | [] | no_license | Henry2012/recipes | 5a04197a41e94a638c20350b3e0ec6d23702808d | fe61d1bd57f922a41a816939e5ef2e9abd7eb6e9 | refs/heads/master | 2020-04-21T14:16:51.034571 | 2014-07-01T08:09:35 | 2014-07-01T08:09:35 | 18,829,830 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,541 | py | #! /usr/bin/python
#-*- coding:utf-8 -*-
"""
Author: Qiqun Han
File: snownlp.recipes.py
Description: this program
Creation: 2013-12-15
Revision: 2013-12-15
"""
from snownlp import SnowNLP
text = u"""
宁波华翔:海外资产拐点显现 并购协同助力国内增长
公司是国内优秀汽车内饰供应商,通过合资与并购实现高速增长。公司与世界知名汽车零部件公司合资,产品质量、市场地位处于国内领先水平;通过并购快速开拓新客户与新产品,营收规模高速提升;下游客... | [
"qiqun.h@everstring.net"
] | qiqun.h@everstring.net |
09651e680a7caf268633806dca07f6e0d52ed6e5 | 993d0b2a0f0e439be5aec2855f5da5f33fe78d44 | /Universal_Integrated_API/jc/rsync_tools.py | 03c2699407e4c73e5229593d6ef02a76723a076e | [] | no_license | cyril-wx/universal_integrated_api | e50fb72f573f30f337d5972e50a3750553a0bc26 | e2a3f8cd5b3bbf6d043f1b75bdefced1a5b2f594 | refs/heads/master | 2022-11-07T07:56:52.813987 | 2020-01-05T10:39:37 | 2020-01-05T10:39:37 | 276,130,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,488 | py | #!/usr/bin/python
# -*- coding:UTF-8 -*-
#********************************************** #
# Master and Slave rsync Tools #
# AutoPanic主从服务器同步工具 #
#---------------------------------------------- #
# @Author: Cyril #
# @Mail: 848873227@qq.com #
# @Create: 2019-06... | [
"848873227@qq.com"
] | 848873227@qq.com |
90760b20bcf6f696bcbc1a9d1ad50e5742fd806b | ef2bc6b1ba9be1af93e1b96f62b25f5b9866e187 | /backend/posts/migrations/0003_post_category.py | fab13cced492be5b42468bd060f7fc69a6b1df28 | [] | no_license | fraanaalonso/DRF-REACT | 9c4ad9af2a0ddbbb31297aa401f9f4785eeb1001 | 36c33e1f2f05d1ccde3bef7c3771ecbc6a2462ef | refs/heads/main | 2023-05-02T03:39:01.359618 | 2021-05-20T16:16:10 | 2021-05-20T16:16:10 | 361,467,387 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | # Generated by Django 3.1.8 on 2021-04-22 17:27
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('posts', '0002_category'),
]
operations = [
migrations.AddField(
model_name='post',
... | [
"fraloal97@gmail.com"
] | fraloal97@gmail.com |
78a37497426627418e658256b008de7c350e5025 | f6f4e6df36e58207fd72276ebd2ee430bd301d03 | /数据结构/字典.py | 4e87bd464683bf04b94540d3f1d41969639626ec | [] | no_license | aria4013/pythongo | 1734e16f046deeb79fa231702ff711c092dafbb3 | 9b3d4bc6ad4c64cb1a55264b12d54297262729a2 | refs/heads/main | 2023-04-07T05:25:01.534514 | 2021-04-19T09:59:06 | 2021-04-19T09:59:06 | 359,410,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | tel = {'jack': 4098, 'sape': 4139}
tel['guido'] = 4127
print(tel)
tel['jack']
del tel['sape']
tel['irv'] = 4127
print(tel)
list(tel.keys())
sorted(tel.keys())
'guido' in tel
'jack' not in tel
dict([('sape', 4139), ('guido', 4127), ('jack', 4098)])
{x: x**2 for x in (2, 4, 6)}
dict(sape=4139, guido=4127, jack=4098) | [
"aria4013@outlook.com"
] | aria4013@outlook.com |
7926073ef3fe64f8c68f5bcc7891367d0b7c72fd | b7fbd979143a35d2dc61e4950aa23219febbeb37 | /kibitzr_email/exceptions.py | 16ee63d4db377446967bd3effa92b19462fec61e | [
"MIT"
] | permissive | kibitzr/kibitzr-email | f5caef7890564be73b2b0b0aad46652a2c5b75d1 | 36e0b2fdd3ff1547d55f4f1aa52f05d4b641e140 | refs/heads/master | 2020-03-11T21:51:21.269147 | 2018-07-07T00:41:45 | 2018-07-07T00:41:45 | 130,276,474 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | class UnexpectedResponse(RuntimeError):
pass
class NetworkOutage(RuntimeError):
pass
| [
"peterdemin@gmail.com"
] | peterdemin@gmail.com |
c4879c4d4fce18ab51478e8f15e2633a82985302 | 83b723b1e95187f758fccf0eb584686db53ee8c0 | /employee_project/employee_register/views.py | 97a5df702f6e09aba7558cd5884b8cc7e45d4d6b | [] | no_license | Anikcse18/officeManagementwebproject | c3b6cfb2ef201d8da859e0897e5e976b2621d642 | 1998965cf80a203007db5aa3c84867aac2d5f755 | refs/heads/master | 2022-12-08T14:35:24.914465 | 2020-09-08T15:01:39 | 2020-09-08T15:01:39 | 293,844,284 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,055 | py | from django.shortcuts import render,redirect
from .forms import EmployeeForm
from .models import Employee
# Create your views here.
def employee_list(request):
context = {'employee_list': Employee.objects.all()}
return render(request, "employee_register/employee_list.html", context)
def employee_form(request, ... | [
"istiakjavedanik@gmail.com"
] | istiakjavedanik@gmail.com |
b319a08688d9b352d9ea48f350d2492e1485fe55 | 71acb7214efd91c0d327f6d8958e1798eadb4401 | /locations/spiders/totally_workwear_au.py | e5341eb5c6c1a091ebfaf5469536b0c7d7571898 | [
"CC0-1.0",
"MIT"
] | permissive | alltheplaces/alltheplaces | 21b9f8b4ace1352e52ae7b8f8825a930d2cb033e | 1bcbb55cfcf06f2c714465570711f6e83f205c22 | refs/heads/master | 2023-08-30T19:45:35.098658 | 2023-08-30T17:51:54 | 2023-08-30T17:51:54 | 61,166,935 | 453 | 176 | NOASSERTION | 2023-09-14T17:16:40 | 2016-06-15T01:09:18 | Python | UTF-8 | Python | false | false | 1,019 | py | from scrapy import Spider
from locations.dict_parser import DictParser
from locations.hours import OpeningHours
class TotallyWorkwearAU(Spider):
name = "totally_workwear_au"
item_attributes = {"brand": "Totally Workwear", "brand_wikidata": "Q119247989"}
allowed_domains = ["www.totallyworkwear.com.au"]
... | [
"noreply@github.com"
] | alltheplaces.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.