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
46efb78a2acbcd58008ea1bc5f50998401a4a474
557c9d016edc56c72dac6a0b3093d195b10b1a6c
/examples/ex33_common.py
cd535acf255a5de421d64d16d452c5e8f5303ca4
[ "BSD-3-Clause" ]
permissive
mfem/PyMFEM
dae79fb8aa9ca983780c789b2b6e70e894644573
37084af6798ea8bb8f03b2648863befabee829bb
refs/heads/master
2023-08-31T07:04:28.522945
2023-07-18T02:21:57
2023-07-18T02:21:57
83,574,932
154
54
BSD-3-Clause
2023-08-15T01:40:47
2017-03-01T16:16:48
SWIG
UTF-8
Python
false
false
8,356
py
''' Ex33_common.py This is a translation of MFEM ex33.hpp. LAPACK call, mfem.Vector, mfem.DenseMatrix are replaced using numpy (Implementation of the AAA algorithm) Here, we implement the triple-A algorithm [1] for the rational approximation of complex-valued functions, p(z)/q...
[ "shiraiwa@princeton.edu" ]
shiraiwa@princeton.edu
c4e3d2c0198df15fcb9635b190ff937c0a238289
5c35be01a7f659bb080544c5e62faa22307f01da
/pr412-my-charity-change-backend-python/migrations/versions/28f74cb10e35_add_send_tax_reciept_flasg_to_customer.py
383f316a63eb39b17dddf20b2043b814522640bd
[]
no_license
dragonmaster-alpha/Charity-App
3b3932c0a05cc21b9d36bd2952673028cc56a11a
b66e2bc74fc15ca2a9c70f5261d05f5b9d17b451
refs/heads/master
2023-08-24T02:21:15.406784
2021-10-29T06:18:20
2021-10-29T06:18:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
701
py
"""Add send_tax_reciept flasg to customer Revision ID: 28f74cb10e35 Revises: f3bdf790db9b Create Date: 2020-08-10 14:53:05.732193 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '28f74cb10e35' down_revision = 'f3bdf790db9b' branch_labels = None depends_on = Non...
[ "78602151+dragonmaster-alpha@users.noreply.github.com" ]
78602151+dragonmaster-alpha@users.noreply.github.com
ed80bc16dfb22d80024c3f7ec27c4aa5882763ad
9a8746628978eb368da0c4aea7da9ad0818b0c75
/StreamLitLibrary.py
1f14d7959d1c59d1779fd1855080ec70de2cf10a
[]
no_license
jayreds73/Heroku-Deployment
67999469165f4f9bee91252aef34a54de518b51b
bfa893a19004c1418e8a0ac72d1e522b03ae790f
refs/heads/master
2022-12-15T03:17:28.359818
2020-09-09T20:10:53
2020-09-09T20:10:53
294,200,010
0
0
null
null
null
null
UTF-8
Python
false
false
1,725
py
#from flask import Flask,request import pandas as pd import pickle as pkl import streamlit as st # Run this - "streamlit run filename" in command prompt # load the model at the start of the app pickle_in = open('model.pkl','rb') model_iris = pkl.load(pickle_in) def get_description(int_code): if (in...
[ "noreply@github.com" ]
jayreds73.noreply@github.com
fa831199505226547d9cfa53b8caf0ccbd1afd58
fa7e75212e9f536eed7a78237a5fa9a4021a206b
/OLD_ROOT/Backend/SMQTK_Backend/utils/jsmin/test.py
7aba6993dc941efa2e6ea9557fd99d5a9b43b720
[]
no_license
kod3r/SMQTK
3d40730c956220a3d9bb02aef65edc8493bbf527
c128e8ca38c679ee37901551f4cc021cc43d00e6
refs/heads/master
2020-12-03T09:12:41.163643
2015-10-19T14:56:55
2015-10-19T14:56:55
44,916,678
1
0
null
2015-10-25T15:47:35
2015-10-25T15:47:35
null
UTF-8
Python
false
false
8,702
py
import unittest import sys # modified path since this is now being embeded in another project. from SMQTK_Backend.utils import jsmin class JsTests(unittest.TestCase): def _minify(self, js): return jsmin.jsmin(js) def assertEqual(self, thing1, thing2): if thing1 != thing2: print(re...
[ "paul.tunison@kitware.com" ]
paul.tunison@kitware.com
4b06fc12b6a9688a025351ad8cbe58b26b21f7c5
754b824173f3e5b1cef69890deaea71c2ad0b84d
/Linear Regression.py
3d28b9e8ff31b546708213c7417bde49d549cbcf
[]
no_license
yanivmm/python
5a8e5c8a59c27a280a92cc7b8617e73b9d1c9a6e
e27f4d0716525e9c4ee6c8541cdb048670f5db22
refs/heads/master
2023-02-03T11:49:35.837406
2020-12-24T10:53:10
2020-12-24T10:53:10
257,415,163
0
0
null
null
null
null
UTF-8
Python
false
false
2,241
py
#import import pandas as pd import numpy as np import datetime import matplotlib.pyplot as plt import seaborn as sns # read file path = r'C:\Users\97250\Desktop\studied\R ,python\ניתוח מידע\Ecommerce Customers.csv' cust = pd.read_csv(path) # explore data # A try to search the most affecting column...
[ "noreply@github.com" ]
yanivmm.noreply@github.com
207ca51d306160bcb1b64211690cf57342453446
2f43dd9eae7c3a290a50599305fac5106b2dd7cf
/webempresa/services/models.py
0277ee4a4986340cfebae70d45014dd4b5affc40
[]
no_license
FernandoHer/maderamandala
2f4a1713ea4e067198f74ca00ae7197a606f3524
eec89b421337b36840ec5fe4ff65d773bba0d870
refs/heads/master
2022-11-25T16:37:08.917485
2020-04-07T20:54:15
2020-04-07T20:54:15
253,895,809
0
0
null
2022-11-22T02:25:07
2020-04-07T19:45:24
Python
UTF-8
Python
false
false
723
py
from django.db import models # Create your models here. class Service(models.Model): title = models.CharField(max_length=200, verbose_name = "Titulo") subtitle = models.CharField(max_length=200, verbose_name = "Subtitulo") content = models.TextField(verbose_name = "Contenido") image = models.ImageField...
[ "juanherdoiza@iMac-de-Juan.local" ]
juanherdoiza@iMac-de-Juan.local
eca0f1c99ec492e8b3c6a27b02d6557f8aa3ae1b
84c2fa4aed9094b5ec3cc612d28980afe5d42d34
/leetcode/day11_24.py
a6e997a5b64e66b53c1eb8fab9ec554c45fcd371
[]
no_license
cyg2695249540/generatewework
186831a1b5c788e9b99e90d1a08bf6a8638131ce
cd01b0fc4a69cc2f2ed4c109afdf8771bee3bffd
refs/heads/master
2023-01-20T17:13:13.186034
2020-12-01T12:05:01
2020-12-01T12:05:01
310,201,995
0
0
null
null
null
null
UTF-8
Python
false
false
925
py
# !/usr/bin/env Python3 # -*- coding: utf-8 -*- # @FILE : day11_24.py # @Author : Pluto. # @Time : 2020/11/24 16:06 """ exp:66. 加一 给定一个由 整数 组成的 非空 数组所表示的非负整数,在该数的基础上加一。 最高位数字存放在数组的首位, 数组中每个元素只存储单个数字。 你可以假设除了整数 0 之外,这个整数不会以零开头。 示例1: 输入:digits = [1,2,3] 输出:[1,2,4] 解释:输入数组表示数字 123。 示例2: 输入:digits = [4,3,2,1] 输出:...
[ "2695249540@qq.com" ]
2695249540@qq.com
6d233bd2ae30ac3ff55e44e216f83f7ca5974969
887d21782f2741d8a273807642346ab7cd0dac6e
/list_files.py
4cbc2e8e2b36f40a7c36ec26d8d15585aba26e85
[]
no_license
TheRealTimCameron/Sandbox
c375ff356710fe4a1935ddd86603731240c7283e
4778376c0a018065b50f6ba4abcd6cfac344d538
refs/heads/master
2020-04-30T13:37:00.562336
2019-03-21T03:46:29
2019-03-21T03:46:29
176,863,481
0
1
null
null
null
null
UTF-8
Python
false
false
131
py
import os print("The files and folders in {} are:".format(os.getcwd())) items = os.listdir('.') for item in items: print(item)
[ "TimCameron56@gmail.com" ]
TimCameron56@gmail.com
f75a10dc0ef05561c5371a193810ff7eefcf5c22
b76aa6044aa0971bc7842cd4c3faa281c9c0e5cd
/1044_multiplos.py
f0455f370926483d5f3d396afe4542b00c05b844
[]
no_license
Miguelsantos101/algoritmos1-2021-1
8496233f6d37bd70e47949c7e23b34e6c2181bd1
fe03097d870e4f47796e69c97020f9c0bdba0cab
refs/heads/main
2023-05-03T23:08:53.669522
2021-05-27T02:33:12
2021-05-27T02:33:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
193
py
#a, b = input().split() #a = int(a) #b = int(b) a, b = map(int, input().split()) if a < b: temp = b b = a a = temp if a % b == 0: print("Sao Multiplos") else: print("Nao sao Multiplos")
[ "carloshiga@alumni.usp.br" ]
carloshiga@alumni.usp.br
c596b6a116427c9d0e40510a7bac545c5ed464a6
f98f6746851790aabeb996fafe74a24236bb580d
/is_prime_number.py
373c717dc73f6683a6918d54130d6e0b43452f31
[]
no_license
licheeee/PythonProject
b8c619cfbbe2f0e70284ffc2c0e9283c41d6f58c
9c114f32b51e6f8dc275cb36cb8b0e05e1c42548
refs/heads/master
2020-04-23T06:12:04.958043
2019-10-17T15:15:58
2019-10-17T15:15:58
170,965,853
0
0
null
null
null
null
UTF-8
Python
false
false
323
py
# -*- coding: UTF-8 -*- # 判断一个数字是否是质数 num = int(input("Please input a number :")) primeFlag = True sqrt = int(num ** 0.5) for i in range(2, sqrt + 1): if (num % i) == 0: print("{0} is not a prime number.".format(num)) break else: print("{0} is a prime number.".format(num))
[ "qiaoxw@outlook.com" ]
qiaoxw@outlook.com
edbfd9f211f972906a7be68a3b1de4ba080d1d03
4e2a22470c983bc6f8463b4d0bd2563e2b4fadba
/manage.py
91afffd0eea54135379279692eb3ab4988697b8b
[]
no_license
payush/ayush-crowdbotics-375
8537f9a86fcdcda7418a0c10a5f258bafc07dd9c
c11bdd721d91e765bcb04379dac476279e6ca599
refs/heads/master
2020-03-23T22:34:09.700234
2018-07-24T16:09:19
2018-07-24T16:09:19
142,182,994
0
0
null
null
null
null
UTF-8
Python
false
false
819
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ayush_crowdbotics_375.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. En...
[ "ayushpuroheet@gmail.com" ]
ayushpuroheet@gmail.com
c6119fca8e49b7cc3081a8d3441946e564c44017
24a3645595fb5aa6f4e0484c8b9e6fbcf31ae5a5
/rl_loop/train_and_validate.py
3be4f997d7bb5dc358cc305377386e12b7305276
[ "Apache-2.0" ]
permissive
2series/minigo
dcec298021e714fb8e203b847dd2d7a9d9451823
fda1487dff94a710e9359f80c28d08d99d6c3e3c
refs/heads/master
2020-04-05T20:35:18.809871
2018-11-12T09:18:53
2018-11-12T09:18:53
157,187,163
1
0
null
2018-11-12T09:20:43
2018-11-12T09:20:42
null
UTF-8
Python
false
false
3,698
py
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ "brian.kihoon.lee@gmail.com" ]
brian.kihoon.lee@gmail.com
f03e0bd25b2839aff153fea90abc924e46a6584e
1bdc56d1f66501bada19b277a47655dc99f44f2e
/const.py
c6f26b24ff8369d500a57235ad9d6e874677e6b2
[]
no_license
antista/pacman
682811715b930db0c8765d5da9340f91d8f4e8b7
adb51eb219c6758dc553671ddc68db700a6df358
refs/heads/master
2020-04-17T07:56:49.953567
2019-01-18T11:02:31
2019-01-18T11:02:31
166,391,144
0
0
null
null
null
null
UTF-8
Python
false
false
4,379
py
import pyganim from pygame import * from pyganim import * SOUNDS = dict( wakka='sounds/wakka.wav', energizer='sounds/energizer.wav', eat_ghost='sounds/eating_ghost.wav', death='sounds/death.wav' ) SIZE = 16 BACK_COLOR = "#00FFFF" ANIMATION_DELAY = 50 # скорость смены кадров ANIMATION = dict() ANIMA...
[ "anti2100@yandex.ru" ]
anti2100@yandex.ru
1cb69e60aa615509cf524ab1fb086168647ae432
7dc80048f72e106f977b49ea882c63cc9623e3ef
/notebooks/other/Y2017M07D28_RH_python27setup_v01.py
250e214bbfc2fd21afe44797cb7e69bbeb700a16
[]
no_license
YanCheng-go/Aqueduct30Docker
8400fdea23bfd788f9c6de71901e6f61530bde38
6606fa03d145338d48101fc53ab4a5fccf3ebab2
refs/heads/master
2022-12-16T03:36:25.704103
2020-09-09T14:38:28
2020-09-09T14:38:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
742
py
# coding: utf-8 # # Test Python 27 setup # # * Purpose of script: test python 27 environement against several libraries # * Author: Rutger Hofste # * Kernel used: python27 # * Date created: 20170728 # # # In[3]: packages = {"earth engine":-1,"gdal":-1,"geopandas":-1,"arcgis":-1} # In[6]: try: import ee ...
[ "rutgerhofste@gmail.com" ]
rutgerhofste@gmail.com
a083a001d9f5a9559169c82b7ac70022a8d131c7
c534fba89ff0462334cc724ff4010cbed829e294
/web/myadmin/migrations/0012_auto_20191019_1638.py
8bbaa46d7e85d15be38f10c54609829eb800d7f6
[]
no_license
victorfengming/python_bookshop
974f5f8ff3b53b024b573f0f256409204116e114
c0a4757fc2031a015d4b198ba889be69a2a4a3c5
refs/heads/master
2020-09-02T18:02:07.547345
2019-11-04T15:10:44
2019-11-04T15:10:44
219,275,403
1
1
null
null
null
null
UTF-8
Python
false
false
366
py
# Generated by Django 2.2.3 on 2019-10-19 16:38 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('myadmin', '0011_auto_20191018_2225'), ] operations = [ migrations.DeleteModel( name='Booktype', ), migrations.DeleteMode...
[ "fengming19981221@163.com" ]
fengming19981221@163.com
5fa8134299debad3891dee51566474f0fd8a89e0
e8411c4506c106ce0a378f8a1a86c7b83363867c
/src/kmeans.py
b4a8131cc89b91160836751d37a336cc6d1d59a9
[]
no_license
rdyzakya/UnsupervisedLearning
d833d49feed7ebe41ef8fa855704ec56ed830de2
0a0e6a9f9d0b9cc03816384307556d217f3ac70e
refs/heads/main
2023-06-26T01:19:09.690564
2021-07-25T11:08:13
2021-07-25T11:08:13
382,757,126
0
0
null
null
null
null
UTF-8
Python
false
false
2,165
py
import numpy as np import time class DistanceMethodNotValidError(Exception): pass class NotSameLength(Exception): pass class KMeansClustering: def __init__(self): self.centroids = None self.x_columns = None self.how = None self.df = None def euclidean_distance(self,this_row,other): res = 0 for cols ...
[ "impper1@gmail.com" ]
impper1@gmail.com
ff90cd1f1161c0d09ab2942b7f313e655ef548a0
a6bd898302ffebe9066595b264f9e5e38e6fa8e6
/settings_template.py
069b2d192200ef4343a3508486203a989c2cb909
[]
no_license
symroe/teamprime_retweets
65e8ec57095b138be45496eb115fb4da1d1e1af0
08e817da6191a8058b3606b076ba9de6bd253b12
refs/heads/master
2021-01-10T22:04:16.968867
2013-09-20T13:32:03
2013-09-20T13:32:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
136
py
CONSUMER_KEY = "" CONSUMER_SECRET = "" ACCESS_TOKEN_KEY = "" ACCESS_TOKEN_SECRET = "" username = "TeamPrimeLtd" TWEET_PATH = "tweets"
[ "sym.roe@talusdesign.co.uk" ]
sym.roe@talusdesign.co.uk
7f19e8afa6fdab3a0d7af9f55578ca1ba59afa65
81061f903318fceac254b60cd955c41769855857
/server/paiements/migrations/0003_auto__chg_field_transaction_extra_data.py
b059e9dea63be589ea180dbfe9a60bdc411cea7a
[ "BSD-2-Clause" ]
permissive
agepoly/polybanking
1e253e9f98ba152d9c841e7a72b7ee7cb9d9ce89
f8f19399585293ed41abdab53609ecb8899542a2
refs/heads/master
2020-04-24T06:15:16.606580
2015-10-26T19:52:03
2015-10-26T19:52:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,133
py
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Changing field 'Transaction.extra_data' db.alter_column(u'paiements_transaction', 'extra_data', self.gf('...
[ "maximilien@theglu.org" ]
maximilien@theglu.org
c7fe334fcb246d191e7db56465b77abd86f98947
83412c7effe6a47e423fb55541d768d1bb308de0
/HW1/code/src/titanic.py
90f303852d55635b43e5ce3301f6e9b3daf995ab
[]
no_license
atibhav21/CSM146
7be041ae972ebd3a78c01e2a98075f66f875e9f4
ab806ec5fe23a7b36e503b304445b0efe83f12d5
refs/heads/master
2021-09-09T05:52:27.155543
2018-03-14T02:52:46
2018-03-14T02:52:46
117,149,527
0
0
null
null
null
null
UTF-8
Python
false
false
16,174
py
""" Author : Yi-Chieh Wu, Sriram Sankararaman Description : Titanic """ # Use only the provided packages! import math import csv from util import * from collections import Counter from sklearn.tree import DecisionTreeClassifier from sklearn.neighbors import KNeighborsClassifier from sklearn.cross_validation impo...
[ "atibhav.mittal6@gmail.com" ]
atibhav.mittal6@gmail.com
6aa6cad3f09fd39c8de6b26302daf10e485cedb5
27ece9ab880a0bdba4b2c053eccda94602c716d5
/.history/save_20181129231105.py
50671059975cdfa4cf895b943b529349ae4d201e
[]
no_license
Symfomany/keras
85e3ad0530837c00f63e14cee044b6a7d85c37b2
6cdb6e93dee86014346515a2017652c615bf9804
refs/heads/master
2020-04-08T20:21:35.991753
2018-11-30T08:23:36
2018-11-30T08:23:36
159,695,807
0
0
null
null
null
null
UTF-8
Python
false
false
2,777
py
import os, argparse import tensorflow as tf # The original freeze_graph function # from tensorflow.python.tools.freeze_graph import freeze_graph dir = os.path.dirname(os.path.realpath(__file__)) def freeze_graph(model_dir, output_node_names): """Extract the sub graph defined by the output nodes and convert ...
[ "julien@meetserious.com" ]
julien@meetserious.com
5854285ac06cf19046ef130cc5b0824d88f1507f
86e42c9f8576b9d4cda02aebf60b7820fe7e9bef
/version.py
a3220818626214d55f0e8543ad9c2875366cd45e
[ "MIT" ]
permissive
ryansturmer/gitmake
4a5c25f8073ed07a5af25b4ffa093c47013548d8
8d6a2917af602f71dcdae0b142defaf529e9ee8c
refs/heads/master
2020-05-20T11:16:26.591662
2013-12-15T16:32:02
2013-12-15T16:32:02
11,926,238
1
0
null
null
null
null
UTF-8
Python
false
false
62
py
major = 0 minor=0 patch=0 branch="dev" timestamp=1376801630.58
[ "ryansturmer@gmail.com" ]
ryansturmer@gmail.com
6cd666cf9ad2d4f9fbbfd2c624ff106e65444172
7c70f3cbaecfa4d77928c784ae12f232c273112e
/api_client/test_helper.py
92caf6ea0aa0d2d82ca5d95fe1af6896fce47376
[ "MIT" ]
permissive
uktrade/lite-tests-common
d029298d9144a447404d38899ab35ff8e54bf53d
8ae386e55f899d0ffd61cc0a9156cd4db340d6d1
refs/heads/master
2020-08-03T19:20:39.673522
2020-07-21T09:59:01
2020-07-21T09:59:01
211,858,651
1
0
MIT
2020-07-21T09:59:03
2019-09-30T12:49:33
Python
UTF-8
Python
false
false
2,474
py
from .sub_helpers.documents import Documents from .sub_helpers.applications import Applications from .sub_helpers.cases import Cases from .sub_helpers.document_templates import DocumentTemplates from .sub_helpers.ecju_queries import EcjuQueries from .sub_helpers.flags import Flags from .sub_helpers.goods import Goods f...
[ "noreply@github.com" ]
uktrade.noreply@github.com
ace75a11edfb9adc326e867b401cc79979f5c7b9
991c3f7acbec5511441e62cb464bd77f9169c70c
/products/views.py
99fb6da645e9f42eddd0922ac853e550381a0e31
[]
no_license
anshika-1999/ecommerce_project
44e78cf7b22ab0ac92fd673a9069b870c4ab3175
c9842516a80887205e7ce677f2c78d2608887670
refs/heads/master
2022-12-16T10:07:09.990805
2020-09-17T15:07:41
2020-09-17T15:07:41
296,339,336
0
0
null
null
null
null
UTF-8
Python
false
false
686
py
from django.shortcuts import render from django.http import HttpResponse from .models import Product def productsHome(request): allProds = [] catprods = Product.objects.values('category', 'product_id') cats = {item['category'] for item in catprods} for cat in cats: prod = Product.objects.filter...
[ "anshikag.1999@gmail.com" ]
anshikag.1999@gmail.com
5aa68c22244a5396ea453095dedc1d96aba4aa72
d9b53673b899a9b842a42060740b734bf0c63a31
/leetcode/python/easy/p645_findErrorNums.py
0b9b378910292d7af736c77ca60c91c415bce9a7
[ "Apache-2.0" ]
permissive
kefirzhang/algorithms
a8d656774b576295625dd663154d264cd6a6a802
549e68731d4c05002e35f0499d4f7744f5c63979
refs/heads/master
2021-06-13T13:05:40.851704
2021-04-02T07:37:59
2021-04-02T07:37:59
173,903,408
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
class Solution: def findErrorNums(self, nums): helper = [0] * len(nums) for i in nums: helper[i - 1] += 1 for i, n in enumerate(helper): print(i, n) if n == 0: lack = i + 1 elif n == 2: more = i + 1 r...
[ "8390671@qq.com" ]
8390671@qq.com
b41e10890c9ac9413fe046efde3866bcd757844a
5b19f8512f3f8716f7e7b9b45380d3d9eb92565e
/app/app/settings.py
59760d31a9202a974de5e40adc3bffd206d90a84
[]
no_license
raiatul14/taxi-app
a1daf11649b1de2e0f9942aa40dd193617641c50
37cf15ab77bb808494551300a25c8da8ed85645b
refs/heads/main
2023-06-26T15:54:49.244535
2021-07-24T14:34:24
2021-07-24T14:34:24
382,535,810
0
0
null
null
null
null
UTF-8
Python
false
false
4,226
py
""" Django settings for app project. Generated by 'django-admin startproject' using Django 3.2.5. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ import os from pa...
[ "atul.rai@ajackus.com" ]
atul.rai@ajackus.com
07d3ff9572b4b5f0580105d33e1d8ada290fd157
d69fc0b185b045489d48ae8aa4caa4e33d01eb55
/hyperf-skeleton/h5/node_modules/utf-8-validate/build/config.gypi
e8575bc70334680c69c495bb08cb4e12499ce236
[ "MIT" ]
permissive
4yop/miscellaneous
7993f2f314147019fc3e36f8b31ae6b7867a2f4f
3adee58f86c139f20926c80b1fb8c025127eef17
refs/heads/master
2023-04-26T11:18:23.755520
2022-08-25T15:55:13
2022-08-25T15:55:13
229,232,972
0
0
null
2023-04-19T20:05:15
2019-12-20T09:26:24
PHP
UTF-8
Python
false
false
3,345
gypi
# Do not edit. File was generated by node-gyp's "configure" step { "target_defaults": { "cflags": [], "default_configuration": "Release", "defines": [], "include_dirs": [], "libraries": [], "msbuild_toolset": "v141", "msvs_windows_target_platform_version": "10.0.17763.0" }, "variables"...
[ "1131559748@qq.com" ]
1131559748@qq.com
249fd231624cd29de11204da14210b15135a09c1
9fa68d4b3332e557ac51ba4f9ed4b0e37e3011c8
/config_sz32_alpha1_5.py
489b0f46ccc029d35864f187efd38f6f659d3ef2
[]
no_license
aizvorski/ndsb17
e545f2b82383e6f826cb31959b0dbefce25c9161
50322131a0cca20c24956b34eb787b65e044e23a
refs/heads/master
2021-06-13T20:16:22.928167
2017-04-12T10:46:01
2017-04-12T10:46:01
83,652,568
0
0
null
null
null
null
UTF-8
Python
false
false
91
py
num_epochs = 500 samples_per_epoch = 10000 lr = 0.001 feature_sz = 32 feature_alpha = 1.5
[ "aizvorski@gmail.com" ]
aizvorski@gmail.com
36d6fbac09d283afec24203a8c80c252d0e04c93
d7016f69993570a1c55974582cda899ff70907ec
/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/aio/operations/_backup_protection_containers_operations.py
977185266eeefe7c362fb3931a8a7fd029b3b0e0
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
kurtzeborn/azure-sdk-for-python
51ca636ad26ca51bc0c9e6865332781787e6f882
b23e71b289c71f179b9cf9b8c75b1922833a542a
refs/heads/main
2023-03-21T14:19:50.299852
2023-02-15T13:30:47
2023-02-15T13:30:47
157,927,277
0
0
MIT
2022-07-19T08:05:23
2018-11-16T22:15:30
Python
UTF-8
Python
false
false
6,974
py
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # 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 Microsoft (R) AutoRe...
[ "noreply@github.com" ]
kurtzeborn.noreply@github.com
c571164d09a9dfe8ee2571e96a5c3e2bb982d580
44064ed79f173ddca96174913910c1610992b7cb
/Second_Processing_app/temboo/Library/Google/Drive/Revisions/Delete.py
21b2277599036d6311d9fc5895330b8646d5bce5
[]
no_license
dattasaurabh82/Final_thesis
440fb5e29ebc28dd64fe59ecd87f01494ed6d4e5
8edaea62f5987db026adfffb6b52b59b119f6375
refs/heads/master
2021-01-20T22:25:48.999100
2014-10-14T18:58:00
2014-10-14T18:58:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,974
py
# -*- coding: utf-8 -*- ############################################################################### # # Delete # Removes a revision. # # Python version 2.6 # ############################################################################### from temboo.core.choreography import Choreography from temboo.core.choreogra...
[ "dattasaurabh82@gmail.com" ]
dattasaurabh82@gmail.com
037e407294716acc0cfc28a662b89b093dfe6d3b
b96edd0ba0a9f2a73a8ef8ed011714798fa72303
/test_all.py
b9cf4978ba413cb3c30ad1ea4439ec2cdc20a863
[]
no_license
lijiahaoAA/lijiahao_cpsc_12lead
9401d9679d530183afba5a15f6efef9a96f2f154
663264920ead07493c0d8fe9987b9ab9a60d35fd
refs/heads/master
2023-03-14T07:11:28.996901
2021-03-09T07:08:50
2021-03-09T07:08:50
345,533,709
0
0
null
null
null
null
UTF-8
Python
false
false
6,924
py
import time import numpy as np np.set_printoptions(threshold=np.inf) import scipy.io as sio import os import config from keras.preprocessing import sequence import QRSDetectorOffline import matplotlib.pyplot as plt plt.rcParams['font.sans-serif']=['SimHei'] #用来正常显示中文标签 plt.rcParams['axes.unicode_minus']=False #用来正常显示负...
[ "1301840357@qq.com" ]
1301840357@qq.com
6028e1a80acb4dba764ef24342f833eb677eea1b
95a60a8fd8a21fcc3bcdcecfd4b6a3a3a3ff35b6
/backend/api.py
e175256a127f6184aa05edf3d108889e4af44c2b
[]
no_license
AkshithBellare/maljpeg-web-app
f59cae2eff7f6446876b4a96b3143c2c38078927
ca83f1ef5bf95e73143aaa0e29b5c8f6f010936d
refs/heads/master
2023-03-29T12:37:29.864849
2021-04-05T13:16:43
2021-04-05T13:16:43
354,757,948
0
0
null
null
null
null
UTF-8
Python
false
false
5,824
py
import os import pickle from flask import Flask from flask_restful import Resource, Api, reqparse from flask_cors import CORS from flask import request, Response import numpy as np import json import PIL.Image as Image import io import base64 from struct import unpack import pandas as pd import sys import glob marker_...
[ "akshithnm@gmail.com" ]
akshithnm@gmail.com
58cd01e6622fd1b0f19af5cb10edacbcb384ce28
07e80d4b41d0db79bfc031b65894e28322d24e19
/zygoat/components/__init__.py
d0b864370a8ff64fa0bf89e99e2a898e0348e10e
[ "MIT" ]
permissive
swang192/zygoat
0b021ad6cd8d286d265e22c5b27f1a8c4f18de6e
d00b6b1cc3a384b61e38845ff35dcbcc74a562d9
refs/heads/master
2021-02-05T21:47:14.089625
2020-02-28T04:03:16
2020-02-28T04:03:16
243,837,678
0
0
MIT
2020-02-28T19:19:33
2020-02-28T19:19:33
null
UTF-8
Python
false
false
320
py
from .base import Component # noqa from .settings_component import SettingsComponent # noqa from .editorconfig import editorconfig from .docker_compose import docker_compose from .backend import backend from .frontend import frontend components = [ editorconfig, docker_compose, backend, frontend, ]
[ "markrawls96@gmail.com" ]
markrawls96@gmail.com
a5a2a4b129d766a01b983be9cdcbdf3471ac18cb
f55eea6e52408c1400d8570b2a55ee8b9efb1a9e
/Python-Programming-Intermediate/Regular Expressions-164.py
f9d4e1a6d0ed4f1453780805d5c3d68ee17f3af1
[]
no_license
CloudChaoszero/Data-Analyst-Track-Dataquest.io-Projects
a8b20c169fde8224c57bb85a845059072651e0e9
3b5be57489f960963a62b385177f13f25de452c3
refs/heads/master
2021-01-21T08:20:25.746106
2017-05-22T21:50:42
2017-05-22T21:50:42
91,623,309
2
3
null
null
null
null
UTF-8
Python
false
false
2,873
py
## 1. Introduction ## strings = ["data science", "big data", "metadata"] regex = "data" ## 2. Wildcards in Regular Expressions ## strings = ["bat", "robotics", "megabyte"] regex = "..t" ## 3. Searching the Beginnings And Endings Of Strings ## strings = ["better not put too much", "butter in the", "batter"] bad_str...
[ "noreply@github.com" ]
CloudChaoszero.noreply@github.com
dbd6c32ba34d3fe4be7a38d40e085d64dc1c2ffc
efa2de2e0ca886a22be34c40cb4b4d397aa05015
/AGE/link_pred_ddi.py
47fa5e9d4c3f629a78f1356612226821a403eb4d
[]
no_license
chuanqichen/cs224w
34c522d95c37089298a03ff2fd113c5b613036cd
aeebce6810221bf04a9a14d8d4369be76691b608
refs/heads/main
2023-03-18T18:03:16.468040
2021-03-21T18:55:48
2021-03-21T18:55:56
345,116,683
4
0
null
null
null
null
UTF-8
Python
false
false
11,490
py
from __future__ import division from __future__ import print_function import os, sys import warnings warnings.simplefilter(action='ignore', category=FutureWarning) warnings.simplefilter(action='ignore', category=RuntimeWarning) warnings.simplefilter(action='ignore', category=UserWarning) sys.path.append(os.path.join(os...
[ "owhsu@stanford.edu" ]
owhsu@stanford.edu
1339b5e2da73351b90d8bbc7a8b70a395472d3c0
fe6c7ddbd2ce513105346c3e9ecd858ee0240237
/inheritance.py
b057cdbb0dc94576693e9bf6f1d8884c58e9835e
[]
no_license
adilreza/basic_python_practice
bfb4d5fc08c360f3b6808b74c431a75e09a09207
c712f47bdde081c305344ec396f9a146d4dad369
refs/heads/master
2020-08-07T00:45:08.938270
2019-10-11T13:29:18
2019-10-11T13:29:18
213,225,377
0
0
null
null
null
null
UTF-8
Python
false
false
473
py
class parent_class: a=4; b=3; def parent_fuction(self): print("this is from parent function") return 0; class child_class(parent_class):#this way inherited def child_function(self): print("this is me from child function") def make_sum(self): sum = self.a+ self.b; ...
[ "adilreza043@gmail.com" ]
adilreza043@gmail.com
9091f732ae972983486dcf8406038d70e2399992
1f7c9b7113985f17ad2e8d27e92bdfe0505c1e19
/com/drabarz/karolina/dominating_set.py
9152994aab5fa5af9f8d99001e42ac542edd057a
[]
no_license
Szop-Kradziej/GIS_Dominating_Set
02891d0dd1eb839809601edf758ea84947ddb46c
ab16c6c8a1bb67446200aa195102c103938ed1b2
refs/heads/master
2016-08-12T11:46:23.628833
2016-01-15T18:21:48
2016-01-15T18:21:48
45,829,125
0
0
null
null
null
null
UTF-8
Python
false
false
5,419
py
import networkx as nx import sys import getopt import csv import time from com.drabarz.karolina.DominatingSetAlgorithm import DominatingSetAlgorithm from com.drabarz.karolina.NetworkXAlgorithm import NetworkXAlgorithm from com.drabarz.karolina.GreedyAlgorithm import GreedyAlgorithm from com.drabarz.karolina.DispersedG...
[ "karolina.drabarz@gmail.com" ]
karolina.drabarz@gmail.com
2871fd432a366e045045dbb0053737b299a418e7
0a61fc847043d677dae701a70b90f119dd7ab8fb
/credentials_replacer/__main__.py
e8a05c1313fa14bcc3d2585e6c960c70585d4e1e
[ "MIT" ]
permissive
MELODYAPP/aws-credential-replacer
4e286def8ab513557ad296ccf444d29537357708
fa645e5613aee242bd2ed670bc7bbc2ba797bb09
refs/heads/master
2021-01-01T20:39:22.871330
2017-08-01T14:47:04
2017-08-01T14:47:04
98,907,993
0
0
null
2017-07-31T16:12:15
2017-07-31T16:12:15
null
UTF-8
Python
false
false
66
py
from .replacer import main if __name__ == '__main__': main()
[ "prokhorov@saritasa.com" ]
prokhorov@saritasa.com
9a817067b8f27c331d6af99100b2914f84c06935
91d8e969facfc4fd7f6002448890d3b5a65fe380
/api/openAccountAPI.py
3e72f9b26ca14d3c281cc11b74bf130b03a9510a
[]
no_license
1105814583/P2P_python
4c2f5c20a7514d35d7820835ea88f812bbdb4db3
bb3da29f877703d884c6b74cea3fb5e232ed1f65
refs/heads/master
2023-09-06T02:15:02.376197
2021-09-16T10:35:58
2021-09-16T10:35:58
407,118,848
0
0
null
null
null
null
UTF-8
Python
false
false
246
py
import app class openAccountAPI: def __init__(self): self.open_account_url = app.BASE_URL + "/trust/trust/register" def openAccount(self, session): response = session.post(self.open_account_url) return response
[ "1105814583@qq.com" ]
1105814583@qq.com
7f3e63f22434cad4df3c5f31228f840cee385144
255e19ddc1bcde0d3d4fe70e01cec9bb724979c9
/all-gists/5259522/snippet.py
530896846672f9f888ff87c34b403125582a7bbd
[ "MIT" ]
permissive
gistable/gistable
26c1e909928ec463026811f69b61619b62f14721
665d39a2bd82543d5196555f0801ef8fd4a3ee48
refs/heads/master
2023-02-17T21:33:55.558398
2023-02-11T18:20:10
2023-02-11T18:20:10
119,861,038
76
19
null
2020-07-26T03:14:55
2018-02-01T16:19:24
Python
UTF-8
Python
false
false
1,252
py
#!/usr/bin/env python import sys files = [] if len(sys.argv) > 2: for file in sys.argv[1:]: files.append(str(file)) else: print "Usage: Wordcount.py file1 file2 file3 ..." words_to_ignore = ["that","what","with","this","would","from","your","which","while","these"] things_to_strip = [".",",","?",")","(","\"",":...
[ "gistshub@gmail.com" ]
gistshub@gmail.com
ea0a54fdc36a8a8a37ace27442c6675bd11d2208
8facec89b1fded458cf3c40dfe4ed2a6b7af87aa
/advanced/class_attributes_management/comparation_with_4_methods_simple/descriptor_implement_improved.py
bbe4764040fdbd62f2644e8e08dbff6c19657902
[]
no_license
tianwei1992/Python_oop_leaning
72bf4c4c0c71cf736bc14912c4aef28642755c80
7e0f4e95c0d9bf7aa9fd95fcf37fc86f90ea8db7
refs/heads/master
2020-03-28T16:55:18.592234
2018-12-12T03:06:22
2018-12-12T03:06:22
148,740,603
0
0
null
null
null
null
UTF-8
Python
false
false
1,194
py
class Powers(): def __init__(self, square_base, cube_base): self._square_base = square_base self._cube_base = cube_base class SquareDescriptor(): def __get__(self, instance, owner): if instance is None: """类.attr - > Descriptor,没毛病""" return self return instance._square_base ** 2 def __set__(se...
[ "879983690@qq,com" ]
879983690@qq,com
632a0ef0ecdbdc4a907c6df0aa1e539704695ae4
429a416abc7def45f7f6dc186ef46554081e5dee
/tensormorph/zzz/affix_test_old.py
80fb7bc009319ed8f672eb13ec1bbee20979c1e1
[]
no_license
colincwilson/tensormorph
9de8c1f0e6639c974d5b799e0712bca79ce639ad
c3a6fc9dac643e7600f2a177366a4c405c8013f2
refs/heads/main
2022-02-14T03:34:04.577317
2021-10-01T13:35:58
2021-10-01T13:35:58
147,841,723
1
0
null
null
null
null
UTF-8
Python
false
false
4,386
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import argparse, re, sys from tensormorphy import environ, evaluator, phon_features from tensormorphy.segment_embedder import SegmentEmbedder from tensormorphy.form_embedder import FormEmbedder from tensormorphy.dataset import DataSet from tensormorphy.affixer import Affix...
[ "colin.chris.wilson@gmail.com" ]
colin.chris.wilson@gmail.com
36c925efa563932cdec64b3abb5f6ee5eacb4c01
829af66682d29e0c2dd70651d034fc28883a40ab
/Coursera_Capstone.py
fca8d3e509269d8baa0b8b370c0c6dd193201d0c
[]
no_license
jschuler04/Coursera_Capstone
d8e39b5532f262ea2ff16c38085c8dafbf97e95b
f89af9b27b1c184fe7ead50a756ea400bdb0b33f
refs/heads/main
2023-06-03T06:08:06.984789
2021-06-18T20:53:02
2021-06-18T20:53:02
375,830,469
0
0
null
null
null
null
UTF-8
Python
false
false
204
py
#!/usr/bin/env python # coding: utf-8 # In[1]: #/this notebook will be mainly used for the Coursera Capstone project. import pandas as pd import numpy as np print("Hello Capstone Project Course!")
[ "noreply@github.com" ]
jschuler04.noreply@github.com
794969aef4445885500cfd5a79f01106d63b753c
12a522cadf20a38f5fd2ad2eb758d40f7bc50f3a
/CIS_024C_Python/homeWork/Exercise9/main1.py
1737c779ac14ea834b8d03ce97842e8edde3b668
[]
no_license
Ry-Mu/cis024c_python
f25012ce0e1e58dff05abacda9299083ca63e2ad
0b0cd5fc5b425b251bb9ac316e420403a7dfda10
refs/heads/master
2021-09-02T13:48:54.820508
2018-01-03T01:43:08
2018-01-03T01:43:08
103,226,159
2
0
null
null
null
null
UTF-8
Python
false
false
164
py
import sys def add(n1,n2): return n1 + n2 number1 = int(raw_input("Enter a number:")) number2 = int(raw_input("Enter a number:")) print add(number1,number2)
[ "ryan.munguia92@gmail.com" ]
ryan.munguia92@gmail.com
f49a5e37d0b4279902872dcc74a5ea78ab2137a3
6f5c0db7b845cb62c951b2467957ffe3cb0aad35
/stats.py
2616a77c878bbfb064e02cbecd9ad98b5958f460
[]
no_license
baydarich/infohash-searcher
300056c8255656b049e8aa4c6cc46df7e7f9500f
7fad6763c099934586bb286f160f3e52063420ff
refs/heads/master
2021-06-14T06:49:35.439588
2017-03-05T11:38:17
2017-03-05T11:38:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,211
py
#!/usr/env/python from bencode import bdecode, bencode import os b = 1024 * 1024 ranges = [{1: (1, 1024 * 1024)}] t = 1 for j in range(18): t = 1024 * 1024 ranges.append({j + 2: (t * 2 ** j + 1, t * 2 ** (j + 1))}) bs = {} # bs = {piece_length:[{ran:count}, {ran:count}]} base_path = "/home/horn/Documents/...
[ "a@bakhtin.net" ]
a@bakhtin.net
4077ee7230fdd5fcb8bf27ad4eec1e47ecf60567
3d19e1a316de4d6d96471c64332fff7acfaf1308
/Users/J/JasonSanford/great_american_beer_festival.py
ccc57650e41049eee111fa8bbfab0a4bd1f01ccf
[]
no_license
BerilBBJ/scraperwiki-scraper-vault
4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc
65ea6a943cc348a9caf3782b900b36446f7e137d
refs/heads/master
2021-12-02T23:55:58.481210
2013-09-30T17:02:59
2013-09-30T17:02:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,020
py
import scraperwiki import lxml.html html = scraperwiki.scrape("http://www.greatamericanbeerfestival.com/at-the-festival/breweries-at-the-2012-festival") root = lxml.html.fromstring(html) i = 1 for tr in root.cssselect("#brewery_table tbody tr"): tds = tr.cssselect("td") data = { 'id' : i, ...
[ "pallih@kaninka.net" ]
pallih@kaninka.net
2740845c8dea1c81052693b87ed8201e5e26e8c6
7b7ca1ab3f5364756ea67d8c2e39b68a58ab8f06
/First_improved ws model.py
83daded0d204aadd0b0af3ffd89e43d18fca0168
[]
no_license
Isabellahu/Complex-Network
6a1f065ec12ab4eb86b390205b8f343eb95204eb
511683750636fd198d12963771ca61255b789641
refs/heads/master
2020-04-01T17:49:55.732821
2018-10-17T14:09:22
2018-10-17T14:09:22
153,453,532
2
0
null
null
null
null
UTF-8
Python
false
false
8,343
py
# -*- coding: utf-8 -*- """ Created on Sat Oct 28 15:32:55 2017 @author: 90662 """ #WS小世界模型构建 import random from numpy import * import networkx as nx import matplotlib.pyplot as plt #假设参加聚会,每个人只认识一个主角 def CreateNetwork(n,k,p,matrix): i = 1 for j in range(n): matrix[1][j] = 1 ...
[ "noreply@github.com" ]
Isabellahu.noreply@github.com
3a327e8deeee0893aff957cfbbfef88f202634b2
76c0ed303ddf6f3afa3fe08592e70f497ab87e59
/ml3d/tf/models/point_rcnn.py
01491599862703ac453096c09419fc1ee0fc95da
[ "MIT" ]
permissive
kukuruza/Open3D-ML
e4a044dbb56141a2df6b4a5218b7d01aa0250893
412746326836f7e1e153485ed1d4939046355c94
refs/heads/master
2023-07-16T22:09:01.797548
2021-07-29T15:05:59
2021-07-29T15:05:59
394,699,342
0
0
NOASSERTION
2021-08-10T15:13:02
2021-08-10T15:13:00
null
UTF-8
Python
false
false
73,879
py
import tensorflow as tf import numpy as np import os import pickle from .base_model_objdet import BaseModel from ..modules.losses.smooth_L1 import SmoothL1Loss from ..modules.losses.focal_loss import FocalLoss from ..modules.losses.cross_entropy import CrossEntropyLoss from ..modules.pointnet import Pointnet2MSG, Poi...
[ "noreply@github.com" ]
kukuruza.noreply@github.com
d97160120fe344b6a36a79e9f1c2c576b060b8b9
45623eab5e69c0f2a3d7f0a141d112d0d35790f9
/ssbench/ordered_dict.py
d5f0aca7471d01e9cc56f2c1f2d1beb144d2e2df
[ "Apache-2.0" ]
permissive
peteryj/ssbench
e73c2a77d597152877c7b3a022ce3fa77363beef
4a1766f8e3287cb0dafa559d24f6a51d64950efc
refs/heads/master
2020-12-03T03:47:13.510496
2016-03-23T06:37:39
2016-03-23T06:37:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,058
py
# {{{ http://code.activestate.com/recipes/576693/ (r9) # Backport of OrderedDict() class that runs on Python 2.4, 2.5, 2.6, 2.7 and # pypy. # Passes Python2.7's test suite and incorporates all the latest updates. try: from thread import get_ident as _get_ident except ImportError: from dummy_thread import get_i...
[ "darrell@swiftstack.com" ]
darrell@swiftstack.com
03d4807bf6ae79a977ee60b6b4de35c94aeb6e7f
88a5dae03f0304d3fb7add71855d2ddc6d8e28e3
/main/ext/__init__.py
362e9cace53732e41d9341d5e951472eba630fbc
[ "Apache-2.0" ]
permissive
huangpd/Shape
eabb59781ac6a055f7b7036fef926023cbcd4882
fddbbb765e353584752066f7c839293ebd10c4df
refs/heads/master
2020-03-26T13:04:22.224367
2018-05-10T09:06:10
2018-05-10T09:06:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
431
py
#-*-coding:utf-8-*- from flask_bcrypt import Bcrypt bcrypt = Bcrypt() from flask_bootstrap import Bootstrap bootstrap = Bootstrap() from flask_mail import Mail mail=Mail() from flask_login import LoginManager login_manager = LoginManager() login_manager.login_view="auth.login_index" login_manager.session_protection=...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
fec5927f671f48d0494d8758f058e97cbe129c94
0353782639974c650fa042e44d75e92bf7be6fc1
/instagram/insta/instafeed/views.py
cccd2cf5f41d8e68ff52bb8847187c85cb8c062f
[]
no_license
jersobh/DigitalMarketing
2d31b5c18f0764c4f352947aa34506d63216feeb
6fa679bb964e6ad656415e38227e007db2ae0fda
refs/heads/master
2021-10-23T15:24:01.939739
2019-03-18T12:27:21
2019-03-18T12:27:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
455
py
from django.shortcuts import render from django.http import HttpResponse # import InstagramAPI from InstagramAPI.InstagramAPI import InstagramAPI from django.http import JsonResponse def index(request): api = InstagramAPI("jayabal.al", "jayabal9890@insta") if(api.login()): api.getSelfUserFeed() ...
[ "noreply@github.com" ]
jersobh.noreply@github.com
17b24db22bb599a33ad96d9be8572468f4ea1b60
42c67fdb3b373e0bf677e9d9d1cf770646c75ba6
/tests/test_tutorial/test_using_click/test_tutorial003.py
eadd93ee9ea77c644c295b94cd9155c13c10334d
[ "MIT" ]
permissive
marcosfelt/typer
b8ecc8e65c82044076880105d3ecb2ca0d158c25
61a0616ea9b7904c2379c464d0f72d5b7bde270e
refs/heads/master
2023-08-01T03:25:42.417233
2021-09-14T11:11:12
2021-09-14T11:11:12
406,322,395
0
0
MIT
2021-09-14T10:43:32
2021-09-14T10:29:20
null
UTF-8
Python
false
false
868
py
import subprocess from click.testing import CliRunner from docs_src.using_click import tutorial003 as mod runner = CliRunner() def test_cli(): result = runner.invoke(mod.typer_click_object, []) # TODO: when deprecating Click 7, remove second option assert "Error: Missing command" in result.stdout or "U...
[ "noreply@github.com" ]
marcosfelt.noreply@github.com
b1dc61b9b0266ed2642cd5bf9517f09540601de5
7abb3d309a011a36247e0b4dcda3759537c45b2c
/utils/vb-meta-to-json-topology.py
031f8c9a3763b172b8281d83709ffc18311a4b0b
[ "BSD-3-Clause" ]
permissive
TomPlano/varbench
7937a8a7221117e2d817549eb8ba22746c324869
83933380e1876da388dd07a78e554e65f388861b
refs/heads/master
2020-04-02T14:34:11.376400
2018-10-27T19:10:09
2018-10-27T19:10:09
154,529,766
0
0
BSD-3-Clause
2018-10-24T16:01:55
2018-10-24T16:01:54
null
UTF-8
Python
false
false
2,486
py
#!/usr/bin/env python import os import sys import getopt import json def usage(argv, exit=None): print "Usage: %s [OPTIONS] <VB metadata file> <VB JSON topology file (output)>" % argv[0] print " -h (--help) : print help and exit" print " -v (--vbs-path=) : path to VB Stats python module" if exit...
[ "brian.kocoloski@wustl.edu" ]
brian.kocoloski@wustl.edu
70eca39c9c9fb18923b83761478de0f263f2fd31
fa6caa2382c1f35931153ba0c74ff6555c41c745
/backend/base/migrations/0003_product_image.py
7be4d74d30250643ca2e68b0d7c8b84ed019b757
[]
no_license
devckrishna/Django-React-Ecommerce
89c341d0de469ed80939fec9544f56418a09ad90
ded75edbff25cfb2bca56c92ae5fce7fcf8afcb6
refs/heads/main
2023-04-21T22:36:28.720240
2021-05-08T17:44:22
2021-05-08T17:44:22
363,849,001
1
0
null
null
null
null
UTF-8
Python
false
false
422
py
# Generated by Django 3.2 on 2021-05-04 14:20 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('base', '0002_order_orderitem_review_shippingaddress'), ] operations = [ migrations.AddField( model_name='product', nam...
[ "dev.c.krishna.123@gmail.com" ]
dev.c.krishna.123@gmail.com
150aa7fcfcf1929a708e94bb4cf3c21158724349
99e25489e0e504a6e49da4d9398dbfb8c4fe86a4
/Leetcode/二叉树/654-最大二叉树-m.py
2c6bc91855e00adb4cedcdeb219ef233ec75e6b9
[ "Apache-2.0" ]
permissive
JackeyGuo/Algorithms
08e5c5a1067c1bf2642241ad635c683c68dff6d3
27185d382a891f4667f67701a60c796fa3a6c1ac
refs/heads/main
2023-03-27T15:26:28.383100
2021-03-18T06:27:05
2021-03-18T06:27:05
326,852,774
1
0
null
null
null
null
UTF-8
Python
false
false
1,017
py
from typing import List # Definition for a binary tree node. class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def constructMaximumBinaryTree(self, nums: List[int]) -> TreeNode: """ 先明确...
[ "1051347391@qq.com" ]
1051347391@qq.com
4dc75a5c5ad9b9adc0eee92205b2a3ec96120685
1a220abd21c56728aa3368534506bfc9ced8ad46
/프로그래머스/lv0/120862. 최댓값 만들기 (2)/최댓값 만들기 (2).py
2150e823f28bad1d9f1692f23f12517ff6e88e54
[]
no_license
JeonJe/Algorithm
0ff0cbf47900e7877be077e1ffeee0c1cd50639a
6f8da6dbeef350f71b7c297502a37f87eb7d0823
refs/heads/main
2023-08-23T11:08:17.781953
2023-08-23T08:31:41
2023-08-23T08:31:41
197,085,186
0
0
null
2023-02-21T03:26:41
2019-07-15T23:22:55
Python
UTF-8
Python
false
false
630
py
def solution(numbers): answer = 0 negative = [] positive = [] for i in numbers: if i < 0: negative.append(i) else: positive.append(i) negative.sort() positive.sort() max_positive, max_negative, mix = -1e9, -1e9, -1e9 if len(positive) == 1 and ...
[ "43032391+JeonJe@users.noreply.github.com" ]
43032391+JeonJe@users.noreply.github.com
16f6244485e0802abe75dcdcc1068f2bde02f77f
70da894645a6f3fe362a60de843b1998e2d619eb
/Questao7.py
839a87331b7746d5e1badb8dbfcb0b2368f9e6e3
[]
no_license
marcelorvergara/AT_python
2ed9ff3a782ec7b13f1f05909870d7a9013fb20b
77cfc84e9e1b624e45a2e3f45e0bb99b32170f68
refs/heads/main
2023-08-05T00:45:27.688566
2021-09-20T16:27:51
2021-09-20T16:27:51
408,164,732
0
0
null
null
null
null
UTF-8
Python
false
false
3,329
py
import threading import requests class Questao7(threading.Thread): def __init__(self): super().__init__() url = 'https://sites.google.com/site/dr2fundamentospython/arquivos/Winter_Olympics_Medals.csv' requisicao = requests.get(url, timeout=5) if requisicao.status_code != 200: ...
[ "marcelorv@gmail.com" ]
marcelorv@gmail.com
816b87e9a417a4578c92d360b24184834f8c149f
1ee27186cf26b646fb231b6e23a28f00959f3ae2
/part1_WebScraping.py
a1c31a4f1c1f7d0aa1a0f008f9e8268a41460138
[]
no_license
A-Yaghoubian/Web-scraping-in-markets-with-predict
714dc5da72dc87354867d305ff330380312f0fef
aa0c43595b1f2dc9c6920edeea8e94b8bbb0f0ea
refs/heads/main
2023-07-06T14:03:41.857711
2021-04-07T12:22:44
2021-04-07T12:22:44
355,533,381
1
0
null
null
null
null
UTF-8
Python
false
false
1,364
py
import requests from bs4 import BeautifulSoup import mysql.connector print('Zakhire kardan Brand-Name-Price az site DIGISTYLE dakhel database') print() print('INFORMATION YOUR DATABASE') u = input('Please enter your user of database : ') p = input('Please enter your pass of database : ') h = input('Please enter your h...
[ "noreply@github.com" ]
A-Yaghoubian.noreply@github.com
1c43edf94a27aa6141c51da6fce81d5fda5a3967
49c137c3df08de22759879b9aaf61318a073b997
/vacancy/migrations/0003_auto_20190404_0502.py
98f0f4cbaeb1b1003546462fe38e4127899c1030
[]
no_license
ayush024/hrms
c7da0068a3df57340f82457e20d4d769d15aba4e
31c8f85e4ab5730191334561cdbddf386aafa0a7
refs/heads/master
2020-05-05T13:34:29.954270
2019-04-25T18:11:07
2019-04-25T18:11:07
180,083,977
0
0
null
null
null
null
UTF-8
Python
false
false
686
py
# Generated by Django 2.2 on 2019-04-04 05:02 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('vacancy', '0002_auto_20190331_1938'), ] operations = [ migrations.AlterField( model_name='jobs', name='fooding', ...
[ "aayushdhakal360@gmail.com" ]
aayushdhakal360@gmail.com
cde113aea88eac4418c8c3aebe85bd0a376b8a61
4ac3789c709d1b68a506f183a5b053b1137f02db
/src/pilot/transition_probs.py
916c70bcd1396194212b0a8b24ca39d5a85b7f26
[]
no_license
bdyetton/PSleep
5c52d3ddf1ecb5b3caf5fd6abd562007b5a8dc1d
9b02cf76f4c63923d1acfbaf32c62fe70ccb42b8
refs/heads/master
2020-12-01T15:28:23.267808
2019-12-29T00:06:18
2019-12-29T00:06:18
230,681,688
0
0
null
null
null
null
UTF-8
Python
false
false
4,895
py
from mednickdb_pyapi.mednickdb_pyapi import MednickAPI from mednickdb_pysleep import defaults import os import matplotlib.pyplot as plt import seaborn as sns import bootstrapped.bootstrap as bs import bootstrapped.compare_functions as bs_compare import bootstrapped.stats_functions as bs_stats import numpy as np import ...
[ "bdyetton@gmail.com" ]
bdyetton@gmail.com
58e9f0902786c9d6ba075f971c789cd992c620a6
9334f5334f2da1283f32b08ef99866202b60ae68
/learning_logs/models.py
2f576215edee0f56da9ac08ece5ee99ed5365952
[]
no_license
ArXaHGeL/Learning-Log
e033b9b0471185b7bedaa6e3ad2b367e1e7da64f
3b43a173b60b624d9c5615804658151c52127577
refs/heads/master
2023-02-26T15:21:09.499555
2021-02-03T12:09:12
2021-02-03T12:09:12
335,559,775
0
0
null
null
null
null
UTF-8
Python
false
false
939
py
from django.db import models from django.contrib.auth.models import User # Create your models here. class Topic(models.Model): """A topic that the user is learning.""" text = models.CharField(max_length=200) date_added = models.DateTimeField(auto_now_add=True) owner = models.ForeignKey(User, on_dele...
[ "zenit_dimka@mail.ru" ]
zenit_dimka@mail.ru
54b0885bfde6ed3aa0813d94f067a252a79a5d94
56ce881112d04617795c00b7e6270efc732894e0
/adserver/partner/models.py
c09c40e2335b7e103b58f3e6540c608e1c4b2af5
[]
no_license
kontinuity/papps
0fb515d5ee4300e250a03dfbc326b06f5745613c
f40315b5106c7f9c24cab3dff3bd1199081dc617
refs/heads/master
2020-05-03T11:32:07.456114
2010-09-03T09:50:40
2010-09-03T09:50:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,113
py
from django.db import models from adserver.partner.settings import * from django.contrib.auth.models import User from django.db.models.signals import post_save class Partner(models.Model): company_name = models.CharField(max_length=255) company_type = models.PositiveIntegerField(choices=COMPANY_TYPE_CHOICES, defau...
[ "arif.a@directi.com" ]
arif.a@directi.com
30a56aa3ea447d0f6e641cf2b1c120ab673bb144
fe81c95988122057f030cc6c57681e215093c9ba
/比赛分享/调参/tiaocan1.py
3413b37f817c71bf81d552fb4f4f5e1c94ca54e1
[]
no_license
xiexiaoyang/Big-Data-Challenge
fbe2bbfa92a603460479e6cf7ff4a6f197af239f
2fc6ae26037a98d46cb0735a0e4c744b74ec9fb0
refs/heads/master
2021-07-19T02:37:58.980208
2017-10-22T07:18:24
2017-10-22T07:18:24
107,832,382
0
1
null
null
null
null
UTF-8
Python
false
false
6,637
py
# -*- coding: utf-8 -*- """ Created on Thu Oct 19 19:28:57 2017 @author: Yang """ '''调参 1. 理解模型 2. 列出所有的参数 3. 选择对模型提升大的参数 代码错误: 1. kstep = len(randidx) / nfold 改为 kstep = len(randidx) // nfold 2. 'Disbursed' 改为 target 3, Parameter values should be a list. 改为 param_test1 = {'max_depth':list(...
[ "2509039243@qq.com" ]
2509039243@qq.com
6c99d787a87a797b6e5c6afcd4673e6a93bcfa66
c1fe9f7093c68d26eed55ceee4769878e8aa6c05
/reverse-string.py
bc9af688c40e4d38a1949faf89d903cdf39069e6
[]
no_license
aadilzbhatti/Small-Challenges
781e7b04614d734c176f2d14a61663304316bda5
0768974c3c3e5b683e92f7a9cd723dc0456ee55c
refs/heads/master
2021-11-23T17:24:46.222842
2015-02-07T02:21:55
2015-02-07T02:21:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
150
py
#reverse a string s = "" str = input("Enter the string to be reversed: "); for i in range (0, len(str)): s += str[len(str) - i-1] print(s)
[ "aadilzbhatti@gmail.com" ]
aadilzbhatti@gmail.com
e7c14001f2ea7bf7b866830cf28b3ffddb0acf8f
2f1c9bba6ba14a46f04a861e70dbf6d50d96535b
/Map-CS61aBerkeley/tests/08.py
c6f01f55e6158ebdbaf8b695866c2ec2a09fb31a
[]
no_license
leovcunha/CS_learning_projects
8a3ed5ba76ad81a22c7162835b39734726028953
4cbd45192738c2850b308b35ee9b0c95de798748
refs/heads/master
2021-01-20T01:23:02.738739
2019-07-02T02:11:07
2019-07-02T02:11:07
89,267,880
0
0
null
null
null
null
UTF-8
Python
false
false
10,929
py
test = { 'name': 'Problem 8', 'points': 2, 'suites': [ { 'cases': [ { 'answer': '18f4b8f373a149983a060187fb945841', 'choices': [ 'a list of restaurants reviewed by the user', 'a list of all possible restaurants', 'a list of ratin...
[ "lvcunha@gmail.com" ]
lvcunha@gmail.com
af4da04242f2f06729d65a60df595b64a56f4355
ba2c77f62e7c9ddc074606cbca94062941dfc760
/small_methods.py
e2a95b7f1d18121fe30f08b1b169cac48fdcb01f
[]
no_license
scaars10/Lazy-Crawler
5608888f1ed60bdc951b2b4ba2a17ca7ab173bea
4088514571f096531076f4c551eac2ce4912530d
refs/heads/master
2021-08-09T00:25:45.546129
2017-11-11T18:29:06
2017-11-11T18:29:06
110,369,278
0
0
null
null
null
null
UTF-8
Python
false
false
1,890
py
import os from stemming.porter2 import stem # omnipresent_words = ['www.', 'http:', 'https:', '.com', '.in'] def directory_manage(relative_location): # checks if a directory exists or not if not then it creates it itself base_path = os.path.dirname(os.path.realpath(__file__)) if not os.path.exists(os.path.join(ba...
[ "scaars10@gmail.com" ]
scaars10@gmail.com
b11b5949d9aeb93728df91302c1df74b605ff07c
e8dc0309de1dd4d9e4a25bcffdd6f9e9022c153c
/Code/wink_detection.py
b7c01c51a904d3cc8467f119b3ce1a2f15184b79
[]
no_license
FelixFelicis555/Blinking-Keyboard
04947fe0b8efacd158d4a698b360233947ee8ef9
cd2dd51bfed205780cd46a1f17287015790186d3
refs/heads/master
2022-02-27T18:35:50.149206
2019-11-08T09:52:16
2019-11-08T09:52:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
19,512
py
import numpy as np import cv2 import dlib from scipy.spatial import distance as dist from gtts import gTTS import os language = 'en' import pyttsx3 engine = pyttsx3.init() characterdict = {'0':'a','00':'d','000':'j','0000':'n','1':'s','01':'f','001':'k','0001':'y','10':'g','010':'l','0010':'t'} characterdict['0...
[ "bhavyabordia@gmail.com" ]
bhavyabordia@gmail.com
d09ca8a14c8cab0258c427bada63637982b2c608
ac0844cbd6258ffc1b15cdde7136a07ef28cb8c1
/7_2.py
3985ebb570a4ff97b10a6dd4aba43c6eb312940e
[]
no_license
nikita1998ivanov/Lab-rabota
42948394a6cdb4eaffb8b6f5e801225ba7b8ef80
0bb6c283465b11218a5ec24de7645bcbe454754f
refs/heads/master
2022-06-18T03:03:09.949139
2020-05-06T08:55:25
2020-05-06T08:55:25
261,668,414
0
0
null
null
null
null
UTF-8
Python
false
false
213
py
d = {} with open("students.csv") as f: next(f) for line in f: h, nm, a, db = line.split(";") d.setdefault(int(h), []).append((nm, int(a), db)) l = d.values() l = list(l) l.sort() print(l)
[ "noreply@github.com" ]
nikita1998ivanov.noreply@github.com
c22d3551c3f4ba3d14a4cd5bfa8e93641fd47bd6
abca8650e1469641fbfd12cc7c1d33eaffc45c4a
/lib/db/format_column_names.py
065f11055771b623d570eec195d8030504ac2607
[ "MIT" ]
permissive
tunityy/Neon8-Bot
2549f2b5fad56b25511289c619bead49cf6be90d
3cea7a05356ae5dadd2d7adabbf932bebfb849d8
refs/heads/main
2023-05-01T07:27:40.644937
2021-05-22T23:46:06
2021-05-22T23:46:06
357,702,062
0
0
null
null
null
null
UTF-8
Python
false
false
4,880
py
from string import capwords def column_to_text(column_name): if type(column_name) == str: return capwords(column_name.replace('_', ' ')) else: results = [capwords(y.replace('_', ' ')) for y in column_name] return results def stat_name_ifs(stat): st = str(stat).lower() st = st...
[ "80991664+tunityy@users.noreply.github.com" ]
80991664+tunityy@users.noreply.github.com
8426f5e2a7f3115533abb324288bc031ba59ff53
a6e4a6f0a73d24a6ba957277899adbd9b84bd594
/sdk/python/pulumi_azure_native/guestconfiguration/outputs.py
b1d2bbd2207b1aaffbc05852618b9e218ea32400
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
MisinformedDNA/pulumi-azure-native
9cbd75306e9c8f92abc25be3f73c113cb93865e9
de974fd984f7e98649951dbe80b4fc0603d03356
refs/heads/master
2023-03-24T22:02:03.842935
2021-03-08T21:16:19
2021-03-08T21:16:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
27,362
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilities, _tables from ...
[ "noreply@github.com" ]
MisinformedDNA.noreply@github.com
4608f8b477a4827ab546757c5cdf0cf175bfa969
841e32970a080c8beb4ccc94d2afc5f264483a45
/api/app/migrations/0001_initial.py
d227e2d9a19eee4bb8de17faada02127cabe7b35
[]
no_license
semprajapat/automation_pytest
3249fec117186ee9984674585b79fe0d75a15a6c
05fb58c5cece1043317bf444e8636fd49564fccc
refs/heads/master
2021-01-14T19:18:53.865204
2020-02-24T12:22:16
2020-02-24T12:22:16
242,727,715
0
0
null
null
null
null
UTF-8
Python
false
false
547
py
# Generated by Django 3.0.3 on 2020-02-24 11:42 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Datamodel', fields=[ ('id', models.AutoFiel...
[ "aaa@Aaas-MacBook-Pro.local" ]
aaa@Aaas-MacBook-Pro.local
6ff0d59f4790561ec2ce92b3a868755af76b678b
3225f11370c581f95e4a5d123ab03eb7de53c6b3
/Face-Recognition/face_reco_video.py
f174fa3c4a616303402acdefed3781ca94f2554f
[]
no_license
jaseem61/python_practice
5684ae2f3925c54b2d34666f2531cb99acc96609
7bd8ca1b72acb5e78e2c0a451ef8e339417fcff7
refs/heads/master
2022-04-22T04:15:15.140748
2020-04-18T07:10:04
2020-04-18T07:10:04
231,757,850
0
0
null
null
null
null
UTF-8
Python
false
false
1,823
py
import face_recognition import os import cv2 import keyboard known_faces_dir="known_faces" count=1 tolerance=0.6 frame_thickness=3 font_thickness=2 model="hog" print("loading known faces") known_faces=[] known_names=[] for name in os.listdir(known_faces_dir): for filename in os.listdir(f"{know...
[ "noreply@github.com" ]
jaseem61.noreply@github.com
cc132717c790921bdf671f8150bb2f9d868ad2fe
6ee3daaec8559287b6e9f07ae93e49ab0cbd3a89
/Edabit/Edabit_6306022610113_ch7.py
b823274d734c905f545a8666458f89e5e1f6a666
[]
no_license
6306022610113/INE_Problem
9a43c42d71faa4ed7c4da8b83a53bad0a67ac7a2
99f3215aafecc486d81fb2d26aeb962d90970768
refs/heads/main
2023-04-21T11:03:07.471197
2021-05-06T04:56:07
2021-05-06T04:56:07
328,900,853
0
0
null
null
null
null
UTF-8
Python
false
false
684
py
def shared_letters(a, b): #รับค่าตัวเเปร a และ b lst = [] #สร้างตัวแปรรับค่า for i in a.lower(): #ถ้า i มีค่าใน a เป็นตัวพิมพ์เล็ก if i in b.lower(): #และ i มีค่าน b lst.append(i) #ให้เพิ่ม i ในตัวแปร lst return ''.join(so...
[ "68582327+6306022610113@users.noreply.github.com" ]
68582327+6306022610113@users.noreply.github.com
49b63a0524f032834d51833a9cee91640d52b635
06933e4550c4d647ecedab639c1fa9748d7aa155
/tvshows/tvshows_app/models.py
8cdbce4772b4f7f1552184f5fac82bb38761ab97
[]
no_license
leoalicastro/tv_shows
ce4bb052c64ed6aba34194104f6f31462c1a61c5
890122a4a7eda81cb24f10f88cc217c132e7850b
refs/heads/main
2023-07-16T15:00:03.292785
2021-08-19T18:50:09
2021-08-19T18:50:09
390,782,646
0
0
null
null
null
null
UTF-8
Python
false
false
1,045
py
from django.db import models from datetime import datetime class ShowManager(models.Manager): def basic_validator(self, post_data): errors = {} if len(post_data['title']) < 2: errors['title'] = "Title must be atleast 2 characters" if len(post_data['network']) < 3: ...
[ "leoalicastro957@gmail.com" ]
leoalicastro957@gmail.com
b4e76b67a52d7e11e271463c76c756cd39c39301
f09978f2a0850278255bd198222cd3990cb0c687
/gear/schema.py
9e678012c38374b5baee61fdf28ff22143a7874c
[]
no_license
szpone/climbing-gear
0e4e53b99a0b550c0e172af21c2c9e08e2c3f1ba
78ab13b97b4b66464859b95ba6e5ed8587d5e60c
refs/heads/master
2022-12-12T11:08:57.277056
2019-06-05T16:06:02
2019-06-05T16:06:02
185,016,538
1
0
null
2022-11-22T03:49:28
2019-05-05T10:30:11
Python
UTF-8
Python
false
false
514
py
import graphene from graphene_django.types import DjangoObjectType, ObjectType from .models import Gear class GearType(DjangoObjectType): class Meta: model = Gear class Query(ObjectType): gear = graphene.Field(GearType, id=graphene.Int()) gears = graphene.List(GearType) def resolve_gear(sel...
[ "nikola.adamus@gmail.com" ]
nikola.adamus@gmail.com
4eee374d40da98978fa6eead0dbd109ebd17f59e
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2449/60657/249828.py
b6f2e07860c983d2311d854da47037a89843a79d
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
152
py
import math A=input().split(',') B=input() def judge(A,B): if A.count(B)!=0: return A.index(B) else: return -1 print(judge(A,B))
[ "1069583789@qq.com" ]
1069583789@qq.com
0e9776198e43fe8ba697233bc1a7c1c9c3496279
bef71d057048b93ef784892d911e7c2f7ffaee14
/framework_autotest/testsuites/test_wirenetwork.py
91fb3dbad2201ce112d8c4fcf0e8e7290c8c7e12
[]
no_license
leaf2maple/python-selenium-unittest
2379403e98508000276bb5d0c89866efc5450d90
50bf514144c6cd6e8d0f51164731bbad367e9356
refs/heads/master
2020-09-01T00:26:30.307410
2019-10-31T17:52:09
2019-10-31T17:52:09
218,826,698
0
0
null
null
null
null
UTF-8
Python
false
false
2,572
py
import unittest import time from framework.browser_engine import BrowserEngine from pageobject.wb01_wirenetworkpage import WireNetWorkPage from framework.login import Login from pageobject.wb01_homepage import HomePage class TestWireNetWork(unittest.TestCase): @classmethod def setUpClass(cls): browse...
[ "421757223@qq.com" ]
421757223@qq.com
a5db37c7dc9f8509adffc6dc45b2b5386d2c55a7
f3a3228c1afa0e252fa041553e450b3b53e273ec
/zetcode/tetris.py
88a6ac7bbcdf3616296a1f89d250cfc2f9c15cbf
[]
no_license
dugbang/pyqt_prj
9395d25202d43fcadc577c9ff8606f649a575c9a
ed4fae66496e57258cdb22360273462a1ac59ea0
refs/heads/master
2020-04-13T07:04:41.980757
2019-01-29T00:41:17
2019-01-29T00:41:17
163,039,698
0
0
null
null
null
null
UTF-8
Python
false
false
12,455
py
""" ZetCode PyQt5 tutorial This is a Tetris game clone. Author: Jan Bodnar Website: zetcode.com Last edited: August 2017 """ from PyQt5.QtWidgets import QMainWindow, QFrame, QDesktopWidget, QApplication from PyQt5.QtCore import Qt, QBasicTimer, pyqtSignal from PyQt5.QtGui import QPainter, QColor import sys, random ...
[ "dugbang@gmail.com" ]
dugbang@gmail.com
f4d9d13be2187390413090795c88670b3fbc20fd
36644ad31dc42a91cae5200559d3f591b90c3d83
/server3/test.py
d6f20f35763db67f220d6b7a0d4cfaca6d000768
[ "MIT" ]
permissive
kenken64/docker-microservices
77070f6a782407e52d45bd5a546efc8758c000a0
1923f935de40afda3af5529fadc0b3747b3b3e56
refs/heads/master
2023-01-22T17:25:44.566427
2019-11-22T08:05:44
2019-11-22T08:05:44
222,846,340
1
4
MIT
2023-01-07T11:56:43
2019-11-20T03:52:25
TypeScript
UTF-8
Python
false
false
287
py
from pymongo import MongoClient import os from bson import json_util client = MongoClient('mongodb://localhost:27017') print(client) db = client['testdb'] collection = db.movie.find() print(collection) y = list(collection) print(y) #x = json_util.dumps({'data': collection }) #print(x)
[ "bunnyppl@gmail.com" ]
bunnyppl@gmail.com
5c5a54f0963e8d6bd055050c7770fbf455661208
12a62bbca8065dcb6d835144368f6ad4cf46f219
/random_proj.py
e15f439ab7201a601e168512de11ffb755e3dcbf
[]
no_license
daemonmaker/biglittle
c2371b198a43273275144036e3971c8035efd588
feadb55aa68f5b54f52084e0a12368783c93dd78
refs/heads/master
2021-01-11T11:03:25.318130
2014-11-25T23:56:42
2014-11-25T23:56:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
26,591
py
#! /usr/bin/env python import time from datetime import datetime import numpy as np import sys import os import os.path as op import cPickle as pkl from itertools import product import gc import theano from theano import function from theano import tensor as T from theano import config from theano import shared from ...
[ "daemonmaker@gmail.com" ]
daemonmaker@gmail.com
64923cbcfed9624b6b8c664e8deaf3ad28ade468
a756e26160502b49dea686baa4f8d8480895ab85
/PartB_LBC_CorrespondingStates.py
128522479dc943e764d6b24b93be59a28c826581
[]
no_license
Aitous/ENE251
adeb715ad24094765e23d03a481e309ab2dd3f8c
e7770c469f63683c4c3ea7916d8bcad64ad16593
refs/heads/master
2022-12-04T18:01:57.908783
2020-08-19T21:16:54
2020-08-19T21:16:54
288,349,026
0
0
null
null
null
null
UTF-8
Python
false
false
25,765
py
#!/usr/bin/env python # coding: utf-8 # In[38]: import time import numpy as np import matplotlib.pyplot as plt import math from sklearn.linear_model import LinearRegression from scipy import interpolate # Solving RachfordRice def SolveRachfordRice(l, Nc, z, K): F = lambda l: sum([(1 - K[i]) * z[i]/(K[i] + (1 ...
[ "youssef.aitousarrah@gmail.com" ]
youssef.aitousarrah@gmail.com
1dfee621f2c8bf35b8a73f7fbbb1a64d238e125a
bbb21bb79c8c3efbad3dd34ac53fbd6f4590e697
/week3/TODO/TODO/settings.py
947cd11c197d9ed2bf30a09cd9c4016007788b22
[]
no_license
Nusmailov/BFDjango
b14c70c42da9cfcb68eec6930519da1d0b1f53b6
cab7f0da9b03e9094c21efffc7ab07e99e629b61
refs/heads/master
2020-03-28T21:11:50.706778
2019-01-21T07:19:19
2019-01-21T07:19:19
149,136,999
0
0
null
null
null
null
UTF-8
Python
false
false
3,094
py
""" Django settings for TODO project. Generated by 'django-admin startproject' using Django 2.1.1. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os # Bu...
[ "nusmailov@gmail.com" ]
nusmailov@gmail.com
398f138bde398c4dea87e5a99707f52b0581bd66
6cabff723ad404c3883037d9fa1d32298c27b23e
/练习/实战8.py
0275a7e71db5efc7a6797d06ef684f6bb633958c
[]
no_license
Brandyzwz/practice
300c128947e59b209098c60131ed3750e982b28a
661f74851af6208b5c6880b41ba5d7bc9da6bf5c
refs/heads/master
2020-03-25T02:25:51.136558
2018-08-02T12:06:44
2018-08-02T12:06:44
143,289,146
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
a = int(input('输入直角边a:\n')) b = int(input('输入直角边b:\n')) c = (a**2+b**2)**0.5 print('斜边c的长为:%d'%c)
[ "brandyzwz@outlook.com" ]
brandyzwz@outlook.com
7b91e3b074f85271a746505ec2100144aaa01af3
d7641647d67d110e08997767e85bbea081c2537b
/bitmovin_api_sdk/models/filter.py
6836a5d837fc6e5d357ec0e2fa2c5884394e48d2
[ "MIT" ]
permissive
aachenmax/bitmovin-api-sdk-python
d3ded77c459852cbea4927ff28c2a4ad39e6026a
931bcd8c4695a7eb224a7f4aa5a189ba2430e639
refs/heads/master
2022-11-16T08:59:06.830567
2020-07-06T07:16:51
2020-07-06T07:16:51
267,538,689
0
1
MIT
2020-07-06T07:16:52
2020-05-28T08:44:44
Python
UTF-8
Python
false
false
1,781
py
# coding: utf-8 from six import string_types, iteritems from bitmovin_api_sdk.common.poscheck import poscheck_model from bitmovin_api_sdk.models.bitmovin_resource import BitmovinResource import pprint class Filter(BitmovinResource): discriminator_value_class_map = { 'CROP': 'CropFilter', 'CONFO...
[ "openapi@bitmovin.com" ]
openapi@bitmovin.com
931cf513935db910bfd70b2fad4b1ab03410eaa3
6fc9e67094d60cb192dcd4e3370e41aae00e73b2
/rotate.py
cba2a8d2d2d33fa924b5fc5ad00ad3908e89c346
[]
no_license
Nusha97/IRIS-Project
4c287ac87c482d1dea220a79e9fad5546a954bf5
670f66afb7ace4d8e65e2071d28f479b8573972f
refs/heads/master
2021-08-07T10:58:02.602248
2020-04-21T10:59:43
2020-04-21T10:59:43
158,009,001
0
0
null
null
null
null
UTF-8
Python
false
false
1,685
py
# -*- coding: utf-8 -*- """ Automatically detect rotation and line spacing of an image of text using Radon transform If image is rotated by the inverse of the output, the lines will be horizontal (though they may be upside-down depending on the original image) It doesn't work with black borders """ from __future__ i...
[ "noreply@github.com" ]
Nusha97.noreply@github.com
1f0f45aa77603540df78c0dde6159ce16e10364a
873b6d338e696b200d1a6ca74bef85deaa8d8088
/manage.py
b4f28f3c7627588f205a3b43b083e42d7990486f
[]
no_license
Craiglal/ChudoSkrynia
9720c8360f1589b97c15c5cfa48ba15bf2c6d0e7
ef2ca9ca356666628f2c8e4d1df8e97e0d0f72eb
refs/heads/master
2020-08-15T09:23:57.076445
2019-10-15T14:28:26
2019-10-15T14:28:26
215,316,335
1
0
null
null
null
null
UTF-8
Python
false
false
544
py
#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ChudoSkrynia.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django....
[ "asleep.alex@gmail.com" ]
asleep.alex@gmail.com
d82cf9e821ecf30bd91d020d422728952809a303
597ed154876611a3d65ca346574f4696259d6e27
/dbaas/workflow/steps/tests/test_vm_step.py
1f05feed7c79364c570f0ed132f5da3578825a91
[]
permissive
soitun/database-as-a-service
41984d6d2177734b57d726cd3cca7cf0d8c5f5d6
1282a46a9437ba6d47c467f315b5b6a3ac0af4fa
refs/heads/master
2023-06-24T17:04:49.523596
2018-03-15T19:35:10
2018-03-15T19:35:10
128,066,738
0
0
BSD-3-Clause
2022-05-10T22:39:58
2018-04-04T13:33:42
Python
UTF-8
Python
false
false
1,661
py
from mock import patch from physical.tests.factory import HostFactory, EnvironmentFactory from ..util.vm import VmStep, MigrationWaitingBeReady from . import TestBaseStep @patch('workflow.steps.util.vm.get_credentials_for', return_value=True) @patch('workflow.steps.util.vm.CloudStackProvider', return_value=object) cl...
[ "mauro_murari@hotmail.com" ]
mauro_murari@hotmail.com
4f9b6137e32d293b24b9b687905de81bb99a0239
e28a89a1d79ab7b8ebf579a451b922b357206bb0
/leecode/1190. 反转每对括号间的子串.py
1d711d65956622209748a7ea68aac81cccb27e98
[]
no_license
bobobyu/leecode-
67dfcf9f9891a39d68e9c610e896c7151809d529
015d42bb58c19869658d3f6405435134ac5444df
refs/heads/master
2023-01-30T23:35:00.882463
2020-12-18T02:20:28
2020-12-18T02:20:28
308,018,638
0
0
null
null
null
null
UTF-8
Python
false
false
637
py
from typing import * from collections import * class Solution: def reverseParentheses(self, s: str) -> str: string_stack: Deque = deque() s = list(s) while s: if (op := s.pop(0)) == '(': string_stack.append('(') elif op == ')': temp: ...
[ "676158322@qq.com" ]
676158322@qq.com
b61bba4f1a3cafc372508b61c5bc9307207181e7
7cc4b082d0af7622cd77204a1eef2311c24445de
/my-venv/bin/wheel
e1988530207fb5198672a49ecda9425ec3401572
[]
no_license
aasthakumar/ChatClient
cbfc18ba4cec6c20280680c659214a458cef5688
32c959488eda73caa81c8643957dbf1e6f79c77a
refs/heads/master
2020-03-15T01:50:46.755513
2018-05-02T20:38:43
2018-05-02T20:38:43
131,903,332
0
0
null
null
null
null
UTF-8
Python
false
false
268
#!/Users/aastha/Documents/GitHub/CMPE-273-quizzes/lab3/my-venv/bin/python # -*- coding: utf-8 -*- import re import sys from wheel.tool import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "aastha.kumar@sjsu.edu" ]
aastha.kumar@sjsu.edu
16eb3d8ca61b71e4472dd9dbccbad3c0497e2eb6
9f59572095262bb77b1069154dd70f52a2743582
/utils/.history/helper_20210303152111.py
db03f12b94ec4773cd7b73e126c98158e374fa06
[]
no_license
zhang199609/diagnose_fault_by_vibration
ef089807fd3ae6e0fab71a50863c78ea163ad689
7b32426f3debbe9f98a59fe78acdec3ad6a186fd
refs/heads/master
2023-04-15T15:35:59.000854
2021-04-23T06:53:40
2021-04-23T06:53:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
868
py
""" 提高代码简洁性和可交互性的代码 """ import time def get_running_time(fun): """ 代码运行时间装饰器 参数 ----- fun:要测试运行时间的函数 返回 ----- 返回装饰器wrapper 例子 ----- >>> @get_running_time def hello(name): print("hello %s"%name) time.sleep(3) >>> hello("Tony") """ ...
[ "18036834556@163.com" ]
18036834556@163.com
8bf31f37886bfff9512c59b2d24b2699e2383f4b
559d7428cba525ddff43a4b03f495c070f382075
/Final/FinalExam/Q1/lazy.py
0ecd5c3d8b15acde96bbd4735217dc6431ee8534
[]
no_license
kwokwill/comp3522-object-oriented-programming
9c222ad4d1a2c2420a5eb509f80ba792e94991f6
6e2347b70c07cfc3ca83af29c2bd5c4696c55bb6
refs/heads/master
2023-04-13T19:16:25.546865
2021-04-27T21:20:48
2021-04-27T21:20:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,260
py
import time """ (4 marks total) This program simulates loading screens in a game. One of the screens is entered and resources need to be loaded, the other does not The code below takes about 1 second (on my machine) to complete. Requirements Speed up the code using the LAZY INITIALIZATION design pattern. Do NOT chang...
[ "donglmin@icloud.com" ]
donglmin@icloud.com
482c33547adb2af1e66c780d7a9cc833b6182f11
c5da0ec1004fcb4283c62f3b2700a5b78dfa1fda
/Code/neuro.py
02386f5800c9c181a7ba7d26f5b8926616d5cca2
[]
no_license
akshayadiga/Optical-Character-Recognition-of-English-Alphabets-using-Neural-Networks
78cd63c9d5d5f38bb0fd6de6e003a307712920fe
8c040655a72c0fd4dacfa7b358def99d339755d9
refs/heads/master
2021-01-25T13:07:13.730875
2018-03-02T04:58:14
2018-03-02T04:58:14
123,532,003
0
0
null
null
null
null
UTF-8
Python
false
false
1,930
py
import neurolab as nl def toProb(letter): l=[] int_letter=ord(letter); pos=int_letter-97 for i in range(26): if(i==pos): l.append(1) else: l.append(0) return l def main(): # X = matrix of m input examples and n features f=open("letter.data","r") X=[] Y=[] count=0 for line in f: vector=l...
[ "akshayadiga@Akshays-MacBook-Pro.local" ]
akshayadiga@Akshays-MacBook-Pro.local
b8572b08870ce01777c59a851f52f3cd3d40ed69
ed6dd94781e3022f230050284d2ddd3554cc0772
/multithreading/multiprocessing_pipes_conttest.py
379999612d2531d37797406abcedc405c450bf1c
[]
no_license
Mantabit/python_examples
602d4f4237dbc2044d30dc5482e3e2dee4d90fb6
516dbb9cc63c7de5bfe7d0e79477dff9ff340a5d
refs/heads/master
2021-07-04T08:26:38.007606
2020-08-17T10:09:04
2020-08-17T10:09:04
153,170,298
0
0
null
null
null
null
UTF-8
Python
false
false
1,224
py
import multiprocessing as mp import time class testClass(object): def __init__(self,name): self.name=name def doSomething(self): print("Object %s reporting!"%(self.name)) #function receives objects def receiverFunction(receive_end): while True: #receive object from the pipe ...
[ "dvarx@gmx.ch" ]
dvarx@gmx.ch
3100c28087a8a7b53bc1fb5f666abd9059c4956a
4fec8ef57c150b088c09a4753e1e9fdb3a2ddabd
/yadjangoblog/yaaccounts/apps.py
700c03e127494b503dcbc9c698fcf5f424059f4d
[]
no_license
ValDon/YaDjangoBlog
629c124eb6475a2b1947d4b224b6cdd9473a0490
4e6b6453c73470b8f05d062a460962ce118954c3
refs/heads/master
2020-04-10T22:53:10.000582
2019-05-04T15:06:35
2019-05-04T15:06:35
161,334,986
0
0
null
2018-12-11T13:05:01
2018-12-11T13:05:00
null
UTF-8
Python
false
false
149
py
from django.apps import AppConfig class YaAccountsAppConfig(AppConfig): name = 'yadjangoblog.yaaccounts' verbose_name = 'YaAccounts模块'
[ "twocucao@gmail.com" ]
twocucao@gmail.com
cee0f8705da747a739d9a3dcea926258152f7f22
e8ac7df7a1e067ce002ed12e295e6e1a0908cc8c
/Python/ThinkFlask/home/views/index.py
9606b3fed92dca1ef2bbb1509bf9f8f1c929cbeb
[]
no_license
919858271/MyCode
fc9a9e3479843f933582f1030d504d6f5eb94dcb
5940b045207376c4c679260a660ca402b5b4751c
refs/heads/master
2021-06-21T13:59:00.754383
2019-07-21T13:28:48
2019-07-21T13:28:48
53,465,398
0
0
null
null
null
null
UTF-8
Python
false
false
923
py
#------------------------------------------------------------------------------- # !/usr/bin/env python # -*- coding: utf-8 -*- # Author: jianwen # Email: npujianwenxu@163.com #------------------------------------------------------------------------------- from flask import render_template from app.models im...
[ "npujianwenxu@163.com" ]
npujianwenxu@163.com
63b17a08ac2f4745e14601141a43ae06dd3014d8
e4dfc1402839f277e1e9ff8686dc6b67f1eb0bf0
/api_example/languages/urls.py
289d6f6c2218819b00280ffb8242142ac2eacf15
[]
no_license
punitchauhan771/Sample-Rest-API
32ee7a16270a978ac4d82a161fe4fb677c029d36
8372982507fa2ee301d3a9de1e6fe9d4b66028ed
refs/heads/main
2023-02-24T00:49:57.831224
2021-01-23T08:23:35
2021-01-23T08:23:35
331,853,402
0
0
null
null
null
null
UTF-8
Python
false
false
331
py
from django.urls import path, include from . import views from rest_framework import routers router = routers.DefaultRouter() router.register('languages', views.LanguageView) router.register('Paradigm', views.ParadigmView) router.register('Programmer',views.ProgrammerView) urlpatterns = [ path('', include(route...
[ "chauhanbhupendra980@gmail.com" ]
chauhanbhupendra980@gmail.com
6df0a8249cc984e79381ba0ffcddd3d27403a62b
0c72282d601ccf840dd4e41b675c0675de7bc916
/students/Jean-Baptiste/lessons/lesson03/assignment03_solution_JB/create_customers.py
45516c4640f57281eda038e5e82484c20727fe20
[]
no_license
zconn/PythonCert220Assign
c7fedd9ffae4f9e74e5e4dfc59bc6c511c7900ab
99271cd60485bd2e54f8d133c9057a2ccd6c91c2
refs/heads/master
2020-04-15T14:42:08.765699
2019-03-14T09:13:36
2019-03-14T09:13:36
164,763,504
2
0
null
2019-01-09T01:34:40
2019-01-09T01:34:40
null
UTF-8
Python
false
false
360
py
""" This is to create database using the Peewee ORM, sqlite and Python """ from customers_model import * import customers_model as cm import logging logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) logger.info('Let us build the classes from the model in the database') cm.database.create_ta...
[ "jbyamindi@yahoo.fr" ]
jbyamindi@yahoo.fr
3129d119bb1773e4909ac9e1ecf759cef0cad06e
539789516d0d946e8086444bf4dc6f44d62758c7
/inference/python/inference.py
7fc210e7978a31556f20ba12d8a1baa22d2ff6c4
[]
no_license
hoangcuong2011/etagger
ad05ca0c54f007f54f73d39dc539c3737d5acacf
611da685d72da207870ddb3dc403b530c859d603
refs/heads/master
2020-05-03T15:15:33.395186
2019-03-28T01:40:21
2019-03-28T01:40:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,683
py
from __future__ import print_function import sys import os path = os.path.dirname(os.path.abspath(__file__)) + '/../..' sys.path.append(path) import time import argparse import tensorflow as tf import numpy as np # for LSTMBlockFusedCell(), https://github.com/tensorflow/tensorflow/issues/23369 tf.contrib.rnn # for QRNN...
[ "hazzling@gmail.com" ]
hazzling@gmail.com
8dba5286a903756c1d25fcc25d34a5e543f90741
ac42160440b161365c6f863bd1c89ce8a09570cb
/array.py
2eeeea45eeabb94107eafd1e45dbd55b677be5d0
[]
no_license
vikask1640/Demogit
7f12b141af535f95373379a5469573d9c69ad461
ad35dcab54b56afbc75578711dac78204ad008b0
refs/heads/master
2020-04-13T23:32:33.126507
2019-01-03T11:00:56
2019-01-03T11:00:56
163,509,341
0
0
null
null
null
null
UTF-8
Python
false
false
258
py
import array as a def ace(): vals = a.array("i", [10, 8, 14, 55, 4]) print(vals) x=list(vals) x.sort() print(x) ace() # factorilas numbers y=5 fact=1 for j in range(1,y+1): # 1 to 5 fact=fact*j print(fact)
[ "noreply@github.com" ]
vikask1640.noreply@github.com
3921c679f0f414668848b1d37b5d076edec45b8d
5d1441cc173e06fb24c389eb812067a3fc355587
/workflow/templatetags/custom.py
c9f466a6cebfba8a0db9f818d8958efed3756c15
[]
no_license
Johums/ProjectManage
2860eb12134d9b522c5a5f2fa4e4054533d9175a
22d662e089adab447f247d078c89c670384e78ff
refs/heads/master
2021-01-10T16:36:47.412675
2016-02-27T15:24:13
2016-02-27T15:24:13
52,213,655
0
0
null
null
null
null
UTF-8
Python
false
false
641
py
# -*- coding: utf-8 -*- from django import template from django.utils import safestring register = template.Library() @register.filter def multi_menu(menu, move=0): html_content = """ <ul class="nav nav-pills nav-stacked" style="margin-left: %spx" > """ % move for k, v in menu.items(): h...
[ "13276915582@163.com" ]
13276915582@163.com
7048a4f70ae9aad9393bb2928bb43fcb1d64edb8
8c0bf198a6e0be4128a8615a6944f0a167fc9c79
/options.py
0cc3ba14fb313fce757adb11cbbf48670d4e23ef
[]
no_license
amietn/anna
73c43d3a2a9d7f465784ec7adc54f9494b07a178
e6e24d2c8252085e8ed69df8da976360b0f43baf
refs/heads/master
2021-05-03T06:12:09.783335
2018-02-07T09:09:18
2018-02-07T09:09:18
120,590,225
0
0
null
null
null
null
UTF-8
Python
false
false
436
py
#!/usr/bin/env python3 import os import json irc_credentials_path = os.path.expanduser("~/.config/anna/irc_credentials.json") def get_irc_credentials(): return get_irc_credentials_path(irc_credentials_path) def get_irc_credentials_path(path): with open(path, 'r') as f: j = json.load(f) return j...
[ "amietn@foobar" ]
amietn@foobar