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
710728e3326679136d3fef5509f1fa9e1d395bf3
3d5004210a0776bb5e52c8e5d430e97ffa061faa
/scripts/import_mgsq.py
590a736c019bf1311d569efb883920432676515d
[ "MIT" ]
permissive
ofu/brisbert
0bbbf63c40589e25e9761e3ae9fbcfa5bf4ff628
1d8105e91c3fac53e65882af0ba01bbb7186f424
refs/heads/master
2020-12-25T18:17:30.581318
2013-06-11T22:35:45
2013-06-11T22:35:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,850
py
import_mgsq.py
import sys sys.path.append('./') from datetime import datetime import transaction import csv import data.common as common import data.mgsq.models as models def to_unicode(s): try: return u'%s' % s except: print s common.init('sqlite:///bert.sqlite') with transaction.manager: with open('e...
a85d4b3d80beeff289d014a5d4406ce4d36e949a
4c13151645d2f68c910779fe8f7e9ca7e0f43ea4
/cartoon.py
a1b7d3f2572c8e58c9e847e4fc61dd2cafeba4a9
[]
no_license
Shantam010/PicCartoon
27729d80109f55a151b23b8bfafc5a7fb03dec25
adf51486801ff2aec3007c98e38d14d15fcf3eef
refs/heads/main
2023-07-16T14:08:10.442567
2021-08-28T16:18:24
2021-08-28T16:18:24
400,837,013
0
0
null
null
null
null
UTF-8
Python
false
false
641
py
cartoon.py
#Import liberary for operation import cv2 import numpy as np #Select the image for cartoonize image = cv2.imread("Pass.png"); #process for outlining the image fade = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) fade = cv2.medianBlur(fade, 5) outlines = cv2.adaptiveThreshold(fade, 255, cv2.ADAPTIVE_THRESH_MEAN_C,...
6ae0b2a3fbf546807a57d19c373c3d50f105fae3
406045fcb425ec1fb68d588683430d4d30f05c65
/Deploy/nba_games/nba_games/games_predict_single.py
c999a584b845e9946edf59e4dfa639d9659c571e
[]
no_license
firehelmet1/final_project
f8b4072819552a962ab3f124a95b209f86aa92c8
32f73e019995e7fd1f7b6cce2200a415b261c7e4
refs/heads/master
2022-12-20T21:46:41.357943
2020-02-04T20:55:14
2020-02-04T20:55:14
231,816,534
1
0
null
2022-12-08T03:28:55
2020-01-04T19:23:13
Jupyter Notebook
UTF-8
Python
false
false
4,335
py
games_predict_single.py
#Import Dependencies import numpy as np import pandas as pd from datetime import datetime, date from sklearn.model_selection import train_test_split from sklearn.ensemble import RandomForestClassifier from flask import Flask, jsonify, render_template from flask_sqlalchemy import SQLAlchemy import os import sqlalchemy...
6a555c5cd771f2b78c0375846b191dc6c3833e53
34aee4bb8e4ae0ddffacdfba2c5d66d0be3268ab
/emplome/web/views.py
d34bd49ff085fca53173690a3ab22f99320a81bb
[]
no_license
technomicssolutions/emplome
6ea07f144648a1e3c767dbff3fe6c336b25094f2
1121241cbeb96ad52296756667a806f80dc6e142
refs/heads/master
2016-09-05T18:08:25.154084
2014-05-05T12:33:22
2014-05-05T12:33:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
43,619
py
views.py
# Create your views here. import datetime as dt from datetime import datetime import simplejson import ast from django.shortcuts import get_object_or_404, render from django.views.generic.base import View from django.http import Http404, HttpResponse, HttpResponseRedirect from django.contrib.auth import authenticate,...
7ce285cc110a025f26ae364ed8c131b19003c2d4
25bfbef581c596efc5e4fa45e00302226c7d4174
/Baek_1753_1.py
3cf6b6729ed65589095e5016c77c42715402fedf
[]
no_license
rukipgus/Algorithm
1077afee5d829d0db46dd14ee40b42ca175d1922
30faa2f2ee62dc5a5c8a3e3c0ebfb67f09c10bbd
refs/heads/master
2020-07-30T04:10:54.313824
2020-05-21T05:08:26
2020-05-21T05:08:26
210,080,888
0
0
null
null
null
null
UTF-8
Python
false
false
640
py
Baek_1753_1.py
import sys from collections import deque import heapq v, e = map(int, sys.stdin.readline().split()) k = int(sys.stdin.readline()) a = [[] for _ in range(v+1)] b = [sys.maxsize for _ in range(v+1)] b[k] = 0 for i in range(e): x, y, w = map(int, sys.stdin.readline().split()) a[x].append([w, y]) q...
67678816a79ab4792133843da4132828650d25e0
5c06d00a6f4f4ec91b59fdcd45a3c6eae7f7c9ab
/drafts&testing/restart_training.py
ed352a6b0f03999de446f9ca30ef56febef7197f
[]
no_license
baesic/EfficientNet-for-Gun-detection
8d0bd18b97485fcc3428d4042fd5ad355b2784b6
bef9123cd99969ffcb37b98931d1192c42171e5d
refs/heads/master
2022-11-11T08:33:55.962990
2020-06-16T05:54:05
2020-06-16T05:54:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,744
py
restart_training.py
from __future__ import print_function, division import torch import torch.nn as nn import torchvision import torchvision.transforms as transforms import torch.optim as optim from torch.optim import lr_scheduler import numpy as np from torchvision import datasets, models, transforms import matplotlib.pyplot as plt impor...
a4f8dc2be387a624aee0c6b754f5d5295a2775c9
35a8461684846b6c3e6953ecfed274180082c39d
/tuples.py
1fa8adbb0af95e7d2441f7900de2adbb43892f81
[]
no_license
RNTejas/Intermediate-Python
da0eb6f89208519ce06670fc7f994a2874f2a4a8
0a17bdd7f6ad0be713119ed4bc675baa1db22af4
refs/heads/main
2023-03-18T15:41:23.841013
2021-03-08T07:25:26
2021-03-08T07:25:26
345,667,838
0
0
null
2021-03-08T13:35:31
2021-03-08T13:35:31
null
UTF-8
Python
false
false
222
py
tuples.py
# Tuple: ordered, immutable, allows duplicate elements import timeit print(timeit.timeit(stmt="[1,2,3,4,5,6,7,8,9,0,'Hello']", number=100000000)) print(timeit.timeit(stmt="(1,2,3,4,5,6,7,8,9,0,'Hello')", number=100000000))
52f3cd12357550cb26d1a8223f442c9d938d3dda
5c4ea2f08ce207c643d71cdaebfdb4f45f5cbcc7
/kikimr/public/api/protos/persqueue_error_codes_v1_pb2.py
933d8d63471b5ca74c0604ecd880380753090572
[ "Apache-2.0" ]
permissive
IIKovalenko/ydb-python-sdk
ba70aa67349d2caeaa2c8514108032acbfc10299
9be96de64555a6a917c60f80c78a97163b66b636
refs/heads/master
2020-06-01T09:10:37.098296
2019-06-06T17:40:22
2019-06-06T17:40:22
190,726,800
1
0
null
2019-06-07T10:36:19
2019-06-07T10:36:19
null
UTF-8
Python
false
true
6,200
py
persqueue_error_codes_v1_pb2.py
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: kikimr/public/api/protos/persqueue_error_codes_v1.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor...
2ffdda64b5e06208e6b64d24f8e10114bfee95b9
5025a78079adfcc470e7afed1a25340033d14238
/src/templatebot/slack/handlers/projectdialogsubmission.py
72e77df6eee98df96d80cb371b601b9abfda4d60
[ "MIT" ]
permissive
lsst-sqre/templatebot
17230ff851d6df8a1deefa5eb9b175725d779e0b
c65fae77113c019addac582018a0898ebd2b81b0
refs/heads/master
2023-02-20T17:20:16.235183
2022-09-12T22:29:13
2022-09-12T22:29:13
170,399,836
0
0
MIT
2023-02-13T20:01:02
2019-02-12T22:16:27
Python
UTF-8
Python
false
false
3,239
py
projectdialogsubmission.py
"""Handle a project_dialog_submission event after the user has filled out a dialog with template configuration. """ import datetime import json from templatebot.slack.chat import post_message, update_message from templatebot.slack.dialog import post_process_dialog_submission __all__ = ["handle_project_dialog_submiss...
bcb464de5799691b32b28e53767f0f97a5f63ebe
2e33a184cfee9124d43126498d4da0a0473837f9
/touch/migrations/0008_auto_20171216_1656.py
fabaaf54a3ca0b84318250f8a2fb936ce7de42df
[]
no_license
jieerliansan/mysite
a5c208438cb31f898fc7f43749213ae1ad9715d3
8bcb4cfdbaf639be1fe2ad1b4e43a26b8b299f6d
refs/heads/master
2021-08-30T07:01:49.079063
2017-12-16T15:44:59
2017-12-16T15:44:59
114,436,048
0
0
null
null
null
null
UTF-8
Python
false
false
1,548
py
0008_auto_20171216_1656.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-12-16 08:56 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('touch', '0007_auto_20171216_1341'), ] operations =...
fb90ffc6d932e9b4acc5be5d255d4ac528702414
da7eab32999822a614050f03b022e20de8fbfc89
/7.0-7.3/plugins/Code editor/icons/icons3.py
604dfcfa3b436cffe5acfa42cb360ae814fa9515
[ "Unlicense" ]
permissive
bruce30262/Python_editor
9c4eb3faf075b957f23d344f41bdedd24acc8d99
932e91aa7c63e3b0a5f2ffad1b66caa1be59319a
refs/heads/master
2022-05-05T00:33:55.073637
2022-03-13T16:32:10
2022-03-13T16:32:10
159,641,327
8
3
Unlicense
2021-02-12T11:24:04
2018-11-29T09:31:46
Python
UTF-8
Python
false
false
47,785
py
icons3.py
# -*- coding: utf-8 -*- # Resource object code # # Created by: The Resource Compiler for PyQt4 (Qt v4.8.7) # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore qt_resource_data = "\ \x00\x00\x09\x3f\ \x89\ \x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\ \x00\x00\x80\x00...
85be4ba981e07af9ad720b26b79aa9d51c8244a3
321d90e8cecd884c44608fef7a24d9055bd85c92
/tests/error_counter.py
109bf3a0ce90227b5ddf08c444ac1d2fda8fe1b6
[]
no_license
Edfame/TI_GROUP_WORK
c2968d78e8b808b8d37527ffeae97272dfbc595e
bf12d29921479440a379eab23b4245b0807b7a44
refs/heads/master
2022-03-27T12:44:59.136822
2020-01-19T18:27:18
2020-01-19T18:27:18
233,587,034
0
1
null
null
null
null
UTF-8
Python
false
false
285
py
error_counter.py
import sys with open(sys.argv[1], 'r') as file: info = file.read() error_counter = 0 for x in info: if x == 'A': error_counter += 1 print("File:", sys.argv[1], "\nErrors:", error_counter, "\nP(error):", error_counter / int(sys.argv[2]))
bcf1245f834847be68265040a5c92cf2ef95fb41
49eeedbf379e8d4bf650295408a494718d2b2f9d
/scraping/proxy_changer.py
f2beb4a829b8197701cbdd05ef51a8a8443f7b23
[]
no_license
foadyousef/moodytrails2
2394f355c6991df7a67cde4729294c6ae2f41239
17a3ab485046e0605af3ea00a62d806b3a4e628c
refs/heads/master
2020-07-15T14:36:53.893477
2020-01-27T23:08:06
2020-01-27T23:08:06
205,584,060
0
0
null
null
null
null
UTF-8
Python
false
false
306
py
proxy_changer.py
# Proxy setting in case need to change proxy my_proxy = Proxy({‘proxyType’: ProxyType.MANUAL, ‘httpProxy’: ’127.0.0.1:8118′, ‘sslProxy’: ’127.0.0.1:8118′, ‘noProxy’: ‘www.google-analytics.com, ajax.googleapis.com, apis.google.com’ }) browser = webdriver.Firefox(proxy=my_proxy)
67e26d2c23f3177cb6e1219cbf82a56370bf2810
49b027d25d1daa9563a0379117acd8ade005123d
/TestBlackjack.py
a2ad490b5e8defc8e7d8a170ca4845b2e224c421
[]
no_license
AaronScruggs/blackjack
a7f608cc5395369f6c5f0938fabbab3503246057
e5536582f25606a18cf37d07246e99e7755b2d32
refs/heads/master
2020-12-11T09:14:48.192982
2016-03-14T07:27:04
2016-03-14T07:27:04
53,612,447
0
0
null
2016-03-10T19:50:58
2016-03-10T19:50:58
null
UTF-8
Python
false
false
2,470
py
TestBlackjack.py
from Blackjack import HumanPlayer, ComputerPlayer, Game, Deck, Card from unittest import TestCase, mock class HumanPlayerTests(TestCase): def setUp(self): self.player = HumanPlayer() self.player.update_hand(Card("Clubs", "10")) self.player.update_hand(Card("Hearts", "6")) def test_cal...
b17cedff5898d864088e5071a23ee04597e81f73
833c4b608a438d20f1c41862c050863705d354ed
/tree_bark_synthesis/TextureByNumbers/init/edge_detector.py
08d17a651baaf84f7445b7dafd996964b5e57820
[ "MIT" ]
permissive
laitoch/tree-bark-synthesis
8ac62e9a2672e5ae76d1306f92db45304a8e0476
0bd43d6699d2e05f62d144f310874f986bbd91d2
refs/heads/master
2020-03-19T03:14:05.949335
2018-06-01T11:28:41
2018-06-01T11:28:41
135,707,874
0
0
null
null
null
null
UTF-8
Python
false
false
346
py
edge_detector.py
import numpy as np import scipy def edge_detector(image): """ 255 = edge; 0 = no edge""" laplacian = np.array([[0, -1, 0], [-1, 4, -1], [0, -1, 0]]) filtered = scipy.ndimage.filters.correlate(image, laplacian) for index,value in np.ndenumerate(filtered): filtered[index] = 255 if value == 0 el...
58294216b11c7f4ab4b0cc848c2ef3c1c38ed207
4f55e90e4a3bf94aae24d33a64664820f008f863
/controller.py
ab3f7289dffa8b09724480d0376f3bda21644fc3
[]
no_license
Vader05/Project_Delati
3ee822e2397cd371dc2825d10b81c21daefb18cb
7840686b184bf144fd33b3298fff6a82e3a13493
refs/heads/main
2023-07-17T03:15:11.511734
2021-03-23T04:21:25
2021-03-23T04:21:25
326,299,112
1
4
null
null
null
null
UTF-8
Python
false
false
2,610
py
controller.py
from dboperation import DBWebscraping from dboperation import DBOferta from dboperation import DBOfertadetalle from dboperation import DBkeyWord #JOSEF from dboperation import DBKeyworSearch class Controller: def __init__(self): self.dbwebscraping = DBWebscraping() self.dboferta = DBOferta() ...
e1bb4539655fc60c94c8ec2671e630d91b748498
6d70dbc339227e3553f6f41bc5e4f908b4dd76b9
/tmp/test_random_spawn.py
a886230a6dc2467e355f62683d13620cbdd95f5b
[]
no_license
Natchan03/419_Quad_Stabilization
84248f39649d8b93209d7cf9a03726412cd73ee1
ca6d800ca4451ab4f609cd5ebb18b5bdd1ea339e
refs/heads/master
2023-04-11T04:18:21.620199
2019-07-10T16:38:58
2019-07-10T16:38:58
339,856,341
0
0
null
null
null
null
UTF-8
Python
false
false
5,792
py
test_random_spawn.py
#!/usr/bin/python3.5 from geometry_msgs.msg import Twist, Pose from gazebo_msgs.msg import ModelState from std_srvs.srv import Empty from gazebo_msgs.srv import GetModelState from gazebo_msgs.srv import SetModelState from gazebo_msgs.srv import SpawnModel import rospy import time import numpy as np # All the params...
2eb1a1138ca7e9cc32a824380435fb7a46c0203c
271db35ca98745a5662368716f4f0a8c36d468ca
/models/model_{1_2}/model_2_predict_5ktrain.py
fb25a6b539024b187424d5dd1e088a381cccda93
[ "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference" ]
permissive
usnistgov/STVM_NLP_Research
299b156a2834a4d6b52476a5aef3767d663157bd
fd8cc147174c15ac85b3e25e911cda02bf7b8ac7
refs/heads/master
2023-08-17T22:16:18.771111
2021-10-06T21:18:37
2021-10-06T21:18:37
273,520,544
3
2
NOASSERTION
2021-08-19T17:39:23
2020-06-19T14:59:31
Jupyter Notebook
UTF-8
Python
false
false
5,866
py
model_2_predict_5ktrain.py
import numpy as np from keras.utils import plot_model from keras.layers import merge from keras.layers import BatchNormalization, InputLayer, RepeatVector, Permute from keras.optimizers import * from keras.callbacks import ModelCheckpoint from keras.layers import Dense, Activation, Dropout, Input, LSTM, Flatten, Bidire...
f36b9de60fb433ec0a8ea138926bebbbdc98361e
99d8895888ab093b06a3ba03594f2a74cb97758f
/Scripts/Python_HSE/WEEK3/homework/solution25.py
0da637341bc6301bd71a58f9adba51762c0311f3
[]
no_license
AlekseyAbakumov/PythonLearn
4c35efeb0996f4a3221f228b57e30d595bb62637
fdd2cc9bdaa0fac3d582ddd5f2fbf9018218bda5
refs/heads/master
2023-03-23T20:12:42.603817
2021-03-16T18:22:48
2021-03-16T18:22:48
265,309,409
1
1
null
null
null
null
UTF-8
Python
false
false
64
py
solution25.py
originalStr = input() print(originalStr.replace('', '*')[1:-1])
e5b670a4c4e116f9368b9e56f95a3ba93054f79b
50e9180082f1782418c0b6f4c9712484a77feab4
/Lab3/array_list_tests.py
ad3a57de4506c8ed012ad6be075cce012c584426
[]
no_license
akuppala21/Data-Structures
b21271953873b65fcfb83610fa4acc53461097a0
80e1dd50cdcb3606de814e9f1e236b2f80508fcc
refs/heads/master
2022-12-02T16:24:36.132794
2020-08-23T06:06:39
2020-08-23T06:06:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,672
py
array_list_tests.py
import unittest from array_list import * class TestList(unittest.TestCase): # Note that this test doesn't assert anything! It just verifies your # class and function definitions. def test_interface(self): temp_list = empty_list() temp_list = add(temp_list, 0, "Hello!") length(te...
10023441a87ce725ee1774ca7789584982471cb4
bcab6bf51597d4fb8ba7abad8e5e33434cd8aa0a
/verts_package/package_report.py
deb0b7136e38216a672ed7a89fcbfcb860409ebc
[]
no_license
OpenSolutionsFinland/Verts_package
847d14230a310f9096a4edbb731fe531d68db5d6
583dad43a5e1f43fbc1dbbb73d49608ed1832b62
refs/heads/master
2016-09-05T09:11:17.272150
2013-08-16T04:38:22
2013-08-16T04:38:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,764
py
package_report.py
import time from report import report_sxw class package_invoice_reports(report_sxw.rml_parse): def __init__(self, cr, uid, name, context=None): super(package_invoice_reports, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time':time, 'get_inf...
c6eda6f6a53effc233d3e9b2c332bdda84dd0650
60cecf597934afcca33bc6389b5b21dcde4a603d
/Functions/ListUniqElements.py
7b0f6e381e83f35220e77a2a0c4c12c8e40900ed
[]
no_license
Amruta-Pendse/Python_Exercises
4188a48d2136a3301642a9b477a5eb0542f3d77c
739bae52128e40726869c8ac1b789b5b53fb5973
refs/heads/master
2020-06-22T11:41:51.669431
2019-07-28T01:31:06
2019-07-28T01:31:06
197,708,850
0
0
null
null
null
null
UTF-8
Python
false
false
467
py
ListUniqElements.py
#Program to print unique elements from list def uniq_elements(): n=int(input("Enter number of elements you want to enter for list:")) i=1 l=[] p=[] while (i<=n): n1=int(input("Enter {} number:".format(i))) l.insert(i,n1) i+=1 print(l) i=0 for i in l: ...
2786616c0b0726b2d5a3dfb8b4a370ac7c49efe4
7ec9a0d3787e0bbf9a3a7230563b106fe0e31adf
/data_transfer/dags/tfa.py
f3aa38292204c65b0d9a9855d1de932316ebfb32
[]
no_license
ideafast/middleware-services
f4ad65aea0f4e1cd732499ceeb67f6ed715a0b67
bac87afab0349d1a011c4dea4c39d105763ddf2c
refs/heads/master
2023-08-07T04:29:37.517837
2021-07-01T12:23:27
2021-07-01T12:23:27
298,328,083
0
0
null
2021-07-01T12:23:28
2020-09-24T16:01:15
Python
UTF-8
Python
false
false
1,394
py
tfa.py
import logging from data_transfer.db import records_not_uploaded from data_transfer.devices.thinkfast import ThinkFast from data_transfer.jobs import shared as shared_jobs from data_transfer.tasks import thinkfast as thinkfast_tasks from data_transfer.utils import DeviceType, StudySite log = logging.getLogger(__name_...
1ded47deb1a0ff7ff7ec9e106c7c5cb116755c4e
9a92bd52bd0a9ea73322198c7d20b85b5fe06f9e
/vector_projection.py
12ac2890e1cd97202548c9cc8dd5527fa36646c1
[]
no_license
zzanowic/vector-projection-demo
27934b735278b29930b81abfad8fa648ba91dfc7
506f29a290b89f0db49b75779f348149fd4d2f54
refs/heads/main
2023-06-30T09:37:43.485030
2021-08-07T02:41:42
2021-08-07T02:41:42
364,709,354
0
0
null
2021-08-07T02:41:43
2021-05-05T21:23:48
Python
UTF-8
Python
false
false
8,736
py
vector_projection.py
import tkinter as tk import math import random class App(tk.Frame): projection_line_start = (0, 0) def __init__(self, root): super().__init__(master=root) root.title('Vector Projection Demo') self.root = root self.createWidgets() self.createBindings() self.pr...
ba1cb8bc5b0d8bf00a68e9cb0f36a84d9e6b0759
fcb1726fe60f194fdabe09eb2e1f1105f6436297
/02. 알고리즘 이론/04. 고급 정렬 알고리즘/04.병합정렬-3.py
b84d51fc4013f840e3dd7ca6c6e842f9ce49e50d
[]
no_license
jyryuitpro/pythonProject
651a746ccc9f86face0a10010c67159134746472
655672ec1364a8be4aa596e09d10006f9bfbaee2
refs/heads/master
2023-01-23T07:11:05.706115
2020-12-01T14:53:39
2020-12-01T14:53:39
302,307,389
1
0
null
null
null
null
UTF-8
Python
false
false
700
py
04.병합정렬-3.py
def merge(left, right): merged = list() left_point, right_point = 0, 0 # case1: left/right 아직 남아있을 때 while len(left) > left_point and len(right) > right_point: if left[left_point] > right[right_point]: merged.append(right[right_point]) right_point += 1 else: ...
7bb9799ea4796b57bd92610673b46816aeaedfeb
15252676a2680662bca56252f0afefe6cbdb815f
/02-HLT-02.py
67653ec0598ab0a965a216664efcee01dcef052b
[]
no_license
Abzmkd/Myrepo
44d18c9df901cecaf0a51694c0925bfacea0a80b
c27405ee31f230122f832e91733209a617761801
refs/heads/main
2023-07-03T00:52:36.653419
2021-08-11T07:06:18
2021-08-11T07:06:18
394,886,822
0
0
null
null
null
null
UTF-8
Python
false
false
1,723
py
02-HLT-02.py
BRACKETS = ["[", "(", ")", "[", "]", "{", "}"] def check_username(username): if len(username) < 6 or len(username) > 15: print("Username incorrect length") return False return True def check_password(password, username): if len(password) < 8 or len(password) > 256: pr...
a02bceeb2bc2969e14e25cdcfdce3b4ab7f897a7
d0aeaa90e613946dcf4bf94fce5db6ef987a52b9
/cycles.py
9fa272bc93fa2f1a922a326988fee0e25acea249
[]
no_license
kyang21/Graph-Builder
bc66d7bd114840cbfe96c62b134ec1cba9ed76f3
ab26383e47f075aee1914de55a1e9d8aa9386173
refs/heads/master
2020-03-17T11:12:27.079035
2018-05-15T20:39:23
2018-05-15T20:39:23
133,542,040
0
1
null
null
null
null
UTF-8
Python
false
false
4,638
py
cycles.py
from visualDFS import * from convertNodes import * # Hamilton Cycles class Hamilton(object): def __init__(self, data): self.mode = None self.graph = None self.visited = [ ] self.edges = [ ] self.start = None self.choose = False def hamiltonMoves(...
473baa7371869fdf09d711e3b136edd4ade2cf43
314c23a5f8fa9a2c16995d0e107cbb3bea5a132b
/emailer/config.py
715bd6e9f9791e740970fe2815feb096f9e94787
[ "MIT" ]
permissive
celiala/batch-emailer
eb90dba3be7a34210bbed2a0b533bcfa02449f1b
6d73b0e2d2988a8a6d7c3248a7a17a640c8e699a
refs/heads/master
2021-01-10T13:28:22.759710
2015-11-29T21:27:22
2015-11-29T21:27:22
47,079,801
0
0
null
null
null
null
UTF-8
Python
false
false
6,303
py
config.py
import json from os.path import (dirname, abspath, isfile, join) """ this file tries to find the config settings for the emailer. If it can't find one, it generates one. It also asks the user which folder to store the config. """ class ConfigKeys(object): EXTRA_PARAMS_KEY = "TEMPLATE_PARAMS" EMAIL_DRY_RUNS_T...
553a8de7b28e18f8a6a5f0ad4962cdb33f05bd97
f8aec478c2829c05372dab24467fca3a6aafe268
/luokat.py
ab709ce4a0f13ec84bbb47bdd95840a08e1cc377
[ "CC0-1.0" ]
permissive
AnneHelin/Painonhallinta
664eee891e81f4b61c8fa92ec4ac16934ec44c69
8993b1d73402087ea15bd806eeb144a1b2170695
refs/heads/main
2023-04-27T03:44:48.689412
2021-05-06T07:45:29
2021-05-06T07:45:29
340,311,125
0
0
null
null
null
null
UTF-8
Python
false
false
2,029
py
luokat.py
# Tässä modulissa määritellään luokat painonhallintasovellukseen # Modulien ja kirjastojen lataukset # Henkilö-luokka class Henkilo: """Yliluokka kaikille henkilötyypeille""" def __init__(self, etunimi, sukunimi, pituus, paino, ika, sukupuoli): self.etunimi = etunimi self.sukunimi = sukunim...
9347c845603b07cb21a5f309dea7d9c3a6c5c2c1
d36546287721db2e97e0a4323e143163a14ce0b1
/2022/03/day03.py
299430bbb876375ce89066b57551d39a3338b930
[ "Unlicense" ]
permissive
GeoffRiley/AdventOfCode
ca258edee05ad7a4b6e6db2e59b83e8879b48af0
567df9cb5645bc6cf4c22063a84a621039069311
refs/heads/master
2023-01-12T03:42:11.099541
2022-12-25T17:16:20
2022-12-25T17:16:20
225,139,440
3
0
null
null
null
null
UTF-8
Python
false
false
3,165
py
day03.py
""" Advent of code 2022 Day 03: Rucksack Reorganization """ import string from typing import List from aoc.loader import LoaderLib from aoc.utility import lines_to_list, grouped RUCKSACK_CONTENTS = string.ascii_lowercase + string.ascii_uppercase PRIORITY_STATES = {c: v for v, c in enumerate(RUCKSACK_CONTENTS, 1)} d...
bfb161a5c5b3ff1664ff58a288edbf7ee6a9847f
5a4d5ee624b375ece06fda1467afe18beb69c14b
/Algorithm/SWEA/2115.getHoney.py
563ed83537079f3f6a387a18ec67c27fa1fb24ba
[]
no_license
Knightofcydonia51/TIL
cd10dab949659bc827118ee42b25d926336dce23
78d7e8617f4abed9932a557c12e68bd950f8230d
refs/heads/master
2022-12-26T00:10:06.262200
2022-05-26T01:12:32
2022-05-26T01:12:32
195,938,010
0
0
null
2022-12-16T01:03:09
2019-07-09T05:22:49
Python
UTF-8
Python
false
false
1,658
py
2115.getHoney.py
import sys sys.stdin=open('2115.getHoney.txt') T=int(input()) def powerset(k): global maxi if k==M: honey=[] limit=0 for i in range(M): if T[i]==1: honey.append(worker[i]) limit+=worker[i] if limit>C: retur...
04751e54522a92ae9526648c212f1122196d1935
92640e4fcd075a727541c3f68c31533f39e92b90
/src/test/environment_with_paths.py
cfba061cd16ad4f954412eb85c44d180a51a424b
[]
no_license
abrown/tiger-rpython
9481ed03b9867a5370b4fad1ecc4a630eec75ee5
b26056323c7e8a49ee01e13e1e68812396063d43
refs/heads/master
2021-05-26T06:05:52.854645
2018-12-07T05:57:55
2018-12-07T05:57:55
127,775,126
2
1
null
2018-12-07T02:53:57
2018-04-02T15:29:55
Python
UTF-8
Python
false
false
1,766
py
environment_with_paths.py
import unittest from src.environments.environment_with_paths import Environment class TestBinding(unittest.TestCase): def setUp(self): self.sut = Environment() def test_simple_put_and_get(self): p = (0, 0) self.sut.push(1) self.sut.set(p, 42) self.assertEqual(42, self...
df185f6ae92c9a5fa535e73358ef432d6127d359
f338f2b926e37f7c6906ee2d5b6abc45355a2e8d
/Data Types/36.py
ad2b1370155dc1950c73fe32a322e6e5c4344293
[]
no_license
jameskulu/Data-Types-and-Function-Assingment-Insight-Workshop
a5a59b862fdaee3b92e159ea48affb5552daee0c
bec8f2f9bd10dcd55ee2269daeee0ff1118ff084
refs/heads/master
2023-01-21T13:23:16.138446
2020-11-28T04:20:13
2020-11-28T04:20:13
315,980,380
0
0
null
null
null
null
UTF-8
Python
false
false
243
py
36.py
# 36. Write a Python program to sum all the items in a dictionary. dct = { '1st': 10, '2nd': 65, '3rd': 54, '4th': 32, '5th': 79 } sum_of_dst = 0 for key, items in dct.items(): sum_of_dst += items print(sum_of_dst)
c113289e6629f6f7c374ca65a5c5c092ad946b26
353b1065e5dfce1878d367bf9758387cf34ce52f
/registers/migrations/0012_register_register_date.py
ad756505c2a3d2508ab96e5f20fd995ecadebab9
[]
no_license
Vaibhav-21-git/Gym-Website-Project
62d19c2708f602b165fb4fecd0659a56b38d3008
9ff78ae40a8e14ffdbce4f87e2b9915a8fe5bc0d
refs/heads/master
2022-11-28T04:16:44.877412
2020-08-06T09:48:04
2020-08-06T09:48:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
403
py
0012_register_register_date.py
# Generated by Django 3.0.5 on 2020-07-07 12:41 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('registers', '0011_auto_20200707_1649'), ] operations = [ migrations.AddField( model_name='register', name='register_...
85289c5583a5116750942fcfd775f4dc0632fd9e
906b2078910f55183128645a6b9fe2d8a910d6e7
/codemaker.py
fe767d271c7507feb8b6689dbaf31e3c04c8d148
[]
no_license
ajinkyakhadilkar/sscompiler
271ef6dd305a3ae60a076acc87e4e9efea4445ba
7aa0ea3d3854fee3d83fe5dc270c225500f7cb44
refs/heads/master
2021-01-19T09:08:58.249972
2017-05-08T19:11:34
2017-05-08T19:11:34
87,732,046
0
0
null
null
null
null
UTF-8
Python
false
false
187
py
codemaker.py
from sys import * import parser ptokens = parser.parser() def codemaker(): fout=open("output.cpp","w") for token in ptokens: fout.write(str(token)) fout.write(' ') fout.close()
9384073be115a662c3883f28ec80b7e154dd3d9c
96b7ee94763d477ddbe1534a866fb7e3bd269a7b
/quickbooks/objects/journalentry.py
d1c5e9fa84ca6f21c69316d5a4a2010e4fb416dd
[ "MIT" ]
permissive
ej2/python-quickbooks
a83d088983f2aa6b001d2cb7445f42ea0ab4725a
5d29d1fa832496d00af927e35deb9ba78817550d
refs/heads/master
2023-09-03T23:49:59.551648
2023-08-29T16:10:29
2023-08-29T16:10:29
39,512,055
139
81
MIT
2023-08-29T16:15:24
2015-07-22T14:50:48
Python
UTF-8
Python
false
false
2,643
py
journalentry.py
from .base import QuickbooksBaseObject, Ref, QuickbooksManagedObject, QuickbooksTransactionEntity, \ LinkedTxnMixin from .tax import TxnTaxDetail from .detailline import DetailLine, DescriptionOnlyLine from ..mixins import DeleteMixin class Entity(QuickbooksBaseObject): class_dict = { "EntityRef": Ref...
571e4fbe20e1d8b281fca7e1553a1d0f30c92eca
f1fdb6f6acd1ccbc2d76a9a25964125ba6e2f3d2
/labelray.py
7201b4736feb0deaf82d211a426a863177feabb5
[]
no_license
gnthibault/labelray
bdffa791d8171d25fadb053d50b55a74bb0c5e8c
9264ddc41fbbaa97116b74d3cf3025d48b4c360b
refs/heads/master
2023-09-01T19:17:59.498046
2023-08-22T08:30:17
2023-08-22T08:30:17
292,350,085
1
0
null
null
null
null
UTF-8
Python
false
false
11,519
py
labelray.py
# Generic stuff import argparse import json import os # Numerical stuff import numpy as np # Geometry import geopandas from shapely.geometry.multilinestring import MultiLineString as MultiLineString # Image manipulation/cv import skimage.io from skimage.segmentation import active_contour # Viualization / gui import...
003dba0bb9a5d31992b757ca5cc02f2a03d64289
37d58e38650c0c8c25cd9fa347d68fe95b9bfaf1
/PythonWorkspace/37. 표준입출력.py
49a177dfc6e239e04cefd11767d9223a5ef87c1a
[]
no_license
sumdul/Study
4cbbbbfebe4e2a69502c227d2a156c81021c84ed
99936278f2c58e6aec52195fdb1212aa72e21009
refs/heads/master
2023-01-19T08:36:08.020809
2020-11-28T02:45:33
2020-11-28T02:45:33
270,117,945
0
0
null
null
null
null
UTF-8
Python
false
false
958
py
37. 표준입출력.py
# 표준입출력 # print("Python", "Java") # Python Java # print("Python" + "Java") # PythonJava # print("Python", "Java", sep=",") # Python,Java # print("Python", "Java", "JavaScript", sep=" vs ") # Python vs Java vs JavaScript # # Python,Java?무엇이 더 재 밌을까요? # print("Python", "Java", sep=",", end="?") # prin...
8a7573f272c03c70305b85d99f025325be558620
9c0b6f731e4052e4e0c2ea944683ed427e579384
/handlers/LoginHandler.py
34221580d23247ee6815ffbb265bf719bad621bf
[ "MIT" ]
permissive
waseem18/Openflock
fcc2962ff7e5bb2b26ca7053800b730311b5a714
68ebfb1010ef1853d7028647bb062c683efaaf60
refs/heads/master
2020-05-20T06:03:49.002493
2017-08-09T05:07:58
2017-08-09T05:07:58
51,534,048
67
11
null
2017-08-09T05:07:59
2016-02-11T17:51:54
Python
UTF-8
Python
false
false
3,797
py
LoginHandler.py
from imports import * from config import * from routes import * from handlers import * from models import * redirect__uri = 'http://www.openflock.co/authorization' client__id = 'ADD YOUR CLIENT_ID HERE' client__secret = 'ADD YOUR CLIENT SECRET ID HERE' class AuthRedirect(BaseHandler): def get(self): ...
a56298f9788efc1c9124e30ebe58d0826f01887b
8d6ba45f9da01526bb75d0e99be1e1470535dbab
/ChatApp/asgi.py
418f43398d67bc4be9a6ee5ef57b132174ea745c
[]
no_license
GurungAman/Chat-App
d387ff46960b1ba9f3ef99084570224dbc9a0f9e
80f7be2ccea9010abdc92820e0fed5dc64fce549
refs/heads/main
2023-08-03T02:42:39.708659
2021-10-06T09:14:09
2021-10-06T09:14:09
354,211,415
0
0
null
null
null
null
UTF-8
Python
false
false
732
py
asgi.py
""" ASGI config for ChatApp project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os import django from channels.routing import get_default_application from django.core.as...
66f28554625c5b86feebc7a53246abbfa96d9e88
7f80b0781de21f62914505ad302a10a1e7496819
/foo/views.py
10a21a22bdbe8c522df5154a2f9ec7335fd0bea9
[]
no_license
Junaidiqbal35/testnotify
d6c84583a12a02102244b0f38f0dcc143977c3f7
579cecde2451bdb6a2b1cf3cf048dcade85ec8e8
refs/heads/master
2023-06-21T13:46:13.426500
2021-08-01T07:55:49
2021-08-01T07:55:49
391,134,154
0
0
null
null
null
null
UTF-8
Python
false
false
655
py
views.py
from django.shortcuts import render from django.views.generic import ListView from notifications.models import Notification from .models import Badassness # Create your views here. class BadassListView(ListView): model = Badassness paginate_by = 5 context_object_name = 'badasses' template_name = 'f...
0cc991c3b96d16d84613c991dc1188242c958568
11db764f182c18ea5f85ee999c4ab69b9b593e2d
/palindrome.py
6a3d02786db73e2afb2176af00d467913559f587
[]
no_license
emanonGarcia/palindromic
e07b84fa645a7c092ca1c5b36f4829907b83399e
f69cebf4920912f638545fbcdcc901ad97731a4c
refs/heads/master
2021-06-11T16:23:54.621950
2017-02-23T02:13:25
2017-02-23T02:13:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,032
py
palindrome.py
################ Can you explain this? ####################### # # # regex = re.compile('[%s]' % re.escape(string.punctuation)) # # clean_str = regex.sub('', dirty_str) # # # #####...
3e22bcbf06ff57402e67f62e1432e3c128b2b99c
91572d49dbd2dd6d3a2a1abb6608c6de118f0526
/processSampleSheets/lims_rest.py
d78b082e35480feef5bae1eac25ff26d59491efd
[]
no_license
mskcc/variant_launch_validation
e7fb2bae56bdee6341e9d4b6f0bf71db96edc8c1
6b0b710d9a8a48c3e242353f9e217a60cea3268a
refs/heads/master
2021-03-24T09:48:20.486863
2018-02-27T16:23:23
2018-02-27T16:23:23
112,539,321
1
0
null
null
null
null
UTF-8
Python
false
false
4,976
py
lims_rest.py
import urllib import urllib2 import sys import re import base64 from urlparse import urlparse import json from CMOUtilities import * from OTHER_CONSTANTS import * def getServiceResults(service_url): req = urllib2.Request(service_url) try: handle = urllib2.urlopen(req) except IOError, e: ...
c2bf05ee041a7451c43bd73e8aed086a9f992088
852b227f5735a631a7e7389546fc4300a4c7fae1
/Callbacks and Promises/Assigment/findPrime.py
f0e7af775d1db646e1a10140f52e6dccebe8200f
[]
no_license
joshmarto/ES6
2333b09753d62efbd601c44637e2d82c36c13cbb
ed96d283c212dc6503dd527a3ead9516f279463e
refs/heads/main
2023-08-11T03:27:54.251486
2021-09-14T22:25:58
2021-09-14T22:25:58
406,504,643
0
0
null
null
null
null
UTF-8
Python
false
false
351
py
findPrime.py
def findPrime(num): limit = num - 1 c = 1 while(True): digits = 0 n = num - c for i in range(1, n + 1): if n % i == 0: digits += 1 if digits == 2: return n break else: c += 1 continue num = 1...
bdc3de5e8a79a5351f07129232de7a74f5998670
291365046414ff8c31a1197c2778f7d01c04a118
/randon_person_generator.py
e49b5304c651a08fce9c003407f9c2ebfcc4f467
[]
no_license
arpitch/juniper_fundamentals
5ec6fb022c60d960efabac1b48fe905a7abc9bcb
38d693d497be60538a68a6e2f760b3acb63c5e32
refs/heads/master
2022-11-06T19:09:23.891623
2020-06-11T15:19:14
2020-06-11T15:19:14
269,433,432
0
0
null
null
null
null
UTF-8
Python
false
false
1,782
py
randon_person_generator.py
import string from random import choice import random # or we can improt random # lsit of first names first_names = ['Jon', 'Rick', 'Bill', 'Ben', 'Vishal'] last_names = ['Hu','Zhang', 'Tian', 'Shah', 'Patel'] email_services = ['@gmail.com', '@yahoo.com','@hotmail.com','@outlook.com', '@icloud.com'] r...
6ad0dbe35dc37d4f166f89012e3d4f76342997b9
b16a3fe192686bda751f25b2e333968a148f1cc3
/knn_model.py
960cecae27c6621b081c18e05e2a1feaf612515d
[]
no_license
williamraccagni/cat_breed_acoustic_classification
aade6a1d4fc92a334ab2b64295f3c82ad490d988
e50505ba304858ca4c6ade1746e4968b028ac7a6
refs/heads/master
2023-07-12T05:46:33.405952
2021-08-23T20:48:33
2021-08-23T20:48:33
399,243,812
1
0
null
null
null
null
UTF-8
Python
false
false
3,964
py
knn_model.py
import sklearn import matplotlib.pyplot as plt import numpy as np import copy def execute_knn(path : str, title : str, filename : str, X, y, labels_map : list, k_value : int, test_size, seed : int): # KNN model ---- Holdout Method knn = sklearn.neighbors.KNeighborsClassifier(n_neighbors=k_value) # Holdou...
6e20bc57132dc873d7fea15f9ffb5a48304852fb
c50e7eb190802d7849c0d0cea02fb4d2f0021777
/src/securityinsight/azext_sentinel/aaz/latest/sentinel/analytics_setting/_update.py
06724e23643bd934439da5c58cf34f53824b374c
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
Azure/azure-cli-extensions
c1615b19930bba7166c282918f166cd40ff6609c
b8c2cf97e991adf0c0a207d810316b8f4686dc29
refs/heads/main
2023-08-24T12:40:15.528432
2023-08-24T09:17:25
2023-08-24T09:17:25
106,580,024
336
1,226
MIT
2023-09-14T10:48:57
2017-10-11T16:27:31
Python
UTF-8
Python
false
false
22,520
py
_update.py
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # # Code generated by aaz-dev-tools # --------------------------------...
f9f76f027a76bbe8bb1e0237192c2cdc1007abfd
5f49680d6c50d554ca25b37798bc3113f637a68c
/MRSSM/preprocess.py
d980a99784373cc9af13acfae2c899b2c3728732
[]
no_license
masa-su/pixyzoo
ad9bd4b28dc80f26d5582129f37d4c34a9ee9312
1fa0d9ded00c4e10e35ed1bf99892f81e5a5e3d2
refs/heads/master
2023-01-19T06:31:40.566390
2023-01-10T07:18:44
2023-01-10T07:18:44
156,181,088
107
23
null
2023-01-10T07:18:45
2018-11-05T08:02:08
Jupyter Notebook
UTF-8
Python
false
false
6,084
py
preprocess.py
# MP4 files tranceform wav files and finally convert numpy array # And Packing same time spectrogram and observation # -Directory--------------------------------------- # # dataset # ├── test # │ └── mp4 # │ ├── ***.mp4 # │ ├── ***.mp4 # │ ... # │ └── ***.mp4 # └── train # └── mp4 # ...
777d04a948cb6c69b0ef21c3e810fbd69c2f7223
08803ef3a43224472e38706beb1f1238d7d90036
/Programas/Ulam.py
92020736f76894cea66a567ceec47617f2e6b79e
[]
no_license
316328021/TallerdeHerramientasComputacionales
76c0bff27560c36fcd8ea014b7202f31a6159f90
132014ebafd29cd3e5c3bef1ba710ebdc4973008
refs/heads/master
2020-04-16T00:30:27.541786
2019-02-13T00:21:56
2019-02-13T00:21:56
165,141,261
0
0
null
null
null
null
UTF-8
Python
false
false
780
py
Ulam.py
# -*- coding: utf-8 -*- def ulam(x): #if (x/2)*2-x==0: if x%2 == 0: #Al usar el %2 Estamos diciendo que el residuo de la división entre 2 es 0, es decir, que el numero es par return (x/2)#Si es par, retorna esto else: #Al no cumplir que sea 0 el residuo significa que es impar return (3*x+1)#...
86bbf19c565d70b719882ffd0909baa205e44750
eaba153124e6e61b3ccb73267a0f30589cb4a167
/simulink/system_object/newGenerator/generatorCommDemo.py
aee01fe2a33b0fd76fbd1f521c3f417e24b71158
[]
no_license
aa4cc/AcouMan
8b7a3c95dc8512db39011d3d2a38136612a06f52
bbc7501c536b246c0d84502e0f540f5d7bb4d850
refs/heads/master
2021-07-16T23:53:25.446524
2020-06-23T11:36:56
2020-06-23T11:36:56
168,187,995
2
0
null
null
null
null
UTF-8
Python
false
false
2,235
py
generatorCommDemo.py
#demonstration of Shifted Signal Generator communication #Created 04.08.2018 import serial; import time; import numpy; port = serial.Serial('COM5', 230400, parity= serial.PARITY_EVEN) #pozn.: paritu prvni verze generatoru v FPGA nekontroluje, paritni bit jen precte a zahodi (aktualni k 8.4.2018) # dataA...
faa18091b406a6f32351574f420496f5ec71a0b0
cef551ef08bfc2c2fddab2a723554bb7e817c688
/lipanampesa.py
44e418c74fd654ebed2ea9fafdb81944e92228a2
[ "MIT" ]
permissive
Ratego/mpesa-drajaAPI
e63bb9d084ec4410929631213f3cc6f92d27f772
a8d8bf23b150bdfa98c13ee15693e63c7ff8d391
refs/heads/main
2023-03-21T08:21:01.920808
2021-03-10T09:23:02
2021-03-10T09:23:02
346,271,594
0
0
null
null
null
null
UTF-8
Python
false
false
40
py
lipanampesa.py
print("Welcome to Fullstack Python Dev")
437e24772ef5c512cff0515239e871f080c9b481
2b3b2406fb2e54cea1fb8a1ff58fdaaa3b02df8f
/ginit/patching/imports_regex_patcher.py
30b6be767725c45976791dd9126c5dc2cd2fd35a
[ "MIT" ]
permissive
Drakkar-Software/ginit
3fb39445b1918de91e7ba3606c00c2b66bbda363
ffa4d9f53f6626f9f5788c791808d84f83cac6e2
refs/heads/master
2022-12-18T12:12:28.449180
2020-10-04T15:20:38
2020-10-04T15:20:38
299,101,455
2
0
null
null
null
null
UTF-8
Python
false
false
2,669
py
imports_regex_patcher.py
# Drakkar-Software ginit # Copyright (c) Drakkar-Software, All rights reserved. # MIT License # # 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 li...
cad8097e7d1f1c5d3a32915b84fed1467cdf0812
156a7c608e04a53ac3e3f7961ae5f7578fdfe588
/dr_m3u8/dr_m3u8_parser.py
894d48e5deae2e96f61c33b46ad98a5bf018780a
[]
no_license
taext/parsers
dfcfa01883749e32162deaf176a03b4ffeb401c2
740fea3aac6e82e1027f8055383bca74e23f5ee7
refs/heads/master
2021-06-30T23:27:00.300418
2020-11-14T03:30:50
2020-11-14T03:30:50
188,614,314
0
0
null
null
null
null
UTF-8
Python
false
false
829
py
dr_m3u8_parser.py
#!/home/dd/anaconda3/bin/python import re, requests, sys, time from selenium.webdriver.firefox.options import Options opts = Options() opts.headless = True from selenium.webdriver import Firefox assert opts.headless # operating in headless mode def main(url): """Takes dr.dk program URL, returns program .m3u8 URL...
1a418a16aa8c5ca57c584100d87ea82a9bc6eaf3
8e49fefbf1d06ccaf412886d4943c613b3900412
/deprecated/symbolbase.py
c2240a45c9395eae4a6b2d711da39a360e890d36
[ "BSD-3-Clause" ]
permissive
ghayth82/featurebox
ff926cdd39bb37b4bbf2170d958a182c27e9b540
92863075410ba308b3e19aefaaae2a4077764eb0
refs/heads/master
2020-12-29T16:01:18.769626
2020-01-16T13:34:31
2020-01-16T13:34:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
49,338
py
symbolbase.py
# -*- coding: utf-8 -*- # @Time  : 2019/6/8 21:35 # @Author : Administrator # @Project : feature_preparation # @FileName: 4.symbollearing.py # @Software: PyCharm """ All part are copy from deap (https://github.com/DEAP/deap) """ import copy import functools import operator import random import sys import warnings fr...
b385fc4e3c994506a98472a3e6e8dea61d03b79e
54bf6ff3389c1336bb4fa36a815320346517b864
/horse_game/horses/migrations/0018_auto_20171029_2211.py
d7950a641eab189342f0534644b738ff11209c79
[]
no_license
jennier/horse-game
47620742ab09c3ec1c1c67a8a9becb4f6adc19f1
9540d268d181d07c7218046354789cd9b2890316
refs/heads/master
2021-08-24T07:47:09.031040
2017-12-08T17:53:32
2017-12-08T17:53:32
113,602,473
0
0
null
null
null
null
UTF-8
Python
false
false
757
py
0018_auto_20171029_2211.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-10-29 22:11 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('horses', '0017_auto_20171029_1721'), ] operations = [ migrations.AddField( ...
5a16d8ae961635273dd811c20002909c7e1f4ce2
fa9ad645d3b27f87d1599c7552f480a706077438
/extras/appengine/sqlformat/__init__.py
11f4d9d1e865172081664b14272766e459a9f618
[ "BSD-3-Clause" ]
permissive
Yelp/sqlparse
17d95e3d4cf1e9455f28cdef8678bb5ba050786b
8db62f19dd5361287cc8e696bbc491a35493b34e
refs/heads/master
2023-08-16T23:34:32.235918
2023-08-02T20:38:21
2023-08-02T20:38:21
32,340,269
5
9
BSD-3-Clause
2023-08-02T20:38:23
2015-03-16T17:07:44
Python
UTF-8
Python
false
false
350
py
__init__.py
from flask import Flask, make_response from sqlformat.legacy import legacy app = Flask('sqlformat') @app.route('/ping') def ping(): return make_response('pong') @app.route('/_ah/warmup') def warmup(): return make_response('polishing chrome') # Register legacy URLs last so that newer URLs replace them. a...
165c84f5bf73f81c6327cd2ec3db62620c91297f
0ce3e410e2ca40e479869af55cd9d4a476601d90
/HW6/test.py
509679e8d3e9afd1ca8bdb4bc637974c15fc8417
[]
no_license
jhnavasb/Artificial-Intelligence-Projects
028fa283ff003ef0bd5e19559efb322cd8bedb07
5f6affe8070f8bcb6af87d2252ec587c6e91a25c
refs/heads/master
2020-04-23T19:21:19.576656
2019-02-19T03:49:49
2019-02-19T03:49:49
171,400,463
0
0
null
null
null
null
UTF-8
Python
false
false
2,740,767
py
test.py
import numpy as np #from util import plotRunningAverage import gym from gym import wrappers import math env = gym.make('CartPole-v0') #Q={((0, 0, 0, 0), 0): 0, ((0, 0, 0, 0), 1): 0, ((0, 0, 0, 1), 0): 0, ((0, 0, 0, 1), 1): 0, ((0, 0, 0, 2), 0): 0, ((0, 0, 0, 2), 1): 0, ((0, 0, 0, 3), 0): 0, ((0, 0, 0, 3), 1): 0, ((0, ...
5d84a7c1fce209da1f807487953ae35936a7ff9d
901e2e3992c8e24ccecafb585bbb88c608992460
/Solutions/1-100/p20.py
e93ffcd0fe0550fe4bddf681d89fb57fe5a5ad15
[]
no_license
jborchma/project_euler
d862d17279a56da6acd332aba7fa5dfcfff1df86
ba8138b4e24383b42d0e34ef3e06db02b4b050f1
refs/heads/master
2021-06-25T08:51:57.042881
2021-01-11T00:36:33
2021-01-11T00:36:33
65,694,865
0
0
null
2020-08-15T14:30:48
2016-08-15T01:21:51
Python
UTF-8
Python
false
false
217
py
p20.py
# defined my own factorial function def factorial(n): if n == 1: return 1 else: return n * factorial(n - 1) number = factorial(100) summation = sum(map(int, str(number))) print(summation)
83f0ab5202f66ccc8d6108a2ca1727e53095ce63
7c0fe5a0c024b35bb144201372bf339cd5bed4e8
/utils/models.py
fc146e158ffb3d5c661eea6036285b521a5a2607
[]
no_license
axazeano/car_market
57071530ec0df1c42f53c533c9fa4d946f7d1907
b68b3dfcac94d7153a79f0e2719f120c4b243bc1
refs/heads/master
2020-12-24T13:28:07.657735
2015-05-01T17:39:08
2015-05-01T17:39:08
34,222,224
0
0
null
null
null
null
UTF-8
Python
false
false
4,778
py
models.py
from django.db import models from accounts.models import Account """ All models must have __unicode__() method for properly representation! """ class Country(models.Model): """Description of Countries in system""" name = models.CharField(max_length=100, null=False, blank=False, unique=True) def __unico...
184c6f8349f487121df1b1a6487306ed5f35c17a
7c731762df05f017e464801c1aa0ad34c5cde722
/stat_sig_test.py
5bf8ad70ecffb5617f1ae5901ab070a16ecf598f
[]
no_license
WaleedRagheb/tmv-dmem
57d4521be18f2e37f2c3c7337dd2c507d74b3c4a
0a63f1397dae9e1c26272b512bb72032598dd8c1
refs/heads/master
2023-01-02T04:39:06.372426
2020-10-30T09:10:50
2020-10-30T09:10:50
308,577,400
0
0
null
null
null
null
UTF-8
Python
false
false
1,124
py
stat_sig_test.py
import os os.environ['CUDA_VISIBLE_DEVICES'] = '0,1,2,3' from AWDEncClas.significant_test import * #acc_att = eval_clas('data/nlp_clas/imdb/imdb_clas', 0, lm_id='imdb_FT', clas_id='imdb_FT_ATT__NoCont2',attention=True) #acc_withoutAtt = eval_clas('data/nlp_clas/imdb/imdb_clas', 0, lm_id='imdb_FT', clas_id='imdb_FT') ...
74beb8211779f17d86859d3dc5312e6c0f07c8cb
e3ecd792f78cf034cdeb6cbc4c65858a31b34da1
/teacher/views.py
ebf52eddd99443f5e5dec65e565cde0e5619cc31
[]
no_license
xiaolong321/OldBoyCRM
1845d1bd505b15e1d5a065171f4c367860ff5e46
97fc02a79ffe29556b70462d3b1a9c23b49bcb7c
refs/heads/master
2021-01-23T04:03:07.508415
2017-03-24T06:22:31
2017-03-24T06:22:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
24,566
py
views.py
from django.shortcuts import render, HttpResponse, HttpResponseRedirect, resolve_url from django.contrib.auth.decorators import login_required from teacher import models from crm.permissions import check_permission from OldboyCRM.settings import HOMEWORK_DATA_DIR, ATTENDANCE_DATA_DIR from teacher import forms from crm ...
3907f77f7136fecb00f174767282292605e27946
86af60f627d1caeade0314e20939252016bcb894
/sudoku_modified3.py
c805215449c344bd50c1dce3533e07968631af29
[]
no_license
omashkova/programming
91014d599f70215d6ea0ed69f26d68b29a933943
5ab111094e1f0f77cf4ebb69d225eb3fbe5960d9
refs/heads/master
2020-06-06T04:05:29.723088
2015-06-22T10:31:02
2015-06-22T10:31:02
37,269,600
0
0
null
null
null
null
UTF-8
Python
false
false
14,015
py
sudoku_modified3.py
import random import itertools class Grid: def __init__(self, n = 3): self.n = n self.table = [[((i*n + i//n + j) % (n*n) + 1) for j in range(n*n)] for i in range(n*n)] def show_grid(self): for i in range(self.n * self.n): print(*self.table[i]) def swap_strings(self, line): if line % self.n == 2: b ...
cec5d5f945244f0fd252ee9698fcabff3947c43e
558ef224c275528ed35c2314f99b7464addb8dbe
/attention_training/train.py
155de5d1f0e6e3b61c0a3847423eb48cd226855d
[]
no_license
jageshmaharjan/FinalAttentionMusicDataSlot
a586223fd04c6b7e5bd3c941df18f90d3993fa5e
54bf99256c50c5abd5b244e3f5bcfde8cd0fff22
refs/heads/master
2021-01-25T11:28:07.191977
2018-03-06T03:17:11
2018-03-06T03:17:11
123,400,280
0
0
null
null
null
null
UTF-8
Python
false
false
4,015
py
train.py
from random import randint from numpy import array from numpy import argmax from numpy import array_equal from keras.models import Sequential from keras.layers import LSTM from attention_training.attention_decoder import AttentionDecoder from attention_training.data_preprocess import load_data # generate a sequence of...
e6152b1a3fda4828f9fb501e30e9ff47276be40f
4af1871a0aaeb8fabdc290c6f2f743758f045d0a
/txt_xml.py
30d43586a17111506e9b7b0518ca744b73f75ad5
[]
no_license
VissageMo/utils
c50a51a34a78d9f9db545b7e98ced5a551159806
2fcb885bdc67ece264c7a4f15cf2b1c374b4dbb7
refs/heads/master
2021-07-12T13:18:38.902980
2020-08-26T05:50:07
2020-08-26T05:50:07
190,025,532
0
0
null
null
null
null
UTF-8
Python
false
false
5,094
py
txt_xml.py
import os import math import numpy as np from PIL import Image # 把下面的路径改成你自己的路径即可 root_dir = "./" annotations_dir = root_dir+"txt/" image_dir = root_dir + "images/" xml_dir = root_dir+"Annotations/" # 下面的类别也换成你自己数据类别,也可适用于其他的数据集转换 class_name = ['ignored regions','pedestrian','people','bicycle','car','van','truck','t...
b1201b6de6667ae0d0560fb53f4266a8f3817ef5
eeca0898e93378c2c929821d10db3db69ce99e1f
/association_flask/build/lib/aiopstools/anomaly_detection/voting.py
512976a40240aa88cdfa7ab406764b8b9427e942
[]
no_license
xiaoyi2714/Correlation_Analysis
79cfeb7c7fc16756005e9d831527eee925c7a8ee
d554e237233071eae3dc49ab1bfdae5d50de226e
refs/heads/master
2022-11-02T12:40:22.073662
2020-06-06T05:29:01
2020-06-06T05:29:01
200,480,302
2
1
null
2022-09-30T18:46:22
2019-08-04T10:43:03
Python
UTF-8
Python
false
false
1,065
py
voting.py
#-*- encoding: utf-8 -*- import aiopstools.anomaly_detection.models as models def voting(data, check_value, freq, voting_num): """无监督投票检测机制 :param data:时间序列 :param check_value:检测值 :param freq: 周期值 :return: 检测结果 """ check_result_list = {} # 支持的模型 model_list = ['pop', 'amplitude', ...
da83ff79ed9a6c22694b2ca612efe94fa7411b42
9940911c47bb47b8e8a5351e4af367e976c1e614
/octo_barnacle/data/mark/lockmanager.py
e1f73c232a77576ce27144c86a15d2849664452f
[]
no_license
gy-chen/octo-barnacle
d54810e79f88e0c574ab5257cf1181264abc53ff
480428485ffe9600a52577661a5f69c66fbb35be
refs/heads/master
2022-12-20T11:04:46.714630
2019-07-24T12:44:50
2019-07-24T12:44:50
178,837,479
0
0
null
2022-12-10T18:31:31
2019-04-01T10:12:23
HTML
UTF-8
Python
false
false
823
py
lockmanager.py
from octo_barnacle.lock import LockManager, LockError class MarkStickersetLockManager(LockManager): """Redistributed lock manager for mark stickersets. """ RESOURCE_KEY_FORMAT = 'mark_stickerset:{}' def lock(self, stickerset_name): return super().lock(self._get_resource_name(stickerset_name...
e5c737ba7438c2f778e470d6672e59e569eb59a9
0062ceae0071aaa3e4e8ecd9025e8cc9443bcb3b
/solved/1929.py
a0fa4540e12577b814571bc7d86aadc14855943d
[]
no_license
developyoun/AlgorithmSolve
8c7479082528f67be9de33f0a337ac6cc3bfc093
5926924c7c44ffab2eb8fd43290dc6aa029f818d
refs/heads/master
2023-03-28T12:02:37.260233
2021-03-24T05:05:48
2021-03-24T05:05:48
323,359,039
0
0
null
null
null
null
UTF-8
Python
false
false
359
py
1929.py
def check(num): if num == 1: return False elif num == 2: return True elif not num%2: return False for k in range(3, int(num**0.5)+1, 2): if not num % k: return False return True start, end = map(int, input().split()) answer = [] for i in range(start, end+1): if check(i): answer.append(...
129f6873f3bd2a8ac86fa65b16655bdbeb0104ff
2c218a5fa0a4a8d00a783f005ec48fd2625203c6
/Python/patAndMat.py
378abede2d65d97875da4aec9093c455c2444150
[]
no_license
FlamingIce96/public
6617769eb80010da23f948c5a02884a8c29f619d
af45624c9f797eb662cb23dddb893b38ef40b549
refs/heads/master
2023-04-22T18:43:29.082483
2021-05-03T01:36:55
2021-05-03T01:36:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,588
py
patAndMat.py
# Autor: Nicol Castillo # Pat a Mat jdou proti sobe ve vzdaelnosti length. Vzdy kdyz jsou tesne vedle sebe nebo nad sebou tak si davaji # kamen, nuzky, papir, jester a spok. Ten kro prohraje se vraci pred startovni caru a musi od zacatku. Pat a Mat # se nahodne pohybuji vzdy bud o jedna nebo o dva dopraedu. from rando...
281d656baa6c7e296432a14040e94de5ec2006c8
fcb019baf343adc2ae5fcb0e32c01571d99375bc
/utils/ITS_OTS_selector.py
a24824d0f5930e0b362d3502d859059bee538cc5
[]
no_license
mikuzip01/DOC-Net
b0ed22e20b611a992164006b2cc31e9704892ea5
ea1254d71bd085f59fe15f6d2aa2981822f9a11e
refs/heads/main
2023-07-01T16:21:32.675220
2021-08-11T12:37:46
2021-08-11T12:37:46
394,901,418
1
1
null
null
null
null
UTF-8
Python
false
false
3,604
py
ITS_OTS_selector.py
import os import shutil import random from tqdm import tqdm class its_ots_selector(object): def __init__(self, gt_path:str, haze_path:str, gt_save_path:str, haze_save_path:str, start_num:int, per:float=0.5): self.gt_path = gt_path self.haze_path = haze_path self.gt_save_path = gt_save_path...
48447b29f01d63c73289a51f54cde87f6923387b
6453e8261a80e937edfbfbfa465d56b5673eef7d
/Desafio020.py
f62d0a57cca1ffebfac98f7ca5ecbb8ce11957f4
[]
no_license
Merovizian/Aula08
8ceed5fd8d505dd1d6676367e85189ad5f20f579
23319f72cf0248c2bd28e272b7dcd9fd22cb9f63
refs/heads/master
2022-06-30T18:37:24.907494
2020-05-14T13:19:18
2020-05-14T13:19:18
263,919,913
0
0
null
null
null
null
UTF-8
Python
false
false
365
py
Desafio020.py
import random print(f"{'*'*10}Desafio 020 - Sorteio Apresentação{'*'*10}") nome_a = input("Informe o nome do primeiro aluno: ") nome_b = input("Informe o nome do segundo aluno: ") nome_c = input("Informe o nome do terceiro aluno: ") nome_d = input("Informe o nome do quarto aluno: ") alunos = [nome_a, nome_b, nome_c, no...
5db481e907ee3b46d7f97705c29f2d1a78495c17
d735b8354e06eb26aa5ed0ac25ebf96bdd8d67b6
/python16/day1-21/day011 闭包函数和迭代器/04 迭代器.py
f33bb6b8dbda8c9fd96d50efeafa59f2e3db5119
[]
no_license
cn5036518/xq_py
e004766e6b2582ba37d7335320ed6b42f563c46c
ac932dc7fcb89a7a7faf8bda80791743755fd557
refs/heads/master
2021-07-15T18:44:19.244025
2020-09-12T09:38:25
2020-09-12T09:38:25
208,355,433
0
0
null
null
null
null
UTF-8
Python
false
false
3,796
py
04 迭代器.py
#!/usr/bin/env python #-*- coding:utf-8 -*- #@time: 2019/10/5 15:43 #@author:wangtongpei #可迭代的对象:str、list、tuple、dict、set、open()、range() '''''' ''' 1、对象中含有__iter__ 就是可迭代对象 ''' li1 = [1,2,3] print(dir(li1)) #dir()函数可输出当前对象(比如:列表、字符串)的内置方法 # ['__add__', '__class__', '__contains__', '__delattr__', '__delitem__', '__di...
96cf615b502b4df9c0b70996b0b38f842ef8f25e
af9aeb461a2bb560532a0de8d91294a5d4a697a6
/code_a_thon_mobilevalidation.py
f299c2b32bd8157b6288f7672bc621b87ae2fe71
[]
no_license
rkukreja24/Code-a-thon
4460310699c5b2a3ce9dcbceb9c480b135046f48
04919748281efcc3cc553b154ed1cbfc4354bc21
refs/heads/master
2022-11-23T15:19:00.997676
2020-08-01T08:17:47
2020-08-01T08:17:47
284,196,609
0
0
null
null
null
null
UTF-8
Python
false
false
820
py
code_a_thon_mobilevalidation.py
''' Created on August 1, 2020 Mobile phone validation @author: Ritu Kukreja ''' import re #importing Regex function class MobileValidation: # init method to initialze the object of MobileValidation def __init__(self): #Importing mobile number from user self.n = input("Enter mob...
f51fd7043fba53edde43f685cfdef70195f1fb4a
c3ff4f8d0c4861ff222e62f567c369e306ccab49
/helpers/datafile.py
f79c943844bcc7474740cbc63f8b6c854f374135
[]
no_license
polotent/boxy
487e367aace57e19dfbbdf882a2f5bae1e018527
0e38b05aad1ab9d97b9f264fd28917a8d6f20f7e
refs/heads/master
2023-07-15T05:53:31.341995
2021-06-05T15:32:33
2021-06-05T15:32:33
398,536,801
0
0
null
null
null
null
UTF-8
Python
false
false
445
py
datafile.py
from pathlib import Path import numpy as np import os def save_to_datafile(file_path, data): p = Path(file_path) with p.open('ab') as f: np.save(f, data) def load_from_datafile(file_path): p = Path(file_path) with p.open('rb') as f: fsz = os.fstat(f.fileno()).st_size out = lis...
6dfaf57879f439c196ccfd27ce586d61078004ca
f95fa71cf094ae9655d66a815eb6d5b4be0bc97a
/irrgb_train.py
47b3317291dbe90e878343cd73a6ef2cbae57cdd
[]
no_license
alycia-noel/MultiModalNeuralNetworks
a492b852cfac3411d43618df7d4baa8fea3f5a02
617e8cb52496e84895a6f9e6694aba7609d45f6e
refs/heads/main
2023-05-03T20:38:08.247007
2021-05-22T19:10:05
2021-05-22T19:10:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
23,948
py
irrgb_train.py
# -*- coding: utf-8 -*- """ Created on Tue Feb 9 11:20:49 2021 @author: ancarey """ import numpy as np import torch import sys import torch.optim as optim import matplotlib.pyplot as plt import torch.nn.functional as F # sklearn.model_selection import train_test_split #from torch.utils.data import Subset from torch...
0411249114860c2128d8f5232878947a5ffc3913
d2b6c08104d315784d3fdfc763e1e75c22c76e98
/main.py
a5dbde82a16356760adb34ff1323a5a9a974a7f8
[]
no_license
brendanonymous/Simple_Table_Extraction
21c4488e7f4314a3130c5f9c134ad7f5624ea0ec
a739484618b0263e943adec39cc748a9f5591fc2
refs/heads/master
2022-11-23T21:27:38.994379
2020-12-11T07:25:47
2020-12-11T07:25:47
188,126,442
0
1
null
2022-11-22T03:50:07
2019-05-22T23:18:08
Python
UTF-8
Python
false
false
3,571
py
main.py
import cv2 as cv import debug import json import utils def getData_1(original_image): """GENERIC FUNCTION TO GET TABULAR AND NON TABULAR DATA""" ############################################### # CONVERT COLORSPACE TO NEGATIVE ############################################### original_image = cv.resiz...
7688c7efbae1b40f99818a974e91c8dc7f3dab7d
8ced1dd8f90ab47582847c3123cdebd378e4fdfe
/setup.py
c40622982535df0d231518a40c0f4d055a475b0a
[]
no_license
yanne/robotframework-httplibrary
0d410c9052ad93aa65c85ddb3c63e6fb6e188ae4
ba4ce43456341f0be5ae878489fc9671a52467fa
refs/heads/master
2021-01-18T10:52:39.083961
2011-08-19T15:54:37
2011-08-19T16:10:26
2,247,166
0
0
null
null
null
null
UTF-8
Python
false
false
860
py
setup.py
#!/usr/bin/env python from distutils.core import setup CLASSIFIERS = """ Programming Language :: Python Topic :: Software Development :: Testing """[1:-1] setup( name = 'robotframework-httplibrary', version = "0.0.1", description = 'Robot Framework wrapper for livetest', long_descri...
f2c3e70dac351f31d6e89bd4d9c328d74e68a551
617b914ebe2aab3fa12ae940b427651ca38842ba
/TupleUnPackingWithFunctions.py
9b0c140cc4f2e1fb9ebd9ef3141d9f0224bffccb
[]
no_license
Prasanna-Kumar-1/Python
4effd0ed7d8bba57504f8b7a0e530d53f382aa16
d906542a2d78cf3f497212e103751e323db3448e
refs/heads/master
2023-02-02T13:48:27.437242
2020-12-21T11:12:25
2020-12-21T11:12:25
254,778,494
0
0
null
null
null
null
UTF-8
Python
false
false
612
py
TupleUnPackingWithFunctions.py
employee_salary = [('Prasanna', 100), ('Neethi', 200), ('Yash', 300)] def employee_salary_check(salary): highest_salary = 0 highest_salaried_employee = '' for employee, salary in employee_salary: if salary > highest_salary: highest_salary = salary highest_salaried_employee...
f18adf59789af1c82ac0ffdd3ba030bceb125e53
80a5541ea1da9a94d2d573047ae5bdef5cdf50f1
/BaselineAlgorithm.py
7fbae8019e01a0b9dacff4c59441a856f54573c6
[]
no_license
chrisflucas/238_221_project
2742cbd1a6c49befb602a6c18d6820620c398d45
bf8e453723c2f84904e8f2207f2aa144ae4ca756
refs/heads/master
2021-08-23T06:36:10.098920
2017-12-03T23:02:49
2017-12-03T23:02:49
108,079,219
0
0
null
null
null
null
UTF-8
Python
false
false
2,339
py
BaselineAlgorithm.py
import random from datetime import date, datetime, timedelta import data, csv #import util, math #from collections import defaultdict class BaselineAlgorithm: def __init__(self, start_state, initial_investment, stock_price_dict): self.filepath = '/Users/harper/Desktop/Fall 2017/Bitcoin Project/238_221_project/b...
ac217dc3519cb73e2a2685e0a008ab5b3e1ee468
0c6932848ffe87fec32682c0e18023e704e46ac4
/dmnist_train.py
0f0f5689af871bf765196de7dec307b1f41ebb2c
[]
no_license
abhishekaich27/AttrLostGAN
7a64fa71c96360b3469e00a608931cd6a172b347
d5700d3b6e28db248980dd6aabb3fe69d6dc1e4c
refs/heads/main
2023-07-16T03:54:43.783816
2021-08-23T08:00:16
2021-08-23T08:00:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,414
py
dmnist_train.py
import argparse import datetime import subprocess import time import warnings import os import torch import torchvision.transforms as transforms from torch.utils.tensorboard import SummaryWriter from torchvision.utils import make_grid from data.dmnist import DialogMNISTDataset from model.rcnn_discriminator_dmnist imp...
fd5aed8628db415613c922dd7880283046c1af79
7a7003eb191b805bf69842859ca9a8fc807d7c9f
/python/True.py
29b699ca1ac7477c2b582df520188df4ef9d2adf
[]
no_license
wangminli/codes
88099d4296936bcd685a0d31d63e533c54dc181a
ead0b2f85b6bfbc9a988f14e17cc70af1e6dd122
refs/heads/master
2020-12-07T13:38:28.660960
2016-11-22T11:01:47
2016-11-22T11:01:47
27,673,563
0
0
null
null
null
null
UTF-8
Python
false
false
39
py
True.py
print '3>2 ?', 3>2 print '1>2 ?', 1>2
60d3f04a4919ae29e60faf7dcd7aa31d64ef65d5
9fe525bfd3416d57a01cfbea3d786f43c91babbf
/breadapp/models/bread.py
96617266208ad5811a273ee542324454cf57c000
[]
no_license
CoopNich/Bakery
727517c594d6141d899fe18ed52eff6ea3962aee
38084d940435fcf230a81c0624b333a526faee46
refs/heads/master
2023-08-07T17:44:11.935556
2020-05-17T16:39:53
2020-05-17T16:39:53
264,213,999
1
0
null
2021-09-22T19:00:59
2020-05-15T14:24:43
Python
UTF-8
Python
false
false
520
py
bread.py
from django.db import models from django.urls import reverse class Bread(models.Model): name = models.CharField(max_length=100) region = models.CharField(max_length=100) ingredients = models.ManyToManyField("Ingredient", through='BreadIngredient') class Meta: verbose_name = ("Bread") ...
b478e859d11a6f405cfefb965392256517d6e450
419a0cea22c456cf091be211cc4b813ffc3bf978
/pysbd/segmenter.py
42a2f6dd38443d082f67d4e6fb29f7b504994733
[ "MIT" ]
permissive
databill86/pySBD
e9b2f748f5a3607e6c1c279109015d7aca9188da
1eb3292a409f85d4efe0f7079581d0f8ef5cd85b
refs/heads/master
2022-10-30T01:35:35.306743
2020-06-09T17:16:01
2020-06-09T17:16:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,631
py
segmenter.py
# -*- coding: utf-8 -*- from pysbd.languages import Language from pysbd.processor import Processor from pysbd.cleaner import Cleaner class Segmenter(object): def __init__(self, language="en", clean=False, doc_type=None, char_span=False): """Segments a text into an list of sentences with or withou...
a621352fe32059d34e419851ed7e185a9f785d28
e18758143ab4dbb29fee114fce8db6eacee1bd0e
/execute.py
c6fd165755329907b1ea05d66ceb052eba41cd04
[]
no_license
crcrpar/MorphologicalAnalysis_Japanese
89bd09885f4c802b8b4e763f7b44f4269ab0ee9d
47cc848f119f6c222e67592fa99b5abba9b95c95
refs/heads/master
2021-01-20T22:18:53.112451
2016-07-29T11:42:11
2016-07-29T11:42:11
64,476,418
0
0
null
null
null
null
UTF-8
Python
false
false
440
py
execute.py
#!/usr/bin/env python # -*- coding:utf-8 -*- ''' Python 3.5.2 :: Anaconda 4.1.1 (x86_64) ''' import MeCab import sample as S import functions as F def main(): text_1 = S.sample_1 text_2 = S.sample_2 model1_2 = F.MorphpAnalysis(text_1, text_2) coefficient1_2 = model1_2.coefficient(type = 2) print...
eab4765e4cc3d7390718925f5a7f547fd26962db
cb0f07bf8a758c9983c94848edd6bcc4ac8ffca3
/control_vna/control.py
a932049e52f336c793b5d9d08a26a2dafc7b36b0
[]
no_license
zzwang11/bishe
681d6fc3db7669fc747a577431f11427244ad021
c9f3f0f70903d3220780fb4ef2cbea41e43628bd
refs/heads/master
2023-04-23T05:06:58.813345
2021-03-02T11:09:19
2021-03-02T11:09:19
302,654,625
0
0
null
null
null
null
UTF-8
Python
false
false
3,836
py
control.py
import numpy as np import pyvisa import time import os import math def pna_setup(pna, mod, points: int, start: float, stop: float, ifband: float, power: float, edelay: float, averages: int): """ set parameters for the PNA for the sweep (number of points, center frequency, span of frequencies, IF bandwidth...
1d202fc8d490b64e41c3bdc3390faf66650a20ac
7cd884f6e7eebbabe833bde05b26f3192da653fd
/classBackend.py
422df9aacd028f8e014f778f859248f4e7911e34
[]
no_license
Siddartha1991/Descriptive-Statistics
950483896c0d1ad5997b23f44ba4712facb6902e
9acd3788dbd2b4447dd0c6314a127aabddf44f14
refs/heads/master
2021-01-19T13:31:27.146904
2017-04-12T21:38:32
2017-04-12T21:38:32
88,096,404
0
0
null
null
null
null
UTF-8
Python
false
false
24,527
py
classBackend.py
import requests import datetime import simplejson as json import tornado.web from packageStatisticalMethods.classStatisticalMethods import StatisticalMethods class Backend(object): def __init__ (self, loggerObject, configObject): self.loggerObject = loggerObject self.configObject = configObject ...
bd05681317f66d09b635d1ad3420c30b61cbf1b1
f6596e7beea8e109fe27a63bd3f905bd73f3c4fb
/helpers/purge.py
2743da872ba39c07d81b1ac1e787d54ec1ffd10b
[]
no_license
tchx84/repotools
28232641e3bf2c7fdcdcc1ffc912f9d21c415156
0dc85fac8aedc98d2321b08b0e6507b260722e8e
refs/heads/master
2020-12-25T17:57:40.222207
2014-04-16T16:23:45
2014-04-16T16:23:45
18,386,021
4
0
null
null
null
null
UTF-8
Python
false
false
1,839
py
purge.py
#!/usr/bin/env python # Copyright (c) 2014 Martin Abente Lahaye. - tch@sugarlabs.org # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any...
f247b7d24dc5ac501d4b21a9929f1f80b62a7934
286287c4ad8669d3203daf610fb4aea65dd3fc32
/pv_polyhedron.py
3534ba8b275999d9b126be1b01d0516fb3712994
[]
no_license
jmake/COMMDOM
247bb0b84acf0adcca23863ab8e58b58791a9cd8
06320f996bacf97c80d1c4602842802578a74819
refs/heads/master
2016-09-05T22:29:52.569308
2015-09-27T11:25:52
2015-09-27T11:25:52
42,774,130
0
0
null
null
null
null
UTF-8
Python
false
false
6,095
py
pv_polyhedron.py
#--------------------------------------------------------------------------||--# """ 1) Add Macro -> Add new macro Macros will be displayed in the macros menu and the macros toolbar 2) Select vtkUnstructuredGrid or vtkPolyData 3) Check the directory, Alya files will be created Created: miguel ...
4eb31321fbd26ea0a2dd1fd438ed0514ba9a1bb6
9978065abe9da846a7657b9f27d5e76e2fd0e17a
/startup.py
6d3fe6e914deef978d17a0352c8802005d0c3cfa
[]
no_license
JoeyChangPri/miniblog
172d891e237d05e8a4db74f485d1ebffb474ca70
ade26727f05a48d2ccf1298dee4fded5c4cc8d21
refs/heads/master
2021-05-31T21:46:28.816018
2013-04-10T03:43:08
2013-04-10T03:43:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,075
py
startup.py
#coding:utf-8 import sys import web from utils.baseutils import import_modules, switch_time_zone from utils.baseauth import admin_auth from db_init import db_init APPS = ("apps",) web.config.debug = False #configure the mail settings web.config.smtp_server = 'smtp.gmail.com' web.config.smtp_port = 587 web.config.smt...
b4005ea18339a81e3cbe29ef3fe5ee35a2964035
c923680803c6c733aed9f45adfe2f716a5d0b89c
/users/permissions.py
344cc0d2ccc4df95fd2e25a65309f9993ca9b17b
[]
no_license
abetkin/country_requires
69177f7c95a22b9e274ca5439254e1c4bc303a2a
1b6d8b9de91b888b7b2740a203c307ccfa79909e
refs/heads/master
2021-05-02T10:54:49.503407
2018-02-09T14:16:19
2018-02-09T14:16:19
120,765,735
0
0
null
null
null
null
UTF-8
Python
false
false
1,386
py
permissions.py
class RoleMixin: """ A mixin for ModelAdmin. """ @property def roles(self): raise NotImplementedError def dispatch(self, attr, request, *args, **kw): user = request.user role = user.role_choices[user.role] role_cls = getattr(self.roles, role) if hasattr(...
a891f59417c8b49fd2bdbe82ec3cd34e56e54192
cecd1b321aff8017345fd896d51be8f69b18355e
/python_features/list_creator.py
2716cc955116f101c497bfc610dd125e1d230db6
[]
no_license
slashhuang/python-starter
5a2b683faecc42ba90f682b194b0fdf0fb7621b3
b73305268b9310fe01ec5fc56f01d1ad92a2943f
refs/heads/master
2021-01-11T03:30:54.407962
2016-12-19T15:44:52
2016-12-19T15:44:52
70,999,278
0
0
null
null
null
null
UTF-8
Python
false
false
476
py
list_creator.py
l = range(1,10) l1 = list(l) # 非常像个种子 bean print(l1) l2 = [] for i in l: l2.append(i*i) print(l2) print([ x*x for x in l1]) # 列表生成式用一行语句代替循环生成上面的list: # 两层循环 print([m + n for m in 'ABC' for n in 'XYZ']) d={ 'a':'1', 'b':'2' } d1 = [ k+v for k,v in d.items()] print(d1) ## 总结: 整体看来,这种语法内部的逻辑 基本也是 function r...
b70dca8496659ae68e3c3b0a842bcbbf6212f089
b4a008c5d910c5a92f4146aa659fba6d603e2a59
/ML with Python/ModelEvaluation&HyperparameterTuning/Unbalance_of_Classes.py
141e0f2e1107bebb6837faa6c56aef5ba44a876a
[]
no_license
Taiki92777/playground
4941406158791e2854afcf6c0f1e07d695a4b3f9
2464129657a240a8e8a533febcee40349a38673c
refs/heads/master
2022-11-13T13:33:51.398081
2020-07-09T08:01:47
2020-07-09T08:01:47
172,322,464
0
0
null
null
null
null
UTF-8
Python
false
false
1,085
py
Unbalance_of_Classes.py
#%% import pandas as pd from sklearn.preprocessing import LabelEncoder import numpy as np #%% # load data & label them df=pd.read_csv('http://archive.ics.uci.edu/ml/machine-learning-databases/breast-cancer-wisconsin/wdbc.data',header=None) x,y=df.loc[:,2:].values,df.loc[:,1].values le=LabelEncoder() y=le.fit_transform(...
cefd671281bd132c2ef3bb82d3aef4ffffa0afd7
c9cc9272a4b39cbbc323dd93fcab688e61a7d5fc
/doc/example_extrapolate.py
d61cfaab4fbf52ddef08e5227e0b2425bf98bd9b
[ "MIT" ]
permissive
nismod/ukpopulation
fda3f7d2aa26b4241ac751180c3234c765c81275
72c6b4c5f30028953099d625d19b1ee7e73aaffd
refs/heads/master
2022-12-14T11:41:54.753932
2022-09-21T11:27:35
2022-09-21T11:27:35
131,988,266
10
8
MIT
2022-12-08T10:53:57
2018-05-03T11:57:13
Python
UTF-8
Python
false
false
1,184
py
example_extrapolate.py
import matplotlib.pyplot as plt import ukpopulation.myedata as MYEData import ukpopulation.nppdata as NPPData import ukpopulation.snppdata as SNPPData import ukpopulation.utils as utils # initialise the population modules mye = MYEData.MYEData() npp = NPPData.NPPData() snpp = SNPPData.SNPPData() lad = "E07000041" # E...
934c626ff50005051582fddcfd55cac73f02ddb6
b26c41926fa3a7c2c061132d80e91a2750f2f468
/tensorflow_probability/python/math/integration_test.py
532d786331d3b43f05e804f63316b261f1bbdf94
[ "Apache-2.0" ]
permissive
tensorflow/probability
22e679a4a883e408f8ef237cda56e3e3dfa42b17
42a64ba0d9e0973b1707fcd9b8bd8d14b2d4e3e5
refs/heads/main
2023-09-04T02:06:08.174935
2023-08-31T20:30:00
2023-08-31T20:31:33
108,053,674
4,055
1,269
Apache-2.0
2023-09-13T21:49:49
2017-10-23T23:50:54
Jupyter Notebook
UTF-8
Python
false
false
8,327
py
integration_test.py
# Copyright 2021 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
65677dfe0d5d5c55d0d70f0c2bb74257122b7392
1823a298bcbb39288eb698d367cf810f433eba30
/histogram.py
4ffb30259a3f2b9ae4636aa19af5ef55d5c6d866
[]
no_license
thethirdtomas/Developer1-Programming-Challenge
40f5302800b6edee1a5acc81646f116848744b5f
7b802c71a5f65a69875e77bcf4795c78eb8b8aa4
refs/heads/master
2022-04-02T02:47:55.330371
2020-01-23T22:04:27
2020-01-23T22:04:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,768
py
histogram.py
#!/usr/bin/python3 import argparse import re def main(): #Argument Parsing parser = argparse.ArgumentParser() parser.add_argument('infile',help="Input Filename") parser.add_argument('outfile', nargs='?',help="Output Filename") args = parser.parse_args() #Filenames inputFilename = args.inf...
27b7b037d7fa0bc34aa6918d63d0dee49ad268be
117ce7784cb46148c13a7fc1bba9079fbeb64c0a
/mapzen/exceptions.py
eee6dc0478a6fe240f69dd3bb0a923f2bbd8541a
[ "Apache-2.0" ]
permissive
duydo/python-mapzen
9d45e673f31e80e868d59e1822efe07880f639fb
3fd559c08bea26b52de1eacaa6d6b0448d3596b3
refs/heads/master
2023-05-25T10:02:07.725917
2023-05-10T11:41:08
2023-05-10T11:41:08
69,170,279
8
8
null
2023-05-10T11:41:09
2016-09-25T14:45:23
Python
UTF-8
Python
false
false
558
py
exceptions.py
__author__ = 'duydo' class MapzenError(Exception): """MapzenError exception.""" def __init__(self, reason=None, status_code=None, response=None): self.reason = reason self.status_code = status_code self.response = response super(MapzenError, self).__init__(reason) def __s...
4add82145953d6dfbb168ab83073e5ddfc2902ab
1d442bbe16325e6cc049fef3b4d5c5c4042623b1
/search_strings_in_git_log.py
e435a4ad785b9635a7f83b37795778fa22326ef9
[]
no_license
iminuet/python-scripts
23c203c75a8c8d5e253ed29cba02861493f188c8
e32ec00cbf4073c13ebf7aeb64476dcac5cb79e9
refs/heads/master
2021-01-21T10:59:55.916839
2017-03-01T06:15:07
2017-03-01T06:15:07
83,510,280
0
0
null
null
null
null
UTF-8
Python
false
false
3,817
py
search_strings_in_git_log.py
#!/usr/bin/env python import os, re, time #File: search_strings_in_git_log.py #Goal: Use this script to find specified strings in git log such as # " fman ", " nand " and kinds of IP blocks. Then it shows # the whole lines and the commit ids that are related to the string. # #Attention: # Need blankets before ...
7492510a3750841de2818289a43469752aeebd83
988afaa7defdfa3bcf507ecb33220aea67ba778c
/vallorem/model/date_promotion.py
60aac97e599a893e85b364a41345e667fd5ec030
[]
no_license
gkrnours/vallorem
30dd1757816dfb5457466c56f0b9efbd56011463
8e4311aaf5ed332c858a6215bc92e60ada407a8f
refs/heads/master
2021-01-13T05:25:42.522898
2017-02-09T21:34:50
2017-02-09T21:34:50
81,437,453
0
0
null
null
null
null
UTF-8
Python
false
false
1,116
py
date_promotion.py
from sqlalchemy import Column, Integer, ForeignKey, Date from sqlalchemy.orm import relationship from vallorem.model import Base, db, Statut class DatePromotion(Base): __tablename__ = 'date_promotion' id = Column(Integer, primary_key=True) id_personne = Column(Integer, ForeignKey('personne.id')) id_st...
a6145e5ea29f19914b1925b611006269e34d7185
ec46774b4471abcf9e46177fe2ae9572d8376cd5
/NaiveBaynes/NaiveBaynes.py
dbb33b6aa03cd2b9f15403fbd6261144dee686bf
[]
no_license
nashebismaily/pyspark-mlib-machine-learning
f390ebe230d99f27e39dde34acdac7015366c613
66871f6b6e7570f6476b5c7bb35546b936c6c046
refs/heads/master
2020-03-24T04:28:22.177253
2018-07-26T14:47:46
2018-07-26T14:47:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,353
py
NaiveBaynes.py
from pyspark.mllib.classification import NaiveBayes, NaiveBayesModel from pyspark.mllib.linalg import Vectors from pyspark.mllib.regression import LabeledPoint from pyspark import SparkContext, SparkConf conf = SparkConf().setAppName("Liner Regression").setMaster("yarn") sc = SparkContext(conf=conf) data = [ ...
835351ae6da93937b615a7a9f749a8abd1dfded9
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2063/60686/237951.py
6fe6584d2d15197dbbb6eefd768c4375dc319526
[]
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
55
py
237951.py
input_str = input() print(input_str[::-1] == input_str)
046d80a9825b4fc95c29da52d35f7b289fa23361
17eb1276044df2ee98a1e4960092deaf1cf8304b
/master_phone_book.py
3167dd864c92b24d0d3b12f21eb5465f9d968ba3
[]
no_license
Pumala/python_phone_book_app
74a5350d9ae2b0da1be7488325e29031ed83f49f
c246376582673e0ad856a2bed1adbe8932ea1471
refs/heads/master
2020-05-29T09:15:13.909837
2016-09-29T17:32:44
2016-09-29T17:32:44
69,525,825
0
0
null
null
null
null
UTF-8
Python
false
false
3,432
py
master_phone_book.py
import pickle from os.path import exists if exists("master_phonebook.pickle"): phonebook_file = open("master_phonebook.pickle", "r") phonebook_dict = pickle.load(phonebook_file) phonebook_file.close() else: phonebook_dict = [] def get_phonenumber(): for index in range(0, len(phonebook_dict)): ...