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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
494dae4a3988c4df9e2050a66813f04888212319 | 81c27135219230d6329e3154711ebcf121df6158 | /Old/lesson12/poissonblending.py | ed8ec4ac22eaa46308534ed23b0848ffe2c8b662 | [
"MIT"
] | permissive | jsjtxietian/Computational-Photography | 021ebda89d5cbf3e178dbe8b7d393cf2f577d99d | f3b9e772da174b49efc2a46e1e73be276950759d | refs/heads/master | 2020-06-16T17:31:26.654834 | 2020-03-13T05:08:51 | 2020-03-13T05:08:51 | 195,651,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,771 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
import scipy.sparse
import PIL.Image
import pyamg
# pre-process the mask array so that uint64 types from opencv.imread can be adapted
def prepare_mask(mask):
if type(mask[0][0]) is np.ndarray:
result = np.ndarray((mask.shape[0], mask.shape[1... | [
"jsjtxietian@outlook.com"
] | jsjtxietian@outlook.com |
34c75ed85b11695edf53feaa3236244bd3fefc44 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-sblp-obt/sblp_ut=3.5_rd=1_rw=0.06_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=4/params.py | f2962918ddc7d0f6fada37b1a1592dedf23cce8d | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | {'cpus': 4,
'duration': 30,
'final_util': '3.668690',
'max_util': '3.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '1',
'res_nmb': '4',
'res_weight': '0.06',
'scheduler': 'RUN',
'trial': 4,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
31476fc290a0b30f6609e362098fdcb213ef2fcf | 510a39b432b5f197b05545de6436c99cd6c8e93b | /HW11.py | e16a797654c6eb0ffccbae4bdd507e5d4df96aea | [] | no_license | bolanderc/MAE5510TA | fe7cb34805325f128e9e0a499186befc9fc8eb7a | ade01f6105fc82bedca501389098057d5c64e184 | refs/heads/master | 2020-04-26T06:48:00.171110 | 2019-04-09T17:11:04 | 2019-04-09T17:11:04 | 173,376,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,638 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Mar 26 10:09:58 2019
@author: christian
"""
import numpy as np
import scipy.linalg
from eig_vec_norm import normalize_evec
import warnings
warnings.filterwarnings('ignore')
def matprint(mat, fmt="g"):
col_maxes = [max([len(("{:"+fmt+"}").format(... | [
"christianrbolander@gmail.com"
] | christianrbolander@gmail.com |
cb5caad5545db7b3223f337a9365ad9bfa9a4851 | 42f7dec4a971d33c533681a28c11d1e681553112 | /hst_analysis.py | 453c9e9fe4ff976651afa5561d7a184ea96350e6 | [] | no_license | ivanokhotnikov/moohst | 69e49878fbb1fde4c403f496aa4222baedfeaa23 | 3d6621a1fe776ea534f3f774b611a09140a8e9a4 | refs/heads/master | 2023-06-28T23:12:02.831837 | 2021-07-30T09:22:43 | 2021-07-30T09:22:43 | 369,152,752 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,190 | py | import os
import requests
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import plotly.graph_objects as go
import plotly.figure_factory as ff
from io import BytesIO
from joblib import dump, load
from hst.hst import HST
from hst.regressor import Regressor
from sklearn.model_... | [
"ivan.okhotnikov@outlook.com"
] | ivan.okhotnikov@outlook.com |
7e76a758ca334284f2cf95c5c441f5885ed5dc8f | 413df3b2d56f3296803d4af3e973251c8ff1eab0 | /CSC-8311 .py | 36afeb3b1bc6e2bce1cab98220953d1d31e8030b | [] | no_license | cedali/csc-8311 | 8348b6efbf48665cf0d74f5426eb1d41d5c2cf74 | 2e943dce8c8b7e9956acce617509009881db6145 | refs/heads/master | 2021-04-06T02:38:33.914711 | 2018-03-09T13:41:49 | 2018-03-09T13:41:49 | 124,539,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,285 | py | import Bio
import sys
import os
import random
import unittest
from Bio import Entrez
from Bio import ExPASy
from Bio import SeqIO
from Bio import SwissProt
from Bio.Seq import Seq
from Bio.SeqRecord import SeqRecord
from Bio.Alphabet import generic_rna, generic_dna, generic_protein
from Bio.Alphabet import ... | [
"noreply@github.com"
] | noreply@github.com |
00f943af87cab6ec48e99ae5cf97813d61755732 | 3f0c1a0066e5b72ba70a60399fb6a6abc138a810 | /SBC/settings.py | 3655d9b193823d7880073c8a640be28fba1c346f | [] | no_license | calosh/Buscador_Semantico | facce482e95d4acd8082d2249134688f8e529842 | 88e827b4730263a2c4e040654ab97fea71f2f343 | refs/heads/master | 2020-03-20T16:22:42.960238 | 2018-07-23T05:08:01 | 2018-07-23T05:08:01 | 137,537,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,190 | py | """
Django settings for SBC project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
# Bu... | [
"carlitoshxt@gmail.com"
] | carlitoshxt@gmail.com |
94709ea9fdd3f5b965a753f366702dbec38c259a | c0c6b41523d8f8071c88d4320d9040a6d1d2e3f4 | /problem1 | 80d2761714d5ce30c6ac12310c7fc42a98b8b028 | [] | no_license | GLAU-TND/python-programming-assignment-2-Manish-021 | 952cf9bd8a4f953074595f7c7d164541eba94443 | 782bdef864fadac653e500d03498de6c92c56382 | refs/heads/master | 2021-01-09T11:43:22.749103 | 2020-02-24T11:42:25 | 2020-02-24T11:42:25 | 242,287,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | t=eval(input())
b=[min(t)]
a=min(t)[-1]
t.remove(min(t))
for i in t:
for j in t:
if a==j[0] and j[-1]!=b[0][0]:
b.append(j)
a=j[-1]
t.remove(j)
break
b=b+t
print(b)
| [
"noreply@github.com"
] | noreply@github.com | |
f4229b522cdf325535b9c5a91bec75d3119678ce | 5ce97eb386e04ef5e8f7de1b94725648fbba89b0 | /proj4-gu-nt-proj4-2-sub/util/layers.py | d880bdb5edee6b40509488ecfd5df6f368b74e69 | [] | no_license | Chenyb/CS61C | 5716a29feabddeb2df28b76a3ef1df42424990f9 | 3deeaf0c452745be12fa71d611e30dc655484932 | refs/heads/master | 2016-08-13T02:07:03.536235 | 2015-12-25T06:29:21 | 2015-12-25T06:29:21 | 48,569,125 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,609 | py | import numpy as np
#from im2col import *
from im2col_c import *
def linear_forward(X, A, b):
"""
Input:
- X: [N * M] -> N data of size M
- A: [M * K] -> M weights for K classes
- b: [1 * K] -> bias
Output:
- X * A + b: [N * K]
"""
return np.dot(X.reshape(X.shape[0], -1), A) + b
def linear_backward(d... | [
"chenyb@berkeley.edu"
] | chenyb@berkeley.edu |
81008224cac8591b4f00dcd38bf9b8e5cc34dc27 | 30ec40dd6a81dbee73e7f14c144e20495960e565 | /kubernetes/client/models/v1beta1_http_ingress_rule_value.py | 9653f80f26ca995284fb6ca79ec30368e71cd13e | [
"Apache-2.0"
] | permissive | jonathan-kosgei/client-python | ae5a46968bcee19a3c62e1cefe227131ac9e7200 | 4729e6865d810824cafa312b4d06dfdb2d4cdb54 | refs/heads/master | 2021-01-20T14:59:10.435626 | 2017-05-08T16:55:51 | 2017-05-08T16:55:51 | 90,700,132 | 1 | 0 | null | 2017-05-09T03:50:42 | 2017-05-09T03:50:42 | null | UTF-8 | Python | false | false | 3,300 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.6.3
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
... | [
"mehdy@google.com"
] | mehdy@google.com |
5fc066834916a8dbb349035d834ab8ffcd3415d5 | c3483984a4782be6097e4753de3cb545ae00039b | /geneticTest/unitTestingExample/unitTesting/test_Employee.py | e00ef30b7b7dd17f737f32a405b4966559a25522 | [] | no_license | nghiemphan93/machineLearning | 67c3f60f317a0c753b465751113511baaefd1184 | 36d214b27c68d399f5494b5ec9b28fee74d57f7f | refs/heads/master | 2020-03-28T02:20:11.843154 | 2020-02-03T14:18:39 | 2020-02-03T14:18:39 | 147,563,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,536 | py | import unittest
from geneticTest.unitTestingExample.stuffToTest.Employee import Employee
class TestEmployee(unittest.TestCase):
@classmethod
def setUpClass(cls):
print('setupClass')
@classmethod
def tearDownClass(cls):
print('teardownClass')
def setUp(self):
print('setUp... | [
"nghiemphan93@gmail.com"
] | nghiemphan93@gmail.com |
f49600817eab6414b04ca5c1b5d27b1d41bf832c | 44dec6a793a8478a3e5a3a80a72f0c0a743b3df9 | /big_data/test/api.py | 84bc1a290b9c9160999288fae77c8542bb10eba5 | [] | no_license | liying1993/my_practice | f6599fd68bc32581c2217d2a834192adbf4a9712 | f4c34738f2129e631f3e0094ab7bfa5abedb7e10 | refs/heads/master | 2021-01-22T13:03:17.278770 | 2018-02-24T09:00:10 | 2018-02-24T09:00:10 | 102,332,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py | from ..blockchain import app
import unittest
import json
from pprint import pprint
from io import StringIO
class TestApi(unittest.TestCase):
def setUp(self):
self.app = app.test_client()
def request_get(self, uri):
print("GET {}".format(uri))
headers = {"Content-Type": "application/jso... | [
"2071127345@qq.com"
] | 2071127345@qq.com |
ce60cb9577e898f6ef22820e4ca9b8dd62031b01 | 82b60d856c46ef1ec060293d85cee555406f5845 | /app/DATOS_LISTOS/datosRegistrosCHEKOK.py | b641547e9a8bb784e23289973702bbdc602d7c51 | [] | no_license | lagossully/AyudaConFlask | 5292e82b7f9da1a26a2628cd69caf4930c06b0aa | e047111d27bdb67b497e6cc38bb8fd8ee56b8224 | refs/heads/master | 2020-04-10T02:29:06.513919 | 2018-12-06T22:38:00 | 2018-12-06T22:38:00 | 160,745,434 | 0 | 0 | null | 2018-12-06T23:30:15 | 2018-12-06T23:30:14 | null | UTF-8 | Python | false | false | 1,700 | py | from random import choice, random, randint, randrange
from configuraciones import *
import psycopg2
conn = psycopg2.connect("dbname=%s user=%s password=%s"%(database,user,passwd))
cur = conn.cursor()
sql="""select id_sensor from sensores;"""
cur.execute(sql)
posts = cur.fetchall()
sql="""select patente from autos;"""... | [
"180206779@Docencia.udp.cl"
] | 180206779@Docencia.udp.cl |
b71cf501c6e9e920c344c180785088347c9eea05 | 398de9098811c7712b18f8e314340ce93aa86839 | /id2date.py | 7fc4502cd5258ae680b5604cba9dd53e78ba1f70 | [] | no_license | NiMaZi/thesis | 0c2ce8bced070d010838bae80f844a46bb1a798c | 15dc1aeca941f8feec4c283cd7436983ba982871 | refs/heads/master | 2020-03-18T13:19:52.711331 | 2018-07-09T12:11:08 | 2018-07-09T12:11:08 | 134,776,324 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,288 | py | import os
import sys
import csv
import json
import boto3
import numpy as np
homedir=os.environ['HOME']
from elasticsearch import Elasticsearch
from elasticsearch.helpers import scan
es=Elasticsearch(['localhost:9200'])
s3 = boto3.resource("s3")
mybucket=s3.Bucket("workspace.scitodate.com")
s3key=sys.argv[1]
id2date... | [
"zhengyl940425@gmail.com"
] | zhengyl940425@gmail.com |
9586e05b891e5809a3bb66a07ef851d098c5abc0 | 6e366c25bfab97691589d85512e5b7b515f5bb32 | /codingDOJO_python_stack/django/django_intro/dash/dash_app/migrations/0001_initial.py | f5480e8d6b33d5a9a2238458ed8fe94460945a2c | [] | no_license | Sota1218/codingDojo-in-Seattle | 09bcae69ffec934b6498ed378c7c6922728a11b5 | c1f5d9b8e0d8a12607784786d6351fed9e98b377 | refs/heads/master | 2022-12-04T17:13:39.298423 | 2020-08-06T09:41:02 | 2020-08-06T09:41:02 | 285,524,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | # Generated by Django 2.2 on 2019-12-13 18:04
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('login_app', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Trip',
fields=[
... | [
"sotayoshihiro@USERnoMacBook-Air.local"
] | sotayoshihiro@USERnoMacBook-Air.local |
96f0e08ae2ac25053eeb6b7f10974a41dfad3381 | 03b03bee341f784f05f39e4abff1e1fc9e49624f | /Programming-Fundamentals-using-Python/Day-3/Exercises/Exercise-15.py | a950d0d4f2319532e79e566b6c87b3fa407f7446 | [] | no_license | Incertam7/Infosys-InfyTQ | 3051d6ccf6ff300f6d209659fd771171ba50db23 | 57d55e9d3fb7bb08efe5dc0f536c08d24f6ff3fb | refs/heads/master | 2021-05-28T19:34:58.124849 | 2020-07-07T00:43:32 | 2020-07-07T00:43:32 | 254,277,511 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | #PF-Exer-15
def find_sum_of_digits(number):
sum_of_digits = 0
#Write your logic here
while number > 0:
remainder = number % 10
sum_of_digits += remainder
number //= 10
return sum_of_digits
#Provide different values for number and test your program
sum_of_digits=find_s... | [
"noreply@github.com"
] | noreply@github.com |
63d41c42f8f87f62095b5bc99fda6d77e3eb4288 | 59788643fcce655a3a15ad0d3c91401a63e525d9 | /home/models.py | f925cf6580cdcd1ae6f9a202aa595fe40ca9a4ba | [] | no_license | crowdbotics-apps/element-28308 | f39132662eb2e433d44e3c570ae539d9feae3db0 | 018966b7d47c9e2f9b1bb33c018d1a9b7a3b3b42 | refs/heads/master | 2023-06-06T09:31:10.513777 | 2021-06-29T20:33:03 | 2021-06-29T20:33:03 | 381,465,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | from django.conf import settings
from django.db import models
class CustomText(models.Model):
"Generated Model"
chart = models.URLField(
null=True,
blank=True,
)
class HomePage(models.Model):
"Generated Model"
body = models.TextField()
| [
"team@crowdbotics.com"
] | team@crowdbotics.com |
68722f7023aea120420746a38e0ac5ed4af46825 | a9ed3f674134423fcd816865b1501167daeb0d45 | /bucketcloner/backends/swift.py | 2148d44ed8d2d00cfa5786abe54b54133f66fdc2 | [] | no_license | camptocamp/docker-bucket-cloner | 5862332041c1df4df74063015e1abcd7b6edc5f2 | 9c3c69488d342ec94c3f0647816410063ffab593 | refs/heads/master | 2022-07-30T17:12:44.266122 | 2021-07-29T15:54:35 | 2021-07-29T15:54:35 | 151,561,378 | 0 | 1 | null | 2022-07-15T11:46:37 | 2018-10-04T11:29:58 | Python | UTF-8 | Python | false | false | 315 | py | import swiftclient
class Swift(object):
def __init__(self, **kwargs):
self.client = swiftclient.client.Connection(**kwargs)
def list_buckets(self):
buckets = []
for container in self.client.get_container("")[1]:
buckets.append(container['name'])
return buckets
| [
"leo.depriester@camptocamp.com"
] | leo.depriester@camptocamp.com |
6f781fbb34a0effb575b1359355f0db2026e382d | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5658571765186560_1/Python/dnutsch/problem_d.py | ec9d645f24bcbab7bf09cb17d6dd1abaea92f717 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py | #!/usr/bin/python
f = open('D-large.in','r');
out = open('D-large.out','w');
T = int(f.readline().strip())
for t in range(T):
X,R,C = [int(x) for x in f.readline().strip().split(' ')]
#print "x {}, r {}, c {}".format(X,R,C)
mx = max(R,C)
mn = min (R,C)
richard_wins = False
if (R*C) % X != 0:... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
f6888edf9775c1a80bafa07e0227f6ecfade3494 | 2406425d12f96b81fca3f735f034f4375e44d567 | /app/views.py | 1e664fcdaaeb853fb0730dca8c445a32105e7b5f | [] | no_license | BodleyAlton/info3180-lab2 | 94dad3b54182e2afc1a6e99590bb7300bec70c10 | c509c5882744fa0a8b20e92a5d2abe2a813b3f4f | refs/heads/master | 2020-12-31T00:11:30.576229 | 2017-02-03T14:16:25 | 2017-02-03T14:16:25 | 80,547,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,772 | py | """
Flask Documentation: http://flask.pocoo.org/docs/
Jinja2 Documentation: http://jinja.pocoo.org/2/documentation/
Werkzeug Documentation: http://werkzeug.pocoo.org/documentation/
This file creates your application.
"""
from app import app
from flask import render_template, request, redirect, url_for
import t... | [
"altonbodley@gmail.com"
] | altonbodley@gmail.com |
e818c37d9b6bd51c5ded62760f60d10e5ab3e5b7 | f1e69fceca699492a0b3be02c05e5acb0588712e | /src/config.py | b3e8b55022af6dac4184bda4903c1ca6283d4195 | [
"MIT"
] | permissive | choobinejad/data-analytics-workshop | 207488dbdc24f2964f01a0f1145dd9576995695c | 56efeb483cb5c34e9efc2e0f389b6f2de2ea93ac | refs/heads/master | 2020-12-30T08:26:43.025004 | 2020-02-07T16:50:58 | 2020-02-07T16:50:58 | 238,927,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | import json
es_cloud_id = 'ml-workshop-shared:dXMtZWFzdDQuZ2NwLmVsYXN0aWMtY2xvdWQuY29tJGUxZDNjMmE1NDcwMzRkNzg5NTc3MmIzYzkzNGM3ZGU0JGUxZjY5N2JiYWRjYzRhMDFhMzM0MTlhNzgzNTA1MDMy'
es_user = 'elastic'
es_password = 'EvFqdXnuNSEirNnRm8RD9veG'
| [
"jeremy.m.woodworth@gmail.com"
] | jeremy.m.woodworth@gmail.com |
1beef113b1accc85341f2933f32d80839e029de5 | 1496fd578daaf13bebccd68057c455b74481b8de | /week3/oddTuples.py | 51bd390f843f0f573961b7f11200d940a4670f98 | [] | no_license | leahfrye/MITx-6.00.1x | 274c58a6d7ca4c64dbd1bda5c2f102012f4a4f17 | 41e26ded3606b83b21998777ff32cf862e2b7f1d | refs/heads/master | 2021-09-03T14:43:04.654759 | 2018-01-09T21:43:45 | 2018-01-09T21:43:45 | 115,056,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | # Takes a tuple as an input and returns a new tuple, where every other element of the input
def oddTuples(aTup):
oddTups = ()
count = 0
for x in aTup:
if count % 2 == 0:
oddTups += (x,)
count += 1
print(oddTups)
oddTuples((4, 5, 18, 10, 7, 1, 8, 15, 4, 8)) | [
"lefrye@nps.edu"
] | lefrye@nps.edu |
ba017f14c0775d89dbd53d36c4176b80e4cefe64 | 1ab51f22ba8c43323e37b5cbf7125b0d00f15a56 | /manage.py | 97d85a3dc6f7aeed122d2357fdbae6305d22497c | [
"MIT"
] | permissive | tailorv/neighbourshood | 424b65707b04630389045a0471dc9710b6d63dcb | f9470ba1f9bb8c995d0b8ae93e90316285226026 | refs/heads/main | 2023-08-21T07:55:08.371636 | 2021-11-02T07:19:39 | 2021-11-02T07:19:39 | 423,046,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'area51_project.settings')
try:
from django.core.management import execute_from_command_line
exce... | [
"maxwellmuthomijr@gmail.com"
] | maxwellmuthomijr@gmail.com |
b2350463d670e71f629110e647c1fb932056883f | 2f186ab7c3bea7a588176e1322728ea6c46a09f3 | /env/lib/python2.7/site-packages/telegram/message.py | 32f8fe45bd8a9cdaf46cc792446e9b4760779827 | [] | no_license | spbisya/voiceRecognition | b486167a0544b6b0a78c607a6c85dab95f1df36c | 3453f00336511bbdace4a46377b25a26595e0917 | refs/heads/master | 2021-05-03T12:28:34.639732 | 2016-10-06T06:34:35 | 2016-10-06T06:34:35 | 70,119,371 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 18,828 | py | #!/usr/bin/env python
# pylint: disable=R0902,R0912,R0913
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2016
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Les... | [
"wtcute.info@gmail.com"
] | wtcute.info@gmail.com |
2d16bab98905c63b9c5ab6e5049a4e550331c47d | f76ed16c49b1ec80fb006ad68243c57d238dde7f | /coins.py | 4a974d08a08a0ecb03542fc6fbaf0df5128bd16c | [] | no_license | club-de-programacion-competitiva/soluciones | 978ad054a6a40e811ea97581b2908cd882e713e5 | 2532c6accd04f26af33079989aebc1fcd91d9c95 | refs/heads/master | 2020-12-24T03:07:48.706138 | 2020-01-31T22:04:14 | 2020-01-31T22:04:14 | 237,360,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | # Alternativa: crear un diccionrio que guarde cada resultado,
# y en cada iteración verificar si el valor ya existe, para evitar un ciclo infinito
# Este método es muy tardado, con el diccionario es más eficiente
def convert(gold):
if (int(gold / 2) + int(gold / 3) + int(gold / 4)) <= gold:
return ... | [
"noreply@github.com"
] | noreply@github.com |
b3a796f6f6e1d72469e523177fe6e9c9ac1fb9ff | 94d5ef47d3244950a0308c754e0aa55dca6f2a0e | /migrations/versions/53e2ad0d34e3_added_produce_id_to_breed_table_instead.py | 977835fba4e07675a127bd13b29394f31d921a8f | [] | no_license | MUMT-IT/mis2018 | 9cbc7191cdc1bcd7e0c2de1e0586d8bd7b26002e | 69fabc0b16abfeba44173caa93d4f63fa79033fd | refs/heads/master | 2023-08-31T16:00:51.717449 | 2023-08-31T11:30:13 | 2023-08-31T11:30:13 | 115,810,883 | 5 | 5 | null | 2023-09-14T10:08:35 | 2017-12-30T17:06:00 | HTML | UTF-8 | Python | false | false | 1,288 | py | """added produce_id to breed table instead
Revision ID: 53e2ad0d34e3
Revises: e4f15449eb31
Create Date: 2018-02-03 22:51:38.297350
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '53e2ad0d34e3'
down_revision = 'e4f15449eb31'
branch_labels = None
depends_on = No... | [
"likit.pre@mahidol.edu"
] | likit.pre@mahidol.edu |
56e2ea0cf73544e8dbe4bf9a62cade699f0cd4f7 | 353e6685be6737a828b8770d4d71e389ca2853b9 | /0x11-python-network_1/5-hbtn_header.py | b7a195a4f570bbc400e36cfd7ab5c6a16a190e72 | [] | no_license | adebudev/holbertonschool-higher_level_programming | 912af3f7caab3197beb062b5389f5b464b2ed177 | cb0510ed0b6d7b7c43d0fd6949139b62e2bdede7 | refs/heads/master | 2022-12-18T17:40:28.539558 | 2020-09-25T04:29:45 | 2020-09-25T04:29:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | #!/usr/bin/python3
"""Request value X-Request-Id with requests Module"""
import requests
import sys
if __name__ == '__main__':
"""displays the value of the variable X-Request-Id"""
url = sys.argv[1]
R = 'X-Request-Id'
req = requests.get(url)
print(req.headers.get(R))
| [
"delaasuncionbuelvasadrian@gmail.com"
] | delaasuncionbuelvasadrian@gmail.com |
e771e784f52c0bbf8c8a589dd857b97d356428d2 | 52950b2783a7aebf23689c9c5397cf381d0dde7d | /oss/xbob.paper.tpami2013-1.0.0/xbob/paper/tpami2013/scripts/plda_enroll.py | a841b4daaa17533308371045ad00b2a7443841c6 | [] | no_license | zhouyong64/academiccoder | 9b4a8f9555b99dc364a0c0e4157faa582b542e90 | 5415a43889a18795fb98960ff7700dbcdd5138df | refs/heads/master | 2020-05-17T11:46:15.143345 | 2017-12-05T06:57:14 | 2017-12-05T06:57:14 | 29,723,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,209 | py | #!/usr/bin/env python
# vim: set fileencoding=utf-8 :
# Laurent El Shafey <Laurent.El-Shafey@idiap.ch>
# Wed Aug 21 16:56:36 CEST 2013
#
# Copyright (C) 2011-2013 Idiap Research Institute, Martigny, Switzerland
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Gene... | [
"snowalvie@gmail.com"
] | snowalvie@gmail.com |
98ae303820c7197f7a53af3c15c75266fb7f3b88 | a9eb3084b4841c208b00b967d955324a4d43f082 | /maintenance/scripts/idr0079_csv_to_table_on_project.py | 7c425ccdf06dc091c4f1c6c75c5ab608cf086fd1 | [] | no_license | ome/training-scripts | cd520a0a50ea834d662692206c17dedb8a8d4381 | 6f6866b21be4cbf48cafe2756899a21b4764b47e | refs/heads/master | 2023-06-22T14:30:21.184573 | 2022-12-05T18:51:08 | 2022-12-05T18:51:08 | 127,337,041 | 6 | 13 | null | 2023-06-15T14:45:04 | 2018-03-29T19:17:49 | Python | UTF-8 | Python | false | false | 5,242 | py | #!/usr/bin/env python
import pandas
import csv
import mimetypes
import os
import omero.clients
import omero.cli
import omero
from omero_metadata.populate import ParsingContext
from omero.util.metadata_utils import NSBULKANNOTATIONSRAW
project_name = "idr0079-hartmann-lateralline/experimentA"
# NB: Need to checkout... | [
"w.moore@dundee.ac.uk"
] | w.moore@dundee.ac.uk |
65b9c52ec1d9f80e900be3aaf4e02cf9ea349b1c | 9775ca99e222ec2cf7aa071b68954ee750f4b58a | /0x09-python-everything_is_object/100-magic_string.py | bc304a2f8dc85450f6f897c63025222c9cd30a42 | [] | no_license | humeinstein/holbertonschool-higher_level_programming | f7363a129cc5e2787207ab898c984b5866cbe7de | 01ba467964d7585ee95b7e0d76e7ae6bbdf61358 | refs/heads/master | 2020-07-22T20:25:21.868028 | 2020-02-13T23:08:49 | 2020-02-13T23:08:49 | 207,317,556 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | #!/usr/bin/python3
def magic_string(new_list=[]):
new_list += ["Holberton"]
return ", ".join(new_list) | [
"humeincreations@gmail.com"
] | humeincreations@gmail.com |
3124b674fa821716127a4d34ee60d1afc948da96 | 7000895fad6f4c23084122ef27b3292d5e57df9f | /src/xrd/crypto/Qryptonight.py | 1475f988d07b1c8d0513eab0742c2dab0685602f | [
"MIT"
] | permissive | jack3343/xrd-core | 1302cefe2a231895a53fcef73e558cdbc1196884 | 48a6d890d62485c627060b017eadf85602268caf | refs/heads/master | 2022-12-15T07:36:16.618507 | 2020-08-27T09:21:36 | 2020-08-27T09:21:36 | 290,652,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,140 | py | # coding=utf-8
# Distributed under the MIT software license, see the accompanying
# file LICENSE or http://www.opensource.org/licenses/mit-license.php.
import threading
from xrd.core import config
from xrd.core.Singleton import Singleton
from xrd.crypto.Qryptonight7 import Qryptonight7
from xrd.crypto.QRandomX import ... | [
"70303530+jack3343@users.noreply.github.com"
] | 70303530+jack3343@users.noreply.github.com |
950e5209c58dd48953f9e0b2d9ea73aa3c6f81dc | 0b344fa1202824ac1b312115c9d85467dd0b2b50 | /neutron/plugins/embrane/l2base/openvswitch/__init__.py | 1fac4725b72223216d141bfcf4e5a24cc93df883 | [
"Apache-2.0"
] | permissive | netscaler/neutron | 78f075633462eb6135032a82caf831a7e10b27da | 1a17ee8b19c5440e1300426b5190de10750398e9 | refs/heads/master | 2020-06-04T01:26:12.859765 | 2013-10-17T06:58:30 | 2013-10-17T06:58:30 | 13,155,825 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2013 Embrane, Inc.
# 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/l... | [
"ivar@embrane.com"
] | ivar@embrane.com |
a305b3406bd25b2530b5c1818128b7efcc88a902 | 29ff793f23f77297b635fdbcde8cce3a182d9b0c | /craigslist_webscraping/items.py | 61b641d8893df2781ce81f3255698a2d0d111fae | [] | no_license | Kiwibp/NYC-DSA-Bootcamp--Web-Scraping | 2212b617427bde8c670adf53558b2f9ba4aab693 | 8ab2cf2f1d130c4167bff122924a082382e27d68 | refs/heads/master | 2020-03-19T17:32:45.899251 | 2018-07-10T16:08:34 | 2018-07-10T16:08:34 | 136,765,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class CraigslistWebscrapingItem(scrapy.Item):
name = scrapy.Field()
price = scrapy.Field()
location = scrapy.Field()
date = scrapy.Fiel... | [
"keenanburkepitts@keenans-mbp.home"
] | keenanburkepitts@keenans-mbp.home |
a795f19f8bf50240b8403bd4eee3481113f2d309 | 2c42b9c205768f6e2746ad5452097869f7fe7245 | /config.py | 8c75e3b9b219af63949fca706001051ed505e7d4 | [] | no_license | roquesantos-cronapp/flask-mega-tutorial | 36847126e283036e5c7ae5a1cb5bbde3eac813fc | b3df35c9780a3ef5de49eb9e94bbeeb464799b55 | refs/heads/master | 2020-04-05T08:03:21.913155 | 2018-11-08T11:58:45 | 2018-11-08T11:58:45 | 156,699,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config(object):
SECRET_KEY = os.environ.get('SECRET_KEY') or 'you-will-never-guess'
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or 'sqlite:///' + os.path.join(basedir, 'app.db')
SQLALCHEMY_TRACK_MODIFICATIONS = False
POST... | [
"roque.santos@cronapp.io"
] | roque.santos@cronapp.io |
48d6846699beba2a700f52ae82f3116ffef4551e | a1855d3b65d538f7520c629f4d43819792b7d872 | /twitterbot.py | 905a9fae4814e2545bbf0db73ee0581198d8b0ec | [
"MIT"
] | permissive | gabriel-marchal/Twitter-InternetSpeed-Bot-Kolbi | 07ecd3e516782ca5a604650faa741e911fb6abf5 | 4329c210c6bc529dd917c5c73d29ff2cf975349b | refs/heads/master | 2022-12-08T17:11:36.874668 | 2020-09-01T23:19:33 | 2020-09-01T23:19:33 | 291,552,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,283 | py | from TwitterAPI import TwitterAPI
import speedtest
import sched
import time
import os
from dotenv import load_dotenv
load_dotenv()
### CONFIG VARIABLES ###
consumer_key = os.getenv("consumer_key")
consumer_secret = os.getenv("consumer_secret")
access_token_key = os.getenv("access_token_key")
access_token_secret = os... | [
"gmarchal1@ucenfotec.ac.cr"
] | gmarchal1@ucenfotec.ac.cr |
d3407c1815d554881ce33812bf3dfc89430fe36f | 2521e6427a7668d8cc91eabb368a5cf0eb7310f9 | /Cap18-Extras/09_dimensionar.py | 5872547aa4d77143e41c6c59a3c7fd24ab1da260 | [] | no_license | frclasso/turma3_Python1_2018 | 4a7bc0ba0eb538100400c15fc5c5b3ac1eeb7e50 | 47cd3aaa6828458b7f5164a8bce717bb8dd83a7c | refs/heads/master | 2020-04-06T16:18:00.889198 | 2019-06-10T15:11:32 | 2019-06-10T15:11:32 | 157,614,408 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | #!/usr/bin/env python3
import openpyxl
wb = openpyxl.Workbook()
#print(wb.sheetnames)
sheet = wb.active
sheet['A1'] = 'Tall row'
sheet['B2'] = 'Wide column'
sheet.row_dimensions[1].height = 70
sheet.column_dimensions['B'].widht = 50
wb.save('dimensions.xlsx')
print('Feito...') | [
"frcalsso@yahoo.com.br"
] | frcalsso@yahoo.com.br |
1bb77fc8dacaeb560a91eefb770e6455bfb58186 | add0bb7a309ea346614d7f560a24e653d3d0ff67 | /Python多线程/多线程.py | 141bbbb34bec2b4895f11d7847ae4c8244b89526 | [] | no_license | 1572903465/PythonProjects | 935aff08d5b3d3f146393764a856369061513d36 | 73576080174f72ea1df9b36d201cf3949419041b | refs/heads/master | 2023-06-10T15:50:49.178112 | 2021-07-05T15:42:53 | 2021-07-05T15:42:53 | 301,328,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | import time
import threading
#GIL是解释器用于同步线程的一种机制
#它使得任何时刻仅有一个线程在执行 (就算你是多核处理器也一样)
#使用GIL的解释器只允许同一时间执行一个线程
#常见的使用GIL的解释器有 CPython 与 Ruby MRI
#如果你用JPython没有GIL锁
#CPU 多线程
def start():#单纯计算 消耗CPU资源 没有实际意义
data = 0
for _ in range(10000000):#连续加
data += 1
return
if __name__ == "__main__":
t... | [
"1572903465@qq.com"
] | 1572903465@qq.com |
5878577c9ecb22d9196dd6cc719dd160f8576408 | 8908b41e3911d1ebeaefc2154ee99d254b1609f5 | /astar.py | 2b544a677092992d4c9e33f1b5a147cef7ec5cf8 | [] | no_license | multikulti/Saper | ff607509defa52b301d32e80fdef5fadef9911b8 | 3eb9c3bce783853275f358edbeb72f3d2c82a911 | refs/heads/master | 2021-01-11T00:45:07.556711 | 2017-01-16T15:31:54 | 2017-01-16T15:31:54 | 70,495,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,950 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
""" generic A-Star path searching algorithm """
import sys
from abc import ABCMeta, abstractmethod
class AStar:
@abstractmethod
def heuristic_cost_estimate(self, start, goal):
"""computes the estimated (rough) distance between two random nodes, this met... | [
"mateusz.ziolkovski@gmail.com"
] | mateusz.ziolkovski@gmail.com |
9eea2ab6a50a9be9c909a9e2de1e8ad63cbdbe62 | 13228839374753871bb6e2f5af291e0824bf79bf | /build.py | da67e52466557fae12e57999c3f8baac9bd3c8eb | [] | no_license | theirix/conan-libssh2 | a1fc6a615ca5f933a6352926e365db395a832b4c | 965b2f107460594d3e0321ba27cddcaeb7cf3d65 | refs/heads/release/1.8.0 | 2021-01-11T14:17:50.297665 | 2017-01-17T15:38:16 | 2017-01-17T15:38:16 | 81,315,824 | 0 | 1 | null | 2017-02-08T10:08:10 | 2017-02-08T10:08:09 | null | UTF-8 | Python | false | false | 207 | py | from conan.packager import ConanMultiPackager
if __name__ == "__main__":
builder = ConanMultiPackager()
builder.add_common_builds(shared_option_name="libssh2:shared", pure_c=True)
builder.run()
| [
"a.kucher@avantize.com"
] | a.kucher@avantize.com |
88fca4c4dac79c79690eba654d20db9b00f37a69 | afe096d0d4b6112b0a098790c2feb5c4f919f968 | /load_configure.py | 47b2b4b0e180d517b21b2213b4b72b10a56bac67 | [
"MIT"
] | permissive | tjandy/ExcelToCode | 0e964f00b745b1610b0e439217fecf64336ea242 | fa5a89e367e83c1273fe6122eed68af1ff9ff911 | refs/heads/master | 2021-01-18T08:29:23.653598 | 2017-08-06T08:15:08 | 2017-08-06T08:15:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,968 | py | # -*- coding: utf-8 -*-
import os
import sys
import imp
import xlsconfig
from util import resolve_path
######################################################################
### 加载配置文件。cfg_file是python格式的文件。
######################################################################
def load_configure(cfg_file, option):
c... | [
"you_lan_hai@foxmail.com"
] | you_lan_hai@foxmail.com |
7a1483ba083193f24b9231a2dbfa18ffc09c84aa | 43321ac13d178656a69b5aeb2eb3aaee5ac31153 | /PyBank/main.py | 875afef90ba2d4efac8ff5b983d3c5c38753f8d6 | [] | no_license | Daltonjfield/Python-Challange | 5fc50905ec5821cdd31038f9a84535ee4f914500 | 8ad1a984845a4c80f704a8d9e61b8f56850e0234 | refs/heads/master | 2022-12-20T02:27:23.714697 | 2020-10-02T23:08:54 | 2020-10-02T23:08:54 | 299,745,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,600 | py | # Dependencies
import os
import csv
# Variables
months = []
profit_loss_changes = []
total_months = 0
net_total_pl = 0
original_month_pl = 0
current_month_pl = 0
profit_loss_change = 0
csvpath = os.path.join('Resources', 'budget_data.csv')
with open(csvpath, newline='') as csvfile:
csvreader = csv.reader(csvfil... | [
"daltonfield@Daltons-MacBook-Pro.local"
] | daltonfield@Daltons-MacBook-Pro.local |
8a9f2c084e5fbff4425c903743db38ff3e08f6e7 | e7d1e06b5686f87280db292863b34ce0ea530d94 | /src/examples/func_local.py | 151515b33e59143e74c36eb6b6361a128c4ad393 | [] | no_license | tobereborn/byte-of-python2 | 4e9abdb3c513f8b5aa3955873b7468ddb60c8883 | c7e06be6f246dc6292780d59de0806b19c086943 | refs/heads/master | 2021-01-12T04:25:00.536489 | 2017-02-07T02:06:23 | 2017-02-07T02:06:23 | 77,606,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
'''
Created on Dec 31, 2016
@author: weizhen
'''
def func(x):
print 'Local x is', x
x = 2
print 'Change local x to', x
x = 50
func(x)
print 'x is still', x
| [
"none"
] | none |
f2934ceaf7b1d80f3dbef566c84a049199ad5a6a | af4a73729eed23d505276cf4d43130ccdd4bb532 | /lambda.py | b0a1f71bb9c8e2d2866f8ce25e42cc73187f5f0e | [] | no_license | chetanoli2012/Python-Class-Codes | 413c1064d8b31e49cd7eba7c12928cb4e16a4dae | 843ab1656c69f97b3c8b4a72f7ad4021e90f36ce | refs/heads/master | 2020-03-12T07:49:13.000796 | 2018-04-21T21:50:08 | 2018-04-21T21:50:08 | 130,514,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | items = [1,2,3,4,5]
l = list(map(lambda x:x**2, items))
print(l) | [
"chetanoli2012@gmail.com"
] | chetanoli2012@gmail.com |
5d17c50bdd48e6c41bda269ba92d577eb1e79b42 | b9648b18534941232fc15fa0a851548a0930fc4b | /user_input.py | a2db26a060da02d5005ad13899ba8eed36b0a5fe | [] | no_license | csmyth215/shape_project | 0eda3e70ef90d6a5bb647663ee1cf7c08043c437 | 371a47326c962695d8b87c4efcfd9cfae3e328c3 | refs/heads/master | 2023-08-20T17:25:08.207906 | 2020-06-27T15:58:25 | 2020-06-27T15:58:53 | 250,755,121 | 1 | 0 | null | 2021-09-22T19:20:41 | 2020-03-28T09:20:21 | Python | UTF-8 | Python | false | false | 17,146 | py | import sys
from two_dimensional_shapes import *
from three_dimensional_shapes import *
# Currently lacking final input option to ask the user if they would like to run the program again.
# Need to restructure code to separate user input from calculations,
# and group calculations common to several shapes.
# Need to... | [
"chloe.smyth57@gmail.com"
] | chloe.smyth57@gmail.com |
43e861e7d858bf8ffe54f59165a8d442ab349855 | acf3014cfb4c5b0b11db58e5a187096af7db66a3 | /jj4.py | fdd4a02ef427fc0940ca45462e07d3146812b19e | [] | no_license | abbeeda/ggbo | 9d9083e4f7366359c6d35d9f838c5b7c31c85ad7 | 48ffb0a130757c814d4048c6bebaa6963e3ca0f9 | refs/heads/master | 2020-08-10T17:09:34.884494 | 2019-10-18T13:29:22 | 2019-10-18T13:29:22 | 214,382,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | <<<<<<< HEAD
a=int(input(""))
b=int(input(""))
c=int(input(""))
if a>b:
d=a
else:
d=b
if d>c:
print(d)
else:
print(c)
=======
a=int(input(""))
b=int(input(""))
c=int(input(""))
if a>b:
d=a
else:
d=b
if d>c:
print(d)
else:
print(c)
>>>>>>> c4107b7d195ae20fa506d622edecf008161c987b
| [
"2897254827@qq.com"
] | 2897254827@qq.com |
21fcc91bb92c203b5014998e5f7a4e1735e9186d | a7c33b1d260d96756dc12290da93cc02e4263f39 | /project6/website/articles/admin.py | 8b6005bf51ca7496e714508c2573cba3d836192b | [] | no_license | FosDos/udemy-django-projects | fed711a313891a162c19d1283a3e685cf4ee2007 | acb86f610fd4564d93901f2277321d1173a5cafc | refs/heads/master | 2022-12-03T03:56:29.725235 | 2020-08-27T13:34:24 | 2020-08-27T13:34:24 | 290,474,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | from django.contrib import admin
# Register your models here.
from .models import Article;
admin.site.register(Article); | [
"fosterclarksonwilliams@gmail.com"
] | fosterclarksonwilliams@gmail.com |
aeb1d9e97840a831a2788c0ea0ccb002728935fd | 2b7d422e78c188923158a2a0780a99eca960e746 | /opt/ros/melodic/lib/python2.7/dist-packages/control_msgs/msg/_JointTrajectoryGoal.py | 5daffbc8743dfc8aad30e794c9f3e0535a86a395 | [] | no_license | sroberti/VREP-Sandbox | 4fd6839cd85ac01aa0f2617b5d6e28440451b913 | 44f7d42494654357b6524aefeb79d7e30599c01d | refs/heads/master | 2022-12-24T14:56:10.155484 | 2019-04-18T15:11:54 | 2019-04-18T15:11:54 | 180,481,713 | 0 | 1 | null | 2022-12-14T18:05:19 | 2019-04-10T02:00:14 | C++ | UTF-8 | Python | false | false | 13,159 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from control_msgs/JointTrajectoryGoal.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import trajectory_msgs.msg
import genpy
import std_msgs.msg
class JointTrajectoryGoa... | [
"samuel.p.roberti@gmail.com"
] | samuel.p.roberti@gmail.com |
f04925d7a0bf63c4b38d98c0cb08f71f17cc7b9c | 347699fbc16144e45ec9ffb4fbdb01e19cc69329 | /cough2.py | 0187d44d66b5d0a074e7763a7e4e9445b57ae747 | [] | no_license | kevindsteeleii/CS50-Python_Intro_to_CS | e7793f82d0530cd2f22f5b9fae1af0afd9b9ab36 | 6dea7245a27fe540ec9aa2fc878e7b876c4533ef | refs/heads/master | 2020-04-20T14:15:06.223633 | 2019-02-03T00:36:15 | 2019-02-03T00:36:15 | 168,892,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | # has no special name
def main():
cough()
def cough():
print(3* "cough\n")
main()
# cough() | [
"github email address"
] | github email address |
3f780797cdf8d2ecfe9ac9b581a417acfd3754c6 | e46a845d9b5653ae2955c5623c0add0029b909b7 | /Categorize_new_member.py | 627853591110e8ed2d831ac1c7bf0b83357f51ee | [] | no_license | AdnCodez/Codewars | 89ea2aa3cb51e9d2429a0f406c1c03b2d36b5060 | 475556a413693b83ddfeb45a2257310de5e8d200 | refs/heads/master | 2020-03-24T04:59:40.087827 | 2018-07-31T16:16:15 | 2018-07-31T16:16:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | # 7 kyu / Categorize New Member
# Details
# https://www.codewars.com/kata/categorize-new-member
def open_or_senior(data):
result = []
for i in data:
if i[0] >= 55 and i[1] > 7:
result.append("Senior")
else:
result.append("Open")
return result
print(open_or_senio... | [
"adnan.7.habbat@gmail.com"
] | adnan.7.habbat@gmail.com |
327e422e523dcf388394fefb4bfc1f9ea1a87a16 | f63792e5e3a388d8c87f47c0dcffaafb6569f52c | /concat_csv.py | ec182ed84da26f0c3ea7055af0412658d743eb15 | [] | no_license | geomajor56/bct-leaflet | 16efde69da1a48a99e5801d9f9d6b12f4d69775b | acbc46d80e7a45041eeaebd05698572b229590bf | refs/heads/master | 2020-04-23T04:33:49.738386 | 2014-12-10T22:08:48 | 2014-12-10T22:08:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | __author__ = 'mas'
import csv
with open('/home/mas/gis-data/bct/bmw_assessor_2014.csv', 'r') as csvinput:
with open('/home/mas/gis-data/bct/bmw_csv_new.csv', 'w') as csvoutput:
dest = csv.writer(csvoutput, lineterminator='\n')
source = csv.reader(csvinput)
for row in source:
r... | [
"geomajor56@gmail.com"
] | geomajor56@gmail.com |
aa46ed9e8ed2ac5ed218ebcd394bc3a96ec3aa34 | 24e3ed40be3cb6241c6d5ceca14d99d9de68e975 | /join.py | 72b0bfac453a9f785f296ae02b8074b56b9df7be | [] | no_license | mrlz/SpotifyMusicBrainz | 25396667bb3c14d323a0f1e81ada51955a2be131 | ea195d2c757fc05608675fcd310068e5e963e44c | refs/heads/main | 2023-02-27T15:34:35.307113 | 2021-02-09T04:08:11 | 2021-02-09T04:08:11 | 337,286,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,315 | py | import csv
from multiprocessing import Pool
import time
def create_rows(arg):
row = arg[0]
extension_rows = arg[1]
ans = []
ans.append(row[0].replace(',', ''))
ans.append(row[1].replace(',', ''))
ans.append(row[2].replace(',', ''))
ans.append(row[3].replace(',', ''))
ans.append(row[4].re... | [
"sunshinewaker77@hotmail.com"
] | sunshinewaker77@hotmail.com |
ef519f43e5db8098082fdc741d5dc58fddc8d738 | faaf8af02a069919c4d553ff8e944bee8ccad806 | /Python para Zumbis/10.py | a7024a383dac48975c403a327f54b7e1cbbd090f | [] | no_license | marcioandrews/Estudos_Python | 5fe10993fc0ebc5a75d8a04687bc55cae7bd9fda | 07bf0683114132c726ed22c5d1c1be8ed7fc7fb2 | refs/heads/master | 2022-11-20T21:18:57.529507 | 2020-07-13T16:29:03 | 2020-07-13T16:29:03 | 279,171,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | qc = int (input ('Quantidade de cigarros fumados por dia '))
af = int (input ('Anos fumando '))
totala = af * 365
totalc = qc * totala
total = totalc / 1440
print (f'{total:.2f}') | [
"47893016+marcioandrews@users.noreply.github.com"
] | 47893016+marcioandrews@users.noreply.github.com |
918e565d89ad445a30f28a4fbffff08134023528 | a5201b3a9d2a93d612d93d1ad5f8627eccdbb626 | /ScoreRank/wsgi.py | 778b9f2f9f7476d98b4b62f0c05d11a121fdc281 | [] | no_license | xuzizheng1/ScoreRank | 26bf39c81c074f033b6e98e311e2276e50d66317 | 1c003218b7ce2afd999c74b5088f0ff459651bdf | refs/heads/master | 2023-07-17T13:21:33.456149 | 2021-09-06T17:12:52 | 2021-09-06T17:12:52 | 259,191,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for ScoreRank 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_SET... | [
"815203041@qq.com"
] | 815203041@qq.com |
1e88f7e22cd7e897109c553ce40fd696c2ea995a | 10d495c139f6556d27f8dfe34c4ee348b1803b64 | /src/snowflake/connector/auth/default.py | 87f6f6214d583b32c8bdc7c8032d941e9b860bb1 | [
"Apache-2.0",
"MIT"
] | permissive | snowflakedb/snowflake-connector-python | a5544f53d68a7a8d9be80ddf6e3cd34412610e8b | da1ae4ed1e940e4210348c59c9c660ebaa78fc2e | refs/heads/main | 2023-09-01T19:50:39.864458 | 2023-08-31T20:06:56 | 2023-08-31T20:06:56 | 62,262,074 | 492 | 494 | Apache-2.0 | 2023-09-14T10:02:00 | 2016-06-29T22:29:53 | Python | UTF-8 | Python | false | false | 1,016 | py | #!/usr/bin/env python
#
# Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved.
#
from __future__ import annotations
from typing import Any
from .by_plugin import AuthByPlugin, AuthType
class AuthByDefault(AuthByPlugin):
"""Default username and password authenticator."""
@property
def ... | [
"noreply@github.com"
] | noreply@github.com |
e216c2feeb68eba1c8976b72040c3a84d2b3c578 | e2ba1e3d001902e50f1dc9a63baf2a8abcac3ed8 | /InnerEye-DataQuality/InnerEyeDataQuality/datasets/nih_cxr.py | 91776355375965f599295af3453238326df7cff1 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | RobinMarshall55/InnerEye-DeepLearning | 81f52e7429f942e8c9845958d5b586e19e14e351 | 8495a2eec3903957e3e81f81a0d2ad842d41dfe2 | refs/heads/main | 2023-08-15T19:46:38.017713 | 2021-10-22T14:13:56 | 2021-10-22T14:13:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,929 | py | # ------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.
# -------------------------------------------------------------------... | [
"noreply@github.com"
] | noreply@github.com |
809c00156fa6bd32d5801f9d9428c87659126e75 | 23570a56058230282b47dfdeee21ce197dea6b09 | /quiz5.py | 8be733aaec7c8d38b5e4f627afbf0617b6817dea | [] | no_license | heejin99/Python | 1c2c0b384bf64d46719ad53d220830c74321886e | 42d095f9d63be1f817f931bc348fc7f5f68ee742 | refs/heads/master | 2023-07-06T11:12:12.690425 | 2021-08-09T14:05:55 | 2021-08-09T14:05:55 | 334,972,290 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | # Coca 서비스 이용 택시 기사님(50명)
# 조건 1 승객별 운행 소요 시간은 5분 ~ 50분 사이의 난수
# 조건 2 소요시간 5분~15분 사이의 승객만 매칭
from random import *
cnt = 0 # 총 탑승 승객 수
for person in range(1, 51):
time = randrange(5, 51)
if 5 <= time <= 15: # 매칭 성공
print("[O] {0}번째 손님 (소요시간 : {1}분)".format(person, time))
cnt+=1
else: # 매칭 실... | [
"wkdgmlwls30@naver.com"
] | wkdgmlwls30@naver.com |
485638e90767c3729c2e58115078a84fba15158a | e57763d1c8e282997f1f8a735459bc026d9a9d58 | /W03D01/32_multiplicationtable.py | e2c8ea628841349707cb08199aad9485cccfbc63 | [] | no_license | santosh-srm/srm-pylearn | 86612733e17ccdedf0d48b8ec9517a7ebfcee096 | 18f74adc16e03e535bd19118628366a36a46131b | refs/heads/main | 2023-03-01T12:38:11.327635 | 2021-02-06T06:33:47 | 2021-02-06T06:33:47 | 321,044,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | """Print a multiplication table."""
def main():
"""Printing Multiplication Table"""
print_table(2)
print_table(7)
print_table(13)
def print_table(n):
"""Print nth Multiplication Table"""
print(f"Table {n}")
for i in range(1, 11):
print(f'{n} * {i} = {n*i}')
print("\n")
main()
... | [
"santoshrao.m@gmail.com"
] | santoshrao.m@gmail.com |
7d6d2fd0654513d92a796442f5ef4e517a284778 | 1695f950570ee24e4bbd1c00f247b1047e092804 | /foodcomputer/management/commands/_build_handler.py | b90410539cb73c0420b12fd41f70446ffce1f038 | [] | no_license | econforte/MavFC2018 | 436c4b4de7260ef0d3d1edc73f478e7a42a1bb8c | d6f1e5a01512297b5283d790daf06bdf602dc3e8 | refs/heads/master | 2020-03-12T03:31:06.036731 | 2018-05-02T02:22:11 | 2018-05-02T02:22:11 | 130,426,041 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,587 | py | from django.contrib.auth.models import User
from django.core.exceptions import ObjectDoesNotExist
from rest_framework.authtoken.models import Token
from experiment.models import *
from foodcomputer.models import *
class DataBuilder(object):
def clear_tables(self):
day_num = Day.objects.all().delete()[0... | [
"cbane@unomaha.edu"
] | cbane@unomaha.edu |
a9adbd9757605899cfcc24ab62f85a0506576082 | 9923e30eb99716bfc179ba2bb789dcddc28f45e6 | /apimatic/python_generic_lib/Samsara+API-Python/samsaraapi/models/tag_1.py | c430f1f458ea4d2ca686481440b43d895aaab5a2 | [
"MIT"
] | permissive | silverspace/samsara-sdks | cefcd61458ed3c3753ac5e6bf767229dd8df9485 | c054b91e488ab4266f3b3874e9b8e1c9e2d4d5fa | refs/heads/master | 2020-04-25T13:16:59.137551 | 2019-03-01T05:49:05 | 2019-03-01T05:49:05 | 172,804,041 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,770 | py | # -*- coding: utf-8 -*-
"""
samsaraapi
This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
"""
class Tag1(object):
"""Implementation of the 'Tag1' model.
TODO: type model description here.
Attributes:
id (long|int): The ID of this tag.
... | [
"greg@samsara.com"
] | greg@samsara.com |
846a6757276db72f19c0eee1d8c7a5baab55122d | 05470f817fdb223bc1c9697032723489229c2f58 | /py/generate_password.py | 11d03b8ec50621f66bae0b3fb7fc924428ef14e9 | [
"MIT"
] | permissive | christophfranke/continuous-integration-tools | 14460892f36214b75e9029eac4ff09101dbeee80 | eeb77a624303f5b5971ea7110a8352ff72feb312 | refs/heads/master | 2021-01-09T06:47:55.417229 | 2017-02-02T10:42:36 | 2017-02-02T10:42:36 | 81,100,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | from modules import engine
from modules import out
from modules import run
@engine.prepare_and_clean
def execute():
out.log("generating password...")
run.local('openssl rand -base64 15')
def help():
out.log("Creates a strong random 20 characters password.", 'help') | [
"franke@ragusescheer.de"
] | franke@ragusescheer.de |
db99422319b1f8551b4d4246f83114cc4c4e37bb | 97892ab999d98171e2583cbaa4ca5bfc9c9fd701 | /deploy/ansible/roles/iroha/add_peers_and_notaries.py | 52fd95ef42f22a8fc0fd0b57b0289d33c86d85bd | [
"Apache-2.0"
] | permissive | d3ledger/notary | efeb38bd60d41e63e4e4dd819e249c08f03e8ffa | 0e719a1a8fcdce23933df68749028befe40cbc50 | refs/heads/master | 2021-06-03T02:36:54.545268 | 2019-10-10T09:00:32 | 2019-10-10T09:00:32 | 129,921,969 | 17 | 6 | Apache-2.0 | 2020-02-18T13:10:37 | 2018-04-17T15:01:56 | Kotlin | UTF-8 | Python | false | false | 2,791 | py | #!/usr/env/python3
import base64
import csv
import json
import os
import sys
'''
host;port;priv_key_hex_encoded;pub_key_hex_encoded
'''
class Peer:
def __init__(self, host, port, priv_key, pub_key):
self.host = host
self.port = port
self.priv_key = priv_key
self.pub_key = pub_key
... | [
"noreply@github.com"
] | noreply@github.com |
22e0f4ddf70d8a6df31ef25ad3c9523dd8105a3a | ac89e5d51d0d15ffdecfde25985c28a2af9c2e43 | /test/test_match_alliance.py | 931bc1a9d817c762a45d35d742fc1774fbbb67f5 | [] | no_license | TBA-API/tba-api-client-python | 20dc4a634be32926054ffc4c52b94027ee40ac7d | 4f6ded8fb4bf8f7896891a9aa778ce15a2ef720b | refs/heads/master | 2021-07-15T16:36:32.234217 | 2020-05-07T00:20:43 | 2020-05-07T00:20:43 | 134,112,743 | 4 | 8 | null | 2019-07-01T03:14:12 | 2018-05-20T02:13:45 | Python | UTF-8 | Python | false | false | 1,191 | py | # coding: utf-8
"""
The Blue Alliance API v3
# Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account... | [
"travis@example.org"
] | travis@example.org |
4c53a074db5d4ab4401ea1f0ffb6bd3abb60f510 | 5a255386f62477a7d51c2e7ce02e6e4d88892eeb | /src/M09_第一胎VS第二胎.py | c0a94f1ccf35362666ae87b5630dfa0c30ca1b71 | [] | no_license | SuperLatte/Statistics_PyOJ_Competition | af8bc5c54028a174f7cdd9c3106f444f6dc5955c | 553c07cdeb94dfb028ae96406cb7e4ae0f026097 | refs/heads/master | 2020-12-31T05:57:16.075427 | 2015-06-30T09:13:20 | 2015-06-30T09:13:20 | 37,768,306 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,522 | py | #-*- coding:utf-8 -*-
# 描述:
#
# 仍然利用NSFG数据(url为http://112.124.1.3:8050/getData/101),但这次我们想验证第一胎婴儿是否更倾向于更早或更晚出生而较少准时出生的假设,因此需要利用卡方检验计算出其卡方值chisq及推翻假设的p值。
# 试写函数solve计算卡方值chisq及p值
# 输入:
#
# 调查样本数据,格式为{“status”:"ok","data":[[1, 1, 39, 1, 141, 1, 33.16, 6448.271111704751], [1, 2, 39, 1, 126, 2, 39.25, 6448.271111704751]... | [
"arkie01@163.com"
] | arkie01@163.com |
9349bd74ff31deab5e9122b86f3ac15dc12aa5e5 | 096863b26bead89e229fb439c7c1eda1cd3d2cd8 | /tests/test_public.py | a383e680e25cdc4896e0b23f5298614dd1480c60 | [
"ISC"
] | permissive | euri10/pykraken | 57a37788d4544487bc0d68fffea38361cd805cb7 | 04e2797723579aee48706533357e7fa17004bb28 | refs/heads/master | 2021-01-17T16:57:07.118143 | 2016-05-30T13:12:33 | 2016-05-30T13:12:33 | 59,895,343 | 6 | 1 | ISC | 2019-10-01T18:13:29 | 2016-05-28T13:15:42 | Python | UTF-8 | Python | false | false | 2,138 | py | import time
import pykraken
import pytest
from pykraken.config import PROXY, API_KEY, PRIVATE_KEY
def test_no_api_key():
with pytest.raises(Exception):
client = pykraken.Client()
def test_server_time():
client = pykraken.Client(API_KEY, PRIVATE_KEY, requests_kwargs=PROXY)
utcnow = time.time()
... | [
"benoit.barthelet@gmail.com"
] | benoit.barthelet@gmail.com |
d5a7791ef5d1a16c2f4cfdbc78846c44437f2ad5 | 33327721233dbab4f95226aca5ebf52ec5782ae3 | /ModelInheritance/urls.py | 184bf47cbd9fed6d95c6e1cf7d0f6a88f774f9c9 | [] | no_license | priyankaonly1/ModelInheritance | 0b45e515cb1f9751f76b9639d1aab78369a861f9 | 078dfd24428c8f64ab66da421a1e4afc94b5c14c | refs/heads/main | 2023-07-05T11:55:17.489648 | 2021-09-03T18:56:22 | 2021-09-03T18:56:22 | 402,871,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | """ModelInheritance 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')
Cl... | [
"priyankabiswasonly1@gmail.com"
] | priyankabiswasonly1@gmail.com |
5725565c8233d54c532088ebda905dca10d51e65 | 9b64f0f04707a3a18968fd8f8a3ace718cd597bc | /huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v2/model/create_o_auth_request.py | 6759129234f47c48a4eb8652297aba7bde7df202 | [
"Apache-2.0"
] | permissive | jaminGH/huaweicloud-sdk-python-v3 | eeecb3fb0f3396a475995df36d17095038615fba | 83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b | refs/heads/master | 2023-06-18T11:49:13.958677 | 2021-07-16T07:57:47 | 2021-07-16T07:57:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,107 | py | # coding: utf-8
import re
import six
class CreateOAuthRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
e0f1d63c7f12b3730b39b47399da4f32770a8c76 | 4e062e841e7371722f3b4321e14ebbd04d1299a6 | /rl3/a2c/a2c.py | 7f3719ffbb3ce3290135b493bc57b947dd10a3e7 | [
"Apache-2.0"
] | permissive | viclen/machine_learning_examples_v2 | 1e767e033efae2e337d7c456f2bd23746ccc4f73 | d47d572629899efe23bb26edffedfd464c0f77e4 | refs/heads/master | 2022-11-26T19:26:11.330565 | 2020-08-04T23:06:17 | 2020-08-04T23:06:17 | 285,119,617 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,871 | py | # https://deeplearningcourses.com/c/cutting-edge-artificial-intelligence
import time
import joblib
import numpy as np
import tensorflow as tf
import os
tf.compat.v1.disable_eager_execution()
def set_global_seeds(i):
tf.compat.v1.set_random_seed(i)
np.random.seed(i)
def cat_entropy(logits):
a0 = logits ... | [
"victorpbi5@hotmail.com"
] | victorpbi5@hotmail.com |
40c50ea403143a68cd76529a6eca254fecf33e09 | 17bbb6a93ac2689e3b573c6a76d245c3de4c7d34 | /controlapp/apps.py | b9af50e257656146060bb43c2943c1e9e71f610d | [] | no_license | luma1103/proyectozona | d18297aeee5f2beb311b2ffa949f8a63a2f52f5c | ed5cfce95b48a7ef9b30040aafee0ecd40295caf | refs/heads/master | 2021-08-07T08:24:56.152860 | 2017-11-07T22:17:24 | 2017-11-07T22:17:24 | 109,874,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class ControlappConfig(AppConfig):
name = 'controlapp'
| [
"lumamor1103@gmail.com"
] | lumamor1103@gmail.com |
8f152a314ef63e887d0f8e569075306ee1396908 | 4ae3b27a1d782ae43bc786c841cafb3ace212d55 | /Test_Slen/Pytest_proj/01/Scripts/rst2latex.py | 61137b0e6f44ef69c8780b8663fadf71a62bbb4b | [] | no_license | bopopescu/Py_projects | c9084efa5aa02fd9ff6ed8ac5c7872fedcf53e32 | a2fe4f198e3ca4026cf2e3e429ac09707d5a19de | refs/heads/master | 2022-09-29T20:50:57.354678 | 2020-04-28T05:23:14 | 2020-04-28T05:23:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | #!c:\users\jsun\documents\py_projects\pytest_proj\01\scripts\python.exe
# $Id: rst2latex.py 5905 2009-04-16 12:04:49Z milde $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing LaTeX.
"""
try:
im... | [
"sunusd@yahoo.com"
] | sunusd@yahoo.com |
1c40fabd6acb0b56b897d13eb7ee86d5ac64e604 | 876c0fcfcc6201ab36e3eefe61feac5053acd642 | /q3helper/fraction.py | 636e1d0f79ac3f1db7edc107c0a1cb5ce52d9ca8 | [] | no_license | mbusc1/Python-Projects | 10ca8b6c229681007ff9af84fcdf6b964213deff | 0d28b8f3f1d82fdce958172b84a06c384c0d5d7b | refs/heads/master | 2021-01-09T04:27:57.604419 | 2020-02-21T23:17:03 | 2020-02-21T23:17:03 | 242,245,375 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,874 | py | from goody import irange
from goody import type_as_str
import math
class Fraction:
# Call as Fraction._gcd(...); no self parameter
# Helper method computes the Greatest Common Divisor of x and y
@staticmethod
def _gcd(x : int, y : int) -> int:
assert x >= 0 and y >= 0, 'Fraction._gcd: x('+str(... | [
"pianobuscemi@gmail.com"
] | pianobuscemi@gmail.com |
740e29f1caaa4ec8c3bdc4ff19d6221706c40e2e | aac4c14380fe5f8f6acd287bd30aa47ebcf955fa | /codes/eda.py | b21648467689cfdeff6d079b2b7461ecee12717a | [] | no_license | matheus695p/nox-and-co-emissions | 13fa2e2e5e8d5b7555702b1facf90625bdcf522e | 60e0acc4e96d1b0e0455898c8881a68ae6691bdd | refs/heads/main | 2023-04-15T07:32:44.314993 | 2021-04-16T16:02:44 | 2021-04-16T16:02:44 | 356,569,249 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,244 | py | import warnings
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
from src.config_cnn import arguments_parser
from src.visualizations import (pairplot_sns, pairgrid_plot, violinplot,
kernel_density_estimation)
warnings.filterwarnings("ignore")
sns.set(font_scale=1... | [
"mateu_695p@hotmail.com"
] | mateu_695p@hotmail.com |
d1863f2c464a35789ea292a393febaade2777322 | d7b86b837c7602dcf08bc3e26ccb38fd9f87a96c | /sampleproject/bot/telegrambot.py | 43bf22205ce8cdff391ae693d37ce75be5c0c3a2 | [] | no_license | ahmadfah1612/django-telegrambot | 897270548ee9fc29c6d66ad1ca5fd17db33444cf | 5ca49c0b3c460558865a5781144353009c1f4611 | refs/heads/master | 2021-06-11T04:55:54.505704 | 2017-04-08T11:01:56 | 2017-04-08T11:01:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,472 | py | # -*- coding: utf-8 -*-
# Example code for telegrambot.py module
from telegram.ext import CommandHandler, MessageHandler, Filters
from django_telegrambot.apps import DjangoTelegramBot
import logging
logger = logging.getLogger(__name__)
# Define a few command handlers. These usually take the two arguments bot and
# u... | [
"peleccom@gmail.com"
] | peleccom@gmail.com |
0d5e9383532263b64a998555e321058c1dca6a7a | aecb87b877e41244d0f17957874c7648a99d5406 | /shuffle.py | 31a07b2d1abb6c1f58e2da6f8efedc951e819210 | [] | no_license | RobbeDP/spotify-shuffler | 2795c8e406c0cf936fdc834fef0b9dc2fc6cecd0 | ff43159301ef50a47826414b99181ecfc3b1dc3b | refs/heads/master | 2022-12-06T01:20:18.969241 | 2022-11-24T13:34:33 | 2022-11-24T13:34:33 | 181,222,304 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,470 | py | import sys
import os
import spotipy
import spotipy.util as util
import random
limit = 100
scope = 'playlist-modify-public'
if len(sys.argv) > 2:
username = sys.argv[1]
playlist_uri = sys.argv[2]
else:
print(f"Usage: {sys.argv[0]} username playlist_uri")
sys.exit()
try:
token = util.prompt_for_us... | [
"Robbe.DeProft@ugent.be"
] | Robbe.DeProft@ugent.be |
7840d987b36c9fc865a9c33ba48aef4d748b4d5c | 7c6d2749585529a83ac9238d1ed03415ac754660 | /Ex31.py | 37f3a62d72345c3b7acbd909be32865104d83a50 | [] | no_license | Caffeine-addict7410/Pythonwork | c7006daf87926c432a2311ebfb49ff0bb8179cc8 | b7d55a71d98354527507c477ce596d00e591447e | refs/heads/master | 2020-05-01T17:07:42.118331 | 2019-06-11T14:48:43 | 2019-06-11T14:48:43 | 177,591,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,178 | py | print("""You enter a dark room with two doors.
Do you go through door #1 or door #2?""")
door = input("> ")
if door == "1":
print("There's a giant bear here eating a cheese cake.")
print("What do you do?")
print("1. Take the cake")
print("2. Scream at the bear.")
bear = input("> ")
... | [
"student.138059@worcesterschools.net"
] | student.138059@worcesterschools.net |
f1f5c53ef79d2ea290f04a92dfee8f7ca47e5392 | 8d4f064973b5f21ed06cd06e9853b3fba78e027b | /PYTHON/stack.py | f3d3d4b98d68db2819b33d34e1e91cbc76bacfe7 | [] | no_license | abby2407/Data_Structures-and-Algorithms | f824fe4c9b37c6136251e8b8e14f4ff58297f2c7 | 5a04a518b2dd26df270004d00e4b9454206a06c0 | refs/heads/master | 2022-09-21T02:19:52.594624 | 2020-06-01T06:41:15 | 2020-06-01T06:41:15 | 265,739,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,796 | py |
# ---------------stack using simple list ----------------------
class Stack():
def __init__(self):
self.stack = list()
def push(self,item):
self.stack.append(item)
def pop(self):
if len(self.stack) > 0:
return self.stack.pop()
else:
... | [
"noreply@github.com"
] | noreply@github.com |
2dfc7daffcdc6cd0db366b294cdcc40bb150459f | d89545958e45d11e462966ad4ce02e68b049b23b | /pochta/pochta_main/models.py | 2847b7d9aff6d846cc49f1f81f59d2454fe3f2ba | [] | no_license | foxgroup-2020/pochta-address | 283c3cfcbcff4aec28fe3e317dc1489ed903be76 | 9d8e97544168198391353671600f292dea99d040 | refs/heads/main | 2023-01-13T04:36:00.707414 | 2020-11-15T04:39:49 | 2020-11-15T04:39:49 | 312,629,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,181 | py | from django.db import models
from django.contrib.auth.models import User
import os
class FileParse(models.Model):
date_upload = models.DateTimeField('Дата загрузки', auto_now=True)
file_path = models.FileField('Файл', upload_to='docs/')
current_record = models.IntegerField('Текущая запись', default=0, edit... | [
"ruslan.gzn@gmail.com"
] | ruslan.gzn@gmail.com |
3a9e6f26eb3c504ecdcee462cc4ca6fa202c7bab | 6cea35ad90d80191d4a088685d9192fb43f39ee2 | /example/chat/packetType.py | 5dbf972f5cf124ee971ab18468593b1abec8bdc5 | [] | no_license | realtime-system/pysage | de48f538cae24caf08829d9311dfe64e2856c7be | 6aef3a6f3c68ae8622f921254ee3815cd5cade07 | refs/heads/master | 2016-09-06T09:38:46.088683 | 2011-11-09T23:20:06 | 2011-11-09T23:20:06 | 24,540,925 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | from pysage import *
class rcvChatMessage(Message):
'''regular chat Message'''
properties = ['nick', 'msg']
types = ['p','p']
packet_type = 101
class conMessage(Message):
'''client connect to server and send nickName'''
properties = ['nick']
types = ['p']
packet_type = 102... | [
"afanolovcic@gmail.com@1fa98330-223e-0410-ac30-ad2a981e1070"
] | afanolovcic@gmail.com@1fa98330-223e-0410-ac30-ad2a981e1070 |
9baf84a3f128fbdc8787947c099b5f83b777bbc7 | 1285703d35b5a37734e40121cd660e9c1a73b076 | /aizu_online_judge/tree/7_d_solution.py | 70efa80577b60594e3d0ffb0dedc8489925e85a8 | [] | no_license | takin6/algorithm-practice | 21826c711f57131108168775f08e4e13d07a3b38 | f4098bea2085a77d11c29e1593b3cc3f579c24aa | refs/heads/master | 2022-11-30T09:40:58.083766 | 2020-08-07T22:07:46 | 2020-08-07T22:07:46 | 283,609,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | class Node():
def __init__(self, parent = -1, left = -1, right = -1):
self.parent = parent
self.left = left
self.right = right
def postorder(ns, i, post):
if ns[i].left != -1:
postorder(ns, ns[i].left, post)
if ns[i].right != -1:
postorder(ns, ns[i].right, ... | [
"takayukiinoue116@gmail.com"
] | takayukiinoue116@gmail.com |
02701f9e865c9dad1ce5b494c6801ac7563a11fa | cc5e889e5cfb063651f3e2d103a22a64f1870959 | /nova-13.0.0/nova/virt/libvirt/driver.py | 58dd46d7e508bce5058c0f970bb66273658b1f6c | [
"Apache-2.0"
] | permissive | bopopescu/pro-nova | d7e3a17f884c09548d424b17a59f2dcfcb2bb16e | 7632e83030d7358b7eb8f45918d504d267047cd9 | refs/heads/master | 2022-11-23T14:51:12.343826 | 2017-03-02T15:00:02 | 2017-03-02T15:00:02 | 282,099,365 | 0 | 0 | null | 2020-07-24T02:06:02 | 2020-07-24T02:06:02 | null | UTF-8 | Python | false | false | 363,563 | py | # Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
# Copyright (c) 2010 Citrix Systems, Inc.
# Copyright (c) 2011 Piston Cloud Computing, Inc
# Copyright (c) 2012 University Of Minho
# (c) Copyright 2013 Hewlett-Pa... | [
"xuchao@chinacloud.com.cn"
] | xuchao@chinacloud.com.cn |
f37c9c9e677a1228090ec17d5e20eddddd95fdfe | f526a5c3a7ca9fb25d4edef88be2e2e353171710 | /TypedTokenEditor/editor_typed_token_impl.py | cb497bba6beb35a35e89a513c6bc7fa47d140c4d | [] | no_license | drvgautam/ProMo-packages-OntologyBuilder | b4d7a71226e9dd385a8857253915b758726315fc | 60aeac5e3b92816f8f5361cffb9eb4e5750ff14b | refs/heads/master | 2023-08-03T01:49:21.231517 | 2021-09-28T12:20:05 | 2021-09-28T12:20:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,464 | py | #!/usr/local/bin/python3
# encoding: utf-8
"""
===============================================================================
editor for typed tokens -- list definition and conversion
===============================================================================
"""
__project__ = "ProcessModeller Suite"
__autho... | [
"heinz.preisig@chemeng.ntnu.no"
] | heinz.preisig@chemeng.ntnu.no |
4d0ff100df96f78e91c164cc6b0f8108ad06d5c1 | a4da2975725394a1b4973afdd8395bfae04d5a4b | /operaciones_basicas (1).py | e43bd92eb30d3772f7f8a4458f44cf3b64cc5f75 | [
"MIT"
] | permissive | Michikouwu/primerrepo3c | 7c425f30071059632a1e20934f1156f4f83a19d1 | 22f8fcc5c4927657e7fbfca52e06af3d9680eeaf | refs/heads/main | 2023-08-27T22:04:26.576034 | 2021-09-20T17:30:17 | 2021-09-20T17:30:17 | 403,972,855 | 0 | 0 | MIT | 2021-10-04T17:28:31 | 2021-09-07T12:38:18 | Python | UTF-8 | Python | false | false | 410 | py | # Este es el ejercicio del grupo tercero c
# del dia 13 de septiembre de 2021
# esta linea coloca un mensaje en la consola
print("Este programa hace operaciones basicas")
num1 = 130
numero_2 = 345
suma = num1 + numero_2 # la resta se hace con el simbolo '-'
multip = num1 * numero_2 # la division se hace con una '/'
p... | [
"noreply@github.com"
] | noreply@github.com |
695b834fd9242f05d4e9da6c8417c9762ee8c321 | 53902f5c212f8b0024ea723109989085876adef1 | /emailnotifications/apps.py | d3aaf8207483e3cafc6ea1d775adb46e7e9fbdff | [] | no_license | GammaWind/Url-Shortner-main | 40fc4d088f1ed4a283ae705251d4962d6b497a6b | 93fd46dbc90034a589b0d7ca4cbd0d58fb8e9e7d | refs/heads/main | 2023-03-08T10:18:50.658087 | 2021-02-21T10:16:34 | 2021-02-21T10:16:34 | 336,628,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | from django.apps import AppConfig
class EmailnotificationsConfig(AppConfig):
name = 'emailnotifications'
| [
"niharpawade@outlook.com"
] | niharpawade@outlook.com |
c0ecc3296cd811fe782785ac56a926a7383d5c13 | 128b3bb5e5e3797ea73b8d71ec479b02d2d02b75 | /py/h2o_nodes.py | 55df64bb6144d92806a795cb08cbf9c422050764 | [
"Apache-2.0"
] | permissive | JerryZhong/h2o | 14819b044466dffe4ec461cb154898610f6be8b3 | c8ce6d223786673b5baf28f26d653bf4bd9f4ba9 | refs/heads/master | 2021-01-17T10:12:35.547837 | 2014-11-07T11:05:47 | 2014-11-07T11:05:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py |
# does the globally visible update behavior on these depend on them being mutables?
# to get rid of circular imports
# should think of managing this differently
print "h2o_nodes"
nodes = []
# used to get a browser pointing to the last RFview
global json_url_history
json_url_history = []
| [
"kevin@0xdata.com"
] | kevin@0xdata.com |
962fcdea414dd16c0440dbb76f316855a7adf46d | 30f89269bf4507c92b1161080feb007d614c99ed | /LAUG/aug/Word_Perturbation/multiwoz/run.py | d46d51caa1eeab4a100c1db916eef44bb96e8908 | [
"Apache-2.0"
] | permissive | xiaoanshi/LAUG | 525b93d25d53c616466fd28d162f6c6f6fa34658 | c3e7f98f71de77b5d73945b15f37dd22d8a2f8c8 | refs/heads/main | 2023-06-19T16:29:18.075959 | 2021-07-23T10:50:17 | 2021-07-23T10:50:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,109 | py | import os, json
from LAUG.aug.Word_Perturbation.multiwoz.multiwoz_eda import MultiwozEDA
from LAUG.aug.Word_Perturbation.multiwoz.db.slot_value_replace import MultiSourceDBLoader, MultiSourceDBLoaderArgs
from LAUG.aug.Word_Perturbation.multiwoz.util import load_json
from LAUG import DATA_ROOT
def main(multiwoz... | [
"hualai-liujiexi"
] | hualai-liujiexi |
802391643c571e18444c6d654b5d64d6f05396f0 | dd18a5762680e4d0ec6306fd58a8d80adf9e8187 | /train_ddpg_psne.py | eb2087119582166489e3628d97d7c6ab83e59d20 | [] | no_license | gtuzi/Deep_RL_continuous_control | 747cfcef623daa1901870b152d8597c5f6b2f119 | f270724baf42328aefe23417b8d87aea47737faa | refs/heads/master | 2020-04-10T11:51:25.329554 | 2019-03-21T03:34:17 | 2019-03-21T03:34:17 | 161,004,608 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,617 | py | import torch
import numpy as np
from collections import deque
from unityagents import UnityEnvironment
from udacity.ddpg_psne import Agent
from tensorboardX import SummaryWriter
import os
cwd = os.getcwd()
def get_env(agents = 'multi'):
from sys import platform as _platform
if _platform == "linux" or _platf... | [
"gertituzi@gmail.com"
] | gertituzi@gmail.com |
cd8c39eff00b00f3071855b64494d6159d08584a | 45b64f620e474ac6d6b2c04fbad2730f67a62b8e | /Varsity-Final-Project-by-Django-master/.history/project/quiz/views_20210423112204.py | 7280d320c23c7ccb25ba0eff899768fde6d05502 | [] | no_license | ashimmitra/Final-Project | 99de00b691960e25b1ad05c2c680015a439277e0 | a3e1d3c9d377e7b95b3eaf4dbf757a84a3858003 | refs/heads/master | 2023-04-11T06:12:35.123255 | 2021-04-26T15:41:52 | 2021-04-26T15:41:52 | 361,796,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 974 | py | from django.shortcuts import render
from quiz.models import Quiz
from quiz.models import Bangla
from quiz.models import Math
from quiz.models import Science
from quiz.models import GK
#def welcome(request):
#return render(request, 'welcome.html')
def english(request):
questions = Quiz.objects.all()
return... | [
"34328617+ashimmitra@users.noreply.github.com"
] | 34328617+ashimmitra@users.noreply.github.com |
dac776dc3cbec6baf5fef351ff9702cb37705b62 | ec0b8551b15f73628d7afe01855bdd7171887097 | /solutions/fibo.py | 01ae1caa8e2e934db1a122059877e4629fd66af4 | [] | no_license | krishna-kumar456/Code-Every-Single-Day | 146a6f65b53a16bb174c2b61dbac8366cc4ca53a | 8746f74fe29c1dd639453826ef0e30788674d984 | refs/heads/master | 2021-08-08T11:45:04.134707 | 2017-11-10T08:39:21 | 2017-11-10T08:39:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | def print_fibonacci(n):
if n <= 1:
return 1
else:
return print_fibonacci(n-1) + print_fibonacci(n-2)
user_input = int(input("Enter number whose fibonacci needs to be found"))
result = print_fibonacci(user_input)
print(result)
| [
"krishnaqmar@gmail.com"
] | krishnaqmar@gmail.com |
88e37ae61086666bf49c3decdda3ec5c96620c45 | 018d76162bc1e52f3550989d2274614cf0e197b4 | /pc/build/hector_imu_tools/catkin_generated/pkg.installspace.context.pc.py | 8431c101abd726a29c549a411cf676489bf2f7ad | [] | no_license | HarryOMalley/final_year_project | 0682f40561ffa4a7eb07fe52a0e2231851b689ea | 5c7ff41d3493b3b4a25f9c071f2edc1faef61ae4 | refs/heads/master | 2020-04-14T18:19:44.030559 | 2019-05-16T19:53:49 | 2019-05-16T19:53:49 | 164,014,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "hector_imu_tools"
PROJECT_SPACE_DIR =... | [
"hazaomalley@gmail.com"
] | hazaomalley@gmail.com |
e2c69efcc974d82561d092fe3f64a39b5e67c823 | 2b5d0b42f233caf8b1842f6f6db378207952d7ff | /nthprime.py | fd29f5ab2a07318326e5f93e5531f4df27b536b0 | [] | no_license | aslamup/euler | 8edf7d90f593f2bd8b1f8fc9cdb83cd9dea679cf | 755878ad8c64bff1b33cc94802983aeed425dd8c | refs/heads/master | 2021-01-01T15:18:10.335949 | 2014-04-01T06:44:19 | 2014-04-01T06:44:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | import math
def is_prime(number):
if number<=1:
return False
if number==2:
return True
if number%2==0:
return False
for i in range(3,int(math.sqrt(number))+1):
if number%i==0:
return False
return True
def term(n):
... | [
"aslam@aslam-Satellite-Pro-C660.(none)"
] | aslam@aslam-Satellite-Pro-C660.(none) |
0c5c6040ea01905558080880129f9e0e4d4d5263 | 2d30f85c30ba069830a872554786c2f7b645ee4e | /aoc2022/day20.py | 526f39a7daa7633e2415f906a5e6260a69be2ab5 | [] | no_license | jhuang97/adventofcode | fff0cb8f803ec37bff889dc897e3e474f3f00a36 | e2e83a5b8b4e6b8fad14b9484a64fbe404a6c37e | refs/heads/master | 2022-12-27T07:54:08.140910 | 2022-12-25T05:24:39 | 2022-12-25T05:24:39 | 225,652,688 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,192 | py | import numpy as np
file = open('day20_in.txt', 'r')
num_str = file.read().strip().splitlines()
nums = np.array([int(n) for n in num_str])
# nums = np.array([1, 2, -3, 3, -2, 0, 4])
right = np.zeros(len(nums), dtype=int)
left = np.zeros(len(nums), dtype=int)
right[:-1] = np.arange(1, len(nums))
right[-1] =... | [
"noreply@github.com"
] | noreply@github.com |
741f4f977054d674b6570a9cbd439392f1bdf378 | c8a0f1ee8ca4b27d6b71e1a358f950a5f168b953 | /Sessão 4/Atributos de classe/Encapsulamento.py | cf204b06b1de3f55ff1b2bc2ec9d5e83d5a6d641 | [] | no_license | natanaelfelix/Estudos | 0c3a54903a5ac457c1c1cfbdc22202683c46b62c | 10b33fa7cb8521d63ea6a14c04894a5f7e86ee0c | refs/heads/master | 2022-12-16T12:07:45.088305 | 2020-09-19T19:56:07 | 2020-09-19T19:56:07 | 296,936,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,553 | py | #esconde codigos em python
'''
public, # metodos e atributos podem ser acesso dentro e fora da class,
protect # atributos que podem ser acesso apenas dentro da classe ou nas filhas da classe
private # atributo ou metodo só está disponível dentro da classe
em python:
isso é chamado de convenção
_ = é o mesmo que é pr... | [
"natanaelmartinsfelix@hotmail.com"
] | natanaelmartinsfelix@hotmail.com |
ccedc17ba5f223b2b46ee55cbe835f9f835c7af1 | 2cf1f60d5adcc9fe56366e26b95860a440bcb230 | /Previous Year CodeVita/Travel_Cost.py | 3818cb399113612f5e097dfbda7f072ec2e90394 | [] | no_license | rohanJa/DSA_IMP | 619a7b5c89b55cbff3c77b265242c05ebedd6140 | b0ead018814d53a00cc47cda1915ad0dfe5c30dc | refs/heads/master | 2022-12-23T22:56:32.775027 | 2020-09-01T06:52:25 | 2020-09-01T06:52:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | import heapq
N = int(input())
cities = list(map(int, input().split(' ')))
M = int(input())
if(len(cities)<=1 or cities[-1]==-1):
print(-1)
else:
cost = cities[0] + cities[-1]
cities = cities[1:len(cities)-1]
heapq.heapify(cities)
for i in range(0,len(cities)):
if(cities[i]==-1):
... | [
"pkopergaonkar@gmail.com"
] | pkopergaonkar@gmail.com |
8dff3d3ce71476161dacbf91ee9ed73af5530b6b | 919c60040c4cafe6dbbde0025068bf5501cf133f | /my-function.py | a1ba39911b138667bd5bedc6dff47153aa2282fc | [] | no_license | bs3537/lambdata | 29ef219e1258523f8d5a71fc3dd5d5c6e805cd04 | 39ea67107dd8c3f9bfee608b0e0b1f0382a02586 | refs/heads/master | 2020-12-15T21:06:16.581498 | 2020-01-21T04:18:07 | 2020-01-21T04:18:07 | 235,254,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34 | py | def my-function():
pass
| [
"noreply@github.com"
] | noreply@github.com |
8f756a1da0a0b4cd1ff061bdc03f1117d72ff621 | 2d055d8d62c8fdc33cda8c0b154e2b1e81814c46 | /python/demo_everyday/JCP005.py | 65afb4f4b0f92658ee5703d854d43dd3882ff39d | [
"MIT"
] | permissive | harkhuang/harkcode | d9ff7d61c3f55ceeeac4124a2a6ba8a006cff8c9 | faab86571ad0fea04c873569a806d2d7bada2e61 | refs/heads/master | 2022-05-15T07:49:23.875775 | 2022-05-13T17:21:42 | 2022-05-13T17:21:53 | 20,355,721 | 3 | 2 | MIT | 2019-05-22T10:09:50 | 2014-05-31T12:56:19 | C | GB18030 | Python | false | false | 469 | py | '''
【程序5】
题目:输入三个整数x,y,z,请把这三个数由小到大输出。
1.程序分析:我们想办法把最小的数放到x上,先将x与y进行比较,如果x>y则将x与y的值进行交换,
然后再用x与z进行比较,如果x>z则将x与z的值进行交换,这样能使x最小。
2.程序源代码:
'''
l = []
for i in range(3):
x = int(raw_input('integer:\n'))
l.append(x)
l.sort()
print l
| [
"shiyanhk@gmail.com"
] | shiyanhk@gmail.com |
f5984b8c2b82af6c55adb0808338d331021ee8e8 | 84eb931716477828f05d8e4343c7fa2b21c2f02a | /从数据库查询数据/dynamic/mini_frame.py | ec1dab5cb631ff8c9a6b299edc34e9095041f0b9 | [] | no_license | wawawawawawawawawawa/My_Python_Practise | 506c93413d9ed0ddeac594e115b7c39e60a1c915 | 89c23d80eb3d86f333a9832828f0527c60cdff2e | refs/heads/master | 2020-09-01T09:05:08.097710 | 2020-05-26T09:20:31 | 2020-05-26T09:20:31 | 218,926,440 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,856 | py | import re
from pymysql import connect
"""
URL_FUNC_DICT = {
"/index.html": index,
"/center.html": center
}
"""
URL_FUNC_DICT = dict()
def route(url):
def set_func(func):
# URL_FUNC_DICT["/index.py"] = index
URL_FUNC_DICT[url] = func
def call_func(*args, **kwargs):
re... | [
"1746409650@qq.com"
] | 1746409650@qq.com |
dda676cdb3b83bb87b4f3f945fa07df61dae7315 | f5fc727b8dce88283bf95406527ea7dc6be567dd | /backup_sql_upload_s3_updated.py | a0a691965f2ed80e111f0635cfb4ce45a537f1a6 | [] | no_license | vecrofund/devops-task-4 | 09260c7512cb39981f2efc12c55f166ac638607a | e94b3dde61b109451970405271b8e6c51ec4ac25 | refs/heads/master | 2023-04-03T21:26:52.372317 | 2021-03-26T08:53:19 | 2021-03-26T08:53:19 | 349,724,855 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,754 | py | ### SOURCES:
### https://docs.python.org/3/library/shutil.html#module-shutil
### http://boto.cloudhackers.com/en/latest/#
### https://python-forum.io/Thread-Menu-selection-using-function
import os
import shutil
import boto
import datetime
import string
import tarfile
from boto.s3.connection import S3Connection
from bo... | [
"vecrofund@gmail.com"
] | vecrofund@gmail.com |
e8085ea325193628fcec58e94df32db540328951 | 5739dcfe59868b83b3c4d88684d0e29e86a29dc2 | /data/templates/derived/nav/create_page.html.py | d60abe0efb76251b468277c5fa1b27eb5719c7ef | [] | no_license | manumilou/chezwam | 95fb075dc986a4535f3b1b459c8dcabb851a2767 | b89594dc66001ea6b64493e21b1d851f20b0212c | refs/heads/master | 2021-01-19T00:08:02.424572 | 2010-09-23T15:59:00 | 2010-09-23T15:59:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 5
_modified_time = 1285039074.021173
_template_filename='/home/remix/dev/ChezWam/chezwam/templates/derived/nav/create_page.html'
_template_uri='/derived/nav/create_page.html'
_templ... | [
"remix@eeepc-remix.(none)"
] | remix@eeepc-remix.(none) |
953d993189efb3d5fa2ee45a39a059e6fdf9d196 | dd6c70ba403c80610f5a78a3492f367388102505 | /src/codeforces/educational145/one.py | d7692b9219abe5cfc8e84989c53e1fc4c0252af3 | [
"MIT"
] | permissive | paramsingh/cp | 80e13abe4dddb2ea1517a6423a7426c452a59be2 | 126ac919e7ccef78c4571cfc104be21da4a1e954 | refs/heads/master | 2023-04-11T05:20:47.473163 | 2023-03-23T20:20:58 | 2023-03-23T20:21:05 | 27,965,608 | 16 | 6 | null | 2017-03-21T03:10:03 | 2014-12-13T16:01:19 | C++ | UTF-8 | Python | false | false | 344 | py | from collections import defaultdict
t = int(input())
for _ in range(t):
chars = map(int, input()[::])
freqs = defaultdict(int)
for char in chars:
freqs[char] += 1
max_freq = max(freqs.values())
if max_freq == 1 or max_freq == 2:
print(4)
elif max_freq == 3:
print(6)
... | [
"me@param.codes"
] | me@param.codes |
4bbdd427e894721dcab89747826e62687cd73703 | c27c0f9a799f2232b0a75d2184019df239ea941f | /lista1/questao10.py | deb7c2a519fefe843ff94d97a879360ccd400499 | [] | no_license | anderson89marques/WebResultadoSimulacaoPyramid | 88d0f8f4f57752a26fa7205a5768910686fe3682 | a7d51f79b348467dd771925f3a24aa6463a65e03 | refs/heads/master | 2016-09-06T01:01:47.711626 | 2014-11-19T21:19:49 | 2014-11-19T21:19:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | __author__ = 'andersonmarques'
import random
class Questao10():
def __init__(self):
pass
def getquestao(self):
#1 = cara, 2 = coroa
experimentos = 10000
cont = 0
for x in range(experimentos):
contcara = 0
contcoroa = 0
for i in range(... | [
"Andersonoanjo18@gmail.com"
] | Andersonoanjo18@gmail.com |
d4d244acc6de2aa772ee2339ee4e09cf3d0b86c2 | 8b51701f6e224e373db06ccbfa1c08387b2b8d5a | /FB fetching/geopy/geocoders/wiki_semantic.py | 156bd88cdda2eac1b246a787e48712c811fa2606 | [] | no_license | nickedes/MinimaPy | efdd40c0fb135d44fc105105df8dbcee5baa9aaa | 23e7887e1a87a5ac3f19d9bd75e37a98a16b1905 | refs/heads/master | 2021-01-22T10:22:12.739714 | 2014-09-21T20:22:00 | 2014-09-21T20:22:00 | 17,544,073 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,447 | py | """
:class:`.SemanticMediaWiki` geocoder.
"""
import xml.dom.minidom
from geopy.compat import BeautifulSoup
from geopy.geocoders.base import Geocoder, DEFAULT_TIMEOUT
from geopy import util
try:
set
except NameError:
from sets import Set as set # pylint: disable=W0622
class SemanticMediaWiki(Geocoder):
... | [
"shivam@shivam.(none)"
] | shivam@shivam.(none) |
f9a71bdd2c4bdf13412426a760f164f68cae350b | a0a4bda67eacbc1fe922591e12fdc5bf1f13a9c0 | /perceptron/perceptron.py | 2c6bcc53101ba098c4faadac8c37495bdebc8add | [] | no_license | zzag/codesamples | cdd713a62e08480988f3372d33d0e8ca1c326d7b | de3496cd572d4b27f9781078c69b23df22ad7c18 | refs/heads/master | 2023-01-21T05:44:34.628273 | 2023-01-09T11:20:39 | 2023-01-09T11:20:39 | 133,409,760 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,087 | py | import numpy as np
class Perceptron:
def __init__(self, max_iter=10, threshold=0, learning_rate=0.1):
self.weights = None
self.max_iter = max_iter
self.threshold = threshold
self.learning_rate = learning_rate
def round(self, value):
if value > self.threshold:
... | [
"vladzzag@gmail.com"
] | vladzzag@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.