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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d0aaa0d8ed397ab5bf11368a22a76b09dbe9f18a | bfa4ae05ca03c3128f3e6671e03c05e54cf5f2b1 | /screw/app/good/views.py | d9c4365b85d365a1c1afff03764a9ad9391be811 | [] | no_license | onionisi/screw | 9f5251be5be5064a8e8d9d156f2182ee843ffaa2 | 278a9241914caae96265a7f08a69a4361ac2ef30 | refs/heads/master | 2020-04-09T16:06:52.324435 | 2015-05-18T05:41:20 | 2015-05-18T05:41:20 | 32,842,298 | 0 | 3 | null | 2015-05-18T05:41:20 | 2015-03-25T04:18:52 | JavaScript | UTF-8 | Python | false | false | 2,540 | py | #!/usr/bin/env python
# coding: utf-8
from django.views.generic import View
from django.template.response import TemplateResponse
from django.core.urlresolvers import reverse
from django.http import HttpResponseRedirect
from screw.settings import mongo_client, STATIC_URL, IMAGE_PATH
from bson import ObjectId
from PIL ... | [
"iamyangchong@gmail.com"
] | iamyangchong@gmail.com |
c8da987badebf47c865daec5ac372fc4052c7435 | 6d21c9158ae5b61856c1bd07ddf61cd6b5af6073 | /counting.py | 028df6d73ce0a5350cc99b3b6cd38fea9750b3ba | [] | no_license | Irillit/sorts | 7638161b72dc8411733257e1fdffca59713fd4bf | f1b1c0570d02e7f3b1fe0cc14578ab90aab2697d | refs/heads/master | 2022-11-10T13:29:29.368415 | 2020-06-24T21:16:23 | 2020-06-24T21:16:23 | 257,994,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | def counting_sort(inp, out, k):
count = [0] * k
for j in range(0, len(inp)):
count[inp[j]] += 1
for i in range(0, k):
count[i] += count[i - 1]
for j in range(len(inp)):
out[count[inp[j]] - 2] = inp[j]
count[inp[j]] -= 1
if __name__ == "__main__":
A = [0, 6, 7, 1, 5,... | [
"silvansee@gmail.com"
] | silvansee@gmail.com |
a095c95865d4a7a72fdc5df8a4be86f1de543dbf | ebcbc4035358465e3bdac52072227b0bfb0c4586 | /solution/classes/lidar_data.py | 056fbc82982d53201108c766be0e48cae31ffe8b | [] | no_license | slin63/ABE498LidarGps | f9e0b05265583115d39ee95cb5c9b951a81b3bac | e84103616ad2e6d22e92ebe3de3adc04fe953f8a | refs/heads/master | 2021-07-24T04:00:48.427522 | 2017-10-31T17:47:31 | 2017-10-31T17:47:31 | 109,032,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,507 | py | from math import sin, cos, radians
class LidarData(object):
def __init__(self, lidar_str):
self.lidar_l = self._parse_lidar_str(lidar_str)
self.time = self.lidar_l[0]
self.distance_map = self._parse_lidar_dist(self.lidar_l[1:])
self.range_coordinate_x, self.range_coordinate_y = sel... | [
"slin63@illinois.edu"
] | slin63@illinois.edu |
7b4e80faebf75ae836d86a2d42e66d4878d427b4 | abf9e29b0ffa6751af1af52e367c145b62710028 | /Assignment/Assignment21 06-10/Assignment21 06-10-29.py | a62e01c314441840061564145f0bce5462caac78 | [] | no_license | PooraniR4/PythonProjects | 736f8876f987b873dc2ae60cdee0d57b4bdcc295 | eb9f0be31d5a2b99077298b6a423ebf29d6f6835 | refs/heads/master | 2023-01-02T13:27:28.894877 | 2020-10-08T14:41:08 | 2020-10-08T14:41:08 | 293,498,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | from flask import Flask,render_template
app=Flask(__name__) #create
@app.route('/')
def msg():
return render_template("Assignment21.html")
if __name__ == "__main__":
app.run(debug="true",port=5098)
| [
"noreply@github.com"
] | noreply@github.com |
bd2567eb7e348826d18e2bd1cca6275f0f0602e8 | 9cd180fc7594eb018c41f0bf0b54548741fd33ba | /sdk/python/pulumi_azure_nextgen/network/v20180201/security_rule.py | fa3d42ca6372ba696deef9c4135a4eef42ff5c3b | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | MisinformedDNA/pulumi-azure-nextgen | c71971359450d03f13a53645171f621e200fe82d | f0022686b655c2b0744a9f47915aadaa183eed3b | refs/heads/master | 2022-12-17T22:27:37.916546 | 2020-09-28T16:03:59 | 2020-09-28T16:03:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,117 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
48c3f72ee6abaa8cbb830bcb382ccfefdb237956 | c36fc8f9bbc3e5891474bbbf17de09711cc9d0af | /alvi/client/scenes/merge_sort.py | 38997dcfec013867d20041a4f1f348d5d766e843 | [
"MIT"
] | permissive | alviproject/alvi | f527043c1ecaf4557188c312db7e8a8065ec054d | ec77919a546c11c46b178a21236792f8b0d95cbd | refs/heads/master | 2021-01-19T01:45:51.157037 | 2016-06-17T19:44:09 | 2016-06-17T19:44:09 | 13,392,604 | 10 | 5 | null | 2014-03-02T14:05:54 | 2013-10-07T18:54:09 | JavaScript | UTF-8 | Python | false | false | 1,116 | py | from alvi.client.scenes.sort import Sort
class MergeSort(Sort):
def merge(self, array, left, mid, right):
temp = []
for i in range(left, right):
temp.append(array[i])
i = 0
j = right - mid
k = 0
while k < len(temp):
if i >= mid - left:
... | [
"piotr@lewalski.pl"
] | piotr@lewalski.pl |
6d4a0d5bfb968f00bce38875c0152a6eb5d44c28 | f0af5e73a146ada7c6df3d12a5aa980628ffb4f7 | /webspider/tutorial/tutorial/settings.py | 2917d92490a6ce84544ef0a4fe7f17a9828c45b5 | [] | no_license | hehao9/pydemo | be95fb23266230fbb39ecb96cff8f2c770bd3108 | 74b2732a42d1cdd51e4ac67a98f10510ab929c1b | refs/heads/master | 2022-03-24T09:49:05.905570 | 2019-12-06T06:12:46 | 2019-12-06T06:12:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,169 | py | # -*- coding: utf-8 -*-
# Scrapy settings for tutorial project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest/topi... | [
"347428365@qq.com"
] | 347428365@qq.com |
737114cb64165dc87cf9b53e2831e22cd57cb982 | 56be3553d375dbdc3087e1fcbeb1a27f3e8aa7ce | /config/settings.py | 06368ef814842dad1810f1bd4f6fc0d2da69cfa5 | [] | no_license | MustafaDar/roughgit | a1135e8174c7c2b6c20f46dc0811e7d8ffe29276 | 8d0d2eece9bfc532fa52a9b9a47ae9b7582634b8 | refs/heads/main | 2023-08-15T06:42:30.446176 | 2021-09-29T17:56:31 | 2021-09-29T17:56:31 | 352,131,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | from ..app import app
from flask_sqlalchemy import SQLAlchemy
# configuration
# NEVER HARDCODE YOUR CONFIGURATION IN YOUR CODE
# INSTEAD CREATE A .env FILE AND STORE IN IT
if app:
# This is secret key for use in project
app.config['SECRET_KEY'] = "thisisyoursecretkey"
# Database configration with postgres... | [
"mustafadar33@gmail.com"
] | mustafadar33@gmail.com |
f906da4a8d2629f9034f0f938bb6e33a4fb1b6f4 | c50b7027134e634800ec5ae6f42641299ea2a51b | /system-size-dependence/common.py | d84ad6f2ede4fb139cd896d5ed14f5e917fb71ed | [] | no_license | cmelab/notebooks-for-2020-epoxy-paper | 8a967018b615ffe251e1d19ee081ab28bf4bc9f6 | 6dc44e5da602eb3e96cc4077006b4d63ab1579ba | refs/heads/master | 2022-12-29T08:15:09.430631 | 2020-09-30T19:05:46 | 2020-09-30T19:05:46 | 300,028,000 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,346 | py | ## import os
import math
import gsd
import gsd.fl
import gsd.hoomd
from scipy.signal import argrelextrema as argex
from cme_utils.analyze import autocorr
import numpy as np
import os
def get_all_maximas(lx,q,intensities):
half_box_length = lx*0.6
q_half_length = 2*math.pi/(half_box_length)
peaks_q = []
... | [
"mikehenry@boisestate.edu"
] | mikehenry@boisestate.edu |
de469789154588023215e0a3a02a630ce008e14b | 22029865c571f7f5ba18de77f8eea6b3e77b3bbb | /phiface/context.py | b995768e6a32eadfac7ff45dc5d059a29a2a5afd | [
"BSD-2-Clause"
] | permissive | mikejs/phiface | cfc100421afa4bef9c4afa6eb4ac8f7ae8d74163 | 2a2a5f8e1e555784cb2f2a27cecdf9c25a1c6044 | refs/heads/master | 2021-01-18T10:31:48.989712 | 2010-04-21T04:13:45 | 2010-04-21T04:13:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,456 | py | import cairo
from shapely.geometry import *
PDFOutput = True
# flatten from:
# http://rightfootin.blogspot.com/2006/09/more-on-python-flatten.html
def flatten(l, ltypes=(list, tuple)):
ltype = type(l)
l = list(l)
i = 0
while i < len(l):
while isinstance(l[i], ltypes):
if not l[i]:
... | [
"hortont424@gmail.com"
] | hortont424@gmail.com |
54f7b6223c9d61af4268db9f165ddf1d125b2a13 | 2283f9ae30af0a4c2bb5bd167e174e067c048dff | /SolutionsPY/UniquePaths.py | 524a42c8a69cdfb74d47ac474e67d508f024f361 | [] | no_license | JiangFengJason/LeetCodePractice | 072b3e4fa4b93eaedf5ef886a11f1f694ff5df0a | d5db9d2a7318c5c3cc73bb058956686a56119270 | refs/heads/master | 2020-04-24T03:51:31.750983 | 2020-03-19T09:11:58 | 2020-03-19T09:11:58 | 171,683,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | class Unique:
def uniquePaths(self, m, n):
meth=[1]*n
m-=1
while m:
for i in range(len(meth)-1):
meth[i+1]+=meth[i]
m-=1
return meth[n-1] | [
"15828589290@163.com"
] | 15828589290@163.com |
b8155b757143c2ca6e8f2e3880b38c568063a24d | 2324e287543c5d08114ded22b2d9d9e23b16498d | /event_scheduler.py | 1ba6fdb5ccd1b320426a4f8f2b33b22a2b2edbca | [
"MIT"
] | permissive | file-campuran/Smart-AI-Attendance-System-With-AntiSpoofing | 6a4978be848901543a3b7e799a6c5d194a496056 | db51e920c2f13666af2bc1fb296cde8d4ba0bb56 | refs/heads/main | 2023-06-17T15:25:44.604359 | 2021-06-23T09:49:01 | 2021-06-23T09:49:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,788 | py | from apscheduler.schedulers.background import BackgroundScheduler
import pymysql
from datetime import datetime
import smtplib
from mark_attendance import Mark_Attendance
from email.message import EmailMessage
def getall_staffs():
conn = pymysql.connect(host = "localhost", user = "root", password = "", data... | [
"noreply@github.com"
] | noreply@github.com |
74abd35dc7be54c8af5452993644678fe289aae8 | 8fc9520d7224e6179f63f19e668b4b3b6a7d76c5 | /apps/catalogue/migrations/0006_auto__add_field_product_is_discountable.py | 35581eb19b16340bf4e806e466cfd03e6678e23f | [] | no_license | quantm/custom_django_oscar | 352ef2fd95e7da932958d4aa80d77dff5b6c1e70 | 9205807030ab360884283810e94177440c228a23 | refs/heads/master | 2016-08-09T12:23:39.413677 | 2016-02-08T22:16:53 | 2016-02-08T22:16:53 | 51,326,524 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,063 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Product.is_discountable'
db.add_column('catalogue_product', 'is_discountable', ... | [
"012kinglight@gmail.com"
] | 012kinglight@gmail.com |
3faa6bb742b6bad27bccf8ee4f89f713ebc768c9 | ebfec688724324196e33f653f66adbddd8361fc3 | /gameworld.py | 6be60543297d81bac5289a619357b99e5b626337 | [] | no_license | yoworg/code | 026b288e9c975bfd723885bc38f1014603758ce9 | c41b44c74dbc5c77e0883ca3b839c695b4af6b79 | refs/heads/master | 2020-07-22T01:38:20.281519 | 2019-09-07T22:42:53 | 2019-09-07T22:42:53 | 207,033,950 | 0 | 0 | null | 2019-09-07T22:46:10 | 2019-09-07T22:46:10 | null | UTF-8 | Python | false | false | 1,471 | py | # coding=utf-8
import random
import os
import collections
GRIDSIZE = 10
RANDOMNESS = .9
def draw_grid(cat, mouse):
"""Draws a grid with a cat and a mouse in it"""
# Clear terminal and set character color to green
os.system('clear')
print('\033[92m')
print('╔' + '══' * GRIDSIZE + '═╗') # Top ... | [
"noreply@github.com"
] | noreply@github.com |
21d3cc3179c202fc10c7e22dbee869e30e00fe1d | d81e23cee05045644f39ae01d5455a521aa8a353 | /lsc_ws/build/rosserial/rosserial_msgs/catkin_generated/pkg.develspace.context.pc.py | 4244af5993649b1b1fcfa516c6ce1f509793557e | [] | no_license | LeeShiChao-Robot/Ros_Navigation_Car | 0f504f84d4d02e3b844663ccc37274ce836ae30f | c63c7ed200bf6d6d572ad95daa047939aa95075c | refs/heads/master | 2020-06-08T23:19:40.989651 | 2019-06-23T16:50:05 | 2019-06-23T16:50:05 | 193,325,110 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/tong/lsc_ws/devel/include".split(';') if "/home/tong/lsc_ws/devel/include" != "" else []
PROJECT_CATKIN_DEPENDS = "message_runtime".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split('... | [
"1609532696@qq.com"
] | 1609532696@qq.com |
1f2e6da575054c5f9539d0a9dfc2ceecc2f7f8ae | bfe6c95fa8a2aae3c3998bd59555583fed72900a | /findMaxValueOfEquation.py | 44e49a562e323596044cf7ecbec22a3e97ebfb8e | [] | no_license | zzz136454872/leetcode | f9534016388a1ba010599f4771c08a55748694b2 | b5ea6c21bff317884bdb3d7e873aa159b8c30215 | refs/heads/master | 2023-09-01T17:26:57.624117 | 2023-08-29T03:18:56 | 2023-08-29T03:18:56 | 240,464,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 933 | py | from typing import List
class Solution:
def findMaxValueOfEquation(self, points: List[List[int]], k: int) -> int:
stack = []
j = 0
out = -12345678901234
for i in range(len(points) - 1):
while j < len(points) and points[j][0] - points[i][0] <= k:
tmp = p... | [
"zzz136454872@163.com"
] | zzz136454872@163.com |
311eac1a6c280507906e8cf7a87844607ff9fddf | 04c7295ce65a623dc62454aa46ae4ae4ce51ca36 | /Lecture/Lecture_3/three_special_perfect_squares_v1_v3.6.py | 8f5b2aa24f0c1e10d1bad0df764379d50125baab | [] | no_license | hty-unsw/COMP9021-Python | 38373378162a314a82bf14453d026e641963e1b9 | 97be6dfa730247b59e608ec6d464ac16b4cf1968 | refs/heads/master | 2020-07-03T00:51:23.540099 | 2018-10-30T14:23:15 | 2018-10-30T14:23:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,398 | py | # Describes all sets of positive integers {x, y, z} such that
# x, y and z have no occurrence of 0,
# every nonzero digit occurs exactly once in one of x, y or z,
# and x, y and z are perfect squares.
#
# Written by Eric Martin for COMP9021
from math import sqrt
def digits_if_ok(number, digits_seen_so_far):
... | [
"grey1991ss@gmail.com"
] | grey1991ss@gmail.com |
0b6ef9559217faf41dd04bae0fdc60af47b0b6cc | bd6bd47c957a29cf7d51550756264a6c4121b018 | /颜色圈.py | 1b024b30e1984f6476b53ca69af5d4d9cf4b0c26 | [] | no_license | Teddy2007/myturtle | eee52a7b95da7cb75f79e7030f415bb71721b660 | 8f60b7202469a0bc21f9c9ff5373497aa6f32724 | refs/heads/master | 2020-04-24T17:58:09.376249 | 2019-03-02T03:57:27 | 2019-03-02T03:57:27 | 172,165,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | import turtle
import random
turtle.colormode(255)
t=turtle.Pen()
for i in range(100):
r=random.randint(0,255)
b=random.randint(0,255)
g=random.randint(0,255)
x1=random.randint(-300,300)
x2=random.randint(-300,300)
banjing=random.randint(10,100)
t.pencolor(r,b,g)
t.up()
t.setpos(x1,x2... | [
"47908008+Teddy2007@users.noreply.github.com"
] | 47908008+Teddy2007@users.noreply.github.com |
86106338bded9ea79b22a0ead788c9f19d612858 | d227fb26e33128afe868bef60e3042f7c6576643 | /editor/Welder/src/Core/Database/Dialogs/ChooseGraphic_Dialog.py | fe49fe21d0ebcf6b5fedbd48ed36524feb53e61d | [] | no_license | boisei0/arcreator | 1e57b9cc61d5b38bfd0d62237592cfd9f371eca9 | 555739cafdeeed19d3c25c4948416a6ecb7697d5 | refs/heads/master | 2020-12-02T05:02:36.242572 | 2014-08-05T19:25:41 | 2014-08-05T19:25:41 | 22,642,617 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,223 | py | import os
import wx
import PIL
from Boot import WelderImport
Kernel = WelderImport('Kernel')
Core = WelderImport('Core')
Templates = Core.Database.Welder_Templates
RTPFunctions = Core.Cache.RTPFunctions
PILCache = Core.Cache.PILCache
class ChooseGraphic_Dialog( Templates.ChooseGraphic_Dialog ):
def __init__( self... | [
"boisei0@hubsec.eu"
] | boisei0@hubsec.eu |
f32ff85adae7f81188901650195548fa904e30c6 | 351cc35331d10446d5e3dd325afad38629e2ddae | /src/tor_request.py | 1552dbca0eb7ff4d312d642c663cdaa37ce75056 | [] | no_license | ronmoran/WebCrawler | 8a8b920d293cbf0f16f51ee2601a97b97a72b7cf | 10c9f873249da287a2cfc3761750f442d6fb5a1a | refs/heads/master | 2020-03-25T08:57:53.807441 | 2018-08-06T21:24:28 | 2018-08-06T21:45:28 | 143,640,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,844 | py | import requests
import os
from stem import SocketError
from stem.control import Controller
from stem.process import launch_tor_with_config
TOR_COMMAND = os.environ.get("TOR_CMD", "/usr/sbin/tor")
class TorRequest(object):
def __init__(self,
proxy_port=9050,
ctrl_port=9051,
... | [
"nomail@nomail.com"
] | nomail@nomail.com |
63f56335fcc50eeba0e841feab988a19d8d167ab | ade789d442fdcbbddc3ec06fb7a0105780abae5c | /Kumtools.py | 7eccd03fe41f271ca715967e4a66d01fa9d84200 | [] | no_license | BADRU-Syaputra/kumpulantools | 4b9214661d1f2558e1dbfe9ad814e93ce54f1553 | a63ec4903bb4903a55bd5f250eecf17e53b4b46b | refs/heads/master | 2020-06-10T04:11:19.317250 | 2019-06-24T21:01:45 | 2019-06-24T21:01:45 | 193,578,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,020 | py | # _*_ coding: UTF-8 _*_
import os
import sys
import time
import json
import requests
import mechanize
import subprocess
bi='\033[34;1m' #biru
i='\033[32;1m' #ijo
pur='\033[35;1m' #purple
cy='\033[36;1m' #cyan
me='\033[31;1m' #merah
pu='\033[37;1m' #putih
ku='\033[33;1m' #kuning
def ketik(s):
for c in... | [
"noreply@github.com"
] | noreply@github.com |
83e05501596b6ad7760c800b0669199bd4e5f0d3 | c81b5cc4a09b0fe82703775a2edba184218f7139 | /attorch/monitor.py | 1b306b65124069118c4a1b551de356ed03fba0af | [
"MIT"
] | permissive | kklurz/attorch | 9460ee50db2757c88ecd77349b73365e48fcf4d7 | 50394043af0da6c1a4cf42c068ff38372d877178 | refs/heads/master | 2020-04-28T11:04:32.026186 | 2018-07-10T02:25:08 | 2018-07-10T02:25:08 | 175,223,438 | 0 | 0 | MIT | 2019-03-12T14:02:11 | 2019-03-12T14:02:10 | null | UTF-8 | Python | false | false | 1,629 | py | from collections import defaultdict
import gpustat
import threading
import numpy as np
import subprocess
#TODO: This is buggy. gpustat fails with "Command 'ps -o pid,user:16,comm -p 26714' returned non-zero exit status 1"
# when the memory increases on the GPU
def memusage(stats, device=0, interval=0.1, stop_event = ... | [
"sinz@bcm.edu"
] | sinz@bcm.edu |
4e6f4e4d075b1b9f280d505ef800e923d5f856f5 | 5728bdf77efe0aa5dcc186214c040e5ad0a1e4fd | /ZerodhaConsoleEmulator.py | 0432c6f43ce77ef542093f7b521dd43ce00a0721 | [] | no_license | prabhatkataria/zerodha-report-generator | b65d931996ae4f278b0397526ab4e4891b4d86d0 | ba0933b8dbef7e5559abc0a229d38868ea8e28ee | refs/heads/master | 2023-02-01T07:34:46.007421 | 2020-12-17T07:53:35 | 2020-12-17T07:53:35 | 303,443,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,908 | py | from selenium import webdriver
from time import sleep
from datetime import date
import calendar
from selenium.webdriver.common.keys import Keys
import os
from utils import SEGMENTS, getOutputPath, isDirectoryExists, createDirectory
from pdf_converter import createPdf
class ZerodhaConsoleEmulator(object):
def __i... | [
"prabhatkataria@users.noreply.github.com"
] | prabhatkataria@users.noreply.github.com |
30438dc0702d223a8783b36703a40d3bb34d97f1 | 12d256887822d5011778fd5c0cdd37180c783728 | /predictor/migrations/0003_auto_20191202_1416.py | 032c42df49e52ad5a6f4a7d35b6f1cdbcad79c9e | [] | no_license | thefisk/pigskinpredictor | d269dc2917fc3c91efaa102266253fbf10a5677a | 43fac43be6e1315ed1333b4bfd341cc22f4df085 | refs/heads/master | 2023-08-09T01:25:07.882115 | 2023-08-02T19:44:52 | 2023-08-02T19:44:52 | 176,282,727 | 2 | 0 | null | 2023-08-17T02:24:56 | 2019-03-18T12:41:15 | Python | UTF-8 | Python | false | false | 1,679 | py | # Generated by Django 2.2.7 on 2019-12-02 14:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('predictor', '0002_auto_20191112_1653'),
]
operations = [
migrations.AlterModelOptions(
name='team',
options={'orderi... | [
"noreply@github.com"
] | noreply@github.com |
1680e39fc0b2bcc17b72b641d316bb60d5100f69 | f5d83342d2e0fc3b6abaafc7c7cd9a14bc073edd | /2-variables_y_tipos/Exemplos/3-mutabilidad/main.py | bc74dc447eeb7efb92cc05c930364baee174ef7f | [] | no_license | David8Zorrilla/TP-2018-1 | 338adefd046fb88df59f748f1fcdf2c00da919f2 | 0779c2f79d17d4b519dd1bc46f4ccf55eac4a985 | refs/heads/master | 2021-08-11T21:06:22.675970 | 2017-11-14T05:01:53 | 2017-11-14T05:01:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | numbers = [2, 4, 5, 1, 3]
sorted_numbers = list(reversed(numbers))
print('Numbers', numbers)
print('Sorted_numbers', sorted_numbers)
print('Numbers == Sorted_numbers', sorted_numbers == numbers)
print('Numbers is Sorted_numbers', sorted_numbers is numbers)
print('---' * 5)
numbers.reverse()
print('Numbers', numbers)
... | [
"red2000ace@gmail.com"
] | red2000ace@gmail.com |
abd42119279754cb88da8fd45f791a047e21a55f | 79651bb7ed9272c8c9026c27fff9ffd2fff07ccf | /task3_login.py | a848368f1d0f6f313b3153f881a3088f4d999838 | [] | no_license | 0zyr0/selenium_training | d8e0b4811f6a0708acd7586ac5275f3a9d96efee | dc9c879e346bd18d3595617f42c32e25889cb3dd | refs/heads/master | 2020-06-14T10:52:11.492923 | 2019-08-08T05:13:34 | 2019-08-08T05:13:34 | 194,986,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | import pytest
from selenium import webdriver
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
@pytest.fixture
def driver(request):
# создание драйвера. Инициализация браузера
wd = webdriver.Chrome()
request.addfinalizer(wd.quit)
... | [
"zms@innovacia.ru"
] | zms@innovacia.ru |
407e681e3dce3930db7f20344abab934a556bb3b | 8922d528ae81e734a548b2d79e7043a944501ba3 | /p4/urls.py | 8f895688dd8a4022ad7e404f2ff9941cea9226d6 | [] | no_license | manjukokane88/p4 | 66fc7f4e1267424841ff6a13ec043fe4e71f7e60 | 8811d4c92151c41b2c12698d6a395da7dac25eae | refs/heads/master | 2022-11-19T18:18:55.378584 | 2020-07-23T06:04:52 | 2020-07-23T06:04:52 | 281,136,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | """p4 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based view... | [
"manjukokane8888@gmail.com"
] | manjukokane8888@gmail.com |
6b3db4d3e1e9dbbf5e6dd3b2144c7ac99598ab93 | d1df6e4354eca04f5c49461ea3c62d4097251e99 | /mazespiel.py | 8e85a37a66d5fefd6fffb4397653e3ce0317a03d | [] | no_license | Malkogiannidou/MazeGame_MazeSolver_MazeGenerator | 7fe65cf1e6742e389265b2e6c9d09987ba7f9763 | 6ac76bcbf01b19ef6d55b28d8c8612d64b064227 | refs/heads/master | 2023-06-06T03:53:26.429712 | 2021-06-29T01:28:53 | 2021-06-29T01:28:53 | 381,159,917 | 0 | 0 | null | 2021-06-28T22:48:08 | 2021-06-28T21:00:15 | Python | UTF-8 | Python | false | false | 36,433 | py | # coding=utf-8
# Frankfurf University of Applied Sciences - Betriebssystem und Rechnernetze-Werkstück A7, Prof.Dr.Baun
# Authoren: Stella Malkogiannidou, Amaal Mohamed, Samira Hersi
# Datum: 28.06.21
import argparse
import copy
import pygame
import re
import sys
import time
from typing import *
from algo import MazeG... | [
"s.malkogiannidou@affinis.de"
] | s.malkogiannidou@affinis.de |
32012023ac8f676c03a01351f7170e71b963ce65 | 2a115efb6bcd46a5b4175a3fd6dda3ee741bfd4e | /source/conf.py | a4771d21a28e4ad8c63a2aca3a565dab29a17196 | [] | no_license | JUNGJAEGOO/170906 | fc26bb3c64135db56e305cc46193ca3bce11c929 | 979c956d9ed615452b4f2df3365b7f39b8787c8c | refs/heads/master | 2021-01-23T09:10:49.279389 | 2017-09-06T05:04:38 | 2017-09-06T05:04:38 | 102,564,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,049 | py | # -*- coding: utf-8 -*-
#
# test documentation build configuration file, created by
# sphinx-quickstart on Wed Sep 06 14:03:51 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All ... | [
"worn1215@naver.com"
] | worn1215@naver.com |
ed9adbd8123bcd9a293c43bccdf44b214ebf8cee | d6c4749be999efce411b1a00fceb83bb797e5b44 | /experiments/experiments_with_api/check_status_recommender_system.py | 5f4f4fc301c666f995a60e4c7adeb054cd40c59b | [] | no_license | nov-stacy/Recommender-System-Library | 0e1de6588a9e507d604af7caffbba8e0695c17e6 | 2b6bc07de4356e9aadd764e57dcd78504c4d264c | refs/heads/main | 2023-05-25T07:54:00.229256 | 2021-06-04T11:59:13 | 2021-06-04T11:59:13 | 328,937,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | import requests
from experiments_with_api.create_recommender_system import models_params_dict
URL = 'http://127.0.0.1:5000/status/'
models_indices = list(range(1, len(models_params_dict) + 1))
def main():
headers = {
'token': '<TOKEN>'
}
for system_id in models_indices:
result = requ... | [
"nov.stacy@yandex.ru"
] | nov.stacy@yandex.ru |
f89f2f495d204ab49a12dfd4d327ea7b11433769 | d3130a1b2207f9207b88dd8486072c91d4ce4ed8 | /DemoScrapy2/DemoScrapy/spiders/UrlsTools.py | b8a9f29b606b833738704474dff2fce4c74fed59 | [] | no_license | LetItGrow/yibaoyiyuan | 1a02c31cb90f40e6e4ce229c2716404fd334a949 | 475c61b2668e76233f37e87f2405f27aec02acd2 | refs/heads/master | 2021-01-22T05:19:49.770532 | 2017-02-11T11:40:08 | 2017-02-11T11:40:08 | 81,647,455 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,899 | py | #!--coding:utf8--
import re
import json
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
def BaoCunData ( filename , data ):
# print type(data)
f = file ( filename , "ab" )
f.write ( data+',\n' )
f.close ( )
# print u'保存成功!'
def Json_GetData ( filename , e , key='' ):
f = open ( filenam... | [
"willowok@126.com"
] | willowok@126.com |
741d2e788d9f62f3da4057c12942481d04046279 | cc06d049f3725a6ede5e94652bae04255651e642 | /finance/application.py | 75dd8bacae724952c61aba9b160f74530e5becbb | [] | no_license | Dreamsword/CS50 | c9a0a8fbeaaa340aa3485a419013c575808bc99d | 707daba37801e266da397b1f931be42f2e2cd745 | refs/heads/master | 2023-03-01T12:54:35.516471 | 2021-02-08T14:37:40 | 2021-02-08T14:37:40 | 274,476,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,692 | py | import os
from cs50 import SQL
from flask import Flask, flash, jsonify, redirect, render_template, request, session
from flask_session import Session
from tempfile import mkdtemp
from werkzeug.exceptions import default_exceptions, HTTPException, InternalServerError
from werkzeug.security import check_password_hash, ge... | [
"hein.reyneke981@gmail.com"
] | hein.reyneke981@gmail.com |
6c4827f67ea6b67d5bb312e833883952f1b8964f | 64323af2fb69580e6200f5f479b022ec9f25d7ab | /p119_argument.py | a85537399d2a973ee347d5949b6eb0bddcfd5d65 | [] | no_license | Coder-source/Python-Learning-1 | cfa5d0f76259516f0790d199f9467510de763163 | 0ba16485627d6776b33fe932b32a9258b8445b0a | refs/heads/master | 2022-06-15T06:20:31.813482 | 2020-05-04T07:41:28 | 2020-05-04T07:41:28 | 260,873,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | #Type your name.
my_name = input('Type your name:') #Plug in the input for the variable.
message = my_name + "'s BMI is "
#BMI = weight[kg]÷(height[m] X height[m])
my_bmi = 50 / (1.6 * 1.6)
print(f'{message}{my_bmi}.')
| [
"noreply@github.com"
] | noreply@github.com |
d9eae03071430ffe4305fbd6afc9dc79c2905f78 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03795/s062323227.py | 74243f5eea190a8c47dde198e5a4b21d6edf84c9 | [] | 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 | 50 | py | N = int(input())
print(int(800*N-200*(N-N%15)/15)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7e0668c155325e588584edde768798375ec12c28 | 11328523b7035f757da87cd04e388abe84670101 | /game.py | 94fb9672042e56826880db3463a911a67e683044 | [
"MIT"
] | permissive | shamshod7/Middle-age-wars | c01ba5f312894a9a2b052df7b78279bf4d70d4ab | 05fa73fc3dbdada74abb467416454af3805db488 | refs/heads/master | 2020-05-24T17:10:11.989224 | 2019-03-30T00:37:29 | 2019-03-30T00:37:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,725 | py | import os
import telebot
import time
import random
import threading
from emoji import emojize
from telebot import types
from pymongo import MongoClient
import units
from telebot import types
from tools import medit
token = os.environ['TELEGRAM_TOKEN']
bot = telebot.TeleBot(token)
games={}
count=0
class Game:
... | [
"noreply@github.com"
] | noreply@github.com |
8b733f84922d177b3bbd993efd3f80723b4740a0 | 6557707483cff4cb724d716a7514b8afcec1fbc7 | /screen.py | ef3ea7e77a94d3912b9cffa2fb7fbc6d01b6f42a | [] | no_license | AdrielFreud/Screenshooter | 35c6a8208f2b211328bba3585fe4a1fe34775ed0 | 4f3c4b3f2a779fcf09ecef0dd50a8a9cb160fab4 | refs/heads/master | 2020-12-04T07:19:17.695369 | 2020-01-11T07:48:31 | 2020-01-11T07:48:31 | 231,674,710 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,814 | py | # Adriel Freud
from tkinter import *
import pyscreenshot as Image
import random
def main():
global root
root = Tk()
root.title("Screenshooter")
Label(root, text="Nome: ", fg="black", bg="white", font="Arial 11").place(x=5, y=25)
global name_Entry
name_Entry = Entry(root, fg="black", bg="white", width=15)
na... | [
"noreply@github.com"
] | noreply@github.com |
e3a7da26b1cc754fb52fd532086d4b6931fc28a5 | 9a11dd2ab1b53be3f99533f6d9511d1a4a127cf1 | /newcontrolcodeimplementation/bt.py | abc710e61836e2cae7198e56ab7db69846d4c4ee | [] | no_license | RudreshJayaram/fjsadjfsadjfjsdfjsadjflsdajfljsadlfjsdjflsdjlfjs | c605e11ae8c1f257580252067019b999d26e0ba7 | 9c518568180557e580cbef29e3a7340270c26cfa | refs/heads/master | 2021-01-21T18:05:56.821520 | 2016-05-21T09:00:25 | 2016-05-21T09:00:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | import time
import serial
import os
os.chdir("/root/revolution")
os.system("sudo python _maincode.py")
"""
usbport='/dev/ttyAMA0'
por = serial.Serial(usbport,115200,timeout=3.0)
por.flushInput()
temp = ""
por.write("Hi")
temp = por.read(5)
if temp == "Hi PI":
board=1
else:
board=0
set_file = open("settings.txt","... | [
"skrvmay30@gmail.com"
] | skrvmay30@gmail.com |
b2409efe8cbe9f39d5edb594d59dac28462cec73 | 2bec927d6903b7dda5fad8fb6529e0f661bec7da | /BasicApps/buttonWindow.py | fdfed06ba41ad34e13182b4a875a0436cbc2a070 | [] | no_license | codingXllama/Tkinter-with-Python | 5f7f3ff0be71c7901a6181a7d85d8292e2414ac8 | 706f7d8e03f840dccff6cf7fad4bd4f313759f17 | refs/heads/master | 2022-01-18T23:01:58.216541 | 2019-07-21T21:19:17 | 2019-07-21T21:19:17 | 198,016,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | from tkinter import *
window = Tk()
window.geometry("300x300")
# Changing the background color of the window
window.config(background="black")
# Creating the methods that does something when a button calls it
def btn1_Action():
print("Greeting young one!")
def btn2_Action():
print("Have a safe journey")
... | [
"osamaalchalabi2@gmail.com"
] | osamaalchalabi2@gmail.com |
12ccea64f3d27bb9d0e9cbad52655a77fc1bb3e8 | 0398552bd8d81c54098e2df964554f2eabcadc96 | /converter/transaction/rabobanksepatransaction.py | 7e5f59bb14133e246e9b419234c2c80daa91fba9 | [] | no_license | sbeaumont/clb | 51c77ae2cca1c334fd92944cafabd079529096ad | 41633bb2d723974084d907e4e25dc89dc5705370 | refs/heads/master | 2021-01-22T08:19:53.327360 | 2014-08-29T11:20:20 | 2014-08-29T11:20:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,883 | py | """Format of the new (2014) SEPA compliant Rabobank exports.
Based on http://www.rabobank.nl/images/formaatbeschrijving_csv_kommagescheiden_nieuw_29539176.pdf
ba = Betaalautomaat
ck = Chipknip
db = Rente Lening (debet?)
ga = geldautomaat
tb = intern overgeboekt
id = CJJIB
ma = afgeschreven
cb = credit boeking?
sb = s... | [
"serge@sergebeaumont.nl"
] | serge@sergebeaumont.nl |
e29c73a5bf798fdb622834ca56e09ca828b70c50 | 0f3653d1c2c3df014f62ec828e6d34566f1b83e9 | /ssh_tarpit/__init__.py | fdac73f22eef0295cd20ac3fd95f96428fb30ce0 | [
"MIT"
] | permissive | westfeld/ssh_tarpit | e9244a25e6c1d9d9b53fa888d1047b09a3ea2e75 | 3407de4178f46b21c61ac1204111d58e71be2ab3 | refs/heads/master | 2020-05-30T01:38:45.960371 | 2019-06-01T06:32:18 | 2019-06-01T06:52:10 | 189,482,037 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34 | py | # coding:utf-8
name = "SSHTarpit"
| [
"westfeld@mac.com"
] | westfeld@mac.com |
6465fb1996ce8f5c8a58cd8033e95b793771b66d | 65b4fcdd3d507ded1f053c2615c3ed4f49cd3f45 | /modules/dataset/transforms/dispatcher.py | c11701746a49d87e0bc6b91508a0063ff0790526 | [] | no_license | peiyic2/dl_codebase | 97fe8061274ab48601a453a8cd578832af5d6399 | dea6ec7e2aa13a4ef50a01179349191463b19aed | refs/heads/master | 2023-08-30T02:18:20.432563 | 2021-09-10T19:43:35 | 2021-09-10T19:43:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,103 | py | from torchvision import transforms
from .transform_ops import my_transforms_registry
from .joint_transform_ops import joint_transforms_registry
def dispatcher(transforms_cfg):
'''
Dispatcher for Image transformation. Note that all images accepted by
generated ops must be PIL images.
Args
trans... | [
"twofs0.5@gmail.com"
] | twofs0.5@gmail.com |
87056c1c8b79f1c8d6a8dff7780b463b195155dc | 802ccb502e90eeba1e06174abdf02c4b0efe22b4 | /farm/migrations/0006_delete_produce.py | 2baf8db72f344dd85a44a237150d06a6f6167223 | [] | no_license | mohamednur/Farm | 7800d3b1c49b6db0f7bb9a73f155a463efd22c1f | 974dad629b3c3b1feb1a6ce0e49a60001017a8e5 | refs/heads/master | 2022-05-03T20:06:09.992740 | 2019-06-27T07:56:32 | 2019-06-27T07:56:32 | 191,154,841 | 0 | 0 | null | 2022-04-22T21:26:00 | 2019-06-10T11:24:55 | HTML | UTF-8 | Python | false | false | 291 | py | # Generated by Django 2.2 on 2019-06-10 16:33
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('farm', '0005_auto_20190610_1927'),
]
operations = [
migrations.DeleteModel(
name='Produce',
),
]
| [
"mohamednurhassan8@gmail.com"
] | mohamednurhassan8@gmail.com |
7a0f1bcfa41b6d1f26066851aa0a78b4ae775e71 | 79c96233624ebd2b23a55a85679fc1d4000df882 | /may/05/centa.py | ced5470507a163ed524ca646fb900f2ab381db6a | [] | no_license | daily-coding-x-br/daily-coding | 2901d849babb7b2dfde7bc2bf7312fba4d9907e1 | de6cb24b69a22759c05468fbf543b3c45ace11af | refs/heads/master | 2021-10-07T10:37:20.444436 | 2021-09-29T20:33:52 | 2021-09-29T20:33:52 | 184,897,639 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,243 | py | # O(n) runtime and O(n) space complexity
# uniquely identify each node with and integer and add
# the ones that appear to the code
# used recursion but an iterative solution is possible
# by: Centa
class Node:
def __init__(self, val, left=None, right=None):
self.val = val
self.left = left
s... | [
"matheuscenta@gmail.com"
] | matheuscenta@gmail.com |
c3d2c4d91f89382b08790e31e8951c7bb047b615 | c369443df5ff98eccc0eee7f63bb8947f2943605 | /api_shop/urls.py | faef15fce178629654a49b9494cf03b6b004d406 | [] | no_license | erllan/shop-test | d2934f484b25d141a60caa5aca31a61eec48f055 | 1f77de177192ce6a1f8c5ccf1d7ca93ec026acf5 | refs/heads/master | 2023-03-06T01:04:38.785383 | 2021-02-27T18:02:07 | 2021-02-27T18:02:07 | 341,929,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | from django.urls import path
from rest_framework_simplejwt import views as jwt_views
from . import views
urlpatterns = [
path('token/', jwt_views.TokenObtainPairView.as_view(), name='api.get_token'),
path('token/refresh/', jwt_views.TokenRefreshView.as_view(), name='api.token_refresh'),
path('user/change/'... | [
"erlan.kubanychbekov.000@gmail.com"
] | erlan.kubanychbekov.000@gmail.com |
b7f316f55deddcb5c6d50510d7bb91ef6558e87c | 839469f7e3839b93d1d5423dea7920868d6dfb10 | /venv/bin/easy_install-3.7 | ca94bb0617d8ffc5ffb458eff912bc283a2c8583 | [] | no_license | siva600/keyword_search_automation | d48bdc2c39c886d9c65016ec87b9d51b86778dae | 4b3fd4a711e769b83765b5c5a615568c0f5e72e5 | refs/heads/master | 2023-07-11T21:39:40.316331 | 2023-06-27T04:52:50 | 2023-06-27T04:52:50 | 162,519,299 | 0 | 1 | null | 2022-12-08T01:29:26 | 2018-12-20T03:04:15 | Python | UTF-8 | Python | false | false | 459 | 7 | #!/Users/kalpanamaram/PycharmProjects/coding_test/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7'
__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\.py... | [
"kalpanamaram@Kalpanas-MacBook-Pro.local"
] | kalpanamaram@Kalpanas-MacBook-Pro.local |
6b4f6dd64c7bfab17f7eb813d6df175e37f9cf53 | de79113f8de7b56758c6983f1fc48e5c44b49e41 | /LowMemConv.py | a0ee2503cdfadc5648ae8d1414cdfc2c494c90bb | [] | no_license | sforsyth6/MUFL | 7e098dab6fd0cd433c132d9a10cb890fa76154fd | 96567123aaa54caba841e945ffbf7921592323bc | refs/heads/master | 2022-12-06T06:39:50.983676 | 2020-08-15T11:28:16 | 2020-08-15T11:28:16 | 287,733,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,624 | py | from collections import deque
import random
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.utils.checkpoint import checkpoint
def drop_zeros_hook(module, grad_input, grad_out):
"""
This function is used to replace gradients that are all zeros with None
In... | [
"sforsyth@nvidia.com"
] | sforsyth@nvidia.com |
4a7d31f8d38fefabec72bdcc09e8019dbcd89558 | 6aa66415c5c85021e0b85a0c90aba60ec341c7c1 | /pyfolio/views.py | 0f728441bc4f027e4b769762d6c72078413c7c61 | [] | no_license | idfarmer/d_portfolio | df3e15d61fac335e449d02ef50b6aaf8d872c099 | 8d28ffafc3bdcaecb49475e99f44a4ed8a7469f9 | refs/heads/master | 2020-05-16T20:15:34.455865 | 2012-03-23T15:55:16 | 2012-03-23T15:55:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | from pyfolio.models import PortfolioEntry
from django.http import HttpResponse
def home(request):
everything = PortfolioEntry.objects.all()
output = ', '.([p.title for p in everything])
return HttpResponse(output)
| [
"id.kylelawson@gmail.com"
] | id.kylelawson@gmail.com |
d8791f126449deb99639b099c2cb84ea261e7582 | 7ced68dc88d0336c2835270380f7d07244a3d245 | /2019_original_attempt/day14/puzzle2.py | 2f652c0f3cb35f82d1915baf8e5a45966341abd9 | [] | no_license | billyoverton/advent2019 | 57f975227617e13a2b381182860170737db1e551 | a14c8240d781696101189288d3125815f124a8ba | refs/heads/master | 2021-08-09T02:05:53.267149 | 2020-10-02T00:22:51 | 2020-10-02T00:22:51 | 224,912,347 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,824 | py | #!/usr/bin/env python3
import sys
import logging
from timeit import default_timer as timer
import math
import util
LOG_LEVEL = logging.INFO
class Reaction(object):
def __init__(self, reaction_string):
reactants, product = reaction_string.split(" => ")
reactants = [x.strip() for x in reactants.sp... | [
"overton.billy@gmail.com"
] | overton.billy@gmail.com |
82dca7c29a48cfa345968a08c72287b67d54f917 | a37c7a01ef4d216b736701a5690ccf7c76525718 | /exercises/day1/divisors.py | e84a8db6dea13bfcfb5b81867376b955ea1c1a99 | [] | no_license | ckloppers/PythonTraining | 06029b2f103bff04728f5f2622aea4efa505a188 | 32ca9c0314899e262a247a54537a913b94123f34 | refs/heads/master | 2021-01-10T20:16:48.493933 | 2014-09-19T04:21:26 | 2014-09-19T04:21:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | import math
def FindAllDivisors(x):
divList = []
y = 1
while y <= math.sqrt(x):
if x % y == 0:
divList.append(y)
divList.append(int(x / y))
y += 1
return sorted(divList)
number = raw_input('Number: ')
print 'Divisors: ', FindAllDivisors(int(number))
| [
"eudyptux"
] | eudyptux |
67a2624ca65fa77e4822c0995e1bdbfebce6cad4 | 16c34f1be83a4dbae861f498d8609b9f56a08e3b | /Lista de exercícios 2/Questão 1.py | 0775b186771c7fa7f80154266bc2d0dc97a4877a | [] | no_license | deivisongithub/introdu-o-linguaguem-python | e0975263ea9689b24526fa55b51e0b8c68a72582 | ab008e95fb2cb29ac32b764a3bf9fe31a22c1b8b | refs/heads/main | 2023-05-10T23:43:53.687341 | 2021-05-23T21:17:37 | 2021-05-23T21:17:37 | 370,158,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | # Leitor de números para exibir o menor,o maior e a soma entre eles
# Aluno : Deivison rodrigues jordão
chave = 0
chave2 = 0
x = 0
y = 0
z = 0
while( chave != -1):
x = float(input('digite um número: '))
while(chave2 == 0):
y = x
z = x
chave2 = chave2 + 1
if( chav... | [
"noreply@github.com"
] | noreply@github.com |
06a3ccc9647df2d8be805513e54fa0479aa7d101 | 20674c17d815214bf66b75be686bb8a45c0f5914 | /version1/910_Smallest_Range_II.py | 3c29c134342ecfaaf96e139eb9e1f848e33f07ef | [] | no_license | moontree/leetcode | e7b670969fe20785b15aae82996875fd66de1b08 | f2bf9b13508cd01c8f383789569e55a438f77202 | refs/heads/master | 2021-05-20T20:36:45.615420 | 2020-04-02T09:15:26 | 2020-04-02T09:15:26 | 252,408,563 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,314 | py | """
Given an array A of integers,
for each integer A[i] we need to choose either x = -K or x = K,
and add x to A[i] (only once).
After this process, we have some array B.
Return the smallest possible difference between the maximum value of B and the minimum value of B.
Example 1:
Input:
A = [1], K = 0
Output:
... | [
"zhangchao@zhangchaodeMacBook-Pro.local"
] | zhangchao@zhangchaodeMacBook-Pro.local |
1ecad53b2f769b76f761c1ecce95a172a14cdd63 | b38906c36c0c6ac1178480abc18d0fec37af966a | /partners/schemas/create_new.py | 04969c7a122921a1dbe96c1b20d5e79352730659 | [] | no_license | Korbiwe/cashback-flask | 7dbdaf04ad3fb3505643bcdc8fd037138aa7fd92 | 70af3842f34dd2c07afaf02a4e3c208e736a0626 | refs/heads/master | 2022-01-24T09:54:37.420558 | 2019-04-24T23:22:47 | 2019-04-24T23:22:57 | 197,950,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 922 | py | from jsonschema import Draft7Validator
schema = {
'type': 'object',
'properties': {
'login': {
'type': 'string',
'pattern': '^[a-zA-Z0-9]+'
},
'phone': {
'type': 'string',
'pattern': '^(\s*)?(\+)?([- _():=+]?\d[- _():=+]?){10,14}(\s*)?$'
... | [
"korbiwensky@gmail.com"
] | korbiwensky@gmail.com |
f611ff278e26d20dff934778c3c730b2b4e310bf | e8a48749014f372633de65d79bfa26a3ad743d89 | /src/transformers/models/marian/modeling_tf_marian.py | d356b4f8424008f518c2100b56668730cd548012 | [
"Apache-2.0"
] | permissive | pvcastro/pytorch-pretrained-BERT | 183b7291972c8d8c66c995647df66c1fe439a763 | 49cd736a288a315d741e5c337790effa4c9fa689 | refs/heads/master | 2022-08-19T08:55:16.332585 | 2022-06-30T16:11:08 | 2022-06-30T16:11:08 | 168,367,637 | 1 | 0 | Apache-2.0 | 2019-01-30T15:39:42 | 2019-01-30T15:39:41 | null | UTF-8 | Python | false | false | 67,868 | py | # coding=utf-8
# Copyright 2021 The Marian Team Authors and The HuggingFace Inc. team. 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/licen... | [
"noreply@github.com"
] | noreply@github.com |
2b73889304f5f62cca5a7c057f58c2c95b6ed581 | 5be89200ed28de05f479b28cc9f3c58b609f4dff | /resnet_cifar10/main.py | 95e9e398ae8053a8d830162c707fa51b4b59573e | [] | no_license | wy171205/DeepLearning | 8552fdb4b4ef1123d3d3b022205900175d87c956 | 85f925a69cafce625078cb7ee1c94117a6026477 | refs/heads/master | 2020-07-28T17:32:10.512063 | 2019-10-05T13:53:00 | 2019-10-05T13:53:00 | 209,479,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,381 | py | import torch
from torch import nn, optim
from torch.utils.data import Dataset, DataLoader
from torchvision import transforms, datasets, models
import numpy as np
from PIL import Image
from utils import Flatten
cifar_train = datasets.CIFAR10(download=True, root='cifar10', train=True, transform=transforms.Compose([
... | [
"750995468@qq.com"
] | 750995468@qq.com |
b14c8bc236b026f60a14731df9d445ec1900f808 | 55d36c0d471b5799838330cab64229947f10c99c | /Snake_lib/worm.py | d76fd6210da79d34edc4f885085c215d5744f396 | [] | no_license | hammadhaleem/Snake-game | 6fb601201686068cd7129317d42b498de886b1df | 2553cdcde641f4658d985ac5c3709ad786a57143 | refs/heads/master | 2021-01-22T09:41:42.787725 | 2013-04-21T16:52:30 | 2013-04-21T16:52:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,474 | py | # WORM Class #
import pygame
from globalvar import *
class Worm(object):
def __init__(self,surface,x,y,len=50):
self.player_name=" "
self.x=x
self.y=y
self.lag=1
self.first_x=self.x
self.first_y=self.y
self.surface=surface
self.color=worm_color
... | [
"hammadhaleem@gmail.com"
] | hammadhaleem@gmail.com |
70bbc871d12269d59b0406e3ad71f2d5bcf4e5e1 | 07fb1c652b680e923072215bd4fec579b4824f04 | /setup.py | b1c5adc03917b639ffe5394be661114beddaddb1 | [] | no_license | jruaux/ndbc | e382594e2e564887b598bfe51103a70b45482901 | 5d73189cb1819b61076260ca2f48e7803d631aa5 | refs/heads/master | 2020-12-25T02:40:08.397414 | 2016-05-22T20:47:55 | 2016-05-22T20:47:55 | 52,710,240 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,315 | py | #!/usr/bin/env python
from setuptools import setup, Command
from contextlib import closing
from subprocess import check_call, STDOUT
import os
import sys
import shutil
import tarfile
import splunklib
class DistCommand(Command):
"""setup.py command to create .spl file for modular input"""
description = "Bui... | [
"jruaux@splunk.com"
] | jruaux@splunk.com |
a4f1bd5c7caa3452e76a59e9df2ceca3bf9b3861 | 864e9d0dda733bd447ebe35bd88b98862078fbec | /gpsblinker.py | 14c9c14ded950ce6f35ce55595c4b73ee80f5e1d | [] | no_license | vjayashree1807/transport | 571f3ade25694e1cce635c4df43de271bb62b925 | d637a61857146d977cde55203bf03558578cacb5 | refs/heads/main | 2023-03-08T17:43:19.398159 | 2021-02-24T18:31:07 | 2021-02-24T18:31:07 | 341,297,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | from kivy_garden.mapview import MapMarker
from kivy.animation import Animation
class GpsBlinker(MapMarker):
def blink(self):
# Animation that changes the blink size and opacity
anim = Animation(outer_opacity=0, blink_size=50)
# When the animation completes, reset the anim... | [
"noreply@github.com"
] | noreply@github.com |
004ae37d586804263d402cec04d3bd89df8de031 | 1397d8265e6c6f9f70e5868b6f71e7cd601e3159 | /ingest.py | 0662abeac2c9e40037164c6722a07d1f622cc476 | [] | no_license | thiagovl/hadoop-spark | 3edc4a554102c6fed164b5a50dd5e42f760db59a | dcc2421fdb9b216f26cfb89974816b8d541d7b89 | refs/heads/main | 2023-09-01T22:58:14.531572 | 2021-11-21T14:47:21 | 2021-11-21T14:47:21 | 430,222,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,591 | py | import pyspark
from pyspark.sql import SparkSession
from pyspark.sql.types import IntegerType
import logging # log
import logging.config # busca as configurações do arquivo resources/configs/loggin.conf
import pandas.io.sql as sqlio
import psycopg2
class Ingest:
# Especifica qual log irá aparacer onde estiver ins... | [
"contatothiagolemes@gmail.com"
] | contatothiagolemes@gmail.com |
d2f5beaf192f628c995fc161a90654990f67e777 | 04215162ef08ac8c2cb5fc128a7c3b28228b3c39 | /edge_detection.py | fcd567474a28a2a3f01ac8ceaf5f6b14cb3a70cd | [] | no_license | freyjasasi/EdgeDetection | a2e6da184ddfa4737f27068f9b5c08bae8271359 | 5a23db8ef088106309436b2978c5b2e6a8401c01 | refs/heads/master | 2021-01-11T16:40:17.875996 | 2018-07-02T13:46:49 | 2018-07-02T13:46:49 | 80,135,462 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | import cv2
import numpy as np
webcam=cv2.VideoCapture(0)
while(webcam.isOpened()):
_,frame=webcam.read()
laplacian=cv2.Laplacian(frame,cv2.CV_64F)
# sobelx=cv2.Sobel(frame,cv2.CV_64F,1,0,ksize=5)
# sobely=cv2.Sobel(frame,cv2.CV_64F,0,1,ksize=5)
edges=cv2.Canny(frame,100,90)
cv2.imshow(... | [
"noreply@github.com"
] | noreply@github.com |
53a36dfdacc99125a08b041494733bbc5773b5f3 | 60b1f668808de2b82c2fcb62b07b45bb165219f2 | /egoi-api/models/campaign_push_content_template.py | 5715e23678e0f22dc440f87b2c4e513c0561e029 | [] | no_license | andersonmiguel/Egoi | 6d37bf7a3a7555e764f7a6e792b3ef1c68fe8e20 | b5f59f9b33ea94e170f4e7e26c6a37a78d2874c2 | refs/heads/master | 2022-06-21T07:18:44.920786 | 2020-05-04T17:29:02 | 2020-05-04T17:29:02 | 261,250,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,703 | py | # coding: utf-8
"""
APIv3 (Beta)
# Introduction Just a quick peek!!! This is our new version of API. Remember, it is not stable yet!!! But we invite you play with it and give us your feedback ;) # Getting Started E-goi can be integrated with many environments and programming languages via our REST API. We'v... | [
"integrations@e-goi.com"
] | integrations@e-goi.com |
dd925a69b672e946557e0b33052b7a672fb25d7b | 5e6c3b519f459eca0fbc40e3fda0f730e1b11be0 | /allPrograms/Allprograms/primeNumber.py | 29ef2d0b3010bee187c3987bc1d2d219d40bcbbc | [] | no_license | mohanapriya-09/Python | 55195d7497eb3df161ed81cd5a1b3c52b2beee57 | 7a163d28ad3be62c85613c4bdcb4faf938de1fa1 | refs/heads/main | 2023-06-09T17:00:18.122560 | 2021-07-01T11:25:13 | 2021-07-01T11:25:13 | 374,734,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | # Prime Number using for else
n = int(input())
for i in range(2, n):
if n%i == 0:
print("Non Prime")
break
else:
print("Prime") | [
"priya234517@gmail.com"
] | priya234517@gmail.com |
32104a52bb1ffb03bb96243e4787ce2b62d3e161 | a5c57d60e11d6194ab590b43ee61c21dbe9d3675 | /src/bio2bel_drugbank/constants.py | 6fdc1f9a930062c372375cee9a62179b39b507e3 | [
"MIT"
] | permissive | sailfish009/drugbank_bio2bel | 5779365d02b85eecddda5e87358abf3b424464c4 | ccab91aacfa70e362ed25a9343d7dd47d619a26c | refs/heads/master | 2022-02-23T06:20:12.643593 | 2019-10-15T10:28:06 | 2019-10-15T10:28:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # -*- coding: utf-8 -*-
"""Constants for Bio2BEL DrugBank."""
import os
from bio2bel.utils import get_connection, get_data_dir
VERSION = '0.1.2-dev'
MODULE_NAME = 'drugbank'
DATA_DIR = get_data_dir(MODULE_NAME)
DRUGBANK_URL = 'https://www.drugbank.ca/releases/5-1-4/downloads/all-full-database'
DRUGBANK_PATH = os.... | [
"cthoyt@gmail.com"
] | cthoyt@gmail.com |
94cd379fa4d30b07a6a0b5cf0f456b2ea607d103 | fea1a96ae970490ff582b031b6c78aae38829cb5 | /.history/app_20210829073601.py | e25c30825cab5e46de28964f045223e572973d08 | [] | no_license | endomasato/flask_hayatasu | 03fc77be9e44dc50d796640c4c1fd84d5ea03074 | 08f933b920c909d43f3b87d2638e6963d577cb6f | refs/heads/master | 2023-08-01T06:28:54.605717 | 2021-09-04T13:36:57 | 2021-09-04T13:36:57 | 400,898,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return '<H1Hello World'
if __name__ == '__main__':
app.run(debug=True) | [
""
] | |
bcbac824d74d96140a3d7c8bf90485d3a39c8eb8 | bf0aa689b92be1df24100e8581caab59a74e31db | /src/loaders/npzpck.py | c689dda4e06a1adf307df646cef07b6ad420aa1b | [
"MIT"
] | permissive | shmilee/gdpy3 | d7c689a70557534baa98595092cee0d737ea93cc | cdebb80dbb4a4d84ffa7115d8f18b5589fd40fb2 | refs/heads/master | 2023-08-19T22:42:40.305085 | 2023-08-15T02:11:15 | 2023-08-15T03:11:04 | 88,051,033 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,405 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2018-2020 shmilee
'''
Contains Npz pickled file loader class.
'''
import numpy
import zipfile
from ..glogger import getGLogger
from ..utils import inherit_docstring
from .base import BasePckLoader, _pck_copydoc_func
__all__ = ['NpzPckLoader']
log = getGLogger('L')
@inherit... | [
"shmilee.zju@gmail.com"
] | shmilee.zju@gmail.com |
57e3b239dbf77c3607b9bdc0a7bacd027f6ae4bc | f6f32c2e65dfc5a755537823887f32b32a924ba3 | /addr_book/app/forms.py | bfadae75d23a3acf6a62473e0962cc0d534139bc | [] | no_license | crosick/bupt_homework | 71ec62678d957968b661bc3ec6de660599f26a1c | eab7dc8dbd7ae760cd257a6eff6bc6814861a28b | refs/heads/master | 2021-01-10T13:12:22.771154 | 2015-12-06T08:07:29 | 2015-12-06T08:07:29 | 46,125,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | from flask.ext.wtf import Form
from wtforms import StringField, SubmitField, PasswordField
from wtforms.validators import Required, Length, Email
from wtforms import ValidationError
class LoginForm(Form):
username = StringField('username', validators=[Required()])
password = PasswordField('password', validator... | [
"crmrc2014@gmail.com"
] | crmrc2014@gmail.com |
15fa7543b47b6784593debfdb2a8c0b909735180 | 4cef505611a04383310ce6556fac7acb02dbc8a1 | /No ingestion test script/No_ingestion_test_showtime_anytime.py | 3e7aaccddd9211ae1241a17fa2b57af461c79aeb | [] | no_license | Sayan8981/Projectx | 9d8727eec144da35f2acffc787f3c769beef02e1 | bcf93fe885e4cd68bb2c30c408a3b03e785965c3 | refs/heads/master | 2022-03-26T18:13:02.831185 | 2020-01-16T06:52:31 | 2020-01-16T06:52:31 | 187,637,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,357 | py |
"""Writer: Saayan"""
import MySQLdb
import collections
from pprint import pprint
import sys
import csv
import os
import pymysql
import pymongo
import datetime
import sys
import urllib2
import json
import os
from urllib2 import HTTPError
import httplib
import socket
def ingestion():
conn1=pymysql.connect(use... | [
"noreply@github.com"
] | noreply@github.com |
1b509c96d673d54257841daffeb4c5183b86d704 | 2b9860d5fa96db1577f32a95908071d01b598c22 | /test_doc.py | f285f69771b331995893dc7e620ef22e486a11ca | [] | no_license | johncusay01/web_scraping | 29b9d463c35b2796ff295586b292022483d18637 | fafe96d6a99bc4cea427b4825e2b06e58e4dc741 | refs/heads/master | 2021-06-26T19:52:10.830556 | 2017-09-15T19:33:43 | 2017-09-15T19:33:43 | 103,274,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | from docx import Document
from docx.shared import Inches
from xlrd import open_workbook
document = Document()
document.add_heading('Document Title', 0)
p = document.add_paragraph('A plain paragraph having some ')
p.add_run('bold').bold = True
p.add_run(' and some ')
p.add_run('italic.').italic = True
d... | [
"cusay.alfred@gmail.com"
] | cusay.alfred@gmail.com |
027b9caef0850dcdd1dc4783426b6900fa67eaee | 2e58532464f58b27de68297b0348f0c460448474 | /Assignment-7/How_to_Write_Match/main_3.py | c7984212e0a63d3735236561dff194507a3e9578 | [] | no_license | RidaATariq/ITMD_413 | 969a2ebe48746b3269493027daef666bd7a26997 | ee1676419e2a09ce4d52cfca3c3e02f00b24f74f | refs/heads/main | 2023-04-20T19:15:12.864852 | 2021-05-09T18:41:46 | 2021-05-09T18:41:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | import re
# pattern = re.compile(r'\d\d\d.\d\d\d.\d\d\d\d')
pattern = re.compile(r'\d{3}.\d{3}.\d{4}') # same pattern as above but number specifies the no. of /d
# matches = pattern.finditer(text_to_search)
# for match in matches:
# print(match)
with open('data.txt', 'r') as f:
contents = f.read()
matc... | [
"cpintor@hawk.iit.edu"
] | cpintor@hawk.iit.edu |
d5b067a8b7a8d5dec8647fe040cf9b4270985b9c | 27c68779dcac5741ed517a5704022aa0e3866cc9 | /v3.x/python project 3.8.1.py | 4e642f8d56088fd22c6b247477632f755695dfa2 | [] | no_license | tscholz26/python-project | 10e3d5e76c5bfce650691180cd62aebfa6aa6350 | d0327d5803338a84cebde6acea353fede13c0578 | refs/heads/main | 2023-02-01T07:31:44.647443 | 2020-12-19T10:32:25 | 2020-12-19T10:32:25 | 307,387,339 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,393 | py | from tkinter import *
import time
import math
master = Tk()
mx = 400
my = 325
gold = ((math.sqrt(5)-1)/2)
facelist = list()
checkedges = IntVar()
checkfaces = IntVar()
checkiko = IntVar()
checkkep = IntVar()
checkdod = IntVar()
checkrep = IntVar()
checkdeg = IntVar()
checkrad = IntVar()
global c... | [
"noreply@github.com"
] | noreply@github.com |
77d4a65248ae10467b2b5c80481f60f26b03465c | 3ce5a7e944a0831cad9f02fdfeab24063800e2da | /snake game.py | e9a6d301f91c40973c315776dac7686eaba82f7e | [] | no_license | ranjithkumar121/Python-projects | 62158b1ab157ddd0fe2ca5fa46a7d558f5162050 | b29ed941fde71dca7ca752891c9ae9914e1a9d11 | refs/heads/main | 2023-05-09T07:23:31.972934 | 2021-05-29T08:48:25 | 2021-05-29T08:48:25 | 331,853,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,857 | py | # importing libraries
import turtle
import random
import time
# creating turtle screen
screen = turtle.Screen()
screen.title('SNAKE GAME')
screen.setup(width=700, height=700)
screen.tracer(0)
turtle.bgcolor('green')
##creating a border for our game
turtle.speed(5)
turtle.pensize(4)
turtle.penup()
tu... | [
"noreply@github.com"
] | noreply@github.com |
29c705cad1edefde7a3423ca8e3cb007bcdd5fe8 | 67954fee55a838d3c14ea5758b178f7fddb7d5f7 | /teacher/migrations/0001_initial.py | 3867ed4443a95746325d5ff6c2661d334d11b7ac | [] | no_license | Abel-Fan/student_admin | 899ce1130273fec0905ca4de1fe3c37e6e456b05 | e3c1b96f048273dda20b975917a66dabe97b8851 | refs/heads/master | 2020-06-06T10:17:44.563845 | 2019-06-20T09:54:24 | 2019-06-20T09:54:24 | 192,711,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | # Generated by Django 2.1.1 on 2019-06-20 06:55
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('student', '0002_auto_20190620_1451'),
]
operations = [
migrations.CreateModel(
name='Teacher',
f... | [
"842615663@qq.com"
] | 842615663@qq.com |
4808af5840f028a7660618caff8f8d1fa9d00167 | 320614e383e17d632565fdbbd2c827964bcb8276 | /sqlite.py | 2ea44e38b6da9f7bde988d5c1e33bd19562ab55d | [] | no_license | Rgz7/code | 9c4cd21abc743ae74f3e355f86771197493f3f31 | 465a591f7ace8e8e13a3a54834bce23fac95709b | refs/heads/master | 2021-08-07T15:59:33.330680 | 2019-01-03T09:42:58 | 2019-01-03T09:42:58 | 135,990,031 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | def createTable():
command = """CREATE TABLE COMPANY (ID INT PRIMARY KEY NOT NULL,
NAME TEXT NOT NULL,
AGE INT NOT NULL)"""
cursor = conn.cursor()
cursor.execute(command)
conn.commit()
def inserdata(id):
command = """INSERT INTO COMPANY (ID,NAME,AGE)
VALUES ({},'销量',66)""".format(id)
cursor = conn... | [
"noreply@github.com"
] | noreply@github.com |
46d633fab0329b6380f77e9907b64b224806b152 | 900058f6388bc339837a330a9aa6d4170e47f8ec | /Zillow/src/model/FactorMachine.py | 61c48522ae39a0ecef0df9fa943b537ed5cbd366 | [] | no_license | RankingAI/kaggle | 908d712a0ae837cb3e09be5de14cac3e1eab67dd | 2e577a2917ea694d955abef8294c6b733f75caf0 | refs/heads/master | 2020-12-02T20:57:01.115031 | 2018-10-09T11:14:31 | 2018-10-09T11:14:31 | 96,231,987 | 4 | 2 | null | 2018-07-23T03:36:33 | 2017-07-04T15:29:50 | Jupyter Notebook | UTF-8 | Python | false | false | 8,705 | py | from model.ModelBase import ModelBase
import pandas as pd
import numpy as np
import sys,os,time
import numba
import math
from fastFM import als
import scipy.sparse
import gc
import dill as pickle
from datetime import datetime
class FM(ModelBase):
_l_drop_cols = ['logerror', 'parcelid', 'transactiondate', 'index']... | [
"yuanpingzhou@sensetime.com"
] | yuanpingzhou@sensetime.com |
b89c827f3d587b51018f9fbaf4f43b60209f09ba | e0563b9b55fc8680aaafec7fa932c278c2dd03b3 | /students/urls.py | 56afd70d7c453a7698aa1d326edfd796081fbb1a | [] | no_license | Sultanbek9899/ithub_online | 3e13384f2b22b9281ecb663d4d0e216047318e17 | 53e57f26c282bbe53a707f68a74e1738dafc638b | refs/heads/master | 2022-12-19T01:05:25.982334 | 2020-09-27T07:57:32 | 2020-09-27T07:57:32 | 295,551,711 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | from django.urls import path
from .views import *
urlpatterns = [
path('register/', register, name='register'),
path('login/', user_login, name='login'),
path('logout', log_out, name='logout')
] | [
"sultanbek9899@gmail.com"
] | sultanbek9899@gmail.com |
c85f1f1087c415b1b9acff6c3141985c2e546046 | dbe0ea2cd860a0ab25785879f39371dbd0994b42 | /config.py | f1052776b58e3d5ecbfaa32002116dc752a01cfb | [] | no_license | dlworldpeace/taobao_seckill_anyi | a0aeb84a60cd13d9bc80393b29263356990e089e | 49c5ba46a2e577f2d257d5b96544cd790b44e62f | refs/heads/master | 2023-08-14T08:48:43.307745 | 2021-09-12T15:30:09 | 2021-09-12T15:30:09 | 405,307,679 | 0 | 1 | null | 2021-09-11T06:58:22 | 2021-09-11T06:58:21 | null | UTF-8 | Python | false | false | 723 | py | # -*- coding: UTF-8 -*-
import os
import configparser
class Config(object):
def __init__(self, config_file='config.ini'):
self._path = os.path.join(os.getcwd(), config_file)
if not os.path.exists(self._path):
raise FileNotFoundError("No such file: config.ini")
self._config = co... | [
"uifuture@uifuture.com"
] | uifuture@uifuture.com |
dcca48e830b46f5a0c15929ee34913657de5f62e | 6cd3751842ba574ed25a27981cc6cd9dc6228468 | /auth.py | 7e3d1953babd86becc38c5fdc9f58661f19fe215 | [] | no_license | yaraxxx/Casting-Agency | 97f65261eaae4a66e973387aad9c800cb8312d1b | 8f6d47dcfe5a52d1c8a49a18370616452b3daa39 | refs/heads/master | 2022-12-20T12:41:43.101927 | 2020-09-24T16:49:32 | 2020-09-24T16:49:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,437 | py | import json
from flask import request, _request_ctx_stack
from functools import wraps
from jose import jwt
from urllib.request import urlopen
import os
AUTH0_DOMAIN = os.environ.get('AUTH0_DOMAIN')
ALGORITHMS = os.environ.get('ALGORITHMS')
API_AUDIENCE = os.environ.get('API_AUDIENCE')
# AuthError Exception
'''
Auth... | [
"pyara-100@hotmail.com"
] | pyara-100@hotmail.com |
9c52b397b2fba964654e3551981f5422abd84b43 | b1075d99b134f699e637c8d6a3f07680fb71b7c6 | /src/testing_pcfg.py | de0859c9d8a65c651a025a5dabbbc6e2414a397e | [] | no_license | zhilongli/password_meter | 7f0d8278e78814c4a911deb2d5ba9292a0207fb6 | d6211d95f8b7343efb07c9b098f194ccca4b9c17 | refs/heads/master | 2021-05-25T22:11:05.612732 | 2020-04-13T15:33:47 | 2020-04-13T15:33:47 | 253,941,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,232 | py | import pickle as pkl
import numpy as np
import statistics
import math
def get_pcfg_prob(pw, pattern_prob, emission_prob):
""" returns the log probability """
pw_prob = 0
prev_char = None # keep track of prev character, D, S, L
overall_pattern = ''
curr_char_count = 0
curr_emission = ''
for ... | [
"zhilong_l@yahoo.com"
] | zhilong_l@yahoo.com |
b9916caed7b5e1683a7582358973b35366c79c42 | ea633538f4da254c7269835dcfc3d4428e5cebcc | /ml/openface3/tests/openface_api_tests.py | dfe58f983e0bc8f9899bfe5834783e8e6459b299 | [] | no_license | hry8310/ai | 331f2d17c0e28c5257a78621ca33b7aef7f69ca1 | 06811489cb4e047b4c7e8bea8a762ea13b3a1479 | refs/heads/master | 2022-12-09T09:11:02.533784 | 2020-11-06T02:42:11 | 2020-11-06T02:42:11 | 189,932,604 | 2 | 0 | null | 2022-11-16T06:46:28 | 2019-06-03T04:07:58 | Python | UTF-8 | Python | false | false | 2,306 | py | # OpenFace API tests.
#
# Copyright 2015-2016 Carnegie Mellon University
#
# 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... | [
"247403822@qq.com"
] | 247403822@qq.com |
7ab789fa9d07aec5f38c584abda63e37facb17dc | bc6937879c2ac4edeee7cd5a4b93a08ca1312312 | /tools/config_Modifier.py | c1fb0f76271f0a11c5c42989e4242ce5aee0996a | [] | no_license | pawel3275/logger | 0aabd55b3bff99a0a9f278809b06e0e14a4d9638 | 9e74a72dca45c13e9080496e1dd23e331629e074 | refs/heads/master | 2022-02-23T04:56:35.869927 | 2019-09-30T19:20:00 | 2019-09-30T19:20:00 | 186,267,133 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,150 | py | import sys
def show_help():
print("To modify or generate config values please provide as first \n")
print("config path, then key to modify and second the value, for example: \n")
print("./configModifier.py <path> <key> <value> \n")
print("./configModifier.py /../config.cfg lineBuffer 100 \n")
def lo... | [
"noreply@github.com"
] | noreply@github.com |
b006e071b4eedcdff17cc409c2ad17895603ea12 | 4342ef8afa6a0790690f711d28c0ce2c78711c67 | /seed_database.py | 921aa0c13ce449678e4383c184f066f8bd5a1fa0 | [] | no_license | christinababaya/ratings-v2 | fe03413af9042942204aa69980a3ce2415411c14 | 2812bc1493607fb4f04b62c1e84b4d9efb396937 | refs/heads/master | 2023-03-25T20:39:38.191009 | 2021-03-26T16:00:14 | 2021-03-26T16:00:14 | 351,493,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | import os
import json
from random import choice, randint
from datetime import datetime
import crud
import model
import server
os.system('dropdb ratings')
os.system('createdb ratings')
model.connect_to_db(server.app)
model.db.create_all()
with open('data/movies.json') as f:
movie_data = json.loads(... | [
"vagrant@vagrant.vm"
] | vagrant@vagrant.vm |
abd0e4369ed4686d8a57e4903580a0d3336d78b0 | 7e98a8b31cc2fecf8384f4590f27540f7280659a | /v1/LinkedLists/mirror_subtraction.py | b9bf4ac6f787e73961c467e99aa83d9e78408879 | [] | no_license | darraes/coding_questions | 62a07a6ede884fd0e3596f3dac8f50e11fd8676e | 70dcc3b859db673c39c3cf55aeb463d2bd822ed9 | refs/heads/master | 2021-01-21T07:21:18.033321 | 2020-06-15T16:25:11 | 2020-06-15T16:25:11 | 91,611,595 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,274 | py | # http://www.careercup.com/question?id=5657550909341696
class Node:
def __init__(self, next, value):
self._next = next
self._value = value
def revert(node):
if node == None: raise
elif node._next == None:
return (node, node)
else:
tail, head = revert(node._n... | [
"daniel.arraes@gmail.com"
] | daniel.arraes@gmail.com |
980f6bbb5dc5a2a639e07f041266478030497e29 | 11ada50b47a245278a41b1f2cdae60bc387937da | /gala/potential/potential/builtin/pybuiltin.py | d2a6888e172a89a36bb718859afae3aa8bd2bd42 | [
"MPL-1.1",
"MIT"
] | permissive | ltlancas/gala | 7ec9111e3bf9f49823f393ad08f04aa4c34cf0df | 2621bb599d67e74a85446abf72d5930ef70ca181 | refs/heads/master | 2020-03-25T21:03:56.114744 | 2018-05-12T16:24:46 | 2018-05-12T16:24:46 | 144,157,811 | 1 | 0 | MIT | 2018-08-09T13:40:53 | 2018-08-09T13:40:53 | null | UTF-8 | Python | false | false | 4,211 | py | # coding: utf-8
from __future__ import division, print_function
# Standard library
from collections import OrderedDict
# Third-party
import numpy as np
from ..core import PotentialBase
from ....util import atleast_2d
__all__ = ["HarmonicOscillatorPotential", "KuzminPotential"]
class HarmonicOscillatorPotential(P... | [
"adrian.prw@gmail.com"
] | adrian.prw@gmail.com |
7b224f0a5e0545376834ba7160e98c25a21138ac | cac1f520508868a1cf332ba7ebb42bb3a221e751 | /art.py | db3b21c981a9b0aa425e032e5da0b4bb71ad0684 | [] | no_license | Saqlainrocks7/Rock_Paper_Scissors | 3e24ea789b8a8577d44d941be7e54ed33cac6dec | d4e9b78d2b7f40370a40151af50d16a0803cffd5 | refs/heads/main | 2023-05-31T19:33:50.369545 | 2021-06-20T15:24:14 | 2021-06-20T15:24:14 | 377,744,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | # Rock
rock = ("""
_______
---' ____)
(_____)
(_____)
(____)
---.__(___)
""")
# Paper
paper = ("""
_______
---' ____)____
______)
_______)
_______)
---.__________)
""")
# Scissors
scissors = ("""
_______
---' ____)____
... | [
"noreply@github.com"
] | noreply@github.com |
92954da1091c38ced5f188bba74362db3b12ea51 | 6f98b975d86f07e899e3bae751469440125540ac | /pg22.py | 24293099d8b58259e8f52078c2d92f5f347daea5 | [] | no_license | nakshatar/python2_assignment | 790194c648f4a4e9f409d619b1d00175a01a2d56 | edd9a725350fcae878dfb578803be5a12941d37a | refs/heads/master | 2020-04-05T13:12:45.686274 | 2018-11-09T17:00:35 | 2018-11-09T17:00:35 | 156,892,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54 | py | f=open('frinds.txt')
lines=f.readlines()
print (lines) | [
"noreply@github.com"
] | noreply@github.com |
a15ba0f9be46ed13f0f85dedc715c2298bfc7a00 | f26cbabd87454276a28fcd01b308d61b5bdec69e | /utils/logger.py | 5d3c12435329b2a4cdd190a0dd3c0d6fb392cead | [] | no_license | chrisbyd/DiscreteAsymmetricHashing | 08fd39bea87c360b92fc1a1256f4f3943ed18f79 | a081788c802900d6fb3b9d4483ac79c6c97265c1 | refs/heads/master | 2023-08-01T06:43:58.585737 | 2021-09-15T05:12:40 | 2021-09-15T05:12:40 | 402,071,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | import logging
import os
import sys
import os.path as osp
def setup_logger(name, save_dir, if_train):
logger = logging.getLogger(name)
logger.setLevel(logging.DEBUG)
ch = logging.StreamHandler(stream=sys.stdout)
ch.setLevel(logging.DEBUG)
formatter = logging.Formatter("%(asctime)s %(name)s %(level... | [
"chenyongbiao0319@sina.com"
] | chenyongbiao0319@sina.com |
131d01fade9aedb311b47c9efa2143ec18ccfbcf | 985d3febbbbf25653ebc33a96c702253d1cf41cb | /checkout/migrations/0001_initial.py | 8783f55ad040215540bf532b19d13d0c473ad570 | [] | no_license | Code-Institute-Submissions/beauty_and_therapy | dfe58e154a3d8c7be4d66ef1122df825cb42304e | 19dc9c0f6f12d3ffae05819eae9422d35a778755 | refs/heads/main | 2023-07-14T04:58:05.226937 | 2021-08-31T11:11:52 | 2021-08-31T11:11:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,379 | py | # Generated by Django 3.2.6 on 2021-08-15 16:10
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('products', '0007_auto_20210813_1138'),
]
operations = [
migrations.CreateModel(
... | [
"shoreen.beckford@gmail.com"
] | shoreen.beckford@gmail.com |
d86d4bc54409db664185d5391f137bd863fcb162 | 0872e3dc1d71ffc8c6426f77c7d1409fc523e088 | /rlb/main.py | 36d133417ff2b0941b040cf4147dc3629f603b20 | [] | no_license | mpenkov/reddit-liveleak-bot | c0a367f15609e58227f661c99ab6ea17808e0b99 | 4ec35c0a941f269257b6a431cc6de1de8827b3ed | refs/heads/master | 2020-07-21T11:42:21.192096 | 2015-02-07T08:17:48 | 2015-02-07T08:17:48 | 21,909,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,730 | py | import praw
from praw.errors import APIException
import datetime as dt
import os
import os.path as P
import yaml
import logging
import time
#
# http://blog.tplus1.com/blog/2007/09/28/the-python-logging-module-is-much-better-than-print-statements/
#
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__n... | [
"misha.penkov@gmail.com"
] | misha.penkov@gmail.com |
35d7077ff76c02ae80db55b3babb98f590c5e15c | 0feb532715d8c9b2b8bd3092e91d7814e59e58a7 | /Eulerproblems/Eulerproblem9.py | ae3152f150f3b12bd6ce68e9ce46e7d703578ee7 | [] | no_license | krishislegend/Python-Learning | 340086a5499a88db1dbc0e29528735b7a097f7aa | ff3ba5da1f64f6346e81a12a3a78ef5052821b82 | refs/heads/master | 2020-03-29T21:42:13.623885 | 2018-10-17T12:01:31 | 2018-10-17T12:01:31 | 150,382,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | #Generate Pythogret triplets
def pythogerantriplet():
x = y = z = summation = 1
while x <= 500:
while y <= 500:
while z <= 500:
if (x + y + z == 1000):
if (x*x + y*y) == z*z:
summation = x*y*z
... | [
"noreply@github.com"
] | noreply@github.com |
a8f0e24d9a0c9f9fa8ab7169a1f0dfdfb34928fe | 3b966126ece252d3f04b74e997e65111598dc487 | /tests/raw_schedule_test.py | f44c25574a4a6137a42362f1cf5a6bdda3ce7bcf | [] | no_license | github4bhavin/BusSchedule | a5c9a017ed4abf146bec5406c66c48e1acbe089c | 260c86b64e48c5b84d17d6917fc57024b8a4923c | refs/heads/master | 2020-03-20T22:01:52.205395 | 2018-06-19T17:19:18 | 2018-06-19T17:19:18 | 137,775,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | import pytest
import sys, os
sys.path.append('..')
from pprint import pprint
from process_schedule import RawSchedule, ProcessedSchedule
bus_no = '321'
def test_raw_scheudle():
raw = RawSchedule(bus_no)
assert raw.raw_schedule is not None
def test_ny_weekday_schedule():
raw = RawSchedule(bus_no)
a... | [
"bhavin.p@irokopartners.com"
] | bhavin.p@irokopartners.com |
92ec7ed041e603e068af5792813e85378c4cca01 | 9d454ae0d5dd1d7e96e904ced80ca502019bb659 | /1720_decode.py | 8f1c93438180b711a3300877bb9f7e9cc36a7969 | [] | no_license | zzz686970/leetcode-2018 | dad2c3db3b6360662a90ea709e58d7facec5c797 | 16e4343922041929bc3021e152093425066620bb | refs/heads/master | 2021-08-18T08:11:10.153394 | 2021-07-22T15:58:52 | 2021-07-22T15:58:52 | 135,581,395 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | class Solution:
def decode(self, encoded: List[int], first: int) -> List[int]:
# ans = [first]
# for el in encoded:
# ans.append(el ^ ans[-1])
# return ans
return list(accumulate([first] + encoded, lambda x, y: x ^ y)) | [
"1564256031@qq.com"
] | 1564256031@qq.com |
a09a9a3c20d0ba7dd35ccc78a034a1db1d0cf083 | 3dbae086c7c357689550f38c6d4cc3e1b5392bf3 | /RollDas.py | e8f7583846401a7949565c8b638bee04ce61fc6f | [
"MIT"
] | permissive | DasFranck/RollDas | bff9808cfc40ee4d7dbefc4d85dde1841ebae289 | 0d36ae56e93d2a27b717cece23f4fc270b2c38e7 | refs/heads/master | 2022-11-25T09:03:39.758792 | 2020-07-28T20:37:48 | 2020-07-28T20:37:48 | 283,287,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,166 | py | #!/usr/bin/python3
import argparse
import json
import os
import discord
from dice import roll, DiceBaseException
from dice.elements import Roll, Integer
rodas = discord.Client()
def get_meta(message):
""" Return a named tuple which contain metadata of a message """
content = message.content
args = con... | [
"dasfranck@gmx.com"
] | dasfranck@gmx.com |
4735f01b17e7ace77ee8ee34c25f9b41b3855c8f | 4233c7de1c699ced29e035b17140bb626f64d39b | /Ridey/landing_page/admin.py | 30b16a6cbe788df3d19fe958f41aef628561937e | [] | no_license | mpanayotov/Ridey | bb3c74cbfb4a89f1e37f5c050d6635a00e21586f | 6d0f69f69a8e64c3145218ee47e5f9c58c252d82 | refs/heads/master | 2021-04-26T16:47:31.484397 | 2016-10-26T14:16:49 | 2016-10-26T14:16:49 | 57,404,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | # -*- coding: utf-8 -*-
from django.contrib import admin
from landing_page.models import Post
class PostAdmin(admin.ModelAdmin):
#ordering = ['datetime']
#search_fields = ['datetime']
list_display = ['id', 'message', 'update','direction_from', 'direction_to', 'rating', 'name',
'fb_id'... | [
"mihail.workbuz@gmail.com"
] | mihail.workbuz@gmail.com |
455f19a92accefe422d32eda378b3b2162b2e2ac | 58ee765f9b6cc92755495d8c2cf4f6de7341b440 | /src/applications/forms.py | 2a103e039e093659247350d1efd360b1066afe06 | [] | no_license | ShovonSMZ/Python_Prote_Workflow | 83eaf0c0a983620a72fc22e34c24a0a1ce9961c0 | 8c4231e7b846f12d82b12d4ea551329c6a10fc3a | refs/heads/master | 2020-08-26T12:09:18.396598 | 2019-10-23T08:36:47 | 2019-10-23T08:36:47 | 217,007,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | import datetime
from django import forms
from .models import LeaveRequest
class DateInput(forms.DateInput):
input_type = 'date'
class LeaveRequestForm(forms.ModelForm):
class Meta:
model = LeaveRequest
exclude = ['user', 'status']
widgets = {
'start_date': DateInput(),
... | [
"shovon.majumder@thesaurus.co.jp"
] | shovon.majumder@thesaurus.co.jp |
227f0e1896bfcc93f4801fc2c4dfa5e3354ecbee | 2ab7d3b4b1712cdb32ad015bc6cd375b9b8644b8 | /realtors/models.py | d674bd7db56da2af4a2d5b150730f4bd93c12c43 | [] | no_license | marie-reine-n/btre_project | 6e857971664a1932cd8bad65a9907314c94d185c | e983aa8aafe1f8f69b32aa9f37363072562c23e6 | refs/heads/master | 2022-12-01T03:15:22.490552 | 2019-11-14T16:25:07 | 2019-11-14T16:25:07 | 220,422,221 | 0 | 0 | null | 2022-11-22T04:49:17 | 2019-11-08T08:32:58 | CSS | UTF-8 | Python | false | false | 523 | py | from django.db import models
from datetime import datetime
# Create your models here.
class Realtor(models.Model):
name = models.CharField(max_length=200)
photo = models.ImageField(upload_to='photos/%Y/%m/%d/')
description = models.TextField(blank=True)
phone = models.CharField(max_length=20)
emai... | [
"nishqueen@hotmail.com"
] | nishqueen@hotmail.com |
19c36d8f6e6b7d509ece91dc4f342091ce2c7286 | 10f45454e4f52146a20f88b18a61db8e1bb4d277 | /test.py | 92e1c5e5c02bb0b9eb1d30d50c40e399bfab8adb | [] | no_license | aamna2401/MSDS20018_Project_DLSpring2021 | 35cdf372b653492cfaafb752fbce32baaa55ec80 | decae21a81a55598426456136c5466fdae290f30 | refs/heads/main | 2023-07-02T10:18:56.077339 | 2021-08-09T11:28:06 | 2021-08-09T11:28:06 | 391,696,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,785 | py | import os
import matplotlib.pyplot as plt
import torch
from PIL import Image
from torchvision import transforms
from configurations.test_config import test_cfg
from dataloader.datagen import CustomDataLoader
from utils.bboxes import draw_box
from utils.training import create_model
def test():
model = create_mod... | [
"aamnakhan2401@gmail.com"
] | aamnakhan2401@gmail.com |
01040de6b5d4ea3274ea3ea17e71b4643c1b4001 | b483c598fa375e9af02348960f210b9f482bd655 | /cursoemvideo/desafios/Desafio075.py | 48338306d4a75934c3af6b61e07b9ea8b5210c04 | [
"MIT"
] | permissive | brunofonsousa/python | 6f766d08bf193180ea9a4903cb93ffd167db588d | 8f2f26c77015c0baaa76174e004406b4115272c7 | refs/heads/master | 2022-09-30T14:58:01.080749 | 2020-06-08T09:55:35 | 2020-06-08T09:55:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,504 | py | '''
Exercício Python 075: Desenvolva um programa que leia quatro valores pelo teclado e guarde-os em uma tupla. No final, mostre:
A) Quantas vezes apareceu o valor 9.
B) Em que posição foi digitado o primeiro valor 3.
C) Quais foram os números pares.
'''
## VERSÃO GUANABARA:
num = (int(input("Digite um número: ")),
... | [
"brunofonsousa@gmail.com"
] | brunofonsousa@gmail.com |
5e27c03b261c7382bd2faf6736eafb2189fdf533 | 55733075507aab4b1995863a4df575ce2c3f37ae | /Tools/HIL/run_tests.py | b6d069cc4c1b144c26a56e394bbb6e1761750162 | [
"BSD-3-Clause"
] | permissive | LLlkaiwen/Firmware | 39efb782f950caa7821d770e7dc3d4f2958d39cc | 8fafadf850bb67e0ec4f00452bfb701f85f846a9 | refs/heads/master | 2020-09-15T06:49:11.704463 | 2020-01-15T12:27:31 | 2020-01-15T12:27:31 | 223,369,086 | 4 | 1 | BSD-3-Clause | 2019-11-22T09:28:22 | 2019-11-22T09:28:21 | null | UTF-8 | Python | false | false | 3,496 | py | #! /usr/bin/python
import serial, time
import subprocess
from subprocess import call, Popen
from argparse import ArgumentParser
import re
def do_test(port, baudrate, test_name):
databits = serial.EIGHTBITS
stopbits = serial.STOPBITS_ONE
parity = serial.PARITY_NONE
ser = serial.Serial(port, baudrate, d... | [
"daniel@agar.ca"
] | daniel@agar.ca |
aacf6cb25ff05de684e8584517e92125d0a2af98 | b2b33425909f7fd21c238eb2b765b0e361509a63 | /todo/views.py | 4d202adc404b15a582d19c41774bd6247fd5bb3c | [] | no_license | RMSchrader1994/django | 0e493e80a041f9c5bdfd1fc9ed15ded049ce3e3b | 046441329df1d8077ef0a6011fd98d4a26d0629a | refs/heads/master | 2020-04-07T13:54:07.756797 | 2018-03-12T16:50:09 | 2018-03-12T16:50:09 | 124,217,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,386 | py | from django.shortcuts import render, get_object_or_404, redirect
from django.http import HttpResponse
from .models import TodoItem
from .forms import TodoItemForm, EditTodoItemForm
# Create your views here.
def get_index(request):
if request.method == "POST":
print("It's the POST")
form = T... | [
"rmschrader1994@gmail.com"
] | rmschrader1994@gmail.com |
08d3c3ad99615086c9647271af584ec4f88b651b | 5470c5d3ba724bb8d300d2e15d3fc11b53dcfa1e | /supermario/model.py | 98d5957fe13844ca37ee1145ba727d8825082390 | [
"BSD-2-Clause"
] | permissive | bedna-KU/Loto_sk_prediction | b496928c22c275793018b099080086284121e2d9 | 689991212a1450b865e01461ad7e892f06eb5774 | refs/heads/master | 2023-07-03T02:11:29.542654 | 2021-08-10T09:17:54 | 2021-08-10T09:17:54 | 268,127,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | import keras
from keras.models import Sequential
from keras.layers import Conv2D, Dense, Flatten, LSTM, RepeatVector, TimeDistributed
from keras.optimizers import Adam
def model_cnn_3 (max_len, max_value, activation):
model = Sequential ()
model.add (Conv2D (32, kernel_size = (3, 3), padding = "valid", strides = (1,... | [
"noreply@github.com"
] | noreply@github.com |
1612a351a1691892ab9f19bb98915ce1dd236389 | 67293ca0b3636d69caf6de7188e9a42adbcca872 | /weather_snowpack_website/wsw/settings.py | 306d24f76f219c1fefab0097de15c0a0e718e18e | [] | no_license | romasolot/weather_app | 94e51003a4badff1f140d2244b31a80f57f6b011 | 07af44336742c106a525bcaffd48b833eec584f6 | refs/heads/master | 2021-01-11T04:10:38.646843 | 2016-10-18T12:06:58 | 2016-10-18T12:06:58 | 71,235,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,727 | py | """
Django settings for wsw project.
Generated by 'django-admin startproject' using Django 1.10.1.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
AP... | [
"roman@aumix.com"
] | roman@aumix.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.