blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
794a7d84ec90f65b1511ebed775cf8e106c133ea | f81770e50efa6591b949e8124c26bd25cdcac8b8 | /get_data_quandl.py | da25dc4e29cb1c1ecf0313fe255d63833d63bdf5 | [] | no_license | afcarl/stock-analysis | 62fe629c14a1230972611e728a5bf0f6edff57d7 | 5bde6093437fd2152e876d4d686045c52f5a5307 | refs/heads/master | 2020-09-03T23:33:50.542928 | 2018-03-20T15:12:12 | 2018-03-20T15:12:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | import pandas as pd
import os
import quandl
import time
# put your api key in the auth.txt, to run the script
auth_tok = open('auth.txt','r').read().splitlines()
auth_tok = str(auth_tok[0])
quandl.ApiConfig.api_key = auth_tok
data = quandl.get("WIKI/KO", start_date = "2000-12-12", end_date = "2014-12-30")
print(da... | [
"alex20041051@gmail.com"
] | alex20041051@gmail.com |
7570f5e15fedff0e24028361292b3cc3a8d6cb57 | 50c668e9e0c10c1bcfd093b824e58ab66867cf30 | /20-proyecto-python/main.py | c57bc118d609483598ce8ca1735fe924b4313728 | [] | no_license | bthecs/Python | 1d4e9f424fce633c2fe50455654b21a1e56b3a19 | b587f67bc6f999de4e80ebb53982430e48a68242 | refs/heads/master | 2023-03-29T00:40:36.071294 | 2021-03-30T00:31:34 | 2021-03-30T00:31:34 | 352,788,286 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | """
Proyecto Python y Mysql:
-Abrir asistente
-Login o registros
-Si elegimo login, identifica al usuario y nos preguntara
-Crear nota, mostrar notas, borrarlas
"""
from usuarios import acciones
print("""
Acciones disponibles:
-registro
-login
""")
hazEl = acciones.Acciones()
accion = input("Que deseas hace... | [
"fl.gimenez@alumno.um.edu.ar"
] | fl.gimenez@alumno.um.edu.ar |
35d0edee077868cf1d8eb1a21a31002342d71494 | 83e436d062adf45591b737b804de76d849446130 | /strategies/preprocess/BasePreprocessStrategy.py | 0dac414bf53b02b80833dc404c0a26239b2a4fbe | [] | no_license | MateuszChmielewski99/CollardRecommendation | 423783a316a8fcea063038f096af3b3ad0e2d1d5 | 46ea6cb384976176bd34f625f9806c857ac64bf5 | refs/heads/main | 2023-02-17T18:32:15.959255 | 2021-01-18T23:21:00 | 2021-01-18T23:21:00 | 330,805,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | from pandas import DataFrame
class BasePreprcoessStrategy:
def execute(self, dataframe: DataFrame):
pass
| [
"chmielewski079@gmail.com"
] | chmielewski079@gmail.com |
665b611c5b7f2ceaf32df3bad8123faf25217302 | e4cc95ec952cfc183ae3c1122d145497a580f305 | /test/functional/zerocoin_valid_public_spend.py | bcf9e9e73bf72cf3be0158a06b5dec84d726e1a3 | [
"MIT"
] | permissive | jakilwq/TerraCredit | 80866e19dde3e67efbec7ede705d5046b0973c1f | 56c8833c79a2485ae9a4d101f9b7267b867a3cdf | refs/heads/master | 2022-12-15T21:58:42.421232 | 2020-09-04T06:51:03 | 2020-09-04T06:51:03 | 292,806,732 | 0 | 0 | null | 2020-09-04T09:27:12 | 2020-09-04T09:27:12 | null | UTF-8 | Python | false | false | 8,859 | py | #!/usr/bin/env python3
# Copyright (c) 2019 The TERRACREDIT developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Tests a valid publicCoinSpend spend
'''
from time import sleep
from fake_stake.util import TestNode
fro... | [
"alonewolf2ksk@gmail.com"
] | alonewolf2ksk@gmail.com |
89d1c1b7edc57086880534bce223e185945de49f | 1a2963e19984c6c4f542ef91113516d589cb964e | /on/z.py | 8f6cebc3c8bbf858bf6c89fffe79bd61e7216956 | [] | no_license | ohnari/py | a33fe98cd65e55d4da80442c3501b72610ba863b | 7c96d7cbfc8de8fd398237c8dda10d6ac66f7b53 | refs/heads/master | 2020-04-19T16:09:36.387718 | 2019-02-13T09:02:38 | 2019-02-13T09:02:38 | 168,295,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | #from pack import NariPairs
#from pack import ForexDataClient
#from pack import GaitameDataClient
#from pack import NariPairs
import pack
p = pack.NariPairs.getSymbolList(['eu'])
a = pack.GaitameDataClient()
b = pack.ForexDataClient()
c = a.getQuotes(p)
print(c)
print(b.base_uri)
| [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
7525be1bcf6253a89b93a1686c8b64641ea89d39 | a43763ea407ceab8588a661885e9744f3c8a8262 | /HW_7/ChE445_HW7_Winter2020_Solution.py | 7f381feb0973ad20f753d6893b0c32d6f4471a27 | [] | no_license | maryam-azhin/ChE445-Winter2020 | 30cbecc7b568f6274253e118257099c5b0963a31 | 1e90e7854f1a07b62a962404f7c3fe1d19dde4d3 | refs/heads/master | 2021-07-21T20:17:12.840870 | 2021-01-06T08:50:28 | 2021-01-06T08:50:28 | 233,687,358 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,774 | py | #!/usr/bin/env python
# coding: utf-8
# ##### T.A. Maryam Azhin,
#
# Department of Chemical and Materials Engineering, University of Alberta
# **HW7. External mass transfer limitations.**
#
# due Monday, March 30, 2020. Weight: 2%
# Reaction: $A + O_2 \rightarrow B$ (gas phase)
#
# Kinetics: Intrinsically ... | [
"azhin@ualberta.ca"
] | azhin@ualberta.ca |
a5c90c37e4a5591bf12c0421d468c67aff000f88 | 464208517e4691fd9e9dd56a46550e35ae34555f | /indexed.py | 962de385c0f62ddcac53c2de0d212e96279e0f87 | [
"MIT"
] | permissive | destrangis/indexed | 260cea22afb94888cbb0282dbc6b007c2a0ed5da | 38dbca8719dfdcbb5d9c4e64192077f4aafd87da | refs/heads/master | 2020-08-10T06:35:52.809507 | 2019-10-10T21:03:53 | 2019-10-10T21:03:53 | 214,284,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,519 | py | import sys
import struct
import pathlib
import pickle
from numbers import Number
VERSION = "1.0.0"
INTSIZE = 4
INTBINFORMAT = "!L"
HEADERFORMAT = "!LLLL"
MAGIC_NUMBER = 0xd8fd2372
NO_MORE_RECORDS = 0xffffffff
DEFAULT_RECORD_SIZE = 512
DEFAULT_NUM_RECORDS = 10
RECORDS_OFFSET = 4 * INTSIZE # start of records area
c... | [
"javier@llopis.me"
] | javier@llopis.me |
cf7ce4febb11b3a8679e9c6d7b02823b9dd3d85b | 981422eab8715257cf50078ecff93d6e4153a9fb | /preprocess/analysis.py | ab53996f235ff1c5d88cc8429c22c00d1a1d2cc7 | [] | no_license | FirmlyReality/guba_sentiment | d34227b99dc39ed28d41dc6b0b9f56dbf5564b24 | b528d039ab8e80e8691e170ed2e7a9fd93bf8738 | refs/heads/master | 2020-04-19T16:25:06.892886 | 2019-05-04T07:26:51 | 2019-05-04T07:26:51 | 168,303,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,949 | py | import pandas as pd
import os, sys
import time
import collections
if __name__ == "__main__":
if len(sys.argv) < 2:
print("Usage: python analysis.py <inputDir>")
exit(1)
starttime = time.time()
inputDir = sys.argv[1]
files = os.listdir(inputDir)
tiezi_lencount = collections.Coun... | [
"firmlyzhu@163.com"
] | firmlyzhu@163.com |
54bebeb806ed2a6d1e646e23ff48c820f6015356 | f3ed28ec7242d335df9cbb2d49f5163f288b2b04 | /interpreText.py | 5c463ac0b6f12a9a9b7dcd92a6c87ca2386ef975 | [] | no_license | DanielXav/algoritmo-primeiro-periodo | 97e60bf558fbf59535608982c983bef757757ab5 | 3743b8c221ddb05afa2ad9b9b78c3a5851636704 | refs/heads/main | 2023-05-15T17:24:51.994832 | 2021-06-15T17:31:55 | 2021-06-15T17:31:55 | 377,242,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,458 | py | from time import sleep
titulos = list() #Listas e Dicionarios
temas = list()
cadastro = dict()
historia = dict()
historias = list()
questoes = dict()
listaQuestoes = list()
listProfessores = list()
listAlunos = list()
prof = dict()
aluno = dict()
#FUNÇÕES DOS PROFESSORES
def linha(tam=42): #Fun... | [
"noreply@github.com"
] | DanielXav.noreply@github.com |
cb8bbb18812b781c6011712f275d27da47b49467 | 4180adc91a4f90580597df0f2eb631f71706b416 | /animation_queue.py | 0c18144c83ea7cb47f634c1eca603854ba2a68b8 | [] | no_license | allynbauer/nspygame | 8935a7329109d29c535c652485329debf44d2295 | 8fb8d2dce7d4444636c358cf60f0e27da2584dee | refs/heads/master | 2021-01-01T19:52:34.185553 | 2013-03-31T16:01:44 | 2013-03-31T16:01:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | from animation import *
class AnimationQueue(object):
def __init__(self):
self.animations = []
def add_animation(self, animation):
assert animation is not None
animation.queue = self
animation.began = pygame.time.get_ticks() # TODO: replace with clock
self.animations.append(animation)
def tick(self, clo... | [
"allyn.bauer@gmail.com"
] | allyn.bauer@gmail.com |
8f58ceac773c503d7bcc188d51ad3750de9f0467 | 02d2657ca9d835996d0d9a883820f9f5d9e688bb | /02_yes_no.py | e14aa95c22450d33484e21d5718f74092dcaec70 | [] | no_license | konelliusbriggs/01_Lucky_Unicorn | 8c459b2dee4207fef3ca5bc49ed53f5c23a24fbf | 673bf493f5ebb322df9d7b7248a628625a58bfc4 | refs/heads/main | 2023-03-26T08:59:52.569920 | 2021-03-25T23:45:49 | 2021-03-25T23:45:49 | 351,277,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | def yes_no(question):
valid = False
while not valid:
response = input(question).lower()
if response == "y" or response == "yes":
return "yes"
elif response == "n" or response == "no":
return "no"
else:
print("Please enter yes / no")
played_before = yes_no("Have you played thi... | [
"briggsk9489@masseyhigh.school.nz"
] | briggsk9489@masseyhigh.school.nz |
4989fa19a6d22301de71b13a5c533c0d567f84a2 | ef714898ec6c6b7084770a488cd03f40586caa08 | /modules/export.py | e55995848324804dcdcc0fed5aba64727b5b2a75 | [
"MIT"
] | permissive | mindsphere/dataModelHandler | 24e9633c921e219b4d35458b1773bee20a66e6a6 | 6d5f415976794802ca8ccea66b26b2a7bcbec751 | refs/heads/master | 2023-04-28T16:59:11.470104 | 2021-05-18T14:32:55 | 2021-05-18T14:32:55 | 368,198,045 | 1 | 1 | null | 2021-05-18T14:32:12 | 2021-05-17T13:35:29 | Python | UTF-8 | Python | false | false | 12,157 | py | import uuid
import requests
import json
import datetime, traceback
import os
import sys
import configparser
import traceback
import csv
from pprint import pprint
import collections
from pathlib import Path
import helpers
#Custom Modules
import modules.readConfig as config
from modules.helpers impor... | [
"noreply@github.com"
] | mindsphere.noreply@github.com |
7abe62c7ef0dcbe1c054939532683e3efd1c42ac | a3f683085685cb683aa38be2699ffae67089f863 | /core/tests/sources/test_source.py | 5968f46bdd6aee7e8ba5a0ae9923afdb8aae73a3 | [
"BSD-3-Clause"
] | permissive | saroad2/toga | 094d763b3b129ded3a96692eed27709629dc61fc | 3af18a5658aa75b551ed11da9b49d5b90de7855b | refs/heads/main | 2023-01-28T01:25:31.300635 | 2022-11-14T01:33:22 | 2022-11-14T01:33:22 | 246,352,111 | 0 | 0 | BSD-3-Clause | 2023-09-10T20:15:27 | 2020-03-10T16:28:14 | Python | UTF-8 | Python | false | false | 1,515 | py | from unittest import TestCase
from unittest.mock import Mock
from toga.sources import Source
class SourceTests(TestCase):
def test_listeners(self):
listener1 = Mock()
source = Source()
source.add_listener(listener1)
self.assertListEqual(source.listeners, [listener1])
# a... | [
"russell@keith-magee.com"
] | russell@keith-magee.com |
4a930183b499dfb6de14e5c00be6746627ad3141 | a053f5be4356290f693704ffa5b8c4c9d45dd14c | /venv/bin/wheel | b29715d18c54d6d6c374c4d00b5e8b59fb6738fb | [] | no_license | troupn/hellowebdjango | 713f5631c5d4a4c23ec00e01432c05903359e7f7 | bc986a0053f759c8b3f3166879c13797b58929d6 | refs/heads/master | 2021-01-22T03:23:10.527308 | 2017-02-06T21:04:05 | 2017-02-06T21:04:05 | 81,119,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | #!/home/ubuntu/workspace/projects/myhellowebapp/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ngtroup@gmail.com"
] | ngtroup@gmail.com | |
dd4760af44ded3a8c110c95124a335213cb587af | d5c339150b74b7023177d4c039604a9018704e9d | /src/GameController.py | 196deecc28f7e877c6d6c72f12c555c45b11595e | [] | no_license | haihoangtran/MineSweeper | d488137d13c1079485513c5f5d8ab37d90db884c | 451e4c1dae606a9c8c26e69926e09ef9f0cd00da | refs/heads/master | 2020-08-07T06:27:37.969458 | 2014-03-11T01:23:06 | 2014-03-11T01:23:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,148 | py |
class GameController():
def __init__(self):
self.SIZE = 10
(self.SEALED, self.EXPOSED, self.UNEXPOSED) = range(0, 3)
self.cellStatus = [[ 0 for i in range(self.SIZE) ] for j in range(self.SIZE)]
self.cellMined = [[0 for i in range (self.SIZE)] for j in range (self.SIZE)]
... | [
"hai.hg.tran@gmail.com"
] | hai.hg.tran@gmail.com |
bd01e38be226912fc3889a352c1d816e2857ecd7 | 2bbdd0c00080c4d27253df8722fb3e0b053bd63f | /Python/Machine Learning/Regression/Section 4 - Simple Linear Regression/simple_linear.py | e759684e3b308e25387fbeaeb9dd9e34b5d623d8 | [
"MIT"
] | permissive | urbrob/programming | 3c005802a5d286dfe1fc8c3e31e36677a5523ad2 | b9374fa6dca08504d6bb67c5db9fdf41a4d0d9f7 | refs/heads/master | 2020-04-06T07:57:50.486444 | 2020-03-05T08:17:22 | 2020-03-05T08:17:22 | 157,290,643 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LinearRegression
import matplotlib.pyplot as plt
dataset = pd.read_csv('Salary_Data.csv')
x = dataset.iloc[:, :-1]
y = dataset.iloc[:, -1]
x_train, x_test, y_train, y_test = train_test_split(x, y, test_size=1/3,... | [
"urb.rob@o2.pl"
] | urb.rob@o2.pl |
d3d73a376e90dd88ea2bf700467fc93bb559085d | 18d0d1e6e121928d9542def6c60d3089ac834d50 | /.c9/metadata/environment/products/urls.py | 90abd99bbe3407fb606f84eb0f638e28b7229f8d | [] | no_license | JackSnowdon/stripe-test | 31990f7f73be490d282fa0f23ab1acf373415d02 | b2729de4eb0c908d5b1c359d29dc347f16cf388d | refs/heads/master | 2023-01-04T08:09:56.693969 | 2019-06-27T11:11:45 | 2019-06-27T11:11:45 | 192,900,409 | 0 | 0 | null | 2022-11-22T02:09:57 | 2019-06-20T10:31:53 | Python | UTF-8 | Python | false | false | 418 | py | {"filter":false,"title":"urls.py","tooltip":"/products/urls.py","undoManager":{"mark":-1,"position":-1,"stack":[]},"ace":{"folds":[],"scrolltop":0,"scrollleft":0,"selection":{"start":{"row":5,"column":1},"end":{"row":5,"column":1},"isBackwards":false},"options":{"guessTabSize":true,"useWrapMode":false,"wrapToView":true... | [
"jacksnowdondrums@gmail.com"
] | jacksnowdondrums@gmail.com |
5d798c8e283b24e5f08402137f1a6bb81c96ba24 | 7546f5995ffab909ccd87da8576461bdc58951c1 | /pachong/爬虫/Study/requeststest.py | fe99ef739ed62a403a2928acdb550772157814af | [] | no_license | wskai1/Python_Study | fa6f818df3de31a37272dc013004cc982d61a6c1 | 72e668e94e3bc6b769dfc103ac62fa387d733306 | refs/heads/master | 2020-03-25T01:42:26.553100 | 2018-08-06T09:48:51 | 2018-08-06T09:48:51 | 143,252,364 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,451 | py | import json
import requests
import urllib3
from requests import ReadTimeout, RequestException
from requests.auth import HTTPBasicAuth
response = requests.get("https://www.baidu.com")
print("response类型:",end="")
print(type(response))
print("response状态码:",end="")
print(response.status_code)
print(type(response.text))
... | [
"1729253813@qq.com"
] | 1729253813@qq.com |
23eddcdcd6ae4cd6ef40bafc0337d44138959fd7 | b55cfd21e25a6bf4df4eb9cffff0e005ace9badf | /self_assessment.py | 4234369e3566366505a08dd3ccba54fca81d101c | [] | no_license | margunwa123/peer_assessment_calculator | c2d57ca7e4c98ba064320cae342c8d7bb62b8c2c | 40a382800772e2d307481ef09762ec6f37cb3a8e | refs/heads/master | 2023-01-24T12:45:44.013360 | 2020-12-11T08:25:37 | 2020-12-11T08:25:37 | 317,132,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | # py self_assessment.py {nama_file csv} {list NIM orang}
import csv
import sys
from constant import *
def getSelfAssessment(nim):
with open(sys.argv[1]) as csv_file:
for row in csv.reader(csv_file):
if(row[NIM] == nim):
print(f"Self assessment nim {nim} adalah {row[NILAI_SENDIRI]}")
break
... | [
"13518114@std.stei.itb.ac.id"
] | 13518114@std.stei.itb.ac.id |
7c86499fe37f63ec047435d257414eea36444b04 | 0547d1826e99eedb959a3463520d73985a3b844e | /Data Analyst with Python Track/05-Introduction to Data Visualization with Matplotlib/02- Plotting time-series/04-Plotting two variables.py | a39c962585de865637f7454937f881c5fc655682 | [] | no_license | abhaysinh/Data-Camp | 18031f8fd4ee199c2eff54a408c52da7bdd7ec0f | 782c712975e14e88da4f27505adf4e5f4b457cb1 | refs/heads/master | 2022-11-27T10:44:11.743038 | 2020-07-25T16:15:03 | 2020-07-25T16:15:03 | 282,444,344 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,505 | py | '''
Plotting two variables
If you want to plot two time-series variables that were recorded at the same times, you can add both of them to the same subplot.
If the variables have very different scales, you'll want to make sure that you plot them in different twin Axes objects. These objects can share one axis (for e... | [
"abhaysinh.surve@gmail.com"
] | abhaysinh.surve@gmail.com |
df39214fb6f2973cd79d9e5a1575d63504485a39 | b4d9ad08313a975e2a4c2a70140a548812d50850 | /apps/deepstream-test1-usbcam/deepstream_test_1_usb.py | 564deea6064f1157d12aca66cd1bbbfb67a03dac | [
"MIT"
] | permissive | culebracut/ds-vs | 06a00274684df6f60f5e852d364b7fcd5b6deacd | d71493539d4934b86057b87bf15d80b033ddb2fe | refs/heads/master | 2022-11-07T15:59:45.301898 | 2020-06-25T17:46:19 | 2020-06-25T17:46:19 | 272,830,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,312 | py | #!/usr/bin/env python3
################################################################################
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),... | [
"foobar.warren@gmail.com"
] | foobar.warren@gmail.com |
d2bf098633aa22056182a33f65addd7a365598bb | 97763df96bc21d91e46e3a98f9ee2b55f557035e | /share/qt/extract_strings_qt.py | f918851dc4a9feea1b425647bab2e4bb017feb84 | [
"MIT"
] | permissive | jaagcoin/JAAGCoin-Core | 2f0138c38e28b98878bbcd5f011ab84d1441bb57 | 87073dbff406e2d95a6e9d81521973c3c8cef350 | refs/heads/master | 2020-03-26T05:34:39.790028 | 2018-08-30T15:46:16 | 2018-08-30T15:46:16 | 144,563,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,691 | py | #!/usr/bin/env python
# Copyright (c) 2012-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Extract _("...") strings for translation and convert to Qt stringdefs so that
they can be picked up by ... | [
"dmitriy@Dmitriys-iMac.local"
] | dmitriy@Dmitriys-iMac.local |
7825a87559141ba84ef6acaf295452b051a8cb7d | ff268c31f10cbd3e1c44261ca65a45c88ed3dae5 | /Bayesian Networks/belief propagation/conf.py | 2f40682278443925575581c90e1ac1cd016fc216 | [
"MIT"
] | permissive | gyani91/Machine-Learning | 6642c65359ed48b212a0f4296f5ce908ed6e95e3 | 2fabaa6386d3be24e56aaa9a19d58cd19d225198 | refs/heads/master | 2023-05-27T10:25:55.222053 | 2023-05-15T18:12:45 | 2023-05-15T18:12:45 | 114,811,646 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | EDGE_COLOR = '#bbbbbb'
EDGE_WIDTH = 2
NODE_SIZE = 3000
NODE_BORDER_COLOR = EDGE_COLOR
NODE_BORDER_WIDTH = 3
NODE_COLOR_NORMAL = '#3492d9'
NODE_COLOR_SOURCE = '#2cb64e'
NODE_COLOR_OBSERVED = '#d96b34'
NODE_COLOR_REACHABLE = NODE_COLOR_SOURCE
NODE_SHAPE_SOURCE = 'd'
LABEL_COLOR = '#111111'
FACTOR_NODE_SIZE =... | [
"noreply@github.com"
] | gyani91.noreply@github.com |
21c1131b3a3c7b8405b92c8d65312c7524c3c66d | 66809511847afd8a1469ba6600f3344b9e1fe3e7 | /nanoauto/__init__.py | c00f05dbfec46a6dd41177a8f395f8b8d6ca3f38 | [
"MIT"
] | permissive | moshez/nanoauto | a621d2e3f8fde0feacd6a63ab8cf9a1471152a87 | bad407ae4bfb465ba5d137f19e6291c7f8ffe36d | refs/heads/master | 2016-09-05T22:09:23.810662 | 2015-03-23T03:27:12 | 2015-03-23T03:27:12 | 32,709,059 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | __version__ = '0.0.1-dev'
metadata = dict(
name='nanoauto',
version=__version__,
description='Web-based editor',
long_description="""\
nanoauto: write-only web editor
""",
author='Moshe Zadka',
author_email='zadka.moshe@gmail.com',
license='MIT',
copyright='2015',
)
| [
"zadka.moshe@gmail.com"
] | zadka.moshe@gmail.com |
8d4bbe5ecb6a28987891b8d10b5ff34b924e3995 | 422d46ecde4b29ee2c34f1a2a30ba0417a33220f | /catkin_ws/build/turtlebot3/turtlebot3_bringup/catkin_generated/pkg.develspace.context.pc.py | 0a2c7bbb047d769edc2577143f9b99f030a5fb20 | [] | no_license | biniamzerai/BusBot | 68cf39f947a468b02b08ed1baad5afaf838a61e9 | 8522ba21d98f909ca29ddfd41b6047acc7f97691 | refs/heads/master | 2021-01-07T16:18:04.682683 | 2020-01-26T01:33:58 | 2020-01-26T01:33:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;std_msgs;sensor_msgs;diagnostic_msgs;turtlebot3_msgs".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" el... | [
"reed.jacobp@gmail.com"
] | reed.jacobp@gmail.com |
297a8141da9cd0e52e6b2557323f122bd7cd3bfb | a9493cf8607b0f55bbde902d99dd844be5d23057 | /network analytics/HW1_dijkstra.py | 3d2533ad1e71d006fd5d56022ff5c65dff877939 | [] | no_license | chanbaik/chanbaik | 16fc52e19c97b0de6dbf140734b754296110d42a | 84d8848ee0df16c8dfef0fffe9791629d7b7049b | refs/heads/master | 2021-01-10T13:32:20.944586 | 2020-02-17T16:23:48 | 2020-02-17T16:23:48 | 51,171,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,358 | py | # -*- coding: utf-8 -*-
# %% define the dijkstra function
def dijkstra(graph_dict, start, end):
"""
This is a recursive function that implements Dijkstra's Shortest Path
algorithm.
It takes as its inputs:
i. a graph represented by a "dictionary of dictionaries" structure,
genera... | [
"chanbaik91@gmail.com"
] | chanbaik91@gmail.com |
0521e2806ded691379691042dc91f708f1d9dd77 | fc9653df96016aeee35e1175e23b7765d0f1967a | /PYTHON COURSE/30 - chapter-3_exercise-1(WINNING_GAME).py | 12500a372a53f8c4f276f6edb099396520b270cb | [] | no_license | tushsoni/PYTHON-BEGINNERS-TO-ADVANCED | d8ec2967f80000a1f464993367f7744a69bb72b4 | 3bd92d588145887d95e82aab03a6480cf46f50f1 | refs/heads/master | 2020-06-13T05:13:31.037671 | 2019-07-04T06:47:31 | 2019-07-04T06:47:31 | 194,547,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | # *************************************** CHAPTER-3_EXERCISE-1 *************************************#\
# QUESTION : MAKE A VARIABLE LIKE winning_number and assign any number to it , ask user to guess a number , if user guessed correctly then print "YOU WIN !!!!"
# if user did'nt guessed c... | [
"noreply@github.com"
] | tushsoni.noreply@github.com |
90bc1ede2a61174bac6107a0fd68500f728a5cdf | e334315ab49ea26617377d023563d2555c7f74eb | /SourceCode/inputLayer/suite_inputLayer/tst_case2/test.py | 065f3dbe39890f46b8f728052cdce6f42b12e757 | [] | no_license | asthagaur1/danfoss-bdd-automation | d331072992949a3ce372803a284f408ce0315422 | 714d81e1545f05d16e7c26e832c8b9b9fe6448cf | refs/heads/main | 2023-03-30T15:29:54.849082 | 2021-04-05T08:21:04 | 2021-04-05T08:21:04 | 353,651,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | # -*- coding: utf-8 -*-
import names
def main():
startApplication("KoolProg")
mouseClick(waitForObject(names.koolProg_imgSetParams_Image))
mouseClick(waitForObjectItem(":SetParameters_List_3", "Danfoss.T4CClient.SetParameters+ListFileItems"))
| [
"asthagaur@danfoss.com"
] | asthagaur@danfoss.com |
3b43001e103907111a747181d9a47c7ede00f321 | 7c14313ddb570ee6c10b67132f66676845350a85 | /단계별로 풀어보기/부르트 포스/1436_영화감독 숌.py | 908be86f8df27acbb51428545664bbc12688afb5 | [] | no_license | jongtix/Python_Baekjoon | 864eebe6e959417d92c3b1ba3549afc33aa37045 | 89df7a46a6c6b09b01888f905d864d5b59af95b8 | refs/heads/master | 2023-01-02T18:39:07.871990 | 2020-10-19T08:34:38 | 2020-10-19T08:34:38 | 265,094,216 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,837 | py | # 문제
# 666은 종말을 나타내는 숫자라고 한다. 따라서, 많은 블록버스터 영화에서는 666이 들어간 제목을 많이 사용한다. 영화감독 숌은 세상의 종말 이라는 시리즈 영화의 감독이다. 조지 루카스는 스타워즈를 만들 때, 스타워즈 1, 스타워즈 2, 스타워즈 3, 스타워즈 4, 스타워즈 5, 스타워즈 6과 같이 이름을 지었고, 피터 잭슨은 반지의 제왕을 만들 때, 반지의 제왕 1, 반지의 제왕 2, 반지의 제왕 3과 같이 영화 제목을 지었다.
#
# 하지만 숌은 자신이 조지 루카스와 피터 잭슨을 뛰어넘는다는 것을 보여주기 위해서 영화 제목을 좀 다르게 만들기로 했다... | [
"32856255+jongtix@users.noreply.github.com"
] | 32856255+jongtix@users.noreply.github.com |
21562dbab964edf95aa8c7f35daa1e346636f62a | eb003b949ccd90d350eea8fc895f8b1ba9a99e40 | /IMBD_SPIDER/IMBD_spider.py | 1908cfd85a10a4e1b6f3c67f3f8dbe8749616aa6 | [] | no_license | AhmedFakhry47/ETL-Pipeline-For-IMDB_Movie_Reviews | 59d952e3a7c5f8e815dcdd1152ad22dfd5ce4d59 | 5ca2327a8dc0f71f8a359860041d5b0e41bba421 | refs/heads/master | 2022-11-23T15:43:00.033629 | 2020-07-30T18:44:23 | 2020-07-30T18:44:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,881 | py | from scrapy.linkextractors import LinkExtractor
from scrapy.spiders import CrawlSpider, Rule
from pymongo import MongoClient
import pymongo
import scrapy
def connect_database():
cluster = MongoClient("mongodb+srv://enihcam:12345@cluster0.irbss.mongodb.net/<Movie_Review>?retryWrites=true&w=majority")
db = cluster["M... | [
"ahmedfakhry805@gmail.com"
] | ahmedfakhry805@gmail.com |
72ee003a9e5c5ffb3c760e5114f3bf624734ed45 | 2c1143026cb6ed4e2d9093368eb3163768be0bd0 | /examples/UnderDev/ECG_Entropy/test.py | 30d046ad59f14996bf62c4ad1d332715fa6f0963 | [
"Python-2.0",
"MIT"
] | permissive | rhenanbartels/NeuroKit.py | 4679f39e874f852509d11287e0e3936dd8baf702 | 1c95fd3f67f4157d6f1e13b10b9d08662ffecf05 | refs/heads/master | 2021-01-20T18:10:22.134512 | 2017-05-10T20:55:31 | 2017-05-10T20:55:31 | 90,910,551 | 0 | 0 | null | 2017-05-10T21:37:44 | 2017-05-10T21:37:43 | null | UTF-8 | Python | false | false | 543 | py | # -*- coding: utf-8 -*-
import numpy as np
import pandas as pd
import neurokit as nk
import nolds
df = pd.read_csv('data.csv')
df = nk.ecg_process(ecg=df["ECG"])
rri = df["ECG"]["RR_Intervals"]
signal=rri
tolerance = "default"
emb_dim=2
chaos = nk.complexity(signal, lyap_r=False, lyap_e=False)
#chaos = pd.Serie... | [
"dom.mak19@gmail.com"
] | dom.mak19@gmail.com |
19b9ec027d7d7e6b2f95e1ea3516fb29e6acdfbb | 7f4b7bd69bf406703bd669acee58e789e937dec0 | /classifier_models/q-1-1.py | f26f48734307675bf7f28921774a9deaeffbd45a | [] | no_license | PrabhaPandey911/Machine-Learning | 9c3767269fcb9c64f5cde8f4e629cf10f4caa7e2 | fd7555fb90fb4f5e9b815a6d046ba0240f530841 | refs/heads/main | 2023-05-08T11:29:02.486864 | 2021-05-23T15:58:37 | 2021-05-23T15:58:37 | 370,025,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,443 | py | #!/usr/bin/env python
# coding: utf-8
# # q-1-1
#
# # Part (i):
# In[137]:
import numpy as np
import pandas as pd
import sys
import math
import matplotlib
import matplotlib.pyplot as plt
from pylab import *
filename1="./RobotDataset/Robot1"
filename2="./RobotDataset/Robot2"
# In[138]:
#As the given data does ... | [
"prabha.pandey.iiith@gmail.com"
] | prabha.pandey.iiith@gmail.com |
02213e4a2e6da7ecce759935c4b8ca0ee895f692 | 1a2b7aa4db8f36fcabb7093d4a5120a8ce3fa57e | /nanalib/nanalib/nanalib/doctype/author/test_author.py | 42da2bd908bf25cc1ffd9bca4be4c90df0ff0b8a | [
"MIT"
] | permissive | mohamedhafezqo/nana_library | 3722dfe4b345da3064f22f3aa75951aaedd848ee | d429b2a1f2af4ba988e96c86e39985c19b8ffb51 | refs/heads/master | 2022-04-14T13:13:47.312671 | 2020-04-16T13:18:17 | 2020-04-16T13:18:17 | 256,219,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2020, nana and Contributors
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest
class TestAuthor(unittest.TestCase):
pass
| [
"mohamed.hafezqo@gmail.com"
] | mohamed.hafezqo@gmail.com |
12965f0d92a6486ae33f800cf7b821d5ddd92a07 | 0d6820aa4958aff7ff083aaa78e899b70d201c73 | /src_docker_version/imdb_clone/imdb_clone/urls.py | 1edce63ea2d3db9ed13fd05f0ef1d908aa887a8b | [] | no_license | ramankumarrudr/ImdbClone_DeltaX | e15ccd363b14be74fd49ade873a8ce061e50bdf5 | b789da271eaad6fb0866e55d60ad61e230f56db5 | refs/heads/master | 2023-04-30T13:09:54.225152 | 2019-08-12T12:42:04 | 2019-08-12T12:42:04 | 199,679,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | from django.contrib import admin
from django.urls import path,re_path
from django.urls import include
from django.conf.urls import url
from app import views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('admin/', admin.site.urls),
path('', views.index,name='in... | [
"ramankumar.rudr@gmail.com"
] | ramankumar.rudr@gmail.com |
8366171b9a7ff4af419cd587e13a7454da48da19 | 8ad6662c4fa0755d33a0cf62ddc50b3815e870a0 | /venv/bin/odf2xml | 9e26999219b30a41cc49d95be21f3ce36a2d4bc6 | [] | no_license | xarala221/gestion-parrainage | 1dea1aabadb8049ea64e716c30c8ff4e3208a001 | 6efebaa7271a0c6644e0b868877ca71630b4e455 | refs/heads/master | 2020-04-05T02:11:29.592504 | 2018-11-07T19:31:26 | 2018-11-07T19:31:26 | 156,467,445 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,493 | #!/home/hackerpro/projects/2019/parrainage/venv/bin/python3
# -*- coding: utf-8 -*-
# Copyright (C) 2008 Søren Roug, European Environment Agency
#
# This is free software. You may redistribute it under the terms
# of the Apache license and the GNU General Public License Version
# 2 or at your option any later version.... | [
"xaralaxarala@gmail.com"
] | xaralaxarala@gmail.com | |
dce2a94fb0ea75fa40eb112d0bb3937eb37b2d3c | 9e831c0defd126445772cfcee38b57bfd8c893ca | /code/questions/241~250_/246.py | f54c941a608497cd2b46602faf9664a20fa052a7 | [] | no_license | m358807551/Leetcode | 66a61abef5dde72250d032b7ea06feb3f2931d54 | be3f037f6e2057a8f2acf9e820bbbbc21d7aa1d2 | refs/heads/main | 2023-04-22T15:13:43.771145 | 2021-05-07T06:47:13 | 2021-05-07T06:47:13 | 321,204,181 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | """
https://leetcode-cn.com/problems/strobogrammatic-number/
"""
class Solution(object):
def isStrobogrammatic(self, num):
"""
:type num: str
:rtype: bool
"""
left, right = 0, len(num)-1
while left < right:
if num[left]+num[right] not in '00 11 88 69 96'... | [
"m358807551@163.com"
] | m358807551@163.com |
cac2631608240c84ba8954024d8ea505c9f2951c | 9845e9a4616f9bd2e55996507bf96d47d7553d8c | /Shirley/Notebooks and Resources/config.py | 6eec9eff508eb0a25f4f932c8bbf659434834eff | [] | no_license | suealexa/Plane_project | 28e26ca728077f97801a508f511a2643b4a75129 | d55f0f3759804530d365cdb03f300871c6317490 | refs/heads/master | 2020-12-19T21:56:30.461197 | 2020-01-23T19:02:46 | 2020-01-23T19:02:46 | 235,864,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | api_key = 'AIzaSyBoe3QXczQK_5R-ivDFVgVH0a_3GDxnXfI'
username = 'postgres'
password = 'Learn2019!' | [
"noreply@github.com"
] | suealexa.noreply@github.com |
d9872a8513d7495f66afca7c52f6b105ad784190 | 955773323446846eff0fbd4e9d3e3a543226f6db | /SomeProject/FaceDetection/get_date.py | a546924631b028235eb51789a59528d3b7a1ddd8 | [] | no_license | zhxing001/ML_DL | 94d8aa64a459b4d257efefe160dac7fb5433e91e | 6c6a0a42f52d7d392dc844aa94306221c52e319a | refs/heads/master | 2021-07-15T20:14:16.976797 | 2018-10-31T02:42:55 | 2018-10-31T02:42:55 | 135,117,665 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,970 | py |
def get_date_and_label():
import matplotlib.pyplot as plt
#读入数据和标签,我存了一份JPG格式的,但是这样存储是有问题的,matlab三通道拉长的话是
#一个通道连续存储,而python是一个位置三个通道连续存储。所以最后还是改用mat型存储
#==============================================================================
# train_img=cv2.imread('train_img.jpg',0)
# train_label=cv2.imread('train_label.... | [
"zhxing_cas@163.com"
] | zhxing_cas@163.com |
890dc7e724af48f6a0735079ff1f93c895ef6d0e | 35d8b4775d24dd013fac07a8cfd2b672a4ec925e | /724. Find Pivot Index.py | 5d55381dd6d72dcaa4aa76b0a401f22bf8530f4f | [] | no_license | melekoktay/Leetcode-Practice | a6aba796a1dd9bd239ff64db010c086079c2218f | d181f2075c6c3881772dfbf54df3ac3390936079 | refs/heads/master | 2022-12-21T07:00:37.086434 | 2020-10-12T22:40:34 | 2020-10-12T22:40:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,515 | py | '''
724. Find Pivot Index My SubmissionsBack to Contest
Given an array of integers nums, write a method that returns the "pivot" index of this array.
We define the pivot index as the index where the sum of the numbers to the left of the index is equal to the sum of the numbers to the right of the index.
If no such i... | [
"buaaluqiang@hotmail.com"
] | buaaluqiang@hotmail.com |
87caa856e0d6cc766fc6a3ffde69398715dc4ac3 | dc66af3b1640f2748c13fbc3802a5855f9b6ae01 | /Project Implementation/ML_DL/Count_no_of_coins/Iishi/object_detection_edge.py | bfa52532d1337ce2e3f6dea02a8e7eaa8e8af260 | [] | no_license | jerelyn-premjit/Dawn | a9629e7eaafd7c43313e530bc6efa98eb46595a1 | 7cf9cc0509e5f965cede7e36066014f0d3e818df | refs/heads/master | 2022-01-07T09:50:37.850846 | 2019-04-17T14:08:30 | 2019-04-17T14:08:30 | 184,249,330 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | import cv2
img = cv2.imread('coins.png')
bilateral_filtered_image = cv2.bilateralFilter(img, 5, 175, 175)
edge_detected_image = cv2.Canny(bilateral_filtered_image, 75, 200)
cv2.imshow('Edge', edge_detected_image)
cv2.waitKey(0)
contours,h = cv2.findContours(edge_detected_image,1,2)
for cnt in contours:
cv2.drawC... | [
"iishipatel@gmail.com"
] | iishipatel@gmail.com |
d83ead9269308088dace0d3a4793ea36908e4b40 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/valid_20200616215224.py | a3e2a3055cb4ab737c0f457a39c3d13fdc34ef94 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,261 | py | # Ipv4 --> 4 decimal numbers,between 0 to 255
# leading zero's is invalid
# check whethere its a digit between 0 to 255
import string
def valid(str):
if str[len(str)-1] == ":" or str[len(str)-1] == ".":
return "Neither"
address = str.split(".")
numbers = range(0,256)
result = None
for a ... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
3fc6eb8ea204b5fd78b064ff2167321ea6e5d64d | 7998938fd5d56c01f6053883b6b2faeeb9f77465 | /test/test_result_code.py | 105c6a1a911a2527518863042fb31179b797da0d | [] | no_license | jasonsemko/swagger | d87b7fe16aff701e1e6f4446f272a5fd8fc4bb01 | 23e1b837cf2f384731933ac5bf6bd90d5e1b290e | refs/heads/master | 2020-06-24T15:20:57.586047 | 2017-07-11T22:49:48 | 2017-07-11T22:49:48 | 96,943,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,211 | py | # coding: utf-8
"""
AvaTax REST API
The AvaTax REST API exposes the most commonly used available for interacting with the AvaTax service, allowing calculation of tax, modification of documents, and validation of addresses. If you're unsure of which API to use, a full comparison of the differences between the ... | [
"jasonsemko@gmail.com"
] | jasonsemko@gmail.com |
fe5d5716001ab8bdc4208658dae4a013ef944713 | 18b67c9db2ba65b68e3efbf7133b92cc3fb6cc2b | /setup.py | fb9a7e719bf40fcf631821217e0075e5515cf606 | [] | no_license | Abbie-gz/cicd-demo-v5 | 153557af920849a8475b4a3b7f73012078d5e835 | ce0634261e677135db3280be58ab9ccce022be5e | refs/heads/main | 2023-06-03T05:34:23.098949 | 2021-07-01T14:33:51 | 2021-07-01T14:33:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | from setuptools import find_packages, setup
from cicd_demo_2 import __version__
setup(
name="cicd_demo_2",
packages=find_packages(exclude=["tests", "tests.*"]),
setup_requires=["wheel"],
version=__version__,
description="Databricks Labs CICD Templates Sample Project",
author="",
)
| [
"ypyabby@163.com"
] | ypyabby@163.com |
a346f70258b827ad3d297c165e834c474f52f801 | 08175e7b7f96316b183e1e86cca238bb5305ae8d | /words_len5_edited_dist.py | 3554be5737960d60db6458f9af749fa19a9b8e92 | [
"BSD-3-Clause"
] | permissive | GrahamAtkinson035/lab8_word-ladders | 32215792f2022d7a554000fd0f6b8a3526d6a303 | cab5c794be5a869c337e25adb73f3f89c4a3f63e | refs/heads/master | 2021-01-16T22:39:28.438457 | 2016-02-08T15:39:15 | 2016-02-08T15:39:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,199 | py | """
Words/Ladder Graph
------------------
Generate an undirected graph over the 5757 5-letter words in the
datafile words_dat.txt.gz. Two words are connected by an edge
if they differ in one letter, resulting in 14,135 edges. This example
is described in Section 1.1 in Knuth's book [1]_,[2]_.
References
----------
.... | [
"themesta@gmail.com"
] | themesta@gmail.com |
de1f9e1c256a8eb9c3c61a0f88aea6549d4cadbe | e61e78c9f616bafe7a64d77e43fe46f0385f93f8 | /listDemo.py | ea980835174a94a92fe80efb9af941e912a0c14c | [] | no_license | dafaWang/myPythonDemo | 6fb3ad3c3cebcc0f5b2d5c3f2e445efa5fe2ee33 | 859160fb227a3bbde383ef1c01fc4b61d574e451 | refs/heads/master | 2021-01-20T16:22:01.096182 | 2017-05-11T09:53:41 | 2017-05-11T09:53:41 | 90,835,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | p1 = input('请输入第1个数')
p2 = input('请输入第2个数')
p3 = input('请输入第3个数')
p4 = input('请输入第4个数')
p5 = input('请输入第5个数')
mList = [p1,p2,p3,p4,p5]
print('当前list为 %s' %mList)
print('第3个数为 : %s'%mList[2])
print('最后一个数为 : %s'%mList[-1])
p6 = input('请添加一个数')
mList.append(p6)
print('当前最新的list为 : %s' %mList)
p7 = input('请添加一个数')
index1 ... | [
"mocen_dafa@163.com"
] | mocen_dafa@163.com |
424419177c915e19bc48bf256f83929f73ac7213 | 3186e93270607285bbe8bde229ea454ffec58935 | /venv/bin/f2py3.7 | eda1f7254ba66bfc6d31f322c9ad2bf7819455bb | [] | no_license | suryanuj/stock-comparisons | e206135564137b588ccfb0b4552178b9fedd9288 | f0c8692bb958b4f9d375e497f27e8b9f1f0a7f89 | refs/heads/master | 2022-11-05T08:29:22.749066 | 2020-06-21T05:20:37 | 2020-06-21T05:20:37 | 273,838,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | 7 | #!/Users/suryanuj/PycharmProjects/btctracker/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from numpy.f2py.f2py2e import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"suryanuj@udel.edu"
] | suryanuj@udel.edu |
a5ccc09d7d0c444b38aea3201e3f43bbd7d419df | b11e3ae9cb19091f9babd0addb38a9537fb79b21 | /venv/Scripts/easy_install-3.7-script.py | fdd7d963c1265ceb076f2648798e521ff245db29 | [] | no_license | scorchgid/OWM-Application | 2d47d5b9f3da570f5f4b8366d842431593087f8e | 268b6c54dd5df417b2e302adcd33fc10c426ac84 | refs/heads/master | 2020-07-22T14:22:00.958513 | 2019-09-17T18:53:37 | 2019-09-17T18:53:37 | 207,231,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | #!C:\Users\Gideon\PycharmProjects\OWM-Application\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-sc... | [
"scorchgid@gmail.com"
] | scorchgid@gmail.com |
9750a57f98f60e192b3530c22876a6db24b56047 | e67b0c01d7244f1c635d7c2e12157076bcd2efbc | /EX06/ex6.py | 72ee32c78b12115672c3bead9de6607b7e6f755f | [] | no_license | SonjaGrusche/LPTHW | 0a7de74101db1b0ae62ffc35d4fac990c894ae14 | 12483e97373c9e0aa9e8785b20bb34e1e5b4b36a | refs/heads/master | 2021-01-12T15:52:06.404665 | 2017-03-21T10:27:53 | 2017-03-21T10:27:53 | 71,830,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,301 | py | # the variable for x gets set, it consists of a string with a format character and its variable at the end
x = "There are %d types of people." % 10
# the variable for binary is binary
binary = "binary"
# the variable for do_not is don't
do_not = "don't"
# the variable for y is a string that includes two format charact... | [
"sonja.grusche@stud.leuphana.de"
] | sonja.grusche@stud.leuphana.de |
67a00c31c0fab3d6c19689900052c3bc7f8309ee | ab81f9cfebe641b3400901e77a7fc6ee4cba3180 | /src/pre-commit | aafdce2b8b01da9bfc1cd65013f17d0d5bf32d35 | [] | no_license | 1garo/git_python_script | 0ffbe272e8d3fb1056506e3f45e5d7ef271c4e2b | d68c05f3034c877530531ebe98503062e10278c0 | refs/heads/master | 2020-09-09T02:43:35.112667 | 2019-11-14T16:30:31 | 2019-11-14T16:30:31 | 221,321,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,031 | #!/usr/bin/env python3
import script_2
import os
def create():
documents = os.popen(
"git diff --cached --name-status").read().splitlines() # Pega todos os documentos dentro da cache prestes a serem comitados
i = 0
alcance = len(documents)
while i < alcance:
full_line = documents[i].... | [
"alevardai@hotmail.com"
] | alevardai@hotmail.com | |
839af1b1bae6047079453f2f80a9265386152b24 | 24c84c5b93cd816976d370a99982f45e0d18a184 | /SearchingSorting/BubbleSort.py | af60e6f3c4c2e2ff5a7dda335ee95c1b44f0a6c1 | [] | no_license | purushottamkaushik/DataStructuresUsingPython | 4ef1cf33f1af3fd25105a45be4f179069e327628 | e016fe052c5600dcfbfcede986d173b401ed23fc | refs/heads/master | 2023-03-12T13:25:18.186446 | 2021-02-28T18:21:37 | 2021-02-28T18:21:37 | 343,180,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py |
def bubblesort(arr):
for i in range(len(arr)):
for j in range(len(arr)-i-1):
if arr[j] > arr[j+1]:
arr[j] ,arr[j+1] = arr[j+1] , arr[j]
arr = [1,10,2,12,5]
print(arr)
bubblesort(arr)
print(arr) | [
"purushottamkaushik96@gmail.com"
] | purushottamkaushik96@gmail.com |
fc6477a6967e95f2b3e5884278adfc5093b566e6 | ba4706218366e65b35dc5892a77c3394c374ea6f | /settings.py | afa28b8bb01fed93b4af4fb6cb5e298c5578575e | [] | no_license | tngo0508/alien_invasion | e282f82a0658049d04313e4f283b57ddc296465c | 5dbd4a113e136065a81eb5d906a0b6feb158b33b | refs/heads/master | 2020-03-26T04:43:04.861008 | 2018-08-16T05:15:03 | 2018-08-16T05:15:03 | 144,518,830 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,708 | py | class Settings():
"""A class to store all settings for Alien Invasion."""
def __init__(self):
"""Initialize the game's static setting."""
# Screen settings
self.screen_width = 1200
self.screen_height = 800
self.bg_color = (230, 230, 230)
# Ship settings
s... | [
"tngo0508@gmail.com"
] | tngo0508@gmail.com |
27513eaeeed5a4e2b0c720da1465aca4782fe138 | 5df88ea861b19a7ffdd318ab64c0ca23f1baa30b | /ModelInputsAndRunScripts/PostprocessingScripts/calc_elev_and_slope.py | fbac57ec943376677705e3789afa14e46f46608b | [
"MIT"
] | permissive | gregtucker/tucker_mccoy_hobley_grain_hill_manuscript | 2283c7aa33d57ba61404d319cfb41679549016ff | 179c73dc4e2f8b971028f23619e12acaf6a0ea7f | refs/heads/master | 2020-03-08T15:28:27.288806 | 2018-06-05T15:14:26 | 2018-06-05T15:14:26 | 128,212,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,226 | py | #!/usr/env/python
"""
calc_elev_and_slope.py
Reads output from a series of GrainHill runs, and for each, calculates:
1 - the maximum elevation
2 - the mean elevation
3 - the mean slope.
4 - the mean soil thickness.
5 - the fractional soil cover.
These are written to a csv file.
"""
import os
impor... | [
"gtucker@colorado.edu"
] | gtucker@colorado.edu |
20a625ddaa72d4716cb4c286b72a4030d9773a0e | 079731ed552f065c8f747ec068c2655d88ad3710 | /run_classifier.py | d5ed740490f40eb60080e9e965c7ab004ee6c85a | [
"MIT"
] | permissive | alyzleafbell/UER-py | 5d402c023b92df5e3b6e379e8f2715f853e959e2 | d33d9b2ee6f9324aacfbf06591bc63a11b1511b4 | refs/heads/master | 2023-01-20T04:16:48.010266 | 2020-12-02T09:41:01 | 2020-12-02T09:41:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,950 | py | """
This script provides an exmaple to wrap UER-py for classification.
"""
import torch
import random
import argparse
import collections
import torch.nn as nn
from uer.utils.vocab import Vocab
from uer.utils.constants import *
from uer.utils.tokenizer import *
from uer.layers.embeddings import *
from uer.en... | [
"1152543959@qq.com"
] | 1152543959@qq.com |
e318067d8d92753c1ff55de7175dfdf9541e70e6 | a1a518ba04855820f531c705c36028e4d7435a86 | /tests/python/driver/tvmc/test_registry_options.py | 458d0a88d1f727c407015444d34fe709309c781b | [
"Apache-2.0",
"BSD-3-Clause",
"Zlib",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"BSD-2-Clause"
] | permissive | ZQPei/tvm | b47f7a3f16400774eefb5ca882a0053e46176a52 | 6c32f976522aa1d923fcfe364f05a7860cb346b4 | refs/heads/main | 2021-12-10T22:33:44.248391 | 2021-11-30T23:58:05 | 2021-11-30T23:58:05 | 203,511,290 | 0 | 1 | Apache-2.0 | 2021-11-25T09:28:32 | 2019-08-21T05:17:34 | Python | UTF-8 | Python | false | false | 2,911 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | ZQPei.noreply@github.com |
153e2afd35e596d691f24b7f0b289bd2cfa4307c | 449b2889900cf2ec285ae2309d07fac31f286234 | /sms/urls.py | d90f7027541f609b2332719cb12c53b3b73508ed | [
"MIT"
] | permissive | xchoudhury/twilio_app | 05b3ed8e58b14b5ea95997e8e0315738d5b07aac | c06ae7dc27f46d9a0af78b3f1fc9dc8a51cf81f7 | refs/heads/master | 2022-12-13T03:52:54.335870 | 2017-06-28T02:43:46 | 2017-06-28T02:43:46 | 95,335,969 | 0 | 0 | null | 2022-12-07T23:57:40 | 2017-06-25T03:21:14 | Python | UTF-8 | Python | false | false | 280 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(
r'^sms/send/$',
views.send_sms,
name='send_sms'
),
url(
r'^sms/receive/$',
views.receive_sms,
name='receive_sms'
),
]
| [
"xchoudhury@gmail.com"
] | xchoudhury@gmail.com |
f148e707e28d61acb86229973a9fea7274e78d5c | b47e307ebb4b76d4cb15feab2d952df037abf6b5 | /pyexercises/b_019.py | ba350e14ae5f28c9ca4cb73bd53fabd49762c27a | [] | no_license | wiccawill420/pybites | 50964bb102600c02a2ccd5bf8aab2069a14db0c8 | 59c87c36d6daf016057b8890724267df1a7e41d6 | refs/heads/master | 2022-11-27T20:21:06.089961 | 2020-07-31T20:03:23 | 2020-07-31T20:03:23 | 283,005,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 849 | py | from datetime import datetime, timedelta
import inspect
NOW = datetime.now()
class Promo:
def __init__(self, name, expires):
self.name = name
self.expires = expires
@property
def expired(self):
if self.expires < NOW:
return True
else:
return False
... | [
"william.lynn.1337@gmail.com"
] | william.lynn.1337@gmail.com |
5824a5d8555db04a2932bb992498a6649742e9e3 | 2169c394afe2c00a3d593433925083daa15e504e | /lesson5/zd5_3.py | 92ee543bbb4e84a24f07471c336dd53ddec733ed | [] | no_license | Lexa07/Lesson | 89bc464ed6ee07661eec7c08e11dfdb80c56a1bc | 0357002ea0a76eb46149de68d7c33b61b7a9d6d4 | refs/heads/lesson1 | 2023-03-10T09:22:06.280934 | 2021-02-13T10:38:42 | 2021-02-13T10:38:42 | 330,971,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,068 | py | """
3. Создать текстовый файл (не программно), построчно записать фамилии
сотрудников и величину их окладов. Определить, кто из сотрудников
имеет оклад менее 20 тыс., вывести фамилии этих сотрудников.
Выполнить подсчет средней величины дохода сотрудников.
"""
from functools import reduce
def func_my(e... | [
"latyw07@mail.ru"
] | latyw07@mail.ru |
7dd1c492f62f77a8e944c442208db313fcff19a4 | 3f5f52b37f7aca332c5cbca0a06ff33685f20c5b | /sf_record_spider/distribute_util/request_queue.py | 5d85e435d1193babf6995725a6c3e80efdb81713 | [] | no_license | lxs137/py_house_spider | 197a9f3353bbf640dfae07c14e2ad914d6a4801f | 9a39aa78628c7ffb39647d301e94f6a2d4bbbd17 | refs/heads/master | 2021-01-11T15:37:24.984631 | 2017-12-22T01:13:46 | 2017-12-22T01:13:46 | 79,902,824 | 4 | 2 | null | 2017-07-24T05:18:36 | 2017-01-24T10:50:30 | Python | UTF-8 | Python | false | false | 1,411 | py | from scrapy.utils.reqser import request_from_dict, request_to_dict
import pickle
from redis import Redis
class RedisRequestQueue(object):
def __init__(self, server, spider, queue_key):
self.server = server
self.spider = spider
self.key = queue_key
def _decode_request(self, request_da... | [
"lxs137@hotmail.com"
] | lxs137@hotmail.com |
f5534aa8a51ae46e08d79ac732c13842a87749aa | 0653d222b1679fd3d3616c6f6f34804f465d2b56 | /tests/test_ls_algo.py | fb6f4e3b3cd4d2839a809556b88162ceb38d5033 | [] | no_license | DaddyTrap/SocketRouter | e310b6798184f75a24fbd9c59767b4ad9e7a4f69 | d0b2ad314e2b485eba752f0809267c991f4c9432 | refs/heads/master | 2021-09-01T18:40:40.043678 | 2017-12-28T08:33:35 | 2017-12-28T08:33:35 | 112,981,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | import route_node.route_node as route_node
forward_table = {}
topo = {
1: {
1: 0,
3: 20,
4: 10
},
3: {
1: 20,
4: 5,
5: 5
},
4: {
1: 10,
3: 5,
5: 5
},
5: {
3: 5,
4: 5
}
}
ret... | [
"914670787@qq.com"
] | 914670787@qq.com |
2f9655fa112df5ca5906905afbc0c4fbf062d7d9 | 51d0377511a5da902033fb9d80184db0e096fe2c | /05-importing-data-in-python-1/2-importing-data-from-other-files-types/04-customizing-your-spreadsheet-import.py | d70b70184020466e1f5cc0e4109a2a15e2713f58 | [] | no_license | sashakrasnov/datacamp | c28c6bda178163337baed646220b2f7dcc36047d | 759f4cec297883907e21118f24a3449d84c80761 | refs/heads/master | 2021-12-07T02:54:51.190672 | 2021-09-17T21:05:29 | 2021-09-17T21:05:29 | 157,093,632 | 6 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,619 | py | '''
Customizing your spreadsheet import
Here, you'll parse your spreadsheets and use additional arguments to skip rows, rename columns and select only particular columns.
The spreadsheet 'battledeath.xlsx' is already loaded as xl.
As before, you'll use the method parse(). This time, however, you'll add the additiona... | [
"a@skrasnov.com"
] | a@skrasnov.com |
2078df2066e4dc94d84e50fde4a6a7c9bae43fd2 | 82b728e805d887102c0b8c415731b353877690cd | /samples/generated_samples/aiplatform_generated_aiplatform_v1_metadata_service_purge_artifacts_async.py | be1cc40f02347804f3d7ccef30143cd4d9744042 | [
"Apache-2.0"
] | permissive | geraint0923/python-aiplatform | 90c7742c9bdbde05b9688b117e8e59c0406d6f85 | 7ab05d5e127636d96365b7ea408974ccd6c2f0fe | refs/heads/main | 2023-08-24T05:30:38.519239 | 2021-10-27T20:38:25 | 2021-10-27T20:38:25 | 370,803,114 | 0 | 0 | Apache-2.0 | 2021-05-25T19:15:47 | 2021-05-25T19:15:46 | null | UTF-8 | Python | false | false | 1,725 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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... | [
"noreply@github.com"
] | geraint0923.noreply@github.com |
caa7b6c37ddc4abe6bd02420da52258d8a58eddd | 1f1a1e9b595cbd1dfcba4435658eab3bbbcbda82 | /core/settings.py | 187d7ce051ffb03d1dc011156722ff499b82deea | [] | no_license | Juju-And/twitter | b910f222e965f342d173bb7c163f6ab469473edc | 325530bf0dd35c799ff945930bdfb32f4e03429c | refs/heads/master | 2020-09-15T23:03:16.400640 | 2019-11-23T17:01:28 | 2019-11-23T17:01:28 | 223,578,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,174 | py | """
Django settings for core project.
Generated by 'django-admin startproject' using Django 2.2.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# Bu... | [
"justyna.andrejczuk@gmail.com"
] | justyna.andrejczuk@gmail.com |
ae6a7f58779bac67a6b31a8b4e812919d06641ee | 2ec6862beae3dc2f788ca66cce15ef8a6d2c9c3c | /preproc.py | d0064f9cf4b99462ad5a55d8abd9a740e5bfa098 | [] | no_license | jpmcd/vowpal-wabbit-works | 8fa5eca43dab874d24b4f6384b39a7b1d6512763 | e87122588b3ac34cd122092c252d3dee4327cecd | refs/heads/master | 2021-01-24T20:41:50.650928 | 2016-02-03T17:35:35 | 2016-02-03T17:35:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | import re
import sys
import random
p = float(sys.argv[1])
if p < 0 or p > 1:
print "input valid p, 0<=p<=1"
exit()
w_bool = bool(sys.argv[2] and sys.argv[3])
if w_bool:
w_pos = float(sys.argv[2])
w_neg = float(sys.argv[3])
else:
w_pos = 1.
w_neg = 1.
train = open("train.dat","w")
test = open... | [
"josephpmcdonald@gmail.com"
] | josephpmcdonald@gmail.com |
af695ef76b65ad605049e07f2f5afdc8137d801f | 93ba1198906bf36edfc5e62c28e11bb4db754186 | /venv/bin/easy_install-3.7 | bb3f99e47a67d63abbcd1e6a46b5b04a73747619 | [] | no_license | ccc-team44/tweet-analysis | 5e44d146fccd82c9d844ed1bc91e9ce3bbdb39e2 | 7724b27c3fdb7167978cf1257d68a605dd7ead1d | refs/heads/master | 2022-10-04T03:18:32.311770 | 2020-06-11T08:56:11 | 2020-06-11T08:56:11 | 264,067,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | 7 | #!/Users/xinweiding/tweet-analysis/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '... | [
"xind1cl@gmail.com"
] | xind1cl@gmail.com |
b26ea98bc20a0e8e0521ec75161d78c8d31340d3 | bbf02a2dfa11a8abb0ac8602a85b669a839c06cb | /caladonis/workouts/models.py | 6380fb6f05bff21049651f358fa99aece348ea28 | [] | no_license | perezal/api.caladonis.com | 7e48af60607c45cae125e17e36ba7f560ad25e1e | dce3e67d2a197980a82044cda3bdb19c03075192 | refs/heads/master | 2020-03-15T02:00:18.505023 | 2018-05-17T01:18:46 | 2018-05-17T01:18:46 | 131,907,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 648 | py | from django.db import models
from django.contrib.auth.models import User
class Workout(models.Model):
account = models.ForeignKey(User, on_delete=models.CASCADE)
date = models.DateTimeField('workout date', auto_now_add=True)
notes = models.TextField(default='')
class Exercise(models.Model):
workout... | [
"redflare@gmail.com"
] | redflare@gmail.com |
2e84d8d5c0b440ec8f046db0a63b3cb5a11f5f7c | 77945f2e1e3cfd2920ef3b71fa626d23d643c4f2 | /code3/hidden.py | 8c2d0b37e8f10e3b0f264c3b744da12e774ba69b | [] | no_license | justingfoster/p4e | 9226cf5a6972a0a2520c5696abef5cdc37a964a0 | fdcb9db475498e24b7ef77b07c1a3c1688b87bb2 | refs/heads/master | 2021-01-01T15:32:53.733498 | 2017-09-19T16:02:18 | 2017-09-19T16:02:18 | 97,640,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | # Keep this file separate
# https://apps.twitter.com/
# Create new App and get the four strings
def oauth():
return {"consumer_key": "teFVNZ4kMr76wwb0q1D4AMTUZ",
"consumer_secret": "73RazktJRaJjlAPyOerMLGA47J1c83ZVYMWiQ76BMA1HyVhdjU",
"token_key": "892077162475421697-5rSinUKpLHPcmJkfgGtUcp... | [
"justingfoster@hotmail.com"
] | justingfoster@hotmail.com |
6ca562dbf7053d70020705006ef520d4ed60caf0 | 1a75bf92c35eb51b0181862102afcf819a71ab23 | /ig_review/tasks/__init__.py | ee1f7acabcbfb231dec485875da3f034142faabc | [] | no_license | Skinner927/ig-review | 867202b3e039dc9529930f0844be37103bb29ddb | 192b4f07e76682771dd9fbdac83d6b42ebaf9011 | refs/heads/master | 2021-04-03T01:37:53.714115 | 2018-03-13T00:11:18 | 2018-03-13T00:11:18 | 124,973,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,574 | py | """
Run as:
celery worker -A ig_review.tasks -B
And debugging:
celery worker -A ig_review.tasks --loglevel=info -E -B
"""
# Ensure to use absolute module reference or celery worker may not work
from celery.signals import beat_init
from email.message import EmailMessage
from ig_review import factory
from ig_revi... | [
"skinner927@gmail.com"
] | skinner927@gmail.com |
bf6070165ba4c074e3b6f0ade42f7ef065fcf59b | 57c5ce8c1bfafee2ea53347052f26d018a77c795 | /alien.py | 8698021bef75eb6543ebe0ffb9598ecfd025f069 | [] | no_license | core571/alien_invasion | 24216c5a0ec19b32a4a266649ac4c9d59eab004e | 6aeccbc4d472a48a3d8649d855e4a39fede5eb2e | refs/heads/master | 2020-03-19T09:01:32.888150 | 2018-06-07T02:38:17 | 2018-06-07T02:38:17 | 136,254,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,291 | py | import pygame
from pygame.sprite import Sprite
class Alien(Sprite):
"""表示单个外星人的类"""
def __init__(self, ai_settings, screen):
"""初始化外星人并设置其起始位置"""
super(Alien, self).__init__()
self.screen = screen
self.ai_settings = ai_settings
# 加载外星人图像,并设置其rect属性
self.image = p... | [
"wqr571@outlook.com"
] | wqr571@outlook.com |
3e3460ed023a46892882b4db2f912938a5a5f08b | 16bf89ec6848c78f4aad3e87b5e386bb86f92815 | /Mypython-code-master/badasechota.py | 0991fe952c0eaea211b90fa276f746abd7462462 | [] | no_license | 95ankitmishra/Program-data_structure | bae865e72800ade5ed99feb516015820ac876805 | fc2e9a09c5e382a718b44d9e1ee03cad3442f2f7 | refs/heads/master | 2020-06-17T22:18:02.785493 | 2019-07-09T21:00:53 | 2019-07-09T21:00:53 | 196,077,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | arr=[int(x) for x in input("enter elements").split(',')]
arr.sort()
arr.reverse()
print("bada se chota",arr)
| [
"noreply@github.com"
] | 95ankitmishra.noreply@github.com |
96a7799af3063690f59693c3545834464fa5aaaf | 77178627b46d5b0440d64af70b88bdb91f5269ab | /blog/models.py | 8872bbb7a55fa2a08875969e0b06b12647a011f3 | [] | no_license | daredavil01/blog-fastapi | a9f40835fdc9b42151fa049c0aab3f1a62e810da | 4153a150c4380537d00f747b2445f4e183c34cb4 | refs/heads/main | 2023-06-26T07:24:12.830961 | 2021-07-31T14:50:24 | 2021-07-31T14:50:24 | 391,384,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | from sqlalchemy import Column, Integer, String, ForeignKey
from blog.database import Base
from sqlalchemy.orm import relationship
class Blog(Base):
__tablename__ = 'blogs'
id = Column(Integer, primary_key=True, index=True)
title = Column(String)
body = Column(String)
user_id = Column(Integer, For... | [
"sanket.tambare01@gmail.com"
] | sanket.tambare01@gmail.com |
3ea536a721bb17fa0229848067424923e14c558e | 4e30d990963870478ed248567e432795f519e1cc | /tests/models/validators/v3_1_patch_1/jsd_c0984cde5e925c209ab87472ab905476.py | c86e4452c3079233469acbb06dd25ed2dec223d4 | [
"MIT"
] | permissive | CiscoISE/ciscoisesdk | 84074a57bf1042a735e3fc6eb7876555150d2b51 | f468c54998ec1ad85435ea28988922f0573bfee8 | refs/heads/main | 2023-09-04T23:56:32.232035 | 2023-08-25T17:31:49 | 2023-08-25T17:31:49 | 365,359,531 | 48 | 9 | MIT | 2023-08-25T17:31:51 | 2021-05-07T21:43:52 | Python | UTF-8 | Python | false | false | 8,186 | py | # -*- coding: utf-8 -*-
"""Identity Services Engine getNetworkAccessConditionsForPolicySets data model.
Copyright (c) 2021 Cisco and/or its affiliates.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Soft... | [
"bvargas@altus.cr"
] | bvargas@altus.cr |
e1b200a25da813398431400b47064af2a8e368d4 | 8e69eee9b474587925e22413717eb82e4b024360 | /v2.5.7/toontown/parties/CalendarGuiMonth.py | 1fb599e6de7003a2926a7423453b5db44280d3e1 | [
"MIT"
] | permissive | TTOFFLINE-LEAK/ttoffline | afaef613c36dc3b70514ccee7030ba73c3b5045b | bb0e91704a755d34983e94288d50288e46b68380 | refs/heads/master | 2020-06-12T15:41:59.411795 | 2020-04-17T08:22:55 | 2020-04-17T08:22:55 | 194,348,185 | 5 | 4 | null | null | null | null | UTF-8 | Python | false | false | 13,713 | py | import calendar
from datetime import timedelta, datetime
from panda3d.core import Vec4, TextNode
from direct.gui.DirectGui import DirectFrame, DirectLabel, DirectButton, DirectScrolledList, DGG
from toontown.toonbase import TTLocalizer
from toontown.toonbase import ToontownGlobals
from toontown.parties.CalendarGuiDay i... | [
"s0mberdemise@protonmail.com"
] | s0mberdemise@protonmail.com |
dd946e558805e70e2ba90c922d602e5869cd007a | 7c0dd68e474c345d022b9d879a31cc82e0b438cf | /openssl_heartbleed.py | 75e7fc2cafa0424e450d6970247f51e9629ac53e | [] | no_license | liyanghack/- | 8de6e2be931faea680b9c1f8e35a2a0c8cd5bc3a | 9abab66543e19a4b444a79f2ee790b1eafaacc01 | refs/heads/master | 2021-02-22T04:40:08.921551 | 2020-03-13T11:10:13 | 2020-03-13T11:10:13 | 245,369,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,072 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from pocsuite.api.poc import Output, POCBase
from pocsuite.api.poc import register
from pocsuite.thirdparty.guanxing import parse_ip_port
import struct
import socket
import time
import select
socket.setdefaulttimeout(5)
def request2bin(x):
return x.replace(' ', '').repl... | [
"noreply@github.com"
] | liyanghack.noreply@github.com |
2138e45b6ad500c213d7da873af0a2b31989b382 | eb3395ce39347c6a19821ff9ab224b288f8e83fb | /ndm/model_cnn12_bn_att_a_w2targs.py | 1d7eb52ddb18d34dd3b8b8a9f23e835fb5172ebc | [
"Apache-2.0"
] | permissive | oplatek/ndm | 86e06ac9dc62ff45f5c3ad35b6892d23650f614d | d32bd9d685902d9da52b7e7abd286fb5d9c7274a | refs/heads/master | 2021-07-11T02:22:16.570947 | 2016-02-18T11:21:03 | 2016-02-18T11:21:03 | 52,531,623 | 0 | 0 | null | 2016-02-25T14:35:47 | 2016-02-25T14:35:47 | null | UTF-8 | Python | false | false | 14,624 | py | #!/usr/bin/env python3
import sys
import tensorflow as tf
from model import ModelW2T, ModelW2TArgs
from tfx.bricks import embedding, dense_to_one_hot, linear, conv2d, multicolumn_embedding, \
glorot_mul, reduce_max, dropout, conv2d_bn, batch_norm_lin, pow_1, softmax_2d
class Model(ModelW2TArgs):
def __init_... | [
"filip.juricicek@gmail.com"
] | filip.juricicek@gmail.com |
6b94ccf36b537b20b948dc0a0e5c41ed19240a20 | b7a9307465e4107356a9bc518a5b6eea6491ffab | /Model_Training/Manual_model/vgg_labels.py | 5268dfb8bf8c2ca81ff307a268a255abe5e28a9e | [] | no_license | Tunoc/pythonexam | b2378835b5bcbbf1f892b6838cfc0cc856bcb7b1 | d7a28874edfaa23396ddfdbd77bce9c7fcfa240f | refs/heads/main | 2023-02-04T05:12:52.697491 | 2020-12-27T19:27:06 | 2020-12-27T19:27:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,578 | py | translate = {
0: 'tench, Tinca tinca',
1: 'goldfish, Carassius auratus',
2: 'great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias',
3: 'tiger shark, Galeocerdo cuvieri',
4: 'hammerhead, hammerhead shark',
5: 'electric ray, crampfish, numbfish, torpedo',
6: 'stingray',
7: 'cock',
... | [
"46166076+Tunoc@users.noreply.github.com"
] | 46166076+Tunoc@users.noreply.github.com |
b1da81e45980e885470ba6b0e3d6abd5ee4b893f | 950eb2c41a9835c1fe0daffd8856039b2535072f | /index/migrations/0001_initial.py | 9b198c2122bf3b192b5f306be1632ded398ccd96 | [] | no_license | shazolKh/bloodbank | 21f701e77c812b007eac6dea3e3520cf5a268f54 | 905479c57c68a7e872fac05ce0f5514ec01b02d6 | refs/heads/master | 2023-06-04T14:22:36.849281 | 2021-06-19T08:19:20 | 2021-06-19T08:19:20 | 331,898,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | # Generated by Django 3.1.1 on 2021-02-22 17:22
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... | [
"shazol.kh@gmail.com"
] | shazol.kh@gmail.com |
80c4f2efe33abda42f37afbea34d12a29ba0f188 | b7a13f1c9e02bacb621febcf63f4245b24e2f6df | /tomopy/recon/algorithm.py | c48ac3f6a0e224df688857cc577e951a91f56184 | [] | no_license | AaronBM/tomopy | 551b94ebf69f546028fb49aaa5d70068cf608c24 | bca22f8b0b2c9002d3e4fdeeeb99631d40bd085d | refs/heads/master | 2021-01-21T03:02:51.190014 | 2015-05-19T17:22:58 | 2015-05-19T17:22:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,893 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# #########################################################################
# Copyright (c) 2015, UChicago Argonne, LLC. All rights reserved. #
# #
# Copyright 2015. UChicago Argonne, LLC. This... | [
"sparsedata@gmail.com"
] | sparsedata@gmail.com |
38034b21d34d73cf790818852942f4790e553aa7 | 1c5a8cf45bbba1a50ba5110090e0de7cd70a5677 | /python/old/seq_lengths2.py | a522847e4c4b17cb19885e908fe2b6c05c2062d9 | [] | no_license | bradleycolquitt/umi | d6e45f365c9ce4c2fc694b8d3c7418807ae59a38 | f9e94974a20872ee373cd5dd91aaf951d90dc295 | refs/heads/master | 2021-05-16T02:44:51.127160 | 2017-07-25T17:25:48 | 2017-07-25T17:25:48 | 26,970,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | #! /usr/bin/env python
import sys
import gzip
import time
def main(argv):
file = gzip.open(argv[1])
total_seq = 0
lineno = 0
start = time.time()
for l in file:
if lineno % 4 == 1:
total_seq += len(l)
lineno += 1
print "Time elapsed: " + str(time.time() - start)
... | [
"bradley.colquitt@gmail.com"
] | bradley.colquitt@gmail.com |
7fa32bc0bce678ad3b24a49bff6158fcd8c850f8 | 98895acc9f12800ce7fc0d9e552d455db3489cd1 | /lab3/ml_chunker_v2.py | 4d7d410e5d05d3d883a88ee1bc854825fcb87386 | [] | no_license | Ga22be/EDAN20 | 7a559595c3509648d752ba092b23b03790cc2a49 | 151ed285bc16de3e994a1012cfa7d60082d8b571 | refs/heads/master | 2020-07-23T10:10:52.854906 | 2019-10-15T09:48:11 | 2019-10-15T09:48:11 | 207,524,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,272 | py | """
Machine learning chunker for CoNLL 2000
"""
__author__ = "Pierre Nugues"
import time
import conll_reader
from sklearn.feature_extraction import DictVectorizer
from sklearn import svm
from sklearn import linear_model
from sklearn import metrics
from sklearn import tree
from sklearn.naive_bayes import GaussianNB
fro... | [
"ga22be@live.se"
] | ga22be@live.se |
4b2d79da2c70a69a5b40dc5768cc07a4be93ee7a | 6e17016e71e6a09bf44a4286b12383bd829ed02c | /base-semi.py | 2bcbfea1807fc61800257d959f55964da4581ab6 | [] | no_license | kazuyaYX/classification | 0292c8e27844819875e4190a44d7b8f463b0de54 | d7e54cad0bd307eb32937ced9c7a392a447dfcf3 | refs/heads/master | 2021-08-06T16:15:50.499733 | 2017-11-06T12:39:31 | 2017-11-06T12:39:31 | 105,126,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,346 | py | from sklearn.datasets import fetch_20newsgroups
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfTransformer
from sklearn.naive_bayes import MultinomialNB
from sklearn import metrics
from sklearn.ensemble import GradientBoostingClassifier
import sklearn.svm as... | [
"554810625@qq.com"
] | 554810625@qq.com |
11d31b02a955790e7ccfb3503a14a6da2560814e | cfb268f6090b55b5c51c7aadba3661790c0383ac | /setup.py | 26a4b33b9156f0ee10476b427cfa07a8a1dbb816 | [
"MIT"
] | permissive | theY4Kman/neoalchemy | 1ceef03cc17815660d66bfa678f59f149923417c | 66bf711502247a8464fd15e4256cf596c7c63de0 | refs/heads/master | 2016-09-06T16:14:48.406968 | 2014-12-03T22:55:03 | 2014-12-03T22:55:03 | 26,565,319 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,220 | py | import os
from setuptools import setup, find_packages
current_directory = os.path.dirname(__file__)
with open(os.path.join(current_directory, 'requirements.txt')) as fp:
install_requires = fp.readlines()
with open(os.path.join(current_directory, 'test-requirements.txt')) as fp:
tests_require = fp.readlines()... | [
"they4kman@gmail.com"
] | they4kman@gmail.com |
75cc5a62e19034865c2d1b75f42907f97aa06dc8 | c6c4c066b5c095c1fb9c4888eec34701edabc5a9 | /CycleGAN/cyclegan_train.py | b3b608f91b4010541775471786b84cfaf1ba9c70 | [
"MIT"
] | permissive | Sunshine352/Awesome-GANs | c24b0ae0de13e113423c8b8906e6f5076e10ab26 | 1f6e4a7d9c6a9d4e05ea142592fee2c700542009 | refs/heads/master | 2020-03-20T00:54:15.609319 | 2018-06-03T07:29:03 | 2018-06-03T07:29:03 | 137,060,041 | 1 | 0 | null | 2018-06-12T11:07:51 | 2018-06-12T11:07:51 | null | UTF-8 | Python | false | false | 6,979 | py | from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
import tensorflow as tf
import numpy as np
import sys
import time
import cyclegan_model as cyclegan
sys.path.append('../')
import image_utils as iu
from datasets import Pix2PixDataSet as DataSet
results =... | [
"kozistr@gmail.com"
] | kozistr@gmail.com |
7ad2d903281abb04ba6f20108a4630a5b564596b | 3641fd4b6e160be9da77b000935ddee5247fc601 | /drf_spectacular/settings.py | 2a35cc632b6470e489771e150c16eb2d78baeda8 | [
"BSD-3-Clause"
] | permissive | tiago-peres/drf-spectacular | 02f404380bad0d63e7a47ddcd43cdb5d93a97ba3 | 244be7a61b8f5e96f05797f1e73fb651b4e6b6a0 | refs/heads/master | 2023-01-06T17:22:08.860293 | 2020-10-29T19:42:25 | 2020-10-29T19:45:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,754 | py | from typing import Any, Dict
from django.conf import settings
from rest_framework.settings import APISettings
SPECTACULAR_DEFAULTS: Dict[str, Any] = {
# path prefix is used for tagging the discovered operations.
# use '/api/v[0-9]' for tagging apis like '/api/v1/albums' with ['albums']
'SCHEMA_PATH_PREFIX... | [
"13507857+tfranzel@users.noreply.github.com"
] | 13507857+tfranzel@users.noreply.github.com |
7221754c6507e44f0dce9224f846bc2bc2c1a474 | 217ee146317a3211622754fad14a67d9a1236dee | /modules/sites/__init__.py | 69c26c39bf2b869e968f14120772d36080712b0c | [
"MIT"
] | permissive | Swapnil074/stopstalk-deployment | 45a5e57d278ed38f7e0f528ad751813738504439 | ab7b988105c880d7015c9eb0ccaef7acf87de953 | refs/heads/master | 2022-07-20T16:24:04.690019 | 2020-05-13T05:11:45 | 2020-05-13T05:11:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,272 | py | """
Copyright (c) 2015-2020 Raj Patel(raj454raj@gmail.com), StopStalk
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
... | [
"raj454raj@gmail.com"
] | raj454raj@gmail.com |
24f7c3e99c2b67bfcbb4983009e5367253732ee5 | deaa2ad0981659542b7518227eaa9b716545e3cc | /backend/authentication/permission.py | 78c45835d020c58dce97c61b35e1b992f4dbac9f | [] | no_license | crabfishxy/SE-TSS | aec9d12eee82f06843f4f7501535ae5b9fd74f83 | b5b0584b2332bbbd8f0e283f3b8a83cde916e9c9 | refs/heads/master | 2020-03-19T07:49:28.221760 | 2018-06-03T13:24:33 | 2018-06-03T13:24:33 | 136,151,755 | 0 | 0 | null | 2018-06-05T09:15:49 | 2018-06-05T09:15:49 | null | UTF-8 | Python | false | false | 3,331 | py | from rest_framework import permissions
class RegisterCheck(permissions.BasePermission):
def has_permission(self, request, view):
type = request.user.user_type
if not type == 4:
return False
else:
return True
class StudentCheck(permissions.BasePermission):
def ... | [
"690764871@qq.com"
] | 690764871@qq.com |
260de58bcf5629fc47a52af9d530ff5e2524f762 | e7805d33d8f98a4c514373ac98db219e50df750e | /main.py | 6915091de896a3e90aaa467f440c7ac7d05e6d16 | [] | no_license | MadmanSilver/my-first-neural-net | 5265a3cabc9207509a7de5c76004ae2287303889 | 76cf1093bc0545aaf52b8b29f81828ea6092b350 | refs/heads/main | 2023-02-23T17:42:41.391353 | 2021-01-24T05:41:49 | 2021-01-24T05:41:49 | 311,505,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | from perset import PerSet
from random import uniform
filename = "training.txt"
max_words = 0
max_letters = 0
for line in open(filename, "r").read().split('\n'):
if len(line.split('/')[0].split()) > max_words:
max_words = len(line.split('/')[0].split())
for word in line.split('/')[0].split():
i... | [
"silverwolf4350@gmail.com"
] | silverwolf4350@gmail.com |
5a77f9bef1584293472acf02c7fa99e2e71c0e81 | 5e9ee05dce9287279223242a65f005a24db5e323 | /count-lines.py | d63c45cf4e6776f0b7c386c123ed7ff30e2777fe | [] | no_license | LeslieMooyaart/patients-analysis | 205e4ffe4284456451a1dac10f07da640c616d68 | b726f1cd8baf31b2fc2b8f2a29a98b7cf566dad4 | refs/heads/master | 2023-06-02T19:38:24.201862 | 2021-06-22T14:20:38 | 2021-06-22T14:20:38 | 379,275,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | import sys
"""Adding documentation locally
Adding documentation remotely"""
count = 0
for line in sys.stdin:
count += 1
print(count, 'lines in standard input')
| [
"l.f.mooyaart@tudelft.nl"
] | l.f.mooyaart@tudelft.nl |
dee0dd4897a3885c08bea8fc4eee4f83b31eee8e | 4373488e0a2a34734fc6f6ffc7729e353c25fdfa | /exception_example.py | c8c84f10f12115c0d8ac3fae1e3a5599656d3436 | [] | no_license | dmc200/Python-Projects | 9a141b28004c913f7ec3714cbbdb7a9ed8952922 | bcba096183d56fcbcc6f5869bd6ac32b87ce3720 | refs/heads/master | 2021-06-17T10:05:05.711876 | 2019-10-25T18:19:46 | 2019-10-25T18:19:46 | 202,403,008 | 0 | 0 | null | 2021-06-10T22:09:39 | 2019-08-14T18:16:34 | Jupyter Notebook | UTF-8 | Python | false | false | 855 | py | '''
def div42by(divideBy):
return 42 /divideBy
try:
print(div42by(1))
print(div42by(1))
print(div42by(0))
print(div42by(1))
except ZeroDivisionError:
print("You have tried to divide by 0")
finally:
print("This is finally done")
'''
play = True
while play:
print("How many cats d... | [
"dean.chirieleison@outlook.com"
] | dean.chirieleison@outlook.com |
2c0dbf6acab109eb25c2d20033d8b05a692120fd | bd4955a474ec94f1d240641a303916f25e149333 | /new/csvproject/csvproject/asgi.py | 04124c3447788b1601a3e56798f390b794e260df | [] | no_license | pranavsharma707/csvproject | 8d8de7c84fef211f99d06fffc65d5b59cdae164e | bc22cfcade2acba690328e185f545dc64045dce7 | refs/heads/master | 2023-07-14T14:31:59.607320 | 2021-08-25T13:19:58 | 2021-08-25T13:19:58 | 399,701,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
ASGI config for csvproject project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SE... | [
"pranavsharma.bluethink@gmail.com"
] | pranavsharma.bluethink@gmail.com |
8ba930f1c714f0c44e85c4caa833e69602d2cab8 | e993298ef337133c1c2997812904fca12fd91fde | /blue_garden/usr_login/usersdict.py | 51ea982d126b5a422f506b697e888107b9ac683f | [] | no_license | jloc8749/info9117 | 54cbf91b8afe2f03cf8283dfe16a27cec86552c4 | b256eec143c38489b6ca0587eacb11cbfa8f97d4 | refs/heads/master | 2021-01-10T09:50:31.239944 | 2016-04-13T05:36:39 | 2016-04-13T05:36:39 | 52,838,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | #make dict of users
testuser = 'jlock'
testpass = 'jlock'
usr_dict = {}
def usrdict():
with open('users','r') as u:
for each in u:
usrname, usrpass = each.split()
usr_dict[usrname] = usrpass
#return usrdict
def authuser(nombre,llave):
usrdict()
if nombre in usr_... | [
"jloc8749@uni.syd.edu.au"
] | jloc8749@uni.syd.edu.au |
924887382913b82d8d2d05d43ee875974db1d057 | cbac621ad77787ebe9bda49976dab711e3169362 | /commercia/products/management/commands/remove_categories.py | db4ef8ef9ada36c1898e271a41801c13cf5dca57 | [] | no_license | commoncode/economica | 08292f28048281ee986ce4419c7d0af54ccad1db | 3de2415d7f0e0e81cc6ac7a054839daeb1ba6748 | refs/heads/master | 2016-09-05T12:49:21.107938 | 2014-08-04T04:50:43 | 2014-08-04T04:50:43 | 9,742,821 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | from django.core.management.base import BaseCommand
from ...models import Category
class Command(BaseCommand):
help = 'Clean up Menus'
def handle(self, *args, **options):
Category.objects.all().delete()
| [
"dboy.y3k@gmail.com"
] | dboy.y3k@gmail.com |
59b2814b3a0dbeb677cab11c92ad4e0fcb9478f3 | 46ef1b8df9551c02c273ed39bd057daadca0e1fe | /parts/wrapper/zope/component/event.py | 12abd1cfcc204ce689d7c2d5f7876ddf40d08551 | [] | no_license | topiaruss/bfg-gae-logger | 18f5a25168656afcabe1c89a9c7e0e25aa060c56 | f2944f2c009007efd0fd09426111e4dfdab30098 | refs/heads/master | 2021-01-20T04:40:05.194810 | 2010-05-26T20:31:02 | 2010-05-26T20:31:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | /Users/russ/.common/sh/.buildout/eggs/zope.component-3.9.4-py2.5.egg/zope/component/event.py | [
"russf@topia.com"
] | russf@topia.com |
4b89f7e8772827e23a6837fea948a8864f3ca14e | 57d07cbe26827e3610f14294d00db60e62deb0c6 | /BJ/sort/수정렬하기2/mergeSort.py | 484275d7dfbccd645d12398be2b009577d9faba5 | [] | no_license | wseungjin/AlgorithmCoding | 98083f5b87db17bf4449c1ca23216dfa5fd66f73 | 00dc9a76ef1a890ddf185d1b7feecc71b2c95296 | refs/heads/master | 2021-06-22T04:02:30.390820 | 2021-04-12T15:00:16 | 2021-04-12T15:00:16 | 209,197,457 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,014 | py | # f = open("input.txt", 'r')
# line = f.readline()
line = input()
num = int(line)
array = []
for i in range(num):
# line = f.readline()
line = input()
array.append(int(line))
def mergeSort(list):
if(len(list)<=1):
return list
mid = len(list)//2
leftList = list[0:mid]
rightList = ... | [
"bose1021@naver.com"
] | bose1021@naver.com |
c8b5729bd9c20925ad5ceacf9485ae56d25d8550 | 6dd6ff94464d53d5d65e36e86ece49f2902bc85f | /coupons/views.py | 813aea7b230f7875ec1c3d88983abe228e08736a | [] | no_license | onealwills/myshop | 6914981ba9de60316f9196ebf4a25ada87e81864 | 248a575072a8e9d5553d507b6a80f798e3bb8f39 | refs/heads/main | 2023-07-06T02:01:59.233570 | 2021-08-13T08:52:54 | 2021-08-13T08:52:54 | 394,821,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | from django.shortcuts import render, redirect
from django.utils import timezone
from django.views.decorators.http import require_POST
from .models import Coupon
from .forms import CouponApplyForm
# Create your views here.
@require_POST
def coupon_apply(request):
now = timezone.now()
form = CouponApplyForm(re... | [
"oneal.wills@gmail.com"
] | oneal.wills@gmail.com |
afa0407ed6f5d1af4d9575f2a95b7ab3e70e86b9 | 72e8d6fea71e523cee9aee585b7b52fccf36d4b5 | /PythonExercicios/ex002.py | e01d06a9d6386ce09830cc06f9c987ff9fd5cb32 | [] | no_license | maripaixao/PycharmProjects | e7939857ec995c39b4fb2e85f5075b41614509e8 | 3ecfa9aa6616c3bdcb5f0c029fdda2ea68e55d3c | refs/heads/master | 2023-06-19T00:54:52.420194 | 2021-07-19T21:18:34 | 2021-07-19T21:18:34 | 387,594,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | nome = input("Qual seu nome?")
print("Prazer em te conhecer, {}!".format(nome))
| [
"marinapaixao.25@gmail.com"
] | marinapaixao.25@gmail.com |
f247cedc5f3d6f037b2f74c163e14180b0a056fd | 53909cfcc2b142716021bf8589cccc37c426aa9c | /bin/blogtk2 | 2c2e50e6a98bd225e96d115696f9071700abf738 | [
"Apache-2.0"
] | permissive | Ryuno-Ki/BloGTK3 | 7fba56ed0f6ed36eadadad374cf5e045fd9167e0 | e410f164cb82ff37ca9c0f3ebaf8e57b76139551 | refs/heads/master | 2016-09-06T02:03:56.552113 | 2013-06-07T08:39:52 | 2013-06-07T08:39:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | #!/usr/bin/env python
import sys
from os.path import dirname, join, pardir
sys.path.insert(0, join(dirname(__file__), pardir, 'share',
'blogtk2', 'lib'))
from blogtk2 import main
main()
| [
"AndreJaenisch@googlemail.com"
] | AndreJaenisch@googlemail.com | |
87769f81ff8aa748efc928170fe85552099057a8 | bf1af2969ce4952360c604844b1468e4ebce2fc6 | /tictactoe/runner.py | 35f1777fee7e44cf3be411a245a92b42f55b11e3 | [] | no_license | emreisler/myprojects | 2de7dbda68d6009bd19b640f5ef6ddae06748244 | 2d408cf2919aea4cfd8783b9e5dc2696d9d6b806 | refs/heads/master | 2023-01-05T20:53:53.420342 | 2020-11-04T12:25:54 | 2020-11-04T12:25:54 | 293,348,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,737 | py | import pygame
import sys
import time
import tictactoe as ttt
pygame.init()
size = width, height = 600, 400
# Colors
black = (0, 0, 0)
white = (255, 255, 255)
screen = pygame.display.set_mode(size)
mediumFont = pygame.font.Font("OpenSans-Regular.ttf", 28)
largeFont = pygame.font.Font("OpenSans-Regular.ttf", 40)
mov... | [
"noreply@github.com"
] | emreisler.noreply@github.com |
cb7487342f6f94441614a56b159aa70cef3ba11e | 0ce3dfdc3d2de8cdee8116c97ed7a750e02d9040 | /tests/test_class_auto_wiring.py | 38255c0998e5c149c78ed9cdebb98701eb32bdf5 | [
"MIT"
] | permissive | adriangb/antidote | c1d3d99406f1efce7b0e1f66373db7c00bbe1077 | 97751e0e6a1b8bd638a1c33212345c7a84ad97b8 | refs/heads/master | 2023-09-03T09:58:08.065608 | 2021-11-06T20:56:20 | 2021-11-06T21:48:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,752 | py | import itertools
from typing import Any, Callable, Optional, Tuple, Type, Union
import pytest
from antidote import Constants, Factory, Provide, Service, world, service
from antidote._compatibility.typing import Protocol
from antidote.core import Wiring
class Interface:
pass
class FactoryOutput:
pass
cla... | [
"rabier.benj@gmail.com"
] | rabier.benj@gmail.com |
fc67e11ae0ec8985fac5e9c4474302e3c792647f | 6774b1ed1b40eb4777cddac01a8846fbb9b49d6f | /Stepik/13_function/test.py | e67b3c66824ae1faf9dcc3de4955fa43189baffe | [] | no_license | Surgeon-76/KaPythoshka | b664ed7c8552a01c4c931cbb5842fd9b189f4149 | faf010e58d2d493ab0e91dc7e99540cb65c26a84 | refs/heads/main | 2023-08-28T19:20:21.818633 | 2023-08-09T11:14:51 | 2023-08-09T11:14:51 | 339,171,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | def print_text(text, num):
while num > 0:
print(text, end='')
num -= 1
print_text('Python', 4) | [
"surgeon76@outlook.com"
] | surgeon76@outlook.com |
6b244d907047478f01653ac411361939a79e31a0 | cafb95a9475855c3ddf9d21de24d96d9fbcb4fee | /Wk5 Ex genPrimes.py | e181e94351f60c70da7f1cc3d200f5d15d4c4a81 | [] | no_license | kj0y/edX-MITx-6.00.1x | 3728e95062324092a5fe2d43955e70e0a635a2ba | f31fd8736d9d5adc6b2752777f46a8c57dc48d8b | refs/heads/master | 2020-03-23T02:06:16.182107 | 2018-08-05T23:11:59 | 2018-08-05T23:11:59 | 140,955,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Aug 5 14:29:40 2018
@author: kandi
"""
def genPrimes():
primes = []
numerator = 2
last = numerator
while True:
for denom in primes:
if numerator % denom == 0:
numerator += 1
break
... | [
"noreply@github.com"
] | kj0y.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.