blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
22fab3bbf030b5a3ee3da3004cce910e674b303c | 28ea6fff3662fbc52fe349ca8d647b5b5fe268a5 | /src/helloworld.py | 7961f6eb5b2d904d09496fd4465b0879741044f8 | [] | no_license | shivarajp/PopTheQuery | bbc13363005853d36d41701aeaf1b716d4e22776 | 9c1caa9696488a64dce9aa5a48b786c80773ead9 | refs/heads/master | 2021-01-19T05:47:06.126672 | 2014-09-27T14:12:25 | 2014-09-27T14:12:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,627 | py | import wsgiref.handlers
from google.appengine.api import users
from google.appengine.ext import webapp
from google.appengine.ext import db
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.ext.webapp import template
global title
class Register(db.Model):
section=db.StringP... | [
"shivrajp130@gmail.com"
] | shivrajp130@gmail.com |
20b411857018d423476fddd690fa0329d50115f5 | e851ab438384ca775cff31633f2974abf98f581b | /app/robo_advisor.py | 1a2a868218094423af3f41266bc36b675f3a7b38 | [] | no_license | melissawelty/robo-advisor | 7c7c8282c912ac174cda48c0c3b1ffce04890edb | febc41ce0c4695def1712adc3929ae0639357cec | refs/heads/master | 2022-11-06T21:41:03.952316 | 2020-06-25T21:09:12 | 2020-06-25T21:09:12 | 270,390,612 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,601 | py | # app/robo_advisor.py
import csv
import json
import os
from dotenv import load_dotenv
import requests
from datetime import datetime
import matplotlib.dates as mdates
import matplotlib.pyplot as plt
from matplotlib.dates import DateFormatter
load_dotenv()
def to_usd(my_price):
# return "${0:,.2f}".format(my_p... | [
"65548626+melissawelty@users.noreply.github.com"
] | 65548626+melissawelty@users.noreply.github.com |
a45c45ce54e0b683e4ef570b1e30e63d1106162e | 94c6c148450cdfc85ff3957c9fc9af6d960ed038 | /cron_jobs/archery_org_hk_spider.py | 61d8922e04fe5fbdc34b71b196cccf88615d08ac | [] | no_license | samwalker505/archery_news | d4fba46de6da1e43672770beaf7530a021d34d27 | 2caa29ad9bc2119913c2e85093593e62ce62b2ae | refs/heads/master | 2021-01-11T18:36:03.311848 | 2017-01-30T14:05:14 | 2017-01-30T14:05:14 | 79,579,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,446 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import re
import md5
from google.appengine.api import urlfetch
from google.appengine.ext import ndb
import webapp2
import logging
from lxml import etree
from handlers import BaseHandler, Output
from models.post import ArcheryOrgHkPost
from external_api.facebook import Facebook ... | [
"samwalker505@gmail.com"
] | samwalker505@gmail.com |
510df31dcea0e95031d017d93c8fd93e7231355f | af3904eecec7e41fcb530213b6e6c9f8d4c12c08 | /flask010/bin/flask | a42ec0ab16bb3b87ff2b9c59f25ce4ffdbaecfd8 | [] | no_license | Besom01/homeworks | 076232963e8c05e2eabc6183ec13061465afb8be | 77c739b4b30819d9a369a24edc5b67de5920ad50 | refs/heads/master | 2021-06-19T23:23:41.914326 | 2019-08-07T11:03:50 | 2019-08-07T11:03:50 | 196,199,449 | 0 | 0 | null | 2021-03-20T05:14:30 | 2019-07-10T12:15:48 | Python | UTF-8 | Python | false | false | 247 | #!/home/danger/Desktop/pyprojects/flask010/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ganjubasman007@gmail.com"
] | ganjubasman007@gmail.com | |
317cc5c1fca1faac48fbd217fee8bfa5624b2b88 | 29310445b330844d734f38147d1e2b91d2610bc9 | /OOP_Pre/codeup/1031.py | 8d4f40ce5b0d352da17b5431f7a64c6bf722e431 | [] | no_license | itsss/vacation_2018-1 | 1bbfd67a169db3d9f9b6aefe604d9131dd8fdeb3 | 500a37a90617820628c44d0c5fbe0c5c200ac0d0 | refs/heads/master | 2020-03-24T00:14:24.123319 | 2018-08-14T04:35:40 | 2018-08-14T04:35:40 | 142,281,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | #a = int(input())
#print(int(oct(a)[2:].zfill(2)))
#a = int(input())
#print(hex(a)[2:])
#a = int(input())
#print("%X" % (a))
#a = input()
#print(int(a, 8))
a = input()
b = int(a, 16)
print("{0:o}".format(b)) | [
"itschool@itsc.kr"
] | itschool@itsc.kr |
af8be67c9523b7c72402ebfb98233114ede9d5e6 | 6e155ed62ef6d24cb1219d086a7d695abc283bc0 | /plugins/wascan/parse_wascan.py | 78f2c502a2d437d6d71f160b1ab22faa5b7e8981 | [] | no_license | linpengstc/pentest | 9c928ab2d62a406ca79db80818d8f668dcdf751c | f4e94141f740aedc6417f52488a0f1b2f4864174 | refs/heads/master | 2020-03-10T05:54:29.668808 | 2018-04-13T03:42:17 | 2018-04-13T03:42:17 | 129,227,530 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,004 | py | import pprint
import sqlite3
def parse_result():
results = []
with open("out/wascan/wascan.result") as f:
r = {}
for l in f:
l = l.strip()
if l.startswith("[+] URL:"):
if r != {}:
results.append(r)
r = {}
... | [
"linpeng@weidian.com"
] | linpeng@weidian.com |
a1d17058046e65d78f34d700c70b3d7e984347cf | 25e0d42a524ac20fbda7355ac4825f3510eb2f0c | /all/130/final_routes/special/PlotSiTensor | 0c4e200c4e9504a7d721e48ffeca50f1a6f54851 | [] | no_license | lucydot/data | d3f1fa7645f3eb32b2cddbdf78c382a964533f06 | 08bd49bbf768cf867dce0bf8393c25b9583b9723 | refs/heads/master | 2021-01-10T22:53:59.672517 | 2016-10-11T09:44:41 | 2016-10-11T09:44:41 | 70,342,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,088 | #!/usr/bin/env python
# region: Imports
import csv;
import math;
import os;
import numpy as np;
import matplotlib as mpl;
import matplotlib.pyplot as plt;
import matplotlib.ticker as tck;
from scipy.interpolate import splrep, splev
#EndRegion
#Region:Parameters
InputFiles = [
("./", "OUTCAR"),
]; # This code ... | [
"l.whalley@bath.ac.uk"
] | l.whalley@bath.ac.uk | |
7cf14a1904b17c4284ccaf9831aad5334765dde3 | 07d70fa9dc518ef4c7f4d0065ab47b930ef64a05 | /api_emulator/redfish/memory.py | 9d49d3a3e1ceccddafc2d5296ec283fd9c5b1cfb | [
"BSD-3-Clause"
] | permissive | fetahi/Redfish-Interface-Emulator-1 | ed5dd0c5a0d8ef820204497e4a99cc38694690e2 | d89b9a313b6ea6acc85038123fcbe91cf6cf99a0 | refs/heads/master | 2021-07-13T02:33:47.331169 | 2017-10-11T15:04:33 | 2017-10-11T15:04:33 | 103,956,434 | 0 | 0 | null | 2017-09-18T15:21:40 | 2017-09-18T15:21:40 | null | UTF-8 | Python | false | false | 2,081 | py | # Copyright Notice:
# Copyright 2016 Distributed Management Task Force, Inc. All rights reserved.
# License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/Redfish-Interface-Emulator/LICENSE.md
# Redfish Memorys and Memory Resources. Based on version 1.0.0
from flask_restful import Resource
imp... | [
"fetahi.wuhib@ericsson.com"
] | fetahi.wuhib@ericsson.com |
26f054cc7b5e9732066581e3f243a6f48aaa449f | 9172ea51864ae8a44631430d5044b14adad94e56 | /src/problem_001.py | 1bfa1d86e5bb8c7b2277f887a625730f7e636d79 | [] | no_license | ShZgZ/MyProjectEuler | 6cb20e3a8ed8d842cad2b9664b96eeddde48acae | 8853ab89591be1975e82e47a821a49d1ea469e53 | refs/heads/master | 2022-10-22T09:29:57.253819 | 2020-06-08T10:42:06 | 2020-06-08T10:42:06 | 268,762,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,186 | py | """Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.
Find the sum of all the multiples of 3 or 5 below 1000.
和訳:3と5の倍数
10未満の自然数で3と5の倍数は3,5,6,9となり、これらの倍数の和は23となる。
1000未満の3と5の倍数の和を求めよ。
"""
import doctest
def main():
... | [
"s.shogo.z89@gmail.com"
] | s.shogo.z89@gmail.com |
0323f4528a16c0cda897844c311d5d144cd8dbcb | 0bf0ed0b69d2a3cbdb9dad664aea6b2c597b5af8 | /Weather.py | 93e10beda5d5945918bee5098e04c794ae0ca4a9 | [] | no_license | Vivianwcao/Lab_1 | 557aa597bb569eca73338b409027f961ebb83254 | 5e9336ebf20544fe477e3aca463f9139a7747b98 | refs/heads/master | 2020-12-07T14:18:08.829958 | 2020-01-09T18:56:59 | 2020-01-09T18:56:59 | 232,736,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | celcius = 10
fahrenheit = 9/5 * celcius + 32
print("Temperature:" + str (celcius) + "degrees")
print("Temperature:" + str (fahrenheit) + "degrees")
| [
"vivian.w.cao@gmail.com"
] | vivian.w.cao@gmail.com |
438c876dfe378cf28adc2d88b1096189e1a9c26b | 52a1ccbc8147cce7ddaf808e1fc260b76dc4a3e0 | /test/test_cdbdict.py | 3ac85b0c78c674c8a3628fb9aa8dc66c5edd8f77 | [] | no_license | martinbudden/mediawiki2cdb | 5073ddfe442ae55720737f16b63102c7dc40945e | 828dd286850545ca8e0453a88f42b413b16b9868 | refs/heads/master | 2020-12-24T17:44:54.145353 | 2010-04-28T13:14:20 | 2010-04-28T13:14:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,906 | py | """
CDB dictionary test module.
"""
import unittest
import os
from mediawikicdb.cdbdict import CdbDict, CdbDictIntKey, CdbDictIntValue
#from mediawikicdb import CdbDict, CdbDictIntKey, CdbDictIntValue
class CDBDictTestCase(unittest.TestCase):
"""Basic test for cdbdict."""
def setUp(self):
"""Create ... | [
"martinbudden@Martin-Buddens-MacBook-Pro-128.local"
] | martinbudden@Martin-Buddens-MacBook-Pro-128.local |
a5f438eda07a505719c1d571ca497d0f6d686280 | fa12db8422b4a39c8fa3044936d75eba2637c5c0 | /db.py | 1162edbd0b51a04fcc5589bb1ddfc2cc9881f2bf | [] | no_license | ericmeme321/stock | ac648186ffdf13a1e644c86e58735af6a6c7f585 | 057f45f870ee1e5013c9d86aeb4933f09810874b | refs/heads/main | 2023-07-29T00:08:39.451252 | 2021-09-16T14:14:24 | 2021-09-16T14:14:24 | 403,338,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,018 | py | import mysql.connector
from mysql.connector import Error
def DBinsert(stock_data, stock_name):
try:
# 連接 MySQL/MariaDB 資料庫
connection = mysql.connector.connect(
host='localhost', # 主機名稱
database='stock', # 資料庫名稱
user='root', # 帳號
pass... | [
"ericmeme321@gmail.com"
] | ericmeme321@gmail.com |
cb916fc056750611a6e62f2972d1bc514726e31f | 9caf26afb3db3fab6e60a27db57e30e4b1decb58 | /code/testmodel/多线程切换模型/thread-switch-model.py | 6edcbaf3b8169b8533f759627d1a9734bf3486e1 | [] | no_license | xjy0508xjy/Maixpy | c584629805438fcf9906fdccfb568d3d4d072b92 | c3efe97e9009d9f5d4f53ece1533c899d1a0e98a | refs/heads/master | 2023-06-30T19:43:52.688414 | 2021-07-26T03:07:02 | 2021-07-26T03:07:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,556 | py | import sensor,image,lcd,time
import KPU as kpu
import _thread
return_meg=['cheak']
WARNING={'cheak':'cheaking','unmask':'please mask','masks':'take off mask and waiting FACE cheak'}
def setsenor():
lcd.init(freq=15000000)
sensor.reset()
sensor.set_pixformat(sensor.RGB565)
sensor.set_framesize(sensor.QVG... | [
"841891647@qq.com"
] | 841891647@qq.com |
9ad3082f6beb7fe141b33b6a3a2165ebd2c6109d | 14aad7b56c019f126d5d6d0581603d8e8ae8ae72 | /god.works-v0.01.py | c8d3e2eb9a328bfab73919ba0124f8442f7e50f5 | [] | no_license | zombieleet/Open_Verse | 6d1c9325ca52e458a699e8ddff03c519559ea32b | 363031ac8ca7cf41fd394cd6c07ad0ed514aaeca | refs/heads/master | 2020-12-24T10:33:09.520660 | 2015-08-05T17:32:03 | 2015-08-05T17:32:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,003 | py | import tkinter as tk
calc = tk.Tk()
calc.title("God.Works")
FRONT_PAGE = ['OT','NT']
buttons = [
'OT', 'NT']
"""
, '9', '*', 'C',
'4', '5', '6', '/', 'Neg',
'1', '2', '3', '-', '$',
'0', '.', '=', '+', '@' ]
"""
# set up GUI
row = 1
col = 0
for i in buttons:
button_style = 'raised'
action = ... | [
"kjphillips@suffolk.edu"
] | kjphillips@suffolk.edu |
3e1402dff571bf38b0da4764ff96cf356c407fcd | d1c86538a646bbf6b2d22a77b6de1325d13ae90f | /utils/temporal.py | cfe6d6ba385919241acfd9b85bb8f7998448c46b | [] | no_license | xuecheng27/WWW21-Structural-Information | 48904d0df34d9fcb069e709290d1e33c5fc76614 | 342d5880e522158b48219fe21a403abf5e8954e6 | refs/heads/main | 2023-02-20T21:33:13.123467 | 2021-01-23T11:00:46 | 2021-01-23T11:00:46 | 332,164,339 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,127 | py | import pandas as pd
import numpy as np
def edgelist2snapshots(filepath, g):
"""Convert a edgelist with timestamps into g snapshots.
Arguments:
filepath (str): the filepath of the edgelist
g (int): the number of graph snapshots
"""
df = pd.read_csv(filepath, sep='\s+', header=None, na... | [
"51237370+xuecheng27@users.noreply.github.com"
] | 51237370+xuecheng27@users.noreply.github.com |
f25b3a1838705336ae470c5e888b6d6e3172dd4a | f4244b1be1af8caa3d8848d679a2aa6d0b8fce2d | /NumberFun/ifPalindrome.py | 408e0cf0cc6e727aad8829ad0a6620d5b71c540a | [] | no_license | Sappadilla/NumberFun | ea4de65f80f7c6d70e6e659429b93f1db4e3f9f0 | 70010e97c7f9a86e83cc5e7f87e272c40cd3d8e9 | refs/heads/master | 2021-05-14T03:36:40.539911 | 2018-01-08T03:01:04 | 2018-01-08T03:01:04 | 116,621,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | #given input word, determine if it's a palindrome
def ifPalindrome(word):
if len(word) == 0: return True
if len(word) == 1: return True
else: return word[0] == word[-1] and ifPalindrome(word[1:-1])
def main():
#print(ifPalindrome("racecar"))
#print(ifPalindrome("tacocat"))
#print(ifP... | [
"noreply@github.com"
] | Sappadilla.noreply@github.com |
57ccbe6a175d71c2d9c38ec16fbf63bc2a87951d | 143186a58fa0d0395823eb2be7861155f147ced2 | /Python_Interview_Questions/leetcode/tests/Q88_merge_sorted_array_test.py | 2398d6b2374d832edc9402cc1f2e9527140e2ef9 | [] | no_license | MLgeek96/Interview-Preparation-Kit | 04dbda8259d5faaa1298f11c741de32744912fc7 | 39bfa35f74455df07b93b6d4e2378a6f2e556528 | refs/heads/master | 2023-08-14T19:12:39.913505 | 2023-07-25T13:55:32 | 2023-07-25T13:55:32 | 260,638,941 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | import pytest
from leetcode.problem_sets.Q88_merge_sorted_array import merge
print(merge.__doc__)
def test_merge():
nums1 = [1,2,3,0,0,0]
m = 3
nums2 = [2,5,6]
n = 3
assert merge(nums1, m, nums2, n) == [1,2,2,3,5,6]
nums1 = [1]
m = 1
nums2 = []
n = 0
assert merge(nums1, m, num... | [
"jacson.chong@bigpayme.com"
] | jacson.chong@bigpayme.com |
c091495cb1882df88af2fa73b44c05f99998e8ca | 1d2648f6d3ae227803c82fa4b7d505903a3f4daa | /uediadd/settings.py | e449ac620786e21751e20fff3652542e2aadb1fb | [] | no_license | devcoder007/Uediadd | dc55977c7de2475ca786074657091739f88e4728 | 02e66faf4e27fa8b3b3b4acebe13eab4f1bd10ea | refs/heads/master | 2022-06-03T03:07:10.550506 | 2020-01-22T21:49:45 | 2020-01-22T21:49:45 | 234,139,165 | 0 | 0 | null | 2022-05-25T03:01:57 | 2020-01-15T17:51:29 | Python | UTF-8 | Python | false | false | 4,630 | py | """
Django settings for uediadd project.
Generated by 'django-admin startproject' using Django 2.2.
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 os
# B... | [
"rish@MacBook.local"
] | rish@MacBook.local |
ecdba4bb32ab0849dc1dc67fd70d841293255b5d | 4348a28b5c8357c751bb81dfe5c2035cc72fbd6b | /Partido.py | ddd1c0c1f13af9c5c2541c1c17f0046262d37e71 | [] | no_license | Losajhonny/webscraping | 9a91bb525c2f48c8cba76a40d0d2b835a1488d4f | 7134fb39aa1d74786cd03d54c12d8c16984de0cc | refs/heads/master | 2023-01-06T19:50:35.675755 | 2020-11-05T23:24:40 | 2020-11-05T23:24:40 | 298,959,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,435 | py | class Partido:
yearIni = ''
yearFin = ''
jornadaNombre = ''
jornadaNumero = ''
fecha = ''
local_ta = ''
local_tr = ''
local_gl = ''
local = ''
visit_ta = ''
visit_tr = ''
visit_gl = ''
visit = ''
def toString(self):
return self.yearIni + ',... | [
"2564550230101@ingenieria.usac.edu.gt"
] | 2564550230101@ingenieria.usac.edu.gt |
2546bdab1e9803a59b26742dbc22ff1ef7476613 | ad4244cbe9943027b794f0f4d974b1702413b0fd | /ShortSaleRatio_Windows.py | 333cff60cb9eceefa2d46009041a40dadc8a5629 | [] | no_license | kkutsutani/ShortSaleRatio_Windows | 9d32fdaf8f9fde0255b16b29cdcc9c040cfbb4bc | 693a833221ab96e755cd9698dec41adfd0ae1cb6 | refs/heads/main | 2023-03-04T19:27:11.488833 | 2021-02-12T07:53:35 | 2021-02-12T07:53:35 | 338,244,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,064 | py | import os
import xlrd
import pprint
flist = os.listdir(path='xls') # ディレクトリ(xls)の全ファイル名(パス含まず)のリストを返す
print( len(flist) ) # リストのサイズを返す
xlslist = [] # リストを定義
meigara = 9432 # ★銘柄番号
# 拡張子xls のファイルリスト作成
for fname in flist: # 現在パスの「全ファイル」による... | [
"kkutsutani@oregano.ocn.ne.jp"
] | kkutsutani@oregano.ocn.ne.jp |
c1690f414026618d969eb3f83caaa9bcaa303ccc | c80bf22827ecf6cab725170f20a6cfe2d19e2d20 | /exp3_DQN/maze_env.py | 018a0f52e8df414e8ebfa7a03b87ad55acdf5888 | [] | no_license | Drawlone/RL | 5753c9278c0df28e767c84a19bcdab9ebd56ea2a | 06dd8494c54516a7edd72c711251637814e447d0 | refs/heads/master | 2022-07-03T00:40:16.349117 | 2020-05-19T04:49:58 | 2020-05-19T04:49:58 | 265,155,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,082 | py | """
Reinforcement learning maze example.
Red rectangle: explorer.
Black rectangles: hells [reward = -1].
Yellow bin circle: paradise [reward = +1].
All other states: ground [reward = 0].
This script is the environment part of this example.
The RL is in RL_brain.py.
View more on m... | [
"1419076398@qq.com"
] | 1419076398@qq.com |
d6b7953295e0c4a5bb26ea5f6f41ed972a6a132b | 7b475586d089f7da385bf125c2e3eb135e04edb7 | /petfactory/modelling/curves/get_positions_on_circle_perimeter.py | 9938c10361390a70adcd4cbf5d4eb09a2e4f0923 | [] | no_license | EriLee/petfactory_maya_scripts | e3085654f36fcb56b95601b4f801da9d4d990a8a | ba002212d61c94e87579fdbc5968282713b895b6 | refs/heads/master | 2021-01-18T08:00:47.123047 | 2015-03-30T08:10:35 | 2015-03-30T08:10:35 | 33,191,651 | 2 | 2 | null | 2015-03-31T14:57:41 | 2015-03-31T14:57:41 | null | UTF-8 | Python | false | false | 1,333 | py | import pymel.core as pm
import math
def loc(x,y,z=0):
loc = pm.spaceLocator()
loc.translate.set((x,y,z))
loc.getShape().localScale.set(.05, .05, .05)
# the hypoytenuse
crv = pm.PyNode('crv')
pos_list = crv.getCVs()
r = 1.0
circ_center = pm.datatypes.Vector(2,1,0)
mid_vec = pos_list[1] - pos_list[0]
... | [
"johan@Johans-Mac-Pro.local"
] | johan@Johans-Mac-Pro.local |
90543404593bfada9faff01457b9d19d4ec39de2 | 812b5bb1110d1853ef6978c93fc88b7ae53a0813 | /aquaara/settings.py | d902773b8b1c77bb88487af504e2466552ae2461 | [] | no_license | SamuelSilvaAraujo/aquaara | 841ff1350c04c700c068be4bb885764fe8a4fdc6 | 8f84464c0bfd050e61fa3e2827b7747b58ab81ec | refs/heads/master | 2022-12-27T08:50:46.153919 | 2020-10-10T01:15:18 | 2020-10-10T01:15:18 | 302,781,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,482 | py | """
Django settings for aquaara project.
Generated by 'django-admin startproject' using Django 2.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
#... | [
"samuelsas.samuel18@gmail.com"
] | samuelsas.samuel18@gmail.com |
9ef14bf76e360aeb512485962327cc1cc8cd093f | 7616b18f708dbced335db0b93b736bdf6445cbce | /test.py | 15a2b070abf0028c0018ccb5274d6b95ca0e13a8 | [] | no_license | jireland88/percolation | 311d43a652624d29e1f683ef3f4d418238496808 | d0de18b9aafd6a055be35be7de32a50e5ca0832f | refs/heads/main | 2023-05-01T00:08:21.135928 | 2021-05-16T22:44:09 | 2021-05-16T22:44:09 | 361,247,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | from percolation import *
from path_helpers import *
from path_finders import *
iters = 50
P_05 = Percolation(np.zeros((5, 5)), RecPathFinder(TriangleNeighbours()))
PT = PercolationTools(P_05)
PT.plot_centre_prob(50, 1) | [
"jakeireland88@protonmail.com"
] | jakeireland88@protonmail.com |
19c4b0d54104cd06b5b95603cea72a1da9812988 | a3e09d68b73f3090c240920073bf285ce1ee0238 | /docs/source/conf.py | 649e6ddeba86419a555adef0d981dcad6450b24b | [
"MIT"
] | permissive | rmorshea/jotting | 8750fc044c898c96e25b6acda4eadd0f57726cee | bad834f6bec1af049cabd1a4dc10504ea849de03 | refs/heads/master | 2021-09-20T08:28:23.465095 | 2018-03-04T02:06:30 | 2018-03-04T02:06:30 | 109,722,665 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,563 | py | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/stable/config
# -- Path setup ------------------------------------------------------------... | [
"ryan.morshead@gmail.com"
] | ryan.morshead@gmail.com |
d10be5267e00090902d64733b7fc541f9f2561ef | ae596ab3ea6acca7265c2043aef0a9b9558f12b0 | /Django/django-ex 3.0.2/ZTraining/F/views.py | 71ac645374609770bcb9005e19c4d071dff77ea0 | [] | no_license | LexusLight/PythonLearn | 4013edf7b83aec7ab63d54c39617272c43eee584 | 1b62c28d4619f757e0d3691e444d61d69cc3c91f | refs/heads/master | 2021-09-08T20:00:41.696775 | 2021-09-01T22:39:23 | 2021-09-01T22:39:23 | 192,084,614 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,658 | py | from django.shortcuts import render
from django.http import HttpResponseRedirect,HttpResponse,HttpResponsePermanentRedirect, HttpRequest
from django.views.generic import View #Для создания класса
from .models import User, Message
from .forms import UserForm
# Create your views here.
def reg(request):
# if request... | [
"kostyaelizarov@mail.ru"
] | kostyaelizarov@mail.ru |
c975b1b26eec3465191ab42aad5a295e15539372 | 3cb8680bdf40e36a60952691f14a46c7ab912c74 | /Map/migrations/0001_initial.py | b70afdfc3ed7271a2efef301b84e1e946a07c345 | [] | no_license | MichaelMa2014/CivilAviation | 3a81a4f5a281de3fc10fc0aa2f1c70f17dd0cf7b | e7ec921b589f10c6dcd340e0eff249e3878ffd76 | refs/heads/master | 2021-06-11T19:28:45.400398 | 2017-03-04T02:58:59 | 2017-03-04T02:58:59 | 64,899,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,676 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-01-22 17:50
from __future__ import unicode_literals
import Map.models
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
... | [
"ljl_buaa@126.com"
] | ljl_buaa@126.com |
625c33aedcdbc5998354b305955b42568c3b3411 | caceb60f71165772b6d6155f619e79189e7c80a9 | /第一期/杭州-冬/第二次任务/iter_eg.py | 03278430ce85f5d7610e38e2ec3e82ebd219e29e | [
"Apache-2.0"
] | permissive | beidou9313/deeptest | ff41999bb3eb5081cdc8d7523587d7bc11be5fea | e046cdd35bd63e9430416ea6954b1aaef4bc50d5 | refs/heads/master | 2021-04-26T23:06:08.890071 | 2019-04-03T02:18:44 | 2019-04-03T02:18:44 | 123,931,080 | 0 | 0 | Apache-2.0 | 2018-03-05T14:25:54 | 2018-03-05T14:25:53 | null | UTF-8 | Python | false | false | 1,487 | py | #--coding:utf-8--
#迭代含义:可以通过for in循环来从头至尾循环访问其中元素的形式 就叫迭代。 可用于迭代的对象常叫 可迭代对象。所谓遍历 就是访问其中每个元素
## 用instance()判断目标对象是否为某种类型.这里判断是否为 可迭代对象
from collections import Iterable
from collections import Iterator
list_1=[0,1,2]
print(isinstance(list_1,Iterable))
#判断是否为迭代器
print(isinstance(list_1,Iterator))
#迭代器:一个对象作为参数可以用于next()... | [
"lw20140705@163.com"
] | lw20140705@163.com |
605e989d78c320d738acb3228b5b0603b16caddb | ce59a94a69b8fe3def1ff78960c5e2f0e39a722b | /scenes/plugins/scene_stretchgoals.py | 8c24eed97969eb31d36629ef0c411150e81389c2 | [
"Apache-2.0"
] | permissive | pretix/pretix-screenshots | 8503165edae82b4aedd0bccdc26e55d590114a97 | 5956ca3f8baf7ff38e59cb8f571134ce1bf2a6aa | refs/heads/master | 2022-10-15T15:36:12.298581 | 2022-10-07T14:19:27 | 2022-10-07T14:19:27 | 98,909,158 | 15 | 4 | null | null | null | null | UTF-8 | Python | false | false | 3,253 | py | import json
import random
import time
from datetime import timedelta
import pytest
from decimal import Decimal
from django.conf import settings
from django.utils.timezone import now
from django.utils.translation import gettext as _
from selenium.webdriver.common.by import By
from selenium.webdriver.support.wait impor... | [
"mail@raphaelmichel.de"
] | mail@raphaelmichel.de |
0882fcb47bebd1dc53eb867eef4cf8a6fec37fe4 | 4d8b3f23d6de766425d71264a854fd85569eb239 | /generateConfig.py | 6a136320f7cd7a3bb6f5ccfeace038dd1366d821 | [
"MIT"
] | permissive | BrendanHalley/infping | 3f07a5178fed4531ce5076c6b7c8cd0a882b68c4 | 32c52befd7fce45c3d9a5dde1eb2af6a13c5a64e | refs/heads/master | 2020-07-28T21:00:57.622546 | 2020-02-16T23:11:43 | 2020-02-16T23:11:43 | 209,536,587 | 0 | 0 | MIT | 2019-09-19T11:29:34 | 2019-09-19T11:29:34 | null | UTF-8 | Python | false | false | 510 | py | import urllib.request
import re
regex = r"(\[.*\].*\[(.*)\])"
url = 'https://raw.githubusercontent.com/jlu5/netmeter.club/confv2/Targets-Shared'
response = urllib.request.urlopen(url)
data = response.read()
text = data.decode('utf-8')
matches = re.finditer(regex, text, re.MULTILINE)
for matchNum, match in enumerate(... | [
"bhalley@Brendans-MacBook-Pro.local"
] | bhalley@Brendans-MacBook-Pro.local |
c86b71c71ec2eedf029e8a7c177ed3564e14f23c | 34ae7274b072b9eb84c0b94e99a1ee6b3bc2c926 | /Python/Python_base/lesson_003/03_division.py | e47beabf5bcb72537f7edcfa585a0a01080ce937 | [] | no_license | Alister-uz/lessons | 6541636b9432045e2859a8838441b2c4116aca53 | 6d4ead2f95f893e91a7ba75ccadaaec0caf3759b | refs/heads/master | 2022-12-14T16:15:31.128064 | 2020-09-05T16:24:17 | 2020-09-05T16:24:17 | 289,890,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | # -*- coding: utf-8 -*-
# (цикл while)
# даны целые положительные числа a и b (a > b)
# Определить результат целочисленного деления a на b, с помощью цикла while,
# __НЕ__ используя ни одной из операций деления: ни деления с плавающей точкой /, ни целочисленного деления //
# и взятия остатка %
# Формат вывода:
# Це... | [
"khasankhodjaev@gmail.com"
] | khasankhodjaev@gmail.com |
6fb551cdb3e28ef196baa88670818bd52cc39b38 | 41adb4208413fe73ac43db4b427ad44f15bf8ea7 | /python/vinicius/PC_MeanShift_simulated/sim_6/pc4/par_0.6/config.py | 1acf9dc87c6b15d988039c673a8f5254e25759ac | [] | no_license | emilleishida/MLSNeSpectra | daebb13307586e0450f32c87495dcf0ef3f59c10 | 182640f93b68722dbd4ca5e45916b849daa65da4 | refs/heads/master | 2016-09-15T17:01:09.570337 | 2015-12-08T16:17:25 | 2015-12-08T16:17:25 | 42,939,754 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,954 | py |
#####################################################################################
'''
Original data:
Used for the reduction,
not needed if doing clusreing only
'''
ORG_DATA = '/home/vinicius/MLSNeSpectra/python/SN_simulator/simulated_data/6/derivatives.dat'
####################################################... | [
"viniciusbusti@gmail.com"
] | viniciusbusti@gmail.com |
fdd7f8ee95f616f5aa5372945a0110179f64cea7 | 4c499782655f8e929a5dd6b39d6c5d378fcfd7bd | /power_with_addition.py | 1d4fa1bd5ca75f69b37dd4de46f043bd736e9f2f | [] | no_license | IanCBrown/practice_questions | 53a3fd66bee807f6e30e6d57632966f146c704c9 | 838b94c26cd3c26b76c3908277944a3b5f9bc7c7 | refs/heads/master | 2021-08-06T07:14:57.237709 | 2020-04-16T05:03:33 | 2020-04-16T05:03:33 | 149,521,025 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py |
def power(a, b):
if b == 0:
return 1
prev = a
total = a
for i in range(b - 1):
for j in range(a - 1):
total += a
prev = total
return total
print(power(5,3))
| [
"icb0004@auburn.edu"
] | icb0004@auburn.edu |
947e7d0b2f584aa3d47e30ea9438057dd592df00 | 75dcb56e318688499bdab789262839e7f58bd4f6 | /_algorithms_challenges/leetcode/lc-all-solutions/543.diameter-of-binary-tree/diameter-of-binary-tree.py | 925bed2373395d7fcfc71f9d53c052df1004c1c8 | [] | no_license | syurskyi/Algorithms_and_Data_Structure | 9a1f358577e51e89c862d0f93f373b7f20ddd261 | 929dde1723fb2f54870c8a9badc80fc23e8400d3 | refs/heads/master | 2023-02-22T17:55:55.453535 | 2022-12-23T03:15:00 | 2022-12-23T03:15:00 | 226,243,987 | 4 | 1 | null | 2023-02-07T21:01:45 | 2019-12-06T04:14:10 | Jupyter Notebook | UTF-8 | Python | false | false | 537 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def diameterOfBinaryTree(self, root):
"""
:type root: TreeNode
:rtype: int
"""
self.ans = 0
def df... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
d5e07aa271294e9efcb13756857b8b1a8a51f9c5 | b7864b7beb3567cfd84877f887958b67065cb58d | /mypractice/app/migrations/0002_new_database_course.py | 87582416929397acbcfc5c097ca9402a2a313d4c | [] | no_license | AliMalik9599/MyPractice | 2d63710c35fe403a1be260acda031550487cc1e6 | 4175bfe92caa349e47025f3f1e72c98b5853a821 | refs/heads/main | 2023-03-10T05:13:54.851456 | 2020-12-21T13:46:53 | 2020-12-21T13:46:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,135 | py | from django.db import migrations, models
from app.models import Course, Skill, Card
import datetime
schema = 'Answer the following question based on this schema: </br> branch(branch-name, branch-city, assets) </br> ' \
'customer(customer-name, customer-street, customer-city) </br> account(branch-name, account... | [
"MbMv2017"
] | MbMv2017 |
41c8693e05e937b38bcf53526df92cf7209d924d | 59043eaa3e8e437901a81960619828806d894c1c | /venv/Lib/site-packages/boto3-stubs/resources/action.pyi | 572289c1ebb96340a28e80ed94d14f24dd6ee9b2 | [] | no_license | erschese/Udacity_Project_3_AWS | 7e06b2ca228c1ea84cb169f184a83227f39ba754 | c40813e135f0fb15c64e769fd36f5e413b77e078 | refs/heads/master | 2022-12-31T10:03:14.222790 | 2020-10-25T08:47:49 | 2020-10-25T08:47:49 | 307,058,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,354 | pyi | # pylint: disable=unused-argument,multiple-statements,super-init-not-called
import logging
from typing import List, Dict, Any, Union, Callable
from botocore.hooks import BaseEventHooks
from boto3.resources.model import Action, Waiter
from boto3.resources.factory import ResourceFactory
from boto3.resources.base import... | [
"serschen@yahoo.de"
] | serschen@yahoo.de |
d04c5189276ac69b90876d250842817a4b4da3b7 | e591660cba22e78d2bed0b185aaea41049f440f3 | /fetch_player_urls/fetch_player_urls/settings.py | b8bac30ebb46163ed01785995a6f769869bf8182 | [] | no_license | Joe-Ferrara/nba-draft-history | f4faa86e9bcb0b52b1b7bfa8f134f5f9c64d93b3 | 9aa387f437828c5396cbf777f494db8123cb93e2 | refs/heads/master | 2022-11-23T18:02:14.261973 | 2020-07-18T00:06:42 | 2020-07-18T00:06:42 | 275,638,425 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,194 | py | # -*- coding: utf-8 -*-
# Scrapy settings for fetch_player_urls project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://docs.scrapy.org/en/latest/topics/settings.html
# https://docs.scrapy.org/en/... | [
"jferrara90@gmail.com"
] | jferrara90@gmail.com |
f03d531ce385545c40a3fe6f1781c9cf8895049e | f155652505e491afd6a6f33b2b8ad2881bb022d2 | /app/xsbk.py | 4c4e9efda5db28509aa27648f74c96bbe521172f | [
"MIT"
] | permissive | yanglgtm/cobweb | 7dd1287cfaf361bae00e83831a8726968d5cb4a8 | 94092b8144c7f9b8edde1ef9b6b58b46ba07b87f | refs/heads/master | 2022-05-12T06:24:49.916369 | 2017-10-20T10:46:08 | 2017-10-20T10:46:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,330 | py | # 抓取嗅事百科的段子
import sys
sys.path.append('..')
from cobweb.downloader import *
from cobweb.parser import *
import time
import re
def parse_joke(self):
data = self.soup.find_all('div', class_='article block untagged mb15')
content_pattern = re.compile("<div.*?content\">(.*?)<!--(.*?)-->.*?</div>", re.S)
self... | [
"jiangyang33@gmail.com"
] | jiangyang33@gmail.com |
7e62bd4245f803eee240c0e728aa73886ec8b2f4 | da9753df623ce9aeec9bebc8391ad8287b1732d9 | /AACForm/makeReports/forms/admin_forms.py | fd41beb3ad3201f4fef673206822363f3ab67d36 | [] | no_license | jdboyd-github/AAC-Capstone | 2caa840bb4a6986c6f96130b67b1a77b6a0a12fd | 472a6fd487811002a60a7812ae2eef941e7182cc | refs/heads/master | 2023-05-24T05:42:15.632005 | 2021-03-25T18:47:21 | 2021-03-25T18:47:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,940 | py | """
This file contains forms to administer the website
"""
from django import forms
from makeReports.models import (
Announcement,
College,
DegreeProgram,
Department,
GradGoal,
Report,
Rubric
)
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User... | [
"smccarty@unomaha.edu"
] | smccarty@unomaha.edu |
de67995034fb569460fc19fdaa1b4c239db4d86d | 01edd1a8172ef0bac49e3bf33b590e5c21b61b12 | /pyexcel/plugins/sources/http.py | 50e27c57f3c6e9a3778f92c7b105c9874c1945d4 | [
"BSD-3-Clause"
] | permissive | stephenrauch/pyexcel | 89dc2868fc8f64bd6ec5eec30a0e2e8060e43fc0 | 9e4b5645e8639e874f46f7d3d846c13524f5e3e2 | refs/heads/master | 2020-12-31T00:30:39.208207 | 2017-03-28T23:36:32 | 2017-03-28T23:36:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,790 | py | """
pyexcel.source.http
~~~~~~~~~~~~~~~~~~~
Representation of http sources
:copyright: (c) 2015-2017 by Onni Software Ltd.
:license: New BSD License
"""
from pyexcel._compact import request, PY2
from pyexcel.source import Source
import pyexcel.constants as constants
import pyexcel.internal.parser... | [
"wangc_2011@hotmail.com"
] | wangc_2011@hotmail.com |
1d76b76cbfbfd483677ffc3702ea97a576b759e2 | c661708813284f1b9059d8e2aac796d8eb9f9a66 | /LED-Projects/blinkSignal.py | dfe61279606125184474400d936b66850d62cf86 | [] | no_license | KatieKrupczak/Raspberry-Pi-Projects | 1a48a0cdb479f70920ad03e457be19e911ef9a5d | ef3d616c93f21f55d192f24f7771ccf21343acf6 | refs/heads/main | 2023-07-02T04:44:29.263592 | 2021-08-10T20:50:41 | 2021-08-10T20:50:41 | 385,388,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | from gpiozero import LED
from signal import pause
red = LED(2)
red.blink(0.5,0.5)
pause() | [
"katie@krupczak.org"
] | katie@krupczak.org |
32b7842be9c70645a3fed1f06460c58442dff64c | 273f94d2707ef91104c74cb3de67a4d3049b3308 | /10_decorator/adder.py | f24bb0db65783fd169e6a9eb07d32f73cc0bc8fa | [] | no_license | sonicfrog-z/python_practice | b1ff8f22bff7c6f873afcb5b8c0fb9aa3d27ce50 | 62b7f094b235204c12566078b40c84938632b192 | refs/heads/master | 2020-09-29T11:28:35.484429 | 2019-12-25T04:57:36 | 2019-12-25T04:57:36 | 227,029,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | class Adder:
def __init__(self, base):
self._base = base
def __call__(self, value):
return self._base + value
if __name__ == '__main__':
adder5 = Adder(5)
print(adder5(10))
print(adder5(3))
| [
"noreply@github.com"
] | sonicfrog-z.noreply@github.com |
135c752690ac2102b5014d59703e71a4b285792d | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_circumscribed.py | 855995f3ac2c7fd589f34f7fe49081d6facfa5ce | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py |
from xai.brain.wordbase.verbs._circumscribe import _CIRCUMSCRIBE
#calss header
class _CIRCUMSCRIBED(_CIRCUMSCRIBE, ):
def __init__(self,):
_CIRCUMSCRIBE.__init__(self)
self.name = "CIRCUMSCRIBED"
self.specie = 'verbs'
self.basic = "circumscribe"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
d1d059fd1b5afce933aad5bebd15a1c4f23d5d84 | 0a86a749db830a4e37ea56bee5b85608f362f9ca | /src/todo/views.py | 4294bac19360252e0e4a36e13326398b5e6d3e4b | [] | no_license | kalpitan/todobackend | ce1f5135055098f8edbc0ed98112e7b0bf7f3a60 | d7ef3cf878309cb0ecbf5e950960012a6241342c | refs/heads/master | 2020-06-11T04:43:24.146800 | 2016-12-10T09:16:49 | 2016-12-10T09:16:49 | 76,102,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | from django.shortcuts import render
from todo.models import TodoItem
from todo.serializers import TodoItemSerializer
from rest_framework import status
from rest_framework import viewsets
from rest_framework.reverse import reverse
from rest_framework.decorators import list_route
from rest_framework.response import Respo... | [
"kalpitan@gmail.com"
] | kalpitan@gmail.com |
caed78d6766fc3bd1951a808d82dd3a22ab5f2b2 | cec0f1c7425c1cfcfefdae67d99ab5d14e37c34c | /Butler/ButlerHelper.py | 8b184bbf7aa044baa7dcd557ed26846c65481b4e | [] | no_license | SaintDismas1/Scripts | 7e2ec1feebec14d343adb62cdc57318f23eea3f2 | cd4a89e3e9b8f8a53979f607e366059fd209ee18 | refs/heads/master | 2023-08-02T19:29:25.050839 | 2021-09-15T12:37:18 | 2021-09-15T12:37:18 | 407,970,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,602 | py | # ButlerHelper by Spatchel & Matsamilla
# use with ButlerProfiles.py for best results, update butlerID with butler serial below
# Last updated 3/16/21 -
# •Cap option
# •Wont grab armor if layer is occupied
# •Stops if butler not found
# •Waits until in range of butler
###################################... | [
"noreply@github.com"
] | SaintDismas1.noreply@github.com |
1c8f449c5acc848b57e4a84f8e91b355a581523f | 9ae2918854d208780e247e5477b396bc99642ce6 | /001-010/002.py | 29bdb561039d50ca0f4d7312f4c3a10302c03eb3 | [
"MIT"
] | permissive | KKishikawa/project-euler-for-study-code | 3ff45aadc5886dd8ff800fb3f81e0bffc943d3b8 | fd46f1ee3211b5daa6d042cc993e55f631c9caac | refs/heads/master | 2020-03-27T13:16:43.863976 | 2018-09-29T19:43:30 | 2018-09-29T19:43:30 | 146,600,216 | 0 | 0 | MIT | 2018-09-29T19:43:31 | 2018-08-29T12:58:55 | JavaScript | UTF-8 | Python | false | false | 135 | py | num1 = 1
num2 = 2
sum = 0
while num2 <= 4_000_000:
if num2 % 2 == 0:
sum += num2
num1, num2 = num2, (num1 + num2)
print(sum)
| [
"noreply@github.com"
] | KKishikawa.noreply@github.com |
ce0bd4c4c561ed183c1da959ce765b324b251aeb | aaccadb5c766fa876b27ff6f2ac2a093f1ebb0c6 | /arm/злые эксперименты/гыгага.py | 9642b68a27ec65624da66bcc338173ec13cc8cd1 | [] | no_license | IvanLkt/Project_Copter | d1e6e6fcdb657a2b94342fb0be83f45e3385244f | db025dcd6ff49b12857ec2de010847a65504d881 | refs/heads/master | 2021-06-17T16:04:01.296310 | 2017-05-24T15:28:10 | 2017-05-24T15:28:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | # -*- coding: utf-8 -*-
import pylab
from mpl_toolkits.mplot3d import Axes3D
import numpy
file = open("data.txt", "r")
data = [map(float, line.split("\t")) for line in file]
def makeData():
(x,y,z) = (data[0::3],data[1::3],data[2::3])
return x, y, z
if __name__ == '__main__':
x, y, z = m... | [
"noreply@github.com"
] | IvanLkt.noreply@github.com |
cba9fbb59dfa10a6e62ead5047d6642ff8fd5631 | 6dfe292a8fe86782108c92dcb4ea9736b3062852 | /setup.py | 147a3ec8b2d9dbdc21634cdeff44988e60d9fe2e | [] | no_license | goldenberg/mnistified | 30149568598214a147208c7c217f6eda66df24cb | 0e30004200c5dca646a91f4701747f157908b851 | refs/heads/master | 2020-04-06T04:41:51.375585 | 2017-02-23T01:58:07 | 2017-02-23T01:58:07 | 82,869,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | from setuptools import setup
def parse_requirements(filename):
with open(filename) as f:
return f.readlines()
setup(
name='mnistified',
packages=['mnistified'],
include_package_data=True,
install_requires=parse_requirements('requirements.txt'),
test_requires=parse_requirements('requir... | [
"bgoldenberg@enlitic.com"
] | bgoldenberg@enlitic.com |
3e402b27515948d8ca5ba1cbffd6e8d5b25d05d1 | a3ac8c00caa7f755ede8b9575d876b24a031efdb | /web/analysis/views.py | 7ad2f057287b6a3b55d7ce499fc2ef67f29297c4 | [] | no_license | pschmied/benefit-cost-analysis | 0b14e43ccec5de5aa87a06c36c103312d0651465 | 5659570fcc2a3bcc3f559c1e2747e80f4c00216e | refs/heads/master | 2020-12-25T18:18:20.533731 | 2013-04-29T14:39:57 | 2013-04-29T14:39:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43,279 | py | from django.http import HttpResponseRedirect, HttpResponse
from django.shortcuts import render_to_response
from psrc.analysis.models import *
from psrc.analysis.calculations import *
from psrc.analysis.forms import *
from django import newforms as forms
from string import join, replace
from datetime import datetime
imp... | [
"peter@thoughtspot.net"
] | peter@thoughtspot.net |
5baf1e3833e9e4c95ed0c4f8f8d4e52613083bd9 | 6c9f0e5996664dd9d92debcaefe438d9ed3b3ca6 | /lib/networks/head/Rec_CTCHead.py | f3635e0215f4a2305db762c0b297de9dc9bd5d08 | [
"MIT"
] | permissive | yingbiaoluo/OCR_deployment | a978a60252c93c015c30cd2df44e268ff6149ea0 | a2f4635d328e7bd484fb1c86da3ca79306d852a7 | refs/heads/master | 2023-04-06T10:33:39.590716 | 2021-04-08T08:39:01 | 2021-04-08T08:39:01 | 276,579,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | from torch import nn
import torch.nn.functional as F
class CTC(nn.Module):
def __init__(self, in_channels, n_class, **kwargs):
super().__init__()
self.n_class = n_class
self.fc = nn.Linear(in_channels, n_class)
def forward(self, x): # [batch, 141, 512]
x = self.fc(x) # [batc... | [
"yingbiao_luo@163.com"
] | yingbiao_luo@163.com |
dd8d15a25768c4147ce2c773a5b0dce3c3c5ba8c | 4069734a3206e3def5dfa0f4205861a07583b451 | /apps/members/views.py | e080f4310902d22f259d8d769e0df74e36bd08ce | [] | no_license | shredz/Tool | 93155000727694d032f2c840a42fa7cf0e96e7a5 | 814d0c55b856c0b8a51fa432def351301749d9df | refs/heads/master | 2021-01-01T20:34:41.130137 | 2011-11-17T08:11:04 | 2011-11-17T08:11:04 | 2,786,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,360 | py | from django.core.context_processors import csrf
from django.http import HttpResponse, HttpResponseRedirect, Http404
from django.contrib.auth import authenticate, login as userlogin, logout as userlogout
from django.forms.util import ErrorList
from django.shortcuts import render_to_response
from models import *
from fo... | [
"sharadpai111@gmail.com"
] | sharadpai111@gmail.com |
9e61ca0ec884517b5bc6f4f207ccc7ecc1fab5de | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02379/s853900815.py | e67e21597c716cb33d750d137584d5e4bcb61215 | [] | 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 | 99 | py | import math
x1, y1, x2, y2=map(float,input().split())
x=x1-x2
y=y1-y2
h=x**2+y**2
print(h**0.5)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8f6c052d6d1328a08dd9f26b998438597943d538 | 74b598e062cd1c14c5961ab7067adbacd46b848a | /lab_ai/03.keras_create_model.py | 13c6532f6aed18a62f2563bf6d309968e4fac18f | [] | no_license | taeryu0627/face_mask_detector | 21cfa86a028055181d1d3be61344d518dbccf7ec | f9b96f0398b1dd541b1d381c7afe76ad8c6b4fd8 | refs/heads/main | 2023-06-11T06:10:00.270877 | 2021-06-30T12:47:43 | 2021-06-30T12:47:43 | 355,539,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | # 03. keras_create_model.py
import tensorflow as tf
model = tf.keras.applications.VGG16()
print(model.summary()) | [
"taeryu0627@naver.com"
] | taeryu0627@naver.com |
63f60251d95b41c910e75b02eaf6ef5add1143b6 | 14e19bcaaf917924e7bb78e4f7e6b42662ff5164 | /fancy_month01/day14_fancy/day14_1217_note/iteration_ex.py | 80dc7ba2bb6684345580b2348bbc1ac2b70cfb80 | [] | no_license | Lzffancy/Aid_study | 5b3538443ca0ad1107a83ef237459b035fef70d0 | 4ba5e5045371490d68459edd1f0a94963e0295b1 | refs/heads/master | 2023-02-22T19:11:00.867446 | 2021-01-25T13:01:35 | 2021-01-25T13:01:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | #--------------------
list1 = [1,2,3]
for each in list1:
print(each)
#--------------------
dict1 = {1:11,2:22,3:33}
iterator_dict1 = dict1.__iter__() #使其生成迭代器,dict成为迭代对象
while 1:
try:
key = iterator_dict1.__next__() #使用迭代器 迭代出结果
value =dict1[key]
print(key,value)
except StopIte... | [
"731566721@qq.com"
] | 731566721@qq.com |
0d12a4366c4ffdf0246d89a69acbbd0677ced682 | 603233844767fa25ee4d66697623174bd794a01b | /uc2_metric_generator.py | 19c00aa099878acd4f337c33bc5c32e6e09384a6 | [
"MIT"
] | permissive | 5g-media/cno-rl | 3479507ebcba1e78167b05f924e45ba371a61cfd | 264def52bfd25ca89209ad04a908c3c599dcca02 | refs/heads/master | 2022-04-20T14:19:16.532485 | 2020-04-15T10:41:06 | 2020-04-15T22:21:35 | 255,919,817 | 0 | 0 | MIT | 2020-04-15T21:59:34 | 2020-04-15T13:08:11 | null | UTF-8 | Python | false | false | 1,882 | py | from uc2_settings import METRIC_TEMPLATE, METRIC_TEMPLATE_UC2_EXEC, METRIC_TEMPLATE_UC2_CONF
def generate_metric_uc2_exec(metric_value, timestamp, tmp, vce_id):
#metric = METRIC_TEMPLATE_UC2_EXEC
metric = tmp
metric['execution']['value'] = metric_value
metric['execution']['mac'] = vce_id
#metric['m... | [
"m.kheirkhah@ucl.ac.uk"
] | m.kheirkhah@ucl.ac.uk |
9191c8485a0c9f112d79fc9f561e94b5c35a6caa | df264c442075e04bb09d82f9be1d915c070d7e09 | /BJ/G4_15685_20210406.py | 79e6ef62c989c5e56453a2dda3a95caa383459a1 | [] | no_license | Koozzi/Algorithms | ff7a73726f18e87cab9406e7b71cd5d1856df183 | 38048ac0774fcab3537bdd64f48cae7d9eb71e6f | refs/heads/master | 2021-07-06T04:59:38.564772 | 2021-05-03T08:49:56 | 2021-05-03T08:49:56 | 231,848,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | '''
시작 00:00
제출 00:56
종료
'''
from copy import deepcopy
def get_next_location(I,J,last_i,last_j):
sub_i = I - last_i
sub_j = J - last_j
next_i = last_i + sub_j
next_j = last_j - sub_i
return next_i, next_j
def make_dragon_curve(dragon_curve):
next_dragon_curve = deepcopy(dragon_curve)
l... | [
"koozzi666@gmail.com"
] | koozzi666@gmail.com |
d3ef6138de3e96f29127428c55728e1dbcddf131 | cc02568e29d86674a0e8746a4dccb49f94933f15 | /sbis.py | 419e8bb2e8d31bb902784a41d95cc2eb13f1bc78 | [] | no_license | quicksilver32/rivals_finder_test | 8f44fc97bfb5ecef2dce1907934b11c91e0e6270 | 863c50d1eaf49e53601904c08db703c91af85531 | refs/heads/master | 2020-04-08T23:47:02.205603 | 2018-12-01T15:04:31 | 2018-12-01T15:04:31 | 159,840,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,185 | py | #!/usr/bin/python3
# coding=utf-8
import codecs
import pprint
import requests
import sys
sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach())
log = pprint.PrettyPrinter(indent=4)
base_url = 'fix-online.sbis.ru'
session = requests.Session()
user_id = ""
def rpc(service, method, params):
global base_url
if... | [
"ameliya9@mail.ru"
] | ameliya9@mail.ru |
18cee653080385d873c821f33b86e5137a1d2c2e | 3a2b9a75c47cae05d974ec06d75f621decfeefdd | /base/runmethod.py | 14caac28bd5f44cf1d997e0a39c1b9ff3776a482 | [] | no_license | fan1992619/at_api | d72fc3344eeb7a15f950387a6009e4c7273e6059 | 6e61eb336523d1d59609a4d147744508c3f48729 | refs/heads/master | 2021-07-07T19:14:29.125202 | 2020-06-07T13:38:09 | 2020-06-07T13:38:09 | 152,037,744 | 0 | 1 | null | 2020-07-21T09:40:43 | 2018-10-08T07:37:59 | Python | UTF-8 | Python | false | false | 3,318 | py | # coding:utf-8
import requests
import json
import time
#解决ssl证书报错导入以下包
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
# verify=False 忽略https产生的ssl报错
import random
class RunMethod:
# 定义一个post方法
def post_main(self,url,header... | [
"fan1992619@163.com"
] | fan1992619@163.com |
b084b8900fb016f4b9475e88b75aad0b9b39e8ab | 1be46b1c0570bfbafdabfc362f9f8be8a98e2640 | /POO/ToDo_v3.py | bcd9b8451b23d98ffec6c9be5c39fd3cccea6678 | [] | no_license | beaapaixao/praticas_em_python | 8c9387cbb6b97fb52577d101e03181545190a568 | ca82cb12bf048dd7a501beeb09c6efd0ffc67567 | refs/heads/master | 2022-11-04T07:18:12.779415 | 2020-06-18T22:33:32 | 2020-06-18T22:33:32 | 257,736,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,611 | py | from datetime import datetime
class Projeto:
def __init__(self, nome):
self.nome = nome
self.tarefas = []
def __iter__(self):
return self.tarefas.__iter__()
def add(self, descricao):
self.tarefas.append(Tarefa(descricao))
def pendentes(self):
return [tarefa f... | [
"brendacefet@gmail.com"
] | brendacefet@gmail.com |
ccd69ec56c7da165b6fa0449b4e44b9a44fd4bcd | f8ded08c57af4a3726a791b094b38970cbb921e9 | /examples/lattice_example06.py | 34a47cddce14dd764f333c1d5385f93406f71716 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mrakitin/mystic | ebeb837b8535ebb2a323519b900cb69e1bbb8a2d | 6c269510fd9068d157554eaef99bc1a546b54a59 | refs/heads/master | 2020-12-30T16:39:55.072424 | 2017-05-10T18:40:44 | 2017-05-10T18:40:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,124 | py | #!/usr/bin/env python
#
# Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
# Copyright (c) 1997-2016 California Institute of Technology.
# Copyright (c) 2016-2017 The Uncertainty Quantification Foundation.
# License: 3-clause BSD. The full license text is available at:
# - http://trac.mystic.cacr.caltech.ed... | [
"mmckerns@968178ea-60bd-409e-af13-df8a517b6005"
] | mmckerns@968178ea-60bd-409e-af13-df8a517b6005 |
f7aaea171c226e956f45fd71047404ac7c38ce8d | 39af46b443873ed96809a46a6e15a221955cf0c7 | /args.py | 4bf00ee1e2377ade44158d39b2a2071ca22ef6bb | [] | no_license | clementbeaulieu/DeepSets | 61c786243d3527a90dc473984cd28464a4baf1ed | b26c97aad5b03267a61fb9ad2734f1ac407393f1 | refs/heads/master | 2022-11-11T17:06:00.831367 | 2020-07-06T20:23:16 | 2020-07-06T20:23:16 | 268,858,766 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,957 | py | import sys
import argparse
import torch
def parse_args():
parser = argparse.ArgumentParser(description='')
# expriment settings
# name of the experiment
parser.add_argument('--name', default='digitsum', type=str, help='name of experiment')
parser.add_argument('--train-type', default='regression'... | [
"clement.beaulieu@polytechnique.edu"
] | clement.beaulieu@polytechnique.edu |
bb8be5e76279953821643710c6b9aef108f9a32e | 04935a87faa632ad8b588d3e8c8e84f1e1359349 | /backend/l11n/admin.py | 7ccc3c868ed44c825efa968ae34baaae94b79b6c | [
"BSD-3-Clause"
] | permissive | tughi/localizappion | 9d80473e838c551148e03c3b030f24bb8030e805 | 5c963dc8f7262cdb411cfbcc29ab4fac8fffc6c8 | refs/heads/master | 2021-01-18T20:32:30.364400 | 2018-06-06T21:39:00 | 2018-06-06T21:39:00 | 86,977,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | from django.contrib import admin
from .models import Project
from .models import Session
from .models import String
from .models import Suggestion
from .models import Translation
from .models import Translator
from .models import Vote
admin.site.register(Project)
admin.site.register(Session)
admin.site.register(Strin... | [
"admin@tughi.com"
] | admin@tughi.com |
844148e71e068c7822a323420d0c8c3b7e3f55a6 | 72c34626845057e150fb2f808813ba2d440aafb4 | /Market_place/main/urls.py | f9840a82512132e4fad059d28745b78f1e9293bc | [] | no_license | IgorSulj/Market_place | b15a82db28b937b966cf149ebe100540e2f9b0c2 | 2eb0a864e6d8e18a57974cc717661f7711d32607 | refs/heads/master | 2023-03-05T22:13:24.563308 | 2021-02-21T18:36:54 | 2021-02-21T18:36:54 | 340,967,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | from django.urls import path, include
from .views import start_page
app_name ='main'
urlpatterns = [
path('',start_page, name='start_page'),
] | [
"igorsuljin@gmail.com"
] | igorsuljin@gmail.com |
c404f0baaf3f4d8216168f863d039b1e9416ecd8 | 2b9765b1af64e52e16e1a4743595acb60276cd1a | /3_experiment/3_3_data_analysis_md/Python/jupyter/utils_exG.py | 2e08803ab9ebdf98525cb3a56b07fe3d59b1b134 | [] | no_license | danieljwilson/MADE | af82814d2bdde6671279c781cefccec3ee119f96 | 9337ad740205cc9c8a2e73f7ad45bf9cc96e5193 | refs/heads/master | 2021-07-13T03:27:28.612081 | 2020-07-10T12:44:33 | 2020-07-10T12:44:33 | 170,940,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,002 | py | #!/usr/bin/python
"""
util.py
Author: Daniel J Wilson, daniel.j.wilson@gmail.com
Date: April 20, 2018
Utility functions for creating fixation distributions using ExGUtils.
Note: Runs on Python 2
https://pypi.org/project/ExGUtils/
"""
import numpy as np
import pandas as pd
import os
import pickle ... | [
"daniel.j.wilson@gmail.com"
] | daniel.j.wilson@gmail.com |
ef4629047e768046dd194987c4ad80535fe3c764 | c4fad14fa55d67d26e3a5d08a8eca8d54b49bd10 | /Project_Analytic_Code/311_data/get311dataclean.py | ff0148561218e2accaec08a5058c42d6ef02413b | [] | no_license | sds695/Graffiti_nyc | 1d98f66dbd5e75255064fcc064348b7f023067c6 | 94c4aaaec01c302e7653c16283df63b8515fb7b9 | refs/heads/master | 2020-07-01T06:33:58.825534 | 2019-08-07T20:47:24 | 2019-08-07T20:47:24 | 201,076,492 | 0 | 2 | null | 2019-08-07T20:29:34 | 2019-08-07T15:23:10 | null | UTF-8 | Python | false | false | 1,348 | py | #!/usr/bin/env python3 -V
## python xxx.py 1000000 2019-03-01 2019-04-01 Mar2019.csv Mar2019_clean.csv
# not using Sodapy
# try to output print the total row
import csv
import sys
import json
import requests
import pandas as pd
inputLimit = sys.argv[1]
from_ = sys.argv[2]
to_ = sys.argv[3]
file = sys.argv[4]
outpu... | [
"noreply@github.com"
] | sds695.noreply@github.com |
87ed409979ce273e82d0a5d78486e6781252f9a0 | fdfe8cb6d56775070a3269132e04dac66703686f | /math/0x00-linear_algebra/102-squashed_like_sardines.py | 4a1549d46261e632ecf8884c64693797b0331dd2 | [] | no_license | ABERKOUKS/mundiapolis-math | 6869156af6dc0c6cbbb4f18ad7a5dc0d66aa3109 | 7c3f657ed43e768c88f1e27bf33af09037393403 | refs/heads/main | 2023-03-22T03:03:50.981649 | 2021-03-19T22:47:26 | 2021-03-19T22:47:26 | 346,022,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | #!/usr/bin/env python3
def cat_matrices(mat1, mat2, axis=0):
try:
return np.concatenate((mat1, mat2), axis).tolist()
return np.concatenate(
(mat1, mat2), axis, out=None
).tolist()
except ValueError:
return None
| [
"noreply@github.com"
] | ABERKOUKS.noreply@github.com |
6f39170e141c34c4ed7e0728026abedadb161926 | 76c0f49248f9cde2dd6126cea74dc7ab6ca02e4d | /GNN/utils.py | 1d9a5d1275d598d181193e1d6d305f1cf903428d | [] | no_license | LXD789/Du-FAGNN | 526ff6de9b3b0e454eca92d0ea108db56a7c2274 | a334bbc249a15c34280e6f8137e21a1455166bad | refs/heads/main | 2023-07-09T19:54:49.301044 | 2021-08-17T11:35:59 | 2021-08-17T11:35:59 | 369,227,525 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,039 | py | import numpy as np
import pickle as pkl
import scipy.sparse as sp
from scipy.sparse.linalg.eigen.arpack import eigsh
import sys
import random
import re
from tqdm import tqdm
import jieba
# import sparse
def parse_index_file(filename):
"""Parse index file.解析索引文件"""
index = [] # 定义列表index
for line in op... | [
"liuxiaodijx@163.com"
] | liuxiaodijx@163.com |
bae30772978c282874e45e1e767430be19ec94f9 | 7d81464b641105a1dcf2b7ff21b1c03931734367 | /MSSQLtest/testconn.py | df2a37f52d7055c64a90e42c78423a4d4ccd0b3d | [] | no_license | Syxoyi/potential-enigma | 140dbd11bf7adc00a72ef315fcf39ec45d820b62 | 020aead1b48bd8dd944786151812158fab6c71af | refs/heads/master | 2021-02-10T12:15:57.307328 | 2020-09-11T15:10:03 | 2020-09-11T15:10:03 | 244,380,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | #!/usr/bin/python3
import pyodbc
#driver = 'DRIVER={SQL Server}'
#driver = 'DRIVER=/opt/microsoft/msodbcsql17/lib64/libmsodbcsql-17.6.so.1.1'
driver = 'DRIVER=/opt/microsoft/msodbcsql17/lib64/libmsodbcsql-17.4.so.2.1'
server = 'SERVER=10.0.50.108'
#server = 'SERVER=10.10.5.153'
port = 'PORT=1433'
db = 'DATABASE=ma... | [
"m.travushkin@r77.center-inform.ru"
] | m.travushkin@r77.center-inform.ru |
ecdeb18eec3797104113fe832ecf9a0550103af3 | 60ff8ff7b318e8e2a3d43ef161106ca0a61a8751 | /experiments/waffle01.py | e59b7e8117e5c084919a8ba79ce59741c3483274 | [] | no_license | NUSTEM-UK/ROR | 8a3029a3b0ad2158d7f15b560e0436c7b2c3a6dc | e4f80c7fcb70d6b447a87959fd7d841174a7fd40 | refs/heads/master | 2021-05-08T04:23:30.866350 | 2017-12-22T11:24:35 | 2017-12-22T11:24:35 | 108,391,348 | 0 | 0 | null | 2017-12-22T11:20:05 | 2017-10-26T09:36:35 | Python | UTF-8 | Python | false | false | 450 | py | # Installed GUIzero on the Mac with:
# sudo pip install git+https://github.com/lawsie/guizero.git@version-0.4
# (to get the prerelease version with clickable waffle installed)
# NB. needs to run under python3, which is a bit of a pain in VS Code.
from guizero import App, Waffle
app = App()
my_waffle = Waffle(app, r... | [
"jonathan.sanderson@northumbria.ac.uk"
] | jonathan.sanderson@northumbria.ac.uk |
fc1a44026c9b959cef7c38b8b9b4a9c58a28871a | 294913d851693cbf9e56a2e2ca92a6225b6b528e | /salty_web_app/venv/bin/python-config | 471a428afb294d01544cc88a67befa89fc730a37 | [] | no_license | yatong2/saltywebapp | 40871c47a46ee8230698bba7f9b1c17c386068a3 | 75941c223816f40f4a550aec34b3d5b986b70f01 | refs/heads/master | 2020-12-03T00:03:37.027111 | 2017-07-06T18:09:38 | 2017-07-06T18:09:38 | 95,979,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,361 | #!/Users/yatongge/projects/myhellowebapp/venv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sy... | [
"yatong2@uw.edu"
] | yatong2@uw.edu | |
664688a10ed4eb76cb8d47f45a8895f4498ef8ec | 9e4c444e6e936fda3cbdd237c1101bf6a59bedaf | /Mutant Rainbow Graphics.py | 0af1a8c75e155de45fd6a29780c1576d5cdd9717 | [] | no_license | Liam-McQueen04/Mutant-Rainbow-Graphics | 7a0d6cfdae50aceafd527ae2d9e353f4427301d7 | db337888c0123f9bade814a88fd1efebbdc0628a | refs/heads/master | 2020-04-06T19:03:19.657347 | 2018-11-15T14:25:52 | 2018-11-15T14:25:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,427 | py | import random
import turtle as t
def get_line_length():
choice = input('Enter Line Length (long, medium, short): ')
if choice == 'long':
line_length = 250
elif choice == 'medium':
line_length = 200
else:
line_length = 100
return line_length
def get_line_width()... | [
"noreply@github.com"
] | Liam-McQueen04.noreply@github.com |
de37a1fd81c01c4d429d643d284ac7ace28482c3 | 331460bcb59700d9301356cdf48c0230364b5984 | /programmers/level1/[연습문제] 짝수와 홀수.py | 25b51fb8b49bc64acd4da0d531e1d8630c5a1202 | [] | no_license | leeyongjoo/solved-algorithm-problem | c109dbf272df59ba1d79e3da825a4e75f98085a1 | 6a0f8424b95283ca16f3e5f84904a8fcd5bd3eab | refs/heads/master | 2023-07-11T20:36:32.389618 | 2021-08-23T13:54:17 | 2021-08-23T13:54:17 | 283,757,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | # https://programmers.co.kr/learn/courses/30/lessons/12937?language=python3
def solution(num):
return "Odd" if num % 2 else "Even"
if __name__ == "__main__":
print(solution(3))
print(solution(3) == "Odd")
print(solution(4))
print(solution(4) == "Even")
| [
"2yongjooo@gmail.com"
] | 2yongjooo@gmail.com |
3d926895422768d1af337ed0e80b73d5d0572720 | 39f51de39b6c3bdc5d7bb9a570ab33c308221f57 | /horseraceai/races/admin.py | 2f90f6df3c4675026d1a3175d9bd18bde6e13bfd | [] | no_license | monda00/horseracing_ai_app | d64e10dc096ff51f9e9c5d473345f6cf8824041f | 8590cf85459e4a0e6790b449bcfb298ce50afb96 | refs/heads/master | 2021-07-09T02:05:01.418413 | 2020-12-15T15:40:02 | 2020-12-15T15:40:02 | 220,805,477 | 0 | 0 | null | 2020-07-20T17:01:07 | 2019-11-10T14:57:27 | Python | UTF-8 | Python | false | false | 688 | py | from django.contrib import admin
from import_export.admin import ImportExportModelAdmin
from import_export import resources
from .models import Race, Horse
class RaceResource(resources.ModelResource):
class Meta:
model = Race
import_id_fields = ['race_id']
skip_unchanged = True
rep... | [
"monda0524@gmail.com"
] | monda0524@gmail.com |
9d687faa4cc8c5b083d36e051367de1ddccc50df | 5b1baef4e0c50e4aafeadcbb1f199a1de7d4f0ee | /mysite/app/migrations/0013_auto_20210730_1419.py | 0f29f159ef5cfd95c59632c0cbc06eabe868883a | [] | no_license | qqzii/testsite | 278a512000715c3eb6b7b1cd0cb6a19760d77162 | ccbdda7261a69501d4ddfcf6be8a55c3766bfb02 | refs/heads/master | 2023-07-09T09:41:22.981390 | 2021-08-12T13:58:21 | 2021-08-12T13:58:21 | 382,126,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,215 | py | # Generated by Django 3.2.5 on 2021-07-30 11:19
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('app', '0012_auto_20210729_0224'),
]
operations = [
migrations.CreateModel(
... | [
"artemiy.morozov.00@mail.ru"
] | artemiy.morozov.00@mail.ru |
992162bc096471c678c0d61d5249187430dea1ba | 545fcb85117f04064c5f8095ca1adfa96fd383de | /main.py | e096a688714be466305798429e1000a10332d485 | [] | no_license | quintanamo/rs-reaper-bot | 1c5805e5bf4a83001eec039cc03ad93e658d8c79 | 8ee51e752f17598ac5177956917946ba4526e59c | refs/heads/master | 2023-04-22T07:03:51.873668 | 2021-05-08T05:27:31 | 2021-05-08T05:27:31 | 365,419,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,935 | py | import discord
import random
import math
# get token from file
f = open('token.txt', 'r')
token = f.readline()
# list of possible bosses
bossList = {
'Ambassador': {'min': 2, 'max': 2},
'Araxxi': {'min': 3, 'max': 4},
'The Barrows Brothers': {'min': 4, 'max': 15},
'Barrows: Rise of the Six': {'min': 3... | [
"qherb@ycp.edu"
] | qherb@ycp.edu |
df28f85be537c8266444d40894f27b6cfcba3cb7 | 0037db6f3708456cb4492d98b174d37a8fc4ee15 | /venv/Lib/site-packages/featuretools/tests/computational_backend/test_calculate_feature_matrix.py | 8d4749bfde4627585e59bf1ab63b93da66f02a9d | [] | no_license | cpantin/MTG_CardEval | 2005729c81760849e3e58afe6c1ce36197b36f4d | ceb846dbdd39cd98c11d125095842721a93b58c3 | refs/heads/master | 2023-06-21T03:51:55.767612 | 2021-07-23T20:09:43 | 2021-07-23T20:09:43 | 388,156,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89,675 | py | import logging
import os
import re
import shutil
from datetime import datetime
from itertools import combinations
from random import randint
import numpy as np
import pandas as pd
import psutil
import pytest
from dask import dataframe as dd
from distributed.utils_test import cluster
from tqdm import tqdm
import featu... | [
"you@example.com"
] | you@example.com |
c1932ced18cc4d0c93dce745c12cbbb5cfb102d5 | c4a077e134f9f6a78b20b13ab329c582416e4ee9 | /research/sweepSarsa.py | cc9314c4de238df0fb2fcde6fb78d94867bba7aa | [] | no_license | mcmachado/ALEResearch | 347e9b7ae58cf900dcf07f4a1a562c7b1d4a747d | e4924e8ad8beb156d4937f8b4213ea1dcf76b8fd | refs/heads/master | 2021-01-10T07:30:48.244905 | 2016-11-28T00:16:40 | 2016-11-28T00:16:40 | 36,131,343 | 7 | 2 | null | 2015-10-01T23:33:06 | 2015-05-23T16:17:29 | C++ | UTF-8 | Python | false | false | 3,274 | py | import sys
import random as r
import numpy as np
import statistics as stat
RMAX = 9.0
params = [0.001, 0.005, 0.01, 0.05, 0.1, 0.5, 1, 5.0]
class Bandits:
numArms = 2
mus = [1.0, 3.0]
sigmas = [0.5, 9.0]
print 'N(', mus[0], ',', sigmas[0], ') N(', mus[1], ',', sigmas[1], ') RMAX:', RMAX
def __init__(s... | [
"marlos.cholodovskis@gmail.com"
] | marlos.cholodovskis@gmail.com |
21de9e8f87a9c5280417736eaa4e0dc0c5f84a96 | f0d70b5e2b4a74aaa5450c46d1edc65ef36c8c60 | /week4/post_register.py | ce637905eb178a59370361b45174731ba2ae71f7 | [] | no_license | Natthapol-PEET/Internet-System-Programming | 4cdcb472c4bec4913e5ddbcd71f32c8a2119f8bd | 329e5723d2984b808a53a164110d9c0fd5fd2135 | refs/heads/master | 2022-12-17T09:02:28.392963 | 2020-09-20T15:24:20 | 2020-09-20T15:24:20 | 281,337,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | import urllib.request as ur
import urllib.parse as up
url = 'http://localhost/Register/register_post.php'
value = {
'name': 'PEET',
'location': '7-225',
'language': 'Python'
}
data = up.urlencode(value)
data = data.encode('ascii')
req = ur.Request(url, data)
with ur.urlopen(req) as res:
data_read =... | [
"natthapol.n@ku.th"
] | natthapol.n@ku.th |
2b509eb15e65f8db44f4cb66fe93f0a4ab30b00a | 35ec162983b05964516e3037f4b57baa3552d989 | /simplist/simplist/urls.py | 56e2f387b093a8f12e2db7af84c22f6f8f8d7517 | [] | no_license | techscientist/Simplist | dd9e8ab4ef2588e66b5b57102367028bf8264501 | f0657af76b976b4d6712813ee7fe9db719cdcd47 | refs/heads/master | 2020-12-31T01:47:33.706601 | 2016-02-19T01:44:06 | 2016-02-19T01:44:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | """simplist URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | [
"algarc04+github@gmail.com"
] | algarc04+github@gmail.com |
79f27119cb73feb73d0a17fd967a8c397a66599d | 6e73ae0040136441c238e16f8b45c4920246a714 | /xl.py | bb9252779584d36eae25a93ce9426f785dfdb38d | [] | no_license | Qzwini/test-python-Excel- | 1c0adf17ad48c80d3098858b70f70eee9b9281f1 | 6ec427019f645033f9fc2f46a2051bedcff02615 | refs/heads/master | 2022-12-17T02:49:18.425075 | 2020-09-15T22:44:37 | 2020-09-15T22:44:37 | 295,862,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | import numpy as np
import pandas as pd
excel_file="xl.xlsx"
df = pd.read_excel(excel_file)
print(df) | [
"qzwini@gmail.com"
] | qzwini@gmail.com |
437ebcc8ee709f93b5842ce833b1b5047795bdc2 | b8b11f4a8a2871300d2f909f6ef99ee5f9464900 | /Part-1/05D.py | 060abb0318520ddc97a045d2ab63bcc323f4c75d | [] | no_license | shabanskaya/Data-Structures-Algorithms-in-Python | d9221fd2a2d57f9bfef2a38780aadcf2993656eb | 4af75257bb96385e028a1909fce52645f3162b5c | refs/heads/main | 2023-01-21T11:10:25.961154 | 2020-12-01T10:05:08 | 2020-12-01T10:05:08 | 317,496,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | n = int(input())
s = input()
a = s.split()
for i in range(1, n-1):
if (int(a[i]) > int(a[i-1])) and (int(a[i]) > int(a[i+1])):
print(i, end = ' ')
elif (int(a[i]) < int(a[i-1])) and (int(a[i]) < int(a[i+1])):
print(i, end = ' ') | [
"shabanskaia.ka@phystech.edu"
] | shabanskaia.ka@phystech.edu |
4068bc3b5400f96d9ce74cb10d77be3e036e6f0f | 548f6a3d0478b5e1607a6b326f28ee3a59f5e91c | /Chapter03/Dog_cat_classification/CNN_DogvsCat_Classifier.py | 6274a567e3adba914f7596b5a97eacbbe281fe22 | [
"MIT"
] | permissive | PacktPublishing/Practical-Convolutional-Neural-Networks | c6402550aa0c593f272eefab38c9e135f6c45d0d | 3ebf6a68ff73c76580f2350a3a2b47b621f346c5 | refs/heads/master | 2023-02-09T20:56:40.334280 | 2023-01-30T08:26:25 | 2023-01-30T08:26:25 | 122,965,539 | 32 | 19 | null | null | null | null | UTF-8 | Python | false | false | 14,379 | py | import time
import math
import random
import os
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import tensorflow as tf
import Preprocessor
import cv2
import LayersConstructor
from sklearn.metrics import confusion_matrix
from datetime import timedelta
from tensorflow.python.framework import ops... | [
"sagarsawant@packtpub.com"
] | sagarsawant@packtpub.com |
6fc944fca5a95025ed8dab29e533b8023e0b67d7 | 1c849dda331977bbfc1c2c1f511bc191a577c37a | /fixture/contact.py | 749ab3b5914129a15cd811120e21181eea887fff | [
"Apache-2.0"
] | permissive | Kassaidre/python-training | 84255d46f5c347063bdfdf5ae16aacabdd86ba50 | c8e54796d78dd7de84ba57cc8cfbeecd1298f466 | refs/heads/master | 2016-08-12T19:27:12.531516 | 2016-03-11T16:40:24 | 2016-03-11T16:40:24 | 50,449,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,719 | py | from model.contact import Contact
import re
class ContactHelper:
def __init__(self, app):
self.app = app
def create(self, contact):
wd = self.app.wd
# init contact creation
wd.find_element_by_link_text("add new").click()
self.fill_contact_form(contact)
# submit... | [
"juliette_n@mail.ru"
] | juliette_n@mail.ru |
2cc0955608d1892183da69044d8e2b0b20f5dac9 | 80cd5713fb2d844ee235609911643c43e306da75 | /resize_category.py | eafd2fab720b416d9bf6282e0c412b920d7bdef2 | [
"Apache-2.0"
] | permissive | aurora-feng/aurora-feng.github.io | becd96d8140488d3b75f09780b5d59f028903db4 | 6d65564acabedade72fdda56dbada9c13a3ec99b | refs/heads/master | 2020-06-02T22:02:09.619722 | 2019-06-23T14:26:15 | 2019-06-23T14:26:15 | 191,321,370 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | py | import os
import shutil
from PIL import Image
from resizeimage import resizeimage
thub_size = (400, 289)
reg_size = (600, 450)
_origin_path = '/Users/zhibin.jiang/Downloads/temp/{cate}/'
new_path = '/Users/zhibin.jiang/Learning/aurora_profolio/img/{cate}/'
def main():
for cate in ['cate_flower', 'cate_life', 'cat... | [
"zhibin.jiang@ihandysoft.com"
] | zhibin.jiang@ihandysoft.com |
9ac4fffb2f1957b093e87dc961375512e49b038c | 63821348be843b185ce6887d0f3027686f157164 | /simplemooc/simplemooc/courses/models.py | ef5748d97046fe21cc5a8a1eb470f7ad65860861 | [] | no_license | sadijrp/simplemooc-course | c79c295bbeb0b74b7ad622b5765fefd75274d45b | df15539ded0349e0dd8ce17744a03edb99a83ea6 | refs/heads/master | 2020-04-16T20:12:11.935589 | 2019-08-06T19:28:10 | 2019-08-06T19:28:10 | 165,890,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,208 | py | from django.db import models
from django.urls import reverse
from django.conf import settings
from django.utils import timezone
from simplemooc.core.mail import send_mail_template
class CourseManager(models.Manager):
def search(self, query):
return self.get_queryset().filter(
models.Q(name__... | [
"sadijrp@gmail.com"
] | sadijrp@gmail.com |
70b26f8c54d7d8eb40302ee17781e84cf5a56c14 | 3eed35781bc9f63c33586f8f2abdcfde8e7bd9bd | /core/config.py | a611537caf766270a7a9177c53ac7ff1fc7ec356 | [] | no_license | peilion/OP-backend | 6e192f2592c0ae526f69f279bd0ba3023af0e593 | 13f7499d8727dcf5c866870450b29c829b32b4e6 | refs/heads/master | 2022-12-13T11:41:33.575868 | 2020-08-24T02:00:28 | 2020-08-24T02:00:28 | 207,509,587 | 14 | 0 | null | 2022-12-08T06:54:48 | 2019-09-10T08:49:47 | Python | UTF-8 | Python | false | false | 673 | py | import os
API_V1_STR = "/api/v1"
SECRET_KEY = os.urandom(32)
DATABASE_CONNECTION_URL = os.getenv("DATABASE_CONNECTION_URL")
DATABASE_NAME = os.getenv("DATABASE_NAME")
ACCESS_TOKEN_EXPIRE_MINUTES = 60 * 24 * 8 # 60 minutes * 24 hours * 8 days = 8 days
SERVER_NAME = os.getenv("SERVER_NAME")
SERVER_HOST = os.getenv("SE... | [
"peilun.fu117@gmail.com"
] | peilun.fu117@gmail.com |
6eb6b15fb8fac618ec7f278c5b9d56ac454ae588 | da29482e5394e2e5398351be4cee818d73b5b163 | /backend/backend.py | 7675078cda620a1e88965cb9cc23eacc002edfb9 | [] | no_license | Ishikawa7/kubernetes-simple-flask-app | 134ecaedf82941e4b9a137711d15f5eacfdbe518 | 33cfbcbbdc5085603d2544da913be5e84d234437 | refs/heads/master | 2022-08-26T05:17:50.409559 | 2022-08-10T08:14:14 | 2022-08-10T08:14:14 | 217,856,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | from flask import Flask, request
import http.client
import redis
app = Flask(__name__)
# TODO Set the redis host
r = redis.Redis(host="redis-cluster-ip-service")
def count_primes(num = 100000):
if num < 2:
return 0
primes = [2]
for n in range(2, num + 1):
for p in primes:
if n... | [
"davidegrimaldi92@gmail.com"
] | davidegrimaldi92@gmail.com |
401a554684fd8f2a37ab1c1f51825125ca46d77c | e7de9caf500cb10b726481161f86fb012477b66f | /contacto/migrations/0002_alter_contacto_email.py | 63a518a0b0b2fc12015489dfe152222dc5265369 | [] | no_license | jdtorres1997/testUseIt | a0b7a95e13a64e1bfbc4c62bec048e2be038eebf | 7646125aa50c3f2952fbdcb7ad5251d6684dbf58 | refs/heads/main | 2023-08-14T05:59:36.228937 | 2021-10-12T03:20:10 | 2021-10-12T03:20:10 | 415,361,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | # Generated by Django 3.2.8 on 2021-10-09 04:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('contacto', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='contacto',
name='email',
... | [
"juan.torres.canon@correounivalle.edu.co"
] | juan.torres.canon@correounivalle.edu.co |
de43a7611f08d4845ec9c811ad030b61c45a7bd1 | 07537f48d33b68e7e4dc2684802c203ccfff9ae1 | /apps/trader/migrations/0001_initial.py | 20655c884cdab95495bdfbddde43f523b499a497 | [
"MIT"
] | permissive | Cabelin-Software-Solutions/e-book-trading-club | 8108d2974bb69bbd7d3ef64d8646d805a11f4782 | 61750c8e01b2a0f2bb0eca0318c36f4bcc5cf604 | refs/heads/master | 2021-01-21T06:05:58.493129 | 2017-08-31T21:13:11 | 2017-08-31T21:13:11 | 101,936,129 | 0 | 0 | null | 2017-08-31T21:13:12 | 2017-08-30T22:54:59 | Python | UTF-8 | Python | false | false | 887 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-28 05:18
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',... | [
"artemiocabelin@gmail.com"
] | artemiocabelin@gmail.com |
f8adcc98d428525a52292932206cab9b028763fb | c9eb50509cec04137bcd4622039678243c285830 | /arnold/sensors/microphone.py | 63ccc7590de2f43ea68c9842278a31a36a8eb309 | [
"BSD-3-Clause"
] | permissive | hacklabza/arnold | 63ef9520cd40128330adc987130de9364484cd44 | d51f6b751ce6530650555cd33bf707f00b60af59 | refs/heads/develop | 2023-07-29T13:48:37.442896 | 2021-10-28T06:00:50 | 2021-10-28T06:00:50 | 149,396,000 | 2 | 0 | BSD-3-Clause | 2023-07-18T04:04:41 | 2018-09-19T05:18:49 | Python | UTF-8 | Python | false | false | 3,764 | py | import logging
import os
from typing import Optional
import speech_recognition
from arnold import config
_logger = logging.getLogger(__name__)
class Microphone(object):
"""A sensor class which initialises the microphone component and add speech
recognition and command parsing to Arnold.
Args:
... | [
"jpbydendyk@gmail.com"
] | jpbydendyk@gmail.com |
8da6237185e6503c1a44b84a23ce071fc75a6451 | f9281982adad378b6c87b4d274aed131e427b1ac | /product.py | f4f0a3950b9b807af7a9d5f78c7520e4169f8116 | [] | no_license | AdamDonna/dius-code-challenge | fbc6fc569a8758b3db3da45d2a8c60852ec71d47 | bd0487dc3e36c23f64551f7793779d64ae4ca618 | refs/heads/master | 2022-12-13T10:39:05.451902 | 2020-09-05T05:34:15 | 2020-09-05T05:34:15 | 293,010,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 882 | py | class BaseProduct:
sku = None
price = None
name = None
__subclass_map__ = {}
@classmethod
def register_product(cls):
cls.__subclass_map__[cls.sku] = cls
def __init_subclass__(cls, **kwargs):
"""Register the class in the list of products we have"""
super().__init_s... | [
"adamdonaghy1994@gmail.com"
] | adamdonaghy1994@gmail.com |
2dbfcec6679b3a1d5e552490860e8eae8fee6a3c | 8ca045c0b94729222e8f3ffe184c0d4f564418c4 | /Image/band_stats.py | 5efa9b90869435a090e34c208388ef65ac1eac1a | [
"MIT"
] | permissive | levi-manley/earthengine-py-notebooks | bc77632ca22ca85c0092c18f1eb8321abfbe874a | f5a888ddb6834f164e7399b20c683fb9cf604465 | refs/heads/master | 2021-01-02T12:17:27.974005 | 2020-02-09T02:59:20 | 2020-02-09T02:59:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,615 | py | '''
<table class="ee-notebook-buttons" align="left">
<td><a target="_blank" href="https://github.com/giswqs/earthengine-py-notebooks/tree/master/Image/band_stats.ipynb"><img width=32px src="https://www.tensorflow.org/images/GitHub-Mark-32px.png" /> View source on GitHub</a></td>
<td><a target="_blank" href="h... | [
"giswqs@gmail.com"
] | giswqs@gmail.com |
92942d00d79abf7e2bc0aae1efadd4b6ab06f8e4 | ec876d7c77aecc45e4ba23463ead7d89a4ea44d7 | /ordersystem/ordersystem/apps/orders/models.py | a4f812d87d9211caf31cdca0b4070536e81b9719 | [] | no_license | xuyunfeng12388/OrederSystem | c709da33379fccb471e8c9766ac01cc0122dfd26 | b033383a1866b39e527f13b36aa027a413a47bdb | refs/heads/master | 2022-12-15T04:50:29.657785 | 2020-03-20T07:07:09 | 2020-03-20T07:07:09 | 248,689,316 | 1 | 0 | null | 2022-11-22T05:24:47 | 2020-03-20T07:02:02 | Python | UTF-8 | Python | false | false | 3,531 | py | from django.db import models
from ordersystem.utlis.models import BaseModel
# Create your models here.
class DinnerTable(BaseModel):
"""餐桌"""
TABLE_STATUS_EMU = {
"有人": 1,
"空闲": 2
}
TABLE_STATUS_CHOICES = (
(1, "有人"),
(2, "空闲")
)
tableName = models.CharFiel... | [
"xuyunfeng12388@163.com"
] | xuyunfeng12388@163.com |
92264e50db168c3a7616972a721169c72358ea8f | 610ac1da64200c109b9ac48d162058fdd85801aa | /functions/diffbtwsortsorted1.py | 7414f4512fc4bedc4ec79e2ebac0b4024a1637d5 | [] | no_license | rajdharmkar/Python2.7 | 3d88e7c76c92bbba7481bce7a224ccc8670b3abb | 9c6010e8afd756c16e426bf8c3a40ae2cefdadfe | refs/heads/master | 2021-05-03T18:56:36.249812 | 2019-10-08T00:17:46 | 2019-10-08T00:17:46 | 120,418,397 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 865 | py | #sort() is a list method, doesnot take an argument; syntax: list.sort()
#list.sort() returns a sorted list(but doesnot print)
#sorted(list)is a builtin function that returns a sorted list(does not print)
a = ['c','a','d','b']
b = [3,2,1,4]
print ('before sort(), the value of a = {}'.format(a))
print ('before sort(), th... | [
"rajdharmkar@gmail.com"
] | rajdharmkar@gmail.com |
4b6b8f43c24d2b892ba9b2cead0540982d6839a8 | 89504df28f5892a9a1fd14ce2378af14d6b03ede | /app/pl/mazurk/ml/keras/getting-started.py | e572d92049c5351ea767e83b4ef03c8932148836 | [] | no_license | kmazur/ml-nanodegree | c343bbbd46ec8b4e0de88b7c96f0c7393b539451 | d00ca3f0e1a3863959cfeb917d5dd8a51c94a5e5 | refs/heads/master | 2021-01-17T09:23:22.765880 | 2017-07-24T22:11:06 | 2017-07-24T22:11:06 | 83,983,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | from keras.models import Sequential
from keras.layers import Dense, Activation
model = Sequential()
model.add(Dense(1, input_dim=784, activation='sigmoid'))
model.compile(optimizer='rmsprop',
loss='binary_crossentropy',
metrics=['accuracy'])
# generate dummy data
import numpy as np
data = ... | [
"mazurkrzysztof.k@gmail.com"
] | mazurkrzysztof.k@gmail.com |
1defbe98e5336867810aaabef9e83a7b9aac3395 | 3e4fec214d82b5547df9ff94e163beb9369547f4 | /new_meas03/RigolDG3000_RMcontroller_pyqt4.py | b271ac0775cb4789b4c572dc0c32a12435e2da42 | [] | no_license | physikier/magnetometer | 582caf47d3869340cd18a0aaa2d171e37591c79a | e9e6bd314d48b4b40ac5a2145b821305dec2d05e | refs/heads/master | 2021-01-21T14:44:11.460815 | 2016-04-30T21:15:02 | 2016-04-30T21:15:02 | 59,505,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,742 | py | import hardware.RigolDG3000 as rig
import sys
import numpy
from PyQt4 import QtCore, QtGui, uic
rigol = rig.RigolDG3000("USB0::0x1AB1::0x0588::DG1D124204534::INSTR")
# Main QT Window Class
# The Class which conations all QT Widgets and so on
class ControllerGui(QtGui.QMainWindow):
# controller_utils is an insta... | [
"phy76371@stud.uni-stuttgart.de"
] | phy76371@stud.uni-stuttgart.de |
4079a5939d8149ce313449a2137c0d27b135d70d | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/arc007/B/4778892.py | e50c65011d3a3d08b384a7d5b387ea1779015475 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | N, M = [int(_) for _ in input().split()]
disk = [int(input()) for i in range(M)]
result = [(i + 1) for i in range(N)]
n = 0
for d in disk:
if d != n:
i = result.index(d)
result[i], n = n, d
for i in range(N):
print(result[i]) | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
c7de1bec1f0955bc633eb67fad4e4cd01845a912 | 689374c378fb303ee8521f41b9140843e5047d7b | /bot/__main__.py | df71f49c0d2d72f0a569564ad8c64f4c68a28d32 | [] | no_license | jon4646/telegramclonebot | f7e46fdbfc6d615fbe4ff5b3bf29fe33623ba52a | 378a163be8794d1d40e0a2a2e04c46a00200a535 | refs/heads/main | 2023-02-22T12:41:47.025643 | 2021-01-25T03:46:17 | 2021-01-25T03:46:17 | 333,927,450 | 0 | 0 | null | 2021-01-28T20:36:11 | 2021-01-28T20:36:10 | null | UTF-8 | Python | false | false | 5,438 | py | from telegram.ext import CommandHandler, run_async
from bot.gDrive import GoogleDriveHelper
from bot.fs_utils import get_readable_file_size
from bot import LOGGER, dispatcher, updater, bot
from bot.config import BOT_TOKEN, OWNER_ID, GDRIVE_FOLDER_ID
from bot.decorators import is_authorised, is_owner
from telegram.error... | [
"noreply@github.com"
] | jon4646.noreply@github.com |
75526fe121d3c14c20443e89184aa18b7e302a2e | b24adc31b7c781ea156882c3cc657bb03034e8d4 | /OpensenseMapTemperatureLoop.py | 02057ba130f2ab23aa31ae88899d148ba9390ac1 | [] | no_license | harunler/PythonStreaming101 | 271c7ca8dfd87da95412d4bc89c2ba80ac491927 | 8d2b4342cff776197ada8488e5bc953ddfb73cc2 | refs/heads/master | 2022-08-12T21:59:14.480406 | 2020-05-04T17:47:19 | 2020-05-04T17:47:19 | 259,614,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | import asyncio
import aiohttp
import json
STATION_ID = "5b8449037c519100190fc728"
SENSOR_ID = "5b8449037c519100190fc72a"
async def fetchContent(session, url):
async with session.get(url) as response:
return await response.text()
async def getTemperature():
async with aiohttp.ClientSession() as se... | [
"noreply@github.com"
] | harunler.noreply@github.com |
c4ea8e6e09385564e75ef4d36a7fafa8033aaffb | 691e4890a070b18feb74e1bf817af8ebe9db342b | /V-Scrack/exp/payload/rdpbrute.py | ca37e6fb3d5b4ee57d7232ee3d6aaf8c36b5749a | [] | no_license | witchfindertr/Python-crack | 764af457b140fad4f28f259dc14c444d2445b287 | 88659e72e98d4cec0df52d2f5b4b9c8af35a39a6 | refs/heads/master | 2023-02-23T12:45:11.475706 | 2020-03-03T14:41:05 | 2020-03-03T14:41:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,409 | py | # -*-coding:utf-8-*-
import optparse
import os
import requests
import time
def main():
usage='[help -s 扫描全网3389]'
parser=optparse.OptionParser(usage)
parser.add_option('-s',action='store_true',dest='ji',help='扫描全网3389')
parser.add_option('-b',dest='bao',help='爆破字典(username)')
parser.add_option('-p'... | [
"xianghgoog@gmail.com"
] | xianghgoog@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.