blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 91 | license_type stringclasses 2
values | repo_name stringlengths 3 135 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 68 | visit_date timestamp[ns]date 2015-07-25 20:53:29 2023-09-06 10:46:05 | revision_date timestamp[ns]date 1970-01-01 00:00:00 2037-05-03 13:00:00 | committer_date timestamp[ns]date 1970-01-01 00:00:00 2036-02-09 17:40:36 | github_id int64 1.61k 691M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 24
values | gha_event_created_at timestamp[ns]date 2012-06-03 10:21:33 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[ns]date 2008-03-27 23:40:48 2023-09-13 22:40:33 ⌀ | gha_language stringclasses 250
values | src_encoding stringclasses 27
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 6 10M | extension stringclasses 289
values | filename stringlengths 1 218 | content stringlengths 6 10M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3cac40c351d21d698df4222e0a1dbd2e0fe419e1 | c56221bfadb1536b707da284ffd56a00539c3384 | /test.py | 05e6654c0eb697eee83c1ca83300f3b6b7a784c7 | [] | no_license | sunsharing-note/python | 4f33fb657075780cd8f780eebeb0e197c386beee | f18ddad3e7555386045284ac98183efe4a2a82d3 | refs/heads/master | 2020-06-09T09:26:35.185019 | 2019-06-24T01:57:02 | 2019-06-24T01:57:02 | 144,146,370 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | test.py | #! /usr/bin/env python
import re
def tt(str):
ret = re.findall("\w{1,20}/(\w{1,20}[-_]?\w{1,20}[-_]?\w{1,20}/?\w{1,5})",str)
return ret[0]
# ss = tt("sc/cmccsq-v2-device")
# print(ss)
|
6a7a09847b0e93b193be9464c01127bb8828f9ec | d18a57c014dfa77b5454310b321e3370aef4ab14 | /Punto.py | 03d60a9780c83fe2d1472a41bf281b6490de874a | [] | no_license | jlukas1001/Draw-A | 31b2bafd8607d5f5e55698a78ef94b3e452575d8 | 3872eab2c94ead55b8e2292a55f4c46e10e7cf93 | refs/heads/master | 2021-12-02T14:15:20.684842 | 2021-11-18T03:57:56 | 2021-11-18T03:57:56 | 216,896,198 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,383 | py | Punto.py | from tkinter import *
import math
class Figura():
def __init__(self,corX,corY,finX,finY,colo,id):
self.x = corX
self.y = corY
self.fX = finX
self.fY = finY
self.color = colo
self.id = id
def moverObjeto(self,corX,corY):
self.fX = self.fX... |
fc842e427a9f6482742ed0e8f8649954767db82f | 983da96703d4bdb599bf82a82f8ad2d1f100cfc6 | /360warper/warp.py | 509224b42cfa9dc7d166786086b30d2beb58a618 | [] | no_license | spacehopy/oneVR_devel | 8ce5f4aa2a54c6fc6567cc017e663da476d70d8f | 7a6edbea25a0171dc79a417f21a08f9c9056f2f6 | refs/heads/master | 2021-06-14T14:38:19.412894 | 2017-03-28T06:55:31 | 2017-03-28T06:55:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,825 | py | warp.py | #!/usr/bin/python
import sys
import os
def bash(cmd):
return os.system(cmd)
def cd(directory):
return os.chdir(directory)
def ls(directory):
return os.listdir(directory)
def exist(fileName):
return os.path.isfile(fileName)
def usage():
print ""
print " 360 Warper Assistant (v1.0)"
print "-... |
d2eeb55b3d5608cc766b9608b1cbe44aca4f721a | 14a2f8d5d99b55738c736f7164e2935a765ca1d0 | /notebook/top_terms_table.py | b550ed53a161a07f12feadfa2423fdc01d55759d | [] | no_license | tapilab/aaai-2016-robust | 281cd11b1c01c90d1ff29ef50c05200030133564 | c4b792318a6fb5df63b1ad9503aec4eac0c6fa5a | refs/heads/master | 2021-01-10T02:53:47.476105 | 2017-11-25T19:56:12 | 2017-11-25T19:56:12 | 49,892,910 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,185 | py | top_terms_table.py | import numpy as np
import matplotlib.pyplot as plt
from sklearn.feature_selection import chi2
from scipy import sparse
from scipy.stats import sem, pearsonr
from collections import defaultdict
from injecting_bias import *
def do_top_coef_table(data, model, ntrials, size, n, rand, perc=0.1, feature_names=None):
i... |
b5672e8ba5dc5116f0112811e67b5c5e6822b801 | 8c24e6d88bb32ca09ddf2162c4633c1717f70fe5 | /apis/wunderground_api.py | 8544b4a7f0783fea915886e130cde5b85b15cc04 | [] | no_license | Eawag-SWW/social-weather-gauge | 918fcf203188a51dc232166a1635be0ea6e38143 | 89994bb47654c7b17a8c8a158a64af68134dee7c | refs/heads/master | 2020-04-10T16:53:35.328502 | 2016-01-19T21:45:28 | 2016-01-19T21:45:28 | 31,662,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,308 | py | wunderground_api.py | from io import StringIO
from datetime import date
import requests
import pandas as pd
from apis import Query
class WundergroundQuery(Query):
def __init__(self, place_id: str, begin: date, end: date):
self.place_id = place_id
self.begin = begin
self.end = end
def __repr__(self):
... |
e831749321db9a75c19179461f0d891e243c1dc9 | 5d5fa2baf3d00ca8305438a1a6919d5137c1a37a | /tf/matplot_exp.py | 95bff194443f4323f7c7bbeb4701d8988853d854 | [] | no_license | demon16/notes | 1cb4892348afce4e30f1ff979cf967bdd461bae7 | ffe3823321ce1322708ab9465129f6903a9d5828 | refs/heads/master | 2020-03-21T08:22:01.107381 | 2018-12-25T17:17:14 | 2018-12-25T17:17:14 | 138,338,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | matplot_exp.py | # import matplotlib
# matplotlib.use("agg")
# import matplotlib.pyplot as plt
# import numpy as np
# x = np.linspace(-2, 2, 100)
# y1 = 3 * x + 4
# y2 = x ** 3
# plt.plot(x, y1, 1)
# plt.plot(x, y2)
# plt.show()
from mpl_toolkits.mplot3d.axes3d import Axes3D
import matplotlib.pyplot as plt
import numpy as np
... |
4a45c1bab5793b0fdee540c8dc9bb97b94ff1b8e | 1a9c40e121eb9d1308cce9256fe6518a5499c549 | /asub.py | 5a47bd1ad7ac58fb749b203d363b920ec5dd2cb6 | [] | no_license | JackUnderwood/vista | 48302f140702dcf19455d7e35e35c005ba38b264 | 900c4bb492784fb4ab674f11ee4deb026f991c6b | refs/heads/master | 2021-01-23T09:49:14.782028 | 2015-01-28T18:38:38 | 2015-01-28T18:38:38 | 28,610,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | asub.py | __author__ = 'John'
from base import UI
class A(UI):
def __init__(self, override=None):
super().__init__()
print("A __init__", override)
runtime = {
'file': ("Click", "//*[@id='yw1']/li[6]/a/i", ""),
}
process = UI(override)
process.update(ru... |
ca6c06799990d9f2682a103df1e99cb1c63403b8 | adeb26d9ea367c012b36074aca42e9ffa3a0e630 | /insertIntoSub.py | d1710c15d969ebbde750a7b23a049807cd1e37c3 | [] | no_license | vamshinath/redditScrapper | 90b156784d316c455d8f7d1955d75eda7a02a900 | a5edb2c529687f634012e4c53a522fcb473b9a1a | refs/heads/master | 2020-09-29T01:22:09.795745 | 2020-02-09T06:56:51 | 2020-02-09T06:56:51 | 226,912,960 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | insertIntoSub.py | from pymongo import MongoClient
from pymongo.errors import DuplicateKeyError
client = MongoClient("mongodb+srv://ubuntuVM:vamshi81@mymongo-yiker.azure.mongodb.net/reddit?retryWrites=true&w=majority")
db = client["reddit"]
while True:
url = input("Enter Url:")
try:
db["subreddits"].insert_one({"_id":u... |
78e789680f403beec82019c5acb24670f2ddfbcd | edbd2b18169348d8810173454b37bfb7ef9c24a5 | /cpgcopy/__init__.py | 6ee9a64e0f18583edb956b6255b2d9a12a2704d0 | [] | no_license | altaurog/cpgcopy | 2b381425a880f9cb98a79f72b357fa148f7e3080 | 3c225b1691dd7bf1389c0436ae6800dc98c17290 | refs/heads/master | 2021-03-12T20:38:47.734718 | 2020-06-01T15:49:18 | 2020-06-01T15:50:51 | 40,562,969 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | __init__.py | from .version import __version__
from .ccopy import CopyManager
|
4e1029d51549bddfcebc47548dbe483017858d50 | dc893a23ea659a9aff10c972202abae113a31f8d | /causal_inference/code/CVPR2012_slidingwindow_action_detection/phone_20_screen_53_9404.py | d0eaf21c7442b9429c80861e85032b11ead4c57d | [] | no_license | scotfang/research | f28ff4cdcdb579839fddabc7d77a31b324f45a78 | 424e0dce9e5083e75ac49a33765d1a9d7c2878e9 | refs/heads/master | 2021-01-01T17:17:15.633209 | 2014-05-12T18:20:43 | 2014-05-12T18:20:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | phone_20_screen_53_9404.py | temporal_parses = {
1027: { "makecall_START": {"energy": 0.000000, "agent": "uuid1"} },
1269: { "makecall_END": {"energy": 0.000000, "agent": "uuid1"} },
},
|
58ce8f4630724b2e429b480415d55b27c2fe9108 | dc7a015416cc1a665a7684508b7a0d8a1e2a7fa1 | /22 - Self powers.py | 260e2d00ab444d4ff7216f19ea2835c68f28a05a | [] | no_license | MatheusDev-1/project-euler | a6215771a26c3ca1a1ef78124085bf09740ad62e | 68fcd03398812192654686e8a48365d60204ca50 | refs/heads/main | 2023-04-06T16:22:28.517531 | 2021-04-18T01:37:09 | 2021-04-18T01:37:09 | 333,644,547 | 1 | 0 | null | 2021-02-15T13:56:18 | 2021-01-28T04:24:59 | JavaScript | UTF-8 | Python | false | false | 389 | py | 22 - Self powers.py | ## Self powers - https://projecteuler.net/problem=48
## The series, 11 + 22 + 33 + ... + 1010 = 10405071317.
## Find the last ten digits of the series, 11 + 22 + 33 + ... + 10001000.
from functools import reduce
def add(a, b):
result = a + b
return result
powers = []
for i in range(1, 1001):
powers.app... |
7f4d19102ce1061afec7c9edce5ae1af94573251 | 449388a804b1e50858b8cd6acc5ce88be8ed0922 | /menu.py | 221492c6f5aac279ee8f3d83afd66d53a1e7888b | [
"MIT"
] | permissive | Mrsatatima/steam-chess | dfea42fde9330e41ee745dc673379d157eaa94f5 | fe194954fbaff7438518ae692afd0fb66d1153fe | refs/heads/main | 2023-05-27T04:19:35.755390 | 2021-06-03T09:28:05 | 2021-06-03T09:28:05 | 326,079,024 | 1 | 0 | MIT | 2021-01-02T00:17:56 | 2021-01-02T00:17:56 | null | UTF-8 | Python | false | false | 3,527 | py | menu.py | """
This is the Offline menu.
It has a single player, two players AI mode and back options.
You can select an option by double clicking on it.
"""
import pygame as pg
from ai import ai_move, ai_reset
from main import main
import random
import sys
# Game Initialization
pg.init()
# menu Resolution
screen_widt... |
9bfe0b18ac3cbcdd3d9e2c5a7412817cc4476dfe | ce083128fa87ca86c65059893aa8882d088461f5 | /python/flask-mail-labs/.venv/lib/python2.7/site-packages/sqlalchemy/dialects/mysql/mysqldb.py | e64d49a9b0a56d99900fa675320cb1939eef044a | [] | no_license | marcosptf/fedora | 581a446e7f81d8ae9a260eafb92814bc486ee077 | 359db63ff1fa79696b7bc803bcfa0042bff8ab44 | refs/heads/master | 2023-04-06T14:53:40.378260 | 2023-03-26T00:47:52 | 2023-03-26T00:47:52 | 26,059,824 | 6 | 5 | null | 2022-12-08T00:43:21 | 2014-11-01T18:48:56 | null | UTF-8 | Python | false | false | 2,715 | py | mysqldb.py | # mysql/mysqldb.py
# Copyright (C) 2005-2013 the SQLAlchemy authors and contributors <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""
.. dialect:: mysql+mysqldb
:name: MySQL-Python
:dbapi: mysqldb... |
0f07c664959bb3eb008da27a5d849e98776d77e7 | 1fc50d39fa63c4c4b4ad91c44515437a0fa31d8c | /prog_python/classe_Voiture_citroen__exemple/voiture.py | eb23c239b9306b91a3dce527d8c882280b2c71d2 | [] | no_license | HerveDugast/public_hervedugast_stfelix_lasalle | 071e9163f1c68f68f65e41aea2694567faf75f3c | 1a64f0b0a6a3bcf1dd7e6e59a2b5faeb7cae67a8 | refs/heads/master | 2020-03-20T22:39:12.112248 | 2018-06-19T10:02:07 | 2018-06-19T10:02:07 | 137,808,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,087 | py | voiture.py | #!/usr/bin/python3.4
# coding: utf-8
"""
Programme (classe) : voiture.py version 1.0
Date : 09-02-2018
Auteur : Hervé Dugast
Source : http://deusyss.developpez.com/tutoriels/Python/Pyreverse/
Fonction classe :
crée un objet voiture avec les méthodes : démarrer, stopper, état_moteur
------- affichage console ... |
bea322fa5c9d04d76f62be0bed0682a0d70ad479 | c9a8146bb4eca9ec4d4928edc0a036cfe156968a | /pygta-4.py | 2234ffb1d8c52ccf0aba18aa9c2a65523f7480c3 | [] | no_license | neil-dev/GTA5 | 756f1c8b6881a37e57bf10493556a2516e74a14b | 336d72fcc2493945de90afd1ef0dc0a31e2f15f6 | refs/heads/master | 2021-03-10T02:33:41.681068 | 2020-03-13T17:24:10 | 2020-03-13T17:24:10 | 246,408,255 | 0 | 0 | null | 2020-03-13T17:24:11 | 2020-03-10T21:06:02 | Python | UTF-8 | Python | false | false | 1,136 | py | pygta-4.py | import numpy as np
from PIL import ImageGrab
import cv2
import time
import ctypes
from directkeys import ReleaseKey, PressKey, W, A, S, D
import pyautogui
def roi(img, vertices):
mask = np.zeros_like(img)
cv2.fillPoly(mask, vertices, 255)
masked = cv2.bitwise_and(img, mask)
return masked
def proces... |
6152a1e427d6ed681cfff7652c65854b812a84ca | 82179d3d64c6f0726af3992527141013a6da5905 | /Data_Type/Question_Eleven.py | 40e015b2d8cfc0aa234c7fd1ddfabb665d5fa8fa | [] | no_license | sulav999/iwacademy_assignment_2 | afd0c0b65bae24c54ab53a58bcbffb40a330408f | f4529c5a1df991ebbe11c76fc4b2def5fc6f0e85 | refs/heads/master | 2022-11-06T08:34:08.306400 | 2020-06-28T16:46:10 | 2020-06-28T16:46:10 | 275,617,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | Question_Eleven.py | # 11.Write a Python program to count the occurrences of each word in a given sentence
def wordCount(str):
counts= dict()
words= str.split()
for word in words:
if word in counts:
counts[word]+=1
else:
counts[word] =1
return counts
print(wordCount('this is the pr... |
078e884a69065518ad3e05246fd1fa2f7c5996b3 | f849272e989a4b95a3915161f5f7862aee6d4539 | /work/main.py | ad387306a1f1ccf4ae24d381c41a990a67b0007c | [] | no_license | CristinaEx/AutoTeacherProject | 378dcb32c7fb365a327282387c08b1066c1427c0 | d6ae76193f6061f9c838574af2bb5aae86e1ebac | refs/heads/master | 2022-03-22T17:01:35.815886 | 2019-12-15T15:03:11 | 2019-12-15T15:03:11 | 208,782,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,957 | py | main.py | from tkinter import *
from my_dir_list import *
from controler import *
from PIL import Image
from PIL import ImageTk
from path import *
import os
import sys
# pip install baidu-aip
class VisualMain(Frame):
# 可视化界面
def __init__(self):
self.PPT_pos = 'None'
self.XML_pos = 'None'
self.contr... |
3d04aa124a1ae19923e98d326c168dc3844cca04 | cfe761f25dc4c3885ac82fd3c420a687ec40914d | /W01_knapsack_trees_graphs/Graphs/Class digraph.py | 1ad210fac43a4085bf7f39dc30de140e909aad01 | [] | no_license | MDaalder/MIT6.00.2x_Intro_CompThinking_DataSci | 52e3cb8db0b161e55d6eedb3d10150ef8959070c | c1dc59e5c50d1ff12185f4a4631ff9300da406aa | refs/heads/main | 2023-03-01T13:49:36.988597 | 2021-02-09T00:20:13 | 2021-02-09T00:20:13 | 336,917,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,961 | py | Class digraph.py | # -*- coding: utf-8 -*-
"""
Created on Sun Apr 14 14:14:42 2019
@author: Matt
"""
# design allows for the possibility of having a more
# complicated kind of node that has properties other than its name
class Node(object):
def __init__(self, name):
"""Assumes name is a string"""
self.name = name... |
bc92561651e13f335dde163e794f09987ee0e330 | 4ccb7599db827a80012b2685598b8ba6b552e060 | /bananas/sampling/__init__.py | d7e604c99c0ca3b1756c07a15e2b2526a86eb276 | [
"MIT"
] | permissive | owahltinez/bananas | bf5246f11934c669bfea68f26e8fe3a04404abb6 | 4d37af1713b7f166ead3459a7004748f954d336e | refs/heads/master | 2022-07-05T18:48:51.522753 | 2020-11-17T21:40:19 | 2020-11-17T21:40:19 | 215,080,690 | 0 | 0 | MIT | 2022-06-22T02:53:25 | 2019-10-14T15:34:49 | Python | UTF-8 | Python | false | false | 2,290 | py | __init__.py | """
Utilities that perform sampling of data using arbitrary criteria.
Sampling is a fundamental part of learning large amounts of data which may not fit in
memory at once.
## Interface
All samplers implement the same base interface, which means that the constructor **always** accepts
the following parameters:
- `da... |
aac9a4f463facacf14829ec67f57fa7ea69d3062 | 82b49b209068587e6329adea90197a1523df1f6c | /app/whitelist/controllers.py | 439841902269b67c4c3f54810b3db7386d92b9a5 | [] | no_license | BogdanGrebenuk/klac-klac | b0a53ca0958a5a499b02a7d869afc10378d90794 | 9c1d62ccce3d9d0fd4e7fcdd8459e7f4060875f4 | refs/heads/main | 2023-03-09T23:21:32.428845 | 2021-03-02T15:00:41 | 2021-03-02T15:00:41 | 340,637,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | controllers.py | from aiohttp import web
# POST /api/whitelist
from app.whitelist import schemas
from app.whitelist.domain.entity import WhiteList
from app.whitelist.dto import CreateWhiteListDto
async def promote_driver(request, validator, whitelist_mapper, driver_mapper):
body = await request.json()
whitelist_dt = CreateW... |
0e1235616fb8cc94ee2a88d2d2f964030d08b4e3 | ab001a1e4b0791d0d52cf2fe10b58f0f65ac9fba | /Projects/Image Classification/NN Models/rnn_classify.py | a620d0814cf1bc7d412cb99c337e46d600bc84f3 | [] | no_license | Mousumi44/Deep-Learning | 089b9bbe6aacd383970a3d849b6625c19db68918 | 65f66ee3d34e13c8bd7b2765a3beffe265d5a582 | refs/heads/main | 2023-08-15T10:26:18.987822 | 2021-09-30T16:03:32 | 2021-09-30T16:03:32 | 336,799,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,534 | py | rnn_classify.py | import torch
import torchvision
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
from torchvision import datasets
import torchvision.transforms as transforms
from torch.utils.data import DataLoader
from tqdm import tqdm
#set device
device = torch.device("cuda" if torch.cuda.is_availabl... |
2b1bdda033f974ddcc5ca3cec8db0e15dadbc39a | 28ba38203472d0c533892dba6dfc8d28df49415c | /Project2/Switch_v1.py | f17487a5e261834092b4c99dd9ae38b9c0e4810d | [] | no_license | duvernea/Computer_Networks | 982db25a33e914f364fdee379ace9aef0fd85dfd | 7e947663f3f4f85735c6e55c8d65e11327335f44 | refs/heads/master | 2021-03-27T08:44:59.020177 | 2017-12-03T03:55:21 | 2017-12-03T03:55:21 | 111,327,134 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,595 | py | Switch_v1.py | # Project 2 for OMS6250
#
# This defines a Switch that can can send and receive spanning tree
# messages to converge on a final loop free forwarding topology. This
# class is a child class (specialization) of the StpSwitch class. To
# remain within the spirit of the project, the only inherited members
# functions t... |
d04a489442464266be6bb404395471e0b7a20292 | e66c4b8d54ba4c736613ad8de03835bf9bce471e | /LojaComp/loja/views.py | 1e87814c8f8f602cea9a8a80a7ba699b932f2c15 | [] | no_license | jeffersonvital20/LojaComputadores | b905ea4816338e7a2e3f4693cae12880bb6edb1f | b8ea983ad1903f47cd788c47f28d45d71399d598 | refs/heads/master | 2020-04-03T08:51:26.501266 | 2019-08-22T03:45:07 | 2019-08-22T03:45:07 | 155,147,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | views.py | from django.shortcuts import render
from rest_framework import viewsets
from .models import Pedido, Status
from .serializers import PedidoSerializer, StatusSerializer
# Create your views here.
class PedidoViewSet(Pedido):
queryset = Pedido.objects.all()
serializer_class = PedidoSerializer
class Status... |
8a80cdf70d5e3b9cc76d53e6c7e973679fb4d4a7 | 7b3e6f09d2d31d026386e055f521db43cbafaa07 | /example_game/final_game/graphics.py | 61f309bcf31a8b595ab3d86b2397e7af358473f8 | [] | no_license | SheltonScott/Whack_A_Mole | 1978eab93866af6d800be3da6c3dc757e9d03fc1 | 867564f02c7f97cce19411d2e8b8a6480e2baace | refs/heads/master | 2020-04-05T09:46:44.949679 | 2018-11-15T21:51:03 | 2018-11-15T21:51:03 | 156,774,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py | graphics.py | import pygame
width = 1400
height = 600
assets = {}
renderables = []
background = None
screen = None
x = 0
y = 0
# x1 = width
# y1 = 0
def update():
global screen, background, renderables, width, height, x, y, x1, y1
# x1 -= 25
# x -= 25
screen.fill((0,0,0))
if background:
screen.blit(background, ((x, y, w... |
e59de2d273c5c44c6a5c4a613b6181424c272e5f | 52b73c8820f376a7b0259c557a7a5ea19961063c | /Customers.py | ddbe64246f665539d4d77bee5794e90fbb2e240e | [
"CC0-1.0"
] | permissive | karlgospel/Cost_A_Job | 6ae494091aa8a7e6018d3af10999f8d1272105f3 | b0a69951a68cfafd6f992744dbda2e076a2cf019 | refs/heads/master | 2022-12-16T12:33:18.729031 | 2020-09-10T09:24:19 | 2020-09-10T09:24:19 | 294,211,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,182 | py | Customers.py | #!/usr/bin/env python3
import sqlite3
from tkinter import *
import pandas as pd
#name, address, city, postcode, status
class Customers:
def addNewCustomer(firstName, surname, address, city, postcode, phone,status):
conn = sqlite3.connect("projects.db")
cur = conn.cursor()
... |
026cd2576fcb933188360c16573f66a0e0acbf89 | a8111b06cbc5aff09642d05b50ffb33249597ebb | /sem_seg/pcd_to_ply.py | 1ef964ff60e32c0231a98a472afa164660bc2314 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | manuelpinar/pointnet | 6a937aacc13dcb01ce7600ce2982c37d4a5ecbc0 | 1f4b8c483d52bff64ad3474360993ea065ae1e91 | refs/heads/master | 2020-12-11T09:41:00.520719 | 2020-05-16T17:37:02 | 2020-05-16T17:37:02 | 233,811,942 | 0 | 0 | NOASSERTION | 2020-01-14T10:05:56 | 2020-01-14T10:05:55 | null | UTF-8 | Python | false | false | 3,690 | py | pcd_to_ply.py | import os
import re
import numpy as np
import argparse
import sys
'''
script to convert a pcd file into ply
inputs:
- pcd file
outputs:
- ply file
execution example:
- python3 pcd_to_ply.py --path_in "/home/miguel/Escritorio/extract_3d/pointclouds/18_11_2019_all_painted/1_45/pcd" --path_out "/home/miguel/Escrito... |
74062aef9b5e0cce54584e953bc87cc68b853811 | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/Scaleform/daapi/view/lobby/hangar/carousels/battle_pass/carousel_filter.py | fffbd681c989681555755b96a76d9f0f14ef0c2d | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 2,778 | py | carousel_filter.py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/hangar/carousels/battle_pass/carousel_filter.py
from account_helpers.AccountSettings import CAROUSEL_FILTER_1, CAROUSEL_FILTER_2, BATTLEPASS_CAROUSEL_FILTER_1
from account_helpers.AccountSettings impor... |
2c41ed12c2f1784386f961dd754eaa377810b700 | ea116736b94f1034b0af6db4abd6e0331badb60e | /app/__init__.py | c906359c8ca38d7de199bb51e0cfd75c643ad5bd | [] | no_license | jan-polaczek/projekt_odas | 178ceb352bf60d1085bd6e67d222edf038d4ae68 | 83ee5850b125330287c497e0c9b7c72098fec340 | refs/heads/main | 2023-02-17T07:31:48.435210 | 2021-01-15T16:15:50 | 2021-01-15T16:15:50 | 329,961,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,822 | py | __init__.py | import os
import click
import json
from flask import send_from_directory
from app.customFlask import CustomFlask
from app.web import web as web
import app.models as models
from app.mail import mail as mail
from app.mail import send_test_message as send_test_message
app = CustomFlask(__name__)
app.config.u... |
12e8dbf5574cd45df9206aaa3c04a3943e3beec3 | a9aa31f21ae561a77f66455455040d3327255ef4 | /dp/tests/test_state.py | b3456b0a749db436e777a211ffd32650a4a9512e | [] | no_license | prathyushaV/pyalgorithm | ab7dec910f34f1e241974f7f95d06109c9692e74 | 01334d2a6216e75b6f499939ec1d9a7f696153bf | refs/heads/master | 2021-01-17T10:57:49.026971 | 2009-04-29T20:11:19 | 2009-04-29T20:11:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,452 | py | test_state.py | from pyalgorithm.dp.state import *
import unittest
class TestAbstractState(unittest.TestCase):
def setUp(self):
self.product = Product(self.get_current_state(),4,self.get_current_date())
self.context = ProductContext(self.product)
def get_current_state(self):
return DELETED_STATE
... |
387fd52659e92457cc1ca3d1b213952e8e194309 | 2bd8dffb067d13ee95daee34f6543687e3121caf | /sql_queries.py | dafa9ad58f7b1e7e122693c7b6fba67c6e5981a1 | [] | no_license | alex-toy/sparkify | 5f931f979053aff1433e685c2a9c335ac63c5173 | 226f4c9a3e543bf4595567497ead54c5984e6e8f | refs/heads/main | 2023-03-23T13:17:57.330456 | 2021-03-08T13:41:02 | 2021-03-08T13:41:02 | 344,384,825 | 0 | 0 | null | 2021-03-08T07:40:17 | 2021-03-04T07:19:09 | Jupyter Notebook | UTF-8 | Python | false | false | 3,036 | py | sql_queries.py | # DROP TABLES
songplay_table_drop = "DROP TABLE IF EXISTS songplays;"
user_table_drop = "DROP TABLE IF EXISTS users;"
song_table_drop = "DROP TABLE IF EXISTS songs;"
artist_table_drop = "DROP TABLE IF EXISTS artists;"
time_table_drop = "DROP TABLE IF EXISTS time;"
# CREATE TABLES
songplay_table_create = ("""
CREATE ... |
1fa521a65498e2329d10f8dac6eebe28a0b41eef | 46a2bcc5318f8ba491a009cf6881239be8e2d332 | /test_admin_panel/models.py | 1c0752becbc84c15805eba4e75478628e02e2033 | [] | no_license | yellow-sky/DjMoneyTest | 42a1527e0d995961b77a8aaa415442555fb265b9 | 287ea13872da7dbeb19bc61642390690f5ba7d8f | refs/heads/master | 2021-01-12T13:44:15.572664 | 2016-09-25T10:36:41 | 2016-09-25T10:36:41 | 69,158,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | models.py | from __future__ import unicode_literals
from django.db import models
from djmoney.models.fields import MoneyField
class SimpleMoneyModel(models.Model):
pay = MoneyField(decimal_places=2, max_digits=10)
class SimpleMoneyModelProxy(SimpleMoneyModel):
class Meta:
proxy = True
|
2901a09cf111ae0617354d94935eeec0db746f73 | 0f4c651c018eec3adb3618d84f8b5a236347a94c | /carwash/vehicles/forms.py | c235387381441d595f0a5ac487a02b2e138607a5 | [] | no_license | vineetdaniel/cw | f211b089756cee25c6f33a0de0054a5f3e8219d5 | 98864dca0e791e40e7627c4398c6ebb0b4ebaa8f | refs/heads/master | 2021-06-11T23:32:15.804053 | 2017-02-06T06:12:17 | 2017-02-06T06:12:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | forms.py | import django_filters
from .models import Vehicles
class VehicleFilter(django_filters.FilterSet):
class Meta:
model = Vehicles
fields = '__all__' |
3230ae67941ab1683ab774e7a614f2383dcbb951 | 34ca327305d7299fbe8ace6ed390aed3b6954a70 | /swagger_server/test/test_trade_controller.py | 9ed25683a25264de736a49f27d381009003cd7c3 | [] | no_license | lior3790/test_edgify | c61cf8602a886a858d6e6fa4807a94e1f63984ba | 3824b6ac02e32e8637253be6e9688045bf87cd58 | refs/heads/main | 2023-07-15T05:45:20.905321 | 2021-08-25T02:03:19 | 2021-08-25T02:03:19 | 399,651,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | test_trade_controller.py | # coding: utf-8
from __future__ import absolute_import
from flask import json
from six import BytesIO
from swagger_server.models.single_order import SingleOrder # noqa: E501
from swagger_server.test import BaseTestCase
class TestTradeController(BaseTestCase):
"""TradeController integration test stubs"""
... |
479029259e96446096b425c8372e0ac4e44d0b69 | 9aec31f1711e752b10db7674e86c5e2848626edb | /twitter/urls.py | 066aabb6de0613c38784d07a8e4f3097ec2f9ac7 | [] | no_license | karimiehsan90/twitter | 2126b61268f95d549ed4237a863634f722b15d6e | 3fa306e1335e16812727e57ee910690f602b452c | refs/heads/master | 2021-09-06T01:48:46.761653 | 2018-02-01T12:03:19 | 2018-02-01T12:03:19 | 119,829,291 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,649 | py | urls.py | """twitter URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... |
44dc56f6d5d228f76f4a1773efee518ef1072ac1 | 25b430d7c67aa351b032ad962c73b836dfd19fe5 | /prac_07/convert_miles_km.py | 16f668b6f89f78f06ea8fe9c8cdd10599a6f0661 | [] | no_license | brightlee93/cp1404practicals | 0bc2283886b2bf956e8a0e8b254da25ad6aad771 | d7a83237a9b6364d55bf01e9a6b4e81b5c19ada3 | refs/heads/master | 2023-01-05T14:46:03.808118 | 2020-11-01T08:28:47 | 2020-11-01T08:28:47 | 287,468,002 | 0 | 0 | null | 2020-09-24T08:30:50 | 2020-08-14T07:09:23 | Python | UTF-8 | Python | false | false | 957 | py | convert_miles_km.py | from kivy.app import App
from kivy.lang import Builder
from kivy.app import StringProperty
CONVERT_RATE = 1.60934
class ConvertMilesKiloMetres(App):
message = StringProperty()
def build(self):
self.title = "Convert Miles to Kilometres"
self.root = Builder.load_file('convert_miles_km.kv')
... |
9f2e995805e80de4f77f781409b6ddb2f0c22c8a | d3f8df23f91f22dfe8c39f0c76177d5bc66415cf | /taobao_web.py | aae1af6137367b2ac7a28ee36b18b43b40dbf6fa | [] | no_license | yishensanying/taobao_api | 98dfa1f94d524e39e478a299b848fff214d3b397 | 27af12fdbcd28d992162477f3cd750b2bfbad17f | refs/heads/master | 2023-02-11T10:01:48.076357 | 2021-01-04T07:43:21 | 2021-01-04T07:43:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,647 | py | taobao_web.py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
import requests
import time
import datetime
import hashlib
import re
from urllib import parse
import json
import sys
from bs4 import BeautifulSoup, Tag
import random
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webd... |
5d685919a77c06165f331e1099deed21c7124193 | bea2cd0fdfe792fdc07acece472a14ff650d5663 | /adsys/domain/models.py | eadb4d0395b3e6f33900945f1a5c1886f9c8c4af | [] | no_license | kostadinoval/django-adsys | 5fcf1a1263c1a59a73460a2d614125159b079faa | ecef78830b7f8d68a68148e7108ec40cc1414453 | refs/heads/master | 2021-01-10T07:56:53.913781 | 2015-11-28T18:26:00 | 2015-11-28T18:26:00 | 46,121,070 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | models.py | from django.db import models
from django.contrib.auth.models import User
class Domain(models.Model):
user = models.ForeignKey(User)
domain = models.URLField()
crawled = models.BooleanField(default=False)
datetime_posted = models.DateTimeField(auto_now_add=True)
def __unicode__(self):
return self.domain
|
06fd5c2563416cbfa0e37cf4dfef8cc0a96f104d | 65b193295d2a1b94ef58f9c19a8899290516b9e5 | /app/bottle/page.py | e9493fc6c83b3e83334e8d18f7af9e341bab42d9 | [] | no_license | nickgu/misc | 15381eeb9c0bbf4cfce1907658fd38cfb3b49ad2 | 0db5fd99e5aff76f1cb505cc0f4f564add714bf1 | refs/heads/master | 2022-05-02T01:56:12.083984 | 2022-03-15T11:31:16 | 2022-03-15T11:31:16 | 30,815,927 | 3 | 2 | null | null | null | null | GB18030 | Python | false | false | 1,540 | py | page.py | # encoding=utf-8
import cgi;
class Page:
def __init__(self):
self.fheader=''; # 文件头
self.head=''; # html header
self.body=''; # html body.
self.set_header();
# get param_set.
self.form = cgi.FieldStorage();
return ;
def set_header(self, doctype='text/html', charset='utf-8'):
'''设置Header
'''
sel... |
1ecd957438593c25ad3f29ef928a709f466bed9f | c745d0ef615eca8573cbe4c32c0952636d492462 | /compute_source.py | fbf77820324a8bc9401926ea3a1676e667e1b294 | [] | no_license | Bovinitwo/sourceList_Server | 32228661f409b6e56bea5a47c85e8c96a2e8ae2c | be9bd5509ba54245be1497d10e9510ba2df49ecb | refs/heads/master | 2020-04-19T05:30:57.794101 | 2016-09-07T08:21:45 | 2016-09-07T08:21:45 | 67,586,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,233 | py | compute_source.py | #!/usr/bin/python
#! -*- coding:utf-8 -*-
import tornado.httpserver
import tornado.ioloop
import tornado.options
import tornado.web
import json
import sys
sys.path.append('/home/workspace/ProxyServer/bin')
sys.path.append('/home/fangwang/statistic_scripts/')
import os
from DBHandle import DBHandle
import re
monitor =... |
2c17ca060d29fd84cd72a8516403ed4804e267cf | 2d806ddc5db5607352eeb073252da055f3cc681b | /Trabalho 2/Davi_Alves_Algoritmo.py | 4e92aa71a6d113911b805e093ffcf809c3143235 | [] | no_license | davi-juliano/AED2 | d7034ad1dffcde79c5bcf870fda7b8768e7f417e | 975ab7bc0c8d899ea05534ffe15bb688549374ad | refs/heads/main | 2023-07-13T15:59:13.768814 | 2021-08-25T13:58:54 | 2021-08-25T13:58:54 | 399,833,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,197 | py | Davi_Alves_Algoritmo.py | # -*- coding: utf-8 -*-
"""Trabalho_Computacional-2.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1x9mbOlUmurtZpXqhl15E_ZZ5QVvyaeSs
# Importações do Python para o código -
"""
import sys
import time
from IPython.display import Image
"""# Es... |
a390cb4398c0123c83ed10e1f04ec448ac636c7c | bf5e6bc2a55e86e4a5da889a6e5e363bf4332c1d | /create-sprite-from-svgs.py | 6a2b891bb1df0267e19dc2d7a1938f147f4d083f | [] | no_license | MrNagoo/sprite-generator | c9feea87ef93cb2eb47711713d53b9e4c1ca65e0 | 84abb98bce4d6627c891a386883ba244aa31f812 | refs/heads/master | 2023-05-12T17:17:25.502987 | 2021-06-02T19:04:51 | 2021-06-02T19:04:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,799 | py | create-sprite-from-svgs.py | import os
import sys
import re
regex_to_get_viewbox_size = re.compile('viewBox=\"([\d\s\.]*)\"')
regex_to_get_svg_contents = re.compile('<svg.*?>(.*)</svg>')
sprite_content = '<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">\n'
print("Enter the path to the folder containing the SVGs you want to create ... |
7b9757606eafc96cbd3138251c02229b33a1014e | 4d184b09696a92c2072f79081ab9738530aa1aa6 | /placeholder.py | 918ec83955b1500cdb326da585843a211d8b5783 | [] | no_license | shivam2146/TensorFlow | 3dd17c9e1c515361564cdfdf1e37fb7f552ddabd | 4d9f111287dab95cad8410ee473065244d9a2a81 | refs/heads/master | 2021-09-26T17:18:49.041502 | 2018-10-31T17:38:08 | 2018-10-31T17:38:08 | 114,637,201 | 1 | 1 | null | 2018-10-31T17:38:09 | 2017-12-18T12:13:32 | Python | UTF-8 | Python | false | false | 284 | py | placeholder.py | import tensorflow as tf
a= tf.placeholder(tf.float32,name="hh")
b= tf.placeholder(tf.float32,name="cvs")
adr= tf.add(a,b,name="adder")
sess= tf.Session()
output= sess.run(adr,{a:3,b:4.5})
print(output)
writer=tf.summary.FileWriter('./my_graph',sess.graph)
writer.close()
sess.close()
|
2dd6ed254e3dbf62ee1ce06f283f6b1655364760 | 562629699d3ad837c9ebc3930b5cdf3fd78dc99d | /MB_Transactions.py | 2f1a3ec102571d8d79f156b372da031631c135da | [] | no_license | radinat/CustomersPrediction | ca71812a5b26db7901c5c922c84f729d8697f010 | 798bf856ccbf0fa384e5d0b714585fa6a841c3ec | refs/heads/main | 2023-02-10T11:25:58.637621 | 2021-01-10T20:21:58 | 2021-01-10T20:21:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,819 | py | MB_Transactions.py | # -*- coding: utf-8 -*-
"""
Created on Tue Dec 15 08:59:15 2020
@author: user
"""
# Raiffeisen Bank Case Study
# Path-2-Digital
# MOBILE BANKING
# TRANSACTIONS DATASETS
# Libraries
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
# Set output display options
pd.set_option('display.max_colum... |
d4b3c6db4bfe0ae002a6b9416e79a2dd00f0b48f | 370c9af705c4e7b21905af51e0c2af050f7dde64 | /recursion2/R01_groupSum6.py | 94f7c56ee24d48b74d87607be7498a94a7eedfce | [] | no_license | weeeBox/codingbat-python-recursion | 2829fa3a4f5fac21e50e41ccf53feaed9d381f61 | 8d1ade1d058ebe3cef0a9ca59b93f19c9a1f5e43 | refs/heads/master | 2023-02-10T19:32:15.711258 | 2021-01-07T20:25:45 | 2021-01-07T20:25:45 | 325,892,078 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,874 | py | R01_groupSum6.py | from unittest import TestCase
from typing import List
def groupSum6(start: int, nums: List[int], target: int) -> bool:
"""
Given an array of ints, is it possible to choose a group of some of the ints, beginning at the start index, such
that the group sums to the given target? However, with the additional ... |
b69d8be5fad6fe67faacf407a49c3d36c2119a8b | a7eca1bf1dbd5154b34eb942649c07e05b75d94e | /cms_auth_forms/cms_plugins.py | 673ef78bacd8ac543aa07ca1310f23e779c68d23 | [] | no_license | ITrex/cms-auth-forms | b02dea8c525d583bd3b13a79c4741c28bc9837f7 | ac639dfea0376317e836b6c856c34354a53f4b6f | refs/heads/master | 2016-09-06T08:07:07.426271 | 2014-07-18T18:00:08 | 2014-07-18T18:00:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | cms_plugins.py | #!/bin/env python
# -*- coding: utf-8 -*-
from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
from cms.models import CMSPlugin
from django.utils.translation import ugettext as _
from django.contrib.auth.forms import AuthenticationForm
class LoginFormPlugin(CMSPluginBase):
model = CM... |
27851ad33b027603d509051bd6f146014bdb6df9 | 6e9476a1715c2b2ae2fbfea557699f63bc781e1f | /tests/test_grammar.py | 8f2e0ae8e0e2af0e1e4d68fe5837b0c0de7a13a9 | [
"MIT"
] | permissive | vladiibine/whispy_lispy | f92b872d91fa82abd19f31616760a68f68b5cc57 | 9e5d6196f24e5c3ed5fb8753620ace5994c24add | refs/heads/master | 2021-01-10T01:30:39.478372 | 2016-10-07T20:45:12 | 2016-10-07T20:45:12 | 36,161,333 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,150 | py | test_grammar.py | from whispy_lispy import grammar, types
import pyparsing
def test_int_literal_simple():
assert grammar.int_literal.parseString('1234')[0] == types.Int((1234,))
def test_dont_parse_int_literal_before_period():
try:
grammar.int_literal.parseString('1234.')
except pyparsing.ParseException:
... |
967cc85bbadd7c6f056e086bae672421ec6f474b | b1d92172726262fc89f9a0c4a9e4888ebc91009e | /interview_exam/huawei/parse_typedef.py | 5747d11c6973e0f96ee496e42e65ae194beb57e5 | [] | no_license | SuperMartinYang/learning_algorithm | 0c5807be26ef0b7a1fe4e09832f3ce640cd3172b | e16702d2b3ec4e5054baad56f4320bc3b31676ad | refs/heads/master | 2021-06-27T14:00:18.920903 | 2019-05-05T23:25:29 | 2019-05-05T23:25:29 | 109,798,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | parse_typedef.py | import sys
dic = {}
def solver(target):
# dfs get final type
if target not in dic:
return target
return solver(dic[target].strip('*'))
if __name__ == "__main__":
# first line, value of each treasure
defines = sys.stdin.readline().strip().split(';')
# parse defines to dict
for d i... |
e3dd64c3ff93fb64386dd5bf4226ce2da877711b | cb115678833e5009006e724f03e3baf56806b344 | /python-3-mundo-1/ex007.py | 25543989ef43caa7a0a54ee0908eb9c1ffc9e281 | [] | no_license | BrenoNovais/curso-em-video-python | 0c619ce9072b3bad6414f3f1b00df19c9604d919 | 77da041fc6058281f7b56e53117f24134148cc0e | refs/heads/master | 2022-12-02T10:57:56.054739 | 2020-08-15T00:45:38 | 2020-08-15T00:45:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | ex007.py | np = float(input('Qual sua nota em portugês?'))
nm = float(input('Qual sua nota em matemática?'))
nt = (np + nm) / 2
print('Sua nota média é {:.1f}' .format(nt))
|
35b3cedc557e5bc5ade8b65ef234f5c8c5a45cb1 | 328f87184e21e03c28b43ce96f2b9fd02c2ac0b4 | /util.py | 9b6344f678f0bdec8328af8f81597c8a82d2c536 | [] | no_license | Matanhalfon/MNIST_GAN | a6f700b786b3785006bfecfc5116616621e05edc | b765ffb870f1fe25d9383ed6bb7fd08eaae30ca4 | refs/heads/master | 2023-02-27T16:46:53.586070 | 2021-02-08T20:14:21 | 2021-02-08T20:14:21 | 337,127,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,640 | py | util.py | from matplotlib import pyplot as plt
import tensorflow as tf
from tensorflow.keras.losses import BinaryCrossentropy
import tensorflow.keras as keras
import tensorflow.keras.layers as layers
from tensorflow.keras.datasets import mnist
from collections import Counter
from tensorflow.keras.models import Sequential
from te... |
9c608ddd94b408af0ea26dc27a24abe26d82a91d | 9d647136e87cf5435ddac4309ecd7e0406a6ab54 | /seafile_keeper_ext/seafile-server-latest/seahub/keeper/tests/test_misc.py | f58489af48957cb54c7b0dd2abb442f45efe49d3 | [] | no_license | MPDL/KEEPER | 95d52f96010b8f2fe82b48f9686266c380915e97 | c1aa803b56ade05b4a8f3036927b64d8e0ea00b6 | refs/heads/master | 2023-08-06T16:31:15.383614 | 2021-08-06T09:00:12 | 2021-08-06T09:08:02 | 49,420,204 | 9 | 0 | null | 2021-03-04T16:07:08 | 2016-01-11T10:58:04 | Python | UTF-8 | Python | false | false | 5,223 | py | test_misc.py | import pytest
import mock
from pytest_mock import mocker
import traceback
# from mock import patch
import seahub.base
import django
django.setup()
from seahub.views.sysadmin import send_user_add_mail
from seahub.utils import send_html_email
from seahub.settings import SERVER_EMAIL, SERVICE_URL
from seahub.base.accoun... |
0cd6282f6e41e5bb6356ffd4784824572061c045 | fcb00ee1bcc637ee4fef22410a396f5098c33814 | /windows/scripts debug/symuviautils.py | 3941d35c2656587a6881355310d1da0b1061b291 | [] | no_license | aladinoster/demo-symuvia | 7367c150d54696e0f4c3bf3f59a19698b59ab9fd | f64940e17d93bc7c61b88241692743b18a7cd08e | refs/heads/master | 2020-06-03T00:30:05.756664 | 2019-06-26T05:16:06 | 2019-06-26T05:16:06 | 191,361,091 | 0 | 2 | null | null | null | null | ISO-8859-1 | Python | false | false | 1,573 | py | symuviautils.py | #!/usr/local/bin/python
# -*- coding: utf-8 -*-
"""
Module de fonctions utilitaires pour les scripts de régulation de SymuVia
"""
import symuvia
def calcul_date_fin_cycle_PDF(network, cdf):
"""
Méthode utilitaire pour déterminer la date de fin du cycle courant d'un plan de feux
"""
# récupération du pla... |
78cb3db5f74f414025a95c3d66837a830f76f889 | 10edb8376d9746cf9e1d4961c484ff740b05ee86 | /10 - Additional Level (Optional)/65mediaofTwoSortedArrays.py | 56082c259f4db1453df512cd4455722ccd21bb26 | [] | no_license | hanrick2000/algorithm-6 | 15cba35b4ad34fc9e4c000c5d2e54158ebf54768 | edd4e1f04674f774e1b4887d02fb005d7916dc0f | refs/heads/master | 2022-09-18T13:30:53.436540 | 2020-06-06T05:16:02 | 2020-06-06T05:16:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,680 | py | 65mediaofTwoSortedArrays.py | class Solution:
"""
@param: A: An integer array
@param: B: An integer array
@return: a double whose format is *.5 or *.0
"""
def findMedianSortedArrays(self, A, B):
# write your code here
# method 3: Divide Conquer
n = len(A) + len(B)
if n % 2 == 0:
r... |
cd8e509d0b2aae37f26c6d22362d427acece31cd | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /lib/python2.7/site-packages/openopt/kernel/NLSP.py | e309f1613a07fca86c5cfa234cfa62d11ea5cf16 | [
"Python-2.0",
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 3,416 | py | NLSP.py | from baseProblem import NonLinProblem
from numpy import asfarray, dot, abs, ndarray
import numpy as np
from setDefaultIterFuncs import FVAL_IS_ENOUGH, SMALL_DELTA_F
import NLP
try:
import scipy
solver = 'scipy_fsolve'
except ImportError:
solver = 'nssolve'
class NLSP(NonLinProblem):
_optionalData = ['... |
634b5c7db21dab6efb13291fd4bd72a50a98795b | f355a6a9228a16947301f8357bd2325fb08d54d5 | /create_date_sheet.py | 32d749eb29d763017853204618f5b55e13cbda0c | [] | no_license | jacobf18/Financial-Scraping | 6f202c09492bf78f02a6022442746df1b96a89e2 | 80a7392ea452e4abd02e713d6ce18131daa403e8 | refs/heads/master | 2021-07-23T01:37:38.823347 | 2021-07-19T00:01:52 | 2021-07-19T00:01:52 | 163,368,578 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 831 | py | create_date_sheet.py | import pandas as pd
import numpy as np
import os
if __name__ == '__main__':
comps = []
dates_begin = []
dates_end = []
directory = os.fsencode('equities/before/')
for file in os.listdir(directory):
filename = os.fsencode(file)
full_path = os.path.join(directory, filename).decode('u... |
cf8c6cc0d28d2ab7d600d67cf93cd0158a049527 | cb466b08bdfc979b1377f49970123bea6c5398e6 | /HorizonCore/__specs__/FrameworkSpecifications/EventSpecifications.py | 8dede4de9dbdba295f4af3f90a344ece6cd9da71 | [] | no_license | SergeKrstic/show-case | 71ae57330363a6f49037b6920dd98611fd6f1606 | a10793ea35a16dddd3a70311a3020e40ac6a6c54 | refs/heads/master | 2022-10-05T05:42:16.204266 | 2020-06-02T05:49:42 | 2020-06-02T05:49:42 | 268,712,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,513 | py | EventSpecifications.py | import unittest
import datetime
from HorizonCore.Framework.Event import Event
eventAsJson = {
'Name': 'TimeToStartWakingUp',
'StateClassName': 'StateStartWakingUp',
'StartTime': '07:00',
'EndTime': '08:00',
}
class EventSpecifications(unittest.TestCase):
... |
43d6d822099547e525525da85b44e31954f5c088 | b617c15f21a7f5a7eac8e110efdacec65d1547e2 | /code/nnet_simple_plot.py | a322707904537e7799078bab3fbcda47e72c7323 | [
"MIT"
] | permissive | podala/cs289-project | 9325ab379dcefd4726525f5e409a189f8edd721b | a3686de769c9709587a68731275a0b7065ba88f1 | refs/heads/master | 2021-12-08T22:21:37.443657 | 2016-04-09T18:09:37 | 2016-04-09T18:09:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,270 | py | nnet_simple_plot.py | from os.path import splitext
import numpy as np
import matplotlib.pylab as plt
import seaborn as sbn
from mpl_toolkits.mplot3d import Axes3D
def savetxt_compact(fname, x, fmt="%.6g", delimiter=','):
with open(fname, 'w') as fh:
for row in x:
line = delimiter.join("0" if value == 0 else fmt % va... |
e036366630d8c30911b994dde710d7f4d85583b2 | da8adeef2578b8ef1a194e61dd4a1ef426822950 | /com/ohyes/gui/lable2.py | 76cf1303eafff0ee54ec4da05cb74e3a2def7ccc | [] | no_license | ohyes768/HotComments | 8cc5bdce013ecae43b07b2107f8a1de0f6d89668 | 36952d2e5aed2a514ae7a17fa3da0d8b4221782c | refs/heads/master | 2021-05-04T12:24:24.593513 | 2018-02-28T11:01:52 | 2018-02-28T11:01:52 | 120,294,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,535 | py | lable2.py | # -*- coding: UTF-8 -*-
from Tkinter import *
import time
text = ("说喜欢李荣浩版本的真的不是在开玩笑吗…不是听一首歌啊",
"不是听一首歌啊说喜欢李荣浩版本的真的不是在开玩笑吗…",
"不是听一首歌dsadddddddddxxxxxxxxxxxxxxxxx…")
def marquee(widget):
global stopflag
textwidth = 80
global pos
global source_str
strlen = len(source_str.rstrip())
... |
989e307fd896c2da8499fe4b32f3b1e07c7088b8 | 8d472f9facb895dda9e1df81f3bb6c2f81b9c357 | /master/bt5/slapos_jio_ui_test/SkinTemplateItem/portal_skins/slapos_ui_test/ERP5Site_suspendUserSupportRequest.py | 938253f92177c95e3d736574f8e314537c5484f8 | [] | no_license | SlapOS/slapos.core | 852485eed9382685f3df6ba8532f8192bb1389c4 | 369e8d56636e1c59a745e68dc68154abfc5b7840 | refs/heads/master | 2023-08-31T04:42:34.722241 | 2023-08-30T15:13:08 | 2023-08-30T15:13:08 | 1,825,920 | 11 | 4 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | ERP5Site_suspendUserSupportRequest.py | from DateTime import DateTime
portal = context.getPortalObject()
portal_membership=portal.portal_membership
demo_user_functional = portal_membership.getAuthenticatedMember().getUserValue()
for support_request in portal.portal_catalog(
portal_type="Support Request",
simulation_state="validated",
default_... |
44f614cb0af9bac01482edcd7d2cca68166cd2b3 | a8abef62908e91ea1cdb7d409880c2ae30807e96 | /example.py | 58777136e2f3f43f49b4d12c47c44b7bdc0fe92d | [] | no_license | Aiyane/life_game | 72dfae998b1b7b1052fcaa73c8102e853b68cfcf | 962aea8ae77ce780637c823414ad1e126b1ffa24 | refs/heads/master | 2020-03-28T01:23:17.298110 | 2018-10-08T14:06:44 | 2018-10-08T14:06:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | example.py | from life_game import Control
import settings
from tkinter import Button, StringVar
class MyGame(Control):
# 第一种控制方式:继承 Control 函数,改变以 get 开头的方法,动态控制参数
def get_sleep_time(self):
if self.paint_nums % 5 == 0:
return 1000
return 100
def get_cell_color(self):
if self.paint... |
1dd215b0961858a990bbe1e392b96a0cfdec4709 | a6ee45d791625847a90115ebff79e4174a42d78d | /day2.py | 36530057b3b79f171669a5856acc54d39cfb0bfd | [] | no_license | feixiangdx/ccc | 8f535039cdb6d87b87f288ff13c4d22edd555011 | 53c4ace5774d7a49b0bf9559b754d0b09b853a23 | refs/heads/master | 2023-08-18T11:14:25.646744 | 2021-10-20T06:51:04 | 2021-10-20T06:51:04 | 399,012,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | day2.py | import random
num = random.randint(0, 10)
b = 100
while True:
a = input("请输入一个数字") # 你输入的数字
a = int(a) # 把a转换成int类型
if a == num or b == 0: # a是你输入的数字 num是随机数 如果a等于num运行下面的代码
if a == num:
print("成功", a)
break
else:
print("游戏结束,资金不足")
... |
ced5727320c828e600cc1e8376ff539be2b95e0c | 5cb40eedc824e8745101311b7d1823615e98269b | /project_euler/problem6_test.py | 5d50d82e550a4db740e6fd574a07237067ecc744 | [] | no_license | jaimemarijke/project-euler-solutions | a1975fe43049c2a34529c7b13f3d907eb837d094 | ed398c456cb0829799cd05f0cb3bebd1d6648c7c | refs/heads/master | 2020-04-11T10:14:04.716856 | 2019-01-17T00:05:02 | 2019-01-17T00:05:02 | 161,707,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | problem6_test.py | import pytest
from . import problem6 as module
# 1**2 + 2**2 + ... + 10**2 = 385
# The square of the sum of the first ten natural numbers is,
# (1 + 2 + ... + 10)2 = 552 = 3025
@pytest.mark.parametrize("numbers, expected", [
([1, 2, 3], 14),
(range(1, 11), 385),
])
def test_sum_of_squares(numbers, expected... |
52e85fa07c7c14f9d754abcd565fbef849e68691 | b17d7fcb6d43d2354a4e1ccc13c16a4dd0044934 | /frolic.py | 79ae77293c4fcabf5ddda577959c972acf1e4967 | [] | no_license | Alinfty/frolic | 007ffe5f502540a71a0a69f71afa5372421bd627 | 2bb215638c0ba4583abdc171a0eadaa332d1e78a | refs/heads/master | 2021-01-13T00:49:53.811966 | 2016-01-29T08:23:50 | 2016-01-29T08:23:50 | 49,613,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | frolic.py | #!/usr/bin/env python3
from socket import *
import sys
#import parser
if __name__=="__main__":
host=''
port=80
BUFSIZE=1024
s=socket(AF_INET, SOCK_STREAM)
s.bind((host,port))
s.listen(5)
try:
while 1:
print ("waiting...")
conn, addr=s.accept()
print ('Connected by', addr)
while 1:
data=co... |
7356b02fefa215a193d874e3f68bfa62e56e62c2 | 849af2cdc3bc0dd9cf67a8decb14b681898988cc | /course_table_generator/old/reader.py | a1509094678a2a2d97a2919b980c690de9d547d9 | [] | no_license | lijunsong/course-table-genertor | d7b3e42474c8bb6333800387bad3a0cf1d35140a | 7a757ef74674c88e6069bc23037631876fc4fd73 | refs/heads/master | 2021-01-22T13:42:34.904258 | 2013-03-29T04:01:26 | 2013-03-29T04:01:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,915 | py | reader.py | from course import Course
import csv
from util import *
class Reader:
"""Process files to get courses"""
def __init__(self, file_name, delimiter=",", comment="#"):
self.file_name = file_name
self.delimiter = delimiter
self.comment = comment
self.courses = []
self.__pro... |
ca2c5959a73a35adfb284587df0022d1dc5dba11 | 0b9e9bbc17ccd04da7848a3b9851a46afe13e0d7 | /meanfield/inputs/MFLinear3TSInput.py | 460a2c8ba74fd356f5d7034929ad59bee759f65b | [] | no_license | zifeo/meanfield-suite | 72914380cf4ddd0a250293447aad1fde9c30a416 | 7e18d9371d8d1db65720a90d2d816244fd2ba6a0 | refs/heads/master | 2021-09-03T10:23:24.389900 | 2018-01-08T10:57:52 | 2018-01-08T10:57:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,236 | py | MFLinear3TSInput.py | from types import MappingProxyType
from typing import Union, Dict, List
from brian2 import Equations, Synapses, units, BrianObject
from meanfield.inputs.MFLinearInput import MFLinearInput
from meanfield.parameters import IP
from meanfield.parameters.MFParameters import MFParameters
from meanfield.populations.MFPopula... |
864a05e0446afd6b93ecc7202deb0ce3cc9e57b9 | e25fab696d642b310cfc3ebdb60cbb95a340b9e3 | /Session_01/procedural.py | adedaf28285e8b0d9a208c16eb4cfb788d8d0051 | [] | no_license | aKumoSolutions/terraform-january-2021 | f8596d6306bdf8de37378ef6c3fa90e011c9a090 | 9df2be33b52eece78d26e9ff3b3374eb0826c071 | refs/heads/main | 2023-03-22T18:43:27.519782 | 2021-03-09T02:16:36 | 2021-03-09T02:16:36 | 330,868,712 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | procedural.py | import boto3
client = boto3.client('ec2', region_name='us-east-1')
response = client.run_instances(
ImageId='ami-0affd4508a5d2481b',
InstanceType='t3.nano',
MaxCount=1,
MinCount=1,
TagSpecifications=[
{
'ResourceType': 'instance',
'Tags': [
{
... |
ef21a4e3aed55ceee23f17487d539b495a329803 | dcd83aeb799143b58956612fb0bfc0258d30f229 | /src/python/MergeSensor/MergeSensorDB/MySQL/Status/RemovingState.py | fd3fb5e9d20b3ab22b8087394ecc881a8107024e | [] | no_license | giffels/PRODAGENT | 67e3e841cfca7421caa505d03417b663a62d321b | c99608e3e349397fdd1b0b5c011bf4f33a1c3aad | refs/heads/master | 2021-01-01T05:51:52.200716 | 2012-10-24T13:22:34 | 2012-10-24T13:22:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,104 | py | RemovingState.py | #!/usr/bin/env python
"""
_RemovingState_
Flag the files listed as removing
"""
import os
from MergeSensor.MergeSensorDB.MySQL.Base import MySQLBase
from MergeSensor.MergeSensorError import MergeSensorDBError
class RemovingState(MySQLBase):
"""
_RemovingState_
Flag... |
a8470e853411650f7b4852f6e1ac61163d8a4a29 | 0f98ac470b21c658687a6e5408df0e49ca4ba779 | /src/backend/libro/editar/app.py | 5f0c8f453900fa36f498d34ff140964e9f5a703a | [
"MIT"
] | permissive | gpeitzner/SA_EZREAD | 871cd561bc2dcd97c5259fd80818a24821edcd1c | 3dd5f267ac225ccf51936fbf5634f6f3d3fcce99 | refs/heads/master | 2023-06-06T23:46:00.322389 | 2021-07-02T16:41:40 | 2021-07-02T16:41:40 | 373,032,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,526 | py | app.py | from flask import Flask, request
import os
import json
import pymongo
from bson.objectid import ObjectId
from bson.json_util import dumps
from flask_cors import CORS
from bucket import Bucket
from datetime import datetime
app = Flask(__name__)
CORS(app)
db_host = os.environ["db_host"] if "db_host" in os.environ else ... |
bb80ebca290ddd554d2ed136b4ba7cff195a1418 | 330dbbefb2e7d6283c812888c89e58498f0b4188 | /Zhihu/NN/one/Network.py | e0d1e7958e7e88471bec750e57886b0e488151cb | [
"MIT"
] | permissive | leoatchina/MachineLearning | 93dd3e6c91911f5743617dde1873bf60493171a2 | 071f2c0fc6f5af3d9550cfbeafe8d537c35a76d3 | refs/heads/master | 2023-04-23T02:36:36.809015 | 2021-04-29T15:06:00 | 2021-04-29T15:06:00 | 286,432,406 | 0 | 1 | MIT | 2020-08-10T09:30:34 | 2020-08-10T09:30:34 | null | UTF-8 | Python | false | false | 3,363 | py | Network.py | from Zhihu.NN.Layers import *
from Zhihu.NN.Optimizers import *
np.random.seed(142857) # for reproducibility
# Neural Network
class NNBase:
NNTiming = Timing()
def __init__(self):
self._layers = []
self._optimizer = None
self._current_dimension = 0
self._tfx = self._tfy = ... |
69f6298910d90f82fa1b9390e309222fb1428b95 | 2a491f2c7d83c139521fd0b37a8d8482eddd9afa | /phpstudyRCE/phpStudy_RCE_EXP.py | a21efe6825fcee0a4e48ba445a535f4f9f4d9e31 | [] | no_license | Kagantua/PocList | 307d1b5107b4b4dfc3d27ad04a4f3db230f46ab5 | 6d0043176cb484b83a62d538e3c2487027ff88bf | refs/heads/main | 2023-09-02T18:47:35.271760 | 2021-11-21T10:34:06 | 2021-11-21T10:34:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,679 | py | phpStudy_RCE_EXP.py | #!/usr/bin/python3.7
# -*- coding: utf-8 -*-
# @Author : Cr4y0n
# @Software: PyCharm
# @Time : 2021/5/12
# @Github : https://github.com/Cr4y0nXX
import base64
import requests
from argparse import ArgumentParser
requests.packages.urllib3.disable_warnings()
class EXP:
def __init__(self):
... |
d8d231192646febfda7ae13503498bfe3396302e | a71a756203a07ccaece6db440410493b3b7ff77f | /hvm/tools/fixtures/fillers/formatters.py | 5fdf6bcc754caf70b89a3738416c26b5a810660c | [
"MIT"
] | permissive | Helios-Protocol/py-helios-node | 73735dc24cd4c816d55649ed2f5df822efabfdce | 691b378938f0a36bf8774dc1ee4e4370b6cf7c63 | refs/heads/master | 2021-08-19T23:05:18.841604 | 2020-01-18T19:38:33 | 2020-01-18T19:38:33 | 134,452,574 | 21 | 10 | MIT | 2019-06-09T04:43:14 | 2018-05-22T17:39:10 | Python | UTF-8 | Python | false | false | 3,092 | py | formatters.py | from eth_utils.curried import (
apply_formatters_to_sequence,
encode_hex,
to_checksum_address,
to_hex,
)
import cytoolz.curried
import eth_utils.curried
environment_formatter = eth_utils.curried.apply_formatters_to_dict({
"currentCoinbase": to_checksum_address,
"previousHash": encode_hex,
... |
4fc1ccbb64d8b5e4827b3cb5744931bf388facc0 | 8764f87bded1becc79298271d3e1937522f0c6da | /newspread.py | 9206572029055cd96de3bb3439af346dcae07fcd | [] | no_license | stat157/newspread | 27aa3246a2d33a586446fcd1bb9ba9b0dae194d1 | af8aa5cf3e32ed1d70614669b5bf3fb961994422 | refs/heads/master | 2021-01-20T06:59:42.979433 | 2013-10-22T17:28:30 | 2013-10-22T17:28:30 | 13,711,667 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,001 | py | newspread.py | # -*- coding: utf-8 -*-
# <nbformat>3.0</nbformat>
# <markdowncell>
# Import basic Python libraries for use in your program: [os.path](http://docs.python.org/2/library/os.path.html) and [ConfigParser](http://docs.python.org/2/library/configparser.html)
# <codecell>
import os.path
import ConfigParser
# <markdowncel... |
fa4307ed39ff06fb8e53db24882927a4e3a57278 | 74fcb0a1c2d0e9b969c8ab5e95cb4fbc3c201c87 | /populate_db/table_customer_sku_details.py | e611ba55fad7d8fd79cdd4397e925643577a1cf9 | [] | no_license | sandip-ACSM/mobile_app_project | 02c1674507be790ca5f8abc0899f726a36bd8745 | 1ef549b6b99dd9c26c55cbcce65bfc692d0cb017 | refs/heads/master | 2022-07-14T01:49:35.035490 | 2019-07-12T13:03:35 | 2019-07-12T13:03:35 | 195,321,350 | 0 | 0 | null | 2022-06-21T22:16:00 | 2019-07-05T01:49:54 | Python | UTF-8 | Python | false | false | 3,420 | py | table_customer_sku_details.py | import pandas as pd
from numpy import nan
import warnings
warnings.simplefilter(action='ignore')
from table_territory_master import create_territory_master
from table_customer_master import create_customer_master
from table_sku_master import create_sku_master
def create_customer_sku_details(input_df, customer_master_... |
5bc32e6afe5fd35c5b95fafc22a30123a7fff813 | 2255eab936104a2722c84f6321d11e4517045b8b | /app/template_filters.py | 277b9487d7bd9571e0829bf16381269e9f868c72 | [] | no_license | ai404/user_management_system | 76ffcc0091eb4f94493df63390faab2bd691269b | 07db253b1618059b24a44d3f953eedecb986d06d | refs/heads/master | 2023-02-23T07:20:46.198325 | 2018-07-16T18:29:35 | 2018-07-16T18:29:35 | 151,339,963 | 0 | 0 | null | 2023-02-15T17:53:59 | 2018-10-03T00:07:34 | JavaScript | UTF-8 | Python | false | false | 942 | py | template_filters.py | import datetime
from app import app
@app.template_filter()
def timesince(dt, default="just now"):
"""
Returns string representing "time since" e.g.
3 days ago, 5 hours ago etc.
"""
now = datetime.datetime.utcnow()
diff = now - dt
periods = (
(diff.days / 365, "ye... |
031ef3667a7c4fa777f136d34e583261f4c47ad4 | 94ca2160fe1f60540c5da61d84d8c73e37262db8 | /12.py | 99e48cbad90704b3c399c35d87dd09b38dd3b9b1 | [] | no_license | AlejandroSotoCastro/adventofcode-2018 | 251093863f7572d9bf25f822cdf9f100d62b223e | 7f0b34ff134f555f7b403c6914cdaecfb938ca6a | refs/heads/master | 2020-09-24T19:12:52.485141 | 2019-12-07T14:08:51 | 2019-12-07T14:08:51 | 225,823,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,131 | py | 12.py |
f=open("6.txt","r")#abrir el documento y guardar linea a linea en una lista.
#f=open("6prueba.txt","r")
lista=f.readlines()
#separar coordenadas x y
for n in range(len(lista)):
lista[n]=lista[n].split(", ")
lista[n][0]=int(lista[n][0])
lista[n][1]=int(lista[n][1])
def mandis(a,b):
a[0]=(a[0])
a[1]=(a[1])
b[0... |
64ccf9abd75825e9044ffad6ccb8b3157577a2fd | 692927603a9a31443290b1f58e7fe89a4a7b8f59 | /tf_DSA/run_stream_batch16.py | be53d36f3e4984d4265a23a6731a3717020337c7 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | ChaoGaoUCR/FlexCNN | 12a110039071f96f04a39878e978605c6057d0f6 | 50438c58efd8b3a53ef422a180f410d9a7fdbe35 | refs/heads/master | 2023-08-22T21:15:51.746900 | 2021-10-07T18:05:04 | 2021-10-07T18:05:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52,253 | py | run_stream_batch16.py | import argparse
import logging
import sys
import time
import os
import os.path
import yappi
from tf_pose import common
import cv2
import numpy as np
from tf_pose.estimator import TfPoseEstimator, TfPoseEstimatorSacc, PoseEstimator
from tf_pose.networks import get_graph_path, model_wh
import unittest as ut # added by T... |
6369eb07c37231a245ba82f48004a210d0a88bba | ca22e34e15e4bef166adbb3376d89c4f841c9acf | /w5/numpy_hw/B1.py | e4bca1d160dec6aab7fff5bbd6d6d419c7fdb0ac | [] | no_license | alekseik1/coursera_statistical_mechanics | 599ee7252b7779123aa2e237a632aa894f00e470 | 6f001d41236230dfe15eef3e99d8185e6741031f | refs/heads/master | 2022-11-25T22:10:57.903326 | 2020-07-29T18:25:39 | 2020-07-29T18:25:39 | 198,106,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | B1.py | import numpy as np
import pylab
def rho_free(x, xp, beta):
return np.exp(-(x - xp) ** 2 / (2.0 * beta))/np.sqrt(2.0 * np.pi * beta)
def rho_harmonic_trotter(grid, beta):
xx, pp = np.meshgrid(grid, grid)
return rho_free(xx, pp, beta)*np.exp(-0.5 * beta * 0.5 * (xx ** 2 + pp ** 2))
x_max = 8
dx = 10**-1... |
b7baba680cfe52687d87b45eb9d05718e5233e65 | 9f9dad8cb09231db8baaab7bc1da8931b9136508 | /html_edit/main.py | 8d7cd39a9ad4e83e50bdc779770f702dc11752e7 | [] | no_license | alexmasterblack/python_pyqt5 | 71667d30cc6fabd14f2eb937c791c1a1ee55aa96 | 01704277059ee2a2295a113ecbf4e668b0bf5855 | refs/heads/master | 2022-10-05T13:32:20.634116 | 2020-06-10T03:31:37 | 2020-06-10T03:31:37 | 268,016,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | main.py | import sys
from PyQt5.QtWidgets import QApplication, QWidget, QMainWindow
import html
class HtmlEdit(QMainWindow, html.Ui_MainWindow):
def __init__(self):
super().__init__()
self.setupUi(self)
self.pushButton.clicked.connect(self.print_example)
self.pushButton_2.clicked.connect(sel... |
c6ee8f084791d6115e4dabe2c31d9f099eb858bb | aeb3c4b3547d37ea5194d88bdc54d8785b5675e6 | /ex3-6.py | 7b8b02983901ef1f58d215c3ac94979cae04c4c9 | [] | no_license | godz8008/tkinter_study | 85a425583d3ac6655f2fe26ac242522a6e22b74b | f6a6f8765379934e5b395b0b5fd4d0fba22e4d44 | refs/heads/master | 2020-08-05T15:01:17.868116 | 2019-10-09T14:50:53 | 2019-10-09T14:50:53 | 212,589,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | ex3-6.py | # 클래스 변수와 인스턴스 변수
# 인스턴스 변수 : 종업원의 이름, 종업원의 급여과 같이 각각의 인스턴스마다 가지고 있는
# 고유한 데이터
# 클래스 변수 : 같은 클래스로 만들어진 모든 인스턴스가 공유하는 데이터
class Employee:
empCount = 0
def __init__(self, name, salary):
self.name = name
self.salary = salary
Employee.empCount +=1
def empInfo(self):
... |
da32289c68494ad31a5cd05d93e9a4f49706cef0 | ac18b590019c593c538090c411d087d6dfb74c4d | /constants.py | c78ec76b0db66ba0bd6ee23e8232ed0afd48f52e | [
"Apache-2.0"
] | permissive | imyourmanzi/Assistant | 6ebd4750ee8f30a4ae6ae99846394637a8cae78a | cc9044632bc39099473d74c8f39464294878a043 | refs/heads/master | 2022-11-09T02:58:24.650268 | 2020-06-24T22:24:43 | 2020-06-24T22:24:43 | 133,552,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | constants.py | #### Matt Manzi
#### 2018-03-21
#### Constants for Assistant
KNOWLEDGE = "knowledge.json"
SKILLS = "sk"
EXIT_TASK = ".*(exit|quit|leave|goodbye).*"
## knowledge.json skill fields
DESC = "description"
NUM_PARAM = "params"
TYPE_PARAM = "paramType"
NUM_RET = "returns"
TYPE_RET = "returnType"
GRAMMAR ... |
2a88b14c193a29f30e706b86cc21468ed4b13e07 | 2603e3ae25fbe2188e209ba9278d20abb8e2a093 | /BRM.py | c40cd9e867af402ac31f5af1c01601b45fc8f29d | [] | no_license | SummittDweller/DrupalBRM | ae9c36238678654aba21b50792f0711db0b10e99 | ed2b5159d6db5190ddc57748d998c661eefced01 | refs/heads/master | 2021-07-16T11:56:09.817720 | 2017-10-17T21:38:49 | 2017-10-17T21:38:49 | 107,325,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,204 | py | BRM.py | #!/usr/bin/env python
"""
BRM.py - Drupal 8 Backup, Restore and Migrate Utility
Python2 script to automate Drupal 8 backup, restore and migrate operations.
Basic GUI with command-line option lifted from https://acaird.github.io/2016/02/07/simple-python-gui
source.
"""
import os.path
import argparse
import tkFileDi... |
214d2e29e1725f538099ea2e93a0687dc4695a9b | 9fc6736a1fb8e285c427f2d82a6e867f6c8e7489 | /blog/views.py | 97abaccaf6c77b454b9e17fd3be3ada9f20d150a | [] | no_license | JereChen11/myblog | b81b138cdbc037ca667a6a702ecdc0cbb54796af | 28533cc296469e1b13b8bb313f7243de77a0a85f | refs/heads/master | 2020-04-17T22:43:25.584442 | 2019-01-22T14:22:42 | 2019-01-22T14:22:42 | 167,005,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,357 | py | views.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import get_object_or_404, render, redirect
from django.http import HttpResponse, HttpResponseRedirect, JsonResponse
from blog.models import Blog, Comment
from blog.forms import CommentForm, BlogForm, SignupForm, LoginForm
from django.... |
554d6667b21d05fa9fa3745c2d2691ed627fb6fe | 05e5698d9c62f7ddc9661dc59bd0e7c7fc9bf07d | /reviewsapp/admin.py | 01fc621025778ecd74fc8343ed0b4c00bd4265a1 | [] | no_license | andresff50/ByteDist | f38d0078050299f19e9e302d15fbd90f6f1fe5d4 | 7ca19623a15e7b9cc553c31cdd1e8a36641489f5 | refs/heads/master | 2020-07-22T11:59:09.672995 | 2020-01-12T20:51:38 | 2020-01-12T20:51:38 | 207,194,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | admin.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
from .models import Review
# Register your models here.
class ReviewModelAdmin(admin.ModelAdmin):
list_display = ["title", "created_date", "published_date", "author", "c_view", "status"]
list_filter = ["created_dat... |
da8a7685c575639e29c850ebb842d0942641b365 | 36917709d7333f6d05a6e49ee2453dadb824d553 | /Minecraft/mc spaceinvader.py | 77aca40975d61cacf44a31ea9246dff3da690e4b | [] | no_license | dgausden7337/projects | 837f3ab40e2faffd5df2c2f5808a2e8fa5bdf2a2 | 0af133663c5113c462ebe5ffa8817a6510264226 | refs/heads/master | 2021-01-22T12:12:36.865252 | 2015-02-11T13:08:09 | 2015-02-11T13:08:09 | 27,712,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,005 | py | mc spaceinvader.py | import mcpi.minecraft as minecraft,time as t,random as r
mc = minecraft.Minecraft.create()
x,y,z = mc.player.getPos()
def Invader(x,y,z):#makes a space invader, not sure which part does which
mc.setBlocks(x-5,y,z+10,x+6,y+8,z+10,35,15)
mc.setBlocks(x-2,y+1,z+10,x+2,y+1,z+10,0)
mc.setBlocks(x-4,y,z,x-4,y+2... |
706f7f02bd35ee0d5901b84d1dd32c6a305c3297 | 6e2432bc5b6681e05c963f6999b9a15d9ce76f33 | /table.py | eb61b79a00c75d0ebf089e104f34d5d91a9a45f1 | [] | no_license | laurihy/nordic-startup-funding | c5a3c75fb04e63dd16570bec3b8cb70abc6cd55a | 33c877d0d02f078e69aa13192a4ebe9301c4b14b | refs/heads/master | 2020-06-08T01:14:49.768484 | 2015-03-17T08:05:53 | 2015-03-17T08:05:53 | 32,271,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,786 | py | table.py | import datetime
from copy import deepcopy
from collections import defaultdict
import pystache
import pprint
from jinja2 import Environment, FileSystemLoader
pretty = pprint.PrettyPrinter(indent=4).pprint
from data import DATA
def to_year(s):
try:
return datetime.datetime.strptime(s, '%Y-%m-%d').year
... |
294e4a96c7b5aaa427514f233884eb6f4572ffdd | c1ceb854b19d1541c637bc14d69ae2bc4e099b47 | /models/torch_model.py | 0f9d614b68869826f02c171af29749bbbc22124a | [
"MIT"
] | permissive | amari97/sfc-audio | 391d64dab548e17daf5bca781433e672083aafe9 | 7e919079f163696775cfae049cadcc5f33746c5e | refs/heads/master | 2023-07-25T06:52:07.106855 | 2021-09-08T06:26:46 | 2021-09-08T06:26:46 | 402,056,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,822 | py | torch_model.py | import torch
import torch.nn as nn
import torch.nn.functional as F
import pytorch_lightning as pl
from typing import List, Tuple, Dict
from torchmetrics import Accuracy, MetricCollection, Precision, Recall, ConfusionMatrix, F1
from argparse import ArgumentParser
import matplotlib.pyplot as plt
import torch.distributi... |
56541cace687c908c33498518e45deedc1abee21 | 22e0916927caf2c591a10b8ec0e580526c6e9ebb | /handlers/supposably.py | f6ff6da491b380ae3433204cf7c4fc1f9a5b54d6 | [] | no_license | uncanardnoir/mitybot | fe6f807f1eb0d52421c11490ebc5a7716742c15c | 5771909bc0633e1a8cfce6dc1f0cc08cc00a5ea5 | refs/heads/master | 2021-05-05T19:59:43.714964 | 2017-12-03T03:40:07 | 2017-12-03T03:40:07 | 103,889,846 | 2 | 1 | null | 2017-10-01T18:16:15 | 2017-09-18T04:05:10 | Python | UTF-8 | Python | false | false | 81 | py | supposably.py | class Supposably():
def handleCommand(self, command):
return "*supposedly"
|
115cefb815fc77a048db9f4ff42d1999cb25059d | 213b96bdb6da2d619b1e5d2e3e8dd961307ca1c4 | /DayCorpus_byTweets.py | 5ea699270d37f629d740ce15a8ba02e3fd68996b | [] | no_license | virashree/Topic-Modeling | 677509269be7cd02fdab004257a0d67daeba088f | a58fe180ba0d162de89f07ef25c1c7e6166bf2d0 | refs/heads/master | 2020-03-22T04:36:49.965123 | 2019-02-14T20:21:52 | 2019-02-14T20:21:52 | 139,509,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,294 | py | DayCorpus_byTweets.py | import gensim
import gensim.corpora as corpora
def iter_documents(top_file):
"""
Generator: iterate over all relevant documents, yielding one
document (=list of utf8 tokens) at a time.
"""
documents = [line.split() for line in open(top_file).read().splitlines()]
return documents
class TweetC... |
d0edec051d5aacd165d33f6885a6b1f81a17da2f | 5caa7ed74bce77f814eba76b3d39e9c261b7a87d | /bin/change_titles.py | 0163e37930fbf2b5d5c81d7f0cf188f1f6ed69d6 | [] | no_license | cider-load-test/imagedbproject | ce7af7803427e283195509246c684f4fa8c07a27 | af68035a08645aa7b74fa1eb42342d5f6b65166c | refs/heads/master | 2022-01-25T20:10:22.177647 | 2009-07-13T09:23:55 | 2009-07-13T09:23:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,533 | py | change_titles.py | # -*- coding: utf-8 -*-
"""
WARNING: Do not run this script without overriding the save method for Image!
"""
import sys, os
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/..')
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/../apps')
sys.path.append("/home/ciboe/lib")
os.environ['DJAN... |
3c12bfc7bf2065d4c10cbefecac9824d7ef3de89 | 5005265d72b1622a7c5dbcc091ff2c617eab1699 | /online_assessments/hackerrank/regex/negative-lookahead.py | c3da8bf5edcb9060c0fdebda32d00df90eced097 | [] | no_license | eclam/study_review | c5df4ec4b59da4c7b72c604984b616772f2b6f24 | 651d8fa9df27bc483b69427f4830b7e2e9c77a06 | refs/heads/main | 2023-07-17T18:14:14.866594 | 2021-09-04T03:01:09 | 2021-09-04T03:01:09 | 343,593,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | negative-lookahead.py | # Source: https://www.hackerrank.com/challenges/negative-lookahead/problem
import re
# Solution:
Regex_Pattern = r"(.)(?!\1)"
# Given Code:
print("Number of matches :", len(re.findall(Regex_Pattern, input())))
|
0f3c8c65f8bc30cd7ff128c15faeddb0bda67485 | e8203066784cff23b1313ab2556c7964f5cd4a9d | /data_scheduler.py | 8b0ccc42eb9a27da6e494b299cfc6e7bb06d41a6 | [] | no_license | lokke-me/phonebook | b0cd9d89941eaf62fc64e0f403da156e368e6a4a | 157c3518969cd892cb387b21a746efe1474a69c2 | refs/heads/master | 2020-03-27T05:35:45.292387 | 2018-08-31T18:11:39 | 2018-08-31T18:11:39 | 146,033,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | data_scheduler.py | import threading
import time
class Data_Scheduler(threading.Thread):
def __init__(self, ca, contact_list):
threading.Thread.__init__(self)
self.ca = ca
self.contact_list = contact_list
def run(self):
print("Run data thread")
while(True):
if self.ca.get_stat... |
714b47a3eb6b575d5e82dac5b155f52a57d09805 | dabf01c5f67d96953985fe31275ff10bad6e542d | /8383/Kormschikova/pr/7/main.py | 85282d46fad6d72965eed4e1292b5748bff420a7 | [] | no_license | thehighestmath/ANN-2021 | 82b4c5e4c889d291fb94cbed407abfbb9401e9d3 | 732a02e327595e987e771952ddbdcbe086c0cc53 | refs/heads/main | 2023-08-11T15:03:34.050840 | 2021-06-18T19:08:33 | 2021-06-18T19:08:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,070 | py | main.py |
from tensorflow.keras.models import Sequential
from tensorflow.keras import layers
import numpy as np
import random
import math
import matplotlib.pyplot as plt
def func(i):
i = i % 31
return ((i - 15) ** 2) / 100 - 4
def gen_sequence(seq_len=1000):
seq = [math.cos(i / 2) + func(i) + random.normalvariat... |
62bbc16b55efedbed8fefdbbfcaf57996bb44265 | a6a0618941dd95ce9ab63a270edab61cfd4c1f34 | /python-examples/jMultiDelimiter.py | 6ac85cb455796a56fb2ec80b0466eda43cffd88b | [] | no_license | jasokan/myplayground | 749c90b933fa76f0ea9baf1e57bed5f45ca87300 | 441a72a920aac6bec5c9ca104e32c71295ae4f99 | refs/heads/master | 2021-01-21T01:47:42.331654 | 2020-10-23T13:12:28 | 2020-10-23T13:12:28 | 4,063,634 | 0 | 0 | null | 2020-10-12T19:30:40 | 2012-04-18T12:49:54 | Java | UTF-8 | Python | false | false | 273 | py | jMultiDelimiter.py | #
# Created by Jagannathan Asokan
#
import re
jInputString = "Even if the string; contains multiple delimiters, python will * split ** the string properly!"
jSplitString = re.split(';|,|\\*|\n', jInputString)
for jIndString in jSplitString :
print(jIndString.strip())
|
91fb12cbe464a50742f89b005d006e368d5993e4 | ee6074aad7bef8b8279130fa561b6eb0a6e66b1e | /modules/lib/tools/awake.py | 1604d9842ead603ac2bcfcd10b33ee95e27ba135 | [
"MIT"
] | permissive | antiquefu/pycameresp | 23ca208c2a19d445d164fbdc25303d4be040f381 | d86814625a7cd2f7e5fa01b8e1652efc811cef3a | refs/heads/main | 2023-08-01T01:40:04.384937 | 2021-09-19T17:30:48 | 2021-09-19T17:30:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,510 | py | awake.py | # Distributed under MIT License
# Copyright (c) 2021 Remi BERTHOLET
""" Manage the battery """
from tools import jsonconfig, useful
import machine
import esp32
class AwakeConfig(jsonconfig.JsonConfig):
""" Awake configuration """
def __init__(self):
""" Constructor """
jsonconfig.JsonConfig.__init__(self)
# G... |
18869c247ae3521df472f428f4521537b61e8b32 | 0d86bb399a13152cd05e3ba5684e4cb22daeb247 | /python-basics/unit11-error/py113_encapsulate_built_in_functions.py | 98f83e9b8d826f5597be3de3e21886c7c367cdfe | [] | no_license | tazbingor/learning-python2.7 | abf73f59165e09fb19b5dc270b77324ea00b047e | f08c3bce60799df4f573169fcdb1a908dcb8810f | refs/heads/master | 2021-09-06T05:03:59.206563 | 2018-02-02T15:22:45 | 2018-02-02T15:22:45 | 108,609,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | py113_encapsulate_built_in_functions.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 17/12/28 下午11:26
# @Author : Aries
# @Site :
# @File : py113_encapsulate_built_in_functions.py
# @Software: PyCharm
'''
封装內建函数
'''
def safe_float(obj):
try:
retval = float(obj)
except ValueError:
retval = 'could not convert no... |
48b584c1c6c36f14dc372eeccdc3232beec1d298 | bfc34a1cf2a54a5e6e12eed161b528d66b7a0fc8 | /Operations.py | 7a68133a3d48e8be7f1082cc2850920c12f15a4a | [] | no_license | antoalv19/Python_for_Data_Science_and_ML | 45b4d543620e581cfa36030ec51c3955b2f96a7b | 7a896cdeab4728f6576ccf8f3a5d3621c5031719 | refs/heads/master | 2020-09-09T16:38:45.633692 | 2019-12-03T09:50:05 | 2019-12-03T09:50:05 | 221,498,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,439 | py | Operations.py | import pandas as pd
import numpy as np
# create DataFrame
df = pd.DataFrame({'col1': [1, 2, 3, 4], 'col2': [444, 555, 666, 444], 'col3': ['abc', 'def', 'ghi', 'xyz']})
df.head()
# Extract array of Unique Values - .unique()
df["col2"].unique()
# Count how many unique values are present - .nunique()
df["col2"].nunique... |
95d8c3ee67ee803f0012f3e1ce3ca582654172eb | e246d1a8d4efe385327c3aecb380d4e91445bd22 | /util/gvToNed.py | 97c41a0030cb98fd65c9c313846adfc01465fd8d | [] | no_license | dtu-ese/ptp_multidomain | 3debab70454dddc3bb2506c47009f307a8149fee | 46aa2d92d8608637720ff009843b93e78ef126ec | refs/heads/master | 2023-02-04T17:32:18.187516 | 2021-01-02T14:45:22 | 2021-01-02T14:45:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,341 | py | gvToNed.py | #!/usr/bin/python
import pygraphviz as pgv
def print_help():
h = """Usage:
./gvToNed <filename.gv> <switch prefix> <master nodes>
All nodes that don't match the switch prefix and are not included in the master node list will be converted to a slave node
Example:
./gvToNe... |
86cd1d66bdf476c0e2a3f85e5e98012e22116365 | 6d5312a5a8bc451fae67baa13bc56367e4d1cd8b | /demo/karate/urls.py | c63747afe82c39ba534d819b9a58ecb08e39a152 | [
"MIT"
] | permissive | dakrauth/django-swingtime | 1efbe3cdc205e81a258d670dbd4671b07a7a5f73 | e32fba3f8eecfc291201b21776b9f130e152c1c3 | refs/heads/main | 2023-08-11T07:31:27.006287 | 2021-12-23T16:36:02 | 2021-12-23T16:37:38 | 95,863 | 212 | 71 | MIT | 2021-12-23T16:51:23 | 2008-12-23T16:49:14 | Python | UTF-8 | Python | false | false | 358 | py | urls.py | from django.conf.urls import url, include
from django.views.generic import TemplateView
from karate import views
urlpatterns = [
url(r'^$', TemplateView.as_view(template_name='karate.html'), name='karate-home'),
url(r'^swingtime/events/type/([^/]+)/$', views.event_type, name='karate-event'),
url(r'^swingt... |
6a9683884633f951c364313a41fdc892ec01fdea | 059ced0d3ced5f5a3193f6f60aa7d3ed62e2e8f0 | /NameGenerator.py | d06fdcbfba95e4177f81a0fb053678a57ae35d25 | [] | no_license | zsm767/auto-character | cff8b7c66b6939178b1fdd791230b56294085273 | 77a90b2a425e0959df7072c5641e8c5403f0e1e5 | refs/heads/master | 2020-08-23T16:01:23.566651 | 2019-11-12T04:27:31 | 2019-11-12T04:27:31 | 216,657,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,426 | py | NameGenerator.py | from random import *
class NameGenerator:
rFlag = 'G'
generic_firstnames = ['Greg','Samuel','Mark','Tom','Timothy',
'Harold','John','Todd','Ken','Craig',]
generic_lastnames = ['Johnson','Wordsworth','Frank','Doe','Smith'
,'Appleton','Smallpox','Wilson','Long','Short',]
# specific dicts (maybe can just use l... |
b3ac72cfb5b696740ec6d3e341a73318a9363384 | 6683d36cacbc152c7d11d75a5e02ba8e293ba1cd | /wvrpwv/skydip.py | f93a628fb40cf474a4322afb3a7def328dd06579 | [] | no_license | dbarkats/WVR_Omnisys | 9e3682dcc632a0cb0603164c16b8da13de968a2a | 7a51deff900b082dfb56c3516699b0f35e17a7df | refs/heads/master | 2020-04-02T05:10:14.208938 | 2018-12-14T10:40:47 | 2018-12-14T10:40:47 | 154,055,878 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,781 | py | skydip.py | #! /usr/bin/env python
import argparse
import numpy as np
import matplotlib.pyplot as pl
import wvrlib
import am
''' Compare a radiometer sky dip to a radiosonde measurement '''
def getargs():
parser = argparse.ArgumentParser()
parser.add_argument('--amc_path',default='SPole_winter.amc',help='AM input template')... |
d9d7321c173997686c659b0bf7c97c36810f18e1 | 55c6e041e1fa8cfd6eeadf755ef83f45f4985758 | /ta | 8cbf20cda4e1691516a5d808e1ccd9961cbfb659 | [
"MIT"
] | permissive | coleifer/dot-theme | 3303030dc7ec535a4e0790c27bc620edcbb84020 | c8c97090672ccafcb696dd8b2fc8867260969a34 | refs/heads/master | 2021-01-13T05:13:27.892622 | 2017-02-08T01:42:19 | 2017-02-08T01:42:19 | 81,273,785 | 37 | 2 | null | null | null | null | UTF-8 | Python | false | false | 31,309 | ta | #!/usr/bin/env python
from collections import deque
import colorsys
import copy
import logging
import optparse
import os
import pipes
import platform
import random
import re
import shutil
import sys
import yaml
from jinja2 import Environment, FileSystemLoader
from PIL import Image
logger = logging.getLogger(__name_... |