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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fbce3d599059e069660f8427732a950cda10ff90 | 27046ec5d4d644ca099e4e6b3e711a9fe1f210bb | /part_2_train.py | a2197dfa0ad5367098150ab440e595fc0f32affd | [] | no_license | RobertFielding/fraud-pandas-plotly | d5d9405f967fbbef00164aefe7a96912c296ea58 | 2d8eaaa3f7014a9de8e6c7c085b506dcfcb5fab5 | refs/heads/master | 2023-03-25T19:14:12.238219 | 2021-03-14T13:23:31 | 2021-03-14T13:23:31 | 342,892,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,500 | py | import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns
from sklearn.ensemble import RandomForestRegressor
from sklearn.metrics import roc_curve, roc_auc_score
from sklearn.model_selection import train_test_split
import numpy as np
data_filename = 'creditcard.csv'
df = pd.read_csv(data_filename)
tr... | [
"robert.fielding@hotmail.co.uk"
] | robert.fielding@hotmail.co.uk |
59344cfbae1c333672ea43675c4735706ee9ee76 | 3089066acea6edac48ad1fd4a48c958cc7fc8049 | /src/training/mlp.py | 4e80ecedc29891163fe1abcd5cc0095aac2b6eae | [] | no_license | kevinkoste/university-load-forecasting | a527e52e009916fe7d7b230cbc39d379c45b6b0e | 0498a3886582a96f89348498bc412655c7b0bfe2 | refs/heads/main | 2023-08-03T09:24:27.108126 | 2021-01-21T04:04:22 | 2021-01-21T04:04:22 | 171,188,408 | 6 | 2 | null | 2023-07-06T21:27:06 | 2019-02-18T00:21:27 | Python | UTF-8 | Python | false | false | 2,573 | py | import numpy as np
import pandas as pd
from sklearn.preprocessing import MinMaxScaler
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense
def DayAheadMLP(endog, exog, date,
lags=range(1,169),
hoursAhead=38,
epochs=200,
... | [
"kevin.koste@yale.edu"
] | kevin.koste@yale.edu |
85ee743b57fa57b5f097d7c44528ca83bfbafbc4 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03250/s433353636.py | 15a9e1142e1ac04131cec60d4882b0b4d8b16ff5 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | a=list(map(int,input().split()))
a=sorted(a)
print(a[-1]*10+a[1]+a[0]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e5f6e54c65a454755c25967480e4273cf37e6070 | 50339c2df5be1dc9812c0d986872b877b5904340 | /data_import/liusinuo/sql_time.py | 33332860c879dbef4bceb58475d4d44124bd0773 | [] | no_license | hashuang/managesys | affcbe16ee54f1dd1bfb4a20f73118c071afee51 | 67c9c6a395f61842083ae16bb59410c77ba44d21 | refs/heads/master | 2020-12-25T11:52:33.844031 | 2017-08-02T02:40:24 | 2017-08-02T02:40:24 | 75,186,487 | 0 | 0 | null | 2016-11-30T12:50:14 | 2016-11-30T12:50:14 | null | UTF-8 | Python | false | false | 12,475 | py | '''
2016-10-21
对应 space.py 代码
控制 空间分析 的 sql 语句
'''
from . import mysql
conn_mysql=mysql.MySQL();
import datetime
#=====================【 SQL 语 句 查 询 】==================================
def time_sql(sql_date1,sql_date2,sql_ctry_prov_cty,tradeNo_list,space_name,aspect_name,dateChoose,aspect):
print("\n 时间:",sql_da... | [
"787666673@qq.com"
] | 787666673@qq.com |
e8a8f4d0229e4d340b624c0df984722ccbca9816 | f62e0baeb105997af682c3d22384c99545ccdf15 | /python_projects/love_calculator.py | 45902f9ca7c3f7dc3d3ec4ada80c7fcd1d3b6282 | [] | no_license | Brad-ONeill/Website | 88d85a4299aef79bc0fbc926295703c37d1473e9 | 64e3314b9a1851fdeb705b798573b6c670af8385 | refs/heads/master | 2023-04-29T13:20:38.470382 | 2023-04-18T20:32:25 | 2023-04-18T20:32:25 | 184,084,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | print("Welcome to the Love Calculator!")
name1 = input("What is your name? \n")
name2 = input("What is their name? \n")
combined_string = name1 + name2
names = combined_string.lower()
t = names.count("t")
r = names.count("r")
u = names.count("u")
e = names.count("e")
true = t + r + u + e
l = names.count("l")
o = na... | [
"49478841+Brad-ONeill@users.noreply.github.com"
] | 49478841+Brad-ONeill@users.noreply.github.com |
58950f55ea5a2b7fae6b323bfc181434c02aaaee | 305d25e1d2084761e889057077706b1ba3f9122d | /nmigen_boards/arty_z7.py | ba432b642cc9588c44c7e5037b12b600668f5a6b | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | nicolas-robin/nmigen-boards | d7d8fe29d788f8b1fdcf8da0cf7202a1f0fa741a | 6fc91b491214b80c56b2b2d031da1a50c7254c56 | refs/heads/master | 2020-12-10T15:43:43.358008 | 2020-01-17T21:54:48 | 2020-01-17T21:54:48 | 233,314,458 | 0 | 0 | NOASSERTION | 2020-01-12T00:01:57 | 2020-01-12T00:01:57 | null | UTF-8 | Python | false | false | 5,359 | py | import os
import subprocess
from nmigen.build import *
from nmigen.vendor.xilinx_7series import *
from .resources import *
__all__ = ["ArtyZ720Platform"]
class ArtyZ720Platform(Xilinx7SeriesPlatform):
device = "xc7z020"
package = "clg400"
speed = "1"
default_clk = "clk125"
resour... | [
"whitequark@whitequark.org"
] | whitequark@whitequark.org |
ce3577da94f38a365616e8374df42eec5835d6cf | 48c038e381aa0e276ee08d7bd93479522597b561 | /JiewuOnline/settings.py | 86ee150b1e68be4da612b060ff05ddfbb0e969a8 | [] | no_license | niuniu20160626/JiewuOnline | 263afbbbb98225264e387fd77e4b12d429377101 | 51fa260df654a8e59cf694fc1c8b095b217093a0 | refs/heads/master | 2023-05-04T22:15:41.962693 | 2021-05-30T07:56:44 | 2021-05-30T07:56:44 | 341,800,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,704 | py | """
Django settings for JiewuOnline project.
Generated by 'django-admin startproject' using Django 3.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import o... | [
"1714885031@qq.com"
] | 1714885031@qq.com |
b03da968a1665b5afb8ffa3fc0d43782537fb80b | 8669dde5ed094cc597b2d7e1768cfba94a432d50 | /lib_sarscov2.py | 3a27c1f5bda74eb200cdbbffc90215511b2337f4 | [
"MIT"
] | permissive | Campeanu/COVID-19 | 22bc69a81b24cbed5afe75db715f316fb5f6494e | ee2442b24e30406d57646e6387ca7a970f9cd162 | refs/heads/master | 2021-05-26T22:07:35.435709 | 2020-04-09T09:51:08 | 2020-04-09T09:51:08 | 254,173,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,310 | py | # Asn or Asp / B AAU, AAC; GAU, GAC
# Gln or Glu / Z CAA, CAG; GAA, GAG
# START AUG
translation_table = """Ala / A GCU, GCC, GCA, GCG
Ile / I AUU, AUC, AUA
Arg / R CGU, CGC, CGA, CGG; AGA, AGG
Leu / L CUU, CUC, CUA, CUG; UUA, UUG
Asn / N AAU, AAC
Lys / K AAA, AAG
Asp / D GAU, GAC
Met / M AUG
Phe / F UUU, UUC
Cys / C... | [
"campeanu.it@yahoo.com"
] | campeanu.it@yahoo.com |
c5c7c9fa51eaaec171b3b32e2cb18f6d63866966 | 8a82a83655f118208692e55d7804d9fa480ad4b6 | /book/apress/Beginning.Python.Visualization.Crafting.Visual.Transformation.Scripts/Chapter04/src/read_ini.py | bf4374d1f2c6de9b410eea7d36a061bd6b2c38a7 | [] | no_license | xenron/sandbox-da-python | 0814159da9a91923e4b66c5e40057e381f765e96 | ab8f1c0d57fdc6006355f613012b84165068c315 | refs/heads/master | 2020-04-12T05:41:33.182110 | 2016-12-14T22:57:33 | 2016-12-14T22:57:33 | 60,324,979 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | # read an INI (config) file
import ConfigParser
read_opts=ConfigParser.ConfigParser()
read_opts.read('../data/options.ini')
# print parameters and values
for section in read_opts.sections():
print "[%s]" % section
for param in read_opts.items(section):
print param
| [
"xenron@outlook.com"
] | xenron@outlook.com |
d054580c3aeb4fc7763d77e069fc957b1ef93a28 | 60ea9e854d224a1c0034c8ef85ef2736eb38c1a6 | /bayes/debug.py | 5350506b44683984914efabba23a8959fe3dba42 | [] | no_license | SunnyWiki/PY-bayesian | f926d500d47470e6899620da3cae0668b230efb7 | 5007f40ec7035e9670ec2f8f649d8d3d4f009e6c | refs/heads/master | 2021-01-22T23:48:19.141358 | 2017-03-22T06:58:46 | 2017-03-22T06:58:46 | 85,670,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,164 | py | #-*- coding: UTF-8 -*-
import os
import jieba
import numpy as np
from sklearn.naive_bayes import MultinomialNB
# from sklearn import datasets
# iris = datasets.load_iris()
# from sklearn.naive_bayes import GaussianNB
# gnb = GaussianNB()
# y_pred = gnb.fit(iris.data, iris.target).predict(iris.data)
# print("Number o... | [
"1935508351@qq.com"
] | 1935508351@qq.com |
883d9dc211bbc3f3eed188ffcb37ceb8e89ab2b4 | 60bd2e1cce82fc831f029def9c507e3cde2e2bc5 | /Vezba1/Zadatak8.py | e7ce8940ccffc4bd9c19caada5705e991ea4f42b | [] | no_license | AndjelaStevanovic/GIS_programiranje_domaci | 427b2910b848d1404f31dd050b693f539fca971f | bcff3a6d9df0388a049920ed6f74181580f4fc16 | refs/heads/master | 2021-05-13T11:44:34.004144 | 2018-01-11T18:31:21 | 2018-01-11T18:31:21 | 117,137,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | #Zadatak 8 - Vezba 1
# -*- coding: utf-8 -*-
import random
broj_pogadjanja = 0
print('Zdravo! Kako se zoves?')
ime = raw_input()
broj = random.randint(0, 100)
while broj_pogadjanja < 10:
print('Uneti broj:')
pogadjanje = input()
pogadjanje = int(pogadjanje)
broj_pogadjanja = broj_pogadjanja + 1
if p... | [
"andjelastevanovic@ymail.com"
] | andjelastevanovic@ymail.com |
1c1c810b779e1a8b626c59a69872d8d026f44862 | f153cbfc77cfe4ace1eadf8f1cf4c7d17248c228 | /minified.py | 07ff2f5d7332a922de6ad9c50ee645e5c16ad32b | [] | no_license | aadityarengarajan/POS-System | 1846a84576920bc925da9969fc5e4b074164e330 | dbe43d8496aca42a5a5a2af451eb8ff1c0e3b107 | refs/heads/main | 2023-08-03T08:45:55.439442 | 2021-03-30T19:19:19 | 2021-03-30T19:19:19 | 405,992,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,685 | py | from pickle import dump,load
from random import random
from datetime import datetime as dt
from os import listdir
if "items.dat" not in listdir():
with open("items.dat","wb"):
pass
if "sales.dat" not in listdir():
with open("sales.dat","wb"):
pass
def read_items():
objects = []
with... | [
"aadit.xo@gmail.com"
] | aadit.xo@gmail.com |
983dcd62c2be5d68fa2354efe39fd201726c82be | 469aaddd0e22041e7fc4ec12553258f1d7a2092c | /0x10-python-network_1/5-hbtn_header.py | e29c2e76d7349c26d94f79763ae0be09d51145c1 | [] | no_license | youmnaz/holbertonschool-python | 80dba488d9e62cfcd260e349f3b036299cec4b17 | e6de933f7d5501ea2393729157fd82e776a4a357 | refs/heads/master | 2023-01-13T20:31:59.258910 | 2020-11-20T08:30:09 | 2020-11-20T08:30:09 | 291,691,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | #!/usr/bin/python3
"""
5-hbtn_header.py
"""
import requests
from sys import argv
if __name__ == "__main__":
r = requests.get(argv[1])
print(r.headers.get("X-Request-Id"))
| [
"youmna.zogheib@gmail.com"
] | youmna.zogheib@gmail.com |
5aef6dd981da9ff255c7995ba9489e29d410523f | 034abf3ad29001e01e3c3ca8106647ac9992e5db | /rock-paper-scissor.py | 7880d66590f1442ae8ea694a8021cfe95fe4465a | [] | no_license | gunjeet210/Rock-Paper-Scissors | b1b0c3db0fd6caaf5354924f06f6ce0e35951d86 | a07cbc2eaf6dfd494a8e4d8933bb4023a1914c73 | refs/heads/master | 2021-01-08T15:59:33.132018 | 2020-02-21T07:13:41 | 2020-02-21T07:13:41 | 242,073,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,519 | py | import random, time
print("Let us play RPS game")
while True:
print("Enter choice \n1. Rock\n2. Paper\n3. Scissor")
choice=int(input("User turn: "))
while choice > 3 or choice < 1:
choice=int(input("enter valid input: "))
if choice == 1:
choice_name = "Rock"
elif choice == 2:
... | [
"noreply@github.com"
] | noreply@github.com |
3091099fee02328c00c32ce85434caa6c2918a00 | d2fdd6b10b0467913971d1408a9a4053f0be9ffb | /datahub/investment/project/migrations/0033_add_investment_document_permission.py | 87a514117458d20c8bf84bc4f1155a3ce0c0b8eb | [] | no_license | jakub-kozlowski/data-hub-leeloo | fc5ecebb5e4d885c824fc7c85acad8837fcc5c76 | 7f033fcbcfb2f7c1c0e10bec51620742d3d929df | refs/heads/master | 2020-05-18T13:29:14.145251 | 2019-04-30T12:12:50 | 2019-04-30T12:12:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | # Generated by Django 2.0.1 on 2018-01-09 16:32
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('investment', '0032_investmentproject_comments'),
]
operations = [
migrations.AlterModelOptions(
name='investmentproject',
op... | [
"reupen@users.noreply.github.com"
] | reupen@users.noreply.github.com |
084ccfc5ffcd100f2f98fb3e75c4f6b676d5d3f8 | 09d4c110161520c2ed8bab9f19e2a07f23d66b46 | /wordvector/migrations/0002_auto_20161031_0252.py | 0f0e11ca6dc638d5054b1f4a4c29c7e564bcdd13 | [] | no_license | lunrongchen/SWR | 0565df4d62b4198d9dabcc7de760f78e9ff43c7e | fd5cc45e1351b20f7b09ea1c82ddb3bc14930575 | refs/heads/master | 2021-01-12T14:09:08.125125 | 2016-11-07T16:51:24 | 2016-11-07T16:51:24 | 69,759,201 | 1 | 0 | null | 2016-11-05T17:12:50 | 2016-10-01T19:34:08 | Python | UTF-8 | Python | false | false | 928 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('wordvector', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='WordVectorFile',
fields... | [
"lunrongchen@163.com"
] | lunrongchen@163.com |
b69e51e5659b5d82c82d2fd63ceaef1eb4b4624b | 3da9b0ebd7f4378e1f0a0fe60b943e041d760719 | /simplemooc/courses/migrations/0007_auto_20211026_1450.py | 45d89225d95d2be94b6d1fc008887de946c7efda | [] | no_license | gabriel-valenga/Python3NaWebComDjangoUdemy | b9f5d3f5127eff0247f5a89ff82a04c441dd7332 | 381c0dda61ef7984154686fcd1858b9eb9655a18 | refs/heads/master | 2023-08-21T04:38:52.119456 | 2021-10-28T21:30:05 | 2021-10-28T21:30:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | # Generated by Django 3.2.8 on 2021-10-26 17:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('courses', '0006_remove_course_about'),
]
operations = [
migrations.RemoveField(
model_name='course',
name='descripti... | [
"gabrielvalengalemos@yahoo.com"
] | gabrielvalengalemos@yahoo.com |
8c7c442705664c9f9d05136d7029682ac4793785 | f14e95cb9df97570759699092c171743cc3e00c8 | /keyword_dreamvector.py | 640e1af4adea2f876c3a6dfc69225b8957163131 | [] | no_license | DallasAutumn/ChinaDream | b92b5de62a0973988b9673e120e8dac5bcf6050d | 2d6c6f45290add74d4daf02f2c2f51e9b4d69c92 | refs/heads/master | 2020-06-17T18:51:30.657908 | 2019-05-16T07:54:03 | 2019-05-16T07:54:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79,760 | py | # -*- coding: utf-8 -*-
"""
-------------------------------
Time : 2019-04-09 16:19
Author : diw
Email : di.W@hotmail.com
File : keyword_dreamvector.py
Desc: 构建中国梦向量
-------------------------------
"""
import warnings
import math
warnings.filterwarnings("ignore")
from sklearn.metrics.cluster imp... | [
"di.w@hotmail.com"
] | di.w@hotmail.com |
41399fad248b0a0094d4e199dd1c4adfebedd1a3 | fbfd842136ce51a598801d1db8a383633f6ef65b | /CP/Competetive Programming And DSA/codechef5.py | 0c25e1b5b9fa3b2bd3d58fe41d022c3b5ad4f14c | [] | no_license | jayz25/MiniProjects-And-CP | 6d74fd1b58d10036235520a1d10d928f45d5d542 | 40eb2f0f3449e77e02424fcc8fa80597f2a83bf6 | refs/heads/master | 2023-06-11T03:04:50.348564 | 2021-06-20T18:42:55 | 2021-06-20T18:42:55 | 366,385,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,043 | py | '''
2
8 38
7 8 19 7 8 7 10 20
4 5
2 10 4 9
7
2
'''
def some(N,K,l):
if sum(l)<=(2*K):
return -1
S = K
res = []
for i in range(N):
if l[i]<=S:
S = S - l[i]
count+=1
res.append(i)
if S<=0:
break
for i in res:
del l[i]
... | [
"patiljayesh026@gmail.com"
] | patiljayesh026@gmail.com |
db3596b8480850b3718c2c9d08671fd49db81831 | 0543faeee9f493260e8cbd8a9155a96a8cbb0df2 | /main_app/migrations/0018_profile.py | 9f188815d07ced745fd5193ceebf36edd8813264 | [] | no_license | tanveerahmad1517/Treasuregram | 134853f298628c161ebe741864cdb581ce80db8f | 797e0ff1460eb50d90aa385f6fb25990ed7766fa | refs/heads/master | 2020-03-10T13:58:43.912795 | 2018-04-13T14:32:31 | 2018-04-13T14:32:31 | 129,413,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2018-02-13 13:10
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main_app', '0017_remove_treasure_date'),
]
operations = [
migrations.CreateMo... | [
"tanveerobjects@gmail.com"
] | tanveerobjects@gmail.com |
7a25619ac5eff44c957cd979158b601393eb548e | 725d06cd4ff104efc089e13b9a06ca5b6dd3b342 | /Hangman.py | 2aed0d44dd37d3d0e6fc9781e2bc622ec54ed412 | [] | no_license | prathmeshpatel/hangman-game | 30fd088c143cd617c14a1876fd7d4d6dac402c75 | c0b3692a3c70b69f78cec1a85b62cb53a579694a | refs/heads/master | 2021-04-30T17:39:37.657034 | 2017-01-27T21:36:14 | 2017-01-27T21:36:14 | 80,247,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,029 | py | '''
Created on Oct 16, 2016
@author: Prathmesh Patel
'''
import random
def fileToStringList(filename):
#opens file and returns a list of strings(words)
wordlist = []
f = open(filename)
for line in f:
line = line.strip()
wordlist.append(line)
f.close()
return wo... | [
"noreply@github.com"
] | noreply@github.com |
1998f40d200a554665e76178c4a6f06101755f94 | 74d11e4000d99e43dc4c53c93ac59782ebbe1802 | /portrait/deeplab/model_test.py | c586ccd0ea5c6626ab32562bec21e041fdf8b7cc | [
"Apache-2.0"
] | permissive | hiepgaf/portrait | f450971e8881e9bcd1f386966651a9a01c1d11ce | 930a167cbb368cdc2cf906b06b70c035d87e6938 | refs/heads/master | 2020-03-19T00:14:06.916160 | 2018-05-14T05:57:29 | 2018-05-14T05:57:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 941 | py | """Tests for encoder"""
import numpy as np
import tensorflow as tf
from model import deeplab_v3_plus_model
def create_test_inputs(batch, height, width, channels):
"""Create mock Images """
if None in [batch, height, width, channels]:
return tf.placeholder(tf.float32, (batch, height, width, channels))
else:... | [
"tdat.nguyen93@gmail.com"
] | tdat.nguyen93@gmail.com |
ec16e406e8d72d362730558816a5f89cd01e3f47 | 5127f3db0b6eaf658273925a2b44321d8b4067f3 | /bases/models.py | 4181b6b12ba7886956392284fdae5b5803e9019e | [] | no_license | AlejooRob/SistemcomprasfacturasDjango | bce611417c05e770eda692ca66e8f320ac8cbbc7 | 98053a73b2f063c24676c8bf5632ef75233e20a6 | refs/heads/main | 2023-05-02T00:02:02.308681 | 2021-05-19T15:29:35 | 2021-05-19T15:29:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 903 | py | from django.db import models
from django.contrib.auth.models import User
from django_userforeignkey.models.fields import UserForeignKey
class ClassModel(models.Model):
estado = models.BooleanField(default=True)
fc = models.DateTimeField(auto_now_add=True)
fm = models.DateTimeField(auto_now=True)
uc = ... | [
"alejolink001@gmail.com"
] | alejolink001@gmail.com |
7c819f3f0a6e6339a8d5382922dddc7f7b4c6af1 | ddfb9db447f098485b1c9672de08ca97aeea3501 | /trespalabras.py | fdd484147e5240f7ef22bf291766e47e21cb756f | [] | no_license | AlbertoFido/fido1 | 7a1e9ffc87263ae2ad9cf0491aa94dfe9b299561 | ef5ba4e9eb6456e8612908b049a3e6ec57e4e7f9 | refs/heads/master | 2016-09-01T14:41:36.814675 | 2016-03-17T19:46:02 | 2016-03-17T19:46:02 | 43,089,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | def checkio(words):
cad2=words.split(' ')
contador=0
salida = False
for ele in cad2:
if ele.isalpha():
contador+=1
else:
contador = 0
if contador >= 3:
salida = True
return salida
print checkio("start 5 one two three 7 end")
#True
print checkio("Hello World hello")
#== True, "Hello"
print checkio(... | [
"albertofido92@gmail.com"
] | albertofido92@gmail.com |
c655ec659eb34d34fc137ef60ca4dd3dcf62b5ec | 0f39e47e2538c8469b558fdf14e06781d8b390a3 | /playground/detection/coco/yolof/yolof.res101.C5.1x/config.py | 78088d11fc7eaea988b0ee97f3e5cd6d73fad74c | [
"Apache-2.0",
"MIT"
] | permissive | baodijun/YOLOF | d1bdaee4de22acc0290edc5951943739c1971e88 | 905209bfd58d1ed67908cfa0685de05a89d3fd6c | refs/heads/main | 2023-03-25T05:03:11.998150 | 2021-03-19T15:03:01 | 2021-03-19T15:03:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,790 | py | from cvpods.configs.base_detection_config import BaseDetectionConfig
_config_dict = dict(
MODEL=dict(
# Backbone NAME: "build_resnet_backbone"
RESNETS=dict(DEPTH=101, OUT_FEATURES=["res5"]),
ANCHOR_GENERATOR=dict(
SIZES=[[32, 64, 128, 256, 512]],
ASPECT_RATIOS=[[1.0]... | [
"qiang.chen@nlpr.ia.ac.cn"
] | qiang.chen@nlpr.ia.ac.cn |
37c3ab3420c73bbf6ec48d698d397aa157c521b6 | 4013b4b4e513a6ecccaa88fbda7d8c427a28b481 | /openemory/accounts/migrations/0015_add_data_archive.py | 2a46effd658b541276e18167710b8556882b8b5e | [
"Apache-2.0"
] | permissive | alexBLR/OpenEmory | 1d4922a986c1e872bd9dd2656abb030bdc43d0a7 | d5306c7b60003d7681340786d115c78fc6f34661 | refs/heads/master | 2020-12-25T10:10:13.138691 | 2015-08-12T15:21:54 | 2015-08-12T15:21:54 | 40,536,243 | 0 | 0 | null | 2015-08-11T10:35:44 | 2015-08-11T10:35:44 | null | UTF-8 | Python | false | false | 12,931 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
from django.contrib.flatpages.models import FlatPage, Site
# This a acutally a FlatPage data migration but there was not good place to put it outer than here.
class Migration(DataMigration)... | [
"athom09@emory.edu"
] | athom09@emory.edu |
88e209e71bd5abada8fca06441598115041c3409 | 00b9d05d36e403aafe33becfd738bedb4e6927ae | /Day3/DbConnectionDemo.py | 1adcbed723c57dedaae5901a1e36c11a8aa64490 | [] | no_license | ShahUjval/Python | 9383b2b4f5c519096a4496db3862d1adaffc2ea2 | e49d9f148a08b8e8bd8e5d58aa5c2b9ee1984523 | refs/heads/master | 2021-01-20T20:18:06.616409 | 2016-06-03T09:37:38 | 2016-06-03T09:37:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | import MySQLdb
conn = MySQLdb.connect('localhost','root','katieholmes123','python')
conn.autocommit(True)
query = "Select version()"
cur = conn.cursor()
cur.execute(query)
print cur.description[0][0]
print '-' * 22
print cur.fetchone()[0]
cur.close() | [
"shah.ujval@gmail.com"
] | shah.ujval@gmail.com |
53171e07178a012d3d4820a34f4a4926dbf039f9 | 909afe0216a37bdc19683d81e533fa6c094329c1 | /python/fluent_python/17-futures/flags_threadpool.py | 06c33a7643ddd6282576bba9507f4a1c595c79bf | [] | no_license | wxnacy/study | af7fdcd9915d668be73c6db81bdc961247e24c73 | 7bca9dc8ec211be15c12f89bffbb680d639f87bf | refs/heads/master | 2023-04-08T17:57:40.801687 | 2023-03-29T08:02:20 | 2023-03-29T08:02:20 | 118,090,886 | 18 | 22 | null | 2022-12-16T03:11:43 | 2018-01-19T07:14:02 | HTML | UTF-8 | Python | false | false | 481 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author: wxnacy(wxnacy@gmail.com)
# Description: 使用多线程下载
from concurrent.futures import ThreadPoolExecutor
from flags import download_one, main
MAX_WORKERS = 20
def download_many(suffixs):
workers = min(MAX_WORKERS, len(suffixs))
with ThreadPoolExecutor(workers)... | [
"371032668@qq.com"
] | 371032668@qq.com |
1a1c0596441aa2d97790c1857301e569d6e85134 | c5ba9519273bf864c91f3564c8a63e4a7fd729fb | /xitongguanli/xitongdemo/user/urls.py | cf3e991f0e16acb7b8133ed48f43a42353760154 | [] | no_license | tainsir/xitongguanli | b318e8c8b708192f79106ec9d4f64804e4875e3e | 8c619bf8c5e5f665bc1e0d1b9d8700eb1249f00c | refs/heads/master | 2020-08-03T12:16:24.656311 | 2019-09-30T05:08:59 | 2019-09-30T05:08:59 | 211,750,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,821 | py | from django.conf.urls import url
from . import views
app_name = "user"
urlpatterns = [
# ------------------- 用户登陆url ----------------------------
url(r'^login/$', views.login, name='login'), # 用户登陆
url(r'^login_out/$', views.login_out, name="login_out"), # 用户退出
# ------------------- 系统首页的url ----... | [
"noreply@github.com"
] | noreply@github.com |
343c17bb1ca6baf99ce4f13cd5186e9c00b5d09a | 1201b15c891116d0475926d3db707a053f480ab3 | /config.py | 898ffc64792fb9a2aaa9ae4b2d92c8060f4ec5e7 | [
"MIT"
] | permissive | PeARSearch/PeARS | 701708be4525c47c2ffed750adf1688a4ddfc419 | f97f416071a22826798188bcd75ce4d3e4f2623d | refs/heads/master | 2020-04-05T03:18:34.334948 | 2017-07-22T12:33:18 | 2017-07-22T12:33:18 | 50,421,624 | 64 | 14 | null | 2017-07-22T12:33:19 | 2016-01-26T10:30:24 | DM | UTF-8 | Python | false | false | 434 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
import os
basedir = os.path.abspath(os.path.dirname(__file__))
# db configurations - not using now
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'app.db')
SQLALCHEMY_BINDS = {
'wikiwoods': 'sqlite:///' + os.path.join(basedir, 'wikiwoods.db')
}
SQ... | [
"hrishi.kb@gmail.com"
] | hrishi.kb@gmail.com |
1596a3bc363dc0db81d5748b98371958e64dd2d8 | f63fa6561b3c3f39fae8a7e3a37e7862b7103e70 | /loop.py | b24f1de5ac9959e594eb83112757c1586b014d7e | [
"MIT"
] | permissive | maxreciprocate/Looper | eebbea08f6e96917c3f3a4162b0961d42b0b958d | 0f7c56a52a540b768054fd174bab940992906e93 | refs/heads/master | 2023-06-07T15:40:27.985275 | 2019-10-30T03:55:00 | 2019-10-30T03:55:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,715 | py | import os
import sys
import numpy as np
from mpg123 import Mpg123, Out123
class MusicFile:
def __init__(self, filename):
# Load the file, if it exists and is an mp3 file
if os.path.exists(filename) and os.path.isfile(filename):
if filename[-3:].lower() == 'mp3':
mp3 = Mp... | [
"nolananicholson@gmail.com"
] | nolananicholson@gmail.com |
fd9d88ea405216244963a2f1d054b06ca60ec7cb | f73c18586be66640a362c19ca1fe6816bcc34ca6 | /ml_pipeline/tests/test_mlflow.py | 55da1a65a54e8db8327c607f1ab2a9d20f4598e9 | [
"MIT"
] | permissive | TianhaoFu/cloud_ml_platform | 1b46034ef5aada154180938a58319fa7d67cf732 | 66508abbffdda1b75dd4267e3da1838ecb59c423 | refs/heads/main | 2023-06-05T17:11:05.685864 | 2021-06-24T05:08:13 | 2021-06-24T05:08:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | import mlflow
import os
from random import random, randint
from mlflow import log_metric, log_param
def test_mlflow():
base_uri = os.environ.get('BASE_URI')
tracking_uri = base_uri + '/mlflow' if base_uri else ''
mlflow.set_tracking_uri(tracking_uri)
# Log a parameter (key-value pair)
log_param("p... | [
"myoilbox@gmail.com"
] | myoilbox@gmail.com |
6ae67fd3e9663fc9ea82a6080b85773cce01b42f | b485f7721e01cd55c9043b3ca4dde374216384fc | /task1/cgi/show.py | 7f23ab0fa42bb35c9777cf777b7ca15eaa2d167c | [] | no_license | anastasiarudenko/lab3_3.9 | 4a01194cfd967d4110621e8a85b221db1efd1bd8 | b794c01e0d795c160f3919aca73ed9f9549329e4 | refs/heads/master | 2022-09-04T10:29:42.477377 | 2020-05-25T10:46:27 | 2020-05-25T10:46:27 | 266,750,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | #!/usr/bin/env python3
import cgi
import html
f = open('data.txt', 'r')
text = f.read()
f.close()
print("Content-type:text/html\r\n\r\n")
print("<h2>With escaping: %s</h2>" % html.escape(text))
print("<h2>Without escaping: %s</h2>" % text)
| [
"cyanidecalcium@yandex.ru"
] | cyanidecalcium@yandex.ru |
5486a88353c3ff9a71da6e4fb6e0dd86a820b8d9 | 2d4821fb383287080eacc70941ba43c12c9cb73f | /RepairService/welcome/views.py | 15c39fe09773f7f9224780c5a4ef306713098701 | [] | no_license | chirag12357/school_django | 2b2b5e1496d6c488550963c791c906ec98e19093 | 702fa7b030d6cdeb7f4821129af0f19af7b142ee | refs/heads/master | 2020-09-07T20:11:30.117230 | 2019-11-12T13:28:47 | 2019-11-12T13:28:47 | 220,901,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | from django.shortcuts import render
# Create your views here.
def welcfunc(request):
return render(request,"welcome.html")
| [
"noreply@github.com"
] | noreply@github.com |
3e5b76060a8d08eb9c454a93b5bf91d108e6268c | e2e08d7c97398a42e6554f913ee27340226994d9 | /pyautoTest-master(ICF-7.5.0)/test_case/scg_old/scg_obj_shell_2nd/test_c40343.py | 3c334ff2e3e9d1098cbb335f5426d69ef272f5d0 | [] | no_license | lizhuoya1111/Automated_testing_practice | 88e7be512e831d279324ad710946232377fb4c01 | b3a532d33ddeb8d01fff315bcd59b451befdef23 | refs/heads/master | 2022-12-04T08:19:29.806445 | 2020-08-14T03:51:20 | 2020-08-14T03:51:20 | 287,426,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,783 | py | import pytest
import time
import sys
from page_obj.scg.scg_def import *
from page_obj.scg.scg_def_obj import *
from page_obj.scg.scg_def_log import *
from page_obj.common.rail import *
from os.path import dirname, abspath
sys.path.insert(0, dirname(dirname(abspath(__file__))))
test_id = 40343
# 修改以subnet方式添... | [
"15501866985@163.com"
] | 15501866985@163.com |
9c798312fb973574870b50564f097af475b494c3 | 9b5715ad23991bd94d0cf6257683af69638be534 | /faceRec/utils.py | 8e9a8e87f93bda945015b70134501ac9608b9d7e | [] | no_license | amessadiqi/facerec | 7364be109f21d52a3477977b371814185a3d7ae2 | f363798a182e7f17e843bd413cf3fdc38c90846b | refs/heads/master | 2022-12-10T21:54:57.962493 | 2020-09-17T15:18:58 | 2020-09-17T15:18:58 | 296,343,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,566 | py | import os
import random
import string
import face_recognition
from faceRec.models import db, User
def add_user(email, password, first_name, last_name, gender, profile_picture, birthday, address):
user = User(email=email,
password=password,
first_name=first_name,
las... | [
"amessadiqi@gmail.com"
] | amessadiqi@gmail.com |
63067b766fec7b99acd1864cd7e39787c0f755b8 | 50bd87708a19ac7003c2cc3e2834047acc684eb9 | /网络通信/009_协程_greenlet.py | 2c58a061e2d437e27cd1f328ba6a45a786b1f80c | [] | no_license | lzxysf/python | db30bef343bb02d99c3f2a0f96c4c942b69b8b52 | 7d1f09b788eec293ae0bddcc0117e2dcd8a79f0b | refs/heads/master | 2020-12-05T06:43:24.461101 | 2020-04-08T13:21:02 | 2020-04-08T13:21:02 | 232,037,659 | 0 | 0 | null | 2020-04-08T13:14:39 | 2020-01-06T06:23:20 | Python | UTF-8 | Python | false | false | 443 | py | '''
为了更好使用协程来完成多任务,python中的greenlet模块对其封装,从而使得切换任务变的更加简单
'''
from greenlet import greenlet
import time
def test1():
while True:
print('----A----')
time.sleep(0.5)
gr2.switch()
def test2():
while True:
print('----B----')
time.sleep(0.5)
gr1.switch()
gr1 = green... | [
"lzxysf@qq.com"
] | lzxysf@qq.com |
2271ce0fe39d71d42b7ce4efd6399e6568b37c17 | 165cf5ce4f80ca7037237f3abf59eeef68e3105e | /mkhufftbl.py | 3c301889a940a899069a6c4854abd1413420911d | [
"MIT"
] | permissive | ngtcp2/nghttp3 | 1eb043960397ec5bdd3f704d4ccc9b11613ec99c | dd5d9d55dcb13a1729b7ad1c8c30f8e5ad82c4df | refs/heads/main | 2023-08-31T03:23:38.565595 | 2023-08-30T09:58:04 | 2023-08-30T09:58:04 | 156,868,263 | 693 | 82 | MIT | 2023-08-30T09:55:36 | 2018-11-09T13:49:36 | C | UTF-8 | Python | false | false | 22,404 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# This script reads Huffman Code table [1] and generates symbol table
# and decoding tables in C language. The resulting code is used in
# lib/nghttp3_qpack_huffman.h and lib/nghttp3_qpack_huffman_data.c
#
# [1] http://http2.github.io/http2-spec/compression.html
import ... | [
"tatsuhiro.t@gmail.com"
] | tatsuhiro.t@gmail.com |
dc3f80de3fed77fc2506bf296b04f63ce5dd996c | f19c5436c7173835a3f1d064541ee742178e213a | /mah/divide and conquer/[BOJ]1920_수 찾기.py | 9bdd791f8797941a03f185c9f847b8104e5e9e83 | [] | no_license | hongsungheejin/Algo-Study | f1c521d01147a6f74320dbc8efe3c1037e970e73 | d6cb8a2cc6495ccfcfb3477330a3af95895fae32 | refs/heads/main | 2023-07-06T10:58:27.258128 | 2021-07-29T02:11:13 | 2021-07-29T02:11:13 | 379,269,918 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | N = int(input())
nums = list(map(int, input().split()))
nums.sort()
M = int(input())
tars = list(map(int, input().split()))
def binary_serach(tar):
l, r = 0, len(nums) - 1
while l<=r:
m = (l+r)//2
if nums[m] == tar: return 1
elif nums[m] < tar: l=m+1
else: r=m-1
... | [
"mai.hong0924@gmail.com"
] | mai.hong0924@gmail.com |
dd38861457d0332d6c9b6322722556eb6f6b3fc6 | b577bd7cee15fc4a9c7b57eac07b532b53f5a890 | /teste.py | 048c8e430f2aaccdbe0cc12bec39aa454a6d551e | [] | no_license | ponsdev/Arch-Timer | 6dcac54e6a43c8f89a1f09dace1d7e9d32a632a2 | ae89915e727c67d66662df3cedaa570d253ac5c7 | refs/heads/master | 2020-03-09T15:39:57.312960 | 2019-05-10T18:27:09 | 2019-05-10T18:27:09 | 128,864,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | import sys
filePath=sys.argv[1]
print(filePath) | [
"viniciusdev@zoho.com"
] | viniciusdev@zoho.com |
3c5c13bc7708b7f1f902b92f1224968214201cf3 | 110e46dfe166dd00854ef70549e942c644a8775b | /Python_ Ejercicios/Ingreso_Linkedin.py | 60586d80479683aa40a8652b9dd681c5d8cdab60 | [] | no_license | silvina84/TrabajosPython | 1b573cd594b998cee8f5c73fb4de924ac0f13998 | afe2fdf2662229b8f2d98af0211638b03e12e690 | refs/heads/master | 2023-03-02T11:55:14.722338 | 2021-02-10T22:55:58 | 2021-02-10T22:55:58 | 337,839,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,880 | py | #Login con usuario y contraseña en Linkedin
import xlrd #Para leer archivos excel
import pandas
import time
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait #Llama a un subpaquete dentro de selenium , es para esperar... | [
"silvinacace@gmail.com"
] | silvinacace@gmail.com |
1c91383daeead69767d8a3e989bcf2f3fff2bfeb | 1910497a6d0bf8d572ecb933127792c6ee924f26 | /Python/Mutations.py | b71f00ff91cfb5841480d27fd1a3db4b40189081 | [] | no_license | saurabhc24/hackerrank-solutions | 558e56754c11f5f25976df1aa38b33db04b37734 | 3499014a33b3383ee28d48f92063a67bb9e05bfc | refs/heads/master | 2023-08-21T18:05:42.507456 | 2021-10-03T17:42:35 | 2021-10-03T17:42:35 | 260,264,605 | 0 | 2 | null | 2020-10-10T07:31:13 | 2020-04-30T16:40:08 | C | UTF-8 | Python | false | false | 439 | py | def mutate_string(string, position, character):
return"".join(list(string[:position]+character+string[position+1:]))
#first converting the string into list and then using slice [:] to add the desired character at the required position, then using join() string method to convert it back to string
if __name__ == ... | [
"noreply@github.com"
] | noreply@github.com |
39e2d9dbdc83ea68defe4b575e5d0bee237f89bc | 205be8d429df36e27cdfc048bfca9212c5a62a87 | /icu/urls.py | ed2cf073014ebef72cfb33b59762ed1241b9df93 | [] | no_license | KennyChrisUmurundi/HOsto | 16c8f926282fc48c981532447f1685fbbc2b457c | 33fa31524a08934f3deb8f622a1b1554d8ef1af4 | refs/heads/master | 2022-04-01T02:42:39.146227 | 2020-01-07T11:44:08 | 2020-01-07T11:44:08 | 193,458,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | from django.urls import path
from django.contrib.auth import views as auth_views
from . import views as icu_views
from django.conf.urls.static import static
from django.conf import settings
app_name = 'icu'
urlpatterns = [
path('Medical Update/',icu_views.update_list,name="add-medical"),
path('scan/',icu_views.ScanCod... | [
"ndayikennysmuusic@gmail.com"
] | ndayikennysmuusic@gmail.com |
1fcd94d623978daffea0a24521a7a469988c6c4a | 743d2aa865b22d7707a845fb2a015096d62778b5 | /embed2geo.py | 59cf41ea45050b90e01d3e96c66f392e5859cbe0 | [] | no_license | Yonghui56/coord2geo_GMSH | dcab900497da350cec7f95278ba5e3b11742b35a | 82d35b2533efbfb2798b63ce0301fb6daff26960 | refs/heads/master | 2020-06-20T00:33:37.256259 | 2019-07-15T05:34:25 | 2019-07-15T05:34:25 | 196,929,602 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,130 | py | # Python Program for quick gmsh grid gen
import string,sys
def convert_pts_togmsh(filename,outputname,startpoint):
# Read in data using this bit
fin=open(filename, 'r')
i=0
x = []; y = []; z = [];
lines = fin.readlines()
for line in lines:
# comments indicated by #
if line[0] != '#' or l... | [
"noreply@github.com"
] | noreply@github.com |
520225b1b9d44a0d7ef41248511013f812e9c07f | 5ead730e69f1042de1f43ac64e767d6463ffe691 | /basic guess game.py | 6c1bf87b7d5dcc7046f85a7ffb5b79db10b2b3ab | [
"MIT"
] | permissive | ravi9607/basic-program-by-python | 84258d110cdb9f9f285e93ddac5eb411d60fae77 | 534fc4a4c316ba0b8391f72647c4f9c9d33bb8e6 | refs/heads/main | 2022-12-26T05:33:35.965400 | 2020-10-10T13:07:51 | 2020-10-10T13:07:51 | 301,167,757 | 0 | 0 | null | 2020-10-04T15:56:25 | 2020-10-04T15:56:24 | null | UTF-8 | Python | false | false | 356 | py | code_word = "priya"
guess = ""
guess_count= 0
guess_limit= 3
out_of_gusses=False
while guess != code_word and not out_of_gusses :
if guess_count< guess_limit:
guess = input("enter guess : ")
guess_count+=1
else:
out_of_gusses=True
if out_of_gusses:
print("you lose!")
els... | [
"noreply@github.com"
] | noreply@github.com |
13daadc403ee347a1877bef70ef64461737e38cc | 5a71ca1f5c964f803350e3c1238cb48986db565c | /coinlibbitfinex/coinlibbitfinex/streamapi.py | d6eb6285f6a324d0a46d8cc40959a345f9c959cd | [] | no_license | tetocode/coinliball | fd644cbc16039ecad7e43228ea4e287ead5c8e5f | 41ebbac13c1fbba98aedaa766b9a505cb157f374 | refs/heads/master | 2022-09-28T21:58:08.130006 | 2020-06-04T03:00:56 | 2020-06-04T03:00:56 | 269,247,318 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,624 | py | import json
import logging
from typing import Hashable, Dict
from websocket import WebSocket
from coinlib.datatypes.streamdata import StreamData
from coinlib.trade.websocketstreamapi import WebSocketStreamApi
logger = logging.getLogger(__name__)
class StreamApi(WebSocketStreamApi):
URL = 'wss://api.bitfinex.co... | [
"_"
] | _ |
cbf2636b58eb80307527d3264435f464bf9c787e | aa2c403a5f333857217685c03e9ca950c315ccc1 | /egs/voxceleb/multitask/nnet/lib/finetune.py | 600edf7d901a7c1a538289d067e3d6b02bdc37d6 | [
"Apache-2.0"
] | permissive | entn-at/tf-kaldi-speaker-master | 5db8984c4bc86d1b3112586c377f926fa9dd3134 | 8392af04cbaee3fb3dd87329ad4b60d710f45d9f | refs/heads/master | 2020-12-06T10:48:41.272114 | 2020-06-30T09:09:25 | 2020-06-30T09:09:25 | 232,444,778 | 0 | 0 | Apache-2.0 | 2020-01-08T00:38:44 | 2020-01-08T00:38:44 | null | UTF-8 | Python | false | false | 9,145 | py | # Fine-tune a pre-trained model to a new model.
# Optimize the entire network after loading the pre-trained model.
# This require that there is no new parameter introduced in the model.
# This is appropriate to train an End-to-end triplet loss (or other) network from a softmax pre-trained network where
# no additional ... | [
"ruyun_li@outlook.com"
] | ruyun_li@outlook.com |
736bedd04ea4ca3c0156959d4853a7f040a14417 | fac02e1c20a0fe9873acbcdb42dadc63f60eb53a | /diming/diming/pipelines.py | f53d0d26dfd3ee5c629c117cfaae1483d9c3b4d3 | [] | no_license | mekhicode/crawler | da56ef6304ae176248759804781847ad8d4c8d7d | 080ad590a2473f747cf37e3cc48a122b959d80ba | refs/heads/master | 2021-01-22T07:06:25.238971 | 2016-09-20T05:50:49 | 2016-09-20T05:50:49 | 68,670,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
class DimingPipeline(object):
def process_item(self, item, spider):
return item
| [
"tangmash@163.com"
] | tangmash@163.com |
19b41fc5be51639e178372588125d29a461f3787 | aa99ccc7b3dd4a359b2a4c2925bca95e421b759a | /FIG5.2a/g158.py | 2faf0fa0e61ba827de1a93c7908567cf04fc0aed | [] | no_license | ardhendubarman/PROJECT | 7689b083c633d0e543359462f28a60658a3dabe6 | 97a02f3a7a8eee0009c1c465c6df52ffd608cf55 | refs/heads/master | 2021-01-25T11:14:28.710512 | 2017-06-10T10:33:01 | 2017-06-10T10:33:01 | 93,915,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,653 | py | """
A freely-propagating, premixed hydrogen flat flame with multicomponent
transport properties.
"""
import cantera as ct
import pickle as pkl
import numpy as np
# Simulation parameters
p = ct.one_atm # pressure [Pa]
S_l=[]
#j=[0.32, 0.34, 0.38, 0.46, 0.62]
i = np.linspace(300, 1350, 30) # unburned gas temperature [... | [
"ardhendu.1994@gmail.com"
] | ardhendu.1994@gmail.com |
6e15567d6391d71d681cf27964983a4307bacdde | d6d3e49cd07d64c6c59ad101a8a2a8585cb8874a | /DHidasAna/SimpleAna/python/__init__.py | 2499d6cb767ee0f3a69e86799dffd820c9b31ac5 | [] | no_license | dhidas/UserCode | 2bb36c4eb5bd9daa4d71a739a042e4aee9200dea | 04701c732d8acb3042e8967898a789d2b2845da4 | refs/heads/master | 2021-01-18T14:02:11.537626 | 2013-10-25T14:31:27 | 2013-10-25T14:31:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | #Automatically created by SCRAM
import os
localrt=os.getenv('LOCALRT', None)
arch=os.getenv('SCRAM_ARCH', None)
if localrt != None:
__path__.append(localrt+'/cfipython/'+arch+'/DHidasAna/SimpleAna')
| [
""
] | |
8b0694bbd0567276a741b8362253e858aa967ba9 | 5b41ca66248cbbfd65f4eec920b8e6b23c4ba64d | /messagebox.py | fca82a8015ad086c1b45f71981d99f410bdb3e97 | [] | no_license | jejaksaid/python-gui | 2bcfd4b9b555a1e684961cee6868f209d78cc4e9 | f59a0e10951c33a866bbd7a7fb75d86e10abcf53 | refs/heads/master | 2022-12-17T06:34:17.342632 | 2020-09-26T12:07:07 | 2020-09-26T12:07:07 | 281,889,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,265 | py | import sys
from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QMessageBox
from PyQt5.QtGui import QIcon
from PyQt5.QtCore import pyqtSlot
#Create a window with a button. If you click the button, the dialog will popup.
def window():
app = QApplication(sys.argv)
win = QWidget()
button1 = QPushB... | [
"noreply@github.com"
] | noreply@github.com |
8af84a01d80c776522cf1031d8232f43427a9540 | 66bb3f65f0157a2b5475903c90a54d5173bc4f0a | /djthia/core/views.py | 702cc124bdbc259bc6fdc7f8295d8de0cd43d8fa | [
"MIT"
] | permissive | carthage-college/django-djthia | 691233049bcb05391fd82e390edb717f3bc0588a | 52401592291a980c7226c0573d415e7cdb8c20d3 | refs/heads/master | 2023-03-04T08:22:03.055448 | 2023-02-24T18:33:12 | 2023-02-24T18:33:12 | 249,989,382 | 0 | 0 | MIT | 2023-02-24T18:33:56 | 2020-03-25T13:43:24 | Python | UTF-8 | Python | false | false | 1,886 | py | # -*- coding: utf-8 -*-
import json
import requests
from datetime import datetime
from django.conf import settings
from django.core.cache import cache
from django.http import HttpResponse
from django.shortcuts import render
from django.urls import reverse_lazy
from django.utils.safestring import mark_safe
from django... | [
"plungerman@gmail.com"
] | plungerman@gmail.com |
ac036b0c581fd56f8e5a1abc72999ba8a216c0aa | cdfb03781f49a49fca5d0f316ecdffaeda9820ca | /djangohw/settings.py | 43eb61118c966cb2173b36b8192539392bbd3352 | [] | no_license | argocan/djangohw | 8f302697fca27ba6f824fe8536cea0de99233337 | da4b9a12b020a2627e05d131f2d5c7da76f50c3e | refs/heads/main | 2023-02-04T02:06:33.058412 | 2020-12-15T12:18:15 | 2020-12-15T12:18:15 | 321,629,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,068 | py | """
Django settings for djangohw project.
Generated by 'django-admin startproject' using Django 3.1.1.
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 pathli... | [
"fabrizio.gambelunghe@cdp.it"
] | fabrizio.gambelunghe@cdp.it |
d93a6ea41527ac0523476d0d352ebbf555f433f9 | 702e834fec254abce7f739a8086ba06e976df7ad | /necAnalysis.py | 25c80736cc16dbb670761dd38ba8a99c49678411 | [] | no_license | iamjino/tanimaul | 0a6146fbc2f9e3b0748ce74f014d78c0d0feffb0 | d77d3880edb15654bc683dc069a50ed477b96031 | refs/heads/master | 2023-01-20T14:52:29.354725 | 2020-11-30T19:11:19 | 2020-11-30T19:11:19 | 295,502,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,069 | py | import pandas as pd
def day_voter(x):
result = ''
if x['사전투표수'] > 0:
result = x['투표수']
return result
class NecAnalysis():
def __init__(self, file_result, file_book):
result_items = pd.read_excel(file_result)
book_items = pd.read_excel(file_book)
nec_result_part = res... | [
"55924206+ryanroypapa@users.noreply.github.com"
] | 55924206+ryanroypapa@users.noreply.github.com |
711cad9016bd2b8763f7e58436756578d43a0017 | 0f20fd02b26edda61d911387fae18248a5b387c1 | /smtp/smtpd_senddata/smtpd_senddata.py | 6e7487b46bc852ec71dc94766dc968be74783247 | [] | no_license | jadermcs/networkinglab | fa7660536b39179bc71c1a2caabe7fb3d4043027 | 326d4ce261b2c0a4c684ff7c355992edcf85f5c6 | refs/heads/master | 2020-03-10T02:50:58.834880 | 2018-04-28T14:45:49 | 2018-04-28T14:45:49 | 129,147,873 | 0 | 0 | null | 2018-04-15T14:56:25 | 2018-04-11T20:05:42 | Python | UTF-8 | Python | false | false | 795 | py | import smtplib
import email.utils
from email.mime.text import MIMEText
# Create the message
msg = MIMEText('This is the body of the message.')
msg['To'] = email.utils.formataddr(('Recipient',
'recipient@example.com'),
('Joao',
... | [
"jadermcs94@gmail.com"
] | jadermcs94@gmail.com |
b284a5639417c0f7114f20e3ced9f5d326bbab15 | 699c5894668e07bbb4ddae632730f0d218f72558 | /Yeji-Lee/baekjoon/b_100/두 수 비교하기.py | dba5c432a59ef39ab6eefb04ce05640afbacc605 | [] | no_license | Sumsan38/learning-algorithm | 0914ddbbd8786381dda807562e4529773b4aa987 | 59a1d7b53d4348a0320b0cbf48ee75b5086b3a29 | refs/heads/master | 2023-07-15T08:16:29.896218 | 2021-08-14T11:47:01 | 2021-08-14T11:47:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | # https://www.acmicpc.net/problem/1330
A, B = map(int, input().split())
if A > B:
print('>')
elif A < B:
print('<')
elif A == B:
print('==')
| [
"noreply@github.com"
] | noreply@github.com |
15964455a90498f40c1b5832baba1979f60603a1 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_3_neat/16_0_3_stanm_coin-jam.py | d03fbeb3caa801b73d052e9fa018ecc9ef309635 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 945 | py | #! /usr/bin/python
import sys
def rinp():
one = input()
_ = input().split(' ')
N = int(_[0])
J = int(_[1])
return (N, J)
def get_binary(num):
return "{0:b}".format(num)
def in_base(stng, base):
return int(stng, base)
def get_div(x):
for d in range(2, x):
if d * d > x:
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
4f7d45874caf756b4c49443237a554b3a6d6fa09 | 305eb0000d98d01ac804d50d2f7ec145006f43bf | /agent/bot.py | 14c35fd9059bedf6993aab69ab499b326ab028dc | [
"MIT"
] | permissive | latticetower/dr-derks-mutants | e72109f873118cd2c6323fb15d5780bcc41b679e | 5c3ab86137ecb478a3013985172d160568a86b13 | refs/heads/main | 2023-03-03T00:58:31.167240 | 2021-02-04T04:28:35 | 2021-02-04T04:40:22 | 334,600,980 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | import numpy as np
from agent.dqn_bot import DerkPlayer # change this if necessary
| [
"merlettaia@gmail.com"
] | merlettaia@gmail.com |
49876f9f114cb015c6ec0352ca7ce0cdded1edee | 0393e64ac4ed8e3d745b31d44836b58571faaabb | /aefingar_forritun/daemi21-while.py | 62b274d4f84b333ad325bb3863b604122476a8e9 | [] | no_license | danielthorr18/forritun_git | c3647e1e6dd35cd55287bb2d51066d8ab55ea931 | b544371664a15dd0660aef83cdf474e506e1b412 | refs/heads/master | 2020-03-28T00:04:50.700712 | 2018-11-15T15:26:42 | 2018-11-15T15:26:42 | 147,368,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | turns = int(input("Sláðu inn tölu: "))
counter = 0
while counter < turns:
pick = int(input("Sláðu inn tölu: "))
if pick % 2 == 1:
print("þú valdir", pick)
counter += 1 | [
"danielr18@ru.is"
] | danielr18@ru.is |
4272a7d781c422d78e27a838280b038082ef95ab | 57fc5d54f5df359c7a53020fb903f36479d3a322 | /controllers/.history/supervisor/supervisor_20201127194410.py | c91f5cc5bde9a494e19c7adadf4e75e4d0388496 | [] | no_license | shenwuyue-xie/webots_testrobots | 929369b127258d85e66c5275c9366ce1a0eb17c7 | 56e476356f3cf666edad6449e2da874bb4fb4da3 | refs/heads/master | 2023-02-02T11:17:36.017289 | 2020-12-20T08:22:59 | 2020-12-20T08:22:59 | 323,032,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,059 | py | import math
import numpy as np
from numpy import random
from numpy.core.fromnumeric import size
from numpy.lib.function_base import meshgrid
import utilities as utils
from deepbots.supervisor.controllers.supervisor_emitter_receiver import \
SupervisorCSV
# # from deepbots.supervisor.wrappers.tensorboard_wrapper i... | [
"1092673859@qq.com"
] | 1092673859@qq.com |
4a2f9b5baa86079690190cf78a776554744e8271 | c5cad31bfc771d3261d1eead8e31856c19eb5e74 | /publishTool/assembleTest_D05_7.py | 3bf657b7e122eea1a22d8512b50fc9ff0a277b9e | [] | no_license | alpha0080/mayaTool | 61b649825d85b88de2d24e9260e23f5c5aa559cb | 153da6e987d13fb7311ee55a2a3e635bc8c7afde | refs/heads/master | 2021-01-19T11:52:03.715437 | 2018-05-07T10:30:23 | 2018-05-07T10:30:23 | 88,001,018 | 0 | 0 | null | null | null | null | BIG5 | Python | false | false | 190,588 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'C:/Users/alpha.DESKTOP-1S1STEK/Documents/GitHub/mayaTool/publishTool/assembleTest_B01.ui'
#
# Created: Thu Jul 06 16:28:26 2017
# by: pyside2-uic running on PySide2 2.0.0~alpha0
#
# WARNING! All changes made in this file will be lost!
... | [
"alpha@mail.chungyo.net"
] | alpha@mail.chungyo.net |
f0c2651bd1caa32ffae059846f3a13da0a81e91e | 19c6ae914b454dd2e23e364b78fab8734e300316 | /api/migrations/0003_auto_20180414_1541.py | 020b94563bce9b5d0c3044ae773d370daada992d | [] | no_license | deepnirmal/Django-sample | 6e538a6f1acc989302c70459d388e1d49a86944b | 29eed30fec4d3f5f9d53090e6dd54707b45e37ce | refs/heads/master | 2020-03-10T23:29:13.531222 | 2018-04-16T05:17:07 | 2018-04-16T05:17:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | # Generated by Django 2.0.4 on 2018-04-14 15:41
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('api', '0002_auto_20180414_1524'),
]
operations = [
migrations.AlterField(
model_name='task',
... | [
"Deep.Nirmal@walmart.com"
] | Deep.Nirmal@walmart.com |
aa589907e356abf2a7b24506f773b839094ef43d | 3a89ee8d30e3df1270482b5dcb2df3e1da60281e | /ember/pssa/model.py | c69715dbde091c09c94bdf1eef1f6ea296e832d2 | [] | no_license | whigg/ember | 71968322cff2ea6e017b3433f8b9cca80bd3f1d5 | d4a6e04b29ab7de7bbce431282b68aa21397351a | refs/heads/master | 2023-01-05T04:13:51.048735 | 2020-11-03T03:30:58 | 2020-11-03T03:36:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,294 | py | import random
from collections import deque, defaultdict
from functools import lru_cache
from itertools import combinations
import dwave_networkx as dnx
from networkx import Graph
from ember.hardware.chimera import ChimeraGraph
from ember.hardware.transform import overlap_clique, double_triangle_clique
from ember.har... | [
"ipwnu777@gmail.com"
] | ipwnu777@gmail.com |
235bea81a7895dc78c4ca7bd704cd9fc6093faec | 7c5fb33929116bb77b438de3ead93b3978b5af71 | /alf/networks/action_encoder.py | 16792ab6d227f26716c18cf61406688f1e6c33a0 | [
"Apache-2.0"
] | permissive | HorizonRobotics/alf | d6dac891322a81ccb7e2a9749139627b1eda28cb | b00ff2fa5e660de31020338ba340263183fbeaa4 | refs/heads/pytorch | 2023-08-21T18:51:41.370566 | 2023-08-16T00:07:22 | 2023-08-16T00:07:22 | 178,459,453 | 288 | 57 | Apache-2.0 | 2023-09-14T20:40:20 | 2019-03-29T18:44:07 | Python | UTF-8 | Python | false | false | 2,719 | py | # Copyright (c) 2019 Horizon Robotics. 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 applicab... | [
"noreply@github.com"
] | noreply@github.com |
1d9541158f83578238b98dcdfc19ba79daf98b49 | 9ac08da288a54b1b2a2e318cbfd906d30364eac8 | /src/unit3_challenge2.py | 6388b50d56c93b0519a184e13358bb6ab3b9d55e | [] | no_license | bigdatasciencegroup/datalab | 79bac9caf42352eefd0e79977cfb6e28c6af7323 | 83617eba3b9b1170e5f271d12e79ad7c6bcfdd66 | refs/heads/master | 2023-05-09T21:50:58.008163 | 2020-01-01T12:32:56 | 2020-01-01T12:32:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,950 | py | import sys
from sklearn.metrics.cluster import adjusted_mutual_info_score
from sklearn.feature_extraction.text import TfidfVectorizer, CountVectorizer
from src.base.task import BaseTask
from src.utils.models import FileSizeClusterer
from sklearn.base import TransformerMixin
import numpy as np
from io import BytesIO
fro... | [
"jonasitzmann@github.com"
] | jonasitzmann@github.com |
b9053a14c9ecab360901c53e37eb3ed50d3054f1 | e1c10cc188de604dfbce7403a7612f0c84457db4 | /resources/lecturer.py | 2c4dc1f536de265a9bafc89e569c8a4b714c7e16 | [] | no_license | clemkofi/ccn_directory | 42499e640d098f96e810226b6602c7747e1456af | 50a8818f23e60ca74a075d77270aebfdd613505d | refs/heads/master | 2022-12-09T20:01:21.694835 | 2018-11-09T08:06:50 | 2018-11-09T08:06:50 | 155,115,133 | 0 | 0 | null | 2022-12-08T01:15:42 | 2018-10-28T21:00:12 | Python | UTF-8 | Python | false | false | 10,868 | py | from resources_classes.db import DatabaseReq
from flask import request, jsonify
from flask_restful import Resource, reqparse
from apiapp import pass_generator, get_timestamp, get_current_timestamp, get_date_from_timestamp, get_token_for_user
from notification_service.notification_mail import password_notification
from ... | [
"cak.nartey@gmail.com"
] | cak.nartey@gmail.com |
386a61ea077f264cdd7a36d12cd3aebae50c463d | 305585c6e2e2f9d69603f728f8ac1dd38d12e63b | /plot.py | 4c3271781150d2fdf7fffb86226e9e9bdab11755 | [] | no_license | yingted/scribbler-commander | 87d01e91426a2e2a7f20f8519922f3571d0710f3 | 5072feb6b8bc3126c92fedf2297ef6be72301376 | refs/heads/master | 2021-01-19T15:02:59.844424 | 2013-11-30T00:00:25 | 2013-11-30T00:00:25 | 32,125,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | from pickle import load
from matplotlib.pyplot import *
from sys import argv
from itertools import cycle
from model import Prior
with open(argv[1])as f:
fig=figure()
ax=fig.add_subplot(111)
#clr=iter(cycle('bgrcmykw'))
clr=iter(cycle('bgrcmyk'))
for ent in sorted(load(f),key=lambda x:x['irp']):
start=ent['data']... | [
"yingted@gmail.com@2a0f7078-9aa0-a7c8-291c-ce4e4205d19b"
] | yingted@gmail.com@2a0f7078-9aa0-a7c8-291c-ce4e4205d19b |
2e9d12a6e7190233efa49503cb1d489948f47589 | 451aa47b80ce89318d74113a1dfea781f79af441 | /onsset/funcs.py | dc4b17a6dbbf24dd39c27c4307cd744e183e53e2 | [
"MIT"
] | permissive | Somalia-Electrification-Platform/onsset | 79f08d837aea9abde6e5956c56c78d6db27f31b2 | 64f05ce862e2918b17869da3534d35ef3a5b401a | refs/heads/Somalia | 2023-03-30T23:54:43.831492 | 2021-03-23T10:42:17 | 2021-03-23T10:42:17 | 299,992,794 | 0 | 1 | NOASSERTION | 2021-03-22T10:19:37 | 2020-09-30T17:06:48 | Python | UTF-8 | Python | false | false | 10,014 | py | from onsset import *
import matplotlib.pylab as plt
import seaborn as sns
def tech_specifications(discount_rate, grid_generation_cost, grid_power_plants_capital_cost, grid_losses,
mg_hydro_capital_cost, sa_pv_capital_cost_1, sa_pv_capital_cost_2, sa_pv_capital_cost_3,
sa... | [
"asahl@UG.KTH.SE"
] | asahl@UG.KTH.SE |
e1a5744f6ecf92c626944827d21bdcfcd422a518 | d76d9b9498d028755d7b2b04482ba8c79cb339eb | /Python-Challenge/PyPoll/main.py | 7ab4c7286bad50ea051f1f044584493c76ae662b | [] | no_license | JonZagorski/Python-Challenge- | 9332f2a1bb4dcc89da4ee6938a3a931ca0e0688a | 53080cd5d97d67b9b6cfe351cb4293a3e6a7b499 | refs/heads/master | 2022-12-01T11:57:44.328423 | 2020-08-16T04:13:47 | 2020-08-16T04:13:47 | 286,357,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,918 | py | #import the important things
import os
import csv
#variables to store values go here
totalvotes = 0
number_votes = 0
#make a list to store candidates
candidates = []
#make list for vote counts
vote_counts =[]
#set the path to election_data
election_data = os.path.join("resources","election_data.csv"... | [
"noreply@github.com"
] | noreply@github.com |
fd56c339b78756507aae6c9ee5d01037b3f502bb | ba46763cf8ecd8eb22b8e6033ed68b5a5b2f2395 | /cross-section/read_XSfb_from_data.py | 45fad680282e2669183648f263787d8463aba17e | [] | no_license | kazuki-sakurai/LHC_recast | 92c224f8e27d646675f0faf6d768dded026d88ef | 66bac802d0fe15312177d4143e85758e12212425 | refs/heads/master | 2021-01-09T05:50:26.708261 | 2017-11-17T16:29:56 | 2017-11-17T16:29:56 | 80,840,370 | 2 | 1 | null | 2019-03-14T14:32:18 | 2017-02-03T15:14:29 | Python | UTF-8 | Python | false | false | 1,906 | py | #!/usr/bin/env python
import sys, os
import numpy as np
from scipy import interpolate
def get_xsfb(infile, m_in, unit):
if unit == 'pb': fac = 1000.
if unit == 'fb': fac = 1.
dirname = os.path.dirname(__file__)
infile_path = os.path.join(dirname, infile)
data = np.loadtxt(infile_path)
tr... | [
"kazuki.sakurai.1225@gmail.com"
] | kazuki.sakurai.1225@gmail.com |
19e8f21141951d921204abcb75ae7fa31b3ef394 | 4d547798e619238c13dc5cf7c82e7f7ff2451c1c | /DjangoSunucu/Proje/Sunucu/models.py | 986ee05fdf47264d351d88dc101826a60916dc2a | [] | no_license | emogooo/Buyukbas-Android-IOS-Uygulamasinin-Sunucusu | c845224275dcdba712411a009725a90331360e3a | 5daf911c597c5fe437cc7fb02720e4d3253f54f3 | refs/heads/master | 2022-12-08T03:08:43.938063 | 2020-09-04T12:24:24 | 2020-09-04T12:24:24 | 292,840,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,593 | py | from django.db import models
"""
from django.db.models import signals
from django.dispatch import receiver
from django.db.models.signals import pre_save
"""
class Asi(models.Model):
ad = models.CharField(max_length=30)
aciklama = models.CharField(max_length=200)
def __str__(self):
return self.ad
c... | [
"58745898+emogooo@users.noreply.github.com"
] | 58745898+emogooo@users.noreply.github.com |
31796965335c361024f29cf5de2c18699d806d6e | 0f2d3fca1ef0d59f5276b2e1e1af7b02c225917b | /tests/test_visualiser.py | 827a2853bb3584bb13a1ba442160337714b47305 | [] | no_license | breakingflower/door2door_mi_challenge | 4f3f47b8cfae91d2684a85df7956f1b201cec36f | 450f1ba9a0d281ca418da8d256da329db31a102f | refs/heads/master | 2023-04-13T23:34:06.637892 | 2020-09-28T20:15:38 | 2020-09-28T20:15:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,225 | py | ###################################################################
# Script Name : "TEST_VISUALISER.PY"
# Description : Tests for the visualiser/visualiser.py file ... | [
"floris.remmen@gmail.com"
] | floris.remmen@gmail.com |
ad8896eded98ca8dd1abc0c510565e4fa348ab17 | 0481ecb46752eea02bbeedbf3ded92c8a6acdc18 | /httprunner_yaosansan/loader.py | 074eb4c8d28c8807ab0e0dee4263ceae0199942d | [] | no_license | whitexie/workwechat-interface | e5d2dae39c7b8569e60d461db09602c8fd273c81 | 145e431bd65351d9244ffa6e1e747809990004be | refs/heads/master | 2020-09-07T13:54:47.376186 | 2019-11-12T04:12:32 | 2019-11-12T04:12:32 | 220,801,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | import yaml
def load_yaml(yaml_file_path):
"""
read yaml file
:param yaml_file_path: str
:return:
"""
with open(yaml_file_path, 'r') as f:
json_object = yaml.load(f.read(), Loader=yaml.FullLoader)
return json_object
| [
"shieber@163.com"
] | shieber@163.com |
875f0277e8f0a1d890f62156d1ff2f9287f22dc2 | 508fd86b80959df7289f49c90c67b5da5b42d440 | /bin_to_dec_oct_hex.py | 9f57df283a83f6237be5262c92c546e0e8ab4815 | [] | no_license | habeebahmed/challenges | ea02e56fdf6cfbf702c6e4dfc2606e71250da5ac | b163ed0707364e472db9ef5c1b54975572fd2e19 | refs/heads/master | 2022-09-17T21:38:46.413225 | 2022-07-31T23:01:25 | 2022-07-31T23:01:25 | 225,154,386 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,906 | py | '''
Online Python Compiler.
Code, Compile, Run and Debug python program online.
Write your code in this editor and press "Run" button to execute it.
'''
# print("Hello World")
# b_num = list(input("Input a binary number: "))
# value = 0
# for i in range(len(b_num)):
# di... | [
"habeebahmed@Habeebs-MacBook-Pro.local"
] | habeebahmed@Habeebs-MacBook-Pro.local |
d0b5c3f8d6c7520c4bec6204a5f3d9ed7fbba332 | f1a6e9228ee3a66a2b878b85ee6e6b5d6ac9ddfa | /gallery/wsgi.py | 0276e4ba6c10865c3587a5b1d6d76a8c445f3cd2 | [
"MIT"
] | permissive | Doktatech/Gallery | 499f0b645d6f9e74d7f16a688ea8a62d331f03d8 | 7916ce6e38c80817554b1d02f7886f7b1ee759f7 | refs/heads/master | 2021-09-09T11:54:25.624827 | 2019-06-17T13:03:13 | 2019-06-17T13:03:13 | 191,943,755 | 0 | 0 | null | 2021-09-08T01:04:47 | 2019-06-14T13:00:27 | Python | UTF-8 | Python | false | false | 394 | py | """
WSGI config for gallery 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/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SET... | [
"Doktatech2@gmail.com"
] | Doktatech2@gmail.com |
ff3b79306b579ddcb48b552d769e092672abe3e5 | ec2937329e810741c768f421b1f143dcc23e0431 | /testapp/models.py | 12fef266b580d5f71d6528cf84549bf78a0ff17a | [] | no_license | kaushikdobariya777/dk_lms | fdc0ebf09980f029f4072756ee5a82e07e3506fc | d26eb169d990a3eeea5d8e56be8dd44dcd13e76c | refs/heads/master | 2023-07-19T17:08:55.287103 | 2021-08-26T03:31:43 | 2021-08-26T03:31:43 | 400,028,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | from django.db import models
class Employee(models.Model):
eno=models.IntegerField()
ename=models.CharField(max_length=30)
esal=models.FloatField()
eaddr=models.CharField(max_length=60)
def __str__(self):
return self.ename
| [
"kaus.patel777@gmail.com"
] | kaus.patel777@gmail.com |
c9a604456c34d29080c08177efe61aef1e31a260 | 55cdb125dcff042f59798253ec63ee021755a01b | /cookie-Token/models.py | ac280672d77adad609d5c9fc3d8182ec488781df | [] | no_license | chaojixiaoyao/python-rear_end | 5b547548a57109ce4f067a9a140288af96388ba3 | 3c05d2d92948780ac8bd91d3bead05fb08900c38 | refs/heads/master | 2020-05-15T13:14:14.848573 | 2019-05-16T10:02:47 | 2019-05-16T10:02:47 | 182,291,566 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,641 | py | import json
def save(data, path):
"""
data 是 dict 或者 list
path 是保存文件的路径
"""
s = json.dumps(data, indent=2, ensure_ascii=False)
with open(path, 'w+', encoding='utf-8') as f:
f.write(s)
def load(path):
with open(path, 'r', encoding='utf-8') as f:
s = f.read()... | [
"noreply@github.com"
] | noreply@github.com |
4c4e27e45b34e9331a3ec84ac79cfdf43b698848 | f2543f7266cc6f6bebee3d14081daaa676a6f80a | /tensorflow_federated/python/research/optimization/emnist_ae/dataset_test.py | aa4b7a71a5ea7055bce4f6d2649dd8c65cb6a93a | [
"Apache-2.0"
] | permissive | matech96/federated | d497d24e64399f6b1da673a8457e88a18bc29473 | b30a26d66162bd02a89a12f119e17925d161a26b | refs/heads/master | 2022-11-12T10:20:34.483506 | 2020-06-11T21:13:02 | 2020-06-11T21:13:30 | 271,650,529 | 0 | 0 | Apache-2.0 | 2020-06-11T21:31:51 | 2020-06-11T21:31:50 | null | UTF-8 | Python | false | false | 1,962 | py | # Copyright 2019, The TensorFlow Federated Authors.
#
# 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 o... | [
"tensorflow.copybara@gmail.com"
] | tensorflow.copybara@gmail.com |
64ee037a348f62ede96c0c96f074d48d1350d374 | 6b5c6d0258833d706cbcedc4499879bef659aeb4 | /tools/__init__.py | f5161f39b10fef2058eefc05f340a0aebcc33120 | [] | no_license | udjenweb/online_courses | ce80474a11d2dbb7c45e34597dd2ce79e6462074 | 515307de0ce3997610b150f361f88600fc8799bd | refs/heads/master | 2021-01-21T20:38:50.688646 | 2017-05-24T08:18:00 | 2017-05-24T08:18:00 | 92,264,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | # coding: utf-8
from .eve.eve_sqlalchemy_fix import EveSQLAlchemy
from .eve.domains import Domains
from .aditional.current_object import CurrentObject
from .http.response_standard_json import (
response_data_error,
response_data_success,
)
from .aditional.console import draw
from .aditional.loggingconf import... | [
"udjen.web@gmail.com"
] | udjen.web@gmail.com |
7f824ee40e811bbb0b10b06bebe9de412a97a178 | 65e07d1e35598e5686e743e9bdefcdd5e1269a0d | /archiveit_redirect.py | 51440f3afb3374425033df8ef6d544f7754a5e5a | [] | no_license | ale-gaeta/bentley_scripts | 94dbf3e120c218ec0af8ed235bc304ca45b3518e | 2ad4b986212715a495036697d78952dc53dad74c | refs/heads/master | 2023-03-15T14:12:12.595590 | 2016-06-30T19:02:55 | 2016-06-30T19:02:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,501 | py | import os
from os.path import join
import requests
from lxml import etree
import csv
import re
import HTMLParser
def get_redirect_metadata(redirect_dict, collection_id, redirect_dir):
skip = ['createdDate','lastUpdatedDate','active','public','note','url']
starting_seeds = {}
for seed in redirect_dict:
... | [
"djpillen@umich.edu"
] | djpillen@umich.edu |
2a90475a226a8743f66d4c4e113d97af8b7e8754 | 2f737cb4ac4e00d7f850624d5a9fc94e7425155b | /interview/views.py | b577b8b321bbb2cc19bd49026e5b968117448b1b | [] | no_license | eppel81/testchallenge | bd3a789a37280d8471a04c19eb1b4bdcf319fea7 | 3dce0ac40e1acbe691659786e765e34eb15a0ede | refs/heads/master | 2016-08-11T07:46:18.963408 | 2015-11-03T14:22:54 | 2015-11-03T14:22:54 | 43,557,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,076 | py | # -*- coding: utf-8 -*-
from django.shortcuts import render, get_object_or_404, Http404, redirect
from django.contrib import auth
from django.core.context_processors import csrf
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
from django.contrib.auth.decorators import permissio... | [
"gogenko@ukr.net"
] | gogenko@ukr.net |
ea6229eb0f4297817a25182b65275423940a989f | 425ef46a6f6a3fd799e059eeacda10068976a282 | /menu/migrations/0002_auto_20210605_2027.py | e8a60db0f6704a40945aa6dad772dcaf8c71bd1e | [] | no_license | dervin48/Final2021 | 6ac6365c9e2dbc31945afd7e5bf5a3ca5a97f439 | 30360210a3cdf9b5119b02af614a6421fb78c82a | refs/heads/master | 2023-06-28T22:24:35.515353 | 2021-07-28T03:39:59 | 2021-07-28T03:39:59 | 390,199,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | # Generated by Django 3.2.3 on 2021-06-06 02:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('menu', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='menu',
name='platillo',
... | [
"dervin48@gmail.com"
] | dervin48@gmail.com |
ddb9e86f2af78422c26df983d968c40f0bf75e76 | df4d6e326241b044b6de4064fd595be556f14902 | /src/mysite/resources/views.py | 6c8fb593075077c2a543a54423b686fcf0208c1a | [] | no_license | Joelant97/AppLeo-Proyecto_Final | 9218a088991a32ce90ed0a838ef88679d7f846d9 | ee1613d11302b007e254ecb676c8720d9a27d498 | refs/heads/master | 2021-06-24T10:30:56.337788 | 2020-08-26T09:18:24 | 2020-08-26T09:18:24 | 147,465,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,502 | py | from django.http import HttpResponseRedirect, HttpResponse
from django.shortcuts import get_object_or_404, render_to_response
from django.views import generic
from django.views.generic.edit import CreateView, UpdateView, DeleteView, View
from django.core.urlresolvers import reverse_lazy
from .models import Estudiante, ... | [
"joelant97@gmail.com"
] | joelant97@gmail.com |
5647512c5cd52dcc2a76ac3b597b98b37f41dd63 | 5552d301f74af1db5472fa6d1acbef8689ef3823 | /rango/choices.py | 5cfb0fef92463b3d77fdc4c242bc77788abad593 | [] | no_license | Conal97/IT-Group-Project | 4d80b1b9dd71db4b51c9f77408ecde3b24398bac | a916a82d605d32b68792382fc00bd45559734496 | refs/heads/master | 2023-07-05T12:37:17.393949 | 2021-08-06T21:37:42 | 2021-08-06T21:37:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | CHOICES = (
(1, '1'),
(2, '2'),
(3, '3'),
(4, '4'),
(5, '5'),
) | [
"conalbrosnan@gmail.com"
] | conalbrosnan@gmail.com |
727bc0e499477df5820ad111e776f25fb0102e8f | a5c975a059b785a413c5f8b47bc7127e326c4382 | /08_cell_line_prediction/nbconverted/plot_drug_response_classification.py | 1ed4b814ad288e7bec2cfab83ce5de61e928c983 | [
"BSD-3-Clause"
] | permissive | greenelab/pancancer-evaluation | a36d00c52ec1a6c44a1b3d7593adc107b546ea2c | 7650b0ff18dfa466b74937cfcac3317443d01056 | refs/heads/master | 2023-08-29T00:32:32.524308 | 2023-08-15T18:51:41 | 2023-08-15T18:51:41 | 283,575,430 | 9 | 2 | BSD-3-Clause | 2023-08-15T18:51:42 | 2020-07-29T18:38:57 | Jupyter Notebook | UTF-8 | Python | false | false | 8,622 | py | #!/usr/bin/env python
# coding: utf-8
# ## Analysis of drug response binary classification with held-out cancer types
# In[1]:
import os
import sys
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import pancancer_evaluation.config as cfg
import pancancer_evaluation.uti... | [
"jjc2718@gmail.com"
] | jjc2718@gmail.com |
721df6306fe4aea832ee672e8b82516f53baa8c3 | 4fd73945d4794f4fd38aa66d433afca83fbadff5 | /Ch2_compare_test.py | 626c7cd609b2b86d3d0dac824f45c584faf089d4 | [] | no_license | jasper2326/Scrapy | be120ba1b4c6fd218343c717dc8919e88ddf0af8 | 71227812b917bbd54fef6fb423e4e1f1c0bfca24 | refs/heads/master | 2021-06-29T16:04:35.132250 | 2017-09-16T13:45:52 | 2017-09-16T13:45:52 | 103,092,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | # author = Jasper_Jiao@ele.me
# -*- coding: cp936 -*-
# coding: cp936
import time
import re
import Ch2_compare
import Scrapy.Ch1.Ch1_download
NUM_ITERATIONS = 1000
html = Scrapy.Ch1.Ch1_download.download_3('http://example.webscraping.com/places/default/view/united-kingdom-239')
for name, scraper in [('Re... | [
"noreply@github.com"
] | noreply@github.com |
caf01fee84b8f19a586c8dadd8b3aa0ec0be2030 | be3f8a09a5b8859fffa07673cdfd17723e843b86 | /src/Socket_Control/coordinate_collation_interface.py | 61179a2af41d390603fb1d43dad2348078877ed4 | [
"MIT"
] | permissive | SamKaiYang/2019_Hiwin_Shaking | 88646a0a9ff87dfe96a3fb90ede44602bd413d53 | d599f8c87dc4da89eae266990d12eb3a8b0f3e16 | refs/heads/master | 2020-07-22T13:25:21.063822 | 2019-09-09T03:29:11 | 2019-09-09T03:29:11 | 207,216,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,413 | py | #!/usr/bin/env python3
# license removed for brevity
#encoding:utf-8
import tkinter as tk
import shake_strategy_trigger as shake_trig
import shake_strategy_content as shake_cont
# interface for collation
# =======================================================================
# =23/07/2019:add above pos_collation ... | [
"tt00621212@gmail.com"
] | tt00621212@gmail.com |
5ce0a9c5a2771d2c02defab056fef6f9f18b954d | 425348ff17e6dc9bf5e822378aa4c06260ec2e33 | /groceries_fwdtest.py | f4a2664871278fde506122239eebfdbc8f61fc05 | [] | no_license | themathgeek13/robotautonomyproject2020 | 002ff2d8b9a058f99611dd3c90086f16f7720660 | 2e09821ada48872b65d33710d5364e1bca8eedea | refs/heads/master | 2022-04-23T19:11:27.451491 | 2020-04-19T19:00:29 | 2020-04-19T19:00:29 | 254,685,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,171 | py | import numpy as np
import scipy as sp
from quaternion import from_rotation_matrix, quaternion
from rlbench.environment import Environment
from rlbench.action_modes import ArmActionMode, ActionMode
from rlbench.observation_config import ObservationConfig
from rlbench.tasks import *
from perception import CameraIntrins... | [
"themathgeek13@gmail.com"
] | themathgeek13@gmail.com |
1ab06a77f35eb8d3293bafaa982d6bf715318a5c | 40785f93b9db553b365ba5afc648ca6146002219 | /storage_down.py | 4522ff112393f19aab4b7b592539b2fba40fddc0 | [] | no_license | Juanmanuelramirez/storage_python_gcp | c088297baff7aee9f547168796344a7e6090b5cb | a1729bf6cc90502a53ef18b7f590b55443f8cdbd | refs/heads/main | 2023-02-21T17:18:35.528633 | 2021-01-25T22:16:31 | 2021-01-25T22:16:31 | 332,898,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jan 25 16:02:47 2021
@author: juan m ramírez
"""
from google.cloud import storage
def download_blob(bucket_name, source_blob_name, destination_file_name):
"""Downloads a blob from the bucket."""
bucket_name = "my-photos"
source_blob_name = "storage-o... | [
"juanmanuelramirez@users.noreply.github.com"
] | juanmanuelramirez@users.noreply.github.com |
5088bebe0a74fe7a49d2306ad3b49bf4a1f417e8 | b3aa8da5d15267f9d644dd4a97678deda34edf20 | /management/urls_v1.py | 666c1d886cb4f9ec954e1883510dfc9ae035c2cb | [] | no_license | igarcez/quarantine-help-api | e6a79a7b8a71d50446ddb59db48afe35452c531e | af0563345c16cddc0c87f0d6f60f23b1f885c82b | refs/heads/master | 2021-05-22T17:45:17.010174 | 2020-04-04T15:38:11 | 2020-04-04T15:38:11 | 253,026,248 | 0 | 0 | null | 2020-04-04T15:02:57 | 2020-04-04T15:02:57 | null | UTF-8 | Python | false | false | 298 | py | from django.urls import path
from management.views import ListCreateRequestsAPIV1, MeRequestDetailAPIV1
urlpatterns = [
path("requests/", ListCreateRequestsAPIV1.as_view(), name="create_list_requests"),
path("requests/<int:pk>/", MeRequestDetailAPIV1.as_view(), name="detail_request"),
]
| [
"tony.thomas@keyflow.se"
] | tony.thomas@keyflow.se |
61448bc81242a735d68558bf06e984de2a08c430 | 5e5b1a6cb0d3afe2c0b8e8ff36b53279c453b81b | /POC/POC/urls.py | ea1bc30c604473692e0068cacf39a74b4058abc1 | [] | no_license | akshayratimani/GITProjects | a422addd407680097d14fbc1e5e4c78c8a81b96a | 1ba9e272c11693337b7b295ab9dedcba75904525 | refs/heads/master | 2022-12-21T09:06:37.344947 | 2019-08-22T04:56:57 | 2019-08-22T04:56:57 | 195,341,518 | 0 | 0 | null | 2022-12-10T05:34:59 | 2019-07-05T05:00:40 | Python | UTF-8 | Python | false | false | 792 | py | """POC URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vie... | [
"akshay.ratimani@gmail.com"
] | akshay.ratimani@gmail.com |
e2a9bbdc2ea7cc162fcbc32b492bac04782e2765 | a01eb0b3e5f1ab895aa2873154c1e30d67a26767 | /venv/lib/site-packages/recordclass/dataclass.py | 6314b71002756048efa70598bfc80df6e0ab70b5 | [] | no_license | edonadini/SM_Exam | bb20af3826388d34459cbaf79ea57d65757772a5 | e1e3cb9ca47e4224c856bb1d9f3477e8fb844e14 | refs/heads/master | 2022-04-17T16:08:07.735003 | 2020-02-21T10:30:27 | 2020-02-21T10:30:27 | 239,159,329 | 0 | 0 | null | 2020-02-18T17:18:03 | 2020-02-08T15:59:40 | Python | UTF-8 | Python | false | false | 6,990 | py | # coding: utf-8
# The MIT License (MIT)
# Copyright (c) «2015-2020» «Shibzukhov Zaur, szport at gmail dot com»
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software - recordclass library - and associated documentation files
# (the "Software"), to deal in the Software wit... | [
"fedes770@gmail.com"
] | fedes770@gmail.com |
7a024d0157cfc178d4f1771c56c94ee8a96ad515 | fd41984178ffba0846fa7ab1f67c1a0843a5e3ff | /自动化办公与鼠标键盘模拟/2.读取PDF文件/读取PDF文件.py | f2f9dc6056b35277a8a88b16d765a546092ed2d4 | [] | no_license | LasterSmithKim/Python-Base | 23f17472ee80f7224e96a4185775c9cd05ac7a98 | 27756126d999ddabf53b6bdc7114903a297464a0 | refs/heads/master | 2020-03-28T08:00:11.156911 | 2018-11-28T09:54:51 | 2018-11-28T09:54:51 | 147,939,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,066 | py | import sys
import importlib
importlib.reload(sys)
from pdfminer.pdfparser import PDFParser,PDFDocument
from pdfminer.pdfinterp import PDFResourceManager,PDFPageInterpreter
from pdfminer.converter import PDFPageAggregator
from pdfminer.layout import LTTextBoxHorizontal,LAParams
from pdfminer.pdfinterp import PDFTextEx... | [
"kingone@yeah.net"
] | kingone@yeah.net |
7b684337197c473ca2fbb5bd628978519553e9fb | 2f07911e75ded21b80cae89ded82ce38f03a7931 | /example.py | 95c0f6863c126d023a70847fc9d9b552a45d593c | [] | no_license | benmaier/radial-distance-layout | 2b1571c34dd167301bfb8ea9750a177ac420cda9 | 9be12e2906138e239e72eeb6082ebcd3d569b3dc | refs/heads/master | 2022-02-23T08:09:58.174365 | 2022-02-12T21:44:41 | 2022-02-12T21:44:41 | 50,359,905 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | from radial_distance_layout import radial_distance_layout
import matplotlib.pyplot as pl
import networkx as nx
paths = [ [ 'a','b','c'] ]
paths += [ [ 'a','b','d'] ]
paths += [ [ 'a','e','f','g'] ]
paths += [ [ 'a','e','f','h'] ]
paths += [ [ 'a','e','i'] ]
paths += [ [ 'a','j','k'] ]
paths += [ [ 'a','j','l'] ]
di... | [
"benjaminfrankmaier@gmail.com"
] | benjaminfrankmaier@gmail.com |
2578e88ce408cf417424eda2136335cf2eb1c5d0 | a851830dbfd27d850e887d1cbc56c906512585d2 | /AS0/ps0-4-code.py | 7c37625f2438b193a9384e90e5fc0fc757b603e6 | [] | no_license | AlexisDrch/Computer-Vision | d6861f1e11401b6c0b131026bc22a76433b74025 | dc2687d53af73dd4e973bf969c48ae9f343bd49d | refs/heads/master | 2021-01-25T11:55:47.316194 | 2018-04-06T06:15:49 | 2018-04-06T06:15:49 | 123,440,935 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,549 | py | # ### 4. Arithmetic and Geometric operations
from scipy import misc
from scipy import ndimage
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
# ### a.
# input 2 pictures as numpy ndarray
picture_1 = misc.imread('./pictures/ps0-1-a-1.jpg')
picture_2 = misc.imread('./pictures/ps0-1... | [
"aleksi.durocher@wanadoo.fr"
] | aleksi.durocher@wanadoo.fr |
23993e6b312f5319a07ecd4680effe7fcf0d9c67 | 0561e7ef249845903457870b50331977af95bb7c | /networks/pemp_stage2.py | 63de0014b8370800d1d72b8f18b2ed17c6a45622 | [
"MIT"
] | permissive | Jarvis73/PEMP | 70412d5d600aaabf13eaedea9fe0af0f02d2785c | d7a300f8b7565efe478473ee4a7ee63bf0031c8c | refs/heads/main | 2023-05-27T22:24:30.209445 | 2021-06-07T07:00:57 | 2021-06-07T07:00:57 | 372,802,221 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,778 | py | from collections import OrderedDict
from pathlib import Path
import torch
import torch.nn as nn
import torch.nn.functional as F
from networks import backbones
from networks.pemp_stage1 import net_ingredient, PEMPStage1, pretrained_weights, backbone_error
PriorNet = PEMPStage1
@net_ingredient.config
def priornet_co... | [
"zjw.math@qq.com"
] | zjw.math@qq.com |
f9088491167a8f8b689fd4cfdb455a3caa9daabc | 6d85b0c31816d14e37ff2e9ba29edc700aeb072d | /tests/test_log_post.py | cdbc5b26ebfb60308d6fb50a78fe0877b4e746e6 | [] | no_license | shayan-7/accesshandler | 6221fddf23add8d5d70d7cf4d9494a86ad64e51f | 22e25dcbc557f8c3ba087c9480876637db95941d | refs/heads/master | 2020-12-30T04:59:44.717051 | 2020-02-22T11:39:18 | 2020-02-22T11:39:18 | 238,868,370 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,602 | py | from bddrest import status, given, when
from accesshandler.models import Rule
from accesshandler.cache import redisconnection, keystr
from .helpers import LocalApplicableTestCase
class TestLog(LocalApplicableTestCase):
@classmethod
def mockup(cls):
session = cls.create_session()
cls.rule1 = ... | [
"shayan.rokrok@gmail.com"
] | shayan.rokrok@gmail.com |
0266bd7134271024524ddc5c990c861f50637257 | 33e6e2263f5119b9c636a0bcd709d1640ac4e3ad | /ex/ch4-6.py | 84ef988befad8c221b56e13a508437158c808018 | [] | no_license | jonsant/python | 5efee9c4314acedf2ef137cc432910963303ea0c | 9f42e2334e40cb59d70ede63f682c94130e84c7d | refs/heads/master | 2020-07-01T15:11:06.297789 | 2019-09-06T07:40:36 | 2019-09-06T07:40:36 | 201,206,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | numbers = list(range(1, 21, 2))
for number in numbers:
print(number)
| [
"jonssonanton@hotmail.com"
] | jonssonanton@hotmail.com |
1145c0f615ad23c04858d918f11de82d472a12dc | ad3f8004c9618b682be086976b4e684020983614 | /AVByPass/asgi.py | 2bcce0d7cc7db17592d7ffc2947300ba2e95b410 | [] | no_license | h1ck0r/AVByPass | 772520e8e5ed06e046bccd027f462fe65a044cd8 | 45756de452cc1f7d079f5b0bdcf942ef51d8094d | refs/heads/main | 2023-07-14T07:45:29.311293 | 2021-08-27T09:05:54 | 2021-08-27T09:05:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
ASGI config for AVByPass project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETT... | [
"1356654790@qq.com"
] | 1356654790@qq.com |
434fdb58896efe0f73e59f882ed49683762ff4ed | c78e4099ed26a16e10c6c84fa1340ecab87543f2 | /userbot/__main__.py | 1acb072dc64b8265230aca7f8b60fbdbe52a84c0 | [
"MIT"
] | permissive | Azharjacx/NandiOXbot | 6cd903636249471470b2d6fe3d5c29e6cb5541f4 | c1ee9162123d4ecda1da79124ae1219d79e148a0 | refs/heads/master | 2022-04-17T02:20:15.729587 | 2020-04-18T17:47:21 | 2020-04-18T17:47:21 | 256,779,578 | 0 | 0 | MIT | 2020-04-18T14:53:51 | 2020-04-18T14:53:51 | null | UTF-8 | Python | false | false | 8,938 | py | from userbot import bot
from sys import argv
import sys
from telethon.errors.rpcerrorlist import PhoneNumberInvalidError
import os
from telethon import TelegramClient
from var import Var
from userbot.utils import load_module
from userbot import LOAD_PLUG, BOTLOG_CHATID, LOGS
from pathlib import Path
import asyncio
impo... | [
"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.