blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6cd613bcdd91d3c252c77c5671f432f525d64cfc | bee2af5228232ce94f418b61810cecd93af62615 | /virtual/bin/django-admin.py | d6b83b56c12b4e16e7f24824f482b665a071f57a | [] | no_license | thuitafaith/djangoapp | b64c2e1a05c67b1135d4d9dd7975c17522238a69 | e06280b34a7b1ec012d0baab6f0fb153875a39b4 | refs/heads/master | 2022-12-11T19:06:08.540528 | 2019-08-29T12:36:45 | 2019-08-29T12:36:45 | 203,321,071 | 0 | 0 | null | 2022-11-22T04:13:07 | 2019-08-20T07:15:28 | Python | UTF-8 | Python | false | false | 158 | py | #!/home/faith/Desktop/django-rem/virtual/bin/python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"thuitamuthoni15@gmail.com"
] | thuitamuthoni15@gmail.com |
f9fafc94333b9b7d1a9ab84303e4f749d556117c | bfa6ce49304009fd079b23d33839561ed53e76da | /CSC-121-Python/Module2/New folder/OrengoAnthony_game_functions.py | 17de24ec0b476507f8555dafd38ad8ab6d87dcd8 | [] | no_license | orengoa0459/CSC-121 | 89df696ac6c56f0508234f89aedd20a3c00dce2c | 026f3f5843ca9deb1ad28e1ad27943302a4d7427 | refs/heads/main | 2023-06-11T22:00:36.845210 | 2021-06-27T22:13:14 | 2021-06-27T22:13:14 | 372,833,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,351 | py | # The rockPaperScissors function receives numbers representing the
# computer and player's choices.
# It returns 0 if there is a tie, 1 if the computer won, 2 if the
# player won, or 3 if the player made an invalid choice.
# Global constants
COMPUTER_WINS = 1
PLAYER_WINS = 2
TIE = 0
INVALID = 3
ROCK = 1
PAPER = 2
SCI... | [
"48802353+orengoa0459@users.noreply.github.com"
] | 48802353+orengoa0459@users.noreply.github.com |
a3b2ff7c0ac1c3c0e55ab2b80b3a651100768d81 | 90bb32b3156232973012185896edb5899a5716c8 | /cal/migrations/0001_initial.py | 1efff23d2ab5b2b6d015cc44b05fcd6a75102041 | [] | no_license | odedahay/django-calendar-app | a68c4e8a3072422f811a41d2562006be911e2fd9 | b9daad72be7ebbb1827c5aa8facae3d7e4d68395 | refs/heads/master | 2022-04-13T14:51:32.021441 | 2020-04-12T10:42:43 | 2020-04-12T10:42:43 | 255,060,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | # Generated by Django 3.0.5 on 2020-04-12 04:53
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Event',
fields=[
('id', models.AutoField(au... | [
"odedahay@yahoo.com"
] | odedahay@yahoo.com |
f3467f1043b80a0ea9337c61aa83eb37180e440c | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_2/mphnok005/question3.py | 8ab32014734be33c45000ec60015c87758483dae | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | from math import*
x=sqrt(2)
a=2
pi=2*(a/x)
while x<2:
x=(sqrt(2+x))
pi=(pi*a/x)
print("Approximation of pi:",round(pi,3))
c=eval(input("Enter the radius:\n"))
print("Area:",round(c**2*pi,3)) | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
3da3e17495525b485fd627a5d52d55b261e728ec | 8d50cc4f37c153fcb51de4501f3fa50c00394d9b | /test/benchmark/resnet_tl_benchmark.py | 0273e724c53f6d0c0598924637c84431b5b3fe0c | [
"MIT"
] | permissive | liujuanLT/InsightFace_TF | dbd239dfdda1866c348e82211932884f73cb3067 | 257b6e0dcf7e7c3523dc7e1c08ba529fab1bf75b | refs/heads/master | 2022-04-27T21:24:01.458277 | 2022-03-17T12:28:15 | 2022-03-17T12:28:15 | 463,040,192 | 0 | 0 | MIT | 2022-02-24T06:51:16 | 2022-02-24T06:51:15 | null | UTF-8 | Python | false | false | 1,255 | py | import tensorflow as tf
import tensorflow.contrib.slim.nets as nets
import numpy as np
from nets.resnet import get_resnet
slim = tf.contrib.slim
resnet = nets.resnet_v1
if __name__ == '__main__':
output_shape = 85164
batch_size = 128
image = tf.placeholder(name='input_x', shape=[None, 224, 224, 3], dtype... | [
"auroua@yeah.net"
] | auroua@yeah.net |
ad90603cf859e61bf494044b900c7e253b975437 | 7ae423b21e39bc12b33566826ca8b27475a89e40 | /spider_JDMeizitu.py | f3c9a215f25168acf884884ae610ef3d46c2d34a | [] | no_license | Joeliqq/PythonSpider | d28a3fd3d337f55a328cea57954c8ade5d6b01ad | afc1a3ef312a269b5efec18c363dd21649598d20 | refs/heads/master | 2021-05-04T10:02:15.913070 | 2018-01-31T00:45:51 | 2018-01-31T00:45:51 | 48,534,424 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,747 | py | # coding:utf-8
import urllib2
import random
import os
from bs4 import BeautifulSoup
def getSoup(url):
req = urllib2.Request(url)
req.add_header('User-Agent', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.124 Safari/537.36')
html = urllib2.urlopen(req).read(... | [
"joe.study.work@gmail.com"
] | joe.study.work@gmail.com |
fb08e0f0d2390feae8987bf4b8d691e996af235a | dd1ce317b6016ec1a86e913c4c227f803ec3e15f | /k11/digger/middlewares.py | 27df64bac097a61280a4f6978051370ebbf0ed26 | [] | no_license | JaisPiyush/k11 | 3933b7f9b542ff935e1c52a17129000a8b7c95b7 | 312ae1c6bb4ebc6fcb6581fcd4eb2e15846ce7f8 | refs/heads/main | 2023-08-05T01:56:30.355775 | 2021-10-08T05:21:09 | 2021-10-08T05:21:09 | 359,769,657 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,648 | py | # Define here the models for your spider middleware
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
# useful for handling different item types with a single interface
from itemadapter import is_item, ItemAdapter
class DiggerSpiderMiddleware:
... | [
"iampiyushjaiswal103@gmail.com"
] | iampiyushjaiswal103@gmail.com |
042e3b16684fe9c630da6b06a670a60326e24702 | a63e53db61ef8a4596089eb3af99a94b128ce716 | /util/alemutdf.py | 7a5f495486dd37942f5cd7aa88f8e15e65724f49 | [
"MIT"
] | permissive | Aletechdev/ava | 6737214a99846e16b1cf51b4519b3651e000ee6a | fea1f382229c46f83b76ffbce32bf00ff05a37b9 | refs/heads/master | 2022-10-25T07:16:40.338415 | 2021-07-16T02:14:22 | 2021-07-16T02:14:22 | 231,140,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,513 | py | import os
import os.path
import pandas as pd
import numpy as np
from tqdm import tqdm
import os, sys
module_path = os.path.abspath(os.path.join('..'))
if module_path not in sys.path:
sys.path.append(module_path)
from util.mut import get_del_size, get_ins_size, get_inv_size, get_con_size, get_sub_size, get_amp_size... | [
"pphaneuf@eng.ucsd.edu"
] | pphaneuf@eng.ucsd.edu |
65bb9e2842ec5aad1bd2c89bf069d156d746157c | bf91f844d0890f072208acbeb6bd78aa719d1533 | /venv/Scripts/pyhtmlizer-script.py | 9f1758ed305565d5482f2744e4b243ca70a5473d | [] | no_license | jiaohongtao/python_util | 33b7b91405dd02e4318f59e9bafe60edc268c4dc | 4baad933d4fbb0fc1919322143a53aec0cebd824 | refs/heads/master | 2023-02-16T19:57:01.431806 | 2021-01-14T06:53:08 | 2021-01-14T06:53:08 | 235,258,883 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | #!E:\Projects\PycharmProjects\python_util\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'Twisted==19.10.0','console_scripts','pyhtmlizer'
__requires__ = 'Twisted==19.10.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?... | [
"jiaohongtao@beyondcent.com"
] | jiaohongtao@beyondcent.com |
2fcdb0d6b42b464448075d478508767377ecbf00 | e38cdd027c9809c182765d1920d5bf8686c7015a | /Galtron-master/settings.py | 04f7aa789313617aed1e1a765f5b2045512897cb | [] | no_license | Moongss/Kookmin_OSS_2017 | 2c7f4f636fa1fdc5bf68de7792bf349a43d5fc39 | 8e83f2770610cc3260813c4f8cff5af946a0cbaf | refs/heads/master | 2021-01-01T20:38:33.429672 | 2017-07-31T15:58:45 | 2017-07-31T15:58:45 | 98,905,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | import pygame as pg
from pygame.transform import *
class Settings():
"""A class to store all settings for game"""
def __init__(self):
"""Initialize the class"""
self.windowCaption = 'MOONGS INVADER'
self.screenWidth = 1280
self.screenHeight = 720
self.bgColor = (20, 20, 20)
img = pg.image.load('gfx/back... | [
"min@adminui-Mac-Pro.local"
] | min@adminui-Mac-Pro.local |
51d5ae1fa2d5ae73a65d826bd1113e9b57cef767 | 03383b657ad6d526e7e6aa6639fe41019cd39ea2 | /recursion/palandrome.py | 985c2d63e7528bf16d0978634606988d462fbf30 | [] | no_license | ahmedmeshref/Leetcode-Solutions | 1c5f908cb2f6487c9dfadcc8f91192dedbb5a17e | 28f848cb25e4aa22e6d8c9d715488f191ed15137 | refs/heads/main | 2023-05-26T14:33:11.246122 | 2021-06-07T21:32:13 | 2021-06-07T21:32:13 | 356,045,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | def isPalindrome(s: str) -> bool:
l = 0
r = len(s) - 1
while l != r:
if not s[l].isalpha():
l += 1
elif not s[r].isalpha():
r -= 1
elif s[l].lower() != s[r].lower():
return False
else:
l += 1
r -= 1
... | [
"a.meshref@alustudent.com"
] | a.meshref@alustudent.com |
2307b6a1bef1cb4612e3ecc93f7bd664bb61386c | 522c2645e1b14727279b417c4e6de16e0248406b | /Livrables/ExtractJson.py | dea1eccd47b7406340421cbe1d6b0cba442a2ef1 | [] | no_license | jerem33620/P5_Pur_Beurre_OC | 532757abd66484398f0389abcd53e647e2a45327 | decc9a341e8f2659cdc9769a9a16659023e0a3a4 | refs/heads/master | 2020-04-23T02:23:14.508665 | 2019-02-19T14:53:23 | 2019-02-19T14:53:23 | 170,844,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,998 | py | #! /usr/bin/env python3
# coding: utf-8
class ExtractFromJson:
""" Permet de recupérer les données brut dans le json
rendu par l'API et de lancer l'initialisation du json """
def __init__(self, json_data):
""" Pour chaque produit enregistré dans la DB, j'aurais besoin de :
id, pro... | [
"jeremyguy@orange.fr"
] | jeremyguy@orange.fr |
ebcd6ed252031397cde74ec58dfbe8518d89830a | 835722d5632969c3857506eed7a8a5b678419190 | /wechatHeadImg.py | 81f9d83c78c4493b7d74797d1dba6d330ce7559f | [] | no_license | Derrick-Wang/wechatFriend | 176451cc83a90112fae107ab84170b0059b68dd9 | 9905ed6f3dd337b46e0e0a329b141938e5bd7444 | refs/heads/master | 2020-04-09T02:08:47.515340 | 2018-12-01T15:24:24 | 2018-12-01T15:24:24 | 159,930,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,005 | py | # coding:utf-8
import itchat
import os
import re
import math
import random
import PIL.Image as Image
import matplotlib.pyplot as plt
from wordcloud import WordCloud
# 获取头像
def headImg():
itchat.login()
friends = itchat.get_friends(update=True)
# 遍历好友数据
for count, f in enumerate(friends):
# 根据us... | [
"wandereding@gmail.com"
] | wandereding@gmail.com |
517883fff7511e6a85417acd48de8b4f13d37f6e | 15b916d8a3f2adbb9bae525461b1c08e10f733d1 | /models/dep.py | 723a09884f9bf7de9fe3662e172d7b420b604e37 | [] | no_license | sa1am8/digital-journal | d492d5dff71e9ee9f3b27879f490b585880f05b9 | 7e1b812f608234b59c68ab6e740fe386176824b6 | refs/heads/master | 2023-04-08T07:19:53.686831 | 2021-04-07T08:34:25 | 2021-04-07T08:34:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,213 | py | from flask import render_template, Blueprint, url_for, redirect, request, flash
from sqlalchemy.exc import IntegrityError
import sys
sys.path.insert(1, '/home/toshka/PycharmProjects/EPAM linux/EPAM')
from models.models import Employee, Department
from app import db
from forms.forms import DepartmentForm
dep = Blueprin... | [
"tinkerino571@gmail.com"
] | tinkerino571@gmail.com |
e2d5e7c66693b0f86ee9a3063be785b83ed0b7d5 | ddfde9de04919c7a3bcd2b5dcfb8354c90568637 | /nested_frame_work/test_framework_init.py | a1e70c813c19b4edef0ae948f23bc8bc8705a227 | [] | no_license | ORNL-Fusion/ips-examples | aedfbf35e2abb08f1df5de9effcebca2eb3287d5 | 4950eeb8cb20eed764018fca10617473b814c883 | refs/heads/master | 2023-07-24T12:49:40.520201 | 2023-01-27T20:51:45 | 2023-01-27T20:51:45 | 44,407,382 | 4 | 5 | null | 2022-10-09T03:44:15 | 2015-10-16T19:53:59 | Python | UTF-8 | Python | false | false | 1,928 | py | #! /usr/bin/env python
#-------------------------------------------------------------------------------
#
# IPS wrapper for TEST Init component.
#
#-------------------------------------------------------------------------------
from component import Component
#-------------------------------------------------------... | [
"cianciosamr@ornl.gov"
] | cianciosamr@ornl.gov |
cdbf6fa8943b1af5835b87a56ecc9d8ee32cbe88 | 133150a4bfcfa14f45ffb0745d006ff10377e4a5 | /natural_language_processing/basic_methods.py | 7924d0d681e139fad1f26aa68a51c11cf9d9ded0 | [] | no_license | ElvinOuyang/learning-and-practices | 4ce8a05ec546fdf0d16aa53269cb028234c72a6d | 244b5a21cf17cde4efa89b92e19ef54e8f9355e3 | refs/heads/master | 2020-07-05T00:50:03.579650 | 2019-10-15T02:47:27 | 2019-10-15T02:47:27 | 74,134,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,586 | py | # preparation
from __future__ import division
import nltk
from nltk.book import *
'Searching Text'
# .concordance() will display context of each searched words
text1.concordance("monstrous")
text2.concordance("affection")
text3.concordance("lived")
print("\n")
# .similar() will return words that appear in similar con... | [
"elvin.ouyang@gmail.com"
] | elvin.ouyang@gmail.com |
e49952bb3039c47341a3a2001f153c1fcea8521c | 05169e203974411667ab947298a74575b8a179e0 | /packages/jet_bridge_base/jet_bridge_base/serializers/relationship_override.py | c985788ccf2e5eeaf886f08eb8bb093846f356d8 | [
"MIT"
] | permissive | jet-admin/jet-bridge | f6b563e1801985063483ddb02e9e1c3301dc0612 | c53d30fb308eed5822083eaf71f641c4098610cc | refs/heads/master | 2023-09-01T14:31:42.261427 | 2023-08-24T13:54:34 | 2023-08-24T13:54:34 | 163,167,532 | 1,564 | 166 | MIT | 2023-03-18T03:20:04 | 2018-12-26T10:27:33 | Python | UTF-8 | Python | false | false | 4,873 | py | from jet_bridge_base.models.model_relation_override import ModelRelationOverrideModel
from jet_bridge_base.store import store
from sqlalchemy import inspect
from jet_bridge_base import fields
from jet_bridge_base.db import get_mapped_base, reload_request_graphql_schema, get_request_connection
from jet_bridge_base.exce... | [
"f1nal@cgaming.org"
] | f1nal@cgaming.org |
f34e9faec68e7fae95df6a032abed8a08c2de4b9 | 2dcf2376a47133cc3b0a47a6bf4a68959fc5070a | /Purva/__init__.py | e108078c8234edbff57608013737d12566e5a3c8 | [] | no_license | princeapyds/Tg_90_Py_DS | 2c079b2ff1ce876003a393289c92a1bdd0fd65af | 90c3b5250344e0a57bf678f16821015442214106 | refs/heads/main | 2023-02-24T06:28:47.466909 | 2021-01-30T22:55:05 | 2021-01-30T22:55:05 | 334,366,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20 | py | a=78
b=98
print(a+b) | [
"Purvajagtap21@gmail.com"
] | Purvajagtap21@gmail.com |
8ba80ac4b037dde92443141d60bd35bf1f98031e | e4414bd8152e52855db7ab9065ae12b7329143e0 | /python/src/hangman.py | 0dd38bbfdc6501bc39f632a253400dd40bbf2d07 | [] | no_license | catalinc/programmingpraxis-solutions | 39cb847877ec46d2fb85740791c24889ab5654a8 | c0b13906aa76ffac705bf108db138fb9a38bc16a | refs/heads/master | 2021-03-27T16:46:47.781839 | 2017-09-09T15:17:38 | 2017-09-09T15:17:38 | 53,532,233 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,889 | py | #!/usr/bin/env python
# See http://programmingpraxis.com/2011/12/20/hangman/
import random
import sys
HANGMAN = [
"",
"""
O
""",
"""
O
|
""",
"""
_O
|
""",
"""
_O_
|
""",
"""
_O_
|
/
""",
"""
_O_
|
/ \\
"""
]
def play_game():
secret_word = random_word().upper()
guessed_letters = set()
failed_at... | [
"catalin.cristu@gmail.com"
] | catalin.cristu@gmail.com |
74242c01bb15f0739920d399519d7227f57b8f8a | fc91e867bb74cbebcb0ee608f1477ae16af91631 | /.venv/bin/django-admin.py | 96ac186b1a98732e5519c8d218d286e285191802 | [] | no_license | karthik018/FacebookPosts | 7580afbfab066c6bd09a43be086e4ce9621bbd65 | 2fbe59e8640ca2da01e0028f7b10c4f9d7b62b65 | refs/heads/master | 2020-06-12T05:29:43.493418 | 2019-07-16T06:16:25 | 2019-07-16T06:16:25 | 194,204,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | #!/home/ib_admin/FacebookPosts/.venv/bin/python3.7
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"thinkcreative01karthik@gmail.com"
] | thinkcreative01karthik@gmail.com |
bb9d2da18b8fd9fb4ca15383251051ce2328118c | 8dd7de62d854e797e96135040fefd4f879a729ca | /app/urls.py | a5232ba3e4899c6a8dae5b0d70df7122e8c8cf36 | [] | no_license | Anusreechandra/newwebtd | 12fc7e701302030c933c69da6d1c8101cd32ad78 | 53a2868f000d0dd56e0443a4815b5aee6bc6cc0b | refs/heads/master | 2023-09-05T11:44:22.496261 | 2021-11-23T05:51:25 | 2021-11-23T05:51:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | from os import name
from django.urls import path
from django.urls.resolvers import URLPattern
from. import views
app_name="app"
urlpatterns=[
path('',views.new,name="web"),
] | [
"anusreechandra.327@gmail.com"
] | anusreechandra.327@gmail.com |
900ce188b2d480f02d08d8fe381e861ddc612129 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/4/j33.py | 32bc61a86b88039321d406fcdd145e2fdf95b792 | [] | 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 |
00fd1033e37e360a31091239beb574fc36c393de | 55ee96e2bba54908974cddbcd6ce39868bb6ccae | /config/urls.py | ca9abba46406f86aeb53b015d743107dc14505c9 | [] | no_license | marti1125/BlogAPI | ec9d00816463b989108c451cab3aec05e48ea6c6 | 6275b67a762cc14cf214b3882c023a74927fc6da | refs/heads/main | 2023-03-25T17:50:20.128068 | 2021-03-23T20:12:27 | 2021-03-23T20:12:27 | 350,809,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,721 | py | """config URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"marti1125@gmail.com"
] | marti1125@gmail.com |
99023c5533e743afb8349cd031816969f2e0f52e | 6527b66fd08d9e7f833973adf421faccd8b765f5 | /yuancloud/recicler/event/tests/test_mail_schedule.py | 7b92308e184f89e0d7bc6436545f7d9324c6b05d | [] | no_license | cash2one/yuancloud | 9a41933514e57167afb70cb5daba7f352673fb4d | 5a4fd72991c846d5cb7c5082f6bdfef5b2bca572 | refs/heads/master | 2021-06-19T22:11:08.260079 | 2017-06-29T06:26:15 | 2017-06-29T06:26:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,952 | py | # -*- coding: utf-8 -*-
import datetime
from dateutil.relativedelta import relativedelta
from yuancloud import fields, tools
from yuancloud.addons.event.tests.common import TestEventCommon
from yuancloud.tools import mute_logger
class TestMailSchedule(TestEventCommon):
@mute_logger('yuancloud.addons.base.ir.ir... | [
"liuganghao@lztogether.com"
] | liuganghao@lztogether.com |
d25af681e443d6b6f9b541e3f60dab32f7f5e5ae | f0c3edae1d5f97ffb0c5039bca2ed9c51a74bc6b | /libalgopy/common/interfaces/binary_search_tree.py | e892bd31ab6dd4b6ae1b8a50a912ad5f2931b1c3 | [
"MIT"
] | permissive | PotapenkoOleg/libalgopy | d2bfbbcec6004c07e0b3aea4d835085ae18f3f6f | ac625c0f874918c1967218c302c6fcb200db0271 | refs/heads/master | 2020-07-07T03:36:02.698884 | 2019-09-24T19:13:45 | 2019-09-24T19:13:45 | 203,232,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | class BinarySearchTreeBase:
def add(self, key, value):
pass
def get(self, key):
pass
def remove(self, key):
pass
def get_min(self):
pass
def get_max(self):
pass
def get_floor(self):
pass
def get_ceiling(self):
pass
def get_ra... | [
"PotapenkoOleg@gmail.com"
] | PotapenkoOleg@gmail.com |
f2b1502e69ebbcb83d168b947b4e1536ab2f5ca9 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/dev/nlp/Speech_Transformer_ID0487_for_PyTorch/test/test_lr.py | 50038c0c6c0a3d30f8e5cf25a74a0eebf9c1ebc4 | [
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 1,717 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
411dcfd4de66bbc272d46522811c996c36dce81d | e04a6a11b8770e8bbcfe9509348d8a86a4189295 | /mapper/utils.py | 6a8f9834d28a6b5a859a7d50eee77fa8fc178bbc | [] | no_license | minh5/mapper | 48267c7591b022aa2f548665ff6b9349de5cccd5 | 04deb1d917ca1feb784afd6a5252303f44f704cc | refs/heads/master | 2021-01-17T07:31:46.146206 | 2017-04-02T03:28:07 | 2017-04-02T03:28:07 | 83,748,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py |
DC_CENSUS_TRACTS = 'http://opendata.dc.gov/datasets/6969dd63c5cb4d6aa32f15effb8311f3_8.zip'
DC_CENSUS_BLOCKS = 'http://opendata.dc.gov/datasets/c143846b7bf4438c954c5bb28e5d1a21_2.zip'
DC_GEOJSON_TRACTS = 'mapper/static/geojson/dc_census_tracts.geojson'
DC_GEOJSON_BLOCKS = 'mapper/static/geojson/dc_census_blocks.geojs... | [
"minh.v.mai@gmail.com"
] | minh.v.mai@gmail.com |
43ccac82b3cdb77298df1e3149e0f74a89bcc7f9 | ae462dab95f3a0c9a60ce884dcc57c45e282bec7 | /venv/bin/django-admin.py | 3332cf1d05f15580c89bc3163e45a63b1f521516 | [] | no_license | aidandyde/bridging_coursework | 8224a177536ef115eac2be86c7a891bfcd54b8b2 | e4fe1df0baa4adf99b759a2fc84ebdf5d5c8bf1c | refs/heads/master | 2022-12-24T11:48:59.882757 | 2020-10-10T13:03:44 | 2020-10-10T13:03:44 | 270,255,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | #!/home/adyde/PycharmProjects/bc2/venv/bin/python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"adyde@DESKTOP-5A990CS.lan"
] | adyde@DESKTOP-5A990CS.lan |
d4e32ff94b192f142379526a3b922b50b3206f93 | c8bac63e2b4da9a86bdf3217b665b0d4fc0fca8e | /module6_1_tensorboard.py | 2989093f386404190e2f23be93da73d448ce0dcb | [] | no_license | jandziak/tensorflow_workshop | 902cc62432f88b97176f22c7bc6664618660112b | a1daa34f0cd2967a178ad3319ac81b711b1f5223 | refs/heads/master | 2021-01-20T15:26:33.402415 | 2017-07-24T13:31:02 | 2017-07-24T13:31:02 | 82,812,810 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | # Module 6: Tensorboard
# Author: Dr. Alfred Ang
import os
os.environ['TF_CPP_MIN_LOG_LEVEL']='2'
logdir = '/tmp/demo/4'
import tensorflow as tf
a = tf.constant(12,name='a')
b = tf.constant(4,name='b')
# c = tf.multiply(a,b,name='c')
# d = tf.div(a, b, name='d')
with tf.name_scope('multiply'):
c = tf.multiply(... | [
"janidziak@gmail.com"
] | janidziak@gmail.com |
3d195c4f0e242b52419cb18ba6b04f8c2286253c | a2fd4bdfea5030201b44320fc9bf8fccf5f31a59 | /Robot/ttwifi.py | 8f83c0a0b66d8c7dec442f5dd351d998ee1d2f6f | [] | no_license | aaron-visschedijk/PicoRobot | c2e1c51a621b6f6dc7f594183d5470d6e5cbfee5 | 71b6e9c550a24487f917c69499dc16d7b5799306 | refs/heads/master | 2022-10-31T11:04:35.264849 | 2020-06-10T11:31:30 | 2020-06-10T11:31:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | import network, time
def init_wifi(apname, password, timeout=3000):
"""Connect to wifi. A timeout (milliseconds) will cause the function to block
until the timeout has expired or a successful connection is made."""
wifi = network.WLAN(network.STA_IF)
wifi.active(True)
wifi.connect(apname, password)
if tim... | [
"noreply@github.com"
] | aaron-visschedijk.noreply@github.com |
53a8b28fc5cf1543cb3b8e7da6653456f2cfc645 | 8e61d9c9ee28014d1eb36f4c98b4295172ac4e4a | /2020/Linear-Regression/challenge_regression.py | f29b738bbd177f5d5d4c42fb52ceb5859f91845a | [] | no_license | vigneshwaran444/python-folders | d53d303fdc5ef4f6ced48d5e1528ebf9d6bff09f | 0ebd8bafd03a7d1e23b6b180547d553d55b35d6a | refs/heads/master | 2021-01-06T10:43:41.547026 | 2020-02-18T07:48:18 | 2020-02-18T07:48:18 | 241,300,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | import pandas as pd
from sklearn.linear_model import LinearRegression
import matplotlib.pyplot as plt
#import data
dataframe = pd.read_csv('data/challenge_dataset.csv')
x_values = dataframe[['x']]
y_values = dataframe[['y']]
#train model on data
model = LinearRegression()
model.fit(x_values, y_values)
#visualise res... | [
"noreply@github.com"
] | vigneshwaran444.noreply@github.com |
bfbfc8a34978055dd0f63e6431d91169cf9edad9 | f697327e665ef5c19c182ac9dc0f02b648cc6f09 | /Lib/site-packages/django/contrib/gis/geos/prototypes/geom.py | 89f58f2b4bb5cb445437b3d599349712e35ce222 | [
"BSD-3-Clause"
] | permissive | SgtSwagrid/swagbets | e45860949f1f3da8de2d89b45786357d5956f1ce | 5391142a95a444e020d6fb8d76022ba538489ea6 | refs/heads/develop | 2023-08-19T03:38:05.314230 | 2020-04-30T14:02:35 | 2020-04-30T14:02:35 | 217,722,496 | 1 | 1 | null | 2021-09-22T18:37:31 | 2019-10-26T14:40:39 | Python | UTF-8 | Python | false | false | 3,563 | py | from ctypes import POINTER, c_char_p, c_int, c_size_t, c_ubyte
from django.contrib.gis.geos.libgeos import CS_PTR, GEOM_PTR, GEOSFuncFactory
from django.contrib.gis.geos.prototypes.errcheck import (
check_geom, check_minus_one, check_sized_string, check_string,
)
# This is the return type used by binary output (W... | [
"alec.dorrington@protonmail.com"
] | alec.dorrington@protonmail.com |
e72948be0ca42fe9b52c9425a7150892ba8b117e | 704b303675dae80119257090fabf1afb386dd3e2 | /AtCoder/misc/エイシング2020/A.py | e1d29b6edc2c66d6003073a54bbbaec2e551ba63 | [] | no_license | kathmandu777/CompetitiveProgramming | 7b7ead14d8a697df89f04faf05276030349a1a98 | 1949ab55fd399e16765c9effb95541e600601730 | refs/heads/master | 2023-05-13T19:23:30.503873 | 2021-06-07T10:15:57 | 2021-06-07T10:15:57 | 347,570,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | l, r, d = map(int, input().split())
ans = 0
for i in range(l, r + 1):
if (i % d == 0):
ans += 1
print(ans)
| [
"mahhakatomanato@gmail.com"
] | mahhakatomanato@gmail.com |
3838f2b41a6e02c39425f0fdede2a1ec591aa2eb | cbfa9a784f85df6ed0dd630757eac709b556deca | /venv/bin/pygmentize | a090a273b8a7c223c0aa644d85dcbd3d07124155 | [] | no_license | itohdaigo/finance_app | c2b8b5c681180459054ee1744bff6e3b4726f8a4 | afa9c17c12aadd5e28d62715c162cdadf4505ca0 | refs/heads/master | 2023-04-13T02:37:35.720408 | 2021-04-24T09:39:03 | 2021-04-24T09:39:03 | 361,120,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | #!/Users/x17007xx/PycharmProjects/WebAPI/final_finance/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pygments.cmdline import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"x17007xx@pcx17007xx.local"
] | x17007xx@pcx17007xx.local | |
7987e4d08bd07e960ecd3647886fef2d5e2e298e | 7340cba4292746f9f2fb62f8414d7267a4a9f626 | /sewamobilmysql/urls.py | d2b527c36e5268c9a09ba9026bdc9cc589ce3b72 | [] | no_license | Fairizal/sewamobilmysql | 931344c74b7b8a6f9ae2fc32686f2e211fd59b34 | 669d3ab3b90934cd121d0fe1ec5f1e932575caec | refs/heads/master | 2023-02-10T09:34:24.903094 | 2021-01-07T14:14:54 | 2021-01-07T14:14:54 | 327,594,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,096 | py | """sewamobilmysql URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Clas... | [
"mrzarowtaz@gmail.com"
] | mrzarowtaz@gmail.com |
946d3175c0adf994c71ca2c1a180f19e61fd3b8d | 2b1421583f94290485751bfdd4b8bc84497ccf52 | /example/SimpleExample/wordcount/wc_mapper.py | 973ebec5271f6e8991c6e8100bba9c2b8511b172 | [] | no_license | mrasu/SkipJack | dae792c0ef469f47439defbceda05e5db974e120 | 5d6a4d64f96a30b5b989eac95c1754b2ee8497bd | refs/heads/master | 2021-01-01T19:20:27.048172 | 2015-01-12T08:15:50 | 2015-01-12T08:31:13 | 28,266,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | #!/usr/bin/env python3
# encoding: utf-8
import sys
for l in sys.stdin:
for word in l.strip().split(): print('{0}\t1'.format(word))
| [
"m.rasu.hitsuji@gmail.com"
] | m.rasu.hitsuji@gmail.com |
7d82abc23d5e3d4bf5e54cd6ec2da4a4d1a8768f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02631/s475540632.py | 3a87c44b29ca2411c0463a78d1676b61c5e7616c | [] | 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 | 267 | py | N = int(input())
a = list(map(int, input().split()))
# XOR演算子 ^
# aの要素全てのXORを計算、それをSとする
S = 0
for aa in a:
S ^= aa
# i番目の番号はaiとSのXORで表される
ans = []
for ai in a:
ans.append(S ^ ai)
print(*ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a9c5464e88bf6c5aa66f33725d36f389ec6c8f5c | 8db990c0b732597a02e77fb5f090bd2581ce7147 | /setup.py | 5e67da0140c2d6c387aec11110484b65a1d497e1 | [] | no_license | bonham/python_patch_poc | fc68246c1d51cb0ca1d1907b995f7d1385bd7ee3 | e8d5e774d937729333d311f781c7be090ff58d83 | refs/heads/master | 2023-01-15T17:32:31.216875 | 2020-12-01T20:56:45 | 2020-12-01T20:56:45 | 317,664,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | from setuptools import setup
setup(name='acm', packages=['.'])
| [
"2823246+bonham@users.noreply.github.com"
] | 2823246+bonham@users.noreply.github.com |
62cd2150ee646c818aaf4bdc5ab5bad886d60b7d | 13bb4b9391cecbe738f42fe5cdcc0ba8a7f9459b | /138.py | d34c56802331b035461fabcd1820ecb40f585599 | [] | no_license | sairin1202/Leetcode | af526ad4dbcabeda2c4c0af293915b5a0f352997 | ba97b463373f319f7531fe347e05adadf4c84255 | refs/heads/master | 2020-04-28T04:44:59.301283 | 2019-05-11T13:23:37 | 2019-05-11T13:23:37 | 174,992,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,224 | py | """
# Definition for a Node.
class Node(object):
def __init__(self, val, next, random):
self.val = val
self.next = next
self.random = random
"""
class Solution(object):
def copyRandomList(self, head):
"""
:type head: Node
:rtype: Node
"""
if head =... | [
"952141617@qq.com"
] | 952141617@qq.com |
61a8e927425ca7f83f10755c734017335c282faf | d3eba05768f13fb77037f094c8cd5bee0a2ce920 | /python/pyclaw/evolve/rp/rp_nel.py | f2e2719f65640b03ee2716b28443d86dd264553b | [
"BSD-3-Clause"
] | permissive | geoflows/geoclaw-4.x | cb262ffcc30b483e4e1bf0ba480f43408cb1b6fd | c8879d25405017b38392aa3b1ea422ff3e3604ea | refs/heads/master | 2023-07-10T06:39:42.774585 | 2021-02-23T20:15:36 | 2021-02-23T20:15:36 | 6,094,587 | 1 | 2 | BSD-3-Clause | 2023-06-28T16:50:43 | 2012-10-05T18:18:31 | Fortran | UTF-8 | Python | false | false | 2,368 | py | #!/usr/bin/env python
# encoding: utf-8
r"""
F-wave Riemann solver for nonlinear elasticity in heterogeneous media
.. math:: q_t + f(q,x)_x = 0
where
.. math::
q(x,t) = \left [ \begin{array}{c} \epsilon(x,t) \\ \rho(x) u(x,t) \end{array} \right ]
and the flux vector is
.. math::
f(q,x) = \left [ \be... | [
"dave.jorge@gmail.com"
] | dave.jorge@gmail.com |
4f8578fbd7547486757f7eca34ac33f443c2e858 | 6bb7b1c556e84234cc58c12072d211c5e0238467 | /classic-algs/lab19/Morozov/main.py | be53ffaac8b0c3af3f3f6927f0d1632eca634ad1 | [] | no_license | MikhailErofeev/a3200-2015-algs | 56db99494c28f150c62042171d90fb89d089636c | 186304637851c989b4680a6a75d9bd2851d326e0 | refs/heads/master | 2021-01-15T15:31:29.201475 | 2016-02-27T10:02:55 | 2016-02-27T10:02:55 | 42,346,823 | 0 | 28 | null | 2023-06-24T07:29:36 | 2015-09-12T06:08:16 | Python | UTF-8 | Python | false | false | 914 | py | from sys import stdin, stdout
__author__ = 'vks'
def palindrome(s):
length = len(s)
if length == 0:
return ""
dp = [[0 for i in range(length)] for i in range(length)]
for i in range(length):
dp[i][i] = 1
for i in range(length - 2, -1, -1):
for j in range(i + 1, length):
... | [
"vks_m@mail.ru"
] | vks_m@mail.ru |
23467415c0ff0bb85683ce085bbe02f8ea763c9c | 8209cc68a3fdd611922b00bae5936d70f149ae3e | /bin/jupyter-trust | a64b62fb12ec2c2a47a5bb4ab02634a0ad3644a4 | [] | no_license | alinmuraretu/alin1987 | ccab6afc12e44dc5f0b550f598874f391891b56a | 8538af0de6a8619ef9bd225ce4bc027a9802aa71 | refs/heads/master | 2022-11-14T00:45:58.635014 | 2019-12-16T11:00:31 | 2019-12-16T11:00:31 | 225,604,601 | 0 | 1 | null | 2022-10-28T01:18:09 | 2019-12-03T11:34:43 | Python | UTF-8 | Python | false | false | 273 | #!/home/alin/alinH/hello/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from nbformat.sign import TrustNotebookApp
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(TrustNotebookApp.launch_instance())
| [
"alinmuraretu@gmail.com"
] | alinmuraretu@gmail.com | |
280b77339358be2f20c549dc8150493e387dda41 | 70976a4a0526f7585f810921925cf8d19e6aabfa | /project/apps/registration/renderers.py | 284383224eec531d0f219ee4cde5a726982bb973 | [
"BSD-2-Clause"
] | permissive | barberscore/barberscore-api | 36be50b943ed59ac2fc738069661f5b589354a36 | 1ed4c01ae35cad21282b573a492733837f956285 | refs/heads/master | 2023-09-03T21:14:57.358069 | 2023-07-08T20:45:03 | 2023-07-08T20:45:03 | 11,014,681 | 14 | 5 | BSD-2-Clause | 2023-02-08T01:18:17 | 2013-06-28T03:28:17 | Python | UTF-8 | Python | false | false | 1,118 | py |
# Third-Party
from rest_framework.renderers import BaseRenderer
from rest_framework.renderers import BrowsableAPIRenderer
from rest_framework_json_api.renderers import JSONRenderer
class BrowsableAPIRendererWithoutForms(BrowsableAPIRenderer):
"""Renders the browsable api, but excludes the forms."""
def get_... | [
"noreply@github.com"
] | barberscore.noreply@github.com |
d07a60bdf242a97e8858b4b2294e67ebaf2da416 | b05346b257a7c73bf1b1cda2aadf2c737d48de6c | /nytimes/nytimes/items.py | 6f76b1b3d546564e7b58c7b6dd1e1078deef7e33 | [] | no_license | speedhawk21/bamboo-listeners | 7494509d803f5875bcac07dbe2109cedd6af8aa6 | 3d026b50a9f639f138e8026249e1718950016c1a | refs/heads/master | 2022-01-07T04:43:58.290590 | 2018-05-02T03:17:13 | 2018-05-02T03:17:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class NytimesItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
| [
"briansc@gmail.com"
] | briansc@gmail.com |
1749340cf3def999cc726ba63a0fb94d0a618ed5 | 69636805a67ed244e13d61d838b56791018dee62 | /compjour/homework2/part3/b.py | 7400d58870411077ae415bb3d0a9eddb5ca1c8a9 | [] | no_license | anacrochas1/compciv-2016 | 2176306d774642f7d9a22f02c9d6a599a9942a18 | abd94d0bfcc6c1612ada06f3f563c0764b2fe2b9 | refs/heads/master | 2021-01-18T21:09:33.755755 | 2016-06-02T05:54:18 | 2016-06-02T05:54:18 | 49,533,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,996 | py | import requests
import pdfplumber
from os.path import basename
from glob import glob
import csv
urls = [
'https://www.nccommerce.com/Portals/11/Documents/Reports/WARN/Warn.pdf',
'https://www.nccommerce.com/Portals/11/Documents/Reports/WARN/warn-2015.pdf',
'https://www.nccommerce.com/Portals/11/WARN/Warn2014.pdf',
'ht... | [
"anasantos@stanford.edu"
] | anasantos@stanford.edu |
34557398436b87628d05729c6353fc562dd95e50 | 2c3a8e18dbd7ae9aeaa3d11e16490fb24946c294 | /main.py | f2c7e9683ddbb6a8a3bca25b910c95902e641a49 | [] | no_license | Shicheng-Guo/pharma_scraper | f98af3b624f25559536959fa5e316dcd8eaf7524 | 6837bfdf4d6903a105bc2b89a345cb72ffae2399 | refs/heads/master | 2023-05-05T00:31:44.991795 | 2020-05-13T21:14:46 | 2020-05-13T21:14:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,206 | py | import bio, yahoo
from baker_bros import get_baker_holdings
#libraries needed to make and open csv files
import csv, os, sys
from platform import system
from datetime import datetime
#progress bar code
def progressbar(it, prefix="", size=60, file=sys.stdout):
count = len(it)
def show(j):
x = int(size*j... | [
"veer.shah1016@gmail.com"
] | veer.shah1016@gmail.com |
56bcbea21f1b75f0de25fd94d56e75f5b4c8ed34 | 1f5f63b5f42cf0b410cb4f67c355e51aba71f646 | /lab1-2/part1.py | d9527bd97a2130e56b35f155e69308b4e91ea3d4 | [] | no_license | danemortensen/databases | 02378545faae783a7d227679dfa470e8437c869d | 84dffd52908a52226ac152813cd6e40c3a99e08b | refs/heads/master | 2021-08-23T02:48:33.709280 | 2017-09-27T06:00:39 | 2017-09-27T06:00:39 | 104,786,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,186 | py | # Dane Mortensen and Kartik Mendiratta
import sys
class Student:
def __init__(self, first_name, last_name, grade, classroom, bus, gpa,\
teacher_first, teacher_last):
self.first_name = first_name
self.last_name = last_name
self.grade = grade
self.classroom = classroom
self.bus = ... | [
"mortensendane@gmail.com"
] | mortensendane@gmail.com |
32cc458f40f3f76f78a8c90090a128e02d2287c3 | e79a2e369c616d53098af77fd5a778f2eee74efd | /carousel/serializers.py | a9bd729f51040e1157f7d729cbe8c2c1ca923ed3 | [] | no_license | dev-codflaw/django-cms-app | ff5417740e21c50e8db3909aaa25b36bba010cf6 | 662cd6b32d3d93d32291f135cf9e925f547ee590 | refs/heads/master | 2023-03-15T07:22:22.196633 | 2021-03-28T20:13:22 | 2021-03-28T20:13:22 | 344,841,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | from rest_framework import serializers
from .models import Carousel, CarouselSlide
class CarouselSlideSerializer(serializers.ModelSerializer):
class Meta:
model = CarouselSlide
fields = '__all__'
class CarouselSerializer(serializers.ModelSerializer):
images = CarouselSlideSerializer(many=Tru... | [
"dev.codflaw@gmail.com"
] | dev.codflaw@gmail.com |
a2559efa512954198137adbc50e9f68a983b1d49 | e2717a7e949e45d830a1f8f6e48db2eaf2acc559 | /SendMail/HtmlMail.py | 7f13bb8fec0dfcdaac286ca5411955eff59d4b2e | [] | no_license | wangfuli217/cookbooks | a256d17c813b752cd1a9a3a2bab24e35f53dbbc3 | cd76e29cbfe54506e74be9aa8468b46939b9970d | refs/heads/master | 2022-03-13T16:22:09.293003 | 2016-01-25T12:21:22 | 2016-01-25T12:21:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,743 | py | '''
Created on Mar 1, 2013
@author: absolootly
'''
# # {{{ http://code.activestate.com/recipes/577751/ (r1)
# Send an HTML email with an embedded image and a plain text message for
# email clients that don't want to display the HTML.
from email.MIMEMultipart import MIMEMultipart
from email.MIMEText import MIMEText
fr... | [
"simon.takite@gmail.com"
] | simon.takite@gmail.com |
7ecc62afd402ebb789b92db5a227ff9decfcf2eb | 5cd8accc308978291ffba6d08aed7664d2ba9d6b | /ngrams.py | 267c8cbe7109a9006bff0ea9eb7e21fa808c9669 | [] | no_license | ValentineBlacker/PoetryBot | 699752ac50a62b9f3e30409f1cdca6f67b2dddcd | db2c6b81c60e282de69a38b146a9c5a11f9930a8 | refs/heads/master | 2020-05-17T03:48:15.904719 | 2017-08-24T21:10:23 | 2017-08-24T21:10:23 | 40,332,648 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,120 | py | import nltk
import random
from nltk.collocations import *
from nltk.metrics.association import *
class NgramUtils(object):
def __init__(self, sourcestring):
self.text = self.buildtext(sourcestring)
self.tokens = self.prepareTokens(self.text)
def importFromLocal(self, filename):
... | [
"emoore@pillartechnology.com"
] | emoore@pillartechnology.com |
997d82f70e17e51e762e7d35ef8e1a7305bfbda6 | badaf6547fd2b47474ca02aa5bcc6910df193576 | /tests/test_list.py | dc7f700c421e25dd1f2e0702c488404e212b4157 | [
"MIT"
] | permissive | yongman/tidis | e70ae6252d1a7333d67cb56e5a17ae4ad3d65afa | 405e53a63aa637b055d0e4c35333832d853fa6c6 | refs/heads/master | 2023-05-28T22:10:06.946529 | 2022-09-20T06:03:03 | 2022-09-20T06:03:03 | 129,863,749 | 1,473 | 151 | MIT | 2022-09-20T06:00:40 | 2018-04-17T07:25:40 | Go | UTF-8 | Python | false | false | 4,768 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2018 yongman <yming0221@gmail.com>
#
# Distributed under terms of the MIT license.
"""
unit test for list type
"""
import unittest
import time
import string
import random
from rediswrap import RedisWrapper
class ListTest(unittest.TestCas... | [
"yming0221@gmail.com"
] | yming0221@gmail.com |
a9a8b662488d57b7b989089e053d23aa782604eb | 55bf3dd0cddb5d43af367744895b8cafc7ca86bc | /Clss/Controller/HtmlConsensusController.py | 40e4c8c86ededb354bcb1a5ab0d3c50525774f86 | [] | no_license | Maximato/fstage | 5f0c4d6936d92a713ac285209a5fa27651ad95a2 | 98f8dc52f735bcaa9cc8a2f1c2f1697fcf0f5b4d | refs/heads/master | 2020-09-12T11:14:03.185510 | 2020-03-18T09:36:32 | 2020-03-18T09:36:32 | 222,405,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,284 | py | from Clss.FileSys.Extractor import Extractor
from Clss.Model.HtmlConsensusParser import HtmlConsensusParser
from Clss.FileSys.PeMutateConsensusWriter import PeMutateConsensusWriter
from Clss.FileSys.RecordsWriter import RecordsWriter
from Bio.Seq import Seq
from Bio.SeqRecord import SeqRecord
class HtmlConsensusContr... | [
"maxxxnes@gmail.com"
] | maxxxnes@gmail.com |
a8b9238885ae44f9ca50f62afbb013af1ccaf9fb | c5beafc6083f367581a85e509702117ab7e30571 | /KJ_Python_101_lessons/Medium/HOW_MANY_COINS.py | 498f911b1104a3248ab9269378ed3070c80245b0 | [] | no_license | jevinkeffers/DC-Repos-Week-1 | dc5720d9d56752d17ba384aeef67c53cdc7e7d09 | 5d2d88ad4f934e104a7084c119759198aff85597 | refs/heads/master | 2022-11-26T01:31:17.420529 | 2020-08-03T17:43:09 | 2020-08-03T17:43:09 | 284,602,277 | 0 | 0 | null | 2020-08-03T17:44:47 | 2020-08-03T04:23:09 | Python | UTF-8 | Python | false | false | 503 | py | # 3. How many coins?
# Write a program that will prompt you for how many coins you want. Initially you have no coins. It will ask you if you want a coin? If you type "yes", it will give you one coin, and print out the current tally. If you type no, it will stop the program.
coins = 0
answer = "yes"
while answer == "ye... | [
"jevinkeffers@gmail.com"
] | jevinkeffers@gmail.com |
f656638e96e930f1109f6fab8c21afd95f6cfbb2 | 6522148a2dede107d02ee134bd40aa3a445c3d18 | /Rating/movies/models.py | 41b121b9848324ed243a4b6d0e8cb27f893e9dff | [] | no_license | nishchintg01/Inter-Task | 3d22e92a52929853312354c1e7116d5c30891a05 | d4fc887cc1dc809d8428c0832da49eac7454b7ba | refs/heads/master | 2023-03-11T04:53:31.044017 | 2021-02-20T17:48:19 | 2021-02-20T17:48:19 | 340,706,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | from django.db import models
from django.db.models import Avg
from django.contrib.auth.models import User
class Movies(models.Model):
title = models.CharField(max_length=1000)
Image = models.ImageField(upload_to = 'movies', default = 'default.png')
Description = models.TextField()
@property
def Av... | [
"nishchintg01@gmail.com"
] | nishchintg01@gmail.com |
bdd0dcb052c78df945e0924fea3a9b179b9a23d7 | d0c9414f6bc85d29c1520ac47dd688c8c3a5092f | /join.py | ab3faef4cf2555ae8e6794589b631ec99981cfa3 | [] | no_license | Bodek123/Udemy---Python | 77de6dc54c99d87556aa078cb409e7e0cd56bc01 | 24bb32b5ad50d54a50295ee7841e1e25d49e289c | refs/heads/master | 2021-04-29T21:48:20.398898 | 2018-02-17T12:05:46 | 2018-02-17T12:05:46 | 121,624,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,435 | py | # Modify the program so that the exits is a dictionary rather than a list,
# with the keys being the numbers of the locations and the values being
# dictionaries holding the exits (as they do at present). No change should
# be needed to the actual code.
#
# Once that is working, create another dictionary that contains ... | [
"bodek87@gmail.com"
] | bodek87@gmail.com |
cc571bd6d4cd9e3ac6d6badcfa204d3458c75c01 | 2a7b18ad1e1ccc2abf1638ae4eb1a3cb3570ff1b | /docs/source/gallery/plotting_with_traja.py | d9b2fc91ab6eee03d574d96d55ede098364979aa | [
"MIT"
] | permissive | Saran-nns/traja | 2d754b89562f43f9f922e0259e298a567cad5539 | f2256cc47abd33377b3a87f110f4c8da1cf6765f | refs/heads/master | 2021-06-21T20:04:35.385593 | 2020-12-25T21:35:14 | 2020-12-25T21:35:14 | 168,675,536 | 0 | 0 | MIT | 2021-01-01T15:01:08 | 2019-02-01T09:42:28 | Python | UTF-8 | Python | false | false | 2,149 | py | """
Plotting with traja
-----------------------------------
`traja <https://traja.readthedocs.io>`_ is a Python
library providing a selection of easy-to-use spatial visualizations. It is
built on top of pandas and is designed to work with a range of libraries.
For more details on the library refer to its documentation... | [
"shenkjustin@gmail.com"
] | shenkjustin@gmail.com |
2406a8e151d4c61ef3ecc2072ee1776148ed6813 | 389e77ec9c48d5c17ec60513af430baa9604e4ca | /User_Crawler/get_CC_by_date.py | b0f9ec2c6723947f79dde4fd763cc8547484a62f | [
"MIT"
] | permissive | lgs/Medium-crawler-with-data-analyzer | 244a36fd654cd5f6f0070c81063877b812595640 | fed1a99c0b524871d430b3090a6bd8f501654535 | refs/heads/master | 2020-04-13T23:49:49.776900 | 2017-11-12T11:33:25 | 2017-11-12T11:33:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | # -*- coding: utf-8 -*-
from util_graph import *
if __name__ == '__main__':
get_CC_by_date()
| [
"lifei9696@gmail.com"
] | lifei9696@gmail.com |
dd8c3943762e6c4c542152b3b97add415fa3ebf0 | 91516f6f7bb90f7d88a437032b5e9b2c48014bfc | /Ceaser/admin.py | 5843fb29aae84a055d47b1d126493ee70a76166d | [] | no_license | Hritikchoudhary1000/Ceaser | 94b089b52c1a00e61a5f3890207f9f8d4454bd06 | 4dddea211382c9d619c3a7678498a50910c4ecae | refs/heads/master | 2021-05-16T22:55:18.123932 | 2020-03-27T10:20:48 | 2020-03-27T10:20:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | from django.contrib import admin
from .models import Document, UserProfileInfo
# Register your models here.
admin.site.register(UserProfileInfo)
admin.site.register(Document) | [
"bendwalayush3@gmail.com"
] | bendwalayush3@gmail.com |
08a3f80486dcb6dd1386d4e4c03661d4f81e29be | 2d86283e9afcb3719484b7d1dc23d0463d58ae24 | /pre_treat/proc_data.py | d958dceca71b18da1d4c801c31dcce9054c04975 | [] | no_license | linzimu/SoGouClassifer | c95349feb1bc4cd1490ffa10d91a7df841df0c6e | 3d1017ed685d115a9053fce4a52ce14f86ba4a90 | refs/heads/master | 2020-04-25T22:11:09.208697 | 2019-03-03T09:02:22 | 2019-03-03T09:02:22 | 173,103,298 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,186 | py | import xml.etree.cElementTree as ET
import jieba
import re
import os
def getcontent(text):
"""抽取指定text需要的内容"""
root = ET.fromstring(text)
record_url = root.find('url').text
record_text = root.find('content').text
if not record_text or not record_url:
return None, None
else:
rec... | [
"m18744235218@163.com"
] | m18744235218@163.com |
8319e02dd8e51c0f3c972288a559d15a0f3bb1c5 | acd41dc7e684eb2e58b6bef2b3e86950b8064945 | /res/packages/scripts/scripts/common/Lib/plat-mac/Carbon/Cm.py | 81888a1e6189f6251d73285153430da7c7720a3a | [] | no_license | webiumsk/WoT-0.9.18.0 | e07acd08b33bfe7c73c910f5cb2a054a58a9beea | 89979c1ad547f1a1bbb2189f5ee3b10685e9a216 | refs/heads/master | 2021-01-20T09:37:10.323406 | 2017-05-04T13:51:43 | 2017-05-04T13:51:43 | 90,268,530 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 362 | py | # 2017.05.04 15:34:09 Střední Evropa (letní čas)
# Embedded file name: scripts/common/Lib/plat-mac/Carbon/Cm.py
from _Cm import *
# okay decompyling C:\Users\PC\wotmods\files\originals\res\packages\scripts\scripts\common\Lib\plat-mac\Carbon\Cm.pyc
# decompiled 1 files: 1 okay, 0 failed, 0 verify failed
# 2017.05.04 15... | [
"info@webium.sk"
] | info@webium.sk |
8e3269fafdfc4c4927faaa47a88c3a3c531bf398 | 676f6f2d02db6aeeaa1bb0b28ab49e8c73923d0e | /venv/Lib/site-packages/falcon/bench/bench.py | b0c60863ab0aaefa5eee2e548c536b1e6bc55c82 | [
"Apache-2.0"
] | permissive | vrian/orsen | ce34f74ea3a14c95d37ffa5c694b7c66725925df | 9c10148aba62868fad4b679a4b9b717829586e96 | refs/heads/master | 2023-01-21T21:47:06.210918 | 2018-06-23T04:46:26 | 2018-06-23T04:46:26 | 120,284,869 | 1 | 0 | Apache-2.0 | 2023-01-09T09:39:16 | 2018-02-05T09:44:03 | Python | UTF-8 | Python | false | false | 11,546 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2014 by Rackspace Hosting, Inc.
#
# 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
#
... | [
"jbryanalburo@gmail.com"
] | jbryanalburo@gmail.com |
b3df535e0bf14619764330e153f9691f97ebfe7a | ae3df32afc258c80cb2ce504ce87fa5bb7740ea7 | /main/apps.py | a1c166fbd7a6ef9873d13d2341e00132f5d8b9dd | [] | no_license | chensandiego/elast-python | 622251d806b947899d74dc064c19193b418ac505 | 8c28a47acfc5ef540a017abcd786cf815591b163 | refs/heads/master | 2020-12-24T05:40:38.917432 | 2016-08-08T09:16:39 | 2016-08-08T09:16:39 | 65,190,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | from __future__ import unicode_literals
from django.apps import AppConfig
from elasticsearch_dsl.connections import connections
class MainConfig(AppConfig):
name = 'main'
def ready(self):
connections.create_connection() | [
"chensandiego@gmail.com"
] | chensandiego@gmail.com |
0ad073e1bc65db7c887ea154b22245e55b75a3c8 | 33110712aa0c2ab1c2e7b9e2053a8c1c0daeb028 | /textboxify/__init__.py | c820e3a2ff9513887137d19f3a3ded31cfa76df1 | [
"MIT"
] | permissive | andrehirano10/TextBoxify | b69a4fd6fb8d9797fe886c69be4bd193a2f636f6 | 159bf75d061974190a322e03088617eac51789a3 | refs/heads/master | 2023-03-16T06:48:40.471005 | 2019-11-06T19:47:29 | 2019-11-06T19:47:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | """TextBoxify is a packages for creating dialog boxes in games.
The purpose of this package is to easily implement dialog boxes
in games created with Pygame. The boxes can be simple text or
more elaborated boxes with animations and borders, because the
package offers the ability to easily customize the boxes."""
# T... | [
"henrik@tutamail.com"
] | henrik@tutamail.com |
81e5483abb52cfea3eba17ca5089a2da327ca720 | 21577a16046e9e6d80db673ce877f1e76a84ffb1 | /a2c.py | de686e9f806c7950abcfc46ce3c6b5d474611cf7 | [] | no_license | BenoitLeguay/DNA_RL | e741e8404990e2689bf8240455f66c29f7108d42 | ffe92ac257522f58555310180cd8d79c785ddb77 | refs/heads/master | 2023-03-12T19:01:47.985028 | 2021-03-01T14:32:48 | 2021-03-01T14:32:48 | 273,250,548 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,088 | py | import numpy as np
import torch
from torch import nn
import variable as var
import utils
class A2C:
def __init__(self, init_a2c):
self.discount_factor = init_a2c["discount_factor"]
self.state_dim = init_a2c["state_dim"]
self.action_dim = init_a2c["action_space"]
self.critic = Criti... | [
"benoit.leguay@gmail.com"
] | benoit.leguay@gmail.com |
03077baac22100638f1f73d6914d61d5790e636d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03804/s359892659.py | cf5a2561cd5c03f89d2bfa0dc2d375e6139544c1 | [] | 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 | 477 | py | n, m = map(int, input().split())
a = [""] * n
b = [""] * m
for i in range(n):
a[i] = input()
for i in range(m):
b[i] = input()
for i in range(n):
for j in range(n):
if i + m > n or j + m > n:
continue
flag = True
for k in range(m):
for l in range(m):
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
26c63443b63b1498758a95004e4fd26103c6f481 | 54ea50206d6532799da5dfb5f3948f9690835298 | /python数据分析与挖掘学习笔记/src/chapter4/code/data_discretization.py | 52bd10b44315afb727bf8d46e6f842f0aa03b813 | [] | no_license | chenhch8/machine-learning | 5860587e6363d1bcaca8046e0b8b0a334c38d755 | 77ff004e19be8748466dccb3e2492a760f9b1d3b | refs/heads/master | 2021-01-21T16:45:31.883671 | 2017-07-13T16:36:01 | 2017-07-13T16:36:01 | 91,905,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,462 | py | # -*- coding: utf-8 -*-
'''数据规范化'''
import pandas as pd
file = '../data/discretization_data.xls'
data = pd.read_excel(file)
data = data[u'肝气郁结证型系数'].copy()
k = 4
# 等宽离散化
d1 = pd.cut(data, k, labels = list(range(k)))
# 等频离散化
w = [1.0 * i / k for i in range(k + 1)]
w = data.describe(percentiles = w)[4:4+k+1]
d2 = pd.... | [
"496746441@qq.com"
] | 496746441@qq.com |
1eb42d6df6e8ec59425615e6f90c19e7fc7803e3 | 91e05c703f3868d652fa4b32825df274cce26658 | /neural_net/convolution.py | 34f4d80ec2a81ad1939203d1993ef0b4fb23ce6a | [] | no_license | mie998/image_processing | 2843a0423b84c89ddf95179d047fe7689ee56e4f | fcd9a5e306ca20a9e85f7f87caba83b148a772e1 | refs/heads/master | 2022-11-15T07:38:08.815740 | 2020-07-17T11:07:47 | 2020-07-17T11:07:47 | 224,567,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,983 | py | from collections import OrderedDict
import matplotlib.pyplot as plt
import os
import sys
sys.path.append(os.pardir)
from common.layers import *
from common.utils import *
from common.optimizer import *
class ConvolutionalNeuralNet:
def __init__(self, input_shape, hidden_size, output_size, conv_params):
f... | [
"kei.west.post920@gmail.com"
] | kei.west.post920@gmail.com |
f802ccf82930e013add713cd13df5f3f979a97d7 | a051440b292819666be8761bde4ee4c80d391cfe | /custom_components/blink4home.py | 6598c4607da296c10ae492ae5c40e3426c67d80b | [
"MIT"
] | permissive | dib0/home-assistant-custom-components | 7b11fc64ed5af7b0d3a0d7e0efbf9d1fe44891fb | 95ada814bf6b1538f29c2995792aed7bda3982be | refs/heads/master | 2021-01-11T20:33:42.220320 | 2017-01-17T16:46:52 | 2017-01-17T16:46:52 | 79,143,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,347 | py | """
Support for Blink4home cameras.
For more details about this component, please refer to the documentation at
https://home-assistant.io/components/blink4home/
"""
import asyncio
import logging
from datetime import timedelta
import json
import requests
import voluptuous as vol
import homeassistant.helpers.config_va... | [
"noreply@github.com"
] | dib0.noreply@github.com |
76dfb7da0c46bc7c91e9cc31820e5adb7354dc54 | 7be373d17a0a46c0e1fa486ce66ef295c17b7757 | /assignment3/complex.py | 87edda453c390aa3674a5e07993b9dc44174c4de | [] | no_license | anettfre/INF3331 | 425c47deaa0438ec2b1c8075a36249139bfb3e1f | 54ee1aba4ebf7d26dfd01d4e0ed34439dce02a59 | refs/heads/master | 2020-05-25T04:56:18.907988 | 2020-02-01T18:34:55 | 2020-02-01T18:34:55 | 187,638,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,681 | py | #!/usr/bin/python3
from math import sqrt
class Complex():
def __init__(self, real, imag):
"""takes in self, a real part, and a imaginery part"""
self.real = real
self.imag = imag
# Assignment 3.3
def conjugate(self):
"""this function takes in one argument, that is self,... | [
"noreply@github.com"
] | anettfre.noreply@github.com |
7f46726f259a60a0a1580927d4c5d8b74369d2fe | a5805a41fbbdc4d1b7cc322b4ab98e126da87c8d | /99bottles.py | e66113148ca6e3e88a73b0ad410819c16a650fe2 | [] | no_license | paulsenj/HearMeCode | 84bfc34cb4a5fb965d4f0d1a87a422458155e9f0 | 7171af4e97a8771edaea3f7d216fa1c4c5584774 | refs/heads/master | 2021-01-10T05:30:59.757092 | 2017-08-08T12:12:34 | 2017-08-08T12:12:34 | 52,220,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,936 | py | # Difficulty Level: Beginner
# Can you make Python print out the song for 99 bottles of beer on the wall?
# Note: You can use range() in three different ways
# First:
# range(5) will give you a list containing [0, 1, 2, 3, 4]
# In this case, range assumes you want to start counting at 0, and the parameter you give i... | [
"noreply@github.com"
] | paulsenj.noreply@github.com |
60cf3e5f03ac14e51283e70a544e7f187a594223 | ca13620a0967cc6fccd9e98080c235db9faa65a7 | /models/transaction.py | dcd5a391102a38bf9698510b890be94ae7b0e205 | [] | no_license | Geoffe-Ga/grocery_list | b60a2771fa06ca8fd6be8d87ca74b9eb640aae80 | b854cc180e1b0ebb0bdfb9e17ad2824cc1cdc392 | refs/heads/master | 2020-12-15T16:22:19.655624 | 2020-01-20T19:03:24 | 2020-01-20T19:03:24 | 235,175,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,484 | py | from db import db
from datetime import datetime
class TransactionModel(db.Model):
__tablename__ = 'transaction'
id = db.Column(db.Integer, primary_key=True)
product_id = db.Column(db.Integer, db.ForeignKey('product.id'))
product = db.relationship('ProductModel')
trip_id = db.Column(db.Integer, ... | [
"geoff@Geoffs-MacBook-Air.local"
] | geoff@Geoffs-MacBook-Air.local |
299e52aceff3116633645892938214e85f2e1ce5 | ef8fea0e7fe917743b79e35e6193eff48c675601 | /sample_players.py | 902fe5801b4ffefdf289e978a8548275fbba9863 | [] | no_license | b-Squad/AIND-Isolation-master | ef878e817f1711ec0f380325fd42c36d2c35a19a | 6dd8c3fb51400f83f01c0542eb540e30f7ae9ad0 | refs/heads/master | 2021-01-23T16:20:57.394383 | 2017-06-04T06:33:34 | 2017-06-04T06:33:34 | 93,294,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,435 | py | """This file contains a collection of player classes for comparison with your
own agent and example heuristic functions.
************************************************************************
*********** YOU DO NOT NEED TO MODIFY ANYTHING IN THIS FILE **********
****************************************... | [
"narsimhb@gmail.com"
] | narsimhb@gmail.com |
d5ca2bcbd5de3c1b9c9bac46eab8058ddbdaa268 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_200/1005.py | d1785f14535df9f9f8739a47a08da1ea17308063 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | import numpy as np
def solve(n, j):
front = 0
for i in range(1, len(n)):
if n[-i-1] > n[-i]:
n[-i-1] -= 1
front = i
if front:
n[-front:] = 9
if not n[0]:
n = n[1:]
print('Case #{}: {}'.format(j+1, ''.join(map(str, n))))
def main():
T = int(input())
for i in range(T):
solv... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
d370737bcbe5ffd75991ed89aaab50c8b82d4490 | f53c1fe797979a3f36458362195b22be2a819f06 | /database.py | 7170cbef29920d91f654ffdffc4bb52bb37556f9 | [] | no_license | Amritha777/MediBoT | 82738f77040bcda7b8814f6c28b283a9c171ef0d | f1070466b5ad0ff6db03b4b15304a2fa957d0d1f | refs/heads/master | 2021-09-05T02:50:22.139714 | 2018-01-23T19:13:46 | 2018-01-23T19:13:46 | 118,656,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | import pymysql
import json
class DB:
db = None
def __init__(self):
try:
self.db=pymysql.connect("localhost","root","123456789","MediBOT")
except Exception as e:
print("Database not Found")
def get_med(disease):
cursor=db.cursor()
cursor.execute("select medicine from medicines where Illn... | [
"noreply@github.com"
] | Amritha777.noreply@github.com |
ccd699e60459bbf8af8540cc3922d590f42b4547 | a17bed6af99239b59d693fb68bc4163339412469 | /config/config.py | 63ec2023ba7cc7bb0be221e02132d290dbd89898 | [] | no_license | Mubangizi/Epic-Mail-Backend | 43b6b5801273122302675de146cf0ce8a3162fb8 | 8cdb4414a25d08db3aa4eb6141fb91d3dbd207fc | refs/heads/master | 2022-09-27T04:48:38.307997 | 2020-03-20T14:22:31 | 2020-03-20T14:22:31 | 247,948,530 | 0 | 0 | null | 2022-09-16T18:19:15 | 2020-03-17T11:06:58 | Python | UTF-8 | Python | false | false | 584 | py | import os
class Base:
""" base config """
class Development(Base):
""" development config """
DEBUG = True
SQLALCHEMY_DATABASE_URI = "postgresql:///epicmail"
class Testing(Base):
""" test environment config """
TESTING = True
DEBUG = True
# use a separate db
SQLALCHEMY_DATAB... | [
"mubangizia22@gmail.com"
] | mubangizia22@gmail.com |
0f91df3955342d356b8bdf5ba87bb6bf4ba74fd1 | a64d2a7ef8f4dd53cb366c4ba5f0065f9f9ed33c | /flatten.py | 11aaeebf6f8d62104cc0c854e339ce6ed438f08e | [] | no_license | DerekRoy/CMPT414FinalAssignment | 2b5ed011bac50e8759815394c154bd1afa8edac3 | f4ca585e3a9b382f2c1648bbbae17e1da1c810ca | refs/heads/master | 2021-03-15T17:07:57.687593 | 2020-04-11T18:04:46 | 2020-04-11T18:04:46 | 246,867,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | import numpy as np
def is_array(potential_array):
return isinstance(potential_array, np.ndarray) or isinstance(potential_array, list)
class flatten:
def __init__(self, input_shape):
self.output_shape = (np.prod(input_shape), 1)
def out(self):
return self.output_shape
def flatten(se... | [
"alex@minderov.com"
] | alex@minderov.com |
4b4fb06a5c7779a15bbde10c3ca456691d7aa16b | 2ed6ad4a736879a47d192159da45ca56610c089a | /tests/test_utils.py | 5322f50e74f0e19c141fd1adbdd2a5b05e92fb39 | [
"MIT"
] | permissive | poonyisaTH/gsheets-db-api | a82bd35984766697757cc96aa74a1281d948f019 | f023b32986d4da9a501fca8d435f2b6edc153353 | refs/heads/master | 2023-05-29T15:01:10.604324 | 2021-02-17T20:59:41 | 2021-02-17T20:59:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,952 | py | # -*- coding: utf-8 -*-
import unittest
from moz_sql_parser import parse
import pyparsing
from .context import format_gsheet_error, format_moz_error
class UtilsTestSuite(unittest.TestCase):
def test_format_moz_error(self):
query = 'SELECT ))) FROM table'
with self.assertRaises(pyparsing.ParseE... | [
"roberto@dealmeida.net"
] | roberto@dealmeida.net |
b7420d59481fb281fa17f4810d519a2e48c5a60e | 5d33fbaec7b29217106e8249800eee3977f677f0 | /load_data.py | 98c685104cb2978ccffd09288d2c1d075b1abe1f | [] | no_license | rk1998/cs7648-project | c4409fa57fb5f92795ccb44e06028b9f6746dd21 | e145cfc8f025e35214b2b44bb22b54759e172bde | refs/heads/main | 2023-06-25T02:05:00.275210 | 2021-07-25T00:56:45 | 2021-07-25T00:56:45 | 351,656,031 | 0 | 0 | null | 2021-04-29T17:31:59 | 2021-03-26T03:57:17 | Python | UTF-8 | Python | false | false | 10,925 | py | import torch
import torch.nn as nn
import torch.optim as optim
import numpy as np
import pandas as pd
import nltk
from nltk import word_tokenize
from nltk.tokenize import TreebankWordTokenizer
nltk.download('punkt')
from tokenizers import BertWordPieceTokenizer
from collections import Counter
import os
import sys
from... | [
"rohithk98@gmail.com"
] | rohithk98@gmail.com |
26c3ed7037c5e7c99c281a9602db0848de390886 | ce55c319f5a78b69fefc63595d433864a2e531b5 | /前后端分离-vue-DRF/houfen_DRF-projects/15day周末作业/booklogin/user/views.py | ea76a3b29e6788ab22cbcb4e135039d76dd5f722 | [] | no_license | Suijng/1809_data | a072c875e8746190e3b715e53f1afe3323f4666b | 45f8a57089f5c30ccc1a3cddb03b76dc95355417 | refs/heads/master | 2022-12-21T12:38:30.458291 | 2019-09-27T01:14:41 | 2019-09-27T01:14:41 | 211,207,071 | 0 | 0 | null | 2022-11-22T03:16:18 | 2019-09-27T00:55:21 | HTML | UTF-8 | Python | false | false | 7,016 | py | from django.shortcuts import render
# Create your views here.
from rest_framework.views import APIView
from rest_framework.response import Response
from user.serializers import ResgsterUserSerializer,CategorySerializer,\
BookDetailSerializer,BookSerializer,\
ChpaterListSerializer,ChpaterDetailSerializer
from ... | [
"1627765913@qq.com"
] | 1627765913@qq.com |
186f257abc7925e21ac032fd77c21762f7c90112 | 21d9a124b7ae9529e4f0f07f5643ea0386b2543d | /python/HelloWorld/TFunRef.py | 3eaf2a7834e308462b5ea365feb6461077fa1340 | [] | no_license | gitsoftsun/Learn | 7d8a1257940bf5264db08b46e7af783d59f482eb | c8df897507ccda655b467b35f8d37636a269a5f0 | refs/heads/master | 2016-09-06T18:24:45.318306 | 2015-04-11T09:37:44 | 2015-04-11T09:37:44 | 29,095,566 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | #coding=utf-8
# python 中所有参数, -传引用
#function defination is here
def printStr(str):
"print str"
str = "change value in function";
print str;
return;
#you can call printStr function
str = "Hello";
print str;
printStr(str);
#function defination
def printInfo(name, age):
"print info"
print "My name is : %s, I'm %d ... | [
"cstlizy@hotmail.com"
] | cstlizy@hotmail.com |
7f963dcecc9d3f15af04ffcd545a9236de141722 | ef208d5a0cfcba5cfd3fdf3780b9511b4291f71a | /Project/get_tweets.py | c7e15510fdf212ef1aab0a14a04624b9358be253 | [] | no_license | freshlybreemed/BricksquadApplication | df73b0f5d9e5b2513a3e4b7cc124e739b3073d03 | b42ec5f7107f2194f0cf6c6dc9ceb04208dc8978 | refs/heads/master | 2021-05-28T13:03:45.518778 | 2014-03-19T23:14:20 | 2014-03-19T23:14:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,349 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from tweepy.streaming import StreamListener
from tweepy import OAuthHandler
from tweepy import Stream
import json
import re
import sys
consumer_key="Aon0bjz4YJrSvK5AaYOmaA"
consumer_secret="ok6n7nLFnTK7sPgfJy9KePVWWpNLsf66ZjG2qxybE"
access_token="702257119-3JFCScVL8HSioH3Twx... | [
"ebrima.jobe92@gmail.com"
] | ebrima.jobe92@gmail.com |
932cad2a12e44b2877efbb474a3bd04f002556c0 | d18abe85b1f1a354b04018ac9378a72a14430de9 | /cdrentalDatabase/cd/clerk.py | 019e3d0f5dbceba42cf3eabd8335d88d365fa9e7 | [] | no_license | diofelpallega/CSC-183-Activities | ce73f9d474e6db1df946e7cfb17bf16b484b37ae | 4b83cf93241c7f765546379abd2771c6b7f3b56e | refs/heads/master | 2021-01-01T18:38:13.045771 | 2014-12-11T12:34:30 | 2014-12-11T12:34:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | from dosql import *
class Clerk(object):
def __init__(self):
pass
def checkout(self,cdid,customerid):
b = doSql()
query = "SELECT get_customer_rented('"+customerid +"' );"
items = b.execqry(query,False)
result = []
for item in items:
... | [
"diofel.pallega@gmail.com"
] | diofel.pallega@gmail.com |
0c368647695205def899acb08a90a2cba0279ade | 644db7457d18200ffc709f5c24ebeba4f2a7a813 | /TensorFlow/Chapter10/1. GPU基本操作.py | 3d586000e850dd3aab94e29817532f23aac40be4 | [
"MIT"
] | permissive | yisampi/Notes-of-TensorFlow-and-Keras | b3619824b0ea7be322af10ae26a7b5c7f5220ece | 9805c37ae2ccad961214f93101208af6a8efe144 | refs/heads/master | 2020-05-23T21:43:07.820042 | 2019-05-09T02:55:39 | 2019-05-09T02:55:39 | 186,960,119 | 2 | 0 | MIT | 2019-05-16T05:51:03 | 2019-05-16T05:51:01 | null | UTF-8 | Python | false | false | 975 | py | # coding=utf-8
import tensorflow as tf
a = tf.constant([1.0, 2.0, 3.0], shape=[3], name='a')
b = tf.constant([1.0, 2.0, 3.0], shape=[3], name='b')
c = a + b
# 通过log_device_placement参数来记录运行每一个运算的设备。
sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))
print sess.run(c)
# 通过tf.device将运算指定到特定的设备上。
with ... | [
"1679871747@qq.com"
] | 1679871747@qq.com |
bcf4694b4be4de84974a88f8c1e0c68664a56527 | 4913fb7fd32c3dd0da53af7a012569ec2254b35a | /59.集合数据的操作.py | 75c83dbf6875876bad10856772cd2746191883a6 | [] | no_license | puhaoran12/python_note | 8a21954050ba3126f2ef6d5d1e4a2904df954b9b | b807e7b7dd90c87cee606f50421400c8f3d0ba03 | refs/heads/master | 2023-07-07T20:20:04.546541 | 2021-08-21T02:17:12 | 2021-08-21T02:17:12 | 398,439,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | #交集intersection() 或者 &
s1={10,20,30}
s2={30,40,50}
print(s1.intersection(s2))
print(s1 & s2)
#并集union() 或者 |
print(s1.union(s2))
print(s1 | s2)
#差集difference() 或者 -
print(s1.difference(s2))
print(s1 - s2)
#对称差集symmetric_difference() 或者 ^
print(s1.symmetric_difference(s2))
print(s1 ^ s2)
| [
"276191374@qq.com"
] | 276191374@qq.com |
6e476551aad9c0a33a8007d074245b6a965d219e | 5f052c5ebc53e8d72978fad1f6232778c404b417 | /hera/bin/hera-simulations-hermesWorkflow | 3468e9e3d3c86d6d9356592b705931e76e129c08 | [] | no_license | swipswaps/Hera | e7afa0cb0f15f377cd0ed47a27ff47c6e248439e | 7fbf20536c81c54cd69d1745f88bbcb264158e82 | refs/heads/master | 2023-01-23T02:36:26.581758 | 2020-12-07T14:20:57 | 2020-12-07T14:20:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,768 | #! /usr/bin/env python
import argparse
from hermes import expandWorkflow
from hermes import hermesWorkflow
import json
import os
import pathlib
from hera.datalayer import Project
from pathlib import Path
class argsHandler(Project):
templateDocType = "HermesOpenFOAM"
def __init__(self,projectName=None):
... | [
"davidg@example.com"
] | davidg@example.com | |
a8cbba2afa5ccdb4f7f8580d54d4c531a781cf8e | b1bddabb1fb57b06c652594ec0e6c09c8d0c4650 | /ROOK/gamestatistics.py | 6f7fa834cd0345a0a6da82e620f54a43a8c7056a | [] | no_license | JacobClark95/Personal_Projects | bda4529a792f870b264676aa287662994f322798 | 56753aff22f6545989e199ae85b2909c17f0866f | refs/heads/master | 2020-04-11T00:47:05.744449 | 2018-12-11T21:39:27 | 2018-12-11T21:39:27 | 161,395,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,929 | py | from player import Team
from collection import Collection
from card import Card
import time
class GameStatistics():
def __init__(self):
self.roundNum = 1
self.roundLeader = None
self.sittingOrder = []
self.teams = {Team.BID_WINNER:[], Team.REGULAR:[]}
self.cardsWon = {}... | [
"jacobclark@Jacobs-MBP-3-010034237103.app.byu.edu"
] | jacobclark@Jacobs-MBP-3-010034237103.app.byu.edu |
e2e964631eef116474cd151983314c48a21da834 | 3596fd6714859644f882d4cf21bdc5988ceadff1 | /loader/migrations/0002_auto_20190731_1821.py | 96be8f3c13eee21a3d848d575074d18ee007b210 | [
"MIT"
] | permissive | and-sm/testgr | 9e54526baad6105f146abd2d40dd35510f4e9a84 | 231f6906fa3a2d29e43d407f0637214fe2bf4fa0 | refs/heads/master | 2023-05-01T14:45:45.742927 | 2022-05-10T06:43:18 | 2022-05-10T06:43:18 | 149,164,578 | 21 | 4 | MIT | 2023-03-31T15:25:03 | 2018-09-17T17:45:01 | Python | UTF-8 | Python | false | false | 755 | py | # Generated by Django 2.2.1 on 2019-07-31 18:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('loader', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='testjobs',
name='uuid',
fi... | [
"and.inbx@gmail.com"
] | and.inbx@gmail.com |
ad364d115bc6776a6a8c7228e0e343adfa03863e | 9860ae1038952cc6fe25cddeab0e50d51692baee | /problem/exercise_08_14.py | 633c0a7d34ee4581bd6821cc500550f6fcee7b7b | [] | no_license | messiLiao/ai_for_robotics | e303be6327f6d31eb090457f4b9cbc4a9f4cad62 | 318584dc0a6cce043cd26c472cdb17388d1a6ae4 | refs/heads/master | 2021-09-06T06:51:54.033527 | 2018-02-03T13:25:02 | 2018-02-03T13:25:02 | 104,562,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,867 | py | # Now we want to give weight to our
# particles. This program will print a
# list of 1000 particle weights.
#
# Don't modify the code below. Please enter
# your code at the bottom.
from math import *
import random
landmarks = [[20.0, 20.0], [80.0, 80.0], [20.0, 80.0], [80.0, 20.0]]
world_size = 100.0
class robot... | [
"krobor.lmx@gmail.com"
] | krobor.lmx@gmail.com |
cbc7ff8ebf0f55d2d54140505ce153702a872ce4 | 9784a90cac667e8e0aaba0ca599b4255b215ec67 | /convert_models.py | d3b743be02b1e3c57c11c482699a1440c12daa44 | [
"MIT"
] | permissive | osmr/imgclsmob | d2f48f01ca541b20119871393eca383001a96019 | f2993d3ce73a2f7ddba05da3891defb08547d504 | refs/heads/master | 2022-07-09T14:24:37.591824 | 2021-12-14T10:15:31 | 2021-12-14T10:15:31 | 140,285,687 | 3,017 | 624 | MIT | 2022-07-04T15:18:37 | 2018-07-09T12:57:46 | Python | UTF-8 | Python | false | false | 87,933 | py | """
Script for converting models between frameworks (MXNet, Gluon, PyTroch, Chainer, Keras, TensorFlow).
"""
import argparse
import logging
import re
import numpy as np
from common.logger_utils import initialize_logging
def parse_args():
parser = argparse.ArgumentParser(description="Convert models (Gluon/PyT... | [
"osemery@gmail.com"
] | osemery@gmail.com |
4e06e836da5cf68854d332fed25e2651f482fe55 | 2ba87ce6df8179d06599c08b9afaadaea0a6dfee | /io模型/BIO.py | 276806b66441af383e6db2328feee980048f0d85 | [] | no_license | github-zbp/operating-system | 1e85446a3748fe663eb064cf64d06f2644cde5ff | 5a55405c2059848abd46ab65de9581d246092675 | refs/heads/master | 2023-01-11T23:04:29.396614 | 2020-11-09T07:20:22 | 2020-11-09T07:20:22 | 264,598,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | # coding=utf-8
from threading import Thread, currentThread
import socket
# 服务端代码
# 创建套接字
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# 绑定ip和端口
ip = "127.0.0.1"
port = 8000
server.bind((ip, port))
# 监听套接字
server.listen()
print("服务已开启")
def contact(client):
print("客户端 %s 已成功连接" % currentThread()... | [
"1640632344@qq.com"
] | 1640632344@qq.com |
c51fdfcbfcba03c2c6e8a2f54cd4ea6ac71386b3 | 6ebd656e2eff394454bdaba1a5793859aa3adc17 | /bot/utils/config.py | abe8bd0ffbba562e027c069356f3974412fa9b10 | [] | no_license | streemline/aiogram_template | 7d98e9286675db1ab0d21d65519bb2c9bc94bceb | 8cf2d3ea0a45b5bdf4e672af7397febe786b8c1d | refs/heads/main | 2023-06-02T01:23:26.903261 | 2021-05-11T12:03:49 | 2021-05-11T12:03:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | from yaml import load
from . import exceptions
from .trafaret import config_trafaret
try:
from yaml import CLoader as Loader
except ImportError:
from yaml import Loader
def parse_config(path, check=True):
"""
Parse a config.
"""
try:
with open(path) as file:
config = loa... | [
"zhogalkostya@gmail.com"
] | zhogalkostya@gmail.com |
87d25e6b41c0eb727cfc908b91e9860fdcc17135 | d5087da467f07bc88579955a8ce9454cba8a3703 | /gestionusuarios/apps.py | d6ce7ba72cb30b0ef1374db560924a53ea6d416b | [] | no_license | RobJVE/Gestion-TrabajosdeGrado | 99744fcc9542d6c53748acbd79f508b3a8bfc122 | e929d6bca4d48570b5eaaf773c60eb511197a769 | refs/heads/master | 2020-11-28T16:17:01.318021 | 2020-01-08T17:19:54 | 2020-01-08T17:19:54 | 229,865,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | from django.apps import AppConfig
class GestionusuariosConfig(AppConfig):
name = 'gestionusuarios'
| [
"robertojve12@gmail.com"
] | robertojve12@gmail.com |
687597834631051ff823fce8248de22de124ebb5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02553/s242742740.py | 19cb61040111d626c69f31e200e94dcd971f47c1 | [] | 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 | 78 | py | a,b,c,d = map(int,input().split())
s = max(max(a*c,a*d),max(b*c,b*d))
print(s) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5c4b29381d1a76a65cb65bf7d3de213c703febac | c63b62dc2eb7e873289040df6377f47a168c6d31 | /flask/bin/jupyter-migrate | 8bf29f46c530501d07406642f52fa211ddd74bd4 | [] | no_license | onepau/baromontres | c801299b0849100fb6b27ba0551c73cafc72afcf | ae538e46c47a76d61c01c5f3d6ad1513eb0dced1 | refs/heads/master | 2021-01-22T19:22:37.271408 | 2017-03-17T17:30:35 | 2017-03-17T17:30:35 | 85,192,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | #!/Users/pauloneil/ML/baromontres_flask/flask/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from jupyter_core.migrate import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"pauloneil@MacBook-Air.local"
] | pauloneil@MacBook-Air.local | |
4e860abb10b550c48e16c59c692326f5f75730fa | f08177abce14672891c34c0eecc064f2b42f2441 | /hydrus/client/db/ClientDBMappingsCounts.py | 5df0ef9fa636429b38e960148136fbb76dc8a01a | [
"WTFPL"
] | permissive | bbappserver/hydrus-userpatch | d217006cc7691a08c11c98ddfd2415da56d6b27d | ef19e2167e24433d960a0811a93a683d62203518 | refs/heads/master | 2022-09-19T03:36:16.575489 | 2022-05-04T21:40:27 | 2022-05-04T21:40:27 | 179,595,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,801 | py | import collections
import sqlite3
import typing
from hydrus.core import HydrusConstants as HC
from hydrus.core import HydrusDBBase
from hydrus.client import ClientData
from hydrus.client.db import ClientDBModule
from hydrus.client.db import ClientDBServices
from hydrus.client.metadata import ClientTags
def GenerateC... | [
"hydrus.admin@gmail.com"
] | hydrus.admin@gmail.com |
1265bb8736bd9b11afc120fcc3bdcb77428869ec | 29a4c1e436bc90deaaf7711e468154597fc379b7 | /modules/ieee/doc2/nextpow2.py | 7c5fcf15c55e96875561be4f21550ed813ecbc7a | [
"BSL-1.0"
] | permissive | brycelelbach/nt2 | 31bdde2338ebcaa24bb76f542bd0778a620f8e7c | 73d7e8dd390fa4c8d251c6451acdae65def70e0b | refs/heads/master | 2021-01-17T12:41:35.021457 | 2011-04-03T17:37:15 | 2011-04-03T17:37:15 | 1,263,345 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,923 | py | [{'functor': {'arity': '1',
'call_types': [],
'ret_arity': '0',
'rturn': {'default': 'typename nt2::meta::as_integer<typename boost::result_of<nt2::meta::floating(T)>::type, signed>::type'},
'type_defs': [],
'types': ['real_', 'unsigned_int_', 'signe... | [
"jtlapreste@gmail.com"
] | jtlapreste@gmail.com |
3aa8275b4ed0528fc62812ebb986cdc0e2bfc848 | d02385211c75b168da9eff2acb221a42b9e28fb0 | /File IO/read_write_append.py | 859bf052b9f2a54e505d5f60371abba33aaeb9f8 | [] | no_license | PMLS3/PythonLearning | 0b53c0ca72f61e6a51df5b5399914dd289b22f73 | b936dd70096ebbec3cc14c1b2efa9995dc2c4521 | refs/heads/main | 2023-02-10T05:02:01.525277 | 2021-01-06T14:44:14 | 2021-01-06T14:44:14 | 324,515,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 936 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Aug 23 13:27:09 2020
@author: saura
"""
with open("happy\happy.txt", mode = 'a') as my_file:
text = my_file.write("I am HAPPY!")
print(text) # it prints the no. of letters written into the file
with open("happy\happy.txt", mode = 'r') as my_file:
pri... | [
"peet@partnersinbiz.tech"
] | peet@partnersinbiz.tech |
969ff18c3b0c3ebd06ccfc2dc0dfe97216e6a725 | 6a47ec6800610ea93479f91505e73a3eb4f34ae0 | /user/serviced.py | 74e25a9df84b86e320e670d436afb861e42769b5 | [] | no_license | risification/queue_project | 1158aac7bae3b04f98c106c23c27281c96bcaf41 | e85f9f2d1835f10a0247a569f88d4cb29803538a | refs/heads/master | 2023-04-26T08:05:25.573243 | 2021-06-07T21:03:47 | 2021-06-07T21:03:47 | 374,119,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | from django.contrib.auth.models import User
from django.core.mail import EmailMessage
def mailing(username):
email_list = []
obj = User.objects.filter(is_superuser=True)
for user in obj:
email_list.append(user.email)
subjects = 'hi'
body = f'User with {username} register in database, pls c... | [
"sultangaziev01@bk.ru"
] | sultangaziev01@bk.ru |
af1e5056aec3be9d614a4fd505910033c83a7e61 | 44c1ac9a83b26ab70b7ce0148acbd933e1a946c3 | /inss/src/mossoroposts/tables.py | 4020a530ac55f476c913803c46e565a0ebbdf0ec | [] | no_license | pedromaia02/ls_deploy | b9348d37260b7e55d526c840d6bbcff9a30033e5 | 9c6f8bb077455389bc541e1917974ee6c78e6b6d | refs/heads/master | 2020-04-05T22:57:15.165172 | 2017-10-08T21:08:16 | 2017-10-08T21:08:16 | 68,154,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,397 | py | # -*- coding: utf-8 -*-
# Customizar as tabelas do django-table2
import django_tables2 as tables
from .models import MossoroPosts
class PostsTable(tables.Table):
actions = tables.TemplateColumn("<a href=/inssmossoro/{{record.id}}>Detalhes</a> - <a href=/inssmossoro/{{record.id}}/edit>Modificar</a> - <a href=... | [
"pedromaia02@gmail.com"
] | pedromaia02@gmail.com |
0270e9279a918710ee3c169034fee4444e0cf5c2 | 21e0aec25b83feccb3d1dd0e8970fd71971b969a | /main.py | 49b9b47ebbe57208492719c0118f09b3e2039fd3 | [] | no_license | Estex-cyber/battery_check | f8974a0510ad22b06289fb8b245fde48cd7b2116 | 883d053155b27a113f1982c702ab06faf137b9ce | refs/heads/main | 2023-04-03T03:08:11.231774 | 2021-03-24T08:06:40 | 2021-03-24T08:06:40 | 347,199,312 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | import psutil
battery = psutil.sensors_battery()
if battery.power_plugged:
print("Charging", battery.percent, "%")
elif not battery.power_plugged:
print("Not charging", battery.percent, "%")
print("Discharge time", int(battery.secsleft), "sec left")
if int(battery.percent == 10) or int(batter... | [
"noreply@github.com"
] | Estex-cyber.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.