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
e569669027c0d36dc5b49d241e5f3ad297db36b9
14fdd5eb4fafb3e9a8b4aba72e168498fd66a00d
/modules.py
86a44f0e721d05fbaa697193d0b12ea88f6c722c
[]
no_license
AnikaNovikov/SLCV
74cd2d4c3e371c416b55827e50e68e16657bfa30
b79d465189e71c253a1a740ba3257a63b5c4e519
refs/heads/master
2021-07-01T12:17:19.388388
2020-09-28T17:52:47
2020-09-28T17:52:47
169,719,427
1
0
null
null
null
null
UTF-8
Python
false
false
7,289
py
modules.py
""" SLCV =========== These are the main function codes for the paper Rettig, A., Haase, T., Pletnyov, A., Kohl, B., Ertel, W., von Kleist, M., Sunkara, V., "SLCV–A Supervised Learning - Computer Vision combined strategy for automated muscle fibre detection in cross sectional images". Submitted to PeerJ in Fe...
18461eed4be3796e7fb8e29493f808f71e9f1e85
25344634a7f523f7eeed345617d79a9cfcbcbd06
/setup.py
6152e25c7101763eb8606fd2e84659d3279a7f47
[ "MIT" ]
permissive
Asha-Nair2020/kmeans_smote
c5faa11be8cf7b1813ad44935b7aba2df408a5a5
e65e17e5456a8a0722cd81334c4a6661c92d400c
refs/heads/master
2023-04-28T13:42:19.294803
2021-04-29T19:03:23
2021-05-19T16:02:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,518
py
setup.py
import os from setuptools import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname), encoding='utf-8').read() tests_require = [ 'pytest>=4.2.1,<4.3', 'pytest-cov>=2.6.1,<2.7', 'codecov>=2.0.15,<2.1' ], setup( name='kmeans_smote', version="0.1.2", py_modules...
6eed27b0135754b278840ba0bdd7b7ca4ae08770
a5e6ce10ff98539a94a5f29abbc053de9b957cc6
/problems/dynamic_programing/lcs.py
49598830ca8bbdc2711f51a4fe35899cbad6bb2c
[]
no_license
shimaw28/atcoder_practice
5097a8ec636a9c2e9d6c417dda5c6a515f1abd9c
808cdc0f2c1519036908118c418c8a6da7ae513e
refs/heads/master
2020-07-26T10:59:51.927217
2020-06-13T11:53:19
2020-06-13T11:53:19
208,622,939
0
0
null
null
null
null
UTF-8
Python
false
false
568
py
lcs.py
#longest common sequence s = input() t = input() len_s = len(s) len_t = len(t) DP = [[0] * (len_t+1) for _ in range(len_s+1)] ans = [] ans_len = 0 for i in range(1, len_s+1): flag = True for j in range(1, len_t+1): if s[i-1] == t[j-1] and flag: if DP[i-1][j] >= DP[i][j-1]+1: ...
5c69ce31816929631dcb1d423f7b4c942f9ffb9b
3b963a100619ad4aa50f0df658cbd9e1caa819a5
/TripY/entity.py
e46c6d1ce260478a5bd39ef13345dfe9a265e9a4
[ "MIT" ]
permissive
AlexWorldD/TripY
ed35f946e71b54c1082ea9968ad6192810d4720d
c129e27ba08618650dac55942af8b840fcf1f06c
refs/heads/master
2021-09-06T02:01:33.474078
2018-02-01T14:16:03
2018-02-01T14:16:03
110,672,962
1
0
MIT
2018-02-01T13:25:07
2017-11-14T10:01:09
Python
UTF-8
Python
false
false
15,345
py
entity.py
import requests import fake_useragent from lxml import html import json import re import time from pymongo import MongoClient from pymongo.errors import BulkWriteError, DuplicateKeyError from TripY.cluster_managment import default_config as CONFIG client = MongoClient(CONFIG.MONGO) # change the ip and port to your Mo...
f247ff7ffb789fe908f9eb1f6dcb64f0a94a5d3e
13027268da439ca1cd283b31e0e3259a73382765
/lib_turtle.py
6cd3cff29acc2a7d90f00fa464d7e5aaa7ab9255
[]
no_license
cegasa89/Python-Courses
f9beb266fcbe0d622ef15f46a41db415ea72f2ff
34ae59c06b106bab084ea3afd1946ec6cbb92ad9
refs/heads/master
2023-02-20T04:50:50.053713
2021-01-04T13:26:30
2021-01-04T13:26:30
277,856,856
0
0
null
null
null
null
UTF-8
Python
false
false
216
py
lib_turtle.py
# -*- coding: utf-8 -*- """ Created on Tue Jul 7 18:04:45 2020 @author: CesarGS """ import turtle t = turtle.Turtle() for c in ['red', 'green', 'yellow', 'blue']: t.color(c) t.forward(75) t.left(90)
fb19a9f48c5ec7426941acdcf7aadaff3e46bd2a
72c706c1c8b4cfe13d0061c8a85f90dab27af85c
/tweet.py
539c2a1f87fde7a945128cf201a182c495bbe188
[]
no_license
OmarKhshab/tweeterscraper
bd8dc066fdd1ff31bcb642b133d0b10d1f29da35
de42ecf681246dae5159b940250b3ae7ddf82865
refs/heads/master
2020-08-27T14:07:21.036614
2019-10-26T18:34:09
2019-10-26T18:34:09
217,399,167
0
0
null
null
null
null
UTF-8
Python
false
false
275
py
tweet.py
class Tweet: def __init__(self, tweetId,tweetText, username,userId,screenName,timestamp): self.tweetId = tweetId self.tweetText = tweetText self.username = username self.userId = userId self.screenName = screenName self.timestamp = timestamp
97a52f4023b0348cb1ebd83bf5fdc3249956d4c8
6c376f45ac7841f39175f8a2b1991b50ffb3a406
/scripts/2019/id1035_schools_in_AR_meeting1m_2018sots.py
4aae1c1a7a04f25fc2b4e4ae075aac45b6b4885e
[]
no_license
sierra073/gsheet-service-layer
024d7793db3d255f0571d0ddd57529e888aa2dd2
073ae233284e7f88bfcaecb9b5164e8cdf78d8aa
refs/heads/master
2022-12-03T14:03:03.276427
2020-08-17T05:43:47
2020-08-17T05:43:47
288,088,852
0
0
null
null
null
null
UTF-8
Python
false
false
3,732
py
id1035_schools_in_AR_meeting1m_2018sots.py
''' Sots 2019 National Analysis Draft In Arkansas, the state set a goal of bringing 1 Mbps per student of Internet access capacity to every school and delivered this to 98 percent of their schools in 2017. (Future, p13) This is a slightly different version from id1024 where that looks at districts, this covers schoo...
3722dde3513ffdf7ea613d969b0d0b6aea40b428
d79e4b414461be3dd5c6dffa03e33f5f7df65325
/C033.py
bd037fc8cc719592845550f95c94460930ed675b
[]
no_license
amazonprog/progmatvol1
eac8156d25268c0fb0a0841df8838674eb5e861b
b27413af289a46d30983150cb420c79313912d85
refs/heads/main
2023-04-29T10:00:19.389065
2021-05-25T17:50:59
2021-05-25T17:50:59
364,357,025
1
0
null
null
null
null
UTF-8
Python
false
false
1,322
py
C033.py
# Spyder (Python) – Code C033 """Nonlinear programming problem by using SciPy""" import numpy as np from scipy import optimize import matplotlib.pyplot as plt def f(x): return x**2 + 10*np.sin(x) # valores de x entre -10 a 10 com 20 pontos xdata = np.linspace(-10, 10, num=20) ydata = f(xdata) + 10...
23829bb638d1093d074feab3fb1896d295df8cac
98c108b409c8a7f13ab2e05072f9b937b501eb94
/SDN_Application/project.py
331713d8e69594054361e528166f6305eb175807
[]
no_license
damien-mcgloin/SSNProject
8bb44586fe3ed44a116236ed06cf2c2149e8213a
b7faa38d64983058539ee0e30a3e598d758f8398
refs/heads/main
2023-07-05T16:40:30.006557
2021-09-03T14:03:09
2021-09-03T14:03:09
392,008,446
0
0
null
null
null
null
UTF-8
Python
false
false
17,723
py
project.py
# attrgetter is used in the traffic monitor below from operator import attrgetter # Basic imports for Ryu from ryu.base import app_manager from ryu.controller import ofp_event from ryu.controller.handler import CONFIG_DISPATCHER, MAIN_DISPATCHER, DEAD_DISPATCHER from ryu.controller.handler import set_ev_cls import ryu...
da0b58640317de57049ba5b54c63738c4c46789e
cf0bd41b7f45a7c67a9719549a3f79e112d919b2
/studyroom/smartstudyroom/forms.py
9225089c516bd02ed550525f2ed20a295b5d7230
[]
no_license
GaYoung2/Xproject
86806ddfe8a31c4ce7174e923e77ec321d2eda53
c19154f0d4c10410f159e65370dec084a9cf05a9
refs/heads/master
2022-11-10T12:54:17.651775
2020-06-25T21:20:35
2020-06-25T21:20:35
271,524,660
1
0
null
null
null
null
UTF-8
Python
false
false
164
py
forms.py
from django import forms from .models import Room, Seat class SeatForm(forms.ModelForm): class Meta: model = Seat fields = ['seat_id', 'room']
4179bad67f8fbf36a071eb11d87f03d9668d7af9
69c241081d85aef145ebcc893cc63f8ef916cb16
/verification/isomip/input.obcs/gendata.py
a9694d034cf8dc0f99e1976448b09f1f8aaaa95f
[ "MIT" ]
permissive
darwinproject/darwin3
3556bae3f4797be2bac41e7842f4d567c8616601
39d56694997b1ac231b3669bdf6f1d84d5318601
refs/heads/darwin
2023-08-09T01:53:57.056025
2023-08-02T15:01:55
2023-08-02T15:01:55
251,341,621
14
13
MIT
2023-01-04T14:13:21
2020-03-30T15:08:18
Fortran
UTF-8
Python
false
false
1,945
py
gendata.py
# simple python script to generate additional input data import numpy as np import sys kwr, kprt =1, 0 nx, ny, nr = 50, 100, 30 def writefield(fname,data): """Call signatures:: writefield(filename, numpy.ndarray) Write unblocked binary data. """ if sys.byteorder == 'little': data.byteswap(True)...
4afbeb72fa5016b004d2e5d332b2e5d7f54f8ca1
18dde3388c5258659393207a5afab1eb8f7483ab
/Day_5/zad_a2.py
2a98a2931c4b92c52446ceb58d7f8955ae13b3ed
[]
no_license
msiemieniukmorawski/python
a3e9e8eda90ddf5981962e66d849b43dcb77d2c3
13c65d21754d894ab1342627be61794e9e29763f
refs/heads/master
2020-03-28T16:13:19.226610
2018-11-11T22:37:44
2018-11-11T22:37:44
148,665,329
0
0
null
null
null
null
UTF-8
Python
false
false
415
py
zad_a2.py
a = [1,2,0,4,5,6,7,7,7,7,1,2,] b = [''] * 10 print(b) for ii in a: b[ii] += 'x' print(f'b: {b}') cc = [0] * 10 for ii in a: cc[ii] += 1 c = [0] * 10 for ii, elem in enumerate(cc): c[ii] = 'x'*elem print(f'c: {c}') d = ['x'*ii for ii in cc] print(f'd: {d}') dd = [] for ii in cc: dd.append('x'*ii) ...
39cefdda20e433198d109eec4295eb903dbdda84
68bf0367ffa9d1e2b7719cd9b10ce7c386723445
/background-subtraction/open-cv-test.py
8872641aea892c10b0fac16ef0a6c2b08a48c984
[]
no_license
praveenv253/dvp
3ffb2e8a77e63a13555a5fbd366636649503a93e
c766eb3841c853b204e635836cd8fb6f6ec4a05f
refs/heads/master
2021-01-13T02:31:28.156549
2014-07-14T10:06:28
2014-07-14T10:06:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,146
py
open-cv-test.py
#!/usr/bin/env python import cv2.cv as cv import numpy as np MAXFRAMES = 250 # Begin to capture image from camera capture = cv.CaptureFromCAM(0) print capture # First frame is used as a temporary frame to determine frame parameters temp = cv.QueryFrame(capture) width = temp.width height = temp.height channels = tem...
6c47f26b30bc56928d2f9144ec5f1f5223929a0d
78ede7c84cef7782f035b0a3a7439d5c8aef1074
/handlers/loadMatsHandler/loadMatsHandlerParameter.py
f380f604e5378145610671ce12e183c31862e5a3
[]
no_license
vadimpechenin/ImageProcesssing2021
596e71b56124c9c91b7384f7bb355f90f7017b19
147b6701a2d2f0360997dc0e7632bcc80f1a6e36
refs/heads/master
2023-08-11T08:30:19.367287
2021-09-17T17:59:07
2021-09-17T17:59:07
406,873,282
0
0
null
null
null
null
UTF-8
Python
false
false
348
py
loadMatsHandlerParameter.py
from handlers.BaseCommandHandlerParameter import BaseCommandHandlerParameter class LoadMatsHandlerParameter(BaseCommandHandlerParameter): def __init__(self, name_safe1, name_safe2, path_file, pl_save): self.name_safe1 = name_safe1 self.name_safe2 = name_safe2 self.path_file = path_file ...
7fa205ca997e6f7128f56562679e7412b18065af
8bbeb7b5721a9dbf40caa47a96e6961ceabb0128
/python/782.Jewels and Stones(宝石与石头).py
66ee7c5060742cbef1e56e9f4c5cf4be89f0d48a
[ "MIT" ]
permissive
lishulongVI/leetcode
bb5b75642f69dfaec0c2ee3e06369c715125b1ba
6731e128be0fd3c0bdfe885c1a409ac54b929597
refs/heads/master
2020-03-23T22:17:40.335970
2018-07-23T14:46:06
2018-07-23T14:46:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,191
py
782.Jewels and Stones(宝石与石头).py
""" <p>You&#39;re given strings <code>J</code> representing the types of stones that are jewels, and <code>S</code> representing the stones you have.&nbsp; Each character in <code>S</code> is a type of stone you have.&nbsp; You want to know how many of the stones you have are also jewels.</p> <p>The letters in <code>J...
9a88f745fd5de1d69a5ed526183e9d2f2469e134
bc515843df9f623e64b94544892ed7d988e80be1
/acme_test.py
8b0ea424f8f017dea46e5e37049d767a8a4b9f3f
[ "MIT" ]
permissive
chrisseiler96/DS-Unit-3-Sprint-1-Software-Engineering
42660370d3db66bf423247bf5baa13f4b602d9e6
8645819316406d205c84f25c3235c07b97551b4e
refs/heads/master
2020-04-22T06:40:17.511398
2019-02-15T20:45:07
2019-02-15T20:45:07
170,198,378
0
0
MIT
2019-02-15T01:30:38
2019-02-11T20:38:38
null
UTF-8
Python
false
false
1,480
py
acme_test.py
#!/usr/bin/env python #TODO MAKE TESTS import itertools from itertools import chain import unittest from acme import Product from acme_report import generate_products, ADJECTIVES, NOUNS class AcmeProductTests(unittest.TestCase): #Making sure Acme products are the tops!""" def test_default_product_price(self): #...
368aaf1861c5f41912da97ae3f59718eefc15d85
509b319ad3db038e069525e32af619fc51c81abe
/taskmanager/migrations/0004_auto_20150623_1509.py
1303962415689520db410be8f8bc18dab9932dcf
[]
no_license
callmeishma3l/taskmanager
c15869951dd1f2b9b385cb05f584ec5a3bb0f975
c629a5fd86d10ef201e5c4f46bb95f7a234f81eb
refs/heads/master
2016-09-16T03:29:03.069140
2015-07-03T13:55:20
2015-07-03T13:55:20
37,988,350
0
0
null
null
null
null
UTF-8
Python
false
false
719
py
0004_auto_20150623_1509.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('account', '0002_auto_20150623_1509'), ('taskmanager', '0003_auto_20150608_1426'), ] operations = [ migrations.AlterM...
ba0d60920436ab21de254b25bf764e27af8c9f8f
639e9cb9c9d4d05719806c24684d7224196c266a
/Unit Rate Calculator.py
d3aa8c04981a60e7ac32315aa7318ca876494328
[]
no_license
PtatoMemes/Calcutators
9072049108e958d634fb93d50237f870bbb0d692
a7dbfebd63298fe89b92b544824630871a4a1803
refs/heads/master
2020-04-07T22:14:16.203117
2018-12-03T21:15:14
2018-12-03T21:15:14
158,761,155
0
0
null
null
null
null
UTF-8
Python
false
false
409
py
Unit Rate Calculator.py
# First Message: print(''' Unit Rate Calculator: ''') print() while 1 == 1: # Some user Data: top = float(input('Type the Top Number: ')) bottom = float(input('Type the Bottom Number: ')) # Calculation: bottom_unit_rate = 1 top_unit_rate = top / bottom # Printing: print(''' %s...
8af778f36979975cef110358f87584354372b13d
ef7aa931c8e658844eb26202f1bf77eec7bf7a03
/cleaner.py
732f1756dcc099a19be6f89b202804256e44ffe3
[]
no_license
nilesr/youtube-playlist-scraper
94a89b849ce7029c4566f15cbbc3ad75782ca1c8
e06880a44aad40dd126c44412d4b5263af486dd4
refs/heads/master
2020-12-23T21:49:14.454050
2019-08-06T14:24:39
2019-08-06T14:24:39
41,259,024
4
0
null
null
null
null
UTF-8
Python
false
false
270
py
cleaner.py
import os, glob, sys a = [f for f in glob.glob("*") if not os.path.isdir(f)] for line in sys.stdin.read().split("\n"): line = line.split(" ") if len(line) < 3: continue id = line[2] for i in range(len(a)): if id in a[i]: del a[i] break for f in a: print(f)
7b7a5b640a2acf279751244d29a404d226503fff
37fbdc2079f15429ac1e4ef731a02345336310a7
/read_buffer.py
c3736e7eeaad5e972297a8d61ad84fe6643f7bd7
[]
no_license
pensebien/intro_to_programming
dad4040ddb696681438d2dff8dc4b9c7710ef6a9
63cd72d2c353c6734f7bbeb9a26982a83943343f
refs/heads/master
2021-08-20T07:43:08.370611
2017-11-28T15:24:04
2017-11-28T15:24:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
415
py
read_buffer.py
import random, time start_time = time.clock() def backup(fn1): buffersize = 50000 file = open(fn1, "r") newfile = open("backups/"+fn1+".bak", "w") buffertext = file.read(buffersize) while len(buffertext): newfile.write(buffertext) print(".", end ='') print("Done") file.cl...
26a2468860359ce6f09cfd1df0d00c7e6384b88a
bd757a638fe5726ebca5324963b2513ccccfb4db
/src/BookingsCache/BookingsAPI/apps.py
c9ef3e77ead1788daf2b31dbf5c4e2653ffa0768
[ "Apache-2.0" ]
permissive
fengints/BookingsCache
c71ec6123ad801679ff151d486704eeb378480ef
6a28de80920492a8710ec145245597f2e89791db
refs/heads/main
2023-01-18T21:30:34.245100
2020-11-24T14:24:38
2020-11-24T14:24:38
314,789,087
0
0
null
null
null
null
UTF-8
Python
false
false
97
py
apps.py
from django.apps import AppConfig class BookingsapiConfig(AppConfig): name = 'BookingsAPI'
8c1bd28f593e861e55627d7bcdce28e3afc66557
a81c36d350be0aeb6769fe25cf6084525841874e
/pony/orm/tests/sql_tests.py
a5d5afa945aaed0b26970863d987c052186cfb64
[ "Apache-2.0" ]
permissive
ponyorm/pony
6e9bb581fb87c121ab21a911b2a185e7044fd945
27593ffc74184bc334dd301a86fc5f40fdd3ad87
refs/heads/main
2023-08-29T09:50:10.246229
2022-12-15T14:28:13
2022-12-15T14:28:13
8,087,816
3,117
290
Apache-2.0
2023-09-05T02:20:16
2013-02-08T04:56:00
Python
UTF-8
Python
false
false
3,613
py
sql_tests.py
from __future__ import absolute_import, print_function, division import re, os, os.path, sys from datetime import datetime, timedelta from pony import orm from pony.orm import core from pony.orm.tests import testutils core.suppress_debug_change = True directive_re = re.compile(r'(\w+)(\s+[0-9\.]+)?:') directive = m...
177ae5390a77a8d8f49c8fac10c96574bfe0f737
4f4b1157b2bd02d72d95809bdc02f427941559ad
/collections.py
2b8c18fa28aaba400de6ad49b11695492358393c
[]
no_license
madhurima-kandadai/PythonPractice
5a457643ec0933ab5f5f4471601baec1228cc549
efb7c045c8f9c14a35e583a0f9a5229a641ca844
refs/heads/master
2021-01-22T23:49:03.055343
2017-03-28T00:41:19
2017-03-28T00:41:19
85,674,419
0
0
null
null
null
null
UTF-8
Python
false
false
4,463
py
collections.py
def minmax(items): return min(items), max(items) def enumerate_example(): # to create tuples t = [6, 372, 8862, 148800, 2096886] for p in enumerate(t): print(p) for (i,v) in enumerate(t): print("i = {} , v = {}".format(i,v)) def wrong_iteration(): t = [1,2,3,4,5] # should not iterate like this through li...
fe51229c409ee6eee431e46ff6aa50dd8658969d
438137d0bb5129741e40f7c821ba11a8baad0071
/timeTracker/migrations/0004_auto_20181116_2320.py
2176e48b0943e95a4808cfe12de772be8cfb8856
[]
no_license
jazminferreiro-zz/timeTracker
3bfc6c5c382292e3e3f7c402b09876b01830e6d5
9f71dff56554cd7a47e0c72e20ef8b168fbfa7f1
refs/heads/master
2021-10-08T21:02:47.812316
2018-12-17T19:33:04
2018-12-17T19:33:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,390
py
0004_auto_20181116_2320.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.16 on 2018-11-16 23:20 from __future__ import unicode_literals import django.core.validators from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ (...
6aac5e363852934de584fba6570d4fe8a0b5d624
93a432221ab68606aa7283dc82f543b91b53bf39
/Python_Crash_Course_Eric_Matthes/magicy.py
14623bcdd1d3aea82c73852ba0f863c7fdb7eb09
[]
no_license
MDomanski-dev/MDomanski_projects
f47e9aeeeb1392dcb9d9c3a9e2c6f9ad3f2238ca
19935fb72ae48c4a01c106945296a9131e8dd906
refs/heads/master
2021-05-25T18:19:25.654922
2020-08-19T05:32:18
2020-08-19T05:32:18
253,866,321
0
1
null
null
null
null
UTF-8
Python
false
false
233
py
magicy.py
magicians = ['maja', 'majas', 'majak'] for magician in magicians: print(magician.title() + ", Super sztuczka! ") print("Rozkaz, nie przepuszczać nikogo! " + magician.title() + ".\n") print("Było miło, dzięki")
a39c6f970a4d19dbbd0611b90632c822496a6a70
d7d25574246fd8585396a02ebd2ca8450e49b082
/leetcode-py/leetcode542.py
cc2bd17fa1ffa632cd32b842e84523923439d67d
[]
no_license
cicihou/LearningProject
b6b1de2300e574835f253935d0c0ae693b194020
3a5649357e0f21cbbc5e238351300cd706d533b3
refs/heads/master
2022-12-04T06:18:14.856766
2022-11-29T08:54:16
2022-11-29T08:54:16
141,606,471
0
0
null
null
null
null
UTF-8
Python
false
false
1,170
py
leetcode542.py
import collections class Solution: def updateMatrix(self, mat: List[List[int]]) -> List[List[int]]: ''' bfs 先将所有坐标为 0 的点,加到 visited 和 queue 中 然后再遍历queue,如果 queue mat[i][j] 向四周扩散的元素是有效的点,且不在 visited 中,则为 mat[i][j] + 1 time: O(r*c) space: O(1) ''' m =...
8ec07a6d48c27ca6cd1eb9d7dda09c92b1521882
f2ab9effd9af74bd61f7b89d911edd868baf4585
/trust_region.py
bf505102ae27dc57112a0b073808012f94a410c9
[]
no_license
ZahraAbbasiantaeb/optimization-methods
e37c746495ed4812ba764a20ca3196da0beed345
fdff47edceed759083bd56d45d7b9f9c11af7fa5
refs/heads/master
2022-02-13T18:35:03.617534
2019-08-14T12:35:58
2019-08-14T12:35:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,882
py
trust_region.py
import numpy as np from math import sqrt from function import gradient, f, hessiyan from function import showResult def dogleg_method(Hk, gk, Bk, trust_radius): pB = -np.dot(Hk, gk) norm_pB = sqrt(np.dot(pB, pB)) if norm_pB <= trust_radius: return pB pU = - (np.dot(gk, gk) / np.dot(gk, np....
2bfb4b93007f8a9eba431fb0fab48d86a7d085db
b7286028726b3e49dcf1a9e581c0bf92630a9aa9
/example/pi_numpy1.py
35b632dd009aa5dac6857cce583d8503cc4f1e86
[]
no_license
yuahualove/runmetal
aa04feaff97362bdec451d8b1f25b59628307cf8
0c5c1d019020c24e9f76189183e24a4f90e721bf
refs/heads/master
2023-08-11T15:26:51.033247
2018-12-17T13:08:25
2018-12-17T13:08:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
690
py
pi_numpy1.py
import numpy import logging import click @click.command() @click.option("-n", type=int, help="number of samples", default=1000000) def main(n): fmt = "%(asctime)s %(levelname)s %(name)s %(message)s" logging.basicConfig(level=logging.DEBUG, format=fmt) log = logging.getLogger(__name__) log.debug("gene...
85f405335a87e135d9da621c04d76a51d51d3f87
6b6a404b1b8725d6c8b7ab8a5c51fb2bbf5a3c73
/sample5.py
00d02faac7a376402c4146497bdc07bbbcdb57f7
[]
no_license
tejeswinir00123/test2
16cd5a371e05dec85527295a78099d9836ae4c36
e94b42f28408b7d59cef2c2efa5841b110b8a767
refs/heads/master
2023-04-13T22:50:14.066423
2021-04-22T05:23:23
2021-04-22T05:23:23
360,400,977
0
0
null
null
null
null
UTF-8
Python
false
false
4,810
py
sample5.py
from flask import * import sqlite3 app = Flask(__name__) @app.route("/") def index(): conn = sqlite3.connect("product4.db") conn.row_factory = sqlite3.Row c = conn.cursor() c.execute('select * from productdetails') rows = c.fetchall() return render_template("index.html",rows=rows)...
6c037de8c7b5dd36eeac9050b2373c9a66d6e7a9
bbb6b3b78bf50f01e7cfea9b838730dd2ef4c7e9
/src/uvm/reg/uvm_vreg.py
7326335c7d783f54f276a2018dbfd370f39e6056
[ "Apache-2.0" ]
permissive
gitCyan/uvm-python
1f2b4c4b53a07eadb64490ee3355448b97f1e975
45b8075518f828e0d77980e35c68a8527713b0e1
refs/heads/master
2022-08-01T00:21:20.097417
2020-05-22T19:01:06
2020-05-22T19:01:06
266,944,778
1
0
Apache-2.0
2020-05-26T04:32:23
2020-05-26T04:32:22
null
UTF-8
Python
false
false
55,303
py
uvm_vreg.py
#// #// ------------------------------------------------------------- #// Copyright 2004-2009 Synopsys, Inc. #// Copyright 2010 Mentor Graphics Corporation #// All Rights Reserved Worldwide #// #// Licensed under the Apache License, Version 2.0 (the #// "License"); you may not use this file except in #//...
db96fb899f0d9f246a054dfc451570c7cd7c07c1
506ed91d4041500d2479eb1ec87b221bda9c4b03
/main.py
3ba98069882aca190b801684f0c78a2bb1727c6d
[]
no_license
kerengaiger/RecSys_PyTorch
1476cb4b9d6702b48b9d34e74e816d9e2fdab6fd
9adb2634b024dda6e2f61a0b0a227c6f167fbf51
refs/heads/master
2023-08-20T19:48:11.047338
2021-09-17T08:15:46
2021-09-17T08:15:46
387,476,776
0
0
null
2021-07-19T13:37:33
2021-07-19T13:37:33
null
UTF-8
Python
false
false
1,661
py
main.py
# Import packages import os import torch import models from data.dataset import UIRTDataset from evaluation.evaluator import Evaluator from experiment.early_stop import EarlyStop from loggers import FileLogger, CSVLogger from utils.general import make_log_dir, set_random_seed from config import load_config """ C...
21deeca73af2c0aaa65aeb9d7e23a425d648a95a
e8138d11904925de10b0c6a6f9ab724785a754c7
/transformer/test/transform/test_dataframe.py
49a069299f9d619c26f709a97050c29827121cc8
[]
no_license
bertrandlalo/fhir-river
39899d7fa46e41725348d318f12c1d856174b0ce
4e99f5473757e03e2ba18347ed86b58aebf58790
refs/heads/master
2022-08-29T18:25:44.370722
2020-05-13T16:19:49
2020-05-13T16:19:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,791
py
test_dataframe.py
from unittest import mock, TestCase import transformer.src.transform.dataframe as transform from analyzer.src.analyze.attribute import Attribute from analyzer.src.analyze.sql_column import SqlColumn from analyzer.src.analyze.concept_map import ConceptMap from analyzer.src.analyze.cleaning_script import CleaningScript ...
f3c47ee4de143bd94597d0ebd878b20f8f4f8534
ef28e62cb4e7be98f204c1054f268dbcfaeb8425
/Cell.py
2ddbe6af9bf876e0bda3245b08c8761f800349cb
[]
no_license
matthewphilipgray/SudokuSolver
bf3b07897b3449252945ea6844ef93531e3e05b6
9018e2e3f7a98e6c293a2bbaea7c1b1cb5a8ca0e
refs/heads/master
2020-05-03T03:05:03.970379
2019-03-29T10:56:05
2019-03-29T10:56:05
178,388,274
0
0
null
null
null
null
UTF-8
Python
false
false
2,898
py
Cell.py
import tkinter.font as tkfont class Cell: def __init__(self, row, col, size, num = 0): self.num = num self.size = size self.row = row self.col = col self.fontColour = '#000000' self.x = col * self.size self.y = row * self.size self.colour...
b6ded736efead600060de5ea3226c7434b6e1914
e1ddccf69dcd0f8232cfc7f78b75ee61fd987984
/graphene_django_subscriptions/mixins.py
915fd94099d2961e785548f910538923c9f47e02
[ "MIT" ]
permissive
eamigo86/graphene-django-subscriptions
d4ca522704731b64aad4845bb1924ea8b84bbbac
924c5f5cccfaefcaa4431b0e438b2c99a5a05c2f
refs/heads/master
2023-04-03T18:51:59.152456
2021-04-12T21:41:54
2021-04-12T21:41:54
109,715,842
206
28
MIT
2018-11-04T22:50:34
2017-11-06T15:49:23
CSS
UTF-8
Python
false
false
1,379
py
mixins.py
# -*- coding: utf-8 -*- import json from channels import Group from channels_api import detail_action from rest_framework.exceptions import ValidationError class UnsubscribeMixin(object): @detail_action() def unsubscribe(self, pk, data, **kwargs): if 'action' not in data: raise Validatio...
957162a9f7dd6fd19b8c4c8e328c58f7a1a47e61
e758f94e62976a70a9deffd6ac5afac3230525c3
/csa803c/example/csa803c_automated_measurements.py
be05218e3af5b078715174c7d96ee671ad6e7552
[]
no_license
GauiStori/tekprogs
46c1d74235a72ef642bea710fdbb5a6327422143
f0876e0d43ee4a29b8acaedf50082864b3bd6548
refs/heads/master
2022-03-26T06:22:32.713721
2020-01-11T10:41:24
2020-01-11T10:41:24
111,987,485
4
0
null
null
null
null
UTF-8
Python
false
false
3,497
py
csa803c_automated_measurements.py
#!/usr/bin/python3 #LOCATE ,,1,0,7 def doAutomatedMeasurements(instr): print("Example 5: Taking Automated Measurements\n") print("Ensure that the cable is connected and the scope's parameters are") print("set accordingly : (major menu UTILITY, minor menu RS232 Parameters)") print(" Baud 19200, Echo OFF...
dbcbe5e13516a6ac8a8cc22b0a27d9cdcda1fb98
b186830ab8e74452cb2e8ff0188d0a8fa3d15b59
/maxSubarray.py
fddde4749a18f01a933895ef2b62a0626dec6400
[]
no_license
cafaray/atco.de-fights
e3a278bd51feb7bee05623eaf20d1ea4db535eb6
1304bcabf1f18202c14a20b38144854ef05bf776
refs/heads/master
2022-11-26T05:57:37.564504
2020-07-28T12:07:01
2020-07-28T12:07:01
124,416,047
0
0
null
null
null
null
UTF-8
Python
false
false
242
py
maxSubarray.py
def maxSubarray(matrix): res = 0 for i in range(len(matrix)): cur = 0 for j in range(i, len(matrix)): cur += matrix[j] if res < cur: res = cur return res
e9030230649228c7c5c18a72fa65877d78aa01f5
e5d8465321043f920ed45809bf76e43f24e2146a
/homework-4/messenger/user_profile/model_forms.py
9cc65c9d4ffa87e1ff9b20207cb5823ffbf5010f
[]
no_license
MisterMaks/2019-2-Atom-Backend-M-Makarov
16aa6171b578d61eac08a14548e90d3af057aa5c
7b233494657bed1b5c5aaef9418f368bbd2cc6b5
refs/heads/master
2022-05-11T20:13:28.385853
2020-01-12T18:25:27
2020-01-12T18:25:27
210,880,301
0
0
null
2019-12-05T00:26:54
2019-09-25T15:34:13
Python
UTF-8
Python
false
false
199
py
model_forms.py
from django import forms from user_profile.models import UserProfile class UserProfileForm(forms.ModelForm): class Meta: model = UserProfile fields = ('name', 'nick', 'avatar')
e552c0f8968950d3d79ce645656b1d7001843b9a
5152f611c2b255fb4b612cb02bebd6a9e4f581a2
/그래프/가장먼노드.py
df33fd62d018ee8ab7034e5debddae06c060bad2
[]
no_license
todayislegday/programmers
9a10d0225399cf2e4a961ae12bb3829e9b3e6b33
987fe38267699fbf82311068ed62494938833d93
refs/heads/main
2023-06-15T08:20:25.799094
2021-07-17T02:31:08
2021-07-17T02:31:08
382,492,075
0
0
null
null
null
null
UTF-8
Python
false
false
1,061
py
가장먼노드.py
from collections import deque def solution(n, edge): answer = 0 node={}#인접리스트 표현 for i in range(1,n+1): node[i]=list() for i in edge: f=i[0] t=i[1] node[f].append(t)#양방향 node[t].append(f) queue=deque([(1,0)])#시작 노드 인덱스,가중치의 합 visited={...
24550768a6f54a5abcacf61e16e90a0f501b05fd
38bd99c72ca2521489ce1eb02b7604095b02b585
/src/427-ConstructQuadTree.py
3635b47b277638e2a67113de157134265579a803
[ "MIT" ]
permissive
Jiezhi/myleetcode
eadbd7d9f1f0ea6a0ee15c2da9040dcfbd28b522
4dd1e54d8d08f7e6590bc76abd08ecaacaf775e5
refs/heads/master
2023-03-16T15:52:21.833622
2023-03-09T14:33:03
2023-03-09T14:33:03
139,965,948
1
2
null
null
null
null
UTF-8
Python
false
false
1,724
py
427-ConstructQuadTree.py
#!/usr/bin/env python """ CREATED AT: 2022/4/29 Des: https://leetcode.com/problems/construct-quad-tree/ GITHUB: https://github.com/Jiezhi/myleetcode Difficulty: Medium Tag: See: """ from typing import List # Definition for a QuadTree node. class Node: def __init__(self, val, isLeaf, topLeft, topRight, botto...
9cb2444a3c12bf2ff7ce4500d6bfc31a2f348fb1
ea511655b01556bfdfaba1cc4f9eb5636588645c
/Practic Python1/2.py
0c05e886f578f0e3552a2ac1e61e97bfc44903cd
[]
no_license
nasssway1/homework
df4653e8cd3fae213bc467518d2abd9081996bd8
7ca28159cf8a2e5f12904abd81a06497bac5247d
refs/heads/main
2023-04-20T01:38:40.250748
2021-05-16T21:06:46
2021-05-16T21:06:46
360,633,004
0
0
null
null
null
null
UTF-8
Python
false
false
557
py
2.py
import math data = [] def sum(value): result = 0 while value!=0: result += value % 10 value //= 10 return result for i in range(0,1000): if i % 2 != 0: data.append(math.pow(i,3)) sum_num=0 for i in range(len(data)): data[i] = data[i] if (sum(data[i...
85a36217c3a4cc65947ce17b6cbc2f1c3c19111b
e96797910e7372b19f132fdbe33c440474b7d980
/controller.py
5556f77035b0eee16375d2b0cd20c10c4dc26d20
[]
no_license
ranstotz/elevator_simulator
b128d978ade2dcd0d246923023913e7bde55af62
ced204c757bb81a0097dc72b6f1cedd10f34248e
refs/heads/master
2023-02-17T05:47:16.576601
2021-01-18T00:24:51
2021-01-18T00:24:51
330,514,572
0
0
null
null
null
null
UTF-8
Python
false
false
2,613
py
controller.py
import queue import threading import time def threaded(fn): def wrapper(*args, **kwargs): thread = threading.Thread(target=fn, args=args, kwargs=kwargs) thread.start() return thread return wrapper class Elevator_controller(): def __init__(self): print('starting... \n') ...
b667676d3fa933286dc80c8392114caa51a755be
deecbbec8c61aa1d23c3cd612e081790b25b4d92
/shapesdf/netscripts/epochpass.py
d6f529c57eb0ae05901da360f056688edebf6e03
[]
no_license
schardong/shape_sdf
f3c435498fdbff944645e95556bc1fb65076a9b9
0c241bd1fb565cc3ed6f62c4e878ecc6308f2471
refs/heads/master
2021-02-25T22:36:24.319909
2019-04-01T20:30:55
2019-04-01T20:30:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,413
py
epochpass.py
from copy import deepcopy import os import numpy as np import torch from tqdm import tqdm from shapesdf.datasets.queries import BaseQueries, TransQueries from shapesdf.imgutils import plot_sdf, visualize_sample from shapesdf.evalutils import AverageMeters def epoch_pass(loader, model, epoch_idx, optimizer=None, trai...
67484ecf028f09907cc652ca0f12c4f3424e1653
06e05cdf1f399dc613dc29a3602218e2095ed4ec
/process/ngrams.py
7668c280fac884ab728f1a1b8788468b1dbf4052
[]
no_license
douxu896/gitpro
a53dc0e674af22db5a2e67e6b4be92a975fab3ac
77e763a41fcce165210de6e4048167d6abcad8f0
refs/heads/master
2020-12-30T11:52:08.002513
2017-10-09T02:47:06
2017-10-09T02:47:06
91,534,048
0
0
null
null
null
null
UTF-8
Python
false
false
1,237
py
ngrams.py
import nltk from nltk.collocations import BigramCollocationFinder from nltk.metrics import BigramAssocMeasures from nltk.probability import FreqDist, ConditionalFreqDist def create_word_scores(): posWords = pickle.load(open('D:/code/sentiment_test/pos_review.pkl','r')) ..... return word_scores #包括了每个词和这个词的...
bfd69adc7022663191b70bdfc5b5ce40f77806fc
d4ea02450749cb8db5d8d557a4c2616308b06a45
/students/preactive/Lesson1/break_me.py
44cc29ebaca2a13da1330372912836f55f28af75
[]
no_license
UWPCE-PythonCert-ClassRepos/Self_Paced-Online
75421a5bdd6233379443fc310da866ebfcd049fe
e298b1151dab639659d8dfa56f47bcb43dd3438f
refs/heads/master
2021-06-16T15:41:07.312247
2019-07-17T16:02:47
2019-07-17T16:02:47
115,212,391
13
160
null
2019-11-13T16:07:35
2017-12-23T17:52:41
Python
UTF-8
Python
false
false
336
py
break_me.py
def nameErrFunc(): print("NameError") print(undefinedVar) def typeErrFunc(): print("TypeError") print(1+"1") def attribErrFunc(): print("AttributeError") a = 123 a.sort() def syntaxErrFunc(): print("SyntaxError") print("Muh Bad";//) #nameErrFunc() #typeErrFunc() #attribErrFunc()...
c3f858bc5abfcbceb969c5cc3b31f2de5d86bd85
2e327051539e557aca3fc2c26c6f203b23a5be23
/test.py
5c3f6d58070f241d5b01566fb01147bf516c349a
[]
no_license
ChadRM/pithon-k8s-sensehat-monitor
c58ea52d80a99d848184c2e51bc099a5c56f8c63
07bdbd924e48a95f337b1dfc481a6c55a80c47ba
refs/heads/master
2020-06-20T19:56:33.943359
2019-08-20T14:18:25
2019-08-20T14:18:25
197,229,621
0
0
null
2019-07-17T18:49:26
2019-07-16T16:26:51
Python
UTF-8
Python
false
false
204
py
test.py
#!/usr/bin/python import unicornhathd unicornhathd.rotation(180) unicornhathd.set_pixel(0,0,255,255,255) unicornhathd.set_pixel(1,0,200,200,200) unicornhathd.set_pixel(5,5,255,0,0) unicornhathd.show()
b02693092e1ca0260b149ce6d27d46cf2e664992
fab347763581bc769592cb55551ee0d4f664d41f
/part03-e02_first_half_second_half/first_half_second_half.py
9d092dc0459f502286d27eaa42cbf926bcc3e839
[]
no_license
hangnguyen81/HY-data-analysis-with-python
84f2eb66dcd6fd36661ef9aa987c55a407a04753
c94d09f548bcbeed7a8c8389fb6e2faff7c50c00
refs/heads/main
2023-07-13T21:20:21.491345
2021-08-24T05:32:06
2021-08-24T05:32:06
375,337,364
0
0
null
null
null
null
UTF-8
Python
false
false
1,156
py
first_half_second_half.py
#!/usr/bin/env python3 ''' Write function first_half_second_half that gets a two dimensional array of shape (n,2*m) as a parameter. The input array has 2*m columns. The output from the function should be a matrix with those rows from the input that have the sum of the first m elements larger than the sum of the last...
800e38eef968f5fed8a10240719016986d6b39c6
ea0bfe74fee2aa3bc1bac3f8b7fba60346fa4e7c
/scratchai/nets/blocks/bnconv.py
cd00b63c47f5d07e869bf549681c4e584a5250e6
[ "MIT" ]
permissive
y0un35/scratchai
0f80fa0ae4b1acb574c808268c060505609acbc5
f534bdd13ce0efd26d1e3ab423a98f0b2cdcd938
refs/heads/master
2020-05-30T16:49:39.354963
2019-06-02T12:45:29
2019-06-02T12:45:29
189,856,708
2
0
MIT
2019-06-02T14:30:58
2019-06-02T14:30:58
null
UTF-8
Python
false
false
2,064
py
bnconv.py
import torch import torch.nn as nn def bnconv(in_channels:int, out_channels:int, kernel_size, stride, padding:int, bias:bool=False, eps:float=1e-5, momentum:float=0.1, conv_first=True, act:str='relu', nslope:float=0.2, norm:str='batch', inplace:bool=True): ''' This...
9845759ef55d390d263b338eab4366e430a57180
a0f31139e4d7f21f55180ecdc55b3d1aa6ba52da
/HackerRank/insertionSort.py
e945bb80f4821ca55e73184da93a7f1581c28256
[]
no_license
kristianeboe/Kattis
33916e9a4c1b156e328e874fb3268bf407e0be44
072d5112bbfed9bb7e3777aae487c532fb1360f1
refs/heads/master
2021-01-20T02:47:44.678837
2018-03-17T13:36:28
2018-03-17T13:36:28
33,137,028
0
0
null
null
null
null
UTF-8
Python
false
false
318
py
insertionSort.py
def insert(array, el): for i in range(len(array)): array_el = array[i] if el < array_el: array.insert(i, el) return array.append(el) def insertionSort(arr): sortedArray = [] for el in arr: insert(sortedArray, el) return sortedArray arr2 = [2,1,4,3] print(insertionSort(arr2))
417f6b1018b031ff27178bacfbdb765fb26f329f
69a8d11babb2cb2f947850fe97f0300aff5a5424
/src/website/views.py
fbf0caaf3786724651d3539472fc2baa7be6c55c
[ "MIT" ]
permissive
sbshah97/NITK-Student-Council-Website
342ec98d13df9643ec7fb52426d764a83b88348d
6cd62aeb1d50358d516739dc2559cd41811f1dec
refs/heads/master
2023-01-04T12:33:47.450991
2017-06-17T07:34:25
2017-06-17T07:34:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,972
py
views.py
from django.shortcuts import render, get_object_or_404 from .models import * from django.views import generic from django.core import serializers from django.core.mail import send_mail import json from django.conf import settings # Create your views here. class AboutPage(generic.TemplateView): template_name = "abo...
54683efa02b881768cec105827ee9a51eb9fdca5
052a79ad40a65375aa964a1cd1ce773e4b53788c
/ExploratoryAnalysis.py
6186742cbf9833734e03f2ff321719fb023cdf30
[]
no_license
intimantripp/Homelessness-Investigation
f03cf5a88e5482e6bf64db0dc213d038739f427b
1f8be46780646e0d9a290f1dd43f47e93add0401
refs/heads/master
2020-07-04T17:55:24.571617
2019-08-14T14:55:56
2019-08-14T14:55:56
202,362,411
0
0
null
null
null
null
UTF-8
Python
false
false
24,743
py
ExploratoryAnalysis.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Jul 30 16:51:16 2019 @author: intimantripp """ import os import pandas as pd import matplotlib.pyplot as plt import numpy as np from matplotlib.pyplot import figure from math import isnan ################################################## ...
c682f8308db543567e99c95f148a2c304da524c5
49ca55e4f37da5ccface71ccdaf084be5f917620
/treelog/_io.py
31138b79d3ec474dd0c49e48ec04cc58b0cce337
[ "MIT" ]
permissive
evalf/treelog
d47cbd34a3a6e3e9601c2b61e6912dd290faa6cf
7e40d3be48130679215185526ed5a4a8e9098784
refs/heads/master
2022-09-09T13:50:52.840904
2020-10-15T12:07:36
2020-10-15T12:07:36
152,457,416
0
3
MIT
2022-08-17T19:13:59
2018-10-10T16:46:16
Python
UTF-8
Python
false
false
4,569
py
_io.py
# Copyright (c) 2018 Evalf # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, s...
1c94203be059f13b5fa3dd43f7d73ae25cd9c61e
d6d17eec474b0a5941eea83ebc3a1da41fe17876
/wizard/migrations/0047_auto_20160913_1432.py
c0431259801b722815900770a693de1b53f43d2f
[]
no_license
codalab/chalab
97d37df83b3477f10a59109045ecd863d19334aa
e0c47362a9769f06db52022648ef7fb3fd3cbba0
refs/heads/develop
2021-10-23T08:37:18.064537
2017-12-14T17:55:20
2017-12-14T17:55:20
64,916,742
0
3
null
2017-12-14T17:55:21
2016-08-04T08:21:55
JavaScript
UTF-8
Python
false
false
496
py
0047_auto_20160913_1432.py
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-09-13 14:32 from __future__ import unicode_literals from django.db import migrations import tinymce.models class Migration(migrations.Migration): dependencies = [ ('wizard', '0046_auto_20160913_1420'), ] operations = [ migration...
5fbe2d76add961ea8a5ce15963f42a6d64c1ea0d
45bf82c11f4aeed557d02e0253b887702ee013b0
/baiduHotClawer.py
c44ee09de455e65716af0e547fbf9aa16f12ffb2
[]
no_license
WangBigSong/hotClawer
2fb439f79b3e7cb055e6aa8d7b0eda366d746e93
bcc42faa56f7ffcccbbd5b22a9833659a8f7dec3
refs/heads/master
2020-03-25T22:29:44.958804
2018-08-10T02:24:29
2018-08-10T02:24:29
144,225,938
0
0
null
null
null
null
UTF-8
Python
false
false
2,211
py
baiduHotClawer.py
''' Created on 2018年5月31日 @author: big_song ''' import selenium.webdriver from selenium.webdriver.common.by import By import time ''' 获取百度热搜关键字 ''' def getBaiduKeyWord(Kword,url): keyWordlist = []; driver = selenium.webdriver.Firefox(); driver.get(url); # 程序睡眠2秒 等待页面加载完毕 time.sleep(2); # 解析元素 ...
2bdb82bfd9081fb7e8bcd6221a1af49343053423
64261553066b91dd774f3e051658f83fd41dc415
/CountOFMatchesInTournament.py
a1443eddf2725eaba502bf7e5e70db950f57d16e
[]
no_license
sahilshah1610/LeetCode
1b5ec827cce3c4d66eda24fd16a1d7266ff8fc47
28e65a2caba7cf0c757195f76bcaf17e8dd28419
refs/heads/master
2023-03-02T15:36:15.325209
2021-02-12T01:48:15
2021-02-12T01:48:15
314,371,688
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
CountOFMatchesInTournament.py
class Solution: def numberOfMatches(self, n: int) -> int: matches = 0 while(n!=1): if n%2==0: matches += n//2 n = n//2 elif n%2!=0: matches +=(n)//2 n = (n-1)//2 +1 return matches if __name__ == "__ma...
5a0b489d6adee826295a5a275787ba798d3bbd36
d8e485f86f0791f82866d5370af22d745bb5da92
/PySpark - Sentiment Analysis & Text Analytics.py
a1c0f394219e7b20133eb30a9dfddf92d9e3b456
[]
no_license
github-jakechen/Data-Science-Projects
49305cdf231c214aee5306140e2787c836406ac4
33d4542db931232de2020768fbe473aa01339241
refs/heads/main
2023-02-20T02:18:26.358006
2021-01-18T18:29:45
2021-01-18T18:29:45
315,726,330
0
0
null
null
null
null
UTF-8
Python
false
false
22,582
py
PySpark - Sentiment Analysis & Text Analytics.py
# Databricks notebook source # MAGIC %md # MAGIC ###### Notebook by Jake Chen (Team Richmond) # COMMAND ---------- #Import master data df_eda = spark.sql("select * from mma2021w_richmond.df_eda") display(df_eda) # COMMAND ---------- #TF-IDF final_df = df_eda final_text = 'unigrams' #CountVectorizer #minDF speci...
66e31f62bb6ae6d6339bec96308127a239ab13ca
7161adf78940ba1ae335872d3b31e8c63d623289
/Nivel_003/Clase_003_A/003_A_002_Clase_VariablesGlobalesYLocales.py
c8df45aa278ffff2ea85d7d64a88f3832c576ecc
[]
no_license
AntonioCenteno/ClasesInformatica_AntonioCenteno
8da0d77797c65f28aa9a0e74a57bcc7c9076de81
392f21dbdcce6a5dbc404f213ae5ad0e4b0ae298
refs/heads/master
2023-07-03T11:28:04.808335
2021-07-29T10:51:08
2021-07-29T10:51:08
263,312,346
0
0
null
null
null
null
UTF-8
Python
false
false
8,893
py
003_A_002_Clase_VariablesGlobalesYLocales.py
import random import math # Ejercicio 1 Variables Globales y Locales q, r, t = 2, 4, 6 # estas variables son globales def area_de_rectangulo(): base1 = 10 # estas variables son locales altura1 = 15 area_1 = base1 * altura1 print("El area de este rectángulo es: ", area_1, end="") return print...
9b65d6a0e13b9daf22463b6a0f67f19b98838cb3
0fdf71a535d87b5e49e5f5438221bf7baacbcc3b
/assistant/estate/__init__.py
be313943ec2d836c5973ee73bf1ab491fea1a502
[]
no_license
BliZzZzZarD/assistant
607903a0032fdb09a9ebc8e32bb0226f53debb92
9e19684990e2f2c0f291c7750d5f4e57b924dcdf
refs/heads/master
2020-03-19T02:35:30.392724
2018-05-31T22:43:12
2018-05-31T22:43:12
135,638,139
0
0
null
null
null
null
UTF-8
Python
false
false
61
py
__init__.py
default_app_config = "assistant.estate.apps.EstateAppConfig"
f4e870a6a69c95f9b8a13c0d939e133594c27621
14bc8bdc219ef449a512ae12828c209270514412
/Coding Theory/rest materials by cannor147 & ADevil000/theory/algebraic/binary.py
66e1ad823892498fd94e50eb27e6ac29e82c1b58
[]
no_license
ppv-vldmr/ITMO
a7d1858912e8b7f48b74dd7055887d9c39c13520
03aafeb575e209139d181c52758d76902447cd85
refs/heads/master
2023-04-13T05:39:04.913662
2023-04-08T07:22:22
2023-04-08T07:22:22
231,659,824
15
12
null
2022-06-19T01:39:51
2020-01-03T20:25:57
Jupyter Notebook
UTF-8
Python
false
false
2,175
py
binary.py
import numpy as np class Binary: def __init__(self, value): self.value = 0 if value == 0 else 1 def __add__(self, other): return self ^ other def __neg__(self): return Binary(self.value) def __sub__(self, other): return self ^ other def __mul__(self, other): ...
fface5c0cc1e62370e935ade45ee2466f8665931
8c0484c25344ce96323dc8cc25c4ee192a8a8915
/contacts/models.py
609b9c2b171191fe74792605aa0f4739b2cc30f0
[]
no_license
inglesp/lens
21ef1be56179e74a1377b5e79a717e2f927cec60
d3c32299113a5b46f01f87068c4c82b78932a87c
refs/heads/master
2021-01-22T02:58:48.701847
2017-01-04T10:47:36
2017-01-04T10:47:36
18,075,982
0
0
null
null
null
null
UTF-8
Python
false
false
4,138
py
models.py
from django.db import models from django.db.models import Q from haversine import haversine from . import utils ADDRESS_FIELDS = ['Street', 'City', 'State', 'ZIP', 'Country'] class AddressesManager(models.Manager): def get_queryset(self): return super(AddressesManager, self).get_queryset().select_related...
24075fdcb74dc52b20824081b53b1c155fec6cf4
7d2c639e6631152db6e3cb76b49420bd09025754
/migrations/versions/ef0228200a84_.py
5ad9c2b10ebf821f6e43ee472c764e9a102b8f64
[]
no_license
Stamper/virality
3cdbd98801ee90ce92562bdfc151ad0797c9551b
a555da2f7121090d4f2816df32c876db7cf4adac
refs/heads/master
2023-05-13T00:33:46.251686
2020-05-19T10:12:40
2020-05-19T10:12:40
217,740,137
0
0
null
2023-05-01T21:17:18
2019-10-26T16:50:27
Python
UTF-8
Python
false
false
1,098
py
ef0228200a84_.py
"""empty message Revision ID: ef0228200a84 Revises: 0a936c4a9d64 Create Date: 2019-10-26 14:19:52.151019 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'ef0228200a84' down_revision = '0a936c4a9d64' branch_labels = None depends_on = None def upgrade(): # ...
92f08ad97bb2608a7167d9e95cbeb9319893f5ab
82954ee2ba7e823b54c330714b33b3c994eef11c
/team/forms.py
792498de8d9e09c8031f6f231e1e2720c9171f93
[]
no_license
frombegin/xxxz
543e2e5546847cae899347986ce1e38859eae4fd
bb8b453789d20afe2b59f8da7af8e7809e8c5684
refs/heads/master
2020-06-05T17:05:35.958289
2015-07-03T16:04:00
2015-07-03T16:04:00
38,394,885
0
0
null
null
null
null
UTF-8
Python
false
false
586
py
forms.py
#!/usr/bin/env python # -*- coding: UTF-8 -*- from django import forms from django.utils.translation import ugettext_lazy as _ ## from .models import YourModel class YourModelForm(forms.ModelForm): pass ## def clean_yourfield(self): ## return self.cleaned_data["yourfield"] ## class Meta: ## ...
46b72c59b9ac526ec066b5be7527d51a212a7647
f49b1ac89b80deb4be4c0ca91b6d3bf35394d406
/PlotDegreeDist.py
e0fa82b4dcfc6185990f1e8ca8db2782ec770984
[]
no_license
graemediack/uni-project-networks
586a42115fa80c17b872a82a0cc6911c28c1d9fc
4b56a1e961167d2c56a990cdefb6524597f5ff41
refs/heads/master
2020-11-27T03:46:41.924841
2019-12-20T21:50:47
2019-12-20T21:50:47
229,292,215
0
0
null
null
null
null
UTF-8
Python
false
false
3,955
py
PlotDegreeDist.py
# -*- coding: utf-8 -*- """ Created on Wed Dec 12 22:39:26 2018 @author: graeme """ #function to create some informative plots def plot_graph(G): degree_sequence = sorted([d for n, d in G.degree()], reverse=True) degreeCount = collections.Counter(degree_sequence) deg, cnt = zip(*sorted(de...
4cc2afd9d65909fdb48f0c572233ec97ec088307
9e9449fb7780de4e86a5ff4964e30bc2cf90f5ab
/Site/app2/urls.py
5948bdb062bf5aa27ce7cff6afc66ca663570805
[]
no_license
ombri/Projet3
4459b512ad1e97f9263e9197d4c2d0b618a8d11a
fe269682085ff27eee5c1455f63f6394cb9c6809
refs/heads/master
2023-06-05T00:15:34.779604
2021-06-24T08:13:21
2021-06-24T08:13:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
486
py
urls.py
from django.urls import path from . import views_forum, views_streaming urlpatterns = [ path('episodes/<str:page>', views_streaming.epList, name="liste des épisode de OP"), path('stream/<str:ep>', views_streaming.stream, name="page de streaming des épisodes de OP"), path('addInForum/', views_forum.addInF...
c073f73cd319d594f2a4af124aa025a1e2b4c128
d16455db8c07ed3caf7e311425f3e5a3dca664a3
/strategies/strategy_base.py
c72f0f0704d62e16cd0ca01b5224b9692f124b54
[]
no_license
h3ct0r/StarcraftNash
74411b2f127fa9fa75aaa04279b817c224396190
f0c667afc3425a4a6d656f79bff731994e942c65
refs/heads/master
2021-01-18T01:25:45.360510
2017-10-20T15:42:27
2017-10-20T15:42:27
59,242,481
7
3
null
2017-02-13T12:43:04
2016-05-19T21:02:23
Python
UTF-8
Python
false
false
5,250
py
strategy_base.py
from abc import ABCMeta, abstractmethod __author__ = 'Hector Azpurua' class StrategyBase(object): __metaclass__ = ABCMeta # codes for possible match results DEFEAT = -1 DRAW = 0 VICTORY = 1 # static list so that every strategy can use the same bots # (the list is initialized here but ca...
a3c4633c88ae13a9f815cc08e060e8003f24d3be
96c0b6b556cc9059f35b3ed58ae76f3c5479a004
/ppp/models.py
baf3845d60a294ae7c8fb607497086aff3e50c5f
[]
no_license
ankur8699/myfirstrepo
6a4a46fc7361a0a5241667e8d688e25a935ea195
fcc361f271c3e8febd2430da135ca7c682df6c52
refs/heads/master
2023-03-30T16:01:21.798968
2023-03-18T17:51:37
2023-03-18T17:51:37
263,557,049
0
0
null
null
null
null
UTF-8
Python
false
false
231
py
models.py
from __future__ import unicode_literals from django.db import models class Student(models.Model): first_name=models.CharField(max_length=30) last_name=models.CharField(max_length=30) image=models.ImageField(upload_to='media')
69b8d2ae508cb89d950d992db920f7942918ee99
9d2a9974e55ba5ebf682e616799c11f7946635a2
/foo/lc/leetcode/editor/cn/[845]数组中的最长山脉.py
a83c022724d91c65aa15ea7a048934bb0127346d
[ "MIT" ]
permissive
JaeCoding/keepPying
8ac973657c8d20c9f76712c59689441824f315be
5bf07b34a6c63e9a6bd2b39c17149adb2dc59570
refs/heads/master
2021-07-21T20:01:04.700283
2021-02-13T09:16:13
2021-02-13T09:16:13
242,554,343
1
1
null
null
null
null
UTF-8
Python
false
false
2,170
py
[845]数组中的最长山脉.py
# 我们把数组 A 中符合下列属性的任意连续子数组 B 称为 “山脉”: # # # B.length >= 3 # 存在 0 < i < B.length - 1 使得 B[0] < B[1] < ... B[i-1] < B[i] > B[i+1] > ... > B # [B.length - 1] # # # (注意:B 可以是 A 的任意子数组,包括整个数组 A。) # # 给出一个整数数组 A,返回最长 “山脉” 的长度。 # # 如果不含有 “山脉” 则返回 0。 # # # # 示例 1: # # 输入:[2,1,4,7,3,2,5] # 输出:5 # 解释:最长...
3750a59120b0c4c617973529e2ba264df7d73540
0cf9b2a34e38457ad41bc48593db08199622a5c8
/music_app/migrations/0006_auto_20210318_2208.py
8c08f18b3c79defe5f1058cb2efe218e559223ff
[]
no_license
PPNG06/spotify_app
73870634e73c76af77d80f9990f5b71966572554
75e35a5c5bda8f56ebebdcfa42ca5533c7f6f159
refs/heads/master
2023-04-24T01:55:00.715300
2021-05-07T16:52:25
2021-05-07T16:52:25
365,297,593
0
0
null
null
null
null
UTF-8
Python
false
false
435
py
0006_auto_20210318_2208.py
# Generated by Django 3.1.7 on 2021-03-18 21:08 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('music_app', '0005_auto_20210318_2205'), ] operations = [ migrations.AlterField( model_name='music', name='mood', ...
90e71c80e3369b72f4181ccbb073302c419b4db8
fa2b304736f13332ea1aa7dceaff63e02e29e31e
/main.py
9730e5e4d7b8e9bfcdf2dfc11bc6a6d9b7102643
[]
no_license
yangpeicheng/python-offline-handshake
a141edec15821baca58eea9168d6920472a43009
bf583caf5874a99d95a5ff88e02f6fa1c2484940
refs/heads/master
2021-09-04T20:34:47.348329
2018-01-22T06:06:18
2018-01-22T06:06:18
104,427,055
0
0
null
null
null
null
UTF-8
Python
false
false
267
py
main.py
from subData import instanceOfSubdata from transform import instanceOfTransform from pca import instanceOfPca from compare import instanceOfCompare if __name__=="__main__": instanceOfSubdata() instanceOfTransform() instanceOfPca() instanceOfCompare()
6195d917f9e2bc129936a466b210616efaa3dc27
837377dc4df28263a61ee4af32514b52f3beb976
/scripts/value_iteration_networks/envs/object_world.py
1cdfedac118d894c80a2d2fdd57a6530e06c428c
[]
no_license
aoyan27/reinforcement_learning
2279a36c1ba0cec1f4e254af71ebb6e6431b5636
9170e9e720e0e1a541b586465e01bd89555d27f2
refs/heads/master
2021-09-08T01:21:53.630653
2018-03-05T03:19:59
2018-03-05T03:19:59
100,631,850
0
0
null
null
null
null
UTF-8
Python
false
false
15,895
py
object_world.py
#!/usr/bin/env python #coding:utf-8 import numpy as np import copy class Objectworld: def __init__(self, rows, cols, goal, R_max, noise, n_objects, seed=None, \ object_list=None, random_objects=True, start=[0,0], mode=0): np.random.seed(seed) self.mode = mode # mode...
416b191bbbba01125a7e751c0f38375fadb0159b
aec246ec60cd0e26fa3b43e0ce7514ae2adde812
/my_exercises_on_builtin_functions/eval.py
502926fb3e4188497d88181359ff63a312459550
[]
no_license
marcinsieciechowicz/Lessons-Related-to-My-First-Django-App
12b84e495d577efdd578881c16e2de97d2087652
e453f8ce358e3a719b2c0f93b1506ba60ec0d699
refs/heads/master
2020-09-03T22:10:51.760796
2020-03-23T00:59:55
2020-03-23T00:59:55
219,585,513
0
0
null
null
null
null
UTF-8
Python
false
false
152
py
eval.py
# syntax: eval(expression, globals and locals are optional) # example: from math import * argh = 1 print(eval('argh + 1')) print(eval('dir(), {}'))
acc76becf9ea8f8001b3e94d24c210150592a783
3431eeb9b601c672dad490ed7fd8e322bd4202e1
/M5/try_except_2.py
8f4e117d86e2fb83ccfa8419c55cd197b2b7e975
[ "MIT" ]
permissive
DouglasCarvalhoPereira/Interact-OS-PYTHON
1ae814e11a828c6ae028063c00bc1af674bd83a0
2405d34a0624f1e1277399c936d87d444cf0a7d6
refs/heads/main
2023-08-28T04:56:46.002794
2021-10-31T21:35:47
2021-10-31T21:35:47
418,214,511
0
0
null
null
null
null
UTF-8
Python
false
false
335
py
try_except_2.py
#!/usr/bin/env python def valida_usuario(nome, mintam): assert type(nome) == str, "Sim, é uma string" if mintam < 1: raise ValueError("Digite mais caracteres") if len(nome) < mintam: return False if not nome.isalnum(): return False return True print(valida_usuario(...
4691d6afb0eaffd906f33de34113b6b24c5888bb
90316a40c1ca08bd9660e794d5199898a044b18f
/act/test.py
e6fa6e079ac8fb9addf0c8a10511d3a3d0469862
[]
no_license
tantailong/scenario_nlp
cb6f72a157343757a2ffc2a4a51f0eca2f9e083b
fdbaef6b98877d418e5c27acf315cfb7bc2fb7b7
refs/heads/master
2023-03-15T23:51:07.047804
2019-05-16T14:12:59
2019-05-16T14:12:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,686
py
test.py
#-*- coding:utf8 -*- import jieba import fasttext from segment import segment class InterfaceClassify(object): def __init__(self): self.model = fasttext.load_model("act/ft_classify.model.bin") self.topK = 1 self.label_prefix = "__label__" self.test_file = "act/data/intent_raw_test....
8e2428e48ab14f390f7157bd9eda5033e7f1e99a
c98e1a103faa18f7cb721607897466719f11642d
/examples/process_memory_dump_section_finding.py
2a4b7ff8386927fe0f19d3433b37899d662b87ed
[ "MIT" ]
permissive
J-T-de/sourcehold-maps
fff77c9c1c3cdfae8cae7817e39ed0e4e1f0affb
330ab1b3426dbd93b5de3b0c031419e54f6a1618
refs/heads/master
2022-12-08T23:32:40.874993
2020-09-12T17:57:32
2020-09-12T17:57:32
294,927,094
0
0
MIT
2020-09-12T11:08:31
2020-09-12T11:08:30
null
UTF-8
Python
false
false
3,473
py
process_memory_dump_section_finding.py
from sourcehold.debugtools.memory.common.access import AccessContext import pathlib def dump(name): process = AccessContext() pathlib.Path(name + ".dump").write_bytes(process.read_all_memory()) mapnames = ["a-resourceful-divide-rat", "craggy-cliffs-rat", "savegame-resav", "friedrich...
8d46fc313da5638f182eedeedf106230476bc28a
b1599f517e62c6651c930c28c430ac3ff7d52bb9
/docs/example_scripts/rerun_submission.py
7d4642cd4475baff724e61de6d953f22d516352f
[ "Apache-2.0" ]
permissive
HunDeMingMingBaiBai/competitions-v2
4d9ef93f14a3bc43c582c67b62904c6bcf0c19fb
745b56274ada40b78cda6e91dd762f2d547cd841
refs/heads/develop
2023-08-11T06:02:49.780503
2021-09-09T04:39:42
2021-09-09T04:39:42
377,348,778
0
0
Apache-2.0
2021-06-16T02:32:30
2021-06-16T02:32:29
null
UTF-8
Python
false
false
6,483
py
rerun_submission.py
#!/usr/bin/env python3 """ Overview ======== This script is built to guide a user through the selection of both a submission id and a task id. These ids are used to demonstrate the ability of a robot user to re-run a submission on a specific task. This can be used to enable clinicians to run pre-built algor...
5d196f9a096b63d396ed655c46fc3023b2d58908
7041c85dffb757c3e7063118730363f32ebb9b8a
/Algorithm/python 파일/20190129/민수오빠 회문2.py
eb0508ff693c83479211a2a1d7682a80291b66a8
[]
no_license
woonji913/til
efae551baff56f3ca16169b93185a65f4d81cd7a
a05efc68f88f535c26cb4d4a396a1e9cd6bf0248
refs/heads/master
2021-06-06T23:17:54.504620
2019-06-19T04:29:18
2019-06-19T04:29:18
163,778,844
1
0
null
2021-05-08T16:27:17
2019-01-02T01:08:19
HTML
UTF-8
Python
false
false
1,587
py
민수오빠 회문2.py
import sys sys.stdin = open("회문2_input.txt", "r") T = 10 for tc in range(1, T+1): # 데이터 받기 N = int(input()) data = [[0 for x in range(N)] for x in range(N)] for i in range(N): data[i] = list(input()) # print(N, M) # print(data) # 행 방향 탐색 for x in range(len(data)): row = []...
0072214e4c2c989a00c09bf85177d711f523d6bf
9aa204acc0324f0702d2a64d9c8305f5171612ce
/backend/hospital/disease/models.py
e326c89339f4e0d9565d084ad8a54ff7b6922795
[]
no_license
saijalshakya/hospital
46d4c4925d5e0479df6e96c282d19ff8d6679d14
f41e691522e363ae850cc8209c886f9c65f94680
refs/heads/master
2020-04-22T16:40:20.991693
2019-02-27T04:51:27
2019-02-27T04:51:27
169,699,277
0
0
null
null
null
null
UTF-8
Python
false
false
1,114
py
models.py
from django.db import models from doctor.models import Doctor from django.utils import timezone from django.urls import reverse # Create your models here. found_choice = ( ('i', 'Inside KTM Valley'), ('o', 'Outside KTM Valley'), ('w','Whole Nepal') ) status_choice = ( ('1', 'Publish'), ('0', 'Un...
b507e79c991821dbd323483be4da6fa61ff3483c
0809cb46e11b8ddfecd43dcd136e4cc6e2f62226
/src/psnawp_api/core/psnawp_exceptions.py
c3c81bc961904ae970a3cb8bcb536c94d9b636c3
[ "MIT" ]
permissive
Awmusic12635/psnawp
6c0187d071061474020e0596701ef4a32626ebef
1d392d49e671df1c7326879a965aea94bb4a119c
refs/heads/master
2023-09-04T03:55:46.616051
2023-08-25T03:06:51
2023-08-25T03:06:51
359,964,569
0
0
NOASSERTION
2021-07-21T00:38:25
2021-04-20T22:16:39
Python
UTF-8
Python
false
false
1,054
py
psnawp_exceptions.py
class PSNAWPException(Exception): """Base Exception for all PSNAWP Exceptions.""" class PSNAWPAuthenticationError(PSNAWPException): """Exception for authentication related errors.""" class PSNAWPBadRequest(PSNAWPException): """Exception raised if bad request is made to the endpoint.""" cla...
c752348b11435a88cb8c6e22d81e17d9f61fbb09
c145403a053ce86f6b91e5995e7b4f4adb0b08f0
/full_pedigree/config.py
c8f98ed5032999286b920858250597cffb2955cb
[]
no_license
froocpu/kennel-club
be38de003deb730ca254090dbbfed9544e20ced3
4faac6556c0baf7737215508877e203ffe05de5f
refs/heads/main
2023-03-17T04:18:37.213499
2021-03-08T09:57:48
2021-03-08T09:57:48
344,417,929
0
0
null
null
null
null
UTF-8
Python
false
false
108
py
config.py
# Elton! DEFAULT_STARTING_DOG = "10673831-d354-eb11-a812-000d3a874bc8" DOG_DICT_LOCATION = "doggy_dict.json"
539e6e251f596acd9cce317d36218ed1ebb3128d
7acc8aa7dd1c94dd7a25e51de3319d932f315396
/src/derail/algorithms/stable_baselines.py
94b4e401e9bea506bec2e87eec469411651153fc
[ "MIT" ]
permissive
HumanCompatibleAI/derail
0d04acc1f39ffe44d35b4729217f2d167ade4f93
2b052602be78d189ac94f27ce971818488215729
refs/heads/master
2023-01-21T20:43:47.227489
2020-12-03T23:08:09
2020-12-03T23:08:09
270,723,295
0
0
null
null
null
null
UTF-8
Python
false
false
1,490
py
stable_baselines.py
import uuid from stable_baselines import GAIL from stable_baselines.gail import ExpertDataset, generate_expert_traj from derail.utils import ( get_horizon, get_ppo, get_raw_env, LightweightRLModel, sample_trajectories, ) def get_expert_dataset( expert, venv, total_timesteps, ): filename ...
ca931913e9519a9720b374c161534bf0c5bb23b6
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2698/58586/268731.py
5655c96700fe45e7ce822798e8ba3a8b3de8439d
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
220
py
268731.py
[n,d]=list(map(int,input().split(" "))) if d==0: print(1) else: f = [1, 1] s = [1, 2] for i in range(2,d+2): f.append(s[i-1]**n-s[i-2]**n) s.append((s[i-1]+f[i])) print(f[d],end='')
8495789878ba39643c5f421f8512a5f4bf330bfc
9191aa4c8d6e91d41686c07a5ca495f04593922d
/Room.py
545a85524e722c1fbb2c8ae0ce86b3119d2b4c5c
[]
no_license
yshah2232/BOUTIQUE-HOTEL-DEVELOPMENT
a7c3e707652454297550e3d70a853542c6210ea8
171e2c9a5aac164ce83981dbc87c23cc32acede3
refs/heads/master
2020-05-05T12:48:09.945357
2019-11-18T21:11:55
2019-11-18T21:11:55
180,045,540
0
0
null
null
null
null
UTF-8
Python
false
false
2,859
py
Room.py
#!/Users/sinch/AppData/Local/Programs/Python/Python37-32/python print("Content-Type: text/html") print() import cgi,cgitb cgitb.enable() #for debugging form = cgi.FieldStorage() RID = form.getvalue('RID') FLOOR = form.getvalue('FLOOR') ROOM_TYPE = form.getvalue('ROOM_TYPE') NO_OF_BEDS= form.getvalue('NO_OF...
71edc7d1e37fca9ae34a57da106671e23b104bc6
271cf0945f0f360ffdb04d54fff76579c17413b4
/Deep_CNN_generate/train.py
39cd931db5942c6447b91a3ea9f72bb91f6291b7
[]
no_license
kignlo/Cifar10-Classify
af7df7ac29859f5163ecafeffa4ab4ac7587af01
4c545122fb54b329df0f19c0ea7d66bda0fc178a
refs/heads/master
2022-03-18T02:05:36.842656
2018-11-27T12:42:59
2018-11-27T12:42:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,234
py
train.py
# -- coding: utf-8 -- import tensorflow as tf from keras.models import Sequential from keras.layers import Dense, Dropout, Activation, Flatten from keras.layers import Conv2D, MaxPooling2D, ZeroPadding2D, GlobalMaxPooling2D import keras from keras.datasets import cifar10 import matplotlib matplotlib.use('Agg') import m...
7dc54438dad6fdf308eec7f229a62ead8bc2f68b
9d278285f2bc899ac93ec887b1c31880ed39bf56
/ondoc/api/pagination.py
0fd91fa866aa2ca124e3233c48d1e0ac28d94b2d
[]
no_license
ronit29/docprime
945c21f8787387b99e4916cb3ba1618bc2a85034
60d4caf6c52a8b70174a1f654bc792d825ba1054
refs/heads/master
2023-04-01T14:54:10.811765
2020-04-07T18:57:34
2020-04-07T18:57:34
353,953,576
0
0
null
null
null
null
UTF-8
Python
false
false
876
py
pagination.py
def paginate_queryset_refactored_consumer_app(queryset, request, page_size=20): if request.query_params.get('from_app', False) and not request.query_params.get('page'): return queryset return paginate_queryset(queryset, request, page_size) def paginate_queryset(queryset, request, page_size=20): pa...
a662a753108fc9941001816c34ba765665af3afd
3386b353018dc0a7e0ee45e68e6ff0cc1e7a8ff4
/Testes/mainPDB-3.py
14820d16556e6297e9910ce946ccf9a72417f2b5
[]
no_license
mvackel/ClassProt
a129cc8c36fe8291eb8301d9679a037593e0d72c
37d5c5477787c807723db0e83e2230940b95f9ca
refs/heads/master
2021-09-06T09:43:38.933053
2018-02-05T03:05:14
2018-02-05T04:07:37
113,721,793
0
0
null
null
null
null
UTF-8
Python
false
false
3,419
py
mainPDB-3.py
# importing the requests library import requests import numpy from py2neo import Node from py2neo import Relationship from typing import List class PDBEntry(Node): def __init__(self, pdbId: str, title: str, ptype: str = '', organism: str = '', taxid: str = '', classif: str = '', ec: str = ''): self.p...
4d78dce3efad0ef9267e65830d6f521499f1477a
3f74096fed1e02f859c4fcd98cb8736ff810fd6e
/vol/down.py
6d52a72ca9cea45b497707981385dc94a04f29c1
[]
no_license
dookda/python_modis
9e7768f5ea56981e0220112a8c488213f3d82bff
bb40594e5cc0fddb86c304b0439c818ab9fe50e8
refs/heads/main
2023-09-04T22:28:58.323166
2021-11-03T05:07:02
2021-11-03T05:07:02
423,660,939
0
0
null
null
null
null
UTF-8
Python
false
false
353
py
down.py
import requests header = {'Accept': 'application/json'} # Use following for a csv response: # header = {'Accept': 'text/csv'} response = requests.get( 'https://modis.ornl.gov/rst/api/v1/MOD13Q1/subset?latitude=35.958767&longitude=-84.287433&startDate=A2018049&endDate=A2018049&kmAboveBelow=1&kmLeftRight=1', header...
4e814f36365a2ab503a7c7a54a5fcfa8f55f3ccf
8789f110054383d9623876f1807ff62e72ebba8b
/database_setup.py
9620e67175e3e93c46413882115529c5627cedd8
[]
no_license
Abdulmalik0x/catalog-app
76df4e2df20e219867843dbfc77b11699c9ed096
cbaa4c914250edbcbddbd49757d90508715b69cb
refs/heads/master
2021-07-15T21:33:54.083414
2019-11-03T17:30:28
2019-11-03T17:30:28
154,121,937
0
0
null
2020-05-20T16:46:27
2018-10-22T10:00:32
Python
UTF-8
Python
false
false
2,903
py
database_setup.py
from sqlalchemy import Column, ForeignKey, Integer, String from sqlalchemy.ext.declarative import declarative_base # from sqlalchemy_dao.model import Model from sqlalchemy.orm import relationship from sqlalchemy import create_engine import os os.chdir("D:/Documents/GitHub/Item Catalog App/") engine = creat...
aff4151225f8166d1614ba9f004687a5a0d43297
5fa5a44c373b4691bd4b29ffc1ada28d2573a718
/Mytest/基本操作/times.py
cfd55f227de5809c07098d64bdaecc1c804655a3
[]
no_license
yangtuotuotuo/OneWorkspace
7aaf4fe56a55f60e51033e0a2df22b40470fe27a
cf1127f9bc592628f91825746e5db767ac5f9097
refs/heads/master
2021-07-04T03:39:48.233764
2017-09-27T03:36:21
2017-09-27T03:36:21
104,963,455
0
0
null
null
null
null
UTF-8
Python
false
false
689
py
times.py
#-*- coding:utf-8-*- import time #获取时间,时间戳 print time.time() #获取本地时间 print time.localtime(time.time()) #格式化时间 print time.asctime(time.localtime(time.time())) #自定义需要的格式 print time.strftime("%Y-%m-%d %H:%M:%S",time.localtime()) #获取日历 import calendar cal=calendar.month(2017,9) print "以下输出2017年9月份的日历" print cal print...
fbc1746152c51ee28a1c1fcbdc773de06b304a17
13c293e4e7bfe1917c612da31bffd3d4f1ae44ba
/prod.py
b9c652ac24b7d3f64c4fd7eaf32d0356ccc7f22b
[]
no_license
Harinetha/myPrograms
f83948e0262b6bbf062ad5f24e5089f93b12d025
b591c6e41b0040421dca5fc3973bba4e58a7e38a
refs/heads/master
2020-03-17T13:58:03.581369
2018-08-03T12:41:07
2018-08-03T12:41:07
133,652,186
0
1
null
null
null
null
UTF-8
Python
false
false
204
py
prod.py
n=int(input()) b=[] prod=1 for i in range (0,n): k=int(input()) b.append(k) for i in range (0,n): for j in range (0,n): if(j!=i): prod=prod*b[j] print(prod) prod=1
ae14d3986fa135d842d8706dcde2c0c77615503a
17c5c5725503efdfdc30bfc843d30a2f7516c2a8
/Kurs/Diğer/python20182019pscarsamba9aoglen/!/24102018/HesapMakinası.py
ac14969b94795e1a1246a14e46e0a2a60edf4945
[]
no_license
ylmzsmh/python-calisma
f11c4e1618b0e9c050951a24ec74024702501337
0b6263569b6c95153026c653d906f1fedee3f158
refs/heads/master
2020-04-17T11:20:02.975444
2019-01-19T11:22:11
2019-01-19T11:22:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
904
py
HesapMakinası.py
from tkinter import * pencere=Tk() yeniFrame=Frame() yeniFrame.pack(side=BOTTOM) pencere=("200x500+500+100") dugme1=Button(yeniFrame,text="Toplama",width=8,height=2,padx=1,pady=2) dugme1.grid(row=0,column=0) # label=Label(text="\t") # label.grid(row=0,column=1) dugme2=Button(yeniFrame,text="Çıkarma", width=8,he...
9b0dc550805f99ff31d1a01ba75759d86ed66020
e545fb2aee13d67ed3de5d9a6bd12dba312e44bc
/tests/conftest.py
258001f9ab67a34010e17012e77ccf49689ddbe0
[ "MIT" ]
permissive
jpsenior/sphinx-execute-code
26b0ad8fecf88fae9641abe56d1f92d01d90a42f
04d8b5277d52eb9ec262e985e79f58424db1a985
refs/heads/master
2022-11-02T16:44:33.660075
2019-04-25T15:07:55
2019-04-25T15:07:55
98,958,821
22
19
MIT
2023-02-17T08:55:08
2017-08-01T04:20:28
Python
UTF-8
Python
false
false
379
py
conftest.py
#!/usr/bin/env python """ Set up sphinx pytest modules and fixtures """ import os import pytest from sphinx.testing.path import path # pylint: disable=invalid-name pytest_plugins = 'sphinx.testing.fixtures' @pytest.fixture(scope='session') def rootdir(): """ Sets root folder for sphinx unit tests """ return ...
79aa84c40e751ea9a08305b7d2725666ec907ae3
9d356a1ee6a57329a4b87c662bfdf0eaf48645a2
/handlers/__init__.py
3926dad29c79f61dfceeafae7383914036cc7c0d
[]
no_license
LuberLinder/telegram-autoregion-bot
078f79b0c01bbbccca0e624fa22ebf2e1aa50567
bb1e514593d5f7568307628b5f61a0171a058899
refs/heads/master
2020-04-02T11:32:06.203206
2018-11-05T19:55:39
2018-11-05T19:55:39
154,394,034
2
0
null
null
null
null
UTF-8
Python
false
false
81
py
__init__.py
from handlers.api import APIHandlerMixin from handlers.bot import BotHandlerMixin
f4d20ed20765aa2bb0b91bb0a20f5f5a95affb83
1f9a7e85ef65e4a1e30d951038aaec1992981351
/main.py
64e5415e4cd8de83b307d9f28b0abe067027783a
[]
no_license
phongcoiydbg99/toolMergeDict
aabd8daa011f4c8f7a5beef35f532c21dd17c963
379155ce822d08487c8b90f03938cef9c25d56b0
refs/heads/main
2023-06-21T14:02:45.698899
2021-07-28T03:28:06
2021-07-28T03:28:06
347,270,631
0
0
null
null
null
null
UTF-8
Python
false
false
10,124
py
main.py
from threading import Thread import copy import threading import readFile import writeFile import json import os, sys, mmap import time folder = "test" file = "11112020" path = "/media/phongnve/HDD/Guide/DictTool_0.2/DictTool/file/test/DicText/"+folder+"/" globalCounters = 0 UNIGRAM = [] NGRAM = [] UNIGRAM_DICT = {} N...
a2ae145af7e1e27d85d553f35c95823e295c8755
7a162353594a8419f2c95b16c78881bd130357de
/screenshot_helper.py
abb5ef8a735d1f5c935637f7312dd7ce2265a51f
[]
no_license
VikrantReddy/Picutre2Excel
b4aea3bd79ddc0c648a092f32dea86c359085ee6
6efe09ababfe78e98190966d43dd9d41a2bb01f2
refs/heads/master
2023-07-12T21:15:03.027595
2021-08-23T18:41:33
2021-08-23T18:41:33
389,838,643
0
0
null
null
null
null
UTF-8
Python
false
false
536
py
screenshot_helper.py
import pyautogui from pynput.keyboard import Key, Listener import os from datetime import datetime import time index = 1 date = str(datetime.today())[:10] def on_press(key): global index if key == Key.ctrl_r: time.sleep(1) pyautogui.scroll(-400) time.sleep(1) pyautogui.screens...
9b99768ef1d7cabc03d2469b0455b833872f45b6
9c0637448b44aa01de66b46fdf78daf6b22e7355
/Class/MobileNative.py
4055fb2860bb5f0b5c850495353e68947b8cd947
[]
no_license
AllStars04/Dawood
eb735f4662e30bd1c2b0236477cbc76e8c92c93d
b130df0c5d9e9586ad48926eae4c224aed7356b3
refs/heads/master
2022-04-09T20:15:23.194840
2020-03-15T18:06:29
2020-03-15T18:06:29
111,581,214
0
0
null
null
null
null
UTF-8
Python
false
false
6,442
py
MobileNative.py
from appium import webdriver from appium.webdriver.common.touch_action import TouchAction import Class.UserDefinedException import Module.Utility import Module.getMobileObject import Module.logger import Module.CleanUp from time import sleep import Module.Report import getpass Excep = Class.UserDefinedException.UserDef...
41ac59db141356ec3afc96f746615354cb1ac0cf
5bc50bb836fa7585c899494e3b0c50d613cc4ffe
/examples/pilot-api/example-pilot-compute-cloud.py
2f8d00ce3ea3772b1d48474b84e375f37a67ad80
[ "MIT" ]
permissive
alveraboquet/BigJob
c154b574ab8acd064c6ce2cc6de8866f63bf4662
edda2584f7c3ef7c9194380bb503bc295336ec04
refs/heads/master
2023-03-16T03:33:50.972319
2019-12-26T17:49:47
2019-12-26T17:49:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,378
py
example-pilot-compute-cloud.py
import sys import os import time import logging import uuid #logging.basicConfig(level=logging.DEBUG) #sys.path.append(os.path.join(os.path.dirname(__file__), "../..")) from pilot import PilotComputeService, PilotDataService, ComputeDataService, State from bigjob import logger #COORDINATION_URL = "redis://localhost:...
21914ef31e7e99589f0ddd537c06b6c661684324
e9fa537d12c24134f24ab8549d0084c1ab331b70
/flask-app.py
232515fc291d5cd83ba1fa9be024ce57628c0225
[]
no_license
dariusarnold/mazemaker
d26042f693e8ae4022e928768dcd308a4860060f
20bebcf69e596ac375b908e7ae7258cbd7d78a95
refs/heads/master
2023-07-13T03:15:15.002243
2023-07-11T17:59:33
2023-07-11T17:59:33
170,202,582
9
1
null
null
null
null
UTF-8
Python
false
false
1,808
py
flask-app.py
from flask import Flask, send_file, request, render_template import io from maze import generate_maze, MazeVisualizerPIL, CellIndex, masked_maze from create_mask_image import text_mask from PIL import Image, ImageColor app = Flask("mazemaker") @app.route('/') def index(): return render_template('index.html') @ap...
533ddeaec4bca3aec5c6f0024a905df075090bdc
0ba07a7a247e78e227b0e600f8d8b24bda40a746
/data/config.py
7726b48298660e2a37229fc7b4733944f52b7d3e
[]
no_license
Like6po/brawl_mafia
907664b91af7368ebd4414c297131930c972410b
f4313e07819159f225fa8ad293790cc37ce1d90e
refs/heads/master
2023-02-26T07:29:24.101755
2021-02-03T06:45:47
2021-02-03T06:45:47
328,423,481
0
0
null
null
null
null
UTF-8
Python
false
false
516
py
config.py
import os from dotenv import load_dotenv load_dotenv('.env.dist') qiwi_public_key = os.getenv("QIWI_KEY") vk_api_service_key = os.getenv("VK_API_SERVICE_KEY") qiwi_number = os.getenv("QIWI_NUMBER") qiwi_token = os.getenv("QIWI_TOKEN") BOT_TOKEN = os.getenv("BOT_TOKEN") admins = [os.getenv("ADMIN_ID")] MYSQL_HOST =...
18d39e3f74bc71b5a170c3244fd3975c1931baa9
b0ae5509279d3d88585425bbe6fe98aa639b3203
/dbert5.py
0ab7070f4bafb5a25be632b56ce07e9a0d858278
[]
no_license
hunbl/deeq-bert
a458ce5703262af91a5c8e1e98d6e5db348d0a49
26679fa3983e887e9c1806c1e1cb532f5d73442d
refs/heads/main
2023-05-30T04:46:53.655618
2021-06-24T06:49:49
2021-06-24T06:49:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
441
py
dbert5.py
# coding: utf-8 from transformers import BertForMaskedLM, FillMaskPipeline from tokenization_dq import DeeqTokenizer # model과 tokenizer를 읽어옵니다 model = BertForMaskedLM.from_pretrained("deeq/dbert5") tokenizer = DeeqTokenizer("vocab-deeq.txt") # pipeline을 생성하고 nlp = FillMaskPipeline(model, tokenizer) # task를 실행 text ...
f2b86c58a647d9b11851acf8eebe98652b930d4f
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03001/s197923361.py
628f7f252f364b22ad95a30ec700e8a741efbe66
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
121
py
s197923361.py
w, h, x, y = map(float,input().split()) s = w * h / 2 if x == w / 2 and y == h / 2: print(s, 1) else: print(s, 0)
7f1cc003de21f7901f035a201c42f5dd103954ef
f23708e78a3d7a268b35015230f1aa2e6958f16f
/Head Finding/head_finding.py
3b5d4b4d6f4ca1edc52cf93c22714d5886d160dc
[]
no_license
destinyson7/Dependency-Parser-Marathi
785be8cce7003b02d3da475eef1ff6d5e9b2aea3
3deac41d25c9a895ae5b903c765730b6e561a399
refs/heads/master
2022-06-18T08:45:13.460664
2020-05-07T13:52:40
2020-05-07T13:52:40
256,130,158
1
0
null
null
null
null
UTF-8
Python
false
false
3,984
py
head_finding.py
import json import re with open('./head_mapping.json') as fp: head_mapping = json.load(fp) # print(head_mapping) def find_head_of_chunk(chunk_tag, words): for tag in head_mapping[chunk_tag]: for i in range(len(words) - 1, -1, -1): if words[i][1] == tag: return words[i][0]...