blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
14894d1e14a3780b504d9142885df48497b80280 | bcc4bbf0e67c9c9d9c8dfc51728e0c71f51650d1 | /node.py | d9d60402408ec6e03a01b08d01105740d78e1f18 | [] | no_license | amirmo76/8-puzzle | 6e267942d6090c145fc1e3db56528e57d129d308 | 8ecd22f56927e3cc8cac91f6c54be8c5c2cb2215 | refs/heads/master | 2020-04-26T01:15:49.922472 | 2019-02-28T22:38:55 | 2019-02-28T22:38:55 | 173,198,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 983 | py | class Node:
parent_node = None
node_id = 0
state = [[0 for i in range(3)] for j in range(3)]
depth = 0
priority = 0 # the higher the better
def __init__(self, state, id=0):
self.state = state
self.node_id = id
def diff(self, node) -> list:
return [i for i, j in zip... | [
"amir.mohseni7697@gmail.com"
] | amir.mohseni7697@gmail.com |
6adc317a4712614473d3f93a01a647e9404d5afd | 9be5e0d2b9a35f098df658f964dd3c00587ec1c8 | /cifradocesar.py | 4065ed529db621aeddb03c999719e8d32c1d395f | [] | no_license | minka-it/minka-sec | 124e99e831b579ccc568fe3c396a6c027168b4d7 | 5e17a0720d9da466375150418c5e7fae44eb3cc8 | refs/heads/master | 2020-05-22T05:45:20.456587 | 2016-09-17T14:23:01 | 2016-09-17T14:23:01 | 63,429,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | #enconding
#!/usr/bin/python
#-*- coding: utf-8 -*-
mensaje= "VprPGS{jnvg_bar_cyhf_1_vf_3?}"
mensaje2=""
for i in range(0,255):
for x in mensaje:
print ord(x)+i % 255
mensaje2 = mensaje2 + chr(ord(x)+i % 255)
if mensaje2[0]=="I":
print mensaje2
mensaje2="" | [
"yojota@gmail.com"
] | yojota@gmail.com |
3f6522509688cff83958145efe1e2eb5e58e3ba7 | 7b7181b16cfd10773df8bb13dd5c191893abea54 | /BestGrades.py | fdd1c947627747a1bf35134d2fb5d227083e940e | [] | no_license | agbischof/PythonPractice | 721b841f6ae6956300f15ab92c9a96c75b586525 | 66fd64ac26ae0d97152d7034665e6695b80c160c | refs/heads/master | 2020-04-02T00:06:11.219975 | 2014-02-09T20:33:47 | 2014-02-09T20:33:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | import string
import math
def main(file):
stu = open(file)
BestGPA = 0
for line in stu:
data = string.split(line)
GPA = float(data[3])/float(data[2])
print data[1], data[0], GPA, " of ", data[3], " credits."
if GPA > BestGPA:
BestGPA = GPA
BestStu = data
print BestStu [1], BestStu[0], BestGPA, "... | [
"agbischof@gmail.com"
] | agbischof@gmail.com |
2e74d353ab354e12d997f17a482999f383cf75ab | 68c421b58f43c82ba1f7c5b95138f76094a44f8e | /telemetry_tempest_plugin/scenario/test_gnocchi.py | e283d2f288d9f71f0080f2164111e4f39526039b | [
"Apache-2.0"
] | permissive | NeCTAR-RC/telemetry-tempest-plugin | 37c986541ccad951e2cd7db3394a76a58ea1ce14 | fc990c4ada71ca3c45df2d4733bb1fb4b7f7c9e5 | refs/heads/master | 2021-06-27T03:24:35.519246 | 2019-05-24T06:21:57 | 2019-05-24T06:47:41 | 194,606,282 | 0 | 0 | null | 2019-07-01T05:36:00 | 2019-07-01T05:36:00 | null | UTF-8 | Python | false | false | 1,659 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | [
"sileht@sileht.net"
] | sileht@sileht.net |
bce7cc5f2e71ce4079ecda95b900634320487c56 | f7b84af36babb3a09dea61e9cb46ea3b89267d5f | /src/app/blog/tests/test_post_model.py | 0fc724062e082054d363a5a1d73975aee5adea4c | [
"MIT"
] | permissive | Hammerstad/blog | 600bc1e8bbeb03bd9b566ee8d35170f5e340219a | 3075e59c46321fd5fd5ccafbfb36e6d59b765259 | refs/heads/master | 2020-06-04T01:38:23.997253 | 2015-07-06T11:31:03 | 2015-07-06T11:31:03 | 38,606,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 980 | py | from django.contrib.auth.models import User
from django.test import TestCase
from app.blog.models import Post
from app.blog.tests import LONG_BLOG_POST
class PostTestCase(TestCase):
def setUp(self):
user = User.objects.create_user('testuser', 'testuser@test.com', 'testpassword')
Post.objects.... | [
"emhammerstad@gmail.com"
] | emhammerstad@gmail.com |
d6b66c5898c3f0ff071147ca16a962d71c7d3fe2 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/component_snapshot_context.py | 4520d2f8150fd8c09f48b38ca2704f273519d7c8 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 20,094 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ComponentSnapshotContext:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is att... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
0e56bf8ed73462e6d8d4224877b8ef90282c3bfe | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_managing.py | c3d2619519ac3dfd32082a1f69f6bfb2869a39aa | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py |
#calss header
class _MANAGING():
def __init__(self,):
self.name = "MANAGING"
self.definitions = manage
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['manage']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
b33f5a76faed95895a6c72548508071977696ad1 | 09160ea617d666f6b3959650a0cbeaee7149ab48 | /basetask.py | 5546846c02d75ce57e159c4c617c23eba1347bdf | [] | no_license | zuoyong8/tasks | bc4414a0fc81ef52f583953dcf6be61cec5bdb63 | 6e88fe2691efc9da0237085ddca9df1b9dccead5 | refs/heads/master | 2022-12-14T17:24:54.042382 | 2018-12-22T02:59:53 | 2018-12-22T02:59:53 | 162,776,748 | 4 | 0 | null | 2022-12-08T01:29:40 | 2018-12-22T02:57:22 | Python | UTF-8 | Python | false | false | 1,212 | py | from redis import Redis
from os import getcwd
from celery import Task
from libs.config import Config
from libs.datas import Datas
class BaseTask(Task):
_redis = None
_config = None
_match_order_data = None
_user_token_data = None
@property
def redis(self):
if self._redis is None:
... | [
"coder188@outlook.com"
] | coder188@outlook.com |
7b06c684fd2b0a31351ff28413161eaaa81ddb1b | 8bad0b305f5563ea95fb7233e891c23012568094 | /1D-Ultrasonic-Targeting/imager.py | 0f113480b215e242d0f803e1b2519a5c91538c42 | [] | no_license | bkl535/1-day-projects | efb80d9d72f4b16ca0f83517073b7f56abe5e8c6 | a1a390d08bd8d08d0730032c6c7e84d41debe514 | refs/heads/master | 2021-01-10T14:13:16.959345 | 2016-04-10T01:18:53 | 2016-04-10T01:18:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | from time import sleep
import xlwt
import serial
import numpy as np
import matplotlib.pyplot as plt
sample_rate=6
n_pos=180
plt.axis([0,180,0,250])
plt.ion()
plt.title('Graph')
plt.xlabel('Angle (deg)')
plt.ylabel('Object Distance (cm)')
plt.show()
dx = []
dtheta = []
for j in range(0,n_pos*4):
dx_in = ser.rea... | [
"bkl53@msstate.edu"
] | bkl53@msstate.edu |
3f665983980b3dfbdb68b158d3d5c14afc97defa | bab615fdcd881260ef189c736db62e0297acb8c9 | /geocomp/convexhull/bhatta_sen.py | 43442aaaccf1e51691f9813060dfc711150f642c | [] | no_license | kokosha/MAC0331 | ca6cd1b96f3c6c0bf8ebccd8e78b234d83588845 | 7fac0dfd2ec4fce41ff7ec34062c0f5f1d99401b | refs/heads/master | 2020-04-04T19:51:03.340552 | 2018-12-15T21:43:54 | 2018-12-15T21:43:54 | 156,222,940 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,202 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""B. K. Bhattacharya and S. Sen.
On a Simple, Practical, Optimal, Output-Sensitive Randomized
Planar Convex Hull Algorithm.
J. Algorithms, 25:177--193, 1997
http://citeseer.nj.nec.com/206645.html
"""
from geocomp.common import control
from geocomp.common.polyg... | [
"jiang.zhi@usp.br"
] | jiang.zhi@usp.br |
d35548b0e453cd2577815b23e395954965d3dc5b | 6584124fee86f79ce0c9402194d961395583d6c3 | /blog/migrations/0008_auto_20150603_0708.py | 3f31a14ba2dcb128cea981661d996c147b8152a8 | [] | no_license | janusnic/webman | fdcffb7ed2f36d0951fd18bbaa55d0626cd271e1 | 2e5eaadec64314fddc19f27d9313317f7a236b9e | refs/heads/master | 2018-12-28T18:21:00.291717 | 2015-06-05T11:49:00 | 2015-06-05T11:49:00 | 35,676,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,550 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import blog.models
class Migration(migrations.Migration):
dependencies = [
('blog', '0007_page'),
]
operations = [
migrations.CreateModel(
name='Slide',
field... | [
"janusnic@gmail.com"
] | janusnic@gmail.com |
472037244a88c43d49ab5670c21260c01b07c702 | a383364706ed999584d1ed949349db23db6f6f65 | /online_inference/maincode/app.py | 95583090de86e630e1e24e380ac06e1bd8468b0a | [] | no_license | made-ml-in-prod-2021/mikhail.gashkov | 0454320b54d5455a984ae1ae10ecc0a6a4b77c47 | c9cf89bda8b2a9de41731a1aed8533b677760120 | refs/heads/main | 2023-06-06T11:10:47.700270 | 2021-06-27T04:12:22 | 2021-06-27T04:12:22 | 353,569,377 | 0 | 0 | null | 2021-06-27T04:12:23 | 2021-04-01T04:10:32 | Python | UTF-8 | Python | false | false | 1,171 | py | import logging
import os
from typing import List
import uvicorn as uvicorn
from fastapi import FastAPI, HTTPException
from fastapi.exceptions import RequestValidationError
from fastapi.responses import PlainTextResponse
from backend import make_predictions
from data_model import HealthModel, HealthResponse
logger = ... | [
"mihael.gashkov@gmail.com"
] | mihael.gashkov@gmail.com |
b360e3e157190224e81b6e189a55ae789afa61e9 | 34f36fef36150e83601adb1009b4882bd95fc148 | /p.py | af8cb92fa563f86faea52d83e6caf6af44a13b09 | [] | no_license | 3HeadedMonkey/Python | c1a89bc6dff3b55ac13bc03f4c3ff023ce365acd | 06128491e6ef870d5b0e0fda3cad4cc1a49e7213 | refs/heads/master | 2021-09-11T19:56:29.325623 | 2018-03-20T13:02:34 | 2018-03-20T13:02:34 | 126,019,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13 | py | print("%%%")
| [
"3HeadedMonkey@users.noreply.github.com"
] | 3HeadedMonkey@users.noreply.github.com |
7aa31be9cc6026eb4f8b0ce8c4e7e1636d024a8f | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/50/usersdata/134/19167/submittedfiles/contido.py | 0def95c7b5340172307b304f557314328b69cd1f | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | # -*- coding: utf-8 -*-
from __future__ import division
n = input('Quantidade de elementos de a:')
a = []
for i in range(0,n,1):
a.append(input('Digite um valor:'))
m = input('Quantidade de elementos de b:')
b = []
for i in range(0,m,1):
b.append(input('Digite um valor:'))
cont = 0
def lista(a):
a[0... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
ebad41a0a472c097626b041094292085846763a6 | 2b0d94ad66f4e5c625a312333dfcfe1e674a718f | /graph.py | 3059d7a01351b042aa6495a90bb0a6312e6329eb | [] | no_license | boggdan95/HojaDeTrabajo-10 | 853ef90bf9aec743b74892077a59e8703af1eda5 | 320d77967cb4971f1ec372ef83f0fe017f16aec5 | refs/heads/master | 2016-08-11T20:27:40.646654 | 2015-11-09T05:53:13 | 2015-11-09T05:53:13 | 45,612,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,343 | py | #!/usr/bin/env python
"""
An example using Graph as a weighted network.
"""
__author__ = """Aric Hagberg (hagberg@lanl.gov)"""
try:
import matplotlib.pyplot as plt
except:
raise
import networkx as nx
import numpy
G=nx.Graph()
G.add_edge('a','b',weight=0.6)
G.add_edge('a','c',weight=0.2)
G.add_edge('c','d',we... | [
"bandabog@gmail.com"
] | bandabog@gmail.com |
b744c07a9686bbcc763c17cbe204208b510095ed | 13525377024c6d91a5eee2f120caf1f837b42683 | /Python/Notebook/Structures_N.py | 528ab8b09f987316f40a183a4eb4157d69c10071 | [] | no_license | BASARANOMO/water-distribution-network-convex-optimization | b6ea0b6c17734ff00f04065ff3a4b216166acffd | 454e87fa668cfbabe3e62991c87b24d679df6c75 | refs/heads/main | 2023-02-25T12:39:50.978120 | 2021-02-03T08:55:07 | 2021-02-03T08:55:07 | 335,556,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,942 | py | #!/usr/bin/python
###############################################################################
# #
# STRUCTURES DE DONNEES NECESSAIRES A LA RESOLUTION DES EQUATIONS DU RESEAU #
# ... | [
"39518094+BASARANOMO@users.noreply.github.com"
] | 39518094+BASARANOMO@users.noreply.github.com |
95d4da6dbcfa202c339c75ac5c91a3666d1ee502 | d6992d0e69f240c631432ec98168e324f7150c1f | /sonun/urls.py | b6afe081276a7aea6f2ca8cf4a6fb80799176836 | [] | no_license | kairatGroupd/sonunfasion | a574e50f463de931f689e0342358430a4b7a4e55 | be5ac690066af2f57c4f877a7a9aeefd76a92947 | refs/heads/master | 2023-04-24T04:20:41.978650 | 2021-05-15T09:16:30 | 2021-05-15T09:16:30 | 362,811,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | from django.urls import path
urlpatterns = [
]
| [
"isma.kairat101@gmail.com"
] | isma.kairat101@gmail.com |
2bd10e95182d3011ae67968c95b516bf96e7b0ba | 5071f4ff46f7bb92afe86b9032323d73d729e3db | /ch1_p_event_combine.py | 43be556a559dc2fe57310a28c92bc23165278a62 | [] | no_license | yjioni/openCV | 8e2bdbacec6ef82a3fb0c2ca244cc452819904be | 75e655acdc6b6e8d490a171a3509f895c919e8fb | refs/heads/main | 2023-08-17T11:35:26.937612 | 2021-10-11T12:10:49 | 2021-10-11T12:10:49 | 408,723,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | import cv2
import numpy as np
win_name = 'Track bar'
img = cv2.imread('C:/Users/oing9/Documents/Crawling/img/blank_500.jpg')
cv2.imshow(win_name, img)
color = tuple()
def onChange(x):
global color
print(x)
b = cv2.getTrackbarPos('B', win_name)
g = cv2.getTrackbarPos('G', win_name)
r = cv2.getTrac... | [
"oing922@gmail.com"
] | oing922@gmail.com |
1bc628b4e98dcf6afdaa50584923cf76595a081b | ca0af7949100176fb5b0aa69f65fc1cc4c16e497 | /study14_TSA_DieboldKilian_predictability_test.py | 529aaa89cec22a30d3f1c6a9bd9767aa66b57069 | [] | no_license | jwackito/ftssimu | 8bda78ad1b42378751a2112f65263d2872f482af | b231943ac7bb77c22ca574556a3ca16d353fac9d | refs/heads/master | 2021-05-25T10:46:34.578584 | 2021-05-03T20:23:17 | 2021-05-03T20:23:17 | 127,146,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,566 | py | ''' This module has essential functions supporting
fast and effective computation of permutation entropy and
its different variations.'''
import itertools
import numpy as np
import pandas as pd
from scipy.spatial.distance import euclidean
def s_entropy(freq_list):
''' This function computes the shannon entropy of... | [
"jbogado@linti.unlp.edu.ar"
] | jbogado@linti.unlp.edu.ar |
73d56ed3f94761554d905bebd658ee569b78ff51 | 6685ffa043b91daf8ca7a9007f936b09dd2fb752 | /navbar/products/migrations/0001_initial.py | 5929d2d5f573b8af35c501d5c063f137392ea4ee | [] | no_license | TheKalpit/Bootstrap-Navbar-in-Django-Admin | 8113b3e7be8c3a09ffe0291a526be22cbc756099 | a0fdbedbf21c651a7191d9bd00c09c70a04881a9 | refs/heads/master | 2023-01-27T10:59:06.675747 | 2018-09-11T19:51:53 | 2018-09-11T19:51:53 | 147,719,631 | 8 | 8 | null | 2023-01-04T12:09:42 | 2018-09-06T18:56:17 | CSS | UTF-8 | Python | false | false | 1,059 | py | # Generated by Django 2.1.1 on 2018-09-06 17:25
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
('id', models.AutoField... | [
"14352316+TheKalpit@users.noreply.github.com"
] | 14352316+TheKalpit@users.noreply.github.com |
6e62b6a94f556f56721f4c83e23b79e90a9d3e9e | 9d01e03d2e1ff388aad8331280892192e02c0f9d | /limix_genetics/test/test_mvnorm.py | 3fe54045b300c7d796064df3b8d5a0c6ef22f528 | [
"MIT"
] | permissive | limix/limix-genetics | a1dd7e18f55ce62265ca3deaeac0b83ff71239d8 | 9c69a59a61e030243a9f865a7f7ae8842859eaee | refs/heads/master | 2021-01-20T11:00:16.974644 | 2017-02-14T13:26:48 | 2017-02-14T13:26:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | from limix_genetics import mvn_ecdf, mvn_eicdf
from numpy.testing import assert_allclose
def test_mvnorm():
x = [1, 2]
mean = [1.0, -0.3]
cov = [[1.5, 0.2],
[0.2, 0.7]]
cdf = mvn_ecdf(x, mean, cov)
icdf = mvn_eicdf(cdf, mean, cov)
assert_allclose(cdf, 0.98032128770733662)
asse... | [
"danilo.horta@gmail.com"
] | danilo.horta@gmail.com |
53dff7f55eafba911413f49df5babf34aabadd83 | d01596ef17d2f19222c9ddc3823c7b9105d60414 | /venv/bin/easy_install | f8bfd259d11a5292b019867dac97932e7d58b1b6 | [] | no_license | DariusBuhai/InfoarenaGODZ-Django | bf41060986e6b3f989104f38b6cb6c21ccf89495 | e3bb875469f2f0c1d090de8f6402e28ba0824391 | refs/heads/master | 2022-03-18T22:36:53.626500 | 2019-11-05T12:19:28 | 2019-11-05T12:19:28 | 219,039,208 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | #!/Users/dariusbuhai/Desktop/Programs/Django/InfoarenaGODZ/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'(-scrip... | [
"buhaidarius@gmail.com"
] | buhaidarius@gmail.com | |
432e3093767c4cbbc0c3e171e6b78a3877a04112 | 1fbf79261b27e4f62e2575ec702b1e6ae5820939 | /Python/0131_04_---파이썬---.py | 4c3964919a9ce158ff0be340ed85795975721ba4 | [] | no_license | sunnyhyo/big_data | 9512dafccddf20a9ab91d5fe45598334cfe69d20 | b4e2a3d0cbd690c4b773fcbe28bd5983bfd03d58 | refs/heads/master | 2021-05-02T14:38:39.332507 | 2018-03-03T06:45:37 | 2018-03-03T06:45:37 | 120,723,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | ss=input('문자열 입력==>')
print('출력 문자역==>', end="") ## end="" 옆으로 출력##
if ss.startswith('---')==False:
print("---", end="")
print(ss, end="")
if ss.endswith('---')==False:
print("---",end='')
| [
"sunnyhyo77@gmail.com"
] | sunnyhyo77@gmail.com |
90d423c92b10cb9fa0de7d72cc09c0403fd34487 | 37f37114f2a8b4ca3f2e335be09ce2ca10d98421 | /venv/bin/pip3.7 | 9a4e0ec702d2ab3c2981b9abc8b0d66a976456ef | [] | no_license | samuraitruong/python-flask-101 | 8d511be6b17bd032816cccef14cfce4c622aa6c5 | 1ded9d75cddae32de383560d5e232e76c1280f92 | refs/heads/master | 2020-05-30T16:26:39.313912 | 2019-06-02T12:45:33 | 2019-06-02T12:45:33 | 189,845,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | 7 | #!/Users/imac/PycharmProjects/untitled/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"truong.nguyen@team.telstra.com"
] | truong.nguyen@team.telstra.com |
30d8b731ace754c6d55e68b0962b3618613e33f7 | 8092609ad3f42cfb7ca249be35305f2390acc1c6 | /SNOW CLASS.py | bcb5d293130adc1a3af52696fa8c96d6b582dfbe | [] | no_license | BrichtaICS3U/assignment-2-logo-and-action-alex-b15 | a0f83122194dedd68e87a6645bf3b950d2e980f2 | 776671390e0403b2e0893e297e9a924e09467126 | refs/heads/master | 2020-03-11T09:09:49.463330 | 2018-04-20T14:59:16 | 2018-04-20T14:59:16 | 129,903,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 703 | py | import pygame
WHITE = (255, 255, 255)
BLACK =(0,0,0)
GREEN =(0, 255, 0)
class Snow(pygame.sprite.Sprite):
def __init__(self, color, width, height, speed):
super().__init__()
self.image = pygame.Surface([width, height])
self.image.fill(GREEN)
self.image.set_colorkey(GREEN)
... | [
"S331394007@OCDSB"
] | S331394007@OCDSB |
066c9e55d84474d25d481229e1e85c28e840dc3d | 8040b4e3549b68d0dd74878cd31b458104644348 | /test/testRoutes.py | 5e848a001e96ef84f8ff4b4d4c805b85b72db3f1 | [
"MIT"
] | permissive | ahaywardtvuk/PyGeodesy | cbf3bf795d5539f09a95492ec967cde5fdce6189 | 3a7c03c42237102af0a9ab23b2d550020a601d98 | refs/heads/master | 2023-08-29T21:02:06.318878 | 2021-09-30T17:17:50 | 2021-09-30T17:17:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483,502 | py |
# -*- coding: utf-8 -*-
# Test data for the simplify functions.
# <https://GitHub.com/milkbread/Visvalingam-Wyatt> not Whyatt!
# <https://GitHub.com/milkbread/Visvalingam-Wyatt/blob/master/route.json>
# <https://GitHub.com/milkbread/Visvalingam-Wyatt/blob/master/out.json>
# <https://milkbread.GitHub.io/Visvalingam-... | [
"mrJean1@Gmail.com"
] | mrJean1@Gmail.com |
de0fd47404e19c1931ac4894e375a34b7d739b29 | 5c4e5678ebbdfc35796c7a7437f1a95fd500db96 | /Notebooks/tarea9.py | d50cf77b8ea09b50b66181720d337e3bbb3998c9 | [] | no_license | Gall-oDrone/thesis-po | cdb6c37b3c3abe192127a237fecfc61c83069bcc | 91cc383d6befe1d864c3cb7d13031852db0eb321 | refs/heads/master | 2023-06-08T19:50:13.338470 | 2021-06-27T22:50:57 | 2021-06-27T22:50:57 | 380,850,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,005 | py | #Librerias
import tensorflow as tf
import tensorflow
from tensorflow import keras
import os, os.path
from os.path import isfile, join
import numpy as np
import pandas as pd
import seaborn as sns
import random
import matplotlib
import time
import matplotlib.pyplot as plt
from matplotlib import pyplot
from keras.dataset... | [
"ubuntu@ip-172-31-60-51.ec2.internal"
] | ubuntu@ip-172-31-60-51.ec2.internal |
152a606f97b30406ce5a75885b83239dd16060fc | 6a1f7e6151ad4afe4b0ce4724973d4533dc64741 | /dentalwebsite/migrations/0002_form_one.py | 152b11f1eca7301258d9b9da7c8060cff55c4673 | [] | no_license | CarlYebes/FirstWebsite | c35d6c5371ff1c86db1fca7f672b6f4ed30afc8c | 805f0b32d929f5621dc651cfa8638edbccb123c0 | refs/heads/master | 2023-08-03T16:50:27.934039 | 2020-07-12T09:54:32 | 2020-07-12T09:54:32 | 273,384,385 | 0 | 0 | null | 2021-09-22T19:25:23 | 2020-06-19T02:17:21 | CSS | UTF-8 | Python | false | false | 623 | py | # Generated by Django 3.0.7 on 2020-07-12 09:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dentalwebsite', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Form_one',
fields=[
... | [
"yebes77gmail.com"
] | yebes77gmail.com |
ee25a66b06ddc0dd45433bf9d8379b7c0c4756c8 | b7138c79af422f2c7180c0e7d4ccdabbc09ab599 | /mysite/polls/models.py | 0a07cef39631b94c3db3e49673296127613a9bcb | [] | no_license | hhabgood/first-django-app | 7b8edab35eda16d7ca1e8ac8b64a16f100a96107 | 45f47b390477acf879b5a8f4ae7523b0967c76a2 | refs/heads/master | 2016-09-05T10:00:00.115209 | 2012-12-29T04:31:51 | 2012-12-29T04:31:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | import datetime
from django.utils import timezone
from django.db import models
# Create your models here.
class Poll(models.Model):
question = models.CharField(max_length=200)
pub_date = models.DateTimeField('Date Published')
def __unicode__(self):
return self.question
def was_published_recently(self):
retur... | [
"henryhabgood@Henrys-MacBook-Pro.local"
] | henryhabgood@Henrys-MacBook-Pro.local |
09db5f8c4dc2f8c5519c4be380ceba9a3514c66f | fbcceb5fecaba387c28210154bf27555dbf4dcaa | /core/views.py | 8403fce0316428b1bad66ec0cb19b03c81b77386 | [] | no_license | saksham1991999/Marine | 01a1735f5888ebc6e8881c1513b1cd78f468c3fa | d5cb5d9f237cfad59a75e1718dcf1981754d3a94 | refs/heads/main | 2023-02-25T19:01:53.174107 | 2021-02-03T08:19:55 | 2021-02-03T08:19:55 | 335,495,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,001 | py | from django.shortcuts import render, get_object_or_404
# Create your views here.
from core.models import Location
from core.serializers import LocationSerializer
from rest_framework import viewsets, status
from rest_framework.response import Response
from rest_framework.decorators import action
# ViewSets define the v... | [
"saksham1991999@users.noreply.github.com"
] | saksham1991999@users.noreply.github.com |
34d9075fcb8f6a7780fc543fbf024cec7ef1ce6c | d05c946e345baa67e7894ee33ca21e24b8d26028 | /general/gmail-api/gmail_api.py | 3ff3265516251943f18ce1f75b9483a7152eb03e | [
"MIT"
] | permissive | x4nth055/pythoncode-tutorials | 327255550812f84149841d56f2d13eaa84efd42e | d6ba5d672f7060ba88384db5910efab1768c7230 | refs/heads/master | 2023-09-01T02:36:58.442748 | 2023-08-19T14:04:34 | 2023-08-19T14:04:34 | 199,449,624 | 1,858 | 2,055 | MIT | 2023-08-25T20:41:56 | 2019-07-29T12:35:40 | Jupyter Notebook | UTF-8 | Python | false | false | 2,348 | py | # for parsing commandline arguments
import argparse
from common import search_messages, gmail_authenticate
from read_emails import read_message
from send_emails import send_message
from delete_emails import delete_messages
from mark_emails import mark_as_read, mark_as_unread
if __name__ == '__main__':
parser =... | [
"fullclip@protonmail.com"
] | fullclip@protonmail.com |
99f8262b6cec043218a0a2857e49d0730d5c1b2b | 1f64ad2fbd46b5ca779525694224d3c3a0df3621 | /mac/urls.py | 45e3a626e9eff83978ee52b72830c7d09e265cba | [] | no_license | naman267/hostecommerce | 866167216373dee806834c7b93bff20a5d6e7a2c | dd6a79940347373c580a723fc2aaad2844e2a2f5 | refs/heads/main | 2023-01-29T02:03:31.006117 | 2020-11-30T17:16:06 | 2020-11-30T17:16:06 | 317,238,793 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,256 | py | """mac URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/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 vie... | [
"namanb139j@gmail.com"
] | namanb139j@gmail.com |
a5f4ced5d11aa5d3a0ca8c571f25d9806a584c2e | 9a39e38d2e291abf840ee74c625a6e30eb0833bb | /DFS回溯/leetcode_78_排列子集.py | 91056884d7f3037cb0d69557a9760d70aace5cbd | [] | no_license | Gyczero/Leetcode_practice | 62dd261d6d9d51d9f8bec41cfcf3059301cf1b82 | 6708479302cca3ea3d930e6e80264f213ea29c5f | refs/heads/master | 2020-03-25T05:22:13.047777 | 2019-11-10T06:17:42 | 2019-11-10T06:17:42 | 143,443,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/10/18 11:38 上午
# @Author : Frankie
# @File : leetcode_78_排列子集.py
from typing import List
class Solution:
def subsets(self, nums: List[int]) -> List[List[int]]:
"""
思路:DFS
可选数组
choose过程
path记录 res总结结果
... | [
"guotaicheng@tuyoogame.com"
] | guotaicheng@tuyoogame.com |
4d8c9e72253b36357ac9da790ac0470411996637 | 64c5341a41e10ea7f19582cbbf3c201d92768b9f | /webInterface/webInterface/aligner_webapp/alignworker/converters/__init__.py | 0e064af14769dfc7fe765fe1bd5b633c0724dfa8 | [] | no_license | CLARIN-PL/yalign | 6b050b5c330b8eaf7e1e2f9ef83ec88a8abe5164 | 6da94fbb74e803bea337e0c171c8abff3b17d7ee | refs/heads/master | 2023-06-10T18:30:42.112215 | 2021-06-24T13:07:17 | 2021-06-24T13:07:17 | 51,368,327 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,508 | py | import os
import logging
import shutil
import subprocess
import tempfile
from alignworker.tmp import get_temp_file
from .tokenizer import tokenize
from .detokenizer import detokenize
from .tmxconverter import to_tmx
from .tsvconverter import to_tsv
log = logging.getLogger(__name__)
def doc_to_plaintext(path):
"""... | [
"krzysztof@wolk.pl"
] | krzysztof@wolk.pl |
582cbd1623dd4d7eeb37ca6fb75423a60dfd4e18 | 1bd6d5502534e2450ba45697b7089370095012b9 | /Publications/migrations/0007_auto_20170712_1738.py | 20333a50954933e50982b8bbb1ba6a3b8c3dd34f | [] | no_license | bipindr123/DSCEdjango | bb337b60508de651d306460aba71e88828e6d2bf | e2bf0b73b5834d37c6e189a3e2123b2355db835b | refs/heads/master | 2018-12-08T21:22:29.369776 | 2018-09-16T09:45:48 | 2018-09-16T09:45:48 | 122,481,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-07-12 12:08
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Publications', '0006_auto_20170712_1735'),
]
operations = [
m... | [
"bipindr123@gmail.com"
] | bipindr123@gmail.com |
0a9cfcf2ec82d45e6d0ddd8ea55c06257b146864 | d5f3a51e6e7c156965895339cfe3a5914459b579 | /ngflaskcurd/utils/filters.py | 4bf6aa543fa56221c6d320c6312b38b3697f340f | [] | no_license | vaveee/ngflaskcurd | 4b4427dc3aca72a147d43dffa7e5d97b56c51a56 | 85ff9d5df0614c9a53a8ad6ef40e2783e22a9053 | refs/heads/master | 2020-04-26T09:09:02.795216 | 2015-04-27T07:40:36 | 2015-04-27T07:40:36 | 34,651,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from __future__ import absolute_import
import re
import datetime
from jinja2 import evalcontextfilter, Markup, escape
from HTMLParser import HTMLParser
class MLStripper(HTMLParser):
def __init__(self):
self.reset()
self.fed = []
def handle_data(self... | [
"vaveee@qq.com"
] | vaveee@qq.com |
c4676b9a3e52c62f37c50d24fd5b6e05d2b37b6e | 4f04e11e9181b04b8c34138eb226ca113c34985e | /assignments/assignment 2 - traffic B.py | 49df2cccb7afe45ab070884c1efad88a66acd2d4 | [
"CC-BY-4.0",
"CC-BY-3.0",
"MIT"
] | permissive | WRKampi/numerical-mooc | b83f299594d4bf50d4ae217bb6ef78c7d143f0fa | 0a3771289e26f2c91918fd982a85511f79042e03 | refs/heads/master | 2020-12-03T10:40:26.307293 | 2020-11-11T20:10:10 | 2020-11-11T20:10:10 | 26,779,974 | 0 | 0 | NOASSERTION | 2020-11-11T20:10:11 | 2014-11-17T22:16:48 | Jupyter Notebook | UTF-8 | Python | false | false | 1,260 | py | """assignment 3 of the Numerical MOOC.
Traffic flow
1D model solved by forward difference in time and backward difference in space.
Different parameters as in part A
"""
import numpy as np
import matplotlib.pyplot as plt
# problem parameters
V_max = 136. # km/u
L = 11. # km
rho_max = 250. # cars/km
nx = 51
dx = L/(nx-... | [
"wrk_git@fastmail.fm"
] | wrk_git@fastmail.fm |
c60387fc2f7c95b345959d7f6fe4fb0a6bdf87d6 | ce428689244a1d38c1a2d85ea769b58c8c19378e | /main.py | d50a889d2cf98ef30490a94c7913416835a16d40 | [] | no_license | nandybishal23/Image-to-ASCII-Art | 7be89d6caa639036b311a6395e9ea0333bd5fff1 | 1a43f9bf378cee7355e873d0388330c0945d143a | refs/heads/main | 2023-04-01T20:55:58.229155 | 2021-04-12T03:12:22 | 2021-04-12T03:12:22 | 357,042,067 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | import pywhatkit
pywhatkit.image_to_ascii_art('input.jpg','output.png') | [
"59905645+nandybishal23@users.noreply.github.com"
] | 59905645+nandybishal23@users.noreply.github.com |
9cb6fbc14b3a93b651df194e9ff910eb9a3fc3ca | d9c35991fc54af811e329afcf4b1519910394518 | /blob_api/blob_api/asgi.py | 7fb95d49af8e991d15a0c13a88a1acb6eb15aa64 | [] | no_license | Gaurav98700/DevopsCiCd | a6bbae6ba00504322b4021a5c440e77d486c5ef9 | 4328ec4c26167b3657c880617dd6244878613900 | refs/heads/main | 2023-03-20T02:05:07.819916 | 2021-03-15T14:00:14 | 2021-03-15T14:00:14 | 348,227,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
ASGI config for blob_api project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETT... | [
"gaurav.5.gupta@atos.net"
] | gaurav.5.gupta@atos.net |
8edc48e1691172ead4b934b2b58fe6342f292901 | 5b4686ace41ebfcb2c694283b232761010cf31d7 | /libraries/pyserial/serialutil.py | 7d51752ff05e315397c26f9046da44bf76af0ba9 | [
"Apache-2.0"
] | permissive | gepd/Deviot | bbf4d40fbecb8187255a4ab0f3e4dae7e5a7d985 | 150caea06108369b30210eb287a580fcff4904af | refs/heads/develop | 2023-08-18T04:13:56.932126 | 2020-07-13T18:02:23 | 2020-07-13T18:02:23 | 47,856,861 | 335 | 91 | Apache-2.0 | 2023-01-28T02:53:49 | 2015-12-11T23:56:06 | Python | UTF-8 | Python | false | false | 21,692 | py | #! python
#
# Base class and support functions used by various backends.
#
# This file is part of pySerial. https://github.com/pyserial/pyserial
# (C) 2001-2016 Chris Liechti <cliechti@gmx.net>
#
# SPDX-License-Identifier: BSD-3-Clause
import io
import time
# ``memoryview`` was introduced in Python 2.7 and ``bytes... | [
"guillermoepd@hotmail.com"
] | guillermoepd@hotmail.com |
8f4305a715b7001f035cd96c718cd3ab7f10925d | 05fa3773bb72a267d83b43819440c907a8fc80c3 | /picarus/vision/video_combined_features.py | d22ed8765e0e8ec2a7110cec67f1c3046b98e8a7 | [] | no_license | objects-in-space-and-time/picarus | 91ce2ac87a3acd84603996cf0e2c4f3df0a6e49e | 04745c47396891d97dc7ad3752ebce5c9b79f33a | refs/heads/master | 2020-03-27T06:01:28.562484 | 2012-12-05T07:50:16 | 2012-12-05T07:50:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | import video_raw_features
import video_block_features
import sys
import hadoopy
class Mapper(object):
def __init__(self):
self.b = video_block_features.Mapper()
self.r = video_raw_features.Mapper()
def map(self, event_filename, video_data):
hadoopy.counter('CombinedFeatures', 'DontHa... | [
"bwhite@dappervision.com"
] | bwhite@dappervision.com |
0e2ce782e1d999efc7214a20494d52ac43598cab | b7a5f0190086966a06963a01a1e404449a9ad5f5 | /baseline/evaluate_gpu.py | 0148d1db187046762636a21de96191fb232bbebc | [
"MIT"
] | permissive | Chaucergit/deep_reid | 63bbf3a3b9a2cf56b193572a76ecd1e95cd05e38 | 75ab34dd3814485743aa55a1d29a5dd36a68c0d5 | refs/heads/master | 2020-07-05T05:22:55.498753 | 2019-05-01T16:33:34 | 2019-05-01T16:33:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,938 | py | import argparse
import os
from datetime import datetime
import scipy.io
import torch
import numpy as np
import time
#######################################################################
# Evaluate
from utils.file_helper import write
def evaluate(qf,ql,qc,gf,gl,gc):
query = qf.view(-1,1)
# print(query.shap... | [
"cweihang@foxmail.com"
] | cweihang@foxmail.com |
d3ad272076ee9759071811293e8a7a681e1901ba | a549c1cb49692a6dab0935b617ed942394629bf9 | /Celery/scheduler/scheduler/settings.py | d5be5b8b062625a69ce8cabb8b26ac68a64b73b5 | [] | no_license | Godwinjthomas/Internship | 18a786ac87127bab6188c4cebeb4814a1efc1ab4 | 830c202b478a2a3521493c64172f97e50d213b74 | refs/heads/main | 2023-06-29T19:55:38.058371 | 2021-07-29T18:17:13 | 2021-07-29T18:17:13 | 390,814,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,303 | py | """
Django settings for scheduler project.
Generated by 'django-admin startproject' using Django 3.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib... | [
"87801046+Godwinjthomas@users.noreply.github.com"
] | 87801046+Godwinjthomas@users.noreply.github.com |
ed13abcb1e2058ea6d0fb7f3bf240330c664151f | 2c135601989f7a5a6c591576dcb5646c5ca19d5b | /static_file/loginoutcase | 98e72aa552d8bb98bc3832be5270128abfda32d8 | [] | no_license | zhixuchen/AutoTestPlatform | db077fb9c7ca9524e7fa3781a5397cbff29315a4 | bc539eaa7cbbbcd4a32e911ade41f826f7490d85 | refs/heads/master | 2023-01-09T11:34:28.789596 | 2020-11-16T06:46:15 | 2020-11-16T06:46:15 | 265,992,771 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@Time : 2020/11/1 11:17
@Author : chenzhixu
@Email : 1195733026@qq.com
@File : mobile_action.py
@Project : AutoTestPlatform
"""
import unittest
from WebforAutoTestPlatform.static_file.mobile_plugins import MobilePlugin
class LoginOutCase(unittest.TestCase):
@sta... | [
"noreply@github.com"
] | noreply@github.com | |
7787bd0506a97003a41242177ee3ac24c4b43919 | 1d3d8f023bfb1442a651af62cd00bebde456d354 | /manager/migrations/0010_result_number.py | 858c19df0cf22463ca1e2ad2d22e05b745196598 | [] | no_license | zhanghaoyan/sale | 173cf81827480ade23f400dfec294810618c2d10 | dfb85f3fa8a9a870534e8b4ef2ae1f56f557eb30 | refs/heads/master | 2020-12-30T14:12:49.405924 | 2017-05-22T15:52:49 | 2017-05-22T15:52:49 | 91,289,177 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-05-16 09:49
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('manager', '0009_result_dealtime'),
]
operations = [
migrations.AddField(
... | [
"zhanghaoyan@elex-tech.com"
] | zhanghaoyan@elex-tech.com |
430f17611bdb0d4a7f118f816207e74bb4b21c6c | fb710aec952ba7b9dc6db3c2203df84c1a59fa57 | /MosquittoPuBSub/MQTTSubscriber.py | bdc2a8703e26bb98a94bddb1a475ad81ec4157dd | [] | no_license | dkiiitnr/MosquittoBasic | 9e630bed1b394a27a70bc2c08182e76b95b0fde0 | abe904d1a467bb4cdfc3892eaabc99341819dea0 | refs/heads/master | 2023-03-15T21:04:58.307473 | 2021-03-07T15:10:35 | 2021-03-07T15:10:35 | 345,373,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,710 | py | import paho.mqtt.client as mqtt
import time
import pandas as pd
import os
# Taking the variables for the methods
client = mqtt.Client("Data Logger")
topicName = "unbox/frame_to_aggregator"
QOS_val = 2
global counter
i = 0
node_0 = []
node_1 = []
node_2 = []
node_3 = []
new_node_0 = []
new_node_1 = []
new_node_2 = []... | [
"yadav1996deepak1@gmail.com"
] | yadav1996deepak1@gmail.com |
4d78643d901fd554c695ee14e2f79334177eb94c | 991fc97fa022c0d7f6ae5bc6844b7b1e9e013589 | /domain/achievement/migrations/0001_initial.py | a47b8e7e572b5f3b1f3bdeebf2599d5d03bfa940 | [] | no_license | pseudobabble/ufunction | 436c143801933c23a23404b34525402ffaf8587e | 6cd04061a7dca99aa5a5aba2caec0f778eb98aee | refs/heads/master | 2023-05-28T08:10:32.599993 | 2020-07-01T06:21:02 | 2020-07-01T06:21:02 | 276,285,944 | 0 | 0 | null | 2021-06-10T23:07:02 | 2020-07-01T05:34:15 | Python | UTF-8 | Python | false | false | 9,069 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.21 on 2019-06-08 22:07
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Cre... | [
"harryjohnson500@gmail.com"
] | harryjohnson500@gmail.com |
4bf48b2ed02568666239a4e90b3c039774f52091 | 14fe3323f06e144ab25a4732df66f0c6a4bdf118 | /pdfmaker.py | 5b80e279bd4a58aba4f9c49f66686ae565df2e6c | [] | no_license | seelengxd/pdfmaker | d981c64c35bbfa6e9d8d356e7ac6c65d6a87a1b4 | 05739387e3bb07f621e07a7d8dd479e4d56b8ee5 | refs/heads/master | 2023-01-21T16:37:21.583534 | 2020-12-01T11:10:03 | 2020-12-01T11:10:03 | 274,309,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,748 | py | #script for classkick
from PIL import Image
import os
import sys
# deal with filepaths so the terminal does its thing in the right place
path, pdfname = sys.argv[1:]
os.chdir(path)
#extract the trash ppm
for pdf in [i for i in os.listdir(path) if i.endswith(".pdf")]:
os.system(f'pdfimages "{path}/{pdf}" image')
o... | [
"seelengxd@gmail.com"
] | seelengxd@gmail.com |
5f0fd310c984a64a57bc59ae1e99311d2051f972 | fe0f6ee607a333b35c3caa68a832dd2610e3f963 | /src/group_operations.py | 97b510d5b7b72a66b3f32a00a9a63052057cbdcd | [] | no_license | chuck1l/pandas_tools | eddf1f9eacf82a10660953c6f6b05d63f69b3913 | 597024639500c002becc673984578ca4dff306bd | refs/heads/main | 2023-06-03T18:59:26.478226 | 2021-06-08T13:14:07 | 2021-06-08T13:14:07 | 373,902,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | import pandas as pd
import numpy as np
df = pd.read_pickle('../artist_df.pkl')
grouped = df.groupby('artist')
| [
"lawrence.williams@modivcare.com"
] | lawrence.williams@modivcare.com |
70ae3f9668228d23bac6ec72331d7b7bcbcced16 | e2bf28a98b8da0fcb132c37dbd47146a5f6efa20 | /fill-in-the-blanks.py | ec5870dee3cd2dc5c1a87dd909b369d25454ac00 | [] | no_license | udaysolanki4/Python_mini_projects | 3d58612ac0e9675c2aae2283416c500ec16c5dd0 | d9853218a4d7396697a4fd33d18b6928b892bcfd | refs/heads/master | 2020-06-18T20:50:54.641863 | 2019-09-15T10:59:48 | 2019-09-15T10:59:48 | 196,443,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,271 | py |
s1=["The bus stand is directly _________ the police station.",'behind']
s2=["As the doctor __________ into the room, the nurse handed him the temperature chart of the patient.The court _______ cognisance of the criminal's words.",'came','took']
s3=["The improvement made by changes in the system was ________ and did no... | [
"noreply@github.com"
] | noreply@github.com |
d324d64a883ad3958f5aa9e0218c1dea7eac664b | 1bed028026b58b4a02e75e3ce751e5525f113a57 | /app/api.py | 7b6b640ec6d2dbac2b8065e41e4cf293c8086536 | [
"MIT"
] | permissive | webclinic017/SFJ-MSR | 203c0d095b25b7957c633e2d7bc9976f992615cd | f87f45df46341ae8d9f2e84484cccbdde26b9baf | refs/heads/main | 2023-08-28T05:58:46.508324 | 2021-10-20T23:23:19 | 2021-10-20T23:23:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,105 | py | # ************************************************************************************************** #
# #
# ::: :::::::: :::::::: ::::::::::: #
# api.py... | [
"contact@allali.me"
] | contact@allali.me |
ed55f0271ac1d2cd8a0e0037831655e7e69ede08 | 28214a271c00779da8baa208cb155b3a8425d355 | /infrastructure/InchirieriRepo.py | dbce51cb4ecbf0a7e5584705437de9430a9baba7 | [] | no_license | cristimc8/temalab79 | 206e03df6d14a11ee4ca0c345a0b568fd9debc19 | c5bfc68a626e44dc16dcdfd25ce28fefb2944268 | refs/heads/master | 2023-01-22T03:50:58.069379 | 2020-11-25T15:39:30 | 2020-11-25T15:39:30 | 310,410,406 | 0 | 1 | null | 2020-11-25T15:39:31 | 2020-11-05T20:30:48 | Python | UTF-8 | Python | false | false | 1,453 | py | class InchirieriRepo:
def __init__(self) -> None:
self.__listaInchirieri = []
def adauga_inchiriere(self, inchiriere, ui=True):
'''
Functia care adauga o inchiriere noua in lista
in -> client Client, film Film
'''
self.__listaInchirieri.append(inchiriere)
... | [
"cristimc8@gmail.com"
] | cristimc8@gmail.com |
adfbe0b6910b3dfc436ae935c24ba4d89ef0505a | 621fec63ba65d000f8f539bd6b5238202e35644b | /blackandwhite.py | 3fc6f0dbcfad81e78d41f6f3d4d88542996a6f7d | [
"MIT"
] | permissive | DiptoChakrabarty/ImageColrization | f764cffe82183ce951c130aa0d9af0e5c80eca48 | c0cd1ae59ad99bced57b34376ce3191a1c2241a8 | refs/heads/master | 2021-01-01T12:45:54.964214 | 2020-02-24T17:09:19 | 2020-02-24T17:09:19 | 239,286,196 | 0 | 0 | null | 2020-02-09T11:00:26 | 2020-02-09T10:37:02 | Python | UTF-8 | Python | false | false | 489 | py | import cv2
import os
import numpy as np
path="./colored"
upload="./black"
colored=list(os.path.join(path,f) for f in os.listdir(path))
count=0
for images in colored:
count+=1
photo=cv2.imread(images)
resized=cv2.resize(photo,(400,350))
cv2.imwrite(images,resized)
cv2.imshow("lakes",photo)
cv2.... | [
"diptochuck123@gmail.com"
] | diptochuck123@gmail.com |
97902651994af5246d31c0ef82be24aaafce3e02 | aa80e6233f4ee38fd5c1efb28df2ef6da4f0b8af | /dictionary.py | f45e889be1c03bdf747395a76781f0937c92f393 | [] | no_license | kafleyj/Python | 444708e965c93a473e2ff2fc97c8fb6803fbfe06 | ba180045c07a8da2445214394c9226abddcc5d0d | refs/heads/main | 2023-05-08T15:21:04.568821 | 2021-05-30T07:03:24 | 2021-05-30T07:03:24 | 372,107,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | myDict={
"Fast": "In a quick manner",
"Harry":"a coder"
"Marks": [1,2,3,4]
print(myDict['Marks'])
# update and get are als uese
| [
"kafleyj55@gmail.com"
] | kafleyj55@gmail.com |
0d4351f5ba5cbee9cbc4fd70fd0bd187dc02cce1 | deccd45912966718d48ea9594aaf04626491e4d2 | /test/test_poll_api.py | a49bbebea58cc5f22ffe04365f70fcf8ae021b55 | [] | no_license | CS3398-Luna-Sea/SeeBus | 12925872bee84cee25c5b8645a6f7de795767e65 | b685dcbc77a4eea5c482a647475e414074c699c5 | refs/heads/master | 2022-12-15T10:14:31.813506 | 2018-12-06T02:53:34 | 2018-12-06T02:53:34 | 149,679,544 | 0 | 0 | null | 2022-12-08T01:14:10 | 2018-09-20T22:48:47 | Python | UTF-8 | Python | false | false | 759 | py | from unittest import TestCase
import sys
from os import getcwd
sys.path.insert(0, getcwd() + '/backend')
import poll_api as api
class TestPollAPI(TestCase):
def test_get_buses(self):
self.assertTrue(isinstance(api.get_buses(), list),
"poll_api.get_buses() should return a dictionar... | [
"zachstence@gmail.com"
] | zachstence@gmail.com |
f1a4d301432e77e5d6f8bb22ff148586cfe5df6b | 0e8665a8611717c34bbffb3f4393554f58145d4b | /Python/signaltools.py | 0f21f3473cc792c41690f6180b6caed6c7f1044a | [] | no_license | OmarJaroudi/Dardish-Code-NLP | f7b8f645bfbf5b4c2904e85707e2d7964868f34e | 5b354cfdb84198e3c19c184f0862c488634f2388 | refs/heads/master | 2020-09-12T10:12:48.335018 | 2020-01-24T07:40:03 | 2020-01-24T07:40:03 | 222,390,937 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 142,222 | py | # Author: Travis Oliphant
# 1999 -- 2002
from __future__ import division, print_function, absolute_import
import operator
import sys
import timeit
from scipy.spatial import cKDTree
from . import sigtools, dlti
from ._upfirdn import upfirdn, _output_len, _upfirdn_modes
from scipy._lib.six import callable
from scipy im... | [
"noreply@github.com"
] | noreply@github.com |
044f7c32f493aff71c86622b981ca59b9bd3e71a | 8bd759e487304cdd176524fff8d9b95f1572586f | /backend/api/upbit.py | 0abc7d6c5071b6839312a9ef49d363b0cd5ddf78 | [] | no_license | eodudsla10/DropTheBit_backend | 2732564f1ed93d061a5c14948857aaed0cf2954c | 37f8d0fe5eb522b12faf84ba196e4bf77c2bd11c | refs/heads/master | 2023-04-10T03:03:54.218241 | 2021-04-26T17:31:05 | 2021-04-26T17:31:05 | 360,761,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,602 | py | import json
import requests
from pandas.io.json import json_normalize
#url_info = {"upbit" : ["https://api.upbit.com", "/v1/candles/minutes/1" , "market", "KRW-BTC"],
#"binance" : ["https://api.binance.com", "/api/v3/ticker/price", "symbol", "BTCUSDT"],
#"bithum" : ["https://api.bithumb.com", "/public/ticker/BTC", "sy... | [
"eodudsla10@naver.com"
] | eodudsla10@naver.com |
b37de808e75120539eb4dc6c91fd2b891811f745 | 4e8cab639ddfa3e791b5b3a08aa491fb92c1ecaa | /Python_PostgresSQL/Python Refresher/destructuring_variables.py | 070fb9609470e6f1b01a01bdf420cd7ba46e0835 | [] | no_license | LesediSekakatlela/SQL_projects | 49b91bebdf6f9b1176c40c3752232ab8d3d091dd | 9c78fc027dd137ef96446ea0946343293f3be007 | refs/heads/main | 2023-07-13T02:41:41.261558 | 2021-08-20T09:03:23 | 2021-08-20T09:03:23 | 386,646,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | t = 5, 11
x, y = t
print(x, y)
#2
students_attendance = {"Rolf": 96, "Bob": 80, "Anne": 100}
print(list(students_attendance.items()))
for t in students_attendance.items():
print(t)
#3
people = [("Bob", 42, "Mechanic"), ("James", 24, "Artist"), ("Harry", 32, "Lecturer")]
for name, age, profession in people:
... | [
"leseditumelo32@gmail.com"
] | leseditumelo32@gmail.com |
055e41fa46070180a9f651f2d085fa3553b60c43 | ed3d4c3ce2109d96a145a8b4e90cf2763203d542 | /source/lambdas/shared/utility.py | bfd9b81ef665ca9cee835021777acb11513dc95c | [
"Apache-2.0",
"MIT-0"
] | permissive | jhasatis/TabularDocumentDigitization | 939ea104b4c5f43f1e81af20bb1a4636d061d41b | 633e6291eea95a3933d34cae53b68cf6570b9bbb | refs/heads/main | 2023-06-28T01:12:22.621879 | 2021-08-05T17:33:48 | 2021-08-05T17:33:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
from shared.defines import STAGE, STORE_BUCKET
def GetS3OutputPath(document_id: str, output_filename: str = 'output.json', stage: str = STAGE) -> str:
"""Returns S3 path for output file created by Stage Actor"""
... | [
"psnonis@amazon.com"
] | psnonis@amazon.com |
b2226029f546fb15e00557c03454cf6e6907c7a3 | e51213e9379f4fe2eddc5bd65b8aa5bfec4be117 | /voting/wsgi.py | cef305c2ed98dbc9fb58fb5a141eed67b17346b4 | [] | no_license | NatashaSay/voting | 65d49f8f02c062c586eaf2dc1c58491a9c2a8dac | 4674c90382fc7ba67dcbf10d58010efda4e9017a | refs/heads/master | 2022-10-02T03:59:05.255344 | 2020-01-09T20:04:49 | 2020-01-09T20:04:49 | 224,504,007 | 0 | 0 | null | 2022-09-23T22:33:57 | 2019-11-27T19:36:15 | HTML | UTF-8 | Python | false | false | 390 | py | """
WSGI config for voting project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"nataliia.saichyshyna@nure.ua"
] | nataliia.saichyshyna@nure.ua |
c805769e7c7870835953e3cc6f75171540adeca0 | ec0b8c74ae4f370e47aa1a19adfa654b2766a19f | /src/run_ganterpreter.py | 33af7402ef8571b199b84fc01cc96fab9861c32e | [
"Apache-2.0"
] | permissive | psc-g/ganterpretation | e8c37ce4a5ddd81c5f933a667ffef0696b56773b | 98a963d098e0cf5a49dced1300840388001eeddf | refs/heads/master | 2021-07-14T02:27:20.704844 | 2020-11-30T21:12:45 | 2020-11-30T21:12:45 | 218,511,004 | 22 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,679 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from absl import app
from absl import flags
import ganterpreter
flags.DEFINE_string('output_dir', None, 'Directory where to store output.')
flags.DEFINE_string('wav_path', None, 'Path to wav file to use.')
f... | [
"psc@google.com"
] | psc@google.com |
80c1c37cc41d905504a06271ad41051f849c026c | 30734acba3e5720f697df7db46c404af4529bfc9 | /Agent/Deploy/Source/stembot/stembot/ramdocument.py | 065fe9c000c309406552b62243d6d75f4e09d25c | [
"MIT"
] | permissive | phnomcobra/valarie-content | 0879b055ff41c68377515dcdc62689cb26febd83 | b1f6242605badd2b0b2e53c4320f5d963b5e0b21 | refs/heads/master | 2020-04-14T01:33:45.785396 | 2019-04-21T20:46:40 | 2019-04-21T20:46:40 | 163,563,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,763 | py | #!/usr/bin/python
import traceback
from copy import deepcopy
from counters import increment
from threading import Lock
from utils import sucky_uuid
document_lock = Lock()
document = {}
class Document:
def __init__(self):
document_lock.acquire()
if "TBL_JSON_COL" not in document:
... | [
"root@dev5.phnomlab.net"
] | root@dev5.phnomlab.net |
c30ead0a4a09ff09b00b703aa798719fcdb7d145 | 8f086a9cd492fdb5851eadc7867cb12cf6c1bd78 | /Preprocessing/PreparingSa7e7Moslem.py | c42109030820cff0af60ead89209d36ed5962245 | [] | no_license | MohamedMagdyOmar/MSTRepo | 232f8a8dd3daa0d45e1b812cec1bb309aaf6cd29 | c90974057e31de4b7b18aa21ca9303c2a4066978 | refs/heads/master | 2020-05-20T23:02:19.443493 | 2017-10-07T11:22:12 | 2017-10-07T11:22:12 | 84,539,910 | 0 | 0 | null | 2017-10-07T11:22:13 | 2017-03-10T08:55:30 | Python | UTF-8 | Python | false | false | 657 | py | # -*- coding: utf-8 -*-
import unicodedata
import re
f = open("/home/mohamed/Desktop/test.txt", 'r')
read_data = f.readlines()
f.close()
listOfWords = []
wordCount = 0
for eachSentence in read_data:
wordsInSentence = eachSentence.split()
for word in wordsInSentence:
word = re.sub('[-;}()0123456789/]... | [
"eng_mohamed_magdy@hotmail.com"
] | eng_mohamed_magdy@hotmail.com |
4d829624041911fed2cd1788ffcb96a7077fce7a | 9eeec8105cec97cd9fd5833c970eb1e8220049e9 | /fuse/utils/config_tools/tests/test_config.py | da719b891ca5a1671c44a7a9afb42339049a2a0c | [
"Apache-2.0"
] | permissive | BiomedSciAI/fuse-med-ml | 9e5891f515c14be968a21f8576e2933716da94d0 | 8f22cd46c836245b9394b73ce2957afc03706bfc | refs/heads/master | 2023-08-29T12:47:28.549164 | 2023-08-28T10:42:52 | 2023-08-28T10:42:52 | 379,590,754 | 45 | 11 | Apache-2.0 | 2023-09-10T11:26:00 | 2021-06-23T12:10:42 | Python | UTF-8 | Python | false | false | 2,061 | py | """
(C) Copyright 2021 IBM Corp.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
d... | [
"noreply@github.com"
] | noreply@github.com |
9a104961bcb3bc88f2da05a0f1fde4d7cbf64f5b | 059552af21ad05dc29af6100c4889883538e738d | /utils/utils.py | b9478e1625f3201dfc71a9e240e57866325a35a6 | [] | no_license | Muxindawang/yolov3-pytorch | cd8da416db2cb0b74b6db7590ce5b30e67a3f418 | 7e6e9d763a29638b118e35bda2f4fb127e317791 | refs/heads/master | 2020-09-29T08:41:50.232096 | 2019-12-17T08:24:56 | 2019-12-17T08:24:56 | 227,002,271 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,653 | py | # coding:utf8
from __future__ import division
import math
import time
import tqdm
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
import numpy as np
# import matplotlib.pyplot as plt
# import matplotlib.patches as patches
def to_cpu(tensor):
return tensor.det... | [
"noreply@github.com"
] | noreply@github.com |
ee3737ad9a44751baf07d69836e86be717986f9b | dbaa8c84e7c7f211cf9c86139db37aa77d04615f | /miner/niroj/midstate.py | 9162dbd487d03041a91da023e2b887616f87c892 | [] | no_license | NirojPokhrel/fpga-based-bitcoinminer | 5905e8099f72b7c478955536b439c21077fd8f74 | 258799df96936fc185f1586a71455e6d1c7b4497 | refs/heads/master | 2021-01-13T02:42:22.212691 | 2019-08-16T14:55:21 | 2019-08-16T14:55:21 | 77,180,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,547 | py |
import struct
import util
# Some SHA-256 constants...
K = [
0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1,
0x923f82a4, 0xab1c5ed5, 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3,
0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174, 0xe49b69c1, 0xefbe4786,
0x0fc19dc6, 0x240ca1cc... | [
"nirojpokhrel@gmail.com"
] | nirojpokhrel@gmail.com |
7fa051e8b4c4f78f4441293efc92b534c2a08c5c | c751562ea538476464a13a281f321cbfebf89b76 | /python_stack/Django with Ajax/demos/main/apps/ajax_notes/models.py | c38bde3a9a7e020ce7189fdb85397987dfb674e6 | [] | no_license | brizjose/JBCodingDojo | 7e598419c0e090be4a92f7c3e80323daa9b4bb26 | fc161de86995d285bb5b2c39e28e9adbe04faebc | refs/heads/master | 2020-03-21T09:31:02.402139 | 2019-02-18T03:45:22 | 2019-02-18T03:45:22 | 138,403,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
# Create your models here.
class NoteManager(models.Manager):
def CreateNote(self, context):
messages = []
if context['title'] == "":
messages.append("Title cannot be blank, please insert title... | [
"brizjosem@gmail.com"
] | brizjosem@gmail.com |
ff997a1fccf69381da8daaab4c8668bbc4ac74f2 | 564d6a4d305a8ac6a7e01c761831fb2081c02d0f | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_12_01/aio/operations/_network_interface_ip_configurations_operations.py | 7e680e53b36d37aa71b6bfced0ce22536e6ef870 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | paultaiton/azure-sdk-for-python | 69af4d889bac8012b38f5b7e8108707be679b472 | d435a1a25fd6097454b7fdfbbdefd53e05029160 | refs/heads/master | 2023-01-30T16:15:10.647335 | 2020-11-14T01:09:50 | 2020-11-14T01:09:50 | 283,343,691 | 0 | 0 | MIT | 2020-07-28T22:43:43 | 2020-07-28T22:43:43 | null | UTF-8 | Python | false | false | 8,912 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
fcbeb66d771fe65d6f4b915e7b411ead7068a80b | 2f17a24d8b13498a6ada3097ae0be9f1c11fdf6e | /core/migrations/0003_location_rating.py | 2e0e8938dd95877f2413580a07d3897b8b14585a | [] | no_license | neuman/onemonthlandingpage | 1789f4cae051dcb7504930db04dc4d84af900fd7 | 912a3ea1bb12d66772c1140d5539c5f3fa1a51c2 | refs/heads/master | 2021-01-23T03:21:12.125909 | 2015-02-17T06:41:46 | 2015-02-17T06:41:46 | 30,907,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0002_location_created_at'),
]
operations = [
migrations.AddField(
model_name='location',
nam... | [
"soloptimus@gmail.com"
] | soloptimus@gmail.com |
eb7719667a312580c26095223dd19ffdeaeda145 | 8240633e8b127147750e0f86ce1c9077f4f8a604 | /diceroller.py | e3ce123940eb1c561cdf795b822b50bfc08d2262 | [] | no_license | matvop/codeguild | a91e8f897db748e8d097a734b1a173b3444deb1c | e96fcda5299ed1c3e292360cbb25df8c26c0e130 | refs/heads/master | 2021-01-21T13:43:55.334668 | 2016-05-20T22:57:13 | 2016-05-20T22:57:13 | 55,080,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | #dice roller program
print('')
print('')
import random
print('How many dice would you like to roll?')
number_of_dice = int(input())
roll_num = 0 #roll number
total = 0 #sum of all die values
while number_of_dice != 0:
rand_num = random.randint(1,6)
roll_num += 1
print('Roll # ' + str(roll_num) + ' came o... | [
"matvop@gmail.com"
] | matvop@gmail.com |
16302299b7dbf257211b0183d46f92c125d4dd87 | 855773f2d575e2d1e91c1fd6deb7e0581d30b6b4 | /Project-Library Management/LIBRARYMANAGEMENTPROJECT/LIBRARY/MyLibrary/migrations/0006_auto_20200725_2102.py | fe4e4947e2be6d8ee21015e056867480964c0807 | [] | no_license | thekzafar/thekzafar.github.io | e422574b49105e89a2e094b908a997beb473b0e4 | c972a2f2c31793fc76c780e04a3f8ff72f243e00 | refs/heads/master | 2023-03-07T14:56:43.617694 | 2021-02-19T05:38:57 | 2021-02-19T05:38:57 | 340,260,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | # Generated by Django 3.0.8 on 2020-07-25 15:02
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('MyLibrary', '0005_delete_user'),
]
operations = [
migrations.AlterField(
model_name='borrow',
... | [
"karimazafar.yvf@gmail.com"
] | karimazafar.yvf@gmail.com |
391d6b41347eaed37843d533873b24430cff13dc | 724afba6b3534620645b0a2f7f91b1b10297458f | /code/resources/store.py | dc02bf05ba1052dec43559bcdf904348b5670e92 | [] | no_license | Jaco26/flask-with-flasksqlalchemy | 94b9dc091ec1a9cc71aec2171ebff6733c6889d3 | a212408c187cc390874684e7ab5e9ae0e411b617 | refs/heads/master | 2020-04-02T20:15:06.248009 | 2018-10-27T19:59:04 | 2018-10-27T19:59:04 | 154,762,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 926 | py | from flask_restful import Resource, reqparse
from models.store import StoreModel
class Store(Resource):
def get(self, name):
store = StoreModel.find_by_name(name)
if store:
return store.json() # default HTTP status = 200
return { 'message': 'The store called {} was not found'.format(name) }, 404
... | [
"jacob.albright23@gmail.com"
] | jacob.albright23@gmail.com |
4538004f106fffe79d316a3c4935178f4a9bc725 | 0517d16821ae92719f0d96d8036cf72effb0cc36 | /everscript/__init__.py | df2fb0f35bd217a79b8a7e8a4cfdb9022415082c | [] | no_license | von/everscript | 07ea72157f993e8c2f538c884806e37e9c7521c9 | c61dc9f5fed679cedd9dac80718784d23e798dda | refs/heads/master | 2020-04-12T07:37:46.649065 | 2013-02-13T16:23:23 | 2013-02-13T16:23:23 | 2,486,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | from constants import *
from EverNote import EverNote, EverNoteException
from Note import Note
from Notes import Notes
from Plugin import Plugin
from ToDo import ToDo
from ToDos import ToDos
| [
"von@vwelch.com"
] | von@vwelch.com |
fa4a06802d3f953cd0c28fba3c8d0c4cb548a7a1 | df8a733eebe79767b4762dc8b5da46149c59174c | /constants.py | ab8a5cd2b141fd13a20b6621b6e7391cf6ae5035 | [
"MIT"
] | permissive | vgkinis/iso_cfm | a113284495c012d538c66d27c05e556ba6beba76 | b3c1620bd01d56e4d057647ad27ee16b72182e87 | refs/heads/master | 2021-06-24T03:07:13.968473 | 2020-12-10T17:50:36 | 2020-12-10T17:50:36 | 152,418,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 999 | py | R = 8.314 # gas constant used to calculate Arrhenius's term
S_PER_YEAR = 31557600.0 # number of seconds in a year
RHO_1 = 550.0 # cut off density for the first zone densification (kg/m^3)
RHO_2 = 815.0 ... | [
"noreply@github.com"
] | noreply@github.com |
07ebd670ecd117507ddf36caa641436cef8c69bb | bad6abecaf33aa2f262681c03e5e3205e6bb8088 | /ntc_project/settings/migrations/0001_initial.py | f3fb47dbdf20cb599663fb87280d3b8061f021f3 | [] | no_license | NotesXI/ntc_repo | 55f064e6e62e24bd0f72be1d8a9c6dcace851e65 | 6517bbb66b520d8b4bfde7434f921dc70bd299ef | refs/heads/master | 2020-03-30T08:21:40.733524 | 2018-11-22T08:27:30 | 2018-11-22T08:27:30 | 151,009,048 | 0 | 4 | null | 2018-11-22T06:36:35 | 2018-09-30T21:33:39 | JavaScript | UTF-8 | Python | false | false | 1,110 | py | # Generated by Django 2.1.2 on 2018-11-22 07:02
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='CreditCards',
fields=[
('id', models.AutoFi... | [
"emmanuel.adw@gmail.com"
] | emmanuel.adw@gmail.com |
fcd4080d3f9f605d4b08c466f0ca0c34880aa09c | 01493e3fc3778cd2f2140700a511400abb4c92dc | /example.py | ae95a51c0420009715190286be58a7dd7a9a794d | [] | no_license | Heisenberg-Chef/py_logging | 694f8fe0a681462a953203239be0eaf7f9f1d50d | d5e1d3a09e0e0230bc4d43de8373b4331ad560da | refs/heads/master | 2022-04-15T16:38:24.990840 | 2020-04-10T08:08:48 | 2020-04-10T08:08:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | import logging # 引入logging模块
import os.path
import time
# 第一步,创建一个logger
logger = logging.getLogger()
logger.setLevel(logging.INFO) # Log等级总开关
# 第二步,创建一个handler,用于写入日志文件
rq = time.strftime('%Y%m%d%H%M', time.localtime(time.time()))
fh = logging.FileHandler("abc.txt", mode='w')
fh.setLevel(logging.DEBUG) # 输出到file的l... | [
"qilei@Heisenberg.local"
] | qilei@Heisenberg.local |
fe002bc5b86c3fcd2422da3a33f253a29d6fbeb6 | 63bbc7ab710f9b5c61fa1cbf9a7ed75912d05e17 | /marine/convergence.py | 7120442c6489b01bcda230584f24472e3f4a34c0 | [] | no_license | jinmang2/Gachon_Research | 7550025c69c914b2a37d41981b3796789b4b3dce | 62c091ecbf1e53235edabf641a1a44253f52d424 | refs/heads/master | 2020-06-04T20:28:47.065122 | 2019-12-04T03:47:45 | 2019-12-04T03:47:45 | 192,180,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,141 | py | import numpy as np
import pandas as pd
import math
from scipy import stats
from scipy.stats import norm
class ConvergenceAnalysis(object):
def __init__(self, df, r = 0):
self.df = df
self.t_df = pd.concat([df[i] for i in df.columns if any((df[i].dtype == np.float, df[i].dtype == np.int))], axis=1)... | [
"noreply@github.com"
] | noreply@github.com |
a9642d6c74ccc57e476b12e9fcc18c36bc7a0d0f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02913/s870183594.py | 9f40aaa7f32fff9e55ca4ec7a16c32dad0b4c50a | [] | 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 | 479 | py |
M = int(input())
T = input()
ans = 0
for l in range(M):
i, j = 1, 0
S = T[l:]
N = M-l
Z = [0]*N
Z[0] = N
while i < N:
while i+j < N and S[j] == S[i+j]:
j += 1
Z[i] = j
if j == 0:
i += 1
continue
k = 1
while i+k < N and ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
08962005ac1013198fdafc5d96370cc25d722955 | 155d6488c494967bb96eeb231acb27b4a0509e9b | /kNNTest.py | d83b1fda10b39c4532c65b2d5472308bee5f019a | [] | no_license | zerolinux5/machine-learning | 927ea78b1db7fdb05d279d9b73d183a1b22a5d79 | 4102b6b2e82deae95988e6bc94db1d3a03624111 | refs/heads/master | 2021-01-10T19:33:56.967316 | 2014-09-14T04:22:18 | 2014-09-14T04:22:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 591 | py | import kNN
import matplotlib
import matplotlib.pyplot as plt
from numpy import array
group,labels = kNN.createDataSet()
print (group)
print (labels)
print kNN.classify0([0,0], group, labels, 3)
datingDataMat,datingLabels = kNN.fileToMatrix('datingTestSet2.txt')
print datingDataMat
print datingLabels[0:20]
fig = p... | [
"maganazero5@gmail.com"
] | maganazero5@gmail.com |
b2671507ad3edbd3f78490511834217b722cfa39 | 1f70b745ea7d867cf46226901d42741098837126 | /postimage/migrations/0010_photo_price.py | 00a29b030c7d0f3e3d7cf2da63219f4de95ee45c | [] | no_license | zhan860127/django_sale | 0ce7d94145c93cba805d309919efe9e9028e8412 | ae559d2d92628daaf0b8d9ffcee9c0e70f6b2423 | refs/heads/main | 2023-07-16T19:15:48.769587 | 2021-09-03T13:14:41 | 2021-09-03T13:14:41 | 386,940,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | # Generated by Django 3.2.5 on 2021-07-20 08:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('postimage', '0009_alter_photo_name'),
]
operations = [
migrations.AddField(
model_name='photo',
name='... | [
"zhan860127@gmail.com"
] | zhan860127@gmail.com |
534c61a551e00f0eb519d6ba577102b9ab81f4f2 | 6dc0f0f6c79efed8cd09a77cdf03328f9f1fbadf | /node_modules/fsevents/build/config.gypi | a7f74fad15d8d1eba33d971dd72a082aeb92e157 | [
"MIT"
] | permissive | waynekingcool/loveMH | 465183efb781e324c2ca73372bba08871d04dad0 | 333d78dbd7ea9be69c90f43b28f1f784262962c4 | refs/heads/main | 2023-02-26T14:23:20.821468 | 2021-02-05T10:02:59 | 2021-02-05T10:02:59 | 330,107,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,088 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"dcheck_always_on": 0,
"debug_nghttp2":... | [
"2641415119@qq.com"
] | 2641415119@qq.com |
e10440c3b022311e7e3f8255e41e920a81620a1b | c6d84655a8424c8ade139fd79ae1bbb1514f8c88 | /05socket/udp_producer.py | c8f3cd16854e8e3a5104c25dece2780513a69411 | [] | no_license | eryeer/pythonStudy | 64240934ce463e7e9714fc7f0d7a6608cefab837 | 5c6a69ef10c0df38f89aee7e5d5cc9802a2b424b | refs/heads/master | 2020-04-08T15:16:19.579466 | 2019-04-15T06:13:41 | 2019-04-15T06:13:41 | 159,472,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | import socket
def test(a: str, b: int) -> int:
print(a)
print(b)
return b
def main():
# test("1", 2)
udp_socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
udp_socket.bind(("", 7890))
# udp_socket.sendto(b"hahaha", ("localhost", 8080))
while True:
send_data = input("i... | [
"eryeer@163.com"
] | eryeer@163.com |
38355cde10cce1c38b527f4881ae08e583000a80 | 978b3484a069de59033bfa21ae4ea9db033c4b7c | /djpaystack/transaction.py | 2133e2de97046b7200787420e4fb45cf8d2292af | [] | no_license | boiyelove/hookup | 3b83223bf8c9a3b407a0c2f3d4f3496de01fcbee | 59d44ce353d9f4f079e31b904da59e8185a8f401 | refs/heads/master | 2023-03-20T20:38:18.233708 | 2021-03-16T13:08:02 | 2021-03-16T13:08:02 | 140,166,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,634 | py | from .base import Base
from .settings import TRANSACTIONURL
class Transactions(Base):
def __init__(self):
super(Transactions, self).__init__()
self.baseurl = TRANSACTIONURL
def initialize(reference='', amount=0, email=''):
'''
PAYSTACK TRANSACTION API
Initialize Transaction
curl https://api.payst... | [
"daahrmmieboiye@gmail.com"
] | daahrmmieboiye@gmail.com |
536fba4fdb2a99ebef575064ab074cb45d45a901 | 97dcebb2c2c07e1259c47b52db3c9ff5a9f96d8e | /Tops/asgi.py | 22c5c6892a254320b14e90cdedfcad5d3e0bd201 | [] | no_license | Zemochka/tops | 2ee0ba6ca13ee1a80ef48eafde2908bcb3503fe2 | 61e280c3ad330352ab72825d8aa8af8a146190c2 | refs/heads/master | 2022-09-20T13:53:49.323283 | 2020-05-30T10:50:44 | 2020-05-30T10:50:44 | 266,423,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | """
ASGI config for Tops project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS... | [
"art.kurg2005@gmail.com"
] | art.kurg2005@gmail.com |
9eb8a56e8637de18ee933331a541530023efe9a7 | c4ae0e3f4389459b2bab5e4c591ea6ae14833d09 | /2020/24/code.py | 2c8121657b3f586690aedcb653f8d1814339c028 | [
"MIT"
] | permissive | ahriley/advent-of-code | 145558e2b5f6cc2f9a9c5c2b453f03abd340da75 | 2484ff4e520215b5dfb855761465d683aa2b91eb | refs/heads/main | 2023-02-06T08:14:31.209213 | 2020-12-28T22:52:48 | 2020-12-28T22:52:48 | 159,911,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,759 | py | # using cube coordinates: https://www.redblobgames.com/grids/hexagons/
def update(tile, command):
x, y, z = tile
if command == 'w':
x -= 1
y += 1
elif command == 'e':
x += 1
y -= 1
elif command == 'nw':
y += 1
z -= 1
elif command == 'se':
y -= ... | [
"30327239+ahriley@users.noreply.github.com"
] | 30327239+ahriley@users.noreply.github.com |
fd2d32708606db8d12113a487e35cbd78ae88004 | 602a8477580edfd1b205696533423a0f196a0491 | /sgi/academico/models/aluno.py | 1c40e5a38c227ab144e1e0c27c22be55c55890a2 | [
"MIT"
] | permissive | jorgevilaca82/SGI | 4d3656a0f5f2ca69a3259f055330754f221a0a2d | c3f13d9e3e8f04377d9e23636dc8e35ed5ace35a | refs/heads/master | 2023-01-24T20:14:23.933544 | 2020-03-10T16:12:55 | 2020-03-10T16:12:55 | 224,872,711 | 0 | 0 | MIT | 2023-01-07T12:18:28 | 2019-11-29T14:49:17 | Python | UTF-8 | Python | false | false | 1,337 | py | from enum import IntEnum, auto
from django.db import models
from django.utils.translation import gettext_lazy as _
from sgi.base import models as bm
class Aluno(bm.PessoaFisica):
"""
A Pessoa Física só se torna um aluno quando está devidamente
associada um curso. Uma Pessoa Física pode ser aluno de mais... | [
"jorge.vilaca@gmail.com"
] | jorge.vilaca@gmail.com |
e3de3d510be8ef23fc86b2150075c728c03cede3 | 9d6c3de763e25d3f730d04f5e738a31953cf115e | /Python/Desafio_048.py | aa9ef5202fbf28819e2bd3cde88c467137305d31 | [] | no_license | lucasjribeiro/projects | e4b67a51ccbf15a3ba8fcaba600457ffba879d0c | 110d705eee7fd14d342fb8bb5d890fbf04687094 | refs/heads/master | 2021-01-06T21:51:56.236776 | 2020-08-22T07:06:22 | 2020-08-22T07:06:22 | 241,492,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | soma = 0
contador = 0
for c in range(1, 500, 2):
if c % 3 == 0:
soma = soma + c
contador += + 1
print(c)
print(soma)
print(contador)
| [
"lucasj.ribeiro@hotmail.com"
] | lucasj.ribeiro@hotmail.com |
f845ef1a170fda7ca4deb266135c6e317c07867c | f61ab4deaa5e5bd5171bb28854eaa6eacdc95a4c | /Instuiteapp/apps.py | 7d961d172cbea670f828f552d7a799f9eb80e6de | [] | no_license | Adi19471/Institute_djangomvtadi_DJANGO | dfd67237bc4ca129f84fa62f15bcc17b1d4585ea | f4ce3f1c58a7e152d6011583d287be577f967cce | refs/heads/master | 2023-07-22T17:03:59.781683 | 2021-09-11T07:25:45 | 2021-09-11T07:25:45 | 403,988,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | from django.apps import AppConfig
class InstuiteappConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'Instuiteapp'
| [
"akumatha@gmail.com"
] | akumatha@gmail.com |
3375544feac75f3d34c1185da121e2cee030f80a | 547a6e76a683990680678750c0d5f673ef0a438e | /trzecie zajecia/student.py | 0dbb87672041b5c1e60d940d94535498d2feb14f | [] | no_license | Ssatyr/programowanie2021 | 3556acb69d83300708da88a340b9581b3142dece | ed154798b40646ed9e36cfd7cdc2ac98396e543d | refs/heads/master | 2023-03-25T17:21:03.767267 | 2021-03-15T21:55:17 | 2021-03-15T21:55:17 | 299,569,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,546 | py | import pickle
class Student:
def __init__(self, name, surname, index_nmber, rating_list=[]):
self.__name = name
self.__surname = surname
self.__index_number = index_nmber
self.__rating_list = rating_list[:]
def show(self):
print(f"Student: {self.__name} {self.__surname... | [
"witekkardas@gmail.com"
] | witekkardas@gmail.com |
bbdfdc1027ab8f60ae59aaf33634cc9a982ed5b8 | 38f371eb007dd421ecd4dd55ed9e0e089b6d4480 | /FileHandler/HashFile.py | ed8aebe4be3834a88b0e84455f8aa40c516d8a0b | [] | no_license | robtoyota/file_db | f0be9eb1864bca914163c1008537a8a08a31fefd | 384a126e84adb8d565bbd3a007025982cebd223a | refs/heads/develop | 2022-11-28T12:09:52.039644 | 2022-09-06T19:52:46 | 2022-09-06T19:52:46 | 237,338,076 | 0 | 1 | null | 2022-11-22T10:46:31 | 2020-01-31T01:16:21 | Python | UTF-8 | Python | false | false | 1,439 | py | import hashlib
class HashFile:
@staticmethod
def hash_file(file_path: str, hash_types: list) -> dict:
# https://stackoverflow.com/a/22058673/4458445
buffer_size = 128 * 64 # https://stackoverflow.com/a/1131238/4458445
hash_output = {}
# Build the hash objects
if not isinstance(hash_types, list): # Mak... | [
"49793997+robtoyota@users.noreply.github.com"
] | 49793997+robtoyota@users.noreply.github.com |
29daaaaa525a4d1cd1a8740c918a25fc820f7475 | 7aa207bb4d6f66076bc0b2bb59dffdf6852167bf | /src/niweb/apps/userprofile/migrations/0003_userprofile_avatar.py | 7ccd3b4eaae6031d4f0caff3ebc913028584f3d6 | [
"BSD-2-Clause"
] | permissive | SUNET/ni | d0a9f496ab2980f15083e3527345dc689fdb838c | 56c5611e7fbd882fa56440f38384418f45535cee | refs/heads/master | 2023-08-28T13:39:29.511607 | 2023-06-12T19:05:31 | 2023-06-12T19:05:31 | 169,399,263 | 0 | 1 | NOASSERTION | 2023-06-12T19:05:32 | 2019-02-06T12:00:25 | Python | UTF-8 | Python | false | false | 470 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.26 on 2019-11-11 08:12
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('userprofile', '0002_auto_20191108_1258'),
]
operations = [
migrations.AddF... | [
"enrique@cazalla.net"
] | enrique@cazalla.net |
c5416e6dd1cf97f29485ef6dcc297e53adb103b7 | a2b6bc9bdd2bdbe5871edb613065dd2397175cb3 | /算法小抄/打家劫舍/打家劫舍2.py | 86f4e208511f26cebd8d468f2cb207d132ffe41b | [] | no_license | Asunqingwen/LeetCode | ed8d2043a31f86e9e256123439388d7d223269be | b7c59c826bcd17cb1333571eb9f13f5c2b89b4ee | refs/heads/master | 2022-09-26T01:46:59.790316 | 2022-09-01T08:20:37 | 2022-09-01T08:20:37 | 95,668,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,410 | py | """
你是一个专业的小偷,计划偷窃沿街的房屋,每间房内都藏有一定的现金。这个地方所有的房屋都围成一圈,这意味着第一个房屋和最后一个房屋是紧挨着的。同时,相邻的房屋装有相互连通的防盗系统,如果两间相邻的房屋在同一晚上被小偷闯入,系统会自动报警。
给定一个代表每个房屋存放金额的非负整数数组,计算你在不触动警报装置的情况下,能够偷窃到的最高金额。
示例 1:
输入: [2,3,2]
输出: 3
解释: 你不能先偷窃 1 号房屋(金额 = 2),然后偷窃 3 号房屋(金额 = 2), 因为他们是相邻的。
示例 2:
输入: [1,2,3,1]
输出: 4
解释: 你可以先偷窃 1 号房屋(金额 = 1),然后偷窃 3 号房屋(金额... | [
"sqw123az@sina.com"
] | sqw123az@sina.com |
b9aaa554d2a6236ae0a218ae7feff738a9870d6b | de492613995ca0e3682d5b04a31f0603d6318f6c | /gletscher/test/test_config.py | b2c4d032cadc12a5d6fd6b78bcf95e07365bb001 | [
"Apache-2.0"
] | permissive | kenzik/gletscher | d0f11791d38a2af546a148e1980acf02ff1dda13 | 564921d6e98d2581c6e911267d77a5c453f17a7a | refs/heads/master | 2021-05-26T17:03:22.944693 | 2013-08-01T04:44:22 | 2013-08-01T04:44:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,376 | py | # Copyright 2013 Patrick Moor <patrick@moor.ws>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | [
"patrick@moor.ws"
] | patrick@moor.ws |
99252c919df613b170478deccf524a3f1ddbee2c | 3d62a14eb69baea0737f8c093336cbf6380b30a7 | /dingtalk/api/rest/OapiEduSubDataGetRequest.py | 99501c9ebbb090accf9eaf4d2e957ecccaccf64e | [] | no_license | KangSpace/message_plus_server | 50cbc55c296d5e835a0c6f99f45cf699f6806add | 300954993f44648db3a2124d587533656d970d6c | refs/heads/main | 2023-05-01T15:08:18.195400 | 2021-05-27T04:41:56 | 2021-05-27T04:41:56 | 361,338,925 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | '''
Created by auto_sdk on 2021.01.29
'''
from dingtalk.api.base import RestApi
class OapiEduSubDataGetRequest(RestApi):
def __init__(self,url=None):
RestApi.__init__(self,url)
self.orders = None
self.page_num = None
self.page_size = None
self.stat_date = None
def getHttpMethod(self):
return... | [
"kango2gler@gmail.com"
] | kango2gler@gmail.com |
6d52f200f92e18da2a2ecf76f522b0ec4c76e78a | 73da55ba59efa99b370ef1ec14ffabe3503a4398 | /acmd/html.py | 81cb011b7b77a2d07565b42f99f9de6923c49c63 | [
"MIT"
] | permissive | tml/aem-cmd | d8e1ead3f022735581ef07eb96eafbfedf48c6cd | 146ea689684cfd1e654234469cba338b38327965 | refs/heads/master | 2021-01-12T09:38:34.584843 | 2016-12-10T03:48:23 | 2016-12-10T03:48:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | # coding: utf-8
from xml.dom import minidom
def _split(attr):
if '=' in attr:
ret = attr.split('=')
return ret[0], ret[1]
else:
return 'id', attr
def parse_value(src, node_name, attr):
attr_name, attr_val = _split(attr)
doc = minidom.parseString(src)
for elem in doc.get... | [
"bjorn.skoglund@valtech.com"
] | bjorn.skoglund@valtech.com |
544551ccc864c2395597827a7bce6aa8b7a10158 | 8acd61d043ea65f0697b7a445c704358776011ef | /graf_ec4.py | 00ed23aeb630321a3d0553a6781218a7c651f7c4 | [] | no_license | sj0delacruz/SamirdelaCruz_Ej29 | 6b16119cb5b408aebc0dcc458c87921246118d19 | ae13456dac9a3d40deae976d88b78cbe76d81e2e | refs/heads/master | 2020-05-20T02:25:43.016069 | 2019-05-07T12:19:25 | 2019-05-07T12:19:25 | 185,331,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d.axes3d import Axes3D, get_test_data
from matplotlib import cm
seleccion = np.loadtxt("dat_ec4.dat")
fig = plt.figure(figsize=(15,7))
ax = fig.add_subplot(1,2,1,projection='3d')
xx, yy = np.mgrid[0:seleccion.shape[0], 0:seleccion.shape[1]]
a... | [
"noreply@github.com"
] | noreply@github.com |
c0eb26cac3d32b5a0930da88a5dfc825d69eb8b6 | f7a992ae6d178bf3aacd0f80a442ac2b918f6438 | /mystorage/migrations/0002_album_files.py | 46b692aea5e5be4ca8ddfa5db288dc77e6d6481d | [] | no_license | ev-moon/drf_api | 3f3d4baf4384916fd10486c0d2f2ce3bb10c6852 | 1138d00fd0622ffacf2f2d272b0d5872ab6f270d | refs/heads/master | 2020-08-30T06:57:47.901190 | 2019-10-29T13:50:52 | 2019-10-29T13:50:52 | 218,226,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,312 | py | # Generated by Django 2.2.6 on 2019-10-29 13:11
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('mystorage', '0001_initia... | [
"xenos96111@gmail.com"
] | xenos96111@gmail.com |
2b258251be54698c7cf7f09390b9b22df7e3c439 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_089/ch151_2020_04_13_20_49_15_933281.py | d9c04612c3fb56edfc9d41e6d501ee71b350565e | [] | 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 | 469 | py | def classifica_lista(x):
resultado = []
if x == [] or len(x) < 2:
return "nenhum"
i = 0
while i < len(x):
if x[i] > x[i+1]:
i += 1
resultado.append('d')
if x[i] < x[i+1]:
i += 1
resultado.append("c")
if "d" and "c" in ... | [
"you@example.com"
] | you@example.com |
2faec68eb4efbf907e7b3059435980c03b94e9c2 | 0d2da49c7ca251b70490dbd64e02dc5986c153c0 | /the-type-function.py | 86be258e82565a2dec096ed2c6f8642dd47cf31d | [] | no_license | dwaraka118/Python-in-detail | b1204191605088c71c841a3b4787a89d47d2dca5 | 278de79868baf083e6b5a5c77712409ff50e8162 | refs/heads/master | 2022-11-13T07:25:38.929977 | 2020-07-16T17:10:57 | 2020-07-16T17:10:57 | 272,138,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | # part:1
print("This is part : 1 ")
print(type(5))
print(type(10))
print(type(3.8))
print(type(5.0))
print(type("computer"))
print(type("laptop"))
# Part : 2
print(type(5) == type(10))
print(type("computer") == type("laptop"))
print(type(5) == type(5.0))
print(type(5) == type("5"))
print(type... | [
"noreply@github.com"
] | noreply@github.com |
a2c10fafce2e1c872e2aa04e6002371ee741200c | e519c5dba379c4d66df442dea230162841b75713 | /bubbleZ/tests/__init__.py | 9ffb24b64937999209c5b8df293866df28e74f9c | [
"MIT"
] | permissive | abatten/bubbleZ | af904df823819c548992ff8b4b38cb711891ac53 | 20a895f4510dabd03426c307b40bd12c61edd39a | refs/heads/main | 2023-06-02T06:44:58.911933 | 2021-06-12T05:29:14 | 2021-06-12T05:29:14 | 375,551,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | from ..pipeline.utils import FileAlreadyExists | [
"adamjbatten@gmail.com"
] | adamjbatten@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.