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
62b325bfbc893aed2fc4ee6d1601f543322942af
a5766cfee2304df40500ee5e8d0cbc1fd41b1a22
/scripts/download.py
97f200e6c8e2c710f3c1007c061c497914a50105
[ "MIT" ]
permissive
ravitandon90/GreBot
c60d02a5181f6b9b3afdd7c857b16a5cab893642
4f1ffc29dcea0a87fd91b9bae66d4bb972bbd0fb
refs/heads/master
2022-08-14T05:19:36.289083
2019-03-17T01:46:23
2019-03-17T01:46:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
231
py
import requests import pandas as pd url = 'https://www.graduateshotline.com/gre-word-list.html#x5' html = requests.get(url).content df_list = pd.read_html(html) df = df_list[0] print len(df_list) print df df.to_csv('my data.csv')
[ "ravitandon@Ravis-MacBook-Air.local" ]
ravitandon@Ravis-MacBook-Air.local
cc855dc399a6fa2b5d8ad6612c046799d2ee857d
485b6aab73c97a3bf0fb2b8c783a55a03a1436af
/lab3/isPalindrome.py
29585347cde0ac906901dad3d07dd20ac6035df5
[]
no_license
reut17-meet/MEET-YL1
28d6024558053d25eef2a6ca49407e50e5574b56
91450fee12c32cfbae385bc8f79ea6f99034a637
refs/heads/master
2021-01-10T05:08:56.889510
2016-01-26T18:03:05
2016-01-26T18:03:05
46,806,752
0
0
null
null
null
null
UTF-8
Python
false
false
146
py
def isPalindrome(str): if str[0] == str[-1]: print("TRUE") elif str[1] == str[-2]: print("TRUE") elif str[2] == str[-3]: print("TRUE")
[ "brit13@meet.mit.edu" ]
brit13@meet.mit.edu
f57b7ff47e9eb72ddf79910114d1fb2d321186e9
591ea44c1654168e9d23ccdc08fdea4c5aa842e6
/feedy/user/data/create_user_repo.py
0a0dd27d776fb358a28d5a04e2b1f7519cbc4e9c
[]
no_license
saber-solooki/sample-feed
c7e770c843d500bf7f96e2dc3a42d626161d7a37
e84eef33253f1e4e870f0e11075091e5bd42cf8b
refs/heads/master
2022-12-07T16:13:58.118894
2020-08-29T08:23:24
2020-08-29T08:23:24
289,496,507
1
0
null
null
null
null
UTF-8
Python
false
false
380
py
from django.contrib.auth.models import User from user.domain.create_user_repo import CreateUserRepo class CreateUserRepoDBImpl(CreateUserRepo): def is_user_name_exist(self, username): return User.objects.filter(username__exact=username).exists() def create_user(self, username, password): Use...
[ "saber.solooki@gmail.com" ]
saber.solooki@gmail.com
d0f5d2b5e9d35d9888ce5cc86305103b33dc90c5
6ac617768484d97a16e4469228010d09c6922a79
/main.py
c22e66df18c0c80c2d41279fdaf2322860173307
[]
no_license
Ankmitta/Indian-Rail
f9d7d53b6ebcb9e620df156092e6af93bed24fdd
4ab207f4920d14bfaa142014f27815fe0838b443
refs/heads/master
2023-08-31T23:02:41.792869
2021-11-03T13:37:33
2021-11-03T13:37:33
424,238,016
0
0
null
null
null
null
UTF-8
Python
false
false
2,598
py
import os import pandas as pd from pydub import AudioSegment from gtts import gTTS def textToSpeech(text,filename): mytext=str(text) language='hi' myobj=gTTS(text=mytext, Lang=language, slow=True) myobj.save(filename) def mergeAudios(audios): combined=AudioSegment.empty() for aud...
[ "ankurmittal241997@gmail.com" ]
ankurmittal241997@gmail.com
24b155dfb3d3c008cec35fe620cdb0860ebf2ee2
9ecbb9cba8bdc04b80bcfec51ba9334330dfc221
/main.py
1975bfff533e777fa2a8998765a7aa8f9f9b9664
[]
no_license
wrccrwx/vat-2
7b619d20c2163c11f8bfa8bb595c2c628bfd91c1
8c8c769f5d910c355f6916b768b52b2e31ba1d32
refs/heads/master
2020-04-02T04:20:32.928745
2017-05-14T01:45:01
2017-05-14T01:45:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,279
py
import numpy as np import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data from vat import VAT import mnist_model do_VAT = True mnist = input_data.read_data_sets("MNIST_data/", one_hot=True) batch_size = 100 max_epoch = 100 keep_prob_during_training = 1.0 x = tf.placeholder(mnist_model.ft...
[ "issigned@gmail.com" ]
issigned@gmail.com
052a2fec1e7d06a2ba0f6997bf07d9d453dcf143
f31fda8014ecadf6af7d4e3392fb917c49e0352a
/HeavyIonsAnalysis/JetAnalysis/python/jets/akFilter2CaloJetSequence_pp_mc_cff.py
be232d658ab95be08e158cc0de98688f77436bd0
[]
no_license
jniedzie/lightbylight
acea5051f053c49824a49a0b78bac3a2247ee75f
f5a4661fcf3fd3c0e9ccd8893a46a238e30c2aa8
refs/heads/master
2020-03-18T12:24:31.970468
2018-02-09T15:50:00
2018-02-09T15:50:00
134,724,759
0
1
null
2018-05-24T14:11:12
2018-05-24T14:11:12
null
UTF-8
Python
false
false
14,936
py
import FWCore.ParameterSet.Config as cms from HeavyIonsAnalysis.JetAnalysis.patHeavyIonSequences_cff import patJetGenJetMatch, patJetPartonMatch, patJetCorrFactors, patJets from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import * from HeavyIonsAnalysis.JetAnalysis.bTaggers_cff import * from RecoJets.JetPr...
[ "rchudasa@cern.ch" ]
rchudasa@cern.ch
4bd22000694e9b19112e1f19da88669cc480d925
dd4a5bcb1d69451e97fb2a174932f284c23398e4
/main-DB.py
52c6785c8713f48bedac5eaa9dcdca4e15b6a438
[ "MIT" ]
permissive
vbscript055246/problem-solving_quizzing_platform
8a41446fbaf97f27fd3ffd079c051ea6b4b80cb9
0af2483d4239b7fcdb3ec8580e44954a54b38d7f
refs/heads/main
2023-03-04T05:47:46.850379
2021-02-17T17:29:54
2021-02-17T17:29:54
339,616,391
0
0
null
null
null
null
UTF-8
Python
false
false
2,125
py
import pymongo import pandas as pd import datetime import sys from openpyxl.cell.cell import ILLEGAL_CHARACTERS_RE DBserver = pymongo.MongoClient('mongodb://localhost:27017/') DB = DBserver['ir'] collection = DB['usermsgs'] output = [] df = pd.DataFrame(columns=['name', 'time_slot', 'mode', 'type', 'quiz_number', 'ac...
[ "vbscript055246@gmail.com" ]
vbscript055246@gmail.com
074544257d384acdae5383bba63f55dfaaea890e
f387deb16abc3d04137b11ac54536419db8dd379
/scripts_simulation/signals_CS_filtering.py
a194c88f0af3f6f3a1998157139482546efdd995
[]
no_license
TankMermaid/dsfdr-analyses
c00c13e2c244edc9b631e9edf6be7053c61b6cb6
0e4254a98922da23e35678e3daf1ca9d71d8a84f
refs/heads/master
2020-04-01T09:32:37.518565
2017-10-18T22:52:36
2017-10-18T22:52:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,886
py
import numpy as np import pandas as pd import dsfdr from biom import load_table from gneiss.util import match from scipy.stats import sem import pickle # input biom table def convert_biom_to_pandas(table): otu_table = pd.DataFrame(np.array(table.matrix_data.todense()).T, index=table....
[ "serene1030@gmail.com" ]
serene1030@gmail.com
afa1d18331335d4fcf1b9ad3a626df98083d9026
b5ac0c0643168a18df6e55975ae644252e5af4a8
/app/__init__.py
f8a83f935ba3ab2a03e647593c3e4086f79cffa1
[]
no_license
ekrajchevska/flask-products
18abd5d0e7b953e06007e217ab73b5afaa92b37d
9522db07071f233776ca42ecf54145937c3c9903
refs/heads/main
2023-09-03T12:11:02.036564
2021-10-28T11:06:56
2021-10-28T11:06:56
389,633,243
0
0
null
null
null
null
UTF-8
Python
false
false
1,180
py
from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_marshmallow import Marshmallow from flask_migrate import Migrate from werkzeug.routing import Rule from instance.config import client import logging # Globally accessible libraries db = SQLAlchemy() ma = Marshmallow() doc_db = client.flaskprod...
[ "eva.krajchevska@gmail.com" ]
eva.krajchevska@gmail.com
01627fac02a1071ee25be2045e281fb3294146ff
60fe84c0a8fcfbed6d581af8a44bfea60c16592a
/paddlex/paddleseg/core/infer.py
af7388a6623c24fa48f2e39a7790af165fad69a2
[ "Apache-2.0" ]
permissive
Strive-for-excellence/PaddleX
ec4cce43f8407d4288c11b72132d6e811101a88e
dc14077a3b0e8ab9e512a78938d8f01b969f0942
refs/heads/release/2.0.0
2023-08-26T15:07:45.418855
2021-09-23T13:30:25
2021-09-23T13:30:25
409,951,979
1
0
Apache-2.0
2021-09-24T12:15:49
2021-09-24T12:15:48
null
UTF-8
Python
false
false
10,785
py
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
[ "lujiafeng@baidu.com" ]
lujiafeng@baidu.com
29ded85963427005447945c2553a28c700c64f2c
50ee2f4f1a7d2e5ff7ac35118c5ac45f9b923865
/0x04-python-more_data_structures/11-mutiply_list_map.py
e358dac1321fc511f9324487fbc1dcfae81e9a3d
[]
no_license
spencerhcheng/holbertonschool-higher_level_programming
b489fbe8eba6109ef1eaa0d9363f3477e7eb16c4
f8e1dbc24fcf8fb40ca135d2700872eb773e481e
refs/heads/master
2021-01-20T06:54:35.044899
2018-05-20T05:09:59
2018-05-20T05:09:59
89,943,332
0
1
null
null
null
null
UTF-8
Python
false
false
114
py
#!/usr/bin/python3 def mutiply_list_map(my_list=[], number=0): return(list(map(lambda x: x*number, my_list)))
[ "spencerhcheng@gmail.com" ]
spencerhcheng@gmail.com
038857cb63e1a53e8498e0e7db5a344f570b070f
b501a5eae1018c1c26caa96793c6ee17865ebb2d
/Networking/socket/socket_echo_client_dgram.py
9a94a43d153d9f68fb0d97cdb5884623b3572b54
[]
no_license
jincurry/standard_Library_Learn
12b02f9e86d31ca574bb6863aefc95d63cc558fc
6c7197f12747456e0f1f3efd09667682a2d1a567
refs/heads/master
2022-10-26T07:28:36.545847
2018-05-04T12:54:50
2018-05-04T12:54:50
125,447,397
0
1
null
2022-10-02T17:21:50
2018-03-16T01:32:50
Python
UTF-8
Python
false
false
439
py
import socket import sys sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) server_address = ('localhost', 10000) message = b'This is the message, it will be repeated' try: print('Sending {!r}'.format(message)) sent = sock.sendto(message, server_address) print('Waiting for receive') data, serve...
[ "jintao422516@gmail.com" ]
jintao422516@gmail.com
fbf7079171d49bd65187fef1a9f95647991df359
adf146eb882c736045112e49d3779538c89b44bd
/travel/migrations/0016_merge_20200828_1312.py
e47a65e0664c47eab322564fad04bea3a55c343c
[]
no_license
Atanna128/steam
3ff544817e96d387123fdd29bc1cb38354442943
e56252b7bca7aff789bbde3d2c8f47ea00348be2
refs/heads/main
2023-04-05T01:31:23.588557
2021-04-02T04:43:01
2021-04-02T04:43:01
353,903,881
1
0
null
null
null
null
UTF-8
Python
false
false
272
py
# Generated by Django 3.0.3 on 2020-08-28 06:12 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('travel', '0015_auto_20200827_1532'), ('travel', '0012_merge_20200827_0825'), ] operations = [ ]
[ "buingoctu1998@gmail.com" ]
buingoctu1998@gmail.com
f72480accb059522869217f8cf37e191dde1a7b4
201f07e3ddfd4f1b24c24fc794aa980a255fb2ab
/barriers/views/assessments/overview.py
e1bd181b2078e37846d386e93ed49544758a1f6b
[ "MIT" ]
permissive
uktrade/market-access-python-frontend
7dab68eed0b35205f4c78758ab88c815f65631c2
9510c31f7264c4092f76fce336d05b6709802b1c
refs/heads/master
2023-09-05T09:38:42.473232
2023-08-31T08:42:49
2023-08-31T08:42:49
225,406,107
7
3
MIT
2023-09-13T09:41:55
2019-12-02T15:20:46
Python
UTF-8
Python
false
false
586
py
from django.conf import settings from django.views.generic import TemplateView from ..mixins import BarrierMixin class AssessmentOverview(BarrierMixin, TemplateView): template_name = "barriers/assessments/overview.html" def get_context_data(self, **kwargs): context = super().get_context_data(**kwarg...
[ "noreply@github.com" ]
uktrade.noreply@github.com
e74904518f7b8676c858649521bfced59690bbca
961546f11888a2ebd44df9159367f3b5131c579b
/main.py
ed2913f85dd7c0cd73dd7c4732102f96d6ca7da5
[]
no_license
AlexKalegin/WebCrawler
d97aaaf209557675dfd7562870fc26426611ad63
04b8d5bb4a38a202e8a39803e71647c9a9d82ca9
refs/heads/master
2023-05-31T12:58:26.907400
2019-12-16T17:21:03
2019-12-16T17:21:03
180,406,789
0
0
null
null
null
null
UTF-8
Python
false
false
1,337
py
import argparse from modules import crawler as c import logging def main(): """Метод для ввода пользователем домена, пути, куда сохранять страницы, и количество потоков""" descr = 'Программа, для сохранения страниц. Просто введите домен и путь, ' \ 'куда сохранять ' parser = argparse.ArgumentP...
[ "49450416+AlexKalegin@users.noreply.github.com" ]
49450416+AlexKalegin@users.noreply.github.com
71522388895aa9b96e91d33115a18a44030a8f11
dc182e5b4597bdd104d6695c03744a12ebfe2533
/Hackerrank Solutions/array.py
548b0132cc10c538e8612616e21c82103c603c13
[]
no_license
srinaveendesu/Programs
06fb4a4b452445e4260f9691fe632c732078d54d
f6dbd8db444678b7ae7658126b59b381b3ab0bab
refs/heads/master
2023-01-27T14:42:40.989127
2023-01-18T22:36:14
2023-01-18T22:36:14
129,948,488
1
0
null
2022-09-13T23:06:04
2018-04-17T18:30:13
Python
UTF-8
Python
false
false
4,002
py
#QQ# #https://www.hackerrank.com/challenges/array-left-rotation/problem #!/bin/python3 import math import os import random import re import sys if __name__ == '__main__': nd = input().split() n = int(nd[0]) d = int(nd[1]) a = list(map(int, input().rstrip().split())) l = (a[::][d:]+ a[:d]) ...
[ "srinaveen.desu@gmail.com" ]
srinaveen.desu@gmail.com
73ccc88785e3b447db6019e216b1ee9fca44786e
1b87d5f7cba7e068f7b2ea902bba494599d20a78
/tools/upload/googlecode_upload.py
7d179f3a0d96db814dd7cef9a9724e7b4579bd08
[ "BSD-3-Clause" ]
permissive
jpaalasm/pyglet
906d03fe53160885665beaed20314b5909903cc9
bf1d1f209ca3e702fd4b6611377257f0e2767282
refs/heads/master
2021-01-25T03:27:08.941964
2014-01-25T17:50:57
2014-01-25T17:50:57
16,236,090
2
2
null
null
null
null
UTF-8
Python
false
false
6,896
py
#!/usr/bin/env python # # Copyright 2006 Google Inc. All Rights Reserved. # Author: danderson@google.com (David Anderson) # # Script for uploading files to a Google Code project. # # This is intended to be both a useful script for people who want to # streamline project uploads and a reference implementation for # uplo...
[ "joonas.paalasmaa@gmail.com" ]
joonas.paalasmaa@gmail.com
d64ec2d98ded72c25f4a3d44160e2d38fed76160
afde9df66f4cc44af2e4560d4432e71ba00dacef
/soundDemo/soundDemo/sound/impulseGenerator.py
c4b4032202fc09ed56e4173179e14626f8f72ae5
[]
no_license
orlevi/soundDemonstration
748d3bdf62979f434244aa386b3f84b97f143111
c857f43e729020cae989272972f0e60d04e3dcfb
refs/heads/master
2020-05-20T10:04:59.438897
2015-08-15T17:09:01
2015-08-15T17:09:01
35,433,424
1
0
null
null
null
null
UTF-8
Python
false
false
1,488
py
__author__ = 'nfreiman' import pyaudio import numpy import time from scipy import signal CHUNK = 1024 FS = 44100 CHUNKS_TO_RECORD = 220 class ImpulseGenerator(object): def __init__(self): self.player = pyaudio.PyAudio() self.outStream = self.player.open(format=pyaudio.paFloat32, channels=2, rate=F...
[ "netanelf@gmail.com" ]
netanelf@gmail.com
94581915ea348d182f7651b622abd64d679a331a
2b3a58498b84524a3b0cf779dff3c130f459052b
/moj program4.py
ea1417a8b410a5cb76c0dee4f995e9c979b6b6ed
[]
no_license
ivanjankovic16/pajton-vjezbe
fbfe8a89b12d223113c83899ddabef73ce2688a7
f87830118f43795515e71a5c6cade4351e483935
refs/heads/master
2022-12-24T00:30:05.686238
2020-07-14T13:57:34
2020-07-14T13:57:34
264,484,534
0
0
null
null
null
null
UTF-8
Python
false
false
219
py
# Ask the user to enter a name. print('Enter a name.') name = input() if name == '': print('You didnt enter a name.') try: name = int(name) print('Nije validno.') except: print('Thank you.')
[ "i.jankovic@rocketmail.com" ]
i.jankovic@rocketmail.com
2f8c48b7ba5f2ca80b7183f8ee6a95a57d46f86e
f3ce995652b9fd135fd1ea9e4085fb2485765738
/Icons.py
9dc389272621ceef1bc644598a5d2d0ca540bf65
[]
no_license
marcoh1012/DesktopCleaner-V2
34fbd154b51accd64d57d79ed341414dac3fb414
1bda48aa07e4710966e088306be0c44876933e18
refs/heads/master
2020-12-10T23:05:09.671506
2020-01-14T02:15:46
2020-01-14T02:15:46
233,737,065
0
0
null
null
null
null
UTF-8
Python
false
false
287,989
py
# -*- coding: utf-8 -*- # Resource object code # # Created by: The Resource Compiler for PyQt5 (Qt v5.11.2) # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore qt_resource_data = b"\ \x00\x00\x06\x76\ \x89\ \x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\ \x00\x00\xfa\x...
[ "33380761+marcoh1012@users.noreply.github.com" ]
33380761+marcoh1012@users.noreply.github.com
0e459c66182b7b2e2a327b16d5cbddaed7961172
65686eb6c9acfa900da88f65bf5e3b6410f53635
/grades.py
d77cf3934fbf9177bf69fc3f50a30ff853605337
[]
no_license
DaveRox/Python_Programs
4df0231836a46c5773de10d62eb86f7fcf5d303e
bf0ddfc4e47c733c36cb3238feb220aa3594d104
refs/heads/master
2020-12-25T11:15:57.637435
2016-08-01T11:44:30
2016-08-01T11:44:30
64,507,417
0
0
null
null
null
null
UTF-8
Python
false
false
422
py
try: score = raw_input("Enter Score: ") s = float(score) except: print "Please enter a numeric score between 0.0 and 1.0." quit() if s < 0.0: print "Please enter a numeric score between 0.0 and 1.0" quit() if s > 1.0: print "Please enter a numeric score between 0.0 and 1.0" quit() if s >= 0.9: print "A" ...
[ "dguilford@gmail.com" ]
dguilford@gmail.com
36f02aeca0f0bca0e802b0968c19d4971b98cce8
a417a753ccebaa53690a1343eea7882dd30648eb
/app/notice_board/migrations/0019_auto_20201018_0822.py
d4c092b697c573938a5467b9c1fbe38a9dd250d6
[]
no_license
zagrajmy/backend
30347ced43347a0ebee6bb1fc376d93106c2308d
e860ed1849094658aa9cc5cb8664ad088beb988c
refs/heads/master
2021-03-13T11:40:05.453442
2020-10-20T20:16:42
2020-10-20T20:16:42
224,264,277
0
2
null
2021-02-02T02:16:44
2019-11-26T18:54:52
Python
UTF-8
Python
false
false
879
py
# Generated by Django 3.1.2 on 2020-10-18 06:22 import django.db.models.expressions from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('notice_board', '0018_auto_20201006_2118'), ] operations = [ migrations.RemoveConstraint( mod...
[ "noreply@github.com" ]
zagrajmy.noreply@github.com
f56dc8109379578d3dd6588d4344e91984d81213
5da8ce48282cae5edc386b3bfc58ca39f187e3d8
/serafim/nb.py
c00f5ec53cce506fc4d8d6a4cc9e703db8070a11
[]
no_license
below-1/nb-knn-belis
f9ce34be5d14f63552c7e3087dc7aec5236840ea
75a99c7a1ee682c48c5c6cb80418e3b88bbc0ae4
refs/heads/master
2022-12-12T18:47:25.166608
2019-05-28T06:42:17
2019-05-28T06:42:17
188,361,711
0
0
null
2022-12-08T05:10:32
2019-05-24T06:02:38
CSS
UTF-8
Python
false
false
7,933
py
from collections import namedtuple from serafim.model import DsetRow Classification = namedtuple('Classification', ['max_prob', 'clazz']) KnnResult = namedtuple('KnnResult', ['similarity', 'selected_ids']) class NaiveBayesV2: ''' Multinomial naive bayes for binary category implementation with ordered attrib...
[ "irnawatyully@gmail.com" ]
irnawatyully@gmail.com
3455029efbae033f2c0da3c1c4522c8c9b33cb33
e6a90d21e9a983476adda3cccc832a828875cea9
/Lib/site-packages/ffc/jitobject.py
19a9d2db3872418e1f60e0ccf70f4753e65356c4
[]
no_license
maciekswat/dolfin_python_deps
e28c27780d535c961e4b3129bb17628a4ff7167a
7af15cd0ab522436ca285f8422faa42675345f55
refs/heads/master
2021-01-25T12:14:55.779591
2014-04-23T22:51:19
2014-04-23T22:51:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,931
py
# Copyright (C) 2008-2013 Anders Logg # # This file is part of FFC. # # FFC is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # ...
[ "maciekswat@gmail.com" ]
maciekswat@gmail.com
c9ef066e396fdae3e24a34c85263a2f4474c1028
2e6e6cc317086fc69e55a1fe9030bb9b101d64c1
/timezone-detect/wsgi.py
086eefc87d1c5b6d0ef5337a0541fc4c1cd774f1
[]
no_license
BryanHurst/timezone-detect
b8ec47d43aa081389aedd71306f6129af9b265c8
9882ebded8f8f171c0fc4c950361af6b1da3607d
refs/heads/master
2021-01-22T12:08:26.394943
2014-02-13T00:35:15
2014-02-13T00:35:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,439
py
""" WSGI config for timezone-detect project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPLIC...
[ "bryan@newlinetechnicalinnovations.com" ]
bryan@newlinetechnicalinnovations.com
e742a342fdf42187514f5368bf70be0b028305f9
1b474a22607fd1ddc01b794e4d36ceab6f56e88c
/talk/migrations/0001_initial.py
0b3480ddc463b91a951e1e96e174b5d431c2db5f
[]
no_license
tosinolawore/aviyel
b0178029274704c34b98682fb1d16051e434c7a7
bf3db8a45d66d24456fef14befc6e399d22d1168
refs/heads/master
2023-08-18T02:48:14.573963
2021-09-29T14:26:01
2021-09-29T14:26:01
402,493,484
0
0
null
2021-09-29T14:26:02
2021-09-02T16:41:36
Python
UTF-8
Python
false
false
1,163
py
# Generated by Django 3.2.7 on 2021-09-04 03:01 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('conference', '0001_initial'), ('participant', '0001_initial'), ('speaker', ...
[ "25176099+tosinolawore@users.noreply.github.com" ]
25176099+tosinolawore@users.noreply.github.com
fadf23f0ddb84cac72749fb3e7c6593d371b1917
579ffcafb427888c2cb134177ec8133fba94f185
/pipert/core/utlis/queue_handler.py
902ba642ca1631f019c5d68fbaf2bf560d697acd
[ "MIT" ]
permissive
Elon-Abulafia/PipeRT
39ecd75d5649f943ead90f3361468d11516b7183
fba46d67a6dd546a9d70c3d854c3b7d3910f82ba
refs/heads/master
2021-01-05T16:00:53.061246
2020-06-23T17:31:36
2020-06-23T17:31:36
241,068,880
0
0
MIT
2020-06-23T17:31:37
2020-02-17T09:36:21
Python
UTF-8
Python
false
false
3,697
py
import queue import multiprocessing as mp from typing import Union import time class QueueHandler: def __init__(self, q): self.q: Union[queue.Queue, mp.Queue] = q def get(self, block=True, timeout=None): """ Works just like the `get` method of `queue.Queue` Returns: ...
[ "wilfitamar@gmail.com" ]
wilfitamar@gmail.com
faecb04d8ac141614835504fc60bf144ebedc147
7711d649865cbb05d86b5985e6a1ee99a38df3b3
/thirdparty-cpp/boost_1_62_0/tools/build/src/util/set.py
9f3b1524407898c8e5e7bddd02796597960bcad7
[ "Apache-2.0", "BSL-1.0" ]
permissive
nxplatform/nx-mobile
0ae4ba8b5b20cf06a9396d685a35b4651c0eab02
0dc174c893f2667377cb2ef7e5ffeb212fa8b3e5
refs/heads/master
2021-01-17T07:35:33.860681
2017-04-25T10:12:30
2017-04-25T10:12:30
83,760,335
1
0
null
null
null
null
UTF-8
Python
false
false
1,486
py
# (C) Copyright David Abrahams 2001. Permission to copy, use, modify, sell and # distribute this software is granted provided this copyright notice appears in # all copies. This software is provided "as is" without express or implied # warranty, and with no claim as to its suitability for any purpose. from b2...
[ "narongrit@3dsinteractive.com" ]
narongrit@3dsinteractive.com
e47ec77483d8ea21ac2c7f17ceca3591cb18192a
df858cb8172f73aad1af25496ac86e637a203bf4
/Introdução a Programação com Python - exercícios baixados do site oficial/Listagens/07.45 - Jogo da forca.py
bf6002fa6bef2b078f9bd73b91e7c106e5860d59
[]
no_license
emersonleite/python
33cd48788e4f641da244ba9fd0460b9a5b1ef0bc
8157fcd5c7ee7f942a4503ad386e7d2054d5acfc
refs/heads/master
2020-03-08T04:09:57.857429
2019-03-27T14:56:46
2019-03-27T14:56:46
127,913,519
0
0
null
null
null
null
UTF-8
Python
false
false
1,790
py
############################################################################## # Parte do livro Introdução à Programação com Python # Autor: Nilo Ney Coutinho Menezes # Editora Novatec (c) 2010-2014 # Primeira edição - Novembro/2010 - ISBN 978-85-7522-250-8 # Primeira reimpressão - Outubro/2011 # Segunda reimpressão - ...
[ "emerson.bl@gmail.com" ]
emerson.bl@gmail.com
324a6e1cc7680a552fede75bbb9619952eca6460
1682711f0cd62a90261f66a33be61e839022840c
/udscrape.py
b18ad12c344eff332950b1c139be7ee2c333e3d0
[]
no_license
emagnus/definition-bot
dff4b867543e272447c977e38c99dbe8c66a7b3e
64ccfe82f44fb5a21276551f922baa7d7ac0bc06
refs/heads/master
2021-01-23T11:20:26.364491
2011-03-26T15:02:10
2011-03-26T15:02:10
1,493,120
0
0
null
null
null
null
UTF-8
Python
false
false
1,474
py
from BeautifulSoup import BeautifulSoup from BeautifulSoup import BeautifulStoneSoup from BeautifulSoup import NavigableString import urllib2 import urllib import unicodedata def fetch(url): opener = urllib2.build_opener() opener.addheaders = [("User-agent", "defino")] response = opener.open(url) retur...
[ "westerga@gmail.com" ]
westerga@gmail.com
2d772093e12dd17f2514fa2f7d0a20d3077ba7d3
acf6a649fe6e6ec52b1dbfc59480e26fe7cced10
/imperial/reinforcement_learning/maze_traversal/lib/Agent.py
69dab353a7762581915549e7b01d904e956047fc
[]
no_license
Syndorik/Resume
f5735c48180f935cf112a95a92d86d073bfeff17
6f376b047026a21554dfbca1b130c0285c1a8c20
refs/heads/master
2021-06-26T16:50:21.106936
2020-09-28T15:08:43
2020-09-28T15:08:43
146,450,937
0
0
null
null
null
null
UTF-8
Python
false
false
3,608
py
# Import some modules from other libraries import numpy as np # The Agent class allows the agent to interact with the environment. class Agent: # The class initialisation function. def __init__(self, environment): # Set the agent's environment. self.environment = environment # Create...
[ "aa4719@ic.ac.uk" ]
aa4719@ic.ac.uk
73ff5cc23bb2c58ecf3c15182ab03d08a2a382d1
81a62dbdb9cc0576f4ba77974b705579e50c2b4b
/beware/cli.py
d4a160973dcc8d8b8ec5e374558ee6d2e37fd5cf
[]
no_license
glassresistor/reader-beware
fad1a3f2dbbac65d5de91adb04f4a07b2856e202
8eeef2424215b0f1f40d47adcf664cbf66a212de
refs/heads/master
2020-04-15T01:41:17.633613
2019-02-15T04:37:11
2019-02-15T04:37:11
164,287,214
4
0
null
null
null
null
UTF-8
Python
false
false
787
py
import click from beware.build_html import NarativeWorldBuilder from beware.build_epub import EPubWorldBuilder @click.group() def cli(): pass @cli.command() @click.option( '--narative-path', default='narative.yaml', help='Path to natarive yaml file') @click.option( '--output', default='outp...
[ "glassresistor@gmail.com" ]
glassresistor@gmail.com
60cb424a2517556ed6d7c6a5713b3f98c94ba801
08eb269fde69d6dd489008bf1b88328b31c47d2f
/nr_001_python.py
18ee186d2c73f6cf32fa3a51ded09871a3cdbe66
[]
no_license
Edvinauskas/Project-Euler
65bfc887f5dfc56bee2245743c70e1ab94e7edea
0643a3263192de578f06a3f3cf3eb509e0041ffe
refs/heads/master
2016-09-07T18:40:46.018564
2015-01-03T18:21:13
2015-01-03T18:21:13
7,705,448
0
0
null
null
null
null
UTF-8
Python
false
false
409
py
######################################### # Problem Nr. 1 # If we list all the natural numbers # below 10 that are multiples of 3 or 5, # we get 3, 5, 6 and 9. The sum of these # multiples is 23. # # Find the sum of all the # multiples of 3 or 5 below 1000. ######################################### multi_sum = 0 for n...
[ "edvinas@tr0n-ubuntu32.(none)" ]
edvinas@tr0n-ubuntu32.(none)
26d0cb12f5092278fa8ddcee18b2141fd5dd5574
9382a3acd3637a1c242045bff8109dee844d869a
/src/webhook_server_for_evaluation.py
10a64c5634e81ba458af050880bc5ec18bf38dba
[ "MIT" ]
permissive
byeongkyu/dialogflow_dialog
4cf19133f73d8ea82b8fb98e33a661804217a5db
c7ae5ce65f8fb6fa830817ab186a9851a26473e0
refs/heads/master
2020-03-17T20:07:05.222328
2018-08-23T23:42:39
2018-08-23T23:42:39
133,893,838
0
2
null
null
null
null
UTF-8
Python
false
false
5,691
py
#!/usr/bin/env python #-*- encoding: utf8 -*- import os import time import rospy import threading import logging import json import requests import random from std_msgs.msg import String, Int16, Empty from flask import Flask, Response, request, make_response, jsonify WEATHER_TEXT = [ "The weather in {city} now i...
[ "byeongkyu@gmail.com" ]
byeongkyu@gmail.com
ba9b27ffd391e08f729196b417a7702064a37d91
cf6bf72f52c41d21e54e3dac4c0167e4f94cda2c
/ThreeNumbers.py
bdc621485c8cff11aa31345f31cd7b651863f74f
[]
no_license
Ellammaldevi/Python-programs-1
9b5b29cc1da702678508103d5d24692365687d03
d89c8e46db0e3ade5ab453fee42890cd9e07b5e8
refs/heads/master
2020-06-17T18:31:50.629562
2019-07-10T04:28:30
2019-07-10T04:28:30
196,008,344
0
0
null
null
null
null
UTF-8
Python
false
false
879
py
def three_Sum(num): if len(num)<3: return [] num.sort() result=[] for i in range(len(num)-2): left=i+1 right=len(num)-1 if i!=0 and num[i]==num[i-1]:continue while left<right: if num[left]+num[right]==-num[i]: ...
[ "noreply@github.com" ]
Ellammaldevi.noreply@github.com
f27cf061a35c0d3ad1ffbc522afd84a22c8a66b7
f033eb0842aa3c4ec9fbc4887e72d06db148744a
/Craigslist/craigslist.py
2520ae1504170e895d60543ee29cac6ade238b66
[]
no_license
abdulhafiz005/Web-Scraping-Projects
dceb263137052d7ee4eee813943586e9d98b0a66
acc94f18a38c948fd7b46dd9a0546a606fdee97a
refs/heads/main
2023-04-12T08:20:06.292513
2021-04-24T11:40:58
2021-04-24T11:40:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,791
py
from selenium import webdriver import csv try: gig_or_job = str(input("Enter Type (job or gig) : ")).lower() keyword = str(input("Enter Keyword : ")).lower() if gig_or_job == "job": gigjob = gig_or_job gig_or_job = "jjj" elif gig_or_job == "gig": gig_or_job = "ggg"...
[ "noreply@github.com" ]
abdulhafiz005.noreply@github.com
28038791be273c9ba40bc2b50d9cd82332126a7f
b05ec9af3bd888d69056b192a4d15118d57dea06
/algos/List/KthSmallestInSortedMatrix.py
2408ad2e709437a0258e2af08f9461e443d309e9
[]
no_license
nitinworkshere/algos
5b6d2979d4af3dbcd54d45ae9a6722ea9e054ef0
9a8f3cc92bb8d0f153b82af47f19b6bced7d2163
refs/heads/master
2021-01-04T21:01:51.553315
2020-04-26T09:21:08
2020-04-26T09:21:08
240,758,577
0
0
null
null
null
null
UTF-8
Python
false
false
890
py
from heapq import * def find_Kth_smallest(matrix, k): minHeap = [] # put the 1st element of each row in the min heap # we don't need to push more than 'k' elements in the heap for i in range(min(k, len(matrix))): heappush(minHeap, (matrix[i][0], 0, matrix[i])) # take the smallest(top) el...
[ "nsharma1@expediagroup.com" ]
nsharma1@expediagroup.com
41dbed6a198b8c3da58395694c1a0decef96ab91
dfacc537678799d69f2cbba5a7841991d67ef8c9
/PythonSelFtamework/TestData/excelDemo.py
6fbc8145b61c69e4b5626edd7215b7ede6405444
[]
no_license
liby07/GitDemo
9f4165f4cc665f21e11773e2c3ddc3dd28bf5cae
f56fef7ea989185b9197f76bc5112586b76626da
refs/heads/master
2022-09-11T17:20:23.251544
2020-05-27T08:39:31
2020-05-27T08:39:31
266,838,554
0
0
null
null
null
null
UTF-8
Python
false
false
1,284
py
import openpyxl book = openpyxl.load_workbook("//home//liby//Documents//exceldemo.xlsx")#go to the excel sheet Dict = {} sheet = book.active#to get the control on the active sheet in excel cell = sheet.cell(row=1,column=3)#cell starts with row and column as 1 print(cell.value)#to print that cell value sheet.cell(row=1...
[ "libyelsa795@gmail.com" ]
libyelsa795@gmail.com
7287bd809c049bf9525538a634f1b9f8bb262e56
866a3a0b02ad10ba7e0f4db18efd38a213b0e3c5
/18_0.py
b4b60322a0693c11ff34a160f7ce3c5641122b56
[]
no_license
SleepwalkerCh/Leetcode-
6da7f5859184ae86c6f16d10e3570f837f2508d6
9472b9dd388a8774339ecf9d8ff6cb61b7ea821f
refs/heads/master
2021-03-07T10:58:25.086406
2020-03-19T07:50:32
2020-03-19T07:50:32
246,260,919
0
0
null
null
null
null
UTF-8
Python
false
false
749
py
#18. 4Sum18 # 很简陋的做法,大概率会超时,在O(n^4)基础上做了一些小优化,但是结果未进行查重 # WRONG ANSWER class Solution: def fourSum(self, nums: List[int], target: int) -> List[List[int]]: nums.sort() result=[] print(nums) for i in range(len(nums)-3): for j in range(i+1,len(nums)-2): for k...
[ "1024089291@qq.com" ]
1024089291@qq.com
7f67dde5b6e417fe0dc4e508b315bb78e50a415c
f4f5bfdddcdc01c7089828d226dc84dede10d7ac
/myvenv/bin/easy_install
fa4231c86da506df3b9cebc9f9fbf7c7e95dec34
[]
no_license
GeekyA/GNDU-archives
96ca14bb8ff15599fc9fa8d58957f60b6d379aff
60e1dceb1e9f799a0c4e4c75459dc020723c4691
refs/heads/main
2023-06-10T05:08:55.896163
2021-07-02T09:58:20
2021-07-02T09:58:20
382,298,713
2
0
null
null
null
null
UTF-8
Python
false
false
255
#!/home/ansh/paperportal/myvenv/bin/python3 # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "anshchadha9211@gmail.com" ]
anshchadha9211@gmail.com
86bf0f79d75b1544c7ead77725b872593d3873e0
d771bf0a4eec3cd4c736322481cce9fe48b44ba5
/array_list.py
4c2aa57ed270f170ea019acea951173c72302d93
[]
no_license
aschwarz22/Alon_examples
15850b0de5233bb0257725e9f22a1fc1cb23038e
0043ed31d5fcec4926c6aea3b468d6f789fd8727
refs/heads/master
2021-01-21T17:47:06.614817
2017-07-11T16:35:48
2017-07-11T16:35:48
91,990,195
0
0
null
null
null
null
UTF-8
Python
false
false
3,450
py
#array list implementation #an Array is #a list containing an #array, which is a list #and length which is an int class Array: def __init__(self, array, length): self.array = array self.length = length def __eq__(self, other): return (type(other) == Array) and self.array == other.arra...
[ "noreply@github.com" ]
aschwarz22.noreply@github.com
f67fddbd470a25606bbf469aeacc8bedde9fba79
a5e7a2d28e3d91363214f4acb55ae78eed13351e
/myapi/admin.py
66105156f69fce6dd95a4309a053691f42cc068b
[]
no_license
bharath2408/django-api
229819b6a0abad084b79640c361c7153d896462e
b6399ba451b40e11ac0501bc707e0f8bc8f2a82c
refs/heads/master
2023-03-21T02:52:20.842614
2021-03-12T13:21:16
2021-03-12T13:21:16
347,053,975
1
0
null
null
null
null
UTF-8
Python
false
false
114
py
from django.contrib import admin from .models import Hero # Register your models here. admin.site.register(Hero)
[ "bharatha24kumar@gmail.com" ]
bharatha24kumar@gmail.com
f5048e620a1d249b16bfa06ee8a33bc414722ba4
9d831207b43422b40e54cf6258a29b2f92b66290
/src/boot_navigation/reports.py
9348679320e16ccddb3aafca90894e6209798d01
[]
no_license
AndreaCensi/yc1304
714e70e972e9ee31ac011bdb94a57a8ab568f853
0bc2b759423db7da73fac47572719a37a80fee0e
refs/heads/master
2020-06-04T12:52:10.902082
2013-07-19T07:00:49
2013-07-19T07:00:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,822
py
from .navigation_map import NavigationMap from .plots import plot_arrow_SE2, plot_arrow_se2 from contracts import contract from geometry import se2_from_linear_angular from reprep import Report, rgb_zoom, scale import numpy as np import warnings __all__ = ['display_nmap'] @contract(report=Report, nmap=NavigationMap)...
[ "andrea@cds.caltech.edu" ]
andrea@cds.caltech.edu
bfe3e09e2e17d37abb59cabfa4b61cd048efdd01
6c380e192bb672cb8165a36bbe18d0fdfa449acc
/1024.py
bd770123971fff51ce2cf332b587d865299ec288
[]
no_license
cjttkfkd3941/acmicpc
7ce6530358a1efed6a157e1b4cffc1f72bf33ffb
b7fd3de8b96d85d3d2c4b2956b1e4f6efc9a366b
refs/heads/master
2020-08-12T09:35:13.994367
2019-12-11T07:18:00
2019-12-11T07:18:00
214,740,069
0
0
null
null
null
null
UTF-8
Python
false
false
1,037
py
# 1024 수열의 합 a,b = map(int,input().split()) # a : 합의 크기, n : 합이 될 수열의 최소 갯수 for i in range(b,101): if i%2==1: # 갯수가 홀수개라면, 평균 기준으로 (-k,-k+1,...,0,...,k-1,k) 로 표현가능. # 즉 중앙값*i if a%i==0 and a//i-i//2>=0: print(" ".join(map(str,[a//i+j-i//2 for j in range(i)]))) brea...
[ "noreply@github.com" ]
cjttkfkd3941.noreply@github.com
be0ecab82cbe31811e9d6728895d71a849a6cc56
8643fc036c38e135cd0043a94ea368eb774a63a4
/localCopyDjango/dbApp/cheap_users.py
217b39dd58e3dc0c92da1eecfca9dbf64c2a4d4d
[]
no_license
shar-alamgir/restaurant-finder-2
4ab411a4c8402ff3887c559ab84ac01c7c8b1b0b
c3f1fd144cc57192090835303f50baf614a0bc18
refs/heads/master
2022-11-17T22:08:13.455021
2019-12-05T00:25:05
2019-12-05T00:25:05
216,942,927
0
2
null
2022-11-04T12:29:37
2019-10-23T01:36:42
Python
UTF-8
Python
false
false
527
py
from polls.models import User, Restaurant from polls import helper database = r"\Users\Marcus Cooney\Desktop\CS411\rf2\localCopyDjango\dbApp\db.sqlite3" conn = helper.create_connection(database) if conn is None: print("no conn established") sql = '''SELECT r.price_tier, COUNT(DISTINCT u.user_name) AS TotalUsers ...
[ "marcus.cooney1@gmail.com" ]
marcus.cooney1@gmail.com
478995ae08d50e8625c61409890afdaa49990940
d41d18d3ea6edd2ec478b500386375a8693f1392
/plotly/validators/layout/polar/angularaxis/_tickcolor.py
c767e805316121395caad30ece9326f5d675e0b8
[ "MIT" ]
permissive
miladrux/plotly.py
38921dd6618650d03be9891d6078e771ffccc99a
dbb79e43e2cc6c5762251537d24bad1dab930fff
refs/heads/master
2020-03-27T01:46:57.497871
2018-08-20T22:37:38
2018-08-20T22:37:38
145,742,203
1
0
MIT
2018-08-22T17:37:07
2018-08-22T17:37:07
null
UTF-8
Python
false
false
458
py
import _plotly_utils.basevalidators class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__( self, plotly_name='tickcolor', parent_name='layout.polar.angularaxis', **kwargs ): super(TickcolorValidator, self).__init__( plotly_name...
[ "adam.kulidjian@gmail.com" ]
adam.kulidjian@gmail.com
f61cbad149a6041d46ef51a5150141e5c8ef7cf0
af667f5a8a50ba8baf10fb7edc4093c6753195ff
/nlp_util/tools/count_errors.py
ec479f9856d934ea12f48699edcd3cb46954eed9
[]
no_license
jkkummerfeld/nlp-util
af033acf81245bcab444e92c56c64d4b2d1cf8e8
d919fc946805c30276879ff3f8adec6b94d4e25d
refs/heads/master
2020-05-17T06:55:20.728957
2015-03-26T10:27:12
2015-03-26T10:27:12
7,333,300
4
1
null
null
null
null
UTF-8
Python
false
false
3,353
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim: set ts=2 sw=2 noet: import sys try: from nlp_util import ptb except ImportError: raise Exception("Remember to either install nlp_util or set up a symlink to the nlp_util directory") def update_span_errors(gold_tree, test_tree, errors): gold_spans = gold_tree.get...
[ "me@jkk.name" ]
me@jkk.name
cb5e63e366e6f0d8b0698176f2fe69721aecc911
d2ff2498b609372599722d5ee66ef418606eb3b4
/analyze_tweets_json.py
1b1a4ec921c9b90c4085bf3ea456e1df58cdf1fa
[]
no_license
sandra-bohn/PythonCapstone
b82e7c82fac99e4571d3f373bd00082c93279a37
701fb496ed153fca0ab3fe9642594e8995c30b22
refs/heads/main
2023-06-03T23:02:15.386525
2021-06-21T02:20:02
2021-06-21T02:20:02
374,234,021
0
1
null
null
null
null
UTF-8
Python
false
false
6,178
py
""" This command line script retrieves tweets from a json file (filename) and calculates a series of metrics that are then saved to a report txt file (output). Metrics calculated: average_followers: the average number of followers for the tweeters of each tweet average_words: the average number of words in each tweet ...
[ "sandra.bohn@gmail.com" ]
sandra.bohn@gmail.com
c73ae77ac18bd3d3bd5970245667f5e8fd8b2471
6b6f68f507746e3e39b0e8789af5d044e27d6b0a
/Math/0204_CountPrimes_E.py
e266761a3e920a2ddefc2e292ae002021428d1b4
[]
no_license
PFZ86/LeetcodePractice
bb0012d8b3120451dda1745875836278d3362e45
6db9db1934bc0a8142124d8b56bf6c07bdf43d79
refs/heads/master
2021-08-28T08:43:27.343395
2021-08-17T20:38:32
2021-08-17T20:38:32
230,925,656
1
1
null
2021-08-17T20:38:32
2019-12-30T14:01:27
Python
UTF-8
Python
false
false
1,430
py
# https://leetcode.com/problems/count-primes/ # Solution 1: the naive method, time complexity O(n^{1.5}) class Solution(object): def isPrime(self, num): if num <= 1: return False i = 2 # Use i*i <= num as the ending condition; # do not use the expensive functi...
[ "pengfeizang@pengfeis-iMac.fios-router.home" ]
pengfeizang@pengfeis-iMac.fios-router.home
02e2cc0a85d56baaa51d6125246a02493b381b8d
a10d867045c0629648d9c6406a0d2736e4cfdd1d
/testchild.py
c2b4a5f523552fb5c30fb9c7c603c28cc8e5cec8
[]
no_license
camillehtle/testrepo
19c44311dc25bfb827b073e470b21e8e635cd657
7314fa3f61bfd557b08831969218d7af107cf78b
refs/heads/main
2022-12-29T15:43:01.084048
2020-10-15T04:44:23
2020-10-15T04:44:23
304,203,990
0
0
null
2020-10-15T04:48:31
2020-10-15T03:53:18
Python
UTF-8
Python
false
false
68
py
## Adding a new file in child branch print ("Inside Child branch")
[ "noreply@github.com" ]
camillehtle.noreply@github.com
80acaa76b1c315f7ec505e16025639f6206d048b
9a5bdc52dd518212dca57515c2cc89252b7641b8
/feedback/admin.py
d2e1065a487973b982aa2ba00435c36793ef42a7
[]
no_license
sheimi/oedu
5009d324f2938fad8f7e4edf664e864ba609dbd2
d18ce9b5175793321d2dff9876a47cd57595ed40
refs/heads/master
2016-08-02T20:42:15.428913
2012-02-19T03:42:20
2012-02-19T03:42:20
3,483,011
0
1
null
null
null
null
UTF-8
Python
false
false
179
py
''' Created on Apr 17, 2011 @author: sheimi ''' from Oedu.feedback.models import Feedback from django.contrib import admin # Re-register UserAdmin admin.site.register(Feedback)
[ "sheimi.zhang@gmail.com" ]
sheimi.zhang@gmail.com
7220d2c71f026f768b003347430670f8bafceab5
9321d3460ffbbb6cd7917b2bac77ce8321e04737
/contributions/Legacy/MOO/optimization/master/master_to_slave.py
d57ff0e707a482d8afa58f4b3774b4524cec5be3
[ "MIT" ]
permissive
muehleisen/CEAforArcGIS
b820d837cd5373b95851b4e5dda609d69f054b97
b6aeca5a9d70835381625a9162d5695714e1a02b
refs/heads/master
2021-01-11T21:24:18.482264
2017-01-06T05:28:48
2017-01-06T05:28:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,673
py
"""Data required for Slave from Master""" """ This File sets all variables for the slave optimization, that have to be set by the Master """ #import os #Energy_Models_path ="/Users/Tim/Desktop/ETH/Masterarbeit/Github_Files/urben/Masterarbeit/EnergySystem_Models" #Network_Raw_Data_Path = "/Users/Tim/Desktop/ETH/Mastera...
[ "fonseca@arch.ethz.ch" ]
fonseca@arch.ethz.ch
d364a514127247742d43f012ec5b553a968c4bf0
f4dd8aa4e5476ffde24e27273dd47913c7f9177a
/Dlv2_safe2/tests/parser/range.3.test.py
5291d84363c7b37476ea8dd1fa8f8da8958c4baa
[ "Apache-2.0" ]
permissive
dave90/Dlv_safe2
e56071ec1b07c45defda571cb721852e2391abfb
f127f413e3f35d599554e64aaa918bc1629985bc
refs/heads/master
2020-05-30T10:44:13.473537
2015-07-12T12:35:22
2015-07-12T12:35:22
38,256,201
0
0
null
null
null
null
UTF-8
Python
false
false
373
py
input = """ %#maxint=10. f(a). % intuitively, one could expect: g(4). g(3). g(2). here % but this does not produce any g(): %g(4..2). %h(1..3). f(b). intersect(X) :- g(X), h(X). """ output = """ %#maxint=10. f(a). % intuitively, one could expect: g(4). g(3). g(2). here % but this does not produce any g(): %g(4..2...
[ "davide@davide-All-Series" ]
davide@davide-All-Series
a4a356bdeda1f7f955d85e318b4b972ade972cca
8471aa5d1371b66db99b2e45626e14bedd0864ff
/Lesson22/implementing_Urank.py
8896683406e63c634388af2ea66200646cee923d
[]
no_license
dodoph/udacity-homework
73e6fa8211e8b9fe78ee20cc5c71d06121a0d357
19840a9da77616287b27f65f09322dcbd666d929
refs/heads/master
2021-05-23T05:34:07.700361
2017-10-23T22:30:00
2017-10-23T22:30:00
95,080,728
0
0
null
2017-10-25T22:30:02
2017-06-22T06:08:45
Python
UTF-8
Python
false
false
4,235
py
# Modify the crawl_web procedure so that instead of just returning the # index, it returns an index and a graph. The graph should be a # Dictionary where the key:value entries are: # url: [list of pages url links to] def crawl_web(seed): # returns index, graph of outlinks tocrawl = [seed] crawled = [] g...
[ "tangqiaojie@hotmail.com" ]
tangqiaojie@hotmail.com
8813d680689bf5909ca803482bf42fdb4a42e538
6ac59bab1070d62fdc41668e885df9b2711cf3ed
/ninja_gold/ninja_gold/urls.py
9008d02b4e26130c760009c8808d9e1c254fec5a
[]
no_license
cquinsay/ninja-gold
c92991dae3b65863189cc571ce79b1e767afc135
7cabafaf64287d28e00f79ce6eb1d7c4aadeed81
refs/heads/main
2023-03-09T11:37:33.441296
2021-01-23T06:02:00
2021-02-25T19:25:24
342,355,100
0
0
null
null
null
null
UTF-8
Python
false
false
806
py
"""ninja_gold URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-ba...
[ "cquinsay@gmail.com" ]
cquinsay@gmail.com
30facaf621eca42015de84866c2d5c3e70636283
73c3a8c7fbc308f0fbface220c40f6a96ad75de4
/PythonCode/Monthly_Coding_Challenge/May2020/OnlineStockSpan.py
bee0e9fac6cbcfb6995e0c9bb81c521a5adcbd86
[]
no_license
Vixus/LeetCode
7fc693606f8f7066d321fc6c2b13c8884770a4d0
6eea06920923a59d081b6d73baae992bb6363fe6
refs/heads/master
2022-12-19T09:58:05.815728
2020-09-26T06:27:11
2020-09-26T06:27:11
263,466,799
0
0
null
null
null
null
UTF-8
Python
false
false
1,590
py
from typing import List from collections import Counter class StockSpanner: """ Write a class StockSpanner which collects daily price quotes for some stock, and returns the span of that stock's price for the current day. The span of the stock's price today is defined as the maximum number of consecutive d...
[ "vixus7@gmail.com" ]
vixus7@gmail.com
5ac6bb0b7e9b88f4f929ade58c1f69f32bbdda68
61a3cba75de7f6da049bcf34343b9839291bda75
/mrjob/conf.py
1536217cf2186e0724b02dce429b8aad1effa0da
[ "Apache-2.0" ]
permissive
joshuamckenty/mrjob
b309ed094945b24a471fa8214bb10d35e364a65a
f24991ffae9e7a2dad9fd3403d5e96635ededa4a
refs/heads/master
2020-12-24T15:22:45.869655
2010-10-28T18:07:00
2010-10-28T18:07:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,079
py
# Copyright 2009-2010 Yelp # # 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, softwa...
[ "dave@yelp.com" ]
dave@yelp.com
ec870e9d44656ae8aa261bf43bbff5bf6f2e40ca
35c251c0d08dfb6e6bf8b6f9185715acf7fcc708
/kopper/wsgi.py
a38e8c45d619d871c4fe601cefffd4507b2bf73b
[]
no_license
bencord0/kopper
5aa1da91b0cb83284f8730fd42bb342249e064b9
ba92fb7ab9af9a0a36a37a7f33b013ceb63a833b
refs/heads/master
2023-08-10T10:00:39.198779
2018-07-20T13:17:30
2018-07-20T13:17:30
141,713,007
1
0
null
2023-07-25T19:03:59
2018-07-20T13:05:48
Python
UTF-8
Python
false
false
466
py
""" WSGI config for kopper project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application from raven.contrib.django.raven_compa...
[ "bencord0@condi.me" ]
bencord0@condi.me
e566b9b3e1a0d6bb0ae9735acade8fe07273ef65
ad19334875b416482321ebdf696fb7fdd09a5ee9
/TestProperty.py
880c6d8c9832f6069085b71d9f1fb04f7944126b
[]
no_license
Yugnaynehc/ProGit
5d352303c8bb62789ff9e13bebdfbf81c728b721
89fbffe1acff749535e24a9bd304b0b7553f44c9
refs/heads/master
2021-01-10T21:28:09.697507
2013-04-07T12:58:07
2013-04-07T12:58:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
444
py
import math class Circle(): def __init__(self, radius): self.radius = radius def setRadius(self, radius): self.radius = radius @property def area(self): return math.pi*self.radius**2 def getArea(self): return math.pi*self.radius**2 if __name__ == "...
[ "cyyyyc123@hotmail.com" ]
cyyyyc123@hotmail.com
2237847fbef7495c512cc4733e27c3ae0a900010
280a6a852aa362837bec5934f17bdecd7dac079e
/cls_project/rosters/migrations/0007_auto_20170927_1659.py
e982d1233341bff1ee72798e5bb7b008be279ca1
[]
no_license
st-carr/lacrosse
994c6774f5ae89f722bf833db0c95021c21289a6
0bec04d0fdf0873c77f2a29289fc07b23a614da5
refs/heads/master
2021-08-07T18:07:26.859009
2017-11-08T16:48:27
2017-11-08T16:48:27
106,190,342
0
0
null
null
null
null
UTF-8
Python
false
false
628
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-09-27 16:59 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('rosters', '0006_auto_20170927_1634'), ] operations = [ migrations.AlterFiel...
[ "scarr087@gmail.com" ]
scarr087@gmail.com
5790715ad543f7194d4f8d205d14d03b63bba8e1
c4ad713c7d297fdf82701087ade8ae3a2b4027dd
/apps/users/migrations/0002_auto_20180725_2007.py
4f10b70d20424fbaf75bf143a1491fbfba45296b
[]
no_license
0xouzm/MxOnline
ea3d096945c6db4506a2bff17be0a8b4f724c373
ed6bf84406776b1b4da6ccbac370b654f0a0c6c6
refs/heads/master
2022-08-01T19:55:37.508890
2018-10-16T05:57:05
2018-10-16T05:57:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,083
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.8 on 2018-07-25 12:07 from __future__ import unicode_literals import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.Create...
[ "344387990@qq.com" ]
344387990@qq.com
10eabb97905160f97aa772471f67a978cc4678f6
e7029532cd85ba412539e4721548d6f968d0ab0f
/manage.py
a803e18bf518f88959e1f8e79f4cd2d8114a7cf6
[]
no_license
MarianaCarlo/djangoPracticeProyect
da815870b47d756750064523f528124420a5096d
e90d6855822c8e370e3d9b81ce9d230b296743cd
refs/heads/master
2021-04-13T02:13:18.855221
2020-03-22T06:42:27
2020-03-22T06:42:27
249,127,727
0
0
null
null
null
null
UTF-8
Python
false
false
633
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djangoYouTube.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ...
[ "luzmarianacarlo1999@gmail.com" ]
luzmarianacarlo1999@gmail.com
c15199f76236b5e1a4aa7c00237e9015dab2015a
9c9512d92f4693a40e80e2dc8df9a74ef34a9b02
/archive/fibcoll_cmass_pm.py
0bf73edf6ea47071ec8819e7d74dcb28dacd6166
[]
no_license
changhoonhahn/FiberCollisions
9184600bbd596f861755425c46b311b2ab342af5
ee0bfab26cc0167982822d8bc5c5654eaccbe2ef
refs/heads/master
2021-01-18T21:19:12.457250
2017-01-31T20:33:29
2017-01-31T20:33:29
34,329,426
0
0
null
null
null
null
UTF-8
Python
false
false
3,587
py
import numpy as np import pylab as py from scipy.integrate import simps from scipy.optimize import curve_fit from matplotlib import rc rc('text', usetex=True) rc('font', family='serif') prismdir = '/global/data/scr/chh327/powercode/data/' disp_los = np.loadtxt(prismdir+'cmass-dr11v2-N-Anderson-disp_los_pm.dat') disp_...
[ "chh327@nyu.edu" ]
chh327@nyu.edu
f21a448845a57fd7ddf812f9727972ee1fc395d4
bb22a21be033951e22b987437a53492230e42177
/truegaze/plugins/adobe_mobile_sdk.py
8acb391e4e47aabe07cfe2cf174247720a552463
[ "Apache-2.0" ]
permissive
SeppPenner/truegaze
ae2e6ceadc3358d9359701a0522a9da0667208bc
2683ed317cf700f95e49934738b80153b1764446
refs/heads/master
2020-07-08T06:55:16.955905
2019-08-21T03:25:26
2019-08-21T03:25:26
203,599,343
1
0
null
2019-08-21T14:17:39
2019-08-21T14:17:39
null
UTF-8
Python
false
false
4,395
py
# # Copyright (c) 2019 Nightwatch Cybersecurity. # # This file is part of truegaze # (see https://github.com/nightwatchcybersecurity/truegaze). # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional inform...
[ "research@nightwatchcybersecurity.com" ]
research@nightwatchcybersecurity.com
b68b7e14f09c7cdcf1d4e14991aaea2461b218bd
e986ebbf73a6dff7ccc58feb886e54afa57e49d9
/sdk/python/pulumi_awsx/_utilities.py
83985732e9f67955c5ab392bc27761660f9323b9
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
pulumi/pulumi-awsx
5a5bdd77afaa674e9a5dd9f26540ddea5a1cde1c
45136c540f29eb3dc6efa5b4f51cfe05ee75c7d8
refs/heads/master
2023-09-01T21:47:40.877155
2023-08-24T04:14:12
2023-08-24T04:14:12
132,053,036
186
107
Apache-2.0
2023-09-13T07:28:54
2018-05-03T21:46:28
TypeScript
UTF-8
Python
false
false
8,056
py
# coding=utf-8 # *** WARNING: this file was generated by pulumi-gen-awsx. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib.util import inspect import json import os import pkg_resources import sys import typing import pulumi import pulumi.runtime from semver impo...
[ "noreply@github.com" ]
pulumi.noreply@github.com
781fc0cb9aa39faf90aca74ea777958b13b39322
4d55081635a0d90d7401d88ac54bbcc01c85dd12
/modules/loan_requests/migrations/0001_initial.py
59fbeb4f5a52833ffc175e017f8718941ea5254b
[]
no_license
esquonk/loan_requests
efec1dea3f02e0194a2ff1c4d171bc7edc7f9970
52ac0a8f32f34aed930316264155129e85f86c05
refs/heads/master
2021-01-12T00:31:55.159054
2015-02-11T02:13:13
2015-02-11T02:13:13
78,738,103
0
0
null
null
null
null
UTF-8
Python
false
false
4,896
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings import loan_requests.fields class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations =...
[ "esquonk@gmail.com" ]
esquonk@gmail.com
d77805e81015050be4124c44545ac3ed14fa8d34
fd13ecbe1f753a960553a73aa3d1aaa3b28cafc5
/Preproceessing+autoencoders/randomForest.py
96dbfc94304cdbbbaf8354a3e324a50572d0b689
[]
no_license
zbxzc35/genetic-algorithm-for-cnn
1324cb046a65ba2ec90017b275979366ad118579
8cd60c97d5a53ddec0e5eb20eb4a54d25ebb682f
refs/heads/master
2021-01-16T20:01:42.810087
2016-05-28T20:52:05
2016-05-28T20:52:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,444
py
#!/usr/bin/env python import os import sys sys.path.append(os.path.join(os.path.dirname(__file__), "../")) import recognizer.data as data import numpy as np from keras.models import Sequential from keras.layers.core import Dense, Dropout, Activation, Flatten from keras.layers.convolutional import Convolution2D, MaxPool...
[ "deerishi@gmail.com" ]
deerishi@gmail.com
dbbeac41b617618cfc8f39cd2548e64d05349f60
9dca2a9952a81ee740e0cc37b137d994b7464f82
/day_04/for_12.py
53d46523c8a77ea52f6a2d6cf87abe9eb660547e
[]
no_license
roconthebeatz/python_201907
8558d11e3c5e521f6814dcbc127ff1507c9ca7a7
4515d695ebf49fb95a16d0c049ad4982941113c3
refs/heads/master
2020-06-29T05:50:05.275691
2019-08-04T05:41:30
2019-08-04T05:41:30
200,455,450
1
0
null
2019-08-04T05:52:04
2019-08-04T05:52:03
null
UTF-8
Python
false
false
936
py
# -*- coding: utf-8 -*- numbers = [11, 22, 33, 44, 55] # numbers 리스트의 요소 중 홀수인 요소에는 10을 곱하고, # 짝수인 경우에는 원본 데이터 그대로 유지하여 # numbers_copy 리스트를 생성하세요. # 일반적인 반복 코드를 사용하여 처리하는 예제 #numbers_copy = [] #for data in numbers : # if data % 2 == 0 : # numbers_copy.append(data) # else: # numbers_...
[ "noreply@github.com" ]
roconthebeatz.noreply@github.com
c4674a7fdc765d2349e6a916e2744d418ebef5eb
97f2852420d6fdc98e5a4a0321c35920ff070d41
/examples/scripts/csc/cbpdn_ams_clr.py
9b7714d8854ec1722a6998cd4d1d3d001830f1ee
[ "BSD-3-Clause" ]
permissive
eglxiang/sporco
93595f3afb6acda758425f7332513eeb892fa51f
e4a716b32b675d6e23ba0bfc3b2d7c6f9bc5d7a3
refs/heads/master
2021-05-04T23:03:57.430340
2018-01-19T19:03:01
2018-01-19T19:03:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,460
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # This file is part of the SPORCO package. Details of the copyright # and user license can be found in the 'LICENSE.txt' file distributed # with the package. """ CSC with a Spatial Mask ======================= This example demonstrates the use of :class:`.cbpdn.AddMaskSim...
[ "brendt@ieee.org" ]
brendt@ieee.org
4a77c73597a49387cc61a1fea49a566acbb90bf4
9277d91eaf9ad0634402220c5cb62f3664347c38
/main.py
078dca7dc39dab794007a958fd5a8ef3b5880519
[]
no_license
ngtrang/GANbot
6387a76b1f9d00276c9ef0274a69a918c9f95b02
65f637b5f25101250093a86f6c1148c04fad2af8
refs/heads/master
2020-03-28T04:34:35.535581
2018-09-06T20:34:54
2018-09-06T20:34:54
147,723,595
0
0
null
null
null
null
UTF-8
Python
false
false
2,087
py
import os import argparse from solver import Solver import torch parser = argparse.ArgumentParser(description='SeqGAN in pytorch', epilog='#' * 75) parser.add_argument('--gpus', default='', type=str, help='gpu to use: 0, 1, 2, 3, 4 or 0,1,2. Default: cpu') parser.add_argument('--lr', default=0.1, type=float, help='lea...
[ "m.trang91@gmail.com" ]
m.trang91@gmail.com
02256d1be416fd37e092a3e263c29dcedad1ef63
78a15793be1ba71ea7eecee33abef4ecbe11d8f2
/apps/users/migrations/0016_auto_20151102_1457.py
5a3e982e5c71bdaae3706ce02e4d2db9cbd42842
[]
no_license
teresaylin/my2009
f5df9c62492d4c88931f6aa45af31ee88dbe3a1a
2486750ad73df313d596497b0eb7f4c47518e6a6
refs/heads/master
2021-03-21T23:53:55.581074
2016-06-01T18:13:44
2016-06-01T18:13:44
23,392,283
0
0
null
null
null
null
UTF-8
Python
false
false
870
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('contenttypes', '0001_initial'), ('users', '0015_auto_20151102_1456'), ] operations = [ migrations.AddField( ...
[ "jam.hann@gmail.com" ]
jam.hann@gmail.com
0c6541786ff6365db969ed0db3a73128b1d88a7e
ea6262cd7d8195df9bc14bd7edc89e82aa7d4c43
/clase3/Ejercicio2.py
2473a4de930d3d739291315b6e77ca739a9b0eca
[]
no_license
lrcortizo/ALSexercises
f00304c80d1cfc30c0baab8b131dc8c294a3d9d3
fa52c82bed488a42ee971a8917ed301a1d7ac257
refs/heads/master
2021-09-21T09:09:00.336762
2018-08-23T10:26:56
2018-08-23T10:26:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
502
py
def f(texto): d = {} line = texto.split("\n") line1 = line[0].split(", ") for x in range(1, len(line1), 2): d[line1[x]] = line1[x-1] for x in range(1, len(line)): print(line[x].replace(line[x][0], d[line[x][0]], 1)) texto = "Microsoft, 1, Apple, 2, Google, 3, Yahoo, 4\n1, 2015-01-09,...
[ "luisraco95@gmail.com" ]
luisraco95@gmail.com
f5162f2536034ea5985077bdda69c77b3baf5542
8d61b66755310d4e17efe33ded502ad0d88dec62
/flaskblog/__init__.py
a1ec0f704d0d0f0644ca6d7febb679533355dd22
[]
no_license
githlearner/BlogPosts
d865d23b72fc2d08ad4445aeffda2a5d58098729
a6cf20fbd489a19efab547dd001a7debc42cd646
refs/heads/master
2020-04-20T04:55:46.160815
2019-02-17T14:11:30
2019-02-17T14:11:30
168,642,844
0
0
null
null
null
null
UTF-8
Python
false
false
808
py
import os from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_bcrypt import Bcrypt from flask_login import LoginManager from flask_mail import Mail app = Flask(__name__) app.config['SECRET_KEY'] = '851c97bbf386024ca976668627197702' app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///site.db' ap...
[ "githinvgeorge@gmail.com" ]
githinvgeorge@gmail.com
fdd8667260b4e5165b12fca643731f21d015e6f1
bdc40647061899204712721adaf3c8940bd846d4
/bayes.py
b36e8aa15bb63af27ae80c5b2a9f16c8a4817737
[]
no_license
HankyungKo/machine_learning
fcce53935d3dcdc82928ae2be47ec666f573c2a2
152e04d122d34e309be81240180c97805bb498bf
refs/heads/master
2021-01-17T21:07:07.202207
2016-07-25T07:41:29
2016-07-25T07:41:29
64,113,838
0
0
null
null
null
null
UTF-8
Python
false
false
576
py
def main(): sensitivity = float(input()) prior_prob = float(input()) false_alarm = float(input()) print("%.2lf%%" % (100 * mammogram_test(sensitivity, prior_prob, false_alarm))) def mammogram_test(sensitivity, prior_prob, false_alarm): p_a1_b1 = sensitivity # p(A = 1 | B = 1) p_b1 = prior_pro...
[ "noreply@github.com" ]
HankyungKo.noreply@github.com
5c01fb0af38a0c80e3135d255e11b555288597a6
96a8714aa1f0d2d7a38d7ed6dfd29f53626f8e41
/Ecommerce_Project/App_Payment/migrations/0001_initial.py
0d32244a35f141d280741719435889f0f6dbd70e
[]
no_license
bridgecrew-perf7/python-deployment
0ab69330fc1ed230d5219e7a58c58592fc0512ed
dc4c234f714026b0999237cfc622df133d02e75e
refs/heads/master
2023-08-22T02:33:37.552849
2021-10-19T06:27:48
2021-10-19T06:27:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,078
py
# Generated by Django 3.2.7 on 2021-10-07 06:02 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
[ "fahimce18020@gmail.com" ]
fahimce18020@gmail.com
b15d47124b412360b92c07a988c45dc35fc9cb85
751bf9adadfa9d1a0fb5af02bcd94eed7277849c
/conftest.py
fc8a0eb026c25b62cf6d579c42d389b20399624c
[]
no_license
dmsabel/selenium_complete_guide
4eb5c31202b4dbc6d9d2edc2326c4c20cb265332
0d5be866985a5095a079f8ed91afa263487b65d4
refs/heads/master
2022-11-13T21:23:06.992032
2020-06-26T17:52:36
2020-06-26T17:52:36
267,315,302
0
0
null
null
null
null
UTF-8
Python
false
false
1,180
py
import pytest from selenium import webdriver from application import Application @pytest.fixture() def app(request): def teardown(): fixture.wd.quit() try: fixture = Application(request.param) except AttributeError: fixture = Application() request.addfinalizer(teardown) re...
[ "Dmitriy.Sabelnikov@rt.ru" ]
Dmitriy.Sabelnikov@rt.ru
41003197a8029e2bdd2fb2389695572510a70bda
76e9afdf16eabcc9e1a3facd308e56362112efc4
/plot/lossplot3.py
22ff012e1ffa7ab7c93816de25e1713f6ecdc95c
[]
no_license
rerejii/pwb_work_2021
c65c5e787ad98b7d847cb63ebadc24a02f001e90
8ecfb2a98d9d396ed505ecc939e384cf6400412d
refs/heads/main
2023-03-30T10:43:18.115386
2021-03-24T05:38:41
2021-03-24T05:38:41
350,954,969
0
0
null
null
null
null
UTF-8
Python
false
false
755
py
import os import glob import csv import sys import numpy as np import pandas as pd from natsort import natsorted import matplotlib.pyplot as plt # import matplotlib markset = ['A', 'B', 'C', 'D', 'E', 'F'] for mark in markset: csv_path = 'Z:/hayakawa/binary/20210227/unet_use-bias_beta/unet_use-bias_beta-'+mark+'/C...
[ "hayakawa.shinya.kochi@gmail.com" ]
hayakawa.shinya.kochi@gmail.com
4255372facaf9a7101262b53db5d91bb11fa70e9
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/103/usersdata/222/50669/submittedfiles/av1_3.py
a078720d7ccf91267555d632f67ab1c0ab99e466
[]
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
188
py
# -*- coding: utf-8 -*- import math a=int(input('a:')) b=int(input('b:')) r=1 resto=1 cont=0 while r>0: r=a%b a=b b=r cont=cont+1 resto=resto+1 print(resto) print(cont)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
951f433acec27ae7970c718810065a209f4c17b4
c2602ec4c504914c0831ab061b6cee779be344a2
/python/aead/kms_envelope_aead.py
ba9b8f25dc2ed14a763e30b393d4095f7add5406
[ "Apache-2.0" ]
permissive
shigakio/tink
85f8da6033139154528bf00bdadd8f3f800f6223
a61aaeeb5da223357b5ec3513231bc8e493a4ac1
refs/heads/master
2021-02-06T14:41:38.074226
2020-02-20T06:18:02
2020-02-20T06:18:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,463
py
# Copyright 2020 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
396b0ff072a91509334183b26c67621108dbc34c
e79cbb0263459ac6842c8e6d74c34fc50e0c50df
/venv/bin/chardetect
64c47d75a5503845d08f66305fb22b394bf53be4
[]
no_license
sriniakhil13/fetch_youtube_video
2406d0c97ffbc1489a99543586eb270573a9c07c
082ba1123a6c3bea866e7bda82fbec32a7fd9f47
refs/heads/main
2023-03-25T08:03:04.856740
2021-03-23T12:02:19
2021-03-23T12:02:19
350,690,670
0
0
null
null
null
null
UTF-8
Python
false
false
276
#!/Users/sriniakhilgl/PycharmProjects/fetch_youtube_video/venv/bin/python # -*- coding: utf-8 -*- import re import sys from chardet.cli.chardetect import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "sriniakhil13@gmail.com" ]
sriniakhil13@gmail.com
28092363189055508902a6a5c0f2d91bdbd1ce62
c065ff2a6a377aea2303b7b8482558049958a7ec
/shoe/1562059380/tactile.tac
cd120fe362dfa9c3097804be7f1c3def6e34d680
[]
no_license
waedbara/vision2tactile
7bc9861eecb4247fd254ea58dc508ed18a03b1af
edbc9dfee61b4a4b1f0caebb2f16faef090dff32
refs/heads/master
2022-04-02T20:43:16.621687
2019-12-11T08:07:39
2019-12-11T08:07:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
290
tac
,3632,3750,3712,3742,3519,3722,3759,3345,3575,3584,3489,3674,3255,3344,3162,3038,3148,2864,2829,2696,3728,3718,3659,3515,1999,2024,1896,2125,2652,3265,3474,3326,3423,3297,3090,3153,3077,2165,2254,3127,3435,3151,3294,3310,3224,3297,3235,2820,2675,3464,3467,3457,3360,2046,2061,2965,2037,2463
[ "brayan.inf@gmail.com" ]
brayan.inf@gmail.com
5cc22cbff16ea64707ce2511eef96003aec9056c
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_173/ch161_2020_06_15_19_32_40_555261.py
a28363ec0ee02b8ca4432c1e1eb5d32ebf08b4a3
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
286
py
def PiWallis(elementos): numerador,denominador = 2,1 i = 0 mul = 1 while i < elementos: mul*= numerador/denominador if i%2 == 0: denominador += 2 else: numerador +=2 i+=1 oi=mul*2 return oi
[ "you@example.com" ]
you@example.com
0042cd7ad97726820014cb8b6a3f087d560913d2
b41da6f351f27bf0d45a4e4d0e1be8f3a86f4b64
/itsybitsy/leetcode/sliding_window.py
2ddaef9a489cf95fe6af1b0a16bd1c8ef0f3cf44
[]
no_license
santoshr1016/WeekendMasala
a5adbabe0b78cde567667376d7ddf05bb505a0ff
e099f9ac9677f7acb8faf620af94a06d76cae044
refs/heads/master
2020-03-26T00:26:32.649429
2019-08-30T07:32:24
2019-08-30T07:32:24
144,320,624
0
0
null
2019-06-03T23:08:00
2018-08-10T18:36:38
Python
UTF-8
Python
false
false
278
py
def sliding_window(nums, k): size = len(nums) - (k-1) op_list = [] for i in range(size): op_list.append(max(nums[i: i+k])) print(op_list) return op_list nums = [1, 3, -1, -3, 5, 3, 6, 7, 7, 8, 1, 34, -9] k = 3 rv = sliding_window(nums, k) print(rv)
[ "santosh.ratnala@acquia.com" ]
santosh.ratnala@acquia.com
700c496a84a90d5c782ada2ec88467c3c5ab4266
a913309bda87feee7f0637cb73901b4bcdca44bd
/0x0C-python-input_output/2-read_lines.py
a37333dfcb5deb5dd181b3116277abe6647cebde
[]
no_license
KamalTaleb/holbertonschool-python
e77b4f88a7ae60db158c0defa6c3f7737ad96562
29ffbccf1d02c7cf76a5df04d9386105dc149a81
refs/heads/master
2023-01-20T20:24:32.388729
2020-11-26T12:22:57
2020-11-26T12:22:57
292,331,337
0
1
null
null
null
null
UTF-8
Python
false
false
436
py
#!/usr/bin/python3 """read lines""" def read_lines(filename="", nb_lines=0): """ read_lines """ line_number = 0 with open(filename, 'r', encoding='utf-8') as f: for line in f: line_number += 1 if line_number <= nb_lines and nb_lines > 0: print(line, ...
[ "kamal.talebb@gmail.com" ]
kamal.talebb@gmail.com
2d8214e4e74735466bb051a1cc5f75bca439b571
331056b911828f4e8b380b4989f5e64d866d18e2
/UI/UI.py
8443ed013bf058985f957e06ce187e6cd7ebac98
[]
no_license
dazzlezac/PushChess
1a18d01d4675df11a2aa993a109cf3713bfa1685
0c7b8af64e12f8ee9bb4ab656d47d82072d8498e
refs/heads/master
2020-04-05T11:31:10.981335
2018-11-06T03:35:02
2018-11-06T03:35:02
156,319,310
0
0
null
2018-11-06T03:17:22
2018-11-06T03:17:22
null
UTF-8
Python
false
false
77
py
import os import pygame import Board.Cell as cl import Board.Pieces as p
[ "michaelostower@gmail.com" ]
michaelostower@gmail.com
3b1091ba6d1872f74503316ea59fbed897d869ac
218fd310ba0ef1292c6f00ea9a8685d10fb8a7dd
/jtr/jtr.py
b5019cc83e274d03ec29470de342f8b5952c603b
[]
no_license
alex-dow/jenkins-test-repo
6ccab9d3ea594b5e414b5dc8ea5b387b7fb74a64
cb4b4016cad436b732e4c1c67880eb6ea8b342dd
refs/heads/master
2021-05-04T10:47:44.649727
2017-07-15T06:59:24
2017-07-15T06:59:24
36,965,470
0
0
null
2017-07-15T06:59:25
2015-06-06T03:08:17
Python
UTF-8
Python
false
false
127
py
def _add(a, b): return a+b def _mult(a, b): return a*b def _div(a,b): return a/b def _sub(a,b): return a-b
[ "v0idnull@localhost" ]
v0idnull@localhost
883138040abd6bbc8d9e075ad2a4582850927080
8c19557c69cbdabed0167ba850ca17836bb5abc0
/mdfy_W_fxns.py
38abbd2f8d2ba7f96d7b896b0f7942435956e2c5
[]
no_license
graceyng/connectome_modeling
8e3bf3de11b998bc594e997a879fddfbe097b7a2
d5124dc8d4148d52fed2a08f97b9c980b2d06093
refs/heads/master
2020-06-06T01:39:16.308735
2019-08-16T21:01:14
2019-08-16T21:01:14
192,603,424
0
0
null
null
null
null
UTF-8
Python
false
false
1,226
py
import numpy as np import h5py def get_first_ord_W(connectome_file, seed_region, conn_dir, name_map=None, save_file=None): with h5py.File(connectome_file, 'r') as f: W = f.get('W')[()] ipsi_regions = f['W'].attrs['Ipsi_Regions'] contra_regions = f['W'].attrs['Contra_Regions'] if name_ma...
[ "graceyng14@gmail.com" ]
graceyng14@gmail.com
c266018737baad1984bcd3c47b72b1c76945e567
8fc3cbeee5028b14f0475fc386ae6c7ea28e39fb
/old/stylegan2/external_models/__init__.py
9de1d28de17576400a8303901b874fa3662a1a3d
[ "MIT" ]
permissive
StafaH/jamm-bandit
7c2de32f1199530ae4d19cf7b8a14ebb2c4cc6c2
3c489817acc5c9b4d86a283809d59569b07f53d7
refs/heads/main
2023-02-19T01:04:45.698142
2021-01-23T19:05:05
2021-01-23T19:05:05
304,456,383
2
2
Apache-2.0
2020-11-28T20:07:01
2020-10-15T21:53:56
Python
UTF-8
Python
false
false
44
py
from . import inception from . import lpips
[ "mhaiderbhai@hotmail.com" ]
mhaiderbhai@hotmail.com
5973e550f31e56f8c6a6210839b7999ec1e8e179
e9cc17b38479616a28762d119f02fc348c0862f4
/Lecture 2/StringReplaceDemo_Function.py
d7dca1146fee79c1a85bda25ad14582b04a4be95
[ "MIT" ]
permissive
AtharvaJoshi21/PythonPOC
8f419672480f7df974b4e75b1010c344be73c389
6b95eb5bab7b28e9811e43b39e863faf2ee7565b
refs/heads/master
2020-04-16T07:39:15.256822
2019-05-05T15:48:01
2019-05-05T15:48:01
165,394,707
1
1
null
null
null
null
UTF-8
Python
false
false
527
py
#WAP to accept a string from user and replace all occurrances of first character except for the first character. def TransformString(inputStr, replaceToken): outputStr = inputStr[0] + inputStr[1:].replace(inputStr[0], replaceToken) return outputStr inputString = input('Please enter a string: ') replaceToken...
[ "joshi.atharva92@hotmail.com" ]
joshi.atharva92@hotmail.com
3dd7edb585e13d632ba412a0b12b8b9348c2948a
578db86c51d44ebddd0dc7b1738985b3dc69eb74
/corehq/apps/hqadmin/migrations/0015_rename_sqlhqdeploy.py
0b35e450b0a336e0722dad15f4ee9786d7198ab2
[ "BSD-3-Clause" ]
permissive
dimagi/commcare-hq
a43c7dd32b5f89c89fd5aa1b1359ab7301f4ff6b
e7391ddae1af1dbf118211ecb52c83fc508aa656
refs/heads/master
2023-08-16T22:38:27.853437
2023-08-16T19:07:19
2023-08-16T19:07:19
247,278
499
203
BSD-3-Clause
2023-09-14T19:03:24
2009-07-09T17:00:07
Python
UTF-8
Python
false
false
512
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.27 on 2020-01-31 20:24 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('hqadmin', '0014_remove_sqlhqdeploy_couch_id'), ] operations = [ migrations.RenameM...
[ "orange.jenny@gmail.com" ]
orange.jenny@gmail.com
0e365224111f952db09c0c48889ec831a0dc1b5c
d7b4e2e391e1f15fd7cb4fbf4d9aee598131b007
/models/BiLSTM1d.py
38efbe949140c842932c9d98b0a6c2aa0f9616d9
[ "MIT" ]
permissive
wuyou33/DL-based-Intelligent-Diagnosis-Benchmark
eba2ce6f948b5abe68069e749f64501a32e1d7ca
e534f925cf454d07352f7ef82d75a8d6dac5355c
refs/heads/master
2021-01-02T15:06:29.041349
2019-12-28T21:47:21
2019-12-28T21:47:21
239,673,952
1
0
MIT
2020-02-11T04:15:21
2020-02-11T04:15:20
null
UTF-8
Python
false
false
1,692
py
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable class BiLSTM(nn.Module): def __init__(self, in_channel=1, out_channel=10): super(BiLSTM, self).__init__() self.hidden_dim = 64 self.kernel_num = 16 self.num_layers = 2 ...
[ "646032073@qq.com" ]
646032073@qq.com
81f3516f30f2d1b98eaee9bcfe05dc0e01f9b19a
b69fcdb72f9eddd38a98f3f3c8d2a2ce6e6ed686
/ui/node_modules/bufferutil/build/config.gypi
c660e0c037981e6468c95c632e5d7ddf60ef456e
[ "Apache-2.0", "MIT" ]
permissive
mmizutani/play-gulp-standalone
a7aaae1d2acb264824a126afe27b7e089d578322
f98e98679b6096207cf3e1d88168edb08440357f
refs/heads/master
2021-01-10T06:10:13.538988
2016-10-23T17:29:28
2016-10-23T17:29:28
43,297,031
12
3
null
null
null
null
UTF-8
Python
false
false
3,803
gypi
# Do not edit. File was generated by node-gyp's "configure" step { "target_defaults": { "cflags": [], "default_configuration": "Release", "defines": [], "include_dirs": [], "libraries": [] }, "variables": { "asan": 0, "gas_version": "2.23", "host_arch": "x64", "icu_data_file": ...
[ "minoru.mizutani@gmail.com" ]
minoru.mizutani@gmail.com
53e8b096c0ce39323fb44bc04f997dee29135b76
8483101f4db6200fc8bbbefecf84fda9993d068e
/src/decorators.py
5c3a9cd953b7b20ef598c135cec5179e6824138f
[ "MIT" ]
permissive
rkulyn/telegram-pig-latin-bot
4fabd7572cd35d87ee160ef49564a76f381ec020
0fa2b58ca99a0a164ae6d584b3e35ad61733abcf
refs/heads/master
2022-12-12T13:17:54.344259
2019-05-27T11:23:39
2019-05-27T11:23:39
188,715,820
0
0
MIT
2022-12-08T05:10:25
2019-05-26T18:05:01
Python
UTF-8
Python
false
false
1,617
py
import telegram from functools import wraps from .utils import ( is_word_capitalized, get_chat_id ) def check_if_word_capitalized(translate_func): """ Check if word is capitalized before translation and fix translated word to be consistent. Args: translate_func (callable): Decor...
[ "rk.social.services@gmail.com" ]
rk.social.services@gmail.com
e54a254830aa0ee6382ff75d8b3544e326d9c316
3b7d82cc23bb9a760e897e881a2cbfb1d4cb954f
/labcoat/attributes.py
720be9a8f39e048d6a4c02aa7c26741a4478da53
[]
no_license
gulopine/labcoat
af972a17e7f165d49e9333c7d1a779d6f616d608
4a6bfe05f97ad5f63d6c4d097553ae659bad2312
refs/heads/master
2021-01-17T06:25:21.033563
2011-03-13T15:30:34
2011-03-13T15:30:34
1,448,589
10
2
null
null
null
null
UTF-8
Python
false
false
4,523
py
class AttributeTester(object): def __init__(self, specimen): self.__dict__['specimen'] = specimen self.__dict__['instance'] = specimen.instance self.__dict__['results'] = specimen.results def __getattr__(self, name): self.__dict__['name'] = name result = self.tes...
[ "marty@martyalchin.com" ]
marty@martyalchin.com
be2af5d71aeea7449afa6597430dbca14052a8a2
1c6be2ae80823f30a580656d2f1e99ac57e67094
/StudProjects/team06_gheorghiu_muresan/chatbot_holiday/chatgui.py
8a3fe0c95d7fd1a3121f5663c8f24adfbc4e76fe
[]
no_license
lauradiosan/MIRPR-2019-2020
3eb799f4af62abbd597389cf6b1859a3e7026673
b7154e763dd1eeb4ad5fa9ca2fd2109682824dea
refs/heads/master
2023-01-12T03:20:35.950502
2020-09-26T08:34:09
2020-09-26T08:34:09
210,589,829
10
23
null
2023-01-07T13:39:43
2019-09-24T11:49:24
Python
UTF-8
Python
false
false
5,651
py
import webbrowser import requests from nltk.stem import WordNetLemmatizer lemmatizer = WordNetLemmatizer() from keras.models import load_model model = load_model("chatbot_model.h5") import spacy from dateutil import parser NLP = spacy.load("en_core_web_sm") required_fields = {"location": "", "check...
[ "dragos.gheorghiu@complyadvantage.com" ]
dragos.gheorghiu@complyadvantage.com
553d12431d9304c8ebcd4e37d4024cb659c03251
c0bb716d3ceb703e46c85e1a3073cec441e2bc14
/ghost_Example.py
fd2a95035b1a1dfec9614dba251714c679d8fbe1
[]
no_license
raj61/webscraper
2323c070ee7563c9026d3e3e38255df2860ab3e3
61a0029ec9ff8360e1d7f821350197f1489cfcba
refs/heads/master
2021-04-06T17:51:45.496388
2016-07-24T15:21:07
2016-07-24T15:21:07
64,071,218
3
0
null
null
null
null
UTF-8
Python
false
false
198
py
from ghost import Ghost ghost = Ghost() page, resources = ghost.open('https://www.hackerrank.com/raj61') result, resources = ghost.evaluate( "document.getElementsById('hacker-contest-score');")
[ "noreply@github.com" ]
raj61.noreply@github.com
ac335cb229cfcfe1bf8b76a14f32df4cdd12d78c
d7591ed86fdb64ea1b1f8d74f8d0d06a1eecced2
/create_tables.py
eb5fe579e0ba8d8acaf38a7e7f2766c1ccd7bea2
[]
no_license
friendkak/aws-redshift-etl
c9a8a3d290705a6252c3b933584e19bbe7600ffe
81a8dfa56ebaad1b48f8d26e9a01c670d1927080
refs/heads/master
2022-05-08T22:52:39.874664
2019-11-12T13:31:33
2019-11-12T13:31:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,269
py
import configparser import psycopg2 from sql_queries import create_table_queries, drop_table_queries def drop_tables(cur, conn): """Delete all the tables defined in the drop_table_queries list in the sql_queries.py file. Parameters: cur: The curser of the postgresql database connection conn: The ...
[ "i3li.xz@gmail.com" ]
i3li.xz@gmail.com
0f7507ec552f993b19bdb5b08b477f106272d2bb
a4c20836b6d322c89d654160ebf536f5d5b76e5d
/class/class13.py
4f4ecf3c2a69e80e9b390eb8b78048e1f6b0f148
[]
no_license
SYSH/python_project
d54899b85e4af5bebaf4bc063bc3d65ad9d4901d
3e742579f10fbe84a71ef0493b15bbccf0c81f60
refs/heads/master
2021-01-10T00:54:28.705017
2015-08-13T10:42:08
2015-08-13T10:42:08
39,331,070
0
0
null
null
null
null
UTF-8
Python
false
false
639
py
#! usr/bin/env python # -*- coding: utf-8 -*- # 模拟抽象类的实现 def abstract(): raise NotImplementedError("abstract") class Fruit: def __init__(self): if self.__class__ is Fruit: # 如果实例化的类是Fruit,则抛出异常 abstract() print "Fruit" class Apple(Fruit): def __init__(self): ...
[ "jixiangrurui@gmail.com" ]
jixiangrurui@gmail.com
8f95ddc304068276d2a8f6436a878c312f5a6a6b
7177766e8875f655b678b06cc56be761264ec215
/df_user/views.py
baa440c87b9c884ca36f704a08204c1c042af01d
[]
no_license
yjz111/tiantian
c51ddbe698845d7215dabc81f09510ff8bebd75b
15e1e343ceabbecc7f1627393bd4d6aee792a03c
refs/heads/master
2020-04-25T16:24:28.188731
2019-04-09T13:55:09
2019-04-09T13:55:09
172,910,971
2
0
null
null
null
null
UTF-8
Python
false
false
6,039
py
from django.shortcuts import render from django.shortcuts import render, redirect, HttpResponseRedirect from django.http import HttpResponse from df_order.models import OrderInfo from . import user_decorator from df_goods.models import GoodsInfo from .models import * from hashlib import sha1 from django.http import J...
[ "1206604668@qq.com" ]
1206604668@qq.com
7f6e9eb15423cb5f99f4830d9e1643a50647435d
197b516a5b0fd63d1e7e15f065e9994f327584d3
/processResponse.py
3584d9b325b86280aee9284326b0414f72daabbc
[ "MIT" ]
permissive
Vipul26Singh/interswitch_python
81ce2fa390cb2b4351a0d92d26cd84710c9ab566
b5293648cb3208efaa840a8019ff9e7fdbd78692
refs/heads/master
2021-01-02T22:28:18.731554
2017-08-10T21:30:52
2017-08-10T21:30:52
99,324,708
0
0
null
null
null
null
UTF-8
Python
false
false
421
py
#!/usr/bin/python import cgi from config import * from response import * from helper import * from Interswitch import * from processRequest import * print("Content-Type: text/html\n") POST = cgi.FieldStorage() amount = POST['amount'] txnId = POST['txnref'] response = getSuccess(POST['resp']) returnUrl = get_config(...
[ "singhvipul092@gmail.com" ]
singhvipul092@gmail.com