blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
91
license_type
stringclasses
2 values
repo_name
stringlengths
3
135
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
68
visit_date
timestamp[ns]date
2015-07-25 20:53:29
2023-09-06 10:46:05
revision_date
timestamp[ns]date
1970-01-01 00:00:00
2037-05-03 13:00:00
committer_date
timestamp[ns]date
1970-01-01 00:00:00
2036-02-09 17:40:36
github_id
int64
1.61k
691M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
24 values
gha_event_created_at
timestamp[ns]date
2012-06-03 10:21:33
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-09-13 22:40:33
⌀
gha_language
stringclasses
250 values
src_encoding
stringclasses
27 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10M
extension
stringclasses
289 values
filename
stringlengths
1
218
content
stringlengths
6
10M
5ee30352c5fffb281765ab76c2c460366ce2262e
0bf87d512507b7f918a769ee25df92578609fa3d
/xgboost (2).py
78dccd8179037a95ba5a7b1ce932713d1a27548e
[]
no_license
Siddartha1991/Real-Estate-Pricing-Prediction
106fdf4f896ca7cb55bffce1b1199c6c7c80efb7
d29bcafd27a0a11501d23845862750cbe84868e6
refs/heads/master
2021-01-23T06:44:47.585366
2017-04-12T21:32:06
2017-04-12T21:32:06
86,394,781
0
0
null
null
null
null
UTF-8
Python
false
false
16,755
py
xgboost (2).py
#Import libraries: import pandas as pd import numpy as np import xgboost as xgb from xgboost.sklearn import XGBRegressor from sklearn import cross_validation, metrics #Additional scklearn functions from sklearn.grid_search import GridSearchCV #Perforing grid search import matplotlib.pylab as plt from ...
9d600b5579014ed42106c45bda9f81d95c13aea3
cb8d1db4af4401b019775132fe92f3eae4cb92df
/src/pyquickhelper/helpgen/_nbconvert_config.py
d74f4ab17ff5294eaf0dbb985bd14c3c4ed036bb
[ "MIT" ]
permissive
Pandinosaurus/pyquickhelper
041d6c6d2832845bd89027ffaab333239efc3959
860ec5b9a53bae4fc616076c0b52dbe2a1153d30
refs/heads/master
2023-07-24T12:27:25.700277
2023-07-17T07:02:34
2023-07-17T07:02:34
169,426,142
0
0
MIT
2023-07-17T07:53:04
2019-02-06T15:17:53
Jupyter Notebook
UTF-8
Python
false
false
604
py
_nbconvert_config.py
# pylint: disable=E0601 """ @file @brief Custom preprocessor, see `custom_preprocessor <https://github.com/jupyter/nbconvert-examples/blob/master/custom_preprocessor/>`_ """ # -- HELP BEGIN EXCLUDE -- try: if c is None: pass except NameError: try: # pragma: no cover c = get_config() # pylint...
ff1f1c7e81e456d0f51a3507aef1e3080c6520c6
2c5bb038c221019ad6f53c933425fe686605e1ad
/back-end/auth/models.py
5740d1de440196cdeab19b0f098b88e148d943a7
[]
no_license
sermonis/vue-python-dal
48d2951ded0d33f91cb293707293393cc7c17668
e936ef5a23630bdb6cfd4c25e29302726f418420
refs/heads/master
2023-02-24T03:00:17.150284
2021-01-22T06:18:41
2021-01-22T06:21:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
353
py
models.py
from django.db import models from django.contrib.auth import get_user_model from common.models.persons import Person class Profile(Person): user = models.OneToOneField(to=get_user_model(), on_delete=models.CASCADE) photo = models.URLField(blank=True) class Meta: verbose_name = "Profile" ...
17033e0104bc3eea7a997070e0dfbb2b94040259
9128fa598cc7a3e1d494243b7da26adaed098412
/distributed_gp/count_photo.py
608e732002a9c8101379bc984f1d897c369f369e
[]
no_license
daifanxiang/CityBeat
ff45967f48fc7a65337300fc32cf9f8088471fe3
6b7bbb4fc50446f7718dd456e6cd4fcd8082fca3
refs/heads/master
2021-01-15T21:19:35.069155
2013-04-11T02:27:43
2013-04-11T02:27:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
983
py
count_photo.py
import time import math import sys from datetime import datetime from datetime import timedelta import calendar from uuid import uuid4 from utility.instagram_time_series import InstagramTimeSeries from utility.region import Region from utility.config import InstagramConfig from do_gp import Predict from gp_job imp...
07df6c5302938e21c0d145647db6786ec893f84b
0a6d6478e36a754e46445be8dda51c076bc68ae5
/demo.py
1a938223a4b6af896e1a3856f0b8ecaf6da18a98
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
vljack/rsmjack
e2a2bd79a4b9488a2086823e7ba590216901e1db
1ebc57530382dfca9f0398e1fa7809a75e37a6b4
refs/heads/master
2020-04-30T04:23:45.436867
2019-03-19T22:59:47
2019-03-19T22:59:47
176,609,853
0
0
null
null
null
null
UTF-8
Python
false
false
2,996
py
demo.py
#!/usr/bin/env python3 import maestro from time import sleep # range is 4000/8000 but cap maximum to avoid popoff LEFT_POS_HI = 5000 LEFT_POS_LO = 7000 RIGHT_POS_HI = 7000 RIGHT_POS_LO = 5500 SERV_LEFT = 0 SERV_RIGHT = 1 accel = 24 speed = 20 wait_factor = 0.55 pump_offset = 1000 right_arm_level_offset = 550 reps_...
ccdc8f480582eb0a7f71c9474b5763933a93e8a9
8ef3035c8ef9e03eea483a5f1d1f386d149a3122
/friend-management-api.py
9f834614184e25925db9025bf9d687ee64ea9d0e
[]
no_license
Marken-Foo/friend-management-api
8273a1ac5ef5010f66fac5156de6b9d2abeee198
c2a3d439682193da1a1b1c7963771ed57999b914
refs/heads/master
2023-08-04T12:40:41.397700
2021-09-13T04:54:36
2021-09-13T04:54:36
405,829,566
0
0
null
null
null
null
UTF-8
Python
false
false
19,538
py
friend-management-api.py
import re import sqlite3 from flask import Flask, jsonify, request DB_NAME = "users.db" EMAIL_REGEX = re.compile(r"([\w\-\.]+@[\w\-]+(?:\.[\w]+)+)") app = Flask(__name__) class SqlQueries: """Struct to hold SQL queries as text""" # check if user A is blocked by user B CHECK_IF_BLOCKING = '''SELECT * F...
c2703a341e3f66ac18225d5642e7bc0006d5cafe
5c3d98b82c0bfb2b23bd792901a476e2a619f32e
/{{cookiecutter.repo_name}}/python/{{cookiecutter.package_name}}/web/error_handlers.py
6628cd0a08f8ea0426e2b96d64cff880b0ce199a
[ "BSD-3-Clause" ]
permissive
havok2063/cookiecutter-marvin
bce42c1ee42bf0f94f05a053a6768ead6c0c29dc
3e64169b865012c5a6099e71a91789770222e5b5
refs/heads/master
2021-01-24T08:06:37.627502
2017-08-13T16:26:13
2017-08-13T16:26:13
93,371,536
0
0
null
null
null
null
UTF-8
Python
false
false
1,679
py
error_handlers.py
# !usr/bin/env python2 # -*- coding: utf-8 -*- # # Licensed under a 3-clause BSD license. # from __future__ import print_function, division, absolute_import from flask import request, current_app as app from flask import Blueprint, jsonify, render_template, g errors = Blueprint('error_handlers', __name__) def make_...
b163214fe9ce4e493b4acd7c18d1726b213f5123
b8719506dc93d18aa437380bd24c9143de35acfe
/Arrays_Strings/one_away.py
2565a2c66421ec93947d79175a779c452505d9a4
[]
no_license
Schamberger12/CT_CI
265ec88d3ecf569d1601b8b5d0059b49a04b01e4
3b21c03770e8aedee6b67af825b9b10a13b437a8
refs/heads/master
2022-11-06T19:51:49.098594
2020-06-25T01:56:47
2020-06-25T01:56:47
272,549,379
0
0
null
null
null
null
UTF-8
Python
false
false
872
py
one_away.py
# Problem: # There are three types of edits that can be performed on strings: insert a character, # remove a character, or replace a character. # Given 2 strings, check if they are one or less edits away import sys def OneAway(s1, s2): string_diff = abs(len(s1) - len(s2)) if string_diff > 1: retur...
94257ab76b94c134b7774dd5200eb146d46eccc6
54481e73c9b47d7eac772dff926239478c34e1b6
/domain/record_item.py
92d951d18d59cc63ca3f974be85dcffa41259030
[]
no_license
gummoe/nava-quality-measure-reader
f8c9496e97076fd447bef800d41e75ce05edc044
ff67d74cd44918f95c95160ad60297b2f6ad70c1
refs/heads/master
2022-12-10T23:26:56.401567
2018-10-11T02:37:29
2018-10-11T02:37:29
156,875,418
0
0
null
2022-12-08T02:59:20
2018-11-09T14:46:27
Python
UTF-8
Python
false
false
243
py
record_item.py
class RecordItem: def __init__(self, value, schema_field): self.value = value self.schema_field = schema_field def get_schema_formatted_value(self): return self.schema_field.format_value_for_type(self.value)
d98193bf866141c9671bb4cb5f27bdc923a20243
aa3cc5cddf07721962cdd92611daa0198ecc32ea
/EL/EL_partA.py
b6dcff6914bfc53f41b498b6e4f26292a6ac105b
[]
no_license
druv022/Disease-Normalization-with-Graph-Embeddings
486a7c59d94ff502145796c1921611b937a4006a
c816ba37815d06bea394a99614e07baa3ebed5f2
refs/heads/master
2023-02-26T12:55:18.927522
2023-02-14T02:36:15
2023-02-14T02:36:15
242,658,320
3
1
null
null
null
null
UTF-8
Python
false
false
16,654
py
EL_partA.py
from EL.EL_utils import * from allennlp.modules.elmo import Elmo, batch_to_ids import pickle import os import torch.nn as nn import torch from nerds.doc.bio import transform_annotated_documents_to_bio_format from nerds.dataset.split import split_annotated_documents from models.EL_models import EL_model, EL_similarity f...
c6853a03b8c6af79e162cf09da5406f1f07c887a
3d825b7cab1eccade255c076ec5d4d62ca94bdb6
/0x0F-python-object_relational_mapping/5-filter_cities.py
dd1d6c85d0004144f0accc28f43e5990118c54d7
[]
no_license
banuaksom/holbertonschool-higher_level_programming
5805710a0154943f56d47a615a27ab22a8f10577
3dcd23f1ab093d379f1230b0a3930bd63de28d9d
refs/heads/master
2020-07-23T01:45:39.557838
2020-02-14T05:48:17
2020-02-14T05:48:17
207,405,308
0
1
null
null
null
null
UTF-8
Python
false
false
656
py
5-filter_cities.py
#!/usr/bin/python3 """ Takes in the name of a state as an argument and lists all cities of that state, using the database hbtn_0e_4_usa """ import MySQLdb from sys import argv if __name__ == "__main__": with MySQLdb.connect(host="localhost", user=argv[1], password=argv[2], db=argv[3], por...
ccfe46a74a5751af0b4c6cf98aa3eb9c13ae01be
20ebdf2bf80284f9d9cb14b453f3aaaab7cd62f8
/object_detection/youtube_object_detection.py
98ea3e0348a8c8e4aba445a3b611d3424fc0643e
[]
no_license
Yuuraa/AI_X_SUMMER_2021
9e62f993a99a513e9328fda2f82f10f3cc5ad321
ad41e997f8eb10d0dbd4f10963e81476fd8106fc
refs/heads/main
2023-06-26T04:49:25.414859
2021-07-31T15:44:03
2021-07-31T15:44:03
383,677,732
2
2
null
null
null
null
UTF-8
Python
false
false
1,487
py
youtube_object_detection.py
import os import argparse import cv2 import numpy as np from object_detection_functions import YOLOModel, read_classes, show_detected_objects import sys sys.path.insert(0, '../utils') from youtube_video import YoutubeStream if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("--...
34fe04ec5989b9fedd12e1bd24d305793467b74b
a4a0f5f3e93cb779d57f1ace6fe8f5fba52c5c0b
/mid project/最新程式碼/word_to_tf_idf.py
07b346c4495daa427869d92eff2e44d300b15700
[]
no_license
ga877439/Big_data_analytics
072da936e24a6b28f5380b84a719d96db068d107
3414fb423abd9cfb6b535927fe8353db82c8298b
refs/heads/master
2020-05-09T13:21:10.249369
2019-05-14T01:53:42
2019-05-14T01:53:42
181,144,934
0
1
null
null
null
null
UTF-8
Python
false
false
2,761
py
word_to_tf_idf.py
corpus_file = r'C:\Users\User\forum_ready.csv' keys_file = r'C:\Users\User\Documents\GitHub\Big_data_analytics\mid project\data\forum cluster\1000_keywords.txt' keylist = [] with open( keys_file, 'r') as file: for data in file.readlines(): data = data.strip() keylist.append(data) import panda...
957a8edaba8306a37c88943b03d4fea7fc8e3708
8dddf905fd3006cfb8b33364bdc36cb83ca9a671
/bidsapp/catalog/forms.py
a5f84adbbbf017d1494c8100f9d9bc18dfad5926
[]
no_license
NikkiBytes/BIDS-application
8b407552e7751cfed2b2444a4fdea2baae859117
7f25ddf139314fed8415016272c439bf669b6b32
refs/heads/master
2021-08-23T13:55:52.644942
2017-12-05T04:40:13
2017-12-05T04:40:13
112,770,688
0
0
null
null
null
null
UTF-8
Python
false
false
161
py
forms.py
from django import forms class OsirixForm(forms.Form) subject = forms.Charfield() directory = forms.Charfield() def get_data(self): pass
1fec29c1f86f82624545712c9241f46b352b0816
97531e09ed25b19de1c5524aa72c4ee21eaf2312
/sessionstarter.py
235aad2f3dbd679ed963bac5a014c6ba86851fcc
[]
no_license
thestr4ng3r/r2kit
b828be6791c40ce3f466db7ce98e077e03174f18
e72717bff07eee31453c035b84d991b93faa9825
refs/heads/master
2020-03-28T18:37:00.317711
2018-09-04T09:45:21
2018-09-04T09:45:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,293
py
sessionstarter.py
# Author: Matt Brooks, @cmatthewbrooks import os,sys import argparse import json import r2pipe from r2utils import R2PipeUtility as r2pu from r2utils import R2FuncUtility as r2fu from r2utils import R2FlagUtility as r2flu import sigs class SessionStarter: default_sig_location = os.path.join( os.path....
606e7f24d8a4fe4fb1b32a418787d11a53fa187f
096dafc865f40eb09a0f78ef1fd04b0c29f6ac66
/Section III/7. deploying your model to the cloud for prediction/trajectory/train/enrichment.py
e1cb59f2b29f4c4cdc1f5a98dca4bd1a8f791a12
[]
no_license
christianramsey/Tensorflow-for-Distributed-Deep-Learning
5b48d1b9583c697c8a74b3cb7dcb5011ab84a7e8
47639299e99129918c788245ada63d2847379a80
refs/heads/master
2021-09-19T07:21:38.884634
2018-07-23T22:03:00
2018-07-24T22:03:00
124,260,366
7
4
null
null
null
null
UTF-8
Python
false
false
201
py
enrichment.py
import Algorithmia input = { "lat": "50.2111", "lon": "134.1233" } client = Algorithmia.client('simNM072YShgdE1J61tme12qhs31') algo = client.algo('Gaploid/Elevation/0.3.6') print(algo.pipe(input))
27e9883a45f456b7f5ac9df6131f289311a63702
428251e19e18273ef2244b28358eb189c67cd966
/g2cam/status/common.py
13d072be9e33c718105dbedce4dbb848bad2d846
[ "BSD-3-Clause" ]
permissive
naojsoft/g2cam
e590c3bee23b7702e5950b9a1f6b2c73973cdf2a
51420647c23e0d61fa47c2ad1125cb5ad60b7f67
refs/heads/master
2023-09-01T02:44:10.048634
2023-08-23T00:42:52
2023-08-23T00:42:52
40,327,945
0
0
null
null
null
null
UTF-8
Python
false
false
78
py
common.py
# Constants for Gen2 status STATNONE = '##NODATA##' STATERROR = '##ERROR##'
0a6c0a71a8ef60fa4d0729653c520c91307d5ec1
df4bc98f974b8fc4eb1e4bd2c0e5e2d068328165
/data-structures/linked_list/test_sll.py
34f4618cbab970f89aba73552b497599c48374ca
[]
no_license
NFollett89/refresher
d8c717450067eec9428fee306719ef63b273f070
b44b491e9fd8ecbad3c90c99fcf5acd34b1d9b77
refs/heads/master
2020-03-19T17:29:30.657997
2018-07-11T23:21:56
2018-07-11T23:21:56
136,760,013
0
0
null
null
null
null
UTF-8
Python
false
false
3,581
py
test_sll.py
#!/usr/bin/env python2 import singly_linked_list as sll full_pass = True def run_test(call, expected, actual): global full_pass if str(expected): result = "Pass" if str(expected) == str(actual) else "Fail" if result == "Fail": full_pass = False print " - %s | %s : %s ...
f9247222f1600c276090377e10c032cbf01a3652
15099df07140ccbed4eb396c7bdedd27a160420d
/one_liner.py
706426d918abac34a3a1aefc2638aaef802784d3
[]
no_license
bahodge/python_projects
30d3914b6fe1fb252eb0ca49da9bf9bae89d3c67
c45c432634d5caea904c0560177fbb47ea81dce4
refs/heads/master
2020-04-09T03:52:11.184498
2019-01-05T07:46:54
2019-01-05T07:46:54
160,000,165
0
0
null
null
null
null
UTF-8
Python
false
false
214
py
one_liner.py
word = list("cookies") # print(word) joined_word = "".join(word) new_word = [] for char in word[:2:-1]: new_word.append(char) print(new_word) print(word) # word.reverse() # print(word) # print(joined_word)
832cf9faef9d0805c1bc21473a7f46f6cc31b20c
abf37888ca984086aedad1e7bbcd7e7336cda03d
/demo_login.py
a6ab87014788d9d95bf52b4c61adf286305c735b
[]
no_license
deqncho/WebCrawler
c02049fdceca4cc4df46a3fbd86a80733bdc83fd
0ac6556f34b1b01d04d82a8863324950b2c1f0f7
refs/heads/master
2020-04-14T23:37:04.102551
2017-12-07T14:15:40
2017-12-07T14:15:40
68,123,679
0
0
null
null
null
null
UTF-8
Python
false
false
200
py
demo_login.py
import cookielib import urllib import urllib2 # Store the cookies and create an opener that will hold them cj = cookielib.CookieJar() opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
a9b3bce969db3e585246bdc0428fdf14f744b212
b57465bb6d6ec6d60651c50d4163732edc58a143
/O2-Ex-046.py
affe2bb457960e8d56866c495c069fc9842f8c45
[]
no_license
adilsonLuz/OficinaPython
3d4df113a247fa64b2e85551c403160eb8a915bf
3452102210a40eef9c61468acb9afd4fa309f1fc
refs/heads/main
2023-06-24T18:19:03.691460
2021-07-21T21:48:33
2021-07-21T21:48:33
388,253,543
0
0
null
null
null
null
UTF-8
Python
false
false
234
py
O2-Ex-046.py
arquivo = open('arquivo-xxxx.txt', 'r') print("\n\n Outra forma \n\n") continua = True while continua: linha = arquivo.readline() print(linha) if (linha==""): continua = False arquivo.close() print("\n\n Fim")
7ae538605d2027abf20b0fdee131990a41456421
9ecc9d6cc8fc7025ed4c097f0028a8e623a91b96
/zad_1_1.py
17742bfc06b8aa03bf7b7dfd838ef63f7124a4f6
[]
no_license
Luke500000/python_zadania
563002ae10129192a9ba2c36f65d4d2a21aeb42e
01c81d96b0099370aec0ec8223655cbb2bba8836
refs/heads/master
2021-05-20T22:23:56.536727
2020-05-17T17:03:25
2020-05-17T17:03:25
252,437,440
0
0
null
null
null
null
UTF-8
Python
false
false
1,484
py
zad_1_1.py
# Zadanie 1.1 | Interakcja i proste obliczenia #Pierwsza część zadania cena_ziemniaki_kg = float(input("Podaj, ile kosztuje kg ziemniaków w zł: ")) ilosc_kg = 5 cena_koncowa = cena_ziemniaki_kg*ilosc_kg print(f"Cena kupna {ilosc_kg} kg ziemniaków wynosi: {cena_koncowa:.2f} zł.") #Druga część zadania cena_ziemniaki_kg...
9e59b5b6b428351aa49316b2b64f4446deb2efd2
928e68e420c5c365acd0712a9ac1be278bc5412c
/python/kill_5037.py
815b33743628cd30ade7d947d01d96381de12f22
[]
no_license
wojujuews/AndroidTestScripts
74e112703a3e07cf5e07435a36e9fb5103f8e009
2b2ae71d6785eee445dc34df98d975315ee0c708
refs/heads/master
2020-12-25T05:02:46.457858
2015-02-28T02:41:00
2015-02-28T02:41:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
581
py
kill_5037.py
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 2015年2月28日 @author: xuxu ''' import os from scriptUtils import utils #5037端口占用时杀掉占用该端口的进程 def linux(): pid = os.popen("netstat -anop | grep 5037 | grep LISTEN").read().split()[6].split("/")[0] os.system("kill %s" %pid) def win(): pid = os....
ba3a283e9f5d2cb8a2039f52d5d12b2704a2372b
d52d8d45d749d3edb046834831a9b93998886a06
/src/nitro/util/config_generator.py
f48467362aeb780d0da05c934b1124488fea686c
[ "Apache-2.0" ]
permissive
srvm/nitro
ff1e5b1a5bf96f92973b59da00f31bf388e3904f
1fbc4df89684856220ab5c33dfd5c999366e7cf7
refs/heads/master
2021-01-11T01:16:51.001083
2016-08-31T22:48:53
2016-08-31T22:48:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,429
py
config_generator.py
############################################################################# # # Copyright 2012-2016 University of Utah # # 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...
4edf085e84685eb0d40b9aaee71c20184543f22b
88a1eb9e038fed34617cde04a3b526600fa311b4
/solutions/130.second.py
f54249bc7e6939f43065745a7bea4abd211812ea
[ "MIT" ]
permissive
Jian-jobs/leetcode-notes
7ceacc6eff1b3b56e33fd005c038dd8337ba366b
c7dc3ead0f4fc660d7b59f90eb61ba9721280132
refs/heads/master
2020-05-15T01:00:39.825128
2019-02-12T16:39:27
2019-02-12T16:39:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,576
py
130.second.py
""" { "author": "Yucheng Huang", "difficulty": "medium", "link": "https://leetcode.com/problems/surrounded-regions/description/", "category": ["DFS"], "tags": [], "questions": [] } """ """ 思路: - 先沿着border把所有挨着border的area找到并标记,之后遍历所有点,convert所有未标记的"O" """ def DFS(board, i, j, H, W, unchangeSet...
a93e65017bc735c6a4b63d9d9fc23c19e10f92cd
2a8316f952e4252c80db9d82270dc698e679649a
/CONVERSORES1.py
466461fe8447ecba3f0b30f7c9ad9b2e42e1b943
[]
no_license
FernandotapiaCalua/TRABAJO05
09780a16f3892687a187bf3550055240877b4c7c
97764dee63aba212f346eb3f5c6835b72dac6629
refs/heads/master
2020-09-06T08:18:13.214849
2019-11-08T02:57:04
2019-11-08T02:57:04
220,373,326
0
0
null
null
null
null
UTF-8
Python
false
false
779
py
CONVERSORES1.py
#CONVERTIR EL ENTERO 8479 A CADENA q=8476 w= str(q) print(w, type(w)) #CONVERTIR EL ENTERO 12000 A CADENA q=12000 e= str(q) print(e, type(e)) #CONVERTIR EL ENTERO 58710 A CADENA q=58710 r= str(q) print(r, type(r)) #CONVERTIR EL ENTERO 798002 A CADENA q=798002 t= str(q) print(t, type(t)) #CONVERTIR EL ENTERO 56...
bbff37f7e248ac1994ff100a0a6ecdbff82b0ab8
bdc75c3bb82a78d4a3e166bf9be6938dc268b861
/hypomeals/init_script.py
4ca492cd62c37cdcac7c35a7555baeee707c378b
[]
no_license
blhguo/hypomeals
dcc0ee57ff95bf652f0722447212c3bd4dc53ecf
4fee7ad3440e8a425cfbb056dd72dc73c1e392ba
refs/heads/master
2020-06-15T17:40:48.660647
2019-04-17T11:51:57
2019-04-17T11:51:57
195,354,494
0
0
null
null
null
null
UTF-8
Python
false
false
2,451
py
init_script.py
#!/usr/bin/env python3 from django.db.models import Q from meals.constants import ( USERS_GROUP, ADMINS_GROUP, ANALYST_GROUP, PRODUCT_MANAGER_GROUP, BUSINESS_MANAGER_GROUP, ) from meals.models import User, ManufacturingLine from django.contrib.auth.models import Group, Permission import os print("...
b3b876eaca6f34ac55663962ddc028714e8a38e2
af4b88c4cff351b04a62687e90568a6c57fbee4f
/backend/posts/serializers.py
21eda3a7e61984f0ac833b3aa81f82c2ce21ba1e
[]
no_license
cpuloader/modernblog2
471b755ee69737c41c61adec53eb597e4e367028
2803c2c5d05e024c57ee577c57c62150376a1376
refs/heads/master
2022-12-13T03:47:25.429377
2019-09-27T14:59:07
2019-09-27T14:59:07
211,272,663
0
0
null
2022-12-11T07:22:05
2019-09-27T08:29:35
TypeScript
UTF-8
Python
false
false
2,256
py
serializers.py
from rest_framework import serializers from authentication.serializers import AccountSerializer from posts.models import Post, Comment, DataImage class DataImageSerializer(serializers.ModelSerializer): class Meta: model = DataImage fields = ('id', 'author', 'parent_post', 'parent_comment', 'pictu...
139095490f4347c76653067c2c79e8077e91d165
5be646bb4a8117f5b972d5213908ecfc3842fc6d
/prednet/config/settings-gen1.py
5d53d97c55af2d3f17fd4aaec3a91bca192c3e8f
[ "MIT" ]
permissive
abe-/landscape-prediction
79060d79aeb6d7ea0a4382db4c8e1edb04b7a12d
96a50b6438745da2a0d6c08be96be4e6a96d65b8
refs/heads/master
2021-03-27T09:53:51.811323
2018-05-18T00:35:04
2018-05-18T00:35:04
118,014,678
5
1
null
null
null
null
UTF-8
Python
false
false
666
py
settings-gen1.py
WIDTH=64 HEIGHT=64 # Where data will be saved if you run process_ee.py TRAIN_DIR = '../Data/Train-gen1/' VAL_DIR = '../Data/Val-gen1/' TEST_DIR = '../Data/Test-gen1/' # Where data will be saved if you run process_kitti.py # If you directly download the processed data, change to the path of the data. DATA_DIR = '../Da...
aec7f9727870c8fb572217588552cbeb5664c1df
b59ba04c77e15fa55c3b34b2d8d41269ba44e02a
/import.py
b610640fab8c40de76455f9fb8a87c7b2b0e222c
[ "Apache-2.0" ]
permissive
Jeoffreybauvin/enedisdata_import
d8eca19698c366a98d8d61d949d91d0b63075af2
d58cbe99b6ed41cfda223674c25eb4ea944cb2ba
refs/heads/master
2022-12-23T09:13:29.049778
2020-09-27T15:26:47
2020-09-27T15:26:47
294,388,480
1
0
null
null
null
null
UTF-8
Python
false
false
6,354
py
import.py
#!/usr/bin/env python3 import sys import requests import json from ratelimit import limits, sleep_and_retry from influxdb import InfluxDBClient import datetime import argparse import logging import re import decimal from decimal import Decimal # Rate limiting is mandatory MAX_HITS_PER_SECOND = 5 ONE_SECOND = 1 DATAH...
144e4385e814c4d868c3a5629e44ec06df6eb6e6
e643b1ec335b57116babb1a8959176b133875914
/functions.py
a484c903b34da01027993ad10af2b058d16e40be
[]
no_license
lesliechiri/python
4d1739163ce3b73a5041e7bd8a8147ac22871e2d
f66e00d0ad9116a8e0e3b7a88ef716c9bc2f8e9c
refs/heads/master
2020-04-28T08:55:29.924455
2019-04-11T08:24:32
2019-04-11T08:24:32
175,147,625
0
0
null
null
null
null
UTF-8
Python
false
false
6,749
py
functions.py
pPython 3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 22:20:52) [MSC v.1916 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license()" for more information. >>> def sum(a,b): answer = a+b return answer >>> sum(10,15) 25 >>> sum(1000,10000) 11000 >>> sum(10) Traceback (most recent call last): File "<...
d6ab722d3681158e8932027fb00de84ac068ced8
32f48f6848ff6d423da02f3be4360580b9cee9d7
/zero_nvidia_heating_problem.py
636fb1a23798942495e1d621bcf3784bd18135bf
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
userimack/disable_nvidia
dd7c61be5f937358e1cd74cc00d33f4fea1bdf3f
dcdd974f6eb21d24e9321a598c9dfa3bcd568359
refs/heads/master
2021-01-10T02:07:19.073424
2015-11-18T18:47:05
2015-11-18T18:47:05
46,327,308
0
0
null
null
null
null
UTF-8
Python
false
false
717
py
zero_nvidia_heating_problem.py
import os import time def fn(): print("Run this program using command 'su python <filename>") print("Running command 'yum install kernel-headers kernel-devel dkms") os.system("yum install kernel-headers kernel-devel dkms") print("Cloning the bbswitch repo from github:") os.system("git clone https:/...
1238a9a40455f414b6ff7d4ed915a1de8ec619bd
ecf0e7110d07780b6cde7e1bdf4001a9f3fa89a4
/171ExcelSheetColumnNumber.py
6c2cab92d49f6b5e0fcf119e4f2cfbd06ca7b4e2
[]
no_license
tom8u4286/leetcode
acfe0d5b0e8c5d725d9e4d6d4618c408620f0106
22be68b2966719ecf0da7db4f2bef538398bef78
refs/heads/master
2021-01-02T19:26:32.579925
2020-02-11T15:04:08
2020-02-11T15:04:08
239,764,830
0
0
null
null
null
null
UTF-8
Python
false
false
296
py
171ExcelSheetColumnNumber.py
""" title: 171 Excel date: Feb/11,2020 author: tom8u4286 Difficulty: easy """ class Solution: def titleToNumber(self, s:str) -> int: sum = 0 for idx, i in enumerate(list(s)): sum += math.pow(26,len(s)-1-idx)*(ord(i)-64) return int(sum)
4bb62c5adca3ed2dc78b9a25b4eea320437ad3e7
a621633460ba31b87f923fcaea3643a0d1637750
/FII/L2/RC/rms/bin/rms-cli
0b3d0b4c48546eb70bdbfc4da6ccf883da7b474c
[]
no_license
BogdanFi/cmiN
edeb8316fcfd23c8525066265bac510f7361ebed
b3938f025f837df5213c8602e5854a46f2d624d3
refs/heads/master
2020-04-28T09:01:26.127160
2018-07-03T16:12:08
2018-07-03T16:12:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,324
rms-cli
#! /usr/bin/env python # # rms-cli: Release Management System - client # # Author: cmin764@yahoo/gmail.com import os import shutil import socket import struct import argparse from binascii import hexlify, unhexlify HOST = "127.0.0.1" PORT = 51337 class RMS(object): SEARCH = 0 DOWNLOAD = 1 ISIZE = 4 ...
c442b65cdcb10295d4c56989567491f6a7c22170
a590cad065168ffa466186e30d2d7e37aebbd59c
/Parsing/OrganizeTests.py
b5b8ab1482ca1de3d8e243b06a91e9d283d0e6ba
[]
no_license
imwaffe/simultaneous-contrast-plotter
fd6cbb2079668585b5be7fdb2ef8625449bde969
d7ae468fc1ef8c15c02768f8c66b2bed3df66415
refs/heads/main
2023-05-02T06:49:22.903587
2021-05-27T08:51:45
2021-05-27T08:51:45
370,396,608
0
0
null
null
null
null
UTF-8
Python
false
false
2,196
py
OrganizeTests.py
import os from glob import glob from os.path import normpath, basename USER_ID = "user_nickname:" # String in user_details.txt that determine user_id def GETCSVs(path, organize_by, min_rows=-1, verbose=False): CSVs = {} if len(path) == 0: path = '.' assert os.path.exists(path), "I did not find ...
6b637ee55ffd045c23f7c7aec44f6895cf05e2d7
94c0f86a4b686f6a9d37034a48f48c4d852c89a2
/Cwl/spiders/cwl_update.py
fdd8b4fa9cce653be905a6e0e5bc04414d8eb668
[]
no_license
eyubaobao230/test2
8c355bdf7c9f1d7de61abd6490c792307dbec3ab
20079b818d3904588a2180a51b6f076e4bd979b1
refs/heads/main
2023-01-22T16:25:11.490017
2020-11-20T02:54:06
2020-11-20T02:54:06
314,422,150
2
0
null
null
null
null
UTF-8
Python
false
false
5,353
py
cwl_update.py
# -*- coding: utf-8 -*- import datetime import json import logging import re import scrapy from Cwl.items import CwlUpdateItem class CwlUpdateSpider(scrapy.Spider): name = 'cwl_update' headers = { 'Connection': 'keep-alive', 'Pragma': 'no-cache', 'Cache-Control': 'no-cache', ...
32a444d579acf37221cdc5b024bee8a0f5f2693c
48e02c9adcdd9f0f54bf5ddeb4505466e1bdc083
/ref2seq/yelp_edu.py
3f9b8910b55240b24c295cb45f99e2bb55002e80
[]
no_license
RenqinCai/recsys_justification
45fe0a4e4d2fc0d183885a78d27984185cd11f2b
2ef575030310de943b2b1f31d6a1247c3ec9c27e
refs/heads/master
2022-10-10T15:14:20.920418
2020-06-11T15:03:48
2020-06-11T15:03:48
271,575,842
0
0
null
2020-06-11T15:02:24
2020-06-11T15:02:24
null
UTF-8
Python
false
false
2,587
py
yelp_edu.py
""" 1. transform data into dataframe 2. split train, valid, test 3. tokenize reviews, get token mapping 4. get user, item mapping 5. map user, item, tokens in train, valid, test """ import csv from nltk import word_tokenize import random import os import numpy as np from tqdm import tqdm from collections import Count...
c0510ec0804ee6d406d0ae3cb8e94f5b3e53e5ec
5e35005a59ccd02988932356e73ca73b452e25f1
/54.字符流中第一个不重复的字符.py
7b75fb3721d36ef96928702917c32e31996d7092
[]
no_license
foxzyxu/offer
9887030137c20e1aedcb5c0e00f8866e4dfa0842
4fb0d9f9fc6308967415ad4e6708b03919bfe191
refs/heads/master
2020-05-31T05:37:09.493630
2019-06-04T03:31:43
2019-06-04T03:31:43
190,121,553
1
0
null
null
null
null
UTF-8
Python
false
false
534
py
54.字符流中第一个不重复的字符.py
class Solution: # 返回对应char def __init__(self): self.all={} self.ch=[] def FirstAppearingOnce(self): # write code here if self.all is None: return '#' for c in self.ch: if self.all[c]==1: return c return '#' ...
f67a109787fe298271490376cbb230c6b65f8451
31747dd8c61085421d7bd4166f7bd4f9429cf914
/wemake_python_styleguide/logic/nodes.py
eaba05515a681aa99db715e89e04cbc0fdb5e997
[ "MIT" ]
permissive
edytagarbarz/wemake-python-styleguide
0e9ed4080a13a6727b8e80785e113b8407409352
74b86156d73c2a4fe9c755138f6953fec41fab3b
refs/heads/master
2021-03-03T19:21:54.807089
2020-03-07T23:35:15
2020-03-07T23:35:15
245,981,718
1
1
MIT
2020-03-09T08:31:55
2020-03-09T08:31:54
null
UTF-8
Python
false
false
785
py
nodes.py
import ast from typing import Optional from wemake_python_styleguide.types import ContextNodes def is_literal(node: ast.AST) -> bool: """ Checks for nodes that contains only constants. If the node contains only literals it will be evaluated. When node relies on some other names, it won't be evaluate...
37c8fe398c2296c98d24ef6050049978f87d1d28
0dd7001b0d9156d31375e3cf52b0417ef84a7ef1
/qingShang/urls.py
f1cb4e16aa89ac28f72bc8c81a3a6736bdf871bf
[]
no_license
yangyuwei6622/innovation
45205f1946069901dfa44f2d61ee65a3ec59cc00
a741c1f70fd398ab8c3a7193f44d6f4f1f6838ab
refs/heads/master
2021-02-12T15:11:25.608855
2020-03-09T14:47:11
2020-03-09T14:47:11
244,177,624
0
0
null
null
null
null
UTF-8
Python
false
false
307
py
urls.py
from django.urls import path from qingShang import views urlpatterns = [ path('register/', views.register), path('register_handle/',views.register_handle), path('login/',views.login), path('index/',views.index), path('login_handle/',views.login_handle), path('list/',views.list), ]
a63c4dfc2bb74eccdc7f2b386f5b25acbf6111b2
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_14159.py
8c39c95c591c1d1b6053362c7fb44dd0ba967319
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
72
py
python_14159.py
# Building Path - Google Drive SDK body['parents'] = [{'id': parentID}]
951703f5642359f38e45abbf479526ced185aabe
ffb43f6a7a9a26d85b9663348f05ba685bd1760e
/week4/guessing.py
9459f64ddcc8563f2f9531fef5ebf27f76ccf18e
[]
no_license
jcgray77/AFS-200
6fa8f7bc30e40d51c031d5fa2b61cc3d7da5e5ec
343855746671a424ed6c9a1c258a1807c173e844
refs/heads/master
2023-01-07T08:03:05.363867
2020-11-10T20:44:10
2020-11-10T20:44:10
296,437,012
0
0
null
null
null
null
UTF-8
Python
false
false
1,369
py
guessing.py
import random number = random.randint(1,9) def guessingloop(): answer = random.randint(1,9) guess = int(input("Please guess any number between 1 and 9: ")) trys = 0 while True: if(guess == answer): print(f"YES!!! You are right!! Awesome!! The number is {answer}") pri...
9c8a1ec6a82ad0bb2421463c492225b4d7209e01
64f83970bdbd177d99d0e33332bb48ae1faa313c
/python3/Meliora 튜터링/final/oop_final.py
e430afdbac6abcc6a43afe09f771b9ee1219dd4e
[]
no_license
ndgndg91/Assignment-Service
0a2789d18c77d9b3d5c62983f0cac8cb6be48c04
6ad1c89e136e43cd60a32f13db7a44bf5e2bbc6b
refs/heads/master
2020-04-10T05:15:38.179169
2018-12-22T08:02:34
2018-12-22T08:02:34
160,821,772
0
0
null
null
null
null
UTF-8
Python
false
false
4,000
py
oop_final.py
import re # 정규식 모듈 임포트 class Digest: # 클래스 정의 f = 'Data.txt' # 클래스 변수정의 def __init__(self, file=None): # 생성자 정의 if file is None: # 객체 생성시 file매개변수값을 받지 않으면 객체file변수에는 클래스변수를 넣음 self.file = Digest.f else: # 객체 생성시 file 매개변수를 받는다면 받은 매개변수를 객체변수로 지정 self.file = file...
0050bac98bc1419208d3935f31ea7f9d0ccde29c
36c7dbb8bdac42f3b6305e9de4db4d769588f23e
/server.py
65488f68d86f6097dd2d10f68cb8e4796835bd03
[]
no_license
Miguel1402/Tunel_monitorizacion
1a049c7d389f8dea5f90db0a03f9fa887f101635
d478e9ad718af9fe8c475e70a6aca0222ea985d7
refs/heads/master
2022-12-19T23:21:23.471120
2020-09-30T07:34:09
2020-09-30T07:34:09
299,842,687
0
0
null
null
null
null
UTF-8
Python
false
false
2,792
py
server.py
import socket import pickle import time import threading import PIL from PIL import Image import pandas as pd import matplotlib.pyplot as plt import io from ventanas_emergentes import Ventana_Apertura,Ventana_principal PORT = 5050 HEADER = 64 FORMAT = 'utf-8' DISCONNECT_MESSAGE = 'DISCONNECT!' SERVER ='1...
e80b2ef3ee408b1b7ff66bae635370ce2e2fc3a8
4f1fc719a436ead1bf0a1aa2e0c96d540e1198c2
/cf_ddns.py
44fa31f16b1970e76d50661e10d7c666240cc924
[ "Unlicense" ]
permissive
woolweaver/python-cloudflare-ddns
048019a301236964e80a8c675efb9d1af87681f9
3931c2a216bd3db17a0c053eddcd5ff13911916d
refs/heads/master
2022-12-05T09:53:50.547634
2020-08-31T21:05:32
2020-08-31T21:05:32
286,190,020
1
0
null
null
null
null
UTF-8
Python
false
false
3,300
py
cf_ddns.py
#!/usr/bin/env python3 from requests import get, put from config.tokens import headers, url from config.convert_DT import con_DT # used to print date/time in local format # Find Current CF domain settings check_cf = get(url, headers=headers) # GET Info for the exact domain we want to update. check = check_cf.json() # ...
da0647840fa363a403b772945cf7dfb55045c41d
3ff86ff9537c2dc10a0264cb0159aa90d7db1f8d
/pylab/beta lab/#1.관심점 따로 담기.py
29ebb2bf8871d877f6ecb3e6a12f7b80e9c70e29
[]
no_license
Mellbrown/bookscanlab
0e21ebfdd12800b97d695f42c69d2f9ac2aba824
5bf3330c479079a4f700689e054e9a53683af5f5
refs/heads/master
2020-04-30T17:06:49.230415
2019-05-12T19:35:36
2019-05-12T19:35:36
176,969,231
4
0
null
null
null
null
UTF-8
Python
false
false
1,399
py
#1.관심점 따로 담기.py
import cv2 import numpy as np import 모드 as mode import 색 def resolution_info(image): # 사진 해상도 조사 height, width = image.shape[:2] clp = height if height < width else width clp_small = clp * 0.3 clp_large = clp * 0.5 return height, width, clp_small, clp_large def box_info (con): # 박스 조...
c1100d0a28a139fbd7a5b545e31fa337640166e5
e6392226df421e40c876bb70f2a86f3af24d6061
/study_with/210728/python_test_05-2_조건문2_문제.py
c517186489398ca034ca18b9e92ba3c21b2dbf5d
[]
no_license
jhe226/Python
f2f11d5835d71f60bf60bda84e99e3403b2da185
3dda71e29ea88dae45df5069771e7c5b4b2d4e7b
refs/heads/main
2023-07-16T01:05:07.934916
2021-09-01T07:56:33
2021-09-01T07:56:33
387,964,971
0
0
null
null
null
null
UTF-8
Python
false
false
2,406
py
python_test_05-2_조건문2_문제.py
# 조건문 추가문제 (if~elif~else) ''' [문제] 키를 입력받아 185cm이상이면 Tall, 145cm이하면 Short, 그 외에는 Regular를 출력하는 프로그램을 작성하시오. [출력결과] 키를 입력하세요 : 180.0 Regular ''' height = float(input('키를 입력하세요 : ')) if height >= 185 : print('Tall') elif height <= 145 : print('Short') else : print('Regular') print() ...
e0d0c055a4ccabf69d9ff0a1e08e0b98fcb6fecd
8a7d4e7348e7cf75ea65d857f140d0454add6f84
/tests/unit/ska_tmc_cdm/schemas/central_node/test_release_resources.py
fcbaaa83dcff3a8cc081c4716dc21dbcca2d69e2
[ "BSD-3-Clause" ]
permissive
ska-telescope/cdm-shared-library
d1812ed010a09765a5be5a41d1c7e8e9694d110a
87083655aca8f8f53a26dba253a0189d8519714b
refs/heads/master
2023-09-01T08:27:16.704307
2023-08-08T13:01:10
2023-08-08T13:01:10
191,747,755
0
0
BSD-3-Clause
2023-02-10T13:48:25
2019-06-13T11:11:28
Python
UTF-8
Python
false
false
3,527
py
test_release_resources.py
""" Unit tests for ska_tmc_cdm.schemas module. """ import pytest from ska_tmc_cdm.messages.central_node.common import DishAllocation from ska_tmc_cdm.messages.central_node.release_resources import ReleaseResourcesRequest from ska_tmc_cdm.schemas.central_node.release_resources import ( ReleaseResourcesRequestSchem...
2d1fb8312b157c8167abe773765a501c4e6adde5
bfdcedfc098f57a7ad986e7710b7ff01ef85ca88
/Model/mob.py
00899924f2bd631768373bc0b81832874ed6f924
[]
no_license
daviz888/toratora
058f1b349f934ea5a885195aab5bc908650d0b08
d68bf767c3d3be03e2599bf4e760f100c60aad39
refs/heads/master
2020-03-31T13:55:29.676808
2018-11-04T18:13:00
2018-11-04T18:13:00
152,273,293
0
0
null
null
null
null
UTF-8
Python
false
false
1,179
py
mob.py
import os import pygame import random from pygame.sprite import Sprite from Shared.gameSettings import GameSettings class Mob(Sprite): def __init__(self): super().__init__() self.__filename = str(random.randrange(0, 5)) + '.png' self.image = pygame.image.load(os.path.join(GameSettings.ASS...
3a1d9233cb81ea09e924577e2e81074faa89b714
ec5d2d4e347f1397e57f14f3316d9a4a96bba9c4
/4(a).py
61467d2c76c537351e66891b1d2533c64e615d28
[]
no_license
zhengqiliu/CSE242_HW5
131cf8d4877c7b3278b27661c486307d7c39ddbb
50da31a4d73c43bdd1ce870075ce3b0722081c06
refs/heads/master
2020-09-24T14:52:45.710341
2019-12-04T05:14:16
2019-12-04T05:14:16
225,784,397
0
0
null
null
null
null
UTF-8
Python
false
false
1,328
py
4(a).py
import numpy as np import pandas as pd import time from sklearn import tree from sklearn.model_selection import train_test_split from sklearn.neural_network import MLPClassifier from sklearn.ensemble import RandomForestClassifier from sklearn.metrics import accuracy_score from graphviz import Source from IPyth...
d9aa816a142da9c51b1cdf8940b1e56574e89cdc
85fd32fc2d482ef428a47ff2add6cd35e08281ef
/data_structures/stacks_queues/stack_implementation_linked_lists.py
6686dac719df0604fa19ff0f34292f6f13ca7ce4
[ "MIT" ]
permissive
davidhansonc/data_structures_algorithms
f27b5dd16f9cee314c8d18cbf3addce72699ef6b
6c81fad69a707eeed4c6310f450782900506b623
refs/heads/main
2023-03-02T15:41:45.757173
2021-02-16T01:34:17
2021-02-16T01:34:17
334,253,198
0
0
null
null
null
null
UTF-8
Python
false
false
1,830
py
stack_implementation_linked_lists.py
# -*- coding: utf-8 -*- # @Author: davidhansonc # @Date: 2021-01-23 13:37:35 # @Last Modified by: davidhansonc # @Last Modified time: 2021-01-25 21:45:57 class Node(): def __init__(self, data=None): self.data = data self.next = None def __str__(self): return self.data class Stack()...
3765be74528ad00d4095548116da64cda7608c79
7d6b23917054299a0c61712fe6313249b11cfb40
/scope.py
ee641978b335af0ca571e9b2f6992b28b947666f
[]
no_license
ZakawarMaw/python-learning
9e0ab22805960a0ad9e3c7a3f0b93646a7ffc39c
9a5a1b6f18058757bea569bc4844f18af4b21563
refs/heads/master
2023-07-17T06:39:07.943075
2021-08-22T10:12:54
2021-08-22T10:12:54
389,374,128
0
0
null
null
null
null
UTF-8
Python
false
false
121
py
scope.py
name = 'Zakawar Maw'; def SayMyName() : global name; name="Lisa"; print(name); SayMyName(); print(name);
7c86592eb6203befc17b59359e05957cda7396e6
798527a5f96486fe6a64f94ac7abc75c4f1338dd
/code/word_clouds.py
39d04a8d5e93c60590c75d5dd585ea8b4f4bc105
[]
no_license
rt80119/fnewspapers
d8b91a2afc02bcdf0ba811b683658cc78c312d19
1e7b7cf2040b9052e281541935297235b1677038
refs/heads/master
2020-12-11T09:07:10.453835
2015-05-15T08:08:00
2015-05-15T08:08:00
35,863,012
0
0
null
2015-05-19T06:16:13
2015-05-19T06:16:13
null
UTF-8
Python
false
false
982
py
word_clouds.py
from os import path import matplotlib.pyplot as plt from wordcloud import WordCloud import codecs import sys def get_frequencies(filename): f = codecs.open(filename, 'r', 'utf-8') x = [] for i, line in enumerate(f): if i == 0: continue parts = line.split(',') word = part...
eb203bc93476b7b993df8e1b31c573a6242be77d
f71aecb0e91fe877af3ec652c7f6753a1e7b5ccd
/TrappingRainWater_HARD_42.py
b74a4464270be0ee0ed437d4c5f9d2a05949f875
[]
no_license
953250587/leetcode-python
036ad83154bf1fce130d41220cf2267856c7770d
679a2b246b8b6bb7fc55ed1c8096d3047d6d4461
refs/heads/master
2020-04-29T12:01:47.084644
2019-03-29T15:50:45
2019-03-29T15:50:45
176,122,880
2
0
null
null
null
null
UTF-8
Python
false
false
2,988
py
TrappingRainWater_HARD_42.py
""" Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining. For example, Given [0,1,0,2,1,0,1,3,2,1,2,1], return 6. The above elevation map is represented by array [0,1,0,2,1,0,1,3,2,1,2,1]. In this case, 6 units of rain wa...
e589b182793fd29ad39e20b358dc074cecda6079
847f94217951a3afc98b22317662c34c6063e762
/plabpart2.py
f6cd19cc193ddf15b9d40a2c8f097336bcb50c0c
[]
no_license
tashakim/puzzles_python
abf8c4cca4046e3ab611cab2efd33265ece4e954
95a86cbbca28d0c0f6d72d28a2f1cb5a86327934
refs/heads/master
2023-08-30T19:28:55.134966
2021-11-04T03:50:04
2021-11-04T03:50:04
247,339,457
8
1
null
2021-06-11T03:38:40
2020-03-14T19:22:38
Python
UTF-8
Python
false
false
687
py
plabpart2.py
class Student: def __init__(self, c): self.name = "Tasha" self.concentration = c self.year = 2021 def set_concentration(self, c): self.concentration = c def print_student(self): print(self.name) print(self.concentration) print(self.year) class Animal(): def __init__(self, kg, bree...
291bb2a361b9b23543263f6a0000467fd99bacad
5725ed431bdf3f21a947f927a28e35d10cc42616
/streamlit/ui.py
12bf66088b03e5bceed6fc917a8053169051b2c7
[ "MIT" ]
permissive
NastasiaSaby/streamlit-fastapi-example
a65130eb032774b24487357a1be8df3a5e3297cf
f13d112b23d5d0af7be017a4a3f8c78407210ab8
refs/heads/master
2023-05-30T03:35:34.660560
2020-07-15T08:46:14
2020-07-15T08:46:14
278,308,780
0
0
MIT
2021-06-10T15:49:03
2020-07-09T08:34:34
Python
UTF-8
Python
false
false
977
py
ui.py
import streamlit as st import requests st.title('Form example: What is your favourite film?') # fastapi endpoint url = 'http://fastapi:8000' endpoint = '/postfilm' option = st.selectbox( 'How would you like to be contacted to speak more about your favourite film?', ('Email', 'Home phone', 'Mobile phone')) ...
e37666d7c7d2f2e46efaa0c6502baf3711d8f1d8
4a6c475432cfe655531fa4cbe0a0a1bdc6d6d43b
/models/fms.py
13088584b8b742c6756c8a77489beae9eed5bd19
[]
no_license
wahabalimalik/property_management_system
3611d0e2fe4cc57d1b4353dd7167504d3c57f1e9
10125eb24c902d668d2d1166ffdc80d436c8bfe0
refs/heads/master
2020-04-03T15:38:26.934056
2018-11-28T12:55:49
2018-11-28T12:55:49
155,370,233
0
1
null
null
null
null
UTF-8
Python
false
false
3,694
py
fms.py
# -*- coding: utf-8 -*- from odoo import models, fields, api, _ class MembersFileDetail(models.Model): _name = 'member.file.detail' file_number = fields.Char('File Number', required=True, copy=False, readonly=True, index=True, default=lambda self: _('New')) society = fields.Many2one('society','Society',...
46d518ec5022589fe3931587e6d5f076cffd912c
2f89422affb4f526a8cabd47aea1c438489be595
/Viikko_1/prime.py
24a1f6fee77de2cac4a45fa353961555f6a9f80d
[]
no_license
markku63/mooc-tira-s20
46be908a97011660fda3a2c367d64a51402ceb23
ffb8c598e264bf8bc6672ffb68f4cea5d5b38c1a
refs/heads/master
2023-01-24T18:03:52.656237
2020-12-09T09:24:09
2020-12-09T09:24:09
295,621,319
0
0
null
null
null
null
UTF-8
Python
false
false
316
py
prime.py
from time import perf_counter count = 0 n = 100000 alku = perf_counter() for i in range(2, n+1): prime = True for j in range(2, i): if i%j == 0: prime = False break if prime: count += 1 loppu = perf_counter() print("Alkulukuja:",count) print("Aika:",loppu - alku)
802a36e71051b0be9784ae3365b1d7980b790147
6e449f8a6c77eccd2f21b591b90287fbc0f87fee
/2020/03/p2.py
2afa7b0fe7272c8655360a5788bf4e9199f686a9
[]
no_license
dmitrii-ubskii/advent-of-code
fef86b23c6a9080dcaba7a6a781ee6d6178ff466
b2727bab388b4842ae78fe23a3aedcf3f354f399
refs/heads/main
2023-02-06T09:58:47.749769
2020-12-25T23:34:03
2020-12-25T23:34:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
505
py
p2.py
#!/usr/bin/env python3 from math import prod vs = [(1, 1), (3, 1), (5, 1), (7, 1), (1, 2)] trees = {v: 0 for v in vs} with open('input') as f: xs = [0] * 5 ys = [0] * 5 for h, line in enumerate(f): for i, (x, y, v) in enumerate(list(zip(xs, ys, vs))): if y == h: if line...
aa2531611483c67087726d878b375e101755cdaa
aacb7e199cf1791e1ec337004dfa577dc1c68d62
/logi-ugv/sw/ugv_simulator.py
f924a8bfbe3729aa6cac6c83cf631813a298786e
[]
no_license
peepo/logi-projects
62714fb55f14a93d864d2455b01f3e4c70472e34
e4d2b49c627b656d53e1980f2ec3161c9abb2f46
refs/heads/master
2020-12-28T23:46:26.972663
2015-02-16T14:24:29
2015-02-16T14:24:34
29,731,827
1
0
null
2015-01-23T12:35:52
2015-01-23T12:35:52
null
UTF-8
Python
false
false
4,288
py
ugv_simulator.py
import numpy from path_tracking_service import PurePursuit as TrackingService from state_estimate_service import RobotState from gps_service import GpsService from math import radians, cos, sin, asin, sqrt, atan2 , degrees CONTROL_RATE = 50 TRACKER_RATE = 1 MAX_SPEED_MS = 10.0 # 10m/s is max speed (36km/h), this p...
b85af622e3dbd762f940441a96253f3b993f0078
09952f23c457b16b4c5e43608730bfbae18ff63e
/quiz.py
ab743a626e3b2b56aa14ce09ad183d1dfe0bc32d
[]
no_license
greenlove/wesquiz
195f7e1be73c60e1b9f50999291f31aa7741cc2e
9e9566d61813ed5b924e137842447034f73a0f44
refs/heads/master
2020-03-30T02:53:35.164060
2019-04-30T00:14:08
2019-04-30T00:14:08
150,656,897
0
0
null
null
null
null
UTF-8
Python
false
false
1,669
py
quiz.py
import sys import json import random import argparse if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("quizfile", help="quiz file to run", type=str) parser.add_argument("--hard", help="no helper sentences", action="store_true") ar...
cdb917deeaab8edcf456ffc2f300754b78e5d3b5
632cae5445db2426f1b42a9092eb7a23ffd14300
/setup.py
683e0acb7ad061169382826ce4682bcad0801b28
[ "MIT" ]
permissive
Starwort/domgen
14db7f66f7c860adc7ca45c41244ddc7944cbbe8
598f57c2d365cdef353ed1b373a274715c896867
refs/heads/master
2023-03-01T09:29:03.088787
2021-02-12T22:09:53
2021-02-12T22:09:53
336,905,544
0
0
null
null
null
null
UTF-8
Python
false
false
674
py
setup.py
import setuptools import dom with open("README.md", "r") as file: long_description = file.read() setuptools.setup( name="domgen", version=dom.__version__, author="Starwort", description="A package for generating HTML and CSS", long_description=long_description, long_description_content_ty...
73701474612e059a3870e676f878c9e2f7ce23a0
788177d3eadb5138221696e1fbc4c014d6cc39b9
/Day072 [Hard].py
7d9b79b6f3b916676d0c2bfc93ff41000dda0261
[]
no_license
lajoh20/code_challenges
ec82fe1329623f1100884b057bd3eff44a8eead6
2aa2e3cd26a5b24479c30f8c972889fc8cd9373b
refs/heads/master
2021-12-15T07:45:43.168382
2021-12-03T13:33:49
2021-12-03T13:33:49
243,252,812
0
0
null
null
null
null
UTF-8
Python
false
false
21,665
py
Day072 [Hard].py
Delivered-To: lewisjohnson1066334@gmail.com Received: by 2002:a17:906:1dd1:0:0:0:0 with SMTP id v17csp4029788ejh; Tue, 5 May 2020 08:39:13 -0700 (PDT) X-Google-Smtp-Source: APiQypIKNZEBe6wUBhPwY7RxR0yv7ZqClbkrKtrWEimXLK6AkLPx+YZItefG+dC0zWdaCXN8jlNK X-Received: by 2002:aed:3f92:: with SMTP id s18mr3255665qt...
3e5240f608c1bdef72de19475b9312a3518d1044
afcf9fe16f3b0d51dde9e4c61413b3579f934dba
/forest_functions.py
20877e816a733b72099c4a858fac3f759a70a6e3
[]
no_license
kiminh/neural_ensemble_trees
acbccc48ddf0578ae6ca9755a252e5135c4e009d
b1d9af0b9e0ce23dba36cf4349634488150c2885
refs/heads/master
2021-09-24T07:08:39.616951
2018-10-05T00:16:38
2018-10-05T00:16:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,479
py
forest_functions.py
# -*- coding: utf-8 -*- """ Created on Wed Feb 12 14:37:22 2014 @author: johannes.welbl@gmx.de """ import numpy as np from sklearn.ensemble import RandomForestRegressor def GetTreeSplits(rf): forest = rf.estimators_ featurelist=[] #collection of arrays, one for each tree threshlist=[] ...
698417bb6367db78ebcf65a38555bb1c9c7404dc
7bac5f6effcfea85aa8ec1ae4442b999273d2c54
/SQLite/Projetos/Caixa_Supermercado/teste.py
c1101312f9a7aef738c6f6a9e51bd28af47e66d3
[]
no_license
Nilsonsantos-s/Python-Studies
dd99cdca3e27341def64136913a7b609d79a337d
c8e230352c003cc12b88fa45a45b313e8e6dda78
refs/heads/master
2023-08-15T12:36:53.466042
2021-09-21T20:43:43
2021-09-21T20:43:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,413
py
teste.py
# produtos = ['000001','Pipoca','01','2,59','000002','Manteiga','01','4,20'] # produtos = list(produtos) # pesquisar = '1' # if len(pesquisar) < 6: # pesquisar = ('0' * (6 - len(pesquisar))) + pesquisar # codigo_indice = produtos.index(f'{pesquisar}') # codigo = produtos[codigo_indice] # produto = produtos[codigo_i...
e32477ce158ad9eedab2c40c72578f56dcdc25d0
2e83e004d8a69a773d1e305152edd16e4ea35ed8
/students/eric_grandeo/lesson06/test_mailroom4.py
329844ac5537faa786a04ec2c96493bf2b35b11a
[]
no_license
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
9b170efbab5efedaba8cf541e8fc42c5c8c0934d
76224d0fb871d0bf0b838f3fccf01022edd70f82
refs/heads/master
2021-06-16T20:14:29.754453
2021-02-25T23:03:19
2021-02-25T23:03:19
161,077,720
19
182
null
2021-02-25T23:03:19
2018-12-09T20:18:25
Python
UTF-8
Python
false
false
1,915
py
test_mailroom4.py
#test suite import mailroom4 from collections import OrderedDict import os #Send thank you tests #test donor list donors2 = {"Paul Allen": [175, 200], "Tim Cook": [200, 75], "Eric Grandeo": [50]} #test adding a new donor and donation def test_add_donor(): donors = {"Paul Allen": [175, 200]...
d442441183272f41289ffeb30787ce8814050542
1600e7ee6263d2f259a6435629513738dcfb31c6
/family.py
b9e2ab8b015bfde0c4c12552ce5aecd0102a4026
[ "Artistic-1.0", "Artistic-2.0" ]
permissive
dnil/OGTtoPED
9443621fb51505f732a0f8d614f1a9b33d7048ee
5d394bcaa8636903a9f7a77386887f47ca52f848
refs/heads/master
2021-01-22T06:36:49.024752
2015-08-04T08:59:42
2015-08-04T08:59:42
40,123,042
1
0
null
null
null
null
UTF-8
Python
false
false
4,126
py
family.py
import config def update_family(family): """Update the family list of samples with info record implicit data.""" mother = None father = None # First, determine parents for sample in family: if sample.info.find("mother") != -1: sample.motherID = 0 sample.fatherID = ...
34667e1ee433c0a780284b3bdb851beda3e20799
c8795d0fe0a1cf967d12e8a9186251cb9abf3120
/Prof2018/test_2.py
e11912c64825615fa9a9c964d93db254c3de2ba4
[]
no_license
DongusJr/Verkefni_HR_2019_Haust
eaf90b11ca9cac035371b451fe3efd5ac6894b2c
dc9f661f05fd8d91b0334b5f7bdbb880805fb287
refs/heads/master
2020-07-28T04:06:55.439521
2019-12-01T20:14:52
2019-12-01T20:14:52
209,303,264
0
0
null
null
null
null
UTF-8
Python
false
false
1,810
py
test_2.py
# Constants to be used in the implementation DIM = 5 POSITION = 'o' EMPTY = 'x' LEFT = 'l' RIGHT = 'r' UP = 'u' DOWN = 'd' QUIT = 'q' def get_move(): ''' Returns a move corresponding to the user input direction ''' move = input('Move: ') if move not in [LEFT, RIGHT, UP, DOWN]: return QUIT els...
8609f705b2de19901ba369f6b0a5bdd2a2364324
4b5dcb620b1df529af2d65b97aff97113f5184d6
/solvent/commonmistakes.py
87db9284559fa60f526049437cd51745c7d99604
[ "Apache-2.0" ]
permissive
Stratoscale/solvent
f4fc525870c009948877e9e76e9f3ef44433e2db
37baf4b9929b7d894cdb090bb4874d7a782a2c38
refs/heads/master
2023-02-09T14:40:43.346926
2017-08-30T10:35:57
2017-08-30T10:35:57
21,088,613
0
2
Apache-2.0
2023-01-23T11:25:57
2014-06-22T07:56:35
Python
UTF-8
Python
false
false
1,017
py
commonmistakes.py
from solvent import run import os class CommonMistakes: def checkDirectoryBeforeSubmission(self, dir): under = self.mountedUnder(dir) if len(under) > 0: message = "there are active mount points mounted under '%s':\n%s" % ( dir, "\n".join([m['path'] for m in under])) ...
8e09f15a4a469c5be81f36018075104092d0b08a
8ab265b09af7c968803875e9da2e8a3620fa6f7c
/stock_invoice_directly/wizard/stock_invoice.py
d2c553d2e6f8a13804953b772f6d78f619d29f5c
[]
no_license
limweb/my-openerp-addons
5be34a4611c265055096f8cd0479e68d0f5eb6d2
1c30894b5ce5249261f1dae297ed427d78813b02
refs/heads/master
2021-01-01T18:11:37.685202
2012-10-27T08:16:41
2012-10-27T08:16:41
32,463,325
0
0
null
null
null
null
UTF-8
Python
false
false
2,275
py
stock_invoice.py
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
fe2cd0af31d412e16efb4da9840be47b4e95d2bf
dad9b7c13578df4189b9f84e1ac86174ec82eb85
/backup/20150202/common.py
86401bea9316b98104dbd2e06fc44b72d5c4d5e8
[]
no_license
zeus911/astoptool
2d082d4a2cfed9ba6df4a7c7b6e218a627eca2b2
11d400fc3cb5779174b9b97deebcc081ac3ebf89
refs/heads/master
2021-01-22T20:50:18.068680
2016-06-03T07:04:24
2016-06-03T07:04:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,914
py
common.py
#!/usr/bin/env python #-*- coding:utf8 -*- import re,sys,hashlib import ssh,check import traceback import mysql,arg def getServerWip(interIp): get_outip_from_zichan = arg.gameOption("get_outip_from_zichan",type="bool",default=False) iplist = [] if not get_outip_from_zichan: sshobj = ssh.ssh(interIp....
5c8181d6ff8438d33cb6651f3e787602bd6c4b03
a37b756e34fc39c1237fc68997dbef77df9fa6fc
/keras/keras45-55/keras54_imdb.py
b502cf0d17177b97a1eb72d04984e816946b828d
[]
no_license
jvd2n/ai-study
e20e38493ad295940a3201fc0cc8061ca9052607
a82f7c6d89db532f881c76b553b5ab3eea0bdd59
refs/heads/main
2023-08-06T03:24:39.182686
2021-10-06T14:41:01
2021-10-06T14:41:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,236
py
keras54_imdb.py
from tensorflow.keras.datasets import imdb import numpy as np import pandas as pd import re import matplotlib.pyplot as plt from icecream import ic (x_train, y_train), (x_test, y_test) = imdb.load_data(num_words=10000) # print(x_train[0], type(x_train[0])) # print(x_test[0]) ic(x_train.shape, x_test.shape) # (25000,)...
8d052350be2a02ffa8e95be76c45fe6dc425359e
350fb646b3011ad16ba7a8fcfa145cd559f09ede
/firstproject/firstapp/views.py
b9a88c41a74bfcb503f6887fbd5ab7b25e46b2ac
[]
no_license
veerareddy12/Hello--World
a9de9505e28024bcd936308d93e9a285d0399b77
5fa51e40f72a5a97651791308faf232c5d02f48f
refs/heads/master
2022-12-08T07:24:52.789751
2020-08-20T11:27:17
2020-08-20T11:27:17
288,985,783
0
0
null
null
null
null
UTF-8
Python
false
false
301
py
views.py
from django.shortcuts import render from django.http import HttpResponse # Create your views here. def welcome_django(request): s1="<center><h1 style= 'color:red'> HELLO GOOD AFTER NOON</h1></center>" s2="<center><h1 style= 'color:pink'>WELCOME</h1></center>" s3=(s1,s2) return HttpResponse(s3)
e1dcf8858bd001481304299c7be0ee758e44c246
e6015e55342e3d7f981b2579eb315bb690e34bd9
/LastStand/Locale.py
dd8fa566aeffe0cc506c63c7698e25cee2aed487
[]
no_license
jlmcdonough/Intro-To-Programming
04a7631a97d871c74552368d954ed48ea1662b07
4d486aa1be8f22d71f5792a54ed84d9bdf73844e
refs/heads/master
2020-03-27T16:32:47.214721
2019-02-08T19:55:52
2019-02-08T19:55:52
146,790,845
0
0
null
null
null
null
UTF-8
Python
false
false
580
py
Locale.py
#Locale class from random import randint class Locale(): def __init__(self, name, description, chance1, chance2): self.name = name self.description = description self.chance = int(randint(chance1,chance2)) self.item = None self.hasBeen = False self.uses = 0 def...
2d76acce7edf57502b5b8047acaa1e494c68534e
8083f95926092dd4c5cb18427d14b6513316a14a
/pyVmomi/eam/fault/__init__.pyi
2db7046fd45ca643e4a92dc095a8ad8db75037df
[ "Apache-2.0" ]
permissive
vmware/pyvmomi
8c71b00a8d4f46c0dbb2d0739c5b35278d7e71f7
f0fe4e279cebdfdbca5bfce699063d15b1d3bd1d
refs/heads/master
2023-09-01T17:56:48.138993
2023-07-19T08:35:49
2023-07-19T08:35:49
15,169,689
2,122
942
Apache-2.0
2023-07-12T09:11:22
2013-12-13T17:30:30
Python
UTF-8
Python
false
false
2,335
pyi
__init__.pyi
from typing import List from pyVmomi import eam, vim, vmodl class DisabledClusterFault(EamAppFault): @property def disabledComputeResource(self) -> List[vim.ComputeResource]: ... @disabledComputeResource.setter def disabledComputeResource(self, value: List[vim.ComputeResource]): self._disabled...
1ff2fa40318fe3edc2c5bc27580b3cb339956010
646d03cd3726dcf422a7b8392072c0ed9931df7b
/AoV2017/4/second.py
e2bd2c00724ee7b8dd86f2e5fa71084581a5a529
[ "MIT" ]
permissive
AdrianKrige/AdventOfCode
a0fd1de6b26a78d05096e742f5f4d843cdf7d580
481baf134de24050c7fa6ec1e98a90a5d1e28106
refs/heads/master
2021-08-28T15:29:16.777633
2017-12-12T16:15:04
2017-12-12T16:15:04
113,362,811
0
0
null
null
null
null
UTF-8
Python
false
false
372
py
second.py
#!/usr/bin/env python import re with open('file.txt', 'r') as file: n = 0 for line in file: words_list = line.strip().split(' ') new = [] for word in words_list: c = list(word) new.append(''.join(sorted(c))) words_set = set(new) if len(words_set)...
f9a9eb4ca8a88ad9970c81e2631e453cf3bb4374
19417792f7bd0007a20ad85ddc70befc44468e3d
/shopping_bag/tests/test_views.py
49a777b392ec90c82331b617a3dc602c4ccd6c44
[]
no_license
mattjboland/ci-milestonefour
8e28bd65cf639bb34b6996498eabf9ca08d5c943
5995f8a39f27a2df54de484bda2ff700ecac3bb4
refs/heads/master
2023-01-21T10:54:34.619765
2020-11-30T23:54:09
2020-11-30T23:54:09
310,245,019
0
1
null
null
null
null
UTF-8
Python
false
false
301
py
test_views.py
from django.test import TestCase class ShoppingBagViewTests(TestCase): # Main Page def test_main_page(self): response = self.client.get("/shopping_bag/") self.assertEqual(response.status_code, 200) self.assertTemplateUsed(response, "shopping_bag/shopping_bag.html")
79aa80c34278aaf22392156a849da68cb72ef619
b77cc1448ae2c68589c5ee24e1a0b1e53499e606
/appraisal/migrations/0027_auto_20170720_1320.py
15e4e74f27793269dbcc09f7a370b28097e5df51
[]
no_license
PregTech-c/Hrp_system
a5514cf6b4c778bf7cc58e8a6e8120ac7048a0a7
11d8dd3221497c536dd7df9028b9991632055b21
refs/heads/master
2022-10-09T07:54:49.538270
2018-08-21T11:12:04
2018-08-21T11:12:04
145,424,954
1
1
null
2022-10-01T09:48:53
2018-08-20T13:58:31
JavaScript
UTF-8
Python
false
false
812
py
0027_auto_20170720_1320.py
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2017-07-20 10:20 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('appraisal', '0026_auto_20170720_0852'), ] operations = [ migrations.AddField(...
24249ce87cac459ae1ca66e33f842b6b7471f7de
631b890e79d01da3cdad8e6fded5c3cf1c39d0a5
/tests/test_pycard.py
dc13b781f875341ada92e10f05c4b9eadb1ba326
[ "MIT" ]
permissive
xguse/pycard
095f7b3f3b8d5cbaba6360c3edfebbe3f74a823c
4e1220a97abf3805e9d14743d1f994312c88908a
refs/heads/master
2021-01-22T13:57:02.261897
2015-10-20T19:54:54
2015-10-20T19:54:54
44,019,635
0
0
null
null
null
null
UTF-8
Python
false
false
945
py
test_pycard.py
import os import pytest import click from click.testing import CliRunner import pycard.main as main echo = click.echo @pytest.fixture def os_environ(request): environ_ = os.environ.copy() os.environ.clear() def reset_os(): echo("resetting os module.") os.environ = environ_ reques...
81cb9ee024a90c0798c6f4981d437fd84662970c
e283907738e88196026d0a2ad45c968bbb0bd18b
/classes/common_functions.py
ec8e1fceb5db502f91ae50bc40ba5e1dfdd48d10
[]
no_license
reinaldorossetti/junit_and_ddt_project
dcd47876226a4ae1761edd318b7064067cf98669
0bdd2e90623fcde5ff21355fa105cc29be75728b
refs/heads/master
2021-01-12T06:19:05.910343
2016-12-25T20:27:16
2016-12-25T20:27:16
77,340,644
0
0
null
null
null
null
UTF-8
Python
false
false
8,743
py
common_functions.py
__author__ = 'Reinaldo M. R. Junior' from time import * from selenium import webdriver from selenium.webdriver.common.desired_capabilities import DesiredCapabilities import linecache from selenium.webdriver.support.ui import WebDriverWait # available since 2.4.0 from selenium.webdriver.support import expected_con...
8ce81b7940470d94eda224b4028e3b6d5a2469fc
fd7a01a2d83f1d9b0c899860ba3ac261f7101a0a
/webtext/website/views.py
dde49d37a6c9cf1c59c8ece42b8696632e9d5cd2
[ "MIT" ]
permissive
stricoff92/webtext-analysis
2bd275c4a6b97b409504b9e5d2c6e99a30cb2f2f
9a6e5637e6695ee4ae68d182bb7a07c4beef7cca
refs/heads/main
2023-03-17T10:14:40.065666
2021-03-19T20:17:46
2021-03-19T20:17:46
348,480,244
0
0
MIT
2021-03-19T15:56:14
2021-03-16T20:18:14
Python
UTF-8
Python
false
false
1,603
py
views.py
from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_required from django.http import HttpResponse from django.views.decorators.http import require_http_methods, require_safe from rest_framework import status from we...
7e1c9590f1f11f4fd1ddca4d2577e5f5560ab5a8
5390f656a157dfd05f3d652f763ac9544500b03b
/core/tictactoe.py
e3ea5cecff4f0a5aeeb85cb0f91825a518965df8
[]
no_license
veteransgroup/leetcode
6114a80748c89a0a38ad4fef03072a39a3d54b0c
f4368d391f92745bc807145a4f385f8f7269c22a
refs/heads/master
2023-04-04T13:48:47.580071
2021-04-20T04:22:23
2021-04-20T04:22:23
311,269,170
0
0
null
null
null
null
UTF-8
Python
false
false
3,697
py
tictactoe.py
import sys def who_win(outputs, empties): winner = "Draw" if empties == [] else "continue" for i in range(3): if outputs[0][i] == outputs[1][i] == outputs[2][i]: if outputs[0][i] not in ("_", " "): winner = "Impossible" if outputs[0][i] != winner[0] and winner.endswith("win...
28fec3300303e6aab66dd425f0a32807748e44ee
dc7dc1ab85403a4467044d4c0c936c17fff5225a
/fstmerge/examples/Fail2ban/rev579-759/right-branch-759/testcases/actiontestcase.py
12f392ad2ca9aae9c840c258087ae9a97253ef57
[]
no_license
RoDaniel/featurehouse
d2dcb5f896bbce2c5154d0ba5622a908db4c5d99
df89ce54ddadfba742508aa2ff3ba919a4a598dc
refs/heads/master
2020-12-25T13:45:44.511719
2012-01-20T17:43:15
2012-01-20T17:43:15
1,919,462
0
0
null
null
null
null
UTF-8
Python
false
false
759
py
actiontestcase.py
__author__ = "Cyril Jaquier" __version__ = "$Revision: 1.1 $" __date__ = "$Date: 2010-07-25 12:46:54 $" __copyright__ = "Copyright (c) 2004 Cyril Jaquier" __license__ = "GPL" import unittest, time from server.action import Action class ExecuteAction(unittest.TestCase): def setUp(self): """Call before every test case...
c92315d9c3d780c5227520abbe5c7c28b11b4716
7b4f8f348586576578668805367086ad63e9b1ab
/torneos/models/torneo_model.py
ed1dc95e3e243028e2e7030dd2ff5674ea833a97
[]
no_license
rmaso/hokimi
15d9dde5007e9aec26c5b94c410475f810a16f00
7b31bc949035b22b12f350ba18bad8c9d27883d7
refs/heads/master
2021-01-18T21:35:25.467292
2017-05-22T21:30:30
2017-05-22T21:30:30
84,370,286
0
0
null
null
null
null
UTF-8
Python
false
false
2,011
py
torneo_model.py
from django.db import models from djangocms_text_ckeditor.fields import HTMLField from django.contrib.auth.models import User from django.core.files.storage import FileSystemStorage import hokimicms.settings as s class TorneoManager(models.Manager): def user_registered(self, user): """Returns competitions that th...
50126bf47b237113ddc524d5c9d050fac1fa3769
55efa4325c4d7b59ff4c0ab0a609f7fb164c9184
/phase2/tf_idf.py
54e5a91fd01c3ea35158b7092a69fdb7c3620c8d
[]
no_license
mahsirat-atiye/MIR
17461d90ee78142d57edd68743e78fd847f85f6b
dd7b537fd3b130ca572ca5af85c650af10ac7339
refs/heads/master
2022-07-05T09:45:16.509612
2020-05-17T20:08:51
2020-05-17T20:08:51
264,747,646
0
0
null
null
null
null
UTF-8
Python
false
false
6,877
py
tf_idf.py
import re import string import json import pandas as pnd import numpy as np from collections import defaultdict from nltk.corpus import stopwords from nltk.stem import WordNetLemmatizer from nltk.stem import PorterStemmer from nltk.tokenize import word_tokenize from phase2.config import Config def my_log(x): i...
3b58e5440c572128f50e64c3c0b3cee9f8e38f89
dfb26d658e1274ed87901f6e519be98ef82e9a11
/PostDiffMixture/simulations_folder/simulation_analysis_scripts/checkpickle_arghavan.py
0b9861f42ac00e26b25c402d5200387ea3eb9b1b
[ "Apache-2.0" ]
permissive
SIGKDDanon/SIGKDD2021DeAnonV2
dfbae58a6849f0c5d4842e26954751cf4d2380ea
76f0373ec42ab55feefed3f4ce4bf4d532b51dd2
refs/heads/master
2023-04-02T12:25:44.111826
2021-04-06T14:11:24
2021-04-06T14:11:24
337,293,613
0
0
null
null
null
null
UTF-8
Python
false
false
17,245
py
checkpickle_arghavan.py
import matplotlib matplotlib.use('Agg') from table_functions import * import pickle import os import pandas as pd import matplotlib.pyplot as plt import sys import numpy as np import os from scipy import stats from matplotlib.pyplot import figure import glob import numpy as np from hist_functions import * import scip...
4ea7fefe139ce5b0b2606118a45a5b6b6a121ffc
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/16_0_3/shubhampatwa/third.py
919f06a82be4d8e7d1880dc3ebd3646497d8ae0f
[]
no_license
DaHuO/Supergraph
9cd26d8c5a081803015d93cf5f2674009e92ef7e
c88059dc66297af577ad2b8afa4e0ac0ad622915
refs/heads/master
2021-06-14T16:07:52.405091
2016-08-21T13:39:13
2016-08-21T13:39:13
49,829,508
2
0
null
2021-03-19T21:55:46
2016-01-17T18:23:00
Python
UTF-8
Python
false
false
994
py
third.py
# your code goes here import itertools,math def isprime(n): if n==1:return 0 for i in range(2,int(math.sqrt(n))+1): if(n%i==0): return 0 return 1 def arr(): for x in range(1,11): for y in range(0,32): l.append(x**y) l=[] arr() t=int(input()) for d in range(t): n,k=map(int,input().spli...
e0be2622c7339aaa5f14168248c2f66f69c7413a
f2012587250088b989789fdea914e0b9f81f0c3d
/api/alembic/versions/fc35809c2b8d_add_urlGone_and_urlNotFound_in_content.py
95c59f2856ff2ebd37d01f6169e46bb5381a64b1
[]
no_license
dnow2000/feedback-main
918469f79144de18dfce03f1a5ff4c8a1972ce1f
101add2909c359c549e690460f3dd6a71a331674
refs/heads/master
2023-01-22T20:26:14.191807
2020-11-19T06:06:29
2020-11-19T06:06:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
670
py
fc35809c2b8d_add_urlGone_and_urlNotFound_in_content.py
"""add urlGone and urlNotFound in content Revision ID: fc35809c2b8d Revises: 37897e6db38a Create Date: 2020-07-25 14:29:21.016162 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'fc35809c2b8d' down_revision = '37897e6db38a' branch_labels = None depends_on = Non...
4cf973d79ef9d5fd8d6268f61a1f88d5c037b411
6351221d588668804e2df01936732eede4d96ed0
/leetcode-cn/Python/684.冗余连接.py
96a07c02c3391d51c8a17f081db23e2544281821
[]
no_license
LogicJake/code-for-interview
8e4ec9e24ec661a443ad42aa2496d78a1fbc8a3f
5990b09866696c2f3e845047c755fa72553dd421
refs/heads/master
2021-09-20T20:19:17.118333
2021-09-14T13:46:30
2021-09-14T13:46:30
102,202,212
3
2
null
null
null
null
UTF-8
Python
false
false
745
py
684.冗余连接.py
# # @lc app=leetcode.cn id=684 lang=python3 # # [684] 冗余连接 # # @lc code=start from typing import List class Solution: def findRedundantConnection(self, edges: List[List[int]]) -> List[int]: nodesCount = len(edges) parent = list(range(nodesCount + 1)) def find(index: int) -> int: ...
105520588a0abec571bd6d9322bc9ac8dc7f4e3c
18ab4e909b19669560d0c48b54ad54ed236a1450
/tvApp/models.py
cd4b5dce74f0abe66834cf958ee549f821194f07
[]
no_license
triebelscj/Django_tvShow
ad8daf26a551c18333542f225c60564b6f90effb
96b295da090d94effffaf988e2217ef05621e6a3
refs/heads/master
2023-02-01T04:27:56.761571
2020-12-19T06:12:04
2020-12-19T06:12:04
322,776,777
0
0
null
null
null
null
UTF-8
Python
false
false
1,474
py
models.py
from django.db import models # Creating validations! class ShowManager(models.Manager): # NO FIELDS should be blank # title at least 2 chars # desc at least 10 char # network at least 3 char def validateShow(self, postData): errors = {} if len(postData["title"]) < 1: e...
a6a7d1426af61058bf83cf25c60041c6c42f1386
6b2bb65d242354a7609e4a8eba817bb66b7129e0
/Exercise 2/SIRvisualization/app2.py
224661ce99d649af9cee054749920f824c216d93
[]
no_license
Haschtl/MLCMS-SS2021-Group-A
450bf2ca9091589929c9e3f149c5ac2c6708d4ad
70f075af5e32231a522c0fb912c19ecf0804c5fc
refs/heads/master
2023-06-06T07:16:21.070402
2021-07-02T03:16:37
2021-07-02T03:16:37
360,262,779
0
0
null
null
null
null
UTF-8
Python
false
false
5,065
py
app2.py
from matplotlib import pyplot as plt from tkinter.filedialog import askdirectory from tkinter import Tk import os from utils import create_folder_data def askdirectories(request_string: str = "Select folder", selected_directory_list: list = None, search_directory=None): if selected_directory_list is None: ...
ebfaff786b137e8e60aa1ef6877a440a53af6001
7d9d8f8b3d85bb55297d9e6a68330b299367e43c
/machine-learning/modules/Simple_Logistic_Regression.py
011805017128da78ea51725ad2b6823422462a1c
[]
no_license
bgossage/python4fun
f5a5638f40d120affbd12efddcc708654e78e14f
d040d9ccb6d83ba159dad0ac785a097f6b541b46
refs/heads/master
2018-08-23T06:47:44.002602
2018-06-02T22:47:38
2018-06-02T22:47:38
125,929,458
0
3
null
null
null
null
UTF-8
Python
false
false
1,651
py
Simple_Logistic_Regression.py
import numpy as np ##### Core Logistic Regression Algorithm Functions class Simple_Logistic_Regression: def __init__(self, alpha, regularization, epoch): self.alpha = alpha self.regularization = regularization self.epoch = epoch def Sigmoid(self, hyp): sigmo...
26c406734ae0cd172d5e3f80d058aae1b3d36a67
286a5d1ac8813420a21472d81ef0387f57712fa8
/avito_spy_service/app/api/models.py
0a38c88bfa18bc449a9207c302e58d011d5b7e13
[]
no_license
evsmanko/avito_spy_service
17d90d364c5ecb2467f18be99057f236b6494d36
5ad112700481b8a557f44c07963c719c5f329cc5
refs/heads/master
2023-04-22T17:20:21.613750
2021-05-17T16:28:36
2021-05-17T16:28:36
321,467,741
0
0
null
null
null
null
UTF-8
Python
false
false
244
py
models.py
from datetime import datetime from pydantic import BaseModel, Field class QueryStatIn(BaseModel): queryId: int queryViews: int class QueryStatOut(QueryStatIn): id: int added: datetime = Field(default_factory=datetime.utcnow)
eb35965267540ba95931a6541191c076be387127
d5214b1331c9dae59d95ba5b3aa3e9f449ad6695
/quintagroup.pingtool/tags/1.1.3/quintagroup/pingtool/setuphandlers.py
4db803b11621ab69f4b0906cda422a8dcda23545
[]
no_license
kroman0/products
1661ee25a224c4b5f172f98110944f56136c77cf
f359bb64db22f468db5d1e411638790e94d535a2
refs/heads/master
2021-01-10T07:58:04.579234
2014-06-11T12:05:56
2014-06-11T12:05:56
52,677,831
0
0
null
null
null
null
UTF-8
Python
false
false
1,048
py
setuphandlers.py
from Products.CMFCore.utils import getToolByName from quintagroup.pingtool.config import SITES_LIST, PROJECTNAME def setupVarious(context): # Ordinarily, GenericSetup handlers check for the existence of XML files. # Here, we are not parsing an XML file, but we use this text file as a # flag to check that ...
6c13d94a4c85ef7884099820c13f48c750311600
8880226d2ca1c9448c44b3e9f21226a58e61ac93
/awacs/resource_explorer_2.py
05a35d5629e0689e4f92e2636ab1c60b9c091931
[ "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
cloudtools/awacs
2f82958ccc7ba2177492c29c706a5737f19dd2d1
c449a9637f01c26e73b827a9f8d5cc7715bbbea2
refs/heads/main
2023-08-31T00:58:28.636568
2023-08-28T05:13:01
2023-08-28T05:13:01
9,062,692
385
107
BSD-2-Clause
2023-08-13T23:21:39
2013-03-27T20:16:27
Python
UTF-8
Python
false
false
1,395
py
resource_explorer_2.py
# Copyright (c) 2012-2021, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. from typing import Optional from .aws import Action as BaseAction from .aws import BaseARN service_name = "AWS Resource Explorer" prefix = "resource-explorer-2" class Action(BaseAction): def __ini...
ac8a5c842ea0dfa44b2e2f9a30ed212c82914c9c
c3d0ffde87c3c67c94fe00bb614d1df4c49f58a3
/Backend/api/User/urls.py
9f3657bd6c2d81d8b3fc4d0d43c2fb583def9138
[]
no_license
ChamodiHansana/InternTest
ea263a664f6bde014a9ac2b5c65e6a7d47e958a3
ad03b4ae8a9b29f747fab616cf42cb577fc82feb
refs/heads/main
2023-06-10T01:27:22.549645
2021-07-04T15:11:18
2021-07-04T15:11:18
382,371,092
0
0
null
null
null
null
UTF-8
Python
false
false
234
py
urls.py
from django.conf.urls import url from User import views from django.conf.urls.static import static from django.conf import settings urlpatterns=[ url(r'^user/$',views.userApi), url(r'^user/([0-9]+)$',views.userApi), ]
f902f983b537e2c7c12703a5bdded644aa97da23
c63c3cc24bb812d6f779aa124540ec4ef87e422d
/Projects/Animation/Animation_4.py
5427353ab790887ee7b089cc6fd313506a94593d
[]
no_license
purnadip-manna/python_program
f673322a7a177a66d658dcfa1c7cd8cc73bcd70f
83e81d2c23df1c19b02a9b2c14dc8e7a8ac245b2
refs/heads/master
2023-08-28T20:49:54.718608
2021-09-19T17:35:38
2021-09-19T17:35:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
844
py
Animation_4.py
import os, time ip = "-------purnadip-------" load = list(map(str,ip.lower())) a = "" l = len(load) for i in range(25): for j in range(l): os.system("cls") if load[j] == '-': load[j] = '!' else: load[j] = load[j].upper() a = "".join(map(str,load)) ...
216e4377ddfd0eef454c7f312b7bf646b2f97ad7
6480fab55df0612a6a37cc4276866ccd10498aa4
/onestop/onestop/practice.py
0204916caf3fe3d2af29a0563309b083f0974ba3
[]
no_license
abiatarfestus/onestop
551ddd0f03adbc0807d0f94c8c70382a075ca472
7a769f89a4897d904e164ba274cc833c0a3bfd84
refs/heads/master
2023-04-20T04:10:34.107556
2023-04-19T20:20:26
2023-04-19T20:20:26
328,108,564
0
0
null
null
null
null
UTF-8
Python
false
false
29,178
py
practice.py
# from .forms import SearchWordForm, EnglishWordForm, OshindongaWordForm, WordDefinitionForm, DefinitionExampleForm # import sys # from django.contrib.auth.models import User # from dictionary.models import EnglishWord, OshindongaWord, WordDefinition, DefinitionExample, OshindongaIdiom # TEST SEARCH FUNCTIONS # contex...
134d1b50fc7e557a6e063a50cd04907c691a2808
638c24879799bf6b1ece4c319b2fe67005dbb4ae
/PythonMailer/MailerMessage.py
863c3d22a6254eab4b4be4b268fc08f020d9d9b7
[]
no_license
tyzhnenko/PythonMailer
441d63bf44718b1bede16454d5a6bba1a660becb
db2e3b523f187be919912727c16891717dd25b56
refs/heads/master
2016-09-06T15:10:25.413790
2013-07-03T19:40:27
2013-07-03T19:40:27
9,245,380
1
0
null
null
null
null
UTF-8
Python
false
false
13,500
py
MailerMessage.py
"""Message module for PythonMailer Wrapper to email python module """ from MailerExceptions import * # from email.message import Message from email.mime.multipart import MIMEMultipart from email.mime.base import MIMEBase from email.header import Header from email import encoders import re import time import string im...
5545579c197e1787f63d10425b9366dace7a7b7f
b23c6c02d9b54c987bca2e36c3506cf80fa28239
/string.py
047220acb43cbe68c3758ed04d15630bb299f825
[]
no_license
nishikaverma/Python_progs
21190c88460a79f5ce20bb25d1b35f732fadd642
78f0cadde80b85356b4cb7ba518313094715aaa5
refs/heads/master
2022-06-12T14:54:03.442837
2020-05-08T10:28:58
2020-05-08T10:28:58
262,293,571
0
0
null
null
null
null
UTF-8
Python
false
false
181
py
string.py
str=input("enter a string") i=0 while (str[i]!='\0'): if(str[i] in {"a","e","i","o","u"}): i+=1 continue else: print("%s\n"%str[i]) i+=1