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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
75992c9a0e42e4745e9398c401ddc46138b57440 | 00019f515ebf7fad88a95b4c4c31c8674744ae89 | /menu.py | c93efcff1beae555745ba79efc5b82db9bcf6522 | [] | no_license | realtuna90/python | 25a10755114373c352e4b45bc946f3e2448dba8b | 052e2ec03be4d1edc7091b37186491110e10a090 | refs/heads/master | 2020-11-26T04:03:33.231759 | 2019-12-19T08:11:45 | 2019-12-19T08:11:45 | 228,960,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | # 랜덤으로 오늘의 점심메뉴를 추천해주는 프로그램
import random
menu = ['새마을식당', '초원삼겹살', '멀캠20층', '홍콩반점', '순남시래기']
phone_book = {
'새마을식당':'010-1234-1123',
'초원삼겹살':'02-000-0012',
'멀캠20층':'02-856-4441',
'홍콩반점':'02-225-3221',
'순남시래기':'02-111-2222'
}
# print(phone_book['새마을식당'])
# menu의 요소 중 랜덤으로 골라서 lunch라고 하는 변수에 담아주세... | [
"kms3357@gmail.com"
] | kms3357@gmail.com |
fc410463edafcd6936bcce7eaa7410a60db73512 | 0bf283bdae8eb92d6c1dcb321ae7160727ac5e69 | /src/university_dashboard/models.py | d3ed8c1ea928d95fcea3439dc21acba498c5f500 | [] | no_license | LuisBosquez/student-net-2015 | 5175197daf7f797f812b7212e7818eb742d8d119 | c4059e06b25bbcb8a0e73dde976b50d1127a11a4 | refs/heads/master | 2020-03-30T12:53:34.618913 | 2015-03-27T20:33:50 | 2015-03-27T20:33:50 | 31,245,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,772 | py | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
# Create your models here, yo!
class University(models.Model):
SUPPORTED_LANGUAGE_CHOICES = (
('EN', 'English'),
('ES', 'Spanish'),
('FR', 'French')
)
name = models.CharField(max_length = 200, default ... | [
"luisdbosquez@gmail.com"
] | luisdbosquez@gmail.com |
c86acafbece5cdbeba0a0ae5f5a5532416a95b1e | 0be246ab3744f6cd6e1858c61850a39fdc03480c | /infoSys/migrations/0004_auto_20181202_0037.py | cfc1e9d33cc4040f05397ae9c6fba1927b1c41a4 | [] | no_license | DDDDanny/InfoManSys | 5225f58f2e53f9b154ba32de515d241336cea6ec | dede518fd5f8b5c35019e7ff9cb5ab868365e11f | refs/heads/master | 2020-04-11T12:56:27.851849 | 2019-01-06T07:55:53 | 2019-01-06T07:55:53 | 161,797,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | # Generated by Django 2.0.7 on 2018-12-01 16:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('infoSys', '0003_auto_20181201_1847'),
]
operations = [
migrations.AlterField(
model_name='projectinfo',
name='pro_time... | [
"707956456@qq.com"
] | 707956456@qq.com |
84cac4a3ec870cf2d3aadf5595ef0e5b0c116d8f | afbae26b958b5ef20548402a65002dcc8e55b66a | /release/stubs.min/Autodesk/Revit/UI/Plumbing.py | 4d2f1c615c504ceda8bcf1bd0cf231a9e5310a56 | [
"MIT"
] | permissive | gtalarico/ironpython-stubs | d875cb8932c7644f807dc6fde9dd513d159e4f5c | c7f6a6cb197e3949e40a4880a0b2a44e72d0a940 | refs/heads/master | 2023-07-12T01:43:47.295560 | 2022-05-23T18:12:06 | 2022-05-23T18:12:06 | 95,340,553 | 235 | 88 | NOASSERTION | 2023-07-05T06:36:28 | 2017-06-25T05:30:46 | Python | UTF-8 | Python | false | false | 4,914 | py | # encoding: utf-8
# module Autodesk.Revit.UI.Plumbing calls itself Plumbing
# from RevitAPIUI,Version=17.0.0.0,Culture=neutral,PublicKeyToken=null
# by generator 1.145
# no doc
# no imports
# no functions
# classes
class IPipeFittingAndAccessoryPressureDropUIServer(IExternalServer):
""" Interface for exte... | [
"gtalarico@gmail.com"
] | gtalarico@gmail.com |
d131a9517e2be365b1cd02a2b1ab8f0ab48be333 | 7cdd89eb118e2206e84ef7940d76e603ae8c8235 | /checker/proverka.py | 6bb170d41acae877ebee66cdb2f90e94630e66e6 | [] | no_license | ppofigist/juniors | ac5ba3cd780004cd18de5daa433a2bbc5abbe94a | 873511fc163115113e8b87246fd6c0dbea49dd58 | refs/heads/master | 2022-05-27T02:52:52.224501 | 2020-04-28T06:33:05 | 2020-04-28T06:33:05 | 259,547,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | def proverka(password):
if len(password) < 6:
return 'Недопустимый пароль'
elif password.isdigit() or password.lower() or password.upper():
return 'Ненадежный пароль'
elif password.islower() or password.isupper():
return 'Слабый пароль'
return 'Надёжный пароль'
print(proverka('... | [
"59957987+ppofigist@users.noreply.github.com"
] | 59957987+ppofigist@users.noreply.github.com |
6c64f27a25fd5960f47fd053e2c459ca3460867a | fc7e54796bf63283c2edcba6796036a28c72fe73 | /examples/amount.py | 36cbc72a3ebaa974c3cad1fdea0e801a7c96f232 | [
"MIT"
] | permissive | Oukanina/tron-api-python | ef05c635e3b19cbef93edd5b5b9018615fdb3c43 | 8d6f8cf31bad328568c716a9d4cd8a09a6dd9257 | refs/heads/master | 2020-04-05T20:06:17.361215 | 2018-11-11T07:34:36 | 2018-11-11T07:34:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | from tronapi import Tron
from tronapi import HttpProvider
full_node = HttpProvider('https://api.trongrid.io')
solidity_node = HttpProvider('https://api.trongrid.io')
event_server = HttpProvider('https://api.trongrid.io')
tron = Tron(full_node,
solidity_node,
event_server)
tron.toSun(1)
# resu... | [
"steein.shamsudin@gmail.com"
] | steein.shamsudin@gmail.com |
839b94d4d8f8243f8a806580eb30dd9bd25e5f1e | 3093520d03fb2701e97b60755dd55534efa8d6c6 | /yoursite/manage.py | 612e0a62379788b44b248284980f479cd8f7583f | [] | no_license | bradwright/django-layout | 6da01d613135ffa37a1b335f961a0e7e0d2c8baf | 9b2fe6b862237217e56d00b1f634e15791a96b26 | refs/heads/master | 2020-04-10T16:54:26.939487 | 2009-08-29T08:41:14 | 2009-08-29T08:41:14 | 76,139 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | #!/usr/bin/env python
# Hack the Python path to add our `lib` as first in the search path
import os
import sys
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../lib'))
# regular stuff carry on
from django.core.management import execute_manager
try:
import settings # Assumed to be in the same director... | [
"brad@intranation.com"
] | brad@intranation.com |
cf3a580793ca0e8728627bee296bed9d125d4c34 | 195046153bf7c608d7919d0af9005467152ffb74 | /tests/conftest.py | 6725c9af6f914c1eda9304d17e74f2e622de7c6e | [
"MIT"
] | permissive | adamchainz/time-machine | b72d1fb7f60b9f131ace8ea87820b07091fa1568 | c59e60681b43d504c51b52a6b69ce73dbf9ad998 | refs/heads/main | 2023-09-04T06:32:02.228162 | 2023-08-29T16:07:17 | 2023-08-29T16:07:17 | 259,841,110 | 511 | 30 | MIT | 2023-09-14T14:22:22 | 2020-04-29T06:16:39 | Python | UTF-8 | Python | false | false | 148 | py | from __future__ import annotations
import os
import time
# Isolate tests from the host machine’s timezone
os.environ["TZ"] = "UTC"
time.tzset()
| [
"noreply@github.com"
] | adamchainz.noreply@github.com |
a8882dbc39127e18c02e9ea41f7f4c2804e019d4 | 098019f7f1821f01348eaef351ff9770b13adab0 | /models/product_supply.py | c6b642e79ddbcc19a304d96e70fb67972c68f5ca | [] | no_license | zyn1030z/stock | 476b553c444b275543831197b72be75b1683efa9 | 2413bf52fdef6170b10f4e4f1cdade0bb9f75160 | refs/heads/master | 2023-05-04T08:21:36.131005 | 2021-05-27T09:59:00 | 2021-05-27T09:59:00 | 371,326,253 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | from odoo import models, fields
class product(models.Model):
_inherit = 'product.template'
supply_type = fields.Selection([
('warehouse', 'Kho tổng'),
('purchase', 'Thu mua')],
string='Thông tin danh mục hàng hóa', default='warehouse', track_visibility='always', required=True)
| [
"thaihung412@gmail.com"
] | thaihung412@gmail.com |
c49013f41c7b5be215579b86518c5d6fe10595f7 | 166cd1643da77c169eff2cfd6a9b989e1d193417 | /pynapl/APLPyConnect.py | d3a5517c79cea8a6ab56165e7c51ab2f9fc03d81 | [
"MIT"
] | permissive | Dyalog/pynapl | 0123bee9036cea04ccfa145cae8287a64b928374 | 7e47c04711a3f4d0c3587fb428f3aefe736006fb | refs/heads/master | 2022-09-22T07:25:44.821175 | 2022-08-31T10:47:23 | 2022-08-31T10:47:23 | 102,481,506 | 70 | 14 | MIT | 2022-08-31T10:47:24 | 2017-09-05T12:59:25 | Python | UTF-8 | Python | false | false | 22,587 | py | # APLPyConnect
# -*- coding: utf-8 -*-
# This module handles the passing of messages between the APL side and the Python side
# The format of a message is:
# 0 1 2 3 4 ......
# TYPE SIZE (big-endian) MESSAGE (`size` bytes, expected to be UTF-8 encoded)
from __future__ import absolute_import
fro... | [
"marinuso@gmail.com"
] | marinuso@gmail.com |
5296914f31dfa648d606edcb432e60d48995d74f | e2bcf3a07829da38b494966c8392352f0f7c6ef6 | /webcrawler/webcrawler/items.py | 7345d1087cc1982f09ed9d716d2196705a7ccb44 | [] | no_license | abizerjafferjee/collegecondoalerts | d3875327b8b5d68c4c90bb9fb5fe7c5dad6a7ab7 | f35324d0791c9198775b2d64eb0ef1767e3fa0be | refs/heads/master | 2022-07-01T17:52:53.442506 | 2020-05-08T16:20:43 | 2020-05-08T16:20:43 | 260,981,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,255 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class WebcrawlerItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
class Places4StudentsListingI... | [
"abizerjafferjee@gmail.com"
] | abizerjafferjee@gmail.com |
ed3bb5fc994b6721597a9c7515168a964997ee84 | 1434aee6bf3beb1b36ecc010d8231e5d7c6f8b07 | /01/dictionaries.py | 89de86eec2f6e7bd6bf9cc3c1db4a619718eb682 | [] | no_license | elnazbkh/practice_python | 5ddc9eb9389206be46b0fa79f8b327b6a418178c | a4ef032dc3a3e0803b9121d7fb975f066fc6e31e | refs/heads/master | 2020-05-29T13:51:39.178216 | 2019-06-19T07:13:25 | 2019-06-19T07:13:25 | 189,176,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py |
#movie = ["sunlight", "woody allen", 2009,"yes", "no"]
movie ={"title":"sunlight", "director": "woody allen", "year": 2009, "answer": "yes"}
print(movie["title"])
#print(movie.clear())
print(movie.values())
print(movie.__len__())
print(movie.get("name"))
movie.update({"a": 1235, "b":585})
print(movie)
print(movi... | [
"elnaz.bakhtiari20@gmail.com"
] | elnaz.bakhtiari20@gmail.com |
aebafca48460fe335d6d580a522270231e3bb2af | 3bb70650b4b83e4653dcc18c8233c106c7a5611a | /payment_type/views.py | 208424481df08a022dc05541b289d53b7e328f55 | [] | no_license | khanhlu2013/pos_connect_code | 48e736a6b1c5ca6a5c4ff39d842d8a93f66e67ef | fdf70de858c10b175832af31ecc0cf770d028396 | refs/heads/master | 2023-04-08T02:35:46.181265 | 2016-10-18T21:12:51 | 2016-10-18T21:12:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,952 | py | from payment_type.models import Payment_type
from payment_type.payment_type_serializer import Payment_type_serializer
from django.http import HttpResponse
from django.core.serializers.json import DjangoJSONEncoder
import json
def payment_type_insert_view(request):
pt = json.loads(request.POST['pt'])
cur_login... | [
"khanhlu2013@gmail.com"
] | khanhlu2013@gmail.com |
3200279fcdb8a3178f8a843db5bccc368278b969 | decdfe51291044e66c9fdaa4c7f1bc469d2627cd | /example/threshold_calcs.py | 675ad6963d5ffbe3cefeffca71dd797d995b48b0 | [] | no_license | tomclose/mcmc_code | 011435d191cbbf4635e493181283a3cb96bbf4c9 | c3efde48e33c92564f3e8bd8a26e3820fb2649fe | refs/heads/master | 2018-12-28T05:58:24.065898 | 2013-04-03T13:59:50 | 2013-04-03T13:59:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,620 | py | import sys
import os
sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'lib'))
import numpy as np
import state as st
import chain as ch
import getopt
def run_trials(size=6, prob=0.1, n_steps = 5000, n_trials = 1000, verbose=True):
successes = failures = 0
for i in range(n_trials):
s_orig =... | [
"tom.close@cantab.net"
] | tom.close@cantab.net |
815be0e05f4238e38eed2ee4c71197dfb56b19a6 | a498ca05c3c02a94713f8396a92ce3b979aef0cf | /DRF/src/libraryrest/views.py | 938bcd888019086ef86d2f9657483af070fdbfe3 | [] | no_license | Sherlock5000/fullstack-toy-project | 4404870366441dc35d2812d5ed9b373dd891b26f | 5e559db07017a8c1e0bd11e459e14a27149ab2c4 | refs/heads/main | 2023-07-04T21:40:05.107701 | 2023-06-26T16:59:53 | 2023-06-26T16:59:53 | 386,567,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,284 | py | # from django.shortcuts import render
from rest_framework.authentication import TokenAuthentication
from rest_framework.permissions import IsAuthenticated
from rest_framework import viewsets
from libraryrest.models import Customer, Order, Product, Tag
from libraryrest.serializers import CustomerSerializer, OrderSerial... | [
"anirban.das.16@mountblue.tech"
] | anirban.das.16@mountblue.tech |
882afb6438c7ec619724f5a3cc536e0417024e12 | 19181c269e51e381417dec4e2a0ac9ba06589efe | /Floppotron/Wii Shop.py | d3abb6918a4d2f1843864fad0ebd18bc6fd6fa41 | [] | no_license | SamueldSun/Floppotron | 9bf2fd8c77efebc061ff506f0d761412d3999f82 | f7a61c2bf3ae5940d5b4e09c33312dc7fda3fa12 | refs/heads/master | 2020-04-11T18:49:04.404170 | 2018-12-16T15:09:07 | 2018-12-16T15:09:07 | 162,012,564 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,723 | py | hertz = [0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
31,
... | [
"noreply@github.com"
] | SamueldSun.noreply@github.com |
8479e2bf35b03e205eaeaef0584246e9b2d39146 | cac694ea9a7f0cc918d9a3c91a76111657df8af6 | /pwn_network.py | ac2d102e2fd9cec857cc91a37a916204e8ae81e4 | [] | no_license | NavKang/IntroToPwntools | c234936b50c9755a9ce1e15b65ba2807654a97f5 | 83c260795e26a8717814669887a84eb246aeae7f | refs/heads/main | 2023-05-25T09:55:47.477011 | 2021-06-10T15:54:53 | 2021-06-10T15:54:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | from pwn import *
connect = remote('127.0.0.1', 1337)
print(connect.recvn(18))
payload = "A"*32
payload += p32(0xdeadbeef)
connect.send(payload)
print(connect.recvn(34))
| [
"noreply@github.com"
] | NavKang.noreply@github.com |
835e7636670509badbc31c10b573de3732f0f7e5 | 5fd76ed8167e4259524e2fddfaca3945de0a2e90 | /covid19/covid19.py | 904eeefa270dbbde4c8b9be90824079c69b926f3 | [] | no_license | davidjdclarke/scripts | 87f71efadbfc873066541a23bc29f8d4044607aa | acea0b687b2b096e5781ed3fda7d5462d0381082 | refs/heads/master | 2023-04-28T12:35:33.239034 | 2021-05-20T21:54:17 | 2021-05-20T21:54:17 | 334,979,491 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,592 | py | import pandas as pd
from matplotlib import pyplot as plt
def get_all_cases(data):
data_keys = []
for i in range(len(data)):
if data[i] not in data_keys:
data_keys.append(data[i])
return data_keys
def percentage(death_numbers, prints=True):
percent = (death_numbers['deaths'] / dea... | [
"david.j.d.clarke@gmail.com"
] | david.j.d.clarke@gmail.com |
dcdc5eecf195e5435e2bd88a76d23087aa1ad8d9 | 04dcfaf382f90a7e6aee8f607f0379babb83e048 | /twitterhw3b.py | 1c0c14a32b597dc12a01bc895281c33bdf065784 | [] | no_license | malayshawhite2012/hw3 | d2b152f7edbbfbf01d9832131e9e9a56a439d483 | 2d5629714c425b55487b5277143ec7d6d097367e | refs/heads/master | 2021-01-11T07:35:06.998768 | 2016-11-15T01:59:50 | 2016-11-15T01:59:50 | 72,865,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,124 | py | # In this assignment you must do a Twitter search on any term
# of your choice.
# Deliverables:
# 1) Print each tweet
# 2) Print the average subjectivity of the results
# 3) Print the average polarity of the results
# Be prepared to change the search term during demo.
import tweepy
from textblob import TextBlob
acce... | [
"dajour@umich.edu"
] | dajour@umich.edu |
c71310117d5a77f30939815439c12d298add4716 | a429fc499f463d2aa3390174f5db03928c7a7334 | /account/migrations/0003_auto_20191009_1412.py | c25d4aeb4b3376fe3a1945762a60c5a742454e05 | [] | no_license | Junseok0211/FootballLover | 29c4a3dd1a78a5d7d27d53bb318b3dc787d42c2f | 817f7ea556dfa6a659cb7ebcd27f9e8c7aa35900 | refs/heads/master | 2022-12-10T02:28:32.800467 | 2020-04-28T17:09:25 | 2020-04-28T17:09:25 | 220,898,295 | 0 | 1 | null | 2022-12-08T06:15:27 | 2019-11-11T04:04:02 | HTML | UTF-8 | Python | false | false | 406 | py | # Generated by Django 2.1.8 on 2019-10-09 14:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('account', '0002_fnsuser_teamname'),
]
operations = [
migrations.AlterField(
model_name='fnsuser',
name='name',
... | [
"didwnstjr777@gmail.com"
] | didwnstjr777@gmail.com |
5386ed8a053aad896554efa4ec0fe332d49a55dd | e27295381be2b8d3bde601aea4954fa931c95176 | /lesson4/monkey/hw/system.py | 141dc4d05ff61e108a03afba213e4ecddff35f9a | [
"MIT"
] | permissive | cnjllin/actual-16-homework | cd20f951ceaf956ead221ef5f756a0914b16cd8e | c4937af205dd7cee3ee39223f8b9271059e72d7e | refs/heads/master | 2020-03-17T18:40:17.191245 | 2017-12-10T04:51:11 | 2017-12-10T04:51:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,063 | py | #!coding: utf-8
import sys
import json
personinfos = []
def login(*args, **kwargs):
username = raw_input('Username: ')
password = raw_input('Password: ')
# check failed count; failed_count >= 3
if check_failed_count(username):
print 'disable username:%s login reboot system, failed count more... | [
"zhengyscn@gmail.com"
] | zhengyscn@gmail.com |
6ec929b5a098d1c3ed743eca5d3183070a766f35 | a8aa6570ad116f0ab6b059c4e2b68def88a47837 | /Restaurants/restaurant_website/urls.py | 5eff369a4f7569a6257bd7929ed83b2e854ba80d | [] | no_license | omkumbhar/Restaurants | 59eb9bd53a2061109119d5f7e224d4a02ee9ccb9 | a1b1311de4e214b5dafedb7354a0700f436444d0 | refs/heads/master | 2022-04-23T14:45:47.584102 | 2020-04-24T17:16:31 | 2020-04-24T17:16:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.home, name = 'restaurant-home' ),
path('about/', views.about , name = 'restaurant-about' ),
#testing
path('login2/', views.login , name = 'restaurant-login' ),
]
| [
"om.kumbhar1998@gmail.com"
] | om.kumbhar1998@gmail.com |
a61cc96f66da89971df0b310fea5e1c4c77d0380 | 0db97db08743783019efe022190f409d22ff95bd | /aliyun/api/rest/Mts20140618QuerySnapshotJobListRequest.py | a8644f1e42038e7be4e63081c0410bf482cc2082 | [
"Apache-2.0"
] | permissive | snowyxx/aliyun-python-demo | 8052e2a165f1b869affe632dda484d6ca203bd9b | ed40887ddff440b85b77f9b2a1fcda11cca55c8b | refs/heads/master | 2021-01-10T03:37:31.657793 | 2016-01-21T02:03:14 | 2016-01-21T02:03:14 | 49,921,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | '''
Created by auto_sdk on 2015.09.22
'''
from aliyun.api.base import RestApi
class Mts20140618QuerySnapshotJobListRequest(RestApi):
def __init__(self,domain='mts.aliyuncs.com',port=80):
RestApi.__init__(self,domain, port)
self.SnapshotJobIds = None
def getapiname(self):
return 'mts.aliyuncs.com.Quer... | [
"snowyxx@126.com"
] | snowyxx@126.com |
5c53baa76533a72c959d0164d038264dfa51729c | c91df3a07cc5cbf9a6a226d52173594de197e074 | /enemy.py | a58333b108bb7ceef5b8b89f8a9460d3ecbbfde2 | [] | no_license | devu1999/mario-game | 073e7cd15b6ae5940f77617174e504466754f6e7 | 824d62ae519d500fa6dbd6f0a06b19ae17caa6b1 | refs/heads/master | 2020-03-27T21:16:06.318149 | 2018-09-02T23:40:51 | 2018-09-02T23:40:51 | 147,129,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,950 | py | import random
import sys,os
class enemy():
def __init__(self,obj):
self.x = 18
self.y = random.randint(10,75)
self.direction = 'R'
self.char = []
while( obj.Gamepad[self.x][self.y] != " " and obj.Gamepad[self.x + 1][self.y] != " "):
self.y = random.randint(0,75)
... | [
"devg1102@gmail.com"
] | devg1102@gmail.com |
139ce554357157ee605910b67a1ad2c43e74add6 | d820c8efb25c9adb77015650a0f7dc6f1e983bfe | /abc/abc218_e.py | fcfc866e2728f903df05115cd96db8e7ca1c1c25 | [] | no_license | toshikish/atcoder | 73fdaa2310f23f846279f9f7466bdb969448371f | 33676630d6820dd92ccf0931425b8906b065bedd | refs/heads/master | 2022-05-16T20:00:52.665762 | 2022-04-02T11:55:44 | 2022-04-02T11:55:44 | 173,099,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | N, M = map(int, input().split())
E = []
for _ in range(M):
Ai, Bi, Ci = map(int, input().split())
Ai -= 1
Bi -= 1
E.append((Ci, Ai, Bi))
E.sort()
class DisjointSet():
def __init__(self, n):
self.parent = list(range(n))
self.rank = [1] * n
def find(self, x):
if self.par... | [
"toshiki@nanshika.com"
] | toshiki@nanshika.com |
d6df1d5232d2d55d87f21593517e5c6ff70ff91f | 6ba163412b7868bbb5c872caf6172b44d1acf24e | /withPython_ch3.2_Matplotlib/3_8_plt_imshow.py | c8f173e79d1148925da8bd3ca08b6c69d1ea51b1 | [] | no_license | sejhig2/openCV_practice_StepByStep | 6d6a238dcb389a89f68daa9b4f545f7021cb8170 | 5ad64a18cdf3202a2e4e060d5158dbef41927b64 | refs/heads/main | 2023-03-16T12:15:59.352848 | 2021-03-04T06:27:57 | 2021-03-04T06:27:57 | 343,457,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | import cv2
import matplotlib.pyplot as plt
img = cv2.imread("../python_openCV/img/girl.jpg")
plt.imshow(img)
plt.show()
# BGR 순서라서 색상이 좀 이상한다
# BGR -> RGB [:,:,::-1]
| [
"sejhig2@gmail.com"
] | sejhig2@gmail.com |
927571f2a97f9ca7dddd4aff0afa491e1db4f25a | e45f2c8e8327ca184c86f971df5a7792e75a26ed | /MobileShop/mobilestore/migrations/0001_initial.py | c892c96c4fc87fdc395f6575d3aa13e360caabbb | [] | no_license | Shrayas1497/django | 06bec848a80559b8e598bce23397e2603b0c7959 | 98a3ca5842877a3a433c63f4599a59a11f7dde4e | refs/heads/master | 2020-06-19T20:06:49.337486 | 2019-07-14T15:49:17 | 2019-07-14T15:49:17 | 196,853,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | # Generated by Django 2.1.5 on 2019-02-16 09:13
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Mobile',
fields=[
('id', mo... | [
"noreply@github.com"
] | Shrayas1497.noreply@github.com |
7c49c89d993e3bd614c5f79f232e45bc260b47e1 | 84f073856c8665b0f8b813a46a38f96ccd4f2790 | /object_detection/models/ssd_mobilenet_v1_ppn_feature_extractor.py | 258fb41347df9a887a373e84f08bfa886938e62a | [] | no_license | fengrk/ml_tools | ad9336e47447e9a0f63ba7fc2e86c7eea51c955e | 70e634250455ff6f3aeb826e781b8096adbdc066 | refs/heads/master | 2023-07-19T15:34:46.780323 | 2019-03-02T03:59:53 | 2019-03-02T03:59:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,304 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"frkhit@gmail.com"
] | frkhit@gmail.com |
16febf386bbb52f000770bc909d67557720a0f3b | 53784d3746eccb6d8fca540be9087a12f3713d1c | /res/packages/scripts/scripts/client/gui/Scaleform/daapi/view/meta/BattleEndWarningPanelMeta.py | 67bbe6c0f9117393281defdf84811f8d3554b181 | [] | no_license | webiumsk/WOT-0.9.17.1-CT | 736666d53cbd0da6745b970e90a8bac6ea80813d | d7c3cf340ae40318933e7205bf9a17c7e53bac52 | refs/heads/master | 2021-01-09T06:00:33.898009 | 2017-02-03T21:40:17 | 2017-02-03T21:40:17 | 80,870,824 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,091 | py | # 2017.02.03 21:50:47 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/BattleEndWarningPanelMeta.py
from gui.Scaleform.framework.entities.BaseDAAPIComponent import BaseDAAPIComponent
class BattleEndWarningPanelMeta(BaseDAAPIComponent):
"""
DO NOT MODIFY!
Generat... | [
"info@webium.sk"
] | info@webium.sk |
0126f26c50a8babbd38d8d7ece652c250b42d88c | 1b6e103ff6e88b25cfdbd2599010778639c0037b | /src/utils/base_trainer.py | 65c7d7021fb0d0a689792f68ca7a3d6cc511e411 | [] | no_license | aerubanov/d3s_repro | 60ba4c8698c73cfff0f14c751ae6a929428f62f6 | a4a5288821dd2c3193ab24e4aac6d6cf99b94964 | refs/heads/main | 2023-06-18T04:00:07.046476 | 2021-07-15T11:20:29 | 2021-07-15T11:20:29 | 377,503,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,192 | py | import os
import glob
import torch
from src.utils import loading
class BaseTrainer:
"""Base trainer class. Contains functions for training and saving/loading chackpoints.
Trainer classes should inherit from this one and overload the train_epoch function."""
def __init__(self, actor, loaders, optimizer, ... | [
"anatolijrubanov@gmail.com"
] | anatolijrubanov@gmail.com |
655fc2da230286506efb37fa4e3fc627064b3cfc | fc004129430e8527d763f049d5e3e103968da495 | /Create Your Own Image Classifier/train.py | 91291d2e1eef6e213e8754d30449a92de6d9d2a7 | [
"MIT"
] | permissive | Abhishek20182/AI-Programming-with-Python-Nanodegree-Program | 8d25d9339f0096ab4375a54a87cc4a97bf39ae1d | 640e03a527f8b0a6fbb996f0d7a6665edb64800b | refs/heads/master | 2022-11-18T14:26:22.704529 | 2020-06-26T12:34:14 | 2020-06-26T12:34:14 | 262,749,427 | 1 | 0 | MIT | 2020-06-03T09:18:04 | 2020-05-10T09:08:29 | Jupyter Notebook | UTF-8 | Python | false | false | 7,734 | py | import numpy as np
import torchvision
import torch
from torch import nn, optim
from torch.optim import lr_scheduler
from torchvision import datasets, models, transforms
from collections import OrderedDict
import argparse
from time import time
def main():
start_time = time()
in_arg = get_input_args()
devi... | [
"noreply@github.com"
] | Abhishek20182.noreply@github.com |
22a4807e38b136dd298ef817f620f34a8bbbc067 | d9dbcb98c151155a2eb11dfcedd9201d6291e0dd | /5problems_pt5/duplicateZeroes.py | fd198875188f47c0fd296fb0c9859e491e8eceee | [] | no_license | Absurd1ty/Python-Practice-All | 41481aaf94e936a82308dfc88016b9969ddb875c | ac56a8fb44dd311e81e1eb62a37952c3328c5f17 | refs/heads/master | 2023-03-31T12:20:35.812628 | 2021-04-06T01:15:35 | 2021-04-06T01:15:35 | 299,475,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | class Solution:
def duplicateZeros(self, arr: [int]):
i = 0
length = len(arr)
while i < length - 1:
if arr[i] == 0:
currSub = arr[i+1:length-1]
arr[i+1] = 0
arr[i+2:length] = currSub
i += 2
... | [
"noreply@github.com"
] | Absurd1ty.noreply@github.com |
fd9ae2fc52ef3eb168f0bee16f72dad075340ad9 | 471cf22054b01e911474a342f379bf1000c5f268 | /auto_login.py | b8f000c3440265e8bf9e92c17bc4f58aa495fe1a | [] | no_license | Tsukasa007/ktkjLogin | 901beb23f8e439defe4aee9522b8705aa31dfec9 | 8a772276a440a7bd2bd1badca03d3eacb5c1591d | refs/heads/master | 2023-05-27T10:09:10.728842 | 2020-05-06T14:43:47 | 2020-05-06T14:43:47 | 205,136,050 | 2 | 0 | null | 2023-05-22T22:16:55 | 2019-08-29T10:12:06 | Python | UTF-8 | Python | false | false | 6,436 | py | # 方便延时加载
import time
from selenium import webdriver
from PIL import Image, ImageEnhance
import requests
from selenium.webdriver.support.select import Select
import sys
import codecs
import json
import logging
def isElementExist(browser, element):
flag = True
try:
browser.find_element_by_link_text(elem... | [
"819582890@qq.com"
] | 819582890@qq.com |
255421d0e034c53a80bd67fa8cc148e46cebc61e | 792ae5d2a5c17af4f2ccfa582e3aeec569a6809a | /63. Unique Paths II.py | 1c1f98c62a83cb4c0a740bec2578fdbc20ae5fc5 | [] | no_license | ADebut/Leetcode | 396b8b95ad5b5e623db2839bbfdec861c4c1731f | 7333d481e00e8c1bc5b827d1d4ccd6e4d291abd7 | refs/heads/master | 2020-07-05T18:48:27.504540 | 2019-10-28T10:51:43 | 2019-10-28T10:51:43 | 202,735,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | class Solution:
def uniquePathsWithObstacles(self, obstacleGrid: List[List[int]]) -> int:
m = len(obstacleGrid)
n = len(obstacleGrid[0])
if obstacleGrid[0][0] == 1:
return 0
dp = [0 for i in range(n)]
for i in range(n):
if obstacleGrid[0][i] =... | [
"chen758@usc.edu"
] | chen758@usc.edu |
4c3dfe89b2dd19e2f9ef5c8427be243e88a7ff96 | 0319704980f5134701ea97361b8c585839e853bc | /Spider/FuZhouTourSpider.py | fd53316b39fd1b609374c11940a86b6dfa1a4da3 | [] | no_license | ttxx9999/ArticleSpider | a35785453849c6ce7eda7ac6adccd7752d6b5e8f | 8f981359273062b8b22de022c7e6999044ebb5f5 | refs/heads/master | 2021-01-20T22:01:52.256542 | 2014-10-29T09:21:07 | 2014-10-29T09:21:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,845 | py | import Spider
import re
import logging
import datetime
class FuZhouTourSpider(Spider.Spider):
"""福州旅游资讯网 Spider"""
def __init__(self):
Spider.Spider.__init__(self)
def CatchArticles(self):
abstracts = None
html = self.DownLoadHtml(self.url.format(20, 1), '文章摘要接口{0}访问失败,异常信息为:{1}')
if html == None:
return... | [
"liujinglj518@gmail.com"
] | liujinglj518@gmail.com |
d21a0a3c588e67332162c3e3f5f513da5e2119b7 | 4ce44cf2bd1a5c2aca5953e5969b603ca2c75990 | /myProyecto/Petalos/views.py | 13bcc9f7ff6a9f589afb13c56c788c584c2d630f | [] | no_license | jajinho/PetalosFloreria | 1074c1276c99d7df9b6717bd4cb4e7edfdbe81bd | 513ba70c095ac12f4f000e053e27437e7b637db0 | refs/heads/master | 2020-09-30T04:49:37.994213 | 2019-12-10T21:27:42 | 2019-12-10T21:27:42 | 227,206,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,186 | py | from django.shortcuts import render
from .models import Floreria,Ticket
from .clases import elemento
from django.contrib.auth.models import User
from django.contrib.auth import authenticate,logout,login as login_autent
from django.contrib.auth.decorators import login_required
import datetime;
# Create your views here.... | [
"alej.gallardog@alumnos.duoc.cl"
] | alej.gallardog@alumnos.duoc.cl |
3cb47fafd4503cb268feb2e6a3ead5817f5a93eb | aaf21cc38867fa2d675e16b6788b1d48b1cfa73c | /gbp/scripts/clone.py | 63b1468a064b2117b11bf41ab99bfb0539d5ab0d | [] | no_license | teselkin/git-buildpackage | ceb44990c0a03a8da3f35c8d296e7207923be049 | f78de4f006dbf5fea3d6ae4b50901fb003644c6e | refs/heads/master | 2021-01-18T00:20:50.558188 | 2016-11-25T10:20:50 | 2016-11-25T10:25:24 | 55,617,648 | 0 | 0 | null | 2016-04-06T15:26:58 | 2016-04-06T15:26:57 | null | UTF-8 | Python | false | false | 6,022 | py | # vim: set fileencoding=utf-8 :
#
# (C) 2009, 2010, 2015 Guido Guenther <agx@sigxcpu.org>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at yo... | [
"agx@sigxcpu.org"
] | agx@sigxcpu.org |
e7528b53bf59accca0a8edb3e80b97d34f68dd60 | b47c9f284c80061fc094568fc095f6daf0cd7d89 | /soukuanshop/soukuanshop/main.py | 5213b306e19ae97badfe9f9b24b2c5dc58741ba1 | [] | no_license | wjsunday/scrapy_test | 2361c0584ea546cfec0a9d9854fad1c209f8d6b2 | 980e2f8b898de2f76e5cc1754b66a0be90b1b738 | refs/heads/master | 2022-11-14T05:43:16.821153 | 2019-03-22T06:38:01 | 2019-03-22T06:38:01 | 170,845,836 | 0 | 1 | null | 2022-11-04T19:26:43 | 2019-02-15T10:20:16 | Python | UTF-8 | Python | false | false | 86 | py | from scrapy import cmdline
cmdline.execute('scrapy crawl soukuanshop_spider'.split()) | [
"wangalways@163.com"
] | wangalways@163.com |
f98677b8c19e4cc92135f5d82ed7910c4ceaacf0 | 942c67f11656d0da648c7156e7dbe37e9216a723 | /tools/convert_uff.py | 0b0dfa741c9af75c6e54c7673e5c783c99b5c47c | [
"MIT"
] | permissive | ikonushok/recface | 62eec353d3eded97fa7748d3f45f1964f0f673bc | bada63e1b92783cde1d99501e76a78eb363b225f | refs/heads/main | 2023-08-18T07:02:31.468952 | 2021-09-15T08:06:08 | 2021-09-15T08:06:08 | 460,003,377 | 0 | 1 | MIT | 2022-02-16T12:53:36 | 2022-02-16T12:53:36 | null | UTF-8 | Python | false | false | 1,100 | py | #!/usr/bin/env python
import sys
import logging
import argparse
logging.disable(logging.WARNING)
# The "uff 0.6.9" module works only with "tensorflow 1.15.0"
UFF_DIR = '/usr/lib/python3.6/dist-packages'
sys.path.append(UFF_DIR)
import uff
logging.disable(logging.NOTSET)
def create_parser():
parser = argparse.Arg... | [
"rustequal@gmail.com"
] | rustequal@gmail.com |
4c549606cc28efd9624f18138428cae291966aaf | 0d235d1a01f623fc0e0f3a1c634eb38659a0609e | /files/check_restore_processes.py | 1c7aa5af828cbe114b6ebedf5dcd64571a0b8fd0 | [] | no_license | dCache/dcache-puppet | 4d3d53539c5adf335bdc19333fccae2770fe8417 | 40fd1bb8298fcfce7593dd02440351a4bb0767d1 | refs/heads/master | 2021-01-01T05:46:41.046127 | 2019-06-17T13:55:18 | 2019-06-17T13:55:18 | 41,730,779 | 0 | 2 | null | 2017-09-20T15:08:40 | 2015-09-01T09:54:36 | Perl | UTF-8 | Python | false | false | 1,721 | py | #!/usr/bin/python
# FILE: /opt/endit/check_restore_processes.py
#
# DESCRIPTION:
#
# VERSION: 06.12.2013
#
# AUTOR: Cristina Manzano
# Juelich Supercomputing Centre (JSC)
# Forschungszentrum Juelich GmbH
# 52425 Juelich, Germany
#
# Phone: +... | [
"o.tsigenov@fz-juelich.de"
] | o.tsigenov@fz-juelich.de |
e8a6c4a603dd1cbd2f2a7b1cfd2e38ae89096891 | 9ac7f65867bf8654db45c346bdaf67d2bda8580e | /Clustering/clustering.py | 69073c129c7bccddbf017112eb5dfd99774ca17a | [] | no_license | rashmi59/AMLCornell | ad9e3df1cbdaf4cfc2ed88fca1c6234213504242 | dcb7782a0fb1877c7782b2267dab276b16d8a77c | refs/heads/master | 2023-02-01T05:03:27.075153 | 2020-12-20T04:31:11 | 2020-12-20T04:31:11 | 302,675,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,779 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Dec 1 22:08:17 2020
@author: rashmisinha
"""
import numpy as np
from functools import cmp_to_key
from matplotlib import pylab as plt
import random
doc_word = np.load("science2k-doc-word.npy")
text_file = open("science2k-titles.txt", "r")
titles = text... | [
"rashmi.s5991@gmail.com"
] | rashmi.s5991@gmail.com |
426a44d8dad21cdb891f06f7a97122c8ba62a0b6 | 2bdedcda705f6dcf45a1e9a090377f892bcb58bb | /src/main/output/test/aws_people_netflix_job.py | 2b7ca0507043c6c957363b451686f46eed298080 | [] | no_license | matkosoric/GenericNameTesting | 860a22af1098dda9ea9e24a1fc681bb728aa2d69 | 03f4a38229c28bc6d83258e5a84fce4b189d5f00 | refs/heads/master | 2021-01-08T22:35:20.022350 | 2020-02-21T11:28:21 | 2020-02-21T11:28:21 | 242,123,053 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,793 | py | using System;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.Translator.API;
namespace CSharp_TranslateSample
{
class Program
{
private const string SubscriptionKey = "02fc72d7132657bc795325f80933e657"; //Enter here the Key from your Microsoft Translator Text s... | [
"soric.matko@gmail.com"
] | soric.matko@gmail.com |
bbd421d3102721960d65d39daf5a187b6a76d6a5 | cfce1431185099032e3d2399cf6ee1d5fc3d153a | /pyspark10.py | 91e60ba06eaed2c14e932605a30981a74d3492a5 | [] | no_license | mohanvatrapuhub/Spark-Code | 6315ce7d34c3033d698c809c6d42e482bae576fd | a8a1f652f1a33ba40ab38e7d508a960a698f9fe9 | refs/heads/master | 2021-01-11T16:23:29.488261 | 2017-01-26T00:57:37 | 2017-01-26T00:57:37 | 80,069,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,132 | py | #Finding the average revenue per day using aggregate functions in spark using pyspark
ordersRDD = sc.textFile("/user/cloudera/import/orders")
orderItemsRDD = sc.textFile("/user/cloudera/import/order_items")
ordersParsedRDD = ordersRDD.map(lambda rec: (rec.split(",")[0], rec))
orderItemsParsedRDD = orderItemsRDD.map(l... | [
"mohanchaitanya2593@gmail.com"
] | mohanchaitanya2593@gmail.com |
e21efb1a670fd9d11859661c10a6e5043a968dad | e5f61b78618dcbd25f6789a6f9c2246c9e1fa74a | /day_3/todo_list/.todo-list/bin/dotenv | 4660b0da286e3828f00d3e44eefc7eb8ced6680a | [] | no_license | stephenh369/python_course | 14674a77d543d86babb767089be6c6bed04e75f6 | 39297e3e52e31fb265ff614a368307847f18f653 | refs/heads/master | 2023-01-01T07:20:10.505888 | 2020-10-16T09:29:23 | 2020-10-16T09:29:23 | 304,581,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | #!/Users/user/e41/codeclan_work/python_extra_course/day_3/todo_list/.todo-list/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from dotenv.cli import cli
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(cli())
| [
"stephen_h369@live.co.uk"
] | stephen_h369@live.co.uk | |
f5c1516db24cb09cf7068e17be9a3f99b012f220 | 7644d98d292eb9260d295b3298a6110998c7e239 | /fb_scrap.py | 0b0f50a4da519b3141810b70b6be5e9998b237ac | [] | no_license | SarthakM7/facebookScraper-self- | 17c6329bff4b9dac9e9c345911f92a82a265795a | c7ae0929a9e83c837e56ca63215e0c71be204b86 | refs/heads/main | 2023-04-20T16:22:54.069325 | 2021-05-07T23:49:04 | 2021-05-07T23:49:04 | 365,377,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,570 | py | import codecs, os, re
from bs4 import BeautifulSoup
def parse_videos():
"""
Prints the total number of video files inside the /photos_and_videos/videos folder
uploaded directly to Facebook.
"""
videos_dir = '{}/photos_and_videos/videos'.format(fb_dir)
if not os.path.exists(videos_dir):
... | [
"noreply@github.com"
] | SarthakM7.noreply@github.com |
b7504f8d6a04c2aea9e6087d3e6e0aa4de3ec1d1 | c4a67e16f9aa1828aa53780f7ad1cb60033dabe3 | /main.py | 26f99e9d7f20cbc9bfcbf8635041f2e3fa3fcbc0 | [
"MIT"
] | permissive | t4t5u0/NarouBookmarkGetter | a34af8c28e64bc2e943019b90f0897455f93d6b9 | 08267adff137890cd4796a3f4022c3100c39f991 | refs/heads/master | 2023-07-27T17:28:54.109803 | 2021-09-07T20:38:47 | 2021-09-07T20:38:47 | 318,339,949 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,951 | py | import json
import time
from collections import UserDict
from configparser import ConfigParser
import requests
from bs4 import BeautifulSoup
login = 'https://ssl.syosetu.com/login/login/'
top = "https://syosetu.com/"
bookmark = "https://syosetu.com/favnovelmain/list/"
query = "https://syosetu.com/favnovelmain/list/in... | [
"ymmtryk0902@gmail.com"
] | ymmtryk0902@gmail.com |
f78a7ddcb5380ac08fb04a0a48d03d31cc027626 | 7d4c778e2ba6d8272baec99705e5691036e778c0 | /EE-without-Grammar.py | 2402e204645a1d3f465501ce690be05e420ddfd8 | [] | no_license | Ganz7/Reggo-Evaluator | b34dae7a81ccbd89a68369007a87bbc3dd8be085 | 5412b917d0488ae6183241c3e89a1ca370680906 | refs/heads/master | 2021-01-20T11:31:07.254296 | 2014-03-06T13:24:52 | 2014-03-06T13:24:52 | 17,478,272 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,118 | py | '''
Program: Essay Evaluator
'''
import csv
import numpy as np
import matplotlib.pyplot as plt
from nltk import wordpunct_tokenize
from nltk.tag import pos_tag
import re
import enchant
from LSA.LSAClass import LSA
'''For Grammar Checker'''
#Start
#from py4j.java_gateway import JavaGateway
#gateway = JavaGateway... | [
"ganzse7en@gmail.com"
] | ganzse7en@gmail.com |
7fbc0b70a1d798c7fa7d95d7619db076660ac08c | c957a774fc496f4e2e48a84c44af47ff763dbdee | /rmupgrade.py | a80a9c836d7bb1abd4e5d53b7825da073db52352 | [] | no_license | lfyhex/PythoneQtLanguage | acdd536ef630ac4aafcae8c68b80edeaa809063d | 2e554eeb0ab3cc45a09c27c5e7c6f9eb698501b5 | refs/heads/master | 2021-01-19T04:50:15.660166 | 2017-02-04T07:15:02 | 2017-02-04T07:15:02 | 50,153,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,419 | py |
import os
import sys
from datetime import datetime
from datetime import timedelta
import time
import re
"""
list upgrade files and dirs
"""
def exactVersion(strFile):
ma=re.search(r'[\d]+\.[\d]+\.[\d]+', strFile)
return ma.group(0)
def max_version(v1, v2):
lstV1 = v1.split(".")
lstV2 = v2.split(".")... | [
"lfy_hex@hotmail.com"
] | lfy_hex@hotmail.com |
5b1263a6ea43e9710528b7ab437313e5f610b2c1 | ab7a88e309012b2219dd6ef12c0ab51576941577 | /venv36/Scripts/pip3.6-script.py | fd22bdd9cb0dc4e7980a8bae4e08d2aad1af6f03 | [] | no_license | fly904021125/PythonSecondDemo | 745b9f56e00d9032c184be7e098eab819aa596c1 | 8ad79cdb3628fcfde0dd7f919f9480dab4d361be | refs/heads/master | 2020-03-18T05:31:41.576626 | 2018-05-22T02:02:43 | 2018-05-22T02:02:43 | 134,346,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | #!D:\PycharmProjects\SecondDemo\venv36\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip3.6'
__requires__ = 'pip==9.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"fly904021125@126.com"
] | fly904021125@126.com |
cfd71321999d2657b65392a548166bb813ef5305 | 2f4b7a0d28ee01c9c08f4f014ba7e2e073997cbb | /rustkr/models/log.py | 57ca6d4c4f6fe78facae95d27a7ba12c4fc73918 | [
"LicenseRef-scancode-public-domain"
] | permissive | Niev/rust-kr | cbb025d0383e401e2b55a19492c28a971788d08f | de91097f1451e9c0a81bbaf64463311d3cc8ff1b | refs/heads/master | 2020-12-25T12:57:04.406467 | 2013-05-09T15:07:03 | 2013-05-09T15:14:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py |
import threading
import settings
class Subscriber(threading.Thread):
def __init__(self, redis):
self.pubsub = redis.pubsub()
self.pubsub.subscribe(settings.CHANNEL + 'out')
self.result = None
threading.Thread.__init__(self)
def run(self):
self.listener = self... | [
"jeong@youknowone.org"
] | jeong@youknowone.org |
fc24c8baef943aac4ef7d865c9a7d271421a0716 | 3c13fbde9fba1070877fb4cd49dae6e8ea2ada14 | /main.py | 991418fca57a4a8a50bc5f51fea57c216f42b8b2 | [] | no_license | GregorAilario/NFT_monitoring_bot | 0c0dafcff9f730347f77b977fa0b94a9eb2cf00a | 79507407d937f20722f8fc49127601e13995bfd7 | refs/heads/master | 2023-08-22T04:13:45.600517 | 2021-10-22T14:23:51 | 2021-10-22T14:23:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,337 | py | import asyncio
import aiohttp
from aiogram import Bot, Dispatcher, types
from aiogram.utils import executor
from loguru import logger
from sqliter import SQLighter
from utils import get_floor_price_nft
COLLECTION_URL = 'https://qzlsklfacc.medianetwork.cloud/nft_for_sale?collection=%s'
NFT_URL = 'https://solanart.io/... | [
"akmal.melibaev@gmail.com"
] | akmal.melibaev@gmail.com |
1b9599c265bef331503dca3eee9e49cf141f9426 | 94ba3fd8075e7358935816913a7c7fe2757cf8c2 | /muspinsim/tests/test_celio.py | a6a554e646a983aa4cefa0bf04f111b476a97a35 | [
"MIT"
] | permissive | muon-spectroscopy-computational-project/muspinsim | c7ea505f082a6ef2ad5787aa43340821d96a6c18 | e57dfd3420150ec749cba589e51f72f83d06e30a | refs/heads/main | 2023-06-22T00:59:15.851277 | 2023-04-04T15:12:11 | 2023-04-04T15:12:11 | 330,638,091 | 2 | 1 | MIT | 2023-06-20T15:42:53 | 2021-01-18T10:59:14 | Python | UTF-8 | Python | false | false | 5,734 | py | import unittest
import numpy as np
from muspinsim.cpp import Celio_EvolveContrib
from muspinsim.celio import CelioHamiltonian
from muspinsim.spinop import DensityOperator
from muspinsim.spinsys import MuonSpinSystem, SingleTerm, SpinSystem
class TestCelioHamiltonian(unittest.TestCase):
def test_sum(self):
... | [
"joel.davies@stfc.ac.uk"
] | joel.davies@stfc.ac.uk |
6ed21186021b770676ebbd1275689ead2808d4fb | f3aed9aa1eca9bc39c6efbf034aa53badd4da4dc | /impuesto_renta/views.py | 7be50695f277985613ca37279fdf6ba1426a777c | [] | no_license | erickvh/payroll-app | f745a7514fc66095600d25c662b52792ea5813fa | 6c597581eea78c40209cbe05acc6f36d97d77dd2 | refs/heads/master | 2023-02-03T10:56:25.433749 | 2020-06-26T22:51:31 | 2020-06-26T22:51:31 | 256,535,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,140 | py | from django.http import HttpResponse
from django.template import loader
from django.http import Http404
from django.shortcuts import get_object_or_404,render,redirect
from django.contrib import messages
#imports del modelo
from .models import ImpuestoRenta
from .forms import RentaForm
# Create your views here.
def ind... | [
"zoilavillatoro6694@outlook.com"
] | zoilavillatoro6694@outlook.com |
54d25836e06aa3d8d4aa4b989e5f43d916beaea0 | 7400e1d7ff7145ea8c136e955f36aa1edbc37415 | /groupwise-2.0/project/home/views.py | 40efbbc2ddbbbfaea2a515d4bfdf0d49001f5688 | [] | no_license | Dai0526/ASE-Fall2016 | f62d48e67b1da8fdde2a44f25f51e7adea0d1ada | be87c528ff7b72d9e47e1aa2ef6a2f60e4409f44 | refs/heads/master | 2021-01-12T15:16:31.719304 | 2016-12-16T17:15:22 | 2016-12-16T17:15:22 | 69,819,155 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,898 | py | # imports
from datetime import datetime
from flask import Flask, request, session, url_for, redirect, \
render_template, abort, g, flash, _app_ctx_stack,make_response, Response, Blueprint
from functools import wraps
from flask_bootstrap import Bootstrap
from project import db
from project.models import *
# conf... | [
"tianhuaf0526@gmail.com"
] | tianhuaf0526@gmail.com |
293314d10f984b9284cc3e7c53b2b9ee5673aa61 | 14d35eccfca51ab90ba7a0529993cd5c9ed6218a | /template/variables/datafeed_incidents/development_variables.py | dade9a112e6f9250b8a1eb46b4e5e7c73d4077a9 | [] | no_license | gparrar/testing_framework | 823645f858e134b246d61be927ac949acfdd09ac | e4bc60da78605fa2aa72b74eadedd2a16b18db2a | refs/heads/master | 2023-01-12T12:54:15.739716 | 2019-06-26T22:53:04 | 2019-06-26T22:53:04 | 193,987,584 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,344 | py | #!/usr/local/bin/python
# -*- coding: utf-8 -*-
# Environment
USER_TOKEN = """eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJqdGkiOiI0MjkxNjFjMi1mYzgyLTQ2MDItYTRhOS03ZjQyYjNlY2ZlMDMiLCJleHAiOjE1MTY2NDE0MDksIm5iZiI6MCwiaWF0IjoxNTE2NjQwNTA5LCJpc3MiOiJo... | [
"gonzalo.parra@smartmatic.com"
] | gonzalo.parra@smartmatic.com |
a0815501c5c2236cf3afadc0f17d300fbfed87ac | ebe593e0f17cf228683e80885af767bda77c0e2c | /Json/json-types.py | ac0cf0ab0617803387ac87c33487e7703cc15a49 | [] | no_license | juliocsg/python-cesar | 55c61ea2c1be638c125d3a51145b429d32643364 | dbc4a9eea767a181d0cff5f3ce654ffdd22a76dd | refs/heads/master | 2020-04-29T19:21:03.529125 | 2019-04-16T21:52:02 | 2019-04-16T21:52:02 | 176,351,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | import json
print(json.dumps({"name":"John", "age" : 30}))
print(json.dumps(["apple", "bananas"]))
print(json.dumps(("apple", "bananas")))
print(json.dumps("hello"))
print(json.dumps(42))
print(json.dumps(31.76))
print(json.dumps(True))
print(json.dumps(False))
print(json.dumps(None))
| [
"jcesarsaucedo1993@gmail.com"
] | jcesarsaucedo1993@gmail.com |
631eff29fcaf2865ed65ee90e0f051d4a6fa53a9 | 331080f6ac4063803f97c2f95ef32b53b58e1c23 | /env/bin/pyrsa-verify | e9559a0046017f8b829b719266220b1ab4931a95 | [
"MIT"
] | permissive | jlwysf/onduty | c881f692ad6cd76a77539c1ba325b5a53bf44bb7 | 20d90583a6996d037912af08eb29a6d6fa06bf66 | refs/heads/master | 2020-04-13T13:13:09.063357 | 2018-12-26T22:48:58 | 2018-12-26T22:48:58 | 163,223,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | #!/Users/ewang/SRE/openduty/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from rsa.cli import verify
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(verify())
| [
"ewang@Erics-MacBook-Pro.local"
] | ewang@Erics-MacBook-Pro.local | |
b12ab9e2c989a357198e7f9d97c41992e5d033e4 | d9216275d4c9be88a57d4b0a8b63146ca741193a | /Wlst/wlst/CreateWorkManagerRaiseVoiceActivity.py | ae8207d9f82d26d8ae2a80094b6dfabeb1f518ab | [] | no_license | simon-cutts/message-broker | 9fd0363e85d21398048b1f0c4907da7ef3bb8358 | 8c8a20bf56fd8e101b5e7114f2e8bdd9721c2683 | refs/heads/master | 2021-04-02T03:41:13.572300 | 2020-03-18T13:53:07 | 2020-03-18T13:53:07 | 248,239,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,389 | py |
if __name__ == '__main__':
from wlstModule import *#@UnusedWildImport
"""
Creates following items:
RaiseVoiceActivityWorkManager
RaiseVoiceActivityMaxThreadsConstraint
Author: Simon Cutts
"""
import sys
from java.lang import System
from java.io import FileInputStream
from java.lang imp... | [
"noreply@github.com"
] | simon-cutts.noreply@github.com |
8b8b51d84dacfded491424244b983408e007a638 | 47ba27c8054fafe7aa96a45cc77deb64e2b4b365 | /luggageaccomodation/apps/accounts/models.py | 305fad8b25228897398e882733bd358a8fa3f03b | [] | no_license | gouth-tech/luggage-accomodation | 349a088bb81823a49094c8e378bb14d8671b2d5f | fe4083814b457a585d81113fbb46f3ebfa6fe309 | refs/heads/master | 2022-05-01T03:34:57.473100 | 2019-11-08T10:31:21 | 2019-11-08T10:31:21 | 220,246,093 | 0 | 0 | null | 2022-04-22T22:37:45 | 2019-11-07T13:41:22 | Python | UTF-8 | Python | false | false | 1,322 | py | from django.contrib.auth.models import AbstractUser
from django.db import models
from .managers import UserManager
from django.utils.translation import ugettext_lazy as _
from rest_framework.authtoken.models import Token
from django.utils import timezone
from django.conf import settings
# Create your models here.
cl... | [
"goutham.m@hashroot.com"
] | goutham.m@hashroot.com |
446e27b184c619ef0fc295e80630f81e473b9db4 | 8b917e58028112b8c760df4f22151ec7f1b84e8f | /forms.py | 8ccdf00dbeb3d3f82566d4315becd3d054eaa6e2 | [] | no_license | nandini345372/test-app | 69112ce091d8f0ff6896dabd482a10d9ab288df4 | 8d2d7f066ae710a6b98262b5068e4abe8cd026ed | refs/heads/main | 2023-02-02T08:02:46.389467 | 2020-12-19T06:21:01 | 2020-12-19T06:21:01 | 322,778,711 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | from django import forms
from .models import *
class Blogform(forms.ModelForm):
class Meta:
model = BlogModel
fields = [ "title", "description","image"] | [
"noreply@github.com"
] | nandini345372.noreply@github.com |
194ec94053ff6e9031800e98c0f2c4fe8a995fe0 | aa7fa2d977bf84c8e297f5a831fed5b84f4efcc0 | /Python/Search/linear_search.py | b2f9a92cb7ac0e18eb3348e9e1dd168f9302eae0 | [] | no_license | Divi2701/Algorithms | 6dafaa2cbf3ce82bf08e83cb7b8bea2f9fd22821 | 1195e311a6f93c50ad66954b715a3dd770a62759 | refs/heads/master | 2023-08-15T23:12:55.741703 | 2021-10-18T14:22:01 | 2021-10-18T14:22:01 | 418,635,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,087 | py | def linear_search(arr, target) -> str:
"""
Linear Search Algorithm
status = linear_search(arr, target)
>>> Enter list: 4 5 3 7 2 0 4 62 21
Enter target: 62
Found
>>> Enter list: 4 5 3 7 2 0 4 62 21
Enter target: 300
Not Found
>>> Enter list: 4,5,3,7 2 0 4 62... | [
"official.aakas@gmail.com"
] | official.aakas@gmail.com |
9355d800643a3743a49f70a15151c2832ff29f35 | a5d0751624cccdaacef0099c03c0d7b1c30546b6 | /basemix_manual_configs.py | 1899ed0632974a310b7dce4eb62c3befd1377dcd | [] | no_license | anonymous3224/slim-gtsn | 8fcbf211e9f55b848679673fd25e1768dc87c8a4 | 97c888adcff61a3b37ebdf2ddeeed5aa5460c92d | refs/heads/master | 2020-04-18T10:15:56.089213 | 2019-01-25T02:16:06 | 2019-01-25T02:16:06 | 167,094,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,224 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
"hguan2@jupiter.csc.ncsu.edu"
] | hguan2@jupiter.csc.ncsu.edu |
1bc13a4894ec6720d5b52ee578c45b2db8736649 | 25dc4d1f8bbe23ee5e0aac38f88e8f71978382d7 | /Practica_Final/venv/Scripts/easy_install-3.8-script.py | 2c227d39392de5be2c4544f4c8566736d9074675 | [] | no_license | jokermanjrj/Python | d316169fc4eb05be4b9d8bd3c207da80cad72af3 | 0a37c125bf4590d268ff8848698e95f42c428ebf | refs/heads/master | 2020-09-14T17:43:14.367366 | 2019-12-17T17:03:02 | 2019-12-17T17:03:02 | 223,203,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | #!D:\Users\margueru\PycharmProjects\Practica_Final\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.8'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.s... | [
"jokermanjrj@gmail.com"
] | jokermanjrj@gmail.com |
0e98392bc4f340dbdc2e33a27361f618aa425e0f | 3d5bcd57b893c95bbcbfafe77bbc33c65432c9ed | /Algorithms/LeetCode/L0222CountCompleteBT.py | bfc11d0a9aa5748cc23320ebfb9032176850b2a9 | [] | no_license | arunachalamev/PythonProgramming | c160f34c7cb90e82cd0d4762ff9dcb4abadf9c1c | ea188aaa1b72511aeb769a2829055d0aae55e73e | refs/heads/master | 2021-06-04T03:50:37.976293 | 2020-11-12T19:52:28 | 2020-11-12T19:52:28 | 97,364,002 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | class Node:
def __init__(self, val, left=None, right=None):
self.val = val
self.left = left
self.right = right
tree = Node(4, Node(2, Node(1), Node(3)), Node(5, Node(6)))
def countNodes(root):
def exist(idx,d,root):
left,right = 0, 2**d - 1
node = root
for _ in range(d):
... | [
"arunachalamev@gmail.com"
] | arunachalamev@gmail.com |
959b341dec10e56fae4670c07e539f2bfb6d728b | 9d904e52e49df52739c3287454469d5831b01ab0 | /week4/minitorrent/minitorrent/server.py | b99059ca3950fde488ff4b15c69c3be71ca24e52 | [] | no_license | joeyabouharb/term2-challenges | dab54da02e9182d5633ec275667e07792934445b | 6b10296dcb187024df75d7620b01a1d848313c95 | refs/heads/master | 2023-01-25T05:10:09.106671 | 2019-10-22T23:56:53 | 2019-10-22T23:56:53 | 203,889,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | """
handles server/ web functionality for
torrent client.
"""
from flask import Flask, Response
import time
import getpass
app = Flask(__name__)
@app.route('/hello')
def greet():
def data_generator():
text = f"Hello, from {getpass.getuser()}"
for letter in text:
time.sleep(0.5)
... | [
"joey.abouharb@gmail.com"
] | joey.abouharb@gmail.com |
9aad7fa7d1a503f9eba210098993a05a32d1ed91 | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /MY_REPOS/INTERVIEW-PREP-COMPLETE/notes-n-resources/Data-Structures-N-Algo/_DS-n-Algos/Interview-Problems/HackerRank/Python/Introduction/Python-Division.py | 4f8ebf6254287c1545a4e91b15393a9155977ae3 | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 96 | py | if __name__ == "__main__":
a = int(input())
b = int(input())
print(a // b)
print(a / b)
| [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
1bcbd7efb3783683cf04688d856ed4cb0483668e | d4e2d0efb752f7aebeb48c2754d229ac4f6f089b | /kbbi/kbbi.py | 7171529284bf1f4a1a97d63b9460cddbb424a99a | [
"MIT"
] | permissive | noaione/kbbi-python | ce61d4f00d7a4925b69cf7129d8f9637ae486a62 | 063b4fe603c7187e88258bd1007e8c7ad51f50db | refs/heads/master | 2020-11-25T14:30:41.653374 | 2020-03-17T15:07:46 | 2020-03-17T15:07:46 | 228,717,022 | 0 | 0 | MIT | 2019-12-17T23:07:59 | 2019-12-17T23:07:59 | null | UTF-8 | Python | false | false | 11,510 | py | """
:mod:`kbbi` -- Modul KBBI Python
================================
.. module:: kbbi
:platform: Unix, Windows, Mac
:synopsis: Modul ini mengandung implementasi dari modul kbbi.
.. moduleauthor:: sage <laymonage@gmail.com>
"""
import argparse
import json
import sys
from urllib.parse import quote
import reques... | [
"laymonage@gmail.com"
] | laymonage@gmail.com |
ab0c97be8356d23ee69f80c1faab35862a64cd41 | 7798c5171e4f63b40e9a2d9ae16f4e0f60855885 | /movies/fields.py | f47d03541e5243ebc5e832afe7b5c78251b75f87 | [] | no_license | mstepniowski/wffplanner | d2d5ddd2938bd2b7b294332dad0d24fa63c2700a | 62d1d00ca9a546b759e5c394c7a9da06484a7aa3 | refs/heads/master | 2020-05-20T06:04:22.413395 | 2015-10-01T16:12:48 | 2015-10-01T16:12:48 | 6,033,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,478 | py | import base64
import zlib
import json
from django import forms
from django.forms import widgets
from django.db import models
from django.core import exceptions
from django.core.serializers.json import DjangoJSONEncoder
class JSONTextareaWidget(widgets.Textarea):
def render(self, name, value, attrs=None):
... | [
"marek@stepniowski.com"
] | marek@stepniowski.com |
b45258c2fbb47a193d71099a6ed42c0ced1e3667 | a12c1498ab5f87c57453fa8a5cf421f7598f1a19 | /alignment.py | 8981b2eca80c73f3f0629346231e90bf48ec58f2 | [] | no_license | VascoXu/SmashAudio | b8c379f166f4bbe23b6e935636ba3888dc51ace2 | 7a16b195a3ce668516f8c559b019fbccc3495e9d | refs/heads/master | 2023-03-03T02:22:04.141856 | 2021-02-07T00:19:42 | 2021-02-07T00:19:42 | 277,709,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,078 | py | # https://github.com/allisonnicoledeal/VideoSync/blob/master/alignment_by_row_channels.py
import scipy.io.wavfile
import numpy as np
import scipy as sc
from scipy import signal
import matplotlib.pyplot as plt
import scipy.io.wavfile as wavfile
from scipy.signal import find_peaks
from pydub import AudioSegment
from ite... | [
"vax1@pitt.edu"
] | vax1@pitt.edu |
981cbab9c5bd1127874bf4e954e37da9d09bb6a7 | 3d8b77daceb1fc2ca4b3683cd9ad806a21069742 | /ssstest.py | 96dd1680af3d80f235c975ab393a7afc515e2a6a | [] | no_license | 1647790440/test | 7226f248f20fb0437e0a61e3f936f9b8b67dc760 | 876ed1f9d8c59624d8471b760fa0d2d3be0b3d74 | refs/heads/master | 2020-08-15T04:44:51.063578 | 2019-10-15T11:36:35 | 2019-10-15T11:36:35 | 215,281,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,640 | py | #十三水理牌算法
#初版
import collections
# def get_str():
# card_string = ""
# return card_string
#把字符串转变成为卡牌
def stl(card_string):
card_list = []
card_list = card_string.split(' ')
return card_list
#print(stl("*2 *4 *3 *5 *6 $A *7 *8 *9 *10 *J *Q *K *A")) 单元测试
def cut_card(card_li... | [
"noreply@github.com"
] | 1647790440.noreply@github.com |
830d131f23bacfdfed88af9c12a931039c242ac7 | 55c78ec3a7356827c3d481cf71a9c293c3976da7 | /3-canvas-drawing.py | c8dff50a0dac6c82b0ce4548469c5859eb85d789 | [] | no_license | BobbyJoeSmith3/interactive-python-code-examples | 238041dba027a19320fcd3203ef58d4252629228 | 6784d1cd1b3a2009fe99dfd0b4f2a98db0997b97 | refs/heads/master | 2016-09-01T05:27:59.991367 | 2015-11-23T09:04:36 | 2015-11-23T09:04:36 | 43,130,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,562 | py | #############################################/
# first example of drawing on the canvas
#############################################/
import simplegui
# define draw handler
def draw(canvas):
canvas.draw_text("Hello!",[100, 100], 24, "White")
canvas.draw_circle([100, 100], 2, 2, "Red")
# create frame
frame... | [
"bobbyjoe@codeforprogress.org"
] | bobbyjoe@codeforprogress.org |
a200e9f8c40e06ecc7a820150987c01b6767679e | 4d7aceb626d3b403db87ea828b81afed3c8a4b72 | /deck_chores/indexes.py | 2a65d8ca5f93d9349a0e9dc60278ab50a90787ee | [
"ISC"
] | permissive | geraldaistleitner/swarmcron | b8ac0f381d581eb6b815cba83dc755f0c16afe2d | 65af51bf01b209c5a4ffc5f1c9517058a533dae4 | refs/heads/master | 2021-10-07T17:06:38.708069 | 2021-09-29T14:13:29 | 2021-09-29T14:13:29 | 170,665,879 | 0 | 1 | ISC | 2021-09-29T14:13:30 | 2019-02-14T09:39:36 | Python | UTF-8 | Python | false | false | 188 | py | from typing import Dict # noqa: F401
locking_container_to_services_map = {} # type: Dict[str, str]
""" A mapping of locking container ids to service ids whose jobs have been added. """
| [
"funkyfuture@riseup.net"
] | funkyfuture@riseup.net |
b4ee29843b0cf4d85378ebc64bb85e605f056a44 | 5fc4fb33fb9c5f4c98c5172286a0884874b6fe34 | /games/snake/snake-game.py | afca8bebc995434c2c5d2ce6fe3183c74af26eac | [] | no_license | AdrianoPereira/playground | f1358324502c2cef81c8bfd9aa3e1503c4e0f08f | ccf5fbe4def6aeba1bd04527e525b7c61494f9ef | refs/heads/master | 2022-07-09T23:32:41.991799 | 2020-05-11T20:08:11 | 2020-05-11T20:08:11 | 263,137,001 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,789 | py | import pygame
import random
# from pygame.locals import *
pygame.init()
pygame.display.set_caption("Adriano\'s Playground - Snake Game")
SIZE_WINDOW = (600, 600)
SIZE_BLOCK = (10, 10)
COLOR_SNAKE = (255, 255, 255)
COLOR_APPLE = (255, 0, 0)
COLOR_TEXT = (0, 255, 0)
COLOR_BKG = (0, 0, 0)
GRID_COLOR = (30, 30, 30)
UP, ... | [
"adriano.almeida@inpe.br"
] | adriano.almeida@inpe.br |
f610ffc8ef9f81715405b80633828b49bbe5d58a | f725991c3e14bceb09ad5a9872ee17b39f16f58b | /rlocker_crawler/rlocker_crawler/settings.py | 3fde3d55df5f9b467b9764230b534edfb6c62be3 | [] | no_license | rabbicse/scrapy-crawlers | 757e3ce83610f3ea5fc899f611f274e7fab9f19d | 623caa7b45b15efc5ac06edb4badbc1519af46fb | refs/heads/master | 2020-05-17T19:27:30.620907 | 2020-01-28T13:52:11 | 2020-01-28T13:52:11 | 183,915,392 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,737 | py | # -*- coding: utf-8 -*-
# Scrapy settings for rlocker_crawler project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/late... | [
"rabbi.se@gmail.com"
] | rabbi.se@gmail.com |
bc8b36a424ab98f4770ebae36926e8fe9c9b0733 | 72b77f97876983025eb05a5aa1d6f248a1be3074 | /longest_continuous_increasing_subsequence.py | e6b446941c7c22169713dfd26ac166f4ad59fdd0 | [
"Apache-2.0"
] | permissive | erjan/coding_exercises | 4c6bccb2cdac65ccbc3107a482914275ecd157f7 | 68dac358a6d4dabd41d47dbd4addb2ec50e0ca11 | refs/heads/master | 2023-09-02T07:25:30.886175 | 2023-08-27T06:13:06 | 2023-08-27T06:13:06 | 236,281,070 | 5 | 0 | Apache-2.0 | 2020-05-05T15:08:49 | 2020-01-26T07:32:09 | Python | UTF-8 | Python | false | false | 1,171 | py | '''
Given an unsorted array of integers nums, return the
length of the longest continuous increasing subsequence (i.e. subarray). The subsequence
must be strictly increasing.
A continuous increasing subsequence is defined
by two indices l and r (l < r) such that it is [nums[l], nums[l + 1], ..., nums[r - 1], nums[r... | [
"noreply@github.com"
] | erjan.noreply@github.com |
b984fad51d38c97d1517e90fadc6e66c577c4301 | 913b8f04184701fdb5694934202fa2df520c25bd | /105/submissions/save1_nopass.py | cd61998f18643868353e99fce4ea011f987a07d1 | [] | no_license | demarcoz/bitesofpy | f08d6bda1d2ad791692ba5fee2657da7010de093 | efd25df028c1205030c3331d6e1c6994bbad3e64 | refs/heads/master | 2021-07-08T01:03:26.552573 | 2020-12-03T19:06:31 | 2020-12-03T19:06:31 | 214,622,046 | 0 | 0 | null | 2020-10-04T17:15:28 | 2019-10-12T09:49:03 | Python | UTF-8 | Python | false | false | 1,122 | py | from string import ascii_lowercase
text = """
One really nice feature of Python is polymorphism: using the same operation
on different types of objects.
Let's talk about an elegant feature: slicing.
You can use this on a string as well as a list for example
'pybites'[0:2] gives 'py'.
The first value is inclus... | [
"marco@dezeeuw.nl"
] | marco@dezeeuw.nl |
d17c40169309fae699d24035ed83d100dd1e82cf | 4dc6ac7f6242f86abdc0db1147bcb4768649500d | /colab_files/vgg_inverter.py | 192e290016891a5eb71ce2dbd7b153f7a5d9b29d | [] | no_license | jonshamir/vgg_feat_gen | 1c6fbef589c32246cf428083b155cccb94cf4ff1 | 2f288cb3069fdcf585c7ef431ed67d7423bab268 | refs/heads/master | 2020-07-04T16:03:56.586055 | 2019-12-01T17:40:26 | 2019-12-01T17:40:26 | 202,321,819 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,412 | py | import torch
import torch.nn as nn
import torchvision.utils as vutils
import os
DEVICE = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
class Generator(nn.Module):
"""
Convolutional Generator
"""
def __init__(self, nc=3):
super(Generator, self).__init__()
self.conv ... | [
"jon.shamir@gmail.com"
] | jon.shamir@gmail.com |
1c3ebd9442a77a92bbfe5ad5f27147202fff595b | 85821b9fe24a19d59704814f6440c9aa5023cdcd | /dictionary.py | 8c0b8d1bc46897ac4752076fa397d668cc6da91b | [] | no_license | Tunna/Tuples_Dictionaries | c87c5e3f8ff32ef1191e6051669567fb9eac3161 | 32262839f8f7170417de9852aab90d2563bce38c | refs/heads/master | 2020-12-29T01:10:36.525591 | 2016-08-23T06:15:51 | 2016-08-23T06:15:51 | 65,349,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py |
# def name_count(name):
# count_dictionary = {}
# for letter in name:
# if letter in count_dictionary:
# count_dictionary[letter] + 1
# else:
# count_dictionary[letter] = 1
# print count_dictionary
# name_count("trushna")
fruit_cost = {"banana": 4, "apple": 2, "orange": 1.5, "pear": 3}
maxm = max(fruit... | [
"tmajmundar@gmail.com"
] | tmajmundar@gmail.com |
635677878fedc186df66df534c9b25b1c22b5c01 | 868bbd26e5e9674b879278d4429d435c91e1b4f0 | /Source-Code/Functions/Encrypt_Func.py | ca95c2a85371665cd1725fa6fc0d60849424bdcb | [] | no_license | shariarislam/RainRansomware | 276ee99b8c1dcd9c7181bc892823d6ac5b38746d | d2991a2f7a899d6ffb901017524cf7547dac77ee | refs/heads/master | 2020-09-10T06:52:03.716471 | 2019-10-30T02:15:43 | 2019-10-30T02:15:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,479 | py | import os,platform,glob,sys,string
from os import system as sis
from Crypto.Cipher import AES
from Crypto import Random
BLOCK_SIZE = 32
s = platform.system()
k = Random.new().read(BLOCK_SIZE)
aes = AES.new(k,AES.MODE_ECB)
drives = list(string.ascii_uppercase)
ext=['*.php','*.pl','*.7z','*.rar','*.m4a','*.w... | [
"noreply@github.com"
] | shariarislam.noreply@github.com |
072d3acc8178cbc92f168df6263f558c08a1f546 | 2dfbd1328e4dd6dc9852d52e90cd627b402059e1 | /OOPALL/Hakrrank_problem/groups.py | dd5675819998703af1eb88b8a888df0b993a1557 | [] | no_license | Bappy200/Python | 2817bcb32bf751033fadc960694704a546055e47 | 0ad3d53cc204af361890182585cdf9bd3ec9a199 | refs/heads/main | 2023-03-01T05:29:32.994940 | 2021-02-12T23:08:36 | 2021-02-12T23:08:36 | 338,268,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | import re
r = re.search(r'(\w)\1+',input())
print(r.group(1) if r else -1)
| [
"sbappyi200@gmail.com"
] | sbappyi200@gmail.com |
86e07b1730af7e8a3340956c2429f3b0648d9add | 23d08c6d3331179aaf91ea987dc57168f130553d | /dailyfresh_plus/user/migrations/0002_auto_20190611_1605.py | ac03219983203450879d348487cbf15815643131 | [] | no_license | bajiucoding/dailyfresh_plus | a02d23531e5d4a6215fe3ac2490d0020251d9e0e | a6d0911df1e4a301aa2a076407c22fa8f83ea252 | refs/heads/master | 2020-05-26T18:35:37.648086 | 2019-06-23T17:05:15 | 2019-06-23T17:05:15 | 188,337,705 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | # Generated by Django 2.2 on 2019-06-11 08:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='userinfo',
name='uemail',
... | [
"gxylogin@sina.com"
] | gxylogin@sina.com |
b51b5706808d245fd63e7a99d9debb2c38961964 | 235dfd0b3ba5ba3c5c7ca36e80b9eb4fc67c8b95 | /SSD_active_crowd_analysis/ssd/utils/heatmap.py | 44346c70da780c5fcb32727ee3e25d49e2a6623a | [
"MIT"
] | permissive | SamSamhuns/active_crowd_analysis | 2473601463552f8543e156855b830e946236ff0e | 99fe12812b74ac487d394211e9bd54ae9173faf1 | refs/heads/master | 2023-02-13T15:03:12.732311 | 2021-01-23T12:10:20 | 2021-01-23T12:10:20 | 280,635,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,847 | py | import cv2
import math
import time
import numpy as np
import seaborn as sns
import matplotlib.cm as cm
import matplotlib.pyplot as plt
from sklearn.mixture import GaussianMixture
def generate_sns_kde_heatmap(x, y, i=0, image_name=""):
start = time.time()
try:
x = np.hstack((x, x + 2, x - 2, x))
... | [
"samhunsadamant@gmail.com"
] | samhunsadamant@gmail.com |
469ad0de3326f303fbd9aad31a63fd4780fd8403 | aa72194e9dabc23ef83f5890225a60e1e9961aeb | /pyplot/pyplot_bar_chart_horizon.py | 37de376601bf0cd9103fd20ebb8d682ec04ce840 | [] | no_license | chrisna2/pandas_with_stock | bdec5da414ac65e045ce7cd350e01b593ffec996 | 4ac660288f780cf5d16b25cdc28ca046e194311e | refs/heads/master | 2022-10-09T06:59:41.597016 | 2022-09-13T12:28:11 | 2022-09-13T12:28:11 | 214,951,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | import matplotlib.pyplot as plt
import numpy as np
from matplotlib import font_manager, rc
font_name = font_manager.FontProperties(fname="C:/Windows/Fonts/malgun.ttf").get_name()
rc('font', family=font_name)
industry = ['통신업','의료정밀','운수업창고','의약품','음식료품','전기가스업','서비스업','전기전자','종이목재','증권']
fluctuations = [1.83, 1.30, 1... | [
"chrisna2@hanmail,net"
] | chrisna2@hanmail,net |
6fed9cbc088abb0e15108a8775e4974e2d3d3d9c | 805665ba37ad17c9da639beb84f85f5a6431e097 | /SinglePoint/PHC.py | 5167a76adce2d06b3257d9ac26dae6c729b53e37 | [
"MIT"
] | permissive | Juanc0/OptimizationTests | 16246dcc829465e32669c7efe98bf5ba99da2e81 | 59f57e02a23c3fa580c9aea3206ea37b98ed64c0 | refs/heads/master | 2020-07-24T23:45:21.794123 | 2019-10-16T10:17:23 | 2019-10-16T10:17:23 | 208,087,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | from multiprocessing.pool import ThreadPool
from HC import HC
class PHC:
def __init__(self, x, f, stop, step, threads):
self.f = f
self.HC = HC(x, f, stop, step)
self.pool = ThreadPool(processes = threads)
self.threads = threads
def exe(self):
#exes = [self.pool.apply_async(self.HC.exe(), args=()) for i... | [
"juanpos97@gmail.com"
] | juanpos97@gmail.com |
cf706a98c06a9e54a44714fe96e6e31e62e087e0 | 729d826978bd7c0d808629f1be5c2ebffe856799 | /pano/puppetdb/pdbutils.py | 95f2f88307304d01461cd84967eb28f41bc0b95b | [
"Apache-2.0"
] | permissive | jwennerberg/panopuppet | e892e34f1820dc1f8281d066e686f6d3905bffd2 | 567e7f3001b4f3819a3f8af0a8251bb0a1ceb233 | refs/heads/master | 2021-01-14T13:44:18.894736 | 2015-03-30T12:56:39 | 2015-03-30T12:56:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,632 | py | import datetime
import queue
from threading import Thread
from pano.puppetdb import puppetdb
import pano.methods.dictfuncs
class UTC(datetime.tzinfo):
"""UTC"""
def utcoffset(self, dt):
return datetime.timedelta(0)
def tzname(self, dt):
return str('UTC')
def dst(self, dt):
... | [
"takeshi.p.larsson@gmail.com"
] | takeshi.p.larsson@gmail.com |
db8236cb38994639e473477f46c0cffb49bef4fd | e18198c0df3155fdc5c7962300da52a2ce613d8b | /api_for_selenium/manage.py | a26adfae243186c4535cc57498da28abf39b59ce | [
"MIT"
] | permissive | sayantansingha01/interview1 | 058fe8705e0284bac34ded3230b8194b237874b9 | 8ecbbcf7d293830fe4e46a98aedef9bc6d1d1272 | refs/heads/main | 2023-06-27T11:58:43.535970 | 2021-07-29T07:34:03 | 2021-07-29T07:34:03 | 390,621,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | 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', 'api_for_selenium.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
rai... | [
"sayantansinghasara@gmail.com"
] | sayantansinghasara@gmail.com |
c4b9a7add45bcfdc33148593901df9adc58eb559 | 71ed291b47017982a38524b4ff8fe94aa947cc55 | /String/LC257. Binary Tree Path.py | 8024e307b462af60e2471526defd6973b8ca39f2 | [] | no_license | pingting420/LeetCode_Algorithms | da83b77e8f37bd4f461b0a7e59c804871b6151e5 | f8786864796027cf4a7a8b0ad76e0b516cd99b54 | refs/heads/main | 2023-07-17T22:46:08.803128 | 2021-09-02T22:06:38 | 2021-09-02T22:06:38 | 375,401,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | class Solution:
def binaryTreePaths(self, root):
"""
:type root: TreeNode
:rtype: List[str]
"""
def construct_paths(root, path):
if root:
path += str(root.val)
if not root.left and not root.right: # cur node is not leaf node
... | [
"bellapingting@gmial.com"
] | bellapingting@gmial.com |
6eac2e6e75bf180aae3072c5f7fed4fbcc52e4b7 | 61a40a90fd5d25446e932a24958641c75d17c4f4 | /perform_pca.py | fb7fbf2e569f80226e7331c7baa48134ce48b425 | [
"BSD-3-Clause"
] | permissive | janiksielemann/shape-based-TF-binding-prediction | 8fff7dcbf3d888d39661f78e0438e6b367792df8 | 32f86b958b6619fa45f2184bb7cd40f3a195a851 | refs/heads/master | 2023-04-18T16:56:27.522055 | 2021-10-10T13:17:44 | 2021-10-10T13:17:44 | 295,798,062 | 2 | 2 | null | 2021-10-10T12:57:03 | 2020-09-15T17:13:53 | Python | UTF-8 | Python | false | false | 895 | py | import pandas as pd
from sklearn.decomposition import PCA
#set border length
border_length = 4
# generate list of shapes
all_shapes = ['Stagger', 'Rise', 'Opening', 'Buckle', 'MGW', 'Tilt', 'HelT', 'Roll', 'Shear', 'Slide', 'Stretch', 'ProT', 'Shift']
# generate whole set
shape_fimo = pd.read_csv("shape_fimo_forwar... | [
"noreply@github.com"
] | janiksielemann.noreply@github.com |
90ba9df1955c6619815acec5713452feddccdc4b | fd722476f7032c0f50293a56fa68f13a4802c4e6 | /fm4111/bin/bandgap | 8dd174d93258a95922044651b062d584e26a7c23 | [] | no_license | egilsk/fys-mena4111 | 1f3ab44153b95d9047dbc1e69645613c19740d8f | 85dd40934e864fef1c536b75dbbf754dc2527755 | refs/heads/master | 2022-04-08T14:55:43.441603 | 2020-02-12T18:44:46 | 2020-02-12T18:44:46 | 221,038,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,833 | #!/bin/env python
#
# Find the band gap from a vasp OUTCAR file
# Written by Ole Martin Lovvik, 2018-09-06
# $LastChangedDate$
# $Rev$
#
# Please send bugs to ole.martin.lovvik@sintef.no
'''
Usage: bandgap [options] OUTCAR_FILE[S]
Reports the band gap of one or more VASP calculations.
It is defined as the CBM - VBM, w... | [
"egilsk@stallo-2.local"
] | egilsk@stallo-2.local | |
4270b715b9c38ea114badce39c4031d8aaa8894b | 210baab405f7224e9ef24b59598e8ce719f570c0 | /models/M64/M64.py | 4fbf41dc2799a58a01918416675100083608cae2 | [] | no_license | DexiongYung/domain-adaptation | aed642689cd7228fbaf681217b3cda3011e2a2fc | 291d46117b58a5f5c0f4f8e8fa95c0a49ade21f3 | refs/heads/master | 2023-07-06T16:29:23.866602 | 2021-08-15T09:19:59 | 2021-08-15T09:19:59 | 381,237,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | import torch.nn as nn
class M64(nn.Module):
def __init__(self, content_latent_size = 32, input_channel = 3, flatten_size = 1024):
super(M64, self).__init__()
self.content_latent_size = content_latent_size
self.input_channel = input_channel
self.flatten = flatten_size | [
"YungDexiong@hotmail.com"
] | YungDexiong@hotmail.com |
5183d376a6b88b1b2cb642129762e86e74285b11 | 55769e0abdf2df24a8e67baa28e5742b9667ce5e | /autoencoder_task/task.py | f632d7a204d3d58ae58d91ad734aac06291096e4 | [] | no_license | jgamper/DeepBayesApplication | 3a310b2e610ad8ae8fd927767519b13dbb34f2e4 | 643f40818b58fa8c5990152b30aff8bc1e9918ea | refs/heads/master | 2020-03-07T17:30:20.364599 | 2018-04-22T20:20:46 | 2018-04-22T20:20:46 | 127,613,062 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,832 | py | import os
import torch
import argparse
import numpy as np
import torch.utils.data
from torch import nn, optim
from torch.autograd import Variable
from torchvision import datasets, transforms
from torchvision.utils import save_image
class AutoEncoder(nn.Module):
def __init__(self, inp_size, hid_size):
sup... | [
"jevgenij.gamper5@gmail.com"
] | jevgenij.gamper5@gmail.com |
9793347779f69c826570acc355bb6cdf1294661c | ed0635218d236383fcf76a7c8ad341e49398c310 | /django_film/films/migrations/0002_auto_20201024_1814.py | 9dc5b742374ef37bbb1920ad4951bb4c5e931366 | [] | no_license | PixelGore/DjangoMovie | d470bea3c6859c05816e34daba027d35c84ac99e | 8aedb37de959be1bc7d12db11c1efdf80b054525 | refs/heads/master | 2023-01-12T14:45:06.488388 | 2020-11-18T19:38:44 | 2020-11-18T19:38:44 | 289,012,907 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | # Generated by Django 3.1 on 2020-10-24 15:14
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('films', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='film',
old_name='buget',... | [
"pixelgore312@gmail.com"
] | pixelgore312@gmail.com |
dc0d960ac8949374c88a435763cdfbd88be35774 | 372185cd159c37d436a2f2518d47b641c5ea6fa4 | /面试题 01.06. 字符串压缩-2.py | 762b147ca2bbe70cac56a5165cae8e41198f3003 | [] | no_license | lidongze6/leetcode- | 12022d1a5ecdb669d57274f1db152882f3053839 | 6135067193dbafc89e46c8588702d367489733bf | refs/heads/master | 2021-07-16T09:07:14.256430 | 2021-04-09T11:54:52 | 2021-04-09T11:54:52 | 245,404,304 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | class Solution:
def compressString(self, S: str) -> str:
S += '-' # S结尾添加了一个-以避免尾部特殊判断
cnt, n, encoded = 1, len(S), ""
for i in range(1, n):
if S[i] == S[i - 1]:
cnt += 1
else:
encoded += S[i - 1] + str(cnt)
cnt = 1
... | [
"lidongze6@163.com"
] | lidongze6@163.com |
346c037b556e11558d727e9d60f768c6218ab88b | 2b86301d5ad3fecaa5a300cabfe6b4dfc82b78ed | /venv/Lib/site-packages/cassiopeia/transformers/status.py | 49c3c8f18ce979ce173b3259f82f4f330884db75 | [
"MIT"
] | permissive | sserrot/champion_relationships | 72823bbe73e15973007e032470d7efdf72af3be0 | 91315d6b7f6e7e678d9f8083b4b3e63574e97d2b | refs/heads/master | 2022-12-21T05:15:36.780768 | 2021-12-05T15:19:09 | 2021-12-05T15:19:09 | 71,414,425 | 1 | 2 | MIT | 2022-12-18T07:42:59 | 2016-10-20T01:35:56 | Python | UTF-8 | Python | false | false | 871 | py | from typing import Type, TypeVar
from datapipelines import DataTransformer, PipelineContext
from ..core.status import ShardStatusData, ShardStatus
from ..dto.status import ShardStatusDto
T = TypeVar("T")
F = TypeVar("F")
class StatusTransformer(DataTransformer):
@DataTransformer.dispatch
def transform(self... | [
"sserrot@users.noreply.github.com"
] | sserrot@users.noreply.github.com |
38603d24ebc7e0e81b6743d9967c7e4044bfa08a | 6ffc48e8656320d064c554c663c2e9150fd57582 | /code_blocks/functions.py | 6b31609d7831734994eeb8767e411333e3de1ab3 | [] | no_license | cslisenka/learn-python | 509aebe2efb07c8024c623ed78dde28966f54ed9 | 24eb94510e8559de1e4ef58d6238d989dbc0e797 | refs/heads/main | 2023-03-20T08:13:25.542930 | 2021-03-19T15:41:02 | 2021-03-19T15:41:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,484 | py | # Function example
# first parameter is string, second is integer
def say_hi(name, age):
# All core of the function happens inside space
print("Say hi " + name + " age " + str(age))
# This statement is also inside function
print("Say hi again")
# Function doesn't return value
# Function that retu... | [
"kanstantsin_slisenka@epam.com"
] | kanstantsin_slisenka@epam.com |
0394425acf0ab2d9024c5ea5110df0c57dcc779e | 175f90e98b52a03fe87f79617eb0f4bd561182de | /grandexchange.py | 154e455a607c0a4979bb0b1cc5eca335bcf8b2ad | [
"MIT"
] | permissive | AdamKBeck/OSRS-API-Wrapper | c829ec20d0178d9d311717b0631ef058810ff9b8 | d32253ced31170118c12e930ad1134eabbbe3359 | refs/heads/master | 2020-12-27T10:20:42.937766 | 2020-01-04T19:16:48 | 2020-01-04T19:16:48 | 237,867,522 | 0 | 0 | MIT | 2020-02-03T02:02:34 | 2020-02-03T02:02:34 | null | UTF-8 | Python | false | false | 3,096 | py | import const
import urllib.request
import json
import warnings
from item import Item
from pricetrend import PriceTrend
from priceinfo import PriceInfo
class GrandExchange(object):
# OSBuddy is an unofficial API, but it is more accurate than the offical API.
# They give more significant figures than the offic... | [
"schelthoff.chase@gmail.com"
] | schelthoff.chase@gmail.com |
b1302dd60d3a32627cb6ad996f9211ce709fda77 | 39aee520641a16b297c14d3bd3a85f2f5d892617 | /sub.py | 22a52cd4676ce28b618e26afceb38216065af4c8 | [] | no_license | AlexJJGreen/dsm_pdf_stripper | ea90627cf57e646a2ad83d205fad20c676f6202f | de282807fc42fdb5994b0dc16588dcbb7fb7ca1f | refs/heads/main | 2023-04-28T01:02:18.853246 | 2021-04-30T16:16:46 | 2021-04-30T16:16:46 | 352,024,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,427 | py | import PyPDF2 as pp
import csv
import pandas as pd
import shutil
from ordered_set import OrderedSet
import xlsxwriter
from re import search
#### --- GLOBALS --- ####
doc = pp.PdfFileReader("Story Analysis WTD INTERNATIONAL.pdf")
total_pages = doc.getNumPages()
store_datasets = []
story_datasets = {}
# cat_datasets = ... | [
"alexjjgreen@gmail.com"
] | alexjjgreen@gmail.com |
e2333991b304b2918619d52caec66de11002b170 | 65157ac38f5b59f3871b086658c3bcac5490af36 | /PE_Q35.py | 95e2259118844b398202703b0f2359621e066a6b | [] | no_license | geooff/ProjectEulerSolutions | 590dba1e786ab6ca0f8c9aeda94c74f7603831a7 | b94d44b074f1a0039973ec01760aafa584520ba4 | refs/heads/master | 2023-02-05T08:47:01.954976 | 2023-01-27T17:06:26 | 2023-01-27T17:06:26 | 124,963,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,290 | py | """
The number, 197, is called a circular prime because all rotations of the digits: 197, 971, and 719,
are themselves prime.
There are thirteen such primes below 100:
2, 3, 5, 7, 11, 13, 17, 31, 37, 71, 73, 79, and 97.
How many circular primes are there below one million?
"""
def eratosthenes(n):
"""Yields t... | [
"geoffbeamish@gmail.com"
] | geoffbeamish@gmail.com |
6d74b138ea984813b2a78415fafb8ca57a86d304 | 58dd69ad78a107255f1b057cc3a77d2f407f0586 | /garden/migrations/0005_auto_20180611_1153.py | 3583e4b22885bffe96be8ac0e91f9c7c08025107 | [] | no_license | BartoszLewosz/Maintenance_ticketing_system | 4598b8002622af6f040fad4511e8824a2dd3a208 | 61544a12ba8409be34ee4ffecca343144de130d9 | refs/heads/master | 2022-04-01T14:59:36.379216 | 2022-03-07T16:17:53 | 2022-03-07T16:17:53 | 133,713,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-06-11 11:53
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('garden', '0004_auto_201805... | [
"bartosz.lewosz@gmail.com"
] | bartosz.lewosz@gmail.com |
5252de910fb7351af98dc307cd1b89c9a3b3d065 | 3afcbc632db73e87a8b1ce8e3a5223c5a5da1451 | /source/bonfire/orchestrator_demo_backup/AyC/__init__.py | c24dd585df60997da5840312cc73bce2647253e1 | [] | no_license | ruben11291/master-thesis | cc32ff790dd6f5dd8dcc9305460419ca2ece0e54 | 1668bfa96bafdf5ab7ffffcf8e1b9dbf041772d7 | refs/heads/master | 2020-06-03T20:55:35.957604 | 2014-10-09T13:58:34 | 2014-10-09T13:58:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24 | py | from geoserver import *
| [
"deimos@deimos-virtual-machine.(none)"
] | deimos@deimos-virtual-machine.(none) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.