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
e041f1f8d826da0ec8c25aae560033b95b906125
5cba2d1a502ac1b08bcbbb7037639bfcaf6b6076
/Daemon.py
954b9547e7cf0edcc79d4dbed46174ee2c190575
[]
no_license
dglo/dash
c84474d38e01fc14f372539cd04cb1491e3e32fa
718189be62907a6a8031980fe0c41fa7e06b898d
refs/heads/main
2023-06-11T11:48:49.591844
2021-06-14T09:16:16
2021-06-14T09:16:16
341,388,631
0
2
null
null
null
null
UTF-8
Python
false
false
1,897
py
Daemon.py
#!/usr/bin/env python """ Turn the current process into a Unix daemon: Detach the current process from the terminal, close all file handles, and attach stdin/stdout/stderr to /dev/null """ from __future__ import print_function import os if os.name != 'nt': import resource import time class Daemon(object...
a2dbdb9130a22ddd917e29e5b1990024e08fd528
fcc7dd9d9c7f22808f907759cec6a339c5a1421c
/my_workstation/my-v2/core.mk_class.wrap_class.py
656a9a27361d5983dd29d5ebb5b7c30c2e0e2edb
[]
no_license
EmbraceLife/fastai_treasures
3ae792771af3510848c7bb19003b04cff8001e1e
4230be915e70a7e5a22f2f7e5137cca7045754fd
refs/heads/master
2022-10-30T07:46:46.397037
2020-09-09T04:09:14
2020-09-09T04:09:14
173,718,178
21
6
null
2022-10-06T05:32:28
2019-03-04T09:52:12
Jupyter Notebook
UTF-8
Python
false
false
4,797
py
core.mk_class.wrap_class.py
from local.imports import * from local.test import * from local.notebook.showdoc import show_doc from local.core import L, GetAttr, ifnone def mk_class(nm, *fld_names, sup=None, doc=None, funcs=None, **flds): """ "Dynamically add a class containing `fld_names` to the caller's module" purpose: 1. how d...
1fc540d79738f7fe18e5c8d793210eecbb9d167d
14a865e6b5ecb55b059b60d041a2fef16c5b36fd
/dataset/frequent_item_set.py
276cf06a6ca25c80150a17644065bcc5aafa8986
[]
no_license
chungathsreelakshmi/pacs
2623340fa02b24f0ce4c55481bc0dd9bf7035713
7e42119d312dbf063006eacba08f6939ba81fae3
refs/heads/master
2020-04-27T06:28:44.915340
2019-03-07T05:44:06
2019-03-07T05:44:06
174,069,119
0
0
null
null
null
null
UTF-8
Python
false
false
2,801
py
frequent_item_set.py
import pickle import itertools import sys import pprint #all permission def get_all_permission(): all_permission = [] file = open("all_permission.txt","r"); for line in file: line = line.strip() all_permission.append(line) file.close() return all_permission; def get_data_set(): file = open("dataset.pickle","...
18a808185b58769dadb5b51ddc3bff51274eb39b
bbfdcb09168632071bc0a7dfdf94330d95720bc5
/worker.py
1a116282bfd9705deec1cdfb553f1143858547af
[]
no_license
FelipeMDuarte/cataas
59d1158993a9834fccb3229fe9c17483a9aa0cbb
c3c36309e0c019979673169bd5d61e816c328057
refs/heads/master
2023-04-28T03:19:07.463128
2021-05-21T06:24:55
2021-05-21T06:24:55
369,434,492
0
0
null
null
null
null
UTF-8
Python
false
false
409
py
worker.py
from selenium import webdriver from datetime import datetime def worker_func(url): driver = webdriver.Chrome() driver.get(url=url) date = datetime.now() datef = datetime.strftime(date, "%d-%b-%Y-%H:%M") ss_name = f"{url.split('www.')[1]}-{datef}" driver.save_screenshot(f"./ss/{ss_name}.png") ...
eff15d3e2e684c8e6a41eaf07a0d2cf64f3bc1e0
368eae1983b41de142610a8169e66a33d134ff2e
/POP1/worksheets/recursion-ii/ex04/test_ex04.py
19568cc2a7f1d936b760e36642944948f2649a4c
[ "MIT" ]
permissive
silvafj/BBK-MSCCS-2017-19
a9b7bd0c9e6487645b17a5bc7033a3f6bca6708f
d97b0f8e7434d19a1a4006989c32c4c1deb93842
refs/heads/master
2021-03-27T17:05:06.148323
2019-08-20T19:04:27
2019-08-20T19:04:27
121,948,372
2
2
null
null
null
null
UTF-8
Python
false
false
209
py
test_ex04.py
from how_many import how_many def test_one(): assert how_many(1) == 1 def test_two(): assert how_many(12) == 2 def test_three(): assert how_many(123) == 3 def test_four(): assert how_many(991012) == 6
74b46dc3b9a8deafe216d666f72c9ab1949843ac
d395207a55d4cdbd6760c5ce486acdba72da9b81
/generadorDeCodigo.py
464074463bca5f17f1f227f0c0a0bbe37a3d743b
[]
no_license
Miguel-A-Ramirez/generadorDeCodigo
7fd9da6cc0d4e9e99fd584e9a7e3020fdc465539
2529c9315c4777fd0e64704f51dcaad263979922
refs/heads/main
2023-05-04T13:15:27.485082
2021-05-19T16:24:50
2021-05-19T16:24:50
368,929,034
0
0
null
null
null
null
ISO-8859-1
Python
false
false
3,503
py
generadorDeCodigo.py
# -*- coding: cp1252 -*- def obtenerPrioridadOperador(o): # Función que trabaja con convertirInfijaA**. return {'(':1, ')':2, '+': 3, '-': 3, '*': 4, '/':4, '^':5}.get(o) def listaDeTokens(texto): '''Dado un texto de código completo, devuelve todos sus tokens.''' token = "" listaTokens = ...
c42c1e4eff9846069b8f97315ddab8a23459c345
006660db5797340ccfcba9472bf533c348fa21b5
/MyFinanceAPI/scripts/handle_user.py
8a9dae416bbdfd25dbc3678d2f63155fce09a4e3
[]
no_license
lianggaov5/FinanceAPITest
12a6204f2a40617e7a424b7024a49d80fa624640
0ff9200ae15be538561f03288551f66065acd285
refs/heads/master
2023-04-04T18:42:28.889390
2021-04-09T09:15:05
2021-04-09T09:15:05
356,208,830
0
0
null
null
null
null
UTF-8
Python
false
false
1,662
py
handle_user.py
# -*- coding: utf-8 -*- """ ******************************** @Time :2021/2/21 8:59 @Author :John @Email :337901080@qq.com @File :handle_user.py @Software :PyCharm ******************************** """ from MyFinanceAPI.scripts.handle_request import HttpRequest from MyFinanceAPI.scripts.handle_mysql import H...
e7d7832ca4122c6cc18f48bd25bc8bb2ba2d8856
117fb5afcd01d17af892b9e2adac85546fea0ad2
/Trabajo Practico N1/python-client/client/grpc_module/services/tipoMedicamento.py
5cf322b8a4722af09eb06174d87521b37079e167
[]
no_license
FrancoBorsani/Sistemas_distribuidos
95ad523722d6db5003807045c0c16d354fda1358
e9e5a6ceee20f2ee199abb6632609758612b90ad
refs/heads/master
2023-07-23T15:02:07.185644
2021-09-08T21:08:36
2021-09-08T21:08:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
873
py
tipoMedicamento.py
import grpc import grpc_module.messages.tipoMedicamento_pb2_grpc as pb2_grpc import grpc_module.messages.tipoMedicamento_pb2 as pb2 class TipoMedicamentoClient(): def __init__(self): self.host = 'localhost' self.server_port = 9091 self.channel = grpc.insecure_channel( '{}:{}'.fo...
4d39ed652205dfa763040b4b22b8ef1573f9cd3d
a20af13888d3e35196c2b6d389046b49d7ee1705
/Scrapers/timetable_scraper.py
f1e5e36d28b757c7fb6e4098b3749783cfa5d5a9
[]
no_license
Bruce-morty/DublinBusProject
cb35057b355de3546c723d69197c0dbb884efd3b
64f2725735452e1f463f2ac2214460248abe2e1f
refs/heads/master
2022-12-30T17:08:47.300397
2020-10-21T14:46:06
2020-10-21T14:46:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,051
py
timetable_scraper.py
import requests from bs4 import BeautifulSoup as bs import pymysql host="MY_HOST" port=3306 dbname="MY_DATABASE" user="MYUSER" password="MY_PASSWORD" conn = pymysql.connect(host, user=user, port=port, passwd=password, db=dbname) cursor = conn.cursor() data = requests.get('https://www.dublinbus.ie/Your-Journey1/Ti...
afea79fab6ac166a57d89a50028c1ca4c6b08f09
a8348e4a7c668493df00ff0a710c85c97220f36c
/NamesScores/NamesScores.py
dd1cce83f0a6b842b4307e7a72bedeb898e90cea
[]
no_license
bryanfoley/ProjectEuler
5a1854eaa3889c507fe653341b845ec621a570d6
f6cbbdaa88b1d59b93a958407b739fbb3c9620b3
refs/heads/master
2021-06-18T11:21:09.065365
2021-04-04T22:00:52
2021-04-04T22:00:52
75,065,298
0
0
null
null
null
null
UTF-8
Python
false
false
502
py
NamesScores.py
import collections names={} names_list = [] with open("p022_names.txt","rb") as handle: for item in handle.readlines(): names_list=item.split(",") for name in names_list: sum=0 for letter in name.replace('"',""): sum+=ord(letter)-64 names[name.replace('"',"")]=sum names = collections.Ord...
ccaa53e454a3f791319da41285008174f9dd41b4
6b9d5668e3edd44a1c4cab15a01b9347a2de74e6
/sql_queries.py
a827a5706df40d8e95072d9397d25bf165bce925
[]
no_license
RussellHarris/Data-Engineering-6-Capstone
878bf330fb4ec46687f966b233f0e22e3a53e720
5bf72a14c053842f03a471f8b7b6b64b59b54f9a
refs/heads/main
2023-03-18T07:35:02.464683
2021-02-27T02:07:36
2021-02-27T02:07:36
342,741,702
0
0
null
null
null
null
UTF-8
Python
false
false
22,444
py
sql_queries.py
# IMPORT import configparser # CONFIG config = configparser.ConfigParser() config.read('dwh.cfg') s3_bucket = config.get("S3", "BUCKET") s3_raw_data = 's3://' + s3_bucket + '/raw' s3_lookup_data = 's3://' + s3_bucket + '/lookup' ARN_IAM_ROLE = config.get("IAM_ROLE", "arn") # DROP TABLE QUERIES staging_airport_codes...
0d9538d84f2604a9c6923788e31a7e552dd55421
d063fff3c24794f1adc465cfa26aa118cc752be4
/dtos/EventDTO.py
fa3bb3c28ceac3de8d91e2bdf26257814c8f2847
[]
no_license
FitSmartHotel/component-controller
8e18f78c50701e1446e37c5c8ec8826bbb0b8ea0
201f3526c18a14d99cb2806c3d2945b64ee3091c
refs/heads/master
2023-04-12T14:28:10.108105
2021-05-15T11:54:51
2021-05-15T11:54:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
306
py
EventDTO.py
from typing import TypeVar, Generic from enum import Enum T = TypeVar('T') class SensorType(Enum): DISTANCE = 'DISTANCE' class EventDTO(Generic[T]): def __init__(self, sensorType: SensorType, sensorData: T): self.sensorType: str = sensorType.value self.sensorData = sensorData
0373ea3ad6d2e65c2790d5297f64873bc01ee9c8
74754de1887b7266d981bbac7cd3388547e61088
/python_linear_regression/apm.py
813988f86c6a322cd355e1ba6595eb1b720e068d
[]
no_license
dalbano96/RegressionTechniques-AAS
b70b7c9c7339dcce0e6a12ad532a9843ce8722f1
1e97a2ab3eb7bf65cf78edbbf1b070c72359055b
refs/heads/master
2020-03-20T22:48:55.066214
2018-06-19T15:38:32
2018-06-19T15:38:32
137,815,970
0
0
null
null
null
null
UTF-8
Python
false
false
114
py
apm.py
# Import import csv def csv_load(filename): f = open(filename,'r') aline = f.read() f.close()
9634e00fa4176c4a4e0b9ef615e5a98a07af9f87
9872927e57c1639c398227a545795c8eecba65d3
/speak.py
c88ae6618d28968b46c334d274a5971b729b26d6
[]
no_license
zubairahmedanas/Speaking-Detection
528944adb86af493eeb76e0f4f46d838303d29d5
f9de04fe4ff54f556930f37483322c873d993f10
refs/heads/master
2020-09-14T18:41:12.025772
2019-11-21T16:50:25
2019-11-21T16:50:25
223,217,501
2
0
null
null
null
null
UTF-8
Python
false
false
169
py
speak.py
from imutils.video import VideoStream from imutils import face_utils import datetime import argparse import imutils import time import dlib import cv2 import numpy as np
e038c11fd0f50b190077fab28ae631bb5a5bdc74
2051e185c8be895110a528575570145ffa1614e4
/Histograms and scatterplots/Histogram.py
b7891dd302fc5e74e1084cfa43df21a20bfa53a0
[]
no_license
leo12chandu/MachineLearningForTrading
782a2c45b7f18a6d6906a0f986ee7a4113d519c4
56b1af0b93c736faf37960d21ab948281eb3671c
refs/heads/master
2020-05-04T19:34:07.375570
2019-04-04T01:34:41
2019-04-04T01:34:41
179,399,459
0
0
null
null
null
null
UTF-8
Python
false
false
4,461
py
Histogram.py
import pandas as pd import matplotlib.pyplot as plt import os import pylab import numpy as np #from ..util import get_data, plot_data def compute_daily_returns(df): df_daily = df.copy() #1st Way #compute the daily returns df_daily = (df_daily / df_daily.shift(1)) - 1 #OR #2nd Way ...
853f0b90e514e1de72e6d7a21dde14a88afbc9ce
03d45c42959785c331170e51b963444bfc8c3d72
/engine/migrations/0004_remove_webpage_crawler_ip.py
06d5bce9a97bf28fe3625ff50a5d428c84455feb
[ "MIT" ]
permissive
bernardobranco/ucl-search-engine
36af1cb314631665395552185759f27f364f54c3
1d6b39dd1e65f77a8a7c84d9aad6e847a12f8a38
refs/heads/master
2020-12-14T09:53:27.297566
2017-06-26T17:12:47
2017-06-26T17:12:47
95,467,042
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
0004_remove_webpage_crawler_ip.py
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-03-29 16:45 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('engine', '0003_auto_20170329_1033'), ] operations = [ migrations.RemoveField( ...
a9fe1735cec5367c40f30bb1c32b1fb11e4ad37a
1649a253c2bc87af566674eb991ec2d2e39788fc
/scripts/game_event_listerners.py
129631e5b6a931395f9e539a52aed9eae839d3b7
[]
no_license
andie23/_Puzzled
187cfa48d6662cdc04c2aa9db84e81a1861e4449
a26d5bc8ae7525997e98d302d852b568a3e135d1
refs/heads/master
2020-04-30T06:36:15.601313
2019-07-17T21:11:43
2019-07-17T21:11:43
176,656,922
7
0
null
null
null
null
UTF-8
Python
false
false
2,509
py
game_event_listerners.py
from listerner import Listerner from logger import logger log = logger() class GameListerner(Listerner): def __init__(self, channel): from session_listerner_global_data import SessionListernerData super(GameListerner, self).__init__(SessionListernerData(channel)) class OnGamePauseListerner(GameLi...
8ac4a86ec563c9f088d9e6b5fbc75598b75500d1
fe32ee60ed39d6302b6b94fd88710bd3ac339acf
/main.py
4cc72094893fcf984f093b5f2269d4472f4d39ef
[]
no_license
klma13/aktualbot
2054895e9ddff0d4ef116e6d4d559c8b6ae5bc03
51949417f31f53641ce5d0956d98a6df22711fe1
refs/heads/master
2023-05-29T07:32:07.568347
2020-01-09T14:32:16
2020-01-09T14:32:16
213,438,146
2
0
null
2023-05-22T22:30:44
2019-10-07T16:54:22
Python
UTF-8
Python
false
false
1,862
py
main.py
import requests import time from bs4 import BeautifulSoup import re import yagmail from emails import emails from emails import auth # Set the URL you want to webscrape from url = 'https://www.novinky.cz/zahranicni/svet' print("Making a request to",url) # Connect to the URL response = requests.get(url) print("Got ...
7395b9eafa00a7d3a4fb50677c74cd5ec05a13fc
df3f9a981ab2fd5324030dd71a7fd14db4f9d1b9
/init
9659d7fb6e76bf73045f2e6a38d456cf349402d6
[]
no_license
DrakkoFire/DrakkoTools
eafbe29cec8339fe9e6dd60a51a8840505991986
ac0f1b527985a4c9f9d6744032dc4badcca34cda
refs/heads/master
2020-04-07T08:46:30.263117
2019-01-16T13:28:17
2019-01-16T13:28:17
158,227,307
0
0
null
null
null
null
UTF-8
Python
false
false
4,791
init
#!/usr/bin/env python3 import sys, os, time, json, shlex, subprocess, random, argparse from termcolor import colored from functions import * ################################################################# # # # # # # # Creado por DrakkoFire # ...
f34582ce5bd2a8bf10a1874cb29907b5a74f79fc
1fed7e2da2621a0fea7bdaf33bb126b57e465fa0
/loadpickle.py
3990a52fdb98d6b10b0280d1f807c0b9ae99ce62
[]
no_license
PeggyYuchunWang/driving-interactions
1cae0ffad9819e13d7b19da09de2bcca0a1be6c7
6bf51c9ea10786786fa4651130323c66d451a4e0
refs/heads/master
2021-07-25T02:43:03.019290
2018-06-12T02:06:22
2018-06-12T02:06:22
132,164,068
1
1
null
2020-04-04T23:56:32
2018-05-04T16:29:28
Gnuplot
UTF-8
Python
false
false
3,095
py
loadpickle.py
#Peggy's code import pickle #import numpy as np import subprocess from pylab import * import matplotlib.pyplot as plt dt = 0.1 #file = open('data/world0-1527286477.pickle', 'r') #file = open('data/roadfeatureremove.pickle', 'r') #file = open('data/simple_simulation.pickle', 'r') file = open('data/world10-1528091681....
6c5f60e7a122e3da5e6705bfacf73a361f6c1362
d491c11dc87a955c95a4e14a2feea19fe1fa859e
/python/Arcade/Python/P57CorrectLineup.py
26acc5b36bf79b9cebe639ce3dd77216716c2116
[]
no_license
Vagacoder/Codesignal
0f6ea791b25716cad7c46ab7df73679fb18a9882
87eaf44555603dd5b8cf221fbcbae5421ae20727
refs/heads/master
2023-07-16T04:18:44.780821
2021-08-15T18:41:16
2021-08-15T18:41:16
294,745,195
1
0
null
null
null
null
UTF-8
Python
false
false
1,549
py
P57CorrectLineup.py
# # * Python 57, Correct Lineup # * Easy # * For the opening ceremony of the upcoming sports event an even number of # * athletes were picked. They formed a correct lineup, i.e. such a lineup in # * which no two boys or two girls stand together. The first person in the lineup # * was a girl. As a part of the perfor...
f91e1fdc31b2fe1aef15757576d847c617a86201
bdb2eff95469b4ba2f816a50874c589d5ce7c255
/src/tests/test_objective.py
17dcf1eae952a968d0e3b7fcc2ba50a7e60b07be
[ "BSD-3-Clause" ]
permissive
yudongqiu/forcebalance
f72b4250c819561f7f5b9f8e24c152407c147186
9292be2a9ca97781c6b3e0752f71775c778d783a
refs/heads/master
2021-01-19T16:13:03.367813
2019-08-05T14:35:42
2019-08-05T14:35:42
56,627,071
0
1
NOASSERTION
2019-08-21T21:19:57
2016-04-19T19:49:35
Python
UTF-8
Python
false
false
7,341
py
test_objective.py
from __future__ import absolute_import from builtins import str from builtins import object import unittest import sys, os, re import forcebalance import abc import numpy from __init__ import ForceBalanceTestCase class TestImplemented(ForceBalanceTestCase): def test_implemented_targets_derived_from_target(self): ...
374fbb986524f28cc86f6e579f504eeb8ddc9701
990a5c55d1bddecbfcfe545da95784ebdb31f7a6
/parse_stream.py
0622a98e571f88f32e6445e74eb959343eb56d5c
[]
no_license
jakecerwin/I3
ead28e596639ccb7892ad3fb28cc7f9bee116d1a
96e6c9fb92a75da3cc053bbd821569b461f64a81
refs/heads/master
2022-11-01T13:09:34.908155
2020-06-17T02:43:53
2020-06-17T02:43:53
272,859,365
0
0
null
null
null
null
UTF-8
Python
false
false
2,994
py
parse_stream.py
from kafka import KafkaConsumer import csv users = set() # returns string of title given a ConsumerRecord def parse_cr(cr): binary = cr.value string = binary.decode('utf-8') # [time, user id, GET request] return string.split(',') # returns string of title given a ConsumerRecord in name+name+year for...
bea90bbcd4d34b64c21f022b6f3af2bee2d978e4
cea5d5ba35157ec7885f21b679d438636925ebd1
/wsgi.py
e8e932dd4a299f814e55be9fd2690475f8c49849
[]
no_license
somul-project/somul-apply-library
d1eca8c267cb0c7d8a270b542c203d9839a4d1f1
7d2d9ebc955b8286bf455f8854e47666e69b1f36
refs/heads/master
2021-04-06T00:31:39.718199
2019-12-23T08:37:43
2019-12-23T08:37:43
124,636,180
1
4
null
2019-12-23T08:38:08
2018-03-10T08:18:34
HTML
UTF-8
Python
false
false
164
py
wsgi.py
from app import create_app from app.config import Config app = create_app(Config) if __name__ == "__main__": app.run(host="0.0.0.0", port=5000, debug=True)
6b7bc40ba842ff565e7141fb1d51def99d9ab96a
a255332fb009e2d9c3b4faeabde03dda8070cba0
/switching_sampler.py
1023fe326f58c47564daeaea0b15a5202a130031
[]
no_license
bb-in-hoodie/CycleGAN-on-pytorch
37a64025ee7446865b9e4f4a88d27833eedd94da
98bb919b62ca32ec79e7611199ab7c6b799fd28b
refs/heads/master
2021-09-04T08:41:41.075894
2018-01-17T11:27:16
2018-01-17T11:27:16
107,506,950
1
0
null
null
null
null
UTF-8
Python
false
false
2,367
py
switching_sampler.py
from torch.utils.data.sampler import Sampler import torch import random class SwitchingBatchSampler(Sampler): def __init__(self, data_source, batch_size, drop_last=False): self.data_source = data_source self.batch_size = batch_size self.drop_last = drop_last # Divide the indices into two indices groups se...
68d37421b71d595510a1439c06cc31d00c23c277
a2b1e3789dac55314af0afa34ac0538d00bd7b2c
/noeleon930/random_forest/timelines.py
47fbfeba8ef1bf568be0331885f7e6fad0db9969
[]
no_license
noeleon930/hao123
011969ec8d2e82c9197431a4b9b692cf6732b7d2
21110d3f9b940075c8a8e18708397e4fc3afed92
refs/heads/master
2020-05-31T00:11:20.200105
2016-01-08T05:50:35
2016-01-08T05:50:35
36,499,817
0
0
null
null
null
null
UTF-8
Python
false
false
1,341
py
timelines.py
import numpy from sklearn.ensemble import RandomForestClassifier from sklearn.ensemble import GradientBoostingClassifier from sklearn.cross_validation import cross_val_score lag = 10 print "Loading train_data..." train_data = numpy.loadtxt("../KddJavaToolChain/train_timelines_final.csv", delimiter=",") print...
c6502d6b589fa75dfbd5946a1097e77fc0b472c4
9e75f86caaf428b5c6ab470fe2204d5a20538a3d
/webserver/webserver/databaseConnection.py
15c63866345d74e9a1942493a3a21afea7ef3107
[]
no_license
wkelly1/notarmleg
610c9ed718b67abbc053b4685a6d24c8da80ca03
18c3eba40403a2b95565cfad5170c659d0519648
refs/heads/master
2023-05-29T22:27:49.424654
2020-03-19T20:44:28
2020-03-19T20:44:28
242,339,247
0
1
null
2020-02-23T07:14:06
2020-02-22T12:37:58
Python
UTF-8
Python
false
false
2,479
py
databaseConnection.py
import MySQLdb from MySQLdb import escape_string as thwart """ """ class DatabaseConnection: def __init__(self, address, user, password, database): self.address = address self.user = user self.password = password self.database = database """ """ def connect(self): ...
d2972fb7cff08e15957f9baeaa6fd9a6f5bbb006
65cbb867e87ed699d64a7297d0604570c1fa913b
/calculator_oop.py
29bdb1898bfe7e1039134c5a3653903679baedca
[]
no_license
Filipe-Seixas/engi89_oop_tasks
3a7f10dae6e40e74813d743ce5e931577f56381b
2cc6d6f6becaff42a2de8aee29c3d3a4ec0ed6c3
refs/heads/main
2023-06-07T00:14:54.968497
2021-06-24T19:25:01
2021-06-24T19:25:01
380,029,081
0
0
null
null
null
null
UTF-8
Python
false
false
844
py
calculator_oop.py
# This file is part of the functional_calculator_oop.py Task # Create a class called Calculator class Calculator: def Add(self, num1, num2): return num1 + num2 def Subtract(self, num1, num2): return num1 - num2 def Multiply(self, num1, num2): return num1 * num2 def Divide(sel...
2a5d498a386190bdd2c05bc2b14db0fecd707162
c1720b55b35a59aa5b549a5d79542c20fdaa8577
/linkedlist/__init__.py
92aac40747152e6b583925d383dd1067893b0507
[ "MIT" ]
permissive
platten/linkedlist
eef076afd1c4f5680b27886a19d0b692512ae3a2
e055794b61678e71afaafae5caaf27425a5a4524
refs/heads/master
2020-05-03T04:15:19.037973
2019-04-01T13:22:29
2019-04-01T13:22:29
178,416,619
0
0
null
null
null
null
UTF-8
Python
false
false
40
py
__init__.py
from .slinklist import SingleLinkedList
6b45541c54f1a4ce94d6bd457701ecd1b90a4c4c
cc0280454fa41428afdfec94ffbd9a3fb325cf80
/Paul'sServices/ReleaseSystem/fabfile.py
3c2452d5b20e9f49794266f625c83a0ff74a0959
[]
no_license
freedom-boy/PythonProject
525b0db8d7e749a43bd15de4e6568d9839cd6e6f
a81465af8e4b2adb3e26fa403f529e643354c79d
refs/heads/master
2021-01-10T11:07:46.957713
2016-05-06T02:52:25
2016-05-06T02:52:25
44,686,007
0
0
null
null
null
null
UTF-8
Python
true
false
279
py
fabfile.py
#!/usr/bin/env python #_*_coding:utf-8_*_ #作者:Paul哥 from fabric.api import settings,run,cd,env,hosts from fabric.colors import * env.hosts=['192.168.75.130:22'] env.password='hello123' env.user='root' def test(): with cd('/home'): print yellow(run('ls -l')) test()
a39317a13a3382411f59bcfa393b6f74b202062e
76f2a4ea3896a74b155ff970b3ddd538f268ebd4
/25_mongodb/find_03.py
61cd006da4562376cee114c5149c0cfe4ff23cdd
[]
no_license
jnjnslab/python-sample
fb91c34aa274ae6371c9548637e9fe2994da63ff
ce71ceff2854e59c020c646831360a04f6eba0c0
refs/heads/main
2023-02-03T01:36:59.926884
2020-12-23T10:18:13
2020-12-23T10:18:13
309,023,319
0
0
null
null
null
null
UTF-8
Python
false
false
583
py
find_03.py
#ライブラリのインポート import pymongo from bson.json_util import dumps #サーバに接続する uri = "" client = pymongo.MongoClient(uri) #db(sample_mflix)を取得する mflix = client.sample_mflix #collection(movies)を取得する movies = mflix.movies #条件を指定してを件数をカウントする count = movies.count_documents( { "cast": "Salma Hayek" } ) print(count) #条件を指定してを全件読み...
86ec997e2c785fd3f460cc807cfeeaea8cff96bd
fb9ee00025b9e4b19bd7c9d009094d088f481125
/google-code-jam/Google Code Jam 2013 - Qualification Round/A.py
634f4d8db14ef62bbc0120733ce7ac76d3b4c765
[]
no_license
wonjohnchoi/competitions
e382e3e544915b57e48bbb826120ef40b99b9843
4ba5be75a5b36b56de68d4a4ab8912d89eb73a0e
refs/heads/master
2021-01-16T00:28:33.446271
2015-09-12T16:53:25
2015-09-12T16:53:25
2,786,296
1
1
null
null
null
null
UTF-8
Python
false
false
1,068
py
A.py
# python 2 fi = open('A.in') fo = open('A.out', 'w') def line(): return fi.next().strip() def wins(c, maze): t = 'T' nd1 = 0 nd2 = 0 for i in range(4): if maze[i][i] in (c, t): nd1 += 1 elif maze[i][3-i] in (c, t): nd2 += 1 nr = 0 nc = 0 ...
5c2f20a91317652e55aa40191d26ce5498a4721e
58110bd765daad7ad8d41175da001000e63d7256
/baselines/scripts_python/python_packages/lingam_master/tests/test_varma_lingam.py
78b02f8a4c005f33a699cb1d5f31e0d92ffae42d
[ "MIT" ]
permissive
mivanovitch/causal_discovery_for_time_series
c7c9c9081167bd7b53eadc6bffa2f39b84ec084b
970c4d00c3f8f52923802ed030d4014e24723187
refs/heads/master
2023-08-30T20:46:50.498706
2021-11-04T16:35:46
2021-11-04T16:35:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,103
py
test_varma_lingam.py
import os import numpy as np import pandas as pd from lingam.varma_lingam import VARMALiNGAM def randnetbalanced(dims, samples, indegree, parminmax, errminmax): """ この関数は以前頂いたmatlabのスクリプトを移植したものですのでご確認不要です。 create a more balanced random network Parameter --------- dims : int number o...
50b8aea7c2b6fa98d1f6b670e0c8cb355051433b
68bfc12fe792241947b299f9e0a7a96ba52bef7b
/src/graph/test_node.py
5adb62ceeea73855e605cc01c62f49ee89e2ebea
[]
no_license
mengmengmeng666/NoisyLDPCDecoder
642a8b2ba2b343007ecffbae88085194a9cd48b6
ec9cb36abf8ba4e03fe095815558a5f815ff1965
refs/heads/master
2020-04-09T04:52:51.774404
2014-05-10T22:19:32
2014-05-10T22:19:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,747
py
test_node.py
''' Created on Nov 6, 2013 @author: Erik ''' import unittest from node import Node from node import FactorNode from node import VariableNode from communication.message import BinaryMessage class Test(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def test_connect...
fff985fea1b638eb00e6846a603ca3df4b0bc117
c516d5f264f8aa88c25775f78d9dcb2d4b25999a
/leads/migrations/0014_auto_20210311_1604.py
725eb75368aba854765322150470964c530464ac
[ "MIT" ]
permissive
dEvBranco/django_CRM
f336996c8a78fbfd409fda36040139842d2cff3c
0506916763a43029a512144b8032f5e59ea5b9a5
refs/heads/master
2023-04-06T10:55:22.289115
2021-04-12T10:42:34
2021-04-12T10:42:34
339,695,442
0
0
null
null
null
null
UTF-8
Python
false
false
388
py
0014_auto_20210311_1604.py
# Generated by Django 3.1.6 on 2021-03-11 16:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('leads', '0013_auto_20210311_1547'), ] operations = [ migrations.AlterField( model_name='lead', name='phone_number', ...
e7ffc82d8c8366a2db30a73b9cf1b1f13750b652
e3dafa2bbdc896e2593ed77674f586399f3c9e38
/scripts/process_minority_data.py
c3052611bba8c12706120bff4789e385d65e65c7
[]
no_license
Ludo915/covsco
3551231be22e361b372d1eaf7df15a3dd9e44d8d
4fec21073aefb4c6a59820b6bf59ae627c989248
refs/heads/master
2023-04-18T18:55:46.162014
2021-05-03T21:56:18
2021-05-03T21:56:18
354,550,199
0
1
null
2021-05-03T21:56:18
2021-04-04T13:26:26
HTML
UTF-8
Python
false
false
1,481
py
process_minority_data.py
import pandas as pd class process_minority_data: def __init__(self): self.data = None self.dic = None self.depts = None def add_minority(self, row): return self.dic[row['nom']] def process_minority(self): self.data = pd.read_csv('/home/ludo915/code/covsco/data/tr...
3472f93927f35f29f3574149f89e1e0994a5f51a
11d26bb8060305eedc42ee2b7c3f902814a468a7
/nba_gamelog_scraper.py
6a84571570b28e39347d533f07fb6f5206a7cfef
[]
no_license
tylerpalmerdev/fantasy-public
efe89101bb91338083278256d343f53b535d782b
6757597206e5d6c00d1001e7dbbb43c606206834
refs/heads/master
2022-10-06T10:02:59.967939
2016-04-06T20:55:34
2016-04-06T20:55:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,031
py
nba_gamelog_scraper.py
import requests from lxml import html import PlayerSuite as ps import linksFilesCreds as lfc from Projection import Projection def getStatsForDate(game_date): """ Optional game date in YYYY-MM-DD format Default is yesterday Uses basketball-reference.com Returns all stats in dict """ # creat...
c43369969651c9be5a49154c1fc55d0d8b8916ff
5192511895ded9495bf386ed5f289eb7f15bdc7b
/wind_speed_endpoints.py
a0d9d951d5776f2fb18e2e711d09c96795a98d4c
[]
no_license
win2013/eye-of-the-storm
8fa7bdfd2bed91f86b7335e9cf410675e6371389
89675e0bb4569733c75dd810ed25fec9ac1c179f
refs/heads/master
2020-04-02T05:19:10.394316
2018-10-21T14:35:53
2018-10-21T14:35:53
154,066,724
1
1
null
null
null
null
UTF-8
Python
false
false
747
py
wind_speed_endpoints.py
from flask import Flask, Response class EndpointAction(object): def __init__(self, action): self.action = action self.response = Response(status=200, headers={}) def __call__(self, *args): self.action() return self.response class FlaskAppWrapper(object): app = None ...
3022a65dc229c8e5a428390e53668ae990edfdcc
7f5628903ee65158ea9f04a7bcbb633e546d46f4
/Method_bind.py
c663fad44d0ce0ebcd4c22cfa11a71d781a83127
[]
no_license
ziGFriedman/Tkinter
19c9efee42cf967d05de35dd2a9748b9270579c6
9ea04be6ff5f127898f7b5b5f1bd1d9e76c72369
refs/heads/master
2020-05-22T06:08:10.113803
2019-06-06T05:06:17
2019-06-06T05:06:17
186,247,965
0
0
null
null
null
null
UTF-8
Python
false
false
2,749
py
Method_bind.py
'''Метод bind()''' # В tkinter с помощью метода bind() между собой связываются виджет, событие и # действие. Например, виджет – кнопка, событие – клик по ней левой кнопкой мыши, # действие – отправка сообщения. Другой пример: виджет – текстовое поле, # событие – нажатие Enter, действие – получение текста из поля методо...
b9e868aee4369fd6c5f578cf53e5b89a01390a57
b370b955afa231e7f6c79fe4c95af687661ebc24
/runbook2.py
774497ad8d650abc085ab9878b10f6976d7b4d58
[]
no_license
HWNET12/Nornir
e9e152cc2d477feb38a99afce08b8c36b3f4b1b6
26ca756664c209b9205816c35bddf2216a0182e0
refs/heads/main
2023-08-13T15:10:28.496854
2021-10-06T16:26:43
2021-10-06T16:26:43
414,286,563
0
0
null
null
null
null
UTF-8
Python
false
false
365
py
runbook2.py
from nornir import init_nornir from nornir_scrapli.tasks import send_config from nornir_utils.plugins.functions import print_result nr = init_nornir.InitNornir(config_file="config.yaml") def random_config(task): task.run(task=send_config, config=f"no ntp server {task.host['ntp_server']}") results = nr.run(ta...
f957a6eb38fc71de369627c1f411d55892f49e87
90fc965c289f643fcb22b5c1e027c9df12dd1268
/csrc/losses.py
17422c85d7225f964e21b1564977186affbf2c9d
[ "Apache-2.0" ]
permissive
kotenev/Auto-Subtitle-File-Generation
609dcae0c761caea0037dc73a34ce08cc26f0dbc
535a6351f450b1970da50bbbf4cc6d2f442ec335
refs/heads/main
2023-08-29T02:21:56.230262
2021-11-09T01:41:17
2021-11-09T01:41:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,847
py
losses.py
# Some codes FROM: https://github.com/koukyo1994/kaggle-birdcall-6th-place/blob/master/src/criterion.py # THANKS a lot! """ Loss functions for training. """ import torch import torch.nn as nn import torch.nn.functional as F class PANNsLoss(nn.Module): def __init__(self): super().__init__() self...
10b958775eb99bb1f1a012c507a0c556036ba72c
81b96c7d1cee8fcb4a35c14ddf4fc2c0df5c30c3
/full_friends/full_friends.py
1dc52155ba2f8cafe96665282ba428d857ed53ec
[]
no_license
KyleSeem/Flask
02e90747e1437bf106f5bbcd93b1a1fa35d02c54
6d40187d5d87873583c6aad8e70a091fd4a91a67
refs/heads/master
2021-01-20T20:03:16.439276
2016-07-16T16:16:38
2016-07-16T16:16:38
62,326,077
0
0
null
null
null
null
UTF-8
Python
false
false
1,994
py
full_friends.py
from flask import Flask, render_template, redirect, flash, session, request, jsonify app = Flask(__name__) app.secret_key = 'AustralopithecusFriendsTilTheEnd' from mysqlconnection import MySQLConnector mysql = MySQLConnector('full_friends') #routes to landing page whoch holds friends table and add friend form @app.rou...
b07659e39d3b3a38bcd46b9eeedd7855fd99a453
0f15bc1410e1efa0c8e767aa542cc667d0fa540b
/rdiocli/oauth2/call.py
0b8c7420e03164e217215b50839907879d46d447
[]
no_license
dasevilla/rdiocli
9a24c969b7ab0a622aed1ffe0169bf53b5464a63
ecbfffd85f75542abb082bdbad53271f42b591e2
refs/heads/master
2020-05-17T10:36:32.708056
2015-10-20T18:46:18
2015-10-20T18:46:18
4,298,375
5
0
null
null
null
null
UTF-8
Python
false
false
2,387
py
call.py
import json import os from cliff.command import Command from requests_oauthlib import OAuth2 import requests from base import OAuth2Exception os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = "1" class RdioCall(Command): API_URL = 'https://services.rdio.com/api/1/' def get_description(self): return "Make...
8488e627c15eeed28db18f5a9c0a06a6b380f759
5273b86507e4268d6af40e0d14852453b2244b23
/examples/provision_from_json.py
22177618e004e8fba21fda30f45f33a5a7b47c2d
[ "MIT" ]
permissive
ExalDraen/python-libsolace
567d5d600c41f7b9eff746ea7edfee1e65da94f7
76abd2ac8b9f2c579fa9c23ae0c988ce001fabaf
refs/heads/master
2020-04-02T15:59:25.511127
2019-02-07T06:36:50
2019-02-07T06:36:50
154,593,036
0
2
MIT
2018-10-25T01:39:36
2018-10-25T01:39:36
null
UTF-8
Python
false
false
2,395
py
provision_from_json.py
#!/usr/bin/env python import sys import os import logging logging.basicConfig(format='[%(module)s] %(filename)s:%(lineno)s %(asctime)s %(levelname)s %(message)s',stream=sys.stdout) logging.getLogger().setLevel(logging.INFO) import libsolace from libsolace import solace from libsolace.sitexml import XMLAPI from libsola...
d69259dfc246871d6f9c9fcf517fa55883294212
ab0a6804c901c1cb8b9e48259b2082b876cb7597
/Python Village/INI5/INI5.py
1e81e707354d08207c79bcf1549c6374cb235ce5
[]
no_license
mbeaver502/Rosalind
8f17eb5f1bf77080dea8cec5261f976e2d30fd6c
b7ee78429d619ac54a266302a4eececfcfb8d6a2
refs/heads/master
2021-03-12T20:33:13.920574
2015-06-18T21:47:01
2015-06-18T21:47:10
37,631,086
0
0
null
null
null
null
UTF-8
Python
false
false
627
py
INI5.py
#-------------------------------------------# # J. Michael Beaver # # 16 June 2015 # #-------------------------------------------# # No attempt has been made to optimize this # # code. There may be no error-checking. # #-------------------------------------------...
7bd2da2157d14d3604b33d10b9ec2fdebc8a2949
c3509799f2623e80eab30535ed97d40e93aa963b
/PYTHON/Programmers/연습문제/나누어떨어지는숫자배열.py
26ba77969b880f4be02b403a6ba16b6c258f9a62
[]
no_license
jjmin321/Algorithm
a0d99099e118b8d76df45836ed791c0eb6e202ec
619d6ce1f897d35c5c80b222494bb0137cb60171
refs/heads/master
2023-05-05T12:58:57.456622
2021-06-04T00:08:00
2021-06-04T00:08:00
277,247,943
0
0
null
null
null
null
UTF-8
Python
false
false
408
py
나누어떨어지는숫자배열.py
''' https://programmers.co.kr/learn/courses/30/lessons/12910 풀이 : arr 리스트를 순회하여 divisor로 나누어떨어지는 값들만 모아 오름차순으로 정렬하여 반환합니다. 만약 값이 없다면 [-1]을 반환합니다. ''' def solution(arr, divisor): return sorted([i for i in arr if i % divisor == 0]) or [-1] arr = [5, 9, 7, 10] divisor = 5 print(solution(arr, divisor))
0a271a55debdd054449f5ebc92507f9e0ce6a746
98c6ea9c884152e8340605a706efefbea6170be5
/examples/data/Assignment_4/pryjos001/piglatin.py
438b1ecdc1079241d52420fd36037ea29a860dc5
[]
no_license
MrHamdulay/csc3-capstone
479d659e1dcd28040e83ebd9e3374d0ccc0c6817
6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2
refs/heads/master
2021-03-12T21:55:57.781339
2014-09-22T02:22:22
2014-09-22T02:22:22
22,372,174
0
0
null
null
null
null
UTF-8
Python
false
false
1,093
py
piglatin.py
def toPigLatin(s): #split sentence into seperate words wordlist = s.split() sentence=("") for i in wordlist: #wordlist[i][0] takes first letter of each word in sentence sequentially if i[0] in "aeiou": pig_word1 = i+"way" sentence+=pig_word1+" " ...
5fc80c258841062c1f9be19bcd0bded1b0514dc2
4db158b65cabb64ac47dbde09732a7d2c42fb8d1
/LintCode/211. 字符串置换.py
8b1ce1f604586d347e8557eb9de48546593119c0
[ "Apache-2.0" ]
permissive
iFengZhao/Algorithms-1
e87c52ccaf73a26338e136100acd516b722b3255
ffb722703ffc7947bff56ffabe7a491e1e4049f4
refs/heads/master
2023-03-14T00:32:01.329241
2021-03-06T07:17:40
2021-03-06T07:17:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
360
py
211. 字符串置换.py
class Solution: """ @param A: a string @param B: a string @return: a boolean """ def Permutation(self, A, B): # write your code here list1 = [i for i in A] list2 = [j for j in B] list1.sort() list2.sort() if list1 == list2: return True...
68b5cffb6657a84fa2f8ec3cb0c5bd189fa4eed0
047fbc461a321e006b13e97648cf2414be2157db
/new_checker.py
b2e9801e7ac4f53bea20ff3555aa2d1e7271399f
[]
no_license
prathi22/Assignment-3
bf6289e2cbad4de324b2b678f20137e09dae3a0e
dac73db004a3b90cfa3d3e0506f68f52fd23263d
refs/heads/master
2016-09-05T18:36:42.482416
2013-08-06T04:37:56
2013-08-06T04:37:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,474
py
new_checker.py
# 5 X 5 CHECKER BOARD cost_arr=[[0,0,0,0,0,0],[0,8,81,80,4,9],[0,1,2,7,100,3],[0,5,11,1,20,6],[0,10,7,60,4,2],[0,8,120,6,5,3]] path_arr=[[0]*7 for _ in range(7)] profit_arr=[[0]*7 for _ in range(7)] def max_profit(): n=len(cost_arr) global path_arr global profit_arr for i in range(1,n): p...
a31384ed426ca9abf7b1a7b3e65dc1ecee018274
c818932b17a27623440b2a4d870adc073f06a401
/console/views.py
297f462d5ea89d0f9aa4e7272b4ef3bf46a8088f
[ "MIT" ]
permissive
LegendOfFire/testrat-1
fe72758b9b696a9332093d402ffb5bc54eceb682
d034de979f86694f7a8a1df14bf574176ca45b29
refs/heads/master
2021-01-12T14:42:47.962958
2016-11-01T03:18:10
2016-11-01T03:18:10
72,066,631
0
0
null
2016-10-27T03:15:02
2016-10-27T03:15:02
null
UTF-8
Python
false
false
2,025
py
views.py
from django.shortcuts import render from django.http import HttpResponse from django.views.decorators.csrf import csrf_exempt from rest_framework.renderers import JSONRenderer from rest_framework.parsers import JSONParser from .models import ENodeB from .serializers import ENodeBSerializer # Create your views here. c...
72b1ae745b2a04ae45eadec921cf63c581cccbf8
13e651f0d41953ad73e472b6eac8b6d3dcb99905
/homework20200209/page/base_page.py
4b62e60bec0e5194108459393144ca786b2c70ca
[]
no_license
yangyilin182/HogwartsSDET11
6e7a9cbc43ca25c6c61aa8be15c1bc302050083e
6957f5a3da7892fe048586fa5535183b16a7fe26
refs/heads/master
2021-01-03T21:39:55.032883
2020-04-16T07:04:09
2020-04-16T07:04:09
240,246,663
0
1
null
null
null
null
UTF-8
Python
false
false
1,236
py
base_page.py
from time import sleep from selenium import webdriver from selenium.webdriver.remote.webdriver import WebDriver class BasePage: _base_url = "" _driver = None def __init__(self,driver:WebDriver=None,reuse=False): #index用这个方法 if driver==None: if reuse: options = ...
c16b35a61328fa250e627193de4db9ce00ec07e2
34eb8915cc036e1f24caabfd669fd0c300328bb1
/Day3.py
077eec0990e5db1b779195cd6f03dcf6ff3e3de4
[]
no_license
Hol7/100_Days_Challenge
859bab45b16259dbf0e470640744642736c9746e
77da31495817550e6de1e2854958e1bfb03d4373
refs/heads/main
2023-08-29T07:06:01.900389
2021-09-09T05:44:29
2021-09-09T05:44:29
402,920,092
0
0
null
null
null
null
UTF-8
Python
false
false
616
py
Day3.py
# If statement print("welcome to the rollercoaster") height = int(input("what is your height in cm? ")) if height == 190: print("you can ride the rollercoaster!") else: print("sorry you can't") # in this program we will try to kwon if year that user will enter is a leap year or a normal year year = int(input...
36145e0e98f2decf5cb5a11eb235ede7bb1cb34d
a27e34f0323904d8826eeb939953b8f66c9592d7
/TestCipher.py
7080b46d66b74605b6fe2b4034022b699f9888f5
[]
no_license
stickhero23/CS313E
42bdc687234df33cb9c3df8ce3e96d91636cde0d
7a28a6f6a7f4b997eab7743a007d150f4c686b67
refs/heads/master
2023-03-18T21:14:44.156017
2017-12-18T23:36:33
2017-12-18T23:36:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,012
py
TestCipher.py
plain_text = [ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z' ] cipher_text = [ 'q', 'a', 'z', 'w', 's', 'x', 'e', 'd', 'c', 'r', 'f', 'v', 't', 'g', 'b', 'y', 'h', 'n', 'u', 'j', 'm', 'i', 'k', 'o', 'l', 'p' ] def substitution_encode...
9415a9cf40dc82820a43afc7328c08bf7cfdae70
e85ef6454e3237a50fbed0c57a0096952aa415b9
/HomeWork9/task3.py
2ec4d00be3e971ffd953373afee34a54f5fca66a
[]
no_license
mazh661/distonslessons
b4098093969319d8465b61cdd1fa2f8fe8f9456e
040aacf5b710462e78326b05f468fccd35817ef8
refs/heads/master
2022-06-20T22:09:05.793342
2020-05-12T12:48:05
2020-05-12T12:48:05
250,292,431
0
0
null
null
null
null
UTF-8
Python
false
false
173
py
task3.py
#Конечные автоматы k = int(input()) for i in range(k): n,m=input().split() n = int(n) m = int(m) d = 19*m + (n+239)*(n+366)/2 print(d)
b185150d1ca0ae4835974770b9c8fbba2c508ae6
52b5773617a1b972a905de4d692540d26ff74926
/.history/odd_20200715172702.py
77ddb606e89f30593dc3d72f9d36cb943d2577a8
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
16
py
odd_20200715172702.py
def odd(A):
c8ccef6c1a11bd53253b18f29d9ad1cb5624c12b
b48cc66bf4f5a173338e42ba02245da043e71ce7
/LuoguCodes/AT1189.py
4fd0cc63b1eeec1bc80daa40b341866326923e6c
[ "MIT" ]
permissive
Anguei/OI-Codes
6f79f5c446e87b13c6bffe3cc758c722e8d0d65c
0ef271e9af0619d4c236e314cd6d8708d356536a
refs/heads/master
2020-04-22T22:18:14.531234
2019-02-14T14:24:36
2019-02-14T14:24:36
170,703,285
1
0
null
null
null
null
UTF-8
Python
false
false
117
py
AT1189.py
a, b = map(int, raw_input().split()) print a ** 2 * b * 2 * (3.14159265358979323846264338327950288419716939937 ** 2)
ff0d18135eaca6bfc9b3390a4c58d72b2bab1a48
9cdfe7992090fb91696eec8d0a8ae15ee12efffe
/math/prob2125.py
0e068063ece92da1e075f76638f67a180bb778e6
[]
no_license
binchen15/leet-python
e62aab19f0c48fd2f20858a6a0d0508706ae21cc
e00cf94c5b86c8cca27e3bee69ad21e727b7679b
refs/heads/master
2022-09-01T06:56:38.471879
2022-08-28T05:15:42
2022-08-28T05:15:42
243,564,799
1
0
null
null
null
null
UTF-8
Python
false
false
530
py
prob2125.py
class Solution: def numberOfBeams(self, bank: List[str]) -> int: m = len(bank) if m == 1: return 0 n = len(bank[0]) prev = None ans = 0 for i in range(m): cur = bank[i] cnt = cur.count("1") ...
f2bc7b93f0cab1e4c4c59154bd8536e2f6482737
1b2ccd996575342c61bda8f3bf80bdce9bbcc9da
/torch_pipeline/autotorch/models/model_zoo.py
7ac101787a286ec1c0d38bac97d1d7570b3ee5b4
[ "Apache-2.0" ]
permissive
Fanxingye/AutoDL
bc3d1076d33e48eb9c7725e9726abff5af017268
6f409aefc8b81e5fe47df57b82332c8df427875d
refs/heads/main
2023-08-24T16:27:54.735390
2021-11-04T09:11:37
2021-11-04T09:11:37
424,529,923
2
0
null
null
null
null
UTF-8
Python
false
false
12,283
py
model_zoo.py
import timm import torchvision.models as models """" timm_models = [ 'adv_inception_v3', 'cait_m36_384', 'cait_m48_448', 'cait_s24_224', 'cait_s24_384', 'cait_s36_384', 'cait_xs24_384', 'cait_xxs24_224', 'cait_xxs24_384', 'cait_xxs36_224', 'cait_xxs36_384', 'coat_lite_min...
9e784a56ffc8f9fa696c579d97d3a5be9ade31f1
9f3537117e84b86e01ffcf6b40c3791e586d6b36
/src/lstm.py
2cd80f64bacc863e3ea0ded0b7267fe5ebf7c86f
[]
no_license
Nazanin1369/stockPredictor
f88077c2bfad1f031674382c617b03c6c52b8763
c0decd0e598a1f0defe36309679a990df4909f93
refs/heads/master
2022-09-21T17:55:20.197005
2022-09-13T04:39:47
2022-09-13T04:39:47
79,695,844
59
31
null
null
null
null
UTF-8
Python
false
false
4,763
py
lstm.py
import os import time import warnings import numpy as np import time import matplotlib.pyplot as plt from numpy import newaxis from keras.layers.core import Dense, Activation, Dropout from keras.layers.recurrent import LSTM from keras.models import Sequential, load_model os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' #Hide ...
661454ffb828ea56ccee56a610e6c3600a84c8d8
83021ae451aa144ee84d2fcab12b9b37704388eb
/back-end/manage.py
9e287b20a3091253480ee8f576c51d42d9256d56
[]
no_license
rishabhpar/Eyes-of-Texas
a95b19381232081267e53d1fa5fd64e70deb8664
9e993fe73e2dcaa1cf33be95288e6656a15f0d4e
refs/heads/master
2021-10-02T20:49:21.829618
2018-11-30T18:44:00
2018-11-30T18:44:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,339
py
manage.py
from flask import url_for from flask_script import Manager from flask_migrate import Migrate, MigrateCommand from app import app, db, models from app.models import User, Bucket, BucketItem import os from sqlalchemy.exc import IntegrityError # Initializing the manager manager = Manager(app) # Initialize Flask Migrate ...
5bec8f66dcc33805213e374a48150cd78f7d8861
f24ff43f3ac98c63e45df50e6d3c02571de6f3db
/BankingApp/BankingInterface.py
81b8902f067c457ee053f27b9d31ea6232f134f2
[]
no_license
crazycracker/PythonPractice
796ef9c7bc772b15108eeac280c995ea9bd81b5f
9afa6e59509d925fe439c98bec930c03daf9f7ed
refs/heads/master
2021-03-30T16:18:59.108002
2017-12-11T06:27:21
2017-12-11T06:27:21
112,300,354
0
0
null
null
null
null
UTF-8
Python
false
false
1,346
py
BankingInterface.py
from BankingApp import MinimumBalanceAccount from BankingApp import Accounts from BankingApp import WithdrawAmount from BankingApp import DepositAmount from BankingApp import FundTransfer accounts = Accounts() minimum_balance = 500 fundTransfer = FundTransfer() global account def accountCreation(): global accou...
19ab171a3147786b1d91b04cbf7fe31596f0b5ea
a72e98186a66794ba0ad583f11cfc893ccf951d3
/upcomingContets.py
04749795f71d0d3ca832e0fa3e6e6b1d531217b5
[]
no_license
medhruv7/Codeforces-Scrapper
3c80922f26f5eb5846e81cff8f03d14dd46effce
fc6419b139a955dbdd79796c42e3bdb99677a0d0
refs/heads/master
2022-02-23T14:19:33.315168
2019-09-17T17:15:32
2019-09-17T17:15:32
208,984,908
0
0
null
2019-09-17T17:02:37
2019-09-17T07:15:03
Python
UTF-8
Python
false
false
964
py
upcomingContets.py
import requests from bs4 import BeautifulSoup import csv contestList = [] url = "https://clist.by/" content = requests.get(url) sites = {"codechef.com","codeforces.com","atcoder.jp","topcoder.com"} soup = BeautifulSoup(content.text,'html.parser') maindiv = soup.find("div",{"id":"contests"}) rows = maindiv.find_a...
4cdd5d53dc23488303ae6a3b13c9fab678c6d580
cb28bc28bc4b6dbd67955ac7e818edd54f3194c0
/vulcanforge/exchange/exceptions.py
3a0ec4b6a173eec913054e589b36b19e9a771a58
[ "LicenseRef-scancode-other-permissive" ]
permissive
vulcan-collaboration/vulcanforge
ac5160146edbe490476c7d153bbcdb8db0a4932f
a5ed73858f64b2d2296c55d174b4af79f8f81d41
refs/heads/master
2021-01-23T12:45:33.556142
2018-07-13T12:21:23
2018-07-13T12:21:23
93,196,321
2
0
null
null
null
null
UTF-8
Python
false
false
84
py
exceptions.py
class ValidationFailure(Exception): """Exchange artifact failed validation"""
cd22dbd93bfeaadc695f6e33597f8480679ef2d2
e9b07eed3d7d8af31db0896e5babb17c85694c60
/Lottery machine.py
15d6c6d325eeffa6e753d0b9b6e4710ab27ac090
[]
no_license
FarzanRashid/Codewars-solutions
b471a772b39407638dc69d33bc387adf053da86b
08b26b598ad8b21e84a430b28fe4ab7c832715e9
refs/heads/master
2020-12-19T18:39:25.432000
2020-11-25T06:58:03
2020-11-25T06:58:03
235,816,689
1
0
null
null
null
null
UTF-8
Python
false
false
230
py
Lottery machine.py
def lottery(s): string = "" for i in s: if i.isdigit(): if i not in string: string += i return string if len(string) > 0 else "One more run!" print(lottery("ynMAisVpHEqpqHBqTrwH"))
9ea4e51d008d5e2329e1a946415c8f73840c5217
c2501d5ad039f68e9d8ca6ef6cd4593aa45b6048
/models/__init__.py
87a93978917c418ea9497163c39a8352779ff28c
[ "MIT" ]
permissive
yangfukui/FSKD
7e05f3897fd060db3a83b58b118ae522d9700a2c
dbe5b34ef3fc386f3ad52bb2f2772d8c417ae1e3
refs/heads/master
2023-03-26T21:11:47.830619
2020-06-18T23:50:06
2020-06-18T23:50:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
91
py
__init__.py
from __future__ import absolute_import from .vgg import * from .channel_selection import *
a25a535b02a283f2e054cdcee03d11644535e050
cd0ecedff25c4dd69aba04404ebbd15df69b0519
/_utils/wtie.py
f50aac72644419d867133210a0291e251f325b52
[ "MIT" ]
permissive
patryk4815/wtie_utp_plan
f2cc524855ea6433f3e1b931f3eedff62c2924b9
7e5bc1dc8eb04a61ec197c12468116ed957f719e
refs/heads/master
2021-01-10T05:27:13.122871
2016-04-02T19:37:07
2016-04-02T19:37:07
55,311,817
0
0
null
null
null
null
UTF-8
Python
false
false
706
py
wtie.py
from bs4 import BeautifulSoup def get_informatyka_href(text_data): soup = BeautifulSoup(text_data, "html5lib") for elem in soup.find_all('h2'): if elem.text.find('Informatyka stosowana') != -1: for elem2 in elem.next_elements: if elem2.name == 'h2': brea...
e1c02279f965f25a76d596efc2d56383d92a5047
1a7e5a696607d70ce1df3cc29db9925804f6d243
/JohnLib/graphs/graphBase.py
82df72b7b71ba5233422c80ce057f9086c095b1d
[]
no_license
Gamrix/PyRTL-Scripts
b8f656dcbcdf63049c4f5faf64cb59b96d6bd86a
99b8487dffe453ddcb1a4f3529b127705141a510
refs/heads/master
2021-01-17T06:11:45.530933
2016-07-19T00:06:13
2016-07-19T00:06:13
49,101,009
0
0
null
null
null
null
UTF-8
Python
false
false
7,649
py
graphBase.py
from __future__ import print_function import math import pyrtl import os # graph format # format goals: # Trivial for user to set up # Easy for user to change visualizations # Interoperatablility between different formats supported, # but could require some user intervention # Single pipeline for creatin...
2dd5335830fb97cf4392f61a32704f60fe3174e2
55f10e17d759705a83706aae7462556f4c830440
/mean_of_list.py
10882a4bdf2c61a19b4780ad097ab25b989e407e
[]
no_license
Sharad2001/hello2c
475aec4963937200bf237edcfcd468712b531e3a
22b788f25668dd1bb19ec1b02b865ba551ce945a
refs/heads/master
2021-07-30T16:50:38.527034
2021-07-21T16:52:34
2021-07-21T16:52:34
241,370,245
0
0
null
2021-07-21T16:57:16
2020-02-18T13:39:08
C
UTF-8
Python
false
false
132
py
mean_of_list.py
def mean(l): sum = 0 for i in l: sum = sum+i n = len(l) return sum/n l = [10,20,30,40] print(mean(l))
a9774d1392ce2b676e32ed09d4f34513fc759a45
856da7caebf8d9643b7317ec346df6c4777ab738
/Exercises-for Teach Your Kids to Code by Bryson Payne/Smiley_Pong2.py
146e60cb4fb6059af234d5300df84c3885da2c65
[]
no_license
Xenom-msk/Exercises-from-Teach-Your-Kids-to-Code-by-Bryson-Payne
16249ff0235a679e0bbdcc9c61ebcd990c3eeeef
cebd287b46bd635f8546c4bd1aaea2ba40b7ef6a
refs/heads/main
2023-01-21T04:40:00.786059
2020-12-07T19:36:15
2020-12-07T19:36:15
319,421,540
0
0
null
null
null
null
UTF-8
Python
false
false
2,166
py
Smiley_Pong2.py
import pygame # Setup pygame.init() screen=pygame.display.set_mode([800,600]) pygame.display.set_caption("Smiley Pong") pic=pygame.image.load("B).bmp") TURQUOSIE=(50,255,255) BLACK=(0,0,0) BLUE=(0,0,255) keep_going=True colorkey=pic.get_at((0,0)) pic.set_colorkey(colorkey) picx=0 picy=0 timer=pygame.tim...
063251f5781a0364157e5fbc3a6866a35f0b79df
276fea045613d17059708d4a9cf4d1060782164a
/apps/utils/logger.py
6b6d81fed0d09369f2a0ceb5dfd1a075d2ad5cb7
[]
no_license
kevindo0/ms
cde2dfa373147b54d8fb36f339f6d66ba36c4a4e
a22e1a5a703a66e473b9d773730ad089f805c847
refs/heads/master
2020-11-26T03:21:07.700766
2020-03-22T01:36:55
2020-03-22T01:36:55
228,951,578
0
0
null
null
null
null
UTF-8
Python
false
false
570
py
logger.py
import logging import os from dynaconf import settings def get_logger(): log_format = '【 %(levelname)s 】 %(asctime)s - file \"%(pathname)s\"\ - line: %(lineno)d - %(message)s ' logger = logging.getLogger('ms') logger.setLevel(logging.DEBUG) log_dir = settings.get('log_dir', '/tmp') log_f...
e79670a9ed5b96dbaec7fdc0a434855cada3a76d
8fb0b11d4d5fe2cc866eeb451d78c15a9d13d70c
/entornovirtual/aplicacion/app.py
7bf600bddceb601445b6773145e75a0cb2063c53
[]
no_license
abadAfonsoJaime/FLASK
89e942972c2fa4d96e90cf7dde547ae78eb1d90d
60239b76bfed6ed1587142173b630b0b2f007933
refs/heads/master
2021-06-18T02:40:53.832416
2019-05-29T21:30:55
2019-05-29T21:30:55
188,400,613
0
0
null
null
null
null
UTF-8
Python
false
false
7,189
py
app.py
from flask import Flask, render_template, redirect, url_for, request, abort # Constructor from flask_bootstrap import Bootstrap from flask_sqlalchemy import SQLAlchemy from aplicacion import config from aplicacion.forms import * from werkzeug.utils import secure_filename import os app = Flask(__name__) # Aplicación WS...
760cb83cdc408fb315d09ed5bf372a7f1ae678bf
10b9ef7c23f5ad7ea705258dd178a53860d42091
/SDP/controllers/nav_control/nav_control.py
6f685e1308328f8b057e88b2e9926816218651a7
[]
no_license
JHSorin/shoefy
af53bce3abf2464eb2d258ccac5d268ab1fe2290
643fc7586fb7621c8a9fd1966e6a5f06da90e881
refs/heads/main
2023-03-16T16:34:54.162378
2021-03-01T03:13:10
2021-03-01T03:13:10
343,285,584
0
0
null
2021-03-01T04:04:57
2021-03-01T04:04:56
null
UTF-8
Python
false
false
3,596
py
nav_control.py
from controller import Robot from controller import PositionSensor from controller import Supervisor import movement as mv import math import numpy as np def get_coord(supervisor): ur10e = supervisor.getFromDef('SHOEFY') box = supervisor.getFromDef('DEST_BOX') # rot_ur10e = np.array(ur10e.getOrientation(...
a6921097371a0ee494026921c491ae773475059a
8e7e80f915c8723fea40a597860de03034f8531f
/CleanData/CleanData/clean/text_analysis.py
2a68d8d09d9aaeacbe1325ad02898b81da4cc159
[]
no_license
shirmani/CleanDataLib
d2a51294d36af210e97d5590d8c8ece84a2119f8
2c6a2404640ef79f21c5f943bf86bfa5281eedc7
refs/heads/main
2023-04-21T22:12:34.422061
2021-04-29T13:43:40
2021-04-29T13:43:40
362,830,722
0
0
null
null
null
null
UTF-8
Python
false
false
9,143
py
text_analysis.py
import nltk import pandas as pd from CleanData.clean.clean import * from CleanData.python_expansion import * class TextAnalysis: """Converts free text column to a category or multicategories column by a root guide dictionary""" @staticmethod def from_col_text_to_root_str(df, col): """" text (incl...
0be48b0534f1cce04314f03e64ef7d4df6ba51ff
416d149820e9b38d76ca67cde690d2de7409ca49
/case/interfaceCase/signalInfoTest.py
0248c69d71cc2aba472ca7a31202611a797b2366
[]
no_license
rainman215/pywinauto_new
4a7a0b6a5b512c38711c9e22c85633886a6f882c
58d7d1b06ec4904a7d4c84ea7dc26690152cb2b2
refs/heads/master
2022-11-17T08:51:03.195055
2020-07-11T14:17:18
2020-07-11T14:17:18
278,869,545
0
0
null
null
null
null
GB18030
Python
false
false
7,667
py
signalInfoTest.py
#! /usr/bin/env python #coding=GB18030 ''' @author: KLJS276 ''' import ctypes import os import unittest import readConfig import casebase.lxmlReaderModify as xmlManage import casebase.getReg as regInfo import data import casebase.case_wrapper as case1 configList = readConfig.readIniConfig('QuikLab3.0') regInfo = re...
75a0dd0f3d943895dbb72c87122cd1e6edd1413a
c7b6f235d6c74807917d4ec9661db444e2142e23
/{{ cookiecutter.package_name }}/{{ cookiecutter.module_name }}/_{{ cookiecutter._parent_project }}_init.py
2c15b9d4ccd5d674859785590d68adf1473240e0
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
sunpy/old-package-template
6f2b0bb26faef76380fa9e1ab12c29bc7cb8a2a8
707f12ce9fa6a141f0931f7eb3e9a9fe90910cd5
refs/heads/master
2022-04-09T13:39:50.281274
2020-03-19T16:53:35
2020-03-19T16:53:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
576
py
_{{ cookiecutter._parent_project }}_init.py
# Licensed under a 3-clause BSD style license - see LICENSE.rst __all__ = ['__version__'] # this indicates whether or not we are in the package's setup.py try: _SUNPY_SETUP_ except NameError: import builtins builtins._SUNPY_SETUP_ = False try: from .version import version as __version__ except Import...
6eb86ee3133bb77966677a61045d793a9517dd2f
8bddf5ca7ea1648a6b75824423300eafa0ad9b30
/search-scripts_old/Test.py
d8c1c927a71cd1582a61f56a16d0899ab92d414f
[]
no_license
vineettiwari456/search_script
2bf21ffc53cc40e476b392d7bba669150659e6b2
845727c10594cbaf77fef8d53259716d75d345c6
refs/heads/master
2023-05-05T22:08:15.523407
2021-05-31T14:47:30
2021-05-31T14:47:30
372,538,768
0
0
null
null
null
null
UTF-8
Python
false
false
2,591
py
Test.py
from collections import defaultdict from utils.constants import OTHER_LOCATIONS from utils.data_utils.falcon_data_utils import FalconDataUtils from utils.dbutils import DBUtils from utils.utils import Utils def getProfileandDetails(user_ids, user_range=None, profile_range=None): sql_query = "select user_id, id,...
fe0232663e5b4bff2dfe93d62e4148587ab32f3a
71a7c4bacbc361fa6966464506468cea247d70bc
/euler48.py
18a9ecf61f0b27e6b200e56e3a4e73fb22845c46
[]
no_license
sputnick1124/ProjectEuler
d347297798c5ec8802c9f3148e0ce71e345f71b5
8b6b770d54a7932dd8a14ec5ad596405f9a75916
refs/heads/master
2020-03-27T03:42:01.547600
2015-05-17T19:54:04
2015-05-17T19:54:04
31,292,993
0
0
null
null
null
null
UTF-8
Python
false
false
98
py
euler48.py
from time import time t1=time() print(str(sum(x**x for x in range(1001)))[-10:]) print(time()-t1)
7541d3421cd04c83d673ad0001a9f21cfa9d8b00
c1d9dc8351241a3bd519a6f8ebc4531bfed2de6f
/backup/Python/9.py
c78b6bf6df27dfab4b4ff186f2d9ee63c86279b7
[]
no_license
yichenluan/LeetCodeSolution
3cf4b31e36f32c6b689b7b724c5cf57c3efb70bc
26af13bbac60d656415bbba0c3bc7acbaa5a7d63
refs/heads/master
2021-05-23T06:05:07.183561
2020-10-20T09:11:41
2020-10-20T09:11:41
52,205,706
0
0
null
null
null
null
UTF-8
Python
false
false
221
py
9.py
class Solution(object): def isPalindrome(self, x): if x < 0: return False xx = x y = 0 while xx: y = y * 10 + xx % 10 xx /= 10 return y == x
ec80a1b88aa0b2a4b1c7df601ea5259c0c285d38
10ebd62bc94631b09102d6e1862939a265c08f89
/meet/models.py
c9cb74c0678027daad647f6606e511bafdfd9f2e
[]
no_license
xrav3nz/meet-backend
62218ffd95f1c66b30113c0c30651364cd1d0b89
a4e4fc47b238dddd5f6bec4d4ec51849ff4a8363
refs/heads/master
2021-01-10T01:12:00.585237
2016-02-21T00:58:40
2016-02-21T00:58:40
52,180,588
0
1
null
null
null
null
UTF-8
Python
false
false
1,958
py
models.py
from datetime import datetime import string import random from flask import current_app from .extensions import db from .utils import generate_id from .utils.database import CRUDMixin class Activity(CRUDMixin, db.Model): __tablename__ = 'activities' id = db.Column(db.Integer, primary_key=True) meetup_id ...
c6a04363491d6c5a7f13e7cd3cbd35cfe3b27437
9d31278a06971d49743bda5b472c8136cbb8383d
/PythonParser/ParserException.py
e2223a5d2f65d4d3aa581c5c82d5a391a17ec7df
[]
no_license
rvpatel92/Parser-Project
6c3b829e9e9f91f31a7da39d003397e01a69f831
4ef50c07267ae0a0104408a1ac61430882e645be
refs/heads/master
2021-01-10T03:54:51.440953
2015-12-11T17:39:15
2015-12-11T17:39:15
47,841,146
0
0
null
null
null
null
UTF-8
Python
false
false
259
py
ParserException.py
__author__ = 'ravipatel' class ParserException(object): """ """ def __init__(self, errorDefinition): """ :param message: :param lnNum: :param colNum: :return: """ print (errorDefinition)
37580939a0e58bdffb8cfad8252f339a7da4446e
4a438337792262a6966966f472e874292fbabc8b
/python/6.itertools/2.permutations/solution.py
94fe9797d56d7e2b38061c2af7c8ff93f98c17e0
[]
no_license
anilbharadia/hacker-rank
a6469d5b6f8fb5138c7e6d04407e758b669c5e91
debb53f488ae71b77172cd75f68197b9775b3f8b
refs/heads/master
2018-12-25T21:10:34.408903
2018-11-27T17:44:06
2018-11-27T17:44:06
99,077,102
0
0
null
null
null
null
UTF-8
Python
false
false
188
py
solution.py
from __future__ import print_function from itertools import permutations s, space, k = raw_input().partition(' ') for t in sorted(list(permutations(s, int(k)))): print(*t, sep='')
8197d918b86f0e38fb4320434b61aa4186853af9
a4ea525e226d6c401fdb87a6e9adfdc5d07e6020
/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/sig/gallery_application/version/_show.py
f96f92f8b263c810a3c635cc2803dbebea08c722
[ "MIT", "BSD-3-Clause", "LGPL-2.0-or-later", "GPL-1.0-or-later", "MPL-2.0", "LGPL-2.1-only", "Apache-2.0", "LGPL-2.1-or-later", "BSD-2-Clause" ]
permissive
Azure/azure-cli
13340eeca2e288e66e84d393fa1c8a93d46c8686
a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca
refs/heads/dev
2023-08-17T06:25:37.431463
2023-08-17T06:00:10
2023-08-17T06:00:10
51,040,886
4,018
3,310
MIT
2023-09-14T11:11:05
2016-02-04T00:21:51
Python
UTF-8
Python
false
false
15,114
py
_show.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 # --------------------------------...
c10e1cf2f1ce5b11d19ddddbfc3dc9652d830a3c
d06ad1d1cc53efe096e566b9224a2b66d98675bc
/web/migrations/0006_subscription.py
b46ef94e6484b8b4d33ad75b1dd894a19df1d99e
[]
no_license
iamtahirkhan6/Milkify
9d8b7a1d8264858134130d6094736d329829eaae
ab66ac0a5ae9edf78649f0e9543eeff435aa27fe
refs/heads/master
2021-12-14T19:44:15.495089
2021-12-02T10:18:21
2021-12-02T10:18:21
237,751,049
1
0
null
2020-07-08T23:56:56
2020-02-02T10:01:28
HTML
UTF-8
Python
false
false
910
py
0006_subscription.py
# Generated by Django 3.0.4 on 2020-03-27 11:42 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('web', '0005_remove_product_image'), ] operations = [ migrations.CreateMode...
763c0baf919b48ff135f7aa18974da5b85ee40f5
e7c685a9ddc21186678c665eab4f8803c5711766
/emil/Klasy/IteratorOdwrocNapis.py
22c23fe7ffa4978ec4eaaa67ea4ca6d1723a6e87
[]
no_license
emillo8905/nauka-2
543a7249eeb4c3913d3595d59c5b628d186bd061
b3a14e254bdf589dee23aef8418a373da7e5d362
refs/heads/master
2023-07-05T01:53:33.352764
2021-08-29T10:16:03
2021-08-29T10:16:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
350
py
IteratorOdwrocNapis.py
class Odwroc(): def __init__(self,dane): self.dane = dane self.indeks = len(dane) def __iter__(self): return self def __next__(self): if self.indeks == 0: raise StopIteration self.indeks -= 1 return self.dane[self.indeks] for i in Odwroc('Martu...
ea646068d48a9a4b5a578a5fb1399d83a4812b02
86336f441003f774d26e03b0f96d77ddda35189d
/3大飞老师说:整天汇总表格,像在吃假辣椒酱,请用Python解救我/merge_excel.py
b9883035165ae8b2ab3abeec74840ac47e9e0788
[]
no_license
pythoniclife/OfficialAccounts
9e5a02a2d3d2213fbe6586eb27ec33bd1d7f2e2a
66008577c81645eaedeba884cb10a781ca02adbc
refs/heads/master
2022-12-05T17:49:15.430668
2020-08-13T09:56:18
2020-08-13T09:56:18
280,634,342
1
0
null
null
null
null
UTF-8
Python
false
false
961
py
merge_excel.py
# -*- coding: utf-8 -*- import os import time import pandas as pd file_dir = os.getcwd() # 获取当前工作目录 file_list_all = os.listdir(file_dir) # 获取目录下的所有文件名 file_list_excel = [item for item in file_list_all if ('.xlsx' in item) or ('.xls' in item)] # 清洗非excel文件 new_list = [] # 空列表用于存放下面各个清洗后的表格 for file in file_list_ex...
7be54b2bd99680beed3e8e9cb14225756a71a4ea
fbee5804828bfc5cba9e3812b011f37baa41cf83
/tf/advanced/data.py
d0b7688b9b4759df058fd3881ed2465deb868b13
[ "MIT" ]
permissive
annotation/text-fabric
227a8f7c26099200eaa4aeeeda471b265850008c
af28ba2055ef992c39c9cda1164ab43416bed7aa
refs/heads/master
2023-09-04T05:40:46.585668
2023-09-01T10:18:33
2023-09-01T10:18:33
73,742,167
45
13
MIT
2023-05-04T20:06:44
2016-11-14T20:00:34
Jupyter Notebook
UTF-8
Python
false
false
10,926
py
data.py
from ..core.helpers import itemize from ..core.files import backendRep, expandDir, prefixSlash, normpath from .helpers import splitModRef from .repo import checkoutRepo from .links import provenanceLink # GET DATA FOR MAIN SOURCE AND ALL MODULES class AppData: def __init__( self, app, backend, moduleRef...
8109fcc136b967e0ed4ca06077b32612605d5e5f
a63d0342c63787e87ddcc403efaaeaac9e67f5e4
/neural_network.py
e73215bbf2248a26b2320b75f4d0be0b287a6e42
[]
no_license
careywadawi/ANN-AI
acb73733157e42b58db71d08ef5fa6870ca189d0
173e0603f131a56224006fe1677fac725fa8eb38
refs/heads/master
2020-09-14T20:44:04.524275
2019-11-21T19:32:59
2019-11-21T19:32:59
223,247,623
0
0
null
null
null
null
UTF-8
Python
false
false
2,963
py
neural_network.py
from numpy import exp, array, dot from read import normalized class NeuralNetwork(): def __init__(self, layer1, layer2): self.layer1 = layer1 self.layer2 = layer2 def __sigmoid(self, x): return 1 / (1 + exp(-x)) def __sigmoid_derivative(self, x): return x * (1 - x) d...
10a9437453371bd7472e93af1026c778b7983cf8
df16e6002763920a0ea69a261e99b4cbca6f06d2
/dbas/lib.py
e54b2a708c305c3c2e18f00c5516b91b1d6f49c7
[ "MIT" ]
permissive
wahello/dbas
ac021cba260795d5f636e6301966395a68591eff
c6cf74b3fafc197722faef83081fbb6e67d790ef
refs/heads/master
2020-03-19T11:52:21.778876
2018-05-24T08:45:12
2018-05-24T08:45:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
44,694
py
lib.py
""" Common, pure functions used by the D-BAS. .. codeauthor:: Tobias Krauthoff <krauthoff@cs.uni-duesseldorf.de """ import hashlib import locale import os import re import warnings from collections import defaultdict from datetime import datetime from enum import Enum, auto from html import escape, unescape from typi...
850251338e8af841a5214b37610d1b6fba572aa5
00c1e8637c7b925cbe2c44427686f62d4a19cccf
/Fallint.pyde
30dab5409655db875dcda555bcb370d244e5354a
[]
no_license
priyamsahoo/Fallin-t
ca6ab98c9bcceda08b65792a4ef6092a3dcc9678
d568cb54633b90f6339875352724dd4ba41e9678
refs/heads/main
2023-01-30T11:22:25.833973
2020-12-11T15:11:07
2020-12-11T15:11:07
320,606,924
0
0
null
null
null
null
UTF-8
Python
false
false
2,739
pyde
Fallint.pyde
from platform_class import * from player_class import * from functions import * delay = 3000 startOfGame = False # def keyPressed(): # startOfGame = True # print(startOfGame) # if (keyCode == 'B'): # print("I am pressed") # startOfGame = True def mousePressed(): global platforms ...
93ac8a1f795f7809a3e88b56ce90bf1d31706554
e7d8b4efd1dd3b853eb42d0f997bae0e4c9ffdf3
/data/dengue_infection.py
aedff308880811cccadb62762965028f019798a9
[ "Apache-2.0" ]
permissive
omiderfanmanesh/dengue-infections-prediction
62c93dd2aa80b78ed2936eca0db5571879c93b34
6b4e4aa4af6f6e2cc581fd7828634bbfdc446340
refs/heads/main
2023-08-14T08:51:43.076779
2021-09-14T16:47:27
2021-09-14T16:47:27
403,952,974
1
0
null
null
null
null
UTF-8
Python
false
false
5,714
py
dengue_infection.py
# Copyright (c) 2021, Omid Erfanmanesh, All rights reserved. import math import numpy as np import pandas as pd from data.based.based_dataset import BasedDataset from data.based.file_types import FileTypes class DengueInfection(BasedDataset): def __init__(self, cfg, development): super(DengueInfectio...
2ade8a71ab9f89fbdc98a9038b890501a079633b
a1e56fb40a2f19ab093f2d17ea6de71019550f1a
/tiff_jpg.py
17e4a514be467c342186b054ae9e040fd514eff6
[]
no_license
sap143/autopy
a6810a11a39006770d99d712fa28a9afc8187269
e88142323c05e19612648e71e20f45df2c7dd3d7
refs/heads/master
2020-08-07T08:19:37.488803
2019-10-07T16:25:00
2019-10-07T16:25:00
213,369,538
0
0
null
null
null
null
UTF-8
Python
false
false
857
py
tiff_jpg.py
from PIL import Image from glob import glob import os # source path where all your tif/tiff/png images present path=os.getcwd()+'/PutHereFileName/' #this will make new folder in current working directory /jpgImage os.makedirs(os.getcwd()+'/jpgImage/') #glob will help us to read all the file inside folder which have e...
8f364fba9f45a4353c39968f8234fe579b4a1294
31a26c0b7a11cd619a4e35455a2f7277fffa4ef2
/code/test.py
55ecc11e9d28a08e11c76ab98659def43a294a84
[]
no_license
beginmachinelearning/think_stats
a416ede33afcc39f3f2bf4505dba8fbd86a7c0e3
d81f2702a66abc6ee87f0b8529e81fe697181aec
refs/heads/master
2020-03-19T12:53:10.656278
2018-06-25T12:54:38
2018-06-25T12:54:38
136,547,291
0
0
null
null
null
null
UTF-8
Python
false
false
210
py
test.py
import nsfg df = nsfg.ReadFemPreg() df['birthwgt_lb'].value_counts() def MakePregMap(df): d = defaultdict(list) for index, caseid in df.caseid.iteritems(): d[caseid].append(index) return d
def9c37c632abb2131ee98faa8c56e72999c8000
fb471c75dc3f095e3a50b1883e777d3c9616c7dc
/src/viewer/Query/dlg_SearchDataValues.py
9f2111bf529e3fc37127f4ea0126acb1a996ee00
[ "BSD-3-Clause", "LicenseRef-scancode-free-unknown" ]
permissive
WamdamProject/WaMDaM_Wizard
397bb76a2fba3774a38874a0adac3a4bef338dad
f8f5a830464f3c8f45e4eb0557833eefb267d7b2
refs/heads/master
2021-06-20T11:08:31.267635
2021-01-17T00:19:45
2021-01-17T00:19:45
92,693,785
0
0
BSD-3-Clause
2019-01-03T19:52:41
2017-05-28T23:46:50
Python
UTF-8
Python
false
false
9,737
py
dlg_SearchDataValues.py
"""Subclass of dlg_SearchDataValues, which is generated by wxFormBuilder.""" import wx import viewer.WaMDaMWizard from controller.wamdamAPI.GetDataValues import GetDataValues from viewer.Messages_forms.msg_somethigWrong import msg_somethigWrong # This library is used here to write data to an excel file from controller...
103fd86f1efada2ec37b22a83c0cb6c9ef68f811
8fc1b6219012a2b6c860e48659c8cc30d92691c0
/boundingbox.py
5e861690789413ac61060b1577126eb46ddf1234
[]
no_license
dinglijay/ImitateTracking
81c18cd1b006a2e4e0c08a98fefabf9dc061a089
0d689e884b7610f02d06d031050ba533dc01af3e
refs/heads/master
2023-04-23T11:07:14.196268
2021-05-13T08:00:50
2021-05-13T08:00:50
223,662,193
1
0
null
null
null
null
UTF-8
Python
false
false
14,102
py
boundingbox.py
from __future__ import division import numbers import os import random import numpy as np import cv2 import itertools from commons import minmax from conf.configs import ADNetConf from PIL import Image class Coordinate: @staticmethod def get_imgwh(img): return Coordinate(x=img.shape[1], y=img.shape...
7c1d4d203a9d67fe2066358511a56cfeef4b1af1
901b90567f40a205749b2e524fddcb1893d6a60f
/test_simple.py
7c6ee008b9babccb41274413db593a840d0d3905
[ "MIT" ]
permissive
Smoren/mushroom-neural-simple
9ab9e67ff259e3bd066f403683eebd8384a18a89
ee8c81eafdcbdcfeee5ae3f70378ed6084e629b1
refs/heads/master
2022-11-02T19:26:31.479237
2022-09-15T18:43:46
2022-09-15T18:43:46
224,446,161
5
0
null
null
null
null
UTF-8
Python
false
false
3,185
py
test_simple.py
import activation from structs import NeuralNetwork import tools DATA_FILE_NAME = 'output/simple.json' nn = NeuralNetwork() # создаем нейронную сеть nn.add_input_layer(4) # добавляем входной слой nn.add_layer(15, activation_class=activation.ActivationRelu, random_radius=0.15) # добавляем скрытый слой nn.add_layer(...
822c2c1d42561268b42013cfa8c0a4e0dc26bab7
d686fae0192b507364b5625084688ac6fa796d4e
/Session3/LinearModel.py
6060a142591ab06e725ba6dd83eed649425a8c2d
[ "MIT" ]
permissive
th3ragex/nn
15739c329e54cfd94c21f2ca64027d6d671732ba
e86c52f3d31f5d5b3b8819a1f0f1593f488c5544
refs/heads/master
2021-01-02T23:00:58.949518
2017-08-05T17:48:01
2017-08-05T17:48:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,440
py
LinearModel.py
from RealUtils import * import numpy as np from keras import backend as K from keras.models import Sequential from keras.layers import Lambda, Flatten, Dense from keras.preprocessing import image from keras.optimizers import Adam from keras.datasets import mnist K.set_image_data_format('channels_first') batch_size=64...
a398abe2ff578efcc2584104ea2084f7e3b28041
19fd109f93e4c597ce0c9ecf69881d3e2f5805ac
/acceptance_tests/03-camera_xe2.py
98f0d2260581707d7959a4879f56ccc58e4d174c
[]
no_license
MikeHart85/CHX_profile_collection
b8786b2ead32a774c53cc57101b37f6634809957
9a8182541cc030cefea349a22d511329747a5532
refs/heads/master
2021-03-13T09:58:49.732462
2020-08-25T16:23:57
2020-08-25T16:23:57
246,667,607
0
0
null
null
null
null
UTF-8
Python
false
false
331
py
03-camera_xe2.py
from bluesky.plans import rel_scan from bluesky.callbacks import LiveTable, LivePlot subs = [LiveTable(['diff_xh', 'xray_eye2_stats1_total', 'xray_eye2_stats2_total']), LivePlot('xray_eye2_stats1_total', 'diff_xh')] print ( ' Motor is diff.xh, camera is xray_eye2') RE(rel_scan([xray_eye2], diff.xh, -.1, .1,...
88c5170dbc40c23a7b5c0b17ba2e881fa92b1834
806c5851889b840b573df4e87b7fa3853eb0aafe
/lunch_menu/spiders/na_kopecku_spider.py
44e2202be4af1a3cdad24014e129c140f944fdf8
[]
no_license
matejruzicka/menu-budejovicka-scrapy
b331266efc519b0f52a4da0bd681712c371ac2d5
55b6704c30ea64c70b9e1fa9643003445f757709
refs/heads/master
2023-06-14T01:16:15.089838
2021-07-19T16:56:01
2021-07-19T16:56:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
357
py
na_kopecku_spider.py
import scrapy class NaKopeckuSpider(scrapy.Spider): name = 'na_kopecku' def start_request(self): url = 'https://www.restaurace-nakopecku.cz/tydenni-poledni-nabidka/' yield scrapy.Request(url=url, callback=self.parse) def parse(self, response): days = response.css('.dm-name').geta...
0ccac9c6940f6b80e0377a12e925564dc7d3dc9d
c6259c87443475dfdacb4cf3545d2e18e6392b1a
/BFT/positional_embeddings/__init__.py
73853b0b75e622e69e1da34b35bd440a665bfdee
[]
no_license
SonyCSLParis/piano
2066fa77267cdf2e7dc2dc80eef4510f406e5019
15adcb37e8445256fbb8848518a5cc817f110530
refs/heads/master
2023-05-11T02:05:52.893239
2021-03-29T07:38:23
2021-03-29T07:38:23
302,968,414
0
0
null
null
null
null
UTF-8
Python
false
false
407
py
__init__.py
from .positional_embedding import PositionalEmbedding, BasePositionalEmbedding from .channel_embeddings import ChannelEmbeddings from .learnt_embeddings import LearntEmbeddings from .sinusoidal_elapsed_time_embedding import SinusoidalElapsedTimeEmbedding from .sinusoidal_positional_embedding import SinusoidalPositional...
5e2299ef9cf990ec0d2f4b158af05c269a42d0a7
316683129499a903075d3976b9c0b8fae7b1a6e3
/python-challenge-HBridges/PyBank/new-column.py
232eb28b91eb1291dafc57d4913b1e38eef307c9
[]
no_license
hannahlbridges/python-challenge
c3768641b2d07893072017da691c875302d556da
b8347e7b6695deab0f247e46c537f46a5a9be5eb
refs/heads/master
2022-12-18T12:31:59.917466
2020-09-19T20:19:07
2020-09-19T20:19:07
295,222,162
0
0
null
null
null
null
UTF-8
Python
false
false
1,034
py
new-column.py
import os import csv recordspath = 'Resources/budget_data.csv' analysispath = 'Analysis/Analysis.txt' print('Financial Analysis') print('-----------------------------------------') net = [] with open(recordspath, 'r') as csvfile: csvreader = csv.reader(csvfile, delimiter=',') next(csvreader) for ro...