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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
30c68a7f2b2becc4f6f4df45a976b76f30e1591a | 2e6b15509a4487241f5734346e8ac9173c958c99 | /django-heroku/wsgi.py | 47ce2f18f91679239b037018f891010cbd62af47 | [] | no_license | Bibliocratie/Bibliocratie | 9dd47ab105eb7e0dfb2566b307ad8bfd66b1aad5 | b66347ced05dc7821e721fd3d05d619791e4d543 | refs/heads/master | 2020-06-05T08:07:19.298421 | 2015-07-27T16:03:34 | 2015-07-27T16:03:34 | 39,377,060 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | import os
if not os.environ.has_key('DJANGO_SETTINGS_MODULE'):
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'django-heroku.settings.prod')
from django.conf import settings
from django.core.wsgi import get_wsgi_application
from ws4redis.uwsgi_runserver import uWSGIWebsocketServer
_django_app = get_wsgi_applicati... | [
"B@MacBook-Air-de-B.local"
] | B@MacBook-Air-de-B.local |
8360faa0d31d50eef471dccad16bfd4386691623 | 7da1ec9bef7d196f606868bdc3626d97cc9fac9e | /src/app.py | fb7e0bfbcba827be3cb51f556e00f8942b49be8d | [
"MIT"
] | permissive | budavariam/flask-starter | 1b36485d6a1e6e5529b44363f5820cef36dc6a10 | 8fb65bd584860e7538501abad69432d66ec39e1d | refs/heads/main | 2023-03-17T08:22:14.608597 | 2021-02-27T11:34:28 | 2021-02-27T11:34:28 | 342,830,658 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 735 | py | from flask import Flask, request
import os
import logging
import json
log = logging.getLogger()
app = Flask(__name__)
@app.route('/data', methods = ['POST'])
def post_endpoint():
try:
data = request.get_json(force=True, silent=True)
if data is None:
data = dict()
a = data.get("... | [
"budavariam@gmail.com"
] | budavariam@gmail.com |
c8b87c41f32998b463217b16fc1f4ff0a8d275a6 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/TSZLQX/YW_TSZL_QXJY_023.py | 0361e34af00e10526411e4766416568a5bb4e161 | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,295 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from ServiceConfig import *
from mainService import *
from QueryStkPriceQty import *
from log import *
sys.path.append("/h... | [
"418033945@qq.com"
] | 418033945@qq.com |
a246a75a3361ac96db9e074d4c7f4593f016116d | 0bb2bfd8e378bf1893b169355ac1e031c21a469c | /gen_crawler/configs/auto360_config.py | 223b0ac570ea49634b629a6e4d0554d5a8941451 | [] | no_license | DMGbupt/general-crawler | f0ac919f80bf2745456355d912ed252508abda63 | 6a97374d0faf55dcf33b645a21d3d172b6400e1e | refs/heads/master | 2021-01-10T17:58:17.151451 | 2016-01-09T15:05:32 | 2016-01-09T15:05:32 | 54,119,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,587 | py | # -*- coding: utf-8 -*-
CONF = [
# 政策法规
{'keyword':"政策法规", 'url': "http://www.autochina360.com/news/zhengcebiaozhun/list_24_1.html"},
# 汽车行业资讯
{'keyword': "乘用车",
'url': "http://www.autochina360.com/news/zc/cyc/list_3_1.html"},
{'keyword': "商用车", 'url': "http://www.autochina360.com/new... | [
"li_enterprise@163.com"
] | li_enterprise@163.com |
640e41c092c6f04dcaa03f6fd45f7d5d7b4e8500 | f899c1c5ea6283a06d86d2acf576ad9211657904 | /ejui/__main__.py | 69092aafb576d47c132f76fa210be32747aa554f | [] | no_license | sleirsgoevy/ejui | 59867d0784f7d05cdb83846f7f984dff212c024d | f3c964f40c94a23e9050edca9e7c460b4013d0d2 | refs/heads/master | 2021-07-05T21:50:06.477276 | 2020-08-24T22:16:18 | 2020-08-24T22:16:18 | 169,611,662 | 1 | 2 | null | 2020-01-22T13:47:47 | 2019-02-07T17:23:59 | JavaScript | UTF-8 | Python | false | false | 543 | py | import ejui, sys, os.path
if len(sys.argv) != 3:
sys.stderr.write("""\
usage: ejui.py <bind_addr> <tgt_addr>
Environment variables:
* EJUI_PRELOAD
`pathsep`-separated list of modules to be imported before ejui starts.
""")
exit(1)
if 'EJUI_PRELOAD' in os.environ:
for i in os.environ['EJUI_PRELOAD'].spl... | [
"sleirsgoevy@gmail.com"
] | sleirsgoevy@gmail.com |
e4701e25f8387d1dcd3ef351894d00ed975c5a08 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/150/usersdata/269/65305/submittedfiles/formula.py | cb676043cecd68bf46ac20543bd3863f9f65501c | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | # -*- coding: utf-8 -*-
p=float(input('digite o valor de p: '))
i=float(input('digite o valor de i: '))
n=float(input('digite o valor de n: '))
v=p * (((1+i)**(n))-1)/i
print('%.2f' %v)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
49a792fdecbea9605461319909fcf1366104dd64 | f0eac781f81f2f9646b2200053996e120ba8c07a | /src/k_medoids.py | 88af82ee821ae4a00e6b13ccb07d6bd003b67f81 | [] | no_license | jsnajder/derivsem | 9cbb620030bcba5ea1593dca13d9dccf50fe773d | dbae8f7980d1a67524256d702454d69fec7eda10 | refs/heads/master | 2021-01-17T17:36:05.883896 | 2016-07-15T06:17:15 | 2016-07-15T06:17:15 | 61,334,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,551 | py | # -*- coding: utf-8 -*-
"""K-medoids clustering"""
# Authors: Timo Erkkilä <timo.erkkila@gmail.com>
# Antti Lehmussola <antti.lehmussola@gmail.com>
# License: BSD 3 clause
import numpy as np
import warnings
from sklearn.base import BaseEstimator, ClusterMixin, TransformerMixin
from sklearn.metrics.pairwise ... | [
"jan.snajder@fer.hr"
] | jan.snajder@fer.hr |
87dbff658ae770b9bca26bd7a9f89f92a20076a0 | 06c2bc496f9e285f06e4c3c71f14d5716f411d89 | /source/webapp/migrations/0021_auto_20210610_1547.py | fa679f2b5e70fab614b61a495f398519a08f1cbb | [] | no_license | Beknasar/Coin_collection | 37a9e77cc00270dfcb9d0cb5916f985cec4c591d | 091860f98e7dc81d460ab0cbcb6ca1d7fdeffda8 | refs/heads/master | 2023-06-09T16:25:30.473134 | 2021-06-25T09:31:13 | 2021-06-25T09:31:13 | 365,229,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | # Generated by Django 2.2 on 2021-06-10 15:47
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('webapp', '0020_auto_20210610_1547'),
]
operations = [
migrations.AlterField(
model_name='nominal'... | [
"680633@gmail.com"
] | 680633@gmail.com |
363f94f384d15bce02adc5109174fd90c3c397e8 | f93e8ea5ae86019a7e836f8a33422d3c4522e341 | /thief/solution.py | 1e150692539f8fa6d069f7b3d47d2ea7969b6e3e | [] | no_license | Jack2ee-dev/NKLCB_homework | 3c65c29c047486f1f8121c0c303e9e13b7e9da99 | f4d479bac4a6ae36790fc1908f0a6e3b6acd30b4 | refs/heads/master | 2023-03-29T13:46:36.631531 | 2021-04-09T06:34:05 | 2021-04-09T06:34:05 | 350,281,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 878 | py | def solution(money):
dp1 = [0] * len(money)
dp1[0] = money[0]
dp1[1] = max(money[0], money[1])
for i in range(2, len(money) - 1):
dp1[i] = max(dp1[i - 1], money[i] + dp1[i - 2])
dp2 = [0] * len(money)
dp2[0] = money[0]
dp2[1] = money[1]
for i in range(2, len(money)):
d... | [
"Jack2ee.dev@gmail.com"
] | Jack2ee.dev@gmail.com |
5c48cd3176e4d1e95a401bc2936dcae87e3de95c | 4be610e4c817203001d9847d46d0425b3aa5a0af | /10-organizing-files/backupToZip.py | 8af9507e1c3dd13a8c5c231cee3f04a6bb170e44 | [
"CC-BY-NC-SA-3.0",
"LicenseRef-scancode-cc-by-nc-sa-3.0-us"
] | permissive | UIHackyHour/AutomateTheBoringSweigart | 600430ae3552b1c668d0d3582880df2deb73e474 | d482d0e0401bf29f9a570ca01bb5beaf21beb7a4 | refs/heads/main | 2023-04-10T10:08:27.545266 | 2021-04-28T21:29:19 | 2021-04-28T21:29:19 | 327,053,819 | 0 | 0 | CC0-1.0 | 2021-01-05T22:39:23 | 2021-01-05T16:21:17 | null | UTF-8 | Python | false | false | 1,300 | py | #! python3
# Backing Up a Folder into a ZIP File
import zipfile, os
def backupToZip(folder):
# Back up the entire contents of "folder" into a ZIP file.
folder = os.path.abspath(folder) # make sure folder is absolute
# Figure out the filename this code should use based on
# what files already exist... | [
"trevorcline@Trevors-MacBook-Pro.local"
] | trevorcline@Trevors-MacBook-Pro.local |
8b3a17b5b6b215cc6f286f8e146cb719e391fb49 | 0a4105df9a214c6e80daf2f812d5a8a81109d42e | /dishes/apps.py | a0a5084647b3d9d329b21af0b8d240c936e8393c | [] | no_license | IrinaGnatiuk/Pizza_Views | f4d60ac1a167d49cafbd99276ae580f6c2a1e1ef | 70084dc99dd307cfd07406bfc26ad7cfd07cdc26 | refs/heads/master | 2022-12-11T12:39:06.432326 | 2020-01-20T01:05:02 | 2020-01-20T01:05:02 | 221,529,972 | 0 | 0 | null | 2022-12-08T06:52:39 | 2019-11-13T18:54:19 | Python | UTF-8 | Python | false | false | 119 | py | from django.apps import AppConfig
class DishesConfig(AppConfig):
name = 'dishes'
verbose_name = 'Блюда'
| [
"sestr2008@gmail.com"
] | sestr2008@gmail.com |
e4c482d19e461b1f257c7f1aa5ba7118597292f3 | b4dea654e49c28230236113770d0a1c17f0a8968 | /DFS/Permutation/LT10. String Permutation II.py | 7a4ab4f26bdb0c217e807c30b5ff08ef5867cd3c | [] | no_license | ruifengli-cs/leetcode | cd751905526c7d8effa0fb95b296deb6e7124b7a | 70abc023ede5f5039fbf336c7401d2596069fdc5 | refs/heads/master | 2023-05-07T02:52:34.303865 | 2021-05-24T12:57:35 | 2021-05-24T12:57:35 | 255,133,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,590 | py | class Solution:
"""
@param str: A string
@return: all permutations
"""
def stringPermutation2(self, str):
res = []
if str is None:
return res
s = sorted(str)
visited = [False] * len(s)
self.dfs(s, visited, [], res)
return res
def dfs(... | [
"ruifengl@asu.edu"
] | ruifengl@asu.edu |
a74b5a47749eecdcdd70e0505f3335a12e7c9777 | 789819586d2c194f8e17d1863485980eec4afa50 | /Feature_extraction/example.py | 6e7e076304d8e4b0806898cca3923686cf396158 | [] | no_license | naveentrtumkur/AUAV-Research-Project | f758fe631379ce46e7d4763d69bfe96ca68fdece | 5bc11394b761860b9876041a40b62e00fa935cf9 | refs/heads/master | 2018-10-04T21:25:15.840744 | 2018-07-09T03:24:43 | 2018-07-09T03:24:43 | 118,203,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,650 | py | res=[]
with open('JSONfile58.json','rt') as myfile:
for line in myfile:
#print(line)
res.append(line.strip("{}"))
print(res[0])
list = res[0].split(',')
print(list)
print(list[2])
path_taken = list[2].split(':')[1].strip('\"')
print(path_taken)
pos = []
for char in path_taken:
pos += char
pr... | [
"naveentrrko@gmail.com"
] | naveentrrko@gmail.com |
a9541f2263a36a67d536e3b5f976870bd7d1b6d2 | ae36cf5a7106651c48ef2bc1a717c91560d0fb1d | /source.py | e47d63698ff6cc1ba2237613478490925bb4ac0b | [] | no_license | shilyaev/dollar | 596fdf2bdeca58eb1a790a3b02cd6f209fae4c4d | 7f5ee9fe5145c2b52cec773cc6713f08fb46d49e | refs/heads/master | 2020-04-05T18:42:41.561255 | 2018-11-11T18:48:13 | 2018-11-11T18:48:13 | 157,109,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | print('veweeerev')
input_file = open('kursUSD.txt', 'r')
max_dolr=1
max_data= " "
for line in input_file:
date,d = map(str, line.split())
dolr= float(d)
if dolr > max_dolr:
max_dolr=dolr
max_data=date
print(max_data,max_dolr) | [
"noreply@github.com"
] | shilyaev.noreply@github.com |
ce29d63af7d7b777817311449a9f21203a59a0d0 | de8e3ddb8de718ff8eda90c5a5e397bc95da1fec | /news/models.py | f9854b87596f90d394c0ba99dabb793df4fc3903 | [] | no_license | OoGod/test3 | 03138a3629f1f00d82c4b0d8edc1b8a333870c03 | 2aefeeaa92eab40589e9f69d5b3317c6f3492fe9 | refs/heads/master | 2022-09-24T14:49:10.562480 | 2020-06-03T10:11:04 | 2020-06-03T10:11:04 | 268,289,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | from django.db import models
# Create your models here.
class Reporter(models.Model):
full_name = models.CharField(max_length=70)
def __str__(self):
return self.full_name
class Article(models.Model):
pub_date = models.DateField()
headline = models.CharField(max_length=200)
content = models.TextField()
report... | [
"1617605689@qq.com"
] | 1617605689@qq.com |
445b3eac094beeefe440e61283fe081b1907dc3f | cd33a8a9d028aaf4acb4f39e040e512efc1ac30a | /funcs.py | a9da1ac4db5f9f7a3c74df1acb4499deac7e0e32 | [] | no_license | TazzerLabs/LegV8Interpreter | 41b27e09132e4855de43cd9602c23a1727a49eff | 292eea585e30b0e0708f461c4f1c67d93ea75a97 | refs/heads/master | 2020-05-07T16:20:07.937545 | 2019-03-27T15:08:30 | 2019-03-27T15:08:30 | 180,678,062 | 1 | 0 | null | 2019-04-10T23:18:58 | 2019-04-10T23:18:58 | null | UTF-8 | Python | false | false | 1,995 | py | from state import registers, flags
rM = 0
rN = 0
rD = 0
iM = 0
#Takes a uint and returns a int64. If the original value would
#require more than 64 bits, MSBs will be dropped until result
#is within range
def s64(value):
return -(value & 0x8000000000000000) | (value & 0x7fffffffffffffff)
def add(args):
rD = ... | [
"lizzieaxworthy@gmail.com"
] | lizzieaxworthy@gmail.com |
74d2f25d719bb7c0f4488281596ce6c285b03291 | 19e53b7c76a96fb2f9ec4af616d8ef58d544e606 | /PythonWebProject/app/__init__.py | 0eb132a4e2d6d70d117ec359f25e0bbf432d2045 | [] | no_license | nhatminh7599/QuanLyBanVeMayBay | ace7130e24dccddde6ce63bb64e62f0cf7f5e4f5 | 7655f1e948481cb8943259f5e310b75a8a87764b | refs/heads/master | 2022-12-20T20:45:36.777569 | 2020-09-15T03:07:43 | 2020-09-15T03:07:43 | 287,444,711 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_admin import Admin
from flask_login import LoginManager
app = Flask(__name__)
app.secret_key = "ui21eui2g"
app.config["SQLALCHEMY_DATABASE_URI"] = "mysql+pymysql://root:mysql@localhost/ql_maybay?charset=utf8mb4"
app.config["SQLALCHEMY_TRACK_M... | [
"55686100+nhatminh7599@users.noreply.github.com"
] | 55686100+nhatminh7599@users.noreply.github.com |
1112c20c4c94f80596425d484a9e11c10ad8aa7c | cbb54ff7d0f99f236f52d610c660e96ff6172994 | /portfolio/migrations/0003_extractmodel.py | 10a1142cce62663ff0062973978d987722211587 | [] | no_license | anvesh001/myproject1 | 8cb006fa28c1a9f5e44a43833e0d6c3e0500ec2d | a11c9914069e557b41a7e52800d143094113a2c6 | refs/heads/master | 2020-06-19T03:28:35.006550 | 2019-07-16T05:16:07 | 2019-07-16T05:16:07 | 196,547,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,200 | py | # Generated by Django 2.0.7 on 2019-07-10 11:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('portfolio', '0002_auto_20190710_1603'),
]
operations = [
migrations.CreateModel(
name='ExtractModel',
fields=[
... | [
"anveshkumarnaidu402@gmail.com"
] | anveshkumarnaidu402@gmail.com |
12300c616f6416b65f3f2160cf6344be27afc91e | 1dcd99bb96d9c51b2b561e7c2e54615cf2bc5ced | /Question/BOJ/boj-7576.py | 6dacfcda86b8ca16034623d1077da164c19ec709 | [] | no_license | dongsik93/HomeStudy | 62bbcad93be49ed396fe9d50e840f921bb751d4e | 3a28ff8c0b522a546ea2ed07c939f49bac3699c7 | refs/heads/master | 2020-04-15T02:12:36.615830 | 2019-04-05T14:31:10 | 2019-04-05T14:31:10 | 164,306,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | import sys
import collections
input = sys.stdin.readline
di = [0, 1, 0, -1]
dj = [1, 0, -1, 0]
def bfs(n, m):
while(len(q) != 0):
x = q.popleft()
y = q.popleft()
for k in range(4):
dx = x + di[k]
dy = y + dj[k]
if(0<= dx and dx < n and 0 <= dy and dy < m... | [
"ehdtlr9376@naver.com"
] | ehdtlr9376@naver.com |
aff6901869ffbfb81b0fc9252912176484570d69 | a9267d6bb30cf626fc5311f3ea3b51604e4f2f40 | /bixi_import/bixi_import.py | 9f26d4be16f73cabf2f9ea0e75fb9141eda2b15b | [] | no_license | AndresUrregoAngel/Python | df1cefd18382f4458586fc17bd8ca2ef334f3db9 | 47c9fafb7bbce5db882e771c80ab90245c73cefd | refs/heads/master | 2021-07-21T00:21:12.700393 | 2019-08-07T23:22:54 | 2019-08-07T23:22:54 | 102,917,152 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | import requests
import datetime
import json
'''
def lambda_handler(event, context):
#print("Received event: " + json.dumps(event, indent=2))
print("value1 = " + event['key1'])
print("value2 = " + event['key2'])
print("value3 = " + event['key3'])
return event['key1'] # Echo back the first key value... | [
"ingenieroandresangel@gmail.com"
] | ingenieroandresangel@gmail.com |
c2d0a6384e9d3292575cb6d5553dc3245695a38c | 6a2bbf187700b40e94a3296a083ebcf72b4b6400 | /runCFile.py | fcd9ff44fd217908db5f547eddf70ee1fdba6d9a | [] | no_license | JusperLee/Accelerator | 0a2f5cbb05b9bce74a1558ee71f4fc8ea3d4820d | 036bfb28b2f290be5581616aab89ccb25f48224f | refs/heads/master | 2020-04-13T19:37:50.522003 | 2018-12-28T12:33:21 | 2018-12-28T12:33:21 | 163,408,442 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | # coding:GBK
import os
def function1(n):
s = ""
for i in range(10):
mystr = os.popen(r".\bing.exe")
str1 = mystr.read()
str1=str(str1)
s_list=str1.split(" ")
print(s_list)
if i != 9:
start = str1.find("Time")
s = s + s_list[2]+"\n"
... | [
"likai614020758@126.com"
] | likai614020758@126.com |
d96d68a7a4db92296593d1bedb049cd728c7abf7 | 69dee5cfda2e9ae20745f6f3f588a007e7321a52 | /blog/urls.py | a1af804e6596799bb8ea6c72115c07192660989b | [] | no_license | PhilBug/django-blog | 0bb134529b33eb0bd79c3d4925bd047e1f7d01dc | 1c92fc2efa3058a8221120e810b38889e705e96e | refs/heads/master | 2023-02-19T22:44:06.764192 | 2021-01-26T01:18:31 | 2021-01-26T01:18:31 | 332,064,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | from django.conf.urls import include
from django.contrib import admin
from django.urls import path
from django.conf.urls.static import static
from django.conf import settings
urlpatterns = [
path('', include('pages.urls')),
path('posts/', include('posts.urls')),
path('admin/', admin.site.urls),
] + static(... | [
"fbugaj@match-trade.com"
] | fbugaj@match-trade.com |
76820a662c6161e2368acd522923d6b0fdef9ade | a16cd1cfc9ec3b0f0008cadd633b8cb0e82dcd44 | /Quad2d.py | 6e0edb782b0e00b7241b392fe31648be419172f8 | [] | no_license | rprospero/PAPA-Control | 59cbbcbfb9c9d8d72d13d431f21550add197f949 | 1e8baa472d778a2b85ad75415b9de84e35bece2f | refs/heads/master | 2021-01-01T04:25:50.310931 | 2012-07-27T14:57:43 | 2012-07-27T14:57:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,109 | py | from reader import PelFile
from monfile import MonFile
import matplotlib.pyplot as plt
import Combiner
import numpy as np
from optparse import OptionParser
from QuadReduction import getf
basedir = "C:/Documents and Settings/sesaadmin/My Documents/Neutron Data/"
def raw(run,name,start=50,end=100,size=512):
p = Pe... | [
"adlwashi@indiana.edu"
] | adlwashi@indiana.edu |
4955a3ad84b413d2bc9da658fc39c7bb9d546863 | 32d39e0729d4a16b65e2550c84aa6b37b228ca08 | /remote_tx2/remote_catkin_ws_src/src/start_ros_serial/scripts/start_serial.py | f713b7f5c4e7d1e77371e26af1fdde26b0693c9a | [] | no_license | BishrutSubedi/DNC_LAB_ACDA | b6a9fa82c87010929e478186df8c2f72de9c3f88 | ad86cad62586b69b11c9432b1879a88241a12bc8 | refs/heads/master | 2022-04-18T12:28:18.386526 | 2020-03-09T21:42:36 | 2020-03-09T21:42:36 | 241,815,884 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | #!/usr/bin/env python
import rospy
import os
import sys
from std_msgs.msg import String
global i
i=1
def callback(data):
global i
if i==1:
os.system("roslaunch /home/nvidia/catkin_ws/devel/sshnodes/remote_serial.launch")
rospy.loginfo(rospy.get_caller_id() + "I heard %s, &d", data.data)
i=i+1
de... | [
"bishrut.subedi@mavs.uta.edu"
] | bishrut.subedi@mavs.uta.edu |
a4cd0950566d7dfff895e27838a57325bbe29f5a | bd8fe48d13ac36cffe19865b7e2c4252d814e47e | /hw2/code/HW2_test.py | b66b485f40529b39c0dbb8804c66a2bb57e2efce | [] | no_license | alvinsunyixiao/ece551-fa20 | 904e5ded28fca223cc5d21c6bdc60e9b037bd7ba | 8b6e59b0f5f7cac7e3079a3446e241d6bd0ce6a9 | refs/heads/master | 2023-01-27T11:31:52.633656 | 2020-12-12T02:53:37 | 2020-12-12T02:53:37 | 294,875,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,755 | py | import numpy as np
from HW2 import CGS, MGS
import unittest
# Enables testing window functions and convolution
# Overrides the later fine-tuned controls
# Test Classical Gram-Schmidt
TEST_CGS = True
# Test Modified Gram-Schmidt
TEST_MGS= True
class OrthonormalTest_CGS(unittest.TestCase):
""" Spot Checks for CGS... | [
"alvinsunyixiao@gmail.com"
] | alvinsunyixiao@gmail.com |
2751322dd0b9dc7698eed0d0be2c08eef3eefb56 | 52632757620e5d3f4577e9c8c92a99bcdfa1c058 | /MiV400Automation/lib/WebUIComponent.py | db37439c398e44b5ef943a899901a8a46c8be85f | [] | no_license | vijayp530/MiV400Automation | 5dbf96ae566135fe30ee732bb12b283b6df581e9 | 00b4f2eb7d888f23f99ae04ed27308e1bef62da0 | refs/heads/main | 2023-05-01T09:44:48.997067 | 2021-05-10T13:07:32 | 2021-05-10T13:07:32 | 366,044,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65,607 | py | import sys
import os
import time
import yaml
import csv
import logging
import pysftp
# framework_path = os.path.join(os.path.dirname((os.path.dirname(os.path.dirname(__file__)))), "Framework")
# sys.path.append(os.path.join(framework_path, "phone_wrappers"))
# from PhoneInterface import PhoneInterface
from robot.api.... | [
"Vijay.Pawar@mitel.com"
] | Vijay.Pawar@mitel.com |
ecd426d08def8b51ef4bf7172607e4690d2fe7ae | efa152f1838156eef73f2e92b40df8598113cfef | /solid-principles/open-closed-principle.py | 1ddf6a1d179a17d043e103c70f8d2a7d9b853130 | [] | no_license | lexuancuong/SoftwareDesign | 0b18586839e72cdc18440b7541015ae8664ffe5f | 49126bc3bddf802cf50884dd47a67ce0bd5d421e | refs/heads/master | 2023-07-06T02:41:49.569421 | 2021-08-07T11:11:29 | 2021-08-07T11:11:29 | 255,578,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | #[[OBJECT OR ENTITIES SHOULD BE OPEN FOR EXTENSION BUT CLOSED FOR MODIFICATION]]
# This principle mean that you need to abstractize the base class. If you want to change something, you need to customize it in the base classes. Dont change it in ther top classes
# I have implement an example code that using abstract c... | [
"cuongle.software@gmail.com"
] | cuongle.software@gmail.com |
98d18f60db6f9d172118700744b25c66f8263cdd | 9db05efc1aeafa3a60823c053b9b6e5e6f900e4c | /setup.py | c66d6199914a7e3421f0337a37c1986388a849db | [] | no_license | Henri-Laiho/optiline-side | ded1a12a6c07af9f0ca8982dbbf03c42b90332b7 | 910adaf513ac3049afef137b72a2913bbee3ba3a | refs/heads/master | 2022-12-30T15:21:06.950461 | 2020-10-19T09:08:35 | 2020-10-19T09:08:35 | 302,873,955 | 1 | 1 | null | 2020-10-13T13:02:37 | 2020-10-10T10:16:43 | Python | UTF-8 | Python | false | false | 186 | py | from setuptools import setup
setup(
name='optiline-side',
version='1.1',
packages=[''],
url='',
license='',
author='',
author_email='',
description=''
)
| [
"gghalfer@gmail.com"
] | gghalfer@gmail.com |
41eb1f95e04baf4c1693f5cd76d8c952fb22ac2b | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/I_to_M_Gk3_no_pad/pyramid_size256/pyr_4s/bce_s001_tv_s0p1_L7/step11_L2345678.py | d32ad63e9e2ef902bab64c6f49cccaa8d83a9971 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46,385 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
be390ae9f202c71ab02345f1e03035e96da92b35 | 2c18bbedd58fbe6985ed483c14e194d0757807e2 | /src/deploy/osp_deployer/checkpoints.py | 5d267007f76c8650c6ce6c564d4e149dc6217d09 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | kholohan/JetPack | ec5d406b327cc20367ffcb79af39934ee9704220 | d3a6a80881b833105578461882fd49313e5e9d8f | refs/heads/master | 2021-05-05T22:26:54.511952 | 2017-12-18T15:25:31 | 2017-12-18T15:25:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,604 | py | # Copyright (c) 2015-2017 Dell Inc. or its subsidiaries.
#
# 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 l... | [
"gael01@gmail.com"
] | gael01@gmail.com |
f9dbfac65b4793686f531cc4ec8b1d6f0a2a6c52 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02881/s975712873.py | e950898d06b66329af5a0e6c71bd6e8d7d05e1f4 | [] | 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 | 120 | py | N=int(input())
ans=N-1
x=1
while x*x<=N:
if N%x==0:
y=N//x
ans=min(x-1+y-1,ans)
x+=1
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
560d128f80170488cbfc0912c7031cbc66274cbc | bedef4c203bb7921aab99324c4f7be9d4ad86993 | /ros2/src/airsim_ros_pkgs/launch/airsim_node.launch.py | 8343f596eef5a14fc794d8af31662a7d019c654a | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | DavidLSmyth/AirSim | 801438f61f37588c0a0ff2aa79f2128e2e3f4407 | 4266b898ac5b20f35ebca3f2e3fa821b336dec69 | refs/heads/master | 2021-12-15T14:55:55.554906 | 2021-12-08T07:36:03 | 2021-12-08T07:36:03 | 112,334,210 | 5 | 2 | NOASSERTION | 2021-12-09T11:50:26 | 2017-11-28T12:44:31 | C++ | UTF-8 | Python | false | false | 1,825 | py | import os
from launch import LaunchDescription
from launch.actions import DeclareLaunchArgument, IncludeLaunchDescription
from launch.substitutions import LaunchConfiguration
from launch_ros.actions import Node
from launch.launch_description_sources import PythonLaunchDescriptionSource
from ament_index_python.package... | [
"alonfaraj@gmail.com"
] | alonfaraj@gmail.com |
2d66c5a02e0c6f47e834a2bb9f8225ef2d8c18fc | 5e95083d63ce1e76385dd34c96c13c7ac382aa28 | /Минимальный делитель числа.py | 37f2eb646e8d945ff4aacad95d43082c25716f5f | [] | no_license | oOoSanyokoOo/Course-Python-Programming-Basics | 1ee3bff98259951d87d8656af1519884fb089f41 | 88a8ada069da45a882942ef83dd3d3bcb9cb3b0d | refs/heads/main | 2023-06-14T20:57:25.347205 | 2021-07-08T07:09:20 | 2021-07-08T07:09:20 | 384,029,659 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | def MinDivisor(n):
i = 2
while i <= n:
if i * i > n:
print(n)
i = n + 1
elif n % i != 0:
i += 1
elif n % i == 0:
print(i)
break
n = int(input())
MinDivisor(n)
| [
"noreply@github.com"
] | oOoSanyokoOo.noreply@github.com |
718e8aec118b7aaafe59d9c70370ed5893a1d19f | 404e6736f71e80e07d85152120ca497a43bd248a | /platforms.py | e312c733ceebca3904b1492e65e3eeebddcea696 | [] | no_license | ravenusmc/aleppo_main | 1f37cedc5700ad9ec60ae032edd634ec7fd7557e | ed4909d87824bc669101c1204d38405830531d28 | refs/heads/master | 2021-01-13T13:56:09.602232 | 2016-12-01T15:13:04 | 2016-12-01T15:13:04 | 72,948,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,085 | py | #The code in this file will be dealing with the platforms in the game.
#Importing other modules that will be used in this file.
import pygame
from spritesheet_functions import SpriteSheet
#These are the platforms that will be used in the game. The first two numbers
#are the x,y location of the image on the sprite she... | [
"mcuddy77@gmail.com"
] | mcuddy77@gmail.com |
243b9e15dc0826f09dbd54f87d5d0bbd32327525 | cb90b245dd9e5e111e421020da36c494422fdfb9 | /Project Euler/Problem 34/euler_34_BG.py | e81527585c1a94b10b16cf2aff86ef60dcb322eb | [] | no_license | bcgbr5/Interview_Questions | 68b864ffecdab2af58835d4d1e8b3e3bbfac92b6 | 2953bc9dfc9fa1a33b409672cf68a87d013c4c72 | refs/heads/master | 2020-09-10T20:59:00.238815 | 2020-03-17T20:37:30 | 2020-03-17T20:37:30 | 221,832,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | #Project Euler Problem 34
#Solution : Brandon Greer
import math
max_num = math.factorial(9)*4#This is extremly arbitrary, but works
def evaluate_digit_factorial(number):
num_fact_total = 0
for digit in str(number):
num_fact_total += math.factorial(int(digit))
if num_fact_total == number:
re... | [
"brandonchrisgreer@gmail.com"
] | brandonchrisgreer@gmail.com |
594b6f09ed52ac9a7dfb70ddee396015b9475aa5 | db9c14d24b854679dd0e89c490061fc31d12a579 | /Notebooks/Plotter.py | 7413dc64bcba568c0f221e70fd0f91f6612a6cfd | [
"MIT"
] | permissive | a-parida12/NumericalMethods | 74c2dd7e16fe418f733d85d2bb12549796315900 | a8b9438b9c70d1ab950f34784a2edbcd0baf092f | refs/heads/master | 2021-01-25T13:47:55.913628 | 2018-10-29T00:16:35 | 2018-10-29T00:16:35 | 123,615,570 | 0 | 4 | MIT | 2018-10-29T00:16:36 | 2018-03-02T18:28:43 | Jupyter Notebook | UTF-8 | Python | false | false | 3,436 | py | # Written by Abhijeet Parida(abhijeet.parida@tum.de)
from matplotlib.pyplot import figure, subplot, plot, title, xlabel, ylabel,legend
from numpy import arange,exp
def plotter_exp(p_exp,dt_all,tend,labels):
import matplotlib.pyplot as plt
figure()
##subplot for dt=1/2
dt=dt_all[0]
subplot(2, 2, ... | [
"abhijeet.parida@tum.de"
] | abhijeet.parida@tum.de |
c4208d3020bec73223ae95b201c61962e6608d9c | 94e74c49ce7db9f24dc343d09036036312547ca4 | /tests/test_mtcaptcha.py | 7e3bc9c357e85def0fd8258f4b55dafad585d77d | [
"Apache-2.0"
] | permissive | rwigo/mtcaptcha-python | cf538bb4c2dbfeeeb0d015c767924193864fd099 | c14841d2f4066d5241283f110514ea8ff400521c | refs/heads/master | 2021-04-16T19:09:02.994482 | 2020-03-30T06:47:20 | 2020-03-30T06:47:20 | 249,378,376 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,215 | py | from typing import List, Dict
from mtcaptcha import MTCaptchaTokenDecoderAndChecker
def run_one(privatekey: str, token: str, tokenJson: str,
expectedDomains: List[str], expectedAction: str,
isProductionEnv: bool):
'''
Run a single test case
'''
decoder = MTCaptchaTokenDecoderA... | [
"nicolas@rwigo.com"
] | nicolas@rwigo.com |
b273b99806127ec1498dff9872db2ac470d542b9 | b74320ad439e37dfa48cd8db38dab3b7a20a36ff | /tests/pipelines/stable_diffusion_2/test_stable_diffusion_inpaint.py | 68a4b5132375ade162505b9c3ad94abe7b80bfe2 | [
"Apache-2.0"
] | permissive | huggingface/diffusers | c82beba1ec5f0aba01b6744040a5accc41ec2493 | 5eeedd9e3336882d598091e191559f67433b6427 | refs/heads/main | 2023-08-29T01:22:52.237910 | 2023-08-28T18:16:27 | 2023-08-28T18:16:27 | 498,011,141 | 17,308 | 3,158 | Apache-2.0 | 2023-09-14T20:57:44 | 2022-05-30T16:04:02 | Python | UTF-8 | Python | false | false | 10,042 | py | # coding=utf-8
# Copyright 2023 HuggingFace Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"noreply@github.com"
] | huggingface.noreply@github.com |
cb8573de44df8d3f3b0ce42fca5ed11939bcd3a5 | 029aea05dad17d1e6485aa5d3439ff16584a40e3 | /Ejer3/areas/models.py | 3abf1aab6bfc5f82a8356d2fcd53df979aca3b54 | [] | no_license | glenda123/ejercicio3_django | b82bbd64300c9243edc646bdd4034069c4b64ec3 | c1e84bbbdb81f5e9ca000f88c6d27fd4364371a1 | refs/heads/main | 2023-01-12T22:40:37.938247 | 2020-11-20T04:21:59 | 2020-11-20T04:21:59 | 314,444,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | from django.db import models
# from datetime import date
# Create your models here.
class Area(models.Model):
nombre=models.CharField(max_length=150)
direccion=models.CharField(max_length=300)
telefono=models.CharField(max_length=20)
created=models.DateTimeField(auto_created=True, null=True)
updated... | [
"glendaguerrerof@gmail.com"
] | glendaguerrerof@gmail.com |
b7cc102132b5ff1057994e7947abc77f3e863f4a | 1b9d3d991a7b720e0686682f37b9d695cc9f7b35 | /utilities/milvus_utilities.py | 91ffab86849d3985dad39f89f54559f2d1f0d88c | [] | no_license | pedrojrv/milvus_image_retrieval | 505870a1bd59337e9172c0fe9124c9fe905ac04b | 86437471aa70df7450b79bb6ce7be71f1afbfe1f | refs/heads/main | 2023-03-20T10:09:23.699448 | 2021-03-13T05:24:14 | 2021-03-13T05:24:14 | 346,561,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,805 | py | import numpy as np
import os
from shutil import copyfile
from milvus import Milvus, IndexType, MetricType, Status
def create_collection(client, collection_name, embedding_dim, reset=False):
"""Creates a milvus collection.
Args:
client (object): milvus client.
collection_name (str): given name ... | [
"pedro.vicentevz@berkeley.edu"
] | pedro.vicentevz@berkeley.edu |
2bd2f6b56eb8ae623b368dd4be8aa018ec7464ff | a6b916b1e28e0760f7acab7aefc59d861cb77652 | /app/core/migrations/0006_recipe_image.py | 1ec0fbe7fed273bc3d65345fac4a10f6c07ddfab | [
"MIT"
] | permissive | muteshi/Recipe-app-api | e9212e0681125302fd6d3cc7c5b2312d7e72275e | 68a660cbde211c04dc0cd1e4181a45dbd60ea854 | refs/heads/main | 2023-01-22T13:42:26.502420 | 2020-12-07T17:01:50 | 2020-12-07T17:01:50 | 317,596,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | # Generated by Django 3.1.4 on 2020-12-07 12:22
import core.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0005_recipe'),
]
operations = [
migrations.AddField(
model_name='recipe',
name='image',
... | [
"lumteshi@gmail.com"
] | lumteshi@gmail.com |
c11c7c26ed8d9043c872a44a803ac999ca7ef233 | 2ac060a05264e88c89f82a256b89bbdd7f28d196 | /news/migrations/0007_article_article_image.py | 642764893b294dd17cb0d26308bfed304f62780f | [] | no_license | mazimpakar/News | b0fea60b6c323d75528c283e7c3b1ebb9d25ca51 | ffc5c9c96a1295f4937b42463bc36bdd8d103034 | refs/heads/master | 2020-05-02T20:09:15.843686 | 2019-03-28T11:06:27 | 2019-03-28T11:06:27 | 178,182,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-03-13 09:38
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('news', '0006_editor_phone_number'),
]
operations = [
migrations.AddField(
... | [
"rosemazimpaka2@gmail.com"
] | rosemazimpaka2@gmail.com |
bb4229113ac14af148ced82c737a946e08c29415 | f1db92d41eb71007f30e7dded93867ef6b5c0b46 | /homework/Day027HW.py | d525b48c70da5e474d01c71ea6ece6703dad7fe0 | [] | no_license | hsiyu1121/1st-PyCrawlerMarathon | dae1ff155f95e85e0fd9752e9f6d900770700df9 | 918b6b376e6e94011b6cba70f9840063af3692a1 | refs/heads/master | 2020-09-13T02:29:33.711034 | 2020-02-18T07:33:29 | 2020-02-18T07:33:29 | 222,633,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,890 | py | # -*- coding: utf-8 -*-
import scrapy
from multiprocessing import Process
from bs4 import BeautifulSoup
import re
class Day027hwSpider(scrapy.Spider):
name = 'Day027HW'
allowed_domains = ['www.ptt.cc']
start_urls = ['https://www.ptt.cc/bbs/Gossiping/M.1557928779.A.0C1.html']
cookies = {'over18':'1'}
... | [
"noreply@github.com"
] | hsiyu1121.noreply@github.com |
4baa80a2e7a6a8a78beafe4cf781490f0ba2ab24 | 7cfa822ac8985c2b6289294070a0effba24ccc9b | /Random Numbers From Certain Integers.py | 4c566535555f45ae552783624dedc1c24dc0e432 | [] | no_license | fkusz/pythonfiles | e329b7b37e91b46bcb7b3dc41964f3e760f0cc63 | 1c35dc776eb031bd3199c7c7fc33c6d50b16422e | refs/heads/main | 2023-05-01T19:05:57.860980 | 2021-05-23T07:04:27 | 2021-05-23T07:04:27 | 367,215,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | import random
def randPM(n,d):
Choices = [2,3,4,6,7,8,9]
Integers = []
s=''
h = 1
while h <= n:
Con = []
for x in range(d):
rand = random.randint(0,6)
Con.append(str(Choices[rand]))
h += 1
Int = int(s.join(Con))
Integers.ap... | [
"noreply@github.com"
] | fkusz.noreply@github.com |
a6c0f9635b4b787f16e2206ce98312a1409d1c27 | ea83a2f4857fe820ee9e16b1ee07e09458c440ac | /backend/apps/apartments_analyzer/signals.py | e82c70eddc5d3e8ed175a442727e52e99a3f3f9b | [] | no_license | MrLokans/portfoliosite | f2d817f657f60eb33b6eaa7af4684be74f349e69 | 18b9610e8afe3400a99eefb2dc4d7f200dc93f60 | refs/heads/develop | 2022-11-29T00:23:17.432448 | 2020-05-03T06:32:12 | 2020-05-03T06:32:12 | 43,129,461 | 2 | 2 | null | 2022-11-22T04:58:53 | 2015-09-25T09:50:47 | Python | UTF-8 | Python | false | false | 303 | py | from django.db.models.signals import pre_save
from django.dispatch import receiver
from apps.apartments_analyzer.models import UserSearch
@receiver(pre_save, sender=UserSearch)
def update_search_version(sender, instance: UserSearch, **kwargs):
if instance.pk:
instance.increase_version()
| [
"mrlokans@gmail.com"
] | mrlokans@gmail.com |
e22889a5438effe365c9037574d58d78ab2fceef | 9dd600803d53620fe5ade41206b2dc1e27c9af40 | /tree_trimmer/condor/doCondor_mu.py | a43175e913a2bb972abc93670052509d40430d10 | [] | no_license | sschier/higgsino-fortnight | 3150a536f914ce1ab01cd6032e31b5380962fc6d | 4f20e44aa03a86206194c5bdf3f86378d8a5231c | refs/heads/master | 2020-12-30T15:22:40.467513 | 2018-12-21T23:17:40 | 2018-12-21T23:17:40 | 91,135,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,960 | py | #!/usr/bin/env python
import condor
import commands, glob
import time, datetime
exe = '../tree_trimmer.py'
ts = time.time()
st = datetime.datetime.fromtimestamp(ts).strftime('%Y%m%d%H%M')
base_dir = '/export/share/data/sschier/FakeLepton/June22_2017_Stop1L_Dijet_Ntuple_AB_2.4.32_WithMoreIsolationVars/'
arg_template... | [
"sheena.schier@cern.ch"
] | sheena.schier@cern.ch |
26f06f77d5dc8d99f089d0da835b100b193339bc | 64ddf2241687580c640711883550e564aadaec7e | /src/conjecture.py | 79b4dfe035abe0609a8836350b22ac651301f91d | [] | no_license | zedinc/multiplicative-persistence | 7a69d1fb5ef4f614b76b210c361975a23a4e202f | 73f1768f36852fe9d39f7b12aba3827997eef6d6 | refs/heads/main | 2023-02-02T20:24:54.328824 | 2020-12-20T03:39:58 | 2020-12-20T03:39:58 | 321,103,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,117 | py | from functools import reduce
from itertools import product
from math import factorial as f
from math import log
# from numba import jit, vectorize, cuda
from time import time
import numpy as np
from colors import green
from sympy.utilities.iterables import multiset_permutations
pm = lambda n : reduce( int.__mul__ , m... | [
"mz.khan@yahoo.com"
] | mz.khan@yahoo.com |
9f78b6a20934481fed7410cab04f94aeffc6bed1 | 0c9034a60d2a4566b198d2522d4463d68c013876 | /skypeshit.py | 3bfe39668d6999111050a9a6f197ae1f87b6ba6d | [] | no_license | evgkirov/skypeshit | 90d803125e3f4617b162aa50db65aa960f52a96b | e5410757e134573a6cf5a05e03d1802b64d5149c | refs/heads/master | 2022-05-21T05:28:56.312249 | 2013-04-10T23:12:07 | 2013-04-10T23:12:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,163 | py | #!/usr/bin/env python
from datetime import datetime
import random
import settings
import Skype4Py
import sys
import time
class Daemon(object):
def __init__(self):
self.log('Hello!')
self.setup_skype()
self.my_last_message = 0
self.target_chats = [self.skype.Chat(name) for name in... | [
"evg.kirov@gmail.com"
] | evg.kirov@gmail.com |
a9b6ddf7d41e489a0d45bee00ecdbb0c0460c6e2 | e0c916e38cfd429ecba70d7e4e1ac393d6bcc418 | /Neural_network_example.py | 394c2f40db5acf0dab90050637f1d75fa6f44c95 | [] | no_license | shaodouya/Neural-networks-Sea-Ice-classification | bc21970395ef7afdeaf3adbf31d091f4e852dce3 | 14db6a94ecffe549f41a6233fd8440da17995fb6 | refs/heads/main | 2023-06-01T00:29:43.055803 | 2021-06-29T12:06:34 | 2021-06-29T12:06:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,038 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Apr 16 10:52:45 2021
@author: S and J
"""
#Example of a neural network to recognize handwritten numbers from 1 to 3, to simplfy the architecture and reduce calculation power, we will only
#look at numbers from 1 to 3, but the principle of course remain... | [
"noreply@github.com"
] | shaodouya.noreply@github.com |
632b13905b07b97c70903174ab40d7ad79edae22 | 84bdd23754e00a46635e896b4343c22fa74087fe | /floorplan_lp.py | 003794618ce9974c90d4b24bf568e8d659342999 | [] | no_license | djh496812749new/snippets | d2deff6ef6ae332e4c17cb6b75d97ae6a0be5820 | 32d985739247ea6f059cdcc37ca9f585147e19b5 | refs/heads/master | 2020-03-27T03:09:04.768934 | 2013-12-16T18:02:57 | 2013-12-16T18:02:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,144 | py | # Figure 8.20, page 444.
# Floor planning example.
from cvxopt import solvers, matrix, spmatrix, mul, div
try: import pylab
except ImportError: pylab_installed = False
else: pylab_installed = True
def floorplan(Amin):
# minimize W+H
# subject to Amin1 / h1 <= w1
# Amin2 / h2 <... | [
"nicholas.pilkington@gmail.com"
] | nicholas.pilkington@gmail.com |
b468aeb1efa45724e677b60feb5dbb2a52b0f3a5 | 3cf8aaf8faba4d06eacbb3e06c7663688aef314c | /by_categories/BinarySearch/278.py | 6bde83a904762f51a8dada677eaa4accfb9c3546 | [] | no_license | Yuqi9579/leetcode | 5e946e5c7ab221ff85bf8331730a692760c30650 | f11c55a3e8582c22e2bff3c86318da0445ab4b5b | refs/heads/master | 2023-01-01T04:36:33.692905 | 2020-10-24T19:51:15 | 2020-10-24T19:51:15 | 274,647,319 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | '''
278. First bad version
Easy
[g,g,g,g,g,b,b,b] g:good b:bad
[1,2,3,4,5,6,7,8] 找到第一个bad产品
类比开二次根,都是找到一个临界值(在一个广义sorted的list中),具体取上还是取下要具体分析
'''
class Solution():
def firstBadVersion(self, n):
"""
:type n: int
:rtype: int
"""
l = 1
r = n + 1
while l < r:
... | [
"liyuqi9@live.com"
] | liyuqi9@live.com |
985f844caf10146bcd6d7847503edd19790a641c | ae7627dc5e6ef7e9f8db9d825a6bc097da5b34de | /question_no_21.py | 4c116949953f5276f16fa7f00ee4a8ee064d267c | [] | no_license | atulzh7/IW-Academy-Python-Assignment | cc5c8a377031097aff5ef62b209cb31f63241505 | 674d312b1438301865c840257686edf60fdb3a69 | refs/heads/master | 2022-11-14T13:26:16.747544 | 2020-07-12T16:06:08 | 2020-07-12T16:06:08 | 283,823,502 | 0 | 1 | null | 2020-07-30T16:24:30 | 2020-07-30T16:24:29 | null | UTF-8 | Python | false | false | 160 | py | def last(n):
return n[-1]
def sort_list_last(tuples):
return sorted(tuples, key=last)
print(sort_list_last([(2, 5), (1, 2), (4, 4), (2, 3), (2, 1)]))
| [
"="
] | = |
84e80308c11bdfc8fa1bca64f3f3f0587635c3fa | 70f564990215f47b139a777826f211477e9b44f6 | /plan2vec_experiments/streetlearn/pretrain_baselines/load-and-plan.py | 208582df52258ab5539dc14b86a574c949bc0894 | [] | no_license | geyang/plan2vec | de87f2d77732c4aacdefd00067ebebacb7cd763f | aeeb50aed3d7da4c266b4ca163e96d4c0747e3c1 | refs/heads/master | 2022-11-16T03:40:42.638239 | 2022-10-28T04:01:29 | 2022-10-28T04:01:29 | 261,273,420 | 65 | 3 | null | null | null | null | UTF-8 | Python | false | false | 4,022 | py | from plan2vec_experiments import instr, config_charts
from plan2vec.plan2vec.plan2vec_streetlearn_2 import DEBUG, Args, main
import jaynes
def common_config():
Args.seed = 5 * 100
Args.num_epochs = 500
Args.lr = 3e-5
Args.gamma = 0.97
Args.target_update = 0.9
Args.top_k = None
Args.plan_s... | [
"yangge1987@gmail.com"
] | yangge1987@gmail.com |
b8774a8cc4581c31e7dc4b868cbabbf8cac649e8 | e8b30b0745b1c4adb7451ef820f5ed86754a5c63 | /test/dirtys/t.py | 5f386e032b232dcba7d2638c75046f4003d6ea04 | [] | no_license | 75509151/jqmtt-rpc | 7294938d9f614e0c0d0c8743192b21ad011d1bcb | 52edd74108c5b64dcea3afb29b6c3e5034566173 | refs/heads/master | 2020-06-24T13:14:51.464296 | 2019-09-26T07:47:10 | 2019-09-26T07:47:10 | 198,971,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | import eventlet
eventlet.monkey_patch()
import json
import time
import paho.mqtt.client as mqtt
def on_connect(client, userdata, flags, rc):
print("connected")
def on_pubish(client, userdata, mid):
print("on publish d: %s, mid: %s" % (userdata, mid))
def on_subscribe(client, userdata, mid):
print("on s... | [
"75509151@qq.com"
] | 75509151@qq.com |
a4ff63535b126c40b2234bfa5830c787a16555dc | 27d41e8185a3433c4a98dc4bf671274b6e59e1b8 | /list-1/rotate_left3 .py | 5dd62a44b5e758d96c569ea7fc8d1748de31c9f4 | [] | no_license | AmirZregat/PythonAssignment2 | 79d259bbe1fee45ba5795db1c2257857ce44ff8b | 5e4d803b64a5fc87c19515ae8e44b28850429386 | refs/heads/master | 2020-04-01T10:44:20.866865 | 2018-10-15T14:40:06 | 2018-10-15T14:40:06 | 153,129,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
def rotate_left3(nums):
arr=[nums[1],nums[2],nums[0]]
return arr
def main():
print(rotate_left3([1, 2, 3]))
print(rotate_left3([5, 11, 9]))
print(rotate_left3([7, 0, 0]))
if __name__ == '__main__':
main()
# In[ ]:
| [
"ameerzregat97@gmail.com"
] | ameerzregat97@gmail.com |
5eecc20a05d6a926006396f8aef9e2e334488918 | d11e6c63321f025d78a5e06903062f758bfb8e7c | /slicer.py | 1ed3f40aaa41bff48b6cf2d04cd53c28faffc9e9 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | syenn2896/batik-recommendation | ea24cfc9d47ad9866670ef1d2ed420786fdeb69a | c1bd88e9e4448d5baa48880524ab9ffa356f5777 | refs/heads/master | 2020-05-31T10:31:04.739043 | 2019-06-07T17:25:13 | 2019-06-07T17:25:13 | 190,242,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,124 | py | import numpy as np
import cv2
import progressbar
import argparse
import os
def slice_image(img, num_slices_per_axis):
slice_shape = (img.shape[0] / num_slices_per_axis, img.shape[1] / num_slices_per_axis)
for i in range(num_slices_per_axis):
for j in range(num_slices_per_axis):
top_left = (i * slice... | [
"noreply@github.com"
] | syenn2896.noreply@github.com |
8a82fe4fda4dd2a787060c67f07e16f3c5ccd7d2 | 5bbf20ec787aaab426d475f4c0aa2e8b44383b3f | /DBN_code/dbn_tf-master/rbm_MNIST_test.py | 039eec1f8516876bac989c162d93525c5081057f | [] | no_license | gansterhuang/- | b124310f2b963e9d830f94b8e1fa60721f54c2e5 | 0b048899303655b37c8d37911e7f1cf5bd690eb6 | refs/heads/master | 2021-05-22T14:19:00.457161 | 2020-07-03T10:39:02 | 2020-07-03T10:39:02 | 252,960,052 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,659 | py | import tensorflow as tf
import numpy as np
import input_data
import Image
from util import tile_raster_images
def sample_prob(probs):
return tf.nn.relu(
tf.sign(
probs - tf.random_uniform(tf.shape(probs))))
alpha = 1.0
batchsize = 100
mnist = input_data.read_data_sets("MNIST_data/", one_hot=... | [
"noreply@github.com"
] | gansterhuang.noreply@github.com |
6026a7879db9ce1551cc0380380a8e6cc455bd5d | 3495808055f12c143c963c556102db720656234f | /Week10/Author.py | a63585fe77aeff410bafcab2797ee16d6997e5c1 | [] | no_license | morris-necc/assignments | 9a2545ea0ba5a433dd0488c5a3d2307b3ac50036 | 1049a8b5a6dbbfa4b409ff3593a75e0df1597b63 | refs/heads/master | 2023-02-05T06:03:30.586300 | 2020-12-16T08:37:04 | 2020-12-16T08:37:04 | 297,251,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | class Author:
def __init__(self, name: str, email: str, gender: str):
self.__name = name
self.__email = email
self.__gender = gender
def getName(self) -> str:
return self.__name
def getEmail(self) -> str:
return self.__email
def setEmail(self, email: st... | [
"morris.kim@binus.ac.id"
] | morris.kim@binus.ac.id |
fe5533726740ec4c707efdaa5bf8c7b6e73dffd6 | a5c2b693e6bfcce584b6131b327364abde6daa25 | /Entregaveis/dossier/codigo fonte/Code/ExecutionEnvironments/Python/src/app.py | 6b499b45291b75896d6870a9dc6bb00c301c3fd3 | [
"MIT"
] | permissive | joaoesantos/ise_learning | 47a6087eb7a45759175a36f328df7c75973bfcea | ad3a27cd6e24693f8f9a90de7ce298a4f300d97e | refs/heads/master | 2023-03-22T10:12:03.367174 | 2020-10-09T18:50:23 | 2020-10-09T18:50:23 | 246,681,200 | 0 | 0 | MIT | 2021-03-20T05:03:14 | 2020-03-11T21:13:53 | JavaScript | UTF-8 | Python | false | false | 2,494 | py | from flask import Flask, request
from werkzeug.exceptions import HTTPException
import json
from modules.codeExecution.execution_handler import ExecutionHandler
app = Flask(__name__)
@app.route('/', methods = ['POST'])
def execute_code():
executionHandler = ExecutionHandler(config["execution_parameters"])
exe... | [
"aquintelaoliveira@gmail.com"
] | aquintelaoliveira@gmail.com |
f549188681936a82c81c61f02cbfa041f0ff61eb | 89fe2c5b2ba96d935fe1acf8dcedb518d684fa19 | /simulation_ws/src/test_nodes/setup.py | 715e2ddda05a7edd2ffbe250ed5583c865c98f63 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT-0",
"MIT"
] | permissive | aws-robotics/aws-robomaker-sample-application-cloudwatch | 03a7228f7b7a2c883c3de295d00b6a78d2522d92 | b1b347652436d1cb960ef9e848a9b270fda4fe25 | refs/heads/ros1 | 2022-02-14T07:30:12.865345 | 2021-11-02T05:10:42 | 2021-11-02T05:10:42 | 157,936,786 | 22 | 58 | NOASSERTION | 2021-11-02T05:10:43 | 2018-11-17T00:40:28 | Python | UTF-8 | Python | false | false | 380 | py | ## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD
## See http://ros.org/doc/api/catkin/html/user_guide/setup_dot_py.html
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
# fetch values from package.xml
setup_args = generate_distutils_setup(
packages=['test_... | [
"noreply@github.com"
] | aws-robotics.noreply@github.com |
33199a1ba23b6b5141059998e600962af789fe93 | d299465acbeeddfff6e3fcdc71f6523c8cba1a30 | /utils/generate_anchor_boxes.py | b2b14337dd6362fbbbcdd030f67f199867723c21 | [] | no_license | rajashekarv95/3d_cnn | 173ae37a2015b84d19663762f0689bae9db81a54 | f59c3e91c53c1bc3e0e9512626cd2842d125e2eb | refs/heads/master | 2023-02-17T04:18:04.904186 | 2021-01-10T00:15:03 | 2021-01-10T00:15:03 | 324,251,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | import numpy as np
def generate_anchor_boxes(resolutions, aspect_ratios, steps = 16):
anchors = []
mask = []
x = np.arange(start = 16, stop = 640, step = 16)
y = np.arange(start = 16, stop = 480, step = 16)
for j in y:
for i in x:
for r in resolutions:
for a1, ... | [
"rajashekar.v95@gmail.com"
] | rajashekar.v95@gmail.com |
1b9a9b6508676978960d2a6befa80bb19d553089 | 4906dafd1722eff0538cec8b11cd800afd9fc215 | /PlayerAI.py | aeedacdc9a3dce92cbb21e82b85b56d994162235 | [] | no_license | shrestha-pranav/2048-AI | 4ea548cc90b1b9180c91735b8faa8b16c1a6a5ab | 5371bb92bb2203f53d1e8b30347e81f4a96d529f | refs/heads/master | 2021-04-06T13:01:27.483538 | 2018-09-27T01:14:27 | 2018-09-27T01:14:27 | 125,275,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,369 | py | from BaseAI import BaseAI
from random import randint
import op
import time
import heuristic as hr
# s -> current state
# a, b -> alpha, beta
# d -> recursion depth
# p -> probability
class PlayerAI(BaseAI):
def getMove(self, grid):
self.time = time.clock()
# Convert grid to a single 64-bit integer... | [
"shresthapranav278@gmail.com"
] | shresthapranav278@gmail.com |
dd657ec62d8b5a7c496e9cee0ffdafad0f6666de | d4ab4644168e60f4a3030d07ac0c6dc289a5a817 | /Nao tests/tests/currentFolder.py | 48590e9be0fbcbf3dac9c97da3f1b8e00bfca67f | [] | no_license | thaije/MarcoPoloPepper | 4f38dbee12aaf08467c477a457f8a5afb1fab85c | 631d9f0af3cb064b3d534ffa9b0c82273d6ae4b8 | refs/heads/master | 2021-05-12T19:54:19.756890 | 2019-09-05T07:18:13 | 2019-09-05T07:18:13 | 117,107,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | import os
print "Files in current folder:"
print os.listdir("/home/nao/record.wav")
| [
"tjalling_haije@outlook.com"
] | tjalling_haije@outlook.com |
63ddba6c901c72ebadee22bdd1b1a644b43e20e1 | 5f3c22a2cad301e1ce6753e944602d98ba39d407 | /app.py | 271d6e66e5ad0b25755e6be3321a475a195939c7 | [] | no_license | vasupradharamac/Budget_Tracker | 4d0d70c9ef2675f83a6077c84c2ad1d2c3d9d243 | c6c55802069a9d605127cd73ce03a7b859d02c26 | refs/heads/main | 2023-05-13T07:21:06.997748 | 2021-06-02T11:22:30 | 2021-06-02T11:22:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,971 | py | from flask import Flask, render_template, request, redirect
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy import *
from sqlalchemy.dialects import *
import os
project_dir = os.path.dirname(os.path.abspath(__file__))
database_file = "sqlite:///{}".format(
os.path.join(project_dir,"mydatabase.db")
... | [
"noreply@github.com"
] | vasupradharamac.noreply@github.com |
481540764131d7074bfe42bf33d8e55e6de01a65 | e76552ab870d13baf216b9a96283757e659d696d | /blog/migrations/0003_post_tags.py | 0159f14a964180a2a040a4c13e2b52bed97695e0 | [] | no_license | jeer2234/blog | 50ad09cdca818cd1a337be3dab8d84f91745bde2 | 17f158035853ae84bcbfd468b139f0e070699d98 | refs/heads/main | 2023-04-03T17:06:17.844705 | 2021-04-07T17:28:09 | 2021-04-07T17:28:09 | 351,650,202 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | # Generated by Django 3.1.7 on 2021-04-02 19:40
from django.db import migrations
import taggit.managers
class Migration(migrations.Migration):
dependencies = [
('taggit', '0003_taggeditem_add_unique_index'),
('blog', '0002_comment'),
]
operations = [
migrations.AddField(
... | [
"jeer2234@gmail.com"
] | jeer2234@gmail.com |
830e8e203059feac39b2616b5061d3d605633ed5 | d9e4d3a30da0229899a0f10bdcb04c946ad5a2ff | /scripts/SR_FillPlots.py | d1dac57b8120d6e5d2be6359ab6b4133bb7874d8 | [] | no_license | TC01/zprime13 | 809c367d7d2a84e2cb4b4c14626915c0aed2a22c | 0b874a81f9444df69fe2d73839a2ab837d499d7a | refs/heads/master | 2016-08-04T19:31:59.223746 | 2015-09-23T18:51:55 | 2015-09-23T18:51:55 | 42,950,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,908 | py | import ROOT
from ROOT import *
from CutOnTree import writeplot
####
## Code that assembles all (I do mean all) relevant histograms for output to theta. DOES NOT ADD SIGNAL. SIGNAL POINTS ARE PROCESSED SEPARATELY AND -M-U-S-T- BE PROCESSED SECOND.
####
# Defs:
lumi = 19748.
# Define files:
# single top
sFileName = [... | [
"rosser.bjr@gmail.com"
] | rosser.bjr@gmail.com |
278bf386e32ebad40ef06e6967c5e4b15b9ab92e | 835e2936e3dcba7c908aca1c380c521b3c7eac6f | /core/migrations/0013_auto_20210716_1703.py | 5efa559b72b5496a12f912a958daa393ad9b48c9 | [] | no_license | shahzadShahid/Ecommerce | 2b594533d34efbcf03614e2e2c50259a8597c630 | 7dc61af23b445a8c5f573b3f2ce361a2a2e8b386 | refs/heads/main | 2023-06-21T04:44:46.239684 | 2021-07-16T15:59:05 | 2021-07-16T15:59:05 | 386,167,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | # Generated by Django 2.2 on 2021-07-16 11:33
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0012_auto_20210716_1701'),
]
operations = [
migrations.AlterField(
... | [
"shaikshahzad8765@gmal.com"
] | shaikshahzad8765@gmal.com |
b5713d23357735ce2126e994aaa92ea6b2bf5cf7 | 5bcd23d57dae969b78a44f2706a41877d1dd8ba5 | /Mutate.py | 24c4b61d63700fed703996105240d12f054ecd3c | [] | no_license | halloweentown/Coen352 | ecbeda69419f641db0e06c2edeada89113cf7035 | 0f9f1fe976671c15e3cbcdbf03e5c3a21df1a015 | refs/heads/master | 2020-04-10T11:37:44.556559 | 2018-12-13T02:15:51 | 2018-12-13T02:15:51 | 160,998,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,906 | py | import numpy as np
import random as rng
import globalVariables as gV
import SortIndividual
##TODO probabilities as global variable
## probabilities of each mutation occuring
#m1p = 0.25
#m2p = 0.25
#m3p = 0.25
#m4p = 0.25
class Mutate:
# different mutation functions
def add (self):
# add new swap to sort
... | [
"James.Mariotti.Lapointe@gmail.com"
] | James.Mariotti.Lapointe@gmail.com |
0935af4f907eff25bfef6de76be625086b7181e3 | 30fd7ecfbcdab2fe37ded162e91676cc8334ddc5 | /models/user.py | 979aee5b6350ff382261136c028aad1a487b864c | [] | no_license | rifkegribenes/flask-rest-api-jwt-extended | 31bdef2cf9c51d4b15b7c74c88aa4bad7e209271 | 1f0e71cc8ccbd13df4cda3b651d2e0d67632fdf6 | refs/heads/master | 2020-04-22T01:54:42.203592 | 2019-02-12T06:14:23 | 2019-02-12T06:14:23 | 170,029,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | from db import db
class UserModel(db.Model):
__tablename__ = 'users'
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(80))
password = db.Column(db.String(80))
def __init__(self, username, password):
self.username = username
self.password = password
def json(self):
return {
... | [
"rifkegribenes@gmail.com"
] | rifkegribenes@gmail.com |
c8be00b71fa6f727217ae6a414d4e855d5e87968 | 40b41ca5654c79ba2207c904b6c4d183491d75d9 | /venv/Scripts/easy_install-3.7-script.py | 2ac1600323fa99b50a30cbf776e21965f1b6d55d | [] | no_license | manueljeffin/Hotel | 87f6dea9fdb53671e38b508859c707aedf5d36a1 | fc274f8cf17fcbc64cbb9d85fa801ed5fd9eaac6 | refs/heads/master | 2020-04-11T19:02:59.907484 | 2018-12-16T17:09:44 | 2018-12-16T17:09:44 | 162,020,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | #!C:\Users\Sherine\PycharmProjects\Hotel\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw... | [
"manueljeffin@gmail.com"
] | manueljeffin@gmail.com |
70e432bd6bd96830b4bc7d0fdb17080b5fbbc983 | 056a1d46538e24c4b6556a41f587db71aeb65476 | /scripts/convert_to_threejs.py | 4a6cbe9de153db4ce62d83c52793a56cbfeaaf46 | [] | no_license | RVelichko/Aerobike | aad93f7e2e012f15904b59c5cbb296fdd3d2e26f | b1b271848d40af4a808b73ede7d2864ca9709064 | refs/heads/master | 2020-04-07T09:43:04.786538 | 2018-11-19T17:13:49 | 2018-11-19T17:13:49 | 158,262,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77,120 | py | #!/usr/bin/python
# @author zfedoran / http://github.com/zfedoran
import os
import sys
import math
import operator
import re
import json
import types
import shutil
# #####################################################
# Globals
# #####################################################
option_triangulate = True
option... | [
"rostislav.vel@gmail.com"
] | rostislav.vel@gmail.com |
19c58a6721b17bcbf087c8ba204fadc0af615155 | 11076a25f24d0185966de0551e4f18cb97f89efa | /138.复制带随机指针的链表.py | 04cdf8aa9cc0dc0cd4728b22ca8676674a70d34c | [] | no_license | YinWincher/leetcode | 3b828b3570f8a445b5ae3e404ac439db6c3aae7f | bb4cb5eaef04578cdfbb4253fdf14a6f979ed55b | refs/heads/master | 2021-07-02T15:42:35.563470 | 2020-12-11T11:30:04 | 2020-12-11T11:30:04 | 204,738,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py | #
# @lc app=leetcode.cn id=138 lang=python3
#
# [138] 复制带随机指针的链表
#
"""
# Definition for a Node.
class Node:
def __init__(self, val, next, random):
self.val = val
self.next = next
self.random = random
"""
class Solution:
def copyRandomList(self, head: 'Node') -> 'Node':
if not hea... | [
"812480580@qq.com"
] | 812480580@qq.com |
1105e9a282f259df8071dc3490a0639a31431369 | 489c946cb584e9fdc18ee7fd2ee013df6161aa0c | /ex16.py | dccb865a9ffcde385a996e5bbbcb5197ba6132af | [
"MIT"
] | permissive | HninYamoneNwae/python-exercises | 6990a68de5ad6cd2b54a886a5adcf37e1903ab56 | 2cd797746f4ee6b3c5d10e2579cc4840c4645f7e | refs/heads/master | 2020-03-19T07:58:44.632119 | 2018-06-26T08:59:47 | 2018-06-26T08:59:47 | 136,165,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | from sys import argv
script,filename=argv
print(f"We're going to erase {filename}.")
print("If you don't want that , hit CTRL-C (^C).")
print("If you do want that , hit RETURN.")
input("?")
print("Opening the file ...")
target=open(filename,'w')
print("Truncating the file. Goodbye!")
target.truncate()
print("Now I'm go... | [
"hninyamonenway@gmail.com"
] | hninyamonenway@gmail.com |
6a8021d4e8cba61d4921b7ae55b98bbc3f119c61 | a7699b02adc473058b870a309408894e3ae15d89 | /dice.py | 4d22b88fecb99dcb42f032275d23d394eb13823e | [] | no_license | Bezzadx/Pazaak | 508c5638d28d9cd1c6d274df20e69c37bb3fa9e7 | fd8d6d83450eac13bf70770f0e9907aecd8aeb33 | refs/heads/main | 2023-03-23T09:36:34.141519 | 2021-03-16T10:07:48 | 2021-03-16T10:07:48 | 337,674,102 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 591 | py | import random as r
def roll(dice, number = 1, ad = 0):
if dice < 1:
return 0
else:
score = 0
if ad != 0:
x = roll(dice, number)
y = roll(dice, number)
if ad > 0:
return max(x,y)
elif ad < 0:
return min(x,y)... | [
"bmdawson97@gmail.com"
] | bmdawson97@gmail.com |
f9dbe7d7f96e28f3b3be69de19766f1734b17f4d | 57a01c9c7a0e19ed6e1b48d2fe31fbded71fbbeb | /examples/tgmm/gibbs_tgmm.py | 184d6653c3f1c6b1e807f62990aef71d2210b4ce | [
"MIT"
] | permissive | hanyas/mimo | a5b6cefd470e09005d385118cc29e3922a7d64ab | 589538cb7a05860a47c0b370db89086e2a189ca2 | refs/heads/master | 2023-06-08T15:38:12.098072 | 2023-05-29T07:27:34 | 2023-05-29T07:27:34 | 192,242,527 | 18 | 6 | MIT | 2023-05-19T15:50:32 | 2019-06-16T22:28:04 | Python | UTF-8 | Python | false | false | 1,666 | py | import numpy as np
import numpy.random as npr
from mimo.distributions import TiedGaussiansWithPrecision
from mimo.distributions import TiedGaussiansWithNormalWisharts
from mimo.distributions import TiedNormalWisharts
from mimo.distributions import Categorical
from mimo.distributions import Dirichlet
from mimo.distrib... | [
"abdulsamad@ias.informatik.tu-darmstadt.de"
] | abdulsamad@ias.informatik.tu-darmstadt.de |
de45c2010e1fd826b7a417faf0be7515a27d549f | 54806fb5debdd52b09e2db74708f26c4791107ce | /scripts/SongCollection.py | 8cba0f86ca291c0fa135ebff65c11f21030acf72 | [] | no_license | Luke-Jacobs/Radio-Song-Analysis | 9e59236ae1e147654879c7fdebe1eb1c5f81cb47 | 530439b62fcdd2be916601727dddfbcd4db3a228 | refs/heads/master | 2020-06-15T13:43:27.852888 | 2019-07-14T14:59:19 | 2019-07-14T14:59:19 | 195,288,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,384 | py | from scripts.StationInterfaces import *
from typing import List, Dict, Optional
import os, time
"""
SongCollection
This file contains classes and functions that collect PlayedSongs into a format that can be analyzed and graphed.
"""
class StationPlayCollection:
def __init__(self):
self.songLists = {}... | [
"lukedjacobs@yahoo.com"
] | lukedjacobs@yahoo.com |
1eb2488eab7713582f37b167ce82a022b6a313f2 | d33d6642299b56ae04eac597de6859de1c258b17 | /euler/euler_2.py | b2406a66202b39bbd60216fd0fca6a415937f764 | [] | no_license | laurieskelly/lrs-bin | 276e85c032f80de806b1a2e653f0724fdd3eb509 | d57ea623f5c91d82311aff2c24c174135197b538 | refs/heads/master | 2020-04-06T15:32:27.379451 | 2018-11-01T17:16:50 | 2018-11-01T17:16:50 | 20,307,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | # Each new term in the Fibonacci sequence is generated by adding the previous
# two terms. By starting with 1 and 2, the first 10 terms will be:
# 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...
# By considering the terms in the Fibonacci sequence whose values do not exceed
# four million, find the sum of the even-valued ter... | [
"laurieskelly@users.noreply.github.com"
] | laurieskelly@users.noreply.github.com |
0ccf0aed7349e27100d4353e23cb2991d49134ae | 7fb1f77a604c8d694544621ea7967c61fe4d6184 | /src/core/util/NetworkHandler.py | e439609477e3d10af48f389d94ad5192784272e3 | [] | no_license | HP-xyz/mediatracker | df92bbf24dba7690016e82738a5daf2f647b4609 | 867fdef4145ccaa5b1e9deb9e11932490b38ab1e | refs/heads/master | 2016-08-06T11:48:38.099618 | 2014-08-19T09:52:05 | 2014-08-19T09:52:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,293 | py | __author__="dvorak"
__date__ ="$Dec 17, 2011 10:45:35 PM$"
import logging
import urllib
from urllib import request
import threading
class NetworkHandler(threading.Thread):
def __init__(self, callback):
threading.Thread.__init__(self)
self.Callback = callback
self.logger_network = logging.g... | [
"DvorakUser@gmail.com"
] | DvorakUser@gmail.com |
dbea09afa0ccdeb9f86e9d3e7d3a1b5e15bb9687 | 5e679637d492b216ce550761ce8014c6b30033cb | /Classifier_2/plot_hmmcopy.py | 3f9a6a713be9823928ec200c91b287d799d17051 | [] | no_license | flywind2/CancerCellClassifier | c9159f60583487e10aa519fefae45298a53d669c | 2ca33e0b9faa765d4394c8dc0e08195018d0cd83 | refs/heads/master | 2020-07-09T11:45:47.140157 | 2018-11-22T20:36:32 | 2018-11-22T20:36:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,821 | py | '''
Created on Nov 16, 2016
@author: dgrewal
Updated on Feb 20, 2018
@updated by Nafis Abrar
'''
from __future__ import division
import argparse
import pandas as pd
import matplotlib
import os
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import seaborn as sns
import statsmodels.api as sm
from matplotlib.ba... | [
"nafis_abrar@ymail.com"
] | nafis_abrar@ymail.com |
96ac30f1a003ff428f3114d2fa3a8ef208f66ed3 | 7fe8acb05e1436bae23ae73eb8ab02a4504b7ba0 | /test/unit/mocker.py | 89fd268dc127fdc6f5e04701d12cdd1b3b788ef7 | [
"Apache-2.0"
] | permissive | henrysher/opslib | 1463749e952c30222d4d2077ad0efb3dbca9ea28 | 157be1342cf24297ef6b79cbe320207e610c9c81 | refs/heads/master | 2020-04-05T23:29:53.264552 | 2014-06-03T15:15:33 | 2014-06-03T15:15:33 | 14,837,390 | 1 | 2 | Apache-2.0 | 2018-03-05T17:26:48 | 2013-12-01T11:12:30 | Python | UTF-8 | Python | false | false | 83,725 | py | """
Mocker
Graceful platform for test doubles in Python: mocks, stubs, fakes, and dummies.
Copyright (c) 2007-2010, Gustavo Niemeyer <gustavo@niemeyer.net>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are m... | [
"henry.s.huang@gmail.com"
] | henry.s.huang@gmail.com |
dfba60468f1f40421de06709e086d2707141c685 | 7513276b34a2c99d081376961c3b8482a3c1c072 | /ex11.py | d3c84f6501f5842e6727e4e312b7c7ffc012ca06 | [] | no_license | AyeNandar/python-tutorials | 5ad0a4e6b2c1893a7cc9c97ad100896835e1cd16 | 12c54b69b414e6ce1adce66f92065c8d4e0c49e8 | refs/heads/master | 2020-03-21T08:49:17.119862 | 2018-06-24T01:08:44 | 2018-06-24T01:08:44 | 138,367,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | print("How old are you?", end=' ')
age = input()
print("How tall are you?", end=' ')
height = input()
print("How much do you weigh?", end=' ')
weight = input()
print("So, you're ", age, " old, ", height," tall and ", weight," heavy.")
| [
"andhandh1381@gmail.com"
] | andhandh1381@gmail.com |
019509507bc3b794d7db41c52c23548000aa61d3 | 317e0c1f1b9511ea47ab6c4c902cc8de3c316cc8 | /5place.py | 12f30a9dd7866a39a667f953b50874952a3c81f0 | [] | no_license | manigowtham19/manigowtham | 63d7c90209a6bd791b67810cf93ce6208a2a36c8 | 159f99c8342659b4bb630148149a4263751c21bc | refs/heads/master | 2021-09-10T00:22:47.230952 | 2018-03-20T10:55:40 | 2018-03-20T10:55:40 | 116,801,273 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | a=float(input("Enter length:"))
b=float(input("Enter Breath:"))
print(round(a*b,5))
| [
"noreply@github.com"
] | manigowtham19.noreply@github.com |
934cc88a5a43e7fdf4fcb3bb9f9a0069f6465f0e | 921c6ff6f7f31e0349314bc40426fff12107a705 | /GeneralPython/PyDataStructure/pairsWithGivenSumInAList.py | 9a348f8832808e9e31098e639ed458531bd2668a | [
"BSD-2-Clause"
] | permissive | prashantas/MyDataScience | 0828d5e443de9633fe1199ef4d13a7699b2ebffa | 8db4f288b30840161c6422bde7c7a7770f85c09d | refs/heads/master | 2021-06-02T12:06:45.609262 | 2019-04-25T03:03:25 | 2019-04-25T03:03:25 | 96,012,955 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,153 | py | from collections import Counter
def getPairsCount(arr, sum):
mapc = dict(Counter(arr))
twice_cnt = 0
for i in range(len(arr)):
if mapc.get(sum-arr[i], None) is not None:
twice_cnt += mapc.get(sum-arr[i])
# if (arr[i], arr[i]) pair satisfies the
# condition, t... | [
"noreply@github.com"
] | prashantas.noreply@github.com |
80bea6afe90cb72a4319b21a0ab980eb359be224 | b1d3876aafc8730e8f3ec709561d83ff622cb63a | /2015/day15.py | 711d70d08e3e90d1e18b19c06e3dc9e91875709d | [
"MIT"
] | permissive | XtinaSchelin/adventofcode | da7d68a7ae71d4e0198b285a66c489fd02c2eb6f | 41aa36c8226310ab35a61703cba6b8bbbffe8281 | refs/heads/master | 2022-11-11T23:00:49.042943 | 2020-06-15T00:59:30 | 2020-06-15T00:59:30 | 272,014,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,784 | py | import itertools
import re
def do_day(day="a"):
inputs = open("d15.txt", "r").read().split("\n")
ingredients = {}
all_items = []
patt = "^([^:]+): capacity ([^,]+), durability ([^,]+), flavor ([^,]+), texture ([^,]+), calories ([^,]+)$"
for line in inputs:
pieces = re.match(patt, line.strip()).groups()
ingred... | [
"xtina.schelin@gmail.com"
] | xtina.schelin@gmail.com |
405603cd97d46988b25e40dc010c932d72b492ff | 49c21b230dd6e6ba9e0bd188e0481d09a7413e42 | /readthedocs/organizations/signals.py | 909d71316cf197e31e5f6a3e2ffc9cbda2620dc2 | [
"MIT"
] | permissive | InfinitzHost/readthedocs.org | 1d828702d81ea5a25c52e571c819859237fb8faa | b311c732320a4469b474d7f859380bc4ee8cd432 | refs/heads/master | 2023-08-05T07:13:17.317371 | 2021-02-23T15:23:01 | 2021-02-23T15:23:01 | 341,595,013 | 1 | 0 | MIT | 2021-09-23T06:30:38 | 2021-02-23T15:13:15 | Python | UTF-8 | Python | false | false | 2,151 | py | """Organization signals."""
import logging
from allauth.account.signals import user_signed_up
from django.db.models import Count
from django.db.models.signals import pre_delete
from django.dispatch import receiver
from readthedocs.builds.models import Version
from readthedocs.organizations.models import (
Organi... | [
"stsewd@protonmail.com"
] | stsewd@protonmail.com |
b4c0a53258584a9d7357750b05cfeb7f6f680772 | 39fbf2339fc5f50d048f5b636aea896aa64ff231 | /models.py | 650b7619d47f48581a692968a3170a739b78bd40 | [] | no_license | jeong-tae/MovieRating-TF | de2f0b7c15c06abfd353d48b54893d9c6e0e279a | ca131bfd28656c4e484a9b258bf4509edeac8563 | refs/heads/master | 2021-01-01T18:20:07.476756 | 2017-07-27T10:51:11 | 2017-07-27T10:51:11 | 98,308,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | import numpy as np
import tensorflow as tf
def linear_fn(x, K = 20, stddev = 0., name = None):
initializer = tf.random_normal_initializer(stddev = stddev)
_shape = tf.cast(x, tf.float32).get_shape().as_list()
if len(_shape) > 2:
raise ValueError
w = tf.Variable(initializer([_shape[1], K]), name... | [
"make8286@naver.com"
] | make8286@naver.com |
a416d2ebc401874a4eea8d07fd5b4d2df53f92e2 | 66a826499f82e59b6a001ae4682e1fbd867ddb60 | /sandbox/apps/comment/models.py | 16a048ec7b8ad271ad6f342223d21cd012c949cb | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | aiegoo/django-blog | 6c6e79828b2973045360752ef1880a44cd1f6588 | f1c1de7435336825c97d6d1d030c53df400af73c | refs/heads/master | 2023-06-14T01:45:43.639716 | 2020-09-29T21:18:28 | 2020-09-29T21:18:28 | 385,572,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,699 | py | from django.db import models
from django.conf import settings
from apps.blog.models import Article
import markdown
import emoji
class Comment(models.Model):
author=models.ForeignKey(settings.AUTH_USER_MODEL, related_name='%(class) s_related', verbose_name='reviewer', on_delete=models.CASCADE)
create_date=mod... | [
"pawanpaudel93@gmail.com"
] | pawanpaudel93@gmail.com |
3f4e4132225aa9e938818ad6e47cc6db321f9891 | fa1a0c6285e18eabdb6d1dc4ee7584a4b9d7176b | /logistic regression for two classes.py | 11d9a97aa12f981eb3ba40ab13bafebf840009bf | [] | no_license | Mostafa202/logistic-regression-from-scratch | 1294f399b7118e856ccb2dbe4bc6a69fd7b0cf73 | f69b8d01ba022341cc49cbc1398ce9d8d9dc8c53 | refs/heads/master | 2023-02-14T18:07:44.392348 | 2021-01-11T17:46:35 | 2021-01-11T17:46:35 | 328,745,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,902 | py |
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
dataset=pd.read_csv("logistic.csv")
x=dataset.iloc[:,:-1].values
y=dataset.iloc[:,-1].values
from sklearn.preprocessing import *
#en=LabelEncoder()
#x[:,1]=en.fit_transform(x[:,1])
m=MinMaxScaler()
x=m.fit_transform(x)
def sigmoid(theta,x):
... | [
"mostafa.mi1000@gmail.com"
] | mostafa.mi1000@gmail.com |
02a8803e807fc9deff5bb500cd7bbe1ec1e6e8f5 | a4ea525e226d6c401fdb87a6e9adfdc5d07e6020 | /src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/vnet_gateway/packet_capture/_stop.py | f2ea3ecffeeb97633ad77215f9c0c9a9fb75268d | [
"MIT",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MPL-2.0",
"LGPL-2.1-only",
"Apache-2.0",
"LGPL-2.1-or-later",
"BSD-2-Clause"
] | permissive | Azure/azure-cli | 13340eeca2e288e66e84d393fa1c8a93d46c8686 | a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca | refs/heads/dev | 2023-08-17T06:25:37.431463 | 2023-08-17T06:00:10 | 2023-08-17T06:00:10 | 51,040,886 | 4,018 | 3,310 | MIT | 2023-09-14T11:11:05 | 2016-02-04T00:21:51 | Python | UTF-8 | Python | false | false | 6,463 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
97fec5b390f449af99c02b67c5b116a7a433ff93 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startCirq1611.py | 1633204ade17fab90965b8f69b217ad38da07ded | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,244 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=5
# total number=60
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
4bb9946ae758e3b022aaf6ff1e5265b84c6b3e6e | 828668102c8783b2c057c97493243b9b8efb6d60 | /src/API/cgi-bin/entrance/sample/test4.py | 9c716a1e42b55bab24d07837892585c02ca6c6dd | [] | no_license | Hirabayashi623/Python | edd597d00ace9dc1f94c457a6dc00c9afafaf46a | e3023cff3676db21003c6bb0f7609f682e734b8e | refs/heads/master | 2020-03-09T01:06:56.779864 | 2018-07-16T08:33:27 | 2018-07-16T08:33:27 | 127,905,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | import codecs
import cgi
text_html = ''
fin = codecs.open('./html/entrance/sample/test4.html','r', 'utf_8')
for line in fin:
text_html += line
dict = {}
form=cgi.FieldStorage()
dict['first'] = form.getfirst("check","not found")
dict['list'] = form.getlist("check")
print("Content-type: text/html\n")
print(tex... | [
"ryo662233@gmail.com"
] | ryo662233@gmail.com |
8ca43076c3d8bf38e308bed9a671d3351a317c0b | 86ecd287939bbe097061feaca427bbf5f287c35c | /test/node/node_keyword.py | dfb088395ed10993ad80d112acca64c34b9507a3 | [
"MIT"
] | permissive | lwzSoviet/finale | 2e76d00c77cc2e089c7973fa71502da66c4d492b | 6166bee0ddbd1d886abccee0c1c699eaf8f53040 | refs/heads/main | 2023-06-16T02:18:39.854643 | 2021-07-13T12:06:31 | 2021-07-13T12:06:31 | 385,586,266 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26 | py | # keyword
add(name="123")
| [
"pakecalvs@outlook.com"
] | pakecalvs@outlook.com |
3f7eacd8ddc425dd484677b87b667097a8ed18b6 | 3821860187e15a4235d541e7db510732c18212b0 | /frontend/urls.py | 0cf036fb26e20305a4ec85a41c131ecde41076b5 | [] | no_license | memadd/todo | 15fb5901a87b162bb793c0b9f4c73674e38bab8f | 3ed0acc15596964c50eca863b01fdddff7f5586d | refs/heads/master | 2021-04-02T18:33:27.582092 | 2020-03-31T22:18:29 | 2020-03-31T22:18:29 | 248,308,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | from django.urls import path
from . import views
urlpatterns = [
path ('list/', views.list, name='list'),
] | [
"memad632@gmail.com"
] | memad632@gmail.com |
bfdef2e2d892417a7098972ee128fe5199ee9ef1 | 9b43b36f36d9375073c8f1c409c0a7eb03eb6703 | /day_2_advent_2020.py | 5f84969de6c72f2f0c27edbc01369e5092d25977 | [
"MIT"
] | permissive | consentfactory/adventOfCode2020 | 68aa4161d9d6f353a8c0735f29216902f59af89b | b2896811a82ee9e6fd28fea92079614e851f7854 | refs/heads/master | 2023-01-27T22:52:06.587765 | 2020-12-04T09:21:30 | 2020-12-04T09:21:30 | 318,086,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,020 | py | # Advent of Code - Day 2
# day_2_advent_2020.py
# 2020.12.02
# Jimmy Taylor
# Reading data from text file, spliting each value as separate lines without line break
input_data = open('inputs/day2.txt').read().splitlines()
# Cleaning up the data in each row to make it easier to parse later as individual rows
modified_da... | [
"jimmy@consentfactory.com"
] | jimmy@consentfactory.com |
d5277fa235023a86b95aefe76be2b4347c8fc468 | 5d5f9afb73389b44d4dabcefa4cf3c9a652719af | /counter.py | 76a8d6839406a58327663a0a95f3bdeea7f7fd32 | [
"MIT"
] | permissive | im085/chibi | c171eb3edfd31e5d88b5f2496dd52521e66feacc | 2caa74efcc9c335b6db086a25b94c61a7475ebe0 | refs/heads/master | 2020-08-03T14:56:21.056556 | 2019-12-16T07:40:59 | 2019-12-16T07:40:59 | 211,792,919 | 0 | 0 | MIT | 2019-09-30T06:42:07 | 2019-09-30T06:42:07 | null | UTF-8 | Python | false | false | 354 | py | class Counter(object):
def __init__(self): #コンストラクタ
self.cnt=0
def doublecount(self):
self.cnt += 2
def reset(self):
self.cnt = 0
def show(self):
print(self.cnt)
def __repr__(self):
return str(self.cnt)
c = Counter()
c.show()
c.doublecount()
c.show()
prin... | [
"mo8ri5@im085ztto.local"
] | mo8ri5@im085ztto.local |
bf3ad5e2691dc69e21891663d552faace47a5481 | 448d70d59cd2ebf5c6f183de227d66180cef3029 | /scripts/addons_extern/AF_add_objects_specials/add_light_template.py | 47339cb5f513c23bf7b908b8e1667ac3dc7d0029 | [] | no_license | motorsep/blenderpython | 804fb149f7a8d22425e057bf3ae91f36fecb047f | f69bc448ed44875d30fcfda1acb33962015386c9 | refs/heads/master | 2021-01-18T02:01:54.117018 | 2016-04-10T06:06:36 | 2016-04-10T06:06:36 | 56,364,677 | 1 | 0 | null | 2016-04-16T04:00:56 | 2016-04-16T04:00:55 | null | UTF-8 | Python | false | false | 5,084 | py | bl_info = {
"name": "Light Template",
"author": "Rebellion",
"version": (1, 0),
"blender": (2, 7, 0),
"location": "View3D > Add > Lights Template",
"description": "Adds a light/camera template to your scene",
"warning": "",
"wiki_url": "",
"category": "Camera"}
import bpy
from bpy... | [
"meta.androcto1@gmail.com"
] | meta.androcto1@gmail.com |
d3a15eeb5b219cb7402dabe0936aa000fa9631a2 | dafe53f683a521389c66fc77dddb5f15aa9d0783 | /M101P/week-1/pyhon/python-simple-print.py | 043261de35c34f81e0ebb1256fb9c6eaa07ecd25 | [] | no_license | bozhink/mongodb-university | a56fde17d2f0af325875c9ad5e50b62c0b379abc | ec0de61cd658980f61ed8054fd1516814fc63896 | refs/heads/master | 2020-04-04T10:40:21.194742 | 2017-08-05T12:17:47 | 2017-08-05T12:17:47 | 54,334,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26 | py | print("Hello " + "World")
| [
"bozhink@gmail.com"
] | bozhink@gmail.com |
739e625fd56795bf80d7234bd869372ae0cb58a3 | 6c8f3ab5f952d986a17edda582c5a039bf65c632 | /python_fundamentals/insertion_sort.py | a4b9dc2aee91a839ad7a73818c07f803a09bc758 | [] | no_license | phillipn/coding_bootcamp_projects | 3d3bd697728dd4502267e0cd2be7a090952029a8 | 278f96df9d256364583654a00fe585d474ea86a1 | refs/heads/master | 2021-01-17T17:30:14.607944 | 2017-03-19T18:12:32 | 2017-03-19T18:12:32 | 82,971,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | import random
import time
def insertion_sort(arr):
start = time.time()
for i, item in enumerate(arr):
if i == 0:
continue
while i > 0:
if arr[i] < arr[i-1]:
arr[i-1], arr[i] = (arr[i], arr[i-1])
i -= 1
end = time.time()
time_elapsed = ... | [
"phillipn101@gmail.com"
] | phillipn101@gmail.com |
7d8989ff8a6cd72c2a4c0e4dc6940fe9a50e6adc | 86897de26d2e38ccb6209f18beeac779b95f2f8b | /setup.py | 76dea5c25f0b6c3a4edf3cac6446aa451a0a7203 | [
"BSD-2-Clause"
] | permissive | CivicKnowledge/jupyterhub-authenticators | 0319220a531fd391779d1112e7447cfd8e9b046d | d14c49b0fe44035d66c4ef67ccf4aec84ff79815 | refs/heads/master | 2020-03-30T02:50:13.091033 | 2019-05-08T00:11:20 | 2019-05-08T00:11:20 | 150,653,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | from setuptools import setup
setup(
name='jh-auth',
version='0.1.5',
description='Custom authenticators for JupyterHub',
url='https://github.com/CivicKnowledge/jupyterhub-authenticators.git',
author='Eric Busboom',
author_email='eric@civicknowledge.com',
license='2 Clause BSD',
packages... | [
"eric@civicknowledge.com"
] | eric@civicknowledge.com |
5186c72e558ed5421e9b77e651b89b5baeeee988 | 98f1d2c94812f43e62afbb238c41b1761615b08c | /Paint/paint.py | 8c43422ff509f5fcf863714ed646a4212c16bab7 | [] | no_license | aPro313/WebScraping | efaf47e505c38c03ac6762fd6b5561f1675ae8aa | ee2a15b4fc9ea9a617430881f86d858787493449 | refs/heads/master | 2022-12-12T05:52:57.917242 | 2020-09-01T03:24:54 | 2020-09-01T03:24:54 | 282,470,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,996 | py | import requests
from selenium.webdriver.common.keys import Keys
from selenium import webdriver
from selenium.webdriver.support.select import Select
import time
from parsel import Selector
import sys
import xlsxwriter
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expecte... | [
"Aprogrammer313@gmail.com"
] | Aprogrammer313@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.