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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e26431be03e866409646a45a30faa2d8d7929b10 | 1e37b3f96a81e78dfbe870fc4cd186ec782ee8d2 | /tkBuscaMinas.py | 4790b169d0be0d10e42fd3977b90f7a29edafd9a | [] | no_license | LuisUrbalejo/tkinter | d418c46b57bc0274f5e79320550d796621c01098 | 0ffbbab878ff8c09b011c2218f91c1e85f0070de | refs/heads/master | 2022-08-23T16:02:42.718146 | 2020-05-23T17:22:01 | 2020-05-23T17:22:01 | 266,216,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,529 | py | import tkinter as tk
import random
# 2020/05/22
# Luis Urbalejo
# Python en español (principiantes)
intTotalFilas, intTotalColumnas = 10, 10 # total de filas y columnas del juego, usar con moderación :v
intTotalMinas = 5
lstMinas = []
lstCeldas = []
bandera = False
def vecinas(intR, intC): # Busca ... | [
"noreply@github.com"
] | noreply@github.com |
71df3dc9977a8721e467f7abce09c92e51cb6b27 | de7649bebf02c1df8a2b5f8eb179ca8a4119c0be | /serverapi/apiApp/urls.py | b663a3c36b3db600c8524b35f8711dbfbc1fb7f6 | [] | no_license | Akhil-Shukla/ServerApi | 552ec83c6f8cfa0e5c9ea43e142842d24aba42ed | 0e3a17fbe0ebf53afc5a061684d7beba0cf213fc | refs/heads/master | 2022-11-28T09:33:27.288242 | 2020-08-08T18:40:48 | 2020-08-08T18:40:48 | 286,099,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | from . import views
from .views import *
from rest_framework import routers
from django.conf.urls import url,include
router=routers.DefaultRouter()
router.register(r'products', ProductViewSet)
urlpatterns=[
url('index/',views.index),
url(r'^test/',views.test),
url(r'^api/', include(router.urls)),
url... | [
"akhil.shukla@flipkart.com"
] | akhil.shukla@flipkart.com |
2a1c0de27f121ef28d7569ea6a704898ee78d24b | 86a8fa688a9addde928162f39a77b0536a56d6ac | /orders/admin.py | 1d9fde1e8545ce6ea88c807235b173887a49ed39 | [] | no_license | SerovMihail/simpleQuestionnaire | e19a15d5e728601fc8f259338333ac6576306ddf | d5f5b211263ce603e0a4ef95dcec550b449ece80 | refs/heads/master | 2021-01-22T07:58:10.258576 | 2017-09-11T21:16:05 | 2017-09-11T21:16:05 | 92,591,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 781 | py | from django.contrib import admin
from .models import *
class ProductInOrderInline(admin.TabularInline):
model = ProductInOrder
extra = 0
class OrderAdmin(admin.ModelAdmin):
list_display = [field.name for field in Order._meta.fields]
inlines = [ProductInOrderInline]
class Meta:
model = O... | [
"serov.m.888@icloud.com"
] | serov.m.888@icloud.com |
4147b47dc8d092dcad2be5f51b6e4970e3d12fc8 | 577e12b4e8b1e7d3732b0e546ea78611da93e7b0 | /lab3/main/urls.py | dbd33fc04437795757aa05f0d15ba480f7a6ce63 | [] | no_license | AbulkhairMeiramov/django | 147a2d589935ec97d7ec7d43afe92db22ee26a13 | 85752079f98fdad5e1b4140b7a9ca4d32e3509cc | refs/heads/main | 2023-03-22T00:05:51.662703 | 2021-03-20T14:35:33 | 2021-03-20T14:35:33 | 342,797,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | from main.views import *
from rest_framework.routers import DefaultRouter
router = DefaultRouter()
router.register(r'', TaskViewSet, basename='task')
urlpatterns = router.urls | [
"abulkhairmeiramov@gmail.com"
] | abulkhairmeiramov@gmail.com |
baa0478f0cc3df2f58b3c893afa190ffa64bc85a | 3c6c68aab3d1db4b72ce9defa90529fdbc58efee | /Tracking/manage.py | 55120d48efc2607c69aec59de5aeab42d334f5b0 | [] | no_license | jhn5052/DeliveryTrackingModule | c6d7f9741a582b454cc1cc5b58bca4024dc5a012 | 043a81d3ee33b9e19f63894bcc81941cd3509b02 | refs/heads/master | 2022-11-12T16:36:48.156227 | 2019-12-08T11:00:41 | 2019-12-08T11:00:41 | 222,979,812 | 0 | 1 | null | 2022-10-31T18:07:09 | 2019-11-20T16:24:39 | Python | UTF-8 | Python | false | false | 628 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Tracking.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Impor... | [
"jhn5052@naver.com"
] | jhn5052@naver.com |
e8dcf7ca82280485ec54eb873c61e88ac1460a7f | 34eb4a17c68437ae692e282fe92310026e747977 | /nmon_nan.py | 9aa437f2b0fe5a01fdccd6286bdb6df0c0e8ebfa | [] | no_license | wy3552128/toolGUI | f5f6ea48a8f045db4231840dd01b9ebecd172fc1 | d2d097056d4f7f714eace491afd88a3c70e5659d | refs/heads/master | 2020-09-28T02:33:35.692905 | 2019-12-11T09:55:04 | 2019-12-11T09:55:04 | 226,668,722 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,839 | py | #coding:utf-8
#python 3.4
__AUTHOR__ = '王勇'
version = 0.3
import glob, csv
import sys, os
import datetime, time
from tkinter import *
# 设置日志 毫秒保留前三位 14:18:23.978
def log_info():
return str(datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')[:-3]).split(' ')[1] + ':[info] '
def log_error():
... | [
"noreply@github.com"
] | noreply@github.com |
f7ddcacbb79773e9e172bf744f32f73d71c0f0d6 | aa46cfe4f86ff28a4ee81011825ce6362af359c7 | /reverse.py | eae0c81e9e8dfd73227c52fb292fd85c9674d438 | [] | no_license | adam-hamilton/selfstudy | c2f1c48e691b6bc5829fbf467bffd5f503a4281b | a45045b37c4b78b5370f621823508c889c91a893 | refs/heads/master | 2021-09-08T14:00:22.122307 | 2018-03-10T04:42:57 | 2018-03-10T04:42:57 | 115,807,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | #!/usr/bin/python3.6
def reverse(alist):
"produces reverse list in place"
left = 0
right = len(alist) - 1
while left < right:
alist[left], alist[right] = alist[right], alist[left]
left += 1
right -= 1
return alist | [
"ahamilton7@live.com"
] | ahamilton7@live.com |
7adfc2af45d0d74ffa1bc60eadd93a8019e2f8e5 | 2b992e826061f2975184613105b63656f0a76eb9 | /images_google.py | e64893c42b100713b83bf69348007cdcfb8498e9 | [] | no_license | CrisTowi/FusionaImagenesGoogle | 2bb4e556bb2a9257b82e3e9b705cb4839e04dc00 | 532bfa375963faf1757f4ca542cc8728c4c8da0e | refs/heads/master | 2016-08-13T01:40:29.788925 | 2015-05-30T05:14:32 | 2015-05-30T05:14:32 | 36,049,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,022 | py | import json
import os
import time
import requests
from PIL import Image
from StringIO import StringIO
from requests.exceptions import ConnectionError
import twitter
def go(query):
path = 'MiNuevaCarpeta'
BASE_URL = 'https://ajax.googleapis.com/ajax/services/search/images?'\
... | [
"christian_consuelo@outlook.com"
] | christian_consuelo@outlook.com |
0d1bfa10a0f23f5503725ef9058aa3034e4501e3 | 3920495ede87aad10f078ed0355b853943ff7e42 | /testp.py | 68e30618b34f15446ab1c61eca20c16a28541943 | [] | no_license | Evkn00/Test | 708973bf8cb844b9686d1fa1ec15497507066ee5 | 49ca89637a68604ec40a061fc7def02758d0542c | refs/heads/main | 2023-04-30T02:09:18.472390 | 2023-04-17T12:05:57 | 2023-04-17T12:05:57 | 310,957,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20 | py | print('Temp lols!')
| [
"evoken.au@gmail.com"
] | evoken.au@gmail.com |
ee26bb4c68bede24b892f255ccec242271190542 | c9cab893ab8102c7c2cbce0b0aac2534f26a9fd2 | /scripts/reformat_spot1d_local.py | 68cb4ea50b9414d72bdf8058a15c40bd47bd2125 | [] | no_license | hpgong/DeepFragLib | 0ecb0eaeea9412e4b51f2a845ed738569d78a423 | 176406e42de9d35ab37758e4e0c9650ca03dbf50 | refs/heads/master | 2022-03-08T20:06:29.729492 | 2019-11-20T02:28:51 | 2019-11-20T02:28:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 968 | py | # -*- coding: utf-8 -*-
from __future__ import division, print_function
import os
import string
import sys
target = sys.argv[1]
with open('../../data/example/'+target+'.spot1d') as fin:
lines = fin.readlines()[1:]
with open('../../data/example/'+target+'.spd3', 'w') as fout:
fout.write('# SEQ SS ASA Phi Psi... | [
"t-wan14@mails.tsinghua.edu.cn"
] | t-wan14@mails.tsinghua.edu.cn |
90fe1b46319dbf2c3d6b927eb99a8b452ae55a17 | 23eedba68b45f841e463b3283cc549d8c78e279a | /first_project/first_app/migrations/0001_initial.py | 19e7425c4db4a7f1db03e2cf33fe9d25e1c88fd8 | [] | no_license | MREA-project/django_deploymnet_example1 | 02dbb1dd4a9e2f375afe5195685c7576881225bf | fe09767f7fca4382d5fecfb5ecda1a281514067b | refs/heads/master | 2023-08-24T17:43:55.621120 | 2021-11-04T13:50:36 | 2021-11-04T13:50:36 | 424,603,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,394 | py | # Generated by Django 3.2.8 on 2021-11-02 15:43
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Topic',
fields=[
... | [
"ammumohan5656@gmail.com"
] | ammumohan5656@gmail.com |
14135a86c6ec880f4b552a93cc8d4d659edca982 | 2664a0f59cc9789332fcade3e008c1376da3a102 | /tests/test_A000004.py | 52332d52c523c05c7b8632654c4b7d6fca1ddc39 | [
"MIT"
] | permissive | danielsimonney/oeis | bbd8be95bdaaf08344cdd32d14acf9c428c926d3 | 16c1dd6e058e49b629f695acb82ec55dd5f052f9 | refs/heads/master | 2020-09-13T04:25:14.309703 | 2019-12-29T12:40:47 | 2019-12-29T12:40:47 | 222,654,082 | 0 | 0 | MIT | 2019-11-19T09:08:18 | 2019-11-19T09:08:17 | null | UTF-8 | Python | false | false | 130 | py | from oeis import A000004
def test_null():
assert A000004(3) == [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
| [
"julien@palard.fr"
] | julien@palard.fr |
e4cf8b8316efe23ce6dff2711214ee9c2be312d7 | e3f6a8154287075575f1a8ba2a0204cc2c03696f | /IOT_sourcecode/multi_cluster_accuracy_fairtree.py | 6c5c7f0b4b75b8ca8f8133b5d6ece7583902dc61 | [] | no_license | dilipcs148/Evaluation-of-scalable-fair-clustering-machine-learning-methods-for-threat-hunting-in-cyber-physica | f6fca5074c4b27a3339cab0024d9615601dc4b19 | 3b0c7154d2dcfb3e562500e9eaacf39bf5a978e2 | refs/heads/master | 2022-10-01T22:07:32.145680 | 2020-06-12T05:28:40 | 2020-06-12T05:28:40 | 271,715,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,612 | py | ### The MATLAB module does not work with python 3.7.0. Use 3.6.0 release or older.
import sys
import numpy as np
from collections import defaultdict
import matlab.engine
import time
from sklearn import metrics
EPSILON = 0.0001
FAIRLETS = []
FAIRLET_CENTERS = []
class TreeNode:
def __init__(self):
... | [
"noreply@github.com"
] | noreply@github.com |
3380ef334532eb0e1cbe2072e7b2f3a26a61e229 | c012cf7237321a8347386f82f847d6e66cf06ab8 | /dataset.py | 0598b3e2633aa07f846713175e6347a3a42c13be | [] | no_license | blueCat2020/LipNet | afa39a7968df35ff86624e74aece7c2b48ac429a | 6cfe64b77e247f882014052d08b83765721731fe | refs/heads/main | 2023-03-01T03:18:50.508870 | 2021-02-11T09:26:11 | 2021-02-11T09:26:11 | 335,478,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,694 | py | # encoding: utf-8
import numpy as np
import glob
import time
import cv2
import os
from torch.utils.data import Dataset
import torch
import glob
import re
import copy
import json
import random
import editdistance
import glob
from torchvision import transforms, utils
from preprocess import Rescale, CenterCrop, NoiseGaus... | [
"3028152459@qq.com"
] | 3028152459@qq.com |
99aefe8db301e92c6f67f92dc6a3d3b99d6f0e61 | 189ef0cbfd4d1859f00ae5f92ae443ec5bcc70e5 | /test/f.py | 8846dd36d3679223520c79cc95734044d5d9dde0 | [] | no_license | birbado/gwc | 543b34c8a643f01b0bdc626d8f45836b3e582bb6 | bff2acf4a502106b57fa2cff7479c07b9cbff999 | refs/heads/master | 2020-06-10T02:32:45.886475 | 2019-07-09T22:38:13 | 2019-07-09T22:38:13 | 193,556,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,506 | py |
play = input('play? ')
if (play == 'no'):
print ('ok then :(')
quit()
elif (play == 'yes'):
print ('yeehaw')
print('the story will now begin')
print('u and ur family are on vacation in the lands of far far away. u get lost in the forest. u have no food. u have no water. u have no hope.')
prin... | [
"lorihuang3698@gmail.com"
] | lorihuang3698@gmail.com |
5ba354b71eae59121dd576d64ee9086db32e8479 | 979b99f0daa5de6f9063a2e68312519694200d0b | /test_scripts/test.py | 39e7a841ce563afaed338e5e899b416a5d024a29 | [] | no_license | topchoder/Video_Colorization_DL- | 7714229b72d492dfc9c4d21a335eaebddb956c5b | 2354900ec5dd09d1bc3a33165a1d91c81c3d9361 | refs/heads/master | 2020-09-05T15:34:47.029931 | 2019-11-07T04:09:37 | 2019-11-07T04:09:37 | 220,145,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,416 | py | #!/usr/bin/env python
# coding: utf-8
import keras
from keras.models import *
import numpy as np
import cv2
import glob
import sys
import os
def frameExtractor(path):
videoObject = cv2.VideoCapture(path)
success = 1
while success:
success, image = videoObject.read()
yield image[:,:640,:... | [
"noreply@github.com"
] | noreply@github.com |
27546e9ab5e157fb726cc2ce3e542977f572f546 | 3eabc21bc0464c0b07acd4c31893cf3ffbaea56e | /game.py | 29c18cc22cec39f3205bbbd95df145126a3f2cb6 | [] | no_license | breez225/rock-paper-scissors-game | 036d6be9799c40b48576a548137a88c692e31de5 | 7186b70eef787a8d8af380cebb410e3cb7b15364 | refs/heads/main | 2023-08-17T08:52:33.853458 | 2021-09-27T01:23:39 | 2021-09-27T01:23:39 | 407,220,088 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,879 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Sep 16 19:37:06 2021
@author: brilabanti
"""
# this is the "game.py" file...
# '''name = input ("Enter your Name: ")
# print("Welcome:" + name )'''
print("Rock, Paper, Scissors, Shoot!")
import random
import os
from dotenv import load_dotenv
... | [
"noreply@github.com"
] | noreply@github.com |
4ab6f48f196d15a8ccb449aae4edc16f9c4700f6 | c4e1e14f5e3551ce12d04df249281681e0f0484f | /calculator/calculator.py | 63852ed59f1b9ee160d61ba4bfca85ed2656b6d9 | [] | no_license | wamik25apr/pythonprojects | f65cbffd27792b7ba453223d2cbd0b2d5ea96f25 | 24cc9acde8fe591d7a5e82c083442c8162ee36b6 | refs/heads/master | 2023-07-05T02:18:39.968090 | 2021-08-18T19:56:29 | 2021-08-18T19:56:29 | 395,393,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,292 | py | choice="p"
def calculator(num1,num2,symbol):
if symbol=="+":
return num1+num2
elif symbol=="-":
return num1-num2
elif symbol=="*":
return num1*num2
elif symbol=="/":
return num1/num2
def calculation():
num1=int(input("What is the first number? "))
print(f"+... | [
"wamik25apr@gmail.com"
] | wamik25apr@gmail.com |
a5a87d9cb88235ea15ab3e8f5388bacc96dbfbea | b1926953762b3720a9b5e4f7e136c3f296765f4b | /0x09-utf8_validation/0-validate_utf8.py | c026393dd80a6751dde74b661baa470fb11e7cea | [] | no_license | Nukemenonai/holbertonschool-interview | 2fd637e50d943fb5735012eee074f4c272c86e83 | 3c2727aaf91f4cccfce7c05406cac8b9c10f6e2d | refs/heads/master | 2023-06-26T13:32:30.568587 | 2021-07-29T01:20:08 | 2021-07-29T01:20:08 | 280,456,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | #!/usr/bin/python3
"""
utf validator
"""
def validUTF8(data):
"""
checks if an array if integers representing a UTF-8 is valid UTF-8
data: list of integers
returns: true if valid else 0
"""
n_bytes = 0
for num in data:
bin_rep = format(num, '#010b')[-8:]
if n_bytes == 0:
... | [
"david.giovanni.ovalle@gmail.com"
] | david.giovanni.ovalle@gmail.com |
dd937e57b0cd78480caf849d93b0436cd4b76474 | 8cd7f38ec443ec7a4ee3401190f13b60e9bcee49 | /helloworld/Hello.py | 0ebb88c41a8988e078a88e64a0c271d22f0cea8b | [] | no_license | vishka12/my-first-blog | 6bd8d41bbeb13eccf5e93e44fdc26c8d36e44e8c | 4df7e12e63e5a035e040f5a23b420ab3e8344252 | refs/heads/master | 2021-08-19T13:32:46.486005 | 2017-11-26T11:49:40 | 2017-11-26T11:49:40 | 112,070,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30 | py | print("Hello, Django Girls!")
| [
"sarvina12@mail.ru"
] | sarvina12@mail.ru |
18243eaa56a943fc010e3ebac0b3147369510e22 | 6c57865de8b1a1e6cca32a2319c337366effc167 | /combine_v2.py | 41819de0330be95f0e434d71c1bc12fe42ccf123 | [
"Apache-2.0"
] | permissive | shshen-closer/MOOC_cube-Task2-TOP3 | 12a29e92341b4e29dbacbb5455e87c3326136273 | 139127144a7f8f056fc8b519a9e4832eb88e5043 | refs/heads/main | 2023-03-18T14:57:28.377508 | 2021-03-19T08:59:14 | 2021-03-19T08:59:14 | 349,357,694 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,208 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Oct 27 20:30:38 2020
@author: shshen
多个预测结果简单融合
"""
import numpy as np
import json
import os
sample_submission = []
with open('Task2_data_0804/problem_act_test_new.json', 'r', encoding='utf8')as fi:
for line in fi:
item = json.loads(line)
... | [
"noreply@github.com"
] | noreply@github.com |
f4150055fcdaa73d7cdebbba85b82d6351e8b18a | d10d75d706d912772d707aa1ed9b10f464ee6d28 | /aoc_2020/inputs/day7.py | 605cddda2aec59ae1a3083386cd75bcc0c305c3a | [
"MIT"
] | permissive | n1ckdm/advent-of-code-2020 | 24df0bf785b1b85a342fb5e16a207de1f9e31aa9 | 913ea4cff29fa76df15c0c22616cc1eebb903490 | refs/heads/main | 2023-01-29T06:30:00.644538 | 2020-12-12T14:41:38 | 2020-12-12T14:41:38 | 318,633,854 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45,360 | py | data = """dark indigo bags contain 2 clear indigo bags.
mirrored gold bags contain 2 pale blue bags, 1 dark violet bag.
dim aqua bags contain 1 mirrored beige bag.
dim fuchsia bags contain 5 dark red bags, 1 muted green bag, 4 clear indigo bags.
shiny fuchsia bags contain 4 wavy teal bags, 4 dim cyan bags, 4 light gree... | [
"nicholas.martin@tharsus.co.uk"
] | nicholas.martin@tharsus.co.uk |
0af1178d13291d5e4e5df2fdceb7608a1d6fb6b6 | 364e6b47520642a5e63001948e96a67baf8f6354 | /request_sample01.py | 14f9be1aafec09072717de70f2248a10949a9cd7 | [] | no_license | matushinn/addressSearch | cd201338f8bee43d412cf33c82446e8983666a0c | 389919d15bfa020c45ba49339e0f7e3011c015ef | refs/heads/master | 2022-12-11T10:54:06.343867 | 2018-11-25T00:38:28 | 2018-11-25T00:38:28 | 159,294,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | import requests
#1
response = requests.get(url="http://hachimantai.spartacamp.jp/")
#2
print(responce)
| [
"shoooe97@gmail.com"
] | shoooe97@gmail.com |
9bb14ece250d2ec5a2cf8da15216e6244b49cb44 | d7df481f20826849b208f2b62eff53d8d107eeff | /ch5/multi3.py | 3ec9f68a0da4de3c70e95033f4d0a2367ec0ee86 | [] | no_license | jemuelb/programming-python-2 | 5f847d591129ae2071cf2937f7853fda654a4e09 | 07f1b36f6017f7c310ac89a62fa8f8280aac9b8c | refs/heads/master | 2021-05-01T19:23:15.748425 | 2018-03-04T22:53:30 | 2018-03-04T22:53:30 | 121,020,259 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,457 | py | """
Use multiprocess shared memory objects to communicate.
Passed objects are shared, but globals are not on Windows.
Last test here reflects common use case: distributing work.
"""
import os
from multiprocessing import Process, Value, Array
procs = 3
count = 0
def showdata(label, val, arr):
"""
print data ... | [
"jemuelb@gmail.com"
] | jemuelb@gmail.com |
bbdaf5b5723f6bf90d7a7615c82525fa5e2c3298 | 50e375bdc8affc1a8c09aa567a740fa19df7d5a6 | /DSBQ/venv/bin/chardetect | 5b47b8e5fd7a90a96a565e185674e79a64bd2b81 | [] | no_license | michTalebzadeh/SparkStructuredStreaming | ca7a257626e251c7b03a9844cfd229fa8ea95af5 | 87ef34ffe52061fcbb4f22fcd97764037717696a | refs/heads/master | 2023-07-13T00:49:10.753863 | 2021-07-12T16:39:50 | 2021-07-12T16:39:50 | 364,826,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | #!/home/hduser/PycharmProjects/DSBQ/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"mich.talebzadeh@gmail.com"
] | mich.talebzadeh@gmail.com | |
cba1c2b5018a52b2dd375eff9dc9cdd0ea272cf6 | dec9544cc8cc753d5e1a5b1061ca19b541eb15d4 | /drills/lec13/boy.py | 95a3edbf728455096cc8c59a3977ab37b53e1f57 | [] | no_license | cheol-jin-lim/2DGP | faad777ae8a66b4edc94e69221038cfb2c2dc6af | d42a4c2616fd97da5611411efebff0450ac08c0a | refs/heads/master | 2020-03-28T10:34:11.608320 | 2018-12-05T13:59:13 | 2018-12-05T13:59:13 | 148,121,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,209 | py | import game_framework
from pico2d import *
from ball import Ball
import game_world
# Boy Run Speed
PIXEL_PER_METER = (10.0 / 0.3) # 10 pixel 30 cm
RUN_SPEED_KMPH = 20.0 # Km / Hour
RUN_SPEED_MPM = (RUN_SPEED_KMPH * 1000.0 / 60.0)
RUN_SPEED_MPS = (RUN_SPEED_MPM / 60.0)
RUN_SPEED_PPS = (RUN_SPEED_MPS * PIXEL_PER_METE... | [
"dlacjfwls104@naver.com"
] | dlacjfwls104@naver.com |
e1d02811f5cf8e54ec65eb5fec773b4d4256cf5e | 26726bb7b71a6c54ceec4c6da1bfcc4146d3b782 | /rsa/key.py | 8f79ab933186e2d6b7590a7d28180e3ddc4015b6 | [] | no_license | Natsukikinb/XMLY | 7434f00b93ed2ec677c5dd06ff6e4a3d4ecc5861 | 39358712e0dc2587ca4e7f90efcf9d09013ff6ef | refs/heads/main | 2023-01-20T06:54:30.763748 | 2020-11-30T05:57:45 | 2020-11-30T05:57:45 | 313,342,895 | 1 | 0 | null | 2020-11-16T15:18:58 | 2020-11-16T15:18:58 | null | UTF-8 | Python | false | false | 24,190 | py | # -*- coding: utf-8 -*-
#
# Copyright 2011 Sybren A. Stüvel <sybren@stuvel.eu>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Un... | [
"noreply@github.com"
] | noreply@github.com |
9afdef743d01ce277e298c63216176d0577f6b4f | 4ad8f62c4b491b8d20d00a2507f8c5cb543237bf | /syntactic_features/ner.py | abf342dd5a4138ca6cb15ad28080d12e26af22ee | [
"MIT"
] | permissive | cniklaus/argumentation-learning | 2d04fa8bfd9a481c3207123398143b354b9d99d9 | d81c6b9f0f26ccee373994dacefd5b575fc3e763 | refs/heads/master | 2022-12-07T07:51:39.710133 | 2020-08-26T11:24:21 | 2020-08-26T11:24:21 | 290,458,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | #import spacy
#from spacy.lang.de.examples import sentences
#from collections import OrderedDict
#import numpy as np
#nlp = spacy.load('de_core_news_sm')
#doc = nlp(sentences[0])
#print(doc.text)
#for token in doc:
#print(token.text, token.pos_, token.dep_)
def get_ner(sentence):
#for ent in sentence.ents:
... | [
"noreply@github.com"
] | noreply@github.com |
9ca0fe5f80c416d757662d933b780b2fab1d959e | eeee0bc03cc996293702100519eed4a9752b766c | /imgit/imgit_app/migrations/0008_comment_author.py | b68e5a4f4e27ec2bb9ecb23c9482a7e1275c709f | [] | no_license | ikoyfman/imgit | ee40074f6638dfed4f4c7d94ddb715b6ecc776a0 | 6af5c29b7e6e24a400d529ae54884cb682f3f6b2 | refs/heads/master | 2022-11-24T02:14:23.786018 | 2019-11-08T11:14:31 | 2019-11-08T11:14:31 | 201,036,272 | 0 | 0 | null | 2022-11-22T04:45:57 | 2019-08-07T11:25:19 | Python | UTF-8 | Python | false | false | 631 | py | # Generated by Django 2.2.4 on 2019-08-08 10:54
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('imgit_app', '0007_remove... | [
"ilya.koy@outlook.com"
] | ilya.koy@outlook.com |
1fe8d88dbb1f77c4ea991f377fb063188a87e733 | 6810a482759afd585db7bb0b85fd0416f0450e6d | /Open Kattis/tolower.py | 7daf83d10d73126578159f631168fa5092a44ace | [] | no_license | BenRStutzman/kattis | 01b000ac2353c8b8000c6bddec3698f66b0198ef | 005720f853e7f531a264227d0d9aaa19d4d7cf1b | refs/heads/master | 2020-07-15T23:52:45.785021 | 2019-11-09T03:28:06 | 2019-11-09T03:28:06 | 205,675,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | import sys
def main():
inp = sys.stdin.read().splitlines()
P, T = [int(num) for num in inp[0].split()]
num_right = 0
for problem in range(1, P * T + 1, T):
#print('NEW PROBLEM')
for case in range(problem, problem + T):
string = inp[case]
#print(string)
... | [
"tysorx89@gmail.com"
] | tysorx89@gmail.com |
ac4ba7277050da79522ccf6c4adf07fa22922fd1 | 2e8d52230e27ffee67999a4496157f529a752c2d | /bot/__init__.py | 65fbcdb842fd8c55614b231a4259860e1fbb99f1 | [] | no_license | f3rbshs/F3rbsBot | f84f32af02e4cd598c068beb67fb614f856164ba | 4edf7984eb24328348fba8fde9cec88d65e19726 | refs/heads/master | 2020-03-18T19:49:26.731618 | 2018-07-10T03:47:54 | 2018-07-10T03:47:54 | 135,179,754 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | import ujson, yaml
# Configuration
try:
with open('config.yml') as ymlFile:
conf = yaml.load(ymlFile)
except:
print('Problemas na leitura do arquivo de configuração')
exit(1)
# Upload messages
try:
with open('lang.json') as jsonFile:
message = ujson.load(jsonFile)
except:
print('Problemas na leitura do arqui... | [
"rubenssegundo404@gmail.com"
] | rubenssegundo404@gmail.com |
c2f7a5c1f4fd8b90314a97057a3d8f1ceb83fc85 | 23c55b5b205a4c7b8b5c6ce3e28fb0bc80daa01e | /leetcode/daily-weekly contest/274 - H-Index.py | fee0632f935275e3a21556190d4620c691fb4273 | [] | no_license | divya369/Competitive-Coding | 88f5e110c5b1db9eafe725b4a496a3bed52d83b2 | 1c344a6833f8fb387e4ef8e89ef06d4e8ff22a7c | refs/heads/master | 2021-07-17T14:39:42.593499 | 2020-08-17T06:15:06 | 2020-08-17T06:15:06 | 200,369,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | def hIndex(citations):
if len(citations) == 0:
return 0
if len(citations) == 1:
if citations[0] == 0:
return 0
else:
return 1
citations.sort(reverse=True)
answer = 0
for i, citation in enumerate(citations):
if citation >= i+1:
answe... | [
"bhulku369divya@gmail.com"
] | bhulku369divya@gmail.com |
14ae952df1dd05d8a52f6d07964aeb958c160e0e | 570e1e9554173c78d275b364a18cbc9e3f534a8e | /benchmark.py | de691c1e9a2cbe6318d9f7bb6173c4e9e95b6307 | [
"Apache-2.0"
] | permissive | BigRoy/speedcopy | ddb0597bbaab48758db7dd94881bcdddd1ee68dc | 0d679af4190506a747d207f3a47bb901c6165b18 | refs/heads/master | 2020-05-28T13:24:39.489470 | 2019-05-28T10:28:18 | 2019-05-28T10:28:18 | 189,004,806 | 2 | 0 | null | 2019-05-28T10:14:06 | 2019-05-28T10:14:06 | null | UTF-8 | Python | false | false | 2,079 | py | import sys
import tempfile
import timeit
import os
import collections
from pprint import pprint
import time
FILE_SIZES_MB = tuple(2 ** x for x in range(12))
def generate_file(parent_dir, size_b):
""" Generate a file, write random data to it, and return its filepath. """
fd, filepath = tempfile.mkstemp(dir=pa... | [
"annatar@annatar.net"
] | annatar@annatar.net |
f1db20927a4f868b3497d2a1eef3c4704620f9dc | b72acab34c6a3acf310abedaff739c778a2d999a | /HanPrep.py | 5fa1503c46ad936702b5aa898b39d10d329e3b3b | [] | no_license | surajraj99/WFU_Bioinformatics | 87a4121b7cea01eef987ef068d10ad56bd89d24e | 35ae5be658ede172634ef6dea71570009ce241aa | refs/heads/master | 2020-06-03T00:46:20.228327 | 2019-10-28T20:03:28 | 2019-10-28T20:03:28 | 191,365,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,174 | py | import numpy as np
import pandas as pd
import pickle
import sys
import os
from keras.preprocessing.text import Tokenizer,text_to_word_sequence
from keras.preprocessing.sequence import pad_sequences
import gensim
from gensim.models import Word2Vec
import nltk
import re
import string
from nltk.tokenize impo... | [
"noreply@github.com"
] | noreply@github.com |
d12aec597ccbdf191c9024d967f7c6d1b7b636ed | 2ff2f41c6fe48a4961513ca6deefbc5b393c406e | /python/tvm/contrib/dlpack.py | 11db29f98b3ea308493040c592bdc92c390450a9 | [
"Apache-2.0"
] | permissive | zhiics/tvm | 9f5a39c6373349800b9255d74225d5dd65aba70f | 4782b1fc153d6614808f542155d58188f2dc8255 | refs/heads/master | 2021-12-21T03:24:31.176090 | 2018-09-05T22:48:37 | 2018-09-05T22:48:37 | 143,820,078 | 6 | 2 | Apache-2.0 | 2020-05-13T00:54:21 | 2018-08-07T04:34:08 | C++ | UTF-8 | Python | false | false | 1,251 | py | """Wrapping functions to bridge frameworks with DLPack support to TVM"""
from .. import ndarray
def convert_func(tvm_func, tensor_type, to_dlpack_func):
"""Convert a tvm function into one that accepts a tensor from another
framework, provided the other framework supports DLPACK
Parameters
---------... | [
"tqchen@users.noreply.github.com"
] | tqchen@users.noreply.github.com |
80bd958fadea7a7499a9a31a2c6046c00516d5f6 | 3778fd24d2cf3d9d74fa262c12e506b59b480036 | /pico/Valve | c60ec62867605792a9c5cb239cc56fce29215d7b | [] | no_license | re3e-yul/GrowBot | 64a343c075cd26b0652c6ca0efb40c12c956a911 | 17577f0985b134f32b85ee1ee37e5652694be387 | refs/heads/master | 2021-04-30T15:46:05.142269 | 2021-03-17T18:21:20 | 2021-03-17T18:21:20 | 121,248,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | #!/usr/bin/env python
#!/usr/bin/env python
import time
import serial
import sys
ser = serial.Serial(
port='/dev/ttyAMA0', #Replace ttyS0 with ttyAM0 for Pi1,Pi2,Pi0
baudrate = 115800,
parity=serial.PARITY_NONE,
stopbits=serial.STOPBITS_ONE,
bytesize=serial.EIGHTBITS,
ti... | [
"eric.soulliage@gmail.com"
] | eric.soulliage@gmail.com | |
84440f1697fe96da705000b583d07a4eec04f9d2 | 1919539694c2a2da99274a5b5fec6f3033829611 | /1005.py | 50f1c5e91582cf91d09bfdfaa8e70f8339707c61 | [] | no_license | thesmigol/python | f1fc67e0b4a3331a4850b724796967c4a2cf3007 | 0bcadc646a2824c89e15531a50e3f5cac2eb846a | refs/heads/main | 2023-07-11T10:10:27.015337 | 2021-08-17T13:43:42 | 2021-08-17T13:43:42 | 397,272,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | nota2 = None
nota1 = None
def read_numeric():
try:
# read for Python 2.x
return float(raw_input())
except NameError:
# read for Python 3.x
return float(input())
nota1 = read_numeric()
nota2 = read_numeric()
print(str("MEDIA = ") + str("{:0.5f}".format(((nota1 * 3.5 + nota2 * 7.5) / 11))))
| [
"alvaro_tavares@hotmail.com"
] | alvaro_tavares@hotmail.com |
6ae3aff81a20b7bb981e57be94ce72c2746c6651 | 0cd6b59e44abaf68fa5467395eaa9dc0bac589d5 | /peering/migrations/0011_auto_20180329_2146.py | 44f56062eb7c2dbc57356cce0bf84a97c9a8aded | [
"Apache-2.0"
] | permissive | omershtivi/peering-manager | 8f3091fe5ff33b2cf261766ac6619f6df50585d6 | 95ed7fe1dc496bfd3c89cbd823fb1218ffdf2561 | refs/heads/master | 2020-03-25T03:28:27.254710 | 2018-08-23T20:59:00 | 2018-08-23T20:59:00 | 143,343,961 | 0 | 0 | Apache-2.0 | 2018-08-02T20:53:40 | 2018-08-02T20:53:40 | null | UTF-8 | Python | false | false | 956 | py | # Generated by Django 2.0.3 on 2018-03-29 19:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('peering', '0010_auto_20171228_0158'),
]
operations = [
migrations.AddField(
model_name='autonomoussystem',
name='kee... | [
"gmazoyer@gravitons.in"
] | gmazoyer@gravitons.in |
3c896e70f77cfdb3abbbbc3f00b4f9d0c9c1b0da | 68d05f02c8e4206ce81bba27e1d9de7bbd26adde | /images/tests/test_resize_image.py | b7e352b4658855c918d97aa0449476f18b44f73d | [] | no_license | halilillo/images | f63ad984dfb8777cac597787799bab39f9702791 | 68027701fa662a571492b04f6cfbc8fe4759b7c2 | refs/heads/main | 2023-06-01T01:08:29.529013 | 2021-06-30T12:19:44 | 2021-06-30T12:21:11 | 381,670,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 836 | py | from io import BytesIO
from django.core.files.base import File
from django.test import TestCase
from PIL import Image as PILImage
from images.models import Image
from images.services import resize_image
class ResizeImageTestCase(TestCase):
def setUp(self):
test_image = self.get_image_file()
Imag... | [
"halilillo@yandex.ru"
] | halilillo@yandex.ru |
f95ba17bdd1fa2478effa89da26c1298d6bc9248 | d5cb4d50285f6f177c937e8b4a568822f7f004e9 | /tests/test_quote_picker.py | 4c590a29221776a63622df1f96b30ffdceadb995 | [] | no_license | jimmyovega/network | 10e0989bf4b5ce8775b8995f81ea5b0f1b07cacc | a80f3f60ee3ee6d452ef3ef0dc605af95237910b | refs/heads/master | 2021-01-15T21:20:43.503384 | 2015-03-14T18:54:37 | 2015-03-14T18:54:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | import os
from twisted.trial import unittest
from talkback.quote_picker import QuotePicker
class TestQuotePicker(unittest.TestCase):
QUOTE1 = (
"A fool without fear is sometimes wiser than an angel with fear. "
"~ Nancy Astor"
)
QUOTE2 = (
"You don't manage people, you manage thin... | [
"ikarilink@gmail.com"
] | ikarilink@gmail.com |
144944f86d23e3dd519eba2f3a2d474bfcad06bc | c36d9d70cbb257b2ce9a214bcf38f8091e8fe9b7 | /75_sort_color.py | 7bcae70f22da475f20b84852253654c068fa61d1 | [] | no_license | zdadadaz/coding_practice | 3452e4fc8f4a79cb98d0d4ea06ce0bcae85f96a0 | 5ed070f22f4bc29777ee5cbb01bb9583726d8799 | refs/heads/master | 2021-06-23T17:52:40.149982 | 2021-05-03T22:31:23 | 2021-05-03T22:31:23 | 226,006,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,510 | py | class Solution:
def sortColors(self, nums):
"""
Do not return anything, modify nums in-place instead.
"""
self.recur(nums,0,len(nums)-1)
def recur(self,nums, lt, rt):
if lt<rt:
print(lt,rt)
pivot_idx = self.rearrange(nums, lt, rt)
... | [
"zdadadaz5566@gmail.com"
] | zdadadaz5566@gmail.com |
546cff4245f30a5bdadaf200e49c03d69a2e3cb3 | c1b022d59194e4df71a70fb18af4eaa30c364f1b | /checkout/migrations/0006_auto_20210331_1554.py | ffe0f3c12d354a4b6523a0c0ab186c82811bdbc9 | [] | no_license | Code-Institute-Submissions/MS4-prints | 908d172e73781244a9c88d6b5d143e69c4a9c53f | 738280007edad88acb614a975516827dda7a870c | refs/heads/master | 2023-03-26T02:07:25.287739 | 2021-03-31T18:29:50 | 2021-03-31T18:29:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | # Generated by Django 3.1.7 on 2021-03-31 15:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('checkout', '0005_auto_20210331_1550'),
]
operations = [
migrations.AlterField(
model_name='order',
name='phone_numbe... | [
"juan.stelling@gmail.com"
] | juan.stelling@gmail.com |
07df6b2982be77eea822df225056301070a7f53b | 32342b610202ab737db87c8bf4079976b04818dd | /python/pairwise/bqpairwise.py | eea6e90b2c1f46d239c61acf13d2f1d64b8cdda0 | [
"Apache-2.0"
] | permissive | rezacsedu/examples-Python | 7abd094c6c032f13b849cb68e037cafbc9e75659 | 08d622926c7cf3472466a27da02c6fe50141eae1 | refs/heads/master | 2020-06-04T15:43:58.736797 | 2019-03-28T18:54:37 | 2019-03-28T18:54:37 | 192,087,899 | 1 | 0 | null | 2019-06-15T14:27:20 | 2019-06-15T14:27:20 | null | UTF-8 | Python | false | false | 3,278 | py | '''
Copyright 2015, Institute for Systems Biology
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | [
"gibbsdavidl@gmail.com"
] | gibbsdavidl@gmail.com |
5a6efa707d7b4b8cc5d41a64863697832ff5e44d | 6d1af8597c5aa86400f93e65911a68d4cbd42cd2 | /customer/migrations/0013_auto_20200522_1816.py | 144e2fc3725bba727f0f70ac328781ad157ed743 | [] | no_license | shamimsust/BusinessAccount | 0ef8ef587e93dfe5f78d246d9cba50ec752c71e0 | 93da08b4252ce0d7042f953ec6ce2d5a191e1cb2 | refs/heads/master | 2022-08-24T10:32:45.610831 | 2020-05-23T05:47:51 | 2020-05-23T05:47:51 | 265,853,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # Generated by Django 3.0.5 on 2020-05-22 18:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('customer', '0012_auto_20200522_1813'),
]
operations = [
migrations.AlterField(
model_name='yardproduct',
name='total... | [
"rjshamim1@gmail.com"
] | rjshamim1@gmail.com |
c9f4124207254efef396011f078633f4edf00400 | 8e39f7ab3d728aaa593a0c0ddd113ea8e6f287c6 | /14_ulter)table.py | b0ca45650e4fa1679ae40301ec502f9c1fd74489 | [] | no_license | tamercs2005/Python-MySQL-Guide | 423ffd502cd08de2850f25f3cfad47983e0949eb | 01917a31038517dfcabe7f5400262792d5b86ef7 | refs/heads/master | 2021-05-22T01:01:21.988815 | 2020-04-02T08:41:40 | 2020-04-02T08:41:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | import mysql.connector
myconn = mysql.connector.connect(
host="localhost" ,
user = "root" ,
passwd = "toor" ,
database='mydatabase'
)
mycursor = myconn.cursor()
# mycursor.execute(" ALTER TABLE movies ADD COLUMN language VARCHAR(30)")
mycursor.execute(" ALTER TABLE movies CHANGE language language... | [
"pythondeveloper6@gmail.com"
] | pythondeveloper6@gmail.com |
728b4c981fe26c0aa2023e898c97a658c15d0507 | 65238cff24c1fb04b0d7993d84ea04933ccd76d1 | /assignment2/q1_classifier.py | 79604c62ce2cd7d3922fe333fb3bbb8b4a9a1876 | [] | no_license | o20021106/cs224n | de793492faf79a5854342714dc2c1362ada7bfd9 | 557c46ee109472536e58258669f7a42bdeeb17ac | refs/heads/master | 2021-01-23T22:19:03.954821 | 2017-09-12T15:51:29 | 2017-09-12T15:51:29 | 102,925,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,114 | py | import time
import numpy as np
import tensorflow as tf
from q1_softmax import softmax
from q1_softmax import cross_entropy_loss
from model import Model
from utils.general_utils import get_minibatches
class Config(object):
"""Holds model hyperparams and data information.
The config class is used to store va... | [
"o20021106@gmail.com"
] | o20021106@gmail.com |
48fb776ca90d491d669e40b6936c0eb91a3c40e9 | d8a17e36666eace960c8003749924950dc8f63e1 | /stock_name/life_insurance.py | 157cdd9cff4c320b1d646915ff39d27e0719d2e0 | [] | no_license | bhupinbaral25/stock_market_nepal | 527f19bba6df1b1ff8f6f7660453f4dc84eaeaa1 | e62621c09755388dc0ad9b75a72febd51781207d | refs/heads/main | 2023-06-19T06:31:11.649599 | 2021-07-20T11:58:15 | 2021-07-20T11:58:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | LIFE_INSURANCE = [
'ALICL',
'GLICL',
'JLI',
'LICN',
'NLIC',
'NLICL',
'PLI',
'PLIC',
'RLI',
'SLICL',
] | [
"ujjwal@bottle.com.np"
] | ujjwal@bottle.com.np |
e40ecc2a0a115786a5e49e3e6c1011a4e740f37e | 0a824da3d98ffc7d981b4ab4af26b39bbba5c612 | /sany.py | 67edf7dac935e6a88b702284242bf8d225853cf5 | [] | no_license | Sany22222/sany- | 866c6ec82153f9efff2a318d24b3c05451563a4d | d16a36e6d034ef96e2e2fddd5ebf56fd278a7340 | refs/heads/main | 2023-05-08T11:24:37.438109 | 2021-05-30T12:11:19 | 2021-05-30T12:11:19 | 372,201,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,679 | py | # HiddinWave Ver 1.0
# Powered by TechChip
# Hide your secret text in wave audio file.
import os
import wave
import argparse
print("\033[92m")
parser = argparse.ArgumentParser()
parser.add_argument('-f', help='Select Audio File', dest='audiofile')
parser.add_argument('-m', help='Enter your Secret Message', dest='secret... | [
"noreply@github.com"
] | noreply@github.com |
93eb203c2dccf4d8b59eb7c681528a94202e6aa4 | 186e21b9bb17bb1978c0c2a67ee00c85f4490148 | /020 Word Search/main.py | a9f03c397df483cb723f10e8c277ce2d7970ca9d | [] | no_license | leon-sleepinglion/daily-interview-pro | 525d3c2ab252447382bbcb9efa52448be8de879c | 8ddc88730de6acd86359ed08a375959eb6e5d4e7 | refs/heads/master | 2020-08-07T02:43:29.593411 | 2019-10-24T03:29:59 | 2019-10-24T03:29:59 | 213,265,385 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | def word_search(matrix, word):
i = len(matrix)
j = len(matrix[0])
# left to right
for x in range(i):
if word in ''.join(matrix[x]):
return True
# up to down
for x in range(j):
vector = [matrix[y][x] for y in range(i)]
if word in ''.join(vector):
return True
return False
m... | [
"leonweecs@gmail.com"
] | leonweecs@gmail.com |
43ee7b19e3d8e614be431082c3a770802db7d6ee | 47a5a4642fd15b8c16e7b295807b4aac6c830d20 | /_python/_python_class/class2/10/telnet_connection.py | bd25e3ce6c73696de84715342db5de89306bb402 | [] | no_license | hakalar/network_automation | 6ed03b1c5d7aad53157cbf241f003c2c5225d8cf | 831a3e5cfe467aeafabe64df9cfb504a87254e3f | refs/heads/master | 2021-07-07T07:17:06.756647 | 2021-05-03T11:15:40 | 2021-05-03T11:15:40 | 239,247,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,199 | py | import telnetlib
import time
TELNET_PORT = 23
TELNET_TIMEOUT = 6
READ_TIMEOUT = 6
def disable_paging(remote_conn, command="terminal length 0\n", delay=1):
'''
Disable router paging i.e. --More--
Returns the output buffer
'''
remote_conn.write(command)
time.sleep(delay)
return remote_conn.... | [
"rhakala@gmail.com"
] | rhakala@gmail.com |
37280249398d83577effdeed8e50696c042ab317 | 104c4bc0e4e37f00f59dea08999e75229eadf813 | /src/seekerandHider.py | 1becbf362ca853233860e5f44c4ae5db50ae0b5f | [] | no_license | taoqsun/pythonLearn | 7a396547f283179626a5194abd7694848936c530 | dbe57a42f05b5ecd0a054eef7087eabfe4feb2dc | refs/heads/master | 2020-05-21T19:40:15.519217 | 2017-12-27T09:06:22 | 2017-12-27T09:06:22 | 41,407,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,239 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
'''
Created on Aug 21, 2015
@author: sky
'''
#---- Event
import threading, time
class Hider(threading.Thread):
def __init__(self, cond, name):
super(Hider, self).__init__()
self.cond = cond
self.name = name
def run(self):
time.sleep... | [
"taoqsun@cisco.com"
] | taoqsun@cisco.com |
7d89c1668534cabb0567bb0c2e6d689897470908 | 7f15d1482a7c9a10c278114fd5c27dacf6ff7c44 | /lib/python2.7/sre_compile.py | f0c0b69227ef24a41ddb9806e100c9b379371a4f | [] | no_license | motdotla/moviegrid | 568f6707b20faed887c4f2a33f6b7e686cb385ce | 851a2577e2c12506002b7301b9650b57c09df1cd | refs/heads/master | 2023-06-09T07:57:50.389851 | 2013-07-15T22:55:51 | 2013-07-15T22:55:51 | 11,394,832 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | /usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sre_compile.py | [
"scott@scottmotte.com"
] | scott@scottmotte.com |
9baad2e9103c993b82961ba5202535c6d48c24be | 4638b442fd87ab14795407dfca61fef4fc77dfbe | /milo_imperative/product_matcher.py | 3cd4a593f3b3890f11bfbad8aaf9494ff76c1efa | [] | no_license | metcalf/milo-interview | 25817d0cc59c66c89716b356a4b1bc6aa59250a1 | fa238ffc329483abfc072efd6a23446133bd8274 | refs/heads/master | 2021-01-19T13:32:04.959873 | 2011-09-29T05:39:48 | 2011-09-29T05:39:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,391 | py | #!/usr/bin/env python2.6
'''Implements product-customer matching
For a list of customer names and product names, ProductMatcher
computes the maximum suitability assignment of customers to products
based on the suitabilty algorithm defined by the Customer object.
It uses the Hungarian/Munkres algorithm to solv... | [
"ametcalf@c9w.net"
] | ametcalf@c9w.net |
76ed86c43e704e60ba5bf3fc83bf7c9eebf3afae | cd70eaa0e61c249882f1ab20b6de36f2292abb36 | /automobile_django/cars/migrations/0006_auto_20170617_1755.py | 5ee96e5cf77a4cda6b1220f29abd97160601e408 | [] | no_license | georgesitoniv/automobile_unique_slot | 733351c3e30ce9e46b1728cf05b95f9a5e5aa5ec | abf6f7d7251ddea74cb1002c6edb0001b5955d15 | refs/heads/master | 2021-01-13T16:51:45.556569 | 2017-06-23T17:26:35 | 2017-06-23T17:26:35 | 95,111,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-06-17 17:55
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cars', '0005_auto_20170617_1750'),
]
operations = [
migrations.AlterField(
... | [
"georgesitoniv@gmail.com"
] | georgesitoniv@gmail.com |
d02aa2b17cff92893dbbc39c51ae250ff988bac9 | 472578974401c83509d81ea4d832fc3fd821f295 | /python资料/day8.1/day02/exercise06.py | 55b143dd621190359b3f5a9fd71213fb7e669ccc | [
"MIT"
] | permissive | why1679158278/python-stu | f038ec89e9c3c7cc80dc0ff83b76e7c3078e279e | 0d95451f17e1d583d460b3698047dbe1a6910703 | refs/heads/master | 2023-01-05T04:34:56.128363 | 2020-11-06T09:05:16 | 2020-11-06T09:05:16 | 298,263,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | """
古代的秤,一斤十六两。
在终端中获取两,计算几斤零几两。
"""
total_liang = int(input("请输入两:"))
jin = total_liang // 16
liang = total_liang % 16
print(str(jin) + "斤零" + str(liang) + "两")
| [
"1679158278@qq.com"
] | 1679158278@qq.com |
30533604ff0973a4e534c5eaa23fbce68fe16071 | ffac7f80e02a0a6ddb125b30086f022d4114a4c2 | /Scan-Small-ROI/run_scripts/do_Tully_injsig50.py | e02ad290b00d679b1156676f5f46732e15b57ce9 | [] | no_license | jeansom/DM-Catalog-Scan | ca20400f1a4133ca0aa49a23932e6d6bbe2a871a | 6c22043fdc837de606733a4ef2e7c30462bdaab8 | refs/heads/master | 2021-04-25T06:46:43.883494 | 2017-10-11T13:58:59 | 2017-10-11T13:58:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,116 | py | import os, sys
import numpy as np
mcstart = 0
nmc = 1
halo_step=50
i_start=0
n_steps=10
for mci in range(mcstart,mcstart+nmc):
for imc_dm in [5,7,9,11,13]:
halo_start=i_start*halo_step
for it in range(i_start,i_start+n_steps):
batch1='''#!/bin/bash
#SBATCH -n 50 # node count
#SBA... | [
"smsharma@princeton.edu"
] | smsharma@princeton.edu |
33b3378b65275fd2eab53bd9d66c2e4955583dca | 41dfb26071bcabf38d52b436f519589f6e8b623e | /utilities/database_utilities.py | 99d4c4ff6df3bf8c8896b1b484f26878b51c663d | [] | no_license | RafalJakobsen/PageSpider | 02f10d89ff02e1472e5c2707da16f98b167a6fe5 | 0719fd62fdd0de14fe0e1fdef9a08b667b27142a | refs/heads/master | 2020-03-27T22:40:24.897924 | 2018-11-02T06:21:54 | 2018-11-02T06:21:54 | 147,250,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | py | import sqlite3 as lite
def create_database(database_path: str):
conn = lite.connect(database_path)
with conn:
cur = conn.cursor()
cur.execute("drop table if exists words")
ddl = "create table words (word text not null primary key, usage_count int default 1 not null);"
cur.execu... | [
"rafal.jakobsen@protonmail.com"
] | rafal.jakobsen@protonmail.com |
d7d8e8c5e21f43299f74516f10cb59ddbb9faaba | 9680ba23fd13b4bc0fc3ce0c9f02bb88c6da73e4 | /Bernd Klein (520) ile Python/p_20702.py | fdd42efc88e98cd52221dee5ff8c40475d982f06 | [] | no_license | mnihatyavas/Python-uygulamalar | 694091545a24f50a40a2ef63a3d96354a57c8859 | 688e0dbde24b5605e045c8ec2a9c772ab5f0f244 | refs/heads/master | 2020-08-23T19:12:42.897039 | 2020-04-24T22:45:22 | 2020-04-24T22:45:22 | 216,670,169 | 0 | 0 | null | null | null | null | ISO-8859-9 | Python | false | false | 7,337 | py | # coding:iso-8859-9 Türkçe
# p_20702.py: Grafik sınıfıyla, yumru, bağlantı, izole, yeni yumru ve bağlantı ekleme örneği.
class Grafik (object):
def __init__ (self, grafikSözlüğü=None):
if grafikSözlüğü == None: grafikSözlüğü = {}
self.__grafikSözlüğü = grafikSözlüğü
def yumrular (self)... | [
"noreply@github.com"
] | noreply@github.com |
4c428bc89f8805b8ef2093c63845593d05c4ce62 | 39cd9aa81927c20d85d1b65e55523455626ee902 | /python_work/chapter_9/exercises/9_7_admin.py | bfa5186b5cf37e58e1617c832d9bc40acb9e8e8f | [] | no_license | SMS-NED16/crash-course-python | acf363562a813f7deb36614dc935be4ed2d07fee | e6e6cb787d208f51f114f71331c43af1ddc1e4c2 | refs/heads/master | 2020-03-09T02:29:35.241621 | 2018-04-21T16:09:16 | 2018-04-21T16:09:16 | 128,541,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,544 | py | class User():
"""A class that models a user for an online forum"""
def __init__(self, f_name, l_name,
age, city, hometown, *languages):
"""Constructor - creates attributes, initialises them"""
self.first_name = f_name;
self.last_name = l_name;
self.age = age
self.city = city
self.hometown = hometown
... | [
"saadmsiddiqui96@gmail.com"
] | saadmsiddiqui96@gmail.com |
218fd5729109b6da3a295bb690a9d9c9fd024612 | 3fdbf4768febca54e44f00e08a1db48134181194 | /core/energy/migrations/0009_client_pricerange.py | f500e2e650b39704f0370fccca39b9b706f6b4d0 | [] | no_license | WinterOdin/wwenergy | 3b159652f97ec2eb50f0381639ff02627b3ab9e3 | 1b0e204da6c44c50c2771eef7799a28b63897b48 | refs/heads/master | 2023-01-18T18:42:34.051051 | 2020-11-26T16:42:36 | 2020-11-26T16:42:36 | 297,689,402 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | # Generated by Django 3.1.2 on 2020-10-26 15:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('energy', '0008_auto_20201026_1539'),
]
operations = [
migrations.AddField(
model_name='client',
name='priceRange',
... | [
"cczuryszkiewicz@gmail.com"
] | cczuryszkiewicz@gmail.com |
db6c14dbf11a0d784293b6bf4b2a198ea9bf2dd4 | 313b30ccda40bd79485b673932e51e0ef2fa5ad0 | /day05/alchemical-reduction.py | 47db360ce44f7c33768c6899dd3d272ca0c89fd4 | [] | no_license | Creohex/advent-of-code-2018 | 34cdd13e2ee62b3a6991b83107eb04fc1ad63ef7 | 1638b83b3be97ff81f8a8d8cbd67fe4cec5bb43c | refs/heads/master | 2020-04-12T03:22:58.370272 | 2019-03-12T13:37:07 | 2019-03-12T13:37:07 | 162,265,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | import re
polymer = open('input.txt').readlines()[0].strip()
#polymer = "dabAcCaCBAcCcaDA"
def part_one(input):
while True:
was_reduced = False
for i in range(len(input) - 1):
if abs(ord(input[i]) - ord(input[i + 1])) == 32:
input = input[:i] + input[i + 2:]
... | [
"kexamazal@gmail.com"
] | kexamazal@gmail.com |
67048f55cb3fb75a8cae9b2b21d1dfcb147d6a37 | 70b339d0b2638a7914d0d56c5edf8a2637c9f4b0 | /sortedSquares.py | 2903b4c61f859f1b2a07c241e19027f5d65a4f57 | [] | no_license | pflun/advancedAlgorithms | 9991da7514024e18ba08de8688966b9220e12571 | 5520dbcd26999b98e1229bf03c2f62dd690a2ddc | refs/heads/master | 2023-02-19T12:05:26.902535 | 2023-02-14T06:08:54 | 2023-02-14T06:08:54 | 189,055,701 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | class Solution(object):
# brutal force
def sortedSquares(self, A):
res = []
for a in A:
a *= a
res.append(a)
return sorted(res)
def sortedSquares2(self, A):
l = 0
r = len(A) - 1
res = []
while l <= r:
if A[l] * A[l]... | [
"zgao@gwu.edu"
] | zgao@gwu.edu |
0997066ba1f638a19c7ff603ba970be0bd09edcb | b925e9b9e0228951674a9886642259192339945a | /core/migrations/0001_initial.py | 66ab7608e7ec676657943d03b429d15d78e27e10 | [] | no_license | habib-cse/Django-Ecommerce-Full-System | da19513968e5b46044f38c99c8df110b5e7a8df5 | 0bb57b7b0ff470442dd9c216d78b091d9424c6ac | refs/heads/master | 2023-08-14T06:23:14.983883 | 2020-04-14T11:56:04 | 2020-04-14T11:56:04 | 255,595,664 | 0 | 0 | null | 2021-09-22T18:53:08 | 2020-04-14T11:53:39 | HTML | UTF-8 | Python | false | false | 7,070 | py | # Generated by Django 3.0.5 on 2020-04-10 03:31
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
... | [
"habib41juwel@gmail.com"
] | habib41juwel@gmail.com |
9c11d55d39eb7a6d599cac492568660ecad77710 | 5162bfdff4e1b2fcbf8597ae2c29c62d53ddd369 | /openhtf/plugs/usb/usb_handle_stub.py | dca50ad3b21fcb47d153adef59e0bb3c9f5f4992 | [
"Apache-2.0"
] | permissive | googlerhuili/openhtf | 612d43a1249d89ec951da7fc4d28c5f666bafdd5 | bc41fcf0b804530c36cbeccacba5d5b98c5df243 | refs/heads/master | 2021-01-14T12:14:37.340018 | 2016-02-18T21:44:44 | 2016-02-18T21:44:44 | 46,517,630 | 1 | 0 | null | 2015-11-19T20:13:09 | 2015-11-19T20:13:09 | null | UTF-8 | Python | false | false | 2,448 | py | # Copyright 2014 Google Inc. All Rights Reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agre... | [
"jethier@google.com"
] | jethier@google.com |
553969e06d1e2998f34787c75ab8eb119983b340 | 16c4eb4a7e244fa5f902a7809ef69233ea0adb6f | /Population_Sampling/Simple_Random.py | 060d814109439da87d878040f4120c50d6f4ca2c | [] | no_license | hc388/calculator_Team | fcbb444375bd36c3fbb73cf8a979e68de2096a17 | 7fba190d0477d5409f226f145010b70a8444b271 | refs/heads/master | 2021-03-09T20:08:00.461000 | 2020-05-16T05:44:18 | 2020-05-16T05:44:18 | 246,375,688 | 0 | 0 | null | 2020-05-16T05:44:20 | 2020-03-10T18:18:29 | Python | UTF-8 | Python | false | false | 212 | py | from randoms import Randoms
class Simple_Random:
@staticmethod
def sampler(a, b, size, outputSize):
list = Randoms.rand_list(a, b, size)
return Randoms.rand_N_selector(list, outputSize)
| [
"hc388@njit.edu"
] | hc388@njit.edu |
affa813021fb253b56dceef1f271826d715e645c | 150d9e4cee92be00251625b7f9ff231cc8306e9f | /NumbersSmallerThanCurrent.py | 2bae72ae2f809266720b4eaf4ce851d1171905a7 | [] | no_license | JerinPaulS/Python-Programs | 0d3724ce277794be597104d9e8f8becb67282cb0 | d0778178d89d39a93ddb9b95ca18706554eb7655 | refs/heads/master | 2022-05-12T02:18:12.599648 | 2022-04-20T18:02:15 | 2022-04-20T18:02:15 | 216,547,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,377 | py | '''
1365. How Many Numbers Are Smaller Than the Current Number
Given the array nums, for each nums[i] find out how many numbers in the array are smaller than it. That is, for each nums[i] you have to count the number of valid j's such that j != i and nums[j] < nums[i].
Return the answer in an array.
Example 1:
In... | [
"jerinsprograms@gmail.com"
] | jerinsprograms@gmail.com |
9d6cd21b8de06da29438d17fdf38af7ea4b46288 | e85a9275151c4c936aa6eaeedd1619df2417cb5c | /Q8/venv/bin/easy_install-3.7 | 917522d0485faccda4b907c9bfef289d45eacb31 | [] | no_license | AHHHZ975/AP-HW4 | 8069c3d1b0da548a298f9843fcd38728a8b3240c | 498a74ae46e138d9cd38ae891744c00257eaa5d3 | refs/heads/master | 2020-05-17T18:41:05.263339 | 2019-05-08T16:16:00 | 2019-05-08T16:16:00 | 183,890,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | 7 | #!/home/ahz/PycharmProjects/PollWeb/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', ... | [
"ahz.975@yahoo.com"
] | ahz.975@yahoo.com |
af752d1d856669300eaf589f3acfba3ecdf467a5 | 89b72dc0cf8b48c4082b571cd0b1b77129881377 | /emailing team lineups1.py | d7a33577973a4e9a9e49e6c1500cd03a6db4238c | [] | no_license | jchadwick92/Skysports-lineup-scraper | f21c4b5cbece40bb2f4755ae6f8a23b8d5dedaa2 | 60fa4f5aa8bb16dc63a3124207eb3a6e65ce8e8e | refs/heads/master | 2021-05-09T19:48:50.178359 | 2018-01-24T19:04:56 | 2018-01-24T19:04:56 | 118,659,483 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,995 | py | import datetime
from bs4 import BeautifulSoup
from urllib.request import urlopen
import re
import time
import smtplib
import sqlite3
import xlrd
my_url = 'http://www.skysports.com/premier-league-fixtures'
def delete_update_salaries():
book = xlrd.open_workbook('Yahoo_DF_player_export.xls')
shee... | [
"jchadwick92@hotmail.co.uk"
] | jchadwick92@hotmail.co.uk |
cfc5b3b77b9bfd9fc9f1ce49faac81035e782741 | ecdbd1201b7d500660e8b7e750e7b9f8798c8d72 | /log/tests.py | 0e34427b4d14b0c1cd492706606151ca5e6412eb | [] | no_license | kevuno/HealthNet | 567d9be306b792362b1de8867eefc8acbd51d6ff | 75cddb44ee24e1ec9916379b80739525dcee721c | refs/heads/master | 2021-01-23T04:34:22.414385 | 2017-03-26T07:40:07 | 2017-03-26T07:40:07 | 86,212,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | from django.test import TestCase
from django.utils import timezone
from .models import Entry
class LogTest(TestCase):
def test_entry(self):
print("-------------Testing Logs----------------")
en = Entry(user="GOD", activity="Manually Executed Donald Trump", time=timezone.now(),
... | [
"kjb5642@rit.edu"
] | kjb5642@rit.edu |
100709026ce874d8571fb6b3b81692f04baff281 | 0046e32be68708ad9fb59d240077de7bc890d118 | /cart/models.py | f2d21f1932f9978223972685a1ad6ec0f1b70b77 | [] | no_license | ajitesh-30/Food-Service | bf6d07ae2020a88ed10690c3be54040b74d9f610 | f1b56b24331355666c92590a2df3ab944807545f | refs/heads/master | 2020-07-07T02:20:38.381964 | 2019-08-19T18:42:15 | 2019-08-19T18:42:15 | 203,214,942 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 891 | py | from django.db import models
from django.conf import settings
from food.models import Food
User = settings.AUTH_USER_MODEL
ORDER_STATUS_CHOICES = (
('pending', 'Pending'),
('shipped', 'Shipped'),
)
class Cart(models.Model):
user = models.ForeignKey(User, null=True, blank=True,on_delete=models.CASCADE)... | [
"ajiteshs10@gmail.com"
] | ajiteshs10@gmail.com |
ccd226e4c0b5577528ace820a0d866a1e55551aa | bdd184bd4e06129246f046fd608b81a50f7e3a4f | /tests/test_default_processor.py | eb2d6dc09278a8d75c224481a3409cb4da2f6cb1 | [
"MIT"
] | permissive | mdreem/elasticsearch_follow | 3ff8a8c0318ff7e017fa898e376d169ca6e965af | 2be83cc1b68616c039068c43aadbb0ec88beadde | refs/heads/master | 2020-07-29T22:24:38.057656 | 2020-06-01T15:42:12 | 2020-06-01T15:42:41 | 209,983,815 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | import unittest
from unittest.mock import Mock
import elasticsearch_follow
class TestDefaultProcessor(unittest.TestCase):
def test_default_processor(self):
processor = elasticsearch_follow.DefaultProcessor()
es_follow = Mock()
es_follow.get_new_lines.return_value = [
{"msg": "... | [
"mdreem@fastmail.fm"
] | mdreem@fastmail.fm |
0a1a555ce7b6a2c41d2e71e080459711b1e539e6 | efa867b5d011baf1621484b776265d7fa453fa79 | /Polynomial_Regression_Code1.py | 77645478a601ac004530d5d654759450d8bb9bd4 | [] | no_license | TanyaSinha550/Complete-ML | 6d1ff90f5016721d5cf28ee5f775e53cddff314d | f700d71f7dafe90863bf4abe435946984b1d54a5 | refs/heads/master | 2021-01-07T20:20:17.006970 | 2020-03-04T16:22:57 | 2020-03-04T16:22:57 | 241,810,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,887 | py | # Polynomial Regression
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('Position_Salaries.csv')
X = dataset.iloc[:, 1:2].values
y = dataset.iloc[:, 2].values
''' No need to split dataset into training and test... | [
"noreply@github.com"
] | noreply@github.com |
8f0df066964b1e9be5746d2af2975bece4df73dd | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/histogram/_textangle.py | 68378b446f6808b2e7ee34ebc5568780f31bdf59 | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 403 | py | import _plotly_utils.basevalidators
class TextangleValidator(_plotly_utils.basevalidators.AngleValidator):
def __init__(self, plotly_name="textangle", parent_name="histogram", **kwargs):
super(TextangleValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
... | [
"nicolas@plot.ly"
] | nicolas@plot.ly |
b8583d8e9f7866f782b43f9711befcd5252146ac | ea393959886a5cd13da4539d634f2ca0bbcd06a2 | /573.py | 42d030dc870c94f3d9e8565f14b11a340a9c8cdf | [] | no_license | zhangchizju2012/LeetCode | f605f35b82f16282559af71e4e61ec2629a90ebc | 0c4c38849309124121b03cc0b4bf39071b5d1c8c | refs/heads/master | 2020-04-05T12:12:14.810639 | 2018-08-09T10:24:52 | 2018-08-09T10:24:52 | 81,021,830 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Sun May 7 10:19:34 2017
@author: zhangchi
"""
class Solution(object):
def minDistance(self, height, width, tree, squirrel, nuts):
"""
:type height: int
:type width: int
:type tree: List[int]
:type squirrel: List... | [
"zhangchizju2012@zju.edu.cn"
] | zhangchizju2012@zju.edu.cn |
64fb7280e68ec5647db275e2630d86e34c3f4531 | 751d837b8a4445877bb2f0d1e97ce41cd39ce1bd | /codegolf/ryleys-theorem.py | d1cab6a350c802b71d7905109a1cbddc1681610b | [
"MIT"
] | permissive | qeedquan/challenges | d55146f784a3619caa4541ac6f2b670b0a3dd8ba | 56823e77cf502bdea68cce0e1221f5add3d64d6a | refs/heads/master | 2023-08-11T20:35:09.726571 | 2023-08-11T13:02:43 | 2023-08-11T13:02:43 | 115,886,967 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,365 | py | #!/usr/bin/env python
"""
S. Ryley proved following theorem in 1825:
Every rational number can be expressed as a sum of three rational cubes.
Challenge
Given some rational number r∈Q find three rational numbers a,b,c∈Q such that
r=a^3+b^3+c^3.
Details
Your submission should be able to compute a solution for every ... | [
"qeed.quan@gmail.com"
] | qeed.quan@gmail.com |
133d3dcc5edee3a0f972e08a9dea467f80dfbef4 | 54b4fdd26029e15f359bec550a6aa5d72fc2b29f | /150_Evaluate_Reverse_Polish_Notation/xsy/solution.py | d43302bde3598e450215614f62a42cdee6293b27 | [] | no_license | erds8088/leetcode | 512c8c8e81c1b82acb738184431519b1ec9df9b3 | d8b1a556894e05a25af91e8c2ede05bc7c59b620 | refs/heads/master | 2020-04-06T08:27:55.096187 | 2018-12-23T13:48:00 | 2018-12-23T13:48:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,010 | py | class Solution:
def evalRPN(self, tokens):
"""
:type tokens: List[str]
:rtype: int
"""
stack = []
operations = {
"+": "ADD",
"-": "SUB",
"*": "MUL",
"/": "DIV",
}
for token in tokens:
if token... | [
"xiongshengyao@hotmail.com"
] | xiongshengyao@hotmail.com |
878688ceabae34bb84974c280c8792d39d1d7638 | 1f70eb0a8c58673dd3d2f84285d92db3eaa87c1a | /volunteer/migrations/0008_auto_20190322_1920.py | fdba61fdaff973c923ee18641a08468770d401cd | [] | no_license | rishanexe/tfi | 6088958eaff6e6ed8f08713a4895cfe694b0a7a0 | b78ac945c20bce1ca3e00ee588b6becbeded2abd | refs/heads/master | 2020-05-01T00:49:06.367782 | 2019-03-23T08:21:53 | 2019-03-23T08:21:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | # Generated by Django 2.1.7 on 2019-03-22 13:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('volunteer', '0007_auto_20190322_1919'),
]
operations = [
migrations.AlterField(
model_name='application',
name='why_... | [
"ri5han@github.com"
] | ri5han@github.com |
35f1888cc5c9fc51aa085d4c3396ea1d040525b6 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /070_oop/008_metaprogramming/_exercises/templates/abc_Abstract Base Classes/a_002_abc_register.py | b8bfec0995c22298e2201c8eea4bad38aa21ba9e | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 1,704 | py | # # abc_register.py
#
# # Registering a Concrete Class
# # There are two ways to indicate that a concrete class implements an abstract API: either explicitly register the class
# # or create a new subclass directly from the abstract base. Use the register() class method as a decorator on a concrete
# # class to add it ... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
164656042d61a22d7f0783c5e494556dd884f346 | 6fdc9681ce76fc2cf8e5c8bd59a617a9abf0651f | /shopping.py | 99a1d7bff84d34c181eef5a44af01b3e98bd5401 | [] | no_license | DanisovszkyErik/ProgramFlow | 78ea3d147c0006517e5de8781156c9b2282afa20 | c1f8aface63693849d88dd9d6622bd05cb1bd551 | refs/heads/master | 2022-04-23T07:09:12.229835 | 2020-04-26T10:21:47 | 2020-04-26T10:21:47 | 258,462,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | shopping_list = ["milk","pasta","eggs","spam","bread","rice"]
#when we are reach spam in our list, we will skip that value with continue
for item in shopping_list:
if item == "spam":
continue
print("Buy "+ item) | [
"danisovszkyerik7@gmail.com"
] | danisovszkyerik7@gmail.com |
96c125429819904a1eb5077b8fd4fe823f2203e7 | 5242d14436e55d9be02c812b5f9832486609e162 | /tokens/Token.py | 9bdd3bb6dc989b9d970bc2158516216c110b6aca | [] | no_license | freejavaster/balance | 98dd210b3cd3708de27bf07021393446a7039b5d | 8349709c2d5dca93909cd7ba35f938ee9fcfb31a | refs/heads/master | 2023-03-07T13:35:14.510043 | 2021-02-12T14:16:44 | 2021-02-12T14:16:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45,014 | py | 04b933bbeba40552ec94504f2c24f49fa44e4d42ad9bcf6c45d896ffa0222ff0ad6e5af012a8fa639aa850ed2a4829f585856e669a75306b09510514bcca99379fd4252c8ef465a97c80cad1f8816efcda517370d52da1b593c21a9b4126f3b56db48edd486e9ea240bd110307f2c2e45fb6956906cb613b862285d41c110d281aec70846a13b9b7cf5fdcedb62a2458c05a88baf454ed3921eee537547bc9f7... | [
"suishanwen@icloud.com"
] | suishanwen@icloud.com |
a8ea3c42e9fe05cc2cd0bbee6cbe6eb4fd8fc7fa | cadfb414dcbbab182dc5439edb8fbdde60e54531 | /pyunsplash/src/__init__.py | 3911ded422b42e51829d10e8d728acc72ade64db | [
"MIT"
] | permissive | mmangione/pyunsplash | 595ac0682d66730f22ce0400f66a377c442c19b7 | c79aff3b0800c71b921b2090dac275247d0c88fc | refs/heads/master | 2020-07-31T09:06:01.917128 | 2020-02-29T02:25:02 | 2020-02-29T02:25:02 | 210,554,825 | 0 | 0 | MIT | 2020-02-29T02:25:04 | 2019-09-24T08:44:56 | null | UTF-8 | Python | false | false | 407 | py | ###############################################################################
# Copyright (c) 2017 Salvatore Ventura <salvoventura@gmail.com>
#
# File: __init__.py
#
# Author: Salvatore Ventura <salvoventura@gmail.com>
# Date: 07 Sep 2017
# Purpose:
#
# Revision: 1
# Comment: What's new in revisi... | [
"salvoventura@gmail.com"
] | salvoventura@gmail.com |
e40fe8b033fa07a804d696fe8487155d8fd65cb4 | 8194acea7502a1bce3d7e452e4318f7a87f7a906 | /authorization/migrations/0001_initial.py | 483d1b43be1d68c6512fcccdfd8afbb93a9a337f | [] | no_license | dmbaranov/DjangoBlog | 55f5a2934a41ef2c967049c28b597b6caf0bea82 | c46df892aaf28c00493ad47371d39f090cd02282 | refs/heads/master | 2021-06-05T11:07:56.747367 | 2016-10-14T14:55:58 | 2016-10-14T14:55:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,901 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-10-14 10:49
from __future__ import unicode_literals
import authorization.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depe... | [
"dimawarr94@yandex.ru"
] | dimawarr94@yandex.ru |
88f5a81ff0eb51216dd7de279feac1b2ec6d706d | 575aa175329e3c15a393ffffc359260bfbeeb1ef | /tools/noms/copy_test.py | 0bd8fce7698d540d4d48fd36dd5c8deeb44c2b5a | [] | no_license | arv/noms-old | 021bc970c80376847dfbf82ce5b7e59315221d71 | 15a0b82d751a9b0f3e729c54578323f7971b4fbd | refs/heads/master | 2023-07-09T07:48:00.091115 | 2016-04-12T23:32:45 | 2016-04-12T23:32:45 | 39,030,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,080 | py | #!/usr/bin/python
import os, os.path, shutil, tempfile, unittest
import copy
class TestCopy(unittest.TestCase):
def setUp(self):
self.tempdir = os.path.realpath(tempfile.mkdtemp())
def tearDown(self):
shutil.rmtree(self.tempdir, ignore_errors=True)
def test_CopyPeers(self):
nested = tempfile.mkdtemp(dir=... | [
"cmasone@atticlabs.io"
] | cmasone@atticlabs.io |
cfeb60f14d9f1e186676c152db7dd3af3517173d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02390/s045787689.py | a21b79fd1538b4ffbba1f951c4b89420ceafd49e | [] | 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 | 83 | py | sec=int(input())
print(":".join(map(str, [int(sec/3600), int(sec/60)%60, sec%60]))) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1a235efcf12f348c12c6248b9c660834c49825b7 | fdf1363e38d2d0c6cc5553fb4ee2ec257f40fd01 | /WN/Python/p212animations/standingBeats.py | 2fc6c9700b5fe7333cee72ead51cad5ee39a640e | [] | no_license | wjaneal/ICS3U | 1fcc4024c3ee3f35216d9c0782139e82c4774171 | d91f1b8181fa7b9f0560e83ea59f18244d2cc877 | refs/heads/master | 2021-08-31T14:44:21.718372 | 2017-12-21T18:54:59 | 2017-12-21T18:54:59 | 109,870,456 | 0 | 6 | null | 2017-12-21T18:55:00 | 2017-11-07T17:47:10 | Python | UTF-8 | Python | false | false | 1,000 | py | #!/usr/bin/python2.2
from visual import *
from planeWave import *
import math
H = 600 # Scene height [pixels]
W = 800 # Scene width [pixels]
scene.title = 'Standing Wave'
scene.height = H
scene.width = W
scene.autoscale = 0
scene.range = vector(45, 45, 45)
s = superposition()
w1 = planeWave(k=... | [
"william.j.a.neal@gmail.com"
] | william.j.a.neal@gmail.com |
4988a72fd7c95b049d038626272ef76d4245bdd4 | e4b69f794611bdd62d57d4a5bca05aad746599cd | /Control/finance/admin.py | 4a68fea24dbe128814558111fe2b3b1b507ed425 | [] | no_license | boxframetech/Control | 9712268fa96923794e011fe4ac802167ccb3253f | fdfc1199239dc334c22e20f2fb3409973875a15c | refs/heads/main | 2023-06-27T05:26:04.269044 | 2021-07-27T17:33:29 | 2021-07-27T17:33:29 | 385,230,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,152 | py | from django.contrib import admin
from .models import (
PettycashModel, PettyCashTransaction,
JournalModel,DebtorModel,CreditorModel,
WeeklyProjection
)
# Register your models here.
class JournalAdmin(admin.ModelAdmin):
search_fields = ['description','amount','is_payable','is_receivable']
list_di... | [
"boxframe@protonmail.com"
] | boxframe@protonmail.com |
a04c663162a6d5fdb9ce706c466d8220dc29d3fa | 7a9b0fba4d3e210154cdc8a9dcb58a82f8752313 | /sweethome/asgi.py | dca92ef0ad3eb20699511dc321427cd59bfb6814 | [] | no_license | JELLO-Kim/17-1st-SweetHome-backend | 30fc9a2495622b2b4882d378d38254980572360f | 1ef9a590d812204adb08b73dfae92bcf64f24994 | refs/heads/main | 2023-05-03T11:45:10.110908 | 2021-05-16T07:52:50 | 2021-05-16T07:52:50 | 343,436,670 | 0 | 0 | null | 2021-03-01T14:03:16 | 2021-03-01T14:03:15 | null | UTF-8 | Python | false | false | 395 | py | """
ASGI config for sweethome project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SET... | [
"ijunha@ijunhaui-MacBookPro.local"
] | ijunha@ijunhaui-MacBookPro.local |
8f272a6f1f30c2394a166190d3261a809d1a489d | 076180e2c30e1661ef93a640d478dd82eb9acd2c | /authentication/migrations/0002_auto_20190504_2011.py | 31fe779e074e100b9a5851575ccfcdbf255e8e7a | [] | no_license | purvi2808/auth-master | d879b8b1f9f496ff4d2b20c5de7618322a8b72ef | c5786494f7e2294591ccba5e0ff100e4ba4af9e9 | refs/heads/master | 2020-05-19T09:02:14.200877 | 2019-05-04T19:46:14 | 2019-05-04T19:46:14 | 184,936,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | # Generated by Django 2.1.3 on 2019-05-04 14:41
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('authentication', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='user',
old_name='password',
... | [
"purvigupta2808@gmail.com"
] | purvigupta2808@gmail.com |
06b79bf9bb7518232081fa76e58a698b817cf5c5 | 7a3391cc4d0bfc489ee0132de7cb0007094109f9 | /EthanCMS/EthanCMS/settings.py | 5d897b36bffe8f01bf71fd936215cbeb81955efc | [] | no_license | esoergel/EthanCMS | 17c2f3a4e4e75874834b9f51ac53a616573f2a72 | 0106ace99f27e1c9234b44653d20b07193a7cd63 | refs/heads/master | 2021-01-01T05:33:22.476035 | 2013-02-13T23:32:34 | 2013-02-13T23:32:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,991 | py | # Django settings for EthanCMS project.
import sys
try:
# this check is a bit hack-ish, but it seems to work
# IN_DEV = (sys.argv[1] == 'runserver')
IN_DEV = ('./manage.py' in sys.argv)
print "Running as dev server"
except:
print "Using production server settings"
IN_DEV = False
DEBUG = IN_DEV
... | [
"ethan@TheGibson.(none)"
] | ethan@TheGibson.(none) |
f9392f3fbf849819aa07674b5bfdde3c6b544c09 | c1a317ce3a2a54b363651f68d45655a625c54b2c | /variables.py | c3edc2711c7da7b33e5d59c1bbda1ce4a6f47440 | [] | no_license | moreen24/flask-tutorials-point | 8f9e83d4b1a1399538c303ca3b777bca31b8fe0b | 0e8693a3c92ffe3e354e1eeef5a68e57db49f2b9 | refs/heads/main | 2023-04-17T20:55:44.523576 | 2021-05-19T14:52:13 | 2021-05-19T14:52:13 | 361,261,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | from flask import Flask
app =Flask(__name__)
@app.route('/blog/<int:postID>')
def show_blog(postID):
return 'Blog number %d' %postID
@app.route('/rev/<float:revNO>')
def revision(revNo):
return 'Revision number %f' %revNo
if __name__ == '__main__':
app.run()
| [
"64901499+moreen24@users.noreply.github.com"
] | 64901499+moreen24@users.noreply.github.com |
d1bb358e7c99c274409e8232857fc4a45401e574 | 68ee3fc2fc1d560edbffb64e04aac8d5bf2d15d9 | /task2/task22.py | c7f4f7ab05a12f8c34c8533ff80932b4121a866e | [] | no_license | Akanksha1Raj/Applied-ML1 | accd1f8259ae25f0651ca2c8d92cff601462cbae | 60649cc0bc9f702c803d020d1761052e66033909 | refs/heads/master | 2020-04-21T06:01:21.837374 | 2019-02-06T10:06:20 | 2019-02-06T10:06:20 | 169,355,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,377 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Feb 6 03:09:13 2019
@author: akanksha_rajput
"""
import pandas as pd
from sklearn.datasets import load_iris
import matplotlib.pyplot as plt
dataset = load_iris()
fig, ax = plt.subplots(4, 5, figsize=(17,17))
for i in range(4):
ax[i,4].set_yticks(... | [
"akanksharajput60@gmail.com"
] | akanksharajput60@gmail.com |
9a218aed349a1c3d112d6b6f86445a0e10dbeb81 | 3beee6bc1df311f5ee28a59599acf04ebf71e10b | /SimplifiedLESK.py | 6c3790d850c69682b9c621f4e50f50c6848a7df3 | [] | no_license | KrishnaMohanReddyKatha/NaturalLanguageProcessing | 0376307bfdbb690e4be6698529f1916489ef6d07 | d8a6d2c556438922e0485816436bee68d5339b51 | refs/heads/master | 2021-08-31T17:04:10.187380 | 2017-12-22T05:19:47 | 2017-12-22T05:19:47 | 114,723,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,182 | py | """ Author: Krishna Mohan Reddy Katha
Net Id : KXK171830
Simplified LESK Algorithm """
from nltk.corpus import wordnet
from nltk.corpus.reader import NOUN
from nltk.corpus import stopwords
def LESK(word, sentence):
syns = wordnet.synsets(word, NOUN)
bestSense = syns[0]
maxOverlap = 0
result =... | [
"Kxk171830@utdallas.edu"
] | Kxk171830@utdallas.edu |
605d0a5c19fe6d10832e1ff0192f73534530e04a | 16749719df6fdfbaf3393917e7d07289b32a77e0 | /migrations/versions/91420943cd51_.py | 2a35d620cfb6b62109c083e5732d0357ce878e23 | [
"MIT"
] | permissive | dennismutia/TodoApp | 406f37070ca0158790233e068f3afbd2ba039702 | 9cc2db1cf9b1939291434f4540c6df2284fe0f66 | refs/heads/main | 2023-04-02T21:48:05.089661 | 2021-04-17T06:02:35 | 2021-04-17T06:02:35 | 353,092,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | """empty message
Revision ID: 91420943cd51
Revises: ad079e50d4fa
Create Date: 2021-04-15 07:31:17.535941
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '91420943cd51'
down_revision = 'ad079e50d4fa'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"dennis.mutia@gmail.com"
] | dennis.mutia@gmail.com |
b739a42e629be20bc0ee544b5715249983235229 | 37c4e31da2ccfd9a044a156f16b53d37bd346802 | /math/13_RomanToInteger/Solution.py | 307a3e376a25e02bf836b594baf974f54fe63899 | [] | no_license | Striker007/LeetCodeProblems | 437976ccf8a8b25b4395c7db2c487ca546efd69f | ead2eeb73360943d13ee0ce8e2a44046b770891c | refs/heads/master | 2020-03-12T06:32:25.546349 | 2019-01-29T20:20:24 | 2019-01-29T20:20:24 | 130,487,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | class Solution:
def romanToInt(self, s):
"""
:type s: str
:rtype: int
"""
roman = {"I": 1, "V": 5, "X": 10, "L": 50, "C": 100, "D": 500, "M": 1000}
num = 0
prev = ""
for l in s:
if (prev == "I" and l in ["V", "X"]) or \
(p... | [
"vet.it08@gmail.com"
] | vet.it08@gmail.com |
e176b52fbe200541514b959ad4f3b8ccb7f73804 | b687cad2e2a01ee2012624f0b972eda2a3ec38fc | /canons/canon_simulator.py | 01cb74fee87746c325e31dd99382f06bb502ec27 | [] | no_license | jimmychew8/simple_music_tools | cb5431c182208bd0cd8ee7eee49ded2c7a543e22 | 0e2f7eb5932eafcca4104a54954f9a34165bc0c2 | refs/heads/master | 2021-01-10T09:11:44.394029 | 2016-02-29T00:27:22 | 2016-02-29T00:27:22 | 48,929,923 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,414 | py | """Simple musical canon simulator. Without transpositions.
Takes in a following arguments in the order as follows:
1) string denoted a rhythmic scheme as argument and
2) number of counts in a bar.
The first argument is your canon. Here are examples of how you may represent
the canon from the command line: purely r... | [
"jameschu809@gmail.com"
] | jameschu809@gmail.com |
96eb608a4aec47b59d732212d9a262773a22af35 | a428f3465eb1f8b038acf96b4f6bdc1d4bb9786b | /src/developer/main/uvtools/widget/ui/moveuvUI.py | 0969c5d1fe159d8e423a4d8822bb25b97e948fdf | [] | no_license | code-google-com/mayatools | 1672137562beae17803cd0ea267e0247528ba1a1 | f2177440b9e5316fdc2fe4d41bf64b504cb8bab7 | refs/heads/master | 2020-12-24T14:57:25.711451 | 2014-11-06T11:46:52 | 2014-11-06T11:46:52 | 32,266,328 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,095 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'D:\maya_Tools\src\developer\main\uvtools\widget\ui\moveuvUI.ui'
#
# Created: Thu Oct 23 16:43:13 2014
# by: PyQt4 UI code generator 4.11.2
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGu... | [
"trungswat@8bed79ed-7f0b-6351-1bc4-4d70257ffec2"
] | trungswat@8bed79ed-7f0b-6351-1bc4-4d70257ffec2 |
0c1c44d6c6dc562cac39fe773dcedba76069d0c4 | c33ff7f0db4903f1adc7e52b57a8de5639a0edf2 | /kreveik/family/killer.py | de1d3c8d0dc533f18d40580be83e685b4fbe9be5 | [
"Apache-2.0"
] | permissive | ghostintheshellarise/Kreveik | 1c6731b8c1559e55b880ae83b2cbf7c3b9acb968 | 5144c555c526f68560d891e39c401053c5286359 | refs/heads/master | 2020-12-15T21:49:13.542825 | 2013-02-17T06:23:09 | 2013-02-17T06:23:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,781 | py |
# Copyright 2012 Mehmet Ali ANIL
#
# 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 applicabl... | [
"mehmet.ali.anil@gmail.com"
] | mehmet.ali.anil@gmail.com |
1b5b98a0ebbbde2b3c9439d1ebe83df300ce4cec | e5eec1428da1d24d3e9b86f5723c51cd2ca636cd | /graph/크루스칼 알고리즘.py | ae3bd36d2be0371b0a25c5e8ea7b41ba0d1f97a7 | [] | no_license | jamwomsoo/Algorithm_prac | 3c36c381f59277721517d331a8f1640399d80c1d | 8393f3cc2f950214c47f3cf0b2c1271791f115d0 | refs/heads/master | 2023-06-09T06:49:14.739255 | 2021-06-18T06:41:01 | 2021-06-18T06:41:01 | 325,227,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,385 | py | # 특정 원소가 속한 집합을 찾기
def find_parent(parent, x):
# 루트 노드가 아니라면, 루트 노드를 찾을 때까지 재귀적으로 호출
if parent[x] != x:
parent[x] = find_parent(parent, parent[x])
return parent[x]
# 두 원소가 속한 집합을 합치기
def union_parent(parent, a, b):
a = find_parent(parent, a)
b = find_parent(parent, b)
if a < b:
... | [
"41579282+jamwomsoo@users.noreply.github.com"
] | 41579282+jamwomsoo@users.noreply.github.com |
65127bce9b3bb9ac047e357e411a48f17bcf5213 | d8a3d59214cca42046a6e2854f79542f7a7e9dbd | /setup.py | 5b42b8a4938ebd5b3e1a81b9354be6e11298f3c8 | [
"MIT"
] | permissive | EduCodeBe/lektor-make | 095aacc4c7602999d263519697a08658b1d3163b | 6f15c1e4f07c84e89a06f8df75d2b50eb25e1c5d | refs/heads/master | 2020-03-17T01:33:07.211860 | 2017-11-06T15:31:56 | 2017-11-06T15:31:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | """Setup file"""
from setuptools import setup
setup(
name='lektor-make',
version='0.1',
author='Barnaby Shearer',
author_email='b@zi.is',
url='http://github.com/BarnabyShearer/lektor-make',
license='MIT',
py_modules=['lektor_make'],
description='Run `make lektor` for custom build system... | [
"b@zi.is"
] | b@zi.is |
2bea1ae3617b943a23524ad0d2ec64b1e7edbabf | 38422c3edeb269926502fed31a0761aff8dd3d3b | /Swanepoel_analysis/Swanepoel_Python3_PyQt5_v180101/Swanepoel_GUI_v5.py | 1e6a933adde3406d72566e4c768e5fbd2247c0b9 | [] | no_license | vfurtula/Alle-projekter | 2dab3ccbf7ddb6be3ee09f9f5e87085f354dd84a | da3d7c9611088043e2aea5d844f1ae6056215e04 | refs/heads/master | 2022-06-07T05:17:35.327228 | 2020-04-30T10:28:48 | 2020-04-30T10:28:48 | 260,180,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,164 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
Created on Fri Jan 12 09:06:01 2018
@author: Vedran Furtula
"""
import matplotlib.pyplot as plt
import os, sys, re, time, numpy, yagmail, configparser, pathlib
from PyQt5.QtCore import QObject, QThreadPool, QTimer, QRunnable, pyqtSignal, pyqtSlot, Qt
from PyQt5.QtGui i... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.