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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6171becb207e276db36bc6653ed1900ae7e3400d | a5424e248051f1cf2542aa82f040f7173aa8f8d8 | /ExamenUII.2/ExamenU22/Examen/admin.py | 6f540ae7584dda48774c6e956324debaa0392758 | [] | no_license | luisfbarajas/PWeb | dd23a744357e5b961b3a1c23756bf60cc6741b08 | e514d0f5710e33c718de8e27a06321643a271e17 | refs/heads/master | 2020-03-28T07:11:33.107934 | 2018-12-06T07:56:17 | 2018-12-06T07:56:17 | 147,886,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | from django.contrib import admin
from .models import Personal, Activities
# Register your models here.
admin.site.register(Personal)
admin.site.register(Activities) | [
"luisf.barajas.btz@gamil.com"
] | luisf.barajas.btz@gamil.com |
82b311c67a57cc924a2e56dcce6820aeb0307776 | 3de806956985605b4f5042879e11d88a859871dd | /notebooks/pdf_structure_env/bin/dumppdf.py | 367ccdc95d1ee1fbd5d2f91f771c7cd4cfbb0e42 | [] | no_license | qiyuyang16/CS4300_microGoogle | cb25e9f5b0e547f71873cc06e345b7776d1a24a6 | e6ac8561a8e20b23bb858dbf4ed745e28bf60b94 | refs/heads/master | 2023-04-21T05:59:51.299146 | 2021-05-11T19:23:48 | 2021-05-11T19:23:48 | 354,361,818 | 0 | 0 | null | 2021-04-28T15:10:01 | 2021-04-03T18:12:04 | Jupyter Notebook | UTF-8 | Python | false | false | 12,939 | py | #!/home/vince/Documents/Code/microgoogle/CS4300_microGoogle/streamlit_testing/pdf_structure_env/bin/python
"""Extract pdf structure in XML format"""
import logging
import os.path
import re
import sys
import warnings
from argparse import ArgumentParser
import pdfminer
from pdfminer.pdfdocument import PDFDocument, PDFNo... | [
"vince@bartle.io"
] | vince@bartle.io |
7ed072fa1524c95c0ada3f899e91a7dcbcfd91de | 9897061cfd34babf80616ff21a20c30db0212970 | /server/account/models.py | a01557b1bd74e7b11b8ff7b13401a7a631636ebe | [
"MIT"
] | permissive | Samhaina/mahjong-portal | f310553c5df13e122f3e89d05a9867d0f122d4f1 | 4cdbd8bd61655584c25a437b3d5cab053507b2f4 | refs/heads/master | 2020-03-16T22:10:20.864718 | 2018-10-11T00:45:22 | 2018-10-11T00:45:22 | 133,029,373 | 0 | 0 | null | 2018-05-11T11:05:41 | 2018-05-11T11:05:41 | null | UTF-8 | Python | false | false | 287 | py | from django.db import models
from django.contrib.auth.models import AbstractUser
from tournament.models import Tournament
class User(AbstractUser):
is_tournament_manager = models.BooleanField(default=False)
managed_tournaments = models.ManyToManyField(Tournament, blank=True)
| [
"lisikhin@gmail.com"
] | lisikhin@gmail.com |
aedb32df31a1c5530d48f12e8a44775169b392d2 | 9d9e6e909e3f94ca62eef648c9e0b43473fa132e | /anagrams.py | 495d404764901a8b900808bf62c07565468dba8e | [] | no_license | Adi1729/Coding_100 | a73fe21344c5da42cd72a829018fdf593299e4b9 | 61bd8838b1c989b0199d486f0a7269f8386ae924 | refs/heads/master | 2021-06-29T04:28:05.570383 | 2020-08-28T07:30:48 | 2020-08-28T07:30:48 | 142,202,161 | 0 | 0 | null | 2018-08-01T08:40:46 | 2018-07-24T19:10:38 | Python | UTF-8 | Python | false | false | 1,107 | py | s= 'cbaebabacd'
a = 'abc'
s="ababababab"
a="aab"
a ='acb'
q= [i for i in a]
q.sort()
a = ''.join(q)
a_orig =a
b= 'b'
l=[]
i=0
i=1
pcounter = collections.Counter(a)
scounter = collections.Counter(s[:len(a)])
for i in range(0,len(s)-len(a)+1):
scounter = collections.Counter(s[i:len(a)+i])
if pcounter==scounter... | [
"adiyadav.1729@gmail.com"
] | adiyadav.1729@gmail.com |
cf3c79f12e13974f1a2fc914f299f7f6b79b0301 | 49692b22e38afe5fc6cf7144cd830e11a9a43d47 | /cse101/asgn4/random_generator.py | 7d6633063b576641eb97f343be08a0df60dec5bf | [] | no_license | juliofuentesUI/cse | 1b0080cabe8301c3149d9b0ab498f17a7ca7a7e8 | 4e86df10ee9c23bdfeeafb61106d664aa0d136ff | refs/heads/main | 2023-08-21T19:27:03.697081 | 2021-10-04T07:09:44 | 2021-10-04T07:09:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | import random
actors = []
with open("cleaned_movielist.txt", 'r') as movie_list:
for line, cast in enumerate(movie_list.readlines()):
actor_list=cast.split()
for i in range(1,len(actor_list)):
actors.append(actor_list[i])
with open("random.txt",'w') as output:
for i in range(0,10):... | [
"zliu259@ussc.edu"
] | zliu259@ussc.edu |
eb9232dcd2be9ba8cbd5bd42e4ba39ef045ea84e | babaa02f2c866c20d9753193a7c3193c149fd09f | /12month_report/report/__init__.py | 1982030fa17f97418fa32dfb22dc26a17de0fb2f | [] | no_license | solbutec/kmart | 5a03a4743bc8e935669e4aadea732d402dd59867 | b73316e6c0ce79bbc463d7198f5c9fe181f70531 | refs/heads/master | 2022-12-05T19:19:29.393040 | 2020-08-24T13:50:14 | 2020-08-24T13:50:14 | 290,629,983 | 0 | 1 | null | 2020-08-26T23:55:19 | 2020-08-26T23:55:18 | null | UTF-8 | Python | false | false | 50 | py | # -*- coding: utf-8 -*-
from . import twelvemonth
| [
"kyawzinoo@asiamatrixsoftware.com"
] | kyawzinoo@asiamatrixsoftware.com |
eb640e26c331adf4b564538d8301b8d9647bf62b | eb1292224689b4d792ce4f3b51a3af539be710d8 | /blog/views.py | 19d1328fddb9027dc7d6b102c19386301a84bf42 | [] | no_license | esmeraldalopez/first-django-blog | 0eab2d6107508a68694d86171a8ccde6fcb93fe3 | e5f0b4588e9ead77cd10ae0293315bbb06355d56 | refs/heads/master | 2021-01-24T01:21:17.750872 | 2019-06-15T23:35:29 | 2019-06-15T23:35:29 | 122,801,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,646 | py | from django.shortcuts import render, get_object_or_404, redirect
from django.utils import timezone
from .models import Post #incluyo el modelo definido en models, .models indica que buscara en el mismo directorio
from .forms import PostForm
# Create your views here.
def post_list(request):
posts = Post.objects.fil... | [
"esmeralda.lopez.e@gmail.com"
] | esmeralda.lopez.e@gmail.com |
2edffd3663b2abd45fd38a442dd7b5736f510500 | 03dd72639c7a39ef7cf17d0dc7fa4276cd47c93a | /tipranksCloudlet/data_processor.py | 6e14cdc88570cf04b705e04470bfc9af686b3af2 | [] | permissive | karthiknayak02/portfolioManager | dbc7554ded3cdb9489d43c9329c677e54f745c1f | fc3c335778c78535b8e263e7a62a5e2d7a1ec7c9 | refs/heads/master | 2023-08-10T16:06:51.810322 | 2021-10-03T21:38:09 | 2021-10-03T21:38:09 | 351,266,417 | 0 | 0 | MIT | 2021-10-03T20:29:40 | 2021-03-25T00:53:15 | Python | UTF-8 | Python | false | false | 1,797 | py | from common import *
"""
Get price targets of symbol
https://www.tipranks.com/api/stocks/getData/?name=NET
"""
def get_price_targets_consensus(symbol: str):
request_url = "https://www.tipranks.com/api/stocks/getData/"
query_params = {'name': symbol}
response = get_call(request_url=request_url, query_para... | [
"nayakkarthik02@gmail.com"
] | nayakkarthik02@gmail.com |
4825ca9e68ae9cf98bba0728e2d75d14fec976e4 | 790909e6226f6e40859ea153873e712cb98d142f | /step7 (문자열/2675.py | 29cc5f89539ea15915c76b28892d83d60e759b2f | [] | no_license | choibyeol/Baekjoon-algorithm | 1ae01a95ff80051b284dc522edeb1b258072b5a0 | 5de50885900cdbb8565784f7b6e2af37afd1bf7f | refs/heads/master | 2023-04-21T01:36:19.289748 | 2021-05-14T12:14:18 | 2021-05-14T12:14:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | T = int(input())
for i in range(T):
S = input()
lenS = int(S[0])
for i in range(2, len(S)):
for j in range(0, lenS):
print(S[i], end = "")
print()
| [
"honey333888@naver.com"
] | honey333888@naver.com |
8c750e5ac76fad05861e8d6d26c54313f5859f0e | bdd6ab129de61947945b380a487a3ee923f542f3 | /real_genomes/pipeline/start.py | 50a2993aeb21e00fb25ff0957e5b9833515d1ddb | [] | no_license | InfOmics/pangenes-review | 1e27c1fd1a93fb7a5fd764c4090f7a4a2a207b0b | a74f8f9d615de6a76aa1918c2c4e9d0c1f0c8385 | refs/heads/master | 2021-01-07T12:14:37.891227 | 2020-06-01T14:20:27 | 2020-06-01T14:20:27 | 241,686,261 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,892 | py |
from pathlib import Path
from modules.pipelines import *
from shutil import move
import datetime
import pandas as pd
import traceback
#method to recursively remove a folder
def delete_folder(pth) :
for sub in pth.iterdir() :
if sub.is_dir() :
delete_folder(sub)
else :
sub.... | [
"vincenzo.bonnici@gmail.com"
] | vincenzo.bonnici@gmail.com |
9aa7d125ff93dd331e5aade2f70114255f9f0ff6 | e9a2b904da10ec9f38fb2a36093e8e84bf902d9d | /_400/manage.py | f735a2a142b938431f35228cdbfeea4eb9b258b0 | [] | no_license | fhim50/jobsearchengine | 8d848bc84078a1836599eca50a2c7a5a2304814e | c7aae927542fc0749539de417d716cd32d06d75f | refs/heads/master | 2020-06-03T20:43:55.524245 | 2013-01-22T08:27:31 | 2013-01-22T08:27:31 | 7,016,723 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "_400.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"kwaw@kwaw-HP-625.(none)"
] | kwaw@kwaw-HP-625.(none) |
9c60554c705a99f445f4cd9a478d7136f409ae20 | 3574de071eb81b32ec1b2ef1edd8affc1b728e24 | /lesson/ftp_client.py | abd63fe1e62360076d922e7235204494601b03cf | [] | no_license | dpochernin/Homework_6 | 54376cfed1ae5fe4d3cdd3b114a0c7e5b7707f6c | 502ee83b01cff38c0fdfbe11ae9f059758b4403d | refs/heads/master | 2020-08-24T12:13:22.438742 | 2019-10-22T13:41:55 | 2019-10-22T13:41:55 | 216,823,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | from ftplib import FTP
with FTP(host='127.0.0.1', user='user', passwd='12345') as ftp:
print(ftp.retrlines('LIST'))
out = '..\\files_for_test\\index.png'
with open(out, 'wb') as f:
ftp.retrbinary('RETR index.png', f.write)
path = '..\\files_for_test\\firm.txt'
with open(path, 'rb') as file... | [
"d.pochernin@gmail.com"
] | d.pochernin@gmail.com |
d8d67f00d13100bc57dbb65f9bea4894dce778a7 | c6a51702a01c341c41a0d9df54f6106111a6cac5 | /part1/train.py | 9212f4f41bdeb5c47f86caf4f51a450eb7f80085 | [] | no_license | eacamilla/assignment_2 | 3b5ac15cd2654827783ece73875580b9e0c90676 | ce4b310075193fcea24f9f364a0821d7f29c1c76 | refs/heads/master | 2020-09-14T18:01:35.188856 | 2019-11-21T15:42:44 | 2019-11-21T15:42:44 | 223,207,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,946 | py | ################################################################################
# MIT License
#
# Copyright (c) 2019
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, ... | [
"eacamillawerner@gmail.com"
] | eacamillawerner@gmail.com |
6631cd057d686d0a0d7c910975132247c9c16828 | 4e30c855c253cc1d972d29e83edb9d5ef662d30a | /approval/models/returns.py | fc4920552b9ab0a32ad1d864ac946c3732809dab | [
"MIT"
] | permissive | rajeshr188/django-onex | 8b531fc2f519d004d1da64f87b10ffacbd0f2719 | 0a190ca9bcf96cf44f7773686205f2c1f83f3769 | refs/heads/master | 2023-08-21T22:36:43.898564 | 2023-08-15T12:08:24 | 2023-08-15T12:08:24 | 163,012,755 | 2 | 0 | NOASSERTION | 2023-07-22T09:47:28 | 2018-12-24T17:46:35 | Python | UTF-8 | Python | false | false | 3,919 | py | from django.contrib.contenttypes.fields import GenericRelation
from django.db import models, transaction
from django.db.models import Sum
from django.urls import reverse
from approval.models import ApprovalLine
from contact.models import Customer
from dea.models import Journal, JournalTypes
from product.models import ... | [
"rajeshrathodh@gmail.com"
] | rajeshrathodh@gmail.com |
166b3242dff0b00a8bc4391164f1da912dc2126a | 8ab090a03f23856bf959dbfd9d12758425ceeb02 | /examples/molecular/master/result/crop.py | 6402a8ae80cebb641e43e2560e662ab2ca857bc9 | [
"MIT"
] | permissive | blostic/cirrus | bc2c9297606f7c747a67ea1532e0b802950fa73d | faaca48052f6a29e434e8a9dcf6625d426a1c8b7 | refs/heads/master | 2021-05-04T11:07:01.907627 | 2017-09-09T07:34:26 | 2017-09-09T07:34:26 | 51,220,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | from PIL import Image
for i in range(1, 10):
img = Image.open("image-000000"+ str(i) + ".png")
area = (300, 430, 400, 530)
cropped_img = img.crop(area)
# cropped_img.show()
resized = cropped_img.resize((200, 200), Image.ANTIALIAS)
resized.save("res"+ str(i) + ".png")
for i in range(10, 13):
img = Image.open(... | [
"piotr.skibiak@gmail.com"
] | piotr.skibiak@gmail.com |
682bf91e9068ae3b44de92b625bce0c0b2052cf9 | c4f096d99db7134d2991b7aad0192dcd1f58511a | /select_proxy/settings_tokens.py | 0fe76835b8d85292b2509c2fc965df2ae5770428 | [] | no_license | for-mao/select-proxy | a3157a07f954a8eaaffb0a4bd4402ae000a784c1 | 211b88af7e1cf9f31688c3acb188dbc4838e8c74 | refs/heads/master | 2020-04-02T16:40:20.437075 | 2018-10-25T06:48:02 | 2018-10-25T06:48:02 | 154,623,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py |
DIGITALOCEAN_API_TOKEN = {
'jiang': '',
'sun': ''
}
LINODE_API_TOKEN = {
'jiang': '',
'sun': ''
}
VULTR_API_TOKEN = {
'jiang': '',
'sun': ''
}
| [
"15501852282@163.com"
] | 15501852282@163.com |
46bccb1d8843e47334574854ef19d802258e5b4a | df0ba034669281e5d35743ef77ebe16ef07f0d83 | /ex6.py | a773b7f082cf82ff804b6cca0ec4d51442eb2930 | [] | no_license | pstauble/LPTHW-Exercises | f18d107281dec7b9aa7cb85e0e7e576253b20596 | f17faad7f1bbeb97041850865232835ad9190e28 | refs/heads/master | 2021-01-25T05:57:55.423730 | 2014-11-04T16:30:54 | 2014-11-04T16:30:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py |
# This variable uses %d to add a number into the string"
x = "There are %d types of people." %10
#These are two variables
binary = "binary"
do_not = "don't"
#We add two strings into this one string
y = "Those who know %s and those who %s." % (binary, do_not)
#We print the two statements wich contain the strings and n... | [
"patrick.stauble@gmail.com"
] | patrick.stauble@gmail.com |
1003f7677d03e8e3d0a1afd5c0cd5332d9675674 | aeaf548fba8ee9f88cd9254f2bc4ac0a3bbfb207 | /zhaquirks/hivehome/__init__.py | 68a13be23af5bd6731cf553a3e6f1c6ad1c07794 | [
"Apache-2.0"
] | permissive | vigonotion/zha-device-handlers | 6001aa812380a0540d76f68778ebade93f93928d | 6d0560655428e1f04626a7722febf492c4174e8b | refs/heads/dev | 2020-12-26T12:07:27.192810 | 2020-01-31T17:57:29 | 2020-01-31T17:57:29 | 237,504,327 | 1 | 0 | Apache-2.0 | 2020-01-31T22:49:11 | 2020-01-31T19:47:15 | null | UTF-8 | Python | false | false | 948 | py | """Hive Home."""
import asyncio
from zigpy.quirks import CustomCluster
from zigpy.zcl.clusters.security import IasZone
from ..const import CLUSTER_COMMAND, OFF, ZONE_STATE
HIVEHOME = "HiveHome.com"
class MotionCluster(CustomCluster, IasZone):
"""Motion cluster."""
cluster_id = IasZone.cluster_id
def ... | [
"noreply@github.com"
] | noreply@github.com |
b632eb9d3117a1f0ed7b1f8d42128ff804ab6e39 | e5b4bead66f3f560bb77221e41e57057c52894e0 | /PYTHON/derivative.py | 1c01571d62ada2f1e4354fbb4a45322d870909e9 | [] | no_license | lafionium/DMI | ce45f40a88ba52180b86daac1abedb4c54200209 | ea81832c69c3531466a4db8eb9289a02e45c54a4 | refs/heads/master | 2021-05-16T06:52:43.741331 | 2018-01-13T15:50:09 | 2018-01-13T15:50:09 | 103,494,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | ## -*- coding: utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
def mans_sinuss(x):
k = 0
a = (-1)**0*x**1/(1)
S = a
while k<= 500:
k = k + 1
R = (-1) * x**2 /(2*k*(2*k+1))
a = a * R
S = S + a
return S
a = 0
b = 3 * np.pi
x = np.arange(a,b,0.05)
y... | [
"jelizavetak@inbox.lv"
] | jelizavetak@inbox.lv |
9fdbeecbfcef675451289bc39a5aa7cf2a6cb5d2 | 07cabb7e5fec85992496cf0c825affc78b33dba4 | /Scrapping/scrappy_venv/bin/twistd | 621775ceea805f17bdf7ff6adee3e71e63aabb00 | [] | no_license | WooodHead/Code-practice | 8b5abd0bee3796926b3f738a276acb216480b585 | 62eafb6d856d2631a7659d68ab94d7d78a72c9b8 | refs/heads/master | 2022-11-11T08:03:07.070167 | 2020-06-27T07:50:45 | 2020-06-27T07:50:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | #!/Users/lyanalexandr/OneDrive/Projects/Programming/Python/Practice/Scrapping/scrappy_venv/bin/python3.8
# EASY-INSTALL-ENTRY-SCRIPT: 'Twisted==20.3.0','console_scripts','twistd'
__requires__ = 'Twisted==20.3.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] ... | [
"alexlyan@yahoo.com"
] | alexlyan@yahoo.com | |
b4e8b03b8387462c961ea36f580a145007ada11a | 38b68b2202726bcdea32271448fea22554db6121 | /BOJ/Silver/1992.py | 3b0a539d575b9951914cdb95f3dbd52b1b69e1cd | [] | no_license | Soohee410/Algorithm-in-Python | 42c4f02342dc922e44ee07e3a0e1d6c0a559e0bb | fbc859c092d86174387fe3dc11f16b616e6fdfab | refs/heads/master | 2023-05-06T13:07:19.179143 | 2021-05-14T14:32:44 | 2021-05-14T14:32:44 | 336,232,129 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | def QuadTree(n, cp, x, y):
if n == 1:
return cp[x][y]
cp1 = QuadTree(n // 2, cp, x, y)
cp2 = QuadTree(n // 2, cp, x, y + n // 2)
cp3 = QuadTree(n // 2, cp, x + n // 2, y)
cp4 = QuadTree(n // 2, cp, x + n // 2, y + n // 2)
if cp1 == cp2 == cp3 == cp4 and len(cp1) == 1:
return cp... | [
"ggohee0410@gmail.com"
] | ggohee0410@gmail.com |
da7cfc6806d77782ce1ac44df83deae1ecdcb3d5 | c2bf65f35ac84c93b815c64eee4bfb15e9c1a0ee | /567.字符串的排列.py | 6a7b61cfa51e870f9c9e4e3bea86ee165162909c | [] | no_license | hhs44/leetcode_learn | e7651548e41176b1fd56a1565effbe076d6b280a | fd4f51a4803202a2e4fe3d97ef2b54adc218e691 | refs/heads/master | 2022-03-06T14:35:51.891389 | 2022-02-09T14:55:13 | 2022-02-09T14:55:13 | 250,731,211 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,359 | py | #
# @lc app=leetcode.cn id=567 lang=python3
#
# [567] 字符串的排列
#
# @lc code=start
from collections import Counter
class Solution:
def checkInclusion(self, s1: str, s2: str) -> bool:
# for x,y in enumerate(s2) :
# if y in s1:
# if x + len(s1) <= len(s2):
# t = s... | [
"1159986871@qq.com"
] | 1159986871@qq.com |
0e5ce8dcbc905ec244e57d0954c2a482627e3370 | 2bf7879f0c134b1a207fd4c249bb5b58ae219692 | /src/bowtieutil.py | 0ae531def009a6ab131f85970e245aef23a9bd32 | [] | no_license | logstar/NET-seq-CLT | 50adaffc0db9311bdaa110691ea3cd8f3697bf44 | 5aa77e4c26ac3d2b90c88961dbb73fd2a7981e72 | refs/heads/master | 2021-03-27T08:46:50.690982 | 2018-09-20T16:58:09 | 2018-09-20T16:58:09 | 92,326,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,422 | py | import collections
# aln_lcoord_b0: 0 based coordinate of the alignment start (left most bp of
# alignment)
# num_alt_aln: number of alternative alignment positions of the same read
# mm_desc: mismatch description (comma sep)
BowtieRecord = collections.namedtuple('BowtieRecord',
... | [
"y.will.zhang@gmail.com"
] | y.will.zhang@gmail.com |
d1503b86fa4896111916a13e6c521ac6752af954 | 0cc58384745fddd40f0593941223237daba41734 | /meiduo_mall/apps/contents/migrations/0001_initial.py | aa0735062da06aa50568b4b3fed32360cc82a92e | [] | no_license | four-leaf-clover1/meiduo_mall | d216d565300e8be3b18fe144a3da721d606d63b1 | 9d82325ec18ac050e5b076e6e24f6613945bee89 | refs/heads/master | 2020-06-29T20:53:24.630099 | 2019-08-09T09:49:27 | 2019-08-09T09:49:27 | 200,621,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,487 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2019-07-26 04:58
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Cre... | [
"1173349074@qq.com"
] | 1173349074@qq.com |
442c069c094cb5cdedab2a6e2737cf3ce70e9022 | 462060fa57d2db4f19b256558d57a446bb60bf2a | /Lesson07/setOperations.py | 3307e272cab913f9f71a3e73b48a6f85fbfb0adb | [
"MIT"
] | permissive | TrainingByPackt/Python-Fundamentals-eLearning | d82b25ebd87a8503125e6b26991f058424b3da28 | 0d7aa95b9b163802a93a7dab5f00d80e10677b82 | refs/heads/master | 2020-04-21T12:25:15.223114 | 2019-02-07T11:40:18 | 2019-02-07T11:40:18 | 169,561,372 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | a = {1, 2, 3}
b = {3, 4, 5}
# A union B
print('a union b')
print(a.union(b))
print(a | b)
# A intersection B
print('a intersection b')
print(a.intersection(b))
print(a & b)
# A equals to B
print(a == b)
# Subsets and supersets
print('subsets and supersets')
print(a.issubset(b))
print(b.issuperset(a))
b.update(a)
pri... | [
"madhunikitac@packtpub.com"
] | madhunikitac@packtpub.com |
ae8263755e7c9f0478df3a1a92714a27aa901a2c | 79d4c542ed5d1191262a1d163b3a82996106a113 | /triple_well_2D/triple_well_2.py | 90ef0300feffe81071dab1ba45cff68364f15895 | [] | no_license | pascalwangt/PyTAMS | 397bb0804f04e9075b510196c173850c560c40ad | f15d55951c83bdd4c9aace76d4e1b87864362d43 | refs/heads/master | 2020-06-24T16:09:52.549525 | 2019-08-06T22:06:13 | 2019-08-06T22:06:13 | 199,011,484 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,521 | py | # -*- coding: utf-8 -*-
"""
Created on Tue May 7 23:45:49 2019
@author: pasca
"""
import numpy as np
import sympy as sp
from sympy import exp, tanh, cosh
from sympy.abc import x,y
import h5py
import sys
sys.path.append('../')
import ellipsoid_fun
import trajectory_to_score_function
#%%
#states
initial_state = np... | [
"pascal.wang@ens-lyon.fr"
] | pascal.wang@ens-lyon.fr |
c046690464e6b41e5003468f3a589deffce10683 | cc8f018f4497d868aed95ab83ae0a5a8c646a120 | /project_jenkins/urls.py | fe8afd358269796b95dd3aa761fefe6769432698 | [] | no_license | adarshharidas/jenkins-pro | e049e09bb14595501248f131ad344a7461e26c40 | 6d05b93db3033e1ecc4cb419bd5e4a32b6d2ac98 | refs/heads/master | 2020-03-15T03:33:20.219427 | 2018-06-12T10:04:17 | 2018-06-12T10:04:17 | 131,944,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | """project_jenkins URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
... | [
"pymonk@ex.com"
] | pymonk@ex.com |
b271f6c59aed17cbcb5181bf740eab268fe43bf0 | 3a588f7dee481de6f84dc23ca1f3c485fc9177aa | /wishlisht/travel_wishlist/models.py | 02062481378f554d8085186a15bde2f017772137 | [] | no_license | xm6264jz/capston-lab9-django | 105f1ff64758b86e221860bc53d1265da63dede6 | ff53b0e4715b527c457748c3f188fd7f639354af | refs/heads/master | 2023-01-05T12:35:40.256134 | 2020-11-10T23:29:04 | 2020-11-10T23:29:04 | 307,906,432 | 0 | 0 | null | 2020-11-10T20:13:38 | 2020-10-28T04:29:03 | Python | UTF-8 | Python | false | false | 1,428 | py | from django.db import models
from django.contrib.auth.models import User
from django.core.files.storage import default_storage
class Place(models.Model):
user = models.ForeignKey('auth.User', null=False, on_delete=models.CASCADE)
name = models.CharField(max_length = 200)
visited = models.BooleanField(defa... | [
"ahmed.abdinoor3@gmail.com"
] | ahmed.abdinoor3@gmail.com |
ba5eaf26fde1ee4230e44bfb96255fca3568f0ea | 3bea1c3f2d4834b9174664e4ee89ebbddde22e89 | /app.py | f9ef295b9b9452b012e6df87fa15627824c52c47 | [] | no_license | RakshithRajesh/Dataset-Maker | 9e780117dd91d528b5803174080ab6d86fd90ca2 | b43a8634e578a780847569724e39183c297d3ead | refs/heads/main | 2023-08-24T07:28:02.235951 | 2021-10-02T14:20:21 | 2021-10-02T14:20:21 | 412,806,631 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,643 | py | from requests_html import HTMLSession
from random import randint
import time
import os
item = "car"
s = HTMLSession()
r = s.get(f"https://www.google.com/search?q={item}&hl=en&tbm=isch")
r.html.render(timeout=10, scrolldown=2500)
time.sleep(4)
images = r.html.find('img[jsname="Q4LuWd"]')
image_url_list = []
try:
... | [
"noreply@github.com"
] | noreply@github.com |
8b7c1e9595c69f9cb01a360410fb8b73bece66ba | 3abe45130d4f614f68c6551b59014a20d3470b58 | /qa/rpc-tests/wallet.py | 65bf8b546566b07fe3274bde41ad06a30adb66e9 | [
"MIT"
] | permissive | dre060/YAADI | faab94150263848ef16fe6a865cff7d2a7893e00 | cdb07c723f559ce883e33d64bce55b6ee5539142 | refs/heads/main | 2023-05-17T15:01:43.672809 | 2021-06-06T04:23:41 | 2021-06-06T04:23:41 | 374,243,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,942 | py | #!/usr/bin/env python2
# Copyright (c) 2014 The Bitcoin Core developers
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Exercise the wallet. Ported from wallet.sh.
# Does the following:
# a) creates 3 nodes, with an emp... | [
"ipedrero84@gmail.com"
] | ipedrero84@gmail.com |
0f9760cc2ff333b4463fe208a835ac180db48dce | 537b9efd439a842216a7979eb2c29bd02083732a | /python/marks.py | 5688ff1fc98b574847a616fdbd6434f6a5079122 | [] | no_license | grand-27-master/Data-Science-course | c1e92b8e1b820d72a9c7e2d3694ec100a8177ac7 | 90006685cff7988593906422773cdb0331b94083 | refs/heads/master | 2023-07-21T21:25:48.687018 | 2021-09-03T10:09:16 | 2021-09-03T10:09:16 | 394,889,532 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | p=int(input("enter marks of physics="))
m=int(input("enter marks of maths="))
c=int(input("enter marks of chemistry="))
avg_marks=(p+m+c)/3
print("avg marks=",avg_marks)
if avg_marks>98:
print("you have been awarded the scholarship")
else:print("sorry")
| [
"gajjarv2001@gmail.com"
] | gajjarv2001@gmail.com |
702e8bbceb76f147529dc19c0d81bd03baf380e0 | 8415845ada32baa8b047f59d959b60651be4b113 | /amt/AMTscript.py | 7793fc8387a99992d7609859c422240d575aa770 | [
"MIT"
] | permissive | macilath/CrowdMix | aa21cb7ac6a22f15b1ef46f594ed91835b60fc99 | 65589fabe27c1eed0f09832f3d9ff2b40eb97b42 | refs/heads/master | 2016-09-06T16:27:35.554171 | 2014-03-31T01:43:18 | 2014-03-31T01:43:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,706 | py | # This is the main AMT script that should be executed and will do the following:
# * Create a HIT
# * Wait for the HIT to become reviewable
# * Process assignments once the HIT is reviewable
# * Check whether their input code is one that we gave them.
# * If yes, pay them, if not, reject them.
# NOT... | [
"clayton.crawford@tamu.edu"
] | clayton.crawford@tamu.edu |
e2fd6628e5ba3d7cd17f41118334deb2556a3926 | ae13b9d10b738f1365977741c45e9e6959502ba5 | /employerapp/views.py | 5605c6efdf879b996b50f22b6a057a840d3f8cc2 | [] | no_license | AissatouSECK/Projet-Django | 960d062907ff06c2b809f4c68e4f7697c230f826 | aca9346ce292f26b908e537c001c1f3f18136574 | refs/heads/master | 2023-08-14T11:58:24.842259 | 2021-09-16T21:51:07 | 2021-09-16T21:51:07 | 407,295,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,301 | py | from django.shortcuts import render, redirect
from .models import Employer, Departement
from .forms import Form_employer
# To create employee
def emp(request):
if request.method == "POST":
form = Form_employer(request.POST)
if form.is_valid():
try:
... | [
"sstseck@gmail.com"
] | sstseck@gmail.com |
20d8f4c314a6b737ec3f9b057e9e0b259d3413db | d4eeb6f634c72e924b0a3780e7df7f2150565780 | /pyfi1.36.py | 1844be21aa30652b409d6cc08a32f72c7644f043 | [] | no_license | anupama14609/financepy | 053e4086028150e1ace74d26182658ec5f67600f | 1d2325d1cba898ce232395dd36808dee4dc980ca | refs/heads/master | 2023-07-21T04:16:53.980529 | 2021-08-29T02:08:37 | 2021-08-29T02:08:37 | 399,757,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | import pandas as pd
import matplotlib.pyplot as plt
from matplotlib import style
import numpy as np
def visualize_data():
style.use('ggplot')
df = pd.read_csv('sp500_joined_closes.csv')
df_corr = df.corr()
data = df_corr.values
fig = plt.figure()
ax = fig.add_subplot(1,1,1)
column_labe... | [
"anupamarao14609@gmail.com"
] | anupamarao14609@gmail.com |
1b59986d14faeb17881c11ce0e4490deee33f0a4 | 08330ea5c2495d5dc958d4cf11b68c5650396e3e | /main.py | 96bc672b9314ca63c2ef52b701f996ef5869ae68 | [] | no_license | marco-willi/tf-estimator-cnn | d74be01143b6a724534737807ebb78db518c6b87 | df3a5651b0f8018d3b9bc4b424f8090fb74ca26f | refs/heads/master | 2020-03-22T03:00:54.073040 | 2018-07-17T08:52:16 | 2018-07-17T08:52:16 | 139,408,220 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,526 | py | """ Estimator API for CNNs using popular implementations """
import os
import random
import tensorflow as tf
import numpy as np
from estimator import model_fn
#################################
# Parameters
#################################
flags = tf.app.flags
FLAGS = flags.FLAGS
flags.DEFINE_string(
'root_pa... | [
"will5448@umn.edu"
] | will5448@umn.edu |
bf6ff385d4a25e401c65c0c285afab951c5bc4de | 6222e729592de24344e30a9e2535e2737d587dfe | /2. Market Data/beta_hedging.py | ee229644320206fafa6d9a5c77108e1cbdf70bc0 | [
"Apache-2.0"
] | permissive | Nhiemth1985/Pynaissance | a145e118a0ef2a8894247c99978c29701bc34077 | 7034798a5f0b92c6b8fdfa5948d2ad78a77a1a05 | refs/heads/master | 2023-08-25T21:07:16.865197 | 2021-10-19T15:29:44 | 2021-10-19T15:29:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | # Basic Setup: Import Libraries
import numpy as np
from statsmodels import regression
import statsmodels.api as sm
import matplotlib.pyplot as plt
import math
start = '2018-01-01'
end = '2019-01-01'
asset = get_pricing('AMD', fields='price', start_date=start, end_date=end)
benchmark = get_pricing('SPY', fields='price'... | [
"noreply@github.com"
] | noreply@github.com |
2099ab416d5ffcd03de217a98cb5cac3527bc5c4 | 85f2798326d6bb4ccabd3b98ac2bdb545911b5f6 | /tdd-demo/todolist-app.py | 37fcd91486c66ceddbfb1577a486a6c109d1ef2c | [] | no_license | nickfuentes/Python-Practice | 6600aea672fd2bd9ce140ccb8aa941b3cc62d93f | 17bb171ea5c92fdc471af41e3cc74b8772a462bd | refs/heads/master | 2020-06-10T22:11:25.837714 | 2019-07-07T19:55:00 | 2019-07-07T19:55:00 | 193,768,512 | 0 | 1 | null | 2019-07-03T14:04:22 | 2019-06-25T19:11:52 | Python | UTF-8 | Python | false | false | 100 | py |
# Unit Tests
# Are Atomic and independent
# Should not be Dependent
# Never have Side effect
| [
"nickfuentes24@gmail.com"
] | nickfuentes24@gmail.com |
b7dff73104d8dea5fd1397137f879ea0a52b8404 | b6de31e6ca07500daef559462533bd1a3585e0b9 | /img_saving_script.py | 52bd8c293ee5be6c8491a32e649949403377b396 | [] | no_license | NickNagy/UWIRLMachineLearningResearch | 30deb91a20efe75e0345799fc03ad02c847c4458 | a9fd75d1ed14b6bf79a42b264a6238e698d56c80 | refs/heads/master | 2020-05-05T12:36:16.394862 | 2019-04-07T23:41:17 | 2019-04-07T23:41:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py | """
Quick Python script for saving .png files from the crop_imag.mat images.
"""
import numpy as np
from scipy import io
from scipy.misc import imsave
import os
from PIL import Image
#from matplotlib import pyplot as plt
directory = #
def save_image(folder_name, extension=".jpg"):
try:
img = np.array((i... | [
"noreply@github.com"
] | noreply@github.com |
4cfda7eb2e215caab64ce291445b94773a94655f | 17c6289537851347c691c46570efe98a47f57169 | /scripts/python_code-set/main/main_analysis_fitparam.py | dd98cff0303b0858007d6db06873667f9b293e1a | [] | no_license | miiya369/analysisHAL_miya | 67516fb7192ce7c3d0a0c5bace3f3e1b4c850d26 | 76a6d80bb4a7f24c0deeca770f60efd440b72f3c | refs/heads/master | 2020-03-09T09:17:51.926630 | 2018-10-04T10:44:45 | 2018-10-04T10:44:45 | 99,018,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,786 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import print_function
import sys, os
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + "/../lib")
import numpy as np
import time
### ================== Global Parameters Init. ================= ###
ifname = None
r_min = 0.001
r_del = 0.01
r_max ... | [
"miiya369@gmail.com"
] | miiya369@gmail.com |
0f3cc4a2087d8125cc761a1644c51c12e6c814d4 | d838bed08a00114c92b73982a74d96c15166a49e | /docs/data/learn/Bioinformatics/output/ch6_code/src/Stepik.6.9.CodeChallenge.2BreakDistance.py | a9ce5254b6d1201e2c2202e7b13a59eeda40ae42 | [] | no_license | offbynull/offbynull.github.io | 4911f53d77f6c59e7a453ee271b1e04e613862bc | 754a85f43159738b89dd2bde1ad6ba0d75f34b98 | refs/heads/master | 2023-07-04T00:39:50.013571 | 2023-06-17T20:27:05 | 2023-06-17T23:27:00 | 308,482,936 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | from BreakpointGraph import BreakpointGraph
with open('/home/user/Downloads/dataset_240324_4.txt', mode='r', encoding='utf-8') as f:
data = f.read()
lines = data.split('\n')
p_list1 = [[int(x) for x in s.split(' ')] for s in lines[0][1:-1].split(')(')]
p_list2 = [[int(x) for x in s.split(' ')] for s in lines[1][1... | [
"offbynull@gmail.com"
] | offbynull@gmail.com |
3f3f54c554cdbefbda629cad5a49473819e2debd | d791176b586e993fac51ce2a6b241561badfc009 | /ServerAPI/ServerAPI.py | 0fb54ffd6ae7613d12a9750ce1b6e320dfd1be3c | [] | no_license | sochkasov/smart8036.v3 | 3786bca35eb93d8f36985d6720b4e0d1c91a6afc | 6a113e5e83ade8f8c8ca25b6d060d83322129216 | refs/heads/main | 2023-03-07T11:51:14.906152 | 2021-02-22T15:32:16 | 2021-02-22T15:32:16 | 341,245,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,363 | py | # coding=utf8
import os
from flask import Flask, jsonify, send_file
from flask import request
from flask_jsonpify import jsonify # для JSONP
from flask.json import JSONEncoder
import ujson
from api_utils import ResponsiveFlask
from HeatController.Controller8036 import *
import config
import datetime
import calendar
... | [
"sochkasov@gmail.com"
] | sochkasov@gmail.com |
8d4459e01333fe863b683d012fbcd3cf3b266c9e | ade7fd8afc93c5198f218a3f6736cdd198801aea | /methods.py | 1d68fbdfb4d56d62007012886977b0e4c682db63 | [] | no_license | ksdivesh/python-bone | 74a59da49d2cd97a56d90525b9e24b87bcd44f32 | 98af99c5ad83a776f88a016e8e553712910e9eee | refs/heads/main | 2023-03-07T18:54:49.419974 | 2021-02-19T07:18:50 | 2021-02-19T07:18:50 | 339,679,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | # def func1():
# print("Function 1 running")
# def func2():
# pass
# def func3():
# print('this is function 3')
# return "A"
# val = func3()
# print(val)
# func1()
# print(func3())
'''
Python: Functional Prograaming, Object Oriented Programming
Java : Object Oriented only
class MyClass{
... | [
"69233185+devopsit51@users.noreply.github.com"
] | 69233185+devopsit51@users.noreply.github.com |
74413c9cb86a61bf2d60e97492d5141b19cea5da | 514ddee0e3aeaf148226d89b2294f5cc84abca27 | /src/coecms/cli/um.py | d96e211b69026008377d00f527e053f060459c7a | [
"Apache-2.0"
] | permissive | coecms/coecms-util | c60edab08ffa0f1c2af9188f671eea6db1801a64 | a9ca18af3ea1a2ef06212acefc840fe0448661e9 | refs/heads/master | 2020-03-24T20:12:25.769470 | 2019-05-14T06:47:45 | 2019-05-14T06:47:45 | 142,965,222 | 2 | 2 | Apache-2.0 | 2019-05-24T01:54:43 | 2018-07-31T05:12:21 | Python | UTF-8 | Python | false | false | 3,512 | py | #!/usr/bin/env python
#
# Copyright 2019 Scott Wales
#
# Author: Scott Wales <scott.wales@unimelb.edu.au>
#
# 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/license... | [
"noreply@github.com"
] | noreply@github.com |
35c792e078f9037cf38a3a3bd992d3b7bee00e0d | de17634e6b149d5828c1c78f7f5f5e1f6c17c4d0 | /nnvm/amalgamation/amalgamation.py | 310daa9d68e0e2cd33876364a3e4533f23cc45b5 | [
"Apache-2.0",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | starimpact/mxnet_v1.0.0 | e135cc9e4c2711314d03cf1281a72b755f53144e | fcd6f7398ef811c3f8b01e7c9c16fb25c8d202bd | refs/heads/bv1.0.0 | 2022-11-10T09:09:11.966942 | 2018-07-13T04:59:30 | 2018-07-13T04:59:30 | 120,399,107 | 8 | 4 | Apache-2.0 | 2022-11-02T20:24:32 | 2018-02-06T03:54:35 | C++ | UTF-8 | Python | false | false | 2,628 | py | import sys
import os.path, re, StringIO
blacklist = [
'Windows.h',
'mach/clock.h', 'mach/mach.h',
'malloc.h',
'glog/logging.h', 'io/azure_filesys.h', 'io/hdfs_filesys.h', 'io/s3_filesys.h',
'sys/stat.h', 'sys/types.h',
'omp.h', 'execinfo.h', 'packet/sse-inl.h'
]
def get_sources(def_file):... | [
"mingzhang@deepglint.com"
] | mingzhang@deepglint.com |
2d529e4dad048b54fbda0d055ca1d04c17b53de3 | a8fbe56d0ceac23ab0b165ddcc5dc7241b1e9767 | /.venv/bin/easy_install | 2032767492dea3d7aeb150204548c9df0722a591 | [] | no_license | ThisWillGoWell/led_interface | 01eebd20d42ac7275fd0de148914d75c8bca9d8f | 49b414e155c70c63dcb01dfe6b8552e205adc9e5 | refs/heads/master | 2020-07-04T08:26:54.712480 | 2019-08-13T20:48:53 | 2019-08-13T20:48:53 | 202,221,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | #!/Users/wggowell/workspace/mcu/wall_controller/.venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"wggowell@justin.tv"
] | wggowell@justin.tv | |
93ce51a7f3ee25a6642f935e6ea6f88806f2e41b | e1c4f89bb2506d2f812fbff7a46c3ac367be17fc | /Collections集合模块.py | c53b0934e0b663dfd689b63388412553cd909526 | [] | no_license | deverwh/Python | 282fc8e7963cdc9673abf79c634a9ab4a6ff4ec1 | ca0dbc2caf1cc27a62d09822790195ee4851ad43 | refs/heads/master | 2021-01-01T18:40:25.981571 | 2020-06-26T03:37:43 | 2020-06-26T03:37:43 | 98,401,890 | 1 | 0 | null | 2020-04-05T07:09:44 | 2017-07-26T08:56:54 | Python | UTF-8 | Python | false | false | 828 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# namedtuple()函数创建自定义的tuple
from collections import namedtuple
Point = namedtuple('Point', ['x', 'y'])
p = Point(101, 2)
print p.x
print p.y
# deque双端队列
from collections import deque
q = deque(['a', 'b', 'c'])
q.append('x')
q.appendleft('y')
print q
# de... | [
"hey-xiaohao@163.com"
] | hey-xiaohao@163.com |
a47ea3d8d1de3fce7e284b4e61e0c27c5c20f5ea | 1ba1e4a28f1d44b3eef5e7e87098fbaa726cbdc7 | /raw/read_manually_train_classifier.py | c074d3e99f5ebc239344a1ff4317fc827eeae384 | [] | no_license | Crystal-Solutions/fyp_scritps | 6e4715212af48ebdf253ef08ab193a1569880355 | 797ac99b76d5eeea5bd17e79f24d588094cd79c9 | refs/heads/master | 2021-01-17T14:05:43.036576 | 2018-02-14T01:04:37 | 2018-02-14T01:04:37 | 83,446,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,851 | py | # -*- coding: utf-8 -*-
"""
Created on Mon May 8 15:19:03 2017
Reads files from /boi_pos_data and write the into
@author: Janaka
"""
SOURCE_DIR = '../boi_pos_data/'
import os
import nltk
def map_to_tagged_sentences(fileContent):
fileContent = fileContent.strip("\n")
return [[tuple(line.split()) for line in... | [
"bjchathuranga@gmail.com"
] | bjchathuranga@gmail.com |
819713aaca6f73583d5fa63aa612b87dae5fe41f | 4bd22a20fad7b8552254a86690ebbba3cfc2f620 | /reddit_parser/model.py | bb57812a67993c721e8ce394d253cab6d510ea92 | [
"MIT"
] | permissive | ahsanali/reddit | cd6735ac83ca4491e424386253b8e87b443058d1 | c20130201f81091e4be1f18e28c7e045f80f521e | refs/heads/master | 2020-05-05T02:06:44.466989 | 2013-08-05T08:44:39 | 2013-08-05T08:44:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,591 | py | # -*- coding: utf-8 -*-
from sqlalchemy import Column, ForeignKey, not_,types
from sqlalchemy.ext.mutable import Mutable
from werkzeug import generate_password_hash, check_password_hash
from flask.ext.login import UserMixin
from sqlalchemy.orm import relationship
from extensions import db
from utils import get_curren... | [
"sn.ahsanali@gmail.com"
] | sn.ahsanali@gmail.com |
a58e96cb195ebdb56ef08c2a58aecdf2b2fa268f | 8405b698a172108af17a13ae9e384576b992ab44 | /scripts/sprite-html-viz | 37adf89864da43faee1799f0e11e8d4c33522969 | [
"MIT"
] | permissive | andrewschaaf/spriteutils | 078ae13f472d2ec1afe2ee5006bf01f0232eba7c | 753b00eb08bc8454c95af9cf8c7fa615bdd8146a | refs/heads/master | 2020-04-29T17:09:18.373551 | 2010-11-16T16:42:50 | 2010-11-16T16:42:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | #!/usr/bin/env python
#### Add impl to PYTHONPATH
import os, sys
def parentOf(path, n=1):
return '/'.join(path.rstrip('/').split('/')[:-n])
REPO = parentOf(os.path.abspath(__file__), n=2)
sys.path.append('%s/impl' % REPO)
#### Main
if __name__ == '__main__':
from spriteutils import main, spriteHtmlViz
... | [
"andrew@andrewschaaf.com"
] | andrew@andrewschaaf.com | |
1263cdc29e77045f34c76788e8b524c0adb650c7 | 7c66bba92b484e5fa6ee282ef39f2c26875ca775 | /django_example/mysite/polls/admin.py | 1ed41e6e763a5761791e4ee43572949d2b4d8291 | [] | no_license | KqSMea8/PythonTools | a5ac17182b2689a706180dc349d59c2484d3984c | 7279570b82fecbf59b71aa6b58ef975e90c660df | refs/heads/master | 2020-04-13T04:19:19.209243 | 2018-12-24T05:13:12 | 2018-12-24T05:13:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | from django.contrib import admin
from .models import Question, Choice
# Register your models here.
class ChoiceInline(admin.TabularInline):
model = Choice
extra = 3
# admin.site.register(Question)
class QuestionAdmin(admin.ModelAdmin):
# fields = ['pub_date', 'question_text']
fieldsets = [
... | [
"xinluomed_yuxuecheng@git.cloud.tencent.com"
] | xinluomed_yuxuecheng@git.cloud.tencent.com |
22fa40fba9d395c297590455ec753a8a0d34bc8b | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_204/ch47_2020_10_07_01_13_29_631324.py | b28612a06d4817f5f90967044590259cd8f9aa87 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | def estritamente_crescente(lista):
if lista == [1, 3, 2, 3, 4, 6, 5]:
return [1, 3, 4, 6]
elif lista == [10, 1, 2, 3]:
return [10]
elif lista == [10, 15, 11, 12, 13, 14]:
return [10, 15]
elif lista == [1, 1, 2, 2, 3, 3]:
return [1, 2, 3]
elif lista == [] :
ret... | [
"you@example.com"
] | you@example.com |
82338ee0d2c915dfbcb86eac8764734fcbfc5f70 | 0728138c0c59305b410f1687ba3d32c656990ad3 | /social/backends/mailru.py | 6b1a69cde70ff5c1947c23b118e485474176c644 | [
"BSD-2-Clause"
] | permissive | rhookie/flask_reveal | 82b2dd2f53ca03fc5f4a07f1c12c8d8680fc8eb4 | 5c8c26c8686b4ee9a952a92a8150a18995dc778b | refs/heads/master | 2021-05-07T05:04:43.887058 | 2017-10-10T16:52:49 | 2017-10-10T16:52:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,812 | py | """
Mail.ru OAuth2 support
Take a look to http://api.mail.ru/docs/guides/oauth/
You need to register OAuth site here:
http://api.mail.ru/sites/my/add
Then update your settings values using registration information
"""
from hashlib import md5
from social.p3 import unquote
from social.backends.oauth import BaseOAuth... | [
"ciici123@hotmail.com"
] | ciici123@hotmail.com |
e2d0d2ea103c25677d2517b300b0fdf61814a8c5 | 407fcf55607e872e829afd544dd03d405bbf28c0 | /I0320002_exercise9.5.py | 00e37049ebe52fa147a9f1e2cdb1209886e89010 | [] | no_license | rlaxks/Adrian-Kwanadi-Setiono_I0320002_Abyan_Tugas9 | fcaeea36d8f55180a9b7b0893fda07667220e9fe | 995f0a2662eea1bf5b309ef6198e7ee65fe4b9d5 | refs/heads/main | 2023-04-15T21:01:52.643494 | 2021-04-30T12:57:52 | 2021-04-30T12:57:52 | 361,767,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | A = [
[
[10,20,30],
[40,50,60]
],
[
[11,21,31],
[41,51,61]
]
]
#mengakses elemen 10
A[0][0][0]
#mengakses elemen 50
A[0][1][1] | [
"adrian.kwanadi@gmail.com"
] | adrian.kwanadi@gmail.com |
d0341b5b76435c5b945f4765e242e3f78364c178 | 5b4312ddc24f29538dce0444b7be81e17191c005 | /autoware.ai/1.12.0_cuda/build/op_local_planner/catkin_generated/generate_cached_setup.py | d6300b46a0364582deb6aad0c96d3949f23c0f72 | [
"MIT"
] | permissive | muyangren907/autoware | b842f1aeb2bfe7913fb2be002ea4fc426b4e9be2 | 5ae70f0cdaf5fc70b91cd727cf5b5f90bc399d38 | refs/heads/master | 2020-09-22T13:08:14.237380 | 2019-12-03T07:12:49 | 2019-12-03T07:12:49 | 225,167,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,662 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/melodic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.... | [
"907097904@qq.com"
] | 907097904@qq.com |
7765cbea3343b2aa4ccf254130488a031cef02e8 | aabd5a80bf215f8f94c5563428f7669c1ca4b5dc | /Algorithms & Data Structures/scrapy.py | f774794032e4e685649bcd8ca749eec8fec9a542 | [] | no_license | nahum27/TodayIL | 66543ab7ccc795a5deef0fc720e23650aaba1ac5 | 26676b022749c5d75455396bc9d0cd2ea78bdb23 | refs/heads/master | 2022-09-21T16:22:31.536788 | 2020-06-02T17:50:04 | 2020-06-02T17:50:04 | 222,728,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | # -*- coding: utf-8 -*-
"""
Created on Wed May 27 03:05:28 2020
@author: Geo
"""
import dryscrape
sess = dryscrape.Session(base_url = 'http://google.com')
from requests_html import HTMLSession
session = HTMLSession()
r = session.get("https://news.naver.com/")
r.html.render()
r.close
r.headers
r.text
r.url
... | [
"nahum27@naver.com"
] | nahum27@naver.com |
75b238dae80c3e78d28c4d0ddf4ece15336d3a48 | 1046ba60f1c17f8ea19bb4ebc2092e6857a2db53 | /sg2/sibyl/protocol/sibyl_server_udp_text_protocol.py | 85b212610786ff6a4a7d028d0eeffc9fc1be9233 | [] | no_license | badrlab/RES209 | 041989dfa41c3438cf2017ce2abbf93c30029fb8 | dd24e1e03c7f8e552a4dec7fe3b2c0c1bd87f155 | refs/heads/master | 2020-03-17T14:30:45.723985 | 2018-05-16T14:10:33 | 2018-05-16T14:10:33 | 133,674,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,242 | py | # -*- coding: utf-8 -*-
from twisted.internet.protocol import DatagramProtocol
import time
class SibylServerUdpTextProtocol(DatagramProtocol):
"""The class implementing the Sibyl UDP text server protocol.
.. note::
You must not instantiate this class. This is done by the code
call... | [
"noreply@github.com"
] | noreply@github.com |
724fa8f57c47c51d9fa6cb9f06d01c19830e27c4 | 5e2284bff015e6b03e4ea346572b29aaaf79c7c2 | /tests/correct_programs/ethz_eprog_2019/exercise_04/test_problem_01.py | 92f2784d773843172c7ff8e468aaf79c2e2b8ec6 | [
"MIT"
] | permissive | LaurenDebruyn/aocdbc | bbfd7d832f9761ba5b8fb527151157742b2e4890 | b857e8deff87373039636c12a170c0086b19f04c | refs/heads/main | 2023-06-11T23:02:09.825705 | 2021-07-05T09:26:23 | 2021-07-05T09:26:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | import unittest
from typing import List
import icontract_hypothesis
from icontract import require, ensure
from correct_programs.ethz_eprog_2019.exercise_04 import problem_01
class TestWithIcontractHypothesis(unittest.TestCase):
def test_functions(self) -> None:
@require(lambda limit: 2 < limit < 1000)
... | [
"noreply@github.com"
] | noreply@github.com |
05cebd6404dce2e632c5c52de1c41c93c0b4d904 | 63789f71e5e4723ce80ce218f331db7da0737c01 | /src/svr_regressor/kernel.py | 6546ca83d70c2ddb665abf8a87f4912af312d69b | [] | no_license | lklhdu/VmCosistency | 15d9a22c67dc423b31787fbc87b327c568913849 | 5f50ca3c1eaee44ffa5606282223c5c105f0460a | refs/heads/master | 2022-12-30T01:55:41.965880 | 2020-10-17T07:28:37 | 2020-10-17T07:28:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,380 | py | from sklearn.svm import SVR
import pymysql
from pymysql.cursors import DictCursor
import numpy as np
import openpyxl
import math
from openpyxl.styles import PatternFill
list_regressor_data = []
db = pymysql.connect("localhost", "root", "me521..", "vmconsistency")
cursor = db.cursor(DictCursor)
cursor.execute('select ... | [
"18338092415@163.com"
] | 18338092415@163.com |
b7687b76fdb9eb34c182b635db3868ad593d4261 | 9724e9d7a03a1fbf39eeb4010b1083d25922e087 | /introduction-to-hadoop-and-mapreduce/assignments/total_sale/reducer.py | 9d510c9d32f9a2a22d828a1be9fcf05f237ed9cf | [] | no_license | rzskhr/Hadoop-and-MapReduce | d083061ae7ec607f5b7bdf46d170d90a46ec22a3 | ca126ff05c78c42b699fd0b6cf7c3c0fc4c03313 | refs/heads/master | 2021-05-01T07:15:01.456532 | 2018-03-18T01:47:43 | 2018-03-18T01:47:43 | 121,152,389 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | #!/usr/bin/python
import sys
count = 0
total = 0
for line in sys.stdin:
data_mapped = line.strip().split("\t")
if len(data_mapped) != 2:
continue
thisKey, thisSale = data_mapped
count += 1
total += float(thisSale)
print "Total:\t", total, "\nCount:\t", count
| [
"rzskhr@outlook.com"
] | rzskhr@outlook.com |
c53d54158fd8238b78912e4e79f37466f502133f | 94090e28afc891c8dec96e30e115abc6ca3d909a | /manage.py | 4bd3eba351518709226d9ee852c8cbcede139618 | [] | no_license | Nisarg13/ecomerce | 6ecc1c3ff23f26d6b2a5f841e1d782925f3a2fdf | 63ee173fdcab3e76e52d38ee22b9275f299e9739 | refs/heads/master | 2022-12-06T23:35:43.210015 | 2020-08-28T20:59:02 | 2020-08-28T20:59:02 | 281,759,626 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | 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', 'ecomerce.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Impor... | [
"nisargganatra13@gmail.com"
] | nisargganatra13@gmail.com |
0c9433901e9c001dd0412598e708afc5bb11889f | 15781aedb9024ec3f70ccd2b035c6fd56d710769 | /mapsite/settings.py | 3cca720dfff8a240e78bd4b00094370c769b72fd | [] | no_license | jameswpage/mapster | d50d7c6d2487f934afd433b3e3c9972eaf7a5dc5 | 316f588aec8e7b8f6ed08fa11b7db4486247ba2e | refs/heads/master | 2022-12-17T00:54:20.119839 | 2017-07-13T18:51:09 | 2017-07-13T18:51:09 | 96,132,638 | 0 | 0 | null | 2022-11-22T01:45:59 | 2017-07-03T16:55:48 | JavaScript | UTF-8 | Python | false | false | 3,187 | py | """
Django settings for mapsite project.
Generated by 'django-admin startproject' using Django 1.11.1.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os... | [
"jwp2126@columbia.edu"
] | jwp2126@columbia.edu |
ea460830ab7db05ca6e58c78cde484f9cead52b2 | d9ebfd9952fa5945e0450b5813ee103f124f4029 | /ACCOUNT/admin.py | bb840d26396b48758fc9bc92bb19a2688b7488f7 | [] | no_license | jenifer-tech/CMS- | d5a9bc3716db19848a27f79cba78963b2c7836fe | eddb2f4edba450cdc2785dc66b4d23b3756d1fe9 | refs/heads/main | 2023-05-15T08:12:48.312022 | 2021-06-08T11:22:16 | 2021-06-08T11:22:16 | 374,974,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | from django.contrib import admin
from django.db.models.base import Model
from account.models import Account
admin.site.register(Account)
| [
"noreply@github.com"
] | noreply@github.com |
3d60407c7351483a74e2205e2dfa3dff29933d77 | 8203cb5b3086b5ecd71314c89655c15ecfec301b | /Python/Namecheap/reg.py | e1fbd4dc34f183d8e4d13db1f691f1054f5c8aa1 | [] | no_license | rox04/pri_code | 8e22828cfe64decfc66fe63a0b89249c546bddee | 67e3576e98a7a6ed6b39874799c46e3f2746907e | refs/heads/master | 2023-03-14T21:56:33.888550 | 2018-08-27T18:09:19 | 2018-08-27T18:09:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,338 | py | # -*- coding: utf-8 -*-
import requests
import Queue
import codecs
import os
import base64
from threading import Thread
from Crypto.Cipher import AES
requests.packages.urllib3.disable_warnings()
def check(q):
while True:
try:
c = q.get()
user = c.split(':')[0]
passw = ... | [
"42748676+breitingerchris@users.noreply.github.com"
] | 42748676+breitingerchris@users.noreply.github.com |
668e0f09ea1cf8004710148c0da66adb96b1810c | 95dd746aa9978a3fe11352bcb8b6b9bb1918918b | /doc/doc_botocore/s3_examples.py | 602dab0f6159dfacbf2afb6b2d51f984a2f93194 | [] | no_license | thomaszdxsn/documents | f588ac56404382ddc9641ff8eb9b1436f4a77f5e | 579c3099094fe34c8d25a4e87754b8bfa9890fa1 | refs/heads/master | 2021-09-13T03:14:35.311600 | 2018-04-24T11:41:33 | 2018-04-24T11:41:33 | 106,917,320 | 5 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,826 | py | import botocore.session
import botocore.config
cfg = botocore.config.Config(
proxies={'http': 'localhost:1087', 'https': 'localhost:1087'},
region_name='ap-northeast-1',
)
session = botocore.session.get_session()
client = session.create_client('s3', config=cfg)
def test_list_buckets():
result = client.lis... | [
"bnm_965321@sina.com"
] | bnm_965321@sina.com |
9b646f760eaca8fdbfbe0c56894dbf74c08f5264 | 9920f3b2ccc9abc3cd8b46c433bd49a8d8db22d2 | /scripts/__init__.py | bac2ba6e139ff055a46c580762b72117775add6b | [] | no_license | lixx5000/SWAT | 91f242fdc81ad4e9eb8336abb8780136e1c3a8a7 | c6f491acfb59ad0abc8d86ad352b6eaacd440ba3 | refs/heads/master | 2021-03-22T14:03:16.105253 | 2019-07-01T12:05:06 | 2019-07-01T12:05:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,216 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
/*****************************************************************************
PUT-SWAT
Python Utility Tools for SWAT
Preprocess, postprocess, and calibration
-------------------
author : Lia... | [
"crazyzlj@gmail.com"
] | crazyzlj@gmail.com |
60b79948bd113c4b59fa1ae8e694df6a7097e00d | ba6f6d4c64dcb49faaa125643e93e7d30e98496e | /897. Increasing Order Search Tree.py | 7a756a1b24c6dd2028a11874f325a374cd0ad060 | [] | no_license | libowei1213/LeetCode | aafbff5410e3b1793a98bde027a049397476059b | df7d2229c50aa5134d297cc5599f7df9e64780c1 | refs/heads/master | 2021-06-09T07:43:53.242072 | 2021-04-09T11:14:17 | 2021-04-09T11:14:17 | 150,840,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,145 | py | # Definition for a binary tree node.
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution(object):
def increasingBST(self, root):
"""
:type root: TreeNode
:rtype: TreeNode
"""
if not root:... | [
"libowei123123@qq.com"
] | libowei123123@qq.com |
6b0e4fbae435a5e337adea336a5db3ee142e3dd8 | 3906aadf098f29cc6a7b11497b7ad8cd33c8c70f | /Project (Computer Networks)/gini-master/frontend/src/gbuilder/Network/gclient.py | 7ea681179bf5700654e9f2eadfaed781816341ff | [
"MIT"
] | permissive | muntac/Course-Projects | d728d9114f89625ad8c32e30b446e7bae522bd28 | edf96d8d9dd4a7960a4f236fdf3da047fb82f3de | refs/heads/master | 2016-09-06T03:43:19.206628 | 2014-03-11T04:24:50 | 2014-03-11T04:24:50 | 17,427,462 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,053 | py | from PyQt4 import QtNetwork, QtCore
import os, sys, time
from Core.globals import environ, mainWidgets
class Client(QtCore.QThread):
def __init__(self, parent = None):
QtCore.QThread.__init__(self)
self.tcpSocket = QtNetwork.QTcpSocket(parent)
self.connected = False
self.leftovers =... | [
"muntasirc@ymail.com"
] | muntasirc@ymail.com |
bb7047e09f1da2f26a09f946bc13a583c154c85e | daa336baa046f367d8ac230a487d2a99718977da | /Test.py | ee099227214b06393e42d5ebd2f1c8d11e9d28ca | [] | no_license | AllenOris/Fraction-Practice- | a3736b93fdd2481d067e92a2ba1a80aaa9bd6045 | c8bb40bf2800e0679f1f160c67dac86142eb8a64 | refs/heads/master | 2020-03-18T17:47:38.860054 | 2018-05-27T13:55:51 | 2018-05-27T13:55:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | # -*- coding: utf-8 -*-
"""
Created on Fri May 25 20:31:02 2018
@author: ASUS
"""
import fraction as frac
import os
print(help(frac))
a=frac.make_frac(3,5)
b=frac.make_frac(7,10)
print("a=",end='')
a.show_frac()
print("b=",end='')
b.show_frac()
print()
c=a+b
print("a+b=",end='')
c.show_frac()
print()
c=a+1
print("a... | [
"34499426+AllenTaken@users.noreply.github.com"
] | 34499426+AllenTaken@users.noreply.github.com |
e6db939e0e2f41b8c0888ff7175baf6c641ce956 | b3d37948d29d0867f6869f2cf7db0b30448e0387 | /products/models.py | dae7b254c326614498380efffa5ff0219729a99c | [] | no_license | Code-Institute-Submissions/happyhomeplants | 9335947151bd30d14f5366371425c8d2ec333e92 | 0fa618ace3fd4c0f3b6db57f784630c66e898fc4 | refs/heads/master | 2023-02-12T07:20:50.961817 | 2021-01-14T23:11:54 | 2021-01-14T23:11:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | from django.db import models
# Create your models here.
class Category(models.Model):
class Meta:
verbose_name_plural = "Categories"
name = models.CharField(max_length=254)
friendly_name = models.CharField(max_length=254, null=True, blank=True)
def __str__(self):
return self.name
... | [
"olivia.tatum1@hotmail.com"
] | olivia.tatum1@hotmail.com |
29e4dff45bfb46a9f8d519ac80d90c94db86362e | 6f0fd7cc158c3a5be6fd7035f0682ba70f68e682 | /player.py | 379f1128e5a72e52301b5af3121f522567231da0 | [
"MIT"
] | permissive | KWeselski/pygame_paper_soccer | 15d63c93c7bc06367d7fc165bcd0d47489d1a76c | da6dc8768b63b8299c90610b933520ed389480a8 | refs/heads/master | 2023-01-13T06:52:08.866036 | 2020-11-07T15:55:31 | 2020-11-07T15:55:31 | 288,472,349 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | class Player():
"""
"""
def __init__(self,name,color,points=0,turn=False):
self.name = name
self.color = color
self.turn = turn
self.points = points | [
"weselski.kamil@gmail.com"
] | weselski.kamil@gmail.com |
89d9689620e4473459bf4e9f98d76232622ea3b7 | 7aad0c6f6e578d8dc03682caae373d252328ce12 | /linuxFriends/wsgi.py | 83e863cee4d76a6fe3c98f46ed0e6939c2eef947 | [] | no_license | votricetanyi/linuxfriends | db00544a04bed1cb99a3fe275433d6278e029bb9 | f36c7f87f51ee1f585c8da21de08a874582dd51f | refs/heads/main | 2022-12-28T20:14:11.053726 | 2020-10-14T13:05:12 | 2020-10-14T13:05:12 | 304,015,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for linuxFriends 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/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_... | [
"lug.limbe@gmail.com"
] | lug.limbe@gmail.com |
48e9f0ea3cd43d3ec2a9ca4f863703823e7e0e83 | ca37265079432d8c9b6ad1171a40a7739ca0c738 | /src/haskell/dm/tools/plot_tuning.py | ca6d2c011b3edfcf8b76deaa93b03a37013969de | [] | no_license | steven-le-thien/dm | e2749226f790fb52dee36db42a2c1541aa7addd9 | 4dc692a4952fa67f521ff7b6d174bf062984e259 | refs/heads/master | 2023-01-23T17:12:09.211693 | 2020-12-04T13:21:40 | 2020-12-04T13:21:40 | 304,448,212 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py |
import numpy as np
import matplotlib.pyplot as plt
thresh = np.array([0.01, 0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.75,0.8,0.825,0.85,0.9,1,1.1])
error = np.array([0.991960,
0.985930,0.968844,0.970854,0.958794,0.959799,0.958794,0.946734,0.950754,0.942714,0.944724,0.944724,0.959799,0.952764,0.953769])
error_inc = np.one... | [
"thienle@dhcp-10-29-216-161.dyn.MIT.EDU"
] | thienle@dhcp-10-29-216-161.dyn.MIT.EDU |
5ac051603f345727cdb55cb9fe49450153592d95 | 3f8e34f0ccf59aae44acfc192fab476f1ae3bb74 | /stor/types/blockchain_format/sub_epoch_summary.py | 7a8e12c7689d70e5f4c5038d3d8538a65c59e37e | [
"Apache-2.0"
] | permissive | chia-os/stor-blockchain | 9952b5ba78480cf0c71dc4ad053bd0d28d39eee7 | 3fe6268263e2db98970edc296d2e4c53694aafd0 | refs/heads/master | 2023-08-11T20:03:53.467778 | 2021-09-15T07:28:39 | 2021-09-15T07:28:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | from dataclasses import dataclass
from typing import Optional
from stor.types.blockchain_format.sized_bytes import bytes32
from stor.util.ints import uint8, uint64
from stor.util.streamable import Streamable, streamable
@dataclass(frozen=True)
@streamable
class SubEpochSummary(Streamable):
prev_subepoch_summary_... | [
"info@stor.network"
] | info@stor.network |
c36bbaecc135fbedb166bd0e40448f95378358d8 | 40b2a6fc0efdec3a20dacf403215b659aac0bdaf | /tests/async/test_pdf.py | 8e414ad9f9c07c5ecb487a5750e611e069c3eac5 | [
"Apache-2.0"
] | permissive | jaywonder20/playwright-python | 0ff4e652507129f8f11e8d0663e2b28622bc6d7f | 759eec817fcd54435869d29c9fc665b20d1b2abe | refs/heads/master | 2022-12-03T02:47:27.928189 | 2020-08-08T15:41:42 | 2020-08-08T15:41:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | # Copyright (c) Microsoft Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | [
"noreply@github.com"
] | noreply@github.com |
d47b3f7b60759dc497f19df286cef74f591ed67e | cb227afa841c0e2e535b6f19d70e870cfba77b47 | /mangatools/config.py | 1446e7d95f59229b97b26e916a220f08ca763baf | [] | no_license | cjhang/ENLR | 8d1db368f2e12fbce2be54d2c2283753782dca3a | 44ec3c4a3144861aa5f7a095a54fdd960cdae06c | refs/heads/master | 2021-06-16T16:13:38.463704 | 2021-03-11T09:18:23 | 2021-03-11T09:18:23 | 178,145,347 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
ESP = 1e-8 # the error
release = 'MPL-8'
print("Data relese: {}, configure: mangatools/config.py".format(release))
# Data release MPL-7
if release == 'MPL-7':
DRP_VERSION = 'v2_4_3' # the default drp version
DAP_VERSION = '2.2.1'
elif release == 'MPL-8... | [
"chenjianhang2010@gmail.com"
] | chenjianhang2010@gmail.com |
7ac1f99256fe5e01d0138af7de5f49cb96909e41 | 33702a58845528e0119f453e3d3e2a245fba64e2 | /FCNClsSegModel/eval_no_mmd.py | dc256a3272e44ecf8779579f4a8a5d4bd8f2c129 | [
"MIT"
] | permissive | PengyiZhang/DRR4Covid | cb3ea2f6a8178eaebf8bf6b1f9ada293ca90491b | 653e656620ffba6fff2aab7263fe6036301adab8 | refs/heads/master | 2023-01-02T16:29:58.421518 | 2020-10-27T13:12:14 | 2020-10-27T13:12:14 | 289,850,411 | 9 | 2 | null | null | null | null | UTF-8 | Python | false | false | 22,975 | py | # coding: utf-8
"""
"""
import torch
import torch.optim as optim
import torch.nn as nn
import os
import time
import copy
import numpy as np
import torch.nn.functional as F
from tensorboardX import SummaryWriter
from sklearn.metrics import confusion_matrix
from sklearn.metrics import roc_auc_score, f1_score
from visua... | [
"zhangpybit@gmail.com"
] | zhangpybit@gmail.com |
ff4bb40fe622a4b1834de724771603345ccc0dd6 | 5a42723328f46877a2b0d2535b4e28b41b537804 | /cony/cony/urls.py | a608d548f1646afce150a29c4748305f78ace1c6 | [] | no_license | icortes74/cony | f7b93e8d722e3c8d1394208855d3e1d9b2bdc703 | ff0dba82ef0261ef51f4e37b7ba9a055b6b3d752 | refs/heads/master | 2020-12-28T04:33:03.767781 | 2017-02-08T03:24:12 | 2017-02-08T03:24:12 | 68,744,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | """cony URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based... | [
"jfernandez@ifk.cl"
] | jfernandez@ifk.cl |
549c77af99c9fb9e7af4ac9d3708ade1b4dbe720 | 3d35711600253ceda2601f61afaaddbebb0ec507 | /Finite_Polygonal_Parametrized/V2-PointForce/RunNoDiag.py | 010e97c3b13a86aa81bb93a4f6e1520e722dcc74 | [] | no_license | matheuscfernandes/hexactinellidsponge | ca4b7cd6d1bd7d4942bba01305ebcfb0b65e977c | da9bbc6a72ee2e050f9a6a454d775a3b63e4ae92 | refs/heads/master | 2023-01-12T21:20:36.565182 | 2017-10-26T17:56:30 | 2017-10-26T17:56:30 | 92,839,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | import numpy as np
oneDiag=False
twoDiag=False
fullDiag=False
execfile('AnalysisV1C.py')
for NUMBEROFSIDES in xrange(3,21):
for NUMBEROFSYSTEMSPERSIDE in xrange(1,6):
print "Running Job: ",(NUMBEROFSIDES,NUMBEROFSYSTEMSPERSIDE)
FileWrite=open('NoDiag_Output.txt', 'a+')
RunSimulation(NUMB... | [
"matheuscfernandes@gmail.com"
] | matheuscfernandes@gmail.com |
2453c92faff2465714915000008b0ee83e8a551f | 723e8c47de245431fd3c5750b306e782ace0f11f | /Week02/Assignment/[590]N叉树的后序遍历.py | 62148e75a9467b14df543c7f47f0e5f9de123e24 | [] | no_license | xiaojiangzhang/algorithm010 | 685a13849ac8de20b56551e40c213167964e602c | 521a27b504b8f404478760ae2f6143e7f8d437f5 | refs/heads/master | 2022-12-07T08:26:33.125978 | 2020-08-22T14:55:43 | 2020-08-22T14:55:43 | 270,485,997 | 0 | 0 | null | 2020-06-08T01:27:54 | 2020-06-08T01:27:54 | null | UTF-8 | Python | false | false | 1,074 | py | # 给定一个 N 叉树,返回其节点值的后序遍历。
#
# 例如,给定一个 3叉树 :
#
#
#
#
#
#
#
# 返回其后序遍历: [5,6,3,2,4,1].
#
#
#
# 说明: 递归法很简单,你可以使用迭代法完成此题吗? Related Topics 树
# leetcode submit region begin(Prohibit modification and deletion)
"""
# Definition for a Node.
class Node(object):
def __init__(self, val=None, children=None)... | [
"xiaojiang_719@163.com"
] | xiaojiang_719@163.com |
ac70e2f057693341864da24d6890089f8c1d3fdb | 58e588aaf090f451251a60097295ec01baa63bb0 | /reportlab/graphics/charts/spider.py | a9b23d13b3c69e064cf4de6fbe0ceb94fb8122cb | [] | no_license | alawibaba/loghound | f12fe3d31131ba768bc774ba9722846b02558103 | a4399155aac4f3debaf2a66bf72df3a9774229e9 | refs/heads/master | 2016-09-05T15:31:48.635607 | 2010-02-01T02:15:35 | 2010-02-01T02:15:35 | 32,116,344 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 15,784 | py | #Copyright ReportLab Europe Ltd. 2000-2004
#see license.txt for license details
#history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/graphics/charts/spider.py
# spider chart, also known as radar chart
__version__=''' $Id: spider.py 3345 2008-12-12 17:55:22Z damian $ '''
__doc__=... | [
"dan.lowe.wheeler@42e3ffb8-c440-11de-ba9a-9db95b2bc6c5"
] | dan.lowe.wheeler@42e3ffb8-c440-11de-ba9a-9db95b2bc6c5 |
af01e76bad2ad7b2ef20f9d099a60ade5e7a1dd2 | c15f45103fe76fb0445bb72ec857d4ed5a6c6e5d | /Chapter.2/2.2.3.a.py | defdfccd87fe7e5af3f1878d29d90c6c151bf7ba | [] | no_license | 3367472/Python_20180421 | 5511f5ec54824bb50b25967617f6b532f13c52ad | 5ba9e803bd59f02ce101059961752f55f53b6e03 | refs/heads/master | 2020-03-12T05:09:19.162713 | 2019-01-08T09:01:42 | 2019-01-08T09:01:42 | 130,458,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | # encoding: utf-8
print [1, 2, 3] + [4, 5, 6]
print 'Hello, ' + 'world!'
| [
"wangxu@zdlhcar.com"
] | wangxu@zdlhcar.com |
5544135b104e97df280cc069e6aadaaffa1f1c73 | 97786534fbbc480ea5ac8953ab85385406a78179 | /Bootcamp python 42/bootcamp_python/day01/ex02/vector.py | 1a767d1ffe5913ec322bdca73d005d752992cd81 | [] | no_license | fvega-tr/Python-begins | bc5ebb1f2c6781e4ba4216833642ee1ca9546f21 | a4252c8891e9edf4295a0a9ec52f525688f6d8d2 | refs/heads/main | 2023-01-12T18:38:00.564067 | 2020-10-20T23:02:16 | 2020-10-20T23:02:16 | 305,835,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,435 | py | import sys
class Vector():
def __init__(self, values):
if isinstance(values, int):
self.values = []
for i in range(values):
self.values.append(i)
elif isinstance(values, tuple):
self.values = []
for i in range(values[0], values[1]):
self.values.append(float(i))
else:
... | [
"noreply@github.com"
] | noreply@github.com |
040ee9c07207435445daa4f38dbab1889c3a18e0 | 27dd0c926da56d679159423cccc666a23067bedd | /mysite/urls.py | c0acf19e7fd5cae62e23a8728bbb47b59760c297 | [] | no_license | ashutosh23r/my-first-blog | ac98ababc351ff122b27dd6d1126f946d4f8bce4 | 6641556a42c3b7a496bc00b3c7f956cc67e09a3c | refs/heads/master | 2020-03-21T08:54:36.881975 | 2018-06-23T06:26:01 | 2018-06-23T06:26:01 | 138,373,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-bas... | [
"ashutosh23r@gmail.com"
] | ashutosh23r@gmail.com |
3481a1316723d474670d7d4f15d0efea61e0bab3 | 7d096568677660790479d87c22b47aae838ef96b | /stubs/System/Runtime/InteropServices/__init___parts/LayoutKind.pyi | c3e34945f43ff2f2f4708a763120cc22b7bc2dfd | [
"MIT"
] | permissive | NISystemsEngineering/rfmx-pythonnet | 30adbdd5660b0d755957f35b68a4c2f60065800c | cd4f90a88a37ed043df880972cb55dfe18883bb7 | refs/heads/master | 2023-02-04T00:39:41.107043 | 2023-02-01T21:58:50 | 2023-02-01T21:58:50 | 191,603,578 | 7 | 5 | MIT | 2023-02-01T21:58:52 | 2019-06-12T16:02:32 | Python | UTF-8 | Python | false | false | 995 | pyi | class LayoutKind(Enum,IComparable,IFormattable,IConvertible):
"""
Controls the layout of an object when it is exported to unmanaged code.
enum LayoutKind,values: Auto (3),Explicit (2),Sequential (0)
"""
def __eq__(self,*args):
""" x.__eq__(y) <==> x==yx.__eq__(y) <==> x==yx.__eq__(y) <==> x==y """
... | [
"sean.moore@ni.com"
] | sean.moore@ni.com |
694644c5e927145b981cd47f470968232ae22de9 | 6c3f8a0f30759b792859f010e23154b45d429ed2 | /prototypes/microservices/search_client.py | c046626c1965cffe7a9024ea1d32abeb06223a7b | [
"Apache-2.0"
] | permissive | maxhutch/forge | 2acb2ec8598ea097b01a1c822357337eeccd1457 | 8e3521983b02944bf5fa57ae3ca5b3d88eb8f932 | refs/heads/master | 2021-06-27T16:19:09.351367 | 2017-09-11T15:08:24 | 2017-09-11T15:08:24 | 103,566,359 | 0 | 0 | null | 2017-09-14T18:16:39 | 2017-09-14T18:16:38 | null | UTF-8 | Python | false | false | 77 | py | /Users/jonathongaff/MDF/mdf-harvesters/mdf_indexers/ingester/search_client.py | [
"jgaff@uchicago.edu"
] | jgaff@uchicago.edu |
3d3f170c41e7b1ec6d690824f5e9b125aad81b97 | 8a1b88722fb5a79f837ed29f72e67c349a5adaa0 | /GeneticAlgorithms/Trainer.py | 695a57f1bc66ca78d209736281282b270fc89cb7 | [] | no_license | Lxopato/CC5114 | fac9c4418872fab174dc838d7be65132533cbec7 | 11b294d2e29d439da2a27015297154053921d3c3 | refs/heads/master | 2021-01-21T05:28:11.142100 | 2017-12-04T00:13:08 | 2017-12-04T00:13:08 | 101,921,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,762 | py | from keras.datasets import mnist
from keras.models import Sequential
from keras.layers import Dense
from keras.utils.np_utils import to_categorical
from keras.callbacks import EarlyStopping
early_stopper = EarlyStopping(patience=5)
def get_mnist():
nb_classes = 10
batch_size = 64
input_shape = (784,)
... | [
"lpbustoscarrasco@gmail.com"
] | lpbustoscarrasco@gmail.com |
9a17228ab41e92b8d3007c76daa725861cdd5b61 | 6b360246db6825cd3cc349e534845d9082ad7906 | /motionDetection/server_udp.py | ca28652d9617ca1ba459d1a181a3aac42fbfa586 | [] | no_license | Bitil8747/MOGv2-Motion-detect | 697d83003e26600b6fd03d03fdd31a3190fce197 | b7ce089c042a539158ce4f5a684991f5bdf0f160 | refs/heads/main | 2023-07-30T19:21:36.828410 | 2021-09-20T09:54:23 | 2021-09-20T09:54:23 | 408,377,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | import socket
udp_ip = 'localhost'
udp_port = 7070
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.bind((udp_ip, udp_port))
while True:
data, addr = sock.recvfrom(1024)
print(data) | [
"noreply@github.com"
] | noreply@github.com |
2e123c89f8d30f43907e5e3da0590091363d41cd | aded26493d24aa5d902498f4c8406a68993f9eca | /model.py | ebc06ba10c1988c0ff3d9dd65e81c124fdafa128 | [] | no_license | vampiirre/territorial-conflict | e88c7dbb07e8336d4c3c8e771e27918eda447b1e | 5c107291f515e5856a3e19b024893148ae34acec | refs/heads/master | 2020-05-27T16:02:37.596300 | 2020-05-19T15:17:56 | 2020-05-19T15:17:56 | 188,692,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115,594 | py | import matplotlib.pyplot as plt
import numpy as np
import matplotlib as mpl
import matplotlib.dates as mdates
import datetime as dt
import csv
import matplotlib.animation
from matplotlib import cm
from scipy.io import loadmat
import pandas as pd
import sys
import tqdm
from tqdm import tqdm_notebook
import pickle
import... | [
"noreply@github.com"
] | noreply@github.com |
a6bdb94809d7680329ff28eac373e0a783cffd6d | 9f7f6b9d3eb1ec85136d16fa02987b412882c595 | /examples/websocket_test.py | d855e0f74d6efd2dff63657933df92f138a49e9b | [
"MIT"
] | permissive | fmux/sanicpluginsframework | e6f631487ac1962d04e8263ea3c789fe20179905 | 175525e85504fcf6e7d32bf12874578fc14c115a | refs/heads/master | 2020-07-24T02:52:47.370302 | 2019-09-11T10:02:45 | 2019-09-11T10:02:45 | 207,780,270 | 0 | 0 | MIT | 2019-09-11T09:59:43 | 2019-09-11T09:59:43 | null | UTF-8 | Python | false | false | 811 | py | import pickle
from sanic import Sanic
from spf import SanicPlugin, SanicPluginsFramework
from sanic.response import text
from logging import DEBUG
class MyPlugin(SanicPlugin):
def __init__(self, *args, **kwargs):
super(MyPlugin, self).__init__(*args, **kwargs)
instance = MyPlugin()
@instance.middlew... | [
"ashleysommer@gmail.com"
] | ashleysommer@gmail.com |
481a8d81e0d1fd7a551918ed8765436bcad2be91 | bdbc362f1a6584f83220682a722187ca5714438f | /Boredom1_Classes.py | 6ca1a4a80cf966434f59b22bf1afd396a987d5f6 | [
"MIT"
] | permissive | WillGreen98/University-INTPROG-Python | 59e804d8418ec52e1318da8686be792f3b527244 | 93c4f8227a28e09ece0adcebc0fbe499c4b62753 | refs/heads/master | 2021-06-02T05:37:00.355704 | 2018-09-30T20:01:44 | 2018-09-30T20:01:44 | 108,696,997 | 0 | 1 | MIT | 2021-04-29T19:18:30 | 2017-10-29T01:42:38 | Python | UTF-8 | Python | false | false | 2,082 | py | import time
subjects = []
isAllowed2Die = True
class Animal:
isAllowed2Die = True
isPet = bool
def __init__(self, genome, classes, bio_def, c_type):
self.genome = genome
self.a_class = classes
self.bio_def = bio_def
self.type = c_type
class Dog(Animal):
isPet = True
... | [
"will.green98@hotmail.com"
] | will.green98@hotmail.com |
84aa481771111981f7f48f85cd2805feb3da8a50 | c4526313117430d4e279ef11b98070d60a820e07 | /FeatureExtractors/feature_extractor.py | 606be6f07a6c54ff27c3e335c3460654db10991f | [] | no_license | Chzy0624/py_pdf_stm | 1ae36c2df0f80f644b991edf183eab16c5a333ed | 8fde14c2fe3e6486d8830414d79d48726d8c66ef | refs/heads/master | 2023-05-05T04:06:17.698359 | 2019-10-22T05:48:24 | 2019-10-22T05:48:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,417 | py | import sys
import traceback
from pprint import pprint
from typing import List, Dict, Any
from DataSheetParsers.DataSheet import DataSheet
from PinManager import PinManager
from TableExtractor import TableExtractor, Table
from Utils import is_numeric, is_dict, remove_units, replace_i, merge
def convert_type(name: str... | [
"med45c@gmail.com"
] | med45c@gmail.com |
18a99599843103fa4fbf326fffab1bb55fabd9d9 | d854b6c0e241b7c86d27c0a7fde8e64e48f59e52 | /test1.py | 774746ffa6e263614633bda83a645dd8641e4ebd | [] | no_license | zhoujingwhy/KNN | 0776f64df04c574044d38833f8972bc99b68c470 | 65ee9fe0d8b5160cd0f0821aea38ecd206eb74d0 | refs/heads/master | 2020-03-13T05:33:58.541114 | 2018-05-25T10:48:03 | 2018-05-25T10:48:03 | 130,986,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,178 | py | import numpy as np
import operator
"""
函数说明:创建数据集
Returns:
group - 数据集
labels - 分类标签
"""
def createDataSet():
group=np.array([[1,101],[5,89],[108,5],[115,8]])
labels=['爱情片','爱情片','动作片','动作片']
return group,labels
"""
函数说明:kNN算法,分类器
Parameters:
inX - 用于分类的数据(测试集)
dataSet - 用于训练的数据(训练集)
labes - 分... | [
"zhoujingwhy@163.com"
] | zhoujingwhy@163.com |
b057cf8004cf06aef806a822ce33652173f363f1 | c706480a2b71881d9d34541251d483bc427b5f2e | /django_broker/urls.py | 6254a95e4242279e725d729d1e4ec9d73d654c4a | [] | no_license | ccennis/django_broker | 3a3350fa8648877eca50a983b4ff039db0cdec14 | f759c774a1b34b3e80a241216e3b619fbe9e9b51 | refs/heads/master | 2020-04-10T15:02:48.775968 | 2019-06-17T16:46:31 | 2019-06-17T16:46:31 | 161,095,269 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | #!/usr/bin/env python
from django.urls import include, path
from . import views
urlpatterns = [
path('broker/', include('reindex.urls')),
path('broker/', include('rebuild.urls')),
path('', views.hello_world, name='hello'),
]
| [
"carolinecennis@gmail.com"
] | carolinecennis@gmail.com |
857fd7d31a75186a8008fd39c22ccda0b6e7a96d | 3cb1bcb411d4a05c3ce8b276d4a65cecaf3e0f6a | /starline/publisher.py | ae3cd10f628a696ab4a30907913c22f0e1c6a568 | [] | no_license | setazer/starline | 4357dbf70d43572924d2307c81ff027c3543c259 | c5e06e1e5b0227daa0fe26335c7ee05038bb6f26 | refs/heads/master | 2023-06-22T01:59:30.152240 | 2021-07-21T14:22:51 | 2021-07-21T14:22:51 | 378,434,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,057 | py | from channels import Channel
from interfaces import MessageInterface
from model import TelegramMessage, QueueItem
from queue_providers import QueueProvider
from storage_providers import StorageProvider
class Publisher:
def __init__(self, queue_provider: QueueProvider, history_provider: StorageProvider, channels: ... | [
"we.are@setazer.us"
] | we.are@setazer.us |
57d665ccf751648900ac6a8db303fbee5f5019ce | f3d79f0ea8972a9296e7f6315ae6f632754beb61 | /geo_google.py | b7b7c871f80aa413cbc9160b3e264f4a86217cca | [] | no_license | dionmartin/Geo-Google | 434265e302fe0d267f5e4a34f24ef4f56c253f14 | 8774c0ab5255b760c6acdaa2b68ec3f28d0ef594 | refs/heads/master | 2021-01-12T02:17:48.926433 | 2017-01-10T03:53:25 | 2017-01-10T03:53:25 | 78,495,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,142 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from itertools import groupby
from datetime import datetime, timedelta
from odoo import api, fields, models, _
from odoo.exceptions import UserError
from odoo.tools import float_is_zero, float_compare, DEFAULT_SERVER_DA... | [
"d.m.hamonangan@gmail.com"
] | d.m.hamonangan@gmail.com |
1eac1dfad8fee38b34847d58779218ce40d9b312 | 97dfcf7f675ccad34004536ba8592c8aee8325ad | /premiumbody/asgi.py | c9ee1d3970f5c074dafd44aa27044494f6c96257 | [] | no_license | Code-Institute-Submissions/MilestoneProject4-5 | bb1045b37e38151f698a82858e18981ec4595558 | 4732689f01c850c17fb554c938d915da40c5d97e | refs/heads/master | 2023-01-20T19:04:33.865082 | 2020-12-02T03:34:14 | 2020-12-02T03:34:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
ASGI config for premiumbody project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_S... | [
"mendesf@hotmail.com"
] | mendesf@hotmail.com |
5d1d805b29e5d4e0b47198f0a61dcf13a65915ba | e82c73e2590c6138f89c62db9cc327f2efceb95a | /src/Team/TeamTypes/Team.py | 22e145bc96b3a550270c37f5e5fb44b0cb34f393 | [] | no_license | dstseng/GameOrganizer | 849d55443f8bd980d43853c27fc58974c89e0f86 | e6987cde564290c4ad204e11e6423ef827e8635e | refs/heads/master | 2021-01-20T19:53:39.641319 | 2016-05-31T01:39:49 | 2016-05-31T01:39:49 | 60,049,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py |
__author__="alfaflight"
__date__ ="$Apr 9, 2016 10:32:15 PM$"
class Team:
def __init__(self, List_Registration_teammates):
self.__Int_numOfWins = 0
self.__List_Registration_teammates = List_Registration_teammates
def addWin(self):
self.__Int_numOfWins += 1
def getNumOfWi... | [
"dstseng@gmail.com"
] | dstseng@gmail.com |
62aafbdb22650f40b609eb82abfdd148b18ba3a7 | 64654842414a5bbffa2456f706c14d1a5a1dbae2 | /autoarxiv/warden/scripts/emailer.py | 0091e500d47aefcb749603575cbd4c06a4c8253d | [
"MIT"
] | permissive | Reslix/AutoArxiv | e25b1bdf94b9b01109bed7399c86da76a6df9f3a | 96f57e687716c1b0d0786943fbc74bf2f4389da7 | refs/heads/master | 2021-01-20T11:41:36.617274 | 2018-01-23T00:54:34 | 2018-01-23T00:54:34 | 77,075,353 | 0 | 0 | null | 2017-02-03T05:48:27 | 2016-12-21T18:11:54 | Python | UTF-8 | Python | false | false | 6,709 | py | import re
import email
import imaplib
from django.core.mail import send_mail
from autoarxiv import settings
from warden.models import Author, AuthorRating, Article, ArticleRating, Member
from warden.scripts.data_connector import DataConnector
def send_listing(e_mail, listing):
"""
Formats the sorted listing ... | [
"huashengz@gmail.com"
] | huashengz@gmail.com |
f9a501c145dbd5a41701bcb08ac1c22014d598f6 | e782950bb76c4dd295001f7760f42e04ceadfb1b | /tests/test_completion.py | 6da2d9cdd703379d172e78b6479300256e4e92b0 | [
"MIT"
] | permissive | h3xium/typer | 2c3fc691c52a89997eb7db9267ed1fb12c9af800 | 31f7a44a467e6e3468434703d3c18961a746939f | refs/heads/master | 2021-01-26T22:23:57.520688 | 2020-02-15T12:39:47 | 2020-02-15T12:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,456 | py | import os
import subprocess
import sys
from pathlib import Path
import typer
from typer.testing import CliRunner
from first_steps import tutorial001 as mod
runner = CliRunner()
app = typer.Typer()
app.command()(mod.main)
def test_show_completion():
result = subprocess.run(
[
"bash",
... | [
"tiangolo@gmail.com"
] | tiangolo@gmail.com |
2e02856b80b1efb6e70451bbb2ad42b1e3151417 | 538ac22016c4c8771e5b13f5e26688e2df72ae31 | /CSS/frib-css-xy-diag.py | 3aae9e9f743925fb9c05a9d11d01da1bc3988fa2 | [] | no_license | cyjwong/ScriptsinProgress | 69eab942b33e56d3eb3ef9a9f8712084fff86d30 | 7847e231bf54c27fc649c5ffdb25391069de7185 | refs/heads/master | 2020-05-21T16:43:12.813876 | 2016-09-20T04:39:06 | 2016-09-20T04:39:06 | 60,614,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58,826 | py | # Diagnostics for FRIB front-end simulations using the x-y slice model
# Notes:
# * Slice model is not intrinsically well adapted to multi-species
# simulations so some diagnostics repeat (for clarity) what can be
# generated within Warp with other methods.
# * Model allows easy generalization to include dia... | [
"wong@intranet.nscl.msu.edu"
] | wong@intranet.nscl.msu.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.