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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dff6748c957326b04071206d857e1c5698d7fa37 | ff83ed916ca0963fd8b46cf88467b9ee6bc3eabb | /Home Automation/rpiserv.py | 0a8d2073987a4bc4d36916cff7befcb1935c535f | [] | no_license | ChetanMadan/ISTY-Automation | 3f8196ac030ff07bd80df4870dc301fdfd14c9d5 | 727ecf2da8914e91ad8c5401d158e4b11053f2b6 | refs/heads/master | 2020-03-23T14:46:39.552764 | 2018-07-19T18:42:18 | 2018-07-19T18:42:18 | 141,612,098 | 0 | 0 | null | 2018-07-19T17:38:08 | 2018-07-19T17:38:07 | null | UTF-8 | Python | false | false | 1,233 | py | from firebase import firebase
import sys
import time, datetime
import threading
from sys import argv
time_delay=int(argv[1])
url="https://istyyyyy-76788.firebaseio.com/"
firebase=firebase.FirebaseApplication(url)
url_user_id='/jZkCwRgRCqcO2Zcu4s94Gtl4Uv82'
#jZkCwRgRCqcO2Zcu4s94Gtl4Uv82
#url="https://istyyyyy-76788... | [
"noreply@github.com"
] | noreply@github.com |
206d8ee0691f3937b5ebdd5b3e3c9f6b3475bf85 | ec1e7dc2268c08425f60d35b018442e42b063655 | /dream-blog/posts/models.py | aa30dbe2ea220d3146ca5a6af70d5bc926d30e34 | [] | no_license | thinh9e/learn-django | a7cc4b8cd45cf76affff12aec02a64aa31922142 | f2fc8480789a04afbc6c9277be5f5f1ae5575f02 | refs/heads/master | 2023-02-15T15:44:08.124749 | 2019-10-23T15:12:08 | 2019-10-23T15:12:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,439 | py | from tinymce import HTMLField
from django.db import models
from django.urls import reverse
from django.contrib.auth.models import User
class Author(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
profile_picture = models.ImageField()
def __str__(self):
return self.user.... | [
"npthinh1996@gmail.com"
] | npthinh1996@gmail.com |
f7f35cb90a8d1f13aa34e56ed232499af60591f8 | de97899cfe3a78a2d6fa45f394ae932dae51d01f | /software/Firmware/SConscript | d88ee08b7f3b64240f3493b90c168a91dd804d47 | [] | no_license | nongxiaoming/Hexacopter_LPC1549 | f1a66ddba78acd95e3641dbc734bf4cf6b8791d3 | 1fd2434b39fd2cf7b54eea89b012056d1d62c176 | refs/heads/master | 2020-06-04T05:48:34.529703 | 2015-06-03T13:41:36 | 2015-06-03T13:41:36 | 31,605,217 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 527 | # for module compiling
import os
Import('RTT_ROOT')
cwd = str(Dir('#'))
objs = []
list = os.listdir(cwd)
# Add CMSIS and NXP chip level drivers
objs += SConscript(cwd + "/../libraries/SConscript")
# Add RT-Thread lowlevel drivers
objs += SConscript(cwd + "/../drivers/SConscript", variant_dir='drivers',
... | [
"nongxiaoming@gmail.com"
] | nongxiaoming@gmail.com | |
37c5255dd76c147e98a3665324f82292159ff00a | 53722ee98090fcab3985a6c98bb014c98f7cb5a8 | /Week_02/H_Index/H-Index.py | 48b663daa3d91b220cd4e9fea85b2886754ea09c | [] | no_license | HuynhThiMyDuyen/CS112.L21-Group5 | 60ccf64b2d97ffed59b80e69f7de3c113650d159 | b4e0d2a82f97bad207585dc7412f754b468bf065 | refs/heads/main | 2023-05-31T14:15:40.402889 | 2021-06-25T06:35:50 | 2021-06-25T06:35:50 | 344,738,165 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | n = int(input())
arr = list(map(int, input().split()))
arr.sort(reverse = True)
while n > 0:
if arr[n - 1] >= n:
print(n)
break
else:
n -= 1
if n == 0:
print(n) | [
"19521438@gm.uit.edu.vn"
] | 19521438@gm.uit.edu.vn |
26625342c7bc55ed33d97e7cf7e4d74e65f4c4e2 | 27b2a7b5ded42b59cdd88dd62669951e503c1c3f | /code/forecast/model_output.py | 8a04eb42d97651cdd5a1da4d4dff39a1bf798bb7 | [] | no_license | luis11181/Data-science-DS4AllARL | c0c812fbaf23adb64d3984befa48e75676c100fa | f92d2d233d52204421c62434999a8c351be37719 | refs/heads/master | 2023-07-19T05:40:50.670862 | 2021-09-20T22:21:32 | 2021-09-20T22:21:32 | 379,980,376 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,598 | py | import os
import pandas as pd
import dash
import dash_core_components as dcc
import dash_bootstrap_components as dbc
import dash_html_components as html
from dash.dependencies import Input, Output, State
from dash_table import DataTable, FormatTemplate
from app import app
from .model_eval import model_predic... | [
"noreply@github.com"
] | noreply@github.com |
c091aca2e5a347dc5c32c4b520aa5957114c8819 | 867c7420cffde425be6279df4ad6cdb03a68e363 | /List to Dictionary.py | 963a105f54a95dc1f9d9e1b209dc8c40790a0e4a | [] | no_license | vbhardwajfrecher/Python- | eab6e76e907a62a404200d9b115aa91030f7e77c | 684986ff918ecf313050146b90a78e15b873e3be | refs/heads/master | 2023-07-10T14:12:46.093764 | 2021-08-18T17:16:38 | 2021-08-18T17:16:38 | 278,041,513 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | # Converting List Name: Students and Age to Dictionary
Students = ["Amit", "Anand", "Ravi"]
Age = [19, 21, 24]
dictionary = dict(zip(Students, Age))
print(dictionary)
| [
"noreply@github.com"
] | noreply@github.com |
e1d80cefe294636f2ba8f81a453c5cfbfd21dc36 | a62b5a693212983bcdea56a6dcb674c79e75f841 | /takeSnapshot.py | da3670f379b69517ca094a34e828ed477ba7fa1e | [] | no_license | Yash27112006/C102 | 1b4c3838d97d07af1e8a3de81f8a14b3cd4025d9 | f11b9c524a9420d3a35ae0e9073758347a7dd98f | refs/heads/main | 2023-03-09T02:51:09.590309 | 2021-03-04T13:40:03 | 2021-03-04T13:40:03 | 344,463,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | import cv2
def take_snapshot():
videoCaptureObject = cv2.VideoCapture(0)
result = True
while(result):
imagePath = 'C:/yash WHJ Python/C102/picture1.jpg'
print(imagePath)
ret, frame = videoCaptureObject.read()
cv2.imwrite(imagePath, frame)
print(frame)
... | [
"noreply@github.com"
] | noreply@github.com |
d455e48af3e2720f5172453d0cea027becfe5ec0 | 73a38bf0822047d022de3cd4f495f3c7600ed667 | /apps/city/migrations/0001_initial.py | 9ba76b2271bd2edb4147642b4a5fcae38b3d9cff | [] | no_license | danielediazmx/Capturador---Python | 5624ad51ee857536a83497840898f090d1d62189 | 22a819cd647b7709636abd23610fd94b014ef459 | refs/heads/master | 2020-03-18T22:38:47.687859 | 2018-05-29T21:49:45 | 2018-05-29T21:49:45 | 135,356,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | # Generated by Django 2.0.5 on 2018-05-29 03:39
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('state', '0002_state_code'),
]
operations = [
migrations.CreateModel(
name='... | [
"danielediazmx@gmail.com"
] | danielediazmx@gmail.com |
832bc01e0092bf6e4ad41bf7281e3167c34e859e | 937f797ae6fb63efd20434c6cd00a6316f4a0595 | /Lesson2/bai5.py | dfc60046fc02fdd21b67a4cabd4b0d1b74b000b2 | [] | no_license | phongdz-cloud/Python | a65a8c178e6f719211a7ee17a1ea88c0ad5e2a32 | 4cedbce284ad262d84e716121eb025bec8ab715d | refs/heads/master | 2023-08-05T02:45:04.212215 | 2021-09-10T04:10:58 | 2021-09-10T04:10:58 | 404,952,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | # // Nhập 4 số thực a,b,c,d. Tìm số có giá trị lớn nhất
def solution(a, b, c, d):
max = a
if (max < b):
max = b
if (max < c):
max = c
if (max < d):
max = d
return max
a = int(input())
b = int(input())
c = int(input())
d = int(input())
print(solution(a,b,c,d))
| [
"74032468+phongdz-cloud@users.noreply.github.com"
] | 74032468+phongdz-cloud@users.noreply.github.com |
23378d76c291777e6da58e2b3bf10cbcef1cc476 | 9510a9f4bb4f8195f422d2d2cb26ef6055779553 | /scripts/python/tmr/average_tara_model_prediction.py | 6bd56e103496bf49145808d1fe703cd537ea7a56 | [] | no_license | diana-ramirez/sequence_cnn | 88fdebd68e3c7e38d90bd26abab89ea7036a497f | 33eb2e2b4d34df707ece94a8dd01f58352f63809 | refs/heads/master | 2022-12-22T00:36:23.656131 | 2020-09-30T17:53:12 | 2020-09-30T17:53:12 | 296,684,340 | 0 | 0 | null | 2020-09-18T17:13:05 | 2020-09-18T17:13:03 | null | UTF-8 | Python | false | false | 2,251 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Sep 24 11:18:22 2020
@author: drami
"""
import pandas as pd
from keras.models import load_model
import math
import sys
import warnings
warnings.filterwarnings("ignore")
sys.path.insert(1,'scripts/python/tmr/')
from cnn_functions import seq_one_hot
import numpy a... | [
"drami4@vols.utk.edu"
] | drami4@vols.utk.edu |
8f1854be055fb9f0e8da93ac23d9558513b20b0d | fb46c7eb0e8108e59afff177b2d2ce00eb9a78cf | /examples/doc/pyomobook/data-abstract-ch/param7a.py | 8e1f300a6dc4e228ba01ed7cb4cf7965f1bb1f1d | [
"BSD-3-Clause"
] | permissive | qtothec/pyomo | 823d6f683e29fc690564047ca5066daaf14d4f36 | ab4ada5a93aed570a6e6ca6161462e970cffe677 | refs/heads/new_dev | 2022-06-09T15:42:16.349250 | 2020-05-18T00:37:24 | 2020-05-18T00:37:24 | 61,325,214 | 3 | 5 | NOASSERTION | 2019-12-09T04:03:56 | 2016-06-16T20:54:10 | Python | UTF-8 | Python | false | false | 272 | py | from pyomo.environ import *
model = AbstractModel()
# @decl:
model.A = Set(dimen=2)
model.B = Param(model.A)
# @:decl
instance = model.create_instance('param7a.dat')
keys = instance.B.keys()
for key in sorted(keys):
print(str(key)+" "+str(value(instance.B[key])))
| [
"whart222@users.noreply.github.com"
] | whart222@users.noreply.github.com |
85b4d7feef7d559186154603b03972281c62d891 | d331c64b584c20c742e787eab0997aefe0bae4fd | /Week04/evens.py | 20050700f3ef1fa4afd3f7be31ce939934ff6b9d | [] | no_license | G00398258/myWork | b30353faf42092966d98c940dee920e5ebee7cb2 | b9c1e99b3a5431ac973bd2efc68799325b2ee889 | refs/heads/main | 2023-03-19T12:39:11.251437 | 2021-03-21T15:24:26 | 2021-03-21T15:24:26 | 332,055,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | # program that uses a while loop to print all the even numbers from 2 to 100
# Author: Gillian Kane-McLoughlin
firstnum = 2
lastnum = 100
while (firstnum <= lastnum):
print (firstnum)
firstnum += 2
| [
"G00398258@gmit.ie"
] | G00398258@gmit.ie |
b6f1dcac5996cf02b52959ff0f53255ec9525df5 | 9cf4fa3267d07fe15dd3839e6a32e330314bfffc | /Zato/Mapa/map_box_Prueba.py | 4eb0f24f6f30f0ca94fedebf70f8affc750e0f23 | [] | no_license | SergioBarroso/SmartPoliTech | 9a3ca732a2b7917289487443622cb4fec0ae1c97 | 2c42adaa72448d44e9ddbea5e021a8be90ce7c23 | refs/heads/master | 2021-01-05T05:19:31.749403 | 2020-02-17T08:28:17 | 2020-02-17T08:28:17 | 240,894,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,864 | py | # -*- coding: utf-8 -*-
from zato.server.service import Service
class MapBox(Service):
def handle(self):
self.response.payload = """
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"... | [
"vzccristian@gmail.com"
] | vzccristian@gmail.com |
3dc19e6cddff197d3506473e2904bc42a41f3005 | a4b3459974f394098ed8cf974067ec67d9f66760 | /familyenv/bin/django-admin.py | 871aa3fd372a7f2c169213a90125c031c97ae0ea | [] | no_license | devsync21/familysample | 9743dfec5d59eae8389711dae99422e96358fb19 | e45aa3b05646edcd08b676922773aaa3fc563e13 | refs/heads/master | 2022-04-18T21:20:17.458454 | 2020-04-19T02:28:21 | 2020-04-19T02:28:21 | 256,861,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | #!/Users/synchros/dev/family/familyenv/bin/python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"36905718+devsync21@users.noreply.github.com"
] | 36905718+devsync21@users.noreply.github.com |
b73d09e0201b12c272fb7b5e05ad37a198afa2cd | 45585a38c1e02357f00762f0140ae3f976408671 | /chapter-1/exercise-1-5/reverse_fahrenheit_test.py | 2a363440b4d306573003505f5a05444128d46342 | [] | no_license | kohanyirobert/the-c-programming-language-second-edition | 5f459c64da6954267eda46e4fba8ba531b70b6a3 | 9b99563e712dc1f7606639c0b125e83e282d3459 | refs/heads/master | 2020-03-27T17:51:11.026369 | 2018-11-02T19:02:09 | 2018-11-02T19:05:06 | 146,879,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | from sys import argv, exit, stderr
from subprocess import run, PIPE
EXPECTED = ''' F C
300 148.9
280 137.8
260 126.7
240 115.6
220 104.4
200 93.3
180 82.2
160 71.1
140 60.0
120 48.9
100 37.8
80 26.7
60 15.6
40 4.4
20 -6.7
0 -17.8
'''
executable_path = argv[1]
completed_process =... | [
"kohanyi.robert@gmail.com"
] | kohanyi.robert@gmail.com |
d80304426a9929287dc4cf67f41eea525ea8f414 | f84a67fd51c1679248a11979f27ab2cd241700e6 | /box.py | 6ef6b36cb1cf4a7fb66d25304d2eb296048f9d37 | [] | no_license | ronfletcher1/python-intro | 7749c6594ff1202235847d7946eebcd2fda99fcf | 46dd7aeb9366844565021f32dcf846d3a7bd2af3 | refs/heads/master | 2020-04-06T12:02:35.555964 | 2018-11-27T18:34:26 | 2018-11-27T18:34:26 | 157,441,390 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | # Print a Box
# Given a height and width, input by the user, print a box consisting of * characters as its border. Example session:
# $ python box.py
# Width? 6
# Height? 4
# ******
# * *
# * *
# ******
height = raw_input("what is the height of the box?")
width = raw_input("what is the width of the box?")
linet... | [
"ronfletcher1@Mighty-NOR.local"
] | ronfletcher1@Mighty-NOR.local |
060cab4de8f90448bb3a7351dec20cafcc81a448 | 3b593b412c663a34784b1f60ad07cd2ee6ef87d1 | /month01/python base/day04/exercise05.py | 37e1bf28579cef5876ac0302e9c634075a9418dc | [] | no_license | ShijieLiu-PR/Python_Learning | 88694bd44aeed4f8b022202c1065342bd17c26d2 | ed01cc0956120ea287c51667604db97ff563c829 | refs/heads/master | 2023-05-22T16:35:24.252313 | 2021-06-16T10:56:21 | 2021-06-16T10:56:21 | 337,445,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | # 练习5:在控制台中输入一个整数,根据整数打印一个正方形。如下:
"""
****
* *
* *
****
"""
size = int(input("Please input an int:"))
for item in range(size):
if item == 0 or item == size - 1:
print("*" * size)
else:
print("*" + " " * (size - 2) + "*")
| [
"shijie_liu@outlook.com"
] | shijie_liu@outlook.com |
c61707e722b7de7a5ff752fb34db87688bf58731 | d6f68928058fdda7f9825becee4fdf5c2955f3f0 | /app.py | 5b6d0b7fd19f565c988bf674952ee75928151573 | [] | no_license | SMawri/Flight-Price-Prediction--Heroku | 4cbc370d98add9148cf799aeb905b30f547e075e | 5698ec5a388a3a283a85b6c8c4ecea3564f156aa | refs/heads/main | 2023-01-08T13:57:36.198432 | 2020-11-01T08:07:58 | 2020-11-01T08:07:58 | 309,041,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,665 | py | from flask import Flask, request, render_template
from flask_cors import cross_origin
import sklearn
import pickle
import pandas as pd
app = Flask(__name__)
model = pickle.load(open("C:/Users/sandeep.mawri/Documents/GitHub/Flight Price Prediction/flight_price_prediction.pkl", "rb"))
@app.route("/")
@cro... | [
"noreply@github.com"
] | noreply@github.com |
9c50ac850f1e9d03b9356f0e58aa62b4a72ac2d5 | be61a9f30274514857ea34297719157f1e5b8447 | /fhir/resources/DSTU2/tests/test_provenance.py | 7ef6baef182c10f5c8210085602e62a429fe450a | [
"BSD-3-Clause"
] | permissive | jwygoda/fhir.resources | ceff3a620100d2e875136b86d3e82816c0e60a33 | 5053565570d1ca992d9971d20db813c53fd350b9 | refs/heads/master | 2021-02-05T02:59:17.436485 | 2019-07-18T10:57:33 | 2019-07-18T10:57:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,361 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 1.0.2.7202 on 2019-05-14.
# 2019, SMART Health IT.
import os
import io
import unittest
import json
from . import provenance
from .fhirdate import FHIRDate
class ProvenanceTests(unittest.TestCase):
def instantiate_from(self, filename):
... | [
"connect2nazrul@gmail.com"
] | connect2nazrul@gmail.com |
86fe5cb7743450f3f65becd8dca1cbd183e3ff69 | b8fee059e14d8711e01159b8abc2ebae931c8e8d | /parser.py | 2557f2c5c6be2ca5f9fc68cc977ff68a02a1621e | [] | no_license | robegan21/bwg | 8dd036b7c73a4d67eb8aeb7259d063258050ab5f | 9b0d941099462a70667c6b73cec43e5367651216 | refs/heads/master | 2023-02-08T13:29:43.980674 | 2020-12-23T01:37:31 | 2020-12-23T01:37:31 | 263,422,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,011 | py | #!/usr/bin/env python3
"""
Copyright (c) 2020, Rob Egan
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of con... | [
"rob@main.egannetworks.com"
] | rob@main.egannetworks.com |
8a4f69ce3053e4a1d3e795144711fd6e8b970a97 | b11e59a221b71f92a7e997b43c3e08532be6853b | /Image to Voice Convertor/Image to Voice- GUI/imageToVoice-GUI.py | d1ef32960fa24cb1df1139c872e763bd42558475 | [] | no_license | neexal/python-basic-projects | 02d3e54aeae63e40bfa33ebf6e30a210036a669c | 4942e6e58153e15c4561c873aa63636a5bcab880 | refs/heads/master | 2022-11-19T12:49:55.764113 | 2020-07-19T18:09:28 | 2020-07-19T18:09:28 | 280,179,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,499 | py | import os
import pytesseract
from PIL import Image
import pyttsx3
from tkinter import Label, Button, filedialog, Tk
window = Tk()
window.title("Image to Text OCR Convertor")
window.geometry("700x350")
label1 = Label(window, text = "Upload a image to read text from :", font =("Times New Roman", 20))
label1.grid(row=0,... | [
"nishanghimire111@gmail.com"
] | nishanghimire111@gmail.com |
83f324d390976b92859f4bc7e080efbbea376dbc | 3eb5d1f6a4596346d89d28257e46f98e76982554 | /Class_Member/calculater.py | aeaa1036cedddeffd833db7c155f54ae51131913 | [] | no_license | yunjin-cloud/2020-winter | b118130a62be9bd9641bb425a1d8ebc27716fa67 | 750eada816081f6b28c3ac3c9dbb362fe2243351 | refs/heads/master | 2020-12-05T10:28:56.791426 | 2020-01-22T15:50:17 | 2020-01-22T15:50:17 | 232,080,644 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,960 | py | class Cal(object):
_history = []
def __init__(self, v1, v2): #언더바 두 개를 양 옆에, self를 안 넣고 그냥 v1 v2 하면 위치가 두 개 바뀌어서 들어감...!
#파이썬의 첫 번째 매개변수(self)는 꼭 정의해줘야 하고, 그 첫 번째 매개변수는 그 instance가 됨.
if isinstance(v1, int): #검증된 값이 들어오게 하기 위해
self.v1 = v1 #instance 변수로 만들기 위해
if isinstance(v2,... | [
"noreply@github.com"
] | noreply@github.com |
f4a4c93aaccfc6428e9ae4d6ac45e1178346c67c | b23417462b40856e3d1d579fc9ab42f49c1b3adc | /game_functions.py | 6e8056e861b5748a9dc86e4ed40131bc9599c92a | [] | no_license | CaseyTM/PvZ | 57595821cb7f73e29452f91c8300dc7f55ce31c8 | 638999c7bc5766f781074220c9548926b909f826 | refs/heads/master | 2021-01-21T10:41:59.010228 | 2017-03-02T19:54:33 | 2017-03-02T19:54:33 | 83,473,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,134 | py |
import sys;
import pygame;
from peashooter import Peashooter;
from gatling import Gatling;
from bullet import Bullet;
import time;
from sunflower import Sunflower;
def check_events(screen,game_settings,squares,plants,bullets,icons):
for event in pygame.event.get():
if event.type == pygame.QUIT:
sys.exit()
if ... | [
"caseymccaskill@Caseys-MacBook-Pro.local"
] | caseymccaskill@Caseys-MacBook-Pro.local |
6caf7d3e60735d589ad598d7b48fffa858aab617 | af18f8ea04e968517c9570b1b2f0d0fa79adf1dd | /blog/urls.py | da3831c324662ccae822da483b17e339c0a6ccc5 | [] | no_license | MoonKwangjin/ajax_study | 17295cc495636ae57340999d8a3ecd13b5db199e | 80daa27398fd23ab1ac2eae1e6ef95f1ec449e90 | refs/heads/master | 2021-07-13T09:41:25.695146 | 2017-10-17T17:30:35 | 2017-10-17T17:30:35 | 106,700,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | from django.conf.urls import url,include
from .import views
urlpatterns = [
url(r'^$', views.index,name='index'),
url(r'^new/$', views.post_new,name='post_new'),
url(r'^(?P<pk>\d+)/$', views.post_detail, name='post_detail'),
url(r'^(?P<pk>\d+)/edit/$', views.post_edit, name='post_edit'),
url(r'^(?P... | [
"jln1220@naver.com"
] | jln1220@naver.com |
b57032ecbb8f61bc04c219a3e4caa40e6edb7ce3 | 91a0acae28b84a484f5c6f00af987c9bdbb9f616 | /sync.py | 89c47fded0373b15526fb19ac352877eba989632 | [] | no_license | wwsr06/DL_LTE | eeef38560b6e6310936a468d2e57afc9c548891f | 0ab831cbf0e137f0c23b8b0d7c862a09a79f6e31 | refs/heads/master | 2023-01-07T14:47:30.624855 | 2020-11-06T08:19:42 | 2020-11-06T08:19:42 | 263,239,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,287 | py | #coding=utf-8
import sys
import numpy as np
import math
from scipy.fftpack import fft,ifft
import matplotlib.pyplot as plt
#print (__name__)
def corr_pow(A,B):
a0 = A.real
b0 = A.imag
a1 = B.real
b1 = 0-B.imag
rp = a0*a1+b0*b1
ip = a0*b1+b0*a1
res = (rp*rp+ip*ip)
return res
def freqerr_est(tbuf0,tb... | [
"noreply@github.com"
] | noreply@github.com |
f4e78f9945443ef8e2dad633fa75a3e8ba3f231b | 84c6c839eea646926922fab8da908e2df281c96f | /text_multiline/main.py | d28fa2913bba8ae932d08c2d7f51c44b4e26264e | [] | no_license | RobinVanDutch/System_program | 4adf4f9ad672e9ab7944991129c108e6940493f1 | 6c1218b6cee05c21667589b140c8f79462fef2a9 | refs/heads/main | 2023-02-18T08:26:40.513454 | 2021-01-17T15:07:33 | 2021-01-17T15:07:33 | 314,770,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | from tkinter import *
root = Tk()
def OpenFile():
a=open(text2.get())
text.delete(1.0, END)
text.insert(1.0, a.read())
def SaveFile():
a = open(text2.get(), 'x')
a.write(text.get(1.0, END))
text.delete(1.0, END)
a = Frame()
a.pack()
text2 = Entry(a, width=40)
text2.pack()
Button(a, text="Откр... | [
"31820683+RobinVanDutch@users.noreply.github.com"
] | 31820683+RobinVanDutch@users.noreply.github.com |
17a5255312ad6b2dfcd93e0143ebee9bc9669456 | 18a895e59067d2145d4ce2f916ade43d84a37ef8 | /Python3/Tuples.py | 15b3a13edb682cd499a83248bebb1886b59ccdd0 | [] | no_license | RulasLalo/HackerRank | 604e14671465d50715927596d95005c39d8e6c90 | 172a429e99b4372bdb86cee73740ad318a3ea15d | refs/heads/main | 2023-02-17T16:22:50.512223 | 2021-01-16T00:18:15 | 2021-01-16T00:18:15 | 329,431,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | n=int(input())
dato=input()
lista=[int(i) for i in dato.split()]
#print(lista)
tupla=tuple(lista)
print(hash(tupla))
| [
"noreply@github.com"
] | noreply@github.com |
dbdc4c1bba264e1bd120c46587c98382ef19041c | c4f73e04142fde55bd3fe504e219331e9e9b7941 | /scripts/thruster.py | baf93e99540fa44add1bfb5a7b5dc4f900fd8b94 | [
"MIT"
] | permissive | pomerlef/killer_tomatoes | d6da0a04a21ba7be321b282c56d255deb241869c | 35f3a0d3229bae168210275b03c896a075d36d9b | refs/heads/master | 2022-10-23T00:33:18.027638 | 2020-06-12T14:06:33 | 2020-06-12T14:06:33 | 269,775,878 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,062 | py | #!/usr/bin/env python
import rospy
from visualization_msgs.msg import Marker
from geometry_msgs.msg import Twist
from geometry_msgs.msg import Accel
import tf
import math
class Thruster():
def __init__(self):
rospy.init_node('thrusterNode', anonymous=False)
markerPub = rospy.Publisher('thruster_ma... | [
"student@percep3d.virtual.machine"
] | student@percep3d.virtual.machine |
a2cf8a7ae72e5a6c42753607cfdbc68249662635 | 84611b1d4a46dfa52d088711b3b6f9957670dd3d | /izzy.py | b310c4dfdc34aaa3e38461fe8b6d81c8e2c91429 | [] | no_license | izzy08/ChatBot_mergebest | 9c6a4a7d1b81ee7f9632d9c0bd13317375d123ac | 9e3737f50933f0104992bb2c2a141863ceff2f1b | refs/heads/master | 2023-08-25T15:23:23.418004 | 2021-10-19T15:33:52 | 2021-10-19T15:33:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py |
import re
from baseChat import BaseChat, addChatObject
class IzzyChat(BaseChat):
def chat(self,text):
print("good")
if text == "what are you doing":
return " nothing because im a bot now do your homework"
if text == " how are you today":
return " i don't feel anything i'm a robot"
myF... | [
"91972662+izzy08@users.noreply.github.com"
] | 91972662+izzy08@users.noreply.github.com |
3ca4847d2fcea8e14b515ef04ca57fdbab37f57c | 4f770819f1b9ce66c847873f02d65a7250d3c0b9 | /myapp/test.py | ffb04a90d437b452a9827535e387313d97b522c9 | [] | no_license | alexaugusto23/Moscow_Ring_Road_Coordinates | 58ec6b606679aab34d0941b7c57374071b3821ad | 51daf7f88e9b2c02df174a44931c86afc079aeb1 | refs/heads/main | 2023-08-31T14:26:08.446962 | 2021-09-19T01:43:21 | 2021-09-19T01:43:21 | 405,960,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,427 | py | import unittest
from app import app
import re
class TestHomeView(unittest.TestCase):
'''
As all 3 test cases do a get home "/"
from our application, we define the setUp function. she is executed
automatically whenever unittest instantiates the TestHomeView class.
The setUp function is simi... | [
"contato.alexaugusto@hotmail.com"
] | contato.alexaugusto@hotmail.com |
be1ad681d98b756c3bd0497d05278e59db83c92b | 5017db085d3316e7954fa9beb258ab964cc0beb5 | /netlookup/network_sets/google.py | 6e6626a13ab2d04d3ad71db33ae57441be13b84c | [
"BSD-3-Clause"
] | permissive | hile/netlookup | 698e68577096fbb74daa9ba205624ddc49b357e4 | 1bc00271500d4daa279acc11590b5dcf40a0b85e | refs/heads/main | 2023-07-19T20:43:42.855035 | 2023-07-09T03:02:00 | 2023-07-09T03:02:00 | 191,030,505 | 0 | 0 | NOASSERTION | 2023-02-11T02:23:41 | 2019-06-09T16:36:59 | Python | UTF-8 | Python | false | false | 3,324 | py | #
# Copyright (C) 2020-2023 by Ilkka Tuohela <hile@iki.fi>
#
# SPDX-License-Identifier: BSD-3-Clause
#
"""
Google services address prefix set
"""
import re
from datetime import datetime
from operator import attrgetter
from typing import Optional
from dns import resolver
from ..exceptions import NetworkError
from .ba... | [
"hile@iki.fi"
] | hile@iki.fi |
1c9ad65b85f7f793307ac30b98a6775a9dee079b | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_173/ch20_2020_03_04_20_04_41_273583.py | 24e06e78098124022a59a5bfb6d4b88ca932758a | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | distancia = float(input('Escreva a distância que você quer percorrer em km'))
if distancia <= 200:
valor = 0.5*distancia
else:
valor = 0.45*distancia + 100
print (distancia) | [
"you@example.com"
] | you@example.com |
7f132158180002a33720c8c046f883dd291047f2 | 7d71f84771db0867614bbb3714d832014e73d9f8 | /manomotion/src/object_tf.py~ | 3516ad7f27d7d338050657ac544e1c10ad162086 | [] | no_license | JordiSpranger/Bachelor-P6 | 1afe5b93e9128b10a0ac0e862c54f6e0ff6b1623 | 1268b09ef07a5e5e2f4be6613b9e7d4856b0e8ec | refs/heads/master | 2020-03-12T00:18:33.470451 | 2018-07-17T14:16:17 | 2018-07-17T14:16:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,236 | #!/usr/bin/env python
#from __future__ import print_function
#import roslib
import sys
import rospy
from std_msgs.msg import String
from sensor_msgs.msg import Image
from cv_bridge import CvBridge, CvBridgeError
import numpy as np
import cv, cv2, cv_bridge
import sensor_msgs.point_cloud2 as pc2
from sensor_msgs.msg i... | [
"noreply@github.com"
] | noreply@github.com | |
4ba68571dab269a633580fd3f623aa7a576c6a81 | f11dcdee8f4eb01fb1096eb4aed2992b6e9dfe22 | /lab3/utils.py | 31c9d42276489cc833add8608b40c4183db70b4c | [] | no_license | piotroramus/Computational-Geometry-2015 | 9fe3cede4050705be182650d45319aa75022c0c6 | 63204772fdb83e2f2855c21a06f9541714777251 | refs/heads/master | 2021-01-10T06:18:00.032236 | 2015-12-05T15:53:06 | 2015-12-05T15:53:06 | 45,310,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | __author__ = 'piotr'
from lab3.segment import Segment
epsilon = 10e-9
START_SEGMENT = 0
INTERSECTION = 1
SEGMENT_END = 2
def event_desc(event_type):
desc = ["START", "INTERSECTION", "END"]
return desc[event_type]
def segment_to_tuple(segment):
return [(segment.x1, segment.y1), (segment.x2, segment.y... | [
"piotroramus@mail.com"
] | piotroramus@mail.com |
ebd8eb0ac9433bd685026eb2e6fdf0b8fef9d0df | 3c9eb1409b4b7c8f05a74f91a10094b06c1fae64 | /whitelist.py | 032ff51c0f038884bce45d566df244da908413c6 | [] | no_license | lkashl/galaxy2.0_retroarch | 5fb18c526e354cd528d8d8ba36e3063d9e561d9b | 31aeea22a6f0da928653870d1a60b136e855f1e4 | refs/heads/master | 2020-08-22T08:54:38.675798 | 2019-10-20T13:48:02 | 2019-10-20T13:48:02 | 216,360,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,608 | py | from local_utils import _get_local_json, _get_json_target, _get_local_dir
# Create a whitelist entity that will be used to determine games for inclusion/exclusion
class WhitelistEntity:
def __init__(self, is_pass, score):
self.is_pass = is_pass
self.score = score
# Check if a criteria is present ... | [
"lkashl@hotmail.com"
] | lkashl@hotmail.com |
3a8d79113639d553210e032f1d3b54d7ad7819bb | f294bb670f6c15d4143e567af8222845055c9f12 | /advanced_machine_learning/neuroevolution/neat_examples/xor/visualize.py | 7a5ad3d7ff1bb3c6ef1392819e13d48d6598b98b | [] | no_license | elliotgreenlee/machine-learning-examples | 52bc0ce76c5839ca93932116769f1c8767a0c4fd | 05cf87a06a9c03185883793bea4055c69a4a2194 | refs/heads/main | 2023-04-01T08:13:24.654570 | 2021-04-14T02:28:05 | 2021-04-14T02:28:05 | 357,742,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,022 | py | from __future__ import print_function
import copy
import warnings
import graphviz
import matplotlib
matplotlib.use('TkAgg')
import matplotlib.pyplot as plt
import numpy as np
def plot_stats(statistics, ylog=False, view=False, filename='avg_fitness.svg'):
""" Plots the population's average and best fitness. """... | [
"noreply@github.com"
] | noreply@github.com |
04ad95737f29dd762e12c3623fc837a60803bb84 | 119d546fba7927810229cacb8bddc3317685fc20 | /treehouse/character.py | f81bccd3657ff20f25bafa6bcf3a95f83019add2 | [] | no_license | rronakk/Python-3-exercies | b63a162dc5ad41e882c9293785f79d23a05bec6a | 8d99dd3b83a87f128edba1a0995ba97ec2dd7705 | refs/heads/master | 2021-01-22T23:48:20.467994 | 2015-09-29T05:11:53 | 2015-09-29T05:11:53 | 41,360,573 | 0 | 0 | null | 2015-09-29T05:11:54 | 2015-08-25T11:52:34 | Python | UTF-8 | Python | false | false | 883 | py | from treehouse.combat import Combat
import random
class Character(Combat):
attack_limit = 10
experience = 0
hit_point = 10
def get_weapon(self):
weapon = input("Weapon [S]word, [A]xe, [B]ow :").lower()
if weapon in 'sab':
if weapon == 's':
return 'sword'
... | [
"knockronak@gmail.com"
] | knockronak@gmail.com |
38bd8e92ac6b44274c15391486f09217740c1aac | b10fc91374a75cd689edadc823c2d8d6d39836c0 | /python/ray/rllib/a3c/shared_torch_policy.py | b3d7da08154f5cd99cc84b7ab60cfd8d3fb94ba9 | [
"MIT",
"Apache-2.0"
] | permissive | reazrrr/ray | e082557e8c804b23735daabf5c251d4c75c8ec8a | 96c46d35ff7f6802070fecc74d9275aa0b1af130 | refs/heads/master | 2021-08-28T04:14:02.519033 | 2017-12-11T06:40:28 | 2017-12-11T06:40:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,832 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import torch
from torch.autograd import Variable
import torch.nn.functional as F
from ray.rllib.a3c.torchpolicy import TorchPolicy
from ray.rllib.models.pytorch.misc import var_to_np, convert_batch
from ray.rl... | [
"noreply@github.com"
] | noreply@github.com |
b6c02ef994d8aeabf68bfdecae107c5fc0bc404c | 5fdcb39eaa9d1f44e2ba0130bc0d6ece3f5ff354 | /code/cheshire3/web/srwHandler.py | 7ea429dc225a21f7918e3b0a4d832d549d429102 | [] | no_license | Cheshire-Grampa/cheshire3 | 0a653d6372497290d938e098b6acf8366348133f | 616ab36cd8442cd5f4712a9fccf65ca7ae9f692c | refs/heads/master | 2020-12-25T07:26:16.366754 | 2012-06-06T09:52:53 | 2012-06-06T10:32:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,168 | py |
# Handlers for SRW Operations
# Version: 1.1
# Author: Rob Sanderson (azaroth@liv.ac.uk)
# John Harrison (john.harrison@liv.ac.uk)
#
# Version History:
# 08/10/2007 - JH - Automatic insertion of database metadata into explain response
# 06/12/2007 - JH - Some extension handling fixes
#
import os, sys, re
i... | [
"info@cheshire3.org"
] | info@cheshire3.org |
fe954e2b65ae25d6db167a55e907501525c102b5 | c28df05de01d2fbdc1d7112b76fc57e0a3cff827 | /scripts/groupedby.py | bcb30f45b23359c5f7644a1ff6e94946d3d4592c | [
"MIT"
] | permissive | jkang-critter/apteligent-importer | 693fa2d2e472a694b8418fd0fbe61bbe90fa32ac | abee55179d9a102d30c285d56fdea612385200f0 | refs/heads/master | 2020-04-11T12:21:03.269092 | 2016-05-06T15:04:28 | 2016-05-06T15:04:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,898 | py | #!/usr/bin/env python
'''
Script to retreive grouped mobile app data from the Crittercism REST API and
store it into graphite.
'''
from __future__ import unicode_literals
from builtins import object
import time
from argparse import ArgumentParser
from libecgnoc import (logger,
jsonstore,
... | [
"pfrederiks@ebay.com"
] | pfrederiks@ebay.com |
d3da928a7bdb1410236ae632927862513e5a8204 | 7d7283787795f5ec3d2e946be6f7769c1a7e7113 | /basicPj/src/collectionPackages/c4_matplotlib/Operations.py | b08c2aaefc6dbc5e38d17b8e2aa86394281cc896 | [] | no_license | hawkzuo/PyCharmProjects | 0b7485a5c45bb68d90a007df0ebb7acb0d4c117b | ed5fbbf033ff084bf8e2160f007759e795212e54 | refs/heads/master | 2021-01-21T03:44:34.175924 | 2017-11-05T17:27:02 | 2017-11-05T17:27:02 | 101,900,177 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,540 | py | # matplotllib is 2D-graphics
from matplotlib import pyplot as plt
import numpy as np
def test_basic_controlled_plotting():
# Create a figure of size 8x6 inches, 80 dots per inch
plt.figure(figsize=(8, 6), dpi=80)
# Create a new subplot from a grid of 1x1
plt.subplot(1, 1, 1)
X = np.linspace(-np.pi... | [
"amosqqmail1@qq.com"
] | amosqqmail1@qq.com |
7b654b9da097152b1a066f022e92f59906cb6bca | d1ea12aceca297607d9dcc9124fcc4917f5684a6 | /isonomial/backend/app/alembic/versions/116490d2545c_added_postvote_model.py | f83f7f44e8b64391754fe1f9f10486d7a8e424bb | [] | no_license | deepfinessed/isonomial | 509c00aa3de6a29a74fe47216c8a052dacd71f24 | bcf2dae90b3ffc03bd8a9e5a0f064fcef9fcd456 | refs/heads/master | 2023-02-23T17:12:17.801574 | 2021-01-31T18:34:17 | 2021-01-31T18:34:17 | 271,088,260 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,395 | py | """added postvote model
Revision ID: 116490d2545c
Revises: d73b40264cc7
Create Date: 2020-07-07 19:06:53.858605
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '116490d2545c'
down_revision = 'd73b40264cc7'
branch_labels = None
depends_on = None
def upgrade():... | [
"mungernate@gmail.com"
] | mungernate@gmail.com |
b71cb086326b6ba03edf72dd552bb43d62bef4a6 | 11e27b23e568c80c723287e946ee9cc0f8696385 | /instagram.py | b6d500ebd0fbe532c3ef91a3212d2ca89a6c87e0 | [] | no_license | kumarnitish378/GUI_research | 27eebe702b8a0a4c737c3f9dade52172f73771f5 | 48bd37e95d10e94a41e490e1299d6425ce6ef3aa | refs/heads/master | 2023-06-19T04:01:59.599213 | 2021-07-22T16:36:59 | 2021-07-22T16:36:59 | 376,445,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,898 | py | import sys
from PyQt5 import *
from PyQt5 import QtCore, QtGui
from PyQt5.QtWidgets import *
from functools import partial
class MainWindow(QMainWindow):
def __init__(self):
super(MainWindow, self).__init__()
l = 800
b = 450
a = l / 16
c = l / 80
d = c / 2
s... | [
"41774164+kumarnitish378@users.noreply.github.com"
] | 41774164+kumarnitish378@users.noreply.github.com |
39420f4dd8ab7e282152b8a385260ae3dba14513 | a5c4e1ab36972c0bbc2526612a9ade95768b32b1 | /ailtdou/main/views.py | 0b1bc567a56e9b5a702bf5eee1b8e4cb4008b087 | [] | no_license | tonyseek/ailtdou | 5587e76e3c34b3533c73d2acded5b8134bbd8ad3 | 435cad7fd127a6fc7974b1413ec0299ca2dd359d | refs/heads/master | 2021-01-23T00:14:55.509037 | 2018-10-13T12:46:27 | 2018-10-13T12:46:27 | 19,821,141 | 0 | 0 | null | 2018-08-14T07:14:38 | 2014-05-15T13:54:50 | Python | UTF-8 | Python | false | false | 286 | py | from flask import Blueprint, render_template
from flask_login import current_user
bp = Blueprint('main', __name__)
@bp.route('/')
def home():
if current_user.is_anonymous():
return render_template('login.html')
return render_template('user.html', user=current_user)
| [
"tonyseek@gmail.com"
] | tonyseek@gmail.com |
94177b981c9325042689837f0c842a0584ae9ff6 | 264ef5cbf05db34c3b9f27fab8c48c777e5565dd | /proj1/venv/Scripts/pip3-script.py | 5f885bbe3edc08de23618f38f5ed935d51c7f9f2 | [] | no_license | diegohernandez25/Data-KnowledgeEngineering | 70f4bd5b72080da5edc61b56628b27a59e9614b4 | c70f86b3d5ee49b954cd9fac45ca6e5fc0143714 | refs/heads/master | 2022-11-19T00:56:31.345416 | 2020-07-14T01:07:42 | 2020-07-14T01:07:42 | 279,445,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | #!D:\Dropbox\deti\edc\proj\edc-2018\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.ar... | [
"margaridaocs@ua.pt"
] | margaridaocs@ua.pt |
9efd6760f9ac068adc4940f8cedf7f022272c19d | eaa2de5c5cb93c35e4cc1be708186d0fb6e58106 | /Scripts/phone_num.py | 90ba12d6645f3d8b7dc116bc65d4411fab4c0ca7 | [] | no_license | Harshit22-terabyte/Finding-ip-by-Regex-in-python | 448cc9496149d6b5e021fc06d2c6ccfe5716b51a | 5703392e90e367718c423470c19e3be4bb20681c | refs/heads/master | 2022-12-05T00:01:54.117734 | 2020-08-24T12:02:14 | 2020-08-24T12:02:14 | 289,504,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | import re
file=open('C:/Users/harshmis/PycharmProjects/Python/Scripts/data.txt','rt')
data=file.read()
pattern=re.compile(r'\d{3}.\d{3}.\d{4}')
matches=pattern.findall(data)
phone_num=[]
for match in matches:
phone_num.append(match)
for num in phone_num:
print(num) | [
"hmhmishra41@gmail.com"
] | hmhmishra41@gmail.com |
0644df5c8a3ef8ffe4a28edce2e47ba5270b5041 | 4a0f15d8b94b3a9b46d0ceb3dc753ef6f0d37f8c | /repo/KPProblem.py | 72437bc637ecf9434f01e59581ecc42b3d952265 | [] | no_license | DevMan-VR/minizinc | ae25d8930c2f3cf398e37879ef65ab0013dbf263 | 903894ccc6cbde1a05fc7fff1da05023a848ccd7 | refs/heads/master | 2023-01-30T09:06:12.131082 | 2020-12-17T01:16:23 | 2020-12-17T01:16:23 | 318,314,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,490 | py | import random
#Esta clase tiene todas las funcionalidades que involucran al problema
class KPProblem:
#Peso Maximo
__maxWeight = None
#Arreglo que define el peso de cada uno de los elementos de la particula
__weights = None
#Arreglo que define la ganancia de cada uno de los elementos de la parti... | [
"55303206+DevMan-VR@users.noreply.github.com"
] | 55303206+DevMan-VR@users.noreply.github.com |
2762b0c289da861230072469dd2bdd3ced7940b3 | 181611c6fbf48c5a0f92209afd1ad6a57477f582 | /squeezenet.py | a2508c8ed4ef35a1d6b4902374b433ef768e9d2f | [] | no_license | AdivarekarBhumit/Doc_Scanner | 70a6670bcf88aa1eaceba303cfff10b33357eaa0 | b31f85e4ed857f55b7571c9f1b249c242dc36196 | refs/heads/master | 2020-04-12T10:02:33.789983 | 2018-12-28T16:51:37 | 2018-12-28T16:51:37 | 162,416,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,731 | py | import keras
import tensorflow as tf
from keras.layers import Conv2D, Dense, Dropout, MaxPool2D, BatchNormalization, concatenate
from keras.layers import GlobalAveragePooling2D, Flatten, Input, Activation, InputLayer
from keras.models import Model
sq1x1 = "squeeze1x1"
exp1x1 = "expand1x1"
exp3x3 = "expand3x3"
relu = "... | [
"bhumit97ad@gmail.com"
] | bhumit97ad@gmail.com |
ef505cea73e5c3037f00f3f90d9413b53a1b61a9 | f5d43e47e375d6d337b919b8eb7f3393e4687864 | /lpthw/31-40/ex40_test.py | 989e12ee9cc1788d320fcf11b770a64ba098454b | [] | no_license | Cadols/LearnPython | 4a2c202b30a1d877ec75e0ec45b03f9f1c2bc52a | 2ab5cefe1f7e2c0393489e3d1d4d0c88557c2ebb | refs/heads/master | 2021-01-12T09:49:48.335014 | 2019-05-24T06:53:42 | 2019-05-24T06:53:42 | 76,265,981 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,081 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
class Song(object):
def __init__(self, lyrics):
self.lyrics = lyrics
def sing_me_a_song(self):
for line in self.lyrics:
print(line)
twinkle_twinkle_little_star = Song(["Twinkle twinkle little star",
... | [
"wangwei150@gmail.com"
] | wangwei150@gmail.com |
7c4e298eae4a7df031653032aac358b12510b731 | 7010f70ead36753162cbe5200863c9f42111bc45 | /functions/doublestar kwargs.py | 130a3cf44e7695781ad6e334165b51000c5e48a0 | [] | no_license | bandaru14/Examplesd | 1f231437522bcee0bd9b4a97a25a2e9e1c85a3ba | 7f17ff1ec6629b61e51534548b62cb04c63fdbd0 | refs/heads/master | 2020-03-28T21:18:11.272952 | 2018-09-17T15:56:07 | 2018-09-17T16:03:35 | 149,145,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | def var_args(a, b, c=10, *venkat, **ramana):
print('a is:', a)
print('b is:', b)
print('c is:', c)
print(venkat)
print(ramana)
var_args(100, 200)
var_args(10, 20, 30, 40, 50, 60, 70, 80, name = 'python', year = 1992)
| [
"Venkat@14"
] | Venkat@14 |
ca05664506dd5df451c986f05e7d863b26d39171 | 11c0b94252c0834d4ee472d18a7062e594511341 | /ch01_Python_Data_Structure_Magic_Function/vector.py | f00bf0e8db020d68f88ae0461b0388b2f94a58ff | [] | no_license | jekin000/Fluent_Python | fbb15733ad52f0f8f569d06e21d1ccc01a3c6fda | 164d1eb0d605ddd1c2aac0176c33c73857014fc4 | refs/heads/master | 2021-07-12T22:13:53.761735 | 2020-06-23T08:48:15 | 2020-06-23T08:48:15 | 166,965,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | ##########################################
# 1.2 doctest,__repr__,__abs__,__add__,__mul__
# Notice: Python2 bool(x) will not call x.__bool__
##########################################
'''
>>> v1 = Vector(2,4)
>>> v2 = Vector(2,1)
>>> v1+v2
Vector(4,5)
>>> v = Vector(3,4)
>>> abs(v)
5.0
>>> v * 3
Vector(9,12)
>>> abs(v... | [
"kira_r163@163.com"
] | kira_r163@163.com |
bb36cafc9c8b5a97aaed02a728f37ffec05ab660 | e27ea1b57da364f4fbcc96c9d6b2dc01e912ae1d | /aws_cloud/certs_etc/local_json.py | f138ebf34c1abaded3134a3c5074cd1dc5b77b84 | [
"MIT-0"
] | permissive | iothack/iot-device-on-boarding | 03a90964fde7161d20d8a5a1ffa5ca2be83063aa | ec92516f9f9c70682493eb1230c3b313ae2a5305 | refs/heads/master | 2022-04-26T17:11:45.602791 | 2020-04-28T22:13:49 | 2020-04-28T22:13:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,272 | py | #!/usr/bin/env python3
'''
MIT No Attribution
Copyright Amazon Web Services
Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights to use, co... | [
"mhattig@amazon.com"
] | mhattig@amazon.com |
e9aef59cb7f0cbfeae19fc3079701cf5cf4826e7 | edd4b662a82bf2bea0a83998dee660ff7b72f375 | /02_classification_sample_model.py | ef133fc1bb11feeba99720b0e1d0d52e3ea062ab | [
"MIT"
] | permissive | renjithbaby23/tf2.0_examples | a6628096b437d18958f1400f84196828c1715093 | 79f8f0b018536e5f011fc7e413039e933f786b2e | refs/heads/master | 2020-06-23T12:37:54.393626 | 2019-08-07T19:57:21 | 2019-08-07T19:57:21 | 198,626,615 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,323 | py | import tensorflow as tf
import pandas as pd
import numpy as np
from matplotlib import pyplot as plt
fashion_mnist = tf.keras.datasets.fashion_mnist
(X_train_full, y_train_full), (X_test, y_test) = fashion_mnist.load_data()
print("X_train_full.shape: ", X_train_full.shape)
print("y_train_full.shape: ", y_train_full.sh... | [
"renjithbaby23@yahoo.com"
] | renjithbaby23@yahoo.com |
91a29608b0d174a1fe57a844440c8b000117664d | a274c8eefdc81157820b8ede77a4d7c62160dd91 | /siths/duku/apps.py | 3b4bb4653a9fe7b63090a3f4116f277546507b0d | [] | no_license | hatiff/train | b0a99119c257213489c71745464f3cb3e395628c | 295bc5bc1f2bf83078b29118781c9dc7af98386e | refs/heads/master | 2021-09-05T16:41:30.780165 | 2018-01-29T17:48:20 | 2018-01-29T17:48:20 | 119,369,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | from django.apps import AppConfig
class DukuConfig(AppConfig):
name = 'duku'
| [
"stexmachina@gmail.com"
] | stexmachina@gmail.com |
83c4adc24b10fa4f8432a7b17db6562199719532 | 424f998d3f905a94297c6fa0c650a5f8e09c572d | /supervisor/resolution/fixup.py | d82ece6fdbf7d9f6ed12cce645626105b341e0ff | [
"Apache-2.0"
] | permissive | behestee/supervisor | a335457204ea7586536ba6c4e6dda9a13aa33914 | f8fd7b5933d38e6ec2b35d819bdc83de666e94a9 | refs/heads/main | 2023-01-21T00:48:29.021680 | 2020-12-03T11:24:32 | 2020-12-03T11:24:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,285 | py | """Helpers to fixup the system."""
import logging
from typing import List
from ..coresys import CoreSys, CoreSysAttributes
from .data import Suggestion
from .fixups.base import FixupBase
from .fixups.clear_full_snapshot import FixupClearFullSnapshot
from .fixups.create_full_snapshot import FixupCreateFullSnapshot
from... | [
"noreply@github.com"
] | noreply@github.com |
875b7d855cd1a084c02952612d3c374fdadd0468 | 515d0b2fdce739ca8c84e7ac97ed05fb03175d4d | /find.py | 32552c650353c9f48b0adff04faf82471ce954dc | [] | no_license | nikitiy/python-parser | af91596f94607e296dc666a57756bd56b797b7e8 | 343c3f730cdf32ae46598163e9e982e07f9efa3d | refs/heads/master | 2023-04-07T06:00:21.439038 | 2021-04-03T15:35:06 | 2021-04-03T15:35:06 | 354,327,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,821 | py | import requests
from bs4 import BeautifulSoup as bs4
def counter_word(url, counter, letter, animals):
last_operation = False
headers = {
'accept': '*/*',
'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36'
... | [
"nikita_02.20@mail.ru"
] | nikita_02.20@mail.ru |
3a7381f58e016c17acdda37ca348942621b67a30 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02269/s429567531.py | b6858b987c9d3f9e958f07c18273052b8af703cd | [] | 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 | 352 | py | def insert(S, string):
S.add(string)
def find(S, string):
if string in S:
print 'yes'
else:
print 'no'
n = input()
S = set()
for i in range(n):
tmp1, tmp2 = map(str, raw_input().split())
if tmp1 == 'insert':
insert(S, tmp2)
elif tmp1 == 'find':
find(S, tmp2)
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6966ecc46ef75b5d6e02142b8fd79d8c2e999801 | c8e1bb566a85df3ac6fe131660bdfdf8cf2bb645 | /chapter04/homepagetests.py | aee982e04fa57cf295fb470294d36d53a72ecde4 | [] | no_license | Haibo-Zhou/seleniumBook | 9886a629a05e655f2f05ce0d69ad10ef9f4938f2 | cf70d25341251a0ea842c2a96c7194fbdfa66fea | refs/heads/master | 2020-05-18T07:01:49.752342 | 2019-04-30T12:27:01 | 2019-04-30T12:27:01 | 184,253,356 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,739 | py | import unittest
from selenium import webdriver
from selenium.webdriver.support.ui import Select
class SearchTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
# create a new Chrome session
cls.driver = webdriver.Firefox()
cls.driver.implicitly_wait(30)
cls.driver.maximiz... | [
"chuckzhb@hotmail.com"
] | chuckzhb@hotmail.com |
33d808d34e015d346f6dfa46f5d5ab753a35df7d | 4381455cd57d65a9e00572289de98b0175d8185d | /how to think/Decks.py | 9b8ce6ee5b36ba29c6a68d2ac928e57878b40c92 | [] | no_license | NujjA/python_work | 68daf06cd60bf21a38b6f49d08c0636848889e15 | 98344f9b5ab5e0a0b0198d99d1352918b18e842c | refs/heads/master | 2021-04-30T04:32:21.731670 | 2018-07-07T01:55:34 | 2018-07-07T01:55:34 | 121,538,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | import Cards as cd
class Deck:
def __init__(self):
self.cards = []
for suit in range(4):
for rank in range(1,14):
self.cards.append(cd.Card(suit, rank))
def __str__(self):
s = ""
for i in range(len(self.cards)):
s = s + " " * i +... | [
"36452650+NujjA@users.noreply.github.com"
] | 36452650+NujjA@users.noreply.github.com |
98b9644c9853eb0ca6eca5f2f6498cb8c0e42d14 | 5d45f39017f86087365654f1fb1e39d540d1387d | /main.py | 79ecdde7f6c6f47c2a245d99a0bb24f1c08c8798 | [] | no_license | Felixthecat463/time1.py | de947f8c6cfad22aadda6cedd70adfc90a9967a1 | 6c397b8341f0d455eb3107a00e84c57ce08b3eaa | refs/heads/main | 2023-05-10T14:29:39.571480 | 2021-05-31T16:56:32 | 2021-05-31T16:56:32 | 370,108,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,691 | py |
print(2+2)
print(4/5)
print(int(4/5))
print("2"+" 2")
user = "Patrick"
x = "7"
x = 7
x= 7.0
#float
print(x+3)
y = input()
print(y)
print ("quel est ton age?")
age = int(input())
print(age)
print("His age is " + str(age))
x +=3
x *=2
x =x+3
print(x)
voiture="bleu"
voiture+="rouge"
print(voiture)
voiture="bleu"
voi... | [
"neuweilerp@gmail.com"
] | neuweilerp@gmail.com |
eff3ac35e54cc1af3cb694b46c58b2901222977d | 34884af7fcb59249d302d61279ebcd47069407d6 | /demo_save_json.py | 97afbd9a624351eaefb5b69e817004d420fbb89d | [] | no_license | Mia8858/python-traffic-analysis | dd2d9668b2c5d9d5794a4bd8cbd244a5723b2de2 | be8f713d6b4a099cadcb7405d9e753abc8cdba56 | refs/heads/main | 2023-06-02T02:52:20.081380 | 2021-06-22T05:13:05 | 2021-06-22T05:13:05 | 372,188,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | import os, django
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'datacenter.settings') # 需對應 wsgi.py
django.setup()
# 更多操作請參考官方文檔: https://docs.djangoproject.com/en/3.1/topics/db/models/
from mysite.models import Post
import json
from django.core.serializers.json import DjangoJSONEncoder
#============================... | [
"C107115132@nkust.edu.tw"
] | C107115132@nkust.edu.tw |
c6443e9e4d16553be2ab62035dacb3504dc0b0e7 | 94ca446c0f17d640f45941fa7c83530ef2fbc099 | /wrs-remote-clients-2.0.2/python-openstackclient-3.12.0/build/lib/openstackclient/network/v2/setting.py | d404325e8ea16391d3a58e77a79b68bf48806a91 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | rmoorewrs/tic-windows-remote-clients | c1c2b8924e90ffd2951571bc098ec9873ffd3988 | ae16ee78a720852304d79f8b86dfe44e920cc72d | refs/heads/master | 2023-05-25T13:55:55.603100 | 2019-05-31T20:59:28 | 2019-05-31T20:59:28 | 189,649,925 | 0 | 0 | NOASSERTION | 2023-05-22T20:43:59 | 2019-05-31T19:46:28 | Python | UTF-8 | Python | false | false | 6,210 | py | # 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 writing, software
# distrib... | [
"rmoorewrs@gmail.com"
] | rmoorewrs@gmail.com |
e6c214c8c0bde01770ab857643b67450c84e437c | e77846e4e09e22bcb1ce49714ec2c0e15c57ffed | /list_of_mobile_devices.py | 90d4bd5165fca914b62673de81c1d3cee6d47b0e | [] | no_license | Pratiquea/AutoViews | 205686505b39dd53a0e49bc2b49dce123fd31aa6 | ed52dbdbd05cebc3b872739cb9bc7fbaf57b1b17 | refs/heads/master | 2023-05-29T09:02:46.038018 | 2021-06-10T21:08:34 | 2021-06-10T21:08:34 | 270,153,755 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,384 | py |
mobile_device_list = ["Galaxy Note 3",\
"Galaxy Note II",\
"Galaxy S III",\
"Kindle Fire HDX",\
"LG Optimus L70",\
"Nexus 10",\
"Nexus 5",\
"Nexus 5X"... | [
"prateekarorav2@gmail.com"
] | prateekarorav2@gmail.com |
148be310b014b4d6e91ecc38ce9fabe8ad406557 | f6075317c514a8eea45b0d0057ca3ac25dea18b7 | /camera.py | 262809c1c578e855f4f68996689cea07f90a1b3d | [] | no_license | Anand-afk/Face-Expression-Recognition-using-Keras | 4cf45620b3bd0350d47526873b07460c7cf44414 | b2a8a7b7548e93ff4c47906aaf910b95bb2aa6cd | refs/heads/master | 2022-11-29T09:12:49.762086 | 2020-08-07T06:17:42 | 2020-08-07T06:17:42 | 284,210,261 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,022 | py | import cv2
from model import FacialExpressionModel
import numpy as np
facec = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
model = FacialExpressionModel("model.json", "model_weights.h5")
font = cv2.FONT_HERSHEY_SIMPLEX
class VideoCamera(object):
def __init__(self):
self.video = cv2.VideoCa... | [
"arane0017@gmail.com"
] | arane0017@gmail.com |
62ae9131de75baef6a7956a26d3a7ecfa5033b24 | 43d8f4785f8005d0205640d21eea71689879294f | /CSP.py | d64cec51bbde8577a1c03ca4416a25fee9f34182 | [
"MIT"
] | permissive | Cerebral-Language-Innovation/EEG-Preprocessing | 6c302dcfc985760ae356878d8878232414170bfd | 2bb27c45e8e69973fb55b13d03370a95d722f3d5 | refs/heads/main | 2023-04-20T17:37:28.409041 | 2021-05-08T01:40:05 | 2021-05-08T01:40:05 | 365,384,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,773 | py | import numpy as np
import matplotlib.pyplot as plt
from sklearn.pipeline import Pipeline
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis
from sklearn.model_selection import ShuffleSplit, cross_val_score
from mne import Epochs, pick_types, events_from_annotations
from mne.channels import m... | [
"noreply@github.com"
] | noreply@github.com |
c7c01b09a4870ebee29a303ffd427d7b97b6bb9f | f98b8edff653b84192b8130f2165b9042ce6c3a6 | /MyBlog/blog/migrations/0001_initial.py | 3ccd437771250d7ed457abdb74fc36519a0764a2 | [] | no_license | Askanio234/Blog | 4cc4237c33c7255ae252049eb394153793c4fefc | 28bc610abce119c1b3c5d525ed61dacceaf0fe84 | refs/heads/master | 2021-06-26T04:43:15.531782 | 2017-08-27T09:59:16 | 2017-08-27T09:59:16 | 100,624,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,160 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-17 19:42
from __future__ import unicode_literals
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
... | [
"askanio234@gmail.com"
] | askanio234@gmail.com |
3a40051d7f5cca53601efaa7ef3b92d4b8d45ec2 | 73e3ead49cfcff43bc4fc584aca4964722472458 | /config/PocoDir.py | 63b34519861167cebf42b2d9d873d234e363931d | [] | no_license | Alek96/WebGamesCentre | b45c074fde56e80105c7de90a025e23c2a858fb6 | 8ab46ad34220f041a669b838ad4a0a8ebd34c502 | refs/heads/master | 2021-01-19T22:20:27.995799 | 2017-06-13T12:54:04 | 2017-06-13T12:54:04 | 84,977,102 | 0 | 0 | null | 2017-06-13T12:54:05 | 2017-03-14T17:18:19 | JavaScript | UTF-8 | Python | false | false | 194 | py | #!python
import SCons.Script
from SCons.Environment import Environment
# ---
Import('env')
#path to the main folder of Poco library
# ===== DEFINE HERE YOURS =====
env.SetDefault(POCOBASE = '') | [
"zamojski96@gmail.com"
] | zamojski96@gmail.com |
99d8f9e7167fb932a0f0fff598a509092cd8af5e | 0a4c3fe76b6d985c66707866f15e9c843ff16d67 | /campingStore/campingStore/settings.py | 20bf186abd7deed966becec0ce0ca4a0d0a851b1 | [] | no_license | st1X-git/campStore | c89a8b01d6521c8f05dc09d9c376c3a2fa2d9f3d | 1b5078169a74844bdc8fe429cb97f8e0787ef933 | refs/heads/master | 2020-09-14T14:57:28.742353 | 2019-11-21T11:52:19 | 2019-11-21T11:52:19 | 223,161,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,806 | py | """
Django settings for campingStore project.
Generated by 'django-admin startproject' using Django 2.2.6.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import ... | [
"56818271+st1X-git@users.noreply.github.com"
] | 56818271+st1X-git@users.noreply.github.com |
24f0f45bcfddeb282fa9c1db31ace87abff45d43 | e4fbb8940e145924ebb1f9b3412ff278c6c85968 | /checkout/migrations/0006_auto_20180829_1328.py | 2f8c5a98abb1e7e5c49c680566e1b996110e0327 | [] | no_license | steindevos/project-final-django | 72ecf8df58606e45b4251a949c9b7a572d263851 | 9b2f93b28284e10b654fc9cc07c49213b040921f | refs/heads/master | 2018-11-14T11:55:20.390707 | 2018-09-18T18:52:47 | 2018-09-18T18:52:47 | 145,727,075 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,834 | py | # Generated by Django 2.0.6 on 2018-08-29 13:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('checkout', '0005_auto_20180829_1251'),
]
operations = [
migrations.AddField(
model_name='order',
name='country',
... | [
"steindevos@gmail.com"
] | steindevos@gmail.com |
ef3b7f09d46b1e6cead502a1ae4aedde6d622a93 | fe127cd961fe54fd64a073ec71637b81426203bc | /movies_project/movies_catalogue/tests/test_tmdb.py | 9b0d31e519cf598e7c707702b1a14b072247c907 | [] | no_license | SupiKery321/movies_catalogue- | 3cdf5735ee35920fb3f78c6b12df34edf0744a1c | afc4242dc5a534f7fcddbb886340bb6c3eb714c7 | refs/heads/main | 2023-08-04T16:51:56.352136 | 2021-09-22T15:49:09 | 2021-09-22T15:49:09 | 402,608,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,792 | py | import tmdb_client, pytest
from unittest.mock import Mock
from app import app
def test_get_poster_url_uses_default_size():
# Przygotowanie danych
poster_api_path = "some-poster-path"
expected_default_size = 'w342'
# Wywołanie kodu, który testujemy
poster_url = tmdb_client.get_poster_url(poster_api_... | [
"michalsupel@gmail.com"
] | michalsupel@gmail.com |
4dcda6e3044084bdf2aa6af4f9ccad28c448e2bb | 2455062787d67535da8be051ac5e361a097cf66f | /Producers/BSUB/TrigProd_amumu_a5_dR5/trigger_amumu_producer_cfg_TrigProd_amumu_a5_dR5_691.py | bd6632802d1ac740f25ab863bcfb3124a43b8893 | [] | no_license | kmtos/BBA-RecoLevel | 6e153c08d5ef579a42800f6c11995ee55eb54846 | 367adaa745fbdb43e875e5ce837c613d288738ab | refs/heads/master | 2021-01-10T08:33:45.509687 | 2015-12-04T09:20:14 | 2015-12-04T09:20:14 | 43,355,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,360 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("PAT")
#process.load("BBA/Analyzer/bbaanalyzer_cfi")
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.load('Configuration.EventContent.EventContent_cff')
process.load("Configuration.Geometry.GeometryRecoDB_cff")
process.load("Configuration.St... | [
"kmtos@ucdavis.edu"
] | kmtos@ucdavis.edu |
b012a116ccae78045e315ad0408e7fb05a83d57e | 4ffba356ea96865a5ab222fec81aeb61f1a9c0e7 | /第一章-简介/polynomial_curve_fitting.py | 656bf3984b39b1607efb35ee7bb892f14a193931 | [
"Apache-2.0"
] | permissive | jmsking/PRML | 5183a78b61f5de2b6de901a33810a4a70117c169 | ece4f7a3825c8564cd5e622155598e7cac91e0de | refs/heads/master | 2022-12-10T09:27:48.612885 | 2020-09-04T00:16:11 | 2020-09-04T00:16:11 | 292,169,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,885 | py | import pandas as pd
import numpy as np
import random
import matplotlib.pyplot as plt
class Dataset:
"""
数据生成器
"""
def __init__(self, n_samples=1000):
self.n_samples = n_samples
def gen_data(self):
"""
产生数据
"""
X = np.linspace(0, 1, self.n_samples, endpoint=T... | [
"872814406@qq.com"
] | 872814406@qq.com |
1d7e28d9d69275f9811efa7b35176171ffcce9c0 | 9040b6bc90430a2d5536bc4d9235ce8c0399b48f | /DateTimeS.py | 428d4587b478bccbf58b50016a012fd39c29c611 | [] | no_license | 11AZ/DateTime-Protocol | b9ce9202b3a752abde9f067eae02e369400e7a2f | a31693354442e90de6bf4cbf70f7183f20c85e47 | refs/heads/master | 2023-02-06T22:11:30.552672 | 2020-12-19T03:40:28 | 2020-12-19T03:40:28 | 321,093,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,022 | py | # server.py
import socket
import time
import datetime
import tqdm
from time import sleep
import sys
from datetime import timedelta
import os
from _thread import *
# create a socket object
s = socket.socket()
#Word display function
def typewritter(msg):
for char in msg:
sys.stdout.write(char)
... | [
"hazwanhaz2010@gmail.com"
] | hazwanhaz2010@gmail.com |
5e61ea5f6d5a00f5d9175fa5ec29e6ba55c07af2 | b90cfa19cb6c9c8951138edb2a2deb54766ffdd7 | /tools/base/tests/test_utils.py | 78f83a5ae999dc800d271a18fea10ca9920fcbf9 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Open-source-sharing/envoy | df9086288449acd7feedfc327143bc681f16cbed | 4ecf3f7efed97529dc064223f3697a8d4d1101b9 | refs/heads/main | 2023-04-13T05:07:56.525111 | 2021-04-11T23:34:20 | 2021-04-11T23:34:20 | 357,055,188 | 1 | 0 | Apache-2.0 | 2021-04-12T04:18:24 | 2021-04-12T04:18:23 | null | UTF-8 | Python | false | false | 1,342 | py | import importlib
from tools.base import utils
# this is necessary to fix coverage as these libs are imported before pytest
# is invoked
importlib.reload(utils)
def test_util_coverage_with_data_file(patches):
patched = patches(
"ConfigParser",
"tempfile.TemporaryDirectory",
"os.path.join... | [
"noreply@github.com"
] | noreply@github.com |
508e86b5c3fa19bb45835c6f60eb13bfe3485abe | cd1a01b993e1c3506c8b6af62468c960015b346c | /example-nu.py | 45be4b44aa24f585ebbeff671a9fc23c6c3d22a7 | [] | no_license | robincooper/pyttr | 64d4f40de18aeaf120922969e466c2416205722b | 2bd8ac23aa8b843dbe55e69c12ed53e4fccc913d | refs/heads/master | 2022-03-22T18:40:17.169346 | 2021-11-06T15:55:20 | 2021-11-06T15:55:20 | 52,958,243 | 7 | 3 | null | 2022-03-07T12:24:09 | 2016-03-02T11:37:20 | Jupyter Notebook | UTF-8 | Python | false | false | 7,580 | py | from pprint import pprint
from nu import Type, BType, PType, DepType, Pred, MeetType_n, FunType, InhibitType_n, StringType_n, Ty, iota, gensym_n, nu, and_n, MeetType, or_n, JoinType, labels, Rec, RecType
from neurons import Network, Neuron, Synapse, ActivityPattern
from utils import show, example
example(1)
#Types in ... | [
"robinhcooper@gmail.com"
] | robinhcooper@gmail.com |
62f848cbf7a121a798f63d69e8e6cb8f0120a230 | c41067193161eb90211b7ab15ac9eaa40247fb56 | /cerebralcortex/kernel/DataStoreEngine/Data/minio_storage.py | 5db1a00d7d3dc00c955a5d82902448c024891d16 | [
"BSD-2-Clause"
] | permissive | nasirali1/CerebralCortex | 9b463b7ae224cdf1c1151dabae5faffcabedc215 | d89094c164aef851cd9a204977aac88a598b725c | refs/heads/master | 2021-01-12T03:04:23.701595 | 2017-08-09T19:25:04 | 2017-08-09T19:25:04 | 83,357,568 | 1 | 0 | null | 2017-02-27T21:14:19 | 2017-02-27T21:14:19 | null | UTF-8 | Python | false | false | 4,732 | py | # Copyright (c) 2017, MD2K Center of Excellence
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditio... | [
"twhnat@memphis.edu"
] | twhnat@memphis.edu |
cb4a7723b1e8972273412a4ab95a6007b0788da7 | effb3a8f72e384915fe5ee5c90e8476487634c56 | /pizza/settings.py | 614632c5e0361d2d8f6adf0204127b79a07dd274 | [] | no_license | NisaSource/online-order-pizza-restaurant | 2c923953e03011dd892bf27f150b407d802979cf | e156d6ab7e7f549a519e0f40d2523c3a3fdcfc28 | refs/heads/master | 2023-08-20T18:32:20.408887 | 2020-05-18T05:48:51 | 2020-05-18T05:48:51 | 264,839,797 | 0 | 0 | null | 2021-09-22T19:01:57 | 2020-05-18T05:47:46 | HTML | UTF-8 | Python | false | false | 3,590 | py | """
Django settings for pizza project.
Generated by 'django-admin startproject' using Django 2.0.
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
# Bui... | [
"khaerunnisa2201@gmail.com"
] | khaerunnisa2201@gmail.com |
ebe1bee759a0a7b4689a4bee84e6281362145257 | 6a54fadd36bfbf2faf5b0cf4a29f6fbbcf47a803 | /vagrant/webserver1.py | 0730855d7ac53e8c4018e2dba29073481b75c32d | [] | no_license | kalibrahim/fullstack-nanodegree-vm | 09f434f8c5a7ce6be01ff54e206c6c426809a8c6 | 7886e5d4799f8369ab3fd0662896d825a68065f0 | refs/heads/master | 2020-04-15T05:23:16.581770 | 2019-01-09T09:25:29 | 2019-01-09T09:25:29 | 164,419,524 | 0 | 0 | null | 2019-01-07T10:59:08 | 2019-01-07T10:59:08 | null | UTF-8 | Python | false | false | 3,792 | py | from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
import cgi
# import CRUD Operations from Lesson 1
from database_setup import Base, Restaurant, MenuItem
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
# Create session and connect to DB
engine = create_engine('sqlite:///restau... | [
"bowaleed500@gmail.com"
] | bowaleed500@gmail.com |
b8ad88e0d7f388f7976847724c47aeba2dc14e19 | 201ff51f12e80921c5ebff641114955490b43ed9 | /Lab4/lab3_06.py | 175601fdb68b4201085223255057101c5902584f | [] | no_license | AvinashBonthu/Python-lab-work | e27b10f6d128ccdc47f16606dab6dd323b4c3803 | d7cba38b0a5f3e04a5d3f4b6c8a9c23734566ffa | refs/heads/main | 2023-03-06T00:31:42.649123 | 2021-02-19T09:33:09 | 2021-02-19T09:33:09 | 340,320,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | list2=[]
i=0
while i<5:
a=input("Enter the items of list2 %d"%i)
list2.append(a)
i+=1
print "List2 is ",list2
| [
"noreply@github.com"
] | noreply@github.com |
108663704ef930b8ae22d2ab13c3c6ab61c0cef9 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_3/Sean223/verify.py | 9ca777f0f93c2d4c309547e0376387d1fabe7ab7 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 1,426 | py | IN_FILE = "large.txt"
with open(IN_FILE, 'r') as fileIn:
fileLines = fileIn.readlines()
it = iter(fileLines)
assert(next(it).strip() == 'Case #1:')
jamcoins_found = []
for i in range(1, 501):
message = "Jamcoin on line " + str(i)
line = next(it).strip().split()
if not len(line) == 10:... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
46563ed4f3dfb0eb83219818ebba197e860db4d7 | 185ffce6d9efdfa4ae78087671d51bb01e8cef4a | /advanced/twrapme.py | f2c59335aaa5425145c026a00b3f3ff8365864f5 | [] | no_license | gulullu/CorePython | 52c753b7fa60b1411316a12edd79ed0dd46578b3 | fa26a1fa4533aeb721d039b226de41e9e207cc34 | refs/heads/master | 2020-04-21T14:09:15.237124 | 2015-04-06T06:20:42 | 2015-04-06T06:20:42 | 33,206,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,148 | py | # !/usr/bin/python
# -*- coding: utf-8 -*-
# Filename : twrapme.py
from time import time, ctime
class TimeWrapMe(object):
"""docstring for TimeWrapMe"""
def __init__(self, obj):
self.__data = obj
self.__ctime = self.__mtime = \
self.__atime = time()
def get(self):
sel... | [
"gulullu@gmail.com"
] | gulullu@gmail.com |
0bc0c90132733dee274a4c250af2557a3807546b | 5574620c834f96d4baf50d6aa349242dae7c17af | /172.factorial-trailing-zeroes.py | 37c2400fe3fdb6a94b967b7880dcca016d4f563b | [] | no_license | Ming-H/leetcode | 52dceba5f9a605afbdaa65e286a37205873e21bb | 057cee4b830603ac12976ed7d5cea8d06a9b46a0 | refs/heads/main | 2023-09-02T21:30:48.796395 | 2023-09-01T01:59:48 | 2023-09-01T01:59:48 | 489,290,172 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | #
# @lc app=leetcode id=172 lang=python3
#
# [172] Factorial Trailing Zeroes
#
# @lc code=start
class Solution:
def trailingZeroes(self, n: int) -> int:
r = 0
while n > 0:
n //= 5
r += n
return r
# @lc code=end
| [
"1518246548@qq.com"
] | 1518246548@qq.com |
e57b4ea3e1a5882ecee6d86623974ff807c099b7 | 2bc29bb1fde0b939430214b0d187a44fdf64fbf5 | /for_characters.py | e3c2bc1f4d23273a0fc62382b2738245d9e0805d | [] | no_license | htakahashi0901/Neural-net-from-scratch | c9cc6f9a85b55133e21efdab312e16011dd92a5f | 895f381c5e0d8ca75074f72f6cea8e90618badf5 | refs/heads/master | 2021-05-10T07:59:51.268918 | 2018-02-10T06:33:48 | 2018-02-10T06:33:48 | 118,870,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,465 | py | import numpy as np
from PIL import Image
import matplotlib.pyplot as plt
import glob
import os
import time
import copy
%matplotlib inline
from IPython.core.debugger import Tracer
class Network(object):
def __init__(self,size):
#self.w=np.array([np.loadtxt(i) for i in glob.glob(r'./trained/w*.txt')])
... | [
"noreply@github.com"
] | noreply@github.com |
51a793d3ac2ece22221c44138ea7b505dff2c86d | 9268d642463d5298cbdccbd05371e06f731006b7 | /utils/translit.py | 0a0e4c07677bbaa17f944a590b4fff2330f5248d | [
"MIT"
] | permissive | hplusai/WebCrawler | 35ad9f40f777f4bc00260489b9eb1be9c4e10455 | 098a3633f6fb38a982c1410f40918b80bab24ab6 | refs/heads/master | 2020-03-09T18:12:45.300972 | 2018-04-13T13:35:10 | 2018-04-13T13:35:10 | 128,926,819 | 1 | 0 | null | null | null | null | WINDOWS-1251 | Python | false | false | 4,483 | py | #!/bin/env python
# -*- coding: cp1251 -*-
#$Id: lat2cyr.py,v 1.1 2007-09-22 09:33:33 sdobrev Exp $
def direct( map, x): return ''.join( map.get(a,a) for a in x )
def do321( map, x):
r = ''
while x:
try:
r += map[ x[:3] ]
x = x[3:]
continue
except KeyError: ... | [
"akamosko@gmail.com"
] | akamosko@gmail.com |
f41f33a2c0bda7b09a50978fc70d7234b50af0bb | 069248c2d4efddd45f1b41b9a2a1e321250fcf93 | /FractionbinartyToString.py | 95559d08a1ffa19bf475421e6e02d054a58c4ace | [] | no_license | dan-choe/Bit-Manipulation | e70d286ffe2185882b3b330d85f44da51e009013 | 5812066ce97794776f7e469ce6a4e2bdc1fdad2d | refs/heads/master | 2021-01-20T11:47:02.295458 | 2017-08-29T21:30:05 | 2017-08-29T21:30:05 | 101,686,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Aug 28 17:37:24 2017
@author: danna
"""
def binaryToString(target):
if target < 0 or target > 1:
return 'ERROR'
result = ['0', '.']
while target > 0:
r = target * 2.0
print("r", r)
if r >= 1:
result.append('1')
... | [
"dannachoe@gmail.com"
] | dannachoe@gmail.com |
a1468fcbc578236769845af93c77eb59c87e159d | 1ac3b12b51cc2570a9a33635720271e1466b30f6 | /task/NER/BiLSTM_CRF_zy/model.py | d25dbfbf156cd00a2b07190a70d94244882b681a | [] | no_license | luanjie24/BJUT-Internship2020 | 7f50cbf92c5ae4320b9b1e41184898677c6cbcad | d99395da24a8bac58c82ca0a4370113c8bf3fe2d | refs/heads/master | 2023-01-29T08:14:02.956109 | 2020-12-17T11:25:48 | 2020-12-17T11:25:48 | 285,585,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,810 | py |
import torch
import torch.nn as nn
import torch.optim as optim
from CRF_torch import CRF
class NERLSTM_CRF(nn.Module):
def __init__(self, embedding_dim, hidden_dim, dropout, word2id, tag2id):
super(NERLSTM_CRF, self).__init__()
self.embedding_dim = embedding_dim
self.hidden_dim = hidden... | [
"noreply@github.com"
] | noreply@github.com |
70563a89b952a6530efd712a3416f828bdc222d1 | de76ca70329f5bb8667ec2adce62c58f18218dee | /myvenv/Scripts/django-admin.py | c6e2258cd722e04bd360749c39fa679a95f5b0a9 | [] | no_license | dzhomartbekkyzy/my-first-blog | cb832d2843cb7ec55332f8006153c2ec012ee093 | 0f97307163c850432865baeb42d775e5f691cff9 | refs/heads/master | 2023-01-13T09:16:10.653165 | 2020-11-18T08:37:30 | 2020-11-18T08:37:30 | 310,763,315 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | #!c:\users\dikosh\desktop\python\djangogirls\myvenv\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"dilia.zhomartbekkyzy@mail.ru"
] | dilia.zhomartbekkyzy@mail.ru |
18d427de350269b3d542e5d0d0ad6260aa6e6793 | ed05e0ca9b38d495c6d88dc6b040c3f2ce24a850 | /src/webrtc/modules/audio_processing/test/py_quality_assessment/test_simulation.py | 0f64a6af9733b6f3ab369d4c8d7947e0db86aa89 | [] | no_license | fengweiyu/WebRTC_Without_RTP | b3b556d60437b310c568a2565b39f10a88587e24 | cb3dfb34cd4367f3ab87595aaaa9aee283ca16be | refs/heads/master | 2020-08-01T11:39:22.590913 | 2020-03-05T03:55:50 | 2020-03-05T03:55:50 | 210,985,230 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | # Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
#
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file in the root of the source
# tree. An additional intellectual property rights grant can be found
# in the file PATENTS. All contributing project au... | [
"984441750@qq.com"
] | 984441750@qq.com |
6eac8d3bdeea38a0755ec0da432efb778886e77c | 2db62b679a04d996ee0f9b2281ee0feaa751136e | /web/tornado/sqlalchemy/cmdb_base.py | 58b2b599a47812b95a566b46c7a5b09fae9d1e15 | [] | no_license | milespeng/python_code | 8eec5b2a29de03d5aad7dbdfae98ba96205d1e12 | 69384f2f08272e0259de8e9040864a5d661681a9 | refs/heads/master | 2020-04-06T07:09:00.218281 | 2016-08-28T06:37:59 | 2016-08-28T06:37:59 | 61,197,963 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,795 | py | #!/usr/bin/python
# _*_ encoding:utf-8_*_
__author__ = "Miles.Peng"
from sqlalchemy import Column,String,create_engine,Integer,DateTime
from sqlalchemy.orm import sessionmaker,relationship
from sqlalchemy.ext.declarative import declarative_base
Base=declarative_base()
conn_str="'mysql://root:aspect@172.18.188.147/as... | [
"pt_yc@163.com"
] | pt_yc@163.com |
32d8277f6ca3d50f6638f149e42a673f0981308a | 16cddc5df369f7944fe645a2c56dd13350e3c02a | /nn/framework.py | 663b1c6e638c5846bbdfcab1ec97ddaa083af613 | [] | no_license | BIT-KE/BERT-based-Chinese-RE- | 79ce5df49980c4b2d3a353550dcaa03063645075 | 919257450974965a46369afb52e4aa3f451e9198 | refs/heads/master | 2022-08-05T11:31:31.939244 | 2020-05-24T10:34:36 | 2020-05-24T10:34:36 | 266,514,956 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | import torch
import torch.autograd as autograd
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
from .encoder import BiLstmEncoder
from .classifier import AttClassifier
from torch.autograd import Variable
from torch.nn import functional, init
class MGLattice_model(nn.Module):
def... | [
"noreply@github.com"
] | noreply@github.com |
362fe0a4efb3d4c95d446a0b6fbafe1807516f21 | 5b81538654c8054fa7f94a958ddc717a146a3063 | /week4/1-Full-Blog/simple_blog/blog/migrations/0001_initial.py | 97108004f131f66b299fff247c3d18aca6f28c37 | [] | no_license | ruzhaa/Web-Development-with-Django | 746a266d00781d295640489f5d7187527453c684 | 7f13e03f4d8c1c26129603824fffd3a0c6a87310 | refs/heads/master | 2021-01-21T10:37:24.619949 | 2017-04-19T19:31:00 | 2017-04-19T19:31:00 | 83,459,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,483 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-25 07:29
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.s... | [
"ruzha_bobotanova@abv.bg"
] | ruzha_bobotanova@abv.bg |
1310ca612a18d36486b9f755bcbff9756da40ecc | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_34363.py | 4adad9b5db9a1bcae4005a3b8c7a2a480b3303be | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,839 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
4b2abddb3aced7ba95f10b635e7b4785bdea0c4f | 846be2b898e929963b15ff46d14c3247836e9920 | /venv/Scripts/pip-script.py | 51c70248d896303e9b505c6f5b4af205bd63ecc0 | [] | no_license | ajsmash7/Lab4_part1 | 2fa3cf6f7ca8804857a84af04e3ac9378e83ce63 | ec673190a995efef49fd5b82adb21807b574ae6a | refs/heads/master | 2020-05-03T12:44:21.627497 | 2019-03-31T02:42:13 | 2019-03-31T02:42:13 | 178,634,551 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | #!"C:\Users\Ashley Johnson\PycharmProjects\Lab4_part1\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', ... | [
"wt6268bu@go.minneapolis.edu"
] | wt6268bu@go.minneapolis.edu |
c30d008b2918bfa5283316eabf5fe2b6a9f523b6 | d857b65117378d9f35eb062bd1d2ddbb87f11709 | /shows_app/urls.py | 53313358ebf3b9d517d23b37c79a6065b06303d1 | [] | no_license | JesusGarcia86/shows_proj | e2bd646df88e8380a6bbebebc073cd8f59520be7 | 3e6ad462d603d78241b259a6ff713e1f08b6201e | refs/heads/main | 2023-03-21T22:07:34.029715 | 2021-03-15T16:27:41 | 2021-03-15T16:27:41 | 348,043,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index),
path('shows/', views.index),
path('new', views.new),
path('shows/create', views.create),
path('<int:show_id>/edit', views.edit),
path('shows/<int:show_id>/update', views.update),
path('<int:show_id>', vi... | [
"the_sampritas@hotmail.com"
] | the_sampritas@hotmail.com |
332a6d9bcc8114a3fcffb46b452697f41f952e04 | eee51854656ede694c121c7102cd2e737ea7e702 | /demo/api.py | 7746564cca4056932d685fcbb13988dcbb3db79d | [] | no_license | degerli/betahealth-wagtail-demo | cb99f26219fede384a44e3af5e597de40c1ab1e2 | 1cb16c2fdc877778e645bdb11ba69f6418900e26 | refs/heads/master | 2020-04-23T04:03:47.038341 | 2016-10-05T09:05:40 | 2016-10-05T09:05:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,187 | py | from django.core.urlresolvers import reverse
from rest_framework import serializers
from wagtail.api.v2.endpoints import PagesAPIEndpoint as WagtailPagesAPIEndpoint
from wagtail.api.v2.router import WagtailAPIRouter
from wagtail.wagtailimages.api.v2.endpoints import ImagesAPIEndpoint as WagtailImagesAPIEndpoint
from ... | [
"marcofucci@gmail.com"
] | marcofucci@gmail.com |
1e2197772f0c55778b157941875098446536ab26 | 2b0f3405708402a6ceb13f5ebb606218d8670d38 | /GEETO/MPI_Parallelism_IslandModel/3Islands_4networksPerIsland/genetic.py | 28ad84c0906159d18e98efc3a9e30c6938ffe58f | [] | no_license | bhatnags/NeuralNetworkOptimization_EETO | e78b0917696011705df5658a3a4075c65551ed2d | 1302bd52093eed5f6067000fc0450b9eeea1771c | refs/heads/master | 2020-04-05T07:40:49.947665 | 2018-11-13T00:43:47 | 2018-11-13T00:43:47 | 156,684,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,385 | py | import random
import network
# import parallel
'''
Contains functions of Genetic ALgorithm:
Natural Selection
Crossover
Mutation
Breeding = Natural Selection + Crossover + Mutation
Accuracy Measurement
'''
class geneticAlgorithm(network.Network):
'''
Initialize the class inheriting the properties of the "net... | [
"bhatnags@tcd.ie"
] | bhatnags@tcd.ie |
23538564322fa0c6ff8a1fdc0d0240d3d25f5ab1 | ede972c686fe9862c2af1d432a6be6b5ca71aafa | /uarmcore/raster2laser/png.py | f3e6f182eed2fe2643d1c4c3c4e8ef3dc4e8da22 | [] | no_license | zhongyi12/uu | ca657c5938052d5322629859718529f3567c6dd7 | abdb9acaf0ca485bdb4a995e8fc871ccf2e3125b | refs/heads/master | 2020-05-18T06:15:44.862510 | 2019-04-30T09:19:35 | 2019-04-30T09:19:35 | 184,227,986 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104,296 | py | #!/usr/bin/env python
# png.py - PNG encoder/decoder in pure Python
#
# Copyright (C) 2006 Johann C. Rocholl <johann@browsershots.org>
# Portions Copyright (C) 2009 David Jones <drj@pobox.com>
# And probably portions Copyright (C) 2006 Nicko van Someren <nicko@nicko.org>
#
# Original concept by Johann C. Rocholl.
#
# ... | [
"727887236@qq.com"
] | 727887236@qq.com |
345d63b5220b39262e155b8ca91c661c6f938e0b | 3c39736dfbfd066be576075aec23277706683e63 | /Exception Handling/program_1.py | da46e9bf0a505fd77138de4cfcfce1f72858696f | [] | no_license | 1996hitesh/Pyhton-Problems | 208f4ef3b55c11be57eac74119d891826913089f | cb67426fa2a0508abc480cff438d605c561a0f48 | refs/heads/master | 2022-11-24T17:47:31.753704 | 2020-07-31T09:58:57 | 2020-07-31T09:58:57 | 278,255,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | a = int(input("Enter First number:"))
b = int(input("Enter Second number:"))
try:
res = a//b
print("result is: ",res)
except ZeroDivisionError:
print("Cannot divide by zero")
| [
"noreply@github.com"
] | noreply@github.com |
cc5779a561e2fa538f5faf22ab8cc7b6783a3cb2 | 9411177ad031640b46361b66c5e0636f2d25e438 | /venv/Scripts/easy_install-script.py | 57db3530e17e0accdb31af3fc0b6be42a0aaac76 | [] | no_license | vadimsmilgin/salePlace | bdb880d22f25a59ac25b92378d6c5af4f42a1cd2 | 763a8aa7b1be75674431bf88347116d372b7ffac | refs/heads/master | 2020-04-25T06:16:19.479332 | 2019-03-12T20:32:40 | 2019-03-12T20:32:40 | 172,574,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | #!D:\django_courses\salePlace\salePlace\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.e... | [
"vadimsmilgin64@gmail.com"
] | vadimsmilgin64@gmail.com |
c4c54f309f31cc65060d382bd56bad97f492b112 | cefd6c17774b5c94240d57adccef57d9bba4a2e9 | /WebKit/Tools/Scripts/webkitpy/common/watchlist/changedlinepattern.py | 61fac9a7694e273919f37463b7d80639f9f0baa3 | [
"BSL-1.0"
] | permissive | adzhou/oragle | 9c054c25b24ff0a65cb9639bafd02aac2bcdce8b | 5442d418b87d0da161429ffa5cb83777e9b38e4d | refs/heads/master | 2022-11-01T05:04:59.368831 | 2014-03-12T15:50:08 | 2014-03-12T15:50:08 | 17,238,063 | 0 | 1 | BSL-1.0 | 2022-10-18T04:23:53 | 2014-02-27T05:39:44 | C++ | UTF-8 | Python | false | false | 1,964 | py | # Copyright (C) 2011 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the ... | [
"adzhou@hp.com"
] | adzhou@hp.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.