blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c575a9c2ea029a2616fb7aa34165dc2b935eb63a | 3b863f7e7efea09f5a120eb8c323e5a3742b82b3 | /LevelSelection_Page/LevelSelection_Page.pyde | 23a2c39a016791744f8abcef5874cfa5058a187b | [] | no_license | TriceG/DNA_Project | b6096fbc91c35621b659dd5154a1972a9674d881 | 469df295120fbfe32070fd973c55f36b2af99341 | refs/heads/master | 2021-01-19T21:32:24.914550 | 2017-06-20T14:15:27 | 2017-06-20T14:15:27 | 88,661,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,072 | pyde | def setup():
background(37, 154, 247)
size(800, 500)
def draw():
fill(225)
rectMode(CENTER)
#beginerButton
rect(400, 175, 150, 50)
#intermediateButton
rect(400, 275, 239, 50)
#advancedButton
rect(400, 375, 190, 50)
textSize(30)
#title
text("Select ... | [
"none@none"
] | none@none |
02a649e42a7cdd51c91d3a54eaaf62522d71e35f | ca65d98cb41b0da151158640a7be9ea0253d20ac | /floating-real_csv.py | d87635573111d1572d95586785cfa81f1a64c22d | [
"Apache-2.0"
] | permissive | ashokn414/python_floating_conversions | adebb5c2ca4839fed51a3c37c8d5176da4fbb2bb | 7a132c703272e6651daf555816171f04ee5b5555 | refs/heads/main | 2023-08-25T05:19:57.347582 | 2021-11-03T04:52:02 | 2021-11-03T04:52:02 | 422,618,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | py | import csv
#########################################
def convertToInt(a):
mant = 0
power_count = -1
mantissa_int = 0
expo = a[1:6]
s = a[0]
mant_str = a[6:]
for i in mant_str:
mantissa_int += (int(i) * pow(2, power_count))
power_count -= 1
mant = mantissa_int ... | [
"noreply@github.com"
] | noreply@github.com |
8547e7d4e69d717ba39c389d0b216825fb5e2613 | 7e1f0e8ca64e92e11247446f9f1d1433c5e9d25e | /UnFollow.py | c41254739a344ee99b82e6c2ec6623bbfa9a548c | [] | no_license | Dmen1478/CSC-450--TWITTER-BOT | 84e279a8af0f3475b222a6e9ba16352af9aaad97 | c9f617b5d6111c7d4c007def87c5109ea7bec586 | refs/heads/master | 2020-08-24T21:02:01.530237 | 2019-10-22T19:58:33 | 2019-10-22T19:58:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,279 | py | import pyautogui
import cv2
import numpy as np
from time import sleep
import pyperclip
def unfollow():
pyautogui.PAUSE = .3
pyautogui.screenshot('img/screenshot.png')
img_rgb = cv2.imread('img/screenshot.png')
img_gray = cv2.cvtColor(img_rgb, cv2.COLOR_BGR2GRAY)
template = cv2.imrea... | [
"noreply@github.com"
] | noreply@github.com |
f880b1a41db9a22cb56ee96ae77447fe83dbfb54 | b3322943e3b37392c3029caf84b724dac5b00729 | /bikeshare_2.py | 5d667d5aebd5060130b7144d6a34cfdd2af46153 | [] | no_license | paran93/Bike-SHARE | 97af32dd7d250dd182ede3213216ec2c9dcb7248 | 1f628de7f60bfffb04be515f1ba8fd4d42ddad7e | refs/heads/main | 2022-12-20T03:00:39.002344 | 2020-10-17T02:49:34 | 2020-10-17T02:49:34 | 304,783,822 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,887 | py |
import pandas as pd
import numpy as np
import collections
CITY_DATA = {'chicago': 'chicago.csv',
'new york city': 'new_york_city.csv',
'washington': 'washington.csv'}
cities = [*CITY_DATA]
options = ["a", "b", "c"]
diction = dict(zip(options, cities))
months = ['january', 'febru... | [
"noreply@github.com"
] | noreply@github.com |
a20ec94cdd08e187e7c7cf1132457f3b19af8131 | cecd42a1c39ff00b7eb56ef244ef3ae3f884522c | /migrations/versions/388b36ae960d_.py | 36a0af9537bd943fb6643893aa024b5a3c83a9cc | [] | no_license | ylin1992/fyyur | 9b6129a725a1af1d01154424cc60d945eb11a48b | e926a263114b007870619f37dc9261f01878a530 | refs/heads/main | 2023-09-02T15:07:08.645111 | 2021-10-30T09:49:12 | 2021-10-30T09:49:12 | 422,549,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | """empty message
Revision ID: 388b36ae960d
Revises: 4585432e4a99
Create Date: 2021-10-28 20:46:38.170649
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '388b36ae960d'
down_revision = '4585432e4a99'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"linyeah2011@gmail.com"
] | linyeah2011@gmail.com |
7ed5d2c3249c5f83bae48f12740eff65e85957ff | 98b453391da7cc5d2990ccc399991329aed5dda3 | /Joe_Cox_PyNmap.py | 04f14525b7373b5b0149a5232362caba14f6f448 | [] | no_license | jonoco52/CSIA-450-Public | c26b7901dc9c978668451df0eb0f10bd91e2529c | d39a12f3b4a8bdfe22789bf0c57a4318abe2a8cc | refs/heads/master | 2022-07-05T15:36:59.273128 | 2020-05-13T16:35:46 | 2020-05-13T16:35:46 | 261,049,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,839 | py | # -*- coding: utf-8 -*-
"""
Created on Tue May 5 08:29:37 2020
@author: Joseph
"""
__author__ = "Joe Cox"
__email__ = "jocox@students.columbiabasin.edu"
__date_ = "Spring 2020"
__version__ = "0.0.1"
# LIBRARIES
from datetime import date
import os
import pickle
import json
import subprocess
from ... | [
"noreply@github.com"
] | noreply@github.com |
17c45d94efa8018ba6165c376fcf4a8981629f48 | c5bc44b4bb7aa0b8e6df81c198e9803eb0f060ce | /pro_tracker/issue/views.py | 7a365ad081af225db4a559345972d6c6de5b7ae1 | [] | no_license | hyperloop11/Progress-tracking-website | 4821b1c17b04b223b1a20610b1612b11b0a54ce3 | 7c3bd77a0b0605994b001544fc809c1e52a18f82 | refs/heads/master | 2023-06-21T12:06:26.531345 | 2021-08-05T07:21:37 | 2021-08-05T07:21:37 | 298,636,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,218 | py | from django.shortcuts import render, get_object_or_404
from django.views.generic import (
ListView, DetailView,
CreateView, UpdateView,
)
from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin
from .models import Issue
from django.contrib.auth.models import User, Permission
from .forms i... | [
"="
] | = |
90a5b73f0f60f6ea592b94c522795c396d50b70b | bcc4476c551f29595be8bb4d3b498412751ad376 | /util/model.py | bce4b377300f14ebc3d9e65ed48e6f33cb58152a | [] | no_license | mikgroup/mdd_mri | 93e98ed974a175fcfc145190c14d9242518b4d6f | 8255f4b476977075737d7ea64ded16060015df25 | refs/heads/master | 2022-11-30T16:43:06.399095 | 2020-08-11T00:49:18 | 2020-08-11T00:49:18 | 285,473,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,226 | py | #!/usr/bin/env python
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional
import util.complex as cp
'''
Contains defintions for models
'''
def roll(tensor, shift, axis):
if shift == 0:
return tensor
if axis < 0:
axis += tensor.dim()
dim_size = tensor.size(ax... | [
"sukrit.arora@berkeley.edu"
] | sukrit.arora@berkeley.edu |
34ce6f44cc67b937884b666ef07dc68046442e7f | edbce79972d35356842edd15fb550a311c10d103 | /ask/admin.py | b9defd0b1463c02fadae3f285bf819c300d85b73 | [] | no_license | TuM0xA-S/djask | 38a4807e0d382d055fb7468d980f890a75f72b50 | e867d28ea30856e9b52f1c6b02f860aa7673127b | refs/heads/master | 2023-03-21T18:09:23.750869 | 2021-03-11T15:17:27 | 2021-03-11T15:28:11 | 343,434,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | from django.contrib import admin
from .models import Question, Answer
admin.AdminSite.site_header = "Djask Administration"
class AnswerInline(admin.StackedInline):
model = Answer
raw_id_fields = ('author', )
extra = 1
@admin.register(Question)
class QuestionAdmin(admin.ModelAdmin):
list_display = (... | [
"tum0xa-00@mail.ru"
] | tum0xa-00@mail.ru |
12d7d00c1972dabdaf31e66673467531f0c73280 | 379fc4e0e98a7575b93ca4f60d1301adb5c155e3 | /morphling/choco_server/sig_converter/filepathconverter.py | 724e73f1bf770e9ae68e9c8e2995b24a1e842322 | [] | no_license | vangeance666/morphling_all | 7c386551dd09835268d1caf9c645cf76ede4d078 | 288b69b3e47f4585decfba980889b365d717d0ab | refs/heads/main | 2023-06-29T02:22:29.070904 | 2021-08-02T12:51:50 | 2021-08-02T12:51:50 | 391,045,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | from .converter import Converter
import re
class FilePathConverter(Converter):
REG_DRIVE_START = r"^[A-Za-z]:\\"
REG_PROG_FILES = r"program files (\(x86\))?"
def make_slash_reg_compatible(self, line):
return re.sub(r'\\+', "\\\\\\\\", line)
# return line.replace("\\", 2*"\\")
def replace_program_files(s... | [
"1902132@sit.singaporetech.edu.sg"
] | 1902132@sit.singaporetech.edu.sg |
4b88f25e57c956314c2911c513bee6f3b763b15d | 44138a906f8e8184752b05325679c7fe8522a8ac | /datasets/python/4_2.py | 8e7405cced259019054b7dd8eb9caa85e0a8a394 | [] | no_license | gorj97/antiplagiat-for-source-code | 55f84180c0a685ea17e6799b7dfd84031aa84030 | 91aa78665e5e7923a32c6d90005efd187620df3b | refs/heads/main | 2023-03-05T18:01:33.947530 | 2021-02-19T18:16:04 | 2021-02-19T18:16:04 | 340,072,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54,830 | py | #!/usr/bin/env python
VetpnnSxFZMzCgSjHHlZJSNzCSbdGpNxHvsdVZgjimaaaYyTdlaNtBDPUbURAxSW = 'dtjrFuNdaaMPCESNOdueZHpPLaZZYciUtVQVrczCEEDQmsmZveesJgmpySOqplaW'
IXsHyGJNvGuEnxkrKxdWmGDWjnrMVWpSQSSeLJoOHMxUcpnouSSBmMLmPgpCxixE = 'JVQABjPSgHRgjrDoEvpdxuCxDHKKkRoJoXlWbJdwEMUeagIJFIlcBiNrZYCzFQXx'
IneGhGaSfyoRvpHTyrMAwhdUIST... | [
"noreply@github.com"
] | noreply@github.com |
8dbbb798fd7d365ab6925e56271b3e38fd9151e3 | d229480fb037442bfc2d895e300fdab89d06e1f6 | /examples/train_cornac.py | 739d5ecca174fe68cffed861aa5a7481900cda49 | [] | no_license | anonymcodes/t-vbr | 939c8eebed4e6ecbe4e85b26b296b5e16bb0b445 | c8d37aee05de5060a98fac74421a28db0a7eaa4c | refs/heads/master | 2023-08-09T01:55:12.295567 | 2020-12-03T02:06:18 | 2020-12-03T02:06:18 | 264,423,776 | 2 | 0 | null | 2023-07-23T17:09:20 | 2020-05-16T11:40:02 | Python | UTF-8 | Python | false | false | 6,934 | py | import numpy as np
import pandas as pd
import pickle
import argparse
import json
import torch.optim as optim
from torch import Tensor
from torch.utils.data import DataLoader
import torch
import torch.nn as nn
import torch.optim as optim
from tqdm import tqdm
from livelossplot import PlotLosses
import GPUtil
import os
i... | [
"your@email.com"
] | your@email.com |
90a2e90e2f2334cf65ff1b339145a6612a911fa6 | a7360f3dcb53ff1280941315a1afa555b4710c15 | /main.py | 7b334989a8aa43e4520006e668e47589438e2bb1 | [] | no_license | ONEKINGDOMS/personalZeng | 6e96f4fdfc6bace17305dcfc775851f6041221ca | 0ec09467de3b97079f8895f247cb24e15bd880c0 | refs/heads/master | 2021-01-23T16:23:12.980854 | 2017-06-04T07:20:59 | 2017-06-04T07:20:59 | 93,296,625 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,823 | py | # -*- coding:utf8 -*-
import os
import urllib
import re
import urllib2
import jinja2
import webapp2
from google.appengine.api import users
from google.appengine.ext import blobstore
from google.appengine.ext import ndb
from google.appengine.ext.webapp import blobstore_handlers
from google.appengine.ext.webapp.util imp... | [
"zenghongbin@zengdeMacBook-Pro.local"
] | zenghongbin@zengdeMacBook-Pro.local |
cf69051dcb9cad2c69de1b1e9becca99eb7e3308 | 37e29d87d1d620488e9969203f213aa9ee13ef7f | /tkm/load_data.py | ee5eb10cbd92642269e1f68239f7227b119061eb | [] | no_license | koji0000/machine-learning | 296aea642ab9a025fc9d9064a0f50b9d259a7812 | 4201765fff8ca75944511c90dbe2a6821160c0b9 | refs/heads/master | 2021-07-24T02:50:06.543463 | 2017-11-02T01:18:36 | 2017-11-02T01:18:36 | 109,202,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | import pandas as pd
from logging import getLogger
TRAIN_DATA = '../input/train.csv'
TEST_DATA = '../input/test.csv'
logger = getLogger(__name__)
def read_csv(path):
logger.debug('enter')
df = pd.read_csv(path)
logger.debug('exit')
return df
def load_train_data():
logger.debug('enter')
df ... | [
"nakashima@key-p.co.jp"
] | nakashima@key-p.co.jp |
905a7dce0baf7bd4ecf6823a6c1680a0a082533b | 7cb17f5819682463351593c54a00cfc2baccf562 | /main.py | acbc35421d9e6dce6cde2f4487fa53677553d1ee | [] | no_license | meganjacob/Overtime-Data-Analysis | 3fc91f36ea4aa3bc8ac33058f826927a998e80f9 | 91e9b8f527704674e226e06ff993574730a85d1e | refs/heads/master | 2022-06-18T00:42:24.141717 | 2020-05-05T22:46:23 | 2020-05-05T22:46:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | import csv
import matplotlib.pyplot as plt
hqs = []
ot = []
st = []
with open ('set.csv') as d:
data = csv.DictReader(d)
for i in data:
h = i['Headquarter']
otf = float(i['Total OT\nHours'])
stf = float(i['ST\nHours'])
if h in hqs:
index = hqs.index(h)
ot[index] += otf
st[index] +... | [
"meganjacob2004@yahoo.com"
] | meganjacob2004@yahoo.com |
24bd01eef13ac27c129556df9c4bdd7e0d6ad861 | 44b869c9ddcfd8afa429a6a4758c6acdac62f9c1 | /users/admin.py | c13af5a0c2a73efaf7790a0cc239c9c99a1fafdc | [] | no_license | paulitstep/blog-api | 7507394eb008c6c1bd30e5699bb33e9e37cfac52 | 5ce6d84495fa9b6d32b38d7d99412858ff3bc077 | refs/heads/main | 2023-04-06T12:56:00.364861 | 2021-04-16T09:28:09 | 2021-04-16T09:28:09 | 357,801,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from users.models import NewUser
class UserAdminConfig(UserAdmin):
model = NewUser
search_fields = ('email', 'user_name',)
list_filter = ('email', 'user_name', 'is_staff', 'is_active')
list_display = ('email', 'id', 'user... | [
"pasha-mo1@rambler.ru"
] | pasha-mo1@rambler.ru |
715abf20cea7f39f6f659e1cdcea9383ed413dc0 | 621aff67f5f89e04029ea326d09681fcf46290a2 | /CodingBatLogic-1/cigar_party.py | 79bcd7e857eda41041650777f605226f7f13fa96 | [] | no_license | raymondng1893/Python-CodingBatExercises | 6a24e7ea2f63b54e43eb3727eee35d1077d64d77 | 252588ddf6267f6dd82d56d0e7ac79c779f0dcbb | refs/heads/master | 2021-09-07T21:57:45.838250 | 2018-03-01T17:38:40 | 2018-03-01T17:38:40 | 109,044,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | # When squirrels get together for a party, they like to have cigars. A squirrel party is successful when the number of cigars is between 40 and 60, inclusive. Unless it is the weekend, in which case there is no upper bound on the number of cigars. Return True if the party with the given values is successful, or False o... | [
"noreply@github.com"
] | noreply@github.com |
7a3fcd2835b9f9190930f94600a4aafaaaa3423b | 128e2652e2f0a4b4be57894bffab461c90170657 | /tej_python/basics/files/seek.py | 656f78a1ef2076688bbeb29b34170fdcee8bf41b | [] | no_license | tejadeep/Python_files | ec2695ec844e723d0784a67bd13c9a178c0aa601 | 43fde84dd62543e5ed9896177949cca877fdb858 | refs/heads/master | 2020-06-11T04:35:55.850108 | 2019-08-08T07:23:23 | 2019-08-08T07:23:23 | 193,851,082 | 0 | 0 | null | 2019-06-26T07:19:34 | 2019-06-26T07:19:34 | null | UTF-8 | Python | false | false | 52 | py | f=open("text","r")
f.seek(5,1)
a=f.read()
print (a)
| [
"you@example.com"
] | you@example.com |
3d0360c9581dcb36b488f9b5f81209c664b1dda8 | 42644e989c58ba6eb217dfbf1368ed25e403e3c5 | /creditmlp.py | 121a511b119da25e5df7af25f218f5cdfc092a32 | [] | no_license | brian1760/Project | d96977fa3176767f163680d0737daea2c754fc5b | 0c0b45977f8838131505bda4795fbc3b4817cfe2 | refs/heads/master | 2021-01-17T20:57:20.166516 | 2016-07-19T15:10:57 | 2016-07-19T15:10:57 | 63,683,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,546 | py | """
This tutorial introduces the multilayer perceptron using Theano.
A multilayer perceptron is a logistic regressor where
instead of feeding the input to the logistic regression you insert a
intermediate layer, called the hidden layer, that has a nonlinear
activation function (usually tanh or sigmoid) . One can use ... | [
"brian1760@hotmail.co.uk"
] | brian1760@hotmail.co.uk |
0a73a141621ba3d032ac2f6b9c9fbec5f12eabb2 | d44e7d85d4d8c601965c3dfdd09937b76b292d6f | /practice_06_03.py | f8ad37f3be0898e5a5170b244a3c59ad40a1ec80 | [] | no_license | Jean-1220/study_python | 84a0a34c0f7a16f13288871b5c1f4ec26b013d1a | 3bddf1d28875ddf69769b82dd7fc07be46bbb551 | refs/heads/master | 2023-04-28T15:29:03.732120 | 2021-05-25T08:38:02 | 2021-05-25T08:38:02 | 367,266,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | #함수_기본값
# def profile(name, age, main_lang) :
# print("이름 : {0}\t나이 : {1}\t주 사용 언어 : {2}" \
# .format(name, age, main_lang))
# profile("유재석", 20, "파이썬")
# profile("김태호", 25, "자바")
#같은 학교 같은 학년 같은 반 같은 수업
def profile(name, age=17, main_lang="파이썬") :
print("이름 : {0}\t나이 : {1}\t주 사용 언어 : {2}" \
... | [
"123sijin@sookmyung.ac.kr"
] | 123sijin@sookmyung.ac.kr |
cdfae9f0ea4d063ab1de30e02515f2d263d6592c | 74461144ed60c9211575b99c483f9f6b970ecf54 | /tesilm_sa/main.py | 1841b62d8a88c63d988f1f9952b8f1056cd69f36 | [] | no_license | mmilidoni/tesilm | 8bbd8a84139c79a42b8cc392477d2df441edbaf7 | 70d92d8fa87be446a17c6a257bbb41e9caedadd4 | refs/heads/master | 2021-01-22T04:09:33.262358 | 2017-05-24T22:31:10 | 2017-05-24T22:31:10 | 81,505,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,659 | py | from ScrolledText import ScrolledText
from Tkinter import *
from politician import Politician
from etl import Etl
from tweetprocessor import TweetProcessor
class App:
def __init__(self, master):
self.tweetProcessorObject = TweetProcessor()
self.politicianObject = Politician()
# tweet proc... | [
"michelemilidoni@gmail.com"
] | michelemilidoni@gmail.com |
7c195dbd7c5521e6969608c34feec58e6f8d2e51 | e0725eb2a9f3582afc3421fa43a89ac1eba404ea | /user/models.py | ef26a1a73fabb1b531d9140bab7f1fb317ee1ca8 | [] | no_license | Dannykl/crud_operation_in_django | 31235965b5bbd9ffaa882e372ea8a408ce3c6da1 | d68e70587b22b593295782d3701e38b153d1dd4f | refs/heads/master | 2021-08-30T18:40:41.061334 | 2021-08-17T11:48:55 | 2021-08-17T11:48:55 | 173,336,608 | 0 | 0 | null | 2021-08-17T11:49:35 | 2019-03-01T16:46:16 | Python | UTF-8 | Python | false | false | 146 | py | # Create your models here.
from django.db import models
from django.contrib.auth.models import AbstractUser
class User(AbstractUser):
pass
| [
"Danielniguse8@gmail.com"
] | Danielniguse8@gmail.com |
3d5421e76fe33f582359aeafedc29fae2292199a | 843f44309d466aff357d041023c45028d1e9c3c2 | /app/docs.py | 4cd0271f06ef4931a2e8469a57e3b95e66a9b51f | [] | no_license | raphaelcjamarante/app-pharmashopi | 375faf014834e72e9a6d2c84802a34c04b9593bf | 4df103aa3875c2969ef5d1ea42f3c9bd4760ce63 | refs/heads/master | 2020-06-30T01:46:18.407274 | 2019-08-26T12:51:35 | 2019-08-26T12:51:35 | 200,683,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,705 | py | # -*- coding: utf-8 -*-
from barcode.writer import ImageWriter
import barcode
import datetime
import os
import unicodedata
import xlsxwriter
import app.log
import app.utilities
logger = app.log.setup_logger(__name__)
#------------------------------------------------------------
def cell_format(workbook, mode, livr... | [
"39167880+raphaelcjamarante@users.noreply.github.com"
] | 39167880+raphaelcjamarante@users.noreply.github.com |
755972aa028be820773f38450b919438ab7b3f28 | f6783bf89012c2bdf31f485e6841b4a38b2c0993 | /scenes_params.py | 8db1dbdb055937e033af5f1417517ed3fbabbe92 | [
"MIT"
] | permissive | Elfoniok/rendering_analysis | 4bbb923ae2ad2b8d6d31c8cf51dd8ca3a0147ac6 | c171f0a3b8f240ecbf457d3c806745b11552b9bc | refs/heads/master | 2021-04-18T19:03:36.759589 | 2018-07-06T09:17:57 | 2018-07-06T09:17:57 | 126,380,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,830 | py | import os
## ======================= ##
##
class RenderParams:
## ======================= ##
##
def __init__( self ):
# Set default params.
self.seed = 100
self.inc_seed = 0
self.start = 4225
self.end = 6725
self.step = 100
... | [
"nieznany.sprawiciel@gmail.com"
] | nieznany.sprawiciel@gmail.com |
3e132af42b28d60681b4833daf0ba15ff7a60097 | 4ddb1cb60794f75b7f72074fee6002f4f7367043 | /day19.py | b8f1decb99fde318e6c670671ffac858fd028ce3 | [] | no_license | shamayn/aoc2020 | 25032c84843e5ccb4472bb762ea88ab91b04f249 | 3a81253f0825180615d64dd6dae57a8a1ca9d28c | refs/heads/main | 2023-02-15T08:54:59.214285 | 2021-01-18T02:39:40 | 2021-01-18T02:39:40 | 330,533,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,538 | py | import re
TEST_RULES = [
"0: 4 1 5",
"1: 2 3 | 3 2",
"2: 4 4 | 5 5",
"3: 4 5 | 5 4",
"4: \"a\"",
"5: \"b\"",
]
TEST_INPUT = [
"ababbb",
"bababa",
"abbbab",
"aaabbb",
"aaaabbb",
]
TEST_RULES_2 = [
"42: 9 14 | 10 1",
"9: 14 27 | 1 26",
"10: 23 14 | 28 1",
"1: \"a\"",
"11: 42 31",
"5: 1 14 | 15 1",
"1... | [
"shamayn@gmail.com"
] | shamayn@gmail.com |
7ea31f1d5cee13bb05992a54895bdc6027e86ed4 | 5deca81ecb729fdb1e14511b7fdb65e5f3b277de | /2_sentiment/submission_v3.py | 867249d65f4d33c72710ac1ca021d7e5f65d622c | [] | no_license | anatu/CS221-Fall2018 | 6a0e170ada7ba8794d9e93dee875fc1a072e4692 | 03dbcf7cb7da953877171b311be9d0e2aacec30c | refs/heads/master | 2021-03-20T06:01:52.122056 | 2020-03-14T00:22:10 | 2020-03-14T00:22:10 | 247,183,322 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,968 | py | #!/usr/bin/python
import random
import collections
import math
import sys
from util import *
############################################################
# Problem 3: binary classification
############################################################
############################################################
# Prob... | [
"natu.anand@gmail.com"
] | natu.anand@gmail.com |
34e92db0841af367e4b0346a4077887143c981bd | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p00002/s447243661.py | ec5ea4eb25e8b12e086a6e676b80ee789fd3efbc | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | import sys
[print(len(str(sum([int(y) for y in x.split(" ")])))) for x in sys.stdin] | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d6a79a4eabf06bb6b8ca355714e38bdeb0e5ebdd | 59e94c298797d6fa47f22a616ca21ae88d9cd576 | /pgm3.py | c04e50f01c50cefdb247d5193d581eab54317082 | [] | no_license | renisha2898/PythonTraining | e08c70b09f3abacd6e7bd09564608d28476a3570 | 48e352bbdaa3af4d8d0043603cac777de06f3df0 | refs/heads/master | 2023-04-11T21:00:50.139206 | 2021-05-06T14:30:17 | 2021-05-06T14:30:17 | 364,862,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 959 | py | def print_matrix(mat):
for i in range (len(mat)):
for j in range (len(mat)):
print(str(mat[i][j]), end = " ")
print()
def transpose_matrix(mat):
for i in range(len(mat)):
for j in range(i,len(mat)):
mat[i][j], mat[j][i] = mat[j][i],mat[i][j]
def reverse_rows(mat):... | [
"renisha.barnes22309@gmail.com"
] | renisha.barnes22309@gmail.com |
a7ab71ff7fc64ee39fb77ab6387a4743f11aebc9 | 7f86ec2cb6cf59e8a70ac2855b6e073adad8ec5a | /cvpr_crawler.py | 69351ae13ef9099fd9fdc910a724958697154184 | [] | no_license | wangjuenew/CVPR2019 | 3e52dd37eea9ef99c796ba1c1676f4f3b5705255 | f6777150bab76c67245c63afad25c6b9b2819fc1 | refs/heads/master | 2020-06-05T14:44:16.401270 | 2019-06-11T07:34:15 | 2019-06-11T07:34:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | import requests
from bs4 import BeautifulSoup
import os
headers={
"User-Agent":"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36"
}
url="http://openaccess.thecvf.com/CVPR2019.py"
html=requests.get(url)
soup=BeautifulSoup(html.content)
soup.... | [
"noreply@github.com"
] | noreply@github.com |
f22e73da9c3bc06e6fbce6048458ec5cce2dbf73 | 77d4bedc8e58083e523b600a04efc1d7b990ad5e | /goods/goods/spiders/jiazhuangpei.py | cb2910f3e3d1dee7a6acb758d6ac44a07d5cd875 | [] | no_license | Yongest/spider | 7ef42675f4680fd86ad0e9b3a7ee97c51ad022a5 | aae715dc1793d70326679e4e0766f813d2932ef5 | refs/heads/main | 2023-06-04T20:53:43.989894 | 2021-06-23T10:07:45 | 2021-06-23T10:07:45 | 357,281,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | import scrapy
class JiazhuangpeiSpider(scrapy.Spider):
name = 'jiazhuangpei'
allowed_domains = ['jiazhuangpei.com']
start_urls = ['https://www.jiazhuangpei.com/combo/combo_list?type_id=1&page=1']
print('start')
def parse(self, response):
print(22)
node_list = response.xpath('//*/d... | [
"1046788379@qq.com"
] | 1046788379@qq.com |
29508b8c62c4dfc7ece26c6ae621b64c84e7d5da | 1368e2beda67052140a51fd53eb7a12941124320 | /Python 3/1541.py | 72fe04dada81de5994973cd36cbc76aecd070127 | [] | no_license | matheuskolln/URI | ac540fd4ea18c9b3ba853492dc60157c165145cf | b9091ed1c5b75af79cb25827aff8aab99d2e4b65 | refs/heads/master | 2023-03-09T23:17:17.865447 | 2021-02-25T16:47:24 | 2021-02-25T16:47:24 | 272,043,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | while True:
n = [int(x) for x in input().split(' ')]
if n[0] == 0:
break
a = n[0] * n[1]
i = 0
while i * i * n[2] / 100 <= a:
i += 1
print(i - 1) | [
"matheuzhenrik@gmail.com"
] | matheuzhenrik@gmail.com |
de86bd936a9bc7afa59da85369c6a2c0b220a168 | f8ffa8ff257266df3de9d20d95b291e393f88434 | /Python from scratch/Zadania/zadania podczas zajęć/zajęcia11/zadanie01/zadanie01+a.py | ac892bb38f756545548af1328c3d3f7cef2f15c5 | [] | no_license | janiszewskibartlomiej/Python_Code_Me_Gda | c0583c068ef08b6130398ddf93c3a3d1a843b487 | 7568de2a9acf80bab1429bb55bafd89daad9b729 | refs/heads/master | 2020-03-30T05:06:26.757033 | 2020-03-02T08:53:28 | 2020-03-02T08:53:28 | 150,781,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | from datetime import datetime
data_urodzenia = input('Wprowadź datę urodzin celebryty w formacie [RRRR-MM-DD]:')
try:
konwertowanie_daty = datetime.strptime(data_urodzenia, '%Y-%m-%d')
except ValueError:
print('Wprowadzono nie prawiłowe dane!')
exit()
teraz = datetime.now()
wiek_celebryty = teraz - konwe... | [
"janiszewski.bartlomiej@gmail.com"
] | janiszewski.bartlomiej@gmail.com |
9f594ff1823619e1dcc2332a99bfe096916918e4 | 46d99d9323e76d621ca96267a110ad504862b3ae | /oauth2discord/oauth2discord/urls.py | d0d031dc18f0be1182806830b8496f5fab51af8b | [] | no_license | stuyy/django-discord-oauth2 | 532671b9d96fd51aea95baff97edea3c51a45080 | 990f2a92151f1bbe90dfcb5ca05fdb16afbebefc | refs/heads/master | 2023-02-06T01:25:20.436809 | 2020-12-23T13:43:12 | 2020-12-23T13:43:12 | 323,912,487 | 8 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,079 | py | """oauth2discord URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class... | [
"ansontheprogrammer@gmail.com"
] | ansontheprogrammer@gmail.com |
0e17514ae9c3a31e17cccfa8e0dddb6f3ce2a800 | 33648419977a4fba65b759eb3a2a974403298340 | /double_lens/dependencies.py | c2aab79bcd0146e47ddd160e3b09961bac6aeb2f | [] | no_license | Andrew-wi/magnetic_lens | 3c3cbd2c5b821f4f43d7b562afbab6610f3d9608 | efe51168018c5e4c9c2055416dc47c3694af448b | refs/heads/master | 2023-05-23T10:00:08.998982 | 2021-06-15T18:05:32 | 2021-06-15T18:05:32 | 262,870,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,274 | py | # ----------------------------------------------------------------------------
# Dependencies
# ----------------------------------------------------------------------------
print('Importing dependencies...')
import csv
import datetime
import gc
import matplotlib.pyplot as plt
import matplotlib.path as pltPath
import m... | [
"andrew.winnicki.sc@gmail.com"
] | andrew.winnicki.sc@gmail.com |
79ea37acde76ff9d7597da6fefc1e622c6d6b78f | d51655c40bf6ccb6a1d380ad9a41787c39c0dd73 | /01_simple_forecast.py | 41ce5d89994d1b5b4bdddae9012dbfc12cf90205 | [] | no_license | andydong1209/TaipeiUniv | afda0cea0c099220ad2bf476b43f3c70f7cfeeb5 | 850e91c7ce536218a9363c9e533aeb28be4a4595 | refs/heads/master | 2020-04-09T08:47:46.540602 | 2018-12-03T15:04:43 | 2018-12-03T15:04:43 | 160,208,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,334 | py | # persistence forecast for monthly car sales dataset
from math import sqrt
from numpy import median
from numpy import mean
from numpy import std
from pandas import read_csv
from sklearn.metrics import mean_squared_error
from matplotlib import pyplot
# split a univariate dataset into train/test sets
def train_test_spli... | [
"noreply@github.com"
] | noreply@github.com |
4e2e2454f366b4ccf2365d6b99b0d14541f8eec0 | bd1da92cc915c6093ced6fe03f0bcd581906d3dd | /tests/integrationv2/test_well_known_endpoints.py | 2ff96377720d5ec10f6de008e91b8f182dad8957 | [
"MIT",
"Apache-2.0"
] | permissive | JRetza/s2n | f177c0534e751ad7f39f0c16cdc7a2a5849e3b40 | 0df8de3c5630357ed25b935a5978c63f49bb4108 | refs/heads/main | 2023-01-03T11:36:43.297765 | 2020-10-09T21:05:11 | 2020-10-09T21:05:11 | 303,068,948 | 1 | 0 | Apache-2.0 | 2020-10-11T07:47:24 | 2020-10-11T07:47:23 | null | UTF-8 | Python | false | false | 2,683 | py | import copy
import os
import pytest
from constants import TRUST_STORE_BUNDLE
from configuration import available_ports, PROTOCOLS
from common import ProviderOptions, Protocols, Ciphers
from fixtures import managed_process
from global_flags import get_flag, S2N_NO_PQ, S2N_FIPS_MODE
from providers import Provider, S2N
f... | [
"noreply@github.com"
] | noreply@github.com |
8bbc7b4b428f5449c80ea5148865efc952e1484e | c10abab7156cd0d7fc2f55f66ab24066f42c0498 | /TrainSetGenerate/mv_correct_info.py | 7bf33cb56c7ff8b8a64ebd786c04c0a899a4c9c3 | [] | no_license | doubiiot/Text-Extraction-System-of-Business-Information-Pictures-in-Online-Stores | c0a14eaa6e0b7f72beb575c9abbb5455c43cd286 | 79c05d17ad012b8adce3769e7b78eacc65538ad1 | refs/heads/master | 2020-04-14T02:41:46.219746 | 2018-12-30T13:37:29 | 2018-12-30T13:37:29 | 163,589,307 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,528 | py | import pickle
import shutil
import os
def get_dic():
f = open('./label_name', 'r')
num = 0
dic = {}
for i in f.read()[0:-1]:
dic[num] = i
num = num + 1
return dic
def read_pickle():
f = open('./chinese_labels', 'rb')
dic = pickle.load(f)
print(dic)
def find_loc(tmp):
... | [
"757282406@qq.com"
] | 757282406@qq.com |
944b07c373aec8167deeb8dc6bfdbe084937b546 | 50aaf7a32228fd29c53fbe59dda51253b308ebfb | /trading/model_runner_thread.py | bb7add2474e3d2bdc961d6bcf1ca438fc94fadbd | [] | no_license | xnsua/--pystock | 7300b35ecd9fad0e035ab58c91592739d94212cf | d1d414624b316b5fb01d02f99efa79a07eef5d53 | refs/heads/master | 2020-04-09T04:22:00.780773 | 2018-12-02T06:18:25 | 2018-12-02T06:18:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | from common.alert import message_box_error
from project_config.logbook_logger import mylog
from trading.base_structure.trade_constants import MsgPushRealTimePrice, MsgQuitLoop, MsgBidOver
from trading.base_structure.trade_message import TradeMessage
from trading.models.abstract_model import AbstractModel
from trading.t... | [
"cqhme@outlook.com"
] | cqhme@outlook.com |
288832b4e21767a5fe146fc0d0ad0218ce3730fc | be55991401aef504c42625c5201c8a9f14ca7c3b | /python全栈3期/面向对象/继承顺序.py | dcb0234f6de6831c86a781efdb3753c1b0f99ed8 | [
"Apache-2.0"
] | permissive | BillionsRichard/pycharmWorkspace | adc1f8bb15b58ded489fc8dec0df397601823d2c | 709e2681fc6d85ff52fb25717215a365f51073aa | refs/heads/master | 2021-09-14T21:12:59.839963 | 2021-08-08T09:05:37 | 2021-08-08T09:05:37 | 143,610,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | """
广度优先: 新式类(Python3) F->D->B->E->C->A
深度优先: 经典类(python2,不继承自object类)F->D->B->A->E->C
A
| \
B C
| \
D E
\ /
\/
F
"""
from pprint import pprint as pp
class A:
def test(self):
print('A')
class B(A):
def test(self):
print('B')
pass
class C(A):
def test(self):
... | [
"295292802@qq.com"
] | 295292802@qq.com |
de407b057a3f07ac7af93c6c6aeb6aa4ef3eed6f | 9c224a0bd205b0140942c082dc68a10450638307 | /find_cms/cms_model.py | f47b4c8b7f57991f4a7075e76e68b2268aead399 | [] | no_license | Binye234/What_Cms_Auto_Poc | 195023be44c784ba44f92de7e344c5a56db152ae | 56cae28bfecfe3032efe6578c3f571e5de21a3e9 | refs/heads/master | 2022-06-06T16:16:19.366767 | 2020-05-04T07:04:34 | 2020-05-04T07:04:34 | 257,018,990 | 30 | 5 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | # -*- coding: utf-8 -*-
class Cms_Model:
def __init__(self):
'''cms模型,记录各种参数'''
self.name = ""
self.url = ""
self.type=None
#self.flag
| [
"281564214@qq.com"
] | 281564214@qq.com |
77edf0789727527c8878b7240ecef57928ad998f | c5ea6a0b2d5f641b99414c3de87b60287feee3f8 | /ll_env/bin/django-admin.py | 10f7a05f30fae4202476fefdd5854038d5bac0c7 | [] | no_license | arif-hstu/django_blogsite | a78f303661d203080337c38d3e96a2ed295572be | 3ebd113600e6f6c3d65139268ea058364a4e0eac | refs/heads/main | 2023-03-09T04:23:55.468492 | 2021-02-16T19:19:02 | 2021-02-16T19:19:02 | 339,488,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | #!/home/arif/django_practice/ll_env/bin/python3
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"arif.dvm.hstu@gmail.com"
] | arif.dvm.hstu@gmail.com |
44793d5b5d5e8036980f789ec25d1f35af432398 | f649451bde3c1ceebe36fde242099618ec7dcf61 | /mojo-py/mojoland/recipes/gbm/eyestate_gbm_recipe.py | 7c3f2f7162bb366d2c6ef296412611c73d84dd62 | [] | no_license | h2oai/mojoland | aa1860881d1ee04ce57a3f4531a9a7022fb22a84 | aee15bcd7df195e0f1a3ed193aaad9728a7c43dd | refs/heads/master | 2023-08-25T08:46:26.343909 | 2022-09-01T16:14:23 | 2022-09-01T16:14:23 | 72,937,745 | 1 | 1 | null | 2021-11-10T16:00:03 | 2016-11-05T16:14:33 | Python | UTF-8 | Python | false | false | 643 | py | #!/usr/bin/env python3
# -*- encoding: utf-8 -*-
from typing import Iterator, List
from h2o.estimators import H2OGradientBoostingEstimator
from ..datasets import eyestate_frame, eyestate_data
from ..baserecipe import BaseRecipe
class EyestateGbmRecipe(BaseRecipe):
"""Binomial model, all features are numeric."""... | [
"pasha@h2o.ai"
] | pasha@h2o.ai |
f84d26d4e28de6fdda8bf0cdc36b0aa4ce4351a4 | 773d1efcbdb1bb1c4e0ade1cc1f0778a9d0aa99e | /tasks/AbramyanPartI/begin/begin23.py | 75bf082165fb19c20f8e05d6af8bda763936548a | [] | no_license | a-kikin/learningPython | f73ef5901b8ed85f1e6ddd9adc72723093acaf5d | c4e1a0541903f995ad86e095f99b646422753206 | refs/heads/master | 2020-04-01T20:12:31.522296 | 2018-11-13T08:10:23 | 2018-11-13T08:10:23 | 153,593,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | a = 2
b = 4
c = 7
d = a
a = b
b = c
c = d
print(a, b, c)
| [
"a-kikin@yandex-team.ru"
] | a-kikin@yandex-team.ru |
d20ec4b9e3cdfff3d33a0db66cb8dd016d72d0b1 | d34a3cebc6d3153f6492d5c9cc1ed3d01bd507a2 | /Homework 2/models/icons.py | 66cf26e15bd4e3153b452f170d5b2eaae86fda2f | [
"LicenseRef-scancode-public-domain"
] | permissive | asilva3/CMPS183 | 9fde2e50ce4cd79af481ee33c1e1fa294bf2e60f | 5ae0d66fc30fcae3bdb9dfa018ec3b5746c5f4f2 | refs/heads/master | 2021-05-04T11:02:27.391152 | 2016-08-25T17:13:42 | 2016-08-25T17:13:42 | 45,205,556 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | icon_shop = I(_class='fa fa-star')
icon_read = I(_class='fa fa-thumbs-up')
icon_noread = I(_class='fa fa-thumbs-down') | [
"asilva3@ucsc.edu"
] | asilva3@ucsc.edu |
2b82eda9ca0ac693fc27d54ea6d80342e9506926 | d1706d1054d0f497e549dbeb8108bdb4b71d6514 | /protocol.py | f7229a9c28991806417214ee8d4c1e1028dc5464 | [] | no_license | isaac-ped/cis800 | c35cf46360a15c6bafe9322bc87dc3c3c7a051ba | f45a1195928c8aa8d96be028d57a382fba4d9b26 | refs/heads/master | 2020-04-08T20:13:43.962684 | 2018-12-04T08:15:59 | 2018-12-04T08:15:59 | 159,689,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py | import ctypes as ct
class Udp(ct.Structure):
_fields_ = [("usrc", ct.c_ushort),
("udst", ct.c_ushort),
("ulen", ct.c_ushort),
("uchk", ct.c_ushort)]
class Eth(ct.Structure):
_fields_ = [("edst", ct.c_char * 6),
("esrc", ct.c_char * 6),
... | [
"iped@seas.upenn.edu"
] | iped@seas.upenn.edu |
f297dde3e24a29cede6a18efcb18439969ce8aba | 7e0e22e31aafc7eecda9d62ae4329f8697e23d40 | /scripts/average | 90f6be281641d653f9fe748d36aef7067a7f810b | [
"MIT"
] | permissive | Sandy4321/cli_stats | feec6e6b234e40062f0fe5b6519fdca0fc93f31b | d8a75cf81904a0565c9de6839ee4711355e26b70 | refs/heads/master | 2023-02-10T11:06:46.602325 | 2021-01-01T22:50:31 | 2021-01-01T22:50:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Compute the average of a number stream on stdin
Author: Gertjan van den Burg
License: See LICENSE file
Copyright (c) 2020, G.J.J. van den Burg
"""
import sys
def main():
total = 0.0
count = 0
for line in sys.stdin:
if not line.strip():
... | [
"gertjanvandenburg@gmail.com"
] | gertjanvandenburg@gmail.com | |
feeba3de11c1896233c77e78c768f44cee7819c0 | b761d738cce8d1d6be860f0bd7250c21d25abcc6 | /urlread.py | e78a63fcfaeb89d07c8b6b50becf24a0a5523e02 | [] | no_license | leoninnovate/crawlers | 46c02f760aae19c9f52eabb070cfdaacca521aee | 6e4120165d3227cbdafaba530cc6cbb8bf5c09dd | refs/heads/master | 2021-01-20T16:45:21.685464 | 2014-06-11T15:47:30 | 2014-06-11T15:47:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,967 | py | import urllib, urllib.request
from bs4 import BeautifulSoup
from urllib.parse import urljoin
import time
list_a = []
##list_name = []
list_link = []
##list_rating = []
##list_imageurl = []
##list_review = []
##list_user_rating = []
##list_rank = []
list_det=[]
##t=time.process_time()
t=time.time()
##url = "http://w... | [
"pranavchadha97@gmail.com"
] | pranavchadha97@gmail.com |
c1e242e1368825c4e5fb8b261aa43cb69ee38053 | c90ea430905d7e2129f86a639ddcecbbfcac1432 | /collector.py | 54dabfc9acda354b36104278c96955b5d940c1bd | [] | no_license | Hamedasd/ADM_HM3 | 8c2254ba1668edbbd3481bcaf652d48a89301d76 | 62c148fd48ee05420aa608098f123f07c311e41b | refs/heads/master | 2020-09-08T16:20:37.420017 | 2019-11-17T22:52:42 | 2019-11-17T22:52:42 | 221,182,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,252 | py | import csv , os, glob , random, time , codecs
import pandas as pd
import requests, urllib
from bs4 import BeautifulSoup
import time
import random
from collector_utils import WRITER
# here are the links to collect
# first we need to prepare all of the links in a list
url_1 = 'https://raw.githubusercontent.com/CriMenghin... | [
"noreply@github.com"
] | noreply@github.com |
fd940defda52fa51525d363b999c08ca8aed92f5 | 46076bec231e0e36c8bd90165b786371af0fe402 | /web/app.py | 2e005cc3bef68ffd1e9aec9f816be8c54eebb828 | [] | no_license | willgleich/mongogb | d0637819adbb3fd9f818890c1aa976766fc49238 | 46076055552c4b4f23b3f17c06140e5bdbd057ed | refs/heads/master | 2020-03-22T14:59:08.807516 | 2018-07-12T01:16:37 | 2018-07-12T01:16:37 | 140,220,144 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,085 | py | import pymongo
from flask import Flask, redirect, url_for, request, render_template, g, jsonify, flash, session
from flask_httpauth import HTTPBasicAuth
from werkzeug.security import generate_password_hash, check_password_hash
import os, datetime
import analytics
from io import BytesIO
import base64
import matplotlib
i... | [
"wgleich@gmail.com"
] | wgleich@gmail.com |
6b5b168212ea389d9a1bf3925742513ee086a11a | 362305437647e60b76fcea2994ef365d0f880087 | /custom_components/aliu24/aliu0_protocol.py | 12a57c134ffee7ea2ed17d0a780877f7ba739be4 | [] | no_license | pys1024/homeassistant | 165e7d9ba5b799242f3da8a9d6090836e1e4f8e7 | 489ea0148bd01b2a6d8a029578fbd62997c7e7b2 | refs/heads/master | 2020-09-12T16:13:01.156437 | 2019-11-18T14:57:49 | 2019-11-18T14:57:49 | 222,475,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,206 | py | import RPi.GPIO as gpio
from nrf24 import NRF24
import time
class Aliu0_protocol:
'''自定义通信协议V1.0说明
通信协议结构:
通信指令(1字节)+操作数据(1字节)+设备编号(1字节)+发送方地址(5字节)+附加数据(24字节)
发送方地址能让接收方知道指令由谁发起,附加数据根据指令利用,一般不用
'''
# 主机与子机通信指令
DEVICE_STATE = 0XA6 #返回设备当前的状态,没有操作数据
DEVICE_TYPE = 0XAF #返回当前设备的类... | [
"pys910@gmail.com"
] | pys910@gmail.com |
2c4fe8015968b8a78c7b2ea33ac5e21e01c82e6e | 75e99f1c3ba477a582a81aa22b8da0910c900134 | /bookstore/book/migrations/0003_auto_20180403_1401.py | f79af6ae4ee376ce12744797a99ed3339d1d8bb4 | [] | no_license | wuyumeng/bookstore | 1676f04f8f2d1a5fe8ff21bb3722c6def2459bc5 | ac6a58ebae98bfe2bed5fc6237cbca92c31c61de | refs/heads/master | 2020-03-09T09:05:49.883480 | 2018-04-09T02:46:03 | 2018-04-09T02:46:03 | 128,704,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import tinymce.models
class Migration(migrations.Migration):
dependencies = [
('book', '0002_auto_20180402_2344'),
]
operations = [
migrations.CreateModel(
name='HeriInfo... | [
"18732429547@163.com"
] | 18732429547@163.com |
122af83da8a2175b1e1c714e728d2bc9051068ae | 46a5338c5979c54e335af3d5a0523d5325845a0d | /python/fishsey/template/_tkinter.py | a7b44a26e02ff0b1ebcf2fc20be1522197305034 | [] | no_license | fishsey/code | 658284367b8435fa233a473341b90d746330a873 | b4275042e18ee02eb29ee285df7dce6d4d31a0c4 | refs/heads/master | 2021-07-11T18:57:11.052981 | 2017-10-06T11:15:35 | 2017-10-06T11:15:35 | 105,975,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,393 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Dec 06 21:07:30 2016
@author: fishsey
"""
from numpy import *
from Tkinter import *
import matplotlib
matplotlib.use('TkAgg')
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
from matplotlib.figure import Figure
def reDraw(x, y):
reDraw.f.clf() # c... | [
"ally1984aikx@gmail.com"
] | ally1984aikx@gmail.com |
228838743a4a17ff71de267f94269836b84c585b | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/0/bak.py | 12452944e2d8adaa5868f756dd6e5ad813124986 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
ef78a74713a122e3ad23d10048cdc826d0c26434 | b94f639d4c5a499f578d18762809cd91c7f7e934 | /foodsubstitution/views/__init__.py | f05b5e1fd27c98ea040bc543cb14dbe68b684d0b | [] | no_license | MCiret/P5_PurBeurre-Food-Substitution_DA-Python | d55facb48bf75baa532b0398f9cecd2a00570c50 | 038dbe9b7735bcf512c612de91487c7ea769c9b1 | refs/heads/master | 2023-04-01T04:06:23.500965 | 2021-04-07T15:29:30 | 2021-04-07T15:29:30 | 341,870,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | from .data_init_view import DataInitView
from .main_menu_view import MainMenuView
from .cat_view import CatView
from .food_view import FoodView
from .substitution_view import SubstitutionView
from .bookmarking_view import BookmarkingView
from .read_bookmarks_view import ReadBookmarksView
| [
"ciret.m@gmail.com"
] | ciret.m@gmail.com |
942a6a475150a440d2d71c36555b3b9649d6eb26 | ad0857eaba945c75e705594a53c40dbdd40467fe | /baekjoon/python/dial_5622.py | 2f52057085043af2b8abff6075f383071902aa85 | [
"MIT"
] | permissive | yskang/AlgorithmPractice | c9964d463fbd0d61edce5ba8b45767785b0b5e17 | 3efa96710e97c8740d6fef69e4afe7a23bfca05f | refs/heads/master | 2023-05-25T13:51:11.165687 | 2023-05-19T07:42:56 | 2023-05-19T07:42:56 | 67,045,852 | 0 | 0 | null | 2021-06-20T02:42:27 | 2016-08-31T14:40:10 | Python | UTF-8 | Python | false | false | 494 | py | # https://www.acmicpc.net/problem/5622
def dial_time(digit_string):
digit_dict = {"A": 2, "B": 2, "C": 2, "D": 3, "E": 3, "F": 3, "G": 4, "H": 4, "I": 4, "J": 5, "K": 5, "L": 5,
"M": 6, "N": 6, "O": 6, "P": 7, "Q": 7, "R": 7, "S": 7, "T": 8, "U": 8, "V": 8, "W": 9, "X": 9,
"Y... | [
"yongsung.kang@gmail.com"
] | yongsung.kang@gmail.com |
e3b8499d35ca0953884bd83aaecd543105bc25fd | c07ae35b94c770cdfde26a3084ca13560a29113b | /8 kyu/Convert a string to an array.py | 6ea6f5f958966bab3497f1146c97a3649ccefce8 | [] | no_license | Djusk8/CodeWars | 2f860efdf9c93e02170a61bd3345c1a6c57b85f0 | 75cdaaab3f9152032aeaa05d06ef67599aff710b | refs/heads/master | 2021-06-24T09:33:33.393342 | 2021-03-22T06:19:56 | 2021-03-22T06:19:56 | 208,574,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,666 | py | # ------------ KATA DESCRIPTION ------------
"""
8 kyu - Convert a string to an array
Write a function to split a string and convert it into an array of words. For example:
"Robin Singh" ==> ["Robin", "Singh"]
"I love arrays they are my favorite" ==> ["I", "love", "arrays", "they", "are", "my", "favorite"]
"""
# -... | [
"djusk8@gmail.com"
] | djusk8@gmail.com |
83ded1637f014ddd7d1d74a9b794caa77f7d598e | affd224383562562739623c7d63303c12efce568 | /source/CreateHMMparameter/CreateHMMparameter/CreateHMMparameter.py | aa79846373f87c422e7971ce118924dc0fcd2168 | [] | no_license | shiori-yokota/DataAnalysis | 24156474229969d68cdf296df353e538e8066f25 | 938c26e09c9bef5146af911a0c9be2d2ccceae66 | refs/heads/master | 2020-04-07T05:03:43.283524 | 2018-03-07T05:22:51 | 2018-03-07T05:22:51 | 124,183,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,014 | py | # -*- coding: utf-8 -*- #
import glob
from hmmlearn import hmm
import numpy as np
from sklearn.mixture import GMM
from sklearn.externals import joblib, joblib
import sklearn
EvmPath = "..\\..\\..\\"
compornents = 8 ## State number of HMM
mix = 10 ## Mixture number of GMM
LearningData = []
#### LEARNING ####
for mot... | [
"e1252225@gmail.com"
] | e1252225@gmail.com |
cbeded83233e21772af0637b2dcdb72d5adbec0e | 73ecfa0be6ae649c3eb1847436c9feeb96895b72 | /es_python/basi.py | a2987c233d46812f5ce14c097544147800515ac6 | [] | no_license | MellanoMatteo/Sistemi | b4146bfe723071bf01a2b3a8eaea355928f0775c | dfcee7b8e0bcc0bd0bfe1c8590918da9e0850284 | refs/heads/main | 2023-03-27T03:50:35.767954 | 2021-03-26T08:36:01 | 2021-03-26T08:36:01 | 317,488,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,446 | py |
lista = [1, 2, 4, "ciao"]
lista.append("aggiungo in coda un altro elemento")
print(lista[0:4]) #stampo gli elementi della lista dal 0 al 3
print(lista[3:]) #stampo i valori della lista dal numero inserito fino alla sua fine (discorso uguale ma inverso per stampare dall'inizio fino ad un certo punto, che sarà p... | [
"noreply@github.com"
] | noreply@github.com |
e8063309a45432e5690789a729c9e10f56504335 | c5828337255cb038a5c625ac28dd6805631abc06 | /src/accTest/exceptions.py | bc72ccea49aab004b9dbc08e57f32b49f78a056a | [] | no_license | Wei-N-Ning/accTest | b28d06e5e19558287afd815fbd0429219e9acea3 | a37a9679cf5f58413158e75a789eeb6f3d4d159c | refs/heads/master | 2021-03-29T11:04:44.280390 | 2017-09-12T13:01:00 | 2017-09-12T13:01:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,100 | py |
class MissingProperty(Exception):
def __init__(self, name):
super(MissingProperty, self).__init__(
'Property: {} does not exist on fixture'.format(name)
)
class BrokenTask(Exception):
def __init__(self, task):
super(Exception, self).__init__(
'Task {} is not... | [
"macgnw@gmail.com"
] | macgnw@gmail.com |
18952228b994c5076832cba456a033cd3d575e08 | 8d7fa86fec4e60c8fb7dc05729c00cbb5172db71 | /src/utils/expriments.py | d58d64ab33503e3b943cd70c577fe376ded86cd0 | [] | no_license | alexsanjoseph/customized-recipe | 4abc33de325b41a53541b634ac2d3a721776624d | d91ee3aa355405514392e537dfcb097c1364b3d1 | refs/heads/master | 2023-04-26T08:53:31.926166 | 2021-05-25T15:32:31 | 2021-05-25T15:32:31 | 370,742,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,390 | py | import pandas as pd
import numpy as np
import recmetrics
from sklearn.metrics.pairwise import cosine_similarity
from sklearn.preprocessing import LabelEncoder
from sklearn.preprocessing import OneHotEncoder
recipe_data = pd.read_csv('../datasets/epirecipes/user_profile.csv')
test_user_data = pd.read_csv('../dataset... | [
"alexsanjoseph@gmail.com"
] | alexsanjoseph@gmail.com |
e26e39f00e77ed06034df934564072590fdff2a2 | 5fff8b7eb7d83d3923738970c722c29576d8796a | /debuging.py | 0b043efe604d59591f80965eeea54b01b29723a1 | [] | no_license | honglanfcb/NLPCC_bert | 9185dd9a749f6b42318ba776b555f3024a16cb61 | 4a9bd0360fb0aa25428384f9f664e70c7158d9a6 | refs/heads/master | 2020-11-26T22:57:11.319050 | 2019-12-22T09:14:15 | 2019-12-22T09:14:15 | 229,223,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | with open("D:/program/git/Steve/NLPCC_bert/aa.txt", 'w') as f:
f.write("debug") | [
"w653771147@gmail.com"
] | w653771147@gmail.com |
8a8d29142bd33b8d6b538cb5bef48f3cbdb18df6 | fd0ab0f840ead868ea7b06003a76422665970903 | /16IT112_IT352_P2.py | 889f70498b2eabd2f6c4b33172152743513ba0ec | [] | no_license | divyamsm/6thsem | 593c14ed63af8791b11d9783ad655a5363351c65 | aee13df91919818a8efaee84140b04b8809a135a | refs/heads/master | 2020-04-15T21:13:45.515170 | 2019-01-30T10:27:37 | 2019-01-30T10:27:37 | 165,025,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,582 | py | '''Read Input'''
from numpy import binary_repr
entry = str(input("Give the string "))
if len(entry)<8:
print("Error, length less than 8")
exit()
usercode = str(input("Enter code 1 (first 8 chars) or 2 (last 8 chars) "))
key_stage_1 = []
if usercode == '1':
for i in range(8):
key_stage_1.append(o... | [
"noreply@github.com"
] | noreply@github.com |
2f0a89a7e8d1b21ac8e5b4f19526282cf6b7c983 | 6f0c99a5959b69f3d44c4232806f72e90777416c | /SCIENTIFIC EXPEDITION/CommonWords.py | 1e8edc6b9a05f48f9e57178a4cf901e2a12b252b | [] | no_license | Marshall00/CheckiO-tasks-solutions | 72cb270ed2f375b0e0c3a214bfdd4e81d72eec71 | ff4bd786b94e3e24509c6507f48d25f70c2f83cf | refs/heads/master | 2020-04-16T12:01:04.809750 | 2019-01-25T21:24:57 | 2019-01-25T21:24:57 | 165,561,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | def checkio(first, second):
lst=[] #In this list we will keep common words for both sets
x=first.split(',') #Create list of all words in x string
y=second.split(',')#Create list of all words in y string
x_set=set(x) #Create set based on x list
y_set=set(y) #Create set based on y list
s=x_set.... | [
"noreply@github.com"
] | noreply@github.com |
f5d77757b660bda4bd0936356a8d6d7361827530 | a81f0c4ceeb121c61c40eec52c97515110545f69 | /controllers/utils.py | 36fd3fc9b4946eaa8a8a3ae3d0b5f58ecc377eed | [] | no_license | msergeyk/yandex_backend | 11de04aa73542842a144b41f5f4a0d79f26ee5c2 | dd3fabe2df5f829a31b9bf19996f6ac6c0e28cce | refs/heads/main | 2023-03-31T03:25:01.866756 | 2021-03-29T20:46:35 | 2021-03-29T20:46:35 | 352,032,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | from datetime import datetime
from intervals.exc import IllegalArgument
def process_str(s):
return datetime.strptime(s, "%H:%M").strftime("%Y-%m-%d %H:%M")
def process_str_list(str_list):
return [
f"[{process_str(s.split('-')[0])}, " f"{process_str(s.split('-')[1])}]"
for s in str_list
]... | [
"msergey1996@mail.ru"
] | msergey1996@mail.ru |
dbe21cb50ad0b0cdc32dd28a4cdcb0ed69808a08 | 8ade5c2f29e41bc79eb917c217e0adc1057db87d | /src/features/gaia-sdss/consolidate.py | 5f0609d82640146c4acd9942cdbdacafc0342d72 | [
"MIT"
] | permissive | jastudillo1/A-Reinforcement-Learning-based-Follow-Up-Framework | 963c13dc0e4feccf68c50025f14914e31e421012 | 930fa3089230fdaec44e99d1d36e7970824708fd | refs/heads/master | 2023-04-10T19:51:40.997654 | 2022-11-17T01:39:11 | 2022-11-17T01:39:11 | 329,093,101 | 0 | 0 | null | 2022-11-17T01:39:12 | 2021-01-12T19:38:59 | Jupyter Notebook | UTF-8 | Python | false | false | 1,543 | py | import numpy as np
import pandas as pd
def append_sdss_id(xmatch):
plate = [str(p).zfill(4) for p in xmatch.PLATE_sdss]
fiber = [str(f).zfill(4) for f in xmatch.FIBERID_sdss]
mjd = xmatch.MJD_sdss
ids = ['spec-{}-{}-{}.fits'.format(p, m, f) for p,m,f in zip(plate, mjd, fiber)]
xmatch['id_sdss'] = i... | [
"jastudillo@g.harvard.edu"
] | jastudillo@g.harvard.edu |
7519b3756f10f14a5efbed78d21cd03b01e3570b | 0a85e9ecb51c89110794aeb399fc3ccc0bff8c43 | /Udacity/1. Data Structures/2. Linked List/detecting_loops.py | 7dde5625ea99184e444c23e219dd8ab70ca841bc | [] | no_license | jordan-carson/Data_Structures_Algos | 6d246cd187e3c3e36763f1eedc535ae1b95c0b18 | 452bb766607963e5ab9e39a354a24ebb26ebaaf5 | refs/heads/master | 2020-12-02T23:19:11.315890 | 2020-09-15T01:23:29 | 2020-09-15T01:23:29 | 231,147,094 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,569 | py | class Node:
def __init__(self, value):
self.value = value
self.next = None
class LinkedList:
def __init__(self, init_list=None):
self.head = None
if init_list:
for value in init_list:
self.append(value)
def append(self, value):
if self.h... | [
"jordanlouiscarson@gmail.com"
] | jordanlouiscarson@gmail.com |
acc99a53304ab28458e6f36b7b8ef9b70fff4dda | b2de663ffa58dbb9189e61ca83097b1f5a1e070f | /4_ml_exploration_combined_training_new_features_new_clf.py | 2c7deb2e553671fde8f7b625b67898363650134e | [] | no_license | benbenboben/test | 9c456b19e47b270d4ec3558220731cae324ef4d8 | 9bd6a7a820953754cae89be2acf09e79558a2fcf | refs/heads/master | 2021-09-03T23:46:18.488394 | 2018-01-12T23:19:42 | 2018-01-12T23:19:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,008 | py |
# coding: utf-8
# # Table of Contents
# <p><div class="lev1 toc-item"><a href="#Import-and-setup-data" data-toc-modified-id="Import-and-setup-data-1"><span class="toc-item-num">1 </span>Import and setup data</a></div><div class="lev1 toc-item"><a href="#Train-model" data-toc-modified-id="Train-model-2"><s... | [
"ellis.bh89@gmail.com"
] | ellis.bh89@gmail.com |
498ead3462fc012d19f998fbd9745d488750c4cc | 1843a687308bbdd664f9edf763145d27ee826eb6 | /unit3/cir-pack_tsc.py | a10f57950a51b2fc621569b2aea7e77501a7d65f | [] | no_license | Lupen14461/study1 | 1f47c4d1d0362c4db9dd92c35d72c92eaf59d634 | a29eb8a8b98ff8d739c64e45e7db649ae30cf5d5 | refs/heads/master | 2021-01-06T14:24:09.426103 | 2020-05-27T03:52:24 | 2020-05-27T03:52:24 | 241,359,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,027 | py | '''
在查询资料和与其他同学讨论后,
'''
import numpy as np
import random
import matplotlib.pyplot as plt
from scipy.optimize import minimize
#定义圆类
class circle:
def __init__(self, radius = 0, x = 0, y = 0):
self.radius = radius
self.x = x
self.y = y
def print_circle(self):
... | [
"noreply@github.com"
] | noreply@github.com |
6823c5360f70885ef30f899985476cec8c48d191 | e5c95e04821214d2f89bf9f48765dbe5ae04d3bf | /19100305/luokaiwen1022/mymodule/stats_word.py | 843077821e40dbc8c2d61d0b3834f6473bf35a65 | [] | no_license | qiming09/selfteaching-python-camp | 89270b98fa6080f4abe72f14ca0dd9441edbc493 | 48f5533ffa6fb7d82afa614346ad7e52e4e32e02 | refs/heads/master | 2020-04-29T16:25:59.059775 | 2019-04-02T06:45:02 | 2019-04-02T06:45:02 | 176,259,780 | 2 | 0 | null | 2019-03-18T10:34:32 | 2019-03-18T10:34:32 | null | UTF-8 | Python | false | false | 3,807 | py | # 示例字符串
string1 = '''
The Zen of Python, by Tim Peters
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.... | [
"48680863+luokaiwen1022@users.noreply.github.com"
] | 48680863+luokaiwen1022@users.noreply.github.com |
158643e767b1a1c837712b33c42139e665d84784 | bb0b9f5923e1ac4914b70c38a851fa3b8b92f154 | /gbp/scripts/buildpackage.py | d59a76d86c421a18c3c93d2ee34a8821b642b5f5 | [] | no_license | hzsunzixiang/git-buildpackage | 89a4ff667418325b8f31563545de437e5222ecd2 | 0a067f0e06f105ade703b8f4d56f379c5b30ccf2 | refs/heads/master | 2016-09-02T06:27:34.473182 | 2014-05-11T04:16:07 | 2014-05-11T04:16:07 | 19,658,170 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,035 | py | # vim: set fileencoding=utf-8 :
#
# (C) 2006-2013 Guido Günther <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 your optio... | [
"haichengsun123@163.com"
] | haichengsun123@163.com |
b513f222fdaffe800eb13434b6c68a58cf123706 | 94becda0e99eb1bf23f2649d63a6a2af0f631e33 | /brats/bak/loop_finetune_v100_bak.py | fc472ca5384a7149a43deaf323fcf73f85ea7cfd | [
"MIT"
] | permissive | guusgrimbergen/3DUnetCNN_BRATS | d560a878dfbe7dfe95ca5a37c8b066199300d276 | 1c4ad386b66c550770adc8c9e7371c1ce476db94 | refs/heads/master | 2022-01-08T13:37:05.253386 | 2019-06-17T13:10:59 | 2019-06-17T13:10:59 | 185,376,310 | 0 | 0 | null | 2019-05-07T10:07:33 | 2019-05-07T10:07:32 | null | UTF-8 | Python | false | false | 3,151 | py | from brats.config import config, config_unet, config_dict
import datetime
import logging
import threading
import subprocess
import os
import sys
from subprocess import Popen, PIPE, STDOUT
from unet3d.utils.path_utils import make_dir
from unet3d.utils.path_utils import get_model_h5_filename
from unet3d.utils.path_utils... | [
"minhmanutd@gmail.com"
] | minhmanutd@gmail.com |
4b2d690ae6f95c54796fa8e489349c37bedc6da5 | 240544a6e94996ae58f9e37a854dfeef888dfd9d | /nosetests.py | ff9698c6b62f87de52c23dd31a6324e817c09c64 | [
"MIT"
] | permissive | jankoslavic/py-tools | e7808e78fca97950f8e5d3e6cdb3156bb8dd5968 | dfc79507e90e1beaa8297fb48b197990b24d0929 | refs/heads/master | 2021-01-01T06:51:05.556669 | 2020-12-28T06:17:38 | 2020-12-28T06:17:38 | 37,326,059 | 15 | 11 | null | 2016-02-07T19:34:11 | 2015-06-12T14:18:53 | Jupyter Notebook | UTF-8 | Python | false | false | 40 | py | def test_numbers():
assert 12 == 12
| [
"janko.slavic@gmail.com"
] | janko.slavic@gmail.com |
35af21c694adef7b09cbc80926fda010c74caf6e | 7a6aca7d300c0752f2a73730b743a1a7361e941b | /tensorflow_graphics/nn/metric/fscore.py | 8bb696c3919b2925c77ede8d7b9ae9e1851fd458 | [
"Apache-2.0"
] | permissive | tensorflow/graphics | ef0abe102398a58eb7c41b709393df3d0b0a2811 | 1b0203eb538f2b6a1013ec7736d0d548416f059a | refs/heads/master | 2023-09-03T20:41:25.992578 | 2023-08-08T21:16:36 | 2023-08-08T21:17:31 | 164,626,274 | 2,920 | 413 | Apache-2.0 | 2023-08-27T14:26:47 | 2019-01-08T10:39:44 | Python | UTF-8 | Python | false | false | 3,437 | py | # Copyright 2020 The TensorFlow Authors
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
c8e339a91dc7b41046270aadb80c7d13e20e148b | 12f511a13fe95264a16409fce37974b5ab90ca90 | /actionUser.py | f237d7538e0c9decbc0633de54be518153f39fd2 | [] | no_license | rihenvora/Instagram-Clone | 9150abf2a66b9918c4204b963b3285fe289c1826 | 26e32adc3df104e128ba5584e4b53758b2caa97b | refs/heads/master | 2022-11-04T15:29:15.583890 | 2020-06-22T12:18:17 | 2020-06-22T12:18:17 | 274,128,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,760 | py | import webapp2
import jinja2
from google.appengine.api import users
from google.appengine.ext import ndb
from google.appengine.ext import blobstore
from google.appengine.ext.webapp import blobstore_handlers
import os
import urlparse
from google.appengine.api import images
from instagramdb import *
JINJA_E... | [
"noreply@github.com"
] | noreply@github.com |
961e76ad1d6a22225b91b5f9e9b5a45cc59f4df6 | f8095636248bac9e2b018ed3b06f36502edffb0b | /frontend_issuu_autotest_replica/tests_pro_account/TestQuickTourPRO.py | ede810b50de37975ec611870bca9add110124b14 | [] | no_license | slashsorin/auto-fe-test | deb1c696767b1c31125970679aa8ce4364fa956a | 266f3d7badb14c388edc63139bf659f60e09ac64 | refs/heads/master | 2016-08-04T10:22:18.123109 | 2013-11-22T09:16:57 | 2013-11-22T09:16:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,575 | py | import sys, time, os
#sys.path.append('/Users/Sorin/Issuu/new_eclipse_ws/frontend-issuu-autotest/autotest_framework/')
sys.path.append('../autotest_framework')
import SeleniumTestCase, make_platform_classes
import SetTestStatus as sts
import unittest, xmlrunner
class TestQuickTourPRO(SeleniumTestCase.SeleniumTestC... | [
"sorin.dimo@yahoo.com"
] | sorin.dimo@yahoo.com |
a8a6e16575d5448ec39c87efc4e2a31efdc133ee | 288f9764ebf4be88fb1e4436f49953e42589a0c3 | /lesson9/test.py | be47ba579f72e3b22e8d38f495a59de90bbea29d | [] | no_license | RenardMBM/yandex.lyceum | 34657386d07786332ee950375abb3ba176044864 | 15c71a1ebe8ec73fe3b68a5fc6e23e7d49e6f8ca | refs/heads/master | 2020-03-29T11:25:41.447024 | 2018-10-22T01:38:39 | 2018-10-22T01:38:39 | 149,852,015 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | def is_prime(n):
if type(n) != int:
# check type
raise TypeError()
elif n <= 1:
# check
raise ValueError()
# error was here: range(2, k) doesn't include k
# hence, for example, for 9 only divisor 2 will be checked
for divisor in range(2, int(n ** 0.5) + 1):
i... | [
"renard.mbm@yandex.ru"
] | renard.mbm@yandex.ru |
a52b455dc705da8f9fc3724685f6ef38c3740ff4 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /5pYkwf948KBQ3pNwz_13.py | f195abcf98ede33050c2a8f2b103f9ced9d8120e | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py |
from collections import Counter
def most_common_words(text, n):
words = ''.join([c if c.isalpha() else ' ' for c in text.lower()]).split()
seq = {}
idx = 0
for word in words:
if word not in seq:
idx += 1
seq[word] = idx
C = Counter(words)
L = [[k, v, seq[k]] f... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
0c8460f781db165f87f97883989a2feef5e75c7d | aaeaf969b31043bc3cbac2f25aef65dc8b5c8027 | /gen-nginx-conf.py | 10c20c4e8d1f0a023e2102deb7eb2625dddf3983 | [] | no_license | unknown0xff/nginx | c939f20ef76164680ee87cf2d1fe056944aec2e9 | d4f8a1b506bd0bc8f37ad57816b554703f6814b6 | refs/heads/master | 2022-11-22T17:24:58.668992 | 2020-07-28T03:02:44 | 2020-07-28T03:02:44 | 283,059,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,304 | py | #!/usr/bin/python3
#coding=utf-8
import sys
import os
template = '''\
user nginx;
worker_processes auto;
worker_rlimit_nofile 100000;
events {
worker_connections 2048;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
keepalive_timeout 65;
include /etc/ngi... | [
"unknown0xff@protonmail.com"
] | unknown0xff@protonmail.com |
e13126c0e92fd4d20c09e724782792fd56bdc4d0 | 29ee2c8cfca177affdcfee96f369bdb3e8d21cda | /SDLabs/SDOM/PY/injection.py | f3506070d021dc13045da9f903c6a305b6319777 | [
"BSD-3-Clause"
] | permissive | hippiejesus/SDOM | fb9d5fb32d43b602a83bab089a54b9d735789c0c | 271328e306343dbc2f76269317950993cf5d9b4e | refs/heads/master | 2020-03-16T05:49:01.770746 | 2018-07-11T23:39:27 | 2018-07-11T23:39:27 | 132,541,179 | 0 | 0 | BSD-3-Clause | 2018-07-11T23:39:28 | 2018-05-08T02:15:32 | Python | UTF-8 | Python | false | false | 772 | py | import classes as cl
cl.load()
cl.inv.listAllCompaniesArchive = []
cl.inv.listAllEmployeesArchive = []
cl.inv.listAllRunsArchive = []
cl.inv.listAllBagsArchive = []
cl.inv.listAllTotesArchive = []
cl.inv.listFinishedBagsArchive = []
cl.inv.listFinishedTotesArchive = []
cl.inv.listAllUnfinishedProductArchive = []
cl.i... | [
"noreply@github.com"
] | noreply@github.com |
7b47523319212979e6f3b6c237087b53e69b6d12 | 8b856e27bc39b3ac6cfabac0ba7b9803ab65cb74 | /users/urls.py | dc06cc234686069911998e2cee4e9d3981a2eb56 | [] | no_license | MilanSormaz/Bus-station | e65c5282bb10e8987be0318c562ee373454431d4 | e3b4f74d304f4c30b776945b8c0bc2dc935f015b | refs/heads/master | 2023-03-30T01:23:42.106925 | 2021-04-11T12:08:11 | 2021-04-11T12:08:11 | 356,855,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | from django.urls import path
from . views import register
from . import views
from django.contrib.auth import views as authentication_views
app_name = 'users'
urlpatterns = [
path('register/', register, name='register'),
] | [
"msormaz@MILANSORMAZ.planetsoft.ba"
] | msormaz@MILANSORMAZ.planetsoft.ba |
94a6116c764873b6950b74de2e59c95f77bc89b1 | a8dfd770217d9aba083f1a9820914f7a3883237b | /fibb.py | 4d117302e97a60b67f6d886f7c44bd4eca4b100e | [] | no_license | Meghanaalla/sravani | 215113f095709ded30e5a47cc50398a271ffab56 | 53f4a6b78051d91f469f7399341b5f526986ad78 | refs/heads/master | 2020-03-26T05:20:07.968892 | 2018-08-30T07:20:49 | 2018-08-30T07:20:49 | 144,551,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | nterms=int(raw_input())
n1=1
n2=1
count=0
if nterms==1:
print n1,
else:
while count<nterms:
print n1,
nth=n1+n2
n1=n2
n2=nth
count+=1
| [
"noreply@github.com"
] | noreply@github.com |
5f93cd10f917b5933f9628fbeb2356e722b262a9 | 726ba4ae7f0f7c6035d88a145ff1dd957317b57d | /app01/migrations/0003_auto_20171122_0859.py | 58f4e0277b2622b234359531760a07ce1cb762dc | [] | no_license | chrishug/s14day01 | 2305300291b2e6ecd558328d41cc01ac48c65274 | 2db3598d8dfc2812d26bdf1d1638d5b8d327efd8 | refs/heads/master | 2021-09-01T06:01:54.840797 | 2017-12-25T07:54:13 | 2017-12-25T07:54:13 | 115,318,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-22 00:59
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('app01', '0002_userinfo_group'),
]
operations = [
... | [
"305165472@qq.com"
] | 305165472@qq.com |
e2553bf31614edf3ef91cdd52439d0a0721bc8d2 | e3fd35a8443aaf2f293ae03a5f6c819046a4dd21 | /leetcode-python/medium/_503_next_greater_element_2/test_solution.py | 68da2b92260a0e9bd3dc14ea7131a1cb31787adc | [] | no_license | hieutran106/leetcode-ht | 2223ea6bcd459c2cdbc33344c0ff69df7f8a3c7f | 8332eb20e613f82cda2e326218154c7803a32403 | refs/heads/main | 2023-08-09T02:52:41.360360 | 2023-07-27T10:12:28 | 2023-07-27T10:12:28 | 234,890,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | import unittest
from .solution import Solution
class MyTestCase(unittest.TestCase):
def setUp(self) -> None:
self.s = Solution()
def test_case1(self):
actual = self.s.nextGreaterElements([1, 2, 1])
self.assertEqual(actual, [2, -1, 2])
def test_case2(self):
actual = self.s... | [
"hieutran106@gmail.com"
] | hieutran106@gmail.com |
ce194e63f27b48f35a7a57f0c64bda97da86c689 | 17d9abd2b10267f67b40f293723414ba729b0e62 | /store/utils.py | 0ae037bd02355dc79d85f77b746d2436cb02ca33 | [] | no_license | khebizi/ecommerce | 229b7e2a261a7789f118001f35d7002bd396e2d0 | 8c02f035d522941bb2e5c76c98eac2f7e0e448bd | refs/heads/master | 2023-08-13T06:11:37.081364 | 2021-09-21T15:01:09 | 2021-09-21T15:01:09 | 403,760,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,305 | py | import json
from . models import *
def cookieCart(request):
#Create empty cart for now for non-logged in user
try:
cart = json.loads(request.COOKIES['cart'])
except:
cart = {}
print('CART:', cart)
items = []
order = {'get_cart_total':0, 'get_cart_items':0, 'shipping':False}
cartItems = order['get_cart_it... | [
"ha_khebizi@esi.dz"
] | ha_khebizi@esi.dz |
a3503117e55cbea4f116261c30a6f9f1beb731c2 | 8ec50102ba621cc048e9fa9830bf35cef441c435 | /Programming Concepts/logical_operators.py | 082ca38c0a9a539971e430a14fa3d40dcf00d5b9 | [] | no_license | TanveerAhmed98/Full-Stack-Programming | 7672b696513bd2dc624c25ce37edb30891510fff | f340b9fbc6e70c92b2ba3d5c3a0e23ebc8686503 | refs/heads/master | 2023-06-15T23:10:16.693984 | 2021-07-10T13:38:25 | 2021-07-10T13:38:25 | 380,480,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | # and operator
print(True and True)
print(True and False)
print(False and True)
print(False and False)
# or operator
print(True or True)
print(True or False)
print(False or True)
print(False or False)
# not operator
print(not(True or False or False))
num = int(input("Please enter the number : "))
if (num % 2 == ... | [
"tanveer.ahm98@gmail.com"
] | tanveer.ahm98@gmail.com |
50f40cf5fe4eeddfd739731d65089c3ef176b974 | 3a751dd11ad893d4222cc52148d0829de9f4029f | /django/django_extras/ajax_note/manage.py | 280f9446088e0e061158fa6cefe483cacf4818a9 | [] | no_license | higashizono33/python_stack | 76b5fc63a63913e309a545b7f586a99c684fa0d2 | 5ec93e384e911b9d05de54af232d464928b76e7e | refs/heads/master | 2023-04-18T23:18:21.569125 | 2021-04-26T02:40:55 | 2021-04-26T02:40:55 | 339,864,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | 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', 'ajax_note.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Impo... | [
"takashizono@gmail.com"
] | takashizono@gmail.com |
c42af3a2ce14d0a7a69408abef1650a90e836b3a | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /MY_REPOS/INTERVIEW-PREP-COMPLETE/Practice/BSTFromArray/model_solution/model_solution.py | f9d67e0ad74527a0da094829f9bcf5cb690108cf | [
"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 | 2,162 | py | import math
def create_min_height_bst(sorted_array):
left = 0
right = len(sorted_array) - 1
return rec_helper(sorted_array, left, right)
def rec_helper(sorted_array, left, right):
if left > right:
return None
midpoint = ((right - left) // 2) + left
root = BinaryTreeNode(sorted_arra... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
32900a77fe98385caef31b2d84a934479ab42690 | 0981f52175d33ce8d2d5f96161435e972b46dc04 | /binary_file/functions.py | e1125faf057eb09997dab29501721f2192771bb6 | [] | no_license | deepakmauryadev/python-file-handling | 100f6c403600fcc7660cdf86efae2cbe95431cba | 4ed13a183dcba53171b8dc82d262671b4cb4bebf | refs/heads/main | 2023-07-23T23:11:38.627586 | 2021-09-05T07:05:31 | 2021-09-05T07:05:31 | 403,120,403 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,584 | py | import pickle
def readBinaryData():
# opening with read only binary mode
f = open("bindata.dat", "rb")
# reading binary data with the help of pickle module
try:
bindata = pickle.load(f)
print(bindata)
except EOFError:
pass
# closing file
f.close()
def wr... | [
"68635898+deepakmauryadev@users.noreply.github.com"
] | 68635898+deepakmauryadev@users.noreply.github.com |
dc4e85942e9578012c8c1f6f472cbf15e08c8a22 | 647f3dad23077ef7bbdb8bb79c4ad6b78d1b648c | /chap4/4-8.py | 21c21069868fc51aeb623d3f06c397787c201e1b | [
"MIT"
] | permissive | StewedChickenwithStats/Answers-to-Python-Crash-Course | df818245985b092729c92af2f0d80f3b71b8eb20 | 9ffbe02abba5d111f702d920db7932303daf59d4 | refs/heads/main | 2023-07-18T05:23:20.946093 | 2021-09-08T01:44:17 | 2021-09-08T01:44:17 | 389,494,549 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | cubes=[]
for value in range(1,11):
cube=value**3
cubes.append(cube)
for cube in cubes:
print(cube) | [
"stella_gan@126.com"
] | stella_gan@126.com |
a0161734ebd9afefd02aedd34e2422a1934ee79a | 79fc1d1bd044d6fc361556a1e3b36e6d2af94c04 | /creditcard bisection.py | 2c99286f49cd0736e23401e0403290592512ecb2 | [] | no_license | Gmiller290488/MIT-6.01 | 51803f2e1d56f44219fd8e3b34ac2513622ba497 | c2960cc47109d5a6d6c862c5b76da71761dc873d | refs/heads/master | 2021-01-11T23:56:51.349529 | 2017-01-11T14:38:47 | 2017-01-11T14:38:47 | 78,647,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Sep 12 18:58:24 2016
minimum credit card repayments to the pence
using bisection search
@author: Gmiller
"""
monthlyInterestRate = annualInterestRate/12.0
lowerPayment = balance/12.0
upperPayment = ((balance*(1 + monthlyInterestRate)**12)/12.00)
newBalance = balance
while newB... | [
"gmiller290488@gmail.com"
] | gmiller290488@gmail.com |
4ed97237e85cb0a7d11bd881738cfdaef5c42744 | 117d254212e6f888e28abc3cf8c1993a78736ebf | /nsaid/wsgi.py | 47b0a92e97655fc8a6edd01c86761722211495d5 | [] | no_license | nsaid-team/gotopaws | db56af85e3e83e2117941c26e1f211f3f440ba26 | fe5240af2667d79f6451462ab4dc56e86fa3dece | refs/heads/master | 2020-12-24T14:27:27.687640 | 2015-09-01T17:36:36 | 2015-09-01T17:36:36 | 38,507,747 | 4 | 3 | null | 2015-07-22T03:00:41 | 2015-07-03T19:31:13 | HTML | UTF-8 | Python | false | false | 377 | py | """
WSGI config for nsaid project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ['DJANGO_SETTINGS_MODULE'] ... | [
"npererar@utexas.edu"
] | npererar@utexas.edu |
c51e82ef5ab82087c69682991cef51b0315cbd94 | e03934835d0b3c60609edffbdd8e78f7c885f3ec | /Autopaste.pyw | b1701c50989a68cd4dffe2a85cac6fe741c79643 | [
"MIT"
] | permissive | ejaytc/Auto-Paste-Text | d24b1f6e764f513137977af1046e51c19f72af3b | 70dbce496330b31e9bad39669345525dbbe253f0 | refs/heads/master | 2020-07-13T11:35:33.367312 | 2019-08-29T05:05:26 | 2019-08-29T05:05:26 | 205,004,427 | 0 | 0 | MIT | 2019-08-29T03:38:41 | 2019-08-28T19:08:11 | Python | UTF-8 | Python | false | false | 1,805 | pyw | #!/usr/bin/env python3
from pynput.keyboard import Key, Listener, KeyCode
from docx import Document
import os, pyperclip, shelve, subprocess, re
def autopaste():
data = shelve.open("AutopasteData")
Path = data["path_"]
File = data["file_"]
data.close()
check_(Path)
new_document = os.pat... | [
"ejaytc@gmail.com"
] | ejaytc@gmail.com |
233021bb5d02ef49c79cadfa8aa011b31b2e5f41 | 9ff35175433721aa159bf3f3d5bf48aae8f6a4f8 | /myapp/models.py | f64e1791e431443ad35583fbf6481911a8029289 | [] | no_license | karthikraja34/django-sample_project- | 92d0433145cc96c2de6383f9f32a0a554013343d | 935da535c2b4dc503727720539cb54059ff59c9b | refs/heads/master | 2020-03-23T13:50:50.429859 | 2018-07-19T13:21:44 | 2018-07-19T13:21:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | from django.db import models
class Entry(models.Model):
name = models.CharField(max_length = 100)
date = models.DateTimeField()
description = models.TextField()
created = models.DateTimeField(auto_now_add=True)
def __str__(self):
return '{} {}'.format(self.name,self.date)
| [
"rajakarthik131@gmail.com"
] | rajakarthik131@gmail.com |
bf0e89240f4f37a580aab9569f8991173681907d | 8b28095954e5e0e08e5134add10f4cdb3dc43328 | /days/13-15 textgames/actors.py | d0267fa0661b8d1147aa6028a5b21846aefa9707 | [] | no_license | thompsta/100daysofcode-python | 35bfe4305f33548ed7d8bce6a76f88460f687783 | 7678e594ed64312590a0f30bb8c33b60aba13791 | refs/heads/master | 2021-01-06T17:52:03.147599 | 2020-02-29T01:45:11 | 2020-02-29T01:45:11 | 241,425,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,274 | py | import random
# classes are blueprints of the objects we want to create
# every method has the __init__ self, assign new fields (characteristics) with self
class Creature:
def __init__(self, name, level):
self.name = name
self.level = level
# add new behaviors (methods) with new functions withi... | [
"noreply@github.com"
] | noreply@github.com |
bdceae09f3f12e2c784454982314c598267c7550 | d1d626e557cc3ec2068734c464afdde6d0b44a92 | /bot/models.py | 70d55805aa7993b986707e1145d34e9f2b759e43 | [] | no_license | akhad97/Telegram-Bot | d279899f1cacebdb3317f2084047beaa4507c0fb | fd999c03b7b1abd2d433efcd67d9047430c66e4a | refs/heads/master | 2023-07-02T06:53:41.697269 | 2021-08-03T17:41:07 | 2021-08-03T17:41:07 | 352,558,410 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,104 | py | from django.db import models
class TelegramUser(models.Model):
user_id = models.CharField(max_length=30)
full_name = models.CharField(max_length=100)
phone_number = models.CharField(max_length=15, null=True)
resume = models.CharField(max_length=100, null=True)
# resume = models.FileField(upload_to... | [
"ahadjon.abdullaev1997@gmail.com"
] | ahadjon.abdullaev1997@gmail.com |
7174ae4f6fc58d37b2db7961201abda58c6e5f29 | 2afb2a5b8e77d6ec9d15f9b72e6873045dc168d9 | /Player.py | 0d074ea891b20f1f6f0d678a654815cf7434c6bd | [] | no_license | EnmanuelA/Program_5 | 23fdee6940ab921d32d8c1b3e2d8b0d2c5db1196 | 0bfb52d367d8bd1ad972f37578f1dfda1ed30b09 | refs/heads/master | 2016-09-14T05:11:45.072675 | 2016-04-26T02:19:33 | 2016-04-26T02:19:33 | 57,090,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,307 | py | from Treasure import *
from Level import *
class Player:
def __init__(self, current_level):
self.__displacements = {"h":(-1, 0), "k":(0,1), "j":(0,-1), "l":(1,0)}
self.__current_level = current_level
self.__location = current_level.get_up_point()
# the player c... | [
"enmanunm@my.uri.edu"
] | enmanunm@my.uri.edu |
db38dd76b0fceae10b1ca8bae0bbb2be88eebc4c | a4be06af5b3997ca882d45d2ed63c80d7e4488fa | /prmgt/settings.py | 1afebdc348d84d879773138545d0290536c2a421 | [] | no_license | pyrephyo/prmgt | c7834639320ffed421cbf52f699f4ceabab12dca | b2b7e7d56274958bea3d30a5e109f6123d4878c2 | refs/heads/master | 2021-01-20T20:18:53.632861 | 2016-08-10T21:39:41 | 2016-08-10T21:39:41 | 65,244,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,091 | py | """
Django settings for prmgt project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
# ... | [
"nkolson@pyrephyo.se"
] | nkolson@pyrephyo.se |
f35c47216bf7bbfc65746823ab7740447c6a723d | bb3306f1f19847f43aa9aa511426379d9ed4ae60 | /google/cloud/firestore_v1/types/common.py | b03242a4a8c4c8e3c6dc014396bbf604146739c1 | [
"Apache-2.0"
] | permissive | chrisrossi/python-firestore | a6b413d71e4c3394de815c2d73ab705c686821d1 | 0ae32cea8aa344825d29cc040069777162647780 | refs/heads/master | 2023-03-13T07:31:22.079376 | 2021-02-23T16:06:23 | 2021-02-23T16:06:23 | 296,692,413 | 0 | 0 | Apache-2.0 | 2020-09-18T17:50:28 | 2020-09-18T17:50:22 | null | UTF-8 | Python | false | false | 3,580 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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 o... | [
"noreply@github.com"
] | noreply@github.com |
2f64d7cf2311b03b78ca148517b429f7ebaa4ead | 0384ab5eadd5f65ea92dc29535e389b3e5fe26e7 | /manage.py | ac9f6b57e9cbdea0f9941bca10bd177d68048f0d | [] | no_license | nathanjh-28/finch_collector | e1ebcdd93bf2d23f7b60fffede68e3971b288d77 | 37a07f3ef844f2ab776c48f3331e7dcb0704cd27 | refs/heads/master | 2023-07-30T19:47:43.139025 | 2020-07-30T00:08:08 | 2020-07-30T00:08:08 | 283,627,869 | 0 | 0 | null | 2021-06-10T19:59:04 | 2020-07-30T00:07:06 | Python | UTF-8 | Python | false | false | 643 | 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', 'finch_collector_project.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"nathan@nathanjharris.com"
] | nathan@nathanjharris.com |
c2646e175f2eac6aae45ccfa0d6697077523a4e4 | 8b2e3bf1c2db556d0ca95e60f27c224afaf4cda1 | /potnanny/apps/messenger/__init__.py | e9932c7aabdbb6a3d3609416d0ff6fa6a170f7f0 | [] | no_license | greeneryguru/potnanny-web | 96fe724ba3e9caed5d25578bdf40be0e896e2f81 | c4ca8b108c4b67b35c4b05db1fc57a6b53407c4e | refs/heads/master | 2021-01-24T02:45:13.301249 | 2018-03-12T13:54:33 | 2018-03-12T13:54:33 | 99,291,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29 | py | from .views import messenger | [
"jeffreyleary@Jeffreys-MacBook-Air.local"
] | jeffreyleary@Jeffreys-MacBook-Air.local |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.