blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
42e99f70b0ad4495147103dba81d2f105c763b54 | b4c73571a684bce96b73880eca579151c464378c | /imooc_auto_py_ops/install_python.py | 86061e01a9948a7c372e4febf3c4eb5635f783a8 | [
"MIT"
] | permissive | MingGeng/linux_devops_lou_plus | 31ff2498a4147501f6e012e1eb7c660dee04bf05 | 86163625f1222b322378a7f1f8aaa9c70e466bcf | refs/heads/master | 2020-03-23T12:10:20.477221 | 2018-07-27T08:27:39 | 2018-07-27T08:27:39 | 141,541,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,179 | py |
#coding=utf-8
import os, sys
if os.getuid() == 0:
pass
else:
print 'Current use is not root, please use root to make me work!'
sys.exit(1)
version = raw_input('Please input which python version you\'d like to install(2.7/3.5)')
if version == '2.7':
url = 'http://www.python.org/ftp/python/2.7.1... | [
"gengming8859@icloud.com"
] | gengming8859@icloud.com |
a2c3e24c66c1f2c18a567a2ceb87e2a385834949 | b71a4e85381a4760f96cd0f13b067575682caeee | /test27.py | a7310de13d0619e4271d026f677f1ee1050969d7 | [] | no_license | akshaynarla/counting-people | 87b1f9f4347e1e1372ae0aad1c848eedf6a94bf8 | db2c062840b60260c95e07eaf412fe52c26ff57f | refs/heads/master | 2020-03-22T09:02:00.776404 | 2018-07-05T07:35:00 | 2018-07-05T07:35:00 | 139,809,481 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,203 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jul 4 16:19:10 2018
@author: Akshay Narla
Working well with little error. Can't be tweaked by the user himself.
The Person program can be copied here or be imported according to the requirement.
"""
import datetime
import numpy as np
import cv2 as cv
import Per... | [
"noreply@github.com"
] | noreply@github.com |
9152890bb09ac6a8bd14695f2de073da1e07dba0 | 780c9b6b337835ab9343efb4ee9f3d991590acfb | /pdfstream/cli.py | 94277a45efd25d6acd786225733d1200578fed5f | [
"BSD-3-Clause"
] | permissive | digitalarche/PDFstream | 2ac02e44fd75f2ed70d04660ad073e296410b660 | 49762ebe33664419c75ba1760dad63ede03a6945 | refs/heads/master | 2023-01-24T02:57:44.927269 | 2020-12-08T18:48:13 | 2020-12-08T18:48:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,553 | py | """The functions used in the command line interface. The input and output are all files."""
import typing as tp
from concurrent.futures import ProcessPoolExecutor, ThreadPoolExecutor, as_completed
from pathlib import Path, PurePath
import matplotlib.pyplot as plt
import numpy as np
from matplotlib.axes import Axes
im... | [
"st3107@columbia.edu"
] | st3107@columbia.edu |
74f392ca003ab2b690964c0a78360c214d2dd64a | 506adfb65627e1ac8dc65bdd18ae0f4318d5e3cd | /docs/subinterpreters/how-many-interpreters.py | 39969664f720d2fce3773016bb5d70d3a1d5db3e | [
"MIT"
] | permissive | winpython/winpython_afterdoc | d6d9557c12bc6cbf615b3d85ba02df7b794ea1f6 | 7e417462c243f9aaa11c2537249bd88355efd1c5 | refs/heads/master | 2023-06-27T22:55:23.430067 | 2023-06-11T09:57:31 | 2023-06-11T09:57:31 | 23,197,567 | 16 | 10 | MIT | 2023-08-20T11:43:58 | 2014-08-21T18:06:42 | null | UTF-8 | Python | false | false | 4,193 | py | from collections import namedtuple
import subprocess
import time
import _xxsubinterpreters as _interpreters
import interpreters
def iter_counter(maxi=1000):
for i in range(1, maxi+1):
text = '.'
if i % 100 == 0:
text += '\n'
elif i % 20 == 0:
text += ' '
e... | [
"stonebig34@gmail.com"
] | stonebig34@gmail.com |
3ec8bae83376987c2032a70b67c51187f9257119 | 6111cea4b2f31aa66537d826328d8602ab233208 | /MarketMatch/DynamoDB/queries/write_table_bids2.py | eaba0cd2785892b9ab2336fbc479ded68e2abd21 | [] | no_license | es123/dataEngineeringCourse | 7ee4c76c97183c655d11dd32976d4c18d3ffa886 | 887aedade4a436ad3dda76df621cdf2805175708 | refs/heads/main | 2023-08-11T18:51:30.442884 | 2021-10-03T21:08:47 | 2021-10-03T21:08:47 | 411,796,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | # import modules
import boto3
import datetime
# Generating a resources from the default session
dynamodb = boto3.resource('dynamodb')
def insert_data():
"""
This function inserts data in dynamodb table
Returns
-------
Dictionary
Response Dictionary
"""
table = dynamodb.Table('b... | [
"noreply@github.com"
] | noreply@github.com |
b24bcca2774237ec1d6a5ac1e08ddbe8e4ca2ba8 | 1d63526c78a6978ba7e6100e300ba4dd986f5ede | /ball.py | 46fd15b8c65a7ac2c2b25f93f79c3d8f07211987 | [] | no_license | burhansaydin/PongGame | 5687f481336cfb7ea0d034438e4710fd3ec12b50 | 3594df4357798bb5435eb86fdd785babedb3ff21 | refs/heads/master | 2023-01-23T18:10:59.245603 | 2020-12-03T00:24:08 | 2020-12-03T00:24:08 | 317,926,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | from turtle import Turtle
class Ball(Turtle):
def __init__(self):
super().__init__()
self.pu()
self.shape("circle")
self.color("white")
self.goto(0, 0)
self.x_move = 10
self.y_move = 10
self.move_speed = 0.1
def move(self):
self.new_x = ... | [
"burhasaydin@gmail.com"
] | burhasaydin@gmail.com |
e5ed10d854733987704ac399e1f9cbf2a32431db | 6176d1d4d606cfb661dc0038d5e2843ccdbbbcae | /tf2/model_main_tf2.py | 059ab8fb102b69f0eed6adb4121675469ed5a9e3 | [
"MIT"
] | permissive | davsuaqui/waymo-detection-optimization | 84d5974efb6ce4c8faac8d5e9898751354d5b942 | 14a7d72dd62d1d843b9e7ebe5821daf55415c40d | refs/heads/master | 2022-12-23T11:50:48.411291 | 2020-09-24T11:16:38 | 2020-09-24T11:16:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,586 | py | # Lint as: python3
# Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | [
"manuelcarranza96@gmail.com"
] | manuelcarranza96@gmail.com |
eb63dadb45aa206de6094374d3b9069641762df3 | 7cfdebdd4cdf1f094901c6515c5778942741a385 | /shufa.py | ff6395630918581f722bac7048f410f0b8c2c6ee | [] | no_license | 240129745/shufa | 82024c7bcb0de0448736034126e8df45122dbcd8 | 4189e840336a0d649b4c0cd55e7bc5a7fc8cb7d3 | refs/heads/master | 2023-04-29T17:57:20.925536 | 2023-04-26T14:16:28 | 2023-04-26T14:16:28 | 108,115,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,121 | py | #!/usr/bin/env python
#
# @Version : 1.0
# @Time : 17-10-24
# @Author : su
from __future__ import unicode_literals
import requests
from bs4 import BeautifulSoup
import os
import time
import lxml
import codecs
import sys
import chardet
import urllib
url="http://www.9610.com/Index1.htm"
home="http://www.9610.c... | [
"240129745@qq.com"
] | 240129745@qq.com |
c95d568f0acd0f0a8b5fea343404d92ea197e98f | 8e85720e1604806c33e1c5a04b72b04f5a3dcf18 | /cGANScene.py | c4162e69703395c3190bf00e2eb68583a1465fd1 | [] | no_license | zhsuiy/Python-cGAN-Scene | dc1471ae346771cc9fc772d74ba2cae7428fabc9 | ac774849f474dac5bb5010c1dd0ecc98a0685e17 | refs/heads/master | 2020-04-12T02:38:56.895760 | 2019-01-06T13:19:48 | 2019-01-06T13:19:48 | 162,249,014 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,916 | py | import utils
import torch, time, os
import numpy as np
import torch.nn as nn
import torch.optim as optim
from utils import normal_init, export_features, convert2softmax, convert2gumbelsoftmax, filter_types
import torch.nn.functional as F
import metric
from metric import calculate_dist_distance, calculate_mse_prob_dim
f... | [
"zhsuiy@gmail.com"
] | zhsuiy@gmail.com |
8c1cd40997a3f5a161e895c198028f4813eb71e1 | f54e2c047608601b9e45698be1267e238352ac1a | /day07/part1.py | 8e956178228275e93798a6403db3adae7085b626 | [] | no_license | wboler05/AdventOfCode2020 | 9eaba9f770b7a5dc7ba9ee644a1a1c0902b9b8b6 | 8dd5733bd93932182be6d633dcd7d976e0ea08d6 | refs/heads/master | 2023-02-07T20:40:05.278402 | 2020-12-27T17:50:33 | 2020-12-27T17:50:33 | 318,836,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,335 | py | #!/usr/bin/env python3
import argparse, os, sys
import re
def extract_color_rules(rule_list):
# Return object
bag_color_rules_dict = dict()
inner_to_outer_dict = dict()
# regex patterns
first_pattern = "^(?:\s*)(?P<outer_bag_color>[\w ]+) bag(?:s?) contain (?P<bag_rule_list>[\d\w, ]+) bag(?:s?).$"
secon... | [
"wmboler@sei.cmu.edu"
] | wmboler@sei.cmu.edu |
fdf972c73468d078f4115543fa368860ec83f055 | 112e8c815ed34eda629ccf206cf9a2b0e72281f7 | /1_inputs.py | dcceedf0fac7c5b555588a4d9a4b15397a60b08e | [] | no_license | tches-co/Signal_anomaly | f8b936bf8ddcc176b3a94e18c0a687ad5e7e01cb | 41feee195c152d1743d4aa2128fc46f83e842109 | refs/heads/master | 2023-04-04T16:53:51.748369 | 2021-03-28T22:38:09 | 2021-03-28T22:38:09 | 328,049,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,422 | py | import nupic
import csv
import matplotlib.pyplot as plt
from datetime import datetime as dt
from nupic.encoders.date import DateEncoder
from nupic.encoders.random_distributed_scalar import RandomDistributedScalarEncoder
from nupic.encoders.date import DateEncoder
from nupic.algorithms.spatial_pooler import SpatialPoole... | [
"franapolinario@hotmail.com"
] | franapolinario@hotmail.com |
c2e9689185cd3f99c10b849c7b20358cb9414e59 | 1553d454cecac1c93d3867611b49614d23d9e6eb | /ComplexType.py | 4139d9772d33fd53f0bcc58c20974a434102a6f1 | [] | no_license | apoloa/ParseEFacturaXSDToDjango | c31949b619c4f5d6e9855da9a40e4e65b7f7de71 | ec42375c94882c489a02070afe48a223b153a205 | refs/heads/master | 2021-06-03T03:47:47.359791 | 2016-01-05T00:38:04 | 2016-01-05T00:38:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,427 | py | class ComplexElement(object):
__slots__ = ['__name', '__annotation', '__type_name', '__type']
def __init__(self, name, type_name, type):
self.__name = name
self.__annotation = None
self.__type_name = type_name
self.__type = type
def set_annotation(self, annotation):
... | [
"a.whole.dev@gmail.com"
] | a.whole.dev@gmail.com |
0836b33f5f3da54670f1a86347f2acf92d6d3138 | 5345cc368ac108776188118d417a8aff8604ec0c | /tests/test_urls.py | 12dece4a134cc774315791b98b7761fe1d70118c | [
"MIT"
] | permissive | hochshi/wagtailstreamforms | 7229097390c34dd100d812a35d7d74b0092479f7 | 8be02c5606d87d0e7f4f648866c36290207163a8 | refs/heads/3-dev | 2020-04-14T17:49:10.846230 | 2019-06-11T08:25:27 | 2019-06-11T08:25:27 | 163,995,051 | 1 | 0 | MIT | 2019-06-11T08:25:28 | 2019-01-03T16:10:34 | Python | UTF-8 | Python | false | false | 635 | py | from django.test import override_settings
from wagtailstreamforms.urls import urlpatterns
from .test_case import AppTestCase
class UrlsTests(AppTestCase):
@override_settings(WAGTAILSTREAMFORMS_ADVANCED_SETTINGS_MODEL=None)
def test_no_advanced_url_when_no_setting(self):
self.reload_module('wagtails... | [
"stuart.bigmassa@gmail.com"
] | stuart.bigmassa@gmail.com |
e5a4834b04a45351ce57f52275a9d6ba7eaa63af | 96b03f66f55b2f733f3da5defbd5b37d2a02bc8a | /modules/calc0_350.py | f02eba029bb9806630f8e15fdc93ad873d0ee209 | [] | no_license | th3fall3n0n3/my_first_calc_extended | 641e66119c2b7055ea47a55ebd3559077394fc90 | c2c0dfe50ebc59ea20bb595db50ef63d603d54af | refs/heads/master | 2016-09-13T18:08:15.841173 | 2016-05-14T15:18:08 | 2016-05-14T15:18:08 | 58,811,146 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840,120 | py | def calc(num1, sign, num2):
if num1 == 0 and sign == '+' and num2 == 350:
print('0+350 = 350')
if num1 == 0 and sign == '+' and num2 == 351:
print('0+351 = 351')
if num1 == 0 and sign == '+' and num2 == 352:
print('0+352 = 352')
if num1 == 0 and sign == '+' and num2 == 353:
... | [
"ivan.tarasenko@oracle.com"
] | ivan.tarasenko@oracle.com |
d43a8a9fc558ed571fa538b9ff2841723094c3b0 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02619/s113905896.py | 6dadd23fdafee5941bbaaa86c3b4b72b68285077 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | D = int(input())
c = list(map(int, input().split()))
s = [list(map(int, input().split())) for i in range(D)]
t = [0]*D
for i in range(D):
t[i] =int(input())
m=[0]*D
last_day=[0]*26
a=[[0 for i in range(26)] for j in range(D)]
for u in range(D):
i=t[u]
for y in range(u,D):
a[y][i-1]=u+1
if u==0:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5d46bff071ef5a1ce4ca4d89531b9d05970e32b8 | a7a3711cff9ddcf13527af8cb3c479e34bd670b2 | /python/replaceBlogcode.py | 888c674e185d31d6d6e41a7b2bd623e9a35c27f3 | [] | no_license | HaLucina/ResultOfStudying | 2b32dd1d35dbc6fa78d4b1b6874139c47cfafe8f | f792403c3bbd1324dee26a19e775715172f02c6e | refs/heads/master | 2022-09-11T11:10:32.323758 | 2022-08-23T17:45:02 | 2022-08-23T17:45:02 | 244,441,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,068 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from pathlib import Path
import glob
import re
import pprint
import os, sys
import fileinput
#https://note.nkmk.me/python-str-extract/
def convert_blogCard(args):
try:
url = re.findall(r'"(.*)"', args)
syortCode = "{{< blogcard url=" + url[0] + " >}}... | [
"25haruhiro@gmail.com"
] | 25haruhiro@gmail.com |
63374e5d7a6a8381cf577a768468addcb79ebd09 | dd5e3c2724b147fd00e0bf01bc99e0795b868280 | /Latest_Totals.py | 6f771f067c7bff476927ab75fd96ef9aa57aa19c | [] | no_license | facilius-natans/covid_in_ontario | 743341b7fcd806dc7e4bf8362cd7b3e0738f1403 | 5e4736111c6cc3e1ffda00eb46d4ba5f987a8064 | refs/heads/master | 2022-04-15T05:03:31.698222 | 2020-04-12T21:16:44 | 2020-04-12T21:16:44 | 255,153,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
df = pd.read_csv('Ontario_Totals.csv')
_= sns.swarmplot(x='Category', y='Numbers', hue='Date', data=df)
plt.title('Ontario COVID-19 cases in April 2020')
plt.show()
| [
"facilius.natans@gmail.com"
] | facilius.natans@gmail.com |
51ae513a578f0af4238906567a7cb563db025bdf | eacfc1c0b2acd991ec2cc7021664d8e79c9e58f6 | /ccpnmr2.4/python/memops/format/compatibility/upgrade/v_2_0_a2/MapInfo.py | 11d26959c317d12157faf0f47296151d5c8dd1a2 | [] | no_license | edbrooksbank/ccpnmr2.4 | cfecb0896dcf8978d796e6327f7e05a3f233a921 | f279ca9bb2d972b1ce075dad5fcc16e6f4a9496c | refs/heads/master | 2021-06-30T22:29:44.043951 | 2019-03-20T15:01:09 | 2019-03-20T15:01:09 | 176,757,815 | 0 | 1 | null | 2020-07-24T14:40:26 | 2019-03-20T14:59:23 | HTML | UTF-8 | Python | false | false | 104,102 | py |
# Packages, classElements and AbstractDataTypes skipped in new model
# (prefix, typeName, elemName, newGuid, elemType)
skipElements = [
('ACCO', 'AccessControlStore', 'permissions', 'www.ccpn.ac.uk_Fogh_2006-09-04-17:21:38_00005', 'MetaRole'),
('ACCO', 'Permission', 'accessControlStore', 'www.ccpn.ac.uk_Fogh_2006-0... | [
"ejb66@le.ac.uk"
] | ejb66@le.ac.uk |
ca52ee5d2ffb70107c08ecbe75527354a5414545 | 60dbe696c8fec9f11b1fc1334474ec80f11d9137 | /amigagfx.py | 871e1f3d5027566dadd633aa424a54a1fe187312 | [
"MIT"
] | permissive | rvalles/amigagfxmangle | a57cdf261e3e1a2719aeb42241269702eb621db0 | 8a3dbdd366175ebaca8f261e4a411e059f306b01 | refs/heads/master | 2020-12-10T13:44:16.300163 | 2020-10-18T06:42:20 | 2020-10-18T06:42:20 | 233,610,848 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,118 | py | import random
import pygame
HAM_SET = 0
HAM_MODIFY_RED = 2
HAM_MODIFY_GREEN = 3
HAM_MODIFY_BLUE = 1
def getrow(surface, posy, width):
for posx in range(0, width):
yield surface.get_at((posx, posy))
#draw stuff
def draw1bitrow(surface, posy, pixels):
posx=0
for c in pixels:
surface.set_at((posx,posy),(c*25... | [
"vallesroc@gmail.com"
] | vallesroc@gmail.com |
b3ca9c9e652250db0ee81afa87b085bc8e8b0847 | 39a33d2669aeb0d6a402a63e6dbda2139596522d | /eve/service/svc_quote.py | c584d3845acf83a09746a01ef523db20f6dccd9f | [] | no_license | andreyshtamburg/yt-eve | 29b88d422d0cc24d1ca776f6544a77b9b3431534 | 187ea7c46cc6fd3c016544786fe52e02cf786fac | refs/heads/master | 2023-04-12T13:40:30.059289 | 2021-04-27T20:24:39 | 2021-04-27T20:24:39 | 347,607,988 | 0 | 0 | null | 2021-04-27T20:24:40 | 2021-03-14T10:40:08 | null | UTF-8 | Python | false | false | 520 | py | import random
from textwrap import shorten, wrap
from quote import quote
from eve.config import QU_SEARCH
class Quote:
def __init__(self):
self.default_search = QU_SEARCH
def random(self, search):
results = quote(search or self.default_search)
if not results:
return ""
... | [
"andrewshtamburg@gmail.com"
] | andrewshtamburg@gmail.com |
817980f8edee971f9449e9e7b7cf478f78ee386a | 14d1bbfb47498ccb46bbd08e259028e96cbb58a0 | /TIC TAC GAME.py | 11a3aac5a02190fdd421a7ccd236ef402df9fcdc | [] | no_license | thinkabovelimit/TIC-TAC-GAME | f41b992a61c1e26d8cd24b69d5db8295f685d5e3 | 06a34fd0be4ea0404cc3aeaece5baee324c5e8e2 | refs/heads/master | 2020-03-22T13:21:53.285472 | 2018-07-09T16:00:15 | 2018-07-09T16:00:15 | 140,102,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,175 | py | import random
def display_board(board):
print (board[7]+"|"+" "+board[8]+"|"+" "+"|"+board[9]+"|")
print("_______________________________________________________")
print (board[4]+"|"+" "+board[5]+"|"+" "+"|"+board[6]+"|")
print("__________________________________________________... | [
"noreply@github.com"
] | noreply@github.com |
5425823e7b34037be0fec529e81986b3d69dcc78 | 4232d34159f4a8539374658947a5c70489755496 | /homebrew_temp_check.py | fb2248c442e86a1942256bd128b995d71930bfd1 | [] | no_license | hectorzambrano/tilt-messaging | 04a566566b64c1136f35008a8650dd00343620f5 | 8bfbf623ba6112b8a86c98e43a60fd2a6a3b5352 | refs/heads/main | 2023-05-05T22:23:22.806524 | 2021-05-25T19:38:54 | 2021-05-25T19:38:54 | 368,947,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,244 | py | #!usr/bin/#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Homebrew Temperature Messaging Service
Checks temperature data from a Tilt Wireless Hydrometer during fermentation and
sends a text message to the user to alert of temperature fluctuations.
Hector A Zambrano
May 2021
"""
__author__ = 'Hector... | [
"noreply@github.com"
] | noreply@github.com |
5d5848864d9da2797faaae41ecd622b56c4bc6d2 | f3d972693c7bed0cda70f071cc125a33be381f09 | /fass/information/time/__init__.py | da96f82b672e8c6fc6c38695a6de1f2c49c59bb2 | [] | no_license | gfdgd-xi/fetch-and-setting-system | 7b59736c9e6f5d6c817174b3bcdf4d45020a9436 | 2d6226d9851dbf875b509018032ad7166e203b26 | refs/heads/master | 2023-06-22T09:10:38.636250 | 2021-07-10T04:51:19 | 2021-07-10T04:51:19 | 383,723,656 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,218 | py | import time
import datetime
import calendar
def FormatTime()->"返回已经格式化后的时间":
return datetime.now()
def YearMini()->"返回年份的后两位(0~99),如21":
return datetime.datetime.now().strftime("%y")
def YearFull()->"返回年份(0~9999),如2021":
return datetime.datetime.now().strftime("%Y")
def Month()->"返回月份(1~12),如7":
ret... | [
"3025613752@qq.com"
] | 3025613752@qq.com |
d43bfb716aaca428a272e4e9742f68805ee67b52 | 2bb71d210c6d47a3085295ed8bcbfe683ea72b1c | /machine_learning/tensorflow/python/tb.py | c4302a453e3e8ff7ed29a9baf90ffaecbf546b23 | [] | no_license | unixrh/cs_notes | e2659f4e6dde39f6eb9ceb0b3ebf331351719380 | f62790b9d397f6c1766ad5494d6e9af295a0cf13 | refs/heads/master | 2021-07-14T15:05:58.884680 | 2020-07-03T09:41:44 | 2020-07-03T09:41:44 | 178,667,688 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | i)mport tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
import numpy as np
import matplotlib.pyplot as plt
with session.Session(graph=ops.Graph()) as sess:
with gfile.GFile(model_dir, "rb") as f:
graph_def = graph_pb2.GraphDef()
graph_def.ParseFromString(f.read())
importer.import_graph_def(gr... | [
"huangxr09@qq.com"
] | huangxr09@qq.com |
469b730200370459f9c9e3ebf84a3dd19c0a4e13 | ac85a9ee581689c8bbc44216a8bf9042a4017d7a | /FinalExercicesActual.py | bdc987edbca131800a69c5fb8f669f9fb20cca34 | [] | no_license | PeterDeNardo/Physics_classes | 811706ded571ac0e60aca2e2c3246b92824c1cee | 8efa2929a6a949900b8647fcca258132e59b5fee | refs/heads/master | 2020-03-30T23:15:02.640955 | 2018-12-07T23:13:37 | 2018-12-07T23:13:37 | 151,695,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,152 | py | from vpython import *
a2 = 0.0
earth = sphere(radius = 0.9, pos = vector(0, 0, 3.4),
texture=textures.earth, make_trail = True)
moon = sphere(radius = 0.3, pos = vector(0, 0, 3.4),
texture=textures.metal, make_trail = True)
sun = sphere(radius = 9, pos = vector(100, 0, 3.4),
... | [
"noreply@github.com"
] | noreply@github.com |
d197a415a8e1cd515d969c38730c83f542639da6 | 5b3c979289f38562714ceacf0fddd295a41f6820 | /decision_tree_for_hems_recommendations/app.py | 1b3b89496cc59fa4c9dcf70077111a2ed6d07a6a | [] | no_license | momotaro98/Decision_Tree_for_HEMS_Recommendations | a03bd1bb800b75277b73fcfcee31dbcdfe391144 | aac7b8c6981fa38f65bf24c7834478146fa81551 | refs/heads/master | 2020-06-10T16:50:18.642106 | 2016-12-15T12:09:20 | 2016-12-15T12:09:20 | 75,930,731 | 0 | 0 | null | 2016-12-15T12:09:20 | 2016-12-08T11:14:32 | Python | UTF-8 | Python | false | false | 14,663 | py | # coding: utf-8
'''
1. Building Decision Tree (DT) Model from past Tenki and HEMS data
1. [X] Make Decision Table
* [X] SettingTemp
* [X] TotalUsage
* [X] ChangeUsage
2. [X] Make Decision Tree
2. Decide to deliver the contents using the DT Model and the today's Tenki data
1. [X] Get the today's Tenk... | [
"ikenshirogivenup98@gmail.com"
] | ikenshirogivenup98@gmail.com |
a8121e6892dab211c2fe8bfca88f785422cdcd01 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/F/fR0DDY/sgu.py | f370b4d7d6c8be2e2b5d2ae168e594033b24f4f4 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,600 | py | import urllib
import urllib2
from BeautifulSoup import BeautifulSoup
import re
import scraperwiki
url = "http://acm.sgu.ru/teaminfo.php"
data = {}
scraped_results = []
for i in range(20812,20814):
data ['id'] = str ('%(ids)06d' % {"ids" : i})
print data
data_encoded = urllib.urlencode(data)
request =... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
86a3b4792f62109587dfae1f5cc14b686b6159d8 | b501b51895b1b8d9ef0459e9121840f2bebcd1a8 | /VoxML Annotator v0.3.3/starter.py | 9f67b5e9a4e8b10c4025bd7c0ce0c0517ab49b92 | [] | no_license | Carachias/VoxML-Annotator | de11c7280a8eb76e8b3fdeb3618a5c81e0f8e66a | c037a9de7df4d2284ba776af9976f5225ddf794f | refs/heads/master | 2023-04-22T19:53:58.182343 | 2021-04-19T17:16:50 | 2021-04-19T17:16:50 | 359,537,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | import enttypeselector
enttypeselector.main()
input('Press ENTER to exit')
| [
"carachias@gmail.com"
] | carachias@gmail.com |
165112b12bc23ae4df53b7e58c24827ef723633a | 5ec0be2eb87ecc82f12a4e1059d29a41c89c573c | /MuZero/implementations/DefaultMuZero.py | d07060f8e35787dc3a46802e75870751d932131b | [
"MIT"
] | permissive | frankbryce/muzero | 98eec75788d8b89fca841f7b76e9a8b082656a58 | 78478c6a8a0f0e0e740159236d6cbb30a9396f5a | refs/heads/master | 2023-07-09T17:16:39.364751 | 2021-04-03T23:54:41 | 2021-04-03T23:54:41 | 350,913,014 | 1 | 0 | MIT | 2021-03-28T03:33:07 | 2021-03-24T01:47:43 | Jupyter Notebook | UTF-8 | Python | false | false | 7,987 | py | """
Defines a generic implementation of MuZeroNeuralNet to handle data for training, and performing standard inference.
This class should be able to handle most MuZero neural network implementations on most environment.
Notes:
- Base implementation done 15/11/2020
- Documentation 16/11/2020
"""
import numpy as np... | [
"joery-de-vries@hotmail.com"
] | joery-de-vries@hotmail.com |
22706d1f1c4ce667d606c0c783b18f3e11e08b0f | 2cb8ebed34ec8c9f92fb60b2a718fa2a0e49cf86 | /devel/lib/python2.7/dist-packages/motors/msg/_MotorCommands.py | b1131918c3d0d3faccc0d415094da42c89c3fe32 | [] | no_license | kckent34/quad_ws | b57942f0ce77726ce2156554d397003636e088e9 | 0cc08b0d7122a231d50d8ea6b0ce3ee20d8cc589 | refs/heads/master | 2020-04-06T07:10:23.545810 | 2016-09-01T15:31:41 | 2016-09-01T15:31:41 | 61,819,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,701 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from motors/MotorCommands.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class MotorCommands(genpy.Message):
_md5sum = "1beedc517f24add1c43f0ef95fdcfac7"
_type = "mo... | [
"kckent34@yahoo.com"
] | kckent34@yahoo.com |
6d88b58232d495ec871d4233ed7cfceeaf0499ad | 36dd7aa322759d2695f36218b06181dea8cd5e45 | /chat/admin.py | 874c875f2c8522dfe9d8aa000de087d33df21edf | [] | no_license | saikiran789/chat-application | 71a616d6de3be0a9a92267fac12411ac4ee16586 | bf0a1b1c09b18dbf359f2be3fa12c5f9a87dfa74 | refs/heads/master | 2020-03-24T06:38:48.726674 | 2018-07-30T06:23:58 | 2018-07-30T06:23:58 | 142,535,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | from django.contrib import admin
from .models import Room
from .models import OnlineUsers
admin.site.register(
Room,
list_display=["id", "title", "staff_only"],
list_display_links=["id", "title"],
)
admin.site.register(
OnlineUsers,
list_display=["id", "title", "user"],
list_display_links=[... | [
"prince.sai2020@gmail.com"
] | prince.sai2020@gmail.com |
578b85c8533999d56103f6eb7d4a2fb37c32e60d | c2c47ecb274ab1ace99e7e103e6e700b749261cd | /src/aslc/AST.py | 85d5f3c146f3c6ece9af5f0915a061e740b0dcfd | [
"MIT"
] | permissive | ronsaldo/aslc | f9377901244b6b52f46404886c3c8179c245c7d7 | 1c9570434c33b89ce7c238bee6e81dcde9c91daf | refs/heads/master | 2021-01-10T04:27:01.495289 | 2016-01-01T14:30:01 | 2016-01-01T14:30:01 | 48,880,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,400 | py | # Node position
class NodePosition:
def __init__(self, filename, lineno, column=None):
self.filename = filename
self.lineno = lineno
self.column = column
def __str__(self):
if self.column is None:
return '%s:%d' % (self.filename, self.lineno)
return '... | [
"roniesalg@gmail.com"
] | roniesalg@gmail.com |
67ec59d8aec5648e5f21455753b16a5618f20eed | b7193f90f5ba441212882c49dfe17c97f20ef2a1 | /migrations/versions/fc289b18237c_.py | b587323ab73b2bfad8a5d7cf82a4689ff6bd1b67 | [] | no_license | ThreeSugar/OOP2 | 3af1a7d2030f141eb53bb29da3bb4a6bcdf2ccc1 | 54a02561a241eadd6d3589128ae582278308f69d | refs/heads/master | 2022-12-13T18:40:27.312127 | 2018-02-07T02:35:14 | 2018-02-07T02:35:14 | 109,016,076 | 0 | 0 | null | 2022-12-07T23:48:53 | 2017-10-31T15:34:04 | JavaScript | UTF-8 | Python | false | false | 938 | py | """empty message
Revision ID: fc289b18237c
Revises: 51bb84d6bed4
Create Date: 2018-02-02 21:21:17.663508
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'fc289b18237c'
down_revision = '51bb84d6bed4'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"threesugar@hotmail.com"
] | threesugar@hotmail.com |
4b409c0ca484e9b2f08f2f6d72700184c3442a20 | b3b3b20f2b44a55209ec0bcdec41ec5fd64b4dc7 | /watch_extensions_modified.py | 43e762b4f8bf7e3287063281b6a1b76d557df1d6 | [] | no_license | akash1630/chrome-project | 0711894a07de26c1b15315dcd61d80a575815a28 | 9b1b966a90d9cb76cc2149c867aa3b1b42307b70 | refs/heads/master | 2020-08-01T00:05:39.886271 | 2019-09-25T08:37:42 | 2019-09-25T08:37:42 | 210,795,344 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,010 | py | import os
import pyinotify
from threading import Timer
class EventHandler(pyinotify.ProcessEvent):
running_modify = 0
modify_eventpath = []
create_eventpath = []
running_create = 0
def reset(self):
print("resetting event handler")
self.running_modify = 0
def reset_create(self, *args):
path =... | [
"akash@Akashs-MacBook-Pro.local"
] | akash@Akashs-MacBook-Pro.local |
04b38b41b9b2b7d0e05f669f21d0100e77ca8a86 | 7ac94fda492b33353bf26f85c007b00d78ae53a0 | /tests/test_knight.py | 0381a0ac9d332c2a20cdc3d28147cc3da86f470f | [] | no_license | rmathure/HumbleBumble | 267791be9743aa8f8f69634fcbe473ac48b9d38f | f062207ec4fbb5e721d7854389a144673f249e4e | refs/heads/master | 2020-05-20T14:06:24.143302 | 2015-09-25T02:17:18 | 2015-09-25T02:17:18 | 42,675,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,740 | py | import unittest
from chess.board import Board
from chess.knight import Knight
class TestKnightBase(unittest.TestCase):
def setUp(self):
self.board = Board()
self.knight = Knight(self.board, 'd', '4', 'white')
def test_base_moves(self):
result = self.knight.get_possible_moves()
... | [
"rmathure@indiana.edu"
] | rmathure@indiana.edu |
a6fef88e002f2e6e5f9edd1ee8a8047ba19c063d | dc31e4596dd6bd76b72f480256ffd1735486d4d1 | /chats/migrations/0011_auto_20190320_1247.py | dbca9a5311f8e24bb6ca55a41b7fc41822f7e29e | [] | no_license | EddieKamau/law_firm_restapi_dgango | ef0c565ccf8705fb40c4e1bcb26732b03a734b88 | bd7034eee2140fad36f65078eb5a8d04cc55fc7b | refs/heads/master | 2020-07-24T15:25:41.615488 | 2019-09-12T06:16:51 | 2019-09-12T06:16:51 | 207,968,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | # Generated by Django 2.1.7 on 2019-03-20 12:47
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('chats', '0010_auto_20190320_1247'),
]
operations = [
migrations.AlterField(
... | [
"elyudde@gmail.com"
] | elyudde@gmail.com |
2206c1a2976207429fb089ceee1b3c2f15c7ff68 | e96651ad687a4290686d9f50b531fc13b9f0edd5 | /dataset.py | a9ad46ea928b83dd38731fbb3a02741c3581e72d | [] | no_license | KevinFang97/ano | 50dc74b79e7956d5a224266b6ea43ed1ca80d276 | 125db6881ff267edc0ceee13cdd3bef697e97ebe | refs/heads/master | 2021-09-01T14:34:22.020179 | 2017-12-27T13:42:38 | 2017-12-27T13:42:38 | 112,478,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,703 | py | import numpy as np
#store all data in memory:
#use 3 numpy arr: q, ans, topic
#retrieved these data from .txt --- written in preprocess.py
class UbuntuDataset(data.Dataset):
def __init__(self, filepath, length_path, dataset_path):
#length_path = "data/data_length.txt"
#dataset_path = "data/train_... | [
"hfangac@connect.ust.hk"
] | hfangac@connect.ust.hk |
40aaaa618ecd1aa74375fd65f35e7b6827c6a2ad | a5cf49fa185ad74a23020bf3264221c6fa2248a1 | /device-scripts/test-scripts/listen.py | 6f7c1151026440b4b536c9d4fdf82f1edd31e165 | [] | no_license | kstruempf/ba-struempf-auto-irrigation-system | 69ab5ba64bdfa0284fb24d603595e109d0e7be7d | e886e313c1b65109a870b6b519b81697e0470c4b | refs/heads/master | 2022-11-18T17:37:08.567966 | 2020-07-13T18:51:26 | 2020-07-13T18:51:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | import paho.mqtt.client as mqtt
api_key: str = "tOiOdxFTpZwezrrpCT"
device_id: str = "valve01"
topic: str = "/" + api_key + "/" + device_id + "/cmd"
# The callback for when the client receives a CONNACK response from the server.
def on_connect(client, userdata, flags, rc):
print("Connected with result code " + s... | [
"k.struempf@icloud.com"
] | k.struempf@icloud.com |
0de218a7e0865c46ec0644ef71fdb5b4da5019f4 | 925d6c11ad50f3f56a5665e1f854e83ecf0427b4 | /python/Innlevering INF1100/freq_2dice.py | c5daeb3e1e75733b01efd6c91cc3c096f45e792e | [] | no_license | camillanore/Studies | 244a57834f71fc1a28b4ee82ea31cf6c2678703a | a4b625e0d243fcd76f9418fb2d523dad5fd9e752 | refs/heads/master | 2021-01-25T04:57:29.787317 | 2015-12-09T15:50:29 | 2015-12-09T15:50:29 | 41,266,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,693 | py | # -*- coding: utf-8 -*-
# Problem 8.14
# Author: Camilla Nore
# Date: 2015-11-05
"""
8.14 (freq_2dice.py, side 509)
Exercise 8.14: Compute probabilities of throwing two dice
Throw two dice a large number of times in a program. Record the sum of the eyes each time and count how many times each of the possibilities for... | [
"camilla.nore@gmail.com"
] | camilla.nore@gmail.com |
947f247917d2429a3ed46423d13abbbb6b20f1a4 | 75b13ef711a3954ee62e0767719c8a8526c57284 | /digital_marketplace/settings.py | 9b6dd8a3ac182e9a3d90512ae737713a771837a3 | [
"MIT"
] | permissive | devsingh-code/django-digital-marketplace | c83ce48eedc0d486f35095b36c80b33e07b84cf5 | f0f0d2daebaeedeb7ff5b83154313fcce21b2886 | refs/heads/master | 2022-10-10T23:55:44.599570 | 2020-06-13T07:39:06 | 2020-06-13T07:39:06 | 270,074,516 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,248 | py | """
Django settings for digital_marketplace project.
Generated by 'django-admin startproject' using Django 3.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
... | [
"devsingh6n@gmail.com"
] | devsingh6n@gmail.com |
00a31512381b3bc56bb1ac64f7e9444bc8517059 | 4d4bcdf639adbcd8dbad78b7a196d9e4a3d56594 | /PYTHON_TRANING/17_PythonDatabaseAccess/MySQLDB.py | d100eb76e75994e3cfd1213c92828ec41d515e3d | [] | no_license | SkrGitRepo/MyPythonDjango | 51bbcef9ba47a79693a5807da80477a3d5b546a6 | 9c2a38277a13c14362a5679875b7c323973942fe | refs/heads/master | 2021-01-17T06:54:44.094042 | 2020-05-30T04:33:00 | 2020-05-30T04:33:00 | 52,251,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,172 | py | '''
Created on Feb 18, 2016
@author: sumkuma2
'''
import MySQLdb
class MySQLDB(object):
'''
This a MySQL DB connectivity class
'''
def __init__(self):
'''
Constructor
'''
def connect(self,dbuser,dbpwd,dbname,dbhost,port):
try:
... | [
"sumkuma2@SUMKUMA2-98EN8.partnet.cisco.com"
] | sumkuma2@SUMKUMA2-98EN8.partnet.cisco.com |
011f2f41825b4ce7bb8f3540d3de8062798f2e39 | c4ff1fc48062b8e9d5f437d88c338aae85a9eae0 | /tests/test_meross_local_control.py | a6773b883edb0baf03a0e19e89eed962b95e3193 | [
"MIT"
] | permissive | Imajie/kalliope_neuron_meross_local | 37558849f7eded01ebf57c27ac7f079978779476 | e3a27541f5d250ffa7d21280b137d7b1e36dd9db | refs/heads/master | 2020-04-24T23:44:45.156370 | 2019-02-26T23:01:03 | 2019-02-26T23:19:03 | 172,354,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | import json
import unittest
import mock
from kalliope.core.NeuronModule import MissingParamterException
from kalliope.neurons.meross_local_control import Meross_local_control
class TestMerossLocalControl(unittest.TestCase):
def setUp(self):
self.uuid = '1234567890abcdef'
self.broker = 'localhost'
... | [
"James.Letendre@gmail.com"
] | James.Letendre@gmail.com |
d561e1dec0a1c51d2d9fb27cac1e7c5ec0dd4aab | 9e28200b71d43de1e122a964e88f1b547bfde465 | /question_leetcode/150.py | 285f8315ca621be7af7d6ea52b575ea1adf6eb36 | [] | no_license | paul0920/leetcode | 6f8a7086eefd3e9bccae83752ef41cbfee1acaea | 474886c5c43a6192db2708e664663542c2e39548 | refs/heads/master | 2023-08-19T14:10:10.494355 | 2021-09-16T20:26:50 | 2021-09-16T20:26:50 | 290,560,326 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | def evalRPN(tokens):
"""
:type tokens: List[str]
:rtype: int
"""
stack = []
operator_set = {"+", "-", "*", "/"}
for char in tokens:
if stack and char in operator_set:
num2, num1 = stack.pop(), stack.pop()
if char == "+":
res = num1 + num2
... | [
"39969716+paul0920@users.noreply.github.com"
] | 39969716+paul0920@users.noreply.github.com |
ec5f9a54f8a68316bc9d29f402e084ffa227fb6a | 7d9a173dd7a535f90290fba25f0151f845519654 | /blog/models.py | cb4f34bffc436f50f7ba89af2d4e01d6393317f0 | [] | no_license | WayneChen1994/mysite | 66d14707bc114999d6e4931e572a5777215b9ee9 | b6596b8d3bf975ddc0f50d3f2ee20abe7a281906 | refs/heads/master | 2022-12-15T09:29:24.495678 | 2018-11-15T12:25:58 | 2018-11-15T12:25:58 | 157,231,264 | 0 | 0 | null | 2022-12-08T01:17:37 | 2018-11-12T15:05:40 | Python | UTF-8 | Python | false | false | 1,946 | py | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from taggit.managers import TaggableManager
class PublishedManager(models.Manager):
def get_queryset(self):
return super(PublishedManager, self).get_query... | [
"waynechen1994@163.com"
] | waynechen1994@163.com |
6053595e147b12907c78ac232050df1e5e051c12 | f25cee74984b5c162c886438aec9758c76e2d370 | /tests.py | d2255d04f84eb6e0bb08ecadcd618d4d9e606e3b | [] | no_license | YanaRyazanova/http-webserver | d9b91e6451f4afce5a79be155667068455960a3d | 14abf2b67b0be725993f930fd7dbab68ea035db4 | refs/heads/main | 2023-04-06T07:56:50.777809 | 2021-04-14T07:50:37 | 2021-04-14T07:50:37 | 357,820,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,364 | py | import unittest
from webserver import Server
from response_func import static_file_get
import requests
from serve_client import ServeClient
from threading import Thread
import json
class Tests(unittest.TestCase):
def test_1(self):
def test_html_response():
resp = requests.get("http://localhost... | [
"yanaryazanovs@gmaul.com"
] | yanaryazanovs@gmaul.com |
9e0139fa26e6c06df9dd302de69e2fe2c94e3f4a | ae7103bc3cf201b0aa1271d035c68ad8973c0c80 | /1094.py | 366852a47d23661e030409cc5a0b5d095baed0ef | [] | no_license | gustavorlh96/Python | 6013f564fea37912a0d46228a1ac5db8e92b3c34 | 87a93b16a6c41b9639fea48224d17732d0d9a650 | refs/heads/main | 2023-02-15T01:22:09.739770 | 2021-01-09T20:52:54 | 2021-01-09T20:52:54 | 327,667,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 836 | py | quant = int(input())
i = 1
coelhos = 0
ratos = 0
sapos = 0
while i <= quant:
cobaia = input().split()
num, anim, = cobaia
if anim == 'C':
coelhos = coelhos + int(num)
if anim == 'R':
ratos = ratos + int(num)
if anim == 'S':
sapos = sapos + int(num)
i += 1
total = coelhos + ra... | [
"noreply@github.com"
] | noreply@github.com |
4d7fb5a1fe8a79819df499f7c0a676b943dd9f3d | c9499da242269382baa5a41363453bf7907d392f | /05_Django/06_model_relation/manytomany/migrations/0001_initial.py | b9c0c77aba1378af3c444e83dd2f1944c8ab2b31 | [] | no_license | sooy0510/TIL | 13adad107c5315d09d78b7317b4b7efecdbcee1f | 5da3902f40099638267e9bf96e6e71729dba5232 | refs/heads/master | 2022-12-27T10:40:22.441330 | 2019-12-03T08:28:41 | 2019-12-03T08:28:41 | 216,502,932 | 0 | 1 | null | 2022-12-08T06:58:12 | 2019-10-21T07:21:41 | CSS | UTF-8 | Python | false | false | 842 | py | # Generated by Django 2.2.6 on 2019-11-12 09:37
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Doctor',
fields=[
('id', models.AutoField(a... | [
"qkdqnwpwp@naver.com"
] | qkdqnwpwp@naver.com |
d1064cbd35ef58ac2e7281e823e02430d7aafc30 | 4564b5786932bd5a94f442a2eae170564e12640b | /python/venv/Scripts/easy_install-script.py | f51003b52945655d80008e2e3d1e260b3846e0c5 | [] | no_license | slomeer/sparta | 60feb9d5e9ecebedca1d08735f4c99912deb39c6 | bd96e3700c10bebd0c3e742fb35f4151f88a7e89 | refs/heads/master | 2021-03-15T04:44:54.479873 | 2020-06-15T06:44:46 | 2020-06-15T06:44:46 | 246,825,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | #!C:\Users\82108\Desktop\sparta\python\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.ex... | [
"61731412+slomeer@users.noreply.github.com"
] | 61731412+slomeer@users.noreply.github.com |
4189deb1c499d93f5b2ac8085877cbae73a7ef88 | 17388d0e69455ded730e71dd7b693ac27b284d98 | /DNN_learns_distribution.py | 5b02bf67177d7e89395a908982021f28527a8a09 | [] | no_license | jglombitza/DNN_learns_distribution | 72edcca06220606aab6f69d43e4222258be5ce30 | 123d61b26d03cd3a9d02ca187c5344c71ef6c63d | refs/heads/main | 2023-03-12T07:58:33.317496 | 2021-03-02T08:51:27 | 2021-03-02T08:51:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,891 | py | import tensorflow as tf
import numpy as np
from tensorflow import keras
import learning_utils as lu
lay = keras.layers
log_dir = "." # directory to store everything
NOISE = 2.0 # large noise e.g. 20 // medium noise: 2 // very small noise 0.25
train_samples = 150000
test_samples = 10000
def epsilon(x):
''' Fu... | [
"jonas.glombitza@rwth-aachen.de"
] | jonas.glombitza@rwth-aachen.de |
89e3dfd68b6cb56fd37e91672ffbd3ef37d58095 | 074189530efdea0bffa629633983a697d281100b | /v3_6_0/helloworld.py | e0d29709b0f6b9d7cc900e116e9e53a2ffccc748 | [
"MIT"
] | permissive | mmakmo/python | dca7d630da1b2e2da7f22387dd979dbec70c2ce5 | 74c577f8d688de62b6e6574ea1457a322450ae64 | refs/heads/master | 2021-01-19T10:30:00.755638 | 2017-03-18T20:52:24 | 2017-03-18T20:52:24 | 82,187,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | #!/usr/bin/env python
import sys
# -*- coding: utf-8 -*-
def greet(name):
print('Hello, {0}!'.format(name))
if len(sys.argv) > 1:
name = sys.argv[1]
greet(name)
else:
greet('world')
| [
"mmakmo@gmail.com"
] | mmakmo@gmail.com |
d5291b52f0d8e473bb241faf5869240e6db379ab | f7f5ee00110d1bc176d28cb889794e891cd64961 | /ago-dic-2019/Brandon Emmanuel/t5p1masord.py | a67d26537f1c23ad2e783984db66e89b20e8087f | [] | no_license | Andremm303/AlgoritmosSistemas | d182074c302af3ff45a88071e439339f6f6fa7d1 | 8a16c04ffcfe77a7b5982a8e4745e37788265e14 | refs/heads/master | 2020-07-21T13:34:26.701069 | 2019-11-26T02:49:40 | 2019-11-26T02:49:40 | 206,882,059 | 0 | 0 | null | 2019-09-06T22:19:13 | 2019-09-06T22:19:13 | null | UTF-8 | Python | false | false | 1,098 | py | def Mergesort(peliculas):
if len(peliculas) > 1:
# divido
middle = len(peliculas) // 2
left = peliculas[:middle]
right = peliculas[middle:]
# resuelvo
new_left = Mergesort(left)
new_right = Mergesort(right)
# junto la solucion
new_arr = Merge(new_lef... | [
"brandondelabra303@gmail.com"
] | brandondelabra303@gmail.com |
8bba260cc32f88812fc6721442b1e71a0f8b4cd5 | df3c228466b6a430a87104ff3871b6c4680f08e5 | /DTLN_model.py | a7827dc438d26f33310187132c9a140e832661c3 | [] | no_license | vidyasreevankam/SPEECH-ENHANCEMENT | c580d5c904663a85b9203e573595e338784893b9 | 5efe70e43c43cbb144f393f23ce479979d66851d | refs/heads/main | 2023-01-12T23:22:59.668102 | 2020-11-17T10:12:34 | 2020-11-17T10:12:34 | 313,554,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,184 | py | """
This File contains everything to train the DTLN model.
For running the training see "run_training.py".
To run evaluation with the provided pretrained model see "run_evaluation.py".
"""
import os, fnmatch
import tensorflow.keras as keras
from tensorflow.keras.models import Model
from tensorflow.keras.layers impor... | [
"noreply@github.com"
] | noreply@github.com |
3b97798a1a00af08dba29312c6203aec919aab85 | 14744766d01d6719097fa6d2b0a9db42226c114b | /myshop/venv/bin/easy_install | 9cd45bd6d522c1d5f017eab8df721d97a141b9a1 | [] | no_license | jakiiii/Django-2-by-Example | 8f491a23b7c45ef71a866622ec45dab9909ad212 | 6b3c68b7d54b6c763bba30be5c8b48d257cd97f5 | refs/heads/master | 2023-03-10T00:09:37.688697 | 2021-02-26T19:27:24 | 2021-02-26T19:27:24 | 342,679,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | #!/home/jaki/Dev/django_example2/myshop/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', ... | [
"me.jaki@outlook.com"
] | me.jaki@outlook.com | |
3e21f3ad4c62cce05d5b25f9c324702875c7f3fc | e9216892b7233cf06095ff1d2497d6ce12191239 | /chat-bot/plugins/music.py | 8d2cf264a2335a863787854cccfa99664bb33b66 | [
"MIT"
] | permissive | DRSchlaubi/mee6 | 1a2f8d1d4f3bb2e3cb2cf8e5743bd6ad78320aa4 | 247e3ba4e40621d31d2bb1e034949bdd70727332 | refs/heads/master | 2022-06-16T16:32:30.378890 | 2017-07-09T11:18:28 | 2017-07-09T11:18:28 | 96,315,635 | 1 | 0 | MIT | 2022-05-02T22:04:34 | 2017-07-05T12:14:29 | Python | UTF-8 | Python | false | false | 10,696 | py | import asyncio
import aiohttp
import os
import json
import functools
import discord
import logging
from sys import platform
from plugin import Plugin
from decorators import command
from collections import defaultdict
log = logging.getLogger('discord').info
if not discord.opus.is_loaded():
if platform == "linux" ... | [
"michael@rittmeister.in"
] | michael@rittmeister.in |
1ffd434ffa7d3398b6028a293cda1e46036d6905 | 2145a79db917d6eff6f47278e7691ff76ab357f2 | /octane/api_resources/abstract/singleton_api_resource.py | 7b7a25b8b4e8a9805e37495556ac208c78231599 | [
"MIT"
] | permissive | zomglings/octane-python | 85e6b333a4394b311d376c8770465b0e014f36ab | e8e1bfeb7146e8cd2314359f2c3ddd280bf105a7 | refs/heads/main | 2023-07-16T09:52:07.744904 | 2021-05-03T15:25:23 | 2021-05-04T22:03:42 | 365,934,071 | 0 | 0 | MIT | 2021-05-10T18:40:34 | 2021-05-10T06:00:32 | null | UTF-8 | Python | false | false | 871 | py | from __future__ import absolute_import, division, print_function
from octane.api_resources.abstract.api_resource import APIResource
class SingletonAPIResource(APIResource):
@classmethod
def retrieve(cls, **params):
return super(SingletonAPIResource, cls).retrieve(None, **params)
@classmethod
... | [
"akshalaby@gmail.com"
] | akshalaby@gmail.com |
f9b645b2b401d3b03d9a6c30f3cde57cb21664e6 | b2a62a0007c3b4f29c29c1d9258499d68ead0828 | /mini project 4/translate_color.py | 63e8e0393b4e3fb3febf86aef7224d12fb9c7250 | [] | no_license | alixmccabe/comp_art | 33f2ef7c85f6dc30e5522592ef80c3a5e6ff283d | 5ec4ffb01dea5d83a7ecaf2525726e5b719c8156 | refs/heads/master | 2016-09-06T05:07:27.822158 | 2015-03-29T02:45:54 | 2015-03-29T02:45:54 | 30,608,318 | 0 | 0 | null | 2015-03-31T02:26:58 | 2015-02-10T18:48:45 | Python | UTF-8 | Python | false | false | 1,888 | py | """Initial foray into image tracking with colors using OpenCV
adding step of translating images to animations"""
import cv2
import numpy as np
import pygame
import pygame.locals
import sys
kernel = np.ones((21,21),'uint8')
cv2.destroyAllWindows()
cap = cv2.VideoCapture(0)
while(1):
# Take each frame
_, frame... | [
"alix.mccabe@students.olin.edu"
] | alix.mccabe@students.olin.edu |
c4d7de63546087c8c3778cf67baeb348bddbc9fc | 2b68777e3d222baf1f3674001fe710c63ad45eb7 | /functions/trade/bitfinex.py | 880cf259f826aa7d028cc3d5ebe1513ec6ce2f0f | [] | no_license | giblets2570/eos-ico-arb-bot | 2e206e9cf2473add458cefb26c7640f58b5c7414 | f0acf2818d6f65aca3e5cd22f19090979ac55172 | refs/heads/master | 2020-09-13T20:50:59.311920 | 2019-11-20T09:25:14 | 2019-11-20T09:25:14 | 222,899,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,153 | py | # from etherscan.accounts import Account
import json
import os.path
import sys
import base64
import hmac
import hashlib
sys.path.append(os.path.join(os.path.dirname(__file__), "pip_modules"))
from time import time
import requests
import boto3
API_KEY = os.environ.get("BITFINEX_API_KEY")
API_SECRET = os.environ.get("B... | [
"tomkeohanemurray@gmail.com"
] | tomkeohanemurray@gmail.com |
e8f4e2d6c076fd8d551d1731a16d58b8af00e77d | 05534321652c4864dd9bc71f018f6a17691e02f6 | /MIL_tasks_on_histopathology_image_patches/multi_class_classification/test.py | 6642f39a856a42c5b07aec44afd3b613151c19a3 | [] | no_license | onermustafaumit/mil_pooling_filters | c525fb1eae24cc8a92ee97e5d8fbb5424aeff94d | 0b135b2f433346373cc90ff27abfc50f291a08f0 | refs/heads/main | 2023-03-08T18:22:00.897393 | 2023-02-16T17:10:06 | 2023-02-16T17:10:06 | 320,208,207 | 9 | 4 | null | null | null | null | UTF-8 | Python | false | false | 6,330 | py | import numpy as np
import argparse
import os
import sys
import time
from model import Model
from dataset_image import Dataset, custom_collate_fn
import torch
import torch.utils.data
import torch.nn.functional as F
parser = argparse.ArgumentParser(description='')
parser.add_argument('--model_dir', default='saved_mod... | [
"onermustafaumit@gmail.com"
] | onermustafaumit@gmail.com |
2b2973e1b3850795a9bb30dd0e0af866dc6e8aaf | 2a05ec483bf68a359ac20db9cde4093e5e7db348 | /leetcode/061.py | 055b90dbd2eefd927b3a6009894a2fbe52fd8dfd | [] | no_license | LeptusHe/lightoys | 3b82abbdac2ea0748a5f3cf7dd401dbcfb0f72d2 | 0b871029b17e7b230e953c2d210d8f0f43a97706 | refs/heads/master | 2021-06-09T20:39:08.440375 | 2016-10-18T11:12:34 | 2016-10-18T11:12:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,626 | py | # Definition for singly-linked list.
class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
class Solution(object):
def rotateRight(self, head, k):
"""
:type head: ListNode
:type k: int
:rtype: ListNode
"""
node_num = self.ge... | [
"heweidong526@gmail.com"
] | heweidong526@gmail.com |
a3960fc7efbc6a7c262eea217c445c3e29957b71 | ad3736a0fa63a22daa36def877e6d220f2aebd91 | /Les07/002.py | c128bb20e1fa25c0408ccaaac8a171b3c8f30e19 | [] | no_license | RMaturin/GB_python | 7f14ee51e53aee4c5f27b2b577c33db341e42770 | 869b7df0669d371c81e3c2a516896cd414f62ff5 | refs/heads/main | 2023-03-08T13:43:41.486061 | 2021-02-20T18:20:15 | 2021-02-20T18:20:15 | 325,792,646 | 0 | 0 | null | 2021-02-20T18:20:15 | 2020-12-31T12:09:08 | Python | UTF-8 | Python | false | false | 2,125 | py | """2. Реализовать проект расчета суммарного расхода ткани на производство одежды.
Основная сущность (класс) этого проекта — одежда, которая может иметь определенное название.
К типам одежды в этом проекте относятся пальто и костюм. У этих типов одежды существуют параметры:
размер (для пальто) и рост (для костюма). Это ... | [
"maturin@mail.ru"
] | maturin@mail.ru |
983409c851f23b5a6e2d6ca1e3d29515406c1a7b | 6567cef4d00f050ff3c2db9fb3cf37c0adf51172 | /Chapter-16/5. Class Variable Part 2.py | c3a31964c397694e0e2b489398ff5d650183c569 | [] | no_license | siraiwaqarali/Python-Learning | 7aa6981073a50491083ee32bd685ac843ffa15b6 | fb96b87b1a8661e31f288d528d7c2bea981d19ef | refs/heads/main | 2023-03-10T21:46:15.588929 | 2021-03-01T06:42:46 | 2021-03-01T06:42:46 | 335,678,952 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,166 | py | # change class variable
# how to print name space for objects
# what if we use self instead of class name for class variables
class Laptop:
percent_discount = 10
def __init__(self, brand_name, model_name, price):
# instance variables
self.brand_name = brand_name
self.model_na... | [
"noreply@github.com"
] | noreply@github.com |
386d0d7d157ede10f8dcfb16b1a63c6f0d11d1c3 | 1815c403d1e57bdbce37cc47e9e71a88c91b0e3a | /Recognition/recognizePointSet.py | f1bd516a83c71c4398115c1cf49fcd72db9c345c | [] | no_license | Chen41284/Python | f4c8d7e7501350cca83fe006b680f387b7c959f3 | 69ddc66c607d9d611f449fa8cdf2c0892e399675 | refs/heads/master | 2022-05-26T20:19:09.811370 | 2022-05-04T16:27:27 | 2022-05-04T16:27:27 | 211,828,277 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | import os
class pointRecognition:
def __init__(self) -> None:
pass
| [
"chen6281@foxmail.com"
] | chen6281@foxmail.com |
7d9c499a24465d82857898a938636bfc2886009b | 3c89509e8f04fe5b12d6a447edca1de61b670514 | /OIA_Automation/Resuables/Admin_Transversal.py | 2d65fd75c5d43f2009e7fd1ab266a0962a1b81ec | [] | no_license | waytoabhay99/OIA_Automation_ | 8413ef913d3b353a3c2fea55a9bf7ebaf51b77eb | 0e2c9046230b81c932d4548fba09cdc865d626a2 | refs/heads/master | 2023-05-21T13:43:25.598755 | 2021-06-09T12:57:30 | 2021-06-09T12:57:30 | 375,355,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,130 | py | import random
import time
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.by import By
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_cond... | [
"waytoabhay99@gmail.com"
] | waytoabhay99@gmail.com |
6e4179a82c627efb74c9fb0f304f6e61dbe80c06 | 3a6a211ea0d32405497fbd6486c490bb147e25f9 | /telemetry/telemetry/util/image_util.py | d41baaf859eb8f1af0f19f1a562a276f31afcc7b | [
"BSD-3-Clause"
] | permissive | catapult-project/catapult | e2cbdd5eb89f3b1492fc8752494e62ea1df4bae0 | 53102de187a48ac2cfc241fef54dcbc29c453a8e | refs/heads/main | 2021-05-25T07:37:22.832505 | 2021-05-24T08:01:49 | 2021-05-25T06:07:38 | 33,947,548 | 2,032 | 742 | BSD-3-Clause | 2022-08-26T16:01:18 | 2015-04-14T17:49:05 | HTML | UTF-8 | Python | false | false | 4,042 | py | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Provides implementations of basic image processing functions.
Implements basic image processing functions, such as reading/writing images,
cropping, find... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
f100761b402a229e97875e52a2d873296e8f59b9 | 9b8b4d11c395760a4f3bcb41520a1049c0174a78 | /blog.py | e941ac9c6a4417ef6b77545fd787a134771adc07 | [] | no_license | bgodii/Automated-Software-Testing-with-Python | 2331dcf177c21aee4317a53a2dd94d88473c42ec | fef48366f6f075305102c0d4e3936c687883d183 | refs/heads/master | 2023-03-17T23:44:39.879731 | 2021-03-08T12:19:26 | 2021-03-08T12:19:26 | 345,471,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | from post import Post
class Blog:
def __init__(self, title, author):
self.title = title
self.author = author
self.posts = []
def __repr__(self):
return f"{self.title} by {self.author} ({len(self.posts)} posts)"
def create_post(self, title, content):
self.posts.append(Post(title, content))
... | [
"dantas.renan@icloud.com"
] | dantas.renan@icloud.com |
e9a298b6755243b114c7146d2060965fd234b7cf | cd223ad3bb0c9250911a86c49ffd432d2aebeb9b | /bestaid_django_server/urls.py | 584cd6bbde86a9921646399bc1a247221b76b086 | [] | no_license | sayemPasha/bestaid_django_server | 11478302ae3540b53ef558b76f99bded35e14c8a | 2982cc1f414d37dd9f5ed0d7319ebfd3c30e1251 | refs/heads/main | 2022-12-28T14:10:59.111812 | 2020-10-17T16:57:57 | 2020-10-17T16:57:57 | 304,925,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | """bestaid_django_server URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home... | [
"sayem.pasha@bs-23.net"
] | sayem.pasha@bs-23.net |
0e2edb20a176594e425528d01a85c988187d4377 | 2de22a1905bc479cac272aaea43c7a8a3dff82f2 | /demo.py | 0f408e1c8083907a266fcc27a02611b78afb318b | [
"MIT"
] | permissive | foamliu/OrderPal | 2a0e274cdbdf74ed65ce6539fda4d4fd19b6cb2d | a03ac3ecf5a054e94caa3d121c44459f6f40954b | refs/heads/master | 2022-02-02T20:06:42.465269 | 2019-07-23T09:51:25 | 2019-07-23T09:51:25 | 198,325,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | import os
from ocr_utils import detect, get_logger
from trans_utils import translate
if __name__ == "__main__":
logger = get_logger()
file_path_name = 'images/example-1.jpg'
logger.info('filename: ' + file_path_name)
results = detect(file_path_name)
print(results)
for ret in results:
... | [
"liuyang12@focusmedia.cn"
] | liuyang12@focusmedia.cn |
8d8c55dc20c106df89cd3ec51d7db1722c09d46c | 201658dca272791984ff2e278da2f2338788acad | /my-server/myserver/urls.py | efa658d6c2763734a0bb16fcc1c9e4035357390a | [] | no_license | nicolas7132/react-django-full-stack | d1ae23f2b12e3399cb311322475aa279f8edb1ee | 69e57a9feb541a61d6a5db6af92ae199f4a23adf | refs/heads/master | 2021-07-13T07:45:53.704433 | 2019-08-26T22:21:18 | 2019-08-26T22:21:18 | 204,564,608 | 1 | 0 | null | 2020-09-03T23:42:56 | 2019-08-26T21:27:41 | Python | UTF-8 | Python | false | false | 802 | py | """myserver 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-base... | [
""
] | |
4e2fd75d1d1650e96622ecaf373112f6773f0a72 | 168f9d0f5d65bc34d05732b71b3a34e5316fa2ae | /python/GnssAnalysis.py | 615b50b12dbcf3342cea09c7b5fdd6d2f8df4eb8 | [] | no_license | dgjung0220/LearningLab | e2f2367c66f8acfa7ecb3e97f4484a1f3041638b | 57c5d021e879d08dfcded65c942352522a68cc8c | refs/heads/master | 2023-01-05T23:24:46.349663 | 2020-10-26T04:41:20 | 2020-10-26T04:41:20 | 275,836,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,357 | py | import pandas as pd
import matplotlib.pyplot as plt
import matplotlib
matplotlib.style.use('ggplot')
import numpy as np
import datetime
#in-memory grep implementation, filter lines starting wth filterKeyword
#return text string - memory hungry but fast
#http://stackoverflow.com/questions/10717504/is-it-possible-to-use... | [
"dgjung0220@gmail.com"
] | dgjung0220@gmail.com |
5533df694d55d6ce514d969357ccc5f5be6284f8 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_104/ch2_2019_04_03_17_39_36_555229.py | 5c2ff366f95a8be934f15e2a5f59f1766ae12061 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | distancia=150
tempo=3
def calcula_velocidade_media(distancia, tempo):
velocidade_media=distancia/tempo
return velocidade_media
print(calcula_velocidade_media(distancia, tempo))
| [
"you@example.com"
] | you@example.com |
8da43bd6ea9279f21c9953dade572507aae15875 | df9c6d5d8c25a02d62081215792394ebfc9d1c5f | /LangExplore/python/example/back_ver1.py | d60c0712c69754c2cff431fbab3b33999724e162 | [] | no_license | jk983294/Store | 1af2f33b80dc559cf61e284695a0485441e4956f | 01cf006b4f6751d1f80083339ae26598d851b1a5 | refs/heads/master | 2021-05-16T03:07:56.025060 | 2017-03-05T09:59:06 | 2017-03-05T09:59:06 | 21,042,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,069 | py | #!/usr/bin/python
# Filename: backup_ver1.py
import os
import time
# 1. The files and directories to be backed up are specified in a list.
#source = ['/home/swaroop/byte', '/home/swaroop/bin']
source = [r'D:\namepwd.txt', r'D:\InitPos150W.txt']
# If you are using Windows, use source = [r'C:\Documents', r'D:\Work'] or... | [
"jk983294@gmail.com"
] | jk983294@gmail.com |
d68f12a1fc92d5cb701796df50c1a9228c4c7950 | 74edcdd657e543f0e59c6494402f285e26bdb327 | /apps/users/views.py | db831617ad1591f9b936982f21369efe797f23c0 | [] | no_license | guoyang1997/gy_MxShop | c5a11c46a6482e5256ab49c807e1bb47b648d85f | 382ff9c899ce020ae998f4bad292478cab73f7d2 | refs/heads/master | 2023-01-28T17:31:39.141029 | 2020-12-08T06:21:11 | 2020-12-08T06:21:11 | 319,545,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,948 | py | from rest_framework import mixins, permissions
from django.shortcuts import render
from django.contrib.auth import get_user_model
from django.db.models import Q
from django.contrib.auth.backends import ModelBackend
# Create your views here.
from rest_framework import authentication
from rest_framework_jwt.authenticatio... | [
"18636753562@163.com"
] | 18636753562@163.com |
8ca2dbabc09f99d285105f4dc0a9cb5efcb68777 | e3c3a7efb11bea6f5a2958af8154bf8c713cc6e9 | /assert/test.py | 6f3f4f3972d888fd3d2bad5c0aa3e8bd13f190f3 | [] | no_license | soyalextreme/curso_pruebas_automatizadas_python | 7ee9e95d46c3bce052642ceabfb3ba55f1f0db3d | 6febea919252f642ffddcd9346fe00e820fc6f87 | refs/heads/master | 2023-05-14T01:04:33.928237 | 2021-05-30T02:10:21 | 2021-05-30T02:10:21 | 370,899,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | from algoritmos import fibonacci, palindromo, factorial
# la funcion debe de iniciar con la palabra test
def test_fibonacci_cinco():
assert fibonacci(5) == 5, "No es 5"
def test_palindromo_anita():
assert palindromo("anita lava la tina"), "No es un palindromo"
def test_factorial_cinco():
assert factor... | [
"soyalextreme@gmail.com"
] | soyalextreme@gmail.com |
adb287fcfbb0cbca891e6bd36ff112423c43f354 | 5d01c0abf77d19c224d0886c461c42dbad496171 | /python_stack/django/django_orm/single_model_orm/apps/users_app/migrations/0001_initial.py | ff4b5fb0175ac4964c1004da07c69862fac8061c | [] | no_license | Jacedeuce/coding_dojo | 0c1cc1a12b422b3f79047274198fefbc0368127f | 6d1cf2d054cb2562cd5e0eb51357a32faf49ddfe | refs/heads/master | 2022-12-12T22:47:43.266440 | 2019-07-18T23:09:20 | 2019-07-18T23:09:20 | 190,056,454 | 0 | 0 | null | 2022-12-12T12:55:33 | 2019-06-03T18:05:19 | Python | UTF-8 | Python | false | false | 877 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2019-06-11 18:18
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Users',
... | [
"jdhanna@gmail.com"
] | jdhanna@gmail.com |
d4aad86f06f22c55b6d15e6447f4b77e1068c02e | b3247dd3518d8795e69a58ca4fe0e23a5ae6beae | /users/models.py | 6be0a3083b519e3d146550ac6bb16c1962d706d1 | [] | no_license | Sult/Creator | 86aa210d39728a7358dba43bed8d22f8d74a10e3 | 17671f6ccf624dde1bd445a3045c85a7c9302b1e | refs/heads/master | 2021-01-13T01:25:46.258729 | 2013-12-12T21:35:49 | 2013-12-12T21:35:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,065 | py | from django.db import models
from django.contrib.auth.models import User
class ModelLog(models.Model):
"""
logging changed data of objects done by users manualy
"""
model = models.CharField(max_length=255)
app = models.CharField(max_length=255)
date = models.DateTimeField(auto_now_add=True)
user = models.Fo... | [
"hans110@hotmail.com"
] | hans110@hotmail.com |
66e0204e7b182bb5eda33bb7bdfa603ecaa549e0 | aa8402f133cbf211b9508f88d83131c524bd0c86 | /SumaLista.py | a0d191483588c7975fe6b534f7f5dc345ebbecfa | [] | no_license | brandonr-art/Brandon_Roa_1560 | 5bfc8551ba53016b5787773da9440cbb4a80f31e | 5f20aa69f7da19f473590bc2d0f17ad1e01aac0d | refs/heads/master | 2022-03-07T09:18:37.868230 | 2019-10-13T23:27:47 | 2019-10-13T23:27:47 | 208,925,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | def sumaLista (lista):
if 1 == len(lista): #Verifica que la lista es de longitud uno
return lista[0]
else:
return lista[0] + sumaLista(lista[1:])
#La funcion se llama asi mismo pero se recorre la lista.
def main():
print(sumaLista([3,5,2,4]))
mai... | [
"noreply@github.com"
] | noreply@github.com |
8daf9b429f60fddd24f66c54ff4a457d106fc84f | 2c33c9679f2955b31a3cb5baeff4edf473ba9060 | /Utils/metrics.py | e05f681c9dbd7f79d338f969e2d195647cd9ff1b | [] | no_license | anhtuanhsgs/LearnedDS | ed466b3edd4465f7fc6d3e743b553b8bb80d542f | c63e0258462b1f1538f171ed6091ed1c235f1636 | refs/heads/master | 2022-11-13T09:30:32.882704 | 2020-07-17T02:56:03 | 2020-07-17T02:56:03 | 273,603,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,039 | py | import numpy as np
def GetDices(inLabel,gtLabel):
# input: inLabel: label image to be evaluated. Labels are assumed to be consecutive numbers.
# gtLabel: ground truth label image. Labels are assumed to be consecutive numbers.
# output: BestDice: best possible Dice score
# FgBgDice: dice score for joint ... | [
"anhtuanhsgs@gmail.com"
] | anhtuanhsgs@gmail.com |
0485c13bd609b0ea188cdcba4b338f66e8a234d6 | af4abf0a22db1cebae466c56b45da2f36f02f323 | /parser/fase2/team02/Fase2_G2/dataanalizado/Instrucciones/Sql_insert/insertTable.py | c749f3c6ed5e421a0b2eab1e1e698545fc5e89c2 | [
"BSD-3-Clause",
"MIT"
] | permissive | joorgej/tytus | 0c29408c09a021781bd3087f419420a62194d726 | 004efe1d73b58b4b8168f32e01b17d7d8a333a69 | refs/heads/main | 2023-02-17T14:00:00.571200 | 2021-01-09T00:48:47 | 2021-01-09T00:48:47 | 322,429,634 | 3 | 0 | MIT | 2021-01-09T00:40:50 | 2020-12-17T22:40:05 | Python | UTF-8 | Python | false | false | 25,231 | py | from Instrucciones.Sql_create.Tipo_Constraint import Tipo_Constraint, Tipo_Dato_Constraint
from Instrucciones.TablaSimbolos.Tipo import Tipo_Dato
from Instrucciones.TablaSimbolos.Instruccion import Instruccion
from Instrucciones.Expresiones.Primitivo import Primitivo
from Instrucciones.TablaSimbolos.Simbolo import Simb... | [
"luisgodoy0100@gmail.com"
] | luisgodoy0100@gmail.com |
c8920911f3e53cc6e7bfebb1455ae89b72236553 | ab5b84d8128163b371af32680202923c0f1fd270 | /migrations/versions/a9537434024d_.py | 88b2503d4469612df82790e875510b1ad9331b5d | [] | no_license | simonerscott/info3180-lab5 | e15f975a81c7797bcfa38a9b5950727d3f8fefaa | 254cb4db7e14df94fdfac5e1fe39b716a405e3b3 | refs/heads/master | 2021-01-20T13:16:34.418118 | 2017-02-22T16:40:56 | 2017-02-22T16:40:56 | 82,684,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | """empty message
Revision ID: a9537434024d
Revises:
Create Date: 2017-02-21 14:59:28.177834
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'a9537434024d'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | [
"rhoniscott@yahoo.com"
] | rhoniscott@yahoo.com |
0ebb6a295248be257ecedd40fb0ff016662e4c57 | 7c7e93fe386218294913294c8a3f5d3ed2002677 | /veiculos.py | 1df3a443144bdef45f788b15a69d54ddb308437a | [] | no_license | lr-guimaraes/App_CSBA | 3d891f438de07b15a78553c3fc1ee2f0cd0adf64 | eb7f26efbf4a52f222ec394f88e72e5ff47eb354 | refs/heads/main | 2023-08-31T21:37:45.294071 | 2021-10-09T19:33:50 | 2021-10-09T19:33:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,004 | py | class VeiculoMotorizado:
def __init__(self, pp, pf, c):
self.proposito = pp
self.prefixo = pf
self.combustivel = c
class Aviao(VeiculoMotorizado):
def __init__(self, id, pp, pl, c, cor, mod, pa):
super().__init__(pp, pl, c)
self.idAviao = id
sel... | [
"noreply@github.com"
] | noreply@github.com |
825ba8adb07bee46751625e38fa7a655e84f0805 | 70d2c62d0ce2043271947fac87ae110cb0976be2 | /mine/kmergesort.py | 4cfeecc3f1cca6fe74a29ba625d618b2d1f42c2f | [] | no_license | ttanx/CS519-alg | 9ef7292ccae7e22edf11fb2c358bacd86690d115 | dfb2aaf359be1e7946dd99545faac6ae00bd2219 | refs/heads/master | 2020-03-21T22:12:03.369539 | 2018-06-29T06:46:30 | 2018-06-29T06:46:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | import math
def kmergesort(lst, k):
if len(lst) <= 1:
return lst
n = int(math.ceil(len(lst)/float(k)))
lst = [kmergesort(lst[i:i+n], k) for i in range(0, len(lst), n)]
return merge(lst)
def merge(allst):
sorted_lst = []
while allst:
minum,index = allst[0][0],0
for lst i... | [
"lztx0772@gmail.com"
] | lztx0772@gmail.com |
015bae004b213cbcaaf4e2681b58910bf6df0e51 | ffff170c5aaa51704d1dec9e7022b2f814957715 | /src/nnutils/geometry.py | 346ec7ed54e67d82c0997220577a44facd460421 | [] | no_license | harinandan1995/csm | 7cca6013c12cb4a264f1295b859ebe6b4fbe737b | 75853a26e30516e9685224ec2e99b05257be2d52 | refs/heads/master | 2023-01-07T02:12:39.225355 | 2020-07-23T21:15:25 | 2020-07-23T21:15:25 | 311,275,299 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,337 | py | import numpy as np
import scipy.io as sio
import torch
from pytorch3d.transforms import quaternion_to_matrix
def convert_uv_to_3d(uv):
"""
Finds the 3D points on a sphere for the corresponding UV values
:param uv: [..., 2] array of UV values for which 3D points on the sphere should be returned
:retu... | [
"hari.katam@gmail.com"
] | hari.katam@gmail.com |
a37577a470c3c68048933d2d9255107edea598be | 035cf9eac0513be406b191c39208a9732525c2bc | /Cross-edge-Computation-Offloading/cross_edge_offloading/offloading_common.py | 8f12f5672e12c072c011df2fae6338e8344f1d13 | [] | no_license | IbrahimAbdallahElgendy/Implementation_of_MEC_papers | 3aa9824859b6097f88886bacbd7bc664e2b31a3b | 91a664b6ddd283a50d2d9038975aae9fe2195a86 | refs/heads/master | 2020-04-22T15:14:06.816718 | 2019-02-01T17:45:00 | 2019-02-01T17:45:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,913 | py | """
This module contains the class OffloadingCommon, which is the base class of all algorithms (benchmarks, cco and decor).
OffloadingCommon defines several points in a computation offloading problem.
Author:
Hailiang Zhao, Cheng Zhang
"""
from cross_edge_offloading.parameter import Parameter
from cross_edge_offlo... | [
"hliangzhao@163.com"
] | hliangzhao@163.com |
f9ac8f469c15bbe80542f754a3b53160e33e44ce | 6e2bd12a9a77033d49f6784974c15afcef9141fd | /code/capsules/input_data/ck/creat_ck_tfrecord.py | 6a32d511993a78af948f295da790cfc2fe5c5320 | [] | no_license | menorashid/eccv_18 | c7910f800463be949054804604fd05c7ed1344be | 53f4b18699759fff00c884f146f12f35f2f81aeb | refs/heads/master | 2018-10-13T02:54:21.195673 | 2018-09-17T11:23:44 | 2018-09-17T11:23:44 | 110,919,906 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,439 | py | import util
import scipy.misc
import numpy as np
import tensorflow as tf
import os
import random
def _int64_feature(value):
return tf.train.Feature(int64_list=tf.train.Int64List(value=[value]))
def _bytes_feature(value):
return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value]))
def load_image(path, m... | [
"mhnrashid@gmail.com"
] | mhnrashid@gmail.com |
9c1cac03512927ccc0208b233f5d63f79647a6e4 | 0350b6a43c274a29ae3bf1d3199bba4a03b0817c | /covidAsk/covidAsk/covidask.py | 8930e7dc17d96c1e0392888915c0ac15ce9c8f54 | [] | no_license | ericjoshuawang/NLP_COVID19 | 996a1d3b908add50a3ec9ad944bc54f0b9de5a21 | 34128371bc3143f7d8559f591aef4e7c1ed063b5 | refs/heads/master | 2023-01-20T08:04:57.678578 | 2020-11-26T04:20:00 | 2020-11-26T04:20:00 | 259,507,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,761 | py | import json
import argparse
import torch
import tokenization
import os
import random
import numpy as np
import requests
import logging
import math
import best
import copy
import nltk
from nltk.corpus import stopwords
from nltk.tokenize import word_tokenize
from time import time
from flask import Flask, request, jsonif... | [
"eric.j.wang@hotmail.com"
] | eric.j.wang@hotmail.com |
c0afc744a133223bfc25c01bd75865dc24d43207 | b0d5dd673bbd556b877c60a3401b57f5236eae9d | /Code/GUI.py | b001551a62188a51cce2e2724f72e849c866b3ef | [] | no_license | Aorko07/cse470-project | 2db09324215c83a16b89753ef6e4d595880466d4 | 4fbad0e1ebced979f294e166b6d436f1e05fa76e | refs/heads/master | 2022-12-23T17:39:06.184124 | 2020-09-29T18:47:56 | 2020-09-29T18:47:56 | 294,498,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,633 | py | # GUI.py
import pygame
from solver import solve, valid
import time
pygame.font.init()
class Grid:
board = [
[7, 8, 0, 4, 0, 0, 1, 2, 0],
[6, 0, 0, 0, 7, 5, 0, 0, 9],
[0, 0, 0, 6, 0, 1, 0, 7, 8],
[0, 0, 7, 0, 4, 0, 2, 6, 0],
[0, 0, 1, 0, 5, 0, 9, 3, 0],
[9, 0, 4, 0, ... | [
"tahmid.adib07@gmail.com"
] | tahmid.adib07@gmail.com |
fb260a328e8c89d997db7519c7d4ce24ca26ceb8 | f8af8d86c2446de7b50585a579fe54fd84bd85c5 | /demo.py | 9c63396ce2d02ded267a94d41caaf1ad94f12393 | [
"MIT"
] | permissive | filipesouzacit/Genetic-Algorithm-2D-Guillotine-Bin-Packing | 6f8b251fbd64f5134b263fe57966524169bcbf35 | 988efc2e3da9db23a65fdec6024c80730e285f9d | refs/heads/master | 2022-09-21T10:15:32.254920 | 2020-05-28T10:00:00 | 2020-05-28T10:00:00 | 243,855,843 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,401 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Feb 28 20:27:22 2020
@author: Filipe Lucas De Souza
"""
from util import Solution
import matplotlib.pyplot as plt
from random import seed
from GA_C import GA
import numpy as np
_popSize = 100
_maxIterations = 2300
_widthPlates ... | [
"filipe.luca-desouza@mycit.ie"
] | filipe.luca-desouza@mycit.ie |
e66c6f53d8d09b150bdb6c241a8e124d61bcf2a6 | d17a541240aea2ab59ecf23d3606fc2fe9999432 | /hello-button.py | 2d18ae333f21f681b3ddb2e020b8ad1ea1abc360 | [
"MIT"
] | permissive | iotify/hello-iot | 511115ac8f8bcf2fbaf7e3974ef552a693c9ade6 | 10aefb845671b71b39fb9a8928e4b23f36c368d9 | refs/heads/master | 2020-12-24T06:46:19.753793 | 2017-03-18T15:07:58 | 2017-03-18T15:07:58 | 58,822,075 | 6 | 4 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | # External module imports
import RPi.GPIO as GPIO
import time
print("Hello Button")
buttonPin = 9
prevButtonState = True
buttonState = True
print("Setting Broadcom Mode")
# Pin Setup:
GPIO.setmode(GPIO.BCM) # Broadcom pin-numbering scheme
GPIO.setup(buttonPin, GPIO.IN, pull_up_down=GPIO.PUD_UP)
time.sleep(0.5)
#p... | [
"hello@iotify.io"
] | hello@iotify.io |
ecf7270f7ded09aa17be28306247c019ee467075 | ec61d7cf31fc5040b804887369ebbd04bba0da31 | /88. Merge Sorted Array/my_solution.py | 2f6b8f433fc4f320096e4832cf5360c9fbdd4871 | [] | no_license | Tracyee/Leetcode-Games-python | 2bff8aa46df66e933cffe8c1a4155d7d778a08a8 | 08d624956878b9896778c20f397321d4b3312313 | refs/heads/master | 2020-12-12T03:17:48.085653 | 2020-02-23T08:31:39 | 2020-02-23T08:31:39 | 234,028,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | class Solution:
def merge(self, nums1, m, nums2, n):
"""
Do not return anything, modify nums1 in-place instead.
"""
nums1[m:m+n] = nums2[0:n]
# if num1[m-1] > num1[m]:
# num1[m-1], num1[m] = num1[m], num1[m-1]
# if num1[m] > num1[m+1]:
# ... | [
"caiyeee@outlook.com"
] | caiyeee@outlook.com |
17e6bd9feea6e6f1a442c0750a2405a1018fe0dc | 1f7aa658172808a386a97d3f050a981db8a23116 | /rpi/bin/python-config | 3f4039c05edbf9adb91ec59ec203127f47c773fb | [] | no_license | lordoftheflies/loki-machine | f2732374b8bad95cfd2e969439dd20ad9c4f4d80 | 07008b0b31221e222a67179fce5fc543d99e24b0 | refs/heads/master | 2021-01-01T05:14:45.856299 | 2016-05-03T16:52:33 | 2016-05-03T16:52:33 | 57,459,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,365 | #!/home/lordoftheflies/Documents/loki-machine/rpi/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
i... | [
"heglas11@gmail.com"
] | heglas11@gmail.com | |
5879e7e980409ef01f35f576928c6ba2c2c70331 | 3311b2bfb870b0e1f697be885db76aa6535baeb8 | /note/module/07_pandas_資料結構/dataframe_to_recoeds(list fo jinja2).py | f49870c994f371a3a9215497163416231780ab8d | [] | no_license | rogers228/Learn_python | 8f06ceceb553f47f59a2c6fe1f4dd5edc10a8079 | 494ef61545bc946e2ba105483b662beba204c263 | refs/heads/master | 2023-08-31T01:56:32.607799 | 2023-08-30T01:23:49 | 2023-08-30T01:23:49 | 245,773,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,673 | py | dataframe_to_recoeds(list fo jinja2)
print(df)
'''
wk01 wk02 wk03 wk04 wk05
0 1 液壓機械 Hydraulic Mechanical 液壓机械 10
1 2 液壓站 Power unit 液壓箱 20
2 7 工具機選配 Machine tool equipment 工具机選配 25
3 3 油壓泵浦 Hydraulic Pump 泵浦 30
4 ... | [
"61651257+rogers228@users.noreply.github.com"
] | 61651257+rogers228@users.noreply.github.com |
b4250f77025ae143d771bbfca6bcbfb7418c189a | 53c5f1ad5d2db41547103888152703addca03a1b | /run-addon.py | 811a50a0fe42c28bb288286d3f3feea801f14164 | [
"MIT"
] | permissive | chinedufn/blender-actions-to-json | c331a53418ad96fa976b9bc663c761b163717277 | fbd8386accaec3a28102770f0fcf7bcfcbb6074c | refs/heads/master | 2023-04-28T19:23:37.601796 | 2022-03-24T16:42:13 | 2022-03-24T16:42:13 | 102,730,458 | 17 | 7 | null | 2023-04-19T08:12:47 | 2017-09-07T11:45:21 | Python | UTF-8 | Python | false | false | 676 | py | # A script to temporarily install and run the addon. Useful for running
# blender-iks-to-fks via blender CLI where you might be in a
# continuous integration environment that doesn't have the addon
# installed
import bpy
import os
# Get the absolute path to the addon
dir = os.path.dirname(__file__)
addonFilePath = dir... | [
"frankie.nwafili@gmail.com"
] | frankie.nwafili@gmail.com |
06de724c00031041dbf5f85c93db24ebe349b1a0 | c25407ff79a3e91688e7a1b39ca069697df080da | /longpoll-ver.py | fc38191bf6c60da3848bd6d67fd25bd6b3b2467d | [] | no_license | redtardis12/hentai-bot | 7fadd028748b3068cc4b53cf06f65b1b2e3a508d | 3286a1cf8553b12e7ba114fd13459b995d9e9abd | refs/heads/master | 2023-02-02T03:02:20.745262 | 2020-12-19T11:45:51 | 2020-12-19T11:45:51 | 262,651,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,312 | py | import vk_api
import vk
from vk_api.bot_longpoll import VkBotLongPoll, VkBotEventType
from vk_api.utils import get_random_id
import json
import os
import requests
from pydrive.drive import GoogleDrive
from pydrive.auth import GoogleAuth
from random import *
gauth = GoogleAuth()
# Try to load saved client credentials
g... | [
"C:\\Users\\Egor\\AppData\\Roaming\\The Bat!"
] | C:\Users\Egor\AppData\Roaming\The Bat! |
95fc9e17296a7ad44e55366f439ad251a478dad1 | 7e517fd0d350d789d01910c78c73d481e2bff0ee | /Natural Language Processing/Lyrics and Shakespeare Pattern Finder/TextCleaner.py | 4960057913d5de43b2daedd22aacd0165268b628 | [] | no_license | ScarletMcLearn/DataScience | 9cbebd981bdb0f1fe23990347eaec4cf9ce933c9 | 6886a9ebf2752a6f89d4e0d86cf8a5853e0f02cd | refs/heads/master | 2023-08-30T22:12:33.384497 | 2023-07-27T18:21:56 | 2023-07-27T18:21:56 | 81,658,203 | 1 | 1 | null | 2023-08-30T00:03:32 | 2017-02-11T14:29:32 | Jupyter Notebook | UTF-8 | Python | false | false | 6,651 | py | class TextCleaner:
'''Cleans text for Analysis.'''
def __init__(self):
pass
def remove_characters_before_tokenization(sentence,
keep_apostrophes=False):
'''
remove_characters_before_tokenization('Test sentence 1 2 3 4 @')
>>> Test sentence 1 2 3... | [
"noreply@github.com"
] | noreply@github.com |
b0aac71b3c5f99e824dd8bd8e972d1d1fafcdd19 | 568b6ce454de0a5ee4c4a1d56abe2a2fb5daf367 | /app.py | 29c56f54d38d0080f89324d63e7c438efbf645de | [] | no_license | krstfr/FlaskECommerce | cab6fec117600cf960fc247464b92d6bcd64e3e3 | d2d8eecefe0fb5c4b1d8e5cedcaf162b049b5a7c | refs/heads/main | 2023-07-19T06:05:38.113614 | 2021-09-06T19:35:18 | 2021-09-06T19:35:18 | 403,738,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35 | py | from app import app
import config
| [
"chrisello97@gmail.com"
] | chrisello97@gmail.com |
2b12818aa5cddd43d5dea8e7407ed832bcb275d9 | 204f419d96337c8139a1b4a6adbc54125e3b18b6 | /trycatch.py | db8b258e3c72d4ce4814304273afc56ab357b221 | [] | no_license | evillafuerte/python_basico | 79d9ca47dcf18ec6ff4fd00b608a878a8e32745b | e44556037f00fb55daaeba51fc23cd4ee5660070 | refs/heads/master | 2021-01-16T19:08:39.441395 | 2017-08-13T01:13:52 | 2017-08-13T01:13:52 | 100,145,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os, sys
print("Vamos dividir dois números inseridos por você\n ")
num1 = raw_input("Digite o primeiro número: ")
num2 = raw_input("Digite o segundo número: ")
try:
resultado = (int(num1) / int(num2))
print("O resultado é " + str(resultado))
except ZeroDivisionEr... | [
"ernesto.villafuerte@gmail.com"
] | ernesto.villafuerte@gmail.com |
9cee85d1c00136b972b7d062d2c8d5fe26baa467 | 97708e1e87bbca0405dc6917d63f1f2eb1e27869 | /bin/community | a4b59b4767c3e471514bd8def630cf71c1dcd0aa | [] | no_license | tsontario/csi4105 | b3cff0e094ec84a278488d77b238ea996a1524f1 | 2fc3b054a2a5f340431d7a8fcacedc92ac884b4e | refs/heads/main | 2023-01-27T20:35:46.404892 | 2020-12-07T03:33:23 | 2020-12-07T03:33:23 | 315,739,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | #!/home/timothysmith/src/github.com/tsontario/graphs/bin/python3
from __future__ import print_function
import sys
from community import best_partition, load_binary, modularity
def main():
"""Main function to mimic C++ version behavior"""
try:
filename = sys.argv[1]
graph_file = load_binary(fi... | [
"tsontario@gmail.com"
] | tsontario@gmail.com | |
6c1c3f144c2c5f3e4d7058b961206c2195f67349 | 741896d72ab10a4854e6cda00f0a9209c89bec12 | /interestCalculator.py | 4decacfc432f60778d9f66d47b364cf62dad14f3 | [
"MIT",
"BSD-3-Clause"
] | permissive | johnnypackard/python-intro | ac8c08ef21b50aed52f720291bbf0d444f0e8e2e | 15fb9052f1f14aeed3d35f8e2d63d0d4ecfa0741 | refs/heads/master | 2020-03-26T15:39:01.063109 | 2018-08-17T14:59:18 | 2018-08-17T14:59:18 | 145,055,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,968 | py | # In the first line, we are calling the print() function to display
# an informational message. It is the same as printing like
# we previously did in the hello world file
print('Interest Calculator:')
# These next three lines, we're using the following variables to store
# the input provided by the user. The variab... | [
"packard81@me.com"
] | packard81@me.com |
973ba18b125f4e5b5b242ea979a9cdc0f8a12e1d | 8b1e99e9c63eeea44560701103d7a01830cfd7b5 | /setup.py | 73bb71bad3ebf358a8d600c2f4c15695f8ec6eac | [] | no_license | EcmaXp/pymfps | f0e34a459c971732391d73461e8db86da4a30438 | 4eca0c802f956b8d749819fa9bb64689411e34cc | refs/heads/master | 2021-01-18T23:36:31.792486 | 2016-08-25T05:28:11 | 2016-08-25T05:28:11 | 62,020,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | from setuptools import setup, find_packages
setup(
name="pymfps",
py_modules=["mfps"],
entry_points={
"console_scripts": [
"pymfps=mfps:main",
],
},
)
| [
"noreply@github.com"
] | noreply@github.com |
281c684f54e3f5a5ac8c1d3c0e589d191239dc5f | f8d0a64652ab1a3f30a529edf0747cb33bc595d4 | /sesion_profesor.py | d999dc8cf0f997c379bf295220d936d8f2307522 | [] | no_license | Beltry201/reto_compu | 1a862f1b64031fae050561aef46b2328de4ceeee | 71cf91e21572dbd87afd5915a2947e484ec7bcae | refs/heads/main | 2023-08-16T06:40:36.491757 | 2021-10-24T02:26:05 | 2021-10-24T02:26:05 | 417,967,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | from menu_opciones import opcionProfesor
def sesion_profesores (contraseña, matricula):
opcionProfesor | [
"beltrangonzalezdavid@gmail.com"
] | beltrangonzalezdavid@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.