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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e1d3a822683b19133ea27b9cc99ca006c2750548 | f44c40a6416b5e5d698fac0e8a0be45486dfb9ce | /remove_commit_test/settings.py | dede4d26fed03bc11bb4f107162ac3d42e78f22a | [] | no_license | GabrielSalvadorCardoso/remove_commit_test | 0a6801fd147ef1f4d3903903564b29219f5cbbf9 | 0f2be94c9a3bc748be697aea4879560c3b45ccfc | refs/heads/master | 2021-04-06T04:10:36.426334 | 2018-03-15T13:48:59 | 2018-03-15T13:48:59 | 125,292,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,138 | py | """
Django settings for remove_commit_test project.
Generated by 'django-admin startproject' using Django 2.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
i... | [
"gabrielcardoso95@gmail.com"
] | gabrielcardoso95@gmail.com |
be328abad4773ddd2b9332fbcc647a4305ee3b2e | d23761e4e5856ee15a61b20f05d3a1b09bb0186e | /Tema5/NeuralNetwork.py | d762ed802ef3922515e798775623587d93979849 | [] | no_license | StativaCamelia/InteligentaArticifiala | ff7962a477c8686455be2d8f5c1dbbf9b9543e5e | f73fbb6cc31279d1e4e7d8371eb7218f6972095e | refs/heads/main | 2023-02-15T12:57:45.505890 | 2021-01-11T18:10:55 | 2021-01-11T18:10:55 | 304,123,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,267 | py | import math
import random
import numpy as np
def sigmoid_activation(z):
return 1 / (1 + np.exp(-z))
class NeuralNetwork:
def __init__(self, labels , learning_rate, number_of_epochs):
self.no_of_epochs = number_of_epochs
self.labels = labels
self.learning_rate = learning_rate
self.layers_sizes = [2, 2, 1]
... | [
"stativa50@gmail.com"
] | stativa50@gmail.com |
b8bfa7190ac7732df963c483ad04799f82c731a0 | 2b42b40ae2e84b438146003bf231532973f1081d | /spec/mgm4444130.3.spec | f8bf8bd0648b161563dc4f6fe37fbdf708b94ceb | [] | no_license | MG-RAST/mtf | 0ea0ebd0c0eb18ec6711e30de7cc336bdae7215a | e2ddb3b145068f22808ef43e2bbbbaeec7abccff | refs/heads/master | 2020-05-20T15:32:04.334532 | 2012-03-05T09:51:49 | 2012-03-05T09:51:49 | 3,625,755 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 22,013 | spec | {
"id": "mgm4444130.3",
"metadata": {
"mgm4444130.3.metadata.json": {
"format": "json",
"provider": "metagenomics.anl.gov"
}
},
"providers": {
"metagenomics.anl.gov": {
"files": {
"100.preprocess.info": {
... | [
"jared.wilkening@gmail.com"
] | jared.wilkening@gmail.com |
c7b6a2ec061b9b5dc74dac8412e4a7def8329a9a | 83f60a11a6553f3a939171019ff89b417685ed6d | /cost_and_prediction_functions.py | 08936bc86ca67e3737ae652e87731c122f45358d | [] | no_license | echo66/pytorch-rec-sys | 046800f7897fc6a6351b33656a2d68a32a769139 | 1533031e6915e90ee2dcfad2964d1ce8f4b18b99 | refs/heads/master | 2021-01-19T10:11:09.135814 | 2017-04-23T16:07:41 | 2017-04-23T16:07:41 | 87,834,700 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | import torch
def compute_prediction(UFeats, IFeats):
pred = torch.mm(UFeats, IFeats.t())
return pred
def compute_mse(pred, target):
mse = torch.mean((pred - target) ** 2)
return mse
def compute_se(pred, target):
se = torch.sum((pred - target) ** 2)
return se
def compute_mabse(pred, target):
... | [
"bruno.filipe.silva.dias@gmail.com"
] | bruno.filipe.silva.dias@gmail.com |
c3631a99cd59826b2a32a514017962e9496fff2f | f7c07caa1210d2a08e8433cdd854b1232efa88e3 | /Collection-Modules/Queue-Module/LIFO-Queue.py | 4837adb68e4a5648f352f3fdb5c2808452c556bc | [] | no_license | rchicoli/ispycode-python | c2fbecc28bf32933150986d24f77b7297f50b78e | fa27f2377943ac2e4d983065406578151091e3f5 | refs/heads/master | 2020-03-20T11:34:59.698618 | 2018-06-14T21:14:02 | 2018-06-14T21:14:02 | 137,407,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py |
import Queue
q = Queueimport Queue
q = Queue.Queue()
q.put(1)
q.put(2)
q.put(3)
print(q.get())
print(q.get())
print(q.get())
| [
"rafaelchicoli@hotmail.com"
] | rafaelchicoli@hotmail.com |
502e0a6630abfde4fcea418ba76872c955a30e3c | a097e203714bb40fdb0e9b3d36977815597707a2 | /CombinationSum2.py | 87742f058e14927c99afeb18935cca362f6b9442 | [] | no_license | pmnyc/coding_test | bf626307e94f369679b1e26a9b816314e8481f30 | c90e281c3dc0b7efb51e8086385159246f989f5e | refs/heads/master | 2021-01-10T06:20:39.474458 | 2019-09-14T17:25:54 | 2019-09-14T17:25:54 | 48,257,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,331 | py | """
Combination Sum II
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.
Each number in C may only be used once in the combination.
Note:
All numbers (including target) will be positive integers.
Elements in a combination (a1, ... | [
"pmiori@gmail.com"
] | pmiori@gmail.com |
5ee05c4aa48322123557903e7a05f55eaddb36ec | b729ea7c029c67641c93e91ec954213b6758c5cb | /pyQt_function.py | 104fe0daa739a49fdc7cd874ef3e4bd1efd3f8d7 | [] | no_license | Codelegant92/CreditScoring | 5690493bcdb9601b3acec3adda53803794a87431 | a517f4b5b3caf72c241daefcbf49b488c49582b6 | refs/heads/master | 2021-01-17T12:24:40.626343 | 2017-07-12T09:13:25 | 2017-07-12T09:13:25 | 41,335,171 | 12 | 5 | null | null | null | null | UTF-8 | Python | false | false | 2,543 | py | __author__ = 'robin'
from PyQt4 import QtCore, QtGui
from creditScoring_UI import Ui_Dialog, _translate
from commonFunction import *
from decisionTree import decision_Tree
class Window(QtGui.QDialog):
def __init__(self):
QtGui.QWidget.__init__(self)
self.ui = Ui_Dialog()
self.ui.setupUi(sel... | [
"robinchan1992@gmail.com"
] | robinchan1992@gmail.com |
774da8852253326d7bfda4448bf7270c23aee218 | 39640766120eb5e5757a0d474d0c1d56d94a0cce | /20220219-mocsctf/np-sha256/public/chall.py | 6a4c11eb2aaf0ca4a8034418d16ce8e92653ab4c | [] | no_license | samueltangz/ctf-archive-created | 7d7b5b4637415c633162b4c725245a412fafce49 | d4bf6abb532cda42b4796bf88b02de353608d166 | refs/heads/master | 2023-03-18T07:57:46.349924 | 2023-03-05T09:29:11 | 2023-03-05T09:29:11 | 124,827,870 | 11 | 2 | null | 2023-03-05T09:28:54 | 2018-03-12T03:18:13 | Python | UTF-8 | Python | false | false | 574 | py | import os
import sys
from sha256 import generate_hash
def main():
m1 = bytes.fromhex(input())
m2 = bytes.fromhex(input())
h1 = generate_hash(m1)
h2 = generate_hash(m2)
if m1 == m2:
print('No good!')
sys.exit(-1)
if len(m1) < 64:
print('No good!')
sys.exit(-1)
... | [
"samueltangz613@gmail.com"
] | samueltangz613@gmail.com |
934c61e327a1a5a011bb982c8aa38c886f4d9397 | 3f08f43825e5a16e9788c91bdebd0134f6d56514 | /Breaking Bad/python.py | 08e8bac695d4e188f63821a36156c53c6ac067e3 | [] | no_license | delta/codegolf-inhott | 3a411c742545332943f4009d4d4076285c2d2964 | c6ee848e67c7074b7eeeb44ffbc1e84f115dafb7 | refs/heads/main | 2023-03-01T00:26:44.381965 | 2021-02-04T12:49:56 | 2021-02-04T12:49:56 | 333,818,744 | 0 | 0 | null | 2021-02-04T12:49:57 | 2021-01-28T16:34:32 | Java | UTF-8 | Python | false | false | 267 | py | (n,m,k),(x,s),a,b,c,d=(list(map(int,input().split()))for _ in" "*6)
a+=[x];b+=[0];c=[0]+c;d=[0]+d
L=sorted(list(zip(a,b)),key=lambda x:-x[1])
o,j=n*x,0
for ai,bi in L:
while j<=k and d[j]+bi<=s:j+=1
if j==0:continue
t=ai*(n-c[j-1])
o=min(o,t)
print(o) | [
"atharun05@gmail.com"
] | atharun05@gmail.com |
13f156fd389bcbf915701e7e2d50a80e78232162 | 829d144af6c88fe41c2df2fe40c11f5894222d9b | /ex079.py | 32488e691baa577763100d2dafc5d417ae21f69f | [] | no_license | davidbezerra405/PytonExercicios | 803d833aea8835cffc010bc5dbc67d0da5094a12 | 56a348f4042e2af68119e66f47049ca41c961cef | refs/heads/master | 2023-06-09T22:32:05.962091 | 2021-06-30T16:03:14 | 2021-06-30T16:03:14 | 376,387,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | valores = list()
while True:
v = int(input('Digite um valor: '))
if v not in valores:
valores.append(v)
print('Valor adicionado com sucesso...')
else:
print('Valor duplicado! Não vou adicionar...')
op = ' '
while op not in 'SN':
op = str(input('Deseja continuar [S/N]?... | [
"68335111+davidbezerra405@users.noreply.github.com"
] | 68335111+davidbezerra405@users.noreply.github.com |
8144fd14e1872d0b457d6e6d9fdb9385df733e9a | 2e65f2c71bd09c5f796ef8d590937c07e308001d | /src/troposphere_dns_certificate/__init__.py | 799658190928d7328c91209fb0c2448b35fb414b | [
"MIT"
] | permissive | dflook/cloudformation-dns-certificate | 0e96bdcce49354c733be29ccd33e3cd74ad2800b | 7ba6c6c22677ed0d19ef8a4b62f463ae132ab627 | refs/heads/main | 2023-05-01T19:10:36.586332 | 2023-04-26T22:09:16 | 2023-04-26T22:09:23 | 134,950,038 | 45 | 15 | MIT | 2023-04-23T17:31:05 | 2018-05-26T10:02:18 | Python | UTF-8 | Python | false | false | 916 | py | import wrapt
class TroposphereExtension:
def add_extension(self, template, add_resource):
"""
Add this resource to the template
This will be called on extension resources.
The implementation should add standard troposphere resources to the template
:param template: The te... | [
"daniel@flook.org"
] | daniel@flook.org |
a59908205ae08f7899a1ccb6ce0e05a20f6f9060 | fc0150b1fd6ba0efd6746a34ffa8cba01640d10e | /Python_3_Programming_January_and_July_2016/Lecture_1/Задача_3_Нарисувайте_квадрат.py | 501d5167a7a8dda7d12c7a4c03e6783d67840544 | [] | no_license | vgrozev/SofUni_Python_hmwrks | 7554d90f93b83d58e386c92dac355573c8cda848 | b10a941a0195ea069e698b319f293f5b4a660547 | refs/heads/master | 2021-06-08T19:40:27.009205 | 2019-11-24T17:19:31 | 2019-11-24T17:19:31 | 95,629,443 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | import turtle
user_input = input("Please enter the lenght of the side: ")
length = int(user_input)
turtle.speed('slow')
for _ in range(0, 4):
turtle.forward(length)
turtle.right(90)
turtle.done()
| [
"vgrozev@gmail.com"
] | vgrozev@gmail.com |
2b4c3dab08d72b1941cb28ee51f4961a0e32414c | c5534423d44a2c1587e5ef5f4b893a78cd3b1cce | /Databricks/BedBricks/Spark-Programming-1.5.0-IL/Python/4.1 Streaming Query.py | 931d42474ae9210d99daf3d6754bcc83f9ccad08 | [] | no_license | adiazcan/databricks | 4fa964629ec1001f089e437fe1dbad238ac71ecb | 5e3506e701badee0bc32099f27b069ca66b36753 | refs/heads/master | 2022-03-23T13:22:07.166938 | 2022-03-11T07:48:46 | 2022-03-11T07:48:46 | 166,223,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,110 | py | # Databricks notebook source
# MAGIC
# MAGIC %md-sandbox
# MAGIC <div style="text-align: center; line-height: 0; padding-top: 9px;">
# MAGIC <img src="https://databricks.com/wp-content/uploads/2018/03/db-academy-rgb-1200px.png" alt="Databricks Learning" style="width: 400px">
# MAGIC </div>
# COMMAND ----------
# M... | [
"adiazcan@hotmail.com"
] | adiazcan@hotmail.com |
ae3244d7da48f5c04df6e987d772a3c6d1135460 | 351fd341a6d49c730df1e50981b2d0bd3bfcefd4 | /loginapp/bin/easy_install-2.7 | 6d1678ce0d7ef3144cdd8827cf51109660fddc8a | [] | no_license | shilpasanthosh/flask-user-login-app | cd0936546ed82d4ec305a856320743e89a9abe0e | e9c1cdc76ad91feba4725668c3156bb7b03d99f4 | refs/heads/master | 2021-01-10T04:18:37.795489 | 2015-12-26T10:19:33 | 2015-12-26T10:19:33 | 48,606,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | 7 | #!/usr/share/nginx/loginapp/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"shilpa@marketcalls.in"
] | shilpa@marketcalls.in |
1c0195cd53762f132a0786eb1b8132648183af93 | 5615446932deb52748018186ad14e2de1b52ba03 | /chreval/EffectiveStem.py | 0c43f0e858edeca3897d96648aee56b518ad218d | [
"Apache-2.0"
] | permissive | plewczynski/looper | 7ed8ac4c51f4aa1e1508233019e52cba6a1f18a4 | 25cd3d4e12002e0fa382a035ea65e894697c1835 | refs/heads/master | 2022-10-22T20:03:41.286178 | 2020-06-10T15:36:06 | 2020-06-10T15:36:06 | 84,062,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,389 | py | #!/usr/bin/env python3
"""@@@
program: EffectiveStem.py
Classes: EffectiveStem
Functions:
creation date: 200511
last update: 200511
version: 0.0
EffectiveStem allows sharing the assessment of every stem in a
universal way. There may need to be things like sequence
dependence. Presently, ... | [
"dawsonzhu@aol.com"
] | dawsonzhu@aol.com |
197885f0493a7e6edbb51992e02e56e33524a49e | 05425e4c3637928e9141b6c70957783f1a95dbb5 | /backend/kagoole/admin.py | 7fece1dd2a9642d3a02efab65d9955b5d9c1cb78 | [
"MIT"
] | permissive | Doarakko/kagoole | dc505d514988b56edcc7cec1a9f3d7238d8e5b15 | 5ff18d8bf1b05dfcc68e918461572645df583a28 | refs/heads/master | 2023-05-10T18:32:09.578731 | 2023-04-29T14:06:14 | 2023-04-29T14:06:14 | 190,133,623 | 11 | 2 | MIT | 2023-02-15T18:28:36 | 2019-06-04T05:12:55 | JavaScript | UTF-8 | Python | false | false | 176 | py | from django.contrib import admin
from reversion.admin import VersionAdmin
from .models import Solution
@admin.register(Solution)
class SolutionAdmin(VersionAdmin):
pass
| [
"2wua4nlyi@gmail.com"
] | 2wua4nlyi@gmail.com |
28a451889380139994d19d41449f1024a1657d39 | 6ff85b80c6fe1b3ad5416a304b93551a5e80de10 | /Python/Typing/ConvertingToInt.py | dc7abaeba61d61d2b38912ed04fadf88d3d3f1db | [
"MIT"
] | permissive | maniero/SOpt | c600cc2333e0a47ce013be3516bbb8080502ff2a | 5d17e1a9cbf115eaea6d30af2079d0c92ffff7a3 | refs/heads/master | 2023-08-10T16:48:46.058739 | 2023-08-10T13:42:17 | 2023-08-10T13:42:17 | 78,631,930 | 1,002 | 136 | MIT | 2023-01-28T12:10:01 | 2017-01-11T11:19:24 | C# | UTF-8 | Python | false | false | 183 | py | print(int('12\n'))
print(int('\n123'))
print(int('1234 '))
print(int(' 1235'))
print(int('1236c'))
print(int('a1237'))
print(int('123 8'))
#https://pt.stackoverflow.com/q/347387/101
| [
"noreply@github.com"
] | noreply@github.com |
3be5741174e801d924eb566ff2df287a30b4998d | eae5ea21847e0d94fc94fe2cc838828e42e057d1 | /Dan/nlpStratifyd/lib/python3.7/site-packages/streamlit/errors.py | b7307c7981da7b08dfcc731741af9ccc34265b16 | [] | no_license | CheLena/Stratifyd_IS | 19061a326a1bbbd4ee50b769e9d77f83dd3c4f00 | f20bcf71ea5d547481423dff4deb5a4c50619278 | refs/heads/master | 2022-06-30T10:40:16.314372 | 2020-05-06T16:10:14 | 2020-05-06T16:10:14 | 238,253,482 | 0 | 0 | null | 2020-03-25T16:57:46 | 2020-02-04T16:37:09 | Python | UTF-8 | Python | false | false | 1,794 | py | # -*- coding: utf-8 -*-
# Copyright 2018-2020 Streamlit Inc.
#
# 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 applicabl... | [
"danielmurph8@gmail.com"
] | danielmurph8@gmail.com |
cd7134c5d2fbe212572d24191802300ec0a4f75f | 22db256dfda252626877f52a130e4d0cdc1b9de5 | /python2_code.py | b492ffcc4d91c68d49e920ce240654e6d1d2048b | [] | no_license | khoipham152/github-example | 2f44d288350ef1572f6bc4c21ce5b88b46412080 | 10c575c7535d9f740c6ed208f67b6dc8cb9ce3de | refs/heads/master | 2021-05-21T08:23:32.951669 | 2020-04-03T03:31:42 | 2020-04-03T03:31:42 | 252,617,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22 | py | print("second trial")
| [
"khoipham152@gmail.com"
] | khoipham152@gmail.com |
d0ad9224af16343b6541f99f97e46bd867f368f2 | 31427a8829edf517b5cff4f4294800ee3f2339a4 | /20200819/bs.py | 7a053030a5363b4ad66e2bb56b460622e5b15720 | [] | no_license | shlee16/cit_shl | 144463460e6919c5407a6f9b45fb97d33fd2f1ef | dcb74aac85d165484b679505ae3c15680bdd94b6 | refs/heads/master | 2022-11-30T20:01:51.247280 | 2020-08-19T08:07:20 | 2020-08-19T08:07:20 | 281,597,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | # https://www.dataquest.io/blog/web-scraping-tutorial-python/
from bs4 import BeautifulSoup
import requests
# page = requests.get("http://forecast.weather.gov/MapClick.php?lat=37.7772&lon=-122.4168")
# page = requests.get("https://www.w3schools.com/python/ref_random_randint.asp")
page = requests.get("https://www.nave... | [
"68633215+shlee16@users.noreply.github.com"
] | 68633215+shlee16@users.noreply.github.com |
7258b6ee34f09f4f049b06f3d02146f7bb2db513 | 3af3f16458e1afd3fcff53ec1e414951c351830f | /lockdownsite/GenerateOutput.py | 7e18cdce395cb12eed1c15af28904791f87ee050 | [] | no_license | lazyboy4943/lockdownhackathon2k21 | 3caf5b39143eda7d2420e133979c7606723985ab | ef891fc56e63c6b8aded56682f4af0988532ed5c | refs/heads/main | 2023-06-21T12:44:27.169598 | 2021-08-01T05:36:59 | 2021-08-01T05:36:59 | 391,536,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py | import pickle
from math import e
def sigmoid(x):
return( 1 / (1 + e ** (-1 * x) ) )
Construction = [15, 16, 50, 50, 16, 12]
with open("WeightsAndBiases.txt", "rb") as f:
WeightsBiases = pickle.load(f)
def Output(image):
global Neurons
global TempSums
Neurons = [[0 for i in range(Co... | [
"noreply@github.com"
] | noreply@github.com |
376a10c12fcc8827ccfebe8c39ff8f4628f022cb | d75d1e73fb53aedad1572d61b6c8b4998525763e | /manage.py | cf92380841cc546053beb3dae34873d834bcebff | [] | no_license | GlenWong97/Django_Master | 23c82eae9516a5c65d64edda8a8745e4efe15889 | 971095497cf976666106083ea26d0b7b56cea1ee | refs/heads/master | 2022-01-22T17:28:23.643808 | 2019-07-18T07:53:16 | 2019-07-18T07:53:16 | 191,922,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'brainstorm.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. A... | [
"shuzewong@Yahoo.com.sg"
] | shuzewong@Yahoo.com.sg |
3dc85d34f6ff9880c486e9e074f5df4ddf2ceaf1 | a7cf04f9f84d92e46dbc7654b93b2f2dee59b52b | /contacts/views.py | adf43c19ede620a7e3ba59d5333375d880013f97 | [] | no_license | Devlox/real_estate_project | e78d389562bd77012e2f3f6e6e0d44dd62416880 | ddeb835d14366c2aa60f0005e048b1f565a47ec2 | refs/heads/master | 2020-04-25T09:30:53.615673 | 2019-02-26T10:51:31 | 2019-02-26T10:51:31 | 172,677,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,544 | py | from django.shortcuts import render, redirect
from django.contrib import messages
from django.core.mail import send_mail
from .models import Contact
# To make an inquery of a listing
def contact (request):
if request.method == 'POST':
listing_id = request.POST['listing_id']
listing = request.POST['list... | [
"muyambojohn1@gmail.com"
] | muyambojohn1@gmail.com |
094b2a37d54c7283bb751b9b9a6f85595937140e | 68a709e3a4cae897cf55e1ef90b132be7947ca8e | /Puntos extra/bam/data/models.py | db0b85878fa8f32b604e07729067c5c4aa1cad03 | [] | no_license | AngelloDavincii/BAM_EVALUACION | d37cd359523a4d4cd6189c59f70da4b900e73362 | ee45734ca46c3532eb3d86aa98f84d4531334833 | refs/heads/main | 2023-05-09T04:53:56.416541 | 2021-05-24T06:36:40 | 2021-05-24T06:36:40 | 369,895,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,568 | py | from django.db import models
from django.forms import model_to_dict
# Create your models here.
class product(models.Model):
name = models.CharField(max_length=255, null=True)
StandardCost = models.FloatField(null=True)
daysToManufacture = models.IntegerField(null=True)
def toJSON(self):
... | [
"53918848+AngelloDavincii@users.noreply.github.com"
] | 53918848+AngelloDavincii@users.noreply.github.com |
ef9e0dffd76f0c55e89197746606a2d74bc66412 | 483f45b1d241d318c06842f250719e73b8c4dfe7 | /Ex085.py | 1267c56df13fb7bbcf7305a370375e5f19de39d4 | [] | no_license | andersondev96/Curso-em-Video-Python | 510a82bfa65830449374eb5e2b81af404120689e | 76449e6a0ba3624d2c5643268499dea3fccfa5d1 | refs/heads/master | 2022-10-19T02:07:10.967713 | 2020-06-14T23:57:02 | 2020-06-14T23:57:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | """
Crie um programa onde o usuário possa digitar sete valores numéricos e
cadastre-os em uma lista única que mantenha separados os valores pares
e ímpares. No final, mostre os valores pares e ímpares em ordem crescente.
"""
num = [[], []]
valor = 0
for c in range(1, 8):
valor = int(input(f'Digite o {c}º valor: '))... | [
"andersonfferreira13@hotmail.com"
] | andersonfferreira13@hotmail.com |
c51648b926a8dee6d3d08b2358b1f474d0c99a66 | af53b1ac86d4235103d446e205f37000e9d3a5ef | /Advanced Python Facebook Group/Ex1.py | 0b402d96bb61fe7286e7e768e9f4a9467c2ecf41 | [] | no_license | Lylio/python-sandbox | 0754501831eef05301f218bd6fa2d26311aa955b | ede1c0551bb54e5d771847533cc1dd9ac2abdd29 | refs/heads/master | 2023-07-10T08:42:54.934541 | 2021-08-02T12:27:18 | 2021-08-02T12:27:18 | 138,468,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | def test1(*wordlist):
for word in wordlist:
print(word + "YEAH ")
if __name__ == '__main__':
fruits = ["apples", "oranges", "grapes"]
test1(fruits) | [
"cxz@gmx.com"
] | cxz@gmx.com |
69db7d43bcb2fc9f39d83c15cb3eded5e8788c97 | 9c4294271a405f13d35064da6e144c3baf0c71bd | /scripts/startup/bl_ui/properties_render.py | ce375eca894ad92b7982e30731f01d7d8ec12119 | [] | no_license | satishgoda/fluid-designer-scripts | 178ba9ab425fd8b02791f026eeba00d19bf4f4ea | ddccc5823c1ac09849c1d48dc2740a200cb40d84 | refs/heads/master | 2021-01-19T07:15:47.977416 | 2014-03-20T00:00:46 | 2014-03-20T00:01:06 | 18,070,299 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 17,648 | py | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distri... | [
"dev.andrewpeel@gmail.com"
] | dev.andrewpeel@gmail.com |
96deacaa022403dffe2dd2829259ace88ddbdc65 | ffeb5db9b7ee23a2bee74ee22814c8f15efa31bf | /src/gb.py | 4b0d8a2cf0a6b8a2d659c39f7d0f3e11a533d342 | [] | no_license | itaizy/2019-nCoV-GB | 5dc8ece4bc2e707f6df707929c07639435c69319 | a299b335a8d0045b29dbd10d18dc806d7ed17c07 | refs/heads/master | 2021-07-13T15:38:10.346632 | 2020-04-15T12:29:19 | 2020-04-15T12:29:19 | 241,924,704 | 0 | 2 | null | 2021-03-12T11:32:56 | 2020-02-20T15:52:18 | JavaScript | UTF-8 | Python | false | false | 2,407 | py | # Encoding: utf-8
import os
import json
from urllib.request import urlretrieve
from PIL import Image
import numpy as np
f = open('data/overall.json',encoding='utf-8')
user_dict = json.load(f)
f.close()
print("加载入文件完成...")
stocks = [
'modifyTime',
'currentConfirmedCount',
'confirmedCount',
... | [
"itaizy@163.com"
] | itaizy@163.com |
b81506553a8b79fbb1ec1d99cb84b9d4d4caf035 | e19cd51e901aa0e6172db6de224016c1924f3d8d | /scratches/transfer_learning.py | b2b51ec5057007a442101bb45e35e039cf4692ec | [] | no_license | simon2k/tensorflow_sandbox | e7bd0933663d7477eee9c17411db7fdcd58bd8b8 | 5b5ffea5e35559487af627eaf60f78687e8f5ba8 | refs/heads/main | 2023-02-14T23:22:53.261495 | 2021-01-10T22:04:56 | 2021-01-10T22:04:56 | 326,102,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,444 | py | import matplotlib.pyplot as plt
import numpy as np
import os
import pandas as pd
import seaborn as sns
import tensorflow as tf
from skimage.transform import resize
from sklearn.metrics import confusion_matrix
from tensorflow.keras.activations import relu, sigmoid
from tensorflow.keras.layers import Conv2D, Dense, Drop... | [
"skieloch@gmail.com"
] | skieloch@gmail.com |
631ae50d7250ec87b0b5633600b070ac8fa460fd | 2bda4b8282f0d0866dd2319a5682d2f11634c1a5 | /test.py | e8f8b290b074278c811973ffdb4e59a00492df36 | [] | no_license | ColorfulCodes/Markov-Wisdom-Generator | 0e392594c248299f45cb56b17dec819b1fa49d69 | e68478bd728861e01a5391127e9b71e8725c365e | refs/heads/master | 2022-03-28T00:54:46.103761 | 2020-02-04T03:23:21 | 2020-02-04T03:23:21 | 72,307,518 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | import unittest
from Markov import run
class TestCode(unittest.TestCase):
# This test will check if length is correct
def testwillWork(self):
length = run()
self.assertTrue(len(length) <=160)
# This test should fail as 5 equals 8 not 7
def testwillNotWork(self):
length = run()... | [
"codescolorful@gmail.com"
] | codescolorful@gmail.com |
5bb331dee090ef3e3b573baecbe13ce7a57d91fe | de752ed33b779fcc6255508c7bd57570488ce4f9 | /DP and Recursion/matrix_chain_multiplication.py | 4ca1d5a988a676164a57bcdbd4f2c40601679bda | [] | no_license | agzuniverse/CompetitiveCoding | adbb8beda4247bb41fdcb7bc06c76c159a8b4145 | d6cdfe4ac5b6fb73a6a43808b985876f8eeb0061 | refs/heads/master | 2021-08-17T20:49:39.619400 | 2021-06-30T16:07:48 | 2021-06-30T16:07:48 | 163,753,001 | 8 | 4 | null | 2020-10-30T07:29:50 | 2019-01-01T17:10:54 | C++ | UTF-8 | Python | false | false | 1,129 | py | '''
Matrix Chain Multiplication problem
Given the dimensions of the matrix in an array P[0..n], calculate the minimum number of calculations required
to perform the multiplication of the matrices.
This solution runs in O(n^3) time.
The solution uses the fact that matrix multiplication is associative but the number o... | [
"aswinganesh666@gmail.com"
] | aswinganesh666@gmail.com |
7a47afec56d847940c9f74ffe116a6034a5d26e3 | 70cfccc3c39556c92b58b4be27a296efc145010c | /cleaner.py | 7bf97cb31cf04650be15a2140d3cad60d08c4b8a | [] | no_license | ahouston/calibre-plugin-language-cleaner | 5e402bcc4c77fb1aafc29fc32433cf16bb0d2058 | fa6d7bc7dc4909f36dbd7aa67efd5862da162a05 | refs/heads/master | 2023-03-16T06:14:49.986858 | 2020-09-07T21:41:06 | 2020-09-07T21:41:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,864 | py | #!/usr/bin/env python
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
import os
import sys
import re
def keep_case(sub, matchobj):
''' Substitute requested word matching case of matched word '''
val = matchobj.group(0)
up_count = 0
if val.isupper():
sub = sub.upper()
else:
# Tes... | [
"username@example.com"
] | username@example.com |
ff27751426c9cf9cfea84220ce61f51bc471c742 | 3bed7d79ffdfeb0bb9cf830b0ad63df4056f4524 | /fdk_client/common/exceptions.py | 429cbf35090f3f744c4c337a5c4d93a79c8b4920 | [
"MIT"
] | permissive | gofynd/fdk-client-python | 3aea6d6e019e72e6bd87a99853243f4c31eb195e | 614d57855bb4c34dc3c1a204fb8b7b599b23e95e | refs/heads/main | 2023-08-21T16:58:23.710335 | 2023-07-04T11:30:26 | 2023-07-04T11:30:26 | 334,030,188 | 0 | 7 | MIT | 2023-06-26T13:36:21 | 2021-01-29T03:46:52 | Python | UTF-8 | Python | false | false | 1,206 | py | """Python code/sdk/common/exceptions.py."""
class FDKInvalidCredentialError(Exception):
"""Invalid credential exception."""
def __init__(self, message="Invalid Credentials"):
"""Initialize function __init__."""
super(FDKInvalidCredentialError, self).__init__(message)
class RequiredParameters... | [
"jigar.dafda@gmail.com"
] | jigar.dafda@gmail.com |
259d88289570b1c7442b1fb0e9dbc2fcce8ee40b | 0feed51044426439cb475d2df6f6a82acf4a8b76 | /alphabet/G.py | 1c6542e82a943acf0a6c358ac8fd67a30d804b41 | [] | no_license | biswajitkundu93/pattern_all | c3f1a97881dfc9cb4895b52015e164c96ef017ff | 231468ac01fa7a21b5de6396a52b49c13f9583fc | refs/heads/master | 2023-04-11T06:11:26.984764 | 2021-04-21T13:05:40 | 2021-04-21T13:05:40 | 360,173,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | '''
*****
*
*
*
* ***
* *
*****
'''
size = 7
row_no = size
col_no = (size - 1)
star = "*"
fix = row_no - (row_no//2)
fix_col = (size//2)+1
for row in range(row_no):
for col in range(col_no):
if (col == 0) or (((row == 0) or (row == (row_no - 1))) and (col<(col_no-1))) or (((col_no... | [
"kundub591@gmail.com"
] | kundub591@gmail.com |
116084e8dd664efde68586528a71e504dbf7cc0e | 0aa40aa86a618f35c9e2884144664bc50885d569 | /portfolio-1/mywebsite/migrations/0001_initial.py | f131c067d0e979578c112fbf5494d16b2011c370 | [] | no_license | ananyasingh87/WebDev | fc55b524054e90d6692328a8e7cd107714d32eb4 | 50040491a5be9b7f3de8e2c93343ecf676dad580 | refs/heads/master | 2021-07-02T04:13:18.340869 | 2020-12-03T11:27:03 | 2020-12-03T11:27:03 | 201,674,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | # Generated by Django 2.2.17 on 2020-12-01 09:02
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Project',
fields=[
('id', ... | [
"noreply@github.com"
] | noreply@github.com |
428433ab6774a930dd36d3c9dde55ce6668ba730 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_358/ch18_2020_09_30_10_56_20_265107.py | 29f3ce3fd91883bd0ce98bda1f5b2b3cadb47227 | [] | 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 | 202 | py |
def verifica_idade(x):
if x>21:
print('liberado EUA e BRASIl')
elif x>18<21:
print('liberado BRASIL')
else :
print('não esta liberado')
return x
| [
"you@example.com"
] | you@example.com |
65eb37da9be33214eeb691684c3c4e57aa346687 | a74274955856225165d05cbd26660f5a6055b94e | /10文件和异常/尝试s/10_190730.py | 1150f2fcca26e38636f831e65a8635eaf6fc71fc | [] | no_license | Vincent-Xin/learn_Python-Crash-Course | 9be5d1675d115f64133d242109ba94a056177d97 | e171be05ed3313c8ea196822e7c1c15cb298e8e7 | refs/heads/master | 2020-09-07T04:34:33.713445 | 2019-11-09T15:05:43 | 2019-11-09T15:05:43 | 220,656,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | #10-6逻辑
'''循环输入整数并求和,以及退出和提醒修正输入'''
def get_nums(n):
i=0
nums=[]
while i<n:
num=input('number'+str(i+1)+':')
if num=='q':
break
try:
num=int(num)
except ValueError:
print('亲,这里建议你输入正确数字呢!')
continue
else:
nums.append(num)
i+=1
return nums
def add_nums(nums):
if(len(nums)>=2):
num_sum=... | [
"noreply@github.com"
] | noreply@github.com |
3a0fb01ccce767d1512dbe12156b64bd6108f048 | 1db1f823cde17671ea0a74da2d977a11f4765f2a | /FirstLogin/admin.py | d1d4d6fff5885e81407f22659a1e80a6a859a970 | [] | no_license | blacker-boy/web | f5c048b5a4999f99801a30cf5b3f272a2bf6dfb9 | 495ad68a67de1b6cf1b75cda2022cc51b7463cae | refs/heads/master | 2020-03-06T23:47:18.010736 | 2018-04-23T11:12:21 | 2018-04-23T11:12:21 | 127,141,174 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,960 | py | #-*- coding: UTF-8 -*-
import web
import MySQLdb
urls=(
'/Adminlogin','Admin_Login',
'/Homepage','Home_page'
)
app=web.application(urls,globals())
class Admin_Login:
def GET(self):
# print("get")
return web.seeother('/static/login_1.html',True)
def POST(self):
# web.header("Acce... | [
"1391186209@qq.com"
] | 1391186209@qq.com |
c706371fac0234005089d5be699dd893f9fd48c1 | a6ccb1e49bd55782877934f06bd6f47c8cfd7ad0 | /models.py | 5b47ec44ca20695c1a612ba704821ba34800c057 | [] | no_license | acct252000/udacity_scalable_apps | adba67d9e77f963d8ed49c8fc1551e222b28a9aa | a507b813a2598b7666369a34f121d2905aec78fc | refs/heads/master | 2020-06-16T02:58:22.517202 | 2016-12-22T14:13:33 | 2016-12-22T14:13:33 | 75,251,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,122 | py | """models.py - This file contains the class definitions for the Datastore
entities used by the Game. Created by Christine Stoner 12-15-2016"""
__copyright__ = """
Copyright 2016 Christine Stoner
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance ... | [
"acct252000@gmail.com"
] | acct252000@gmail.com |
7ddf2763ff35f675e8d16652a84d505283b5f102 | 5f0a1d552ca4d683a166982d40952631c58066b0 | /apps/c_test/test/test-114.py | ddb24bf9f10799163e355277bcd0545642bb41a8 | [] | no_license | tangmingming/daydayfresh | d1b559046215cc60e7f0d4d87744b4c51f298ffd | 95d59699f4a97756cf689eba958581380217ce84 | refs/heads/master | 2021-09-06T04:47:30.286033 | 2018-02-02T12:50:36 | 2018-02-02T12:50:36 | 113,733,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | import json
import requests
url = "https://sms.yunpian.com/v2/sms/single_send.json"
headers = {
"Accept": "application/json",
"charset": "utf-8"
}
data = {
"apikey":"947bfcde6345fa588917fedf930dae2c",
"mobile":"18516770799",
"text":"【天天生鲜】您的验证码是1234。如非本人操作,请忽略本短信"
}
response = requests.post(url, headers=h... | [
"tangmingmingvip@163.com"
] | tangmingmingvip@163.com |
a40191aa9116827033cd459acae7e1f8e9939ad5 | 900be47870a62b8055b99edac9e1b0f6c6f0dc35 | /Tests/Python/registration_test.py | 58ae58a985fbaf5452ebbc476cc17ab188151cb4 | [] | no_license | simeks/pluto | e24fa1809eb06aeb8d41126402ab3825dae0f9d2 | 9f28fce900cbc8d7ebb56b79a9b6eaebb8141a67 | refs/heads/master | 2021-03-28T20:23:49.109098 | 2018-02-22T13:59:03 | 2018-02-22T13:59:03 | 75,561,384 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | import image
import imageutils
import registration
settings = {
'step_size': 0.5,
'regularization_weight': 0.05,
'block_size': (12, 12, 12),
'pyramid_level_min': 0,
'pyramid_level_max': 6,
}
e = registration.RegistrationEngine('blocked_graph_cut', image.PixelType_Float32, settings)
i = imread('che... | [
"simon.ekstrom@gmail.com"
] | simon.ekstrom@gmail.com |
47919a0a9fec9f4cf0a311fce3417cc744500ce6 | c729a8da1d95e40e4d238fa0d98860e863b9c88a | /dump/Django_server/venv/bin/symilar | f30855ff2a00a2580f80757d47a3e2cf6a42cbb1 | [] | no_license | TrellixVulnTeam/flutter_django_5D89 | 971d2ccdeab045b582680e0e1bf0e2c303c95b98 | 62c928d2dcc6a04ea77ccf433782a14b43be543b | refs/heads/main | 2023-08-26T14:24:28.590062 | 2021-11-11T13:38:40 | 2021-11-11T13:38:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | #!/home/x038xx77/Desktop/DEV/New/flutter_django/Django_server/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_symilar
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run_symilar())
| [
"x038xx77@gmail.com"
] | x038xx77@gmail.com | |
027dac08617c30b15472b1109ac2de7f1ddf1b03 | d63122a5352e209fb1e44a7ff7d508e477db829e | /userControl/browsing.py | 36e580f94576c7f99422f0fd59fdfadf8bef89cc | [] | no_license | adrienparis/mayaUC | e412dd24be70585ba1dfdb75b8472e17bd0a72bc | c5d0bf92e1a36450c9664e6f29ef726665835da1 | refs/heads/main | 2023-01-24T13:29:33.688875 | 2020-12-06T00:12:05 | 2020-12-06T00:12:05 | 318,320,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,538 | py | class Browsing(object):
class item():
def __init__(self, name, elem, image=None, info="", icon=None):
self.name = name
self.elem = elem
self.image = image
self.icon = icon
self.info = info
self.deep = 0
self.parent = None
... | [
"adrien.paris3@gmail.com"
] | adrien.paris3@gmail.com |
4ed1e67b7c0ac2f72bc91d45cacf40cceb25223e | d9da5aaf0a8af3d9887f201f7c3384764822cda9 | /makeinput.py | 91a64c8fa6b662c0c0ceb10d1047aadf1a18c084 | [] | no_license | sesameman/solve-tov-equation | 1e1d1637a164aea68fa85edcfc08c86665c99d4b | 5ecfcddffcf669e2a7025a76449b59b6858c4e2f | refs/heads/main | 2023-02-20T20:40:15.439035 | 2021-01-22T09:11:12 | 2021-01-22T09:11:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | # !/usr/bin/python3.9
# author:kangjiayin
# time:\now?
#制作需要的压强列表
import json
filepre='inipre.json'
pre=[]
##遍历压强从0到2000
for i in range(200000):
step=0.005
new=round((i+1)*step,3)
pre.append(new)
#写入文件
with open(filepre,'w') as preData:
json.dump(pre, preData)
# with open(filepre) as preData:
# ... | [
"noreply@github.com"
] | noreply@github.com |
1555a5a3a6a222ed065c23732481e23d748ace99 | a34c3a310afaffbc5b028d85baf8597c58e1c5b9 | /quantstats/version.py | 3c56ef3e9b8017eddf7b253b8fcde3d5f05d27c8 | [
"Apache-2.0"
] | permissive | blackcherry88/quantstats | 15e4d8025935d4b7cb4f42a1514ddb5873fb8d93 | 7b33bf45bb6e9985ff73d507c895d7ac7bde1d8d | refs/heads/main | 2023-08-13T03:19:50.265058 | 2021-10-12T23:32:36 | 2021-10-12T23:32:36 | 416,522,542 | 0 | 0 | Apache-2.0 | 2021-10-12T23:00:33 | 2021-10-12T23:00:33 | null | UTF-8 | Python | false | false | 19 | py | version = "0.0.43"
| [
"ran@aroussi.com"
] | ran@aroussi.com |
acbe18b373d44340d6ef34b14fb63c8c9d4e63ef | 0e846526b43bae7e56b693b7269a68ae9d14d18c | /TTHAnalysis/cfg/run_hnlDisplaced_cfg.py | 9da94a4470ed6f348923f822c8595c5e06333cda | [] | no_license | lesenka/cmgtools-lite | c4909698fb3680f3aa6aab0c44fdfd17f0bf2e0d | dc19a8ac8892f82e6027bab7674fc5c77e628f9d | refs/heads/80X | 2021-01-20T04:36:18.519459 | 2018-07-10T14:50:13 | 2018-07-10T14:50:13 | 89,702,817 | 0 | 0 | null | 2018-07-10T14:50:14 | 2017-04-28T12:10:54 | Python | UTF-8 | Python | false | false | 6,504 | py |
##########################################################
## CONFIGURATION FOR HNL TREES ##
## skim condition: >= 2 loose leptons, no pt cuts or id ##
##########################################################
import PhysicsTools.HeppyCore.framework.config as cfg
import re
#-------- LOAD AL... | [
"lesya.shchutska@cern.ch"
] | lesya.shchutska@cern.ch |
d579b30d52e69dc20657216b704e6ec994f8b5c6 | 8904b28f9a0e4d7c2c3e4e1e67754464de7fc8ba | /Search/Find Peak Element.py | bad39f8d5f6bf43897cf2426a30fa35d740ce611 | [] | no_license | Chriszhangmw/LeetCode | 0b3f58470a51c360f5480df09251235faf3e836f | efe1d09e55812f8cb163e12ad333d134fadbb61a | refs/heads/master | 2020-08-04T00:43:11.856254 | 2020-01-29T22:23:57 | 2020-01-29T22:23:57 | 211,940,761 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,443 | py | '''
A peak element is an element that is greater than its neighbors.
Given an input array nums, where nums[i] ≠ nums[i+1], find a peak element and return its index.
The array may contain multiple peaks, in that case return the index to any one of the peaks is fine.
You may imagine that nums[-1] = nums[n] = -∞.
Exa... | [
"zhangmw_play@163.com"
] | zhangmw_play@163.com |
45b7420c1ea6cfe12fe8dc5473de99b96b622d11 | c004966e87cb9a8bef12990d156083831dc52fc8 | /Lists/add_list.py | 3338677c57de5959588538f2e1e2d2ae2a20500a | [] | no_license | EdwinTinoco/Python-Course | eef543ec9aa281b762d1a3d6e396555867e5a788 | 86aba504d63ec389cb734cfa66ea612414bb338d | refs/heads/master | 2021-01-16T11:16:58.567479 | 2020-08-05T14:39:42 | 2020-08-05T14:39:42 | 243,099,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | tags = ['python', 'development', 'tutorials', 'code']
# Nope
# tags[-1] = 'Programming'
# In Place
tags.extend('Programming')
tags.extend(['Programming']) # para agregar un nuevo elemento al final de la lista
# New List
new_tags = tags + ['Programming']
print(new_tags)
print(tags) | [
"jaredlotic@gmail.com"
] | jaredlotic@gmail.com |
248bef5f88eb26138b9788d39d41f15cdc9e6200 | 4ae5e6f74955f30a8d6439d881d4c3fe40726a23 | /ask/qa/urls.py | 83bef41ef8f9a3d0efa997d089fd4af9e9c334ea | [] | no_license | gemetalreg/DjangoMailRu | da0e497b05723d1fd22e6905213edbc193e5f472 | 3075828dc7c50eb2d6d83dd093d32526459c6f66 | refs/heads/master | 2023-01-02T18:28:19.103164 | 2020-10-26T06:21:22 | 2020-10-26T06:21:22 | 104,564,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | from django.conf.urls import url
from . import views
from views import test, fail404, one_question, new_questions, popular
urlpatterns = [
url(r'^$', views.new_questions),
url(r'^login/', views.test),
url(r'^signup/', views.test),
url(r'^question/(?P<qid>\d+)/', views.one_question, name='question'),
... | [
"itunereg@gmail.com"
] | itunereg@gmail.com |
da335c0cd13edba4b65ecf5d0d102ff3cec047ba | 01faa1318b24e2b0f0dd63abe1daa6df11f1e220 | /backend/smiles_21366/wsgi.py | 92397821d7f408a104036345985dc426681dbfbe | [] | no_license | crowdbotics-apps/smiles-21366 | 8c86f08b7fb10ec77dc4ba9bc09192b63443cba2 | 6d57fe1e1f9c5fd7a2a806734556638b1f536015 | refs/heads/master | 2022-12-28T17:24:06.222261 | 2020-10-11T18:00:08 | 2020-10-11T18:00:08 | 303,180,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for smiles_21366 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_... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
1745a654482f682ea239168617904469693bff9f | ac20c187296d0a342f37ce2cdfeff3bd4a78557a | /lambda Functions/lf2.py | 475da9fa94ce708a295af68b6f2c72336705c4fc | [] | no_license | aj3087/AWS-Dining-Concierge-chatbot | efceb780af16a644f93c069a8b9d1fa925717829 | b23154d60afc5a5db0f9076ed45052d0aa6502ec | refs/heads/main | 2023-05-01T00:18:13.719282 | 2021-05-23T04:17:46 | 2021-05-23T04:17:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,848 | py | import boto3
import json
import requests
import random
from requests_aws4auth import AWS4Auth
def receiveMsgFromSqsQueue():
sqs = boto3.client('sqs')
queue_url = 'https://sqs.us-east-1.amazonaws.com/060585368592/Queue1'
response = sqs.receive_message(
QueueUrl=queue_url,
AttributeNames=['Se... | [
"sowmya.nittala@gmail.com"
] | sowmya.nittala@gmail.com |
1aef21b8dcb84d2e04dca58eb2b3845d493b340b | c5b545ee6e0884fcfbf198497bc580830c08fb7f | /ciclos/ciclos9.py | 302f583566f514202d94b3c664041e5153b3dffa | [] | no_license | rubenalvarez98/Recuperalo | 9c772ca971fcabf4e1f5f9a8fc0caedf336a07b2 | c03d5ecbfdd6f8c2b7c33207e279f375a9adf5f6 | refs/heads/main | 2023-07-20T08:20:48.384930 | 2023-07-18T03:05:54 | 2023-07-18T03:05:54 | 349,874,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | numero = int(input("Ingrese un número para calcular su factorial: "))
factorial = 1
# Verificar si el número es negativo, cero o positivo
if numero < 0:
print("Solo numeros positivos")
elif numero == 0:
print("El factorial de 0 es 1.")
else:
for i in range(1, numero + 1):
factorial *= i... | [
"noreply@github.com"
] | noreply@github.com |
0d3af189c999c81966b68412047b30a061b58994 | b3b066a566618f49ae83c81e963543a9b956a00a | /Unsupervised Learning in Python/02_Visualization with hierarchical clustering and t-SNE/08_t-SNE visualization of grain dataset.py | a7fd796bfaa4ac6fcdb158ffa94e3376e19f2bff | [] | no_license | ahmed-gharib89/DataCamp_Data_Scientist_with_Python_2020 | 666c4129c3f0b5d759b511529a365dfd36c12f1a | f3d20b788c8ef766e7c86c817e6c2ef7b69520b8 | refs/heads/master | 2022-12-22T21:09:13.955273 | 2020-09-30T01:16:05 | 2020-09-30T01:16:05 | 289,991,534 | 2 | 0 | null | 2020-08-24T17:15:43 | 2020-08-24T17:15:42 | null | UTF-8 | Python | false | false | 1,603 | py | '''
t-SNE visualization of grain dataset
In the video, you saw t-SNE applied to the iris dataset. In this exercise, you'll apply t-SNE to the grain samples data and inspect the resulting t-SNE features using a scatter plot. You are given an array samples of grain samples and a list variety_numbers giving the variety n... | [
"Your-Email"
] | Your-Email |
78895d70380f80f6cdf233a4227ecd16e1366f47 | dc99fa1a0058aae3f765d2c01c3eefecc5ae7388 | /src/framat/__init__.py | cc7655655bb6224308bc5b4cb14062eb94c941de | [
"Apache-2.0"
] | permissive | Corentin1985/framat | a4cbeb47fa3573683907b6a6cb684c75aeec60d8 | 4177a95b4ed8d95a8330365e32ca13ac9ef24640 | refs/heads/master | 2023-05-08T23:11:01.516954 | 2021-06-03T18:33:20 | 2021-06-03T18:45:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | MODULE_NAME = 'FramAT'
from ._log import _plogger as log
from ._model import Model, Builtin
| [
"dettmann@kth.se"
] | dettmann@kth.se |
c2db51665a4a42adf5ad7c52339291548d358ab4 | 4a971163f1b3ed376913825a8e85bfd7122a16e2 | /forum/migrations/0004_auto_20210415_1307.py | 2fa64e1076d073cef6daf407404ebe85b1937f57 | [] | no_license | kifahnaim/djangoAimarena | a314b77e95b86290274721f95af8a036025447d3 | 0961afa7f8df1a15a9af22b04f908dbde4f880c3 | refs/heads/main | 2023-04-28T04:52:33.144912 | 2021-05-15T06:48:11 | 2021-05-15T06:48:11 | 367,449,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | # Generated by Django 3.0.5 on 2021-04-15 13:07
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('forum', '0003_comment_deleted'),
]
operations = [
migrations.AlterModelTable(
name='topic',
... | [
"naimkifah@gmail.com"
] | naimkifah@gmail.com |
74558fd4430abbbd5dc2c6fe6384727804b8ca98 | 303694a68e924feab66a7edf2bf9c02b6dd89983 | /todo_project/todom/views.py | 1a991d1594a35527a50afda2578ed4f0a16fc85f | [] | no_license | mehranwafai/Todo-App | e3a9df35433a88884dac36e29c6529e0e57c18b3 | 32bfbdf681b8b0c95a5e43924b6a8afc6df4facc | refs/heads/master | 2022-05-28T20:20:58.614449 | 2020-05-04T18:08:54 | 2020-05-04T18:08:54 | 260,666,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | from django.shortcuts import render
from django.http import HttpResponseRedirect
from .models import TodoItem
def todoview (request):
all_todo_items = TodoItem.objects.all()
return render(request,'todo.html',{'all_items' : all_todo_items })
def addTodo(request):
new_item = TodoItem(content = request.POST[... | [
"a@hhh"
] | a@hhh |
df6e085b85aea5a18b3c8ad935106b7ab1fc2768 | 9b41bd4d829b7b4b5fc7ea2f375089793f34beb0 | /lib/googlecloudsdk/core/http_proxy.py | 9d0ab19cc662888bb1f6fb6514fed07f85a5da0e | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | eyalev/gcloud | 20a596f9cbf7873eaea652a0b2ad080678f1598c | 421ee63a0a6d90a097e8530d53a6df5b905a0205 | refs/heads/master | 2020-12-25T14:48:11.142544 | 2016-06-22T08:43:20 | 2016-06-22T08:43:20 | 61,703,392 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,949 | py | # Copyright 2013 Google 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/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"eyalev@gmail.com"
] | eyalev@gmail.com |
eaa9965c1192d42b18600bdb6f41f2ae68fe3fcf | 817ff801938d25776b2564b3087c8a3c674da1a7 | /NUP153_Min_One/WT_Minimization/WT_5.py | d243521c696a6396a6864e7e0ae3d14778c5c4c7 | [] | no_license | yanghaobojordan/HIV1-Capsid | b22e21a9ad530ae11f128f409e298c5ab68871ee | f44f04dc9886e660c1fe870936c48e0e5bb5adc6 | refs/heads/main | 2023-04-09T01:27:26.626676 | 2021-04-23T18:17:07 | 2021-04-23T18:17:07 | 360,968,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,576 | py | from pyrosetta import *
from pyrosetta import PyMOLMover
from pyrosetta.toolbox import cleanATOM
from pyrosetta.toolbox import get_secstruct
from pyrosetta.teaching import *
from pyrosetta.toolbox import get_hbonds
from pyrosetta.toolbox import mutate_residue
from pyrosetta.rosetta.protocols.relax import *
from... | [
"yanghaobojordan@gmail.com"
] | yanghaobojordan@gmail.com |
ba53f557d96cdeecb70bddfb7bb783ac5e61cb62 | 3c57a4056566856acc62e5599e8a06dfccf6206b | /compact.py | 833cac1929939f04e88ed85c3ac8469793a1f375 | [] | no_license | LuiGGi629/zadania | 9668eff6b090738b5ecf5b5fecddcfff16a70882 | 1d068e1a9a0451304e3d40752e20db9d82f79bd3 | refs/heads/master | 2020-07-24T00:01:20.631768 | 2019-10-13T08:39:23 | 2019-10-13T08:39:23 | 207,744,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | from itertools import groupby
def compact(iterable):
"""Return iterable with adjacent duplicate values removed."""
return (
item
for item, group in groupby(iterable)
# groupby function groups consecutive items
# in an iterable that are equivalent
)
| [
"wojtek.felix.zuber@gmail.com"
] | wojtek.felix.zuber@gmail.com |
bf9122934b6fe0917c4076faf466074d24464b46 | 7f2bb8cf028eb63568ebef6b18f527305ac4ca18 | /ui_terraindatamanipulator.py | 2a71039e09d0004ec08b5b63633bb88a05817fdc | [] | no_license | CCAlves/GSDCalculator-QGISPlugin | 1b342e9e692f4687b2fe445d037741a2472254a3 | 7fc12a2dc2a1654240e0b5949adf5c68502c3b4f | refs/heads/master | 2021-01-25T05:21:31.666908 | 2014-06-26T12:09:05 | 2014-06-26T12:09:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,808 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui_terraindatamanipulator.ui'
#
# Created: Thu Apr 03 10:49:21 2014
# by: PyQt4 UI code generator 4.9.6
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromU... | [
"caiocesar10@terra.com.br"
] | caiocesar10@terra.com.br |
1c2fba9705105a98ee24ad6354ee9388847d6538 | c87cdbaa2ad9938157a3f558d1c9b7f4bebd1091 | /lab1/server.py | bc3688140c181bf6ac063c3bc568df7186373682 | [] | no_license | vathsavi/computer-networks | e0f819a14c3758232f06a565d392527303be8163 | 3c53330f623389c70e633e02662a65f982165dd0 | refs/heads/master | 2020-12-18T14:10:47.083020 | 2020-01-21T18:32:56 | 2020-01-21T18:32:56 | 235,412,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | import socket # Import socket module
from ast import literal_eval
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM, 0) # Create a socket object
host = socket.gethostbyname(socket.gethostname()) # Get local machine name
port = 12345 # Reserve a port for your service.
s.bin... | [
"noreply@github.com"
] | noreply@github.com |
8da8980b99393e3ccc23f3ef361ffcdbb41504a7 | c47c254ca476c1f9969f8f3e89acb4d0618c14b6 | /datasets/tensorflow-1.0.1/tensorflow/examples/how_tos/reading_data/fully_connected_preloaded_var.py | 392309d543ed93d5cf2d53a76005052e6b3839ae | [
"Apache-2.0",
"BSD-2-Clause"
] | permissive | yijunyu/demo | 5cf4e83f585254a28b31c4a050630b8f661a90c8 | 11c0c84081a3181494b9c469bda42a313c457ad2 | refs/heads/master | 2023-02-22T09:00:12.023083 | 2021-01-25T16:51:40 | 2021-01-25T16:51:40 | 175,939,000 | 3 | 6 | BSD-2-Clause | 2021-01-09T23:00:12 | 2019-03-16T07:13:00 | C | UTF-8 | Python | false | false | 6,286 | py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"y.yu@open.ac.uk"
] | y.yu@open.ac.uk |
018b1bfdd15dfa1af373f4e2756a60015f387971 | 212266251f6fad18d293dcd752240f90867319a0 | /library-fine-manager/finer.py | 6d6956c0cd03184f82c29920f7c4c7c653ae23b9 | [] | no_license | manojkumarmc/python-examples | b5e41a2c621ad1b2e54002f1c4b96c6b833eb455 | 2eb474f998d6212586a8a2a3723d7471ab565c08 | refs/heads/master | 2021-01-19T00:58:56.397735 | 2019-06-10T17:03:29 | 2019-06-10T17:03:29 | 38,770,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,541 | py |
class MyDate(object):
def __init__(self, d, m, y):
self.day = int(d)
self.month = int(m)
self.year = int(y)
def __lt__(self, obj):
ret_val = False
if self.year < obj.year:
ret_val = True
else:
if self.month < obj.month:
r... | [
"manoj.kumar.myaliputhenpurayi@oracle.com"
] | manoj.kumar.myaliputhenpurayi@oracle.com |
35c84ac6379d534e50a7fa91f5600b2edbfab57b | 85ba50d40869d9ff32297a5e200302798e302317 | /manage.py | 4be7b17e10c1980647410181fb6c9493a0516def | [] | no_license | theshadowagent/dgap_mipt_site | a84c8fe7a6a9a232f89f07ccc7e9ff35ffb913f8 | e5da6a13104982089f55075c8d4b2f5953119a59 | refs/heads/master | 2021-08-11T12:35:36.181494 | 2017-11-13T18:01:37 | 2017-11-13T18:01:37 | 110,582,569 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dgap_site.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"shadowagent1st@gmail.com"
] | shadowagent1st@gmail.com |
d6822889e8d7f9096d7d9804978b9982b6c549be | 48138abce366dafa66878749aab172db5f7f4947 | /main.py | 86d116c5be974bba532485c4d60e232bd2214cd9 | [] | no_license | paper2project/DeepFinger | 9ed6a9bd1cee52d67c71fba1749a2ece3fb3ab65 | 4817aece492d289537924a43eb16e2741fcd2c75 | refs/heads/main | 2023-06-11T00:30:54.396339 | 2021-06-28T16:17:51 | 2021-06-28T16:17:51 | 380,778,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,199 | py | '''
This script handling the training process.
'''
import argparse
import math
import time
import os
from collections import Counter
from tqdm import tqdm
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import torch.utils.data
import CNN.Constants as Constants
from data... | [
"noreply@github.com"
] | noreply@github.com |
6d1512c5e0a4678f22341438fe96e88589d84131 | 7a7ee079d24f501d7966bd5be6a04293a49e8ef8 | /AvesProyecto/urls.py | b4cc6882b59947481e7dbc440b8b12a5d3535047 | [] | no_license | zacur13/proyecto-aves | 498c7e9abef716b278a606324c8a207cffadc46b | 62134e3f5867e713a8bbd0a69cfa01a56fe63fad | refs/heads/master | 2021-08-23T00:16:44.263871 | 2017-12-01T21:04:42 | 2017-12-01T21:04:42 | 112,787,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | """AvesProyecto URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Cla... | [
"matheo-chantera@hotmail.com"
] | matheo-chantera@hotmail.com |
867a465d139fd1c55cdc38f9b43be2ff95796c18 | f8666599b83d34c861651861cc7db5b3c434fc87 | /plotly/graph_objs/scatterternary/__init__.py | 661912d2d40112f9b5bd08423f0728686cc78db3 | [
"MIT"
] | permissive | mode/plotly.py | 8b66806e88c9f1820d478bab726f0bea81884432 | c5a9ac386a40df2816e6c13264dadf14299401e4 | refs/heads/master | 2022-08-26T00:07:35.376636 | 2018-09-26T19:08:54 | 2018-09-26T19:19:31 | 60,372,968 | 1 | 1 | MIT | 2019-11-13T23:03:22 | 2016-06-03T19:34:55 | Python | UTF-8 | Python | false | false | 434 | py | from ._unselected import Unselected
from plotly.graph_objs.scatterternary import unselected
from ._textfont import Textfont
from ._stream import Stream
from ._selected import Selected
from plotly.graph_objs.scatterternary import selected
from ._marker import Marker
from plotly.graph_objs.scatterternary import marker
fr... | [
"adam.kulidjian@gmail.com"
] | adam.kulidjian@gmail.com |
595087eb3b63686a2d60c00914f72ffeb145cc4e | 31c682e52ae4a947c4b284bcc58adb56e71ef1d9 | /src/model/neural.py | 38ea174df6bc3f634626b69c7e6f834114bb6368 | [
"MIT"
] | permissive | dkfrankandersen/ITU-BSc-Thesis | 5052fb1644953e651d3c452fa28633189f17da6c | d86dab2050966a65e8b81cd57dfcc0508e280543 | refs/heads/master | 2022-12-13T14:43:18.924220 | 2020-09-01T11:44:15 | 2020-09-01T11:44:15 | 291,978,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,417 | py | """
-------------------------------
neural: Neural Network wrapper.
-------------------------------
"""
import numpy as np
import tensorflow as tf
from keras import losses
from keras.backend.tensorflow_backend import set_session, clear_session, get_session
from keras.layers import Dense, Conv2D, BatchNormalization, Inp... | [
"fand@itu.dk"
] | fand@itu.dk |
3b65b388d53c466d7a621dfd9a085f080b406564 | 05546a7729d0cbf6f4ae697bad7aec235d3d9504 | /www/judge/languages/rust.py | 306d1e8eff9b57faaf4f7ef5e2594fc95089451c | [] | no_license | riceluxs1t/algospot | 60c7b3ca6c1fa8bbdf5220b78496c0bf9969174f | 557bedd0031ff3e726578fbd899fa71435abc31a | refs/heads/master | 2021-01-19T03:02:20.714594 | 2016-12-25T04:26:09 | 2016-12-25T04:26:09 | 79,389,643 | 0 | 1 | null | 2017-01-18T22:08:06 | 2017-01-18T22:08:06 | null | UTF-8 | Python | false | false | 1,425 | py | import subprocess
from django.conf import settings
def system(cmd):
return subprocess.Popen(cmd, stdout=subprocess.PIPE,
stderr=subprocess.PIPE).communicate()
COMPILE_MEMORY_LIMIT = settings.JUDGE_SETTINGS['MINMEMORYSIZE']
LANGUAGE = "Rust"
EXT = "rs"
VERSION = system(["rustc", "--vers... | [
"wookayin@gmail.com"
] | wookayin@gmail.com |
193a32436711b86caa6109b48777c171a89f9862 | a1b0e86979f5cc7f00c9a65073a79c88fcddbb0f | /LiveProject/companyNameScrape.py | 2bacaa2730d32349d3374e74bc36e9bcd9fc02eb | [] | no_license | georgialoper/techAcademyCourseWork | 07025f804027473c12911cc0865e8f872cd8551c | 42eedcfd054fd574d1b55ed299fefc00968ac9b7 | refs/heads/master | 2021-06-20T22:10:54.645793 | 2017-04-06T20:25:05 | 2017-04-06T20:25:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | import requests
from BeautifulSoup import BeautifulSoup
url = 'http://portlandtech.org/'
response = requests.get(url)
html = response.content
soup = BeautifulSoup(html)
table = soup.find('div', attrs={'id': 'fulllist'})
for row in table.findAll('li'):
for link in row.findAll('a'):
print link.text | [
"noreply@github.com"
] | noreply@github.com |
a118a1e83e9def0da9db511d4c9133740f9a5b18 | 221cada2354556fbb969f25ddd3079542904ef5d | /Leetcode/794.py | 3dbb0c842ec25e6a2dc1adf25ee07a5470c2690e | [] | no_license | syzdemonhunter/Coding_Exercises | 4b09e1a7dad7d1e3d4d4ae27e6e006732ffdcb1d | ca71572677d2b2a2aed94bb60d6ec88cc486a7f3 | refs/heads/master | 2020-05-24T11:19:35.019543 | 2019-11-22T20:08:32 | 2019-11-22T20:08:32 | 187,245,394 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,116 | py | # https://leetcode.com/problems/valid-tic-tac-toe-state/
# T: O(n)
# S: O(1)
class Solution:
def isWin(self, board, c):
for i in range(3): # Row check
if board[i] == c*3:
return True
for i in range(3): # Column check
if board[0][i] == c and board[1][i] == c... | [
"syzuser60@gmail.com"
] | syzuser60@gmail.com |
07dd7e37fa0fb096b32c2870025f984da525a821 | b68aa412b36a13df9b08ff7d736e1a0803afa3d9 | /astrobject/instruments/catalogues.py | 2fdde997d218a6b8c77dec062a4ed5f05da139bb | [] | no_license | ufeindt/astrobject | 320b7837e1ae29e562f6f58e8287dcea9df4581a | f60824913a3bfe7fdedb68794dfb7fc69e28569b | refs/heads/master | 2021-01-18T02:55:28.487364 | 2016-12-02T15:28:11 | 2016-12-02T15:28:11 | 46,552,676 | 0 | 0 | null | 2015-11-20T09:33:58 | 2015-11-20T09:33:58 | null | UTF-8 | Python | false | false | 15,103 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
from sncosmo import get_bandpass
from .baseinstrument import Catalogue, coordinates,units
# -- here load all the object that could be parsed
from ..utils.tools import kwargs_update
from ..utils.decorators import _autogen_docstring_inheritance, make_met... | [
"mick.rigault@gmail.com"
] | mick.rigault@gmail.com |
fa813f9e8dbe06ff9eaa964817ab6545a98fec69 | b6964dfe5c0d49711d406319d9c093733b6abf1c | /code/src/NGLib/python_out/bake_me.py | 359b214ae20c947fd4bb9998aa63b286cef981d6 | [] | no_license | evertheylen/MachinesEnBerekenbaarheid | 73d948a1c0023211dd3c55a9132a4caca884924b | 5cd5104b7433a30480dc7b87b02dfa10ec2cdf33 | refs/heads/master | 2021-01-11T05:06:44.033969 | 2016-02-05T13:00:57 | 2016-02-05T13:00:57 | 44,000,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py |
# separate file because this might get complex
import platform
dependencies["headers"] = [
"NGLib/outputter>>headers",
"libs/tinyxml>>headers",
]
gcc_config = {
"pre_extra": "-Wno-deprecated -I%s -Ilibs/boost/b2stuff/include/"%project_config["python_include_dir"],
#"post_extra": "-pthread -Wl,-Bdy... | [
"evertheylen@gmail.com"
] | evertheylen@gmail.com |
39b66afc5455a6ee774e865e8558fee80c0280a5 | 6a7d1a090a05e42eed759ca033a7a53809ff8456 | /image/test/test_image_api.py | 54af50e89111ec0161e8420baf539ce85b65d306 | [] | no_license | edetec/image-gallery-be | bec69372a2804ff4666acfeebd6802a8add7b5f4 | f25ec557e179b6d67098ddc05a7b4c9ab57c4b6b | refs/heads/master | 2022-12-06T11:39:24.352354 | 2020-08-24T02:24:32 | 2020-08-24T02:24:32 | 289,008,221 | 0 | 0 | null | 2020-08-24T02:24:33 | 2020-08-20T13:04:16 | Python | UTF-8 | Python | false | false | 4,648 | py | import uuid
from http import HTTPStatus
from pathlib import Path
import pytest
from image.models import ImageModel
@pytest.yield_fixture()
def images(session):
image1 = ImageModel(
file_path="file1.jpg",
thumbnail_path="thumbnail/file1.jpg",
description="description file 1",
form... | [
"eder@esss.co"
] | eder@esss.co |
04eafc67675909eccd0f244b0a096ccc4e5420a6 | 035b1e04b06ef90023cf224de3b0bfa55dbdde74 | /Class4/venv/Scripts/easy_install-3.5-script.py | 7d41db120019363710078e864b427c2e562d7c82 | [] | no_license | jlmoldan/pythonclass | 47845aa0e53c33dd817324d0a8731e96bcd8475a | 58db089e4084c1659aae632f5e5ebe8774d558c8 | refs/heads/master | 2020-03-15T13:01:25.893839 | 2018-05-11T20:27:30 | 2018-05-11T20:27:30 | 132,156,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | #!C:\Users\jlmoldan\PycharmProjects\Class4\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install-3.5'
__requires__ = 'setuptools==28.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.p... | [
"jlmoldan@stthomas.edu"
] | jlmoldan@stthomas.edu |
238ac565cdf12992f80ce83da24f806d520de596 | e8202ff4594f8d4f9834d6be165b39a8fc3d437d | /week8/codingbat/5_logic1/4.py | 836839f334d36ffc780055952acbcbe68817f006 | [] | no_license | as1k/webdev-labs | 93e939999f38520fc701e245341fee13dfdd8cb2 | 393bf4ffdae8d60640a54efabce62db4ba76eeb8 | refs/heads/master | 2022-04-14T15:38:15.033878 | 2020-04-16T22:12:17 | 2020-04-16T22:12:17 | 237,159,602 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | def caught_speeding(speed, is_birthday):
if is_birthday==False:
if speed<=60:
return 0
if speed>=61 and speed<=80:
return 1
if speed>=81:
return 2
else:
if speed<=65:
return 0
if speed>=66 and speed<=85:
return 1
if speed>=86:
return 2
| [
"nurmukhambet.ak@gmail.com"
] | nurmukhambet.ak@gmail.com |
ce7e45ab87739c913d655d6123914c9bd55130fd | 578082323428bed9016bbf3931f53034b20aff80 | /users/migrations/0001_initial.py | 586d3b48a44c4dbc24b932a7002b5ac5f0d8ff8e | [] | no_license | bazhe1897/blog_project | 34dbe3608404d536d2def3515a080fb6e4c657a1 | 394e37925b9a5e6ca5817b7d7d847ac45fbe9c28 | refs/heads/main | 2023-08-30T09:23:43.768828 | 2021-10-14T15:51:18 | 2021-10-14T15:51:18 | 409,693,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | # Generated by Django 3.2.6 on 2021-09-22 19:09
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"blagojaangov@gmail.com"
] | blagojaangov@gmail.com |
bc5f511362b6c2b31b8f889d0bc798730eb19ee9 | 18f069d9a20ed3db981b04f44db99af39cd2664d | /build_index.py | 7d8a67702c2585e1584bb268ba26a31f83ba5f9a | [] | no_license | WeAreWizards/pypidata | 511ccac1ad2d9da630424935381e650afe4967ed | 48071c15d8294ad340a352cdff7a208fe6abe336 | refs/heads/master | 2016-09-07T11:38:59.547812 | 2014-12-14T10:11:11 | 2014-12-14T10:11:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,207 | py | """Transform the scraped pypi data into a pandas DataFrame for later
consumption.
$ nix-shell -p pythonPackages.nose pythonPackages.protobuf \
pythonPackages.setuptools pythonPackages.pandas \
pythonPackages.tables pythonPackages.ipython
"""
import raw_data_pb2
import pandas
import glob
import json
def emit_j... | [
"tehunger@gmail.com"
] | tehunger@gmail.com |
9d4c4c45c5a09a003e9693ea88c39e532c229da9 | ffb373415060a3f943d30e624710df3972ca0bcf | /manage.py | 0530080fc5f643fdc8e396b5ccdea3ca6800e179 | [] | no_license | LexLongcoding/pop_print | 55acf5fface31ae9b0d8126d5ef8eb554d7abcc9 | 612cf41d7afb6db675d6abba2d91c1589acdc339 | refs/heads/master | 2023-04-02T02:38:05.081230 | 2021-04-07T20:24:03 | 2021-04-07T20:24:03 | 352,515,446 | 0 | 1 | null | 2021-04-07T18:33:30 | 2021-03-29T04:26:56 | HTML | UTF-8 | Python | false | false | 665 | 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', 'Pop_Print.settings')
try:
from django.core.management import execute_from_command_line
except Im... | [
"DevLexLong@gmail.com"
] | DevLexLong@gmail.com |
0e758e5dd750f1d26d9a8be05715980a3cd69a75 | 2983821358fff7ec26e8a88565f0a380ab8eac66 | /manage.py | 393219102e836343fbb63885fe31660f00bf3c24 | [] | no_license | Camarbro/POS | c8733ee17f2db2bc3a4f46f3819aaef7dbad4836 | 09dbd021afad0ccd2158a6e5b233e4b7d8d0a04f | refs/heads/master | 2021-01-17T16:41:41.305330 | 2016-08-10T06:07:27 | 2016-08-10T06:07:27 | 65,355,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Susanas.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"Postmaster@automovilismoonline.com"
] | Postmaster@automovilismoonline.com |
43677b98b8f8f7e0e4283394cf75e03f9aa196b2 | 1358257d86019a9232dba7571fedbfe938352f9f | /LibraryManagement/apps.py | 9d4149239887f6e7f3e0ea534744cfb8d7c6cb98 | [] | no_license | adeelehsan/LibraryManagementSystem | e7de727defe1d00c9332254bb0ef64d28a7fb2d3 | 68e5be7fb5a26607eed62dd67a9c38bc3b91bf97 | refs/heads/master | 2021-01-01T04:09:08.085846 | 2017-07-16T13:20:13 | 2017-07-16T13:20:13 | 97,133,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | from __future__ import unicode_literals
from django.apps import AppConfig
class LibrarymanagementConfig(AppConfig):
name = 'LibraryManagement'
| [
"adeel.ehsan@arbisoft.com"
] | adeel.ehsan@arbisoft.com |
5b9f15b5a722739f3678256572c434c7ca5c4d66 | 51f36a1d97c6520cd614267d301665c9d0909ebf | /Keras_1_fitGenerate/predict.py | 3883e89fc39b23a0038ae571f486555f7eca6175 | [
"MIT"
] | permissive | sunwoo76/Polyp-Segmentation | f7d2f0378af013da9dc72bc667a9704ff66499aa | 764a62dd8de134e462939aafb0c1c24d67dfb564 | refs/heads/master | 2022-04-09T17:37:56.618034 | 2020-03-06T18:44:29 | 2020-03-06T18:44:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,934 | py | import os
"""
# If you have multi-gpu, designate the number of GPU to use.
os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"] = "6"
"""
import argparse
import logging
import cv2
from skimage import io
import skimage.transform as transform
import numpy as np
import segmentation_models as sm... | [
"38250239+sunshower76@users.noreply.github.com"
] | 38250239+sunshower76@users.noreply.github.com |
93656dddb0943a181bcf8693aa865c1d33bc8aab | 5f32ae0e0c8fe1fd8b7fc500876c687209f22dce | /2019_11_01 Vorläufer bis dahin/2019_10_16 GWST Syn V1_0-R3.py | 20b0b1db493d78c0cf9c7d1870833786d788043d | [] | no_license | UlrichNielsen/gsw | 802399850b0ad04d2122d82819d90ad187d2c53d | ae4e3bc3531378af35f245fac973eb854860b55d | refs/heads/master | 2020-09-20T07:07:38.946058 | 2019-11-28T09:06:52 | 2019-11-28T09:06:52 | 224,407,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,224 | py | # Ziel ist es ein einfaches Zählprogramm auf Interrupt-Basis
# für den Gas-,Strom- und Wasserverbrauch
# Mess- und Speicherintervall == 6 min
# Die Daten werden auf den NAS-Server (Synology) gespeichert
# jeweils unter Tages-Datum von 6:00 bis 5:54 des Folgetages
# Endlosspeicherung auskommentiert (mit ## )
# Um die I... | [
"ulrich.nielsen@googlemail.com"
] | ulrich.nielsen@googlemail.com |
ce40acb6d2dfad691c156238fd8bcf18ef9b465b | 6578999fe06b9d8e1280853ab6fc0bbcc68b51a7 | /models/__init__.py | 8a7ff22b0f416fc33f41cb0900a70697a0cf035c | [] | no_license | tangyuhao/transfer-tensorflow | 3abfef3474771a53ba24c8a47b03745079ab5af8 | 3fbbb228006def636c908fd95a45ded3a27ac2fc | refs/heads/master | 2021-08-30T02:10:55.359575 | 2017-12-15T16:44:44 | 2017-12-15T16:44:44 | 111,703,441 | 4 | 0 | null | 2017-11-22T15:47:21 | 2017-11-22T15:47:21 | null | UTF-8 | Python | false | false | 210 | py | from .caffe_alexnet import *
from .caffe_mean_file import *
# Map from model name to (constructor, output feature numbers of fc, mean file)
base_models = {
'alexnet': (alexnet, (9216, 4096, 4096, 1000))
}
| [
"sunziping2016@gmail.com"
] | sunziping2016@gmail.com |
cd7cf82c026b80ab657e904cee8cfe89525b9563 | d1a31b2558ffa51546facba6d9e2dc47ff88d396 | /GenericViews/settings.py | cb1e219360a7a80d0f819e587dd5e2d55fc3fbb2 | [] | no_license | syedarfa459/DjangoCBVs | d65ac91143c2cdb406963a32c6bf854a1277edad | 03133f18a138fc21853cb0e73c0531035ea8e49c | refs/heads/master | 2023-01-07T19:53:50.436757 | 2020-11-06T16:20:10 | 2020-11-06T16:20:10 | 310,645,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,113 | py | """
Django settings for GenericViews project.
Generated by 'django-admin startproject' using Django 3.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pa... | [
"arfashahji@gmail.com"
] | arfashahji@gmail.com |
20faba5fd718594721809afc32054e86bb5736ff | 51899c24fe2ab1ee1a0dd40b58867532f5428004 | /web/myapp/app/SearchModule/t_search.py | 0c49a8cf702bba4aab97f0a0e18d46295987a90a | [] | no_license | 763272955/python | a2d07ee37d31c919d0fecb0a798a87bc024b6970 | b1952ee702227d5624a76410e365dfc38e9beb5c | refs/heads/master | 2021-05-11T11:33:55.246035 | 2018-01-16T06:20:28 | 2018-01-16T06:20:28 | 117,638,934 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,159 | py | #!/opt/python27/bin/python
#coding:utf-8
import json
import urllib2
from ..Config import config
t_behaviors = { 'is_danger': '具有典型行为',
'is_network': '具有网络行为',
'is_process': '具有进程操作行为',
'is_file': '具有文件操作行为',
'is_registry': '具有注册表操作行为',
... | [
"33079717+763272955@users.noreply.github.com"
] | 33079717+763272955@users.noreply.github.com |
66c1143ccb54ec8f526cda648875317d8f080c01 | e1f54e2c4e1601dfb400694ce66f86394afcbf29 | /backtowork.py | b2a3d0712cb6637d0c565fca87fe1db63fb0dd3e | [] | no_license | svhossen/vinted | e173265aa61e3ede33a8add96e0e7997a4faf697 | 33af6b4c013c26c2aacf10a3d09b3d0e839db7aa | refs/heads/master | 2022-11-06T17:16:26.157483 | 2020-06-23T15:29:23 | 2020-06-23T15:29:23 | 273,799,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,806 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Feb 7 15:40:18 2020
@author: hossenbuxs
"""
from timeit import default_timer as timer
import scrapy
import os
os.chdir(r'U:\lavspec\Startup\backtowork')
import sys
sys.path.append(r'U:\Lavspec\Startup\backtowork\backtowork')
from items import NewItem
f... | [
"noreply@github.com"
] | noreply@github.com |
c8a6531bad1d22622b253c30712ab63535b7ba14 | b254f030cefdddbabf6868b1d5d9a784aba88b2c | /tutorial/porting-multi-modules/mypreprocessor2.py | 1f03bc84da1e1046a8b8cc39dd23c9ed4510df0f | [
"Apache-2.0"
] | permissive | gnes-ai/hub | 84220c37eea388fd57c914e86007469cd126d371 | 94cff9011ff6447ce1af51c5307813ab6fbbb156 | refs/heads/master | 2020-07-05T13:23:59.573400 | 2019-10-24T05:10:12 | 2019-10-24T05:10:12 | 202,658,837 | 38 | 11 | NOASSERTION | 2019-10-24T05:10:13 | 2019-08-16T04:33:52 | Python | UTF-8 | Python | false | false | 375 | py | from gnes.preprocessor.text.base import BaseTextPreprocessor
class MyPreprocessor2(BaseTextPreprocessor):
def __init__(self, bar, *args, **kwargs):
super().__init__(*args, **kwargs)
self.bar = bar
def apply(self, doc: 'gnes_pb2.Document') -> None:
super().apply(doc)
doc.raw_t... | [
"hanhxiao@tencent.com"
] | hanhxiao@tencent.com |
7a6a0b91917a46a5de11415981074fe5b760823a | f24985cd3f0fec0d4343bec4981cd0c190328046 | /train/app/model.py | aa47bb4d9c43c5faf45ec639f3e4d56b46819b63 | [] | no_license | LinLL/scrapy_pic | e69f0b3fcde516eb758072e826a46b9fd4af971e | 4852d43be55d962445d0202ec03ce0a7e59ab1c3 | refs/heads/master | 2020-12-25T15:07:50.547392 | 2016-10-17T02:15:54 | 2016-10-17T02:15:54 | 67,203,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
class Beautys(db.Model):
id = db.Column(db.Integer, primary_key=True)
url = db.Column(db.String(70), unique=True)
loves = db.Column(db.Integer)
page = db.Column(db.Integer)
def __init__(self, url, page, loves=0):
self.url = url
... | [
"luolin.work@gmail.com"
] | luolin.work@gmail.com |
a738fb0d91c7cefa3fc82be2a129ddfd5b83fae8 | 3d1a0d198f2ab85dd65e56ed7a4a60250e9decaa | /2020/day02/aafrecct/day02.py | 9663fd3d4d81af83d4d1f729cd057d5c918143f9 | [] | no_license | petacreepers23/AdventCode | 82235e96a65826abeafa0bdc35b413d539385a90 | 8f52b043e37b4f276f34de972ca04d743b7c1f47 | refs/heads/master | 2023-02-03T15:16:52.877745 | 2020-12-17T23:33:03 | 2020-12-17T23:33:03 | 317,660,628 | 0 | 0 | null | 2020-12-17T22:04:06 | 2020-12-01T20:33:04 | Python | UTF-8 | Python | false | false | 825 | py | def next_line():
with open('day02.input', 'r') as f:
while(l := f.readline()) != '':
yield l
def parse_line(line):
line = line.split(' ')
line[0] = [int(i) for i in line[0].split('-')]
line[1] = line[1].replace(':', '')
line[2] = line[2].replace('\n', '')
return line
d... | [
"aafrected@gmail.com"
] | aafrected@gmail.com |
c01f46251c7d9ca4cdbc9e0920e810fc569ffbfd | 292be3c6499c690899ff2506d22e315de040c766 | /animation_opt_data.py | 86214672181ec47f859a5122d83e1204b5f5ba77 | [] | no_license | dawnknight/Kproject | fa1d2cf96a8d7c6fcfb8aabb868a68997440cfb4 | 27f076357b5913c6e4f3c92596839ee209671529 | refs/heads/master | 2020-07-16T08:51:27.627550 | 2016-12-18T04:57:32 | 2016-12-18T04:57:32 | 73,948,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,085 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Dec 02 13:04:16 2016
@author: liuqi
"""
import cPickle
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
data_all = cPickle.load(file('mocapdata1128_array.pkl','r'))
keys = data_all['keys']
NUM_LABELS = len(keys) # total number of the labels
NUM_... | [
"atc327@nyu.edu"
] | atc327@nyu.edu |
a0c4e362e2865879a5638f88f353f7b7f24fd3f9 | 21537bd6ff388baf6653f8299b467dd187112fd0 | /example/wugui.py | 5caabced41c3bf0b13fb258f5b60fd4356d60181 | [] | no_license | z313608886/PythonStudy | 4c874979dcb8a0423d9d9a2cc9c2065fa964cbf5 | 4bb022d72e149932c6f6c8c8618beb5988178a1d | refs/heads/master | 2020-05-19T11:56:19.614962 | 2019-08-28T03:16:13 | 2019-08-28T03:16:13 | 185,004,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | import turtle
bob = turtle.Turtle()
print(bob)
'''bob.fd(100)
bob.lt(90)
bob.fd(100)
bob.lt(90)
bob.fd(100)
bob.lt(90)
bob.fd(100)'''
app=4
for i in range(app):
bob.fd(100)
bob.lt(90)
turtle.mainloop()
| [
"313608886@qq.com"
] | 313608886@qq.com |
3fe70926213c2c43854b814f3fa2a772fcbc0115 | 877f89c4d1c352f452f1911cea7fa0888b642492 | /2-by-2-grid.py | a9e70b8f3be3708cf13302e329bf0645ba3eea3f | [] | no_license | sSKDs/Think-Python-2E | 55bfeca3fac01699f47058eb6b9c7debd0ef2382 | 63d580fbb033f228601036904a77986b00cfc70d | refs/heads/master | 2020-12-02T07:48:39.092615 | 2017-07-10T09:14:53 | 2017-07-10T09:14:53 | 96,729,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | def grid():
a = '+' + ' -' * 4
b = '+'
c = '/' + " " * 8
d = '/'
def print_1():
print(a, a, b)
def print_2():
print(c, c, d)
def do_twice(f):
f()
f()
def do_four(f):
do_twice(f)
do_twice(f)
def print_grid():
print_1()
do_four(print_2)
do_twice(print_grid)
print_1(... | [
"noreply@github.com"
] | noreply@github.com |
46df32664759646298fd335369f412281b58466f | eebe06df6c21b64f46c4054767c6013a294f9f6e | /src/graph_def_editor/rewrite.py | aff4b34b73df6de57ad08ad7016ed7ecb7b4b5a1 | [] | no_license | Hari-Nagarajan/gpt2-twitter | 86ed98cd55e6c59c420c23fb8fd4aac40c5c6c4e | db8a4d40cbad24a8f51c889147d2e9b9af9648e1 | refs/heads/master | 2023-02-21T04:52:34.101164 | 2021-07-13T15:58:00 | 2021-07-13T15:58:00 | 231,670,820 | 6 | 3 | null | 2023-02-16T00:37:21 | 2020-01-03T21:47:04 | Python | UTF-8 | Python | false | false | 25,758 | py | # Copyright 2019 IBM. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | [
"hari@nagarajan.io"
] | hari@nagarajan.io |
b26bc6da235636368ae07cbc90981a25521e6737 | bde8e24b07bb3a403fa40a3c2aabe3f8d4466272 | /question90-99/question94.py | d4c4fe4224ccf09a7489f19f4a51854c02394b5f | [] | no_license | refine-P/NLP100Knock | fda6680b6d72faae9d8805829fa7d9cb9ab379d6 | ed29a3a3d80820ef074247f79253c7ef97500b55 | refs/heads/master | 2021-07-06T15:55:29.512827 | 2019-04-07T16:37:34 | 2019-04-07T16:37:34 | 179,993,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | #coding:utf-8
#Windowsだと警告が出るが特に問題がないらしいのでこれで握りつぶす
#参考(http://stackoverflow.com/questions/41658568/chunkize-warning-while-installing-gensim)
import warnings
warnings.filterwarnings(action='ignore', category=UserWarning, module='gensim')
from gensim.models.word2vec import Word2Vec
if __name__ == "__main__":
model ... | [
"32488002+refine-P@users.noreply.github.com"
] | 32488002+refine-P@users.noreply.github.com |
fefd208821f5b71f960ba8f78725eede063b565b | cd941f68203a17c5bf5232c9fc7e4c69b5c1148b | /Timus/1296_Hyperjump.py | 271d661f88efacf6fa4af5f49c4002724031c402 | [] | no_license | ppakorn/dotaIsDown | e916651a7138e6683171a551e85d6e5bda2dedf0 | b408a02278788ebfddbb57fd7ee439e8a57f686d | refs/heads/master | 2023-09-01T05:17:06.231973 | 2023-08-28T13:59:23 | 2023-08-28T13:59:23 | 183,803,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | def solution(a) :
max = 0
sum = 0
for i in range(len(a)):
if sum > 0:
sum += a[i]
else:
sum = a[i]
if sum > max:
max = sum
return max
n = int(input())
a = [0] * n
for i in range(n):
a[i] = int(input())
print(solution(a)) | [
"pakorn@ampostech.com"
] | pakorn@ampostech.com |
3e5f8c81073da737f0ad411e4dbce8d06e3374c0 | 899f955df7737c8d08a43e1a9acab0f46c504000 | /bin/calc_word_bool.py | 4dc469cd8e56e3bcdb5c344c2fe0b38b3d519a93 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | aziele/alfpy | 89f91d829cb9dc07e3e2af152263ea9586e72529 | 25545be14affa7d7e89e5b5ebcfe4f3e688108b7 | refs/heads/master | 2022-06-23T23:38:46.846729 | 2022-06-14T06:28:08 | 2022-06-14T06:28:08 | 72,731,037 | 22 | 6 | null | null | null | null | UTF-8 | Python | false | false | 3,379 | py | #! /usr/bin/env python
# Copyright (c) 2016 Zielezinski A, combio.pl
import argparse
import sys
from alfpy import word_bool_distance
from alfpy import word_pattern
from alfpy import word_vector
from alfpy.utils import distmatrix
from alfpy.utils import seqrecords
from alfpy.version import __version__
def get_parse... | [
"a.zielezinski@gmail.com"
] | a.zielezinski@gmail.com |
6fd7fd37669a3e861a981401bd51e05255ebdd8d | ea28fd0a5c918e48705d7c104fe24513e1be2267 | /git_commands_file.py | 0b402ddd28a28d91f2e6d213aaa91f4ffddbfe37 | [] | no_license | sharmila-gudla/blue_team_for- | f5b8c0c3c77dc9fb68a35576000223b735e4817d | 2df51e68bed49c49e227c6f6bbc98b2a68ea1f23 | refs/heads/master | 2022-10-08T23:45:25.734524 | 2020-06-11T10:25:29 | 2020-06-11T10:25:29 | 271,329,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | Hello world!!!!!!!!!!!!!!!!
hiiiiii
helllo | [
"gudlasharmila1234@gmail.com"
] | gudlasharmila1234@gmail.com |
8be4b31d5b6d0932f1f3501c51ac72f4c982f1d9 | b0764d16090acc1fa93661c6673c8dfdd6b240e0 | /client/service/enterprise_bl.py | 683a1f2cb7f915468ee566e042884de25839f113 | [] | no_license | blshao84/zzbj | 3903321869ce0efd934291f220ca31a1be6fd66f | b82b2cfad69d615fe73f134ed073f71d44229ed5 | refs/heads/master | 2023-02-13T21:31:27.529948 | 2021-01-08T04:34:09 | 2021-01-08T04:34:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,666 | py | # -*- coding: utf-8 -*-
# @Author : dongjianghai
# @File : enterprise_bl.py
# Introduction :
import datetime
import logging
import pandas as pd
from service import utils as utils
_date_format = '%Y-%m-%d'
_date_format_s = '%Y-%m-%d %H:%M:%S'
def get_base_elements(code):
data = {'code': code}
url = 'http:/... | [
"sinorockie@gmail.com"
] | sinorockie@gmail.com |
7d650679d38d65b2e05abc53a001d57e0cd69d52 | 5e990a70ece0c40f6e675a59495192342682f1a8 | /model_2_mutimodal_attention_iiit_dataaug.py | 8bd964c183d9a10c028b87832d4c7d704949752a | [] | no_license | hardik-uppal/Hardik_AIIM | d293f2cd30c85928a0fce241010e66594d347bb5 | 1aaae3a06f90649156b966e5acd7ebc91ff38831 | refs/heads/master | 2021-08-06T04:23:17.737607 | 2020-08-27T18:48:38 | 2020-08-27T18:48:38 | 214,052,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,457 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Oct 22 00:10:40 2019
@author: hardi
"""
import gc
import numpy as np
from keras import layers, models, optimizers
from keras import backend as K
from keras.utils import to_categorical
import matplotlib.pyplot as plt
#from utils import combine_images
from PIL im... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.