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
37f198fda0b4255d41bf3fd562385ff73b7643ce
34203be8132c5dd86696172f50648cd77a2bfb25
/amazons27_part2.py
6b3f3f33c6d3e10afef96f8ad0728a1eec980324
[]
no_license
ManaliS93/Game-Of-Amazons
44faa138fdc4df793d869da73f616c0dd959e1ad
ffa3fa4dc91f326aa7fe6cd9cdf5a16327ec2112
refs/heads/master
2021-01-11T18:37:58.870297
2017-01-20T18:15:21
2017-01-20T18:15:21
79,584,713
3
0
null
null
null
null
UTF-8
Python
false
false
38,156
py
amazons27_part2.py
# Basic El Juego de las Amazonas in Python 2.7 # For more information about the game itself, please refer to: # http://en.wikipedia.org/wiki/Game_of_the_Amazons # # This file provides some basic support for you to develop your automatic Amazons player. # It gives everyone a common starting point, and it will make ...
cb50aabfea739a0106ee1536b6f8612382585218
29345337bf86edc938f3b5652702d551bfc3f11a
/python/src/main/python/pyalink/alink/tests/examples/from_docs/test_tomtablebatchop.py
f2c71a9d069d9249ec007b76dbeb2fd9c8fd0ab6
[ "Apache-2.0" ]
permissive
vacaly/Alink
32b71ac4572ae3509d343e3d1ff31a4da2321b6d
edb543ee05260a1dd314b11384d918fa1622d9c1
refs/heads/master
2023-07-21T03:29:07.612507
2023-07-12T12:41:31
2023-07-12T12:41:31
283,079,072
0
0
Apache-2.0
2020-07-28T02:46:14
2020-07-28T02:46:13
null
UTF-8
Python
false
false
505
py
test_tomtablebatchop.py
import unittest from pyalink.alink import * import numpy as np import pandas as pd class TestToMTableBatchOp(unittest.TestCase): def test_tomtablebatchop(self): df_data = pd.DataFrame([ ['{"data":{"col0":[1],"col1":["2"],"label":[0]},"schema":"col0 INT, col1 VARCHAR,label INT"}'] ]) ...
cd269426ef7e2812999cea449f34eddc51cf24c5
650ee7bfc173164114d3825a9c69c4e4e211e6c8
/upsc_login_guess_rollno.py
dad74bd99932ac3669e284216b06902939241506
[]
no_license
pymd/upsc_result_guesser
5cf2fc25298617c6173a60c1d18e10dad47d54b9
c6845c48df6344fff1208b755a1b1bad36d1cf3c
refs/heads/master
2021-05-02T00:03:24.019307
2017-01-07T08:26:03
2017-01-07T08:26:03
78,267,937
0
0
null
null
null
null
UTF-8
Python
false
false
8,121
py
upsc_login_guess_rollno.py
import requests import shutil from bs4 import BeautifulSoup import math import sys,os #from datetime import datetime import time from PIL import Image from PIL import ImageOps import subprocess import post_processing2 as pp starttime = time.time() url = 'http://upsconline.nic.in/eadmitcard/upsc_ac2/csp_premark_201...
a7746f6058ede7fb24e3c4e21fa6927e54a7d8a6
fbb699bc9e0ced05616d0bf846a8f47b5a686f61
/hidetext.py
0557f7e3faf529fc4506d2fc5629239c55b1bab7
[ "Apache-2.0" ]
permissive
tspannhw/spy
1c945e489f8c9fe13961ff2a05bf004ba870ca17
5d2142368269025a83f57c3c7f10e76c5177590d
refs/heads/master
2021-01-17T23:18:24.573242
2017-03-07T19:16:56
2017-03-07T19:16:56
84,216,618
3
1
null
null
null
null
UTF-8
Python
false
false
278
py
hidetext.py
import cv from LSBSteg import LSBSteg #Hide str = "Hiding Text in an image" import sys imagename=sys.argv[1] textstring=sys.argv[2] carrier = cv.LoadImage(imagename) steg = LSBSteg(carrier) steg.hideText(textstring) steg.saveImage(imagename + ".png") #Image that contain datas
1146783d6fdccca2e9df5cd7588d0b1297d7ffb2
c20a7a651e63c1e7b1c5e6b5c65c8150898bbaf2
/OJ/笔试/网易_20190406笔试第一题顺子.py
9f6d55b9ddf7c9cf81ab56ee32b61ac1ad3fbc0e
[]
no_license
Nobody0321/MyCodes
08dbc878ae1badf82afaf0c9fc608b70dfce5cea
b60e2b7a8f2ad604c7d28b21498991da60066dc3
refs/heads/master
2023-08-19T14:34:23.169792
2023-08-15T15:50:24
2023-08-15T15:50:24
175,770,050
0
0
null
null
null
null
UTF-8
Python
false
false
1,061
py
网易_20190406笔试第一题顺子.py
# T = int(input()) IN = [['7','3','3','4','4','5','6'],['2','3','4','6','A'],['A','2','3','4','5'],['3','4','5','6','7','8']] T = 4 result = [0]*T for _ in range(T): # N = int(input()) # cards = input().split(' ') # cards = '7 3 3 4 4 5 6'.split(' ') cards = IN[_] # print(cards) d = {'A':1,'2':2...
29efd07829ecaa939dca1348f3bb855cc3c20ca7
82137b149c3cae2dc5ae63717f22449ed2d0a46a
/celery_conf/celery_periodic_scheduler.py
d0fd455107db60ab53bbcabf63cac50dc75afb41
[]
no_license
TheSteelGuy/ecommerceAPI
701247b8f6b20f85e788ef3d6815efd1d2accdc8
4685d5db1e63a9355f79915d419666276b780ce8
refs/heads/develop
2022-12-15T00:49:11.937497
2019-09-05T17:17:05
2019-09-05T17:17:05
186,311,193
0
0
null
2022-12-08T05:21:24
2019-05-12T22:35:02
Python
UTF-8
Python
false
false
580
py
celery_periodic_scheduler.py
"""Configuring Celery Beat used for running periodic tasks""" # Third Party #from celery.schedules import crontab # Services from api.services import celery_scheduler # celery_scheduler.conf.beat_schedule = { # # 'run-clear-carts-automatically-periodically': { # 'task': 'clear_carts_periodically', # ...
0669a21d62a861cf39580ea69ed5a964b1a4edcf
836ff94b2ddd9cd8bb64f0e02fa86cebd013f1fd
/Solution_12.py
c833593a9bd812d77bf7f0e2b4ab246ba8509361
[]
no_license
timflack/Project-Euler
452990259a4808fc99c11ab13d298504808547ac
da49fe6e9852cfa85e37d0e66afe14a79883f155
refs/heads/master
2020-05-18T05:29:10.922980
2019-07-18T15:33:07
2019-07-18T15:33:07
184,208,279
0
0
null
null
null
null
UTF-8
Python
false
false
1,032
py
Solution_12.py
""" Problem 12: The sequence of triangle numbers is generated by adding the natural numbers. So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28. The first ten terms would be: 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, ... What is the value of the first triangle number to have over five hundred divisors? ""...
4a2eef031c0efc10d9c5be09f67bbf1cb96f091c
b34ff85dd61876fd9676a31bd3cb30d0bae04f9f
/RaspberryPiFiles/accelerometer_tilt.py
0a652da43cd916f85172df8cfbb4d2a12a15ed18
[]
no_license
timmyreilly/BumpyRoads
7588c46e762eb00614df430c042f750770442346
b4f63f2faedba228d99e5b2f386a73095fcf261f
refs/heads/master
2021-01-10T02:38:06.712314
2016-03-25T00:23:29
2016-03-25T00:23:29
51,409,594
2
3
null
null
null
null
UTF-8
Python
false
false
507
py
accelerometer_tilt.py
import spidev, time spi = spidev.SpiDev() spi.open(0,0) def analog_read(channel): r = spi.xfer2([1, (8 + channel) << 4, 0]) adc_out = ((r[1]&3) << 8) + r[2] return adc_out while True: x = analog_read(0) y = analog_read(1) z = analog_read(2) if x < 450: print("left \tX=%d" % (...
559eea7f14a4c0a0f4bbcd972c5b6be502e8e909
25e0d42a524ac20fbda7355ac4825f3510eb2f0c
/all/021/convergence_plot.py
a2196ecab593be7d034408080ce45b5e00f8e880
[]
no_license
lucydot/data
d3f1fa7645f3eb32b2cddbdf78c382a964533f06
08bd49bbf768cf867dce0bf8393c25b9583b9723
refs/heads/master
2021-01-10T22:53:59.672517
2016-10-11T09:44:41
2016-10-11T09:44:41
70,342,058
0
0
null
null
null
null
UTF-8
Python
false
false
861
py
convergence_plot.py
#!/usr/local/bin/python import matplotlib.pyplot as plt import re import argparse parser = argparse.ArgumentParser(description='Plot energy convergence') parser.add_argument('-t', '--type', default='ionic', help='Select electronic or ionic convergence (default:ionic)') args = vars(parser.parse_args()) read_in = open(...
66919c2becd5e729d34d33f0858a01c3a6fcc70a
3ac58ce57dec7010e44c468a1dacdcd018b9f980
/weightheightanalysis.py
c88d81f5e25c25328f485b8effbac740ec006604
[]
no_license
singhharjee/MyRegressionModelProjects
15436a1decd8936815efac9699d87070cfed3a2a
fbb43c9128bbd05541bb72306fc19f2ff3d08df0
refs/heads/master
2022-03-09T16:51:16.300990
2019-11-14T19:22:10
2019-11-14T19:22:10
196,944,152
0
0
null
null
null
null
UTF-8
Python
false
false
2,564
py
weightheightanalysis.py
import pandas as pd import numpy as np from sklearn.linear_model import LinearRegression x=int(input('for weight and height in kgs and foot enter 1 or enter 2 for pounds and inch:')) if x==1: try: wh=pd.read_csv(r'E:\data python files\weight-height2.csv') except: print('File is n...
b8ae5652a68e6259bf2d7ea4fa0f5a43b05af3b5
1bdfb067e53e874990dc62953b87ebdcd2332286
/listings/migrations/0007_auto_20190907_1007.py
b738c89a3991c1632c5b91beb6d0164250d234cc
[]
no_license
muradgarayev/emlak
95fe6eb55c4d307822ff49a9dae6614225a57bfc
c7f2fb0f4162cff515285808916b4ae61bd847b0
refs/heads/master
2023-05-02T18:27:43.426185
2019-12-15T20:30:53
2019-12-15T20:30:53
207,303,009
0
0
null
2023-04-21T20:42:32
2019-09-09T12:24:34
Python
UTF-8
Python
false
false
473
py
0007_auto_20190907_1007.py
# Generated by Django 2.2.4 on 2019-09-07 10:07 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('listings', '0006_listing_photo_1'), ] operations = [ migrations.AlterField( model_name='listing...
6560266780324d01374bb706b85f2a459f86c6e2
a7d020c8df05d4980876a7b230d7702fe1a9b196
/rpush/android.py
80623e22629566ff063cfdfee6d51f7e1147f232
[]
no_license
temon/rpush
7720387e265d9e5cdb70f59d67bcbf6dc4dcd7ca
dbf0f98b3e473aefebf6313c38313fcf95a81cde
refs/heads/master
2021-01-18T05:07:58.450940
2017-10-31T14:26:55
2017-10-31T14:26:55
8,747,627
0
1
null
2017-10-31T14:26:56
2013-03-13T08:03:37
Python
UTF-8
Python
false
false
2,006
py
android.py
import httputils from datetime import datetime class Android(object): auth_token = None c2dm_client_login_url = 'https://www.google.com/accounts/ClientLogin' c2dm_push_url = 'https://android.apis.google.com/c2dm/send' def __init__(self, app_email, app_email_password, app_sou...
2396e305aa4c2bbce58f411950b363b2cd760f47
6dd400fec6f302bd0dcf309e2deec5de906d205c
/django_test2/gpapp/views.py
efd218e9d98a28f35b83f1dd5ddaa4bd3c2fd65a
[]
no_license
Leo-hw/psou
aa938b7cfaa373a0980649125270c48d816202b0
70379156a623257d412bcccbac72986a61226bd4
refs/heads/master
2023-02-21T19:00:02.902510
2021-01-25T07:03:26
2021-01-25T07:03:26
332,616,685
1
0
null
null
null
null
UTF-8
Python
false
false
720
py
views.py
from django.shortcuts import render from django.views.generic.base import TemplateView # Create your views here. def MainFunc(request): return render(request, 'index.html') class MyCallView(TemplateView): template_name = 'callget.html' def InsertFunc(request): if request.method == 'GET':...
15abd0930a08bad95eda47ca7ba0e928594bcd3c
dee87dc9370ebadc66024d307d252641020412e1
/cred.py
029d4acbf2c545bea6b8e79c5938530a81940352
[]
no_license
Tejas-15/Car-Mangement-system
07fd4503a792cecda2d46316a9b09ce65704b9d9
0506ceea18b1a093c2ac0bf3a954d62d772c7a95
refs/heads/main
2023-04-22T11:02:55.587814
2021-05-07T08:45:11
2021-05-07T08:45:11
357,802,708
5
0
null
null
null
null
UTF-8
Python
false
false
69
py
cred.py
sender ='enter sender email id' password = 'enter sender password'
3deaa22d0d44ffa803e7082dfb9ff67572c4a48e
3d4a6bd2297ac04b112bc8d24fa1118f692a4e2b
/procon_python/src/atcoder/virtual/Petrozavodsk001_C.py
56455161e3dee0efe22261a39e768a2a1703e2f8
[]
no_license
WAT36/procon_work
beba626d9b9c1effded8c9b9f56fbc37abd13636
2e6bc42e6f25938afe740682ad7b6c21a0838d42
refs/heads/master
2021-08-16T11:56:25.048392
2021-06-17T14:13:10
2021-06-17T14:13:10
162,991,707
1
0
null
null
null
null
UTF-8
Python
false
false
529
py
Petrozavodsk001_C.py
import sys n=int(input()) print(0) sexlow=input() if(sexlow=='Vacant'): sys.exit() print(n-1) sexhigh=input() if(sexhigh=='Vacant'): sys.exit() low=0 high=n-1 piv=0 while(True): piv=(low+high)//2 print(piv) sexn=input() if(sexn=='Vacant'): break elif(( (piv-low)%2==0 and sexlow!=...
fc79dc35457c416c412bb9ee03774a36736d6d82
7d838b928b3c5c73d8b3e0722b7ef84331ae2c84
/huffman.py
071051f0dd2d6ddec6a2a2a473f259d76065ca3d
[]
no_license
supirman/TekKom
a5930825c376d41efa1f1115278e3570847160ff
bc53409a684216b6e2fdc1e329ebf4e68f6b0540
refs/heads/master
2021-01-16T20:31:26.510586
2011-01-18T10:35:03
2011-01-18T10:35:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,126
py
huffman.py
""" Tugas Teknik Kompresi - Huffman 5107100026 Dimas Radityo 5107100062 Firman Rosdiansyah **Butuh koneksi internet/intranetITS untuk mengambil data** """ from itertools import groupby import heapq import struct import sys import getopt import os #import Image # Python PIL butuh install libary, jika belum ada def ...
7b35e1771bf788a2b90c9d942835f8a2c95e11cd
b21f45837cf6805cee3c38530f152e92ae238e8c
/MyAgent/player.py
b27e32f1f351c247d0800a910d4be07e8a41429f
[]
no_license
artiomsher/GomokuAgent
03d5cedae74a05671586fa1d139aeca4df18983f
c531a2a249835f8274ea477f698ac1951db2e219
refs/heads/master
2022-11-13T18:16:11.955564
2020-06-28T13:17:11
2020-06-28T13:17:11
240,145,089
0
0
null
null
null
null
UTF-8
Python
false
false
15,242
py
player.py
# Authors: Artiom Serstobitov, # Oskars Dervinis import numpy as np from misc import legalMove from gomokuAgent import GomokuAgent from misc import winningTest class Player(GomokuAgent): def move(self, board): while True: print("H now: ",getHeuristics(self, board)) print("NOW...
3335553d6460519791fbcb6e887c1da4eb688fe7
7c6965265e2dbca320a33326f1230a45fc2dbe95
/accounts/views.py
06f46b5dad986a5cf53ee7937f545a59d521445b
[]
no_license
PamilerinId/Portal
e14f5dd10d7121eefb9a04457b1cc2db521846db
5dbfe84939c7bdeead73bf2650aa11d424657180
refs/heads/master
2021-01-01T17:44:25.307117
2017-07-22T21:12:38
2017-07-22T21:12:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,967
py
views.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.http import JsonResponse from django.contrib.auth.hashers import make_password from rest_framework.response import Response from rest_framework.status import HTTP_200_OK, HTTP_400_BAD_REQUEST from rest_framework.views import APIView from rest...
37e106ea0c3df2ba561a7d3e21e2dec28b535e51
4a2df27e63cae68ff800c831a7d5be84073398a7
/sql/views_ajax.py
2119f4ce2d924b8a0dddb7aa72c04b1f61bb06ad
[ "Apache-2.0" ]
permissive
jly8866/archer
604d69608c8820607eb61b8d8bde4c59576ae275
e208c195f969637e3e2c6d110db7153092f04c8f
refs/heads/master
2023-08-07T13:29:21.832081
2023-06-28T06:24:50
2023-06-28T06:24:50
75,372,871
1,658
705
Apache-2.0
2023-07-25T21:51:07
2016-12-02T07:42:07
JavaScript
UTF-8
Python
false
false
27,596
py
views_ajax.py
# -*- coding: UTF-8 -*- import re import simplejson as json import datetime import multiprocessing import subprocess from django.contrib.auth import authenticate, login from django.db.models import Q from django.db import transaction from django.conf import settings from django.views.decorators.csrf import csrf_exe...
fd270d6ad9ad50ed334bcac2249f31704d23b2a3
5dffd214621058efbc28a47968be2f728f78b98c
/Python Basics/python_env.py
95bc248d962b3624d88bbd47a41432a272c03905
[]
no_license
SatishEddhu/Deep-Analytics
25446466a27aa70d02dff3efc824af0cf37dac0c
a33a0ad7df1175e66af02e9c0758413d1de172da
refs/heads/master
2021-01-13T15:51:03.044058
2017-08-05T06:44:54
2017-08-05T06:44:54
76,864,213
0
1
null
null
null
null
UTF-8
Python
false
false
518
py
python_env.py
# list of built-in packages available currently dir() import math # to bring a package into the current session dir() # math has been added to the list of packages in current session. R equivalent is ls() dir(math) # to see details of 'math' package. R equivalent is ls(math) math.log(100) import math as m # to use '...
07a98c063af37f1f2a06bdb5d53a9a655a67a529
cd360363950af49f37f4c546676f406f7c8abe8c
/constants/calculator.py
fb26833e8fa1c3782be740f34a7f850e6a9e9f49
[]
no_license
priyapsakthivel/hello_python
c6faa948fc08838be54ab5dba0b3f2e18e28890b
fde17e76d462a5bd3886d31cf739e9700e236caa
refs/heads/master
2023-09-02T07:30:31.972767
2021-11-16T14:08:08
2021-11-16T14:08:08
277,124,593
0
0
null
2021-01-17T05:33:24
2020-07-04T14:23:08
Python
UTF-8
Python
false
false
430
py
calculator.py
num1= input("please enter num1") num2= input("please enter num2") def add(num1,num2): additon=int(num1)+int(num2) print(additon) add(num1,num2) def sub(num1,num2): subtractiton=int(num1)-int(num2) print(subtractiton) sub(num1,num2) def multi(num1,num2): multiply=int(num1)*int(num2) print(multip...
a5ff2c06097dc49d37af62eb42272c127ddb462b
aa72ce4bdd6d11b2400e67ed81a539980caebd0a
/products/migrations/0012_auto_20200804_1215.py
963cdabec56328f46fa2535756dd46d7c46399e8
[]
no_license
Code-Institute-Submissions/nutriverse
7c12b2e54b6cf2e2db30ec1505e04227bd2b9ebf
5e3c6e1f1b8c6e23ad84ce24f38b87ef061cd384
refs/heads/master
2022-12-24T23:05:24.990947
2020-09-30T22:45:28
2020-09-30T22:45:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
811
py
0012_auto_20200804_1215.py
# Generated by Django 3.0.7 on 2020-08-04 12:15 import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('products', '0011_auto_20200804_1151'), ] operations = [ migrations.AddField( ...
d0337551d978d78e053b97028e0dbd9cd39b1a4c
3dd46d0981faa3ac2d3078dcb8cfdd560ee63228
/lib/tracker.py
345e6186cc57d3756ee2a5f1163299e93a79bf3b
[]
no_license
samcolson4/APPG-scrape
f9d1a891936d70742b589a8aeb68d968f1f84849
4940b6f92764a578208eddc128041e935a46d567
refs/heads/main
2023-04-07T18:52:18.249011
2021-04-15T10:00:33
2021-04-15T10:00:33
357,209,358
0
0
null
null
null
null
UTF-8
Python
false
false
1,740
py
tracker.py
from appg_scrape import callScrape import csv import pandas as pd from datetime import datetime, timedelta today = str(datetime.today().date()) main_file = 'output.csv' def scrapeArrayToJson(data): json = {'prca': {'source': 'prca', 'list': []}} for campaign in data: json['appg']['list'].append({ ...
7b092533ea8d87bd751d1aabe7208122b3d42df7
71cea814dcf5ceb6d2b3a86f33273e532f5a9b77
/simpa/core/device_digital_twins/devices/pa_devices/ithera_msot_invision.py
d040b6b83585f61ca2c3b4029120cea1f25d7aa1
[ "MIT" ]
permissive
mschllnbrg/simpa
7744bba073f9c01b7a60f076a49fe80b5e6d12fa
2ca2b81039a7252da7c618d8ba69527f2d6f240f
refs/heads/master
2023-06-19T18:59:02.301717
2021-06-24T12:47:55
2021-06-24T12:47:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,427
py
ithera_msot_invision.py
""" SPDX-FileCopyrightText: 2021 Computer Assisted Medical Interventions Group, DKFZ SPDX-FileCopyrightText: 2021 VISION Lab, Cancer Research UK Cambridge Institute (CRUK CI) SPDX-License-Identifier: MIT """ import numpy as np from simpa.core.device_digital_twins import PhotoacousticDevice, CurvedArrayDetectionGeometr...
be5620f313cbf07df35448a02c94a5bcf32371dc
ddebf6e07d8c936b68d478ec5385c5e91925cb80
/affine.py
439cc58a5371e31d7a7359abfc2663ec92f7c000
[]
no_license
pushpanathan2003/Affine-cipher
c14337625fc7413541fcf2dc0286d9989fd362a5
0972ecbb22ba2d4c7f6494f0d53c54bf4c815e69
refs/heads/master
2022-11-18T18:05:10.339405
2020-07-19T04:03:19
2020-07-19T04:03:19
280,788,174
0
0
null
null
null
null
UTF-8
Python
false
false
1,017
py
affine.py
import random def egcd(a, b): if a == 0: return (b, 0, 1) else: g, y, x = egcd(b % a, a) return (g, x - (b // a) * y, y) def modinv(a, m): g, x, y = egcd(a, m) if g != 1: raise Exception('modular inverse does not exist') else: return x % m def encrypt(text,...
47881bba6924f1b952465ea58f56155ba3fd986a
b2b023a2ffcac50b7f35d9ae8e7e45a84947c16f
/6challenge-7.py
ddaba902a59616f3895b22a64050a9434a0be5ec
[]
no_license
yourpalfranc/tstp
d4a317c9e8daa193e51c976ef79df7466d12df3d
81d18389fbdb15e84df297941209c839bd14805d
refs/heads/master
2020-04-05T05:49:43.831647
2018-11-07T21:55:15
2018-11-07T21:55:15
156,612,681
0
0
null
null
null
null
UTF-8
Python
false
false
267
py
6challenge-7.py
#Slice the string "It was a bright cold day in April, and the clocks were striking thirteen." to only #include the characters before the comma. my_quote = """It was a bright cold day in April, and the clocks were striking thirteen.""" r = my_quote[0:33] print(r)
a86be5129e5c1f34fd275456881282ad6bf969d4
2cbfc8dfd3b148686f824623b74b6af715aa188c
/2017/First-Semester/Modeling-and-Simulation /canhao.py
8bc0a396a60109337984f43fceafc8cd0de8df15
[]
no_license
vinipachecov/University-Codes
a6345d21b52227e362243349d1c4655cc1b5bbc8
22ff30829cfc55e1bd55f2a52b04b5fa6517699b
refs/heads/master
2021-08-18T19:11:04.840556
2017-11-23T15:51:51
2017-11-23T15:51:51
81,951,610
0
0
null
null
null
null
UTF-8
Python
false
false
2,625
py
canhao.py
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Thu Mar 9 08:20:29 2017 @author: root """ import numpy as np import math import pygame as pg import sys from pygame.locals import * #Usando coordenadas polares # x = miraintesidade * cos(angulo(radianos)) # y = miraintesidade * sin(angulo(radianos)) ...
d6adafb06b178310bbf594017d7d0d9c995f9c3a
5581cd7c09c8a45a5e033bbdfd9f3103c414d36b
/modules/users_and_roles_tab.py
ce5dcda8e728127b9f9d9754ec7ec959e800ef14
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
scrummastermind/sumologictoolbox
d55c386a8944f2b73a4b4bb0b9896e45e264360b
02d9acb970943521685091d36b8d5135e817c22c
refs/heads/0.9.1
2023-03-05T23:50:36.938574
2021-01-08T17:23:46
2021-01-08T17:23:46
337,339,168
0
0
Apache-2.0
2021-02-14T23:10:57
2021-02-09T08:30:33
null
UTF-8
Python
false
false
31,373
py
users_and_roles_tab.py
class_name = 'users_and_roles_tab' from qtpy import QtCore, QtGui, QtWidgets, uic import os import sys import re import pathlib import json from logzero import logger from modules.sumologic import SumoLogic from modules.shared import ShowTextDialog class users_and_roles_tab(QtWidgets.QWidget): def __init__(self...
6c45a48ed1e36cad12803de6ca734dcef75751f8
a4b603fad7a4655815daa2215fe719188b83dac2
/downloader.py
66de1845857003b13466e5e7178bec9e9e519420
[]
no_license
elurisoto/movierec
fc638cec25e0bc5fa10423eb132439107816946d
a0a490b39796dbdf16a8fe9aa033830e6a0be73f
refs/heads/master
2016-09-06T21:21:09.324079
2015-08-05T16:16:22
2015-08-05T16:16:22
34,989,142
0
0
null
null
null
null
UTF-8
Python
false
false
1,937
py
downloader.py
# This function loads a list of movie titles and generates a csv file containing # all the data pulled from OMDB about those movies. import omdb, csv, sys, time from FAscrapper import * # Create a list of titles from the "Name", "Year" and field of a CSV file def pullFromCSV(filename): titles = [] with open(filenam...
0586c1062b5d176b29163119a793469872fef9fa
31c9f512a7fa9f7d381c4c550b7181395efbdea4
/teamClass.py
8b5612673064c38afe43889bd173f76cedeb8d2d
[]
no_license
Sandy4321/FantasyFootballDraftTool
15513625090182728edbf2878ed17057d13a77b5
902fe9e928be47c3764e343d95edf5c2dc1810a3
refs/heads/master
2021-01-18T12:10:26.502901
2014-03-26T16:48:36
2014-03-26T16:48:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,591
py
teamClass.py
########################################################################################## # # CLASS: Team # # Members: List of class "Player" # # Functions: addPlayer - Adds a Player to the team, # args: Player x # returns: None # getTotalPoints - Returns total number of points earned by # ...
7b5e3a91bf1954c744283911ff2e7932764199e8
5375fc68f15c3fc64555762d2926d487c91610b6
/flexagon.py
f718ae8d0d6ecee7a425e414aeeb37eb1faffce6
[ "MIT" ]
permissive
dlp/flexagon
fc30b30574d957fd9e7fe91fb5f143690ec11321
c8ac58e125c6f405d9942245bdaa71fab658def6
refs/heads/master
2021-09-24T16:35:51.120323
2021-09-19T11:15:25
2021-09-19T11:15:25
70,242,439
0
0
null
null
null
null
UTF-8
Python
false
false
5,323
py
flexagon.py
#!/usr/bin/env python ############################################################################### # Simple PIL-based flexagon generator # # For the time being, it creates only 2D trihexaflexagons. # # Daniel Prokesch <daniel.prokesch@gmail.com> #######################################################################...
036617541d874a24a82739b66e79e542514ee8f0
21587a20c829bf9ec34a6a38535ecc64bf1d7fbf
/examples/tst1d_sheath/self_consistent/draw1d_incident_angle_energy_distribution.py
42950e83bd38f22f16cc7d0c172803c971e76316
[]
no_license
wphu/lizCode
1c52c01bd1f215e853eb39db8f6e70d57151fa4a
40a822002a740f34ba01b00836d4caa5e5554a4d
refs/heads/master
2022-11-06T21:54:12.244410
2020-07-01T05:01:28
2020-07-01T05:01:28
110,182,777
0
0
null
null
null
null
UTF-8
Python
false
false
2,375
py
draw1d_incident_angle_energy_distribution.py
from template import * from collect import collect import sys if len(sys.argv) == 2: t = int(sys.argv[1]) elif len(sys.argv) > 2: print("error: should have one argument, as time step") else: t = 0 print("time: ", t) ##inite the fig of matplotlib fig=plt.figure(figsize=(10,8)) fig.subplots_adjust(top=0.9,bottom=0...
d94784bb541dac45e8ad7e4080fb36d80a38c783
24474c2a4e772ccc4196cd34eab7400aac8896f3
/multiples.py
a7a47cfce0becdb5b8985b15f351b48af10af781
[]
no_license
cgkevork/Python
bbb61666b08ce2fbc21931b4fc953baf93875f68
9b5ff85ec51b31db211177a9fa47a69bba59b27c
refs/heads/master
2021-01-11T20:35:49.146327
2017-02-28T06:45:29
2017-02-28T06:45:29
79,151,788
0
0
null
null
null
null
UTF-8
Python
false
false
131
py
multiples.py
x=0 for i in range(0,10): if (i % 3 == 0): x = x + i elif (i % 5 == 0): x = x + i print('sum', x)
34cd4fa16ba271aa8c2c52ad73684849e33917b9
69acc3c5ac92305b337a100c8d43c044dc254422
/atcoder/_old/abc058d.py
a3dc3c75562b08447641e53c2e4d20c949a08b1f
[]
no_license
daikw/competitive_programming
be25d95e970a51f1105502db40b469abb278695a
f2f9de8de3a32e494cfc3f0f95f52971eda91878
refs/heads/master
2023-04-06T18:41:54.890013
2021-04-04T10:31:40
2021-04-04T10:31:40
90,806,046
0
0
null
null
null
null
UTF-8
Python
false
false
274
py
abc058d.py
# coding: utf-8 if __name__ == "__main__": n, m = map(int, input().split()) x = list(map(int, input().split())) y = list(map(int, input().split())) mod = 10**9+7 area = ((x[-1] - x[0])%mod) * ((y[-1] - y[0])%mod) %mod area = area * (n-1) * (m-1) % mod print(area)
5a02a31d4596d07a7bafd3666bcc05f937d279df
5d8bbb53d3ca8d532a1d977906a0fdf2aed6d46f
/ecoke/migrations/0001_initial.py
649715d3452f09b457c3245d36142462240409f0
[]
no_license
ErickMwazonga/e-Coke
da113d5cf2127b9947622008433057331c6a87f9
d72f6f2d5f6b5bb8d1a50c2fa6d22cf9a462874d
refs/heads/master
2021-01-20T07:16:00.763059
2018-03-20T12:25:43
2018-03-20T12:25:43
101,509,271
0
0
null
null
null
null
UTF-8
Python
false
false
1,607
py
0001_initial.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-08-25 12:25 from __future__ import unicode_literals import datetime from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( ...
55d2d8e0f0f9693d468123f02349c47710c11c28
fa43161c69275036f625ef25d0c6b48a3c36c7a9
/python/345.反转字符串中的元音字母.py
361d6afe2d10328d23d6e143f49be7617951908f
[]
no_license
bYsdTd/Leetcode
1f212d4eb4f1c9f2957582f4da6424ff04a9a093
dd187e614fccb554aa6bdea032df28c0422138be
refs/heads/main
2023-02-21T01:53:58.476065
2021-01-23T11:00:16
2021-01-23T11:00:16
326,553,515
0
0
null
null
null
null
UTF-8
Python
false
false
1,225
py
345.反转字符串中的元音字母.py
# # @lc app=leetcode.cn id=345 lang=python3 # # [345] 反转字符串中的元音字母 # # @lc code=start class Solution: def reverseVowels(self, s: str) -> str: # 双指针,一个从头,一个从尾 # 如果都是元音字符,就把两个值兑换 # 如果不是元音字符,头部的就向后移动一个,尾部的就向头部移动一个 # 直到两个指针相遇(这里相遇的条件是p1 >= p2,所以循环的条件是p1<p2 # 不光是等于,因为...
1bc0d4955a3b917d506b6f897fb9ac9b359c0fbf
4abd277251cdaf7b9fd87432d2ce23aff15f1b9b
/notebooks/src/simulator.py
def398262919ea2d016c6bedcc721b09814507df
[]
no_license
shreyasnikte/Active-Learning-TUD-Thesis
feab603ccf1813227a0abe1b37cb3096778bdeaf
f4a68d406dbbdcb2160c513ddaeb563358df287c
refs/heads/master
2020-04-22T07:54:33.930032
2019-06-26T23:50:56
2019-06-26T23:50:56
170,227,214
3
0
null
null
null
null
UTF-8
Python
false
false
8,672
py
simulator.py
# This file contains the simulator for the dToU tariff responses. # More information will be avaiable in the wiki # Author: Shreyas Nikte, TU Delft # The dict 'params' consists of all the parameters used in the simulation software for ease of alteration params = { # Set the regression model related parameters...
f0a796d4c1fbf2e50ae77f078464352f34a2ce1b
7b1c4635b93dc1b4034b729ba315fbfc974b7720
/strings/02_string_validators.py
d606d5b72a17b0f8d4b4d54deb1ed1a82897a1cb
[]
no_license
brendonthiede/hackerrank-python-challenge
17a979e2c6c9adb5233ebc8aa2c45def4bf1afe1
464bcb2af6ac7fb3bf976f0f41aa866dd694030a
refs/heads/master
2020-04-25T14:20:12.678570
2019-03-06T03:39:14
2019-03-06T03:39:14
172,838,699
0
0
null
null
null
null
UTF-8
Python
false
false
593
py
02_string_validators.py
import re if __name__ == '__main__': s = input() def has_uppercase(string): if re.match( r'.*[A-Z].*', string): return True else: return False def has_lowerercase(string): if re.match( r'.*[a-z].*', string): return True else: return False def has_digit(string): ...
91a2c34d4ce11ecef42201bc8d42899a01e07039
c104fe1e449d24b93379b21f2891a6461938ab9c
/99/Assignment 1_31990/MissingBeater.py
44d8e2da41a122eb72800f682fc136b1d91b7b3c
[]
no_license
rafik-mikhail/last-semeter
6a4fc68cd5784d99a612a1f7b1ac931da320b8e8
95dc5ad8655ce007508ebbce5a934b61b6dde70e
refs/heads/master
2023-08-08T13:02:19.491115
2020-04-02T16:52:26
2020-04-02T16:52:26
252,439,519
0
0
null
2023-07-23T10:41:49
2020-04-02T11:44:21
Jupyter Notebook
UTF-8
Python
false
false
9,018
py
MissingBeater.py
import numpy as np from matplotlib import pyplot as plt from scipy import signal from scipy.signal import butter,filtfilt, lfilter from PIL import Image def Implement_Notch_Filter(fs, band, freq, ripple, order, filter_type, data): from scipy.signal import iirfilter, lfilter nyq = fs/2.0 low = freq - ban...
c934b28f774ac2945cb6cc9d373799d44a3d5ffc
609fa82f5be2f09c557ea0de8c5ec73e4775248a
/actions/catalog_node.py
3d2556b8310fc6c58f0b71c4eec70b12986da9f4
[]
no_license
mjtice/stackstorm-consul
0998ac8e8ee269aac245d047163f5a3b22d31d08
2a5cde7ead10d6779610949982da45603f7dde43
refs/heads/master
2020-03-22T06:20:41.035106
2018-07-16T16:27:21
2018-07-16T16:27:21
139,626,858
0
0
null
2018-07-03T19:04:54
2018-07-03T19:04:54
null
UTF-8
Python
false
false
403
py
catalog_node.py
from lib import action class ConsulCatalogNodeAction(action.ConsulBaseAction): def run(self, node, index=None, wait=None, consistency=None, dc=None, token=None): node = self.consul.catalog.node(node, index=index, wait=wait, consistency=consistency, dc=dc...
85766c4e65e81f999f3237e32e904073b3e91f46
a932fa68dfe0056be84ebaa17c777edcfbb0e7d5
/unit_tests/test_item_helper.py
e066ce0318a1081b0523e35e2bdc00a93451450a
[ "MIT" ]
permissive
uk-gov-mirror/LandRegistry.register
7087d19030f7dc406e4b535c537c56b0893df332
52c7731a17a67e6aac351ee118cc18510cf6051c
refs/heads/master
2021-09-26T16:14:41.127755
2018-10-29T17:12:26
2018-10-31T14:46:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,571
py
test_item_helper.py
from register.main import app from register.utilities.item_helper import get_action_type, get_item_changes import unittest def get_item(): return { 'field1': 'value1', 'field2': 'value2' } def get_existing_item(): return { 'field1': 'value3', 'field2': 'value4' } cl...
4c7fcbc328801831d48e3e88ddcff029308476ed
f293c531f16209b2e80047888a494f52bf4886d7
/Week7/ascii.py
c6c870678fb2ca60f172d1be245eed5ccff96178
[]
no_license
ocoleman/pns-init
672843ead459bc45b9115908e5caf540585034e4
01b3ec0870b82aba37be644f7f64295fba930f13
refs/heads/master
2020-12-18T17:01:01.361870
2020-04-04T12:46:00
2020-04-04T12:46:00
235,463,199
0
0
null
null
null
null
UTF-8
Python
false
false
105
py
ascii.py
#Owen Coleman #Ascii Table #Week 7 25-02-20 for i in range(0,256): print(f"{i:3} {i:08b} {chr(i)}")
45ffcd459bb951c2e2c660250f443820ca282aa0
78c0f32a8caa5d20a8f5d47e44b38ee7a3005048
/db-manager/db_manager/__main__.py
0c6a09ff20f7511212aabaa9f2faf9eff30732e5
[ "MIT" ]
permissive
elifesciences/data-pipeline-sql-prototype
514b12a15b173d7fbd20fd75674f4bb76fa23a01
d7c34d2121a6f968bab2dfc1878f597c76c4a6e2
refs/heads/master
2020-03-20T00:38:33.628135
2018-08-09T16:07:42
2018-08-09T16:07:42
137,050,899
2
1
null
null
null
null
UTF-8
Python
false
false
2,083
py
__main__.py
import argparse import logging from .database import managed_connection, teardown_database, create_database from .processing import process_source_dir LOGGER = logging.getLogger(__name__) class SubCommands: TEARDOWN = 'teardown' CREATE = 'create' IMPORT_DATA = 'import-data' def parse_args(argv=None):...
21a0c8ca541684e61802a2ba401c3832cff68b8c
9bf8cf721ee01295c6f161d2791c3f23732b7f44
/main.py
7e942dbfab562b88ab965c8b31cd669747af00eb
[]
no_license
sweetcocoa/nonsan-fb
ee9ba1c04336a6baf35a09ca868deda2ef1ab733
d8259af41515383bbfe94ec5c197a0acd6e29c00
refs/heads/master
2021-07-16T05:28:52.732189
2017-10-24T12:32:52
2017-10-24T12:32:52
107,803,444
0
0
null
null
null
null
UTF-8
Python
false
false
2,125
py
main.py
# coding: utf-8 from nonsan_parser import get_military_address from fb_poster import post_fb from datetime import datetime ENTER_DATE = "20171026" # 훈련소에 입소한 날짜 BIRTHDAY = "940513" # 찾을 사람 생일 NAME = "최종호" # 찾을 사람 이름 mail_address = """ . 훈련소 주소 : http://www.katc.mil.kr/katc/community/children.jsp . ㆍ23연대 : [33012] ...
81537f372dae54063c12f332194a629232cc474a
1a3a8bb54d77fa3903eac65bf6959f8e9f3b8a3c
/run.py
54e062078e0b5d4240f14c70011119ca12529457
[]
no_license
luosichengx/angr_rust
ebeed3e7be16bfaca061db9a89031a451eeb1ad0
6cfbf34006b261bb8fe18dc1318fac015f38c035
refs/heads/master
2022-12-09T02:31:51.820886
2020-09-16T04:20:48
2020-09-16T04:20:48
278,562,974
1
0
null
null
null
null
UTF-8
Python
false
false
1,712
py
run.py
import angr import claripy from rust_procedures import * def run_symexe(path): sym_argv = claripy.BVS('sym_argv', 64) p = angr.Project(path, load_options={"auto_load_libs": False}) main_obj = p.loader.main_object.get_symbol('main') # state = p.factory.entry_state(args=[p.filename, sym_argv]) state...
105071d4b5307abd55d21c4073890e9e359e3756
a5d97840524d18f500457f560df773d75f5b9864
/emotions/scripts.py
e37595962c6bc6351281ccd3d239e26e6caebd8d
[]
no_license
xuesu/ir201712
5d136c64dbb90d109fc1f36ad0e2b457f14389c8
9cc4f02a063dbd86f5e9ac2bcfe89a1dd054b219
refs/heads/master
2021-09-04T10:23:24.497502
2018-01-09T12:40:59
2018-01-09T12:40:59
114,996,529
1
3
null
2018-01-09T12:42:31
2017-12-21T11:03:49
CSS
UTF-8
Python
false
false
10,274
py
scripts.py
# -*- coding: utf-8 -*- import codecs import json import os import random import re import string import sys import xml.dom.minidom as minidom import mes_holder import text_extractor import utils import predict_NOLSTM def draw_words_num(col_name): import matplotlib.pyplot as plt import pymongo docs = pym...
307bce6f47551059f4dc92bc61a7d3793bd7cf3b
909a4021961c1738896f218326901872533e0e3d
/tasks/communication_service/src/modules/routes/routes.py
5d9bb0e8467e239a22d70ab6698fcadecf14373c
[]
no_license
baniyapratik/Computation-at-the-Edge
2f63ccfac1fc37fa8e0ae46e8b4c2f37b54ffe82
348881be7f12df980e3fe3d02ff82928554d42e4
refs/heads/master
2022-03-18T06:05:53.546363
2019-11-21T03:00:32
2019-11-21T03:00:32
196,646,284
0
0
null
null
null
null
UTF-8
Python
false
false
1,407
py
routes.py
from flask import Blueprint, request, jsonify from mqtt import MQTT import os # from mqtt.MQTT import client, server from communication_service.ext.api import APIResponse from communication_service.kafka_ext.common import kafka_buffer, kafka_get mod = Blueprint('gateway', __name__, url_prefix='/api/communication') @m...
003460bb93dca35ea6521ca7777c614a7431ba36
d4a801cbb67b11b9a7207c997c0e2e031720e0a8
/Chapter 17 - Regular Expressions/Challenge-2.py
6e2761b28a64dde451a1a7bf5989e084913ec8d9
[]
no_license
ZordoC/the-self-taught-programmer-August-2019
49d3232fc4bf15d06e88ed9fff77fc03825ff9f9
ae72b7352f3ca4ada84419a42125a8e78ab65c3b
refs/heads/master
2020-07-05T10:43:59.430722
2019-08-20T23:09:54
2019-08-20T23:09:54
202,627,839
1
0
null
null
null
null
UTF-8
Python
false
false
355
py
Challenge-2.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Aug 20 22:08:23 2019 Challenge 2 - Find a regular expression that matches all the digists in the strin Arizona 49,501,870. California 209,213,650 @author: zordo """ import re add = "Arizona 49,501,870. California 209,213,650" me = re.findall('...
d5a631d7c78bf1e6b6a2ad1544b0a58762d2f528
07ab10e28e9e868a4464e5206835663f9a374577
/main/migrations/0007_auto_20200525_0105.py
0af1c5b2bde6d8f8faa2715251f6ebb36314dfd3
[]
no_license
sophie200/store_improved
2c856e3cd53948b7107e0f99e24265f73777a1ee
5e4872a170558d59a1157fb2c49a8acd9d408303
refs/heads/main
2023-04-13T19:30:29.379303
2021-04-16T20:14:40
2021-04-16T20:14:40
255,478,153
0
0
null
null
null
null
UTF-8
Python
false
false
383
py
0007_auto_20200525_0105.py
# Generated by Django 3.0.6 on 2020-05-25 01:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0006_auto_20200523_2025'), ] operations = [ migrations.AlterField( model_name='product', name='price', ...
67167a603a57102f16eb0ce72880b62b6bdbe918
29924f89bda58050fe50fd85aef1db5cff4a6ec9
/curriculum/week-09/2.2.-production-coding-logging/logging_example.py
558eb80700cad191e86ad3733d27800b66d5c6b9
[]
no_license
AndrewJeong89/GA-DSI
bbe0507f4dc8e1d6b7156a35b5ff0d2bcfb4a5a9
0819f39a63b2cc2b98e1afce9c62b19d58061d88
refs/heads/master
2020-05-31T00:11:28.754665
2016-12-15T16:35:10
2016-12-15T16:35:10
68,722,750
0
2
null
null
null
null
UTF-8
Python
false
false
501
py
logging_example.py
import logging logging.basicConfig(filename='swarm_test.log', filemode='w', format='%(asctime)s %(levelname)s:%(message)s',level=logging.INFO) log = logging.getLogger(__name__) log.debug('Very granular logging message, useful for debuggin.') log.info('Simple update on normal execution, e.g. "Processing record {} of {...
6e5c0e158d3886e801d396e85cf0b53a41342dee
e8a4fbfd98419fca6ec710c9e9534e899f43d2c6
/clustering/scripts/test.py
a14935ae640730d2a059647160f584c8fea05a99
[ "MIT" ]
permissive
ramansbach/cluster_analysis
7b14270f7b1cdec7ddce310d2743b95416135d88
6fe0be86cebf34558b501d86905a77c6e0164b5a
refs/heads/master
2018-10-13T17:26:26.829255
2018-07-17T14:06:49
2018-07-17T14:06:49
104,379,499
0
0
null
null
null
null
UTF-8
Python
false
false
4,040
py
test.py
# -*- coding: utf-8 -*- """ Created on Fri Oct 13 07:55:15 2017 @author: Rachael Mansbach Script to do a full (MPI) data analysis run using the cluster module Description of necessary events: 1) Find all cluster IDs 2) Write out cluster sizes and cluster IDs at each time step 3) Plot Mass-averaged cluster size of c...
02f5d9ce77ec30636cbfb4b9946a6ccffb5d9136
748d01071097e4e60a7a4644dccb5db258d3af90
/test_case/demo/test_chrome.py
1d0d7758250b4fcf4e4d87efa1ffac449c5ad3cb
[]
no_license
yang2580222/zidonghua
3c2c725dcc59787c3cb4116d6f57103fa14ece84
409e74018645327583802614c04a886f954d252c
refs/heads/master
2020-07-30T07:19:14.105526
2019-09-22T10:59:22
2019-09-22T10:59:22
210,132,184
0
0
null
null
null
null
UTF-8
Python
false
false
953
py
test_chrome.py
# -*- coding:utf-8 -*- # Author : 小吴老师 # Data :2019/8/7 11:56 import time from selenium import webdriver def test_baidu(driver): driver.get('http://www.baidu.com') time.sleep(2) def test_open(): driver = webdriver.Chrome('../chrome_driver/chromedriver.exe') time.sleep(2) def test_close(): driver ...
a23f8830efff30c4ffdf7773110ed7bab8227f0b
99045ae1930dbfe8f77078d998fad9de208e562f
/decorador_parametro.py
4e27d671af6e38c99d8894e60862856ce26ccb9d
[]
no_license
paoladuran0618/poo-python
5e9e35fa25680881c087b4fe94185e4d886ea18a
57549cc945866adf4805284e0123cfcae1f37315
refs/heads/master
2023-02-25T22:49:27.079954
2021-01-22T02:42:58
2021-01-22T02:42:58
331,796,820
1
0
null
null
null
null
UTF-8
Python
false
false
439
py
decorador_parametro.py
def funcion_decoradora(funcion_parametro): def funcion_interior(*args): print('Vamos a realizar un calculo: ') funcion_parametro(*args) #Acciones adicionales que decoran print('Hemos terminado el cálculo.') return funcion_interior @funcion_decoradora def suma( num1, num2 ): ...
a796f8f46e10612eadfbcea0f85f6e0ffa87f009
964100775a1aa19c6c1acd28c4165e494000f16b
/leonardo_spirit/overrides.py
809cf629a373524deb8be49751008cf459f8c222
[ "BSD-2-Clause" ]
permissive
leonardo-modules/leonardo-spirit
c8745dbb8c7eb7757d8f3ae91fc06c2a0f5625cf
58b95803c607ea6c21942e3f2633b2ea9b129cd4
refs/heads/master
2021-01-10T08:40:08.148919
2016-02-28T12:15:50
2016-02-28T12:36:39
52,720,483
0
0
null
null
null
null
UTF-8
Python
false
false
1,435
py
overrides.py
from django.conf import settings def category(self): from leonardo.module.web.widget.application.reverse import app_reverse if self.pk == settings.ST_TOPIC_PRIVATE_CATEGORY_PK: return app_reverse( 'topic:private:index', 'leonardo_spirit.apps.spirit') else: return ...
210649f3b7509b5c1d3bc2e3d5b1c8605df4a126
38e40a33e15703a7d886e02ea872fc4e3c55ac50
/testing.py
c578eab773e028da692c703c5a36144ad9ab8cd3
[]
no_license
webbalakumaran/TcsInframind
4144d0205d731b3af01bccbc4a7a46670948abbd
7dc4a9509132234c57c39603973cf238901f161d
refs/heads/master
2022-02-23T02:57:45.497942
2019-10-16T18:54:48
2019-10-16T18:54:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,199
py
testing.py
import numpy as np import object_size import cv2 from sklearn.externals import joblib class Classify: @staticmethod def classifier(originalimg,resizedimg): width=[] height=[] cv2.imshow('img',originalimg) cv2.waitKey(0) test_image = np.expa...
1717051ee250cb3e57074503f0bba333960f1058
72ce9e6b6fc5d7fa642b671c32fec79da64a80e4
/10 num = min,max,total,avg.py
c228f28f0c11a5621dc9b256d89e7cb22912b019
[]
no_license
PuttTim/MundaneUnevenBug
5d9c43f7ef479a74b8809cab462697ce9f3f2127
c7c123df748909a62ab3ffa03285bccc2f50d184
refs/heads/main
2023-05-04T06:59:01.630960
2021-05-22T02:53:33
2021-05-22T02:53:33
362,104,636
0
0
null
null
null
null
UTF-8
Python
false
false
293
py
10 num = min,max,total,avg.py
max=0 min=999999999999999999 total=0 count=0 for a in range(2): num=int(input("Enter number here:")) if num > max: max=num if num < min: min=num total=num+total count=count+1 avg=total/count print("max:", max) print("min:", min) print("total:", total) print("avg: ", avg)
c7227a64a910afdddc258a3a5074ccd79e08aa7f
6f74aa95c41b88b87cfb971f7d5f50584a14a7f3
/2 course/Lab2(tkinter_sorting)/защита/защита 2.py
b2dafbbbde6363493c63965f52588cd258245ba2
[]
no_license
tursunovJr/bmstu-python
c70332f83174d99274f9e296c1cbaf040486d386
9899082013fa87699e2a683fe68c6b9c12156815
refs/heads/master
2022-05-22T10:20:56.201921
2020-04-25T21:23:56
2020-04-25T21:23:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
834
py
защита 2.py
n = int(input("Input size of list: ")) a = [] for i in range(n): number = int(input("Input element of list: ")) a.append(number) #сортировка шейкером def shaker_Sort(a): #l, r границы неотсортированной части массива k = r = len(a)-1 l = 1 while ( l < r ): # проход справо на...
9f28b4ef12ad20e454c22026090a9f57f7878aa7
de9d67174ef3fe6f693843b9c73c25bdb5778b08
/0x16-api_advanced/1-top_ten.py
da0fbff214c72429d9b3e775d7beccf800d716e1
[]
no_license
Gralav/holberton-system_engineering-devops-1
84bac6e0ece10535b89de97d76cc883fd8f1f585
a2d935d40f5a4ad1a09e016cb5e2ea7873f607e1
refs/heads/master
2023-03-17T21:30:32.364017
2020-10-28T22:46:55
2020-10-28T22:46:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
860
py
1-top_ten.py
#!/usr/bin/python3 """ Write a Python script that queries the Reddit API and returns the number of subscribers (not active users, total subscribers) for a given subreddit. If an invalid subreddit is given, the function should return 0 """ import json # import pprint import requests import sys headers = { 'User-Age...
f838561185870d99ac513a432dbcb79851fb5742
bcafeddcc592dd1c9781032832bd6c415af8c1b5
/2019/day1/part1.py
15baa97eceea13ff4430623371ee7e54ad3bed6b
[]
no_license
obrasier/adventofcode
d1384ecb5b600830a5814ce9337986bb00ef0238
7b20dfb56e58d25effa07891927533964ce9906e
refs/heads/master
2020-09-26T13:33:02.554256
2019-12-06T09:16:55
2019-12-06T09:16:55
226,265,229
0
0
null
null
null
null
UTF-8
Python
false
false
219
py
part1.py
#masses = [14, 1969, 10756, 100756] modules = [int(line.rstrip('\n')) for line in open('input.txt')] total_fuel = 0 for mass in modules: fuel = mass//3 - 2 total_fuel += fuel print(total_fuel) #print(total_fuel)
07646aaade0d442b2dc899d8aea0dd22edff4b1f
4db158b65cabb64ac47dbde09732a7d2c42fb8d1
/LintCode/38. 搜索二维矩阵 II.py
0ea0738d1923ed064fcd601532f71445e5ddc147
[ "Apache-2.0" ]
permissive
iFengZhao/Algorithms-1
e87c52ccaf73a26338e136100acd516b722b3255
ffb722703ffc7947bff56ffabe7a491e1e4049f4
refs/heads/master
2023-03-14T00:32:01.329241
2021-03-06T07:17:40
2021-03-06T07:17:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
707
py
38. 搜索二维矩阵 II.py
class Solution: """ @param matrix: A list of lists of integers @param target: An integer you want to search in matrix @return: An integer indicate the total occurrence of target in the given matrix """ def searchMatrix(self, matrix, target): # write your code here if not matrix:...
adeaa9d37e688d628bf2733b0cd03feb055c9ada
ebf9490f7ae55d66cdd4afa9c667231f4e1d2973
/project03/project03.py
38cce0402afccd0f9ba25c5a1faa099f17ac8d13
[]
no_license
sajpatel15/Python
714bfede1603f06add82629f74e01e702fbfa71e
380dea4a1925d2b34aa2d4280251e42e8a15ce7e
refs/heads/main
2023-01-11T09:13:48.201351
2020-11-19T22:44:37
2020-11-19T22:44:37
314,386,793
0
0
null
null
null
null
UTF-8
Python
false
false
5,411
py
project03.py
''' Module project03.py''' import random import string def new_board(): # creates a empty list board = [] # going through and adding random letters to the board for i in range(0, 4): inner_board = [] for j in range(0, 4): char = random.choice(string.ascii_letters) ...
9211d71f1173842d0f94af760680a53bb6db8062
7ac42444ecd7d2b63875aa519f2bdfe3eb6619dc
/MyCrawel_Related/MyCrawel_Azure_new/SVMPredict.py
75436fd0f7170b163d90c6e4680116551ed89636
[]
no_license
nicevoice/wMachine
1e57487474998b4c12176fa6db38dbe786328875
fea3f9d650350130474ebe2c7977a73aa7964c22
refs/heads/master
2020-05-29T11:57:55.011412
2013-08-06T02:44:14
2013-08-06T02:44:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
646
py
SVMPredict.py
from libsvm_3_17.python.svmutil import * import os import sys import string # "models/" ARGS_MODEL = sys.argv[1] # "testcases/" ARGS_TCASE = sys.argv[2] # number of cases ARGS_DNUMS = string.atoi(sys.argv[3]) print "# %s"%ARGS_DNUMS print "# Reading Testcase %s..." %ARGS_TCASE y, x = svm_read_problem('testcases/' + ...
2ca66429326c506c4a1ed79c07add900a02405d4
619059401dbec35ffc4068d87281fcb9360b5446
/automatedSurveying/migrations/versions/dacc98812140_.py
d724f6611c9522ab630974bd30d032e50a19869c
[]
no_license
JKhan01/AutomatedSurveying
0bb68e36d26f24d41cd68e5a01bab5d3a522d4ff
c097d99182111c674142494c5640f1588111c728
refs/heads/master
2023-04-27T03:37:40.164120
2021-05-18T06:45:36
2021-05-18T06:45:36
297,945,641
0
0
null
null
null
null
UTF-8
Python
false
false
669
py
dacc98812140_.py
"""empty message Revision ID: dacc98812140 Revises: 22e12086fb7a Create Date: 2020-11-02 09:01:04.967428 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'dacc98812140' down_revision = '22e12086fb7a' branch_labels = None depends_on = None def upgrade(): # ...
365a5db72934bf0c2b6f3d10c1ab1e376cbc37d8
d1f34a79360754f56f47afbc3162c2dd97065cbf
/xworld/xworld_args.py
4eb4d749cd4e58b68509e07084f883f66c13a5f5
[]
no_license
yangyi02/xworld_learning
ecf224d882a28c0f6ceae97b69020aa79b04c9f5
90fd731fc7efccf7260b7790454f23e8e2f37f7c
refs/heads/master
2021-01-18T20:13:22.156907
2018-03-30T00:44:09
2018-03-30T00:44:09
86,945,816
1
0
null
null
null
null
UTF-8
Python
false
false
1,810
py
xworld_args.py
import argparse import logging logging.basicConfig(format='[%(levelname)s %(asctime)s %(filename)s:%(lineno)s] %(message)s', level=logging.INFO) def parser(): arg_parser = argparse.ArgumentParser(description='XWorld simulator', add_help=False) arg_parser.add_argument('--teacher_type', defa...
f824bcaadc3ba9f0b06025a5d3cb7c6ce4fade66
5bb1efc6dfccbf404f3b58e5deb9abe0bd05b4d2
/outer/servers/finding/project/finding_notes/views.py
03fba2aeb3f14c27910358fe33439ec856de9470
[]
no_license
LenSunko01/PythonBackendCourse
d2f625c0861b2c708072a243dfa4d4be9d189a8c
ecf66d8c377b449dbd7857b71aaa1d3e4acedfe8
refs/heads/main
2023-09-01T06:00:49.142550
2021-10-08T06:45:57
2021-10-08T06:45:57
406,801,467
1
0
null
2021-09-30T09:14:05
2021-09-15T14:30:24
Python
UTF-8
Python
false
false
563
py
views.py
from django.views import View from rest_framework.parsers import JSONParser from django.utils.decorators import method_decorator from django.views.decorators.csrf import csrf_exempt from .services import * from django.http import JsonResponse @method_decorator(csrf_exempt, name='dispatch') class FindingView(View): ...
b695e9ebc55ea11d7e78ccfd2b0d4c7e2c268653
eb3683f9127befb9ef96d8eb801206cf7b84d6a7
/stypy/sgmc/sgmc_cache/site_packages/scipy/linalg/_testutils.py
fefde8558c46c67bbef9fdd52a3b2cecc5f2ec9d
[]
no_license
ComputationalReflection/stypy
61ec27333a12f76ac055d13f8969d3e0de172f88
be66ae846c82ac40ba7b48f9880d6e3990681a5b
refs/heads/master
2021-05-13T18:24:29.005894
2018-06-14T15:42:50
2018-06-14T15:42:50
116,855,812
2
0
null
null
null
null
UTF-8
Python
false
false
63,839
py
_testutils.py
# -*- coding: utf-8 -*- """ ORIGINAL PROGRAM SOURCE CODE: 1: from __future__ import division, print_function, absolute_import 2: 3: import numpy as np 4: 5: 6: class _FakeMatrix(object): 7: def __init__(self, data): 8: self._data = data 9: self.__array_interface__ = data.__array_interface__ 10:...
0fe22e88e05810be9497334669eab91f04b4ee6a
e7ba4626bd239c20f48a49e8b198dace1391b403
/PicoProducer/python/analysis/ModuleMuTauSimple.py
770c7a947d7d4e4fb3760e9d60cf94897da2b77c
[]
no_license
ArturAkh/TauFW
b6952edb7ce6f1e29ee8c9f4501a035a7bd1729e
df209f865d3aacb72ffecb2e02126d57e4646181
refs/heads/master
2023-02-19T18:14:40.269908
2021-01-20T23:02:50
2021-01-20T23:04:15
293,569,311
0
12
null
2020-09-07T15:47:06
2020-09-07T15:47:06
null
UTF-8
Python
false
false
3,993
py
ModuleMuTauSimple.py
# Author: Izaak Neutelings (May 2020) # Description: Simple module to pre-select mutau events from ROOT import TFile, TTree, TH1D import numpy as np from PhysicsTools.NanoAODTools.postprocessing.framework.eventloop import Module from PhysicsTools.NanoAODTools.postprocessing.framework.datamodel import Collection class ...
e6195954cc0bcd1f3183a968993f3547e0163c77
ec8d7c3176187359c7618bd591724ea93a9b0772
/python/libvirt/basic/using_openauth.py
ad42c06f6fd4d453f3b3171b132c8b1eea482507
[]
no_license
almacro/snippets
7000faf593ab97a0890ea56d944ceef4ef23643a
e247c5bc26f336add1c7be8636775f841a65615d
refs/heads/master
2023-08-05T11:00:13.161159
2023-07-23T15:31:42
2023-07-23T15:31:42
65,136,325
0
0
null
null
null
null
UTF-8
Python
false
false
850
py
using_openauth.py
''' Example 3. Using openAuth This example utilizes the configured username and password and allow read-write access to libvirtd. It presumes the libvirtd and sasl config prerequisites are in effect. ''' import sys import libvirt SASL_USER = 'my-super-user' SASL_PASS = 'my-super-pass' def request_cred(credentials,...
c595b151b74d0e07c8876df70aed943ec2b636e1
785248ef71ca54feaf93524299385719ec203959
/web/HW0x05/VisualBasic2077/test.py
e68f57512110363a35482f9eb4d55a3744d35c79
[]
no_license
mhsuab/ComputerSecurity2020
14336fb2c7d8865aedf059cbee0e6f2c5845a011
48c02fddf4561d5e543c700e9ec143dafde20cd9
refs/heads/master
2023-02-27T13:32:00.084130
2021-01-27T09:50:38
2021-01-27T09:50:38
297,151,353
0
0
null
null
null
null
UTF-8
Python
false
false
368
py
test.py
def quine(data): data = data.replace('$$', 'REPLACE(REPLACE($$,CHAR(34),CHAR(39)),CHAR(36),$$)') blob = data.replace('$$', '"$"').replace("'", '"') return data.replace('$$', "'" + blob + "'") password = 'a' username = quine("' UNION SELECT $$ AS username, CHAR(" + str(ord(password)) + ") AS k--{flag.flag}") print (...
00d25e4f937f07627ec950c181f6c30770c1fced
9145f8f5af178ed15db5c747f46469e3efa45326
/back_propagation/try.py
7a31f9693fe9de241448d1241d612638686ae4f5
[]
no_license
mayank127/AILab
5e1479a59c3c5b11959fbc969b152ddd070aa9e1
6946eeed3f84874827c64fe457c1331cea6301b1
refs/heads/master
2016-09-01T18:22:41.210147
2014-04-16T12:48:16
2014-04-16T12:48:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
330
py
try.py
from random import * print('2 5 1') print(0.5) print(0.1) for i in range(10): x = int(random()*100) flag = random() if (flag<=0.5): print(str(x) + ' ' + str(x+1) + ' 1') else: if (flag>=0.75): print(str(x) + ' ' + str(int(x + randint(2,100))) + ' 0') else: print(str(x) + ' ' + str(int(x - randint(0,100)...
a87933ab7d307215e36420849745ef4f4a29a053
df27076c11812c5179a5f6e604ab64acc2790fff
/main.py
6c2a71defdbdf1824491af47c8546cd8c0511e5e
[]
no_license
gwillow/CompareTable_CrossDatabase
a0cdf7a97967c7b492c93a6bab4fe49d253f3e17
d0bbd57f59d8f32e9261368ed2c56795eb9abc52
refs/heads/master
2021-01-01T06:40:34.951171
2017-08-01T14:46:49
2017-08-01T14:46:49
97,481,635
0
0
null
null
null
null
UTF-8
Python
false
false
1,145
py
main.py
#!/usr/bin/env python # coding:utf-8 import datetime import multiprocessing import comparer from conf import dbConnection as db if __name__ == '__main__': tns=db.orcl.makedsn(db.dbhost,db.dbport,db.dbsid) domainId = 32 #源端库标识 srcFlag = 'un_database' #目标库标识 dstFlag = 'sm_database' ...
c0c48fd66b1310faa76d3715f902e646c00b039a
76cd59f427a55d7116651337c04fa6ca5501583d
/Two Pointers/max-continuous-series-of-1s.py
bddd4fdf94b40c1e00520e9daab0f5abe06b227b
[]
no_license
savadev/interviewbit
f911f5ecdd9b0b352c3ad26bd0d53281a9a92837
b50592a2d6189f9ded2ccbf338e09470094edbe5
refs/heads/master
2020-12-31T18:44:40.817384
2019-08-09T11:16:35
2019-08-09T11:16:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,364
py
max-continuous-series-of-1s.py
''' You are given with an array of 1s and 0s. And you are given with an integer M, which signifies number of flips allowed. Find the position of zeros which when flipped will produce maximum continuous series of 1s. For this problem, return the indices of maximum continuous series of 1s in order. Example: Input : Ar...
bd9da7ae033a290eb28b0094844da0e2527142a6
36437b397a855f3986325f1bfe41d7ced00b703a
/tests/handling/test_timing_consistency.py
97e485d172db1898b6eae6a29b9ae1eb2517b3b3
[ "MIT" ]
permissive
nolar/kopf
090cd21550e3a86e512a4c9150dfcf5f59ac14e4
538df59b88d1aab7b985d703483497f73c6c4783
refs/heads/main
2023-08-29T20:39:07.128912
2023-08-24T15:47:40
2023-08-24T15:47:40
288,234,242
1,627
154
MIT
2023-09-14T12:31:33
2020-08-17T16:45:35
Python
UTF-8
Python
false
false
3,478
py
test_timing_consistency.py
import asyncio import datetime import freezegun import kopf from kopf._cogs.structs.ephemera import Memo from kopf._core.engines.indexing import OperatorIndexers from kopf._core.reactor.inventory import ResourceMemories from kopf._core.reactor.processing import process_resource_event async def test_consistent_awake...
0aa9a5e67353399337a0ae07dc8f5a978ba7a3ce
e93aa53f05a7c6b802570a24083db77d8a0afc66
/script/Helper_Script.py
1b9e26f4bfcb0930543029982998e051e7616fd7
[]
no_license
Naveenmishra1197/BQ-Data-Load
ebe00dd37b08074494bdd965e10f39b48e316b0d
39ac192ed0b5e66abfb8b7619235d6d11601f376
refs/heads/main
2023-07-07T01:58:47.694268
2021-08-14T09:31:04
2021-08-14T09:31:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
712
py
Helper_Script.py
import os import shutil from os import path import datetime TIME_ = datetime.datetime.now() def make_copy(): if path.exists("last transac.txt"): # get the path to the file in the current directory src = path.realpath("last transac.txt") #seperate the path from the filter head, tail = path.split(src) ...
83fe7cadd4e73307d425820380033bffc0c04d4c
549b5613a40f5f9a9a55de509a9568db4c042290
/201805_tridy_vozovy_park/5_jinak.py
b609279811308c230f8c7089ea55c812f29e2956
[ "MIT" ]
permissive
messa/pyladies-materials
b558a71a94dde77eeefa82d69bd6c99ad6eb43d1
5cc5753495d35e7a9737a10bd3cc29356ce7e30b
refs/heads/master
2021-08-19T18:09:07.127109
2020-03-20T01:35:53
2020-03-20T01:35:53
134,147,860
2
0
null
null
null
null
UTF-8
Python
false
false
850
py
5_jinak.py
# https://docs.google.com/document/d/1LTf2-077v4KF1LKgR6tUA68Z6iIHGz-qcLTrs7pF8Js/edit ''' Zřejmě by bylo fajn vozy nějak jednoznačně identifikovat - přidej jim atribut spz. Uprav program z předchozího bodu, aby vypisoval SPZ nalezeného vozu. ''' class Vuz: def __init__(self, spz): self.spz = spz class ...
c0d2ec6c336c8b309995e9482b364631e3a3b1dc
42264f46e0baa2036c13dd244224e10395401c58
/Game6/Game6.py
705a4dbe8b7726a7be5c9832f6508042fce27384
[ "MIT" ]
permissive
Baymax94/Games
ef2a00a672858d79196b57eef75e407d0a9fdc01
700f0d221b1647fc3d9958822976eebd2006e200
refs/heads/master
2020-06-17T12:57:58.826211
2019-07-09T04:12:20
2019-07-09T04:12:20
195,930,836
1
1
MIT
2019-07-09T04:09:09
2019-07-09T04:09:09
null
UTF-8
Python
false
false
2,814
py
Game6.py
''' Function: python制作小游戏系列-FlappyBird 作者: Charles 微信公众号: Charles的皮卡丘 ''' import Bird import Pipe import pygame from pygame.locals import * # 定义一些常量 WIDTH, HEIGHT = 640, 480 # 主函数 def main(): # 初始化 pygame.init() screen = pygame.display.set_mode((WIDTH, HEIGHT), 0, 32) pygame.display.set_caption('FlappyBird-公...
1297f4cb5bd6c919b86c6e614d7048d72e47dc13
5bf025dc67b233a70225c194c7b37b94e719777e
/7 week/11.py
48eda3bf4dd571d4342db02fc9b41d6def49491a
[]
no_license
SunnyGrapefruit/Course
b9dc3fdb1bcc98fae14b7b639e41b843146bc210
241fe94973f72195f1dc0dec2ef7af4e45ae8d16
refs/heads/master
2020-09-16T07:55:11.002300
2020-01-08T17:56:33
2020-01-08T17:56:33
219,424,229
0
0
null
null
null
null
UTF-8
Python
false
false
1,103
py
11.py
# В этой задаче достаточно обернуть в функцию то, что делает предыдущая и вызвать подсчет числа внутренних ссылок для двух статей: https://stepik.org/media/attachments/lesson/258943/Moscow.html и https://stepik.org/media/attachments/lesson/258944/New-York.html # # В качестве ответа на задачу введите два числа через про...
aa81af552577f1bb8f92c350392e936628348169
efef350c1f940740d96d5cf0bb9d3d26550ce6ac
/config/product_settings.py
048fdb9262f8cf482149b5651c1e89e5b8392cdf
[]
no_license
Thousandhack/flask_train
912bfa80bb6b2835cbb0f0cd9aa7b34f61d6679f
6f85813b79057ae1ecc273bd9f58d2809a65b0b8
refs/heads/master
2021-04-21T02:43:39.278331
2020-04-01T15:09:34
2020-04-01T15:09:34
249,741,912
0
0
null
null
null
null
UTF-8
Python
false
false
254
py
product_settings.py
#!/usr/bin/env python # -*- coding:utf-8 -*- __author__ = "HSZ" SERVER_PORT = 8800 SQLALCHEMY_ECHO = False SQLALCHEMY_DATABASE_URI = 'mysql://root:123456@127.0.0.1/flask_train' SQLALCHEMY_TRACK_MODIFICATIONS = False SQLALCHEMY_ENCODEING = "utf-8"
ecc09c7fb9351cdb94c6ee04d744479cc3a0cd06
b6a8db9dcba4944cf1d39b85b7bd55e987f0c078
/location_paths.py
d53a3622d5f977888aaf2b01ffd6c756987e20da
[ "MIT" ]
permissive
febriy/selenium_facebook_insights
a6586309d0325f2f62d9765a63743ead0a440e2d
d311a8cf028e58962a9f88be7695d84c62ddd7fd
refs/heads/master
2022-05-26T08:32:53.096469
2020-05-04T05:24:41
2020-05-04T05:24:41
258,895,230
0
0
null
null
null
null
UTF-8
Python
false
false
843
py
location_paths.py
export_button_path = "/html/body/div[1]/div[3]/div[1]/div/div[5]/div/div/div[2]/div/div[1]/div[1]/div[2]/a/span" download_button_path = ( "/html/body/div[8]/div[2]/div/div/div/div/div[2]/div[2]/div/div/div[2]/div/button" ) insights_selector_paths = { "post": "/html/body/div[8]/div[2]/div/div/div/div/div[2]/div...
2a1c837b0f2e1091fc9d7c74018ed1b995cf694f
95864f3144bbf774422bc7a587ba970acd0c9d15
/characters.py
ff4d4b5eac17ca3e7fd75585928414c781ed68b0
[]
no_license
sharma-adi0906/my-first-project
5e5ecabb93a27b3287cbf45db346986be647fd7f
3762ab137b868c2144f44adbff9bf5bcb6472fd6
refs/heads/master
2023-05-15T11:01:14.157868
2021-06-15T17:20:39
2021-06-15T17:20:39
376,257,649
0
0
null
null
null
null
UTF-8
Python
false
false
74
py
characters.py
parrot = "Norwegian Blue" for Characters in parrot: print(Characters)
d8c6f22f0a03916cab09c70cd8d4830f99de81a6
47fbb8cb99588abf86b33ef2325b96d1bf99eb52
/dateSample.py
f965cb497a7c0c4c2fffb2df3ff7d057065df4d8
[ "MIT" ]
permissive
josernesto1989/dateTimeSamplePython_memoriasDev
26da12f04bff4b71c784c1b0a80ed2740fa9e4f2
167de1a755998ec861bc51de76f1429e09a95be6
refs/heads/main
2023-06-28T05:35:57.552030
2021-08-01T18:14:53
2021-08-01T18:14:53
370,174,001
0
0
null
null
null
null
UTF-8
Python
false
false
211
py
dateSample.py
import datetime now = datetime.datetime.now() for x in range(10): currentDate = now + datetime.timedelta(days=0+x) print(str(currentDate.year)+'-'+str(currentDate.month)+'-'+str(currentDate.day))
4ebb0354228fb3ed973f52b1bb9549425cc369e7
2b3a5a442c4a2d6f8b79d785d4af872bbc00c5e3
/plan_matches.py
cb905d63ef17b6899441fe197f74b601fff399c7
[]
no_license
ElenaTriant/assignment-2017-1
343bf4c19e88df043a8d92897775267be40ec52f
ddd04085518e7d52d537649cfdda16b59c99945a
refs/heads/master
2021-01-18T18:31:13.897625
2017-03-31T20:56:19
2017-03-31T20:56:19
86,859,597
0
0
null
null
null
null
UTF-8
Python
false
false
895
py
plan_matches.py
names = "graph_1.txt" final = [] g = {} c = False with open(names) as alpha_beta: for line in alpha_beta: part = line.strip() l = part.split(' ') final.append(l) if l[0] not in g: g[l[0]] = [] if l[1] not in g: g[l[1]] = [] g...
49686b25b29b9e5e2dfe48b84e0a0f8a7797afa4
021d998f9aae886da36ee07c5c92949c8ed0ae1f
/Modulo1.py
25e3b8524e3041dbefab4aff04d7b10ee9eef6df
[]
no_license
Juice930/Pythonoso
bd89a6c994812df6a7baa78ebab496e6e2a39d35
072c02c4bdaacb3d9c23b4798b8fc02ef6e3512d
refs/heads/master
2021-01-23T14:44:57.353588
2017-11-15T06:00:08
2017-11-15T06:00:08
102,696,662
0
0
null
null
null
null
UTF-8
Python
false
false
113
py
Modulo1.py
# -*- coding: utf-8 -*- """ Created on Wed Jan 13 12:13:35 2016 @author: Juice """ import math print math.fabs
3135b2bf8245ccefd43fadcb66c5af8577eed535
50ee36197f18216b1dad907147961e5594301a0d
/expand.py
d6679418a6d27fadd6c82d8e7502e3615435e165
[ "MIT" ]
permissive
helloShen/programming-paradigms
dd9677fc61466cd1f894aa86064469eb93513c97
27387b80147094ffaf2ae88a29f0cc69ec500520
refs/heads/master
2023-04-16T05:27:26.442251
2021-04-23T06:04:11
2021-04-23T06:04:11
332,982,337
0
0
MIT
2021-01-26T05:55:38
2021-01-26T05:31:39
null
UTF-8
Python
false
false
391
py
expand.py
import sys import random grammar = {'<start>':[['This ', '<object>', ' is here']], '<object>':[['computer'], ['car'], ['assignment']]} def expand(symbol): if symbol.startswith('<'): definitions = grammar[symbol] expansion = random.choice(definitions) map(expand, expansion) ...
0cd4118434e3ac59692ea2e88fbfcb4f8a683483
64466688831a42f57cde32f2e10046034d9d40e3
/nvd_search_aws.py
0b40cbed2b5bc4b1bafa421e1d0deb62110e98c2
[]
no_license
brunoodon/vulns
a7851a9262910cd21e34dff0f1c73ee8f8b1f4ee
c314bb7c2b8fe685c0cb59a63877a4d3759f6043
refs/heads/main
2023-06-25T00:43:08.143687
2021-06-17T18:28:07
2021-06-17T18:28:07
369,947,504
2
0
null
null
null
null
UTF-8
Python
false
false
3,377
py
nvd_search_aws.py
#!/bin/python3 import requests import json import re import pymisp import logging import os import datetime import time today=str(datetime.date.today()) url_nvd = "https://services.nvd.nist.gov/rest/json/cves/1.0?keyword=aws&isExactMatch=true&modStartDate=2021-01-01T00:00:00:000 UTC-03:00" #url_nvd = "http...
3db8c8b2aa03d4bbc725c5930298c8644811d3b1
ed1fe564499f9aad1aa89078299ef62ee4ab1ae2
/testWeatherWidget.py
97d1983c39faddef48369a6e4474e2e7d07dab66
[]
no_license
jdogmcsteezy/WeatherWidget
66d6c6682679c00d559774c850ee528a86b4e315
c13729691d5187bb36f3b397899ec8578932c492
refs/heads/master
2021-04-09T10:16:49.223116
2018-10-20T18:18:29
2018-10-20T18:18:29
125,417,676
1
0
null
null
null
null
UTF-8
Python
false
false
747
py
testWeatherWidget.py
from WeatherWidget import WeatherWidget import pygame import os def main(): demensions = (600,300) pygame.init() clock = pygame.time.Clock() testScreen = pygame.display.set_mode(demensions) testScreen.fill((200, 255, 230)) weather = WeatherWidget(*demensions, (0,0,0)) testScreen.blit(weather...
32822dd2c3c4b00a0bb3ef8e7aaf2d78620b0178
2e645711003524cd73723622bfe4ba8a5ccb1b1d
/python/type_hints/type_hints.py
913bc3c7fd583a84d1fa50831d31a43267cadca7
[]
no_license
Edwardbafford/General
80089eddf73ca14e53a4036b351770ff0643a739
0775926bb41ec461502494f8e3208857154cae07
refs/heads/master
2022-05-01T13:10:42.337800
2022-03-10T22:10:17
2022-03-10T22:10:17
200,746,295
0
0
null
null
null
null
UTF-8
Python
false
false
134
py
type_hints.py
def double(number: int) -> int: return 2 * number # pytest type_hints.py will throw an error print(double('abc')) help(double)
78bea3d005b5d8d6a2c7536ad1e538eea32b0a4a
349ea76817d6647f662aba06a06bdf03873d2b49
/aims/inventory/migrations/0001_initial.py
b6d142b645057a3379ab3cd0b4505a3de5212975
[]
no_license
anmolsrivastava18/ERP_Repository
72f0ccc53fa7f38277f962972a20cf8ee461e7da
0c9c041624b1133d04c0389a9270140b68c10b21
refs/heads/master
2023-05-11T01:36:02.991403
2021-03-08T19:22:27
2021-03-08T19:22:27
333,938,771
0
0
null
null
null
null
UTF-8
Python
false
false
28,824
py
0001_initial.py
# Generated by Django 2.2.5 on 2019-10-20 03:36 import aims.inventory.models import django.core.validators from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migration...
88c069b6702fdfa5285332107d5d99df00f19bb7
a61ba21cdb39b7aecb7f659eefb47121af2e62c1
/main.py
9aa687b22ca1a2814b7ca89d6d0cb76251f73863
[]
no_license
nirajyadav04/niraj
506e0e76bbafe2a3f5c1b5ca02b099757a5685aa
96a9ec20c624fcfda697a9663d3f44e7cda1de04
refs/heads/master
2021-01-11T04:58:31.804290
2017-06-22T06:10:17
2017-06-22T06:10:17
95,080,798
0
0
null
null
null
null
UTF-8
Python
false
false
175
py
main.py
print"number" number=raw_input("enter a no n") number=int(number) if( number-1%4==0) or( number-2%4==0) or( number-3%4==0): print"s is winner" else: print"p is winner"
253761b4570d0e9efc0eebc578a98ad5a923c19b
d554b1aa8b70fddf81da8988b4aaa43788fede88
/5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/226/users/4159/codes/1785_3138.py
cb3edf100e41a3840450879cd9ac920bcac1e18f
[]
no_license
JosephLevinthal/Research-projects
a3bc3ca3b09faad16f5cce5949a2279cf14742ba
60d5fd6eb864a5181f4321e7a992812f3c2139f9
refs/heads/master
2022-07-31T06:43:02.686109
2020-05-23T00:24:26
2020-05-23T00:24:26
266,199,309
1
0
null
null
null
null
UTF-8
Python
false
false
108
py
1785_3138.py
from numpy import* v = array(eval(input("vetor: "))) c = v**7 m = (sum(c)/size(v))**(1/7) print(round(m, 2))
a3f04371dd3dc41ee2f21059206284f55227437b
13d1ff43f5d8a84ee55da766419003203e3a10b6
/minikerberos/__init__.py
3cb20760d381ace549deba7be4578daa04e93b53
[ "MIT" ]
permissive
R3dFruitRollUp/minikerberos
c917c90e1fa49973fa8314a302a1221d45e9841b
9201bee3469accc7b1f9a839cbb297574ac8e05b
refs/heads/master
2020-03-21T09:55:55.829036
2018-06-17T14:52:25
2018-06-17T14:52:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
21
py
__init__.py
name = "minikerberos"
d2a08907a8fd37dff4fbd00d79ae1f22ba5c2f29
1c137b55b1ddbaba5062a185fba5c84f9a6b5f48
/Projet/taskmanager/views.py
e1c07c718ed6d01c2530e35789032c50ee55e97e
[]
no_license
mathiasmartinez/Projet
a7c29883ae31c2c1854b8ac40e53874ddb5e9f67
7415583fce12fe5c59316925a8afc336c3423fb6
refs/heads/master
2022-06-13T20:15:17.182797
2020-05-05T15:39:15
2020-05-05T15:39:15
259,562,817
0
0
null
null
null
null
UTF-8
Python
false
false
6,978
py
views.py
from django.shortcuts import render, redirect from django.urls import reverse from .models import Project, Task, Journal,Status from django.contrib.auth.models import User from .forms import ConnexionForm,JournalForm,TaskForm,EditTaskForm from django.contrib.auth import authenticate, login from django.contrib.auth impo...
1a163d6a50af3e88a2f53e5de64140fd24241d5f
ad3aa3f86d3ec0274d7ae855053a4be4ecc3c6b6
/Dirichlet/Function1/plotting.py
7645655c152128d0f2d1ddc38f4b15f6081d1b82
[]
no_license
vivektewary/homogenization
878b6bcefd3e09b8078b1354acecf787d448cf94
fcb423dbff603375b2b4132d3b3c7a74fdf3e8a6
refs/heads/master
2020-12-13T02:46:14.666137
2020-01-16T10:16:36
2020-01-16T10:16:36
234,290,432
2
0
null
null
null
null
UTF-8
Python
false
false
711
py
plotting.py
import matplotlib.pyplot as plt import matplotlib.ticker as ticker import numpy as np import math def logbaseten(x): return math.log(x,10) log_v = np.vectorize(logbaseten) data = np.loadtxt('DirichletApproxFunction2.dat') fig,ax = plt.subplots(dpi=150) plt.xlabel('log R') plt.ylabel('log $|A^{R,D,*}-A^*|$') #ax.s...
9c6648b87d659904275988842b804bbfcf1ced46
ebfb200f3f543fe6e7ccc62f4d1e59c6413ea4b7
/chess/pion.py
858733f9340d5b5cb53022f2478f660155961c58
[]
no_license
wulfhari/TP4
9da8f4726a6180b553d218d0a7c1510242a57d1d
dc80acd61967cbdf3e956eb50436f7e669388d1a
refs/heads/master
2016-09-05T23:36:43.738112
2013-11-19T05:01:08
2013-11-19T05:01:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,770
py
pion.py
''' Created on Nov 16, 2013 @author: Simon ''' from chess.piece import Piece class Pion(Piece): ''' Un pion peut se deplacer de deux cases a la vertical a son permier tour, se deplacer d'une case a la fois a la verticale et qui mange en diagonale ''' def __init__(self,line,col,couleur): ""...
2870b54bf48af5298743ea7f28454f605d8ea91d
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_179/ch20_2020_03_19_19_26_35_146561.py
045803cd69bf9a5adbb67e135bd1ce6bd43b593d
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
226
py
ch20_2020_03_19_19_26_35_146561.py
distancia = int(input('Quantos kilometros você deseja percorrer?')) if distancia <= 200: preco = distancia * 0.5 else: preco = (distancia - 200) * 0.45 + 100 print ('R$ {:.2f}'.format(preco))
1f27b0aa39a9d6e347f3e884a5995d8989bcc717
f293c7c76ec63b0d4d31ab79023aece9d9925e08
/Bayes/Naive_bayes/Gauss_NB/rawdata_precesing.py
67fb4b57ce6845aaee00515baba935f01f7187ee
[]
no_license
thu-inet/Intelligent-accident-diagnosis-system
d70950f434c6556cc807611d540d0e07d5554a3d
4325e4d3a9b49ded01738ad1b85c771b8b14cf33
refs/heads/main
2023-02-16T01:01:48.401016
2021-01-13T04:13:12
2021-01-13T04:13:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,367
py
rawdata_precesing.py
import os,shutil if os.path.exists("D:/Bayesian inference/traindata1/data1"): os.remove("D:/Bayesian inference/traindata1/data1") data_type = str(input("please enter your data_type(train/test):")) if data_type == "train": IES = ['LOCA', 'MSLB','NORM','SGTR'] path0 = "D:/Bayesian inference/traindata1" da...
01dd592194435ef39afc254a853112c609bfe08a
288e579c46d11e368fe0556d4bbc81a7af7f7fe3
/injectedConsole/utils/usepip.py
c5421d68c53f5866cebba8486e507a20294ea618
[]
no_license
xiaosilao/SigilPlugin_injectedConsole
6ccbed59d8390a27bd7444849e626b7e63a779ee
c161341cdde63d021ec103e2825485d6e612ceb9
refs/heads/main
2023-03-15T13:24:03.213196
2021-03-04T03:41:12
2021-03-04T03:41:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,546
py
usepip.py
#! /usr/bin/env python3 # Reference: # https://docs.python.org/3/installing/index.html # https://packaging.python.org/tutorials/installing-packages/ __author__ = 'ChenyangGao <https://chenyanggao.github.io/>' __version__ = (0, 0, 2) import platform import subprocess import warnings from os import path from sys imp...
5d19c4e56937319096b71d0fcf88741c0265c9bf
20de19c3d87d74274bd980e8229d6df9601ac21a
/utils.py
5e5764204cbe29af0205a8fb9c87825e066ab88c
[]
no_license
sainiudit/DCoM
07a1085dbef451bba4af4d8814df1665300efbc1
aaf1cfdd0235c661a8aeedafe037667ca93579e0
refs/heads/main
2023-07-14T21:03:27.340081
2021-08-21T07:55:15
2021-08-21T07:55:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,066
py
utils.py
import numpy as np from collections import Counter import string from scipy.stats import entropy, skew, kurtosis from tqdm import tqdm tqdm.pandas() def create_aux_features(df): df["num_values"] = df["values"].progress_apply(len) df["col_entropy"] = df["values"].progress_apply(lambda x: entropy(np.array(list(...
d046a428e341ed53b3fdb4759418fe965c44ced9
aed7bdc2669090b0b9e42e87878a1ab412bf81dd
/cryptocurrency/models.py
e1b43dd47198225311f5ea75c3225f3f78e772e3
[]
no_license
vintkor/footbik
bab04eacfea7c1b1cfc97adedb625a281ead6d55
d54cd2cd16eeeb2773fa7b76f29ad5d4796efdf5
refs/heads/master
2022-12-11T08:37:13.871094
2018-06-21T11:27:50
2018-06-21T11:27:50
136,138,089
0
0
null
2022-12-08T02:09:33
2018-06-05T07:32:45
HTML
UTF-8
Python
false
false
1,010
py
models.py
from django.db import models from django.utils.translation import ugettext as _ from django.contrib.postgres.fields import JSONField class Currency(models.Model): title = models.CharField(max_length=200, verbose_name=_('Заголовок')) code = models.CharField(max_length=7, verbose_name=_('Код')) course = mod...
fb56bc2f2eb241db297726830eaa0177ff3b8c1d
f825dd2ab7aa9c8d10930056d25b90dbc46077c8
/csv_loader.py
90dff72802c3dafdf085d7d0e91dbf413a66fa2e
[]
no_license
1powechri2/NEO_Data_Set
4c9366d1f3217f20fc903a6cf7802fb40f6f3612
00df8a220e88a8b946f183de3e36882a30dcafdb
refs/heads/master
2020-06-24T06:37:57.616816
2019-08-07T20:05:16
2019-08-07T20:05:16
198,882,317
0
0
null
null
null
null
UTF-8
Python
false
false
4,564
py
csv_loader.py
import date_getter.date_getter as date_getter import neo_getter.neo_getter as neo_getter import csv from datetime import datetime import pprint class CSVLoader: def __init__(self): self.date_getter = date_getter.DateGetter() self.neo_getter = neo_getter.NeoGetter(self.date_getter.start_date_to_str...