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
dee4c9156b35a8d5de8be041da60014eb615af84
758c2956d61565cbe2e8e0ae3e53f018292a9a10
/DBManager.py
d2277a12bfb1d3a95b248f7f762991f57709dc48
[]
no_license
Reeker-Liu/LeetCodeInfo
de4d3f70267fc2e86598c0d3e2351858aa0eff0c
3fe647347e09b5e87122fd43d97e4558b336c816
refs/heads/master
2020-05-07T16:38:54.183145
2019-04-22T07:19:02
2019-04-22T07:19:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,685
py
DBManager.py
import sqlite3 import InfoGetter ''' TABLE USER (id, uid, isauditor, solved1, solved2, email, iscn) ''' def get_data(): conn = sqlite3.connect('info.db') cursor = conn.cursor() cursor = cursor.execute("SELECT uid, email, solved1, solved2, isauditor, iscn FROM USER") infos = cursor.fetchall() # [uid, ...
8daf34111407aa3529c84fd0da9f74e93c54eef8
cda1ec0daaec639785fa59c7bacb03bb3ca489a2
/Loan Approval Prediction.py
e112a2f58d7266f18a3f77b6bcfd0118058c3192
[]
no_license
Hanzala04/ML-Model
daa9d9517383decd2d86374827b8efa9cb7dbaaf
c7d5e25a00362c6059fa1e670d7f6bb246b92849
refs/heads/main
2023-05-26T19:28:29.029040
2021-06-19T08:12:10
2021-06-19T08:12:10
378,358,900
0
0
null
null
null
null
UTF-8
Python
false
false
6,424
py
Loan Approval Prediction.py
#!/usr/bin/env python # coding: utf-8 # # Loan Approval Prediction # ## by- Hanzalah Mazhar # In[70]: import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt get_ipython().run_line_magic('matplotlib', 'inline') # In[6]: train = pd.read_csv("C:/Users/hanzu/Downloads/train_ctr...
6fbb0259408b53d0dc4a935148f065f21b6c5bde
06e095e00f9c24471b282bba55e4c4120628a3d9
/blackfriday/apps/showcase/controllers.py
670ece67de9ffe6bdb8930145215f45900dbf761
[]
no_license
vitpetz/bf
fd90520a6c1cac0c2c046951056a9e1453a49e81
ac952c4f1ddc72a1ef5e6b9fc1ee51c8fd4dc6be
refs/heads/master
2021-08-18T23:27:52.300583
2017-11-24T06:05:08
2017-11-24T06:05:08
110,952,886
0
1
null
null
null
null
UTF-8
Python
false
false
12,379
py
controllers.py
from django.template.loader import render_to_string from django.db.models import * from djangorestframework_camel_case.render import CamelCaseJSONRenderer from apps.banners.models import Partner from apps.advertisers.models import Merchant, Banner, BannerType, ModerationStatus from apps.catalog.models import Product,...
228ba7b01c977be5668360345c8510f46972cc6b
8f7e954dc252dbd4c67c440f842d53677f400046
/sanguo/libs/middleware.py
cc1b3ce08c1396b7440159771301ee84265d0c05
[]
no_license
wyrover/sanguo-server
769a5f68a2c8af06fa6e98dba35d69ae97d6967b
546a4e1fde607ebe956cd8780a9507452f2c361f
refs/heads/master
2021-01-18T03:07:43.436323
2014-06-16T09:38:18
2014-06-16T09:38:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,719
py
middleware.py
# -*- coding: utf-8 -*- __author__ = 'Wang Chao' __date__ = '4/10/14' from django.http import HttpResponse from libs import ( NUM_FIELD, METHOD_POST, MSG_TYPE_EMPTY_SESSION, unpack_msg, crypto, ) import protomsg from protomsg import COMMAND_REQUEST, COMMAND_TYPE class RequestFilter(object): ...
9a79452b6cdf3739c3b04931ba4b9fff552b1850
997c7d2dff1589b99740ea405dab99878ff11bc2
/src/lotus_nlte/interpolation/__init__.py
e0054c374f4579b7c62279594169d75a903dcb25
[ "MIT" ]
permissive
Li-Yangyang/LOTUS
b637fa8a82c04686805073ab047c01c88c922004
a0d590c8a6c38c99f1330e9cd326c70a65c50c1b
refs/heads/main
2023-04-14T04:22:18.949912
2023-01-04T02:29:06
2023-01-04T02:29:06
429,169,427
9
1
null
null
null
null
UTF-8
Python
false
false
153
py
__init__.py
# -*- coding: utf-8 -*- __all__ = ["MultivariatePolynomialInterpolation", ] from .multipoly_interp import MultivariatePolynomialInterpolation
141ae59c464729a011e789a88fe5d287a21afe82
a3f619aca8709a5be63e68dd40df7532fa404aa6
/prep/prep_rob05.py
9ac7364a6a5b513d0f5f09088bf6bab09f7511fe
[]
no_license
irgroup/clef2021-web-prf
25228915e41d06e550228fdfc6393b62f95a35b4
1d49b65f5cc7dadc83eb7ffd188d290a1e9ffc75
refs/heads/master
2023-05-30T05:03:59.991387
2021-06-16T15:43:16
2021-06-16T15:43:16
376,763,086
0
1
null
null
null
null
UTF-8
Python
false
false
418
py
prep_rob05.py
import os from conf import path from core.data import raw_text_from_trec, clean_raw_text if __name__ == '__main__': if not os.path.exists(path.ROB05_RAW): os.makedirs(path.ROB05_RAW) raw_text_from_trec(path.ROB05_ORIG, path.TMP_DIR, path.ROB05_RAW) if not os.path.exists(path.ROB05_CLEAN): ...
bbe60770433ad65de4140e93e80e9c9cd44a95ea
f3fa7f0d8a692decc030a532d358f795d430d102
/minlist.py
7ce2dc639ceddbe742bd411eb321ad726de56999
[]
no_license
ANBU1305/anbu
150579138dbd5e15b8159de73d24fef0b8f81d5c
e6c4af29b319841001221905c43926b9595d9103
refs/heads/master
2020-06-26T23:12:50.995628
2019-08-17T12:32:35
2019-08-17T12:32:35
199,784,095
0
0
null
null
null
null
UTF-8
Python
false
false
85
py
minlist.py
list1 = [10, 20, 4, 45, 99] list1.sort() print("Smallest element is:", list1[0])
b44039b6f9824251d5ef7eab49a993df7f186e44
3a672865fb998d27005ce9d374fc17798cabfe01
/simple_message.py
058c0175f295ba34faa39fd42ce793e90e2db3e4
[ "MIT" ]
permissive
kshitiz-bakshi/WhatsappBot
14d6210b4dc1d6ac12c0908cab6d744a8809848b
bce1856ce89aedb3d67468ed9566429ce99e2a9c
refs/heads/master
2022-04-21T18:53:33.589215
2020-04-18T20:07:15
2020-04-18T20:07:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,200
py
simple_message.py
# The following script has been developed by Amartya Mondal. # For more details visit https://atm1504.in # Follow me at https://github.com/atm1504 from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webd...
36b556e07df8e44481a062b42c3d38b6fc35e0a1
931c81dd82f9a71792fc9496968845d850cb3ec1
/pmedian.py
96375d2aab62c53e58c3382088b408bd608538e4
[ "MIT" ]
permissive
jump-dev/MOIPaperBenchmarks
f8dd79992034d0aec0e6dc532398b82cd6bc9eca
ff696f730ec79cc2e3d9d2f22123ff9756c7c90c
refs/heads/master
2023-08-31T19:17:09.393009
2020-10-07T16:24:03
2020-10-07T16:24:03
278,383,589
0
0
NOASSERTION
2020-10-07T16:24:04
2020-07-09T14:14:04
Julia
UTF-8
Python
false
false
5,209
py
pmedian.py
import cvxpy as cp import json import numpy as np import scipy.sparse import time def generate_problem( num_facilities, num_customers, num_locations, customer_locations ): facility_variables = cp.Variable(num_locations) assignment_variables = cp.Variable((num_customers, num_locations)) facility_locatio...
80b24d07492ea142a28c6bb73a3c4d94745c0d43
89612f42244f296bcf49e2c611d2f0f587ab0af7
/main.py
79a20aa9f4d68f8813aa583a88e83ae68056f251
[]
no_license
Petrus97/KruskalAlgorithm
b0b5c8403f48372509b82671461c7dae03707687
64bddf7c23b61bd72bff103df0d8a9bffe7f1e10
refs/heads/master
2020-12-20T17:41:29.939331
2020-09-14T21:11:07
2020-09-14T21:11:07
236,158,429
0
0
null
null
null
null
UTF-8
Python
false
false
186
py
main.py
import experiment import psutil def main(): print("Start program\nMemory info: " , psutil.virtual_memory()) experiment.start_experiment() if __name__ == "__main__": main()
977f8097bddffabe770222e7344289d7fa9828cc
97baa1fb50ec94604302c857e5492d11b4d634cd
/Basic_Python/colour_display.py
663427254b48574fa0524d90daf8fac9262e84a3
[]
no_license
Uthsavikp/Python_Data_Structures
eae298d95f71add4e9832cd441f36bc05c94fc35
3b2ae6f743fb909a5f5851e3dd30d3c3e31d160b
refs/heads/master
2023-03-03T11:38:59.518486
2021-02-11T17:11:27
2021-02-11T17:11:27
326,762,882
0
0
null
null
null
null
UTF-8
Python
false
false
324
py
colour_display.py
''' * @Author: Uthsavi KP * @Date: 2020-01-04 15:14:56 * @Last Modified by: Uthsavi KP * @Last Modified time: 2020-01-04 15:14:56 * @Title : To display the first and last colors from the list. ''' def get_first_last(): color_list = ["Red","Green","White" ,"Black"] print(color_list[0:4:3]) get_first_last()...
a36fc5b87b7e7ffe65cd79c1f87d78cdd2e35c92
58b63be85fd89769035445662cc5693aedefc5c3
/mysite/mainapp/migrations/0004_auto_20200505_0838.py
f91311133f3b998c9a7bd4bd04aee5e643a70cde
[]
no_license
ris-iris/Characterigy
0ddd1a149650aa374512e2df8bafaa5e251aaceb
3583e96f4a6a905ab6ecb02d28787b03f0728a88
refs/heads/master
2022-12-28T19:14:44.858412
2020-10-03T17:08:26
2020-10-03T17:08:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,229
py
0004_auto_20200505_0838.py
# Generated by Django 3.0.5 on 2020-05-05 08:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('mainapp', '0003_character_armor_class'), ] operations = [ migrations.RemoveField( model_name='character', name='weap...
9431c5a4be59363d7db4cc14dc2df7a3b74e4f35
4569d707a4942d3451f3bbcfebaa8011cc5a128d
/ticketconditionalcreationstatusplugin/0.11/ticketconditionalcreationstatus/ticketconditionalcreationstatus.py
9e5a9836a80151ebbc6047455d151fdeba039c53
[]
no_license
woochica/trachacks
28749b924c897747faa411876a3739edaed4cff4
4fcd4aeba81d734654f5d9ec524218b91d54a0e1
refs/heads/master
2021-05-30T02:27:50.209657
2013-05-24T17:31:23
2013-05-24T17:31:23
13,418,837
0
1
null
null
null
null
UTF-8
Python
false
false
2,447
py
ticketconditionalcreationstatus.py
from trac.core import Component, implements from trac.ticket.api import ITicketChangeListener from trac.config import Option class TicketConditionalCreationStatus(Component): implements(ITicketChangeListener) unowned = {} owned = {} def __init__(self): criteria = self._ccs_config('criteria')...
c8faba37cafb860d55f7edcf97d11c7ccca16339
373a2c60be74ab1b9c9fc509a6e75de383e6cd4c
/_site/week12/solverlibs.py
ef86f5343b92e00ca773805331f625850f86ea15
[ "BSD-3-Clause" ]
permissive
Kiki-67/is445AOG_fall2020
21ca889fee99640a5ea1f1c0575fee0830a10dbd
ae0c9c7cb97f37fc95e971f6cba50a8350eac08a
refs/heads/master
2022-12-20T08:37:39.070034
2020-10-17T23:08:18
2020-10-17T23:08:18
299,364,681
0
0
BSD-3-Clause
2020-09-28T16:16:09
2020-09-28T16:16:08
null
UTF-8
Python
false
false
9,638
py
solverlibs.py
import numpy as np import math # unit conversions MassOfSun = 2e33 # g MassOfJupiter = 1.898e30 # g AUinCM = 1.496e13 # cm kmincm = 1e5 # cm/km G = 6.674e-8 # gravitational constant in cm^3 g^-1 s^-2 #--------------------------------------------------- #--------------------------------------------------- # Nu...
26129293a5c7042a8f5eb76d5cec516e5f55275c
f2f3d11106ba771ac2fbf551dfe5212ddbf37154
/scripts/data_analysis/download_files.py
9bf551f42b9392313032784bdeca7d5d6d43c4b9
[]
no_license
JMS55/HACS2001FTheMatrixScripts
7955419d4cedbf64dd2bdd656dd2a450ce8afa8e
7b3c56d432a41953287962be0f6f64727bc8dac8
refs/heads/master
2023-01-24T11:47:04.926300
2020-12-07T03:55:08
2020-12-07T03:55:08
299,722,073
0
0
null
null
null
null
UTF-8
Python
false
false
1,174
py
download_files.py
import parser def calc(with_cat): total_attacks_control = 0 download_file_attacks_control = 0 total_attacks_experimental = 0 download_file_attacks_experimental = 0 attacks = parser.getAllAttacks(".", with_cat) for attack in attacks: if attack.template == "201": total_attack...
525846fbfe67abf7b659324e3b09219a466c9801
c2163469114fd51911da271d90458182cf113d0f
/Homework_02/Task_12.py
4e49dc70a8125f40d21456f7eda8093b0f9b17e2
[]
no_license
sidorina-katerenko/Hillel-Introduction-Python
5022a6dd3f3774b5e89c8b808cdf48187d82a7c9
29bf8cefaa828cc91b25d34c1a9b97b449a530ad
refs/heads/master
2022-03-02T03:03:29.880429
2019-08-10T21:03:05
2019-08-10T21:03:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
623
py
Task_12.py
# Напишите программу, которая считывает целое число и выводит текст, аналогичный приведенному в примере (пробелы важны!) # Первая строка содержит следующее значение, а вторая строка содержит предыдущее значение введёного числа n = int(input('Please enter an integer number: ')) print('The next number for the number {}...
008c98be415fc06a62ec34ec15e49d715cca516d
8c10e0772812861c298d5c42f704f5c730aedee6
/2021/Qualification/e/test.py
48461694fafa5e6eabd4e7820cc79fa3e620ebd7
[]
no_license
lucifer1004/codejam
0ad2e3ab6032e1807646e628e9d4efe492b6b586
ed7a71651d50540d05945b1539f14347da11d9c8
refs/heads/master
2022-05-05T07:07:20.895931
2022-04-09T04:12:10
2022-04-09T04:13:28
236,502,409
1
0
null
null
null
null
UTF-8
Python
false
false
710
py
test.py
from math import exp from random import random, randint import numpy as np T = 1 P = 86 N = 100 M = 10000 def solve(x, cheat=False): if cheat and random() < 0.5: return '1' return '1' if random() < 1 / (1 + exp(-x)) else '0' skill = np.random.uniform(6, size=N) cheater = randint(0, N - 1) skill[che...
291657698f51b8c0c48e64140420a74478cd3281
c31c8095ce4d4e9686e3e7ad6b004342e49671fa
/forum/migrations/0153_auto_20190701_1559.py
c42dd25db78ddb14944f029b6da9c3f1c6d619de
[]
no_license
Lionalisk/arrakambre
7bcc96dea2ca2a471572bfb1646256f1382ce25b
2caece9be5eebf21ddfa87a6c821c32b5d5019a2
refs/heads/master
2020-12-07T19:31:24.471090
2020-01-09T10:14:29
2020-01-09T10:14:29
232,782,172
0
0
null
null
null
null
UTF-8
Python
false
false
715
py
0153_auto_20190701_1559.py
# Generated by Django 2.1.3 on 2019-07-01 13:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('forum', '0152_action_regle_associe'), ] operations = [ migrations.RemoveField( model_name='perso', name='PC', ...
9a73afc44875a5677cbd45571690a43ada4c846a
a69e2a119fbcd457a9400be1699f26453d7928d9
/homework204_csv.py
e359ebbbce2fcf9516536b315bdf29a1264158c0
[]
no_license
AyratTatlybaev/LearnPython_lesson2
cc44ab892c3c0f7ba6c991670cb25e34049f2723
f699cb90c44aa67737f1d79d007ff544c10ad626
refs/heads/master
2021-01-18T15:52:31.725628
2017-03-30T09:30:55
2017-03-30T09:30:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
382
py
homework204_csv.py
import csv answers = {'hello':'Hello bro!','how are you?':'i am good', 'goodbye':'I will see you'} with open('get_answer.csv', 'w', encoding='utf-8') as f: fields = ['ask', 'answer'] writer = csv.DictWriter(f, fields, delimiter=',') writer.writeheader() #for user in answers: # writer.writerow(u...
181f6f8696136ee916351b504562fedf90c8e573
1880cba585c34622d91a85246f97550e0b99edf0
/Password Generator/generator_pass.py
fba4b844a0b80f8546f03e12a968e8e0224f4b0d
[]
no_license
demirezenmert/Python
a9fa5ec6a857e7d9c9dfb9bf48cf93bfe7c30f78
7be314f05934397d67e548e7ad6be1fc4a8eca7b
refs/heads/master
2022-05-27T23:05:35.892868
2022-05-13T21:40:16
2022-05-13T21:40:16
247,985,977
0
0
null
2022-05-13T21:40:17
2020-03-17T14:07:52
Python
UTF-8
Python
false
false
878
py
generator_pass.py
# Created by Mert Demirezen # Copyright © 2019 Mert Demirezen. All rights reserved. import random as rd def generatorPass (key) : try : key,a,b =key[0],int(key[1]),int(key[2]) if a<b : print("lenght will keep default 4,6") a,b = 4,6 except : key,a,b = key[0...
b619112fa6173278658b0d0375bf9b1bfa64b345
7984ca81eadbdddaa88c5fe928bd9341391b7af6
/JDjango/api/cmdtools/reduce.py
2d07e408a107abc7bf30ca995705956d49bcf4d3
[ "MIT" ]
permissive
JIYANG-PLUS/JDjango
982243d1569c0d6bbfd0a23506b9cda4e0614cfa
57cbb13b2b4c07f34d546c0c637c22f60c1e692a
refs/heads/main
2023-06-04T14:29:31.324128
2021-06-16T04:36:45
2021-06-16T04:36:45
318,136,117
3
0
null
null
null
null
UTF-8
Python
false
false
2,685
py
reduce.py
import os, re ### HTML patt_del_comment_html = re.compile(r'(<!--.*?-->)') # 删掉注释 patt_del_space_html = re.compile(r'(\s+)') # 删除多余的空格,只保留一个 ### CSS patt_del_comment_css = re.compile(r'(/[*].*?[*]/)') patt_del_space_css = re.compile(r'(\s+)') ### JS patt_del_comment_js = re.compile(r'(/[*].*?[*]/)') patt_del_space_j...
40b1480e8bdde24ba3311aabbf5d42082064f878
21bd6e46eeb4501dfe94b4ad91f6a60fc3b2d014
/First.py
145fd638984d471ce9f2c5a2aae74f60656630f0
[]
no_license
matty-allison/Databases--EMOP
f8f6f17158d95dc4cf1d381370ea3df3aa84205c
75cb22d08f9ee7190aae4b466183a06345ba026c
refs/heads/main
2023-06-16T04:46:55.012782
2021-07-09T13:41:49
2021-07-09T13:41:49
383,169,197
0
0
null
null
null
null
UTF-8
Python
false
false
1,493
py
First.py
from tkinter import * # First window for navigation root = Tk() root.title("Welcome to Lifechoices Academy") root.config(bg="Green") root.geometry("450x355") # Function and bind to bring in Admin features def admin(event): root.destroy() import admin root.bind("<Control-a>", admin) class Weclome: ca...
1c06f340a54b4881674fa5d9ff234d59e2e8ec37
c0d1062b09620df35c0ac59e526e9750510f2b9e
/project/predictor.py
a0a8c7680f044e647817ec0e2bdffdc06d6fbbf5
[]
no_license
aksagile/news-recommendation-website
180ce4880dd025f18b1c50f4b7d09a6319175af9
b54fc30ca5354eb14a58cbc914a898dacc4aa64b
refs/heads/master
2021-06-12T02:15:24.759988
2021-05-31T10:45:08
2021-05-31T10:45:08
160,785,710
0
0
null
null
null
null
UTF-8
Python
false
false
10,549
py
predictor.py
import sys import pickle import tweepy import urllib.request import urllib.error #import httplib import json import numpy as np from html.parser import HTMLParser from collections import Counter from nltk.corpus import stopwords # Get Keys (requires a module named "apikeyspath.py" with your API keys) from apikeyspath...
274fd24d9edae19b7680c5282d266649528b83f0
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/CodeJamData/12/42/20.py
96c07ee9de880c7d723c090e46c627b12bd189d5
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
1,080
py
20.py
""" # gen input import random R = [] for i in range(1000): R += [random.random()*100000] S = 5*3.14159265358979*sum(r**2 for r in R) print 1000,S**0.5,S**0.5 print " ".join(str(r) for r in R) exit(0) """ for test in range(input()): N,W,L=map(float,raw_input().split()) R=map(float,raw_input().split()) R = [r*1.0000...
ef57a23df66e8277fd0ecfdc0261fae4be4a42f9
a2c900ee2dab5fab05fdb0f90ab3bbf1637fcf15
/backend/analyses/serializers.py
e0f863bc053f32c62fd213eb079140e0d34c20e9
[]
no_license
yaodong/sci-vis-extension
edd1e26444b6c16026f75d108454d3663c7eafb1
55669add5b995dc45cbe365d42a4bce2d857e407
refs/heads/master
2021-03-22T03:42:59.076061
2018-04-17T05:45:22
2018-04-17T05:45:22
82,205,060
0
0
null
null
null
null
UTF-8
Python
false
false
379
py
serializers.py
from rest_framework_json_api import serializers from analyses.models import Analysis from datasets.models import Dataset class AnalysisSerializer(serializers.ModelSerializer): dataset = serializers.PrimaryKeyRelatedField( queryset=Dataset.objects ) class Meta: model = Analysis fi...
d3fff226f3acd19dc92fee29276395fb0546f7de
5f27bc1a0460a078f6fe33a544f494a5dff7f452
/script/test_/randompick.py
ba0e196cf99f9b89af760ab7945a025bcf2aa070
[]
no_license
A-Why-not-fork-repositories-Good-Luck/arm_move
3e381f0310265f47da14beaac136c358fb318f92
e2e6182cfd93df1935bd3b8e9158134964dc44fa
refs/heads/master
2023-03-15T18:37:17.337770
2020-11-18T06:46:06
2020-11-18T06:46:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
380
py
randompick.py
import numpy as np obs = [[0, 0], [0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6]] poss_obs = [0, 1, 3] for po in poss_obs: print "\nwork with rearranging additional ", obs[po] for po1 in poss_obs: poss_obs2 = [2, 4, 5] for po2 in poss_obs2: print "\nwork with rearranging additional ", obs[po1] ...
af8109d16604cab3886bbc84caf24862d36902f6
d7819a1983a001b1a32529938ffc5cd965aeff05
/day10/tower_of_hanoi.py
8a274232d4f35eb59e0126f4d4d84b60da385740
[]
no_license
artintZ/python
f1c41bc98354d90a2b1991a752e9930c0b267cf9
912b9588488a95321d5380066225bbe40710821d
refs/heads/master
2020-04-15T09:25:34.057230
2019-04-28T14:45:07
2019-04-28T14:45:07
164,549,251
0
1
null
null
null
null
UTF-8
Python
false
false
735
py
tower_of_hanoi.py
# Author: zzk N = 4 l1 = [] l2 = [] l3 = [] for i in range(N, 0, -1): l1.append(i) print(l1, l2, l3) def move(sa, sc): global l1, l2, l3 if sa == 'A' and sc == 'B': l2.append(l1.pop()) elif sa == 'A' and sc == 'C': l3.append(l1.pop()) elif sa == 'B' and sc == 'A': l1.appe...
aeaae71dd026d202a77215e638414b752efec9d6
6aa6b81cdf500c43871a5b06ae1b4643f06f8c26
/scrim/forms.py
d5697a5bff03bd9a70496565272ee0e634c01d66
[]
no_license
Munsterberg/lolapp
d8820e37e0996099fe4c91b14753758631cb01e4
629099b4dd2c106a0338e30c2e1880656b675ec8
refs/heads/master
2021-01-19T06:00:09.840233
2016-03-12T22:25:08
2016-03-12T22:25:08
34,120,106
0
0
null
null
null
null
UTF-8
Python
false
false
183
py
forms.py
from django import forms from .models import Scrim class ScrimForm(forms.ModelForm): class Meta: model = Scrim fields = ('team_name', 'team_captain', 'region')
c86a91f8e6016d8f818f71bf360f17b30c987dc4
27b33fdb911eda49796ff6b6876ad017cd2534f9
/python-mysql/二进制存储/demo2.py
7a3365aa13b32c09735af8a551ecbb3f2ef4df5e
[]
no_license
changyinliangbaikai/python_study
b00b355446b4547eaed61af3f8ce106a570e53d7
10b6b8c457a0a33f0f9f6057a0cbd1f2b4913f36
refs/heads/master
2021-06-23T10:35:01.253535
2017-08-16T02:41:07
2017-08-16T02:41:07
100,439,099
0
0
null
null
null
null
UTF-8
Python
false
false
843
py
demo2.py
#!/usr/bin/env python # coding=utf-8 import MySQLdb def get_db(): db = MySQLdb.connect(host="127.0.0.1", user="root", passwd="123456", db="spider", charset="utf8") #db = MySQLdb.connect(host="192.168.0.128", user="root", passwd="123456", db="spider", charset="utf8") # db = MySQLdb.connect(host="123.57.26....
4eae01525f5ab4732f5afcbc4a80f04800e888c3
8ea75ea13ea1f2742fcece3512988c9ae06d9157
/Data.py
af4347c73296d83d091f85d8ce65e1456c32b3bf
[]
no_license
Danti0ch/PerformanceTracking
477aeb9e4d9b98a340245e20568991e91712b971
4e3651280bffb3a5005e760277f1ed356ca4d8e2
refs/heads/main
2023-08-29T04:31:00.332802
2021-10-23T09:49:02
2021-10-23T09:49:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
20,258
py
Data.py
import datetime import sqlite3 as sql import matplotlib.pyplot as plt import matplotlib.ticker as ticker from telebot import types from loger import log ''' АЛГОРИТМ ВЫЧИСЛЕНИЯ СЛОЖНОСТИ НОДОВ (СЛОЖНОСТЬ ЛИСТОВ РЕГУЛИРУЕТ ЮЗЕР) 1) складываем сумму сложностей всех листов для каждого нода текущего уровня в м...
1a8e0b1d29c9257d582f5b5c2eac2595f2076c81
728bb0cd45d7526890cf9aec7dbdd3967739f600
/museum_app/models.py
79b4ef4be240486c79edd9ebe6eb5837e1ec7a54
[]
no_license
Zuzanna-Trafas/museum-db-management
cab6883a3889e33265961a1da1f4d4aa454ac83c
0afe67c62eecf0f7e9c8817e98c759faead4d6ef
refs/heads/main
2023-03-08T23:27:36.317736
2021-02-23T00:55:07
2021-02-23T00:55:07
320,866,020
0
0
null
null
null
null
UTF-8
Python
false
false
4,353
py
models.py
from django.db import models from django.core.exceptions import ValidationError # TODO: on_delete # TODO: missing verboses # TODO: unique? unique_for_data? Who knows, not me # TODO: length validators class Oddzial(models.Model): nazwa = models.CharField(max_length=100, primary_key=True) godzina_otwarcia = mo...
0dc86164e0753b41f71e7531a0b11044b69cd972
c201d94bf5ecd55f63b3c56a56e2f9b47ed8cc0e
/my_test/test_unitest3.py
5fa048cbaa3405c29638916199bff881dfdfdcb0
[]
no_license
hezhimei/hemei
9f9089647db2385b5eed5453c8bb51b75ddce52a
3e5f7b9f6d5ae760f81b6ff8ab556e36ba86e721
refs/heads/master
2020-05-23T22:10:05.128763
2019-10-31T09:25:47
2019-10-31T09:25:47
186,967,995
0
0
null
null
null
null
UTF-8
Python
false
false
580
py
test_unitest3.py
# /usr/bin/env python # coding:utf-8 import unittest class simple_test(unittest.TestCase): @classmethod def setUpClass(cls): print("init class\n") simple_test.foo = list(range(10)) print(str(simple_test.foo)+'\n') def test_1st(self): print(simple_test.foo) self.ass...
58d93b06e45a1237b2bca48ae94f865044040344
66621a0bd8220dffd1fa0656b6783bec8ce43010
/code/scripts/helpers.py
9195ac6b9866f0575a5d44aedd942ec9c16fa8b9
[]
no_license
Ace-Arvy/eacl2021-OffensEval-Dravidian
40b29f15e67df247132909ceb9665513c5288fde
1b6918fa6aa477494c6518d477b31104b8059406
refs/heads/master
2023-03-18T14:47:57.536045
2021-02-22T17:30:36
2021-02-22T17:30:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,606
py
helpers.py
import sys import io import torch import numpy as np from typing import List from torch.nn.utils.rnn import pad_sequence try: import fasttext except ImportError: print("install fasttext if you plan to use models based on it") def get_model_nparams(model): ntotal, n_gradrequired = 0, 0 for param in li...
2c30ee64bd82c0c5967ae67755fa578079dc27c5
3f8f131711a6a55a6be1e33805c787419e655eba
/main.py
611a76f126b643fc046d2285ca92b9464b0ba655
[]
no_license
Stary2001/nex-server
3018922e94316501ad7bcb872ea2bc3b514bca26
01d39a343c77d44ac222c976fd6505b9d50f040b
refs/heads/master
2020-04-04T16:54:33.344798
2018-07-15T21:22:50
2018-07-15T21:22:50
156,098,618
1
0
null
null
null
null
UTF-8
Python
false
false
1,783
py
main.py
#!/usr/bin/env python3 import asyncio from prudp import NEXAuthServer, NEXSecureServer import sys ip = sys.argv[1] loop = asyncio.get_event_loop() friends_auth_listener = loop.create_datagram_endpoint(lambda: NEXAuthServer(access_key=b'ridfebb9', server_ip=ip, secure_port=60901, secure_key_length=16, sig_version=1),...
946ec6a6e4df2e287de7b7f0521760e167867584
4702250d6e240d11c29335839a3a9970ef631904
/controllers/match_controller.py
f9c3788c96c1cb1502d43f86971e3c142c3363a5
[ "Apache-2.0" ]
permissive
maxziv/SE-Server
94302c5ff7deb4753bf9e8b7211593f0acb6f935
97fe06389998af362bde70344daa6452084c280d
refs/heads/master
2021-01-17T23:29:49.372992
2014-05-03T19:48:03
2014-05-03T19:48:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,427
py
match_controller.py
from flask import Blueprint from flask import request from flask import render_template from bson import json_util from main import app,db,security,User from models.models import EventMatchModel, EventModel, ProfileModel from flask.ext.security import current_user from mongoengine.queryset import Q from twilio.rest...
279f8b4961df573d613636bfe2275c73ba0a3568
4e53c4f391a116f706d1db97f631a8f71157d7d6
/the_wall_project/the_wall/views.py
d6c1e96ce191c795c3db25bc9ec8dd4a47b78f7f
[]
no_license
jarthurj/Django
844baa23c74f1c058fa8436b9805b7f2a6660c1a
cdefbd69c795cf6d0865ab72928ff3b9e11103e1
refs/heads/main
2023-01-30T23:56:58.181061
2020-12-13T02:21:37
2020-12-13T02:21:37
320,133,551
0
0
null
null
null
null
UTF-8
Python
false
false
2,921
py
views.py
from django.shortcuts import render, redirect from .models import User, UserManager, Message, Comment from django.contrib import messages import bcrypt import datetime def index(request): return render(request, 'index.html') def process_registration(request): errors = User.objects.register_validation(request.POST) ...
e52b35f65523babe387a26a5b4f32795af16e246
59a504d73a663ecdd6f69c5276c7925285c01879
/format_conversion.py
92ae5bdb7023180b2124bd9dc42c546d0cb45e0b
[ "MIT" ]
permissive
BaokuiWang/Situation-Awareness-Visualization
4c32561af3d7af5cfdd7dbab96fc50822dd753e7
13b233a1119b21f55e61d81d7d584d45d57a7385
refs/heads/master
2020-04-29T01:23:48.169485
2018-12-16T19:46:31
2018-12-16T19:46:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,643
py
format_conversion.py
import os import sys import json import datetime import collections def findvalue(json_line, Key): if (type(json_line) != 'dict'): if Key in json_line: return json_line[Key] else: return None for key in json_line: temp = findvalue(json_line[key], Key) if temp != None: return temp return None # b...
7ad638e89f275bf33d0e92dc753aa8d5822b5cd7
83b7db8f8a07551e5befe39bb073730bb726b355
/montage/menu.py
dc8628f758f1d96a290b95188152452a18b9afbf
[ "MIT" ]
permissive
leanhthu/pyImagePlot
f03965957f43fd50b4d46250758988b40454b9ea
0c601a07f75b6dce65abc5785dc9ff2f2c87a0b1
refs/heads/master
2021-01-16T23:22:55.464906
2015-07-27T19:31:01
2015-07-27T19:31:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,137
py
menu.py
import sys import os from montage_manager import Montages class Menu: '''Display menu and respond to choices when run.''' def __init__(self): self.montage = Montages() self.choices = { "1": self.montage_dir, "2": self.montage_from_csv, "3": self.vertical_montage_from_csv, "4": self.image_hist_from_csv, ...
f656b2f1d53b0eeda3020047bfb5adf4ea8d12d5
6b01f462faf876388af9284b15dfe91b23e7a17b
/YouTube.py
3c7cf0b7d139a19b0ce9f5af8ef21969f77c484f
[]
no_license
bsuster/Brently_Bot
301b2ce470057150a815e7a9fdf8f9bc83a57ac3
0ee44a9f8650832755e30ab765ee8cf41aca9e0d
refs/heads/master
2020-04-15T00:19:32.461751
2019-01-22T02:19:14
2019-01-22T02:19:14
164,235,852
2
0
null
null
null
null
UTF-8
Python
false
false
558
py
YouTube.py
import requests from bs4 import BeautifulSoup import webCrawler header = {'user-agent' : 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134'} def search(item): url = "https://www.google.com/search?hl=en&q=" + str(item.replace(" ", "%...
682784a5524b9e7d60617a8743e51bc14fc8b875
b2bd346e503d69302994623b5ee49ce40dd0efd3
/online_class/exam/admin.py
b911ee9b4151c35dd1d5c453b83981b6c2fcfd21
[]
no_license
joshisijan/QuantumHack
56665a1d7090ad4081cf33b99e78e791d307a0e6
17ed31241c0dcb87e020852e2551da38a5eee79a
refs/heads/master
2022-12-09T11:36:08.089193
2020-08-29T06:32:38
2020-08-29T06:32:38
290,987,260
0
0
null
null
null
null
UTF-8
Python
false
false
165
py
admin.py
from django.contrib import admin from .models import ( ExamQuestions, ExamAnswers, ) admin.site.register(ExamQuestions), admin.site.register(ExamAnswers)
655039fa3247f8684cb1d0b8d01241fc7ca52187
ecceaaf2c4de1577dd2b1b0bd85dacd192fff698
/.datalad/tests/utils.py
b9efd2a0a38ca958df7c5d3246b551f861355e06
[]
no_license
standardgalactic/datasets.datalad.org
91662c723ebb7d82eaf9ae2954d930a0da6467ae
d90bc59dd33b4aa4c401ea3663984ebd1ed86eb5
refs/heads/master
2023-01-08T22:20:10.998046
2020-11-04T01:13:00
2020-11-04T01:13:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
225
py
utils.py
from datalad.tests.utils import skip_if from .consts import DATASETS_FULL_INSTALL skip_if_not_full_install = skip_if(not DATASETS_FULL_INSTALL, msg="Can be ran only on full install. Set datalad.tests.fullinstallation=true")
50acdb8e1555fbc1b2634af5766e332ce60e7ded
6c15291aa272703a9df43fed900f463da3cbcb30
/data_samples/ontology/test/test_outputs/ft/onto/example_import_ontology.py
692187c11890f5e399b5e6d26d6fb6943071118b
[ "Apache-2.0" ]
permissive
atif93/forte
c55d0b3529ad34b0849f98b776ea3180ef89ca4e
2b70531abfb54fc5c2429ee26a501ad5c9094f3c
refs/heads/master
2020-09-12T17:02:10.168294
2020-02-12T18:02:51
2020-02-12T18:02:51
222,487,649
0
0
Apache-2.0
2019-11-18T15:58:47
2019-11-18T15:58:47
null
UTF-8
Python
false
false
1,365
py
example_import_ontology.py
# ***automatically_generated*** # flake8: noqa # mypy: ignore-errors # pylint: skip-file """ Automatically generated file. Do not change manually. """ import forte.data.data_pack import forte.data.ontology.top import ft.onto import typing __all__ = [] __all__.extend('Token') class Token(forte.data.ontology.top.An...
ae188c4ea9d7af305f44c2e4496983f5fa5b0f04
07f08e4288a859130394b49ba8452c499465ca11
/atf_core/scripts/cleaner.py
bc69f49fb9a50e29ea48004ca44895830f8d1363
[]
no_license
fmessmer/atf
1781532090fea529d05548c9e65792fe1c65d40d
9a41139326a8c8e4e9b53dfa0450f7dd946d8bd7
refs/heads/master
2023-07-16T12:58:19.278619
2023-05-09T06:00:23
2023-05-09T06:00:23
232,370,034
0
0
null
2020-01-07T16:44:00
2020-01-07T16:43:59
null
UTF-8
Python
false
false
2,674
py
cleaner.py
#!/usr/bin/env python import argparse import unittest import rostest import shutil import os import sys from atf_core.configuration_parser import ATFConfigurationParser class Cleaner(): def __init__(self, package_name, test_generation_config_file): # parse configuration self.atf_configuration_par...
b710c75039b66f5c795d85aba2634ad36e372304
e16d1d995efdbb4b38362e762cc0354c4056f098
/footballLeague.py
f0492bb2b81e20ee9ab017a9b7f36460a58807e1
[]
no_license
marcuslowndes/football-league-tracker
ae79346b54c4959f4b134dce4d75cedf9f19519d
d7dd47def6b6b4906aa445aac646406260e4ab9e
refs/heads/master
2023-03-19T08:38:03.922191
2021-03-13T01:34:17
2021-03-13T01:34:17
338,424,522
0
0
null
null
null
null
UTF-8
Python
false
false
3,471
py
footballLeague.py
def calcPoints(tR): """Calculates goal difference (GD) and total points for a team.""" tR[6] = tR[4] - tR[5] # GD tR[7] = 3 * tR[1] + tR[2] # Points return tR def firstKey(dataDict): """Returns the first key of a dict.""" return list(dataDict.keys())[0] def createLeague(leagueDocName):...
8ab2385397d31014cefabed1d266f6dfc2859a2f
d2de8d505cb7899bbd6b982d9d1476826c088d6d
/2753번.py
6078ad63abbee9e4ccfd01d460520b8f5253a417
[]
no_license
totoma3/Baekjoon-Algorithm
f655599ffcc4bbb8efeb87c4b63c258bec640d0e
3029f7606caf484e5606e4a16ff87f594ca31fef
refs/heads/main
2023-07-25T13:33:03.976673
2021-09-06T05:55:36
2021-09-06T05:55:36
372,219,070
0
0
null
null
null
null
UTF-8
Python
false
false
548
py
2753번.py
#연도가 주어졌을 때, 윤년이면 1, 아니면 0을 출력하는 프로그램을 작성하시오. #윤년은 연도가 4의 배수이면서, 100의 배수가 아닐 때 또는 400의 배수일 때이다. #예를 들어, 2012년은 4의 배수이면서 100의 배수가 아니라서 윤년이다. 1900년은 100의 배수이고 400의 배수는 아니기 때문에 윤년이 아니다. 하지만, 2000년은 400의 배수이기 때문에 윤년이다. a=int(input()) if (a%4==0 and a%100!=0) or a%400==0: print("1") else: print("0")
6c60e0658e0852edf7a9bd9e1f8f5135724e508a
f48976eb3beb9f4c2fa6a032fb6fef782f2b525d
/Python/011-numpy_zeros-ones_array.py
c31be912bd92eced312e8dcc9c74354ecf166cda
[]
no_license
kagekyaa/HackerRank
fa3d8c329919dc32eec1a84e067be96db5506bf6
b0e496f668506d038f72d13785ebf252516dc87c
refs/heads/master
2021-01-19T09:35:55.758574
2017-03-03T06:55:32
2017-03-03T06:55:32
82,128,383
0
0
null
null
null
null
UTF-8
Python
false
false
595
py
011-numpy_zeros-ones_array.py
''' https://www.hackerrank.com/challenges/np-zeros-and-ones Sample Input 0 3 3 3 Sample Output 0 [[[0 0 0] [0 0 0] [0 0 0]] [[0 0 0] [0 0 0] [0 0 0]] [[0 0 0] [0 0 0] [0 0 0]]] [[[1 1 1] [1 1 1] [1 1 1]] [[1 1 1] [1 1 1] [1 1 1]] [[1 1 1] [1 1 1] [1 1 1]]] ''' import numpy as np import stri...
5361c9317d6c82281b2767ca0e89b89badb831e7
8ac1d03bd3af5e6880bba401d1a3684bf54f9fb0
/gui/framework/gzframe_view.py
8e711eaa262118e79f16263dd0b7f102c789aad6
[]
no_license
arnol229/BikeCheck
cd618dd2fb2483b8b87d26345cb1ff68bc06f249
8bf6c6dc608779764a29784dd6cfd11046e79f90
refs/heads/master
2020-03-25T05:29:30.735331
2018-08-13T20:21:14
2018-08-13T20:21:14
143,449,746
0
3
null
null
null
null
UTF-8
Python
false
false
1,490
py
gzframe_view.py
from guizero import Text, PushButton, Box, Picture from framework.gzframe_element import GZFrameContainer class GZFrameView: gui_classes = [Text, PushButton, Box, Picture] def __init__(self, gzframe, template): self.gzframe = gzframe self.elements = {} self.template = GZFrameContainer...
c840361d2870405ddcb9d64f20d2adc795a5f895
d3bb1611b356a67f79cad9b020a7ab4d97f51f67
/Tutorials/Application_Cases/TensorFlow/Code/get_started.py
642d703fb05cd7450333a465e0d0acc6e7d7c1e9
[]
no_license
DataFoundry/docs
d686b58e912f0bd30c102565dfab05bc8ca90276
e16e0c86e1a2185d5d9e292a89b134544f6bac43
refs/heads/master
2021-01-22T14:16:08.508832
2016-12-13T02:38:40
2016-12-13T02:38:40
58,982,788
0
9
null
2016-12-13T02:38:40
2016-05-17T02:13:20
Jupyter Notebook
GB18030
Python
false
false
881
py
get_started.py
# Step 1:导入所需要的库 import tensorflow as tf import numpy as np # Step 2:使用 Numpy 生成假数据(phony data),总共100 个点,y = x * 0.1 + 0.3 x_data = np.random.rand(100).astype(np.float32) y_data = x_data * 0.1 + 0.3 # Step 3:构造一个线性模型 W = tf.Variable(tf.random_uniform([1], -1.0, 1.0)) b = tf.Variable(tf.zeros([1])) y = W *...
bdc69caa0b28df024edfabec453d48c23716564e
c4baff4a36702bfaae11d17dd3fe7d949429722d
/hard/297.py
cca7fcf105788b26c6c4aa93b768bb65174877f7
[]
no_license
j0hnk1m/leetcode
6ec9888291a1e44cb5981f8c98932fd89ef8f3d3
d46ad5e441da537c91d29b69dba7bcebfe6dde26
refs/heads/master
2021-07-09T12:12:42.223701
2020-10-28T07:56:22
2020-10-28T07:56:22
205,434,818
1
0
null
null
null
null
UTF-8
Python
false
false
784
py
297.py
class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None root = TreeNode(1) root.left = TreeNode(2) root.right = TreeNode(3) root.right.left = TreeNode(4) root.right.right = TreeNode(5) def serialize(root): def tostr(node): if node: vals...
a32748bdb3edad8fcef043e306ac77d3e67456b1
1ddbefc47d799b5128587593504d41b6cc2fcaf3
/examples/treeattr_test.py
ab7142650ff362040fd55e7ac0738ee07e818c90
[ "MIT" ]
permissive
qwilka/vntree
679d3e8f9890743616392132ebc55f60016b7126
8aa8734cd78c2c9a8c96270af6a45980b562e444
refs/heads/master
2022-05-25T22:23:53.145690
2022-04-26T18:25:10
2022-04-26T18:25:10
147,022,973
1
0
null
null
null
null
UTF-8
Python
false
false
1,353
py
treeattr_test.py
import logging from vntree import Node, TreeAttr, NodeAttr logger = logging.getLogger(__name__) class Tode(Node): nattr = NodeAttr() tattr = TreeAttr() def __init__(self, name=None, parent=None, data=None): super().__init__(name, parent, data) if __name__ == "__main__": logger.setLevel(logg...
6184e3c5a8734c7213b369f7612bdb538a837382
c1f580ceb1fdd337a159e637082a79a6673a2fea
/models/nets.py
62047ca948a488b6e3f48996be893e075b411d1b
[]
no_license
lhf981128/Image_retrieval_qt
1b9ef3f0b6b152670564e1ee71733012b9550e36
de00c1abee60eb0ff4b3ca51707515e1886a6e46
refs/heads/master
2022-12-03T02:02:20.679263
2020-08-20T11:34:22
2020-08-20T11:34:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,482
py
nets.py
# -*- coding: utf-8 -*- """ ------------------------------------------------- FileName: nets Author: kolomomo Date: 2020/8/12 UpdateData: 2020/8/12: ------------------------------------------------- Description: 各种模型结构定义 ------------------------------------------------- """ from kera...
047ebd0143b7ac3b0069bedcfca800e37b196963
dfc305b12f8719deb2bb80a6896a66e2d9d5dfcf
/Python/django/check/check/apps/articles/views.py
243c9dc1f08abdb26325116bebcb80515b5b699e
[ "MIT" ]
permissive
GeorgiyDemo/scrapheap
bff4678fde3ab43ae68168af751b5534d7a285b3
10e381bb353c2f6d5904fa75d0ca8b463cf2b523
refs/heads/master
2022-11-28T13:09:27.113654
2022-03-30T13:04:12
2022-03-30T13:04:12
66,717,497
0
1
MIT
2022-11-16T01:46:34
2016-08-27T14:07:33
Python
UTF-8
Python
false
false
243
py
views.py
from django.shortcuts import render from django.http import HttpResponse def index(request): return HttpResponse("Hello world") # Create your views here. def test(request): return HttpResponse("TEST") class OrderView(): pass
185dc75d8d23fa287b8013ffbfeaca9b48bb722a
93d6af007073dc769285209824416634594e821a
/1_readingMultipleFiles/7_arithmeticPractise.py
c68a074274c1a341e310848c3cb25025bdd4188e
[]
no_license
RobertNguyen125/Datacamp---mergingDataFrames
d3c7a9d75c5f8772eb358adbbf14e4251636f4da
3ce1ad8ae307695202ca45d8c33595acad0e7ae2
refs/heads/master
2021-01-01T10:13:07.424803
2020-02-09T07:03:25
2020-02-09T07:03:25
239,233,992
0
0
null
null
null
null
UTF-8
Python
false
false
455
py
7_arithmeticPractise.py
import pandas as pd weather = pd.read_csv('/Users/apple/desktop/meergingDataFrames/dataset/pittsburgh2013.csv', index_col="Date", parse_dates=True) print(weather.head()) temps_f = weather[['Min TemperatureF', 'Mean TemperatureF', 'Max TemperatureF']] # print(type(temps_f)) temps_c = (temps_f-32)*...
19f561ec4ddedfa8c1f4c31f0715472d9985d0f1
b899560b6635a571a52d4995b89b4356a272490a
/core/urls.py
c2b5ffab0aa49569bbe128e283e5e2d00dda5319
[]
no_license
pdibuono/bmh_animalshelter
25e11ca5cd293d3cd264c0a3cbf0483627bc2611
dd6e009ffd8883cadcc4ac1e987cdd04257ee35a
refs/heads/master
2021-01-10T05:30:32.041240
2016-03-29T01:05:26
2016-03-29T01:05:26
52,374,355
0
0
null
null
null
null
UTF-8
Python
false
false
367
py
urls.py
from django.conf.urls import patterns, include, url from .views import * urlpatterns = patterns('', url(r'^$', Home.as_view(), name='home'), url(r'^user/', include('registration.backends.simple.urls')), url(r'^user/', include('django.contrib.auth.urls')), url(r'^user/(?P<slug>\w+/$', login_required(Use...
a8530d9c72f738fd4a94d862144be9148ecc8533
c9fba4ded50f2a0d0d54f8d785752a43b1d8d291
/behavioral/observer/test_event.py
4d77700b9d203bcb9d12135f42c6e4da0389e7b0
[]
no_license
Robinsondssantos/design-patterns-python-examples
ee1d8756f73eae6155c31d2ab64aa80715ebef9c
0a7fb0c7f4df8395ce47448f8dffa7f6612ce462
refs/heads/master
2020-09-18T19:54:53.864566
2020-01-08T12:10:35
2020-01-08T12:10:35
224,176,710
0
0
null
null
null
null
UTF-8
Python
false
false
3,339
py
test_event.py
from event import Event from event import EventPool import unittest def handler_temperature_event1(*args, **kwargs): pass # print('args', args) # print('kwargs', kwargs) def handler_temperature_event2(*args, **kwargs): pass # print('args', args) # print('kwargs', kwargs) class TestEvent...
d363b388b6b44e8bae7c26cde436bfe8b1c3903c
92ec6d60b23e02b5128d29ae26079838efbb42fe
/The Second Largest Number.py
0bb8745ca569c84b915ced025f29f5280cd9d23e
[]
no_license
Yaman35/Pyhton_Code_Samples
6991ce2f92a32a404cd390f58f951fe01528d1de
cf7755bdf316e865cc6174eb32a07b543e811e68
refs/heads/main
2023-04-16T07:49:45.691102
2021-04-26T13:24:16
2021-04-26T13:24:16
356,724,188
1
0
null
null
null
null
UTF-8
Python
false
false
431
py
The Second Largest Number.py
# Girilecek Sayı Listesindeki En Büyük İkinci Elemanı Bulma scores = input("Scores: ").split(",") scores2 = [int(scores[i]) for i in range(0, len(scores))] scores2.sort() print(scores2[-2]) scores = input("Please enter a score array: ").split() arr = map(int, scores) # map() burada içine aldığı listenin her elemanını...
e5c20f13df703732819f6b55ee1d58af1618024f
0bc80f7bba8d7dfa7b293759b0974b9707d8d450
/testdir-8/test-30.py
392a30546054666989f48819cc81b0f67711513f
[]
no_license
delcypher/lit-concurrency-windows-bug
da3d5edd63f5feaf8b8b65650e39c877f71f46d8
029eb69219e4b84d33072c26e02663e267a38304
refs/heads/master
2020-06-06T07:24:50.360611
2014-05-19T15:31:52
2014-05-19T15:31:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,233
py
test-30.py
# RUN: python %s > %t # RUN: %diff %s.expect %t print('FOO 0x6bcefab3a3b48c4a') print('FOO 0x1a004483b96ba5cb') print('FOO 0x5dcc39d710f48bb9') print('FOO 0x769dd09fb2a724d8') print('FOO 0xb2eaa635ffb86c8') print('FOO 0x53fa573e58358c1b') print('FOO 0x4ecfd2bdba023ff2') print('FOO 0x6696e05995351857') print('FOO 0x1599...
8a85e6cae5d0bc5c50735dfcca41ad0d937d5516
3c8fbbf7c6a97d0e1b79a582723cc64beb8399f5
/core/migrations/0007_auto_20210327_1227.py
6daaa73e09ffa5a222200c8401853a0c9a15d1e8
[ "MIT" ]
permissive
Koderz-SI/Scienocyde-UH
7622fc6b9f32e77ea7abc118fb67c90a437485f3
5fbd69a4eeecf63a4407abb808a312565cc190fa
refs/heads/main
2023-03-25T22:16:46.583660
2021-03-27T13:36:45
2021-03-27T13:36:45
347,182,351
1
5
MIT
2021-03-27T13:36:46
2021-03-12T19:55:29
JavaScript
UTF-8
Python
false
false
746
py
0007_auto_20210327_1227.py
# Generated by Django 3.1.7 on 2021-03-27 06:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0006_auto_20210327_1112'), ] operations = [ migrations.AddField( model_name='participant', name='Last_Submis...
0eea66ccb1e2fe55da0bddb4de1198afbc5f2dfe
7d236a794e51a0590f5ce631c0d9d5d1b92aa587
/users/views.py
d0ac34a41f643b44cd1fb33031b1a446a92aeb64
[]
no_license
Desperado-lr/Django
01bd80a824795d3f2c525e9782dec846cde0dc37
1b510a01ce7e2c4bd4d942a56f98e3eded3431f0
refs/heads/master
2020-04-04T13:29:48.835935
2018-11-03T08:16:32
2018-11-03T08:16:32
155,963,721
0
0
null
null
null
null
UTF-8
Python
false
false
466
py
views.py
from django.shortcuts import render from django.http import HttpResponse # Create your views here. from django.urls import reverse def index(request): """ index视图 :param request:包含了请求信息的请求对象 :return: 响应对象 """ return HttpResponse("hello Mac") def say(request): url = reverse('users:syyy...
c976b58eaf8f27e92411d776f02cb84a03d65b84
8773b3183d8e44caf7300f99985a14fa1556ba65
/prepare-product-lag-sums.py
701dc84ba39ab7b80c08837b2f8a9a67312998e5
[]
no_license
alno/kaggle-santander-product-recommendation
2421abc8df4ceb1c3c753f0d02125c464d64999a
f85eea9c716d9ee17960dae60681b41b6247d725
refs/heads/master
2021-01-13T03:44:58.403449
2016-12-23T20:26:40
2016-12-23T20:26:40
77,249,308
4
1
null
null
null
null
UTF-8
Python
false
false
875
py
prepare-product-lag-sums.py
import pandas as pd import numpy as np from meta import train_dates, test_date from util import Dataset offsets = range(1, 5) past_sums = [] for di, dt in enumerate(train_dates + [test_date]): print "Processing %s..." % dt index = pd.read_pickle('cache/basic-%s.pickle' % dt).index df = pd.DataFrame(0,...
2773d651aadcf74941984d713fedf6489596d56a
dcf0c1a26fe940d3d32cc0d0c0aa534fa65fb623
/functions.py
d2f195570a34a5333340bcc2d74750bee6499ae8
[]
no_license
Mohamedehab567t/MIF
456b7c6d242527bc4ebb0f097228361dd4e8e1c1
e659435dec9c9fdd9d4b126be669a5e80d4cec57
refs/heads/master
2023-06-09T04:24:51.228091
2021-07-01T17:12:21
2021-07-01T17:12:21
380,884,282
0
0
null
null
null
null
UTF-8
Python
false
false
462
py
functions.py
from wtforms.validators import ValidationError from DB import Student def validate_email(self , email): user = Student.find_one({'email': email.data}) if not user: raise ValidationError('No user with these email') def calcAgree(vote): var = 0 if vote['state'] == 'agree': v...
8a09e523e2c8558f4a170c7eb90d805e3587d3ec
1a619215b9e2e043496cdd25b0bbb0300a5d6623
/cjh/01basic/04if_else.py
14412a6d125bd9dfedf206a0a886f8a6d825f422
[]
no_license
HuiJing-C/PythonLearning
2a4cccdfa9e8d04706062212ae1b5c6f5a0988ff
cf8fd4f67f6f70ffdd1a8d88cc98dfb6cd37f28c
refs/heads/main
2023-07-16T13:14:51.911024
2021-09-01T10:04:11
2021-09-01T10:04:11
392,229,075
0
1
null
null
null
null
UTF-8
Python
false
false
1,047
py
04if_else.py
if __name__ == '__main__': flag = int(input()) if flag > 0: print("True") elif flag < 0: print("False") else: print("0") # 注意冒号 # while a = [1, 2, 3, 4, 5] i = 0 while i < 3: print(a[i]) i += 1 # python 中的没有 i++ ,如果写了会报语法错误。 # 但是python...
6ba0fe7a05118102e1965f6035142f695a8a6af5
9b92c5e1efe3589d702100dc4ea559167938f876
/Code/plotXY.py
89dc39c7ae00f58d5976c4b5117944e4b6e16120
[]
no_license
Lic128/FaceReg
1cb62afc52b8078c804aa1744b7d945e841057b2
81ad8006de14d16ef04890573a0e1c22b3ce1f7b
refs/heads/master
2021-01-02T22:48:52.707481
2017-08-05T04:35:19
2017-08-05T04:35:19
99,399,321
1
0
null
null
null
null
UTF-8
Python
false
false
919
py
plotXY.py
import random import time import math import matplotlib.pyplot as plt def genMat(n): ret=[[0 for i in range(n)] for i in range(n)] for i in range(n): for j in range(i+1,n): ret[i][j]=bool(random.getrandbits(1)) ret[j][i]=ret[i][j] return ret def getTime(n): mat=genMat(n)...
c5a280723563ab982e34b4f29880b7dd038f58d1
a9937139b1af85180cea706a52d447abce2430f4
/a/petle_listy/PE11.py
9146420546f8f578ade7099aac4745e41aeff83c
[]
no_license
MirekPz/Altkom
8f16014d43adb10e87804ae2b5d23151924cb226
0a49e75e681593b41d07cbff63dea0723a11756b
refs/heads/master
2020-09-29T00:12:37.990353
2019-12-13T15:52:30
2019-12-13T15:52:30
226,899,295
0
0
null
null
null
null
UTF-8
Python
false
false
302
py
PE11.py
""" PE11 Podobnie jak w poprzednim zadaniu, tworzymy pusty kwadrat o zadanej wielkości Przykładowo dla wielkości 4: XXXX X X X X XXXX """ a = int(input("Podaj bok kwadratu: ")) for i in range(a): if i == 0 or i == a-1: print("X" * a) else: print("X" + " " * (a-2) + "X")
3930b11838cd695033a53ffd5e300b73c3ae930d
58fbe61e58cfa402028dfd62c2fa98a6ed017886
/googlewakeup.py
491df1b7abd646c7ac0a34bbb5b86f4abdfac56c
[ "MIT" ]
permissive
heykush/Gaurav-Wake-Up
954ecec3a75ba836e95aae758fe2f78f931e9502
3b0182df94c7175263331a424d49a3ac9ef8524a
refs/heads/master
2022-11-26T08:51:32.527374
2020-08-03T17:19:25
2020-08-03T17:19:25
272,507,944
0
0
null
null
null
null
UTF-8
Python
false
false
981
py
googlewakeup.py
from datetime import datetime import pyttsx3 from plyer import notification import os def notifyme(message): notification.notify( title="TO-DO-LIST", message=message, app_name='gaurav', app_icon="C:\\Users\\gkush\\Downloads\\to.ico", timeout=30 ) speak='Wake...
718f913a392b2c0e4b95cb741c2b54d4933d1bb2
f3a1e4720cae40b214ab91b9338fd23be2327fe9
/Bot/RedditService.py
b20bf31ba84b00311abea7d3576293e7fb1c1495
[]
no_license
auratiger/Disord_subreddit_distribution_bot
30897b1b4e8934a426a31a382437124b855a41a8
154d56fe2322a0a10bbfd3e3a2e98612977e43b9
refs/heads/main
2023-01-21T12:17:01.284541
2020-12-04T14:55:36
2020-12-04T14:55:36
300,863,786
0
0
null
null
null
null
UTF-8
Python
false
false
1,477
py
RedditService.py
import praw from datetime import date class RedditService(praw.Reddit): def __init__(self, client_id, client_secret, user_agent, username, password, *args, **kwargs): super().__init__(client_id=client_id, client_secret=client_secret, user_agent=user_agent, ...
9c69fe9f194d2827e41fa34026dbb1bb5dc42188
685e4dc813ab5221c9891f221eb0266e7ea56ff5
/variables.py
114630c092c28c9946772dcf8456a7584747c8b8
[]
no_license
PrathameshChari04/Python-Basics
53850dab5c7041766d070daf279090b0bc597294
1f7f9b5666349eea8deb1d03cca905a2ae2e8995
refs/heads/master
2022-04-21T20:13:30.593582
2020-04-22T08:26:14
2020-04-22T08:26:14
257,327,741
0
0
null
null
null
null
UTF-8
Python
false
false
363
py
variables.py
i = 10 f = 2.5 b = True n = None print(f"{i} represent as Integer") print(f"{f} represent as Float") print(f"{b} represent as Boolean") print(f"{n} represent as None") # this cool feature of python in variables doesn't need to explicitly tell the computer where it is a integer, # float, Boolean value . Python interp...
fb21ecc282827a63461474a8d255ee27297d8383
dc0833dc3a4f55d4235f1355cb81f1362d7a1d74
/courses.py
4ecc9888a46acdf1d9f2e4a1e71323eb130dfb76
[]
no_license
ravindrajangid00007/models
ae1e905329ba658bbed3ca42fec419dd715f763d
51ced7972095255bc0a374476d48316fe97206a9
refs/heads/main
2023-06-23T07:58:54.058815
2021-07-18T15:25:22
2021-07-18T15:25:22
386,934,833
0
0
null
null
null
null
UTF-8
Python
false
false
518
py
courses.py
from ..models import db from datetime import datetime class Courses(db.Model): id = db.Column(db.Integer, primary_key=True) course_name = db.Column(db.String(80), unique=False, nullable=False) course_code = db.Column(db.String(80), unique=True, nullable=True) created_at = db.Column(db.DateTime, nullabl...
9a6ebf22f50da453f74dadd3dacbab2ec5026941
97fdf930977a202c6840c082879d878576013cbb
/handler.py
8993a6620fa25c2f1df878f12f3e49fe9f5c181c
[]
no_license
vamperst/semantix-manager-alert-manager-message-handler
9ca4dcd33d243e52b9a17fe56339ac8975c91d98
4c46d6c5b43de591f976624fb185793c7c68569a
refs/heads/master
2020-03-18T22:08:13.419102
2018-05-29T17:01:27
2018-05-29T17:01:27
135,327,092
0
0
null
null
null
null
UTF-8
Python
false
false
867
py
handler.py
import json from snsHandler import SnsHandler def messagehandler(event, context): dictJson = json.loads(event['body']) print(dictJson['alerts'][0]) baseDict = {'startat': str(dictJson['alerts'][0]['startsAt']),'severity':str(dictJson['alerts'][0]['labels']['severity']),'description':str(dictJson['alerts'...
c38adf47e2422326c1b0d98f6c10b17f4e328d78
60fa442ae76b960ab21b10fb527c0eac85cdc587
/python/MolProb_Trajalyze.py
9a8f2ffac04d7bf90e42841a16c75c11695a4008
[]
no_license
pjanowski/Pawel_PhD_Scripts
8e6c2b92b492f9cacf425327a01faaceb27bb87d
5f9b1735ca6da8fdf0946d6748f3da7d3d723d5e
refs/heads/master
2021-01-10T06:15:30.287053
2015-11-16T04:04:07
2015-11-16T04:04:07
46,250,317
0
1
null
null
null
null
UTF-8
Python
false
false
5,357
py
MolProb_Trajalyze.py
#! /usr/bin/env python import os import sys import commands from numpy import * #======================================================================# # # # Obtain molprobity statistics for an entire crystal MD trajectory. # # This script uses t...
fa2411b11b7d7f4869f2e7727c94a3eee43510ce
549270020f6c8724e2ef1b12e38d11b025579f8d
/linter/conanv2_transition.py
e330ff1d44590233ec7be57b0a76427f4be2c8a3
[ "MIT" ]
permissive
conan-io/conan-center-index
1bcec065ccd65aa38b1fed93fbd94d9d5fe6bc43
3b17e69bb4e5601a850b6e006e44775e690bac33
refs/heads/master
2023-08-31T11:34:45.403978
2023-08-31T11:13:23
2023-08-31T11:13:23
204,671,232
844
1,820
MIT
2023-09-14T21:22:42
2019-08-27T09:43:58
Python
UTF-8
Python
false
false
986
py
conanv2_transition.py
""" Pylint plugin/rules for conanfiles in Conan Center Index """ from pylint.lint import PyLinter from linter.check_package_name import PackageName from linter.check_import_conanfile import ImportConanFile from linter.check_import_errors import ImportErrorsConanException, ImportErrorsConanInvalidConfiguration, Impor...
0e850024435e2c1dfec2bfb560570bb71f32c0aa
d0db35fddc3eb1df80645ded0200caeb8a6896c2
/src/twitterpoet/models/poems/poem.py
8985d59b21dd753a561e051be8df615e1551d678
[]
no_license
Cloudxtreme/TwitterPoemBot
3af07660f282782cb2b492b35bce3412b4629b4b
6ffdbef907f1f6352b1f1eaf327040d78461231a
refs/heads/master
2021-05-27T19:51:47.384876
2014-05-05T04:50:45
2014-05-05T04:50:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,557
py
poem.py
from flask import Flask from flask.ext.sqlalchemy import SQLAlchemy from sqlalchemy.schema import UniqueConstraint from sqlalchemy import create_engine import datetime app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql://tpg:uiucCS428@ampolgroup.com/twitterpoem' # app.config['SQLALCHEMY_DATABASE_URI'...
5ef6a922f9157e8b7d63675e17ec7d1496207b52
12450bf79b99bcab3e1dae290da064bf7bdf2da8
/Player.py
92a1238a4d3ebd09deed28a28e93e6b5664595c7
[]
no_license
son-tmg/x_rudder
f53ec11dbd22be1ca5a0483ff3c71a8e4f84fa7d
c0d8fe3d7837a726966eaad2b2432fbf31ea448b
refs/heads/master
2020-12-29T20:04:27.303242
2019-11-28T04:22:00
2019-11-28T04:22:00
238,716,238
0
0
null
null
null
null
UTF-8
Python
false
false
2,913
py
Player.py
import Game, Token class Player: """A Player in the Game""" def __init__(self, playerName, playerColour): """ New instance of a PLayer playerName Name of player, or named AI if Player vs AI is chosen. playerColour Colour of the player and their tokens playerTok...
d163f3be1d75ae136cefa2e9fb7505fde2b377a5
4e3aac2874f1d1035e4f7d56d5efd58ff9108ae7
/C5.Ej5.4.py
23c0f87d6d411dfafefc709431bd0babbdbe3fea
[]
no_license
ignbell/Ejercicios_Python
382f880e5869120f166ea80018aae7eb9dcd5d23
cbb11140a820674b6490f5f5c99e24ab60512f07
refs/heads/master
2021-07-07T20:53:50.438802
2017-10-01T04:04:46
2017-10-01T04:04:46
104,948,411
1
0
null
null
null
null
UTF-8
Python
false
false
792
py
C5.Ej5.4.py
# -*- encoding:utf-8 -*- # Ejercicio 5.4. # Utilizando la función randrange del módulo random, escribir un programa que obtenga un número aleatorio # secreto, y luego permita al usuario ingresar números y le indique sin son menores o mayores que el número a adivinar, # hasta que el usuario ingrese el número correcto...
ec7571f351e4f7e1c8e02bc77c6adfe6af6ac0a5
c110a18fe195f541f753eaa5ba9ba827ccc6045b
/json_imports.py
33b7a18b3004614fcf86d171cffd88e23699c4b5
[]
no_license
saulwolfdev/files_in_python
55c1d9b3dd48de5a4537b81afdcf8688147a84db
ca489ba0818077b311710e8a1ef28627938feb1a
refs/heads/master
2020-04-21T00:08:26.515098
2019-02-05T04:24:01
2019-02-05T04:24:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
615
py
json_imports.py
import json # file = open("friends_json.txt","r") # file_content=json.load(file) # file.close() with open("friends_json.txt","r") as file: file_content=json.load(file) print(file_content["friends"][0]) cars = [ { "make":"Ford","model":"Fiesta" }, { "make":"Ford","model":"Focus" }...
d765f8dd9c3c484a434f70b843614cdc93297351
87df068bd46b7a3d2d7f1132bd282fa316271ed9
/maindecomposition.py
9922106dc4d8e23dbc92519eddb53f916a8ca8ab
[ "MIT" ]
permissive
MelyPic/labgaif
e888a455c28691692f44d06a2b57d40aa90981c6
d5e10a8fa9a5117fccab1e73fddd09fddba1001d
refs/heads/main
2023-07-20T04:57:37.143536
2021-08-29T05:32:36
2021-08-29T05:32:36
392,069,141
0
0
MIT
2021-08-30T18:53:21
2021-08-02T19:23:03
Python
UTF-8
Python
false
false
17,425
py
maindecomposition.py
''' Authors: M Ely Piceno: almost all of this code taken from her file OutpDotFile.py Jose Luis Balcazar, ORCID 0000-0003-4248-4528 (marked JLB): - import-handling changes at the head of the file - changed "%24" to "%23" midway through function Write - renamed "main" to "decompose" - extra argument "items" for TotalA...
72151b03246cc17b90d6f956c7ac5b9a6f883dcc
599d3774345b553fb17dd1e1faa4f28843077b01
/1-basics/3-decision/1-if/bot.py
4193739781d7b04bc4f6c7555ea458543b9fc514
[]
no_license
Livingdead1989/com404
86b827a530d68304bb633140636bcd07d7559da1
f81bc349c22845c06e885f985997205212b86478
refs/heads/master
2020-07-31T13:27:14.531190
2019-12-10T08:17:11
2019-12-10T08:17:11
210,617,868
0
0
null
null
null
null
UTF-8
Python
false
false
177
py
bot.py
# basic if statement with print book = input("What type of book is this?") if ( book == 'adventure' ): print("I like adventure books!") print("Finished reading book.")
701dbd8cd965bc2afe7ebf1727125ff74fa5fde5
7d1e23ce12724be09adab0d1ef3c25fa3ccf583d
/Bluegills/bluegills.py
3567dbadbbeb5da85cf3da079a51905ca6154d7c
[]
no_license
neel2306/Forsk-Challenges
f9837594441c06d3aaf4413c56d4768dfae45d53
627aa342d00c8eac04570bb8c60eff32ca6b1164
refs/heads/main
2023-08-07T13:57:14.298310
2021-09-06T15:11:08
2021-09-06T15:11:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,175
py
bluegills.py
import numpy as np import pandas as pd import matplotlib.pyplot as plt from sklearn.linear_model import LinearRegression from sklearn.preprocessing import PolynomialFeatures #Getting the data and additional information. data = pd.read_csv('bluegills.csv') data.shape data.columns.tolist() data.isnull().any(ax...
1c04d60d016afad5fe77fe0e6b1888f46816fbc5
fc7671b03cc52a6f1a14534c5d03b7926f79b674
/demo.py
ab9e90ef2ce9cec58ad19379d726ad2374ece502
[]
no_license
soledoso0/git-demo
ca5df82a919569f451076a0984a38d06fe878e6d
687de312674634e753c653a30e1387cadf3f2f41
refs/heads/master
2022-12-26T21:30:20.631877
2020-10-06T03:12:40
2020-10-06T03:12:40
301,594,565
0
0
null
null
null
null
UTF-8
Python
false
false
136
py
demo.py
a = 2 b = 1 #“ I am back to change 1” # “ I change again” # “change again” # “lively boss,i done” # "happy github"
93d8e5704cf85dcd3f0192b1531f814d350a90fd
9a02118c9cc9d26ab5b17f84b64c52f469c875d9
/2.x/base.py
af9c41d6ddabb1e1e0d97cecc1ebd5f057c2a370
[]
no_license
tinggengyan/PythonStudy
eed7cfbf5161a6f70a11ddf24a6ad2a64af007dd
fac0ad1167a3813354189a7eaafc509429ee924e
refs/heads/master
2020-04-07T05:14:29.119222
2017-11-08T12:51:25
2017-11-08T12:51:25
51,009,929
0
0
null
null
null
null
UTF-8
Python
false
false
1,640
py
base.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # print absolute value of a integer a = 100 if a > 100: print 'absolute bigger' else: print 'absolute litter' # string print 'a string' print 'string \"include" ' print "a string my name is steve' include ' " # boolean b = 100 > 10 print b b1 = 10 < 1 print b1 i...
22b59b9ae09ec37d8c771a15005187e6b71d95d3
40d9697d64917ec1b7772c0256d874dcb4554de4
/pydii/scripts/gen_def_energy.py
7decf9b3c4f9dbbe52dda5490ac9474ecb94660c
[ "MIT" ]
permissive
pydii/pydii
3f54fcfb8ae74ad87e47deedd7abbbd7e1004995
dd07269f6f7d951272f54de9e26c80c2dd5d1de7
refs/heads/master
2021-03-12T21:28:48.120647
2020-09-30T15:27:03
2020-09-30T15:27:03
28,058,101
5
6
MIT
2020-09-30T15:27:04
2014-12-15T21:55:29
Python
UTF-8
Python
false
false
9,938
py
gen_def_energy.py
#!/usr/bin/env python """ This file computes the raw defect energies (for vacancy and antisite defects) by parsing the vasprun.xml files in the VASP DFT calculations for binary intermetallics, where the metadata is in the folder name """ __author__ = "Bharat Medasani, Enze Chen" __data__ = "Aug 10, 2020" import os i...
5c677c35e1a3ffaf382604a850fd3bd92489a074
3a2118fa46f98a2ce0b1b6f8073ea4bd4b5c217d
/api/api/migrations/0018_auto_20181109_0207.py
7d1796a8ee21f348bf911e0e6336f151eb9ce30a
[]
no_license
daviwesley/easy-chamadas
46a1f258139701428c85bc02d2b60aae7644e051
691ce6c7b8559a8ca0b9638fdcf98e31e4f54384
refs/heads/master
2022-12-10T09:49:38.505005
2019-02-25T21:34:05
2019-02-25T21:34:05
150,799,314
0
1
null
2022-12-08T14:36:01
2018-09-28T22:10:26
Python
UTF-8
Python
false
false
442
py
0018_auto_20181109_0207.py
# Generated by Django 2.1.2 on 2018-11-09 05:07 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0017_turma'), ] operations = [ migrations.AlterField( model_name='student', name='id_subscription', ...
67df4ecc75b16b8fc1dc15fb9c1b696617fb8909
7aa77ba7ef9ce86834d24b39a4007bfb60692cb7
/final_hhi/main1_class.py
5ecebcc6d52f4bb36c990691d2b2c0eac311f5ca
[]
no_license
shivAM2886/BikeData
24e6d09ffcca22455e79b9adee40a3c9149e9809
bbe46a8a639dc88e834fa56961c684bf2f9cb13d
refs/heads/master
2023-05-25T03:31:03.657339
2021-06-07T04:37:42
2021-06-07T04:37:42
288,241,138
0
0
null
null
null
null
UTF-8
Python
false
false
2,132
py
main1_class.py
import pandas as pd from boundary_type_class import square_boundary, circular_boundary, nearest_neighbor from hhi_class import hhi class hhi_main1: # top_intersections : TOP intersections for which calculation # is to be done (2000). def __init__(self, top_intersections, boundary_typ...
eeadee45ed2cb571056052555b8d7baea60033ac
cf5c2640d34de676b0f50d0c4632947dfaf9dcd1
/scrapyflask/scrapyflask/pipelines.py
6a8b86e5c2eeca658ed412466652114a6f973ff6
[]
no_license
RaviKiran25494/flask
3e76298311a9b795a49fa6e219c1304dc7d7bf12
a244bf63ceabdbe1910865b09de4c0d16f161a32
refs/heads/master
2021-01-20T06:08:08.569374
2017-08-26T13:24:41
2017-08-26T13:24:41
101,487,008
2
0
null
null
null
null
UTF-8
Python
false
false
1,169
py
pipelines.py
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html class ScrapyflaskPipeline(object): def process_item(self, item, spider): return item # import sys # import MySQLdb...
9dfe8fcccd21d54771c8ab691c0c2f76eba39d2f
3c19c08960e6f70a3eb7e0a6e313a3d584ef7b45
/reload_bpschema.py
6190a9ba7475cd7dcb417ac0d9f20c376dd64849
[]
no_license
vitalyturkov/groupscanner
135cf654a36574bcb9c717b3dbf08a73b3f1026d
49e35a584236a528d5c65a2c2fea00928d6af409
refs/heads/master
2021-01-09T21:54:31.015658
2015-09-27T15:35:19
2015-09-27T15:35:19
43,251,643
0
1
null
null
null
null
UTF-8
Python
false
false
541
py
reload_bpschema.py
import requests import os # manual check: http://backpack.tf/api/IGetPrices/v4/?key=yyy def reload( key ): bp_key = key for i in range(3): try: r = requests.get('http://backpack.tf/api/IGetPrices/v4/', {'key':bp_key}, timeout = 15 ) except: if i < 2: print "Error occured while reloading bp schema. Ret...
9598e15c30244625deb6b2adb3b10644fcdc53e3
39f817c236bf119145a315f4839c519f8d904e0a
/Algorithm problems/Sorting/sortingallday.py
8e038daea1dc14af4dd524aafe7ff904a469c7f0
[]
no_license
tmnewt/hacker-rank-python-work
350cafa2b073766e87888a749b97ed4b2fb4788c
5c6eef15c2611c5f7a5b8b272b8e4191ce58ff24
refs/heads/master
2023-01-24T11:36:10.573113
2020-12-09T00:26:22
2020-12-09T00:26:22
270,749,391
4
0
null
null
null
null
UTF-8
Python
false
false
1,202
py
sortingallday.py
# file for my amusement. # Its interesting to see what it would require to create from scratch # sorting algorithms. Not that I could do better. But at least I know how # they work. import os import time def quickSort(arr): pivot = arr[0] equal = [] left = [] right = [] for i in arr: if ...
0a64f12397b065c81b15486100b7fb52f057d97d
097977a495b37339adc3ed76beb0c79885e86c99
/scripts/c7_s1.py
2e1522d64fd2b8746b1be59f5c84c1bbc98e72ec
[]
no_license
prvieiramatos/biopython
0b9dd2f2a86221e1e69283d9be5b7e54d4b8b7b7
c20b5512ef87a4f5243b522eee9e92853ad1bafd
refs/heads/master
2023-05-06T16:14:08.086295
2015-09-17T12:50:02
2015-09-17T12:50:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
41
py
c7_s1.py
def nome_da_funcao(parametros): comandos
11a4fafc08f017545310515a38640e8629bdc9aa
1724dfee76ad898ecd9d82a2a325f2eece2955bf
/features/support/query_result.py
57e6a594defa4a878afbeb327b61d173b1a3c4c0
[ "MIT" ]
permissive
alexgarzao/victory
c85a1d35c2512fd16fa2dff55c78763415a942f8
c67d024c2d43c6bb2da7ba6877c1648e8760f036
refs/heads/master
2022-12-14T01:19:20.783309
2019-09-06T22:24:04
2019-09-06T22:24:04
140,748,447
1
0
MIT
2022-12-08T02:24:19
2018-07-12T18:05:32
Python
UTF-8
Python
false
false
236
py
query_result.py
from features.support.simple_result import SimpleResult class QueryResult(SimpleResult): def __init__(self, json): self.json = json def get_result(self, field_name): return SimpleResult(self.json[field_name])
a2c20f265d27ceb65b58a564382bb69d7d91584f
d25c44889597978f78585bd5c5edf6ae6bb069b9
/TestAutomation/src/htmlParser.py
a534dc49b0ad9ce162f7861e833174b4b90f7dbb
[]
no_license
rishabhkbakshi/python-code
f32290e93262ee5b7ba6faf8ea7dd75ffa39e670
1d3515191c87037d42d92b325305e281be2942ca
refs/heads/main
2023-04-24T03:17:08.942747
2021-05-17T14:52:13
2021-05-17T14:52:13
353,348,153
0
0
null
null
null
null
UTF-8
Python
false
false
1,737
py
htmlParser.py
#!/usr/bin/env python3 # Anchor extraction from HTML document from bs4 import BeautifulSoup from urllib.request import urlopen with urlopen('https://en.wikipedia.org/wiki/Main_Page') as response: soup = BeautifulSoup(response, 'html.parser') for anchor in soup.find_all('a'): print(anchor.get('h...
3170eb592dc1644b233292989ae57efaf2713925
64512b3dc605152d4c26a74f7e4d359753f2e09a
/environment/src/environment/global_map_manager.py
59c8bc73352b54d793452b52664a3e9851df2063
[ "MIT" ]
permissive
styczen/motivated_learning
19e536244f7843da5b104546994b5e0364fab2a0
becd1e45a464130307256fc42e9c8cd1977b6f89
refs/heads/master
2023-06-04T02:44:25.212959
2021-06-20T20:51:55
2021-06-20T20:51:55
229,732,843
0
0
MIT
2020-11-23T16:01:01
2019-12-23T10:49:10
CMake
UTF-8
Python
false
false
7,475
py
global_map_manager.py
import rospy import rospkg from robot_msgs.msg import FieldMsg, MapMsg from gazebo_msgs.srv import SpawnModel, SpawnModelRequest, DeleteModel, DeleteModelRequest from gazebo_msgs.msg import ModelStates from geometry_msgs.msg import Pose, Point, Quaternion, Vector3 from std_msgs.msg import ColorRGBA from visualization_m...
8db12a7f93b9f7c75c518c556d648fb085920d88
a141d959cfd8d0a66bb17134e8aa3ccd2192cc04
/payments/views.py
05d353cc676952977ca98e73c250d1e2b9ea4610
[]
no_license
tutorialcreation/elitehomeworkmaster
51182e844caf0f21548f70c7c77601af0fcfeb6c
487605c199d47929263cf987619b2cbff5caf8ae
refs/heads/master
2023-02-09T04:11:28.870423
2020-08-16T10:38:59
2020-12-30T13:35:20
325,536,067
0
0
null
null
null
null
UTF-8
Python
false
false
7,031
py
views.py
from django.conf import settings from django.views.generic.base import TemplateView from django.views.generic import CreateView,ListView,UpdateView from django.shortcuts import render,redirect # new from django.http import HttpResponseRedirect from django.contrib import messages from django.urls import reverse,reverse...
331f712d20b68d2ea5208ca660377e3eb248abc5
252d99bd37ba7ca4f491b2d5c58e4b5e1752845e
/useraccounts/views.py
22d8dcaf25c1fc81da44edbbc68dc070796ae654
[]
no_license
pejvak61/djresttutorial
1f9508434446612dcb3090eb59835159e4bb0f87
b90d5f9c656445c47f1ce2f8f8d1aae85a34e856
refs/heads/master
2020-09-08T17:55:03.778680
2019-11-16T09:57:19
2019-11-16T09:57:19
221,202,210
0
0
null
null
null
null
UTF-8
Python
false
false
2,869
py
views.py
""" Rewriting our API using generic class-based views """ # ================================ # Using generic class-based views # ================================ # pylint: disable=ungrouped-imports # pylint: disable=line-too-long from rest_framework import permissions, generics from django.contrib.auth.models import...
c875be5696979736df6f312bda459410b25ddbaf
5d2aaa96261ad80d0eb90cbdf662175fe3708451
/shift_detector/precalculations/n_gram.py
7e2978d1587fbcbaaed2d0ab0ecb5688611bba2e
[ "Apache-2.0" ]
permissive
hpi-bp1819-naumann/shift-detector
1e87152f963fc2af8ad0ae131f7bbf5f948485ed
5d081d05ec084021f11827aa3fd3e167854b2a2a
refs/heads/master
2022-11-27T06:45:22.650596
2019-11-12T00:09:23
2019-11-12T00:09:23
182,048,489
3
0
Apache-2.0
2022-11-21T21:36:44
2019-04-18T08:30:53
Python
UTF-8
Python
false
false
2,230
py
n_gram.py
from enum import Enum from shift_detector.precalculations.precalculation import Precalculation from shift_detector.precalculations.store import Store from shift_detector.utils.column_management import ColumnType class NGramType(Enum): word = "word" character = "character" class NGram(Precalculation): ...
565bd19049e12ee5fa92acbe54a4b525900a3a5b
6f6ac0e44f1d49d2bec2d8d048754f1d865f2e9e
/_ext/bibtex_iclr.py
7e18ee4b8a3cd0e6cfdaae865a35abe4be25542c
[ "BSD-3-Clause" ]
permissive
So-Cool/you-only-write-thrice
fe7924cb0afd033bd74ae4a1c898733bae8fa385
ec594ac501c7fa6adbfb662999fc315dc1c149bb
refs/heads/master
2023-04-06T20:12:32.836939
2022-10-14T13:34:20
2022-10-14T13:34:20
357,175,220
15
5
null
null
null
null
UTF-8
Python
false
false
2,378
py
bibtex_iclr.py
# Copyright (C) 2021 # Author: Kacper Sokol <kacper@xmlx.io> # License: new BSD """ Implements the `iclr` BibTeX style for Jupyter Book and Sphinx (`sphinxcontrib-bibtex`). """ __version__ = '0.2' import pybtex.plugin import sphinxcontrib.bibtex.plugin from dataclasses import dataclass, field from pybtex.style.forma...
74dbadea005f4d48ad1d0bb5545a82fa72d840fe
2f919b97aea7f0698830658073ab939a0e84133f
/Alexey/Algorithms/OB_366/tests/test_sieve_of_eratosthenes.py
7a93fed40dfe4b13b3a0ab7be6a476d2515ac540
[]
no_license
glock3/Learning-
1efcf9174d77363b2ecf84a688dcda82ae8ee405
f80c8d8ac1bf6eb6472726fe86369149bb5f86ad
refs/heads/master
2023-01-08T23:21:22.665561
2020-11-08T23:54:53
2020-11-08T23:54:53
290,705,463
0
2
null
2020-11-08T23:54:54
2020-08-27T07:18:49
Python
UTF-8
Python
false
false
1,428
py
test_sieve_of_eratosthenes.py
import unittest from Alexey.Algorithms.OB_366.sieve_of_eratostenes.sieve_of_eratosthenes import eratosthenes class TestSort(unittest.TestCase): def test_send_zero_and_return_empty_list(self): expect_set = [] actual_list = eratosthenes(0) self.assertEqual(expect_set, actual_list) def ...
d7151b0d5ab5543d13acb15aaa66cbd44c885c26
41df57711328aff914125696fc06b242cf38095c
/src/robot_setup_v.py
7202e6ea7456417f1038ebb125e84d117e78dbb9
[]
no_license
k29645806/rtabmap_slam
c18c49ed12fb8338a1892657a4ceb6a6ffb2a78d
bacf6c55135d1ba73f4790a3903a791d58b22ac0
refs/heads/master
2016-09-14T02:16:51.221942
2016-05-23T09:30:07
2016-05-23T09:30:07
58,690,508
1
0
null
2016-05-20T02:29:10
2016-05-13T01:50:27
Python
UTF-8
Python
false
false
2,344
py
robot_setup_v.py
#!/usr/bin/env python import roslib roslib.load_manifest('rtabmap_slam') import rospy import tf from tf.transformations import quaternion_from_euler from std_msgs.msg import Header, String from geometry_msgs.msg import Quaternion, Twist, Vector3 from nav_msgs.msg import Odometry ''' Publish robot transform configurati...
0b01ae266d1a76a833e4a3a0037cc962c51743ac
81991eed7c72bd2c0e232c406af1dc570df64b87
/executables/ruffus/sequestimportWF.py
5e5a10fa292628a49c99d51443125c6dd5ef9e0a
[ "Apache-2.0" ]
permissive
lcb/applicake
ff19f53b5bf419048203b55e427a78bbeadb9de8
1d71c3441dc2c543b394dfeca1bdf4f67b4a4f16
refs/heads/master
2021-01-10T09:14:25.712389
2016-10-27T11:20:43
2016-10-27T11:20:43
44,384,082
1
2
null
2015-12-08T19:20:59
2015-10-16T12:37:31
Python
UTF-8
Python
false
false
2,741
py
sequestimportWF.py
#!/usr/bin/env python import os import sys import subprocess from ruffus import * basepath = os.path.dirname(__file__) + '/../../' def setup(): if len(sys.argv) > 1 and sys.argv[1] == 'cont': print 'Continuing with existing input.ini (Ruffus should skip to the right place automatically)' else: ...
f4b9a1cbaf2bbf794969b10b148df67baa4a6185
6466210442ed80b4ec6a5d3b337b7b900278e6c1
/repo/handlers/base.py
5d494d695c5509511895dedc215422eb17369a85
[]
no_license
jamierocks/ore
c643c00af52ae67d218d0ac33367cc588ad3f501
7f6ce71e829f693ab225100c501a19ea40e0491c
refs/heads/master
2021-01-20T16:22:13.054549
2014-12-29T20:53:56
2014-12-29T20:53:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,758
py
base.py
from repo.services.session import SID_COOKIE, load_user_from_session, USER_COOKIE from repo.models.sessions import user_for_session import tornado.web from tornado import gen class BaseHandler(tornado.web.RequestHandler): # Errors def write_error(self, status_code, **kwargs): if status_code == 405: ...
12bfa3cce653b499dc36bc4b093c1f9a6ee62d5f
53181572c4b22df4b569a9901bcd5347a3459499
/ceit_191221/py200201/literal_string.py
58a3f5bbc88ca361d91dd5ab47c620d85fe4ce81
[]
no_license
edu-athensoft/ceit4101python_student
80ef067b77421fce76d04f778d5c6de8b12f676c
33cfa438c062d45e8d246b853e93d3c14b92ff2d
refs/heads/master
2020-07-30T01:04:21.084384
2020-07-27T02:21:57
2020-07-27T02:21:57
210,027,310
0
0
null
null
null
null
UTF-8
Python
false
false
773
py
literal_string.py
""" python literal string """ # case 1 - using double or single quote str1 = "Hello kitty!" str2 = 'Mickey' print(str1, str2) # case 2 - multiple line string mstr1 = """aksjdfakasdjf alsdfjkas alsdfjas alsdkfjlasdf alsdfj""" print(mstr1) mstr2 = '''AAAAAAAAA alsdfjkas alsdfjas alsdkfjlasdf alsdfj''' print(mstr2) ...
5e74c36054634c01682806c3a14cf05ca0be35e9
7ce7b0b892eb457853706fab79f4c8d7d43e57c6
/trade_platform/migrations/0007_auto_20210518_0807.py
1ef1817cd29f25d02fce4da283424586064a1a5b
[]
no_license
vladbahmat/stock_platform
f9cc73039ebc8a7fdf139fe7657345fd49f13bf3
3605a99d626e10b9c1d68e60eca0bc9db91b05f2
refs/heads/dev
2023-05-10T12:53:50.366421
2021-06-10T12:06:51
2021-06-10T12:06:51
351,147,247
0
0
null
2021-06-10T07:49:27
2021-03-24T16:20:05
Python
UTF-8
Python
false
false
666
py
0007_auto_20210518_0807.py
# Generated by Django 3.1.7 on 2021-05-18 08:07 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('trade_platform', '0006_auto_20210518_0647'), ] operations = [ migrations.AlterField( model_name='workshift', ...