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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
69879d63ef151e35f7b15d926128af624248140f | 597c16d7a3feda2c9ee0116b13a691904c314323 | /og_detect.py | 4f35dc633a111adfe3616484f4b9fbf9a964eecf | [] | no_license | jmyth742/cardetection | c76f3525d5eaa56e51bb7105f3c9c08904cd3d80 | 0678634aabbb9ed75c150b3405e7ed0657baa9d8 | refs/heads/master | 2020-07-20T14:24:58.623775 | 2019-09-05T21:15:21 | 2019-09-05T21:15:21 | 206,658,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,677 | py | # USAGE
# python detect_shapes.py --image shapes_and_colors.png
# import the necessary packages
from pyimagesearch.shapedetector import ShapeDetector
import argparse
import imutils
import cv2
import numpy as np
import math
# construct the argument parse and parse the arguments
ap = argparse.ArgumentParser()
ap.add_arg... | [
"jmyth742@gmail.com"
] | jmyth742@gmail.com |
65d3e45c8943b34f7c32a6e81bda97edf3d64012 | 554185c15e2e27ca7458b9255b33765d10842063 | /places/management/commands/seed_facilities.py | c134e87a5aae62bda45d114a11e09fe294bdeebc | [] | no_license | jangtang2/new-soup | df2179fb1922694fef3abe2102e8f7c4fc82e3fb | 0e5b1d24c6010e69724077ce1346ddbbdaf73caf | refs/heads/master | 2023-01-13T07:04:25.903935 | 2020-11-17T05:38:19 | 2020-11-17T05:38:19 | 307,564,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 913 | py | from django.core.management.base import BaseCommand
from places.models import Facility
class Command(BaseCommand):
help = "this command creates facilities"
def handle(self, *args, **options):
facilities = [
"일반 야영장",
"자동차 야영장",
"카라반",
"글램핑 시설",
... | [
"58350257+jangtang2@users.noreply.github.com"
] | 58350257+jangtang2@users.noreply.github.com |
57e5b099a7aba0a567d79c666f7ce9e55076ba65 | 9bef9362eda4e72ca97ebac62abf20897a57da4f | /tracking.py | 0116424717b2d5610cb420aae92e400f2c95f35f | [
"MIT"
] | permissive | fossabot/ar4maps | ca95ed9c1e32ee97bb0596b9f2606ce09cb3c22a | 053a0bc623c40a8b3aa1e3e7ce57b10f00ae2849 | refs/heads/master | 2022-09-19T15:06:53.937698 | 2020-05-25T14:55:45 | 2020-05-25T14:55:45 | 266,807,089 | 0 | 0 | MIT | 2020-05-25T14:55:40 | 2020-05-25T14:55:39 | null | UTF-8 | Python | false | false | 3,936 | py | # *****************************************************************************
# * Author: Miguel Magalhaes
# * Email: miguel@magalhaes.pro
# *****************************************************************************
# * Tracking
# *****************************************************************************
impor... | [
"magamig@gmail.com"
] | magamig@gmail.com |
874c3dde6910f2292e364951168015866b9993e6 | 7edb6c3726ed528947ba7085b408c63fcdaf3644 | /source/test.py | d5f4e807c3d4695c925e27097e5af937a821037e | [] | no_license | taizilongxu/django_blog | abe095c80149713c530106983e963b4238a9fc4b | 368c23a2384885df9a278e267eadde7e6950504c | refs/heads/master | 2016-09-10T09:44:23.104985 | 2014-05-30T01:47:30 | 2014-05-30T01:47:30 | 19,595,117 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | #---------------------------------import---------------------------------------
#------------------------------------------------------------------------------
F = open("./times.txt")
txt = eval(F.read())
print txt
###############################################################################
| [
"468137306@qq.com"
] | 468137306@qq.com |
0cfdab9ae218e611fc20903b6240bf6b4b53a394 | 210c26ee3bad6aaf99f57a5f24b47432eb00e6b8 | /catkin_ws/build/print_squares/catkin_generated/pkg.develspace.context.pc.py | a259ec71e54e8bc31dc88f2d7a721ad494f862d6 | [] | no_license | g4gekkouga/gegekkouga_print_squares | f7242767f82728352ee0ae0f356cb7b78a73c039 | 87c7f4edd9f91273b036ef56a3c94ad1e423aaa7 | refs/heads/master | 2020-04-21T20:43:20.493540 | 2019-02-10T01:49:22 | 2019-02-10T01:49:22 | 169,854,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/amshumaan/gegekkouga_print_squares/catkin_ws/devel/include".split(';') if "/home/amshumaan/gegekkouga_print_squares/catkin_ws/devel/include" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';',... | [
"amshumaan6pericherla@gmail.com"
] | amshumaan6pericherla@gmail.com |
7535b54ed5c1c8c82c19d8f82947cc1add6169cd | 09defa0bc1cd681c9f3887385f23c0db34efbffa | /myapp/migrations/0014_auto_20191201_0005.py | cf5ed2b2c3ab6f23f80203a5dbb848abfd943940 | [] | no_license | dhruvapanyam/ravel | 7db419246d254fdfe1c296f183f33d2b27cc47d2 | 2f4f6470337080a8617d62dcb0bbfbac4b1df1bb | refs/heads/master | 2022-04-10T18:17:20.150015 | 2019-12-04T08:22:03 | 2019-12-04T08:22:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | # Generated by Django 2.2.7 on 2019-11-30 18:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myapp', '0013_auto_20191130_2352'),
]
operations = [
migrations.AlterField(
model_name='flight',
name='flight_name',... | [
"dhruva.origami@gmail.com"
] | dhruva.origami@gmail.com |
c53c3a33011f881939303657b1677ec862eebcab | d76f879679ed19cee8965f777b12b0d955854fd3 | /ooapi/views.py | a70201a07e2ca5e3dc02fc7494ea4662003e625a | [] | no_license | datastark/oilmodels | 9de6994b9352ec1761f42744992907718d24bfbd | 2c13f1798fb8bb715e91bbf94150466628261b3b | refs/heads/master | 2021-01-12T21:18:22.643352 | 2016-04-11T09:09:17 | 2016-04-11T09:09:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,678 | py | from django.shortcuts import render
from ooapi.models import Concession,APIKey
from django.core import exceptions
from django.core.mail import send_mail
from django.http import JsonResponse,HttpResponseForbidden,HttpResponse
# Create your views here.
def require_api_key(func):
def inner(request, *args, **kwargs)... | [
"daniel@ohuiginn.net"
] | daniel@ohuiginn.net |
892a164d926d0ef0796ff7c322ef22178f33cb1e | 3f16e66b33b39df8866947fcf1d8249476725c03 | /mymodule/test1/file1.py | 051436656cfe2394e1be22e4365ad29c246bff90 | [] | no_license | VadimVolynkin/learning_python3 | ea3559e0f01b4c9e09ae82b76ca315de8e41ecc4 | 872f0a2ac296ec3242ac9b81f63a29f09bc614fa | refs/heads/main | 2023-08-10T05:39:04.376172 | 2021-09-07T14:44:20 | 2021-09-07T14:44:20 | 339,133,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | print('hello from file1.py')
a1 = 'its a1 from file1'
def __a2():
a2 = 'its a2 from file1'
return a2
| [
"71ooo@mail.ru"
] | 71ooo@mail.ru |
dd9ea44609ed4c96315ef9e7285fbe5f871730ce | 30bd7e8abe0a15fbb8f1b1e4a3a9a15a3ad124a9 | /romans/src/utils/roman.py | c2a15aca81d4265a81dc04ee59ee231d8b7b4fca | [] | no_license | TiagoArrazi/Romans | c96cac19a36e5e89ea719b084693b2af0f6e1cf2 | f2841931fb9b7428acdc4604dae0535508002781 | refs/heads/master | 2020-07-12T01:53:44.220206 | 2019-08-27T12:31:34 | 2019-08-27T12:31:34 | 204,688,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,057 | py | from resources.symbols import symbols
class Roman:
@classmethod
def make_it_roman(cls, number):
if 900 <= int(number) <= 3000:
mult = divmod(int(number), 1000)
if mult[0] > 0 and mult[1] == 0:
return symbols["1000"] * mult[0]
c_amount = (1000 - in... | [
"tiago_arrazi98@outlook.com"
] | tiago_arrazi98@outlook.com |
bdd4a39547a2a59e7b2623a224f11789e0a53b52 | fc6151dea7bdf44cd53d3cfe460d081f51a0ae2b | /intrecting_with_postgres.py | 66ff3b2bc1c4bd86f67452319801836281f9304c | [] | no_license | Gayatri208/adpythondb | c0cded3c47ee34702bab616bf2ff783e090e4e98 | 6906ff6bde05fb6541666798e29f3011718953e9 | refs/heads/main | 2023-04-29T02:21:51.512202 | 2021-05-22T13:07:52 | 2021-05-22T13:07:52 | 369,808,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,603 | py | import psycopg2
def insert_sale(conn, order_num, order_type, cust_name, prod_number,
prod_name, quantity, price, discount):
order_total = quantity * price
if discount != 0:
order_total = order_total * discount
sale_data = (order_num, order_type, cust_name, prod_number, prod_name,
quantity, price, discount, ... | [
"hiranigayatri@gmail.com"
] | hiranigayatri@gmail.com |
555e100f4a7d8747f7281050789ceb8551a24425 | b8e86115eae1684adbd5d9bceabf450d7a7a2c41 | /contarcifras.py | 436d1708fcfd3f54e67834ad8dd202e7ff0b587e | [] | no_license | samuelarte189/EJERCICIOS-TIC | 15316bae300313e079eea2592f62dd887f0fbbeb | 7fd71381b334e5f1253bcf4963f2920c138cf978 | refs/heads/master | 2021-09-07T13:18:24.512939 | 2018-02-23T11:49:49 | 2018-02-23T11:49:49 | 112,321,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | def contarcifras():
numero=input("dime un numero:")
ncifras=0
while numero>0:
numero/10
ncifras=ncifras+1
return ncifras
print"este numero tiene",ncifras
contarcifras()
| [
"noreply@github.com"
] | noreply@github.com |
3668b4615b62655571841c3fe2962d8a50e0b33f | 1b5ab3f252069181b5e07d4d6d177ab82e942e51 | /Homework3/Part 1/tt1.py | e219c5bb06a667aa68f443395c6215ac7c9e253b | [] | no_license | phamhailongg/C4T9 | 59214081224f37b356e209d57f0865632dccc8f6 | c400005012fb349c1388dd92c8e590322bb203e4 | refs/heads/master | 2021-07-06T11:10:05.283974 | 2019-05-05T21:46:04 | 2019-05-05T21:46:04 | 152,599,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | from turtle import *
speed(10)
color("red")
for i in range(4):
lt(120)
fd(100)
lt(-60)
fd(100)
lt(-120)
fd(100)
lt(-60)
fd(100)
lt(30)
mainloop() | [
"longphamhai123@gmail.com"
] | longphamhai123@gmail.com |
f14c49b90c661b6ac6e514e6ecfda425e0621418 | 17f2ea360d2cc77ff45ab7b61f0e03d3c9d96247 | /Stock/Trade/AccountManager/StopMode/DyStockStopLossMaMode.py | e53c9179190315d960e3820c1281b459be2d9596 | [
"MIT"
] | permissive | yutiansut/DevilYuan | 89aba2728d42a686cf989b74283a5197edfe6b49 | 6467f8c33c4692d3616f0eb0b0bf974d16e95836 | refs/heads/master | 2020-03-19T18:43:11.674992 | 2018-06-11T03:17:32 | 2018-06-11T03:17:32 | 136,821,539 | 2 | 1 | MIT | 2018-06-11T03:17:33 | 2018-06-10T15:37:24 | Python | UTF-8 | Python | false | false | 2,409 | py | from .DyStockStopMode import *
from ...DyStockTradeCommon import *
class DyStockStopLossMaMode(DyStockStopMode):
stopLossPnlRatio = -5
def __init__(self, accountManager, dataEngine, ma):
super().__init__(accountManager)
self._dataEngine = dataEngine
self._daysEngine = self._data... | [
"louis_chu@163.com"
] | louis_chu@163.com |
1a55eeeab37a4efd8d1f7a4069e8ad5548216ba4 | a5ba886407cba1d9ce5c63a943bc528cb9f60500 | /data.py | 3712dceb9f1b9f6f14b7bc953134a65fb3bb446c | [] | no_license | AndileGumada1/myflask-app | c617ee09fa07be871abf7d0c1341883995b22181 | 998bcc758f4f6b76f761c4dc07fecaa804648854 | refs/heads/master | 2023-04-05T06:35:21.323637 | 2021-04-09T23:25:41 | 2021-04-09T23:25:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | def Articles():
articles = [
{
'id': 1,
'title': 'Article One',
'body': 'json data is an array of arrays',
'author': 'Andile Gumada',
'create_date': '09-04-2021'
},
{
'id': 2,
'title': 'Article Two',
... | [
"decemberandile@gmail.com"
] | decemberandile@gmail.com |
d3bcbf1180b56154d24ae77dc7e731b6b220cf62 | 3a1598cf3803b32097da0eda2a2cbbb31dcbbec6 | /python/Sinfoc/notify/monitor_py/alert_thd.py | 9e134445916b446a1d4ed3e055be7ae3baa3b696 | [] | no_license | edpsun/Hylps-Utils | ea40c712e3b18624a0b2066d499a635b15e2a37f | b6b3e1a14b1b5600d2710ea6737de40c7bf2157a | refs/heads/master | 2020-05-20T03:52:25.875266 | 2014-08-07T10:22:23 | 2014-08-07T10:22:23 | 2,105,304 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,074 | py | import threading
import time
import os, sys
class MsgAlert(threading.Thread):
def __init__(self):
threading.Thread.__init__(self)
self.is_show = False
self.interval = 5
self.setDaemon(True)
def set_show(self, b):
self.is_show = b
def run(self):
while True:
if self.is_show:
if os.nam... | [
"edpsun@gmail.com"
] | edpsun@gmail.com |
282743b0f6f4fd6024757d034f3d022c0cd7242a | 51d5f10a93e8092a001398aa35dc89dc98f7f47f | /b2wHackathon/AmePequenosNegocios/migrations/0003_auto_20200822_1750.py | 9aeec9fc87aba3539c34c93a6d03430ca3afcca9 | [] | no_license | danielpassy/Hackathon_B2W-BackEnd | 301fc840db5a7dc3d67bab9f2e52c532c7fc5da4 | 24d7be49fff3e4f75832e33d89d3f8e6fe877012 | refs/heads/master | 2022-12-06T13:16:16.331456 | 2020-08-24T02:26:06 | 2020-08-24T02:26:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | # Generated by Django 3.1 on 2020-08-22 20:50
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('AmePequenosNegocios', '0002_chat'),
]
operations = [
migrations.RemoveField(
model_name='product'... | [
"danielpassy@hotmail.com"
] | danielpassy@hotmail.com |
f7a0a2fa0e865a49765a53208422402c335ba849 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_discomposing.py | bafc1a64c9a8785f9dbb06454a7311b879d585bc | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py |
#calss header
class _DISCOMPOSING():
def __init__(self,):
self.name = "DISCOMPOSING"
self.definitions = discompose
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['discompose']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
2c81f25968a6c5cf2fbbceca6501e0da3d1070dc | 52716015da6a54651eb1b4d51155aeca59a90b04 | /FamTable.py | ea33429e63b3774cdba4752ab696a5ff0d0641fd | [] | no_license | nhilden1114/GEDCOMProject | ff1196f7d5431381a75b78a8a90cf4ade2cbfca8 | 1c82061056e523bd634cfe16ed8f3abe8f609583 | refs/heads/master | 2020-03-28T16:35:29.254991 | 2018-11-14T04:24:27 | 2018-11-14T04:24:27 | 148,710,500 | 0 | 0 | null | 2018-10-29T02:05:51 | 2018-09-13T23:40:17 | Python | UTF-8 | Python | false | false | 2,733 | py | from prettytable import PrettyTable
from Project3 import validLine
def createFamTable(file):
tab = PrettyTable()
tab.field_names = ["ID","Married","Divorced","Husband ID","Husband Name","Wife ID","Wife Name","Children"]
vals = dict({"ID":"N/A","Married":"N/A","Divorced":"N/A","Husband ID":"N/A","Husband... | [
"nicole.hilden@gmail.com"
] | nicole.hilden@gmail.com |
9911a6aa3596dacfe54bc8ce4fcc2db0a132ead3 | b0948889fb9f53a7ba4ab8b70f20b734daaecab2 | /pro/set_1/3.py | 288d252178d0f454f1a7db420eee7cd8b5025a64 | [] | no_license | imabhishekkumar/GUVI | 800c32f19a0bb5aa411248a2607b8a356b939b07 | 60461a7476595271164b58a44b484f285346a0c3 | refs/heads/master | 2020-04-29T23:15:53.719580 | 2019-08-09T14:24:10 | 2019-08-09T14:24:10 | 176,471,793 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | a,b = input().split()
lenA = len(a)
lenB = len(b)
cost=0
if(lenA<lenB):
for i in range(0,lenA):
if a[i] != b[i]:
cost+=1
cost+=(lenB-lenA)
else:
for i in range(0,lenB):
if b[i] != a[i]:
cost+=1
cost+=(lenA-lenB)
print(cost) | [
"abhishek.kumar.7679@gmail.com"
] | abhishek.kumar.7679@gmail.com |
3d7e4e20678a99f2171c8af491263ebaaf9b1f39 | 34a5921552537d96d9680f88b94be1706e5c8f1a | /facets/common/consts.py | a69b16a8e80bc022fd6cd90a8ebb69d306714fae | [
"Apache-2.0"
] | permissive | hunterhector/DDSemantics | 11f1a85486349627036626d3b638db39f70030fe | 65235d8897bce403e5d628ed912e516b28254c74 | refs/heads/master | 2023-07-13T05:20:13.211363 | 2023-06-21T21:44:37 | 2023-06-21T21:44:37 | 123,484,643 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | """Define constants"""
MENTION_START_TOKEN = "[unused1]"
MENTION_END_TOKEN = "[unused2]"
HEADER_END_TOKEN = "[unused3]"
CLS = "[CLS]"
SEP = "[SEP]"
| [
"hunterhector@gmail.com"
] | hunterhector@gmail.com |
ab7c9ec7ecb8cb1038c5a771a437726d3e7c6dc8 | 5eeaefb955818a10fa96f9d6b2db8933206ff422 | /spec1-3-files2.py | e04501a9824c310a152a8aafc67c626b91934ef5 | [] | no_license | silberpavel/mark_lutz | 3c99f1b19086b6ba659b8238391ba626138e1b9f | 51d73de99fcd102b845b11c87247f9c35dcc809d | refs/heads/master | 2021-04-15T16:27:47.084548 | 2018-03-29T05:11:53 | 2018-03-29T05:11:53 | 126,179,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | import os
print(os.getcwd()) # C:\myProjects\mark_lutz
print(os.path.exists('test.txt')) # check file (if exists)
print(os.listdir('.')) # shows files
print(dir(os.path)) # useful !!!
print('\n', os.path.getmtime)
print('------------------------- tt ----------------------------')
| [
"silber.ypm@gmail.com"
] | silber.ypm@gmail.com |
a3b152abeff9b59f25a919958f7e36901eaaa4ad | 385a63d3c9e6f5815979165001f78ec3d7b90cd2 | /DrivingTDM_SetupMatlabOOP/headerAndFunctionsMotor/ximc/python-profiles/STANDA/10MCWA168-20.py | f6af4a4b73c9f33f4b74a776ed1ee7067c55ade2 | [
"BSD-2-Clause"
] | permissive | Rasedujjaman/matlabOOP | 5abb6ec94998fda5e9214ed94cf67a42bf243d4f | e1f025ab9b00a3646719df23852079736d2b5701 | refs/heads/main | 2023-07-23T21:40:53.905045 | 2021-08-31T16:12:39 | 2021-08-31T16:12:39 | 378,249,559 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 22,523 | py | def set_profile_10MCWA168_20(lib, id):
worst_result = Result.Ok
result = Result.Ok
feedback_settings = feedback_settings_t()
feedback_settings.IPS = 4000
class FeedbackType_:
FEEDBACK_ENCODER_MEDIATED = 6
FEEDBACK_NONE = 5
FEEDBACK_EMF = 4
FEEDBACK_ENCODER = 1
f... | [
"mrased01@gmail.com"
] | mrased01@gmail.com |
05ff5f5a599c92b2f689b4a53313597783b6caef | 727cdc7c9af6fdf6b4eb8444197718e5c6760019 | /asin_keyword/cookie_sele_local.py | f538225e776bc68fc0a60a43531ef76c1f359afa | [] | no_license | newer027/amazon_crawler | 0cc6feb30f9180ae48ac936eeb6af41ec06eadfd | 39d6867a8dd56b90dae5e98aa44e6df274439f8e | refs/heads/master | 2022-11-23T17:04:33.995126 | 2020-04-03T15:42:42 | 2020-04-03T15:42:42 | 252,774,253 | 1 | 0 | null | 2022-11-22T01:44:53 | 2020-04-03T15:42:31 | CSS | UTF-8 | Python | false | false | 4,831 | py | import time, pickle
from selenium import webdriver
from .validation import validation, validation_jp
from PIL import Image
from pytesseract import image_to_string
from random import *
from urllib.request import urlretrieve
from bs4 import BeautifulSoup
#from .emails import send_email
from pyvirtualdisplay import Displa... | [
"newer027@gmail.com"
] | newer027@gmail.com |
57ca134de961ddf6a494d2abcf622a29832b057d | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-2/07acc579db839170122fc66505a886ef023d5f4f-<execute_install>-bug.py | 46e7feb105b1c13945aa837f5c23514abfcee9e9 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,454 | py |
def execute_install(self):
'\n uses the args list of roles to be installed, unless -f was specified. The list of roles\n can be a name (which will be downloaded via the galaxy API and github), or it can be a local .tar.gz file.\n '
role_file = self.options.role_file
if ((len(self.args... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
a20c8ec38de994b1fd5f7950f0214c5903b45194 | a8526a28ab0a2883c87230f35b8aae80910a8643 | /runserver.py | e0e0ee8ae18c713a4992845b5b15f64d1243e8ac | [] | no_license | RyanBarrus/BDP_Flask | c6642faf2984750989495c933254112bd304c169 | 74274decfb78bd6d7e294297acb9a1570da5afb5 | refs/heads/master | 2022-06-20T03:32:37.561996 | 2020-05-12T16:25:50 | 2020-05-12T16:25:50 | 261,840,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | """
This script runs the FlaskWebProject application using custom development server.
"""
from os import environ
from FlaskWebProject import app
if __name__ == '__main__':
# from waitress import serve
# serve(app, host="0.0.0.0", port=5555)
HOST = environ.get('SERVER_HOST', '0.0.0.0')
try:
POR... | [
"RBarrus@1800Contacts.com"
] | RBarrus@1800Contacts.com |
bf22eb23732562a13ea8ebf5d84b472b0a0bbc8c | cfeea8b5b7bad0efaa0e2ee47f3ddc5a261eb551 | /bot_template.py | d6852f6156eca661d9c6a2b4cdc351916932770d | [
"MIT"
] | permissive | pranaymethuku/reddit-bot | c5af2589ad715f0018fc5096925f5bb259392972 | 4e1d0a64dee10f5576eca0558d7d21fee0cd413e | refs/heads/master | 2020-05-31T16:16:20.983398 | 2019-06-05T13:07:29 | 2019-06-05T13:07:29 | 190,377,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,059 | py | import praw
import pdb
import re
import os
BOT_NAME = 'botname'
SUBREDDITS = 'subreddit1+subreddit2'
# LOG_FILE = 'reply.log'
# Create the Reddit instance and log in
reddit = praw.Reddit(BOT_NAME)
subreddit = reddit.subreddit(SUBREDDITS)
# For reply to any comment
for submission in subreddit.hot(limit=10):
submi... | [
"pranaymethuku@gmail.com"
] | pranaymethuku@gmail.com |
13a3632d1708979879cbf64a7a7ec06daeb31812 | 9509bc6d2d2140b3a9f9b92410d861fea74a9b56 | /Math/randomJump.py | 664da401f1b9b553a5bdaa8144fcd4f2f853b342 | [] | no_license | jbarker436/Minecraft_Pyhton_Repo_7772 | db21ba283d4fb9a07dc7f2d913e1db042e9555aa | 50c4d285a4d4ddab7a24a9ef413779ae47dc4147 | refs/heads/master | 2021-09-09T13:38:11.622386 | 2018-03-16T15:34:20 | 2018-03-16T15:34:20 | 117,864,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | from mcpi.minecraft import Minecraft
mc = Minecraft.create()
import random
pos = mc.player.getPos()
x = pos.x
y = pos.y
z = pos.z
x = x + random.randint(-10,10)
mc.player.setPos(x, y, z)
| [
"jbarker436@lsr7.net"
] | jbarker436@lsr7.net |
4ceda0b049891a9c2963a7c0c48c3f511140ac69 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/HundredRun/PG_0132+151/sdB_PG_0132+151_lc.py | 8918441d2824176148a8e7a956f7ebd08c4bc153 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[356.757495,15.400942], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_PG_0132+151 /sdB_PG_0132+151_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if __name... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
f77642f6e6ab351d244463355ffed0e5ba698437 | 586a16d6878fdfca6358e50fe5a277dd221fdac2 | /manage.py | 6e66da2bea0295d08c1e585ac0038cbdcbd08ca1 | [] | no_license | CAUCHY2932/flask_blog | 9bad1b4b0c25d343ee270b63c31c67ceea2047f6 | 6d9878beebeb1eeea7af318074ac9357d4a33efc | refs/heads/master | 2020-12-02T17:05:20.214350 | 2019-12-31T14:27:35 | 2019-12-31T14:27:35 | 231,067,221 | 0 | 0 | null | 2019-12-31T14:27:36 | 2019-12-31T09:54:35 | HTML | UTF-8 | Python | false | false | 115 | py | # coding:utf-8
from app import create_app
app = create_app()
if __name__ == '__main__':
app.run(debug=True)
| [
"2932045582@qq.com"
] | 2932045582@qq.com |
9ee74e7f9357a404e067b4eaa3820739f38a375f | 7706a04a5def6ea10919e2d925676e7fa14bcc6e | /manage.py | fe3d1053cd1d857a3d15e8a40688460495c70147 | [] | no_license | codedesigner/Orangutan | e425b5dc34e0a6dbbf609f84f233f207950bfd5f | 910c07577fe4d2e0956dfaa1ad02a32ed0cb1977 | refs/heads/master | 2020-04-11T03:39:15.023584 | 2014-07-16T13:49:55 | 2014-07-16T13:49:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "orangutan.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"prasannaparanjape@gmail.com"
] | prasannaparanjape@gmail.com |
b00bbd8f9cbbc23a75e009da0fd3aef4a222490a | 56c3c324f5c35c34e7a72172568dedf4c301c4fe | /products/migrations/0012_delete_name.py | a6a8b8def8b0c7348f972cdb6ca96512718fc258 | [] | no_license | Shubh-Bajpai7/DIS-COM | 7868b101fb4bba726363b8f982b036a64d3888d9 | 860fa4f2821ae428388cace4cd797302de77f5e0 | refs/heads/master | 2023-08-19T00:14:54.060445 | 2021-09-29T12:26:24 | 2021-09-29T12:26:24 | 411,643,523 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | # Generated by Django 3.1.6 on 2021-05-18 12:59
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('products', '0011_auto_20210307_0519'),
]
operations = [
migrations.DeleteModel(
name='Name',
),
]
| [
"shubh.bajpai999@gmail.com"
] | shubh.bajpai999@gmail.com |
071fea11feac5ea233e4ca634148a8683f68ef47 | f66b9a52e2fbe43d98bd728a2f7b979fbf05535c | /node_modules/node-rpi-rgb-led-matrix/build/config.gypi | 5d7dccdce28d3b93cc6ea19a7a8973e49b84fded | [
"WTFPL"
] | permissive | cooperbrislain/emoji-matrix | 1f20e8c8aff6973416f2398b7c6d5774ec68f4c3 | eda9ddec038a0b41ee2a0b2fb5bcd00163cd9f5d | refs/heads/master | 2021-09-17T12:47:01.096078 | 2018-07-02T01:49:51 | 2018-07-02T01:49:51 | 139,203,575 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,233 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"arm_float_abi": "hard",
"arm_fpu": "vfp",
"arm_thumb": 0,
"arm_version... | [
"cbrislain@gmail.com"
] | cbrislain@gmail.com |
40b8ae99a708e2a397ac40964a8429b737be6ac5 | 8e98d6bb3fb9ecebc4cd5b5cb9930c4f00d7f9fe | /BookmarksOpener.py | 3bb01ecf6582f1a439686e96aee0c9f5f959b948 | [] | no_license | tracimath/Web-Browser-Scripts | e1dc1b2074c661fb38bb52dcac5f263e55406ada | c95514c2f1d05b03116030004c7577a65f212a14 | refs/heads/master | 2021-09-10T10:37:52.296449 | 2018-03-24T16:17:45 | 2018-03-24T16:17:45 | 125,936,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,443 | py | #1 python3
# BookmarksOpener.py - Imports the bookmarks from the Chrome browser and opens them
# all at once as separate tabs in a new browser
# ./BookmarksOpener.py <- fetches Chrome bookmarks
# ./BookmarksOpener.py bookmarks.html 3
# ./BookmarksOpener.py bookmarks.html
# Second command-line argument specifies number ... | [
"noreply@github.com"
] | noreply@github.com |
3224ea49593cc2174c67a83706095c13c83e8422 | 8e2adb37ad03f987b2e5c56d709cef99414cedea | /venv/Scripts/django-admin.py | 22c7cc1ab2cb118cb4cb7865ba33c993cf7e5e9b | [] | no_license | notsafe1156/django_test | f5005ac05c61f7168c530f38078d0105255fe9d2 | da91135f03904a3e2515c56fc59eb85a95543a52 | refs/heads/master | 2022-12-21T14:57:36.551681 | 2019-10-14T13:18:00 | 2019-10-14T13:18:00 | 210,593,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | #!D:\Etaac\Documents\code\Git\GitHub\Django\venv\Scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"s406411156@gms.tku.edu.tw"
] | s406411156@gms.tku.edu.tw |
67aae7c2ccaba93416c39c6a7c9d3a04217c90d9 | 3c51d07d707e34df466bd4ba6d81742397298614 | /controller/FxssiController.py | 3910c56bda697c48115f00e73d4b9b04a0c944a0 | [] | no_license | nannantingyu/crawl-spider | 6ec252d037e2b725ea2b3d12533b357b2ae627b5 | 2bae25a6a181abe31398bd58fdf021e24463d3e8 | refs/heads/master | 2020-03-26T16:33:00.812310 | 2019-01-31T03:06:04 | 2019-01-31T03:06:04 | 145,108,903 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,613 | py | # -*- coding: utf-8 -*-
from model.crawl_fxssi import CrawlFxssi
from Controller import Controller
import json, re, requests, logging, datetime, time
from sqlalchemy import and_, or_, func
class FxssiController(Controller):
def __init__(self, topic="crawl_fxssi"):
super(FxssiController, self).__init__(topi... | [
"nannantingyu@gmail.com"
] | nannantingyu@gmail.com |
6564ec75a111e911229e70fea1e878f96027e21c | 31c1caa91a04f75fd8b7bb40312edb246cc618d2 | /py/Video4tube.py | 33fe2b7d82285fd57c0ea47f2800e5f765c8895d | [] | no_license | chid/rip3bin | 8a9161e21395d6c8f71ecb5b0c4a654182b9b7f2 | f2c6746d55652c2482b25a1db0f81395082b681c | refs/heads/master | 2020-04-28T01:00:36.070095 | 2014-02-26T23:47:48 | 2014-02-26T23:47:48 | 17,208,822 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,389 | py | #!/usr/bin/python
from VideoBase import VideoBase
class Video4tube(VideoBase):
@staticmethod
def get_host():
return '4tube'
@staticmethod
def can_rip(url):
return '4tube.com/videos' in url
@staticmethod
def get_sample_url():
return 'http://www.4tube.com/videos/146975/sexpot-mary-jane-johnson-gets-her-t... | [
"cpeng92@gmail.com"
] | cpeng92@gmail.com |
2c9b741f63cb92c6b30814f1414bc54fe484eea6 | 388826cb6636219f43254f93f855c6affe3322bf | /files/py-subprocess/sigpipe-issue.py | 751c5191a026e0d653c2de0b03ad659e9a078494 | [] | no_license | agordon/agordon.github.io-DISABLED | 0c3337a9335e1cd4817d9973b27f4d897bdb9b9e | 44e052217208846f183b4ec023d2f1bf3918c313 | refs/heads/master | 2021-06-28T03:14:48.795754 | 2017-09-17T05:54:25 | 2017-09-17T05:54:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | #!/usr/bin/env python
"""
Python-Subprocess tutorial
Copyright (C) 2016 Assaf Gordon <assafgordon@gmail.com>
License: MIT
See: http://crashcourse.housegordon.org/python-subprocess.html
Example of the problems caused by python's default behaviour
of setting SIGPIPE to 'ignore'.
The following shell command will run fo... | [
"assafgordon@gmail.com"
] | assafgordon@gmail.com |
e3f8022857e30db6341da4c8f88e97f4e7063f57 | 6d8faae66dd6332836bb11d7f02d6867c95d2a65 | /glast/pointlike/python/uw/like/likelihood_fit.py | 7dec093d277b975937d18b773ffedc0d0b11c596 | [] | no_license | Areustle/fermi-glast | 9085f32f732bec6bf33079ce8e2ea2a0374d0228 | c51b821522a5521af253973fdd080e304fae88cc | refs/heads/master | 2021-01-01T16:04:44.289772 | 2017-09-12T16:35:52 | 2017-09-12T16:35:52 | 97,769,090 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,382 | py | """A module providing functionality for parametrizing a likelihood curve
by a simple function.
Classes:
LogLikelihood: a representation of a likelihood curve
Authors: Eric Wallace, Matthew Kerr
"""
__version__ = "$Revision: 1.1.2.1 $"
#$Header: /glast/ScienceTools/glast/pointlike/python/uw/like/Attic/likeliho... | [
"areustledev@gmail.com"
] | areustledev@gmail.com |
3fb3e6697ebaf22de2677d9495b04d6dd383a44e | caa16b9e3aa58e75a1885b540d7ea7979bad0920 | /1-IO-Simple-Problems/Dice.py | e64ced9b03ed8fcf9e676c9272cc81a2ebb014dd | [
"MIT"
] | permissive | LPetrova/Python | 91f239b4947cce2b6591191b664ba966045dec5a | 0be5939ecfc5f0fecce33fee314bfe534aed8efd | refs/heads/master | 2020-12-24T20:32:58.960177 | 2016-05-23T08:37:35 | 2016-05-23T08:37:35 | 59,465,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | from random import randint
n = int(input('Enter side: '))
dice = randint(1, n)
print('----The dice rolled----')
print(dice)
| [
"lidiq880908@gmail.com"
] | lidiq880908@gmail.com |
c4070e57949127be2bf575ae160cb07672a86fd4 | 064404a6e65dc4bb78624e47fb8010615e20fbe8 | /opsgenie_sdk/api/alert/add_details_to_alert_payload.py | bbc3a87ef3d5178e5be8868d78923a57e5e51352 | [
"Apache-2.0"
] | permissive | lyongjie20/opsgenie-python-sdk | 97de823d958995f44b1934c1aaf1b5740a8efd1e | 0d20d2314522fc0fd8ca5f0faa16f7c96387e123 | refs/heads/master | 2023-07-01T14:31:27.379893 | 2021-08-02T13:30:07 | 2021-08-02T13:30:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,705 | py | # coding: utf-8
"""
Python SDK for Opsgenie REST API
Python SDK for Opsgenie REST API # noqa: E501
The version of the OpenAPI document: 2.0.0
Contact: support@opsgenie.com
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class AddDetailsToAle... | [
"zafer@opsgenie.com"
] | zafer@opsgenie.com |
721ae941e9cc46f4a912ff2c970b067c92064e84 | 1c53722edface06d9126c738f9d417e201fad177 | /app/models.py | 30480ea5c722fa738dd5d74c36ff99573abb3422 | [] | no_license | hanbinggary/PicShareWebsiteDemo | 9dc0ccdff97a23d98bd44359f14c0767e8be4f63 | 79832ca3b9d2bda7093a59ae78cf6cd20a663d3b | refs/heads/master | 2021-02-15T02:06:30.364603 | 2017-01-06T16:12:25 | 2017-01-06T16:12:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,728 | py | from datetime import datetime
from flask import current_app, request, url_for
from flask.ext.login import UserMixin, AnonymousUserMixin
from . import db, login_manager
from werkzeug.security import generate_password_hash, check_password_hash
# definition Permission
class Permission:
FOLLOW = 0x01
COMMENT = 0x... | [
"justteryforme@gmail.com"
] | justteryforme@gmail.com |
ed150c2d80fbdef1e360c8a523753f58b7a1846f | 6f295816ca8b538b2a40621c9885be2ba4f29a7d | /sub/2.1feature.py | bdf6fe3564aa2b13ac54f35eefa35caf253008cb | [] | no_license | LibraM9/yidong_AIIA | 8a7d8b206e2be63fe0605a18352593ed016ab922 | fc7733fa6ea4976e564af8b92f018e86e4520842 | refs/heads/master | 2020-08-16T16:49:31.542637 | 2019-10-16T11:02:11 | 2019-10-16T11:02:11 | 215,526,710 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 12,328 | py | # -*- coding: utf-8 -*-
# @Author: limeng
# @File : 2feature.py
# @time : 2019/7/19
"""
文件说明:针对告警特征构造
工单前10分钟/30分钟/60分钟统计
GSP 频繁项挖掘
"""
import pandas as pd
# import modin.pandas as pd
import matplotlib.pyplot as plt
import numpy as np
from sklearn import preprocessing
from dateutil.relativedelta import relativedelta
... | [
"497425060@qq.com"
] | 497425060@qq.com |
a8824158345cddc59be0477b3353fbdb3dbef6da | fc2d2163e790741de0c0e1aa337948cfeb5b6ba9 | /tests/benchmarks/micro/NestedFunctionClosure.py | 925ad5c31e3bbdfcba39ca286facd4a95fe0b59e | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | nmoehrle/Nuitka | bcd20531f150ada82c8414620dca6c5424be64d1 | 317d1e4e49ef8b3bdfe2f80f2464040d644588b2 | refs/heads/master | 2023-06-22T09:56:23.604822 | 2017-11-29T14:10:01 | 2017-11-29T14:10:01 | 122,110,166 | 0 | 0 | Apache-2.0 | 2018-02-19T19:29:05 | 2018-02-19T19:29:05 | null | UTF-8 | Python | false | false | 1,066 | py | # Copyright 2017, Kay Hayen, mailto:kay.hayen@gmail.com
#
# Python test originally created or extracted from other peoples work. The
# parts from me are licensed as below. It is at least Free Software where
# it's copied from other people. In these cases, that will normally be
# indicated.
#
# L... | [
"kay.hayen@gmail.com"
] | kay.hayen@gmail.com |
b58a8e79d793aaa2996de3d708db2086571feb67 | cb188ac0cfb46032e5f8285edaa21d1a036e58c4 | /myblogapp/urls.py | 816c901cfcb12855cff4faa2dc5e9b586b45831a | [] | no_license | kazumihirata/first_django | e7e176e79bc95aa92b3574a2d44411b685fc69ef | 8a8115bf2c60521acd932247d8fd2b52c62b8dbd | refs/heads/master | 2020-03-24T11:03:00.234647 | 2018-07-28T12:49:41 | 2018-07-28T13:03:33 | 142,674,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,094 | py | """myblogapp URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"hiratakazumi2020@gmail.com"
] | hiratakazumi2020@gmail.com |
e9c539208cad94153d04dbdd28d30403ad34f499 | f5dd66b44140e5ba51a59f7250d976b931de9e29 | /tests/test_extra/test_custom.py | 465d627bb1b1b36b2df842701bfa32e21155d3d8 | [
"MIT"
] | permissive | mejihero/soupsieve | 3a4ba6d3857ed176f07fd3702da7a7548ba56b39 | 79a03f2410ba63fb10ffc1ee5a5255bfa774dac8 | refs/heads/master | 2020-06-04T14:45:58.802595 | 2019-05-26T13:39:42 | 2019-05-26T13:40:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,163 | py | """Test custom selector aliases."""
from __future__ import unicode_literals
from .. import util
import soupsieve as sv
class TestCustomSelectors(util.TestCase):
"""Test custom selector aliases."""
MARKUP = """
<body>
<h1 id="1">Header 1</h1>
<h2 id="2">Header 2</h2>
<p id="3"></p>
<p id="... | [
"noreply@github.com"
] | noreply@github.com |
a95c88307396ee0164e6f263644fc07b185a3d85 | 1089bc72856fe3ef0edd4b17b2f07b8ec5de8e14 | /firecares/settings/base.py | 1090ad22ec43635bb3cf9e8ae536318c7280b299 | [
"MIT"
] | permissive | JWileczek/firecares | e521c9d9f829fc60f13c2d051be89b5feadb5fc0 | dd82e6e720cdaaf0bacd7a2cc51669341a29ffae | refs/heads/master | 2020-12-25T12:41:04.124970 | 2015-08-30T15:38:56 | 2015-08-30T15:38:56 | 41,690,086 | 0 | 0 | null | 2015-08-31T17:29:12 | 2015-08-31T17:29:12 | null | UTF-8 | Python | false | false | 7,905 | py | import os
from kombu import Queue
DEBUG = True
TEMPLATE_DEBUG = DEBUG
PROJECT_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir))
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.contrib.gis.db.backends.post... | [
"garnertb@gmail.com"
] | garnertb@gmail.com |
50a0e0a631826408e3f3cd6fd38ce599131e4588 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2506/60832/280621.py | f1113858470ab2074adaab3a1b0c3b72695ba34b | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | import numpy as np
ar = list(map(int, input().split(',')))
length = len(ar)
if length == 0:
print(0)
exit()
Max = np.zeros(length)
opt = np.zeros(length)
opt[0] = 1
Max[0] = ar[0]
for i in range(1, length):
a = opt[i - 1]
temp = ar[i]
j = i - 1
has = False
for j in range(i - 1, -1, -1):... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
8cc3634e8d16989cd1513bc7af080f6931b683af | 487e7d02bc4ea8092dba8a8ed3518dae901d61dc | /svm_cs_per_tenfs.py | 3eff8cd26685aefe37b1d31c538d84d4f83ae46f | [] | no_license | parthu123/antiware | e035ce98db1a4de284a5c2c41ee2fc07bd641ef6 | 5e828e44b7ea40afd8d2ef1fcb553c8b6cc845e0 | refs/heads/master | 2021-01-21T11:01:17.573480 | 2017-05-18T17:21:16 | 2017-05-18T17:21:16 | 91,719,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,011 | py | import random
import math
import csv
import numpy
from sklearn import svm
from sklearn import metrics
from sklearn.model_selection import train_test_split
import random
def loadCsv(filename):
y=[]
d=[]
lines = csv.reader(open(filename, "rb"))
dataset = list(lines)
dataset = dataset[1:]
#print "len:",len(dataset)... | [
"parthusarathi19@gmail.com"
] | parthusarathi19@gmail.com |
0fe9aa933311e45e630b4cbb6ebd4e73fd4b004d | 7dd3beb12e23d95786167a0de9ee2e07ea027840 | /capitalize.py | d0b708426c91a2b112df11288619e372d587d46e | [] | no_license | AvinashAnad/HackerRank | 415ad79801cff004e6a0d5e818b0ce9906d6243d | d88344179d25d999eb703258cf52bdd6c60d99dd | refs/heads/master | 2020-12-27T15:08:04.463173 | 2020-02-04T15:00:20 | 2020-02-04T15:00:20 | 237,947,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | s= 'chris alan'
print(' '.join([i.capitalize() for i in s.split(' ')]))
| [
"avinash.anad.ap@nielsen.com"
] | avinash.anad.ap@nielsen.com |
dad647dec0f84e095691977c211d1294c3d61a36 | a8c4d9c244d3ca35bb6b105fe7a135d2ef5fd971 | /empire/venv/bin/pip | fd347d8cb2d65fbd79c34e56146a37d3a4be6e3a | [] | no_license | alxanderpierre/My_EmpireProject | c7d48c1f531d2a5c80559fafd7af34c70208d031 | c5891b6d5e325d327077a852353ee49ccad50712 | refs/heads/master | 2022-11-29T07:03:37.231407 | 2020-07-28T23:41:15 | 2020-07-28T23:41:15 | 281,511,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | #!/Users/alxander44/Desktop/EmpireProject/empire/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"alxanderpierre@users.noreply.github.com"
] | alxanderpierre@users.noreply.github.com | |
6aaa188bc6bef300d53fbbc9a0be99433230a473 | 6a002fe98e3e78067941b9d488a27b105c91cd91 | /Udemy/Full_Stack/django_level_three/exercise_project/users/migrations/0001_initial.py | 92d191aa2523802290601eaf6e0acea4a38f4cfd | [] | no_license | te25son/Learning-Tools | 4f85b10fe0c016b6043f826e3fa0ac1ec48e87fd | 58b2d8e8d94ccb9a2ac5694517e78b3614c050e9 | refs/heads/master | 2020-03-19T20:25:42.201178 | 2019-07-12T08:07:10 | 2019-07-12T08:07:10 | 136,901,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | # Generated by Django 2.1.5 on 2019-02-24 17:07
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
('id', models.AutoField(aut... | [
"te25son@gmail.com"
] | te25son@gmail.com |
66c148d0ad7c84f921d21dc51f37db5858fa991b | 46343061723ea55275195e201024957096995533 | /yasmss/mrmapper/join_mapper.py | 4cd389fd2ca6e100ee048037cab6835fdef7a020 | [
"MIT"
] | permissive | AshirwadPradhan/yasmss | f046079c8dafca52ca952b1626c3b5a10efd5c32 | 8b8b7108a3a437f0c757f19225a0c2082dbbd488 | refs/heads/master | 2022-11-18T14:58:39.938007 | 2019-12-02T15:17:33 | 2019-12-02T15:17:33 | 205,654,222 | 0 | 2 | MIT | 2022-11-11T07:52:20 | 2019-09-01T09:16:00 | Python | UTF-8 | Python | false | false | 870 | py | #!/usr/bin/python3
import sys
import yaml
import json
import collections
class Mapper:
def __init__(self):
self.table1 = None
self.table2 = None
def get_config(self):
conf = {}
with open('config.yaml', 'r') as file:
conf = yaml.load(file, Loader=yaml.FullLoader)
... | [
"shash0124@gmail.com"
] | shash0124@gmail.com |
49a407724870bc9adccc6c5d2aba0ca141added4 | a80560c8c478c7acdbdd44d46b979609740dddfe | /venv/bin/cq | 19bb130317a457594716574a147e015e0d0a31b9 | [
"MIT"
] | permissive | nicolaseberle/publifactory-reviewer-matcher | b8c2d8811640d298b4769a27cf43ccd57127124e | a26ccff7fd4a16f822a7694dcb12f30f421714c6 | refs/heads/master | 2022-04-02T19:18:47.961012 | 2019-07-05T14:35:44 | 2019-07-05T14:35:44 | 192,546,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,106 | #!/Users/vincent/Documents/Publifactory/reviewer_matcher/venv/bin/python3
# Copyright (c) 2006,2007 Mitch Garnaat http://garnaat.org/
#
# 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... | [
"vschuck.pro@gmail.com"
] | vschuck.pro@gmail.com | |
2897a346fb526a6e0e57f8e45f21e07c4f5a4bb0 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02267/s584392095.py | 6a5daa87a557535ac58fe4e73ddfee745deeec4f | [] | 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 | 166 | py | n = int(input())
s = [int(x) for x in input().split()]
q = int(input())
t = [int(x) for x in input().split()]
cnt = 0
for x in t:
if x in s:
cnt += 1
print(cnt) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a990681e92cbb17f46f1cd2cc6049111d8804ef2 | 2d1f82fe5c4818ef1da82d911d0ed81a0b41ec85 | /UVaOJ/Maths/NumberTheory/UVa10555.py | f419106e23509f67d1abbfabd058c9d045f19d18 | [] | no_license | OrigenesZhang/-1s | d12bad12dee37d4bb168647d7b888e2e198e8e56 | 08a88e4bb84b67a44eead1b034a42f5338aad592 | refs/heads/master | 2020-12-31T00:43:17.972520 | 2020-12-23T14:56:38 | 2020-12-23T14:56:38 | 80,637,191 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | #穷举循环节...
INF=0x3f3f3f3f3f3f3f3f
def gcd(a, b):
if not b:
return a
return gcd(b, a%b)
while True:
s=input()
if s=="0":
break
s=s.split('.')
s=s[1]
n1=0
m1=1
rn=rm=INF
for i in s:
n1=n1*10+int(i)
m1*=10
for i in range(len(s)):
n2=0
m2=1
for j in s[:i]:
n2=n2*10+int(j)
m2*=10
nom=n1-n2
... | [
"noreply@github.com"
] | noreply@github.com |
4ab329b1e62716be8072cd90ea2c62b513ca8078 | db274f45ee6c48ae3bed5b24367dc15196cde860 | /model/mimn.py | 505c29a18fb1ed3f02ac92acecdc25758cddb3fa | [
"Apache-2.0"
] | permissive | LitteleStar/TDPP | 8dd609c144172478960a498c9eb5b8434f70b41a | 7b85016bea01c4c018337152599043dc2efbaba8 | refs/heads/main | 2023-04-24T02:32:27.902733 | 2021-04-28T11:34:06 | 2021-04-28T11:34:06 | 362,444,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,240 | py | #coding:utf-8
import numpy as np
#import tensorflow as tf
import torch as t
import torch.nn.functional as F
t.autograd.set_detect_anomaly(True)
def expand(x, dim, N):
return t.cat([x.unsqueeze(dim) for _ in range(N)],dim)
def create_linear_initializer(input_size):
stddev = 1.0 / np.sqrt(input_size)
#截断的正... | [
"noreply@github.com"
] | noreply@github.com |
32994840399c34098b93f86036d3758e51325b0f | 5d726993f32843c50793d0eba278766cdaecd3a2 | /0x00-python_variable_annotations/1-concat.py | 665761b4c33fa6b18035cba28445fe821903ca41 | [] | no_license | kaci65/alx-backend-python | 1e68c4071619556f78305c6c5f676db135606f28 | d4d0dd6d9d1f387d81f73b3eec70bb5f0c46e3f2 | refs/heads/main | 2023-06-26T22:39:20.526103 | 2021-07-27T17:25:46 | 2021-07-27T17:25:46 | 388,593,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | #!/usr/bin/env python3
"""
type-annotated function concat that takes a string str1 and a string str2 as
arguments and returns a concatenated string
"""
def concat(str1: str, str2: str) -> str:
"""return concatenated string of arguments"""
return str1 + str2
| [
"ubuntu@ip-172-31-7-225.us-east-2.compute.internal"
] | ubuntu@ip-172-31-7-225.us-east-2.compute.internal |
4144239c5fac2871ef49492638791cbc0ecb4eb1 | 1662a5160253faf58d872bca1ddc71abb8b62328 | /agenda/migrations/0004_alter_agenda_medico.py | e739d7344d3221286e9cac3356beb61fca46ea3c | [] | no_license | yvensm/medicarApi | f8a5e5c263e9a5347d909f84c031687f8f49fd10 | 9831b00a5d8aa412cbc657fb9d1116918437339c | refs/heads/master | 2023-05-04T14:54:29.381182 | 2021-05-21T00:32:48 | 2021-05-21T00:32:48 | 369,335,857 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | # Generated by Django 3.2.3 on 2021-05-20 01:06
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('medicos', '0002_alter_medico_especialidade'),
('agenda', '0003_alter_horario_agenda'),
]
operations = [
... | [
"claudioyvens@hotmail.com"
] | claudioyvens@hotmail.com |
53f2ad5ff7b2d5362c2d0aed72177ab7557b6a22 | 4e456edc9737a34c0c4f144059f8ab82e60ad368 | /protobuffPart/client-protobuff.py | 1b1c0ef7ff2465b24e817ad0a566bb05609d00c0 | [] | no_license | changchanglccc/coen-assign1 | 7d4dcfdf734e6a32d32e0f278d5abb50b962a88a | f63fac0ea2aa0db7309aea0c5ed9df725d2becd7 | refs/heads/master | 2021-07-21T07:19:31.083457 | 2017-10-27T02:56:12 | 2017-10-27T02:56:12 | 106,369,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,525 | py | from subprocess import call
import product_pb2
# client
import socket
# funtion of client entering
def ProtobufByClient(requestmsg):
print "--------"
requestmsg.RFQID = raw_input("Please enter RFQ_ID ... (e.g.: 1 )\n")
requestmsg.accountID = raw_input('Please enter AccountID ... (e.g.: 001 )\n')
requ... | [
"lichong06091992@gmail.com"
] | lichong06091992@gmail.com |
2755addf4bcff11046abf50e2a5521c99d93c6f5 | 1287c7b9e53ca0de0dfa9bb803284d8dab5c078d | /interactivity.py | bfc7e2ac9d0d758e5c0776822e4bf13f9cbbaf5c | [] | no_license | hanksterhan/python_dash | ed06e5e5642a3f9caa50270711d4b1b8ad8fd670 | 5c902b0f363d665066f573d870d9f8c337f965cb | refs/heads/master | 2020-03-26T22:24:38.162764 | 2018-08-23T17:45:08 | 2018-08-23T17:45:08 | 145,456,353 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 735 | py | import dash
import dash_core_components as dcc
import dash_html_components as html
import pandas as pd
pd.core.common.is_list_like = pd.api.types.is_list_like # to make pandas_datareader cooperate
from pandas_datareader import data as web
from dash.dependencies import Input, Output
app = dash.Dash()
app.lay... | [
"henryhan62@gmail.com"
] | henryhan62@gmail.com |
da865b97de131471c58272b661f98d1aa01b4982 | 2dbb8edc6167cc00778a7e863a63a56c384f75cf | /apps/sandbox/clem/2faces_controlled_folding.py | 5183544d19a55291c739603579843d1538908468 | [] | no_license | simvisage/oricrete | 129e130433eb438a271f8cd24d77fd78c552ef8c | ef7d20e66806037cc0c07541b45abc4f516ae187 | refs/heads/master | 2020-12-25T16:54:18.988848 | 2016-08-05T14:06:09 | 2016-08-05T14:06:09 | 3,638,675 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,845 | py | '''
Created on 27 juin 2014
@author: Python
'''
from traits.api import Property, Array, cached_property, Callable
from oricrete.folding2 import \
YoshimuraCreasePattern, CnstrTargetFace, CreasePattern, \
Initialization, Folding, FormFinding, link, r_, s_, t_, fix, \
CreasePatternView, RotSymAsse... | [
"zeasar@live.fr"
] | zeasar@live.fr |
f6023dbd28e414f0d7ea5fc8d402d42d33688ccf | abeb229765d4bed13fe5265ca35cc03481417a33 | /news/urls.py | 4732a593cce945ef0d376f5bb7eb8a88df611f47 | [] | no_license | guharoyAntik/covid-track | c7b6f8e479009340cd6c841f035eaa26226bc439 | d54d3c50e724de3ed18ec02b18be63a6f62b130a | refs/heads/master | 2022-10-20T18:35:44.117658 | 2020-06-20T04:54:38 | 2020-06-20T04:54:38 | 273,639,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | from django.urls import path
from . import views
urlpatterns = [
path('news/', views.news, name='news'),
]
| [
"guharoyantik@gmail.com"
] | guharoyantik@gmail.com |
0718989760e59174cc07989d2a84ccf866b83d84 | 66e121f5533d87b78898eaeacfa1661c3912f61b | /setup.py | dcb1967468cd839dac65027ec73121440b52d8ca | [
"MIT"
] | permissive | florianpaquet/django-mease | 37a23b6a42216d152c1061fac78e1704046e1a32 | f1512ad5a337f457854c11c0606fd3331e6f4ccb | refs/heads/master | 2021-01-23T11:20:17.808792 | 2014-02-03T20:24:18 | 2014-02-03T20:24:18 | 15,983,996 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,103 | py | #!/usr/bin/env python
import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
requires = [
'mease==0.2.0',
]
setup(
name='django-mease',
version='0.2.0',
description="django-mease: Websocket integration made easy for Django",
... | [
"contact@florianpaquet.com"
] | contact@florianpaquet.com |
36790335d889a5a1b6f4d0900e5e665d9dc81b54 | 9081acb8fd80fd3592e4abd100191206cec65fa1 | /splicemap/__init__.py | e888b77af0f10a35bd246272e3a98847275979aa | [] | no_license | gagneurlab/splicemap | 82af65a36680c4efbbbb0b0fcce1fa9ee1825cbf | 710c53d5f034035897f8bbec4c524e78cee54dac | refs/heads/master | 2023-07-08T11:53:22.419402 | 2023-05-25T16:06:34 | 2023-05-25T16:06:34 | 475,118,929 | 11 | 1 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | from .count_table import SpliceCountTable, infer_junction_strand
| [
"celikm@in.tum.de"
] | celikm@in.tum.de |
bbf76565b6f64ab27199de1efc446badfd0ba38a | 1bad7d2b7fc920ecf2789755ed7f44b039d4134d | /ABC/173/A.py | b409f92bf2697a9ef34d7cb880b50eb8c4da2cfe | [] | no_license | kanekyo1234/AtCoder_solve | ce95caafd31f7c953c0fc699f0f4897dddd7a159 | e5ea7b080b72a2a2fd3fcb826cd10c4ab2e2720e | refs/heads/master | 2023-04-01T04:01:15.885945 | 2021-04-06T04:03:31 | 2021-04-06T04:03:31 | 266,151,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | n = int(input())
if n % 1000 == 0:
print(0)
else:
print(1000-n % 1000)
| [
"kanekyohunter.0314@softbank.ne.jp"
] | kanekyohunter.0314@softbank.ne.jp |
3f7f40f141bbb4b0c059de362b5b3c65654eb616 | 88c5918049cb7a55c36e85d32903a58a0e1e598d | /Project Prototype 0/project_central.py | 4c2749a877481a7dc83de73e6e8ac511e835cf2f | [] | no_license | smoles92/Prototype_DublinBusApplication | 990f13dbfb818d6facf2e41124ef96d08322a233 | 49f262ae463cd56a615947bb3b4d1d5fa982fcc2 | refs/heads/master | 2021-03-27T10:36:15.744411 | 2017-07-21T15:13:12 | 2017-07-21T15:13:12 | 93,847,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,945 | py | from DublinBusAPIs import bus_location_finder
from datetime import datetime
from datetime import timedelta
from dateutil import parser
import requests
from model_prototype_0 import model
import time
def holidays(date):
publicholidays_2017 = ['2017-08-07', '2017-10-30', '2017-12-25', '2017-12-26',
... | [
"londerwater1@gmail.com"
] | londerwater1@gmail.com |
17671f6f1f647f55f6dc95f69a9d87ba5e4975e4 | 076c5c5a4ff59c6981ac8529475a97019fbd3f3f | /home/search_engine.py | 3aca043d58c4ae7d6b11e71d5ba56d5984b0bd99 | [] | no_license | gorostuck/hack-cambridge | 1ee6a9bae5d7291439f6b36e7cd45c11f1fb32df | 716334a96d02cd26c237402e74c4f4bf304f8530 | refs/heads/master | 2023-02-22T18:15:20.313451 | 2021-01-24T16:47:32 | 2021-01-24T16:47:32 | 325,380,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,132 | py |
import math
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.metrics.pairwise import cosine_similarity
import numpy as np
import pandas as pd
def normalized_term_frequency(word, document):
raw_frequency = document.count(word)
if raw_frequency == 0:
return 0
return 1 + math.... | [
"manuelhurtadoram@gmail.com"
] | manuelhurtadoram@gmail.com |
89c2e434d695f23b8d55bfde75d021679fc324cc | 8f85ad4eb4eee9324e7f56405de4511544013fcd | /tests/settings.py | 81aaede3abe5134f0ca98203cb2833313f454d5b | [
"MIT"
] | permissive | shun-liang/yoflow | 4c38c483706d4760f97328b18821f77e26783677 | fa8f753546bb07907889f3bd909b301de2ade6ec | refs/heads/master | 2020-05-17T23:58:47.701718 | 2018-10-19T11:36:49 | 2018-10-19T11:36:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,495 | py | """
Django settings for yoflow project.
Generated by 'django-admin startproject' using Django 2.0.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# ... | [
"gary@yoyowallet.com"
] | gary@yoyowallet.com |
f2614199448f8adfd38d9da81bb4c9aef7a4f096 | f50bc9e32496838d98f1d69d45d735b3e9ee3bb8 | /guessMinMax.py | f2a667a5126baa4991165e0e57b3bbc18ff0eb55 | [] | no_license | yohey-uemura/EXAFSfit_with_silx | 88f190cfa6348fdc59547613b945d1f601f9d236 | 7b4ef9079aecb2122b069cd4d7b4370def3ff529 | refs/heads/master | 2023-03-09T19:27:12.845563 | 2021-02-28T03:18:11 | 2021-02-28T03:18:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,679 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'guessMinMax.ui'
#
# Created by: PyQt5 UI code generator 5.11.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectNa... | [
"noreply@github.com"
] | noreply@github.com |
4ae74414255febe672433991c34be5cb67a7a751 | d5de5be30925d316b6ef761f6dee98bc999e68b6 | /src/dataset.py | 9ab642ab28e2e3f67d8895bf8d01423bf4d858c0 | [
"Apache-2.0"
] | permissive | sysuhys/T5-for-KGQG | d283dfaec10e8365c6c44515f0f1ea6e9eaa4bbe | af139ff38ab2965560e809d5ab5182a0cfff6f71 | refs/heads/main | 2023-08-03T16:15:20.069892 | 2021-09-18T12:18:47 | 2021-09-18T12:18:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,366 | py | from torch.utils.data import Dataset
import numpy as np
import json
import torch
from collections import Counter, defaultdict, OrderedDict
import gc
import os
class JsonDatasetWQ(Dataset):
def __init__(self, tokenizer, data_dir, type_path, input_max_len=512, target_max_len=512, train_mode=None):
assert tra... | [
"saburotyan758@gmail.com"
] | saburotyan758@gmail.com |
5cb3ad6022e448ca3558a929e7f76cbbdb9ce29b | 044b4e81edee69d58017dfc520aebe97ace3c4de | /ship.py | b0da2e6744ecb0064a16a96ed86ce9066e0cb423 | [] | no_license | BenObiWan/alien_invasion | adc4037524533adce155e2126a51aa18cfae7732 | e7340b890f06c78633d0362f8df2f766f813c9c5 | refs/heads/master | 2021-01-20T22:09:59.306948 | 2016-06-08T23:04:59 | 2016-06-08T23:04:59 | 60,805,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,429 | py | import pygame
class Ship():
def __init__(self, ai_settings, screen):
"""Initialize the ship and set its starting position."""
self.screen = screen
self.ai_settings = ai_settings
# Load the ship image
self.image = pygame.image.load('images/ship.bmp')
self.rect = self.... | [
"benobiwan@gmail.com"
] | benobiwan@gmail.com |
4ce6a88d2d0db491f5cda393f30117e329120c76 | 86c02b1a74519601b723062040b7fdbad9cb4a68 | /backend/account_app/admin.py | 7f57dd1bf0c3f313bfcee872bee91f10fbf6272c | [
"MIT"
] | permissive | michaeljarizala/django-react-app-boilerplate | 2c8c36cce5a6919e800777d1f2977eb12ff1d68c | 2a5e8a57f21a5a411d47032f8e55afdba99db603 | refs/heads/master | 2023-07-18T19:48:40.057143 | 2020-07-16T06:39:39 | 2020-07-16T06:39:39 | 273,393,510 | 0 | 0 | MIT | 2021-09-22T19:16:07 | 2020-06-19T03:16:17 | Python | UTF-8 | Python | false | false | 1,087 | py | from datetime import datetime
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.utils import timezone
from django.utils.text import slugify
from django.urls import reverse
from django.core.exceptions import ValidationError
from django.utils.translation import ... | [
"michaeljay.arizala100294@gmail.com"
] | michaeljay.arizala100294@gmail.com |
44d6d277ce2adec9b2f94b011620101c7ccec4f4 | 1f31dc44aca58992aa478635cfe036566a7eebe2 | /py/kubeflow/kfctl/testing/ci/update_jupyter_web_app.py | ff987dbaf3747e37071a3b1067faf73ea5262fbd | [
"Apache-2.0"
] | permissive | adrian555/kfctl | ee3c8517da358884aba35e20bdf564d903aa1d66 | a6bd7d4c15571492a08a551b7566cb111b39bd0c | refs/heads/master | 2020-12-15T18:38:30.190800 | 2020-10-26T20:50:24 | 2020-10-26T20:50:24 | 269,209,194 | 0 | 5 | Apache-2.0 | 2020-06-03T22:38:51 | 2020-06-03T22:38:50 | null | UTF-8 | Python | false | false | 10,444 | py | """Script to build and update the Jupyter WebApp image.
Requires python3
hub CLI depends on an OAuth token with repo permissions:
https://hub.github.com/hub.1.html
* It will look for environment variable GITHUB_TOKEN
"""
import logging
import os
import tempfile
import yaml
import fire
import git
import httplib2
... | [
"k8s-ci-robot@users.noreply.github.com"
] | k8s-ci-robot@users.noreply.github.com |
c0251aca1b79106e751b7b395c7dc2821f0a98b3 | ccc050265da18c7318443ee0b88a6810b69b318d | /example/vol10/10.6.py | 4005e151fbafff182aaa733ecf578c343650456c | [] | no_license | 563213341/git-example | d1bdaf45cb58c93a4f7cb0fc2796303961479672 | 68ca17c0834a7a183a9fbac528371b95a7a945c3 | refs/heads/master | 2020-05-28T10:17:22.538465 | 2019-05-28T06:24:03 | 2019-05-28T06:24:03 | 188,967,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | while True:
num1=input('输入第一个数字:')
num2=input('输入第二个数字:')
try:
c=int(num1)+int(num2) #10.6 10.7已完成
except ValueError:
print('程序出错,请确保请输入的是数!')
else:
print(c)
| [
"1033470717@qq.com"
] | 1033470717@qq.com |
d5edadbe66cf157c9e28ddd27acc016d3102d6ac | abef98cfa3fb2c4626eb8c0a77c1080992d9b11b | /python/bindiff/bindiff.py | 00885d7c9351425c339702dff4eee4738485d185 | [] | no_license | mikebentley15/sandbox | ff88ed9dc4b9ac37668142a319d0a8162e88e9e3 | 4f5869544de18be21f415a9d6f9b71c362307f27 | refs/heads/main | 2023-04-14T00:22:34.623441 | 2023-03-24T21:43:56 | 2023-03-24T21:43:56 | 116,987,549 | 6 | 3 | null | 2022-10-26T03:02:06 | 2018-01-10T17:14:54 | C++ | UTF-8 | Python | false | false | 1,521 | py | #!/usr/bin/env python3
'''
Diff two binary files byte by byte. Do not try to do insertions or deletions,
just a straight side-by-side comparison.
'''
import sys
import argparse
def parse_args(arguments):
'Parse and return parsed arguments'
parser = argparse.ArgumentParser(
description='''
... | [
"mikebentley15@gmail.com"
] | mikebentley15@gmail.com |
8761342772183611da86062f75c5eaba67f5fe90 | fdc7d1ca6d83735f241dfa173b0012a3866ad39e | /Euler/euler79.py | 9d2506f9197aee10dac3513747175a3a1f779c09 | [] | no_license | Mohamedtareque/joac-python | 33b61ff7c3183c2226ce3939b215d95903482fcc | cf0d2829f344bc5f1392d657b5e48924e015d715 | refs/heads/master | 2020-04-06T04:48:00.311967 | 2013-03-01T20:29:54 | 2013-03-01T20:29:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | """Vamos a calcular la minima clave para el banco!"""
logins = [a.replace('\r\n', '') for a in open('keylog.txt').readlines()]
numero = 100
while True:
s_numero = str(numero)
is_number = True
for login in logins:
a, b, c = list(login)
if not a in s_numero:
is_number = False
... | [
"joac@gcoop.coop"
] | joac@gcoop.coop |
a0acdd42e55260598a360131a282d5f7852e0d57 | ef187d259d33e97c7b9ed07dfbf065cec3e41f59 | /work/atcoder/abc/abc054/D/answers/105471_s484.py | e511180c2fae7d4bf9960eae07c6d72b6540daf4 | [] | no_license | kjnh10/pcw | 847f7295ea3174490485ffe14ce4cdea0931c032 | 8f677701bce15517fb9362cc5b596644da62dca8 | refs/heads/master | 2020-03-18T09:54:23.442772 | 2018-07-19T00:26:09 | 2018-07-19T00:26:09 | 134,586,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | N, Ma, Mb = map(int, input().split())
G = []
for i in range(N):
a, b, c = map(int, input().split())
G.append( (a,b,c) )
M = 1 + min(sum([ a for a, b, c in G ]),
sum([ b for a, b, c in G ]) )
INF = 1000000000
dp = [INF] * (M * M)
dp[0] = 0
for a, b, c in G:
i = M - a - 1
while i >= 0:
j = M - b -... | [
"kojinho10@gmail.com"
] | kojinho10@gmail.com |
1b2863c931ac97cc512170299b6e7d5844ead205 | add72f4d6f9f7af1f437d19213c14efb218b2194 | /icekit/page_types/author/tests.py | afcd6534c4231a59e310a4f281e7a4b7faa61d11 | [
"MIT"
] | permissive | ic-labs/django-icekit | 6abe859f97c709fcf51207b54778501b50436ff7 | c507ea5b1864303732c53ad7c5800571fca5fa94 | refs/heads/develop | 2022-08-08T21:26:04.144852 | 2018-01-08T02:55:17 | 2018-01-08T02:55:17 | 65,470,395 | 53 | 12 | MIT | 2022-07-06T19:59:39 | 2016-08-11T13:11:02 | Python | UTF-8 | Python | false | false | 2,128 | py | from django.contrib.auth import get_user_model
from django.core.urlresolvers import reverse
from django_dynamic_fixture import G
from django_webtest import WebTest
from fluent_contents.models import Placeholder
from . import models
User = get_user_model()
class AuthorTests(WebTest):
def setUp(self):
self... | [
"greg@interaction.net.au"
] | greg@interaction.net.au |
672c438a34751af46b3ad95bc9076fa39b1a754c | 46241eef26f1cca5fdd19880547aa8074da9ec63 | /id/id/urls.py | 1243becff5b3e2c76caa8dc8bdc956ba0a1d8b50 | [] | no_license | paulkahura/probable-octo-palm-tree | 318623327ace1149880f5fa7947df2fa24940bca | 58c4a8a8b3f94dd77f4dbdd1d2fb3a76d7dd031c | refs/heads/master | 2020-03-15T17:05:12.954978 | 2019-05-09T08:43:17 | 2019-05-09T08:43:17 | 132,250,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | """id URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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 view... | [
"pablokahura@gmail.com"
] | pablokahura@gmail.com |
e4bae558107b657bbbb0efe18e298a9b9e5df0d7 | 61d331452736992ec4897d3d1459bb13ab166070 | /.c9/metadata/environment/posts/forms.py | ab78c6538f5ba6ae9713e95402ae7e38ac6b5457 | [] | no_license | elizabeth24602/django_blog | 0fb46c1e080c6f253021d54d406ab5dd9259642f | d7ecc93d2d179120d764604c0bec2a4d509a0ec1 | refs/heads/master | 2022-12-04T11:54:56.053773 | 2020-04-06T15:37:32 | 2020-04-06T15:37:32 | 250,847,128 | 0 | 0 | null | 2022-11-22T05:26:38 | 2020-03-28T16:52:53 | HTML | UTF-8 | Python | false | false | 729 | py | {"filter":false,"title":"forms.py","tooltip":"/posts/forms.py","undoManager":{"mark":0,"position":0,"stack":[[{"start":{"row":0,"column":0},"end":{"row":8,"column":71},"action":"insert","lines":["from django import forms","from .models import Post","","","class BlogPostForm(forms.ModelForm):",""," class Meta:"," ... | [
"ec2-user@ip-172-31-82-182.ec2.internal"
] | ec2-user@ip-172-31-82-182.ec2.internal |
ab8bb3e9412453776f9a21d696fa2cd74bf40e53 | a009d65b277d0d80d0570c66b9971aaed8d50536 | /inference.py | da03211c6fe979b684671bda0f32d05e76881d97 | [] | no_license | Prasadchaskar/Blood-Cells-Classification | 3748b588f60bc6105bf728eeebd9fcc53c824692 | 6682c82687b4dd080383e2b9b2b73b9f2810c799 | refs/heads/main | 2023-08-27T02:41:59.682376 | 2021-11-10T10:28:03 | 2021-11-10T10:28:03 | 424,457,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | import numpy as np
from numpy.lib.type_check import imag
from tensorflow.keras.models import load_model
from tensorflow.keras.preprocessing import image
from tensorflow.keras.preprocessing.image import load_img
from tensorflow.keras.applications.vgg16 import preprocess_input
from tensorflow.keras.preprocessing.im... | [
"noreply@github.com"
] | noreply@github.com |
a272ec7b1afd598a8838e69aa7d800449cc10dd5 | a35d1f49fda8e27766733b72930d01cb4f023a9b | /Clase 3/Ejercicios Clase 3/ejercicio_1_y_2.py | b38e57fc9cb33dce001a3a6da770ff8332cc726b | [] | no_license | fedestf/python-rpa-calyx | e8f2ef5dcac645015cd525d639ac0eb3231a3b05 | 4e788883226883c17da2d024932e8e6aff2091a3 | refs/heads/master | 2023-07-14T06:46:43.562040 | 2021-08-24T22:14:19 | 2021-08-24T22:14:19 | 336,109,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,489 | py | # TODO: crear una función que reciba al menos dos parámetros: nombre del archivo a crear y una listas de fechas
# Las fechas deberán tener el formato YYYY-MM-DD, y deberán ser strings. Ejemplo: ["2021-01-31"]
# La función deberá crear el archivo con el nombre indicado y agregar el nombre del mes de cada fecha en cada l... | [
"fede520@live.com"
] | fede520@live.com |
7c59345e29ddbf421da0905c7a83393c0b38a10d | 9bd620ee4e9ea003cca3d62f8cd0152fd474168a | /ArtificialDataSets.py | 5cba301a2afaabbcaa284105ba6e2d8f6a5e10dc | [
"Apache-2.0"
] | permissive | DannyVanpoucke/Amadeus | 66511245978bdd80947be3e36415f8f9f3d373bc | 6604cbdca43a1e2c8c0df72d251dcfbbd116e11e | refs/heads/master | 2023-03-19T15:47:46.398189 | 2021-03-18T08:25:59 | 2021-03-18T08:25:59 | 285,809,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,825 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jan 10 16:23:23 2020
@author: Dr. Dr. Danny E. P. Vanpoucke
@web : https://dannyvanpoucke.be
"""
import pandas as pd
import numpy as np
def Lin1DFunc(x:list, intercept: float, slope: float)-> list:
"""
Create linear data: y=slope*x + intercept
"""
return li... | [
"43441267+DannyVanpoucke@users.noreply.github.com"
] | 43441267+DannyVanpoucke@users.noreply.github.com |
75e375e7612b51323a35fa955e3fa5a4c7ffb7bb | e2d0416b3932853c7fc9e11ac343b87968b7fb8e | /build.py | f718b5a77a906e44b26b5bb6234d17eaccd6f9f9 | [
"Apache-2.0"
] | permissive | addyosmani/polymer-devtools-extension | 3b756ad68d5734c378e4d2d40055c43b1ad717d0 | 2d6717fd2392cd20043175d3b2525d23139695a2 | refs/heads/master | 2021-01-18T08:25:41.317048 | 2014-07-21T18:36:49 | 2014-07-21T18:36:49 | 22,074,264 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,811 | py | import subprocess
import sys
import os
# Check if it is a clean or a build
args = sys.argv
mode = None
if len(args) == 1 or args[1] == 'build':
mode = 'build'
elif args[1] == 'clean':
mode = 'clean'
else:
sys.exit('Invalid param: ' + args[1])
def execCmd (cmd, silentFail):
'''Executes the cmd and fails silent... | [
"sachinhosmani@gmail.com"
] | sachinhosmani@gmail.com |
697b448ff77a1b0e7b916274a73905cd9c9a40eb | 0dadd036fba623bc271778741bc7ced58c75bbb5 | /python-client-generated/test/test_rab_mod_notification.py | b5654bfb133e6fd319486bd4952a91312143bcc0 | [] | no_license | faaiqbilal/MECProj1 | c8b255e887e5ca81e7b16c193627788d28c87a23 | 071ece3ae9183329f6798a5ae62d2b537d876960 | refs/heads/main | 2023-07-13T07:51:43.952294 | 2021-08-17T16:46:24 | 2021-08-17T16:46:24 | 383,188,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | # coding: utf-8
"""
ETSI GS MEC 012 - Radio Network Information API
The ETSI MEC ISG MEC012 Radio Network Information API described using OpenAPI. # noqa: E501
OpenAPI spec version: 2.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_impor... | [
"faaiqbilal@outlook.com"
] | faaiqbilal@outlook.com |
1da8369e52e7462e58fd7f1e45d315e8321f03e0 | 39b5e90dd9666ebcdb90529c41a345e8b66cba5e | /python-covid/download-pdb-structure2.py | 7fe971dfb148fa2e44ec7cec943b4fbf7b33d67b | [] | no_license | fovtran/nvc19_repo | 99f2d16b67a32a8cd982ebc559a3f5bc349266ab | 66f7e2352e602cbb6d33a0acd85bd865d082b7ef | refs/heads/master | 2022-10-24T12:54:20.784070 | 2020-06-12T20:20:37 | 2020-06-12T20:20:37 | 257,798,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | import urllib2
url = 'http://www.rcsb.org/pdb/rest/search'
queryText = """
<?xml version="1.0" encoding="UTF-8"?>
<orgPdbQuery>
<version>B0907</version>
<queryType>org.pdb.query.simple.ExpTypeQuery</queryType>
<description>Experimental Method Search: Experimental Method=SOLID-STATE NMR</description>
<mvStru... | [
"recsvintage@gmail.com"
] | recsvintage@gmail.com |
2571f8f5f96f70ae74ffa141250c8e9f9af72655 | 03ac801624f319168dc29e46c2d50a26fc69b808 | /dspc/dspc.py | 370f49425939af54f6ac7d82314bb46c7910213f | [] | no_license | fanyunfeng/dspc | 1c7be34c7f0eefd30f1332ae0f272edddcec9e1a | 3c39cc4587f8216bd87c9dd2200d26f1aa2af6dc | refs/heads/master | 2021-05-11T04:05:36.936015 | 2018-01-18T04:57:36 | 2018-01-18T04:57:36 | 117,931,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,361 | py | #!/usr/bin/env python
import sys
import json
import httplib
import urllib
from pbjson import pbjson
from urlparse import urlparse
def doHttpBidRequest(channel, url, body, header={}):
module = __import__(channel)
_url = urlparse(url)
pb = module.createRequest();
pbBody = pbjson.dict2pb(pb, body)
... | [
"fanyunfeng@gmail.com"
] | fanyunfeng@gmail.com |
53f2f13a6e0e28dfb0d863457a8d9473e90c16e1 | 104f908695cd0f25aa647e295f1c88a67b91fdda | /0x0B-python-input_output/5-save_to_json_file.py | c48823b0e9ef16f897263a11a24f9b0e96a75390 | [] | no_license | RaimundoGallino/holbertonschool-higher_level_programming | 8e9799c5368331596eb7c840e164290e74b79c9a | 08eee242c427eb6f2e7b5cfa2bd703309f1c606f | refs/heads/main | 2023-07-19T06:40:43.421043 | 2021-09-22T20:32:09 | 2021-09-22T20:32:09 | 361,609,691 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | #!/usr/bin/python3
"""
function that reads a text file (UTF8) and prints it to stdout
"""
import json
def save_to_json_file(my_obj, filename):
"""defining save_to_json_file function"""
with open(filename, "w+", encoding="utf-8") as json_file:
return json.dump(my_obj, json_file)
| [
"raigallino0@gmail.com"
] | raigallino0@gmail.com |
5e001cf40c3cf7e685b5f4962559735dd96cd53c | 2926c9ef7ed3e865fb6ca76bd2e35019b7d5e619 | /diabetes.py | e9fb4201b1cfa64927bd1fe2263d8cf0058fbc6d | [
"MIT"
] | permissive | jloveric/GraphStackedGeneralization | 3c378ef7826bd118d7ba62352bfedd4d74ce95cf | 91d88bfc43ea9af5e33f3854add5b08edb3b7ba3 | refs/heads/master | 2023-01-28T14:53:07.653700 | 2020-12-07T15:37:39 | 2020-12-07T15:37:39 | 216,072,244 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,767 | py | import numpy as np
import sys
#sys.path.append('../')
import multiclassRegression as mr
from sklearn import preprocessing
from sklearn.datasets import fetch_openml
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import LabelEncoder
import polynomial
from polynomialRegression import *
i... | [
"john.loverich@gmail.com"
] | john.loverich@gmail.com |
f11118c55214be5a827e74557c4698382e06dd76 | 55c6975fa3064515ad37ca5b1f6d28b275d9787b | /python/nilearn_cache/joblib/nilearn/masking/compute_multi_gray_matter_mask/func_code.py | 9f3562f31bbebd8409c64442bbf9dd9b54a21f21 | [] | no_license | Termynator/msc_thesis | 6502de2e09ec5cfa508c3ab480059ac62fab9a6f | 25f102c99147ebd0f2f9dab56daa37c5db52e3d2 | refs/heads/master | 2022-11-30T21:11:24.830963 | 2020-08-19T10:36:58 | 2020-08-19T10:36:58 | 286,260,865 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,870 | py | # first line: 590
def compute_multi_gray_matter_mask(target_imgs, threshold=.5,
connected=True, opening=2,
memory=None, verbose=0, n_jobs=1, **kwargs):
""" Compute a mask corresponding to the gray matter part of the brain for
a list of images... | [
"zekeortiz00@gmail.com"
] | zekeortiz00@gmail.com |
55f4c1897fb292126005faa6d37b3c97335cf67e | de4c1e7813fbb5ea87aa0bf2550c2303f57dcac5 | /src/pytorch/region_select.py | 5a0df9ecbd17d58dedb0abc6682fcde5a5a9c746 | [] | no_license | shizikc/ObjectCompletion3D | 274aa62bd50f40828647f8f4e9ff962f0c8cada1 | 03ad8cccc6357db023671b0034d5929696715e8c | refs/heads/master | 2022-12-24T17:15:40.922176 | 2020-08-18T09:54:50 | 2020-08-18T09:54:50 | 262,784,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | import torch.nn as nn
class FilterLocalization(nn.Module):
def __init__(self, coeff=2., threshold=0.01):
super(FilterLocalization, self).__init__()
self.bce_loss = nn.BCELoss(reduction='mean')
self.threshold = threshold
self.coeff = coeff
self.loss = 0.0
def forward(... | [
"shizik610@gmail.com"
] | shizik610@gmail.com |
8f1f571100dddc697216fed429d1960e080d16fe | b89da794e93eb06ad86f97052e082a7be3f26d1a | /BasicPython/ch2_3_ex4.py | 18b2fe8ade4e8c04c02cfd7d3066f5ce3c449da1 | [] | no_license | dooli1971039/Codeit | 16854a294642f37da9e52c1a7c2dcdfad3b65e05 | 8cb164cd6f49be0313f8ede074003ce969fc1575 | refs/heads/master | 2023-08-20T23:22:24.569192 | 2021-10-04T13:36:46 | 2021-10-04T13:36:46 | 406,066,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | i=2
while(i<=100):
if i%8==0 and i%12!=0:
print(i)
i+=2 | [
"dooli9819@gmail.com"
] | dooli9819@gmail.com |
5774bfd808eb2123466db3d5e2bbee55b90fba97 | 3bc68d74d84c83fefada51afddf2c1ded4da1507 | /IsThisAValidTeamName/stats/migrations/0006_auto_20191013_0324.py | 814406be628c3fdd59060323442c8f1fb04018b5 | [
"MIT"
] | permissive | incubateind/iis-ms-del | a258e2cf2a3312657d1be5d30e4ddecd67360771 | 46b2df5a42809b06b3037c2e15804d4d74ba3372 | refs/heads/master | 2020-11-27T14:35:36.713244 | 2019-12-26T07:57:30 | 2019-12-26T07:57:30 | 229,490,667 | 2 | 2 | MIT | 2020-05-23T04:12:56 | 2019-12-21T22:30:49 | Python | UTF-8 | Python | false | false | 665 | py | # Generated by Django 2.2.6 on 2019-10-13 03:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('stats', '0005_auto_20191013_0323'),
]
operations = [
migrations.AlterField(
model_name='botrun',
name='buy_coords',
... | [
"mohak1283@gmail.com"
] | mohak1283@gmail.com |
03ad5b10573043eb44ff1cc57ac2a8a0204b3b75 | b694c88979fb0b6e74879597e2c5d501cfb79897 | /programming/blog/migrations/test/0027_auto_20160127_0858.py | f4e89b3e1d55422313cd47673dfed0e2ca7777b0 | [] | no_license | JooeunAhn/progamming_git | 2070ea2ec1b3e7e4fb6ad95a85f8c6a34ec47190 | ef4d44a0340f93ec417d21e25c275026013b3be0 | refs/heads/master | 2021-01-10T16:39:55.742028 | 2016-02-05T02:33:06 | 2016-02-05T02:33:06 | 51,121,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-27 08:58
from __future__ import unicode_literals
import blog.models
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0026_auto_20160127_0831'),
]
operations =... | [
"insanejflow@gmail.com"
] | insanejflow@gmail.com |
6cfa21449740970e35843155cb394f66194ec835 | 9fd624e296844d0f2f440d946b78e6c4aff4c0c5 | /test_tuple.py | 814e3cef50bd59abad1383dcae06e416216ee402 | [] | no_license | aogoZY/pythonDemo | d52bbc0db485de10b7e5611df23f4fe9c6d62590 | 945f85618be356880df22de3fdacc07e531714ce | refs/heads/master | 2020-07-16T23:40:17.128869 | 2019-09-16T16:38:05 | 2019-09-16T16:38:05 | 205,892,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | # -*- coding:utf-8 -*-
# tuple unchangeable
# tuple usage
# creating a tuple
aogo_tuple = ('goog', 'study', 'hard', 'work')
print (type(aogo_tuple)) # <type 'tuple'>
test_range = range(1, 5)
print (test_range) # [1, 2, 3, 4]
print (type(test_range)) # <type 'list'>
test_tuple = tuple(test_range)
print ... | [
"zhouyang@zhouyangdeMacBook-Pro.local"
] | zhouyang@zhouyangdeMacBook-Pro.local |
bb6ab78930b5ded4eb32cee3d95fef1fca817632 | 9236a820438d5a677e64d7c16c4ad8ac5378dfc6 | /inheritance.py | 0a876e22fe08ff63f86d537eabbda492fba43e06 | [] | no_license | pchordia15/Python | c4c3b808b7cac2f566eeb58b4ffc08b1dc628b17 | 3b692139c362a4ab4b36267876bf402d514cb804 | refs/heads/master | 2021-01-19T22:21:57.621395 | 2017-04-27T02:37:52 | 2017-04-27T02:37:52 | 88,802,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | class Fruit(object):
def __init__(self):
print("In Fruit class")
def nutrition(self):
print("Fruit class nutrition")
def fruit_shape(self):
print("Any shape")
class Apple(Fruit):
def __init__(self):
Fruit.__init__(self)
print("In Apple class")
def nutrition(self):
print("Apple class nutrition")
... | [
"pchordia@mail.csuchico.edu"
] | pchordia@mail.csuchico.edu |
f0de2600bd1e07a39f42bbe91fae645d210e66f7 | e489172f6e49e1239db56c047a78a29a6ffc0b36 | /via_account_taxform/account_tax.py | b1245ef236db95e377f0531f854b5c0588e892e0 | [] | no_license | eksotama/prln-via-custom-addons | f05d0059353ae1de89ccc8d1625a896c0215cfc7 | f2b44a8af0e7bee87d52d258fca012bf44ca876f | refs/heads/master | 2020-03-25T19:49:08.117628 | 2015-12-01T07:29:43 | 2015-12-01T07:29:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,478 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# Vikasa Infinity Anugrah, PT
# Copyright (c) 2011 - 2013 Vikasa Infinity Anugrah <http://www.infi-nity.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the term... | [
"aero@aero.(none)"
] | aero@aero.(none) |
2e6f7a8fdee39c8614cb556ef4dcd1c3f2cb1f11 | 82af2d159cd009c1bdfa784d8017466034cda98c | /hw3/code/exercise2/plot_utils.py | e1144d5255f42de609f873172dba2b9488d13db9 | [
"MIT"
] | permissive | dedeswim/ee-556-hw | d69222b9a09257de0c18429d7c294c124d578b2c | 77f8a55f945fcf0828e5b16341c6bc0a3742b188 | refs/heads/master | 2020-08-20T05:47:16.808545 | 2020-01-08T22:03:39 | 2020-01-08T22:03:39 | 215,987,831 | 4 | 0 | null | 2020-01-08T21:52:35 | 2019-10-18T09:23:03 | Jupyter Notebook | UTF-8 | Python | false | false | 1,327 | py | import matplotlib.pyplot as plt
from matplotlib import colors as mcolors
from mpl_toolkits.axes_grid1 import make_axes_locatable
import numpy as np
def plot_convergence(results, fs_star, title, ylabel):
colors = {'ISTA': 'red', 'FISTA': 'blue', 'FISTA-RESTART': 'green'}
ax1 = plt.subplot(1, 1, 1)
for key ... | [
"edoardo.m.debenedetti@gmail.com"
] | edoardo.m.debenedetti@gmail.com |
95d5e7658eddfd751860a19ca0b33b789fca8613 | b09020a8118a7b6f97d9025a58f3ac9ef70429e0 | /notebooks/PythonWeb/django_fw/project/manage.py | 2be20ee9eba9e44af5d4b87ca7e2c88b9f54915b | [
"MIT"
] | permissive | rdenadai/treinamento_python_2019 | e092c0ef56119105656fa2a57ab9446e8f614eed | 640f3ab303d748e1a11caaacdc2fe5b2cfc74a42 | refs/heads/master | 2023-05-24T17:12:43.786405 | 2023-05-02T11:44:33 | 2023-05-02T11:44:33 | 168,604,818 | 2 | 2 | MIT | 2023-05-17T04:17:32 | 2019-01-31T22:11:09 | Jupyter Notebook | UTF-8 | Python | false | false | 625 | 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", "entry.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportEr... | [
"rdenadai@gmail.com"
] | rdenadai@gmail.com |
234e9ef5c40ea5c353d970345a492cf8473ed278 | a7b45b55a0cd390820fbdaf27e9d6821fbd7dfb6 | /lstm/__init__.py | 824a5e339ce7b780eb83ce8da420170153188ac3 | [] | no_license | EwdAger/Industrial-Data-Time-Servies-Prediction | 70bc23a0b29b96d28a15081364b457cdd7220afa | d83065887f9340762d2def242884d33a71a36900 | refs/heads/master | 2020-09-30T09:41:12.789854 | 2020-09-21T06:18:13 | 2020-09-21T06:18:13 | 227,262,445 | 5 | 0 | null | 2019-12-11T02:50:17 | 2019-12-11T02:50:16 | null | UTF-8 | Python | false | false | 81 | py | # -*- coding=utf-8 -*-
"""
Desc:
Auth: LiZhifeng
Date: 2019/12/10
""" | [
"zhifeng2.li@getech.cn"
] | zhifeng2.li@getech.cn |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.