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
1dd32124ed13a986d5be8761ef662755180db306
5ca24fb9c9d2247ad957b021d752e72e1d83fe45
/msinvar/brane_tilings.py
ff7c361078c480f0e401e18f7e8b57f01485c74d
[]
no_license
DZaiger/msinvar
988cffcd9abf68cfdd0007ab0458a2d2170c3bae
2ec0843ba95abcfcb3f0e1a187c78e1d7935af2b
refs/heads/main
2023-06-01T01:15:52.306773
2021-06-04T11:21:20
2021-06-04T11:21:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,161
py
brane_tilings.py
r""" Brane tilings and molten crystal counting This code is based on :arxiv:`0809.0117`. See also :arXiv:`2012.14358` Given a brane tiling (a bipartite graph embedded in a torus) we associate with it a quiver with potential (Q,W). For any vertex `i\in Q_0`, we consider the set `\Delta_i` of paths starting at i up to ...
c2a013014f7b638c3263332eba89e2551124d245
6041ef0a6bbfda702eae5eb107e27ef4ce6f2e10
/scripts_python/plot_map.py
c1fb0bb1bb54cfab5141998b0d10b488f833030a
[]
no_license
AlexLuka/StreamingTweets
0641a6464522d8435ab4dfb7320cc49c398afe7c
01d9f9c931b74579c63a447ae3e21e30869518b7
refs/heads/master
2020-05-22T09:57:28.120643
2019-07-21T16:23:52
2019-07-21T16:23:52
186,300,592
0
0
null
2019-07-21T16:23:53
2019-05-12T20:25:52
Python
UTF-8
Python
false
false
3,550
py
plot_map.py
import fiona import matplotlib import matplotlib.pyplot as plt from shapely.geometry import shape, Polygon, MultiPolygon from time import time, sleep import redis from tw_streamer.engine.enum_vals import Constants from matplotlib import cm print(f"Matplotlib version: {matplotlib.__version__}") # plt.switch_backend('a...
d8a32969fcdb8bbdbb32a1dd47b4cfcdf29af47e
99470a37c7c6713aea160da181fea22429479630
/pyturtle
30108b3abd45507d22bf9cb29f0a31ab2e30c904
[]
no_license
maksbotan/pyturtle
82376863a7ed3338183f6f55478ee6190d8baa3c
2064845d99f7b514687a471c66ed377a395d6514
refs/heads/master
2016-09-10T18:46:50.768175
2010-11-05T13:07:15
2010-11-05T13:07:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
119
pyturtle
#!/usr/bin/env python import sys sys.path.insert(1, 'src') from pyturtle.main import Main interpreter = Main('GTK')
f8047d3050de9f472d1c9709cfe09bbab98e26c0
1432c029c47e9a6a68b937bcc44dfb735387102e
/scripts/spacetime_eda.py
4f4426a87ab8339458661ff719aaefb2989041b7
[ "MIT" ]
permissive
perovai/deepkoopman
764ab63e1d2ea8d0f59289d91b2d3b84ed12da34
eb6de915f5ea1f20b47cb3a22a384f55c30f0558
refs/heads/main
2023-08-07T22:05:16.261422
2021-07-30T13:10:53
2021-07-30T13:10:53
357,617,331
2
0
MIT
2021-07-29T18:44:25
2021-04-13T16:19:47
Jupyter Notebook
UTF-8
Python
false
false
1,040
py
spacetime_eda.py
import sys from pathlib import Path from torch.utils.data import DataLoader sys.path.append(str(Path(__file__).resolve().parent.parent)) from aiphysim.dataloading.dataloader_spacetime import RB2DataLoader # noqa: E402 if __name__ == "__main__": folder = str(Path("~/Downloads").expanduser()) file = "rb2d_r...
ad0e24252ec00fd13d75fd049b1f09f21d02c03d
37e64ef2aabe2b4f7d609d84114b33d789c0baee
/hand_gray_train_data_prepare.py
2001cdcce1ec28ecd1784157537d310a28c18268
[]
no_license
henrylovedesign/handrecoganize
6d7421640b62cd755cc3596621bffb38660a9980
317bd5cd6ce5631ab3bfa5cd4d23e60704358953
refs/heads/master
2021-04-28T22:33:38.170388
2016-12-31T03:31:22
2016-12-31T03:31:22
77,722,049
0
0
null
null
null
null
UTF-8
Python
false
false
3,565
py
hand_gray_train_data_prepare.py
import os import sys sys.path.append('../') import cv2 import handclstor_data_prepare as dt import randomcrop import random import model_generator.projectroot as prt import transformation as tf proot = prt.project_dir cls_data_root = os.path.join(proot,"MorpxData","classification") targetname="hands" target_cls_da...
3eee2b4d9015986bdce3ca931b7dbafc5a9533ff
36213cbc5f0ab696fe93373f0b21256594c8bf57
/shoppingbag/urls.py
2914a74117d918118e793a17368f23e1261947c5
[]
no_license
Code-Institute-Submissions/project4-6
986f38382893334ef7d17c0d1686085ea15a2f43
07a90f78035d10202b5e0c4ee53cdb508d9ec1c2
refs/heads/master
2022-12-07T08:56:06.106855
2020-08-31T18:55:21
2020-08-31T18:55:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
407
py
urls.py
from django.urls import path from . import views urlpatterns = [ path('', views.shoppingbag, name='shoppingbag'), path('add/<item_id>/', views.add_to_shoppingbag, name='add_to_shoppingbag'), path('update/<item_id>/', views.update_shoppingbag, name='update_shoppingbag'), path('remove/<...
0672b5aa38232310c2f417ed9305e2bee09866d9
f22aa5aea83d4247b5918faf0075896ae644ecb1
/flask_app.py
44e4040d06d5c5e7da31e584b5dc285b66cb46d0
[]
no_license
deepakr1618/sis_scraper
dc10255e74482114389ba656ba823673f9fe30de
cd6ef143ae9171d0e47fb47fcec8382d6afa11a7
refs/heads/master
2020-12-27T01:12:54.608719
2020-04-15T05:30:41
2020-04-15T05:30:41
237,714,767
0
0
null
2020-02-02T04:21:14
2020-02-02T03:51:14
Python
UTF-8
Python
false
false
2,098
py
flask_app.py
from manager.createChart import lightTheme , darkTheme from manager.scraper import Parser , Scraper from manager.firestore import Storage from io import BytesIO from flask import Flask , request from PIL import Image import base64 import json import sys import os app = Flask(__name__) storage = Storage() ...
5e8fb9cd6b31f736864048de89eff434b2297cda
c5945e81fba1bb481687a4f8c687c48dc114869f
/pyScripts/piePngChart2.py
4ce2ccda360467416b3384e4123e826820281db9
[]
no_license
yz8169/live_forest
94e17152e54342c56328d4845a53cc31956cc5db
edcae396f98a5b893700e42cb9d8fe1ab8a3bacc
refs/heads/master
2021-01-06T19:20:50.830064
2020-02-18T20:31:32
2020-02-18T20:31:32
241,457,433
0
0
null
null
null
null
UTF-8
Python
false
false
720
py
piePngChart2.py
# -- coding: UTF-8 -- import pandas as pd import matplotlib.pyplot as plt def str2file(file, str): f = open(file, 'w') f.write(str) f.close() plt.switch_backend('agg') plt.rcParams['font.sans-serif'] = ['SimHei'] plt.rcParams['axes.unicode_minus'] = False df = pd.read_csv("out.txt", sep='\t') values = [...
6a06a4d99eaad00df37a4e17a3e7c11ee4505bd5
8c917dc4810e2dddf7d3902146280a67412c65ea
/v_7/NISS/shamil_v3/cooperative_purchase/co_operatine_contract.py
e3143fdcfef9c3b6d20184bdb49ba2e6f28b0ee8
[]
no_license
musabahmed/baba
d0906e03c1bbd222d3950f521533f3874434b993
0b997095c260d58b026440967fea3a202bef7efb
refs/heads/master
2021-10-09T02:37:32.458269
2018-12-20T06:00:00
2018-12-20T06:00:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,530
py
co_operatine_contract.py
# -*- coding: utf-8 -*- ############################################################################## # # NCTR, Nile Center for Technology Research # Copyright (C) 2011-2012 NCTR (<http://www.nctr.sd>). # ############################################################################## from osv import fields,osv i...
ed142b7177fc77699b796c06c0ac0e5216581de3
43c436a8828ea2939e81b9aad082d01d1311a022
/MLP1L200N.py
744619a01c843bb38de70cf49a8958659098380d
[]
no_license
amir7596/Digits-Recognition-with-MLP
9694786d0e5c7127bd61b174a5162ca4207fc155
51073deac9a0d11ee7f1e9ce2c1ff5ec31af4f84
refs/heads/master
2020-05-25T07:10:58.551180
2019-05-20T17:21:18
2019-05-20T17:21:18
187,679,828
1
0
null
null
null
null
UTF-8
Python
false
false
675
py
MLP1L200N.py
import numpy as np import pandas as pd import matplotlib.pyplot as pt from sklearn.neural_network import MLPClassifier import os from PIL import Image import csv Train=pd.read_csv("F:\programming\python\ML\\numbers_rec\Train.csv").as_matrix() Test=pd.read_csv("F:\programming\python\ML\\numbers_rec\Test.csv").as_ma...
971e919cdde790112199d9298683a5f34f2efa09
13609bea69a8a4e8678ea49aecd4e530b414eaeb
/task2(22.02).py
4be6abdb4b0f8db60f94bc3f81e6d78b64b60977
[]
no_license
alexandrash/git-lesson
fe29224835b04ec2bc7435a6484950b27a8d82f4
96652e0b18af21a2c78b8a7c44764ef0d6deca98
refs/heads/master
2021-01-19T09:18:08.651257
2017-03-16T18:47:08
2017-03-16T18:47:08
82,093,870
0
0
null
null
null
null
UTF-8
Python
false
false
317
py
task2(22.02).py
s = str(input('Введите выражение:')) def check_palindrome(s): s = s.split() s = ''.join(s) i = 0 l = len(s) while i <= l // 2: if s[i] != s[l- 1- i]: return False i += 1 else: return True print (check_palindrome(s))
511cf6c424109d3badd6768b04bc31e8fb3cf2b2
77ed9133c4c184a93539d0eea303f2da9e4448cf
/mxnet_demo.py
63641080654968dba66655c6a355a49454b7139e
[]
no_license
AgFeather/StudyNote
16e1bc34196cd2bce2ef26aed7eb3010e6adba5e
4c258e73153cf38a6392937a75fa560b2a6bcc97
refs/heads/master
2020-06-22T11:31:10.176663
2019-10-10T13:08:49
2019-10-10T13:08:49
197,707,284
0
0
null
null
null
null
UTF-8
Python
false
false
5,614
py
mxnet_demo.py
import mxnet as mx from mxnet import gluon, autograd, ndarray import numpy as np from mxnet.gluon.data.vision import transforms def load_data(): def data_xform(data): """Move channel axis to the beginning, cast to float32, and normalize to [0, 1].""" return ndarray.moveaxis(data, 2, 0).astype('floa...
dad4994c5d194b15d54bcda807a2babc580a54de
94c46e27154ac8492c260e54ef7f53c674274d96
/tests/test_tag_activity.py
ae55e59628fee722c069e228acbdc1d836782dfd
[ "BSD-3-Clause" ]
permissive
regro/rever
dd291a693122b08623e6b743b7a22c23336b754f
46dbba96abe1b0c71ee52537f33d25f9207688d8
refs/heads/master
2023-01-23T04:53:07.655003
2023-01-16T10:06:44
2023-01-16T10:06:44
91,493,375
78
31
BSD-3-Clause
2023-01-16T10:06:45
2017-05-16T18:52:07
Python
UTF-8
Python
false
false
845
py
test_tag_activity.py
"""Tests the tag activity activity.""" from rever import vcsutils from rever.logger import current_logger from rever.main import env_main REVER_XSH = """ $ACTIVITIES = ['tag'] """ def test_tag_activity(gitrepo): vcsutils.tag('42.1.0') files = [('rever.xsh', REVER_XSH),] for filename, body in files: ...
0b2ebafdc9845019f9b0f4d8b265ea0f7dbcd090
5c944a7b3b359e13166b6ac84f7c9cdb101efc32
/web_scraping.py
8c007075f787112a7d91aac14bdf4e8f4801bfa3
[]
no_license
LandonBeach/securityScripting
6d9c14b7be0d7144a22d4f2f51b392d0ef057f37
a5d107543f8db3a1badaab9daba1aca190a429c6
refs/heads/master
2021-03-27T12:01:29.862918
2019-07-08T01:23:22
2019-07-08T01:23:22
79,587,763
0
0
null
null
null
null
UTF-8
Python
false
false
2,098
py
web_scraping.py
# This is an Anonymous Browser taken out of the Violent Python Book # Book written by: T.J. O'Conner # Author: Landon Beach # Date: 4/20/17 from anonBrowser import * from BeautifulSoup import BeautifulSoup import os import optparse import re def printLinks(url): ''' This function will find and print all of the links ...
6e2d221ee3624bb3d9083d9bac2a3e79cbcef929
249b01ffd6e8de503ec1f22e2c2088c03115a7cb
/board.py
3a46c19e792bc821a160bbcb2cdf3caf31117155
[]
no_license
kevinelong/adventure
f9cf26e1cb3e4cc2ac0d68387e8a5985c0ec3e64
2abb93a1211513404cee4e71cc36ae775e76c753
refs/heads/master
2022-12-26T07:54:56.773607
2020-10-12T17:37:45
2020-10-12T17:37:45
302,924,410
0
0
null
null
null
null
UTF-8
Python
false
false
1,026
py
board.py
from characters import * class Board: def __init__(self, size=9): self.size = size self.rows = [] self.symbols = { "<class \'characters.Player\'>": "^", "<class \'characters.Ogre\'>": "O", "<class \'characters.Character\'>": "C", } ...
f3b4c6cdcfe100a0a371203d51d956b2d1004a81
894d6ce449cfdb2810d498035edd061ddbe10585
/thumbulator/bareBench/regression.py
f6af78dd53daea1c3f27cd9d9571c2778e76cecf
[ "MIT" ]
permissive
afchung/Ratchet
db474ba723a52e40d30cc9a60a43082130a9f2d9
287af004477992394f10149b30695acd47efc05d
refs/heads/master
2020-05-01T19:42:12.427129
2019-03-29T16:57:04
2019-03-29T16:57:04
177,655,403
0
0
null
2019-03-25T19:59:23
2019-03-25T19:59:23
null
UTF-8
Python
false
false
2,657
py
regression.py
import subprocess import re import sys import os def get_config(item, config): m = re.search('(?<={}=).*'.format(item), config) return m.group(0) def generate_config(name, root, mean, std, debug, logging): f = open(name, 'w') f.write('ROOT={}\n'.format(root)) f.write('ELF={}\n'.format(root + "main.elf")) ...
21dca0258a1131507173cae46e2fc5df698469ef
78b280ba8d3ba6e53a7e16b283aea90fc30c5d7a
/interpretability/interpreter.py
602020ed29887fdda2a9dfb4c8424b5a28bcdb69
[ "Apache-2.0" ]
permissive
ziritrion/aidl-2021-wo-rl
c600369d8ec59dcef0f006922e3f3789c1398b1e
f10da1c454c17742b592cdbfa8f648c04ee849ca
refs/heads/main
2023-04-08T08:31:15.259790
2021-04-20T07:33:05
2021-04-20T07:33:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,599
py
interpreter.py
import torch.nn as nn from time import time class Interpreter(nn.Module): """ Include this module into your network to inspect the convolutional layer. It sends to the writer (only tested with Tensorboard) one image of the self.shape dimension. To avoid overhead, the images are pushed every 60 seconds...
4c9ec4a137b646725e00fe1ea788bf9c80f9e5a3
2fd33957e358e555bad33f424ecaa546af19f3c2
/FirstNonrepeatedChar.py
a8a55962da762e87e625550703ce2ec9507e7019
[]
no_license
Adityaar/Python
1962df671e350e4a7e27192af2e52df5e627b5dc
a4bd6b8e0622372b1a17fb5b5572109725ba5f2f
refs/heads/master
2022-12-12T12:39:52.237482
2022-11-27T03:14:25
2022-11-27T03:14:25
33,167,225
0
0
null
null
null
null
UTF-8
Python
false
false
649
py
FirstNonrepeatedChar.py
import sys ''' Write a program which finds the first non-repeated character in a string. The first argument is a path to a file. The file contains strings. For example: Input sample: ------------ yellow tooth Output sample: Print to stdout the first non-repeated character, one per line. For example: -----------...
6dcdb1e2bb21c53285ed146824b0069be47a4676
3a57399eb2b261c2e33c4a54498eb7a0dceff1b8
/UnixFileServer/session.py
9d72ae3dc0ab489fed3c0dfa2b16e88e725efa9d
[]
no_license
Bcante/UnixFileServer
8a76c93eff113a4ce823a431032eda26429858f6
5db46d3e22f593ed5c7c4f00111a832e3a420782
refs/heads/master
2020-07-17T20:14:32.453053
2019-09-03T14:00:18
2019-09-03T14:00:18
206,090,841
0
0
null
null
null
null
UTF-8
Python
false
false
7,656
py
session.py
#!/usr/bin/python # -*- coding: utf8 -*- import os import sys import posix_ipc as pos #raccourci module import signal import readline monPid = str(os.getpid()) fileVersServeur = 0 fileVersClient = 0 fileConfirmeSup = 0 fileReponseSup = 0 #Classe chargée de gérer les limites de temps class Alarm(Exception): pass ...
a4c6a4ae6a0bfe036d1b574c959b4716faebf17e
3d35f4a293376a97166dea575fa4a3e05194f6db
/example_settings.py
e68cf901e449717b24b7f228e87616f263d6b74c
[]
no_license
mktakuya/TweetMan
b1c50cd82c425612a6ad78a1b0d8a86ac0e1738a
021e238ef50673611ad062996f28effbb9e51eb5
refs/heads/master
2020-12-24T14:35:59.482963
2014-04-07T14:45:13
2014-04-07T14:46:16
18,491,919
2
0
null
null
null
null
UTF-8
Python
false
false
172
py
example_settings.py
# coding:utf-8 # Twitter Keys CONSUMER_KEY = 'Consumer Key' CONSUMER_SECRET = 'Consumer Secret' ACCESS_TOKEN = 'Access Token' ACCESS_TOKEN_SECRET = 'Access Token Secret'
e2fb794b08d6bcc211e2c35d00005dfeffbb6bd3
85742ee4d50c952c74d7a752ea0184bb0f3abbed
/view/SortingGui.py
d733ee2ac1b5402d005e2340e4d08df68213247d
[]
no_license
NasskalteJuni/sorting
d5fe978d9f4497fd630b035f5321d9e207f21d99
ee78ff1e5eb04e3899843b26eb49bd55ee3b5410
refs/heads/master
2021-01-13T10:29:17.607468
2016-10-28T17:03:19
2016-10-28T17:03:19
72,226,089
0
0
null
null
null
null
UTF-8
Python
false
false
2,478
py
SortingGui.py
from tkinter import Canvas, TclError from colorsys import hsv_to_rgb from view.StyleGuide import * class SortingAnimation: __window = None __canvas = None __canvas_width = 500 __canvas_height = 450 __interpolate = None __bar_dict = None __dict = {} def __init__(self, window): ...
261f29104c6458cc5a9d1a08c40de630daed01ef
87827ea908e358d06a8c082321d0211e1abd4119
/back-end/database/MoveDetails.py
11c041873af26539903cd485840f92b364d92931
[]
no_license
aritche/4920Project
45fba11c188c0f624e34c69b8f75713158343483
9e9d5edca9edd83bf63078c490dc28140e506da2
refs/heads/master
2020-03-26T06:30:07.489071
2018-10-24T03:33:35
2018-10-24T03:33:35
144,608,352
0
0
null
null
null
null
UTF-8
Python
false
false
1,900
py
MoveDetails.py
from database.model import db from sqlalchemy import ForeignKey from sqlalchemy.orm import relationship class MoveDetails(db.Model): __tablename__ = 'movedetails' id = db.Column(db.Integer, primary_key=True) movee_id = db.Column(db.Integer, ForeignKey('user.id'), nullable=False) title = db.Column(db.S...
e303680a51774f5f9bd7a420c61ae5dcbf5a9766
912ef514863339b69ff78dd979fcb30401633722
/sect14-project9-DataVisiualization/main.py
d875e6733ea04efe921af4cc333d89a6bb543436
[]
no_license
jhonasttan/pythonBegToAdClass
1255a328b5ea99192d24bb3d5650ee0674ed56e0
e6ae4822dfb698749fe9c9e83ea842211b80ed2e
refs/heads/master
2020-03-07T11:42:52.214424
2018-05-27T18:17:45
2018-05-27T18:17:45
127,462,303
0
0
null
null
null
null
UTF-8
Python
false
false
338
py
main.py
import matplotlib.pyplot as plt import numpy as np years = [1, 1000, 1500, 1600, 1700, 1750, 1800, 1850, 1900] years = years + list(np.arange(1950, 2020, 5)) pop = [200, 400, 458, 580, 682, 791, 1000, 1261, 1650, 2525, 2758, 3018, 3322, 3682, 4061, 4440, 4853, 5310, 5735, 6127, 6520, 6930, 7349] plt.plot(year...
cc9c339d0f55b57c7cd71764a06e11034ebc58b8
9666e31ab2308bba6f07472f01111cdd70544802
/item.py
542756468d61fe7577aa806ada9cc4f99e8c5ed0
[]
no_license
MyeongJun88/2019-2-OSSP1-DINO-4
e271925d5952d86e81f6b62134a3e627a635faa8
e6eafbcec118efe782988afe25cdae9e6ee005be
refs/heads/master
2022-03-21T20:55:56.643763
2019-12-17T04:05:24
2019-12-17T04:05:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,742
py
item.py
import pygame from game import * def RelRect(x,y,w,h,camera): return pygame.Rect(x-camera.rect.x, y-camera.rect.y, w, h) class item(pygame.sprite.Sprite): """Coins found in boxes and bricks""" def __init__(self,game): super().__init__() self.game=game #load gem image se...
738f57bb3f791748331150c21f11703310967def
b4bc008fea7f73ab6564dae28edb9aeb029d25b4
/maps/migrations/0011_mapobj.py
2a3d7dc2976380b489656fabd6ed5f7ead505004
[]
no_license
javierpi/andreas_map
6b1cca4155f44839ab34715886fbac8e3528e242
62b0f283607d35f3a228d43830b12bbba147e041
refs/heads/master
2020-04-08T07:44:11.472971
2018-11-30T15:46:22
2018-11-30T15:46:22
159,149,550
0
0
null
null
null
null
UTF-8
Python
false
false
1,010
py
0011_mapobj.py
# Generated by Django 2.0.9 on 2018-11-26 15:06 import django.core.validators from django.db import migrations, models import re class Migration(migrations.Migration): dependencies = [ ('maps', '0010_mapservercolor'), ] operations = [ migrations.CreateModel( name='MapObj', ...
f3df3dfb949f42c41015d73cfe482c5676b47578
ad2704933de4502ae9de91e6d915f9dbe010b446
/yohta/chapter09/knock85.py
29ca8fd1c70dcd2f9fe1985bb7a9b06cd722fc8a
[]
no_license
tmu-nlp/100knock2017
266e68917d8d5a7f5d0c064f1bc2da5fa402a253
629bd1155d0fe78cd9302ae9a7cdf0922b778fe7
refs/heads/master
2021-01-19T17:36:53.328997
2017-07-24T07:09:54
2017-07-24T07:09:54
88,334,932
8
2
null
null
null
null
UTF-8
Python
false
false
277
py
knock85.py
import pickle from sklearn.decomposition import TruncatedSVD with open('data/answer84','rb') as i_f: words,vector = pickle.load(i_f) trunc = TruncatedSVD(n_components = 300) with open('data/answer85','wb') as o_f: pickle.dump((words,trunc.fit_transform(vector)),o_f)
5af13263277cb9c765bd5bef86d725b6b6972ee9
a29b5577b07384d682621b5d7c76d0fad529e6b6
/05-Token Refreshing and Flask-JWT Extended/code/resources/user.py
41839d0dd9e343666347f92379ed2e0a7dc1988d
[]
no_license
EwertonCSMelo/REST_APIs-With-Flask-and-Python
f2c0f4db82ddaec37be2e9e45f3d2023b9d8c844
aaba671fa2fd6307372346c3a8847d7ae2f32a4b
refs/heads/main
2023-07-03T11:40:08.861443
2021-08-16T18:00:51
2021-08-16T18:00:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,442
py
user.py
from flask_restful import Resource, reqparse from flask_jwt_extended import ( create_access_token, create_refresh_token, jwt_refresh_token_required, get_jwt_identity, jwt_required, get_raw_jwt ) from werkzeug.security import safe_str_cmp from models.user import UserModel from blacklist imp...
b7edef5a1871ff9ca7f6290355a61e4a56c935ca
a47b6231f7a5916591095a45febfecc6f84edfeb
/utilities/utils.py
29be043b68e9b14821af31619772ea7a817c2a7b
[ "MIT" ]
permissive
jluech/PGAcloud_Manager
d3ff188bf3b8ca3060654bd6023bb4b72d8a4fd1
9008fac26f9d762b2ab527034e46d467b5b0c26f
refs/heads/master
2022-11-25T19:54:02.083046
2020-08-03T11:49:49
2020-08-03T12:13:05
271,369,265
0
0
null
null
null
null
UTF-8
Python
false
false
2,199
py
utils.py
import logging import os import subprocess import sys import yaml files_dir = "" # --- General util commands --- def execute_command( command, working_directory, environment_variables, executor, logger=logging, livestream=False ): logger_prefix = "" if executo...
1777142c98b673213c889bde6440c51735d48467
cebd6fc93db1053427f2577b8aa01916e5e2d0d3
/setup.py
7e881ed4f72b0934aa2d05ed8524bbfc3d781d9b
[ "Apache-2.0" ]
permissive
TriggeredMessaging/bronto-python
7c6419aa868a4f98692dde4bf6ce9dcf649a4650
0a82339274326e79a377b9c6a89e03b42e30b8b4
refs/heads/master
2023-02-14T20:52:20.102192
2020-09-15T10:43:57
2020-09-15T10:43:57
224,473,755
0
1
Apache-2.0
2020-09-15T10:43:59
2019-11-27T16:34:21
Python
UTF-8
Python
false
false
1,390
py
setup.py
import os from setuptools import find_packages, setup import bronto os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) VERSION = bronto.__version__ github_url = 'https://github.com/TriggeredMessaging/bronto-python' requires = [ 'suds-py3==1.3.3.0; python_version>"3.0"', 'suds==0....
411fb38ec9c257cfadf9598c92d5f0b336b0a3df
39b1a6f8944c646383c250c2819b5d956a0a5006
/08/otazky.py
3803a4bb4b8487fe89dd57544f649cde2db39359
[]
no_license
perglervitek/Python-B6B36ZAL
def192ec3d598ee81f08982781307d3d74279185
9a1f60659a53b75b6f68f1950fdbea2fc7d54f51
refs/heads/main
2023-07-14T13:28:23.226937
2021-08-01T20:38:19
2021-08-01T20:38:19
391,731,463
0
0
null
null
null
null
UTF-8
Python
false
false
350
py
otazky.py
# lst = [10,20,30,40,50,60,70] # for v in lst: # print(v) # print("---------------") # for v in lst: # print(v, lst.pop(0)) lst1 = [ {'name': 'Josef Novák', 'age': 27}, {'name': 'Jan Srp', 'age': 80} ] # create a copy of lst1 lst2 = [] for v in lst1: lst2.append(v) lst2.pop() lst2[0]['age'] = 15 print(...
0cfcc28e9382af77aa584156b100ac0aa5bde7ef
9099ed0407521ac40b88f3b92872307f66c57bf9
/codes/contest/leetcode/can-i-win.py
23bda0e7639d7320c2628c187baadc9f9ab769ba
[]
no_license
jiluhu/dirtysalt.github.io
0cea3f52d2c4adf2bbf5c23b74f4cb1070025816
c026f2969c784827fac702b34b07a9268b70b62a
refs/heads/master
2020-08-31T09:32:05.273168
2019-10-29T01:53:45
2019-10-29T01:53:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,527
py
can-i-win.py
#!/usr/bin/env python # coding:utf-8 # Copyright (C) dirlt class Solution: def canIWin(self, maxChoosableInteger, desiredTotal): """ :type maxChoosableInteger: int :type desiredTotal: int :rtype: bool """ if (maxChoosableInteger * (maxChoosableInteger + 1)) // 2 < d...
5f062fd3d6fa72d5cf913ecd1459b9ad93a48f85
e35549ad53f5f72c8e84ff6cde35594f34f4fb9e
/07_语法进阶/hm_12_listExtend.py
822d210dea24adb68418505b61dda4339af0b99a
[]
no_license
Waynezhai/03_python_hm
7887e808cf3f33dccbf2e29cdaf7cf22caf0c8a2
590e2d14e7dc0aece5cd5ca54bddcaba00d5b683
refs/heads/master
2022-01-17T11:57:02.639092
2019-07-31T10:59:06
2019-07-31T10:59:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
836
py
hm_12_listExtend.py
#!/usr/bin/env python #-*- coding:utf8 -*- ################################################################# # FileName: hm_12_listExtend.py # Author: Wayne_zhy # Mail: zhyzhaihuiyan@163.com # Created Time: 2018-08-27 11:34:35 # Last Modified: 2018-08-27 11:47:27 #######################################################...
2dd159c930e668b2c1e86d11e3bbf3d8d6b40e1f
92d868ca079d5dea9ead86c8278be1628e5e5d1b
/menpofit/lucaskanade/base.py
918480560259c66d6c5b959400d530bbd8c70a19
[]
no_license
mrgloom/menpofit
aa32f6af647fbbd240803eb5eb6dcb98dcf07e4d
a4fcc16e8ac12537959b3ddbea103a1da4382f84
refs/heads/master
2021-01-17T19:59:20.136453
2015-07-16T14:23:49
2015-07-16T14:23:49
39,327,631
1
0
null
2015-07-19T08:39:53
2015-07-19T08:39:53
null
UTF-8
Python
false
false
3,286
py
base.py
from __future__ import division import numpy as np from menpofit.fitter import Fitter from menpofit.fittingresult import ParametricFittingResult class LucasKanade(Fitter): r""" An abstract base class for implementations of Lucas-Kanade [1]_ type algorithms. This is to abstract away optimisation spec...
1f658779643c410df90a150c184a0c0bddc3945a
8a87d9e575ce882ec27e91a09458935ffbe1257a
/foodpool/v1/authentication/models.py
3d3659707342847d3ea81e0d23f46f447a3385fc
[]
no_license
kdaang/FoodPool
c103049270f44e3977b37b4cd78ff7f4c2c008da
15a7f3bd6e6fb66f743128aea96d6a8de8b389af
refs/heads/master
2022-04-23T13:08:31.411376
2020-04-26T03:59:53
2020-04-26T03:59:53
255,710,062
0
0
null
null
null
null
UTF-8
Python
false
false
2,778
py
models.py
from datetime import datetime, timedelta from django.contrib.auth.base_user import BaseUserManager from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin from django.db import models import jwt from django.template.defaultfilters import upper from phonenumber_field.modelfields import PhoneNumberField...
d06768ca0749805f44e24ae011919bf60f138760
9af4400f09e18f08b60b0392c2d0e328d34da9e9
/dat2.py
078413dcf1cadd382d32aee54888b3be20b8850a
[]
no_license
deep0072/automatic-octo-memory
dbec9aeb51de578cbb482be2d7d99e8c55f53e95
fb57779d468083139d3acc712bd40a0d24f5018e
refs/heads/master
2021-06-08T20:14:55.709316
2019-06-30T07:21:48
2019-06-30T07:21:48
165,256,990
1
0
null
null
null
null
UTF-8
Python
false
false
1,183
py
dat2.py
#from matplotlib import pyplot as plt #import numpy as np #dev_x = [25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35] # #x_indexes = np.arange(len(dev_x)) #width = 0.25 # #dev_y = [38496, 42000, 46752, 49320, 53200, # 56000, 62316, 64928, 67317, 68748, 73752] #plt.bar(x_indexes-width, dev_y, width = width ,label = '...
d976a5c2b2c6f911197358b3a8a89d846217563b
d995b50a87c1c228333e81e4de56645de2f32acd
/setup.py
b49390c81ea2f523588cbb1a44929647450fec1d
[ "MIT" ]
permissive
brianloveswords/python-jws
be650994c5382790904eea845b722ca3aa7df2e4
9228dcc83dccfd4dde9df12f491b8d92c95a874a
refs/heads/master
2023-07-08T05:55:13.919051
2017-09-21T21:15:07
2017-09-21T21:15:07
1,836,660
42
37
null
2023-06-22T10:07:32
2011-06-02T10:56:55
Python
UTF-8
Python
false
false
691
py
setup.py
import os from setuptools import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name = "jws", version = "0.1.2", author = "Brian J Brennan", author_email = "brian@nyhacker.org", description = ("JSON Web Signatures implementation in Python"), ...
c2ff27a2ea03895a340974c2a615848437380ba3
6078dbb1ce49c45142cd2c21eb3b8f9b62a69ec5
/mip_gurobi.py
f53679b7f1273b008b6e77d4f80f8eeb15101516
[]
no_license
chyr98/VRPTW_scheduler
c1d4dda2b34a2f296c212b6aaacca34f92ef65f4
730a440d5afea4f3e86bdaa70377c5ecd421dd8f
refs/heads/main
2023-01-30T22:58:55.898865
2020-12-09T16:52:19
2020-12-09T16:52:19
304,993,154
3
0
null
2020-12-05T18:31:38
2020-10-18T00:24:35
Python
UTF-8
Python
false
false
11,084
py
mip_gurobi.py
from typing import List import numpy as np import VRPTW_util import copy import time import sys, getopt import json import gurobipy as gp from gurobipy import GRB DEPOT_INDEX = 0 LARGE = 1e7 def model_initialization(problem: VRPTW_util.VRPTWInstance, equality=False): vehicles, nodes = problem.num_vehicles, len(...
964eb8a0836a233a8f182343e2b719811c85457c
6456afc266b07bf966a51467c081a70fa7a4cf8e
/Tensorflow NVIDIA GPU Fix.py
57f3cb9e611da470a5491a2c3f04a388f69b3cdf
[ "MIT" ]
permissive
CallumAltham/Tensorflow-NVIDIA-Fix
7a757ecd454b3e58775a452a1f7f59a501cde8fb
d7d1428d7308bceac2a63ff84e775117eb75c647
refs/heads/main
2023-03-28T13:53:13.335326
2021-03-28T01:03:12
2021-03-28T01:03:12
352,212,542
0
0
null
null
null
null
UTF-8
Python
false
false
357
py
Tensorflow NVIDIA GPU Fix.py
import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' import tensorflow as tf config = tf.compat.v1.ConfigProto(gpu_options = tf.compat.v1.GPUOptions(per_process_gpu_memory_fraction=0.8) ) config.gpu_options.allow_growth = True session = tf.compat.v1.Session(config=config) tf.compat.v1.k...
0b7f8e598f4ab41888fb6df5ceca31fbb3b93155
8916bcf8b614adc8c1e43025963c9f1099239117
/source/src/iippy-1/week4.py
fcd9521c6b3b95dfbfe2ddb9ff1dba9d43b02a77
[]
no_license
zxcbbn/pythoncamp0
f1684a687af6f1d88c66b9410f2cc4b5da40304c
60af0920ddd2f7a1546c6ecdfe44d4be36da6990
refs/heads/master
2021-01-18T02:31:40.592154
2016-05-19T16:21:33
2016-05-19T16:21:33
32,257,532
0
0
null
null
null
null
UTF-8
Python
false
false
248
py
week4.py
import tkinter import math import random #init record_list = [] botoom #helper functions def range_choose: def number_choose def guess_AI def compare_number def timer #event handlers #create frame #register event handlers #start game
f57d72779044c028e9a5d41aefcbafb85850ce33
ec7593ef0477c281140dfe89a4c9f0e413588701
/webproject/load_data.py
50f958cfc73a7cc24510f91f2309fe1678d0bf7f
[]
no_license
knghyunwoo/elice_library
8dde9e96c0bd0a5b602ae002fdebda3ca143b188
2b228d656afe8285dcfe99c79fda4034c7abde97
refs/heads/master
2023-04-20T16:10:52.377964
2021-03-09T09:51:02
2021-03-09T09:51:02
363,538,933
0
0
null
null
null
null
UTF-8
Python
false
false
1,022
py
load_data.py
import csv from datetime import date, datetime from models import db, Book # from app import app; app.app_context().push(); import load_data session = db.session with open('library.csv', 'r', encoding="utf-8-sig") as f: reader = csv.DictReader(f) for row in reader: published_at = datetime.strptime( ...
46900fe787ca48b4f6df3849e246607e00ff3671
c9ee2e50ebe83d0b1808074f790fd086996f36bb
/Spring/python Teacher Code/python Teacher Code/HELLOPYTHON/day15/mymnist04.py
69b6b70c1b6060652179892f5e6582e6f418db12
[]
no_license
LEEHWIRO/git-lhr
bbf3b1d50fd294f4630bf255bda32853804878bf
e7577f9c77b0d76848c3ed574d45274ab19378cb
refs/heads/main
2023-05-30T08:10:37.486468
2021-06-23T12:41:11
2021-06-23T12:41:11
336,951,509
1
0
null
null
null
null
UTF-8
Python
false
false
1,325
py
mymnist04.py
from keras.datasets import mnist from keras import models from keras import layers from keras.utils.np_utils import to_categorical import numpy as np import cv2 (train_images, train_labels), (test_images, test_labels) = mnist.load_data() print(test_labels[0]) train_images = train_images.reshape((60000, 28 * 28)) tra...
1e42bfbcac274a0ccaf98cef8a4430fe72f0e4ac
c3e2a815531ad23d30a52a7c5c49a3ebce63a15c
/wypy/networking/commands.py
1798334f176763e33dbd8f0940702cad6650ccd2
[]
no_license
Zabanaa/wypy
bf05be71030a9cbfae19125d8f380b4bf122a410
e6723a53537163df8abf392a78c1672e7678b7b6
refs/heads/master
2021-06-09T21:51:08.874237
2019-11-20T13:39:42
2019-11-20T13:39:42
171,003,553
2
0
null
2021-04-20T19:03:54
2019-02-16T12:51:42
Python
UTF-8
Python
false
false
922
py
commands.py
import click from .networking import Network @click.group('network') @click.pass_context def network(ctx): """Perform networking actions""" ctx.obj = Network() @click.command('on') @click.pass_obj def turn_on(network): """Turn networking capabiliy on""" network.turn_on() @click.command('off') @cli...
80969f1900463e2deabd68031337f231e147d408
887bcf643eb6ef28c9f2f36a5e8c572a7e00f2ab
/share/transformers/gov_nih.py
3e49cdbe726026e489e893fb7d3163b073066a2e
[ "Apache-2.0" ]
permissive
CenterForOpenScience/SHARE
78e867de79c51751dc922e2e5729fbf64b10ab52
880fa0248fde111eafc8be7507dc5a5098ec433a
refs/heads/develop
2023-08-11T22:08:11.408053
2023-05-11T17:40:47
2023-05-11T17:40:47
21,280,081
96
70
Apache-2.0
2023-09-12T13:27:11
2014-06-27T15:19:21
Python
UTF-8
Python
false
false
9,988
py
gov_nih.py
import re from share.transform.chain import * import share.transform.chain.links as tools from share.transform.chain.utils import format_address PROJECT_BASE_URL = 'https://projectreporter.nih.gov/project_info_description.cfm?aid={}' FOA_BASE_URL = 'https://grants.nih.gov/grants/guide/pa-files/{}.html' def filter_...
3e3aa58f271911fff27d84a87443ef7c81fa235b
d992094db6cbad395f060b3809a35444737fe084
/SemanticAdaptationForFMI/FMIAbstraction/src/abstract_units/MultiRateAdaptationUnit.py
c110dac585e3068ebb3e07a0594a21a64d339cf3
[]
no_license
tongue01/hybrid-cosim
1dada6e1d5f8de1620cfb54adfb380ee6f12cffb
6e7f5e86e0f2fd17383251e2996e956a78241326
refs/heads/master
2021-04-01T07:34:38.003001
2018-10-21T10:06:56
2018-10-21T10:06:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,066
py
MultiRateAdaptationUnit.py
import logging import numpy from abstract_units.AbstractSimulationUnit import AbstractSimulationUnit, \ STEP_ACCEPT from master.GaussSeidelMaster import GaussSeidelMaster l = logging.getLogger() class MultiRateAdaptationUnit(AbstractSimulationUnit): def __init__(self, name, num_rtol, num_atol, ...
a02be71b4df302062a873741c6658e31472470ec
1925287f208182a2e0e663efa8828c7a86fa5788
/world/urls.py
19b396e187223fdaae1ce4d43113fa4bca8c0b95
[]
no_license
turamant/MySQLDeep
b38108b9095e8500e6997355211c99b28541d929
faad1dbe681f3e3a577d5049af20cb37a93bd4fe
refs/heads/main
2023-08-21T23:14:31.306242
2021-10-11T17:11:27
2021-10-11T17:11:27
413,948,058
0
0
null
null
null
null
UTF-8
Python
false
false
654
py
urls.py
from django.urls import path from world.views import get_city_list, get_city_detail, get_country_list, get_country_detail urlpatterns = [ #path('', CityList.as_view(), name='city_list'), path('', get_city_list, name='city_list'), #path('<int:pk>/', CityDetail.as_view(), name='city_detail'), path('<int...
9f9939dca837a605610c792b0cf1d7d97cac8ca8
9e28200b71d43de1e122a964e88f1b547bfde465
/question_leetcode/313.py
6c7d7587d2e0d082e2d012b1a3ce8fa490199ab5
[]
no_license
paul0920/leetcode
6f8a7086eefd3e9bccae83752ef41cbfee1acaea
474886c5c43a6192db2708e664663542c2e39548
refs/heads/master
2023-08-19T14:10:10.494355
2021-09-16T20:26:50
2021-09-16T20:26:50
290,560,326
1
0
null
null
null
null
UTF-8
Python
false
false
550
py
313.py
import heapq def nthSuperUglyNumber(n, primes): """ :type n: int :type primes: List[int] :rtype: int """ if not primes: return False heap = [1] seen = set() seen.add(1) for _ in range(n): num = heapq.heappop(heap) for n in primes: ugly_num...
c5763d47bf970c8644468ff2619dc24988b4d487
15c70a52bb2a4b5b3bdd4a62d97bbe27e3989a24
/src/lib/pointsManagement.py
75f7deeefd669eac22bee5691d04689613407396
[ "MIT" ]
permissive
nadimest/opentrons-colony-picker
91cbcc7a80fe9cefa0c8f45bab7ac51a715b87e6
8097f12cab91398377463a3a76367b73fa0a2318
refs/heads/master
2021-01-01T13:29:13.253905
2020-07-29T14:27:49
2020-07-29T14:27:49
239,299,577
0
0
null
null
null
null
UTF-8
Python
false
false
907
py
pointsManagement.py
from math import hypot ''' Operation on a list of points with format (x,y) or (x,y,z) ''' class pointsManager(): def __init__(self): self.elements=[] self.redoCache=None def add(self,point): self.elements.append(point) def undo(self): self.redoCache=self.elements.pop()...
99ca7097e8385dab5801d3dcdc21691224179587
8d0f90f3c913caddd4045ab20e46a2d92da9e4ac
/exercise_2.py
75e65e1f6811653b7a85f5647f8114ece25abeb1
[]
no_license
cwkteacher/python2_debug_starter
c0c34e2f737082baa7ef85f4a5b52eb54b239582
af79f7219c421eced375c373ac0be5210749a963
refs/heads/master
2021-04-15T06:54:48.353884
2018-03-22T16:47:30
2018-03-22T16:47:30
126,245,468
0
1
null
2018-03-22T16:47:31
2018-03-21T21:57:46
null
UTF-8
Python
false
false
290
py
exercise_2.py
def main(): counter = 0 index = 0 list_of_10s = [] while counter <= 100: list_of_10s.insert(index, counter) counter = counter + 5 # should print: "0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100" print(list_of_10s) if __name__ == "__main__": main()
4d2901e0b69956cb2297963a57f00419f335e0ff
36ccd56e0529ec0e1043e0b68aee5e8f444ddc96
/script.py
eb10921fae49f784542be4871e3445822ac934d3
[]
no_license
brian-chau/cython_csvs
df7d38395cd6d8787adae6b4105f6172fea3ec47
c7020e606ccaa8b730fe39c8b24ceca6e1eac73b
refs/heads/main
2023-08-06T02:43:32.946851
2021-09-25T18:52:32
2021-09-25T18:52:32
410,356,665
0
0
null
null
null
null
UTF-8
Python
false
false
328
py
script.py
import csv_handler import sys if __name__ == '__main__': if len(sys.argv) != 2: print(f"Expecting a filename! Received {len(sys.argv) - 1} command line arguments.") sys.exit(0) filename = sys.argv[1] pu_cnt, do_cnt = csv_handler.pickup_dropoff_yielder(filename) print(pu_cnt) print(...
b546f4e79d5ed5653bf0dc326d78722c0d08cf54
4bb2a395de60e7b793363d22d3acb2bf6ab3e407
/client/Modules/watershed.py
eb5da62d879203e52b61dde06af445f2be0ef676
[]
no_license
tshaark/Interactive-Image-Segmentation
016ae031f4f70c2cca775e06df73b35d4462591b
dfab54ee3050aba3d25accf7ecaf9337ef73359f
refs/heads/master
2022-11-16T08:49:09.867377
2020-07-10T07:08:43
2020-07-10T07:08:43
272,227,227
0
0
null
null
null
null
UTF-8
Python
false
false
3,249
py
watershed.py
''' Keys ---- 1-7 - switch marker color SPACE - update segmentation r - reset a - toggle autoupdate ESC - exit ''' # Python 2/3 compatibility from __future__ import print_function import numpy as np import cv2 as cv from Modules.common import Sketcher import os import requests import json from Mo...
54addcf6991352bb39ad443661cd49317795d98e
33789ec4b4a2d35f06cd89068f90686650057102
/fileIO/covid_analysis.py
b84051cf508d7ceca9a45b94347a3688ba3883a0
[]
no_license
unnievarghese/originalpythonluminar
d9c342a5b34b7236bf34f8a53b35188b12e90b3d
616929ff471700248b0619c35025562c131ea459
refs/heads/master
2023-03-01T20:59:41.165467
2021-01-23T11:26:09
2021-01-23T11:26:09
315,814,013
0
0
null
null
null
null
UTF-8
Python
false
false
732
py
covid_analysis.py
listofvalue1=[] dict={} file=open('covid_19.csv') for lines in file: words=lines.rstrip('\n').lstrip('\ufeff').split(',') words[3]=words[3].rstrip('***') if words[3] not in dict: dict[words[3]]=words[8] else: dict[words[3]]=words[8] for key in dict: dict[key]=int(dict[key]) high=max(...
17f7087e08300128003d07e45b187c5a5cc44644
16abf1b8a79d2abec0e453df765270a49e6f538b
/drizzlepac/wfpc2Data.py
99a7a6fa1a1460e3dcf40223d565105eee84ebeb
[ "BSD-3-Clause" ]
permissive
srodney/drizzlepac
c2f3faa4472643fdcb282050da7a8b534baf2307
c554523331a6204ce113d4317b7286ad39094f74
refs/heads/master
2020-12-28T06:49:59.935851
2020-02-12T21:20:52
2020-02-12T21:20:52
238,218,203
2
1
BSD-3-Clause
2020-02-04T13:54:43
2020-02-04T13:54:42
null
UTF-8
Python
false
false
12,697
py
wfpc2Data.py
""" `wfpc2Data` module provides classes used to import WFPC2 specific instrument data. :Authors: Warren Hack, Ivo Busko, Christopher Hanley :License: :doc:`LICENSE` """ import os from astropy.io import fits import numpy as np from stsci.tools import fileutil, readgeis from .imageObject import imageObject from . i...
b2575bd556ca37463b979ac7d036ce903c987a83
337aa229c68b4895ec2933b8ef5bdda0ccf31062
/app/article-test.py
330fec6e07782ccd7080c27e17eb2bb60610b172
[]
no_license
mbabazif/news-highlight
c78743d52ec5a1d2817ed26da45c4eb0de4c7dd6
3fc474d1de9cbd9ca053ce66938eb736ef5542e9
refs/heads/master
2020-04-23T15:11:35.610079
2019-02-22T10:48:12
2019-02-22T10:48:12
171,248,165
0
0
null
null
null
null
UTF-8
Python
false
false
1,369
py
article-test.py
import unittest from models import article article = article.article class ARTICLETest(unittest.TestCase): ''' Test Class to test the behaviour of the article class ''' def setUp(self): ''' Set up method that will run before every Test ''' self.new_article = article("Ne...
7e138eccc9cb28f79dcbd110820d8f1b81e97376
bb48204b6805f22333aee82c924811427fadedb3
/GCE.py
e3e9d3a7ab123bf8450434eab55c48ebfeaed83a
[]
no_license
henry8527/GCE
5c18e98a297dba217aca40c6b0144e83727c4300
d79e34ad9e814b2766860a46ac24c3915ee232af
refs/heads/master
2020-05-17T07:02:59.465440
2019-08-02T17:08:57
2019-08-02T17:08:57
183,571,141
45
3
null
null
null
null
UTF-8
Python
false
false
1,303
py
GCE.py
import math import torch import torch.nn as nn import torch.nn.functional as F # For MNIST dataset we difine classes to 10 classes = 10 class GuidedComplementEntropy(nn.Module): def __init__(self, alpha): super(GuidedComplementEntropy, self).__init__() self.alpha = alpha # he...
d77ac09196566421f1a3a0ca8d4b13d18ae32a58
80352efd5dd9f2ed186a42b30813be3fde9a417d
/trunk/modules/python/ae/net.py
d52b5bb7ea47c7da20b8d7ae9b18338e42166445
[ "MIT" ]
permissive
mbojrab/playbox
4e5042f91b1f4d00cd38bb12c825e7c0c33c7aa5
abbe116fc943e727119ffb47faeb41d29ffe56bb
refs/heads/master
2020-04-04T05:59:58.158037
2017-07-09T02:58:00
2017-07-09T02:58:00
52,119,608
1
2
null
2017-07-09T02:47:54
2016-02-19T22:05:10
Python
UTF-8
Python
false
false
29,844
py
net.py
import theano.tensor as t import theano from nn.net import ClassifierNetwork from ae.encoder import AutoEncoder import numpy as np from dataset.shared import toShared, isShared, getShape class SAENetwork (ClassifierNetwork) : '''The SAENetwork object allows autoencoders to be stacked such that the output ...
0eb40199c0c69b632ecd426b9143c11c6fcbea9b
62d25a7de507ed0eacf4dd07877e1218155e592e
/src/contestsiteinfo.py
43eba80583328c542eec4993fd0ec280ae3d37f5
[ "MIT" ]
permissive
AokabiC/compro-reminder
948d3ca147138c36265452539c8c92c127f677dc
103eb8240717eeb98aa1619c65e724890803057d
refs/heads/master
2022-12-11T05:42:51.281221
2020-12-18T00:57:54
2020-12-18T00:57:54
102,376,372
6
3
MIT
2022-12-08T01:50:24
2017-09-04T15:34:16
Python
UTF-8
Python
false
false
119
py
contestsiteinfo.py
from collections import namedtuple ContestSiteInfo = namedtuple('ContestSiteInfo', ('name', 'acronym', 'googlecal_id'))
71322cad9da791b407e436c7dec1b769d3e0ff31
aab03d35d5ef6ab0e40e9f45de89ae236635f816
/lba_data_validator/views/authors.py
1461b34d23a9d6a77680b701d16ab7e097bab440
[]
no_license
yanomateus/lba-data-validator
03d10d0b3682b14e81ca5468150d4f4f77ce66e2
378f1751487dda303113bdc7bc17561e8bb7558b
refs/heads/master
2020-05-15T13:10:26.434243
2019-08-25T16:53:15
2019-08-25T16:53:15
182,290,433
0
0
null
2019-08-25T16:53:17
2019-04-19T16:00:13
Python
UTF-8
Python
false
false
554
py
authors.py
def authors_view(request): contributors = [{"name": "Mateus", "last_name": "Yano", "age": 26, "occupation": "Developer"}, {"name": "Rodolpho", "last_name": "Santos", "age": 26, ...
46d029e2729c15dbf6584dfb00de09962bc21252
36fcead6b0c84abdb752567f6446ba4b9d6ae351
/src/util/threadutil.py
a2f9787257c9b32b01cd32d848c44d942b96c364
[]
no_license
wozuiku/stock
dbed9d9518da51e7cc0c3d63b6fd2710e8b29b6e
305379489057e8318c49965d8c08aa9fc1566830
refs/heads/master
2020-12-26T06:57:30.159256
2020-05-29T00:47:03
2020-05-29T00:47:03
237,424,893
0
0
null
null
null
null
UTF-8
Python
false
false
3,029
py
threadutil.py
import pymysql from datetime import datetime import csv; import re; import threading from src.util.sqlutil import SqlUtil; from src.api.netease import NetEase; class ThreadUtil(object): def get_row_index(self, rowCount, threadCount, threadId): rowFrom = 0; rowTo = 0; targetCount = int...
d1c254740117e592c497acf9a5a3614494b915c6
7a2f80853fa562ae2e2e6547bc3caeb492ef2013
/python_brewery_scraper.py
02144b50b90ebfb5be8f867afab81b40f1123fb7
[ "MIT" ]
permissive
myYearOfCode/bruby
3485c18d6936d2e96f7a7e49a69c7eff7e4c5769
210086e0e15e9eecc504453a1a71ed0377fbef3e
refs/heads/master
2022-12-23T13:33:35.241815
2019-05-25T01:47:43
2019-05-25T01:47:43
181,801,087
0
0
MIT
2022-12-14T05:34:41
2019-04-17T02:19:26
Ruby
UTF-8
Python
false
false
732
py
python_brewery_scraper.py
import json import time import urllib2 import requests data='https://api.openbrewerydb.org/breweries?page=1&per_page=30https://api.openbrewerydb.org/breweries?page=1&per_page=30https://api.openbrewerydb.org/breweries?page=1&per_page=30' i = 151 while i < 200: url = 'https://api.openbrewerydb.org/breweries?page=%s&...
77e8e9a3e4e1f814cfda5915633b81074092d427
8acffb8c4ddca5bfef910e58d3faa0e4de83fce8
/ml-flask/Lib/site-packages/pandas/tests/arithmetic/test_timedelta64.py
539c74b35226f7d0452f91f0bc93286980f76a32
[ "MIT" ]
permissive
YaminiHP/SimilitudeApp
8cbde52caec3c19d5fa73508fc005f38f79b8418
005c59894d8788c97be16ec420c0a43aaec99b80
refs/heads/master
2023-06-27T00:03:00.404080
2021-07-25T17:51:27
2021-07-25T17:51:27
389,390,951
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
test_timedelta64.py
version https://git-lfs.github.com/spec/v1 oid sha256:5149005faf792f797b3ececbcaa3aa7978fd01bf518539e5e3bd9c7544831769 size 77900
81e58f79d8e6c77e374487444531d9e98e3c2e4c
87bc489842317e1af7da7d8f12fc00b48f050228
/Solutions/PE002_even_fibonacci_numbers/python/even_fibonacci_numbers.py
c2365dbe3c5840f8aed84bf95f29336013b341d6
[]
no_license
mike006322/ProjectEuler
1c9da8d60bed3e50a7cf24e8b09eb122f18da723
51382187c551f648cf77c090ace26c271b6a7b9f
refs/heads/master
2022-11-08T06:27:23.313214
2022-10-26T04:32:29
2022-10-26T04:32:29
151,336,206
0
0
null
null
null
null
UTF-8
Python
false
false
1,124
py
even_fibonacci_numbers.py
#!/bin/python3 # https://www.hackerrank.com/contests/projecteuler/challenges/euler002 from functools import lru_cache @lru_cache(maxsize=None) def fib(n): """ returns the nth fibonacci number """ if n == 1: return 1 if n == 2: return 2 if n > 2: return fib(n - 1) + fi...
ee7b155bcb1d3bd37c514b46dbaa2090fdc121e9
de9f5f6fca55155e25edba1e89ac87cd5c6188c1
/【Demo.1】ファイルの自動DL&名称変更.py
399aa0d8bb68b6e2a64f038943a6541d6b312063
[]
no_license
Python-Handson/SamplePrograms
0d3247198443bd0986ca8dfce9831bc1d93e6e19
7bdff220ce54fb60951b6b9f1094e94a2efacc1b
refs/heads/master
2023-02-25T03:03:57.756386
2021-02-01T12:10:42
2021-02-01T12:10:42
331,002,161
0
0
null
null
null
null
UTF-8
Python
false
false
4,666
py
【Demo.1】ファイルの自動DL&名称変更.py
import time import PyPDF2 import urllib.request import re import sys import os import requests from bs4 import BeautifulSoup #----- 入力ファイル ----- # Excel READ_FILE_DIR = r'C:\Users\e12135\Downloads\DL2' CTRL_PORTABLE = True if not os.path.isdir(READ_FILE_DIR) else False READ_FILE_DIR = os.getcwd() if CTRL_PORTABLE e...
c13c3798544e9d7480f3dca6cf3e74af1347957f
3534aeabc82cc831b17d083404d72b503560d928
/src/state.py
1d965a4c226cb5d8880ad4d561beefb718588a4d
[]
no_license
Jztluo/simple_aes
8cfade83ae78d991eb57befabfdb9aa9d5b106d9
1cf1c0f11354fe787a374794b9ea3164df0e9788
refs/heads/master
2020-03-19T08:39:22.023412
2018-06-05T19:24:02
2018-06-05T19:24:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,900
py
state.py
from .byte import Byte, mb2, mb3 def is_acceptable_matrix(matrix): if list != type(matrix): return False if 4 != len(matrix): return False for l in matrix: if list != type(l): return False if 4 != len(l): return False return True def is_accepta...
9f0b7573cce48cb37a7ed50e3988b3cebc2524b9
9df6e93c1950b8917e43ae6ee010bfd51aa1a444
/src0407/04075.py
9948242e746e3c337be9c6f6a2dcf22dd25ff0b4
[]
no_license
Coconutnn/TestCase
e04b3f33056e8067b2c59e9c91ccb9cb9ad7fdd5
808fafdfadd5dc6eaacc85a13483fdd2f2ebb093
refs/heads/master
2021-03-15T13:50:14.150045
2020-04-23T14:02:21
2020-04-23T14:02:21
246,855,106
0
0
null
null
null
null
UTF-8
Python
false
false
362
py
04075.py
import time import os from selenium import webdriver driver = webdriver.Chrome() file_path = 'file:///' + os.path.abspath("E:\\测试网页\\upload.html") driver.get(file_path) driver.implicitly_wait(10) # 定位上传按钮,添加本地文件 driver.find_element_by_name("file").send_keys("E:\\java_image_server\\images\\01.jpg") time.sleep(3) drive...
0b125b342d9bcf3b7cb6ef35433d4852dec84782
5e0152be937e011a99f78233ee53965713e64e88
/teste_pygame/cobra.py
dc61044d59c914ee96d6af633b37af18aa6efc34
[]
no_license
ravizao/pequenos_projetos
4ecf8ee7664ed948f9b04b769357169e18d9bb4a
027e292e52017fd693b7619c12cc57e6edeffbe6
refs/heads/master
2022-12-13T22:51:36.300545
2020-09-02T22:46:54
2020-09-02T22:46:54
291,174,397
1
0
null
null
null
null
UTF-8
Python
false
false
984
py
cobra.py
import pygame from pygame.locals import * import math pygame.init() tela=pygame.display.set_mode((800,600)) tx=50 cobra_x=350 cobra_y=250 x=cobra_x y=cobra_y jogando=True hip=math.sqrt((50*50)+(50*50)) gspeed=250/((hip-50)/(0.1*0.1)) print(gspeed) while jogando: tela.fill((255,255,255)) pygame.draw.rect(t...
dd37705788f9f5ae44e092ecf73a4a7a9c681110
c412e4e8fdb42becd0d9980a181fa3eef24f5318
/prime.py
92e5aed7485d82e6eebd27c2759899bbc9681d74
[]
no_license
sralli/APS-2020
bc4486e75fd467d4db76c8dca5d9b2095e80b12a
6db5b9f1b79e12ec455ac1f5d9a6c9d83440d0e9
refs/heads/master
2020-12-21T06:33:32.445896
2020-05-19T12:52:44
2020-05-19T12:52:44
236,340,015
0
0
null
null
null
null
UTF-8
Python
false
false
209
py
prime.py
def prime(m): if(m==1): return(False) for i in range(2,m): if(m%i==0): return(False) return(True) def primes(n): p=[] c=0 i=2; while(c<n): if prime(i): p=p+[i] c=c+1; i=i+1; return(p)
b2842fded766971ca0d3b89417e9da5baccddb32
1c7baf4176264684f35456681b68217916ed2f85
/appCode/Common/utility.py
3d7eb41c45ed37769a03e126a7eb8b17148327e6
[]
no_license
wlee0515/LuluBot
d7c0397e0e9c911909d3a51c4d71de9920e5442b
7b99015afa68b8d6c4da6d3549a9f9b0fcbacdb4
refs/heads/master
2021-02-03T22:50:48.614568
2020-03-16T19:02:13
2020-03-16T19:02:13
243,564,971
0
0
null
null
null
null
UTF-8
Python
false
false
1,191
py
utility.py
import os, sys import json, yaml from datetime import datetime def saveObjAsJSON(iFileName, iObject): wfile = open(iFileName, "w") wfile.write(json.dumps(iObject, indent=4, sort_keys=True)) wfile.close() def loadJSON(iFileName): wFileHandler = open(iFileName, 'r') wJSONObj = None if 'r' == wF...
cd4c67bdfc47bbb9c6ce6710bbe4da642de3970d
6fefb00534b474b2c860062708da75124dd88477
/worker.py
ed3a12698540ce4ea966d45a5ebf5e7d693e33eb
[]
no_license
thehamzarocks/tortoise-mq
4d0afdbcf21c5e3ac365d90204feb7c7efc8063e
07d4bcfe9f864db62ba0f2056de5946dda8ca9d3
refs/heads/main
2023-04-30T20:56:53.566083
2021-05-03T16:06:48
2021-05-03T16:06:48
363,730,010
0
0
null
null
null
null
UTF-8
Python
false
false
1,614
py
worker.py
#!/usr/bin/env python import pika import time from tortoise_mq import TortoiseMQ connection = pika.BlockingConnection(pika.ConnectionParameters('localhost')) channel = connection.channel() channel.basic_qos(prefetch_count=1) channel.queue_declare('task_queue', durable=True) # the workers are initially plagued with b...
fd14bbe0051a20ee7f59103a75c3c6ed4798aee8
585fd31b948ea81e8faf03ac036567a5ad88543b
/models/data_import.py
978b83ffd7b0339b336a2b355df6cea897e97af2
[]
no_license
slot555/nanny
9baaa32cabb1dbf59e9c738458c16e732b5b8fff
a49c09fa6dbdd800fb9aab089bd950b86390b542
refs/heads/master
2022-11-30T16:54:15.767635
2020-08-04T07:40:02
2020-08-04T07:40:02
284,908,186
0
0
null
null
null
null
UTF-8
Python
false
false
1,265
py
data_import.py
# -*- coding: utf-8 -*- from odoo import models, fields, api class DataImport(models.TransientModel): _name = 'nanny.data_import' _description = 'Import' name = fields.Char(string="import") def make_data_impoort(self): from_data = self.env['test.mod'].search([]) for client in from_dat...
0a9e35302c18bd43617480c21574fd319ee3b4cd
7e16c2692ce4c15ea9da6edef4508c4ade930032
/realestate/main.py
3df1dc1fed827bcb31f2acbc5ff1a2e37d08623a
[]
no_license
rudalson/data-analysis-note
f2336817e9076e7d82f32fce29a8cf0ec42e3fbb
c151e7ae3b49ba6bae27395b963a66d21d3da2a5
refs/heads/master
2022-12-17T00:54:25.239603
2020-03-25T19:31:53
2020-03-25T19:31:53
216,985,900
0
0
null
2022-11-22T04:51:15
2019-10-23T06:39:06
Jupyter Notebook
UTF-8
Python
false
false
5,853
py
main.py
#!/usr/bin/env python3 # coding: utf-8 import time import configparser import os import pandas as pd import xml.etree.ElementTree as ET import requests HOST = "http://openapi.molit.go.kr:8081/OpenAPI_ToolInstallPackage/service/rest/RTMSOBJSvc/" URLS = { 'apt-trade': { 'url': HOST + "getRTMSDataSvcAptTrad...
2aaa0122ed8ec9cbcd908033b0d169d27114d65c
f763cddbab7aa2495b6fcee27a57bcf426a27f0d
/src/utils/shaper.py
4874f36d585e10d5baac0579f4cfb448f02eb82c
[ "MIT" ]
permissive
Sapunov/pktmapper
522f01db14cd648ffc8c19ca37f95e1113bb1a26
9d72a42c5b756c10c7fb0debcfc6c20031626aa1
refs/heads/master
2021-01-13T10:46:58.183958
2016-10-30T23:49:44
2016-10-30T23:49:44
72,382,484
0
0
null
null
null
null
UTF-8
Python
false
false
2,557
py
shaper.py
#!/usr/bin/env python """ Script for making learning sets. """ import argparse import os class ProtocolsFileNotFound(Exception): def __init__(self, filename): Exception.__init__(self, filename) class NoMuchData(Exception): def __init(self, filename): Exception.__init__(self, filename) de...
235a9296db3eeace3477bbf6e8321cfac421dfff
37932e401b36f7888b0d008be7ce9a1291849486
/other-javasamples/cloud-samples/samples-cloud-2-aws-cognito/refresh_user_info.py
3cdc168f37d8ed185baafb9b4294a965c1863a93
[]
no_license
minghuadev/minecraft-tests
c1eab96ba74e58e63cfb410fd6a56fd1ea95cc24
d4fb223e846e669d71ea1d3802b167843badbb93
refs/heads/master
2023-07-23T05:23:32.145860
2023-07-17T15:17:01
2023-07-17T15:17:01
18,784,548
6
1
null
2021-12-13T02:04:04
2014-04-15T02:23:50
HTML
UTF-8
Python
false
false
1,365
py
refresh_user_info.py
#!/usr/bin/env python # refresh_user_info.py # https://medium.com/@houzier.saurav/private-api-endpoints-with-api-gateway-authorizers-and-cognito-249c288b0ab8 import boto3 import botocore.exceptions import json USER_POOL_ID = '' CLIENT_ID = '' CLIENT_SECRET = '' def error_message(msg): return {'m...
66fba7f239ccc2b2ef9fdb0987218793323e2c45
00a72be488ed749a91d17a022df102baca9d383e
/blog/migrations/0008_auto_20200603_1111.py
13dbf9686fd9359bf4c82086fd9a98aee2355050
[]
no_license
Damian-T417/blog
d6db1c6ec2e20df0c71cddbd001e74d4e2b2f6c8
9b5e2eb7b86e9e587b02fda2081c2c3c6188cf29
refs/heads/master
2022-11-20T16:02:07.663433
2020-07-21T22:56:39
2020-07-21T22:56:39
281,521,371
0
0
null
null
null
null
UTF-8
Python
false
false
417
py
0008_auto_20200603_1111.py
# Generated by Django 2.2.12 on 2020-06-03 16:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0007_auto_20200603_1037'), ] operations = [ migrations.AlterField( model_name='post', name='image', ...
9fd40eb421c42a9fd0ce2f716d135dd32839e3c5
7dd88d4ae218b8de8fe54780fb48884ef92c0b5c
/python/crack_interview/ch2/find.py
baa5658d5f8bc8d1e745efc0b87d8821e1007250
[]
no_license
BenThomas33/practice
c98654ec3bb38740d7f69a21ea5832782abdb4f8
5dffbdfbdb65f959a534ed2e2ec7773ab4bc7ed9
refs/heads/master
2021-01-17T23:26:11.538707
2014-10-18T20:49:12
2014-10-18T20:49:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
162
py
find.py
""" Find circle """ import os import sys sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from structs import linkedlist def find():
f48c9f57da4770bb62aecee943942f1aec49ae1a
180d57ed0eb6c9012f0558c114518a82d22e7071
/models/clustering_embeddings/get_embeddings.py
8635625e523d5ba70a335012b169c259f203cb9d
[]
no_license
ranyd18/BT4103-Gp2-F5-Cornerstone
5c86b9b1ac197dac527255fff16714fb50e3783b
9ea1a112d170779d43491dddb7a5f08334d28714
refs/heads/main
2023-04-15T17:33:24.642286
2021-04-13T06:54:25
2021-04-13T06:54:25
356,870,435
0
0
null
null
null
null
UTF-8
Python
false
false
839
py
get_embeddings.py
import pandas as pd from sentence_transformers import SentenceTransformer import numpy as np import time start_time = time.time() # read data print("Reading df...") df = pd.read_csv('../combine_sr.csv', usecols=['F5_Product','Processed_PAR','Processed_Abstract']) df.dropna(subset = ['Processed_PAR'], inp...
d01331d7c9df64059235ee062e90a3254cd72b98
32199fc3ea2af5686b38f2b5cc53dd8c6fee7546
/Python_2_Projects/Decode_JSON.py
daddb6e6940f7c7df91a15a2cd6ff68491bcf9f4
[ "Apache-2.0" ]
permissive
MLord88/DAT129_CCAC
b294ee9cedabd27be5b257159dff0d4e48369bad
4d87d9caaeeac17ba1414740ca66417be6dcca3a
refs/heads/main
2023-04-28T00:38:36.084570
2021-05-15T08:51:46
2021-05-15T08:51:46
336,048,145
0
0
null
null
null
null
UTF-8
Python
false
false
432
py
Decode_JSON.py
import json with open('a_few_rocks.json', 'r') as rock_file: rocks = json.load(rock_file) print(rocks) for r in rocks: print(r, ':', rocks[r]) with open('a_few_rocks.json', 'r') as rock_file2: #extract the contents of the file manually with file.read() rawstring = rock_file2.read() print(r...
cfabe3f5d2062d4747d7bfd7468e16ed2c097984
1dd61e8bdc9b3bb50a4af891dec1a4d7d5003afa
/Chapter04/04_orb_detections.py
4a61aca2799b209eedb68836a8bc2b3cf9365401
[ "MIT" ]
permissive
PacktPublishing/Practical-Computer-Vision
52485cde26cb87ee902ab7f758c06e682481af6d
b442c6da0596a286eba932d1fa208da4cbf64683
refs/heads/master
2023-01-22T13:08:41.615012
2023-01-18T10:17:05
2023-01-18T10:17:05
120,280,421
32
27
null
null
null
null
UTF-8
Python
false
false
2,015
py
04_orb_detections.py
import numpy as np import matplotlib.pyplot as plt import cv2 # With jupyter notebook uncomment below line # %matplotlib inline # This plots figures inside the notebook def plot_mulitple(img1, img2): """ Converts an image from BGR to RGB and plots """ fig, ax = plt.subplots(nr...
058d93d08ac5ff0199b92358ba009af93df6598e
882233c7d57ab4a663fd68f9e5f58d626b2edda1
/hallo.py
4dd22477a09224ea5f72bfd9c7f964e5bfbe27f2
[]
no_license
rikcoal/projek-lemper
6d0a1300c53494cba6e06e75ef4505df35f3adaa
0d36603ba794971e116803315b0b3565c54269ba
refs/heads/master
2020-07-22T06:46:50.394433
2017-06-14T15:50:12
2017-06-14T15:50:12
94,347,053
0
0
null
null
null
null
UTF-8
Python
false
false
80
py
hallo.py
#!/user/bin/python print "hallo world" print "ntap jiwa e" print "hang tenang"
87878e0e05ae2de03fb7cb05f4351bd864cff328
fd7552a7fa55d2cc0d9b50f63e31ee03a11c07e2
/PythonForLeetCode/220_ContainsDuplicateIII.py
5678affc345db9016316c3e27ad016020624f912
[]
no_license
hanrick2000/leetCode-5
0828ad9655034b5fa90475c17f78d80ebe01d819
58ab36bb9b568c25ceafd5e3c2acae8057e3df0c
refs/heads/master
2020-12-10T16:18:10.213237
2019-06-05T09:05:49
2019-06-05T09:05:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
917
py
220_ContainsDuplicateIII.py
class Solution: def containsNearbyAlmostDuplicate(self, nums, k, t): """ :type nums: List[int] :type k: int :type t: int :rtype: bool """ newlist = [] count = 0 for num in nums: newlist.append([num, count]) count += 1 ...
fc3db83de25a1dcbddc6c0b567075f48160c54e8
42da62fce1d8f74110767c56f5c063473f7db483
/Logistic regression Tensorflow.py
d0738bb1ca8fbcf624abd2c4659c011babd6997b
[]
no_license
tromper98/logistic-regression
e93d4ca8e664daa36f901bf2e07a744b25c591cf
05c9e4bbff92d31812c5dbc4995b2f88d780cfff
refs/heads/main
2023-06-21T11:59:07.926444
2021-07-13T22:25:32
2021-07-13T22:25:32
385,750,264
0
0
null
null
null
null
UTF-8
Python
false
false
2,659
py
Logistic regression Tensorflow.py
# -*- coding: utf-8 -*- """ Created on Tue Jan 12 18:17:09 2021 @author: kolof """ #Подключение библиотек import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns import sklearn.metrics as ms from sklearn.metrics import confusion_matrix from sklearn.model_selection import train_tes...
31a148bd2a9014652fddcfd47a70edd77aba703a
eb6c6c0285abdf3dedd4ac978a193486fbd62b03
/2003/0316/swea 3143-2.py
2f6766eeb4cc1a4f820e4683851a46d9a80b1a0e
[]
no_license
ttppggnnss/CodingNote
4a57631a4f0ef1add915dbbf051d80ad5425dbee
c211f9f0b168de0dc2def74a90bab17c13608425
refs/heads/master
2022-12-17T21:09:48.091735
2020-09-15T15:06:55
2020-09-15T15:06:55
241,315,123
0
0
null
null
null
null
UTF-8
Python
false
false
464
py
swea 3143-2.py
import sys sys.stdin=open('input.txt','r') for t in range(1,int(input())+1): a,b=input().split() i=0 ans=0 while i<len(a): if a[i]==b[0]: for j in range(len(b)): if i+j==len(a) or a[i+j]!=b[j]: i+=j ans+=j b...
ad99157c90cc559b4433808ff5367a1e4d5d0179
c52235a7550864e7972839b1cb1e45ac9df1d238
/@Resources/Meters.py
cbdd3cca4c41ed1e706dd38d3de9f353fe46cab9
[]
no_license
Kattusite/HouseOfDust
32757f02524225eb994d6bf2a0405f98193c9a8e
0ce527ee0b32367ad57749c94f0d80eb1a03666c
refs/heads/master
2022-11-24T02:58:08.353718
2020-08-01T21:23:36
2020-08-01T21:23:36
284,341,221
0
0
null
null
null
null
UTF-8
Python
false
false
784
py
Meters.py
rect = """[Meter{i}{x}] Meter=Shape MyGradient=180 | #Background# ; 0.0 | #Background# ; 0.6 | #Background2# ; 1.0 Shape=Rectangle 0,0,#RectWidth#,#RectHeight#,#RectRadius# | Fill LinearGradient MyGradient | Stroke Color 0,0,0,1 """ sm_rect = """[Meter{i}{x}] Meter=Shape Shape=Rectangle 0,0,5,#RectHeight# | Fill Colo...
a11096af55f6e9327512124b3ff53c81f32d30f5
aa4e4389ce1ecd2f42ab1d5c6eb85bbd56f8ab3a
/docker_cluster.py
e52b2ee6223529e3423336d9635a1f4ba85947dc
[]
no_license
subhamkrai/hadoop
664c25041d63212302a5a74f061a3b8557ed4a73
791d085c4646f7357ff4caa16cdf1d378fa04f33
refs/heads/master
2020-03-19T11:04:10.256496
2018-08-29T04:49:52
2018-08-29T04:49:52
136,427,165
0
0
null
null
null
null
UTF-8
Python
false
false
1,499
py
docker_cluster.py
#!/usr/bin/env python import commands import os import time size=raw_input("enter the cluster size") id_hadoop=[] ip_hadoop=[] size=int(size) for i in range(size): if i == 0: id_hadoop.append(commands.getoutput("docker run -itd --rm centos6:hadoopv1")) print commands.getstatusoutput("docker cp /home/leo/hadoop/co...
94132b23aa191296e37f6c20b073f11962c0ea9e
7b279ae9d82bccdfbf9eaf12697d2ee6351a976f
/throw/apps.py
05b0769ad1d7a6d7a5cfeaf93158823bf8562eb2
[]
no_license
leokhachatorians/my_website
0503425d55a0c96654617b95b38bc87ee35e7118
1c79e688bfe032238d50dec837735a36c1a7e79c
refs/heads/master
2020-04-10T20:10:47.680208
2016-10-03T06:03:42
2016-10-03T06:03:42
68,084,518
0
0
null
null
null
null
UTF-8
Python
false
false
85
py
apps.py
from django.apps import AppConfig class ThrowConfig(AppConfig): name = 'throw'
de40f02b6772176e71dd12c961fb7b27f95a2928
96c798395bf7dfbc36135264c21704f95c0465bb
/others/admin.py
6f25f2ed2bcf92002edb389713e455f19e4fe19a
[]
no_license
thongna/SonBoutique
d22be104762c13f22205e62fceed36767de0d0b7
efba0c392ad1a3add4cb33f7157b8adaacc16a0b
refs/heads/master
2023-01-25T00:50:12.411879
2018-08-29T00:54:44
2018-08-29T00:54:44
144,157,863
0
0
null
2022-12-27T14:58:15
2018-08-09T13:41:20
JavaScript
UTF-8
Python
false
false
781
py
admin.py
from django.contrib import admin from .models import Contact, QuestionType, Question, Messages # Register your models here. @admin.register(Contact) class ContactAdmin(admin.ModelAdmin): list_display = ['name', 'address', 'phone_number'] search_fields = ['name'] @admin.register(QuestionType) class QuestionTyp...
2c9a3feacb2ebc9a631a4af657834b854a3729ec
512156978acb95f576f73dc9b32136b9758aad1b
/src/tictactoe.py
5a235a4221c112fb9ecd6d15639416865f741d7c
[]
no_license
samihda/magicsq
81dafbd9cbb316d84acf4febbb85158756c972cb
fcf2e61e1cd48d6abb60e2c4481c62195a53ae77
refs/heads/master
2020-06-10T04:10:48.888946
2019-12-01T23:18:26
2019-12-01T23:18:26
193,578,225
0
0
null
null
null
null
UTF-8
Python
false
false
1,525
py
tictactoe.py
from magic import size, win_combo empty = "" x = "X" o = "O" board = [empty for _ in range(size * size)] def board_full(): return empty not in board def move_valid(board, index): if not (0 <= index < len(board)): return False return index in [i for i, cell in enumerate(board) if cell is empty] ...
3784f3998acb3c60140657f5a281150a71e496f2
2f4bfb038e99f4bf0d8394c27ace357f82e1c82f
/temp_embedding/test.py
acbabe408b7c074d66e7ee9d7f0313831c95f75c
[]
no_license
NoListen/DeepWhat
b7b67c54669b8cdb10fafb9131cb0eb6d5f70a3d
11697841dd1cf7b26ad4da24cdeb97b5a849213e
refs/heads/master
2023-03-12T19:12:19.093738
2021-03-03T14:46:48
2021-03-03T14:46:48
102,484,638
0
0
null
null
null
null
UTF-8
Python
false
false
1,960
py
test.py
from tqdm import tqdm from torch.utils.data.dataloader import default_collate import os import torch import argparse import numpy as np from dataset import DiskDataset, get_nested_target_file_paths from network import TempEmbed from trainer import TempTrainer from torch.utils.tensorboard import SummaryWriter from tqdm...
c7e0c05c2c206c39eb98f058dea3ee3374fb5de6
d162bccaac68c88b1119871b71514bbba73bc069
/main.py
9b2f3c2a43931de2e405c2e8a279b4496c6a47ec
[]
no_license
nishanthshastry/ooad_project
7b015077abf4e076eaddc878484dc866eab7bfd4
2cc5fe758b7709979a827a947da3a718bc66a46d
refs/heads/main
2023-04-15T19:58:21.294653
2021-04-19T13:39:24
2021-04-19T13:39:24
359,471,565
0
0
null
null
null
null
UTF-8
Python
false
false
343
py
main.py
import stdiomask print("\n\t\tOOAD project\n") print("\tEnter Login credentials to shop!") u = input("\n\tUsername: ") p = stdiomask.getpass(prompt='\n\tPassword: ', mask='•') if u=='pesu' and p=='pesu': print('\nWelcome', u, '!!\n') import first else: print('\nWrong credentials... \ntry again') imp...
6728fdb7efd4b3bc55f2b95119351e42ce599161
6e92c4834b6e5dfb793789ef190cf738163511a9
/Calculating Protein Mass/main.py
95f857a46b898a749d88b5394301f534f4a31bfc
[]
no_license
GaZ3ll3/Rosalind
f70dc86a288ad078dc7a035fc69861719200b039
3fcf483e13184fd554d3d0537fb44e2dc80d405c
refs/heads/master
2021-01-10T19:31:33.436935
2013-04-15T17:21:02
2013-04-15T17:21:02
9,453,673
3
6
null
null
null
null
UTF-8
Python
false
false
638
py
main.py
# -*- coding: utf-8 -*- dict = {'A': 71.03711, 'C': 103.00919, 'D': 115.02694, 'E': 129.04259, 'F': 147.06841, 'G': 57.02146, 'H': 137.05891, 'I': 113.08406, 'K': 128.09496, 'L' : 113.08406, 'M': 131.04049, 'N': 114.04293, 'P': 97.05276, 'Q': 128.05858, 'R': 156.10111, 'S': 87.03203, 'T':...
6cb3af501c1e9a81dcda170d57aab85ff4f158e6
012d9c76bc06a7143ae43df2c50bfabdb1cf381f
/TripUpdates.py
edb1d90b09e49fb8745c81089d859840e534f3d7
[]
no_license
geevis/GoogleLiveDataFeed
86a8e3bcd2970acf96af022d9545381778b4033e
d6aafeff82a53ce1f10e19701e7f5a8de56359ac
refs/heads/master
2021-01-17T14:44:11.951359
2016-06-21T17:48:14
2016-06-21T17:48:14
48,964,657
0
0
null
null
null
null
UTF-8
Python
false
false
471
py
TripUpdates.py
from google.transit import gtfs_realtime_pb2 import urllib feed = gtfs_realtime_pb2.FeedMessage() response = urllib.urlopen('http://192.237.29.212:8080/gtfsrealtime/TripUpdates') feed.ParseFromString(response.read()) for entity in feed.entity: if entity.HasField('trip_update'): print entity.alert #print enti...
1e92c5771a76b8297eca0c5fe9d463849d50f98d
246a63b241b4503f712c1a8c9346c9ce05244a6f
/readme4me.py
9034d07961f25df77b7646a5ae04d2fde398e493
[ "MIT" ]
permissive
amacharla/ReadME_Generator
00faf610f5396fd488fc32ab48c070e6b27696bc
5024e6a7ca4b1cf539825a58dd55a110ae15f468
refs/heads/master
2021-01-21T05:32:44.869165
2017-09-26T21:13:09
2017-09-26T21:13:09
101,927,507
2
0
null
null
null
null
UTF-8
Python
false
false
1,622
py
readme4me.py
#!/usr/bin/python3 # ReadMEGenerator Version 1 # Created by Anoop Macharla 08-15-17 from bs4 import BeautifulSoup, Comment, NavigableString from sys import argv # Arguments check if len(argv) != 2: print("Need to pass in a file with HTML SourceCode") exit() # open html file (1st argument) and parse through s...
7ba02608badc8f7e8fde82d03a77b1e9750d66fe
8b4268bb030fc68f99133e5e2b9df72a5d61a92c
/window.py
88240698b109d15c8961096f65d35a0dc8ffa9e9
[]
no_license
wesleygurgel/Tkinter
2d618e55099773b85510ac2ff78aad032a0f3f6d
b0b341a5d5556878e8c85232b75113fab902ecfc
refs/heads/master
2023-02-01T17:24:36.408810
2020-12-17T12:58:42
2020-12-17T12:58:42
294,696,947
0
0
null
null
null
null
UTF-8
Python
false
false
514
py
window.py
from tkinter import * from PIL import ImageTk,Image from tkinter import messagebox root = Tk() root.title("Window") root.iconbitmap('imagens/icon.ico') def open(): top = Toplevel() top.title("I'm in a next level") global myImg myImg = ImageTk.PhotoImage(Image.open("imagens/perito.png")) myLabel = ...
44454c7aaf58fb0f0cc3ef49c8a6b8d093c459c8
80587e868a2f53719c7856e85f75b209348e5860
/gmgard.py
3dfeadb875bbf9fb254355dac0391c621c017a25
[]
no_license
httpsgithu/Trash
655d610983ba7f96a58db4f9f1e7074c2d43faf6
4207e89bf58b24b58008fb3738a915af1f2e44d3
refs/heads/master
2022-06-21T13:47:08.682495
2022-03-25T21:07:19
2022-03-25T21:07:19
293,013,474
0
0
null
2022-03-31T06:09:39
2020-09-05T05:59:08
null
UTF-8
Python
false
false
2,578
py
gmgard.py
#!/usr/local/bin/python # coding: utf-8 import requests from bs4 import BeautifulSoup import re,os import sys import json from time import sleep from funcs import functions class gmgard: url = 'http://gmgard.com' loginUrl = 'http://gmgard.com/Account/Login' captchaUrl = 'http://gmgard.com/Captcha/CaptchaIma...
929e99827067691b37dc8370bbc97fbe467ab69f
f676456dd79c359f70d489483ecf5ee10e50cf4b
/src/python/file_downloader_old.py
ec4a9be61d30d61a4d10a343aba8ab673e525135
[]
no_license
sheunaluko/medline_docker
c41d5ea80b723d0ef353f679f8f46a2ded78e725
cead445aceeaf55ab18b9bf09464998683d55eaa
refs/heads/main
2023-03-21T18:51:31.564881
2021-03-16T05:10:23
2021-03-16T05:10:23
345,262,320
0
0
null
null
null
null
UTF-8
Python
false
false
1,184
py
file_downloader_old.py
import util as u import os import sys log = u.register("file_downloader") base_url = "https://ftp.ncbi.nlm.nih.gov/pubmed/baseline/" compressed_dir = os.path.join(os.getcwd(),"../../data/compressed/") def all_files() : log.i("Generating files") start = 1 end = 1062 return [ get_file_name(x) f...
12a2a8ab5cd3d5d1716f643ec6b02ddf057c208b
d1934ef7816a171d9d78ffaba19af58acead23ac
/neutron_plugin/tests/test_security_group.py
25a0b573e9301837b4576860906ee63281b87520
[ "Apache-2.0" ]
permissive
jrzeszutek/cloudify-openstack-plugin
20a4b28bd90a7295ee47276aba11ca27a18a19d7
2d71d5b4e10f2eaa793e47f21ac8e9da87462a7a
refs/heads/master
2020-03-30T23:03:14.628747
2018-10-22T13:19:36
2018-10-22T13:19:36
151,688,879
0
0
Apache-2.0
2018-10-05T08:00:33
2018-10-05T08:00:44
null
UTF-8
Python
false
false
3,665
py
test_security_group.py
# -*- coding: utf-8 -*- ######### # Copyright (c) 2016 GigaSpaces Technologies Ltd. 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/license...
12d2c2891f87358eac9db7fbc3cc9c323b31cfce
515b5671aa966956605a1565f11c5a72e3f01ea5
/Email_V2.py
8e0092f496f3e9a300cc53a46c7ebac132c99353
[]
no_license
julian1999/Audify
da0a030b0972c9e52736e410e626e4b9b31490e3
972bbfe15e29ff8675d90114f76377252f43d462
refs/heads/master
2020-03-19T05:00:15.465928
2018-06-03T09:38:24
2018-06-03T09:38:24
135,890,472
0
0
null
null
null
null
UTF-8
Python
false
false
1,142
py
Email_V2.py
import smtplib import sndhdr from getpass import getpass from email.mime.multipart import MIMEMultipart from email.mime.audio import MIMEAudio server = smtplib.SMTP('smtp.gmail.com', 587) print("IMPORTANT: MUST ENABLE ACCES FOR LESS SECURE APPS") print("Login only available for gmail accounts") username = input("Enter ...
3906b25c3b29599a66f26ace7fcca0b8d49c6433
252289003a312e81033c0510ffb6c74601330e30
/yyTorHandler/yyTorHandler.py
775c3966d22a88345121a17b67e4d7f2f8a14b6b
[]
no_license
ComiCoder/YoYoProject
5283d9b83d3b87077916697b9a861b1d8233c0a6
3fb5a80642c98a2eeef3b78c4dbca4f3e8d86a90
refs/heads/master
2021-01-22T10:18:27.728374
2014-12-17T07:03:39
2014-12-17T07:03:39
26,566,679
0
1
null
null
null
null
UTF-8
Python
false
false
149
py
yyTorHandler.py
''' @author: ryu ''' import tornado class YYTornadoHandler(tornado.web.RequestHandler): def get(self): self.write("hello!")
baae942e48a25b7f73bf88ca4925f7a0545465e3
a969993b6fae8111f4dee159d89ee70e40e49c8e
/sklearn_and_tf_experiments/svm.py
8cfa27914f79b9d8e5f6a57883c99a68d194e8c4
[]
no_license
rynsy/ml-experiments
53575e011cbdb4d2794773855cf6c1c1c1f151b2
01946a4be98ee7085d90c8657e0228ecb1942d94
refs/heads/master
2022-11-28T09:10:17.827135
2018-09-12T15:47:18
2018-09-12T15:47:18
148,504,572
0
0
null
2022-11-22T01:06:32
2018-09-12T15:47:55
HTML
UTF-8
Python
false
false
1,213
py
svm.py
from __future__ import division import numpy as np from sklearn import grid_search from sklearn.cross_validation import train_test_split, cross_val_score from sklearn.svm import SVC from sklearn import metrics PRINT_MATRIX = False def true_positives(m): s = 0 t = 0 for i in range(len(m)): ...
942feda9cdc1dff4e2cfb083604f6b33be0c92ab
2a8c8e48a583332b4c336d2450c500305a775435
/team2.py
0b1d6a4cdaaaf17a28f365622ca3ee4d423dcfc2
[]
no_license
aenriquez06/CSP_AbisaiEnriquez2017
6ed644daac1f98fd080cec84cab2015da30082b7
4f0b7e6756b2c0b24aeccbad0d5f244d717a9de9
refs/heads/master
2021-01-12T03:00:26.506682
2017-01-05T21:09:47
2017-01-05T21:09:47
78,146,845
0
1
null
null
null
null
UTF-8
Python
false
false
40
py
team2.py
# CSP_AbisaiEnriquez2017 Andres Marrufo
270b66bdfd72bd3247841d45431e0e105570d4db
ec6eb6d115102eccaf40d1f6ef2750ee54070b47
/AOC_day17.py
e83ccf58d6fc9866063457f2a058ae76187b5925
[]
no_license
cm226/AOC_2020
38ad131c9ea7325276aeebe79550eeb97df7394d
9c1fcadcce054e9e26b1cccf5857e51f19bca455
refs/heads/master
2023-02-05T22:25:36.557982
2020-12-23T14:36:48
2020-12-23T14:36:48
322,918,239
0
0
null
null
null
null
UTF-8
Python
false
false
6,115
py
AOC_day17.py
import copy from operator import add def AddW(idx, grid): global m_dim global min_dim # make a box the right size box = {} for z in range(min_dim[1], m_dim[1]): box[z] = {} for y in range(min_dim[2], m_dim[2]): box[z][y]={} for x in range(min_dim[3], m_dim[3...