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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c9ecd35d616ef88ccc7f420415f08dd4ddf41e39 | f245ab2ecf1e0fbf8278e2a23b3835c8076d6afe | /Python/Databases & Python Drill - Py2.7/Drill2.py | 0f73bdfb2353faf20d2d8dcbe20824005f9c0a8f | [] | no_license | gordonmannen/The-Tech-Academy-Course-Work | 6bb6f799d9e0b8572b82c30fa3d2f928afc77bf5 | 685f336601064efa2f08ed6690ec876931d2e4b7 | refs/heads/master | 2021-01-17T13:23:24.588154 | 2016-07-31T04:42:24 | 2016-07-31T04:42:24 | 56,191,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | import sqlite3
# get person data from user and insert into a tuple
firstName=raw_input("Enter your first name:")
lastName=raw_input("Enter your last name:")
age=int(raw_input("Enter your age:"))
personData=(firstName,lastName,age)
# execute insert statement for supplied person data
with sqlite3.connect('test_database.... | [
"gordon.mannen@yahoo.com"
] | gordon.mannen@yahoo.com |
e4766238d4ec25a4e788d84ab3736928a41ee592 | 896ed66a7017baf5b5fa9bbfd5be874692199190 | /inctf/forensics/LOGarithm/dec.py | 6ac81eb1816ecc621597f64560884c170e15192c | [] | no_license | ayrustogaru/CTF-writeups | af552ecea69c2305f9bd409c5076c93b6665521c | 03748b8c7f923fc1f7b7552cc09390a4eedb04a7 | refs/heads/master | 2022-12-08T06:09:44.000084 | 2020-08-17T16:36:52 | 2020-08-17T16:36:52 | 286,497,790 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,128 | py | #dec.py - A decrypter for the LOGarithm challenge
key = "UXpwY1VIbDBhRzl1TWpkY08wTTZYRkI1ZEdodmJqSTNYRk5qY21sd2RITTdRenBjVjJsdVpHOTNjMXh6ZVhOMFpXMHpNanRET2x4WAphVzVrYjNkek8wTTZYRmRwYm1SdmQzTmNVM2x6ZEdWdE16SmNWMkpsYlR0RE9seFhhVzVrYjNkelhGTjVjM1JsYlRNeVhGZHBibVJ2CmQzTlFiM2RsY2xOb1pXeHNYSFl4TGpCY08wTTZYRkJ5YjJkeVlXMGdS... | [
"noreply@github.com"
] | ayrustogaru.noreply@github.com |
4e404b4c200a4b0a221a3538e8f15c212981517e | f00c8395790dca63dbbcc2fac4df39a00352c0bd | /venv/bin/django-admin.py | 52cf084b1072f56763ab153fcb77ecbcba289808 | [] | no_license | enasmohmed/Store | 2d524e2f45f758328603c476f62c1592b4154c8a | 66a8cecde29164bc0ef46b0ab95d77fd87a61fe3 | refs/heads/main | 2023-01-20T11:58:43.092800 | 2020-11-28T15:42:09 | 2020-11-28T15:42:09 | 310,835,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | #!/home/enas/Desktop/Django coretabs/venv/bin/python3
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'django-admin.py was depre... | [
"enasm2477@gmail.com"
] | enasm2477@gmail.com |
81180b489da3bf91c69747e9b812d91a91911c9a | d131ace9edae9c6b2f6c69a3901609feffddafeb | /testing_credit_cards.py | a2f2e23b4d5eab244d000edc7de6c2d8060fa3d3 | [] | no_license | lateemaspencer/grokking-algorithm | 8acaf55c83de09f105f5fd047d812c4e5b57e4b2 | 3b654cafc2ef2bdb9be955f22d2de1939a8897d5 | refs/heads/master | 2021-01-12T00:52:08.080319 | 2017-01-19T22:28:51 | 2017-01-19T22:28:51 | 78,308,565 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | from CreditCard import CreditCard
wallet = CreditCard('Lateema Spencer', 'California Savings', '5391 0375 9387 5309', 100)
print('Customer =', wallet.get_customer())
print('Bank =', wallet.get_bank())
print('Account =', wallet.get_account())
print('Limit =', wallet.get_limit())
print('Balance =', wallet.get_balance())... | [
"spencer.lateema@gmail.com"
] | spencer.lateema@gmail.com |
7995fc582146c2158eaa992be2a9ef6467415529 | f3b233e5053e28fa95c549017bd75a30456eb50c | /mcl1_input/L26/26-62_MD_NVT_rerun/set_1ns_equi_1.py | a035e758dac2d227d5ce00130a2c5ba6805a9fa2 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | import os
dir = '/mnt/scratch/songlin3/run/mcl1/L26/MD_NVT_rerun/ti_one-step/26_62/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi_1.in'
temp_pbs = filesdir + 'temp_1ns_equi_1.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
1dc650adae49d3a7f479a9ce4b8ad82b9fe7da99 | f6c9f71f8850d9db28f4de25307f5b9f2c81523c | /0x11-python-network_1/0-hbtn_status.py | 3e978c5b1848abb25b3358b61a15b1fe98adc277 | [] | no_license | RaudoR/holbertonschool-higher_level_programming | 382c527718f84920c9de8a527cbacb224a8886ca | 460750c7a8fa4e01609bd6964d993653a94a5805 | refs/heads/master | 2020-09-29T03:52:07.953201 | 2020-05-29T18:20:29 | 2020-05-29T18:20:29 | 226,943,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | #!/usr/bin/python3
'''script to fetch the url https://intranet.hbtn.io/status'''
import urllib.request
if __name__ == "__main__":
with urllib.request.urlopen('https://intranet.hbtn.io/status') as response:
html = response.read()
print("Body response:")
print("\t- type: {}".format(type(htm... | [
"rivaspaulino@outlook.com"
] | rivaspaulino@outlook.com |
50e9805b4c7342f69df26383d629e99793f89bc5 | f1d9917f6a26d71650fce36c9d5bb6cc27ba4571 | /setup.py | 22b5ac7ceacfe30e8796ea35a10812e78d5ab652 | [
"MIT"
] | permissive | arteria-project/arteria-bcl2fastq | 029caa20ba1deeb8f9f0a01429f6d416623245ae | afb1332c016d7af99cb710d3c6f4fe8f10775422 | refs/heads/master | 2023-07-12T21:14:48.265575 | 2023-07-03T08:48:58 | 2023-07-03T08:49:28 | 41,307,984 | 3 | 10 | MIT | 2023-05-05T11:37:55 | 2015-08-24T14:31:17 | Python | UTF-8 | Python | false | false | 779 | py | from setuptools import setup, find_packages
from bcl2fastq import __version__
import os
def read_file(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
try:
with open("requirements.txt", "r") as f:
install_requires = [x.strip() for x in f.readlines()]
except IOError:
insta... | [
"johan.dahlberg@medsci.uu.se"
] | johan.dahlberg@medsci.uu.se |
7f0b48fdccfb0e7bc771b9a9250292bfdef7a407 | 3b796677e4fcd78d919bbe6608bfed0438db6515 | /Solved in Python/LeetCode/linkedlist/reverseLinkedList.py | 3750853e60649f27f43e657fc2f9878c4108cc24 | [] | no_license | soniaarora/Algorithms-Practice | 764ec553fa7ac58dd8c7828b9af3742bfdff3f85 | d58d88487ff525dc234d98a4d4e47f3d38da97a8 | refs/heads/master | 2020-08-25T05:37:19.715088 | 2019-10-23T04:57:56 | 2019-10-23T04:57:56 | 216,968,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | from sys import stdout
class Node:
def __init__(self,val):
self.val = val
self.next = None
class reverseLinkedList:
def __init__(self):
self.head = None
def push(self, new_data):
newNode = Node(new_data)
newNode.next = self.head
self.head = newNode
... | [
"soniaarora141@gmail.com"
] | soniaarora141@gmail.com |
7cd6dead451db1b118d909eb26b0f50214f90344 | 2cc0972b0e99d8861bb6a84400c7e2c57f9f6cfe | /src/service.py | d8cc0ed7ed27f0fa29071829d996e6c0e46106fd | [] | no_license | activesphere/progeval | 853482ef7294da1c54f58bb4afc02354cabbd5bd | 0fd3d711a790f8983d7db1d1bdc83a4a5f4d17df | refs/heads/master | 2021-01-11T17:36:09.123958 | 2017-01-30T11:15:59 | 2017-01-30T11:15:59 | 79,797,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,349 | py | from flask import Flask, request, Response
from flask_cors import CORS, cross_origin
from modules import rct
import random, json
# App Config
app = Flask(__name__)
CORS(app)
# Config Variables
app.config['MAX_CODE_LINES'] = 1000
# Response Wrappers
def _success_ok(data):
return Response(response=data, status=200... | [
"omkar@activesphere.com"
] | omkar@activesphere.com |
e75057981a3bdeac7738d8a54a38c61bba6cfdeb | f4ed463c93dfc37875a12295bce3f3753aa667a6 | /btre/urls.py | a39da920c32c434b653b74762258313d515622d1 | [] | no_license | mcbyrnewpi/realtor-project | 675c59f50eae9bde654cf9fa23b7081e9504c71c | 420dc079173f8c4261e02e25c38ee85a02169852 | refs/heads/master | 2020-04-17T05:07:36.764569 | 2019-01-17T21:32:46 | 2019-01-17T21:32:46 | 166,264,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('', include('pages.urls')),
path('admin/', admin.site.urls),
]
| [
"mcbyrnewpi@yahoo.com"
] | mcbyrnewpi@yahoo.com |
310ba3efc4b50e2afd0630a3084758e3d9fb7876 | a73e85150f1bcf6caacb1ad0fde0abb4717faaf5 | /calc.py | 7a741d61a97a6e57a6e143659d055a17ee57d024 | [] | no_license | Stephan-Neo/Otnos-izb | 1898f524f2c43b7a177e742b11b578ea8f35e077 | c59dba063dd82e0864dc1e223a5479ca0173bca5 | refs/heads/main | 2023-09-01T14:27:02.417845 | 2021-10-14T08:16:17 | 2021-10-14T08:16:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,608 | py | # В программе есть проверка на ввод текста(выводит диологовое окно, если ничего не ввести), проверка на выбор языка
# (выводит диологовое окно, если не выбрать язык или выбрать другой)
# Выполнил: Казанцев Степан СМБ-101
from tkinter import *
from tkinter import filedialog as fd
from tkinter import messagebox
f... | [
"noreply@github.com"
] | Stephan-Neo.noreply@github.com |
fee3d63104b3a5f16534c2d6178df494e2afea73 | 935b332d3e17033a5101af12b21872ca3de5aa75 | /ieml/dictionary/dictionary.py | d9d489b3b9b6ab332a200acc54e74ae52ce7b92d | [] | no_license | IEMLdev/ieml-dictionary | 7e7dedfa318022c392a3b75a5b713cbf21bb9df0 | 1622d98d283c322639602c38ac22dbf647ecdce6 | refs/heads/master | 2020-04-07T06:29:27.658416 | 2019-01-25T16:05:59 | 2019-01-25T16:05:59 | 158,137,631 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 7,887 | py | import hashlib
from typing import List, Dict
import dill
import sys
from ieml.constants import LANGUAGES, DICTIONARY_FOLDER
from ieml.dictionary.relation.relations import RelationsGraph
from ieml.dictionary.script import script
import numpy as np
from collections import namedtuple
import os
import yaml
from ieml.d... | [
"louis.vanbeurden@gmail.com"
] | louis.vanbeurden@gmail.com |
27ad7540d3a8c2ba45524d727a0a1bdf448d9b89 | 51a5ea9129b5df011667ea0d81d09b3963cdeedb | /inventory/gce.py | 7f3e1eaac270234bfd35a3854491a05ffa3631b0 | [] | no_license | lpereir4/mStakx | 227d746afa52c1086e78360c33891a3b84d2e75f | 415d0fe542a6b86e3a02699485b77e7519629213 | refs/heads/master | 2020-06-22T16:03:45.048666 | 2019-08-12T14:08:39 | 2019-08-12T14:08:39 | 197,742,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,274 | py | #!/usr/bin/env python
# Copyright: (c) 2013, Google Inc.
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
'''
GCE external inventory script
=================================
Generates inventory that Ansible can understand by making API requests
Google Compute Engine via th... | [
"lucien.pereira@colabrain.fr"
] | lucien.pereira@colabrain.fr |
f9ce32e3176a0497a3eaef6daa9ac60efd04cfbb | babced6fab78db2ff90bcadcc4c1e177fc2dba2f | /N0V4ID | 5bfc2e5d33003de8ca2a539f737d7ef8e0543be9 | [] | no_license | N0V4ID/new | cfe2cefe286144e0ca958d795597dbbc61e7f6dc | 0acfddaf2184173550ccc36a5e45fd582cd8760a | refs/heads/master | 2022-11-15T08:31:09.028607 | 2020-07-16T06:15:55 | 2020-07-16T06:15:55 | 280,065,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,175 | #!/usr/bin/python2
# coding=utf-8
import os,sys,time,datetime,random,hashlib,re,threading,json,urllib,cookielib,requests,mechanize
from multiprocessing.pool import ThreadPool
from requests.exceptions import ConnectionError
from mechanize import Browser
reload(sys)
sys.setdefaultencoding('utf8')
br = mechanize.Brows... | [
"noreply@github.com"
] | N0V4ID.noreply@github.com | |
d1ca03e375d629477112283390f4aec9f87f833e | 70f94eb2fc6190c97805f47c4268bece3d9fa0ba | /smoothing.py | 8155c566bfcf2252678294c6e976ee3a95d95778 | [] | no_license | DDJesus/smooth_avg | b8132172575c119047e33a39aa10459eaf500c11 | 976d41222a89f46c391c2c622725b3c9a3486661 | refs/heads/master | 2020-03-20T22:42:36.540241 | 2018-06-18T22:11:49 | 2018-06-18T22:11:49 | 137,811,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | import numpy as np
test = [1000, 2000, 1570, 2100, 1170, 1860, 2060, 2080, 3100]
def smooth_avg(l, o):
new_l = l
outliers = o
count = 0
m = np.mean(new_l)
s = np.std(new_l, ddof=1)
max_n = 0
for x in range(len(new_l)):
item = new_l[x]
if item > m + s:
outliers.... | [
"noreply@github.com"
] | DDJesus.noreply@github.com |
be48ffa01aa280079ae37f24566d269afabbab18 | d2875f2518ebd8cb468a4752e56f99046047c52a | /dist/domain/role/huanggong/guan5.py | 20d17e60db72560f2d0d5e1b5727bf090a359ad2 | [] | no_license | tianyufighter/jiaofeiji_game | 6f5e73104424d04646e06ef5381e59ff62340cef | 728b57ad78b366efd166f425f72fb39496c598e8 | refs/heads/master | 2022-12-12T06:20:07.419641 | 2020-09-25T06:05:45 | 2020-09-25T06:05:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,771 | py | import random
import pygame
from dialog.huanggong.guan_dialog import GuanDialog
from role import DirAction
class Guan5(pygame.sprite.Sprite):
"""
士兵
"""
def __init__(self, x, y):
self.walk = DirAction("farmer55", "1394-8ddc27f7-", 4, 5, True)
self.pos_x = x
self.pos_y = y
... | [
"634522023@qq.com"
] | 634522023@qq.com |
ff8a299c9d32165282324d050f87b5e21287ec16 | 53d84da9cd7dd1d9b74383ca56061a50cc8b57c1 | /python3/bmi_main.py | 9370cf2a77360ebbf3aff5816719914f6755fa6c | [
"MIT"
] | permissive | yusufshakeel/Python-Project | 899be3fe5b709a19f98941137d49252566ebde98 | b6907fa5207952963e3c115f10a75adad4b095d4 | refs/heads/master | 2020-04-26T05:07:19.461418 | 2014-08-17T18:28:20 | 2014-08-17T18:28:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | from bmi import BMI #import BMI class from bmi module (file)
def main():
obj1 = BMI("Tom", 18, 145, 70) #create object
print("BMI for", obj1.getName(), "is", obj1.getBMI(), obj1.getStatus())
main() #call main function
| [
"yusufshakeel.in@gmail.com"
] | yusufshakeel.in@gmail.com |
f23c2757ed8e4ca90447aa22544c7b12337b52d2 | b3677987615b2948ec84c341ac06f1228aa66440 | /day_51-60/day_52/main.py | 4de54c3b3c125bc7ca7f4b933bd81c3927f36a03 | [] | no_license | MohamadHaziq/100-days-of-python | 38eb0ea90032fe771dc4974dbbd239c3ae46dcab | 1977d22566f76812a7df8806e52fa9b54527d144 | refs/heads/main | 2023-02-13T13:09:31.765007 | 2021-01-03T16:08:57 | 2021-01-03T16:08:57 | 314,592,788 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,228 | py | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.common.exceptions import ElementClickInterceptedException
import time
CHROME_DRIVER_PATH = "./chromedriver.exe"
SIMILAR_ACCOUNT = "insta"
USERNAME = "insta-email"
PASSWORD = "insta-pass"
class InstaFollower:
def __init_... | [
"haziq.roslan@digitas.com"
] | haziq.roslan@digitas.com |
41b527071ce726caad5d3a7fbfab7a578b83c161 | 3cb67d0e1fbda4bb6a22d826c34d2eeb0d7283ed | /lolcat/cat_service.py | 65aa8458ba19de50d64b4aaf60f9583201d59282 | [] | no_license | kanr/python-jumpstart | dc6035877c87e5e6f873ada8abdc31067b43e4d0 | bb29ac2260c74e9910de993c9ad909bde62d3f36 | refs/heads/master | 2021-01-24T03:13:01.149078 | 2018-03-02T07:05:27 | 2018-03-02T07:05:27 | 122,880,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | #Connor aitken
import os
import shutil
import requests
def get_cat(folder, name):
url = 'http://consuming-python-services-api.azurewebsites.net/cats/random'
data = get_data_from_url(url)
save_image(folder, name, data)
def get_data_from_url(url):
response = requests.get(url, stream = True)
return... | [
"connor.aitken@gmail.com"
] | connor.aitken@gmail.com |
3c770a2379cb86640ff65243bff4321c5d24a726 | f1616ef34f61a532d7866bc0b793f6e85df07ada | /blog/models.py | 3fcba11307d1471f90964bc2eed7281e131475ff | [] | no_license | katherine95/mysite | e9997c3205d1586be947606ff1a050cfcaf38088 | ce3d193fab1e89b5e75e0019446116d1a2f7db2e | refs/heads/master | 2020-05-31T17:43:09.702459 | 2017-06-12T01:02:35 | 2017-06-12T01:02:35 | 94,041,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | from django.db import models
class Post(models.Model):
title = models.CharField(max_length=200)
body =models.TextField(max_length=350)
date =models.DateTimeField()
def __str__(self):
return self.title
| [
"kathiekim95@gmail.com"
] | kathiekim95@gmail.com |
c4f2b4f9d0ac3cb284f0b59256c30ad33b19b47d | 3532ae25961855b20635decd1481ed7def20c728 | /app/serwer/src/Serv/__init__.py | 03b3df43a5db72731ee42cc2f624d3047ba0f8f0 | [] | no_license | mcharmas/Bazinga | 121645a0c7bc8bd6a91322c2a7ecc56a5d3f71b7 | 1d35317422c913f28710b3182ee0e03822284ba3 | refs/heads/master | 2020-05-18T05:48:32.213937 | 2010-03-22T17:13:09 | 2010-03-22T17:13:09 | 577,323 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | import ConfigReader
import Group
import Logger
import Packet
import Parser
import UDPServer
import User
import UserAuthenticator
import UserDBReader
import UserGroupManager | [
"mcharmas@ffdda973-792b-4bce-9e62-2343ac01ffa1"
] | mcharmas@ffdda973-792b-4bce-9e62-2343ac01ffa1 |
df86e18aa118aa33e47a8f31b0c501946df0c58d | f912b88787579b6bd701789f34c81076bc3b359b | /connection.py | 46589ec061250af51438152a23f9c7d83fa22699 | [] | no_license | febimudiyanto/mysql-python | 5e616e8a3872eda1eaba2d51f559378dad264f9b | 43d452d23698ae0af26f906190e8d0c94ba64ad3 | refs/heads/main | 2023-04-05T05:08:58.955320 | 2021-04-20T16:11:55 | 2021-04-20T16:11:55 | 316,931,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,084 | py | # IP address dari server
'''
untuk terkoneksi dengan mysql secara remote, bisa digunakan command berikut:
mysql -u python-user -h <ip> -P <port> -p
> masukkan passwordnya
* insert
INSERT INTO table_name VALUES (column1_value, column2_value, column3_value, ...);
INSERT INTO logins(username, password) VALUES('admini... | [
"noreply@github.com"
] | febimudiyanto.noreply@github.com |
240ab9621859a771e060884aca014181fb68ca3c | 5ca726786d01c2256de7b6baed3c286ddd8e0bae | /Portilla/Linear Regression/ml_basic.py | eaaa03bff0ff01cb29d6ab627770f5196c95128c | [] | no_license | m-squared96/Snippets-ML | c9e53d3493ac752353f4d90c4ed55708d6ae2dcc | 2e5530177fcf56c526c5e7624092657e88c81e5a | refs/heads/master | 2020-03-19T10:37:17.001057 | 2018-06-12T21:26:34 | 2018-06-12T21:26:34 | 136,386,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | #!/usr/bin/python
import numpy as np
from sklearn.model_selection import train_test_split
x, y = np.arange(10).reshape((5,2)), range(5)
x_train, x_test, y_train, y_test = train_test_split(x, y, test_size=0.3)
for i in (x_train, x_test, y_train, y_test):
print(i) | [
"michael.moore34@mail.dcu.ie"
] | michael.moore34@mail.dcu.ie |
7cf29bf614e1f9a6d4e5cd8269daa64ebce39503 | a90888c62b2a24d71ba8f46536ebe75c52cf720e | /app/__init__.py | 7d373a109fab06911d7aad741dae9bb770f4757d | [] | no_license | Denniskamau/Tuklab | f7843fb92aac752cbe5e769f320d44b6f6f91856 | 1b1934f3e79ecc8fca89135255520adb4f67c999 | refs/heads/master | 2021-01-22T06:12:10.888017 | 2017-02-12T22:21:36 | 2017-02-12T22:21:36 | 81,747,943 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,451 | py | from flask import Flask, render_template,session
from flask.ext.bootstrap import Bootstrap
from flask.ext.mail import Mail
from flask.ext.wtf import Form
from wtforms import StringField, BooleanField, SubmitField, validators
from wtforms.validators import Required
from flask.ext.moment import Moment
from flask.ext.sqla... | [
"denniskamau3@gmail.com"
] | denniskamau3@gmail.com |
2a4f06bbe80fc25b36b4ad5e17376a21f8e756b9 | a38408a62efce0490284cc0866b3880b0e7fcb64 | /main.py | 2bc20f000be2133357e46d88473ec2ef0ff8d20a | [] | no_license | xiaoleiHou214/KDFM | fe033345f220b0ed3914e7bfac214559b43f2a5e | 8858fd750b77cbd803a38dea5604bcc788930d8f | refs/heads/master | 2021-10-22T04:28:38.735400 | 2019-03-08T02:29:06 | 2019-03-08T02:29:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,537 | py | import os
import numpy as np
import pandas as pd
import tensorflow as tf
from sklearn.metrics import make_scorer
from sklearn.model_selection import KFold,StratifiedKFold
from DataReader import FeatureDictionary, DataParser
from matplotlib import pyplot as plt
import codecs
from collections import defaultdict
import c... | [
"ixiaocn@163.com"
] | ixiaocn@163.com |
95149da7db451c97b4b863918bb4c788b0f439f4 | 4bfe441ce7b3da39304b045bb6ceb6f6efb21b25 | /project_html/app_fuzhou/views_utils/utils_waf.py | ec8119be03c135aec53281a03e28621a9bec55cd | [] | no_license | DearYuanYuan/8lab_react_project_html | d7046a4ed7da830f75faa790148338cd8a5c7f1f | 9133d9bd5e04ee70492b648f6df448fab80f28c8 | refs/heads/master | 2020-03-23T21:17:07.442492 | 2018-07-24T03:19:43 | 2018-07-24T03:19:43 | 142,095,449 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 21,299 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
本例用来为waf_view提供调用,功能从ElasticSearch中读取对应wafLog
Author 杨泽
Date 2017-4-26
依赖于logstash配置:
filter{
else if "wafLog" in [tags] {
grok {
match => {
"message" => "^X-Forwarded-For: %{DATA:XForwardedFor}$"
}
}
grok {
match => {
"me... | [
"jorelin0924@gmail.com"
] | jorelin0924@gmail.com |
6269ee728324127ee62aa78090ebac112614e251 | 80873f43da689b46bdf42d850365d53899c05242 | /Jacobi_GaussSeidel/jacobi.py | 23b7729249f1e7311c73700930c6161c99ef6b86 | [] | no_license | dhimoyee-sumatra/scientific_computing | 30b4146c8bc2fec7a39e5cc6a95081b80bacc7c0 | cd489c26f390c75975c5cd4cf260158832bf6d42 | refs/heads/master | 2020-03-08T01:51:48.441229 | 2018-04-03T03:02:11 | 2018-04-03T03:02:11 | 127,842,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | import numpy as np
import matplotlib.pyplot as plt
import scipy.linalg as scp
def jacobi(a, b, xc):
tol = .5e-6
n= len(b)
d=[a[i, i] for i in range(n)]
r= a - np.diag(d)
x= np.zeros((n,1))
bb= np.reshape(b, (n,1))
dd= np.reshape(d, (n,1))
k=0
while(np.abs(xc-x).max()> tol):
x=(bb-np.dot(r,x))/dd
k=k+1
pr... | [
"dhimo22s@mtholyoke.edu"
] | dhimo22s@mtholyoke.edu |
d412b8ebe52fafa4e127bd0961f02f1ae6a5f0da | eaee84243b3ea7ee71cdbf5e3d6f471d1fca4ee1 | /src/game.py | 3080b39293b7b726d0ebc3ae99108f194647f8cf | [] | no_license | busterroni/3030 | 4b608f4a69a7d170c267d4370d88121d1a412d30 | 8ed77beb4565d813e1d4aa602c84f964170bf2c7 | refs/heads/master | 2021-01-15T23:20:56.436694 | 2015-09-20T23:25:54 | 2015-09-20T23:27:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,283 | py | #!/usr/bin/env python
# coding: utf-8
SEP = '\n<!-- GAME -->\n'
def get_between_sep(fname, sep):
with open(fname, 'rb') as f:
contents = f.read()
parts = contents.split(sep)
assert len(parts) == 3
return parts
table = {
' ': '🍭',
'.': '[🌲][dead]',
}
def make_game_iter(iter):
... | [
"interestinglythere@gmail.com"
] | interestinglythere@gmail.com |
240b8bac2f0652b595726e36702120548cb29b54 | 48894ae68f0234e263d325470178d67ab313c73e | /inv/management/commands/l3-topology.py | ddbb5633ba7c4973bf42b331a10bd0388bbe360e | [
"BSD-3-Clause"
] | permissive | DreamerDDL/noc | 7f949f55bb2c02c15ac2cc46bc62d957aee43a86 | 2ab0ab7718bb7116da2c3953efd466757e11d9ce | refs/heads/master | 2021-05-10T18:22:53.678588 | 2015-06-29T12:28:20 | 2015-06-29T12:28:20 | 118,628,133 | 0 | 0 | null | 2018-01-23T15:19:51 | 2018-01-23T15:19:51 | null | UTF-8 | Python | false | false | 7,640 | py | # -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## L3 topology
##----------------------------------------------------------------------
## Copyright (C) 2007-2012 The NOC Project
## See LICENSE for details
##---------------------------------------------------------------... | [
"dv@nocproject.org"
] | dv@nocproject.org |
f835ecee1a0f433e30a00f11d4e3009d7dfa125e | 77d74e225f172151af23558849faacb8d77cccfd | /zodiac_sign_finder.py | 15c0bd431e2331204e57bb8543f9c1139fecc937 | [] | no_license | balderasdiana/Zodiac-Sign | bc12bbb01b26c13434ac4a02030100160f6f827b | d69a645b74b64b37e7b3e72441a33787b159e412 | refs/heads/master | 2022-11-17T15:43:11.810022 | 2020-07-09T14:04:45 | 2020-07-09T14:04:45 | 266,240,042 | 0 | 1 | null | 2020-07-09T14:04:47 | 2020-05-23T01:22:28 | Python | UTF-8 | Python | false | false | 3,162 | py | # Created by Diana Balderas and Jordan Leich, Original release: 5/17/2020, Updated on 7/8/2020.
# Email jordanleich@gmail.com if you wish to collaborate or work together sometime.
# Instructions: Enter you birth month in lowercase letters and enter your birth date in numbers.
# Imports
import time
import restart
# M... | [
"noreply@github.com"
] | balderasdiana.noreply@github.com |
c876d63d1c3f174c77f59f76300e1d3fced9457f | d8348786332e8d60ae83f7da643efcd545801401 | /png2ass.py | 16b4c487ca72b7ab682c91d6b5b45df325e4cdb9 | [
"MIT"
] | permissive | emako/png2ass | 73deaad0929286899ed3ff201f53b37f717e159f | 77ee424dc032a343d1d3fde7a2946d1ee36af8d6 | refs/heads/master | 2020-04-09T04:26:44.036760 | 2018-12-02T07:25:04 | 2018-12-02T07:25:04 | 160,023,441 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,214 | py | # -*- coding: utf-8 -*-
import sys
from tcaxPy import *
try:
input = sys.argv[1]
except:
print('Error: none input image file!')
sys.exit()
output = input
width = 1280
height = 720
ass_header = """[Script Info]\r
; This script is generated by png2ass powered by TCAX 1.2.0\r
; Welcome to TCAX forum htt... | [
"noreply@github.com"
] | emako.noreply@github.com |
8bbdbcdf581968d290040b5000ecbce9b3daa08b | 9e1f4824c724631208fcc8fe1f16945947630427 | /venv/Scripts/django-admin.py | c486558899b36107b2b8fb7c2efd172340e5a722 | [] | no_license | gilbenhamo/EasyShop | d7596af2db4a06978664579634e5fda58f9cc7b1 | 5839e722d8684ed9dc34a48bebc7caad10b17f87 | refs/heads/master | 2023-07-12T00:06:52.837652 | 2021-01-08T15:25:05 | 2021-01-08T15:25:05 | 664,358,524 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | #!C:\EasyShop-ziv\venv\Scripts\python.exe
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'django-admin.py was deprecated in Dja... | [
"gilbh859@gmail.com"
] | gilbh859@gmail.com |
8a669159d71e65a34188db691932a5319de7f270 | a7d12129e0b36046cfd6f95fbe0842b5bad69f92 | /ArchiveRec/hello_world/urls.py | e3c3cf6a5b3438d4a54525d5b60fbf464498435b | [] | no_license | BenjaminJenney/ArchiveRec | c46fd33085626838d4986388ce4c3a6ee682fda5 | ab11b3f3635c6c220ce9da5abefbbb8f7d9188e8 | refs/heads/main | 2023-08-21T11:21:08.203710 | 2021-10-08T15:25:43 | 2021-10-08T15:25:43 | 415,033,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | from django.urls import path
from hello_world import views
urlpatterns = [
path('', views.hello_world, name='hello_world')
]
| [
"benjenns@gmail.com"
] | benjenns@gmail.com |
703e7427495b97d7a885aa45eea1606e2660b7a2 | 8061b2ce49387b26b51c9634612c837ae3bd38e2 | /main1.py | af7d095de9dec7acd088b9b503ee18b696f531c8 | [] | no_license | Carine-SHS-Digital-Tech/intro-to-github-JardanSus | 3932942159ebda94ab839d8d38087c775756463e | e052f4a2885deb24f756a2ec4e818276f364c70b | refs/heads/main | 2023-06-27T17:47:26.222065 | 2021-08-01T08:54:35 | 2021-08-01T08:54:35 | 379,786,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,086 | py | menu = ["Cappuccino", "Espresso", "Latte", "Iced Coffee"]
prices = [3, 2.25, 2.50, 2.50]
gst = float(0.1)
takeAway = float(0.05)
count = 0
total = 0
x = 0
orderItems = []
orderPrice = []
nextItem = True
choice = input("Hi, welcome to Cafe au Lait\nWould you like takeaway [T] or Dine in [D]? ")
print("Here is the m... | [
"noreply@github.com"
] | Carine-SHS-Digital-Tech.noreply@github.com |
3ff886427d0bbc511c3a10a0eb2bf4b511510cf6 | 89141c20942b9cfd9259693d4e17eb4328c92e1a | /Game/Games/Encrypter/Encrypter_gui.py | a73038f52b2adbe36efc56d8b3153a04ff16f57a | [
"MIT"
] | permissive | AnirbanBanik1998/Modern_Speak_and_Spell | 3647d29fd524a192a1bba3249a937bb138a8e9b4 | 18a00fd137d11f3d52055efc64cc3ae5c715412b | refs/heads/master | 2021-04-15T14:51:18.902173 | 2018-08-30T15:40:23 | 2018-08-30T15:40:23 | 126,737,696 | 6 | 4 | null | null | null | null | UTF-8 | Python | false | false | 8,710 | py | import pygame
import Encrypter
import subprocess
import sys
sys.path.insert(0, "../../../")
from API import recorder, edit
def message(msg, color, width, height, font_size, center=False, bg=None):
'''
Function to display a specific message in a specific position with a specific color.
:param msg: The text to... | [
"anirbanbanik17@gmail.com"
] | anirbanbanik17@gmail.com |
a401aaa862e6f2bc65f030853a132d572477afd0 | c9b4afeb20987fa33e0b1c3a5d8b35b6d729308f | /PassVault.py | 07450eb55a60959e85b525a162d3469bffd58859 | [] | no_license | mosheduminer/PassVault | 7931a50764bb9dca57f496231f7eb98e12467de6 | 0050da5f4b0305d908b3cf77e02b7a99ea9995bb | refs/heads/master | 2020-04-22T00:21:58.918460 | 2019-02-11T01:18:31 | 2019-02-11T01:18:31 | 169,977,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,515 | py | from os import path
from sys import exit
from time import sleep
class cipher():
def __init__(self, c):
self.c = c
lc = len(c)
self.lc = lc
# test cipher validity
if lc == 0:
self.valid = "no"
else:
self.valid = "yes"
... | [
"noreply@github.com"
] | mosheduminer.noreply@github.com |
abaaec9d260cef7e59f27576dbc6108f81d1aba5 | 441c4cd6a2a751963afb8a6594576bcf11a63b2d | /lab2/SymbolTable.py | 13e3855711c298f3288cd19d57c339f5ea9af211 | [] | no_license | michlampert/kompilatory | 8404c880746626fdcdd44471489be62a9cb2e996 | 73dc5fdc979bb3b0ab39bbe5d9533231877bf448 | refs/heads/main | 2023-02-17T05:04:20.645435 | 2021-01-13T20:33:25 | 2021-01-13T20:33:25 | 302,153,347 | 0 | 0 | null | 2021-01-13T20:33:26 | 2020-10-07T20:32:23 | Python | UTF-8 | Python | false | false | 855 | py | class VariableSymbol():
def __init__(self, name, ttype):
self.name = name
self.type = ttype
class SymbolTable(object):
def __init__(self, parent, name): # parent scope and symbol table name
self.parent = parent
self.name = name
self.symbols = {}
def put(self, nam... | [
"wachtelik@gmail.com"
] | wachtelik@gmail.com |
df3bf69e1052d215786ee3266d66ff9529129bf4 | 174aa0021c10ebe4d7598b44404f8dfcad0cbc24 | /dateparser/data/date_translation_data/ki.py | dc720c347e27c7789baf072713bafc901736f7cb | [
"BSD-3-Clause"
] | permissive | Ronserruya/dateparser | 6789fc84bd548e040975ab693c50362673960571 | 238d0dbc7a03a00c29818e474f28848e100010bc | refs/heads/master | 2022-07-07T09:33:37.849429 | 2020-05-13T07:19:56 | 2020-05-13T07:19:56 | 263,635,745 | 0 | 0 | BSD-3-Clause | 2020-05-13T13:20:15 | 2020-05-13T13:20:15 | null | UTF-8 | Python | false | false | 2,714 | py | # -*- coding: utf-8 -*-
info = {
"name": "ki",
"date_order": "DMY",
"january": [
"njenuarĩ",
"jen"
],
"february": [
"mwere wa kerĩ",
"wkr"
],
"march": [
"mwere wa gatatũ",
"wgt"
],
"april": [
"mwere wa kana",
"wkn"
]... | [
"sarthakmadaan5121995@gmail.com"
] | sarthakmadaan5121995@gmail.com |
d46fe004e10c5667c296cf71217f95529c31f646 | c0a34cb6afebe699c55fdef5050b7a3efd0385cf | /media.py | 015fdaee40e02f6683a3d56def5385d891d48db3 | [] | no_license | wonjunee/movie-website | fdf4dbf9953af3e7c820ab3371ca793f44d03e2f | 6656282c2636e5b5e79888faacefde32384f56ba | refs/heads/master | 2020-12-05T08:12:14.925657 | 2016-09-01T15:27:37 | 2016-09-01T15:27:37 | 66,372,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 969 | py | import webbrowser
class Video():
def __init__(self, title, storyline, poster_image_url):
self.title = title
self.storyline = storyline
self.poster_image_url = poster_image_url
class Movie(Video):
""" This class provides a way to store movie related information"""
VALID_RATINGS = ["G", "PG", "PG-13", "R"]
de... | [
"mymamyma@gmail.com"
] | mymamyma@gmail.com |
80c0c27870ce71a22e174624e3284d9f31530be7 | 500bb70b7ff3713ccbee645b9eef44ae148c325a | /rabbitmq_example/2WorkerQueue/new_task.py | c1cc9dddd5771c018c70704af6ac7a3ce5ef3ee1 | [] | no_license | DipalModi18/PythonTutorial | 3bc64a6c43c64cae8825e0b135c21533f6c6948e | 43ca5cfa0077b1b08076c8cb02046a49a1694520 | refs/heads/master | 2021-07-09T11:55:31.236377 | 2020-07-29T16:41:56 | 2020-07-29T16:41:56 | 171,649,042 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 997 | py | # Reference: https://www.rabbitmq.com/tutorials/tutorial-two-python.html
import sys
import pika
# The main idea behind Work Queues (aka: Task Queues) is to avoid doing a
# resource-intensive task immediately and having to wait for it to complete.
# We encapsulate a task as a message and send it to the queue.
# A wor... | [
"dmodi@sevone.com"
] | dmodi@sevone.com |
b91e5b6c07aa7a2ff0caf5f8e4cf9177fc49c24e | 807633994b9b6469379b97f31ce32b26f8009309 | /src/unicef_notification/validations.py | d3bb3305b8cb1f553eacf3486bc3378973a07123 | [
"Apache-2.0"
] | permissive | achamseddine/unicef-notification | b3eb499b56f680cad320ec3838a5c8b70e7c37b0 | 3ea1f9a3c695ce9f871f6dc2fbfc44d42f4bb34b | refs/heads/master | 2022-12-15T10:17:57.040794 | 2018-08-08T14:52:07 | 2018-08-08T14:52:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | from django.core.exceptions import ValidationError
from post_office.models import EmailTemplate
def validate_template_name(template_name):
try:
EmailTemplate.objects.get(name=template_name)
except EmailTemplate.DoesNotExist:
raise ValidationError("No such EmailTemplate: %s" % template_name)
... | [
"greg@reinbach.com"
] | greg@reinbach.com |
da90f416192e97abb37a1c2a0acb8759b7bcda33 | 52ce59408b028200e66f237d7b9ef47c5c941a22 | /emotion_data/behaviour.py | 9b8dd27bd7de3f38d3454caeaa491c5ae63eff5c | [] | no_license | alternativeritam/emotion_data | 9fe3f0e9cff0ffe1178aceb81364205191d43ea9 | b3b859a511d09040cdd3171db11641ae273af5c6 | refs/heads/master | 2021-10-10T12:22:56.906162 | 2019-01-10T18:08:03 | 2019-01-10T18:08:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,760 | py | from emotion_data.emotions import EMOTIONS
BEHAVIOUR_NAMES = {
"protection": {
"purpose": "Withdrawal, retreat",
"activated_by": ["fear", "terror"]
},
"destruction": {
"purpose": "Elimination of barrier to the satisfaction of needs",
"activated_by": ["anger", "rage"]... | [
"jarbasai@mailfence.com"
] | jarbasai@mailfence.com |
54b2be42e83b330d1628b0b0222b4dbf05a1c53d | 4ad8e15d2d73be692903aed9228305dab35cdb80 | /main.py | 19d7baef13a93a33d876813405a8cff2bc959b2a | [] | no_license | rigved-sanku/Covid-19-Prediction | 500ce0cb9b0871c04528ed1c913b692b2ca0f891 | 363105cb1b877d0047235ec72a276b732f753923 | refs/heads/main | 2023-07-05T09:25:31.251640 | 2021-08-15T12:13:36 | 2021-08-15T12:13:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | model=MLP() #model is an object of class MLP
#Training the model
NeuralNet1 = Layer(2,[2,5],activation=['linear'])
NeuralNet2 = Layer(4,[12,16,16,2],activation=['relu','relu','linear'])
epochs=1500
lr1=0.1
lr2=0.005
model.Train(Xnet1_train_scaled.T, Xnet2_train_scaled.T, Ytrain_scaled.T, NeuralNet1, NeuralN... | [
"noreply@github.com"
] | rigved-sanku.noreply@github.com |
c6964c95050e59ebc7015bf6f15d7dc4ca2a9030 | edc4dfa7fbdc42d12d1d12b0cd15b1bec5b88074 | /exhand/test1.py | 8fdd3ffc038aa353fe3031b40a3fbe10dab1679a | [] | no_license | srikanthpragada/PYTHON_01_OCT_LANGDEMO | ed0236266102f8e38190b4ac076d5d46d2d61898 | c8d427e74f8ac6c32a081006e19cba92483735bf | refs/heads/master | 2020-03-30T20:27:56.490472 | 2018-11-03T15:29:18 | 2018-11-03T15:29:18 | 151,589,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | try:
num = int(input("Enter a number :"))
# process num
print("Result = " ,100 / num)
except Exception as ex: # Handle all exceptions
print("Error : ", ex)
else:
print("Success!")
finally:
print("Done!")
print("The End") | [
"srikanthpragada@gmail.com"
] | srikanthpragada@gmail.com |
e734cd15c4fe7124453b5121f3db1a3321e5636f | 7bea4acfdac07cc916fe0a7b16eddef536785721 | /unit_3/mnist/part1/features.py | 34e59b1f10ce98ca88cf92ecbca662f4d4c95dd7 | [] | no_license | MarinoSanLorenzo/FromLinearModelsToDeepLearning | b07713f9fc4b0939f264df1670adc06e86ecc3a0 | d22f3a796dfb5d7e5d470cc84ca15fefcaf7da3e | refs/heads/master | 2020-12-28T12:27:36.967202 | 2020-05-17T21:04:32 | 2020-05-17T21:04:32 | 238,332,017 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,723 | py | import numpy as np
import matplotlib.pyplot as plt
def project_onto_PC(X, pcs, n_components, feature_means):
"""
Given principal component vectors pcs = principal_components(X)
this function returns a new data array in which each sample in X
has been projected onto the first n_components principcal co... | [
"marino.sanlorenzo.ext@vodeno.com"
] | marino.sanlorenzo.ext@vodeno.com |
403785798b466f4f2d10babedf92be761255ff92 | 116a30b09e73000e5502b29b49b4acc8fe8352a3 | /show_schedule.py | 08f2bcacd30072be2f697bec1e8a65bab7293581 | [] | no_license | Terminal-Adawe/Berth-Scheduler | 1f4254a2794aa514672ad16dbb3041bc60a3282f | 0e31dab6edd6e5eb5f70cd45df99dcd85c17617c | refs/heads/master | 2023-07-23T19:13:22.172644 | 2021-09-07T02:05:30 | 2021-09-07T02:05:30 | 403,810,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | from tkinter import *
def show_schedule(scheduled_berths):
root = Tk()
root.title("Berth scheduler")
frame = LabelFrame(root, text="Show Schedules", padx=50, pady=50)
frame.pack()
schedule_hour_label = Label(frame, text="Hour")
schedule_hour_label.grid(row=0,column=0)
the_berth_label = Label(frame, text="Ber... | [
"bede.abbe91@gmail.com"
] | bede.abbe91@gmail.com |
d0beb9c3134d0318af94ce00297b954fb023fb07 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2793/60617/307505.py | 73e9eaf62495f15bc522a02ac20b67dec8cf6e78 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | def crazy_Computer():
row1st=input().split()
n=int(row1st[0])
c=int(row1st[1])
timeSequence=list(map(int, input().split(" ")))
count=1
if row1st==['6', '1']:
print(2)
exit()
for i in range(1, len(timeSequence)-1):
if timeSequence[i]-timeSequence[i-1]<=c:
c... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
30d956d6ecbb481dfee312777ba5744713bf23ba | c933e9f705aca2586a866cbb489804eb37103b6f | /testing/.ipynb_checkpoints/FELion_normline-checkpoint.py | 562f5aeba45577c506aef386943706a6be7d0595 | [
"MIT"
] | permissive | aravindhnivas/FELion-Spectrum-Analyser | ce49b6b23323a5e58df0cd763e94129efccad0ff | 430f16884482089b2f717ea7dd50625078971e48 | refs/heads/master | 2020-04-08T00:24:30.809611 | 2019-08-29T14:21:44 | 2019-08-29T14:21:44 | 158,850,892 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,287 | py | #!/usr/bin/python3
## Importing Modules
# FELion-Modules
from FELion_baseline import felix_read_file, BaselineCalibrator
from FELion_power import PowerCalibrator
from FELion_sa import SpectrumAnalyserCalibrator
from FELion_definitions import ShowInfo, ErrorInfo, filecheck, move
# DATA Analysis modules:
import matplo... | [
"aravindhnivas28@gmail.com"
] | aravindhnivas28@gmail.com |
79ee4e01c566bb072a11ade207617ee6e9dac2c8 | 553af6f6bafcd5ab9ad7112165ba45ede88f52b9 | /inspiration/models/InspirationBaseCollectionObj.py | 7d5f41c1824f44ac8d902c4bff3954bc69e1d72a | [] | no_license | jeffdsu/blank | 78d828150b0c10153267636a97fa0350438cdfe0 | 06602a9dcebe8bbaa58e127df2e7faa712273682 | refs/heads/master | 2021-01-17T08:14:36.394401 | 2016-07-19T02:45:47 | 2016-07-19T02:45:47 | 56,404,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | class InspirationBaseCollectionObj():
pass | [
"jeffdsu@gmail.com"
] | jeffdsu@gmail.com |
b6ea600d97f79d0a3e69d75ec5864f375fd05095 | d41e087b5b51ec0020cdec7b865ced7acdd6012e | /messengerbot/Messenger.py | 80911e691d5df2e6dc44276ec1aaf6020eeb1b38 | [] | no_license | vmm2297/ECE-USC-Server | acb7ac49b74b53918aa310e2e52cd7e2417e7b27 | f3595117924cdb0494f64e1219326e75548ba6b6 | refs/heads/master | 2020-03-13T01:26:28.830172 | 2018-05-22T20:08:26 | 2018-05-22T20:08:26 | 130,903,628 | 0 | 0 | null | 2018-04-24T19:24:44 | 2018-04-24T19:24:44 | null | UTF-8 | Python | false | false | 4,182 | py | from enum import Enum
import json
def main():
msg = TextMessage('lol', 1231232)
msg.add_quick_reply( QuickReply(content_type=QR_ContentType.TEXT, title='title', payload='pyld', image_url=None))
print(msg.serialize())
#msg = ImageMessage('this is the url', psid=1231232)
#print(msg.serialize())
cla... | [
"alexsebastian.garcia@gmail.com"
] | alexsebastian.garcia@gmail.com |
17c37c7eafc2ba980e3b2a570aa3241a8fc15e48 | 022386db1b99bec7817b699553349ba50db12c75 | /theta.py | cfc208bbd390092d1f752115a2dd2ba360ef3df9 | [] | no_license | MariaEckstein/LEARN | 8dd6b60cce80b1084d9a2f649e1cbef69025713e | a716ff0f39288ef6f456703a99bcdab063bbfb5e | refs/heads/master | 2021-01-20T12:51:44.469884 | 2017-11-28T21:05:03 | 2017-11-28T21:05:03 | 90,419,527 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,159 | py | import numpy as np
class Theta(object):
def __init__(self, env):
self.option_coord_to_index = self.__get_coord_function(env)
self.n_basic_actions = env.n_basic_actions
self.n_options = np.sum(env.n_options_per_level[1:])
self.initial_theta = 1 / env.n_basic_actions
self.the... | [
"maria.eckstein@berkeley.edu"
] | maria.eckstein@berkeley.edu |
fa89a5fb1be8f156007579c36360fd730af3e208 | 09ac3f6e1b5df18240d3d0a91d6e4e628896259a | /configurations.py | a1a3898da815500095dbf1bcd18057bb5a462d10 | [] | no_license | mowayao/modelcompression-2019 | def75b8f41c206d97094d878075ff059c954622c | 0f893850b6ec32b79bbd4817592d86ef27a5bad4 | refs/heads/master | 2020-08-11T20:14:39.885510 | 2019-06-29T12:11:56 | 2019-06-29T12:11:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,786 | py | from cifar_classifier import MaskedCifar
from mnist_classifier import MaskedMNist
from bayesian.MNIstDropout import MaskedConcreteMNist
from resnet import MaskedResNet18
from yolov3 import MaskedDarknet, YoloWrapper
from classifier import Classifier
from torchvision import datasets, transforms
from fasterrcnn.resnet im... | [
"ahraz.asif1994@gmail.com"
] | ahraz.asif1994@gmail.com |
fabb95158bf9293648bb55e33f5ef64f8969617f | ea767918d1391d950714d3fafabf65330bade863 | /odin/ml/decompositions.py | c59b06782744c6e34dd9d4d63821bd457fc56d8f | [
"MIT"
] | permissive | tirkarthi/odin-ai | f5bb33d02047025029891e1282b9bd389eb4eb07 | 7900bef82ad8801d0c73880330d5b24d9ff7cd06 | refs/heads/master | 2023-06-02T20:15:11.233665 | 2020-09-25T09:57:28 | 2020-09-25T09:57:28 | 298,744,248 | 0 | 0 | MIT | 2020-09-26T05:29:11 | 2020-09-26T05:29:10 | null | UTF-8 | Python | false | false | 40,980 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
import math
from multiprocessing import Array, Value
from numbers import Number
import numpy as np
from scipy import linalg
from six import string_types
from sklearn.decomposition import PCA, IncrementalPCA
from sklearn.utils imp... | [
"nickartin13@gmail.com"
] | nickartin13@gmail.com |
1c0f2a09e34cbf67a520672d0823b61ead985d30 | 2f1e5da4025bd163eb62c8606d293a391476a8c4 | /HelloWorld/operators.py | 5b9645cd7afc7317899264c45fe0c5854d7d38df | [] | no_license | jtbutler31/python-code | 1a615d07c51e3e88790fd97b214399f242f8bceb | 8e52a2b73a1faeb61eadc126d9027ca5ad38f6c0 | refs/heads/main | 2023-03-06T01:06:56.169765 | 2021-02-16T23:07:03 | 2021-02-16T23:07:03 | 339,555,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | a = 12
b = 3
print(a +b)
print(a-b)
print(a*b)
print(a/b)
print(a//b)
print(a%b)
print()
for i in range(1, a//b):
print(i)
i=1
print(i)
i=2
print(i)
i=3
print(i) | [
"noreply@github.com"
] | jtbutler31.noreply@github.com |
a6923463ee15fcf20bb4036e303685d1595d052c | be6739c9689f2a749d82c608efc24460907f730c | /ftp2/util/utils.py | 469e460b88bd2dd71853437d27cc1cda847d6bae | [] | no_license | kerry-gu/TProject | 1fb9ec9542bce30779aa52f854078d82c849a44f | 78c4de6454b13c00e17e49a350ae85aa2edb89f5 | refs/heads/main | 2023-04-24T02:11:59.162466 | 2021-05-16T11:32:58 | 2021-05-16T11:32:58 | 311,251,917 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | class utils:
def dealCookie(json, mycookie):
keys = json.keys()
for key in keys:
mycookie.set_cookie(key, json[key]) | [
"549520210@qq.com"
] | 549520210@qq.com |
6251e005cdf4607a044a2a2d90ee2905b03094f4 | 81e7e1d6e3603a7815f1bd29b67d21ac3107fe0d | /app.py | 5e127f84317eabe06791d9137511057799375d97 | [] | no_license | ariesdaboy/playlistmp3 | aa803e57a0e2675e5b516cbbdff90d9e9ff43937 | d554a5ce8c27114c2b47e5a92adf8f9b221cd378 | refs/heads/main | 2023-06-19T11:15:18.668860 | 2021-07-15T22:33:47 | 2021-07-15T22:33:47 | 386,406,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,778 | py | from flask import Flask, render_template, request, redirect
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///musicas.sqlite3'
db = SQLAlchemy(app)
class Musica (db.Model):
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
... | [
"noreply@github.com"
] | ariesdaboy.noreply@github.com |
99fd7acd8087f799bf7d79996920d54f206498f5 | 8ae38b718deafb5d7015f793240dd37d7cd4ea6f | /base/migrations/0002_order_orderitem_review_shippingaddress.py | c70b5ccc0b49e72c87b89ac630a36ddf5e8fa4fd | [] | no_license | trungpnt/delectrons-django-reactjs | 5fa840535e3294b08c54a8edc73e3c04cf8530f6 | 025843434d831822bd8d24476177b075ada76452 | refs/heads/master | 2023-05-15T04:34:52.753378 | 2021-06-08T01:15:43 | 2021-06-08T01:15:43 | 374,842,282 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,741 | py | # Generated by Django 3.1.4 on 2020-12-24 01:14
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('base', '0001_initial'),
... | [
"trungpnt0605@gmail.com"
] | trungpnt0605@gmail.com |
7b90e48776cb5ed1906723a385865f67f4255930 | 08c3c91ed4b25ef357de275333576de8e045df67 | /src/rockman/todo/tests.py | 220f7a36c09fbb3296f46c52048a39d8522ab3f4 | [
"MIT"
] | permissive | rockmans/personal-website | 39f50153836c49b547f9d133612be5e4be3d334f | 093ef59db2e5a248b817884355804ba0a405adad | refs/heads/master | 2020-04-10T18:51:16.690607 | 2016-06-01T16:43:51 | 2016-06-01T16:43:51 | 30,776,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | from django.test import TestCase
from rockman.todo.models import Todo
from datetime import datetime
class TodoTestCase(TestCase):
def setUp(self):
due_date = datetime.now()
Todo.objects.create(task="Make test.", category="House", assignee="Emily", due=due_date)
def test_return_tasks(self):
... | [
"ebuschang@gmail.com"
] | ebuschang@gmail.com |
dbe474c564414f43e0516ca3ee5aae0b9a163e11 | 3f6ab15b90bf23e5a5cc0a203e876f1caa32b023 | /dash12.py | e914edd85b71d5f61e22e88f2d021a9daf589e1b | [] | no_license | vivinandlin/0630 | 0fff3775176893b2bdc221a4c814256981b26885 | c8970fbc30388507b1a239c5c3489a504e1fdb29 | refs/heads/main | 2023-06-05T20:40:32.358286 | 2021-06-30T10:29:54 | 2021-06-30T10:29:54 | 381,614,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,997 | py | # -*- coding: utf-8 -*-
"""Untitled13.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/11vbtKr83jQ2P9cCz320AMJBZAMIx5_df
"""
# Import required libraries
import pandas as pd
import dash
import dash_html_components as html
import dash_core_component... | [
"noreply@github.com"
] | vivinandlin.noreply@github.com |
feea70d9fcfd418dfd3af9a5b19202c181470c63 | bdd3516822715bff32c6be4d57f9af9abfa269dc | /src/quote.py | 062f67437562637958464e9619ddcfaffe3350e0 | [] | no_license | permag/testing_a2 | 404936fbaa47f39c488396e26e80aaca5be9c683 | 5465832ee60d9eb662782c1a64a09dc017e950bc | refs/heads/master | 2021-01-25T04:03:07.000522 | 2014-01-06T18:08:16 | 2014-01-06T18:08:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,088 | py | # -*- coding: utf-8 -*-
import sys, json, random
class Quote:
def __init__(self):
# init
self.current = -1
self.quotes_data = []
self.quote_count = 0
#
self.quotes_data = self.get_shuffle_data(self.get_data())
self.quote_count = len(self.quotes_data)
... | [
"killingfloor00@gmail.com"
] | killingfloor00@gmail.com |
1e77fbaa5f0a74d683e6ac5aff6046ee957f0331 | 801fd0692068c8950ff1f06eec22d94bcca0ab01 | /Sentinel/sentinel.py | 9ca87bf50e3e6611ac592c6d355c1b1076e83f99 | [] | no_license | 0MNIP0TENT/Sentinel-Starcraft2-Bot | f42de38cbc51e79cf493ed6bb039e20ae2f989e4 | 3116edf7ffa923027dd19684f898d83ac8f62295 | refs/heads/master | 2020-04-19T07:58:46.113176 | 2019-01-29T01:08:08 | 2019-01-29T01:08:08 | 168,063,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,646 | py | import sc2
from sc2 import run_game, maps, Race, Difficulty, position
from sc2.position import Point2
from sc2.player import Bot, Computer
from sc2.constants import NEXUS, PROBE, PYLON, ROBOTICSFACILITY, ASSIMILATOR, GATEWAY, \
CYBERNETICSCORE, STALKER, IMMORTAL,STARGATE, VOIDRAY, ZEALOT, FORGE, PHOTONCANNON, \
... | [
"noreply@github.com"
] | 0MNIP0TENT.noreply@github.com |
d03f122f98dbf6bba0498916c870e071bb955439 | c548c10c4fd0b6c1d1c10cc645cb3b90b31f2de6 | /ml/m29_pca2_3_wine.py | b21c357d299df1dafc9268bb91762f9f1bdd2093 | [] | no_license | sswwd95/Study | caf45bc3c8c4301260aaac6608042e53e60210b6 | 3c189090c76a68fb827cf8d6807ee1a5195d2b8b | refs/heads/master | 2023-06-02T21:44:00.518810 | 2021-06-26T03:01:26 | 2021-06-26T03:01:26 | 324,061,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,459 | py | import numpy as np
from sklearn.datasets import load_wine
from sklearn.decomposition import PCA
# deomposition 분해
datasets = load_wine()
x = datasets.data
y = datasets.target
print(x.shape, y.shape) #(178, 13) (178,)
'''
pca = PCA(n_components=10)
x2 = pca.fit_transform(x) # fit과 transform 합친 것
print(x2)
print(x2.shap... | [
"sswwd95@gmail.com"
] | sswwd95@gmail.com |
bc4ce015eb040a0bfe60106b3a22e8e043989877 | ff182eeaf59b16f79b7d306eef72ddaadf0f4e71 | /Vaffle_interface/testcase/SystemModule/System_test23_invite_get_score.py | 877679a1cb1da86ccf973e312dd5811dcb3c9734 | [] | no_license | heyu1229/vaffle | 04d6f8b0d3bd0882ff1cdea54d18d5fdde7933b9 | 2c1c040f78094cf3cfc68f08627a958c4aa5e1d5 | refs/heads/master | 2023-06-05T09:55:21.894344 | 2021-03-12T07:26:45 | 2021-03-12T07:26:45 | 381,248,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | # -*- coding:UTF-8 -*-
import unittest
import requests
import time,gc,sys
from Vaffle_interface.public_1.func_requests import FuncRequests
from Vaffle_interface.public_1.get_url import Url
class Invite_get_score(unittest.TestCase):
def setUp(self):
self.member_uuid = Url ().test_user ()
self.req... | [
"1004856404@qq.com"
] | 1004856404@qq.com |
0f2a3975e869ed37fbb6cd1203f10a05e51e08ff | 5276bf1bca8c3e2328b4661f8e71454f1e491ce9 | /khalifasite/asgi.py | 17f68c452b38d9b40f78cb1892823c82e9d6c65e | [] | no_license | kidaqrus/khalifa-site | e51c1a58b8dc5196e725192278e5fe4b37146369 | 2aa52aeeef2a50a8e04956b15120a037d9475c2c | refs/heads/master | 2021-01-13T22:23:23.228518 | 2020-02-28T10:34:16 | 2020-02-28T10:34:16 | 242,513,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
ASGI config for khalifasite project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_S... | [
"adikwusule@gmail.com"
] | adikwusule@gmail.com |
3658d5cfa571df350142c76baf20af84922d923e | 79eea732277857d59616a029dfc8d1e8ab721249 | /day8/exercise2.py | 15c56c81ae2014a7e5ab56010d89829c80bc62de | [] | no_license | myorg2020/python-tutorial | 0cd0757a861263a45e3d9a235b3f869ffbcad618 | 65870da260850517009e145c9fc8077fdc2de380 | refs/heads/master | 2022-11-28T02:28:57.020480 | 2020-08-09T18:06:28 | 2020-08-09T18:06:28 | 262,838,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | # We have to print a dictionary in below format by taking user input:
# users = {
# 'name' : 'Amitesh',
# 'age' : 24,
# 'fav_movies' : ['coco', 'avengers'],
# 'fav_songs' : ['song1', 'song2'],
# }
users = {}
name = input('Enter the name: ')
age = input('Enter the age: ')
fav_movies = input('Enter your... | [
"amitesh1258@gmail.com"
] | amitesh1258@gmail.com |
3496f4f700e2b659641fffae4def352bfb335f83 | 6310a9bec472ff653d29dee3fa3d98bba1d57290 | /movies/models.py | 40f5dea696678775fca8bb7c40a25c79356e9779 | [] | no_license | TS2021AlenaM/DS | 9628c8d38062906ebfc1503948df45cbd56a9775 | bdef0bcfb0e41671f8db30a1589907b5add32e7f | refs/heads/main | 2023-06-18T18:54:09.954206 | 2021-07-17T16:56:17 | 2021-07-17T16:56:17 | 386,990,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,361 | py | from datetime import date
from django.db import models
# Create your models here.
from django.urls import reverse
class Category(models.Model):
"""Категории"""
name = models.CharField("Категория", max_length=150)
description = models.TextField("Описание", blank=True)
url = models.SlugField(max_lengt... | [
"87577721+TS2021AlenaM@users.noreply.github.com"
] | 87577721+TS2021AlenaM@users.noreply.github.com |
3bc1379fb8d510e8890c97960043bbd3b4d5b2a4 | 041469cfe025d838bba0a40ca172d2874605d618 | /Python/environments/djangoshell/djangoshell/wsgi.py | 890c0f454fb3de6adf0c679652390b193ef1e013 | [] | no_license | anarslez/repo1 | 06816547b21504e46fa0840e9c898c3470195321 | 625befde39851d9a3bb9dfd09067f344ce68665e | refs/heads/master | 2020-03-24T19:23:52.235714 | 2018-09-11T03:59:14 | 2018-09-11T03:59:14 | 142,923,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | """
WSGI config for djangoshell project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_... | [
"anarslez@gmail.com"
] | anarslez@gmail.com |
cb96246148423573cb1403ea0aee9d38f67aad27 | b179e3b3fbcb971dfe9b3597098bea9c0ad1a516 | /Q3.py | 7cc36ec99e05c2bbb9229be82b2af40cc8f753e4 | [] | no_license | kautukraj/Lab2Py | f69a7143969ca2107cc869d20539620a1d38c90c | 5468306ebfc191ea784d50d20ad00cc46365c902 | refs/heads/master | 2020-07-13T04:25:00.694835 | 2019-08-31T05:50:11 | 2019-08-31T05:50:11 | 204,988,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | from Q3input import *
#Your code - begin
r1 = len(m1)
c1 = len(m1[0])
r2 = len(m2)
c2 = len(m2[0])
if c1 != r2:
print ("Multiplication not possible")
output = [[0 for row in range(c2)]for col in range(r1)]
for i in range(r1):
for j in range(c2):
for k in range(c1):
output[i][j] += m1[i][k] * m2[k][j]
... | [
"noreply@github.com"
] | kautukraj.noreply@github.com |
43efea586f69c18e0575129229adb4937f8816da | 215010786cd047d51f05538e3b7e1e00adcf40f5 | /GUI/lists.py | d8790dacf79d010ad4901ee03d200bfc8a82259d | [] | no_license | elugo13/Full_Stack_Programming_for_Complete_Beginners_in_Python | cc13d6aee7aefa78a3f06cedd56f7e4c066031a7 | 9dd706af89c5cfd71346f0f077af242dee229a9d | refs/heads/main | 2023-08-31T07:40:29.366909 | 2021-10-06T15:34:14 | 2021-10-06T15:34:14 | 412,499,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | from PyQt5 import QtWidgets
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
class MainWindow(QMainWindow):
def __init__(self, *args, **kwargs):
super(MainWindow, self).__init__(*args, **kwargs)
self.setWindowTitle("Lists")
self.resize(1280, 720)
... | [
"lugoerik00@gmail.com"
] | lugoerik00@gmail.com |
5f1f4ad717ccde42c1a45dcfb353c5a9f6f7a916 | 3f763cf893b09a3be562858613c928703ff349e4 | /client/verta/verta/_swagger/_public/modeldb/model/ModeldbCreateProjectResponse.py | b749fb1cab032e8cfae28f8b96a3aba11500069f | [
"Apache-2.0"
] | permissive | VertaAI/modeldb | 636e46fc025b01a514d599b10e228c8735503357 | ec9ac7712500adb13fd815dfd476ce9f536c6921 | refs/heads/main | 2023-08-31T00:45:37.220628 | 2023-08-30T18:45:13 | 2023-08-30T18:45:13 | 71,305,435 | 844 | 142 | Apache-2.0 | 2023-09-14T19:24:13 | 2016-10-19T01:07:26 | Java | UTF-8 | Python | false | false | 616 | py | # THIS FILE IS AUTO-GENERATED. DO NOT EDIT
from verta._swagger.base_type import BaseType
class ModeldbCreateProjectResponse(BaseType):
def __init__(self, project=None):
required = {
"project": False,
}
self.project = project
for k, v in required.items():
if self[k] is None and v:
... | [
"noreply@github.com"
] | VertaAI.noreply@github.com |
d5b0a2847556b1852431142f68ab4ded685876ad | e091ca4b7c5ff05ef10f09ae0379587b0c20bf11 | /project/settings.py | 4a7e207856287089a74b996a9b3634ecd6761d5f | [] | no_license | sai-k-kiran/Attendance-management-system | f8ad8e467c9988f310c2778146ca7beec5b9953d | 0bb059b2acb62342d8bd704a294040d5ad609d70 | refs/heads/master | 2023-06-30T12:52:02.179519 | 2021-07-27T12:30:27 | 2021-07-27T12:30:27 | 389,892,078 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,468 | py | """
Django settings for project project.
Generated by 'django-admin startproject' using Django 3.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib... | [
"sai.kiran.7698@gmail.com"
] | sai.kiran.7698@gmail.com |
f026f41d97ad800e361e469b6d9b2f9ce747b465 | 325bee18d3a8b5de183118d02c480e562f6acba8 | /pycan/pycan/spiders/listed_issuers_spider.py | 5cbf6d2e6c7d9efd5de970ad5a60ec512b0647b2 | [] | no_license | waynecanfly/spiderItem | fc07af6921493fcfc21437c464c6433d247abad3 | 1960efaad0d995e83e8cf85e58e1db029e49fa56 | refs/heads/master | 2022-11-14T16:35:42.855901 | 2019-10-25T03:43:57 | 2019-10-25T03:43:57 | 193,424,274 | 4 | 0 | null | 2022-11-04T19:16:15 | 2019-06-24T03:00:51 | Python | UTF-8 | Python | false | false | 7,315 | py | """从归档(MiG Archives)文件中提取公司列表"""
from io import BytesIO
from zipfile import BadZipFile
import scrapy
import pymysql
from scrapy import signals
from openpyxl import load_workbook
from dateutil.parser import parse as parse_datetime
from scrapy.spidermiddlewares.httperror import HttpError
from twisted.internet.error imp... | [
"1370153124@qq.com"
] | 1370153124@qq.com |
42428250f3f843297cf0dea506a3f02218b3db63 | fb00808d44e18c7b27a8f86b553c586d4033504f | /sandbox/factory/factory_metrics.py | abb3cb2f34553b13d0e0d4696ef04c0988509187 | [] | no_license | akamlani/datascience | 4f1bab94a1af79b7f41339b5a1ba4acc965d4511 | 62f4d71f3642f89b4bbd55d7ef270321b983243e | refs/heads/master | 2021-01-17T10:11:11.069207 | 2016-12-29T04:33:49 | 2016-12-29T04:33:49 | 24,774,956 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 15,565 | py | from __future__ import division
import pandas as pd
import numpy as np
import argparse
import os
import re
import json
import sys
import warnings
from datetime import datetime
import matplotlib.pyplot as plt
import seaborn as sns
warnings.filterwarnings("ignore")
### Create Tabular Structure
def get_folder_at... | [
"akamlani@gmail.com"
] | akamlani@gmail.com |
91e13a948d4043377389cee8b22692d079ff2ca0 | 132dee8451b3b3579feb52bae0a061dedfb0f9ba | /tessoku-book/A02/main.py | 61396967e92235846704caf46740671b2980458e | [] | no_license | huyu398/AtCoder | c4f9325ec0055f44b43210b3150f7eaaf4005a68 | c94c07d80ac055f94e2b9f70f6340c7262833c6d | refs/heads/master | 2023-04-29T07:42:12.508447 | 2023-04-22T16:32:06 | 2023-04-22T16:32:06 | 205,974,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | #!/usr/bin/env python3
import sys
YES = "Yes" # type: str
NO = "No" # type: str
def solve(N: int, X: int, A: "List[int]"):
print(YES if X in A else NO)
return
# Generated by 2.12.0 https://github.com/kyuridenamida/atcoder-tools (tips: You use the default template now. You can remove this line by using y... | [
"huyu.sakuya4645@gmail.com"
] | huyu.sakuya4645@gmail.com |
9153e9b835d0f7030a7cc13f8e87258d396f0dd6 | 167daddd0e4f4562de7cbf0150e56c7154d6c474 | /sketch_nltk.py | 264633dc0b6d42f3b3af419fde5e9667a11fe661 | [] | no_license | vikranth22446/instagraders | 0d4fa9155075207cd59bed22e5518c1512d6c780 | 7a8a0e47e989cf6a2bc38f20b248fb9dab4b82e4 | refs/heads/master | 2021-04-15T09:29:52.374456 | 2018-03-25T15:16:56 | 2018-03-25T15:16:56 | 126,655,700 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,473 | py | from itertools import product
import nltk
from nltk import PunktSentenceTokenizer
from nltk.corpus import stopwords, state_union, wordnet, wordnet_ic
from nltk.tokenize import word_tokenize
from nltk.stem import PorterStemmer
ps = PorterStemmer()
example_sentence = "This is an example off stopping word filteration"
... | [
"rama22446@gmail.com"
] | rama22446@gmail.com |
84f4ac81c70027de06bdc88e00596f7f7a3f14cf | f93dd06552ee4723aa89374a970f84c37b75d0d3 | /helpme/settings.py | 9da51704a77be82dff0df287964d4d06ca31c461 | [] | no_license | prashntt/helpme | af3afb77120c1e23477fb9f16a1842c962f474a5 | c6f8376697e682f6e956580ca885c7ddb11fb93a | refs/heads/master | 2020-04-18T18:17:06.933453 | 2019-02-02T14:50:40 | 2019-02-02T14:50:40 | 167,679,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,477 | py | """
Django settings for helpme project.
Generated by 'django-admin startproject' using Django 1.11.15.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os... | [
"prashantupadhyay1020@gmail.com"
] | prashantupadhyay1020@gmail.com |
a38fb69ca2e13a0b02c9086e4b606e71e89e12af | 9e68a08ae6a384e7596f253129555119c8139dd5 | /scripts/backup_hatenafotolife/backup_hatenafotolife.py | f336ddcb97bd65799b2fdef29d4edaf49a11374d | [] | no_license | yoheia/yoheia | 28446a20a12c00c7d01851ad72c1d0c203ed958e | 46dd39ac9b162e8716bffb4dcc306f7943308252 | refs/heads/master | 2022-08-20T06:49:36.160426 | 2022-07-20T22:12:16 | 2022-07-20T22:12:16 | 249,028 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | # -*- coding: utf-8 -*-
import os
import re
import boto3
import urllib2
from bs4 import BeautifulSoup
def lambda_handler(event, context):
target_uri= 'http://f.hatena.ne.jp/yohei-a/rss'
s3_bucket_name = 'hatenafotolife'
work_dir = '/tmp'
html = urllib2.urlopen(target_uri)
soup = BeautifulSoup(html,... | [
"yohei.az@gmail.com"
] | yohei.az@gmail.com |
17070b67e50ec67597e3d5cfb695a3a57b0f538e | 2f9fe1be686ed1765e74c01d8f771e4d1c0e9d0f | /users/views.py | 1cf736953fb478815157111d269bcf9dc9fd5b4e | [] | no_license | nexto123/music-app | 524210faaf0c6fa9e0d6719e82cf68971f003808 | fa66539895f853283c89646a78790f915e3c25e7 | refs/heads/master | 2022-12-16T21:25:57.728861 | 2019-10-12T08:33:32 | 2019-10-12T08:33:32 | 202,499,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,263 | py | from django.urls import reverse_lazy, reverse
from django.http import request
from allauth.account.signals import user_signed_up
from django.shortcuts import render, get_object_or_404, redirect
from .models import UserProfile, CustomUser
from bucket.settings import AUTH_USER_MODEL
from django.views.generic import (Temp... | [
"pristowel@gmail.com"
] | pristowel@gmail.com |
dc4cd84593aa25971075c2cfbd4507bf03bd428e | b8249860b2d4c41d39cab4106fc15aedbbf7b0e8 | /components/layers.py | 6137637bb2aaa7775b50087431e9d7afd9faaba9 | [
"MIT"
] | permissive | serre-lab/visreasoning | b5ef3c5af8ac9cfeef016411e917e97a154d0712 | b84bfbb7d5c2290356f717a966f815f68be7c3c4 | refs/heads/master | 2021-09-10T11:00:31.136282 | 2018-03-25T02:43:40 | 2018-03-25T02:43:40 | 125,939,508 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,754 | py | import tensorflow as tf
import numpy as np
from components import component
from operator import mul
# NOTE: input_size and output_size exclude batch dimension but the actual input and output must have batch dimension as its first dim.
class BaseLayer(component.UniversalComponent):
"""
Contains variables and ... | [
"junkyungkim@Snowboard.fios-router.home"
] | junkyungkim@Snowboard.fios-router.home |
e5563aa8e1c6380c3100808977ba86c702e04ada | afe1810e565dbf7832a1f9b58f314a485f5df82a | /Flow control.py | edf8ef117b54eb1fc8112e55c8a7c367aae604f1 | [] | no_license | sriramv95/Python-Programming | e601ddfbaf4cddd6abc0bdcfa71336fcf1acbabb | 96da7e57ad134c8bb9519f5fc4304b860178d728 | refs/heads/master | 2022-11-18T20:06:18.610644 | 2020-07-15T03:56:15 | 2020-07-15T03:56:15 | 279,757,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,184 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 29 08:55:04 2020
@author: Sriram
"""
# =============================================================================
# Flow control statement
# =============================================================================
# if
# while
# for
# while state... | [
"noreply@github.com"
] | sriramv95.noreply@github.com |
ba7ee657e0649c6c2ae706947a88abeaa7aa9ff2 | 11544ca256de12c14b437715ec275788d59b359f | /poseModule.py | fd43fcb614ee4b68df507218c4e6d0660a1b5c41 | [
"MIT"
] | permissive | watcharabulsak/FastDOC_Prudential_Project | f3420de385465eeaf9971fd0b98a3745e20594ec | e5b5e164d6a7029cabf3b2e5827d18d255b8aa45 | refs/heads/main | 2023-05-08T01:23:56.546485 | 2021-05-30T09:12:36 | 2021-05-30T09:12:36 | 372,151,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,192 | py | import cv2
import mediapipe as mp
import time
import math
import numpy as np
class poseDetector():
def __init__(self, mode = False, upBody =False, smooth = True, detectionCon= 0.5, trackCon = 0.5):
self.mode = mode
self.upBody = upBody
self.smooth = smooth
self.detectionCon... | [
"noreply@github.com"
] | watcharabulsak.noreply@github.com |
bfb478f20e11de16e5810f8d08fa62eb3da131f8 | f48a3d354bf4bbbe3d47651dd77853c29934f1fe | /Code/Finance/Code/Udemy_AlgoTrading/51_max_dd_calmar.py | 0639e3adacef6a05456f219fb7c4fdc80ad8f7fa | [
"MIT"
] | permissive | guidefreitas/TeachingDataScience | 0677df459d5a13c00404b8b04cbe3b389dae3d8b | f3e0bc6e391348a8065b09855ab82c436f82a4b5 | refs/heads/master | 2023-09-03T14:02:11.853103 | 2021-11-07T03:56:54 | 2021-11-07T03:56:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,457 | py | # =============================================================================
# Measuring the performance of a buy and hold strategy - Max drawdown & calmar ratio
# Author : Mayank Rasu (http://rasuquant.com/wp/)
# Please report bug/issues in the Q&A section
# ========================================================... | [
"yogeshkulkarni@yahoo.com"
] | yogeshkulkarni@yahoo.com |
6c27f3d07face576d697b2fba1c8919de5ac65a9 | 691d3080caa8eb6bc1012fc2843e6d190b61d10a | /data/stream.py | 9fae470abafeb34e339aab6e625bd7c73bc9427d | [] | no_license | grahamas/generative_motion | 82b78c0348255e2576ead0ab789583c93aaff15f | a490b4da24106eb356168fc05070bd482117ebb1 | refs/heads/master | 2021-03-22T03:45:33.950777 | 2016-06-02T02:48:00 | 2016-06-02T02:48:00 | 51,705,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,225 | py | import os,sys
sys.path.insert(1, os.path.join(sys.path[0], '..'))
from future_builtins import zip
from abc import ABCMeta, abstractmethod
import random
from util.circ_array import CircularArray
import numpy as np
# Less than a week after writing this (well, I finished today)
# I have the sneaking feeling that gen... | [
"grahamas@gmail.com"
] | grahamas@gmail.com |
56a996d6c220db976dbe6c426c9c67b3026bf224 | 846109568e3f4d805d6d39b9adbe32032775db93 | /ayuda.py | 3168d288a182102d83ec308c8c238430c5594ffe | [] | no_license | sergiocoteronPI/carPlatesDetection | aacdc5038b782aef5d4d720eedcb6d676bc0695e | cf9378b105a4515fd3bb653b9de0bf63c8388897 | refs/heads/master | 2020-11-28T04:35:03.445684 | 2020-01-14T12:24:31 | 2020-01-14T12:24:31 | 229,704,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,801 | py |
import numpy as np
import cv2
import os
import sys
""" ===================================
Subprograma auxiliar para eliminar los
elementos que haya en una ruta dada
=================================== """
def eliminar_elementos(ruta):
lista_elementos = []
for ruta, _, ficheros in os.walk(ruta... | [
"noreply@github.com"
] | sergiocoteronPI.noreply@github.com |
a504243b512c9026ea67e088ce224c687a2ef2d0 | 105bd35304dd1d831bcb89f42120af1ec87065ae | /tempCodeRunnerFile.py | cef0a82d926221f858eaab066203cf5371154ac7 | [] | no_license | ayush-105192219/python-test-code | 3dd861e197cd326fc0e7c642a5fd3a00fe12408e | 053de4841e338e631e7d386275c4e40ee9f8e21e | refs/heads/master | 2023-05-31T10:57:35.015286 | 2021-07-01T07:48:58 | 2021-07-01T07:48:58 | 381,952,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39 | py |
print (( 20 + 1.1)) #output:21.1 | [
"mynameayush100@gmail.com"
] | mynameayush100@gmail.com |
34c324f9bfe464ec5dec8508c846a30409c79e34 | 46c521a85f567c609f8a073cb9569ea59e2a104f | /kunalProgram23.py | bab9fcf53fa8ff6e595f560e1fd900d0d4fa40d5 | [] | no_license | Kunal352000/python_adv | c046b6b785b52eaaf8d089988d4dadf0a25fa8cb | d9736b6377ae2d486854f93906a6bf5bc4e45a98 | refs/heads/main | 2023-07-15T23:48:27.131948 | 2021-08-21T13:16:42 | 2021-08-21T13:16:42 | 398,557,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | n=int(input("Enter number of rows: "))
for i in range(n):
print(" "*(n-1-i)+(str(i+1)+' ')*(i+1))
for i in range(n-1):
print(" "*(i+1)+(str(n-1-i)+' ')*(n-1-i))
| [
"noreply@github.com"
] | Kunal352000.noreply@github.com |
108ee0f25ca41a2dd1d82011514133e044d940a3 | 583dcbcbad658fa7b9f297202523e1a165da342f | /models.py | 52646339ac58a102d71b1cef84eeecd146ed21d2 | [] | no_license | csdurfee/more_time | 01e482ff29a871f63b6f808b4b18b4fd9d6ebc61 | 982f1615570de91547bff6108e63aca50a117d29 | refs/heads/master | 2020-04-05T23:08:38.842854 | 2012-01-01T21:38:23 | 2012-01-01T21:38:23 | 2,814,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,000 | py | from redisco import models
#from werkzeug import generate_password_hash, check_password_hash
import werkzeug
DEFAULT_PROJECT_NAME = "Junk Drawer"
DEFAULT_TASK_NAME = "My Task"
class StaticPage(models.Model):
title = models.Attribute(required=True)
text = models.Attribute(indexed=False)
class UnitOfWo... | [
"casey.durfee@saltbox.com"
] | casey.durfee@saltbox.com |
36285a335509b2e26d604c76af957f03339a6729 | e51642d571d1c30950782a47fdd8654e07dd9fb9 | /Ethereum/smallbank-throughput.py | 60993a33dba809743393aa71e0ef9c59167452c4 | [] | no_license | TimRi91/Distributed-Ledger-Testbench | 18e950d01737deb671dbb3484c4243f209ede2ac | f940ede242804fcbee47bae2aa6a83bf0091b54e | refs/heads/master | 2020-03-23T04:45:33.991871 | 2018-09-12T09:23:48 | 2018-09-12T09:23:48 | 141,103,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,028 | py | import os
import time
from web3 import Web3
#----------------Set Variables----------------
#Testsetrate (#requests/sec)
n = 6
#Node
node = 'localnode'
#---------------------------------------------
#create .txt-file
filename = 'Smallbank_Throughput_Testset'+str(n)+'_'+str(time.strftime("%d-%m-%Y_%H-%M-%S"))+'.txt'
p... | [
"noreply@github.com"
] | TimRi91.noreply@github.com |
35939d663896d25c64d3e144f07104d07d5f9c82 | 136475c7b1cf05241c45aa1228f7b9c50f16ab89 | /venv/Scripts/pip3.7-script.py | 61425625725ce2371b2c9463f18baff4c5c1d91f | [] | no_license | rachanakafle/Cows_and_Bulls_Game | 09f540027a795a06d7cd96c86235e8cfc461fb9a | bfd9495b47960bc9477cb0bdc2fa8d576c5d9a73 | refs/heads/master | 2020-04-13T05:18:14.116069 | 2018-12-24T12:20:12 | 2018-12-24T12:20:12 | 162,987,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | #!"C:\Users\Rachana Kafle\Desktop\Cows-and-Bulls\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.7'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', ''... | [
"rachanakafle32@gmail.com"
] | rachanakafle32@gmail.com |
e9a7fec21d2cd66e4b6496833ff0f6019d382202 | b33c9f49ab3b0e9ab853c5ae5bad01a9a1349504 | /Processing/car.py | 91531a187ba737524759f4003b7e4f624b8eeaf5 | [] | no_license | raphaelbp12/Projeto-Final | cf5693b1824a2e660fc12c0630f8a40953c956d8 | ca722a5c42bd36d7fc77702218227e3204a69cb4 | refs/heads/master | 2021-01-23T07:34:27.339984 | 2017-11-02T00:03:44 | 2017-11-02T00:03:44 | 86,429,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,743 | py | from sensors import Sensors
from controlDistWall import ControlDistWall
class Car(object):
def __init__(self,x = 0,y = 0, theta = 0):
self.x = x
self.y = y
self.theta = radians(theta)
self.velLin = 0
self.velAng = 0
self.distFront = 0
self.distRight = 0
... | [
"raphaelbp12@gmail.com"
] | raphaelbp12@gmail.com |
492972e2ecb7185035cc667f45cc39a9357f364a | 415f5a763c7dd7a1881b32ab3d459e7779342d67 | /python/create_dataset_V2.py | 4b8a276ab3681bb1a8e691c09abd672e28e3c70d | [] | no_license | anuragreddygv323/kaggle-redhat | e6d35953dffbeecdd3de43c3fbc0a7b48df76dec | de85518c68aa8ff07d4cf6cab7c6a30ddb9ab5a6 | refs/heads/master | 2021-01-01T17:55:42.777586 | 2016-08-31T07:18:03 | 2016-08-31T07:18:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,214 | py | from sklearn.preprocessing import LabelEncoder
import pandas as pd
import numpy as np
import random
random.seed(2016)
def preprocess_acts(data, trainset = True):
data = data.drop(['activity_id'], axis=1)
columns = list(data.columns)
columns.remove('date')
if trainset:
columns.remove('outcome... | [
"michael.pearmain@gmail.com"
] | michael.pearmain@gmail.com |
a94cc410db3053720df1ce02d0a291ebb7d5ad00 | ebabbf75b7bcfbb8d22b3c3edb44b957878aaa4b | /src/fortypytons/Util.py | 586e25d575a69e7438fc58a54d5be4845eba844f | [] | no_license | tanuva/fortytons | dca736fdbe8e151a8eba2398a89ee3bc7408357e | 26ac2e99e1516ccc11492205ec370cb2af5818f3 | refs/heads/master | 2021-01-01T20:00:21.059323 | 2014-10-20T18:32:06 | 2014-10-20T18:32:06 | 2,162,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | # -*- coding: utf-8 -*-
'''
Created on 26.02.2012
@author: marcel
'''
import math
from panda3d.bullet import BulletGhostNode
class Util:
@staticmethod
def getAbsolutePos(relPos, node):
""" Calculates the position of relPos (which is relative to node) relative to render (the origin). """
dummy = render.attachN... | [
"tanuva@nightsoul.org"
] | tanuva@nightsoul.org |
fbfa3f610397bf4050c5c75cc06b237878603097 | bb6017001fbaec2b0f858da3dc29a3963a7b37b3 | /AutoScript/caches/basic_caches_CacheSize_0.5.py | 0104b9cd7549f00225c6bbcaa56ea4069751445b | [
"MIT"
] | permissive | gabriel-lando/INF01113-gem5_Scripts | aeff71340e05e2c81ab3a2a2148a72cad3792ebb | 3a45c51aacaeafa2749043e3d54faff1c5ae5452 | refs/heads/master | 2020-06-10T22:44:37.881259 | 2019-06-27T08:21:49 | 2019-06-27T08:21:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,613 | py | # -*- coding: utf-8 -*-
######################################################################
## Classes relacionadas às caches. Podem ser modificadas para alterar
## o tamanho (size), a associatividade (assoc), a latência no caso de
## hit (hit_latency) e a latência no caso de miss (response_latency) -
## ou seja, o ... | [
"gabriellando@hotmail.com"
] | gabriellando@hotmail.com |
462380fa38921da7fcbe4172367723d74a2715c6 | 5d64ece6522498b3919bc11c4489978290ea4a38 | /module/forms.py | 4e1b7f45c424e1ca69b3a387632ee51c765caa86 | [] | no_license | wctsai20002/seleniumonitor | 6b601efb46568c904da5e00bc391e62373468592 | 0e49b7024fd39082e1174b2fd6cf4e9a6af7d115 | refs/heads/master | 2023-06-30T02:45:36.760400 | 2021-07-21T13:27:48 | 2021-07-21T13:27:48 | 382,865,240 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,885 | py | from wtforms import Form, BooleanField, StringField, PasswordField, validators, IntegerField, FloatField, fields, TextAreaField, Field
from wtforms import widgets
from wtforms.validators import ValidationError
from wtforms.fields import html5
class StringListField(StringField):
widget = widgets.TextArea()
def... | [
"wctsai20002@gmail.com"
] | wctsai20002@gmail.com |
c9b53f66d3414dd90a7fefc960bedfb59b1036e9 | 8f6e48d414a410acc1a4919be9a0366366f98944 | /backend/event/apps.py | 23ea13300b6b6a94ab67d09a7b8b4c020a8bfef7 | [] | no_license | lyf2000/events | 04bf7d6886edb77bbd7895860ca710d1a58ea524 | 001f2d3172be12268c87e5bcc1e9d4d59331f751 | refs/heads/master | 2022-11-11T10:39:51.704848 | 2020-07-04T04:08:58 | 2020-07-04T04:08:58 | 274,938,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | from django.apps import AppConfig
class BlogConfig(AppConfig):
name = 'event'
| [
"lyf2000@mail.ru"
] | lyf2000@mail.ru |
d1540c7319640ae2f754884f48d21e93116dfca5 | 8b0991e44dc5e10dc361bfa6afaad600fe04a212 | /classes/command/commandTree.py | b5d2972efdd9d09cf8969924150983b77de9b9e8 | [] | no_license | Cubiss/discord_bot | f3fd52eed075434bdd22de8e3ce1cdc42e0ba592 | 08686e067c4f9e0d2dc15c2c710c4eaf68694704 | refs/heads/master | 2023-06-24T08:37:32.900290 | 2023-06-11T22:20:50 | 2023-06-11T22:20:50 | 187,587,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,344 | py | import discord
import re
from classes.command.command import Command
from modules.users.users import Users
class CommandTree(Command):
def __init__(self, names: list, children: list, permissions=None, description=''):
try:
self.children = {}
_names = set()
for c in ch... | [
"solin.jakub@gmail.com"
] | solin.jakub@gmail.com |
38e9ee343a79aadeb93fccf44df6b0895b4e837d | 0c437b16688cf5fd313c9fcb5ca68f6c9d4be1c1 | /virtualenv/bin/django-admin.py | acdcb95312250ee956decfa2ad9d3bdbb3e8d1b5 | [
"Apache-2.0"
] | permissive | piyush82/icclab-rcb-web | 53e81da8584cb1802de97f31b8dc9328c48445f9 | 4391a15ddfa73f5236246cb64fcb4216dff31816 | refs/heads/master | 2021-01-23T03:47:50.339450 | 2014-04-17T13:11:16 | 2014-04-17T13:11:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | #!/Users/harh/Codes/Python/icclab-web/bin/python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"piyush.harsh@zhaw.ch"
] | piyush.harsh@zhaw.ch |
eea2209be92efd6a1637b8c110f3b87c6d9745e2 | 7154f9167ba8fca747ee2ae983ed2467949164a3 | /run_tests.py | 8117072484c1aff7ce07769e0eb63bfb77e073dd | [] | no_license | bel-lloyd/weather-project | e641a0631d14c661123614906dd47373d95cfcfd | 28f4174d710fb82529727adf42184ccb5cd19c53 | refs/heads/main | 2023-07-09T11:23:57.056896 | 2021-08-07T02:09:10 | 2021-08-07T02:09:10 | 392,278,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py | import unittest
from tests.test_convert_date import ConvertDateTests
from tests.test_convert_f_to_c import ConvertTempTests
from tests.test_calculate_mean import CalculateMeanTests
from tests.test_load_data_from_csv import LoadCSVTests
from tests.test_find_min import FindMinTests
from tests.test_find_max import FindMax... | [
"noreply@github.com"
] | bel-lloyd.noreply@github.com |
b1c959b0d7a3308bebf69ca2c44f5048ccea40be | 57d3aae331ff9f9907800a36eaff6c0f689b4217 | /Script files/Paprika.py | a33ef0628a985325e1660aaf158b425cd9db4b53 | [] | no_license | carolinelennartsson/PopulationGeneticsGroup6 | ceba82ae9cb08e144355833960ed9d0173874449 | 39bcc430f1dd5701f4b98d79b9136e39649a1497 | refs/heads/main | 2023-03-29T20:12:25.027102 | 2021-04-09T11:54:30 | 2021-04-09T11:54:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,987 | py | #!/usr/bin/env python
# Import libraries.
import os
import argparse
# Get input arguments.
parser = argparse.ArgumentParser()
# Create input arguements.
parser.add_argument("-par", "--param_file", help="Input parameter file for fastsimcoal2" )
parser.add_argument("-i", "--iter_num", help="Number of iterations to us... | [
"noreply@github.com"
] | carolinelennartsson.noreply@github.com |
ae9c18ed187a23fb7121a34ca1422020e3f7ddb5 | 20343e8a8435b3f839d5abd0c4063cf735f43341 | /Experiment/CornerDetectAndAutoEmail/AveMaxMinDetect/test/test1.py | c4133dfbbcbb80c2cf4a4201fd7522e512561360 | [] | no_license | alading241/MoDeng | 948f2099e2f7e4548d6e477b6e06b833bdf4f9bb | 01819e58943d7d1a414714d64aa531c0e99dfe22 | refs/heads/master | 2021-05-23T11:39:41.326804 | 2020-04-05T06:06:01 | 2020-04-05T06:06:01 | 253,269,397 | 1 | 0 | null | 2020-04-05T15:38:33 | 2020-04-05T15:38:33 | null | UTF-8 | Python | false | false | 476 | py | # encoding = utf-8
import tornado
from apscheduler.schedulers.tornado import TornadoScheduler
sched = TornadoScheduler()
""" 测试向任务中传入参数 """
test = 'hello'
def job1(a, b, c):
print("job1:", a,b,c)
def job2(a, b, c):
print("job2:", a,b,c)
sched.add_job(job1, 'interval', seconds=1, args=["e", "t", "f"])
sch... | [
"1210055099@qq.com"
] | 1210055099@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.